@fluid-topics/ft-reader-feedback 1.2.2 → 1.2.4

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,14 +1,14 @@
1
- "use strict";(()=>{var up=Object.create;var fn=Object.defineProperty;var fp=Object.getOwnPropertyDescriptor;var hp=Object.getOwnPropertyNames;var mp=Object.getPrototypeOf,yp=Object.prototype.hasOwnProperty;var gp=(r,t)=>()=>(t||r((t={exports:{}}).exports,t),t.exports),rt=(r,t)=>{for(var e in t)fn(r,e,{get:t[e],enumerable:!0})},bp=(r,t,e,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of hp(t))!yp.call(r,n)&&n!==e&&fn(r,n,{get:()=>t[n],enumerable:!(i=fp(t,n))||i.enumerable});return r};var vp=(r,t,e)=>(e=r!=null?up(mp(r)):{},bp(t||!r||!r.__esModule?fn(e,"default",{value:r,enumerable:!0}):e,r));var Xc=gp((Ge,Yc)=>{var $i=typeof globalThis<"u"&&globalThis||typeof self<"u"&&self||typeof global<"u"&&global,Pi=function(){function r(){this.fetch=!1,this.DOMException=$i.DOMException}return r.prototype=$i,new r}();(function(r){var t=function(e){var i=typeof r<"u"&&r||typeof self<"u"&&self||typeof global<"u"&&global||{},n={searchParams:"URLSearchParams"in i,iterable:"Symbol"in i&&"iterator"in Symbol,blob:"FileReader"in i&&"Blob"in i&&function(){try{return new Blob,!0}catch{return!1}}(),formData:"FormData"in i,arrayBuffer:"ArrayBuffer"in i};function a(y){return y&&DataView.prototype.isPrototypeOf(y)}if(n.arrayBuffer)var s=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],l=ArrayBuffer.isView||function(y){return y&&s.indexOf(Object.prototype.toString.call(y))>-1};function d(y){if(typeof y!="string"&&(y=String(y)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(y)||y==="")throw new TypeError('Invalid character in header field name: "'+y+'"');return y.toLowerCase()}function p(y){return typeof y!="string"&&(y=String(y)),y}function f(y){var O={next:function(){var k=y.shift();return{done:k===void 0,value:k}}};return n.iterable&&(O[Symbol.iterator]=function(){return O}),O}function h(y){this.map={},y instanceof h?y.forEach(function(O,k){this.append(k,O)},this):Array.isArray(y)?y.forEach(function(O){if(O.length!=2)throw new TypeError("Headers constructor: expected name/value pair to be length 2, found"+O.length);this.append(O[0],O[1])},this):y&&Object.getOwnPropertyNames(y).forEach(function(O){this.append(O,y[O])},this)}h.prototype.append=function(y,O){y=d(y),O=p(O);var k=this.map[y];this.map[y]=k?k+", "+O:O},h.prototype.delete=function(y){delete this.map[d(y)]},h.prototype.get=function(y){return y=d(y),this.has(y)?this.map[y]:null},h.prototype.has=function(y){return this.map.hasOwnProperty(d(y))},h.prototype.set=function(y,O){this.map[d(y)]=p(O)},h.prototype.forEach=function(y,O){for(var k in this.map)this.map.hasOwnProperty(k)&&y.call(O,this.map[k],k,this)},h.prototype.keys=function(){var y=[];return this.forEach(function(O,k){y.push(k)}),f(y)},h.prototype.values=function(){var y=[];return this.forEach(function(O){y.push(O)}),f(y)},h.prototype.entries=function(){var y=[];return this.forEach(function(O,k){y.push([k,O])}),f(y)},n.iterable&&(h.prototype[Symbol.iterator]=h.prototype.entries);function m(y){if(!y._noBody){if(y.bodyUsed)return Promise.reject(new TypeError("Already read"));y.bodyUsed=!0}}function v(y){return new Promise(function(O,k){y.onload=function(){O(y.result)},y.onerror=function(){k(y.error)}})}function S(y){var O=new FileReader,k=v(O);return O.readAsArrayBuffer(y),k}function E(y){var O=new FileReader,k=v(O),j=/charset=([A-Za-z0-9_-]+)/.exec(y.type),Y=j?j[1]:"utf-8";return O.readAsText(y,Y),k}function $(y){for(var O=new Uint8Array(y),k=new Array(O.length),j=0;j<O.length;j++)k[j]=String.fromCharCode(O[j]);return k.join("")}function _(y){if(y.slice)return y.slice(0);var O=new Uint8Array(y.byteLength);return O.set(new Uint8Array(y)),O.buffer}function T(){return this.bodyUsed=!1,this._initBody=function(y){this.bodyUsed=this.bodyUsed,this._bodyInit=y,y?typeof y=="string"?this._bodyText=y:n.blob&&Blob.prototype.isPrototypeOf(y)?this._bodyBlob=y:n.formData&&FormData.prototype.isPrototypeOf(y)?this._bodyFormData=y:n.searchParams&&URLSearchParams.prototype.isPrototypeOf(y)?this._bodyText=y.toString():n.arrayBuffer&&n.blob&&a(y)?(this._bodyArrayBuffer=_(y.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):n.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(y)||l(y))?this._bodyArrayBuffer=_(y):this._bodyText=y=Object.prototype.toString.call(y):(this._noBody=!0,this._bodyText=""),this.headers.get("content-type")||(typeof y=="string"?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):n.searchParams&&URLSearchParams.prototype.isPrototypeOf(y)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},n.blob&&(this.blob=function(){var y=m(this);if(y)return y;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))}),this.arrayBuffer=function(){if(this._bodyArrayBuffer){var y=m(this);return y||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer))}else{if(n.blob)return this.blob().then(S);throw new Error("could not read as ArrayBuffer")}},this.text=function(){var y=m(this);if(y)return y;if(this._bodyBlob)return E(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve($(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},n.formData&&(this.formData=function(){return this.text().then(B)}),this.json=function(){return this.text().then(JSON.parse)},this}var C=["CONNECT","DELETE","GET","HEAD","OPTIONS","PATCH","POST","PUT","TRACE"];function w(y){var O=y.toUpperCase();return C.indexOf(O)>-1?O:y}function A(y,O){if(!(this instanceof A))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');O=O||{};var k=O.body;if(y instanceof A){if(y.bodyUsed)throw new TypeError("Already read");this.url=y.url,this.credentials=y.credentials,O.headers||(this.headers=new h(y.headers)),this.method=y.method,this.mode=y.mode,this.signal=y.signal,!k&&y._bodyInit!=null&&(k=y._bodyInit,y.bodyUsed=!0)}else this.url=String(y);if(this.credentials=O.credentials||this.credentials||"same-origin",(O.headers||!this.headers)&&(this.headers=new h(O.headers)),this.method=w(O.method||this.method||"GET"),this.mode=O.mode||this.mode||null,this.signal=O.signal||this.signal||function(){if("AbortController"in i){var W=new AbortController;return W.signal}}(),this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&k)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(k),(this.method==="GET"||this.method==="HEAD")&&(O.cache==="no-store"||O.cache==="no-cache")){var j=/([?&])_=[^&]*/;if(j.test(this.url))this.url=this.url.replace(j,"$1_="+new Date().getTime());else{var Y=/\?/;this.url+=(Y.test(this.url)?"&":"?")+"_="+new Date().getTime()}}}A.prototype.clone=function(){return new A(this,{body:this._bodyInit})};function B(y){var O=new FormData;return y.trim().split("&").forEach(function(k){if(k){var j=k.split("="),Y=j.shift().replace(/\+/g," "),W=j.join("=").replace(/\+/g," ");O.append(decodeURIComponent(Y),decodeURIComponent(W))}}),O}function Z(y){var O=new h,k=y.replace(/\r?\n[\t ]+/g," ");return k.split("\r").map(function(j){return j.indexOf(`
2
- `)===0?j.substr(1,j.length):j}).forEach(function(j){var Y=j.split(":"),W=Y.shift().trim();if(W){var ae=Y.join(":").trim();try{O.append(W,ae)}catch(ro){console.warn("Response "+ro.message)}}}),O}T.call(A.prototype);function J(y,O){if(!(this instanceof J))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');if(O||(O={}),this.type="default",this.status=O.status===void 0?200:O.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=O.statusText===void 0?"":""+O.statusText,this.headers=new h(O.headers),this.url=O.url||"",this._initBody(y)}T.call(J.prototype),J.prototype.clone=function(){return new J(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new h(this.headers),url:this.url})},J.error=function(){var y=new J(null,{status:200,statusText:""});return y.ok=!1,y.status=0,y.type="error",y};var tt=[301,302,303,307,308];J.redirect=function(y,O){if(tt.indexOf(O)===-1)throw new RangeError("Invalid status code");return new J(null,{status:O,headers:{location:y}})},e.DOMException=i.DOMException;try{new e.DOMException}catch{e.DOMException=function(O,k){this.message=O,this.name=k;var j=Error(O);this.stack=j.stack},e.DOMException.prototype=Object.create(Error.prototype),e.DOMException.prototype.constructor=e.DOMException}function D(y,O){return new Promise(function(k,j){var Y=new A(y,O);if(Y.signal&&Y.signal.aborted)return j(new e.DOMException("Aborted","AbortError"));var W=new XMLHttpRequest;function ae(){W.abort()}W.onload=function(){var Rt={statusText:W.statusText,headers:Z(W.getAllResponseHeaders()||"")};Y.url.indexOf("file://")===0&&(W.status<200||W.status>599)?Rt.status=200:Rt.status=W.status,Rt.url="responseURL"in W?W.responseURL:Rt.headers.get("X-Request-URL");var er="response"in W?W.response:W.responseText;setTimeout(function(){k(new J(er,Rt))},0)},W.onerror=function(){setTimeout(function(){j(new TypeError("Network request failed"))},0)},W.ontimeout=function(){setTimeout(function(){j(new TypeError("Network request timed out"))},0)},W.onabort=function(){setTimeout(function(){j(new e.DOMException("Aborted","AbortError"))},0)};function ro(Rt){try{return Rt===""&&i.location.href?i.location.href:Rt}catch{return Rt}}if(W.open(Y.method,ro(Y.url),!0),Y.credentials==="include"?W.withCredentials=!0:Y.credentials==="omit"&&(W.withCredentials=!1),"responseType"in W&&(n.blob?W.responseType="blob":n.arrayBuffer&&(W.responseType="arraybuffer")),O&&typeof O.headers=="object"&&!(O.headers instanceof h||i.Headers&&O.headers instanceof i.Headers)){var Xs=[];Object.getOwnPropertyNames(O.headers).forEach(function(Rt){Xs.push(d(Rt)),W.setRequestHeader(Rt,p(O.headers[Rt]))}),Y.headers.forEach(function(Rt,er){Xs.indexOf(er)===-1&&W.setRequestHeader(er,Rt)})}else Y.headers.forEach(function(Rt,er){W.setRequestHeader(er,Rt)});Y.signal&&(Y.signal.addEventListener("abort",ae),W.onreadystatechange=function(){W.readyState===4&&Y.signal.removeEventListener("abort",ae)}),W.send(typeof Y._bodyInit>"u"?null:Y._bodyInit)})}return D.polyfill=!0,i.fetch||(i.fetch=D,i.Headers=h,i.Request=A,i.Response=J),e.Headers=h,e.Request=A,e.Response=J,e.fetch=D,e}({})})(Pi);Pi.fetch.ponyfill=!0;delete Pi.fetch.polyfill;var jr=$i.fetch?$i:Pi;Ge=jr.fetch;Ge.default=jr.fetch;Ge.fetch=jr.fetch;Ge.Headers=jr.Headers;Ge.Request=jr.Request;Ge.Response=jr.Response;Yc.exports=Ge});if(!ShadowRoot.prototype.createElement){let r=window.HTMLElement,t=window.customElements.define,e=window.customElements.get,i=window.customElements,n=new WeakMap,a=new WeakMap,s=new WeakMap,l=new WeakMap;window.CustomElementRegistry=class{constructor(){this._definitionsByTag=new Map,this._definitionsByClass=new Map,this._whenDefinedPromises=new Map,this._awaitingUpgrade=new Map}define(C,w){if(C=C.toLowerCase(),this._getDefinition(C)!==void 0)throw new DOMException(`Failed to execute 'define' on 'CustomElementRegistry': the name "${C}" has already been used with this registry`);if(this._definitionsByClass.get(w)!==void 0)throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");let A=w.prototype.attributeChangedCallback,B=new Set(w.observedAttributes||[]);m(w,B,A);let Z={elementClass:w,connectedCallback:w.prototype.connectedCallback,disconnectedCallback:w.prototype.disconnectedCallback,adoptedCallback:w.prototype.adoptedCallback,attributeChangedCallback:A,formAssociated:w.formAssociated,formAssociatedCallback:w.prototype.formAssociatedCallback,formDisabledCallback:w.prototype.formDisabledCallback,formResetCallback:w.prototype.formResetCallback,formStateRestoreCallback:w.prototype.formStateRestoreCallback,observedAttributes:B};this._definitionsByTag.set(C,Z),this._definitionsByClass.set(w,Z);let J=e.call(i,C);J||(J=h(C),t.call(i,C,J)),this===window.customElements&&(s.set(w,Z),Z.standInClass=J);let tt=this._awaitingUpgrade.get(C);if(tt){this._awaitingUpgrade.delete(C);for(let y of tt)a.delete(y),S(y,Z,!0)}let D=this._whenDefinedPromises.get(C);return D!==void 0&&(D.resolve(w),this._whenDefinedPromises.delete(C)),w}upgrade(){$.push(this),i.upgrade.apply(i,arguments),$.pop()}get(C){return this._definitionsByTag.get(C)?.elementClass}_getDefinition(C){return this._definitionsByTag.get(C)}whenDefined(C){let w=this._getDefinition(C);if(w!==void 0)return Promise.resolve(w.elementClass);let A=this._whenDefinedPromises.get(C);return A===void 0&&(A={},A.promise=new Promise(B=>A.resolve=B),this._whenDefinedPromises.set(C,A)),A.promise}_upgradeWhenDefined(C,w,A){let B=this._awaitingUpgrade.get(w);B||this._awaitingUpgrade.set(w,B=new Set),A?B.add(C):B.delete(C)}};let d;window.HTMLElement=function(){let w=d;if(w)return d=void 0,w;let A=s.get(this.constructor);if(!A)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return w=Reflect.construct(r,[],A.standInClass),Object.setPrototypeOf(w,this.constructor.prototype),n.set(w,A),w},window.HTMLElement.prototype=r.prototype;let p=C=>C===document||C instanceof ShadowRoot,f=C=>{let w=C.getRootNode();if(!p(w)){let A=$[$.length-1];if(A instanceof CustomElementRegistry)return A;w=A.getRootNode(),p(w)||(w=l.get(w)?.getRootNode()||document)}return w.customElements},h=C=>class{static get formAssociated(){return!0}constructor(){let A=Reflect.construct(r,[],this.constructor);Object.setPrototypeOf(A,HTMLElement.prototype);let B=f(A)||window.customElements,Z=B._getDefinition(C);return Z?S(A,Z):a.set(A,B),A}connectedCallback(){let A=n.get(this);A?A.connectedCallback&&A.connectedCallback.apply(this,arguments):a.get(this)._upgradeWhenDefined(this,C,!0)}disconnectedCallback(){let A=n.get(this);A?A.disconnectedCallback&&A.disconnectedCallback.apply(this,arguments):a.get(this)._upgradeWhenDefined(this,C,!1)}adoptedCallback(){n.get(this)?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){let A=n.get(this);A&&A.formAssociated&&A?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){let A=n.get(this);A?.formAssociated&&A?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){let A=n.get(this);A?.formAssociated&&A?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){let A=n.get(this);A?.formAssociated&&A?.formStateRestoreCallback?.apply(this,arguments)}},m=(C,w,A)=>{if(w.size===0||A===void 0)return;let B=C.prototype.setAttribute;B&&(C.prototype.setAttribute=function(tt,D){let y=tt.toLowerCase();if(w.has(y)){let O=this.getAttribute(y);B.call(this,y,D),A.call(this,y,O,D)}else B.call(this,y,D)});let Z=C.prototype.removeAttribute;Z&&(C.prototype.removeAttribute=function(tt){let D=tt.toLowerCase();if(w.has(D)){let y=this.getAttribute(D);Z.call(this,D),A.call(this,D,y,null)}else Z.call(this,D)});let J=C.prototype.toggleAttribute;J&&(C.prototype.toggleAttribute=function(tt,D){let y=tt.toLowerCase();if(w.has(y)){let O=this.getAttribute(y);J.call(this,y,D);let k=this.getAttribute(y);A.call(this,y,O,k)}else J.call(this,y,D)})},v=C=>{let w=Object.getPrototypeOf(C);if(w!==window.HTMLElement)return w===r?Object.setPrototypeOf(C,window.HTMLElement):v(w)},S=(C,w,A=!1)=>{Object.setPrototypeOf(C,w.elementClass.prototype),n.set(C,w),d=C;try{new w.elementClass}catch{v(w.elementClass),new w.elementClass}w.attributeChangedCallback&&w.observedAttributes.forEach(B=>{C.hasAttribute(B)&&w.attributeChangedCallback.call(C,B,null,C.getAttribute(B))}),A&&w.connectedCallback&&C.isConnected&&w.connectedCallback.call(C)},E=Element.prototype.attachShadow;Element.prototype.attachShadow=function(C){let w=E.apply(this,arguments);return C.customElements&&(w.customElements=C.customElements),w};let $=[document],_=(C,w,A=void 0)=>{let B=(A?Object.getPrototypeOf(A):C.prototype)[w];C.prototype[w]=function(){$.push(this);let Z=B.apply(A||this,arguments);return Z!==void 0&&l.set(Z,this),$.pop(),Z}};_(ShadowRoot,"createElement",document),_(ShadowRoot,"importNode",document),_(Element,"insertAdjacentHTML");let T=(C,w)=>{let A=Object.getOwnPropertyDescriptor(C.prototype,w);Object.defineProperty(C.prototype,w,{...A,set(B){$.push(this),A.set.call(this,B),$.pop()}})};if(T(Element,"innerHTML"),T(ShadowRoot,"innerHTML"),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){let C=new WeakMap,w=HTMLElement.prototype.attachInternals,A=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...tt){let D=w.call(this,...tt);return C.set(D,this),D},A.forEach(tt=>{let D=window.ElementInternals.prototype,y=D[tt];D[tt]=function(...O){let k=C.get(this);if(n.get(k).formAssociated===!0)return y?.call(this,...O);throw new DOMException(`Failed to execute ${y} on 'ElementInternals': The target element is not a form-associated custom element.`)}});class B extends Array{constructor(D){super(...D),this._elements=D}get value(){return this._elements.find(D=>D.checked===!0)?.value||""}}class Z{constructor(D){let y=new Map;D.forEach((O,k)=>{let j=O.getAttribute("name"),Y=y.get(j)||[];this[+k]=O,Y.push(O),y.set(j,Y)}),this.length=D.length,y.forEach((O,k)=>{O&&(O.length===1?this[k]=O[0]:this[k]=new B(O))})}namedItem(D){return this[D]}}let J=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){let tt=J.get.call(this,[]),D=[];for(let y of tt){let O=n.get(y);(!O||O.formAssociated===!0)&&D.push(y)}return new Z(D)}})}}try{window.customElements.define("custom-element",null)}catch{let t=window.customElements.define;window.customElements.define=(e,i,n)=>{if(i!==null)try{t.bind(window.customElements)(e,i,n)}catch(a){console.info(e,i,n,a)}}}var An={};rt(An,{CSSResult:()=>Tr,LitElement:()=>Se,ReactiveElement:()=>se,_$LE:()=>zp,_$LH:()=>Up,adoptStyles:()=>ii,css:()=>P,defaultConverter:()=>ni,getCompatibleStyle:()=>po,html:()=>L,isServer:()=>Nh,noChange:()=>ke,notEqual:()=>xn,nothing:()=>H,render:()=>En,supportsAdoptingStyleSheets:()=>co,svg:()=>Fp,unsafeCSS:()=>ve});var Vo=globalThis,Go=Vo.ShadowRoot&&(Vo.ShadyCSS===void 0||Vo.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Qs=Symbol(),Js=new WeakMap,jo=class{constructor(t,e,i){if(this._$cssResult$=!0,i!==Qs)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o,e=this.t;if(Go&&t===void 0){let i=e!==void 0&&e.length===1;i&&(t=Js.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),i&&Js.set(e,t))}return t}toString(){return this.cssText}},tl=r=>new jo(typeof r=="string"?r:r+"",void 0,Qs);var hn=(r,t)=>{if(Go)r.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(let e of t){let i=document.createElement("style"),n=Vo.litNonce;n!==void 0&&i.setAttribute("nonce",n),i.textContent=e.cssText,r.appendChild(i)}},Ko=Go?r=>r:r=>r instanceof CSSStyleSheet?(t=>{let e="";for(let i of t.cssRules)e+=i.cssText;return tl(e)})(r):r;var{is:xp,defineProperty:Sp,getOwnPropertyDescriptor:Op,getOwnPropertyNames:Cp,getOwnPropertySymbols:wp,getPrototypeOf:Ep}=Object,Zo=globalThis,el=Zo.trustedTypes,Ap=el?el.emptyScript:"",Rp=Zo.reactiveElementPolyfillSupport,oo=(r,t)=>r,io={toAttribute(r,t){switch(t){case Boolean:r=r?Ap:null;break;case Object:case Array:r=r==null?r:JSON.stringify(r)}return r},fromAttribute(r,t){let e=r;switch(t){case Boolean:e=r!==null;break;case Number:e=r===null?null:Number(r);break;case Object:case Array:try{e=JSON.parse(r)}catch{e=null}}return e}},qo=(r,t)=>!xp(r,t),rl={attribute:!0,type:String,converter:io,reflect:!1,hasChanged:qo};Symbol.metadata??=Symbol("metadata"),Zo.litPropertyMetadata??=new WeakMap;var rr=class extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=rl){if(e.state&&(e.attribute=!1),this._$Ei(),this.elementProperties.set(t,e),!e.noAccessor){let i=Symbol(),n=this.getPropertyDescriptor(t,i,e);n!==void 0&&Sp(this.prototype,t,n)}}static getPropertyDescriptor(t,e,i){let{get:n,set:a}=Op(this.prototype,t)??{get(){return this[e]},set(s){this[e]=s}};return{get(){return n?.call(this)},set(s){let l=n?.call(this);a.call(this,s),this.requestUpdate(t,l,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??rl}static _$Ei(){if(this.hasOwnProperty(oo("elementProperties")))return;let t=Ep(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(oo("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(oo("properties"))){let e=this.properties,i=[...Cp(e),...wp(e)];for(let n of i)this.createProperty(n,e[n])}let t=this[Symbol.metadata];if(t!==null){let e=litPropertyMetadata.get(t);if(e!==void 0)for(let[i,n]of e)this.elementProperties.set(i,n)}this._$Eh=new Map;for(let[e,i]of this.elementProperties){let n=this._$Eu(e,i);n!==void 0&&this._$Eh.set(n,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){let e=[];if(Array.isArray(t)){let i=new Set(t.flat(1/0).reverse());for(let n of i)e.unshift(Ko(n))}else t!==void 0&&e.push(Ko(t));return e}static _$Eu(t,e){let i=e.attribute;return i===!1?void 0:typeof i=="string"?i:typeof t=="string"?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$Eg=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$ES(),this.requestUpdate(),this.constructor.l?.forEach(t=>t(this))}addController(t){(this._$E_??=new Set).add(t),this.renderRoot!==void 0&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$E_?.delete(t)}_$ES(){let t=new Map,e=this.constructor.elementProperties;for(let i of e.keys())this.hasOwnProperty(i)&&(t.set(i,this[i]),delete this[i]);t.size>0&&(this._$Ep=t)}createRenderRoot(){let t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return hn(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$E_?.forEach(t=>t.hostConnected?.())}enableUpdating(t){}disconnectedCallback(){this._$E_?.forEach(t=>t.hostDisconnected?.())}attributeChangedCallback(t,e,i){this._$AK(t,i)}_$EO(t,e){let i=this.constructor.elementProperties.get(t),n=this.constructor._$Eu(t,i);if(n!==void 0&&i.reflect===!0){let a=(i.converter?.toAttribute!==void 0?i.converter:io).toAttribute(e,i.type);this._$Em=t,a==null?this.removeAttribute(n):this.setAttribute(n,a),this._$Em=null}}_$AK(t,e){let i=this.constructor,n=i._$Eh.get(t);if(n!==void 0&&this._$Em!==n){let a=i.getPropertyOptions(n),s=typeof a.converter=="function"?{fromAttribute:a.converter}:a.converter?.fromAttribute!==void 0?a.converter:io;this._$Em=n,this[n]=s.fromAttribute(e,a.type),this._$Em=null}}requestUpdate(t,e,i,n=!1,a){if(t!==void 0){if(i??=this.constructor.getPropertyOptions(t),!(i.hasChanged??qo)(n?a:this[t],e))return;this.C(t,e,i)}this.isUpdatePending===!1&&(this._$Eg=this._$EP())}C(t,e,i){this._$AL.has(t)||this._$AL.set(t,e),i.reflect===!0&&this._$Em!==t&&(this._$Ej??=new Set).add(t)}async _$EP(){this.isUpdatePending=!0;try{await this._$Eg}catch(e){Promise.reject(e)}let t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(let[n,a]of this._$Ep)this[n]=a;this._$Ep=void 0}let i=this.constructor.elementProperties;if(i.size>0)for(let[n,a]of i)a.wrapped!==!0||this._$AL.has(n)||this[n]===void 0||this.C(n,this[n],a)}let t=!1,e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),this._$E_?.forEach(i=>i.hostUpdate?.()),this.update(e)):this._$ET()}catch(i){throw t=!1,this._$ET(),i}t&&this._$AE(e)}willUpdate(t){}_$AE(t){this._$E_?.forEach(e=>e.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$ET(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$Eg}shouldUpdate(t){return!0}update(t){this._$Ej&&=this._$Ej.forEach(e=>this._$EO(e,this[e])),this._$ET()}updated(t){}firstUpdated(t){}};rr.elementStyles=[],rr.shadowRootOptions={mode:"open"},rr[oo("elementProperties")]=new Map,rr[oo("finalized")]=new Map,Rp?.({ReactiveElement:rr}),(Zo.reactiveElementVersions??=[]).push("2.0.2");var yn=globalThis,Yo=yn.trustedTypes,ol=Yo?Yo.createPolicy("lit-html",{createHTML:r=>r}):void 0,gn="$lit$",be=`lit$${(Math.random()+"").slice(9)}$`,bn="?"+be,_p=`<${bn}>`,nr=document,Xo=()=>nr.createComment(""),ao=r=>r===null||typeof r!="object"&&typeof r!="function",cl=Array.isArray,dl=r=>cl(r)||typeof r?.[Symbol.iterator]=="function",mn=`[
3
- \f\r]`,no=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,il=/-->/g,nl=/>/g,or=RegExp(`>|${mn}(?:([^\\s"'>=/]+)(${mn}*=${mn}*(?:[^
4
- \f\r"'\`<>=]|("|')|))|$)`,"g"),al=/'/g,sl=/"/g,pl=/^(?:script|style|textarea|title)$/i,ul=r=>(t,...e)=>({_$litType$:r,strings:t,values:e}),fl=ul(1),hl=ul(2),jt=Symbol.for("lit-noChange"),ht=Symbol.for("lit-nothing"),ll=new WeakMap,ir=nr.createTreeWalker(nr,129);function ml(r,t){if(!Array.isArray(r)||!r.hasOwnProperty("raw"))throw Error("invalid template strings array");return ol!==void 0?ol.createHTML(t):t}var yl=(r,t)=>{let e=r.length-1,i=[],n,a=t===2?"<svg>":"",s=no;for(let l=0;l<e;l++){let d=r[l],p,f,h=-1,m=0;for(;m<d.length&&(s.lastIndex=m,f=s.exec(d),f!==null);)m=s.lastIndex,s===no?f[1]==="!--"?s=il:f[1]!==void 0?s=nl:f[2]!==void 0?(pl.test(f[2])&&(n=RegExp("</"+f[2],"g")),s=or):f[3]!==void 0&&(s=or):s===or?f[0]===">"?(s=n??no,h=-1):f[1]===void 0?h=-2:(h=s.lastIndex-f[2].length,p=f[1],s=f[3]===void 0?or:f[3]==='"'?sl:al):s===sl||s===al?s=or:s===il||s===nl?s=no:(s=or,n=void 0);let v=s===or&&r[l+1].startsWith("/>")?" ":"";a+=s===no?d+_p:h>=0?(i.push(p),d.slice(0,h)+gn+d.slice(h)+be+v):d+be+(h===-2?l:v)}return[ml(r,a+(r[e]||"<?>")+(t===2?"</svg>":"")),i]},so=class r{constructor({strings:t,_$litType$:e},i){let n;this.parts=[];let a=0,s=0,l=t.length-1,d=this.parts,[p,f]=yl(t,e);if(this.el=r.createElement(p,i),ir.currentNode=this.el.content,e===2){let h=this.el.content.firstChild;h.replaceWith(...h.childNodes)}for(;(n=ir.nextNode())!==null&&d.length<l;){if(n.nodeType===1){if(n.hasAttributes())for(let h of n.getAttributeNames())if(h.endsWith(gn)){let m=f[s++],v=n.getAttribute(h).split(be),S=/([.?@])?(.*)/.exec(m);d.push({type:1,index:a,name:S[2],strings:v,ctor:S[1]==="."?Qo:S[1]==="?"?ti:S[1]==="@"?ei:sr}),n.removeAttribute(h)}else h.startsWith(be)&&(d.push({type:6,index:a}),n.removeAttribute(h));if(pl.test(n.tagName)){let h=n.textContent.split(be),m=h.length-1;if(m>0){n.textContent=Yo?Yo.emptyScript:"";for(let v=0;v<m;v++)n.append(h[v],Xo()),ir.nextNode(),d.push({type:2,index:++a});n.append(h[m],Xo())}}}else if(n.nodeType===8)if(n.data===bn)d.push({type:2,index:a});else{let h=-1;for(;(h=n.data.indexOf(be,h+1))!==-1;)d.push({type:7,index:a}),h+=be.length-1}a++}}static createElement(t,e){let i=nr.createElement("template");return i.innerHTML=t,i}};function ar(r,t,e=r,i){if(t===jt)return t;let n=i!==void 0?e._$Co?.[i]:e._$Cl,a=ao(t)?void 0:t._$litDirective$;return n?.constructor!==a&&(n?._$AO?.(!1),a===void 0?n=void 0:(n=new a(r),n._$AT(r,e,i)),i!==void 0?(e._$Co??=[])[i]=n:e._$Cl=n),n!==void 0&&(t=ar(r,n._$AS(r,t.values),n,i)),t}var Jo=class{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){let{el:{content:e},parts:i}=this._$AD,n=(t?.creationScope??nr).importNode(e,!0);ir.currentNode=n;let a=ir.nextNode(),s=0,l=0,d=i[0];for(;d!==void 0;){if(s===d.index){let p;d.type===2?p=new lo(a,a.nextSibling,this,t):d.type===1?p=new d.ctor(a,d.name,d.strings,this,t):d.type===6&&(p=new ri(a,this,t)),this._$AV.push(p),d=i[++l]}s!==d?.index&&(a=ir.nextNode(),s++)}return ir.currentNode=nr,n}p(t){let e=0;for(let i of this._$AV)i!==void 0&&(i.strings!==void 0?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}},lo=class r{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,i,n){this.type=2,this._$AH=ht,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=n,this._$Cv=n?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode,e=this._$AM;return e!==void 0&&t?.nodeType===11&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=ar(this,t,e),ao(t)?t===ht||t==null||t===""?(this._$AH!==ht&&this._$AR(),this._$AH=ht):t!==this._$AH&&t!==jt&&this._(t):t._$litType$!==void 0?this.g(t):t.nodeType!==void 0?this.$(t):dl(t)?this.T(t):this._(t)}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}_(t){this._$AH!==ht&&ao(this._$AH)?this._$AA.nextSibling.data=t:this.$(nr.createTextNode(t)),this._$AH=t}g(t){let{values:e,_$litType$:i}=t,n=typeof i=="number"?this._$AC(t):(i.el===void 0&&(i.el=so.createElement(ml(i.h,i.h[0]),this.options)),i);if(this._$AH?._$AD===n)this._$AH.p(e);else{let a=new Jo(n,this),s=a.u(this.options);a.p(e),this.$(s),this._$AH=a}}_$AC(t){let e=ll.get(t.strings);return e===void 0&&ll.set(t.strings,e=new so(t)),e}T(t){cl(this._$AH)||(this._$AH=[],this._$AR());let e=this._$AH,i,n=0;for(let a of t)n===e.length?e.push(i=new r(this.k(Xo()),this.k(Xo()),this,this.options)):i=e[n],i._$AI(a),n++;n<e.length&&(this._$AR(i&&i._$AB.nextSibling,n),e.length=n)}_$AR(t=this._$AA.nextSibling,e){for(this._$AP?.(!1,!0,e);t&&t!==this._$AB;){let i=t.nextSibling;t.remove(),t=i}}setConnected(t){this._$AM===void 0&&(this._$Cv=t,this._$AP?.(t))}},sr=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,i,n,a){this.type=1,this._$AH=ht,this._$AN=void 0,this.element=t,this.name=e,this._$AM=n,this.options=a,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=ht}_$AI(t,e=this,i,n){let a=this.strings,s=!1;if(a===void 0)t=ar(this,t,e,0),s=!ao(t)||t!==this._$AH&&t!==jt,s&&(this._$AH=t);else{let l=t,d,p;for(t=a[0],d=0;d<a.length-1;d++)p=ar(this,l[i+d],e,d),p===jt&&(p=this._$AH[d]),s||=!ao(p)||p!==this._$AH[d],p===ht?t=ht:t!==ht&&(t+=(p??"")+a[d+1]),this._$AH[d]=p}s&&!n&&this.O(t)}O(t){t===ht?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},Qo=class extends sr{constructor(){super(...arguments),this.type=3}O(t){this.element[this.name]=t===ht?void 0:t}},ti=class extends sr{constructor(){super(...arguments),this.type=4}O(t){this.element.toggleAttribute(this.name,!!t&&t!==ht)}},ei=class extends sr{constructor(t,e,i,n,a){super(t,e,i,n,a),this.type=5}_$AI(t,e=this){if((t=ar(this,t,e,0)??ht)===jt)return;let i=this._$AH,n=t===ht&&i!==ht||t.capture!==i.capture||t.once!==i.once||t.passive!==i.passive,a=t!==ht&&(i===ht||n);n&&this.element.removeEventListener(this.name,this,i),a&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}},ri=class{constructor(t,e,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){ar(this,t)}},gl={j:gn,P:be,A:bn,C:1,M:yl,L:Jo,R:dl,V:ar,D:lo,I:sr,H:ti,N:ei,U:Qo,B:ri},Np=yn.litHtmlPolyfillSupport;Np?.(so,lo),(yn.litHtmlVersions??=[]).push("3.1.0");var oi=globalThis,co=oi.ShadowRoot&&(oi.ShadyCSS===void 0||oi.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,vn=Symbol(),bl=new WeakMap,Tr=class{constructor(t,e,i){if(this._$cssResult$=!0,i!==vn)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o,e=this.t;if(co&&t===void 0){let i=e!==void 0&&e.length===1;i&&(t=bl.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),i&&bl.set(e,t))}return t}toString(){return this.cssText}},ve=r=>new Tr(typeof r=="string"?r:r+"",void 0,vn),P=(r,...t)=>{let e=r.length===1?r[0]:t.reduce((i,n,a)=>i+(s=>{if(s._$cssResult$===!0)return s.cssText;if(typeof s=="number")return s;throw Error("Value passed to 'css' function must be a 'css' function result: "+s+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(n)+r[a+1],r[0]);return new Tr(e,r,vn)},ii=(r,t)=>{if(co)r.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(let e of t){let i=document.createElement("style"),n=oi.litNonce;n!==void 0&&i.setAttribute("nonce",n),i.textContent=e.cssText,r.appendChild(i)}},po=co?r=>r:r=>r instanceof CSSStyleSheet?(t=>{let e="";for(let i of t.cssRules)e+=i.cssText;return ve(e)})(r):r;var{is:Ip,defineProperty:Tp,getOwnPropertyDescriptor:$p,getOwnPropertyNames:Pp,getOwnPropertySymbols:Lp,getPrototypeOf:kp}=Object,ai=globalThis,vl=ai.trustedTypes,Dp=vl?vl.emptyScript:"",Mp=ai.reactiveElementPolyfillSupport,uo=(r,t)=>r,ni={toAttribute(r,t){switch(t){case Boolean:r=r?Dp:null;break;case Object:case Array:r=r==null?r:JSON.stringify(r)}return r},fromAttribute(r,t){let e=r;switch(t){case Boolean:e=r!==null;break;case Number:e=r===null?null:Number(r);break;case Object:case Array:try{e=JSON.parse(r)}catch{e=null}}return e}},xn=(r,t)=>!Ip(r,t),xl={attribute:!0,type:String,converter:ni,reflect:!1,hasChanged:xn};Symbol.metadata??=Symbol("metadata"),ai.litPropertyMetadata??=new WeakMap;var se=class extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=xl){if(e.state&&(e.attribute=!1),this._$Ei(),this.elementProperties.set(t,e),!e.noAccessor){let i=Symbol(),n=this.getPropertyDescriptor(t,i,e);n!==void 0&&Tp(this.prototype,t,n)}}static getPropertyDescriptor(t,e,i){let{get:n,set:a}=$p(this.prototype,t)??{get(){return this[e]},set(s){this[e]=s}};return{get(){return n?.call(this)},set(s){let l=n?.call(this);a.call(this,s),this.requestUpdate(t,l,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??xl}static _$Ei(){if(this.hasOwnProperty(uo("elementProperties")))return;let t=kp(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(uo("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(uo("properties"))){let e=this.properties,i=[...Pp(e),...Lp(e)];for(let n of i)this.createProperty(n,e[n])}let t=this[Symbol.metadata];if(t!==null){let e=litPropertyMetadata.get(t);if(e!==void 0)for(let[i,n]of e)this.elementProperties.set(i,n)}this._$Eh=new Map;for(let[e,i]of this.elementProperties){let n=this._$Eu(e,i);n!==void 0&&this._$Eh.set(n,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){let e=[];if(Array.isArray(t)){let i=new Set(t.flat(1/0).reverse());for(let n of i)e.unshift(po(n))}else t!==void 0&&e.push(po(t));return e}static _$Eu(t,e){let i=e.attribute;return i===!1?void 0:typeof i=="string"?i:typeof t=="string"?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$Eg=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$ES(),this.requestUpdate(),this.constructor.l?.forEach(t=>t(this))}addController(t){(this._$E_??=new Set).add(t),this.renderRoot!==void 0&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$E_?.delete(t)}_$ES(){let t=new Map,e=this.constructor.elementProperties;for(let i of e.keys())this.hasOwnProperty(i)&&(t.set(i,this[i]),delete this[i]);t.size>0&&(this._$Ep=t)}createRenderRoot(){let t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return ii(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$E_?.forEach(t=>t.hostConnected?.())}enableUpdating(t){}disconnectedCallback(){this._$E_?.forEach(t=>t.hostDisconnected?.())}attributeChangedCallback(t,e,i){this._$AK(t,i)}_$EO(t,e){let i=this.constructor.elementProperties.get(t),n=this.constructor._$Eu(t,i);if(n!==void 0&&i.reflect===!0){let a=(i.converter?.toAttribute!==void 0?i.converter:ni).toAttribute(e,i.type);this._$Em=t,a==null?this.removeAttribute(n):this.setAttribute(n,a),this._$Em=null}}_$AK(t,e){let i=this.constructor,n=i._$Eh.get(t);if(n!==void 0&&this._$Em!==n){let a=i.getPropertyOptions(n),s=typeof a.converter=="function"?{fromAttribute:a.converter}:a.converter?.fromAttribute!==void 0?a.converter:ni;this._$Em=n,this[n]=s.fromAttribute(e,a.type),this._$Em=null}}requestUpdate(t,e,i,n=!1,a){if(t!==void 0){if(i??=this.constructor.getPropertyOptions(t),!(i.hasChanged??xn)(n?a:this[t],e))return;this.C(t,e,i)}this.isUpdatePending===!1&&(this._$Eg=this._$EP())}C(t,e,i){this._$AL.has(t)||this._$AL.set(t,e),i.reflect===!0&&this._$Em!==t&&(this._$Ej??=new Set).add(t)}async _$EP(){this.isUpdatePending=!0;try{await this._$Eg}catch(e){Promise.reject(e)}let t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(let[n,a]of this._$Ep)this[n]=a;this._$Ep=void 0}let i=this.constructor.elementProperties;if(i.size>0)for(let[n,a]of i)a.wrapped!==!0||this._$AL.has(n)||this[n]===void 0||this.C(n,this[n],a)}let t=!1,e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),this._$E_?.forEach(i=>i.hostUpdate?.()),this.update(e)):this._$ET()}catch(i){throw t=!1,this._$ET(),i}t&&this._$AE(e)}willUpdate(t){}_$AE(t){this._$E_?.forEach(e=>e.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$ET(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$Eg}shouldUpdate(t){return!0}update(t){this._$Ej&&=this._$Ej.forEach(e=>this._$EO(e,this[e])),this._$ET()}updated(t){}firstUpdated(t){}};se.elementStyles=[],se.shadowRootOptions={mode:"open"},se[uo("elementProperties")]=new Map,se[uo("finalized")]=new Map,Mp?.({ReactiveElement:se}),(ai.reactiveElementVersions??=[]).push("2.0.2");var On=globalThis,si=On.trustedTypes,Sl=si?si.createPolicy("lit-html",{createHTML:r=>r}):void 0,Cn="$lit$",xe=`lit$${(Math.random()+"").slice(9)}$`,wn="?"+xe,Bp=`<${wn}>`,dr=document,ho=()=>dr.createComment(""),mo=r=>r===null||typeof r!="object"&&typeof r!="function",Rl=Array.isArray,_l=r=>Rl(r)||typeof r?.[Symbol.iterator]=="function",Sn=`[
5
- \f\r]`,fo=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Ol=/-->/g,Cl=/>/g,lr=RegExp(`>|${Sn}(?:([^\\s"'>=/]+)(${Sn}*=${Sn}*(?:[^
6
- \f\r"'\`<>=]|("|')|))|$)`,"g"),wl=/'/g,El=/"/g,Nl=/^(?:script|style|textarea|title)$/i,Il=r=>(t,...e)=>({_$litType$:r,strings:t,values:e}),L=Il(1),Fp=Il(2),ke=Symbol.for("lit-noChange"),H=Symbol.for("lit-nothing"),Al=new WeakMap,cr=dr.createTreeWalker(dr,129);function Tl(r,t){if(!Array.isArray(r)||!r.hasOwnProperty("raw"))throw Error("invalid template strings array");return Sl!==void 0?Sl.createHTML(t):t}var $l=(r,t)=>{let e=r.length-1,i=[],n,a=t===2?"<svg>":"",s=fo;for(let l=0;l<e;l++){let d=r[l],p,f,h=-1,m=0;for(;m<d.length&&(s.lastIndex=m,f=s.exec(d),f!==null);)m=s.lastIndex,s===fo?f[1]==="!--"?s=Ol:f[1]!==void 0?s=Cl:f[2]!==void 0?(Nl.test(f[2])&&(n=RegExp("</"+f[2],"g")),s=lr):f[3]!==void 0&&(s=lr):s===lr?f[0]===">"?(s=n??fo,h=-1):f[1]===void 0?h=-2:(h=s.lastIndex-f[2].length,p=f[1],s=f[3]===void 0?lr:f[3]==='"'?El:wl):s===El||s===wl?s=lr:s===Ol||s===Cl?s=fo:(s=lr,n=void 0);let v=s===lr&&r[l+1].startsWith("/>")?" ":"";a+=s===fo?d+Bp:h>=0?(i.push(p),d.slice(0,h)+Cn+d.slice(h)+xe+v):d+xe+(h===-2?l:v)}return[Tl(r,a+(r[e]||"<?>")+(t===2?"</svg>":"")),i]},yo=class r{constructor({strings:t,_$litType$:e},i){let n;this.parts=[];let a=0,s=0,l=t.length-1,d=this.parts,[p,f]=$l(t,e);if(this.el=r.createElement(p,i),cr.currentNode=this.el.content,e===2){let h=this.el.content.firstChild;h.replaceWith(...h.childNodes)}for(;(n=cr.nextNode())!==null&&d.length<l;){if(n.nodeType===1){if(n.hasAttributes())for(let h of n.getAttributeNames())if(h.endsWith(Cn)){let m=f[s++],v=n.getAttribute(h).split(xe),S=/([.?@])?(.*)/.exec(m);d.push({type:1,index:a,name:S[2],strings:v,ctor:S[1]==="."?ci:S[1]==="?"?di:S[1]==="@"?pi:ur}),n.removeAttribute(h)}else h.startsWith(xe)&&(d.push({type:6,index:a}),n.removeAttribute(h));if(Nl.test(n.tagName)){let h=n.textContent.split(xe),m=h.length-1;if(m>0){n.textContent=si?si.emptyScript:"";for(let v=0;v<m;v++)n.append(h[v],ho()),cr.nextNode(),d.push({type:2,index:++a});n.append(h[m],ho())}}}else if(n.nodeType===8)if(n.data===wn)d.push({type:2,index:a});else{let h=-1;for(;(h=n.data.indexOf(xe,h+1))!==-1;)d.push({type:7,index:a}),h+=xe.length-1}a++}}static createElement(t,e){let i=dr.createElement("template");return i.innerHTML=t,i}};function pr(r,t,e=r,i){if(t===ke)return t;let n=i!==void 0?e._$Co?.[i]:e._$Cl,a=mo(t)?void 0:t._$litDirective$;return n?.constructor!==a&&(n?._$AO?.(!1),a===void 0?n=void 0:(n=new a(r),n._$AT(r,e,i)),i!==void 0?(e._$Co??=[])[i]=n:e._$Cl=n),n!==void 0&&(t=pr(r,n._$AS(r,t.values),n,i)),t}var li=class{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){let{el:{content:e},parts:i}=this._$AD,n=(t?.creationScope??dr).importNode(e,!0);cr.currentNode=n;let a=cr.nextNode(),s=0,l=0,d=i[0];for(;d!==void 0;){if(s===d.index){let p;d.type===2?p=new $r(a,a.nextSibling,this,t):d.type===1?p=new d.ctor(a,d.name,d.strings,this,t):d.type===6&&(p=new ui(a,this,t)),this._$AV.push(p),d=i[++l]}s!==d?.index&&(a=cr.nextNode(),s++)}return cr.currentNode=dr,n}p(t){let e=0;for(let i of this._$AV)i!==void 0&&(i.strings!==void 0?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}},$r=class r{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,i,n){this.type=2,this._$AH=H,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=n,this._$Cv=n?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode,e=this._$AM;return e!==void 0&&t?.nodeType===11&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=pr(this,t,e),mo(t)?t===H||t==null||t===""?(this._$AH!==H&&this._$AR(),this._$AH=H):t!==this._$AH&&t!==ke&&this._(t):t._$litType$!==void 0?this.g(t):t.nodeType!==void 0?this.$(t):_l(t)?this.T(t):this._(t)}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}_(t){this._$AH!==H&&mo(this._$AH)?this._$AA.nextSibling.data=t:this.$(dr.createTextNode(t)),this._$AH=t}g(t){let{values:e,_$litType$:i}=t,n=typeof i=="number"?this._$AC(t):(i.el===void 0&&(i.el=yo.createElement(Tl(i.h,i.h[0]),this.options)),i);if(this._$AH?._$AD===n)this._$AH.p(e);else{let a=new li(n,this),s=a.u(this.options);a.p(e),this.$(s),this._$AH=a}}_$AC(t){let e=Al.get(t.strings);return e===void 0&&Al.set(t.strings,e=new yo(t)),e}T(t){Rl(this._$AH)||(this._$AH=[],this._$AR());let e=this._$AH,i,n=0;for(let a of t)n===e.length?e.push(i=new r(this.k(ho()),this.k(ho()),this,this.options)):i=e[n],i._$AI(a),n++;n<e.length&&(this._$AR(i&&i._$AB.nextSibling,n),e.length=n)}_$AR(t=this._$AA.nextSibling,e){for(this._$AP?.(!1,!0,e);t&&t!==this._$AB;){let i=t.nextSibling;t.remove(),t=i}}setConnected(t){this._$AM===void 0&&(this._$Cv=t,this._$AP?.(t))}},ur=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,i,n,a){this.type=1,this._$AH=H,this._$AN=void 0,this.element=t,this.name=e,this._$AM=n,this.options=a,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=H}_$AI(t,e=this,i,n){let a=this.strings,s=!1;if(a===void 0)t=pr(this,t,e,0),s=!mo(t)||t!==this._$AH&&t!==ke,s&&(this._$AH=t);else{let l=t,d,p;for(t=a[0],d=0;d<a.length-1;d++)p=pr(this,l[i+d],e,d),p===ke&&(p=this._$AH[d]),s||=!mo(p)||p!==this._$AH[d],p===H?t=H:t!==H&&(t+=(p??"")+a[d+1]),this._$AH[d]=p}s&&!n&&this.O(t)}O(t){t===H?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},ci=class extends ur{constructor(){super(...arguments),this.type=3}O(t){this.element[this.name]=t===H?void 0:t}},di=class extends ur{constructor(){super(...arguments),this.type=4}O(t){this.element.toggleAttribute(this.name,!!t&&t!==H)}},pi=class extends ur{constructor(t,e,i,n,a){super(t,e,i,n,a),this.type=5}_$AI(t,e=this){if((t=pr(this,t,e,0)??H)===ke)return;let i=this._$AH,n=t===H&&i!==H||t.capture!==i.capture||t.once!==i.once||t.passive!==i.passive,a=t!==H&&(i===H||n);n&&this.element.removeEventListener(this.name,this,i),a&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}},ui=class{constructor(t,e,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){pr(this,t)}},Up={j:Cn,P:xe,A:wn,C:1,M:$l,L:li,R:_l,V:pr,D:$r,I:ur,H:di,N:pi,U:ci,B:ui},Wp=On.litHtmlPolyfillSupport;Wp?.(yo,$r),(On.litHtmlVersions??=[]).push("3.1.0");var En=(r,t,e)=>{let i=e?.renderBefore??t,n=i._$litPart$;if(n===void 0){let a=e?.renderBefore??null;i._$litPart$=n=new $r(t.insertBefore(ho(),a),a,void 0,e??{})}return n._$AI(r),n};var Se=class extends se{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){let t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){let e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=En(e,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return ke}};Se._$litElement$=!0,Se.finalized=!0,globalThis.litElementHydrateSupport?.({LitElement:Se});var Hp=globalThis.litElementPolyfillSupport;Hp?.({LitElement:Se});var zp={_$AK:(r,t,e)=>{r._$AK(t,e)},_$AL:r=>r._$AL};(globalThis.litElementVersions??=[]).push("4.0.2");var Nh=!1;var _n={};rt(_n,{customElement:()=>Vp,eventOptions:()=>Oe,property:()=>g,query:()=>X,queryAll:()=>Kp,queryAssignedElements:()=>Rn,queryAssignedNodes:()=>go,queryAsync:()=>Zp,standardProperty:()=>Pl,state:()=>z});var Vp=r=>(t,e)=>{e!==void 0?e.addInitializer(()=>{customElements.define(r,t)}):customElements.define(r,t)};var jp={attribute:!0,type:String,converter:io,reflect:!1,hasChanged:qo},Pl=(r=jp,t,e)=>{let{kind:i,metadata:n}=e,a=globalThis.litPropertyMetadata.get(n);if(a===void 0&&globalThis.litPropertyMetadata.set(n,a=new Map),a.set(e.name,r),i==="accessor"){let{name:s}=e;return{set(l){let d=t.get.call(this);t.set.call(this,l),this.requestUpdate(s,d,r)},init(l){return l!==void 0&&this.C(s,void 0,r),l}}}if(i==="setter"){let{name:s}=e;return function(l){let d=this[s];t.call(this,l),this.requestUpdate(s,d,r)}}throw Error("Unsupported decorator location: "+i)};function g(r){return(t,e)=>typeof e=="object"?Pl(r,t,e):((i,n,a)=>{let s=n.hasOwnProperty(a);return n.constructor.createProperty(a,s?{...i,wrapped:!0}:i),s?Object.getOwnPropertyDescriptor(n,a):void 0})(r,t,e)}function z(r){return g({...r,state:!0,attribute:!1})}function Oe(r){return(t,e)=>{let i=typeof t=="function"?t:t[e];Object.assign(i,r)}}var Jt=(r,t,e)=>(e.configurable=!0,e.enumerable=!0,Reflect.decorate&&typeof t!="object"&&Object.defineProperty(r,t,e),e);function X(r,t){return(e,i,n)=>{let a=s=>s.renderRoot?.querySelector(r)??null;if(t){let{get:s,set:l}=typeof i=="object"?e:n??(()=>{let d=Symbol();return{get(){return this[d]},set(p){this[d]=p}}})();return Jt(e,i,{get(){let d=s.call(this);return d===void 0&&(d=a(this),(d!==null||this.hasUpdated)&&l.call(this,d)),d}})}return Jt(e,i,{get(){return a(this)}})}}var Gp;function Kp(r){return(t,e)=>Jt(t,e,{get(){return(this.renderRoot??(Gp??=document.createDocumentFragment())).querySelectorAll(r)}})}function Zp(r){return(t,e)=>Jt(t,e,{async get(){return await this.updateComplete,this.renderRoot?.querySelector(r)??null}})}function Rn(r){return(t,e)=>{let{slot:i,selector:n}=r??{},a="slot"+(i?`[name=${i}]`:":not([name])");return Jt(t,e,{get(){let s=this.renderRoot?.querySelector(a),l=s?.assignedElements(r)??[];return n===void 0?l:l.filter(d=>d.matches(n))}})}}function go(r){return(t,e)=>{let{slot:i}=r??{},n="slot"+(i?`[name=${i}]`:":not([name])");return Jt(t,e,{get(){return this.renderRoot?.querySelector(n)?.assignedNodes(r)??[]}})}}var In={};rt(In,{repeat:()=>Nn});var De={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},Me=r=>(...t)=>({_$litDirective$:r,values:t}),le=class{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,i){this._$Ct=t,this._$AM=e,this._$Ci=i}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}};var{D:qp}=gl;var Ll=()=>document.createComment(""),Pr=(r,t,e)=>{let i=r._$AA.parentNode,n=t===void 0?r._$AB:t._$AA;if(e===void 0){let a=i.insertBefore(Ll(),n),s=i.insertBefore(Ll(),n);e=new qp(a,s,r,r.options)}else{let a=e._$AB.nextSibling,s=e._$AM,l=s!==r;if(l){let d;e._$AQ?.(r),e._$AM=r,e._$AP!==void 0&&(d=r._$AU)!==s._$AU&&e._$AP(d)}if(a!==n||l){let d=e._$AA;for(;d!==a;){let p=d.nextSibling;i.insertBefore(d,n),d=p}}}return e},Be=(r,t,e=r)=>(r._$AI(t,e),r),Yp={},kl=(r,t=Yp)=>r._$AH=t,Dl=r=>r._$AH,fi=r=>{r._$AP?.(!1,!0);let t=r._$AA,e=r._$AB.nextSibling;for(;t!==e;){let i=t.nextSibling;t.remove(),t=i}};var Ml=(r,t,e)=>{let i=new Map;for(let n=t;n<=e;n++)i.set(r[n],n);return i},Nn=Me(class extends le{constructor(r){if(super(r),r.type!==De.CHILD)throw Error("repeat() can only be used in text expressions")}ht(r,t,e){let i;e===void 0?e=t:t!==void 0&&(i=t);let n=[],a=[],s=0;for(let l of r)n[s]=i?i(l,s):s,a[s]=e(l,s),s++;return{values:a,keys:n}}render(r,t,e){return this.ht(r,t,e).values}update(r,[t,e,i]){let n=Dl(r),{values:a,keys:s}=this.ht(t,e,i);if(!Array.isArray(n))return this.dt=s,a;let l=this.dt??=[],d=[],p,f,h=0,m=n.length-1,v=0,S=a.length-1;for(;h<=m&&v<=S;)if(n[h]===null)h++;else if(n[m]===null)m--;else if(l[h]===s[v])d[v]=Be(n[h],a[v]),h++,v++;else if(l[m]===s[S])d[S]=Be(n[m],a[S]),m--,S--;else if(l[h]===s[S])d[S]=Be(n[h],a[S]),Pr(r,d[S+1],n[h]),h++,S--;else if(l[m]===s[v])d[v]=Be(n[m],a[v]),Pr(r,n[h],n[m]),m--,v++;else if(p===void 0&&(p=Ml(s,v,S),f=Ml(l,h,m)),p.has(l[h]))if(p.has(l[m])){let E=f.get(s[v]),$=E!==void 0?n[E]:null;if($===null){let _=Pr(r,n[h]);Be(_,a[v]),d[v]=_}else d[v]=Be($,a[v]),Pr(r,n[h],$),n[E]=null;v++}else fi(n[m]),m--;else fi(n[h]),h++;for(;v<=S;){let E=Pr(r,d[S+1]);Be(E,a[v]),d[v++]=E}for(;h<=m;){let E=n[h++];E!==null&&fi(E)}return this.dt=s,kl(r,d),jt}});var Tn={};rt(Tn,{classMap:()=>Lt});var Lt=Me(class extends le{constructor(r){if(super(r),r.type!==De.ATTRIBUTE||r.name!=="class"||r.strings?.length>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(r){return" "+Object.keys(r).filter(t=>r[t]).join(" ")+" "}update(r,[t]){if(this.it===void 0){this.it=new Set,r.strings!==void 0&&(this.st=new Set(r.strings.join(" ").split(/\s/).filter(i=>i!=="")));for(let i in t)t[i]&&!this.st?.has(i)&&this.it.add(i);return this.render(t)}let e=r.element.classList;for(let i of this.it)i in t||(e.remove(i),this.it.delete(i));for(let i in t){let n=!!t[i];n===this.it.has(i)||this.st?.has(i)||(n?(e.add(i),this.it.add(i)):(e.remove(i),this.it.delete(i)))}return jt}});var $n={};rt($n,{styleMap:()=>Jp});var Bl="important",Xp=" !"+Bl,Jp=Me(class extends le{constructor(r){if(super(r),r.type!==De.ATTRIBUTE||r.name!=="style"||r.strings?.length>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(r){return Object.keys(r).reduce((t,e)=>{let i=r[e];return i==null?t:t+`${e=e.includes("-")?e:e.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${i};`},"")}update(r,[t]){let{style:e}=r.element;if(this.ut===void 0)return this.ut=new Set(Object.keys(t)),this.render(t);for(let i of this.ut)t[i]==null&&(this.ut.delete(i),i.includes("-")?e.removeProperty(i):e[i]=null);for(let i in t){let n=t[i];if(n!=null){this.ut.add(i);let a=typeof n=="string"&&n.endsWith(Xp);i.includes("-")||a?e.setProperty(i,a?n.slice(0,-11):n,a?Bl:""):e[i]=n}}return jt}});var Ln={};rt(Ln,{UnsafeHTMLDirective:()=>Lr,unsafeHTML:()=>Pn});var Lr=class extends le{constructor(t){if(super(t),this.et=ht,t.type!==De.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===ht||t==null)return this.vt=void 0,this.et=t;if(t===jt)return t;if(typeof t!="string")throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.et)return this.vt;this.et=t;let e=[t];return e.raw=e,this.vt={_$litType$:this.constructor.resultType,strings:e,values:[]}}};Lr.directiveName="unsafeHTML",Lr.resultType=1;var Pn=Me(Lr);var Mn={};rt(Mn,{CacheRegistry:()=>ce});var Dn={};rt(Dn,{CancelablePromise:()=>kr,CanceledPromiseError:()=>fr,cancelable:()=>kn});var fr=class extends Error{constructor(t,e,i){super(t),this.canceledPromiseResult=e,this.canceledPromiseError=i}},kr=class extends Promise{constructor(t){super((e,i)=>t(n=>{this.isCanceled?i(new fr("Promise has been canceled",n)):e(n)},n=>{this.isCanceled?i(new fr("Promise has been canceled",void 0,n)):i(n)})),this.isCanceled=!1}cancel(){this.isCanceled=!0}},kn=r=>new kr((t,e)=>r.then(t).catch(e));var ce=class{constructor(){this.loaders={},this.content={},this.clearTimeouts={},this.finalContent=new Set}register(t,e){this.loaders[t]=e,this.finalContent.delete(t)}registerFinal(t,e){this.loaders[t]=e,this.finalContent.add(t)}clearAll(){for(let t in this.content)this.clear(t)}clear(t){this.finalContent.has(t)||this.forceClear(t)}forceClear(t){this.clearClearTimeout(t),this.content[t]instanceof kr&&this.content[t].cancel(),delete this.content[t]}clearClearTimeout(t){this.clearTimeouts[t]!=null&&(window.clearTimeout(this.clearTimeouts[t]),delete this.clearTimeouts[t])}set(t,e){this.forceClear(t),this.register(t,async()=>e),this.content[t]=e}setFinal(t,e){this.forceClear(t),this.registerFinal(t,async()=>e),this.content[t]=e}async get(t,e,i){if(this.content[t]===void 0){if(e=e??this.loaders[t],e==null)throw new Error("Unknown cache key "+t);let n=kn(e());return this.content[t]=n,n.then(a=>(this.content[t]=a,i!=null&&(this.clearClearTimeout(t),this.clearTimeouts[t]=window.setTimeout(()=>this.clear(t),i)),a))}if(this.content[t]instanceof Error)throw this.content[t];return this.content[t]}isResolvedValue(t){return t!=null&&!(t instanceof Promise)&&!(t instanceof Error)}getNow(t){if(this.isResolvedValue(this.content[t]))return this.content[t]}has(t){return this.content[t]!=null}resolvedKeys(){return Object.keys(this.content).filter(t=>this.isResolvedValue(this.content[t]))}resolvedValues(){return Object.values(this.content).filter(t=>this.isResolvedValue(t))}keys(){return Object.keys(this.content)}values(){return Object.values(this.content)}};var Bn={};rt(Bn,{ClusteringHelper:()=>bo});var bo=class r{constructor(t,e,i,n){this.allResults=t,this.selectedResult=e,this.clusteringMetadata=i,this.metadataDescriptors=n}static extractResultMetadata(t,e){var i,n;let a=((n=(i=t?.map)!==null&&i!==void 0?i:t?.document)!==null&&n!==void 0?n:t?.topic).metadata;return e==null?r.flattenMetadata(a):r.flattenMetadata(a.find(s=>s.key===e))}static flattenMetadata(t){if(Array.isArray(t))return t.map(i=>r.flattenMetadata(i)).filter(i=>i!=null);let e=t?.hierarchicalValues!=null&&t.hierarchicalValues.length>0;if(!(t==null||t.values.length==0&&!e))if(e){let i=[],n=[];return t.hierarchicalValues.forEach(a=>{i.push(a.join(" > ")),a.length>2?n.push(`... > ${a[a.length-1]}`):n.push(a.join(" > "))}),{key:t.key,label:t.label,value:i.join(", "),displayValue:n.join(", ")}}else{let i=t.values.join(", ");return{key:t.key,label:t.label,value:i,displayValue:i}}}computeClustersItemsForMetadata(t,e,i="No value"){var n,a;let s=r.extractResultMetadata(this.selectedResult,t),l=(n=s?.label)!==null&&n!==void 0?n:(a=this.getMetadataDescriptor(t))===null||a===void 0?void 0:a.label;return this.allResults.map(p=>r.extractResultMetadata(p,t)).map(p=>p??{key:t,label:l,value:void 0,displayValue:i}).filter(p=>p.value!=s?.value).filter((p,f,h)=>h.findIndex(m=>m.value===p.value)===f).map(p=>({result:this.findBestResultForMetadataValue(t,p.value),metadata:p})).sort((p,f)=>this.compareMetadata(p.metadata.value,f.metadata.value,t,e))}compareMetadata(t,e,i,n){if(t==null)return-1;if(e==null)return 1;let a=this.getMetadataDescriptor(i),s=a?.sortRule||"NONE",l=a?.reverseSort||!1;if(s=="ALPHABET"||s=="VERSION"){let d=t.localeCompare(e,n,{numeric:!0});return l?d*-1:d}return 0}getMetadataDescriptor(t){return this.metadataDescriptors.find(e=>t==e.key)}findBestResultForMetadataValue(t,e){let i=this.allResults.filter(d=>{var p;return((p=r.extractResultMetadata(d,t))===null||p===void 0?void 0:p.value)==e}),a=[...r.extractResultMetadata(this.selectedResult).filter(d=>this.clusteringMetadata.has(d.key)).filter(d=>d.key!==t)],s,l=-1;for(let d of i){let p=this.countMatchingMetadata(d,a);if(p>l&&(l=p,s=d,p===a.length))break}return s}countMatchingMetadata(t,e){return r.extractResultMetadata(t).filter(i=>e.some(n=>n.key===i.key&&n.value===i.value)).length}};var Fn={};rt(Fn,{Debouncer:()=>at});var at=class{constructor(t=0){this.timeout=t,this.callbacks=[]}run(t,e){return this.callbacks=[t],this.debounce(e)}queue(t,e){return this.callbacks.push(t),this.debounce(e)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(t){return this.promise==null&&(this.promise=new Promise((e,i)=>{this.resolvePromise=e,this.rejectPromise=i})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),t??this.timeout),this.promise}async runCallbacks(){var t,e;let i=[...this.callbacks];this.callbacks=[];let n=(t=this.rejectPromise)!==null&&t!==void 0?t:()=>null,a=(e=this.resolvePromise)!==null&&e!==void 0?e:()=>null;this.clearPromise();for(let s of i)try{await s()}catch(l){n(l);return}a(!0)}clearTimeout(){this._debounce!=null&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}};var zn={};rt(zn,{customElement:()=>G,isNumber:()=>Ul,jsonProperty:()=>de,optionalNumberProperty:()=>ou});var Hn={};rt(Hn,{dateReviver:()=>Qp,deepEqual:()=>Qt,delay:()=>hi,eventPathContainsMatchingElement:()=>eu,flatDeep:()=>Fl,hasChanged:()=>xo,last:()=>ru,minmax:()=>Wn,parseDate:()=>mi,unslotText:()=>yi,waitFor:()=>vo,waitUntil:()=>Un});var hi=r=>new Promise(t=>setTimeout(t,r));async function Un(r,t=10,e=2e4){await vo(async()=>await r()||void 0,t,e)}async function vo(r,t=10,e=2e4){let i=await r(),n,a;for(n=a=performance.now();i==null&&(!e||a-n<e);)await hi(t),i=await r(),a=performance.now();if(i==null)throw new Error("Timeout exceeded");return i}function Fl(r,t){return r.flatMap(e=>[e,...Fl(t(e),t)])}function Qp(...r){return function(t,e){return r.includes(t)?mi(e):e}}function mi(r){return r.match(/^\d{4}-\d{2}-\d{2}$/)&&(r=r.replace(/-/g,"/")),r=r.replace(" ","T").replace(/^(.+)(\+\d{2})(\d{2})$/,(t,e,i,n)=>e+i+":"+n),new Date(r)}function tu(r,t){if(r===t)return!0;if(r&&t&&typeof r=="object"&&typeof t=="object"){if(r.constructor!==t.constructor)return!1;var e,i,n;if(Array.isArray(r)){if(e=r.length,e!=t.length)return!1;for(i=e;i--!==0;)if(!Qt(r[i],t[i]))return!1;return!0}if(r instanceof Map&&t instanceof Map){if(r.size!==t.size)return!1;for(i of r.entries())if(!t.has(i[0]))return!1;for(i of r.entries())if(!Qt(i[1],t.get(i[0])))return!1;return!0}if(r instanceof Set&&t instanceof Set){if(r.size!==t.size)return!1;for(i of r.entries())if(!t.has(i[0]))return!1;return!0}if(r.constructor===RegExp)return r.source===t.source&&r.flags===t.flags;if(r.valueOf!==Object.prototype.valueOf)return r.valueOf()===t.valueOf();if(n=Object.keys(r),e=n.length,e!==Object.keys(t).length)return!1;for(i=e;i--!==0;)if(!Object.prototype.hasOwnProperty.call(t,n[i]))return!1;for(i=e;i--!==0;){var a=n[i];if(!Qt(r[a],t[a]))return!1}return!0}return r!==r&&t!==t}function Qt(r,t){try{return tu(r,t)}catch{return!1}}function xo(r,t){return!Qt(r,t)}function eu(r,t,e=window.document.body){if(t.length>0){let i=r.composedPath();for(let n of i){if(n===e)return!1;if(n.matches&&t.some(a=>n.matches(a)))return!0}}return!1}function Wn(r,t,e){return Math.min(Math.max(r,t),e)}function ru(r){return r[r.length-1]}function yi(r){return r instanceof HTMLSlotElement?r.assignedNodes().map(t=>yi(t)).join(""):r?.textContent||""}var G=r=>t=>{window.customElements.get(r)||window.customElements.define(r,t)};function de(r,t){let e=()=>JSON.parse(JSON.stringify(r));return g({type:Object,converter:{fromAttribute:i=>{if(i==null)return e();try{return JSON.parse(i)}catch{return e()}},toAttribute:i=>JSON.stringify(i)},hasChanged:xo,...t??{}})}function ou(r){return g({type:Object,converter:{fromAttribute:t=>{if(t!=null)return Ul(t)?+t:void 0},toAttribute:t=>t==null?void 0:""+t},...r??{}})}function Ul(r){return!isNaN(parseFloat(r))}var ba={};rt(ba,{designSystemVariables:()=>N});var ga={};rt(ga,{DesignSystemFamily:()=>hr,DesignSystemSize:()=>we,FtCssVariableFactory:()=>o,badge:()=>cu,banner:()=>lu,button:()=>b,chart:()=>Eu,checkbox:()=>_u,chip:()=>au,chipChoice:()=>nu,collapsible:()=>Cu,comboboxMultiSelect:()=>Su,comboboxSingleSelect:()=>xu,drawer:()=>mu,floatingMenu:()=>vu,foundation:()=>c,link:()=>su,modal:()=>hu,notice:()=>Ru,notification:()=>Tu,pageDesigner:()=>Au,pageFooter:()=>uu,pageHeader:()=>pu,pageLayout:()=>fu,popover:()=>Ou,radio:()=>Iu,resolveFamilyClass:()=>ma,resolveSizeClass:()=>ya,semantic:()=>u,setVariable:()=>x,switch_:()=>wu,tabs:()=>yu,textArea:()=>bu,textInput:()=>gu,titleBreadcrumb:()=>du,toggle:()=>Nu,tooltip:()=>$u,typographies:()=>So,typographyBody1Medium:()=>qn,typographyBody1Regular:()=>Zn,typographyBody1Semibold:()=>Yn,typographyBody2Medium:()=>Jn,typographyBody2MediumUnderline:()=>Wl,typographyBody2Regular:()=>Xn,typographyBody2Semibold:()=>Qn,typographyCaption1Bold:()=>la,typographyCaption1Medium:()=>aa,typographyCaption1Semibold:()=>sa,typographyCaption2Bold:()=>pa,typographyCaption2Medium:()=>ca,typographyCaption2Semibold:()=>da,typographyCaption3Bold:()=>ha,typographyCaption3Medium:()=>ua,typographyCaption3Semibold:()=>fa,typographyDisplay:()=>Vn,typographyLabel1Bold:()=>ra,typographyLabel1Medium:()=>ta,typographyLabel1Semibold:()=>ea,typographyLabel2Bold:()=>na,typographyLabel2Medium:()=>oa,typographyLabel2Semibold:()=>ia,typographyTitle1:()=>jn,typographyTitle2:()=>Gn,typographyTitle3:()=>Kn,typographyVariants:()=>iu});var Ce=r=>typeof r=="string"?ve(r):r,o=class{static create(t,e,i,n){let a=l=>Ce(l??n),s=P`var(${Ce(t)}, ${a(n)})`;return s.name=t,s.description=e,s.category=i,s.defaultValue=n,s.defaultCssValue=a,s.get=l=>P`var(${Ce(t)}, ${a(l)})`,s.breadcrumb=()=>[],s.lastResortDefaultValue=()=>n,s}static extend(t,e,i,n){let a=l=>i.get(l??n),s=P`var(${Ce(t)}, ${a(n)})`;return s.name=t,s.description=e,s.category=i.category,s.fallbackVariable=i,s.defaultValue=n,s.defaultCssValue=a,s.get=l=>P`var(${Ce(t)}, ${a(l)})`,s.breadcrumb=()=>[i.name,...i.breadcrumb()],s.lastResortDefaultValue=()=>n??i.lastResortDefaultValue(),s}static external(t,e){let i=a=>t.fallbackVariable?t.fallbackVariable.get(a??t.defaultValue):Ce(a??t.lastResortDefaultValue()),n=P`var(${Ce(t.name)}, ${i(t.defaultValue)})`;return n.name=t.name,n.category=t.category,n.fallbackVariable=t.fallbackVariable,n.defaultValue=t.defaultValue,n.context=e,n.defaultCssValue=i,n.get=a=>P`var(${Ce(t.name)}, ${i(a)})`,n.breadcrumb=()=>t.fallbackVariable?[t.fallbackVariable.name,...t.fallbackVariable.breadcrumb()]:[],n.lastResortDefaultValue=()=>t.lastResortDefaultValue(),n}};function x(r,t){return Ce(`${r.name}: ${t}`)}var c={colorWhite:o.create("--ft-color-white","","COLOR","#ffffff"),colorGray0:o.create("--ft-color-gray-0","","COLOR","#71718e"),colorGray10:o.create("--ft-color-gray-10","","COLOR","#fbfbfc"),colorGray20:o.create("--ft-color-gray-20","","COLOR","#f2f2f5"),colorGray30:o.create("--ft-color-gray-30","","COLOR","#e9e9ed"),colorGray40:o.create("--ft-color-gray-40","","COLOR","#e0e0e6"),colorGray50:o.create("--ft-color-gray-50","","COLOR","#cdcdd7"),colorGray60:o.create("--ft-color-gray-60","","COLOR","#bbbbc9"),colorGray70:o.create("--ft-color-gray-70","","COLOR","#a8a8ba"),colorGray80:o.create("--ft-color-gray-80","","COLOR","#9696ab"),colorGray90:o.create("--ft-color-gray-90","","COLOR","#83839d"),colorGray100:o.create("--ft-color-gray-100","","COLOR","#62627c"),colorGray200:o.create("--ft-color-gray-200","","COLOR","#545469"),colorGray300:o.create("--ft-color-gray-300","","COLOR","#454557"),colorGray400:o.create("--ft-color-gray-400","","COLOR","#363644"),colorGray500:o.create("--ft-color-gray-500","","COLOR","#282832"),colorGray600:o.create("--ft-color-gray-600","","COLOR","#19191f"),colorGray700:o.create("--ft-color-gray-700","","COLOR","#0a0a0d"),colorBrand0:o.create("--ft-color-brand-0","","COLOR","#9d207b"),colorBrand10:o.create("--ft-color-brand-10","","COLOR","#f7edf4"),colorBrand20:o.create("--ft-color-brand-20","","COLOR","#ebcfe4"),colorBrand30:o.create("--ft-color-brand-30","","COLOR","#dfb2d3"),colorBrand40:o.create("--ft-color-brand-40","","COLOR","#d395c2"),colorBrand50:o.create("--ft-color-brand-50","","COLOR","#c778b1"),colorBrand60:o.create("--ft-color-brand-60","","COLOR","#ba5ba1"),colorBrand70:o.create("--ft-color-brand-70","","COLOR","#ae3e90"),colorBrand100:o.create("--ft-color-brand-100","","COLOR","#8d1d6e"),colorBrand200:o.create("--ft-color-brand-200","","COLOR","#78185e"),colorBrand300:o.create("--ft-color-brand-300","","COLOR","#62144d"),colorBrand400:o.create("--ft-color-brand-400","","COLOR","#4d103c"),colorBrand500:o.create("--ft-color-brand-500","","COLOR","#380b2c"),colorBrand600:o.create("--ft-color-brand-600","","COLOR","#23071b"),colorBrand700:o.create("--ft-color-brand-700","","COLOR","#0d030b"),colorCyan0:o.create("--ft-color-cyan-0","","COLOR","#0e98b4"),colorCyan10:o.create("--ft-color-cyan-10","","COLOR","#ebf6f9"),colorCyan20:o.create("--ft-color-cyan-20","","COLOR","#cbe9ef"),colorCyan30:o.create("--ft-color-cyan-30","","COLOR","#acdbe5"),colorCyan40:o.create("--ft-color-cyan-40","","COLOR","#8ccedb"),colorCyan50:o.create("--ft-color-cyan-50","","COLOR","#6dc0d1"),colorCyan60:o.create("--ft-color-cyan-60","","COLOR","#4db3c8"),colorCyan70:o.create("--ft-color-cyan-70","","COLOR","#2ea5be"),colorCyan100:o.create("--ft-color-cyan-100","","COLOR","#0c849c"),colorCyan200:o.create("--ft-color-cyan-200","","COLOR","#0a7085"),colorCyan300:o.create("--ft-color-cyan-300","","COLOR","#085c6d"),colorCyan400:o.create("--ft-color-cyan-400","","COLOR","#074856"),colorCyan500:o.create("--ft-color-cyan-500","","COLOR","#05343e"),colorCyan600:o.create("--ft-color-cyan-600","","COLOR","#032127"),colorCyan700:o.create("--ft-color-cyan-700","","COLOR","#010d0f"),colorGreen0:o.create("--ft-color-green-0","","COLOR","#21a274"),colorGreen10:o.create("--ft-color-green-10","","COLOR","#edf7f3"),colorGreen20:o.create("--ft-color-green-20","","COLOR","#cfebe1"),colorGreen30:o.create("--ft-color-green-30","","COLOR","#b2dfcf"),colorGreen40:o.create("--ft-color-green-40","","COLOR","#95d3bd"),colorGreen50:o.create("--ft-color-green-50","","COLOR","#78c7ab"),colorGreen60:o.create("--ft-color-green-60","","COLOR","#5bba98"),colorGreen70:o.create("--ft-color-green-70","","COLOR","#3eae86"),colorGreen100:o.create("--ft-color-green-100","","COLOR","#1d8d65"),colorGreen200:o.create("--ft-color-green-200","","COLOR","#187856"),colorGreen300:o.create("--ft-color-green-300","","COLOR","#146246"),colorGreen400:o.create("--ft-color-green-400","","COLOR","#104d37"),colorGreen500:o.create("--ft-color-green-500","","COLOR","#0b3828"),colorGreen600:o.create("--ft-color-green-600","","COLOR","#072319"),colorGreen700:o.create("--ft-color-green-700","","COLOR","#030d0a"),colorOrange0:o.create("--ft-color-orange-0","","COLOR","#F2700D"),colorOrange10:o.create("--ft-color-orange-10","","COLOR","#FFF7EB"),colorOrange20:o.create("--ft-color-orange-20","","COLOR","#FFEDD6"),colorOrange30:o.create("--ft-color-orange-30","","COLOR","#FFDDB2"),colorOrange40:o.create("--ft-color-orange-40","","COLOR","#FECB90"),colorOrange50:o.create("--ft-color-orange-50","","COLOR","#FCB76E"),colorOrange60:o.create("--ft-color-orange-60","","COLOR","#F9A34D"),colorOrange70:o.create("--ft-color-orange-70","","COLOR","#F68B2C"),colorOrange100:o.create("--ft-color-orange-100","","COLOR","#D35909"),colorOrange200:o.create("--ft-color-orange-200","","COLOR","#B74706"),colorOrange300:o.create("--ft-color-orange-300","","COLOR","#913503"),colorOrange400:o.create("--ft-color-orange-400","","COLOR","#6F2601"),colorOrange500:o.create("--ft-color-orange-500","","COLOR","#4D1800"),colorOrange600:o.create("--ft-color-orange-600","","COLOR","#330F00"),colorOrange700:o.create("--ft-color-orange-700","","COLOR","#140600"),colorRed0:o.create("--ft-color-red-0","","COLOR","#b40e2c"),colorRed10:o.create("--ft-color-red-10","","COLOR","#f9ebed"),colorRed20:o.create("--ft-color-red-20","","COLOR","#efcbd2"),colorRed30:o.create("--ft-color-red-30","","COLOR","#e5acb6"),colorRed40:o.create("--ft-color-red-40","","COLOR","#db8c9b"),colorRed50:o.create("--ft-color-red-50","","COLOR","#d16d7f"),colorRed60:o.create("--ft-color-red-60","","COLOR","#c84d63"),colorRed70:o.create("--ft-color-red-70","","COLOR","#be2e48"),colorRed100:o.create("--ft-color-red-100","","COLOR","#9c0c26"),colorRed200:o.create("--ft-color-red-200","","COLOR","#850a20"),colorRed300:o.create("--ft-color-red-300","","COLOR","#6d081b"),colorRed400:o.create("--ft-color-red-400","","COLOR","#560715"),colorRed500:o.create("--ft-color-red-500","","COLOR","#3e050f"),colorRed600:o.create("--ft-color-red-600","","COLOR","#270309"),colorRed700:o.create("--ft-color-red-700","","COLOR","#0f0104"),colorYellow0:o.create("--ft-color-yellow-0","","COLOR","#E4C00C"),colorYellow10:o.create("--ft-color-yellow-10","","COLOR","#fefae9"),colorYellow20:o.create("--ft-color-yellow-20","","COLOR","#fcf4ca"),colorYellow30:o.create("--ft-color-yellow-30","","COLOR","#faedaa"),colorYellow40:o.create("--ft-color-yellow-40","","COLOR","#f9e78b"),colorYellow50:o.create("--ft-color-yellow-50","","COLOR","#f7e06b"),colorYellow60:o.create("--ft-color-yellow-60","","COLOR","#F4D63E"),colorYellow70:o.create("--ft-color-yellow-70","","COLOR","#F3CE16"),colorYellow100:o.create("--ft-color-yellow-100","","COLOR","#d3b10b"),colorYellow200:o.create("--ft-color-yellow-200","","COLOR","#b3970a"),colorYellow300:o.create("--ft-color-yellow-300","","COLOR","#947c08"),colorYellow400:o.create("--ft-color-yellow-400","","COLOR","#746206"),colorYellow500:o.create("--ft-color-yellow-500","","COLOR","#554705"),colorYellow600:o.create("--ft-color-yellow-600","","COLOR","#352d03"),colorYellow700:o.create("--ft-color-yellow-700","","COLOR","#161201"),colorUltramarine0:o.create("--ft-color-ultramarine-0","","COLOR","#3C19E5"),colorUltramarine10:o.create("--ft-color-ultramarine-10","","COLOR","#EDEAFD"),colorUltramarine20:o.create("--ft-color-ultramarine-20","","COLOR","#D4CCF9"),colorUltramarine30:o.create("--ft-color-ultramarine-30","","COLOR","#BBAFF6"),colorUltramarine40:o.create("--ft-color-ultramarine-40","","COLOR","#A191F3"),colorUltramarine50:o.create("--ft-color-ultramarine-50","","COLOR","#8873EF"),colorUltramarine60:o.create("--ft-color-ultramarine-60","","COLOR","#6F55EC"),colorUltramarine70:o.create("--ft-color-ultramarine-70","","COLOR","#5537E8"),colorUltramarine100:o.create("--ft-color-ultramarine-100","","COLOR","#3416C7"),colorUltramarine200:o.create("--ft-color-ultramarine-200","","COLOR","#2C13A9"),colorUltramarine300:o.create("--ft-color-ultramarine-300","","COLOR","#250F8C"),colorUltramarine400:o.create("--ft-color-ultramarine-400","","COLOR","#1D0C6E"),colorUltramarine500:o.create("--ft-color-ultramarine-500","","COLOR","#150950"),colorUltramarine600:o.create("--ft-color-ultramarine-600","","COLOR","#0D0532"),colorUltramarine700:o.create("--ft-color-ultramarine-700","","COLOR","#050215"),colorAvocado0:o.create("--ft-color-avocado-0","","COLOR","#98BD28"),colorAvocado10:o.create("--ft-color-avocado-10","","COLOR","#F6F9EC"),colorAvocado20:o.create("--ft-color-avocado-20","","COLOR","#E8F0D0"),colorAvocado30:o.create("--ft-color-avocado-30","","COLOR","#DBE8B4"),colorAvocado40:o.create("--ft-color-avocado-40","","COLOR","#CEDF98"),colorAvocado50:o.create("--ft-color-avocado-50","","COLOR","#C0D77C"),colorAvocado60:o.create("--ft-color-avocado-60","","COLOR","#B3CE60"),colorAvocado70:o.create("--ft-color-avocado-70","","COLOR","#A5C644"),colorAvocado100:o.create("--ft-color-avocado-100","","COLOR","#84A423"),colorAvocado200:o.create("--ft-color-avocado-200","","COLOR","#708C1E"),colorAvocado300:o.create("--ft-color-avocado-300","","COLOR","#5D7318"),colorAvocado400:o.create("--ft-color-avocado-400","","COLOR","#495B13"),colorAvocado500:o.create("--ft-color-avocado-500","","COLOR","#35420E"),colorAvocado600:o.create("--ft-color-avocado-600","","COLOR","#212A09"),colorAvocado700:o.create("--ft-color-avocado-700","","COLOR","#0E1104"),colorBrown0:o.create("--ft-color-brown-0","","COLOR","#B26F4D"),colorBrown10:o.create("--ft-color-brown-10","","COLOR","#F8F2EF"),colorBrown20:o.create("--ft-color-brown-20","","COLOR","#EEDFD8"),colorBrown30:o.create("--ft-color-brown-30","","COLOR","#E4CDC1"),colorBrown40:o.create("--ft-color-brown-40","","COLOR","#DABAAA"),colorBrown50:o.create("--ft-color-brown-50","","COLOR","#D0A792"),colorBrown60:o.create("--ft-color-brown-60","","COLOR","#C6947B"),colorBrown70:o.create("--ft-color-brown-70","","COLOR","#BC8264"),colorBrown100:o.create("--ft-color-brown-100","","COLOR","#9B6143"),colorBrown200:o.create("--ft-color-brown-200","","COLOR","#845239"),colorBrown300:o.create("--ft-color-brown-300","","COLOR","#6D442F"),colorBrown400:o.create("--ft-color-brown-400","","COLOR","#553525"),colorBrown500:o.create("--ft-color-brown-500","","COLOR","#3E271B"),colorBrown600:o.create("--ft-color-brown-600","","COLOR","#271811"),colorBrown700:o.create("--ft-color-brown-700","","COLOR","#100A07"),spacing1:o.create("--ft-spacing-1","","SIZE","0.25rem"),spacing2:o.create("--ft-spacing-2","","SIZE","calc(var(--ft-spacing-2, 0.25rem)*2)"),spacing3:o.create("--ft-spacing-3","","SIZE","calc(var(--ft-spacing-3, 0.25rem)*3)"),spacing4:o.create("--ft-spacing-4","","SIZE","calc(var(--ft-spacing-4, 0.25rem)*4)"),spacing5:o.create("--ft-spacing-5","","SIZE","calc(var(--ft-spacing-5, 0.25rem)*5)"),spacing6:o.create("--ft-spacing-6","","SIZE","calc(var(--ft-spacing-6, 0.25rem)*6)"),spacing8:o.create("--ft-spacing-8","","SIZE","calc(var(--ft-spacing-8, 0.25rem)*8)"),spacing10:o.create("--ft-spacing-10","","SIZE","calc(var(--ft-spacing-10, 0.25rem)*10)"),spacing12:o.create("--ft-spacing-12","","SIZE","calc(var(--ft-spacing-12, 0.25rem)*12)"),spacing16:o.create("--ft-spacing-16","","SIZE","calc(var(--ft-spacing-16, 0.25rem)*16)"),spacing20:o.create("--ft-spacing-20","","SIZE","calc(var(--ft-spacing-20, 0.25rem)*20)"),spacing24:o.create("--ft-spacing-24","","SIZE","calc(var(--ft-spacing-24, 0.25rem)*24)"),spacing28:o.create("--ft-spacing-28","","SIZE","calc(var(--ft-spacing-28, 0.25rem)*28)"),spacing32:o.create("--ft-spacing-32","","SIZE","calc(var(--ft-spacing-32, 0.25rem)*32)"),spacing05:o.create("--ft-spacing-0-5","","SIZE","calc(var(--ft-spacing-0-5, 0.25rem)*0.5)"),borderRadiusS:o.create("--ft-border-radius-s","","SIZE","4px"),borderRadiusM:o.create("--ft-border-radius-m","","SIZE","8px"),borderRadiusL:o.create("--ft-border-radius-l","","SIZE","12px"),borderRadiusXl:o.create("--ft-border-radius-xl","","SIZE","16px"),borderRadiusPill:o.create("--ft-border-radius-pill","","SIZE","999px"),borderRadiusRound:o.create("--ft-border-radius-round","","SIZE","50%"),iconSize1:o.create("--ft-icon-size-1","","SIZE","0.75rem"),iconSize2:o.create("--ft-icon-size-2","","SIZE","1rem"),iconSize3:o.create("--ft-icon-size-3","","SIZE","1.25rem"),iconSize4:o.create("--ft-icon-size-4","","SIZE","1.5rem"),iconSize5:o.create("--ft-icon-size-5","","SIZE","2rem"),iconSize6:o.create("--ft-icon-size-6","","SIZE","3rem"),opacity0:o.create("--ft-opacity-0","","NUMBER","0"),opacity8:o.create("--ft-opacity-8","","NUMBER","0.08"),opacity16:o.create("--ft-opacity-16","","NUMBER","0.16"),opacity24:o.create("--ft-opacity-24","","NUMBER","0.24"),opacity32:o.create("--ft-opacity-32","","NUMBER","0.32"),opacity40:o.create("--ft-opacity-40","","NUMBER","0.4"),opacity48:o.create("--ft-opacity-48","","NUMBER","0.48"),opacity80:o.create("--ft-opacity-80","","NUMBER","0.8"),shadowElevation01:o.create("--ft-shadow-elevation-01","","SHADOW","0px 1px 4px 0px rgba(0,0,0,0.06), 0px 1px 2px 0px rgba(0,0,0,0.14), 0px 0px 1px 0px rgba(0,0,0,0.06)"),shadowElevation02:o.create("--ft-shadow-elevation-02","","SHADOW","0px 4px 10px 0px rgba(0,0,0,0.06), 0px 2px 5px 0px rgba(0,0,0,0.14), 0px 0px 1px 0px rgba(0,0,0,0.06)"),shadowElevation03:o.create("--ft-shadow-elevation-03","","SHADOW","0px 6px 13px 0px rgba(0,0,0,0.06), 0px 3px 7px 0px rgba(0,0,0,0.14), 0px 1px 2px 0px rgba(0,0,0,0.06)"),shadowElevation04:o.create("--ft-shadow-elevation-04","","SHADOW","0px 8px 16px 0px rgba(0,0,0,0.06), 0px 4px 9px 0px rgba(0,0,0,0.14), 0px 2px 3px 0px rgba(0,0,0,0.06)"),shadowElevation06:o.create("--ft-shadow-elevation-06","","SHADOW","0px 12px 22px 0px rgba(0,0,0,0.06), 0px 6px 13px 0px rgba(0,0,0,0.14), 0px 4px 5px 0px rgba(0,0,0,0.06)"),shadowElevation08:o.create("--ft-shadow-elevation-08","","SHADOW","0px 16px 28px 0px rgba(0,0,0,0.06), 0px 8px 17px 0px rgba(0,0,0,0.14), 0px 6px 7px 0px rgba(0,0,0,0.06)"),shadowElevation12:o.create("--ft-shadow-elevation-12","","SHADOW","0px 22px 40px 0px rgba(0,0,0,0.06), 0px 12px 23px 0px rgba(0,0,0,0.14), 0px 10px 11px 0px rgba(0,0,0,0.06)"),shadowElevation16:o.create("--ft-shadow-elevation-16","","SHADOW","0px 28px 52px 0px rgba(0,0,0,0.06), 0px 16px 29px 0px rgba(0,0,0,0.14), 0px 14px 15px 0px rgba(0,0,0,0.06)"),shadowElevation24:o.create("--ft-shadow-elevation-24","","SHADOW","0px 40px 76px 0px rgba(0,0,0,0.06), 0px 24px 41px 0px rgba(0,0,0,0.14), 0px 22px 23px 0px rgba(0,0,0,0.06)")},Vn={fontFamily:o.create("--ft-typography-display-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-display-fontWeight","","UNKNOWN","600"),lineHeight:o.create("--ft-typography-display-lineHeight","","SIZE","120%"),fontSize:o.create("--ft-typography-display-fontSize","","SIZE","2.5rem"),letterSpacing:o.create("--ft-typography-display-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:o.create("--ft-typography-display-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-display-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-display-textDecoration","","UNKNOWN","none"),textCase:o.create("--ft-typography-display-textCase","","UNKNOWN","none")},jn={fontFamily:o.create("--ft-typography-title-1-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-title-1-fontWeight","","UNKNOWN","600"),lineHeight:o.create("--ft-typography-title-1-lineHeight","","SIZE","120%"),fontSize:o.create("--ft-typography-title-1-fontSize","","SIZE","1.5rem"),letterSpacing:o.create("--ft-typography-title-1-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:o.create("--ft-typography-title-1-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-title-1-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-title-1-textDecoration","","UNKNOWN","none"),textCase:o.create("--ft-typography-title-1-textCase","","UNKNOWN","none")},Gn={fontFamily:o.create("--ft-typography-title-2-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-title-2-fontWeight","","UNKNOWN","500"),lineHeight:o.create("--ft-typography-title-2-lineHeight","","SIZE","120%"),fontSize:o.create("--ft-typography-title-2-fontSize","","SIZE","1.25rem"),letterSpacing:o.create("--ft-typography-title-2-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:o.create("--ft-typography-title-2-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-title-2-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-title-2-textDecoration","","UNKNOWN","none"),textCase:o.create("--ft-typography-title-2-textCase","","UNKNOWN","none")},Kn={fontFamily:o.create("--ft-typography-title-3-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-title-3-fontWeight","","UNKNOWN","500"),lineHeight:o.create("--ft-typography-title-3-lineHeight","","SIZE","120%"),fontSize:o.create("--ft-typography-title-3-fontSize","","SIZE","1.125rem"),letterSpacing:o.create("--ft-typography-title-3-letterSpacing","","SIZE","-0.01em"),paragraphSpacing:o.create("--ft-typography-title-3-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-title-3-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-title-3-textDecoration","","UNKNOWN","none"),textCase:o.create("--ft-typography-title-3-textCase","","UNKNOWN","none")},Zn={fontFamily:o.create("--ft-typography-body-1-regular-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-body-1-regular-fontWeight","","UNKNOWN","400"),lineHeight:o.create("--ft-typography-body-1-regular-lineHeight","","SIZE","135%"),fontSize:o.create("--ft-typography-body-1-regular-fontSize","","SIZE","1rem"),letterSpacing:o.create("--ft-typography-body-1-regular-letterSpacing","","SIZE","normal"),paragraphSpacing:o.create("--ft-typography-body-1-regular-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-body-1-regular-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-body-1-regular-textDecoration","","UNKNOWN","none"),textCase:o.create("--ft-typography-body-1-regular-textCase","","UNKNOWN","none")},qn={fontFamily:o.create("--ft-typography-body-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-body-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:o.create("--ft-typography-body-1-medium-lineHeight","","SIZE","135%"),fontSize:o.create("--ft-typography-body-1-medium-fontSize","","SIZE","1rem"),letterSpacing:o.create("--ft-typography-body-1-medium-letterSpacing","","SIZE","normal"),paragraphSpacing:o.create("--ft-typography-body-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-body-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-body-1-medium-textDecoration","","UNKNOWN","none"),textCase:o.create("--ft-typography-body-1-medium-textCase","","UNKNOWN","none")},Yn={fontFamily:o.create("--ft-typography-body-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-body-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:o.create("--ft-typography-body-1-semibold-lineHeight","","SIZE","135%"),fontSize:o.create("--ft-typography-body-1-semibold-fontSize","","SIZE","1rem"),letterSpacing:o.create("--ft-typography-body-1-semibold-letterSpacing","","SIZE","normal"),paragraphSpacing:o.create("--ft-typography-body-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-body-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-body-1-semibold-textDecoration","","UNKNOWN","none"),textCase:o.create("--ft-typography-body-1-semibold-textCase","","UNKNOWN","none")},Xn={fontFamily:o.create("--ft-typography-body-2-regular-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-body-2-regular-fontWeight","","UNKNOWN","400"),lineHeight:o.create("--ft-typography-body-2-regular-lineHeight","","SIZE","135%"),fontSize:o.create("--ft-typography-body-2-regular-fontSize","","SIZE","0.875rem"),letterSpacing:o.create("--ft-typography-body-2-regular-letterSpacing","","SIZE","normal"),paragraphSpacing:o.create("--ft-typography-body-2-regular-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-body-2-regular-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-body-2-regular-textDecoration","","UNKNOWN","none"),textCase:o.create("--ft-typography-body-2-regular-textCase","","UNKNOWN","none")},Jn={fontFamily:o.create("--ft-typography-body-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-body-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:o.create("--ft-typography-body-2-medium-lineHeight","","SIZE","135%"),fontSize:o.create("--ft-typography-body-2-medium-fontSize","","SIZE","0.875rem"),letterSpacing:o.create("--ft-typography-body-2-medium-letterSpacing","","SIZE","normal"),paragraphSpacing:o.create("--ft-typography-body-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-body-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-body-2-medium-textDecoration","","UNKNOWN","none"),textCase:o.create("--ft-typography-body-2-medium-textCase","","UNKNOWN","none")},Wl={fontFamily:o.create("--ft-typography-body-2-medium-underline-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-body-2-medium-underline-fontWeight","","UNKNOWN","500"),lineHeight:o.create("--ft-typography-body-2-medium-underline-lineHeight","","SIZE","135%"),fontSize:o.create("--ft-typography-body-2-medium-underline-fontSize","","SIZE","0.875rem"),letterSpacing:o.create("--ft-typography-body-2-medium-underline-letterSpacing","","SIZE","normal"),paragraphSpacing:o.create("--ft-typography-body-2-medium-underline-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-body-2-medium-underline-paragraphIndent","","UNKNOWN","0"),textCase:o.create("--ft-typography-body-2-medium-underline-textCase","","UNKNOWN","none"),textDecoration:o.create("--ft-typography-body-2-medium-underline-textDecoration","","UNKNOWN","underline")},Qn={fontFamily:o.create("--ft-typography-body-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-body-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:o.create("--ft-typography-body-2-semibold-lineHeight","","SIZE","135%"),fontSize:o.create("--ft-typography-body-2-semibold-fontSize","","SIZE","0.875rem"),letterSpacing:o.create("--ft-typography-body-2-semibold-letterSpacing","","SIZE","normal"),paragraphSpacing:o.create("--ft-typography-body-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-body-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-body-2-semibold-textDecoration","","UNKNOWN","none"),textCase:o.create("--ft-typography-body-2-semibold-textCase","","UNKNOWN","none")},ta={fontFamily:o.create("--ft-typography-label-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-label-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:o.create("--ft-typography-label-1-medium-lineHeight","","SIZE","110%"),fontSize:o.create("--ft-typography-label-1-medium-fontSize","","SIZE","0.875rem"),letterSpacing:o.create("--ft-typography-label-1-medium-letterSpacing","","SIZE","0.04em"),textCase:o.create("--ft-typography-label-1-medium-textCase","","UNKNOWN","uppercase"),paragraphSpacing:o.create("--ft-typography-label-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-label-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-label-1-medium-textDecoration","","UNKNOWN","none")},ea={fontFamily:o.create("--ft-typography-label-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-label-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:o.create("--ft-typography-label-1-semibold-lineHeight","","SIZE","110%"),fontSize:o.create("--ft-typography-label-1-semibold-fontSize","","SIZE","0.875rem"),letterSpacing:o.create("--ft-typography-label-1-semibold-letterSpacing","","SIZE","0.04em"),textCase:o.create("--ft-typography-label-1-semibold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:o.create("--ft-typography-label-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-label-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-label-1-semibold-textDecoration","","UNKNOWN","none")},ra={fontFamily:o.create("--ft-typography-label-1-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-label-1-bold-fontWeight","","UNKNOWN","700"),lineHeight:o.create("--ft-typography-label-1-bold-lineHeight","","SIZE","110%"),fontSize:o.create("--ft-typography-label-1-bold-fontSize","","SIZE","0.875rem"),letterSpacing:o.create("--ft-typography-label-1-bold-letterSpacing","","SIZE","0.04em"),textCase:o.create("--ft-typography-label-1-bold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:o.create("--ft-typography-label-1-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-label-1-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-label-1-bold-textDecoration","","UNKNOWN","none")},oa={fontFamily:o.create("--ft-typography-label-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-label-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:o.create("--ft-typography-label-2-medium-lineHeight","","SIZE","110%"),fontSize:o.create("--ft-typography-label-2-medium-fontSize","","SIZE","0.75rem"),letterSpacing:o.create("--ft-typography-label-2-medium-letterSpacing","","SIZE","0.04em"),textCase:o.create("--ft-typography-label-2-medium-textCase","","UNKNOWN","uppercase"),paragraphSpacing:o.create("--ft-typography-label-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-label-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-label-2-medium-textDecoration","","UNKNOWN","none")},ia={fontFamily:o.create("--ft-typography-label-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-label-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:o.create("--ft-typography-label-2-semibold-lineHeight","","SIZE","110%"),fontSize:o.create("--ft-typography-label-2-semibold-fontSize","","SIZE","0.75rem"),letterSpacing:o.create("--ft-typography-label-2-semibold-letterSpacing","","SIZE","0.04em"),textCase:o.create("--ft-typography-label-2-semibold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:o.create("--ft-typography-label-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-label-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-label-2-semibold-textDecoration","","UNKNOWN","none")},na={fontFamily:o.create("--ft-typography-label-2-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-label-2-bold-fontWeight","","UNKNOWN","700"),lineHeight:o.create("--ft-typography-label-2-bold-lineHeight","","SIZE","110%"),fontSize:o.create("--ft-typography-label-2-bold-fontSize","","SIZE","0.75rem"),letterSpacing:o.create("--ft-typography-label-2-bold-letterSpacing","","SIZE","0.04em"),textCase:o.create("--ft-typography-label-2-bold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:o.create("--ft-typography-label-2-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-label-2-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-label-2-bold-textDecoration","","UNKNOWN","none")},aa={fontFamily:o.create("--ft-typography-caption-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-caption-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:o.create("--ft-typography-caption-1-medium-lineHeight","","SIZE","130%"),fontSize:o.create("--ft-typography-caption-1-medium-fontSize","","SIZE","0.75rem"),letterSpacing:o.create("--ft-typography-caption-1-medium-letterSpacing","","SIZE","normal"),textCase:o.create("--ft-typography-caption-1-medium-textCase","","UNKNOWN","none"),paragraphSpacing:o.create("--ft-typography-caption-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-caption-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-caption-1-medium-textDecoration","","UNKNOWN","none")},sa={fontFamily:o.create("--ft-typography-caption-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-caption-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:o.create("--ft-typography-caption-1-semibold-lineHeight","","SIZE","130%"),fontSize:o.create("--ft-typography-caption-1-semibold-fontSize","","SIZE","0.75rem"),letterSpacing:o.create("--ft-typography-caption-1-semibold-letterSpacing","","SIZE","normal"),textCase:o.create("--ft-typography-caption-1-semibold-textCase","","UNKNOWN","none"),paragraphSpacing:o.create("--ft-typography-caption-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-caption-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-caption-1-semibold-textDecoration","","UNKNOWN","none")},la={fontFamily:o.create("--ft-typography-caption-1-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-caption-1-bold-fontWeight","","UNKNOWN","700"),lineHeight:o.create("--ft-typography-caption-1-bold-lineHeight","","SIZE","130%"),fontSize:o.create("--ft-typography-caption-1-bold-fontSize","","SIZE","0.75rem"),letterSpacing:o.create("--ft-typography-caption-1-bold-letterSpacing","","SIZE","normal"),textCase:o.create("--ft-typography-caption-1-bold-textCase","","UNKNOWN","none"),paragraphSpacing:o.create("--ft-typography-caption-1-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-caption-1-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-caption-1-bold-textDecoration","","UNKNOWN","none")},ca={fontFamily:o.create("--ft-typography-caption-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-caption-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:o.create("--ft-typography-caption-2-medium-lineHeight","","SIZE","130%"),fontSize:o.create("--ft-typography-caption-2-medium-fontSize","","SIZE","0.6875rem"),letterSpacing:o.create("--ft-typography-caption-2-medium-letterSpacing","","SIZE","normal"),textCase:o.create("--ft-typography-caption-2-medium-textCase","","UNKNOWN","none"),paragraphSpacing:o.create("--ft-typography-caption-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-caption-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-caption-2-medium-textDecoration","","UNKNOWN","none")},da={fontFamily:o.create("--ft-typography-caption-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-caption-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:o.create("--ft-typography-caption-2-semibold-lineHeight","","SIZE","130%"),fontSize:o.create("--ft-typography-caption-2-semibold-fontSize","","SIZE","0.6875rem"),letterSpacing:o.create("--ft-typography-caption-2-semibold-letterSpacing","","SIZE","normal"),textCase:o.create("--ft-typography-caption-2-semibold-textCase","","UNKNOWN","none"),paragraphSpacing:o.create("--ft-typography-caption-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-caption-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-caption-2-semibold-textDecoration","","UNKNOWN","none")},pa={fontFamily:o.create("--ft-typography-caption-2-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-caption-2-bold-fontWeight","","UNKNOWN","700"),lineHeight:o.create("--ft-typography-caption-2-bold-lineHeight","","SIZE","130%"),fontSize:o.create("--ft-typography-caption-2-bold-fontSize","","SIZE","0.6875rem"),letterSpacing:o.create("--ft-typography-caption-2-bold-letterSpacing","","SIZE","normal"),textCase:o.create("--ft-typography-caption-2-bold-textCase","","UNKNOWN","none"),paragraphSpacing:o.create("--ft-typography-caption-2-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-caption-2-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-caption-2-bold-textDecoration","","UNKNOWN","none")},ua={fontFamily:o.create("--ft-typography-caption-3-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-caption-3-medium-fontWeight","","UNKNOWN","500"),lineHeight:o.create("--ft-typography-caption-3-medium-lineHeight","","SIZE","130%"),fontSize:o.create("--ft-typography-caption-3-medium-fontSize","","SIZE","0.625rem"),letterSpacing:o.create("--ft-typography-caption-3-medium-letterSpacing","","SIZE","normal"),textCase:o.create("--ft-typography-caption-3-medium-textCase","","UNKNOWN","none"),paragraphSpacing:o.create("--ft-typography-caption-3-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-caption-3-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-caption-3-medium-textDecoration","","UNKNOWN","none")},fa={fontFamily:o.create("--ft-typography-caption-3-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-caption-3-semibold-fontWeight","","UNKNOWN","600"),lineHeight:o.create("--ft-typography-caption-3-semibold-lineHeight","","SIZE","130%"),fontSize:o.create("--ft-typography-caption-3-semibold-fontSize","","SIZE","0.625rem"),letterSpacing:o.create("--ft-typography-caption-3-semibold-letterSpacing","","SIZE","normal"),textCase:o.create("--ft-typography-caption-3-semibold-textCase","","UNKNOWN","none"),paragraphSpacing:o.create("--ft-typography-caption-3-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-caption-3-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-caption-3-semibold-textDecoration","","UNKNOWN","none")},ha={fontFamily:o.create("--ft-typography-caption-3-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-caption-3-bold-fontWeight","","UNKNOWN","700"),lineHeight:o.create("--ft-typography-caption-3-bold-lineHeight","","SIZE","130%"),fontSize:o.create("--ft-typography-caption-3-bold-fontSize","","SIZE","0.625rem"),letterSpacing:o.create("--ft-typography-caption-3-bold-letterSpacing","","SIZE","normal"),textCase:o.create("--ft-typography-caption-3-bold-textCase","","UNKNOWN","none"),paragraphSpacing:o.create("--ft-typography-caption-3-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-caption-3-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-caption-3-bold-textDecoration","","UNKNOWN","none")},So={display:Vn,"title-1":jn,"title-2":Gn,"title-3":Kn,"body-1-regular":Zn,"body-1-medium":qn,"body-1-semibold":Yn,"body-2-regular":Xn,"body-2-medium":Jn,"body-2-medium-underline":Wl,"body-2-semibold":Qn,"label-1-medium":ta,"label-1-semibold":ea,"label-1-bold":ra,"label-2-medium":oa,"label-2-semibold":ia,"label-2-bold":na,"caption-1-medium":aa,"caption-1-semibold":sa,"caption-1-bold":la,"caption-2-medium":ca,"caption-2-semibold":da,"caption-2-bold":pa,"caption-3-medium":ua,"caption-3-semibold":fa,"caption-3-bold":ha},iu=["display","title-1","title-2","title-3","body-1","body-2","body-2-underline","label-1","label-2","caption-1","caption-2","caption-3"];var u={backgroundActionPrimary:o.extend("--ft-background-action-primary","Used as backgorund of primary action components.",c.colorBrand0),backgroundErrorSubtle:o.extend("--ft-background-error-subtle","Used as background of subtle error components.",c.colorRed10),backgroundInfoSubtle:o.extend("--ft-background-info-subtle","Used as background of subtle information components.",c.colorCyan10),backgroundWarningSubtle:o.extend("--ft-background-warning-subtle","Used as background of subtle information components.",c.colorOrange10),backgroundSuccessSubtle:o.extend("--ft-background-success-subtle","Used as background of subtle success components.",c.colorGreen10),backgroundGlobalSurface:o.extend("--ft-background-global-surface","Used as app background.",c.colorWhite),backgroundGlobalOnSurface:o.extend("--ft-background-global-on-surface","Used as background on element on the base background, like cards.",c.colorGray10),backgroundGlobalOnSurfaceDark:o.extend("--ft-background-global-on-surface-dark","Used as background on element that need background separation.",c.colorGray30),contentActionPrimary:o.extend("--ft-content-action-primary","Used on label of primary action on light surface.",c.colorBrand0),contentWarningPrimary:o.extend("--ft-content-warning-primary","Used on label of warning messages on light surface.",c.colorOrange200),contentWarningIconOnly:o.extend("--ft-content-warning-icon-only","Used on warning status icons alone",c.colorOrange0),contentErrorPrimary:o.extend("--ft-content-error-primary","Used on label of error messages on light surface.",c.colorRed0),contentErrorIconOnly:o.extend("--ft-content-error-icon-only","Used on error status icons alone",c.colorRed70),contentInfoPrimary:o.extend("--ft-content-info-primary","Used on label of information messages on light surface.",c.colorCyan200),contentInfoIconOnly:o.extend("--ft-content-info-icon-only","Used on info status icons alone",c.colorCyan0),contentSuccessPrimary:o.extend("--ft-content-success-primary","Used on label of success messages on light surface.",c.colorGreen200),contentSuccessIconOnly:o.extend("--ft-content-success-icon-only","Used on success status icons alone",c.colorGreen0),contentGlobalPrimary:o.extend("--ft-content-global-primary","Used for main content on the page.",c.colorGray500),contentGlobalSecondary:o.extend("--ft-content-global-secondary",`Used for secondary content, often paired with primary content.
7
- Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-content-global-subtle","Used for placeholder, unselected items in a tab component or breadcrumb.",c.colorGray0),contentGlobalOnColor:o.extend("--ft-content-global-on-color","Used for content on a dominant color.",c.colorWhite),borderActionPrimary:o.extend("--ft-border-action-primary","Used as border for primary action components.",c.colorBrand0),borderActionFocusRing:o.extend("--ft-border-action-focus-ring","Focus ring is an additional border to indicate focus-visible state.",c.colorCyan0),borderWarningPrimary:o.extend("--ft-border-warning-primary","Used as border for text fields in warning state and for buttons in warning color",c.colorOrange200),borderWarningSubtle:o.extend("--ft-border-warning-subtle","Used as border for warning components.",c.colorOrange30),borderSuccessPrimary:o.extend("--ft-border-success-primary","Used as border for success buttons.",c.colorGreen200),borderSuccessSubtle:o.extend("--ft-border-success-subtle","Used as border for success components.",c.colorGreen30),borderErrorPrimary:o.extend("--ft-border-error-primary","Used as border for text fields in error states.",c.colorRed0),borderErrorSubtle:o.extend("--ft-border-error-subtle","Used as border for error components.",c.colorRed30),borderInfoPrimary:o.extend("--ft-border-info-primary","Used as border for buttons in info color.",c.colorCyan200),borderInfoSubtle:o.extend("--ft-border-info-subtle","Used as border for information components.",c.colorCyan30),borderGlobalPrimary:o.extend("--ft-border-global-primary","Used as border for element like input.",c.colorGray50),borderGlobalSubtle:o.extend("--ft-border-global-subtle","Used as border to deliminate an area filled with background.on-surface and separators.",c.colorGray30),borderInputPrimary:o.extend("--ft-border-input-primary","Used as border for checkboxes and radio buttons",c.colorGray80),borderNeutralPrimary:o.extend("--ft-border-neutral-primary","Used as border for neutral secondary buttons",c.colorGray200)};var b={largeHeight:o.create("--ft-button-large-height","","SIZE","40px"),largeHorizontalPadding:o.extend("--ft-button-large-horizontal-padding","",c.spacing4),largeGap:o.extend("--ft-button-large-gap","",c.spacing2),largeBorderRadius:o.extend("--ft-button-large-border-radius","",c.borderRadiusS),largeIconSize:o.extend("--ft-button-large-icon-size","",c.iconSize3),largeBorderWidth:o.create("--ft-button-large-border-width","","SIZE","1px"),largeFocusOutlineOffset:o.create("--ft-button-large-focus-outline-offset","","SIZE","2px"),largeFocusOutlineWidth:o.create("--ft-button-large-focus-outline-width","","SIZE","2px"),largeIconOnlyWidth:o.create("--ft-button-large-icon-only-width","","SIZE","40px"),mediumHeight:o.create("--ft-button-medium-height","","SIZE","30px"),mediumHorizontalPadding:o.extend("--ft-button-medium-horizontal-padding","",c.spacing3),mediumGap:o.extend("--ft-button-medium-gap","",c.spacing2),mediumBorderRadius:o.extend("--ft-button-medium-border-radius","",c.borderRadiusS),mediumIconSize:o.extend("--ft-button-medium-icon-size","",c.iconSize2),mediumBorderWidth:o.create("--ft-button-medium-border-width","","SIZE","1px"),mediumFocusOutlineOffset:o.create("--ft-button-medium-focus-outline-offset","","SIZE","2px"),mediumFocusOutlineWidth:o.create("--ft-button-medium-focus-outline-width","","SIZE","2px"),mediumIconOnlyWidth:o.create("--ft-button-medium-icon-only-width","","SIZE","30px"),smallHeight:o.create("--ft-button-small-height","","SIZE","20px"),smallHorizontalPadding:o.extend("--ft-button-small-horizontal-padding","",c.spacing2),smallGap:o.extend("--ft-button-small-gap","",c.spacing1),smallBorderRadius:o.extend("--ft-button-small-border-radius","",c.borderRadiusS),smallIconSize:o.extend("--ft-button-small-icon-size","",c.iconSize1),smallBorderWidth:o.create("--ft-button-small-border-width","","SIZE","1px"),smallFocusOutlineOffset:o.create("--ft-button-small-focus-outline-offset","","SIZE","2px"),smallFocusOutlineWidth:o.create("--ft-button-small-focus-outline-width","","SIZE","2px"),smallIconOnlyWidth:o.create("--ft-button-small-icon-only-width","","SIZE","20px"),xSmallHeight:o.create("--ft-button-x-small-height","","SIZE","16px"),xSmallIconSize:o.extend("--ft-button-x-small-icon-size","",c.iconSize1),xSmallFocusOutlineOffset:o.create("--ft-button-x-small-focus-outline-offset","","SIZE","2px"),xSmallFocusOutlineWidth:o.create("--ft-button-x-small-focus-outline-width","","SIZE","2px"),xSmallIconOnlyWidth:o.create("--ft-button-x-small-icon-only-width","","SIZE","16px"),roundBorderRadius:o.extend("--ft-button-round-border-radius","",c.borderRadiusPill),primaryBrandBackgroundColor:o.extend("--ft-button-primary-brand-background-color","",u.backgroundActionPrimary),primaryBrandColor:o.extend("--ft-button-primary-brand-color","",u.contentGlobalOnColor),primaryBrandIconColor:o.extend("--ft-button-primary-brand-icon-color","",u.contentGlobalOnColor),primaryBrandStateLayerColor:o.extend("--ft-button-primary-brand-state-layer-color","",u.contentGlobalOnColor),primaryBrandHoverStateLayerOpacity:o.extend("--ft-button-primary-brand-hover-state-layer-opacity","",c.opacity16),primaryBrandFocusStateLayerOpacity:o.extend("--ft-button-primary-brand-focus-state-layer-opacity","",c.opacity16),primaryBrandActiveStateLayerOpacity:o.extend("--ft-button-primary-brand-active-state-layer-opacity","",c.opacity24),primaryBrandDisabledComponentOpacity:o.extend("--ft-button-primary-brand-disabled-component-opacity","",c.opacity40),focusFocusRingColor:o.extend("--ft-button-focus-focus-ring-color","",u.borderActionFocusRing),tertiaryBrandBackgroundColor:o.create("--ft-button-tertiary-brand-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryBrandColor:o.extend("--ft-button-tertiary-brand-color","",u.contentActionPrimary),tertiaryBrandIconColor:o.extend("--ft-button-tertiary-brand-icon-color","",u.contentActionPrimary),tertiaryBrandStateLayerColor:o.extend("--ft-button-tertiary-brand-state-layer-color","",u.contentActionPrimary),tertiaryBrandHoverStateLayerOpacity:o.extend("--ft-button-tertiary-brand-hover-state-layer-opacity","",c.opacity8),tertiaryBrandFocusStateLayerOpacity:o.extend("--ft-button-tertiary-brand-focus-state-layer-opacity","",c.opacity8),tertiaryBrandActiveStateLayerOpacity:o.extend("--ft-button-tertiary-brand-active-state-layer-opacity","",c.opacity16),tertiaryBrandDisabledComponentOpacity:o.extend("--ft-button-tertiary-brand-disabled-component-opacity","",c.opacity40),tertiaryInfoBackgroundColor:o.create("--ft-button-tertiary-info-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryInfoColor:o.extend("--ft-button-tertiary-info-color","",u.contentInfoPrimary),tertiaryInfoIconColor:o.extend("--ft-button-tertiary-info-icon-color","",u.contentInfoPrimary),tertiaryInfoStateLayerColor:o.extend("--ft-button-tertiary-info-state-layer-color","",u.contentInfoPrimary),tertiaryInfoFocusStateLayerOpacity:o.extend("--ft-button-tertiary-info-focus-state-layer-opacity","",c.opacity8),tertiaryInfoHoverStateLayerOpacity:o.extend("--ft-button-tertiary-info-hover-state-layer-opacity","",c.opacity8),tertiaryInfoActiveStateLayerOpacity:o.extend("--ft-button-tertiary-info-active-state-layer-opacity","",c.opacity16),tertiaryInfoDisabledComponentOpacity:o.extend("--ft-button-tertiary-info-disabled-component-opacity","",c.opacity40),tertiarySuccessBackgroundColor:o.create("--ft-button-tertiary-success-background-color","","COLOR","rgba(0,0,0,0)"),tertiarySuccessColor:o.extend("--ft-button-tertiary-success-color","",u.contentSuccessPrimary),tertiarySuccessIconColor:o.extend("--ft-button-tertiary-success-icon-color","",u.contentSuccessPrimary),tertiarySuccessStateLayerColor:o.extend("--ft-button-tertiary-success-state-layer-color","",u.contentSuccessPrimary),tertiarySuccessHoverStateLayerOpacity:o.extend("--ft-button-tertiary-success-hover-state-layer-opacity","",c.opacity8),tertiarySuccessFocusStateLayerOpacity:o.extend("--ft-button-tertiary-success-focus-state-layer-opacity","",c.opacity8),tertiarySuccessActiveStateLayerOpacity:o.extend("--ft-button-tertiary-success-active-state-layer-opacity","",c.opacity16),tertiarySuccessDisabledComponentOpacity:o.extend("--ft-button-tertiary-success-disabled-component-opacity","",c.opacity40),tertiaryWarningBackgroundColor:o.create("--ft-button-tertiary-warning-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryWarningColor:o.extend("--ft-button-tertiary-warning-color","",u.contentWarningPrimary),tertiaryWarningIconColor:o.extend("--ft-button-tertiary-warning-icon-color","",u.contentWarningPrimary),tertiaryWarningStateLayerColor:o.extend("--ft-button-tertiary-warning-state-layer-color","",u.contentWarningPrimary),tertiaryWarningHoverStateLayerOpacity:o.extend("--ft-button-tertiary-warning-hover-state-layer-opacity","",c.opacity8),tertiaryWarningFocusStateLayerOpacity:o.extend("--ft-button-tertiary-warning-focus-state-layer-opacity","",c.opacity8),tertiaryWarningActiveStateLayerOpacity:o.extend("--ft-button-tertiary-warning-active-state-layer-opacity","",c.opacity16),tertiaryWarningDisabledComponentOpacity:o.extend("--ft-button-tertiary-warning-disabled-component-opacity","",c.opacity40),tertiaryErrorBackgroundColor:o.create("--ft-button-tertiary-error-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryErrorColor:o.extend("--ft-button-tertiary-error-color","",u.contentErrorPrimary),tertiaryErrorIconColor:o.extend("--ft-button-tertiary-error-icon-color","",u.contentErrorPrimary),tertiaryErrorStateLayerColor:o.extend("--ft-button-tertiary-error-state-layer-color","",u.contentErrorPrimary),tertiaryErrorHoverStateLayerOpacity:o.extend("--ft-button-tertiary-error-hover-state-layer-opacity","",c.opacity8),tertiaryErrorFocusStateLayerOpacity:o.extend("--ft-button-tertiary-error-focus-state-layer-opacity","",c.opacity8),tertiaryErrorActiveStateLayerOpacity:o.extend("--ft-button-tertiary-error-active-state-layer-opacity","",c.opacity16),tertiaryErrorDisabledComponentOpacity:o.extend("--ft-button-tertiary-error-disabled-component-opacity","",c.opacity40),tertiaryNeutralBackgroundColor:o.create("--ft-button-tertiary-neutral-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryNeutralIconColor:o.extend("--ft-button-tertiary-neutral-icon-color","",u.contentGlobalSecondary),tertiaryNeutralColor:o.extend("--ft-button-tertiary-neutral-color","",u.contentGlobalSecondary),tertiaryNeutralStateLayerColor:o.extend("--ft-button-tertiary-neutral-state-layer-color","",u.contentGlobalSecondary),tertiaryNeutralHoverStateLayerOpacity:o.extend("--ft-button-tertiary-neutral-hover-state-layer-opacity","",c.opacity8),tertiaryNeutralFocusStateLayerOpacity:o.extend("--ft-button-tertiary-neutral-focus-state-layer-opacity","",c.opacity8),tertiaryNeutralActiveStateLayerOpacity:o.extend("--ft-button-tertiary-neutral-active-state-layer-opacity","",c.opacity16),tertiaryNeutralDisabledComponentOpacity:o.extend("--ft-button-tertiary-neutral-disabled-component-opacity","",c.opacity40),secondaryBrandBackgroundColor:o.create("--ft-button-secondary-brand-background-color","","COLOR","rgba(0,0,0,0)"),secondaryBrandColor:o.extend("--ft-button-secondary-brand-color","",u.contentActionPrimary),secondaryBrandIconColor:o.extend("--ft-button-secondary-brand-icon-color","",u.contentActionPrimary),secondaryBrandStateLayerColor:o.extend("--ft-button-secondary-brand-state-layer-color","",u.contentActionPrimary),secondaryBrandHoverStateLayerOpacity:o.extend("--ft-button-secondary-brand-hover-state-layer-opacity","",c.opacity8),secondaryBrandFocusStateLayerOpacity:o.extend("--ft-button-secondary-brand-focus-state-layer-opacity","",c.opacity8),secondaryBrandActiveStateLayerOpacity:o.extend("--ft-button-secondary-brand-active-state-layer-opacity","",c.opacity16),secondaryBrandDisabledComponentOpacity:o.extend("--ft-button-secondary-brand-disabled-component-opacity","",c.opacity40),secondaryBrandBorderColor:o.extend("--ft-button-secondary-brand-border-color","",u.borderActionPrimary),secondaryNeutralHoverStateLayerOpacity:o.extend("--ft-button-secondary-neutral-hover-state-layer-opacity","",c.opacity8),secondaryNeutralFocusStateLayerOpacity:o.extend("--ft-button-secondary-neutral-focus-state-layer-opacity","",c.opacity8),secondaryNeutralActiveStateLayerOpacity:o.extend("--ft-button-secondary-neutral-active-state-layer-opacity","",c.opacity16),secondaryNeutralDisabledComponentOpacity:o.extend("--ft-button-secondary-neutral-disabled-component-opacity","",c.opacity40),secondaryNeutralBackgroundColor:o.create("--ft-button-secondary-neutral-background-color","","COLOR","rgba(0,0,0,0)"),secondaryNeutralColor:o.extend("--ft-button-secondary-neutral-color","",u.contentGlobalSecondary),secondaryNeutralIconColor:o.extend("--ft-button-secondary-neutral-icon-color","",u.contentGlobalSecondary),secondaryNeutralStateLayerColor:o.extend("--ft-button-secondary-neutral-state-layer-color","",u.contentGlobalSecondary),secondaryNeutralBorderColor:o.extend("--ft-button-secondary-neutral-border-color","",u.borderNeutralPrimary),secondaryInfoHoverStateLayerOpacity:o.extend("--ft-button-secondary-info-hover-state-layer-opacity","",c.opacity8),secondaryInfoFocusStateLayerOpacity:o.extend("--ft-button-secondary-info-focus-state-layer-opacity","",c.opacity8),secondaryInfoActiveStateLayerOpacity:o.extend("--ft-button-secondary-info-active-state-layer-opacity","",c.opacity16),secondaryInfoDisabledComponentOpacity:o.extend("--ft-button-secondary-info-disabled-component-opacity","",c.opacity40),secondaryInfoBackgroundColor:o.create("--ft-button-secondary-info-background-color","","COLOR","rgba(0,0,0,0)"),secondaryInfoBorderColor:o.extend("--ft-button-secondary-info-border-color","",u.borderInfoPrimary),secondaryInfoColor:o.extend("--ft-button-secondary-info-color","",u.contentInfoPrimary),secondaryInfoIconColor:o.extend("--ft-button-secondary-info-icon-color","",u.contentInfoPrimary),secondaryInfoStateLayerColor:o.extend("--ft-button-secondary-info-state-layer-color","",u.contentInfoPrimary),secondarySuccessHoverStateLayerOpacity:o.extend("--ft-button-secondary-success-hover-state-layer-opacity","",c.opacity8),secondarySuccessFocusStateLayerOpacity:o.extend("--ft-button-secondary-success-focus-state-layer-opacity","",c.opacity8),secondarySuccessActiveStateLayerOpacity:o.extend("--ft-button-secondary-success-active-state-layer-opacity","",c.opacity16),secondarySuccessDisabledComponentOpacity:o.extend("--ft-button-secondary-success-disabled-component-opacity","",c.opacity40),secondarySuccessBackgroundColor:o.create("--ft-button-secondary-success-background-color","","COLOR","rgba(0,0,0,0)"),secondarySuccessBorderColor:o.extend("--ft-button-secondary-success-border-color","",u.borderSuccessPrimary),secondarySuccessColor:o.extend("--ft-button-secondary-success-color","",u.contentSuccessPrimary),secondarySuccessIconColor:o.extend("--ft-button-secondary-success-icon-color","",u.contentSuccessPrimary),secondarySuccessStateLayerColor:o.extend("--ft-button-secondary-success-state-layer-color","",u.contentSuccessPrimary),secondaryWarningHoverStateLayerOpacity:o.extend("--ft-button-secondary-warning-hover-state-layer-opacity","",c.opacity8),secondaryWarningFocusStateLayerOpacity:o.extend("--ft-button-secondary-warning-focus-state-layer-opacity","",c.opacity8),secondaryWarningActiveStateLayerOpacity:o.extend("--ft-button-secondary-warning-active-state-layer-opacity","",c.opacity16),secondaryWarningDisabledComponentOpacity:o.extend("--ft-button-secondary-warning-disabled-component-opacity","",c.opacity40),secondaryWarningBackgroundColor:o.create("--ft-button-secondary-warning-background-color","","COLOR","rgba(0,0,0,0)"),secondaryWarningBorderColor:o.extend("--ft-button-secondary-warning-border-color","",u.borderWarningPrimary),secondaryWarningColor:o.extend("--ft-button-secondary-warning-color","",u.contentWarningPrimary),secondaryWarningIconColor:o.extend("--ft-button-secondary-warning-icon-color","",u.contentWarningPrimary),secondaryWarningStateLayerColor:o.extend("--ft-button-secondary-warning-state-layer-color","",u.contentWarningPrimary),secondaryErrorHoverStateLayerOpacity:o.extend("--ft-button-secondary-error-hover-state-layer-opacity","",c.opacity8),secondaryErrorFocusStateLayerOpacity:o.extend("--ft-button-secondary-error-focus-state-layer-opacity","",c.opacity8),secondaryErrorActiveStateLayerOpacity:o.extend("--ft-button-secondary-error-active-state-layer-opacity","",c.opacity16),secondaryErrorDisabledComponentOpacity:o.extend("--ft-button-secondary-error-disabled-component-opacity","",c.opacity40),secondaryErrorBackgroundColor:o.create("--ft-button-secondary-error-background-color","","COLOR","rgba(0,0,0,0)"),secondaryErrorBorderColor:o.extend("--ft-button-secondary-error-border-color","",u.contentErrorPrimary),secondaryErrorColor:o.extend("--ft-button-secondary-error-color","",u.contentErrorPrimary),secondaryErrorIconColor:o.extend("--ft-button-secondary-error-icon-color","",u.contentErrorPrimary),secondaryErrorStateLayerColor:o.extend("--ft-button-secondary-error-state-layer-color","",u.contentErrorPrimary)};var nu={neutralOffHoverStateLayerOpacity:o.extend("--ft-chip-choice-neutral-off-hover-state-layer-opacity","",c.opacity8),neutralOffFocusStateLayerOpacity:o.extend("--ft-chip-choice-neutral-off-focus-state-layer-opacity","",c.opacity8),neutralOffFocusFocusRingColor:o.extend("--ft-chip-choice-neutral-off-focus-focus-ring-color","",u.borderActionFocusRing),neutralOffActiveStateLayerOpacity:o.extend("--ft-chip-choice-neutral-off-active-state-layer-opacity","",c.opacity16),neutralOffBackgroundColor:o.extend("--ft-chip-choice-neutral-off-background-color","",u.backgroundGlobalOnSurface),neutralOffBorderColor:o.extend("--ft-chip-choice-neutral-off-border-color","",u.borderGlobalPrimary),neutralOffColor:o.extend("--ft-chip-choice-neutral-off-color","",u.contentGlobalSecondary),neutralOffStateLayerColor:o.extend("--ft-chip-choice-neutral-off-state-layer-color","",u.contentGlobalSecondary),neutralOnDefaultStateLayerOpacity:o.extend("--ft-chip-choice-neutral-on-default-state-layer-opacity","",c.opacity16),neutralOnHoverStateLayerOpacity:o.extend("--ft-chip-choice-neutral-on-hover-state-layer-opacity","",c.opacity24),neutralOnFocusStateLayerOpacity:o.extend("--ft-chip-choice-neutral-on-focus-state-layer-opacity","",c.opacity24),neutralOnFocusFocusRingColor:o.extend("--ft-chip-choice-neutral-on-focus-focus-ring-color","",u.borderActionFocusRing),neutralOnActiveStateLayerOpacity:o.extend("--ft-chip-choice-neutral-on-active-state-layer-opacity","",c.opacity32),neutralOnBackgroundColor:o.extend("--ft-chip-choice-neutral-on-background-color","",u.backgroundGlobalOnSurface),neutralOnBorderColor:o.extend("--ft-chip-choice-neutral-on-border-color","",u.borderGlobalPrimary),neutralOnColor:o.extend("--ft-chip-choice-neutral-on-color","",u.contentGlobalPrimary),neutralOnIconColor:o.extend("--ft-chip-choice-neutral-on-icon-color","",u.contentGlobalPrimary),neutralOnStateLayerColor:o.extend("--ft-chip-choice-neutral-on-state-layer-color","",u.contentGlobalPrimary),largeMinHeight:o.create("--ft-chip-choice-large-min-height","","SIZE","36px"),largeHorizontalPadding:o.extend("--ft-chip-choice-large-horizontal-padding","",c.spacing3),largeGap:o.extend("--ft-chip-choice-large-gap","",c.spacing1),largeBorderRadius:o.create("--ft-chip-choice-large-border-radius","","SIZE","18px"),largeBorderWidth:o.create("--ft-chip-choice-large-border-width","","SIZE","1px"),largeIconSize:o.extend("--ft-chip-choice-large-icon-size","",c.iconSize3),mediumMinHeight:o.create("--ft-chip-choice-medium-min-height","","SIZE","24px"),mediumHorizontalPadding:o.extend("--ft-chip-choice-medium-horizontal-padding","",c.spacing2),mediumGap:o.extend("--ft-chip-choice-medium-gap","",c.spacing1),mediumBorderRadius:o.create("--ft-chip-choice-medium-border-radius","","SIZE","12px"),mediumBorderWidth:o.create("--ft-chip-choice-medium-border-width","","SIZE","1px"),mediumIconSize:o.extend("--ft-chip-choice-medium-icon-size","",c.iconSize2)};var au={largeMinHeight:o.create("--ft-chip-large-min-height","","SIZE","36px"),largeHorizontalPadding:o.extend("--ft-chip-large-horizontal-padding","",c.spacing3),largeButtonRightPadding:o.extend("--ft-chip-large-button-right-padding","",c.spacing1),largeGap:o.extend("--ft-chip-large-gap","",c.spacing1),largeFocusOutlineOffset:o.create("--ft-chip-large-focus-outline-offset","","SIZE","2px"),largeFocusOutlineWidth:o.create("--ft-chip-large-focus-outline-width","","SIZE","2px"),largeBorderRadius:o.create("--ft-chip-large-border-radius","","SIZE","18px"),largeBorderWidth:o.create("--ft-chip-large-border-width","","SIZE","1px"),largeIconSize:o.extend("--ft-chip-large-icon-size","",c.iconSize3),mediumMinHeight:o.create("--ft-chip-medium-min-height","","SIZE","24px"),mediumHorizontalPadding:o.extend("--ft-chip-medium-horizontal-padding","",c.spacing2),mediumButtonRightPadding:o.extend("--ft-chip-medium-button-right-padding","",c.spacing05),mediumGap:o.extend("--ft-chip-medium-gap","",c.spacing1),mediumFocusOutlineOffset:o.create("--ft-chip-medium-focus-outline-offset","","SIZE","2px"),mediumFocusOutlineWidth:o.create("--ft-chip-medium-focus-outline-width","","SIZE","2px"),mediumBorderRadius:o.create("--ft-chip-medium-border-radius","","SIZE","12px"),mediumBorderWidth:o.create("--ft-chip-medium-border-width","","SIZE","1px"),mediumIconSize:o.extend("--ft-chip-medium-icon-size","",c.iconSize2),smallMinHeight:o.create("--ft-chip-small-min-height","","SIZE","20px"),smallHorizontalPadding:o.extend("--ft-chip-small-horizontal-padding","",c.spacing1),smallButtonRightPadding:o.extend("--ft-chip-small-button-right-padding","",c.spacing05),smallGap:o.extend("--ft-chip-small-gap","",c.spacing1),smallFocusOutlineOffset:o.create("--ft-chip-small-focus-outline-offset","","SIZE","2px"),smallFocusOutlineWidth:o.create("--ft-chip-small-focus-outline-width","","SIZE","2px"),smallBorderRadius:o.create("--ft-chip-small-border-radius","","SIZE","10px"),smallBorderWidth:o.create("--ft-chip-small-border-width","","SIZE","1px"),smallIconSize:o.extend("--ft-chip-small-icon-size","",c.iconSize1),neutralBackgroundColor:o.extend("--ft-chip-neutral-background-color","",u.backgroundGlobalOnSurface),neutralColor:o.extend("--ft-chip-neutral-color","",u.contentGlobalSecondary),neutralIconColor:o.extend("--ft-chip-neutral-icon-color","",u.contentGlobalSecondary),neutralBorderColor:o.extend("--ft-chip-neutral-border-color","",u.borderGlobalSubtle),infoBackgroundColor:o.extend("--ft-chip-info-background-color","",u.backgroundInfoSubtle),infoColor:o.extend("--ft-chip-info-color","",u.contentInfoPrimary),infoIconColor:o.extend("--ft-chip-info-icon-color","",u.contentInfoIconOnly),infoBorderColor:o.extend("--ft-chip-info-border-color","",u.borderInfoSubtle),successBackgroundColor:o.extend("--ft-chip-success-background-color","",u.backgroundSuccessSubtle),successColor:o.extend("--ft-chip-success-color","",u.contentSuccessPrimary),successIconColor:o.extend("--ft-chip-success-icon-color","",u.contentSuccessIconOnly),successBorderColor:o.extend("--ft-chip-success-border-color","",u.borderSuccessSubtle),warningBackgroundColor:o.extend("--ft-chip-warning-background-color","",u.backgroundWarningSubtle),warningColor:o.extend("--ft-chip-warning-color","",u.contentWarningPrimary),warningIconColor:o.extend("--ft-chip-warning-icon-color","",u.contentWarningIconOnly),warningBorderColor:o.extend("--ft-chip-warning-border-color","",u.borderWarningSubtle),errorBackgroundColor:o.extend("--ft-chip-error-background-color","",u.backgroundErrorSubtle),errorColor:o.extend("--ft-chip-error-color","",u.contentErrorPrimary),errorIconColor:o.extend("--ft-chip-error-icon-color","",u.contentErrorIconOnly),errorBorderColor:o.extend("--ft-chip-error-border-color","",u.borderErrorSubtle)};var su={brandHoverOpacity:o.extend("--ft-link-brand-hover-opacity","",c.opacity80),brandHoverColor:o.extend("--ft-link-brand-hover-color","",u.contentActionPrimary),brandFocusFocusRingColor:o.extend("--ft-link-brand-focus-focus-ring-color","",u.borderActionFocusRing),brandFocusColor:o.extend("--ft-link-brand-focus-color","",u.contentActionPrimary),brandDefaultColor:o.extend("--ft-link-brand-default-color","",u.contentActionPrimary),brandActiveColor:o.extend("--ft-link-brand-active-color","",u.contentActionPrimary),infoHoverOpacity:o.extend("--ft-link-info-hover-opacity","",c.opacity80),infoHoverColor:o.extend("--ft-link-info-hover-color","",u.contentInfoPrimary),infoFocusFocusRingColor:o.extend("--ft-link-info-focus-focus-ring-color","",u.borderActionFocusRing),infoFocusColor:o.extend("--ft-link-info-focus-color","",u.contentInfoPrimary),infoDefaultColor:o.extend("--ft-link-info-default-color","",u.contentInfoPrimary),infoActiveColor:o.extend("--ft-link-info-active-color","",u.contentInfoPrimary),neutralFocusFocusRingColor:o.extend("--ft-link-neutral-focus-focus-ring-color","",u.borderActionFocusRing),neutralFocusColor:o.extend("--ft-link-neutral-focus-color","",u.contentActionPrimary),neutralDefaultColor:o.extend("--ft-link-neutral-default-color","",u.contentGlobalPrimary),neutralHoverColor:o.extend("--ft-link-neutral-hover-color","",u.contentActionPrimary),neutralActiveColor:o.extend("--ft-link-neutral-active-color","",u.contentActionPrimary),neutralVisitedColor:o.extend("--ft-link-neutral-visited-color","",c.colorBrand100)};var lu={iconSize:o.extend("--ft-banner-icon-size","",c.iconSize5),borderWidth:o.create("--ft-banner-border-width","","SIZE","1px"),leftPadding:o.extend("--ft-banner-left-padding","",c.spacing6),rightPadding:o.extend("--ft-banner-right-padding","",c.spacing6),verticalPadding:o.extend("--ft-banner-vertical-padding","",c.spacing6),horizontalSideGap:o.extend("--ft-banner-horizontal-side-gap","",c.spacing6),horizontalMobileGap:o.extend("--ft-banner-horizontal-mobile-gap","",c.spacing4),verticalMobileGap:o.extend("--ft-banner-vertical-mobile-gap","",c.spacing6),horizontalMiddleGap:o.extend("--ft-banner-horizontal-middle-gap","",c.spacing20),infoBackgroundColor:o.extend("--ft-banner-info-background-color","",u.backgroundInfoSubtle),infoColor:o.extend("--ft-banner-info-color","",u.contentInfoPrimary),infoIconColor:o.extend("--ft-banner-info-icon-color","",u.contentInfoIconOnly),infoBorderColor:o.extend("--ft-banner-info-border-color","",u.borderInfoSubtle)};var cu={horizontalPadding:o.extend("--ft-badge-horizontal-padding","",c.spacing1),verticalPadding:o.extend("--ft-badge-vertical-padding","",c.spacing1),borderRadius:o.extend("--ft-badge-border-radius","",c.borderRadiusPill),color:o.extend("--ft-badge-color","",u.contentGlobalOnColor),backgroundColor:o.extend("--ft-badge-background-color","",u.contentActionPrimary)};var du={horizontalGap:o.extend("--ft-title-breadcrumb-horizontal-gap","",c.spacing1),currentColor:o.extend("--ft-title-breadcrumb-current-color","",u.contentGlobalPrimary),previousNonClickableColor:o.extend("--ft-title-breadcrumb-previous-non-clickable-color","",u.contentGlobalSecondary),iconColor:o.extend("--ft-title-breadcrumb-icon-color","",u.contentGlobalSubtle)};var pu={parentHorizontalPadding:o.extend("--ft-page-header-parent-horizontal-padding","",c.spacing6),parentTopPadding:o.extend("--ft-page-header-parent-top-padding","",c.spacing4),parentBottomPadding:o.extend("--ft-page-header-parent-bottom-padding","",c.spacing6),parentHelpLeftMargin:o.extend("--ft-page-header-parent-help-left-margin","",c.spacing1),parentTitleColor:o.extend("--ft-page-header-parent-title-color","",u.contentGlobalPrimary),parentSubtitleColor:o.extend("--ft-page-header-parent-subtitle-color","",u.contentGlobalSecondary),parentChipLeftMargin:o.extend("--ft-page-header-parent-chip-left-margin","",c.spacing4),parentVerticalGap:o.extend("--ft-page-header-parent-vertical-gap","",c.spacing2),parentButtonsGroupHorizontalGap:o.extend("--ft-page-header-parent-buttons-group-horizontal-gap","",c.spacing4),parentButtonsGroupVerticalGap:o.extend("--ft-page-header-parent-buttons-group-vertical-gap","",c.spacing4),parentChipsGroupHorizontalGap:o.extend("--ft-page-header-parent-chips-group-horizontal-gap","",c.spacing2),parentChipsGroupVerticalGap:o.extend("--ft-page-header-parent-chips-group-vertical-gap","",c.spacing2),childHorizontalPadding:o.extend("--ft-page-header-child-horizontal-padding","",c.spacing6),childTopPadding:o.extend("--ft-page-header-child-top-padding","",c.spacing2),childBottomPadding:o.extend("--ft-page-header-child-bottom-padding","",c.spacing2),childHelpLeftMargin:o.extend("--ft-page-header-child-help-left-margin","",c.spacing1),childChipLeftMargin:o.extend("--ft-page-header-child-chip-left-margin","",c.spacing4),childVerticalGap:o.extend("--ft-page-header-child-vertical-gap","",c.spacing2),childMinHeight:o.create("--ft-page-header-child-min-height","","SIZE","40px"),childButtonsGroupHorizontalGap:o.extend("--ft-page-header-child-buttons-group-horizontal-gap","",c.spacing4),childButtonsGroupVerticalGap:o.extend("--ft-page-header-child-buttons-group-vertical-gap","",c.spacing4),childChipsGroupHorizontalGap:o.extend("--ft-page-header-child-chips-group-horizontal-gap","",c.spacing2),childChipsGroupVerticalGap:o.extend("--ft-page-header-child-chips-group-vertical-gap","",c.spacing2),backgroundColor:o.extend("--ft-page-header-background-color","",c.colorWhite),bottomBorderColor:o.extend("--ft-page-header-bottom-border-color","",u.borderGlobalSubtle),bottomBorderWidth:o.create("--ft-page-header-bottom-border-width","","SIZE","1px")};var uu={horizontalPadding:o.extend("--ft-page-footer-horizontal-padding","",c.spacing6),verticalPadding:o.extend("--ft-page-footer-vertical-padding","",c.spacing2),verticalGap:o.extend("--ft-page-footer-vertical-gap","",c.spacing2),minHeight:o.create("--ft-page-footer-min-height","","SIZE","40px"),backgroundColor:o.extend("--ft-page-footer-background-color","",c.colorWhite),topBorderColor:o.extend("--ft-page-footer-top-border-color","",u.borderGlobalSubtle),topBorderWidth:o.create("--ft-page-footer-top-border-width","","SIZE","1px"),buttonsGroupGap:o.extend("--ft-page-footer-buttons-group-gap","",c.spacing4)};var fu={contentHorizontalPadding:o.extend("--ft-page-layout-content-horizontal-padding","",c.spacing6),contentVerticalPadding:o.extend("--ft-page-layout-content-vertical-padding","",c.spacing6)};var hu={smallContainerTargetWidth:o.create("--ft-modal-small-container-target-width","","SIZE","560px"),smallContainerMargin:o.extend("--ft-modal-small-container-margin","",c.spacing6),mediumContainerTargetWidth:o.create("--ft-modal-medium-container-target-width","","SIZE","800px"),mediumContainerMargin:o.extend("--ft-modal-medium-container-margin","",c.spacing6),largeContainerTargetWidth:o.create("--ft-modal-large-container-target-width","","SIZE","1040px"),largeContainerMargin:o.extend("--ft-modal-large-container-margin","",c.spacing6),overlayBackgroundColor:o.extend("--ft-modal-overlay-background-color","",c.colorGray700),overlayOpacity:o.extend("--ft-modal-overlay-opacity","",c.opacity40),shadow:o.extend("--ft-modal-shadow","",c.shadowElevation03),bodyBackgroundColor:o.extend("--ft-modal-body-background-color","",c.colorWhite),bodyColor:o.extend("--ft-modal-body-color","",u.contentGlobalPrimary),bodyHorizontalPadding:o.extend("--ft-modal-body-horizontal-padding","",c.spacing6),bodyVerticalPadding:o.extend("--ft-modal-body-vertical-padding","",c.spacing6),bodyVerticalGap:o.extend("--ft-modal-body-vertical-gap","",c.spacing6),headerBackgroundColor:o.extend("--ft-modal-header-background-color","",u.backgroundGlobalOnSurface),headerBorderColor:o.extend("--ft-modal-header-border-color","",u.borderGlobalSubtle),headerColor:o.extend("--ft-modal-header-color","",u.contentGlobalPrimary),headerLeadingIconColor:o.extend("--ft-modal-header-leading-icon-color","",u.contentGlobalPrimary),headerVerticalPadding:o.extend("--ft-modal-header-vertical-padding","",c.spacing1),headerRightPadding:o.extend("--ft-modal-header-right-padding","",c.spacing1),headerLeftPadding:o.extend("--ft-modal-header-left-padding","",c.spacing6),headerGap:o.extend("--ft-modal-header-gap","",c.spacing2),headerBorderBottomWidth:o.create("--ft-modal-header-border-bottom-width","","SIZE","1px"),borderRadius:o.extend("--ft-modal-border-radius","",c.borderRadiusM)};var mu={overlayOpacity:o.extend("--ft-drawer-overlay-opacity","",c.opacity40),shadow:o.extend("--ft-drawer-shadow","",c.shadowElevation03),bodyColor:o.extend("--ft-drawer-body-color","",u.contentGlobalPrimary),bodyHorizontalPadding:o.extend("--ft-drawer-body-horizontal-padding","",c.spacing6),bodyVerticalPadding:o.extend("--ft-drawer-body-vertical-padding","",c.spacing6),bodyGap:o.extend("--ft-drawer-body-gap","",c.spacing6),bodyBackgroundColor:o.extend("--ft-drawer-body-background-color","",c.colorWhite),headerBackgroundColor:o.extend("--ft-drawer-header-background-color","",u.backgroundGlobalOnSurface),headerBorderColor:o.extend("--ft-drawer-header-border-color","",u.borderGlobalSubtle),headerColor:o.extend("--ft-drawer-header-color","",u.contentGlobalPrimary),headerTrailingIconColor:o.extend("--ft-drawer-header-trailing-icon-color","",u.contentGlobalSecondary),headerHeight:o.create("--ft-drawer-header-height","","SIZE","50px"),headerHorizontalPadding:o.extend("--ft-drawer-header-horizontal-padding","",c.spacing2),headerBorderWidth:o.create("--ft-drawer-header-border-width","","SIZE","1px"),headerGap:o.extend("--ft-drawer-header-gap","",c.spacing3),buttonsBarBackgroundColor:o.extend("--ft-drawer-buttons-bar-background-color","",u.backgroundGlobalOnSurface),buttonsBarBorderColor:o.extend("--ft-drawer-buttons-bar-border-color","",u.borderGlobalSubtle),buttonsBarColor:o.extend("--ft-drawer-buttons-bar-color","",u.contentGlobalPrimary),buttonsBarHorizontalPadding:o.extend("--ft-drawer-buttons-bar-horizontal-padding","",c.spacing6),buttonsBarVerticalPadding:o.extend("--ft-drawer-buttons-bar-vertical-padding","",c.spacing4),buttonsBarGap:o.extend("--ft-drawer-buttons-bar-gap","",c.spacing3),buttonsBarBorderWidth:o.create("--ft-drawer-buttons-bar-border-width","","SIZE","1px"),containerWidth:o.create("--ft-drawer-container-width","","SIZE","66%"),containerMinWidth:o.create("--ft-drawer-container-min-width","","SIZE","500px"),containerMaxWidth:o.create("--ft-drawer-container-max-width","","SIZE","1000px"),containerHeight:o.create("--ft-drawer-container-height","","SIZE","100%"),overlayBackgroundColor:o.extend("--ft-drawer-overlay-background-color","",c.colorGray700)};var yu={offBorderBottomWidth:o.create("--ft-tabs-off-border-bottom-width","","SIZE","1px"),offHoverStateLayerOpacity:o.extend("--ft-tabs-off-hover-state-layer-opacity","",c.opacity8),offDefaultStateLayerOpacity:o.extend("--ft-tabs-off-default-state-layer-opacity","",c.opacity0),offFocusStateLayerOpacity:o.extend("--ft-tabs-off-focus-state-layer-opacity","",c.opacity8),offDisabledComponentOpacity:o.extend("--ft-tabs-off-disabled-component-opacity","",c.opacity40),offColor:o.extend("--ft-tabs-off-color","",u.contentGlobalSubtle),offStateLayerColor:o.extend("--ft-tabs-off-state-layer-color","",u.contentGlobalSubtle),offBorderBottomColor:o.extend("--ft-tabs-off-border-bottom-color","",u.borderGlobalSubtle),activeTabIndicatorHeight:o.create("--ft-tabs-active-tab-indicator-height","","SIZE","3px"),topLeftBorderRadius:o.extend("--ft-tabs-top-left-border-radius","",c.borderRadiusS),topRightBorderRadius:o.extend("--ft-tabs-top-right-border-radius","",c.borderRadiusS),withLabelHorizontalPadding:o.extend("--ft-tabs-with-label-horizontal-padding","",c.spacing4),withLabelVerticalPadding:o.extend("--ft-tabs-with-label-vertical-padding","",c.spacing3),horizontalGap:o.extend("--ft-tabs-horizontal-gap","",c.spacing1),verticalGap:o.extend("--ft-tabs-vertical-gap","",c.spacing1),onHoverStateLayerOpacity:o.extend("--ft-tabs-on-hover-state-layer-opacity","",c.opacity16),onDefaultStateLayerOpacity:o.extend("--ft-tabs-on-default-state-layer-opacity","",c.opacity8),onFocusStateLayerOpacity:o.extend("--ft-tabs-on-focus-state-layer-opacity","",c.opacity16),onActiveStateLayerOpacity:o.extend("--ft-tabs-on-active-state-layer-opacity","",c.opacity24),onColor:o.extend("--ft-tabs-on-color","",u.contentActionPrimary),onStateLayerColor:o.extend("--ft-tabs-on-state-layer-color","",u.contentActionPrimary),onActiveTabIndicatorColor:o.extend("--ft-tabs-on-active-tab-indicator-color","",u.contentActionPrimary),iconOnlyHorizontalPadding:o.extend("--ft-tabs-icon-only-horizontal-padding","",c.spacing4),iconOnlyVerticalPadding:o.extend("--ft-tabs-icon-only-vertical-padding","",c.spacing4),alertTopPadding:o.extend("--ft-tabs-alert-top-padding","",c.spacing1),alertRightPadding:o.extend("--ft-tabs-alert-right-padding","",c.spacing05),focusOutlineWidth:o.create("--ft-tabs-focus-outline-width","","SIZE","2px"),focusFocusRingColor:o.extend("--ft-tabs-focus-focus-ring-color","",u.borderActionFocusRing)};var gu={fieldHorizontalPadding:o.extend("--ft-text-input-field-horizontal-padding","",c.spacing4),fieldHorizontalGap:o.extend("--ft-text-input-field-horizontal-gap","",c.spacing3),fieldVerticalGap:o.extend("--ft-text-input-field-vertical-gap","",c.spacing05),fieldIconSize:o.extend("--ft-text-input-field-icon-size","",c.iconSize3),fieldHeight:o.create("--ft-text-input-field-height","","SIZE","50px"),helperHorizontalPadding:o.extend("--ft-text-input-helper-horizontal-padding","",c.spacing4),helperHorizontalGap:o.extend("--ft-text-input-helper-horizontal-gap","",c.spacing1),helperIconSize:o.extend("--ft-text-input-helper-icon-size","",c.iconSize2),borderRadius:o.extend("--ft-text-input-border-radius","",c.borderRadiusM),backgroundColor:o.extend("--ft-text-input-background-color","",c.colorWhite),contentValueColor:o.extend("--ft-text-input-content-value-color","",u.contentGlobalPrimary),trailingIconColor:o.extend("--ft-text-input-trailing-icon-color","",u.contentGlobalSubtle),labelColor:o.extend("--ft-text-input-label-color","",u.contentGlobalSubtle),defaultBorderColor:o.extend("--ft-text-input-default-border-color","",u.borderInputPrimary),defaultHelperTextColor:o.extend("--ft-text-input-default-helper-text-color","",u.contentGlobalSubtle),defaultBorderWidth:o.create("--ft-text-input-default-border-width","","SIZE","1px"),errorBorderWidth:o.create("--ft-text-input-error-border-width","","SIZE","2px"),errorBorderColor:o.extend("--ft-text-input-error-border-color","",u.borderErrorPrimary),errorHelperTextColor:o.extend("--ft-text-input-error-helper-text-color","",u.contentErrorPrimary),errorHelperIconColor:o.extend("--ft-text-input-error-helper-icon-color","",u.contentErrorIconOnly),warningBorderWidth:o.create("--ft-text-input-warning-border-width","","SIZE","2px"),focusOutlineWidth:o.create("--ft-text-input-focus-outline-width","","SIZE","2px"),focusFocusRingColor:o.extend("--ft-text-input-focus-focus-ring-color","",u.borderActionFocusRing),focusOutlineOffset:o.create("--ft-text-input-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:o.extend("--ft-text-input-disabled-component-opacity","",c.opacity40)};var bu={backgroundColor:o.extend("--ft-text-area-background-color","",c.colorWhite),contentValueColor:o.extend("--ft-text-area-content-value-color","",u.contentGlobalPrimary),labelColor:o.extend("--ft-text-area-label-color","",u.contentGlobalSubtle),defaultBorderColor:o.extend("--ft-text-area-default-border-color","",u.borderInputPrimary),defaultHelperTextColor:o.extend("--ft-text-area-default-helper-text-color","",u.contentGlobalSubtle),defaultBorderWidth:o.create("--ft-text-area-default-border-width","","SIZE","1px"),errorBorderWidth:o.create("--ft-text-area-error-border-width","","SIZE","2px"),errorBorderColor:o.extend("--ft-text-area-error-border-color","",u.borderErrorPrimary),errorHelperTextColor:o.extend("--ft-text-area-error-helper-text-color","",u.contentErrorPrimary),errorHelperIconColor:o.extend("--ft-text-area-error-helper-icon-color","",u.contentErrorIconOnly),focusFocusRingColor:o.extend("--ft-text-area-focus-focus-ring-color","",u.borderActionFocusRing),focusOutlineWidth:o.create("--ft-text-area-focus-outline-width","","SIZE","2px"),focusOutlineOffset:o.create("--ft-text-area-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:o.extend("--ft-text-area-disabled-component-opacity","",c.opacity40),fieldHorizontalLeftPadding:o.extend("--ft-text-area-field-horizontal-left-padding","",c.spacing4),fieldHorizontalGap:o.extend("--ft-text-area-field-horizontal-gap","",c.spacing3),fieldVerticalGap:o.extend("--ft-text-area-field-vertical-gap","",c.spacing05),fieldMinHeight:o.create("--ft-text-area-field-min-height","","SIZE","64px"),helperHorizontalPadding:o.extend("--ft-text-area-helper-horizontal-padding","",c.spacing4),helperHorizontalGap:o.extend("--ft-text-area-helper-horizontal-gap","",c.spacing1),helperIconSize:o.extend("--ft-text-area-helper-icon-size","",c.iconSize2),borderRadius:o.extend("--ft-text-area-border-radius","",c.borderRadiusM)};var vu={height:o.create("--ft-floating-menu-height","","SIZE","50px"),horizontalPadding:o.extend("--ft-floating-menu-horizontal-padding","",c.spacing4),offIconColor:o.extend("--ft-floating-menu-off-icon-color","",u.contentGlobalPrimary),offColor:o.extend("--ft-floating-menu-off-color","",u.contentGlobalPrimary),onColor:o.extend("--ft-floating-menu-on-color","",u.contentActionPrimary),onStateLayerColor:o.extend("--ft-floating-menu-on-state-layer-color","",u.contentActionPrimary),gap:o.extend("--ft-floating-menu-gap","",c.spacing3),focusFocusRingColor:o.extend("--ft-floating-menu-focus-focus-ring-color","",u.borderActionFocusRing),focusOutlineWidth:o.create("--ft-floating-menu-focus-outline-width","","SIZE","3px"),focusStateLayerOpacity:o.extend("--ft-floating-menu-focus-state-layer-opacity","",c.opacity8),hoverStateLayerOpacity:o.extend("--ft-floating-menu-hover-state-layer-opacity","",c.opacity8),activeStateLayerOpacity:o.extend("--ft-floating-menu-active-state-layer-opacity","",c.opacity16),disabledComponentOpacity:o.extend("--ft-floating-menu-disabled-component-opacity","",c.opacity40),iconSize:o.extend("--ft-floating-menu-icon-size","",c.iconSize3),backgroundColor:o.extend("--ft-floating-menu-background-color","",u.backgroundGlobalOnSurface),shadow:o.extend("--ft-floating-menu-shadow","",c.shadowElevation02)};var xu={fieldHorizontalPadding:o.extend("--ft-combobox-single-select-field-horizontal-padding","",c.spacing4),fieldHorizontalGap:o.extend("--ft-combobox-single-select-field-horizontal-gap","",c.spacing3),fieldVerticalGap:o.extend("--ft-combobox-single-select-field-vertical-gap","",c.spacing05),fieldIconSize:o.extend("--ft-combobox-single-select-field-icon-size","",c.iconSize3),fieldHeight:o.create("--ft-combobox-single-select-field-height","","SIZE","50px"),helperHorizontalPadding:o.extend("--ft-combobox-single-select-helper-horizontal-padding","",c.spacing4),helperHorizontalGap:o.extend("--ft-combobox-single-select-helper-horizontal-gap","",c.spacing1),helperVerticalGap:o.extend("--ft-combobox-single-select-helper-vertical-gap","",c.spacing1),helperIconSize:o.extend("--ft-combobox-single-select-helper-icon-size","",c.iconSize2),menuVerticalGap:o.extend("--ft-combobox-single-select-menu-vertical-gap","",c.spacing2),borderRadius:o.extend("--ft-combobox-single-select-border-radius","",c.borderRadiusM),backgroundColor:o.extend("--ft-combobox-single-select-background-color","",c.colorWhite),labelColor:o.extend("--ft-combobox-single-select-label-color","",u.contentGlobalSubtle),contentValueColor:o.extend("--ft-combobox-single-select-content-value-color","",u.contentGlobalPrimary),trailingIconColor:o.extend("--ft-combobox-single-select-trailing-icon-color","",u.contentGlobalSubtle),defaultBorderColor:o.extend("--ft-combobox-single-select-default-border-color","",u.borderInputPrimary),defaultHelperTextColor:o.extend("--ft-combobox-single-select-default-helper-text-color","",u.contentGlobalSubtle),defaultBorderWidth:o.create("--ft-combobox-single-select-default-border-width","","SIZE","1px"),errorBorderWidth:o.create("--ft-combobox-single-select-error-border-width","","SIZE","2px"),errorBorderColor:o.extend("--ft-combobox-single-select-error-border-color","",u.borderErrorPrimary),errorHelperTextColor:o.extend("--ft-combobox-single-select-error-helper-text-color","",u.contentErrorPrimary),warningBorderWidth:o.create("--ft-combobox-single-select-warning-border-width","","SIZE","2px"),warningBorderColor:o.extend("--ft-combobox-single-select-warning-border-color","",u.borderWarningPrimary),warningHelperTextColor:o.extend("--ft-combobox-single-select-warning-helper-text-color","",u.contentWarningPrimary),warningHelperIconColor:o.extend("--ft-combobox-single-select-warning-helper-icon-color","",u.contentWarningIconOnly),focusOutlineWidth:o.create("--ft-combobox-single-select-focus-outline-width","","SIZE","2px"),focusFocusRingColor:o.extend("--ft-combobox-single-select-focus-focus-ring-color","",u.borderActionFocusRing),focusOutlineOffset:o.create("--ft-combobox-single-select-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:o.extend("--ft-combobox-single-select-disabled-component-opacity","",c.opacity40)};var Su={backgroundColor:o.extend("--ft-combobox-multi-select-background-color","",c.colorWhite),labelColor:o.extend("--ft-combobox-multi-select-label-color","",u.contentGlobalSubtle),trailingIconColor:o.extend("--ft-combobox-multi-select-trailing-icon-color","",u.contentGlobalSubtle),defaultBorderColor:o.extend("--ft-combobox-multi-select-default-border-color","",u.borderInputPrimary),defaultHelperTextColor:o.extend("--ft-combobox-multi-select-default-helper-text-color","",u.contentGlobalSubtle),defaultBorderWidth:o.create("--ft-combobox-multi-select-default-border-width","","SIZE","1px"),errorBorderColor:o.extend("--ft-combobox-multi-select-error-border-color","",u.borderErrorPrimary),errorHelperTextColor:o.extend("--ft-combobox-multi-select-error-helper-text-color","",u.contentErrorPrimary),errorHelperIcon:o.extend("--ft-combobox-multi-select-error-helper-icon","",u.contentErrorIconOnly),errorBorderWidth:o.create("--ft-combobox-multi-select-error-border-width","","SIZE","2px"),warningBorderColor:o.extend("--ft-combobox-multi-select-warning-border-color","",u.borderWarningPrimary),warningHelperTextColor:o.extend("--ft-combobox-multi-select-warning-helper-text-color","",u.contentWarningPrimary),warningHelperIconColor:o.extend("--ft-combobox-multi-select-warning-helper-icon-color","",u.contentWarningIconOnly),warningBorderWidth:o.create("--ft-combobox-multi-select-warning-border-width","","SIZE","2px"),focusFocusRingColor:o.extend("--ft-combobox-multi-select-focus-focus-ring-color","",u.borderActionFocusRing),focusOutlineWidth:o.create("--ft-combobox-multi-select-focus-outline-width","","SIZE","2px"),focusOutlineOffset:o.create("--ft-combobox-multi-select-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:o.extend("--ft-combobox-multi-select-disabled-component-opacity","",c.opacity40),helperHorizontalPadding:o.extend("--ft-combobox-multi-select-helper-horizontal-padding","",c.spacing4),helperHorizontalGap:o.extend("--ft-combobox-multi-select-helper-horizontal-gap","",c.spacing1),helperVerticalGap:o.extend("--ft-combobox-multi-select-helper-vertical-gap","",c.spacing1),helperIconSize:o.extend("--ft-combobox-multi-select-helper-icon-size","",c.iconSize2),fieldHorizontalPadding:o.extend("--ft-combobox-multi-select-field-horizontal-padding","",c.spacing4),fieldHorizontalGap:o.extend("--ft-combobox-multi-select-field-horizontal-gap","",c.spacing3),fieldVerticalGap:o.extend("--ft-combobox-multi-select-field-vertical-gap","",c.spacing05),fieldIconSize:o.extend("--ft-combobox-multi-select-field-icon-size","",c.iconSize3),fieldMaxHeight:o.create("--ft-combobox-multi-select-field-max-height","","SIZE","112px"),contentValuesHorizontalGap:o.extend("--ft-combobox-multi-select-content-values-horizontal-gap","",c.spacing1),contentValuesVerticalGap:o.extend("--ft-combobox-multi-select-content-values-vertical-gap","",c.spacing1),borderRadius:o.extend("--ft-combobox-multi-select-border-radius","",c.borderRadiusM)};var Ou={backgroundColor:o.extend("--ft-popover-background-color","",u.backgroundGlobalOnSurface),horizontalPadding:o.extend("--ft-popover-horizontal-padding","",c.spacing6),verticalPadding:o.extend("--ft-popover-vertical-padding","",c.spacing6),titleColor:o.extend("--ft-popover-title-color","",u.contentGlobalPrimary),bodyColor:o.extend("--ft-popover-body-color","",u.contentGlobalSecondary),linkColor:o.extend("--ft-popover-link-color","",u.contentActionPrimary),gap:o.extend("--ft-popover-gap","",c.spacing3),borderRadius:o.extend("--ft-popover-border-radius","",c.borderRadiusM),shadow:o.extend("--ft-popover-shadow","",c.shadowElevation02),maxWidth:o.create("--ft-popover-max-width","","SIZE","440px")};var Cu={hoverStateLayerOpacity:o.extend("--ft-collapsible-hover-state-layer-opacity","",c.opacity8),focusStateLayerOpacity:o.extend("--ft-collapsible-focus-state-layer-opacity","",c.opacity8),focusOutlineWidth:o.create("--ft-collapsible-focus-outline-width","","SIZE","3px"),focusFocusRingColor:o.extend("--ft-collapsible-focus-focus-ring-color","",u.borderActionFocusRing),activeStateLayerOpacity:o.extend("--ft-collapsible-active-state-layer-opacity","",c.opacity16),disabledComponentOpacity:o.extend("--ft-collapsible-disabled-component-opacity","",c.opacity40),horizontalPadding:o.extend("--ft-collapsible-horizontal-padding","",c.spacing4),verticalPadding:o.extend("--ft-collapsible-vertical-padding","",c.spacing3),color:o.extend("--ft-collapsible-color","",u.contentGlobalPrimary),stateLayerColor:o.extend("--ft-collapsible-state-layer-color","",u.contentGlobalPrimary),backgroundColor:o.extend("--ft-collapsible-background-color","",u.backgroundGlobalOnSurface),borderColor:o.extend("--ft-collapsible-border-color","",u.borderGlobalSubtle),iconSize:o.extend("--ft-collapsible-icon-size","",c.iconSize3)};var wu={groupHorizontalPadding:o.extend("--ft-switch-group-horizontal-padding","",c.spacing1),groupVerticalPadding:o.extend("--ft-switch-group-vertical-padding","",c.spacing1),groupGap:o.extend("--ft-switch-group-gap","",c.spacing1),groupBackgroundColor:o.extend("--ft-switch-group-background-color","",u.backgroundGlobalSurface),groupBorderColor:o.extend("--ft-switch-group-border-color","",u.borderGlobalSubtle),groupBorderRadius:o.create("--ft-switch-group-border-radius","","SIZE","6px"),labelHorizontalPadding:o.extend("--ft-switch-label-horizontal-padding","",c.spacing2),labelVerticalPadding:o.extend("--ft-switch-label-vertical-padding","",c.spacing1),offHoverStateLayerOpacity:o.extend("--ft-switch-off-hover-state-layer-opacity","",c.opacity8),offFocusStateLayerOpacity:o.extend("--ft-switch-off-focus-state-layer-opacity","",c.opacity8),offActiveStateLayerOpacity:o.extend("--ft-switch-off-active-state-layer-opacity","",c.opacity16),offDisabledComponentOpacity:o.extend("--ft-switch-off-disabled-component-opacity","",c.opacity40),offColor:o.extend("--ft-switch-off-color","",u.contentGlobalSubtle),offStateLayerColor:o.extend("--ft-switch-off-state-layer-color","",u.contentGlobalSubtle),onHoverStateLayerOpacity:o.extend("--ft-switch-on-hover-state-layer-opacity","",c.opacity8),onFocusStateLayerOpacity:o.extend("--ft-switch-on-focus-state-layer-opacity","",c.opacity8),onActiveStateLayerOpacity:o.extend("--ft-switch-on-active-state-layer-opacity","",c.opacity16),onDisabledComponentOpacity:o.extend("--ft-switch-on-disabled-component-opacity","",c.opacity40),onColor:o.extend("--ft-switch-on-color","",u.contentActionPrimary),onStateLayerColor:o.extend("--ft-switch-on-state-layer-color","",u.contentActionPrimary),iconHorizontalPadding:o.extend("--ft-switch-icon-horizontal-padding","",c.spacing1),iconVerticalPadding:o.extend("--ft-switch-icon-vertical-padding","",c.spacing1),focusOutlineWidth:o.create("--ft-switch-focus-outline-width","","SIZE","2px"),focusFocusRingColor:o.extend("--ft-switch-focus-focus-ring-color","",u.borderActionFocusRing),optionBorderRadius:o.extend("--ft-switch-option-border-radius","",c.borderRadiusS)};var Eu={color1Light:o.extend("--ft-chart-1-light","for area color charts",c.colorBrand40),color1Base:o.extend("--ft-chart-1-base","for line charts",c.colorBrand0),color2Light:o.extend("--ft-chart-2-light","for area color charts",c.colorYellow60),color2Base:o.extend("--ft-chart-2-base","for line charts",c.colorYellow100),color3Light:o.extend("--ft-chart-3-light","",c.colorUltramarine40),color3Base:o.extend("--ft-chart-3-base","",c.colorUltramarine70),color4Light:o.extend("--ft-chart-4-light","",c.colorCyan50),color4Base:o.extend("--ft-chart-4-base","",c.colorCyan100),color5Light:o.extend("--ft-chart-5-light","",c.colorRed40),color5Base:o.extend("--ft-chart-5-base","",c.colorRed60),color6Light:o.extend("--ft-chart-6-light","",c.colorGreen40),color6Base:o.extend("--ft-chart-6-base","",c.colorGreen70),color7Light:o.extend("--ft-chart-7-light","",c.colorOrange70),color7Base:o.extend("--ft-chart-7-base","",c.colorOrange100),color8Light:o.extend("--ft-chart-8-light","",c.colorAvocado70),color8Base:o.extend("--ft-chart-8-base","",c.colorAvocado200),color9Light:o.extend("--ft-chart-9-light","",c.colorBrown50),color9Base:o.extend("--ft-chart-9-base","",c.colorBrown200),color10Light:o.extend("--ft-chart-10-light","",c.colorGray50),color10Base:o.extend("--ft-chart-10-base","",c.colorGray80),monochrome10:o.extend("--ft-chart-monochrome-10","",c.colorBrand10),monochrome20:o.extend("--ft-chart-monochrome-20","",c.colorBrand20),monochrome30:o.extend("--ft-chart-monochrome-30","",c.colorBrand40),monochrome40:o.extend("--ft-chart-monochrome-40","",c.colorBrand60),monochrome50:o.extend("--ft-chart-monochrome-50","",c.colorBrand0),monochrome60:o.extend("--ft-chart-monochrome-60","",c.colorBrand200),scatterplotQuadrantPopularOldBackgroundColor:o.extend("--ft-chart-scatterplot-quadrant-popular-old-background-color","",c.colorYellow10),scatterplotQuadrantPopularNewBackgroundColor:o.extend("--ft-chart-scatterplot-quadrant-popular-new-background-color","",c.colorAvocado10),scatterplotQuadrantUnpopularOldBackgroundColor:o.extend("--ft-chart-scatterplot-quadrant-unpopular-old-background-color","",c.colorCyan10),scatterplotQuadrantUnpopularNewBackgroundColor:o.extend("--ft-chart-scatterplot-quadrant-unpopular-new-background-color","",c.colorRed10),scatterplotDatapointInitialDefaultBackgroundColor:o.extend("--ft-chart-scatterplot-datapoint-initial-default-background-color","",c.colorBrand70),scatterplotDatapointInitialDefaultBackgroundOpacity:o.extend("--ft-chart-scatterplot-datapoint-initial-default-background-opacity","",c.opacity48),scatterplotDatapointInitialHoverBackgroundColor:o.extend("--ft-chart-scatterplot-datapoint-initial-hover-background-color","",c.colorBrand0),scatterplotDatapointSelectedDefaultBackgroundColor:o.extend("--ft-chart-scatterplot-datapoint-selected-default-background-color","",c.colorBrand100),scatterplotDatapointSelectedHoverBackgroundColor:o.extend("--ft-chart-scatterplot-datapoint-selected-hover-background-color","",c.colorBrand200),scatterplotDatapointUnselectedDefaultBackgroundColor:o.extend("--ft-chart-scatterplot-datapoint-unselected-default-background-color","",c.colorGray60),scatterplotDatapointUnselectedDefaultBackgroundOpacity:o.extend("--ft-chart-scatterplot-datapoint-unselected-default-background-opacity","",c.opacity48),scatterplotDatapointUnselectedHoverBackgroundColor:o.extend("--ft-chart-scatterplot-datapoint-unselected-hover-background-color","",c.colorGray70),scatterplotDatapointHoverHoverRingColor:o.extend("--ft-chart-scatterplot-datapoint-hover-hover-ring-color","",c.colorCyan200)};var Au={color1IconColor:o.extend("--ft-page-designer-1-icon-color","for area color charts",c.colorCyan0),color1ToolbarColor:o.extend("--ft-page-designer-1-toolbar-color","for area color charts",c.colorCyan0),color2IconColor:o.extend("--ft-page-designer-2-icon-color","for area color charts",c.colorBrand0),color2ToolbarColor:o.extend("--ft-page-designer-2-toolbar-color","for area color charts",c.colorBrand0),color3IconColor:o.extend("--ft-page-designer-3-icon-color","for area color charts",c.colorYellow200),color3ToolbarColor:o.extend("--ft-page-designer-3-toolbar-color","for area color charts",c.colorYellow200),color4IconColor:o.extend("--ft-page-designer-4-icon-color","for area color charts",c.colorUltramarine50),color4ToolbarColor:o.extend("--ft-page-designer-4-toolbar-color","for area color charts",c.colorUltramarine50),color5IconColor:o.extend("--ft-page-designer-5-icon-color","for area color charts",c.colorGreen0),color5ToolbarColor:o.extend("--ft-page-designer-5-toolbar-color","for area color charts",c.colorGreen0),color6IconColor:o.extend("--ft-page-designer-6-icon-color","for area color charts",c.colorOrange0),color6ToolbarColor:o.extend("--ft-page-designer-6-toolbar-color","for area color charts",c.colorOrange0),color7IconColor:o.extend("--ft-page-designer-7-icon-color","for area color charts",c.colorAvocado200),color7ToolbarColor:o.extend("--ft-page-designer-7-toolbar-color","for area color charts",c.colorAvocado200),color8IconColor:o.extend("--ft-page-designer-8-icon-color","for area color charts",c.colorBrown0),color8ToolbarColor:o.extend("--ft-page-designer-8-toolbar-color","for area color charts",c.colorBrown0)};var Ru={borderWidth:o.create("--ft-notice-border-width","","SIZE","1px"),horizontalPadding:o.extend("--ft-notice-horizontal-padding","",c.spacing3),verticalPadding:o.extend("--ft-notice-vertical-padding","",c.spacing2),borderRadius:o.extend("--ft-notice-border-radius","",c.borderRadiusS),gap:o.extend("--ft-notice-gap","",c.spacing2),iconSize:o.extend("--ft-notice-icon-size","",c.iconSize3),infoBackgroundColor:o.extend("--ft-notice-info-background-color","",u.backgroundInfoSubtle),infoBorderColor:o.extend("--ft-notice-info-border-color","",u.borderInfoSubtle),infoColor:o.extend("--ft-notice-info-color","",u.contentInfoPrimary),infoIconColor:o.extend("--ft-notice-info-icon-color","",u.contentInfoIconOnly),warningBackgroundColor:o.extend("--ft-notice-warning-background-color","",u.backgroundWarningSubtle),warningBorderColor:o.extend("--ft-notice-warning-border-color","",u.borderWarningSubtle),warningColor:o.extend("--ft-notice-warning-color","",u.contentWarningPrimary),warningIconColor:o.extend("--ft-notice-warning-icon-color","",u.contentWarningIconOnly),errorBackgroundColor:o.extend("--ft-notice-error-background-color","",u.backgroundErrorSubtle),errorBorderColor:o.extend("--ft-notice-error-border-color","",u.borderErrorSubtle),errorColor:o.extend("--ft-notice-error-color","",u.contentErrorPrimary),errorIconColor:o.extend("--ft-notice-error-icon-color","",u.contentErrorIconOnly),successBackgroundColor:o.extend("--ft-notice-success-background-color","",u.backgroundSuccessSubtle),successBorderColor:o.extend("--ft-notice-success-border-color","",u.borderSuccessSubtle),successColor:o.extend("--ft-notice-success-color","",u.contentSuccessPrimary),successIconColor:o.extend("--ft-notice-success-icon-color","",u.contentSuccessIconOnly)};var _u={color:o.extend("--ft-checkbox-color","",u.contentGlobalPrimary),checkedBackgroundColor:o.extend("--ft-checkbox-checked-background-color","",u.contentActionPrimary),checkedStateLayerColor:o.extend("--ft-checkbox-checked-state-layer-color","",u.contentActionPrimary),checkedIconColor:o.extend("--ft-checkbox-checked-icon-color","",u.contentGlobalOnColor),checkedHoverStateLayerOpacity:o.extend("--ft-checkbox-checked-hover-state-layer-opacity","",c.opacity16),checkedFocusStateLayerOpacity:o.extend("--ft-checkbox-checked-focus-state-layer-opacity","",c.opacity16),checkedActiveStateLayerOpacity:o.extend("--ft-checkbox-checked-active-state-layer-opacity","",c.opacity24),checkedDisabledComponentOpacity:o.extend("--ft-checkbox-checked-disabled-component-opacity","",c.opacity40),uncheckedBorderColor:o.extend("--ft-checkbox-unchecked-border-color","",c.colorGray80),uncheckedStateLayerColor:o.extend("--ft-checkbox-unchecked-state-layer-color","",c.colorGray80),uncheckedHoverStateLayerOpacity:o.extend("--ft-checkbox-unchecked-hover-state-layer-opacity","",c.opacity16),uncheckedFocusStateLayerOpacity:o.extend("--ft-checkbox-unchecked-focus-state-layer-opacity","",c.opacity16),uncheckedActiveStateLayerOpacity:o.extend("--ft-checkbox-unchecked-active-state-layer-opacity","",c.opacity24),uncheckedDisabledComponentOpacity:o.extend("--ft-checkbox-unchecked-disabled-component-opacity","",c.opacity40),focusFocusRingColor:o.extend("--ft-checkbox-focus-focus-ring-color","",u.borderActionFocusRing),focusOutlineOffset:o.create("--ft-checkbox-focus-outline-offset","","SIZE","3px"),focusOutlineWidth:o.create("--ft-checkbox-focus-outline-width","","SIZE","2px"),gap:o.extend("--ft-checkbox-gap","",c.spacing3)};var Nu={offHoverStateLayerOpacity:o.extend("--ft-toggle-off-hover-state-layer-opacity","",c.opacity16),offFocusStateLayerOpacity:o.extend("--ft-toggle-off-focus-state-layer-opacity","",c.opacity16),offActiveStateLayerOpacity:o.extend("--ft-toggle-off-active-state-layer-opacity","",c.opacity24),offDisabledComponentOpacity:o.extend("--ft-toggle-off-disabled-component-opacity","",c.opacity40),offBackgroundColor:o.extend("--ft-toggle-off-background-color","",u.contentGlobalSubtle),offIconColor:o.extend("--ft-toggle-off-icon-color","",u.contentGlobalSubtle),offStateLayerColor:o.extend("--ft-toggle-off-state-layer-color","",u.contentGlobalSubtle),onHoverStateLayerOpacity:o.extend("--ft-toggle-on-hover-state-layer-opacity","",c.opacity16),onFocusStateLayerOpacity:o.extend("--ft-toggle-on-focus-state-layer-opacity","",c.opacity16),onActiveStateLayerOpacity:o.extend("--ft-toggle-on-active-state-layer-opacity","",c.opacity24),onDisabledComponentOpacity:o.extend("--ft-toggle-on-disabled-component-opacity","",c.opacity40),onBackgroundColor:o.extend("--ft-toggle-on-background-color","",u.contentActionPrimary),onStateLayerColor:o.extend("--ft-toggle-on-state-layer-color","",u.contentActionPrimary),onIconColor:o.extend("--ft-toggle-on-icon-color","",u.contentActionPrimary),color:o.extend("--ft-toggle-color","",u.contentGlobalPrimary),focusFocusRingColor:o.extend("--ft-toggle-focus-focus-ring-color","",u.borderActionFocusRing),gap:o.extend("--ft-toggle-gap","",c.spacing3)};var Iu={color:o.extend("--ft-radio-color","",u.contentGlobalPrimary),selectedRadioColor:o.extend("--ft-radio-selected-radio-color","",u.contentActionPrimary),selectedStateLayerColor:o.extend("--ft-radio-selected-state-layer-color","",u.contentActionPrimary),selectedHoverStateLayerOpacity:o.extend("--ft-radio-selected-hover-state-layer-opacity","",c.opacity16),selectedFocusStateLayerOpacity:o.extend("--ft-radio-selected-focus-state-layer-opacity","",c.opacity16),selectedActiveStateLayerOpacity:o.extend("--ft-radio-selected-active-state-layer-opacity","",c.opacity24),selectedDisabledComponentOpacity:o.extend("--ft-radio-selected-disabled-component-opacity","",c.opacity40),unselectedStateLayerColor:o.extend("--ft-radio-unselected-state-layer-color","",u.borderInputPrimary),unselectedBorderColor:o.extend("--ft-radio-unselected-border-color","",u.borderInputPrimary),unselectedHoverStateLayerOpacity:o.extend("--ft-radio-unselected-hover-state-layer-opacity","",c.opacity16),unselectedFocusStateLayerOpacity:o.extend("--ft-radio-unselected-focus-state-layer-opacity","",c.opacity16),unselectedActiveStateLayerOpacity:o.extend("--ft-radio-unselected-active-state-layer-opacity","",c.opacity24),unselectedDisabledComponentOpacity:o.extend("--ft-radio-unselected-disabled-component-opacity","",c.opacity40),focusFocusRingColor:o.extend("--ft-radio-focus-focus-ring-color","",u.borderActionFocusRing),focusOutlineOffset:o.create("--ft-radio-focus-outline-offset","","SIZE","3px"),focusOutlineWidth:o.create("--ft-radio-focus-outline-width","","SIZE","2px"),gap:o.extend("--ft-radio-gap","",c.spacing3)};var Tu={iconSize:o.extend("--ft-notification-icon-size","",c.iconSize4),leftPadding:o.extend("--ft-notification-left-padding","",c.spacing5),rightPadding:o.extend("--ft-notification-right-padding","",c.spacing4),verticalPadding:o.extend("--ft-notification-vertical-padding","",c.spacing3),infoBackgroundColor:o.extend("--ft-notification-info-background-color","",u.backgroundInfoSubtle),infoColor:o.extend("--ft-notification-info-color","",u.contentInfoPrimary),infoIconColor:o.extend("--ft-notification-info-icon-color","",u.contentInfoIconOnly),infoBorderColor:o.extend("--ft-notification-info-border-color","",u.borderInfoSubtle),successBackgroundColor:o.extend("--ft-notification-success-background-color","",u.backgroundSuccessSubtle),successColor:o.extend("--ft-notification-success-color","",u.contentSuccessPrimary),successIconColor:o.extend("--ft-notification-success-icon-color","",u.contentSuccessIconOnly),successBorderColor:o.extend("--ft-notification-success-border-color","",u.borderSuccessSubtle),warningBackgroundColor:o.extend("--ft-notification-warning-background-color","",u.backgroundWarningSubtle),warningColor:o.extend("--ft-notification-warning-color","",u.contentWarningPrimary),warningIconColor:o.extend("--ft-notification-warning-icon-color","",u.contentWarningIconOnly),warningBorderColor:o.extend("--ft-notification-warning-border-color","",u.borderWarningSubtle),errorBackgroundColor:o.extend("--ft-notification-error-background-color","",u.backgroundErrorSubtle),errorColor:o.extend("--ft-notification-error-color","",u.contentErrorPrimary),errorIconColor:o.extend("--ft-notification-error-icon-color","",u.contentErrorIconOnly),errorBorderColor:o.extend("--ft-notification-error-border-color","",u.borderErrorSubtle),borderRadius:o.extend("--ft-notification-border-radius","",c.borderRadiusPill),borderWidth:o.create("--ft-notification-border-width","","SIZE","1px"),leadingGap:o.extend("--ft-notification-leading-gap","",c.spacing2),trailingGap:o.extend("--ft-notification-trailing-gap","",c.spacing8)};var $u={horizontalPadding:o.extend("--ft-tooltip-horizontal-padding","",c.spacing2),verticalPadding:o.extend("--ft-tooltip-vertical-padding","",c.spacing2),borderRadius:o.extend("--ft-tooltip-border-radius","",c.borderRadiusS),color:o.extend("--ft-tooltip-color","",u.contentGlobalOnColor),backgroundColor:o.extend("--ft-tooltip-background-color","",u.contentGlobalPrimary),backgroundOpacity:o.extend("--ft-tooltip-background-opacity","",c.opacity80),shadow:o.extend("--ft-tooltip-shadow","",c.shadowElevation02),maxWidth:o.create("--ft-tooltip-max-width","","SIZE","256px"),gap:o.extend("--ft-tooltip-gap","",c.spacing05)};var hr;(function(r){r.brand="brand",r.neutral="neutral",r.info="info",r.success="success",r.warning="warning",r.error="error"})(hr||(hr={}));var we;(function(r){r.large="large",r.medium="medium",r.small="small"})(we||(we={}));function ma(r){return`ftds--family-${r}`}function ya(r){return`ftds--size-${r}`}var N={colorPrimary:o.create("--ft-color-primary","","COLOR","#2196F3"),colorPrimaryVariant:o.create("--ft-color-primary-variant","","COLOR","#1976D2"),colorSecondary:o.create("--ft-color-secondary","","COLOR","#FFCC80"),colorSecondaryVariant:o.create("--ft-color-secondary-variant","","COLOR","#F57C00"),colorSurface:o.create("--ft-color-surface","","COLOR","#FFFFFF"),colorContent:o.create("--ft-color-content","","COLOR","rgba(0, 0, 0, 0.87)"),colorError:o.create("--ft-color-error","","COLOR","#B00020"),colorOutline:o.create("--ft-color-outline","","COLOR","rgba(0, 0, 0, 0.14)"),colorOpacityHigh:o.create("--ft-color-opacity-high","","NUMBER","1"),colorOpacityMedium:o.create("--ft-color-opacity-medium","","NUMBER","0.74"),colorOpacityDisabled:o.create("--ft-color-opacity-disabled","","NUMBER","0.38"),colorOnPrimary:o.create("--ft-color-on-primary","","COLOR","#FFFFFF"),colorOnPrimaryHigh:o.create("--ft-color-on-primary-high","","COLOR","#FFFFFF"),colorOnPrimaryMedium:o.create("--ft-color-on-primary-medium","","COLOR","rgba(255, 255, 255, 0.74)"),colorOnPrimaryDisabled:o.create("--ft-color-on-primary-disabled","","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSecondary:o.create("--ft-color-on-secondary","","COLOR","#FFFFFF"),colorOnSecondaryHigh:o.create("--ft-color-on-secondary-high","","COLOR","#FFFFFF"),colorOnSecondaryMedium:o.create("--ft-color-on-secondary-medium","","COLOR","rgba(255, 255, 255, 0.74)"),colorOnSecondaryDisabled:o.create("--ft-color-on-secondary-disabled","","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSurface:o.create("--ft-color-on-surface","","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceHigh:o.create("--ft-color-on-surface-high","","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceMedium:o.create("--ft-color-on-surface-medium","","COLOR","rgba(0, 0, 0, 0.60)"),colorOnSurfaceDisabled:o.create("--ft-color-on-surface-disabled","","COLOR","rgba(0, 0, 0, 0.38)"),opacityContentOnSurfaceDisabled:o.create("--ft-opacity-content-on-surface-disabled","","NUMBER","0"),opacityContentOnSurfaceEnable:o.create("--ft-opacity-content-on-surface-enable","","NUMBER","0"),opacityContentOnSurfaceHover:o.create("--ft-opacity-content-on-surface-hover","","NUMBER","0.04"),opacityContentOnSurfaceFocused:o.create("--ft-opacity-content-on-surface-focused","","NUMBER","0.12"),opacityContentOnSurfacePressed:o.create("--ft-opacity-content-on-surface-pressed","","NUMBER","0.10"),opacityContentOnSurfaceSelected:o.create("--ft-opacity-content-on-surface-selected","","NUMBER","0.08"),opacityContentOnSurfaceDragged:o.create("--ft-opacity-content-on-surface-dragged","","NUMBER","0.08"),opacityPrimaryOnSurfaceDisabled:o.create("--ft-opacity-primary-on-surface-disabled","","NUMBER","0"),opacityPrimaryOnSurfaceEnable:o.create("--ft-opacity-primary-on-surface-enable","","NUMBER","0"),opacityPrimaryOnSurfaceHover:o.create("--ft-opacity-primary-on-surface-hover","","NUMBER","0.04"),opacityPrimaryOnSurfaceFocused:o.create("--ft-opacity-primary-on-surface-focused","","NUMBER","0.12"),opacityPrimaryOnSurfacePressed:o.create("--ft-opacity-primary-on-surface-pressed","","NUMBER","0.10"),opacityPrimaryOnSurfaceSelected:o.create("--ft-opacity-primary-on-surface-selected","","NUMBER","0.08"),opacityPrimaryOnSurfaceDragged:o.create("--ft-opacity-primary-on-surface-dragged","","NUMBER","0.08"),opacitySurfaceOnPrimaryDisabled:o.create("--ft-opacity-surface-on-primary-disabled","","NUMBER","0"),opacitySurfaceOnPrimaryEnable:o.create("--ft-opacity-surface-on-primary-enable","","NUMBER","0"),opacitySurfaceOnPrimaryHover:o.create("--ft-opacity-surface-on-primary-hover","","NUMBER","0.04"),opacitySurfaceOnPrimaryFocused:o.create("--ft-opacity-surface-on-primary-focused","","NUMBER","0.12"),opacitySurfaceOnPrimaryPressed:o.create("--ft-opacity-surface-on-primary-pressed","","NUMBER","0.10"),opacitySurfaceOnPrimarySelected:o.create("--ft-opacity-surface-on-primary-selected","","NUMBER","0.08"),opacitySurfaceOnPrimaryDragged:o.create("--ft-opacity-surface-on-primary-dragged","","NUMBER","0.08"),elevation00:o.create("--ft-elevation-00","","UNKNOWN","0px 0px 0px 0px rgba(0, 0, 0, 0), 0px 0px 0px 0px rgba(0, 0, 0, 0), 0px 0px 0px 0px rgba(0, 0, 0, 0)"),elevation01:o.create("--ft-elevation-01","","UNKNOWN","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)"),elevation02:o.create("--ft-elevation-02","","UNKNOWN","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)"),elevation03:o.create("--ft-elevation-03","","UNKNOWN","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)"),elevation04:o.create("--ft-elevation-04","","UNKNOWN","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)"),elevation06:o.create("--ft-elevation-06","","UNKNOWN","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)"),elevation08:o.create("--ft-elevation-08","","UNKNOWN","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)"),elevation12:o.create("--ft-elevation-12","","UNKNOWN","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)"),elevation16:o.create("--ft-elevation-16","","UNKNOWN","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)"),elevation24:o.create("--ft-elevation-24","","UNKNOWN","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)"),borderRadiusS:o.create("--ft-border-radius-S","","SIZE","4px"),borderRadiusM:o.create("--ft-border-radius-M","","SIZE","8px"),borderRadiusL:o.create("--ft-border-radius-L","","SIZE","12px"),borderRadiusXL:o.create("--ft-border-radius-XL","","SIZE","16px"),titleFont:o.create("--ft-title-font","","UNKNOWN","Ubuntu, system-ui, sans-serif"),contentFont:o.create("--ft-content-font","","UNKNOWN","'Open Sans', system-ui, sans-serif"),transitionDuration:o.create("--ft-transition-duration","","UNKNOWN","250ms"),transitionTimingFunction:o.create("--ft-transition-timing-function","","UNKNOWN","ease-in-out")};var Sa={};rt(Sa,{FtNotificationEvent:()=>kt,PostResizeEvent:()=>xa,PreResizeEvent:()=>va});var kt=class extends CustomEvent{constructor(t){super("ft-notification",{bubbles:!0,composed:!0,detail:t})}},va=class extends Event{constructor(){super("ft-pre-resize",{composed:!0,bubbles:!0})}},xa=class extends Event{constructor(){super("ft-post-resize",{composed:!0,bubbles:!0})}};var ka={};rt(ka,{computeFlipOffsetPosition:()=>Qu,computeOffsetPosition:()=>Io});var zl=["top","right","bottom","left"],Hl=["start","end"],Oa=zl.reduce((r,t)=>r.concat(t,t+"-"+Hl[0],t+"-"+Hl[1]),[]),wo=Math.min,Fe=Math.max,Eo=Math.round;var Ee=r=>({x:r,y:r}),Pu={left:"right",right:"left",bottom:"top",top:"bottom"},Lu={start:"end",end:"start"};function Ca(r,t,e){return Fe(r,wo(t,e))}function Dr(r,t){return typeof r=="function"?r(t):r}function pe(r){return r.split("-")[0]}function ue(r){return r.split("-")[1]}function wa(r){return r==="x"?"y":"x"}function Ea(r){return r==="y"?"height":"width"}function Ao(r){return["top","bottom"].includes(pe(r))?"y":"x"}function Aa(r){return wa(Ao(r))}function Ra(r,t,e){e===void 0&&(e=!1);let i=ue(r),n=Aa(r),a=Ea(n),s=n==="x"?i===(e?"end":"start")?"right":"left":i==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(s=Co(s)),[s,Co(s)]}function Vl(r){let t=Co(r);return[Oo(r),t,Oo(t)]}function Oo(r){return r.replace(/start|end/g,t=>Lu[t])}function ku(r,t,e){let i=["left","right"],n=["right","left"],a=["top","bottom"],s=["bottom","top"];switch(r){case"top":case"bottom":return e?t?n:i:t?i:n;case"left":case"right":return t?a:s;default:return[]}}function jl(r,t,e,i){let n=ue(r),a=ku(pe(r),e==="start",i);return n&&(a=a.map(s=>s+"-"+n),t&&(a=a.concat(a.map(Oo)))),a}function Co(r){return r.replace(/left|right|bottom|top/g,t=>Pu[t])}function Du(r){return{top:0,right:0,bottom:0,left:0,...r}}function Gl(r){return typeof r!="number"?Du(r):{top:r,right:r,bottom:r,left:r}}function mr(r){return{...r,top:r.y,left:r.x,right:r.x+r.width,bottom:r.y+r.height}}function Kl(r,t,e){let{reference:i,floating:n}=r,a=Ao(t),s=Aa(t),l=Ea(s),d=pe(t),p=a==="y",f=i.x+i.width/2-n.width/2,h=i.y+i.height/2-n.height/2,m=i[l]/2-n[l]/2,v;switch(d){case"top":v={x:f,y:i.y-n.height};break;case"bottom":v={x:f,y:i.y+i.height};break;case"right":v={x:i.x+i.width,y:h};break;case"left":v={x:i.x-n.width,y:h};break;default:v={x:i.x,y:i.y}}switch(ue(t)){case"start":v[s]-=m*(e&&p?-1:1);break;case"end":v[s]+=m*(e&&p?-1:1);break}return v}var Zl=async(r,t,e)=>{let{placement:i="bottom",strategy:n="absolute",middleware:a=[],platform:s}=e,l=a.filter(Boolean),d=await(s.isRTL==null?void 0:s.isRTL(t)),p=await s.getElementRects({reference:r,floating:t,strategy:n}),{x:f,y:h}=Kl(p,i,d),m=i,v={},S=0;for(let E=0;E<l.length;E++){let{name:$,fn:_}=l[E],{x:T,y:C,data:w,reset:A}=await _({x:f,y:h,initialPlacement:i,placement:m,strategy:n,middlewareData:v,rects:p,platform:s,elements:{reference:r,floating:t}});if(f=T??f,h=C??h,v={...v,[$]:{...v[$],...w}},A&&S<=50){S++,typeof A=="object"&&(A.placement&&(m=A.placement),A.rects&&(p=A.rects===!0?await s.getElementRects({reference:r,floating:t,strategy:n}):A.rects),{x:f,y:h}=Kl(p,m,d)),E=-1;continue}}return{x:f,y:h,placement:m,strategy:n,middlewareData:v}};async function gi(r,t){var e;t===void 0&&(t={});let{x:i,y:n,platform:a,rects:s,elements:l,strategy:d}=r,{boundary:p="clippingAncestors",rootBoundary:f="viewport",elementContext:h="floating",altBoundary:m=!1,padding:v=0}=Dr(t,r),S=Gl(v),$=l[m?h==="floating"?"reference":"floating":h],_=mr(await a.getClippingRect({element:(e=await(a.isElement==null?void 0:a.isElement($)))==null||e?$:$.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(l.floating)),boundary:p,rootBoundary:f,strategy:d})),T=h==="floating"?{...s.floating,x:i,y:n}:s.reference,C=await(a.getOffsetParent==null?void 0:a.getOffsetParent(l.floating)),w=await(a.isElement==null?void 0:a.isElement(C))?await(a.getScale==null?void 0:a.getScale(C))||{x:1,y:1}:{x:1,y:1},A=mr(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({rect:T,offsetParent:C,strategy:d}):T);return{top:(_.top-A.top+S.top)/w.y,bottom:(A.bottom-_.bottom+S.bottom)/w.y,left:(_.left-A.left+S.left)/w.x,right:(A.right-_.right+S.right)/w.x}}function Mu(r,t,e){return(r?[...e.filter(n=>ue(n)===r),...e.filter(n=>ue(n)!==r)]:e.filter(n=>pe(n)===n)).filter(n=>r?ue(n)===r||(t?Oo(n)!==n:!1):!0)}var _a=function(r){return r===void 0&&(r={}),{name:"autoPlacement",options:r,async fn(t){var e,i,n;let{rects:a,middlewareData:s,placement:l,platform:d,elements:p}=t,{crossAxis:f=!1,alignment:h,allowedPlacements:m=Oa,autoAlignment:v=!0,...S}=Dr(r,t),E=h!==void 0||m===Oa?Mu(h||null,v,m):m,$=await gi(t,S),_=((e=s.autoPlacement)==null?void 0:e.index)||0,T=E[_];if(T==null)return{};let C=Ra(T,a,await(d.isRTL==null?void 0:d.isRTL(p.floating)));if(l!==T)return{reset:{placement:E[0]}};let w=[$[pe(T)],$[C[0]],$[C[1]]],A=[...((i=s.autoPlacement)==null?void 0:i.overflows)||[],{placement:T,overflows:w}],B=E[_+1];if(B)return{data:{index:_+1,overflows:A},reset:{placement:B}};let Z=A.map(D=>{let y=ue(D.placement);return[D.placement,y&&f?D.overflows.slice(0,2).reduce((O,k)=>O+k,0):D.overflows[0],D.overflows]}).sort((D,y)=>D[1]-y[1]),tt=((n=Z.filter(D=>D[2].slice(0,ue(D[0])?2:3).every(y=>y<=0))[0])==null?void 0:n[0])||Z[0][0];return tt!==l?{data:{index:_+1,overflows:A},reset:{placement:tt}}:{}}}},Na=function(r){return r===void 0&&(r={}),{name:"flip",options:r,async fn(t){var e,i;let{placement:n,middlewareData:a,rects:s,initialPlacement:l,platform:d,elements:p}=t,{mainAxis:f=!0,crossAxis:h=!0,fallbackPlacements:m,fallbackStrategy:v="bestFit",fallbackAxisSideDirection:S="none",flipAlignment:E=!0,...$}=Dr(r,t);if((e=a.arrow)!=null&&e.alignmentOffset)return{};let _=pe(n),T=pe(l)===l,C=await(d.isRTL==null?void 0:d.isRTL(p.floating)),w=m||(T||!E?[Co(l)]:Vl(l));!m&&S!=="none"&&w.push(...jl(l,E,S,C));let A=[l,...w],B=await gi(t,$),Z=[],J=((i=a.flip)==null?void 0:i.overflows)||[];if(f&&Z.push(B[_]),h){let O=Ra(n,s,C);Z.push(B[O[0]],B[O[1]])}if(J=[...J,{placement:n,overflows:Z}],!Z.every(O=>O<=0)){var tt,D;let O=(((tt=a.flip)==null?void 0:tt.index)||0)+1,k=A[O];if(k)return{data:{index:O,overflows:J},reset:{placement:k}};let j=(D=J.filter(Y=>Y.overflows[0]<=0).sort((Y,W)=>Y.overflows[1]-W.overflows[1])[0])==null?void 0:D.placement;if(!j)switch(v){case"bestFit":{var y;let Y=(y=J.map(W=>[W.placement,W.overflows.filter(ae=>ae>0).reduce((ae,ro)=>ae+ro,0)]).sort((W,ae)=>W[1]-ae[1])[0])==null?void 0:y[0];Y&&(j=Y);break}case"initialPlacement":j=l;break}if(n!==j)return{reset:{placement:j}}}return{}}}};async function Bu(r,t){let{placement:e,platform:i,elements:n}=r,a=await(i.isRTL==null?void 0:i.isRTL(n.floating)),s=pe(e),l=ue(e),d=Ao(e)==="y",p=["left","top"].includes(s)?-1:1,f=a&&d?-1:1,h=Dr(t,r),{mainAxis:m,crossAxis:v,alignmentAxis:S}=typeof h=="number"?{mainAxis:h,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...h};return l&&typeof S=="number"&&(v=l==="end"?S*-1:S),d?{x:v*f,y:m*p}:{x:m*p,y:v*f}}var Ia=function(r){return r===void 0&&(r=0),{name:"offset",options:r,async fn(t){var e,i;let{x:n,y:a,placement:s,middlewareData:l}=t,d=await Bu(t,r);return s===((e=l.offset)==null?void 0:e.placement)&&(i=l.arrow)!=null&&i.alignmentOffset?{}:{x:n+d.x,y:a+d.y,data:{...d,placement:s}}}}},Ta=function(r){return r===void 0&&(r={}),{name:"shift",options:r,async fn(t){let{x:e,y:i,placement:n}=t,{mainAxis:a=!0,crossAxis:s=!1,limiter:l={fn:$=>{let{x:_,y:T}=$;return{x:_,y:T}}},...d}=Dr(r,t),p={x:e,y:i},f=await gi(t,d),h=Ao(pe(n)),m=wa(h),v=p[m],S=p[h];if(a){let $=m==="y"?"top":"left",_=m==="y"?"bottom":"right",T=v+f[$],C=v-f[_];v=Ca(T,v,C)}if(s){let $=h==="y"?"top":"left",_=h==="y"?"bottom":"right",T=S+f[$],C=S-f[_];S=Ca(T,S,C)}let E=l.fn({...t,[m]:v,[h]:S});return{...E,data:{x:E.x-e,y:E.y-i}}}}};function Ae(r){return Yl(r)?(r.nodeName||"").toLowerCase():"#document"}function Ut(r){var t;return(r==null||(t=r.ownerDocument)==null?void 0:t.defaultView)||window}function Re(r){var t;return(t=(Yl(r)?r.ownerDocument:r.document)||window.document)==null?void 0:t.documentElement}function Yl(r){return r instanceof Node||r instanceof Ut(r).Node}function fe(r){return r instanceof Element||r instanceof Ut(r).Element}function te(r){return r instanceof HTMLElement||r instanceof Ut(r).HTMLElement}function ql(r){return typeof ShadowRoot>"u"?!1:r instanceof ShadowRoot||r instanceof Ut(r).ShadowRoot}function Mr(r){let{overflow:t,overflowX:e,overflowY:i,display:n}=Gt(r);return/auto|scroll|overlay|hidden|clip/.test(t+i+e)&&!["inline","contents"].includes(n)}function Xl(r){return["table","td","th"].includes(Ae(r))}function vi(r){let t=xi(),e=Gt(r);return e.transform!=="none"||e.perspective!=="none"||(e.containerType?e.containerType!=="normal":!1)||!t&&(e.backdropFilter?e.backdropFilter!=="none":!1)||!t&&(e.filter?e.filter!=="none":!1)||["transform","perspective","filter"].some(i=>(e.willChange||"").includes(i))||["paint","layout","strict","content"].some(i=>(e.contain||"").includes(i))}function Jl(r){let t=yr(r);for(;te(t)&&!Ro(t);){if(vi(t))return t;t=yr(t)}return null}function xi(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Ro(r){return["html","body","#document"].includes(Ae(r))}function Gt(r){return Ut(r).getComputedStyle(r)}function _o(r){return fe(r)?{scrollLeft:r.scrollLeft,scrollTop:r.scrollTop}:{scrollLeft:r.pageXOffset,scrollTop:r.pageYOffset}}function yr(r){if(Ae(r)==="html")return r;let t=r.assignedSlot||r.parentNode||ql(r)&&r.host||Re(r);return ql(t)?t.host:t}function Ql(r){let t=yr(r);return Ro(t)?r.ownerDocument?r.ownerDocument.body:r.body:te(t)&&Mr(t)?t:Ql(t)}function bi(r,t,e){var i;t===void 0&&(t=[]),e===void 0&&(e=!0);let n=Ql(r),a=n===((i=r.ownerDocument)==null?void 0:i.body),s=Ut(n);return a?t.concat(s,s.visualViewport||[],Mr(n)?n:[],s.frameElement&&e?bi(s.frameElement):[]):t.concat(n,bi(n,[],e))}function rc(r){let t=Gt(r),e=parseFloat(t.width)||0,i=parseFloat(t.height)||0,n=te(r),a=n?r.offsetWidth:e,s=n?r.offsetHeight:i,l=Eo(e)!==a||Eo(i)!==s;return l&&(e=a,i=s),{width:e,height:i,$:l}}function oc(r){return fe(r)?r:r.contextElement}function Br(r){let t=oc(r);if(!te(t))return Ee(1);let e=t.getBoundingClientRect(),{width:i,height:n,$:a}=rc(t),s=(a?Eo(e.width):e.width)/i,l=(a?Eo(e.height):e.height)/n;return(!s||!Number.isFinite(s))&&(s=1),(!l||!Number.isFinite(l))&&(l=1),{x:s,y:l}}var Fu=Ee(0);function ic(r){let t=Ut(r);return!xi()||!t.visualViewport?Fu:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Uu(r,t,e){return t===void 0&&(t=!1),!e||t&&e!==Ut(r)?!1:t}function No(r,t,e,i){t===void 0&&(t=!1),e===void 0&&(e=!1);let n=r.getBoundingClientRect(),a=oc(r),s=Ee(1);t&&(i?fe(i)&&(s=Br(i)):s=Br(r));let l=Uu(a,e,i)?ic(a):Ee(0),d=(n.left+l.x)/s.x,p=(n.top+l.y)/s.y,f=n.width/s.x,h=n.height/s.y;if(a){let m=Ut(a),v=i&&fe(i)?Ut(i):i,S=m.frameElement;for(;S&&i&&v!==m;){let E=Br(S),$=S.getBoundingClientRect(),_=Gt(S),T=$.left+(S.clientLeft+parseFloat(_.paddingLeft))*E.x,C=$.top+(S.clientTop+parseFloat(_.paddingTop))*E.y;d*=E.x,p*=E.y,f*=E.x,h*=E.y,d+=T,p+=C,S=Ut(S).frameElement}}return mr({width:f,height:h,x:d,y:p})}function Wu(r){let{rect:t,offsetParent:e,strategy:i}=r,n=te(e),a=Re(e);if(e===a)return t;let s={scrollLeft:0,scrollTop:0},l=Ee(1),d=Ee(0);if((n||!n&&i!=="fixed")&&((Ae(e)!=="body"||Mr(a))&&(s=_o(e)),te(e))){let p=No(e);l=Br(e),d.x=p.x+e.clientLeft,d.y=p.y+e.clientTop}return{width:t.width*l.x,height:t.height*l.y,x:t.x*l.x-s.scrollLeft*l.x+d.x,y:t.y*l.y-s.scrollTop*l.y+d.y}}function Hu(r){return Array.from(r.getClientRects())}function nc(r){return No(Re(r)).left+_o(r).scrollLeft}function zu(r){let t=Re(r),e=_o(r),i=r.ownerDocument.body,n=Fe(t.scrollWidth,t.clientWidth,i.scrollWidth,i.clientWidth),a=Fe(t.scrollHeight,t.clientHeight,i.scrollHeight,i.clientHeight),s=-e.scrollLeft+nc(r),l=-e.scrollTop;return Gt(i).direction==="rtl"&&(s+=Fe(t.clientWidth,i.clientWidth)-n),{width:n,height:a,x:s,y:l}}function Vu(r,t){let e=Ut(r),i=Re(r),n=e.visualViewport,a=i.clientWidth,s=i.clientHeight,l=0,d=0;if(n){a=n.width,s=n.height;let p=xi();(!p||p&&t==="fixed")&&(l=n.offsetLeft,d=n.offsetTop)}return{width:a,height:s,x:l,y:d}}function ju(r,t){let e=No(r,!0,t==="fixed"),i=e.top+r.clientTop,n=e.left+r.clientLeft,a=te(r)?Br(r):Ee(1),s=r.clientWidth*a.x,l=r.clientHeight*a.y,d=n*a.x,p=i*a.y;return{width:s,height:l,x:d,y:p}}function tc(r,t,e){let i;if(t==="viewport")i=Vu(r,e);else if(t==="document")i=zu(Re(r));else if(fe(t))i=ju(t,e);else{let n=ic(r);i={...t,x:t.x-n.x,y:t.y-n.y}}return mr(i)}function ac(r,t){let e=yr(r);return e===t||!fe(e)||Ro(e)?!1:Gt(e).position==="fixed"||ac(e,t)}function Gu(r,t){let e=t.get(r);if(e)return e;let i=bi(r,[],!1).filter(l=>fe(l)&&Ae(l)!=="body"),n=null,a=Gt(r).position==="fixed",s=a?yr(r):r;for(;fe(s)&&!Ro(s);){let l=Gt(s),d=vi(s);!d&&l.position==="fixed"&&(n=null),(a?!d&&!n:!d&&l.position==="static"&&!!n&&["absolute","fixed"].includes(n.position)||Mr(s)&&!d&&ac(r,s))?i=i.filter(f=>f!==s):n=l,s=yr(s)}return t.set(r,i),i}function Ku(r){let{element:t,boundary:e,rootBoundary:i,strategy:n}=r,s=[...e==="clippingAncestors"?Gu(t,this._c):[].concat(e),i],l=s[0],d=s.reduce((p,f)=>{let h=tc(t,f,n);return p.top=Fe(h.top,p.top),p.right=wo(h.right,p.right),p.bottom=wo(h.bottom,p.bottom),p.left=Fe(h.left,p.left),p},tc(t,l,n));return{width:d.right-d.left,height:d.bottom-d.top,x:d.left,y:d.top}}function Zu(r){return rc(r)}function qu(r,t,e){let i=te(t),n=Re(t),a=e==="fixed",s=No(r,!0,a,t),l={scrollLeft:0,scrollTop:0},d=Ee(0);if(i||!i&&!a)if((Ae(t)!=="body"||Mr(n))&&(l=_o(t)),i){let p=No(t,!0,a,t);d.x=p.x+t.clientLeft,d.y=p.y+t.clientTop}else n&&(d.x=nc(n));return{x:s.left+l.scrollLeft-d.x,y:s.top+l.scrollTop-d.y,width:s.width,height:s.height}}function ec(r,t){return!te(r)||Gt(r).position==="fixed"?null:t?t(r):r.offsetParent}function sc(r,t){let e=Ut(r);if(!te(r))return e;let i=ec(r,t);for(;i&&Xl(i)&&Gt(i).position==="static";)i=ec(i,t);return i&&(Ae(i)==="html"||Ae(i)==="body"&&Gt(i).position==="static"&&!vi(i))?e:i||Jl(r)||e}var Yu=async function(r){let{reference:t,floating:e,strategy:i}=r,n=this.getOffsetParent||sc,a=this.getDimensions;return{reference:qu(t,await n(e),i),floating:{x:0,y:0,...await a(e)}}};function Xu(r){return Gt(r).direction==="rtl"}var Fr={convertOffsetParentRelativeRectToViewportRelativeRect:Wu,getDocumentElement:Re,getClippingRect:Ku,getOffsetParent:sc,getElementRects:Yu,getClientRects:Hu,getDimensions:Zu,getScale:Br,isElement:fe,isRTL:Xu};var $a=(r,t,e)=>{let i=new Map,n={platform:Fr,...e},a={...n.platform,_c:i};return Zl(r,t,{...n,platform:a})};function La(r){return Ju(r)}function Pa(r){return r.assignedSlot?r.assignedSlot:r.parentNode instanceof ShadowRoot?r.parentNode.host:r.parentNode}function Ju(r){for(let t=r;t;t=Pa(t))if(t instanceof Element&&getComputedStyle(t).display==="none")return null;for(let t=Pa(r);t;t=Pa(t)){if(!(t instanceof Element))continue;let e=getComputedStyle(t);if(e.display!=="contents"&&(e.position!=="static"||e.filter!=="none"||t.tagName==="BODY"))return t}return null}async function Io(r,t,e){return $a(r,t,{platform:{...Fr,getOffsetParent:i=>Fr.getOffsetParent(i,La)},middleware:[Ta({crossAxis:!0}),_a({allowedPlacements:[e]})]})}async function Qu(r,t,e,i,n){return $a(r,t,{placement:e,strategy:n,platform:{...Fr,getOffsetParent:a=>Fr.getOffsetParent(a,La)},middleware:[Ia(4),Na({fallbackPlacements:i})]})}var Fa={};rt(Fa,{FtdsBase:()=>Ba,toFtdsBase:()=>Ci});var Ma={};rt(Ma,{FtLitElement:()=>V});var Da={};rt(Da,{ScopedRegistryLitElement:()=>To});var Si=window,tf=Si.ShadowRoot&&(Si.ShadyCSS===void 0||Si.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,qb=Symbol();var lc=(r,t)=>{tf?r.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet):t.forEach(e=>{let i=document.createElement("style"),n=Si.litNonce;n!==void 0&&i.setAttribute("nonce",n),i.textContent=e.cssText,r.appendChild(i)})};var To=class extends Se{createRenderRoot(){let t=this.constructor;t.elementDefinitions&&!t.registry&&(t.registry=new CustomElementRegistry,Object.entries(t.elementDefinitions).forEach(([n,a])=>t.registry.define(n,a)));let e={...t.shadowRootOptions,customElements:t.registry},i=this.renderOptions.creationScope=this.attachShadow(e);return lc(i,t.elementStyles),i}};var Oi=function(r,t,e,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,t,e,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(t,e,a):s(t,e))||a);return n>3&&a&&Object.defineProperty(t,e,a),a},uc,cc=Symbol("constructorPrototype"),dc=Symbol("constructorName"),fc=Symbol("exportpartsDebouncer"),pc=Symbol("dynamicDependenciesLoaded"),V=class extends To{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[uc]=new at(5),this[dc]=this.constructor.name,this[cc]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[dc]&&Object.setPrototypeOf(this,this[cc])}connectedCallback(){super.connectedCallback();try{this.shadowRoot&&!this.shadowRoot.adoptedStyleSheets.includes(this.adoptedCustomStyleSheet)&&(this.shadowRoot.adoptedStyleSheets=[...this.shadowRoot.adoptedStyleSheets,this.adoptedCustomStyleSheet]),this.useAdoptedStyleSheets=!0}catch(e){this.useAdoptedStyleSheets=!1,console.error("Cannot use adopted stylesheets",e)}let t=this.constructor;t[pc]||(t[pc]=!0,this.importDynamicDependencies())}importDynamicDependencies(){}updated(t){super.updated(t),this.updateComplete.then(()=>{this.contentAvailableCallback(t),this.applyCustomStylesheet(t),this.scheduleExportpartsUpdate()})}contentAvailableCallback(t){}applyCustomStylesheet(t){var e,i,n;if(((i=(e=this.shadowRoot)===null||e===void 0?void 0:e.querySelectorAll(".ft-lit-element--custom-stylesheet"))!==null&&i!==void 0?i:[]).forEach(a=>a.remove()),this.useAdoptedStyleSheets){if(t.has("customStylesheet"))try{this.adoptedCustomStyleSheet.replaceSync((n=this.customStylesheet)!==null&&n!==void 0?n:"")}catch(a){console.error(a,this.customStylesheet),this.useAdoptedStyleSheets=!1}}else if(this.customStylesheet){let a=document.createElement("style");a.classList.add("ft-lit-element--custom-stylesheet"),a.innerHTML=this.customStylesheet,this.shadowRoot.append(a)}}scheduleExportpartsUpdate(){var t,e,i;(!((t=this.exportpartsPrefix)===null||t===void 0)&&t.trim()||(i=(e=this.exportpartsPrefixes)===null||e===void 0?void 0:e.length)!==null&&i!==void 0&&i)&&this[fc].run(()=>{var n,a;!((n=this.exportpartsPrefix)===null||n===void 0)&&n.trim()?this.setExportpartsAttribute([this.exportpartsPrefix]):this.exportpartsPrefixes!=null&&((a=this.exportpartsPrefixes)===null||a===void 0?void 0:a.length)>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)})}setExportpartsAttribute(t){var e,i,n,a,s,l;let d=m=>m!=null&&m.trim().length>0,p=t.filter(d).map(m=>m.trim());if(p.length===0){this.removeAttribute("exportparts");return}let f=new Set;for(let m of(i=(e=this.shadowRoot)===null||e===void 0?void 0:e.querySelectorAll("[part],[exportparts]"))!==null&&i!==void 0?i:[]){let v=(a=(n=m.getAttribute("part"))===null||n===void 0?void 0:n.split(" "))!==null&&a!==void 0?a:[],S=(l=(s=m.getAttribute("exportparts"))===null||s===void 0?void 0:s.split(",").map(E=>E.split(":")[1]))!==null&&l!==void 0?l:[];new Array(...v,...S).filter(d).map(E=>E.trim()).forEach(E=>f.add(E))}if(f.size===0){this.removeAttribute("exportparts");return}let h=[...f.values()].flatMap(m=>p.map(v=>`${m}:${v}--${m}`));this.setAttribute("exportparts",[...this.part,...h].join(", "))}};uc=fc;Oi([g()],V.prototype,"exportpartsPrefix",void 0);Oi([de([])],V.prototype,"exportpartsPrefixes",void 0);Oi([g()],V.prototype,"customStylesheet",void 0);Oi([z()],V.prototype,"useAdoptedStyleSheets",void 0);var hc=function(r,t,e,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,t,e,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(t,e,a):s(t,e))||a);return n>3&&a&&Object.defineProperty(t,e,a),a};function Ci(r){class t extends r{constructor(){super(...arguments),this.size=we.medium,this.family=hr.neutral}getDesignSystemBaseClasses(){return{[ma(this.family)]:!0,[ya(this.size)]:!0}}}return hc([g()],t.prototype,"size",void 0),hc([g()],t.prototype,"family",void 0),t}var Ba=class extends Ci(V){};var mc={};var Ha={};rt(Ha,{highlightHtml:()=>Wa,highlightHtmlColorCssVariable:()=>yc,highlightHtmlStyles:()=>rf});var gr=class r{constructor(t,e=!0,i=[],n=5e3){this.ctx=t,this.iframes=e,this.exclude=i,this.iframesTimeout=n}static matches(t,e){let i=typeof e=="string"?[e]:e,n=t.matches||t.matchesSelector||t.msMatchesSelector||t.mozMatchesSelector||t.oMatchesSelector||t.webkitMatchesSelector;if(n){let a=!1;return i.every(s=>n.call(t,s)?(a=!0,!1):!0),a}else return!1}getContexts(){let t,e=[];return typeof this.ctx>"u"||!this.ctx?t=[]:NodeList.prototype.isPrototypeOf(this.ctx)?t=Array.prototype.slice.call(this.ctx):Array.isArray(this.ctx)?t=this.ctx:typeof this.ctx=="string"?t=Array.prototype.slice.call(document.querySelectorAll(this.ctx)):t=[this.ctx],t.forEach(i=>{let n=e.filter(a=>a.contains(i)).length>0;e.indexOf(i)===-1&&!n&&e.push(i)}),e}getIframeContents(t,e,i=()=>{}){let n;try{let a=t.contentWindow;if(n=a.document,!a||!n)throw new Error("iframe inaccessible")}catch{i()}n&&e(n)}isIframeBlank(t){let e="about:blank",i=t.getAttribute("src").trim();return t.contentWindow.location.href===e&&i!==e&&i}observeIframeLoad(t,e,i){let n=!1,a=null,s=()=>{if(!n){n=!0,clearTimeout(a);try{this.isIframeBlank(t)||(t.removeEventListener("load",s),this.getIframeContents(t,e,i))}catch{i()}}};t.addEventListener("load",s),a=setTimeout(s,this.iframesTimeout)}onIframeReady(t,e,i){try{t.contentWindow.document.readyState==="complete"?this.isIframeBlank(t)?this.observeIframeLoad(t,e,i):this.getIframeContents(t,e,i):this.observeIframeLoad(t,e,i)}catch{i()}}waitForIframes(t,e){let i=0;this.forEachIframe(t,()=>!0,n=>{i++,this.waitForIframes(n.querySelector("html"),()=>{--i||e()})},n=>{n||e()})}forEachIframe(t,e,i,n=()=>{}){let a=t.querySelectorAll("iframe"),s=a.length,l=0;a=Array.prototype.slice.call(a);let d=()=>{--s<=0&&n(l)};s||d(),a.forEach(p=>{r.matches(p,this.exclude)?d():this.onIframeReady(p,f=>{e(p)&&(l++,i(f)),d()},d)})}createIterator(t,e,i){return document.createNodeIterator(t,e,i,!1)}createInstanceOnIframe(t){return new r(t.querySelector("html"),this.iframes)}compareNodeIframe(t,e,i){let n=t.compareDocumentPosition(i),a=Node.DOCUMENT_POSITION_PRECEDING;if(n&a)if(e!==null){let s=e.compareDocumentPosition(i),l=Node.DOCUMENT_POSITION_FOLLOWING;if(s&l)return!0}else return!0;return!1}getIteratorNode(t){let e=t.previousNode(),i;return e===null?i=t.nextNode():i=t.nextNode()&&t.nextNode(),{prevNode:e,node:i}}checkIframeFilter(t,e,i,n){let a=!1,s=!1;return n.forEach((l,d)=>{l.val===i&&(a=d,s=l.handled)}),this.compareNodeIframe(t,e,i)?(a===!1&&!s?n.push({val:i,handled:!0}):a!==!1&&!s&&(n[a].handled=!0),!0):(a===!1&&n.push({val:i,handled:!1}),!1)}handleOpenIframes(t,e,i,n){t.forEach(a=>{a.handled||this.getIframeContents(a.val,s=>{this.createInstanceOnIframe(s).forEachNode(e,i,n)})})}iterateThroughNodes(t,e,i,n,a){let s=this.createIterator(e,t,n),l=[],d=[],p,f,h=()=>({prevNode:f,node:p}=this.getIteratorNode(s),p);for(;h();)this.iframes&&this.forEachIframe(e,m=>this.checkIframeFilter(p,f,m,l),m=>{this.createInstanceOnIframe(m).forEachNode(t,v=>d.push(v),n)}),d.push(p);d.forEach(m=>{i(m)}),this.iframes&&this.handleOpenIframes(l,t,i,n),a()}forEachNode(t,e,i,n=()=>{}){let a=this.getContexts(),s=a.length;s||n(),a.forEach(l=>{let d=()=>{this.iterateThroughNodes(t,l,e,i,()=>{--s<=0&&n()})};this.iframes?this.waitForIframes(l,d):d()})}};var $o=class{constructor(t){this.ctx=t,this.ie=!1;let e=window.navigator.userAgent;(e.indexOf("MSIE")>-1||e.indexOf("Trident")>-1)&&(this.ie=!0)}set opt(t){this._opt=Object.assign({},{element:"",className:"",exclude:[],iframes:!1,iframesTimeout:5e3,separateWordSearch:!0,diacritics:!0,synonyms:{},accuracy:"partially",acrossElements:!1,caseSensitive:!1,ignoreJoiners:!1,ignoreGroups:0,ignorePunctuation:[],wildcards:"disabled",each:()=>{},noMatch:()=>{},filter:()=>!0,done:()=>{},debug:!1,log:window.console},t)}get opt(){return this._opt}get iterator(){return new gr(this.ctx,this.opt.iframes,this.opt.exclude,this.opt.iframesTimeout)}log(t,e="debug"){let i=this.opt.log;this.opt.debug&&typeof i=="object"&&typeof i[e]=="function"&&i[e](`mark.js: ${t}`)}escapeStr(t){return t.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}createRegExp(t){return this.opt.wildcards!=="disabled"&&(t=this.setupWildcardsRegExp(t)),t=this.escapeStr(t),Object.keys(this.opt.synonyms).length&&(t=this.createSynonymsRegExp(t)),(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(t=this.setupIgnoreJoinersRegExp(t)),this.opt.diacritics&&(t=this.createDiacriticsRegExp(t)),t=this.createMergedBlanksRegExp(t),(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(t=this.createJoinersRegExp(t)),this.opt.wildcards!=="disabled"&&(t=this.createWildcardsRegExp(t)),t=this.createAccuracyRegExp(t),t}createSynonymsRegExp(t){let e=this.opt.synonyms,i=this.opt.caseSensitive?"":"i",n=this.opt.ignoreJoiners||this.opt.ignorePunctuation.length?"\0":"";for(let a in e)if(e.hasOwnProperty(a)){let s=e[a],l=this.opt.wildcards!=="disabled"?this.setupWildcardsRegExp(a):this.escapeStr(a),d=this.opt.wildcards!=="disabled"?this.setupWildcardsRegExp(s):this.escapeStr(s);l!==""&&d!==""&&(t=t.replace(new RegExp(`(${this.escapeStr(l)}|${this.escapeStr(d)})`,`gm${i}`),n+`(${this.processSynomyms(l)}|${this.processSynomyms(d)})`+n))}return t}processSynomyms(t){return(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(t=this.setupIgnoreJoinersRegExp(t)),t}setupWildcardsRegExp(t){return t=t.replace(/(?:\\)*\?/g,e=>e.charAt(0)==="\\"?"?":""),t.replace(/(?:\\)*\*/g,e=>e.charAt(0)==="\\"?"*":"")}createWildcardsRegExp(t){let e=this.opt.wildcards==="withSpaces";return t.replace(/\u0001/g,e?"[\\S\\s]?":"\\S?").replace(/\u0002/g,e?"[\\S\\s]*?":"\\S*")}setupIgnoreJoinersRegExp(t){return t.replace(/[^(|)\\]/g,(e,i,n)=>{let a=n.charAt(i+1);return/[(|)\\]/.test(a)||a===""?e:e+"\0"})}createJoinersRegExp(t){let e=[],i=this.opt.ignorePunctuation;return Array.isArray(i)&&i.length&&e.push(this.escapeStr(i.join(""))),this.opt.ignoreJoiners&&e.push("\\u00ad\\u200b\\u200c\\u200d"),e.length?t.split(/\u0000+/).join(`[${e.join("")}]*`):t}createDiacriticsRegExp(t){let e=this.opt.caseSensitive?"":"i",i=this.opt.caseSensitive?["a\xE0\xE1\u1EA3\xE3\u1EA1\u0103\u1EB1\u1EAF\u1EB3\u1EB5\u1EB7\xE2\u1EA7\u1EA5\u1EA9\u1EAB\u1EAD\xE4\xE5\u0101\u0105","A\xC0\xC1\u1EA2\xC3\u1EA0\u0102\u1EB0\u1EAE\u1EB2\u1EB4\u1EB6\xC2\u1EA6\u1EA4\u1EA8\u1EAA\u1EAC\xC4\xC5\u0100\u0104","c\xE7\u0107\u010D","C\xC7\u0106\u010C","d\u0111\u010F","D\u0110\u010E","e\xE8\xE9\u1EBB\u1EBD\u1EB9\xEA\u1EC1\u1EBF\u1EC3\u1EC5\u1EC7\xEB\u011B\u0113\u0119","E\xC8\xC9\u1EBA\u1EBC\u1EB8\xCA\u1EC0\u1EBE\u1EC2\u1EC4\u1EC6\xCB\u011A\u0112\u0118","i\xEC\xED\u1EC9\u0129\u1ECB\xEE\xEF\u012B","I\xCC\xCD\u1EC8\u0128\u1ECA\xCE\xCF\u012A","l\u0142","L\u0141","n\xF1\u0148\u0144","N\xD1\u0147\u0143","o\xF2\xF3\u1ECF\xF5\u1ECD\xF4\u1ED3\u1ED1\u1ED5\u1ED7\u1ED9\u01A1\u1EDF\u1EE1\u1EDB\u1EDD\u1EE3\xF6\xF8\u014D","O\xD2\xD3\u1ECE\xD5\u1ECC\xD4\u1ED2\u1ED0\u1ED4\u1ED6\u1ED8\u01A0\u1EDE\u1EE0\u1EDA\u1EDC\u1EE2\xD6\xD8\u014C","r\u0159","R\u0158","s\u0161\u015B\u0219\u015F","S\u0160\u015A\u0218\u015E","t\u0165\u021B\u0163","T\u0164\u021A\u0162","u\xF9\xFA\u1EE7\u0169\u1EE5\u01B0\u1EEB\u1EE9\u1EED\u1EEF\u1EF1\xFB\xFC\u016F\u016B","U\xD9\xDA\u1EE6\u0168\u1EE4\u01AF\u1EEA\u1EE8\u1EEC\u1EEE\u1EF0\xDB\xDC\u016E\u016A","y\xFD\u1EF3\u1EF7\u1EF9\u1EF5\xFF","Y\xDD\u1EF2\u1EF6\u1EF8\u1EF4\u0178","z\u017E\u017C\u017A","Z\u017D\u017B\u0179"]:["a\xE0\xE1\u1EA3\xE3\u1EA1\u0103\u1EB1\u1EAF\u1EB3\u1EB5\u1EB7\xE2\u1EA7\u1EA5\u1EA9\u1EAB\u1EAD\xE4\xE5\u0101\u0105A\xC0\xC1\u1EA2\xC3\u1EA0\u0102\u1EB0\u1EAE\u1EB2\u1EB4\u1EB6\xC2\u1EA6\u1EA4\u1EA8\u1EAA\u1EAC\xC4\xC5\u0100\u0104","c\xE7\u0107\u010DC\xC7\u0106\u010C","d\u0111\u010FD\u0110\u010E","e\xE8\xE9\u1EBB\u1EBD\u1EB9\xEA\u1EC1\u1EBF\u1EC3\u1EC5\u1EC7\xEB\u011B\u0113\u0119E\xC8\xC9\u1EBA\u1EBC\u1EB8\xCA\u1EC0\u1EBE\u1EC2\u1EC4\u1EC6\xCB\u011A\u0112\u0118","i\xEC\xED\u1EC9\u0129\u1ECB\xEE\xEF\u012BI\xCC\xCD\u1EC8\u0128\u1ECA\xCE\xCF\u012A","l\u0142L\u0141","n\xF1\u0148\u0144N\xD1\u0147\u0143","o\xF2\xF3\u1ECF\xF5\u1ECD\xF4\u1ED3\u1ED1\u1ED5\u1ED7\u1ED9\u01A1\u1EDF\u1EE1\u1EDB\u1EDD\u1EE3\xF6\xF8\u014DO\xD2\xD3\u1ECE\xD5\u1ECC\xD4\u1ED2\u1ED0\u1ED4\u1ED6\u1ED8\u01A0\u1EDE\u1EE0\u1EDA\u1EDC\u1EE2\xD6\xD8\u014C","r\u0159R\u0158","s\u0161\u015B\u0219\u015FS\u0160\u015A\u0218\u015E","t\u0165\u021B\u0163T\u0164\u021A\u0162","u\xF9\xFA\u1EE7\u0169\u1EE5\u01B0\u1EEB\u1EE9\u1EED\u1EEF\u1EF1\xFB\xFC\u016F\u016BU\xD9\xDA\u1EE6\u0168\u1EE4\u01AF\u1EEA\u1EE8\u1EEC\u1EEE\u1EF0\xDB\xDC\u016E\u016A","y\xFD\u1EF3\u1EF7\u1EF9\u1EF5\xFFY\xDD\u1EF2\u1EF6\u1EF8\u1EF4\u0178","z\u017E\u017C\u017AZ\u017D\u017B\u0179"],n=[];return t.split("").forEach(a=>{i.every(s=>{if(s.indexOf(a)!==-1){if(n.indexOf(s)>-1)return!1;t=t.replace(new RegExp(`[${s}]`,`gm${e}`),`[${s}]`),n.push(s)}return!0})}),t}createMergedBlanksRegExp(t){return t.replace(/[\s]+/gmi,"[\\s]+")}createAccuracyRegExp(t){let e="!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~\xA1\xBF",i=this.opt.accuracy,n=typeof i=="string"?i:i.value,a=typeof i=="string"?[]:i.limiters,s="";switch(a.forEach(l=>{s+=`|${this.escapeStr(l)}`}),n){case"partially":default:return`()(${t})`;case"complementary":return s="\\s"+(s||this.escapeStr(e)),`()([^${s}]*${t}[^${s}]*)`;case"exactly":return`(^|\\s${s})(${t})(?=$|\\s${s})`}}getSeparatedKeywords(t){let e=[];return t.forEach(i=>{this.opt.separateWordSearch?i.split(" ").forEach(n=>{n.trim()&&e.indexOf(n)===-1&&e.push(n)}):i.trim()&&e.indexOf(i)===-1&&e.push(i)}),{keywords:e.sort((i,n)=>n.length-i.length),length:e.length}}isNumeric(t){return Number(parseFloat(t))==t}checkRanges(t){if(!Array.isArray(t)||Object.prototype.toString.call(t[0])!=="[object Object]")return this.log("markRanges() will only accept an array of objects"),this.opt.noMatch(t),[];let e=[],i=0;return t.sort((n,a)=>n.start-a.start).forEach(n=>{let{start:a,end:s,valid:l}=this.callNoMatchOnInvalidRanges(n,i);l&&(n.start=a,n.length=s-a,e.push(n),i=s)}),e}callNoMatchOnInvalidRanges(t,e){let i,n,a=!1;return t&&typeof t.start<"u"?(i=parseInt(t.start,10),n=i+parseInt(t.length,10),this.isNumeric(t.start)&&this.isNumeric(t.length)&&n-e>0&&n-i>0?a=!0:(this.log(`Ignoring invalid or overlapping range: ${JSON.stringify(t)}`),this.opt.noMatch(t))):(this.log(`Ignoring invalid range: ${JSON.stringify(t)}`),this.opt.noMatch(t)),{start:i,end:n,valid:a}}checkWhitespaceRanges(t,e,i){let n,a=!0,s=i.length,l=e-s,d=parseInt(t.start,10)-l;return d=d>s?s:d,n=d+parseInt(t.length,10),n>s&&(n=s,this.log(`End range automatically set to the max value of ${s}`)),d<0||n-d<0||d>s||n>s?(a=!1,this.log(`Invalid range: ${JSON.stringify(t)}`),this.opt.noMatch(t)):i.substring(d,n).replace(/\s+/g,"")===""&&(a=!1,this.log("Skipping whitespace only range: "+JSON.stringify(t)),this.opt.noMatch(t)),{start:d,end:n,valid:a}}getTextNodes(t){let e="",i=[];this.iterator.forEachNode(NodeFilter.SHOW_TEXT,n=>{i.push({start:e.length,end:(e+=n.textContent).length,node:n})},n=>this.matchesExclude(n.parentNode)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT,()=>{t({value:e,nodes:i})})}matchesExclude(t){return gr.matches(t,this.opt.exclude.concat(["script","style","title","head","html"]))}wrapRangeInTextNode(t,e,i){let n=this.opt.element?this.opt.element:"mark",a=t.splitText(e),s=a.splitText(i-e),l=document.createElement(n);return l.setAttribute("data-markjs","true"),this.opt.className&&l.setAttribute("class",this.opt.className),l.textContent=a.textContent,a.parentNode.replaceChild(l,a),s}wrapRangeInMappedTextNode(t,e,i,n,a){t.nodes.every((s,l)=>{let d=t.nodes[l+1];if(typeof d>"u"||d.start>e){if(!n(s.node))return!1;let p=e-s.start,f=(i>s.end?s.end:i)-s.start,h=t.value.substr(0,s.start),m=t.value.substr(f+s.start);if(s.node=this.wrapRangeInTextNode(s.node,p,f),t.value=h+m,t.nodes.forEach((v,S)=>{S>=l&&(t.nodes[S].start>0&&S!==l&&(t.nodes[S].start-=f),t.nodes[S].end-=f)}),i-=f,a(s.node.previousSibling,s.start),i>s.end)e=s.end;else return!1}return!0})}wrapMatches(t,e,i,n,a){let s=e===0?0:e+1;this.getTextNodes(l=>{l.nodes.forEach(d=>{d=d.node;let p;for(;(p=t.exec(d.textContent))!==null&&p[s]!=="";){if(!i(p[s],d))continue;let f=p.index;if(s!==0)for(let h=1;h<s;h++)f+=p[h].length;d=this.wrapRangeInTextNode(d,f,f+p[s].length),n(d.previousSibling),t.lastIndex=0}}),a()})}wrapMatchesAcrossElements(t,e,i,n,a){let s=e===0?0:e+1;this.getTextNodes(l=>{let d;for(;(d=t.exec(l.value))!==null&&d[s]!=="";){let p=d.index;if(s!==0)for(let h=1;h<s;h++)p+=d[h].length;let f=p+d[s].length;this.wrapRangeInMappedTextNode(l,p,f,h=>i(d[s],h),(h,m)=>{t.lastIndex=m,n(h)})}a()})}wrapRangeFromIndex(t,e,i,n){this.getTextNodes(a=>{let s=a.value.length;t.forEach((l,d)=>{let{start:p,end:f,valid:h}=this.checkWhitespaceRanges(l,s,a.value);h&&this.wrapRangeInMappedTextNode(a,p,f,m=>e(m,l,a.value.substring(p,f),d),m=>{i(m,l)})}),n()})}unwrapMatches(t){let e=t.parentNode,i=document.createDocumentFragment();for(;t.firstChild;)i.appendChild(t.removeChild(t.firstChild));e.replaceChild(i,t),this.ie?this.normalizeTextNode(e):e.normalize()}normalizeTextNode(t){if(t){if(t.nodeType===3)for(;t.nextSibling&&t.nextSibling.nodeType===3;)t.nodeValue+=t.nextSibling.nodeValue,t.parentNode.removeChild(t.nextSibling);else this.normalizeTextNode(t.firstChild);this.normalizeTextNode(t.nextSibling)}}markRegExp(t,e){this.opt=e,this.log(`Searching with expression "${t}"`);let i=0,n="wrapMatches",a=s=>{i++,this.opt.each(s)};this.opt.acrossElements&&(n="wrapMatchesAcrossElements"),this[n](t,this.opt.ignoreGroups,(s,l)=>this.opt.filter(l,s,i),a,()=>{i===0&&this.opt.noMatch(t),this.opt.done(i)})}mark(t,e){this.opt=e;let i=0,n="wrapMatches",{keywords:a,length:s}=this.getSeparatedKeywords(typeof t=="string"?[t]:t),l=this.opt.caseSensitive?"":"i",d=p=>{let f=new RegExp(this.createRegExp(p),`gm${l}`),h=0;this.log(`Searching with expression "${f}"`),this[n](f,1,(m,v)=>this.opt.filter(v,p,i,h),m=>{h++,i++,this.opt.each(m)},()=>{h===0&&this.opt.noMatch(p),a[s-1]===p?this.opt.done(i):d(a[a.indexOf(p)+1])})};this.opt.acrossElements&&(n="wrapMatchesAcrossElements"),s===0?this.opt.done(i):d(a[0])}markRanges(t,e){this.opt=e;let i=0,n=this.checkRanges(t);n&&n.length?(this.log("Starting to mark with the following ranges: "+JSON.stringify(n)),this.wrapRangeFromIndex(n,(a,s,l,d)=>this.opt.filter(a,s,l,d),(a,s)=>{i++,this.opt.each(a,s)},()=>{this.opt.done(i)})):this.opt.done(i)}unmark(t){this.opt=t;let e=this.opt.element?this.opt.element:"*";e+="[data-markjs]",this.opt.className&&(e+=`.${this.opt.className}`),this.log(`Removal selector "${e}"`),this.iterator.forEachNode(NodeFilter.SHOW_ELEMENT,i=>{this.unwrapMatches(i)},i=>{let n=gr.matches(i,e),a=this.matchesExclude(i);return!n||a?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT},this.opt.done)}};function Ua(r){let t=new $o(r);return this.mark=(e,i)=>(t.mark(e,i),this),this.markRegExp=(e,i)=>(t.markRegExp(e,i),this),this.markRanges=(e,i)=>(t.markRanges(e,i),this),this.unmark=e=>(t.unmark(e),this),this}var ef=Ua,yc=o.create("--ft-utils-highlight-html-background-color","","COLOR","#FFF26E"),rf=P`
1
+ "use strict";(()=>{var yp=Object.create;var yn=Object.defineProperty;var gp=Object.getOwnPropertyDescriptor;var bp=Object.getOwnPropertyNames;var vp=Object.getPrototypeOf,xp=Object.prototype.hasOwnProperty;var Sp=(r,t)=>()=>(t||r((t={exports:{}}).exports,t),t.exports),rt=(r,t)=>{for(var e in t)yn(r,e,{get:t[e],enumerable:!0})},Op=(r,t,e,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of bp(t))!xp.call(r,n)&&n!==e&&yn(r,n,{get:()=>t[n],enumerable:!(i=gp(t,n))||i.enumerable});return r};var Cp=(r,t,e)=>(e=r!=null?yp(vp(r)):{},Op(t||!r||!r.__esModule?yn(e,"default",{value:r,enumerable:!0}):e,r));var td=Sp((Ge,Qc)=>{var Di=typeof globalThis<"u"&&globalThis||typeof self<"u"&&self||typeof global<"u"&&global,Mi=function(){function r(){this.fetch=!1,this.DOMException=Di.DOMException}return r.prototype=Di,new r}();(function(r){var t=function(e){var i=typeof r<"u"&&r||typeof self<"u"&&self||typeof global<"u"&&global||{},n={searchParams:"URLSearchParams"in i,iterable:"Symbol"in i&&"iterator"in Symbol,blob:"FileReader"in i&&"Blob"in i&&function(){try{return new Blob,!0}catch{return!1}}(),formData:"FormData"in i,arrayBuffer:"ArrayBuffer"in i};function a(m){return m&&DataView.prototype.isPrototypeOf(m)}if(n.arrayBuffer)var s=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],l=ArrayBuffer.isView||function(m){return m&&s.indexOf(Object.prototype.toString.call(m))>-1};function d(m){if(typeof m!="string"&&(m=String(m)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(m)||m==="")throw new TypeError('Invalid character in header field name: "'+m+'"');return m.toLowerCase()}function p(m){return typeof m!="string"&&(m=String(m)),m}function f(m){var O={next:function(){var D=m.shift();return{done:D===void 0,value:D}}};return n.iterable&&(O[Symbol.iterator]=function(){return O}),O}function h(m){this.map={},m instanceof h?m.forEach(function(O,D){this.append(D,O)},this):Array.isArray(m)?m.forEach(function(O){if(O.length!=2)throw new TypeError("Headers constructor: expected name/value pair to be length 2, found"+O.length);this.append(O[0],O[1])},this):m&&Object.getOwnPropertyNames(m).forEach(function(O){this.append(O,m[O])},this)}h.prototype.append=function(m,O){m=d(m),O=p(O);var D=this.map[m];this.map[m]=D?D+", "+O:O},h.prototype.delete=function(m){delete this.map[d(m)]},h.prototype.get=function(m){return m=d(m),this.has(m)?this.map[m]:null},h.prototype.has=function(m){return this.map.hasOwnProperty(d(m))},h.prototype.set=function(m,O){this.map[d(m)]=p(O)},h.prototype.forEach=function(m,O){for(var D in this.map)this.map.hasOwnProperty(D)&&m.call(O,this.map[D],D,this)},h.prototype.keys=function(){var m=[];return this.forEach(function(O,D){m.push(D)}),f(m)},h.prototype.values=function(){var m=[];return this.forEach(function(O){m.push(O)}),f(m)},h.prototype.entries=function(){var m=[];return this.forEach(function(O,D){m.push([D,O])}),f(m)},n.iterable&&(h.prototype[Symbol.iterator]=h.prototype.entries);function y(m){if(!m._noBody){if(m.bodyUsed)return Promise.reject(new TypeError("Already read"));m.bodyUsed=!0}}function v(m){return new Promise(function(O,D){m.onload=function(){O(m.result)},m.onerror=function(){D(m.error)}})}function S(m){var O=new FileReader,D=v(O);return O.readAsArrayBuffer(m),D}function E(m){var O=new FileReader,D=v(O),G=/charset=([A-Za-z0-9_-]+)/.exec(m.type),J=G?G[1]:"utf-8";return O.readAsText(m,J),D}function N(m){for(var O=new Uint8Array(m),D=new Array(O.length),G=0;G<O.length;G++)D[G]=String.fromCharCode(O[G]);return D.join("")}function T(m){if(m.slice)return m.slice(0);var O=new Uint8Array(m.byteLength);return O.set(new Uint8Array(m)),O.buffer}function P(){return this.bodyUsed=!1,this._initBody=function(m){this.bodyUsed=this.bodyUsed,this._bodyInit=m,m?typeof m=="string"?this._bodyText=m:n.blob&&Blob.prototype.isPrototypeOf(m)?this._bodyBlob=m:n.formData&&FormData.prototype.isPrototypeOf(m)?this._bodyFormData=m:n.searchParams&&URLSearchParams.prototype.isPrototypeOf(m)?this._bodyText=m.toString():n.arrayBuffer&&n.blob&&a(m)?(this._bodyArrayBuffer=T(m.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):n.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(m)||l(m))?this._bodyArrayBuffer=T(m):this._bodyText=m=Object.prototype.toString.call(m):(this._noBody=!0,this._bodyText=""),this.headers.get("content-type")||(typeof m=="string"?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):n.searchParams&&URLSearchParams.prototype.isPrototypeOf(m)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},n.blob&&(this.blob=function(){var m=y(this);if(m)return m;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 m=y(this);return m||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer))}else{if(n.blob)return this.blob().then(S);throw new Error("could not read as ArrayBuffer")}},this.text=function(){var m=y(this);if(m)return m;if(this._bodyBlob)return E(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(N(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},n.formData&&(this.formData=function(){return this.text().then(k)}),this.json=function(){return this.text().then(JSON.parse)},this}var w=["CONNECT","DELETE","GET","HEAD","OPTIONS","PATCH","POST","PUT","TRACE"];function C(m){var O=m.toUpperCase();return w.indexOf(O)>-1?O:m}function A(m,O){if(!(this instanceof A))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');O=O||{};var D=O.body;if(m instanceof A){if(m.bodyUsed)throw new TypeError("Already read");this.url=m.url,this.credentials=m.credentials,O.headers||(this.headers=new h(m.headers)),this.method=m.method,this.mode=m.mode,this.signal=m.signal,!D&&m._bodyInit!=null&&(D=m._bodyInit,m.bodyUsed=!0)}else this.url=String(m);if(this.credentials=O.credentials||this.credentials||"same-origin",(O.headers||!this.headers)&&(this.headers=new h(O.headers)),this.method=C(O.method||this.method||"GET"),this.mode=O.mode||this.mode||null,this.signal=O.signal||this.signal||function(){if("AbortController"in i){var z=new AbortController;return z.signal}}(),this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&D)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(D),(this.method==="GET"||this.method==="HEAD")&&(O.cache==="no-store"||O.cache==="no-cache")){var G=/([?&])_=[^&]*/;if(G.test(this.url))this.url=this.url.replace(G,"$1_="+new Date().getTime());else{var J=/\?/;this.url+=(J.test(this.url)?"&":"?")+"_="+new Date().getTime()}}}A.prototype.clone=function(){return new A(this,{body:this._bodyInit})};function k(m){var O=new FormData;return m.trim().split("&").forEach(function(D){if(D){var G=D.split("="),J=G.shift().replace(/\+/g," "),z=G.join("=").replace(/\+/g," ");O.append(decodeURIComponent(J),decodeURIComponent(z))}}),O}function W(m){var O=new h,D=m.replace(/\r?\n[\t ]+/g," ");return D.split("\r").map(function(G){return G.indexOf(`
2
+ `)===0?G.substr(1,G.length):G}).forEach(function(G){var J=G.split(":"),z=J.shift().trim();if(z){var ae=J.join(":").trim();try{O.append(z,ae)}catch(oo){console.warn("Response "+oo.message)}}}),O}P.call(A.prototype);function Y(m,O){if(!(this instanceof Y))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');if(O||(O={}),this.type="default",this.status=O.status===void 0?200:O.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=O.statusText===void 0?"":""+O.statusText,this.headers=new h(O.headers),this.url=O.url||"",this._initBody(m)}P.call(Y.prototype),Y.prototype.clone=function(){return new Y(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new h(this.headers),url:this.url})},Y.error=function(){var m=new Y(null,{status:200,statusText:""});return m.ok=!1,m.status=0,m.type="error",m};var K=[301,302,303,307,308];Y.redirect=function(m,O){if(K.indexOf(O)===-1)throw new RangeError("Invalid status code");return new Y(null,{status:O,headers:{location:m}})},e.DOMException=i.DOMException;try{new e.DOMException}catch{e.DOMException=function(O,D){this.message=O,this.name=D;var G=Error(O);this.stack=G.stack},e.DOMException.prototype=Object.create(Error.prototype),e.DOMException.prototype.constructor=e.DOMException}function F(m,O){return new Promise(function(D,G){var J=new A(m,O);if(J.signal&&J.signal.aborted)return G(new e.DOMException("Aborted","AbortError"));var z=new XMLHttpRequest;function ae(){z.abort()}z.onload=function(){var Rt={statusText:z.statusText,headers:W(z.getAllResponseHeaders()||"")};J.url.indexOf("file://")===0&&(z.status<200||z.status>599)?Rt.status=200:Rt.status=z.status,Rt.url="responseURL"in z?z.responseURL:Rt.headers.get("X-Request-URL");var er="response"in z?z.response:z.responseText;setTimeout(function(){D(new Y(er,Rt))},0)},z.onerror=function(){setTimeout(function(){G(new TypeError("Network request failed"))},0)},z.ontimeout=function(){setTimeout(function(){G(new TypeError("Network request timed out"))},0)},z.onabort=function(){setTimeout(function(){G(new e.DOMException("Aborted","AbortError"))},0)};function oo(Rt){try{return Rt===""&&i.location.href?i.location.href:Rt}catch{return Rt}}if(z.open(J.method,oo(J.url),!0),J.credentials==="include"?z.withCredentials=!0:J.credentials==="omit"&&(z.withCredentials=!1),"responseType"in z&&(n.blob?z.responseType="blob":n.arrayBuffer&&(z.responseType="arraybuffer")),O&&typeof O.headers=="object"&&!(O.headers instanceof h||i.Headers&&O.headers instanceof i.Headers)){var Qs=[];Object.getOwnPropertyNames(O.headers).forEach(function(Rt){Qs.push(d(Rt)),z.setRequestHeader(Rt,p(O.headers[Rt]))}),J.headers.forEach(function(Rt,er){Qs.indexOf(er)===-1&&z.setRequestHeader(er,Rt)})}else J.headers.forEach(function(Rt,er){z.setRequestHeader(er,Rt)});J.signal&&(J.signal.addEventListener("abort",ae),z.onreadystatechange=function(){z.readyState===4&&J.signal.removeEventListener("abort",ae)}),z.send(typeof J._bodyInit>"u"?null:J._bodyInit)})}return F.polyfill=!0,i.fetch||(i.fetch=F,i.Headers=h,i.Request=A,i.Response=Y),e.Headers=h,e.Request=A,e.Response=Y,e.fetch=F,e}({})})(Mi);Mi.fetch.ponyfill=!0;delete Mi.fetch.polyfill;var Gr=Di.fetch?Di:Mi;Ge=Gr.fetch;Ge.default=Gr.fetch;Ge.fetch=Gr.fetch;Ge.Headers=Gr.Headers;Ge.Request=Gr.Request;Ge.Response=Gr.Response;Qc.exports=Ge});if(!ShadowRoot.prototype.createElement){let r=window.HTMLElement,t=window.customElements.define,e=window.customElements.get,i=window.customElements,n=new WeakMap,a=new WeakMap,s=new WeakMap,l=new WeakMap;window.CustomElementRegistry=class{constructor(){this._definitionsByTag=new Map,this._definitionsByClass=new Map,this._whenDefinedPromises=new Map,this._awaitingUpgrade=new Map}define(w,C){if(w=w.toLowerCase(),this._getDefinition(w)!==void 0)throw new DOMException(`Failed to execute 'define' on 'CustomElementRegistry': the name "${w}" has already been used with this registry`);if(this._definitionsByClass.get(C)!==void 0)throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");let A=C.prototype.attributeChangedCallback,k=new Set(C.observedAttributes||[]);y(C,k,A);let W={elementClass:C,connectedCallback:C.prototype.connectedCallback,disconnectedCallback:C.prototype.disconnectedCallback,adoptedCallback:C.prototype.adoptedCallback,attributeChangedCallback:A,formAssociated:C.formAssociated,formAssociatedCallback:C.prototype.formAssociatedCallback,formDisabledCallback:C.prototype.formDisabledCallback,formResetCallback:C.prototype.formResetCallback,formStateRestoreCallback:C.prototype.formStateRestoreCallback,observedAttributes:k};this._definitionsByTag.set(w,W),this._definitionsByClass.set(C,W);let Y=e.call(i,w);Y||(Y=h(w),t.call(i,w,Y)),this===window.customElements&&(s.set(C,W),W.standInClass=Y);let K=this._awaitingUpgrade.get(w);if(K){this._awaitingUpgrade.delete(w);for(let m of K)a.delete(m),S(m,W,!0)}let F=this._whenDefinedPromises.get(w);return F!==void 0&&(F.resolve(C),this._whenDefinedPromises.delete(w)),C}upgrade(){N.push(this),i.upgrade.apply(i,arguments),N.pop()}get(w){return this._definitionsByTag.get(w)?.elementClass}_getDefinition(w){return this._definitionsByTag.get(w)}whenDefined(w){let C=this._getDefinition(w);if(C!==void 0)return Promise.resolve(C.elementClass);let A=this._whenDefinedPromises.get(w);return A===void 0&&(A={},A.promise=new Promise(k=>A.resolve=k),this._whenDefinedPromises.set(w,A)),A.promise}_upgradeWhenDefined(w,C,A){let k=this._awaitingUpgrade.get(C);k||this._awaitingUpgrade.set(C,k=new Set),A?k.add(w):k.delete(w)}};let d;window.HTMLElement=function(){let C=d;if(C)return d=void 0,C;let A=s.get(this.constructor);if(!A)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return C=Reflect.construct(r,[],A.standInClass),Object.setPrototypeOf(C,this.constructor.prototype),n.set(C,A),C},window.HTMLElement.prototype=r.prototype;let p=w=>w===document||w instanceof ShadowRoot,f=w=>{let C=w.getRootNode();if(!p(C)){let A=N[N.length-1];if(A instanceof CustomElementRegistry)return A;C=A.getRootNode(),p(C)||(C=l.get(C)?.getRootNode()||document)}return C.customElements},h=w=>class{static get formAssociated(){return!0}constructor(){let A=Reflect.construct(r,[],this.constructor);Object.setPrototypeOf(A,HTMLElement.prototype);let k=f(A)||window.customElements,W=k._getDefinition(w);return W?S(A,W):a.set(A,k),A}connectedCallback(){let A=n.get(this);A?A.connectedCallback&&A.connectedCallback.apply(this,arguments):a.get(this)._upgradeWhenDefined(this,w,!0)}disconnectedCallback(){let A=n.get(this);A?A.disconnectedCallback&&A.disconnectedCallback.apply(this,arguments):a.get(this)._upgradeWhenDefined(this,w,!1)}adoptedCallback(){n.get(this)?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){let A=n.get(this);A&&A.formAssociated&&A?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){let A=n.get(this);A?.formAssociated&&A?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){let A=n.get(this);A?.formAssociated&&A?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){let A=n.get(this);A?.formAssociated&&A?.formStateRestoreCallback?.apply(this,arguments)}},y=(w,C,A)=>{if(C.size===0||A===void 0)return;let k=w.prototype.setAttribute;k&&(w.prototype.setAttribute=function(K,F){let m=K.toLowerCase();if(C.has(m)){let O=this.getAttribute(m);k.call(this,m,F),A.call(this,m,O,F)}else k.call(this,m,F)});let W=w.prototype.removeAttribute;W&&(w.prototype.removeAttribute=function(K){let F=K.toLowerCase();if(C.has(F)){let m=this.getAttribute(F);W.call(this,F),A.call(this,F,m,null)}else W.call(this,F)});let Y=w.prototype.toggleAttribute;Y&&(w.prototype.toggleAttribute=function(K,F){let m=K.toLowerCase();if(C.has(m)){let O=this.getAttribute(m);Y.call(this,m,F);let D=this.getAttribute(m);A.call(this,m,O,D)}else Y.call(this,m,F)})},v=w=>{let C=Object.getPrototypeOf(w);if(C!==window.HTMLElement)return C===r?Object.setPrototypeOf(w,window.HTMLElement):v(C)},S=(w,C,A=!1)=>{Object.setPrototypeOf(w,C.elementClass.prototype),n.set(w,C),d=w;try{new C.elementClass}catch{v(C.elementClass),new C.elementClass}C.attributeChangedCallback&&C.observedAttributes.forEach(k=>{w.hasAttribute(k)&&C.attributeChangedCallback.call(w,k,null,w.getAttribute(k))}),A&&C.connectedCallback&&w.isConnected&&C.connectedCallback.call(w)},E=Element.prototype.attachShadow;Element.prototype.attachShadow=function(w){let C=E.apply(this,arguments);return w.customElements&&(C.customElements=w.customElements),C};let N=[document],T=(w,C,A=void 0)=>{let k=(A?Object.getPrototypeOf(A):w.prototype)[C];w.prototype[C]=function(){N.push(this);let W=k.apply(A||this,arguments);return W!==void 0&&l.set(W,this),N.pop(),W}};T(ShadowRoot,"createElement",document),T(ShadowRoot,"importNode",document),T(Element,"insertAdjacentHTML");let P=(w,C)=>{let A=Object.getOwnPropertyDescriptor(w.prototype,C);Object.defineProperty(w.prototype,C,{...A,set(k){N.push(this),A.set.call(this,k),N.pop()}})};if(P(Element,"innerHTML"),P(ShadowRoot,"innerHTML"),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){let w=new WeakMap,C=HTMLElement.prototype.attachInternals,A=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...K){let F=C.call(this,...K);return w.set(F,this),F},A.forEach(K=>{let F=window.ElementInternals.prototype,m=F[K];F[K]=function(...O){let D=w.get(this);if(n.get(D).formAssociated===!0)return m?.call(this,...O);throw new DOMException(`Failed to execute ${m} on 'ElementInternals': The target element is not a form-associated custom element.`)}});class k extends Array{constructor(F){super(...F),this._elements=F}get value(){return this._elements.find(F=>F.checked===!0)?.value||""}}class W{constructor(F){let m=new Map;F.forEach((O,D)=>{let G=O.getAttribute("name"),J=m.get(G)||[];this[+D]=O,J.push(O),m.set(G,J)}),this.length=F.length,m.forEach((O,D)=>{O&&(O.length===1?this[D]=O[0]:this[D]=new k(O))})}namedItem(F){return this[F]}}let Y=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){let K=Y.get.call(this,[]),F=[];for(let m of K){let O=n.get(m);(!O||O.formAssociated===!0)&&F.push(m)}return new W(F)}})}}try{window.customElements.define("custom-element",null)}catch{let t=window.customElements.define;window.customElements.define=(e,i,n)=>{if(i!==null)try{t.bind(window.customElements)(e,i,n)}catch(a){console.info(e,i,n,a)}}}var Nn={};rt(Nn,{CSSResult:()=>Pr,LitElement:()=>Se,ReactiveElement:()=>se,_$LE:()=>Kp,_$LH:()=>Vp,adoptStyles:()=>li,css:()=>L,defaultConverter:()=>ci,getCompatibleStyle:()=>uo,html:()=>$,isServer:()=>Ph,noChange:()=>ke,notEqual:()=>Cn,nothing:()=>V,render:()=>_n,supportsAdoptingStyleSheets:()=>po,svg:()=>zp,unsafeCSS:()=>ve});var Zo=globalThis,Yo=Zo.ShadowRoot&&(Zo.ShadyCSS===void 0||Zo.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,el=Symbol(),tl=new WeakMap,qo=class{constructor(t,e,i){if(this._$cssResult$=!0,i!==el)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o,e=this.t;if(Yo&&t===void 0){let i=e!==void 0&&e.length===1;i&&(t=tl.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),i&&tl.set(e,t))}return t}toString(){return this.cssText}},rl=r=>new qo(typeof r=="string"?r:r+"",void 0,el);var gn=(r,t)=>{if(Yo)r.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(let e of t){let i=document.createElement("style"),n=Zo.litNonce;n!==void 0&&i.setAttribute("nonce",n),i.textContent=e.cssText,r.appendChild(i)}},Xo=Yo?r=>r:r=>r instanceof CSSStyleSheet?(t=>{let e="";for(let i of t.cssRules)e+=i.cssText;return rl(e)})(r):r;var{is:Ep,defineProperty:wp,getOwnPropertyDescriptor:Ap,getOwnPropertyNames:Rp,getOwnPropertySymbols:_p,getPrototypeOf:Np}=Object,Jo=globalThis,ol=Jo.trustedTypes,Ip=ol?ol.emptyScript:"",Tp=Jo.reactiveElementPolyfillSupport,io=(r,t)=>r,no={toAttribute(r,t){switch(t){case Boolean:r=r?Ip:null;break;case Object:case Array:r=r==null?r:JSON.stringify(r)}return r},fromAttribute(r,t){let e=r;switch(t){case Boolean:e=r!==null;break;case Number:e=r===null?null:Number(r);break;case Object:case Array:try{e=JSON.parse(r)}catch{e=null}}return e}},Qo=(r,t)=>!Ep(r,t),il={attribute:!0,type:String,converter:no,reflect:!1,hasChanged:Qo};Symbol.metadata??=Symbol("metadata"),Jo.litPropertyMetadata??=new WeakMap;var rr=class extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=il){if(e.state&&(e.attribute=!1),this._$Ei(),this.elementProperties.set(t,e),!e.noAccessor){let i=Symbol(),n=this.getPropertyDescriptor(t,i,e);n!==void 0&&wp(this.prototype,t,n)}}static getPropertyDescriptor(t,e,i){let{get:n,set:a}=Ap(this.prototype,t)??{get(){return this[e]},set(s){this[e]=s}};return{get(){return n?.call(this)},set(s){let l=n?.call(this);a.call(this,s),this.requestUpdate(t,l,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??il}static _$Ei(){if(this.hasOwnProperty(io("elementProperties")))return;let t=Np(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(io("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(io("properties"))){let e=this.properties,i=[...Rp(e),..._p(e)];for(let n of i)this.createProperty(n,e[n])}let t=this[Symbol.metadata];if(t!==null){let e=litPropertyMetadata.get(t);if(e!==void 0)for(let[i,n]of e)this.elementProperties.set(i,n)}this._$Eh=new Map;for(let[e,i]of this.elementProperties){let n=this._$Eu(e,i);n!==void 0&&this._$Eh.set(n,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){let e=[];if(Array.isArray(t)){let i=new Set(t.flat(1/0).reverse());for(let n of i)e.unshift(Xo(n))}else t!==void 0&&e.push(Xo(t));return e}static _$Eu(t,e){let i=e.attribute;return i===!1?void 0:typeof i=="string"?i:typeof t=="string"?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$Eg=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$ES(),this.requestUpdate(),this.constructor.l?.forEach(t=>t(this))}addController(t){(this._$E_??=new Set).add(t),this.renderRoot!==void 0&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$E_?.delete(t)}_$ES(){let t=new Map,e=this.constructor.elementProperties;for(let i of e.keys())this.hasOwnProperty(i)&&(t.set(i,this[i]),delete this[i]);t.size>0&&(this._$Ep=t)}createRenderRoot(){let t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return gn(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$E_?.forEach(t=>t.hostConnected?.())}enableUpdating(t){}disconnectedCallback(){this._$E_?.forEach(t=>t.hostDisconnected?.())}attributeChangedCallback(t,e,i){this._$AK(t,i)}_$EO(t,e){let i=this.constructor.elementProperties.get(t),n=this.constructor._$Eu(t,i);if(n!==void 0&&i.reflect===!0){let a=(i.converter?.toAttribute!==void 0?i.converter:no).toAttribute(e,i.type);this._$Em=t,a==null?this.removeAttribute(n):this.setAttribute(n,a),this._$Em=null}}_$AK(t,e){let i=this.constructor,n=i._$Eh.get(t);if(n!==void 0&&this._$Em!==n){let a=i.getPropertyOptions(n),s=typeof a.converter=="function"?{fromAttribute:a.converter}:a.converter?.fromAttribute!==void 0?a.converter:no;this._$Em=n,this[n]=s.fromAttribute(e,a.type),this._$Em=null}}requestUpdate(t,e,i,n=!1,a){if(t!==void 0){if(i??=this.constructor.getPropertyOptions(t),!(i.hasChanged??Qo)(n?a:this[t],e))return;this.C(t,e,i)}this.isUpdatePending===!1&&(this._$Eg=this._$EP())}C(t,e,i){this._$AL.has(t)||this._$AL.set(t,e),i.reflect===!0&&this._$Em!==t&&(this._$Ej??=new Set).add(t)}async _$EP(){this.isUpdatePending=!0;try{await this._$Eg}catch(e){Promise.reject(e)}let t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(let[n,a]of this._$Ep)this[n]=a;this._$Ep=void 0}let i=this.constructor.elementProperties;if(i.size>0)for(let[n,a]of i)a.wrapped!==!0||this._$AL.has(n)||this[n]===void 0||this.C(n,this[n],a)}let t=!1,e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),this._$E_?.forEach(i=>i.hostUpdate?.()),this.update(e)):this._$ET()}catch(i){throw t=!1,this._$ET(),i}t&&this._$AE(e)}willUpdate(t){}_$AE(t){this._$E_?.forEach(e=>e.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$ET(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$Eg}shouldUpdate(t){return!0}update(t){this._$Ej&&=this._$Ej.forEach(e=>this._$EO(e,this[e])),this._$ET()}updated(t){}firstUpdated(t){}};rr.elementStyles=[],rr.shadowRootOptions={mode:"open"},rr[io("elementProperties")]=new Map,rr[io("finalized")]=new Map,Tp?.({ReactiveElement:rr}),(Jo.reactiveElementVersions??=[]).push("2.0.2");var vn=globalThis,ti=vn.trustedTypes,nl=ti?ti.createPolicy("lit-html",{createHTML:r=>r}):void 0,xn="$lit$",be=`lit$${(Math.random()+"").slice(9)}$`,Sn="?"+be,Pp=`<${Sn}>`,nr=document,ei=()=>nr.createComment(""),so=r=>r===null||typeof r!="object"&&typeof r!="function",pl=Array.isArray,ul=r=>pl(r)||typeof r?.[Symbol.iterator]=="function",bn=`[
3
+ \f\r]`,ao=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,al=/-->/g,sl=/>/g,or=RegExp(`>|${bn}(?:([^\\s"'>=/]+)(${bn}*=${bn}*(?:[^
4
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),ll=/'/g,cl=/"/g,fl=/^(?:script|style|textarea|title)$/i,hl=r=>(t,...e)=>({_$litType$:r,strings:t,values:e}),ml=hl(1),yl=hl(2),jt=Symbol.for("lit-noChange"),ht=Symbol.for("lit-nothing"),dl=new WeakMap,ir=nr.createTreeWalker(nr,129);function gl(r,t){if(!Array.isArray(r)||!r.hasOwnProperty("raw"))throw Error("invalid template strings array");return nl!==void 0?nl.createHTML(t):t}var bl=(r,t)=>{let e=r.length-1,i=[],n,a=t===2?"<svg>":"",s=ao;for(let l=0;l<e;l++){let d=r[l],p,f,h=-1,y=0;for(;y<d.length&&(s.lastIndex=y,f=s.exec(d),f!==null);)y=s.lastIndex,s===ao?f[1]==="!--"?s=al:f[1]!==void 0?s=sl:f[2]!==void 0?(fl.test(f[2])&&(n=RegExp("</"+f[2],"g")),s=or):f[3]!==void 0&&(s=or):s===or?f[0]===">"?(s=n??ao,h=-1):f[1]===void 0?h=-2:(h=s.lastIndex-f[2].length,p=f[1],s=f[3]===void 0?or:f[3]==='"'?cl:ll):s===cl||s===ll?s=or:s===al||s===sl?s=ao:(s=or,n=void 0);let v=s===or&&r[l+1].startsWith("/>")?" ":"";a+=s===ao?d+Pp:h>=0?(i.push(p),d.slice(0,h)+xn+d.slice(h)+be+v):d+be+(h===-2?l:v)}return[gl(r,a+(r[e]||"<?>")+(t===2?"</svg>":"")),i]},lo=class r{constructor({strings:t,_$litType$:e},i){let n;this.parts=[];let a=0,s=0,l=t.length-1,d=this.parts,[p,f]=bl(t,e);if(this.el=r.createElement(p,i),ir.currentNode=this.el.content,e===2){let h=this.el.content.firstChild;h.replaceWith(...h.childNodes)}for(;(n=ir.nextNode())!==null&&d.length<l;){if(n.nodeType===1){if(n.hasAttributes())for(let h of n.getAttributeNames())if(h.endsWith(xn)){let y=f[s++],v=n.getAttribute(h).split(be),S=/([.?@])?(.*)/.exec(y);d.push({type:1,index:a,name:S[2],strings:v,ctor:S[1]==="."?oi:S[1]==="?"?ii:S[1]==="@"?ni:sr}),n.removeAttribute(h)}else h.startsWith(be)&&(d.push({type:6,index:a}),n.removeAttribute(h));if(fl.test(n.tagName)){let h=n.textContent.split(be),y=h.length-1;if(y>0){n.textContent=ti?ti.emptyScript:"";for(let v=0;v<y;v++)n.append(h[v],ei()),ir.nextNode(),d.push({type:2,index:++a});n.append(h[y],ei())}}}else if(n.nodeType===8)if(n.data===Sn)d.push({type:2,index:a});else{let h=-1;for(;(h=n.data.indexOf(be,h+1))!==-1;)d.push({type:7,index:a}),h+=be.length-1}a++}}static createElement(t,e){let i=nr.createElement("template");return i.innerHTML=t,i}};function ar(r,t,e=r,i){if(t===jt)return t;let n=i!==void 0?e._$Co?.[i]:e._$Cl,a=so(t)?void 0:t._$litDirective$;return n?.constructor!==a&&(n?._$AO?.(!1),a===void 0?n=void 0:(n=new a(r),n._$AT(r,e,i)),i!==void 0?(e._$Co??=[])[i]=n:e._$Cl=n),n!==void 0&&(t=ar(r,n._$AS(r,t.values),n,i)),t}var ri=class{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){let{el:{content:e},parts:i}=this._$AD,n=(t?.creationScope??nr).importNode(e,!0);ir.currentNode=n;let a=ir.nextNode(),s=0,l=0,d=i[0];for(;d!==void 0;){if(s===d.index){let p;d.type===2?p=new co(a,a.nextSibling,this,t):d.type===1?p=new d.ctor(a,d.name,d.strings,this,t):d.type===6&&(p=new ai(a,this,t)),this._$AV.push(p),d=i[++l]}s!==d?.index&&(a=ir.nextNode(),s++)}return ir.currentNode=nr,n}p(t){let e=0;for(let i of this._$AV)i!==void 0&&(i.strings!==void 0?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}},co=class r{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,i,n){this.type=2,this._$AH=ht,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=n,this._$Cv=n?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode,e=this._$AM;return e!==void 0&&t?.nodeType===11&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=ar(this,t,e),so(t)?t===ht||t==null||t===""?(this._$AH!==ht&&this._$AR(),this._$AH=ht):t!==this._$AH&&t!==jt&&this._(t):t._$litType$!==void 0?this.g(t):t.nodeType!==void 0?this.$(t):ul(t)?this.T(t):this._(t)}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}_(t){this._$AH!==ht&&so(this._$AH)?this._$AA.nextSibling.data=t:this.$(nr.createTextNode(t)),this._$AH=t}g(t){let{values:e,_$litType$:i}=t,n=typeof i=="number"?this._$AC(t):(i.el===void 0&&(i.el=lo.createElement(gl(i.h,i.h[0]),this.options)),i);if(this._$AH?._$AD===n)this._$AH.p(e);else{let a=new ri(n,this),s=a.u(this.options);a.p(e),this.$(s),this._$AH=a}}_$AC(t){let e=dl.get(t.strings);return e===void 0&&dl.set(t.strings,e=new lo(t)),e}T(t){pl(this._$AH)||(this._$AH=[],this._$AR());let e=this._$AH,i,n=0;for(let a of t)n===e.length?e.push(i=new r(this.k(ei()),this.k(ei()),this,this.options)):i=e[n],i._$AI(a),n++;n<e.length&&(this._$AR(i&&i._$AB.nextSibling,n),e.length=n)}_$AR(t=this._$AA.nextSibling,e){for(this._$AP?.(!1,!0,e);t&&t!==this._$AB;){let i=t.nextSibling;t.remove(),t=i}}setConnected(t){this._$AM===void 0&&(this._$Cv=t,this._$AP?.(t))}},sr=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,i,n,a){this.type=1,this._$AH=ht,this._$AN=void 0,this.element=t,this.name=e,this._$AM=n,this.options=a,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=ht}_$AI(t,e=this,i,n){let a=this.strings,s=!1;if(a===void 0)t=ar(this,t,e,0),s=!so(t)||t!==this._$AH&&t!==jt,s&&(this._$AH=t);else{let l=t,d,p;for(t=a[0],d=0;d<a.length-1;d++)p=ar(this,l[i+d],e,d),p===jt&&(p=this._$AH[d]),s||=!so(p)||p!==this._$AH[d],p===ht?t=ht:t!==ht&&(t+=(p??"")+a[d+1]),this._$AH[d]=p}s&&!n&&this.O(t)}O(t){t===ht?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},oi=class extends sr{constructor(){super(...arguments),this.type=3}O(t){this.element[this.name]=t===ht?void 0:t}},ii=class extends sr{constructor(){super(...arguments),this.type=4}O(t){this.element.toggleAttribute(this.name,!!t&&t!==ht)}},ni=class extends sr{constructor(t,e,i,n,a){super(t,e,i,n,a),this.type=5}_$AI(t,e=this){if((t=ar(this,t,e,0)??ht)===jt)return;let i=this._$AH,n=t===ht&&i!==ht||t.capture!==i.capture||t.once!==i.once||t.passive!==i.passive,a=t!==ht&&(i===ht||n);n&&this.element.removeEventListener(this.name,this,i),a&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}},ai=class{constructor(t,e,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){ar(this,t)}},vl={j:xn,P:be,A:Sn,C:1,M:bl,L:ri,R:ul,V:ar,D:co,I:sr,H:ii,N:ni,U:oi,B:ai},$p=vn.litHtmlPolyfillSupport;$p?.(lo,co),(vn.litHtmlVersions??=[]).push("3.1.0");var si=globalThis,po=si.ShadowRoot&&(si.ShadyCSS===void 0||si.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,On=Symbol(),xl=new WeakMap,Pr=class{constructor(t,e,i){if(this._$cssResult$=!0,i!==On)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o,e=this.t;if(po&&t===void 0){let i=e!==void 0&&e.length===1;i&&(t=xl.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),i&&xl.set(e,t))}return t}toString(){return this.cssText}},ve=r=>new Pr(typeof r=="string"?r:r+"",void 0,On),L=(r,...t)=>{let e=r.length===1?r[0]:t.reduce((i,n,a)=>i+(s=>{if(s._$cssResult$===!0)return s.cssText;if(typeof s=="number")return s;throw Error("Value passed to 'css' function must be a 'css' function result: "+s+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(n)+r[a+1],r[0]);return new Pr(e,r,On)},li=(r,t)=>{if(po)r.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(let e of t){let i=document.createElement("style"),n=si.litNonce;n!==void 0&&i.setAttribute("nonce",n),i.textContent=e.cssText,r.appendChild(i)}},uo=po?r=>r:r=>r instanceof CSSStyleSheet?(t=>{let e="";for(let i of t.cssRules)e+=i.cssText;return ve(e)})(r):r;var{is:Lp,defineProperty:kp,getOwnPropertyDescriptor:Dp,getOwnPropertyNames:Mp,getOwnPropertySymbols:Fp,getPrototypeOf:Bp}=Object,di=globalThis,Sl=di.trustedTypes,Up=Sl?Sl.emptyScript:"",Wp=di.reactiveElementPolyfillSupport,fo=(r,t)=>r,ci={toAttribute(r,t){switch(t){case Boolean:r=r?Up:null;break;case Object:case Array:r=r==null?r:JSON.stringify(r)}return r},fromAttribute(r,t){let e=r;switch(t){case Boolean:e=r!==null;break;case Number:e=r===null?null:Number(r);break;case Object:case Array:try{e=JSON.parse(r)}catch{e=null}}return e}},Cn=(r,t)=>!Lp(r,t),Ol={attribute:!0,type:String,converter:ci,reflect:!1,hasChanged:Cn};Symbol.metadata??=Symbol("metadata"),di.litPropertyMetadata??=new WeakMap;var se=class extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=Ol){if(e.state&&(e.attribute=!1),this._$Ei(),this.elementProperties.set(t,e),!e.noAccessor){let i=Symbol(),n=this.getPropertyDescriptor(t,i,e);n!==void 0&&kp(this.prototype,t,n)}}static getPropertyDescriptor(t,e,i){let{get:n,set:a}=Dp(this.prototype,t)??{get(){return this[e]},set(s){this[e]=s}};return{get(){return n?.call(this)},set(s){let l=n?.call(this);a.call(this,s),this.requestUpdate(t,l,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??Ol}static _$Ei(){if(this.hasOwnProperty(fo("elementProperties")))return;let t=Bp(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(fo("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(fo("properties"))){let e=this.properties,i=[...Mp(e),...Fp(e)];for(let n of i)this.createProperty(n,e[n])}let t=this[Symbol.metadata];if(t!==null){let e=litPropertyMetadata.get(t);if(e!==void 0)for(let[i,n]of e)this.elementProperties.set(i,n)}this._$Eh=new Map;for(let[e,i]of this.elementProperties){let n=this._$Eu(e,i);n!==void 0&&this._$Eh.set(n,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){let e=[];if(Array.isArray(t)){let i=new Set(t.flat(1/0).reverse());for(let n of i)e.unshift(uo(n))}else t!==void 0&&e.push(uo(t));return e}static _$Eu(t,e){let i=e.attribute;return i===!1?void 0:typeof i=="string"?i:typeof t=="string"?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$Eg=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$ES(),this.requestUpdate(),this.constructor.l?.forEach(t=>t(this))}addController(t){(this._$E_??=new Set).add(t),this.renderRoot!==void 0&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$E_?.delete(t)}_$ES(){let t=new Map,e=this.constructor.elementProperties;for(let i of e.keys())this.hasOwnProperty(i)&&(t.set(i,this[i]),delete this[i]);t.size>0&&(this._$Ep=t)}createRenderRoot(){let t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return li(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$E_?.forEach(t=>t.hostConnected?.())}enableUpdating(t){}disconnectedCallback(){this._$E_?.forEach(t=>t.hostDisconnected?.())}attributeChangedCallback(t,e,i){this._$AK(t,i)}_$EO(t,e){let i=this.constructor.elementProperties.get(t),n=this.constructor._$Eu(t,i);if(n!==void 0&&i.reflect===!0){let a=(i.converter?.toAttribute!==void 0?i.converter:ci).toAttribute(e,i.type);this._$Em=t,a==null?this.removeAttribute(n):this.setAttribute(n,a),this._$Em=null}}_$AK(t,e){let i=this.constructor,n=i._$Eh.get(t);if(n!==void 0&&this._$Em!==n){let a=i.getPropertyOptions(n),s=typeof a.converter=="function"?{fromAttribute:a.converter}:a.converter?.fromAttribute!==void 0?a.converter:ci;this._$Em=n,this[n]=s.fromAttribute(e,a.type),this._$Em=null}}requestUpdate(t,e,i,n=!1,a){if(t!==void 0){if(i??=this.constructor.getPropertyOptions(t),!(i.hasChanged??Cn)(n?a:this[t],e))return;this.C(t,e,i)}this.isUpdatePending===!1&&(this._$Eg=this._$EP())}C(t,e,i){this._$AL.has(t)||this._$AL.set(t,e),i.reflect===!0&&this._$Em!==t&&(this._$Ej??=new Set).add(t)}async _$EP(){this.isUpdatePending=!0;try{await this._$Eg}catch(e){Promise.reject(e)}let t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(let[n,a]of this._$Ep)this[n]=a;this._$Ep=void 0}let i=this.constructor.elementProperties;if(i.size>0)for(let[n,a]of i)a.wrapped!==!0||this._$AL.has(n)||this[n]===void 0||this.C(n,this[n],a)}let t=!1,e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),this._$E_?.forEach(i=>i.hostUpdate?.()),this.update(e)):this._$ET()}catch(i){throw t=!1,this._$ET(),i}t&&this._$AE(e)}willUpdate(t){}_$AE(t){this._$E_?.forEach(e=>e.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$ET(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$Eg}shouldUpdate(t){return!0}update(t){this._$Ej&&=this._$Ej.forEach(e=>this._$EO(e,this[e])),this._$ET()}updated(t){}firstUpdated(t){}};se.elementStyles=[],se.shadowRootOptions={mode:"open"},se[fo("elementProperties")]=new Map,se[fo("finalized")]=new Map,Wp?.({ReactiveElement:se}),(di.reactiveElementVersions??=[]).push("2.0.2");var wn=globalThis,pi=wn.trustedTypes,Cl=pi?pi.createPolicy("lit-html",{createHTML:r=>r}):void 0,An="$lit$",xe=`lit$${(Math.random()+"").slice(9)}$`,Rn="?"+xe,Hp=`<${Rn}>`,dr=document,mo=()=>dr.createComment(""),yo=r=>r===null||typeof r!="object"&&typeof r!="function",Nl=Array.isArray,Il=r=>Nl(r)||typeof r?.[Symbol.iterator]=="function",En=`[
5
+ \f\r]`,ho=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,El=/-->/g,wl=/>/g,lr=RegExp(`>|${En}(?:([^\\s"'>=/]+)(${En}*=${En}*(?:[^
6
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),Al=/'/g,Rl=/"/g,Tl=/^(?:script|style|textarea|title)$/i,Pl=r=>(t,...e)=>({_$litType$:r,strings:t,values:e}),$=Pl(1),zp=Pl(2),ke=Symbol.for("lit-noChange"),V=Symbol.for("lit-nothing"),_l=new WeakMap,cr=dr.createTreeWalker(dr,129);function $l(r,t){if(!Array.isArray(r)||!r.hasOwnProperty("raw"))throw Error("invalid template strings array");return Cl!==void 0?Cl.createHTML(t):t}var Ll=(r,t)=>{let e=r.length-1,i=[],n,a=t===2?"<svg>":"",s=ho;for(let l=0;l<e;l++){let d=r[l],p,f,h=-1,y=0;for(;y<d.length&&(s.lastIndex=y,f=s.exec(d),f!==null);)y=s.lastIndex,s===ho?f[1]==="!--"?s=El:f[1]!==void 0?s=wl:f[2]!==void 0?(Tl.test(f[2])&&(n=RegExp("</"+f[2],"g")),s=lr):f[3]!==void 0&&(s=lr):s===lr?f[0]===">"?(s=n??ho,h=-1):f[1]===void 0?h=-2:(h=s.lastIndex-f[2].length,p=f[1],s=f[3]===void 0?lr:f[3]==='"'?Rl:Al):s===Rl||s===Al?s=lr:s===El||s===wl?s=ho:(s=lr,n=void 0);let v=s===lr&&r[l+1].startsWith("/>")?" ":"";a+=s===ho?d+Hp:h>=0?(i.push(p),d.slice(0,h)+An+d.slice(h)+xe+v):d+xe+(h===-2?l:v)}return[$l(r,a+(r[e]||"<?>")+(t===2?"</svg>":"")),i]},go=class r{constructor({strings:t,_$litType$:e},i){let n;this.parts=[];let a=0,s=0,l=t.length-1,d=this.parts,[p,f]=Ll(t,e);if(this.el=r.createElement(p,i),cr.currentNode=this.el.content,e===2){let h=this.el.content.firstChild;h.replaceWith(...h.childNodes)}for(;(n=cr.nextNode())!==null&&d.length<l;){if(n.nodeType===1){if(n.hasAttributes())for(let h of n.getAttributeNames())if(h.endsWith(An)){let y=f[s++],v=n.getAttribute(h).split(xe),S=/([.?@])?(.*)/.exec(y);d.push({type:1,index:a,name:S[2],strings:v,ctor:S[1]==="."?fi:S[1]==="?"?hi:S[1]==="@"?mi:ur}),n.removeAttribute(h)}else h.startsWith(xe)&&(d.push({type:6,index:a}),n.removeAttribute(h));if(Tl.test(n.tagName)){let h=n.textContent.split(xe),y=h.length-1;if(y>0){n.textContent=pi?pi.emptyScript:"";for(let v=0;v<y;v++)n.append(h[v],mo()),cr.nextNode(),d.push({type:2,index:++a});n.append(h[y],mo())}}}else if(n.nodeType===8)if(n.data===Rn)d.push({type:2,index:a});else{let h=-1;for(;(h=n.data.indexOf(xe,h+1))!==-1;)d.push({type:7,index:a}),h+=xe.length-1}a++}}static createElement(t,e){let i=dr.createElement("template");return i.innerHTML=t,i}};function pr(r,t,e=r,i){if(t===ke)return t;let n=i!==void 0?e._$Co?.[i]:e._$Cl,a=yo(t)?void 0:t._$litDirective$;return n?.constructor!==a&&(n?._$AO?.(!1),a===void 0?n=void 0:(n=new a(r),n._$AT(r,e,i)),i!==void 0?(e._$Co??=[])[i]=n:e._$Cl=n),n!==void 0&&(t=pr(r,n._$AS(r,t.values),n,i)),t}var ui=class{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){let{el:{content:e},parts:i}=this._$AD,n=(t?.creationScope??dr).importNode(e,!0);cr.currentNode=n;let a=cr.nextNode(),s=0,l=0,d=i[0];for(;d!==void 0;){if(s===d.index){let p;d.type===2?p=new $r(a,a.nextSibling,this,t):d.type===1?p=new d.ctor(a,d.name,d.strings,this,t):d.type===6&&(p=new yi(a,this,t)),this._$AV.push(p),d=i[++l]}s!==d?.index&&(a=cr.nextNode(),s++)}return cr.currentNode=dr,n}p(t){let e=0;for(let i of this._$AV)i!==void 0&&(i.strings!==void 0?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}},$r=class r{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,i,n){this.type=2,this._$AH=V,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=n,this._$Cv=n?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode,e=this._$AM;return e!==void 0&&t?.nodeType===11&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=pr(this,t,e),yo(t)?t===V||t==null||t===""?(this._$AH!==V&&this._$AR(),this._$AH=V):t!==this._$AH&&t!==ke&&this._(t):t._$litType$!==void 0?this.g(t):t.nodeType!==void 0?this.$(t):Il(t)?this.T(t):this._(t)}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}_(t){this._$AH!==V&&yo(this._$AH)?this._$AA.nextSibling.data=t:this.$(dr.createTextNode(t)),this._$AH=t}g(t){let{values:e,_$litType$:i}=t,n=typeof i=="number"?this._$AC(t):(i.el===void 0&&(i.el=go.createElement($l(i.h,i.h[0]),this.options)),i);if(this._$AH?._$AD===n)this._$AH.p(e);else{let a=new ui(n,this),s=a.u(this.options);a.p(e),this.$(s),this._$AH=a}}_$AC(t){let e=_l.get(t.strings);return e===void 0&&_l.set(t.strings,e=new go(t)),e}T(t){Nl(this._$AH)||(this._$AH=[],this._$AR());let e=this._$AH,i,n=0;for(let a of t)n===e.length?e.push(i=new r(this.k(mo()),this.k(mo()),this,this.options)):i=e[n],i._$AI(a),n++;n<e.length&&(this._$AR(i&&i._$AB.nextSibling,n),e.length=n)}_$AR(t=this._$AA.nextSibling,e){for(this._$AP?.(!1,!0,e);t&&t!==this._$AB;){let i=t.nextSibling;t.remove(),t=i}}setConnected(t){this._$AM===void 0&&(this._$Cv=t,this._$AP?.(t))}},ur=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,i,n,a){this.type=1,this._$AH=V,this._$AN=void 0,this.element=t,this.name=e,this._$AM=n,this.options=a,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=V}_$AI(t,e=this,i,n){let a=this.strings,s=!1;if(a===void 0)t=pr(this,t,e,0),s=!yo(t)||t!==this._$AH&&t!==ke,s&&(this._$AH=t);else{let l=t,d,p;for(t=a[0],d=0;d<a.length-1;d++)p=pr(this,l[i+d],e,d),p===ke&&(p=this._$AH[d]),s||=!yo(p)||p!==this._$AH[d],p===V?t=V:t!==V&&(t+=(p??"")+a[d+1]),this._$AH[d]=p}s&&!n&&this.O(t)}O(t){t===V?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},fi=class extends ur{constructor(){super(...arguments),this.type=3}O(t){this.element[this.name]=t===V?void 0:t}},hi=class extends ur{constructor(){super(...arguments),this.type=4}O(t){this.element.toggleAttribute(this.name,!!t&&t!==V)}},mi=class extends ur{constructor(t,e,i,n,a){super(t,e,i,n,a),this.type=5}_$AI(t,e=this){if((t=pr(this,t,e,0)??V)===ke)return;let i=this._$AH,n=t===V&&i!==V||t.capture!==i.capture||t.once!==i.once||t.passive!==i.passive,a=t!==V&&(i===V||n);n&&this.element.removeEventListener(this.name,this,i),a&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}},yi=class{constructor(t,e,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){pr(this,t)}},Vp={j:An,P:xe,A:Rn,C:1,M:Ll,L:ui,R:Il,V:pr,D:$r,I:ur,H:hi,N:mi,U:fi,B:yi},jp=wn.litHtmlPolyfillSupport;jp?.(go,$r),(wn.litHtmlVersions??=[]).push("3.1.0");var _n=(r,t,e)=>{let i=e?.renderBefore??t,n=i._$litPart$;if(n===void 0){let a=e?.renderBefore??null;i._$litPart$=n=new $r(t.insertBefore(mo(),a),a,void 0,e??{})}return n._$AI(r),n};var Se=class extends se{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){let t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){let e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=_n(e,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return ke}};Se._$litElement$=!0,Se.finalized=!0,globalThis.litElementHydrateSupport?.({LitElement:Se});var Gp=globalThis.litElementPolyfillSupport;Gp?.({LitElement:Se});var Kp={_$AK:(r,t,e)=>{r._$AK(t,e)},_$AL:r=>r._$AL};(globalThis.litElementVersions??=[]).push("4.0.2");var Ph=!1;var Tn={};rt(Tn,{customElement:()=>Zp,eventOptions:()=>Oe,property:()=>g,query:()=>Q,queryAll:()=>Xp,queryAssignedElements:()=>In,queryAssignedNodes:()=>bo,queryAsync:()=>Jp,standardProperty:()=>kl,state:()=>U});var Zp=r=>(t,e)=>{e!==void 0?e.addInitializer(()=>{customElements.define(r,t)}):customElements.define(r,t)};var qp={attribute:!0,type:String,converter:no,reflect:!1,hasChanged:Qo},kl=(r=qp,t,e)=>{let{kind:i,metadata:n}=e,a=globalThis.litPropertyMetadata.get(n);if(a===void 0&&globalThis.litPropertyMetadata.set(n,a=new Map),a.set(e.name,r),i==="accessor"){let{name:s}=e;return{set(l){let d=t.get.call(this);t.set.call(this,l),this.requestUpdate(s,d,r)},init(l){return l!==void 0&&this.C(s,void 0,r),l}}}if(i==="setter"){let{name:s}=e;return function(l){let d=this[s];t.call(this,l),this.requestUpdate(s,d,r)}}throw Error("Unsupported decorator location: "+i)};function g(r){return(t,e)=>typeof e=="object"?kl(r,t,e):((i,n,a)=>{let s=n.hasOwnProperty(a);return n.constructor.createProperty(a,s?{...i,wrapped:!0}:i),s?Object.getOwnPropertyDescriptor(n,a):void 0})(r,t,e)}function U(r){return g({...r,state:!0,attribute:!1})}function Oe(r){return(t,e)=>{let i=typeof t=="function"?t:t[e];Object.assign(i,r)}}var Jt=(r,t,e)=>(e.configurable=!0,e.enumerable=!0,Reflect.decorate&&typeof t!="object"&&Object.defineProperty(r,t,e),e);function Q(r,t){return(e,i,n)=>{let a=s=>s.renderRoot?.querySelector(r)??null;if(t){let{get:s,set:l}=typeof i=="object"?e:n??(()=>{let d=Symbol();return{get(){return this[d]},set(p){this[d]=p}}})();return Jt(e,i,{get(){let d=s.call(this);return d===void 0&&(d=a(this),(d!==null||this.hasUpdated)&&l.call(this,d)),d}})}return Jt(e,i,{get(){return a(this)}})}}var Yp;function Xp(r){return(t,e)=>Jt(t,e,{get(){return(this.renderRoot??(Yp??=document.createDocumentFragment())).querySelectorAll(r)}})}function Jp(r){return(t,e)=>Jt(t,e,{async get(){return await this.updateComplete,this.renderRoot?.querySelector(r)??null}})}function In(r){return(t,e)=>{let{slot:i,selector:n}=r??{},a="slot"+(i?`[name=${i}]`:":not([name])");return Jt(t,e,{get(){let s=this.renderRoot?.querySelector(a),l=s?.assignedElements(r)??[];return n===void 0?l:l.filter(d=>d.matches(n))}})}}function bo(r){return(t,e)=>{let{slot:i}=r??{},n="slot"+(i?`[name=${i}]`:":not([name])");return Jt(t,e,{get(){return this.renderRoot?.querySelector(n)?.assignedNodes(r)??[]}})}}var $n={};rt($n,{repeat:()=>Pn});var De={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},Me=r=>(...t)=>({_$litDirective$:r,values:t}),le=class{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,i){this._$Ct=t,this._$AM=e,this._$Ci=i}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}};var{D:Qp}=vl;var Dl=()=>document.createComment(""),Lr=(r,t,e)=>{let i=r._$AA.parentNode,n=t===void 0?r._$AB:t._$AA;if(e===void 0){let a=i.insertBefore(Dl(),n),s=i.insertBefore(Dl(),n);e=new Qp(a,s,r,r.options)}else{let a=e._$AB.nextSibling,s=e._$AM,l=s!==r;if(l){let d;e._$AQ?.(r),e._$AM=r,e._$AP!==void 0&&(d=r._$AU)!==s._$AU&&e._$AP(d)}if(a!==n||l){let d=e._$AA;for(;d!==a;){let p=d.nextSibling;i.insertBefore(d,n),d=p}}}return e},Fe=(r,t,e=r)=>(r._$AI(t,e),r),tu={},Ml=(r,t=tu)=>r._$AH=t,Fl=r=>r._$AH,gi=r=>{r._$AP?.(!1,!0);let t=r._$AA,e=r._$AB.nextSibling;for(;t!==e;){let i=t.nextSibling;t.remove(),t=i}};var Bl=(r,t,e)=>{let i=new Map;for(let n=t;n<=e;n++)i.set(r[n],n);return i},Pn=Me(class extends le{constructor(r){if(super(r),r.type!==De.CHILD)throw Error("repeat() can only be used in text expressions")}ht(r,t,e){let i;e===void 0?e=t:t!==void 0&&(i=t);let n=[],a=[],s=0;for(let l of r)n[s]=i?i(l,s):s,a[s]=e(l,s),s++;return{values:a,keys:n}}render(r,t,e){return this.ht(r,t,e).values}update(r,[t,e,i]){let n=Fl(r),{values:a,keys:s}=this.ht(t,e,i);if(!Array.isArray(n))return this.dt=s,a;let l=this.dt??=[],d=[],p,f,h=0,y=n.length-1,v=0,S=a.length-1;for(;h<=y&&v<=S;)if(n[h]===null)h++;else if(n[y]===null)y--;else if(l[h]===s[v])d[v]=Fe(n[h],a[v]),h++,v++;else if(l[y]===s[S])d[S]=Fe(n[y],a[S]),y--,S--;else if(l[h]===s[S])d[S]=Fe(n[h],a[S]),Lr(r,d[S+1],n[h]),h++,S--;else if(l[y]===s[v])d[v]=Fe(n[y],a[v]),Lr(r,n[h],n[y]),y--,v++;else if(p===void 0&&(p=Bl(s,v,S),f=Bl(l,h,y)),p.has(l[h]))if(p.has(l[y])){let E=f.get(s[v]),N=E!==void 0?n[E]:null;if(N===null){let T=Lr(r,n[h]);Fe(T,a[v]),d[v]=T}else d[v]=Fe(N,a[v]),Lr(r,n[h],N),n[E]=null;v++}else gi(n[y]),y--;else gi(n[h]),h++;for(;v<=S;){let E=Lr(r,d[S+1]);Fe(E,a[v]),d[v++]=E}for(;h<=y;){let E=n[h++];E!==null&&gi(E)}return this.dt=s,Ml(r,d),jt}});var Ln={};rt(Ln,{classMap:()=>Tt});var Tt=Me(class extends le{constructor(r){if(super(r),r.type!==De.ATTRIBUTE||r.name!=="class"||r.strings?.length>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(r){return" "+Object.keys(r).filter(t=>r[t]).join(" ")+" "}update(r,[t]){if(this.it===void 0){this.it=new Set,r.strings!==void 0&&(this.st=new Set(r.strings.join(" ").split(/\s/).filter(i=>i!=="")));for(let i in t)t[i]&&!this.st?.has(i)&&this.it.add(i);return this.render(t)}let e=r.element.classList;for(let i of this.it)i in t||(e.remove(i),this.it.delete(i));for(let i in t){let n=!!t[i];n===this.it.has(i)||this.st?.has(i)||(n?(e.add(i),this.it.add(i)):(e.remove(i),this.it.delete(i)))}return jt}});var kn={};rt(kn,{styleMap:()=>ru});var Ul="important",eu=" !"+Ul,ru=Me(class extends le{constructor(r){if(super(r),r.type!==De.ATTRIBUTE||r.name!=="style"||r.strings?.length>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(r){return Object.keys(r).reduce((t,e)=>{let i=r[e];return i==null?t:t+`${e=e.includes("-")?e:e.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${i};`},"")}update(r,[t]){let{style:e}=r.element;if(this.ut===void 0)return this.ut=new Set(Object.keys(t)),this.render(t);for(let i of this.ut)t[i]==null&&(this.ut.delete(i),i.includes("-")?e.removeProperty(i):e[i]=null);for(let i in t){let n=t[i];if(n!=null){this.ut.add(i);let a=typeof n=="string"&&n.endsWith(eu);i.includes("-")||a?e.setProperty(i,a?n.slice(0,-11):n,a?Ul:""):e[i]=n}}return jt}});var Mn={};rt(Mn,{UnsafeHTMLDirective:()=>kr,unsafeHTML:()=>Dn});var kr=class extends le{constructor(t){if(super(t),this.et=ht,t.type!==De.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===ht||t==null)return this.vt=void 0,this.et=t;if(t===jt)return t;if(typeof t!="string")throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.et)return this.vt;this.et=t;let e=[t];return e.raw=e,this.vt={_$litType$:this.constructor.resultType,strings:e,values:[]}}};kr.directiveName="unsafeHTML",kr.resultType=1;var Dn=Me(kr);var zn={};rt(zn,{CacheRegistry:()=>ce,ClearCacheEvent:()=>vo});var Bn={};rt(Bn,{CancelablePromise:()=>Dr,CanceledPromiseError:()=>fr,cancelable:()=>Fn});var fr=class extends Error{constructor(t,e,i){super(t),this.canceledPromiseResult=e,this.canceledPromiseError=i}},Dr=class extends Promise{constructor(t){super((e,i)=>t(n=>{this.isCanceled?i(new fr("Promise has been canceled",n)):e(n)},n=>{this.isCanceled?i(new fr("Promise has been canceled",void 0,n)):i(n)})),this.isCanceled=!1}cancel(){this.isCanceled=!0}},Fn=r=>new Dr((t,e)=>r.then(t).catch(e));var Hn={};rt(Hn,{FtNotificationEvent:()=>Mt,PostResizeEvent:()=>Wn,PreResizeEvent:()=>Un,WithEventBus:()=>hr,withEventBus:()=>Wl});var Mt=class extends CustomEvent{constructor(t){super("ft-notification",{bubbles:!0,composed:!0,detail:t})}},Un=class extends Event{constructor(){super("ft-pre-resize",{composed:!0,bubbles:!0})}},Wn=class extends Event{constructor(){super("ft-post-resize",{composed:!0,bubbles:!0})}};function Wl(r,t){return class extends r{constructor(){super(...arguments),this.eventBus=t??document.createElement("span")}addEventListener(e,i,n){this.eventBus.addEventListener(e,i,n)}dispatchEvent(e){return this.eventBus.dispatchEvent(e)}removeEventListener(e,i,n){this.eventBus.removeEventListener(e,i,n)}}}var hr=class extends Wl(Object){};var vo=class extends CustomEvent{constructor(t){super("clear-cache",{detail:{clearedKeys:t}})}},ce=class extends hr{constructor(){super(...arguments),this.loaders={},this.content={},this.clearTimeouts={},this.finalContent=new Set}register(t,e){this.loaders[t]=e,this.finalContent.delete(t)}registerFinal(t,e){this.loaders[t]=e,this.finalContent.add(t)}clearAll(t=!0){let e=[];for(let i in this.content)this.clear(i,!1)!=null&&e.push(i);t&&e.length>0&&this.dispatchEvent(new vo(e))}clear(t,e=!0){if(!this.finalContent.has(t))return this.forceClear(t),e&&this.dispatchEvent(new vo([t])),t}forceClear(t){this.clearClearTimeout(t),this.content[t]instanceof Dr&&this.content[t].cancel(),delete this.content[t]}clearClearTimeout(t){this.clearTimeouts[t]!=null&&(window.clearTimeout(this.clearTimeouts[t]),delete this.clearTimeouts[t])}set(t,e){this.forceClear(t),this.register(t,async()=>e),this.content[t]=e}setFinal(t,e){this.forceClear(t),this.registerFinal(t,async()=>e),this.content[t]=e}async get(t,e,i){if(this.content[t]===void 0){if(e=e??this.loaders[t],e==null)throw new Error("Unknown cache key "+t);let n=Fn(e());return this.content[t]=n,n.then(a=>(this.content[t]=a,i!=null&&(this.clearClearTimeout(t),this.clearTimeouts[t]=window.setTimeout(()=>this.clear(t),i)),a))}if(this.content[t]instanceof Error)throw this.content[t];return this.content[t]}isResolvedValue(t){return t!=null&&!(t instanceof Promise)&&!(t instanceof Error)}getNow(t){if(this.isResolvedValue(this.content[t]))return this.content[t]}has(t){return this.content[t]!=null}resolvedKeys(){return Object.keys(this.content).filter(t=>this.isResolvedValue(this.content[t]))}resolvedValues(){return Object.values(this.content).filter(t=>this.isResolvedValue(t))}keys(){return Object.keys(this.content)}values(){return Object.values(this.content)}};var Vn={};rt(Vn,{ClusteringHelper:()=>xo});var xo=class r{constructor(t,e,i,n){this.allResults=t,this.selectedResult=e,this.clusteringMetadata=i,this.metadataDescriptors=n}static extractResultMetadata(t,e){var i,n;let a=((n=(i=t?.map)!==null&&i!==void 0?i:t?.document)!==null&&n!==void 0?n:t?.topic).metadata;return e==null?r.flattenMetadata(a):r.flattenMetadata(a.find(s=>s.key===e))}static flattenMetadata(t){if(Array.isArray(t))return t.map(i=>r.flattenMetadata(i)).filter(i=>i!=null);let e=t?.hierarchicalValues!=null&&t.hierarchicalValues.length>0;if(!(t==null||t.values.length==0&&!e))if(e){let i=[],n=[];return t.hierarchicalValues.forEach(a=>{i.push(a.join(" > ")),a.length>2?n.push(`... > ${a[a.length-1]}`):n.push(a.join(" > "))}),{key:t.key,label:t.label,value:i.join(", "),displayValue:n.join(", ")}}else{let i=t.values.join(", ");return{key:t.key,label:t.label,value:i,displayValue:i}}}computeClustersItemsForMetadata(t,e,i="No value"){var n,a;let s=r.extractResultMetadata(this.selectedResult,t),l=(n=s?.label)!==null&&n!==void 0?n:(a=this.getMetadataDescriptor(t))===null||a===void 0?void 0:a.label;return this.allResults.map(p=>r.extractResultMetadata(p,t)).map(p=>p??{key:t,label:l,value:void 0,displayValue:i}).filter(p=>p.value!=s?.value).filter((p,f,h)=>h.findIndex(y=>y.value===p.value)===f).map(p=>({result:this.findBestResultForMetadataValue(t,p.value),metadata:p})).sort((p,f)=>this.compareMetadata(p.metadata.value,f.metadata.value,t,e))}compareMetadata(t,e,i,n){if(t==null)return-1;if(e==null)return 1;let a=this.getMetadataDescriptor(i),s=a?.sortRule||"NONE",l=a?.reverseSort||!1;if(s=="ALPHABET"||s=="VERSION"){let d=t.localeCompare(e,n,{numeric:!0});return l?d*-1:d}return 0}getMetadataDescriptor(t){return this.metadataDescriptors.find(e=>t==e.key)}findBestResultForMetadataValue(t,e){let i=this.allResults.filter(d=>{var p;return((p=r.extractResultMetadata(d,t))===null||p===void 0?void 0:p.value)==e}),a=[...r.extractResultMetadata(this.selectedResult).filter(d=>this.clusteringMetadata.has(d.key)).filter(d=>d.key!==t)],s,l=-1;for(let d of i){let p=this.countMatchingMetadata(d,a);if(p>l&&(l=p,s=d,p===a.length))break}return s}countMatchingMetadata(t,e){return r.extractResultMetadata(t).filter(i=>e.some(n=>n.key===i.key&&n.value===i.value)).length}};var jn={};rt(jn,{Debouncer:()=>st});var st=class{constructor(t=0){this.timeout=t,this.callbacks=[]}run(t,e){return this.callbacks=[t],this.debounce(e)}queue(t,e){return this.callbacks.push(t),this.debounce(e)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(t){return this.promise==null&&(this.promise=new Promise((e,i)=>{this.resolvePromise=e,this.rejectPromise=i})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),t??this.timeout),this.promise}async runCallbacks(){var t,e;let i=[...this.callbacks];this.callbacks=[];let n=(t=this.rejectPromise)!==null&&t!==void 0?t:()=>null,a=(e=this.resolvePromise)!==null&&e!==void 0?e:()=>null;this.clearPromise();for(let s of i)try{await s()}catch(l){n(l);return}a(!0)}clearTimeout(){this._debounce!=null&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}};var Zn={};rt(Zn,{customElement:()=>Z,isNumber:()=>zl,jsonProperty:()=>de,optionalNumberProperty:()=>su});var Kn={};rt(Kn,{dateReviver:()=>ou,deepEqual:()=>Qt,delay:()=>bi,eventPathContainsMatchingElement:()=>nu,flatDeep:()=>Hl,hasChanged:()=>Oo,last:()=>au,minmax:()=>Co,parseDate:()=>vi,unslotText:()=>xi,waitFor:()=>So,waitUntil:()=>Gn});var bi=r=>new Promise(t=>setTimeout(t,r));async function Gn(r,t=10,e=2e4){await So(async()=>await r()||void 0,t,e)}async function So(r,t=10,e=2e4){let i=await r(),n,a;for(n=a=performance.now();i==null&&(!e||a-n<e);)await bi(t),i=await r(),a=performance.now();if(i==null)throw new Error("Timeout exceeded");return i}function Hl(r,t){return r.flatMap(e=>[e,...Hl(t(e),t)])}function ou(...r){return function(t,e){return r.includes(t)?vi(e):e}}function vi(r){return r.match(/^\d{4}-\d{2}-\d{2}$/)&&(r=r.replace(/-/g,"/")),r=r.replace(" ","T").replace(/^(.+)(\+\d{2})(\d{2})$/,(t,e,i,n)=>e+i+":"+n),new Date(r)}function iu(r,t){if(r===t)return!0;if(r&&t&&typeof r=="object"&&typeof t=="object"){if(r.constructor!==t.constructor)return!1;var e,i,n;if(Array.isArray(r)){if(e=r.length,e!=t.length)return!1;for(i=e;i--!==0;)if(!Qt(r[i],t[i]))return!1;return!0}if(r instanceof Map&&t instanceof Map){if(r.size!==t.size)return!1;for(i of r.entries())if(!t.has(i[0]))return!1;for(i of r.entries())if(!Qt(i[1],t.get(i[0])))return!1;return!0}if(r instanceof Set&&t instanceof Set){if(r.size!==t.size)return!1;for(i of r.entries())if(!t.has(i[0]))return!1;return!0}if(r.constructor===RegExp)return r.source===t.source&&r.flags===t.flags;if(r.valueOf!==Object.prototype.valueOf)return r.valueOf()===t.valueOf();if(n=Object.keys(r),e=n.length,e!==Object.keys(t).length)return!1;for(i=e;i--!==0;)if(!Object.prototype.hasOwnProperty.call(t,n[i]))return!1;for(i=e;i--!==0;){var a=n[i];if(!Qt(r[a],t[a]))return!1}return!0}return r!==r&&t!==t}function Qt(r,t){try{return iu(r,t)}catch{return!1}}function Oo(r,t){return!Qt(r,t)}function nu(r,t,e=window.document.body){if(t.length>0){let i=r.composedPath();for(let n of i){if(n===e)return!1;if(n.matches&&t.some(a=>n.matches(a)))return!0}}return!1}function Co(r,t,e){return Math.min(Math.max(r,t),e)}function au(r){return r[r.length-1]}function xi(r){return r instanceof HTMLSlotElement?r.assignedNodes().map(t=>xi(t)).join(""):r?.textContent||""}var Z=r=>t=>{window.customElements.get(r)||window.customElements.define(r,t)};function de(r,t){let e=()=>JSON.parse(JSON.stringify(r));return g({type:Object,converter:{fromAttribute:i=>{if(i==null)return e();try{return JSON.parse(i)}catch{return e()}},toAttribute:i=>JSON.stringify(i)},hasChanged:Oo,...t??{}})}function su(r){return g({type:Object,converter:{fromAttribute:t=>{if(t!=null)return zl(t)?+t:void 0},toAttribute:t=>t==null?void 0:""+t},...r??{}})}function zl(r){return!isNaN(parseFloat(r))}var Ca={};rt(Ca,{designSystemVariables:()=>_});var Oa={};rt(Oa,{DesignSystemFamily:()=>mr,DesignSystemSize:()=>Ee,FtCssVariableFactory:()=>o,badge:()=>fu,banner:()=>uu,button:()=>b,chart:()=>Nu,checkbox:()=>Pu,chip:()=>du,chipChoice:()=>cu,collapsible:()=>Ru,comboboxMultiSelect:()=>wu,comboboxSingleSelect:()=>Eu,drawer:()=>vu,floatingMenu:()=>Cu,foundation:()=>c,link:()=>pu,modal:()=>bu,notice:()=>Tu,notification:()=>ku,pageDesigner:()=>Iu,pageFooter:()=>yu,pageHeader:()=>mu,pageLayout:()=>gu,popover:()=>Au,radio:()=>Lu,resolveFamilyClass:()=>xa,resolveSizeClass:()=>Sa,semantic:()=>u,setVariable:()=>x,switch_:()=>_u,tabs:()=>xu,textArea:()=>Ou,textInput:()=>Su,titleBreadcrumb:()=>hu,toggle:()=>$u,tooltip:()=>Du,typographies:()=>Eo,typographyBody1Medium:()=>ta,typographyBody1Regular:()=>Qn,typographyBody1Semibold:()=>ea,typographyBody2Medium:()=>oa,typographyBody2MediumUnderline:()=>Vl,typographyBody2Regular:()=>ra,typographyBody2Semibold:()=>ia,typographyCaption1Bold:()=>fa,typographyCaption1Medium:()=>pa,typographyCaption1Semibold:()=>ua,typographyCaption2Bold:()=>ya,typographyCaption2Medium:()=>ha,typographyCaption2Semibold:()=>ma,typographyCaption3Bold:()=>va,typographyCaption3Medium:()=>ga,typographyCaption3Semibold:()=>ba,typographyDisplay:()=>qn,typographyLabel1Bold:()=>sa,typographyLabel1Medium:()=>na,typographyLabel1Semibold:()=>aa,typographyLabel2Bold:()=>da,typographyLabel2Medium:()=>la,typographyLabel2Semibold:()=>ca,typographyTitle1:()=>Yn,typographyTitle2:()=>Xn,typographyTitle3:()=>Jn,typographyVariants:()=>lu});var Ce=r=>typeof r=="string"?ve(r):r,o=class{static create(t,e,i,n){let a=l=>Ce(l??n),s=L`var(${Ce(t)}, ${a(n)})`;return s.name=t,s.description=e,s.category=i,s.defaultValue=n,s.defaultCssValue=a,s.get=l=>L`var(${Ce(t)}, ${a(l)})`,s.breadcrumb=()=>[],s.lastResortDefaultValue=()=>n,s}static extend(t,e,i,n){let a=l=>i.get(l??n),s=L`var(${Ce(t)}, ${a(n)})`;return s.name=t,s.description=e,s.category=i.category,s.fallbackVariable=i,s.defaultValue=n,s.defaultCssValue=a,s.get=l=>L`var(${Ce(t)}, ${a(l)})`,s.breadcrumb=()=>[i.name,...i.breadcrumb()],s.lastResortDefaultValue=()=>n??i.lastResortDefaultValue(),s}static external(t,e){let i=a=>t.fallbackVariable?t.fallbackVariable.get(a??t.defaultValue):Ce(a??t.lastResortDefaultValue()),n=L`var(${Ce(t.name)}, ${i(t.defaultValue)})`;return n.name=t.name,n.category=t.category,n.fallbackVariable=t.fallbackVariable,n.defaultValue=t.defaultValue,n.context=e,n.defaultCssValue=i,n.get=a=>L`var(${Ce(t.name)}, ${i(a)})`,n.breadcrumb=()=>t.fallbackVariable?[t.fallbackVariable.name,...t.fallbackVariable.breadcrumb()]:[],n.lastResortDefaultValue=()=>t.lastResortDefaultValue(),n}};function x(r,t){return Ce(`${r.name}: ${t}`)}var c={colorWhite:o.create("--ft-color-white","","COLOR","#ffffff"),colorGray0:o.create("--ft-color-gray-0","","COLOR","#71718e"),colorGray10:o.create("--ft-color-gray-10","","COLOR","#fbfbfc"),colorGray20:o.create("--ft-color-gray-20","","COLOR","#f2f2f5"),colorGray30:o.create("--ft-color-gray-30","","COLOR","#e9e9ed"),colorGray40:o.create("--ft-color-gray-40","","COLOR","#e0e0e6"),colorGray50:o.create("--ft-color-gray-50","","COLOR","#cdcdd7"),colorGray60:o.create("--ft-color-gray-60","","COLOR","#bbbbc9"),colorGray70:o.create("--ft-color-gray-70","","COLOR","#a8a8ba"),colorGray80:o.create("--ft-color-gray-80","","COLOR","#9696ab"),colorGray90:o.create("--ft-color-gray-90","","COLOR","#83839d"),colorGray100:o.create("--ft-color-gray-100","","COLOR","#62627c"),colorGray200:o.create("--ft-color-gray-200","","COLOR","#545469"),colorGray300:o.create("--ft-color-gray-300","","COLOR","#454557"),colorGray400:o.create("--ft-color-gray-400","","COLOR","#363644"),colorGray500:o.create("--ft-color-gray-500","","COLOR","#282832"),colorGray600:o.create("--ft-color-gray-600","","COLOR","#19191f"),colorGray700:o.create("--ft-color-gray-700","","COLOR","#0a0a0d"),colorBrand0:o.create("--ft-color-brand-0","","COLOR","#9d207b"),colorBrand10:o.create("--ft-color-brand-10","","COLOR","#f7edf4"),colorBrand20:o.create("--ft-color-brand-20","","COLOR","#ebcfe4"),colorBrand30:o.create("--ft-color-brand-30","","COLOR","#dfb2d3"),colorBrand40:o.create("--ft-color-brand-40","","COLOR","#d395c2"),colorBrand50:o.create("--ft-color-brand-50","","COLOR","#c778b1"),colorBrand60:o.create("--ft-color-brand-60","","COLOR","#ba5ba1"),colorBrand70:o.create("--ft-color-brand-70","","COLOR","#ae3e90"),colorBrand100:o.create("--ft-color-brand-100","","COLOR","#8d1d6e"),colorBrand200:o.create("--ft-color-brand-200","","COLOR","#78185e"),colorBrand300:o.create("--ft-color-brand-300","","COLOR","#62144d"),colorBrand400:o.create("--ft-color-brand-400","","COLOR","#4d103c"),colorBrand500:o.create("--ft-color-brand-500","","COLOR","#380b2c"),colorBrand600:o.create("--ft-color-brand-600","","COLOR","#23071b"),colorBrand700:o.create("--ft-color-brand-700","","COLOR","#0d030b"),colorCyan0:o.create("--ft-color-cyan-0","","COLOR","#0e98b4"),colorCyan10:o.create("--ft-color-cyan-10","","COLOR","#ebf6f9"),colorCyan20:o.create("--ft-color-cyan-20","","COLOR","#cbe9ef"),colorCyan30:o.create("--ft-color-cyan-30","","COLOR","#acdbe5"),colorCyan40:o.create("--ft-color-cyan-40","","COLOR","#8ccedb"),colorCyan50:o.create("--ft-color-cyan-50","","COLOR","#6dc0d1"),colorCyan60:o.create("--ft-color-cyan-60","","COLOR","#4db3c8"),colorCyan70:o.create("--ft-color-cyan-70","","COLOR","#2ea5be"),colorCyan100:o.create("--ft-color-cyan-100","","COLOR","#0c849c"),colorCyan200:o.create("--ft-color-cyan-200","","COLOR","#0a7085"),colorCyan300:o.create("--ft-color-cyan-300","","COLOR","#085c6d"),colorCyan400:o.create("--ft-color-cyan-400","","COLOR","#074856"),colorCyan500:o.create("--ft-color-cyan-500","","COLOR","#05343e"),colorCyan600:o.create("--ft-color-cyan-600","","COLOR","#032127"),colorCyan700:o.create("--ft-color-cyan-700","","COLOR","#010d0f"),colorGreen0:o.create("--ft-color-green-0","","COLOR","#21a274"),colorGreen10:o.create("--ft-color-green-10","","COLOR","#edf7f3"),colorGreen20:o.create("--ft-color-green-20","","COLOR","#cfebe1"),colorGreen30:o.create("--ft-color-green-30","","COLOR","#b2dfcf"),colorGreen40:o.create("--ft-color-green-40","","COLOR","#95d3bd"),colorGreen50:o.create("--ft-color-green-50","","COLOR","#78c7ab"),colorGreen60:o.create("--ft-color-green-60","","COLOR","#5bba98"),colorGreen70:o.create("--ft-color-green-70","","COLOR","#3eae86"),colorGreen100:o.create("--ft-color-green-100","","COLOR","#1d8d65"),colorGreen200:o.create("--ft-color-green-200","","COLOR","#187856"),colorGreen300:o.create("--ft-color-green-300","","COLOR","#146246"),colorGreen400:o.create("--ft-color-green-400","","COLOR","#104d37"),colorGreen500:o.create("--ft-color-green-500","","COLOR","#0b3828"),colorGreen600:o.create("--ft-color-green-600","","COLOR","#072319"),colorGreen700:o.create("--ft-color-green-700","","COLOR","#030d0a"),colorOrange0:o.create("--ft-color-orange-0","","COLOR","#F2700D"),colorOrange10:o.create("--ft-color-orange-10","","COLOR","#FFF7EB"),colorOrange20:o.create("--ft-color-orange-20","","COLOR","#FFEDD6"),colorOrange30:o.create("--ft-color-orange-30","","COLOR","#FFDDB2"),colorOrange40:o.create("--ft-color-orange-40","","COLOR","#FECB90"),colorOrange50:o.create("--ft-color-orange-50","","COLOR","#FCB76E"),colorOrange60:o.create("--ft-color-orange-60","","COLOR","#F9A34D"),colorOrange70:o.create("--ft-color-orange-70","","COLOR","#F68B2C"),colorOrange100:o.create("--ft-color-orange-100","","COLOR","#D35909"),colorOrange200:o.create("--ft-color-orange-200","","COLOR","#B74706"),colorOrange300:o.create("--ft-color-orange-300","","COLOR","#913503"),colorOrange400:o.create("--ft-color-orange-400","","COLOR","#6F2601"),colorOrange500:o.create("--ft-color-orange-500","","COLOR","#4D1800"),colorOrange600:o.create("--ft-color-orange-600","","COLOR","#330F00"),colorOrange700:o.create("--ft-color-orange-700","","COLOR","#140600"),colorRed0:o.create("--ft-color-red-0","","COLOR","#b40e2c"),colorRed10:o.create("--ft-color-red-10","","COLOR","#f9ebed"),colorRed20:o.create("--ft-color-red-20","","COLOR","#efcbd2"),colorRed30:o.create("--ft-color-red-30","","COLOR","#e5acb6"),colorRed40:o.create("--ft-color-red-40","","COLOR","#db8c9b"),colorRed50:o.create("--ft-color-red-50","","COLOR","#d16d7f"),colorRed60:o.create("--ft-color-red-60","","COLOR","#c84d63"),colorRed70:o.create("--ft-color-red-70","","COLOR","#be2e48"),colorRed100:o.create("--ft-color-red-100","","COLOR","#9c0c26"),colorRed200:o.create("--ft-color-red-200","","COLOR","#850a20"),colorRed300:o.create("--ft-color-red-300","","COLOR","#6d081b"),colorRed400:o.create("--ft-color-red-400","","COLOR","#560715"),colorRed500:o.create("--ft-color-red-500","","COLOR","#3e050f"),colorRed600:o.create("--ft-color-red-600","","COLOR","#270309"),colorRed700:o.create("--ft-color-red-700","","COLOR","#0f0104"),colorYellow0:o.create("--ft-color-yellow-0","","COLOR","#E4C00C"),colorYellow10:o.create("--ft-color-yellow-10","","COLOR","#fefae9"),colorYellow20:o.create("--ft-color-yellow-20","","COLOR","#fcf4ca"),colorYellow30:o.create("--ft-color-yellow-30","","COLOR","#faedaa"),colorYellow40:o.create("--ft-color-yellow-40","","COLOR","#f9e78b"),colorYellow50:o.create("--ft-color-yellow-50","","COLOR","#f7e06b"),colorYellow60:o.create("--ft-color-yellow-60","","COLOR","#F4D63E"),colorYellow70:o.create("--ft-color-yellow-70","","COLOR","#F3CE16"),colorYellow100:o.create("--ft-color-yellow-100","","COLOR","#d3b10b"),colorYellow200:o.create("--ft-color-yellow-200","","COLOR","#b3970a"),colorYellow300:o.create("--ft-color-yellow-300","","COLOR","#947c08"),colorYellow400:o.create("--ft-color-yellow-400","","COLOR","#746206"),colorYellow500:o.create("--ft-color-yellow-500","","COLOR","#554705"),colorYellow600:o.create("--ft-color-yellow-600","","COLOR","#352d03"),colorYellow700:o.create("--ft-color-yellow-700","","COLOR","#161201"),colorUltramarine0:o.create("--ft-color-ultramarine-0","","COLOR","#3C19E5"),colorUltramarine10:o.create("--ft-color-ultramarine-10","","COLOR","#EDEAFD"),colorUltramarine20:o.create("--ft-color-ultramarine-20","","COLOR","#D4CCF9"),colorUltramarine30:o.create("--ft-color-ultramarine-30","","COLOR","#BBAFF6"),colorUltramarine40:o.create("--ft-color-ultramarine-40","","COLOR","#A191F3"),colorUltramarine50:o.create("--ft-color-ultramarine-50","","COLOR","#8873EF"),colorUltramarine60:o.create("--ft-color-ultramarine-60","","COLOR","#6F55EC"),colorUltramarine70:o.create("--ft-color-ultramarine-70","","COLOR","#5537E8"),colorUltramarine100:o.create("--ft-color-ultramarine-100","","COLOR","#3416C7"),colorUltramarine200:o.create("--ft-color-ultramarine-200","","COLOR","#2C13A9"),colorUltramarine300:o.create("--ft-color-ultramarine-300","","COLOR","#250F8C"),colorUltramarine400:o.create("--ft-color-ultramarine-400","","COLOR","#1D0C6E"),colorUltramarine500:o.create("--ft-color-ultramarine-500","","COLOR","#150950"),colorUltramarine600:o.create("--ft-color-ultramarine-600","","COLOR","#0D0532"),colorUltramarine700:o.create("--ft-color-ultramarine-700","","COLOR","#050215"),colorAvocado0:o.create("--ft-color-avocado-0","","COLOR","#98BD28"),colorAvocado10:o.create("--ft-color-avocado-10","","COLOR","#F6F9EC"),colorAvocado20:o.create("--ft-color-avocado-20","","COLOR","#E8F0D0"),colorAvocado30:o.create("--ft-color-avocado-30","","COLOR","#DBE8B4"),colorAvocado40:o.create("--ft-color-avocado-40","","COLOR","#CEDF98"),colorAvocado50:o.create("--ft-color-avocado-50","","COLOR","#C0D77C"),colorAvocado60:o.create("--ft-color-avocado-60","","COLOR","#B3CE60"),colorAvocado70:o.create("--ft-color-avocado-70","","COLOR","#A5C644"),colorAvocado100:o.create("--ft-color-avocado-100","","COLOR","#84A423"),colorAvocado200:o.create("--ft-color-avocado-200","","COLOR","#708C1E"),colorAvocado300:o.create("--ft-color-avocado-300","","COLOR","#5D7318"),colorAvocado400:o.create("--ft-color-avocado-400","","COLOR","#495B13"),colorAvocado500:o.create("--ft-color-avocado-500","","COLOR","#35420E"),colorAvocado600:o.create("--ft-color-avocado-600","","COLOR","#212A09"),colorAvocado700:o.create("--ft-color-avocado-700","","COLOR","#0E1104"),colorBrown0:o.create("--ft-color-brown-0","","COLOR","#B26F4D"),colorBrown10:o.create("--ft-color-brown-10","","COLOR","#F8F2EF"),colorBrown20:o.create("--ft-color-brown-20","","COLOR","#EEDFD8"),colorBrown30:o.create("--ft-color-brown-30","","COLOR","#E4CDC1"),colorBrown40:o.create("--ft-color-brown-40","","COLOR","#DABAAA"),colorBrown50:o.create("--ft-color-brown-50","","COLOR","#D0A792"),colorBrown60:o.create("--ft-color-brown-60","","COLOR","#C6947B"),colorBrown70:o.create("--ft-color-brown-70","","COLOR","#BC8264"),colorBrown100:o.create("--ft-color-brown-100","","COLOR","#9B6143"),colorBrown200:o.create("--ft-color-brown-200","","COLOR","#845239"),colorBrown300:o.create("--ft-color-brown-300","","COLOR","#6D442F"),colorBrown400:o.create("--ft-color-brown-400","","COLOR","#553525"),colorBrown500:o.create("--ft-color-brown-500","","COLOR","#3E271B"),colorBrown600:o.create("--ft-color-brown-600","","COLOR","#271811"),colorBrown700:o.create("--ft-color-brown-700","","COLOR","#100A07"),spacing1:o.create("--ft-spacing-1","","SIZE","0.25rem"),spacing2:o.create("--ft-spacing-2","","SIZE","calc(var(--ft-spacing-2, 0.25rem)*2)"),spacing3:o.create("--ft-spacing-3","","SIZE","calc(var(--ft-spacing-3, 0.25rem)*3)"),spacing4:o.create("--ft-spacing-4","","SIZE","calc(var(--ft-spacing-4, 0.25rem)*4)"),spacing5:o.create("--ft-spacing-5","","SIZE","calc(var(--ft-spacing-5, 0.25rem)*5)"),spacing6:o.create("--ft-spacing-6","","SIZE","calc(var(--ft-spacing-6, 0.25rem)*6)"),spacing8:o.create("--ft-spacing-8","","SIZE","calc(var(--ft-spacing-8, 0.25rem)*8)"),spacing10:o.create("--ft-spacing-10","","SIZE","calc(var(--ft-spacing-10, 0.25rem)*10)"),spacing12:o.create("--ft-spacing-12","","SIZE","calc(var(--ft-spacing-12, 0.25rem)*12)"),spacing16:o.create("--ft-spacing-16","","SIZE","calc(var(--ft-spacing-16, 0.25rem)*16)"),spacing20:o.create("--ft-spacing-20","","SIZE","calc(var(--ft-spacing-20, 0.25rem)*20)"),spacing24:o.create("--ft-spacing-24","","SIZE","calc(var(--ft-spacing-24, 0.25rem)*24)"),spacing28:o.create("--ft-spacing-28","","SIZE","calc(var(--ft-spacing-28, 0.25rem)*28)"),spacing32:o.create("--ft-spacing-32","","SIZE","calc(var(--ft-spacing-32, 0.25rem)*32)"),spacing05:o.create("--ft-spacing-0-5","","SIZE","calc(var(--ft-spacing-0-5, 0.25rem)*0.5)"),borderRadiusS:o.create("--ft-border-radius-s","","SIZE","4px"),borderRadiusM:o.create("--ft-border-radius-m","","SIZE","8px"),borderRadiusL:o.create("--ft-border-radius-l","","SIZE","12px"),borderRadiusXl:o.create("--ft-border-radius-xl","","SIZE","16px"),borderRadiusPill:o.create("--ft-border-radius-pill","","SIZE","999px"),borderRadiusRound:o.create("--ft-border-radius-round","","SIZE","50%"),iconSize1:o.create("--ft-icon-size-1","","SIZE","0.75rem"),iconSize2:o.create("--ft-icon-size-2","","SIZE","1rem"),iconSize3:o.create("--ft-icon-size-3","","SIZE","1.25rem"),iconSize4:o.create("--ft-icon-size-4","","SIZE","1.5rem"),iconSize5:o.create("--ft-icon-size-5","","SIZE","2rem"),iconSize6:o.create("--ft-icon-size-6","","SIZE","3rem"),opacity0:o.create("--ft-opacity-0","","NUMBER","0"),opacity8:o.create("--ft-opacity-8","","NUMBER","0.08"),opacity16:o.create("--ft-opacity-16","","NUMBER","0.16"),opacity24:o.create("--ft-opacity-24","","NUMBER","0.24"),opacity32:o.create("--ft-opacity-32","","NUMBER","0.32"),opacity40:o.create("--ft-opacity-40","","NUMBER","0.4"),opacity48:o.create("--ft-opacity-48","","NUMBER","0.48"),opacity80:o.create("--ft-opacity-80","","NUMBER","0.8"),shadowElevation01:o.create("--ft-shadow-elevation-01","","SHADOW","0px 1px 4px 0px rgba(0,0,0,0.06), 0px 1px 2px 0px rgba(0,0,0,0.14), 0px 0px 1px 0px rgba(0,0,0,0.06)"),shadowElevation02:o.create("--ft-shadow-elevation-02","","SHADOW","0px 4px 10px 0px rgba(0,0,0,0.06), 0px 2px 5px 0px rgba(0,0,0,0.14), 0px 0px 1px 0px rgba(0,0,0,0.06)"),shadowElevation03:o.create("--ft-shadow-elevation-03","","SHADOW","0px 6px 13px 0px rgba(0,0,0,0.06), 0px 3px 7px 0px rgba(0,0,0,0.14), 0px 1px 2px 0px rgba(0,0,0,0.06)"),shadowElevation04:o.create("--ft-shadow-elevation-04","","SHADOW","0px 8px 16px 0px rgba(0,0,0,0.06), 0px 4px 9px 0px rgba(0,0,0,0.14), 0px 2px 3px 0px rgba(0,0,0,0.06)"),shadowElevation06:o.create("--ft-shadow-elevation-06","","SHADOW","0px 12px 22px 0px rgba(0,0,0,0.06), 0px 6px 13px 0px rgba(0,0,0,0.14), 0px 4px 5px 0px rgba(0,0,0,0.06)"),shadowElevation08:o.create("--ft-shadow-elevation-08","","SHADOW","0px 16px 28px 0px rgba(0,0,0,0.06), 0px 8px 17px 0px rgba(0,0,0,0.14), 0px 6px 7px 0px rgba(0,0,0,0.06)"),shadowElevation12:o.create("--ft-shadow-elevation-12","","SHADOW","0px 22px 40px 0px rgba(0,0,0,0.06), 0px 12px 23px 0px rgba(0,0,0,0.14), 0px 10px 11px 0px rgba(0,0,0,0.06)"),shadowElevation16:o.create("--ft-shadow-elevation-16","","SHADOW","0px 28px 52px 0px rgba(0,0,0,0.06), 0px 16px 29px 0px rgba(0,0,0,0.14), 0px 14px 15px 0px rgba(0,0,0,0.06)"),shadowElevation24:o.create("--ft-shadow-elevation-24","","SHADOW","0px 40px 76px 0px rgba(0,0,0,0.06), 0px 24px 41px 0px rgba(0,0,0,0.14), 0px 22px 23px 0px rgba(0,0,0,0.06)")},qn={fontFamily:o.create("--ft-typography-display-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-display-fontWeight","","UNKNOWN","600"),lineHeight:o.create("--ft-typography-display-lineHeight","","SIZE","120%"),fontSize:o.create("--ft-typography-display-fontSize","","SIZE","2.5rem"),letterSpacing:o.create("--ft-typography-display-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:o.create("--ft-typography-display-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-display-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-display-textDecoration","","UNKNOWN","none"),textCase:o.create("--ft-typography-display-textCase","","UNKNOWN","none")},Yn={fontFamily:o.create("--ft-typography-title-1-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-title-1-fontWeight","","UNKNOWN","600"),lineHeight:o.create("--ft-typography-title-1-lineHeight","","SIZE","120%"),fontSize:o.create("--ft-typography-title-1-fontSize","","SIZE","1.5rem"),letterSpacing:o.create("--ft-typography-title-1-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:o.create("--ft-typography-title-1-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-title-1-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-title-1-textDecoration","","UNKNOWN","none"),textCase:o.create("--ft-typography-title-1-textCase","","UNKNOWN","none")},Xn={fontFamily:o.create("--ft-typography-title-2-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-title-2-fontWeight","","UNKNOWN","500"),lineHeight:o.create("--ft-typography-title-2-lineHeight","","SIZE","120%"),fontSize:o.create("--ft-typography-title-2-fontSize","","SIZE","1.25rem"),letterSpacing:o.create("--ft-typography-title-2-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:o.create("--ft-typography-title-2-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-title-2-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-title-2-textDecoration","","UNKNOWN","none"),textCase:o.create("--ft-typography-title-2-textCase","","UNKNOWN","none")},Jn={fontFamily:o.create("--ft-typography-title-3-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-title-3-fontWeight","","UNKNOWN","500"),lineHeight:o.create("--ft-typography-title-3-lineHeight","","SIZE","120%"),fontSize:o.create("--ft-typography-title-3-fontSize","","SIZE","1.125rem"),letterSpacing:o.create("--ft-typography-title-3-letterSpacing","","SIZE","-0.01em"),paragraphSpacing:o.create("--ft-typography-title-3-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-title-3-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-title-3-textDecoration","","UNKNOWN","none"),textCase:o.create("--ft-typography-title-3-textCase","","UNKNOWN","none")},Qn={fontFamily:o.create("--ft-typography-body-1-regular-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-body-1-regular-fontWeight","","UNKNOWN","400"),lineHeight:o.create("--ft-typography-body-1-regular-lineHeight","","SIZE","135%"),fontSize:o.create("--ft-typography-body-1-regular-fontSize","","SIZE","1rem"),letterSpacing:o.create("--ft-typography-body-1-regular-letterSpacing","","SIZE","normal"),paragraphSpacing:o.create("--ft-typography-body-1-regular-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-body-1-regular-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-body-1-regular-textDecoration","","UNKNOWN","none"),textCase:o.create("--ft-typography-body-1-regular-textCase","","UNKNOWN","none")},ta={fontFamily:o.create("--ft-typography-body-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-body-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:o.create("--ft-typography-body-1-medium-lineHeight","","SIZE","135%"),fontSize:o.create("--ft-typography-body-1-medium-fontSize","","SIZE","1rem"),letterSpacing:o.create("--ft-typography-body-1-medium-letterSpacing","","SIZE","normal"),paragraphSpacing:o.create("--ft-typography-body-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-body-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-body-1-medium-textDecoration","","UNKNOWN","none"),textCase:o.create("--ft-typography-body-1-medium-textCase","","UNKNOWN","none")},ea={fontFamily:o.create("--ft-typography-body-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-body-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:o.create("--ft-typography-body-1-semibold-lineHeight","","SIZE","135%"),fontSize:o.create("--ft-typography-body-1-semibold-fontSize","","SIZE","1rem"),letterSpacing:o.create("--ft-typography-body-1-semibold-letterSpacing","","SIZE","normal"),paragraphSpacing:o.create("--ft-typography-body-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-body-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-body-1-semibold-textDecoration","","UNKNOWN","none"),textCase:o.create("--ft-typography-body-1-semibold-textCase","","UNKNOWN","none")},ra={fontFamily:o.create("--ft-typography-body-2-regular-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-body-2-regular-fontWeight","","UNKNOWN","400"),lineHeight:o.create("--ft-typography-body-2-regular-lineHeight","","SIZE","135%"),fontSize:o.create("--ft-typography-body-2-regular-fontSize","","SIZE","0.875rem"),letterSpacing:o.create("--ft-typography-body-2-regular-letterSpacing","","SIZE","normal"),paragraphSpacing:o.create("--ft-typography-body-2-regular-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-body-2-regular-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-body-2-regular-textDecoration","","UNKNOWN","none"),textCase:o.create("--ft-typography-body-2-regular-textCase","","UNKNOWN","none")},oa={fontFamily:o.create("--ft-typography-body-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-body-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:o.create("--ft-typography-body-2-medium-lineHeight","","SIZE","135%"),fontSize:o.create("--ft-typography-body-2-medium-fontSize","","SIZE","0.875rem"),letterSpacing:o.create("--ft-typography-body-2-medium-letterSpacing","","SIZE","normal"),paragraphSpacing:o.create("--ft-typography-body-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-body-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-body-2-medium-textDecoration","","UNKNOWN","none"),textCase:o.create("--ft-typography-body-2-medium-textCase","","UNKNOWN","none")},Vl={fontFamily:o.create("--ft-typography-body-2-medium-underline-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-body-2-medium-underline-fontWeight","","UNKNOWN","500"),lineHeight:o.create("--ft-typography-body-2-medium-underline-lineHeight","","SIZE","135%"),fontSize:o.create("--ft-typography-body-2-medium-underline-fontSize","","SIZE","0.875rem"),letterSpacing:o.create("--ft-typography-body-2-medium-underline-letterSpacing","","SIZE","normal"),paragraphSpacing:o.create("--ft-typography-body-2-medium-underline-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-body-2-medium-underline-paragraphIndent","","UNKNOWN","0"),textCase:o.create("--ft-typography-body-2-medium-underline-textCase","","UNKNOWN","none"),textDecoration:o.create("--ft-typography-body-2-medium-underline-textDecoration","","UNKNOWN","underline")},ia={fontFamily:o.create("--ft-typography-body-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-body-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:o.create("--ft-typography-body-2-semibold-lineHeight","","SIZE","135%"),fontSize:o.create("--ft-typography-body-2-semibold-fontSize","","SIZE","0.875rem"),letterSpacing:o.create("--ft-typography-body-2-semibold-letterSpacing","","SIZE","normal"),paragraphSpacing:o.create("--ft-typography-body-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-body-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-body-2-semibold-textDecoration","","UNKNOWN","none"),textCase:o.create("--ft-typography-body-2-semibold-textCase","","UNKNOWN","none")},na={fontFamily:o.create("--ft-typography-label-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-label-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:o.create("--ft-typography-label-1-medium-lineHeight","","SIZE","110%"),fontSize:o.create("--ft-typography-label-1-medium-fontSize","","SIZE","0.875rem"),letterSpacing:o.create("--ft-typography-label-1-medium-letterSpacing","","SIZE","0.04em"),textCase:o.create("--ft-typography-label-1-medium-textCase","","UNKNOWN","uppercase"),paragraphSpacing:o.create("--ft-typography-label-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-label-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-label-1-medium-textDecoration","","UNKNOWN","none")},aa={fontFamily:o.create("--ft-typography-label-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-label-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:o.create("--ft-typography-label-1-semibold-lineHeight","","SIZE","110%"),fontSize:o.create("--ft-typography-label-1-semibold-fontSize","","SIZE","0.875rem"),letterSpacing:o.create("--ft-typography-label-1-semibold-letterSpacing","","SIZE","0.04em"),textCase:o.create("--ft-typography-label-1-semibold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:o.create("--ft-typography-label-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-label-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-label-1-semibold-textDecoration","","UNKNOWN","none")},sa={fontFamily:o.create("--ft-typography-label-1-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-label-1-bold-fontWeight","","UNKNOWN","700"),lineHeight:o.create("--ft-typography-label-1-bold-lineHeight","","SIZE","110%"),fontSize:o.create("--ft-typography-label-1-bold-fontSize","","SIZE","0.875rem"),letterSpacing:o.create("--ft-typography-label-1-bold-letterSpacing","","SIZE","0.04em"),textCase:o.create("--ft-typography-label-1-bold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:o.create("--ft-typography-label-1-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-label-1-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-label-1-bold-textDecoration","","UNKNOWN","none")},la={fontFamily:o.create("--ft-typography-label-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-label-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:o.create("--ft-typography-label-2-medium-lineHeight","","SIZE","110%"),fontSize:o.create("--ft-typography-label-2-medium-fontSize","","SIZE","0.75rem"),letterSpacing:o.create("--ft-typography-label-2-medium-letterSpacing","","SIZE","0.04em"),textCase:o.create("--ft-typography-label-2-medium-textCase","","UNKNOWN","uppercase"),paragraphSpacing:o.create("--ft-typography-label-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-label-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-label-2-medium-textDecoration","","UNKNOWN","none")},ca={fontFamily:o.create("--ft-typography-label-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-label-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:o.create("--ft-typography-label-2-semibold-lineHeight","","SIZE","110%"),fontSize:o.create("--ft-typography-label-2-semibold-fontSize","","SIZE","0.75rem"),letterSpacing:o.create("--ft-typography-label-2-semibold-letterSpacing","","SIZE","0.04em"),textCase:o.create("--ft-typography-label-2-semibold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:o.create("--ft-typography-label-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-label-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-label-2-semibold-textDecoration","","UNKNOWN","none")},da={fontFamily:o.create("--ft-typography-label-2-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-label-2-bold-fontWeight","","UNKNOWN","700"),lineHeight:o.create("--ft-typography-label-2-bold-lineHeight","","SIZE","110%"),fontSize:o.create("--ft-typography-label-2-bold-fontSize","","SIZE","0.75rem"),letterSpacing:o.create("--ft-typography-label-2-bold-letterSpacing","","SIZE","0.04em"),textCase:o.create("--ft-typography-label-2-bold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:o.create("--ft-typography-label-2-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-label-2-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-label-2-bold-textDecoration","","UNKNOWN","none")},pa={fontFamily:o.create("--ft-typography-caption-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-caption-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:o.create("--ft-typography-caption-1-medium-lineHeight","","SIZE","130%"),fontSize:o.create("--ft-typography-caption-1-medium-fontSize","","SIZE","0.75rem"),letterSpacing:o.create("--ft-typography-caption-1-medium-letterSpacing","","SIZE","normal"),textCase:o.create("--ft-typography-caption-1-medium-textCase","","UNKNOWN","none"),paragraphSpacing:o.create("--ft-typography-caption-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-caption-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-caption-1-medium-textDecoration","","UNKNOWN","none")},ua={fontFamily:o.create("--ft-typography-caption-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-caption-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:o.create("--ft-typography-caption-1-semibold-lineHeight","","SIZE","130%"),fontSize:o.create("--ft-typography-caption-1-semibold-fontSize","","SIZE","0.75rem"),letterSpacing:o.create("--ft-typography-caption-1-semibold-letterSpacing","","SIZE","normal"),textCase:o.create("--ft-typography-caption-1-semibold-textCase","","UNKNOWN","none"),paragraphSpacing:o.create("--ft-typography-caption-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-caption-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-caption-1-semibold-textDecoration","","UNKNOWN","none")},fa={fontFamily:o.create("--ft-typography-caption-1-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-caption-1-bold-fontWeight","","UNKNOWN","700"),lineHeight:o.create("--ft-typography-caption-1-bold-lineHeight","","SIZE","130%"),fontSize:o.create("--ft-typography-caption-1-bold-fontSize","","SIZE","0.75rem"),letterSpacing:o.create("--ft-typography-caption-1-bold-letterSpacing","","SIZE","normal"),textCase:o.create("--ft-typography-caption-1-bold-textCase","","UNKNOWN","none"),paragraphSpacing:o.create("--ft-typography-caption-1-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-caption-1-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-caption-1-bold-textDecoration","","UNKNOWN","none")},ha={fontFamily:o.create("--ft-typography-caption-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-caption-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:o.create("--ft-typography-caption-2-medium-lineHeight","","SIZE","130%"),fontSize:o.create("--ft-typography-caption-2-medium-fontSize","","SIZE","0.6875rem"),letterSpacing:o.create("--ft-typography-caption-2-medium-letterSpacing","","SIZE","normal"),textCase:o.create("--ft-typography-caption-2-medium-textCase","","UNKNOWN","none"),paragraphSpacing:o.create("--ft-typography-caption-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-caption-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-caption-2-medium-textDecoration","","UNKNOWN","none")},ma={fontFamily:o.create("--ft-typography-caption-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-caption-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:o.create("--ft-typography-caption-2-semibold-lineHeight","","SIZE","130%"),fontSize:o.create("--ft-typography-caption-2-semibold-fontSize","","SIZE","0.6875rem"),letterSpacing:o.create("--ft-typography-caption-2-semibold-letterSpacing","","SIZE","normal"),textCase:o.create("--ft-typography-caption-2-semibold-textCase","","UNKNOWN","none"),paragraphSpacing:o.create("--ft-typography-caption-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-caption-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-caption-2-semibold-textDecoration","","UNKNOWN","none")},ya={fontFamily:o.create("--ft-typography-caption-2-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-caption-2-bold-fontWeight","","UNKNOWN","700"),lineHeight:o.create("--ft-typography-caption-2-bold-lineHeight","","SIZE","130%"),fontSize:o.create("--ft-typography-caption-2-bold-fontSize","","SIZE","0.6875rem"),letterSpacing:o.create("--ft-typography-caption-2-bold-letterSpacing","","SIZE","normal"),textCase:o.create("--ft-typography-caption-2-bold-textCase","","UNKNOWN","none"),paragraphSpacing:o.create("--ft-typography-caption-2-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-caption-2-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-caption-2-bold-textDecoration","","UNKNOWN","none")},ga={fontFamily:o.create("--ft-typography-caption-3-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-caption-3-medium-fontWeight","","UNKNOWN","500"),lineHeight:o.create("--ft-typography-caption-3-medium-lineHeight","","SIZE","130%"),fontSize:o.create("--ft-typography-caption-3-medium-fontSize","","SIZE","0.625rem"),letterSpacing:o.create("--ft-typography-caption-3-medium-letterSpacing","","SIZE","normal"),textCase:o.create("--ft-typography-caption-3-medium-textCase","","UNKNOWN","none"),paragraphSpacing:o.create("--ft-typography-caption-3-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-caption-3-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-caption-3-medium-textDecoration","","UNKNOWN","none")},ba={fontFamily:o.create("--ft-typography-caption-3-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-caption-3-semibold-fontWeight","","UNKNOWN","600"),lineHeight:o.create("--ft-typography-caption-3-semibold-lineHeight","","SIZE","130%"),fontSize:o.create("--ft-typography-caption-3-semibold-fontSize","","SIZE","0.625rem"),letterSpacing:o.create("--ft-typography-caption-3-semibold-letterSpacing","","SIZE","normal"),textCase:o.create("--ft-typography-caption-3-semibold-textCase","","UNKNOWN","none"),paragraphSpacing:o.create("--ft-typography-caption-3-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-caption-3-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-caption-3-semibold-textDecoration","","UNKNOWN","none")},va={fontFamily:o.create("--ft-typography-caption-3-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-caption-3-bold-fontWeight","","UNKNOWN","700"),lineHeight:o.create("--ft-typography-caption-3-bold-lineHeight","","SIZE","130%"),fontSize:o.create("--ft-typography-caption-3-bold-fontSize","","SIZE","0.625rem"),letterSpacing:o.create("--ft-typography-caption-3-bold-letterSpacing","","SIZE","normal"),textCase:o.create("--ft-typography-caption-3-bold-textCase","","UNKNOWN","none"),paragraphSpacing:o.create("--ft-typography-caption-3-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-caption-3-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-caption-3-bold-textDecoration","","UNKNOWN","none")},Eo={display:qn,"title-1":Yn,"title-2":Xn,"title-3":Jn,"body-1-regular":Qn,"body-1-medium":ta,"body-1-semibold":ea,"body-2-regular":ra,"body-2-medium":oa,"body-2-medium-underline":Vl,"body-2-semibold":ia,"label-1-medium":na,"label-1-semibold":aa,"label-1-bold":sa,"label-2-medium":la,"label-2-semibold":ca,"label-2-bold":da,"caption-1-medium":pa,"caption-1-semibold":ua,"caption-1-bold":fa,"caption-2-medium":ha,"caption-2-semibold":ma,"caption-2-bold":ya,"caption-3-medium":ga,"caption-3-semibold":ba,"caption-3-bold":va},lu=["display","title-1","title-2","title-3","body-1","body-2","body-2-underline","label-1","label-2","caption-1","caption-2","caption-3"];var u={backgroundActionPrimary:o.extend("--ft-background-action-primary","Used as backgorund of primary action components.",c.colorBrand0),backgroundErrorSubtle:o.extend("--ft-background-error-subtle","Used as background of subtle error components.",c.colorRed10),backgroundInfoSubtle:o.extend("--ft-background-info-subtle","Used as background of subtle information components.",c.colorCyan10),backgroundWarningSubtle:o.extend("--ft-background-warning-subtle","Used as background of subtle information components.",c.colorOrange10),backgroundSuccessSubtle:o.extend("--ft-background-success-subtle","Used as background of subtle success components.",c.colorGreen10),backgroundGlobalSurface:o.extend("--ft-background-global-surface","Used as app background.",c.colorWhite),backgroundGlobalOnSurface:o.extend("--ft-background-global-on-surface","Used as background on element on the base background, like cards.",c.colorGray10),backgroundGlobalOnSurfaceDark:o.extend("--ft-background-global-on-surface-dark","Used as background on element that need background separation.",c.colorGray30),contentActionPrimary:o.extend("--ft-content-action-primary","Used on label of primary action on light surface.",c.colorBrand0),contentWarningPrimary:o.extend("--ft-content-warning-primary","Used on label of warning messages on light surface.",c.colorOrange200),contentWarningIconOnly:o.extend("--ft-content-warning-icon-only","Used on warning status icons alone",c.colorOrange0),contentErrorPrimary:o.extend("--ft-content-error-primary","Used on label of error messages on light surface.",c.colorRed0),contentErrorIconOnly:o.extend("--ft-content-error-icon-only","Used on error status icons alone",c.colorRed70),contentInfoPrimary:o.extend("--ft-content-info-primary","Used on label of information messages on light surface.",c.colorCyan200),contentInfoIconOnly:o.extend("--ft-content-info-icon-only","Used on info status icons alone",c.colorCyan0),contentSuccessPrimary:o.extend("--ft-content-success-primary","Used on label of success messages on light surface.",c.colorGreen200),contentSuccessIconOnly:o.extend("--ft-content-success-icon-only","Used on success status icons alone",c.colorGreen0),contentGlobalPrimary:o.extend("--ft-content-global-primary","Used for main content on the page.",c.colorGray500),contentGlobalSecondary:o.extend("--ft-content-global-secondary",`Used for secondary content, often paired with primary content.
7
+ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-content-global-subtle","Used for placeholder, unselected items in a tab component or breadcrumb.",c.colorGray0),contentGlobalOnColor:o.extend("--ft-content-global-on-color","Used for content on a dominant color.",c.colorWhite),borderActionPrimary:o.extend("--ft-border-action-primary","Used as border for primary action components.",c.colorBrand0),borderActionFocusRing:o.extend("--ft-border-action-focus-ring","Focus ring is an additional border to indicate focus-visible state.",c.colorCyan0),borderWarningPrimary:o.extend("--ft-border-warning-primary","Used as border for text fields in warning state and for buttons in warning color",c.colorOrange200),borderWarningSubtle:o.extend("--ft-border-warning-subtle","Used as border for warning components.",c.colorOrange30),borderSuccessPrimary:o.extend("--ft-border-success-primary","Used as border for success buttons.",c.colorGreen200),borderSuccessSubtle:o.extend("--ft-border-success-subtle","Used as border for success components.",c.colorGreen30),borderErrorPrimary:o.extend("--ft-border-error-primary","Used as border for text fields in error states.",c.colorRed0),borderErrorSubtle:o.extend("--ft-border-error-subtle","Used as border for error components.",c.colorRed30),borderInfoPrimary:o.extend("--ft-border-info-primary","Used as border for buttons in info color.",c.colorCyan200),borderInfoSubtle:o.extend("--ft-border-info-subtle","Used as border for information components.",c.colorCyan30),borderGlobalPrimary:o.extend("--ft-border-global-primary","Used as border for element like input.",c.colorGray50),borderGlobalSubtle:o.extend("--ft-border-global-subtle","Used as border to deliminate an area filled with background.on-surface and separators.",c.colorGray30),borderInputPrimary:o.extend("--ft-border-input-primary","Used as border for checkboxes and radio buttons",c.colorGray80),borderNeutralPrimary:o.extend("--ft-border-neutral-primary","Used as border for neutral secondary buttons",c.colorGray200)};var b={largeHeight:o.create("--ft-button-large-height","","SIZE","40px"),largeHorizontalPadding:o.extend("--ft-button-large-horizontal-padding","",c.spacing4),largeGap:o.extend("--ft-button-large-gap","",c.spacing2),largeBorderRadius:o.extend("--ft-button-large-border-radius","",c.borderRadiusS),largeIconSize:o.extend("--ft-button-large-icon-size","",c.iconSize3),largeBorderWidth:o.create("--ft-button-large-border-width","","SIZE","1px"),largeFocusOutlineOffset:o.create("--ft-button-large-focus-outline-offset","","SIZE","2px"),largeFocusOutlineWidth:o.create("--ft-button-large-focus-outline-width","","SIZE","2px"),largeIconOnlyWidth:o.create("--ft-button-large-icon-only-width","","SIZE","40px"),mediumHeight:o.create("--ft-button-medium-height","","SIZE","30px"),mediumHorizontalPadding:o.extend("--ft-button-medium-horizontal-padding","",c.spacing3),mediumGap:o.extend("--ft-button-medium-gap","",c.spacing2),mediumBorderRadius:o.extend("--ft-button-medium-border-radius","",c.borderRadiusS),mediumIconSize:o.extend("--ft-button-medium-icon-size","",c.iconSize2),mediumBorderWidth:o.create("--ft-button-medium-border-width","","SIZE","1px"),mediumFocusOutlineOffset:o.create("--ft-button-medium-focus-outline-offset","","SIZE","2px"),mediumFocusOutlineWidth:o.create("--ft-button-medium-focus-outline-width","","SIZE","2px"),mediumIconOnlyWidth:o.create("--ft-button-medium-icon-only-width","","SIZE","30px"),smallHeight:o.create("--ft-button-small-height","","SIZE","20px"),smallHorizontalPadding:o.extend("--ft-button-small-horizontal-padding","",c.spacing2),smallGap:o.extend("--ft-button-small-gap","",c.spacing1),smallBorderRadius:o.extend("--ft-button-small-border-radius","",c.borderRadiusS),smallIconSize:o.extend("--ft-button-small-icon-size","",c.iconSize1),smallBorderWidth:o.create("--ft-button-small-border-width","","SIZE","1px"),smallFocusOutlineOffset:o.create("--ft-button-small-focus-outline-offset","","SIZE","2px"),smallFocusOutlineWidth:o.create("--ft-button-small-focus-outline-width","","SIZE","2px"),smallIconOnlyWidth:o.create("--ft-button-small-icon-only-width","","SIZE","20px"),xSmallHeight:o.create("--ft-button-x-small-height","","SIZE","16px"),xSmallIconSize:o.extend("--ft-button-x-small-icon-size","",c.iconSize1),xSmallFocusOutlineOffset:o.create("--ft-button-x-small-focus-outline-offset","","SIZE","2px"),xSmallFocusOutlineWidth:o.create("--ft-button-x-small-focus-outline-width","","SIZE","2px"),xSmallIconOnlyWidth:o.create("--ft-button-x-small-icon-only-width","","SIZE","16px"),roundBorderRadius:o.extend("--ft-button-round-border-radius","",c.borderRadiusPill),primaryBrandBackgroundColor:o.extend("--ft-button-primary-brand-background-color","",u.backgroundActionPrimary),primaryBrandColor:o.extend("--ft-button-primary-brand-color","",u.contentGlobalOnColor),primaryBrandIconColor:o.extend("--ft-button-primary-brand-icon-color","",u.contentGlobalOnColor),primaryBrandStateLayerColor:o.extend("--ft-button-primary-brand-state-layer-color","",u.contentGlobalOnColor),primaryBrandHoverStateLayerOpacity:o.extend("--ft-button-primary-brand-hover-state-layer-opacity","",c.opacity16),primaryBrandFocusStateLayerOpacity:o.extend("--ft-button-primary-brand-focus-state-layer-opacity","",c.opacity16),primaryBrandActiveStateLayerOpacity:o.extend("--ft-button-primary-brand-active-state-layer-opacity","",c.opacity24),primaryBrandDisabledComponentOpacity:o.extend("--ft-button-primary-brand-disabled-component-opacity","",c.opacity40),focusFocusRingColor:o.extend("--ft-button-focus-focus-ring-color","",u.borderActionFocusRing),tertiaryBrandBackgroundColor:o.create("--ft-button-tertiary-brand-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryBrandColor:o.extend("--ft-button-tertiary-brand-color","",u.contentActionPrimary),tertiaryBrandIconColor:o.extend("--ft-button-tertiary-brand-icon-color","",u.contentActionPrimary),tertiaryBrandStateLayerColor:o.extend("--ft-button-tertiary-brand-state-layer-color","",u.contentActionPrimary),tertiaryBrandHoverStateLayerOpacity:o.extend("--ft-button-tertiary-brand-hover-state-layer-opacity","",c.opacity8),tertiaryBrandFocusStateLayerOpacity:o.extend("--ft-button-tertiary-brand-focus-state-layer-opacity","",c.opacity8),tertiaryBrandActiveStateLayerOpacity:o.extend("--ft-button-tertiary-brand-active-state-layer-opacity","",c.opacity16),tertiaryBrandDisabledComponentOpacity:o.extend("--ft-button-tertiary-brand-disabled-component-opacity","",c.opacity40),tertiaryInfoBackgroundColor:o.create("--ft-button-tertiary-info-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryInfoColor:o.extend("--ft-button-tertiary-info-color","",u.contentInfoPrimary),tertiaryInfoIconColor:o.extend("--ft-button-tertiary-info-icon-color","",u.contentInfoPrimary),tertiaryInfoStateLayerColor:o.extend("--ft-button-tertiary-info-state-layer-color","",u.contentInfoPrimary),tertiaryInfoFocusStateLayerOpacity:o.extend("--ft-button-tertiary-info-focus-state-layer-opacity","",c.opacity8),tertiaryInfoHoverStateLayerOpacity:o.extend("--ft-button-tertiary-info-hover-state-layer-opacity","",c.opacity8),tertiaryInfoActiveStateLayerOpacity:o.extend("--ft-button-tertiary-info-active-state-layer-opacity","",c.opacity16),tertiaryInfoDisabledComponentOpacity:o.extend("--ft-button-tertiary-info-disabled-component-opacity","",c.opacity40),tertiarySuccessBackgroundColor:o.create("--ft-button-tertiary-success-background-color","","COLOR","rgba(0,0,0,0)"),tertiarySuccessColor:o.extend("--ft-button-tertiary-success-color","",u.contentSuccessPrimary),tertiarySuccessIconColor:o.extend("--ft-button-tertiary-success-icon-color","",u.contentSuccessPrimary),tertiarySuccessStateLayerColor:o.extend("--ft-button-tertiary-success-state-layer-color","",u.contentSuccessPrimary),tertiarySuccessHoverStateLayerOpacity:o.extend("--ft-button-tertiary-success-hover-state-layer-opacity","",c.opacity8),tertiarySuccessFocusStateLayerOpacity:o.extend("--ft-button-tertiary-success-focus-state-layer-opacity","",c.opacity8),tertiarySuccessActiveStateLayerOpacity:o.extend("--ft-button-tertiary-success-active-state-layer-opacity","",c.opacity16),tertiarySuccessDisabledComponentOpacity:o.extend("--ft-button-tertiary-success-disabled-component-opacity","",c.opacity40),tertiaryWarningBackgroundColor:o.create("--ft-button-tertiary-warning-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryWarningColor:o.extend("--ft-button-tertiary-warning-color","",u.contentWarningPrimary),tertiaryWarningIconColor:o.extend("--ft-button-tertiary-warning-icon-color","",u.contentWarningPrimary),tertiaryWarningStateLayerColor:o.extend("--ft-button-tertiary-warning-state-layer-color","",u.contentWarningPrimary),tertiaryWarningHoverStateLayerOpacity:o.extend("--ft-button-tertiary-warning-hover-state-layer-opacity","",c.opacity8),tertiaryWarningFocusStateLayerOpacity:o.extend("--ft-button-tertiary-warning-focus-state-layer-opacity","",c.opacity8),tertiaryWarningActiveStateLayerOpacity:o.extend("--ft-button-tertiary-warning-active-state-layer-opacity","",c.opacity16),tertiaryWarningDisabledComponentOpacity:o.extend("--ft-button-tertiary-warning-disabled-component-opacity","",c.opacity40),tertiaryErrorBackgroundColor:o.create("--ft-button-tertiary-error-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryErrorColor:o.extend("--ft-button-tertiary-error-color","",u.contentErrorPrimary),tertiaryErrorIconColor:o.extend("--ft-button-tertiary-error-icon-color","",u.contentErrorPrimary),tertiaryErrorStateLayerColor:o.extend("--ft-button-tertiary-error-state-layer-color","",u.contentErrorPrimary),tertiaryErrorHoverStateLayerOpacity:o.extend("--ft-button-tertiary-error-hover-state-layer-opacity","",c.opacity8),tertiaryErrorFocusStateLayerOpacity:o.extend("--ft-button-tertiary-error-focus-state-layer-opacity","",c.opacity8),tertiaryErrorActiveStateLayerOpacity:o.extend("--ft-button-tertiary-error-active-state-layer-opacity","",c.opacity16),tertiaryErrorDisabledComponentOpacity:o.extend("--ft-button-tertiary-error-disabled-component-opacity","",c.opacity40),tertiaryNeutralBackgroundColor:o.create("--ft-button-tertiary-neutral-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryNeutralIconColor:o.extend("--ft-button-tertiary-neutral-icon-color","",u.contentGlobalSecondary),tertiaryNeutralColor:o.extend("--ft-button-tertiary-neutral-color","",u.contentGlobalSecondary),tertiaryNeutralStateLayerColor:o.extend("--ft-button-tertiary-neutral-state-layer-color","",u.contentGlobalSecondary),tertiaryNeutralHoverStateLayerOpacity:o.extend("--ft-button-tertiary-neutral-hover-state-layer-opacity","",c.opacity8),tertiaryNeutralFocusStateLayerOpacity:o.extend("--ft-button-tertiary-neutral-focus-state-layer-opacity","",c.opacity8),tertiaryNeutralActiveStateLayerOpacity:o.extend("--ft-button-tertiary-neutral-active-state-layer-opacity","",c.opacity16),tertiaryNeutralDisabledComponentOpacity:o.extend("--ft-button-tertiary-neutral-disabled-component-opacity","",c.opacity40),secondaryBrandBackgroundColor:o.create("--ft-button-secondary-brand-background-color","","COLOR","rgba(0,0,0,0)"),secondaryBrandColor:o.extend("--ft-button-secondary-brand-color","",u.contentActionPrimary),secondaryBrandIconColor:o.extend("--ft-button-secondary-brand-icon-color","",u.contentActionPrimary),secondaryBrandStateLayerColor:o.extend("--ft-button-secondary-brand-state-layer-color","",u.contentActionPrimary),secondaryBrandHoverStateLayerOpacity:o.extend("--ft-button-secondary-brand-hover-state-layer-opacity","",c.opacity8),secondaryBrandFocusStateLayerOpacity:o.extend("--ft-button-secondary-brand-focus-state-layer-opacity","",c.opacity8),secondaryBrandActiveStateLayerOpacity:o.extend("--ft-button-secondary-brand-active-state-layer-opacity","",c.opacity16),secondaryBrandDisabledComponentOpacity:o.extend("--ft-button-secondary-brand-disabled-component-opacity","",c.opacity40),secondaryBrandBorderColor:o.extend("--ft-button-secondary-brand-border-color","",u.borderActionPrimary),secondaryNeutralHoverStateLayerOpacity:o.extend("--ft-button-secondary-neutral-hover-state-layer-opacity","",c.opacity8),secondaryNeutralFocusStateLayerOpacity:o.extend("--ft-button-secondary-neutral-focus-state-layer-opacity","",c.opacity8),secondaryNeutralActiveStateLayerOpacity:o.extend("--ft-button-secondary-neutral-active-state-layer-opacity","",c.opacity16),secondaryNeutralDisabledComponentOpacity:o.extend("--ft-button-secondary-neutral-disabled-component-opacity","",c.opacity40),secondaryNeutralBackgroundColor:o.create("--ft-button-secondary-neutral-background-color","","COLOR","rgba(0,0,0,0)"),secondaryNeutralColor:o.extend("--ft-button-secondary-neutral-color","",u.contentGlobalSecondary),secondaryNeutralIconColor:o.extend("--ft-button-secondary-neutral-icon-color","",u.contentGlobalSecondary),secondaryNeutralStateLayerColor:o.extend("--ft-button-secondary-neutral-state-layer-color","",u.contentGlobalSecondary),secondaryNeutralBorderColor:o.extend("--ft-button-secondary-neutral-border-color","",u.borderNeutralPrimary),secondaryInfoHoverStateLayerOpacity:o.extend("--ft-button-secondary-info-hover-state-layer-opacity","",c.opacity8),secondaryInfoFocusStateLayerOpacity:o.extend("--ft-button-secondary-info-focus-state-layer-opacity","",c.opacity8),secondaryInfoActiveStateLayerOpacity:o.extend("--ft-button-secondary-info-active-state-layer-opacity","",c.opacity16),secondaryInfoDisabledComponentOpacity:o.extend("--ft-button-secondary-info-disabled-component-opacity","",c.opacity40),secondaryInfoBackgroundColor:o.create("--ft-button-secondary-info-background-color","","COLOR","rgba(0,0,0,0)"),secondaryInfoBorderColor:o.extend("--ft-button-secondary-info-border-color","",u.borderInfoPrimary),secondaryInfoColor:o.extend("--ft-button-secondary-info-color","",u.contentInfoPrimary),secondaryInfoIconColor:o.extend("--ft-button-secondary-info-icon-color","",u.contentInfoPrimary),secondaryInfoStateLayerColor:o.extend("--ft-button-secondary-info-state-layer-color","",u.contentInfoPrimary),secondarySuccessHoverStateLayerOpacity:o.extend("--ft-button-secondary-success-hover-state-layer-opacity","",c.opacity8),secondarySuccessFocusStateLayerOpacity:o.extend("--ft-button-secondary-success-focus-state-layer-opacity","",c.opacity8),secondarySuccessActiveStateLayerOpacity:o.extend("--ft-button-secondary-success-active-state-layer-opacity","",c.opacity16),secondarySuccessDisabledComponentOpacity:o.extend("--ft-button-secondary-success-disabled-component-opacity","",c.opacity40),secondarySuccessBackgroundColor:o.create("--ft-button-secondary-success-background-color","","COLOR","rgba(0,0,0,0)"),secondarySuccessBorderColor:o.extend("--ft-button-secondary-success-border-color","",u.borderSuccessPrimary),secondarySuccessColor:o.extend("--ft-button-secondary-success-color","",u.contentSuccessPrimary),secondarySuccessIconColor:o.extend("--ft-button-secondary-success-icon-color","",u.contentSuccessPrimary),secondarySuccessStateLayerColor:o.extend("--ft-button-secondary-success-state-layer-color","",u.contentSuccessPrimary),secondaryWarningHoverStateLayerOpacity:o.extend("--ft-button-secondary-warning-hover-state-layer-opacity","",c.opacity8),secondaryWarningFocusStateLayerOpacity:o.extend("--ft-button-secondary-warning-focus-state-layer-opacity","",c.opacity8),secondaryWarningActiveStateLayerOpacity:o.extend("--ft-button-secondary-warning-active-state-layer-opacity","",c.opacity16),secondaryWarningDisabledComponentOpacity:o.extend("--ft-button-secondary-warning-disabled-component-opacity","",c.opacity40),secondaryWarningBackgroundColor:o.create("--ft-button-secondary-warning-background-color","","COLOR","rgba(0,0,0,0)"),secondaryWarningBorderColor:o.extend("--ft-button-secondary-warning-border-color","",u.borderWarningPrimary),secondaryWarningColor:o.extend("--ft-button-secondary-warning-color","",u.contentWarningPrimary),secondaryWarningIconColor:o.extend("--ft-button-secondary-warning-icon-color","",u.contentWarningPrimary),secondaryWarningStateLayerColor:o.extend("--ft-button-secondary-warning-state-layer-color","",u.contentWarningPrimary),secondaryErrorHoverStateLayerOpacity:o.extend("--ft-button-secondary-error-hover-state-layer-opacity","",c.opacity8),secondaryErrorFocusStateLayerOpacity:o.extend("--ft-button-secondary-error-focus-state-layer-opacity","",c.opacity8),secondaryErrorActiveStateLayerOpacity:o.extend("--ft-button-secondary-error-active-state-layer-opacity","",c.opacity16),secondaryErrorDisabledComponentOpacity:o.extend("--ft-button-secondary-error-disabled-component-opacity","",c.opacity40),secondaryErrorBackgroundColor:o.create("--ft-button-secondary-error-background-color","","COLOR","rgba(0,0,0,0)"),secondaryErrorBorderColor:o.extend("--ft-button-secondary-error-border-color","",u.contentErrorPrimary),secondaryErrorColor:o.extend("--ft-button-secondary-error-color","",u.contentErrorPrimary),secondaryErrorIconColor:o.extend("--ft-button-secondary-error-icon-color","",u.contentErrorPrimary),secondaryErrorStateLayerColor:o.extend("--ft-button-secondary-error-state-layer-color","",u.contentErrorPrimary)};var cu={neutralOffHoverStateLayerOpacity:o.extend("--ft-chip-choice-neutral-off-hover-state-layer-opacity","",c.opacity8),neutralOffFocusStateLayerOpacity:o.extend("--ft-chip-choice-neutral-off-focus-state-layer-opacity","",c.opacity8),neutralOffFocusFocusRingColor:o.extend("--ft-chip-choice-neutral-off-focus-focus-ring-color","",u.borderActionFocusRing),neutralOffActiveStateLayerOpacity:o.extend("--ft-chip-choice-neutral-off-active-state-layer-opacity","",c.opacity16),neutralOffBackgroundColor:o.extend("--ft-chip-choice-neutral-off-background-color","",u.backgroundGlobalOnSurface),neutralOffBorderColor:o.extend("--ft-chip-choice-neutral-off-border-color","",u.borderGlobalPrimary),neutralOffColor:o.extend("--ft-chip-choice-neutral-off-color","",u.contentGlobalSecondary),neutralOffStateLayerColor:o.extend("--ft-chip-choice-neutral-off-state-layer-color","",u.contentGlobalSecondary),neutralOnDefaultStateLayerOpacity:o.extend("--ft-chip-choice-neutral-on-default-state-layer-opacity","",c.opacity16),neutralOnHoverStateLayerOpacity:o.extend("--ft-chip-choice-neutral-on-hover-state-layer-opacity","",c.opacity24),neutralOnFocusStateLayerOpacity:o.extend("--ft-chip-choice-neutral-on-focus-state-layer-opacity","",c.opacity24),neutralOnFocusFocusRingColor:o.extend("--ft-chip-choice-neutral-on-focus-focus-ring-color","",u.borderActionFocusRing),neutralOnActiveStateLayerOpacity:o.extend("--ft-chip-choice-neutral-on-active-state-layer-opacity","",c.opacity32),neutralOnBackgroundColor:o.extend("--ft-chip-choice-neutral-on-background-color","",u.backgroundGlobalOnSurface),neutralOnBorderColor:o.extend("--ft-chip-choice-neutral-on-border-color","",u.borderGlobalPrimary),neutralOnColor:o.extend("--ft-chip-choice-neutral-on-color","",u.contentGlobalPrimary),neutralOnIconColor:o.extend("--ft-chip-choice-neutral-on-icon-color","",u.contentGlobalPrimary),neutralOnStateLayerColor:o.extend("--ft-chip-choice-neutral-on-state-layer-color","",u.contentGlobalPrimary),largeMinHeight:o.create("--ft-chip-choice-large-min-height","","SIZE","36px"),largeHorizontalPadding:o.extend("--ft-chip-choice-large-horizontal-padding","",c.spacing3),largeGap:o.extend("--ft-chip-choice-large-gap","",c.spacing1),largeBorderRadius:o.create("--ft-chip-choice-large-border-radius","","SIZE","18px"),largeBorderWidth:o.create("--ft-chip-choice-large-border-width","","SIZE","1px"),largeIconSize:o.extend("--ft-chip-choice-large-icon-size","",c.iconSize3),mediumMinHeight:o.create("--ft-chip-choice-medium-min-height","","SIZE","24px"),mediumHorizontalPadding:o.extend("--ft-chip-choice-medium-horizontal-padding","",c.spacing2),mediumGap:o.extend("--ft-chip-choice-medium-gap","",c.spacing1),mediumBorderRadius:o.create("--ft-chip-choice-medium-border-radius","","SIZE","12px"),mediumBorderWidth:o.create("--ft-chip-choice-medium-border-width","","SIZE","1px"),mediumIconSize:o.extend("--ft-chip-choice-medium-icon-size","",c.iconSize2)};var du={largeMinHeight:o.create("--ft-chip-large-min-height","","SIZE","36px"),largeHorizontalPadding:o.extend("--ft-chip-large-horizontal-padding","",c.spacing3),largeButtonRightPadding:o.extend("--ft-chip-large-button-right-padding","",c.spacing1),largeGap:o.extend("--ft-chip-large-gap","",c.spacing1),largeFocusOutlineOffset:o.create("--ft-chip-large-focus-outline-offset","","SIZE","2px"),largeFocusOutlineWidth:o.create("--ft-chip-large-focus-outline-width","","SIZE","2px"),largeBorderRadius:o.create("--ft-chip-large-border-radius","","SIZE","18px"),largeBorderWidth:o.create("--ft-chip-large-border-width","","SIZE","1px"),largeIconSize:o.extend("--ft-chip-large-icon-size","",c.iconSize3),mediumMinHeight:o.create("--ft-chip-medium-min-height","","SIZE","24px"),mediumHorizontalPadding:o.extend("--ft-chip-medium-horizontal-padding","",c.spacing2),mediumButtonRightPadding:o.extend("--ft-chip-medium-button-right-padding","",c.spacing05),mediumGap:o.extend("--ft-chip-medium-gap","",c.spacing1),mediumFocusOutlineOffset:o.create("--ft-chip-medium-focus-outline-offset","","SIZE","2px"),mediumFocusOutlineWidth:o.create("--ft-chip-medium-focus-outline-width","","SIZE","2px"),mediumBorderRadius:o.create("--ft-chip-medium-border-radius","","SIZE","12px"),mediumBorderWidth:o.create("--ft-chip-medium-border-width","","SIZE","1px"),mediumIconSize:o.extend("--ft-chip-medium-icon-size","",c.iconSize2),smallMinHeight:o.create("--ft-chip-small-min-height","","SIZE","20px"),smallHorizontalPadding:o.extend("--ft-chip-small-horizontal-padding","",c.spacing1),smallButtonRightPadding:o.extend("--ft-chip-small-button-right-padding","",c.spacing05),smallGap:o.extend("--ft-chip-small-gap","",c.spacing1),smallFocusOutlineOffset:o.create("--ft-chip-small-focus-outline-offset","","SIZE","2px"),smallFocusOutlineWidth:o.create("--ft-chip-small-focus-outline-width","","SIZE","2px"),smallBorderRadius:o.create("--ft-chip-small-border-radius","","SIZE","10px"),smallBorderWidth:o.create("--ft-chip-small-border-width","","SIZE","1px"),smallIconSize:o.extend("--ft-chip-small-icon-size","",c.iconSize1),neutralBackgroundColor:o.extend("--ft-chip-neutral-background-color","",u.backgroundGlobalOnSurface),neutralColor:o.extend("--ft-chip-neutral-color","",u.contentGlobalSecondary),neutralIconColor:o.extend("--ft-chip-neutral-icon-color","",u.contentGlobalSecondary),neutralBorderColor:o.extend("--ft-chip-neutral-border-color","",u.borderGlobalSubtle),infoBackgroundColor:o.extend("--ft-chip-info-background-color","",u.backgroundInfoSubtle),infoColor:o.extend("--ft-chip-info-color","",u.contentInfoPrimary),infoIconColor:o.extend("--ft-chip-info-icon-color","",u.contentInfoIconOnly),infoBorderColor:o.extend("--ft-chip-info-border-color","",u.borderInfoSubtle),successBackgroundColor:o.extend("--ft-chip-success-background-color","",u.backgroundSuccessSubtle),successColor:o.extend("--ft-chip-success-color","",u.contentSuccessPrimary),successIconColor:o.extend("--ft-chip-success-icon-color","",u.contentSuccessIconOnly),successBorderColor:o.extend("--ft-chip-success-border-color","",u.borderSuccessSubtle),warningBackgroundColor:o.extend("--ft-chip-warning-background-color","",u.backgroundWarningSubtle),warningColor:o.extend("--ft-chip-warning-color","",u.contentWarningPrimary),warningIconColor:o.extend("--ft-chip-warning-icon-color","",u.contentWarningIconOnly),warningBorderColor:o.extend("--ft-chip-warning-border-color","",u.borderWarningSubtle),errorBackgroundColor:o.extend("--ft-chip-error-background-color","",u.backgroundErrorSubtle),errorColor:o.extend("--ft-chip-error-color","",u.contentErrorPrimary),errorIconColor:o.extend("--ft-chip-error-icon-color","",u.contentErrorIconOnly),errorBorderColor:o.extend("--ft-chip-error-border-color","",u.borderErrorSubtle)};var pu={brandHoverOpacity:o.extend("--ft-link-brand-hover-opacity","",c.opacity80),brandHoverColor:o.extend("--ft-link-brand-hover-color","",u.contentActionPrimary),brandFocusFocusRingColor:o.extend("--ft-link-brand-focus-focus-ring-color","",u.borderActionFocusRing),brandFocusColor:o.extend("--ft-link-brand-focus-color","",u.contentActionPrimary),brandDefaultColor:o.extend("--ft-link-brand-default-color","",u.contentActionPrimary),brandActiveColor:o.extend("--ft-link-brand-active-color","",u.contentActionPrimary),infoHoverOpacity:o.extend("--ft-link-info-hover-opacity","",c.opacity80),infoHoverColor:o.extend("--ft-link-info-hover-color","",u.contentInfoPrimary),infoFocusFocusRingColor:o.extend("--ft-link-info-focus-focus-ring-color","",u.borderActionFocusRing),infoFocusColor:o.extend("--ft-link-info-focus-color","",u.contentInfoPrimary),infoDefaultColor:o.extend("--ft-link-info-default-color","",u.contentInfoPrimary),infoActiveColor:o.extend("--ft-link-info-active-color","",u.contentInfoPrimary),neutralFocusFocusRingColor:o.extend("--ft-link-neutral-focus-focus-ring-color","",u.borderActionFocusRing),neutralFocusColor:o.extend("--ft-link-neutral-focus-color","",u.contentActionPrimary),neutralDefaultColor:o.extend("--ft-link-neutral-default-color","",u.contentGlobalPrimary),neutralHoverColor:o.extend("--ft-link-neutral-hover-color","",u.contentActionPrimary),neutralActiveColor:o.extend("--ft-link-neutral-active-color","",u.contentActionPrimary),neutralVisitedColor:o.extend("--ft-link-neutral-visited-color","",c.colorBrand100)};var uu={iconSize:o.extend("--ft-banner-icon-size","",c.iconSize5),borderWidth:o.create("--ft-banner-border-width","","SIZE","1px"),leftPadding:o.extend("--ft-banner-left-padding","",c.spacing6),rightPadding:o.extend("--ft-banner-right-padding","",c.spacing6),verticalPadding:o.extend("--ft-banner-vertical-padding","",c.spacing6),horizontalSideGap:o.extend("--ft-banner-horizontal-side-gap","",c.spacing6),horizontalMobileGap:o.extend("--ft-banner-horizontal-mobile-gap","",c.spacing4),verticalMobileGap:o.extend("--ft-banner-vertical-mobile-gap","",c.spacing6),horizontalMiddleGap:o.extend("--ft-banner-horizontal-middle-gap","",c.spacing20),infoBackgroundColor:o.extend("--ft-banner-info-background-color","",u.backgroundInfoSubtle),infoColor:o.extend("--ft-banner-info-color","",u.contentInfoPrimary),infoIconColor:o.extend("--ft-banner-info-icon-color","",u.contentInfoIconOnly),infoBorderColor:o.extend("--ft-banner-info-border-color","",u.borderInfoSubtle)};var fu={horizontalPadding:o.extend("--ft-badge-horizontal-padding","",c.spacing1),verticalPadding:o.extend("--ft-badge-vertical-padding","",c.spacing1),borderRadius:o.extend("--ft-badge-border-radius","",c.borderRadiusPill),color:o.extend("--ft-badge-color","",u.contentGlobalOnColor),backgroundColor:o.extend("--ft-badge-background-color","",u.contentActionPrimary)};var hu={horizontalGap:o.extend("--ft-title-breadcrumb-horizontal-gap","",c.spacing1),currentColor:o.extend("--ft-title-breadcrumb-current-color","",u.contentGlobalPrimary),previousNonClickableColor:o.extend("--ft-title-breadcrumb-previous-non-clickable-color","",u.contentGlobalSecondary),iconColor:o.extend("--ft-title-breadcrumb-icon-color","",u.contentGlobalSubtle)};var mu={parentHorizontalPadding:o.extend("--ft-page-header-parent-horizontal-padding","",c.spacing6),parentTopPadding:o.extend("--ft-page-header-parent-top-padding","",c.spacing4),parentBottomPadding:o.extend("--ft-page-header-parent-bottom-padding","",c.spacing6),parentHelpLeftMargin:o.extend("--ft-page-header-parent-help-left-margin","",c.spacing1),parentTitleColor:o.extend("--ft-page-header-parent-title-color","",u.contentGlobalPrimary),parentSubtitleColor:o.extend("--ft-page-header-parent-subtitle-color","",u.contentGlobalSecondary),parentChipLeftMargin:o.extend("--ft-page-header-parent-chip-left-margin","",c.spacing4),parentVerticalGap:o.extend("--ft-page-header-parent-vertical-gap","",c.spacing2),parentButtonsGroupHorizontalGap:o.extend("--ft-page-header-parent-buttons-group-horizontal-gap","",c.spacing4),parentButtonsGroupVerticalGap:o.extend("--ft-page-header-parent-buttons-group-vertical-gap","",c.spacing4),parentChipsGroupHorizontalGap:o.extend("--ft-page-header-parent-chips-group-horizontal-gap","",c.spacing2),parentChipsGroupVerticalGap:o.extend("--ft-page-header-parent-chips-group-vertical-gap","",c.spacing2),childHorizontalPadding:o.extend("--ft-page-header-child-horizontal-padding","",c.spacing6),childTopPadding:o.extend("--ft-page-header-child-top-padding","",c.spacing2),childBottomPadding:o.extend("--ft-page-header-child-bottom-padding","",c.spacing2),childHelpLeftMargin:o.extend("--ft-page-header-child-help-left-margin","",c.spacing1),childChipLeftMargin:o.extend("--ft-page-header-child-chip-left-margin","",c.spacing4),childVerticalGap:o.extend("--ft-page-header-child-vertical-gap","",c.spacing2),childMinHeight:o.create("--ft-page-header-child-min-height","","SIZE","40px"),childButtonsGroupHorizontalGap:o.extend("--ft-page-header-child-buttons-group-horizontal-gap","",c.spacing4),childButtonsGroupVerticalGap:o.extend("--ft-page-header-child-buttons-group-vertical-gap","",c.spacing4),childChipsGroupHorizontalGap:o.extend("--ft-page-header-child-chips-group-horizontal-gap","",c.spacing2),childChipsGroupVerticalGap:o.extend("--ft-page-header-child-chips-group-vertical-gap","",c.spacing2),backgroundColor:o.extend("--ft-page-header-background-color","",c.colorWhite),bottomBorderColor:o.extend("--ft-page-header-bottom-border-color","",u.borderGlobalSubtle),bottomBorderWidth:o.create("--ft-page-header-bottom-border-width","","SIZE","1px")};var yu={horizontalPadding:o.extend("--ft-page-footer-horizontal-padding","",c.spacing6),verticalPadding:o.extend("--ft-page-footer-vertical-padding","",c.spacing2),verticalGap:o.extend("--ft-page-footer-vertical-gap","",c.spacing2),minHeight:o.create("--ft-page-footer-min-height","","SIZE","40px"),backgroundColor:o.extend("--ft-page-footer-background-color","",c.colorWhite),topBorderColor:o.extend("--ft-page-footer-top-border-color","",u.borderGlobalSubtle),topBorderWidth:o.create("--ft-page-footer-top-border-width","","SIZE","1px"),buttonsGroupGap:o.extend("--ft-page-footer-buttons-group-gap","",c.spacing4)};var gu={contentHorizontalPadding:o.extend("--ft-page-layout-content-horizontal-padding","",c.spacing6),contentVerticalPadding:o.extend("--ft-page-layout-content-vertical-padding","",c.spacing6)};var bu={smallContainerTargetWidth:o.create("--ft-modal-small-container-target-width","","SIZE","560px"),smallContainerMargin:o.extend("--ft-modal-small-container-margin","",c.spacing6),mediumContainerTargetWidth:o.create("--ft-modal-medium-container-target-width","","SIZE","800px"),mediumContainerMargin:o.extend("--ft-modal-medium-container-margin","",c.spacing6),largeContainerTargetWidth:o.create("--ft-modal-large-container-target-width","","SIZE","1040px"),largeContainerMargin:o.extend("--ft-modal-large-container-margin","",c.spacing6),overlayBackgroundColor:o.extend("--ft-modal-overlay-background-color","",c.colorGray700),overlayOpacity:o.extend("--ft-modal-overlay-opacity","",c.opacity40),shadow:o.extend("--ft-modal-shadow","",c.shadowElevation03),bodyBackgroundColor:o.extend("--ft-modal-body-background-color","",c.colorWhite),bodyColor:o.extend("--ft-modal-body-color","",u.contentGlobalPrimary),bodyHorizontalPadding:o.extend("--ft-modal-body-horizontal-padding","",c.spacing6),bodyVerticalPadding:o.extend("--ft-modal-body-vertical-padding","",c.spacing6),bodyVerticalGap:o.extend("--ft-modal-body-vertical-gap","",c.spacing6),headerBackgroundColor:o.extend("--ft-modal-header-background-color","",u.backgroundGlobalOnSurface),headerBorderColor:o.extend("--ft-modal-header-border-color","",u.borderGlobalSubtle),headerColor:o.extend("--ft-modal-header-color","",u.contentGlobalPrimary),headerLeadingIconColor:o.extend("--ft-modal-header-leading-icon-color","",u.contentGlobalPrimary),headerVerticalPadding:o.extend("--ft-modal-header-vertical-padding","",c.spacing1),headerRightPadding:o.extend("--ft-modal-header-right-padding","",c.spacing1),headerLeftPadding:o.extend("--ft-modal-header-left-padding","",c.spacing6),headerGap:o.extend("--ft-modal-header-gap","",c.spacing2),headerBorderBottomWidth:o.create("--ft-modal-header-border-bottom-width","","SIZE","1px"),borderRadius:o.extend("--ft-modal-border-radius","",c.borderRadiusM)};var vu={overlayOpacity:o.extend("--ft-drawer-overlay-opacity","",c.opacity40),shadow:o.extend("--ft-drawer-shadow","",c.shadowElevation03),bodyColor:o.extend("--ft-drawer-body-color","",u.contentGlobalPrimary),bodyHorizontalPadding:o.extend("--ft-drawer-body-horizontal-padding","",c.spacing6),bodyVerticalPadding:o.extend("--ft-drawer-body-vertical-padding","",c.spacing6),bodyGap:o.extend("--ft-drawer-body-gap","",c.spacing6),bodyBackgroundColor:o.extend("--ft-drawer-body-background-color","",c.colorWhite),headerBackgroundColor:o.extend("--ft-drawer-header-background-color","",u.backgroundGlobalOnSurface),headerBorderColor:o.extend("--ft-drawer-header-border-color","",u.borderGlobalSubtle),headerColor:o.extend("--ft-drawer-header-color","",u.contentGlobalPrimary),headerTrailingIconColor:o.extend("--ft-drawer-header-trailing-icon-color","",u.contentGlobalSecondary),headerHeight:o.create("--ft-drawer-header-height","","SIZE","50px"),headerHorizontalPadding:o.extend("--ft-drawer-header-horizontal-padding","",c.spacing2),headerBorderWidth:o.create("--ft-drawer-header-border-width","","SIZE","1px"),headerGap:o.extend("--ft-drawer-header-gap","",c.spacing3),buttonsBarBackgroundColor:o.extend("--ft-drawer-buttons-bar-background-color","",u.backgroundGlobalOnSurface),buttonsBarBorderColor:o.extend("--ft-drawer-buttons-bar-border-color","",u.borderGlobalSubtle),buttonsBarColor:o.extend("--ft-drawer-buttons-bar-color","",u.contentGlobalPrimary),buttonsBarHorizontalPadding:o.extend("--ft-drawer-buttons-bar-horizontal-padding","",c.spacing6),buttonsBarVerticalPadding:o.extend("--ft-drawer-buttons-bar-vertical-padding","",c.spacing4),buttonsBarGap:o.extend("--ft-drawer-buttons-bar-gap","",c.spacing3),buttonsBarBorderWidth:o.create("--ft-drawer-buttons-bar-border-width","","SIZE","1px"),containerWidth:o.create("--ft-drawer-container-width","","SIZE","66%"),containerMinWidth:o.create("--ft-drawer-container-min-width","","SIZE","500px"),containerMaxWidth:o.create("--ft-drawer-container-max-width","","SIZE","1000px"),containerHeight:o.create("--ft-drawer-container-height","","SIZE","100%"),overlayBackgroundColor:o.extend("--ft-drawer-overlay-background-color","",c.colorGray700)};var xu={offBorderBottomWidth:o.create("--ft-tabs-off-border-bottom-width","","SIZE","1px"),offHoverStateLayerOpacity:o.extend("--ft-tabs-off-hover-state-layer-opacity","",c.opacity8),offDefaultStateLayerOpacity:o.extend("--ft-tabs-off-default-state-layer-opacity","",c.opacity0),offFocusStateLayerOpacity:o.extend("--ft-tabs-off-focus-state-layer-opacity","",c.opacity8),offDisabledComponentOpacity:o.extend("--ft-tabs-off-disabled-component-opacity","",c.opacity40),offColor:o.extend("--ft-tabs-off-color","",u.contentGlobalSubtle),offStateLayerColor:o.extend("--ft-tabs-off-state-layer-color","",u.contentGlobalSubtle),offBorderBottomColor:o.extend("--ft-tabs-off-border-bottom-color","",u.borderGlobalSubtle),activeTabIndicatorHeight:o.create("--ft-tabs-active-tab-indicator-height","","SIZE","3px"),topLeftBorderRadius:o.extend("--ft-tabs-top-left-border-radius","",c.borderRadiusS),topRightBorderRadius:o.extend("--ft-tabs-top-right-border-radius","",c.borderRadiusS),withLabelHorizontalPadding:o.extend("--ft-tabs-with-label-horizontal-padding","",c.spacing4),withLabelVerticalPadding:o.extend("--ft-tabs-with-label-vertical-padding","",c.spacing3),horizontalGap:o.extend("--ft-tabs-horizontal-gap","",c.spacing1),verticalGap:o.extend("--ft-tabs-vertical-gap","",c.spacing1),onHoverStateLayerOpacity:o.extend("--ft-tabs-on-hover-state-layer-opacity","",c.opacity16),onDefaultStateLayerOpacity:o.extend("--ft-tabs-on-default-state-layer-opacity","",c.opacity8),onFocusStateLayerOpacity:o.extend("--ft-tabs-on-focus-state-layer-opacity","",c.opacity16),onActiveStateLayerOpacity:o.extend("--ft-tabs-on-active-state-layer-opacity","",c.opacity24),onColor:o.extend("--ft-tabs-on-color","",u.contentActionPrimary),onStateLayerColor:o.extend("--ft-tabs-on-state-layer-color","",u.contentActionPrimary),onActiveTabIndicatorColor:o.extend("--ft-tabs-on-active-tab-indicator-color","",u.contentActionPrimary),iconOnlyHorizontalPadding:o.extend("--ft-tabs-icon-only-horizontal-padding","",c.spacing4),iconOnlyVerticalPadding:o.extend("--ft-tabs-icon-only-vertical-padding","",c.spacing4),alertTopPadding:o.extend("--ft-tabs-alert-top-padding","",c.spacing1),alertRightPadding:o.extend("--ft-tabs-alert-right-padding","",c.spacing05),focusOutlineWidth:o.create("--ft-tabs-focus-outline-width","","SIZE","2px"),focusFocusRingColor:o.extend("--ft-tabs-focus-focus-ring-color","",u.borderActionFocusRing)};var Su={fieldHorizontalPadding:o.extend("--ft-text-input-field-horizontal-padding","",c.spacing4),fieldHorizontalGap:o.extend("--ft-text-input-field-horizontal-gap","",c.spacing3),fieldVerticalGap:o.extend("--ft-text-input-field-vertical-gap","",c.spacing05),fieldIconSize:o.extend("--ft-text-input-field-icon-size","",c.iconSize3),fieldHeight:o.create("--ft-text-input-field-height","","SIZE","50px"),helperHorizontalPadding:o.extend("--ft-text-input-helper-horizontal-padding","",c.spacing4),helperHorizontalGap:o.extend("--ft-text-input-helper-horizontal-gap","",c.spacing1),helperIconSize:o.extend("--ft-text-input-helper-icon-size","",c.iconSize2),borderRadius:o.extend("--ft-text-input-border-radius","",c.borderRadiusM),backgroundColor:o.extend("--ft-text-input-background-color","",c.colorWhite),contentValueColor:o.extend("--ft-text-input-content-value-color","",u.contentGlobalPrimary),trailingIconColor:o.extend("--ft-text-input-trailing-icon-color","",u.contentGlobalSubtle),labelColor:o.extend("--ft-text-input-label-color","",u.contentGlobalSubtle),defaultBorderColor:o.extend("--ft-text-input-default-border-color","",u.borderInputPrimary),defaultHelperTextColor:o.extend("--ft-text-input-default-helper-text-color","",u.contentGlobalSubtle),defaultBorderWidth:o.create("--ft-text-input-default-border-width","","SIZE","1px"),errorBorderWidth:o.create("--ft-text-input-error-border-width","","SIZE","2px"),errorBorderColor:o.extend("--ft-text-input-error-border-color","",u.borderErrorPrimary),errorHelperTextColor:o.extend("--ft-text-input-error-helper-text-color","",u.contentErrorPrimary),errorHelperIconColor:o.extend("--ft-text-input-error-helper-icon-color","",u.contentErrorIconOnly),warningBorderWidth:o.create("--ft-text-input-warning-border-width","","SIZE","2px"),focusOutlineWidth:o.create("--ft-text-input-focus-outline-width","","SIZE","2px"),focusFocusRingColor:o.extend("--ft-text-input-focus-focus-ring-color","",u.borderActionFocusRing),focusOutlineOffset:o.create("--ft-text-input-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:o.extend("--ft-text-input-disabled-component-opacity","",c.opacity40)};var Ou={backgroundColor:o.extend("--ft-text-area-background-color","",c.colorWhite),contentValueColor:o.extend("--ft-text-area-content-value-color","",u.contentGlobalPrimary),labelColor:o.extend("--ft-text-area-label-color","",u.contentGlobalSubtle),defaultBorderColor:o.extend("--ft-text-area-default-border-color","",u.borderInputPrimary),defaultHelperTextColor:o.extend("--ft-text-area-default-helper-text-color","",u.contentGlobalSubtle),defaultBorderWidth:o.create("--ft-text-area-default-border-width","","SIZE","1px"),errorBorderWidth:o.create("--ft-text-area-error-border-width","","SIZE","2px"),errorBorderColor:o.extend("--ft-text-area-error-border-color","",u.borderErrorPrimary),errorHelperTextColor:o.extend("--ft-text-area-error-helper-text-color","",u.contentErrorPrimary),errorHelperIconColor:o.extend("--ft-text-area-error-helper-icon-color","",u.contentErrorIconOnly),focusFocusRingColor:o.extend("--ft-text-area-focus-focus-ring-color","",u.borderActionFocusRing),focusOutlineWidth:o.create("--ft-text-area-focus-outline-width","","SIZE","2px"),focusOutlineOffset:o.create("--ft-text-area-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:o.extend("--ft-text-area-disabled-component-opacity","",c.opacity40),fieldHorizontalLeftPadding:o.extend("--ft-text-area-field-horizontal-left-padding","",c.spacing4),fieldHorizontalGap:o.extend("--ft-text-area-field-horizontal-gap","",c.spacing3),fieldVerticalGap:o.extend("--ft-text-area-field-vertical-gap","",c.spacing05),fieldMinHeight:o.create("--ft-text-area-field-min-height","","SIZE","64px"),helperHorizontalPadding:o.extend("--ft-text-area-helper-horizontal-padding","",c.spacing4),helperHorizontalGap:o.extend("--ft-text-area-helper-horizontal-gap","",c.spacing1),helperIconSize:o.extend("--ft-text-area-helper-icon-size","",c.iconSize2),borderRadius:o.extend("--ft-text-area-border-radius","",c.borderRadiusM)};var Cu={height:o.create("--ft-floating-menu-height","","SIZE","50px"),horizontalPadding:o.extend("--ft-floating-menu-horizontal-padding","",c.spacing4),offIconColor:o.extend("--ft-floating-menu-off-icon-color","",u.contentGlobalPrimary),offColor:o.extend("--ft-floating-menu-off-color","",u.contentGlobalPrimary),onColor:o.extend("--ft-floating-menu-on-color","",u.contentActionPrimary),onStateLayerColor:o.extend("--ft-floating-menu-on-state-layer-color","",u.contentActionPrimary),gap:o.extend("--ft-floating-menu-gap","",c.spacing3),focusFocusRingColor:o.extend("--ft-floating-menu-focus-focus-ring-color","",u.borderActionFocusRing),focusOutlineWidth:o.create("--ft-floating-menu-focus-outline-width","","SIZE","3px"),focusStateLayerOpacity:o.extend("--ft-floating-menu-focus-state-layer-opacity","",c.opacity8),hoverStateLayerOpacity:o.extend("--ft-floating-menu-hover-state-layer-opacity","",c.opacity8),activeStateLayerOpacity:o.extend("--ft-floating-menu-active-state-layer-opacity","",c.opacity16),disabledComponentOpacity:o.extend("--ft-floating-menu-disabled-component-opacity","",c.opacity40),iconSize:o.extend("--ft-floating-menu-icon-size","",c.iconSize3),backgroundColor:o.extend("--ft-floating-menu-background-color","",u.backgroundGlobalOnSurface),shadow:o.extend("--ft-floating-menu-shadow","",c.shadowElevation02)};var Eu={fieldHorizontalPadding:o.extend("--ft-combobox-single-select-field-horizontal-padding","",c.spacing4),fieldHorizontalGap:o.extend("--ft-combobox-single-select-field-horizontal-gap","",c.spacing3),fieldVerticalGap:o.extend("--ft-combobox-single-select-field-vertical-gap","",c.spacing05),fieldIconSize:o.extend("--ft-combobox-single-select-field-icon-size","",c.iconSize3),fieldHeight:o.create("--ft-combobox-single-select-field-height","","SIZE","50px"),helperHorizontalPadding:o.extend("--ft-combobox-single-select-helper-horizontal-padding","",c.spacing4),helperHorizontalGap:o.extend("--ft-combobox-single-select-helper-horizontal-gap","",c.spacing1),helperVerticalGap:o.extend("--ft-combobox-single-select-helper-vertical-gap","",c.spacing1),helperIconSize:o.extend("--ft-combobox-single-select-helper-icon-size","",c.iconSize2),menuVerticalGap:o.extend("--ft-combobox-single-select-menu-vertical-gap","",c.spacing2),borderRadius:o.extend("--ft-combobox-single-select-border-radius","",c.borderRadiusM),backgroundColor:o.extend("--ft-combobox-single-select-background-color","",c.colorWhite),labelColor:o.extend("--ft-combobox-single-select-label-color","",u.contentGlobalSubtle),contentValueColor:o.extend("--ft-combobox-single-select-content-value-color","",u.contentGlobalPrimary),trailingIconColor:o.extend("--ft-combobox-single-select-trailing-icon-color","",u.contentGlobalSubtle),defaultBorderColor:o.extend("--ft-combobox-single-select-default-border-color","",u.borderInputPrimary),defaultHelperTextColor:o.extend("--ft-combobox-single-select-default-helper-text-color","",u.contentGlobalSubtle),defaultBorderWidth:o.create("--ft-combobox-single-select-default-border-width","","SIZE","1px"),errorBorderWidth:o.create("--ft-combobox-single-select-error-border-width","","SIZE","2px"),errorBorderColor:o.extend("--ft-combobox-single-select-error-border-color","",u.borderErrorPrimary),errorHelperTextColor:o.extend("--ft-combobox-single-select-error-helper-text-color","",u.contentErrorPrimary),warningBorderWidth:o.create("--ft-combobox-single-select-warning-border-width","","SIZE","2px"),warningBorderColor:o.extend("--ft-combobox-single-select-warning-border-color","",u.borderWarningPrimary),warningHelperTextColor:o.extend("--ft-combobox-single-select-warning-helper-text-color","",u.contentWarningPrimary),warningHelperIconColor:o.extend("--ft-combobox-single-select-warning-helper-icon-color","",u.contentWarningIconOnly),focusOutlineWidth:o.create("--ft-combobox-single-select-focus-outline-width","","SIZE","2px"),focusFocusRingColor:o.extend("--ft-combobox-single-select-focus-focus-ring-color","",u.borderActionFocusRing),focusOutlineOffset:o.create("--ft-combobox-single-select-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:o.extend("--ft-combobox-single-select-disabled-component-opacity","",c.opacity40)};var wu={backgroundColor:o.extend("--ft-combobox-multi-select-background-color","",c.colorWhite),labelColor:o.extend("--ft-combobox-multi-select-label-color","",u.contentGlobalSubtle),trailingIconColor:o.extend("--ft-combobox-multi-select-trailing-icon-color","",u.contentGlobalSubtle),defaultBorderColor:o.extend("--ft-combobox-multi-select-default-border-color","",u.borderInputPrimary),defaultHelperTextColor:o.extend("--ft-combobox-multi-select-default-helper-text-color","",u.contentGlobalSubtle),defaultBorderWidth:o.create("--ft-combobox-multi-select-default-border-width","","SIZE","1px"),errorBorderColor:o.extend("--ft-combobox-multi-select-error-border-color","",u.borderErrorPrimary),errorHelperTextColor:o.extend("--ft-combobox-multi-select-error-helper-text-color","",u.contentErrorPrimary),errorHelperIcon:o.extend("--ft-combobox-multi-select-error-helper-icon","",u.contentErrorIconOnly),errorBorderWidth:o.create("--ft-combobox-multi-select-error-border-width","","SIZE","2px"),warningBorderColor:o.extend("--ft-combobox-multi-select-warning-border-color","",u.borderWarningPrimary),warningHelperTextColor:o.extend("--ft-combobox-multi-select-warning-helper-text-color","",u.contentWarningPrimary),warningHelperIconColor:o.extend("--ft-combobox-multi-select-warning-helper-icon-color","",u.contentWarningIconOnly),warningBorderWidth:o.create("--ft-combobox-multi-select-warning-border-width","","SIZE","2px"),focusFocusRingColor:o.extend("--ft-combobox-multi-select-focus-focus-ring-color","",u.borderActionFocusRing),focusOutlineWidth:o.create("--ft-combobox-multi-select-focus-outline-width","","SIZE","2px"),focusOutlineOffset:o.create("--ft-combobox-multi-select-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:o.extend("--ft-combobox-multi-select-disabled-component-opacity","",c.opacity40),helperHorizontalPadding:o.extend("--ft-combobox-multi-select-helper-horizontal-padding","",c.spacing4),helperHorizontalGap:o.extend("--ft-combobox-multi-select-helper-horizontal-gap","",c.spacing1),helperVerticalGap:o.extend("--ft-combobox-multi-select-helper-vertical-gap","",c.spacing1),helperIconSize:o.extend("--ft-combobox-multi-select-helper-icon-size","",c.iconSize2),fieldHorizontalPadding:o.extend("--ft-combobox-multi-select-field-horizontal-padding","",c.spacing4),fieldHorizontalGap:o.extend("--ft-combobox-multi-select-field-horizontal-gap","",c.spacing3),fieldVerticalGap:o.extend("--ft-combobox-multi-select-field-vertical-gap","",c.spacing05),fieldIconSize:o.extend("--ft-combobox-multi-select-field-icon-size","",c.iconSize3),fieldMaxHeight:o.create("--ft-combobox-multi-select-field-max-height","","SIZE","112px"),contentValuesHorizontalGap:o.extend("--ft-combobox-multi-select-content-values-horizontal-gap","",c.spacing1),contentValuesVerticalGap:o.extend("--ft-combobox-multi-select-content-values-vertical-gap","",c.spacing1),borderRadius:o.extend("--ft-combobox-multi-select-border-radius","",c.borderRadiusM)};var Au={backgroundColor:o.extend("--ft-popover-background-color","",u.backgroundGlobalOnSurface),horizontalPadding:o.extend("--ft-popover-horizontal-padding","",c.spacing6),verticalPadding:o.extend("--ft-popover-vertical-padding","",c.spacing6),titleColor:o.extend("--ft-popover-title-color","",u.contentGlobalPrimary),bodyColor:o.extend("--ft-popover-body-color","",u.contentGlobalSecondary),linkColor:o.extend("--ft-popover-link-color","",u.contentActionPrimary),gap:o.extend("--ft-popover-gap","",c.spacing3),borderRadius:o.extend("--ft-popover-border-radius","",c.borderRadiusM),shadow:o.extend("--ft-popover-shadow","",c.shadowElevation02),maxWidth:o.create("--ft-popover-max-width","","SIZE","440px")};var Ru={hoverStateLayerOpacity:o.extend("--ft-collapsible-hover-state-layer-opacity","",c.opacity8),focusStateLayerOpacity:o.extend("--ft-collapsible-focus-state-layer-opacity","",c.opacity8),focusOutlineWidth:o.create("--ft-collapsible-focus-outline-width","","SIZE","3px"),focusFocusRingColor:o.extend("--ft-collapsible-focus-focus-ring-color","",u.borderActionFocusRing),activeStateLayerOpacity:o.extend("--ft-collapsible-active-state-layer-opacity","",c.opacity16),disabledComponentOpacity:o.extend("--ft-collapsible-disabled-component-opacity","",c.opacity40),horizontalPadding:o.extend("--ft-collapsible-horizontal-padding","",c.spacing4),verticalPadding:o.extend("--ft-collapsible-vertical-padding","",c.spacing3),color:o.extend("--ft-collapsible-color","",u.contentGlobalPrimary),stateLayerColor:o.extend("--ft-collapsible-state-layer-color","",u.contentGlobalPrimary),backgroundColor:o.extend("--ft-collapsible-background-color","",u.backgroundGlobalOnSurface),borderColor:o.extend("--ft-collapsible-border-color","",u.borderGlobalSubtle),iconSize:o.extend("--ft-collapsible-icon-size","",c.iconSize3)};var _u={groupHorizontalPadding:o.extend("--ft-switch-group-horizontal-padding","",c.spacing1),groupVerticalPadding:o.extend("--ft-switch-group-vertical-padding","",c.spacing1),groupGap:o.extend("--ft-switch-group-gap","",c.spacing1),groupBackgroundColor:o.extend("--ft-switch-group-background-color","",u.backgroundGlobalSurface),groupBorderColor:o.extend("--ft-switch-group-border-color","",u.borderGlobalSubtle),groupBorderRadius:o.create("--ft-switch-group-border-radius","","SIZE","6px"),labelHorizontalPadding:o.extend("--ft-switch-label-horizontal-padding","",c.spacing2),labelVerticalPadding:o.extend("--ft-switch-label-vertical-padding","",c.spacing1),offHoverStateLayerOpacity:o.extend("--ft-switch-off-hover-state-layer-opacity","",c.opacity8),offFocusStateLayerOpacity:o.extend("--ft-switch-off-focus-state-layer-opacity","",c.opacity8),offActiveStateLayerOpacity:o.extend("--ft-switch-off-active-state-layer-opacity","",c.opacity16),offDisabledComponentOpacity:o.extend("--ft-switch-off-disabled-component-opacity","",c.opacity40),offColor:o.extend("--ft-switch-off-color","",u.contentGlobalSubtle),offStateLayerColor:o.extend("--ft-switch-off-state-layer-color","",u.contentGlobalSubtle),onHoverStateLayerOpacity:o.extend("--ft-switch-on-hover-state-layer-opacity","",c.opacity8),onFocusStateLayerOpacity:o.extend("--ft-switch-on-focus-state-layer-opacity","",c.opacity8),onActiveStateLayerOpacity:o.extend("--ft-switch-on-active-state-layer-opacity","",c.opacity16),onDisabledComponentOpacity:o.extend("--ft-switch-on-disabled-component-opacity","",c.opacity40),onColor:o.extend("--ft-switch-on-color","",u.contentActionPrimary),onStateLayerColor:o.extend("--ft-switch-on-state-layer-color","",u.contentActionPrimary),iconHorizontalPadding:o.extend("--ft-switch-icon-horizontal-padding","",c.spacing1),iconVerticalPadding:o.extend("--ft-switch-icon-vertical-padding","",c.spacing1),focusOutlineWidth:o.create("--ft-switch-focus-outline-width","","SIZE","2px"),focusFocusRingColor:o.extend("--ft-switch-focus-focus-ring-color","",u.borderActionFocusRing),optionBorderRadius:o.extend("--ft-switch-option-border-radius","",c.borderRadiusS)};var Nu={color1Light:o.extend("--ft-chart-1-light","for area color charts",c.colorBrand40),color1Base:o.extend("--ft-chart-1-base","for line charts",c.colorBrand0),color2Light:o.extend("--ft-chart-2-light","for area color charts",c.colorYellow60),color2Base:o.extend("--ft-chart-2-base","for line charts",c.colorYellow100),color3Light:o.extend("--ft-chart-3-light","",c.colorUltramarine40),color3Base:o.extend("--ft-chart-3-base","",c.colorUltramarine70),color4Light:o.extend("--ft-chart-4-light","",c.colorCyan50),color4Base:o.extend("--ft-chart-4-base","",c.colorCyan100),color5Light:o.extend("--ft-chart-5-light","",c.colorRed40),color5Base:o.extend("--ft-chart-5-base","",c.colorRed60),color6Light:o.extend("--ft-chart-6-light","",c.colorGreen40),color6Base:o.extend("--ft-chart-6-base","",c.colorGreen70),color7Light:o.extend("--ft-chart-7-light","",c.colorOrange70),color7Base:o.extend("--ft-chart-7-base","",c.colorOrange100),color8Light:o.extend("--ft-chart-8-light","",c.colorAvocado70),color8Base:o.extend("--ft-chart-8-base","",c.colorAvocado200),color9Light:o.extend("--ft-chart-9-light","",c.colorBrown50),color9Base:o.extend("--ft-chart-9-base","",c.colorBrown200),color10Light:o.extend("--ft-chart-10-light","",c.colorGray50),color10Base:o.extend("--ft-chart-10-base","",c.colorGray80),monochrome10:o.extend("--ft-chart-monochrome-10","",c.colorBrand10),monochrome20:o.extend("--ft-chart-monochrome-20","",c.colorBrand20),monochrome30:o.extend("--ft-chart-monochrome-30","",c.colorBrand40),monochrome40:o.extend("--ft-chart-monochrome-40","",c.colorBrand60),monochrome50:o.extend("--ft-chart-monochrome-50","",c.colorBrand0),monochrome60:o.extend("--ft-chart-monochrome-60","",c.colorBrand200),scatterplotQuadrantPopularOldBackgroundColor:o.extend("--ft-chart-scatterplot-quadrant-popular-old-background-color","",c.colorYellow10),scatterplotQuadrantPopularNewBackgroundColor:o.extend("--ft-chart-scatterplot-quadrant-popular-new-background-color","",c.colorAvocado10),scatterplotQuadrantUnpopularOldBackgroundColor:o.extend("--ft-chart-scatterplot-quadrant-unpopular-old-background-color","",c.colorCyan10),scatterplotQuadrantUnpopularNewBackgroundColor:o.extend("--ft-chart-scatterplot-quadrant-unpopular-new-background-color","",c.colorRed10),scatterplotDatapointInitialDefaultBackgroundColor:o.extend("--ft-chart-scatterplot-datapoint-initial-default-background-color","",c.colorBrand70),scatterplotDatapointInitialDefaultBackgroundOpacity:o.extend("--ft-chart-scatterplot-datapoint-initial-default-background-opacity","",c.opacity48),scatterplotDatapointInitialHoverBackgroundColor:o.extend("--ft-chart-scatterplot-datapoint-initial-hover-background-color","",c.colorBrand0),scatterplotDatapointSelectedDefaultBackgroundColor:o.extend("--ft-chart-scatterplot-datapoint-selected-default-background-color","",c.colorBrand100),scatterplotDatapointSelectedHoverBackgroundColor:o.extend("--ft-chart-scatterplot-datapoint-selected-hover-background-color","",c.colorBrand200),scatterplotDatapointUnselectedDefaultBackgroundColor:o.extend("--ft-chart-scatterplot-datapoint-unselected-default-background-color","",c.colorGray60),scatterplotDatapointUnselectedDefaultBackgroundOpacity:o.extend("--ft-chart-scatterplot-datapoint-unselected-default-background-opacity","",c.opacity48),scatterplotDatapointUnselectedHoverBackgroundColor:o.extend("--ft-chart-scatterplot-datapoint-unselected-hover-background-color","",c.colorGray70),scatterplotDatapointHoverHoverRingColor:o.extend("--ft-chart-scatterplot-datapoint-hover-hover-ring-color","",c.colorCyan200)};var Iu={color1IconColor:o.extend("--ft-page-designer-1-icon-color","for area color charts",c.colorCyan0),color1ToolbarColor:o.extend("--ft-page-designer-1-toolbar-color","for area color charts",c.colorCyan0),color2IconColor:o.extend("--ft-page-designer-2-icon-color","for area color charts",c.colorBrand0),color2ToolbarColor:o.extend("--ft-page-designer-2-toolbar-color","for area color charts",c.colorBrand0),color3IconColor:o.extend("--ft-page-designer-3-icon-color","for area color charts",c.colorYellow200),color3ToolbarColor:o.extend("--ft-page-designer-3-toolbar-color","for area color charts",c.colorYellow200),color4IconColor:o.extend("--ft-page-designer-4-icon-color","for area color charts",c.colorUltramarine50),color4ToolbarColor:o.extend("--ft-page-designer-4-toolbar-color","for area color charts",c.colorUltramarine50),color5IconColor:o.extend("--ft-page-designer-5-icon-color","for area color charts",c.colorGreen0),color5ToolbarColor:o.extend("--ft-page-designer-5-toolbar-color","for area color charts",c.colorGreen0),color6IconColor:o.extend("--ft-page-designer-6-icon-color","for area color charts",c.colorOrange0),color6ToolbarColor:o.extend("--ft-page-designer-6-toolbar-color","for area color charts",c.colorOrange0),color7IconColor:o.extend("--ft-page-designer-7-icon-color","for area color charts",c.colorAvocado200),color7ToolbarColor:o.extend("--ft-page-designer-7-toolbar-color","for area color charts",c.colorAvocado200),color8IconColor:o.extend("--ft-page-designer-8-icon-color","for area color charts",c.colorBrown0),color8ToolbarColor:o.extend("--ft-page-designer-8-toolbar-color","for area color charts",c.colorBrown0)};var Tu={borderWidth:o.create("--ft-notice-border-width","","SIZE","1px"),horizontalPadding:o.extend("--ft-notice-horizontal-padding","",c.spacing3),verticalPadding:o.extend("--ft-notice-vertical-padding","",c.spacing2),borderRadius:o.extend("--ft-notice-border-radius","",c.borderRadiusS),gap:o.extend("--ft-notice-gap","",c.spacing2),iconSize:o.extend("--ft-notice-icon-size","",c.iconSize3),infoBackgroundColor:o.extend("--ft-notice-info-background-color","",u.backgroundInfoSubtle),infoBorderColor:o.extend("--ft-notice-info-border-color","",u.borderInfoSubtle),infoColor:o.extend("--ft-notice-info-color","",u.contentInfoPrimary),infoIconColor:o.extend("--ft-notice-info-icon-color","",u.contentInfoIconOnly),warningBackgroundColor:o.extend("--ft-notice-warning-background-color","",u.backgroundWarningSubtle),warningBorderColor:o.extend("--ft-notice-warning-border-color","",u.borderWarningSubtle),warningColor:o.extend("--ft-notice-warning-color","",u.contentWarningPrimary),warningIconColor:o.extend("--ft-notice-warning-icon-color","",u.contentWarningIconOnly),errorBackgroundColor:o.extend("--ft-notice-error-background-color","",u.backgroundErrorSubtle),errorBorderColor:o.extend("--ft-notice-error-border-color","",u.borderErrorSubtle),errorColor:o.extend("--ft-notice-error-color","",u.contentErrorPrimary),errorIconColor:o.extend("--ft-notice-error-icon-color","",u.contentErrorIconOnly),successBackgroundColor:o.extend("--ft-notice-success-background-color","",u.backgroundSuccessSubtle),successBorderColor:o.extend("--ft-notice-success-border-color","",u.borderSuccessSubtle),successColor:o.extend("--ft-notice-success-color","",u.contentSuccessPrimary),successIconColor:o.extend("--ft-notice-success-icon-color","",u.contentSuccessIconOnly)};var Pu={color:o.extend("--ft-checkbox-color","",u.contentGlobalPrimary),checkedBackgroundColor:o.extend("--ft-checkbox-checked-background-color","",u.contentActionPrimary),checkedStateLayerColor:o.extend("--ft-checkbox-checked-state-layer-color","",u.contentActionPrimary),checkedIconColor:o.extend("--ft-checkbox-checked-icon-color","",u.contentGlobalOnColor),checkedHoverStateLayerOpacity:o.extend("--ft-checkbox-checked-hover-state-layer-opacity","",c.opacity16),checkedFocusStateLayerOpacity:o.extend("--ft-checkbox-checked-focus-state-layer-opacity","",c.opacity16),checkedActiveStateLayerOpacity:o.extend("--ft-checkbox-checked-active-state-layer-opacity","",c.opacity24),checkedDisabledComponentOpacity:o.extend("--ft-checkbox-checked-disabled-component-opacity","",c.opacity40),uncheckedBorderColor:o.extend("--ft-checkbox-unchecked-border-color","",c.colorGray80),uncheckedStateLayerColor:o.extend("--ft-checkbox-unchecked-state-layer-color","",c.colorGray80),uncheckedHoverStateLayerOpacity:o.extend("--ft-checkbox-unchecked-hover-state-layer-opacity","",c.opacity16),uncheckedFocusStateLayerOpacity:o.extend("--ft-checkbox-unchecked-focus-state-layer-opacity","",c.opacity16),uncheckedActiveStateLayerOpacity:o.extend("--ft-checkbox-unchecked-active-state-layer-opacity","",c.opacity24),uncheckedDisabledComponentOpacity:o.extend("--ft-checkbox-unchecked-disabled-component-opacity","",c.opacity40),focusFocusRingColor:o.extend("--ft-checkbox-focus-focus-ring-color","",u.borderActionFocusRing),focusOutlineOffset:o.create("--ft-checkbox-focus-outline-offset","","SIZE","3px"),focusOutlineWidth:o.create("--ft-checkbox-focus-outline-width","","SIZE","2px"),gap:o.extend("--ft-checkbox-gap","",c.spacing3)};var $u={offHoverStateLayerOpacity:o.extend("--ft-toggle-off-hover-state-layer-opacity","",c.opacity16),offFocusStateLayerOpacity:o.extend("--ft-toggle-off-focus-state-layer-opacity","",c.opacity16),offActiveStateLayerOpacity:o.extend("--ft-toggle-off-active-state-layer-opacity","",c.opacity24),offDisabledComponentOpacity:o.extend("--ft-toggle-off-disabled-component-opacity","",c.opacity40),offBackgroundColor:o.extend("--ft-toggle-off-background-color","",u.contentGlobalSubtle),offIconColor:o.extend("--ft-toggle-off-icon-color","",u.contentGlobalSubtle),offStateLayerColor:o.extend("--ft-toggle-off-state-layer-color","",u.contentGlobalSubtle),onHoverStateLayerOpacity:o.extend("--ft-toggle-on-hover-state-layer-opacity","",c.opacity16),onFocusStateLayerOpacity:o.extend("--ft-toggle-on-focus-state-layer-opacity","",c.opacity16),onActiveStateLayerOpacity:o.extend("--ft-toggle-on-active-state-layer-opacity","",c.opacity24),onDisabledComponentOpacity:o.extend("--ft-toggle-on-disabled-component-opacity","",c.opacity40),onBackgroundColor:o.extend("--ft-toggle-on-background-color","",u.contentActionPrimary),onStateLayerColor:o.extend("--ft-toggle-on-state-layer-color","",u.contentActionPrimary),onIconColor:o.extend("--ft-toggle-on-icon-color","",u.contentActionPrimary),color:o.extend("--ft-toggle-color","",u.contentGlobalPrimary),focusFocusRingColor:o.extend("--ft-toggle-focus-focus-ring-color","",u.borderActionFocusRing),gap:o.extend("--ft-toggle-gap","",c.spacing3)};var Lu={color:o.extend("--ft-radio-color","",u.contentGlobalPrimary),selectedRadioColor:o.extend("--ft-radio-selected-radio-color","",u.contentActionPrimary),selectedStateLayerColor:o.extend("--ft-radio-selected-state-layer-color","",u.contentActionPrimary),selectedHoverStateLayerOpacity:o.extend("--ft-radio-selected-hover-state-layer-opacity","",c.opacity16),selectedFocusStateLayerOpacity:o.extend("--ft-radio-selected-focus-state-layer-opacity","",c.opacity16),selectedActiveStateLayerOpacity:o.extend("--ft-radio-selected-active-state-layer-opacity","",c.opacity24),selectedDisabledComponentOpacity:o.extend("--ft-radio-selected-disabled-component-opacity","",c.opacity40),unselectedStateLayerColor:o.extend("--ft-radio-unselected-state-layer-color","",u.borderInputPrimary),unselectedBorderColor:o.extend("--ft-radio-unselected-border-color","",u.borderInputPrimary),unselectedHoverStateLayerOpacity:o.extend("--ft-radio-unselected-hover-state-layer-opacity","",c.opacity16),unselectedFocusStateLayerOpacity:o.extend("--ft-radio-unselected-focus-state-layer-opacity","",c.opacity16),unselectedActiveStateLayerOpacity:o.extend("--ft-radio-unselected-active-state-layer-opacity","",c.opacity24),unselectedDisabledComponentOpacity:o.extend("--ft-radio-unselected-disabled-component-opacity","",c.opacity40),focusFocusRingColor:o.extend("--ft-radio-focus-focus-ring-color","",u.borderActionFocusRing),focusOutlineOffset:o.create("--ft-radio-focus-outline-offset","","SIZE","3px"),focusOutlineWidth:o.create("--ft-radio-focus-outline-width","","SIZE","2px"),gap:o.extend("--ft-radio-gap","",c.spacing3)};var ku={iconSize:o.extend("--ft-notification-icon-size","",c.iconSize4),leftPadding:o.extend("--ft-notification-left-padding","",c.spacing5),rightPadding:o.extend("--ft-notification-right-padding","",c.spacing4),verticalPadding:o.extend("--ft-notification-vertical-padding","",c.spacing3),infoBackgroundColor:o.extend("--ft-notification-info-background-color","",u.backgroundInfoSubtle),infoColor:o.extend("--ft-notification-info-color","",u.contentInfoPrimary),infoIconColor:o.extend("--ft-notification-info-icon-color","",u.contentInfoIconOnly),infoBorderColor:o.extend("--ft-notification-info-border-color","",u.borderInfoSubtle),successBackgroundColor:o.extend("--ft-notification-success-background-color","",u.backgroundSuccessSubtle),successColor:o.extend("--ft-notification-success-color","",u.contentSuccessPrimary),successIconColor:o.extend("--ft-notification-success-icon-color","",u.contentSuccessIconOnly),successBorderColor:o.extend("--ft-notification-success-border-color","",u.borderSuccessSubtle),warningBackgroundColor:o.extend("--ft-notification-warning-background-color","",u.backgroundWarningSubtle),warningColor:o.extend("--ft-notification-warning-color","",u.contentWarningPrimary),warningIconColor:o.extend("--ft-notification-warning-icon-color","",u.contentWarningIconOnly),warningBorderColor:o.extend("--ft-notification-warning-border-color","",u.borderWarningSubtle),errorBackgroundColor:o.extend("--ft-notification-error-background-color","",u.backgroundErrorSubtle),errorColor:o.extend("--ft-notification-error-color","",u.contentErrorPrimary),errorIconColor:o.extend("--ft-notification-error-icon-color","",u.contentErrorIconOnly),errorBorderColor:o.extend("--ft-notification-error-border-color","",u.borderErrorSubtle),borderRadius:o.extend("--ft-notification-border-radius","",c.borderRadiusPill),borderWidth:o.create("--ft-notification-border-width","","SIZE","1px"),leadingGap:o.extend("--ft-notification-leading-gap","",c.spacing2),trailingGap:o.extend("--ft-notification-trailing-gap","",c.spacing8)};var Du={horizontalPadding:o.extend("--ft-tooltip-horizontal-padding","",c.spacing2),verticalPadding:o.extend("--ft-tooltip-vertical-padding","",c.spacing2),borderRadius:o.extend("--ft-tooltip-border-radius","",c.borderRadiusS),color:o.extend("--ft-tooltip-color","",u.contentGlobalOnColor),backgroundColor:o.extend("--ft-tooltip-background-color","",u.contentGlobalPrimary),backgroundOpacity:o.extend("--ft-tooltip-background-opacity","",c.opacity80),shadow:o.extend("--ft-tooltip-shadow","",c.shadowElevation02),maxWidth:o.create("--ft-tooltip-max-width","","SIZE","256px"),gap:o.extend("--ft-tooltip-gap","",c.spacing05)};var mr;(function(r){r.brand="brand",r.neutral="neutral",r.info="info",r.success="success",r.warning="warning",r.error="error"})(mr||(mr={}));var Ee;(function(r){r.large="large",r.medium="medium",r.small="small"})(Ee||(Ee={}));function xa(r){return`ftds--family-${r}`}function Sa(r){return`ftds--size-${r}`}var _={colorPrimary:o.create("--ft-color-primary","","COLOR","#2196F3"),colorPrimaryVariant:o.create("--ft-color-primary-variant","","COLOR","#1976D2"),colorSecondary:o.create("--ft-color-secondary","","COLOR","#FFCC80"),colorSecondaryVariant:o.create("--ft-color-secondary-variant","","COLOR","#F57C00"),colorSurface:o.create("--ft-color-surface","","COLOR","#FFFFFF"),colorContent:o.create("--ft-color-content","","COLOR","rgba(0, 0, 0, 0.87)"),colorError:o.create("--ft-color-error","","COLOR","#B00020"),colorOutline:o.create("--ft-color-outline","","COLOR","rgba(0, 0, 0, 0.14)"),colorOpacityHigh:o.create("--ft-color-opacity-high","","NUMBER","1"),colorOpacityMedium:o.create("--ft-color-opacity-medium","","NUMBER","0.74"),colorOpacityDisabled:o.create("--ft-color-opacity-disabled","","NUMBER","0.38"),colorOnPrimary:o.create("--ft-color-on-primary","","COLOR","#FFFFFF"),colorOnPrimaryHigh:o.create("--ft-color-on-primary-high","","COLOR","#FFFFFF"),colorOnPrimaryMedium:o.create("--ft-color-on-primary-medium","","COLOR","rgba(255, 255, 255, 0.74)"),colorOnPrimaryDisabled:o.create("--ft-color-on-primary-disabled","","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSecondary:o.create("--ft-color-on-secondary","","COLOR","#FFFFFF"),colorOnSecondaryHigh:o.create("--ft-color-on-secondary-high","","COLOR","#FFFFFF"),colorOnSecondaryMedium:o.create("--ft-color-on-secondary-medium","","COLOR","rgba(255, 255, 255, 0.74)"),colorOnSecondaryDisabled:o.create("--ft-color-on-secondary-disabled","","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSurface:o.create("--ft-color-on-surface","","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceHigh:o.create("--ft-color-on-surface-high","","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceMedium:o.create("--ft-color-on-surface-medium","","COLOR","rgba(0, 0, 0, 0.60)"),colorOnSurfaceDisabled:o.create("--ft-color-on-surface-disabled","","COLOR","rgba(0, 0, 0, 0.38)"),opacityContentOnSurfaceDisabled:o.create("--ft-opacity-content-on-surface-disabled","","NUMBER","0"),opacityContentOnSurfaceEnable:o.create("--ft-opacity-content-on-surface-enable","","NUMBER","0"),opacityContentOnSurfaceHover:o.create("--ft-opacity-content-on-surface-hover","","NUMBER","0.04"),opacityContentOnSurfaceFocused:o.create("--ft-opacity-content-on-surface-focused","","NUMBER","0.12"),opacityContentOnSurfacePressed:o.create("--ft-opacity-content-on-surface-pressed","","NUMBER","0.10"),opacityContentOnSurfaceSelected:o.create("--ft-opacity-content-on-surface-selected","","NUMBER","0.08"),opacityContentOnSurfaceDragged:o.create("--ft-opacity-content-on-surface-dragged","","NUMBER","0.08"),opacityPrimaryOnSurfaceDisabled:o.create("--ft-opacity-primary-on-surface-disabled","","NUMBER","0"),opacityPrimaryOnSurfaceEnable:o.create("--ft-opacity-primary-on-surface-enable","","NUMBER","0"),opacityPrimaryOnSurfaceHover:o.create("--ft-opacity-primary-on-surface-hover","","NUMBER","0.04"),opacityPrimaryOnSurfaceFocused:o.create("--ft-opacity-primary-on-surface-focused","","NUMBER","0.12"),opacityPrimaryOnSurfacePressed:o.create("--ft-opacity-primary-on-surface-pressed","","NUMBER","0.10"),opacityPrimaryOnSurfaceSelected:o.create("--ft-opacity-primary-on-surface-selected","","NUMBER","0.08"),opacityPrimaryOnSurfaceDragged:o.create("--ft-opacity-primary-on-surface-dragged","","NUMBER","0.08"),opacitySurfaceOnPrimaryDisabled:o.create("--ft-opacity-surface-on-primary-disabled","","NUMBER","0"),opacitySurfaceOnPrimaryEnable:o.create("--ft-opacity-surface-on-primary-enable","","NUMBER","0"),opacitySurfaceOnPrimaryHover:o.create("--ft-opacity-surface-on-primary-hover","","NUMBER","0.04"),opacitySurfaceOnPrimaryFocused:o.create("--ft-opacity-surface-on-primary-focused","","NUMBER","0.12"),opacitySurfaceOnPrimaryPressed:o.create("--ft-opacity-surface-on-primary-pressed","","NUMBER","0.10"),opacitySurfaceOnPrimarySelected:o.create("--ft-opacity-surface-on-primary-selected","","NUMBER","0.08"),opacitySurfaceOnPrimaryDragged:o.create("--ft-opacity-surface-on-primary-dragged","","NUMBER","0.08"),elevation00:o.create("--ft-elevation-00","","UNKNOWN","0px 0px 0px 0px rgba(0, 0, 0, 0), 0px 0px 0px 0px rgba(0, 0, 0, 0), 0px 0px 0px 0px rgba(0, 0, 0, 0)"),elevation01:o.create("--ft-elevation-01","","UNKNOWN","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)"),elevation02:o.create("--ft-elevation-02","","UNKNOWN","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)"),elevation03:o.create("--ft-elevation-03","","UNKNOWN","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)"),elevation04:o.create("--ft-elevation-04","","UNKNOWN","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)"),elevation06:o.create("--ft-elevation-06","","UNKNOWN","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)"),elevation08:o.create("--ft-elevation-08","","UNKNOWN","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)"),elevation12:o.create("--ft-elevation-12","","UNKNOWN","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)"),elevation16:o.create("--ft-elevation-16","","UNKNOWN","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)"),elevation24:o.create("--ft-elevation-24","","UNKNOWN","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)"),borderRadiusS:o.create("--ft-border-radius-S","","SIZE","4px"),borderRadiusM:o.create("--ft-border-radius-M","","SIZE","8px"),borderRadiusL:o.create("--ft-border-radius-L","","SIZE","12px"),borderRadiusXL:o.create("--ft-border-radius-XL","","SIZE","16px"),titleFont:o.create("--ft-title-font","","UNKNOWN","Ubuntu, system-ui, sans-serif"),contentFont:o.create("--ft-content-font","","UNKNOWN","'Open Sans', system-ui, sans-serif"),transitionDuration:o.create("--ft-transition-duration","","UNKNOWN","250ms"),transitionTimingFunction:o.create("--ft-transition-timing-function","","UNKNOWN","ease-in-out")};var Ma={};rt(Ma,{computeFlipOffsetPosition:()=>of,computeOffsetPosition:()=>$o});var Gl=["top","right","bottom","left"],jl=["start","end"],Ea=Gl.reduce((r,t)=>r.concat(t,t+"-"+jl[0],t+"-"+jl[1]),[]),Ro=Math.min,Be=Math.max,_o=Math.round;var we=r=>({x:r,y:r}),Mu={left:"right",right:"left",bottom:"top",top:"bottom"},Fu={start:"end",end:"start"};function wa(r,t,e){return Be(r,Ro(t,e))}function Mr(r,t){return typeof r=="function"?r(t):r}function pe(r){return r.split("-")[0]}function ue(r){return r.split("-")[1]}function Aa(r){return r==="x"?"y":"x"}function Ra(r){return r==="y"?"height":"width"}function No(r){return["top","bottom"].includes(pe(r))?"y":"x"}function _a(r){return Aa(No(r))}function Na(r,t,e){e===void 0&&(e=!1);let i=ue(r),n=_a(r),a=Ra(n),s=n==="x"?i===(e?"end":"start")?"right":"left":i==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(s=Ao(s)),[s,Ao(s)]}function Kl(r){let t=Ao(r);return[wo(r),t,wo(t)]}function wo(r){return r.replace(/start|end/g,t=>Fu[t])}function Bu(r,t,e){let i=["left","right"],n=["right","left"],a=["top","bottom"],s=["bottom","top"];switch(r){case"top":case"bottom":return e?t?n:i:t?i:n;case"left":case"right":return t?a:s;default:return[]}}function Zl(r,t,e,i){let n=ue(r),a=Bu(pe(r),e==="start",i);return n&&(a=a.map(s=>s+"-"+n),t&&(a=a.concat(a.map(wo)))),a}function Ao(r){return r.replace(/left|right|bottom|top/g,t=>Mu[t])}function Uu(r){return{top:0,right:0,bottom:0,left:0,...r}}function ql(r){return typeof r!="number"?Uu(r):{top:r,right:r,bottom:r,left:r}}function yr(r){return{...r,top:r.y,left:r.x,right:r.x+r.width,bottom:r.y+r.height}}function Yl(r,t,e){let{reference:i,floating:n}=r,a=No(t),s=_a(t),l=Ra(s),d=pe(t),p=a==="y",f=i.x+i.width/2-n.width/2,h=i.y+i.height/2-n.height/2,y=i[l]/2-n[l]/2,v;switch(d){case"top":v={x:f,y:i.y-n.height};break;case"bottom":v={x:f,y:i.y+i.height};break;case"right":v={x:i.x+i.width,y:h};break;case"left":v={x:i.x-n.width,y:h};break;default:v={x:i.x,y:i.y}}switch(ue(t)){case"start":v[s]-=y*(e&&p?-1:1);break;case"end":v[s]+=y*(e&&p?-1:1);break}return v}var Xl=async(r,t,e)=>{let{placement:i="bottom",strategy:n="absolute",middleware:a=[],platform:s}=e,l=a.filter(Boolean),d=await(s.isRTL==null?void 0:s.isRTL(t)),p=await s.getElementRects({reference:r,floating:t,strategy:n}),{x:f,y:h}=Yl(p,i,d),y=i,v={},S=0;for(let E=0;E<l.length;E++){let{name:N,fn:T}=l[E],{x:P,y:w,data:C,reset:A}=await T({x:f,y:h,initialPlacement:i,placement:y,strategy:n,middlewareData:v,rects:p,platform:s,elements:{reference:r,floating:t}});if(f=P??f,h=w??h,v={...v,[N]:{...v[N],...C}},A&&S<=50){S++,typeof A=="object"&&(A.placement&&(y=A.placement),A.rects&&(p=A.rects===!0?await s.getElementRects({reference:r,floating:t,strategy:n}):A.rects),{x:f,y:h}=Yl(p,y,d)),E=-1;continue}}return{x:f,y:h,placement:y,strategy:n,middlewareData:v}};async function Si(r,t){var e;t===void 0&&(t={});let{x:i,y:n,platform:a,rects:s,elements:l,strategy:d}=r,{boundary:p="clippingAncestors",rootBoundary:f="viewport",elementContext:h="floating",altBoundary:y=!1,padding:v=0}=Mr(t,r),S=ql(v),N=l[y?h==="floating"?"reference":"floating":h],T=yr(await a.getClippingRect({element:(e=await(a.isElement==null?void 0:a.isElement(N)))==null||e?N:N.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(l.floating)),boundary:p,rootBoundary:f,strategy:d})),P=h==="floating"?{...s.floating,x:i,y:n}:s.reference,w=await(a.getOffsetParent==null?void 0:a.getOffsetParent(l.floating)),C=await(a.isElement==null?void 0:a.isElement(w))?await(a.getScale==null?void 0:a.getScale(w))||{x:1,y:1}:{x:1,y:1},A=yr(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({rect:P,offsetParent:w,strategy:d}):P);return{top:(T.top-A.top+S.top)/C.y,bottom:(A.bottom-T.bottom+S.bottom)/C.y,left:(T.left-A.left+S.left)/C.x,right:(A.right-T.right+S.right)/C.x}}function Wu(r,t,e){return(r?[...e.filter(n=>ue(n)===r),...e.filter(n=>ue(n)!==r)]:e.filter(n=>pe(n)===n)).filter(n=>r?ue(n)===r||(t?wo(n)!==n:!1):!0)}var Ia=function(r){return r===void 0&&(r={}),{name:"autoPlacement",options:r,async fn(t){var e,i,n;let{rects:a,middlewareData:s,placement:l,platform:d,elements:p}=t,{crossAxis:f=!1,alignment:h,allowedPlacements:y=Ea,autoAlignment:v=!0,...S}=Mr(r,t),E=h!==void 0||y===Ea?Wu(h||null,v,y):y,N=await Si(t,S),T=((e=s.autoPlacement)==null?void 0:e.index)||0,P=E[T];if(P==null)return{};let w=Na(P,a,await(d.isRTL==null?void 0:d.isRTL(p.floating)));if(l!==P)return{reset:{placement:E[0]}};let C=[N[pe(P)],N[w[0]],N[w[1]]],A=[...((i=s.autoPlacement)==null?void 0:i.overflows)||[],{placement:P,overflows:C}],k=E[T+1];if(k)return{data:{index:T+1,overflows:A},reset:{placement:k}};let W=A.map(F=>{let m=ue(F.placement);return[F.placement,m&&f?F.overflows.slice(0,2).reduce((O,D)=>O+D,0):F.overflows[0],F.overflows]}).sort((F,m)=>F[1]-m[1]),K=((n=W.filter(F=>F[2].slice(0,ue(F[0])?2:3).every(m=>m<=0))[0])==null?void 0:n[0])||W[0][0];return K!==l?{data:{index:T+1,overflows:A},reset:{placement:K}}:{}}}},Ta=function(r){return r===void 0&&(r={}),{name:"flip",options:r,async fn(t){var e,i;let{placement:n,middlewareData:a,rects:s,initialPlacement:l,platform:d,elements:p}=t,{mainAxis:f=!0,crossAxis:h=!0,fallbackPlacements:y,fallbackStrategy:v="bestFit",fallbackAxisSideDirection:S="none",flipAlignment:E=!0,...N}=Mr(r,t);if((e=a.arrow)!=null&&e.alignmentOffset)return{};let T=pe(n),P=pe(l)===l,w=await(d.isRTL==null?void 0:d.isRTL(p.floating)),C=y||(P||!E?[Ao(l)]:Kl(l));!y&&S!=="none"&&C.push(...Zl(l,E,S,w));let A=[l,...C],k=await Si(t,N),W=[],Y=((i=a.flip)==null?void 0:i.overflows)||[];if(f&&W.push(k[T]),h){let O=Na(n,s,w);W.push(k[O[0]],k[O[1]])}if(Y=[...Y,{placement:n,overflows:W}],!W.every(O=>O<=0)){var K,F;let O=(((K=a.flip)==null?void 0:K.index)||0)+1,D=A[O];if(D)return{data:{index:O,overflows:Y},reset:{placement:D}};let G=(F=Y.filter(J=>J.overflows[0]<=0).sort((J,z)=>J.overflows[1]-z.overflows[1])[0])==null?void 0:F.placement;if(!G)switch(v){case"bestFit":{var m;let J=(m=Y.map(z=>[z.placement,z.overflows.filter(ae=>ae>0).reduce((ae,oo)=>ae+oo,0)]).sort((z,ae)=>z[1]-ae[1])[0])==null?void 0:m[0];J&&(G=J);break}case"initialPlacement":G=l;break}if(n!==G)return{reset:{placement:G}}}return{}}}};async function Hu(r,t){let{placement:e,platform:i,elements:n}=r,a=await(i.isRTL==null?void 0:i.isRTL(n.floating)),s=pe(e),l=ue(e),d=No(e)==="y",p=["left","top"].includes(s)?-1:1,f=a&&d?-1:1,h=Mr(t,r),{mainAxis:y,crossAxis:v,alignmentAxis:S}=typeof h=="number"?{mainAxis:h,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...h};return l&&typeof S=="number"&&(v=l==="end"?S*-1:S),d?{x:v*f,y:y*p}:{x:y*p,y:v*f}}var Pa=function(r){return r===void 0&&(r=0),{name:"offset",options:r,async fn(t){var e,i;let{x:n,y:a,placement:s,middlewareData:l}=t,d=await Hu(t,r);return s===((e=l.offset)==null?void 0:e.placement)&&(i=l.arrow)!=null&&i.alignmentOffset?{}:{x:n+d.x,y:a+d.y,data:{...d,placement:s}}}}},$a=function(r){return r===void 0&&(r={}),{name:"shift",options:r,async fn(t){let{x:e,y:i,placement:n}=t,{mainAxis:a=!0,crossAxis:s=!1,limiter:l={fn:N=>{let{x:T,y:P}=N;return{x:T,y:P}}},...d}=Mr(r,t),p={x:e,y:i},f=await Si(t,d),h=No(pe(n)),y=Aa(h),v=p[y],S=p[h];if(a){let N=y==="y"?"top":"left",T=y==="y"?"bottom":"right",P=v+f[N],w=v-f[T];v=wa(P,v,w)}if(s){let N=h==="y"?"top":"left",T=h==="y"?"bottom":"right",P=S+f[N],w=S-f[T];S=wa(P,S,w)}let E=l.fn({...t,[y]:v,[h]:S});return{...E,data:{x:E.x-e,y:E.y-i}}}}};function Ae(r){return Ql(r)?(r.nodeName||"").toLowerCase():"#document"}function Wt(r){var t;return(r==null||(t=r.ownerDocument)==null?void 0:t.defaultView)||window}function Re(r){var t;return(t=(Ql(r)?r.ownerDocument:r.document)||window.document)==null?void 0:t.documentElement}function Ql(r){return r instanceof Node||r instanceof Wt(r).Node}function fe(r){return r instanceof Element||r instanceof Wt(r).Element}function te(r){return r instanceof HTMLElement||r instanceof Wt(r).HTMLElement}function Jl(r){return typeof ShadowRoot>"u"?!1:r instanceof ShadowRoot||r instanceof Wt(r).ShadowRoot}function Fr(r){let{overflow:t,overflowX:e,overflowY:i,display:n}=Gt(r);return/auto|scroll|overlay|hidden|clip/.test(t+i+e)&&!["inline","contents"].includes(n)}function tc(r){return["table","td","th"].includes(Ae(r))}function Ci(r){let t=Ei(),e=Gt(r);return e.transform!=="none"||e.perspective!=="none"||(e.containerType?e.containerType!=="normal":!1)||!t&&(e.backdropFilter?e.backdropFilter!=="none":!1)||!t&&(e.filter?e.filter!=="none":!1)||["transform","perspective","filter"].some(i=>(e.willChange||"").includes(i))||["paint","layout","strict","content"].some(i=>(e.contain||"").includes(i))}function ec(r){let t=gr(r);for(;te(t)&&!Io(t);){if(Ci(t))return t;t=gr(t)}return null}function Ei(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Io(r){return["html","body","#document"].includes(Ae(r))}function Gt(r){return Wt(r).getComputedStyle(r)}function To(r){return fe(r)?{scrollLeft:r.scrollLeft,scrollTop:r.scrollTop}:{scrollLeft:r.pageXOffset,scrollTop:r.pageYOffset}}function gr(r){if(Ae(r)==="html")return r;let t=r.assignedSlot||r.parentNode||Jl(r)&&r.host||Re(r);return Jl(t)?t.host:t}function rc(r){let t=gr(r);return Io(t)?r.ownerDocument?r.ownerDocument.body:r.body:te(t)&&Fr(t)?t:rc(t)}function Oi(r,t,e){var i;t===void 0&&(t=[]),e===void 0&&(e=!0);let n=rc(r),a=n===((i=r.ownerDocument)==null?void 0:i.body),s=Wt(n);return a?t.concat(s,s.visualViewport||[],Fr(n)?n:[],s.frameElement&&e?Oi(s.frameElement):[]):t.concat(n,Oi(n,[],e))}function nc(r){let t=Gt(r),e=parseFloat(t.width)||0,i=parseFloat(t.height)||0,n=te(r),a=n?r.offsetWidth:e,s=n?r.offsetHeight:i,l=_o(e)!==a||_o(i)!==s;return l&&(e=a,i=s),{width:e,height:i,$:l}}function ac(r){return fe(r)?r:r.contextElement}function Br(r){let t=ac(r);if(!te(t))return we(1);let e=t.getBoundingClientRect(),{width:i,height:n,$:a}=nc(t),s=(a?_o(e.width):e.width)/i,l=(a?_o(e.height):e.height)/n;return(!s||!Number.isFinite(s))&&(s=1),(!l||!Number.isFinite(l))&&(l=1),{x:s,y:l}}var zu=we(0);function sc(r){let t=Wt(r);return!Ei()||!t.visualViewport?zu:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Vu(r,t,e){return t===void 0&&(t=!1),!e||t&&e!==Wt(r)?!1:t}function Po(r,t,e,i){t===void 0&&(t=!1),e===void 0&&(e=!1);let n=r.getBoundingClientRect(),a=ac(r),s=we(1);t&&(i?fe(i)&&(s=Br(i)):s=Br(r));let l=Vu(a,e,i)?sc(a):we(0),d=(n.left+l.x)/s.x,p=(n.top+l.y)/s.y,f=n.width/s.x,h=n.height/s.y;if(a){let y=Wt(a),v=i&&fe(i)?Wt(i):i,S=y.frameElement;for(;S&&i&&v!==y;){let E=Br(S),N=S.getBoundingClientRect(),T=Gt(S),P=N.left+(S.clientLeft+parseFloat(T.paddingLeft))*E.x,w=N.top+(S.clientTop+parseFloat(T.paddingTop))*E.y;d*=E.x,p*=E.y,f*=E.x,h*=E.y,d+=P,p+=w,S=Wt(S).frameElement}}return yr({width:f,height:h,x:d,y:p})}function ju(r){let{rect:t,offsetParent:e,strategy:i}=r,n=te(e),a=Re(e);if(e===a)return t;let s={scrollLeft:0,scrollTop:0},l=we(1),d=we(0);if((n||!n&&i!=="fixed")&&((Ae(e)!=="body"||Fr(a))&&(s=To(e)),te(e))){let p=Po(e);l=Br(e),d.x=p.x+e.clientLeft,d.y=p.y+e.clientTop}return{width:t.width*l.x,height:t.height*l.y,x:t.x*l.x-s.scrollLeft*l.x+d.x,y:t.y*l.y-s.scrollTop*l.y+d.y}}function Gu(r){return Array.from(r.getClientRects())}function lc(r){return Po(Re(r)).left+To(r).scrollLeft}function Ku(r){let t=Re(r),e=To(r),i=r.ownerDocument.body,n=Be(t.scrollWidth,t.clientWidth,i.scrollWidth,i.clientWidth),a=Be(t.scrollHeight,t.clientHeight,i.scrollHeight,i.clientHeight),s=-e.scrollLeft+lc(r),l=-e.scrollTop;return Gt(i).direction==="rtl"&&(s+=Be(t.clientWidth,i.clientWidth)-n),{width:n,height:a,x:s,y:l}}function Zu(r,t){let e=Wt(r),i=Re(r),n=e.visualViewport,a=i.clientWidth,s=i.clientHeight,l=0,d=0;if(n){a=n.width,s=n.height;let p=Ei();(!p||p&&t==="fixed")&&(l=n.offsetLeft,d=n.offsetTop)}return{width:a,height:s,x:l,y:d}}function qu(r,t){let e=Po(r,!0,t==="fixed"),i=e.top+r.clientTop,n=e.left+r.clientLeft,a=te(r)?Br(r):we(1),s=r.clientWidth*a.x,l=r.clientHeight*a.y,d=n*a.x,p=i*a.y;return{width:s,height:l,x:d,y:p}}function oc(r,t,e){let i;if(t==="viewport")i=Zu(r,e);else if(t==="document")i=Ku(Re(r));else if(fe(t))i=qu(t,e);else{let n=sc(r);i={...t,x:t.x-n.x,y:t.y-n.y}}return yr(i)}function cc(r,t){let e=gr(r);return e===t||!fe(e)||Io(e)?!1:Gt(e).position==="fixed"||cc(e,t)}function Yu(r,t){let e=t.get(r);if(e)return e;let i=Oi(r,[],!1).filter(l=>fe(l)&&Ae(l)!=="body"),n=null,a=Gt(r).position==="fixed",s=a?gr(r):r;for(;fe(s)&&!Io(s);){let l=Gt(s),d=Ci(s);!d&&l.position==="fixed"&&(n=null),(a?!d&&!n:!d&&l.position==="static"&&!!n&&["absolute","fixed"].includes(n.position)||Fr(s)&&!d&&cc(r,s))?i=i.filter(f=>f!==s):n=l,s=gr(s)}return t.set(r,i),i}function Xu(r){let{element:t,boundary:e,rootBoundary:i,strategy:n}=r,s=[...e==="clippingAncestors"?Yu(t,this._c):[].concat(e),i],l=s[0],d=s.reduce((p,f)=>{let h=oc(t,f,n);return p.top=Be(h.top,p.top),p.right=Ro(h.right,p.right),p.bottom=Ro(h.bottom,p.bottom),p.left=Be(h.left,p.left),p},oc(t,l,n));return{width:d.right-d.left,height:d.bottom-d.top,x:d.left,y:d.top}}function Ju(r){return nc(r)}function Qu(r,t,e){let i=te(t),n=Re(t),a=e==="fixed",s=Po(r,!0,a,t),l={scrollLeft:0,scrollTop:0},d=we(0);if(i||!i&&!a)if((Ae(t)!=="body"||Fr(n))&&(l=To(t)),i){let p=Po(t,!0,a,t);d.x=p.x+t.clientLeft,d.y=p.y+t.clientTop}else n&&(d.x=lc(n));return{x:s.left+l.scrollLeft-d.x,y:s.top+l.scrollTop-d.y,width:s.width,height:s.height}}function ic(r,t){return!te(r)||Gt(r).position==="fixed"?null:t?t(r):r.offsetParent}function dc(r,t){let e=Wt(r);if(!te(r))return e;let i=ic(r,t);for(;i&&tc(i)&&Gt(i).position==="static";)i=ic(i,t);return i&&(Ae(i)==="html"||Ae(i)==="body"&&Gt(i).position==="static"&&!Ci(i))?e:i||ec(r)||e}var tf=async function(r){let{reference:t,floating:e,strategy:i}=r,n=this.getOffsetParent||dc,a=this.getDimensions;return{reference:Qu(t,await n(e),i),floating:{x:0,y:0,...await a(e)}}};function ef(r){return Gt(r).direction==="rtl"}var Ur={convertOffsetParentRelativeRectToViewportRelativeRect:ju,getDocumentElement:Re,getClippingRect:Xu,getOffsetParent:dc,getElementRects:tf,getClientRects:Gu,getDimensions:Ju,getScale:Br,isElement:fe,isRTL:ef};var La=(r,t,e)=>{let i=new Map,n={platform:Ur,...e},a={...n.platform,_c:i};return Xl(r,t,{...n,platform:a})};function Da(r){return rf(r)}function ka(r){return r.assignedSlot?r.assignedSlot:r.parentNode instanceof ShadowRoot?r.parentNode.host:r.parentNode}function rf(r){for(let t=r;t;t=ka(t))if(t instanceof Element&&getComputedStyle(t).display==="none")return null;for(let t=ka(r);t;t=ka(t)){if(!(t instanceof Element))continue;let e=getComputedStyle(t);if(e.display!=="contents"&&(e.position!=="static"||e.filter!=="none"||t.tagName==="BODY"))return t}return null}async function $o(r,t,e){return La(r,t,{platform:{...Ur,getOffsetParent:i=>Ur.getOffsetParent(i,Da)},middleware:[$a({crossAxis:!0}),Ia({allowedPlacements:[e]})]})}async function of(r,t,e,i,n){return La(r,t,{placement:e,strategy:n,platform:{...Ur,getOffsetParent:a=>Ur.getOffsetParent(a,Da)},middleware:[Pa(4),Ta({fallbackPlacements:i})]})}var Wa={};rt(Wa,{FtdsBase:()=>Ua,toFtdsBase:()=>Ri});var Ba={};rt(Ba,{FtLitElement:()=>j});var Fa={};rt(Fa,{ScopedRegistryLitElement:()=>Lo});var wi=window,nf=wi.ShadowRoot&&(wi.ShadyCSS===void 0||wi.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,tv=Symbol();var pc=(r,t)=>{nf?r.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet):t.forEach(e=>{let i=document.createElement("style"),n=wi.litNonce;n!==void 0&&i.setAttribute("nonce",n),i.textContent=e.cssText,r.appendChild(i)})};var Lo=class extends Se{createRenderRoot(){let t=this.constructor;t.elementDefinitions&&!t.registry&&(t.registry=new CustomElementRegistry,Object.entries(t.elementDefinitions).forEach(([n,a])=>t.registry.define(n,a)));let e={...t.shadowRootOptions,customElements:t.registry},i=this.renderOptions.creationScope=this.attachShadow(e);return pc(i,t.elementStyles),i}};var Ai=function(r,t,e,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,t,e,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(t,e,a):s(t,e))||a);return n>3&&a&&Object.defineProperty(t,e,a),a},mc,uc=Symbol("constructorPrototype"),fc=Symbol("constructorName"),yc=Symbol("exportpartsDebouncer"),hc=Symbol("dynamicDependenciesLoaded"),j=class extends Lo{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[mc]=new st(5),this[fc]=this.constructor.name,this[uc]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[fc]&&Object.setPrototypeOf(this,this[uc])}connectedCallback(){super.connectedCallback();try{this.shadowRoot&&!this.shadowRoot.adoptedStyleSheets.includes(this.adoptedCustomStyleSheet)&&(this.shadowRoot.adoptedStyleSheets=[...this.shadowRoot.adoptedStyleSheets,this.adoptedCustomStyleSheet]),this.useAdoptedStyleSheets=!0}catch(e){this.useAdoptedStyleSheets=!1,console.error("Cannot use adopted stylesheets",e)}let t=this.constructor;t[hc]||(t[hc]=!0,this.importDynamicDependencies())}importDynamicDependencies(){}updated(t){super.updated(t),this.updateComplete.then(()=>{this.contentAvailableCallback(t),this.applyCustomStylesheet(t),this.scheduleExportpartsUpdate()})}contentAvailableCallback(t){}applyCustomStylesheet(t){var e,i,n;if(((i=(e=this.shadowRoot)===null||e===void 0?void 0:e.querySelectorAll(".ft-lit-element--custom-stylesheet"))!==null&&i!==void 0?i:[]).forEach(a=>a.remove()),this.useAdoptedStyleSheets){if(t.has("customStylesheet"))try{this.adoptedCustomStyleSheet.replaceSync((n=this.customStylesheet)!==null&&n!==void 0?n:"")}catch(a){console.error(a,this.customStylesheet),this.useAdoptedStyleSheets=!1}}else if(this.customStylesheet){let a=document.createElement("style");a.classList.add("ft-lit-element--custom-stylesheet"),a.innerHTML=this.customStylesheet,this.shadowRoot.append(a)}}scheduleExportpartsUpdate(){var t,e,i;(!((t=this.exportpartsPrefix)===null||t===void 0)&&t.trim()||(i=(e=this.exportpartsPrefixes)===null||e===void 0?void 0:e.length)!==null&&i!==void 0&&i)&&this[yc].run(()=>{var n,a;!((n=this.exportpartsPrefix)===null||n===void 0)&&n.trim()?this.setExportpartsAttribute([this.exportpartsPrefix]):this.exportpartsPrefixes!=null&&((a=this.exportpartsPrefixes)===null||a===void 0?void 0:a.length)>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)})}setExportpartsAttribute(t){var e,i,n,a,s,l;let d=y=>y!=null&&y.trim().length>0,p=t.filter(d).map(y=>y.trim());if(p.length===0){this.removeAttribute("exportparts");return}let f=new Set;for(let y of(i=(e=this.shadowRoot)===null||e===void 0?void 0:e.querySelectorAll("[part],[exportparts]"))!==null&&i!==void 0?i:[]){let v=(a=(n=y.getAttribute("part"))===null||n===void 0?void 0:n.split(" "))!==null&&a!==void 0?a:[],S=(l=(s=y.getAttribute("exportparts"))===null||s===void 0?void 0:s.split(",").map(E=>E.split(":")[1]))!==null&&l!==void 0?l:[];new Array(...v,...S).filter(d).map(E=>E.trim()).forEach(E=>f.add(E))}if(f.size===0){this.removeAttribute("exportparts");return}let h=[...f.values()].flatMap(y=>p.map(v=>`${y}:${v}--${y}`));this.setAttribute("exportparts",[...this.part,...h].join(", "))}};mc=yc;Ai([g()],j.prototype,"exportpartsPrefix",void 0);Ai([de([])],j.prototype,"exportpartsPrefixes",void 0);Ai([g()],j.prototype,"customStylesheet",void 0);Ai([U()],j.prototype,"useAdoptedStyleSheets",void 0);var gc=function(r,t,e,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,t,e,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(t,e,a):s(t,e))||a);return n>3&&a&&Object.defineProperty(t,e,a),a};function Ri(r){class t extends r{constructor(){super(...arguments),this.size=Ee.medium,this.family=mr.neutral}getDesignSystemBaseClasses(){return{[xa(this.family)]:!0,[Sa(this.size)]:!0}}}return gc([g()],t.prototype,"size",void 0),gc([g()],t.prototype,"family",void 0),t}var Ua=class extends Ri(j){};var bc={};var Va={};rt(Va,{highlightHtml:()=>za,highlightHtmlColorCssVariable:()=>vc,highlightHtmlStyles:()=>sf});var br=class r{constructor(t,e=!0,i=[],n=5e3){this.ctx=t,this.iframes=e,this.exclude=i,this.iframesTimeout=n}static matches(t,e){let i=typeof e=="string"?[e]:e,n=t.matches||t.matchesSelector||t.msMatchesSelector||t.mozMatchesSelector||t.oMatchesSelector||t.webkitMatchesSelector;if(n){let a=!1;return i.every(s=>n.call(t,s)?(a=!0,!1):!0),a}else return!1}getContexts(){let t,e=[];return typeof this.ctx>"u"||!this.ctx?t=[]:NodeList.prototype.isPrototypeOf(this.ctx)?t=Array.prototype.slice.call(this.ctx):Array.isArray(this.ctx)?t=this.ctx:typeof this.ctx=="string"?t=Array.prototype.slice.call(document.querySelectorAll(this.ctx)):t=[this.ctx],t.forEach(i=>{let n=e.filter(a=>a.contains(i)).length>0;e.indexOf(i)===-1&&!n&&e.push(i)}),e}getIframeContents(t,e,i=()=>{}){let n;try{let a=t.contentWindow;if(n=a.document,!a||!n)throw new Error("iframe inaccessible")}catch{i()}n&&e(n)}isIframeBlank(t){let e="about:blank",i=t.getAttribute("src").trim();return t.contentWindow.location.href===e&&i!==e&&i}observeIframeLoad(t,e,i){let n=!1,a=null,s=()=>{if(!n){n=!0,clearTimeout(a);try{this.isIframeBlank(t)||(t.removeEventListener("load",s),this.getIframeContents(t,e,i))}catch{i()}}};t.addEventListener("load",s),a=setTimeout(s,this.iframesTimeout)}onIframeReady(t,e,i){try{t.contentWindow.document.readyState==="complete"?this.isIframeBlank(t)?this.observeIframeLoad(t,e,i):this.getIframeContents(t,e,i):this.observeIframeLoad(t,e,i)}catch{i()}}waitForIframes(t,e){let i=0;this.forEachIframe(t,()=>!0,n=>{i++,this.waitForIframes(n.querySelector("html"),()=>{--i||e()})},n=>{n||e()})}forEachIframe(t,e,i,n=()=>{}){let a=t.querySelectorAll("iframe"),s=a.length,l=0;a=Array.prototype.slice.call(a);let d=()=>{--s<=0&&n(l)};s||d(),a.forEach(p=>{r.matches(p,this.exclude)?d():this.onIframeReady(p,f=>{e(p)&&(l++,i(f)),d()},d)})}createIterator(t,e,i){return document.createNodeIterator(t,e,i,!1)}createInstanceOnIframe(t){return new r(t.querySelector("html"),this.iframes)}compareNodeIframe(t,e,i){let n=t.compareDocumentPosition(i),a=Node.DOCUMENT_POSITION_PRECEDING;if(n&a)if(e!==null){let s=e.compareDocumentPosition(i),l=Node.DOCUMENT_POSITION_FOLLOWING;if(s&l)return!0}else return!0;return!1}getIteratorNode(t){let e=t.previousNode(),i;return e===null?i=t.nextNode():i=t.nextNode()&&t.nextNode(),{prevNode:e,node:i}}checkIframeFilter(t,e,i,n){let a=!1,s=!1;return n.forEach((l,d)=>{l.val===i&&(a=d,s=l.handled)}),this.compareNodeIframe(t,e,i)?(a===!1&&!s?n.push({val:i,handled:!0}):a!==!1&&!s&&(n[a].handled=!0),!0):(a===!1&&n.push({val:i,handled:!1}),!1)}handleOpenIframes(t,e,i,n){t.forEach(a=>{a.handled||this.getIframeContents(a.val,s=>{this.createInstanceOnIframe(s).forEachNode(e,i,n)})})}iterateThroughNodes(t,e,i,n,a){let s=this.createIterator(e,t,n),l=[],d=[],p,f,h=()=>({prevNode:f,node:p}=this.getIteratorNode(s),p);for(;h();)this.iframes&&this.forEachIframe(e,y=>this.checkIframeFilter(p,f,y,l),y=>{this.createInstanceOnIframe(y).forEachNode(t,v=>d.push(v),n)}),d.push(p);d.forEach(y=>{i(y)}),this.iframes&&this.handleOpenIframes(l,t,i,n),a()}forEachNode(t,e,i,n=()=>{}){let a=this.getContexts(),s=a.length;s||n(),a.forEach(l=>{let d=()=>{this.iterateThroughNodes(t,l,e,i,()=>{--s<=0&&n()})};this.iframes?this.waitForIframes(l,d):d()})}};var ko=class{constructor(t){this.ctx=t,this.ie=!1;let e=window.navigator.userAgent;(e.indexOf("MSIE")>-1||e.indexOf("Trident")>-1)&&(this.ie=!0)}set opt(t){this._opt=Object.assign({},{element:"",className:"",exclude:[],iframes:!1,iframesTimeout:5e3,separateWordSearch:!0,diacritics:!0,synonyms:{},accuracy:"partially",acrossElements:!1,caseSensitive:!1,ignoreJoiners:!1,ignoreGroups:0,ignorePunctuation:[],wildcards:"disabled",each:()=>{},noMatch:()=>{},filter:()=>!0,done:()=>{},debug:!1,log:window.console},t)}get opt(){return this._opt}get iterator(){return new br(this.ctx,this.opt.iframes,this.opt.exclude,this.opt.iframesTimeout)}log(t,e="debug"){let i=this.opt.log;this.opt.debug&&typeof i=="object"&&typeof i[e]=="function"&&i[e](`mark.js: ${t}`)}escapeStr(t){return t.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}createRegExp(t){return this.opt.wildcards!=="disabled"&&(t=this.setupWildcardsRegExp(t)),t=this.escapeStr(t),Object.keys(this.opt.synonyms).length&&(t=this.createSynonymsRegExp(t)),(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(t=this.setupIgnoreJoinersRegExp(t)),this.opt.diacritics&&(t=this.createDiacriticsRegExp(t)),t=this.createMergedBlanksRegExp(t),(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(t=this.createJoinersRegExp(t)),this.opt.wildcards!=="disabled"&&(t=this.createWildcardsRegExp(t)),t=this.createAccuracyRegExp(t),t}createSynonymsRegExp(t){let e=this.opt.synonyms,i=this.opt.caseSensitive?"":"i",n=this.opt.ignoreJoiners||this.opt.ignorePunctuation.length?"\0":"";for(let a in e)if(e.hasOwnProperty(a)){let s=e[a],l=this.opt.wildcards!=="disabled"?this.setupWildcardsRegExp(a):this.escapeStr(a),d=this.opt.wildcards!=="disabled"?this.setupWildcardsRegExp(s):this.escapeStr(s);l!==""&&d!==""&&(t=t.replace(new RegExp(`(${this.escapeStr(l)}|${this.escapeStr(d)})`,`gm${i}`),n+`(${this.processSynomyms(l)}|${this.processSynomyms(d)})`+n))}return t}processSynomyms(t){return(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(t=this.setupIgnoreJoinersRegExp(t)),t}setupWildcardsRegExp(t){return t=t.replace(/(?:\\)*\?/g,e=>e.charAt(0)==="\\"?"?":""),t.replace(/(?:\\)*\*/g,e=>e.charAt(0)==="\\"?"*":"")}createWildcardsRegExp(t){let e=this.opt.wildcards==="withSpaces";return t.replace(/\u0001/g,e?"[\\S\\s]?":"\\S?").replace(/\u0002/g,e?"[\\S\\s]*?":"\\S*")}setupIgnoreJoinersRegExp(t){return t.replace(/[^(|)\\]/g,(e,i,n)=>{let a=n.charAt(i+1);return/[(|)\\]/.test(a)||a===""?e:e+"\0"})}createJoinersRegExp(t){let e=[],i=this.opt.ignorePunctuation;return Array.isArray(i)&&i.length&&e.push(this.escapeStr(i.join(""))),this.opt.ignoreJoiners&&e.push("\\u00ad\\u200b\\u200c\\u200d"),e.length?t.split(/\u0000+/).join(`[${e.join("")}]*`):t}createDiacriticsRegExp(t){let e=this.opt.caseSensitive?"":"i",i=this.opt.caseSensitive?["a\xE0\xE1\u1EA3\xE3\u1EA1\u0103\u1EB1\u1EAF\u1EB3\u1EB5\u1EB7\xE2\u1EA7\u1EA5\u1EA9\u1EAB\u1EAD\xE4\xE5\u0101\u0105","A\xC0\xC1\u1EA2\xC3\u1EA0\u0102\u1EB0\u1EAE\u1EB2\u1EB4\u1EB6\xC2\u1EA6\u1EA4\u1EA8\u1EAA\u1EAC\xC4\xC5\u0100\u0104","c\xE7\u0107\u010D","C\xC7\u0106\u010C","d\u0111\u010F","D\u0110\u010E","e\xE8\xE9\u1EBB\u1EBD\u1EB9\xEA\u1EC1\u1EBF\u1EC3\u1EC5\u1EC7\xEB\u011B\u0113\u0119","E\xC8\xC9\u1EBA\u1EBC\u1EB8\xCA\u1EC0\u1EBE\u1EC2\u1EC4\u1EC6\xCB\u011A\u0112\u0118","i\xEC\xED\u1EC9\u0129\u1ECB\xEE\xEF\u012B","I\xCC\xCD\u1EC8\u0128\u1ECA\xCE\xCF\u012A","l\u0142","L\u0141","n\xF1\u0148\u0144","N\xD1\u0147\u0143","o\xF2\xF3\u1ECF\xF5\u1ECD\xF4\u1ED3\u1ED1\u1ED5\u1ED7\u1ED9\u01A1\u1EDF\u1EE1\u1EDB\u1EDD\u1EE3\xF6\xF8\u014D","O\xD2\xD3\u1ECE\xD5\u1ECC\xD4\u1ED2\u1ED0\u1ED4\u1ED6\u1ED8\u01A0\u1EDE\u1EE0\u1EDA\u1EDC\u1EE2\xD6\xD8\u014C","r\u0159","R\u0158","s\u0161\u015B\u0219\u015F","S\u0160\u015A\u0218\u015E","t\u0165\u021B\u0163","T\u0164\u021A\u0162","u\xF9\xFA\u1EE7\u0169\u1EE5\u01B0\u1EEB\u1EE9\u1EED\u1EEF\u1EF1\xFB\xFC\u016F\u016B","U\xD9\xDA\u1EE6\u0168\u1EE4\u01AF\u1EEA\u1EE8\u1EEC\u1EEE\u1EF0\xDB\xDC\u016E\u016A","y\xFD\u1EF3\u1EF7\u1EF9\u1EF5\xFF","Y\xDD\u1EF2\u1EF6\u1EF8\u1EF4\u0178","z\u017E\u017C\u017A","Z\u017D\u017B\u0179"]:["a\xE0\xE1\u1EA3\xE3\u1EA1\u0103\u1EB1\u1EAF\u1EB3\u1EB5\u1EB7\xE2\u1EA7\u1EA5\u1EA9\u1EAB\u1EAD\xE4\xE5\u0101\u0105A\xC0\xC1\u1EA2\xC3\u1EA0\u0102\u1EB0\u1EAE\u1EB2\u1EB4\u1EB6\xC2\u1EA6\u1EA4\u1EA8\u1EAA\u1EAC\xC4\xC5\u0100\u0104","c\xE7\u0107\u010DC\xC7\u0106\u010C","d\u0111\u010FD\u0110\u010E","e\xE8\xE9\u1EBB\u1EBD\u1EB9\xEA\u1EC1\u1EBF\u1EC3\u1EC5\u1EC7\xEB\u011B\u0113\u0119E\xC8\xC9\u1EBA\u1EBC\u1EB8\xCA\u1EC0\u1EBE\u1EC2\u1EC4\u1EC6\xCB\u011A\u0112\u0118","i\xEC\xED\u1EC9\u0129\u1ECB\xEE\xEF\u012BI\xCC\xCD\u1EC8\u0128\u1ECA\xCE\xCF\u012A","l\u0142L\u0141","n\xF1\u0148\u0144N\xD1\u0147\u0143","o\xF2\xF3\u1ECF\xF5\u1ECD\xF4\u1ED3\u1ED1\u1ED5\u1ED7\u1ED9\u01A1\u1EDF\u1EE1\u1EDB\u1EDD\u1EE3\xF6\xF8\u014DO\xD2\xD3\u1ECE\xD5\u1ECC\xD4\u1ED2\u1ED0\u1ED4\u1ED6\u1ED8\u01A0\u1EDE\u1EE0\u1EDA\u1EDC\u1EE2\xD6\xD8\u014C","r\u0159R\u0158","s\u0161\u015B\u0219\u015FS\u0160\u015A\u0218\u015E","t\u0165\u021B\u0163T\u0164\u021A\u0162","u\xF9\xFA\u1EE7\u0169\u1EE5\u01B0\u1EEB\u1EE9\u1EED\u1EEF\u1EF1\xFB\xFC\u016F\u016BU\xD9\xDA\u1EE6\u0168\u1EE4\u01AF\u1EEA\u1EE8\u1EEC\u1EEE\u1EF0\xDB\xDC\u016E\u016A","y\xFD\u1EF3\u1EF7\u1EF9\u1EF5\xFFY\xDD\u1EF2\u1EF6\u1EF8\u1EF4\u0178","z\u017E\u017C\u017AZ\u017D\u017B\u0179"],n=[];return t.split("").forEach(a=>{i.every(s=>{if(s.indexOf(a)!==-1){if(n.indexOf(s)>-1)return!1;t=t.replace(new RegExp(`[${s}]`,`gm${e}`),`[${s}]`),n.push(s)}return!0})}),t}createMergedBlanksRegExp(t){return t.replace(/[\s]+/gmi,"[\\s]+")}createAccuracyRegExp(t){let e="!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~\xA1\xBF",i=this.opt.accuracy,n=typeof i=="string"?i:i.value,a=typeof i=="string"?[]:i.limiters,s="";switch(a.forEach(l=>{s+=`|${this.escapeStr(l)}`}),n){case"partially":default:return`()(${t})`;case"complementary":return s="\\s"+(s||this.escapeStr(e)),`()([^${s}]*${t}[^${s}]*)`;case"exactly":return`(^|\\s${s})(${t})(?=$|\\s${s})`}}getSeparatedKeywords(t){let e=[];return t.forEach(i=>{this.opt.separateWordSearch?i.split(" ").forEach(n=>{n.trim()&&e.indexOf(n)===-1&&e.push(n)}):i.trim()&&e.indexOf(i)===-1&&e.push(i)}),{keywords:e.sort((i,n)=>n.length-i.length),length:e.length}}isNumeric(t){return Number(parseFloat(t))==t}checkRanges(t){if(!Array.isArray(t)||Object.prototype.toString.call(t[0])!=="[object Object]")return this.log("markRanges() will only accept an array of objects"),this.opt.noMatch(t),[];let e=[],i=0;return t.sort((n,a)=>n.start-a.start).forEach(n=>{let{start:a,end:s,valid:l}=this.callNoMatchOnInvalidRanges(n,i);l&&(n.start=a,n.length=s-a,e.push(n),i=s)}),e}callNoMatchOnInvalidRanges(t,e){let i,n,a=!1;return t&&typeof t.start<"u"?(i=parseInt(t.start,10),n=i+parseInt(t.length,10),this.isNumeric(t.start)&&this.isNumeric(t.length)&&n-e>0&&n-i>0?a=!0:(this.log(`Ignoring invalid or overlapping range: ${JSON.stringify(t)}`),this.opt.noMatch(t))):(this.log(`Ignoring invalid range: ${JSON.stringify(t)}`),this.opt.noMatch(t)),{start:i,end:n,valid:a}}checkWhitespaceRanges(t,e,i){let n,a=!0,s=i.length,l=e-s,d=parseInt(t.start,10)-l;return d=d>s?s:d,n=d+parseInt(t.length,10),n>s&&(n=s,this.log(`End range automatically set to the max value of ${s}`)),d<0||n-d<0||d>s||n>s?(a=!1,this.log(`Invalid range: ${JSON.stringify(t)}`),this.opt.noMatch(t)):i.substring(d,n).replace(/\s+/g,"")===""&&(a=!1,this.log("Skipping whitespace only range: "+JSON.stringify(t)),this.opt.noMatch(t)),{start:d,end:n,valid:a}}getTextNodes(t){let e="",i=[];this.iterator.forEachNode(NodeFilter.SHOW_TEXT,n=>{i.push({start:e.length,end:(e+=n.textContent).length,node:n})},n=>this.matchesExclude(n.parentNode)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT,()=>{t({value:e,nodes:i})})}matchesExclude(t){return br.matches(t,this.opt.exclude.concat(["script","style","title","head","html"]))}wrapRangeInTextNode(t,e,i){let n=this.opt.element?this.opt.element:"mark",a=t.splitText(e),s=a.splitText(i-e),l=document.createElement(n);return l.setAttribute("data-markjs","true"),this.opt.className&&l.setAttribute("class",this.opt.className),l.textContent=a.textContent,a.parentNode.replaceChild(l,a),s}wrapRangeInMappedTextNode(t,e,i,n,a){t.nodes.every((s,l)=>{let d=t.nodes[l+1];if(typeof d>"u"||d.start>e){if(!n(s.node))return!1;let p=e-s.start,f=(i>s.end?s.end:i)-s.start,h=t.value.substr(0,s.start),y=t.value.substr(f+s.start);if(s.node=this.wrapRangeInTextNode(s.node,p,f),t.value=h+y,t.nodes.forEach((v,S)=>{S>=l&&(t.nodes[S].start>0&&S!==l&&(t.nodes[S].start-=f),t.nodes[S].end-=f)}),i-=f,a(s.node.previousSibling,s.start),i>s.end)e=s.end;else return!1}return!0})}wrapMatches(t,e,i,n,a){let s=e===0?0:e+1;this.getTextNodes(l=>{l.nodes.forEach(d=>{d=d.node;let p;for(;(p=t.exec(d.textContent))!==null&&p[s]!=="";){if(!i(p[s],d))continue;let f=p.index;if(s!==0)for(let h=1;h<s;h++)f+=p[h].length;d=this.wrapRangeInTextNode(d,f,f+p[s].length),n(d.previousSibling),t.lastIndex=0}}),a()})}wrapMatchesAcrossElements(t,e,i,n,a){let s=e===0?0:e+1;this.getTextNodes(l=>{let d;for(;(d=t.exec(l.value))!==null&&d[s]!=="";){let p=d.index;if(s!==0)for(let h=1;h<s;h++)p+=d[h].length;let f=p+d[s].length;this.wrapRangeInMappedTextNode(l,p,f,h=>i(d[s],h),(h,y)=>{t.lastIndex=y,n(h)})}a()})}wrapRangeFromIndex(t,e,i,n){this.getTextNodes(a=>{let s=a.value.length;t.forEach((l,d)=>{let{start:p,end:f,valid:h}=this.checkWhitespaceRanges(l,s,a.value);h&&this.wrapRangeInMappedTextNode(a,p,f,y=>e(y,l,a.value.substring(p,f),d),y=>{i(y,l)})}),n()})}unwrapMatches(t){let e=t.parentNode,i=document.createDocumentFragment();for(;t.firstChild;)i.appendChild(t.removeChild(t.firstChild));e.replaceChild(i,t),this.ie?this.normalizeTextNode(e):e.normalize()}normalizeTextNode(t){if(t){if(t.nodeType===3)for(;t.nextSibling&&t.nextSibling.nodeType===3;)t.nodeValue+=t.nextSibling.nodeValue,t.parentNode.removeChild(t.nextSibling);else this.normalizeTextNode(t.firstChild);this.normalizeTextNode(t.nextSibling)}}markRegExp(t,e){this.opt=e,this.log(`Searching with expression "${t}"`);let i=0,n="wrapMatches",a=s=>{i++,this.opt.each(s)};this.opt.acrossElements&&(n="wrapMatchesAcrossElements"),this[n](t,this.opt.ignoreGroups,(s,l)=>this.opt.filter(l,s,i),a,()=>{i===0&&this.opt.noMatch(t),this.opt.done(i)})}mark(t,e){this.opt=e;let i=0,n="wrapMatches",{keywords:a,length:s}=this.getSeparatedKeywords(typeof t=="string"?[t]:t),l=this.opt.caseSensitive?"":"i",d=p=>{let f=new RegExp(this.createRegExp(p),`gm${l}`),h=0;this.log(`Searching with expression "${f}"`),this[n](f,1,(y,v)=>this.opt.filter(v,p,i,h),y=>{h++,i++,this.opt.each(y)},()=>{h===0&&this.opt.noMatch(p),a[s-1]===p?this.opt.done(i):d(a[a.indexOf(p)+1])})};this.opt.acrossElements&&(n="wrapMatchesAcrossElements"),s===0?this.opt.done(i):d(a[0])}markRanges(t,e){this.opt=e;let i=0,n=this.checkRanges(t);n&&n.length?(this.log("Starting to mark with the following ranges: "+JSON.stringify(n)),this.wrapRangeFromIndex(n,(a,s,l,d)=>this.opt.filter(a,s,l,d),(a,s)=>{i++,this.opt.each(a,s)},()=>{this.opt.done(i)})):this.opt.done(i)}unmark(t){this.opt=t;let e=this.opt.element?this.opt.element:"*";e+="[data-markjs]",this.opt.className&&(e+=`.${this.opt.className}`),this.log(`Removal selector "${e}"`),this.iterator.forEachNode(NodeFilter.SHOW_ELEMENT,i=>{this.unwrapMatches(i)},i=>{let n=br.matches(i,e),a=this.matchesExclude(i);return!n||a?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT},this.opt.done)}};function Ha(r){let t=new ko(r);return this.mark=(e,i)=>(t.mark(e,i),this),this.markRegExp=(e,i)=>(t.markRegExp(e,i),this),this.markRanges=(e,i)=>(t.markRanges(e,i),this),this.unmark=e=>(t.unmark(e),this),this}var af=Ha,vc=o.create("--ft-utils-highlight-html-background-color","","COLOR","#FFF26E"),sf=L`
8
8
  .highlight-html-match {
9
- background: ${yc};
9
+ background: ${vc};
10
10
  }
11
- `;function Wa(r,t,e){var i,n;let a=r.getAttribute("data-highlight-html-query");if((a??"")!==(t??"")){let s=new ef(r);if(s.unmark(),t&&t.trim()){let l={className:(i=e?.className)!==null&&i!==void 0?i:"highlight-html-match"};e?.attributes!=null&&(l.each=p=>{for(let f in e.attributes)p.setAttribute(f,e.attributes[f])}),s.mark(t.replace(/"[^"]+"/g,""),{...l,separateWordSearch:!0}),((n=t.match(/"[^"]+"/g))!==null&&n!==void 0?n:[]).forEach(p=>s.mark(p.replace(/"/g,""),{...l,separateWordSearch:!1}))}}r.setAttribute("data-highlight-html-query",t??"")}var Va={};rt(Va,{noTextInputDefaultClearButton:()=>za,noTextSelect:()=>br,safariEllipsisFix:()=>vr,wordWrap:()=>of});var br=P`
11
+ `;function za(r,t,e){var i,n;let a=r.getAttribute("data-highlight-html-query");if((a??"")!==(t??"")){let s=new af(r);if(s.unmark(),t&&t.trim()){let l={className:(i=e?.className)!==null&&i!==void 0?i:"highlight-html-match"};e?.attributes!=null&&(l.each=p=>{for(let f in e.attributes)p.setAttribute(f,e.attributes[f])}),s.mark(t.replace(/"[^"]+"/g,""),{...l,separateWordSearch:!0}),((n=t.match(/"[^"]+"/g))!==null&&n!==void 0?n:[]).forEach(p=>s.mark(p.replace(/"/g,""),{...l,separateWordSearch:!1}))}}r.setAttribute("data-highlight-html-query",t??"")}var Ga={};rt(Ga,{noTextInputDefaultClearButton:()=>ja,noTextSelect:()=>vr,safariEllipsisFix:()=>xr,wordWrap:()=>lf});var vr=L`
12
12
  .ft-no-text-select {
13
13
  -webkit-touch-callout: none;
14
14
  -webkit-user-select: none;
@@ -17,7 +17,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
17
17
  -ms-user-select: none;
18
18
  user-select: none;
19
19
  }
20
- `,of=P`
20
+ `,lf=L`
21
21
  .ft-word-wrap {
22
22
  white-space: normal;
23
23
  word-wrap: break-word;
@@ -29,7 +29,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
29
29
  -webkit-hyphens: auto;
30
30
  hyphens: auto
31
31
  }
32
- `,vr=P`
32
+ `,xr=L`
33
33
  .ft-safari-ellipsis-fix {
34
34
  margin-right: 0;
35
35
 
@@ -40,14 +40,14 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
40
40
  display: inline-block;
41
41
  width: 0;
42
42
  }
43
- `,za=P`
43
+ `,ja=L`
44
44
  input::-webkit-search-cancel-button,
45
45
  input::-webkit-search-decoration,
46
46
  input::-webkit-search-results-button,
47
47
  input::-webkit-search-results-decoration {
48
48
  display: none;
49
49
  }
50
- `;var gc={};var ja={};rt(ja,{ParametrizedLabelResolver:()=>Po});var Po=class r{constructor(t,e){this.defaultLabels=t,this.labels=e}resolve(t,...e){var i,n;t=this.resolvePluralKey(t,e);let a=(n=(i=this.labels[t])!==null&&i!==void 0?i:this.defaultLabels[t])!==null&&n!==void 0?n:"";return r.replaceParameters(a,...e)}static replaceParameters(t,...e){return e.forEach((i,n)=>t=t.replace(new RegExp(`\\{${n}([^}]*)\\}`,"g"),(a,s)=>r.formatValue(i,s))),t}resolvePluralKey(t,e){for(let i of e)if(typeof i=="number"){let n=`${String(t)}[\\=${i}]`;if(n in this.labels||n in this.defaultLabels)return n}return t}static formatValue(t,e){return t instanceof Date?r.formatDate(t,e):t??""}static formatDate(t,e){let i=n=>e?.includes("date")?t.toLocaleDateString(n):e?.includes("time")?t.toLocaleTimeString(n):t.toLocaleString(n);try{return i(document.documentElement.lang)}catch{return i()}}};var gs={};rt(gs,{FtCommandQueue:()=>ko,FtLitElementRedux:()=>Zt,FtReduxStore:()=>Ne,clearAllStores:()=>Hf,isFtReduxStore:()=>xr,redux:()=>ct,reduxEventListener:()=>Lo,reduxReactive:()=>nf});var nf=()=>(r,t)=>{var e;let i=r.constructor;i.reduxReactiveProperties=new Set(i.reduxReactiveProperties),(e=i.reduxReactiveProperties)===null||e===void 0||e.add(t)},ct=r=>{let t=r??{};return(e,i)=>{var n;let a={hasChanged:xo,attribute:!1,...t};g(a)(e,i);let s=e.constructor;s.reduxProperties=new Map(s.reduxProperties),s.reduxProperties.set(i,{selector:(n=t.selector)!==null&&n!==void 0?n:l=>l[i],store:t.store})}},Lo=r=>(t,e)=>{let i=t.constructor;i.reduxEventListeners=new Map(i.reduxEventListeners),i.reduxEventListeners.set(e,r)};var ko=class{constructor(){this.queue=[]}add(t,e=!1){e&&(this.queue=this.queue.filter(i=>i.type!==t.type)),this.queue.push(t)}consume(t){let e=this.queue.find(i=>i.type===t);return e&&(this.queue=this.queue.filter(i=>i!==e)),e}};function xr(r){var t;return(t=r?.isFtReduxStore)!==null&&t!==void 0?t:!1}var bc,vc,xc,wi=Symbol("internalReduxEventsUnsubscribers"),Ue=Symbol("internalStoresUnsubscribers"),Sr=Symbol("internalStores"),Zt=class extends V{constructor(){super(...arguments),this[bc]=new Map,this[vc]=new Map,this[xc]=[]}get reduxConstructor(){return this.constructor}update(t){super.update(t),[...this.reduxConstructor.reduxReactiveProperties].some(e=>t.has(e))&&this.updateFromStores()}getUnnamedStore(){if(this[Sr].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[Sr].values()][0]}getStore(t){return t==null?this.getUnnamedStore():this[Sr].get(t)}addStore(t,e){var i;e=(i=e??(xr(t)?t.name:void 0))!==null&&i!==void 0?i:"default-store",this.unsubscribeFromStore(e),this.setupStore(e,t)}removeStore(t){let e=typeof t=="string"?t:t.name;this.unsubscribeFromStore(e),this[Sr].delete(e)}setupStore(t,e){this[Sr].set(t,e),this.subscribeToStore(t,e),this.updateFromStores()}setupStores(){this.unsubscribeFromStores(),this[Sr].forEach((t,e)=>this.subscribeToStore(e,t)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((t,e)=>{let i=this.constructor.getPropertyOptions(e);if(!i?.attribute||!this.hasAttribute(typeof i?.attribute=="string"?i.attribute:e)){let n=this.getStore(t.store);n&&(t.store?this[Ue].has(t.store):this[Ue].size>0)&&(this[e]=t.selector(n.getState(),this))}})}subscribeToStore(t,e){var i;this[Ue].set(t,e.subscribe(()=>this.updateFromStores())),xr(e)&&e.eventBus&&((i=this.reduxConstructor.reduxEventListeners)===null||i===void 0||i.forEach((n,a)=>{if(typeof this[a]=="function"&&(!n.store||e.name===n.store)){let s=l=>this[a](l);e.eventBus.addEventListener(n.eventName,s),this[wi].push(()=>e.eventBus.removeEventListener(n.eventName,s))}})),this.onStoreAvailable(t)}unsubscribeFromStores(){this[Ue].forEach((t,e)=>this.unsubscribeFromStore(e)),this[wi].forEach(t=>t()),this[wi]=[]}unsubscribeFromStore(t){this[Ue].has(t)&&this[Ue].get(t)(),this[Ue].delete(t)}onStoreAvailable(t){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}};bc=Ue,vc=Sr,xc=wi;Zt.reduxProperties=new Map;Zt.reduxReactiveProperties=new Set;Zt.reduxEventListeners=new Map;function qt(r){for(var t=arguments.length,e=Array(t>1?t-1:0),i=1;i<t;i++)e[i-1]=arguments[i];if(0)var n,a;throw Error("[Immer] minified error nr: "+r+(e.length?" "+e.map(function(s){return"'"+s+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function _e(r){return!!r&&!!r[dt]}function ee(r){var t;return!!r&&(function(e){if(!e||typeof e!="object")return!1;var i=Object.getPrototypeOf(e);if(i===null)return!0;var n=Object.hasOwnProperty.call(i,"constructor")&&i.constructor;return n===Object||typeof n=="function"&&Function.toString.call(n)===ff}(r)||Array.isArray(r)||!!r[Rc]||!!(!((t=r.constructor)===null||t===void 0)&&t[Rc])||ts(r)||es(r))}function Or(r,t,e){e===void 0&&(e=!1),Hr(r)===0?(e?Object.keys:Wr)(r).forEach(function(i){e&&typeof i=="symbol"||t(i,r[i],r)}):r.forEach(function(i,n){return t(n,i,r)})}function Hr(r){var t=r[dt];return t?t.i>3?t.i-4:t.i:Array.isArray(r)?1:ts(r)?2:es(r)?3:0}function Ur(r,t){return Hr(r)===2?r.has(t):Object.prototype.hasOwnProperty.call(r,t)}function af(r,t){return Hr(r)===2?r.get(t):r[t]}function _c(r,t,e){var i=Hr(r);i===2?r.set(t,e):i===3?r.add(e):r[t]=e}function Nc(r,t){return r===t?r!==0||1/r==1/t:r!=r&&t!=t}function ts(r){return pf&&r instanceof Map}function es(r){return uf&&r instanceof Set}function We(r){return r.o||r.t}function rs(r){if(Array.isArray(r))return Array.prototype.slice.call(r);var t=$c(r);delete t[dt];for(var e=Wr(t),i=0;i<e.length;i++){var n=e[i],a=t[n];a.writable===!1&&(a.writable=!0,a.configurable=!0),(a.get||a.set)&&(t[n]={configurable:!0,writable:!0,enumerable:a.enumerable,value:r[n]})}return Object.create(Object.getPrototypeOf(r),t)}function os(r,t){return t===void 0&&(t=!1),is(r)||_e(r)||!ee(r)||(Hr(r)>1&&(r.set=r.add=r.clear=r.delete=sf),Object.freeze(r),t&&Or(r,function(e,i){return os(i,!0)},!0)),r}function sf(){qt(2)}function is(r){return r==null||typeof r!="object"||Object.isFrozen(r)}function he(r){var t=Qa[r];return t||qt(18,r),t}function lf(r,t){Qa[r]||(Qa[r]=t)}function Ya(){return Mo}function Ga(r,t){t&&(he("Patches"),r.u=[],r.s=[],r.v=t)}function Ei(r){Xa(r),r.p.forEach(cf),r.p=null}function Xa(r){r===Mo&&(Mo=r.l)}function Sc(r){return Mo={p:[],l:Mo,h:r,m:!0,_:0}}function cf(r){var t=r[dt];t.i===0||t.i===1?t.j():t.g=!0}function Ka(r,t){t._=t.p.length;var e=t.p[0],i=r!==void 0&&r!==e;return t.h.O||he("ES5").S(t,r,i),i?(e[dt].P&&(Ei(t),qt(4)),ee(r)&&(r=Ai(t,r),t.l||Ri(t,r)),t.u&&he("Patches").M(e[dt].t,r,t.u,t.s)):r=Ai(t,e,[]),Ei(t),t.u&&t.v(t.u,t.s),r!==Tc?r:void 0}function Ai(r,t,e){if(is(t))return t;var i=t[dt];if(!i)return Or(t,function(l,d){return Oc(r,i,t,l,d,e)},!0),t;if(i.A!==r)return t;if(!i.P)return Ri(r,i.t,!0),i.t;if(!i.I){i.I=!0,i.A._--;var n=i.i===4||i.i===5?i.o=rs(i.k):i.o,a=n,s=!1;i.i===3&&(a=new Set(n),n.clear(),s=!0),Or(a,function(l,d){return Oc(r,i,n,l,d,e,s)}),Ri(r,n,!1),e&&r.u&&he("Patches").N(i,e,r.u,r.s)}return i.o}function Oc(r,t,e,i,n,a,s){if(_e(n)){var l=Ai(r,n,a&&t&&t.i!==3&&!Ur(t.R,i)?a.concat(i):void 0);if(_c(e,i,l),!_e(l))return;r.m=!1}else s&&e.add(n);if(ee(n)&&!is(n)){if(!r.h.D&&r._<1)return;Ai(r,n),t&&t.A.l||Ri(r,n)}}function Ri(r,t,e){e===void 0&&(e=!1),!r.l&&r.h.D&&r.m&&os(t,e)}function Za(r,t){var e=r[dt];return(e?We(e):r)[t]}function Cc(r,t){if(t in r)for(var e=Object.getPrototypeOf(r);e;){var i=Object.getOwnPropertyDescriptor(e,t);if(i)return i;e=Object.getPrototypeOf(e)}}function He(r){r.P||(r.P=!0,r.l&&He(r.l))}function qa(r){r.o||(r.o=rs(r.t))}function Ja(r,t,e){var i=ts(t)?he("MapSet").F(t,e):es(t)?he("MapSet").T(t,e):r.O?function(n,a){var s=Array.isArray(n),l={i:s?1:0,A:a?a.A:Ya(),P:!1,I:!1,R:{},l:a,t:n,k:null,o:null,j:null,C:!1},d=l,p=Bo;s&&(d=[l],p=Do);var f=Proxy.revocable(d,p),h=f.revoke,m=f.proxy;return l.k=m,l.j=h,m}(t,e):he("ES5").J(t,e);return(e?e.A:Ya()).p.push(i),i}function df(r){return _e(r)||qt(22,r),function t(e){if(!ee(e))return e;var i,n=e[dt],a=Hr(e);if(n){if(!n.P&&(n.i<4||!he("ES5").K(n)))return n.t;n.I=!0,i=wc(e,a),n.I=!1}else i=wc(e,a);return Or(i,function(s,l){n&&af(n.t,s)===l||_c(i,s,t(l))}),a===3?new Set(i):i}(r)}function wc(r,t){switch(t){case 2:return new Map(r);case 3:return Array.from(r)}return rs(r)}function Ic(){function r(s,l){var d=a[s];return d?d.enumerable=l:a[s]=d={configurable:!0,enumerable:l,get:function(){var p=this[dt];return Bo.get(p,s)},set:function(p){var f=this[dt];Bo.set(f,s,p)}},d}function t(s){for(var l=s.length-1;l>=0;l--){var d=s[l][dt];if(!d.P)switch(d.i){case 5:i(d)&&He(d);break;case 4:e(d)&&He(d)}}}function e(s){for(var l=s.t,d=s.k,p=Wr(d),f=p.length-1;f>=0;f--){var h=p[f];if(h!==dt){var m=l[h];if(m===void 0&&!Ur(l,h))return!0;var v=d[h],S=v&&v[dt];if(S?S.t!==m:!Nc(v,m))return!0}}var E=!!l[dt];return p.length!==Wr(l).length+(E?0:1)}function i(s){var l=s.k;if(l.length!==s.t.length)return!0;var d=Object.getOwnPropertyDescriptor(l,l.length-1);if(d&&!d.get)return!0;for(var p=0;p<l.length;p++)if(!l.hasOwnProperty(p))return!0;return!1}function n(s){s.g&&qt(3,JSON.stringify(We(s)))}var a={};lf("ES5",{J:function(s,l){var d=Array.isArray(s),p=function(h,m){if(h){for(var v=Array(m.length),S=0;S<m.length;S++)Object.defineProperty(v,""+S,r(S,!0));return v}var E=$c(m);delete E[dt];for(var $=Wr(E),_=0;_<$.length;_++){var T=$[_];E[T]=r(T,h||!!E[T].enumerable)}return Object.create(Object.getPrototypeOf(m),E)}(d,s),f={i:d?5:4,A:l?l.A:Ya(),P:!1,I:!1,R:{},l,t:s,k:p,o:null,g:!1,C:!1};return Object.defineProperty(p,dt,{value:f,writable:!0}),p},S:function(s,l,d){d?_e(l)&&l[dt].A===s&&t(s.p):(s.u&&function p(f){if(f&&typeof f=="object"){var h=f[dt];if(h){var m=h.t,v=h.k,S=h.R,E=h.i;if(E===4)Or(v,function(w){w!==dt&&(m[w]!==void 0||Ur(m,w)?S[w]||p(v[w]):(S[w]=!0,He(h)))}),Or(m,function(w){v[w]!==void 0||Ur(v,w)||(S[w]=!1,He(h))});else if(E===5){if(i(h)&&(He(h),S.length=!0),v.length<m.length)for(var $=v.length;$<m.length;$++)S[$]=!1;else for(var _=m.length;_<v.length;_++)S[_]=!0;for(var T=Math.min(v.length,m.length),C=0;C<T;C++)v.hasOwnProperty(C)||(S[C]=!0),S[C]===void 0&&p(v[C])}}}}(s.p[0]),t(s.p))},K:function(s){return s.i===4?e(s):i(s)}})}var Ec,Mo,ns=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",pf=typeof Map<"u",uf=typeof Set<"u",Ac=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",Tc=ns?Symbol.for("immer-nothing"):((Ec={})["immer-nothing"]=!0,Ec),Rc=ns?Symbol.for("immer-draftable"):"__$immer_draftable",dt=ns?Symbol.for("immer-state"):"__$immer_state";var ff=""+Object.prototype.constructor,Wr=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(r){return Object.getOwnPropertyNames(r).concat(Object.getOwnPropertySymbols(r))}:Object.getOwnPropertyNames,$c=Object.getOwnPropertyDescriptors||function(r){var t={};return Wr(r).forEach(function(e){t[e]=Object.getOwnPropertyDescriptor(r,e)}),t},Qa={},Bo={get:function(r,t){if(t===dt)return r;var e=We(r);if(!Ur(e,t))return function(n,a,s){var l,d=Cc(a,s);return d?"value"in d?d.value:(l=d.get)===null||l===void 0?void 0:l.call(n.k):void 0}(r,e,t);var i=e[t];return r.I||!ee(i)?i:i===Za(r.t,t)?(qa(r),r.o[t]=Ja(r.A.h,i,r)):i},has:function(r,t){return t in We(r)},ownKeys:function(r){return Reflect.ownKeys(We(r))},set:function(r,t,e){var i=Cc(We(r),t);if(i?.set)return i.set.call(r.k,e),!0;if(!r.P){var n=Za(We(r),t),a=n?.[dt];if(a&&a.t===e)return r.o[t]=e,r.R[t]=!1,!0;if(Nc(e,n)&&(e!==void 0||Ur(r.t,t)))return!0;qa(r),He(r)}return r.o[t]===e&&(e!==void 0||t in r.o)||Number.isNaN(e)&&Number.isNaN(r.o[t])||(r.o[t]=e,r.R[t]=!0),!0},deleteProperty:function(r,t){return Za(r.t,t)!==void 0||t in r.t?(r.R[t]=!1,qa(r),He(r)):delete r.R[t],r.o&&delete r.o[t],!0},getOwnPropertyDescriptor:function(r,t){var e=We(r),i=Reflect.getOwnPropertyDescriptor(e,t);return i&&{writable:!0,configurable:r.i!==1||t!=="length",enumerable:i.enumerable,value:e[t]}},defineProperty:function(){qt(11)},getPrototypeOf:function(r){return Object.getPrototypeOf(r.t)},setPrototypeOf:function(){qt(12)}},Do={};Or(Bo,function(r,t){Do[r]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),Do.deleteProperty=function(r,t){return Do.set.call(this,r,t,void 0)},Do.set=function(r,t,e){return Bo.set.call(this,r[0],t,e,r[0])};var hf=function(){function r(e){var i=this;this.O=Ac,this.D=!0,this.produce=function(n,a,s){if(typeof n=="function"&&typeof a!="function"){var l=a;a=n;var d=i;return function(E){var $=this;E===void 0&&(E=l);for(var _=arguments.length,T=Array(_>1?_-1:0),C=1;C<_;C++)T[C-1]=arguments[C];return d.produce(E,function(w){var A;return(A=a).call.apply(A,[$,w].concat(T))})}}var p;if(typeof a!="function"&&qt(6),s!==void 0&&typeof s!="function"&&qt(7),ee(n)){var f=Sc(i),h=Ja(i,n,void 0),m=!0;try{p=a(h),m=!1}finally{m?Ei(f):Xa(f)}return typeof Promise<"u"&&p instanceof Promise?p.then(function(E){return Ga(f,s),Ka(E,f)},function(E){throw Ei(f),E}):(Ga(f,s),Ka(p,f))}if(!n||typeof n!="object"){if((p=a(n))===void 0&&(p=n),p===Tc&&(p=void 0),i.D&&os(p,!0),s){var v=[],S=[];he("Patches").M(n,p,v,S),s(v,S)}return p}qt(21,n)},this.produceWithPatches=function(n,a){if(typeof n=="function")return function(p){for(var f=arguments.length,h=Array(f>1?f-1:0),m=1;m<f;m++)h[m-1]=arguments[m];return i.produceWithPatches(p,function(v){return n.apply(void 0,[v].concat(h))})};var s,l,d=i.produce(n,a,function(p,f){s=p,l=f});return typeof Promise<"u"&&d instanceof Promise?d.then(function(p){return[p,s,l]}):[d,s,l]},typeof e?.useProxies=="boolean"&&this.setUseProxies(e.useProxies),typeof e?.autoFreeze=="boolean"&&this.setAutoFreeze(e.autoFreeze)}var t=r.prototype;return t.createDraft=function(e){ee(e)||qt(8),_e(e)&&(e=df(e));var i=Sc(this),n=Ja(this,e,void 0);return n[dt].C=!0,Xa(i),n},t.finishDraft=function(e,i){var n=e&&e[dt],a=n.A;return Ga(a,i),Ka(void 0,a)},t.setAutoFreeze=function(e){this.D=e},t.setUseProxies=function(e){e&&!Ac&&qt(20),this.O=e},t.applyPatches=function(e,i){var n;for(n=i.length-1;n>=0;n--){var a=i[n];if(a.path.length===0&&a.op==="replace"){e=a.value;break}}n>-1&&(i=i.slice(n+1));var s=he("Patches").$;return _e(e)?s(e,i):this.produce(e,function(l){return s(l,i)})},r}(),Kt=new hf,mf=Kt.produce,Cv=Kt.produceWithPatches.bind(Kt),wv=Kt.setAutoFreeze.bind(Kt),Ev=Kt.setUseProxies.bind(Kt),Av=Kt.applyPatches.bind(Kt),Rv=Kt.createDraft.bind(Kt),_v=Kt.finishDraft.bind(Kt),_i=mf;function ze(r){"@babel/helpers - typeof";return ze=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ze(r)}function as(r,t){if(ze(r)!=="object"||r===null)return r;var e=r[Symbol.toPrimitive];if(e!==void 0){var i=e.call(r,t||"default");if(ze(i)!=="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(r)}function ss(r){var t=as(r,"string");return ze(t)==="symbol"?t:String(t)}function ls(r,t,e){return t=ss(t),t in r?Object.defineProperty(r,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):r[t]=e,r}function Pc(r,t){var e=Object.keys(r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(r);t&&(i=i.filter(function(n){return Object.getOwnPropertyDescriptor(r,n).enumerable})),e.push.apply(e,i)}return e}function Ni(r){for(var t=1;t<arguments.length;t++){var e=arguments[t]!=null?arguments[t]:{};t%2?Pc(Object(e),!0).forEach(function(i){ls(r,i,e[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(e)):Pc(Object(e)).forEach(function(i){Object.defineProperty(r,i,Object.getOwnPropertyDescriptor(e,i))})}return r}function Tt(r){return"Minified Redux error #"+r+"; visit https://redux.js.org/Errors?code="+r+" for the full message or use the non-minified dev environment for full errors. "}var Lc=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),cs=function(){return Math.random().toString(36).substring(7).split("").join(".")},Ii={INIT:"@@redux/INIT"+cs(),REPLACE:"@@redux/REPLACE"+cs(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+cs()}};function yf(r){if(typeof r!="object"||r===null)return!1;for(var t=r;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(r)===t}function ds(r,t,e){var i;if(typeof t=="function"&&typeof e=="function"||typeof e=="function"&&typeof arguments[3]=="function")throw new Error(Tt(0));if(typeof t=="function"&&typeof e>"u"&&(e=t,t=void 0),typeof e<"u"){if(typeof e!="function")throw new Error(Tt(1));return e(ds)(r,t)}if(typeof r!="function")throw new Error(Tt(2));var n=r,a=t,s=[],l=s,d=!1;function p(){l===s&&(l=s.slice())}function f(){if(d)throw new Error(Tt(3));return a}function h(E){if(typeof E!="function")throw new Error(Tt(4));if(d)throw new Error(Tt(5));var $=!0;return p(),l.push(E),function(){if($){if(d)throw new Error(Tt(6));$=!1,p();var T=l.indexOf(E);l.splice(T,1),s=null}}}function m(E){if(!yf(E))throw new Error(Tt(7));if(typeof E.type>"u")throw new Error(Tt(8));if(d)throw new Error(Tt(9));try{d=!0,a=n(a,E)}finally{d=!1}for(var $=s=l,_=0;_<$.length;_++){var T=$[_];T()}return E}function v(E){if(typeof E!="function")throw new Error(Tt(10));n=E,m({type:Ii.REPLACE})}function S(){var E,$=h;return E={subscribe:function(T){if(typeof T!="object"||T===null)throw new Error(Tt(11));function C(){T.next&&T.next(f())}C();var w=$(C);return{unsubscribe:w}}},E[Lc]=function(){return this},E}return m({type:Ii.INIT}),i={dispatch:m,subscribe:h,getState:f,replaceReducer:v},i[Lc]=S,i}function gf(r){Object.keys(r).forEach(function(t){var e=r[t],i=e(void 0,{type:Ii.INIT});if(typeof i>"u")throw new Error(Tt(12));if(typeof e(void 0,{type:Ii.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(Tt(13))})}function kc(r){for(var t=Object.keys(r),e={},i=0;i<t.length;i++){var n=t[i];typeof r[n]=="function"&&(e[n]=r[n])}var a=Object.keys(e),s,l;try{gf(e)}catch(d){l=d}return function(p,f){if(p===void 0&&(p={}),l)throw l;if(0)var h;for(var m=!1,v={},S=0;S<a.length;S++){var E=a[S],$=e[E],_=p[E],T=$(_,f);if(typeof T>"u"){var C=f&&f.type;throw new Error(Tt(14))}v[E]=T,m=m||T!==_}return m=m||a.length!==Object.keys(p).length,m?v:p}}function zr(){for(var r=arguments.length,t=new Array(r),e=0;e<r;e++)t[e]=arguments[e];return t.length===0?function(i){return i}:t.length===1?t[0]:t.reduce(function(i,n){return function(){return i(n.apply(void 0,arguments))}})}function Dc(){for(var r=arguments.length,t=new Array(r),e=0;e<r;e++)t[e]=arguments[e];return function(i){return function(){var n=i.apply(void 0,arguments),a=function(){throw new Error(Tt(15))},s={getState:n.getState,dispatch:function(){return a.apply(void 0,arguments)}},l=t.map(function(d){return d(s)});return a=zr.apply(void 0,l)(n.dispatch),Ni(Ni({},n),{},{dispatch:a})}}}function Mc(r){var t=function(i){var n=i.dispatch,a=i.getState;return function(s){return function(l){return typeof l=="function"?l(n,a,r):s(l)}}};return t}var Bc=Mc();Bc.withExtraArgument=Mc;var ps=Bc;var zc=function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(i[a]=n[a])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function i(){this.constructor=t}t.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),bf=function(r,t){var e={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},i,n,a,s;return s={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function l(p){return function(f){return d([p,f])}}function d(p){if(i)throw new TypeError("Generator is already executing.");for(;e;)try{if(i=1,n&&(a=p[0]&2?n.return:p[0]?n.throw||((a=n.return)&&a.call(n),0):n.next)&&!(a=a.call(n,p[1])).done)return a;switch(n=0,a&&(p=[p[0]&2,a.value]),p[0]){case 0:case 1:a=p;break;case 4:return e.label++,{value:p[1],done:!1};case 5:e.label++,n=p[1],p=[0];continue;case 7:p=e.ops.pop(),e.trys.pop();continue;default:if(a=e.trys,!(a=a.length>0&&a[a.length-1])&&(p[0]===6||p[0]===2)){e=0;continue}if(p[0]===3&&(!a||p[1]>a[0]&&p[1]<a[3])){e.label=p[1];break}if(p[0]===6&&e.label<a[1]){e.label=a[1],a=p;break}if(a&&e.label<a[2]){e.label=a[2],e.ops.push(p);break}a[2]&&e.ops.pop(),e.trys.pop();continue}p=t.call(r,e)}catch(f){p=[6,f],n=0}finally{i=a=0}if(p[0]&5)throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}},Vr=function(r,t){for(var e=0,i=t.length,n=r.length;e<i;e++,n++)r[n]=t[e];return r},vf=Object.defineProperty,xf=Object.defineProperties,Sf=Object.getOwnPropertyDescriptors,Fc=Object.getOwnPropertySymbols,Of=Object.prototype.hasOwnProperty,Cf=Object.prototype.propertyIsEnumerable,Uc=function(r,t,e){return t in r?vf(r,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[t]=e},Ve=function(r,t){for(var e in t||(t={}))Of.call(t,e)&&Uc(r,e,t[e]);if(Fc)for(var i=0,n=Fc(t);i<n.length;i++){var e=n[i];Cf.call(t,e)&&Uc(r,e,t[e])}return r},us=function(r,t){return xf(r,Sf(t))},wf=function(r,t,e){return new Promise(function(i,n){var a=function(d){try{l(e.next(d))}catch(p){n(p)}},s=function(d){try{l(e.throw(d))}catch(p){n(p)}},l=function(d){return d.done?i(d.value):Promise.resolve(d.value).then(a,s)};l((e=e.apply(r,t)).next())})};var Ef=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?zr:zr.apply(null,arguments)},Gv=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(r){return r}};function Af(r){if(typeof r!="object"||r===null)return!1;var t=Object.getPrototypeOf(r);if(t===null)return!0;for(var e=t;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return t===e}var Rf=function(r){zc(t,r);function t(){for(var e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];var n=r.apply(this,e)||this;return Object.setPrototypeOf(n,t.prototype),n}return Object.defineProperty(t,Symbol.species,{get:function(){return t},enumerable:!1,configurable:!0}),t.prototype.concat=function(){for(var e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];return r.prototype.concat.apply(this,e)},t.prototype.prepend=function(){for(var e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];return e.length===1&&Array.isArray(e[0])?new(t.bind.apply(t,Vr([void 0],e[0].concat(this)))):new(t.bind.apply(t,Vr([void 0],e.concat(this))))},t}(Array),_f=function(r){zc(t,r);function t(){for(var e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];var n=r.apply(this,e)||this;return Object.setPrototypeOf(n,t.prototype),n}return Object.defineProperty(t,Symbol.species,{get:function(){return t},enumerable:!1,configurable:!0}),t.prototype.concat=function(){for(var e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];return r.prototype.concat.apply(this,e)},t.prototype.prepend=function(){for(var e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];return e.length===1&&Array.isArray(e[0])?new(t.bind.apply(t,Vr([void 0],e[0].concat(this)))):new(t.bind.apply(t,Vr([void 0],e.concat(this))))},t}(Array);function ms(r){return ee(r)?_i(r,function(){}):r}function Nf(r){return typeof r=="boolean"}function If(){return function(t){return Tf(t)}}function Tf(r){r===void 0&&(r={});var t=r.thunk,e=t===void 0?!0:t,i=r.immutableCheck,n=i===void 0?!0:i,a=r.serializableCheck,s=a===void 0?!0:a,l=new Rf;if(e&&(Nf(e)?l.push(ps):l.push(ps.withExtraArgument(e.extraArgument))),0){if(n)var d;if(s)var p}return l}var fs=!0;function Vc(r){var t=If(),e=r||{},i=e.reducer,n=i===void 0?void 0:i,a=e.middleware,s=a===void 0?t():a,l=e.devTools,d=l===void 0?!0:l,p=e.preloadedState,f=p===void 0?void 0:p,h=e.enhancers,m=h===void 0?void 0:h,v;if(typeof n=="function")v=n;else if(Af(n))v=kc(n);else throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');var S=s;if(typeof S=="function"&&(S=S(t),!fs&&!Array.isArray(S)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!fs&&S.some(function(w){return typeof w!="function"}))throw new Error("each middleware provided to configureStore must be a function");var E=Dc.apply(void 0,S),$=zr;d&&($=Ef(Ve({trace:!fs},typeof d=="object"&&d)));var _=new _f(E),T=_;Array.isArray(m)?T=Vr([E],m):typeof m=="function"&&(T=m(_));var C=$.apply(void 0,T);return ds(v,f,C)}function je(r,t){function e(){for(var i=[],n=0;n<arguments.length;n++)i[n]=arguments[n];if(t){var a=t.apply(void 0,i);if(!a)throw new Error("prepareAction did not return an object");return Ve(Ve({type:r,payload:a.payload},"meta"in a&&{meta:a.meta}),"error"in a&&{error:a.error})}return{type:r,payload:i[0]}}return e.toString=function(){return""+r},e.type=r,e.match=function(i){return i.type===r},e}function jc(r){var t={},e=[],i,n={addCase:function(a,s){var l=typeof a=="string"?a:a.type;if(l in t)throw new Error("addCase cannot be called with two reducers for the same action type");return t[l]=s,n},addMatcher:function(a,s){return e.push({matcher:a,reducer:s}),n},addDefaultCase:function(a){return i=a,n}};return r(n),[t,e,i]}function $f(r){return typeof r=="function"}function Pf(r,t,e,i){e===void 0&&(e=[]);var n=typeof t=="function"?jc(t):[t,e,i],a=n[0],s=n[1],l=n[2],d;if($f(r))d=function(){return ms(r())};else{var p=ms(r);d=function(){return p}}function f(h,m){h===void 0&&(h=d());var v=Vr([a[m.type]],s.filter(function(S){var E=S.matcher;return E(m)}).map(function(S){var E=S.reducer;return E}));return v.filter(function(S){return!!S}).length===0&&(v=[l]),v.reduce(function(S,E){if(E)if(_e(S)){var $=S,_=E($,m);return _===void 0?S:_}else{if(ee(S))return _i(S,function(T){return E(T,m)});var _=E(S,m);if(_===void 0){if(S===null)return S;throw Error("A case reducer on a non-draftable value must not return undefined")}return _}return S},h)}return f.getInitialState=d,f}function Lf(r,t){return r+"/"+t}function Gc(r){var t=r.name;if(!t)throw new Error("`name` is a required option for createSlice");typeof process<"u";var e=typeof r.initialState=="function"?r.initialState:ms(r.initialState),i=r.reducers||{},n=Object.keys(i),a={},s={},l={};n.forEach(function(f){var h=i[f],m=Lf(t,f),v,S;"reducer"in h?(v=h.reducer,S=h.prepare):v=h,a[f]=v,s[m]=v,l[f]=S?je(m,S):je(m)});function d(){var f=typeof r.extraReducers=="function"?jc(r.extraReducers):[r.extraReducers],h=f[0],m=h===void 0?{}:h,v=f[1],S=v===void 0?[]:v,E=f[2],$=E===void 0?void 0:E,_=Ve(Ve({},m),s);return Pf(e,function(T){for(var C in _)T.addCase(C,_[C]);for(var w=0,A=S;w<A.length;w++){var B=A[w];T.addMatcher(B.matcher,B.reducer)}$&&T.addDefaultCase($)})}var p;return{name:t,reducer:function(f,h){return p||(p=d()),p(f,h)},actions:l,caseReducers:a,getInitialState:function(){return p||(p=d()),p.getInitialState()}}}var kf="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Df=function(r){r===void 0&&(r=21);for(var t="",e=r;e--;)t+=kf[Math.random()*64|0];return t},Mf=["name","message","stack","code"],hs=function(){function r(t,e){this.payload=t,this.meta=e}return r}(),Wc=function(){function r(t,e){this.payload=t,this.meta=e}return r}(),Bf=function(r){if(typeof r=="object"&&r!==null){for(var t={},e=0,i=Mf;e<i.length;e++){var n=i[e];typeof r[n]=="string"&&(t[n]=r[n])}return t}return{message:String(r)}},Yv=function(){function r(t,e,i){var n=je(t+"/fulfilled",function(f,h,m,v){return{payload:f,meta:us(Ve({},v||{}),{arg:m,requestId:h,requestStatus:"fulfilled"})}}),a=je(t+"/pending",function(f,h,m){return{payload:void 0,meta:us(Ve({},m||{}),{arg:h,requestId:f,requestStatus:"pending"})}}),s=je(t+"/rejected",function(f,h,m,v,S){return{payload:v,error:(i&&i.serializeError||Bf)(f||"Rejected"),meta:us(Ve({},S||{}),{arg:m,requestId:h,rejectedWithValue:!!v,requestStatus:"rejected",aborted:f?.name==="AbortError",condition:f?.name==="ConditionError"})}}),l=!1,d=typeof AbortController<"u"?AbortController:function(){function f(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return f.prototype.abort=function(){},f}();function p(f){return function(h,m,v){var S=i?.idGenerator?i.idGenerator(f):Df(),E=new d,$,_=!1;function T(w){$=w,E.abort()}var C=function(){return wf(this,null,function(){var w,A,B,Z,J,tt,D;return bf(this,function(y){switch(y.label){case 0:return y.trys.push([0,4,,5]),Z=(w=i?.condition)==null?void 0:w.call(i,f,{getState:m,extra:v}),Uf(Z)?[4,Z]:[3,2];case 1:Z=y.sent(),y.label=2;case 2:if(Z===!1||E.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return _=!0,J=new Promise(function(O,k){return E.signal.addEventListener("abort",function(){return k({name:"AbortError",message:$||"Aborted"})})}),h(a(S,f,(A=i?.getPendingMeta)==null?void 0:A.call(i,{requestId:S,arg:f},{getState:m,extra:v}))),[4,Promise.race([J,Promise.resolve(e(f,{dispatch:h,getState:m,extra:v,requestId:S,signal:E.signal,abort:T,rejectWithValue:function(O,k){return new hs(O,k)},fulfillWithValue:function(O,k){return new Wc(O,k)}})).then(function(O){if(O instanceof hs)throw O;return O instanceof Wc?n(O.payload,S,f,O.meta):n(O,S,f)})])];case 3:return B=y.sent(),[3,5];case 4:return tt=y.sent(),B=tt instanceof hs?s(null,S,f,tt.payload,tt.meta):s(tt,S,f),[3,5];case 5:return D=i&&!i.dispatchConditionRejection&&s.match(B)&&B.meta.condition,D||h(B),[2,B]}})})}();return Object.assign(C,{abort:T,requestId:S,arg:f,unwrap:function(){return C.then(Ff)}})}}return Object.assign(p,{pending:a,rejected:s,fulfilled:n,typePrefix:t})}return r.withTypes=function(){return r},r}();function Ff(r){if(r.meta&&r.meta.rejectedWithValue)throw r.payload;if(r.error)throw r.error;return r.payload}function Uf(r){return r!==null&&typeof r=="object"&&typeof r.then=="function"}var Kc="listener",Zc="completed",qc="cancelled",Xv="task-"+qc,Jv="task-"+Zc,Qv=Kc+"-"+qc,tx=Kc+"-"+Zc;var ys="listenerMiddleware";var ex=je(ys+"/add"),rx=je(ys+"/removeAll"),ox=je(ys+"/remove");var Hc,ix=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(r){return(Hc||(Hc=Promise.resolve())).then(r).catch(function(t){return setTimeout(function(){throw t},0)})},Wf=function(r){return function(t){setTimeout(t,r)}},nx=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:Wf(10);Ic();window.ftReduxStores||(window.ftReduxStores={});var Ne=class r{static get(t){var e;let i=typeof t=="string"?t:t.name,n=typeof t=="string"?void 0:t,a=window.ftReduxStores[i];if(xr(a))return a;if(n==null)return;let s=Gc({...n,reducers:(e=n.reducers)!==null&&e!==void 0?e:{}}),l=Vc({reducer:(d,p)=>p.type==="CLEAR_FT_REDUX_STORE"?s.getInitialState():typeof p.type=="string"&&p.type.startsWith("DEFAULT_VALUE_SETTER__")?{...d,...p.overwrites}:s.reducer(d,p)});return window.ftReduxStores[n.name]=new r(s,l)}constructor(t,e){this.reduxSlice=t,this.reduxStore=e,this.isFtReduxStore=!0,this.eventBus=document.createElement("event-bus"),this.commands=new ko,this.actions=new Proxy(this.reduxSlice.actions,{get:(i,n,a)=>{let s=n,l=i[s];return l?(...d)=>{let p=l(...d);return this.reduxStore.dispatch(p),p}:d=>{this.setState({[s]:d})}}})}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE"})}setState(t){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(t).join("_"),overwrites:t})}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(t){throw new Error("Not implemented yet.")}subscribe(t){return this.reduxStore.subscribe(t)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}};function Hf(){var r;for(let t of Object.values((r=window.ftReduxStores)!==null&&r!==void 0?r:{}))xr(t)&&t.clear()}var xs={};rt(xs,{scrollHelper:()=>zf});var bs,Ti=new Map,vs=class{lock(t,e){if(e){let i=Ti.get(e);if(i==null||i===t)return Ti.set(e,t),e}}release(t,e){e&&Ti.get(e)===t&&Ti.delete(e)}findFirstScrollableParent(t){let e,i=n=>{var a;n.stopPropagation();let s,l;for(let d of n.composedPath()){let p=d,f=this.elementCanScroll(p);if(f&&p.clientHeight&&p.clientHeight<p.scrollHeight){s=p;break}else f&&l==null&&(l=p)}e=(a=s??l)!==null&&a!==void 0?a:document.body};return t.addEventListener("find-scrollable-parent",i),t.dispatchEvent(new Event("find-scrollable-parent",{composed:!0})),t.removeEventListener("find-scrollable-parent",i),e}elementCanScroll(t){try{return["auto","scroll"].includes(getComputedStyle(t).overflowY)}catch{return!1}}getAbsoluteScrollOffset(t,e){let i=0;for(;e&&e.offsetParent!==t.offsetParent;)i+=e.offsetTop,e=e.offsetParent;return i+e.offsetTop-t.offsetTop}computeTopOffsetRatio(t,e){if(typeof t=="number")return t;switch(t){case"end":return 1;case"center":return .5;case"nearest":return e;default:return 0}}scrollIntoViewIfPossible(t,e){let i=this.findFirstScrollableParent(t);if(t&&this.lock(this,i)){let n=this.getAbsoluteScrollOffset(i,t),a=n-i.clientHeight+t.clientHeight,s=n,l=Wn(0,(s-i.scrollTop)/(s-a),1),d=this.computeTopOffsetRatio(e?.position,l)*(a-s)+s;i.scrollTo({behavior:e?.behavior,top:d})}else console.warn("Could not scroll element into view because the scrollable parent is already locked",t,i);this.release(this,i)}};window.FluidTopicsScrollHelper=(bs=window.FluidTopicsScrollHelper)!==null&&bs!==void 0?bs:new vs;var zf=window.FluidTopicsScrollHelper;var Ss={};rt(Ss,{shadowQuerySelector:()=>Vf,shadowQuerySelectorAll:()=>jf});function Vf(r,t,...e){var i;let n=r.querySelector(t);for(let a of e)n=(i=n?.shadowRoot)===null||i===void 0?void 0:i.querySelector(a);return n}function jf(r,t,...e){let i=[...r.querySelectorAll(t)];for(let n of e)i=i.flatMap(a=>{var s,l;return[...(l=(s=a.shadowRoot)===null||s===void 0?void 0:s.querySelectorAll(n))!==null&&l!==void 0?l:[]]});return i}var Os={};rt(Os,{SearchPlaceConverter:()=>Li,SearchPlaceQueryParams:()=>st,isSearchPlaceQueryParams:()=>bd,serializeRequest:()=>Yf});var Kf=vp(Xc(),1);var Jc;(function(r){r.black="black",r.green="green",r.blue="blue",r.purple="purple",r.red="red",r.orange="orange",r.yellow="yellow"})(Jc||(Jc={}));var Qc;(function(r){r.OFFICIAL="OFFICIAL",r.PERSONAL="PERSONAL",r.SHARED="SHARED"})(Qc||(Qc={}));var td;(function(r){r.THIRD_PARTY="THIRD_PARTY",r.OFF_THE_GRID="OFF_THE_GRID",r.CONTENT_PACKAGER="CONTENT_PACKAGER",r.PAGES="PAGES",r.DESIGNED_READER="DESIGNED_READER"})(td||(td={}));var ed;(function(r){r.HOMEPAGE="HOMEPAGE",r.CUSTOM="CUSTOM",r.HEADER="HEADER",r.READER="READER",r.TOPIC_TEMPLATE="TOPIC_TEMPLATE",r.SEARCH="SEARCH",r.SEARCH_RESULT="SEARCH_RESULT"})(ed||(ed={}));var rd;(function(r){r.CLASSIC="CLASSIC",r.CUSTOM="CUSTOM",r.DESIGNER="DESIGNER"})(rd||(rd={}));var od;(function(r){r.AND="AND",r.OR="OR",r.MONOVALUED="MONOVALUED"})(od||(od={}));var id;(function(r){r.NONE="NONE",r.ALPHABET="ALPHABET",r.VERSION="VERSION"})(id||(id={}));var Ie;(function(r){r.STARS="STARS",r.LIKE="LIKE",r.DICHOTOMOUS="DICHOTOMOUS",r.NO_RATING="NO_RATING"})(Ie||(Ie={}));var nd;(function(r){r.LAST_WEEK="LAST_WEEK",r.LAST_MONTH="LAST_MONTH",r.LAST_QUARTER="LAST_QUARTER",r.LAST_YEAR="LAST_YEAR",r.CUSTOM="CUSTOM"})(nd||(nd={}));var ad;(function(r){r.ASC="ASC",r.DESC="DESC"})(ad||(ad={}));var sd;(function(r){r.ALPHA="ALPHA",r.NATURAL="NATURAL"})(sd||(sd={}));var ld;(function(r){r.EVERYWHERE="EVERYWHERE",r.TITLE_ONLY="TITLE_ONLY",r.NONE="NONE"})(ld||(ld={}));var hd=r=>["EVERYWHERE","TITLE_ONLY","NONE"].includes(r);var cd;(function(r){r.ARTICLE="ARTICLE",r.BOOK="BOOK",r.SHARED_BOOK="SHARED_BOOK"})(cd||(cd={}));var dd;(function(r){r.FLUIDTOPICS="FLUIDTOPICS",r.EXTERNAL="EXTERNAL"})(dd||(dd={}));var pd;(function(r){r.MAP="MAP",r.DOCUMENT="DOCUMENT",r.TOPIC="TOPIC",r.PERSONAL_BOOK="PERSONAL_BOOK",r.SHARED_BOOK="SHARED_BOOK"})(pd||(pd={}));var Fo;(function(r){r.LAST_WEEK="LAST_WEEK",r.LAST_MONTH="LAST_MONTH",r.LAST_QUARTER="LAST_QUARTER",r.LAST_YEAR="LAST_YEAR"})(Fo||(Fo={}));var md=r=>["LAST_WEEK","LAST_MONTH","LAST_QUARTER","LAST_YEAR"].includes(r);var ud;(function(r){r.MAP="MAP",r.DOCUMENT="DOCUMENT",r.TOPIC="TOPIC"})(ud||(ud={}));var fd;(function(r){r.DEFAULT="DEFAULT",r.DOCUMENTS="DOCUMENTS",r.ALL_TOPICS="ALL_TOPICS"})(fd||(fd={}));var pt;(function(r){r.PERSONAL_BOOK_USER="PERSONAL_BOOK_USER",r.PERSONAL_BOOK_SHARE_USER="PERSONAL_BOOK_SHARE_USER",r.HTML_EXPORT_USER="HTML_EXPORT_USER",r.PDF_EXPORT_USER="PDF_EXPORT_USER",r.SAVED_SEARCH_USER="SAVED_SEARCH_USER",r.COLLECTION_USER="COLLECTION_USER",r.OFFLINE_USER="OFFLINE_USER",r.ANALYTICS_USER="ANALYTICS_USER",r.BETA_USER="BETA_USER",r.DEBUG_USER="DEBUG_USER",r.PRINT_USER="PRINT_USER",r.RATING_USER="RATING_USER",r.FEEDBACK_USER="FEEDBACK_USER",r.GENERATIVE_AI_USER="GENERATIVE_AI_USER",r.CONTENT_PUBLISHER="CONTENT_PUBLISHER",r.KHUB_ADMIN="KHUB_ADMIN",r.USERS_ADMIN="USERS_ADMIN",r.PORTAL_ADMIN="PORTAL_ADMIN",r.ADMIN="ADMIN",r.DEVELOPER="DEVELOPER"})(pt||(pt={}));var yd;(function(r){r.VALID="VALID",r.INVALID="INVALID"})(yd||(yd={}));var Gf={[pt.PERSONAL_BOOK_SHARE_USER]:[pt.PERSONAL_BOOK_USER],[pt.HTML_EXPORT_USER]:[pt.PERSONAL_BOOK_USER],[pt.PDF_EXPORT_USER]:[pt.PERSONAL_BOOK_USER],[pt.KHUB_ADMIN]:[pt.CONTENT_PUBLISHER],[pt.ADMIN]:[pt.KHUB_ADMIN,pt.USERS_ADMIN,pt.PORTAL_ADMIN],[pt.DEVELOPER]:[pt.BETA_USER,pt.DEBUG_USER]};function gd(r,t){return r===t||(Gf[r]??[]).some(e=>gd(e,t))}function Cr(r,t){return r==null?!1:(Array.isArray(r)?r:Array.isArray(r.roles)?r.roles:Array.isArray(r.profile?.roles)?r.profile.roles:[]).some(i=>gd(i,t))}function Zf(r){return`"${r}"`}function qf(r){return r.startsWith('"')&&r.endsWith('"')?r.replace(/(^"+)|("+$)/g,""):r}function Yf(r,t){return new Li(r,{}).serialize(t)}var st;(function(r){r.LOCALE="content-lang",r.QUERY="query",r.SCOPE="scope",r.FILTERS="filters",r.VIRTUAL_FIELD="virtual-field",r.PERIOD="period",r.VALUE_FILTERS="value-filters",r.DATE_FILTERS="date-filters",r.RANGE_FILTERS="range-filters",r.SORT="sort"})(st||(st={}));var Xf=new Set(Object.values(st));function bd(r){return Xf.has(r)}var Li=class{constructor(t,e){this.baseUrl=t,this.predefinedSorts=e,this.scopeMapping={documents:"DOCUMENTS",topics:"ALL_TOPICS"},this.filtersEscapeMapping=[["*","\\*","[ft-escaped-star-character]"],["~","\\\\~","[ft-escaped-tilde-character]"],["_","\\\\\\\\_","[ft-escaped-underscore-character]"]]}serialize(t,e="/search"){let i=this.toURLSearchParams(t).toString();return new URL(`${this.baseUrl.replace(/\/+$/,"")}${e}?${i}`).href}toURLSearchParams(t){var e,i,n,a,s,l,d,p,f,h;let m=new URLSearchParams({[st.LOCALE]:(e=t.contentLocale)!==null&&e!==void 0?e:"all"});((i=t.query)===null||i===void 0?void 0:i.length)>0&&m.append(st.QUERY,t.query),t.scope&&t.scope!=="DEFAULT"&&m.append(st.SCOPE,t.scope.toLowerCase()),t.virtualField&&t.virtualField!=="EVERYWHERE"&&m.append(st.VIRTUAL_FIELD,t.virtualField.toLowerCase()),((n=t.sort)===null||n===void 0?void 0:n.length)>0&&t.sort[0].key==="ft:lastEdition"&&m.append(st.SORT,"last_update");let v=(s=(a=t.metadataFilters)===null||a===void 0?void 0:a.filter(_=>_.valueFilter))!==null&&s!==void 0?s:[];if(v.length>0){let _=v.map(T=>{var C,w;let A=((w=(C=T.valueFilter)===null||C===void 0?void 0:C.values)!==null&&w!==void 0?w:[]).map(B=>this.escapeFilters(B)).map(B=>encodeURIComponent(Zf(B))).join("_");return`${T.key}~${A}`}).join("*");m.append(st.VALUE_FILTERS,_)}let S=(d=(l=t.metadataFilters)===null||l===void 0?void 0:l.filter(_=>_.dateFilter))!==null&&d!==void 0?d:[];if(S.length>0){let _=S.map(T=>{var C;return`${T.key}~${(C=T.dateFilter)===null||C===void 0?void 0:C.type.toLowerCase()}`}).join("*");m.append(st.DATE_FILTERS,_)}let E=(f=(p=t.metadataFilters)===null||p===void 0?void 0:p.filter(_=>_.rangeFilter))!==null&&f!==void 0?f:[];if(E.length>0){let _=E.map(T=>{var C,w;return`${T.key}~${(C=T.rangeFilter)===null||C===void 0?void 0:C.from}_${(w=T.rangeFilter)===null||w===void 0?void 0:w.to}`}).join("*");m.append(st.RANGE_FILTERS,_)}let $=(h=t.otherQueryParams)!==null&&h!==void 0?h:{};for(let _ in $)m.append(_,$[_]);return m}parse(t){var e;let i=t.split("?"),n=this.fromURLSearchParams(new URLSearchParams(i.slice(1).join("?"))),a=i[0].split("/search/")[1];return a==null?n:{...n,scope:(e=this.scopeMapping[a])!==null&&e!==void 0?e:n.scope}}fromURLSearchParams(t){var e,i,n,a,s,l,d,p;let f=((e=t.get(st.VIRTUAL_FIELD))!==null&&e!==void 0?e:"EVERYWHERE").toUpperCase(),h=((i=t.get(st.SORT))!==null&&i!==void 0?i:"DEFAULT").toUpperCase(),m=(n=t.get(st.SCOPE))!==null&&n!==void 0?n:"default",v={};for(let S of t.keys())bd(S)||(v[S]=t.get(S));return{contentLocale:t.get(st.LOCALE)==="all"?void 0:(a=t.get(st.LOCALE))!==null&&a!==void 0?a:void 0,query:decodeURIComponent((s=t.get(st.QUERY))!==null&&s!==void 0?s:""),scope:(l=this.scopeMapping[m])!==null&&l!==void 0?l:"DEFAULT",virtualField:hd(f)?f:"EVERYWHERE",sort:(p=(d=this.predefinedSorts[h])!==null&&d!==void 0?d:this.predefinedSorts.DEFAULT)!==null&&p!==void 0?p:[],metadataFilters:this.parseCompatFilters(t),facets:[],paging:{page:1,perPage:20},otherQueryParams:v}}parseCompatFilters(t){var e,i,n,a,s,l;let d=[];return t.has(st.FILTERS)&&(d=this.parseValueFilters((e=t.get(st.FILTERS))!==null&&e!==void 0?e:"")),(i=t.has(st.PERIOD))!==null&&i!==void 0&&i&&(d=[...d,...this.parseLegacyPeriodFilter(((n=t.get(st.PERIOD))!==null&&n!==void 0?n:"").toUpperCase())]),[...d,...this.parseValueFilters((a=t.get(st.VALUE_FILTERS))!==null&&a!==void 0?a:""),...this.parseDateFilters((s=t.get(st.DATE_FILTERS))!==null&&s!==void 0?s:""),...this.parseRangeFilters((l=t.get(st.RANGE_FILTERS))!==null&&l!==void 0?l:"")]}splitUnknownFilter(t){return this.superEscapeFilters(decodeURIComponent(t)).split("*").map(e=>e.split("~"))}parseValueFilters(t){return t.length===0?[]:this.splitUnknownFilter(t).map(e=>({key:e[0],valueFilter:{values:e[1].split("_").map(qf).map(i=>this.unescapeFilterValue(i)),negative:!1}}))}parseDateFilters(t){return t.length===0?[]:this.splitUnknownFilter(t).map(e=>({key:e[0],dateFilter:{type:Fo[e[1].toUpperCase()]}}))}parseRangeFilters(t){return t.length===0?[]:this.splitUnknownFilter(t).map(e=>({key:e[0],rangeFilter:{from:e[1].split("_")[0],to:e[1].split("_")[1]}}))}escapeFilters(t){for(let[e,i,n]of this.filtersEscapeMapping)t=t.replaceAll(e,i);return t}superEscapeFilters(t){for(let[e,i,n]of this.filtersEscapeMapping)t=t.replaceAll(i,n);return t}unescapeFilterValue(t){for(let[e,i,n]of this.filtersEscapeMapping)t=t.replace(n,e);return t}parseLegacyPeriodFilter(t){if(md(t))return[{key:"ft:lastEdition",dateFilter:{type:Fo[t]}}];if(t.startsWith("CUSTOM_")){let[e,i,n]=t.split("_");return[{key:"ft:lastEdition",rangeFilter:{from:i,to:n}}]}return[]}};var Cs={};rt(Cs,{toFtFormComponent:()=>wr});var ki=Symbol("elementInternals");function wr(r,t){class e extends r{static get formAssociated(){return!0}get form(){return this[ki].form}constructor(...n){super(n),this[ki]=this.attachInternals(),this[ki].role=t}setFormValue(n){this[ki].setFormValue(n)}}return e}var ws={};rt(ws,{DateFormatter:()=>Gr});var Gr=class{static format(t,e,i,n){return window.moment?window.moment(t).locale(e).format(this.getDateFormat(i,n)):t}static getDateFormat(t,e){return t?e?"lll":"ll":e?"L LT":"L"}};var Es,As,Rs,_s,Uo=navigator.vendor&&!!navigator.vendor.match(/apple/i)||((Rs=(As=(Es=window.safari)===null||Es===void 0?void 0:Es.pushNotification)===null||As===void 0?void 0:As.toString())!==null&&Rs!==void 0?Rs:"")==="[object SafariRemoteNotification]",Jf="ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0;window.ftGlobals=(_s=window.ftGlobals)!==null&&_s!==void 0?_s:{lit:An,litDecorators:_n,litRepeat:In,litClassMap:Tn,litStyleMap:$n,litUnsafeHTML:Ln,wcUtils:{...Mn,...Dn,...Bn,...ws,...Fn,...zn,...ba,...Sa,...ka,...ga,...Fa,...Ma,...mc,...Hn,...Ha,...Va,...gc,...ja,...gs,...Da,...xs,...Ss,...Os,...Cs,isSafari:Uo,isTouchScreen:Jf,setVariable:x}};var Yt;(function(r){r.FEEDBACK="FEEDBACK",r.RATING="RATING",r.PRINT="PRINT",r.BOOKMARK="BOOKMARK",r.COLLECTIONS="COLLECTIONS",r.PERSONAL_BOOKS="PERSONAL_BOOKS"})(Yt||(Yt={}));var Qf=function(r,t,e,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,t,e,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(t,e,a):s(t,e))||a);return n>3&&a&&Object.defineProperty(t,e,a),a},Is=class extends Event{constructor(){super("register-ft-reader-component",{bubbles:!0,composed:!0})}},Ns=Symbol("registerInterval");function th(r){var t;class e extends r{constructor(){super(...arguments),this[t]=0}setReaderStateManager(n){this.clearStateManager(),this.stateManager=n,this.addStore(n.store,"reader")}clearStateManager(){this.stateManager&&(this.removeStore("reader"),this.stateManager=void 0)}get service(){var n;return(n=this.stateManager)===null||n===void 0?void 0:n.service}connectedCallback(){super.connectedCallback(),this[Ns]=window.setInterval(()=>this.tryToRegisterToContext(),50)}tryToRegisterToContext(){this.stateManager!=null?window.clearInterval(this[Ns]):this.dispatchEvent(new Is)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return t=Ns,Qf([z()],e.prototype,"stateManager",void 0),e}var Ke=class extends th(Zt){};var vd=o.extend("--ft-ripple-color","",N.colorContent),R={color:vd,backgroundColor:o.extend("--ft-ripple-background-color","",vd),opacityContentOnSurfacePressed:o.external(N.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:o.external(N.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:o.external(N.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:o.external(N.opacityContentOnSurfaceSelected,"Design system"),borderRadius:o.create("--ft-ripple-border-radius","","SIZE","0px")},xd=o.extend("--ft-ripple-color","",N.colorPrimary),Sd={color:xd,backgroundColor:o.extend("--ft-ripple-background-color","",xd)},Od=o.extend("--ft-ripple-color","",N.colorSecondary),Cd={color:Od,backgroundColor:o.extend("--ft-ripple-background-color","",Od)},wd=P`
50
+ `;var xc={};var Ka={};rt(Ka,{ParametrizedLabelResolver:()=>Do});var Do=class r{constructor(t,e){this.defaultLabels=t,this.labels=e}resolve(t,...e){var i,n;t=this.resolvePluralKey(t,e);let a=(n=(i=this.labels[t])!==null&&i!==void 0?i:this.defaultLabels[t])!==null&&n!==void 0?n:"";return r.replaceParameters(a,...e)}static replaceParameters(t,...e){return e.forEach((i,n)=>t=t.replace(new RegExp(`\\{${n}([^}]*)\\}`,"g"),(a,s)=>r.formatValue(i,s))),t}resolvePluralKey(t,e){for(let i of e)if(typeof i=="number"){let n=`${String(t)}[\\=${i}]`;if(n in this.labels||n in this.defaultLabels)return n}return t}static formatValue(t,e){return t instanceof Date?r.formatDate(t,e):t??""}static formatDate(t,e){let i=n=>e?.includes("date")?t.toLocaleDateString(n):e?.includes("time")?t.toLocaleTimeString(n):t.toLocaleString(n);try{return i(document.documentElement.lang)}catch{return i()}}};var vs={};rt(vs,{FtCommandQueue:()=>Fo,FtLitElementRedux:()=>Zt,FtReduxStore:()=>Ne,clearAllStores:()=>Gf,isFtReduxStore:()=>Sr,redux:()=>ct,reduxEventListener:()=>Mo,reduxReactive:()=>cf});var cf=()=>(r,t)=>{var e;let i=r.constructor;i.reduxReactiveProperties=new Set(i.reduxReactiveProperties),(e=i.reduxReactiveProperties)===null||e===void 0||e.add(t)},ct=r=>{let t=r??{};return(e,i)=>{var n;let a={hasChanged:Oo,attribute:!1,...t};g(a)(e,i);let s=e.constructor;s.reduxProperties=new Map(s.reduxProperties),s.reduxProperties.set(i,{selector:(n=t.selector)!==null&&n!==void 0?n:l=>l[i],store:t.store})}},Mo=r=>(t,e)=>{let i=t.constructor;i.reduxEventListeners=new Map(i.reduxEventListeners),i.reduxEventListeners.set(e,r)};var Fo=class{constructor(){this.queue=[]}add(t,e=!1){e&&(this.queue=this.queue.filter(i=>i.type!==t.type)),this.queue.push(t)}consume(t){let e=this.queue.find(i=>i.type===t);return e&&(this.queue=this.queue.filter(i=>i!==e)),e}};function Sr(r){var t;return(t=r?.isFtReduxStore)!==null&&t!==void 0?t:!1}var Sc,Oc,Cc,_i=Symbol("internalReduxEventsUnsubscribers"),Ue=Symbol("internalStoresUnsubscribers"),Or=Symbol("internalStores"),Zt=class extends j{constructor(){super(...arguments),this[Sc]=new Map,this[Oc]=new Map,this[Cc]=[]}get reduxConstructor(){return this.constructor}update(t){super.update(t),[...this.reduxConstructor.reduxReactiveProperties].some(e=>t.has(e))&&this.updateFromStores()}getUnnamedStore(){if(this[Or].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[Or].values()][0]}getStore(t){return t==null?this.getUnnamedStore():this[Or].get(t)}addStore(t,e){var i;e=(i=e??(Sr(t)?t.name:void 0))!==null&&i!==void 0?i:"default-store",this.unsubscribeFromStore(e),this.setupStore(e,t)}removeStore(t){let e=typeof t=="string"?t:t.name;this.unsubscribeFromStore(e),this[Or].delete(e)}setupStore(t,e){this[Or].set(t,e),this.subscribeToStore(t,e),this.updateFromStores()}setupStores(){this.unsubscribeFromStores(),this[Or].forEach((t,e)=>this.subscribeToStore(e,t)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((t,e)=>{let i=this.constructor.getPropertyOptions(e);if(!i?.attribute||!this.hasAttribute(typeof i?.attribute=="string"?i.attribute:e)){let n=this.getStore(t.store);n&&(t.store?this[Ue].has(t.store):this[Ue].size>0)&&(this[e]=t.selector(n.getState(),this))}})}subscribeToStore(t,e){var i;this[Ue].set(t,e.subscribe(()=>this.updateFromStores())),Sr(e)&&e.eventBus&&((i=this.reduxConstructor.reduxEventListeners)===null||i===void 0||i.forEach((n,a)=>{if(typeof this[a]=="function"&&(!n.store||e.name===n.store)){let s=l=>this[a](l);e.addEventListener(n.eventName,s),this[_i].push(()=>e.removeEventListener(n.eventName,s))}})),this.onStoreAvailable(t)}unsubscribeFromStores(){this[Ue].forEach((t,e)=>this.unsubscribeFromStore(e)),this[_i].forEach(t=>t()),this[_i]=[]}unsubscribeFromStore(t){this[Ue].has(t)&&this[Ue].get(t)(),this[Ue].delete(t)}onStoreAvailable(t){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}};Sc=Ue,Oc=Or,Cc=_i;Zt.reduxProperties=new Map;Zt.reduxReactiveProperties=new Set;Zt.reduxEventListeners=new Map;function qt(r){for(var t=arguments.length,e=Array(t>1?t-1:0),i=1;i<t;i++)e[i-1]=arguments[i];if(0)var n,a;throw Error("[Immer] minified error nr: "+r+(e.length?" "+e.map(function(s){return"'"+s+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function _e(r){return!!r&&!!r[dt]}function ee(r){var t;return!!r&&(function(e){if(!e||typeof e!="object")return!1;var i=Object.getPrototypeOf(e);if(i===null)return!0;var n=Object.hasOwnProperty.call(i,"constructor")&&i.constructor;return n===Object||typeof n=="function"&&Function.toString.call(n)===gf}(r)||Array.isArray(r)||!!r[Ic]||!!(!((t=r.constructor)===null||t===void 0)&&t[Ic])||rs(r)||os(r))}function Cr(r,t,e){e===void 0&&(e=!1),zr(r)===0?(e?Object.keys:Hr)(r).forEach(function(i){e&&typeof i=="symbol"||t(i,r[i],r)}):r.forEach(function(i,n){return t(n,i,r)})}function zr(r){var t=r[dt];return t?t.i>3?t.i-4:t.i:Array.isArray(r)?1:rs(r)?2:os(r)?3:0}function Wr(r,t){return zr(r)===2?r.has(t):Object.prototype.hasOwnProperty.call(r,t)}function df(r,t){return zr(r)===2?r.get(t):r[t]}function Tc(r,t,e){var i=zr(r);i===2?r.set(t,e):i===3?r.add(e):r[t]=e}function Pc(r,t){return r===t?r!==0||1/r==1/t:r!=r&&t!=t}function rs(r){return mf&&r instanceof Map}function os(r){return yf&&r instanceof Set}function We(r){return r.o||r.t}function is(r){if(Array.isArray(r))return Array.prototype.slice.call(r);var t=kc(r);delete t[dt];for(var e=Hr(t),i=0;i<e.length;i++){var n=e[i],a=t[n];a.writable===!1&&(a.writable=!0,a.configurable=!0),(a.get||a.set)&&(t[n]={configurable:!0,writable:!0,enumerable:a.enumerable,value:r[n]})}return Object.create(Object.getPrototypeOf(r),t)}function ns(r,t){return t===void 0&&(t=!1),as(r)||_e(r)||!ee(r)||(zr(r)>1&&(r.set=r.add=r.clear=r.delete=pf),Object.freeze(r),t&&Cr(r,function(e,i){return ns(i,!0)},!0)),r}function pf(){qt(2)}function as(r){return r==null||typeof r!="object"||Object.isFrozen(r)}function he(r){var t=es[r];return t||qt(18,r),t}function uf(r,t){es[r]||(es[r]=t)}function Ja(){return Uo}function Za(r,t){t&&(he("Patches"),r.u=[],r.s=[],r.v=t)}function Ni(r){Qa(r),r.p.forEach(ff),r.p=null}function Qa(r){r===Uo&&(Uo=r.l)}function Ec(r){return Uo={p:[],l:Uo,h:r,m:!0,_:0}}function ff(r){var t=r[dt];t.i===0||t.i===1?t.j():t.g=!0}function qa(r,t){t._=t.p.length;var e=t.p[0],i=r!==void 0&&r!==e;return t.h.O||he("ES5").S(t,r,i),i?(e[dt].P&&(Ni(t),qt(4)),ee(r)&&(r=Ii(t,r),t.l||Ti(t,r)),t.u&&he("Patches").M(e[dt].t,r,t.u,t.s)):r=Ii(t,e,[]),Ni(t),t.u&&t.v(t.u,t.s),r!==Lc?r:void 0}function Ii(r,t,e){if(as(t))return t;var i=t[dt];if(!i)return Cr(t,function(l,d){return wc(r,i,t,l,d,e)},!0),t;if(i.A!==r)return t;if(!i.P)return Ti(r,i.t,!0),i.t;if(!i.I){i.I=!0,i.A._--;var n=i.i===4||i.i===5?i.o=is(i.k):i.o,a=n,s=!1;i.i===3&&(a=new Set(n),n.clear(),s=!0),Cr(a,function(l,d){return wc(r,i,n,l,d,e,s)}),Ti(r,n,!1),e&&r.u&&he("Patches").N(i,e,r.u,r.s)}return i.o}function wc(r,t,e,i,n,a,s){if(_e(n)){var l=Ii(r,n,a&&t&&t.i!==3&&!Wr(t.R,i)?a.concat(i):void 0);if(Tc(e,i,l),!_e(l))return;r.m=!1}else s&&e.add(n);if(ee(n)&&!as(n)){if(!r.h.D&&r._<1)return;Ii(r,n),t&&t.A.l||Ti(r,n)}}function Ti(r,t,e){e===void 0&&(e=!1),!r.l&&r.h.D&&r.m&&ns(t,e)}function Ya(r,t){var e=r[dt];return(e?We(e):r)[t]}function Ac(r,t){if(t in r)for(var e=Object.getPrototypeOf(r);e;){var i=Object.getOwnPropertyDescriptor(e,t);if(i)return i;e=Object.getPrototypeOf(e)}}function He(r){r.P||(r.P=!0,r.l&&He(r.l))}function Xa(r){r.o||(r.o=is(r.t))}function ts(r,t,e){var i=rs(t)?he("MapSet").F(t,e):os(t)?he("MapSet").T(t,e):r.O?function(n,a){var s=Array.isArray(n),l={i:s?1:0,A:a?a.A:Ja(),P:!1,I:!1,R:{},l:a,t:n,k:null,o:null,j:null,C:!1},d=l,p=Wo;s&&(d=[l],p=Bo);var f=Proxy.revocable(d,p),h=f.revoke,y=f.proxy;return l.k=y,l.j=h,y}(t,e):he("ES5").J(t,e);return(e?e.A:Ja()).p.push(i),i}function hf(r){return _e(r)||qt(22,r),function t(e){if(!ee(e))return e;var i,n=e[dt],a=zr(e);if(n){if(!n.P&&(n.i<4||!he("ES5").K(n)))return n.t;n.I=!0,i=Rc(e,a),n.I=!1}else i=Rc(e,a);return Cr(i,function(s,l){n&&df(n.t,s)===l||Tc(i,s,t(l))}),a===3?new Set(i):i}(r)}function Rc(r,t){switch(t){case 2:return new Map(r);case 3:return Array.from(r)}return is(r)}function $c(){function r(s,l){var d=a[s];return d?d.enumerable=l:a[s]=d={configurable:!0,enumerable:l,get:function(){var p=this[dt];return Wo.get(p,s)},set:function(p){var f=this[dt];Wo.set(f,s,p)}},d}function t(s){for(var l=s.length-1;l>=0;l--){var d=s[l][dt];if(!d.P)switch(d.i){case 5:i(d)&&He(d);break;case 4:e(d)&&He(d)}}}function e(s){for(var l=s.t,d=s.k,p=Hr(d),f=p.length-1;f>=0;f--){var h=p[f];if(h!==dt){var y=l[h];if(y===void 0&&!Wr(l,h))return!0;var v=d[h],S=v&&v[dt];if(S?S.t!==y:!Pc(v,y))return!0}}var E=!!l[dt];return p.length!==Hr(l).length+(E?0:1)}function i(s){var l=s.k;if(l.length!==s.t.length)return!0;var d=Object.getOwnPropertyDescriptor(l,l.length-1);if(d&&!d.get)return!0;for(var p=0;p<l.length;p++)if(!l.hasOwnProperty(p))return!0;return!1}function n(s){s.g&&qt(3,JSON.stringify(We(s)))}var a={};uf("ES5",{J:function(s,l){var d=Array.isArray(s),p=function(h,y){if(h){for(var v=Array(y.length),S=0;S<y.length;S++)Object.defineProperty(v,""+S,r(S,!0));return v}var E=kc(y);delete E[dt];for(var N=Hr(E),T=0;T<N.length;T++){var P=N[T];E[P]=r(P,h||!!E[P].enumerable)}return Object.create(Object.getPrototypeOf(y),E)}(d,s),f={i:d?5:4,A:l?l.A:Ja(),P:!1,I:!1,R:{},l,t:s,k:p,o:null,g:!1,C:!1};return Object.defineProperty(p,dt,{value:f,writable:!0}),p},S:function(s,l,d){d?_e(l)&&l[dt].A===s&&t(s.p):(s.u&&function p(f){if(f&&typeof f=="object"){var h=f[dt];if(h){var y=h.t,v=h.k,S=h.R,E=h.i;if(E===4)Cr(v,function(C){C!==dt&&(y[C]!==void 0||Wr(y,C)?S[C]||p(v[C]):(S[C]=!0,He(h)))}),Cr(y,function(C){v[C]!==void 0||Wr(v,C)||(S[C]=!1,He(h))});else if(E===5){if(i(h)&&(He(h),S.length=!0),v.length<y.length)for(var N=v.length;N<y.length;N++)S[N]=!1;else for(var T=y.length;T<v.length;T++)S[T]=!0;for(var P=Math.min(v.length,y.length),w=0;w<P;w++)v.hasOwnProperty(w)||(S[w]=!0),S[w]===void 0&&p(v[w])}}}}(s.p[0]),t(s.p))},K:function(s){return s.i===4?e(s):i(s)}})}var _c,Uo,ss=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",mf=typeof Map<"u",yf=typeof Set<"u",Nc=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",Lc=ss?Symbol.for("immer-nothing"):((_c={})["immer-nothing"]=!0,_c),Ic=ss?Symbol.for("immer-draftable"):"__$immer_draftable",dt=ss?Symbol.for("immer-state"):"__$immer_state";var gf=""+Object.prototype.constructor,Hr=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(r){return Object.getOwnPropertyNames(r).concat(Object.getOwnPropertySymbols(r))}:Object.getOwnPropertyNames,kc=Object.getOwnPropertyDescriptors||function(r){var t={};return Hr(r).forEach(function(e){t[e]=Object.getOwnPropertyDescriptor(r,e)}),t},es={},Wo={get:function(r,t){if(t===dt)return r;var e=We(r);if(!Wr(e,t))return function(n,a,s){var l,d=Ac(a,s);return d?"value"in d?d.value:(l=d.get)===null||l===void 0?void 0:l.call(n.k):void 0}(r,e,t);var i=e[t];return r.I||!ee(i)?i:i===Ya(r.t,t)?(Xa(r),r.o[t]=ts(r.A.h,i,r)):i},has:function(r,t){return t in We(r)},ownKeys:function(r){return Reflect.ownKeys(We(r))},set:function(r,t,e){var i=Ac(We(r),t);if(i?.set)return i.set.call(r.k,e),!0;if(!r.P){var n=Ya(We(r),t),a=n?.[dt];if(a&&a.t===e)return r.o[t]=e,r.R[t]=!1,!0;if(Pc(e,n)&&(e!==void 0||Wr(r.t,t)))return!0;Xa(r),He(r)}return r.o[t]===e&&(e!==void 0||t in r.o)||Number.isNaN(e)&&Number.isNaN(r.o[t])||(r.o[t]=e,r.R[t]=!0),!0},deleteProperty:function(r,t){return Ya(r.t,t)!==void 0||t in r.t?(r.R[t]=!1,Xa(r),He(r)):delete r.R[t],r.o&&delete r.o[t],!0},getOwnPropertyDescriptor:function(r,t){var e=We(r),i=Reflect.getOwnPropertyDescriptor(e,t);return i&&{writable:!0,configurable:r.i!==1||t!=="length",enumerable:i.enumerable,value:e[t]}},defineProperty:function(){qt(11)},getPrototypeOf:function(r){return Object.getPrototypeOf(r.t)},setPrototypeOf:function(){qt(12)}},Bo={};Cr(Wo,function(r,t){Bo[r]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),Bo.deleteProperty=function(r,t){return Bo.set.call(this,r,t,void 0)},Bo.set=function(r,t,e){return Wo.set.call(this,r[0],t,e,r[0])};var bf=function(){function r(e){var i=this;this.O=Nc,this.D=!0,this.produce=function(n,a,s){if(typeof n=="function"&&typeof a!="function"){var l=a;a=n;var d=i;return function(E){var N=this;E===void 0&&(E=l);for(var T=arguments.length,P=Array(T>1?T-1:0),w=1;w<T;w++)P[w-1]=arguments[w];return d.produce(E,function(C){var A;return(A=a).call.apply(A,[N,C].concat(P))})}}var p;if(typeof a!="function"&&qt(6),s!==void 0&&typeof s!="function"&&qt(7),ee(n)){var f=Ec(i),h=ts(i,n,void 0),y=!0;try{p=a(h),y=!1}finally{y?Ni(f):Qa(f)}return typeof Promise<"u"&&p instanceof Promise?p.then(function(E){return Za(f,s),qa(E,f)},function(E){throw Ni(f),E}):(Za(f,s),qa(p,f))}if(!n||typeof n!="object"){if((p=a(n))===void 0&&(p=n),p===Lc&&(p=void 0),i.D&&ns(p,!0),s){var v=[],S=[];he("Patches").M(n,p,v,S),s(v,S)}return p}qt(21,n)},this.produceWithPatches=function(n,a){if(typeof n=="function")return function(p){for(var f=arguments.length,h=Array(f>1?f-1:0),y=1;y<f;y++)h[y-1]=arguments[y];return i.produceWithPatches(p,function(v){return n.apply(void 0,[v].concat(h))})};var s,l,d=i.produce(n,a,function(p,f){s=p,l=f});return typeof Promise<"u"&&d instanceof Promise?d.then(function(p){return[p,s,l]}):[d,s,l]},typeof e?.useProxies=="boolean"&&this.setUseProxies(e.useProxies),typeof e?.autoFreeze=="boolean"&&this.setAutoFreeze(e.autoFreeze)}var t=r.prototype;return t.createDraft=function(e){ee(e)||qt(8),_e(e)&&(e=hf(e));var i=Ec(this),n=ts(this,e,void 0);return n[dt].C=!0,Qa(i),n},t.finishDraft=function(e,i){var n=e&&e[dt],a=n.A;return Za(a,i),qa(void 0,a)},t.setAutoFreeze=function(e){this.D=e},t.setUseProxies=function(e){e&&!Nc&&qt(20),this.O=e},t.applyPatches=function(e,i){var n;for(n=i.length-1;n>=0;n--){var a=i[n];if(a.path.length===0&&a.op==="replace"){e=a.value;break}}n>-1&&(i=i.slice(n+1));var s=he("Patches").$;return _e(e)?s(e,i):this.produce(e,function(l){return s(l,i)})},r}(),Kt=new bf,vf=Kt.produce,_v=Kt.produceWithPatches.bind(Kt),Nv=Kt.setAutoFreeze.bind(Kt),Iv=Kt.setUseProxies.bind(Kt),Tv=Kt.applyPatches.bind(Kt),Pv=Kt.createDraft.bind(Kt),$v=Kt.finishDraft.bind(Kt),Pi=vf;function ze(r){"@babel/helpers - typeof";return ze=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ze(r)}function ls(r,t){if(ze(r)!=="object"||r===null)return r;var e=r[Symbol.toPrimitive];if(e!==void 0){var i=e.call(r,t||"default");if(ze(i)!=="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(r)}function cs(r){var t=ls(r,"string");return ze(t)==="symbol"?t:String(t)}function ds(r,t,e){return t=cs(t),t in r?Object.defineProperty(r,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):r[t]=e,r}function Dc(r,t){var e=Object.keys(r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(r);t&&(i=i.filter(function(n){return Object.getOwnPropertyDescriptor(r,n).enumerable})),e.push.apply(e,i)}return e}function $i(r){for(var t=1;t<arguments.length;t++){var e=arguments[t]!=null?arguments[t]:{};t%2?Dc(Object(e),!0).forEach(function(i){ds(r,i,e[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(e)):Dc(Object(e)).forEach(function(i){Object.defineProperty(r,i,Object.getOwnPropertyDescriptor(e,i))})}return r}function Pt(r){return"Minified Redux error #"+r+"; visit https://redux.js.org/Errors?code="+r+" for the full message or use the non-minified dev environment for full errors. "}var Mc=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),ps=function(){return Math.random().toString(36).substring(7).split("").join(".")},Li={INIT:"@@redux/INIT"+ps(),REPLACE:"@@redux/REPLACE"+ps(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+ps()}};function xf(r){if(typeof r!="object"||r===null)return!1;for(var t=r;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(r)===t}function us(r,t,e){var i;if(typeof t=="function"&&typeof e=="function"||typeof e=="function"&&typeof arguments[3]=="function")throw new Error(Pt(0));if(typeof t=="function"&&typeof e>"u"&&(e=t,t=void 0),typeof e<"u"){if(typeof e!="function")throw new Error(Pt(1));return e(us)(r,t)}if(typeof r!="function")throw new Error(Pt(2));var n=r,a=t,s=[],l=s,d=!1;function p(){l===s&&(l=s.slice())}function f(){if(d)throw new Error(Pt(3));return a}function h(E){if(typeof E!="function")throw new Error(Pt(4));if(d)throw new Error(Pt(5));var N=!0;return p(),l.push(E),function(){if(N){if(d)throw new Error(Pt(6));N=!1,p();var P=l.indexOf(E);l.splice(P,1),s=null}}}function y(E){if(!xf(E))throw new Error(Pt(7));if(typeof E.type>"u")throw new Error(Pt(8));if(d)throw new Error(Pt(9));try{d=!0,a=n(a,E)}finally{d=!1}for(var N=s=l,T=0;T<N.length;T++){var P=N[T];P()}return E}function v(E){if(typeof E!="function")throw new Error(Pt(10));n=E,y({type:Li.REPLACE})}function S(){var E,N=h;return E={subscribe:function(P){if(typeof P!="object"||P===null)throw new Error(Pt(11));function w(){P.next&&P.next(f())}w();var C=N(w);return{unsubscribe:C}}},E[Mc]=function(){return this},E}return y({type:Li.INIT}),i={dispatch:y,subscribe:h,getState:f,replaceReducer:v},i[Mc]=S,i}function Sf(r){Object.keys(r).forEach(function(t){var e=r[t],i=e(void 0,{type:Li.INIT});if(typeof i>"u")throw new Error(Pt(12));if(typeof e(void 0,{type:Li.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(Pt(13))})}function Fc(r){for(var t=Object.keys(r),e={},i=0;i<t.length;i++){var n=t[i];typeof r[n]=="function"&&(e[n]=r[n])}var a=Object.keys(e),s,l;try{Sf(e)}catch(d){l=d}return function(p,f){if(p===void 0&&(p={}),l)throw l;if(0)var h;for(var y=!1,v={},S=0;S<a.length;S++){var E=a[S],N=e[E],T=p[E],P=N(T,f);if(typeof P>"u"){var w=f&&f.type;throw new Error(Pt(14))}v[E]=P,y=y||P!==T}return y=y||a.length!==Object.keys(p).length,y?v:p}}function Vr(){for(var r=arguments.length,t=new Array(r),e=0;e<r;e++)t[e]=arguments[e];return t.length===0?function(i){return i}:t.length===1?t[0]:t.reduce(function(i,n){return function(){return i(n.apply(void 0,arguments))}})}function Bc(){for(var r=arguments.length,t=new Array(r),e=0;e<r;e++)t[e]=arguments[e];return function(i){return function(){var n=i.apply(void 0,arguments),a=function(){throw new Error(Pt(15))},s={getState:n.getState,dispatch:function(){return a.apply(void 0,arguments)}},l=t.map(function(d){return d(s)});return a=Vr.apply(void 0,l)(n.dispatch),$i($i({},n),{},{dispatch:a})}}}function Uc(r){var t=function(i){var n=i.dispatch,a=i.getState;return function(s){return function(l){return typeof l=="function"?l(n,a,r):s(l)}}};return t}var Wc=Uc();Wc.withExtraArgument=Uc;var fs=Wc;var Gc=function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(i[a]=n[a])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function i(){this.constructor=t}t.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),Of=function(r,t){var e={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},i,n,a,s;return s={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function l(p){return function(f){return d([p,f])}}function d(p){if(i)throw new TypeError("Generator is already executing.");for(;e;)try{if(i=1,n&&(a=p[0]&2?n.return:p[0]?n.throw||((a=n.return)&&a.call(n),0):n.next)&&!(a=a.call(n,p[1])).done)return a;switch(n=0,a&&(p=[p[0]&2,a.value]),p[0]){case 0:case 1:a=p;break;case 4:return e.label++,{value:p[1],done:!1};case 5:e.label++,n=p[1],p=[0];continue;case 7:p=e.ops.pop(),e.trys.pop();continue;default:if(a=e.trys,!(a=a.length>0&&a[a.length-1])&&(p[0]===6||p[0]===2)){e=0;continue}if(p[0]===3&&(!a||p[1]>a[0]&&p[1]<a[3])){e.label=p[1];break}if(p[0]===6&&e.label<a[1]){e.label=a[1],a=p;break}if(a&&e.label<a[2]){e.label=a[2],e.ops.push(p);break}a[2]&&e.ops.pop(),e.trys.pop();continue}p=t.call(r,e)}catch(f){p=[6,f],n=0}finally{i=a=0}if(p[0]&5)throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}},jr=function(r,t){for(var e=0,i=t.length,n=r.length;e<i;e++,n++)r[n]=t[e];return r},Cf=Object.defineProperty,Ef=Object.defineProperties,wf=Object.getOwnPropertyDescriptors,Hc=Object.getOwnPropertySymbols,Af=Object.prototype.hasOwnProperty,Rf=Object.prototype.propertyIsEnumerable,zc=function(r,t,e){return t in r?Cf(r,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[t]=e},Ve=function(r,t){for(var e in t||(t={}))Af.call(t,e)&&zc(r,e,t[e]);if(Hc)for(var i=0,n=Hc(t);i<n.length;i++){var e=n[i];Rf.call(t,e)&&zc(r,e,t[e])}return r},hs=function(r,t){return Ef(r,wf(t))},_f=function(r,t,e){return new Promise(function(i,n){var a=function(d){try{l(e.next(d))}catch(p){n(p)}},s=function(d){try{l(e.throw(d))}catch(p){n(p)}},l=function(d){return d.done?i(d.value):Promise.resolve(d.value).then(a,s)};l((e=e.apply(r,t)).next())})};var Nf=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Vr:Vr.apply(null,arguments)},Xv=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(r){return r}};function If(r){if(typeof r!="object"||r===null)return!1;var t=Object.getPrototypeOf(r);if(t===null)return!0;for(var e=t;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return t===e}var Tf=function(r){Gc(t,r);function t(){for(var e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];var n=r.apply(this,e)||this;return Object.setPrototypeOf(n,t.prototype),n}return Object.defineProperty(t,Symbol.species,{get:function(){return t},enumerable:!1,configurable:!0}),t.prototype.concat=function(){for(var e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];return r.prototype.concat.apply(this,e)},t.prototype.prepend=function(){for(var e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];return e.length===1&&Array.isArray(e[0])?new(t.bind.apply(t,jr([void 0],e[0].concat(this)))):new(t.bind.apply(t,jr([void 0],e.concat(this))))},t}(Array),Pf=function(r){Gc(t,r);function t(){for(var e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];var n=r.apply(this,e)||this;return Object.setPrototypeOf(n,t.prototype),n}return Object.defineProperty(t,Symbol.species,{get:function(){return t},enumerable:!1,configurable:!0}),t.prototype.concat=function(){for(var e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];return r.prototype.concat.apply(this,e)},t.prototype.prepend=function(){for(var e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];return e.length===1&&Array.isArray(e[0])?new(t.bind.apply(t,jr([void 0],e[0].concat(this)))):new(t.bind.apply(t,jr([void 0],e.concat(this))))},t}(Array);function gs(r){return ee(r)?Pi(r,function(){}):r}function $f(r){return typeof r=="boolean"}function Lf(){return function(t){return kf(t)}}function kf(r){r===void 0&&(r={});var t=r.thunk,e=t===void 0?!0:t,i=r.immutableCheck,n=i===void 0?!0:i,a=r.serializableCheck,s=a===void 0?!0:a,l=new Tf;if(e&&($f(e)?l.push(fs):l.push(fs.withExtraArgument(e.extraArgument))),0){if(n)var d;if(s)var p}return l}var ms=!0;function Kc(r){var t=Lf(),e=r||{},i=e.reducer,n=i===void 0?void 0:i,a=e.middleware,s=a===void 0?t():a,l=e.devTools,d=l===void 0?!0:l,p=e.preloadedState,f=p===void 0?void 0:p,h=e.enhancers,y=h===void 0?void 0:h,v;if(typeof n=="function")v=n;else if(If(n))v=Fc(n);else throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');var S=s;if(typeof S=="function"&&(S=S(t),!ms&&!Array.isArray(S)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!ms&&S.some(function(C){return typeof C!="function"}))throw new Error("each middleware provided to configureStore must be a function");var E=Bc.apply(void 0,S),N=Vr;d&&(N=Nf(Ve({trace:!ms},typeof d=="object"&&d)));var T=new Pf(E),P=T;Array.isArray(y)?P=jr([E],y):typeof y=="function"&&(P=y(T));var w=N.apply(void 0,P);return us(v,f,w)}function je(r,t){function e(){for(var i=[],n=0;n<arguments.length;n++)i[n]=arguments[n];if(t){var a=t.apply(void 0,i);if(!a)throw new Error("prepareAction did not return an object");return Ve(Ve({type:r,payload:a.payload},"meta"in a&&{meta:a.meta}),"error"in a&&{error:a.error})}return{type:r,payload:i[0]}}return e.toString=function(){return""+r},e.type=r,e.match=function(i){return i.type===r},e}function Zc(r){var t={},e=[],i,n={addCase:function(a,s){var l=typeof a=="string"?a:a.type;if(l in t)throw new Error("addCase cannot be called with two reducers for the same action type");return t[l]=s,n},addMatcher:function(a,s){return e.push({matcher:a,reducer:s}),n},addDefaultCase:function(a){return i=a,n}};return r(n),[t,e,i]}function Df(r){return typeof r=="function"}function Mf(r,t,e,i){e===void 0&&(e=[]);var n=typeof t=="function"?Zc(t):[t,e,i],a=n[0],s=n[1],l=n[2],d;if(Df(r))d=function(){return gs(r())};else{var p=gs(r);d=function(){return p}}function f(h,y){h===void 0&&(h=d());var v=jr([a[y.type]],s.filter(function(S){var E=S.matcher;return E(y)}).map(function(S){var E=S.reducer;return E}));return v.filter(function(S){return!!S}).length===0&&(v=[l]),v.reduce(function(S,E){if(E)if(_e(S)){var N=S,T=E(N,y);return T===void 0?S:T}else{if(ee(S))return Pi(S,function(P){return E(P,y)});var T=E(S,y);if(T===void 0){if(S===null)return S;throw Error("A case reducer on a non-draftable value must not return undefined")}return T}return S},h)}return f.getInitialState=d,f}function Ff(r,t){return r+"/"+t}function qc(r){var t=r.name;if(!t)throw new Error("`name` is a required option for createSlice");typeof process<"u";var e=typeof r.initialState=="function"?r.initialState:gs(r.initialState),i=r.reducers||{},n=Object.keys(i),a={},s={},l={};n.forEach(function(f){var h=i[f],y=Ff(t,f),v,S;"reducer"in h?(v=h.reducer,S=h.prepare):v=h,a[f]=v,s[y]=v,l[f]=S?je(y,S):je(y)});function d(){var f=typeof r.extraReducers=="function"?Zc(r.extraReducers):[r.extraReducers],h=f[0],y=h===void 0?{}:h,v=f[1],S=v===void 0?[]:v,E=f[2],N=E===void 0?void 0:E,T=Ve(Ve({},y),s);return Mf(e,function(P){for(var w in T)P.addCase(w,T[w]);for(var C=0,A=S;C<A.length;C++){var k=A[C];P.addMatcher(k.matcher,k.reducer)}N&&P.addDefaultCase(N)})}var p;return{name:t,reducer:function(f,h){return p||(p=d()),p(f,h)},actions:l,caseReducers:a,getInitialState:function(){return p||(p=d()),p.getInitialState()}}}var Bf="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Uf=function(r){r===void 0&&(r=21);for(var t="",e=r;e--;)t+=Bf[Math.random()*64|0];return t},Wf=["name","message","stack","code"],ys=function(){function r(t,e){this.payload=t,this.meta=e}return r}(),Vc=function(){function r(t,e){this.payload=t,this.meta=e}return r}(),Hf=function(r){if(typeof r=="object"&&r!==null){for(var t={},e=0,i=Wf;e<i.length;e++){var n=i[e];typeof r[n]=="string"&&(t[n]=r[n])}return t}return{message:String(r)}},ex=function(){function r(t,e,i){var n=je(t+"/fulfilled",function(f,h,y,v){return{payload:f,meta:hs(Ve({},v||{}),{arg:y,requestId:h,requestStatus:"fulfilled"})}}),a=je(t+"/pending",function(f,h,y){return{payload:void 0,meta:hs(Ve({},y||{}),{arg:h,requestId:f,requestStatus:"pending"})}}),s=je(t+"/rejected",function(f,h,y,v,S){return{payload:v,error:(i&&i.serializeError||Hf)(f||"Rejected"),meta:hs(Ve({},S||{}),{arg:y,requestId:h,rejectedWithValue:!!v,requestStatus:"rejected",aborted:f?.name==="AbortError",condition:f?.name==="ConditionError"})}}),l=!1,d=typeof AbortController<"u"?AbortController:function(){function f(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return f.prototype.abort=function(){},f}();function p(f){return function(h,y,v){var S=i?.idGenerator?i.idGenerator(f):Uf(),E=new d,N,T=!1;function P(C){N=C,E.abort()}var w=function(){return _f(this,null,function(){var C,A,k,W,Y,K,F;return Of(this,function(m){switch(m.label){case 0:return m.trys.push([0,4,,5]),W=(C=i?.condition)==null?void 0:C.call(i,f,{getState:y,extra:v}),Vf(W)?[4,W]:[3,2];case 1:W=m.sent(),m.label=2;case 2:if(W===!1||E.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return T=!0,Y=new Promise(function(O,D){return E.signal.addEventListener("abort",function(){return D({name:"AbortError",message:N||"Aborted"})})}),h(a(S,f,(A=i?.getPendingMeta)==null?void 0:A.call(i,{requestId:S,arg:f},{getState:y,extra:v}))),[4,Promise.race([Y,Promise.resolve(e(f,{dispatch:h,getState:y,extra:v,requestId:S,signal:E.signal,abort:P,rejectWithValue:function(O,D){return new ys(O,D)},fulfillWithValue:function(O,D){return new Vc(O,D)}})).then(function(O){if(O instanceof ys)throw O;return O instanceof Vc?n(O.payload,S,f,O.meta):n(O,S,f)})])];case 3:return k=m.sent(),[3,5];case 4:return K=m.sent(),k=K instanceof ys?s(null,S,f,K.payload,K.meta):s(K,S,f),[3,5];case 5:return F=i&&!i.dispatchConditionRejection&&s.match(k)&&k.meta.condition,F||h(k),[2,k]}})})}();return Object.assign(w,{abort:P,requestId:S,arg:f,unwrap:function(){return w.then(zf)}})}}return Object.assign(p,{pending:a,rejected:s,fulfilled:n,typePrefix:t})}return r.withTypes=function(){return r},r}();function zf(r){if(r.meta&&r.meta.rejectedWithValue)throw r.payload;if(r.error)throw r.error;return r.payload}function Vf(r){return r!==null&&typeof r=="object"&&typeof r.then=="function"}var Yc="listener",Xc="completed",Jc="cancelled",rx="task-"+Jc,ox="task-"+Xc,ix=Yc+"-"+Jc,nx=Yc+"-"+Xc;var bs="listenerMiddleware";var ax=je(bs+"/add"),sx=je(bs+"/removeAll"),lx=je(bs+"/remove");var jc,cx=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(r){return(jc||(jc=Promise.resolve())).then(r).catch(function(t){return setTimeout(function(){throw t},0)})},jf=function(r){return function(t){setTimeout(t,r)}},dx=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:jf(10);$c();window.ftReduxStores||(window.ftReduxStores={});var Ne=class r extends hr{static get(t){var e;let i=typeof t=="string"?t:t.name,n=typeof t=="string"?void 0:t,a=window.ftReduxStores[i];if(Sr(a))return a;if(n==null)return;let s=qc({...n,reducers:(e=n.reducers)!==null&&e!==void 0?e:{}}),l=Kc({reducer:(d,p)=>p.type==="CLEAR_FT_REDUX_STORE"?s.getInitialState():typeof p.type=="string"&&p.type.startsWith("DEFAULT_VALUE_SETTER__")?{...d,...p.overwrites}:s.reducer(d,p)});return window.ftReduxStores[n.name]=new r(s,l)}constructor(t,e){super(),this.reduxSlice=t,this.reduxStore=e,this.isFtReduxStore=!0,this.commands=new Fo,this.actions=new Proxy(this.reduxSlice.actions,{get:(i,n,a)=>{let s=n,l=i[s];return l?(...d)=>{let p=l(...d);return this.reduxStore.dispatch(p),p}:d=>{this.setState({[s]:d})}}})}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE"})}setState(t){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(t).join("_"),overwrites:t})}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(t){throw new Error("Not implemented yet.")}subscribe(t){return this.reduxStore.subscribe(t)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}};function Gf(){var r;for(let t of Object.values((r=window.ftReduxStores)!==null&&r!==void 0?r:{}))Sr(t)&&t.clear()}var Os={};rt(Os,{scrollHelper:()=>Kf});var xs,ki=new Map,Ss=class{lock(t,e){if(e){let i=ki.get(e);if(i==null||i===t)return ki.set(e,t),e}}release(t,e){e&&ki.get(e)===t&&ki.delete(e)}findFirstScrollableParent(t){let e,i=n=>{var a;n.stopPropagation();let s,l;for(let d of n.composedPath()){let p=d,f=this.elementCanScroll(p);if(f&&p.clientHeight&&p.clientHeight<p.scrollHeight){s=p;break}else f&&l==null&&(l=p)}e=(a=s??l)!==null&&a!==void 0?a:document.body};return t.addEventListener("find-scrollable-parent",i),t.dispatchEvent(new Event("find-scrollable-parent",{composed:!0})),t.removeEventListener("find-scrollable-parent",i),e}elementCanScroll(t){try{return["auto","scroll"].includes(getComputedStyle(t).overflowY)}catch{return!1}}getAbsoluteScrollOffset(t,e){let i=0;for(;e&&e.offsetParent!==t.offsetParent;)i+=e.offsetTop,e=e.offsetParent;return i+e.offsetTop-t.offsetTop}computeTopOffsetRatio(t,e){if(typeof t=="number")return t;switch(t){case"end":return 1;case"center":return .5;case"nearest":return e;default:return 0}}scrollIntoViewIfPossible(t,e){let i=this.findFirstScrollableParent(t);if(t&&this.lock(this,i)){let n=this.getAbsoluteScrollOffset(i,t),a=n-i.clientHeight+t.clientHeight,s=n,l=Co(0,(s-i.scrollTop)/(s-a),1),d=this.computeTopOffsetRatio(e?.position,l)*(a-s)+s;i.scrollTo({behavior:e?.behavior,top:d})}else console.warn("Could not scroll element into view because the scrollable parent is already locked",t,i);this.release(this,i)}};window.FluidTopicsScrollHelper=(xs=window.FluidTopicsScrollHelper)!==null&&xs!==void 0?xs:new Ss;var Kf=window.FluidTopicsScrollHelper;var Cs={};rt(Cs,{shadowQuerySelector:()=>Zf,shadowQuerySelectorAll:()=>qf});function Zf(r,t,...e){var i;let n=r.querySelector(t);for(let a of e)n=(i=n?.shadowRoot)===null||i===void 0?void 0:i.querySelector(a);return n}function qf(r,t,...e){let i=[...r.querySelectorAll(t)];for(let n of e)i=i.flatMap(a=>{var s,l;return[...(l=(s=a.shadowRoot)===null||s===void 0?void 0:s.querySelectorAll(n))!==null&&l!==void 0?l:[]]});return i}var Es={};rt(Es,{SearchPlaceConverter:()=>zo,SearchPlaceQueryParams:()=>ot,isSearchPlaceQueryParams:()=>Od,serializeRequest:()=>Qf});var Xf=Cp(td(),1);var ed;(function(r){r.black="black",r.green="green",r.blue="blue",r.purple="purple",r.red="red",r.orange="orange",r.yellow="yellow"})(ed||(ed={}));var rd;(function(r){r.OFFICIAL="OFFICIAL",r.PERSONAL="PERSONAL",r.SHARED="SHARED"})(rd||(rd={}));var od;(function(r){r.THIRD_PARTY="THIRD_PARTY",r.OFF_THE_GRID="OFF_THE_GRID",r.CONTENT_PACKAGER="CONTENT_PACKAGER",r.PAGES="PAGES",r.DESIGNED_READER="DESIGNED_READER"})(od||(od={}));var id;(function(r){r.HOMEPAGE="HOMEPAGE",r.CUSTOM="CUSTOM",r.HEADER="HEADER",r.READER="READER",r.TOPIC_TEMPLATE="TOPIC_TEMPLATE",r.SEARCH="SEARCH",r.SEARCH_RESULT="SEARCH_RESULT"})(id||(id={}));var nd;(function(r){r.CLASSIC="CLASSIC",r.CUSTOM="CUSTOM",r.DESIGNER="DESIGNER"})(nd||(nd={}));var ad;(function(r){r.AND="AND",r.OR="OR",r.MONOVALUED="MONOVALUED"})(ad||(ad={}));var sd;(function(r){r.NONE="NONE",r.ALPHABET="ALPHABET",r.VERSION="VERSION"})(sd||(sd={}));var Ie;(function(r){r.STARS="STARS",r.LIKE="LIKE",r.DICHOTOMOUS="DICHOTOMOUS",r.NO_RATING="NO_RATING"})(Ie||(Ie={}));var ld;(function(r){r.LAST_WEEK="LAST_WEEK",r.LAST_MONTH="LAST_MONTH",r.LAST_QUARTER="LAST_QUARTER",r.LAST_YEAR="LAST_YEAR",r.CUSTOM="CUSTOM"})(ld||(ld={}));var cd;(function(r){r.ASC="ASC",r.DESC="DESC"})(cd||(cd={}));var dd;(function(r){r.ALPHA="ALPHA",r.NATURAL="NATURAL"})(dd||(dd={}));var pd;(function(r){r.EVERYWHERE="EVERYWHERE",r.TITLE_ONLY="TITLE_ONLY",r.NONE="NONE"})(pd||(pd={}));var gd=r=>["EVERYWHERE","TITLE_ONLY","NONE"].includes(r);var ud;(function(r){r.ARTICLE="ARTICLE",r.BOOK="BOOK",r.SHARED_BOOK="SHARED_BOOK"})(ud||(ud={}));var fd;(function(r){r.FLUIDTOPICS="FLUIDTOPICS",r.EXTERNAL="EXTERNAL"})(fd||(fd={}));var hd;(function(r){r.MAP="MAP",r.DOCUMENT="DOCUMENT",r.TOPIC="TOPIC",r.PERSONAL_BOOK="PERSONAL_BOOK",r.SHARED_BOOK="SHARED_BOOK"})(hd||(hd={}));var Ho;(function(r){r.LAST_WEEK="LAST_WEEK",r.LAST_MONTH="LAST_MONTH",r.LAST_QUARTER="LAST_QUARTER",r.LAST_YEAR="LAST_YEAR"})(Ho||(Ho={}));var bd=r=>["LAST_WEEK","LAST_MONTH","LAST_QUARTER","LAST_YEAR"].includes(r);var md;(function(r){r.MAP="MAP",r.DOCUMENT="DOCUMENT",r.TOPIC="TOPIC"})(md||(md={}));var yd;(function(r){r.DEFAULT="DEFAULT",r.DOCUMENTS="DOCUMENTS",r.ALL_TOPICS="ALL_TOPICS"})(yd||(yd={}));var pt;(function(r){r.PERSONAL_BOOK_USER="PERSONAL_BOOK_USER",r.PERSONAL_BOOK_SHARE_USER="PERSONAL_BOOK_SHARE_USER",r.HTML_EXPORT_USER="HTML_EXPORT_USER",r.PDF_EXPORT_USER="PDF_EXPORT_USER",r.SAVED_SEARCH_USER="SAVED_SEARCH_USER",r.COLLECTION_USER="COLLECTION_USER",r.OFFLINE_USER="OFFLINE_USER",r.ANALYTICS_USER="ANALYTICS_USER",r.BETA_USER="BETA_USER",r.DEBUG_USER="DEBUG_USER",r.PRINT_USER="PRINT_USER",r.RATING_USER="RATING_USER",r.FEEDBACK_USER="FEEDBACK_USER",r.GENERATIVE_AI_USER="GENERATIVE_AI_USER",r.CONTENT_PUBLISHER="CONTENT_PUBLISHER",r.KHUB_ADMIN="KHUB_ADMIN",r.USERS_ADMIN="USERS_ADMIN",r.PORTAL_ADMIN="PORTAL_ADMIN",r.ADMIN="ADMIN",r.DEVELOPER="DEVELOPER"})(pt||(pt={}));var vd;(function(r){r.VALID="VALID",r.INVALID="INVALID"})(vd||(vd={}));var Yf={[pt.PERSONAL_BOOK_SHARE_USER]:[pt.PERSONAL_BOOK_USER],[pt.HTML_EXPORT_USER]:[pt.PERSONAL_BOOK_USER],[pt.PDF_EXPORT_USER]:[pt.PERSONAL_BOOK_USER],[pt.KHUB_ADMIN]:[pt.CONTENT_PUBLISHER],[pt.ADMIN]:[pt.KHUB_ADMIN,pt.USERS_ADMIN,pt.PORTAL_ADMIN],[pt.DEVELOPER]:[pt.BETA_USER,pt.DEBUG_USER]};function xd(r,t){return r===t||(Yf[r]??[]).some(e=>xd(e,t))}function Er(r,t){return r==null?!1:(Array.isArray(r)?r:Array.isArray(r.roles)?r.roles:Array.isArray(r.profile?.roles)?r.profile.roles:[]).some(i=>xd(i,t))}function Jf(r){return`"${r}"`}function Sd(r){return r.startsWith('"')&&r.endsWith('"')?r.replace(/(^"+)|("+$)/g,""):r}function Qf(r,t){return new zo(r).serialize(t)}var ot;(function(r){r.LOCALE="content-lang",r.QUERY="query",r.SCOPE="scope",r.FILTERS="filters",r.VIRTUAL_FIELD="virtual-field",r.PERIOD="period",r.VALUE_FILTERS="value-filters",r.DATE_FILTERS="date-filters",r.RANGE_FILTERS="range-filters",r.SORT="sort",r.PER_PAGE="per-page"})(ot||(ot={}));var th=new Set(Object.values(ot));function Od(r){return th.has(r)}var zo=class{constructor(t,e={},i=20,n=!1,a="en-US"){this.baseUrl=t,this.predefinedSorts=e,this.defaultPerPage=i,this.allLanguagesAllowed=n,this.defaultContentLocale=a,this.scopeMapping={documents:"DOCUMENTS",topics:"ALL_TOPICS"},this.filtersEscapeMapping=[["*","\\*","[ft-escaped-star-character]"],["~","\\\\~","[ft-escaped-tilde-character]"],["_","\\\\\\\\_","[ft-escaped-underscore-character]"]]}serialize(t,e){return this.serializeToCurrentPageIfPossible(t,e??"/search")}serializeToCurrentPageIfPossible(t,e){let i=this.toURLSearchParams(t).toString(),n=e==null||e.trim().length===0,a=new URL(n?window.location.href:`${this.baseUrl.replace(/\/+$/,"")}${e}`);return a.search=i,a.toString()}toURLSearchParams(t,e=!1){var i,n,a,s,l,d,p,f,h,y,v,S;let E=new URLSearchParams;t.contentLocale?(!e||t.contentLocale!==this.defaultContentLocale)&&E.append(ot.LOCALE,t.contentLocale):E.append(ot.LOCALE,this.allLanguagesAllowed?"all":this.defaultContentLocale),((i=t.query)===null||i===void 0?void 0:i.length)>0&&E.append(ot.QUERY,t.query),t.scope&&t.scope!=="DEFAULT"&&E.append(ot.SCOPE,t.scope.toLowerCase()),t.virtualField&&t.virtualField!=="EVERYWHERE"&&E.append(ot.VIRTUAL_FIELD,t.virtualField.toLowerCase()),((n=t.sort)===null||n===void 0?void 0:n.length)>0&&t.sort[0].key==="ft:lastEdition"&&E.append(ot.SORT,"last_update");let N=(s=(a=t.metadataFilters)===null||a===void 0?void 0:a.filter(C=>C.valueFilter))!==null&&s!==void 0?s:[];if(N.length>0){let C=N.map(A=>{var k,W;let Y=((W=(k=A.valueFilter)===null||k===void 0?void 0:k.values)!==null&&W!==void 0?W:[]).map(K=>this.escapeFilters(K)).map(K=>encodeURIComponent(Jf(Sd(K)))).join("_");return`${A.key}~${Y}`}).join("*");E.append(ot.VALUE_FILTERS,C)}let T=(d=(l=t.metadataFilters)===null||l===void 0?void 0:l.filter(C=>C.dateFilter))!==null&&d!==void 0?d:[];if(T.length>0){let C=T.map(A=>{var k;return`${A.key}~${(k=A.dateFilter)===null||k===void 0?void 0:k.type.toLowerCase()}`}).join("*");E.append(ot.DATE_FILTERS,C)}let P=(f=(p=t.metadataFilters)===null||p===void 0?void 0:p.filter(C=>C.rangeFilter))!==null&&f!==void 0?f:[];if(P.length>0){let C=P.map(A=>{var k,W;return`${A.key}~${(k=A.rangeFilter)===null||k===void 0?void 0:k.from}_${(W=A.rangeFilter)===null||W===void 0?void 0:W.to}`}).join("*");E.append(ot.RANGE_FILTERS,C)}let w=(h=t.otherQueryParams)!==null&&h!==void 0?h:{};for(let C in w)E.append(C,w[C]);return!((y=t.paging)===null||y===void 0)&&y.perPage&&((S=(v=t.paging)===null||v===void 0?void 0:v.perPage)!==null&&S!==void 0?S:this.defaultPerPage)!=this.defaultPerPage&&E.append(ot.PER_PAGE,String(t.paging.perPage)),E}parse(t){var e;let i=t.split("?"),n=this.fromURLSearchParams(new URLSearchParams(i.slice(1).join("?"))),a=i[0].split("/search/")[1];return a==null?n:{...n,scope:(e=this.scopeMapping[a])!==null&&e!==void 0?e:n.scope}}fromURLSearchParams(t){var e,i,n,a,s,l,d,p;let f=t.get(ot.LOCALE)==="all"?void 0:t.get(ot.LOCALE),h=((e=t.get(ot.VIRTUAL_FIELD))!==null&&e!==void 0?e:"EVERYWHERE").toUpperCase(),y=((i=t.get(ot.SORT))!==null&&i!==void 0?i:"DEFAULT").toUpperCase(),v=(n=t.get(ot.SCOPE))!==null&&n!==void 0?n:"default",S=+((a=t.get(ot.PER_PAGE))!==null&&a!==void 0?a:this.defaultPerPage),E={};for(let N of t.keys())Od(N)||(E[N]=t.get(N));return{contentLocale:f??(this.allLanguagesAllowed?void 0:this.defaultContentLocale),query:decodeURIComponent((s=t.get(ot.QUERY))!==null&&s!==void 0?s:""),scope:(l=this.scopeMapping[v])!==null&&l!==void 0?l:"DEFAULT",virtualField:gd(h)?h:"EVERYWHERE",sort:(p=(d=this.predefinedSorts[y])!==null&&d!==void 0?d:this.predefinedSorts.DEFAULT)!==null&&p!==void 0?p:[],metadataFilters:this.parseCompatFilters(t),facets:[],paging:{page:1,perPage:Co(1,isNaN(S)?this.defaultPerPage:S,40)},otherQueryParams:E}}parseCompatFilters(t){var e,i,n,a,s,l;let d=[];return t.has(ot.FILTERS)&&(d=this.parseValueFilters((e=t.get(ot.FILTERS))!==null&&e!==void 0?e:"")),(i=t.has(ot.PERIOD))!==null&&i!==void 0&&i&&(d=[...d,...this.parseLegacyPeriodFilter(((n=t.get(ot.PERIOD))!==null&&n!==void 0?n:"").toUpperCase())]),[...d,...this.parseValueFilters((a=t.get(ot.VALUE_FILTERS))!==null&&a!==void 0?a:""),...this.parseDateFilters((s=t.get(ot.DATE_FILTERS))!==null&&s!==void 0?s:""),...this.parseRangeFilters((l=t.get(ot.RANGE_FILTERS))!==null&&l!==void 0?l:"")]}splitUnknownFilter(t){return this.superEscapeFilters(decodeURIComponent(t)).split("*").map(e=>e.split("~"))}parseValueFilters(t){return t.length===0?[]:this.splitUnknownFilter(t).map(e=>({key:e[0],valueFilter:{values:e[1].split("_").map(Sd).map(i=>this.unescapeFilterValue(i)),negative:!1}}))}parseDateFilters(t){return t.length===0?[]:this.splitUnknownFilter(t).map(e=>({key:e[0],dateFilter:{type:Ho[e[1].toUpperCase()]}}))}parseRangeFilters(t){return t.length===0?[]:this.splitUnknownFilter(t).map(e=>({key:e[0],rangeFilter:{from:e[1].split("_")[0],to:e[1].split("_")[1]}}))}escapeFilters(t){for(let[e,i,n]of this.filtersEscapeMapping)t=t.replaceAll(e,i);return t}superEscapeFilters(t){for(let[e,i,n]of this.filtersEscapeMapping)t=t.replaceAll(i,n);return t}unescapeFilterValue(t){for(let[e,i,n]of this.filtersEscapeMapping)t=t.replace(n,e);return t}parseLegacyPeriodFilter(t){if(bd(t))return[{key:"ft:lastEdition",dateFilter:{type:Ho[t]}}];if(t.startsWith("CUSTOM_")){let[e,i,n]=t.split("_");return[{key:"ft:lastEdition",rangeFilter:{from:i,to:n}}]}return[]}};var ws={};rt(ws,{toFtFormComponent:()=>wr});var Fi=Symbol("elementInternals");function wr(r,t){class e extends r{static get formAssociated(){return!0}get form(){return this[Fi].form}constructor(...n){super(n),this[Fi]=this.attachInternals(),this[Fi].role=t}setFormValue(n){this[Fi].setFormValue(n)}}return e}var As={};rt(As,{DateFormatter:()=>Kr});var Kr=class{static format(t,e,i,n){return window.moment?window.moment(t).locale(e).format(this.getDateFormat(i,n)):t}static getDateFormat(t,e){return t?e?"lll":"ll":e?"L LT":"L"}};var Rs,_s,Ns,Is,Vo=navigator.vendor&&!!navigator.vendor.match(/apple/i)||((Ns=(_s=(Rs=window.safari)===null||Rs===void 0?void 0:Rs.pushNotification)===null||_s===void 0?void 0:_s.toString())!==null&&Ns!==void 0?Ns:"")==="[object SafariRemoteNotification]",eh="ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0;window.ftGlobals=(Is=window.ftGlobals)!==null&&Is!==void 0?Is:{lit:Nn,litDecorators:Tn,litRepeat:$n,litClassMap:Ln,litStyleMap:kn,litUnsafeHTML:Mn,wcUtils:{...zn,...Bn,...Vn,...As,...jn,...Zn,...Ca,...Hn,...Ma,...Oa,...Wa,...Ba,...bc,...Kn,...Va,...Ga,...xc,...Ka,...vs,...Fa,...Os,...Cs,...Es,...ws,isSafari:Vo,isTouchScreen:eh,setVariable:x}};var Yt;(function(r){r.FEEDBACK="FEEDBACK",r.RATING="RATING",r.PRINT="PRINT",r.BOOKMARK="BOOKMARK",r.COLLECTIONS="COLLECTIONS",r.PERSONAL_BOOKS="PERSONAL_BOOKS"})(Yt||(Yt={}));var rh=function(r,t,e,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,t,e,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(t,e,a):s(t,e))||a);return n>3&&a&&Object.defineProperty(t,e,a),a},Ps=class extends Event{constructor(){super("register-ft-reader-component",{bubbles:!0,composed:!0})}},Ts=Symbol("registerInterval");function oh(r){var t;class e extends r{constructor(){super(...arguments),this[t]=0}setReaderStateManager(n){this.clearStateManager(),this.stateManager=n,this.addStore(n.store,"reader")}clearStateManager(){this.stateManager&&(this.removeStore("reader"),this.stateManager=void 0)}get service(){var n;return(n=this.stateManager)===null||n===void 0?void 0:n.service}connectedCallback(){super.connectedCallback(),this[Ts]=window.setInterval(()=>this.tryToRegisterToContext(),50)}tryToRegisterToContext(){this.stateManager!=null?window.clearInterval(this[Ts]):this.dispatchEvent(new Ps)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return t=Ts,rh([U()],e.prototype,"stateManager",void 0),e}var Ke=class extends oh(Zt){};var Cd=o.extend("--ft-ripple-color","",_.colorContent),R={color:Cd,backgroundColor:o.extend("--ft-ripple-background-color","",Cd),opacityContentOnSurfacePressed:o.external(_.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:o.external(_.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:o.external(_.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:o.external(_.opacityContentOnSurfaceSelected,"Design system"),borderRadius:o.create("--ft-ripple-border-radius","","SIZE","0px")},Ed=o.extend("--ft-ripple-color","",_.colorPrimary),wd={color:Ed,backgroundColor:o.extend("--ft-ripple-background-color","",Ed)},Ad=o.extend("--ft-ripple-color","",_.colorSecondary),Rd={color:Ad,backgroundColor:o.extend("--ft-ripple-background-color","",Ad)},_d=L`
51
51
  :host {
52
52
  display: contents;
53
53
  }
@@ -102,19 +102,19 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
102
102
  }
103
103
 
104
104
  .ft-ripple.ft-ripple--secondary .ft-ripple--background {
105
- background-color: ${Cd.backgroundColor};
105
+ background-color: ${Rd.backgroundColor};
106
106
  }
107
107
 
108
108
  .ft-ripple.ft-ripple--secondary .ft-ripple--effect {
109
- background-color: ${Cd.color};
109
+ background-color: ${Rd.color};
110
110
  }
111
111
 
112
112
  .ft-ripple.ft-ripple--primary .ft-ripple--background {
113
- background-color: ${Sd.backgroundColor};
113
+ background-color: ${wd.backgroundColor};
114
114
  }
115
115
 
116
116
  .ft-ripple.ft-ripple--primary .ft-ripple--effect {
117
- background-color: ${Sd.color};
117
+ background-color: ${wd.color};
118
118
  }
119
119
 
120
120
  .ft-ripple .ft-ripple--background {
@@ -159,7 +159,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
159
159
  opacity: ${R.opacityContentOnSurfacePressed};
160
160
  transform: translate(-50%, -50%) scale(1);
161
161
  }
162
- `;function Ed(r){let t=So[r];return P`
162
+ `;function Nd(r){let t=Eo[r];return L`
163
163
  .ft-typography--${ve(r)} {
164
164
  font-family: ${t.fontFamily};
165
165
  font-size: ${t.fontSize};
@@ -168,7 +168,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
168
168
  line-height: ${t.lineHeight};
169
169
  text-transform: ${t.textCase};
170
170
  }
171
- `}var Ad=o.extend("--ft-typography-font-family","",N.titleFont),Te=o.extend("--ft-typography-font-family","",N.contentFont),F={fontFamily:Te,fontSize:o.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:o.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:o.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:o.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:o.create("--ft-typography-text-transform","","UNKNOWN","inherit")},Ze={fontFamily:o.extend("--ft-typography-title-font-family","",Ad),fontSize:o.extend("--ft-typography-title-font-size","",F.fontSize,"20px"),fontWeight:o.extend("--ft-typography-title-font-weight","",F.fontWeight,"normal"),letterSpacing:o.extend("--ft-typography-title-letter-spacing","",F.letterSpacing,"0.15px"),lineHeight:o.extend("--ft-typography-title-line-height","",F.lineHeight,"1.2"),textTransform:o.extend("--ft-typography-title-text-transform","",F.textTransform,"inherit")},qe={fontFamily:o.extend("--ft-typography-title-dense-font-family","",Ad),fontSize:o.extend("--ft-typography-title-dense-font-size","",F.fontSize,"14px"),fontWeight:o.extend("--ft-typography-title-dense-font-weight","",F.fontWeight,"normal"),letterSpacing:o.extend("--ft-typography-title-dense-letter-spacing","",F.letterSpacing,"0.105px"),lineHeight:o.extend("--ft-typography-title-dense-line-height","",F.lineHeight,"1.7"),textTransform:o.extend("--ft-typography-title-dense-text-transform","",F.textTransform,"inherit")},Kr={fontFamily:o.extend("--ft-typography-subtitle1-font-family","",Te),fontSize:o.extend("--ft-typography-subtitle1-font-size","",F.fontSize,"16px"),fontWeight:o.extend("--ft-typography-subtitle1-font-weight","",F.fontWeight,"600"),letterSpacing:o.extend("--ft-typography-subtitle1-letter-spacing","",F.letterSpacing,"0.144px"),lineHeight:o.extend("--ft-typography-subtitle1-line-height","",F.lineHeight,"1.5"),textTransform:o.extend("--ft-typography-subtitle1-text-transform","",F.textTransform,"inherit")},Zr={fontFamily:o.extend("--ft-typography-subtitle2-font-family","",Te),fontSize:o.extend("--ft-typography-subtitle2-font-size","",F.fontSize,"14px"),fontWeight:o.extend("--ft-typography-subtitle2-font-weight","",F.fontWeight,"normal"),letterSpacing:o.extend("--ft-typography-subtitle2-letter-spacing","",F.letterSpacing,"0.098px"),lineHeight:o.extend("--ft-typography-subtitle2-line-height","",F.lineHeight,"1.7"),textTransform:o.extend("--ft-typography-subtitle2-text-transform","",F.textTransform,"inherit")},Xt={fontFamily:o.extend("--ft-typography-body1-font-family","",Te),fontSize:o.extend("--ft-typography-body1-font-size","",F.fontSize,"16px"),fontWeight:o.extend("--ft-typography-body1-font-weight","",F.fontWeight,"normal"),letterSpacing:o.extend("--ft-typography-body1-letter-spacing","",F.letterSpacing,"0.496px"),lineHeight:o.extend("--ft-typography-body1-line-height","",F.lineHeight,"1.5"),textTransform:o.extend("--ft-typography-body1-text-transform","",F.textTransform,"inherit")},qr={fontFamily:o.extend("--ft-typography-body2-font-family","",Te),fontSize:o.extend("--ft-typography-body2-font-size","",F.fontSize,"14px"),fontWeight:o.extend("--ft-typography-body2-font-weight","",F.fontWeight,"normal"),letterSpacing:o.extend("--ft-typography-body2-letter-spacing","",F.letterSpacing,"0.252px"),lineHeight:o.extend("--ft-typography-body2-line-height","",F.lineHeight,"1.4"),textTransform:o.extend("--ft-typography-body2-text-transform","",F.textTransform,"inherit")},re={fontFamily:o.extend("--ft-typography-caption-font-family","",Te),fontSize:o.extend("--ft-typography-caption-font-size","",F.fontSize,"12px"),fontWeight:o.extend("--ft-typography-caption-font-weight","",F.fontWeight,"normal"),letterSpacing:o.extend("--ft-typography-caption-letter-spacing","",F.letterSpacing,"0.396px"),lineHeight:o.extend("--ft-typography-caption-line-height","",F.lineHeight,"1.33"),textTransform:o.extend("--ft-typography-caption-text-transform","",F.textTransform,"inherit")},Yr={fontFamily:o.extend("--ft-typography-breadcrumb-font-family","",Te),fontSize:o.extend("--ft-typography-breadcrumb-font-size","",F.fontSize,"10px"),fontWeight:o.extend("--ft-typography-breadcrumb-font-weight","",F.fontWeight,"normal"),letterSpacing:o.extend("--ft-typography-breadcrumb-letter-spacing","",F.letterSpacing,"0.33px"),lineHeight:o.extend("--ft-typography-breadcrumb-line-height","",F.lineHeight,"1.6"),textTransform:o.extend("--ft-typography-breadcrumb-text-transform","",F.textTransform,"inherit")},Xr={fontFamily:o.extend("--ft-typography-overline-font-family","",Te),fontSize:o.extend("--ft-typography-overline-font-size","",F.fontSize,"10px"),fontWeight:o.extend("--ft-typography-overline-font-weight","",F.fontWeight,"normal"),letterSpacing:o.extend("--ft-typography-overline-letter-spacing","",F.letterSpacing,"1.5px"),lineHeight:o.extend("--ft-typography-overline-line-height","",F.lineHeight,"1.6"),textTransform:o.extend("--ft-typography-overline-text-transform","",F.textTransform,"uppercase")},Dt={fontFamily:o.extend("--ft-typography-button-font-family","",Te),fontSize:o.extend("--ft-typography-button-font-size","",F.fontSize,"14px"),fontWeight:o.extend("--ft-typography-button-font-weight","",F.fontWeight,"600"),letterSpacing:o.extend("--ft-typography-button-letter-spacing","",F.letterSpacing,"1.246px"),lineHeight:o.extend("--ft-typography-button-line-height","",F.lineHeight,"1.15"),textTransform:o.extend("--ft-typography-button-text-transform","",F.textTransform,"uppercase")},Rd=P`
171
+ `}var Id=o.extend("--ft-typography-font-family","",_.titleFont),Te=o.extend("--ft-typography-font-family","",_.contentFont),B={fontFamily:Te,fontSize:o.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:o.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:o.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:o.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:o.create("--ft-typography-text-transform","","UNKNOWN","inherit")},Ze={fontFamily:o.extend("--ft-typography-title-font-family","",Id),fontSize:o.extend("--ft-typography-title-font-size","",B.fontSize,"20px"),fontWeight:o.extend("--ft-typography-title-font-weight","",B.fontWeight,"normal"),letterSpacing:o.extend("--ft-typography-title-letter-spacing","",B.letterSpacing,"0.15px"),lineHeight:o.extend("--ft-typography-title-line-height","",B.lineHeight,"1.2"),textTransform:o.extend("--ft-typography-title-text-transform","",B.textTransform,"inherit")},qe={fontFamily:o.extend("--ft-typography-title-dense-font-family","",Id),fontSize:o.extend("--ft-typography-title-dense-font-size","",B.fontSize,"14px"),fontWeight:o.extend("--ft-typography-title-dense-font-weight","",B.fontWeight,"normal"),letterSpacing:o.extend("--ft-typography-title-dense-letter-spacing","",B.letterSpacing,"0.105px"),lineHeight:o.extend("--ft-typography-title-dense-line-height","",B.lineHeight,"1.7"),textTransform:o.extend("--ft-typography-title-dense-text-transform","",B.textTransform,"inherit")},Zr={fontFamily:o.extend("--ft-typography-subtitle1-font-family","",Te),fontSize:o.extend("--ft-typography-subtitle1-font-size","",B.fontSize,"16px"),fontWeight:o.extend("--ft-typography-subtitle1-font-weight","",B.fontWeight,"600"),letterSpacing:o.extend("--ft-typography-subtitle1-letter-spacing","",B.letterSpacing,"0.144px"),lineHeight:o.extend("--ft-typography-subtitle1-line-height","",B.lineHeight,"1.5"),textTransform:o.extend("--ft-typography-subtitle1-text-transform","",B.textTransform,"inherit")},qr={fontFamily:o.extend("--ft-typography-subtitle2-font-family","",Te),fontSize:o.extend("--ft-typography-subtitle2-font-size","",B.fontSize,"14px"),fontWeight:o.extend("--ft-typography-subtitle2-font-weight","",B.fontWeight,"normal"),letterSpacing:o.extend("--ft-typography-subtitle2-letter-spacing","",B.letterSpacing,"0.098px"),lineHeight:o.extend("--ft-typography-subtitle2-line-height","",B.lineHeight,"1.7"),textTransform:o.extend("--ft-typography-subtitle2-text-transform","",B.textTransform,"inherit")},Xt={fontFamily:o.extend("--ft-typography-body1-font-family","",Te),fontSize:o.extend("--ft-typography-body1-font-size","",B.fontSize,"16px"),fontWeight:o.extend("--ft-typography-body1-font-weight","",B.fontWeight,"normal"),letterSpacing:o.extend("--ft-typography-body1-letter-spacing","",B.letterSpacing,"0.496px"),lineHeight:o.extend("--ft-typography-body1-line-height","",B.lineHeight,"1.5"),textTransform:o.extend("--ft-typography-body1-text-transform","",B.textTransform,"inherit")},Yr={fontFamily:o.extend("--ft-typography-body2-font-family","",Te),fontSize:o.extend("--ft-typography-body2-font-size","",B.fontSize,"14px"),fontWeight:o.extend("--ft-typography-body2-font-weight","",B.fontWeight,"normal"),letterSpacing:o.extend("--ft-typography-body2-letter-spacing","",B.letterSpacing,"0.252px"),lineHeight:o.extend("--ft-typography-body2-line-height","",B.lineHeight,"1.4"),textTransform:o.extend("--ft-typography-body2-text-transform","",B.textTransform,"inherit")},re={fontFamily:o.extend("--ft-typography-caption-font-family","",Te),fontSize:o.extend("--ft-typography-caption-font-size","",B.fontSize,"12px"),fontWeight:o.extend("--ft-typography-caption-font-weight","",B.fontWeight,"normal"),letterSpacing:o.extend("--ft-typography-caption-letter-spacing","",B.letterSpacing,"0.396px"),lineHeight:o.extend("--ft-typography-caption-line-height","",B.lineHeight,"1.33"),textTransform:o.extend("--ft-typography-caption-text-transform","",B.textTransform,"inherit")},Xr={fontFamily:o.extend("--ft-typography-breadcrumb-font-family","",Te),fontSize:o.extend("--ft-typography-breadcrumb-font-size","",B.fontSize,"10px"),fontWeight:o.extend("--ft-typography-breadcrumb-font-weight","",B.fontWeight,"normal"),letterSpacing:o.extend("--ft-typography-breadcrumb-letter-spacing","",B.letterSpacing,"0.33px"),lineHeight:o.extend("--ft-typography-breadcrumb-line-height","",B.lineHeight,"1.6"),textTransform:o.extend("--ft-typography-breadcrumb-text-transform","",B.textTransform,"inherit")},Jr={fontFamily:o.extend("--ft-typography-overline-font-family","",Te),fontSize:o.extend("--ft-typography-overline-font-size","",B.fontSize,"10px"),fontWeight:o.extend("--ft-typography-overline-font-weight","",B.fontWeight,"normal"),letterSpacing:o.extend("--ft-typography-overline-letter-spacing","",B.letterSpacing,"1.5px"),lineHeight:o.extend("--ft-typography-overline-line-height","",B.lineHeight,"1.6"),textTransform:o.extend("--ft-typography-overline-text-transform","",B.textTransform,"uppercase")},Ft={fontFamily:o.extend("--ft-typography-button-font-family","",Te),fontSize:o.extend("--ft-typography-button-font-size","",B.fontSize,"14px"),fontWeight:o.extend("--ft-typography-button-font-weight","",B.fontWeight,"600"),letterSpacing:o.extend("--ft-typography-button-letter-spacing","",B.letterSpacing,"1.246px"),lineHeight:o.extend("--ft-typography-button-line-height","",B.lineHeight,"1.15"),textTransform:o.extend("--ft-typography-button-text-transform","",B.textTransform,"uppercase")},Td=L`
172
172
  .ft-typography--title {
173
173
  font-family: ${Ze.fontFamily};
174
174
  font-size: ${Ze.fontSize};
@@ -177,7 +177,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
177
177
  line-height: ${Ze.lineHeight};
178
178
  text-transform: ${Ze.textTransform};
179
179
  }
180
- `,_d=P`
180
+ `,Pd=L`
181
181
  .ft-typography--title-dense {
182
182
  font-family: ${qe.fontFamily};
183
183
  font-size: ${qe.fontSize};
@@ -186,17 +186,8 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
186
186
  line-height: ${qe.lineHeight};
187
187
  text-transform: ${qe.textTransform};
188
188
  }
189
- `,Nd=P`
189
+ `,$d=L`
190
190
  .ft-typography--subtitle1 {
191
- font-family: ${Kr.fontFamily};
192
- font-size: ${Kr.fontSize};
193
- font-weight: ${Kr.fontWeight};
194
- letter-spacing: ${Kr.letterSpacing};
195
- line-height: ${Kr.lineHeight};
196
- text-transform: ${Kr.textTransform};
197
- }
198
- `,Id=P`
199
- .ft-typography--subtitle2 {
200
191
  font-family: ${Zr.fontFamily};
201
192
  font-size: ${Zr.fontSize};
202
193
  font-weight: ${Zr.fontWeight};
@@ -204,8 +195,17 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
204
195
  line-height: ${Zr.lineHeight};
205
196
  text-transform: ${Zr.textTransform};
206
197
  }
198
+ `,Ld=L`
199
+ .ft-typography--subtitle2 {
200
+ font-family: ${qr.fontFamily};
201
+ font-size: ${qr.fontSize};
202
+ font-weight: ${qr.fontWeight};
203
+ letter-spacing: ${qr.letterSpacing};
204
+ line-height: ${qr.lineHeight};
205
+ text-transform: ${qr.textTransform};
206
+ }
207
207
 
208
- `,Jr=P`
208
+ `,Qr=L`
209
209
  .ft-typography--body1 {
210
210
  font-family: ${Xt.fontFamily};
211
211
  font-size: ${Xt.fontSize};
@@ -214,16 +214,16 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
214
214
  line-height: ${Xt.lineHeight};
215
215
  text-transform: ${Xt.textTransform};
216
216
  }
217
- `,Td=P`
217
+ `,kd=L`
218
218
  .ft-typography--body2 {
219
- font-family: ${qr.fontFamily};
220
- font-size: ${qr.fontSize};
221
- font-weight: ${qr.fontWeight};
222
- letter-spacing: ${qr.letterSpacing};
223
- line-height: ${qr.lineHeight};
224
- text-transform: ${qr.textTransform};
219
+ font-family: ${Yr.fontFamily};
220
+ font-size: ${Yr.fontSize};
221
+ font-weight: ${Yr.fontWeight};
222
+ letter-spacing: ${Yr.letterSpacing};
223
+ line-height: ${Yr.lineHeight};
224
+ text-transform: ${Yr.textTransform};
225
225
  }
226
- `,Di=P`
226
+ `,Bi=L`
227
227
  .ft-typography--caption {
228
228
  font-family: ${re.fontFamily};
229
229
  font-size: ${re.fontSize};
@@ -232,17 +232,8 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
232
232
  line-height: ${re.lineHeight};
233
233
  text-transform: ${re.textTransform};
234
234
  }
235
- `,$d=P`
235
+ `,Dd=L`
236
236
  .ft-typography--breadcrumb {
237
- font-family: ${Yr.fontFamily};
238
- font-size: ${Yr.fontSize};
239
- font-weight: ${Yr.fontWeight};
240
- letter-spacing: ${Yr.letterSpacing};
241
- line-height: ${Yr.lineHeight};
242
- text-transform: ${Yr.textTransform};
243
- }
244
- `,Pd=P`
245
- .ft-typography--overline {
246
237
  font-family: ${Xr.fontFamily};
247
238
  font-size: ${Xr.fontSize};
248
239
  font-weight: ${Xr.fontWeight};
@@ -250,20 +241,29 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
250
241
  line-height: ${Xr.lineHeight};
251
242
  text-transform: ${Xr.textTransform};
252
243
  }
253
- `,Ld=P`
244
+ `,Md=L`
245
+ .ft-typography--overline {
246
+ font-family: ${Jr.fontFamily};
247
+ font-size: ${Jr.fontSize};
248
+ font-weight: ${Jr.fontWeight};
249
+ letter-spacing: ${Jr.letterSpacing};
250
+ line-height: ${Jr.lineHeight};
251
+ text-transform: ${Jr.textTransform};
252
+ }
253
+ `,Fd=L`
254
254
  .ft-typography--button {
255
- font-family: ${Dt.fontFamily};
256
- font-size: ${Dt.fontSize};
257
- font-weight: ${Dt.fontWeight};
258
- letter-spacing: ${Dt.letterSpacing};
259
- line-height: ${Dt.lineHeight};
260
- text-transform: ${Dt.textTransform};
261
- }
262
- `,kd=P`
255
+ font-family: ${Ft.fontFamily};
256
+ font-size: ${Ft.fontSize};
257
+ font-weight: ${Ft.fontWeight};
258
+ letter-spacing: ${Ft.letterSpacing};
259
+ line-height: ${Ft.lineHeight};
260
+ text-transform: ${Ft.textTransform};
261
+ }
262
+ `,Bd=L`
263
263
  .ft-typography {
264
264
  vertical-align: inherit;
265
265
  }
266
- `,Dd=[Object.keys(So).map(r=>Ed(r))];var ut={color:o.extend("--ft-loader-color","",N.colorPrimary),size:o.create("--ft-loader-size","","SIZE","80px")},Md=P`
266
+ `,Ud=[Object.keys(Eo).map(r=>Nd(r))];var ut={color:o.extend("--ft-loader-color","",_.colorPrimary),size:o.create("--ft-loader-size","","SIZE","80px")},Wd=L`
267
267
  :host {
268
268
  line-height: 0;
269
269
  }
@@ -332,7 +332,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
332
332
  transform: translate(calc(0.35 * ${ut.size}), 0);
333
333
  }
334
334
  }
335
- `;var Ct={size:o.create("--ft-icon-font-size","","SIZE","24px"),fluidTopicsFontFamily:o.extend("--ft-icon-fluid-topics-font-family","",o.create("--ft-icon-font-family","","UNKNOWN","ft-icons")),fileFormatFontFamily:o.extend("--ft-icon-file-format-font-family","",o.create("--ft-icon-font-family","","UNKNOWN","ft-mime")),materialFontFamily:o.extend("--ft-icon-material-font-family","",o.create("--ft-icon-font-family","","UNKNOWN","Material Icons")),verticalAlign:o.create("--ft-icon-vertical-align","","UNKNOWN","unset")},Bd=P`
335
+ `;var Ct={size:o.create("--ft-icon-font-size","","SIZE","24px"),fluidTopicsFontFamily:o.extend("--ft-icon-fluid-topics-font-family","",o.create("--ft-icon-font-family","","UNKNOWN","ft-icons")),fileFormatFontFamily:o.extend("--ft-icon-file-format-font-family","",o.create("--ft-icon-font-family","","UNKNOWN","ft-mime")),materialFontFamily:o.extend("--ft-icon-material-font-family","",o.create("--ft-icon-font-family","","UNKNOWN","Material Icons")),verticalAlign:o.create("--ft-icon-vertical-align","","UNKNOWN","unset")},Hd=L`
336
336
  :host, i.ft-icon {
337
337
  display: inline-flex;
338
338
  align-items: center;
@@ -380,32 +380,33 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
380
380
  .ft-icon--material {
381
381
  font-family: ${Ct.materialFontFamily}, "Material Icons", sans-serif;
382
382
  }
383
- `;var Fd=o.extend("--ft-button-color","",N.colorPrimary),lt={backgroundColor:o.extend("--ft-button-background-color","",N.colorSurface),borderRadius:o.extend("--ft-button-border-radius","",N.borderRadiusL),color:Fd,fontSize:o.extend("--ft-button-font-size","",Dt.fontSize),iconSize:o.create("--ft-button-icon-size","","SIZE","24px"),rippleColor:o.extend("--ft-button-ripple-color","",Fd),verticalPadding:o.create("--ft-button-vertical-padding","","SIZE","6px"),horizontalPadding:o.create("--ft-button-horizontal-padding","","SIZE","8px"),iconPadding:o.create("--ft-button-icon-padding","","SIZE","8px"),opacityDisabled:o.external(N.colorOpacityDisabled,"Design system")},Ud=o.extend("--ft-button-primary-color","",o.extend("--ft-button-color","",N.colorOnPrimary)),Ts={backgroundColor:o.extend("--ft-button-primary-background-color","",o.extend("--ft-button-background-color","",N.colorPrimary)),color:Ud,rippleColor:o.extend("--ft-button-primary-ripple-color","",Ud)},me={borderRadius:o.extend("--ft-button-dense-border-radius","",o.extend("--ft-button-border-radius","",N.borderRadiusM)),verticalPadding:o.create("--ft-button-dense-vertical-padding","","SIZE","2px"),horizontalPadding:o.create("--ft-button-dense-horizontal-padding","","SIZE","4px"),iconPadding:o.create("--ft-button-dense-icon-padding","","SIZE","4px")},Wd=[P`
383
+ `;var zd=o.extend("--ft-button-color","",_.colorPrimary),lt={backgroundColor:o.extend("--ft-button-background-color","",_.colorSurface),borderRadius:o.extend("--ft-button-border-radius","",_.borderRadiusL),color:zd,fontSize:o.extend("--ft-button-font-size","",Ft.fontSize),iconSize:o.create("--ft-button-icon-size","","SIZE","24px"),rippleColor:o.extend("--ft-button-ripple-color","",zd),verticalPadding:o.create("--ft-button-vertical-padding","","SIZE","6px"),horizontalPadding:o.create("--ft-button-horizontal-padding","","SIZE","8px"),iconPadding:o.create("--ft-button-icon-padding","","SIZE","8px"),opacityDisabled:o.external(_.colorOpacityDisabled,"Design system")},Vd=o.extend("--ft-button-primary-color","",o.extend("--ft-button-color","",_.colorOnPrimary)),$s={backgroundColor:o.extend("--ft-button-primary-background-color","",o.extend("--ft-button-background-color","",_.colorPrimary)),color:Vd,rippleColor:o.extend("--ft-button-primary-ripple-color","",Vd)},me={borderRadius:o.extend("--ft-button-dense-border-radius","",o.extend("--ft-button-border-radius","",_.borderRadiusM)),verticalPadding:o.create("--ft-button-dense-vertical-padding","","SIZE","2px"),horizontalPadding:o.create("--ft-button-dense-horizontal-padding","","SIZE","4px"),iconPadding:o.create("--ft-button-dense-icon-padding","","SIZE","4px")},jd=[L`
384
384
  :host {
385
385
  display: inline-block;
386
386
  max-width: 100%;
387
387
  pointer-events: none;
388
388
  }
389
389
 
390
- button {
390
+ .ft-button {
391
391
  box-shadow: 0px 0px 0px transparent;
392
392
  border: 0px solid transparent;
393
393
  text-shadow: 0px 0px 0px transparent;
394
394
  font-size: ${lt.fontSize};
395
+ text-decoration: none;
395
396
  }
396
397
 
397
- button:hover {
398
+ .ft-button:hover {
398
399
  box-shadow: 0px 0px 0px transparent;
399
400
  border: 0px solid transparent;
400
401
  text-shadow: 0px 0px 0px transparent;
401
402
  }
402
403
 
403
- button:active {
404
+ .ft-button:active {
404
405
  outline: none;
405
406
  border: none;
406
407
  }
407
408
 
408
- button:focus {
409
+ .ft-button:focus {
409
410
  outline: 0;
410
411
  }
411
412
 
@@ -465,9 +466,9 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
465
466
  }
466
467
 
467
468
  .ft-button.ft-button--primary {
468
- background-color: ${Ts.backgroundColor};
469
- --ft-button-internal-color: ${Ts.color};
470
- ${x(R.color,Ts.rippleColor)};
469
+ background-color: ${$s.backgroundColor};
470
+ --ft-button-internal-color: ${$s.color};
471
+ ${x(R.color,$s.rippleColor)};
471
472
  }
472
473
 
473
474
  .ft-button:focus {
@@ -481,8 +482,8 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
481
482
  text-overflow: ellipsis;
482
483
  display: block;
483
484
  margin: 0 ${lt.iconPadding};
484
- ${x(Dt.fontSize,"1em")};
485
- ${x(Dt.lineHeight,"var(--ft-button-internal-line-height)")};
485
+ ${x(Ft.fontSize,"1em")};
486
+ ${x(Ft.lineHeight,"var(--ft-button-internal-line-height)")};
486
487
  }
487
488
 
488
489
  .ft-button--dense .ft-button--label {
@@ -516,7 +517,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
516
517
  ${x(ut.size,lt.iconSize)};
517
518
  ${x(ut.color,"var(--ft-button-internal-color)")};
518
519
  }
519
- `,br];var mt={textColor:o.extend("--ft-switch-text-color","",N.colorOnSurfaceHigh),backgroundColor:o.extend("--ft-switch-background-color","",N.colorSurface),selectedTextColor:o.extend("--ft-switch-selected-text-color","",N.colorPrimary),selectedBackgroundColor:o.extend("--ft-switch-selected-background-color","",N.colorPrimary),borderColor:o.extend("--ft-switch-border-color","",N.colorOutline),borderRadius:o.extend("--ft-switch-border-radius","",N.borderRadiusL),fontSize:o.extend("--ft-switch-font-size","",Dt.fontSize),iconSize:o.create("--ft-switch-icon-size","","SIZE","24px"),iconColor:o.extend("--ft-switch-text-color","",N.colorOnSurfaceMedium),rippleColor:o.extend("--ft-switch-ripple-color","",N.colorPrimary),outlineColor:o.extend("--ft-switch-outline-color","",N.colorPrimary)};var ye={feedbackInputMinWidth:o.create("--ft-reader-feedback-input-min-width","","SIZE","300px"),ratedDateColor:o.external(N.colorOnSurfaceMedium,"Design system"),sendFeedbackColor:o.extend("--ft-reader-feedback-send-feedback-color","",N.colorOnPrimary),sendFeedbackBackgroundColor:o.extend("--ft-reader-feedback-send-feedback-background-color","",N.colorPrimary),filledRatingColor:o.extend("--ft-reader-feedback-filled-rating-color","",N.colorPrimary),emptyRatingColor:o.extend("--ft-reader-feedback-empty-rating-color","",N.colorOnSurfaceMedium),mainTitleFontSize:o.external(Ze.fontSize,"Typography"),sectionTitleFontSize:o.external(qe.fontSize,"Typography"),starsBackgroundColor:o.create("--ft-reader-feedback-stars-background-color","","COLOR",N.colorSurface)},Hd=P`
520
+ `,vr];var yt={textColor:o.extend("--ft-switch-text-color","",_.colorOnSurfaceHigh),backgroundColor:o.extend("--ft-switch-background-color","",_.colorSurface),selectedTextColor:o.extend("--ft-switch-selected-text-color","",_.colorPrimary),selectedBackgroundColor:o.extend("--ft-switch-selected-background-color","",_.colorPrimary),borderColor:o.extend("--ft-switch-border-color","",_.colorOutline),borderRadius:o.extend("--ft-switch-border-radius","",_.borderRadiusL),fontSize:o.extend("--ft-switch-font-size","",Ft.fontSize),iconSize:o.create("--ft-switch-icon-size","","SIZE","24px"),iconColor:o.extend("--ft-switch-text-color","",_.colorOnSurfaceMedium),rippleColor:o.extend("--ft-switch-ripple-color","",_.colorPrimary),outlineColor:o.extend("--ft-switch-outline-color","",_.colorPrimary)};var ye={feedbackInputMinWidth:o.create("--ft-reader-feedback-input-min-width","","SIZE","300px"),ratedDateColor:o.external(_.colorOnSurfaceMedium,"Design system"),sendFeedbackColor:o.extend("--ft-reader-feedback-send-feedback-color","",_.colorOnPrimary),sendFeedbackBackgroundColor:o.extend("--ft-reader-feedback-send-feedback-background-color","",_.colorPrimary),filledRatingColor:o.extend("--ft-reader-feedback-filled-rating-color","",_.colorPrimary),emptyRatingColor:o.extend("--ft-reader-feedback-empty-rating-color","",_.colorOnSurfaceMedium),mainTitleFontSize:o.external(Ze.fontSize,"Typography"),sectionTitleFontSize:o.external(qe.fontSize,"Typography"),starsBackgroundColor:o.create("--ft-reader-feedback-stars-background-color","","COLOR",_.colorSurface)},Gd=L`
520
521
  .ft-reader-feedback {
521
522
  box-sizing: border-box;
522
523
  display: flex;
@@ -544,8 +545,8 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
544
545
  .ft-reader-feedback--rating {
545
546
  ${x(lt.color,ye.emptyRatingColor)};
546
547
  ${x(lt.rippleColor,ye.filledRatingColor)};
547
- ${x(mt.textColor,ye.emptyRatingColor)};
548
- ${x(mt.selectedTextColor,ye.filledRatingColor)};
548
+ ${x(yt.textColor,ye.emptyRatingColor)};
549
+ ${x(yt.selectedTextColor,ye.filledRatingColor)};
549
550
  }
550
551
 
551
552
  .ft-reader-feedback--rating .ft-reader-feedback--active {
@@ -572,26 +573,26 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
572
573
  [part="buttons-container"] {
573
574
  align-self: flex-end;
574
575
  }
575
- `;var Vd=Symbol.for(""),eh=r=>{if(r?.r===Vd)return r?._$litStatic$},$s=r=>({_$litStatic$:r,r:Vd});var zd=new Map,jd=r=>(t,...e)=>{let i=e.length,n,a,s=[],l=[],d,p=0,f=!1;for(;p<i;){for(d=t[p];p<i&&(a=e[p],(n=eh(a))!==void 0);)d+=n+t[++p],f=!0;p!==i&&l.push(a),s.push(d),p++}if(p===i&&s.push(t[i]),f){let h=s.join("$$lit$$");(t=zd.get(h))===void 0&&(s.raw=s,zd.set(h,t=s)),e=l}return r(t,...e)},Ps=jd(fl),yS=jd(hl);var Ye;(function(r){r.title="title",r.title_dense="title-dense",r.subtitle1="subtitle1",r.subtitle2="subtitle2",r.body1="body1",r.body2="body2",r.caption="caption",r.breadcrumb="breadcrumb",r.overline="overline",r.button="button",r.display="display",r.title1="title-1",r.title2="title-2",r.title3="title-3",r.body1regular="body-1-regular",r.body1medium="body-1-medium",r.body1semibold="body-1-semibold",r.body2regular="body-2-regular",r.body2medium="body-2-medium",r.body2semibold="body-2-semibold",r.label1medium="label-1-medium",r.label1semibold="label-1-semibold",r.label1bold="label-1-bold",r.label2medium="label-2-medium",r.label2semibold="label-2-semibold",r.label2bold="label-2-bold",r.caption1medium="caption-1-medium",r.caption1semibold="caption-1-semibold",r.caption1bold="caption-1-bold",r.caption2medium="caption-2-medium",r.caption2semibold="caption-2-semibold",r.caption2bold="caption-2-bold"})(Ye||(Ye={}));var Gd=function(r,t,e,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,t,e,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(t,e,a):s(t,e))||a);return n>3&&a&&Object.defineProperty(t,e,a),a},bt=class extends V{constructor(){super(...arguments),this.variant=Ye.body1}render(){return this.element?Ps`
576
- <${$s(this.element)}
576
+ `;var Zd=Symbol.for(""),ih=r=>{if(r?.r===Zd)return r?._$litStatic$},Ls=r=>({_$litStatic$:r,r:Zd});var Kd=new Map,qd=r=>(t,...e)=>{let i=e.length,n,a,s=[],l=[],d,p=0,f=!1;for(;p<i;){for(d=t[p];p<i&&(a=e[p],(n=ih(a))!==void 0);)d+=n+t[++p],f=!0;p!==i&&l.push(a),s.push(d),p++}if(p===i&&s.push(t[i]),f){let h=s.join("$$lit$$");(t=Kd.get(h))===void 0&&(s.raw=s,Kd.set(h,t=s)),e=l}return r(t,...e)},ks=qd(ml),CS=qd(yl);var Ye;(function(r){r.title="title",r.title_dense="title-dense",r.subtitle1="subtitle1",r.subtitle2="subtitle2",r.body1="body1",r.body2="body2",r.caption="caption",r.breadcrumb="breadcrumb",r.overline="overline",r.button="button",r.display="display",r.title1="title-1",r.title2="title-2",r.title3="title-3",r.body1regular="body-1-regular",r.body1medium="body-1-medium",r.body1semibold="body-1-semibold",r.body2regular="body-2-regular",r.body2medium="body-2-medium",r.body2semibold="body-2-semibold",r.label1medium="label-1-medium",r.label1semibold="label-1-semibold",r.label1bold="label-1-bold",r.label2medium="label-2-medium",r.label2semibold="label-2-semibold",r.label2bold="label-2-bold",r.caption1medium="caption-1-medium",r.caption1semibold="caption-1-semibold",r.caption1bold="caption-1-bold",r.caption2medium="caption-2-medium",r.caption2semibold="caption-2-semibold",r.caption2bold="caption-2-bold"})(Ye||(Ye={}));var Yd=function(r,t,e,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,t,e,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(t,e,a):s(t,e))||a);return n>3&&a&&Object.defineProperty(t,e,a),a},xt=class extends j{constructor(){super(...arguments),this.variant=Ye.body1}render(){return this.element?ks`
577
+ <${Ls(this.element)}
577
578
  part="text"
578
579
  class="ft-typography ft-typography--${this.variant}">
579
580
  <slot></slot>
580
- </${$s(this.element)}>
581
- `:Ps`
581
+ </${Ls(this.element)}>
582
+ `:ks`
582
583
  <slot part="text" class="ft-typography ft-typography--${this.variant}"></slot>
583
- `}};bt.styles=[Rd,_d,Nd,Id,Jr,Td,Di,$d,Pd,Ld,kd,...Dd];Gd([g()],bt.prototype,"element",void 0);Gd([g()],bt.prototype,"variant",void 0);G("ft-typography")(bt);var Wt=function(r,t,e,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,t,e,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(t,e,a):s(t,e))||a);return n>3&&a&&Object.defineProperty(t,e,a),a},et=class extends V{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.unbounded=!1,this.activated=!1,this.selected=!1,this.disabled=!1,this.hovered=!1,this.focused=!1,this.pressed=!1,this.rippling=!1,this.originX=0,this.originY=0,this.debouncer=new at(1e3),this.onTransitionStart=t=>{t.propertyName==="transform"&&(this.rippling=this.pressed,this.debouncer.run(()=>this.rippling=!1))},this.onTransitionEnd=t=>{t.propertyName==="transform"&&(this.rippling=!1)},this.setupDebouncer=new at(10),this.moveRipple=t=>{var e,i;let{x:n,y:a}=this.getCoordinates(t),s=(i=(e=this.ripple)===null||e===void 0?void 0:e.getBoundingClientRect())!==null&&i!==void 0?i:{x:0,y:0,width:0,height:0};this.originX=Math.round(n!=null?n-s.x:s.width/2),this.originY=Math.round(a!=null?a-s.y:s.height/2)},this.startPress=t=>{this.moveRipple(t),this.pressed=!this.isIgnored(t)},this.endPress=()=>{this.pressed=!1},this.startHover=t=>{this.hovered=!this.isIgnored(t)},this.endHover=()=>{this.hovered=!1},this.startFocus=t=>{this.focused=this.isFocusVisible(t?.target)&&!this.isIgnored(t)},this.endFocus=()=>{this.focused=!1}}render(){let t={"ft-ripple":!0,"ft-ripple--primary":this.primary,"ft-ripple--secondary":this.secondary,"ft-ripple--unbounded":this.unbounded,"ft-ripple--selected":(this.selected||this.activated)&&!this.disabled,"ft-ripple--pressed":(this.pressed||this.rippling)&&!this.disabled,"ft-ripple--hovered":this.hovered&&!this.disabled,"ft-ripple--focused":this.focused&&!this.disabled};return L`
584
+ `}};xt.styles=[Td,Pd,$d,Ld,Qr,kd,Bi,Dd,Md,Fd,Bd,...Ud];Yd([g()],xt.prototype,"element",void 0);Yd([g()],xt.prototype,"variant",void 0);Z("ft-typography")(xt);var Ht=function(r,t,e,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,t,e,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(t,e,a):s(t,e))||a);return n>3&&a&&Object.defineProperty(t,e,a),a},et=class extends j{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.unbounded=!1,this.activated=!1,this.selected=!1,this.disabled=!1,this.hovered=!1,this.focused=!1,this.pressed=!1,this.rippling=!1,this.originX=0,this.originY=0,this.debouncer=new st(1e3),this.onTransitionStart=t=>{t.propertyName==="transform"&&(this.rippling=this.pressed,this.debouncer.run(()=>this.rippling=!1))},this.onTransitionEnd=t=>{t.propertyName==="transform"&&(this.rippling=!1)},this.setupDebouncer=new st(10),this.moveRipple=t=>{var e,i;let{x:n,y:a}=this.getCoordinates(t),s=(i=(e=this.ripple)===null||e===void 0?void 0:e.getBoundingClientRect())!==null&&i!==void 0?i:{x:0,y:0,width:0,height:0};this.originX=Math.round(n!=null?n-s.x:s.width/2),this.originY=Math.round(a!=null?a-s.y:s.height/2)},this.startPress=t=>{this.moveRipple(t),this.pressed=!this.isIgnored(t)},this.endPress=()=>{this.pressed=!1},this.startHover=t=>{this.hovered=!this.isIgnored(t)},this.endHover=()=>{this.hovered=!1},this.startFocus=t=>{this.focused=this.isFocusVisible(t?.target)&&!this.isIgnored(t)},this.endFocus=()=>{this.focused=!1}}render(){let t={"ft-ripple":!0,"ft-ripple--primary":this.primary,"ft-ripple--secondary":this.secondary,"ft-ripple--unbounded":this.unbounded,"ft-ripple--selected":(this.selected||this.activated)&&!this.disabled,"ft-ripple--pressed":(this.pressed||this.rippling)&&!this.disabled,"ft-ripple--hovered":this.hovered&&!this.disabled,"ft-ripple--focused":this.focused&&!this.disabled};return $`
584
585
  <style>
585
586
  .ft-ripple .ft-ripple--effect {
586
587
  left: ${this.originX}px;
587
588
  top: ${this.originY}px;
588
589
  }
589
590
  </style>
590
- <div class="${Lt(t)}">
591
+ <div class="${Tt(t)}">
591
592
  <div class="ft-ripple--background"></div>
592
593
  <div class="ft-ripple--effect"></div>
593
594
  </div>
594
- `}contentAvailableCallback(t){super.contentAvailableCallback(t),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}update(t){var e,i;super.update(t),t.has("disabled")&&(this.disabled?(this.endRipple(),(e=this.target)===null||e===void 0||e.removeAttribute("data-is-ft-ripple-target")):(i=this.target)===null||i===void 0||i.setAttribute("data-is-ft-ripple-target","true"))}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run(()=>this.defaultSetup())}defaultSetup(){var t,e;let i=(t=this.shadowRoot)===null||t===void 0?void 0:t.host.parentElement;i&&this.setupFor((e=this.target)!==null&&e!==void 0?e:i)}setupFor(t){if(this.setupDebouncer.cancel(),this.target===t)return;this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");let e=(...l)=>d=>{l.forEach(p=>window.addEventListener(p,this.endPress,{once:!0})),this.startPress(d)},i=e("mouseup","contextmenu"),n=e("touchend","touchcancel"),a=l=>{["Enter"," "].includes(l.key)&&e("keyup")(l)},s={passive:!0};t.addEventListener("mouseover",this.startHover,s),t.addEventListener("mousemove",this.moveRipple,s),t.addEventListener("mouseleave",this.endHover,s),t.addEventListener("mousedown",i,s),t.addEventListener("touchstart",n,s),t.addEventListener("touchmove",this.moveRipple,s),t.addEventListener("keydown",a,s),t.addEventListener("focus",this.startFocus,s),t.addEventListener("blur",this.endFocus,s),t.addEventListener("focusin",this.startFocus,s),t.addEventListener("focusout",this.endFocus,s),this.onDisconnect=()=>{t.removeAttribute("data-is-ft-ripple-target"),t.removeEventListener("mouseover",this.startHover,s),t.removeEventListener("mousemove",this.moveRipple,s),t.removeEventListener("mouseleave",this.endHover,s),t.removeEventListener("mousedown",i,s),t.removeEventListener("touchstart",n,s),t.removeEventListener("touchmove",this.moveRipple,s),t.removeEventListener("keydown",a,s),t.removeEventListener("focus",this.startFocus,s),t.removeEventListener("blur",this.endFocus,s),t.removeEventListener("focusin",this.startFocus,s),t.removeEventListener("focusout",this.endFocus,s),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(t){let e=t,i=t,n,a;return e.x!=null?{x:n,y:a}=e:i.touches!=null&&(n=i.touches[0].clientX,a=i.touches[0].clientY),{x:n,y:a}}isFocusVisible(t){return t instanceof HTMLElement?t.matches(":focus-visible"):!0}isIgnored(t){if(this.disabled)return!0;if(t!=null)for(let e of t.composedPath()){if(e===this.target)break;if("hasAttribute"in e&&e.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.endRipple()}};et.elementDefinitions={};et.styles=wd;Wt([g({type:Boolean})],et.prototype,"primary",void 0);Wt([g({type:Boolean})],et.prototype,"secondary",void 0);Wt([g({type:Boolean})],et.prototype,"unbounded",void 0);Wt([g({type:Boolean})],et.prototype,"activated",void 0);Wt([g({type:Boolean})],et.prototype,"selected",void 0);Wt([g({type:Boolean})],et.prototype,"disabled",void 0);Wt([z()],et.prototype,"hovered",void 0);Wt([z()],et.prototype,"focused",void 0);Wt([z()],et.prototype,"pressed",void 0);Wt([z()],et.prototype,"rippling",void 0);Wt([z()],et.prototype,"originX",void 0);Wt([z()],et.prototype,"originY",void 0);Wt([X(".ft-ripple")],et.prototype,"ripple",void 0);Wt([X(".ft-ripple--effect")],et.prototype,"rippleEffect",void 0);G("ft-ripple")(et);var Qr={distance:o.create("--ft-tooltip-distance","","SIZE","4px"),color:o.create("--ft-tooltip-color","","COLOR","#FFFFFF"),backgroundColor:o.create("--ft-tooltip-background-color","","COLOR","#666666"),zIndex:o.create("--ft-tooltip-z-index","","NUMBER","100"),borderRadiusS:o.external(N.borderRadiusS,"Design system"),maxWidth:o.create("--ft-tooltip-max-width","","SIZE","150px")},Kd=P`
595
+ `}contentAvailableCallback(t){super.contentAvailableCallback(t),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}update(t){var e,i;super.update(t),t.has("disabled")&&(this.disabled?(this.endRipple(),(e=this.target)===null||e===void 0||e.removeAttribute("data-is-ft-ripple-target")):(i=this.target)===null||i===void 0||i.setAttribute("data-is-ft-ripple-target","true"))}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run(()=>this.defaultSetup())}defaultSetup(){var t,e;let i=(t=this.shadowRoot)===null||t===void 0?void 0:t.host.parentElement;i&&this.setupFor((e=this.target)!==null&&e!==void 0?e:i)}setupFor(t){if(this.setupDebouncer.cancel(),this.target===t)return;this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");let e=(...l)=>d=>{l.forEach(p=>window.addEventListener(p,this.endPress,{once:!0})),this.startPress(d)},i=e("mouseup","contextmenu"),n=e("touchend","touchcancel"),a=l=>{["Enter"," "].includes(l.key)&&e("keyup")(l)},s={passive:!0};t.addEventListener("mouseover",this.startHover,s),t.addEventListener("mousemove",this.moveRipple,s),t.addEventListener("mouseleave",this.endHover,s),t.addEventListener("mousedown",i,s),t.addEventListener("touchstart",n,s),t.addEventListener("touchmove",this.moveRipple,s),t.addEventListener("keydown",a,s),t.addEventListener("focus",this.startFocus,s),t.addEventListener("blur",this.endFocus,s),t.addEventListener("focusin",this.startFocus,s),t.addEventListener("focusout",this.endFocus,s),this.onDisconnect=()=>{t.removeAttribute("data-is-ft-ripple-target"),t.removeEventListener("mouseover",this.startHover,s),t.removeEventListener("mousemove",this.moveRipple,s),t.removeEventListener("mouseleave",this.endHover,s),t.removeEventListener("mousedown",i,s),t.removeEventListener("touchstart",n,s),t.removeEventListener("touchmove",this.moveRipple,s),t.removeEventListener("keydown",a,s),t.removeEventListener("focus",this.startFocus,s),t.removeEventListener("blur",this.endFocus,s),t.removeEventListener("focusin",this.startFocus,s),t.removeEventListener("focusout",this.endFocus,s),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(t){let e=t,i=t,n,a;return e.x!=null?{x:n,y:a}=e:i.touches!=null&&(n=i.touches[0].clientX,a=i.touches[0].clientY),{x:n,y:a}}isFocusVisible(t){return t instanceof HTMLElement?t.matches(":focus-visible"):!0}isIgnored(t){if(this.disabled)return!0;if(t!=null)for(let e of t.composedPath()){if(e===this.target)break;if("hasAttribute"in e&&e.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.endRipple()}};et.elementDefinitions={};et.styles=_d;Ht([g({type:Boolean})],et.prototype,"primary",void 0);Ht([g({type:Boolean})],et.prototype,"secondary",void 0);Ht([g({type:Boolean})],et.prototype,"unbounded",void 0);Ht([g({type:Boolean})],et.prototype,"activated",void 0);Ht([g({type:Boolean})],et.prototype,"selected",void 0);Ht([g({type:Boolean})],et.prototype,"disabled",void 0);Ht([U()],et.prototype,"hovered",void 0);Ht([U()],et.prototype,"focused",void 0);Ht([U()],et.prototype,"pressed",void 0);Ht([U()],et.prototype,"rippling",void 0);Ht([U()],et.prototype,"originX",void 0);Ht([U()],et.prototype,"originY",void 0);Ht([Q(".ft-ripple")],et.prototype,"ripple",void 0);Ht([Q(".ft-ripple--effect")],et.prototype,"rippleEffect",void 0);Z("ft-ripple")(et);var to={distance:o.create("--ft-tooltip-distance","","SIZE","4px"),color:o.create("--ft-tooltip-color","","COLOR","#FFFFFF"),backgroundColor:o.create("--ft-tooltip-background-color","","COLOR","#666666"),zIndex:o.create("--ft-tooltip-z-index","","NUMBER","100"),borderRadiusS:o.external(_.borderRadiusS,"Design system"),maxWidth:o.create("--ft-tooltip-max-width","","SIZE","150px")},Xd=L`
595
596
  .ft-tooltip--container {
596
597
  display: block;
597
598
  }
@@ -606,21 +607,21 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
606
607
  box-sizing: border-box;
607
608
  overflow: hidden;
608
609
  width: max-content;
609
- max-width: ${Qr.maxWidth};
610
+ max-width: ${to.maxWidth};
610
611
  text-align: center;
611
- padding: ${Qr.distance};
612
- z-index: ${Qr.zIndex};
612
+ padding: ${to.distance};
613
+ z-index: ${to.zIndex};
613
614
  }
614
615
 
615
616
  .ft-tooltip--content {
616
617
  padding: 4px 8px;
617
- border-radius: ${Qr.borderRadiusS};
618
- background-color: ${Qr.backgroundColor};
619
- color: ${Qr.color};
618
+ border-radius: ${to.borderRadiusS};
619
+ background-color: ${to.backgroundColor};
620
+ color: ${to.color};
620
621
  position: relative;
621
622
  word-break: break-word;
622
623
  }
623
- `;var Ht=function(r,t,e,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,t,e,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(t,e,a):s(t,e))||a);return n>3&&a&&Object.defineProperty(t,e,a),a},ft=class extends V{constructor(){super(...arguments),this.text="",this.manual=!1,this.inline=!1,this.delay=500,this.position="bottom",this.visible=!1,this.validPositions=new Set(["top","bottom","left","right"]),this.hideDebounce=new at,this.revealDebouncer=new at}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){return L`
624
+ `;var zt=function(r,t,e,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,t,e,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(t,e,a):s(t,e))||a);return n>3&&a&&Object.defineProperty(t,e,a),a},ft=class extends j{constructor(){super(...arguments),this.text="",this.manual=!1,this.inline=!1,this.delay=500,this.position="bottom",this.visible=!1,this.validPositions=new Set(["top","bottom","left","right"]),this.hideDebounce=new st,this.revealDebouncer=new st}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){return $`
624
625
  <div part="container"
625
626
  class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}"
626
627
  @mouseenter=${this.onHover}
@@ -638,12 +639,12 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
638
639
  </div>
639
640
  </div>
640
641
  </div>
641
- `}updated(t){t.has("visible")&&this.visible&&this.resetTooltipContent(),super.updated(t)}contentAvailableCallback(t){super.contentAvailableCallback(t),["visible","text"].some(e=>t.has(e))&&this.visible&&this.positionTooltip()}async show(t){this.visible=!0,t!=null&&await this.hideDebounce.run(()=>{this.hide()},t)}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var t;return((t=this.slotNodes)!==null&&t!==void 0?t:[]).filter(e=>e.nodeType==Node.ELEMENT_NODE)[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){let t=this.tooltipContent.style;switch(t.transition="none",this.validPosition){case"top":t.top=this.tooltip.clientHeight+"px",t.left="0";break;case"bottom":t.top=-this.tooltip.clientHeight+"px",t.left="0";break;case"left":t.top="0",t.left=this.tooltip.clientWidth+"px";break;case"right":t.top="0",t.left=-this.tooltip.clientWidth+"px";break}}}positionTooltip(){this.resetTooltipContent(),this.tooltip&&this.slottedElement&&(this.tooltip.style.left="",this.tooltip.style.top="",Io(this.slottedElement,this.tooltip,this.position).then(({x:t,y:e})=>{this.tooltip&&(this.tooltip.style.left=`${t}px`,this.tooltip.style.top=`${e}px`)})),this.revealDebouncer.run(()=>{this.tooltipContent&&(this.tooltipContent.style.transition="top var(--ft-transition-duration, 250ms), left var(--ft-transition-duration, 250ms)",this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")},this.manual?0:this.delay)}onTouch(){this.manual||(this.show(),setTimeout(()=>window.addEventListener("touchstart",t=>{t.composedPath().includes(this.container)||this.onOut()},{once:!0}),100))}onHover(){this.manual||this.show()}onOut(){this.manual||(this.revealDebouncer.cancel(),this.hide())}onClick(){this.manual||(this.revealDebouncer.cancel(),this.hide())}correctOutOfWindowPixels(t,e){return Math.max(t,Math.min(0,-e))}};ft.elementDefinitions={"ft-typography":bt};ft.styles=Kd;Ht([g()],ft.prototype,"text",void 0);Ht([g({type:Boolean})],ft.prototype,"manual",void 0);Ht([g({type:Boolean})],ft.prototype,"inline",void 0);Ht([g({type:Number})],ft.prototype,"delay",void 0);Ht([g()],ft.prototype,"position",void 0);Ht([go()],ft.prototype,"slotNodes",void 0);Ht([X(".ft-tooltip--container")],ft.prototype,"container",void 0);Ht([X(".ft-tooltip")],ft.prototype,"tooltip",void 0);Ht([X(".ft-tooltip--content")],ft.prototype,"tooltipContent",void 0);Ht([z()],ft.prototype,"visible",void 0);Ht([Oe({passive:!0})],ft.prototype,"onTouch",null);Ht([Oe({passive:!0})],ft.prototype,"onHover",null);Ht([Oe({passive:!0})],ft.prototype,"onOut",null);Ht([Oe({passive:!0})],ft.prototype,"onClick",null);G("ft-tooltip")(ft);var Er;(function(r){r.ADD_TO_PBK="&#xe800;",r.ALERT="&#xe801;",r.ADD_ALERT="&#xe802;",r.BACK_TO_SEARCH="&#xe803;",r.ADD_BOOKMARK="&#xe804;",r.BOOKMARK="&#xe805;",r.BOOKS="&#xe806;",r.MENU="&#xe807;",r.DOWNLOAD="&#xe808;",r.EDIT="&#xe809;",r.FEEDBACK="&#xe80a;",r.HOME="&#xe80b;",r.MODIFY_PBK="&#xe80c;",r.SCHEDULED="&#xe80d;",r.SEARCH="&#xe80e;",r.EXPORT="&#xe80f;",r.TOC="&#xe810;",r.WRITE_UGC="&#xe811;",r.TRASH="&#xe812;",r.USER="&#xe813;",r.EXTLINK="&#xe814;",r.CALENDAR="&#xe815;",r.OFFLINE="&#xe816;",r.BOOK="&#xe817;",r.DOWNLOAD_PLAIN="&#xe818;",r.CHECK="&#xe819;",r.STAR_PLAIN="&#xe900;",r.TOPICS="&#xe901;",r.DISC="&#xe902;",r.CIRCLE="&#xe903;",r.SHARED="&#xe904;",r.SORT_UNSORTED="&#xe905;",r.SORT_UP="&#xe906;",r.SORT_DOWN="&#xe907;",r.WORKING="&#xe908;",r.CLOSE="&#xe909;",r.ZOOM_OUT="&#xe90a;",r.ZOOM_IN="&#xe90b;",r.ZOOM_REALSIZE="&#xe90c;",r.ZOOM_FULLSCREEN="&#xe90d;",r.ADMIN_RESTRICTED="&#xe90e;",r.ADMIN="&#xe90f;",r.ADMIN_KHUB="&#xe910;",r.ADMIN_THEME="&#xe911;",r.ADMIN_USERS="&#xe912;",r.WARNING="&#xe913;",r.CONTEXT="&#xe914;",r.SEARCH_HOME="&#xe915;",r.STEPS="&#xe916;",r.ICON_EXPAND="&#xe917;",r.ICON_COLLAPSE="&#xe918;",r.INFO="&#xe919;",r.MINUS_PLAIN="&#xe91a;",r.PLUS_PLAIN="&#xe91b;",r.FACET_HAS_DESCENDANT="&#xe91c;",r.TRIANGLE_BOTTOM="&#xe91d;",r.TRIANGLE_LEFT="&#xe91e;",r.TRIANGLE_RIGHT="&#xe91f;",r.TRIANGLE_TOP="&#xe920;",r.THIN_ARROW="&#xe921;",r.SIGN_IN="&#xe922;",r.LOGOUT="&#xe923;",r.TRANSLATE="&#xe924;",r.CLOSE_PLAIN="&#xe925;",r.CHECK_PLAIN="&#xe926;",r.ARTICLE="&#xe927;",r.COLUMNS="&#xe928;",r.ANALYTICS="&#xe929;",r.COLLECTIONS="&#xe92a;",r.ARROW_DOWN="&#xe92b;",r.ARROW_LEFT="&#xe92c;",r.ARROW_RIGHT="&#xe92d;",r.ARROW_UP="&#xe92e;",r.SEARCH_IN_PUBLICATION="&#xe92f;",r.COPY_TO_CLIPBOARD="&#xe930;",r.SHARED_PBK="&#xe931;",r.ATTACHMENTS="&#xe932;",r.STRIPE_ARROW_LEFT="&#xe933;",r.STRIPE_ARROW_RIGHT="&#xe934;",r.FILTERS="&#xe935;",r.DOT="&#xe936;",r.MINUS="&#xe937;",r.PLUS="&#xe938;",r.MAILS_AND_NOTIFICATIONS="&#xe939;",r.SAVE="&#xe93a;",r.LOCKER="&#xe93b;",r.ADMIN_INTEGRATION="&#xe93c;",r.SYNC="&#xe93d;",r.TAG="&#xe93e;",r.BOOK_PLAIN="&#xe93f;",r.UPLOAD="&#xe940;",r.ONLINE="&#xe941;",r.TAG_PLAIN="&#xe942;",r.ACCOUNT_SETTINGS="&#xe943;",r.PRINT="&#xe944;",r.DEFAULT_ROLES="&#xe945;",r.SHORTCUT_MENU="&#xe946;",r.RELATIVES_PLAIN="&#xe947;",r.RELATIVES="&#xe948;",r.PAUSE="&#xe949;",r.PLAY="&#xe94a;",r.ADMIN_PORTAL="&#xe94b;",r.STAR="&#xe94c;",r.THUMBS_DOWN="&#xe94d;",r.THUMBS_DOWN_PLAIN="&#xe94e;",r.THUMBS_UP="&#xe94f;",r.THUMBS_UP_PLAIN="&#xe950;",r.FEEDBACK_PLAIN="&#xe951;",r.RATE_PLAIN="&#xe952;",r.RATE="&#xe953;",r.OFFLINE_SETTINGS="&#xe954;",r.MY_COLLECTIONS="&#xe955;",r.THIN_ARROW_LEFT="&#xe956;",r.THIN_ARROW_RIGHT="&#xe957;",r.RESET="&#xe958;",r.MY_LIBRARY="&#xe959;",r.UNSTRUCTURED_DOC="&#xe95a;",r.CONTEXTUAL="&#xe95b;",r.THIN_ARROW_UP="&#xe95c;",r.ARROW_RIGHT_TO_LINE="&#xe95d;",r.DESKTOP="&#xe95e;",r.TABLET_LANDSCAPE="&#xe95f;",r.TABLET_PORTRAIT="&#xe960;",r.MOBILE_LANDSCAPE="&#xe961;",r.MOBILE_PORTRAIT="&#xe962;",r.DIAGRAM_SUNBURST="&#xe963;",r.DIAGRAM_SANKEY="&#xe964;",r.COMMENT_QUESTION="&#xe965;",r.COMMENT_QUESTION_PLAIN="&#xe966;",r.MESSAGE_BOT="&#xe967;",r.CHART_SIMPLE="&#xe968;",r.BARS_PROGRESS="&#xe969;",r.BOOK_OPEN_GEAR="&#xe96a;",r.BOOK_OPEN_GEAR_SLASH="&#xe96b;",r.LINE_CHART="&#xe96c;",r.STACKED_CHART="&#xe96d;",r.CHART_BAR_STACKED="&#xe96e;",r.CHART_BAR_GROUPED="&#xe96f;",r.EYE_SLASH="&#xe970;",r.X_MARK="&#xe971;",r.EXPAND_WIDE="&#xe972;",r.PIP="&#xe973;",r.PIP_WIDE="&#xe974;",r.LIFE_RING="&#xe975;",r.GLOBE="&#xe976;",r.PIGGY_BANK="&#xe977;",r.EXTLINK_LIGHT="&#xe978;",r.CLONE="&#xe979;",r.CLONE_LINK_SIMPLE="&#xe97a;",r.CHART_BAR_NORMALIZED="&#xe97b;",r.CONSUMER="&#xe97c;",r.OCTAGON_XMARK="&#xe97d;",r.HOURGLASS_HALF="&#xe97e;",r.CLOCK="&#xe97f;",r.CLOCK_THREE="&#xe97f;",r.CALENDAR_DAY="&#xe980;",r.COMPUTER_MOUSE_MAGNIFYING_GLASS="&#xe981;",r.WAND_MAGIC_SPARKLES="&#xe982;",r.PAPER_PLANE="&#xe983;",r.CIRCLE_STOP="&#xe984;",r.ARROW_ROTATE_RIGHT="&#xe985;",r.ARROWS_ROTATE="&#xe986;",r.ALIGN_RIGHT="&#xe987;",r.FORMAT_CLEAR="&#xe988;",r.ALIGN_CENTER="&#xe989;",r.ALIGN_LEFT="&#xe98a;",r.PALETTE="&#xe98b;",r.BOLD="&#xe98c;",r.ITALIC="&#xe98d;",r.UNDERLINE="&#xe98e;",r.STRIKETHROUGH="&#xe98f;",r.LINK_SIMPLE_SLASH="&#xe990;",r.LINK_SIMPLE="&#xe991;",r.ROUTE="&#xe992;",r.CIRCLE_USER_SLASH="&#xe993;",r.CIRCLE_USER_CHECK="&#xe994;",r.LIST_MAGNIFYING_GLASS="&#xe995;",r.MEDAL="&#xe996;",r.THUMBS_UP_THUMBS_DOWN_SOLID="&#xe997;",r.ARROW_TURN_DOWN_RIGHT="&#xe998;",r.FLASK="&#xe999;",r.LOCK_KEYHOLE_OPEN_SOLID="&#xe99a;",r.HOURGLASS_END="&#xe99b;",r.CIRCLE_QUESTION="&#xe99c;",r.EYE="&#xf06e;",r.SHARE="&#xe80f1;"})(Er||(Er={}));var I;(function(r){r.UNKNOWN="&#xe90a;",r.ABW="&#xe900;",r.AUDIO="&#xe901;",r.AVI="&#xe902;",r.CHM="&#xe904;",r.CODE="&#xe905;",r.CSV="&#xe903;",r.DITA="&#xe906;",r.EPUB="&#xe907;",r.EXCEL="&#xe908;",r.FLAC="&#xe909;",r.GIF="&#xe90b;",r.GZIP="&#xe90c;",r.HTML="&#xe90d;",r.IMAGE="&#xe90e;",r.JPEG="&#xe90f;",r.JSON="&#xe910;",r.M4A="&#xe911;",r.MOV="&#xe912;",r.MP3="&#xe913;",r.MP4="&#xe914;",r.OGG="&#xe915;",r.PDF="&#xe916;",r.PNG="&#xe917;",r.POWERPOINT="&#xe918;",r.RAR="&#xe91a;",r.STP="&#xe91b;",r.TEXT="&#xe91c;",r.VIDEO="&#xe91e;",r.WAV="&#xe91f;",r.WMA="&#xe920;",r.WORD="&#xe921;",r.XML="&#xe922;",r.YAML="&#xe919;",r.ZIP="&#xe923;"})(I||(I={}));var sO=new Map([...["abw"].map(r=>[r,I.ABW]),...["3gp","act","aiff","aac","amr","au","awb","dct","dss","dvf","gsm","iklax","ivs","mmf","mpc","msv","opus","ra","rm","raw","sln","tta","vox","wv"].map(r=>[r,I.AUDIO]),...["avi"].map(r=>[r,I.AVI]),...["chm","xhs"].map(r=>[r,I.CHM]),...["java","py","php","php3","php4","php5","js","javascript","rb","rbw","c","cpp","cxx","h","hh","hpp","hxx","sh","bash","zsh","tcsh","ksh","csh","vb","scala","pl","prl","perl","groovy","ceylon","aspx","jsp","scpt","applescript","bas","bat","lua","jsp","mk","cmake","css","sass","less","m","mm","xcodeproj"].map(r=>[r,I.CODE]),...["csv"].map(r=>[r,I.CSV]),...["dita","ditamap","ditaval"].map(r=>[r,I.DITA]),...["epub"].map(r=>[r,I.EPUB]),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map(r=>[r,I.EXCEL]),...["flac"].map(r=>[r,I.FLAC]),...["gif"].map(r=>[r,I.GIF]),...["gzip","x-gzip","giz","gz","tgz"].map(r=>[r,I.GZIP]),...["html","htm","xhtml"].map(r=>[r,I.HTML]),...["ai","vml","xps","img","cpt","psd","psp","xcf","svg","svg+xml","bmp","bpg","ppm","pgm","pbm","pnm","rif","tif","tiff","webp","wmf","ico"].map(r=>[r,I.IMAGE]),...["jpeg","jpg","jpe"].map(r=>[r,I.JPEG]),...["json"].map(r=>[r,I.JSON]),...["m4a","m4p"].map(r=>[r,I.M4A]),...["mov","qt"].map(r=>[r,I.MOV]),...["mp3"].map(r=>[r,I.MP3]),...["mp4","m4v"].map(r=>[r,I.MP4]),...["ogg","oga"].map(r=>[r,I.OGG]),...["pdf","ps"].map(r=>[r,I.PDF]),...["png"].map(r=>[r,I.PNG]),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map(r=>[r,I.POWERPOINT]),...["rar"].map(r=>[r,I.RAR]),...["stp"].map(r=>[r,I.STP]),...["txt","rtf","md","mdown"].map(r=>[r,I.TEXT]),...["webm","mkv","flv","vob","ogv","ogg","drc","mng","wmv","yuv","rm","rmvb","asf","mpg","mp2","mpeg","mpe","mpv","m2v","svi","3gp","3g2","mxf","roq","nsv"].map(r=>[r,I.VIDEO]),...["wav"].map(r=>[r,I.WAV]),...["wma"].map(r=>[r,I.WMA]),...["doc","dot","docx","docm","dotx","dotm","docb"].map(r=>[r,I.WORD]),...["xml","xsl","rdf"].map(r=>[r,I.XML]),...["yaml","yml","x-yaml"].map(r=>[r,I.YAML]),...["zip"].map(r=>[r,I.ZIP])]);var lO={[I.ABW]:"#91ABC6",[I.AUDIO]:"#1795E3",[I.AVI]:"#E63324",[I.CHM]:"#71C3EB",[I.CODE]:"#71C3EB",[I.CSV]:"#1F7345",[I.DITA]:"#71C3EB",[I.EPUB]:"#85B926",[I.EXCEL]:"#1F7345",[I.FLAC]:"#1795E3",[I.GIF]:"#59B031",[I.GZIP]:"#F8AB36",[I.HTML]:"#71C3EB",[I.IMAGE]:"#59B031",[I.JPEG]:"#59B031",[I.JSON]:"#71C3EB",[I.M4A]:"#1795E3",[I.MOV]:"#E63324",[I.MP3]:"#1795E3",[I.MP4]:"#E63324",[I.OGG]:"#1795E3",[I.PDF]:"#E44948",[I.PNG]:"#59B031",[I.POWERPOINT]:"#B54A2B",[I.RAR]:"#F8AB36",[I.STP]:"#3764B1",[I.TEXT]:"#3162AB",[I.UNKNOWN]:"#999999",[I.VIDEO]:"#E63324",[I.WAV]:"#1795E3",[I.WMA]:"#1795E3",[I.WORD]:"#3162AB",[I.XML]:"#71C3EB",[I.YAML]:"#71C3EB",[I.ZIP]:"#F8AB36"};var $t;(function(r){r.fluid_topics="fluid-topics",r.file_format="file-format",r.material="material"})($t||($t={}));var Mi=function(r,t,e,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,t,e,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(t,e,a):s(t,e))||a);return n>3&&a&&Object.defineProperty(t,e,a),a},Ot=class extends V{constructor(){super(...arguments),this.resolvedIcon=H}render(){let t=this.variant&&Object.values($t).includes(this.variant)?this.variant:$t.fluid_topics,e=t!==$t.material||!!this.value;return L`
642
+ `}updated(t){t.has("visible")&&this.visible&&this.resetTooltipContent(),super.updated(t)}contentAvailableCallback(t){super.contentAvailableCallback(t),["visible","text"].some(e=>t.has(e))&&this.visible&&this.positionTooltip()}async show(t){this.visible=!0,t!=null&&await this.hideDebounce.run(()=>{this.hide()},t)}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var t;return((t=this.slotNodes)!==null&&t!==void 0?t:[]).filter(e=>e.nodeType==Node.ELEMENT_NODE)[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){let t=this.tooltipContent.style;switch(t.transition="none",this.validPosition){case"top":t.top=this.tooltip.clientHeight+"px",t.left="0";break;case"bottom":t.top=-this.tooltip.clientHeight+"px",t.left="0";break;case"left":t.top="0",t.left=this.tooltip.clientWidth+"px";break;case"right":t.top="0",t.left=-this.tooltip.clientWidth+"px";break}}}positionTooltip(){this.resetTooltipContent(),this.tooltip&&this.slottedElement&&(this.tooltip.style.left="",this.tooltip.style.top="",$o(this.slottedElement,this.tooltip,this.position).then(({x:t,y:e})=>{this.tooltip&&(this.tooltip.style.left=`${t}px`,this.tooltip.style.top=`${e}px`)})),this.revealDebouncer.run(()=>{this.tooltipContent&&(this.tooltipContent.style.transition="top var(--ft-transition-duration, 250ms), left var(--ft-transition-duration, 250ms)",this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")},this.manual?0:this.delay)}onTouch(){this.manual||(this.show(),setTimeout(()=>window.addEventListener("touchstart",t=>{t.composedPath().includes(this.container)||this.onOut()},{once:!0}),100))}onHover(){this.manual||this.show()}onOut(){this.manual||(this.revealDebouncer.cancel(),this.hide())}onClick(){this.manual||(this.revealDebouncer.cancel(),this.hide())}correctOutOfWindowPixels(t,e){return Math.max(t,Math.min(0,-e))}};ft.elementDefinitions={"ft-typography":xt};ft.styles=Xd;zt([g()],ft.prototype,"text",void 0);zt([g({type:Boolean})],ft.prototype,"manual",void 0);zt([g({type:Boolean})],ft.prototype,"inline",void 0);zt([g({type:Number})],ft.prototype,"delay",void 0);zt([g()],ft.prototype,"position",void 0);zt([bo()],ft.prototype,"slotNodes",void 0);zt([Q(".ft-tooltip--container")],ft.prototype,"container",void 0);zt([Q(".ft-tooltip")],ft.prototype,"tooltip",void 0);zt([Q(".ft-tooltip--content")],ft.prototype,"tooltipContent",void 0);zt([U()],ft.prototype,"visible",void 0);zt([Oe({passive:!0})],ft.prototype,"onTouch",null);zt([Oe({passive:!0})],ft.prototype,"onHover",null);zt([Oe({passive:!0})],ft.prototype,"onOut",null);zt([Oe({passive:!0})],ft.prototype,"onClick",null);Z("ft-tooltip")(ft);var Ar;(function(r){r.ADD_TO_PBK="&#xe800;",r.ALERT="&#xe801;",r.ADD_ALERT="&#xe802;",r.BACK_TO_SEARCH="&#xe803;",r.ADD_BOOKMARK="&#xe804;",r.BOOKMARK="&#xe805;",r.BOOKS="&#xe806;",r.MENU="&#xe807;",r.DOWNLOAD="&#xe808;",r.EDIT="&#xe809;",r.FEEDBACK="&#xe80a;",r.HOME="&#xe80b;",r.MODIFY_PBK="&#xe80c;",r.SCHEDULED="&#xe80d;",r.SEARCH="&#xe80e;",r.EXPORT="&#xe80f;",r.TOC="&#xe810;",r.WRITE_UGC="&#xe811;",r.TRASH="&#xe812;",r.USER="&#xe813;",r.EXTLINK="&#xe814;",r.CALENDAR="&#xe815;",r.OFFLINE="&#xe816;",r.BOOK="&#xe817;",r.DOWNLOAD_PLAIN="&#xe818;",r.CHECK="&#xe819;",r.STAR_PLAIN="&#xe900;",r.TOPICS="&#xe901;",r.DISC="&#xe902;",r.CIRCLE="&#xe903;",r.SHARED="&#xe904;",r.SORT_UNSORTED="&#xe905;",r.SORT_UP="&#xe906;",r.SORT_DOWN="&#xe907;",r.WORKING="&#xe908;",r.CLOSE="&#xe909;",r.ZOOM_OUT="&#xe90a;",r.ZOOM_IN="&#xe90b;",r.ZOOM_REALSIZE="&#xe90c;",r.ZOOM_FULLSCREEN="&#xe90d;",r.ADMIN_RESTRICTED="&#xe90e;",r.ADMIN="&#xe90f;",r.ADMIN_KHUB="&#xe910;",r.ADMIN_THEME="&#xe911;",r.ADMIN_USERS="&#xe912;",r.WARNING="&#xe913;",r.CONTEXT="&#xe914;",r.SEARCH_HOME="&#xe915;",r.STEPS="&#xe916;",r.ICON_EXPAND="&#xe917;",r.ICON_COLLAPSE="&#xe918;",r.INFO="&#xe919;",r.MINUS_PLAIN="&#xe91a;",r.PLUS_PLAIN="&#xe91b;",r.FACET_HAS_DESCENDANT="&#xe91c;",r.TRIANGLE_BOTTOM="&#xe91d;",r.TRIANGLE_LEFT="&#xe91e;",r.TRIANGLE_RIGHT="&#xe91f;",r.TRIANGLE_TOP="&#xe920;",r.THIN_ARROW="&#xe921;",r.SIGN_IN="&#xe922;",r.LOGOUT="&#xe923;",r.TRANSLATE="&#xe924;",r.CLOSE_PLAIN="&#xe925;",r.CHECK_PLAIN="&#xe926;",r.ARTICLE="&#xe927;",r.COLUMNS="&#xe928;",r.ANALYTICS="&#xe929;",r.COLLECTIONS="&#xe92a;",r.ARROW_DOWN="&#xe92b;",r.ARROW_LEFT="&#xe92c;",r.ARROW_RIGHT="&#xe92d;",r.ARROW_UP="&#xe92e;",r.SEARCH_IN_PUBLICATION="&#xe92f;",r.COPY_TO_CLIPBOARD="&#xe930;",r.SHARED_PBK="&#xe931;",r.ATTACHMENTS="&#xe932;",r.STRIPE_ARROW_LEFT="&#xe933;",r.STRIPE_ARROW_RIGHT="&#xe934;",r.FILTERS="&#xe935;",r.DOT="&#xe936;",r.MINUS="&#xe937;",r.PLUS="&#xe938;",r.MAILS_AND_NOTIFICATIONS="&#xe939;",r.SAVE="&#xe93a;",r.LOCKER="&#xe93b;",r.ADMIN_INTEGRATION="&#xe93c;",r.SYNC="&#xe93d;",r.TAG="&#xe93e;",r.BOOK_PLAIN="&#xe93f;",r.UPLOAD="&#xe940;",r.ONLINE="&#xe941;",r.TAG_PLAIN="&#xe942;",r.ACCOUNT_SETTINGS="&#xe943;",r.PRINT="&#xe944;",r.DEFAULT_ROLES="&#xe945;",r.SHORTCUT_MENU="&#xe946;",r.RELATIVES_PLAIN="&#xe947;",r.RELATIVES="&#xe948;",r.PAUSE="&#xe949;",r.PLAY="&#xe94a;",r.ADMIN_PORTAL="&#xe94b;",r.STAR="&#xe94c;",r.THUMBS_DOWN="&#xe94d;",r.THUMBS_DOWN_PLAIN="&#xe94e;",r.THUMBS_UP="&#xe94f;",r.THUMBS_UP_PLAIN="&#xe950;",r.FEEDBACK_PLAIN="&#xe951;",r.RATE_PLAIN="&#xe952;",r.RATE="&#xe953;",r.OFFLINE_SETTINGS="&#xe954;",r.MY_COLLECTIONS="&#xe955;",r.THIN_ARROW_LEFT="&#xe956;",r.THIN_ARROW_RIGHT="&#xe957;",r.RESET="&#xe958;",r.MY_LIBRARY="&#xe959;",r.UNSTRUCTURED_DOC="&#xe95a;",r.CONTEXTUAL="&#xe95b;",r.THIN_ARROW_UP="&#xe95c;",r.ARROW_RIGHT_TO_LINE="&#xe95d;",r.DESKTOP="&#xe95e;",r.TABLET_LANDSCAPE="&#xe95f;",r.TABLET_PORTRAIT="&#xe960;",r.MOBILE_LANDSCAPE="&#xe961;",r.MOBILE_PORTRAIT="&#xe962;",r.DIAGRAM_SUNBURST="&#xe963;",r.DIAGRAM_SANKEY="&#xe964;",r.COMMENT_QUESTION="&#xe965;",r.COMMENT_QUESTION_PLAIN="&#xe966;",r.MESSAGE_BOT="&#xe967;",r.CHART_SIMPLE="&#xe968;",r.BARS_PROGRESS="&#xe969;",r.BOOK_OPEN_GEAR="&#xe96a;",r.BOOK_OPEN_GEAR_SLASH="&#xe96b;",r.LINE_CHART="&#xe96c;",r.STACKED_CHART="&#xe96d;",r.CHART_BAR_STACKED="&#xe96e;",r.CHART_BAR_GROUPED="&#xe96f;",r.EYE_SLASH="&#xe970;",r.X_MARK="&#xe971;",r.EXPAND_WIDE="&#xe972;",r.PIP="&#xe973;",r.PIP_WIDE="&#xe974;",r.LIFE_RING="&#xe975;",r.GLOBE="&#xe976;",r.PIGGY_BANK="&#xe977;",r.EXTLINK_LIGHT="&#xe978;",r.CLONE="&#xe979;",r.CLONE_LINK_SIMPLE="&#xe97a;",r.CHART_BAR_NORMALIZED="&#xe97b;",r.CONSUMER="&#xe97c;",r.OCTAGON_XMARK="&#xe97d;",r.HOURGLASS_HALF="&#xe97e;",r.CLOCK="&#xe97f;",r.CLOCK_THREE="&#xe97f;",r.CALENDAR_DAY="&#xe980;",r.COMPUTER_MOUSE_MAGNIFYING_GLASS="&#xe981;",r.WAND_MAGIC_SPARKLES="&#xe982;",r.PAPER_PLANE="&#xe983;",r.CIRCLE_STOP="&#xe984;",r.ARROW_ROTATE_RIGHT="&#xe985;",r.ARROWS_ROTATE="&#xe986;",r.ALIGN_RIGHT="&#xe987;",r.FORMAT_CLEAR="&#xe988;",r.ALIGN_CENTER="&#xe989;",r.ALIGN_LEFT="&#xe98a;",r.PALETTE="&#xe98b;",r.BOLD="&#xe98c;",r.ITALIC="&#xe98d;",r.UNDERLINE="&#xe98e;",r.STRIKETHROUGH="&#xe98f;",r.LINK_SIMPLE_SLASH="&#xe990;",r.LINK_SIMPLE="&#xe991;",r.ROUTE="&#xe992;",r.CIRCLE_USER_SLASH="&#xe993;",r.CIRCLE_USER_CHECK="&#xe994;",r.LIST_MAGNIFYING_GLASS="&#xe995;",r.MEDAL="&#xe996;",r.THUMBS_UP_THUMBS_DOWN_SOLID="&#xe997;",r.ARROW_TURN_DOWN_RIGHT="&#xe998;",r.FLASK="&#xe999;",r.LOCK_KEYHOLE_OPEN_SOLID="&#xe99a;",r.HOURGLASS_END="&#xe99b;",r.CIRCLE_QUESTION="&#xe99c;",r.EYE="&#xf06e;",r.SHARE="&#xe80f1;",r.GRIP_LINES_SOLID="&#xe99d;",r.TRANSLATE_SPARKLE_SOLID="&#xe99e;"})(Ar||(Ar={}));var I;(function(r){r.UNKNOWN="&#xe90a;",r.ABW="&#xe900;",r.AUDIO="&#xe901;",r.AVI="&#xe902;",r.CHM="&#xe904;",r.CODE="&#xe905;",r.CSV="&#xe903;",r.DITA="&#xe906;",r.EPUB="&#xe907;",r.EXCEL="&#xe908;",r.FLAC="&#xe909;",r.GIF="&#xe90b;",r.GZIP="&#xe90c;",r.HTML="&#xe90d;",r.IMAGE="&#xe90e;",r.JPEG="&#xe90f;",r.JSON="&#xe910;",r.M4A="&#xe911;",r.MOV="&#xe912;",r.MP3="&#xe913;",r.MP4="&#xe914;",r.OGG="&#xe915;",r.PDF="&#xe916;",r.PNG="&#xe917;",r.POWERPOINT="&#xe918;",r.RAR="&#xe91a;",r.STP="&#xe91b;",r.TEXT="&#xe91c;",r.VIDEO="&#xe91e;",r.WAV="&#xe91f;",r.WMA="&#xe920;",r.WORD="&#xe921;",r.XML="&#xe922;",r.YAML="&#xe919;",r.ZIP="&#xe923;"})(I||(I={}));var hO=new Map([...["abw"].map(r=>[r,I.ABW]),...["3gp","act","aiff","aac","amr","au","awb","dct","dss","dvf","gsm","iklax","ivs","mmf","mpc","msv","opus","ra","rm","raw","sln","tta","vox","wv"].map(r=>[r,I.AUDIO]),...["avi"].map(r=>[r,I.AVI]),...["chm","xhs"].map(r=>[r,I.CHM]),...["java","py","php","php3","php4","php5","js","javascript","rb","rbw","c","cpp","cxx","h","hh","hpp","hxx","sh","bash","zsh","tcsh","ksh","csh","vb","scala","pl","prl","perl","groovy","ceylon","aspx","jsp","scpt","applescript","bas","bat","lua","jsp","mk","cmake","css","sass","less","m","mm","xcodeproj"].map(r=>[r,I.CODE]),...["csv"].map(r=>[r,I.CSV]),...["dita","ditamap","ditaval"].map(r=>[r,I.DITA]),...["epub"].map(r=>[r,I.EPUB]),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map(r=>[r,I.EXCEL]),...["flac"].map(r=>[r,I.FLAC]),...["gif"].map(r=>[r,I.GIF]),...["gzip","x-gzip","giz","gz","tgz"].map(r=>[r,I.GZIP]),...["html","htm","xhtml"].map(r=>[r,I.HTML]),...["ai","vml","xps","img","cpt","psd","psp","xcf","svg","svg+xml","bmp","bpg","ppm","pgm","pbm","pnm","rif","tif","tiff","webp","wmf","ico"].map(r=>[r,I.IMAGE]),...["jpeg","jpg","jpe"].map(r=>[r,I.JPEG]),...["json"].map(r=>[r,I.JSON]),...["m4a","m4p"].map(r=>[r,I.M4A]),...["mov","qt"].map(r=>[r,I.MOV]),...["mp3"].map(r=>[r,I.MP3]),...["mp4","m4v"].map(r=>[r,I.MP4]),...["ogg","oga"].map(r=>[r,I.OGG]),...["pdf","ps"].map(r=>[r,I.PDF]),...["png"].map(r=>[r,I.PNG]),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map(r=>[r,I.POWERPOINT]),...["rar"].map(r=>[r,I.RAR]),...["stp"].map(r=>[r,I.STP]),...["txt","rtf","md","mdown"].map(r=>[r,I.TEXT]),...["webm","mkv","flv","vob","ogv","ogg","drc","mng","wmv","yuv","rm","rmvb","asf","mpg","mp2","mpeg","mpe","mpv","m2v","svi","3gp","3g2","mxf","roq","nsv"].map(r=>[r,I.VIDEO]),...["wav"].map(r=>[r,I.WAV]),...["wma"].map(r=>[r,I.WMA]),...["doc","dot","docx","docm","dotx","dotm","docb"].map(r=>[r,I.WORD]),...["xml","xsl","rdf"].map(r=>[r,I.XML]),...["yaml","yml","x-yaml"].map(r=>[r,I.YAML]),...["zip"].map(r=>[r,I.ZIP])]);var mO={[I.ABW]:"#91ABC6",[I.AUDIO]:"#1795E3",[I.AVI]:"#E63324",[I.CHM]:"#71C3EB",[I.CODE]:"#71C3EB",[I.CSV]:"#1F7345",[I.DITA]:"#71C3EB",[I.EPUB]:"#85B926",[I.EXCEL]:"#1F7345",[I.FLAC]:"#1795E3",[I.GIF]:"#59B031",[I.GZIP]:"#F8AB36",[I.HTML]:"#71C3EB",[I.IMAGE]:"#59B031",[I.JPEG]:"#59B031",[I.JSON]:"#71C3EB",[I.M4A]:"#1795E3",[I.MOV]:"#E63324",[I.MP3]:"#1795E3",[I.MP4]:"#E63324",[I.OGG]:"#1795E3",[I.PDF]:"#E44948",[I.PNG]:"#59B031",[I.POWERPOINT]:"#B54A2B",[I.RAR]:"#F8AB36",[I.STP]:"#3764B1",[I.TEXT]:"#3162AB",[I.UNKNOWN]:"#999999",[I.VIDEO]:"#E63324",[I.WAV]:"#1795E3",[I.WMA]:"#1795E3",[I.WORD]:"#3162AB",[I.XML]:"#71C3EB",[I.YAML]:"#71C3EB",[I.ZIP]:"#F8AB36"};var $t;(function(r){r.fluid_topics="fluid-topics",r.file_format="file-format",r.material="material"})($t||($t={}));var Ui=function(r,t,e,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,t,e,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(t,e,a):s(t,e))||a);return n>3&&a&&Object.defineProperty(t,e,a),a},Ot=class extends j{constructor(){super(...arguments),this.resolvedIcon=V}render(){let t=this.variant&&Object.values($t).includes(this.variant)?this.variant:$t.fluid_topics,e=t!==$t.material||!!this.value;return $`
642
643
  <i class="ft-icon ft-icon--${t}" part="icon icon-${t}">
643
- ${Pn(this.resolvedIcon)}
644
+ ${Dn(this.resolvedIcon)}
644
645
  <slot ?hidden=${e}></slot>
645
646
  </i>
646
- `}get textContent(){var t,e;return(e=(t=this.slottedContent)===null||t===void 0?void 0:t.assignedNodes().map(i=>i.textContent).join("").trim())!==null&&e!==void 0?e:""}update(t){super.update(t),["value","variant"].some(e=>t.has(e))&&this.resolveIcon()}resolveIcon(){var t,e;let i=this.value||this.textContent;switch(this.variant){case $t.file_format:this.resolvedIcon=(t=I[i.replace("-","_").toUpperCase()])!==null&&t!==void 0?t:i;break;case $t.material:this.resolvedIcon=this.value||H;break;default:this.resolvedIcon=(e=Er[i.replace("-","_").toUpperCase()])!==null&&e!==void 0?e:i;break}}firstUpdated(t){super.firstUpdated(t),setTimeout(()=>this.resolveIcon())}};Ot.elementDefinitions={};Ot.styles=Bd;Mi([g()],Ot.prototype,"variant",void 0);Mi([g()],Ot.prototype,"value",void 0);Mi([z()],Ot.prototype,"resolvedIcon",void 0);Mi([X("slot")],Ot.prototype,"slottedContent",void 0);G("ft-icon")(Ot);var wt={borderRadiusLeft:o.extend("--ft-switch-option-border-radius-left","",N.borderRadiusL),borderRadiusRight:o.extend("--ft-switch-option-border-radius-right","",N.borderRadiusL),borderWidthLeft:o.create("--ft-switch-option-border-width-left","","SIZE","1px"),borderWidthRight:o.create("--ft-switch-option-border-width-right","","SIZE","1px"),borderWidthVertical:o.create("--ft-switch-option-border-width-vertical","","SIZE","1px")},Zd=P`
647
+ `}get textContent(){var t,e;return(e=(t=this.slottedContent)===null||t===void 0?void 0:t.assignedNodes().map(i=>i.textContent).join("").trim())!==null&&e!==void 0?e:""}update(t){super.update(t),["value","variant"].some(e=>t.has(e))&&this.resolveIcon()}resolveIcon(){var t,e;let i=this.value||this.textContent;switch(this.variant){case $t.file_format:this.resolvedIcon=(t=I[i.replace("-","_").toUpperCase()])!==null&&t!==void 0?t:i;break;case $t.material:this.resolvedIcon=this.value||V;break;default:this.resolvedIcon=(e=Ar[i.replace("-","_").toUpperCase()])!==null&&e!==void 0?e:i;break}}firstUpdated(t){super.firstUpdated(t),setTimeout(()=>this.resolveIcon())}};Ot.elementDefinitions={};Ot.styles=Hd;Ui([g()],Ot.prototype,"variant",void 0);Ui([g()],Ot.prototype,"value",void 0);Ui([U()],Ot.prototype,"resolvedIcon",void 0);Ui([Q("slot")],Ot.prototype,"slottedContent",void 0);Z("ft-icon")(Ot);var Et={borderRadiusLeft:o.extend("--ft-switch-option-border-radius-left","",_.borderRadiusL),borderRadiusRight:o.extend("--ft-switch-option-border-radius-right","",_.borderRadiusL),borderWidthLeft:o.create("--ft-switch-option-border-width-left","","SIZE","1px"),borderWidthRight:o.create("--ft-switch-option-border-width-right","","SIZE","1px"),borderWidthVertical:o.create("--ft-switch-option-border-width-vertical","","SIZE","1px")},Jd=L`
647
648
  .ft-switch-option {
648
649
  position: relative;
649
650
  display: inline-block;
@@ -657,20 +658,20 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
657
658
  }
658
659
 
659
660
  .ft-switch-option--content {
660
- --ft-switch-option-internal-line-height: calc(${mt.fontSize} + 2px);
661
- --ft-switch-option-internal-content-height: max(var(--ft-switch-option-internal-line-height), ${mt.iconSize});
661
+ --ft-switch-option-internal-line-height: calc(${yt.fontSize} + 2px);
662
+ --ft-switch-option-internal-content-height: max(var(--ft-switch-option-internal-line-height), ${yt.iconSize});
662
663
 
663
664
  border-style: solid;
664
- border-color: ${mt.borderColor};
665
- border-width: ${wt.borderWidthVertical} ${wt.borderWidthRight} ${wt.borderWidthVertical} ${wt.borderWidthLeft};
666
- border-radius: ${wt.borderRadiusLeft} ${wt.borderRadiusRight} ${wt.borderRadiusRight} ${wt.borderRadiusLeft};
665
+ border-color: ${yt.borderColor};
666
+ border-width: ${Et.borderWidthVertical} ${Et.borderWidthRight} ${Et.borderWidthVertical} ${Et.borderWidthLeft};
667
+ border-radius: ${Et.borderRadiusLeft} ${Et.borderRadiusRight} ${Et.borderRadiusRight} ${Et.borderRadiusLeft};
667
668
  display: flex;
668
669
  align-items: center;
669
670
  justify-content: center;
670
671
  overflow: hidden;
671
- ${x(Ct.size,mt.iconSize)};
672
+ ${x(Ct.size,yt.iconSize)};
672
673
  padding: var(--ft-switch-internal-vertical-padding, 6px) var(--ft-switch-internal-horizontal-padding, 8px);
673
- background-color: ${mt.backgroundColor};
674
+ background-color: ${yt.backgroundColor};
674
675
  -webkit-mask-image: radial-gradient(white, black);
675
676
  }
676
677
 
@@ -679,32 +680,32 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
679
680
  }
680
681
 
681
682
  .ft-switch-option--selected .ft-switch-option--content:before {
682
- background-color: ${mt.selectedBackgroundColor};
683
- border-radius: ${wt.borderRadiusLeft} ${wt.borderRadiusRight} ${wt.borderRadiusRight} ${wt.borderRadiusLeft};
683
+ background-color: ${yt.selectedBackgroundColor};
684
+ border-radius: ${Et.borderRadiusLeft} ${Et.borderRadiusRight} ${Et.borderRadiusRight} ${Et.borderRadiusLeft};
684
685
  position: absolute;
685
686
  inset: 0;
686
687
  content: "";
687
688
  z-index: 1;
688
- opacity: ${N.opacityPrimaryOnSurfaceSelected};
689
+ opacity: ${_.opacityPrimaryOnSurfaceSelected};
689
690
  }
690
691
 
691
692
  .ft-switch-option--label {
692
- color: ${mt.textColor};
693
+ color: ${yt.textColor};
693
694
  overflow: hidden;
694
695
  white-space: nowrap;
695
696
  text-overflow: ellipsis;
696
697
  display: block;
697
698
  margin: 0 8px;
698
- ${x(Dt.fontSize,mt.fontSize)};
699
- ${x(Dt.lineHeight,"var(--ft-switch-option-internal-content-height)")}
699
+ ${x(Ft.fontSize,yt.fontSize)};
700
+ ${x(Ft.lineHeight,"var(--ft-switch-option-internal-content-height)")}
700
701
  }
701
702
 
702
703
  .ft-switch-option--selected .ft-switch-option--label {
703
- color: ${mt.selectedTextColor};
704
+ color: ${yt.selectedTextColor};
704
705
  }
705
706
 
706
707
  .ft-switch-option--focused {
707
- outline: 1px solid ${mt.outlineColor};
708
+ outline: 1px solid ${yt.outlineColor};
708
709
  }
709
710
 
710
711
  .ft-switch-option--label[hidden] {
@@ -712,7 +713,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
712
713
  }
713
714
 
714
715
  .ft-switch-option--ripple {
715
- ${x(R.color,mt.rippleColor)};
716
+ ${x(R.color,yt.rippleColor)};
716
717
  }
717
718
 
718
719
  ft-icon, ft-ripple, ft-typography {
@@ -725,20 +726,20 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
725
726
 
726
727
  ft-icon {
727
728
  flex-shrink: 0;
728
- color: ${mt.iconColor};
729
+ color: ${yt.iconColor};
729
730
  }
730
731
 
731
732
  .ft-switch-option--selected ft-icon {
732
- color: ${mt.selectedTextColor};
733
+ color: ${yt.selectedTextColor};
733
734
  }
734
- `;var oe=function(r,t,e,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,t,e,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(t,e,a):s(t,e))||a);return n>3&&a&&Object.defineProperty(t,e,a),a},Ls=class extends CustomEvent{constructor(t){super("option-change-by-user",{detail:t,bubbles:!0,composed:!0})}},ks=class extends CustomEvent{constructor(t){super("option-change",{detail:t,bubbles:!0,composed:!0})}},vt=class extends V{constructor(){super(...arguments),this.value="",this.label="",this.tooltipPosition="bottom",this.selected=!1,this.trailingIcon=!1,this.unselectable=!1,this.isFocused=!1}focus(){this.input.focus()}update(t){super.update(t),t.has("selected")&&this.dispatchEvent(new ks(this.selected))}render(){let t={"ft-switch-option":!0,"ft-switch-option--trailing-icon":this.trailingIcon,"ft-switch-option--selected":this.selected,"ft-switch-option--focused":this.isFocused};return this.addTooltip(L`
735
- <label part="label" for="input" class=${Lt(t)}
735
+ `;var oe=function(r,t,e,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,t,e,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(t,e,a):s(t,e))||a);return n>3&&a&&Object.defineProperty(t,e,a),a},Ds=class extends CustomEvent{constructor(t){super("option-change-by-user",{detail:t,bubbles:!0,composed:!0})}},Ms=class extends CustomEvent{constructor(t){super("option-change",{detail:t,bubbles:!0,composed:!0})}},St=class extends j{constructor(){super(...arguments),this.value="",this.label="",this.tooltipPosition="bottom",this.selected=!1,this.trailingIcon=!1,this.unselectable=!1,this.isFocused=!1}focus(){this.input.focus()}update(t){super.update(t),t.has("selected")&&this.dispatchEvent(new Ms(this.selected))}render(){let t={"ft-switch-option":!0,"ft-switch-option--trailing-icon":this.trailingIcon,"ft-switch-option--selected":this.selected,"ft-switch-option--focused":this.isFocused};return this.addTooltip($`
736
+ <label part="label" for="input" class=${Tt(t)}
736
737
  @click=${this.onChange}>
737
738
  <div class="ft-switch-option--content">
738
739
  <ft-ripple part="ripple" class="ft-switch-option--ripple"></ft-ripple>
739
740
  <ft-typography part="text"
740
741
  variant="button"
741
- class="ft-switch-option--label ${Uo?"ft-safari-ellipsis-fix":""}"
742
+ class="ft-switch-option--label ${Vo?"ft-safari-ellipsis-fix":""}"
742
743
  ?hidden=${!this.hasTextContent()}>
743
744
  <slot @slotchange=${this.onSlotchange}></slot>
744
745
  </ft-typography>
@@ -747,29 +748,29 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
747
748
  </label>
748
749
  <input id="input" type="radio" class="ft-switch-option--input"
749
750
  .checked=${this.selected}>
750
- `)}addTooltip(t){return this.hasTextContent()||this.getLabel().trim().length===0?t:L`
751
+ `)}addTooltip(t){return this.hasTextContent()||this.getLabel().trim().length===0?t:$`
751
752
  <ft-tooltip part="tooltip"
752
753
  text="${this.getLabel()}"
753
754
  position="${this.tooltipPosition}">
754
755
  ${t}
755
756
  </ft-tooltip>
756
- `}connectedCallback(){super.connectedCallback(),this.addEventListener("focusout",this.onFocusout)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("focusout",this.onFocusout)}onFocusout(t){this.isFocused=!1}onChange(){this.selected=this.unselectable?!this.selected:!0,this.dispatchEvent(new Ls(this.selected))}getLabel(){return this.label||this.textContent}resolveIcon(){return this.icon?L`
757
+ `}connectedCallback(){super.connectedCallback(),this.addEventListener("focusout",this.onFocusout)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("focusout",this.onFocusout)}onFocusout(t){this.isFocused=!1}onChange(){this.selected=this.unselectable?!this.selected:!0,this.dispatchEvent(new Ds(this.selected))}getLabel(){return this.label||this.textContent}resolveIcon(){return this.icon?$`
757
758
  <ft-icon part="icon" .variant=${this.iconVariant} .value=${this.icon}></ft-icon>
758
- `:H}get textContent(){var t,e;return(e=(t=this.slottedContent)===null||t===void 0?void 0:t.assignedNodes().map(i=>i.textContent).join("").trim())!==null&&e!==void 0?e:""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}};vt.elementDefinitions={"ft-ripple":et,"ft-typography":bt,"ft-tooltip":ft,"ft-icon":Ot};vt.styles=[vr,Zd];oe([g()],vt.prototype,"value",void 0);oe([g()],vt.prototype,"icon",void 0);oe([g()],vt.prototype,"iconVariant",void 0);oe([g()],vt.prototype,"label",void 0);oe([g()],vt.prototype,"tooltipPosition",void 0);oe([g({type:Boolean,reflect:!0})],vt.prototype,"selected",void 0);oe([g({type:Boolean})],vt.prototype,"trailingIcon",void 0);oe([g({type:Boolean})],vt.prototype,"unselectable",void 0);oe([X(".ft-switch-option--content slot")],vt.prototype,"slottedContent",void 0);oe([X(".ft-switch-option--input")],vt.prototype,"input",void 0);oe([z()],vt.prototype,"isFocused",void 0);var Ar=function(r,t,e,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,t,e,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(t,e,a):s(t,e))||a);return n>3&&a&&Object.defineProperty(t,e,a),a},Ds=class extends CustomEvent{constructor(t){super("change",{detail:t})}},Mt=class extends V{constructor(){super(...arguments),this.dense=!1,this.unselectable=!1,this.displayFocusWhenUsingKeyboard=!1,this.options=[]}get value(){var t;return(t=this.selectedOption)===null||t===void 0?void 0:t.value}update(t){super.update(t),t.has("selectedOption")&&this.updateOptions(),t.has("unselectable")&&this.options.forEach(e=>e.unselectable=this.unselectable)}render(){let t={"ft-switch":!0,"ft-switch--dense":this.dense};return L`
759
- <div @keydown=${this.onKeyDown} tabindex="-1" class="${Lt(t)}" role="radiogroup" aria-label=${this.label}>
759
+ `:V}get textContent(){var t,e;return(e=(t=this.slottedContent)===null||t===void 0?void 0:t.assignedNodes().map(i=>i.textContent).join("").trim())!==null&&e!==void 0?e:""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}};St.elementDefinitions={"ft-ripple":et,"ft-typography":xt,"ft-tooltip":ft,"ft-icon":Ot};St.styles=[xr,Jd];oe([g()],St.prototype,"value",void 0);oe([g()],St.prototype,"icon",void 0);oe([g()],St.prototype,"iconVariant",void 0);oe([g()],St.prototype,"label",void 0);oe([g()],St.prototype,"tooltipPosition",void 0);oe([g({type:Boolean,reflect:!0})],St.prototype,"selected",void 0);oe([g({type:Boolean})],St.prototype,"trailingIcon",void 0);oe([g({type:Boolean})],St.prototype,"unselectable",void 0);oe([Q(".ft-switch-option--content slot")],St.prototype,"slottedContent",void 0);oe([Q(".ft-switch-option--input")],St.prototype,"input",void 0);oe([U()],St.prototype,"isFocused",void 0);var Rr=function(r,t,e,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,t,e,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(t,e,a):s(t,e))||a);return n>3&&a&&Object.defineProperty(t,e,a),a},Fs=class extends CustomEvent{constructor(t){super("change",{detail:t})}},Bt=class extends j{constructor(){super(...arguments),this.dense=!1,this.unselectable=!1,this.displayFocusWhenUsingKeyboard=!1,this.options=[]}get value(){var t;return(t=this.selectedOption)===null||t===void 0?void 0:t.value}update(t){super.update(t),t.has("selectedOption")&&this.updateOptions(),t.has("unselectable")&&this.options.forEach(e=>e.unselectable=this.unselectable)}render(){let t={"ft-switch":!0,"ft-switch--dense":this.dense};return $`
760
+ <div @keydown=${this.onKeyDown} tabindex="-1" class="${Tt(t)}" role="radiogroup" aria-label=${this.label}>
760
761
  <slot @slotchange=${this.onSlotchange}
761
762
  @option-change=${this.onOptionChangeByScript}
762
763
  @option-change-by-user=${this.onOptionChangeByUser}
763
764
  ></slot>
764
765
  </div>
765
- `}onKeyDown(t){let e;(t.key=="ArrowDown"||t.key=="ArrowRight")&&(e=this.selectedOption?this.options.indexOf(this.selectedOption)+1:0),(t.key=="ArrowUp"||t.key=="ArrowLeft")&&(e=this.selectedOption?this.options.indexOf(this.selectedOption)-1:this.options.length-1),t.code=="Space"&&(e=this.options.indexOf(t.target)),e!=null&&(t.preventDefault(),this.options[this.fixIndex(e)].focus(),this.displayFocusWhenUsingKeyboard=!0,this.options[this.fixIndex(e)].selected=!0)}fixIndex(t){return t<0?this.options.length-1:t>this.options.length-1?0:t}onSlotchange(){var t;this.options=[],(t=this.slottedContent)===null||t===void 0||t.assignedElements().forEach(e=>{e instanceof vt&&this.registerOption(e)}),this.selectedOption=this.options.find(e=>e.selected)}registerOption(t){var e;(e=t.shadowRoot)===null||e===void 0||e.querySelectorAll("input").forEach(i=>{i.setAttribute("tabindex","-1")}),t.setAttribute("tabindex","0"),t.unselectable=this.unselectable,this.options.push(t)}onOptionChangeByScript(t){t.stopPropagation();let e=t.target;this.onOptionChange(e)}onOptionChangeByUser(t){var e;t.stopPropagation(),this.displayFocusWhenUsingKeyboard=!1,this.onOptionChange(t.target),this.dispatchEvent(new Ds((e=this.selectedOption)===null||e===void 0?void 0:e.value))}onOptionChange(t){t.selected?this.selectedOption=t:this.selectedOption=this.options.find(e=>e.selected)}private(t){t.selected?this.selectedOption=t:this.selectedOption=this.options.find(e=>e.selected)}focus(){this.ftSwitchDiv.focus()}updateOptions(){this.options.forEach(t=>{t.selected=t===this.selectedOption,this.displayFocusWhenUsingKeyboard&&(t.isFocused=t===this.selectedOption)})}};Mt.elementDefinitions={};Mt.styles=P`
766
+ `}onKeyDown(t){let e;(t.key=="ArrowDown"||t.key=="ArrowRight")&&(e=this.selectedOption?this.options.indexOf(this.selectedOption)+1:0),(t.key=="ArrowUp"||t.key=="ArrowLeft")&&(e=this.selectedOption?this.options.indexOf(this.selectedOption)-1:this.options.length-1),t.code=="Space"&&(e=this.options.indexOf(t.target)),e!=null&&(t.preventDefault(),this.options[this.fixIndex(e)].focus(),this.displayFocusWhenUsingKeyboard=!0,this.options[this.fixIndex(e)].selected=!0)}fixIndex(t){return t<0?this.options.length-1:t>this.options.length-1?0:t}onSlotchange(){var t;this.options=[],(t=this.slottedContent)===null||t===void 0||t.assignedElements().forEach(e=>{e instanceof St&&this.registerOption(e)}),this.selectedOption=this.options.find(e=>e.selected)}registerOption(t){var e;(e=t.shadowRoot)===null||e===void 0||e.querySelectorAll("input").forEach(i=>{i.setAttribute("tabindex","-1")}),t.setAttribute("tabindex","0"),t.unselectable=this.unselectable,this.options.push(t)}onOptionChangeByScript(t){t.stopPropagation();let e=t.target;this.onOptionChange(e)}onOptionChangeByUser(t){var e;t.stopPropagation(),this.displayFocusWhenUsingKeyboard=!1,this.onOptionChange(t.target),this.dispatchEvent(new Fs((e=this.selectedOption)===null||e===void 0?void 0:e.value))}onOptionChange(t){t.selected?this.selectedOption=t:this.selectedOption=this.options.find(e=>e.selected)}private(t){t.selected?this.selectedOption=t:this.selectedOption=this.options.find(e=>e.selected)}focus(){this.ftSwitchDiv.focus()}updateOptions(){this.options.forEach(t=>{t.selected=t===this.selectedOption,this.displayFocusWhenUsingKeyboard&&(t.isFocused=t===this.selectedOption)})}};Bt.elementDefinitions={};Bt.styles=L`
766
767
  :host {
767
768
  display: inline-block;
768
769
  }
769
770
 
770
771
  .ft-switch {
771
- border-radius: ${mt.borderRadius};
772
- outline-color: ${mt.outlineColor};
772
+ border-radius: ${yt.borderRadius};
773
+ outline-color: ${yt.outlineColor};
773
774
  }
774
775
 
775
776
  .ft-switch slot {
@@ -778,25 +779,25 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
778
779
  }
779
780
 
780
781
  .ft-switch slot::slotted(ft-switch-option) {
781
- ${x(wt.borderRadiusLeft,"0")};
782
- ${x(wt.borderRadiusRight,"0")};
783
- ${x(wt.borderWidthLeft,"0")};
782
+ ${x(Et.borderRadiusLeft,"0")};
783
+ ${x(Et.borderRadiusRight,"0")};
784
+ ${x(Et.borderWidthLeft,"0")};
784
785
  }
785
786
 
786
787
  .ft-switch slot::slotted(ft-switch-option:first-child) {
787
- ${x(wt.borderRadiusLeft,mt.borderRadius)};
788
- ${x(wt.borderWidthLeft,"1px")};
788
+ ${x(Et.borderRadiusLeft,yt.borderRadius)};
789
+ ${x(Et.borderWidthLeft,"1px")};
789
790
  }
790
791
 
791
792
  .ft-switch slot::slotted(ft-switch-option:last-child) {
792
- ${x(wt.borderRadiusRight,mt.borderRadius)};
793
+ ${x(Et.borderRadiusRight,yt.borderRadius)};
793
794
  }
794
795
 
795
796
  .ft-switch--dense slot::slotted(ft-switch-option) {
796
797
  --ft-switch-internal-vertical-padding: 2px;
797
798
  --ft-switch-internal-horizontal-padding: 4px;
798
799
  }
799
- `;Ar([g({type:Boolean})],Mt.prototype,"dense",void 0);Ar([g({type:Boolean})],Mt.prototype,"unselectable",void 0);Ar([g()],Mt.prototype,"label",void 0);Ar([X(".ft-switch slot")],Mt.prototype,"slottedContent",void 0);Ar([z()],Mt.prototype,"selectedOption",void 0);Ar([z()],Mt.prototype,"displayFocusWhenUsingKeyboard",void 0);Ar([X(".ft-switch")],Mt.prototype,"ftSwitchDiv",void 0);G("ft-switch")(Mt);G("ft-switch-option")(vt);var qd={colorOutline:o.external(N.colorOutline,"Design system"),colorOnSurfaceMedium:o.external(N.colorOnSurfaceMedium,"Design system")},Yd=P`
800
+ `;Rr([g({type:Boolean})],Bt.prototype,"dense",void 0);Rr([g({type:Boolean})],Bt.prototype,"unselectable",void 0);Rr([g()],Bt.prototype,"label",void 0);Rr([Q(".ft-switch slot")],Bt.prototype,"slottedContent",void 0);Rr([U()],Bt.prototype,"selectedOption",void 0);Rr([U()],Bt.prototype,"displayFocusWhenUsingKeyboard",void 0);Rr([Q(".ft-switch")],Bt.prototype,"ftSwitchDiv",void 0);Z("ft-switch")(Bt);Z("ft-switch-option")(St);var Qd={colorOutline:o.external(_.colorOutline,"Design system"),colorOnSurfaceMedium:o.external(_.colorOnSurfaceMedium,"Design system")},tp=L`
800
801
  :host {
801
802
  display: block;
802
803
  }
@@ -807,14 +808,14 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
807
808
 
808
809
  ft-icon {
809
810
  transform: rotate(-45deg);
810
- color: ${qd.colorOutline};
811
+ color: ${Qd.colorOutline};
811
812
  }
812
813
 
813
814
  .ft-resizer--dragging ft-icon,
814
815
  .ft-resizer:hover ft-icon {
815
- color: ${qd.colorOnSurfaceMedium};
816
+ color: ${Qd.colorOnSurfaceMedium};
816
817
  }
817
- `;var Xe=function(r,t,e,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,t,e,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(t,e,a):s(t,e))||a);return n>3&&a&&Object.defineProperty(t,e,a),a},Ms=class extends CustomEvent{constructor(t,e){super("resize",{detail:{width:t,height:e}})}},Pt=class extends V{constructor(){super(...arguments),this.initialWidth=0,this.initialHeight=0,this.icon="drag_handle",this.iconVariant=$t.material,this.cursor="nwse-resize",this.dragging=!1,this.fixedWidth=0,this.fixedHeight=0,this.startX=0,this.startY=0,this.doDragFromMouse=t=>this.doDrag(t.clientX,t.clientY),this.doDragFromTouch=t=>this.doDrag(t.touches[0].clientX,t.touches[0].clientY),this.stopDrag=()=>{this.dragging=!1,document.removeEventListener("mousemove",this.doDragFromMouse,!1),document.removeEventListener("mouseup",this.stopDrag,!1),document.removeEventListener("touchmove",this.doDragFromTouch,!1),document.removeEventListener("touchend",this.stopDrag,!1),document.removeEventListener("touchcancel",this.stopDrag,!1)}}render(){return L`
818
+ `;var Xe=function(r,t,e,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,t,e,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(t,e,a):s(t,e))||a);return n>3&&a&&Object.defineProperty(t,e,a),a},Bs=class extends CustomEvent{constructor(t,e){super("resize",{detail:{width:t,height:e}})}},Lt=class extends j{constructor(){super(...arguments),this.initialWidth=0,this.initialHeight=0,this.icon="drag_handle",this.iconVariant=$t.material,this.cursor="nwse-resize",this.dragging=!1,this.fixedWidth=0,this.fixedHeight=0,this.startX=0,this.startY=0,this.doDragFromMouse=t=>this.doDrag(t.clientX,t.clientY),this.doDragFromTouch=t=>this.doDrag(t.touches[0].clientX,t.touches[0].clientY),this.stopDrag=()=>{this.dragging=!1,document.removeEventListener("mousemove",this.doDragFromMouse,!1),document.removeEventListener("mouseup",this.stopDrag,!1),document.removeEventListener("touchmove",this.doDragFromTouch,!1),document.removeEventListener("touchend",this.stopDrag,!1),document.removeEventListener("touchcancel",this.stopDrag,!1)}}render(){return $`
818
819
  <style>
819
820
  .ft-resizer {
820
821
  cursor: ${ve(this.cursor)}
@@ -825,25 +826,25 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
825
826
  @touchstart=${this.initDragFromTouch}>
826
827
  <ft-icon .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon>
827
828
  </div>
828
- `}initDragFromMouse(t){this.initDrag(t.clientX,t.clientY)}initDragFromTouch(t){t.preventDefault(),t.stopPropagation(),this.initDrag(t.touches[0].clientX,t.touches[0].clientY)}initDrag(t,e){this.dragging=!0,this.startX=t,this.startY=e,this.fixedWidth=this.initialWidth,this.fixedHeight=this.initialHeight,this.installDocumentEventListeners()}installDocumentEventListeners(){document.addEventListener("mousemove",this.doDragFromMouse,!1),document.addEventListener("mouseup",this.stopDrag,!1),document.addEventListener("touchmove",this.doDragFromTouch,!1),document.addEventListener("touchend",this.stopDrag,!1),document.addEventListener("touchcancel",this.stopDrag,!1)}doDrag(t,e){let i=this.fixedWidth+t-this.startX,n=this.fixedHeight+e-this.startY;this.dispatchEvent(new Ms(i,n))}};Pt.elementDefinitions={"ft-icon":Ot};Pt.styles=[br,Yd];Xe([g({type:Number})],Pt.prototype,"initialWidth",void 0);Xe([g({type:Number})],Pt.prototype,"initialHeight",void 0);Xe([g()],Pt.prototype,"icon",void 0);Xe([g()],Pt.prototype,"iconVariant",void 0);Xe([g()],Pt.prototype,"cursor",void 0);Xe([z()],Pt.prototype,"dragging",void 0);Xe([Oe({passive:!0})],Pt.prototype,"initDragFromMouse",null);Xe([Oe({passive:!0})],Pt.prototype,"initDragFromTouch",null);G("ft-resizer")(Pt);var U={fontSize:o.create("--ft-input-label-font-size","","SIZE","14px"),raisedFontSize:o.create("--ft-input-label-raised-font-size","","SIZE","11px"),raisedZIndex:o.create("--ft-input-label-outlined-raised-z-index","","NUMBER","2"),verticalSpacing:o.create("--ft-input-label-vertical-spacing","","SIZE","4px"),horizontalSpacing:o.create("--ft-input-label-horizontal-spacing","","SIZE","12px"),labelMaxWidth:o.create("--ft-input-label-max-width","","SIZE","100%"),borderColor:o.extend("--ft-input-label-border-color","",N.colorOutline),textColor:o.extend("--ft-input-label-text-color","",N.colorOnSurfaceMedium),disabledTextColor:o.extend("--ft-input-label-disabled-text-color","",N.colorOnSurfaceDisabled),colorSurface:o.external(N.colorSurface,"Design system"),borderRadiusS:o.external(N.borderRadiusS,"Design system"),colorError:o.external(N.colorError,"Design system")},Xd=P`
829
+ `}initDragFromMouse(t){this.initDrag(t.clientX,t.clientY)}initDragFromTouch(t){t.preventDefault(),t.stopPropagation(),this.initDrag(t.touches[0].clientX,t.touches[0].clientY)}initDrag(t,e){this.dragging=!0,this.startX=t,this.startY=e,this.fixedWidth=this.initialWidth,this.fixedHeight=this.initialHeight,this.installDocumentEventListeners()}installDocumentEventListeners(){document.addEventListener("mousemove",this.doDragFromMouse,!1),document.addEventListener("mouseup",this.stopDrag,!1),document.addEventListener("touchmove",this.doDragFromTouch,!1),document.addEventListener("touchend",this.stopDrag,!1),document.addEventListener("touchcancel",this.stopDrag,!1)}doDrag(t,e){let i=this.fixedWidth+t-this.startX,n=this.fixedHeight+e-this.startY;this.dispatchEvent(new Bs(i,n))}};Lt.elementDefinitions={"ft-icon":Ot};Lt.styles=[vr,tp];Xe([g({type:Number})],Lt.prototype,"initialWidth",void 0);Xe([g({type:Number})],Lt.prototype,"initialHeight",void 0);Xe([g()],Lt.prototype,"icon",void 0);Xe([g()],Lt.prototype,"iconVariant",void 0);Xe([g()],Lt.prototype,"cursor",void 0);Xe([U()],Lt.prototype,"dragging",void 0);Xe([Oe({passive:!0})],Lt.prototype,"initDragFromMouse",null);Xe([Oe({passive:!0})],Lt.prototype,"initDragFromTouch",null);Z("ft-resizer")(Lt);var H={fontSize:o.create("--ft-input-label-font-size","","SIZE","14px"),raisedFontSize:o.create("--ft-input-label-raised-font-size","","SIZE","11px"),raisedZIndex:o.create("--ft-input-label-outlined-raised-z-index","","NUMBER","2"),verticalSpacing:o.create("--ft-input-label-vertical-spacing","","SIZE","4px"),horizontalSpacing:o.create("--ft-input-label-horizontal-spacing","","SIZE","12px"),labelMaxWidth:o.create("--ft-input-label-max-width","","SIZE","100%"),borderColor:o.extend("--ft-input-label-border-color","",_.colorOutline),textColor:o.extend("--ft-input-label-text-color","",_.colorOnSurfaceMedium),disabledTextColor:o.extend("--ft-input-label-disabled-text-color","",_.colorOnSurfaceDisabled),colorSurface:o.external(_.colorSurface,"Design system"),borderRadiusS:o.external(_.borderRadiusS,"Design system"),colorError:o.external(_.colorError,"Design system")},ep=L`
829
830
  .ft-input-label {
830
831
  position: absolute;
831
832
  inset: 0;
832
833
  display: flex;
833
- background-color: ${U.colorSurface};
834
- border-radius: ${U.borderRadiusS} ${U.borderRadiusS} 0 0;
834
+ background-color: ${H.colorSurface};
835
+ border-radius: ${H.borderRadiusS} ${H.borderRadiusS} 0 0;
835
836
  }
836
837
 
837
838
  .ft-input-label--outlined {
838
- border-radius: ${U.borderRadiusS};
839
+ border-radius: ${H.borderRadiusS};
839
840
  }
840
841
 
841
842
  .ft-input-label {
842
- border-color: ${U.borderColor};
843
+ border-color: ${H.borderColor};
843
844
  }
844
845
 
845
846
  .ft-input-label.ft-input-label--in-error {
846
- border-color: ${U.colorError}
847
+ border-color: ${H.colorError}
847
848
  }
848
849
 
849
850
  .ft-input-label:before,
@@ -856,7 +857,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
856
857
  }
857
858
 
858
859
  .ft-input-label:before {
859
- width: calc(${U.horizontalSpacing} - 4px);
860
+ width: calc(${H.horizontalSpacing} - 4px);
860
861
  flex-shrink: 0;
861
862
  }
862
863
 
@@ -872,20 +873,20 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
872
873
  border-bottom-width: 1px;
873
874
  border-bottom-style: solid;
874
875
  border-color: inherit;
875
- color: ${U.textColor};
876
+ color: ${H.textColor};
876
877
  transition: font-size 250ms, line-height 250ms, color 250ms;
877
- max-width: calc(${U.labelMaxWidth} - 2 * (${U.horizontalSpacing} - 4px)); /* -2px on spacing for label padding */
878
+ max-width: calc(${H.labelMaxWidth} - 2 * (${H.horizontalSpacing} - 4px)); /* -2px on spacing for label padding */
878
879
  text-overflow: ellipsis;
879
- ${x(re.fontSize,U.fontSize)};
880
- ${x(re.lineHeight,U.fontSize)};
880
+ ${x(re.fontSize,H.fontSize)};
881
+ ${x(re.lineHeight,H.fontSize)};
881
882
  }
882
883
 
883
884
  .ft-input-label--in-error .ft-input-label--text {
884
- color: ${U.colorError}
885
+ color: ${H.colorError}
885
886
  }
886
887
 
887
888
  .ft-input-label--disabled .ft-input-label--text {
888
- color: ${U.disabledTextColor};
889
+ color: ${H.disabledTextColor};
889
890
  }
890
891
 
891
892
  .ft-input-label--hidden-text {
@@ -902,19 +903,19 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
902
903
  overflow: hidden;
903
904
  white-space: nowrap;
904
905
  text-overflow: ellipsis;
905
- padding: ${U.verticalSpacing} 4px;
906
- margin: calc(${U.verticalSpacing} * -1) 0;
906
+ padding: ${H.verticalSpacing} 4px;
907
+ margin: calc(${H.verticalSpacing} * -1) 0;
907
908
  max-width: 100%;
908
909
  box-sizing: border-box;
909
910
  }
910
911
 
911
912
  .ft-input-label--raised .ft-input-label--text {
912
- ${x(re.fontSize,U.raisedFontSize)};
913
- ${x(re.lineHeight,U.raisedFontSize)};
913
+ ${x(re.fontSize,H.raisedFontSize)};
914
+ ${x(re.lineHeight,H.raisedFontSize)};
914
915
  }
915
916
 
916
917
  .ft-input-label--raised .ft-input-label--floating-text {
917
- top: ${U.verticalSpacing};
918
+ top: ${H.verticalSpacing};
918
919
  }
919
920
 
920
921
  .ft-input-label--outlined .ft-input-label--text,
@@ -927,36 +928,36 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
927
928
  .ft-input-label--outlined:before {
928
929
  border-left-width: 1px;
929
930
  border-left-style: solid;
930
- border-radius: ${U.borderRadiusS} 0 0 ${U.borderRadiusS};
931
+ border-radius: ${H.borderRadiusS} 0 0 ${H.borderRadiusS};
931
932
  }
932
933
 
933
934
  .ft-input-label--outlined:after {
934
935
  border-right-width: 1px;
935
936
  border-right-style: solid;
936
- border-radius: 0 ${U.borderRadiusS} ${U.borderRadiusS} 0;
937
+ border-radius: 0 ${H.borderRadiusS} ${H.borderRadiusS} 0;
937
938
  }
938
939
 
939
940
  .ft-input-label--outlined.ft-input-label--raised .ft-input-label--floating-text {
940
941
  padding: 2px 4px;
941
- z-index: ${U.raisedZIndex};
942
- background-color: ${U.colorSurface};
943
- border-radius: ${U.borderRadiusS};
942
+ z-index: ${H.raisedZIndex};
943
+ background-color: ${H.colorSurface};
944
+ border-radius: ${H.borderRadiusS};
944
945
  top: calc((var(--ft-typography-caption-line-height) / -2) + 2px);
945
946
  }
946
947
 
947
948
  .ft-input-label--outlined.ft-input-label--raised .ft-input-label--text {
948
949
  border-top: none;
949
950
  }
950
- `;var Wo=function(r,t,e,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,t,e,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(t,e,a):s(t,e))||a);return n>3&&a&&Object.defineProperty(t,e,a),a},Bt=class extends V{constructor(){super(...arguments),this.text="",this.raised=!1,this.outlined=!1,this.disabled=!1,this.error=!1}render(){let t={"ft-input-label":!0,"ft-input-label--raised":this.raised,"ft-input-label--outlined":this.outlined,"ft-input-label--disabled":this.disabled,"ft-input-label--in-error":this.error};return L`
951
- <div class="${Lt(t)}">
952
- ${this.text?L`
951
+ `;var jo=function(r,t,e,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,t,e,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(t,e,a):s(t,e))||a);return n>3&&a&&Object.defineProperty(t,e,a),a},Ut=class extends j{constructor(){super(...arguments),this.text="",this.raised=!1,this.outlined=!1,this.disabled=!1,this.error=!1}render(){let t={"ft-input-label":!0,"ft-input-label--raised":this.raised,"ft-input-label--outlined":this.outlined,"ft-input-label--disabled":this.disabled,"ft-input-label--in-error":this.error};return $`
952
+ <div class="${Tt(t)}">
953
+ ${this.text?$`
953
954
  <div class="ft-input-label--text ft-typography--caption">
954
955
  <span class="ft-input-label--floating-text">${this.text}</span>
955
956
  <span class="ft-input-label--hidden-text" aria-hidden="true">${this.text}</span>
956
957
  </div>
957
958
  `:null}
958
959
  </div>
959
- `}};Bt.elementDefinitions={};Bt.styles=[Di,Xd];Wo([g({type:String})],Bt.prototype,"text",void 0);Wo([g({type:Boolean})],Bt.prototype,"raised",void 0);Wo([g({type:Boolean})],Bt.prototype,"outlined",void 0);Wo([g({type:Boolean})],Bt.prototype,"disabled",void 0);Wo([g({type:Boolean})],Bt.prototype,"error",void 0);G("ft-input-label")(Bt);var ot={fontSize:o.create("--ft-text-area-font-size","","SIZE","14px"),labelSize:o.create("--ft-text-area-label-size","","SIZE","11px"),verticalSpacing:o.create("--ft-text-area-vertical-spacing","","SIZE","4px"),horizontalSpacing:o.create("--ft-text-area-horizontal-spacing","","SIZE","16px"),helperColor:o.extend("--ft-text-area-helper-color","",N.colorOnSurfaceMedium),colorPrimary:o.external(N.colorPrimary,"Design system"),colorOnSurface:o.external(N.colorOnSurface,"Design system"),colorOnSurfaceDisabled:o.external(N.colorOnSurfaceDisabled,"Design system"),borderRadiusS:o.external(N.borderRadiusS,"Design system"),colorError:o.external(N.colorError,"Design system")},Jd=P`
960
+ `}};Ut.elementDefinitions={};Ut.styles=[Bi,ep];jo([g({type:String})],Ut.prototype,"text",void 0);jo([g({type:Boolean})],Ut.prototype,"raised",void 0);jo([g({type:Boolean})],Ut.prototype,"outlined",void 0);jo([g({type:Boolean})],Ut.prototype,"disabled",void 0);jo([g({type:Boolean})],Ut.prototype,"error",void 0);Z("ft-input-label")(Ut);var it={fontSize:o.create("--ft-text-area-font-size","","SIZE","14px"),labelSize:o.create("--ft-text-area-label-size","","SIZE","11px"),verticalSpacing:o.create("--ft-text-area-vertical-spacing","","SIZE","4px"),horizontalSpacing:o.create("--ft-text-area-horizontal-spacing","","SIZE","16px"),helperColor:o.extend("--ft-text-area-helper-color","",_.colorOnSurfaceMedium),colorPrimary:o.external(_.colorPrimary,"Design system"),colorOnSurface:o.external(_.colorOnSurface,"Design system"),colorOnSurfaceDisabled:o.external(_.colorOnSurfaceDisabled,"Design system"),borderRadiusS:o.external(_.borderRadiusS,"Design system"),colorError:o.external(_.colorError,"Design system")},rp=L`
960
961
  *:focus {
961
962
  outline: none;
962
963
  }
@@ -968,10 +969,10 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
968
969
  }
969
970
 
970
971
  ft-input-label {
971
- ${x(U.fontSize,ot.fontSize)};
972
- ${x(U.raisedFontSize,ot.labelSize)};
973
- ${x(U.verticalSpacing,ot.verticalSpacing)};
974
- ${x(U.horizontalSpacing,ot.horizontalSpacing)};
972
+ ${x(H.fontSize,it.fontSize)};
973
+ ${x(H.raisedFontSize,it.labelSize)};
974
+ ${x(H.verticalSpacing,it.verticalSpacing)};
975
+ ${x(H.horizontalSpacing,it.horizontalSpacing)};
975
976
  }
976
977
 
977
978
  .ft-text-area--main-panel {
@@ -1002,12 +1003,12 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
1002
1003
  align-self: stretch;
1003
1004
  resize: none;
1004
1005
 
1005
- ${x(Xt.fontSize,ot.fontSize)};
1006
- ${x(Xt.lineHeight,ot.fontSize)};
1007
- color: ${ot.colorOnSurface};
1006
+ ${x(Xt.fontSize,it.fontSize)};
1007
+ ${x(Xt.lineHeight,it.fontSize)};
1008
+ color: ${it.colorOnSurface};
1008
1009
 
1009
- padding: 0 ${ot.horizontalSpacing};
1010
- margin: calc(${ot.verticalSpacing} + ${ot.labelSize} / 2) 0 ${ot.verticalSpacing} 0;
1010
+ padding: 0 ${it.horizontalSpacing};
1011
+ margin: calc(${it.verticalSpacing} + ${it.labelSize} / 2) 0 ${it.verticalSpacing} 0;
1011
1012
 
1012
1013
  border: none;
1013
1014
  background: none;
@@ -1016,7 +1017,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
1016
1017
  }
1017
1018
 
1018
1019
  .ft-text-area--disabled .ft-text-area--input {
1019
- color: ${ot.colorOnSurfaceDisabled};
1020
+ color: ${it.colorOnSurfaceDisabled};
1020
1021
  }
1021
1022
 
1022
1023
  .ft-text-area:not(.ft-text-area--disabled) .ft-text-area--input-panel {
@@ -1024,49 +1025,49 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
1024
1025
  }
1025
1026
 
1026
1027
  .ft-text-area:not(.ft-text-area--disabled):focus-within ft-input-label {
1027
- ${x(U.borderColor,ot.colorPrimary)};
1028
- ${x(U.textColor,ot.colorPrimary)};
1028
+ ${x(H.borderColor,it.colorPrimary)};
1029
+ ${x(H.textColor,it.colorPrimary)};
1029
1030
  }
1030
1031
 
1031
1032
  .ft-text-area--filled .ft-text-area--input-panel {
1032
- border-radius: ${ot.borderRadiusS} ${ot.borderRadiusS} 0 0;
1033
+ border-radius: ${it.borderRadiusS} ${it.borderRadiusS} 0 0;
1033
1034
  }
1034
1035
 
1035
1036
  .ft-text-area--filled:not(.ft-text-area--no-label) .ft-text-area--input {
1036
1037
  align-self: stretch;
1037
- margin-bottom: ${ot.verticalSpacing};
1038
- margin-top: calc(${ot.labelSize} + 2 * ${ot.verticalSpacing});
1038
+ margin-bottom: ${it.verticalSpacing};
1039
+ margin-top: calc(${it.labelSize} + 2 * ${it.verticalSpacing});
1039
1040
  }
1040
1041
 
1041
1042
  .ft-text-area--outlined .ft-text-area--input-panel {
1042
- border-radius: ${ot.borderRadiusS};
1043
+ border-radius: ${it.borderRadiusS};
1043
1044
  }
1044
1045
 
1045
1046
  .ft-text-area--helper-text {
1046
- padding: 0 12px 0 ${ot.horizontalSpacing};
1047
- color: ${ot.helperColor};
1047
+ padding: 0 12px 0 ${it.horizontalSpacing};
1048
+ color: ${it.helperColor};
1048
1049
  }
1049
1050
 
1050
1051
  .ft-text-area--in-error .ft-text-area--input,
1051
1052
  .ft-text-area--in-error .ft-text-area--helper-text {
1052
- color: ${ot.colorError};
1053
+ color: ${it.colorError};
1053
1054
  }
1054
1055
 
1055
1056
  ft-resizer {
1056
1057
  position: absolute;
1057
1058
  bottom: 0;
1058
1059
  }
1059
- `;var $e=function(r,t,e,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,t,e,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(t,e,a):s(t,e))||a);return n>3&&a&&Object.defineProperty(t,e,a),a},_t=class extends wr(V,"textbox"){constructor(){super(...arguments),this.label="",this.value="",this.helper="",this.outlined=!1,this.disabled=!1,this.error=!1,this.height=50,this.focused=!1}render(){let t={"ft-text-area":!0,"ft-text-area--filled":!this.outlined,"ft-text-area--outlined":this.outlined,"ft-text-area--disabled":this.disabled,"ft-text-area--has-value":!!this.value,"ft-text-area--no-label":!this.label,"ft-text-area--in-error":this.error};return L`
1060
+ `;var Pe=function(r,t,e,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,t,e,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(t,e,a):s(t,e))||a);return n>3&&a&&Object.defineProperty(t,e,a),a},_t=class extends wr(j,"textbox"){constructor(){super(...arguments),this.label="",this.value="",this.helper="",this.outlined=!1,this.disabled=!1,this.error=!1,this.height=50,this.focused=!1}render(){let t={"ft-text-area":!0,"ft-text-area--filled":!this.outlined,"ft-text-area--outlined":this.outlined,"ft-text-area--disabled":this.disabled,"ft-text-area--has-value":!!this.value,"ft-text-area--no-label":!this.label,"ft-text-area--in-error":this.error};return $`
1060
1061
  <style>
1061
1062
  .ft-text-area--main-panel {
1062
- height: calc(4 * ${ot.verticalSpacing} + ${ot.labelSize} + ${ot.fontSize} + ${this.height}px);
1063
+ height: calc(4 * ${it.verticalSpacing} + ${it.labelSize} + ${it.fontSize} + ${this.height}px);
1063
1064
  }
1064
1065
 
1065
1066
  ft-resizer {
1066
1067
  right: ${this.textarea!=null?this.textarea.offsetWidth-this.textarea.clientWidth:0}px;
1067
1068
  }
1068
1069
  </style>
1069
- <div class="${Lt(t)}">
1070
+ <div class="${Tt(t)}">
1070
1071
  <div class="ft-text-area--main-panel">
1071
1072
  <ft-input-label text="${this.label}"
1072
1073
  ?disabled=${this.disabled}
@@ -1076,7 +1077,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
1076
1077
  ></ft-input-label>
1077
1078
  <div class="ft-text-area--input-panel"
1078
1079
  aria-label="${this.label}">
1079
- ${this.outlined?null:L`
1080
+ ${this.outlined?null:$`
1080
1081
  <ft-ripple ?disabled=${this.disabled} activated></ft-ripple>
1081
1082
  `}
1082
1083
  <textarea class="ft-typography--body1 ft-text-area--input"
@@ -1093,45 +1094,56 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
1093
1094
  initialHeight="${this.height}"
1094
1095
  cursor="ns-resize"></ft-resizer>
1095
1096
  </div>
1096
- ${this.helper?L`
1097
+ ${this.helper?$`
1097
1098
  <ft-typography class="ft-text-area--helper-text" variant="caption">
1098
1099
  ${this.helper}
1099
1100
  </ft-typography>`:void 0}
1100
1101
  </div>
1101
- `}setValue(t,e=!1){this.value=t,this.setFormValue(t),e&&(this.dispatchEvent(new CustomEvent("live-change",{detail:this.value})),this.dispatchEvent(new CustomEvent("change",{detail:this.value})))}onKeyDown(t){(t.key==="Enter"||t.key===" ")&&t.stopPropagation()}updateValueFromInputField(){this.dispatchEvent(new CustomEvent("change",{detail:this.value}))}liveUpdateValueFromInputField(){var t;this.value=((t=this.textarea)===null||t===void 0?void 0:t.value)||"",this.setFormValue(this.value),this.dispatchEvent(new CustomEvent("live-change",{detail:this.value}))}onResize(t){t.detail.height>=50&&(this.height=t.detail.height)}};_t.elementDefinitions={"ft-input-label":Bt,"ft-resizer":Pt,"ft-ripple":et,"ft-typography":bt};_t.styles=[Jr,Jd];$e([g({type:String})],_t.prototype,"label",void 0);$e([g({reflect:!0})],_t.prototype,"value",void 0);$e([g({type:String})],_t.prototype,"helper",void 0);$e([g({type:Boolean})],_t.prototype,"outlined",void 0);$e([g({type:Boolean})],_t.prototype,"disabled",void 0);$e([g({type:Boolean})],_t.prototype,"error",void 0);$e([g({type:Number,reflect:!0})],_t.prototype,"height",void 0);$e([X("textarea")],_t.prototype,"textarea",void 0);$e([z()],_t.prototype,"focused",void 0);G("ft-text-area")(_t);var Rr=class extends V{render(){return L`
1102
+ `}setValue(t,e=!1){this.value=t,this.setFormValue(t),e&&(this.dispatchEvent(new CustomEvent("live-change",{detail:this.value})),this.dispatchEvent(new CustomEvent("change",{detail:this.value})))}onKeyDown(t){(t.key==="Enter"||t.key===" ")&&t.stopPropagation()}updateValueFromInputField(){this.dispatchEvent(new CustomEvent("change",{detail:this.value}))}liveUpdateValueFromInputField(){var t;this.value=((t=this.textarea)===null||t===void 0?void 0:t.value)||"",this.setFormValue(this.value),this.dispatchEvent(new CustomEvent("live-change",{detail:this.value}))}onResize(t){t.detail.height>=50&&(this.height=t.detail.height)}};_t.elementDefinitions={"ft-input-label":Ut,"ft-resizer":Lt,"ft-ripple":et,"ft-typography":xt};_t.styles=[Qr,rp];Pe([g({type:String})],_t.prototype,"label",void 0);Pe([g({reflect:!0})],_t.prototype,"value",void 0);Pe([g({type:String})],_t.prototype,"helper",void 0);Pe([g({type:Boolean})],_t.prototype,"outlined",void 0);Pe([g({type:Boolean})],_t.prototype,"disabled",void 0);Pe([g({type:Boolean})],_t.prototype,"error",void 0);Pe([g({type:Number,reflect:!0})],_t.prototype,"height",void 0);Pe([Q("textarea")],_t.prototype,"textarea",void 0);Pe([U()],_t.prototype,"focused",void 0);Z("ft-text-area")(_t);var _r=class extends j{render(){return $`
1102
1103
  <div class="ft-loader">
1103
1104
  <div></div>
1104
1105
  <div></div>
1105
1106
  <div></div>
1106
1107
  <div></div>
1107
1108
  </div>
1108
- `}};Rr.styles=Md;G("ft-loader")(Rr);var zt=function(r,t,e,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,t,e,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(t,e,a):s(t,e))||a);return n>3&&a&&Object.defineProperty(t,e,a),a},xt=class extends wr(V,"button"){get buttonClasses(){return{}}get typographyVariant(){return""}constructor(){super(),this.role="button",this.type="button",this.disabled=!1,this.label="",this.icon=void 0,this.trailingIcon=!1,this.loading=!1,this.ariaLabel=null,this.tooltipPosition="bottom",this.hideTooltip=!1,this.forceTooltip=!1,this.addEventListener("click",t=>{var e;this.isDisabled()?(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation()):this.type=="submit"&&((e=this.form)===null||e===void 0||e.requestSubmit())})}render(){var t;return this.addTooltipIfNeeded(L`
1109
+ `}};_r.styles=Wd;Z("ft-loader")(_r);var kt=function(r,t,e,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,t,e,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(t,e,a):s(t,e))||a);return n>3&&a&&Object.defineProperty(t,e,a),a},mt=class extends wr(j,"button"){get buttonClasses(){return{}}get typographyVariant(){return""}constructor(){super(),this.href=void 0,this.target=void 0,this.role="button",this.type="button",this.disabled=!1,this.label="",this.icon=void 0,this.trailingIcon=!1,this.loading=!1,this.ariaLabel=null,this.tooltipPosition="bottom",this.hideTooltip=!1,this.forceTooltip=!1,this.addEventListener("click",t=>{var e;this.isDisabled()?(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation()):this.type=="submit"&&((e=this.form)===null||e===void 0||e.requestSubmit())})}render(){var t,e,i;let n=$`
1110
+ <ft-ripple part="ripple" ?disabled=${this.isDisabled()}></ft-ripple>
1111
+ <ft-typography part="label"
1112
+ variant=${this.typographyVariant}
1113
+ element="span"
1114
+ class="ft-button--label ${Vo?"ft-safari-ellipsis-fix":""}"
1115
+ ?hidden=${!this.hasTextContent()}>
1116
+ <slot @slotchange=${this.onSlotchange}></slot>
1117
+ </ft-typography>
1118
+ ${this.resolveIcon()}
1119
+ `,a=this.href!=null&&this.href.trim().length>0?this.href:void 0;return this.addTooltipIfNeeded(a?$`
1120
+ <a href="${a}"
1121
+ target="${(t=this.target)!==null&&t!==void 0?t:"_self"}"
1122
+ part="button"
1123
+ class="${Tt(this.buttonClasses)}"
1124
+ aria-label="${(e=this.ariaLabel)!==null&&e!==void 0?e:this.getLabel()}"
1125
+ ?disabled=${this.isDisabled()}>
1126
+ ${n}
1127
+ </a>
1128
+ `:$`
1109
1129
  <button part="button"
1110
- class="${Lt(this.buttonClasses)}"
1111
- aria-label="${(t=this.ariaLabel)!==null&&t!==void 0?t:this.getLabel()}"
1130
+ class="${Tt(this.buttonClasses)}"
1131
+ aria-label="${(i=this.ariaLabel)!==null&&i!==void 0?i:this.getLabel()}"
1112
1132
  ?disabled=${this.isDisabled()}>
1113
- <ft-ripple part="ripple" ?disabled=${this.isDisabled()}></ft-ripple>
1114
- <ft-typography part="label"
1115
- variant=${this.typographyVariant}
1116
- element="span"
1117
- class="ft-button--label ${Uo?"ft-safari-ellipsis-fix":""}"
1118
- ?hidden=${!this.hasTextContent()}>
1119
- <slot @slotchange=${this.onSlotchange}></slot>
1120
- </ft-typography>
1121
- ${this.resolveIcon()}
1133
+ ${n}
1122
1134
  </button>
1123
- `)}addTooltipIfNeeded(t){return this.getLabel().trim().length>0&&(this.forceTooltip||!this.hasTextContent()&&!this.hideTooltip)?L`
1135
+ `)}addTooltipIfNeeded(t){return this.getLabel().trim().length>0&&(this.forceTooltip||!this.hasTextContent()&&!this.hideTooltip)?$`
1124
1136
  <ft-tooltip part="tooltip"
1125
1137
  text="${this.getLabel()}"
1126
1138
  position="${this.tooltipPosition}">
1127
1139
  ${t}
1128
1140
  </ft-tooltip>
1129
- `:t}resolveIcon(){return this.loading?L`
1130
- <ft-loader part="loader icon"></ft-loader> `:this.icon?L`
1141
+ `:t}resolveIcon(){return this.loading?$`
1142
+ <ft-loader part="loader icon"></ft-loader> `:this.icon?$`
1131
1143
  <ft-icon part="icon" .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon>
1132
- `:L`
1144
+ `:$`
1133
1145
  <slot part="icon" name="icon"></slot>
1134
- `}focus(){var t;(t=this.button)===null||t===void 0||t.focus()}getLabel(){return this.label||this.textContent}get textContent(){return yi(this.slottedContent).trim()}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}};xt.elementDefinitions={"ft-ripple":et,"ft-tooltip":ft,"ft-typography":bt,"ft-icon":Ot,"ft-loader":Rr};zt([g({type:String,reflect:!0})],xt.prototype,"role",void 0);zt([g()],xt.prototype,"type",void 0);zt([g({type:Boolean})],xt.prototype,"disabled",void 0);zt([g()],xt.prototype,"label",void 0);zt([g()],xt.prototype,"icon",void 0);zt([g()],xt.prototype,"iconVariant",void 0);zt([g({type:Boolean})],xt.prototype,"trailingIcon",void 0);zt([g({type:Boolean})],xt.prototype,"loading",void 0);zt([g({attribute:"aria-label"})],xt.prototype,"ariaLabel",void 0);zt([g()],xt.prototype,"tooltipPosition",void 0);zt([g({type:Boolean})],xt.prototype,"hideTooltip",void 0);zt([g({type:Boolean})],xt.prototype,"forceTooltip",void 0);zt([X(".ft-button")],xt.prototype,"button",void 0);zt([X(".ft-button--label slot")],xt.prototype,"slottedContent",void 0);var Bi=function(r,t,e,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,t,e,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(t,e,a):s(t,e))||a);return n>3&&a&&Object.defineProperty(t,e,a),a},ie=class extends xt{constructor(){super(...arguments),this.primary=!1,this.outlined=!1,this.dense=!1,this.round=!1}get buttonClasses(){return{"ft-button":!0,"ft-button--primary":this.primary,"ft-button--outlined":this.outlined,"ft-button--dense":this.dense,"ft-button--round":this.round,"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0}}get typographyVariant(){return"button"}};ie.styles=[vr,Wd];Bi([g({type:Boolean})],ie.prototype,"primary",void 0);Bi([g({type:Boolean})],ie.prototype,"outlined",void 0);Bi([g({type:Boolean})],ie.prototype,"dense",void 0);Bi([g({type:Boolean})],ie.prototype,"round",void 0);var Qd=[P`
1146
+ `}focus(){var t;(t=this.button)===null||t===void 0||t.focus()}click(){var t;(t=this.button)===null||t===void 0||t.click()}getLabel(){return this.label||this.textContent}get textContent(){return xi(this.slottedContent).trim()}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}};mt.elementDefinitions={"ft-ripple":et,"ft-tooltip":ft,"ft-typography":xt,"ft-icon":Ot,"ft-loader":_r};kt([g()],mt.prototype,"href",void 0);kt([g()],mt.prototype,"target",void 0);kt([g({type:String,reflect:!0})],mt.prototype,"role",void 0);kt([g()],mt.prototype,"type",void 0);kt([g({type:Boolean})],mt.prototype,"disabled",void 0);kt([g()],mt.prototype,"label",void 0);kt([g()],mt.prototype,"icon",void 0);kt([g()],mt.prototype,"iconVariant",void 0);kt([g({type:Boolean})],mt.prototype,"trailingIcon",void 0);kt([g({type:Boolean})],mt.prototype,"loading",void 0);kt([g({attribute:"aria-label"})],mt.prototype,"ariaLabel",void 0);kt([g()],mt.prototype,"tooltipPosition",void 0);kt([g({type:Boolean})],mt.prototype,"hideTooltip",void 0);kt([g({type:Boolean})],mt.prototype,"forceTooltip",void 0);kt([Q(".ft-button")],mt.prototype,"button",void 0);kt([Q(".ft-button--label slot")],mt.prototype,"slottedContent",void 0);var Wi=function(r,t,e,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,t,e,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(t,e,a):s(t,e))||a);return n>3&&a&&Object.defineProperty(t,e,a),a},ie=class extends mt{constructor(){super(...arguments),this.primary=!1,this.outlined=!1,this.dense=!1,this.round=!1}get buttonClasses(){return{"ft-button":!0,"ft-button--primary":this.primary,"ft-button--outlined":this.outlined,"ft-button--dense":this.dense,"ft-button--round":this.round,"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0}}get typographyVariant(){return"button"}};ie.styles=[xr,jd];Wi([g({type:Boolean})],ie.prototype,"primary",void 0);Wi([g({type:Boolean})],ie.prototype,"outlined",void 0);Wi([g({type:Boolean})],ie.prototype,"dense",void 0);Wi([g({type:Boolean})],ie.prototype,"round",void 0);var op=[L`
1135
1147
  :host {
1136
1148
  display: inline-block;
1137
1149
  max-width: 100%;
@@ -1140,22 +1152,23 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
1140
1152
 
1141
1153
  /** Remove default button styles **/
1142
1154
 
1143
- button {
1155
+ .ft-button {
1144
1156
  box-shadow: 0 0 0 transparent;
1145
1157
  border: 0 solid transparent;
1146
1158
  text-shadow: 0 0 0 transparent;
1159
+ text-decoration: none;
1147
1160
  }
1148
1161
 
1149
- button:hover {
1162
+ .ft-button:hover {
1150
1163
  box-shadow: 0 0 0 transparent;
1151
1164
  text-shadow: 0 0 0 transparent;
1152
1165
  }
1153
1166
 
1154
- button:active {
1167
+ .ft-button:active {
1155
1168
  outline: none;
1156
1169
  }
1157
1170
 
1158
- button:focus {
1171
+ .ft-button:focus {
1159
1172
  outline: 0;
1160
1173
  }
1161
1174
 
@@ -1596,15 +1609,15 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
1596
1609
  .ftds--size-small.ft-button--icon-only {
1597
1610
  width: ${b.smallIconOnlyWidth};
1598
1611
  }
1599
- `,br];var Fi=function(r,t,e,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,t,e,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(t,e,a):s(t,e))||a);return n>3&&a&&Object.defineProperty(t,e,a),a},Pe=class extends Ci(xt){constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.tertiary=!1,this.round=!1,this.family=hr.brand,this.iconVariant=$t.fluid_topics}get buttonClasses(){return{"ft-button":!0,"ft-button--primary":this.primary,"ft-button--secondary":this.secondary,"ft-button--tertiary":this.tertiary||!this.primary&&!this.secondary,"ft-button--icon-only":!this.hasTextContent(),"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0,"ft-button--no-icon":!this.icon,"ft-button--round":this.round,...this.getDesignSystemBaseClasses()}}get typographyVariant(){switch(this.size){case we.large:return Ye.body2medium;case we.medium:return Ye.caption1medium;case we.small:return Ye.caption2medium}}};Pe.styles=[vr,Qd];Fi([g({type:Boolean})],Pe.prototype,"primary",void 0);Fi([g({type:Boolean})],Pe.prototype,"secondary",void 0);Fi([g({type:Boolean})],Pe.prototype,"tertiary",void 0);Fi([g({type:Boolean})],Pe.prototype,"round",void 0);G("ft-button")(ie);G("ftds-button")(Pe);var tp=P`
1600
- `;var ep=P`
1601
- `;var rh="ft-app-info",Bs=class extends CustomEvent{constructor(t){super("authentication-change",{detail:t})}},oh={session:(r,t)=>{Qt(r.session,t.payload)||(r.session=t.payload,setTimeout(()=>M.eventBus.dispatchEvent(new Bs(t.payload)),0))}},M=Ne.get({name:rh,reducers:oh,initialState:{baseUrl:void 0,apiIntegrationIdentifier:void 0,uiLocale:document.documentElement.lang||"en-US",availableUiLocales:[],metadataConfiguration:void 0,editorMode:!1,noCustom:!1,noCustomComponent:!1,session:void 0,openExternalDocumentInNewTab:!1,navigatorOnline:!0,forcedOffline:!1}});var _r=class r{static get(t){let{baseUrl:e,apiIntegrationIdentifier:i}=M.getState(),n=t??i;if(e&&n&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(e,n,!0)}static await(t){return new Promise(e=>{let i=r.get(t);if(i)e(i);else{let n=M.subscribe(()=>{i=r.get(t),i&&(n(),e(i))})}})}};var ge=class{constructor(t=!0,e){var i;this.overrideApi=e;let n=this.constructor;n.commonCache=(i=n.commonCache)!==null&&i!==void 0?i:new ce,this.cache=t?n.commonCache:new ce}get api(){var t;return(t=this.overrideApi)!==null&&t!==void 0?t:_r.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):_r.await()}clearCache(){this.cache.clearAll()}};var rp,ih=Symbol("clearAfterUnitTest"),Ui=class extends ge{constructor(t){super(),this.messageContextProvider=t,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[rp]=()=>{this.defaultMessages={},this.cache=new ce,this.listeners={}},this.currentUiLocale=M.getState().uiLocale,M.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:t}=M.getState();this.currentUiLocale!==t&&(this.currentUiLocale=t,this.cache.clearAll(),this.notifyAll())}addContext(t){let e=t.name.toLowerCase();this.cache.setFinal(e,t),this.notify(e)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(t,e){var i;if(t=t.toLowerCase(),Object.keys(e).length>0){let n={...(i=this.defaultMessages[t])!==null&&i!==void 0?i:{},...e};Qt(this.defaultMessages[t],n)||(this.defaultMessages[t]=n,await this.notify(t))}await this.fetchContext(t)}resolveContext(t){var e,i;return this.fetchContext(t),(i=(e=this.cache.getNow(t))===null||e===void 0?void 0:e.messages)!==null&&i!==void 0?i:{}}resolveRawMessage(t,e){let i=t.toLowerCase();return this.resolveContext(i)[e]}resolveMessage(t,e,...i){var n;let a=t.toLowerCase(),s=this.resolveContext(a);return new Po((n=this.defaultMessages[a])!==null&&n!==void 0?n:{},s).resolve(e,...i)}async fetchContext(t){if(!this.cache.has(t))try{await this.cache.get(t,()=>this.messageContextProvider(this.currentUiLocale,t)),await this.notify(t)}catch(e){console.error(e)}}subscribe(t,e){var i;return t=t.toLowerCase(),this.listeners[t]=(i=this.listeners[t])!==null&&i!==void 0?i:new Set,this.listeners[t].add(e),()=>{var n;return(n=this.listeners[t])===null||n===void 0?void 0:n.delete(e)}}async notifyAll(){await Promise.all(Object.keys(this.listeners).map(t=>this.notify(t)))}async notify(t){this.listeners[t]!=null&&await Promise.all([...this.listeners[t].values()].map(e=>hi(0).then(()=>e()).catch(()=>null)))}};rp=ih;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends Ui{constructor(){super(async(r,t)=>(await this.awaitApi).getFluidTopicsMessageContext(r,t))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends Ui{constructor(){super(async(r,t)=>(await this.awaitApi).getCustomMessageContext(r,t))}});var Nr=window.FluidTopicsI18nService,op=window.FluidTopicsCustomI18nService;var Ft=function(r,t,e,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,t,e,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(t,e,a):s(t,e))||a);return n>3&&a&&Object.defineProperty(t,e,a),a},St=class extends V{constructor(){super(...arguments),this.apiIntegrationIdentifier="ft-integration",this.uiLocale="en-US",this.editorMode=!1,this.noCustom=!1,this.openExternalDocumentInNewTab=!1,this.noCustomComponent=!1,this.withManualResources=!1,this.navigatorOnline=!1,this.forcedOffline=!1,this.apiProvider=()=>_r.get(),this.messageContexts=[],this.cache=new ce,this.cleanSessionDebouncer=new at}render(){return L`
1612
+ `,vr];var Hi=function(r,t,e,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,t,e,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(t,e,a):s(t,e))||a);return n>3&&a&&Object.defineProperty(t,e,a),a},$e=class extends Ri(mt){constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.tertiary=!1,this.round=!1,this.family=mr.brand,this.iconVariant=$t.fluid_topics}get buttonClasses(){return{"ft-button":!0,"ft-button--primary":this.primary,"ft-button--secondary":this.secondary,"ft-button--tertiary":this.tertiary||!this.primary&&!this.secondary,"ft-button--icon-only":!this.hasTextContent(),"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0,"ft-button--no-icon":!this.icon,"ft-button--round":this.round,...this.getDesignSystemBaseClasses()}}get typographyVariant(){switch(this.size){case Ee.large:return Ye.body2medium;case Ee.medium:return Ye.caption1medium;case Ee.small:return Ye.caption2medium}}};$e.styles=[xr,op];Hi([g({type:Boolean})],$e.prototype,"primary",void 0);Hi([g({type:Boolean})],$e.prototype,"secondary",void 0);Hi([g({type:Boolean})],$e.prototype,"tertiary",void 0);Hi([g({type:Boolean})],$e.prototype,"round",void 0);Z("ft-button")(ie);Z("ftds-button")($e);var ip=L`
1613
+ `;var np=L`
1614
+ `;var nh="ft-app-info",Us=class extends CustomEvent{constructor(t){super("authentication-change",{detail:t})}},ah={session:(r,t)=>{Qt(r.session,t.payload)||(r.session=t.payload,setTimeout(()=>M.dispatchEvent(new Us(t.payload)),0))}},M=Ne.get({name:nh,reducers:ah,initialState:{baseUrl:void 0,apiIntegrationIdentifier:void 0,uiLocale:document.documentElement.lang||"en-US",availableUiLocales:[],defaultLocales:void 0,searchInAllLanguagesAllowed:!1,metadataConfiguration:void 0,editorMode:!1,noCustom:!1,noCustomComponent:!1,session:void 0,openExternalDocumentInNewTab:!1,navigatorOnline:!0,forcedOffline:!1}});var Nr=class r{static get(t){let{baseUrl:e,apiIntegrationIdentifier:i}=M.getState(),n=t??i;if(e&&n&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(e,n,!0)}static await(t){return new Promise(e=>{let i=r.get(t);if(i)e(i);else{let n=M.subscribe(()=>{i=r.get(t),i&&(n(),e(i))})}})}};var ge=class{constructor(t=!0,e){var i;this.overrideApi=e;let n=this.constructor;n.commonCache=(i=n.commonCache)!==null&&i!==void 0?i:new ce,this.cache=t?n.commonCache:new ce}get api(){var t;return(t=this.overrideApi)!==null&&t!==void 0?t:Nr.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):Nr.await()}clearCache(){this.cache.clearAll()}};var ap,sh=Symbol("clearAfterUnitTest"),zi=class extends ge{constructor(t){super(),this.messageContextProvider=t,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[ap]=()=>{this.defaultMessages={},this.cache=new ce,this.listeners={}},this.currentUiLocale=M.getState().uiLocale,M.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:t}=M.getState();this.currentUiLocale!==t&&(this.currentUiLocale=t,this.cache.clearAll(),this.notifyAll())}addContext(t){let e=t.name.toLowerCase();this.cache.setFinal(e,t),this.notify(e)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(t,e){var i;if(t=t.toLowerCase(),Object.keys(e).length>0){let n={...(i=this.defaultMessages[t])!==null&&i!==void 0?i:{},...e};Qt(this.defaultMessages[t],n)||(this.defaultMessages[t]=n,await this.notify(t))}await this.fetchContext(t)}resolveContext(t){var e,i;return this.fetchContext(t),(i=(e=this.cache.getNow(t))===null||e===void 0?void 0:e.messages)!==null&&i!==void 0?i:{}}resolveRawMessage(t,e){let i=t.toLowerCase();return this.resolveContext(i)[e]}resolveMessage(t,e,...i){var n;let a=t.toLowerCase(),s=this.resolveContext(a);return new Do((n=this.defaultMessages[a])!==null&&n!==void 0?n:{},s).resolve(e,...i)}async fetchContext(t){if(!this.cache.has(t))try{await this.cache.get(t,()=>this.messageContextProvider(this.currentUiLocale,t)),await this.notify(t)}catch(e){console.error(e)}}subscribe(t,e){var i;return t=t.toLowerCase(),this.listeners[t]=(i=this.listeners[t])!==null&&i!==void 0?i:new Set,this.listeners[t].add(e),()=>{var n;return(n=this.listeners[t])===null||n===void 0?void 0:n.delete(e)}}async notifyAll(){await Promise.all(Object.keys(this.listeners).map(t=>this.notify(t)))}async notify(t){this.listeners[t]!=null&&await Promise.all([...this.listeners[t].values()].map(e=>bi(0).then(()=>e()).catch(()=>null)))}};ap=sh;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends zi{constructor(){super(async(r,t)=>(await this.awaitApi).getFluidTopicsMessageContext(r,t))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends zi{constructor(){super(async(r,t)=>(await this.awaitApi).getCustomMessageContext(r,t))}});var Ir=window.FluidTopicsI18nService,sp=window.FluidTopicsCustomI18nService;var Dt=function(r,t,e,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,t,e,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(t,e,a):s(t,e))||a);return n>3&&a&&Object.defineProperty(t,e,a),a},gt=class extends j{constructor(){super(...arguments),this.apiIntegrationIdentifier="ft-integration",this.uiLocale="en-US",this.editorMode=!1,this.noCustom=!1,this.openExternalDocumentInNewTab=!1,this.noCustomComponent=!1,this.withManualResources=!1,this.navigatorOnline=!1,this.forcedOffline=!1,this.apiProvider=()=>Nr.get(),this.messageContexts=[],this.cache=new ce,this.cleanSessionDebouncer=new st}render(){return $`
1602
1615
  <slot></slot>
1603
- `}update(t){super.update(t),t.has("baseUrl")&&(M.actions.baseUrl(this.baseUrl),window.fluidTopicsBaseUrl=this.baseUrl),t.has("apiIntegrationIdentifier")&&M.actions.apiIntegrationIdentifier(this.apiIntegrationIdentifier),t.has("uiLocale")&&M.actions.uiLocale(this.uiLocale),t.has("metadataConfiguration")&&M.actions.metadataConfiguration(this.metadataConfiguration),t.has("noCustom")&&M.actions.noCustom(this.noCustom),t.has("editorMode")&&M.actions.editorMode(this.editorMode),t.has("noCustomComponent")&&M.actions.noCustomComponent(this.noCustomComponent),t.has("session")&&M.actions.session(this.session),t.has("availableUiLocales")&&M.actions.availableUiLocales(Array.isArray(this.availableUiLocales)?this.availableUiLocales:[]),t.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(e=>Nr.addContext(e)),t.has("openExternalDocumentInNewTab")&&M.actions.openExternalDocumentInNewTab(this.openExternalDocumentInNewTab),t.has("navigatorOnline")&&M.actions.navigatorOnline(this.navigatorOnline),t.has("forcedOffline")&&M.actions.forcedOffline(this.forcedOffline),setTimeout(()=>this.updateIfNeeded())}async updateIfNeeded(){!this.withManualResources&&this.apiProvider()&&(this.session==null&&this.updateSession(),this.availableUiLocales==null&&this.updateUiLocales(),this.metadataConfiguration==null&&this.updateMetadataConfiguration())}async updateSession(){this.session=await this.cache.get("session",async()=>{let t=await this.apiProvider().getCurrentSession();return t.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run(()=>{this.cache.clear("session"),this.session=void 0},t.idleTimeoutInMillis),t})}async updateUiLocales(){this.availableUiLocales=await this.cache.get("availableUiLocales",()=>this.apiProvider().getAvailableUiLocales())}async updateMetadataConfiguration(){this.metadataConfiguration=await this.cache.get("metadataConfiguration",()=>this.apiProvider().getMetadataConfiguration())}};St.elementDefinitions={};St.styles=ep;Ft([g()],St.prototype,"baseUrl",void 0);Ft([g()],St.prototype,"apiIntegrationIdentifier",void 0);Ft([g()],St.prototype,"uiLocale",void 0);Ft([de(null)],St.prototype,"availableUiLocales",void 0);Ft([de(null)],St.prototype,"metadataConfiguration",void 0);Ft([g({type:Boolean})],St.prototype,"editorMode",void 0);Ft([g({type:Boolean})],St.prototype,"noCustom",void 0);Ft([g({type:Boolean})],St.prototype,"openExternalDocumentInNewTab",void 0);Ft([g({converter:{fromAttribute(r){return r==="false"?!1:r==="true"||(r??!1)}}})],St.prototype,"noCustomComponent",void 0);Ft([g({type:Boolean})],St.prototype,"withManualResources",void 0);Ft([g({type:Boolean})],St.prototype,"navigatorOnline",void 0);Ft([g({type:Boolean})],St.prototype,"forcedOffline",void 0);Ft([g({type:Object})],St.prototype,"apiProvider",void 0);Ft([de([])],St.prototype,"messageContexts",void 0);Ft([de(void 0)],St.prototype,"session",void 0);var Wi=class extends ge{async listMySearches(){let t=M.getState().session;return t?.sessionAuthenticated?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(t.profile.userId),5*60*1e3):[]}};var Hi=class extends ge{async listMyBookmarks(){let t=M.getState().session;return t?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(t.profile.userId),5*60*1e3):[]}};var nh="ft-user-assets",zi=Ne.get({name:nh,initialState:{savedSearches:void 0,bookmarks:void 0}}),Fs=class{constructor(){this.currentSession=M.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new Hi,this.savedSearchesService=new Wi,M.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var t;let{session:e}=M.getState();Qt((t=this.currentSession)===null||t===void 0?void 0:t.profile,e?.profile)||(this.currentSession=e,this.clearMySearches(),this.reloadBookmarks())}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),zi.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),zi.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let t=await this.savedSearchesService.listMySearches();zi.actions.savedSearches(t)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var t;if(this.bookmarksAreUsed){let e=!((t=this.currentSession)===null||t===void 0)&&t.sessionAuthenticated?await this.bookmarksService.listMyBookmarks():void 0;zi.actions.bookmarks(e)}}},ip=new Fs;var Us=class{addCommand(t,e=!1){M.commands.add(t,e)}consumeCommand(t){return M.commands.consume(t)}};window.FluidTopicsAppInfoStoreService=new Us;var Ws=class{highlightHtml(t,e,i){Wa(t,e,i)}};window.FluidTopicsHighlightHtmlService=new Ws;var Hs=class{isDate(t){var e,i,n,a;return(a=(n=((i=(e=M.getState().metadataConfiguration)===null||e===void 0?void 0:e.descriptors)!==null&&i!==void 0?i:[]).find(l=>l.key===t))===null||n===void 0?void 0:n.date)!==null&&a!==void 0?a:!1}format(t,e){var i,n,a;return Gr.format(t,(i=e?.locale)!==null&&i!==void 0?i:M.getState().uiLocale,(n=e?.longFormat)!==null&&n!==void 0?n:!1,(a=e?.withTime)!==null&&a!==void 0?a:!1)}};window.FluidTopicsDateService=new Hs;G("ft-app-context")(St);var ah=function(r,t,e,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,t,e,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(t,e,a):s(t,e))||a);return n>3&&a&&Object.defineProperty(t,e,a),a},zs=Symbol("i18nAttributes"),Vs=Symbol("i18nListAttributes"),Ir=Symbol("i18nProperties"),Ho=Symbol("i18nUnsubs");function Je(r){var t;class e extends r{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[t]=new Map}get i18nService(){return this.useCustomMessageContexts?op:Nr}i18n(n,a,...s){var l;if(typeof n=="string")return this.i18nService.resolveMessage(n,a,...s);let d=(l=n.args)!==null&&l!==void 0?l:n.argsProvider?n.argsProvider(this):[];return this.i18nService.resolveMessage(n.context,n.key,...d)}onI18nUpdate(n){var a,s,l;(a=this[zs])===null||a===void 0||a.forEach((d,p)=>{let f=this.getI18nAttributeValue(p);f&&(this[p]=this.getI18nAttributeMessage(f,d,n))}),(s=this[Vs])===null||s===void 0||s.forEach((d,p)=>{let f=this.getI18nListAttributeValues(p);this[p]=f?.map(h=>this.getI18nAttributeMessage(h,d,n))}),(l=this[Ir])===null||l===void 0||l.forEach((d,p)=>{d.context.toLowerCase()===n.toLowerCase()&&(this[p]=this.i18n(d))}),setTimeout(()=>this.requestUpdate(),0)}buildI18nAttributeMessage(n,a){return{...n,message:this.i18n({context:n.context,key:n.key,...a})}}getI18nAttributeMessage(n,a,s){var l;let d=!s||((l=n.context)===null||l===void 0?void 0:l.toLowerCase())===s.toLowerCase();return n.context&&n.key&&d?this.buildI18nAttributeMessage(n,a):n}update(n){var a,s,l;super.update(n),(a=this[zs])===null||a===void 0||a.forEach((d,p)=>{let f=this.getI18nAttributeValue(p);f?.context&&f.key&&(n.has(p)||d.argsProvider!=null)&&(this.addI18nContextIfNeeded(f,n,p),this[p]=this.getI18nAttributeMessage(f,d))}),(s=this[Vs])===null||s===void 0||s.forEach((d,p)=>{let f=this.getI18nListAttributeValues(p);(n.has(p)||d.argsProvider!=null)&&(this[p]=f?.map(h=>(this.addI18nContextIfNeeded(h,n,p),this.getI18nAttributeMessage(h,d))))}),(l=this[Ir])===null||l===void 0||l.forEach((d,p)=>{d.argsProvider!=null&&(this[p]=this.i18n(d))})}getI18nAttributeValue(n){return this[n]}getI18nListAttributeValues(n){return this[n]}addI18nContextIfNeeded(n,a,s){n.context&&n.key&&a.has(s)&&this.addI18nContext(n.context)}connectedCallback(){var n,a,s,l,d,p;super.connectedCallback(),new Set([...(a=(n=this[Ir])===null||n===void 0?void 0:n.values())!==null&&a!==void 0?a:[],...[...(l=(s=this[zs])===null||s===void 0?void 0:s.keys())!==null&&l!==void 0?l:[]].map(f=>this.getI18nAttributeValue(f)),...[...(p=(d=this[Vs])===null||d===void 0?void 0:d.keys())!==null&&p!==void 0?p:[]].flatMap(f=>this.getI18nListAttributeValues(f))].map(f=>f?.context)).forEach(f=>f&&this.addI18nMessages(f))}addI18nMessages(n,a){n=n.toLowerCase(),this[Ho].has(n)||this[Ho].set(n,this.i18nService.subscribe(n,()=>this.onI18nUpdate(n))),this.i18nService.prepareContext(n,a??{}),this.onI18nUpdate(n)}addI18nContext(n,a){this.addI18nMessages(typeof n=="string"?n:n.name,a)}disconnectedCallback(){super.disconnectedCallback(),this[Ho].forEach(n=>n()),this[Ho].clear()}}return t=Ho,ah([g({type:Boolean})],e.prototype,"useCustomMessageContexts",void 0),e}var np=class extends Je(V){},Vi=class extends Je(Zt){};var zo=function(r,t,e,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,t,e,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(t,e,a):s(t,e))||a);return n>3&&a&&Object.defineProperty(t,e,a),a},ne=class extends Vi{constructor(){super(),this.editorMode=!1,this.addStore(M)}render(){return!this.key||!this.context?this.editorMode?"Select a context and a label key.":H:L`
1616
+ `}update(t){var e,i,n,a,s;super.update(t),t.has("baseUrl")&&(M.actions.baseUrl(this.baseUrl),window.fluidTopicsBaseUrl=this.baseUrl),t.has("apiIntegrationIdentifier")&&M.actions.apiIntegrationIdentifier(this.apiIntegrationIdentifier),t.has("uiLocale")&&M.actions.uiLocale(this.uiLocale),t.has("metadataConfiguration")&&M.actions.metadataConfiguration(this.metadataConfiguration),t.has("noCustom")&&M.actions.noCustom(this.noCustom),t.has("editorMode")&&M.actions.editorMode(this.editorMode),t.has("noCustomComponent")&&M.actions.noCustomComponent(this.noCustomComponent),t.has("session")&&M.actions.session(this.session),t.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(l=>Ir.addContext(l)),t.has("openExternalDocumentInNewTab")&&M.actions.openExternalDocumentInNewTab(this.openExternalDocumentInNewTab),t.has("navigatorOnline")&&M.actions.navigatorOnline(this.navigatorOnline),t.has("forcedOffline")&&M.actions.forcedOffline(this.forcedOffline),t.has("localesConfiguration")&&(M.actions.defaultLocales((e=this.localesConfiguration)===null||e===void 0?void 0:e.defaultLocales),M.actions.availableUiLocales((n=(i=this.localesConfiguration)===null||i===void 0?void 0:i.availableUiLocales)!==null&&n!==void 0?n:[]),M.actions.searchInAllLanguagesAllowed((s=(a=this.localesConfiguration)===null||a===void 0?void 0:a.allLanguagesAllowed)!==null&&s!==void 0?s:!1)),setTimeout(()=>this.updateIfNeeded())}async updateIfNeeded(){this.apiProvider()&&(this.withManualResources||(this.session==null&&this.updateSession(),this.metadataConfiguration==null&&this.updateMetadataConfiguration()),this.localesConfiguration==null&&this.updateLocalesConfiguration())}async updateSession(){this.session=await this.cache.get("session",async()=>{let t=await this.apiProvider().getCurrentSession();return t.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run(()=>{this.cache.clear("session"),this.session=void 0},t.idleTimeoutInMillis),t})}async updateMetadataConfiguration(){this.metadataConfiguration=await this.cache.get("metadataConfiguration",()=>this.apiProvider().getMetadataConfiguration())}async updateLocalesConfiguration(){this.localesConfiguration=await this.cache.get("localesConfiguration",()=>this.apiProvider().getLocalesConfiguration())}};gt.elementDefinitions={};gt.styles=np;Dt([g()],gt.prototype,"baseUrl",void 0);Dt([g()],gt.prototype,"apiIntegrationIdentifier",void 0);Dt([g()],gt.prototype,"uiLocale",void 0);Dt([de(null)],gt.prototype,"availableUiLocales",void 0);Dt([de(null)],gt.prototype,"metadataConfiguration",void 0);Dt([g({type:Boolean})],gt.prototype,"editorMode",void 0);Dt([g({type:Boolean})],gt.prototype,"noCustom",void 0);Dt([g({type:Boolean})],gt.prototype,"openExternalDocumentInNewTab",void 0);Dt([g({converter:{fromAttribute(r){return r==="false"?!1:r==="true"||(r??!1)}}})],gt.prototype,"noCustomComponent",void 0);Dt([g({type:Boolean})],gt.prototype,"withManualResources",void 0);Dt([g({type:Boolean})],gt.prototype,"navigatorOnline",void 0);Dt([g({type:Boolean})],gt.prototype,"forcedOffline",void 0);Dt([g({type:Object})],gt.prototype,"apiProvider",void 0);Dt([de([])],gt.prototype,"messageContexts",void 0);Dt([de(void 0)],gt.prototype,"session",void 0);Dt([U()],gt.prototype,"localesConfiguration",void 0);var Vi=class extends ge{async listMySearches(){let t=M.getState().session;return t?.sessionAuthenticated?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(t.profile.userId),5*60*1e3):[]}};var ji=class extends ge{async listMyBookmarks(){let t=M.getState().session;return t?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(t.profile.userId),5*60*1e3):[]}};var lh="ft-user-assets",Gi=Ne.get({name:lh,initialState:{savedSearches:void 0,bookmarks:void 0}}),Ws=class{constructor(){this.currentSession=M.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new ji,this.savedSearchesService=new Vi,M.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var t;let{session:e}=M.getState();Qt((t=this.currentSession)===null||t===void 0?void 0:t.profile,e?.profile)||(this.currentSession=e,this.clearMySearches(),this.reloadBookmarks())}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),Gi.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),Gi.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let t=await this.savedSearchesService.listMySearches();Gi.actions.savedSearches(t)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var t;if(this.bookmarksAreUsed){let e=!((t=this.currentSession)===null||t===void 0)&&t.sessionAuthenticated?await this.bookmarksService.listMyBookmarks():void 0;Gi.actions.bookmarks(e)}}},lp=new Ws;var Hs=class{addCommand(t,e=!1){M.commands.add(t,e)}consumeCommand(t){return M.commands.consume(t)}};window.FluidTopicsAppInfoStoreService=new Hs;var zs=class{highlightHtml(t,e,i){za(t,e,i)}};window.FluidTopicsHighlightHtmlService=new zs;var Vs=class{isDate(t){var e,i,n,a;return(a=(n=((i=(e=M.getState().metadataConfiguration)===null||e===void 0?void 0:e.descriptors)!==null&&i!==void 0?i:[]).find(l=>l.key===t))===null||n===void 0?void 0:n.date)!==null&&a!==void 0?a:!1}format(t,e){var i,n,a;return Kr.format(t,(i=e?.locale)!==null&&i!==void 0?i:M.getState().uiLocale,(n=e?.longFormat)!==null&&n!==void 0?n:!1,(a=e?.withTime)!==null&&a!==void 0?a:!1)}};window.FluidTopicsDateService=new Vs;Z("ft-app-context")(gt);var ch=function(r,t,e,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,t,e,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(t,e,a):s(t,e))||a);return n>3&&a&&Object.defineProperty(t,e,a),a},js=Symbol("i18nAttributes"),Gs=Symbol("i18nListAttributes"),Tr=Symbol("i18nProperties"),Go=Symbol("i18nUnsubs");function Je(r){var t;class e extends r{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[t]=new Map}get i18nService(){return this.useCustomMessageContexts?sp:Ir}i18n(n,a,...s){var l;if(typeof n=="string")return this.i18nService.resolveMessage(n,a,...s);let d=(l=n.args)!==null&&l!==void 0?l:n.argsProvider?n.argsProvider(this):[];return this.i18nService.resolveMessage(n.context,n.key,...d)}onI18nUpdate(n){var a,s,l;(a=this[js])===null||a===void 0||a.forEach((d,p)=>{let f=this.getI18nAttributeValue(p);f&&(this[p]=this.getI18nAttributeMessage(f,d,n))}),(s=this[Gs])===null||s===void 0||s.forEach((d,p)=>{let f=this.getI18nListAttributeValues(p);this[p]=f?.map(h=>this.getI18nAttributeMessage(h,d,n))}),(l=this[Tr])===null||l===void 0||l.forEach((d,p)=>{d.context.toLowerCase()===n.toLowerCase()&&(this[p]=this.i18n(d))}),setTimeout(()=>this.requestUpdate(),0)}buildI18nAttributeMessage(n,a){return{...n,message:this.i18n({context:n.context,key:n.key,...a})}}getI18nAttributeMessage(n,a,s){var l;let d=!s||((l=n.context)===null||l===void 0?void 0:l.toLowerCase())===s.toLowerCase();return n.context&&n.key&&d?this.buildI18nAttributeMessage(n,a):n}update(n){var a,s,l;super.update(n),(a=this[js])===null||a===void 0||a.forEach((d,p)=>{let f=this.getI18nAttributeValue(p);f?.context&&f.key&&(n.has(p)||d.argsProvider!=null)&&(this.addI18nContextIfNeeded(f,n,p),this[p]=this.getI18nAttributeMessage(f,d))}),(s=this[Gs])===null||s===void 0||s.forEach((d,p)=>{let f=this.getI18nListAttributeValues(p);(n.has(p)||d.argsProvider!=null)&&(this[p]=f?.map(h=>(this.addI18nContextIfNeeded(h,n,p),this.getI18nAttributeMessage(h,d))))}),(l=this[Tr])===null||l===void 0||l.forEach((d,p)=>{d.argsProvider!=null&&(this[p]=this.i18n(d))})}getI18nAttributeValue(n){return this[n]}getI18nListAttributeValues(n){return this[n]}addI18nContextIfNeeded(n,a,s){n.context&&n.key&&a.has(s)&&this.addI18nContext(n.context)}connectedCallback(){var n,a,s,l,d,p;super.connectedCallback(),new Set([...(a=(n=this[Tr])===null||n===void 0?void 0:n.values())!==null&&a!==void 0?a:[],...[...(l=(s=this[js])===null||s===void 0?void 0:s.keys())!==null&&l!==void 0?l:[]].map(f=>this.getI18nAttributeValue(f)),...[...(p=(d=this[Gs])===null||d===void 0?void 0:d.keys())!==null&&p!==void 0?p:[]].flatMap(f=>this.getI18nListAttributeValues(f))].map(f=>f?.context)).forEach(f=>f&&this.addI18nMessages(f))}addI18nMessages(n,a){n=n.toLowerCase(),this[Go].has(n)||this[Go].set(n,this.i18nService.subscribe(n,()=>this.onI18nUpdate(n))),this.i18nService.prepareContext(n,a??{}),this.onI18nUpdate(n)}addI18nContext(n,a){this.addI18nMessages(typeof n=="string"?n:n.name,a)}disconnectedCallback(){super.disconnectedCallback(),this[Go].forEach(n=>n()),this[Go].clear()}}return t=Go,ch([g({type:Boolean})],e.prototype,"useCustomMessageContexts",void 0),e}var cp=class extends Je(j){},Ki=class extends Je(Zt){};var Ko=function(r,t,e,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,t,e,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(t,e,a):s(t,e))||a);return n>3&&a&&Object.defineProperty(t,e,a),a},ne=class extends Ki{constructor(){super(),this.editorMode=!1,this.addStore(M)}render(){return!this.key||!this.context?this.editorMode?"Select a context and a label key.":V:$`
1604
1617
  <span class="ft-i18n">
1605
1618
  ${this.i18n(this.context,this.key,...Array.isArray(this.args)?this.args:[])}
1606
1619
  </span>
1607
- `}update(t){var e;super.update(t),["context","key","defaultMessage"].some(i=>t.has(i))&&this.context&&this.key&&this.addI18nMessages(this.context,{[this.key]:(e=this.defaultMessage)!==null&&e!==void 0?e:""})}};ne.elementDefinitions={};ne.styles=tp;zo([ct()],ne.prototype,"editorMode",void 0);zo([g()],ne.prototype,"context",void 0);zo([g()],ne.prototype,"key",void 0);zo([de([])],ne.prototype,"args",void 0);zo([g()],ne.prototype,"defaultMessage",void 0);var Qe=class r{static build(t){return new r(t)}static fromGwt(t){return new r(t)}constructor(t){this.name=t,this.properties=new Proxy({},{get:(e,i)=>{let n=i;return a=>({context:this.name,key:n,args:typeof a=="function"?void 0:a,argsProvider:typeof a=="function"?a:void 0})}}),this.messages=new Proxy({},{get:(e,i)=>(...n)=>Nr.resolveMessage(this.name,i,...n)}),this.rawMessages=new Proxy({},{get:(e,i)=>Nr.resolveRawMessage(this.name,i)})}};var ji=(r,t)=>(e,i)=>{var n,a;e.constructor.createProperty(i,t??{attribute:!1,type:String});let s={...r,key:(n=r.key)!==null&&n!==void 0?n:i};e[Ir]=(a=e[Ir])!==null&&a!==void 0?a:new Map,e[Ir].set(i,s)};G("ft-i18n")(ne);var Q=Qe.build("integratedFeedbackComponent"),ap={starsRating:"{0} stars","starsRating[\\=1]":"1 star",like:"Like",dislike:"Dislike",dichotomousYes:"Yes",dichotomousNo:"No",notRated:"Not rated",ratedNow:"Rated now",ratedToday:"Rated today",ratedOn:"Rated on {0, date}",feedbackInputLabel:"How can we improve it?",feedbackfromEmail:"Your email",feedbackfromEmailInvalid:"Please enter a valid email address",okButton:"Send feedback",cancelButton:"Cancel",moreOptionsButton:"More options",feedbackSuccess:"Feedback successfully sent. Thank you!",feedbackFailure:"Failed to send feedback. Please try again later.",ratingSuccess:"Rating successfully sent. Thank you!",ratingFailure:"Failed to send rating. Please try again later.",mapFeedbackMainTitle:"Send feedback",mapRatingSectionTitle:"Rate this document",mapDichotomousRatingSectionTitle:"Did it solve your problem?",mapFeedbackSectionTitle:"Write your review",topicFeedbackMainTitle:"Send feedback",topicRatingSectionTitle:"Rate this content",topicDichotomousRatingSectionTitle:"Did this content solve your problem?",topicFeedbackSectionTitle:"Write your review"};var js=r=>r??ht;var K={fontSize:o.create("--ft-text-field-font-size","","SIZE","14px"),labelSize:o.create("--ft-text-field-label-size","","SIZE","11px"),verticalSpacing:o.create("--ft-text-field-vertical-spacing","","SIZE","4px"),horizontalSpacing:o.create("--ft-text-field-horizontal-spacing","","SIZE","16px"),helperColor:o.extend("--ft-text-field-helper-color","",N.colorOnSurfaceMedium),colorPrimary:o.external(N.colorPrimary,"Design system"),colorOnSurface:o.external(N.colorOnSurface,"Design system"),colorOnSurfaceDisabled:o.external(N.colorOnSurfaceDisabled,"Design system"),borderRadiusS:o.external(N.borderRadiusS,"Design system"),colorError:o.external(N.colorError,"Design system"),prefixColor:o.extend("--ft-text-field-prefix-color","",N.colorOnSurfaceMedium),iconColor:o.extend("--ft-text-field-icon-color","",N.colorOnSurfaceMedium),floatingZIndex:o.create("--ft-text-field-floating-components-z-index","","NUMBER","3"),colorSurface:o.external(N.colorSurface,"Design system"),colorOutline:o.external(N.colorOutline,"Design system"),elevation02:o.external(N.elevation02,"Design system"),suggestSize:o.create("--ft-text-field-suggest-size","","SIZE","300px")},sp=P`
1620
+ `}update(t){var e;super.update(t),["context","key","defaultMessage"].some(i=>t.has(i))&&this.context&&this.key&&this.addI18nMessages(this.context,{[this.key]:(e=this.defaultMessage)!==null&&e!==void 0?e:""})}};ne.elementDefinitions={};ne.styles=ip;Ko([ct()],ne.prototype,"editorMode",void 0);Ko([g()],ne.prototype,"context",void 0);Ko([g()],ne.prototype,"key",void 0);Ko([de([])],ne.prototype,"args",void 0);Ko([g()],ne.prototype,"defaultMessage",void 0);var Qe=class r{static build(t){return new r(t)}static fromGwt(t){return new r(t)}constructor(t){this.name=t,this.properties=new Proxy({},{get:(e,i)=>{let n=i;return a=>({context:this.name,key:n,args:typeof a=="function"?void 0:a,argsProvider:typeof a=="function"?a:void 0})}}),this.messages=new Proxy({},{get:(e,i)=>(...n)=>Ir.resolveMessage(this.name,i,...n)}),this.rawMessages=new Proxy({},{get:(e,i)=>Ir.resolveRawMessage(this.name,i)})}};var Zi=(r,t)=>(e,i)=>{var n,a;e.constructor.createProperty(i,t??{attribute:!1,type:String});let s={...r,key:(n=r.key)!==null&&n!==void 0?n:i};e[Tr]=(a=e[Tr])!==null&&a!==void 0?a:new Map,e[Tr].set(i,s)};Z("ft-i18n")(ne);var tt=Qe.build("integratedFeedbackComponent"),dp={starsRating:"{0} stars","starsRating[\\=1]":"1 star",like:"Like",dislike:"Dislike",dichotomousYes:"Yes",dichotomousNo:"No",notRated:"Not rated",ratedNow:"Rated now",ratedToday:"Rated today",ratedOn:"Rated on {0, date}",feedbackInputLabel:"How can we improve it?",feedbackfromEmail:"Your email",feedbackfromEmailInvalid:"Please enter a valid email address",okButton:"Send feedback",cancelButton:"Cancel",moreOptionsButton:"More options",feedbackSuccess:"Feedback successfully sent. Thank you!",feedbackFailure:"Failed to send feedback. Please try again later.",ratingSuccess:"Rating successfully sent. Thank you!",ratingFailure:"Failed to send rating. Please try again later.",mapFeedbackMainTitle:"Send feedback",mapRatingSectionTitle:"Rate this document",mapDichotomousRatingSectionTitle:"Did it solve your problem?",mapFeedbackSectionTitle:"Write your review",topicFeedbackMainTitle:"Send feedback",topicRatingSectionTitle:"Rate this content",topicDichotomousRatingSectionTitle:"Did this content solve your problem?",topicFeedbackSectionTitle:"Write your review"};var Ks=r=>r??ht;var q={fontSize:o.create("--ft-text-field-font-size","","SIZE","14px"),labelSize:o.create("--ft-text-field-label-size","","SIZE","11px"),verticalSpacing:o.create("--ft-text-field-vertical-spacing","","SIZE","4px"),horizontalSpacing:o.create("--ft-text-field-horizontal-spacing","","SIZE","16px"),helperColor:o.extend("--ft-text-field-helper-color","",_.colorOnSurfaceMedium),colorPrimary:o.external(_.colorPrimary,"Design system"),colorOnSurface:o.external(_.colorOnSurface,"Design system"),colorOnSurfaceDisabled:o.external(_.colorOnSurfaceDisabled,"Design system"),borderRadiusS:o.external(_.borderRadiusS,"Design system"),colorError:o.external(_.colorError,"Design system"),prefixColor:o.extend("--ft-text-field-prefix-color","",_.colorOnSurfaceMedium),iconColor:o.extend("--ft-text-field-icon-color","",_.colorOnSurfaceMedium),floatingZIndex:o.create("--ft-text-field-floating-components-z-index","","NUMBER","3"),colorSurface:o.external(_.colorSurface,"Design system"),colorOutline:o.external(_.colorOutline,"Design system"),elevation02:o.external(_.elevation02,"Design system"),suggestSize:o.create("--ft-text-field-suggest-size","","SIZE","300px")},pp=L`
1608
1621
  *:focus {
1609
1622
  outline: none;
1610
1623
  }
@@ -1617,16 +1630,16 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
1617
1630
  }
1618
1631
 
1619
1632
  ft-input-label {
1620
- ${x(U.fontSize,K.fontSize)};
1621
- ${x(U.raisedFontSize,K.labelSize)};
1622
- ${x(U.verticalSpacing,K.verticalSpacing)};
1623
- ${x(U.horizontalSpacing,K.horizontalSpacing)};
1633
+ ${x(H.fontSize,q.fontSize)};
1634
+ ${x(H.raisedFontSize,q.labelSize)};
1635
+ ${x(H.verticalSpacing,q.verticalSpacing)};
1636
+ ${x(H.horizontalSpacing,q.horizontalSpacing)};
1624
1637
  }
1625
1638
 
1626
1639
  .ft-text-field--main-panel {
1627
1640
  position: relative;
1628
1641
  display: flex;
1629
- height: calc(4 * ${K.verticalSpacing} + ${K.labelSize} + ${K.fontSize});
1642
+ height: calc(4 * ${q.verticalSpacing} + ${q.labelSize} + ${q.fontSize});
1630
1643
  }
1631
1644
 
1632
1645
  .ft-text-field--input-panel {
@@ -1635,10 +1648,10 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
1635
1648
  display: flex;
1636
1649
  align-items: center;
1637
1650
  overflow: hidden;
1638
- padding: 0 ${K.horizontalSpacing};
1651
+ padding: 0 ${q.horizontalSpacing};
1639
1652
 
1640
- ${x(Xt.fontSize,K.fontSize)};
1641
- ${x(Xt.lineHeight,K.fontSize)};
1653
+ ${x(Xt.fontSize,q.fontSize)};
1654
+ ${x(Xt.lineHeight,q.fontSize)};
1642
1655
  }
1643
1656
 
1644
1657
  .ft-text-field--input-panel ft-ripple {
@@ -1648,11 +1661,11 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
1648
1661
 
1649
1662
  .ft-text-field--filled.ft-text-field--with-label .ft-text-field--input-panel {
1650
1663
  align-items: flex-end;
1651
- padding: 0 ${K.horizontalSpacing} ${K.verticalSpacing} ${K.horizontalSpacing};
1664
+ padding: 0 ${q.horizontalSpacing} ${q.verticalSpacing} ${q.horizontalSpacing};
1652
1665
  }
1653
1666
 
1654
1667
  .ft-text-field--prefix {
1655
- color: ${K.prefixColor};
1668
+ color: ${q.prefixColor};
1656
1669
  margin-right: 2px;
1657
1670
  flex-shrink: 1;
1658
1671
  overflow: hidden;
@@ -1671,15 +1684,15 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
1671
1684
  flex-shrink: 1;
1672
1685
  min-width: 0; /* flex sets this to auto an prevents input from shrinking properly */
1673
1686
 
1674
- color: ${K.colorOnSurface};
1675
- padding: calc(2 * ${K.verticalSpacing}) 0;
1687
+ color: ${q.colorOnSurface};
1688
+ padding: calc(2 * ${q.verticalSpacing}) 0;
1676
1689
  border: none;
1677
1690
  background: none;
1678
1691
  }
1679
1692
 
1680
1693
  .ft-text-field--filled.ft-text-field--with-label .ft-text-field--input {
1681
1694
  padding-bottom: 0;
1682
- padding-top: calc(${K.labelSize} + 2 * ${K.verticalSpacing});
1695
+ padding-top: calc(${q.labelSize} + 2 * ${q.verticalSpacing});
1683
1696
  }
1684
1697
 
1685
1698
  .ft-text-field--input::-webkit-calendar-picker-indicator,
@@ -1688,37 +1701,37 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
1688
1701
  }
1689
1702
 
1690
1703
  .ft-text-field--disabled .ft-text-field--input {
1691
- color: ${K.colorOnSurfaceDisabled};
1704
+ color: ${q.colorOnSurfaceDisabled};
1692
1705
  }
1693
1706
 
1694
1707
  .ft-text-field:not(.ft-text-field--disabled):focus-within ft-input-label {
1695
- ${x(U.borderColor,K.colorPrimary)};
1696
- ${x(U.textColor,K.colorPrimary)};
1708
+ ${x(H.borderColor,q.colorPrimary)};
1709
+ ${x(H.textColor,q.colorPrimary)};
1697
1710
  }
1698
1711
 
1699
1712
  .ft-text-field--filled .ft-text-field--input-panel {
1700
- border-radius: ${K.borderRadiusS} ${K.borderRadiusS} 0 0;
1713
+ border-radius: ${q.borderRadiusS} ${q.borderRadiusS} 0 0;
1701
1714
  }
1702
1715
 
1703
1716
  .ft-text-field--outlined .ft-text-field--input-panel {
1704
- border-radius: ${K.borderRadiusS};
1717
+ border-radius: ${q.borderRadiusS};
1705
1718
  }
1706
1719
 
1707
1720
  .ft-text-field--helper-text {
1708
- padding: 0 12px 0 ${K.horizontalSpacing};
1709
- color: ${K.helperColor};
1721
+ padding: 0 12px 0 ${q.horizontalSpacing};
1722
+ color: ${q.helperColor};
1710
1723
  }
1711
1724
 
1712
1725
  .ft-text-field--in-error .ft-text-field--input,
1713
1726
  .ft-text-field--in-error .ft-text-field--helper-text,
1714
1727
  .ft-text-field--in-error .ft-text-field--prefix {
1715
- color: ${K.colorError};
1728
+ color: ${q.colorError};
1716
1729
  }
1717
1730
 
1718
1731
  .ft-text-field--icon {
1719
1732
  align-self: center;
1720
1733
  margin-left: 8px;
1721
- color: ${K.iconColor};
1734
+ color: ${q.iconColor};
1722
1735
  }
1723
1736
 
1724
1737
  .ft-text-field--container {
@@ -1729,13 +1742,13 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
1729
1742
  display: none;
1730
1743
  flex-direction: column;
1731
1744
  position: absolute;
1732
- z-index: ${K.floatingZIndex};
1733
- background: ${K.colorSurface};
1734
- border: 1px solid ${K.colorOutline};
1735
- border-radius: 0 0 ${K.borderRadiusS} ${K.borderRadiusS};
1736
- box-shadow: ${K.elevation02};
1745
+ z-index: ${q.floatingZIndex};
1746
+ background: ${q.colorSurface};
1747
+ border: 1px solid ${q.colorOutline};
1748
+ border-radius: 0 0 ${q.borderRadiusS} ${q.borderRadiusS};
1749
+ box-shadow: ${q.elevation02};
1737
1750
  outline: none;
1738
- max-height: ${K.suggestSize};
1751
+ max-height: ${q.suggestSize};
1739
1752
  overflow-y: auto;
1740
1753
  }
1741
1754
 
@@ -1748,14 +1761,14 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
1748
1761
  }
1749
1762
 
1750
1763
  .ft-text-field--with-icon {
1751
- ${x(U.labelMaxWidth,`calc(100% - ${Ct.size} - ${U.horizontalSpacing})`)};
1764
+ ${x(H.labelMaxWidth,`calc(100% - ${Ct.size} - ${H.horizontalSpacing})`)};
1752
1765
  }
1753
1766
 
1754
1767
  .ft-text-field--with-password ft-icon:hover {
1755
1768
  cursor: pointer;
1756
1769
  }
1757
- `;var nt=function(r,t,e,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,t,e,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(t,e,a):s(t,e))||a);return n>3&&a&&Object.defineProperty(t,e,a),a},q=class extends wr(V,"textbox"){constructor(){super(...arguments),this._value="",this.dispatchedValue="",this.outlined=!1,this.disabled=!1,this.error=!1,this.fixedMenuPosition=!1,this.prefix=null,this.passwordHiddenIcon=Er.EYE_SLASH,this.passwordRevealedIcon=Er.EYE,this.filterSuggestions=!1,this.password=!1,this.focused=!1,this.hidePassword=!0,this.hideSuggestions=!1,this.visibleSuggestions=[]}get value(){return this._value||""}set value(t){this.setInternalValue(t||""),this.dispatchedValue=t||""}setInternalValue(t){let e=this._value;this._value=t||"",this.setFormValue(this._value),this.requestUpdate("value",e)}focus(){var t;(t=this.input)===null||t===void 0||t.focus()}render(){var t;let e={"ft-text-field":!0,"ft-text-field--filled":!this.outlined,"ft-text-field--outlined":this.outlined,"ft-text-field--disabled":this.disabled,"ft-text-field--has-value":!!this.value,"ft-text-field--with-label":!!this.label,"ft-text-field--in-error":this.error,"ft-text-field--fixed":this.fixedMenuPosition,"ft-text-field--with-prefix":!!this.prefix,"ft-text-field--hide-suggestions":this.visibleSuggestions.length===0||this.hideSuggestions,"ft-text-field--raised-label":this.focused||this.value!="","ft-text-field--with-icon":!!this.icon,"ft-text-field--with-password":this.password};return L`
1758
- <div class="${Lt(e)}">
1770
+ `;var at=function(r,t,e,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,t,e,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(t,e,a):s(t,e))||a);return n>3&&a&&Object.defineProperty(t,e,a),a},X=class extends wr(j,"textbox"){constructor(){super(...arguments),this._value="",this.dispatchedValue="",this.outlined=!1,this.disabled=!1,this.error=!1,this.fixedMenuPosition=!1,this.prefix=null,this.passwordHiddenIcon=Ar.EYE_SLASH,this.passwordRevealedIcon=Ar.EYE,this.filterSuggestions=!1,this.password=!1,this.focused=!1,this.hidePassword=!0,this.hideSuggestions=!1,this.visibleSuggestions=[]}get value(){return this._value||""}set value(t){this.setInternalValue(t||""),this.dispatchedValue=t||""}setInternalValue(t){let e=this._value;this._value=t||"",this.setFormValue(this._value),this.requestUpdate("value",e)}focus(){var t;(t=this.input)===null||t===void 0||t.focus()}render(){var t;let e={"ft-text-field":!0,"ft-text-field--filled":!this.outlined,"ft-text-field--outlined":this.outlined,"ft-text-field--disabled":this.disabled,"ft-text-field--has-value":!!this.value,"ft-text-field--with-label":!!this.label,"ft-text-field--in-error":this.error,"ft-text-field--fixed":this.fixedMenuPosition,"ft-text-field--with-prefix":!!this.prefix,"ft-text-field--hide-suggestions":this.visibleSuggestions.length===0||this.hideSuggestions,"ft-text-field--raised-label":this.focused||this.value!="","ft-text-field--with-icon":!!this.icon,"ft-text-field--with-password":this.password};return $`
1771
+ <div class="${Tt(e)}">
1759
1772
  <div class="ft-text-field--main-panel"
1760
1773
  @keydown=${this.handleKeyboardNavigation}
1761
1774
  @focusout=${this.onMainPanelBlur}>
@@ -1765,17 +1778,17 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
1765
1778
  ?raised=${this.focused||this.value!=""}
1766
1779
  ?error=${this.error}></ft-input-label>
1767
1780
  <div class="ft-text-field--input-panel">
1768
- ${this.outlined?H:L`
1781
+ ${this.outlined?V:$`
1769
1782
  <ft-ripple ?disabled=${this.disabled} activated></ft-ripple>
1770
1783
  `}
1771
- ${this.prefix?L`
1784
+ ${this.prefix?$`
1772
1785
  <ft-typography class="ft-text-field--prefix" variant="body1">
1773
1786
  ${this.prefix}
1774
1787
  </ft-typography>
1775
- `:H}
1788
+ `:V}
1776
1789
  <input type=${(t=this.type)!==null&&t!==void 0?t:this.password&&this.hidePassword?"password":"text"}
1777
- name=${js(this.name)}
1778
- maxlength=${js(this.maxLength||void 0)}
1790
+ name=${Ks(this.name)}
1791
+ maxlength=${Ks(this.maxLength||void 0)}
1779
1792
  aria-label="${this.label}"
1780
1793
  class="ft-typography--body1 ft-text-field--input"
1781
1794
  part="input"
@@ -1791,23 +1804,23 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
1791
1804
  <slot @slotchange=${()=>this.filterSuggestionsIfNeeded()}></slot>
1792
1805
  </div>
1793
1806
  </div>
1794
- ${this.helper?L`
1807
+ ${this.helper?$`
1795
1808
  <ft-typography class="ft-text-field--helper-text" variant="caption">
1796
1809
  ${this.helper}
1797
1810
  </ft-typography>
1798
- `:H}
1811
+ `:V}
1799
1812
  </div>
1800
- `}renderPasswordIcon(){return L`
1813
+ `}renderPasswordIcon(){return $`
1801
1814
  <ft-icon class="ft-text-field--icon"
1802
1815
  .variant=${this.iconVariant}
1803
1816
  .value=${this.hidePassword?this.passwordHiddenIcon:this.passwordRevealedIcon}
1804
1817
  @click=${()=>this.togglePasswordVisibility()}></ft-icon>
1805
- `}renderIcon(){return this.password?this.renderPasswordIcon():this.icon?L`
1818
+ `}renderIcon(){return this.password?this.renderPasswordIcon():this.icon?$`
1806
1819
  <ft-icon class="ft-text-field--icon"
1807
1820
  .variant=${this.iconVariant}
1808
1821
  .value=${this.icon}
1809
1822
  @click=${()=>{var t;return(t=this.input)===null||t===void 0?void 0:t.focus()}}></ft-icon>
1810
- `:H}update(t){super.update(t),(t.has("value")||t.has("filterSuggestions"))&&this.filterSuggestionsIfNeeded(),t.has("value")&&t.get("value")!=null&&(this.hideSuggestions=!1),t.has("dispatchedValue")&&t.get("dispatchedValue")!=null&&(this.hideSuggestions=!0)}filterSuggestionsIfNeeded(){this.filterSuggestions?(this.suggestions.forEach(t=>t.hidden=!t.getValue().toLowerCase().includes(this.value.toLowerCase())),this.visibleSuggestions=this.suggestions.filter(t=>!t.hidden)):this.visibleSuggestions=this.suggestions}contentAvailableCallback(t){super.contentAvailableCallback(t),t.has("focused")&&!this.hideSuggestions&&this.visibleSuggestions.length>0&&(this.suggestionsContainer.style.width=this.mainPanel.getBoundingClientRect().width+"px",Io(this.mainPanel,this.suggestionsContainer,"bottom").then(({x:e,y:i})=>{this.suggestionsContainer.style.left=`${e}px`,this.suggestionsContainer.style.top=`${i}px`}))}setValue(t,e=!1){this.value!==t&&(this.setInternalValue(t),this.dispatchEvent(new CustomEvent("live-change",{detail:t}))),e&&this.dispatchedValue!==t&&(this.dispatchedValue=t,this.dispatchEvent(new CustomEvent("change",{detail:t})))}handleInput(t){var e;let i=((e=this.input)===null||e===void 0?void 0:e.value)||"";this.setValue(i,t.key=="Escape"||t.key=="Enter")}handleClick(){this.hideSuggestions=!1}handleKeyboardNavigation(t){var e;if(t.key==="ArrowDown"||t.key==="ArrowUp"){t.preventDefault(),t.stopPropagation(),this.hideSuggestions=!1;let i=this.visibleSuggestions.findIndex(a=>a.matches(":focus-within")),n;t.key==="ArrowDown"?n=i<this.visibleSuggestions.length-1?i+1:0:n=i>0?i-1:this.visibleSuggestions.length-1,(e=this.visibleSuggestions[n])===null||e===void 0||e.focus()}(t.key=="Escape"||t.key=="Enter")&&(this.hideSuggestions=!0)}onSuggestionSelected(t){var e;this.setValue(t.detail,!0),(e=this.input)===null||e===void 0||e.focus(),setTimeout(()=>this.hideSuggestions=!0,0)}onFocus(){this.focused=!0,this.hideSuggestions=!1}onMainPanelBlur(){var t,e;!((t=this.mainPanel)===null||t===void 0)&&t.matches(":focus-within")||(this.focused=!1,this.setValue(((e=this.input)===null||e===void 0?void 0:e.value)||"",!0))}togglePasswordVisibility(){this.hidePassword=!this.hidePassword}};q.elementDefinitions={"ft-input-label":Bt,"ft-ripple":et,"ft-typography":bt,"ft-icon":Ot};q.styles=[Jr,za,sp];nt([g()],q.prototype,"label",void 0);nt([g({noAccessor:!0})],q.prototype,"value",null);nt([z()],q.prototype,"dispatchedValue",void 0);nt([g()],q.prototype,"helper",void 0);nt([g({type:Boolean})],q.prototype,"outlined",void 0);nt([g({type:Boolean})],q.prototype,"disabled",void 0);nt([g({type:Boolean})],q.prototype,"error",void 0);nt([g({type:Boolean})],q.prototype,"fixedMenuPosition",void 0);nt([g()],q.prototype,"prefix",void 0);nt([g()],q.prototype,"icon",void 0);nt([g()],q.prototype,"name",void 0);nt([g()],q.prototype,"type",void 0);nt([g()],q.prototype,"passwordHiddenIcon",void 0);nt([g()],q.prototype,"passwordRevealedIcon",void 0);nt([g()],q.prototype,"iconVariant",void 0);nt([g({type:Boolean})],q.prototype,"filterSuggestions",void 0);nt([g({type:Number})],q.prototype,"maxLength",void 0);nt([g({type:Boolean})],q.prototype,"password",void 0);nt([z()],q.prototype,"focused",void 0);nt([z()],q.prototype,"hidePassword",void 0);nt([z()],q.prototype,"hideSuggestions",void 0);nt([z()],q.prototype,"visibleSuggestions",void 0);nt([X(".ft-text-field--main-panel")],q.prototype,"mainPanel",void 0);nt([X(".ft-text-field--input")],q.prototype,"input",void 0);nt([X(".ft-text-field--suggestions")],q.prototype,"suggestionsContainer",void 0);nt([Rn({selector:"ft-text-field-suggestion"})],q.prototype,"suggestions",void 0);var lp=P`
1823
+ `:V}update(t){super.update(t),(t.has("value")||t.has("filterSuggestions"))&&this.filterSuggestionsIfNeeded(),t.has("value")&&t.get("value")!=null&&(this.hideSuggestions=!1),t.has("dispatchedValue")&&t.get("dispatchedValue")!=null&&(this.hideSuggestions=!0)}filterSuggestionsIfNeeded(){this.filterSuggestions?(this.suggestions.forEach(t=>t.hidden=!t.getValue().toLowerCase().includes(this.value.toLowerCase())),this.visibleSuggestions=this.suggestions.filter(t=>!t.hidden)):this.visibleSuggestions=this.suggestions}contentAvailableCallback(t){super.contentAvailableCallback(t),t.has("focused")&&!this.hideSuggestions&&this.visibleSuggestions.length>0&&(this.suggestionsContainer.style.width=this.mainPanel.getBoundingClientRect().width+"px",$o(this.mainPanel,this.suggestionsContainer,"bottom").then(({x:e,y:i})=>{this.suggestionsContainer.style.left=`${e}px`,this.suggestionsContainer.style.top=`${i}px`}))}setValue(t,e=!1){this.value!==t&&(this.setInternalValue(t),this.dispatchEvent(new CustomEvent("live-change",{detail:t}))),e&&this.dispatchedValue!==t&&(this.dispatchedValue=t,this.dispatchEvent(new CustomEvent("change",{detail:t})))}handleInput(t){var e;let i=((e=this.input)===null||e===void 0?void 0:e.value)||"";this.setValue(i,t.key=="Escape"||t.key=="Enter")}handleClick(){this.hideSuggestions=!1}handleKeyboardNavigation(t){var e;if(t.key==="ArrowDown"||t.key==="ArrowUp"){t.preventDefault(),t.stopPropagation(),this.hideSuggestions=!1;let i=this.visibleSuggestions.findIndex(a=>a.matches(":focus-within")),n;t.key==="ArrowDown"?n=i<this.visibleSuggestions.length-1?i+1:0:n=i>0?i-1:this.visibleSuggestions.length-1,(e=this.visibleSuggestions[n])===null||e===void 0||e.focus()}(t.key=="Escape"||t.key=="Enter")&&(this.hideSuggestions=!0)}onSuggestionSelected(t){var e;this.setValue(t.detail,!0),(e=this.input)===null||e===void 0||e.focus(),setTimeout(()=>this.hideSuggestions=!0,0)}onFocus(){this.focused=!0,this.hideSuggestions=!1}onMainPanelBlur(){var t,e;!((t=this.mainPanel)===null||t===void 0)&&t.matches(":focus-within")||(this.focused=!1,this.setValue(((e=this.input)===null||e===void 0?void 0:e.value)||"",!0))}togglePasswordVisibility(){this.hidePassword=!this.hidePassword}};X.elementDefinitions={"ft-input-label":Ut,"ft-ripple":et,"ft-typography":xt,"ft-icon":Ot};X.styles=[Qr,ja,pp];at([g()],X.prototype,"label",void 0);at([g({noAccessor:!0})],X.prototype,"value",null);at([U()],X.prototype,"dispatchedValue",void 0);at([g()],X.prototype,"helper",void 0);at([g({type:Boolean})],X.prototype,"outlined",void 0);at([g({type:Boolean})],X.prototype,"disabled",void 0);at([g({type:Boolean})],X.prototype,"error",void 0);at([g({type:Boolean})],X.prototype,"fixedMenuPosition",void 0);at([g()],X.prototype,"prefix",void 0);at([g()],X.prototype,"icon",void 0);at([g()],X.prototype,"name",void 0);at([g()],X.prototype,"type",void 0);at([g()],X.prototype,"passwordHiddenIcon",void 0);at([g()],X.prototype,"passwordRevealedIcon",void 0);at([g()],X.prototype,"iconVariant",void 0);at([g({type:Boolean})],X.prototype,"filterSuggestions",void 0);at([g({type:Number})],X.prototype,"maxLength",void 0);at([g({type:Boolean})],X.prototype,"password",void 0);at([U()],X.prototype,"focused",void 0);at([U()],X.prototype,"hidePassword",void 0);at([U()],X.prototype,"hideSuggestions",void 0);at([U()],X.prototype,"visibleSuggestions",void 0);at([Q(".ft-text-field--main-panel")],X.prototype,"mainPanel",void 0);at([Q(".ft-text-field--input")],X.prototype,"input",void 0);at([Q(".ft-text-field--suggestions")],X.prototype,"suggestionsContainer",void 0);at([In({selector:"ft-text-field-suggestion"})],X.prototype,"suggestions",void 0);var up=L`
1811
1824
  .ft-text-field-suggestion {
1812
1825
  position: relative;
1813
1826
  padding: 8px 16px;
@@ -1832,7 +1845,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
1832
1845
  slot {
1833
1846
  pointer-events: none;
1834
1847
  }
1835
- `;var Ks=function(r,t,e,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,t,e,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(t,e,a):s(t,e))||a);return n>3&&a&&Object.defineProperty(t,e,a),a},Gs=class extends CustomEvent{constructor(t){super("suggestion-selected",{detail:t,bubbles:!0,composed:!0})}},Le=class extends V{render(){return L`
1848
+ `;var qs=function(r,t,e,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,t,e,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(t,e,a):s(t,e))||a);return n>3&&a&&Object.defineProperty(t,e,a),a},Zs=class extends CustomEvent{constructor(t){super("suggestion-selected",{detail:t,bubbles:!0,composed:!0})}},Le=class extends j{render(){return $`
1836
1849
  <div class="ft-text-field-suggestion"
1837
1850
  tabindex="-1"
1838
1851
  @keydown=${this.onKeyDown}
@@ -1844,17 +1857,17 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
1844
1857
  <slot></slot>
1845
1858
  </ft-typography>
1846
1859
  </div>
1847
- `}focus(t){var e;(e=this.container)===null||e===void 0||e.focus(t)}click(){var t;(t=this.container)===null||t===void 0||t.click()}confirmSuggestion(){this.dispatchEvent(new Gs(this.getValue()))}getValue(){return this.value||this.textContent}get textContent(){return this.assignedNodes.map(t=>t.textContent).join("").trim()}onKeyDown(t){["Enter"," "].includes(t.key)&&(t.preventDefault(),t.stopPropagation(),this.confirmSuggestion())}};Le.elementDefinitions={"ft-ripple":et,"ft-typography":bt,"ft-icon":Ot};Le.styles=lp;Ks([g()],Le.prototype,"value",void 0);Ks([X(".ft-text-field-suggestion")],Le.prototype,"container",void 0);Ks([go()],Le.prototype,"assignedNodes",void 0);G("ft-text-field")(q);G("ft-text-field-suggestion")(Le);var cp=r=>Ne.get({name:"ft-reader-"+r,initialState:{mapId:void 0,visibleTopics:[],map:void 0,toc:void 0,pagesToc:void 0,paginationConfiguration:void 0,currentPage:void 0,scrollTarget:void 0,configuration:void 0,searchInDocumentQuery:void 0,relatives:void 0}});var Zs=class{constructor(t,e){this.mapId=t,this.paginatedToc=e,this.nodeByTocId={},this.nodeByUrl={},this.duplicatedPrettyUrls=new Set,this.pages=[],this.pageByTocId={}}build(){return{paginationConfiguration:this.paginatedToc.configuration,toc:this.convertNodes(this.paginatedToc.paginatedToc,1),pagesToc:this.extractPagesToc(this.paginatedToc.paginatedToc,1),nodeByTocId:this.nodeByTocId,nodeByUrl:this.nodeByUrl,duplicatedPrettyUrls:this.duplicatedPrettyUrls,pages:this.pages,pageByTocId:this.pageByTocId}}extractPagesToc(t,e,i){return t.flatMap(n=>(n.pageConfiguration&&this.registerPage(this.buildPage(n,i)),n.tocId==null?this.extractPagesToc(n.children,e,i):[{tocId:n.tocId,title:n.title,depth:e,children:this.extractPagesToc(n.children,e+1,n.tocId)}]))}convertNodes(t,e,i){return t.flatMap(n=>{var a,s,l;if(n.tocId==null)return[...this.convertSectionNodes((a=n.pageToc)!==null&&a!==void 0?a:[],e,n.tocId),...this.convertNodes(n.children,e,n.tocId)];let d=(s=n.prettyUrl)===null||s===void 0?void 0:s.replace(/^\//,""),p={tocId:n.tocId,contentId:n.contentId,title:n.title,hasRating:n.hasRating,origin:n.origin,prettyUrl:d,depth:e,parentTocId:i,children:[]};this.register(p);let f=this.convertSectionNodes((l=n.pageToc)!==null&&l!==void 0?l:[],e+1,n.tocId),h=this.convertNodes(n.children,e+1,p.tocId);return p.children=[...f,...h],[p]})}convertSectionNodes(t,e,i){return t.flatMap(n=>{var a;let s=(a=n.prettyUrl)===null||a===void 0?void 0:a.replace(/^\//,""),l={...n,prettyUrl:s,depth:e,parentTocId:i,children:[]};return this.register(l),l.children=this.convertSectionNodes(n.children,e+1,n.tocId),[l]})}buildPage(t,e){var i,n,a,s,l,d;let p={number:this.pages.length+1,title:(i=t.title)!==null&&i!==void 0?i:"",rootTocId:(n=t.tocId)!==null&&n!==void 0?n:"root",toc:((a=t.pageToc)!==null&&a!==void 0?a:[]).map(m=>this.nodeByTocId[m.tocId]),topics:[],hiddenTopics:[],breadcrumb:e?this.buildBreadcrumb(this.nodeByTocId[e]):[]},f=(m,v)=>(v?p.topics:p.hiddenTopics).push(m),h=(l=(s=t.pageConfiguration)===null||s===void 0?void 0:s.parentsVisibility)!==null&&l!==void 0?l:[];return p.breadcrumb.forEach((m,v)=>{f(m,h[v])}),t.tocId&&f(t.tocId,t.pageConfiguration.isVisible),p.topics.push(...this.tocIds((d=t.pageToc)!==null&&d!==void 0?d:[])),p}registerPage(t){for(let e of[...t.topics,...t.hiddenTopics])this.pageByTocId[e]||(this.pageByTocId[e]=t);this.pages.push(t)}tocIds(t){return t.flatMap(e=>[e.tocId,...this.tocIds(e.children)])}buildBreadcrumb(t){let e=[t.tocId];for(;t?.parentTocId;)e.unshift(t.parentTocId),t=this.nodeByTocId[t.parentTocId];return e}register(t){t.prettyUrl&&(this.nodeByUrl[t.prettyUrl]==null?this.nodeByUrl[t.prettyUrl]=t:this.duplicatedPrettyUrls.add(t.prettyUrl)),this.nodeByUrl[`${this.mapId}/${t.tocId}`]=t,this.nodeByTocId[t.tocId]=t}},Gi=class{convertPaginatedToc(t,e){return new Zs(t,e).build()}};var Ki=class extends ge{get mapId(){return this._mapId}set mapId(t){t!==this._mapId&&this.clear(),this._mapId=t}constructor(t,e,i){super(!1,e),this.converter=t,this._mapId=i,this.initCache()}async withMapId(t){return this._mapId?t(this._mapId):void 0}initCache(){this.cache.registerFinal("configuration",()=>this.api.getReaderConfiguration()),this.cache.register("map",()=>this.withMapId(t=>this.fetchMap(t))),this.cache.register("enrichedToc",()=>this.withMapId(t=>this.fetchPages(t).then(e=>this.converter.convertPaginatedToc(t,e)))),this.cache.register("ratingSummary",()=>{var t,e;return Cr((e=(t=M.getState().session)===null||t===void 0?void 0:t.profile.roles)!==null&&e!==void 0?e:[],"RATING_USER")?this.withMapId(n=>this.fetchMapRating(n)):Promise.resolve()})}clear(){this.cache.clearAll()}getMap(){return this.cache.get("map")}getMapNow(){return this.cache.getNow("map")}getConfiguration(){return this.cache.get("configuration")}getEnrichedToc(){return this.cache.get("enrichedToc")}get enrichedToc(){return this.cache.getNow("enrichedToc")}async getPaginationConfiguration(){return(await this.getEnrichedToc()).paginationConfiguration}async getToc(){return(await this.getEnrichedToc()).toc}async getPagesToc(){return(await this.getEnrichedToc()).pagesToc}async getTocNode(t){return(await this.getEnrichedToc()).nodeByTocId[t]}getTocNodeNow(t){var e;return(e=this.enrichedToc)===null||e===void 0?void 0:e.nodeByTocId[t]}getTocNodeNowByUrl(t){var e,i;let n=this.getMapNow();return n?.prettyUrl==t||`${n?.id}/root`===t?(e=this.enrichedToc)===null||e===void 0?void 0:e.toc[0]:(i=this.enrichedToc)===null||i===void 0?void 0:i.nodeByUrl[t]}async getPage(t){let e=await this.getEnrichedToc();return e.pages[t-1]||e.pages[0]}async getPageByTocId(t){let e=await this.getEnrichedToc();return e.pageByTocId[t]||e.pages[0]}getTopicInfo(t){return this.cache.get("topic-"+t.tocId,()=>this.fetchTopicMetadata(t))}getTopicContent(t){return this.cache.get("topic-content-"+t.tocId,()=>this.fetchTopicHTMLContent(t))}getAttachments(){return this.cache.get("map-attachments",()=>this.fetchAttachments())}getRelativesForDocument(t,e){return this.cache.get("document-relatives-"+t+"-"+e.join("-"),()=>this.fetchRelativesForDocument(t,e))}getRelativesForTopicInMap(t,e,i){return this.cache.get("topic-relatives-"+[t,e,...i].join("-"),()=>this.fetchRelativesForTopicInMap(t,e,i))}getAttachmentDownloadLink(t){return this.makeAbsolute(`${this.api.endpoints.khub.maps.mapId(this.mapId).attachments.attachmentId(t).content}?download=true`)}getLink(t,e,i){let n=this.getNavigationData(t,e,i),a=this.getReaderLinkPrefix()+(n.prettyUrl?n.prettyUrl:`${n.mapId}/${n.tocId}`),s=new URL(a,this.api.tenantBaseUrl);return n.page!=null&&s.searchParams.set("page",`${n.page}`),n.prettyUrlDuplicated&&s.searchParams.set("tocId",n.tocId),n.section!=null&&s.searchParams.set("section",n.section),s.href}getNavigationData(t,e,i){var n,a;t=t||"root";let s=this.enrichedToc,l=s?.pageByTocId[t],d=s?.nodeByTocId[t],p=d?.prettyUrl;return{mapId:this.mapId,tocId:t,topicTitle:(n=d?.title)!==null&&n!==void 0?n:"",page:e&&l&&l.number!==e?e:void 0,prettyUrl:p?.replace(/^r\//,""),prettyUrlDuplicated:(a=s?.duplicatedPrettyUrls.has(p??""))!==null&&a!==void 0?a:!1,section:i}}async getAccurateNavigationData(t,e,i){return await this.getEnrichedToc(),this.getNavigationData(t,e,i)}getRatingSummary(){return this.cache.get("ratingSummary")}reloadRating(){return this.cache.clear("ratingSummary"),this.getRatingSummary()}getMapRating(){return this.getRatingSummary().then(t=>t?.publication)}getTopicRating(t){return this.getRatingSummary().then(e=>{var i;return e?{type:e.topics.type,rating:(i=e.topics)===null||i===void 0?void 0:i.ratings.find(n=>n.tocId===t)}:void 0})}rateMap(t,e){return this.makeRateMapRequest(t,e).then(()=>this.clearRatingIfNecessary())}unrateMap(){return this.makeUnrateMapRequest().then(()=>this.clearRatingIfNecessary())}sendMapFeedback(t,e){return this.makeMapFeedbackRequest(t,e)}rateTopic(t,e,i){return this.makeRateTopicRequest(t,e,i).then(()=>this.clearRatingIfNecessary())}unrateTopic(t){return this.makeUnrateTopicRequest(t).then(()=>this.clearRatingIfNecessary())}async clearRatingIfNecessary(){let t=M.getState().session;t?.sessionAuthenticated&&this.cache.clear("ratingSummary")}sendTopicFeedback(t,e,i){return this.makeTopicFeedbackRequest(t,e,i)}fontsStylesheet(){return this.api.makeAbsolute(this.api.endpoints.stylesheets.fonts)}themeStylesheet(){return this.api.makeAbsolute(this.api.endpoints.stylesheets.theme)}buildBreadcrumb(t){let e=this.getTocNodeNow(t),i=[{tocId:e.tocId,title:e.title}],n=this.getTocNodeNow(e.parentTocId);for(;n;)i.unshift({tocId:n.tocId,title:n.title}),n=this.getTocNodeNow(n.parentTocId);return i}isFeatureAccessible(t,{session:e,ratingType:i}){var n;if(!this.isFeatureAvailable(t))return!1;switch(t){case Yt.FEEDBACK:return Cr(e??[],pt.FEEDBACK_USER);case Yt.RATING:return Cr(e??[],pt.RATING_USER)&&i!=null&&i!==Ie.NO_RATING;case Yt.PRINT:return Cr(e??[],pt.PRINT_USER);case Yt.BOOKMARK:return!!e?.sessionAuthenticated;case Yt.COLLECTIONS:return Cr(e??[],pt.COLLECTION_USER);case Yt.PERSONAL_BOOKS:return Cr(e??[],pt.PERSONAL_BOOK_USER)&&!(!((n=this.getMapNow())===null||n===void 0)&&n.pbkConfidential);default:return!1}}makeAbsolute(t){return this.api.makeAbsolute(t)}};var Zi=class r extends Ki{static async build(t){return new r(new Gi,void 0,t)}clear(){super.clear(),this.fingerprint=void 0}async fetchMap(t){let e=await this.api.getMap(t);return this.fingerprint=e.fingerprint,e}fetchMapRating(t){return this.api.getMapRating(t)}async fetchPages(t){return await this.getMap(),this.api.getPages(t,this.fingerprint)}fetchTopicHTMLContent(t){return this.api.getTopicHTMLContent(this.mapId,t.contentId,"DESIGNED_READER",this.fingerprint)}fetchTopicMetadata(t){return this.api.getTopic(this.mapId,t.contentId,this.fingerprint)}fetchAttachments(){return this.api.getMapAttachments(this.mapId).catch(()=>[])}fetchRelativesForDocument(t,e){let i={query:"",paging:{page:1,perPage:-1},scope:"DOCUMENTS",metadataFilters:[{key:t,valueFilter:{negative:!1,values:e}}],sort:[],facets:[]};return this.api.search(i)}fetchRelativesForTopicInMap(t,e,i){let n={query:"",paging:{page:1,perPage:1},scope:"ALL_TOPICS",metadataFilters:[{key:e,valueFilter:{negative:!1,values:i}},{key:"ft:publicationId",valueFilter:{negative:!1,values:[t]}}],sort:[],facets:[]};return this.api.search(n)}makeMapFeedbackRequest(t,e){return this.api.sendMapFeedback(this.mapId,t,e)}makeRateMapRequest(t,e){return this.api.rateMap(this.mapId,t,e)}makeRateTopicRequest(t,e,i){return this.api.rateTopic(this.mapId,t,e,i)}makeTopicFeedbackRequest(t,e,i){return this.api.sendTopicFeedback(this.mapId,t,e,i)}makeUnrateMapRequest(){return this.api.unrateMap(this.mapId)}makeUnrateTopicRequest(t){return this.api.unrateTopic(this.mapId,t)}getReaderLinkPrefix(){return"r/"}isFeatureAvailable(t){return!0}};var qi=class r{static build(t,e){return new r(cp(t.trim()||"context"),e??Zi.build)}loaded(){return Un(()=>this._loaded)}constructor(t,e,i){this.store=t,this.clusteringHelperProvider=i,this.metadataForSwitchToRelatives=new Set,this._loaded=!1,this.loadDebouncer=new at(10),this.initService(e)}async initService(t){return this.service=await t(),this.service.mapId=this.store.getState().mapId,this.reload()}async setMapId(t){t!==this.store.getState().mapId&&(this.store.actions.mapId(t),this.service&&(this.service.mapId=t),await this.reload())}setVisibleTopics(t){this.store.actions.visibleTopics(t)}async awaitService(){return vo(()=>this.service)}async navigateToTopic(t,e,i){await this.loaded();let n=await this.awaitService(),a=await(i!=null?n.getPage(i):n.getPageByTocId(t??"root"));this.store.actions.currentPage(a),this.store.actions.scrollTarget({tocId:this.resolveValidNonRootTocId(t,a),section:e})}resolveValidNonRootTocId(t,e){var i,n,a;let s=(i=t==="root"?void 0:t)!==null&&i!==void 0?i:e.rootTocId;return e.topics.includes(s)?s:(a=(n=e.topics[0])!==null&&n!==void 0?n:e.hiddenTopics[0])!==null&&a!==void 0?a:"root"}async navigateToPage(t){await this.loaded();let i=await(await this.awaitService()).getPage(t);this.store.actions.currentPage(i)}scrollDone(){this.store.actions.scrollTarget({})}async load(){var t;!((t=this.service)===null||t===void 0)&&t.mapId&&this.store.getState().map==null&&await this.loadDebouncer.run(()=>this.fetchData())}clear(){var t;this._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),(t=this.service)===null||t===void 0||t.clear(),this.clusteringHelper=void 0}reload(){return this.clear(),this.load()}async fetchData(){var t,e,i,n,a;try{await Promise.all([(t=this.service)===null||t===void 0?void 0:t.getConfiguration().then(s=>this.store.actions.configuration(s)),(e=this.service)===null||e===void 0?void 0:e.getMap().then(s=>this.store.actions.map(s)),(i=this.service)===null||i===void 0?void 0:i.getToc().then(s=>this.store.actions.toc(s)),(n=this.service)===null||n===void 0?void 0:n.getPagesToc().then(s=>this.store.actions.pagesToc(s)),(a=this.service)===null||a===void 0?void 0:a.getPaginationConfiguration().then(s=>this.store.actions.paginationConfiguration(s))]),this.metadataForSwitchToRelatives.size>0&&this.fetchRelatives(),this._loaded=!0}catch(s){this.errorHandler&&!(s instanceof fr)&&this.errorHandler(s)}}fetchRelatives(){var t,e,i;let n=(t=this.store.getState().map)===null||t===void 0?void 0:t.metadata.filter(a=>{var s;return a.key==((s=this.store.getState().configuration)===null||s===void 0?void 0:s.relativePivotMetadata)}).flatMap(a=>a.values);n!==void 0&&n.length>0?(e=this.service)===null||e===void 0||e.getRelativesForDocument((i=this.store.getState().configuration)===null||i===void 0?void 0:i.relativePivotMetadata,n).then(a=>{let s=a.results.flatMap(l=>l.entries);this.store.actions.relatives(s),this.updateClusteringHelper()}):this.updateClusteringHelper()}updateClusteringHelper(){this.clusteringHelper=this.createClusteringHelper(),this.clusteringHelper&&this.store.eventBus.dispatchEvent(new CustomEvent("clustering-helper-created"))}createClusteringHelper(){var t,e;if(this.clusteringHelperProvider)return this.clusteringHelperProvider();let i=this.store.getState().relatives;if(i){let n=i.find(s=>{var l;return((l=s.map)===null||l===void 0?void 0:l.mapId)==this.store.getState().mapId}),a=(e=(t=M.getState().metadataConfiguration)===null||t===void 0?void 0:t.descriptors)!==null&&e!==void 0?e:[];return new bo(i,n,this.metadataForSwitchToRelatives,a)}}async navigateToRelativeTopicIfFound(t){var e,i,n;await this.loaded();let a=await vo(()=>{var p;return(p=this.store.getState().configuration)===null||p===void 0?void 0:p.relativeTopicPivotMetadata}),s=this.store.getState().mapId,d=await(await this.awaitService()).getRelativesForTopicInMap(s,a,[t]);if(!((n=(i=(e=d?.results)===null||e===void 0?void 0:e[0])===null||i===void 0?void 0:i.entries)===null||n===void 0)&&n[0]){let p=d.results[0].entries[0].topic.tocId;return await this.navigateToTopic(p),!0}else return await this.navigateToTopic("root"),!1}setSearchInDocumentQuery(t){this.store.actions.searchInDocumentQuery(t)}registerMetadataForSwitchToRelatives(t){this.metadataForSwitchToRelatives.add(t),this.store.getState().relatives==null?this.fetchRelatives():this.updateClusteringHelper()}unregisterMetadataForSwitchToRelatives(t){this.metadataForSwitchToRelatives.delete(t),this.updateClusteringHelper()}};var dp=P`
1848
- `;var Yi=class extends CustomEvent{constructor(t,e){super("ft-reader-map-loaded",{detail:{map:t,toc:e}})}},Xi=class extends CustomEvent{constructor(t,e){super("ft-reader-visible-topics-change",{detail:{visibleTopics:e}})}},Ji=class extends CustomEvent{constructor(t){super("ft-reader-navigation-done",{detail:t})}},Qi=class extends CustomEvent{constructor(t){super("ft-reader-load-error",{detail:t})}},tn=class extends Event{constructor(){super("ft-reader-map-not-found")}},en=class extends Event{constructor(){super("ft-reader-map-unauthorized")}},rn=class extends Event{constructor(){super("ft-reader-map-forbidden")}},on=class extends Event{constructor(){super("ft-reader-topic-relative-not-found",{bubbles:!0,composed:!0})}};var nn=class{constructor(t){this.stateManager=t}searchInDocument(t){this.stateManager.setSearchInDocumentQuery(t??"")}};var Vt=function(r,t,e,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,t,e,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(t,e,a):s(t,e))||a);return n>3&&a&&Object.defineProperty(t,e,a),a},sh=r=>t=>+(t??"NaN")>0?+t:r,Et=class extends Zt{constructor(){super(),this.visibleTopics=[],this.scrollToTargetDebouncer=new at(5),this.navigationDebouncer=new at(10),this.mapLoadedEventDebouncer=new at(50),this.addStore(M)}render(){return L`
1860
+ `}focus(t){var e;(e=this.container)===null||e===void 0||e.focus(t)}click(){var t;(t=this.container)===null||t===void 0||t.click()}confirmSuggestion(){this.dispatchEvent(new Zs(this.getValue()))}getValue(){return this.value||this.textContent}get textContent(){return this.assignedNodes.map(t=>t.textContent).join("").trim()}onKeyDown(t){["Enter"," "].includes(t.key)&&(t.preventDefault(),t.stopPropagation(),this.confirmSuggestion())}};Le.elementDefinitions={"ft-ripple":et,"ft-typography":xt,"ft-icon":Ot};Le.styles=up;qs([g()],Le.prototype,"value",void 0);qs([Q(".ft-text-field-suggestion")],Le.prototype,"container",void 0);qs([bo()],Le.prototype,"assignedNodes",void 0);Z("ft-text-field")(X);Z("ft-text-field-suggestion")(Le);var fp=r=>Ne.get({name:"ft-reader-"+r,initialState:{mapId:void 0,visibleTopics:[],map:void 0,toc:void 0,pagesToc:void 0,paginationConfiguration:void 0,currentPage:void 0,scrollTarget:void 0,configuration:void 0,searchInDocumentQuery:void 0,relatives:void 0}});var Ys=class{constructor(t,e){this.mapId=t,this.paginatedToc=e,this.nodeByTocId={},this.nodeByUrl={},this.duplicatedPrettyUrls=new Set,this.pages=[],this.pageByTocId={}}build(){return{paginationConfiguration:this.paginatedToc.configuration,toc:this.convertNodes(this.paginatedToc.paginatedToc,1),pagesToc:this.extractPagesToc(this.paginatedToc.paginatedToc,1),nodeByTocId:this.nodeByTocId,nodeByUrl:this.nodeByUrl,duplicatedPrettyUrls:this.duplicatedPrettyUrls,pages:this.pages,pageByTocId:this.pageByTocId}}extractPagesToc(t,e,i){return t.flatMap(n=>(n.pageConfiguration&&this.registerPage(this.buildPage(n,i)),n.tocId==null?this.extractPagesToc(n.children,e,i):[{tocId:n.tocId,title:n.title,depth:e,children:this.extractPagesToc(n.children,e+1,n.tocId)}]))}convertNodes(t,e,i){return t.flatMap(n=>{var a,s,l;if(n.tocId==null)return[...this.convertSectionNodes((a=n.pageToc)!==null&&a!==void 0?a:[],e,n.tocId),...this.convertNodes(n.children,e,n.tocId)];let d=(s=n.prettyUrl)===null||s===void 0?void 0:s.replace(/^\//,""),p={tocId:n.tocId,contentId:n.contentId,title:n.title,hasRating:n.hasRating,origin:n.origin,prettyUrl:d,depth:e,parentTocId:i,children:[]};this.register(p);let f=this.convertSectionNodes((l=n.pageToc)!==null&&l!==void 0?l:[],e+1,n.tocId),h=this.convertNodes(n.children,e+1,p.tocId);return p.children=[...f,...h],[p]})}convertSectionNodes(t,e,i){return t.flatMap(n=>{var a;let s=(a=n.prettyUrl)===null||a===void 0?void 0:a.replace(/^\//,""),l={...n,prettyUrl:s,depth:e,parentTocId:i,children:[]};return this.register(l),l.children=this.convertSectionNodes(n.children,e+1,n.tocId),[l]})}buildPage(t,e){var i,n,a,s,l,d;let p={number:this.pages.length+1,title:(i=t.title)!==null&&i!==void 0?i:"",rootTocId:(n=t.tocId)!==null&&n!==void 0?n:"root",toc:((a=t.pageToc)!==null&&a!==void 0?a:[]).map(y=>this.nodeByTocId[y.tocId]),topics:[],hiddenTopics:[],breadcrumb:e?this.buildBreadcrumb(this.nodeByTocId[e]):[]},f=(y,v)=>(v?p.topics:p.hiddenTopics).push(y),h=(l=(s=t.pageConfiguration)===null||s===void 0?void 0:s.parentsVisibility)!==null&&l!==void 0?l:[];return p.breadcrumb.forEach((y,v)=>{f(y,h[v])}),t.tocId&&f(t.tocId,t.pageConfiguration.isVisible),p.topics.push(...this.tocIds((d=t.pageToc)!==null&&d!==void 0?d:[])),p}registerPage(t){for(let e of[...t.topics,...t.hiddenTopics])this.pageByTocId[e]||(this.pageByTocId[e]=t);this.pages.push(t)}tocIds(t){return t.flatMap(e=>[e.tocId,...this.tocIds(e.children)])}buildBreadcrumb(t){let e=[t.tocId];for(;t?.parentTocId;)e.unshift(t.parentTocId),t=this.nodeByTocId[t.parentTocId];return e}register(t){t.prettyUrl&&(this.nodeByUrl[t.prettyUrl]==null?this.nodeByUrl[t.prettyUrl]=t:this.duplicatedPrettyUrls.add(t.prettyUrl)),this.nodeByUrl[`${this.mapId}/${t.tocId}`]=t,this.nodeByTocId[t.tocId]=t}},qi=class{convertPaginatedToc(t,e){return new Ys(t,e).build()}};var Yi=class extends ge{get mapId(){return this._mapId}set mapId(t){t!==this._mapId&&this.clear(),this._mapId=t}constructor(t,e,i){super(!1,e),this.converter=t,this._mapId=i,this.initCache()}async withMapId(t){return this._mapId?t(this._mapId):void 0}initCache(){this.cache.registerFinal("configuration",()=>this.api.getReaderConfiguration()),this.cache.register("map",()=>this.withMapId(t=>this.fetchMap(t))),this.cache.register("enrichedToc",()=>this.withMapId(t=>this.fetchPages(t).then(e=>this.converter.convertPaginatedToc(t,e)))),this.cache.register("ratingSummary",()=>{var t,e;return Er((e=(t=M.getState().session)===null||t===void 0?void 0:t.profile.roles)!==null&&e!==void 0?e:[],"RATING_USER")?this.withMapId(n=>this.fetchMapRating(n)):Promise.resolve()})}clear(){this.cache.clearAll()}getMap(){return this.cache.get("map")}getMapNow(){return this.cache.getNow("map")}getConfiguration(){return this.cache.get("configuration")}getEnrichedToc(){return this.cache.get("enrichedToc")}get enrichedToc(){return this.cache.getNow("enrichedToc")}async getPaginationConfiguration(){return(await this.getEnrichedToc()).paginationConfiguration}async getToc(){return(await this.getEnrichedToc()).toc}async getPagesToc(){return(await this.getEnrichedToc()).pagesToc}async getTocNode(t){return(await this.getEnrichedToc()).nodeByTocId[t]}getTocNodeNow(t){var e;return(e=this.enrichedToc)===null||e===void 0?void 0:e.nodeByTocId[t]}getTocNodeNowByUrl(t){var e,i;let n=this.getMapNow();return n?.prettyUrl==t||`${n?.id}/root`===t?(e=this.enrichedToc)===null||e===void 0?void 0:e.toc[0]:(i=this.enrichedToc)===null||i===void 0?void 0:i.nodeByUrl[t]}async getPage(t){let e=await this.getEnrichedToc();return e.pages[t-1]||e.pages[0]}async getPageByTocId(t){let e=await this.getEnrichedToc();return e.pageByTocId[t]||e.pages[0]}getTopicInfo(t){return this.cache.get("topic-"+t.tocId,()=>this.fetchTopicMetadata(t))}getTopicContent(t){return this.cache.get("topic-content-"+t.tocId,()=>this.fetchTopicHTMLContent(t))}getAttachments(){return this.cache.get("map-attachments",()=>this.fetchAttachments())}getRelativesForDocument(t,e){return this.cache.get("document-relatives-"+t+"-"+e.join("-"),()=>this.fetchRelativesForDocument(t,e))}getRelativesForTopicInMap(t,e,i){return this.cache.get("topic-relatives-"+[t,e,...i].join("-"),()=>this.fetchRelativesForTopicInMap(t,e,i))}getAttachmentDownloadLink(t){return this.makeAbsolute(`${this.api.endpoints.khub.maps.mapId(this.mapId).attachments.attachmentId(t).content}?download=true`)}getLink(t,e,i){let n=this.getNavigationData(t,e,i),a=this.getReaderLinkPrefix()+(n.prettyUrl?n.prettyUrl:`${n.mapId}/${n.tocId}`),s=new URL(a,this.api.tenantBaseUrl);return n.page!=null&&s.searchParams.set("page",`${n.page}`),n.prettyUrlDuplicated&&s.searchParams.set("tocId",n.tocId),n.section!=null&&s.searchParams.set("section",n.section),s.href}getNavigationData(t,e,i){var n,a;t=t||"root";let s=this.enrichedToc,l=s?.pageByTocId[t],d=s?.nodeByTocId[t],p=d?.prettyUrl;return{mapId:this.mapId,tocId:t,topicTitle:(n=d?.title)!==null&&n!==void 0?n:"",page:e&&l&&l.number!==e?e:void 0,prettyUrl:p?.replace(/^r\//,""),prettyUrlDuplicated:(a=s?.duplicatedPrettyUrls.has(p??""))!==null&&a!==void 0?a:!1,section:i}}async getAccurateNavigationData(t,e,i){return await this.getEnrichedToc(),this.getNavigationData(t,e,i)}getRatingSummary(){return this.cache.get("ratingSummary")}reloadRating(){return this.cache.clear("ratingSummary"),this.getRatingSummary()}getMapRating(){return this.getRatingSummary().then(t=>t?.publication)}getTopicRating(t){return this.getRatingSummary().then(e=>{var i;return e?{type:e.topics.type,rating:(i=e.topics)===null||i===void 0?void 0:i.ratings.find(n=>n.tocId===t)}:void 0})}rateMap(t,e){return this.makeRateMapRequest(t,e).then(()=>this.clearRatingIfNecessary())}unrateMap(){return this.makeUnrateMapRequest().then(()=>this.clearRatingIfNecessary())}sendMapFeedback(t,e){return this.makeMapFeedbackRequest(t,e)}rateTopic(t,e,i){return this.makeRateTopicRequest(t,e,i).then(()=>this.clearRatingIfNecessary())}unrateTopic(t){return this.makeUnrateTopicRequest(t).then(()=>this.clearRatingIfNecessary())}async clearRatingIfNecessary(){let t=M.getState().session;t?.sessionAuthenticated&&this.cache.clear("ratingSummary")}sendTopicFeedback(t,e,i){return this.makeTopicFeedbackRequest(t,e,i)}fontsStylesheet(){return this.api.makeAbsolute(this.api.endpoints.stylesheets.fonts)}themeStylesheet(){return this.api.makeAbsolute(this.api.endpoints.stylesheets.theme)}buildBreadcrumb(t){let e=this.getTocNodeNow(t),i=[{tocId:e.tocId,title:e.title}],n=this.getTocNodeNow(e.parentTocId);for(;n;)i.unshift({tocId:n.tocId,title:n.title}),n=this.getTocNodeNow(n.parentTocId);return i}isFeatureAccessible(t,{session:e,ratingType:i}){var n;if(!this.isFeatureAvailable(t))return!1;switch(t){case Yt.FEEDBACK:return Er(e??[],pt.FEEDBACK_USER);case Yt.RATING:return Er(e??[],pt.RATING_USER)&&i!=null&&i!==Ie.NO_RATING;case Yt.PRINT:return Er(e??[],pt.PRINT_USER);case Yt.BOOKMARK:return!!e?.sessionAuthenticated;case Yt.COLLECTIONS:return Er(e??[],pt.COLLECTION_USER);case Yt.PERSONAL_BOOKS:return Er(e??[],pt.PERSONAL_BOOK_USER)&&!(!((n=this.getMapNow())===null||n===void 0)&&n.pbkConfidential);default:return!1}}makeAbsolute(t){return this.api.makeAbsolute(t)}};var Xi=class r extends Yi{static async build(t){return new r(new qi,void 0,t)}clear(){super.clear(),this.fingerprint=void 0}async fetchMap(t){let e=await this.api.getMap(t);return this.fingerprint=e.fingerprint,e}fetchMapRating(t){return this.api.getMapRating(t)}async fetchPages(t){return await this.getMap(),this.api.getPages(t,this.fingerprint)}fetchTopicHTMLContent(t){return this.api.getTopicHTMLContent(this.mapId,t.contentId,"DESIGNED_READER",this.fingerprint)}fetchTopicMetadata(t){return this.api.getTopic(this.mapId,t.contentId,this.fingerprint)}fetchAttachments(){return this.api.getMapAttachments(this.mapId).catch(()=>[])}fetchRelativesForDocument(t,e){let i={query:"",paging:{page:1,perPage:-1},scope:"DOCUMENTS",metadataFilters:[{key:t,valueFilter:{negative:!1,values:e}}],sort:[],facets:[]};return this.api.search(i)}fetchRelativesForTopicInMap(t,e,i){let n={query:"",paging:{page:1,perPage:1},scope:"ALL_TOPICS",metadataFilters:[{key:e,valueFilter:{negative:!1,values:i}},{key:"ft:publicationId",valueFilter:{negative:!1,values:[t]}}],sort:[],facets:[]};return this.api.search(n)}makeMapFeedbackRequest(t,e){return this.api.sendMapFeedback(this.mapId,t,e)}makeRateMapRequest(t,e){return this.api.rateMap(this.mapId,t,e)}makeRateTopicRequest(t,e,i){return this.api.rateTopic(this.mapId,t,e,i)}makeTopicFeedbackRequest(t,e,i){return this.api.sendTopicFeedback(this.mapId,t,e,i)}makeUnrateMapRequest(){return this.api.unrateMap(this.mapId)}makeUnrateTopicRequest(t){return this.api.unrateTopic(this.mapId,t)}getReaderLinkPrefix(){return"r/"}isFeatureAvailable(t){return!0}};var Ji=class r{static build(t,e){return new r(fp(t.trim()||"context"),e??Xi.build)}loaded(){return Gn(()=>this._loaded)}constructor(t,e,i){this.store=t,this.clusteringHelperProvider=i,this.metadataForSwitchToRelatives=new Set,this._loaded=!1,this.loadDebouncer=new st(10),this.initService(e)}async initService(t){return this.service=await t(),this.service.mapId=this.store.getState().mapId,this.reload()}async setMapId(t){t!==this.store.getState().mapId&&(this.store.actions.mapId(t),this.service&&(this.service.mapId=t),await this.reload())}setVisibleTopics(t){this.store.actions.visibleTopics(t)}async awaitService(){return So(()=>this.service)}async navigateToTopic(t,e,i){await this.loaded();let n=await this.awaitService(),a=await(i!=null?n.getPage(i):n.getPageByTocId(t??"root"));this.store.actions.currentPage(a),this.store.actions.scrollTarget({tocId:this.resolveValidNonRootTocId(t,a),section:e})}resolveValidNonRootTocId(t,e){var i,n,a;let s=(i=t==="root"?void 0:t)!==null&&i!==void 0?i:e.rootTocId;return e.topics.includes(s)?s:(a=(n=e.topics[0])!==null&&n!==void 0?n:e.hiddenTopics[0])!==null&&a!==void 0?a:"root"}async navigateToPage(t){await this.loaded();let i=await(await this.awaitService()).getPage(t);this.store.actions.currentPage(i)}scrollDone(){this.store.actions.scrollTarget({})}async load(){var t;!((t=this.service)===null||t===void 0)&&t.mapId&&this.store.getState().map==null&&await this.loadDebouncer.run(()=>this.fetchData())}clear(){var t;this._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),(t=this.service)===null||t===void 0||t.clear(),this.clusteringHelper=void 0}reload(){return this.clear(),this.load()}async fetchData(){var t,e,i,n,a;try{await Promise.all([(t=this.service)===null||t===void 0?void 0:t.getConfiguration().then(s=>this.store.actions.configuration(s)),(e=this.service)===null||e===void 0?void 0:e.getMap().then(s=>this.store.actions.map(s)),(i=this.service)===null||i===void 0?void 0:i.getToc().then(s=>this.store.actions.toc(s)),(n=this.service)===null||n===void 0?void 0:n.getPagesToc().then(s=>this.store.actions.pagesToc(s)),(a=this.service)===null||a===void 0?void 0:a.getPaginationConfiguration().then(s=>this.store.actions.paginationConfiguration(s))]),this.metadataForSwitchToRelatives.size>0&&this.fetchRelatives(),this._loaded=!0}catch(s){this.errorHandler&&!(s instanceof fr)&&this.errorHandler(s)}}fetchRelatives(){var t,e,i;let n=(t=this.store.getState().map)===null||t===void 0?void 0:t.metadata.filter(a=>{var s;return a.key==((s=this.store.getState().configuration)===null||s===void 0?void 0:s.relativePivotMetadata)}).flatMap(a=>a.values);n!==void 0&&n.length>0?(e=this.service)===null||e===void 0||e.getRelativesForDocument((i=this.store.getState().configuration)===null||i===void 0?void 0:i.relativePivotMetadata,n).then(a=>{let s=a.results.flatMap(l=>l.entries);this.store.actions.relatives(s),this.updateClusteringHelper()}):this.updateClusteringHelper()}updateClusteringHelper(){this.clusteringHelper=this.createClusteringHelper(),this.clusteringHelper&&this.store.dispatchEvent(new CustomEvent("clustering-helper-created"))}createClusteringHelper(){var t,e;if(this.clusteringHelperProvider)return this.clusteringHelperProvider();let i=this.store.getState().relatives;if(i){let n=i.find(s=>{var l;return((l=s.map)===null||l===void 0?void 0:l.mapId)==this.store.getState().mapId}),a=(e=(t=M.getState().metadataConfiguration)===null||t===void 0?void 0:t.descriptors)!==null&&e!==void 0?e:[];return new xo(i,n,this.metadataForSwitchToRelatives,a)}}async navigateToRelativeTopicIfFound(t){var e,i,n;await this.loaded();let a=await So(()=>{var p;return(p=this.store.getState().configuration)===null||p===void 0?void 0:p.relativeTopicPivotMetadata}),s=this.store.getState().mapId,d=await(await this.awaitService()).getRelativesForTopicInMap(s,a,[t]);if(!((n=(i=(e=d?.results)===null||e===void 0?void 0:e[0])===null||i===void 0?void 0:i.entries)===null||n===void 0)&&n[0]){let p=d.results[0].entries[0].topic.tocId;return await this.navigateToTopic(p),!0}else return await this.navigateToTopic("root"),!1}setSearchInDocumentQuery(t){this.store.actions.searchInDocumentQuery(t)}registerMetadataForSwitchToRelatives(t){this.metadataForSwitchToRelatives.add(t),this.store.getState().relatives==null?this.fetchRelatives():this.updateClusteringHelper()}unregisterMetadataForSwitchToRelatives(t){this.metadataForSwitchToRelatives.delete(t),this.updateClusteringHelper()}};var hp=L`
1861
+ `;var Qi=class extends CustomEvent{constructor(t,e){super("ft-reader-map-loaded",{detail:{map:t,toc:e}})}},tn=class extends CustomEvent{constructor(t,e){super("ft-reader-visible-topics-change",{detail:{visibleTopics:e}})}},en=class extends CustomEvent{constructor(t){super("ft-reader-navigation-done",{detail:t})}},rn=class extends CustomEvent{constructor(t){super("ft-reader-load-error",{detail:t})}},on=class extends Event{constructor(){super("ft-reader-map-not-found")}},nn=class extends Event{constructor(){super("ft-reader-map-unauthorized")}},an=class extends Event{constructor(){super("ft-reader-map-forbidden")}},sn=class extends Event{constructor(){super("ft-reader-topic-relative-not-found",{bubbles:!0,composed:!0})}};var ln=class{constructor(t){this.stateManager=t}searchInDocument(t){this.stateManager.setSearchInDocumentQuery(t??"")}};var Vt=function(r,t,e,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,t,e,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(t,e,a):s(t,e))||a);return n>3&&a&&Object.defineProperty(t,e,a),a},dh=r=>t=>+(t??"NaN")>0?+t:r,wt=class extends Zt{constructor(){super(),this.visibleTopics=[],this.scrollToTargetDebouncer=new st(5),this.navigationDebouncer=new st(10),this.mapLoadedEventDebouncer=new st(50),this.addStore(M)}render(){return $`
1849
1862
  ${this.importStyleIfNeeded()}
1850
1863
  <slot @register-ft-reader-component=${this.registerComponent}></slot>
1851
- `}importStyleIfNeeded(){var t,e;let i=(t=this.stateManager.service)===null||t===void 0?void 0:t.themeStylesheet();return!i||window.location.href.startsWith((e=this.baseUrl)!==null&&e!==void 0?e:"")?H:L`
1864
+ `}importStyleIfNeeded(){var t,e;let i=(t=this.stateManager.service)===null||t===void 0?void 0:t.themeStylesheet();return!i||window.location.href.startsWith((e=this.baseUrl)!==null&&e!==void 0?e:"")?V:$`
1852
1865
  <style>
1853
1866
  @import "${i}"
1854
1867
  </style>
1855
- `}get stateManager(){return this._stateManager==null&&(this._stateManager=qi.build(this.id||(""+Math.round(Math.random()*999e3)).padStart(6,"0"),this.readerServiceProvider),this._stateManager.errorHandler=t=>this.handleLoadError(t),this.addStore(this.stateManager.store,"reader")),this._stateManager}connectedCallback(){super.connectedCallback(),this.stateManager.setMapId(this.mapId),this.stateManager.awaitService().then(t=>{let e=t.fontsStylesheet();if(e&&!window.location.href.startsWith(this.baseUrl)&&!document.querySelector(`head link[href="${e}"]`)){let i=document.createElement("link");i.setAttribute("rel","stylesheet"),i.setAttribute("href",e),document.head.append(i)}window.FluidTopicsReaderService=new nn(this.stateManager)})}update(t){super.update(t),t.has("readerServiceProvider")&&this.readerServiceProvider&&this.stateManager.initService(this.readerServiceProvider),t.has("mapId")&&this.mapId&&(this.stateManager.setMapId(this.mapId),this.lastNotifiedNotFoundRelative=void 0),t.has("searchInDocumentQuery")&&this.searchInDocumentQuery!=null&&this.stateManager.setSearchInDocumentQuery(this.searchInDocumentQuery),["tocId","section","page","mapId","topicPivot"].some(e=>t.has(e))&&this.mapId&&this.navigateToTarget(),t.has("session")&&this.reload()}contentAvailableCallback(t){var e;if(super.contentAvailableCallback(t),(t.has("map")||t.has("toc"))&&this.sendLoadedEventIfLoaded(),t.has("scrollTarget")&&((e=this.scrollTarget)===null||e===void 0?void 0:e.tocId)==null){let i=t.get("scrollTarget");i?.tocId!=null&&this.scrollToTargetDebouncer.run(()=>{var n;return this.stateManager.service.getAccurateNavigationData(i.tocId,(n=this.currentPage)===null||n===void 0?void 0:n.number,i.section).then(a=>this.dispatchEvent(new Ji(a)))})}t.has("visibleTopics")&&Promise.all(this.visibleTopics.map(i=>{var n;return this.stateManager.service.getAccurateNavigationData(i,(n=this.currentPage)===null||n===void 0?void 0:n.number)})).then(i=>{let n=i.filter(a=>a!=null&&a.topicTitle!=="").map(a=>{var s;return{tocId:a.tocId,title:a.topicTitle,page:a.page,prettyUrl:a.prettyUrl,prettyUrlDuplicated:a.prettyUrlDuplicated,breadcrumb:(s=this.stateManager.service)===null||s===void 0?void 0:s.buildBreadcrumb(a.tocId)}});this.dispatchEvent(new Xi(this.map,n))})}clear(){this.stateManager.clear()}async reload(){await this.stateManager.reload()}async navigateToTarget(){await this.navigationDebouncer.run(async()=>{this.topicPivot!=null?!await this.stateManager.navigateToRelativeTopicIfFound(this.topicPivot)&&this.lastNotifiedNotFoundRelative!==this.mapId+this.topicPivot?(this.dispatchEvent(new on),this.lastNotifiedNotFoundRelative=this.mapId+this.topicPivot):this.lastNotifiedNotFoundRelative=void 0:this.tocId!=null?await this.stateManager.navigateToTopic(this.tocId,this.section,this.page):this.page!=null&&await this.stateManager.navigateToPage(this.page)})}registerComponent(t){t.stopPropagation();let e=t.composedPath()[0];this.register(e)}register(t){t.setReaderStateManager(this.stateManager)}handleLoadError(t){let e=t;e.status===401?this.dispatchEvent(new en):e.status===403?this.dispatchEvent(new rn):e.status===404?this.dispatchEvent(new tn):this.dispatchEvent(new Qi(t))}reloadBookmarks(){ip.reloadBookmarks()}async reloadRating(){var t,e;await((t=this.stateManager.service)===null||t===void 0?void 0:t.reloadRating()),(e=this.stateManager.store)===null||e===void 0||e.eventBus.dispatchEvent(new CustomEvent("rating-changed"))}sendLoadedEventIfLoaded(){this.mapLoadedEventDebouncer.run(()=>{this.map&&this.toc&&this.dispatchEvent(new Yi(this.map,this.toc))})}};Et.styles=dp;Vt([ct({store:M.name})],Et.prototype,"baseUrl",void 0);Vt([ct({store:M.name})],Et.prototype,"session",void 0);Vt([g()],Et.prototype,"mapId",void 0);Vt([g()],Et.prototype,"tocId",void 0);Vt([g()],Et.prototype,"section",void 0);Vt([g()],Et.prototype,"topicPivot",void 0);Vt([g()],Et.prototype,"searchInDocumentQuery",void 0);Vt([g({type:Number,converter:{fromAttribute:sh()}})],Et.prototype,"page",void 0);Vt([ct({store:"reader"})],Et.prototype,"map",void 0);Vt([ct({store:"reader"})],Et.prototype,"toc",void 0);Vt([ct({store:"reader"})],Et.prototype,"visibleTopics",void 0);Vt([ct({store:"reader"})],Et.prototype,"currentPage",void 0);Vt([ct({store:"reader"})],Et.prototype,"scrollTarget",void 0);Vt([g({attribute:!1})],Et.prototype,"readerServiceProvider",void 0);G("ft-reader-context")(Et);var an=class extends CustomEvent{constructor(t){super("send-feedback",{detail:t})}},sn=class extends CustomEvent{constructor(t){super("ft-reader-topic-feedback",{composed:!0,bubbles:!0,detail:t})}},ln=class extends CustomEvent{constructor(t){super("ft-reader-feedback",{composed:!0,bubbles:!0,detail:t})}},cn=class extends CustomEvent{constructor(t){super("ft-reader-mailer-topic-feedback",{composed:!0,bubbles:!0,detail:{topic:t}})}},dn=class extends CustomEvent{constructor(){super("ft-reader-mailer-map-feedback",{composed:!0,bubbles:!0})}};var At=function(r,t,e,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,t,e,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(t,e,a):s(t,e))||a);return n>3&&a&&Object.defineProperty(t,e,a),a},it=class extends Je(Ke){constructor(){super(),this.editorMode=!1,this.hideTitle=!1,this.withMoreOptionsButton=!1,this.ratingAllowed=!1,this.from="",this.feedbackMessage="",this.emptyStarIcon="STAR",this.filledStarIcon="STAR_PLAIN",this.emptyLikeIcon="THUMBS_UP",this.filledLikeIcon="THUMBS_UP_PLAIN",this.emptyDislikeIcon="THUMBS_DOWN",this.filledDislikeIcon="THUMBS_DOWN_PLAIN",this.addI18nContext(Q,ap)}get canAccessFeedback(){var t;return(t=this.service)===null||t===void 0?void 0:t.isFeatureAccessible(Yt.FEEDBACK,{session:this.session})}get canAccessRating(){var t,e;return(t=this.service)===null||t===void 0?void 0:t.isFeatureAccessible(Yt.RATING,{session:this.session,ratingType:(e=this.ratingSummary)===null||e===void 0?void 0:e.type})}get configuredRatingType(){var t,e;return(e=this.ratingAllowed?(t=this.ratingSummary)===null||t===void 0?void 0:t.type:"NO_RATING")!==null&&e!==void 0?e:"NO_RATING"}get ratingType(){var t,e,i;return(i=(e=(t=this.ratingSummary)===null||t===void 0?void 0:t.rating)===null||e===void 0?void 0:e.type)!==null&&i!==void 0?i:"NO_RATING"}get ratingValue(){var t,e,i;return(i=(e=(t=this.ratingSummary)===null||t===void 0?void 0:t.rating)===null||e===void 0?void 0:e.value)!==null&&i!==void 0?i:-1}get ratingDate(){var t,e;let i=(e=(t=this.ratingSummary)===null||t===void 0?void 0:t.rating)===null||e===void 0?void 0:e.date;return typeof i=="string"?mi(i):i}render(){return!this.canAccessFeedback&&!this.canAccessRating?H:L`
1868
+ `}get stateManager(){return this._stateManager==null&&(this._stateManager=Ji.build(this.id||(""+Math.round(Math.random()*999e3)).padStart(6,"0"),this.readerServiceProvider),this._stateManager.errorHandler=t=>this.handleLoadError(t),this.addStore(this.stateManager.store,"reader")),this._stateManager}connectedCallback(){super.connectedCallback(),this.stateManager.setMapId(this.mapId),this.stateManager.awaitService().then(t=>{let e=t.fontsStylesheet();if(e&&!window.location.href.startsWith(this.baseUrl)&&!document.querySelector(`head link[href="${e}"]`)){let i=document.createElement("link");i.setAttribute("rel","stylesheet"),i.setAttribute("href",e),document.head.append(i)}window.FluidTopicsReaderService=new ln(this.stateManager)})}update(t){super.update(t),t.has("readerServiceProvider")&&this.readerServiceProvider&&this.stateManager.initService(this.readerServiceProvider),t.has("mapId")&&this.mapId&&(this.stateManager.setMapId(this.mapId),this.lastNotifiedNotFoundRelative=void 0),t.has("searchInDocumentQuery")&&this.searchInDocumentQuery!=null&&this.stateManager.setSearchInDocumentQuery(this.searchInDocumentQuery),["tocId","section","page","mapId","topicPivot"].some(e=>t.has(e))&&this.mapId&&this.navigateToTarget(),t.has("session")&&this.reload()}contentAvailableCallback(t){var e;if(super.contentAvailableCallback(t),(t.has("map")||t.has("toc"))&&this.sendLoadedEventIfLoaded(),t.has("scrollTarget")&&((e=this.scrollTarget)===null||e===void 0?void 0:e.tocId)==null){let i=t.get("scrollTarget");i?.tocId!=null&&this.scrollToTargetDebouncer.run(()=>{var n;return this.stateManager.service.getAccurateNavigationData(i.tocId,(n=this.currentPage)===null||n===void 0?void 0:n.number,i.section).then(a=>this.dispatchEvent(new en(a)))})}t.has("visibleTopics")&&Promise.all(this.visibleTopics.map(i=>{var n;return this.stateManager.service.getAccurateNavigationData(i,(n=this.currentPage)===null||n===void 0?void 0:n.number)})).then(i=>{let n=i.filter(a=>a!=null&&a.topicTitle!=="").map(a=>{var s;return{tocId:a.tocId,title:a.topicTitle,page:a.page,prettyUrl:a.prettyUrl,prettyUrlDuplicated:a.prettyUrlDuplicated,breadcrumb:(s=this.stateManager.service)===null||s===void 0?void 0:s.buildBreadcrumb(a.tocId)}});this.dispatchEvent(new tn(this.map,n))})}clear(){this.stateManager.clear()}async reload(){await this.stateManager.reload()}async navigateToTarget(){await this.navigationDebouncer.run(async()=>{this.topicPivot!=null?!await this.stateManager.navigateToRelativeTopicIfFound(this.topicPivot)&&this.lastNotifiedNotFoundRelative!==this.mapId+this.topicPivot?(this.dispatchEvent(new sn),this.lastNotifiedNotFoundRelative=this.mapId+this.topicPivot):this.lastNotifiedNotFoundRelative=void 0:this.tocId!=null?await this.stateManager.navigateToTopic(this.tocId,this.section,this.page):this.page!=null&&await this.stateManager.navigateToPage(this.page)})}registerComponent(t){t.stopPropagation();let e=t.composedPath()[0];this.register(e)}register(t){t.setReaderStateManager(this.stateManager)}handleLoadError(t){let e=t;e.status===401?this.dispatchEvent(new nn):e.status===403?this.dispatchEvent(new an):e.status===404?this.dispatchEvent(new on):this.dispatchEvent(new rn(t))}reloadBookmarks(){lp.reloadBookmarks()}async reloadRating(){var t,e;await((t=this.stateManager.service)===null||t===void 0?void 0:t.reloadRating()),(e=this.stateManager.store)===null||e===void 0||e.dispatchEvent(new CustomEvent("rating-changed"))}sendLoadedEventIfLoaded(){this.mapLoadedEventDebouncer.run(()=>{this.map&&this.toc&&this.dispatchEvent(new Qi(this.map,this.toc))})}};wt.styles=hp;Vt([ct({store:M.name})],wt.prototype,"baseUrl",void 0);Vt([ct({store:M.name})],wt.prototype,"session",void 0);Vt([g()],wt.prototype,"mapId",void 0);Vt([g()],wt.prototype,"tocId",void 0);Vt([g()],wt.prototype,"section",void 0);Vt([g()],wt.prototype,"topicPivot",void 0);Vt([g()],wt.prototype,"searchInDocumentQuery",void 0);Vt([g({type:Number,converter:{fromAttribute:dh()}})],wt.prototype,"page",void 0);Vt([ct({store:"reader"})],wt.prototype,"map",void 0);Vt([ct({store:"reader"})],wt.prototype,"toc",void 0);Vt([ct({store:"reader"})],wt.prototype,"visibleTopics",void 0);Vt([ct({store:"reader"})],wt.prototype,"currentPage",void 0);Vt([ct({store:"reader"})],wt.prototype,"scrollTarget",void 0);Vt([g({attribute:!1})],wt.prototype,"readerServiceProvider",void 0);Z("ft-reader-context")(wt);var cn=class extends CustomEvent{constructor(t){super("send-feedback",{detail:t})}},dn=class extends CustomEvent{constructor(t){super("ft-reader-topic-feedback",{composed:!0,bubbles:!0,detail:t})}},pn=class extends CustomEvent{constructor(t){super("ft-reader-feedback",{composed:!0,bubbles:!0,detail:t})}},un=class extends CustomEvent{constructor(t){super("ft-reader-mailer-topic-feedback",{composed:!0,bubbles:!0,detail:{topic:t}})}},fn=class extends CustomEvent{constructor(){super("ft-reader-mailer-map-feedback",{composed:!0,bubbles:!0})}};var At=function(r,t,e,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,t,e,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(t,e,a):s(t,e))||a);return n>3&&a&&Object.defineProperty(t,e,a),a},nt=class extends Je(Ke){constructor(){super(),this.editorMode=!1,this.hideTitle=!1,this.withMoreOptionsButton=!1,this.ratingAllowed=!1,this.from="",this.feedbackMessage="",this.emptyStarIcon="STAR",this.filledStarIcon="STAR_PLAIN",this.emptyLikeIcon="THUMBS_UP",this.filledLikeIcon="THUMBS_UP_PLAIN",this.emptyDislikeIcon="THUMBS_DOWN",this.filledDislikeIcon="THUMBS_DOWN_PLAIN",this.addI18nContext(tt,dp)}get canAccessFeedback(){var t;return(t=this.service)===null||t===void 0?void 0:t.isFeatureAccessible(Yt.FEEDBACK,{session:this.session})}get canAccessRating(){var t,e;return(t=this.service)===null||t===void 0?void 0:t.isFeatureAccessible(Yt.RATING,{session:this.session,ratingType:(e=this.ratingSummary)===null||e===void 0?void 0:e.type})}get configuredRatingType(){var t,e;return(e=this.ratingAllowed?(t=this.ratingSummary)===null||t===void 0?void 0:t.type:"NO_RATING")!==null&&e!==void 0?e:"NO_RATING"}get ratingType(){var t,e,i;return(i=(e=(t=this.ratingSummary)===null||t===void 0?void 0:t.rating)===null||e===void 0?void 0:e.type)!==null&&i!==void 0?i:"NO_RATING"}get ratingValue(){var t,e,i;return(i=(e=(t=this.ratingSummary)===null||t===void 0?void 0:t.rating)===null||e===void 0?void 0:e.value)!==null&&i!==void 0?i:-1}get ratingDate(){var t,e;let i=(e=(t=this.ratingSummary)===null||t===void 0?void 0:t.rating)===null||e===void 0?void 0:e.date;return typeof i=="string"?vi(i):i}render(){return!this.canAccessFeedback&&!this.canAccessRating?V:$`
1856
1869
  <div class="ft-reader-feedback">
1857
- ${this.hideTitle?H:L`
1870
+ ${this.hideTitle?V:$`
1858
1871
  <ft-typography variant="title" part="main-title">
1859
1872
  ${this.i18n(this.i18nProperties.feedbackMainTitle)}
1860
1873
  </ft-typography>
@@ -1862,7 +1875,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
1862
1875
  ${this.renderRatingSection()}
1863
1876
  ${this.renderFeedbackSection()}
1864
1877
  </div>
1865
- `}renderRatingSection(){return this.canAccessRating?L`
1878
+ `}renderRatingSection(){return this.canAccessRating?$`
1866
1879
  <div class="ft-reader-feedback--rating" part="rating-container">
1867
1880
  <ft-typography variant="title-dense" part="section-title" class="ft-reader-feedback--section-title">
1868
1881
  ${this.i18n(this.ratingSummary.type==="DICHOTOMOUS"?this.i18nProperties.dichotomousRatingSectionTitle:this.i18nProperties.ratingSectionTitle)}
@@ -1872,11 +1885,11 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
1872
1885
  ${this.renderRatingDate()}
1873
1886
  </ft-typography>
1874
1887
  </div>
1875
- `:H}renderRatingDate(){let t=this.ratingDate;if(t==null)return Q.messages.notRated();if(t.getTime()>new Date().getTime()-6e4)return Q.messages.ratedNow();let e=new Date().toLocaleDateString(),i=t.toLocaleDateString();return e===i?Q.messages.ratedToday():Q.messages.ratedOn(t)}renderRating(){switch(this.configuredRatingType){case"STARS":return L`
1888
+ `:V}renderRatingDate(){let t=this.ratingDate;if(t==null)return tt.messages.notRated();if(t.getTime()>new Date().getTime()-6e4)return tt.messages.ratedNow();let e=new Date().toLocaleDateString(),i=t.toLocaleDateString();return e===i?tt.messages.ratedToday():tt.messages.ratedOn(t)}renderRating(){switch(this.configuredRatingType){case"STARS":return $`
1876
1889
  <div class="ft-reader-feedback--stars" part="rating rating-stars">
1877
- ${Nn(new Array(5),(a,s)=>s,(a,s)=>{let l=this.ratingType==="STARS"&&this.ratingValue>s,d=s+1;return L`
1890
+ ${Pn(new Array(5),(a,s)=>s,(a,s)=>{let l=this.ratingType==="STARS"&&this.ratingValue>s,d=s+1;return $`
1878
1891
  <ft-button round part="rating-stars-${d}"
1879
- label="${Q.messages.starsRating(d)}"
1892
+ label="${tt.messages.starsRating(d)}"
1880
1893
  tooltipPosition="top"
1881
1894
  .iconVariant=${this.iconVariant}
1882
1895
  icon="${l?this.filledStarIcon:this.emptyStarIcon}"
@@ -1885,7 +1898,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
1885
1898
  ></ft-button>
1886
1899
  `})}
1887
1900
  </div>
1888
- `;case"LIKE":let t=this.ratingType==="LIKE"&&this.ratingValue===0,e=this.ratingType==="LIKE"&&this.ratingValue===1;return L`
1901
+ `;case"LIKE":let t=this.ratingType==="LIKE"&&this.ratingValue===0,e=this.ratingType==="LIKE"&&this.ratingValue===1;return $`
1889
1902
  <ft-switch unselectable
1890
1903
  @change=${a=>this.rate(a.detail)}
1891
1904
  part="rating rating-like"
@@ -1895,67 +1908,67 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
1895
1908
  .iconVariant=${this.iconVariant}
1896
1909
  icon="${e?this.filledLikeIcon:this.emptyLikeIcon}"
1897
1910
  role="radio">
1898
- ${Q.messages.like()}
1911
+ ${tt.messages.like()}
1899
1912
  </ft-switch-option>
1900
1913
  <ft-switch-option .value=${0}
1901
1914
  ?selected=${t}
1902
1915
  .iconVariant=${this.iconVariant}
1903
1916
  icon="${t?this.filledDislikeIcon:this.emptyDislikeIcon}"
1904
1917
  role="radio">
1905
- ${Q.messages.dislike()}
1918
+ ${tt.messages.dislike()}
1906
1919
  </ft-switch-option>
1907
1920
  </ft-switch>
1908
- `;case"DICHOTOMOUS":let i=this.ratingType==="DICHOTOMOUS"&&this.ratingValue===0,n=this.ratingType==="DICHOTOMOUS"&&this.ratingValue===1;return L`
1921
+ `;case"DICHOTOMOUS":let i=this.ratingType==="DICHOTOMOUS"&&this.ratingValue===0,n=this.ratingType==="DICHOTOMOUS"&&this.ratingValue===1;return $`
1909
1922
  <ft-switch unselectable
1910
1923
  @change=${a=>this.rate(a.detail)}
1911
1924
  part="rating rating-dichotomous">
1912
1925
  <ft-switch-option .value=${1}
1913
1926
  ?selected=${n}>
1914
- ${Q.messages.dichotomousYes()}
1927
+ ${tt.messages.dichotomousYes()}
1915
1928
  </ft-switch-option>
1916
1929
  <ft-switch-option .value=${0}
1917
1930
  ?selected=${i}>
1918
- ${Q.messages.dichotomousNo()}
1931
+ ${tt.messages.dichotomousNo()}
1919
1932
  </ft-switch-option>
1920
1933
  </ft-switch>
1921
- `}return H}rate(t){(t??-1)!==this.ratingValue&&this.dispatchEvent(new CustomEvent("rate",{detail:t}))}renderFeedbackSection(){var t,e,i,n,a;if(this.canAccessFeedback){let s=this.feedbackMailLinkBuilder(this.feedbackMessage),l=L`
1934
+ `}return V}rate(t){(t??-1)!==this.ratingValue&&this.dispatchEvent(new CustomEvent("rate",{detail:t}))}renderFeedbackSection(){var t,e,i,n,a;if(this.canAccessFeedback){let s=this.feedbackMailLinkBuilder(this.feedbackMessage),l=$`
1922
1935
  <ft-button primary
1923
1936
  type="submit" name="submit"
1924
1937
  class="ft-reader-feedback--send-feedback"
1925
1938
  ?disabled=${!this.feedbackMessage||!this.validFromEmail()}
1926
1939
  part="send-feedback">
1927
- ${Q.messages.okButton()}
1940
+ ${tt.messages.okButton()}
1928
1941
  </ft-button>
1929
- `;s&&(l=L`
1942
+ `;s&&(l=$`
1930
1943
  <a class="ft-reader-feedback--feedback-link" href="${s}">
1931
1944
  ${l}
1932
1945
  </a>
1933
- `);let d=this.withMoreOptionsButton&&(!((t=this.configuration)===null||t===void 0)&&t.mailsSentByFluidTopics||!((e=this.configuration)===null||e===void 0)&&e.mailsSentByFluidTopicsForUnauthenticatedUsers)?L`
1946
+ `);let d=this.withMoreOptionsButton&&(!((t=this.configuration)===null||t===void 0)&&t.mailsSentByFluidTopics||!((e=this.configuration)===null||e===void 0)&&e.mailsSentByFluidTopicsForUnauthenticatedUsers)?$`
1934
1947
  <ft-button outlined
1935
1948
  type="button" name="more-options"
1936
1949
  class="ft-reader-feedback--more-options"
1937
1950
  @click="${this.onOpenMoreDetails}"
1938
1951
  part="more-options">
1939
- ${Q.messages.moreOptionsButton()}
1952
+ ${tt.messages.moreOptionsButton()}
1940
1953
  </ft-button>
1941
- `:H;return L`
1954
+ `:V;return $`
1942
1955
  <form class="ft-reader-feedback--feedback" part="feedback-container" autocomplete="on"
1943
1956
  @submit="${p=>this.onFormSubmitEvent(p,!!s)}">
1944
1957
  <ft-typography variant="title-dense" part="section-title" class="ft-reader-feedback--section-title">
1945
1958
  ${this.i18n(this.i18nProperties.feedbackSectionTitle)}
1946
1959
  </ft-typography>
1947
- ${((n=(i=this.session)===null||i===void 0?void 0:i.profile)===null||n===void 0?void 0:n.userId)==null&&(!((a=this.configuration)===null||a===void 0)&&a.mailsSentByFluidTopicsForUnauthenticatedUsers)?L`
1960
+ ${((n=(i=this.session)===null||i===void 0?void 0:i.profile)===null||n===void 0?void 0:n.userId)==null&&(!((a=this.configuration)===null||a===void 0)&&a.mailsSentByFluidTopicsForUnauthenticatedUsers)?$`
1948
1961
  <ft-text-field outlined name="email" type="email" autocomplete="email"
1949
1962
  class="ft-reader-feedback--from-input"
1950
- label=${Q.messages.feedbackfromEmail()}
1963
+ label=${tt.messages.feedbackfromEmail()}
1951
1964
  @change=${p=>this.from=p.detail.trim()}
1952
1965
  ?error=${this.from&&!this.validFromEmail()}
1953
- helper=${this.from&&!this.validFromEmail()?Q.messages.feedbackfromEmailInvalid():""}
1966
+ helper=${this.from&&!this.validFromEmail()?tt.messages.feedbackfromEmailInvalid():""}
1954
1967
  />
1955
- `:H}
1968
+ `:V}
1956
1969
  <ft-text-area outlined
1957
1970
  class="ft-reader-feedback--feedback-input" part="feedback-input"
1958
- label="${Q.messages.feedbackInputLabel()}"
1971
+ label="${tt.messages.feedbackInputLabel()}"
1959
1972
  @live-change=${p=>this.feedbackMessage=p.detail.trim()}
1960
1973
  ></ft-text-area>
1961
1974
  <div part="buttons-container">
@@ -1963,7 +1976,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
1963
1976
  ${l}
1964
1977
  </div>
1965
1978
  </form>
1966
- `}return H}onFormSubmitEvent(t,e){t.preventDefault(),e?this.onMailerFeedbackSent():this.sendFeedback()}validFromEmail(){var t,e,i;let n=/^[a-zA-Z0-9_+&*-]+(?:\.[a-zA-Z0-9_+&*-]+)*@(?:[a-zA-Z0-9-]+\.)+[a-zA-Z]{2,}$/;return!(((e=(t=this.session)===null||t===void 0?void 0:t.profile)===null||e===void 0?void 0:e.userId)==null&&(!((i=this.configuration)===null||i===void 0)&&i.mailsSentByFluidTopicsForUnauthenticatedUsers))||n.test(this.from)}sendFeedback(){var t;this.dispatchEvent(new an({message:this.feedbackInput.value,...((t=this.configuration)===null||t===void 0?void 0:t.mailsSentByFluidTopicsForUnauthenticatedUsers)&&{from:this.from}}))}onMailerFeedbackSent(){this.dispatchEvent(new CustomEvent("mailer-feedback"))}onOpenMoreDetails(){this.dispatchEvent(new CustomEvent("open-more-options"))}clearFeedbackInput(){setTimeout(()=>this.feedbackInput.value="",0)}};it.elementDefinitions={"ft-button":ie,"ft-typography":bt,"ft-switch":Mt,"ft-switch-option":vt,"ft-text-area":_t,"ft-text-field":q};it.styles=Hd;At([g({type:Boolean})],it.prototype,"editorMode",void 0);At([g({type:Boolean})],it.prototype,"hideTitle",void 0);At([g({type:Boolean})],it.prototype,"withMoreOptionsButton",void 0);At([g({type:Boolean})],it.prototype,"ratingAllowed",void 0);At([g({attribute:!1})],it.prototype,"i18nProperties",void 0);At([g({attribute:!1})],it.prototype,"ratingSummary",void 0);At([g({attribute:!1})],it.prototype,"session",void 0);At([X(".ft-reader-feedback--feedback-input")],it.prototype,"feedbackInput",void 0);At([z()],it.prototype,"from",void 0);At([z()],it.prototype,"feedbackMessage",void 0);At([g()],it.prototype,"iconVariant",void 0);At([g()],it.prototype,"emptyStarIcon",void 0);At([g()],it.prototype,"filledStarIcon",void 0);At([g()],it.prototype,"emptyLikeIcon",void 0);At([g()],it.prototype,"filledLikeIcon",void 0);At([g()],it.prototype,"emptyDislikeIcon",void 0);At([g()],it.prototype,"filledDislikeIcon",void 0);At([ct({store:"reader",selector:r=>{var t;return(t=r.configuration)===null||t===void 0?void 0:t.feedback}})],it.prototype,"configuration",void 0);At([g()],it.prototype,"feedbackMailLinkBuilder",void 0);var to=Qe.fromGwt("server");var eo=class{constructor(){this.subject="",this.url="",this.subjectMetadata="",this.bodyMetadata="",this.isAuthenticated=!1}update(t,e,i,n,a){var s;this.subject=t,this.url=e,this.configuration=n,this.isAuthenticated=a,this.subjectMetadata=this.filterMetadata(i,n.subjectMetadataIds).map(l=>"["+l.values[l.values.length-1]+"]").join(""),this.bodyMetadata=this.filterMetadata(i,(s=n.bodyMetadataIds)!==null&&s!==void 0?s:[]).map(l=>"["+l.values.join(", ")+"]").join(" ")}filterMetadata(t,e){return e.map(i=>t.find(n=>n.key===i)).filter(i=>i!=null&&i.values.length>0)}shouldUseMailer(){var t,e;let i=this.isAuthenticated&&!(!((t=this.configuration)===null||t===void 0)&&t.mailsSentByFluidTopics),n=!this.isAuthenticated&&!(!((e=this.configuration)===null||e===void 0)&&e.mailsSentByFluidTopicsForUnauthenticatedUsers);return i||n}build(t){var e;if(t!=null&&t.length===0||!this.shouldUseMailer())return;let i=encodeURIComponent(this.subject+" "+this.subjectMetadata),n=encodeURIComponent(`
1979
+ `}return V}onFormSubmitEvent(t,e){t.preventDefault(),e?this.onMailerFeedbackSent():this.sendFeedback()}validFromEmail(){var t,e,i;let n=/^[a-zA-Z0-9_+&*-]+(?:\.[a-zA-Z0-9_+&*-]+)*@(?:[a-zA-Z0-9-]+\.)+[a-zA-Z]{2,}$/;return!(((e=(t=this.session)===null||t===void 0?void 0:t.profile)===null||e===void 0?void 0:e.userId)==null&&(!((i=this.configuration)===null||i===void 0)&&i.mailsSentByFluidTopicsForUnauthenticatedUsers))||n.test(this.from)}sendFeedback(){var t;this.dispatchEvent(new cn({message:this.feedbackInput.value,...((t=this.configuration)===null||t===void 0?void 0:t.mailsSentByFluidTopicsForUnauthenticatedUsers)&&{from:this.from}}))}onMailerFeedbackSent(){this.dispatchEvent(new CustomEvent("mailer-feedback"))}onOpenMoreDetails(){this.dispatchEvent(new CustomEvent("open-more-options"))}clearFeedbackInput(){setTimeout(()=>this.feedbackInput.value="",0)}};nt.elementDefinitions={"ft-button":ie,"ft-typography":xt,"ft-switch":Bt,"ft-switch-option":St,"ft-text-area":_t,"ft-text-field":X};nt.styles=Gd;At([g({type:Boolean})],nt.prototype,"editorMode",void 0);At([g({type:Boolean})],nt.prototype,"hideTitle",void 0);At([g({type:Boolean})],nt.prototype,"withMoreOptionsButton",void 0);At([g({type:Boolean})],nt.prototype,"ratingAllowed",void 0);At([g({attribute:!1})],nt.prototype,"i18nProperties",void 0);At([g({attribute:!1})],nt.prototype,"ratingSummary",void 0);At([g({attribute:!1})],nt.prototype,"session",void 0);At([Q(".ft-reader-feedback--feedback-input")],nt.prototype,"feedbackInput",void 0);At([U()],nt.prototype,"from",void 0);At([U()],nt.prototype,"feedbackMessage",void 0);At([g()],nt.prototype,"iconVariant",void 0);At([g()],nt.prototype,"emptyStarIcon",void 0);At([g()],nt.prototype,"filledStarIcon",void 0);At([g()],nt.prototype,"emptyLikeIcon",void 0);At([g()],nt.prototype,"filledLikeIcon",void 0);At([g()],nt.prototype,"emptyDislikeIcon",void 0);At([g()],nt.prototype,"filledDislikeIcon",void 0);At([ct({store:"reader",selector:r=>{var t;return(t=r.configuration)===null||t===void 0?void 0:t.feedback}})],nt.prototype,"configuration",void 0);At([g()],nt.prototype,"feedbackMailLinkBuilder",void 0);var eo=Qe.fromGwt("server");var ro=class{constructor(){this.subject="",this.url="",this.subjectMetadata="",this.bodyMetadata="",this.isAuthenticated=!1}update(t,e,i,n,a){var s;this.subject=t,this.url=e,this.configuration=n,this.isAuthenticated=a,this.subjectMetadata=this.filterMetadata(i,n.subjectMetadataIds).map(l=>"["+l.values[l.values.length-1]+"]").join(""),this.bodyMetadata=this.filterMetadata(i,(s=n.bodyMetadataIds)!==null&&s!==void 0?s:[]).map(l=>"["+l.values.join(", ")+"]").join(" ")}filterMetadata(t,e){return e.map(i=>t.find(n=>n.key===i)).filter(i=>i!=null&&i.values.length>0)}shouldUseMailer(){var t,e;let i=this.isAuthenticated&&!(!((t=this.configuration)===null||t===void 0)&&t.mailsSentByFluidTopics),n=!this.isAuthenticated&&!(!((e=this.configuration)===null||e===void 0)&&e.mailsSentByFluidTopicsForUnauthenticatedUsers);return i||n}build(t){var e;if(t!=null&&t.length===0||!this.shouldUseMailer())return;let i=encodeURIComponent(this.subject+" "+this.subjectMetadata),n=encodeURIComponent(`
1967
1980
  ${this.bodyMetadata}
1968
1981
  ${this.url}
1969
1982
  _________________________________________________________________
@@ -1971,7 +1984,7 @@ _________________________________________________________________
1971
1984
  ${t??""}
1972
1985
 
1973
1986
  _________________________________________________________________
1974
- ${to.messages["mail.feedback.disclaimer"]()}`);return`mailto:${(e=this.configuration)===null||e===void 0?void 0:e.recipients.join(",")}?subject=${i}&body=${n}`}};var tr=Qe.build("inDesignerFeedbackComponent"),pn={feedbackAndRatingDisabledInEditor:"Feedback and ratings performed here are not taken into account."};var Nt=function(r,t,e,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,t,e,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(t,e,a):s(t,e))||a);return n>3&&a&&Object.defineProperty(t,e,a),a},yt=class extends Je(Ke){constructor(){super(),this.editorMode=!1,this.hideTitle=!1,this.withMoreOptionsButton=!1,this.iconVariant=$t.fluid_topics,this.emptyStarIcon="STAR",this.filledStarIcon="STAR_PLAIN",this.emptyLikeIcon="THUMBS_UP",this.filledLikeIcon="THUMBS_UP_PLAIN",this.emptyDislikeIcon="THUMBS_DOWN",this.filledDislikeIcon="THUMBS_DOWN_PLAIN",this.feedbackLinkBuilder=new eo,this.i18nProperties={feedbackMainTitle:Q.properties.mapFeedbackMainTitle(),ratingSectionTitle:Q.properties.mapRatingSectionTitle(),dichotomousRatingSectionTitle:Q.properties.mapDichotomousRatingSectionTitle(),feedbackSectionTitle:Q.properties.mapFeedbackSectionTitle()},this.updateDebouncer=new at(100),this.sendRatingDebouncer=new at(500),this.addStore(M)}render(){return L`
1987
+ ${eo.messages["mail.feedback.disclaimer"]()}`);return`mailto:${(e=this.configuration)===null||e===void 0?void 0:e.recipients.join(",")}?subject=${i}&body=${n}`}};var tr=Qe.build("inDesignerFeedbackComponent"),hn={feedbackAndRatingDisabledInEditor:"Feedback and ratings performed here are not taken into account."};var Nt=function(r,t,e,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,t,e,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(t,e,a):s(t,e))||a);return n>3&&a&&Object.defineProperty(t,e,a),a},bt=class extends Je(Ke){constructor(){super(),this.editorMode=!1,this.hideTitle=!1,this.withMoreOptionsButton=!1,this.iconVariant=$t.fluid_topics,this.emptyStarIcon="STAR",this.filledStarIcon="STAR_PLAIN",this.emptyLikeIcon="THUMBS_UP",this.filledLikeIcon="THUMBS_UP_PLAIN",this.emptyDislikeIcon="THUMBS_DOWN",this.filledDislikeIcon="THUMBS_DOWN_PLAIN",this.feedbackLinkBuilder=new ro,this.i18nProperties={feedbackMainTitle:tt.properties.mapFeedbackMainTitle(),ratingSectionTitle:tt.properties.mapRatingSectionTitle(),dichotomousRatingSectionTitle:tt.properties.mapDichotomousRatingSectionTitle(),feedbackSectionTitle:tt.properties.mapFeedbackSectionTitle()},this.updateDebouncer=new st(100),this.sendRatingDebouncer=new st(500),this.addStore(M)}render(){return $`
1975
1988
  <ft-reader-feedback
1976
1989
  ratingAllowed
1977
1990
  .i18nProperties=${this.i18nProperties}
@@ -1993,7 +2006,7 @@ ${to.messages["mail.feedback.disclaimer"]()}`);return`mailto:${(e=this.configura
1993
2006
  @mailer-feedback=${this.onMailerFeedbackSent}
1994
2007
  @open-more-options=${this.openMoreOptions}
1995
2008
  ></ft-reader-feedback>
1996
- `}update(t){var e,i,n,a;super.update(t),t.has("map")&&this.map&&this.updateData(),t.has("editorMode")&&this.editorMode&&this.addI18nContext(tr,pn),["map","configuration","user","mailSubject"].some(s=>t.has(s))&&this.map&&this.configuration&&this.feedbackLinkBuilder.update(this.mailSubject,(i=(e=this.service)===null||e===void 0?void 0:e.getLink())!==null&&i!==void 0?i:"",this.map.metadata,this.configuration,((a=(n=this.session)===null||n===void 0?void 0:n.profile)===null||a===void 0?void 0:a.userId)!=null)}connectedCallback(){super.connectedCallback(),this.updateData()}onStoreAvailable(t){super.onStoreAvailable(t),this.updateData()}updateData(){this.updateDebouncer.run(async()=>{var t,e;this.map&&(!((e=(t=this.session)===null||t===void 0?void 0:t.profile)===null||e===void 0)&&e.userId||this.ratingSummary==null)&&await this.fetchRatingSummary()})}async fetchRatingSummary(){var t;this.ratingSummary=await((t=this.service)===null||t===void 0?void 0:t.getMapRating())}rate(t){this.ratingSummary&&(this.ratingSummary={...this.ratingSummary,rating:t.detail==null?void 0:{type:this.ratingSummary.type,value:t.detail,date:new Date}},this.sendRatingDebouncer.run(()=>this.sendRating(t.detail)))}async sendRating(t){var e,i,n;if(!this.editorMode&&this.ratingSummary){try{t==null?await((e=this.service)===null||e===void 0?void 0:e.unrateMap()):await((i=this.service)===null||i===void 0?void 0:i.rateMap((n=this.ratingSummary)===null||n===void 0?void 0:n.type,t))}catch{this.dispatchEvent(new kt({type:"error",message:Q.messages.ratingFailure()}))}this.updateData()}else this.editorMode&&this.dispatchEvent(new kt({type:"info",message:tr.messages.feedbackAndRatingDisabledInEditor()}))}async sendFeedback(t){var e;try{this.editorMode?this.dispatchEvent(new kt({type:"info",message:tr.messages.feedbackAndRatingDisabledInEditor()})):(await((e=this.service)===null||e===void 0?void 0:e.sendMapFeedback(t.detail.message,t.detail.from)),this.dispatchEvent(new kt({type:"info",message:Q.messages.feedbackSuccess()}))),this.readerFeedback.clearFeedbackInput()}catch{this.dispatchEvent(new kt({type:"error",message:Q.messages.feedbackFailure()}))}}onMailerFeedbackSent(){this.dispatchEvent(new dn)}openMoreOptions(){var t,e,i;this.dispatchEvent(new ln({mapId:this.map.id,mapTitle:this.map.title,mapMetadata:((t=this.map)===null||t===void 0?void 0:t.metadata)||[],ratingType:((e=this.ratingSummary)===null||e===void 0?void 0:e.type)||Ie.NO_RATING,ratingValue:(i=this.ratingSummary)===null||i===void 0?void 0:i.rating}))}};yt.elementDefinitions={"ft-reader-feedback":it};Nt([ct({store:M.name})],yt.prototype,"session",void 0);Nt([ct({store:"reader"})],yt.prototype,"map",void 0);Nt([ct({store:M.name})],yt.prototype,"editorMode",void 0);Nt([ct({store:"reader",selector:r=>{var t;return(t=r.configuration)===null||t===void 0?void 0:t.feedback}})],yt.prototype,"configuration",void 0);Nt([z()],yt.prototype,"ratingSummary",void 0);Nt([g({type:Boolean})],yt.prototype,"hideTitle",void 0);Nt([g({type:Boolean})],yt.prototype,"withMoreOptionsButton",void 0);Nt([g()],yt.prototype,"iconVariant",void 0);Nt([g()],yt.prototype,"emptyStarIcon",void 0);Nt([g()],yt.prototype,"filledStarIcon",void 0);Nt([g()],yt.prototype,"emptyLikeIcon",void 0);Nt([g()],yt.prototype,"filledLikeIcon",void 0);Nt([g()],yt.prototype,"emptyDislikeIcon",void 0);Nt([g()],yt.prototype,"filledDislikeIcon",void 0);Nt([X("ft-reader-feedback")],yt.prototype,"readerFeedback",void 0);Nt([ji(to.properties["mail.map_feedback.subject"](r=>{var t;return[(t=r.map)===null||t===void 0?void 0:t.title]}))],yt.prototype,"mailSubject",void 0);Nt([Lo({eventName:"rating-changed"})],yt.prototype,"fetchRatingSummary",null);var pp=function(r,t,e,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,t,e,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(t,e,a):s(t,e))||a);return n>3&&a&&Object.defineProperty(t,e,a),a},Ys=class extends Event{constructor(){super("register-ft-reader-topic-component",{bubbles:!0,composed:!0})}},qs=Symbol("registerInterval");function lh(r){var t;class e extends r{constructor(){super(...arguments),this.disableContextInteractions=!1,this[t]=0}connectedCallback(){super.connectedCallback(),this[qs]=window.setInterval(()=>this.tryToRegisterToTopicContext(),50)}tryToRegisterToTopicContext(){this.tocNode!=null?window.clearInterval(this[qs]):this.dispatchEvent(new Ys)}disconnectedCallback(){super.disconnectedCallback(),this.tocNode=void 0}}return t=qs,pp([z()],e.prototype,"tocNode",void 0),pp([z()],e.prototype,"disableContextInteractions",void 0),e}var un=class extends lh(Ke){};var It=function(r,t,e,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,t,e,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(t,e,a):s(t,e))||a);return n>3&&a&&Object.defineProperty(t,e,a),a},gt=class extends Je(un){constructor(){super(),this.editorMode=!1,this.hideTitle=!1,this.withMoreOptionsButton=!1,this.iconVariant=$t.fluid_topics,this.emptyStarIcon="STAR",this.filledStarIcon="STAR_PLAIN",this.emptyLikeIcon="THUMBS_UP",this.filledLikeIcon="THUMBS_UP_PLAIN",this.emptyDislikeIcon="THUMBS_DOWN",this.filledDislikeIcon="THUMBS_DOWN_PLAIN",this.feedbackLinkBuilder=new eo,this.i18nProperties={feedbackMainTitle:Q.properties.topicFeedbackMainTitle(),ratingSectionTitle:Q.properties.topicRatingSectionTitle(),dichotomousRatingSectionTitle:Q.properties.topicDichotomousRatingSectionTitle(),feedbackSectionTitle:Q.properties.topicFeedbackSectionTitle()},this.updateDebouncer=new at(100),this.sendRatingDebouncer=new at(500),this.addStore(M)}render(){var t;return L`
2009
+ `}update(t){var e,i,n,a;super.update(t),t.has("map")&&this.map&&this.updateData(),t.has("editorMode")&&this.editorMode&&this.addI18nContext(tr,hn),["map","configuration","user","mailSubject"].some(s=>t.has(s))&&this.map&&this.configuration&&this.feedbackLinkBuilder.update(this.mailSubject,(i=(e=this.service)===null||e===void 0?void 0:e.getLink())!==null&&i!==void 0?i:"",this.map.metadata,this.configuration,((a=(n=this.session)===null||n===void 0?void 0:n.profile)===null||a===void 0?void 0:a.userId)!=null)}connectedCallback(){super.connectedCallback(),this.updateData()}onStoreAvailable(t){super.onStoreAvailable(t),this.updateData()}updateData(){this.updateDebouncer.run(async()=>{var t,e;this.map&&(!((e=(t=this.session)===null||t===void 0?void 0:t.profile)===null||e===void 0)&&e.userId||this.ratingSummary==null)&&await this.fetchRatingSummary()})}async fetchRatingSummary(){var t;this.ratingSummary=await((t=this.service)===null||t===void 0?void 0:t.getMapRating())}rate(t){this.ratingSummary&&(this.ratingSummary={...this.ratingSummary,rating:t.detail==null?void 0:{type:this.ratingSummary.type,value:t.detail,date:new Date}},this.sendRatingDebouncer.run(()=>this.sendRating(t.detail)))}async sendRating(t){var e,i,n;if(!this.editorMode&&this.ratingSummary){try{t==null?await((e=this.service)===null||e===void 0?void 0:e.unrateMap()):await((i=this.service)===null||i===void 0?void 0:i.rateMap((n=this.ratingSummary)===null||n===void 0?void 0:n.type,t))}catch{this.dispatchEvent(new Mt({type:"error",message:tt.messages.ratingFailure()}))}this.updateData()}else this.editorMode&&this.dispatchEvent(new Mt({type:"info",message:tr.messages.feedbackAndRatingDisabledInEditor()}))}async sendFeedback(t){var e;try{this.editorMode?this.dispatchEvent(new Mt({type:"info",message:tr.messages.feedbackAndRatingDisabledInEditor()})):(await((e=this.service)===null||e===void 0?void 0:e.sendMapFeedback(t.detail.message,t.detail.from)),this.dispatchEvent(new Mt({type:"info",message:tt.messages.feedbackSuccess()}))),this.readerFeedback.clearFeedbackInput()}catch{this.dispatchEvent(new Mt({type:"error",message:tt.messages.feedbackFailure()}))}}onMailerFeedbackSent(){this.dispatchEvent(new fn)}openMoreOptions(){var t,e,i;this.dispatchEvent(new pn({mapId:this.map.id,mapTitle:this.map.title,mapMetadata:((t=this.map)===null||t===void 0?void 0:t.metadata)||[],ratingType:((e=this.ratingSummary)===null||e===void 0?void 0:e.type)||Ie.NO_RATING,ratingValue:(i=this.ratingSummary)===null||i===void 0?void 0:i.rating}))}};bt.elementDefinitions={"ft-reader-feedback":nt};Nt([ct({store:M.name})],bt.prototype,"session",void 0);Nt([ct({store:"reader"})],bt.prototype,"map",void 0);Nt([ct({store:M.name})],bt.prototype,"editorMode",void 0);Nt([ct({store:"reader",selector:r=>{var t;return(t=r.configuration)===null||t===void 0?void 0:t.feedback}})],bt.prototype,"configuration",void 0);Nt([U()],bt.prototype,"ratingSummary",void 0);Nt([g({type:Boolean})],bt.prototype,"hideTitle",void 0);Nt([g({type:Boolean})],bt.prototype,"withMoreOptionsButton",void 0);Nt([g()],bt.prototype,"iconVariant",void 0);Nt([g()],bt.prototype,"emptyStarIcon",void 0);Nt([g()],bt.prototype,"filledStarIcon",void 0);Nt([g()],bt.prototype,"emptyLikeIcon",void 0);Nt([g()],bt.prototype,"filledLikeIcon",void 0);Nt([g()],bt.prototype,"emptyDislikeIcon",void 0);Nt([g()],bt.prototype,"filledDislikeIcon",void 0);Nt([Q("ft-reader-feedback")],bt.prototype,"readerFeedback",void 0);Nt([Zi(eo.properties["mail.map_feedback.subject"](r=>{var t;return[(t=r.map)===null||t===void 0?void 0:t.title]}))],bt.prototype,"mailSubject",void 0);Nt([Mo({eventName:"rating-changed"})],bt.prototype,"fetchRatingSummary",null);var mp=function(r,t,e,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,t,e,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(t,e,a):s(t,e))||a);return n>3&&a&&Object.defineProperty(t,e,a),a},Js=class extends Event{constructor(){super("register-ft-reader-topic-component",{bubbles:!0,composed:!0})}},Xs=Symbol("registerInterval");function ph(r){var t;class e extends r{constructor(){super(...arguments),this.disableContextInteractions=!1,this[t]=0}connectedCallback(){super.connectedCallback(),this[Xs]=window.setInterval(()=>this.tryToRegisterToTopicContext(),50)}tryToRegisterToTopicContext(){this.tocNode!=null?window.clearInterval(this[Xs]):this.dispatchEvent(new Js)}disconnectedCallback(){super.disconnectedCallback(),this.tocNode=void 0}}return t=Xs,mp([U()],e.prototype,"tocNode",void 0),mp([U()],e.prototype,"disableContextInteractions",void 0),e}var mn=class extends ph(Ke){};var It=function(r,t,e,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,t,e,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(t,e,a):s(t,e))||a);return n>3&&a&&Object.defineProperty(t,e,a),a},vt=class extends Je(mn){constructor(){super(),this.editorMode=!1,this.hideTitle=!1,this.withMoreOptionsButton=!1,this.iconVariant=$t.fluid_topics,this.emptyStarIcon="STAR",this.filledStarIcon="STAR_PLAIN",this.emptyLikeIcon="THUMBS_UP",this.filledLikeIcon="THUMBS_UP_PLAIN",this.emptyDislikeIcon="THUMBS_DOWN",this.filledDislikeIcon="THUMBS_DOWN_PLAIN",this.feedbackLinkBuilder=new ro,this.i18nProperties={feedbackMainTitle:tt.properties.topicFeedbackMainTitle(),ratingSectionTitle:tt.properties.topicRatingSectionTitle(),dichotomousRatingSectionTitle:tt.properties.topicDichotomousRatingSectionTitle(),feedbackSectionTitle:tt.properties.topicFeedbackSectionTitle()},this.updateDebouncer=new st(100),this.sendRatingDebouncer=new st(500),this.addStore(M)}render(){var t;return $`
1997
2010
  <ft-reader-feedback
1998
2011
  .i18nProperties=${this.i18nProperties}
1999
2012
  ?ratingAllowed=${(t=this.tocNode)===null||t===void 0?void 0:t.hasRating}
@@ -2015,7 +2028,7 @@ ${to.messages["mail.feedback.disclaimer"]()}`);return`mailto:${(e=this.configura
2015
2028
  @mailer-feedback=${this.onMailerFeedbackSent}
2016
2029
  @open-more-options=${this.openMoreOptions}
2017
2030
  ></ft-reader-feedback>
2018
- `}update(t){var e,i,n,a;super.update(t),["tocNode","user"].some(s=>t.has(s))&&this.tocNode&&this.updateData(),t.has("editorMode")&&this.editorMode&&this.addI18nContext(tr,pn),["map","tocNode","configuration","user","mailSubject"].some(s=>t.has(s))&&this.map&&this.tocNode&&this.configuration&&this.feedbackLinkBuilder.update(this.mailSubject,(i=(e=this.service)===null||e===void 0?void 0:e.getLink(this.tocNode.tocId))!==null&&i!==void 0?i:"",this.map.metadata,this.configuration,((a=(n=this.session)===null||n===void 0?void 0:n.profile)===null||a===void 0?void 0:a.userId)!=null)}connectedCallback(){super.connectedCallback(),this.updateData()}updateData(){this.updateDebouncer.run(async()=>{var t,e;this.tocNode&&(!((e=(t=this.session)===null||t===void 0?void 0:t.profile)===null||e===void 0)&&e.userId||this.ratingSummary==null)&&await this.fetchRatingSummary()})}async fetchRatingSummary(){var t;this.ratingSummary=await((t=this.service)===null||t===void 0?void 0:t.getTopicRating(this.tocNode.tocId))}rate(t){this.ratingSummary&&this.tocNode&&(this.ratingSummary={...this.ratingSummary,rating:t.detail==null?void 0:{tocId:this.tocNode.tocId,type:this.ratingSummary.type,value:t.detail,date:new Date}},this.sendRatingDebouncer.run(()=>this.sendRating(t.detail)))}async sendRating(t){var e,i,n;if(!this.editorMode&&this.ratingSummary&&this.tocNode){try{t==null?await((e=this.service)===null||e===void 0?void 0:e.unrateTopic(this.tocNode.tocId)):await((i=this.service)===null||i===void 0?void 0:i.rateTopic(this.tocNode.tocId,(n=this.ratingSummary)===null||n===void 0?void 0:n.type,t))}catch{this.dispatchEvent(new kt({type:"error",message:Q.messages.ratingFailure()}))}this.updateData()}else this.editorMode&&this.dispatchEvent(new kt({type:"info",message:tr.messages.feedbackAndRatingDisabledInEditor()}))}async sendFeedback(t){var e;try{!this.editorMode&&this.tocNode?(await((e=this.service)===null||e===void 0?void 0:e.sendTopicFeedback(this.tocNode.tocId,t.detail.message,t.detail.from)),this.dispatchEvent(new kt({type:"info",message:Q.messages.feedbackSuccess()})),this.readerFeedback.clearFeedbackInput()):this.editorMode&&this.dispatchEvent(new kt({type:"info",message:tr.messages.feedbackAndRatingDisabledInEditor()}))}catch{this.dispatchEvent(new kt({type:"error",message:Q.messages.feedbackFailure()}))}}onMailerFeedbackSent(){let t=this.tocNode;this.dispatchEvent(new cn(t))}openMoreOptions(){var t,e,i,n,a,s,l,d;this.dispatchEvent(new sn({mapId:this.map.id,mapTitle:this.map.title,tocId:this.tocNode.tocId,topicTitle:this.tocNode.title,topicUrl:(e=(t=this.service)===null||t===void 0?void 0:t.getLink(this.tocNode.tocId))!==null&&e!==void 0?e:"",mapMetadata:((i=this.map)===null||i===void 0?void 0:i.metadata)||[],breadcrumb:((a=(n=this.stateManager)===null||n===void 0?void 0:n.service)===null||a===void 0?void 0:a.buildBreadcrumb(this.tocNode.tocId))||[],ratingType:(!((s=this.tocNode)===null||s===void 0)&&s.hasRating?(l=this.ratingSummary)===null||l===void 0?void 0:l.type:Ie.NO_RATING)||Ie.NO_RATING,ratingValue:(d=this.ratingSummary)===null||d===void 0?void 0:d.rating}))}};gt.elementDefinitions={"ft-reader-feedback":it};It([ct({store:M.name})],gt.prototype,"session",void 0);It([ct({store:"reader"})],gt.prototype,"map",void 0);It([ct({store:M.name})],gt.prototype,"editorMode",void 0);It([ct({store:"reader",selector:r=>{var t;return(t=r.configuration)===null||t===void 0?void 0:t.feedback}})],gt.prototype,"configuration",void 0);It([z()],gt.prototype,"ratingSummary",void 0);It([g({type:Boolean})],gt.prototype,"hideTitle",void 0);It([g({type:Boolean})],gt.prototype,"withMoreOptionsButton",void 0);It([g()],gt.prototype,"iconVariant",void 0);It([g()],gt.prototype,"emptyStarIcon",void 0);It([g()],gt.prototype,"filledStarIcon",void 0);It([g()],gt.prototype,"emptyLikeIcon",void 0);It([g()],gt.prototype,"filledLikeIcon",void 0);It([g()],gt.prototype,"emptyDislikeIcon",void 0);It([g()],gt.prototype,"filledDislikeIcon",void 0);It([X("ft-reader-feedback")],gt.prototype,"readerFeedback",void 0);It([ji(to.properties["mail.feedback.subject"](r=>{var t,e;return[(t=r.tocNode)===null||t===void 0?void 0:t.title,(e=r.map)===null||e===void 0?void 0:e.title]}))],gt.prototype,"mailSubject",void 0);It([Lo({eventName:"rating-changed"})],gt.prototype,"fetchRatingSummary",null);G("ft-reader-map-feedback")(yt);G("ft-reader-topic-feedback")(gt);})();
2031
+ `}update(t){var e,i,n,a;super.update(t),["tocNode","user"].some(s=>t.has(s))&&this.tocNode&&this.updateData(),t.has("editorMode")&&this.editorMode&&this.addI18nContext(tr,hn),["map","tocNode","configuration","user","mailSubject"].some(s=>t.has(s))&&this.map&&this.tocNode&&this.configuration&&this.feedbackLinkBuilder.update(this.mailSubject,(i=(e=this.service)===null||e===void 0?void 0:e.getLink(this.tocNode.tocId))!==null&&i!==void 0?i:"",this.map.metadata,this.configuration,((a=(n=this.session)===null||n===void 0?void 0:n.profile)===null||a===void 0?void 0:a.userId)!=null)}connectedCallback(){super.connectedCallback(),this.updateData()}updateData(){this.updateDebouncer.run(async()=>{var t,e;this.tocNode&&(!((e=(t=this.session)===null||t===void 0?void 0:t.profile)===null||e===void 0)&&e.userId||this.ratingSummary==null)&&await this.fetchRatingSummary()})}async fetchRatingSummary(){var t;this.ratingSummary=await((t=this.service)===null||t===void 0?void 0:t.getTopicRating(this.tocNode.tocId))}rate(t){this.ratingSummary&&this.tocNode&&(this.ratingSummary={...this.ratingSummary,rating:t.detail==null?void 0:{tocId:this.tocNode.tocId,type:this.ratingSummary.type,value:t.detail,date:new Date}},this.sendRatingDebouncer.run(()=>this.sendRating(t.detail)))}async sendRating(t){var e,i,n;if(!this.editorMode&&this.ratingSummary&&this.tocNode){try{t==null?await((e=this.service)===null||e===void 0?void 0:e.unrateTopic(this.tocNode.tocId)):await((i=this.service)===null||i===void 0?void 0:i.rateTopic(this.tocNode.tocId,(n=this.ratingSummary)===null||n===void 0?void 0:n.type,t))}catch{this.dispatchEvent(new Mt({type:"error",message:tt.messages.ratingFailure()}))}this.updateData()}else this.editorMode&&this.dispatchEvent(new Mt({type:"info",message:tr.messages.feedbackAndRatingDisabledInEditor()}))}async sendFeedback(t){var e;try{!this.editorMode&&this.tocNode?(await((e=this.service)===null||e===void 0?void 0:e.sendTopicFeedback(this.tocNode.tocId,t.detail.message,t.detail.from)),this.dispatchEvent(new Mt({type:"info",message:tt.messages.feedbackSuccess()})),this.readerFeedback.clearFeedbackInput()):this.editorMode&&this.dispatchEvent(new Mt({type:"info",message:tr.messages.feedbackAndRatingDisabledInEditor()}))}catch{this.dispatchEvent(new Mt({type:"error",message:tt.messages.feedbackFailure()}))}}onMailerFeedbackSent(){let t=this.tocNode;this.dispatchEvent(new un(t))}openMoreOptions(){var t,e,i,n,a,s,l,d;this.dispatchEvent(new dn({mapId:this.map.id,mapTitle:this.map.title,tocId:this.tocNode.tocId,topicTitle:this.tocNode.title,topicUrl:(e=(t=this.service)===null||t===void 0?void 0:t.getLink(this.tocNode.tocId))!==null&&e!==void 0?e:"",mapMetadata:((i=this.map)===null||i===void 0?void 0:i.metadata)||[],breadcrumb:((a=(n=this.stateManager)===null||n===void 0?void 0:n.service)===null||a===void 0?void 0:a.buildBreadcrumb(this.tocNode.tocId))||[],ratingType:(!((s=this.tocNode)===null||s===void 0)&&s.hasRating?(l=this.ratingSummary)===null||l===void 0?void 0:l.type:Ie.NO_RATING)||Ie.NO_RATING,ratingValue:(d=this.ratingSummary)===null||d===void 0?void 0:d.rating}))}};vt.elementDefinitions={"ft-reader-feedback":nt};It([ct({store:M.name})],vt.prototype,"session",void 0);It([ct({store:"reader"})],vt.prototype,"map",void 0);It([ct({store:M.name})],vt.prototype,"editorMode",void 0);It([ct({store:"reader",selector:r=>{var t;return(t=r.configuration)===null||t===void 0?void 0:t.feedback}})],vt.prototype,"configuration",void 0);It([U()],vt.prototype,"ratingSummary",void 0);It([g({type:Boolean})],vt.prototype,"hideTitle",void 0);It([g({type:Boolean})],vt.prototype,"withMoreOptionsButton",void 0);It([g()],vt.prototype,"iconVariant",void 0);It([g()],vt.prototype,"emptyStarIcon",void 0);It([g()],vt.prototype,"filledStarIcon",void 0);It([g()],vt.prototype,"emptyLikeIcon",void 0);It([g()],vt.prototype,"filledLikeIcon",void 0);It([g()],vt.prototype,"emptyDislikeIcon",void 0);It([g()],vt.prototype,"filledDislikeIcon",void 0);It([Q("ft-reader-feedback")],vt.prototype,"readerFeedback",void 0);It([Zi(eo.properties["mail.feedback.subject"](r=>{var t,e;return[(t=r.tocNode)===null||t===void 0?void 0:t.title,(e=r.map)===null||e===void 0?void 0:e.title]}))],vt.prototype,"mailSubject",void 0);It([Mo({eventName:"rating-changed"})],vt.prototype,"fetchRatingSummary",null);Z("ft-reader-map-feedback")(bt);Z("ft-reader-topic-feedback")(vt);})();
2019
2032
  /*! Bundled license information:
2020
2033
 
2021
2034
  @webcomponents/scoped-custom-element-registry/src/scoped-custom-element-registry.js: