@fluid-topics/ft-search-selected-facets 1.1.100 → 1.1.101
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,13 +1,13 @@
|
|
|
1
|
-
"use strict";(()=>{var _d=Object.create;var Di=Object.defineProperty;var Td=Object.getOwnPropertyDescriptor;var Pd=Object.getOwnPropertyNames;var $d=Object.getPrototypeOf,Ld=Object.prototype.hasOwnProperty;var Id=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),J=(t,e)=>{for(var r in e)Di(t,r,{get:e[r],enumerable:!0})},kd=(t,e,r,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of Pd(e))!Ld.call(t,n)&&n!==r&&Di(t,n,{get:()=>e[n],enumerable:!(i=Td(e,n))||i.enumerable});return t};var Dd=(t,e,r)=>(r=t!=null?_d($d(t)):{},kd(e||!t||!t.__esModule?Di(r,"default",{value:t,enumerable:!0}):r,t));var yc=Id(mc=>{(function(t){var e=function(r){var i={searchParams:"URLSearchParams"in t,iterable:"Symbol"in t&&"iterator"in Symbol,blob:"FileReader"in t&&"Blob"in t&&function(){try{return new Blob,!0}catch{return!1}}(),formData:"FormData"in t,arrayBuffer:"ArrayBuffer"in t};function n(m){return m&&DataView.prototype.isPrototypeOf(m)}if(i.arrayBuffer)var a=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],s=ArrayBuffer.isView||function(m){return m&&a.indexOf(Object.prototype.toString.call(m))>-1};function l(m){if(typeof m!="string"&&(m=String(m)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(m))throw new TypeError("Invalid character in header field name");return m.toLowerCase()}function c(m){return typeof m!="string"&&(m=String(m)),m}function p(m){var v={next:function(){var R=m.shift();return{done:R===void 0,value:R}}};return i.iterable&&(v[Symbol.iterator]=function(){return v}),v}function u(m){this.map={},m instanceof u?m.forEach(function(v,R){this.append(R,v)},this):Array.isArray(m)?m.forEach(function(v){this.append(v[0],v[1])},this):m&&Object.getOwnPropertyNames(m).forEach(function(v){this.append(v,m[v])},this)}u.prototype.append=function(m,v){m=l(m),v=c(v);var R=this.map[m];this.map[m]=R?R+", "+v:v},u.prototype.delete=function(m){delete this.map[l(m)]},u.prototype.get=function(m){return m=l(m),this.has(m)?this.map[m]:null},u.prototype.has=function(m){return this.map.hasOwnProperty(l(m))},u.prototype.set=function(m,v){this.map[l(m)]=c(v)},u.prototype.forEach=function(m,v){for(var R in this.map)this.map.hasOwnProperty(R)&&m.call(v,this.map[R],R,this)},u.prototype.keys=function(){var m=[];return this.forEach(function(v,R){m.push(R)}),p(m)},u.prototype.values=function(){var m=[];return this.forEach(function(v){m.push(v)}),p(m)},u.prototype.entries=function(){var m=[];return this.forEach(function(v,R){m.push([R,v])}),p(m)},i.iterable&&(u.prototype[Symbol.iterator]=u.prototype.entries);function h(m){if(m.bodyUsed)return Promise.reject(new TypeError("Already read"));m.bodyUsed=!0}function g(m){return new Promise(function(v,R){m.onload=function(){v(m.result)},m.onerror=function(){R(m.error)}})}function b(m){var v=new FileReader,R=g(v);return v.readAsArrayBuffer(m),R}function x(m){var v=new FileReader,R=g(v);return v.readAsText(m),R}function C(m){for(var v=new Uint8Array(m),R=new Array(v.length),j=0;j<v.length;j++)R[j]=String.fromCharCode(v[j]);return R.join("")}function P(m){if(m.slice)return m.slice(0);var v=new Uint8Array(m.byteLength);return v.set(new Uint8Array(m)),v.buffer}function $(){return this.bodyUsed=!1,this._initBody=function(m){this._bodyInit=m,m?typeof m=="string"?this._bodyText=m:i.blob&&Blob.prototype.isPrototypeOf(m)?this._bodyBlob=m:i.formData&&FormData.prototype.isPrototypeOf(m)?this._bodyFormData=m:i.searchParams&&URLSearchParams.prototype.isPrototypeOf(m)?this._bodyText=m.toString():i.arrayBuffer&&i.blob&&n(m)?(this._bodyArrayBuffer=P(m.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):i.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(m)||s(m))?this._bodyArrayBuffer=P(m):this._bodyText=m=Object.prototype.toString.call(m):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):i.searchParams&&URLSearchParams.prototype.isPrototypeOf(m)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},i.blob&&(this.blob=function(){var m=h(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(){return this._bodyArrayBuffer?h(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(b)}),this.text=function(){var m=h(this);if(m)return m;if(this._bodyBlob)return x(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(C(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},i.formData&&(this.formData=function(){return this.text().then(E)}),this.json=function(){return this.text().then(JSON.parse)},this}var I=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function O(m){var v=m.toUpperCase();return I.indexOf(v)>-1?v:m}function S(m,v){v=v||{};var R=v.body;if(m instanceof S){if(m.bodyUsed)throw new TypeError("Already read");this.url=m.url,this.credentials=m.credentials,v.headers||(this.headers=new u(m.headers)),this.method=m.method,this.mode=m.mode,this.signal=m.signal,!R&&m._bodyInit!=null&&(R=m._bodyInit,m.bodyUsed=!0)}else this.url=String(m);if(this.credentials=v.credentials||this.credentials||"same-origin",(v.headers||!this.headers)&&(this.headers=new u(v.headers)),this.method=O(v.method||this.method||"GET"),this.mode=v.mode||this.mode||null,this.signal=v.signal||this.signal,this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&R)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(R)}S.prototype.clone=function(){return new S(this,{body:this._bodyInit})};function E(m){var v=new FormData;return m.trim().split("&").forEach(function(R){if(R){var j=R.split("="),ne=j.shift().replace(/\+/g," "),q=j.join("=").replace(/\+/g," ");v.append(decodeURIComponent(ne),decodeURIComponent(q))}}),v}function U(m){var v=new u,R=m.replace(/\r?\n[\t ]+/g," ");return R.split(/\r?\n/).forEach(function(j){var ne=j.split(":"),q=ne.shift().trim();if(q){var No=ne.join(":").trim();v.append(q,No)}}),v}$.call(S.prototype);function z(m,v){v||(v={}),this.type="default",this.status=v.status===void 0?200:v.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in v?v.statusText:"OK",this.headers=new u(v.headers),this.url=v.url||"",this._initBody(m)}$.call(z.prototype),z.prototype.clone=function(){return new z(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new u(this.headers),url:this.url})},z.error=function(){var m=new z(null,{status:0,statusText:""});return m.type="error",m};var Se=[301,302,303,307,308];z.redirect=function(m,v){if(Se.indexOf(v)===-1)throw new RangeError("Invalid status code");return new z(null,{status:v,headers:{location:m}})},r.DOMException=t.DOMException;try{new r.DOMException}catch{r.DOMException=function(v,R){this.message=v,this.name=R;var j=Error(v);this.stack=j.stack},r.DOMException.prototype=Object.create(Error.prototype),r.DOMException.prototype.constructor=r.DOMException}function Z(m,v){return new Promise(function(R,j){var ne=new S(m,v);if(ne.signal&&ne.signal.aborted)return j(new r.DOMException("Aborted","AbortError"));var q=new XMLHttpRequest;function No(){q.abort()}q.onload=function(){var Kr={status:q.status,statusText:q.statusText,headers:U(q.getAllResponseHeaders()||"")};Kr.url="responseURL"in q?q.responseURL:Kr.headers.get("X-Request-URL");var ki="response"in q?q.response:q.responseText;R(new z(ki,Kr))},q.onerror=function(){j(new TypeError("Network request failed"))},q.ontimeout=function(){j(new TypeError("Network request failed"))},q.onabort=function(){j(new r.DOMException("Aborted","AbortError"))},q.open(ne.method,ne.url,!0),ne.credentials==="include"?q.withCredentials=!0:ne.credentials==="omit"&&(q.withCredentials=!1),"responseType"in q&&i.blob&&(q.responseType="blob"),ne.headers.forEach(function(Kr,ki){q.setRequestHeader(ki,Kr)}),ne.signal&&(ne.signal.addEventListener("abort",No),q.onreadystatechange=function(){q.readyState===4&&ne.signal.removeEventListener("abort",No)}),q.send(typeof ne._bodyInit>"u"?null:ne._bodyInit)})}return Z.polyfill=!0,t.fetch||(t.fetch=Z,t.Headers=u,t.Request=S,t.Response=z),r.Headers=u,r.Request=S,r.Response=z,r.fetch=Z,Object.defineProperty(r,"__esModule",{value:!0}),r}({})})(typeof self<"u"?self:mc)});if(!ShadowRoot.prototype.createElement){let t=window.HTMLElement,e=window.customElements.define,r=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(O,S){if(O=O.toLowerCase(),this._getDefinition(O)!==void 0)throw new DOMException(`Failed to execute 'define' on 'CustomElementRegistry': the name "${O}" has already been used with this registry`);if(this._definitionsByClass.get(S)!==void 0)throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");let E=S.prototype.attributeChangedCallback,U=new Set(S.observedAttributes||[]);g(S,U,E);let z={elementClass:S,connectedCallback:S.prototype.connectedCallback,disconnectedCallback:S.prototype.disconnectedCallback,adoptedCallback:S.prototype.adoptedCallback,attributeChangedCallback:E,formAssociated:S.formAssociated,formAssociatedCallback:S.prototype.formAssociatedCallback,formDisabledCallback:S.prototype.formDisabledCallback,formResetCallback:S.prototype.formResetCallback,formStateRestoreCallback:S.prototype.formStateRestoreCallback,observedAttributes:U};this._definitionsByTag.set(O,z),this._definitionsByClass.set(S,z);let Se=r.call(i,O);Se||(Se=h(O),e.call(i,O,Se)),this===window.customElements&&(s.set(S,z),z.standInClass=Se);let Z=this._awaitingUpgrade.get(O);if(Z){this._awaitingUpgrade.delete(O);for(let v of Z)a.delete(v),x(v,z,!0)}let m=this._whenDefinedPromises.get(O);return m!==void 0&&(m.resolve(S),this._whenDefinedPromises.delete(O)),S}upgrade(){P.push(this),i.upgrade.apply(i,arguments),P.pop()}get(O){return this._definitionsByTag.get(O)?.elementClass}_getDefinition(O){return this._definitionsByTag.get(O)}whenDefined(O){let S=this._getDefinition(O);if(S!==void 0)return Promise.resolve(S.elementClass);let E=this._whenDefinedPromises.get(O);return E===void 0&&(E={},E.promise=new Promise(U=>E.resolve=U),this._whenDefinedPromises.set(O,E)),E.promise}_upgradeWhenDefined(O,S,E){let U=this._awaitingUpgrade.get(S);U||this._awaitingUpgrade.set(S,U=new Set),E?U.add(O):U.delete(O)}};let c;window.HTMLElement=function(){let S=c;if(S)return c=void 0,S;let E=s.get(this.constructor);if(!E)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return S=Reflect.construct(t,[],E.standInClass),Object.setPrototypeOf(S,this.constructor.prototype),n.set(S,E),S},window.HTMLElement.prototype=t.prototype;let p=O=>O===document||O instanceof ShadowRoot,u=O=>{let S=O.getRootNode();if(!p(S)){let E=P[P.length-1];if(E instanceof CustomElementRegistry)return E;S=E.getRootNode(),p(S)||(S=l.get(S)?.getRootNode()||document)}return S.customElements},h=O=>class{static get formAssociated(){return!0}constructor(){let E=Reflect.construct(t,[],this.constructor);Object.setPrototypeOf(E,HTMLElement.prototype);let U=u(E)||window.customElements,z=U._getDefinition(O);return z?x(E,z):a.set(E,U),E}connectedCallback(){let E=n.get(this);E?E.connectedCallback&&E.connectedCallback.apply(this,arguments):a.get(this)._upgradeWhenDefined(this,O,!0)}disconnectedCallback(){let E=n.get(this);E?E.disconnectedCallback&&E.disconnectedCallback.apply(this,arguments):a.get(this)._upgradeWhenDefined(this,O,!1)}adoptedCallback(){n.get(this)?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){let E=n.get(this);E&&E.formAssociated&&E?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){let E=n.get(this);E?.formAssociated&&E?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){let E=n.get(this);E?.formAssociated&&E?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){let E=n.get(this);E?.formAssociated&&E?.formStateRestoreCallback?.apply(this,arguments)}},g=(O,S,E)=>{if(S.size===0||E===void 0)return;let U=O.prototype.setAttribute;U&&(O.prototype.setAttribute=function(Z,m){let v=Z.toLowerCase();if(S.has(v)){let R=this.getAttribute(v);U.call(this,v,m),E.call(this,v,R,m)}else U.call(this,v,m)});let z=O.prototype.removeAttribute;z&&(O.prototype.removeAttribute=function(Z){let m=Z.toLowerCase();if(S.has(m)){let v=this.getAttribute(m);z.call(this,m),E.call(this,m,v,null)}else z.call(this,m)});let Se=O.prototype.toggleAttribute;Se&&(O.prototype.toggleAttribute=function(Z,m){let v=Z.toLowerCase();if(S.has(v)){let R=this.getAttribute(v);Se.call(this,v,m);let j=this.getAttribute(v);E.call(this,v,R,j)}else Se.call(this,v,m)})},b=O=>{let S=Object.getPrototypeOf(O);if(S!==window.HTMLElement)return S===t?Object.setPrototypeOf(O,window.HTMLElement):b(S)},x=(O,S,E=!1)=>{Object.setPrototypeOf(O,S.elementClass.prototype),n.set(O,S),c=O;try{new S.elementClass}catch{b(S.elementClass),new S.elementClass}S.attributeChangedCallback&&S.observedAttributes.forEach(U=>{O.hasAttribute(U)&&S.attributeChangedCallback.call(O,U,null,O.getAttribute(U))}),E&&S.connectedCallback&&O.isConnected&&S.connectedCallback.call(O)},C=Element.prototype.attachShadow;Element.prototype.attachShadow=function(O){let S=C.apply(this,arguments);return O.customElements&&(S.customElements=O.customElements),S};let P=[document],$=(O,S,E=void 0)=>{let U=(E?Object.getPrototypeOf(E):O.prototype)[S];O.prototype[S]=function(){P.push(this);let z=U.apply(E||this,arguments);return z!==void 0&&l.set(z,this),P.pop(),z}};$(ShadowRoot,"createElement",document),$(ShadowRoot,"importNode",document),$(Element,"insertAdjacentHTML");let I=(O,S)=>{let E=Object.getOwnPropertyDescriptor(O.prototype,S);Object.defineProperty(O.prototype,S,{...E,set(U){P.push(this),E.set.call(this,U),P.pop()}})};if(I(Element,"innerHTML"),I(ShadowRoot,"innerHTML"),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){let O=new WeakMap,S=HTMLElement.prototype.attachInternals,E=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...Z){let m=S.call(this,...Z);return O.set(m,this),m},E.forEach(Z=>{let m=window.ElementInternals.prototype,v=m[Z];m[Z]=function(...R){let j=O.get(this);if(n.get(j).formAssociated===!0)return v?.call(this,...R);throw new DOMException(`Failed to execute ${v} on 'ElementInternals': The target element is not a form-associated custom element.`)}});class U extends Array{constructor(m){super(...m),this._elements=m}get value(){return this._elements.find(m=>m.checked===!0)?.value||""}}class z{constructor(m){let v=new Map;m.forEach((R,j)=>{let ne=R.getAttribute("name"),q=v.get(ne)||[];this[+j]=R,q.push(R),v.set(ne,q)}),this.length=m.length,v.forEach((R,j)=>{R&&(R.length===1?this[j]=R[0]:this[j]=new U(R))})}namedItem(m){return this[m]}}let Se=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){let Z=Se.get.call(this,[]),m=[];for(let v of Z){let R=n.get(v);(!R||R.formAssociated===!0)&&m.push(v)}return new z(m)}})}}try{window.customElements.define("custom-element",null)}catch{let e=window.customElements.define;window.customElements.define=(r,i,n)=>{if(i!==null)try{e.bind(window.customElements)(r,i,n)}catch(a){console.info(r,i,n,a)}}}var qi={};J(qi,{CSSResult:()=>ur,LitElement:()=>ft,ReactiveElement:()=>et,_$LE:()=>ap,_$LH:()=>op,adoptStyles:()=>Ho,css:()=>N,defaultConverter:()=>Vo,getCompatibleStyle:()=>eo,html:()=>_,isServer:()=>Iu,noChange:()=>wt,notEqual:()=>Hi,nothing:()=>B,render:()=>Zi,supportsAdoptingStyleSheets:()=>Qr,svg:()=>rp,unsafeCSS:()=>dt});var _o=globalThis,Po=_o.ShadowRoot&&(_o.ShadyCSS===void 0||_o.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,us=Symbol(),fs=new WeakMap,To=class{constructor(e,r,i){if(this._$cssResult$=!0,i!==us)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=r}get styleSheet(){let e=this.o,r=this.t;if(Po&&e===void 0){let i=r!==void 0&&r.length===1;i&&(e=fs.get(r)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),i&&fs.set(r,e))}return e}toString(){return this.cssText}},hs=t=>new To(typeof t=="string"?t:t+"",void 0,us);var Mi=(t,e)=>{if(Po)t.adoptedStyleSheets=e.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet);else for(let r of e){let i=document.createElement("style"),n=_o.litNonce;n!==void 0&&i.setAttribute("nonce",n),i.textContent=r.cssText,t.appendChild(i)}},$o=Po?t=>t:t=>t instanceof CSSStyleSheet?(e=>{let r="";for(let i of e.cssRules)r+=i.cssText;return hs(r)})(t):t;var{is:Md,defineProperty:Ud,getOwnPropertyDescriptor:Bd,getOwnPropertyNames:Fd,getOwnPropertySymbols:zd,getPrototypeOf:Wd}=Object,Lo=globalThis,ms=Lo.trustedTypes,Hd=ms?ms.emptyScript:"",Vd=Lo.reactiveElementPolyfillSupport,Gr=(t,e)=>t,Zr={toAttribute(t,e){switch(e){case Boolean:t=t?Hd:null;break;case Object:case Array:t=t==null?t:JSON.stringify(t)}return t},fromAttribute(t,e){let r=t;switch(e){case Boolean:r=t!==null;break;case Number:r=t===null?null:Number(t);break;case Object:case Array:try{r=JSON.parse(t)}catch{r=null}}return r}},Io=(t,e)=>!Md(t,e),ys={attribute:!0,type:String,converter:Zr,reflect:!1,hasChanged:Io};Symbol.metadata??=Symbol("metadata"),Lo.litPropertyMetadata??=new WeakMap;var Ht=class extends HTMLElement{static addInitializer(e){this._$Ei(),(this.l??=[]).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,r=ys){if(r.state&&(r.attribute=!1),this._$Ei(),this.elementProperties.set(e,r),!r.noAccessor){let i=Symbol(),n=this.getPropertyDescriptor(e,i,r);n!==void 0&&Ud(this.prototype,e,n)}}static getPropertyDescriptor(e,r,i){let{get:n,set:a}=Bd(this.prototype,e)??{get(){return this[r]},set(s){this[r]=s}};return{get(){return n?.call(this)},set(s){let l=n?.call(this);a.call(this,s),this.requestUpdate(e,l,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??ys}static _$Ei(){if(this.hasOwnProperty(Gr("elementProperties")))return;let e=Wd(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(Gr("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Gr("properties"))){let r=this.properties,i=[...Fd(r),...zd(r)];for(let n of i)this.createProperty(n,r[n])}let e=this[Symbol.metadata];if(e!==null){let r=litPropertyMetadata.get(e);if(r!==void 0)for(let[i,n]of r)this.elementProperties.set(i,n)}this._$Eh=new Map;for(let[r,i]of this.elementProperties){let n=this._$Eu(r,i);n!==void 0&&this._$Eh.set(n,r)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){let r=[];if(Array.isArray(e)){let i=new Set(e.flat(1/0).reverse());for(let n of i)r.unshift($o(n))}else e!==void 0&&r.push($o(e));return r}static _$Eu(e,r){let i=r.attribute;return i===!1?void 0:typeof i=="string"?i:typeof e=="string"?e.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(e=>this.enableUpdating=e),this._$AL=new Map,this._$ES(),this.requestUpdate(),this.constructor.l?.forEach(e=>e(this))}addController(e){(this._$E_??=new Set).add(e),this.renderRoot!==void 0&&this.isConnected&&e.hostConnected?.()}removeController(e){this._$E_?.delete(e)}_$ES(){let e=new Map,r=this.constructor.elementProperties;for(let i of r.keys())this.hasOwnProperty(i)&&(e.set(i,this[i]),delete this[i]);e.size>0&&(this._$Ep=e)}createRenderRoot(){let e=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return Mi(e,this.constructor.elementStyles),e}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$E_?.forEach(e=>e.hostConnected?.())}enableUpdating(e){}disconnectedCallback(){this._$E_?.forEach(e=>e.hostDisconnected?.())}attributeChangedCallback(e,r,i){this._$AK(e,i)}_$EO(e,r){let i=this.constructor.elementProperties.get(e),n=this.constructor._$Eu(e,i);if(n!==void 0&&i.reflect===!0){let a=(i.converter?.toAttribute!==void 0?i.converter:Zr).toAttribute(r,i.type);this._$Em=e,a==null?this.removeAttribute(n):this.setAttribute(n,a),this._$Em=null}}_$AK(e,r){let i=this.constructor,n=i._$Eh.get(e);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:Zr;this._$Em=n,this[n]=s.fromAttribute(r,a.type),this._$Em=null}}requestUpdate(e,r,i,n=!1,a){if(e!==void 0){if(i??=this.constructor.getPropertyOptions(e),!(i.hasChanged??Io)(n?a:this[e],r))return;this.C(e,r,i)}this.isUpdatePending===!1&&(this._$Eg=this._$EP())}C(e,r,i){this._$AL.has(e)||this._$AL.set(e,r),i.reflect===!0&&this._$Em!==e&&(this._$Ej??=new Set).add(e)}async _$EP(){this.isUpdatePending=!0;try{await this._$Eg}catch(r){Promise.reject(r)}let e=this.scheduleUpdate();return e!=null&&await e,!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 e=!1,r=this._$AL;try{e=this.shouldUpdate(r),e?(this.willUpdate(r),this._$E_?.forEach(i=>i.hostUpdate?.()),this.update(r)):this._$ET()}catch(i){throw e=!1,this._$ET(),i}e&&this._$AE(r)}willUpdate(e){}_$AE(e){this._$E_?.forEach(r=>r.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$ET(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$Eg}shouldUpdate(e){return!0}update(e){this._$Ej&&=this._$Ej.forEach(r=>this._$EO(r,this[r])),this._$ET()}updated(e){}firstUpdated(e){}};Ht.elementStyles=[],Ht.shadowRootOptions={mode:"open"},Ht[Gr("elementProperties")]=new Map,Ht[Gr("finalized")]=new Map,Vd?.({ReactiveElement:Ht}),(Lo.reactiveElementVersions??=[]).push("2.0.2");var Bi=globalThis,ko=Bi.trustedTypes,gs=ko?ko.createPolicy("lit-html",{createHTML:t=>t}):void 0,Fi="$lit$",ct=`lit$${(Math.random()+"").slice(9)}$`,zi="?"+ct,jd=`<${zi}>`,Kt=document,Do=()=>Kt.createComment(""),Yr=t=>t===null||typeof t!="object"&&typeof t!="function",Cs=Array.isArray,Es=t=>Cs(t)||typeof t?.[Symbol.iterator]=="function",Ui=`[
|
|
2
|
-
\f\r]`,qr=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,
|
|
3
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),vs=/'/g,Ss=/"/g,ws=/^(?:script|style|textarea|title)$/i,As=t=>(e,...r)=>({_$litType$:t,strings:e,values:r}),Rs=As(1),Ns=As(2),ke=Symbol.for("lit-noChange"),ae=Symbol.for("lit-nothing"),Os=new WeakMap,jt=Kt.createTreeWalker(Kt,129);function _s(t,e){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return gs!==void 0?gs.createHTML(e):e}var Ts=(t,e)=>{let r=t.length-1,i=[],n,a=e===2?"<svg>":"",s=qr;for(let l=0;l<r;l++){let c=t[l],p,u,h=-1,g=0;for(;g<c.length&&(s.lastIndex=g,u=s.exec(c),u!==null);)g=s.lastIndex,s===qr?u[1]==="!--"?s=bs:u[1]!==void 0?s=xs:u[2]!==void 0?(ws.test(u[2])&&(n=RegExp("</"+u[2],"g")),s=Vt):u[3]!==void 0&&(s=Vt):s===Vt?u[0]===">"?(s=n??qr,h=-1):u[1]===void 0?h=-2:(h=s.lastIndex-u[2].length,p=u[1],s=u[3]===void 0?Vt:u[3]==='"'?Ss:vs):s===Ss||s===vs?s=Vt:s===bs||s===xs?s=qr:(s=Vt,n=void 0);let b=s===Vt&&t[l+1].startsWith("/>")?" ":"";a+=s===qr?c+jd:h>=0?(i.push(p),c.slice(0,h)+Fi+c.slice(h)+ct+b):c+ct+(h===-2?l:b)}return[_s(t,a+(t[r]||"<?>")+(e===2?"</svg>":"")),i]},Xr=class t{constructor({strings:e,_$litType$:r},i){let n;this.parts=[];let a=0,s=0,l=e.length-1,c=this.parts,[p,u]=Ts(e,r);if(this.el=t.createElement(p,i),jt.currentNode=this.el.content,r===2){let h=this.el.content.firstChild;h.replaceWith(...h.childNodes)}for(;(n=jt.nextNode())!==null&&c.length<l;){if(n.nodeType===1){if(n.hasAttributes())for(let h of n.getAttributeNames())if(h.endsWith(Fi)){let g=u[s++],b=n.getAttribute(h).split(ct),x=/([.?@])?(.*)/.exec(g);c.push({type:1,index:a,name:x[2],strings:b,ctor:x[1]==="."?Uo:x[1]==="?"?Bo:x[1]==="@"?Fo:Zt}),n.removeAttribute(h)}else h.startsWith(ct)&&(c.push({type:6,index:a}),n.removeAttribute(h));if(ws.test(n.tagName)){let h=n.textContent.split(ct),g=h.length-1;if(g>0){n.textContent=ko?ko.emptyScript:"";for(let b=0;b<g;b++)n.append(h[b],Do()),jt.nextNode(),c.push({type:2,index:++a});n.append(h[g],Do())}}}else if(n.nodeType===8)if(n.data===zi)c.push({type:2,index:a});else{let h=-1;for(;(h=n.data.indexOf(ct,h+1))!==-1;)c.push({type:7,index:a}),h+=ct.length-1}a++}}static createElement(e,r){let i=Kt.createElement("template");return i.innerHTML=e,i}};function Gt(t,e,r=t,i){if(e===ke)return e;let n=i!==void 0?r._$Co?.[i]:r._$Cl,a=Yr(e)?void 0:e._$litDirective$;return n?.constructor!==a&&(n?._$AO?.(!1),a===void 0?n=void 0:(n=new a(t),n._$AT(t,r,i)),i!==void 0?(r._$Co??=[])[i]=n:r._$Cl=n),n!==void 0&&(e=Gt(t,n._$AS(t,e.values),n,i)),e}var Mo=class{constructor(e,r){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=r}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){let{el:{content:r},parts:i}=this._$AD,n=(e?.creationScope??Kt).importNode(r,!0);jt.currentNode=n;let a=jt.nextNode(),s=0,l=0,c=i[0];for(;c!==void 0;){if(s===c.index){let p;c.type===2?p=new Jr(a,a.nextSibling,this,e):c.type===1?p=new c.ctor(a,c.name,c.strings,this,e):c.type===6&&(p=new zo(a,this,e)),this._$AV.push(p),c=i[++l]}s!==c?.index&&(a=jt.nextNode(),s++)}return jt.currentNode=Kt,n}p(e){let r=0;for(let i of this._$AV)i!==void 0&&(i.strings!==void 0?(i._$AI(e,i,r),r+=i.strings.length-2):i._$AI(e[r])),r++}},Jr=class t{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,r,i,n){this.type=2,this._$AH=ae,this._$AN=void 0,this._$AA=e,this._$AB=r,this._$AM=i,this.options=n,this._$Cv=n?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode,r=this._$AM;return r!==void 0&&e?.nodeType===11&&(e=r.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,r=this){e=Gt(this,e,r),Yr(e)?e===ae||e==null||e===""?(this._$AH!==ae&&this._$AR(),this._$AH=ae):e!==this._$AH&&e!==ke&&this._(e):e._$litType$!==void 0?this.g(e):e.nodeType!==void 0?this.$(e):Es(e)?this.T(e):this._(e)}k(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}$(e){this._$AH!==e&&(this._$AR(),this._$AH=this.k(e))}_(e){this._$AH!==ae&&Yr(this._$AH)?this._$AA.nextSibling.data=e:this.$(Kt.createTextNode(e)),this._$AH=e}g(e){let{values:r,_$litType$:i}=e,n=typeof i=="number"?this._$AC(e):(i.el===void 0&&(i.el=Xr.createElement(_s(i.h,i.h[0]),this.options)),i);if(this._$AH?._$AD===n)this._$AH.p(r);else{let a=new Mo(n,this),s=a.u(this.options);a.p(r),this.$(s),this._$AH=a}}_$AC(e){let r=Os.get(e.strings);return r===void 0&&Os.set(e.strings,r=new Xr(e)),r}T(e){Cs(this._$AH)||(this._$AH=[],this._$AR());let r=this._$AH,i,n=0;for(let a of e)n===r.length?r.push(i=new t(this.k(Do()),this.k(Do()),this,this.options)):i=r[n],i._$AI(a),n++;n<r.length&&(this._$AR(i&&i._$AB.nextSibling,n),r.length=n)}_$AR(e=this._$AA.nextSibling,r){for(this._$AP?.(!1,!0,r);e&&e!==this._$AB;){let i=e.nextSibling;e.remove(),e=i}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e))}},Zt=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,r,i,n,a){this.type=1,this._$AH=ae,this._$AN=void 0,this.element=e,this.name=r,this._$AM=n,this.options=a,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=ae}_$AI(e,r=this,i,n){let a=this.strings,s=!1;if(a===void 0)e=Gt(this,e,r,0),s=!Yr(e)||e!==this._$AH&&e!==ke,s&&(this._$AH=e);else{let l=e,c,p;for(e=a[0],c=0;c<a.length-1;c++)p=Gt(this,l[i+c],r,c),p===ke&&(p=this._$AH[c]),s||=!Yr(p)||p!==this._$AH[c],p===ae?e=ae:e!==ae&&(e+=(p??"")+a[c+1]),this._$AH[c]=p}s&&!n&&this.O(e)}O(e){e===ae?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},Uo=class extends Zt{constructor(){super(...arguments),this.type=3}O(e){this.element[this.name]=e===ae?void 0:e}},Bo=class extends Zt{constructor(){super(...arguments),this.type=4}O(e){this.element.toggleAttribute(this.name,!!e&&e!==ae)}},Fo=class extends Zt{constructor(e,r,i,n,a){super(e,r,i,n,a),this.type=5}_$AI(e,r=this){if((e=Gt(this,e,r,0)??ae)===ke)return;let i=this._$AH,n=e===ae&&i!==ae||e.capture!==i.capture||e.once!==i.once||e.passive!==i.passive,a=e!==ae&&(i===ae||n);n&&this.element.removeEventListener(this.name,this,i),a&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,e):this._$AH.handleEvent(e)}},zo=class{constructor(e,r,i){this.element=e,this.type=6,this._$AN=void 0,this._$AM=r,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(e){Gt(this,e)}},Ps={j:Fi,P:ct,A:zi,C:1,M:Ts,L:Mo,R:Es,V:Gt,D:Jr,I:Zt,H:Bo,N:Fo,U:Uo,B:zo},Kd=Bi.litHtmlPolyfillSupport;Kd?.(Xr,Jr),(Bi.litHtmlVersions??=[]).push("3.1.0");var Wo=globalThis,Qr=Wo.ShadowRoot&&(Wo.ShadyCSS===void 0||Wo.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Wi=Symbol(),$s=new WeakMap,ur=class{constructor(e,r,i){if(this._$cssResult$=!0,i!==Wi)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=r}get styleSheet(){let e=this.o,r=this.t;if(Qr&&e===void 0){let i=r!==void 0&&r.length===1;i&&(e=$s.get(r)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),i&&$s.set(r,e))}return e}toString(){return this.cssText}},dt=t=>new ur(typeof t=="string"?t:t+"",void 0,Wi),N=(t,...e)=>{let r=t.length===1?t[0]:e.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)+t[a+1],t[0]);return new ur(r,t,Wi)},Ho=(t,e)=>{if(Qr)t.adoptedStyleSheets=e.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet);else for(let r of e){let i=document.createElement("style"),n=Wo.litNonce;n!==void 0&&i.setAttribute("nonce",n),i.textContent=r.cssText,t.appendChild(i)}},eo=Qr?t=>t:t=>t instanceof CSSStyleSheet?(e=>{let r="";for(let i of e.cssRules)r+=i.cssText;return dt(r)})(t):t;var{is:Gd,defineProperty:Zd,getOwnPropertyDescriptor:qd,getOwnPropertyNames:Yd,getOwnPropertySymbols:Xd,getPrototypeOf:Jd}=Object,jo=globalThis,Ls=jo.trustedTypes,Qd=Ls?Ls.emptyScript:"",ep=jo.reactiveElementPolyfillSupport,to=(t,e)=>t,Vo={toAttribute(t,e){switch(e){case Boolean:t=t?Qd:null;break;case Object:case Array:t=t==null?t:JSON.stringify(t)}return t},fromAttribute(t,e){let r=t;switch(e){case Boolean:r=t!==null;break;case Number:r=t===null?null:Number(t);break;case Object:case Array:try{r=JSON.parse(t)}catch{r=null}}return r}},Hi=(t,e)=>!Gd(t,e),Is={attribute:!0,type:String,converter:Vo,reflect:!1,hasChanged:Hi};Symbol.metadata??=Symbol("metadata"),jo.litPropertyMetadata??=new WeakMap;var et=class extends HTMLElement{static addInitializer(e){this._$Ei(),(this.l??=[]).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,r=Is){if(r.state&&(r.attribute=!1),this._$Ei(),this.elementProperties.set(e,r),!r.noAccessor){let i=Symbol(),n=this.getPropertyDescriptor(e,i,r);n!==void 0&&Zd(this.prototype,e,n)}}static getPropertyDescriptor(e,r,i){let{get:n,set:a}=qd(this.prototype,e)??{get(){return this[r]},set(s){this[r]=s}};return{get(){return n?.call(this)},set(s){let l=n?.call(this);a.call(this,s),this.requestUpdate(e,l,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??Is}static _$Ei(){if(this.hasOwnProperty(to("elementProperties")))return;let e=Jd(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(to("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(to("properties"))){let r=this.properties,i=[...Yd(r),...Xd(r)];for(let n of i)this.createProperty(n,r[n])}let e=this[Symbol.metadata];if(e!==null){let r=litPropertyMetadata.get(e);if(r!==void 0)for(let[i,n]of r)this.elementProperties.set(i,n)}this._$Eh=new Map;for(let[r,i]of this.elementProperties){let n=this._$Eu(r,i);n!==void 0&&this._$Eh.set(n,r)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){let r=[];if(Array.isArray(e)){let i=new Set(e.flat(1/0).reverse());for(let n of i)r.unshift(eo(n))}else e!==void 0&&r.push(eo(e));return r}static _$Eu(e,r){let i=r.attribute;return i===!1?void 0:typeof i=="string"?i:typeof e=="string"?e.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(e=>this.enableUpdating=e),this._$AL=new Map,this._$ES(),this.requestUpdate(),this.constructor.l?.forEach(e=>e(this))}addController(e){(this._$E_??=new Set).add(e),this.renderRoot!==void 0&&this.isConnected&&e.hostConnected?.()}removeController(e){this._$E_?.delete(e)}_$ES(){let e=new Map,r=this.constructor.elementProperties;for(let i of r.keys())this.hasOwnProperty(i)&&(e.set(i,this[i]),delete this[i]);e.size>0&&(this._$Ep=e)}createRenderRoot(){let e=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return Ho(e,this.constructor.elementStyles),e}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$E_?.forEach(e=>e.hostConnected?.())}enableUpdating(e){}disconnectedCallback(){this._$E_?.forEach(e=>e.hostDisconnected?.())}attributeChangedCallback(e,r,i){this._$AK(e,i)}_$EO(e,r){let i=this.constructor.elementProperties.get(e),n=this.constructor._$Eu(e,i);if(n!==void 0&&i.reflect===!0){let a=(i.converter?.toAttribute!==void 0?i.converter:Vo).toAttribute(r,i.type);this._$Em=e,a==null?this.removeAttribute(n):this.setAttribute(n,a),this._$Em=null}}_$AK(e,r){let i=this.constructor,n=i._$Eh.get(e);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:Vo;this._$Em=n,this[n]=s.fromAttribute(r,a.type),this._$Em=null}}requestUpdate(e,r,i,n=!1,a){if(e!==void 0){if(i??=this.constructor.getPropertyOptions(e),!(i.hasChanged??Hi)(n?a:this[e],r))return;this.C(e,r,i)}this.isUpdatePending===!1&&(this._$Eg=this._$EP())}C(e,r,i){this._$AL.has(e)||this._$AL.set(e,r),i.reflect===!0&&this._$Em!==e&&(this._$Ej??=new Set).add(e)}async _$EP(){this.isUpdatePending=!0;try{await this._$Eg}catch(r){Promise.reject(r)}let e=this.scheduleUpdate();return e!=null&&await e,!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 e=!1,r=this._$AL;try{e=this.shouldUpdate(r),e?(this.willUpdate(r),this._$E_?.forEach(i=>i.hostUpdate?.()),this.update(r)):this._$ET()}catch(i){throw e=!1,this._$ET(),i}e&&this._$AE(r)}willUpdate(e){}_$AE(e){this._$E_?.forEach(r=>r.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$ET(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$Eg}shouldUpdate(e){return!0}update(e){this._$Ej&&=this._$Ej.forEach(r=>this._$EO(r,this[r])),this._$ET()}updated(e){}firstUpdated(e){}};et.elementStyles=[],et.shadowRootOptions={mode:"open"},et[to("elementProperties")]=new Map,et[to("finalized")]=new Map,ep?.({ReactiveElement:et}),(jo.reactiveElementVersions??=[]).push("2.0.2");var ji=globalThis,Ko=ji.trustedTypes,ks=Ko?Ko.createPolicy("lit-html",{createHTML:t=>t}):void 0,Ki="$lit$",pt=`lit$${(Math.random()+"").slice(9)}$`,Gi="?"+pt,tp=`<${Gi}>`,Xt=document,oo=()=>Xt.createComment(""),io=t=>t===null||typeof t!="object"&&typeof t!="function",zs=Array.isArray,Ws=t=>zs(t)||typeof t?.[Symbol.iterator]=="function",Vi=`[
|
|
4
|
-
\f\r]`,ro=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,
|
|
5
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),Us=/'/g,Bs=/"/g,Hs=/^(?:script|style|textarea|title)$/i,Vs=t=>(e,...r)=>({_$litType$:t,strings:e,values:r}),_=Vs(1),rp=Vs(2),wt=Symbol.for("lit-noChange"),B=Symbol.for("lit-nothing"),Fs=new WeakMap,Yt=Xt.createTreeWalker(Xt,129);function js(t,e){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return ks!==void 0?ks.createHTML(e):e}var Ks=(t,e)=>{let r=t.length-1,i=[],n,a=e===2?"<svg>":"",s=ro;for(let l=0;l<r;l++){let c=t[l],p,u,h=-1,g=0;for(;g<c.length&&(s.lastIndex=g,u=s.exec(c),u!==null);)g=s.lastIndex,s===ro?u[1]==="!--"?s=Ds:u[1]!==void 0?s=Ms:u[2]!==void 0?(Hs.test(u[2])&&(n=RegExp("</"+u[2],"g")),s=qt):u[3]!==void 0&&(s=qt):s===qt?u[0]===">"?(s=n??ro,h=-1):u[1]===void 0?h=-2:(h=s.lastIndex-u[2].length,p=u[1],s=u[3]===void 0?qt:u[3]==='"'?Bs:Us):s===Bs||s===Us?s=qt:s===Ds||s===Ms?s=ro:(s=qt,n=void 0);let b=s===qt&&t[l+1].startsWith("/>")?" ":"";a+=s===ro?c+tp:h>=0?(i.push(p),c.slice(0,h)+Ki+c.slice(h)+pt+b):c+pt+(h===-2?l:b)}return[js(t,a+(t[r]||"<?>")+(e===2?"</svg>":"")),i]},no=class t{constructor({strings:e,_$litType$:r},i){let n;this.parts=[];let a=0,s=0,l=e.length-1,c=this.parts,[p,u]=Ks(e,r);if(this.el=t.createElement(p,i),Yt.currentNode=this.el.content,r===2){let h=this.el.content.firstChild;h.replaceWith(...h.childNodes)}for(;(n=Yt.nextNode())!==null&&c.length<l;){if(n.nodeType===1){if(n.hasAttributes())for(let h of n.getAttributeNames())if(h.endsWith(Ki)){let g=u[s++],b=n.getAttribute(h).split(pt),x=/([.?@])?(.*)/.exec(g);c.push({type:1,index:a,name:x[2],strings:b,ctor:x[1]==="."?Zo:x[1]==="?"?qo:x[1]==="@"?Yo:Qt}),n.removeAttribute(h)}else h.startsWith(pt)&&(c.push({type:6,index:a}),n.removeAttribute(h));if(Hs.test(n.tagName)){let h=n.textContent.split(pt),g=h.length-1;if(g>0){n.textContent=Ko?Ko.emptyScript:"";for(let b=0;b<g;b++)n.append(h[b],oo()),Yt.nextNode(),c.push({type:2,index:++a});n.append(h[g],oo())}}}else if(n.nodeType===8)if(n.data===Gi)c.push({type:2,index:a});else{let h=-1;for(;(h=n.data.indexOf(pt,h+1))!==-1;)c.push({type:7,index:a}),h+=pt.length-1}a++}}static createElement(e,r){let i=Xt.createElement("template");return i.innerHTML=e,i}};function Jt(t,e,r=t,i){if(e===wt)return e;let n=i!==void 0?r._$Co?.[i]:r._$Cl,a=io(e)?void 0:e._$litDirective$;return n?.constructor!==a&&(n?._$AO?.(!1),a===void 0?n=void 0:(n=new a(t),n._$AT(t,r,i)),i!==void 0?(r._$Co??=[])[i]=n:r._$Cl=n),n!==void 0&&(e=Jt(t,n._$AS(t,e.values),n,i)),e}var Go=class{constructor(e,r){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=r}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){let{el:{content:r},parts:i}=this._$AD,n=(e?.creationScope??Xt).importNode(r,!0);Yt.currentNode=n;let a=Yt.nextNode(),s=0,l=0,c=i[0];for(;c!==void 0;){if(s===c.index){let p;c.type===2?p=new hr(a,a.nextSibling,this,e):c.type===1?p=new c.ctor(a,c.name,c.strings,this,e):c.type===6&&(p=new Xo(a,this,e)),this._$AV.push(p),c=i[++l]}s!==c?.index&&(a=Yt.nextNode(),s++)}return Yt.currentNode=Xt,n}p(e){let r=0;for(let i of this._$AV)i!==void 0&&(i.strings!==void 0?(i._$AI(e,i,r),r+=i.strings.length-2):i._$AI(e[r])),r++}},hr=class t{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,r,i,n){this.type=2,this._$AH=B,this._$AN=void 0,this._$AA=e,this._$AB=r,this._$AM=i,this.options=n,this._$Cv=n?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode,r=this._$AM;return r!==void 0&&e?.nodeType===11&&(e=r.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,r=this){e=Jt(this,e,r),io(e)?e===B||e==null||e===""?(this._$AH!==B&&this._$AR(),this._$AH=B):e!==this._$AH&&e!==wt&&this._(e):e._$litType$!==void 0?this.g(e):e.nodeType!==void 0?this.$(e):Ws(e)?this.T(e):this._(e)}k(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}$(e){this._$AH!==e&&(this._$AR(),this._$AH=this.k(e))}_(e){this._$AH!==B&&io(this._$AH)?this._$AA.nextSibling.data=e:this.$(Xt.createTextNode(e)),this._$AH=e}g(e){let{values:r,_$litType$:i}=e,n=typeof i=="number"?this._$AC(e):(i.el===void 0&&(i.el=no.createElement(js(i.h,i.h[0]),this.options)),i);if(this._$AH?._$AD===n)this._$AH.p(r);else{let a=new Go(n,this),s=a.u(this.options);a.p(r),this.$(s),this._$AH=a}}_$AC(e){let r=Fs.get(e.strings);return r===void 0&&Fs.set(e.strings,r=new no(e)),r}T(e){zs(this._$AH)||(this._$AH=[],this._$AR());let r=this._$AH,i,n=0;for(let a of e)n===r.length?r.push(i=new t(this.k(oo()),this.k(oo()),this,this.options)):i=r[n],i._$AI(a),n++;n<r.length&&(this._$AR(i&&i._$AB.nextSibling,n),r.length=n)}_$AR(e=this._$AA.nextSibling,r){for(this._$AP?.(!1,!0,r);e&&e!==this._$AB;){let i=e.nextSibling;e.remove(),e=i}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e))}},Qt=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,r,i,n,a){this.type=1,this._$AH=B,this._$AN=void 0,this.element=e,this.name=r,this._$AM=n,this.options=a,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=B}_$AI(e,r=this,i,n){let a=this.strings,s=!1;if(a===void 0)e=Jt(this,e,r,0),s=!io(e)||e!==this._$AH&&e!==wt,s&&(this._$AH=e);else{let l=e,c,p;for(e=a[0],c=0;c<a.length-1;c++)p=Jt(this,l[i+c],r,c),p===wt&&(p=this._$AH[c]),s||=!io(p)||p!==this._$AH[c],p===B?e=B:e!==B&&(e+=(p??"")+a[c+1]),this._$AH[c]=p}s&&!n&&this.O(e)}O(e){e===B?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},Zo=class extends Qt{constructor(){super(...arguments),this.type=3}O(e){this.element[this.name]=e===B?void 0:e}},qo=class extends Qt{constructor(){super(...arguments),this.type=4}O(e){this.element.toggleAttribute(this.name,!!e&&e!==B)}},Yo=class extends Qt{constructor(e,r,i,n,a){super(e,r,i,n,a),this.type=5}_$AI(e,r=this){if((e=Jt(this,e,r,0)??B)===wt)return;let i=this._$AH,n=e===B&&i!==B||e.capture!==i.capture||e.once!==i.once||e.passive!==i.passive,a=e!==B&&(i===B||n);n&&this.element.removeEventListener(this.name,this,i),a&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,e):this._$AH.handleEvent(e)}},Xo=class{constructor(e,r,i){this.element=e,this.type=6,this._$AN=void 0,this._$AM=r,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(e){Jt(this,e)}},op={j:Ki,P:pt,A:Gi,C:1,M:Ks,L:Go,R:Ws,V:Jt,D:hr,I:Qt,H:qo,N:Yo,U:Zo,B:Xo},ip=ji.litHtmlPolyfillSupport;ip?.(no,hr),(ji.litHtmlVersions??=[]).push("3.1.0");var Zi=(t,e,r)=>{let i=r?.renderBefore??e,n=i._$litPart$;if(n===void 0){let a=r?.renderBefore??null;i._$litPart$=n=new hr(e.insertBefore(oo(),a),a,void 0,r??{})}return n._$AI(t),n};var ft=class extends et{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){let e=super.createRenderRoot();return this.renderOptions.renderBefore??=e.firstChild,e}update(e){let r=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=Zi(r,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return wt}};ft._$litElement$=!0,ft.finalized=!0,globalThis.litElementHydrateSupport?.({LitElement:ft});var np=globalThis.litElementPolyfillSupport;np?.({LitElement:ft});var ap={_$AK:(t,e,r)=>{t._$AK(e,r)},_$AL:t=>t._$AL};(globalThis.litElementVersions??=[]).push("4.0.2");var Iu=!1;var Qi={};J(Qi,{customElement:()=>sp,eventOptions:()=>mr,property:()=>y,query:()=>W,queryAll:()=>Yi,queryAssignedElements:()=>Xi,queryAssignedNodes:()=>Ji,queryAsync:()=>dp,standardProperty:()=>Gs,state:()=>K});var sp=t=>(e,r)=>{r!==void 0?r.addInitializer(()=>{customElements.define(t,e)}):customElements.define(t,e)};var lp={attribute:!0,type:String,converter:Zr,reflect:!1,hasChanged:Io},Gs=(t=lp,e,r)=>{let{kind:i,metadata:n}=r,a=globalThis.litPropertyMetadata.get(n);if(a===void 0&&globalThis.litPropertyMetadata.set(n,a=new Map),a.set(r.name,t),i==="accessor"){let{name:s}=r;return{set(l){let c=e.get.call(this);e.set.call(this,l),this.requestUpdate(s,c,t)},init(l){return l!==void 0&&this.C(s,void 0,t),l}}}if(i==="setter"){let{name:s}=r;return function(l){let c=this[s];e.call(this,l),this.requestUpdate(s,c,t)}}throw Error("Unsupported decorator location: "+i)};function y(t){return(e,r)=>typeof r=="object"?Gs(t,e,r):((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})(t,e,r)}function K(t){return y({...t,state:!0,attribute:!1})}function mr(t){return(e,r)=>{let i=typeof e=="function"?e:e[r];Object.assign(i,t)}}var Ge=(t,e,r)=>(r.configurable=!0,r.enumerable=!0,Reflect.decorate&&typeof e!="object"&&Object.defineProperty(t,e,r),r);function W(t,e){return(r,i,n)=>{let a=s=>s.renderRoot?.querySelector(t)??null;if(e){let{get:s,set:l}=typeof i=="object"?r:n??(()=>{let c=Symbol();return{get(){return this[c]},set(p){this[c]=p}}})();return Ge(r,i,{get(){let c=s.call(this);return c===void 0&&(c=a(this),(c!==null||this.hasUpdated)&&l.call(this,c)),c}})}return Ge(r,i,{get(){return a(this)}})}}var cp;function Yi(t){return(e,r)=>Ge(e,r,{get(){return(this.renderRoot??(cp??=document.createDocumentFragment())).querySelectorAll(t)}})}function dp(t){return(e,r)=>Ge(e,r,{async get(){return await this.updateComplete,this.renderRoot?.querySelector(t)??null}})}function Xi(t){return(e,r)=>{let{slot:i,selector:n}=t??{},a="slot"+(i?`[name=${i}]`:":not([name])");return Ge(e,r,{get(){let s=this.renderRoot?.querySelector(a),l=s?.assignedElements(t)??[];return n===void 0?l:l.filter(c=>c.matches(n))}})}}function Ji(t){return(e,r)=>{let{slot:i}=t??{},n="slot"+(i?`[name=${i}]`:":not([name])");return Ge(e,r,{get(){return this.renderRoot?.querySelector(n)?.assignedNodes(t)??[]}})}}var en={};J(en,{repeat:()=>gr});var At={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},Rt=t=>(...e)=>({_$litDirective$:t,values:e}),tt=class{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,r,i){this._$Ct=e,this._$AM=r,this._$Ci=i}_$AS(e,r){return this.update(e,r)}update(e,r){return this.render(...r)}};var{D:pp}=Ps;var Zs=()=>document.createComment(""),yr=(t,e,r)=>{let i=t._$AA.parentNode,n=e===void 0?t._$AB:e._$AA;if(r===void 0){let a=i.insertBefore(Zs(),n),s=i.insertBefore(Zs(),n);r=new pp(a,s,t,t.options)}else{let a=r._$AB.nextSibling,s=r._$AM,l=s!==t;if(l){let c;r._$AQ?.(t),r._$AM=t,r._$AP!==void 0&&(c=t._$AU)!==s._$AU&&r._$AP(c)}if(a!==n||l){let c=r._$AA;for(;c!==a;){let p=c.nextSibling;i.insertBefore(c,n),c=p}}}return r},Nt=(t,e,r=t)=>(t._$AI(e,r),t),fp={},qs=(t,e=fp)=>t._$AH=e,Ys=t=>t._$AH,Jo=t=>{t._$AP?.(!1,!0);let e=t._$AA,r=t._$AB.nextSibling;for(;e!==r;){let i=e.nextSibling;e.remove(),e=i}};var Xs=(t,e,r)=>{let i=new Map;for(let n=e;n<=r;n++)i.set(t[n],n);return i},gr=Rt(class extends tt{constructor(t){if(super(t),t.type!==At.CHILD)throw Error("repeat() can only be used in text expressions")}ht(t,e,r){let i;r===void 0?r=e:e!==void 0&&(i=e);let n=[],a=[],s=0;for(let l of t)n[s]=i?i(l,s):s,a[s]=r(l,s),s++;return{values:a,keys:n}}render(t,e,r){return this.ht(t,e,r).values}update(t,[e,r,i]){let n=Ys(t),{values:a,keys:s}=this.ht(e,r,i);if(!Array.isArray(n))return this.dt=s,a;let l=this.dt??=[],c=[],p,u,h=0,g=n.length-1,b=0,x=a.length-1;for(;h<=g&&b<=x;)if(n[h]===null)h++;else if(n[g]===null)g--;else if(l[h]===s[b])c[b]=Nt(n[h],a[b]),h++,b++;else if(l[g]===s[x])c[x]=Nt(n[g],a[x]),g--,x--;else if(l[h]===s[x])c[x]=Nt(n[h],a[x]),yr(t,c[x+1],n[h]),h++,x--;else if(l[g]===s[b])c[b]=Nt(n[g],a[b]),yr(t,n[h],n[g]),g--,b++;else if(p===void 0&&(p=Xs(s,b,x),u=Xs(l,h,g)),p.has(l[h]))if(p.has(l[g])){let C=u.get(s[b]),P=C!==void 0?n[C]:null;if(P===null){let $=yr(t,n[h]);Nt($,a[b]),c[b]=$}else c[b]=Nt(P,a[b]),yr(t,n[h],P),n[C]=null;b++}else Jo(n[g]),g--;else Jo(n[h]),h++;for(;b<=x;){let C=yr(t,c[x+1]);Nt(C,a[b]),c[b++]=C}for(;h<=g;){let C=n[h++];C!==null&&Jo(C)}return this.dt=s,qs(t,c),ke}});var tn={};J(tn,{classMap:()=>Ee});var Ee=Rt(class extends tt{constructor(t){if(super(t),t.type!==At.ATTRIBUTE||t.name!=="class"||t.strings?.length>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return" "+Object.keys(t).filter(e=>t[e]).join(" ")+" "}update(t,[e]){if(this.it===void 0){this.it=new Set,t.strings!==void 0&&(this.st=new Set(t.strings.join(" ").split(/\s/).filter(i=>i!=="")));for(let i in e)e[i]&&!this.st?.has(i)&&this.it.add(i);return this.render(e)}let r=t.element.classList;for(let i of this.it)i in e||(r.remove(i),this.it.delete(i));for(let i in e){let n=!!e[i];n===this.it.has(i)||this.st?.has(i)||(n?(r.add(i),this.it.add(i)):(r.remove(i),this.it.delete(i)))}return ke}});var rn={};J(rn,{styleMap:()=>hp});var Js="important",up=" !"+Js,hp=Rt(class extends tt{constructor(t){if(super(t),t.type!==At.ATTRIBUTE||t.name!=="style"||t.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(t){return Object.keys(t).reduce((e,r)=>{let i=t[r];return i==null?e:e+`${r=r.includes("-")?r:r.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${i};`},"")}update(t,[e]){let{style:r}=t.element;if(this.ut===void 0)return this.ut=new Set(Object.keys(e)),this.render(e);for(let i of this.ut)e[i]==null&&(this.ut.delete(i),i.includes("-")?r.removeProperty(i):r[i]=null);for(let i in e){let n=e[i];if(n!=null){this.ut.add(i);let a=typeof n=="string"&&n.endsWith(up);i.includes("-")||a?r.setProperty(i,a?n.slice(0,-11):n,a?Js:""):r[i]=n}}return ke}});var nn={};J(nn,{UnsafeHTMLDirective:()=>br,unsafeHTML:()=>on});var br=class extends tt{constructor(e){if(super(e),this.et=ae,e.type!==At.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(e){if(e===ae||e==null)return this.vt=void 0,this.et=e;if(e===ke)return e;if(typeof e!="string")throw Error(this.constructor.directiveName+"() called with a non-string value");if(e===this.et)return this.vt;this.et=e;let r=[e];return r.raw=r,this.vt={_$litType$:this.constructor.resultType,strings:r,values:[]}}};br.directiveName="unsafeHTML",br.resultType=1;var on=Rt(br);var sn={};J(sn,{CacheRegistry:()=>rt});var an={};J(an,{CancelablePromise:()=>xr,CanceledPromiseError:()=>_t,cancelable:()=>vr});var _t=class extends Error{constructor(e,r,i){super(e),this.canceledPromiseResult=r,this.canceledPromiseError=i}},xr=class extends Promise{constructor(e){super((r,i)=>e(n=>{this.isCanceled?i(new _t("Promise has been canceled",n)):r(n)},n=>{this.isCanceled?i(new _t("Promise has been canceled",void 0,n)):i(n)})),this.isCanceled=!1}cancel(){this.isCanceled=!0}},vr=t=>new xr((e,r)=>t.then(e).catch(r));var rt=class{constructor(){this.loaders={},this.content={},this.clearTimeouts={},this.finalContent=new Set}register(e,r){this.loaders[e]=r,this.finalContent.delete(e)}registerFinal(e,r){this.loaders[e]=r,this.finalContent.add(e)}clearAll(){for(let e in this.content)this.clear(e)}clear(e){this.finalContent.has(e)||this.forceClear(e)}forceClear(e){this.clearClearTimeout(e),this.content[e]instanceof xr&&this.content[e].cancel(),delete this.content[e]}clearClearTimeout(e){this.clearTimeouts[e]!=null&&(window.clearTimeout(this.clearTimeouts[e]),delete this.clearTimeouts[e])}set(e,r){this.forceClear(e),this.register(e,async()=>r),this.content[e]=r}setFinal(e,r){this.forceClear(e),this.registerFinal(e,async()=>r),this.content[e]=r}async get(e,r,i){if(this.content[e]===void 0){if(r=r??this.loaders[e],r==null)throw new Error("Unknown cache key "+e);let n=vr(r());return this.content[e]=n,n.then(a=>(this.content[e]=a,i!=null&&(this.clearClearTimeout(e),this.clearTimeouts[e]=window.setTimeout(()=>this.clear(e),i)),a))}if(this.content[e]instanceof Error)throw this.content[e];return this.content[e]}isResolvedValue(e){return e!=null&&!(e instanceof Promise)&&!(e instanceof Error)}getNow(e){if(this.isResolvedValue(this.content[e]))return this.content[e]}has(e){return this.content[e]!=null}resolvedKeys(){return Object.keys(this.content).filter(e=>this.isResolvedValue(this.content[e]))}resolvedValues(){return Object.values(this.content).filter(e=>this.isResolvedValue(e))}keys(){return Object.keys(this.content)}values(){return Object.values(this.content)}};var cn={};J(cn,{ClusteringHelper:()=>ln});var ln=class t{constructor(e,r,i,n){this.allResults=e,this.selectedResult=r,this.clusteringMetadata=i,this.metadataDescriptors=n}static extractResultMetadata(e,r){var i,n;let a=((n=(i=e?.map)!==null&&i!==void 0?i:e?.document)!==null&&n!==void 0?n:e?.topic).metadata;return r==null?t.flattenMetadata(a):t.flattenMetadata(a.find(s=>s.key===r))}static flattenMetadata(e){if(Array.isArray(e))return e.map(i=>t.flattenMetadata(i)).filter(i=>i!=null);let r=e?.hierarchicalValues!=null&&e.hierarchicalValues.length>0;if(!(e==null||e.values.length==0&&!r))if(r){let i=[],n=[];return e.hierarchicalValues.forEach(a=>{i.push(a.join(" > ")),a.length>2?n.push(`... > ${a[a.length-1]}`):n.push(a.join(" > "))}),{key:e.key,label:e.label,value:i.join(", "),displayValue:n.join(", ")}}else{let i=e.values.join(", ");return{key:e.key,label:e.label,value:i,displayValue:i}}}computeClustersItemsForMetadata(e,r,i="No value"){var n,a;let s=t.extractResultMetadata(this.selectedResult,e),l=(n=s?.label)!==null&&n!==void 0?n:(a=this.getMetadataDescriptor(e))===null||a===void 0?void 0:a.label;return this.allResults.map(p=>t.extractResultMetadata(p,e)).map(p=>p??{key:e,label:l,value:void 0,displayValue:i}).filter(p=>p.value!=s?.value).filter((p,u,h)=>h.findIndex(g=>g.value===p.value)===u).map(p=>({result:this.findBestResultForMetadataValue(e,p.value),metadata:p})).sort((p,u)=>this.compareMetadata(p.metadata.value,u.metadata.value,e,r))}compareMetadata(e,r,i,n){if(e==null)return-1;if(r==null)return 1;let a=this.getMetadataDescriptor(i),s=a?.sortRule||"NONE",l=a?.reverseSort||!1;if(s=="ALPHABET"||s=="VERSION"){let c=e.localeCompare(r,n,{numeric:!0});return l?c*-1:c}return 0}getMetadataDescriptor(e){return this.metadataDescriptors.find(r=>e==r.key)}findBestResultForMetadataValue(e,r){let i=this.allResults.filter(c=>{var p;return((p=t.extractResultMetadata(c,e))===null||p===void 0?void 0:p.value)==r}),a=[...t.extractResultMetadata(this.selectedResult).filter(c=>this.clusteringMetadata.has(c.key)).filter(c=>c.key!==e)],s,l=-1;for(let c of i){let p=this.countMatchingMetadata(c,a);if(p>l&&(l=p,s=c,p===a.length))break}return s}countMatchingMetadata(e,r){return t.extractResultMetadata(e).filter(i=>r.some(n=>n.key===i.key&&n.value===i.value)).length}};var dn={};J(dn,{Debouncer:()=>oe});var oe=class{constructor(e=0){this.timeout=e,this.callbacks=[]}run(e,r){return this.callbacks=[e],this.debounce(r)}queue(e,r){return this.callbacks.push(e),this.debounce(r)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(e){return this.promise==null&&(this.promise=new Promise((r,i)=>{this.resolvePromise=r,this.rejectPromise=i})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),e??this.timeout),this.promise}async runCallbacks(){var e,r;let i=[...this.callbacks];this.callbacks=[];let n=(e=this.rejectPromise)!==null&&e!==void 0?e:()=>null,a=(r=this.resolvePromise)!==null&&r!==void 0?r:()=>null;this.clearPromise();for(let s of i)try{await s()}catch(l){n(l);return}a(!0)}clearTimeout(){this._debounce!=null&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}};var fn={};J(fn,{customElement:()=>F,isNumber:()=>tl,jsonProperty:()=>be,optionalNumberProperty:()=>Sp});var pn={};J(pn,{dateReviver:()=>yp,deepEqual:()=>De,delay:()=>Qo,eventPathContainsMatchingElement:()=>bp,flatDeep:()=>ut,hasChanged:()=>ao,last:()=>vp,minmax:()=>xp,parseDate:()=>el,waitFor:()=>Qs,waitUntil:()=>mp});var Qo=t=>new Promise(e=>setTimeout(e,t));async function mp(t,e=10,r=2e4){await Qs(async()=>await t()||void 0,e,r)}async function Qs(t,e=10,r=2e4){let i=await t(),n,a;for(n=a=performance.now();i==null&&(!r||a-n<r);)await Qo(e),i=await t(),a=performance.now();if(i==null)throw new Error("Timeout exceeded");return i}function ut(t,e){return t.flatMap(r=>[r,...ut(e(r),e)])}function yp(...t){return function(e,r){return t.includes(e)?el(r):r}}function el(t){return t.match(/^\d{4}-\d{2}-\d{2}$/)&&(t=t.replace(/-/g,"/")),t=t.replace(" ","T").replace(/^(.+)(\+\d{2})(\d{2})$/,(e,r,i,n)=>r+i+":"+n),new Date(t)}function gp(t,e){if(t===e)return!0;if(t&&e&&typeof t=="object"&&typeof e=="object"){if(t.constructor!==e.constructor)return!1;var r,i,n;if(Array.isArray(t)){if(r=t.length,r!=e.length)return!1;for(i=r;i--!==0;)if(!De(t[i],e[i]))return!1;return!0}if(t instanceof Map&&e instanceof Map){if(t.size!==e.size)return!1;for(i of t.entries())if(!e.has(i[0]))return!1;for(i of t.entries())if(!De(i[1],e.get(i[0])))return!1;return!0}if(t instanceof Set&&e instanceof Set){if(t.size!==e.size)return!1;for(i of t.entries())if(!e.has(i[0]))return!1;return!0}if(t.constructor===RegExp)return t.source===e.source&&t.flags===e.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===e.valueOf();if(n=Object.keys(t),r=n.length,r!==Object.keys(e).length)return!1;for(i=r;i--!==0;)if(!Object.prototype.hasOwnProperty.call(e,n[i]))return!1;for(i=r;i--!==0;){var a=n[i];if(!De(t[a],e[a]))return!1}return!0}return t!==t&&e!==e}function De(t,e){try{return gp(t,e)}catch{return!1}}function ao(t,e){return!De(t,e)}function bp(t,e,r=window.document.body){if(e.length>0){let i=t.composedPath();for(let n of i){if(n===r)return!1;if(n.matches&&e.some(a=>n.matches(a)))return!0}}return!1}function xp(t,e,r){return Math.min(Math.max(t,e),r)}function vp(t){return t[t.length-1]}var F=t=>e=>{window.customElements.get(t)||window.customElements.define(t,e)};function be(t,e){let r=()=>JSON.parse(JSON.stringify(t));return y({type:Object,converter:{fromAttribute:i=>{if(i==null)return r();try{return JSON.parse(i)}catch{return r()}},toAttribute:i=>JSON.stringify(i)},hasChanged:ao,...e??{}})}function Sp(t){return y({type:Object,converter:{fromAttribute:e=>{if(e!=null)return tl(e)?+e:void 0},toAttribute:e=>e==null?void 0:""+e},...t??{}})}function tl(t){return!isNaN(parseFloat(t))}var zn={};J(zn,{designSystemVariables:()=>T});var Fn={};J(Fn,{DesignSystemFamily:()=>mt,DesignSystemSize:()=>he,FtCssVariableFactory:()=>o,badge:()=>wp,banner:()=>Ep,breadcrumb:()=>Ap,button:()=>w,chart:()=>Bp,checkbox:()=>zp,chip:()=>H,collapsible:()=>Mp,comboboxMultiSelect:()=>kp,comboboxSingleSelect:()=>Ip,drawer:()=>_p,floatingMenu:()=>Lp,foundation:()=>d,link:()=>Cp,modal:()=>Np,notice:()=>Fp,notification:()=>Vp,pageHeader:()=>Rp,popover:()=>Dp,radio:()=>Hp,resolveFamilyClass:()=>Un,resolveSizeClass:()=>Bn,semantic:()=>f,setVariable:()=>L,switch_:()=>Up,tabs:()=>Tp,textArea:()=>$p,textInput:()=>Pp,toggle:()=>Wp,tooltip:()=>jp,typographies:()=>so,typographyBody1Medium:()=>bn,typographyBody1Regular:()=>gn,typographyBody1Semibold:()=>xn,typographyBody2Medium:()=>Sn,typographyBody2MediumUnderline:()=>rl,typographyBody2Regular:()=>vn,typographyBody2Semibold:()=>On,typographyCaption1Bold:()=>Pn,typographyCaption1Medium:()=>_n,typographyCaption1Semibold:()=>Tn,typographyCaption2Bold:()=>In,typographyCaption2Medium:()=>$n,typographyCaption2Semibold:()=>Ln,typographyCaption3Bold:()=>Mn,typographyCaption3Medium:()=>kn,typographyCaption3Semibold:()=>Dn,typographyDisplay:()=>un,typographyLabel1Bold:()=>wn,typographyLabel1Medium:()=>Cn,typographyLabel1Semibold:()=>En,typographyLabel2Bold:()=>Nn,typographyLabel2Medium:()=>An,typographyLabel2Semibold:()=>Rn,typographyTitle1:()=>hn,typographyTitle2:()=>mn,typographyTitle3:()=>yn,typographyVariants:()=>Op});var ht=t=>typeof t=="string"?dt(t):t,o=class{static create(e,r,i,n){let a=l=>ht(l??n),s=N`var(${ht(e)}, ${a(n)})`;return s.name=e,s.description=r,s.category=i,s.defaultValue=n,s.defaultCssValue=a,s.get=l=>N`var(${ht(e)}, ${a(l)})`,s.breadcrumb=()=>[],s.lastResortDefaultValue=()=>n,s}static extend(e,r,i,n){let a=l=>i.get(l??n),s=N`var(${ht(e)}, ${a(n)})`;return s.name=e,s.description=r,s.category=i.category,s.fallbackVariable=i,s.defaultValue=n,s.defaultCssValue=a,s.get=l=>N`var(${ht(e)}, ${a(l)})`,s.breadcrumb=()=>[i.name,...i.breadcrumb()],s.lastResortDefaultValue=()=>n??i.lastResortDefaultValue(),s}static external(e,r){let i=a=>e.fallbackVariable?e.fallbackVariable.get(a??e.defaultValue):ht(a??e.lastResortDefaultValue()),n=N`var(${ht(e.name)}, ${i(e.defaultValue)})`;return n.name=e.name,n.category=e.category,n.fallbackVariable=e.fallbackVariable,n.defaultValue=e.defaultValue,n.context=r,n.defaultCssValue=i,n.get=a=>N`var(${ht(e.name)}, ${i(a)})`,n.breadcrumb=()=>e.fallbackVariable?[e.fallbackVariable.name,...e.fallbackVariable.breadcrumb()]:[],n.lastResortDefaultValue=()=>e.lastResortDefaultValue(),n}};function L(t,e){return ht(`${t.name}: ${e}`)}var d={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"),opacity40:o.create("--ft-opacity-40","","NUMBER","0.4"),opacity80:o.create("--ft-opacity-80","","NUMBER","0.8"),shadowElevation01:o.create("--ft-shadow-elevation-01","","SHADOW","0px 1px 4px 0px rgba(0,0,0,0.06), 0px 1px 2px 0px rgba(0,0,0,0.14), 0px 0px 1px 0px rgba(0,0,0,0.06)"),shadowElevation02:o.create("--ft-shadow-elevation-02","","SHADOW","0px 4px 10px 0px rgba(0,0,0,0.06), 0px 2px 5px 0px rgba(0,0,0,0.14), 0px 0px 1px 0px rgba(0,0,0,0.06)"),shadowElevation03:o.create("--ft-shadow-elevation-03","","SHADOW","0px 6px 13px 0px rgba(0,0,0,0.06), 0px 3px 7px 0px rgba(0,0,0,0.14), 0px 1px 2px 0px rgba(0,0,0,0.06)"),shadowElevation04:o.create("--ft-shadow-elevation-04","","SHADOW","0px 8px 16px 0px rgba(0,0,0,0.06), 0px 4px 9px 0px rgba(0,0,0,0.14), 0px 2px 3px 0px rgba(0,0,0,0.06)"),shadowElevation06:o.create("--ft-shadow-elevation-06","","SHADOW","0px 12px 22px 0px rgba(0,0,0,0.06), 0px 6px 13px 0px rgba(0,0,0,0.14), 0px 4px 5px 0px rgba(0,0,0,0.06)"),shadowElevation08:o.create("--ft-shadow-elevation-08","","SHADOW","0px 16px 28px 0px rgba(0,0,0,0.06), 0px 8px 17px 0px rgba(0,0,0,0.14), 0px 6px 7px 0px rgba(0,0,0,0.06)"),shadowElevation12:o.create("--ft-shadow-elevation-12","","SHADOW","0px 22px 40px 0px rgba(0,0,0,0.06), 0px 12px 23px 0px rgba(0,0,0,0.14), 0px 10px 11px 0px rgba(0,0,0,0.06)"),shadowElevation16:o.create("--ft-shadow-elevation-16","","SHADOW","0px 28px 52px 0px rgba(0,0,0,0.06), 0px 16px 29px 0px rgba(0,0,0,0.14), 0px 14px 15px 0px rgba(0,0,0,0.06)"),shadowElevation24:o.create("--ft-shadow-elevation-24","","SHADOW","0px 40px 76px 0px rgba(0,0,0,0.06), 0px 24px 41px 0px rgba(0,0,0,0.14), 0px 22px 23px 0px rgba(0,0,0,0.06)")},un={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")},hn={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")},mn={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")},yn={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")},gn={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")},bn={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")},xn={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")},vn={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")},Sn={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")},rl={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")},On={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")},Cn={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")},En={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")},wn={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")},An={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")},Rn={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")},Nn={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")},_n={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")},Tn={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")},Pn={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")},$n={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")},Ln={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")},In={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")},kn={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")},Dn={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")},Mn={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:un,"title-1":hn,"title-2":mn,"title-3":yn,"body-1-regular":gn,"body-1-medium":bn,"body-1-semibold":xn,"body-2-regular":vn,"body-2-medium":Sn,"body-2-medium-underline":rl,"body-2-semibold":On,"label-1-medium":Cn,"label-1-semibold":En,"label-1-bold":wn,"label-2-medium":An,"label-2-semibold":Rn,"label-2-bold":Nn,"caption-1-medium":_n,"caption-1-semibold":Tn,"caption-1-bold":Pn,"caption-2-medium":$n,"caption-2-semibold":Ln,"caption-2-bold":In,"caption-3-medium":kn,"caption-3-semibold":Dn,"caption-3-bold":Mn},Op=["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 f={backgroundActionPrimary:o.extend("--ft-background-action-primary","Used as backgorund of primary action components.",d.colorBrand0),backgroundErrorSubtle:o.extend("--ft-background-error-subtle","Used as background of subtle error components.",d.colorRed10),backgroundInfoSubtle:o.extend("--ft-background-info-subtle","Used as background of subtle information components.",d.colorCyan10),backgroundWarningSubtle:o.extend("--ft-background-warning-subtle","Used as background of subtle information components.",d.colorOrange10),backgroundSuccessSubtle:o.extend("--ft-background-success-subtle","Used as background of subtle success components.",d.colorGreen10),backgroundGlobalSurface:o.extend("--ft-background-global-surface","Used as app background.",d.colorWhite),backgroundGlobalOnSurface:o.extend("--ft-background-global-on-surface","Used as background on element on the base background, like cards.",d.colorGray10),backgroundGlobalOnSurfaceDark:o.extend("--ft-background-global-on-surface-dark","Used as background on element that need background separation.",d.colorGray30),contentActionPrimary:o.extend("--ft-content-action-primary","Used on label of primary action on light surface.",d.colorBrand0),contentWarningPrimary:o.extend("--ft-content-warning-primary","Used on label of warning messages on light surface.",d.colorOrange200),contentWarningIconOnly:o.extend("--ft-content-warning-icon-only","Used on warning status icons alone",d.colorOrange0),contentErrorPrimary:o.extend("--ft-content-error-primary","Used on label of error messages on light surface.",d.colorRed0),contentErrorIconOnly:o.extend("--ft-content-error-icon-only","Used on error status icons alone",d.colorRed70),contentInfoPrimary:o.extend("--ft-content-info-primary","Used on label of information messages on light surface.",d.colorCyan200),contentInfoIconOnly:o.extend("--ft-content-info-icon-only","Used on info status icons alone",d.colorCyan0),contentSuccessPrimary:o.extend("--ft-content-success-primary","Used on label of success messages on light surface.",d.colorGreen200),contentSuccessIconOnly:o.extend("--ft-content-success-icon-only","Used on success status icons alone",d.colorGreen0),contentGlobalPrimary:o.extend("--ft-content-global-primary","Used for main content on the page.",d.colorGray500),contentGlobalSecondary:o.extend("--ft-content-global-secondary",`Used for secondary content, often paired with primary content.
|
|
6
|
-
Also for action icons.`,d.colorGray200),contentGlobalSubtle:o.extend("--ft-content-global-subtle","Used for placeholder, unselected items in a tab component or breadcrumb.",d.colorGray0),contentGlobalOnColor:o.extend("--ft-content-global-on-color","Used for content on a dominant color.",d.colorWhite),borderActionPrimary:o.extend("--ft-border-action-primary","Used as border for primary action components.",d.colorBrand0),borderActionFocusRing:o.extend("--ft-border-action-focus-ring","Focus ring is an additional border to indicate focus-visible state.",d.colorCyan0),borderWarningPrimary:o.extend("--ft-border-warning-primary","Used as border for text fields in warning state and for buttons in warning color",d.colorOrange200),borderWarningSubtle:o.extend("--ft-border-warning-subtle","Used as border for warning components.",d.colorOrange30),borderSuccessPrimary:o.extend("--ft-border-success-primary","Used as border for success buttons.",d.colorGreen200),borderSuccessSubtle:o.extend("--ft-border-success-subtle","Used as border for success components.",d.colorGreen30),borderErrorPrimary:o.extend("--ft-border-error-primary","Used as border for text fields in error states.",d.colorRed0),borderErrorSubtle:o.extend("--ft-border-error-subtle","Used as border for error components.",d.colorRed30),borderInfoPrimary:o.extend("--ft-border-info-primary","Used as border for buttons in info color.",d.colorCyan200),borderInfoSubtle:o.extend("--ft-border-info-subtle","Used as border for information components.",d.colorCyan30),borderGlobalPrimary:o.extend("--ft-border-global-primary","Used as border for element like input.",d.colorGray50),borderGlobalSubtle:o.extend("--ft-border-global-subtle","Used as border to deliminate an area filled with background.on-surface and separators.",d.colorGray30),borderInputPrimary:o.extend("--ft-border-input-primary","Used as border for checkboxes and radio buttons",d.colorGray80)};var w={largeHeight:o.create("--ft-button-large-height","","SIZE","40px"),largeHorizontalPadding:o.extend("--ft-button-large-horizontal-padding","",d.spacing4),largeGap:o.extend("--ft-button-large-gap","",d.spacing2),largeBorderRadius:o.extend("--ft-button-large-border-radius","",d.borderRadiusS),largeIconSize:o.extend("--ft-button-large-icon-size","",d.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","",d.spacing3),mediumGap:o.extend("--ft-button-medium-gap","",d.spacing2),mediumBorderRadius:o.extend("--ft-button-medium-border-radius","",d.borderRadiusS),mediumIconSize:o.extend("--ft-button-medium-icon-size","",d.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","",d.spacing2),smallGap:o.extend("--ft-button-small-gap","",d.spacing1),smallBorderRadius:o.extend("--ft-button-small-border-radius","",d.borderRadiusS),smallIconSize:o.extend("--ft-button-small-icon-size","",d.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","",d.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","",d.borderRadiusPill),primaryBackgroundColor:o.extend("--ft-button-primary-background-color","",f.backgroundActionPrimary),primaryColor:o.extend("--ft-button-primary-color","",f.contentGlobalOnColor),primaryIconColor:o.extend("--ft-button-primary-icon-color","",f.contentGlobalOnColor),primaryStateLayerColor:o.extend("--ft-button-primary-state-layer-color","",f.contentGlobalOnColor),primaryHoverStateLayerOpacity:o.extend("--ft-button-primary-hover-state-layer-opacity","",d.opacity16),primaryFocusStateLayerOpacity:o.extend("--ft-button-primary-focus-state-layer-opacity","",d.opacity16),primaryActiveStateLayerOpacity:o.extend("--ft-button-primary-active-state-layer-opacity","",d.opacity24),primaryDisabledComponentOpacity:o.extend("--ft-button-primary-disabled-component-opacity","",d.opacity40),focusFocusRingColor:o.extend("--ft-button-focus-focus-ring-color","",f.borderActionFocusRing),tertiaryBackgroundColor:o.create("--ft-button-tertiary-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryColor:o.extend("--ft-button-tertiary-color","",f.contentActionPrimary),tertiaryIconColor:o.extend("--ft-button-tertiary-icon-color","",f.contentActionPrimary),tertiaryStateLayerColor:o.extend("--ft-button-tertiary-state-layer-color","",f.contentActionPrimary),tertiaryHoverStateLayerOpacity:o.extend("--ft-button-tertiary-hover-state-layer-opacity","",d.opacity8),tertiaryFocusStateLayerOpacity:o.extend("--ft-button-tertiary-focus-state-layer-opacity","",d.opacity8),tertiaryActiveStateLayerOpacity:o.extend("--ft-button-tertiary-active-state-layer-opacity","",d.opacity16),tertiaryDisabledComponentOpacity:o.extend("--ft-button-tertiary-disabled-component-opacity","",d.opacity40),secondaryBackgroundColor:o.create("--ft-button-secondary-background-color","","COLOR","rgba(0,0,0,0)"),secondaryColor:o.extend("--ft-button-secondary-color","",f.contentActionPrimary),secondaryIconColor:o.extend("--ft-button-secondary-icon-color","",f.contentActionPrimary),secondaryStateLayerColor:o.extend("--ft-button-secondary-state-layer-color","",f.contentActionPrimary),secondaryHoverStateLayerOpacity:o.extend("--ft-button-secondary-hover-state-layer-opacity","",d.opacity8),secondaryFocusStateLayerOpacity:o.extend("--ft-button-secondary-focus-state-layer-opacity","",d.opacity8),secondaryActiveStateLayerOpacity:o.extend("--ft-button-secondary-active-state-layer-opacity","",d.opacity16),secondaryDisabledComponentOpacity:o.extend("--ft-button-secondary-disabled-component-opacity","",d.opacity40),secondaryBorderColor:o.extend("--ft-button-secondary-border-color","",f.borderActionPrimary),neutralBackgroundColor:o.create("--ft-button-neutral-background-color","","COLOR","rgba(0,0,0,0)"),neutralIconColor:o.extend("--ft-button-neutral-icon-color","",f.contentGlobalSecondary),neutralColor:o.extend("--ft-button-neutral-color","",f.contentGlobalSecondary),neutralStateLayerColor:o.extend("--ft-button-neutral-state-layer-color","",f.contentGlobalSecondary),neutralHoverStateLayerOpacity:o.extend("--ft-button-neutral-hover-state-layer-opacity","",d.opacity8),neutralFocusStateLayerOpacity:o.extend("--ft-button-neutral-focus-state-layer-opacity","",d.opacity8),neutralActiveStateLayerOpacity:o.extend("--ft-button-neutral-active-state-layer-opacity","",d.opacity16),neutralDisabledComponentOpacity:o.extend("--ft-button-neutral-disabled-component-opacity","",d.opacity40)};var H={largeMinHeight:o.create("--ft-chip-large-min-height","","SIZE","36px"),largeHorizontalPadding:o.extend("--ft-chip-large-horizontal-padding","",d.spacing3),largeButtonRightPadding:o.extend("--ft-chip-large-button-right-padding","",d.spacing1),largeGap:o.extend("--ft-chip-large-gap","",d.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","",d.iconSize3),mediumMinHeight:o.create("--ft-chip-medium-min-height","","SIZE","24px"),mediumHorizontalPadding:o.extend("--ft-chip-medium-horizontal-padding","",d.spacing2),mediumButtonRightPadding:o.extend("--ft-chip-medium-button-right-padding","",d.spacing05),mediumGap:o.extend("--ft-chip-medium-gap","",d.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","",d.iconSize2),smallMinHeight:o.create("--ft-chip-small-min-height","","SIZE","20px"),smallHorizontalPadding:o.extend("--ft-chip-small-horizontal-padding","",d.spacing1),smallButtonRightPadding:o.extend("--ft-chip-small-button-right-padding","",d.spacing05),smallGap:o.extend("--ft-chip-small-gap","",d.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","",d.iconSize1),neutralBackgroundColor:o.extend("--ft-chip-neutral-background-color","",f.backgroundGlobalOnSurface),neutralColor:o.extend("--ft-chip-neutral-color","",f.contentGlobalSecondary),neutralIconColor:o.extend("--ft-chip-neutral-icon-color","",f.contentGlobalSecondary),neutralBorderColor:o.extend("--ft-chip-neutral-border-color","",f.borderGlobalSubtle),infoBackgroundColor:o.extend("--ft-chip-info-background-color","",f.backgroundInfoSubtle),infoColor:o.extend("--ft-chip-info-color","",f.contentInfoPrimary),infoIconColor:o.extend("--ft-chip-info-icon-color","",f.contentInfoIconOnly),infoBorderColor:o.extend("--ft-chip-info-border-color","",f.borderInfoSubtle),successBackgroundColor:o.extend("--ft-chip-success-background-color","",f.backgroundSuccessSubtle),successColor:o.extend("--ft-chip-success-color","",f.contentSuccessPrimary),successIconColor:o.extend("--ft-chip-success-icon-color","",f.contentSuccessIconOnly),successBorderColor:o.extend("--ft-chip-success-border-color","",f.borderSuccessSubtle),warningBackgroundColor:o.extend("--ft-chip-warning-background-color","",f.backgroundWarningSubtle),warningColor:o.extend("--ft-chip-warning-color","",f.contentWarningPrimary),warningIconColor:o.extend("--ft-chip-warning-icon-color","",f.contentWarningIconOnly),warningBorderColor:o.extend("--ft-chip-warning-border-color","",f.borderWarningSubtle),errorBackgroundColor:o.extend("--ft-chip-error-background-color","",f.backgroundErrorSubtle),errorColor:o.extend("--ft-chip-error-color","",f.contentErrorPrimary),errorIconColor:o.extend("--ft-chip-error-icon-color","",f.contentErrorIconOnly),errorBorderColor:o.extend("--ft-chip-error-border-color","",f.borderErrorSubtle)};var Cp={focusOpacity:o.extend("--ft-link-focus-opacity","",d.opacity80),focusFocusRingColor:o.extend("--ft-link-focus-focus-ring-color","",f.borderActionFocusRing),brandColor:o.extend("--ft-link-brand-color","",f.contentActionPrimary),infoColor:o.extend("--ft-link-info-color","",f.contentInfoPrimary)};var Ep={iconSize:o.extend("--ft-banner-icon-size","",d.iconSize5),borderWidth:o.create("--ft-banner-border-width","","SIZE","1px"),leftPadding:o.extend("--ft-banner-left-padding","",d.spacing6),rightPadding:o.extend("--ft-banner-right-padding","",d.spacing6),verticalPadding:o.extend("--ft-banner-vertical-padding","",d.spacing6),horizontalSideGap:o.extend("--ft-banner-horizontal-side-gap","",d.spacing6),horizontalMobileGap:o.extend("--ft-banner-horizontal-mobile-gap","",d.spacing4),verticalMobileGap:o.extend("--ft-banner-vertical-mobile-gap","",d.spacing6),horizontalMiddleGap:o.extend("--ft-banner-horizontal-middle-gap","",d.spacing20),infoBackgroundColor:o.extend("--ft-banner-info-background-color","",f.backgroundInfoSubtle),infoColor:o.extend("--ft-banner-info-color","",f.contentInfoPrimary),infoIconColor:o.extend("--ft-banner-info-icon-color","",f.contentInfoIconOnly),infoBorderColor:o.extend("--ft-banner-info-border-color","",f.borderInfoSubtle)};var wp={horizontalPadding:o.extend("--ft-badge-horizontal-padding","",d.spacing1),verticalPadding:o.extend("--ft-badge-vertical-padding","",d.spacing1),borderRadius:o.extend("--ft-badge-border-radius","",d.borderRadiusPill),color:o.extend("--ft-badge-color","",f.contentGlobalOnColor),backgroundColor:o.extend("--ft-badge-background-color","",f.contentActionPrimary)};var Ap={horizontalGap:o.extend("--ft-breadcrumb-horizontal-gap","",d.spacing1),verticalGap:o.extend("--ft-breadcrumb-vertical-gap","",d.spacing2),currentColor:o.extend("--ft-breadcrumb-current-color","",f.contentGlobalPrimary),previousNonClickableColor:o.extend("--ft-breadcrumb-previous-non-clickable-color","",f.contentGlobalSecondary),iconColor:o.extend("--ft-breadcrumb-icon-color","",f.contentGlobalSubtle)};var Rp={horizontalPadding:o.extend("--ft-page-header-horizontal-padding","",d.spacing6),horizontalGap:o.extend("--ft-page-header-horizontal-gap","",d.spacing4),verticalGap:o.extend("--ft-page-header-vertical-gap","",d.spacing2),classicVerticalPadding:o.extend("--ft-page-header-classic-vertical-padding","",d.spacing6),multilineVerticalPadding:o.extend("--ft-page-header-multiline-vertical-padding","",d.spacing4),inlineVerticalPadding:o.extend("--ft-page-header-inline-vertical-padding","",d.spacing2),backgroundColor:o.extend("--ft-page-header-background-color","",d.colorWhite),bottomBorderColor:o.extend("--ft-page-header-bottom-border-color","",f.borderGlobalSubtle),titleColor:o.extend("--ft-page-header-title-color","",f.contentGlobalPrimary),subtitleColor:o.extend("--ft-page-header-subtitle-color","",f.contentGlobalSecondary)};var Np={smallContainerWidth:o.create("--ft-modal-small-container-width","","SIZE","600px"),largeContainerWidth:o.create("--ft-modal-large-container-width","","SIZE","900px"),overlayBackgroundColor:o.extend("--ft-modal-overlay-background-color","",d.colorGray700),overlayOpacity:o.extend("--ft-modal-overlay-opacity","",d.opacity40),shadow:o.extend("--ft-modal-shadow","",d.shadowElevation03),bodyBackgroundColor:o.extend("--ft-modal-body-background-color","",d.colorWhite),bodyColor:o.extend("--ft-modal-body-color","",f.contentGlobalPrimary),bodyHorizontalPadding:o.extend("--ft-modal-body-horizontal-padding","",d.spacing6),bodyVerticalPadding:o.extend("--ft-modal-body-vertical-padding","",d.spacing6),bodyVerticalGap:o.extend("--ft-modal-body-vertical-gap","",d.spacing6),containerMargin:o.extend("--ft-modal-container-margin","",d.spacing3),headerBackgroundColor:o.extend("--ft-modal-header-background-color","",f.backgroundGlobalOnSurface),headerBorderColor:o.extend("--ft-modal-header-border-color","",f.borderGlobalSubtle),headerColor:o.extend("--ft-modal-header-color","",f.contentGlobalPrimary),headerTrailingIconColor:o.extend("--ft-modal-header-trailing-icon-color","",f.contentGlobalSecondary),headerVerticalPadding:o.extend("--ft-modal-header-vertical-padding","",d.spacing1),headerRightPadding:o.extend("--ft-modal-header-right-padding","",d.spacing1),headerLeftPadding:o.extend("--ft-modal-header-left-padding","",d.spacing6),headerGap:o.extend("--ft-modal-header-gap","",d.spacing2),headerBorderBottom:o.create("--ft-modal-header-border-bottom","","SIZE","1px"),borderRadius:o.extend("--ft-modal-border-radius","",d.borderRadiusM)};var _p={overlayOpacity:o.extend("--ft-drawer-overlay-opacity","",d.opacity40),shadow:o.extend("--ft-drawer-shadow","",d.shadowElevation03),bodyColor:o.extend("--ft-drawer-body-color","",f.contentGlobalPrimary),bodyHorizontalPadding:o.extend("--ft-drawer-body-horizontal-padding","",d.spacing6),bodyVerticalPadding:o.extend("--ft-drawer-body-vertical-padding","",d.spacing6),bodyGap:o.extend("--ft-drawer-body-gap","",d.spacing6),bodyBackgroundColor:o.extend("--ft-drawer-body-background-color","",d.colorWhite),headerBackgroundColor:o.extend("--ft-drawer-header-background-color","",f.backgroundGlobalOnSurface),headerBorderColor:o.extend("--ft-drawer-header-border-color","",f.borderGlobalSubtle),headerColor:o.extend("--ft-drawer-header-color","",f.contentGlobalPrimary),headerTrailingIconColor:o.extend("--ft-drawer-header-trailing-icon-color","",f.contentGlobalSecondary),headerHeight:o.create("--ft-drawer-header-height","","SIZE","50px"),headerHorizontalPadding:o.extend("--ft-drawer-header-horizontal-padding","",d.spacing2),headerBorderWidth:o.create("--ft-drawer-header-border-width","","SIZE","1px"),headerGap:o.extend("--ft-drawer-header-gap","",d.spacing3),buttonsBarBackgroundColor:o.extend("--ft-drawer-buttons-bar-background-color","",f.backgroundGlobalOnSurface),buttonsBarBorderColor:o.extend("--ft-drawer-buttons-bar-border-color","",f.borderGlobalSubtle),buttonsBarColor:o.extend("--ft-drawer-buttons-bar-color","",f.contentGlobalPrimary),buttonsBarHorizontalPadding:o.extend("--ft-drawer-buttons-bar-horizontal-padding","",d.spacing4),buttonsBarVerticalPadding:o.extend("--ft-drawer-buttons-bar-vertical-padding","",d.spacing4),buttonsBarGap:o.extend("--ft-drawer-buttons-bar-gap","",d.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","",d.colorGray700)};var Tp={offBorderBottomWidth:o.create("--ft-tabs-off-border-bottom-width","","SIZE","1px"),offHoverStateLayerOpacity:o.extend("--ft-tabs-off-hover-state-layer-opacity","",d.opacity8),offDefaultStateLayerOpacity:o.extend("--ft-tabs-off-default-state-layer-opacity","",d.opacity0),offFocusStateLayerOpacity:o.extend("--ft-tabs-off-focus-state-layer-opacity","",d.opacity8),offDisabledComponentOpacity:o.extend("--ft-tabs-off-disabled-component-opacity","",d.opacity40),offColor:o.extend("--ft-tabs-off-color","",f.contentGlobalSubtle),offStateLayerColor:o.extend("--ft-tabs-off-state-layer-color","",f.contentGlobalSubtle),offBorderBottomColor:o.extend("--ft-tabs-off-border-bottom-color","",f.borderGlobalSubtle),activeTabIndicatorHeight:o.create("--ft-tabs-active-tab-indicator-height","","SIZE","3px"),topLeftBorderRadius:o.extend("--ft-tabs-top-left-border-radius","",d.borderRadiusS),topRightBorderRadius:o.extend("--ft-tabs-top-right-border-radius","",d.borderRadiusS),withLabelHorizontalPadding:o.extend("--ft-tabs-with-label-horizontal-padding","",d.spacing4),withLabelVerticalPadding:o.extend("--ft-tabs-with-label-vertical-padding","",d.spacing3),horizontalGap:o.extend("--ft-tabs-horizontal-gap","",d.spacing1),verticalGap:o.extend("--ft-tabs-vertical-gap","",d.spacing1),onHoverStateLayerOpacity:o.extend("--ft-tabs-on-hover-state-layer-opacity","",d.opacity16),onDefaultStateLayerOpacity:o.extend("--ft-tabs-on-default-state-layer-opacity","",d.opacity8),onFocusStateLayerOpacity:o.extend("--ft-tabs-on-focus-state-layer-opacity","",d.opacity16),onActiveStateLayerOpacity:o.extend("--ft-tabs-on-active-state-layer-opacity","",d.opacity24),onColor:o.extend("--ft-tabs-on-color","",f.contentActionPrimary),onStateLayerColor:o.extend("--ft-tabs-on-state-layer-color","",f.contentActionPrimary),onActiveTabIndicatorColor:o.extend("--ft-tabs-on-active-tab-indicator-color","",f.contentActionPrimary),iconOnlyHorizontalPadding:o.extend("--ft-tabs-icon-only-horizontal-padding","",d.spacing4),iconOnlyVerticalPadding:o.extend("--ft-tabs-icon-only-vertical-padding","",d.spacing4),alertTopPadding:o.extend("--ft-tabs-alert-top-padding","",d.spacing1),alertRightPadding:o.extend("--ft-tabs-alert-right-padding","",d.spacing05),focusOutlineWidth:o.create("--ft-tabs-focus-outline-width","","SIZE","2px"),focusFocusRingColor:o.extend("--ft-tabs-focus-focus-ring-color","",f.borderActionFocusRing)};var Pp={fieldHorizontalPadding:o.extend("--ft-text-input-field-horizontal-padding","",d.spacing4),fieldHorizontalGap:o.extend("--ft-text-input-field-horizontal-gap","",d.spacing3),fieldVerticalGap:o.extend("--ft-text-input-field-vertical-gap","",d.spacing05),fieldIconSize:o.extend("--ft-text-input-field-icon-size","",d.iconSize3),fieldHeight:o.create("--ft-text-input-field-height","","SIZE","50px"),helperHorizontalPadding:o.extend("--ft-text-input-helper-horizontal-padding","",d.spacing4),helperHorizontalGap:o.extend("--ft-text-input-helper-horizontal-gap","",d.spacing1),helperIconSize:o.extend("--ft-text-input-helper-icon-size","",d.iconSize2),borderRadius:o.extend("--ft-text-input-border-radius","",d.borderRadiusM),backgroundColor:o.extend("--ft-text-input-background-color","",d.colorWhite),contentValueColor:o.extend("--ft-text-input-content-value-color","",f.contentGlobalPrimary),trailingIconColor:o.extend("--ft-text-input-trailing-icon-color","",f.contentGlobalSubtle),labelColor:o.extend("--ft-text-input-label-color","",f.contentGlobalSubtle),defaultBorderColor:o.extend("--ft-text-input-default-border-color","",f.borderInputPrimary),defaultHelperTextColor:o.extend("--ft-text-input-default-helper-text-color","",f.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","",f.borderErrorPrimary),errorHelperTextColor:o.extend("--ft-text-input-error-helper-text-color","",f.contentErrorPrimary),errorHelperIconColor:o.extend("--ft-text-input-error-helper-icon-color","",f.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","",f.borderActionFocusRing),focusOutlineOffset:o.create("--ft-text-input-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:o.extend("--ft-text-input-disabled-component-opacity","",d.opacity40)};var $p={backgroundColor:o.extend("--ft-text-area-background-color","",d.colorWhite),contentValueColor:o.extend("--ft-text-area-content-value-color","",f.contentGlobalPrimary),labelColor:o.extend("--ft-text-area-label-color","",f.contentGlobalSubtle),defaultBorderColor:o.extend("--ft-text-area-default-border-color","",f.borderInputPrimary),defaultHelperTextColor:o.extend("--ft-text-area-default-helper-text-color","",f.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","",f.borderErrorPrimary),errorHelperTextColor:o.extend("--ft-text-area-error-helper-text-color","",f.contentErrorPrimary),errorHelperIconColor:o.extend("--ft-text-area-error-helper-icon-color","",f.contentErrorIconOnly),focusFocusRingColor:o.extend("--ft-text-area-focus-focus-ring-color","",f.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","",d.opacity40),fieldHorizontalLeftPadding:o.extend("--ft-text-area-field-horizontal-left-padding","",d.spacing4),fieldHorizontalGap:o.extend("--ft-text-area-field-horizontal-gap","",d.spacing3),fieldVerticalGap:o.extend("--ft-text-area-field-vertical-gap","",d.spacing05),fieldMinHeight:o.create("--ft-text-area-field-min-height","","SIZE","64px"),helperHorizontalPadding:o.extend("--ft-text-area-helper-horizontal-padding","",d.spacing4),helperHorizontalGap:o.extend("--ft-text-area-helper-horizontal-gap","",d.spacing1),helperIconSize:o.extend("--ft-text-area-helper-icon-size","",d.iconSize2),borderRadius:o.extend("--ft-text-area-border-radius","",d.borderRadiusM)};var Lp={height:o.create("--ft-floating-menu-height","","SIZE","50px"),horizontalPadding:o.extend("--ft-floating-menu-horizontal-padding","",d.spacing4),offIconColor:o.extend("--ft-floating-menu-off-icon-color","",f.contentGlobalPrimary),offColor:o.extend("--ft-floating-menu-off-color","",f.contentGlobalPrimary),onColor:o.extend("--ft-floating-menu-on-color","",f.contentActionPrimary),onStateLayerColor:o.extend("--ft-floating-menu-on-state-layer-color","",f.contentActionPrimary),gap:o.extend("--ft-floating-menu-gap","",d.spacing3),focusFocusRingColor:o.extend("--ft-floating-menu-focus-focus-ring-color","",f.borderActionFocusRing),focusOutlineWidth:o.create("--ft-floating-menu-focus-outline-width","","SIZE","3px"),focusStateLayerOpacity:o.extend("--ft-floating-menu-focus-state-layer-opacity","",d.opacity8),hoverStateLayerOpacity:o.extend("--ft-floating-menu-hover-state-layer-opacity","",d.opacity8),activeStateLayerOpacity:o.extend("--ft-floating-menu-active-state-layer-opacity","",d.opacity16),disabledComponentOpacity:o.extend("--ft-floating-menu-disabled-component-opacity","",d.opacity40),iconSize:o.extend("--ft-floating-menu-icon-size","",d.iconSize3),backgroundColor:o.extend("--ft-floating-menu-background-color","",f.backgroundGlobalOnSurface),shadow:o.extend("--ft-floating-menu-shadow","",d.shadowElevation02)};var Ip={fieldHorizontalPadding:o.extend("--ft-combobox-single-select-field-horizontal-padding","",d.spacing4),fieldHorizontalGap:o.extend("--ft-combobox-single-select-field-horizontal-gap","",d.spacing3),fieldVerticalGap:o.extend("--ft-combobox-single-select-field-vertical-gap","",d.spacing05),fieldIconSize:o.extend("--ft-combobox-single-select-field-icon-size","",d.iconSize3),fieldHeight:o.create("--ft-combobox-single-select-field-height","","SIZE","50px"),helperHorizontalPadding:o.extend("--ft-combobox-single-select-helper-horizontal-padding","",d.spacing4),helperHorizontalGap:o.extend("--ft-combobox-single-select-helper-horizontal-gap","",d.spacing1),helperVerticalGap:o.extend("--ft-combobox-single-select-helper-vertical-gap","",d.spacing1),helperIconSize:o.extend("--ft-combobox-single-select-helper-icon-size","",d.iconSize2),menuVerticalGap:o.extend("--ft-combobox-single-select-menu-vertical-gap","",d.spacing2),borderRadius:o.extend("--ft-combobox-single-select-border-radius","",d.borderRadiusM),backgroundColor:o.extend("--ft-combobox-single-select-background-color","",d.colorWhite),labelColor:o.extend("--ft-combobox-single-select-label-color","",f.contentGlobalSubtle),contentValueColor:o.extend("--ft-combobox-single-select-content-value-color","",f.contentGlobalPrimary),trailingIconColor:o.extend("--ft-combobox-single-select-trailing-icon-color","",f.contentGlobalSubtle),defaultBorderColor:o.extend("--ft-combobox-single-select-default-border-color","",f.borderInputPrimary),defaultHelperTextColor:o.extend("--ft-combobox-single-select-default-helper-text-color","",f.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","",f.borderErrorPrimary),errorHelperTextColor:o.extend("--ft-combobox-single-select-error-helper-text-color","",f.contentErrorPrimary),warningBorderWidth:o.create("--ft-combobox-single-select-warning-border-width","","SIZE","2px"),warningBorderColor:o.extend("--ft-combobox-single-select-warning-border-color","",f.borderWarningPrimary),warningHelperTextColor:o.extend("--ft-combobox-single-select-warning-helper-text-color","",f.contentWarningPrimary),warningHelperIconColor:o.extend("--ft-combobox-single-select-warning-helper-icon-color","",f.contentWarningIconOnly),focusOutlineWidth:o.create("--ft-combobox-single-select-focus-outline-width","","SIZE","2px"),focusFocusRingColor:o.extend("--ft-combobox-single-select-focus-focus-ring-color","",f.borderActionFocusRing),focusOutlineOffset:o.create("--ft-combobox-single-select-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:o.extend("--ft-combobox-single-select-disabled-component-opacity","",d.opacity40)};var kp={backgroundColor:o.extend("--ft-combobox-multi-select-background-color","",d.colorWhite),labelColor:o.extend("--ft-combobox-multi-select-label-color","",f.contentGlobalSubtle),trailingIconColor:o.extend("--ft-combobox-multi-select-trailing-icon-color","",f.contentGlobalSubtle),defaultBorderColor:o.extend("--ft-combobox-multi-select-default-border-color","",f.borderInputPrimary),defaultHelperTextColor:o.extend("--ft-combobox-multi-select-default-helper-text-color","",f.contentGlobalSubtle),defaultBorderWidth:o.create("--ft-combobox-multi-select-default-border-width","","SIZE","1px"),errorBorderColor:o.extend("--ft-combobox-multi-select-error-border-color","",f.borderErrorPrimary),errorHelperTextColor:o.extend("--ft-combobox-multi-select-error-helper-text-color","",f.contentErrorPrimary),errorHelperIcon:o.extend("--ft-combobox-multi-select-error-helper-icon","",f.contentErrorIconOnly),errorBorderWidth:o.create("--ft-combobox-multi-select-error-border-width","","SIZE","2px"),warningBorderColor:o.extend("--ft-combobox-multi-select-warning-border-color","",f.borderWarningPrimary),warningHelperTextColor:o.extend("--ft-combobox-multi-select-warning-helper-text-color","",f.contentWarningPrimary),warningHelperIconColor:o.extend("--ft-combobox-multi-select-warning-helper-icon-color","",f.contentWarningIconOnly),warningBorderWidth:o.create("--ft-combobox-multi-select-warning-border-width","","SIZE","2px"),focusFocusRingColor:o.extend("--ft-combobox-multi-select-focus-focus-ring-color","",f.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","",d.opacity40),helperHorizontalPadding:o.extend("--ft-combobox-multi-select-helper-horizontal-padding","",d.spacing4),helperHorizontalGap:o.extend("--ft-combobox-multi-select-helper-horizontal-gap","",d.spacing1),helperVerticalGap:o.extend("--ft-combobox-multi-select-helper-vertical-gap","",d.spacing1),helperIconSize:o.extend("--ft-combobox-multi-select-helper-icon-size","",d.iconSize2),fieldHorizontalPadding:o.extend("--ft-combobox-multi-select-field-horizontal-padding","",d.spacing4),fieldHorizontalGap:o.extend("--ft-combobox-multi-select-field-horizontal-gap","",d.spacing3),fieldVerticalGap:o.extend("--ft-combobox-multi-select-field-vertical-gap","",d.spacing05),fieldIconSize:o.extend("--ft-combobox-multi-select-field-icon-size","",d.iconSize3),fieldMaxHeight:o.create("--ft-combobox-multi-select-field-max-height","","SIZE","112px"),contentValuesHorizontalGap:o.extend("--ft-combobox-multi-select-content-values-horizontal-gap","",d.spacing1),contentValuesVerticalGap:o.extend("--ft-combobox-multi-select-content-values-vertical-gap","",d.spacing1),borderRadius:o.extend("--ft-combobox-multi-select-border-radius","",d.borderRadiusM)};var Dp={backgroundColor:o.extend("--ft-popover-background-color","",f.backgroundGlobalOnSurface),horizontalPadding:o.extend("--ft-popover-horizontal-padding","",d.spacing6),verticalPadding:o.extend("--ft-popover-vertical-padding","",d.spacing6),titleColor:o.extend("--ft-popover-title-color","",f.contentGlobalPrimary),bodyColor:o.extend("--ft-popover-body-color","",f.contentGlobalSecondary),linkColor:o.extend("--ft-popover-link-color","",f.contentActionPrimary),gap:o.extend("--ft-popover-gap","",d.spacing3),borderRadius:o.extend("--ft-popover-border-radius","",d.borderRadiusM),shadow:o.extend("--ft-popover-shadow","",d.shadowElevation02)};var Mp={hoverStateLayerOpacity:o.extend("--ft-collapsible-hover-state-layer-opacity","",d.opacity8),focusStateLayerOpacity:o.extend("--ft-collapsible-focus-state-layer-opacity","",d.opacity8),focusOutlineWidth:o.create("--ft-collapsible-focus-outline-width","","SIZE","3px"),focusFocusRingColor:o.extend("--ft-collapsible-focus-focus-ring-color","",f.borderActionFocusRing),activeStateLayerOpacity:o.extend("--ft-collapsible-active-state-layer-opacity","",d.opacity16),disabledComponentOpacity:o.extend("--ft-collapsible-disabled-component-opacity","",d.opacity40),horizontalPadding:o.extend("--ft-collapsible-horizontal-padding","",d.spacing4),verticalPadding:o.extend("--ft-collapsible-vertical-padding","",d.spacing3),color:o.extend("--ft-collapsible-color","",f.contentGlobalPrimary),stateLayerColor:o.extend("--ft-collapsible-state-layer-color","",f.contentGlobalPrimary),backgroundColor:o.extend("--ft-collapsible-background-color","",f.backgroundGlobalOnSurface),borderColor:o.extend("--ft-collapsible-border-color","",f.borderGlobalSubtle),iconSize:o.extend("--ft-collapsible-icon-size","",d.iconSize3)};var Up={groupHorizontalPadding:o.extend("--ft-switch-group-horizontal-padding","",d.spacing1),groupVerticalPadding:o.extend("--ft-switch-group-vertical-padding","",d.spacing1),groupGap:o.extend("--ft-switch-group-gap","",d.spacing1),groupBackgroundColor:o.extend("--ft-switch-group-background-color","",f.backgroundGlobalSurface),groupBorderColor:o.extend("--ft-switch-group-border-color","",f.borderGlobalSubtle),groupBorderRadius:o.create("--ft-switch-group-border-radius","","SIZE","6px"),labelHorizontalPadding:o.extend("--ft-switch-label-horizontal-padding","",d.spacing2),labelVerticalPadding:o.extend("--ft-switch-label-vertical-padding","",d.spacing1),offHoverStateLayerOpacity:o.extend("--ft-switch-off-hover-state-layer-opacity","",d.opacity8),offFocusStateLayerOpacity:o.extend("--ft-switch-off-focus-state-layer-opacity","",d.opacity8),offActiveStateLayerOpacity:o.extend("--ft-switch-off-active-state-layer-opacity","",d.opacity16),offDisabledComponentOpacity:o.extend("--ft-switch-off-disabled-component-opacity","",d.opacity40),offColor:o.extend("--ft-switch-off-color","",f.contentGlobalSubtle),offStateLayerColor:o.extend("--ft-switch-off-state-layer-color","",f.contentGlobalSubtle),onHoverStateLayerOpacity:o.extend("--ft-switch-on-hover-state-layer-opacity","",d.opacity8),onFocusStateLayerOpacity:o.extend("--ft-switch-on-focus-state-layer-opacity","",d.opacity8),onActiveStateLayerOpacity:o.extend("--ft-switch-on-active-state-layer-opacity","",d.opacity16),onDisabledComponentOpacity:o.extend("--ft-switch-on-disabled-component-opacity","",d.opacity40),onColor:o.extend("--ft-switch-on-color","",f.contentActionPrimary),onStateLayerColor:o.extend("--ft-switch-on-state-layer-color","",f.contentActionPrimary),iconHorizontalPadding:o.extend("--ft-switch-icon-horizontal-padding","",d.spacing1),iconVerticalPadding:o.extend("--ft-switch-icon-vertical-padding","",d.spacing1),focusOutlineWidth:o.create("--ft-switch-focus-outline-width","","SIZE","2px"),focusFocusRingColor:o.extend("--ft-switch-focus-focus-ring-color","",f.borderActionFocusRing),optionBorderRadius:o.extend("--ft-switch-option-border-radius","",d.borderRadiusS)};var Bp={color1Light:o.extend("--ft-chart-1-light","for area color charts",d.colorBrand40),color1Base:o.extend("--ft-chart-1-base","for line charts",d.colorBrand0),color2Light:o.extend("--ft-chart-2-light","for area color charts",d.colorYellow60),color2Base:o.extend("--ft-chart-2-base","for line charts",d.colorYellow100),color3Light:o.extend("--ft-chart-3-light","",d.colorUltramarine40),color3Base:o.extend("--ft-chart-3-base","",d.colorUltramarine70),color4Light:o.extend("--ft-chart-4-light","",d.colorCyan50),color4Base:o.extend("--ft-chart-4-base","",d.colorCyan100),color5Light:o.extend("--ft-chart-5-light","",d.colorRed40),color5Base:o.extend("--ft-chart-5-base","",d.colorRed60),color6Light:o.extend("--ft-chart-6-light","",d.colorGreen40),color6Base:o.extend("--ft-chart-6-base","",d.colorGreen70),color7Light:o.extend("--ft-chart-7-light","",d.colorOrange70),color7Base:o.extend("--ft-chart-7-base","",d.colorOrange100),color8Light:o.extend("--ft-chart-8-light","",d.colorAvocado70),color8Base:o.extend("--ft-chart-8-base","",d.colorAvocado200),color9Light:o.extend("--ft-chart-9-light","",d.colorBrown50),color9Base:o.extend("--ft-chart-9-base","",d.colorBrown200),color10Light:o.extend("--ft-chart-10-light","",d.colorGray50),color10Base:o.extend("--ft-chart-10-base","",d.colorGray80),monochrome10:o.extend("--ft-chart-monochrome-10","",d.colorBrand10),monochrome20:o.extend("--ft-chart-monochrome-20","",d.colorBrand20),monochrome30:o.extend("--ft-chart-monochrome-30","",d.colorBrand40),monochrome40:o.extend("--ft-chart-monochrome-40","",d.colorBrand60),monochrome50:o.extend("--ft-chart-monochrome-50","",d.colorBrand0),monochrome60:o.extend("--ft-chart-monochrome-60","",d.colorBrand200)};var Fp={borderWidth:o.create("--ft-notice-border-width","","SIZE","1px"),horizontalPadding:o.extend("--ft-notice-horizontal-padding","",d.spacing3),verticalPadding:o.extend("--ft-notice-vertical-padding","",d.spacing2),borderRadius:o.extend("--ft-notice-border-radius","",d.borderRadiusS),gap:o.extend("--ft-notice-gap","",d.spacing2),iconSize:o.extend("--ft-notice-icon-size","",d.iconSize3),infoBackgroundColor:o.extend("--ft-notice-info-background-color","",f.backgroundInfoSubtle),infoBorderColor:o.extend("--ft-notice-info-border-color","",f.borderInfoSubtle),infoColor:o.extend("--ft-notice-info-color","",f.contentInfoPrimary),infoIconColor:o.extend("--ft-notice-info-icon-color","",f.contentInfoIconOnly),warningBackgroundColor:o.extend("--ft-notice-warning-background-color","",f.backgroundWarningSubtle),warningBorderColor:o.extend("--ft-notice-warning-border-color","",f.borderWarningSubtle),warningColor:o.extend("--ft-notice-warning-color","",f.contentWarningPrimary),warningIconColor:o.extend("--ft-notice-warning-icon-color","",f.contentWarningIconOnly),errorBackgroundColor:o.extend("--ft-notice-error-background-color","",f.backgroundErrorSubtle),errorBorderColor:o.extend("--ft-notice-error-border-color","",f.borderErrorSubtle),errorColor:o.extend("--ft-notice-error-color","",f.contentErrorPrimary),errorIconColor:o.extend("--ft-notice-error-icon-color","",f.contentErrorIconOnly),successBackgroundColor:o.extend("--ft-notice-success-background-color","",f.backgroundSuccessSubtle),successBorderColor:o.extend("--ft-notice-success-border-color","",f.borderSuccessSubtle),successColor:o.extend("--ft-notice-success-color","",f.contentSuccessPrimary),successIconColor:o.extend("--ft-notice-success-icon-color","",f.contentSuccessIconOnly)};var zp={color:o.extend("--ft-checkbox-color","",f.contentGlobalPrimary),checkedBackgroundColor:o.extend("--ft-checkbox-checked-background-color","",f.contentActionPrimary),checkedStateLayerColor:o.extend("--ft-checkbox-checked-state-layer-color","",f.contentActionPrimary),checkedIconColor:o.extend("--ft-checkbox-checked-icon-color","",f.contentGlobalOnColor),checkedHoverStateLayerOpacity:o.extend("--ft-checkbox-checked-hover-state-layer-opacity","",d.opacity16),checkedFocusStateLayerOpacity:o.extend("--ft-checkbox-checked-focus-state-layer-opacity","",d.opacity16),checkedActiveStateLayerOpacity:o.extend("--ft-checkbox-checked-active-state-layer-opacity","",d.opacity24),checkedDisabledComponentOpacity:o.extend("--ft-checkbox-checked-disabled-component-opacity","",d.opacity40),uncheckedBorderColor:o.extend("--ft-checkbox-unchecked-border-color","",d.colorGray80),uncheckedStateLayerColor:o.extend("--ft-checkbox-unchecked-state-layer-color","",d.colorGray80),uncheckedHoverStateLayerOpacity:o.extend("--ft-checkbox-unchecked-hover-state-layer-opacity","",d.opacity16),uncheckedFocusStateLayerOpacity:o.extend("--ft-checkbox-unchecked-focus-state-layer-opacity","",d.opacity16),uncheckedActiveStateLayerOpacity:o.extend("--ft-checkbox-unchecked-active-state-layer-opacity","",d.opacity24),uncheckedDisabledComponentOpacity:o.extend("--ft-checkbox-unchecked-disabled-component-opacity","",d.opacity40),focusFocusRingColor:o.extend("--ft-checkbox-focus-focus-ring-color","",f.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","",d.spacing3)};var Wp={offHoverStateLayerOpacity:o.extend("--ft-toggle-off-hover-state-layer-opacity","",d.opacity16),offFocusStateLayerOpacity:o.extend("--ft-toggle-off-focus-state-layer-opacity","",d.opacity16),offActiveStateLayerOpacity:o.extend("--ft-toggle-off-active-state-layer-opacity","",d.opacity24),offDisabledComponentOpacity:o.extend("--ft-toggle-off-disabled-component-opacity","",d.opacity40),offBackgroundColor:o.extend("--ft-toggle-off-background-color","",f.contentGlobalSubtle),offIconColor:o.extend("--ft-toggle-off-icon-color","",f.contentGlobalSubtle),offStateLayerColor:o.extend("--ft-toggle-off-state-layer-color","",f.contentGlobalSubtle),onHoverStateLayerOpacity:o.extend("--ft-toggle-on-hover-state-layer-opacity","",d.opacity16),onFocusStateLayerOpacity:o.extend("--ft-toggle-on-focus-state-layer-opacity","",d.opacity16),onActiveStateLayerOpacity:o.extend("--ft-toggle-on-active-state-layer-opacity","",d.opacity24),onDisabledComponentOpacity:o.extend("--ft-toggle-on-disabled-component-opacity","",d.opacity40),onBackgroundColor:o.extend("--ft-toggle-on-background-color","",f.contentActionPrimary),onStateLayerColor:o.extend("--ft-toggle-on-state-layer-color","",f.contentActionPrimary),onIconColor:o.extend("--ft-toggle-on-icon-color","",f.contentActionPrimary),color:o.extend("--ft-toggle-color","",f.contentGlobalPrimary),focusFocusRingColor:o.extend("--ft-toggle-focus-focus-ring-color","",f.borderActionFocusRing),gap:o.extend("--ft-toggle-gap","",d.spacing3)};var Hp={color:o.extend("--ft-radio-color","",f.contentGlobalPrimary),selectedRadioColor:o.extend("--ft-radio-selected-radio-color","",f.contentActionPrimary),selectedStateLayerColor:o.extend("--ft-radio-selected-state-layer-color","",f.contentActionPrimary),selectedHoverStateLayerOpacity:o.extend("--ft-radio-selected-hover-state-layer-opacity","",d.opacity16),selectedFocusStateLayerOpacity:o.extend("--ft-radio-selected-focus-state-layer-opacity","",d.opacity16),selectedActiveStateLayerOpacity:o.extend("--ft-radio-selected-active-state-layer-opacity","",d.opacity24),selectedDisabledComponentOpacity:o.extend("--ft-radio-selected-disabled-component-opacity","",d.opacity40),unselectedStateLayerColor:o.extend("--ft-radio-unselected-state-layer-color","",f.borderInputPrimary),unselectedBorderColor:o.extend("--ft-radio-unselected-border-color","",f.borderInputPrimary),unselectedHoverStateLayerOpacity:o.extend("--ft-radio-unselected-hover-state-layer-opacity","",d.opacity16),unselectedFocusStateLayerOpacity:o.extend("--ft-radio-unselected-focus-state-layer-opacity","",d.opacity16),unselectedActiveStateLayerOpacity:o.extend("--ft-radio-unselected-active-state-layer-opacity","",d.opacity24),unselectedDisabledComponentOpacity:o.extend("--ft-radio-unselected-disabled-component-opacity","",d.opacity40),focusFocusRingColor:o.extend("--ft-radio-focus-focus-ring-color","",f.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","",d.spacing3)};var Vp={iconSize:o.extend("--ft-notification-icon-size","",d.iconSize4),leftPadding:o.extend("--ft-notification-left-padding","",d.spacing5),rightPadding:o.extend("--ft-notification-right-padding","",d.spacing4),verticalPadding:o.extend("--ft-notification-vertical-padding","",d.spacing3),infoBackgroundColor:o.extend("--ft-notification-info-background-color","",f.backgroundInfoSubtle),infoColor:o.extend("--ft-notification-info-color","",f.contentInfoPrimary),infoIconColor:o.extend("--ft-notification-info-icon-color","",f.contentInfoIconOnly),infoBorderColor:o.extend("--ft-notification-info-border-color","",f.borderInfoSubtle),successBackgroundColor:o.extend("--ft-notification-success-background-color","",f.backgroundSuccessSubtle),successColor:o.extend("--ft-notification-success-color","",f.contentSuccessPrimary),successIconColor:o.extend("--ft-notification-success-icon-color","",f.contentSuccessIconOnly),successBorderColor:o.extend("--ft-notification-success-border-color","",f.borderSuccessSubtle),warningBackgroundColor:o.extend("--ft-notification-warning-background-color","",f.backgroundWarningSubtle),warningColor:o.extend("--ft-notification-warning-color","",f.contentWarningPrimary),warningIconColor:o.extend("--ft-notification-warning-icon-color","",f.contentWarningIconOnly),warningBorderColor:o.extend("--ft-notification-warning-border-color","",f.borderWarningSubtle),errorBackgroundColor:o.extend("--ft-notification-error-background-color","",f.backgroundErrorSubtle),errorColor:o.extend("--ft-notification-error-color","",f.contentErrorPrimary),errorIconColor:o.extend("--ft-notification-error-icon-color","",f.contentErrorIconOnly),errorBorderColor:o.extend("--ft-notification-error-border-color","",f.borderErrorSubtle),borderRadius:o.extend("--ft-notification-border-radius","",d.borderRadiusPill),borderWidth:o.create("--ft-notification-border-width","","SIZE","1px"),leadingGap:o.extend("--ft-notification-leading-gap","",d.spacing2),trailingGap:o.extend("--ft-notification-trailing-gap","",d.spacing8)};var jp={horizontalPadding:o.extend("--ft-tooltip-horizontal-padding","",d.spacing2),verticalPadding:o.extend("--ft-tooltip-vertical-padding","",d.spacing2),borderRadius:o.extend("--ft-tooltip-border-radius","",d.borderRadiusS),color:o.extend("--ft-tooltip-color","",f.contentGlobalOnColor),backgroundColor:o.extend("--ft-tooltip-background-color","",f.contentGlobalPrimary),backgroundOpacity:o.extend("--ft-tooltip-background-opacity","",d.opacity80),shadow:o.extend("--ft-tooltip-shadow","",d.shadowElevation02),maxWidth:o.create("--ft-tooltip-max-width","","SIZE","256px"),gap:o.extend("--ft-tooltip-gap","",d.spacing05)};var mt;(function(t){t.brand="brand",t.neutral="neutral",t.info="info",t.success="success",t.warning="warning",t.error="error"})(mt||(mt={}));var he;(function(t){t.large="large",t.medium="medium",t.small="small"})(he||(he={}));function Un(t){return`ftds--family-${t}`}function Bn(t){return`ftds--size-${t}`}var T={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 jn={};J(jn,{FtNotificationEvent:()=>Wn,PostResizeEvent:()=>Vn,PreResizeEvent:()=>Hn});var Wn=class extends CustomEvent{constructor(e){super("ft-notification",{bubbles:!0,composed:!0,detail:e})}},Hn=class extends Event{constructor(){super("ft-pre-resize",{composed:!0,bubbles:!0})}},Vn=class extends Event{constructor(){super("ft-post-resize",{composed:!0,bubbles:!0})}};var oa={};J(oa,{computeOffsetPosition:()=>ra});var il=["top","right","bottom","left"],ol=["start","end"],Gn=il.reduce((t,e)=>t.concat(e,e+"-"+ol[0],e+"-"+ol[1]),[]),lo=Math.min,Tt=Math.max,co=Math.round;var yt=t=>({x:t,y:t}),Kp={left:"right",right:"left",bottom:"top",top:"bottom"},Gp={start:"end",end:"start"};function Zn(t,e,r){return Tt(t,lo(e,r))}function ei(t,e){return typeof t=="function"?t(e):t}function Sr(t){return t.split("-")[0]}function Pt(t){return t.split("-")[1]}function qn(t){return t==="x"?"y":"x"}function Yn(t){return t==="y"?"height":"width"}function ti(t){return["top","bottom"].includes(Sr(t))?"y":"x"}function Xn(t){return qn(ti(t))}function nl(t,e,r){r===void 0&&(r=!1);let i=Pt(t),n=Xn(t),a=Yn(n),s=n==="x"?i===(r?"end":"start")?"right":"left":i==="start"?"bottom":"top";return e.reference[a]>e.floating[a]&&(s=Kn(s)),[s,Kn(s)]}function al(t){return t.replace(/start|end/g,e=>Gp[e])}function Kn(t){return t.replace(/left|right|bottom|top/g,e=>Kp[e])}function Zp(t){return{top:0,right:0,bottom:0,left:0,...t}}function sl(t){return typeof t!="number"?Zp(t):{top:t,right:t,bottom:t,left:t}}function er(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}function ll(t,e,r){let{reference:i,floating:n}=t,a=ti(e),s=Xn(e),l=Yn(s),c=Sr(e),p=a==="y",u=i.x+i.width/2-n.width/2,h=i.y+i.height/2-n.height/2,g=i[l]/2-n[l]/2,b;switch(c){case"top":b={x:u,y:i.y-n.height};break;case"bottom":b={x:u,y:i.y+i.height};break;case"right":b={x:i.x+i.width,y:h};break;case"left":b={x:i.x-n.width,y:h};break;default:b={x:i.x,y:i.y}}switch(Pt(e)){case"start":b[s]-=g*(r&&p?-1:1);break;case"end":b[s]+=g*(r&&p?-1:1);break}return b}var cl=async(t,e,r)=>{let{placement:i="bottom",strategy:n="absolute",middleware:a=[],platform:s}=r,l=a.filter(Boolean),c=await(s.isRTL==null?void 0:s.isRTL(e)),p=await s.getElementRects({reference:t,floating:e,strategy:n}),{x:u,y:h}=ll(p,i,c),g=i,b={},x=0;for(let C=0;C<l.length;C++){let{name:P,fn:$}=l[C],{x:I,y:O,data:S,reset:E}=await $({x:u,y:h,initialPlacement:i,placement:g,strategy:n,middlewareData:b,rects:p,platform:s,elements:{reference:t,floating:e}});if(u=I??u,h=O??h,b={...b,[P]:{...b[P],...S}},E&&x<=50){x++,typeof E=="object"&&(E.placement&&(g=E.placement),E.rects&&(p=E.rects===!0?await s.getElementRects({reference:t,floating:e,strategy:n}):E.rects),{x:u,y:h}=ll(p,g,c)),C=-1;continue}}return{x:u,y:h,placement:g,strategy:n,middlewareData:b}};async function Jn(t,e){var r;e===void 0&&(e={});let{x:i,y:n,platform:a,rects:s,elements:l,strategy:c}=t,{boundary:p="clippingAncestors",rootBoundary:u="viewport",elementContext:h="floating",altBoundary:g=!1,padding:b=0}=ei(e,t),x=sl(b),P=l[g?h==="floating"?"reference":"floating":h],$=er(await a.getClippingRect({element:(r=await(a.isElement==null?void 0:a.isElement(P)))==null||r?P:P.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(l.floating)),boundary:p,rootBoundary:u,strategy:c})),I=h==="floating"?{...s.floating,x:i,y:n}:s.reference,O=await(a.getOffsetParent==null?void 0:a.getOffsetParent(l.floating)),S=await(a.isElement==null?void 0:a.isElement(O))?await(a.getScale==null?void 0:a.getScale(O))||{x:1,y:1}:{x:1,y:1},E=er(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({rect:I,offsetParent:O,strategy:c}):I);return{top:($.top-E.top+x.top)/S.y,bottom:(E.bottom-$.bottom+x.bottom)/S.y,left:($.left-E.left+x.left)/S.x,right:(E.right-$.right+x.right)/S.x}}function qp(t,e,r){return(t?[...r.filter(n=>Pt(n)===t),...r.filter(n=>Pt(n)!==t)]:r.filter(n=>Sr(n)===n)).filter(n=>t?Pt(n)===t||(e?al(n)!==n:!1):!0)}var Qn=function(t){return t===void 0&&(t={}),{name:"autoPlacement",options:t,async fn(e){var r,i,n;let{rects:a,middlewareData:s,placement:l,platform:c,elements:p}=e,{crossAxis:u=!1,alignment:h,allowedPlacements:g=Gn,autoAlignment:b=!0,...x}=ei(t,e),C=h!==void 0||g===Gn?qp(h||null,b,g):g,P=await Jn(e,x),$=((r=s.autoPlacement)==null?void 0:r.index)||0,I=C[$];if(I==null)return{};let O=nl(I,a,await(c.isRTL==null?void 0:c.isRTL(p.floating)));if(l!==I)return{reset:{placement:C[0]}};let S=[P[Sr(I)],P[O[0]],P[O[1]]],E=[...((i=s.autoPlacement)==null?void 0:i.overflows)||[],{placement:I,overflows:S}],U=C[$+1];if(U)return{data:{index:$+1,overflows:E},reset:{placement:U}};let z=E.map(m=>{let v=Pt(m.placement);return[m.placement,v&&u?m.overflows.slice(0,2).reduce((R,j)=>R+j,0):m.overflows[0],m.overflows]}).sort((m,v)=>m[1]-v[1]),Z=((n=z.filter(m=>m[2].slice(0,Pt(m[0])?2:3).every(v=>v<=0))[0])==null?void 0:n[0])||z[0][0];return Z!==l?{data:{index:$+1,overflows:E},reset:{placement:Z}}:{}}}};var ea=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){let{x:r,y:i,placement:n}=e,{mainAxis:a=!0,crossAxis:s=!1,limiter:l={fn:P=>{let{x:$,y:I}=P;return{x:$,y:I}}},...c}=ei(t,e),p={x:r,y:i},u=await Jn(e,c),h=ti(Sr(n)),g=qn(h),b=p[g],x=p[h];if(a){let P=g==="y"?"top":"left",$=g==="y"?"bottom":"right",I=b+u[P],O=b-u[$];b=Zn(I,b,O)}if(s){let P=h==="y"?"top":"left",$=h==="y"?"bottom":"right",I=x+u[P],O=x-u[$];x=Zn(I,x,O)}let C=l.fn({...e,[g]:b,[h]:x});return{...C,data:{x:C.x-r,y:C.y-i}}}}};function gt(t){return pl(t)?(t.nodeName||"").toLowerCase():"#document"}function Ne(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function bt(t){var e;return(e=(pl(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function pl(t){return t instanceof Node||t instanceof Ne(t).Node}function ot(t){return t instanceof Element||t instanceof Ne(t).Element}function Ze(t){return t instanceof HTMLElement||t instanceof Ne(t).HTMLElement}function dl(t){return typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof Ne(t).ShadowRoot}function Or(t){let{overflow:e,overflowX:r,overflowY:i,display:n}=Me(t);return/auto|scroll|overlay|hidden|clip/.test(e+i+r)&&!["inline","contents"].includes(n)}function fl(t){return["table","td","th"].includes(gt(t))}function oi(t){let e=ii(),r=Me(t);return r.transform!=="none"||r.perspective!=="none"||(r.containerType?r.containerType!=="normal":!1)||!e&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!e&&(r.filter?r.filter!=="none":!1)||["transform","perspective","filter"].some(i=>(r.willChange||"").includes(i))||["paint","layout","strict","content"].some(i=>(r.contain||"").includes(i))}function ul(t){let e=tr(t);for(;Ze(e)&&!po(e);){if(oi(e))return e;e=tr(e)}return null}function ii(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function po(t){return["html","body","#document"].includes(gt(t))}function Me(t){return Ne(t).getComputedStyle(t)}function fo(t){return ot(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function tr(t){if(gt(t)==="html")return t;let e=t.assignedSlot||t.parentNode||dl(t)&&t.host||bt(t);return dl(e)?e.host:e}function hl(t){let e=tr(t);return po(e)?t.ownerDocument?t.ownerDocument.body:t.body:Ze(e)&&Or(e)?e:hl(e)}function ri(t,e,r){var i;e===void 0&&(e=[]),r===void 0&&(r=!0);let n=hl(t),a=n===((i=t.ownerDocument)==null?void 0:i.body),s=Ne(n);return a?e.concat(s,s.visualViewport||[],Or(n)?n:[],s.frameElement&&r?ri(s.frameElement):[]):e.concat(n,ri(n,[],r))}function gl(t){let e=Me(t),r=parseFloat(e.width)||0,i=parseFloat(e.height)||0,n=Ze(t),a=n?t.offsetWidth:r,s=n?t.offsetHeight:i,l=co(r)!==a||co(i)!==s;return l&&(r=a,i=s),{width:r,height:i,$:l}}function bl(t){return ot(t)?t:t.contextElement}function Cr(t){let e=bl(t);if(!Ze(e))return yt(1);let r=e.getBoundingClientRect(),{width:i,height:n,$:a}=gl(e),s=(a?co(r.width):r.width)/i,l=(a?co(r.height):r.height)/n;return(!s||!Number.isFinite(s))&&(s=1),(!l||!Number.isFinite(l))&&(l=1),{x:s,y:l}}var Yp=yt(0);function xl(t){let e=Ne(t);return!ii()||!e.visualViewport?Yp:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function Xp(t,e,r){return e===void 0&&(e=!1),!r||e&&r!==Ne(t)?!1:e}function uo(t,e,r,i){e===void 0&&(e=!1),r===void 0&&(r=!1);let n=t.getBoundingClientRect(),a=bl(t),s=yt(1);e&&(i?ot(i)&&(s=Cr(i)):s=Cr(t));let l=Xp(a,r,i)?xl(a):yt(0),c=(n.left+l.x)/s.x,p=(n.top+l.y)/s.y,u=n.width/s.x,h=n.height/s.y;if(a){let g=Ne(a),b=i&&ot(i)?Ne(i):i,x=g.frameElement;for(;x&&i&&b!==g;){let C=Cr(x),P=x.getBoundingClientRect(),$=Me(x),I=P.left+(x.clientLeft+parseFloat($.paddingLeft))*C.x,O=P.top+(x.clientTop+parseFloat($.paddingTop))*C.y;c*=C.x,p*=C.y,u*=C.x,h*=C.y,c+=I,p+=O,x=Ne(x).frameElement}}return er({width:u,height:h,x:c,y:p})}function Jp(t){let{rect:e,offsetParent:r,strategy:i}=t,n=Ze(r),a=bt(r);if(r===a)return e;let s={scrollLeft:0,scrollTop:0},l=yt(1),c=yt(0);if((n||!n&&i!=="fixed")&&((gt(r)!=="body"||Or(a))&&(s=fo(r)),Ze(r))){let p=uo(r);l=Cr(r),c.x=p.x+r.clientLeft,c.y=p.y+r.clientTop}return{width:e.width*l.x,height:e.height*l.y,x:e.x*l.x-s.scrollLeft*l.x+c.x,y:e.y*l.y-s.scrollTop*l.y+c.y}}function Qp(t){return Array.from(t.getClientRects())}function vl(t){return uo(bt(t)).left+fo(t).scrollLeft}function ef(t){let e=bt(t),r=fo(t),i=t.ownerDocument.body,n=Tt(e.scrollWidth,e.clientWidth,i.scrollWidth,i.clientWidth),a=Tt(e.scrollHeight,e.clientHeight,i.scrollHeight,i.clientHeight),s=-r.scrollLeft+vl(t),l=-r.scrollTop;return Me(i).direction==="rtl"&&(s+=Tt(e.clientWidth,i.clientWidth)-n),{width:n,height:a,x:s,y:l}}function tf(t,e){let r=Ne(t),i=bt(t),n=r.visualViewport,a=i.clientWidth,s=i.clientHeight,l=0,c=0;if(n){a=n.width,s=n.height;let p=ii();(!p||p&&e==="fixed")&&(l=n.offsetLeft,c=n.offsetTop)}return{width:a,height:s,x:l,y:c}}function rf(t,e){let r=uo(t,!0,e==="fixed"),i=r.top+t.clientTop,n=r.left+t.clientLeft,a=Ze(t)?Cr(t):yt(1),s=t.clientWidth*a.x,l=t.clientHeight*a.y,c=n*a.x,p=i*a.y;return{width:s,height:l,x:c,y:p}}function ml(t,e,r){let i;if(e==="viewport")i=tf(t,r);else if(e==="document")i=ef(bt(t));else if(ot(e))i=rf(e,r);else{let n=xl(t);i={...e,x:e.x-n.x,y:e.y-n.y}}return er(i)}function Sl(t,e){let r=tr(t);return r===e||!ot(r)||po(r)?!1:Me(r).position==="fixed"||Sl(r,e)}function of(t,e){let r=e.get(t);if(r)return r;let i=ri(t,[],!1).filter(l=>ot(l)&>(l)!=="body"),n=null,a=Me(t).position==="fixed",s=a?tr(t):t;for(;ot(s)&&!po(s);){let l=Me(s),c=oi(s);!c&&l.position==="fixed"&&(n=null),(a?!c&&!n:!c&&l.position==="static"&&!!n&&["absolute","fixed"].includes(n.position)||Or(s)&&!c&&Sl(t,s))?i=i.filter(u=>u!==s):n=l,s=tr(s)}return e.set(t,i),i}function nf(t){let{element:e,boundary:r,rootBoundary:i,strategy:n}=t,s=[...r==="clippingAncestors"?of(e,this._c):[].concat(r),i],l=s[0],c=s.reduce((p,u)=>{let h=ml(e,u,n);return p.top=Tt(h.top,p.top),p.right=lo(h.right,p.right),p.bottom=lo(h.bottom,p.bottom),p.left=Tt(h.left,p.left),p},ml(e,l,n));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function af(t){return gl(t)}function sf(t,e,r){let i=Ze(e),n=bt(e),a=r==="fixed",s=uo(t,!0,a,e),l={scrollLeft:0,scrollTop:0},c=yt(0);if(i||!i&&!a)if((gt(e)!=="body"||Or(n))&&(l=fo(e)),i){let p=uo(e,!0,a,e);c.x=p.x+e.clientLeft,c.y=p.y+e.clientTop}else n&&(c.x=vl(n));return{x:s.left+l.scrollLeft-c.x,y:s.top+l.scrollTop-c.y,width:s.width,height:s.height}}function yl(t,e){return!Ze(t)||Me(t).position==="fixed"?null:e?e(t):t.offsetParent}function Ol(t,e){let r=Ne(t);if(!Ze(t))return r;let i=yl(t,e);for(;i&&fl(i)&&Me(i).position==="static";)i=yl(i,e);return i&&(gt(i)==="html"||gt(i)==="body"&&Me(i).position==="static"&&!oi(i))?r:i||ul(t)||r}var lf=async function(t){let{reference:e,floating:r,strategy:i}=t,n=this.getOffsetParent||Ol,a=this.getDimensions;return{reference:sf(e,await n(r),i),floating:{x:0,y:0,...await a(r)}}};function cf(t){return Me(t).direction==="rtl"}var ni={convertOffsetParentRelativeRectToViewportRelativeRect:Jp,getDocumentElement:bt,getClippingRect:nf,getOffsetParent:Ol,getElementRects:lf,getClientRects:Qp,getDimensions:af,getScale:Cr,isElement:ot,isRTL:cf};var Cl=(t,e,r)=>{let i=new Map,n={platform:ni,...r},a={...n.platform,_c:i};return cl(t,e,{...n,platform:a})};function El(t){return df(t)}function ta(t){return t.assignedSlot?t.assignedSlot:t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}function df(t){for(let e=t;e;e=ta(e))if(e instanceof Element&&getComputedStyle(e).display==="none")return null;for(let e=ta(t);e;e=ta(e)){if(!(e instanceof Element))continue;let r=getComputedStyle(e);if(r.display!=="contents"&&(r.position!=="static"||r.filter!=="none"||e.tagName==="BODY"))return e}return null}async function ra(t,e,r){return Cl(t,e,{platform:{...ni,getOffsetParent:i=>ni.getOffsetParent(i,El)},middleware:[ea({crossAxis:!0}),Qn({allowedPlacements:[r]})]})}var aa={};J(aa,{FtdsBase:()=>mo,toFtdsBase:()=>li});var na={};J(na,{FtLitElement:()=>M});var ia={};J(ia,{ScopedRegistryLitElement:()=>ho});var ai=window,pf=ai.ShadowRoot&&(ai.ShadyCSS===void 0||ai.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Fg=Symbol();var wl=(t,e)=>{pf?t.adoptedStyleSheets=e.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet):e.forEach(r=>{let i=document.createElement("style"),n=ai.litNonce;n!==void 0&&i.setAttribute("nonce",n),i.textContent=r.cssText,t.appendChild(i)})};var ho=class extends ft{createRenderRoot(){let e=this.constructor;e.elementDefinitions&&!e.registry&&(e.registry=new CustomElementRegistry,Object.entries(e.elementDefinitions).forEach(([n,a])=>e.registry.define(n,a)));let r={...e.shadowRootOptions,customElements:e.registry},i=this.renderOptions.creationScope=this.attachShadow(r);return wl(i,e.elementStyles),i}};var si=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},_l,Al=Symbol("constructorPrototype"),Rl=Symbol("constructorName"),Tl=Symbol("exportpartsDebouncer"),Nl=Symbol("dynamicDependenciesLoaded"),M=class extends ho{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[_l]=new oe(5),this[Rl]=this.constructor.name,this[Al]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Rl]&&Object.setPrototypeOf(this,this[Al])}connectedCallback(){super.connectedCallback();try{this.shadowRoot&&!this.shadowRoot.adoptedStyleSheets.includes(this.adoptedCustomStyleSheet)&&(this.shadowRoot.adoptedStyleSheets=[...this.shadowRoot.adoptedStyleSheets,this.adoptedCustomStyleSheet]),this.useAdoptedStyleSheets=!0}catch(r){this.useAdoptedStyleSheets=!1,console.error("Cannot use adopted stylesheets",r)}let e=this.constructor;e[Nl]||(e[Nl]=!0,this.importDynamicDependencies())}importDynamicDependencies(){}updated(e){super.updated(e),this.updateComplete.then(()=>{this.contentAvailableCallback(e),this.applyCustomStylesheet(e),this.scheduleExportpartsUpdate()})}contentAvailableCallback(e){}applyCustomStylesheet(e){var r,i,n;if(((i=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll(".ft-lit-element--custom-stylesheet"))!==null&&i!==void 0?i:[]).forEach(a=>a.remove()),this.useAdoptedStyleSheets){if(e.has("customStylesheet"))try{this.adoptedCustomStyleSheet.replaceSync((n=this.customStylesheet)!==null&&n!==void 0?n:"")}catch(a){console.error(a,this.customStylesheet),this.useAdoptedStyleSheets=!1}}else if(this.customStylesheet){let a=document.createElement("style");a.classList.add("ft-lit-element--custom-stylesheet"),a.innerHTML=this.customStylesheet,this.shadowRoot.append(a)}}scheduleExportpartsUpdate(){var e,r,i;(!((e=this.exportpartsPrefix)===null||e===void 0)&&e.trim()||(i=(r=this.exportpartsPrefixes)===null||r===void 0?void 0:r.length)!==null&&i!==void 0&&i)&&this[Tl].run(()=>{var n,a;!((n=this.exportpartsPrefix)===null||n===void 0)&&n.trim()?this.setExportpartsAttribute([this.exportpartsPrefix]):this.exportpartsPrefixes!=null&&((a=this.exportpartsPrefixes)===null||a===void 0?void 0:a.length)>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)})}setExportpartsAttribute(e){var r,i,n,a,s,l;let c=g=>g!=null&&g.trim().length>0,p=e.filter(c).map(g=>g.trim());if(p.length===0){this.removeAttribute("exportparts");return}let u=new Set;for(let g of(i=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll("[part],[exportparts]"))!==null&&i!==void 0?i:[]){let b=(a=(n=g.getAttribute("part"))===null||n===void 0?void 0:n.split(" "))!==null&&a!==void 0?a:[],x=(l=(s=g.getAttribute("exportparts"))===null||s===void 0?void 0:s.split(",").map(C=>C.split(":")[1]))!==null&&l!==void 0?l:[];new Array(...b,...x).filter(c).map(C=>C.trim()).forEach(C=>u.add(C))}if(u.size===0){this.removeAttribute("exportparts");return}let h=[...u.values()].flatMap(g=>p.map(b=>`${g}:${b}--${g}`));this.setAttribute("exportparts",[...this.part,...h].join(", "))}};_l=Tl;si([y()],M.prototype,"exportpartsPrefix",void 0);si([be([])],M.prototype,"exportpartsPrefixes",void 0);si([y()],M.prototype,"customStylesheet",void 0);si([K()],M.prototype,"useAdoptedStyleSheets",void 0);var Pl=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a};function li(t){class e extends t{constructor(){super(...arguments),this.size=he.medium,this.family=mt.neutral}getDesignSystemBaseClasses(){return{[Un(this.family)]:!0,[Bn(this.size)]:!0}}}return Pl([y()],e.prototype,"size",void 0),Pl([y()],e.prototype,"family",void 0),e}var mo=class extends li(M){};var $l={};var da={};J(da,{highlightHtml:()=>ca,highlightHtmlColorCssVariable:()=>Ll,highlightHtmlStyles:()=>uf});var rr=class t{constructor(e,r=!0,i=[],n=5e3){this.ctx=e,this.iframes=r,this.exclude=i,this.iframesTimeout=n}static matches(e,r){let i=typeof r=="string"?[r]:r,n=e.matches||e.matchesSelector||e.msMatchesSelector||e.mozMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector;if(n){let a=!1;return i.every(s=>n.call(e,s)?(a=!0,!1):!0),a}else return!1}getContexts(){let e,r=[];return typeof this.ctx>"u"||!this.ctx?e=[]:NodeList.prototype.isPrototypeOf(this.ctx)?e=Array.prototype.slice.call(this.ctx):Array.isArray(this.ctx)?e=this.ctx:typeof this.ctx=="string"?e=Array.prototype.slice.call(document.querySelectorAll(this.ctx)):e=[this.ctx],e.forEach(i=>{let n=r.filter(a=>a.contains(i)).length>0;r.indexOf(i)===-1&&!n&&r.push(i)}),r}getIframeContents(e,r,i=()=>{}){let n;try{let a=e.contentWindow;if(n=a.document,!a||!n)throw new Error("iframe inaccessible")}catch{i()}n&&r(n)}isIframeBlank(e){let r="about:blank",i=e.getAttribute("src").trim();return e.contentWindow.location.href===r&&i!==r&&i}observeIframeLoad(e,r,i){let n=!1,a=null,s=()=>{if(!n){n=!0,clearTimeout(a);try{this.isIframeBlank(e)||(e.removeEventListener("load",s),this.getIframeContents(e,r,i))}catch{i()}}};e.addEventListener("load",s),a=setTimeout(s,this.iframesTimeout)}onIframeReady(e,r,i){try{e.contentWindow.document.readyState==="complete"?this.isIframeBlank(e)?this.observeIframeLoad(e,r,i):this.getIframeContents(e,r,i):this.observeIframeLoad(e,r,i)}catch{i()}}waitForIframes(e,r){let i=0;this.forEachIframe(e,()=>!0,n=>{i++,this.waitForIframes(n.querySelector("html"),()=>{--i||r()})},n=>{n||r()})}forEachIframe(e,r,i,n=()=>{}){let a=e.querySelectorAll("iframe"),s=a.length,l=0;a=Array.prototype.slice.call(a);let c=()=>{--s<=0&&n(l)};s||c(),a.forEach(p=>{t.matches(p,this.exclude)?c():this.onIframeReady(p,u=>{r(p)&&(l++,i(u)),c()},c)})}createIterator(e,r,i){return document.createNodeIterator(e,r,i,!1)}createInstanceOnIframe(e){return new t(e.querySelector("html"),this.iframes)}compareNodeIframe(e,r,i){let n=e.compareDocumentPosition(i),a=Node.DOCUMENT_POSITION_PRECEDING;if(n&a)if(r!==null){let s=r.compareDocumentPosition(i),l=Node.DOCUMENT_POSITION_FOLLOWING;if(s&l)return!0}else return!0;return!1}getIteratorNode(e){let r=e.previousNode(),i;return r===null?i=e.nextNode():i=e.nextNode()&&e.nextNode(),{prevNode:r,node:i}}checkIframeFilter(e,r,i,n){let a=!1,s=!1;return n.forEach((l,c)=>{l.val===i&&(a=c,s=l.handled)}),this.compareNodeIframe(e,r,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(e,r,i,n){e.forEach(a=>{a.handled||this.getIframeContents(a.val,s=>{this.createInstanceOnIframe(s).forEachNode(r,i,n)})})}iterateThroughNodes(e,r,i,n,a){let s=this.createIterator(r,e,n),l=[],c=[],p,u,h=()=>({prevNode:u,node:p}=this.getIteratorNode(s),p);for(;h();)this.iframes&&this.forEachIframe(r,g=>this.checkIframeFilter(p,u,g,l),g=>{this.createInstanceOnIframe(g).forEachNode(e,b=>c.push(b),n)}),c.push(p);c.forEach(g=>{i(g)}),this.iframes&&this.handleOpenIframes(l,e,i,n),a()}forEachNode(e,r,i,n=()=>{}){let a=this.getContexts(),s=a.length;s||n(),a.forEach(l=>{let c=()=>{this.iterateThroughNodes(e,l,r,i,()=>{--s<=0&&n()})};this.iframes?this.waitForIframes(l,c):c()})}};var yo=class{constructor(e){this.ctx=e,this.ie=!1;let r=window.navigator.userAgent;(r.indexOf("MSIE")>-1||r.indexOf("Trident")>-1)&&(this.ie=!0)}set opt(e){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},e)}get opt(){return this._opt}get iterator(){return new rr(this.ctx,this.opt.iframes,this.opt.exclude,this.opt.iframesTimeout)}log(e,r="debug"){let i=this.opt.log;this.opt.debug&&typeof i=="object"&&typeof i[r]=="function"&&i[r](`mark.js: ${e}`)}escapeStr(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}createRegExp(e){return this.opt.wildcards!=="disabled"&&(e=this.setupWildcardsRegExp(e)),e=this.escapeStr(e),Object.keys(this.opt.synonyms).length&&(e=this.createSynonymsRegExp(e)),(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(e=this.setupIgnoreJoinersRegExp(e)),this.opt.diacritics&&(e=this.createDiacriticsRegExp(e)),e=this.createMergedBlanksRegExp(e),(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(e=this.createJoinersRegExp(e)),this.opt.wildcards!=="disabled"&&(e=this.createWildcardsRegExp(e)),e=this.createAccuracyRegExp(e),e}createSynonymsRegExp(e){let r=this.opt.synonyms,i=this.opt.caseSensitive?"":"i",n=this.opt.ignoreJoiners||this.opt.ignorePunctuation.length?"\0":"";for(let a in r)if(r.hasOwnProperty(a)){let s=r[a],l=this.opt.wildcards!=="disabled"?this.setupWildcardsRegExp(a):this.escapeStr(a),c=this.opt.wildcards!=="disabled"?this.setupWildcardsRegExp(s):this.escapeStr(s);l!==""&&c!==""&&(e=e.replace(new RegExp(`(${this.escapeStr(l)}|${this.escapeStr(c)})`,`gm${i}`),n+`(${this.processSynomyms(l)}|${this.processSynomyms(c)})`+n))}return e}processSynomyms(e){return(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(e=this.setupIgnoreJoinersRegExp(e)),e}setupWildcardsRegExp(e){return e=e.replace(/(?:\\)*\?/g,r=>r.charAt(0)==="\\"?"?":""),e.replace(/(?:\\)*\*/g,r=>r.charAt(0)==="\\"?"*":"")}createWildcardsRegExp(e){let r=this.opt.wildcards==="withSpaces";return e.replace(/\u0001/g,r?"[\\S\\s]?":"\\S?").replace(/\u0002/g,r?"[\\S\\s]*?":"\\S*")}setupIgnoreJoinersRegExp(e){return e.replace(/[^(|)\\]/g,(r,i,n)=>{let a=n.charAt(i+1);return/[(|)\\]/.test(a)||a===""?r:r+"\0"})}createJoinersRegExp(e){let r=[],i=this.opt.ignorePunctuation;return Array.isArray(i)&&i.length&&r.push(this.escapeStr(i.join(""))),this.opt.ignoreJoiners&&r.push("\\u00ad\\u200b\\u200c\\u200d"),r.length?e.split(/\u0000+/).join(`[${r.join("")}]*`):e}createDiacriticsRegExp(e){let r=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 e.split("").forEach(a=>{i.every(s=>{if(s.indexOf(a)!==-1){if(n.indexOf(s)>-1)return!1;e=e.replace(new RegExp(`[${s}]`,`gm${r}`),`[${s}]`),n.push(s)}return!0})}),e}createMergedBlanksRegExp(e){return e.replace(/[\s]+/gmi,"[\\s]+")}createAccuracyRegExp(e){let r="!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~\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`()(${e})`;case"complementary":return s="\\s"+(s||this.escapeStr(r)),`()([^${s}]*${e}[^${s}]*)`;case"exactly":return`(^|\\s${s})(${e})(?=$|\\s${s})`}}getSeparatedKeywords(e){let r=[];return e.forEach(i=>{this.opt.separateWordSearch?i.split(" ").forEach(n=>{n.trim()&&r.indexOf(n)===-1&&r.push(n)}):i.trim()&&r.indexOf(i)===-1&&r.push(i)}),{keywords:r.sort((i,n)=>n.length-i.length),length:r.length}}isNumeric(e){return Number(parseFloat(e))==e}checkRanges(e){if(!Array.isArray(e)||Object.prototype.toString.call(e[0])!=="[object Object]")return this.log("markRanges() will only accept an array of objects"),this.opt.noMatch(e),[];let r=[],i=0;return e.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,r.push(n),i=s)}),r}callNoMatchOnInvalidRanges(e,r){let i,n,a=!1;return e&&typeof e.start<"u"?(i=parseInt(e.start,10),n=i+parseInt(e.length,10),this.isNumeric(e.start)&&this.isNumeric(e.length)&&n-r>0&&n-i>0?a=!0:(this.log(`Ignoring invalid or overlapping range: ${JSON.stringify(e)}`),this.opt.noMatch(e))):(this.log(`Ignoring invalid range: ${JSON.stringify(e)}`),this.opt.noMatch(e)),{start:i,end:n,valid:a}}checkWhitespaceRanges(e,r,i){let n,a=!0,s=i.length,l=r-s,c=parseInt(e.start,10)-l;return c=c>s?s:c,n=c+parseInt(e.length,10),n>s&&(n=s,this.log(`End range automatically set to the max value of ${s}`)),c<0||n-c<0||c>s||n>s?(a=!1,this.log(`Invalid range: ${JSON.stringify(e)}`),this.opt.noMatch(e)):i.substring(c,n).replace(/\s+/g,"")===""&&(a=!1,this.log("Skipping whitespace only range: "+JSON.stringify(e)),this.opt.noMatch(e)),{start:c,end:n,valid:a}}getTextNodes(e){let r="",i=[];this.iterator.forEachNode(NodeFilter.SHOW_TEXT,n=>{i.push({start:r.length,end:(r+=n.textContent).length,node:n})},n=>this.matchesExclude(n.parentNode)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT,()=>{e({value:r,nodes:i})})}matchesExclude(e){return rr.matches(e,this.opt.exclude.concat(["script","style","title","head","html"]))}wrapRangeInTextNode(e,r,i){let n=this.opt.element?this.opt.element:"mark",a=e.splitText(r),s=a.splitText(i-r),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(e,r,i,n,a){e.nodes.every((s,l)=>{let c=e.nodes[l+1];if(typeof c>"u"||c.start>r){if(!n(s.node))return!1;let p=r-s.start,u=(i>s.end?s.end:i)-s.start,h=e.value.substr(0,s.start),g=e.value.substr(u+s.start);if(s.node=this.wrapRangeInTextNode(s.node,p,u),e.value=h+g,e.nodes.forEach((b,x)=>{x>=l&&(e.nodes[x].start>0&&x!==l&&(e.nodes[x].start-=u),e.nodes[x].end-=u)}),i-=u,a(s.node.previousSibling,s.start),i>s.end)r=s.end;else return!1}return!0})}wrapMatches(e,r,i,n,a){let s=r===0?0:r+1;this.getTextNodes(l=>{l.nodes.forEach(c=>{c=c.node;let p;for(;(p=e.exec(c.textContent))!==null&&p[s]!=="";){if(!i(p[s],c))continue;let u=p.index;if(s!==0)for(let h=1;h<s;h++)u+=p[h].length;c=this.wrapRangeInTextNode(c,u,u+p[s].length),n(c.previousSibling),e.lastIndex=0}}),a()})}wrapMatchesAcrossElements(e,r,i,n,a){let s=r===0?0:r+1;this.getTextNodes(l=>{let c;for(;(c=e.exec(l.value))!==null&&c[s]!=="";){let p=c.index;if(s!==0)for(let h=1;h<s;h++)p+=c[h].length;let u=p+c[s].length;this.wrapRangeInMappedTextNode(l,p,u,h=>i(c[s],h),(h,g)=>{e.lastIndex=g,n(h)})}a()})}wrapRangeFromIndex(e,r,i,n){this.getTextNodes(a=>{let s=a.value.length;e.forEach((l,c)=>{let{start:p,end:u,valid:h}=this.checkWhitespaceRanges(l,s,a.value);h&&this.wrapRangeInMappedTextNode(a,p,u,g=>r(g,l,a.value.substring(p,u),c),g=>{i(g,l)})}),n()})}unwrapMatches(e){let r=e.parentNode,i=document.createDocumentFragment();for(;e.firstChild;)i.appendChild(e.removeChild(e.firstChild));r.replaceChild(i,e),this.ie?this.normalizeTextNode(r):r.normalize()}normalizeTextNode(e){if(e){if(e.nodeType===3)for(;e.nextSibling&&e.nextSibling.nodeType===3;)e.nodeValue+=e.nextSibling.nodeValue,e.parentNode.removeChild(e.nextSibling);else this.normalizeTextNode(e.firstChild);this.normalizeTextNode(e.nextSibling)}}markRegExp(e,r){this.opt=r,this.log(`Searching with expression "${e}"`);let i=0,n="wrapMatches",a=s=>{i++,this.opt.each(s)};this.opt.acrossElements&&(n="wrapMatchesAcrossElements"),this[n](e,this.opt.ignoreGroups,(s,l)=>this.opt.filter(l,s,i),a,()=>{i===0&&this.opt.noMatch(e),this.opt.done(i)})}mark(e,r){this.opt=r;let i=0,n="wrapMatches",{keywords:a,length:s}=this.getSeparatedKeywords(typeof e=="string"?[e]:e),l=this.opt.caseSensitive?"":"i",c=p=>{let u=new RegExp(this.createRegExp(p),`gm${l}`),h=0;this.log(`Searching with expression "${u}"`),this[n](u,1,(g,b)=>this.opt.filter(b,p,i,h),g=>{h++,i++,this.opt.each(g)},()=>{h===0&&this.opt.noMatch(p),a[s-1]===p?this.opt.done(i):c(a[a.indexOf(p)+1])})};this.opt.acrossElements&&(n="wrapMatchesAcrossElements"),s===0?this.opt.done(i):c(a[0])}markRanges(e,r){this.opt=r;let i=0,n=this.checkRanges(e);n&&n.length?(this.log("Starting to mark with the following ranges: "+JSON.stringify(n)),this.wrapRangeFromIndex(n,(a,s,l,c)=>this.opt.filter(a,s,l,c),(a,s)=>{i++,this.opt.each(a,s)},()=>{this.opt.done(i)})):this.opt.done(i)}unmark(e){this.opt=e;let r=this.opt.element?this.opt.element:"*";r+="[data-markjs]",this.opt.className&&(r+=`.${this.opt.className}`),this.log(`Removal selector "${r}"`),this.iterator.forEachNode(NodeFilter.SHOW_ELEMENT,i=>{this.unwrapMatches(i)},i=>{let n=rr.matches(i,r),a=this.matchesExclude(i);return!n||a?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT},this.opt.done)}};function sa(t){let e=new yo(t);return this.mark=(r,i)=>(e.mark(r,i),this),this.markRegExp=(r,i)=>(e.markRegExp(r,i),this),this.markRanges=(r,i)=>(e.markRanges(r,i),this),this.unmark=r=>(e.unmark(r),this),this}var ff=sa,Ll=o.create("--ft-utils-highlight-html-background-color","","COLOR","#FFF26E"),uf=N`
|
|
1
|
+
"use strict";(()=>{var kd=Object.create;var Mi=Object.defineProperty;var Dd=Object.getOwnPropertyDescriptor;var Md=Object.getOwnPropertyNames;var Ud=Object.getPrototypeOf,Bd=Object.prototype.hasOwnProperty;var Fd=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),J=(t,e)=>{for(var r in e)Mi(t,r,{get:e[r],enumerable:!0})},zd=(t,e,r,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of Md(e))!Bd.call(t,n)&&n!==r&&Mi(t,n,{get:()=>e[n],enumerable:!(o=Dd(e,n))||o.enumerable});return t};var Wd=(t,e,r)=>(r=t!=null?kd(Ud(t)):{},zd(e||!t||!t.__esModule?Mi(r,"default",{value:t,enumerable:!0}):r,t));var Oc=Fd(Sc=>{(function(t){var e=function(r){var o={searchParams:"URLSearchParams"in t,iterable:"Symbol"in t&&"iterator"in Symbol,blob:"FileReader"in t&&"Blob"in t&&function(){try{return new Blob,!0}catch{return!1}}(),formData:"FormData"in t,arrayBuffer:"ArrayBuffer"in t};function n(m){return m&&DataView.prototype.isPrototypeOf(m)}if(o.arrayBuffer)var a=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],s=ArrayBuffer.isView||function(m){return m&&a.indexOf(Object.prototype.toString.call(m))>-1};function l(m){if(typeof m!="string"&&(m=String(m)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(m))throw new TypeError("Invalid character in header field name");return m.toLowerCase()}function c(m){return typeof m!="string"&&(m=String(m)),m}function p(m){var v={next:function(){var R=m.shift();return{done:R===void 0,value:R}}};return o.iterable&&(v[Symbol.iterator]=function(){return v}),v}function f(m){this.map={},m instanceof f?m.forEach(function(v,R){this.append(R,v)},this):Array.isArray(m)?m.forEach(function(v){this.append(v[0],v[1])},this):m&&Object.getOwnPropertyNames(m).forEach(function(v){this.append(v,m[v])},this)}f.prototype.append=function(m,v){m=l(m),v=c(v);var R=this.map[m];this.map[m]=R?R+", "+v:v},f.prototype.delete=function(m){delete this.map[l(m)]},f.prototype.get=function(m){return m=l(m),this.has(m)?this.map[m]:null},f.prototype.has=function(m){return this.map.hasOwnProperty(l(m))},f.prototype.set=function(m,v){this.map[l(m)]=c(v)},f.prototype.forEach=function(m,v){for(var R in this.map)this.map.hasOwnProperty(R)&&m.call(v,this.map[R],R,this)},f.prototype.keys=function(){var m=[];return this.forEach(function(v,R){m.push(R)}),p(m)},f.prototype.values=function(){var m=[];return this.forEach(function(v){m.push(v)}),p(m)},f.prototype.entries=function(){var m=[];return this.forEach(function(v,R){m.push([R,v])}),p(m)},o.iterable&&(f.prototype[Symbol.iterator]=f.prototype.entries);function h(m){if(m.bodyUsed)return Promise.reject(new TypeError("Already read"));m.bodyUsed=!0}function g(m){return new Promise(function(v,R){m.onload=function(){v(m.result)},m.onerror=function(){R(m.error)}})}function b(m){var v=new FileReader,R=g(v);return v.readAsArrayBuffer(m),R}function x(m){var v=new FileReader,R=g(v);return v.readAsText(m),R}function C(m){for(var v=new Uint8Array(m),R=new Array(v.length),j=0;j<v.length;j++)R[j]=String.fromCharCode(v[j]);return R.join("")}function $(m){if(m.slice)return m.slice(0);var v=new Uint8Array(m.byteLength);return v.set(new Uint8Array(m)),v.buffer}function L(){return this.bodyUsed=!1,this._initBody=function(m){this._bodyInit=m,m?typeof m=="string"?this._bodyText=m:o.blob&&Blob.prototype.isPrototypeOf(m)?this._bodyBlob=m:o.formData&&FormData.prototype.isPrototypeOf(m)?this._bodyFormData=m:o.searchParams&&URLSearchParams.prototype.isPrototypeOf(m)?this._bodyText=m.toString():o.arrayBuffer&&o.blob&&n(m)?(this._bodyArrayBuffer=$(m.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):o.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(m)||s(m))?this._bodyArrayBuffer=$(m):this._bodyText=m=Object.prototype.toString.call(m):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):o.searchParams&&URLSearchParams.prototype.isPrototypeOf(m)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},o.blob&&(this.blob=function(){var m=h(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(){return this._bodyArrayBuffer?h(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(b)}),this.text=function(){var m=h(this);if(m)return m;if(this._bodyBlob)return x(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(C(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},o.formData&&(this.formData=function(){return this.text().then(E)}),this.json=function(){return this.text().then(JSON.parse)},this}var I=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function O(m){var v=m.toUpperCase();return I.indexOf(v)>-1?v:m}function S(m,v){v=v||{};var R=v.body;if(m instanceof S){if(m.bodyUsed)throw new TypeError("Already read");this.url=m.url,this.credentials=m.credentials,v.headers||(this.headers=new f(m.headers)),this.method=m.method,this.mode=m.mode,this.signal=m.signal,!R&&m._bodyInit!=null&&(R=m._bodyInit,m.bodyUsed=!0)}else this.url=String(m);if(this.credentials=v.credentials||this.credentials||"same-origin",(v.headers||!this.headers)&&(this.headers=new f(v.headers)),this.method=O(v.method||this.method||"GET"),this.mode=v.mode||this.mode||null,this.signal=v.signal||this.signal,this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&R)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(R)}S.prototype.clone=function(){return new S(this,{body:this._bodyInit})};function E(m){var v=new FormData;return m.trim().split("&").forEach(function(R){if(R){var j=R.split("="),ne=j.shift().replace(/\+/g," "),q=j.join("=").replace(/\+/g," ");v.append(decodeURIComponent(ne),decodeURIComponent(q))}}),v}function U(m){var v=new f,R=m.replace(/\r?\n[\t ]+/g," ");return R.split(/\r?\n/).forEach(function(j){var ne=j.split(":"),q=ne.shift().trim();if(q){var No=ne.join(":").trim();v.append(q,No)}}),v}L.call(S.prototype);function z(m,v){v||(v={}),this.type="default",this.status=v.status===void 0?200:v.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in v?v.statusText:"OK",this.headers=new f(v.headers),this.url=v.url||"",this._initBody(m)}L.call(z.prototype),z.prototype.clone=function(){return new z(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new f(this.headers),url:this.url})},z.error=function(){var m=new z(null,{status:0,statusText:""});return m.type="error",m};var Se=[301,302,303,307,308];z.redirect=function(m,v){if(Se.indexOf(v)===-1)throw new RangeError("Invalid status code");return new z(null,{status:v,headers:{location:m}})},r.DOMException=t.DOMException;try{new r.DOMException}catch{r.DOMException=function(v,R){this.message=v,this.name=R;var j=Error(v);this.stack=j.stack},r.DOMException.prototype=Object.create(Error.prototype),r.DOMException.prototype.constructor=r.DOMException}function Z(m,v){return new Promise(function(R,j){var ne=new S(m,v);if(ne.signal&&ne.signal.aborted)return j(new r.DOMException("Aborted","AbortError"));var q=new XMLHttpRequest;function No(){q.abort()}q.onload=function(){var Kr={status:q.status,statusText:q.statusText,headers:U(q.getAllResponseHeaders()||"")};Kr.url="responseURL"in q?q.responseURL:Kr.headers.get("X-Request-URL");var Di="response"in q?q.response:q.responseText;R(new z(Di,Kr))},q.onerror=function(){j(new TypeError("Network request failed"))},q.ontimeout=function(){j(new TypeError("Network request failed"))},q.onabort=function(){j(new r.DOMException("Aborted","AbortError"))},q.open(ne.method,ne.url,!0),ne.credentials==="include"?q.withCredentials=!0:ne.credentials==="omit"&&(q.withCredentials=!1),"responseType"in q&&o.blob&&(q.responseType="blob"),ne.headers.forEach(function(Kr,Di){q.setRequestHeader(Di,Kr)}),ne.signal&&(ne.signal.addEventListener("abort",No),q.onreadystatechange=function(){q.readyState===4&&ne.signal.removeEventListener("abort",No)}),q.send(typeof ne._bodyInit>"u"?null:ne._bodyInit)})}return Z.polyfill=!0,t.fetch||(t.fetch=Z,t.Headers=f,t.Request=S,t.Response=z),r.Headers=f,r.Request=S,r.Response=z,r.fetch=Z,Object.defineProperty(r,"__esModule",{value:!0}),r}({})})(typeof self<"u"?self:Sc)});if(!ShadowRoot.prototype.createElement){let t=window.HTMLElement,e=window.customElements.define,r=window.customElements.get,o=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(O,S){if(O=O.toLowerCase(),this._getDefinition(O)!==void 0)throw new DOMException(`Failed to execute 'define' on 'CustomElementRegistry': the name "${O}" has already been used with this registry`);if(this._definitionsByClass.get(S)!==void 0)throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");let E=S.prototype.attributeChangedCallback,U=new Set(S.observedAttributes||[]);g(S,U,E);let z={elementClass:S,connectedCallback:S.prototype.connectedCallback,disconnectedCallback:S.prototype.disconnectedCallback,adoptedCallback:S.prototype.adoptedCallback,attributeChangedCallback:E,formAssociated:S.formAssociated,formAssociatedCallback:S.prototype.formAssociatedCallback,formDisabledCallback:S.prototype.formDisabledCallback,formResetCallback:S.prototype.formResetCallback,formStateRestoreCallback:S.prototype.formStateRestoreCallback,observedAttributes:U};this._definitionsByTag.set(O,z),this._definitionsByClass.set(S,z);let Se=r.call(o,O);Se||(Se=h(O),e.call(o,O,Se)),this===window.customElements&&(s.set(S,z),z.standInClass=Se);let Z=this._awaitingUpgrade.get(O);if(Z){this._awaitingUpgrade.delete(O);for(let v of Z)a.delete(v),x(v,z,!0)}let m=this._whenDefinedPromises.get(O);return m!==void 0&&(m.resolve(S),this._whenDefinedPromises.delete(O)),S}upgrade(){$.push(this),o.upgrade.apply(o,arguments),$.pop()}get(O){return this._definitionsByTag.get(O)?.elementClass}_getDefinition(O){return this._definitionsByTag.get(O)}whenDefined(O){let S=this._getDefinition(O);if(S!==void 0)return Promise.resolve(S.elementClass);let E=this._whenDefinedPromises.get(O);return E===void 0&&(E={},E.promise=new Promise(U=>E.resolve=U),this._whenDefinedPromises.set(O,E)),E.promise}_upgradeWhenDefined(O,S,E){let U=this._awaitingUpgrade.get(S);U||this._awaitingUpgrade.set(S,U=new Set),E?U.add(O):U.delete(O)}};let c;window.HTMLElement=function(){let S=c;if(S)return c=void 0,S;let E=s.get(this.constructor);if(!E)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return S=Reflect.construct(t,[],E.standInClass),Object.setPrototypeOf(S,this.constructor.prototype),n.set(S,E),S},window.HTMLElement.prototype=t.prototype;let p=O=>O===document||O instanceof ShadowRoot,f=O=>{let S=O.getRootNode();if(!p(S)){let E=$[$.length-1];if(E instanceof CustomElementRegistry)return E;S=E.getRootNode(),p(S)||(S=l.get(S)?.getRootNode()||document)}return S.customElements},h=O=>class{static get formAssociated(){return!0}constructor(){let E=Reflect.construct(t,[],this.constructor);Object.setPrototypeOf(E,HTMLElement.prototype);let U=f(E)||window.customElements,z=U._getDefinition(O);return z?x(E,z):a.set(E,U),E}connectedCallback(){let E=n.get(this);E?E.connectedCallback&&E.connectedCallback.apply(this,arguments):a.get(this)._upgradeWhenDefined(this,O,!0)}disconnectedCallback(){let E=n.get(this);E?E.disconnectedCallback&&E.disconnectedCallback.apply(this,arguments):a.get(this)._upgradeWhenDefined(this,O,!1)}adoptedCallback(){n.get(this)?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){let E=n.get(this);E&&E.formAssociated&&E?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){let E=n.get(this);E?.formAssociated&&E?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){let E=n.get(this);E?.formAssociated&&E?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){let E=n.get(this);E?.formAssociated&&E?.formStateRestoreCallback?.apply(this,arguments)}},g=(O,S,E)=>{if(S.size===0||E===void 0)return;let U=O.prototype.setAttribute;U&&(O.prototype.setAttribute=function(Z,m){let v=Z.toLowerCase();if(S.has(v)){let R=this.getAttribute(v);U.call(this,v,m),E.call(this,v,R,m)}else U.call(this,v,m)});let z=O.prototype.removeAttribute;z&&(O.prototype.removeAttribute=function(Z){let m=Z.toLowerCase();if(S.has(m)){let v=this.getAttribute(m);z.call(this,m),E.call(this,m,v,null)}else z.call(this,m)});let Se=O.prototype.toggleAttribute;Se&&(O.prototype.toggleAttribute=function(Z,m){let v=Z.toLowerCase();if(S.has(v)){let R=this.getAttribute(v);Se.call(this,v,m);let j=this.getAttribute(v);E.call(this,v,R,j)}else Se.call(this,v,m)})},b=O=>{let S=Object.getPrototypeOf(O);if(S!==window.HTMLElement)return S===t?Object.setPrototypeOf(O,window.HTMLElement):b(S)},x=(O,S,E=!1)=>{Object.setPrototypeOf(O,S.elementClass.prototype),n.set(O,S),c=O;try{new S.elementClass}catch{b(S.elementClass),new S.elementClass}S.attributeChangedCallback&&S.observedAttributes.forEach(U=>{O.hasAttribute(U)&&S.attributeChangedCallback.call(O,U,null,O.getAttribute(U))}),E&&S.connectedCallback&&O.isConnected&&S.connectedCallback.call(O)},C=Element.prototype.attachShadow;Element.prototype.attachShadow=function(O){let S=C.apply(this,arguments);return O.customElements&&(S.customElements=O.customElements),S};let $=[document],L=(O,S,E=void 0)=>{let U=(E?Object.getPrototypeOf(E):O.prototype)[S];O.prototype[S]=function(){$.push(this);let z=U.apply(E||this,arguments);return z!==void 0&&l.set(z,this),$.pop(),z}};L(ShadowRoot,"createElement",document),L(ShadowRoot,"importNode",document),L(Element,"insertAdjacentHTML");let I=(O,S)=>{let E=Object.getOwnPropertyDescriptor(O.prototype,S);Object.defineProperty(O.prototype,S,{...E,set(U){$.push(this),E.set.call(this,U),$.pop()}})};if(I(Element,"innerHTML"),I(ShadowRoot,"innerHTML"),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){let O=new WeakMap,S=HTMLElement.prototype.attachInternals,E=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...Z){let m=S.call(this,...Z);return O.set(m,this),m},E.forEach(Z=>{let m=window.ElementInternals.prototype,v=m[Z];m[Z]=function(...R){let j=O.get(this);if(n.get(j).formAssociated===!0)return v?.call(this,...R);throw new DOMException(`Failed to execute ${v} on 'ElementInternals': The target element is not a form-associated custom element.`)}});class U extends Array{constructor(m){super(...m),this._elements=m}get value(){return this._elements.find(m=>m.checked===!0)?.value||""}}class z{constructor(m){let v=new Map;m.forEach((R,j)=>{let ne=R.getAttribute("name"),q=v.get(ne)||[];this[+j]=R,q.push(R),v.set(ne,q)}),this.length=m.length,v.forEach((R,j)=>{R&&(R.length===1?this[j]=R[0]:this[j]=new U(R))})}namedItem(m){return this[m]}}let Se=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){let Z=Se.get.call(this,[]),m=[];for(let v of Z){let R=n.get(v);(!R||R.formAssociated===!0)&&m.push(v)}return new z(m)}})}}try{window.customElements.define("custom-element",null)}catch{let e=window.customElements.define;window.customElements.define=(r,o,n)=>{if(o!==null)try{e.bind(window.customElements)(r,o,n)}catch(a){console.info(r,o,n,a)}}}var Yi={};J(Yi,{CSSResult:()=>fr,LitElement:()=>ft,ReactiveElement:()=>et,_$LE:()=>fp,_$LH:()=>cp,adoptStyles:()=>Ho,css:()=>N,defaultConverter:()=>Vo,getCompatibleStyle:()=>eo,html:()=>_,isServer:()=>Wu,noChange:()=>wt,notEqual:()=>Vi,nothing:()=>B,render:()=>qi,supportsAdoptingStyleSheets:()=>Qr,svg:()=>lp,unsafeCSS:()=>dt});var _o=globalThis,Po=_o.ShadowRoot&&(_o.ShadyCSS===void 0||_o.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,xs=Symbol(),bs=new WeakMap,To=class{constructor(e,r,o){if(this._$cssResult$=!0,o!==xs)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=r}get styleSheet(){let e=this.o,r=this.t;if(Po&&e===void 0){let o=r!==void 0&&r.length===1;o&&(e=bs.get(r)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),o&&bs.set(r,e))}return e}toString(){return this.cssText}},vs=t=>new To(typeof t=="string"?t:t+"",void 0,xs);var Ui=(t,e)=>{if(Po)t.adoptedStyleSheets=e.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet);else for(let r of e){let o=document.createElement("style"),n=_o.litNonce;n!==void 0&&o.setAttribute("nonce",n),o.textContent=r.cssText,t.appendChild(o)}},$o=Po?t=>t:t=>t instanceof CSSStyleSheet?(e=>{let r="";for(let o of e.cssRules)r+=o.cssText;return vs(r)})(t):t;var{is:Hd,defineProperty:Vd,getOwnPropertyDescriptor:jd,getOwnPropertyNames:Kd,getOwnPropertySymbols:Gd,getPrototypeOf:Zd}=Object,Lo=globalThis,Ss=Lo.trustedTypes,qd=Ss?Ss.emptyScript:"",Yd=Lo.reactiveElementPolyfillSupport,Gr=(t,e)=>t,Zr={toAttribute(t,e){switch(e){case Boolean:t=t?qd:null;break;case Object:case Array:t=t==null?t:JSON.stringify(t)}return t},fromAttribute(t,e){let r=t;switch(e){case Boolean:r=t!==null;break;case Number:r=t===null?null:Number(t);break;case Object:case Array:try{r=JSON.parse(t)}catch{r=null}}return r}},Io=(t,e)=>!Hd(t,e),Os={attribute:!0,type:String,converter:Zr,reflect:!1,hasChanged:Io};Symbol.metadata??=Symbol("metadata"),Lo.litPropertyMetadata??=new WeakMap;var Ht=class extends HTMLElement{static addInitializer(e){this._$Ei(),(this.l??=[]).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,r=Os){if(r.state&&(r.attribute=!1),this._$Ei(),this.elementProperties.set(e,r),!r.noAccessor){let o=Symbol(),n=this.getPropertyDescriptor(e,o,r);n!==void 0&&Vd(this.prototype,e,n)}}static getPropertyDescriptor(e,r,o){let{get:n,set:a}=jd(this.prototype,e)??{get(){return this[r]},set(s){this[r]=s}};return{get(){return n?.call(this)},set(s){let l=n?.call(this);a.call(this,s),this.requestUpdate(e,l,o)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??Os}static _$Ei(){if(this.hasOwnProperty(Gr("elementProperties")))return;let e=Zd(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(Gr("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Gr("properties"))){let r=this.properties,o=[...Kd(r),...Gd(r)];for(let n of o)this.createProperty(n,r[n])}let e=this[Symbol.metadata];if(e!==null){let r=litPropertyMetadata.get(e);if(r!==void 0)for(let[o,n]of r)this.elementProperties.set(o,n)}this._$Eh=new Map;for(let[r,o]of this.elementProperties){let n=this._$Eu(r,o);n!==void 0&&this._$Eh.set(n,r)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){let r=[];if(Array.isArray(e)){let o=new Set(e.flat(1/0).reverse());for(let n of o)r.unshift($o(n))}else e!==void 0&&r.push($o(e));return r}static _$Eu(e,r){let o=r.attribute;return o===!1?void 0:typeof o=="string"?o:typeof e=="string"?e.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(e=>this.enableUpdating=e),this._$AL=new Map,this._$ES(),this.requestUpdate(),this.constructor.l?.forEach(e=>e(this))}addController(e){(this._$E_??=new Set).add(e),this.renderRoot!==void 0&&this.isConnected&&e.hostConnected?.()}removeController(e){this._$E_?.delete(e)}_$ES(){let e=new Map,r=this.constructor.elementProperties;for(let o of r.keys())this.hasOwnProperty(o)&&(e.set(o,this[o]),delete this[o]);e.size>0&&(this._$Ep=e)}createRenderRoot(){let e=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return Ui(e,this.constructor.elementStyles),e}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$E_?.forEach(e=>e.hostConnected?.())}enableUpdating(e){}disconnectedCallback(){this._$E_?.forEach(e=>e.hostDisconnected?.())}attributeChangedCallback(e,r,o){this._$AK(e,o)}_$EO(e,r){let o=this.constructor.elementProperties.get(e),n=this.constructor._$Eu(e,o);if(n!==void 0&&o.reflect===!0){let a=(o.converter?.toAttribute!==void 0?o.converter:Zr).toAttribute(r,o.type);this._$Em=e,a==null?this.removeAttribute(n):this.setAttribute(n,a),this._$Em=null}}_$AK(e,r){let o=this.constructor,n=o._$Eh.get(e);if(n!==void 0&&this._$Em!==n){let a=o.getPropertyOptions(n),s=typeof a.converter=="function"?{fromAttribute:a.converter}:a.converter?.fromAttribute!==void 0?a.converter:Zr;this._$Em=n,this[n]=s.fromAttribute(r,a.type),this._$Em=null}}requestUpdate(e,r,o,n=!1,a){if(e!==void 0){if(o??=this.constructor.getPropertyOptions(e),!(o.hasChanged??Io)(n?a:this[e],r))return;this.C(e,r,o)}this.isUpdatePending===!1&&(this._$Eg=this._$EP())}C(e,r,o){this._$AL.has(e)||this._$AL.set(e,r),o.reflect===!0&&this._$Em!==e&&(this._$Ej??=new Set).add(e)}async _$EP(){this.isUpdatePending=!0;try{await this._$Eg}catch(r){Promise.reject(r)}let e=this.scheduleUpdate();return e!=null&&await e,!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 o=this.constructor.elementProperties;if(o.size>0)for(let[n,a]of o)a.wrapped!==!0||this._$AL.has(n)||this[n]===void 0||this.C(n,this[n],a)}let e=!1,r=this._$AL;try{e=this.shouldUpdate(r),e?(this.willUpdate(r),this._$E_?.forEach(o=>o.hostUpdate?.()),this.update(r)):this._$ET()}catch(o){throw e=!1,this._$ET(),o}e&&this._$AE(r)}willUpdate(e){}_$AE(e){this._$E_?.forEach(r=>r.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$ET(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$Eg}shouldUpdate(e){return!0}update(e){this._$Ej&&=this._$Ej.forEach(r=>this._$EO(r,this[r])),this._$ET()}updated(e){}firstUpdated(e){}};Ht.elementStyles=[],Ht.shadowRootOptions={mode:"open"},Ht[Gr("elementProperties")]=new Map,Ht[Gr("finalized")]=new Map,Yd?.({ReactiveElement:Ht}),(Lo.reactiveElementVersions??=[]).push("2.0.2");var Fi=globalThis,ko=Fi.trustedTypes,Cs=ko?ko.createPolicy("lit-html",{createHTML:t=>t}):void 0,zi="$lit$",ct=`lit$${(Math.random()+"").slice(9)}$`,Wi="?"+ct,Xd=`<${Wi}>`,Kt=document,Do=()=>Kt.createComment(""),Yr=t=>t===null||typeof t!="object"&&typeof t!="function",_s=Array.isArray,Ts=t=>_s(t)||typeof t?.[Symbol.iterator]=="function",Bi=`[
|
|
2
|
+
\f\r]`,qr=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Es=/-->/g,ws=/>/g,Vt=RegExp(`>|${Bi}(?:([^\\s"'>=/]+)(${Bi}*=${Bi}*(?:[^
|
|
3
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),As=/'/g,Rs=/"/g,Ps=/^(?:script|style|textarea|title)$/i,$s=t=>(e,...r)=>({_$litType$:t,strings:e,values:r}),Ls=$s(1),Is=$s(2),ke=Symbol.for("lit-noChange"),ae=Symbol.for("lit-nothing"),Ns=new WeakMap,jt=Kt.createTreeWalker(Kt,129);function ks(t,e){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return Cs!==void 0?Cs.createHTML(e):e}var Ds=(t,e)=>{let r=t.length-1,o=[],n,a=e===2?"<svg>":"",s=qr;for(let l=0;l<r;l++){let c=t[l],p,f,h=-1,g=0;for(;g<c.length&&(s.lastIndex=g,f=s.exec(c),f!==null);)g=s.lastIndex,s===qr?f[1]==="!--"?s=Es:f[1]!==void 0?s=ws:f[2]!==void 0?(Ps.test(f[2])&&(n=RegExp("</"+f[2],"g")),s=Vt):f[3]!==void 0&&(s=Vt):s===Vt?f[0]===">"?(s=n??qr,h=-1):f[1]===void 0?h=-2:(h=s.lastIndex-f[2].length,p=f[1],s=f[3]===void 0?Vt:f[3]==='"'?Rs:As):s===Rs||s===As?s=Vt:s===Es||s===ws?s=qr:(s=Vt,n=void 0);let b=s===Vt&&t[l+1].startsWith("/>")?" ":"";a+=s===qr?c+Xd:h>=0?(o.push(p),c.slice(0,h)+zi+c.slice(h)+ct+b):c+ct+(h===-2?l:b)}return[ks(t,a+(t[r]||"<?>")+(e===2?"</svg>":"")),o]},Xr=class t{constructor({strings:e,_$litType$:r},o){let n;this.parts=[];let a=0,s=0,l=e.length-1,c=this.parts,[p,f]=Ds(e,r);if(this.el=t.createElement(p,o),jt.currentNode=this.el.content,r===2){let h=this.el.content.firstChild;h.replaceWith(...h.childNodes)}for(;(n=jt.nextNode())!==null&&c.length<l;){if(n.nodeType===1){if(n.hasAttributes())for(let h of n.getAttributeNames())if(h.endsWith(zi)){let g=f[s++],b=n.getAttribute(h).split(ct),x=/([.?@])?(.*)/.exec(g);c.push({type:1,index:a,name:x[2],strings:b,ctor:x[1]==="."?Uo:x[1]==="?"?Bo:x[1]==="@"?Fo:Zt}),n.removeAttribute(h)}else h.startsWith(ct)&&(c.push({type:6,index:a}),n.removeAttribute(h));if(Ps.test(n.tagName)){let h=n.textContent.split(ct),g=h.length-1;if(g>0){n.textContent=ko?ko.emptyScript:"";for(let b=0;b<g;b++)n.append(h[b],Do()),jt.nextNode(),c.push({type:2,index:++a});n.append(h[g],Do())}}}else if(n.nodeType===8)if(n.data===Wi)c.push({type:2,index:a});else{let h=-1;for(;(h=n.data.indexOf(ct,h+1))!==-1;)c.push({type:7,index:a}),h+=ct.length-1}a++}}static createElement(e,r){let o=Kt.createElement("template");return o.innerHTML=e,o}};function Gt(t,e,r=t,o){if(e===ke)return e;let n=o!==void 0?r._$Co?.[o]:r._$Cl,a=Yr(e)?void 0:e._$litDirective$;return n?.constructor!==a&&(n?._$AO?.(!1),a===void 0?n=void 0:(n=new a(t),n._$AT(t,r,o)),o!==void 0?(r._$Co??=[])[o]=n:r._$Cl=n),n!==void 0&&(e=Gt(t,n._$AS(t,e.values),n,o)),e}var Mo=class{constructor(e,r){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=r}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){let{el:{content:r},parts:o}=this._$AD,n=(e?.creationScope??Kt).importNode(r,!0);jt.currentNode=n;let a=jt.nextNode(),s=0,l=0,c=o[0];for(;c!==void 0;){if(s===c.index){let p;c.type===2?p=new Jr(a,a.nextSibling,this,e):c.type===1?p=new c.ctor(a,c.name,c.strings,this,e):c.type===6&&(p=new zo(a,this,e)),this._$AV.push(p),c=o[++l]}s!==c?.index&&(a=jt.nextNode(),s++)}return jt.currentNode=Kt,n}p(e){let r=0;for(let o of this._$AV)o!==void 0&&(o.strings!==void 0?(o._$AI(e,o,r),r+=o.strings.length-2):o._$AI(e[r])),r++}},Jr=class t{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,r,o,n){this.type=2,this._$AH=ae,this._$AN=void 0,this._$AA=e,this._$AB=r,this._$AM=o,this.options=n,this._$Cv=n?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode,r=this._$AM;return r!==void 0&&e?.nodeType===11&&(e=r.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,r=this){e=Gt(this,e,r),Yr(e)?e===ae||e==null||e===""?(this._$AH!==ae&&this._$AR(),this._$AH=ae):e!==this._$AH&&e!==ke&&this._(e):e._$litType$!==void 0?this.g(e):e.nodeType!==void 0?this.$(e):Ts(e)?this.T(e):this._(e)}k(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}$(e){this._$AH!==e&&(this._$AR(),this._$AH=this.k(e))}_(e){this._$AH!==ae&&Yr(this._$AH)?this._$AA.nextSibling.data=e:this.$(Kt.createTextNode(e)),this._$AH=e}g(e){let{values:r,_$litType$:o}=e,n=typeof o=="number"?this._$AC(e):(o.el===void 0&&(o.el=Xr.createElement(ks(o.h,o.h[0]),this.options)),o);if(this._$AH?._$AD===n)this._$AH.p(r);else{let a=new Mo(n,this),s=a.u(this.options);a.p(r),this.$(s),this._$AH=a}}_$AC(e){let r=Ns.get(e.strings);return r===void 0&&Ns.set(e.strings,r=new Xr(e)),r}T(e){_s(this._$AH)||(this._$AH=[],this._$AR());let r=this._$AH,o,n=0;for(let a of e)n===r.length?r.push(o=new t(this.k(Do()),this.k(Do()),this,this.options)):o=r[n],o._$AI(a),n++;n<r.length&&(this._$AR(o&&o._$AB.nextSibling,n),r.length=n)}_$AR(e=this._$AA.nextSibling,r){for(this._$AP?.(!1,!0,r);e&&e!==this._$AB;){let o=e.nextSibling;e.remove(),e=o}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e))}},Zt=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,r,o,n,a){this.type=1,this._$AH=ae,this._$AN=void 0,this.element=e,this.name=r,this._$AM=n,this.options=a,o.length>2||o[0]!==""||o[1]!==""?(this._$AH=Array(o.length-1).fill(new String),this.strings=o):this._$AH=ae}_$AI(e,r=this,o,n){let a=this.strings,s=!1;if(a===void 0)e=Gt(this,e,r,0),s=!Yr(e)||e!==this._$AH&&e!==ke,s&&(this._$AH=e);else{let l=e,c,p;for(e=a[0],c=0;c<a.length-1;c++)p=Gt(this,l[o+c],r,c),p===ke&&(p=this._$AH[c]),s||=!Yr(p)||p!==this._$AH[c],p===ae?e=ae:e!==ae&&(e+=(p??"")+a[c+1]),this._$AH[c]=p}s&&!n&&this.O(e)}O(e){e===ae?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},Uo=class extends Zt{constructor(){super(...arguments),this.type=3}O(e){this.element[this.name]=e===ae?void 0:e}},Bo=class extends Zt{constructor(){super(...arguments),this.type=4}O(e){this.element.toggleAttribute(this.name,!!e&&e!==ae)}},Fo=class extends Zt{constructor(e,r,o,n,a){super(e,r,o,n,a),this.type=5}_$AI(e,r=this){if((e=Gt(this,e,r,0)??ae)===ke)return;let o=this._$AH,n=e===ae&&o!==ae||e.capture!==o.capture||e.once!==o.once||e.passive!==o.passive,a=e!==ae&&(o===ae||n);n&&this.element.removeEventListener(this.name,this,o),a&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,e):this._$AH.handleEvent(e)}},zo=class{constructor(e,r,o){this.element=e,this.type=6,this._$AN=void 0,this._$AM=r,this.options=o}get _$AU(){return this._$AM._$AU}_$AI(e){Gt(this,e)}},Ms={j:zi,P:ct,A:Wi,C:1,M:Ds,L:Mo,R:Ts,V:Gt,D:Jr,I:Zt,H:Bo,N:Fo,U:Uo,B:zo},Jd=Fi.litHtmlPolyfillSupport;Jd?.(Xr,Jr),(Fi.litHtmlVersions??=[]).push("3.1.0");var Wo=globalThis,Qr=Wo.ShadowRoot&&(Wo.ShadyCSS===void 0||Wo.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Hi=Symbol(),Us=new WeakMap,fr=class{constructor(e,r,o){if(this._$cssResult$=!0,o!==Hi)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=r}get styleSheet(){let e=this.o,r=this.t;if(Qr&&e===void 0){let o=r!==void 0&&r.length===1;o&&(e=Us.get(r)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),o&&Us.set(r,e))}return e}toString(){return this.cssText}},dt=t=>new fr(typeof t=="string"?t:t+"",void 0,Hi),N=(t,...e)=>{let r=t.length===1?t[0]:e.reduce((o,n,a)=>o+(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)+t[a+1],t[0]);return new fr(r,t,Hi)},Ho=(t,e)=>{if(Qr)t.adoptedStyleSheets=e.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet);else for(let r of e){let o=document.createElement("style"),n=Wo.litNonce;n!==void 0&&o.setAttribute("nonce",n),o.textContent=r.cssText,t.appendChild(o)}},eo=Qr?t=>t:t=>t instanceof CSSStyleSheet?(e=>{let r="";for(let o of e.cssRules)r+=o.cssText;return dt(r)})(t):t;var{is:Qd,defineProperty:ep,getOwnPropertyDescriptor:tp,getOwnPropertyNames:rp,getOwnPropertySymbols:op,getPrototypeOf:ip}=Object,jo=globalThis,Bs=jo.trustedTypes,np=Bs?Bs.emptyScript:"",ap=jo.reactiveElementPolyfillSupport,to=(t,e)=>t,Vo={toAttribute(t,e){switch(e){case Boolean:t=t?np:null;break;case Object:case Array:t=t==null?t:JSON.stringify(t)}return t},fromAttribute(t,e){let r=t;switch(e){case Boolean:r=t!==null;break;case Number:r=t===null?null:Number(t);break;case Object:case Array:try{r=JSON.parse(t)}catch{r=null}}return r}},Vi=(t,e)=>!Qd(t,e),Fs={attribute:!0,type:String,converter:Vo,reflect:!1,hasChanged:Vi};Symbol.metadata??=Symbol("metadata"),jo.litPropertyMetadata??=new WeakMap;var et=class extends HTMLElement{static addInitializer(e){this._$Ei(),(this.l??=[]).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,r=Fs){if(r.state&&(r.attribute=!1),this._$Ei(),this.elementProperties.set(e,r),!r.noAccessor){let o=Symbol(),n=this.getPropertyDescriptor(e,o,r);n!==void 0&&ep(this.prototype,e,n)}}static getPropertyDescriptor(e,r,o){let{get:n,set:a}=tp(this.prototype,e)??{get(){return this[r]},set(s){this[r]=s}};return{get(){return n?.call(this)},set(s){let l=n?.call(this);a.call(this,s),this.requestUpdate(e,l,o)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??Fs}static _$Ei(){if(this.hasOwnProperty(to("elementProperties")))return;let e=ip(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(to("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(to("properties"))){let r=this.properties,o=[...rp(r),...op(r)];for(let n of o)this.createProperty(n,r[n])}let e=this[Symbol.metadata];if(e!==null){let r=litPropertyMetadata.get(e);if(r!==void 0)for(let[o,n]of r)this.elementProperties.set(o,n)}this._$Eh=new Map;for(let[r,o]of this.elementProperties){let n=this._$Eu(r,o);n!==void 0&&this._$Eh.set(n,r)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){let r=[];if(Array.isArray(e)){let o=new Set(e.flat(1/0).reverse());for(let n of o)r.unshift(eo(n))}else e!==void 0&&r.push(eo(e));return r}static _$Eu(e,r){let o=r.attribute;return o===!1?void 0:typeof o=="string"?o:typeof e=="string"?e.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(e=>this.enableUpdating=e),this._$AL=new Map,this._$ES(),this.requestUpdate(),this.constructor.l?.forEach(e=>e(this))}addController(e){(this._$E_??=new Set).add(e),this.renderRoot!==void 0&&this.isConnected&&e.hostConnected?.()}removeController(e){this._$E_?.delete(e)}_$ES(){let e=new Map,r=this.constructor.elementProperties;for(let o of r.keys())this.hasOwnProperty(o)&&(e.set(o,this[o]),delete this[o]);e.size>0&&(this._$Ep=e)}createRenderRoot(){let e=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return Ho(e,this.constructor.elementStyles),e}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$E_?.forEach(e=>e.hostConnected?.())}enableUpdating(e){}disconnectedCallback(){this._$E_?.forEach(e=>e.hostDisconnected?.())}attributeChangedCallback(e,r,o){this._$AK(e,o)}_$EO(e,r){let o=this.constructor.elementProperties.get(e),n=this.constructor._$Eu(e,o);if(n!==void 0&&o.reflect===!0){let a=(o.converter?.toAttribute!==void 0?o.converter:Vo).toAttribute(r,o.type);this._$Em=e,a==null?this.removeAttribute(n):this.setAttribute(n,a),this._$Em=null}}_$AK(e,r){let o=this.constructor,n=o._$Eh.get(e);if(n!==void 0&&this._$Em!==n){let a=o.getPropertyOptions(n),s=typeof a.converter=="function"?{fromAttribute:a.converter}:a.converter?.fromAttribute!==void 0?a.converter:Vo;this._$Em=n,this[n]=s.fromAttribute(r,a.type),this._$Em=null}}requestUpdate(e,r,o,n=!1,a){if(e!==void 0){if(o??=this.constructor.getPropertyOptions(e),!(o.hasChanged??Vi)(n?a:this[e],r))return;this.C(e,r,o)}this.isUpdatePending===!1&&(this._$Eg=this._$EP())}C(e,r,o){this._$AL.has(e)||this._$AL.set(e,r),o.reflect===!0&&this._$Em!==e&&(this._$Ej??=new Set).add(e)}async _$EP(){this.isUpdatePending=!0;try{await this._$Eg}catch(r){Promise.reject(r)}let e=this.scheduleUpdate();return e!=null&&await e,!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 o=this.constructor.elementProperties;if(o.size>0)for(let[n,a]of o)a.wrapped!==!0||this._$AL.has(n)||this[n]===void 0||this.C(n,this[n],a)}let e=!1,r=this._$AL;try{e=this.shouldUpdate(r),e?(this.willUpdate(r),this._$E_?.forEach(o=>o.hostUpdate?.()),this.update(r)):this._$ET()}catch(o){throw e=!1,this._$ET(),o}e&&this._$AE(r)}willUpdate(e){}_$AE(e){this._$E_?.forEach(r=>r.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$ET(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$Eg}shouldUpdate(e){return!0}update(e){this._$Ej&&=this._$Ej.forEach(r=>this._$EO(r,this[r])),this._$ET()}updated(e){}firstUpdated(e){}};et.elementStyles=[],et.shadowRootOptions={mode:"open"},et[to("elementProperties")]=new Map,et[to("finalized")]=new Map,ap?.({ReactiveElement:et}),(jo.reactiveElementVersions??=[]).push("2.0.2");var Ki=globalThis,Ko=Ki.trustedTypes,zs=Ko?Ko.createPolicy("lit-html",{createHTML:t=>t}):void 0,Gi="$lit$",pt=`lit$${(Math.random()+"").slice(9)}$`,Zi="?"+pt,sp=`<${Zi}>`,Xt=document,oo=()=>Xt.createComment(""),io=t=>t===null||typeof t!="object"&&typeof t!="function",Gs=Array.isArray,Zs=t=>Gs(t)||typeof t?.[Symbol.iterator]=="function",ji=`[
|
|
4
|
+
\f\r]`,ro=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Ws=/-->/g,Hs=/>/g,qt=RegExp(`>|${ji}(?:([^\\s"'>=/]+)(${ji}*=${ji}*(?:[^
|
|
5
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),Vs=/'/g,js=/"/g,qs=/^(?:script|style|textarea|title)$/i,Ys=t=>(e,...r)=>({_$litType$:t,strings:e,values:r}),_=Ys(1),lp=Ys(2),wt=Symbol.for("lit-noChange"),B=Symbol.for("lit-nothing"),Ks=new WeakMap,Yt=Xt.createTreeWalker(Xt,129);function Xs(t,e){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return zs!==void 0?zs.createHTML(e):e}var Js=(t,e)=>{let r=t.length-1,o=[],n,a=e===2?"<svg>":"",s=ro;for(let l=0;l<r;l++){let c=t[l],p,f,h=-1,g=0;for(;g<c.length&&(s.lastIndex=g,f=s.exec(c),f!==null);)g=s.lastIndex,s===ro?f[1]==="!--"?s=Ws:f[1]!==void 0?s=Hs:f[2]!==void 0?(qs.test(f[2])&&(n=RegExp("</"+f[2],"g")),s=qt):f[3]!==void 0&&(s=qt):s===qt?f[0]===">"?(s=n??ro,h=-1):f[1]===void 0?h=-2:(h=s.lastIndex-f[2].length,p=f[1],s=f[3]===void 0?qt:f[3]==='"'?js:Vs):s===js||s===Vs?s=qt:s===Ws||s===Hs?s=ro:(s=qt,n=void 0);let b=s===qt&&t[l+1].startsWith("/>")?" ":"";a+=s===ro?c+sp:h>=0?(o.push(p),c.slice(0,h)+Gi+c.slice(h)+pt+b):c+pt+(h===-2?l:b)}return[Xs(t,a+(t[r]||"<?>")+(e===2?"</svg>":"")),o]},no=class t{constructor({strings:e,_$litType$:r},o){let n;this.parts=[];let a=0,s=0,l=e.length-1,c=this.parts,[p,f]=Js(e,r);if(this.el=t.createElement(p,o),Yt.currentNode=this.el.content,r===2){let h=this.el.content.firstChild;h.replaceWith(...h.childNodes)}for(;(n=Yt.nextNode())!==null&&c.length<l;){if(n.nodeType===1){if(n.hasAttributes())for(let h of n.getAttributeNames())if(h.endsWith(Gi)){let g=f[s++],b=n.getAttribute(h).split(pt),x=/([.?@])?(.*)/.exec(g);c.push({type:1,index:a,name:x[2],strings:b,ctor:x[1]==="."?Zo:x[1]==="?"?qo:x[1]==="@"?Yo:Qt}),n.removeAttribute(h)}else h.startsWith(pt)&&(c.push({type:6,index:a}),n.removeAttribute(h));if(qs.test(n.tagName)){let h=n.textContent.split(pt),g=h.length-1;if(g>0){n.textContent=Ko?Ko.emptyScript:"";for(let b=0;b<g;b++)n.append(h[b],oo()),Yt.nextNode(),c.push({type:2,index:++a});n.append(h[g],oo())}}}else if(n.nodeType===8)if(n.data===Zi)c.push({type:2,index:a});else{let h=-1;for(;(h=n.data.indexOf(pt,h+1))!==-1;)c.push({type:7,index:a}),h+=pt.length-1}a++}}static createElement(e,r){let o=Xt.createElement("template");return o.innerHTML=e,o}};function Jt(t,e,r=t,o){if(e===wt)return e;let n=o!==void 0?r._$Co?.[o]:r._$Cl,a=io(e)?void 0:e._$litDirective$;return n?.constructor!==a&&(n?._$AO?.(!1),a===void 0?n=void 0:(n=new a(t),n._$AT(t,r,o)),o!==void 0?(r._$Co??=[])[o]=n:r._$Cl=n),n!==void 0&&(e=Jt(t,n._$AS(t,e.values),n,o)),e}var Go=class{constructor(e,r){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=r}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){let{el:{content:r},parts:o}=this._$AD,n=(e?.creationScope??Xt).importNode(r,!0);Yt.currentNode=n;let a=Yt.nextNode(),s=0,l=0,c=o[0];for(;c!==void 0;){if(s===c.index){let p;c.type===2?p=new ur(a,a.nextSibling,this,e):c.type===1?p=new c.ctor(a,c.name,c.strings,this,e):c.type===6&&(p=new Xo(a,this,e)),this._$AV.push(p),c=o[++l]}s!==c?.index&&(a=Yt.nextNode(),s++)}return Yt.currentNode=Xt,n}p(e){let r=0;for(let o of this._$AV)o!==void 0&&(o.strings!==void 0?(o._$AI(e,o,r),r+=o.strings.length-2):o._$AI(e[r])),r++}},ur=class t{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,r,o,n){this.type=2,this._$AH=B,this._$AN=void 0,this._$AA=e,this._$AB=r,this._$AM=o,this.options=n,this._$Cv=n?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode,r=this._$AM;return r!==void 0&&e?.nodeType===11&&(e=r.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,r=this){e=Jt(this,e,r),io(e)?e===B||e==null||e===""?(this._$AH!==B&&this._$AR(),this._$AH=B):e!==this._$AH&&e!==wt&&this._(e):e._$litType$!==void 0?this.g(e):e.nodeType!==void 0?this.$(e):Zs(e)?this.T(e):this._(e)}k(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}$(e){this._$AH!==e&&(this._$AR(),this._$AH=this.k(e))}_(e){this._$AH!==B&&io(this._$AH)?this._$AA.nextSibling.data=e:this.$(Xt.createTextNode(e)),this._$AH=e}g(e){let{values:r,_$litType$:o}=e,n=typeof o=="number"?this._$AC(e):(o.el===void 0&&(o.el=no.createElement(Xs(o.h,o.h[0]),this.options)),o);if(this._$AH?._$AD===n)this._$AH.p(r);else{let a=new Go(n,this),s=a.u(this.options);a.p(r),this.$(s),this._$AH=a}}_$AC(e){let r=Ks.get(e.strings);return r===void 0&&Ks.set(e.strings,r=new no(e)),r}T(e){Gs(this._$AH)||(this._$AH=[],this._$AR());let r=this._$AH,o,n=0;for(let a of e)n===r.length?r.push(o=new t(this.k(oo()),this.k(oo()),this,this.options)):o=r[n],o._$AI(a),n++;n<r.length&&(this._$AR(o&&o._$AB.nextSibling,n),r.length=n)}_$AR(e=this._$AA.nextSibling,r){for(this._$AP?.(!1,!0,r);e&&e!==this._$AB;){let o=e.nextSibling;e.remove(),e=o}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e))}},Qt=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,r,o,n,a){this.type=1,this._$AH=B,this._$AN=void 0,this.element=e,this.name=r,this._$AM=n,this.options=a,o.length>2||o[0]!==""||o[1]!==""?(this._$AH=Array(o.length-1).fill(new String),this.strings=o):this._$AH=B}_$AI(e,r=this,o,n){let a=this.strings,s=!1;if(a===void 0)e=Jt(this,e,r,0),s=!io(e)||e!==this._$AH&&e!==wt,s&&(this._$AH=e);else{let l=e,c,p;for(e=a[0],c=0;c<a.length-1;c++)p=Jt(this,l[o+c],r,c),p===wt&&(p=this._$AH[c]),s||=!io(p)||p!==this._$AH[c],p===B?e=B:e!==B&&(e+=(p??"")+a[c+1]),this._$AH[c]=p}s&&!n&&this.O(e)}O(e){e===B?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},Zo=class extends Qt{constructor(){super(...arguments),this.type=3}O(e){this.element[this.name]=e===B?void 0:e}},qo=class extends Qt{constructor(){super(...arguments),this.type=4}O(e){this.element.toggleAttribute(this.name,!!e&&e!==B)}},Yo=class extends Qt{constructor(e,r,o,n,a){super(e,r,o,n,a),this.type=5}_$AI(e,r=this){if((e=Jt(this,e,r,0)??B)===wt)return;let o=this._$AH,n=e===B&&o!==B||e.capture!==o.capture||e.once!==o.once||e.passive!==o.passive,a=e!==B&&(o===B||n);n&&this.element.removeEventListener(this.name,this,o),a&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,e):this._$AH.handleEvent(e)}},Xo=class{constructor(e,r,o){this.element=e,this.type=6,this._$AN=void 0,this._$AM=r,this.options=o}get _$AU(){return this._$AM._$AU}_$AI(e){Jt(this,e)}},cp={j:Gi,P:pt,A:Zi,C:1,M:Js,L:Go,R:Zs,V:Jt,D:ur,I:Qt,H:qo,N:Yo,U:Zo,B:Xo},dp=Ki.litHtmlPolyfillSupport;dp?.(no,ur),(Ki.litHtmlVersions??=[]).push("3.1.0");var qi=(t,e,r)=>{let o=r?.renderBefore??e,n=o._$litPart$;if(n===void 0){let a=r?.renderBefore??null;o._$litPart$=n=new ur(e.insertBefore(oo(),a),a,void 0,r??{})}return n._$AI(t),n};var ft=class extends et{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){let e=super.createRenderRoot();return this.renderOptions.renderBefore??=e.firstChild,e}update(e){let r=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=qi(r,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return wt}};ft._$litElement$=!0,ft.finalized=!0,globalThis.litElementHydrateSupport?.({LitElement:ft});var pp=globalThis.litElementPolyfillSupport;pp?.({LitElement:ft});var fp={_$AK:(t,e,r)=>{t._$AK(e,r)},_$AL:t=>t._$AL};(globalThis.litElementVersions??=[]).push("4.0.2");var Wu=!1;var en={};J(en,{customElement:()=>up,eventOptions:()=>hr,property:()=>y,query:()=>W,queryAll:()=>Xi,queryAssignedElements:()=>Ji,queryAssignedNodes:()=>Qi,queryAsync:()=>yp,standardProperty:()=>Qs,state:()=>K});var up=t=>(e,r)=>{r!==void 0?r.addInitializer(()=>{customElements.define(t,e)}):customElements.define(t,e)};var hp={attribute:!0,type:String,converter:Zr,reflect:!1,hasChanged:Io},Qs=(t=hp,e,r)=>{let{kind:o,metadata:n}=r,a=globalThis.litPropertyMetadata.get(n);if(a===void 0&&globalThis.litPropertyMetadata.set(n,a=new Map),a.set(r.name,t),o==="accessor"){let{name:s}=r;return{set(l){let c=e.get.call(this);e.set.call(this,l),this.requestUpdate(s,c,t)},init(l){return l!==void 0&&this.C(s,void 0,t),l}}}if(o==="setter"){let{name:s}=r;return function(l){let c=this[s];e.call(this,l),this.requestUpdate(s,c,t)}}throw Error("Unsupported decorator location: "+o)};function y(t){return(e,r)=>typeof r=="object"?Qs(t,e,r):((o,n,a)=>{let s=n.hasOwnProperty(a);return n.constructor.createProperty(a,s?{...o,wrapped:!0}:o),s?Object.getOwnPropertyDescriptor(n,a):void 0})(t,e,r)}function K(t){return y({...t,state:!0,attribute:!1})}function hr(t){return(e,r)=>{let o=typeof e=="function"?e:e[r];Object.assign(o,t)}}var Ge=(t,e,r)=>(r.configurable=!0,r.enumerable=!0,Reflect.decorate&&typeof e!="object"&&Object.defineProperty(t,e,r),r);function W(t,e){return(r,o,n)=>{let a=s=>s.renderRoot?.querySelector(t)??null;if(e){let{get:s,set:l}=typeof o=="object"?r:n??(()=>{let c=Symbol();return{get(){return this[c]},set(p){this[c]=p}}})();return Ge(r,o,{get(){let c=s.call(this);return c===void 0&&(c=a(this),(c!==null||this.hasUpdated)&&l.call(this,c)),c}})}return Ge(r,o,{get(){return a(this)}})}}var mp;function Xi(t){return(e,r)=>Ge(e,r,{get(){return(this.renderRoot??(mp??=document.createDocumentFragment())).querySelectorAll(t)}})}function yp(t){return(e,r)=>Ge(e,r,{async get(){return await this.updateComplete,this.renderRoot?.querySelector(t)??null}})}function Ji(t){return(e,r)=>{let{slot:o,selector:n}=t??{},a="slot"+(o?`[name=${o}]`:":not([name])");return Ge(e,r,{get(){let s=this.renderRoot?.querySelector(a),l=s?.assignedElements(t)??[];return n===void 0?l:l.filter(c=>c.matches(n))}})}}function Qi(t){return(e,r)=>{let{slot:o}=t??{},n="slot"+(o?`[name=${o}]`:":not([name])");return Ge(e,r,{get(){return this.renderRoot?.querySelector(n)?.assignedNodes(t)??[]}})}}var tn={};J(tn,{repeat:()=>yr});var At={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},Rt=t=>(...e)=>({_$litDirective$:t,values:e}),tt=class{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,r,o){this._$Ct=e,this._$AM=r,this._$Ci=o}_$AS(e,r){return this.update(e,r)}update(e,r){return this.render(...r)}};var{D:gp}=Ms;var el=()=>document.createComment(""),mr=(t,e,r)=>{let o=t._$AA.parentNode,n=e===void 0?t._$AB:e._$AA;if(r===void 0){let a=o.insertBefore(el(),n),s=o.insertBefore(el(),n);r=new gp(a,s,t,t.options)}else{let a=r._$AB.nextSibling,s=r._$AM,l=s!==t;if(l){let c;r._$AQ?.(t),r._$AM=t,r._$AP!==void 0&&(c=t._$AU)!==s._$AU&&r._$AP(c)}if(a!==n||l){let c=r._$AA;for(;c!==a;){let p=c.nextSibling;o.insertBefore(c,n),c=p}}}return r},Nt=(t,e,r=t)=>(t._$AI(e,r),t),bp={},tl=(t,e=bp)=>t._$AH=e,rl=t=>t._$AH,Jo=t=>{t._$AP?.(!1,!0);let e=t._$AA,r=t._$AB.nextSibling;for(;e!==r;){let o=e.nextSibling;e.remove(),e=o}};var ol=(t,e,r)=>{let o=new Map;for(let n=e;n<=r;n++)o.set(t[n],n);return o},yr=Rt(class extends tt{constructor(t){if(super(t),t.type!==At.CHILD)throw Error("repeat() can only be used in text expressions")}ht(t,e,r){let o;r===void 0?r=e:e!==void 0&&(o=e);let n=[],a=[],s=0;for(let l of t)n[s]=o?o(l,s):s,a[s]=r(l,s),s++;return{values:a,keys:n}}render(t,e,r){return this.ht(t,e,r).values}update(t,[e,r,o]){let n=rl(t),{values:a,keys:s}=this.ht(e,r,o);if(!Array.isArray(n))return this.dt=s,a;let l=this.dt??=[],c=[],p,f,h=0,g=n.length-1,b=0,x=a.length-1;for(;h<=g&&b<=x;)if(n[h]===null)h++;else if(n[g]===null)g--;else if(l[h]===s[b])c[b]=Nt(n[h],a[b]),h++,b++;else if(l[g]===s[x])c[x]=Nt(n[g],a[x]),g--,x--;else if(l[h]===s[x])c[x]=Nt(n[h],a[x]),mr(t,c[x+1],n[h]),h++,x--;else if(l[g]===s[b])c[b]=Nt(n[g],a[b]),mr(t,n[h],n[g]),g--,b++;else if(p===void 0&&(p=ol(s,b,x),f=ol(l,h,g)),p.has(l[h]))if(p.has(l[g])){let C=f.get(s[b]),$=C!==void 0?n[C]:null;if($===null){let L=mr(t,n[h]);Nt(L,a[b]),c[b]=L}else c[b]=Nt($,a[b]),mr(t,n[h],$),n[C]=null;b++}else Jo(n[g]),g--;else Jo(n[h]),h++;for(;b<=x;){let C=mr(t,c[x+1]);Nt(C,a[b]),c[b++]=C}for(;h<=g;){let C=n[h++];C!==null&&Jo(C)}return this.dt=s,tl(t,c),ke}});var rn={};J(rn,{classMap:()=>Ee});var Ee=Rt(class extends tt{constructor(t){if(super(t),t.type!==At.ATTRIBUTE||t.name!=="class"||t.strings?.length>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return" "+Object.keys(t).filter(e=>t[e]).join(" ")+" "}update(t,[e]){if(this.it===void 0){this.it=new Set,t.strings!==void 0&&(this.st=new Set(t.strings.join(" ").split(/\s/).filter(o=>o!=="")));for(let o in e)e[o]&&!this.st?.has(o)&&this.it.add(o);return this.render(e)}let r=t.element.classList;for(let o of this.it)o in e||(r.remove(o),this.it.delete(o));for(let o in e){let n=!!e[o];n===this.it.has(o)||this.st?.has(o)||(n?(r.add(o),this.it.add(o)):(r.remove(o),this.it.delete(o)))}return ke}});var on={};J(on,{styleMap:()=>vp});var il="important",xp=" !"+il,vp=Rt(class extends tt{constructor(t){if(super(t),t.type!==At.ATTRIBUTE||t.name!=="style"||t.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(t){return Object.keys(t).reduce((e,r)=>{let o=t[r];return o==null?e:e+`${r=r.includes("-")?r:r.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${o};`},"")}update(t,[e]){let{style:r}=t.element;if(this.ut===void 0)return this.ut=new Set(Object.keys(e)),this.render(e);for(let o of this.ut)e[o]==null&&(this.ut.delete(o),o.includes("-")?r.removeProperty(o):r[o]=null);for(let o in e){let n=e[o];if(n!=null){this.ut.add(o);let a=typeof n=="string"&&n.endsWith(xp);o.includes("-")||a?r.setProperty(o,a?n.slice(0,-11):n,a?il:""):r[o]=n}}return ke}});var an={};J(an,{UnsafeHTMLDirective:()=>gr,unsafeHTML:()=>nn});var gr=class extends tt{constructor(e){if(super(e),this.et=ae,e.type!==At.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(e){if(e===ae||e==null)return this.vt=void 0,this.et=e;if(e===ke)return e;if(typeof e!="string")throw Error(this.constructor.directiveName+"() called with a non-string value");if(e===this.et)return this.vt;this.et=e;let r=[e];return r.raw=r,this.vt={_$litType$:this.constructor.resultType,strings:r,values:[]}}};gr.directiveName="unsafeHTML",gr.resultType=1;var nn=Rt(gr);var ln={};J(ln,{CacheRegistry:()=>rt});var sn={};J(sn,{CancelablePromise:()=>br,CanceledPromiseError:()=>_t,cancelable:()=>xr});var _t=class extends Error{constructor(e,r,o){super(e),this.canceledPromiseResult=r,this.canceledPromiseError=o}},br=class extends Promise{constructor(e){super((r,o)=>e(n=>{this.isCanceled?o(new _t("Promise has been canceled",n)):r(n)},n=>{this.isCanceled?o(new _t("Promise has been canceled",void 0,n)):o(n)})),this.isCanceled=!1}cancel(){this.isCanceled=!0}},xr=t=>new br((e,r)=>t.then(e).catch(r));var rt=class{constructor(){this.loaders={},this.content={},this.clearTimeouts={},this.finalContent=new Set}register(e,r){this.loaders[e]=r,this.finalContent.delete(e)}registerFinal(e,r){this.loaders[e]=r,this.finalContent.add(e)}clearAll(){for(let e in this.content)this.clear(e)}clear(e){this.finalContent.has(e)||this.forceClear(e)}forceClear(e){this.clearClearTimeout(e),this.content[e]instanceof br&&this.content[e].cancel(),delete this.content[e]}clearClearTimeout(e){this.clearTimeouts[e]!=null&&(window.clearTimeout(this.clearTimeouts[e]),delete this.clearTimeouts[e])}set(e,r){this.forceClear(e),this.register(e,async()=>r),this.content[e]=r}setFinal(e,r){this.forceClear(e),this.registerFinal(e,async()=>r),this.content[e]=r}async get(e,r,o){if(this.content[e]===void 0){if(r=r??this.loaders[e],r==null)throw new Error("Unknown cache key "+e);let n=xr(r());return this.content[e]=n,n.then(a=>(this.content[e]=a,o!=null&&(this.clearClearTimeout(e),this.clearTimeouts[e]=window.setTimeout(()=>this.clear(e),o)),a))}if(this.content[e]instanceof Error)throw this.content[e];return this.content[e]}isResolvedValue(e){return e!=null&&!(e instanceof Promise)&&!(e instanceof Error)}getNow(e){if(this.isResolvedValue(this.content[e]))return this.content[e]}has(e){return this.content[e]!=null}resolvedKeys(){return Object.keys(this.content).filter(e=>this.isResolvedValue(this.content[e]))}resolvedValues(){return Object.values(this.content).filter(e=>this.isResolvedValue(e))}keys(){return Object.keys(this.content)}values(){return Object.values(this.content)}};var dn={};J(dn,{ClusteringHelper:()=>cn});var cn=class t{constructor(e,r,o,n){this.allResults=e,this.selectedResult=r,this.clusteringMetadata=o,this.metadataDescriptors=n}static extractResultMetadata(e,r){var o,n;let a=((n=(o=e?.map)!==null&&o!==void 0?o:e?.document)!==null&&n!==void 0?n:e?.topic).metadata;return r==null?t.flattenMetadata(a):t.flattenMetadata(a.find(s=>s.key===r))}static flattenMetadata(e){if(Array.isArray(e))return e.map(o=>t.flattenMetadata(o)).filter(o=>o!=null);let r=e?.hierarchicalValues!=null&&e.hierarchicalValues.length>0;if(!(e==null||e.values.length==0&&!r))if(r){let o=[],n=[];return e.hierarchicalValues.forEach(a=>{o.push(a.join(" > ")),a.length>2?n.push(`... > ${a[a.length-1]}`):n.push(a.join(" > "))}),{key:e.key,label:e.label,value:o.join(", "),displayValue:n.join(", ")}}else{let o=e.values.join(", ");return{key:e.key,label:e.label,value:o,displayValue:o}}}computeClustersItemsForMetadata(e,r,o="No value"){var n,a;let s=t.extractResultMetadata(this.selectedResult,e),l=(n=s?.label)!==null&&n!==void 0?n:(a=this.getMetadataDescriptor(e))===null||a===void 0?void 0:a.label;return this.allResults.map(p=>t.extractResultMetadata(p,e)).map(p=>p??{key:e,label:l,value:void 0,displayValue:o}).filter(p=>p.value!=s?.value).filter((p,f,h)=>h.findIndex(g=>g.value===p.value)===f).map(p=>({result:this.findBestResultForMetadataValue(e,p.value),metadata:p})).sort((p,f)=>this.compareMetadata(p.metadata.value,f.metadata.value,e,r))}compareMetadata(e,r,o,n){if(e==null)return-1;if(r==null)return 1;let a=this.getMetadataDescriptor(o),s=a?.sortRule||"NONE",l=a?.reverseSort||!1;if(s=="ALPHABET"||s=="VERSION"){let c=e.localeCompare(r,n,{numeric:!0});return l?c*-1:c}return 0}getMetadataDescriptor(e){return this.metadataDescriptors.find(r=>e==r.key)}findBestResultForMetadataValue(e,r){let o=this.allResults.filter(c=>{var p;return((p=t.extractResultMetadata(c,e))===null||p===void 0?void 0:p.value)==r}),a=[...t.extractResultMetadata(this.selectedResult).filter(c=>this.clusteringMetadata.has(c.key)).filter(c=>c.key!==e)],s,l=-1;for(let c of o){let p=this.countMatchingMetadata(c,a);if(p>l&&(l=p,s=c,p===a.length))break}return s}countMatchingMetadata(e,r){return t.extractResultMetadata(e).filter(o=>r.some(n=>n.key===o.key&&n.value===o.value)).length}};var pn={};J(pn,{Debouncer:()=>oe});var oe=class{constructor(e=0){this.timeout=e,this.callbacks=[]}run(e,r){return this.callbacks=[e],this.debounce(r)}queue(e,r){return this.callbacks.push(e),this.debounce(r)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(e){return this.promise==null&&(this.promise=new Promise((r,o)=>{this.resolvePromise=r,this.rejectPromise=o})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),e??this.timeout),this.promise}async runCallbacks(){var e,r;let o=[...this.callbacks];this.callbacks=[];let n=(e=this.rejectPromise)!==null&&e!==void 0?e:()=>null,a=(r=this.resolvePromise)!==null&&r!==void 0?r:()=>null;this.clearPromise();for(let s of o)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 hn={};J(hn,{customElement:()=>F,isNumber:()=>sl,jsonProperty:()=>be,optionalNumberProperty:()=>Ap});var un={};J(un,{dateReviver:()=>Op,deepEqual:()=>De,delay:()=>Qo,eventPathContainsMatchingElement:()=>Ep,flatDeep:()=>ut,hasChanged:()=>ao,last:()=>wp,minmax:()=>fn,parseDate:()=>al,waitFor:()=>nl,waitUntil:()=>Sp});var Qo=t=>new Promise(e=>setTimeout(e,t));async function Sp(t,e=10,r=2e4){await nl(async()=>await t()||void 0,e,r)}async function nl(t,e=10,r=2e4){let o=await t(),n,a;for(n=a=performance.now();o==null&&(!r||a-n<r);)await Qo(e),o=await t(),a=performance.now();if(o==null)throw new Error("Timeout exceeded");return o}function ut(t,e){return t.flatMap(r=>[r,...ut(e(r),e)])}function Op(...t){return function(e,r){return t.includes(e)?al(r):r}}function al(t){return t.match(/^\d{4}-\d{2}-\d{2}$/)&&(t=t.replace(/-/g,"/")),t=t.replace(" ","T").replace(/^(.+)(\+\d{2})(\d{2})$/,(e,r,o,n)=>r+o+":"+n),new Date(t)}function Cp(t,e){if(t===e)return!0;if(t&&e&&typeof t=="object"&&typeof e=="object"){if(t.constructor!==e.constructor)return!1;var r,o,n;if(Array.isArray(t)){if(r=t.length,r!=e.length)return!1;for(o=r;o--!==0;)if(!De(t[o],e[o]))return!1;return!0}if(t instanceof Map&&e instanceof Map){if(t.size!==e.size)return!1;for(o of t.entries())if(!e.has(o[0]))return!1;for(o of t.entries())if(!De(o[1],e.get(o[0])))return!1;return!0}if(t instanceof Set&&e instanceof Set){if(t.size!==e.size)return!1;for(o of t.entries())if(!e.has(o[0]))return!1;return!0}if(t.constructor===RegExp)return t.source===e.source&&t.flags===e.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===e.valueOf();if(n=Object.keys(t),r=n.length,r!==Object.keys(e).length)return!1;for(o=r;o--!==0;)if(!Object.prototype.hasOwnProperty.call(e,n[o]))return!1;for(o=r;o--!==0;){var a=n[o];if(!De(t[a],e[a]))return!1}return!0}return t!==t&&e!==e}function De(t,e){try{return Cp(t,e)}catch{return!1}}function ao(t,e){return!De(t,e)}function Ep(t,e,r=window.document.body){if(e.length>0){let o=t.composedPath();for(let n of o){if(n===r)return!1;if(n.matches&&e.some(a=>n.matches(a)))return!0}}return!1}function fn(t,e,r){return Math.min(Math.max(t,e),r)}function wp(t){return t[t.length-1]}var F=t=>e=>{window.customElements.get(t)||window.customElements.define(t,e)};function be(t,e){let r=()=>JSON.parse(JSON.stringify(t));return y({type:Object,converter:{fromAttribute:o=>{if(o==null)return r();try{return JSON.parse(o)}catch{return r()}},toAttribute:o=>JSON.stringify(o)},hasChanged:ao,...e??{}})}function Ap(t){return y({type:Object,converter:{fromAttribute:e=>{if(e!=null)return sl(e)?+e:void 0},toAttribute:e=>e==null?void 0:""+e},...t??{}})}function sl(t){return!isNaN(parseFloat(t))}var Hn={};J(Hn,{designSystemVariables:()=>P});var Wn={};J(Wn,{DesignSystemFamily:()=>mt,DesignSystemSize:()=>he,FtCssVariableFactory:()=>i,badge:()=>Tp,banner:()=>_p,breadcrumb:()=>Pp,button:()=>w,chart:()=>Vp,checkbox:()=>Kp,chip:()=>H,collapsible:()=>Wp,comboboxMultiSelect:()=>Fp,comboboxSingleSelect:()=>Bp,drawer:()=>Ip,floatingMenu:()=>Up,foundation:()=>d,link:()=>Np,modal:()=>Lp,notice:()=>jp,notification:()=>qp,pageHeader:()=>$p,popover:()=>zp,radio:()=>Zp,resolveFamilyClass:()=>Fn,resolveSizeClass:()=>zn,semantic:()=>u,setVariable:()=>T,switch_:()=>Hp,tabs:()=>kp,textArea:()=>Mp,textInput:()=>Dp,toggle:()=>Gp,tooltip:()=>Yp,typographies:()=>so,typographyBody1Medium:()=>vn,typographyBody1Regular:()=>xn,typographyBody1Semibold:()=>Sn,typographyBody2Medium:()=>Cn,typographyBody2MediumUnderline:()=>ll,typographyBody2Regular:()=>On,typographyBody2Semibold:()=>En,typographyCaption1Bold:()=>Ln,typographyCaption1Medium:()=>Pn,typographyCaption1Semibold:()=>$n,typographyCaption2Bold:()=>Dn,typographyCaption2Medium:()=>In,typographyCaption2Semibold:()=>kn,typographyCaption3Bold:()=>Bn,typographyCaption3Medium:()=>Mn,typographyCaption3Semibold:()=>Un,typographyDisplay:()=>mn,typographyLabel1Bold:()=>Rn,typographyLabel1Medium:()=>wn,typographyLabel1Semibold:()=>An,typographyLabel2Bold:()=>Tn,typographyLabel2Medium:()=>Nn,typographyLabel2Semibold:()=>_n,typographyTitle1:()=>yn,typographyTitle2:()=>gn,typographyTitle3:()=>bn,typographyVariants:()=>Rp});var ht=t=>typeof t=="string"?dt(t):t,i=class{static create(e,r,o,n){let a=l=>ht(l??n),s=N`var(${ht(e)}, ${a(n)})`;return s.name=e,s.description=r,s.category=o,s.defaultValue=n,s.defaultCssValue=a,s.get=l=>N`var(${ht(e)}, ${a(l)})`,s.breadcrumb=()=>[],s.lastResortDefaultValue=()=>n,s}static extend(e,r,o,n){let a=l=>o.get(l??n),s=N`var(${ht(e)}, ${a(n)})`;return s.name=e,s.description=r,s.category=o.category,s.fallbackVariable=o,s.defaultValue=n,s.defaultCssValue=a,s.get=l=>N`var(${ht(e)}, ${a(l)})`,s.breadcrumb=()=>[o.name,...o.breadcrumb()],s.lastResortDefaultValue=()=>n??o.lastResortDefaultValue(),s}static external(e,r){let o=a=>e.fallbackVariable?e.fallbackVariable.get(a??e.defaultValue):ht(a??e.lastResortDefaultValue()),n=N`var(${ht(e.name)}, ${o(e.defaultValue)})`;return n.name=e.name,n.category=e.category,n.fallbackVariable=e.fallbackVariable,n.defaultValue=e.defaultValue,n.context=r,n.defaultCssValue=o,n.get=a=>N`var(${ht(e.name)}, ${o(a)})`,n.breadcrumb=()=>e.fallbackVariable?[e.fallbackVariable.name,...e.fallbackVariable.breadcrumb()]:[],n.lastResortDefaultValue=()=>e.lastResortDefaultValue(),n}};function T(t,e){return ht(`${t.name}: ${e}`)}var d={colorWhite:i.create("--ft-color-white","","COLOR","#ffffff"),colorGray0:i.create("--ft-color-gray-0","","COLOR","#71718e"),colorGray10:i.create("--ft-color-gray-10","","COLOR","#fbfbfc"),colorGray20:i.create("--ft-color-gray-20","","COLOR","#f2f2f5"),colorGray30:i.create("--ft-color-gray-30","","COLOR","#e9e9ed"),colorGray40:i.create("--ft-color-gray-40","","COLOR","#e0e0e6"),colorGray50:i.create("--ft-color-gray-50","","COLOR","#cdcdd7"),colorGray60:i.create("--ft-color-gray-60","","COLOR","#bbbbc9"),colorGray70:i.create("--ft-color-gray-70","","COLOR","#a8a8ba"),colorGray80:i.create("--ft-color-gray-80","","COLOR","#9696ab"),colorGray90:i.create("--ft-color-gray-90","","COLOR","#83839d"),colorGray100:i.create("--ft-color-gray-100","","COLOR","#62627c"),colorGray200:i.create("--ft-color-gray-200","","COLOR","#545469"),colorGray300:i.create("--ft-color-gray-300","","COLOR","#454557"),colorGray400:i.create("--ft-color-gray-400","","COLOR","#363644"),colorGray500:i.create("--ft-color-gray-500","","COLOR","#282832"),colorGray600:i.create("--ft-color-gray-600","","COLOR","#19191f"),colorGray700:i.create("--ft-color-gray-700","","COLOR","#0a0a0d"),colorBrand0:i.create("--ft-color-brand-0","","COLOR","#9d207b"),colorBrand10:i.create("--ft-color-brand-10","","COLOR","#f7edf4"),colorBrand20:i.create("--ft-color-brand-20","","COLOR","#ebcfe4"),colorBrand30:i.create("--ft-color-brand-30","","COLOR","#dfb2d3"),colorBrand40:i.create("--ft-color-brand-40","","COLOR","#d395c2"),colorBrand50:i.create("--ft-color-brand-50","","COLOR","#c778b1"),colorBrand60:i.create("--ft-color-brand-60","","COLOR","#ba5ba1"),colorBrand70:i.create("--ft-color-brand-70","","COLOR","#ae3e90"),colorBrand100:i.create("--ft-color-brand-100","","COLOR","#8d1d6e"),colorBrand200:i.create("--ft-color-brand-200","","COLOR","#78185e"),colorBrand300:i.create("--ft-color-brand-300","","COLOR","#62144d"),colorBrand400:i.create("--ft-color-brand-400","","COLOR","#4d103c"),colorBrand500:i.create("--ft-color-brand-500","","COLOR","#380b2c"),colorBrand600:i.create("--ft-color-brand-600","","COLOR","#23071b"),colorBrand700:i.create("--ft-color-brand-700","","COLOR","#0d030b"),colorCyan0:i.create("--ft-color-cyan-0","","COLOR","#0e98b4"),colorCyan10:i.create("--ft-color-cyan-10","","COLOR","#ebf6f9"),colorCyan20:i.create("--ft-color-cyan-20","","COLOR","#cbe9ef"),colorCyan30:i.create("--ft-color-cyan-30","","COLOR","#acdbe5"),colorCyan40:i.create("--ft-color-cyan-40","","COLOR","#8ccedb"),colorCyan50:i.create("--ft-color-cyan-50","","COLOR","#6dc0d1"),colorCyan60:i.create("--ft-color-cyan-60","","COLOR","#4db3c8"),colorCyan70:i.create("--ft-color-cyan-70","","COLOR","#2ea5be"),colorCyan100:i.create("--ft-color-cyan-100","","COLOR","#0c849c"),colorCyan200:i.create("--ft-color-cyan-200","","COLOR","#0a7085"),colorCyan300:i.create("--ft-color-cyan-300","","COLOR","#085c6d"),colorCyan400:i.create("--ft-color-cyan-400","","COLOR","#074856"),colorCyan500:i.create("--ft-color-cyan-500","","COLOR","#05343e"),colorCyan600:i.create("--ft-color-cyan-600","","COLOR","#032127"),colorCyan700:i.create("--ft-color-cyan-700","","COLOR","#010d0f"),colorGreen0:i.create("--ft-color-green-0","","COLOR","#21a274"),colorGreen10:i.create("--ft-color-green-10","","COLOR","#edf7f3"),colorGreen20:i.create("--ft-color-green-20","","COLOR","#cfebe1"),colorGreen30:i.create("--ft-color-green-30","","COLOR","#b2dfcf"),colorGreen40:i.create("--ft-color-green-40","","COLOR","#95d3bd"),colorGreen50:i.create("--ft-color-green-50","","COLOR","#78c7ab"),colorGreen60:i.create("--ft-color-green-60","","COLOR","#5bba98"),colorGreen70:i.create("--ft-color-green-70","","COLOR","#3eae86"),colorGreen100:i.create("--ft-color-green-100","","COLOR","#1d8d65"),colorGreen200:i.create("--ft-color-green-200","","COLOR","#187856"),colorGreen300:i.create("--ft-color-green-300","","COLOR","#146246"),colorGreen400:i.create("--ft-color-green-400","","COLOR","#104d37"),colorGreen500:i.create("--ft-color-green-500","","COLOR","#0b3828"),colorGreen600:i.create("--ft-color-green-600","","COLOR","#072319"),colorGreen700:i.create("--ft-color-green-700","","COLOR","#030d0a"),colorOrange0:i.create("--ft-color-orange-0","","COLOR","#F2700D"),colorOrange10:i.create("--ft-color-orange-10","","COLOR","#FFF7EB"),colorOrange20:i.create("--ft-color-orange-20","","COLOR","#FFEDD6"),colorOrange30:i.create("--ft-color-orange-30","","COLOR","#FFDDB2"),colorOrange40:i.create("--ft-color-orange-40","","COLOR","#FECB90"),colorOrange50:i.create("--ft-color-orange-50","","COLOR","#FCB76E"),colorOrange60:i.create("--ft-color-orange-60","","COLOR","#F9A34D"),colorOrange70:i.create("--ft-color-orange-70","","COLOR","#F68B2C"),colorOrange100:i.create("--ft-color-orange-100","","COLOR","#D35909"),colorOrange200:i.create("--ft-color-orange-200","","COLOR","#B74706"),colorOrange300:i.create("--ft-color-orange-300","","COLOR","#913503"),colorOrange400:i.create("--ft-color-orange-400","","COLOR","#6F2601"),colorOrange500:i.create("--ft-color-orange-500","","COLOR","#4D1800"),colorOrange600:i.create("--ft-color-orange-600","","COLOR","#330F00"),colorOrange700:i.create("--ft-color-orange-700","","COLOR","#140600"),colorRed0:i.create("--ft-color-red-0","","COLOR","#b40e2c"),colorRed10:i.create("--ft-color-red-10","","COLOR","#f9ebed"),colorRed20:i.create("--ft-color-red-20","","COLOR","#efcbd2"),colorRed30:i.create("--ft-color-red-30","","COLOR","#e5acb6"),colorRed40:i.create("--ft-color-red-40","","COLOR","#db8c9b"),colorRed50:i.create("--ft-color-red-50","","COLOR","#d16d7f"),colorRed60:i.create("--ft-color-red-60","","COLOR","#c84d63"),colorRed70:i.create("--ft-color-red-70","","COLOR","#be2e48"),colorRed100:i.create("--ft-color-red-100","","COLOR","#9c0c26"),colorRed200:i.create("--ft-color-red-200","","COLOR","#850a20"),colorRed300:i.create("--ft-color-red-300","","COLOR","#6d081b"),colorRed400:i.create("--ft-color-red-400","","COLOR","#560715"),colorRed500:i.create("--ft-color-red-500","","COLOR","#3e050f"),colorRed600:i.create("--ft-color-red-600","","COLOR","#270309"),colorRed700:i.create("--ft-color-red-700","","COLOR","#0f0104"),colorYellow0:i.create("--ft-color-yellow-0","","COLOR","#E4C00C"),colorYellow10:i.create("--ft-color-yellow-10","","COLOR","#fefae9"),colorYellow20:i.create("--ft-color-yellow-20","","COLOR","#fcf4ca"),colorYellow30:i.create("--ft-color-yellow-30","","COLOR","#faedaa"),colorYellow40:i.create("--ft-color-yellow-40","","COLOR","#f9e78b"),colorYellow50:i.create("--ft-color-yellow-50","","COLOR","#f7e06b"),colorYellow60:i.create("--ft-color-yellow-60","","COLOR","#F4D63E"),colorYellow70:i.create("--ft-color-yellow-70","","COLOR","#F3CE16"),colorYellow100:i.create("--ft-color-yellow-100","","COLOR","#d3b10b"),colorYellow200:i.create("--ft-color-yellow-200","","COLOR","#b3970a"),colorYellow300:i.create("--ft-color-yellow-300","","COLOR","#947c08"),colorYellow400:i.create("--ft-color-yellow-400","","COLOR","#746206"),colorYellow500:i.create("--ft-color-yellow-500","","COLOR","#554705"),colorYellow600:i.create("--ft-color-yellow-600","","COLOR","#352d03"),colorYellow700:i.create("--ft-color-yellow-700","","COLOR","#161201"),colorUltramarine0:i.create("--ft-color-ultramarine-0","","COLOR","#3C19E5"),colorUltramarine10:i.create("--ft-color-ultramarine-10","","COLOR","#EDEAFD"),colorUltramarine20:i.create("--ft-color-ultramarine-20","","COLOR","#D4CCF9"),colorUltramarine30:i.create("--ft-color-ultramarine-30","","COLOR","#BBAFF6"),colorUltramarine40:i.create("--ft-color-ultramarine-40","","COLOR","#A191F3"),colorUltramarine50:i.create("--ft-color-ultramarine-50","","COLOR","#8873EF"),colorUltramarine60:i.create("--ft-color-ultramarine-60","","COLOR","#6F55EC"),colorUltramarine70:i.create("--ft-color-ultramarine-70","","COLOR","#5537E8"),colorUltramarine100:i.create("--ft-color-ultramarine-100","","COLOR","#3416C7"),colorUltramarine200:i.create("--ft-color-ultramarine-200","","COLOR","#2C13A9"),colorUltramarine300:i.create("--ft-color-ultramarine-300","","COLOR","#250F8C"),colorUltramarine400:i.create("--ft-color-ultramarine-400","","COLOR","#1D0C6E"),colorUltramarine500:i.create("--ft-color-ultramarine-500","","COLOR","#150950"),colorUltramarine600:i.create("--ft-color-ultramarine-600","","COLOR","#0D0532"),colorUltramarine700:i.create("--ft-color-ultramarine-700","","COLOR","#050215"),colorAvocado0:i.create("--ft-color-avocado-0","","COLOR","#98BD28"),colorAvocado10:i.create("--ft-color-avocado-10","","COLOR","#F6F9EC"),colorAvocado20:i.create("--ft-color-avocado-20","","COLOR","#E8F0D0"),colorAvocado30:i.create("--ft-color-avocado-30","","COLOR","#DBE8B4"),colorAvocado40:i.create("--ft-color-avocado-40","","COLOR","#CEDF98"),colorAvocado50:i.create("--ft-color-avocado-50","","COLOR","#C0D77C"),colorAvocado60:i.create("--ft-color-avocado-60","","COLOR","#B3CE60"),colorAvocado70:i.create("--ft-color-avocado-70","","COLOR","#A5C644"),colorAvocado100:i.create("--ft-color-avocado-100","","COLOR","#84A423"),colorAvocado200:i.create("--ft-color-avocado-200","","COLOR","#708C1E"),colorAvocado300:i.create("--ft-color-avocado-300","","COLOR","#5D7318"),colorAvocado400:i.create("--ft-color-avocado-400","","COLOR","#495B13"),colorAvocado500:i.create("--ft-color-avocado-500","","COLOR","#35420E"),colorAvocado600:i.create("--ft-color-avocado-600","","COLOR","#212A09"),colorAvocado700:i.create("--ft-color-avocado-700","","COLOR","#0E1104"),colorBrown0:i.create("--ft-color-brown-0","","COLOR","#B26F4D"),colorBrown10:i.create("--ft-color-brown-10","","COLOR","#F8F2EF"),colorBrown20:i.create("--ft-color-brown-20","","COLOR","#EEDFD8"),colorBrown30:i.create("--ft-color-brown-30","","COLOR","#E4CDC1"),colorBrown40:i.create("--ft-color-brown-40","","COLOR","#DABAAA"),colorBrown50:i.create("--ft-color-brown-50","","COLOR","#D0A792"),colorBrown60:i.create("--ft-color-brown-60","","COLOR","#C6947B"),colorBrown70:i.create("--ft-color-brown-70","","COLOR","#BC8264"),colorBrown100:i.create("--ft-color-brown-100","","COLOR","#9B6143"),colorBrown200:i.create("--ft-color-brown-200","","COLOR","#845239"),colorBrown300:i.create("--ft-color-brown-300","","COLOR","#6D442F"),colorBrown400:i.create("--ft-color-brown-400","","COLOR","#553525"),colorBrown500:i.create("--ft-color-brown-500","","COLOR","#3E271B"),colorBrown600:i.create("--ft-color-brown-600","","COLOR","#271811"),colorBrown700:i.create("--ft-color-brown-700","","COLOR","#100A07"),spacing1:i.create("--ft-spacing-1","","SIZE","0.25rem"),spacing2:i.create("--ft-spacing-2","","SIZE","calc(var(--ft-spacing-2, 0.25rem)*2)"),spacing3:i.create("--ft-spacing-3","","SIZE","calc(var(--ft-spacing-3, 0.25rem)*3)"),spacing4:i.create("--ft-spacing-4","","SIZE","calc(var(--ft-spacing-4, 0.25rem)*4)"),spacing5:i.create("--ft-spacing-5","","SIZE","calc(var(--ft-spacing-5, 0.25rem)*5)"),spacing6:i.create("--ft-spacing-6","","SIZE","calc(var(--ft-spacing-6, 0.25rem)*6)"),spacing8:i.create("--ft-spacing-8","","SIZE","calc(var(--ft-spacing-8, 0.25rem)*8)"),spacing10:i.create("--ft-spacing-10","","SIZE","calc(var(--ft-spacing-10, 0.25rem)*10)"),spacing12:i.create("--ft-spacing-12","","SIZE","calc(var(--ft-spacing-12, 0.25rem)*12)"),spacing16:i.create("--ft-spacing-16","","SIZE","calc(var(--ft-spacing-16, 0.25rem)*16)"),spacing20:i.create("--ft-spacing-20","","SIZE","calc(var(--ft-spacing-20, 0.25rem)*20)"),spacing24:i.create("--ft-spacing-24","","SIZE","calc(var(--ft-spacing-24, 0.25rem)*24)"),spacing28:i.create("--ft-spacing-28","","SIZE","calc(var(--ft-spacing-28, 0.25rem)*28)"),spacing32:i.create("--ft-spacing-32","","SIZE","calc(var(--ft-spacing-32, 0.25rem)*32)"),spacing05:i.create("--ft-spacing-0-5","","SIZE","calc(var(--ft-spacing-0-5, 0.25rem)*0.5)"),borderRadiusS:i.create("--ft-border-radius-s","","SIZE","4px"),borderRadiusM:i.create("--ft-border-radius-m","","SIZE","8px"),borderRadiusL:i.create("--ft-border-radius-l","","SIZE","12px"),borderRadiusXl:i.create("--ft-border-radius-xl","","SIZE","16px"),borderRadiusPill:i.create("--ft-border-radius-pill","","SIZE","999px"),borderRadiusRound:i.create("--ft-border-radius-round","","SIZE","50%"),iconSize1:i.create("--ft-icon-size-1","","SIZE","0.75rem"),iconSize2:i.create("--ft-icon-size-2","","SIZE","1rem"),iconSize3:i.create("--ft-icon-size-3","","SIZE","1.25rem"),iconSize4:i.create("--ft-icon-size-4","","SIZE","1.5rem"),iconSize5:i.create("--ft-icon-size-5","","SIZE","2rem"),iconSize6:i.create("--ft-icon-size-6","","SIZE","3rem"),opacity0:i.create("--ft-opacity-0","","NUMBER","0"),opacity8:i.create("--ft-opacity-8","","NUMBER","0.08"),opacity16:i.create("--ft-opacity-16","","NUMBER","0.16"),opacity24:i.create("--ft-opacity-24","","NUMBER","0.24"),opacity40:i.create("--ft-opacity-40","","NUMBER","0.4"),opacity80:i.create("--ft-opacity-80","","NUMBER","0.8"),shadowElevation01:i.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:i.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:i.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:i.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:i.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:i.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:i.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:i.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:i.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)")},mn={fontFamily:i.create("--ft-typography-display-fontFamily","","UNKNOWN","Inter"),fontWeight:i.create("--ft-typography-display-fontWeight","","UNKNOWN","600"),lineHeight:i.create("--ft-typography-display-lineHeight","","SIZE","120%"),fontSize:i.create("--ft-typography-display-fontSize","","SIZE","2.5rem"),letterSpacing:i.create("--ft-typography-display-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:i.create("--ft-typography-display-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ft-typography-display-paragraphIndent","","UNKNOWN","0"),textDecoration:i.create("--ft-typography-display-textDecoration","","UNKNOWN","none"),textCase:i.create("--ft-typography-display-textCase","","UNKNOWN","none")},yn={fontFamily:i.create("--ft-typography-title-1-fontFamily","","UNKNOWN","Inter"),fontWeight:i.create("--ft-typography-title-1-fontWeight","","UNKNOWN","600"),lineHeight:i.create("--ft-typography-title-1-lineHeight","","SIZE","120%"),fontSize:i.create("--ft-typography-title-1-fontSize","","SIZE","1.5rem"),letterSpacing:i.create("--ft-typography-title-1-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:i.create("--ft-typography-title-1-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ft-typography-title-1-paragraphIndent","","UNKNOWN","0"),textDecoration:i.create("--ft-typography-title-1-textDecoration","","UNKNOWN","none"),textCase:i.create("--ft-typography-title-1-textCase","","UNKNOWN","none")},gn={fontFamily:i.create("--ft-typography-title-2-fontFamily","","UNKNOWN","Inter"),fontWeight:i.create("--ft-typography-title-2-fontWeight","","UNKNOWN","500"),lineHeight:i.create("--ft-typography-title-2-lineHeight","","SIZE","120%"),fontSize:i.create("--ft-typography-title-2-fontSize","","SIZE","1.25rem"),letterSpacing:i.create("--ft-typography-title-2-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:i.create("--ft-typography-title-2-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ft-typography-title-2-paragraphIndent","","UNKNOWN","0"),textDecoration:i.create("--ft-typography-title-2-textDecoration","","UNKNOWN","none"),textCase:i.create("--ft-typography-title-2-textCase","","UNKNOWN","none")},bn={fontFamily:i.create("--ft-typography-title-3-fontFamily","","UNKNOWN","Inter"),fontWeight:i.create("--ft-typography-title-3-fontWeight","","UNKNOWN","500"),lineHeight:i.create("--ft-typography-title-3-lineHeight","","SIZE","120%"),fontSize:i.create("--ft-typography-title-3-fontSize","","SIZE","1.125rem"),letterSpacing:i.create("--ft-typography-title-3-letterSpacing","","SIZE","-0.01em"),paragraphSpacing:i.create("--ft-typography-title-3-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ft-typography-title-3-paragraphIndent","","UNKNOWN","0"),textDecoration:i.create("--ft-typography-title-3-textDecoration","","UNKNOWN","none"),textCase:i.create("--ft-typography-title-3-textCase","","UNKNOWN","none")},xn={fontFamily:i.create("--ft-typography-body-1-regular-fontFamily","","UNKNOWN","Inter"),fontWeight:i.create("--ft-typography-body-1-regular-fontWeight","","UNKNOWN","400"),lineHeight:i.create("--ft-typography-body-1-regular-lineHeight","","SIZE","135%"),fontSize:i.create("--ft-typography-body-1-regular-fontSize","","SIZE","1rem"),letterSpacing:i.create("--ft-typography-body-1-regular-letterSpacing","","SIZE","normal"),paragraphSpacing:i.create("--ft-typography-body-1-regular-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ft-typography-body-1-regular-paragraphIndent","","UNKNOWN","0"),textDecoration:i.create("--ft-typography-body-1-regular-textDecoration","","UNKNOWN","none"),textCase:i.create("--ft-typography-body-1-regular-textCase","","UNKNOWN","none")},vn={fontFamily:i.create("--ft-typography-body-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:i.create("--ft-typography-body-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:i.create("--ft-typography-body-1-medium-lineHeight","","SIZE","135%"),fontSize:i.create("--ft-typography-body-1-medium-fontSize","","SIZE","1rem"),letterSpacing:i.create("--ft-typography-body-1-medium-letterSpacing","","SIZE","normal"),paragraphSpacing:i.create("--ft-typography-body-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ft-typography-body-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:i.create("--ft-typography-body-1-medium-textDecoration","","UNKNOWN","none"),textCase:i.create("--ft-typography-body-1-medium-textCase","","UNKNOWN","none")},Sn={fontFamily:i.create("--ft-typography-body-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:i.create("--ft-typography-body-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:i.create("--ft-typography-body-1-semibold-lineHeight","","SIZE","135%"),fontSize:i.create("--ft-typography-body-1-semibold-fontSize","","SIZE","1rem"),letterSpacing:i.create("--ft-typography-body-1-semibold-letterSpacing","","SIZE","normal"),paragraphSpacing:i.create("--ft-typography-body-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ft-typography-body-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:i.create("--ft-typography-body-1-semibold-textDecoration","","UNKNOWN","none"),textCase:i.create("--ft-typography-body-1-semibold-textCase","","UNKNOWN","none")},On={fontFamily:i.create("--ft-typography-body-2-regular-fontFamily","","UNKNOWN","Inter"),fontWeight:i.create("--ft-typography-body-2-regular-fontWeight","","UNKNOWN","400"),lineHeight:i.create("--ft-typography-body-2-regular-lineHeight","","SIZE","135%"),fontSize:i.create("--ft-typography-body-2-regular-fontSize","","SIZE","0.875rem"),letterSpacing:i.create("--ft-typography-body-2-regular-letterSpacing","","SIZE","normal"),paragraphSpacing:i.create("--ft-typography-body-2-regular-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ft-typography-body-2-regular-paragraphIndent","","UNKNOWN","0"),textDecoration:i.create("--ft-typography-body-2-regular-textDecoration","","UNKNOWN","none"),textCase:i.create("--ft-typography-body-2-regular-textCase","","UNKNOWN","none")},Cn={fontFamily:i.create("--ft-typography-body-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:i.create("--ft-typography-body-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:i.create("--ft-typography-body-2-medium-lineHeight","","SIZE","135%"),fontSize:i.create("--ft-typography-body-2-medium-fontSize","","SIZE","0.875rem"),letterSpacing:i.create("--ft-typography-body-2-medium-letterSpacing","","SIZE","normal"),paragraphSpacing:i.create("--ft-typography-body-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ft-typography-body-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:i.create("--ft-typography-body-2-medium-textDecoration","","UNKNOWN","none"),textCase:i.create("--ft-typography-body-2-medium-textCase","","UNKNOWN","none")},ll={fontFamily:i.create("--ft-typography-body-2-medium-underline-fontFamily","","UNKNOWN","Inter"),fontWeight:i.create("--ft-typography-body-2-medium-underline-fontWeight","","UNKNOWN","500"),lineHeight:i.create("--ft-typography-body-2-medium-underline-lineHeight","","SIZE","135%"),fontSize:i.create("--ft-typography-body-2-medium-underline-fontSize","","SIZE","0.875rem"),letterSpacing:i.create("--ft-typography-body-2-medium-underline-letterSpacing","","SIZE","normal"),paragraphSpacing:i.create("--ft-typography-body-2-medium-underline-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ft-typography-body-2-medium-underline-paragraphIndent","","UNKNOWN","0"),textCase:i.create("--ft-typography-body-2-medium-underline-textCase","","UNKNOWN","none"),textDecoration:i.create("--ft-typography-body-2-medium-underline-textDecoration","","UNKNOWN","underline")},En={fontFamily:i.create("--ft-typography-body-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:i.create("--ft-typography-body-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:i.create("--ft-typography-body-2-semibold-lineHeight","","SIZE","135%"),fontSize:i.create("--ft-typography-body-2-semibold-fontSize","","SIZE","0.875rem"),letterSpacing:i.create("--ft-typography-body-2-semibold-letterSpacing","","SIZE","normal"),paragraphSpacing:i.create("--ft-typography-body-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ft-typography-body-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:i.create("--ft-typography-body-2-semibold-textDecoration","","UNKNOWN","none"),textCase:i.create("--ft-typography-body-2-semibold-textCase","","UNKNOWN","none")},wn={fontFamily:i.create("--ft-typography-label-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:i.create("--ft-typography-label-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:i.create("--ft-typography-label-1-medium-lineHeight","","SIZE","110%"),fontSize:i.create("--ft-typography-label-1-medium-fontSize","","SIZE","0.875rem"),letterSpacing:i.create("--ft-typography-label-1-medium-letterSpacing","","SIZE","0.04em"),textCase:i.create("--ft-typography-label-1-medium-textCase","","UNKNOWN","uppercase"),paragraphSpacing:i.create("--ft-typography-label-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ft-typography-label-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:i.create("--ft-typography-label-1-medium-textDecoration","","UNKNOWN","none")},An={fontFamily:i.create("--ft-typography-label-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:i.create("--ft-typography-label-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:i.create("--ft-typography-label-1-semibold-lineHeight","","SIZE","110%"),fontSize:i.create("--ft-typography-label-1-semibold-fontSize","","SIZE","0.875rem"),letterSpacing:i.create("--ft-typography-label-1-semibold-letterSpacing","","SIZE","0.04em"),textCase:i.create("--ft-typography-label-1-semibold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:i.create("--ft-typography-label-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ft-typography-label-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:i.create("--ft-typography-label-1-semibold-textDecoration","","UNKNOWN","none")},Rn={fontFamily:i.create("--ft-typography-label-1-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:i.create("--ft-typography-label-1-bold-fontWeight","","UNKNOWN","700"),lineHeight:i.create("--ft-typography-label-1-bold-lineHeight","","SIZE","110%"),fontSize:i.create("--ft-typography-label-1-bold-fontSize","","SIZE","0.875rem"),letterSpacing:i.create("--ft-typography-label-1-bold-letterSpacing","","SIZE","0.04em"),textCase:i.create("--ft-typography-label-1-bold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:i.create("--ft-typography-label-1-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ft-typography-label-1-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:i.create("--ft-typography-label-1-bold-textDecoration","","UNKNOWN","none")},Nn={fontFamily:i.create("--ft-typography-label-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:i.create("--ft-typography-label-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:i.create("--ft-typography-label-2-medium-lineHeight","","SIZE","110%"),fontSize:i.create("--ft-typography-label-2-medium-fontSize","","SIZE","0.75rem"),letterSpacing:i.create("--ft-typography-label-2-medium-letterSpacing","","SIZE","0.04em"),textCase:i.create("--ft-typography-label-2-medium-textCase","","UNKNOWN","uppercase"),paragraphSpacing:i.create("--ft-typography-label-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ft-typography-label-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:i.create("--ft-typography-label-2-medium-textDecoration","","UNKNOWN","none")},_n={fontFamily:i.create("--ft-typography-label-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:i.create("--ft-typography-label-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:i.create("--ft-typography-label-2-semibold-lineHeight","","SIZE","110%"),fontSize:i.create("--ft-typography-label-2-semibold-fontSize","","SIZE","0.75rem"),letterSpacing:i.create("--ft-typography-label-2-semibold-letterSpacing","","SIZE","0.04em"),textCase:i.create("--ft-typography-label-2-semibold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:i.create("--ft-typography-label-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ft-typography-label-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:i.create("--ft-typography-label-2-semibold-textDecoration","","UNKNOWN","none")},Tn={fontFamily:i.create("--ft-typography-label-2-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:i.create("--ft-typography-label-2-bold-fontWeight","","UNKNOWN","700"),lineHeight:i.create("--ft-typography-label-2-bold-lineHeight","","SIZE","110%"),fontSize:i.create("--ft-typography-label-2-bold-fontSize","","SIZE","0.75rem"),letterSpacing:i.create("--ft-typography-label-2-bold-letterSpacing","","SIZE","0.04em"),textCase:i.create("--ft-typography-label-2-bold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:i.create("--ft-typography-label-2-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ft-typography-label-2-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:i.create("--ft-typography-label-2-bold-textDecoration","","UNKNOWN","none")},Pn={fontFamily:i.create("--ft-typography-caption-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:i.create("--ft-typography-caption-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:i.create("--ft-typography-caption-1-medium-lineHeight","","SIZE","130%"),fontSize:i.create("--ft-typography-caption-1-medium-fontSize","","SIZE","0.75rem"),letterSpacing:i.create("--ft-typography-caption-1-medium-letterSpacing","","SIZE","normal"),textCase:i.create("--ft-typography-caption-1-medium-textCase","","UNKNOWN","none"),paragraphSpacing:i.create("--ft-typography-caption-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ft-typography-caption-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:i.create("--ft-typography-caption-1-medium-textDecoration","","UNKNOWN","none")},$n={fontFamily:i.create("--ft-typography-caption-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:i.create("--ft-typography-caption-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:i.create("--ft-typography-caption-1-semibold-lineHeight","","SIZE","130%"),fontSize:i.create("--ft-typography-caption-1-semibold-fontSize","","SIZE","0.75rem"),letterSpacing:i.create("--ft-typography-caption-1-semibold-letterSpacing","","SIZE","normal"),textCase:i.create("--ft-typography-caption-1-semibold-textCase","","UNKNOWN","none"),paragraphSpacing:i.create("--ft-typography-caption-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ft-typography-caption-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:i.create("--ft-typography-caption-1-semibold-textDecoration","","UNKNOWN","none")},Ln={fontFamily:i.create("--ft-typography-caption-1-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:i.create("--ft-typography-caption-1-bold-fontWeight","","UNKNOWN","700"),lineHeight:i.create("--ft-typography-caption-1-bold-lineHeight","","SIZE","130%"),fontSize:i.create("--ft-typography-caption-1-bold-fontSize","","SIZE","0.75rem"),letterSpacing:i.create("--ft-typography-caption-1-bold-letterSpacing","","SIZE","normal"),textCase:i.create("--ft-typography-caption-1-bold-textCase","","UNKNOWN","none"),paragraphSpacing:i.create("--ft-typography-caption-1-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ft-typography-caption-1-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:i.create("--ft-typography-caption-1-bold-textDecoration","","UNKNOWN","none")},In={fontFamily:i.create("--ft-typography-caption-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:i.create("--ft-typography-caption-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:i.create("--ft-typography-caption-2-medium-lineHeight","","SIZE","130%"),fontSize:i.create("--ft-typography-caption-2-medium-fontSize","","SIZE","0.6875rem"),letterSpacing:i.create("--ft-typography-caption-2-medium-letterSpacing","","SIZE","normal"),textCase:i.create("--ft-typography-caption-2-medium-textCase","","UNKNOWN","none"),paragraphSpacing:i.create("--ft-typography-caption-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ft-typography-caption-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:i.create("--ft-typography-caption-2-medium-textDecoration","","UNKNOWN","none")},kn={fontFamily:i.create("--ft-typography-caption-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:i.create("--ft-typography-caption-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:i.create("--ft-typography-caption-2-semibold-lineHeight","","SIZE","130%"),fontSize:i.create("--ft-typography-caption-2-semibold-fontSize","","SIZE","0.6875rem"),letterSpacing:i.create("--ft-typography-caption-2-semibold-letterSpacing","","SIZE","normal"),textCase:i.create("--ft-typography-caption-2-semibold-textCase","","UNKNOWN","none"),paragraphSpacing:i.create("--ft-typography-caption-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ft-typography-caption-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:i.create("--ft-typography-caption-2-semibold-textDecoration","","UNKNOWN","none")},Dn={fontFamily:i.create("--ft-typography-caption-2-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:i.create("--ft-typography-caption-2-bold-fontWeight","","UNKNOWN","700"),lineHeight:i.create("--ft-typography-caption-2-bold-lineHeight","","SIZE","130%"),fontSize:i.create("--ft-typography-caption-2-bold-fontSize","","SIZE","0.6875rem"),letterSpacing:i.create("--ft-typography-caption-2-bold-letterSpacing","","SIZE","normal"),textCase:i.create("--ft-typography-caption-2-bold-textCase","","UNKNOWN","none"),paragraphSpacing:i.create("--ft-typography-caption-2-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ft-typography-caption-2-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:i.create("--ft-typography-caption-2-bold-textDecoration","","UNKNOWN","none")},Mn={fontFamily:i.create("--ft-typography-caption-3-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:i.create("--ft-typography-caption-3-medium-fontWeight","","UNKNOWN","500"),lineHeight:i.create("--ft-typography-caption-3-medium-lineHeight","","SIZE","130%"),fontSize:i.create("--ft-typography-caption-3-medium-fontSize","","SIZE","0.625rem"),letterSpacing:i.create("--ft-typography-caption-3-medium-letterSpacing","","SIZE","normal"),textCase:i.create("--ft-typography-caption-3-medium-textCase","","UNKNOWN","none"),paragraphSpacing:i.create("--ft-typography-caption-3-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ft-typography-caption-3-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:i.create("--ft-typography-caption-3-medium-textDecoration","","UNKNOWN","none")},Un={fontFamily:i.create("--ft-typography-caption-3-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:i.create("--ft-typography-caption-3-semibold-fontWeight","","UNKNOWN","600"),lineHeight:i.create("--ft-typography-caption-3-semibold-lineHeight","","SIZE","130%"),fontSize:i.create("--ft-typography-caption-3-semibold-fontSize","","SIZE","0.625rem"),letterSpacing:i.create("--ft-typography-caption-3-semibold-letterSpacing","","SIZE","normal"),textCase:i.create("--ft-typography-caption-3-semibold-textCase","","UNKNOWN","none"),paragraphSpacing:i.create("--ft-typography-caption-3-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ft-typography-caption-3-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:i.create("--ft-typography-caption-3-semibold-textDecoration","","UNKNOWN","none")},Bn={fontFamily:i.create("--ft-typography-caption-3-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:i.create("--ft-typography-caption-3-bold-fontWeight","","UNKNOWN","700"),lineHeight:i.create("--ft-typography-caption-3-bold-lineHeight","","SIZE","130%"),fontSize:i.create("--ft-typography-caption-3-bold-fontSize","","SIZE","0.625rem"),letterSpacing:i.create("--ft-typography-caption-3-bold-letterSpacing","","SIZE","normal"),textCase:i.create("--ft-typography-caption-3-bold-textCase","","UNKNOWN","none"),paragraphSpacing:i.create("--ft-typography-caption-3-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ft-typography-caption-3-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:i.create("--ft-typography-caption-3-bold-textDecoration","","UNKNOWN","none")},so={display:mn,"title-1":yn,"title-2":gn,"title-3":bn,"body-1-regular":xn,"body-1-medium":vn,"body-1-semibold":Sn,"body-2-regular":On,"body-2-medium":Cn,"body-2-medium-underline":ll,"body-2-semibold":En,"label-1-medium":wn,"label-1-semibold":An,"label-1-bold":Rn,"label-2-medium":Nn,"label-2-semibold":_n,"label-2-bold":Tn,"caption-1-medium":Pn,"caption-1-semibold":$n,"caption-1-bold":Ln,"caption-2-medium":In,"caption-2-semibold":kn,"caption-2-bold":Dn,"caption-3-medium":Mn,"caption-3-semibold":Un,"caption-3-bold":Bn},Rp=["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:i.extend("--ft-background-action-primary","Used as backgorund of primary action components.",d.colorBrand0),backgroundErrorSubtle:i.extend("--ft-background-error-subtle","Used as background of subtle error components.",d.colorRed10),backgroundInfoSubtle:i.extend("--ft-background-info-subtle","Used as background of subtle information components.",d.colorCyan10),backgroundWarningSubtle:i.extend("--ft-background-warning-subtle","Used as background of subtle information components.",d.colorOrange10),backgroundSuccessSubtle:i.extend("--ft-background-success-subtle","Used as background of subtle success components.",d.colorGreen10),backgroundGlobalSurface:i.extend("--ft-background-global-surface","Used as app background.",d.colorWhite),backgroundGlobalOnSurface:i.extend("--ft-background-global-on-surface","Used as background on element on the base background, like cards.",d.colorGray10),backgroundGlobalOnSurfaceDark:i.extend("--ft-background-global-on-surface-dark","Used as background on element that need background separation.",d.colorGray30),contentActionPrimary:i.extend("--ft-content-action-primary","Used on label of primary action on light surface.",d.colorBrand0),contentWarningPrimary:i.extend("--ft-content-warning-primary","Used on label of warning messages on light surface.",d.colorOrange200),contentWarningIconOnly:i.extend("--ft-content-warning-icon-only","Used on warning status icons alone",d.colorOrange0),contentErrorPrimary:i.extend("--ft-content-error-primary","Used on label of error messages on light surface.",d.colorRed0),contentErrorIconOnly:i.extend("--ft-content-error-icon-only","Used on error status icons alone",d.colorRed70),contentInfoPrimary:i.extend("--ft-content-info-primary","Used on label of information messages on light surface.",d.colorCyan200),contentInfoIconOnly:i.extend("--ft-content-info-icon-only","Used on info status icons alone",d.colorCyan0),contentSuccessPrimary:i.extend("--ft-content-success-primary","Used on label of success messages on light surface.",d.colorGreen200),contentSuccessIconOnly:i.extend("--ft-content-success-icon-only","Used on success status icons alone",d.colorGreen0),contentGlobalPrimary:i.extend("--ft-content-global-primary","Used for main content on the page.",d.colorGray500),contentGlobalSecondary:i.extend("--ft-content-global-secondary",`Used for secondary content, often paired with primary content.
|
|
6
|
+
Also for action icons.`,d.colorGray200),contentGlobalSubtle:i.extend("--ft-content-global-subtle","Used for placeholder, unselected items in a tab component or breadcrumb.",d.colorGray0),contentGlobalOnColor:i.extend("--ft-content-global-on-color","Used for content on a dominant color.",d.colorWhite),borderActionPrimary:i.extend("--ft-border-action-primary","Used as border for primary action components.",d.colorBrand0),borderActionFocusRing:i.extend("--ft-border-action-focus-ring","Focus ring is an additional border to indicate focus-visible state.",d.colorCyan0),borderWarningPrimary:i.extend("--ft-border-warning-primary","Used as border for text fields in warning state and for buttons in warning color",d.colorOrange200),borderWarningSubtle:i.extend("--ft-border-warning-subtle","Used as border for warning components.",d.colorOrange30),borderSuccessPrimary:i.extend("--ft-border-success-primary","Used as border for success buttons.",d.colorGreen200),borderSuccessSubtle:i.extend("--ft-border-success-subtle","Used as border for success components.",d.colorGreen30),borderErrorPrimary:i.extend("--ft-border-error-primary","Used as border for text fields in error states.",d.colorRed0),borderErrorSubtle:i.extend("--ft-border-error-subtle","Used as border for error components.",d.colorRed30),borderInfoPrimary:i.extend("--ft-border-info-primary","Used as border for buttons in info color.",d.colorCyan200),borderInfoSubtle:i.extend("--ft-border-info-subtle","Used as border for information components.",d.colorCyan30),borderGlobalPrimary:i.extend("--ft-border-global-primary","Used as border for element like input.",d.colorGray50),borderGlobalSubtle:i.extend("--ft-border-global-subtle","Used as border to deliminate an area filled with background.on-surface and separators.",d.colorGray30),borderInputPrimary:i.extend("--ft-border-input-primary","Used as border for checkboxes and radio buttons",d.colorGray80)};var w={largeHeight:i.create("--ft-button-large-height","","SIZE","40px"),largeHorizontalPadding:i.extend("--ft-button-large-horizontal-padding","",d.spacing4),largeGap:i.extend("--ft-button-large-gap","",d.spacing2),largeBorderRadius:i.extend("--ft-button-large-border-radius","",d.borderRadiusS),largeIconSize:i.extend("--ft-button-large-icon-size","",d.iconSize3),largeBorderWidth:i.create("--ft-button-large-border-width","","SIZE","1px"),largeFocusOutlineOffset:i.create("--ft-button-large-focus-outline-offset","","SIZE","2px"),largeFocusOutlineWidth:i.create("--ft-button-large-focus-outline-width","","SIZE","2px"),largeIconOnlyWidth:i.create("--ft-button-large-icon-only-width","","SIZE","40px"),mediumHeight:i.create("--ft-button-medium-height","","SIZE","30px"),mediumHorizontalPadding:i.extend("--ft-button-medium-horizontal-padding","",d.spacing3),mediumGap:i.extend("--ft-button-medium-gap","",d.spacing2),mediumBorderRadius:i.extend("--ft-button-medium-border-radius","",d.borderRadiusS),mediumIconSize:i.extend("--ft-button-medium-icon-size","",d.iconSize2),mediumBorderWidth:i.create("--ft-button-medium-border-width","","SIZE","1px"),mediumFocusOutlineOffset:i.create("--ft-button-medium-focus-outline-offset","","SIZE","2px"),mediumFocusOutlineWidth:i.create("--ft-button-medium-focus-outline-width","","SIZE","2px"),mediumIconOnlyWidth:i.create("--ft-button-medium-icon-only-width","","SIZE","30px"),smallHeight:i.create("--ft-button-small-height","","SIZE","20px"),smallHorizontalPadding:i.extend("--ft-button-small-horizontal-padding","",d.spacing2),smallGap:i.extend("--ft-button-small-gap","",d.spacing1),smallBorderRadius:i.extend("--ft-button-small-border-radius","",d.borderRadiusS),smallIconSize:i.extend("--ft-button-small-icon-size","",d.iconSize1),smallBorderWidth:i.create("--ft-button-small-border-width","","SIZE","1px"),smallFocusOutlineOffset:i.create("--ft-button-small-focus-outline-offset","","SIZE","2px"),smallFocusOutlineWidth:i.create("--ft-button-small-focus-outline-width","","SIZE","2px"),smallIconOnlyWidth:i.create("--ft-button-small-icon-only-width","","SIZE","20px"),xSmallHeight:i.create("--ft-button-x-small-height","","SIZE","16px"),xSmallIconSize:i.extend("--ft-button-x-small-icon-size","",d.iconSize1),xSmallFocusOutlineOffset:i.create("--ft-button-x-small-focus-outline-offset","","SIZE","2px"),xSmallFocusOutlineWidth:i.create("--ft-button-x-small-focus-outline-width","","SIZE","2px"),xSmallIconOnlyWidth:i.create("--ft-button-x-small-icon-only-width","","SIZE","16px"),roundBorderRadius:i.extend("--ft-button-round-border-radius","",d.borderRadiusPill),primaryBackgroundColor:i.extend("--ft-button-primary-background-color","",u.backgroundActionPrimary),primaryColor:i.extend("--ft-button-primary-color","",u.contentGlobalOnColor),primaryIconColor:i.extend("--ft-button-primary-icon-color","",u.contentGlobalOnColor),primaryStateLayerColor:i.extend("--ft-button-primary-state-layer-color","",u.contentGlobalOnColor),primaryHoverStateLayerOpacity:i.extend("--ft-button-primary-hover-state-layer-opacity","",d.opacity16),primaryFocusStateLayerOpacity:i.extend("--ft-button-primary-focus-state-layer-opacity","",d.opacity16),primaryActiveStateLayerOpacity:i.extend("--ft-button-primary-active-state-layer-opacity","",d.opacity24),primaryDisabledComponentOpacity:i.extend("--ft-button-primary-disabled-component-opacity","",d.opacity40),focusFocusRingColor:i.extend("--ft-button-focus-focus-ring-color","",u.borderActionFocusRing),tertiaryBackgroundColor:i.create("--ft-button-tertiary-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryColor:i.extend("--ft-button-tertiary-color","",u.contentActionPrimary),tertiaryIconColor:i.extend("--ft-button-tertiary-icon-color","",u.contentActionPrimary),tertiaryStateLayerColor:i.extend("--ft-button-tertiary-state-layer-color","",u.contentActionPrimary),tertiaryHoverStateLayerOpacity:i.extend("--ft-button-tertiary-hover-state-layer-opacity","",d.opacity8),tertiaryFocusStateLayerOpacity:i.extend("--ft-button-tertiary-focus-state-layer-opacity","",d.opacity8),tertiaryActiveStateLayerOpacity:i.extend("--ft-button-tertiary-active-state-layer-opacity","",d.opacity16),tertiaryDisabledComponentOpacity:i.extend("--ft-button-tertiary-disabled-component-opacity","",d.opacity40),secondaryBackgroundColor:i.create("--ft-button-secondary-background-color","","COLOR","rgba(0,0,0,0)"),secondaryColor:i.extend("--ft-button-secondary-color","",u.contentActionPrimary),secondaryIconColor:i.extend("--ft-button-secondary-icon-color","",u.contentActionPrimary),secondaryStateLayerColor:i.extend("--ft-button-secondary-state-layer-color","",u.contentActionPrimary),secondaryHoverStateLayerOpacity:i.extend("--ft-button-secondary-hover-state-layer-opacity","",d.opacity8),secondaryFocusStateLayerOpacity:i.extend("--ft-button-secondary-focus-state-layer-opacity","",d.opacity8),secondaryActiveStateLayerOpacity:i.extend("--ft-button-secondary-active-state-layer-opacity","",d.opacity16),secondaryDisabledComponentOpacity:i.extend("--ft-button-secondary-disabled-component-opacity","",d.opacity40),secondaryBorderColor:i.extend("--ft-button-secondary-border-color","",u.borderActionPrimary),neutralBackgroundColor:i.create("--ft-button-neutral-background-color","","COLOR","rgba(0,0,0,0)"),neutralIconColor:i.extend("--ft-button-neutral-icon-color","",u.contentGlobalSecondary),neutralColor:i.extend("--ft-button-neutral-color","",u.contentGlobalSecondary),neutralStateLayerColor:i.extend("--ft-button-neutral-state-layer-color","",u.contentGlobalSecondary),neutralHoverStateLayerOpacity:i.extend("--ft-button-neutral-hover-state-layer-opacity","",d.opacity8),neutralFocusStateLayerOpacity:i.extend("--ft-button-neutral-focus-state-layer-opacity","",d.opacity8),neutralActiveStateLayerOpacity:i.extend("--ft-button-neutral-active-state-layer-opacity","",d.opacity16),neutralDisabledComponentOpacity:i.extend("--ft-button-neutral-disabled-component-opacity","",d.opacity40)};var H={largeMinHeight:i.create("--ft-chip-large-min-height","","SIZE","36px"),largeHorizontalPadding:i.extend("--ft-chip-large-horizontal-padding","",d.spacing3),largeButtonRightPadding:i.extend("--ft-chip-large-button-right-padding","",d.spacing1),largeGap:i.extend("--ft-chip-large-gap","",d.spacing1),largeFocusOutlineOffset:i.create("--ft-chip-large-focus-outline-offset","","SIZE","2px"),largeFocusOutlineWidth:i.create("--ft-chip-large-focus-outline-width","","SIZE","2px"),largeBorderRadius:i.create("--ft-chip-large-border-radius","","SIZE","18px"),largeBorderWidth:i.create("--ft-chip-large-border-width","","SIZE","1px"),largeIconSize:i.extend("--ft-chip-large-icon-size","",d.iconSize3),mediumMinHeight:i.create("--ft-chip-medium-min-height","","SIZE","24px"),mediumHorizontalPadding:i.extend("--ft-chip-medium-horizontal-padding","",d.spacing2),mediumButtonRightPadding:i.extend("--ft-chip-medium-button-right-padding","",d.spacing05),mediumGap:i.extend("--ft-chip-medium-gap","",d.spacing1),mediumFocusOutlineOffset:i.create("--ft-chip-medium-focus-outline-offset","","SIZE","2px"),mediumFocusOutlineWidth:i.create("--ft-chip-medium-focus-outline-width","","SIZE","2px"),mediumBorderRadius:i.create("--ft-chip-medium-border-radius","","SIZE","12px"),mediumBorderWidth:i.create("--ft-chip-medium-border-width","","SIZE","1px"),mediumIconSize:i.extend("--ft-chip-medium-icon-size","",d.iconSize2),smallMinHeight:i.create("--ft-chip-small-min-height","","SIZE","20px"),smallHorizontalPadding:i.extend("--ft-chip-small-horizontal-padding","",d.spacing1),smallButtonRightPadding:i.extend("--ft-chip-small-button-right-padding","",d.spacing05),smallGap:i.extend("--ft-chip-small-gap","",d.spacing1),smallFocusOutlineOffset:i.create("--ft-chip-small-focus-outline-offset","","SIZE","2px"),smallFocusOutlineWidth:i.create("--ft-chip-small-focus-outline-width","","SIZE","2px"),smallBorderRadius:i.create("--ft-chip-small-border-radius","","SIZE","10px"),smallBorderWidth:i.create("--ft-chip-small-border-width","","SIZE","1px"),smallIconSize:i.extend("--ft-chip-small-icon-size","",d.iconSize1),neutralBackgroundColor:i.extend("--ft-chip-neutral-background-color","",u.backgroundGlobalOnSurface),neutralColor:i.extend("--ft-chip-neutral-color","",u.contentGlobalSecondary),neutralIconColor:i.extend("--ft-chip-neutral-icon-color","",u.contentGlobalSecondary),neutralBorderColor:i.extend("--ft-chip-neutral-border-color","",u.borderGlobalSubtle),infoBackgroundColor:i.extend("--ft-chip-info-background-color","",u.backgroundInfoSubtle),infoColor:i.extend("--ft-chip-info-color","",u.contentInfoPrimary),infoIconColor:i.extend("--ft-chip-info-icon-color","",u.contentInfoIconOnly),infoBorderColor:i.extend("--ft-chip-info-border-color","",u.borderInfoSubtle),successBackgroundColor:i.extend("--ft-chip-success-background-color","",u.backgroundSuccessSubtle),successColor:i.extend("--ft-chip-success-color","",u.contentSuccessPrimary),successIconColor:i.extend("--ft-chip-success-icon-color","",u.contentSuccessIconOnly),successBorderColor:i.extend("--ft-chip-success-border-color","",u.borderSuccessSubtle),warningBackgroundColor:i.extend("--ft-chip-warning-background-color","",u.backgroundWarningSubtle),warningColor:i.extend("--ft-chip-warning-color","",u.contentWarningPrimary),warningIconColor:i.extend("--ft-chip-warning-icon-color","",u.contentWarningIconOnly),warningBorderColor:i.extend("--ft-chip-warning-border-color","",u.borderWarningSubtle),errorBackgroundColor:i.extend("--ft-chip-error-background-color","",u.backgroundErrorSubtle),errorColor:i.extend("--ft-chip-error-color","",u.contentErrorPrimary),errorIconColor:i.extend("--ft-chip-error-icon-color","",u.contentErrorIconOnly),errorBorderColor:i.extend("--ft-chip-error-border-color","",u.borderErrorSubtle)};var Np={focusOpacity:i.extend("--ft-link-focus-opacity","",d.opacity80),focusFocusRingColor:i.extend("--ft-link-focus-focus-ring-color","",u.borderActionFocusRing),brandColor:i.extend("--ft-link-brand-color","",u.contentActionPrimary),infoColor:i.extend("--ft-link-info-color","",u.contentInfoPrimary)};var _p={iconSize:i.extend("--ft-banner-icon-size","",d.iconSize5),borderWidth:i.create("--ft-banner-border-width","","SIZE","1px"),leftPadding:i.extend("--ft-banner-left-padding","",d.spacing6),rightPadding:i.extend("--ft-banner-right-padding","",d.spacing6),verticalPadding:i.extend("--ft-banner-vertical-padding","",d.spacing6),horizontalSideGap:i.extend("--ft-banner-horizontal-side-gap","",d.spacing6),horizontalMobileGap:i.extend("--ft-banner-horizontal-mobile-gap","",d.spacing4),verticalMobileGap:i.extend("--ft-banner-vertical-mobile-gap","",d.spacing6),horizontalMiddleGap:i.extend("--ft-banner-horizontal-middle-gap","",d.spacing20),infoBackgroundColor:i.extend("--ft-banner-info-background-color","",u.backgroundInfoSubtle),infoColor:i.extend("--ft-banner-info-color","",u.contentInfoPrimary),infoIconColor:i.extend("--ft-banner-info-icon-color","",u.contentInfoIconOnly),infoBorderColor:i.extend("--ft-banner-info-border-color","",u.borderInfoSubtle)};var Tp={horizontalPadding:i.extend("--ft-badge-horizontal-padding","",d.spacing1),verticalPadding:i.extend("--ft-badge-vertical-padding","",d.spacing1),borderRadius:i.extend("--ft-badge-border-radius","",d.borderRadiusPill),color:i.extend("--ft-badge-color","",u.contentGlobalOnColor),backgroundColor:i.extend("--ft-badge-background-color","",u.contentActionPrimary)};var Pp={horizontalGap:i.extend("--ft-breadcrumb-horizontal-gap","",d.spacing1),verticalGap:i.extend("--ft-breadcrumb-vertical-gap","",d.spacing2),currentColor:i.extend("--ft-breadcrumb-current-color","",u.contentGlobalPrimary),previousNonClickableColor:i.extend("--ft-breadcrumb-previous-non-clickable-color","",u.contentGlobalSecondary),iconColor:i.extend("--ft-breadcrumb-icon-color","",u.contentGlobalSubtle)};var $p={horizontalPadding:i.extend("--ft-page-header-horizontal-padding","",d.spacing6),horizontalGap:i.extend("--ft-page-header-horizontal-gap","",d.spacing4),verticalGap:i.extend("--ft-page-header-vertical-gap","",d.spacing2),classicVerticalPadding:i.extend("--ft-page-header-classic-vertical-padding","",d.spacing6),multilineVerticalPadding:i.extend("--ft-page-header-multiline-vertical-padding","",d.spacing4),inlineVerticalPadding:i.extend("--ft-page-header-inline-vertical-padding","",d.spacing2),backgroundColor:i.extend("--ft-page-header-background-color","",d.colorWhite),bottomBorderColor:i.extend("--ft-page-header-bottom-border-color","",u.borderGlobalSubtle),titleColor:i.extend("--ft-page-header-title-color","",u.contentGlobalPrimary),subtitleColor:i.extend("--ft-page-header-subtitle-color","",u.contentGlobalSecondary)};var Lp={smallContainerWidth:i.create("--ft-modal-small-container-width","","SIZE","600px"),largeContainerWidth:i.create("--ft-modal-large-container-width","","SIZE","900px"),overlayBackgroundColor:i.extend("--ft-modal-overlay-background-color","",d.colorGray700),overlayOpacity:i.extend("--ft-modal-overlay-opacity","",d.opacity40),shadow:i.extend("--ft-modal-shadow","",d.shadowElevation03),bodyBackgroundColor:i.extend("--ft-modal-body-background-color","",d.colorWhite),bodyColor:i.extend("--ft-modal-body-color","",u.contentGlobalPrimary),bodyHorizontalPadding:i.extend("--ft-modal-body-horizontal-padding","",d.spacing6),bodyVerticalPadding:i.extend("--ft-modal-body-vertical-padding","",d.spacing6),bodyVerticalGap:i.extend("--ft-modal-body-vertical-gap","",d.spacing6),containerMargin:i.extend("--ft-modal-container-margin","",d.spacing3),headerBackgroundColor:i.extend("--ft-modal-header-background-color","",u.backgroundGlobalOnSurface),headerBorderColor:i.extend("--ft-modal-header-border-color","",u.borderGlobalSubtle),headerColor:i.extend("--ft-modal-header-color","",u.contentGlobalPrimary),headerTrailingIconColor:i.extend("--ft-modal-header-trailing-icon-color","",u.contentGlobalSecondary),headerVerticalPadding:i.extend("--ft-modal-header-vertical-padding","",d.spacing1),headerRightPadding:i.extend("--ft-modal-header-right-padding","",d.spacing1),headerLeftPadding:i.extend("--ft-modal-header-left-padding","",d.spacing6),headerGap:i.extend("--ft-modal-header-gap","",d.spacing2),headerBorderBottom:i.create("--ft-modal-header-border-bottom","","SIZE","1px"),borderRadius:i.extend("--ft-modal-border-radius","",d.borderRadiusM)};var Ip={overlayOpacity:i.extend("--ft-drawer-overlay-opacity","",d.opacity40),shadow:i.extend("--ft-drawer-shadow","",d.shadowElevation03),bodyColor:i.extend("--ft-drawer-body-color","",u.contentGlobalPrimary),bodyHorizontalPadding:i.extend("--ft-drawer-body-horizontal-padding","",d.spacing6),bodyVerticalPadding:i.extend("--ft-drawer-body-vertical-padding","",d.spacing6),bodyGap:i.extend("--ft-drawer-body-gap","",d.spacing6),bodyBackgroundColor:i.extend("--ft-drawer-body-background-color","",d.colorWhite),headerBackgroundColor:i.extend("--ft-drawer-header-background-color","",u.backgroundGlobalOnSurface),headerBorderColor:i.extend("--ft-drawer-header-border-color","",u.borderGlobalSubtle),headerColor:i.extend("--ft-drawer-header-color","",u.contentGlobalPrimary),headerTrailingIconColor:i.extend("--ft-drawer-header-trailing-icon-color","",u.contentGlobalSecondary),headerHeight:i.create("--ft-drawer-header-height","","SIZE","50px"),headerHorizontalPadding:i.extend("--ft-drawer-header-horizontal-padding","",d.spacing2),headerBorderWidth:i.create("--ft-drawer-header-border-width","","SIZE","1px"),headerGap:i.extend("--ft-drawer-header-gap","",d.spacing3),buttonsBarBackgroundColor:i.extend("--ft-drawer-buttons-bar-background-color","",u.backgroundGlobalOnSurface),buttonsBarBorderColor:i.extend("--ft-drawer-buttons-bar-border-color","",u.borderGlobalSubtle),buttonsBarColor:i.extend("--ft-drawer-buttons-bar-color","",u.contentGlobalPrimary),buttonsBarHorizontalPadding:i.extend("--ft-drawer-buttons-bar-horizontal-padding","",d.spacing4),buttonsBarVerticalPadding:i.extend("--ft-drawer-buttons-bar-vertical-padding","",d.spacing4),buttonsBarGap:i.extend("--ft-drawer-buttons-bar-gap","",d.spacing3),buttonsBarBorderWidth:i.create("--ft-drawer-buttons-bar-border-width","","SIZE","1px"),containerWidth:i.create("--ft-drawer-container-width","","SIZE","66%"),containerMinWidth:i.create("--ft-drawer-container-min-width","","SIZE","500px"),containerMaxWidth:i.create("--ft-drawer-container-max-width","","SIZE","1000px"),containerHeight:i.create("--ft-drawer-container-height","","SIZE","100%"),overlayBackgroundColor:i.extend("--ft-drawer-overlay-background-color","",d.colorGray700)};var kp={offBorderBottomWidth:i.create("--ft-tabs-off-border-bottom-width","","SIZE","1px"),offHoverStateLayerOpacity:i.extend("--ft-tabs-off-hover-state-layer-opacity","",d.opacity8),offDefaultStateLayerOpacity:i.extend("--ft-tabs-off-default-state-layer-opacity","",d.opacity0),offFocusStateLayerOpacity:i.extend("--ft-tabs-off-focus-state-layer-opacity","",d.opacity8),offDisabledComponentOpacity:i.extend("--ft-tabs-off-disabled-component-opacity","",d.opacity40),offColor:i.extend("--ft-tabs-off-color","",u.contentGlobalSubtle),offStateLayerColor:i.extend("--ft-tabs-off-state-layer-color","",u.contentGlobalSubtle),offBorderBottomColor:i.extend("--ft-tabs-off-border-bottom-color","",u.borderGlobalSubtle),activeTabIndicatorHeight:i.create("--ft-tabs-active-tab-indicator-height","","SIZE","3px"),topLeftBorderRadius:i.extend("--ft-tabs-top-left-border-radius","",d.borderRadiusS),topRightBorderRadius:i.extend("--ft-tabs-top-right-border-radius","",d.borderRadiusS),withLabelHorizontalPadding:i.extend("--ft-tabs-with-label-horizontal-padding","",d.spacing4),withLabelVerticalPadding:i.extend("--ft-tabs-with-label-vertical-padding","",d.spacing3),horizontalGap:i.extend("--ft-tabs-horizontal-gap","",d.spacing1),verticalGap:i.extend("--ft-tabs-vertical-gap","",d.spacing1),onHoverStateLayerOpacity:i.extend("--ft-tabs-on-hover-state-layer-opacity","",d.opacity16),onDefaultStateLayerOpacity:i.extend("--ft-tabs-on-default-state-layer-opacity","",d.opacity8),onFocusStateLayerOpacity:i.extend("--ft-tabs-on-focus-state-layer-opacity","",d.opacity16),onActiveStateLayerOpacity:i.extend("--ft-tabs-on-active-state-layer-opacity","",d.opacity24),onColor:i.extend("--ft-tabs-on-color","",u.contentActionPrimary),onStateLayerColor:i.extend("--ft-tabs-on-state-layer-color","",u.contentActionPrimary),onActiveTabIndicatorColor:i.extend("--ft-tabs-on-active-tab-indicator-color","",u.contentActionPrimary),iconOnlyHorizontalPadding:i.extend("--ft-tabs-icon-only-horizontal-padding","",d.spacing4),iconOnlyVerticalPadding:i.extend("--ft-tabs-icon-only-vertical-padding","",d.spacing4),alertTopPadding:i.extend("--ft-tabs-alert-top-padding","",d.spacing1),alertRightPadding:i.extend("--ft-tabs-alert-right-padding","",d.spacing05),focusOutlineWidth:i.create("--ft-tabs-focus-outline-width","","SIZE","2px"),focusFocusRingColor:i.extend("--ft-tabs-focus-focus-ring-color","",u.borderActionFocusRing)};var Dp={fieldHorizontalPadding:i.extend("--ft-text-input-field-horizontal-padding","",d.spacing4),fieldHorizontalGap:i.extend("--ft-text-input-field-horizontal-gap","",d.spacing3),fieldVerticalGap:i.extend("--ft-text-input-field-vertical-gap","",d.spacing05),fieldIconSize:i.extend("--ft-text-input-field-icon-size","",d.iconSize3),fieldHeight:i.create("--ft-text-input-field-height","","SIZE","50px"),helperHorizontalPadding:i.extend("--ft-text-input-helper-horizontal-padding","",d.spacing4),helperHorizontalGap:i.extend("--ft-text-input-helper-horizontal-gap","",d.spacing1),helperIconSize:i.extend("--ft-text-input-helper-icon-size","",d.iconSize2),borderRadius:i.extend("--ft-text-input-border-radius","",d.borderRadiusM),backgroundColor:i.extend("--ft-text-input-background-color","",d.colorWhite),contentValueColor:i.extend("--ft-text-input-content-value-color","",u.contentGlobalPrimary),trailingIconColor:i.extend("--ft-text-input-trailing-icon-color","",u.contentGlobalSubtle),labelColor:i.extend("--ft-text-input-label-color","",u.contentGlobalSubtle),defaultBorderColor:i.extend("--ft-text-input-default-border-color","",u.borderInputPrimary),defaultHelperTextColor:i.extend("--ft-text-input-default-helper-text-color","",u.contentGlobalSubtle),defaultBorderWidth:i.create("--ft-text-input-default-border-width","","SIZE","1px"),errorBorderWidth:i.create("--ft-text-input-error-border-width","","SIZE","2px"),errorBorderColor:i.extend("--ft-text-input-error-border-color","",u.borderErrorPrimary),errorHelperTextColor:i.extend("--ft-text-input-error-helper-text-color","",u.contentErrorPrimary),errorHelperIconColor:i.extend("--ft-text-input-error-helper-icon-color","",u.contentErrorIconOnly),warningBorderWidth:i.create("--ft-text-input-warning-border-width","","SIZE","2px"),focusOutlineWidth:i.create("--ft-text-input-focus-outline-width","","SIZE","2px"),focusFocusRingColor:i.extend("--ft-text-input-focus-focus-ring-color","",u.borderActionFocusRing),focusOutlineOffset:i.create("--ft-text-input-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:i.extend("--ft-text-input-disabled-component-opacity","",d.opacity40)};var Mp={backgroundColor:i.extend("--ft-text-area-background-color","",d.colorWhite),contentValueColor:i.extend("--ft-text-area-content-value-color","",u.contentGlobalPrimary),labelColor:i.extend("--ft-text-area-label-color","",u.contentGlobalSubtle),defaultBorderColor:i.extend("--ft-text-area-default-border-color","",u.borderInputPrimary),defaultHelperTextColor:i.extend("--ft-text-area-default-helper-text-color","",u.contentGlobalSubtle),defaultBorderWidth:i.create("--ft-text-area-default-border-width","","SIZE","1px"),errorBorderWidth:i.create("--ft-text-area-error-border-width","","SIZE","2px"),errorBorderColor:i.extend("--ft-text-area-error-border-color","",u.borderErrorPrimary),errorHelperTextColor:i.extend("--ft-text-area-error-helper-text-color","",u.contentErrorPrimary),errorHelperIconColor:i.extend("--ft-text-area-error-helper-icon-color","",u.contentErrorIconOnly),focusFocusRingColor:i.extend("--ft-text-area-focus-focus-ring-color","",u.borderActionFocusRing),focusOutlineWidth:i.create("--ft-text-area-focus-outline-width","","SIZE","2px"),focusOutlineOffset:i.create("--ft-text-area-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:i.extend("--ft-text-area-disabled-component-opacity","",d.opacity40),fieldHorizontalLeftPadding:i.extend("--ft-text-area-field-horizontal-left-padding","",d.spacing4),fieldHorizontalGap:i.extend("--ft-text-area-field-horizontal-gap","",d.spacing3),fieldVerticalGap:i.extend("--ft-text-area-field-vertical-gap","",d.spacing05),fieldMinHeight:i.create("--ft-text-area-field-min-height","","SIZE","64px"),helperHorizontalPadding:i.extend("--ft-text-area-helper-horizontal-padding","",d.spacing4),helperHorizontalGap:i.extend("--ft-text-area-helper-horizontal-gap","",d.spacing1),helperIconSize:i.extend("--ft-text-area-helper-icon-size","",d.iconSize2),borderRadius:i.extend("--ft-text-area-border-radius","",d.borderRadiusM)};var Up={height:i.create("--ft-floating-menu-height","","SIZE","50px"),horizontalPadding:i.extend("--ft-floating-menu-horizontal-padding","",d.spacing4),offIconColor:i.extend("--ft-floating-menu-off-icon-color","",u.contentGlobalPrimary),offColor:i.extend("--ft-floating-menu-off-color","",u.contentGlobalPrimary),onColor:i.extend("--ft-floating-menu-on-color","",u.contentActionPrimary),onStateLayerColor:i.extend("--ft-floating-menu-on-state-layer-color","",u.contentActionPrimary),gap:i.extend("--ft-floating-menu-gap","",d.spacing3),focusFocusRingColor:i.extend("--ft-floating-menu-focus-focus-ring-color","",u.borderActionFocusRing),focusOutlineWidth:i.create("--ft-floating-menu-focus-outline-width","","SIZE","3px"),focusStateLayerOpacity:i.extend("--ft-floating-menu-focus-state-layer-opacity","",d.opacity8),hoverStateLayerOpacity:i.extend("--ft-floating-menu-hover-state-layer-opacity","",d.opacity8),activeStateLayerOpacity:i.extend("--ft-floating-menu-active-state-layer-opacity","",d.opacity16),disabledComponentOpacity:i.extend("--ft-floating-menu-disabled-component-opacity","",d.opacity40),iconSize:i.extend("--ft-floating-menu-icon-size","",d.iconSize3),backgroundColor:i.extend("--ft-floating-menu-background-color","",u.backgroundGlobalOnSurface),shadow:i.extend("--ft-floating-menu-shadow","",d.shadowElevation02)};var Bp={fieldHorizontalPadding:i.extend("--ft-combobox-single-select-field-horizontal-padding","",d.spacing4),fieldHorizontalGap:i.extend("--ft-combobox-single-select-field-horizontal-gap","",d.spacing3),fieldVerticalGap:i.extend("--ft-combobox-single-select-field-vertical-gap","",d.spacing05),fieldIconSize:i.extend("--ft-combobox-single-select-field-icon-size","",d.iconSize3),fieldHeight:i.create("--ft-combobox-single-select-field-height","","SIZE","50px"),helperHorizontalPadding:i.extend("--ft-combobox-single-select-helper-horizontal-padding","",d.spacing4),helperHorizontalGap:i.extend("--ft-combobox-single-select-helper-horizontal-gap","",d.spacing1),helperVerticalGap:i.extend("--ft-combobox-single-select-helper-vertical-gap","",d.spacing1),helperIconSize:i.extend("--ft-combobox-single-select-helper-icon-size","",d.iconSize2),menuVerticalGap:i.extend("--ft-combobox-single-select-menu-vertical-gap","",d.spacing2),borderRadius:i.extend("--ft-combobox-single-select-border-radius","",d.borderRadiusM),backgroundColor:i.extend("--ft-combobox-single-select-background-color","",d.colorWhite),labelColor:i.extend("--ft-combobox-single-select-label-color","",u.contentGlobalSubtle),contentValueColor:i.extend("--ft-combobox-single-select-content-value-color","",u.contentGlobalPrimary),trailingIconColor:i.extend("--ft-combobox-single-select-trailing-icon-color","",u.contentGlobalSubtle),defaultBorderColor:i.extend("--ft-combobox-single-select-default-border-color","",u.borderInputPrimary),defaultHelperTextColor:i.extend("--ft-combobox-single-select-default-helper-text-color","",u.contentGlobalSubtle),defaultBorderWidth:i.create("--ft-combobox-single-select-default-border-width","","SIZE","1px"),errorBorderWidth:i.create("--ft-combobox-single-select-error-border-width","","SIZE","2px"),errorBorderColor:i.extend("--ft-combobox-single-select-error-border-color","",u.borderErrorPrimary),errorHelperTextColor:i.extend("--ft-combobox-single-select-error-helper-text-color","",u.contentErrorPrimary),warningBorderWidth:i.create("--ft-combobox-single-select-warning-border-width","","SIZE","2px"),warningBorderColor:i.extend("--ft-combobox-single-select-warning-border-color","",u.borderWarningPrimary),warningHelperTextColor:i.extend("--ft-combobox-single-select-warning-helper-text-color","",u.contentWarningPrimary),warningHelperIconColor:i.extend("--ft-combobox-single-select-warning-helper-icon-color","",u.contentWarningIconOnly),focusOutlineWidth:i.create("--ft-combobox-single-select-focus-outline-width","","SIZE","2px"),focusFocusRingColor:i.extend("--ft-combobox-single-select-focus-focus-ring-color","",u.borderActionFocusRing),focusOutlineOffset:i.create("--ft-combobox-single-select-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:i.extend("--ft-combobox-single-select-disabled-component-opacity","",d.opacity40)};var Fp={backgroundColor:i.extend("--ft-combobox-multi-select-background-color","",d.colorWhite),labelColor:i.extend("--ft-combobox-multi-select-label-color","",u.contentGlobalSubtle),trailingIconColor:i.extend("--ft-combobox-multi-select-trailing-icon-color","",u.contentGlobalSubtle),defaultBorderColor:i.extend("--ft-combobox-multi-select-default-border-color","",u.borderInputPrimary),defaultHelperTextColor:i.extend("--ft-combobox-multi-select-default-helper-text-color","",u.contentGlobalSubtle),defaultBorderWidth:i.create("--ft-combobox-multi-select-default-border-width","","SIZE","1px"),errorBorderColor:i.extend("--ft-combobox-multi-select-error-border-color","",u.borderErrorPrimary),errorHelperTextColor:i.extend("--ft-combobox-multi-select-error-helper-text-color","",u.contentErrorPrimary),errorHelperIcon:i.extend("--ft-combobox-multi-select-error-helper-icon","",u.contentErrorIconOnly),errorBorderWidth:i.create("--ft-combobox-multi-select-error-border-width","","SIZE","2px"),warningBorderColor:i.extend("--ft-combobox-multi-select-warning-border-color","",u.borderWarningPrimary),warningHelperTextColor:i.extend("--ft-combobox-multi-select-warning-helper-text-color","",u.contentWarningPrimary),warningHelperIconColor:i.extend("--ft-combobox-multi-select-warning-helper-icon-color","",u.contentWarningIconOnly),warningBorderWidth:i.create("--ft-combobox-multi-select-warning-border-width","","SIZE","2px"),focusFocusRingColor:i.extend("--ft-combobox-multi-select-focus-focus-ring-color","",u.borderActionFocusRing),focusOutlineWidth:i.create("--ft-combobox-multi-select-focus-outline-width","","SIZE","2px"),focusOutlineOffset:i.create("--ft-combobox-multi-select-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:i.extend("--ft-combobox-multi-select-disabled-component-opacity","",d.opacity40),helperHorizontalPadding:i.extend("--ft-combobox-multi-select-helper-horizontal-padding","",d.spacing4),helperHorizontalGap:i.extend("--ft-combobox-multi-select-helper-horizontal-gap","",d.spacing1),helperVerticalGap:i.extend("--ft-combobox-multi-select-helper-vertical-gap","",d.spacing1),helperIconSize:i.extend("--ft-combobox-multi-select-helper-icon-size","",d.iconSize2),fieldHorizontalPadding:i.extend("--ft-combobox-multi-select-field-horizontal-padding","",d.spacing4),fieldHorizontalGap:i.extend("--ft-combobox-multi-select-field-horizontal-gap","",d.spacing3),fieldVerticalGap:i.extend("--ft-combobox-multi-select-field-vertical-gap","",d.spacing05),fieldIconSize:i.extend("--ft-combobox-multi-select-field-icon-size","",d.iconSize3),fieldMaxHeight:i.create("--ft-combobox-multi-select-field-max-height","","SIZE","112px"),contentValuesHorizontalGap:i.extend("--ft-combobox-multi-select-content-values-horizontal-gap","",d.spacing1),contentValuesVerticalGap:i.extend("--ft-combobox-multi-select-content-values-vertical-gap","",d.spacing1),borderRadius:i.extend("--ft-combobox-multi-select-border-radius","",d.borderRadiusM)};var zp={backgroundColor:i.extend("--ft-popover-background-color","",u.backgroundGlobalOnSurface),horizontalPadding:i.extend("--ft-popover-horizontal-padding","",d.spacing6),verticalPadding:i.extend("--ft-popover-vertical-padding","",d.spacing6),titleColor:i.extend("--ft-popover-title-color","",u.contentGlobalPrimary),bodyColor:i.extend("--ft-popover-body-color","",u.contentGlobalSecondary),linkColor:i.extend("--ft-popover-link-color","",u.contentActionPrimary),gap:i.extend("--ft-popover-gap","",d.spacing3),borderRadius:i.extend("--ft-popover-border-radius","",d.borderRadiusM),shadow:i.extend("--ft-popover-shadow","",d.shadowElevation02)};var Wp={hoverStateLayerOpacity:i.extend("--ft-collapsible-hover-state-layer-opacity","",d.opacity8),focusStateLayerOpacity:i.extend("--ft-collapsible-focus-state-layer-opacity","",d.opacity8),focusOutlineWidth:i.create("--ft-collapsible-focus-outline-width","","SIZE","3px"),focusFocusRingColor:i.extend("--ft-collapsible-focus-focus-ring-color","",u.borderActionFocusRing),activeStateLayerOpacity:i.extend("--ft-collapsible-active-state-layer-opacity","",d.opacity16),disabledComponentOpacity:i.extend("--ft-collapsible-disabled-component-opacity","",d.opacity40),horizontalPadding:i.extend("--ft-collapsible-horizontal-padding","",d.spacing4),verticalPadding:i.extend("--ft-collapsible-vertical-padding","",d.spacing3),color:i.extend("--ft-collapsible-color","",u.contentGlobalPrimary),stateLayerColor:i.extend("--ft-collapsible-state-layer-color","",u.contentGlobalPrimary),backgroundColor:i.extend("--ft-collapsible-background-color","",u.backgroundGlobalOnSurface),borderColor:i.extend("--ft-collapsible-border-color","",u.borderGlobalSubtle),iconSize:i.extend("--ft-collapsible-icon-size","",d.iconSize3)};var Hp={groupHorizontalPadding:i.extend("--ft-switch-group-horizontal-padding","",d.spacing1),groupVerticalPadding:i.extend("--ft-switch-group-vertical-padding","",d.spacing1),groupGap:i.extend("--ft-switch-group-gap","",d.spacing1),groupBackgroundColor:i.extend("--ft-switch-group-background-color","",u.backgroundGlobalSurface),groupBorderColor:i.extend("--ft-switch-group-border-color","",u.borderGlobalSubtle),groupBorderRadius:i.create("--ft-switch-group-border-radius","","SIZE","6px"),labelHorizontalPadding:i.extend("--ft-switch-label-horizontal-padding","",d.spacing2),labelVerticalPadding:i.extend("--ft-switch-label-vertical-padding","",d.spacing1),offHoverStateLayerOpacity:i.extend("--ft-switch-off-hover-state-layer-opacity","",d.opacity8),offFocusStateLayerOpacity:i.extend("--ft-switch-off-focus-state-layer-opacity","",d.opacity8),offActiveStateLayerOpacity:i.extend("--ft-switch-off-active-state-layer-opacity","",d.opacity16),offDisabledComponentOpacity:i.extend("--ft-switch-off-disabled-component-opacity","",d.opacity40),offColor:i.extend("--ft-switch-off-color","",u.contentGlobalSubtle),offStateLayerColor:i.extend("--ft-switch-off-state-layer-color","",u.contentGlobalSubtle),onHoverStateLayerOpacity:i.extend("--ft-switch-on-hover-state-layer-opacity","",d.opacity8),onFocusStateLayerOpacity:i.extend("--ft-switch-on-focus-state-layer-opacity","",d.opacity8),onActiveStateLayerOpacity:i.extend("--ft-switch-on-active-state-layer-opacity","",d.opacity16),onDisabledComponentOpacity:i.extend("--ft-switch-on-disabled-component-opacity","",d.opacity40),onColor:i.extend("--ft-switch-on-color","",u.contentActionPrimary),onStateLayerColor:i.extend("--ft-switch-on-state-layer-color","",u.contentActionPrimary),iconHorizontalPadding:i.extend("--ft-switch-icon-horizontal-padding","",d.spacing1),iconVerticalPadding:i.extend("--ft-switch-icon-vertical-padding","",d.spacing1),focusOutlineWidth:i.create("--ft-switch-focus-outline-width","","SIZE","2px"),focusFocusRingColor:i.extend("--ft-switch-focus-focus-ring-color","",u.borderActionFocusRing),optionBorderRadius:i.extend("--ft-switch-option-border-radius","",d.borderRadiusS)};var Vp={color1Light:i.extend("--ft-chart-1-light","for area color charts",d.colorBrand40),color1Base:i.extend("--ft-chart-1-base","for line charts",d.colorBrand0),color2Light:i.extend("--ft-chart-2-light","for area color charts",d.colorYellow60),color2Base:i.extend("--ft-chart-2-base","for line charts",d.colorYellow100),color3Light:i.extend("--ft-chart-3-light","",d.colorUltramarine40),color3Base:i.extend("--ft-chart-3-base","",d.colorUltramarine70),color4Light:i.extend("--ft-chart-4-light","",d.colorCyan50),color4Base:i.extend("--ft-chart-4-base","",d.colorCyan100),color5Light:i.extend("--ft-chart-5-light","",d.colorRed40),color5Base:i.extend("--ft-chart-5-base","",d.colorRed60),color6Light:i.extend("--ft-chart-6-light","",d.colorGreen40),color6Base:i.extend("--ft-chart-6-base","",d.colorGreen70),color7Light:i.extend("--ft-chart-7-light","",d.colorOrange70),color7Base:i.extend("--ft-chart-7-base","",d.colorOrange100),color8Light:i.extend("--ft-chart-8-light","",d.colorAvocado70),color8Base:i.extend("--ft-chart-8-base","",d.colorAvocado200),color9Light:i.extend("--ft-chart-9-light","",d.colorBrown50),color9Base:i.extend("--ft-chart-9-base","",d.colorBrown200),color10Light:i.extend("--ft-chart-10-light","",d.colorGray50),color10Base:i.extend("--ft-chart-10-base","",d.colorGray80),monochrome10:i.extend("--ft-chart-monochrome-10","",d.colorBrand10),monochrome20:i.extend("--ft-chart-monochrome-20","",d.colorBrand20),monochrome30:i.extend("--ft-chart-monochrome-30","",d.colorBrand40),monochrome40:i.extend("--ft-chart-monochrome-40","",d.colorBrand60),monochrome50:i.extend("--ft-chart-monochrome-50","",d.colorBrand0),monochrome60:i.extend("--ft-chart-monochrome-60","",d.colorBrand200)};var jp={borderWidth:i.create("--ft-notice-border-width","","SIZE","1px"),horizontalPadding:i.extend("--ft-notice-horizontal-padding","",d.spacing3),verticalPadding:i.extend("--ft-notice-vertical-padding","",d.spacing2),borderRadius:i.extend("--ft-notice-border-radius","",d.borderRadiusS),gap:i.extend("--ft-notice-gap","",d.spacing2),iconSize:i.extend("--ft-notice-icon-size","",d.iconSize3),infoBackgroundColor:i.extend("--ft-notice-info-background-color","",u.backgroundInfoSubtle),infoBorderColor:i.extend("--ft-notice-info-border-color","",u.borderInfoSubtle),infoColor:i.extend("--ft-notice-info-color","",u.contentInfoPrimary),infoIconColor:i.extend("--ft-notice-info-icon-color","",u.contentInfoIconOnly),warningBackgroundColor:i.extend("--ft-notice-warning-background-color","",u.backgroundWarningSubtle),warningBorderColor:i.extend("--ft-notice-warning-border-color","",u.borderWarningSubtle),warningColor:i.extend("--ft-notice-warning-color","",u.contentWarningPrimary),warningIconColor:i.extend("--ft-notice-warning-icon-color","",u.contentWarningIconOnly),errorBackgroundColor:i.extend("--ft-notice-error-background-color","",u.backgroundErrorSubtle),errorBorderColor:i.extend("--ft-notice-error-border-color","",u.borderErrorSubtle),errorColor:i.extend("--ft-notice-error-color","",u.contentErrorPrimary),errorIconColor:i.extend("--ft-notice-error-icon-color","",u.contentErrorIconOnly),successBackgroundColor:i.extend("--ft-notice-success-background-color","",u.backgroundSuccessSubtle),successBorderColor:i.extend("--ft-notice-success-border-color","",u.borderSuccessSubtle),successColor:i.extend("--ft-notice-success-color","",u.contentSuccessPrimary),successIconColor:i.extend("--ft-notice-success-icon-color","",u.contentSuccessIconOnly)};var Kp={color:i.extend("--ft-checkbox-color","",u.contentGlobalPrimary),checkedBackgroundColor:i.extend("--ft-checkbox-checked-background-color","",u.contentActionPrimary),checkedStateLayerColor:i.extend("--ft-checkbox-checked-state-layer-color","",u.contentActionPrimary),checkedIconColor:i.extend("--ft-checkbox-checked-icon-color","",u.contentGlobalOnColor),checkedHoverStateLayerOpacity:i.extend("--ft-checkbox-checked-hover-state-layer-opacity","",d.opacity16),checkedFocusStateLayerOpacity:i.extend("--ft-checkbox-checked-focus-state-layer-opacity","",d.opacity16),checkedActiveStateLayerOpacity:i.extend("--ft-checkbox-checked-active-state-layer-opacity","",d.opacity24),checkedDisabledComponentOpacity:i.extend("--ft-checkbox-checked-disabled-component-opacity","",d.opacity40),uncheckedBorderColor:i.extend("--ft-checkbox-unchecked-border-color","",d.colorGray80),uncheckedStateLayerColor:i.extend("--ft-checkbox-unchecked-state-layer-color","",d.colorGray80),uncheckedHoverStateLayerOpacity:i.extend("--ft-checkbox-unchecked-hover-state-layer-opacity","",d.opacity16),uncheckedFocusStateLayerOpacity:i.extend("--ft-checkbox-unchecked-focus-state-layer-opacity","",d.opacity16),uncheckedActiveStateLayerOpacity:i.extend("--ft-checkbox-unchecked-active-state-layer-opacity","",d.opacity24),uncheckedDisabledComponentOpacity:i.extend("--ft-checkbox-unchecked-disabled-component-opacity","",d.opacity40),focusFocusRingColor:i.extend("--ft-checkbox-focus-focus-ring-color","",u.borderActionFocusRing),focusOutlineOffset:i.create("--ft-checkbox-focus-outline-offset","","SIZE","3px"),focusOutlineWidth:i.create("--ft-checkbox-focus-outline-width","","SIZE","2px"),gap:i.extend("--ft-checkbox-gap","",d.spacing3)};var Gp={offHoverStateLayerOpacity:i.extend("--ft-toggle-off-hover-state-layer-opacity","",d.opacity16),offFocusStateLayerOpacity:i.extend("--ft-toggle-off-focus-state-layer-opacity","",d.opacity16),offActiveStateLayerOpacity:i.extend("--ft-toggle-off-active-state-layer-opacity","",d.opacity24),offDisabledComponentOpacity:i.extend("--ft-toggle-off-disabled-component-opacity","",d.opacity40),offBackgroundColor:i.extend("--ft-toggle-off-background-color","",u.contentGlobalSubtle),offIconColor:i.extend("--ft-toggle-off-icon-color","",u.contentGlobalSubtle),offStateLayerColor:i.extend("--ft-toggle-off-state-layer-color","",u.contentGlobalSubtle),onHoverStateLayerOpacity:i.extend("--ft-toggle-on-hover-state-layer-opacity","",d.opacity16),onFocusStateLayerOpacity:i.extend("--ft-toggle-on-focus-state-layer-opacity","",d.opacity16),onActiveStateLayerOpacity:i.extend("--ft-toggle-on-active-state-layer-opacity","",d.opacity24),onDisabledComponentOpacity:i.extend("--ft-toggle-on-disabled-component-opacity","",d.opacity40),onBackgroundColor:i.extend("--ft-toggle-on-background-color","",u.contentActionPrimary),onStateLayerColor:i.extend("--ft-toggle-on-state-layer-color","",u.contentActionPrimary),onIconColor:i.extend("--ft-toggle-on-icon-color","",u.contentActionPrimary),color:i.extend("--ft-toggle-color","",u.contentGlobalPrimary),focusFocusRingColor:i.extend("--ft-toggle-focus-focus-ring-color","",u.borderActionFocusRing),gap:i.extend("--ft-toggle-gap","",d.spacing3)};var Zp={color:i.extend("--ft-radio-color","",u.contentGlobalPrimary),selectedRadioColor:i.extend("--ft-radio-selected-radio-color","",u.contentActionPrimary),selectedStateLayerColor:i.extend("--ft-radio-selected-state-layer-color","",u.contentActionPrimary),selectedHoverStateLayerOpacity:i.extend("--ft-radio-selected-hover-state-layer-opacity","",d.opacity16),selectedFocusStateLayerOpacity:i.extend("--ft-radio-selected-focus-state-layer-opacity","",d.opacity16),selectedActiveStateLayerOpacity:i.extend("--ft-radio-selected-active-state-layer-opacity","",d.opacity24),selectedDisabledComponentOpacity:i.extend("--ft-radio-selected-disabled-component-opacity","",d.opacity40),unselectedStateLayerColor:i.extend("--ft-radio-unselected-state-layer-color","",u.borderInputPrimary),unselectedBorderColor:i.extend("--ft-radio-unselected-border-color","",u.borderInputPrimary),unselectedHoverStateLayerOpacity:i.extend("--ft-radio-unselected-hover-state-layer-opacity","",d.opacity16),unselectedFocusStateLayerOpacity:i.extend("--ft-radio-unselected-focus-state-layer-opacity","",d.opacity16),unselectedActiveStateLayerOpacity:i.extend("--ft-radio-unselected-active-state-layer-opacity","",d.opacity24),unselectedDisabledComponentOpacity:i.extend("--ft-radio-unselected-disabled-component-opacity","",d.opacity40),focusFocusRingColor:i.extend("--ft-radio-focus-focus-ring-color","",u.borderActionFocusRing),focusOutlineOffset:i.create("--ft-radio-focus-outline-offset","","SIZE","3px"),focusOutlineWidth:i.create("--ft-radio-focus-outline-width","","SIZE","2px"),gap:i.extend("--ft-radio-gap","",d.spacing3)};var qp={iconSize:i.extend("--ft-notification-icon-size","",d.iconSize4),leftPadding:i.extend("--ft-notification-left-padding","",d.spacing5),rightPadding:i.extend("--ft-notification-right-padding","",d.spacing4),verticalPadding:i.extend("--ft-notification-vertical-padding","",d.spacing3),infoBackgroundColor:i.extend("--ft-notification-info-background-color","",u.backgroundInfoSubtle),infoColor:i.extend("--ft-notification-info-color","",u.contentInfoPrimary),infoIconColor:i.extend("--ft-notification-info-icon-color","",u.contentInfoIconOnly),infoBorderColor:i.extend("--ft-notification-info-border-color","",u.borderInfoSubtle),successBackgroundColor:i.extend("--ft-notification-success-background-color","",u.backgroundSuccessSubtle),successColor:i.extend("--ft-notification-success-color","",u.contentSuccessPrimary),successIconColor:i.extend("--ft-notification-success-icon-color","",u.contentSuccessIconOnly),successBorderColor:i.extend("--ft-notification-success-border-color","",u.borderSuccessSubtle),warningBackgroundColor:i.extend("--ft-notification-warning-background-color","",u.backgroundWarningSubtle),warningColor:i.extend("--ft-notification-warning-color","",u.contentWarningPrimary),warningIconColor:i.extend("--ft-notification-warning-icon-color","",u.contentWarningIconOnly),warningBorderColor:i.extend("--ft-notification-warning-border-color","",u.borderWarningSubtle),errorBackgroundColor:i.extend("--ft-notification-error-background-color","",u.backgroundErrorSubtle),errorColor:i.extend("--ft-notification-error-color","",u.contentErrorPrimary),errorIconColor:i.extend("--ft-notification-error-icon-color","",u.contentErrorIconOnly),errorBorderColor:i.extend("--ft-notification-error-border-color","",u.borderErrorSubtle),borderRadius:i.extend("--ft-notification-border-radius","",d.borderRadiusPill),borderWidth:i.create("--ft-notification-border-width","","SIZE","1px"),leadingGap:i.extend("--ft-notification-leading-gap","",d.spacing2),trailingGap:i.extend("--ft-notification-trailing-gap","",d.spacing8)};var Yp={horizontalPadding:i.extend("--ft-tooltip-horizontal-padding","",d.spacing2),verticalPadding:i.extend("--ft-tooltip-vertical-padding","",d.spacing2),borderRadius:i.extend("--ft-tooltip-border-radius","",d.borderRadiusS),color:i.extend("--ft-tooltip-color","",u.contentGlobalOnColor),backgroundColor:i.extend("--ft-tooltip-background-color","",u.contentGlobalPrimary),backgroundOpacity:i.extend("--ft-tooltip-background-opacity","",d.opacity80),shadow:i.extend("--ft-tooltip-shadow","",d.shadowElevation02),maxWidth:i.create("--ft-tooltip-max-width","","SIZE","256px"),gap:i.extend("--ft-tooltip-gap","",d.spacing05)};var mt;(function(t){t.brand="brand",t.neutral="neutral",t.info="info",t.success="success",t.warning="warning",t.error="error"})(mt||(mt={}));var he;(function(t){t.large="large",t.medium="medium",t.small="small"})(he||(he={}));function Fn(t){return`ftds--family-${t}`}function zn(t){return`ftds--size-${t}`}var P={colorPrimary:i.create("--ft-color-primary","","COLOR","#2196F3"),colorPrimaryVariant:i.create("--ft-color-primary-variant","","COLOR","#1976D2"),colorSecondary:i.create("--ft-color-secondary","","COLOR","#FFCC80"),colorSecondaryVariant:i.create("--ft-color-secondary-variant","","COLOR","#F57C00"),colorSurface:i.create("--ft-color-surface","","COLOR","#FFFFFF"),colorContent:i.create("--ft-color-content","","COLOR","rgba(0, 0, 0, 0.87)"),colorError:i.create("--ft-color-error","","COLOR","#B00020"),colorOutline:i.create("--ft-color-outline","","COLOR","rgba(0, 0, 0, 0.14)"),colorOpacityHigh:i.create("--ft-color-opacity-high","","NUMBER","1"),colorOpacityMedium:i.create("--ft-color-opacity-medium","","NUMBER","0.74"),colorOpacityDisabled:i.create("--ft-color-opacity-disabled","","NUMBER","0.38"),colorOnPrimary:i.create("--ft-color-on-primary","","COLOR","#FFFFFF"),colorOnPrimaryHigh:i.create("--ft-color-on-primary-high","","COLOR","#FFFFFF"),colorOnPrimaryMedium:i.create("--ft-color-on-primary-medium","","COLOR","rgba(255, 255, 255, 0.74)"),colorOnPrimaryDisabled:i.create("--ft-color-on-primary-disabled","","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSecondary:i.create("--ft-color-on-secondary","","COLOR","#FFFFFF"),colorOnSecondaryHigh:i.create("--ft-color-on-secondary-high","","COLOR","#FFFFFF"),colorOnSecondaryMedium:i.create("--ft-color-on-secondary-medium","","COLOR","rgba(255, 255, 255, 0.74)"),colorOnSecondaryDisabled:i.create("--ft-color-on-secondary-disabled","","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSurface:i.create("--ft-color-on-surface","","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceHigh:i.create("--ft-color-on-surface-high","","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceMedium:i.create("--ft-color-on-surface-medium","","COLOR","rgba(0, 0, 0, 0.60)"),colorOnSurfaceDisabled:i.create("--ft-color-on-surface-disabled","","COLOR","rgba(0, 0, 0, 0.38)"),opacityContentOnSurfaceDisabled:i.create("--ft-opacity-content-on-surface-disabled","","NUMBER","0"),opacityContentOnSurfaceEnable:i.create("--ft-opacity-content-on-surface-enable","","NUMBER","0"),opacityContentOnSurfaceHover:i.create("--ft-opacity-content-on-surface-hover","","NUMBER","0.04"),opacityContentOnSurfaceFocused:i.create("--ft-opacity-content-on-surface-focused","","NUMBER","0.12"),opacityContentOnSurfacePressed:i.create("--ft-opacity-content-on-surface-pressed","","NUMBER","0.10"),opacityContentOnSurfaceSelected:i.create("--ft-opacity-content-on-surface-selected","","NUMBER","0.08"),opacityContentOnSurfaceDragged:i.create("--ft-opacity-content-on-surface-dragged","","NUMBER","0.08"),opacityPrimaryOnSurfaceDisabled:i.create("--ft-opacity-primary-on-surface-disabled","","NUMBER","0"),opacityPrimaryOnSurfaceEnable:i.create("--ft-opacity-primary-on-surface-enable","","NUMBER","0"),opacityPrimaryOnSurfaceHover:i.create("--ft-opacity-primary-on-surface-hover","","NUMBER","0.04"),opacityPrimaryOnSurfaceFocused:i.create("--ft-opacity-primary-on-surface-focused","","NUMBER","0.12"),opacityPrimaryOnSurfacePressed:i.create("--ft-opacity-primary-on-surface-pressed","","NUMBER","0.10"),opacityPrimaryOnSurfaceSelected:i.create("--ft-opacity-primary-on-surface-selected","","NUMBER","0.08"),opacityPrimaryOnSurfaceDragged:i.create("--ft-opacity-primary-on-surface-dragged","","NUMBER","0.08"),opacitySurfaceOnPrimaryDisabled:i.create("--ft-opacity-surface-on-primary-disabled","","NUMBER","0"),opacitySurfaceOnPrimaryEnable:i.create("--ft-opacity-surface-on-primary-enable","","NUMBER","0"),opacitySurfaceOnPrimaryHover:i.create("--ft-opacity-surface-on-primary-hover","","NUMBER","0.04"),opacitySurfaceOnPrimaryFocused:i.create("--ft-opacity-surface-on-primary-focused","","NUMBER","0.12"),opacitySurfaceOnPrimaryPressed:i.create("--ft-opacity-surface-on-primary-pressed","","NUMBER","0.10"),opacitySurfaceOnPrimarySelected:i.create("--ft-opacity-surface-on-primary-selected","","NUMBER","0.08"),opacitySurfaceOnPrimaryDragged:i.create("--ft-opacity-surface-on-primary-dragged","","NUMBER","0.08"),elevation00:i.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:i.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:i.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:i.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:i.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:i.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:i.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:i.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:i.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:i.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:i.create("--ft-border-radius-S","","SIZE","4px"),borderRadiusM:i.create("--ft-border-radius-M","","SIZE","8px"),borderRadiusL:i.create("--ft-border-radius-L","","SIZE","12px"),borderRadiusXL:i.create("--ft-border-radius-XL","","SIZE","16px"),titleFont:i.create("--ft-title-font","","UNKNOWN","Ubuntu, system-ui, sans-serif"),contentFont:i.create("--ft-content-font","","UNKNOWN","'Open Sans', system-ui, sans-serif"),transitionDuration:i.create("--ft-transition-duration","","UNKNOWN","250ms"),transitionTimingFunction:i.create("--ft-transition-timing-function","","UNKNOWN","ease-in-out")};var Gn={};J(Gn,{FtNotificationEvent:()=>Vn,PostResizeEvent:()=>Kn,PreResizeEvent:()=>jn});var Vn=class extends CustomEvent{constructor(e){super("ft-notification",{bubbles:!0,composed:!0,detail:e})}},jn=class extends Event{constructor(){super("ft-pre-resize",{composed:!0,bubbles:!0})}},Kn=class extends Event{constructor(){super("ft-post-resize",{composed:!0,bubbles:!0})}};var na={};J(na,{computeOffsetPosition:()=>ia});var dl=["top","right","bottom","left"],cl=["start","end"],qn=dl.reduce((t,e)=>t.concat(e,e+"-"+cl[0],e+"-"+cl[1]),[]),lo=Math.min,Tt=Math.max,co=Math.round;var yt=t=>({x:t,y:t}),Xp={left:"right",right:"left",bottom:"top",top:"bottom"},Jp={start:"end",end:"start"};function Yn(t,e,r){return Tt(t,lo(e,r))}function ei(t,e){return typeof t=="function"?t(e):t}function vr(t){return t.split("-")[0]}function Pt(t){return t.split("-")[1]}function Xn(t){return t==="x"?"y":"x"}function Jn(t){return t==="y"?"height":"width"}function ti(t){return["top","bottom"].includes(vr(t))?"y":"x"}function Qn(t){return Xn(ti(t))}function pl(t,e,r){r===void 0&&(r=!1);let o=Pt(t),n=Qn(t),a=Jn(n),s=n==="x"?o===(r?"end":"start")?"right":"left":o==="start"?"bottom":"top";return e.reference[a]>e.floating[a]&&(s=Zn(s)),[s,Zn(s)]}function fl(t){return t.replace(/start|end/g,e=>Jp[e])}function Zn(t){return t.replace(/left|right|bottom|top/g,e=>Xp[e])}function Qp(t){return{top:0,right:0,bottom:0,left:0,...t}}function ul(t){return typeof t!="number"?Qp(t):{top:t,right:t,bottom:t,left:t}}function er(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}function hl(t,e,r){let{reference:o,floating:n}=t,a=ti(e),s=Qn(e),l=Jn(s),c=vr(e),p=a==="y",f=o.x+o.width/2-n.width/2,h=o.y+o.height/2-n.height/2,g=o[l]/2-n[l]/2,b;switch(c){case"top":b={x:f,y:o.y-n.height};break;case"bottom":b={x:f,y:o.y+o.height};break;case"right":b={x:o.x+o.width,y:h};break;case"left":b={x:o.x-n.width,y:h};break;default:b={x:o.x,y:o.y}}switch(Pt(e)){case"start":b[s]-=g*(r&&p?-1:1);break;case"end":b[s]+=g*(r&&p?-1:1);break}return b}var ml=async(t,e,r)=>{let{placement:o="bottom",strategy:n="absolute",middleware:a=[],platform:s}=r,l=a.filter(Boolean),c=await(s.isRTL==null?void 0:s.isRTL(e)),p=await s.getElementRects({reference:t,floating:e,strategy:n}),{x:f,y:h}=hl(p,o,c),g=o,b={},x=0;for(let C=0;C<l.length;C++){let{name:$,fn:L}=l[C],{x:I,y:O,data:S,reset:E}=await L({x:f,y:h,initialPlacement:o,placement:g,strategy:n,middlewareData:b,rects:p,platform:s,elements:{reference:t,floating:e}});if(f=I??f,h=O??h,b={...b,[$]:{...b[$],...S}},E&&x<=50){x++,typeof E=="object"&&(E.placement&&(g=E.placement),E.rects&&(p=E.rects===!0?await s.getElementRects({reference:t,floating:e,strategy:n}):E.rects),{x:f,y:h}=hl(p,g,c)),C=-1;continue}}return{x:f,y:h,placement:g,strategy:n,middlewareData:b}};async function ea(t,e){var r;e===void 0&&(e={});let{x:o,y:n,platform:a,rects:s,elements:l,strategy:c}=t,{boundary:p="clippingAncestors",rootBoundary:f="viewport",elementContext:h="floating",altBoundary:g=!1,padding:b=0}=ei(e,t),x=ul(b),$=l[g?h==="floating"?"reference":"floating":h],L=er(await a.getClippingRect({element:(r=await(a.isElement==null?void 0:a.isElement($)))==null||r?$:$.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(l.floating)),boundary:p,rootBoundary:f,strategy:c})),I=h==="floating"?{...s.floating,x:o,y:n}:s.reference,O=await(a.getOffsetParent==null?void 0:a.getOffsetParent(l.floating)),S=await(a.isElement==null?void 0:a.isElement(O))?await(a.getScale==null?void 0:a.getScale(O))||{x:1,y:1}:{x:1,y:1},E=er(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({rect:I,offsetParent:O,strategy:c}):I);return{top:(L.top-E.top+x.top)/S.y,bottom:(E.bottom-L.bottom+x.bottom)/S.y,left:(L.left-E.left+x.left)/S.x,right:(E.right-L.right+x.right)/S.x}}function ef(t,e,r){return(t?[...r.filter(n=>Pt(n)===t),...r.filter(n=>Pt(n)!==t)]:r.filter(n=>vr(n)===n)).filter(n=>t?Pt(n)===t||(e?fl(n)!==n:!1):!0)}var ta=function(t){return t===void 0&&(t={}),{name:"autoPlacement",options:t,async fn(e){var r,o,n;let{rects:a,middlewareData:s,placement:l,platform:c,elements:p}=e,{crossAxis:f=!1,alignment:h,allowedPlacements:g=qn,autoAlignment:b=!0,...x}=ei(t,e),C=h!==void 0||g===qn?ef(h||null,b,g):g,$=await ea(e,x),L=((r=s.autoPlacement)==null?void 0:r.index)||0,I=C[L];if(I==null)return{};let O=pl(I,a,await(c.isRTL==null?void 0:c.isRTL(p.floating)));if(l!==I)return{reset:{placement:C[0]}};let S=[$[vr(I)],$[O[0]],$[O[1]]],E=[...((o=s.autoPlacement)==null?void 0:o.overflows)||[],{placement:I,overflows:S}],U=C[L+1];if(U)return{data:{index:L+1,overflows:E},reset:{placement:U}};let z=E.map(m=>{let v=Pt(m.placement);return[m.placement,v&&f?m.overflows.slice(0,2).reduce((R,j)=>R+j,0):m.overflows[0],m.overflows]}).sort((m,v)=>m[1]-v[1]),Z=((n=z.filter(m=>m[2].slice(0,Pt(m[0])?2:3).every(v=>v<=0))[0])==null?void 0:n[0])||z[0][0];return Z!==l?{data:{index:L+1,overflows:E},reset:{placement:Z}}:{}}}};var ra=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){let{x:r,y:o,placement:n}=e,{mainAxis:a=!0,crossAxis:s=!1,limiter:l={fn:$=>{let{x:L,y:I}=$;return{x:L,y:I}}},...c}=ei(t,e),p={x:r,y:o},f=await ea(e,c),h=ti(vr(n)),g=Xn(h),b=p[g],x=p[h];if(a){let $=g==="y"?"top":"left",L=g==="y"?"bottom":"right",I=b+f[$],O=b-f[L];b=Yn(I,b,O)}if(s){let $=h==="y"?"top":"left",L=h==="y"?"bottom":"right",I=x+f[$],O=x-f[L];x=Yn(I,x,O)}let C=l.fn({...e,[g]:b,[h]:x});return{...C,data:{x:C.x-r,y:C.y-o}}}}};function gt(t){return gl(t)?(t.nodeName||"").toLowerCase():"#document"}function Ne(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function bt(t){var e;return(e=(gl(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function gl(t){return t instanceof Node||t instanceof Ne(t).Node}function ot(t){return t instanceof Element||t instanceof Ne(t).Element}function Ze(t){return t instanceof HTMLElement||t instanceof Ne(t).HTMLElement}function yl(t){return typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof Ne(t).ShadowRoot}function Sr(t){let{overflow:e,overflowX:r,overflowY:o,display:n}=Me(t);return/auto|scroll|overlay|hidden|clip/.test(e+o+r)&&!["inline","contents"].includes(n)}function bl(t){return["table","td","th"].includes(gt(t))}function oi(t){let e=ii(),r=Me(t);return r.transform!=="none"||r.perspective!=="none"||(r.containerType?r.containerType!=="normal":!1)||!e&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!e&&(r.filter?r.filter!=="none":!1)||["transform","perspective","filter"].some(o=>(r.willChange||"").includes(o))||["paint","layout","strict","content"].some(o=>(r.contain||"").includes(o))}function xl(t){let e=tr(t);for(;Ze(e)&&!po(e);){if(oi(e))return e;e=tr(e)}return null}function ii(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function po(t){return["html","body","#document"].includes(gt(t))}function Me(t){return Ne(t).getComputedStyle(t)}function fo(t){return ot(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function tr(t){if(gt(t)==="html")return t;let e=t.assignedSlot||t.parentNode||yl(t)&&t.host||bt(t);return yl(e)?e.host:e}function vl(t){let e=tr(t);return po(e)?t.ownerDocument?t.ownerDocument.body:t.body:Ze(e)&&Sr(e)?e:vl(e)}function ri(t,e,r){var o;e===void 0&&(e=[]),r===void 0&&(r=!0);let n=vl(t),a=n===((o=t.ownerDocument)==null?void 0:o.body),s=Ne(n);return a?e.concat(s,s.visualViewport||[],Sr(n)?n:[],s.frameElement&&r?ri(s.frameElement):[]):e.concat(n,ri(n,[],r))}function Cl(t){let e=Me(t),r=parseFloat(e.width)||0,o=parseFloat(e.height)||0,n=Ze(t),a=n?t.offsetWidth:r,s=n?t.offsetHeight:o,l=co(r)!==a||co(o)!==s;return l&&(r=a,o=s),{width:r,height:o,$:l}}function El(t){return ot(t)?t:t.contextElement}function Or(t){let e=El(t);if(!Ze(e))return yt(1);let r=e.getBoundingClientRect(),{width:o,height:n,$:a}=Cl(e),s=(a?co(r.width):r.width)/o,l=(a?co(r.height):r.height)/n;return(!s||!Number.isFinite(s))&&(s=1),(!l||!Number.isFinite(l))&&(l=1),{x:s,y:l}}var tf=yt(0);function wl(t){let e=Ne(t);return!ii()||!e.visualViewport?tf:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function rf(t,e,r){return e===void 0&&(e=!1),!r||e&&r!==Ne(t)?!1:e}function uo(t,e,r,o){e===void 0&&(e=!1),r===void 0&&(r=!1);let n=t.getBoundingClientRect(),a=El(t),s=yt(1);e&&(o?ot(o)&&(s=Or(o)):s=Or(t));let l=rf(a,r,o)?wl(a):yt(0),c=(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 g=Ne(a),b=o&&ot(o)?Ne(o):o,x=g.frameElement;for(;x&&o&&b!==g;){let C=Or(x),$=x.getBoundingClientRect(),L=Me(x),I=$.left+(x.clientLeft+parseFloat(L.paddingLeft))*C.x,O=$.top+(x.clientTop+parseFloat(L.paddingTop))*C.y;c*=C.x,p*=C.y,f*=C.x,h*=C.y,c+=I,p+=O,x=Ne(x).frameElement}}return er({width:f,height:h,x:c,y:p})}function of(t){let{rect:e,offsetParent:r,strategy:o}=t,n=Ze(r),a=bt(r);if(r===a)return e;let s={scrollLeft:0,scrollTop:0},l=yt(1),c=yt(0);if((n||!n&&o!=="fixed")&&((gt(r)!=="body"||Sr(a))&&(s=fo(r)),Ze(r))){let p=uo(r);l=Or(r),c.x=p.x+r.clientLeft,c.y=p.y+r.clientTop}return{width:e.width*l.x,height:e.height*l.y,x:e.x*l.x-s.scrollLeft*l.x+c.x,y:e.y*l.y-s.scrollTop*l.y+c.y}}function nf(t){return Array.from(t.getClientRects())}function Al(t){return uo(bt(t)).left+fo(t).scrollLeft}function af(t){let e=bt(t),r=fo(t),o=t.ownerDocument.body,n=Tt(e.scrollWidth,e.clientWidth,o.scrollWidth,o.clientWidth),a=Tt(e.scrollHeight,e.clientHeight,o.scrollHeight,o.clientHeight),s=-r.scrollLeft+Al(t),l=-r.scrollTop;return Me(o).direction==="rtl"&&(s+=Tt(e.clientWidth,o.clientWidth)-n),{width:n,height:a,x:s,y:l}}function sf(t,e){let r=Ne(t),o=bt(t),n=r.visualViewport,a=o.clientWidth,s=o.clientHeight,l=0,c=0;if(n){a=n.width,s=n.height;let p=ii();(!p||p&&e==="fixed")&&(l=n.offsetLeft,c=n.offsetTop)}return{width:a,height:s,x:l,y:c}}function lf(t,e){let r=uo(t,!0,e==="fixed"),o=r.top+t.clientTop,n=r.left+t.clientLeft,a=Ze(t)?Or(t):yt(1),s=t.clientWidth*a.x,l=t.clientHeight*a.y,c=n*a.x,p=o*a.y;return{width:s,height:l,x:c,y:p}}function Sl(t,e,r){let o;if(e==="viewport")o=sf(t,r);else if(e==="document")o=af(bt(t));else if(ot(e))o=lf(e,r);else{let n=wl(t);o={...e,x:e.x-n.x,y:e.y-n.y}}return er(o)}function Rl(t,e){let r=tr(t);return r===e||!ot(r)||po(r)?!1:Me(r).position==="fixed"||Rl(r,e)}function cf(t,e){let r=e.get(t);if(r)return r;let o=ri(t,[],!1).filter(l=>ot(l)&>(l)!=="body"),n=null,a=Me(t).position==="fixed",s=a?tr(t):t;for(;ot(s)&&!po(s);){let l=Me(s),c=oi(s);!c&&l.position==="fixed"&&(n=null),(a?!c&&!n:!c&&l.position==="static"&&!!n&&["absolute","fixed"].includes(n.position)||Sr(s)&&!c&&Rl(t,s))?o=o.filter(f=>f!==s):n=l,s=tr(s)}return e.set(t,o),o}function df(t){let{element:e,boundary:r,rootBoundary:o,strategy:n}=t,s=[...r==="clippingAncestors"?cf(e,this._c):[].concat(r),o],l=s[0],c=s.reduce((p,f)=>{let h=Sl(e,f,n);return p.top=Tt(h.top,p.top),p.right=lo(h.right,p.right),p.bottom=lo(h.bottom,p.bottom),p.left=Tt(h.left,p.left),p},Sl(e,l,n));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function pf(t){return Cl(t)}function ff(t,e,r){let o=Ze(e),n=bt(e),a=r==="fixed",s=uo(t,!0,a,e),l={scrollLeft:0,scrollTop:0},c=yt(0);if(o||!o&&!a)if((gt(e)!=="body"||Sr(n))&&(l=fo(e)),o){let p=uo(e,!0,a,e);c.x=p.x+e.clientLeft,c.y=p.y+e.clientTop}else n&&(c.x=Al(n));return{x:s.left+l.scrollLeft-c.x,y:s.top+l.scrollTop-c.y,width:s.width,height:s.height}}function Ol(t,e){return!Ze(t)||Me(t).position==="fixed"?null:e?e(t):t.offsetParent}function Nl(t,e){let r=Ne(t);if(!Ze(t))return r;let o=Ol(t,e);for(;o&&bl(o)&&Me(o).position==="static";)o=Ol(o,e);return o&&(gt(o)==="html"||gt(o)==="body"&&Me(o).position==="static"&&!oi(o))?r:o||xl(t)||r}var uf=async function(t){let{reference:e,floating:r,strategy:o}=t,n=this.getOffsetParent||Nl,a=this.getDimensions;return{reference:ff(e,await n(r),o),floating:{x:0,y:0,...await a(r)}}};function hf(t){return Me(t).direction==="rtl"}var ni={convertOffsetParentRelativeRectToViewportRelativeRect:of,getDocumentElement:bt,getClippingRect:df,getOffsetParent:Nl,getElementRects:uf,getClientRects:nf,getDimensions:pf,getScale:Or,isElement:ot,isRTL:hf};var _l=(t,e,r)=>{let o=new Map,n={platform:ni,...r},a={...n.platform,_c:o};return ml(t,e,{...n,platform:a})};function Tl(t){return mf(t)}function oa(t){return t.assignedSlot?t.assignedSlot:t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}function mf(t){for(let e=t;e;e=oa(e))if(e instanceof Element&&getComputedStyle(e).display==="none")return null;for(let e=oa(t);e;e=oa(e)){if(!(e instanceof Element))continue;let r=getComputedStyle(e);if(r.display!=="contents"&&(r.position!=="static"||r.filter!=="none"||e.tagName==="BODY"))return e}return null}async function ia(t,e,r){return _l(t,e,{platform:{...ni,getOffsetParent:o=>ni.getOffsetParent(o,Tl)},middleware:[ra({crossAxis:!0}),ta({allowedPlacements:[r]})]})}var la={};J(la,{FtdsBase:()=>mo,toFtdsBase:()=>li});var sa={};J(sa,{FtLitElement:()=>M});var aa={};J(aa,{ScopedRegistryLitElement:()=>ho});var ai=window,yf=ai.ShadowRoot&&(ai.ShadyCSS===void 0||ai.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Zg=Symbol();var Pl=(t,e)=>{yf?t.adoptedStyleSheets=e.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet):e.forEach(r=>{let o=document.createElement("style"),n=ai.litNonce;n!==void 0&&o.setAttribute("nonce",n),o.textContent=r.cssText,t.appendChild(o)})};var ho=class extends ft{createRenderRoot(){let e=this.constructor;e.elementDefinitions&&!e.registry&&(e.registry=new CustomElementRegistry,Object.entries(e.elementDefinitions).forEach(([n,a])=>e.registry.define(n,a)));let r={...e.shadowRootOptions,customElements:e.registry},o=this.renderOptions.creationScope=this.attachShadow(r);return Pl(o,e.elementStyles),o}};var si=function(t,e,r,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},kl,$l=Symbol("constructorPrototype"),Ll=Symbol("constructorName"),Dl=Symbol("exportpartsDebouncer"),Il=Symbol("dynamicDependenciesLoaded"),M=class extends ho{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[kl]=new oe(5),this[Ll]=this.constructor.name,this[$l]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Ll]&&Object.setPrototypeOf(this,this[$l])}connectedCallback(){super.connectedCallback();try{this.shadowRoot&&!this.shadowRoot.adoptedStyleSheets.includes(this.adoptedCustomStyleSheet)&&(this.shadowRoot.adoptedStyleSheets=[...this.shadowRoot.adoptedStyleSheets,this.adoptedCustomStyleSheet]),this.useAdoptedStyleSheets=!0}catch(r){this.useAdoptedStyleSheets=!1,console.error("Cannot use adopted stylesheets",r)}let e=this.constructor;e[Il]||(e[Il]=!0,this.importDynamicDependencies())}importDynamicDependencies(){}updated(e){super.updated(e),this.updateComplete.then(()=>{this.contentAvailableCallback(e),this.applyCustomStylesheet(e),this.scheduleExportpartsUpdate()})}contentAvailableCallback(e){}applyCustomStylesheet(e){var r,o,n;if(((o=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll(".ft-lit-element--custom-stylesheet"))!==null&&o!==void 0?o:[]).forEach(a=>a.remove()),this.useAdoptedStyleSheets){if(e.has("customStylesheet"))try{this.adoptedCustomStyleSheet.replaceSync((n=this.customStylesheet)!==null&&n!==void 0?n:"")}catch(a){console.error(a,this.customStylesheet),this.useAdoptedStyleSheets=!1}}else if(this.customStylesheet){let a=document.createElement("style");a.classList.add("ft-lit-element--custom-stylesheet"),a.innerHTML=this.customStylesheet,this.shadowRoot.append(a)}}scheduleExportpartsUpdate(){var e,r,o;(!((e=this.exportpartsPrefix)===null||e===void 0)&&e.trim()||(o=(r=this.exportpartsPrefixes)===null||r===void 0?void 0:r.length)!==null&&o!==void 0&&o)&&this[Dl].run(()=>{var n,a;!((n=this.exportpartsPrefix)===null||n===void 0)&&n.trim()?this.setExportpartsAttribute([this.exportpartsPrefix]):this.exportpartsPrefixes!=null&&((a=this.exportpartsPrefixes)===null||a===void 0?void 0:a.length)>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)})}setExportpartsAttribute(e){var r,o,n,a,s,l;let c=g=>g!=null&&g.trim().length>0,p=e.filter(c).map(g=>g.trim());if(p.length===0){this.removeAttribute("exportparts");return}let f=new Set;for(let g of(o=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll("[part],[exportparts]"))!==null&&o!==void 0?o:[]){let b=(a=(n=g.getAttribute("part"))===null||n===void 0?void 0:n.split(" "))!==null&&a!==void 0?a:[],x=(l=(s=g.getAttribute("exportparts"))===null||s===void 0?void 0:s.split(",").map(C=>C.split(":")[1]))!==null&&l!==void 0?l:[];new Array(...b,...x).filter(c).map(C=>C.trim()).forEach(C=>f.add(C))}if(f.size===0){this.removeAttribute("exportparts");return}let h=[...f.values()].flatMap(g=>p.map(b=>`${g}:${b}--${g}`));this.setAttribute("exportparts",[...this.part,...h].join(", "))}};kl=Dl;si([y()],M.prototype,"exportpartsPrefix",void 0);si([be([])],M.prototype,"exportpartsPrefixes",void 0);si([y()],M.prototype,"customStylesheet",void 0);si([K()],M.prototype,"useAdoptedStyleSheets",void 0);var Ml=function(t,e,r,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a};function li(t){class e extends t{constructor(){super(...arguments),this.size=he.medium,this.family=mt.neutral}getDesignSystemBaseClasses(){return{[Fn(this.family)]:!0,[zn(this.size)]:!0}}}return Ml([y()],e.prototype,"size",void 0),Ml([y()],e.prototype,"family",void 0),e}var mo=class extends li(M){};var Ul={};var pa={};J(pa,{highlightHtml:()=>da,highlightHtmlColorCssVariable:()=>Bl,highlightHtmlStyles:()=>bf});var rr=class t{constructor(e,r=!0,o=[],n=5e3){this.ctx=e,this.iframes=r,this.exclude=o,this.iframesTimeout=n}static matches(e,r){let o=typeof r=="string"?[r]:r,n=e.matches||e.matchesSelector||e.msMatchesSelector||e.mozMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector;if(n){let a=!1;return o.every(s=>n.call(e,s)?(a=!0,!1):!0),a}else return!1}getContexts(){let e,r=[];return typeof this.ctx>"u"||!this.ctx?e=[]:NodeList.prototype.isPrototypeOf(this.ctx)?e=Array.prototype.slice.call(this.ctx):Array.isArray(this.ctx)?e=this.ctx:typeof this.ctx=="string"?e=Array.prototype.slice.call(document.querySelectorAll(this.ctx)):e=[this.ctx],e.forEach(o=>{let n=r.filter(a=>a.contains(o)).length>0;r.indexOf(o)===-1&&!n&&r.push(o)}),r}getIframeContents(e,r,o=()=>{}){let n;try{let a=e.contentWindow;if(n=a.document,!a||!n)throw new Error("iframe inaccessible")}catch{o()}n&&r(n)}isIframeBlank(e){let r="about:blank",o=e.getAttribute("src").trim();return e.contentWindow.location.href===r&&o!==r&&o}observeIframeLoad(e,r,o){let n=!1,a=null,s=()=>{if(!n){n=!0,clearTimeout(a);try{this.isIframeBlank(e)||(e.removeEventListener("load",s),this.getIframeContents(e,r,o))}catch{o()}}};e.addEventListener("load",s),a=setTimeout(s,this.iframesTimeout)}onIframeReady(e,r,o){try{e.contentWindow.document.readyState==="complete"?this.isIframeBlank(e)?this.observeIframeLoad(e,r,o):this.getIframeContents(e,r,o):this.observeIframeLoad(e,r,o)}catch{o()}}waitForIframes(e,r){let o=0;this.forEachIframe(e,()=>!0,n=>{o++,this.waitForIframes(n.querySelector("html"),()=>{--o||r()})},n=>{n||r()})}forEachIframe(e,r,o,n=()=>{}){let a=e.querySelectorAll("iframe"),s=a.length,l=0;a=Array.prototype.slice.call(a);let c=()=>{--s<=0&&n(l)};s||c(),a.forEach(p=>{t.matches(p,this.exclude)?c():this.onIframeReady(p,f=>{r(p)&&(l++,o(f)),c()},c)})}createIterator(e,r,o){return document.createNodeIterator(e,r,o,!1)}createInstanceOnIframe(e){return new t(e.querySelector("html"),this.iframes)}compareNodeIframe(e,r,o){let n=e.compareDocumentPosition(o),a=Node.DOCUMENT_POSITION_PRECEDING;if(n&a)if(r!==null){let s=r.compareDocumentPosition(o),l=Node.DOCUMENT_POSITION_FOLLOWING;if(s&l)return!0}else return!0;return!1}getIteratorNode(e){let r=e.previousNode(),o;return r===null?o=e.nextNode():o=e.nextNode()&&e.nextNode(),{prevNode:r,node:o}}checkIframeFilter(e,r,o,n){let a=!1,s=!1;return n.forEach((l,c)=>{l.val===o&&(a=c,s=l.handled)}),this.compareNodeIframe(e,r,o)?(a===!1&&!s?n.push({val:o,handled:!0}):a!==!1&&!s&&(n[a].handled=!0),!0):(a===!1&&n.push({val:o,handled:!1}),!1)}handleOpenIframes(e,r,o,n){e.forEach(a=>{a.handled||this.getIframeContents(a.val,s=>{this.createInstanceOnIframe(s).forEachNode(r,o,n)})})}iterateThroughNodes(e,r,o,n,a){let s=this.createIterator(r,e,n),l=[],c=[],p,f,h=()=>({prevNode:f,node:p}=this.getIteratorNode(s),p);for(;h();)this.iframes&&this.forEachIframe(r,g=>this.checkIframeFilter(p,f,g,l),g=>{this.createInstanceOnIframe(g).forEachNode(e,b=>c.push(b),n)}),c.push(p);c.forEach(g=>{o(g)}),this.iframes&&this.handleOpenIframes(l,e,o,n),a()}forEachNode(e,r,o,n=()=>{}){let a=this.getContexts(),s=a.length;s||n(),a.forEach(l=>{let c=()=>{this.iterateThroughNodes(e,l,r,o,()=>{--s<=0&&n()})};this.iframes?this.waitForIframes(l,c):c()})}};var yo=class{constructor(e){this.ctx=e,this.ie=!1;let r=window.navigator.userAgent;(r.indexOf("MSIE")>-1||r.indexOf("Trident")>-1)&&(this.ie=!0)}set opt(e){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},e)}get opt(){return this._opt}get iterator(){return new rr(this.ctx,this.opt.iframes,this.opt.exclude,this.opt.iframesTimeout)}log(e,r="debug"){let o=this.opt.log;this.opt.debug&&typeof o=="object"&&typeof o[r]=="function"&&o[r](`mark.js: ${e}`)}escapeStr(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}createRegExp(e){return this.opt.wildcards!=="disabled"&&(e=this.setupWildcardsRegExp(e)),e=this.escapeStr(e),Object.keys(this.opt.synonyms).length&&(e=this.createSynonymsRegExp(e)),(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(e=this.setupIgnoreJoinersRegExp(e)),this.opt.diacritics&&(e=this.createDiacriticsRegExp(e)),e=this.createMergedBlanksRegExp(e),(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(e=this.createJoinersRegExp(e)),this.opt.wildcards!=="disabled"&&(e=this.createWildcardsRegExp(e)),e=this.createAccuracyRegExp(e),e}createSynonymsRegExp(e){let r=this.opt.synonyms,o=this.opt.caseSensitive?"":"i",n=this.opt.ignoreJoiners||this.opt.ignorePunctuation.length?"\0":"";for(let a in r)if(r.hasOwnProperty(a)){let s=r[a],l=this.opt.wildcards!=="disabled"?this.setupWildcardsRegExp(a):this.escapeStr(a),c=this.opt.wildcards!=="disabled"?this.setupWildcardsRegExp(s):this.escapeStr(s);l!==""&&c!==""&&(e=e.replace(new RegExp(`(${this.escapeStr(l)}|${this.escapeStr(c)})`,`gm${o}`),n+`(${this.processSynomyms(l)}|${this.processSynomyms(c)})`+n))}return e}processSynomyms(e){return(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(e=this.setupIgnoreJoinersRegExp(e)),e}setupWildcardsRegExp(e){return e=e.replace(/(?:\\)*\?/g,r=>r.charAt(0)==="\\"?"?":""),e.replace(/(?:\\)*\*/g,r=>r.charAt(0)==="\\"?"*":"")}createWildcardsRegExp(e){let r=this.opt.wildcards==="withSpaces";return e.replace(/\u0001/g,r?"[\\S\\s]?":"\\S?").replace(/\u0002/g,r?"[\\S\\s]*?":"\\S*")}setupIgnoreJoinersRegExp(e){return e.replace(/[^(|)\\]/g,(r,o,n)=>{let a=n.charAt(o+1);return/[(|)\\]/.test(a)||a===""?r:r+"\0"})}createJoinersRegExp(e){let r=[],o=this.opt.ignorePunctuation;return Array.isArray(o)&&o.length&&r.push(this.escapeStr(o.join(""))),this.opt.ignoreJoiners&&r.push("\\u00ad\\u200b\\u200c\\u200d"),r.length?e.split(/\u0000+/).join(`[${r.join("")}]*`):e}createDiacriticsRegExp(e){let r=this.opt.caseSensitive?"":"i",o=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 e.split("").forEach(a=>{o.every(s=>{if(s.indexOf(a)!==-1){if(n.indexOf(s)>-1)return!1;e=e.replace(new RegExp(`[${s}]`,`gm${r}`),`[${s}]`),n.push(s)}return!0})}),e}createMergedBlanksRegExp(e){return e.replace(/[\s]+/gmi,"[\\s]+")}createAccuracyRegExp(e){let r="!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~\xA1\xBF",o=this.opt.accuracy,n=typeof o=="string"?o:o.value,a=typeof o=="string"?[]:o.limiters,s="";switch(a.forEach(l=>{s+=`|${this.escapeStr(l)}`}),n){case"partially":default:return`()(${e})`;case"complementary":return s="\\s"+(s||this.escapeStr(r)),`()([^${s}]*${e}[^${s}]*)`;case"exactly":return`(^|\\s${s})(${e})(?=$|\\s${s})`}}getSeparatedKeywords(e){let r=[];return e.forEach(o=>{this.opt.separateWordSearch?o.split(" ").forEach(n=>{n.trim()&&r.indexOf(n)===-1&&r.push(n)}):o.trim()&&r.indexOf(o)===-1&&r.push(o)}),{keywords:r.sort((o,n)=>n.length-o.length),length:r.length}}isNumeric(e){return Number(parseFloat(e))==e}checkRanges(e){if(!Array.isArray(e)||Object.prototype.toString.call(e[0])!=="[object Object]")return this.log("markRanges() will only accept an array of objects"),this.opt.noMatch(e),[];let r=[],o=0;return e.sort((n,a)=>n.start-a.start).forEach(n=>{let{start:a,end:s,valid:l}=this.callNoMatchOnInvalidRanges(n,o);l&&(n.start=a,n.length=s-a,r.push(n),o=s)}),r}callNoMatchOnInvalidRanges(e,r){let o,n,a=!1;return e&&typeof e.start<"u"?(o=parseInt(e.start,10),n=o+parseInt(e.length,10),this.isNumeric(e.start)&&this.isNumeric(e.length)&&n-r>0&&n-o>0?a=!0:(this.log(`Ignoring invalid or overlapping range: ${JSON.stringify(e)}`),this.opt.noMatch(e))):(this.log(`Ignoring invalid range: ${JSON.stringify(e)}`),this.opt.noMatch(e)),{start:o,end:n,valid:a}}checkWhitespaceRanges(e,r,o){let n,a=!0,s=o.length,l=r-s,c=parseInt(e.start,10)-l;return c=c>s?s:c,n=c+parseInt(e.length,10),n>s&&(n=s,this.log(`End range automatically set to the max value of ${s}`)),c<0||n-c<0||c>s||n>s?(a=!1,this.log(`Invalid range: ${JSON.stringify(e)}`),this.opt.noMatch(e)):o.substring(c,n).replace(/\s+/g,"")===""&&(a=!1,this.log("Skipping whitespace only range: "+JSON.stringify(e)),this.opt.noMatch(e)),{start:c,end:n,valid:a}}getTextNodes(e){let r="",o=[];this.iterator.forEachNode(NodeFilter.SHOW_TEXT,n=>{o.push({start:r.length,end:(r+=n.textContent).length,node:n})},n=>this.matchesExclude(n.parentNode)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT,()=>{e({value:r,nodes:o})})}matchesExclude(e){return rr.matches(e,this.opt.exclude.concat(["script","style","title","head","html"]))}wrapRangeInTextNode(e,r,o){let n=this.opt.element?this.opt.element:"mark",a=e.splitText(r),s=a.splitText(o-r),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(e,r,o,n,a){e.nodes.every((s,l)=>{let c=e.nodes[l+1];if(typeof c>"u"||c.start>r){if(!n(s.node))return!1;let p=r-s.start,f=(o>s.end?s.end:o)-s.start,h=e.value.substr(0,s.start),g=e.value.substr(f+s.start);if(s.node=this.wrapRangeInTextNode(s.node,p,f),e.value=h+g,e.nodes.forEach((b,x)=>{x>=l&&(e.nodes[x].start>0&&x!==l&&(e.nodes[x].start-=f),e.nodes[x].end-=f)}),o-=f,a(s.node.previousSibling,s.start),o>s.end)r=s.end;else return!1}return!0})}wrapMatches(e,r,o,n,a){let s=r===0?0:r+1;this.getTextNodes(l=>{l.nodes.forEach(c=>{c=c.node;let p;for(;(p=e.exec(c.textContent))!==null&&p[s]!=="";){if(!o(p[s],c))continue;let f=p.index;if(s!==0)for(let h=1;h<s;h++)f+=p[h].length;c=this.wrapRangeInTextNode(c,f,f+p[s].length),n(c.previousSibling),e.lastIndex=0}}),a()})}wrapMatchesAcrossElements(e,r,o,n,a){let s=r===0?0:r+1;this.getTextNodes(l=>{let c;for(;(c=e.exec(l.value))!==null&&c[s]!=="";){let p=c.index;if(s!==0)for(let h=1;h<s;h++)p+=c[h].length;let f=p+c[s].length;this.wrapRangeInMappedTextNode(l,p,f,h=>o(c[s],h),(h,g)=>{e.lastIndex=g,n(h)})}a()})}wrapRangeFromIndex(e,r,o,n){this.getTextNodes(a=>{let s=a.value.length;e.forEach((l,c)=>{let{start:p,end:f,valid:h}=this.checkWhitespaceRanges(l,s,a.value);h&&this.wrapRangeInMappedTextNode(a,p,f,g=>r(g,l,a.value.substring(p,f),c),g=>{o(g,l)})}),n()})}unwrapMatches(e){let r=e.parentNode,o=document.createDocumentFragment();for(;e.firstChild;)o.appendChild(e.removeChild(e.firstChild));r.replaceChild(o,e),this.ie?this.normalizeTextNode(r):r.normalize()}normalizeTextNode(e){if(e){if(e.nodeType===3)for(;e.nextSibling&&e.nextSibling.nodeType===3;)e.nodeValue+=e.nextSibling.nodeValue,e.parentNode.removeChild(e.nextSibling);else this.normalizeTextNode(e.firstChild);this.normalizeTextNode(e.nextSibling)}}markRegExp(e,r){this.opt=r,this.log(`Searching with expression "${e}"`);let o=0,n="wrapMatches",a=s=>{o++,this.opt.each(s)};this.opt.acrossElements&&(n="wrapMatchesAcrossElements"),this[n](e,this.opt.ignoreGroups,(s,l)=>this.opt.filter(l,s,o),a,()=>{o===0&&this.opt.noMatch(e),this.opt.done(o)})}mark(e,r){this.opt=r;let o=0,n="wrapMatches",{keywords:a,length:s}=this.getSeparatedKeywords(typeof e=="string"?[e]:e),l=this.opt.caseSensitive?"":"i",c=p=>{let f=new RegExp(this.createRegExp(p),`gm${l}`),h=0;this.log(`Searching with expression "${f}"`),this[n](f,1,(g,b)=>this.opt.filter(b,p,o,h),g=>{h++,o++,this.opt.each(g)},()=>{h===0&&this.opt.noMatch(p),a[s-1]===p?this.opt.done(o):c(a[a.indexOf(p)+1])})};this.opt.acrossElements&&(n="wrapMatchesAcrossElements"),s===0?this.opt.done(o):c(a[0])}markRanges(e,r){this.opt=r;let o=0,n=this.checkRanges(e);n&&n.length?(this.log("Starting to mark with the following ranges: "+JSON.stringify(n)),this.wrapRangeFromIndex(n,(a,s,l,c)=>this.opt.filter(a,s,l,c),(a,s)=>{o++,this.opt.each(a,s)},()=>{this.opt.done(o)})):this.opt.done(o)}unmark(e){this.opt=e;let r=this.opt.element?this.opt.element:"*";r+="[data-markjs]",this.opt.className&&(r+=`.${this.opt.className}`),this.log(`Removal selector "${r}"`),this.iterator.forEachNode(NodeFilter.SHOW_ELEMENT,o=>{this.unwrapMatches(o)},o=>{let n=rr.matches(o,r),a=this.matchesExclude(o);return!n||a?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT},this.opt.done)}};function ca(t){let e=new yo(t);return this.mark=(r,o)=>(e.mark(r,o),this),this.markRegExp=(r,o)=>(e.markRegExp(r,o),this),this.markRanges=(r,o)=>(e.markRanges(r,o),this),this.unmark=r=>(e.unmark(r),this),this}var gf=ca,Bl=i.create("--ft-utils-highlight-html-background-color","","COLOR","#FFF26E"),bf=N`
|
|
7
7
|
.highlight-html-match {
|
|
8
|
-
background: ${
|
|
8
|
+
background: ${Bl};
|
|
9
9
|
}
|
|
10
|
-
|
|
10
|
+
`;function da(t,e,r){var o,n;let a=t.getAttribute("data-highlight-html-query");if((a??"")!==(e??"")){let s=new gf(t);if(s.unmark(),e&&e.trim()){let l={className:(o=r?.className)!==null&&o!==void 0?o:"highlight-html-match"};r?.attributes!=null&&(l.each=p=>{for(let f in r.attributes)p.setAttribute(f,r.attributes[f])}),s.mark(e.replace(/"[^"]+"/g,""),{...l,separateWordSearch:!0}),((n=e.match(/"[^"]+"/g))!==null&&n!==void 0?n:[]).forEach(p=>s.mark(p.replace(/"/g,""),{...l,separateWordSearch:!1}))}}t.setAttribute("data-highlight-html-query",e??"")}var ua={};J(ua,{noTextInputDefaultClearButton:()=>fa,noTextSelect:()=>or,safariEllipsisFix:()=>go,wordWrap:()=>xf});var or=N`
|
|
11
11
|
.ft-no-text-select {
|
|
12
12
|
-webkit-touch-callout: none;
|
|
13
13
|
-webkit-user-select: none;
|
|
@@ -16,7 +16,7 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
16
16
|
-ms-user-select: none;
|
|
17
17
|
user-select: none;
|
|
18
18
|
}
|
|
19
|
-
`,
|
|
19
|
+
`,xf=N`
|
|
20
20
|
.ft-word-wrap {
|
|
21
21
|
white-space: normal;
|
|
22
22
|
word-wrap: break-word;
|
|
@@ -39,27 +39,27 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
39
39
|
display: inline-block;
|
|
40
40
|
width: 0;
|
|
41
41
|
}
|
|
42
|
-
`,
|
|
42
|
+
`,fa=N`
|
|
43
43
|
input::-webkit-search-cancel-button,
|
|
44
44
|
input::-webkit-search-decoration,
|
|
45
45
|
input::-webkit-search-results-button,
|
|
46
46
|
input::-webkit-search-results-decoration {
|
|
47
47
|
display: none;
|
|
48
48
|
}
|
|
49
|
-
`;var Il={};var ua={};J(ua,{ParametrizedLabelResolver:()=>bo});var bo=class{constructor(e,r){this.defaultLabels=e,this.labels=r}resolve(e,...r){var i,n;e=this.resolvePluralKey(e,r);let a=(n=(i=this.labels[e])!==null&&i!==void 0?i:this.defaultLabels[e])!==null&&n!==void 0?n:"";return r.forEach((s,l)=>a=a.replace(new RegExp(`\\{${l}([^}]*)\\}`,"g"),(c,p)=>this.formatValue(s,p))),a}resolvePluralKey(e,r){for(let i of r)if(typeof i=="number"){let n=`${String(e)}[\\=${i}]`;if(n in this.labels||n in this.defaultLabels)return n}return e}formatValue(e,r){return e instanceof Date?this.formatDate(e,r):e??""}formatDate(e,r){let i=n=>r?.includes("date")?e.toLocaleDateString(n):r?.includes("time")?e.toLocaleTimeString(n):e.toLocaleString(n);try{return i(document.documentElement.lang)}catch{return i()}}};var Ba={};J(Ba,{FtCommandQueue:()=>xo,FtLitElementRedux:()=>We,FtReduxStore:()=>vt,clearAllStores:()=>Qf,isFtReduxStore:()=>ir,redux:()=>fe,reduxEventListener:()=>yf,reduxReactive:()=>mf});var mf=()=>(t,e)=>{var r;let i=t.constructor;i.reduxReactiveProperties=new Set(i.reduxReactiveProperties),(r=i.reduxReactiveProperties)===null||r===void 0||r.add(e)},fe=t=>{let e=t??{};return(r,i)=>{var n;let a={hasChanged:ao,attribute:!1,...e};y(a)(r,i);let s=r.constructor;s.reduxProperties=new Map(s.reduxProperties),s.reduxProperties.set(i,{selector:(n=e.selector)!==null&&n!==void 0?n:l=>l[i],store:e.store})}},yf=t=>(e,r)=>{let i=e.constructor;i.reduxEventListeners=new Map(i.reduxEventListeners),i.reduxEventListeners.set(r,t)};var xo=class{constructor(){this.queue=[]}add(e,r=!1){r&&(this.queue=this.queue.filter(i=>i.type!==e.type)),this.queue.push(e)}consume(e){let r=this.queue.find(i=>i.type===e);return r&&(this.queue=this.queue.filter(i=>i!==r)),r}};function ir(t){var e;return(e=t?.isFtReduxStore)!==null&&e!==void 0?e:!1}var kl,Dl,Ml,ci=Symbol("internalReduxEventsUnsubscribers"),$t=Symbol("internalStoresUnsubscribers"),nr=Symbol("internalStores"),We=class extends M{constructor(){super(...arguments),this[kl]=new Map,this[Dl]=new Map,this[Ml]=[]}get reduxConstructor(){return this.constructor}update(e){super.update(e),[...this.reduxConstructor.reduxReactiveProperties].some(r=>e.has(r))&&this.updateFromStores()}getUnnamedStore(){if(this[nr].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[nr].values()][0]}getStore(e){return e==null?this.getUnnamedStore():this[nr].get(e)}addStore(e,r){var i;r=(i=r??(ir(e)?e.name:void 0))!==null&&i!==void 0?i:"default-store",this.unsubscribeFromStore(r),this.setupStore(r,e)}removeStore(e){let r=typeof e=="string"?e:e.name;this.unsubscribeFromStore(r),this[nr].delete(r)}setupStore(e,r){this[nr].set(e,r),this.subscribeToStore(e,r),this.updateFromStores()}setupStores(){this.unsubscribeFromStores(),this[nr].forEach((e,r)=>this.subscribeToStore(r,e)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((e,r)=>{let i=this.constructor.getPropertyOptions(r);if(!i?.attribute||!this.hasAttribute(typeof i?.attribute=="string"?i.attribute:r)){let n=this.getStore(e.store);n&&(e.store?this[$t].has(e.store):this[$t].size>0)&&(this[r]=e.selector(n.getState(),this))}})}subscribeToStore(e,r){var i;this[$t].set(e,r.subscribe(()=>this.updateFromStores())),ir(r)&&r.eventBus&&((i=this.reduxConstructor.reduxEventListeners)===null||i===void 0||i.forEach((n,a)=>{if(typeof this[a]=="function"&&(!n.store||r.name===n.store)){let s=l=>this[a](l);r.eventBus.addEventListener(n.eventName,s),this[ci].push(()=>r.eventBus.removeEventListener(n.eventName,s))}})),this.onStoreAvailable(e)}unsubscribeFromStores(){this[$t].forEach((e,r)=>this.unsubscribeFromStore(r)),this[ci].forEach(e=>e()),this[ci]=[]}unsubscribeFromStore(e){this[$t].has(e)&&this[$t].get(e)(),this[$t].delete(e)}onStoreAvailable(e){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}};kl=$t,Dl=nr,Ml=ci;We.reduxProperties=new Map;We.reduxReactiveProperties=new Set;We.reduxEventListeners=new Map;function He(t){for(var e=arguments.length,r=Array(e>1?e-1:0),i=1;i<e;i++)r[i-1]=arguments[i];if(0)var n,a;throw Error("[Immer] minified error nr: "+t+(r.length?" "+r.map(function(s){return"'"+s+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function xt(t){return!!t&&!!t[ee]}function qe(t){var e;return!!t&&(function(r){if(!r||typeof r!="object")return!1;var i=Object.getPrototypeOf(r);if(i===null)return!0;var n=Object.hasOwnProperty.call(i,"constructor")&&i.constructor;return n===Object||typeof n=="function"&&Function.toString.call(n)===Ef}(t)||Array.isArray(t)||!!t[Vl]||!!(!((e=t.constructor)===null||e===void 0)&&e[Vl])||Oa(t)||Ca(t))}function ar(t,e,r){r===void 0&&(r=!1),Ar(t)===0?(r?Object.keys:wr)(t).forEach(function(i){r&&typeof i=="symbol"||e(i,t[i],t)}):t.forEach(function(i,n){return e(n,i,t)})}function Ar(t){var e=t[ee];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:Oa(t)?2:Ca(t)?3:0}function Er(t,e){return Ar(t)===2?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function gf(t,e){return Ar(t)===2?t.get(e):t[e]}function jl(t,e,r){var i=Ar(t);i===2?t.set(e,r):i===3?t.add(r):t[e]=r}function Kl(t,e){return t===e?t!==0||1/t==1/e:t!=t&&e!=e}function Oa(t){return Of&&t instanceof Map}function Ca(t){return Cf&&t instanceof Set}function Lt(t){return t.o||t.t}function Ea(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=ql(t);delete e[ee];for(var r=wr(e),i=0;i<r.length;i++){var n=r[i],a=e[n];a.writable===!1&&(a.writable=!0,a.configurable=!0),(a.get||a.set)&&(e[n]={configurable:!0,writable:!0,enumerable:a.enumerable,value:t[n]})}return Object.create(Object.getPrototypeOf(t),e)}function wa(t,e){return e===void 0&&(e=!1),Aa(t)||xt(t)||!qe(t)||(Ar(t)>1&&(t.set=t.add=t.clear=t.delete=bf),Object.freeze(t),e&&ar(t,function(r,i){return wa(i,!0)},!0)),t}function bf(){He(2)}function Aa(t){return t==null||typeof t!="object"||Object.isFrozen(t)}function it(t){var e=Sa[t];return e||He(18,t),e}function xf(t,e){Sa[t]||(Sa[t]=e)}function ba(){return So}function ha(t,e){e&&(it("Patches"),t.u=[],t.s=[],t.v=e)}function di(t){xa(t),t.p.forEach(vf),t.p=null}function xa(t){t===So&&(So=t.l)}function Ul(t){return So={p:[],l:So,h:t,m:!0,_:0}}function vf(t){var e=t[ee];e.i===0||e.i===1?e.j():e.g=!0}function ma(t,e){e._=e.p.length;var r=e.p[0],i=t!==void 0&&t!==r;return e.h.O||it("ES5").S(e,t,i),i?(r[ee].P&&(di(e),He(4)),qe(t)&&(t=pi(e,t),e.l||fi(e,t)),e.u&&it("Patches").M(r[ee].t,t,e.u,e.s)):t=pi(e,r,[]),di(e),e.u&&e.v(e.u,e.s),t!==Zl?t:void 0}function pi(t,e,r){if(Aa(e))return e;var i=e[ee];if(!i)return ar(e,function(l,c){return Bl(t,i,e,l,c,r)},!0),e;if(i.A!==t)return e;if(!i.P)return fi(t,i.t,!0),i.t;if(!i.I){i.I=!0,i.A._--;var n=i.i===4||i.i===5?i.o=Ea(i.k):i.o,a=n,s=!1;i.i===3&&(a=new Set(n),n.clear(),s=!0),ar(a,function(l,c){return Bl(t,i,n,l,c,r,s)}),fi(t,n,!1),r&&t.u&&it("Patches").N(i,r,t.u,t.s)}return i.o}function Bl(t,e,r,i,n,a,s){if(xt(n)){var l=pi(t,n,a&&e&&e.i!==3&&!Er(e.R,i)?a.concat(i):void 0);if(jl(r,i,l),!xt(l))return;t.m=!1}else s&&r.add(n);if(qe(n)&&!Aa(n)){if(!t.h.D&&t._<1)return;pi(t,n),e&&e.A.l||fi(t,n)}}function fi(t,e,r){r===void 0&&(r=!1),!t.l&&t.h.D&&t.m&&wa(e,r)}function ya(t,e){var r=t[ee];return(r?Lt(r):t)[e]}function Fl(t,e){if(e in t)for(var r=Object.getPrototypeOf(t);r;){var i=Object.getOwnPropertyDescriptor(r,e);if(i)return i;r=Object.getPrototypeOf(r)}}function It(t){t.P||(t.P=!0,t.l&&It(t.l))}function ga(t){t.o||(t.o=Ea(t.t))}function va(t,e,r){var i=Oa(e)?it("MapSet").F(e,r):Ca(e)?it("MapSet").T(e,r):t.O?function(n,a){var s=Array.isArray(n),l={i:s?1:0,A:a?a.A:ba(),P:!1,I:!1,R:{},l:a,t:n,k:null,o:null,j:null,C:!1},c=l,p=Oo;s&&(c=[l],p=vo);var u=Proxy.revocable(c,p),h=u.revoke,g=u.proxy;return l.k=g,l.j=h,g}(e,r):it("ES5").J(e,r);return(r?r.A:ba()).p.push(i),i}function Sf(t){return xt(t)||He(22,t),function e(r){if(!qe(r))return r;var i,n=r[ee],a=Ar(r);if(n){if(!n.P&&(n.i<4||!it("ES5").K(n)))return n.t;n.I=!0,i=zl(r,a),n.I=!1}else i=zl(r,a);return ar(i,function(s,l){n&&gf(n.t,s)===l||jl(i,s,e(l))}),a===3?new Set(i):i}(t)}function zl(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return Ea(t)}function Gl(){function t(s,l){var c=a[s];return c?c.enumerable=l:a[s]=c={configurable:!0,enumerable:l,get:function(){var p=this[ee];return Oo.get(p,s)},set:function(p){var u=this[ee];Oo.set(u,s,p)}},c}function e(s){for(var l=s.length-1;l>=0;l--){var c=s[l][ee];if(!c.P)switch(c.i){case 5:i(c)&&It(c);break;case 4:r(c)&&It(c)}}}function r(s){for(var l=s.t,c=s.k,p=wr(c),u=p.length-1;u>=0;u--){var h=p[u];if(h!==ee){var g=l[h];if(g===void 0&&!Er(l,h))return!0;var b=c[h],x=b&&b[ee];if(x?x.t!==g:!Kl(b,g))return!0}}var C=!!l[ee];return p.length!==wr(l).length+(C?0:1)}function i(s){var l=s.k;if(l.length!==s.t.length)return!0;var c=Object.getOwnPropertyDescriptor(l,l.length-1);if(c&&!c.get)return!0;for(var p=0;p<l.length;p++)if(!l.hasOwnProperty(p))return!0;return!1}function n(s){s.g&&He(3,JSON.stringify(Lt(s)))}var a={};xf("ES5",{J:function(s,l){var c=Array.isArray(s),p=function(h,g){if(h){for(var b=Array(g.length),x=0;x<g.length;x++)Object.defineProperty(b,""+x,t(x,!0));return b}var C=ql(g);delete C[ee];for(var P=wr(C),$=0;$<P.length;$++){var I=P[$];C[I]=t(I,h||!!C[I].enumerable)}return Object.create(Object.getPrototypeOf(g),C)}(c,s),u={i:c?5:4,A:l?l.A:ba(),P:!1,I:!1,R:{},l,t:s,k:p,o:null,g:!1,C:!1};return Object.defineProperty(p,ee,{value:u,writable:!0}),p},S:function(s,l,c){c?xt(l)&&l[ee].A===s&&e(s.p):(s.u&&function p(u){if(u&&typeof u=="object"){var h=u[ee];if(h){var g=h.t,b=h.k,x=h.R,C=h.i;if(C===4)ar(b,function(S){S!==ee&&(g[S]!==void 0||Er(g,S)?x[S]||p(b[S]):(x[S]=!0,It(h)))}),ar(g,function(S){b[S]!==void 0||Er(b,S)||(x[S]=!1,It(h))});else if(C===5){if(i(h)&&(It(h),x.length=!0),b.length<g.length)for(var P=b.length;P<g.length;P++)x[P]=!1;else for(var $=g.length;$<b.length;$++)x[$]=!0;for(var I=Math.min(b.length,g.length),O=0;O<I;O++)b.hasOwnProperty(O)||(x[O]=!0),x[O]===void 0&&p(b[O])}}}}(s.p[0]),e(s.p))},K:function(s){return s.i===4?r(s):i(s)}})}var Wl,So,Ra=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",Of=typeof Map<"u",Cf=typeof Set<"u",Hl=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",Zl=Ra?Symbol.for("immer-nothing"):((Wl={})["immer-nothing"]=!0,Wl),Vl=Ra?Symbol.for("immer-draftable"):"__$immer_draftable",ee=Ra?Symbol.for("immer-state"):"__$immer_state";var Ef=""+Object.prototype.constructor,wr=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,ql=Object.getOwnPropertyDescriptors||function(t){var e={};return wr(t).forEach(function(r){e[r]=Object.getOwnPropertyDescriptor(t,r)}),e},Sa={},Oo={get:function(t,e){if(e===ee)return t;var r=Lt(t);if(!Er(r,e))return function(n,a,s){var l,c=Fl(a,s);return c?"value"in c?c.value:(l=c.get)===null||l===void 0?void 0:l.call(n.k):void 0}(t,r,e);var i=r[e];return t.I||!qe(i)?i:i===ya(t.t,e)?(ga(t),t.o[e]=va(t.A.h,i,t)):i},has:function(t,e){return e in Lt(t)},ownKeys:function(t){return Reflect.ownKeys(Lt(t))},set:function(t,e,r){var i=Fl(Lt(t),e);if(i?.set)return i.set.call(t.k,r),!0;if(!t.P){var n=ya(Lt(t),e),a=n?.[ee];if(a&&a.t===r)return t.o[e]=r,t.R[e]=!1,!0;if(Kl(r,n)&&(r!==void 0||Er(t.t,e)))return!0;ga(t),It(t)}return t.o[e]===r&&(r!==void 0||e in t.o)||Number.isNaN(r)&&Number.isNaN(t.o[e])||(t.o[e]=r,t.R[e]=!0),!0},deleteProperty:function(t,e){return ya(t.t,e)!==void 0||e in t.t?(t.R[e]=!1,ga(t),It(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var r=Lt(t),i=Reflect.getOwnPropertyDescriptor(r,e);return i&&{writable:!0,configurable:t.i!==1||e!=="length",enumerable:i.enumerable,value:r[e]}},defineProperty:function(){He(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){He(12)}},vo={};ar(Oo,function(t,e){vo[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}}),vo.deleteProperty=function(t,e){return vo.set.call(this,t,e,void 0)},vo.set=function(t,e,r){return Oo.set.call(this,t[0],e,r,t[0])};var wf=function(){function t(r){var i=this;this.O=Hl,this.D=!0,this.produce=function(n,a,s){if(typeof n=="function"&&typeof a!="function"){var l=a;a=n;var c=i;return function(C){var P=this;C===void 0&&(C=l);for(var $=arguments.length,I=Array($>1?$-1:0),O=1;O<$;O++)I[O-1]=arguments[O];return c.produce(C,function(S){var E;return(E=a).call.apply(E,[P,S].concat(I))})}}var p;if(typeof a!="function"&&He(6),s!==void 0&&typeof s!="function"&&He(7),qe(n)){var u=Ul(i),h=va(i,n,void 0),g=!0;try{p=a(h),g=!1}finally{g?di(u):xa(u)}return typeof Promise<"u"&&p instanceof Promise?p.then(function(C){return ha(u,s),ma(C,u)},function(C){throw di(u),C}):(ha(u,s),ma(p,u))}if(!n||typeof n!="object"){if((p=a(n))===void 0&&(p=n),p===Zl&&(p=void 0),i.D&&wa(p,!0),s){var b=[],x=[];it("Patches").M(n,p,b,x),s(b,x)}return p}He(21,n)},this.produceWithPatches=function(n,a){if(typeof n=="function")return function(p){for(var u=arguments.length,h=Array(u>1?u-1:0),g=1;g<u;g++)h[g-1]=arguments[g];return i.produceWithPatches(p,function(b){return n.apply(void 0,[b].concat(h))})};var s,l,c=i.produce(n,a,function(p,u){s=p,l=u});return typeof Promise<"u"&&c instanceof Promise?c.then(function(p){return[p,s,l]}):[c,s,l]},typeof r?.useProxies=="boolean"&&this.setUseProxies(r.useProxies),typeof r?.autoFreeze=="boolean"&&this.setAutoFreeze(r.autoFreeze)}var e=t.prototype;return e.createDraft=function(r){qe(r)||He(8),xt(r)&&(r=Sf(r));var i=Ul(this),n=va(this,r,void 0);return n[ee].C=!0,xa(i),n},e.finishDraft=function(r,i){var n=r&&r[ee],a=n.A;return ha(a,i),ma(void 0,a)},e.setAutoFreeze=function(r){this.D=r},e.setUseProxies=function(r){r&&!Hl&&He(20),this.O=r},e.applyPatches=function(r,i){var n;for(n=i.length-1;n>=0;n--){var a=i[n];if(a.path.length===0&&a.op==="replace"){r=a.value;break}}n>-1&&(i=i.slice(n+1));var s=it("Patches").$;return xt(r)?s(r,i):this.produce(r,function(l){return s(l,i)})},t}(),Ue=new wf,Af=Ue.produce,hb=Ue.produceWithPatches.bind(Ue),mb=Ue.setAutoFreeze.bind(Ue),yb=Ue.setUseProxies.bind(Ue),gb=Ue.applyPatches.bind(Ue),bb=Ue.createDraft.bind(Ue),xb=Ue.finishDraft.bind(Ue),ui=Af;function kt(t){"@babel/helpers - typeof";return kt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},kt(t)}function Na(t,e){if(kt(t)!=="object"||t===null)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var i=r.call(t,e||"default");if(kt(i)!=="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function _a(t){var e=Na(t,"string");return kt(e)==="symbol"?e:String(e)}function Ta(t,e,r){return e=_a(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Yl(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable})),r.push.apply(r,i)}return r}function hi(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Yl(Object(r),!0).forEach(function(i){Ta(t,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Yl(Object(r)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(r,i))})}return t}function Oe(t){return"Minified Redux error #"+t+"; visit https://redux.js.org/Errors?code="+t+" for the full message or use the non-minified dev environment for full errors. "}var Xl=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),Pa=function(){return Math.random().toString(36).substring(7).split("").join(".")},mi={INIT:"@@redux/INIT"+Pa(),REPLACE:"@@redux/REPLACE"+Pa(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+Pa()}};function Rf(t){if(typeof t!="object"||t===null)return!1;for(var e=t;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}function $a(t,e,r){var i;if(typeof e=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(Oe(0));if(typeof e=="function"&&typeof r>"u"&&(r=e,e=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(Oe(1));return r($a)(t,e)}if(typeof t!="function")throw new Error(Oe(2));var n=t,a=e,s=[],l=s,c=!1;function p(){l===s&&(l=s.slice())}function u(){if(c)throw new Error(Oe(3));return a}function h(C){if(typeof C!="function")throw new Error(Oe(4));if(c)throw new Error(Oe(5));var P=!0;return p(),l.push(C),function(){if(P){if(c)throw new Error(Oe(6));P=!1,p();var I=l.indexOf(C);l.splice(I,1),s=null}}}function g(C){if(!Rf(C))throw new Error(Oe(7));if(typeof C.type>"u")throw new Error(Oe(8));if(c)throw new Error(Oe(9));try{c=!0,a=n(a,C)}finally{c=!1}for(var P=s=l,$=0;$<P.length;$++){var I=P[$];I()}return C}function b(C){if(typeof C!="function")throw new Error(Oe(10));n=C,g({type:mi.REPLACE})}function x(){var C,P=h;return C={subscribe:function(I){if(typeof I!="object"||I===null)throw new Error(Oe(11));function O(){I.next&&I.next(u())}O();var S=P(O);return{unsubscribe:S}}},C[Xl]=function(){return this},C}return g({type:mi.INIT}),i={dispatch:g,subscribe:h,getState:u,replaceReducer:b},i[Xl]=x,i}function Nf(t){Object.keys(t).forEach(function(e){var r=t[e],i=r(void 0,{type:mi.INIT});if(typeof i>"u")throw new Error(Oe(12));if(typeof r(void 0,{type:mi.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(Oe(13))})}function Jl(t){for(var e=Object.keys(t),r={},i=0;i<e.length;i++){var n=e[i];typeof t[n]=="function"&&(r[n]=t[n])}var a=Object.keys(r),s,l;try{Nf(r)}catch(c){l=c}return function(p,u){if(p===void 0&&(p={}),l)throw l;if(0)var h;for(var g=!1,b={},x=0;x<a.length;x++){var C=a[x],P=r[C],$=p[C],I=P($,u);if(typeof I>"u"){var O=u&&u.type;throw new Error(Oe(14))}b[C]=I,g=g||I!==$}return g=g||a.length!==Object.keys(p).length,g?b:p}}function Rr(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return e.length===0?function(i){return i}:e.length===1?e[0]:e.reduce(function(i,n){return function(){return i(n.apply(void 0,arguments))}})}function Ql(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return function(i){return function(){var n=i.apply(void 0,arguments),a=function(){throw new Error(Oe(15))},s={getState:n.getState,dispatch:function(){return a.apply(void 0,arguments)}},l=e.map(function(c){return c(s)});return a=Rr.apply(void 0,l)(n.dispatch),hi(hi({},n),{},{dispatch:a})}}}function ec(t){var e=function(i){var n=i.dispatch,a=i.getState;return function(s){return function(l){return typeof l=="function"?l(n,a,t):s(l)}}};return e}var tc=ec();tc.withExtraArgument=ec;var La=tc;var ac=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(i[a]=n[a])},t(e,r)};return function(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function i(){this.constructor=e}e.prototype=r===null?Object.create(r):(i.prototype=r.prototype,new i)}}(),_f=function(t,e){var r={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},i,n,a,s;return s={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function l(p){return function(u){return c([p,u])}}function c(p){if(i)throw new TypeError("Generator is already executing.");for(;r;)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 r.label++,{value:p[1],done:!1};case 5:r.label++,n=p[1],p=[0];continue;case 7:p=r.ops.pop(),r.trys.pop();continue;default:if(a=r.trys,!(a=a.length>0&&a[a.length-1])&&(p[0]===6||p[0]===2)){r=0;continue}if(p[0]===3&&(!a||p[1]>a[0]&&p[1]<a[3])){r.label=p[1];break}if(p[0]===6&&r.label<a[1]){r.label=a[1],a=p;break}if(a&&r.label<a[2]){r.label=a[2],r.ops.push(p);break}a[2]&&r.ops.pop(),r.trys.pop();continue}p=e.call(t,r)}catch(u){p=[6,u],n=0}finally{i=a=0}if(p[0]&5)throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}},Nr=function(t,e){for(var r=0,i=e.length,n=t.length;r<i;r++,n++)t[n]=e[r];return t},Tf=Object.defineProperty,Pf=Object.defineProperties,$f=Object.getOwnPropertyDescriptors,rc=Object.getOwnPropertySymbols,Lf=Object.prototype.hasOwnProperty,If=Object.prototype.propertyIsEnumerable,oc=function(t,e,r){return e in t?Tf(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r},Dt=function(t,e){for(var r in e||(e={}))Lf.call(e,r)&&oc(t,r,e[r]);if(rc)for(var i=0,n=rc(e);i<n.length;i++){var r=n[i];If.call(e,r)&&oc(t,r,e[r])}return t},Ia=function(t,e){return Pf(t,$f(e))},kf=function(t,e,r){return new Promise(function(i,n){var a=function(c){try{l(r.next(c))}catch(p){n(p)}},s=function(c){try{l(r.throw(c))}catch(p){n(p)}},l=function(c){return c.done?i(c.value):Promise.resolve(c.value).then(a,s)};l((r=r.apply(t,e)).next())})};var Df=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Rr:Rr.apply(null,arguments)},Mb=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(t){return t}};function Mf(t){if(typeof t!="object"||t===null)return!1;var e=Object.getPrototypeOf(t);if(e===null)return!0;for(var r=e;Object.getPrototypeOf(r)!==null;)r=Object.getPrototypeOf(r);return e===r}var Uf=function(t){ac(e,t);function e(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];var n=t.apply(this,r)||this;return Object.setPrototypeOf(n,e.prototype),n}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return t.prototype.concat.apply(this,r)},e.prototype.prepend=function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return r.length===1&&Array.isArray(r[0])?new(e.bind.apply(e,Nr([void 0],r[0].concat(this)))):new(e.bind.apply(e,Nr([void 0],r.concat(this))))},e}(Array),Bf=function(t){ac(e,t);function e(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];var n=t.apply(this,r)||this;return Object.setPrototypeOf(n,e.prototype),n}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return t.prototype.concat.apply(this,r)},e.prototype.prepend=function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return r.length===1&&Array.isArray(r[0])?new(e.bind.apply(e,Nr([void 0],r[0].concat(this)))):new(e.bind.apply(e,Nr([void 0],r.concat(this))))},e}(Array);function Ma(t){return qe(t)?ui(t,function(){}):t}function Ff(t){return typeof t=="boolean"}function zf(){return function(e){return Wf(e)}}function Wf(t){t===void 0&&(t={});var e=t.thunk,r=e===void 0?!0:e,i=t.immutableCheck,n=i===void 0?!0:i,a=t.serializableCheck,s=a===void 0?!0:a,l=new Uf;if(r&&(Ff(r)?l.push(La):l.push(La.withExtraArgument(r.extraArgument))),0){if(n)var c;if(s)var p}return l}var ka=!0;function sc(t){var e=zf(),r=t||{},i=r.reducer,n=i===void 0?void 0:i,a=r.middleware,s=a===void 0?e():a,l=r.devTools,c=l===void 0?!0:l,p=r.preloadedState,u=p===void 0?void 0:p,h=r.enhancers,g=h===void 0?void 0:h,b;if(typeof n=="function")b=n;else if(Mf(n))b=Jl(n);else throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');var x=s;if(typeof x=="function"&&(x=x(e),!ka&&!Array.isArray(x)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!ka&&x.some(function(S){return typeof S!="function"}))throw new Error("each middleware provided to configureStore must be a function");var C=Ql.apply(void 0,x),P=Rr;c&&(P=Df(Dt({trace:!ka},typeof c=="object"&&c)));var $=new Bf(C),I=$;Array.isArray(g)?I=Nr([C],g):typeof g=="function"&&(I=g($));var O=P.apply(void 0,I);return $a(b,u,O)}function Mt(t,e){function r(){for(var i=[],n=0;n<arguments.length;n++)i[n]=arguments[n];if(e){var a=e.apply(void 0,i);if(!a)throw new Error("prepareAction did not return an object");return Dt(Dt({type:t,payload:a.payload},"meta"in a&&{meta:a.meta}),"error"in a&&{error:a.error})}return{type:t,payload:i[0]}}return r.toString=function(){return""+t},r.type=t,r.match=function(i){return i.type===t},r}function lc(t){var e={},r=[],i,n={addCase:function(a,s){var l=typeof a=="string"?a:a.type;if(l in e)throw new Error("addCase cannot be called with two reducers for the same action type");return e[l]=s,n},addMatcher:function(a,s){return r.push({matcher:a,reducer:s}),n},addDefaultCase:function(a){return i=a,n}};return t(n),[e,r,i]}function Hf(t){return typeof t=="function"}function Vf(t,e,r,i){r===void 0&&(r=[]);var n=typeof e=="function"?lc(e):[e,r,i],a=n[0],s=n[1],l=n[2],c;if(Hf(t))c=function(){return Ma(t())};else{var p=Ma(t);c=function(){return p}}function u(h,g){h===void 0&&(h=c());var b=Nr([a[g.type]],s.filter(function(x){var C=x.matcher;return C(g)}).map(function(x){var C=x.reducer;return C}));return b.filter(function(x){return!!x}).length===0&&(b=[l]),b.reduce(function(x,C){if(C)if(xt(x)){var P=x,$=C(P,g);return $===void 0?x:$}else{if(qe(x))return ui(x,function(I){return C(I,g)});var $=C(x,g);if($===void 0){if(x===null)return x;throw Error("A case reducer on a non-draftable value must not return undefined")}return $}return x},h)}return u.getInitialState=c,u}function jf(t,e){return t+"/"+e}function cc(t){var e=t.name;if(!e)throw new Error("`name` is a required option for createSlice");typeof process<"u";var r=typeof t.initialState=="function"?t.initialState:Ma(t.initialState),i=t.reducers||{},n=Object.keys(i),a={},s={},l={};n.forEach(function(u){var h=i[u],g=jf(e,u),b,x;"reducer"in h?(b=h.reducer,x=h.prepare):b=h,a[u]=b,s[g]=b,l[u]=x?Mt(g,x):Mt(g)});function c(){var u=typeof t.extraReducers=="function"?lc(t.extraReducers):[t.extraReducers],h=u[0],g=h===void 0?{}:h,b=u[1],x=b===void 0?[]:b,C=u[2],P=C===void 0?void 0:C,$=Dt(Dt({},g),s);return Vf(r,function(I){for(var O in $)I.addCase(O,$[O]);for(var S=0,E=x;S<E.length;S++){var U=E[S];I.addMatcher(U.matcher,U.reducer)}P&&I.addDefaultCase(P)})}var p;return{name:e,reducer:function(u,h){return p||(p=c()),p(u,h)},actions:l,caseReducers:a,getInitialState:function(){return p||(p=c()),p.getInitialState()}}}var Kf="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Gf=function(t){t===void 0&&(t=21);for(var e="",r=t;r--;)e+=Kf[Math.random()*64|0];return e},Zf=["name","message","stack","code"],Da=function(){function t(e,r){this.payload=e,this.meta=r}return t}(),ic=function(){function t(e,r){this.payload=e,this.meta=r}return t}(),qf=function(t){if(typeof t=="object"&&t!==null){for(var e={},r=0,i=Zf;r<i.length;r++){var n=i[r];typeof t[n]=="string"&&(e[n]=t[n])}return e}return{message:String(t)}},zb=function(){function t(e,r,i){var n=Mt(e+"/fulfilled",function(u,h,g,b){return{payload:u,meta:Ia(Dt({},b||{}),{arg:g,requestId:h,requestStatus:"fulfilled"})}}),a=Mt(e+"/pending",function(u,h,g){return{payload:void 0,meta:Ia(Dt({},g||{}),{arg:h,requestId:u,requestStatus:"pending"})}}),s=Mt(e+"/rejected",function(u,h,g,b,x){return{payload:b,error:(i&&i.serializeError||qf)(u||"Rejected"),meta:Ia(Dt({},x||{}),{arg:g,requestId:h,rejectedWithValue:!!b,requestStatus:"rejected",aborted:u?.name==="AbortError",condition:u?.name==="ConditionError"})}}),l=!1,c=typeof AbortController<"u"?AbortController:function(){function u(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return u.prototype.abort=function(){},u}();function p(u){return function(h,g,b){var x=i?.idGenerator?i.idGenerator(u):Gf(),C=new c,P,$=!1;function I(S){P=S,C.abort()}var O=function(){return kf(this,null,function(){var S,E,U,z,Se,Z,m;return _f(this,function(v){switch(v.label){case 0:return v.trys.push([0,4,,5]),z=(S=i?.condition)==null?void 0:S.call(i,u,{getState:g,extra:b}),Xf(z)?[4,z]:[3,2];case 1:z=v.sent(),v.label=2;case 2:if(z===!1||C.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return $=!0,Se=new Promise(function(R,j){return C.signal.addEventListener("abort",function(){return j({name:"AbortError",message:P||"Aborted"})})}),h(a(x,u,(E=i?.getPendingMeta)==null?void 0:E.call(i,{requestId:x,arg:u},{getState:g,extra:b}))),[4,Promise.race([Se,Promise.resolve(r(u,{dispatch:h,getState:g,extra:b,requestId:x,signal:C.signal,abort:I,rejectWithValue:function(R,j){return new Da(R,j)},fulfillWithValue:function(R,j){return new ic(R,j)}})).then(function(R){if(R instanceof Da)throw R;return R instanceof ic?n(R.payload,x,u,R.meta):n(R,x,u)})])];case 3:return U=v.sent(),[3,5];case 4:return Z=v.sent(),U=Z instanceof Da?s(null,x,u,Z.payload,Z.meta):s(Z,x,u),[3,5];case 5:return m=i&&!i.dispatchConditionRejection&&s.match(U)&&U.meta.condition,m||h(U),[2,U]}})})}();return Object.assign(O,{abort:I,requestId:x,arg:u,unwrap:function(){return O.then(Yf)}})}}return Object.assign(p,{pending:a,rejected:s,fulfilled:n,typePrefix:e})}return t.withTypes=function(){return t},t}();function Yf(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}function Xf(t){return t!==null&&typeof t=="object"&&typeof t.then=="function"}var dc="listener",pc="completed",fc="cancelled",Wb="task-"+fc,Hb="task-"+pc,Vb=dc+"-"+fc,jb=dc+"-"+pc;var Ua="listenerMiddleware";var Kb=Mt(Ua+"/add"),Gb=Mt(Ua+"/removeAll"),Zb=Mt(Ua+"/remove");var nc,qb=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(t){return(nc||(nc=Promise.resolve())).then(t).catch(function(e){return setTimeout(function(){throw e},0)})},Jf=function(t){return function(e){setTimeout(e,t)}},Yb=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:Jf(10);Gl();window.ftReduxStores||(window.ftReduxStores={});var vt=class t{static get(e){var r;let i=typeof e=="string"?e:e.name,n=typeof e=="string"?void 0:e,a=window.ftReduxStores[i];if(ir(a))return a;if(n==null)return;let s=cc({...n,reducers:(r=n.reducers)!==null&&r!==void 0?r:{}}),l=sc({reducer:(c,p)=>p.type==="CLEAR_FT_REDUX_STORE"?s.getInitialState():typeof p.type=="string"&&p.type.startsWith("DEFAULT_VALUE_SETTER__")?{...c,...p.overwrites}:s.reducer(c,p)});return window.ftReduxStores[n.name]=new t(s,l)}constructor(e,r){this.reduxSlice=e,this.reduxStore=r,this.isFtReduxStore=!0,this.eventBus=document.createElement("event-bus"),this.commands=new xo,this.actions=new Proxy(this.reduxSlice.actions,{get:(i,n,a)=>{let s=n,l=i[s];return l?(...c)=>{let p=l(...c);return this.reduxStore.dispatch(p),p}:c=>{this.setState({[s]:c})}}})}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE"})}setState(e){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(e).join("_"),overwrites:e})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(e){throw new Error("Not implemented yet.")}subscribe(e){return this.reduxStore.subscribe(e)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}};function Qf(){var t;for(let e of Object.values((t=window.ftReduxStores)!==null&&t!==void 0?t:{}))ir(e)&&e.clear()}var Fa={};J(Fa,{serializeRequest:()=>tu});function eu(t){return`"${t}"`}function tu(t,e){var r,i,n,a;let s=new URLSearchParams({"content-lang":(r=e.contentLocale)!==null&&r!==void 0?r:"all"});if(((i=e.query)===null||i===void 0?void 0:i.length)>0&&s.append("query",e.query),e.scope&&e.scope!=="DEFAULT"&&s.append("scope",e.scope.toLowerCase()),e.virtualField&&e.virtualField!=="EVERYWHERE"&&s.append("virtual-field",e.virtualField.toLowerCase()),e.periodFilter){let c=e.periodFilter.period,p=c?`_${c.from}_${c.to}`:"";s.append("period",e.periodFilter.periodType.toLowerCase()+p)}if(((n=e.sort)===null||n===void 0?void 0:n.length)>0&&e.sort[0].key==="ft:lastEdition"&&s.append("sort","last_update"),((a=e.filters)===null||a===void 0?void 0:a.length)>0){let c=e.filters.map(p=>{let u=p.values.map(h=>h.replace(/_/g,"\\\\\\\\_").replace(/~/g,"\\\\~").replace(/\*/g,"\\*")).map(h=>encodeURIComponent(eu(h))).join("_");return`${p.key}~${u}`}).join("*");s.append("filters",c)}return new URL(`${t.replace(/\/+$/,"")}/search?${s.toString()}`).href}var Wa={};J(Wa,{toFtFormComponent:()=>za});var yi=Symbol("elementInternals");function za(t,e){class r extends t{static get formAssociated(){return!0}get form(){return this[yi].form}constructor(...n){super(n),this[yi]=this.attachInternals(),this[yi].role=e}setFormValue(n){this[yi].setFormValue(n)}}return r}var sr=class{static format(e,r,i,n){return window.moment?window.moment(e).locale(r).format(this.getDateFormat(i,n)):e}static getDateFormat(e,r){return e?r?"lll":"ll":r?"L LT":"L"}};var Ha,Va,ja,Ka,lr=navigator.vendor&&!!navigator.vendor.match(/apple/i)||((ja=(Va=(Ha=window.safari)===null||Ha===void 0?void 0:Ha.pushNotification)===null||Va===void 0?void 0:Va.toString())!==null&&ja!==void 0?ja:"")==="[object SafariRemoteNotification]",ru="ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0;window.ftGlobals=(Ka=window.ftGlobals)!==null&&Ka!==void 0?Ka:{lit:qi,litDecorators:Qi,litRepeat:en,litClassMap:tn,litStyleMap:rn,litUnsafeHTML:nn,wcUtils:{...sn,...an,...cn,...sr,...dn,...fn,...zn,...jn,...oa,...Fn,...aa,...na,...$l,...pn,...da,...fa,...Il,...ua,...Ba,...ia,...Fa,...Wa,isSafari:lr,isTouchScreen:ru}};var ou={spacing:o.create("--ft-search-selected-facets-spacing","","SIZE","8px")},uc=N`
|
|
49
|
+
`;var Fl={};var ha={};J(ha,{ParametrizedLabelResolver:()=>bo});var bo=class{constructor(e,r){this.defaultLabels=e,this.labels=r}resolve(e,...r){var o,n;e=this.resolvePluralKey(e,r);let a=(n=(o=this.labels[e])!==null&&o!==void 0?o:this.defaultLabels[e])!==null&&n!==void 0?n:"";return r.forEach((s,l)=>a=a.replace(new RegExp(`\\{${l}([^}]*)\\}`,"g"),(c,p)=>this.formatValue(s,p))),a}resolvePluralKey(e,r){for(let o of r)if(typeof o=="number"){let n=`${String(e)}[\\=${o}]`;if(n in this.labels||n in this.defaultLabels)return n}return e}formatValue(e,r){return e instanceof Date?this.formatDate(e,r):e??""}formatDate(e,r){let o=n=>r?.includes("date")?e.toLocaleDateString(n):r?.includes("time")?e.toLocaleTimeString(n):e.toLocaleString(n);try{return o(document.documentElement.lang)}catch{return o()}}};var Fa={};J(Fa,{FtCommandQueue:()=>xo,FtLitElementRedux:()=>We,FtReduxStore:()=>vt,clearAllStores:()=>iu,isFtReduxStore:()=>ir,redux:()=>fe,reduxEventListener:()=>Sf,reduxReactive:()=>vf});var vf=()=>(t,e)=>{var r;let o=t.constructor;o.reduxReactiveProperties=new Set(o.reduxReactiveProperties),(r=o.reduxReactiveProperties)===null||r===void 0||r.add(e)},fe=t=>{let e=t??{};return(r,o)=>{var n;let a={hasChanged:ao,attribute:!1,...e};y(a)(r,o);let s=r.constructor;s.reduxProperties=new Map(s.reduxProperties),s.reduxProperties.set(o,{selector:(n=e.selector)!==null&&n!==void 0?n:l=>l[o],store:e.store})}},Sf=t=>(e,r)=>{let o=e.constructor;o.reduxEventListeners=new Map(o.reduxEventListeners),o.reduxEventListeners.set(r,t)};var xo=class{constructor(){this.queue=[]}add(e,r=!1){r&&(this.queue=this.queue.filter(o=>o.type!==e.type)),this.queue.push(e)}consume(e){let r=this.queue.find(o=>o.type===e);return r&&(this.queue=this.queue.filter(o=>o!==r)),r}};function ir(t){var e;return(e=t?.isFtReduxStore)!==null&&e!==void 0?e:!1}var zl,Wl,Hl,ci=Symbol("internalReduxEventsUnsubscribers"),$t=Symbol("internalStoresUnsubscribers"),nr=Symbol("internalStores"),We=class extends M{constructor(){super(...arguments),this[zl]=new Map,this[Wl]=new Map,this[Hl]=[]}get reduxConstructor(){return this.constructor}update(e){super.update(e),[...this.reduxConstructor.reduxReactiveProperties].some(r=>e.has(r))&&this.updateFromStores()}getUnnamedStore(){if(this[nr].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[nr].values()][0]}getStore(e){return e==null?this.getUnnamedStore():this[nr].get(e)}addStore(e,r){var o;r=(o=r??(ir(e)?e.name:void 0))!==null&&o!==void 0?o:"default-store",this.unsubscribeFromStore(r),this.setupStore(r,e)}removeStore(e){let r=typeof e=="string"?e:e.name;this.unsubscribeFromStore(r),this[nr].delete(r)}setupStore(e,r){this[nr].set(e,r),this.subscribeToStore(e,r),this.updateFromStores()}setupStores(){this.unsubscribeFromStores(),this[nr].forEach((e,r)=>this.subscribeToStore(r,e)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((e,r)=>{let o=this.constructor.getPropertyOptions(r);if(!o?.attribute||!this.hasAttribute(typeof o?.attribute=="string"?o.attribute:r)){let n=this.getStore(e.store);n&&(e.store?this[$t].has(e.store):this[$t].size>0)&&(this[r]=e.selector(n.getState(),this))}})}subscribeToStore(e,r){var o;this[$t].set(e,r.subscribe(()=>this.updateFromStores())),ir(r)&&r.eventBus&&((o=this.reduxConstructor.reduxEventListeners)===null||o===void 0||o.forEach((n,a)=>{if(typeof this[a]=="function"&&(!n.store||r.name===n.store)){let s=l=>this[a](l);r.eventBus.addEventListener(n.eventName,s),this[ci].push(()=>r.eventBus.removeEventListener(n.eventName,s))}})),this.onStoreAvailable(e)}unsubscribeFromStores(){this[$t].forEach((e,r)=>this.unsubscribeFromStore(r)),this[ci].forEach(e=>e()),this[ci]=[]}unsubscribeFromStore(e){this[$t].has(e)&&this[$t].get(e)(),this[$t].delete(e)}onStoreAvailable(e){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}};zl=$t,Wl=nr,Hl=ci;We.reduxProperties=new Map;We.reduxReactiveProperties=new Set;We.reduxEventListeners=new Map;function He(t){for(var e=arguments.length,r=Array(e>1?e-1:0),o=1;o<e;o++)r[o-1]=arguments[o];if(0)var n,a;throw Error("[Immer] minified error nr: "+t+(r.length?" "+r.map(function(s){return"'"+s+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function xt(t){return!!t&&!!t[ee]}function qe(t){var e;return!!t&&(function(r){if(!r||typeof r!="object")return!1;var o=Object.getPrototypeOf(r);if(o===null)return!0;var n=Object.hasOwnProperty.call(o,"constructor")&&o.constructor;return n===Object||typeof n=="function"&&Function.toString.call(n)===_f}(t)||Array.isArray(t)||!!t[Yl]||!!(!((e=t.constructor)===null||e===void 0)&&e[Yl])||Ca(t)||Ea(t))}function ar(t,e,r){r===void 0&&(r=!1),wr(t)===0?(r?Object.keys:Er)(t).forEach(function(o){r&&typeof o=="symbol"||e(o,t[o],t)}):t.forEach(function(o,n){return e(n,o,t)})}function wr(t){var e=t[ee];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:Ca(t)?2:Ea(t)?3:0}function Cr(t,e){return wr(t)===2?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function Of(t,e){return wr(t)===2?t.get(e):t[e]}function Xl(t,e,r){var o=wr(t);o===2?t.set(e,r):o===3?t.add(r):t[e]=r}function Jl(t,e){return t===e?t!==0||1/t==1/e:t!=t&&e!=e}function Ca(t){return Rf&&t instanceof Map}function Ea(t){return Nf&&t instanceof Set}function Lt(t){return t.o||t.t}function wa(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=tc(t);delete e[ee];for(var r=Er(e),o=0;o<r.length;o++){var n=r[o],a=e[n];a.writable===!1&&(a.writable=!0,a.configurable=!0),(a.get||a.set)&&(e[n]={configurable:!0,writable:!0,enumerable:a.enumerable,value:t[n]})}return Object.create(Object.getPrototypeOf(t),e)}function Aa(t,e){return e===void 0&&(e=!1),Ra(t)||xt(t)||!qe(t)||(wr(t)>1&&(t.set=t.add=t.clear=t.delete=Cf),Object.freeze(t),e&&ar(t,function(r,o){return Aa(o,!0)},!0)),t}function Cf(){He(2)}function Ra(t){return t==null||typeof t!="object"||Object.isFrozen(t)}function it(t){var e=Oa[t];return e||He(18,t),e}function Ef(t,e){Oa[t]||(Oa[t]=e)}function xa(){return So}function ma(t,e){e&&(it("Patches"),t.u=[],t.s=[],t.v=e)}function di(t){va(t),t.p.forEach(wf),t.p=null}function va(t){t===So&&(So=t.l)}function Vl(t){return So={p:[],l:So,h:t,m:!0,_:0}}function wf(t){var e=t[ee];e.i===0||e.i===1?e.j():e.g=!0}function ya(t,e){e._=e.p.length;var r=e.p[0],o=t!==void 0&&t!==r;return e.h.O||it("ES5").S(e,t,o),o?(r[ee].P&&(di(e),He(4)),qe(t)&&(t=pi(e,t),e.l||fi(e,t)),e.u&&it("Patches").M(r[ee].t,t,e.u,e.s)):t=pi(e,r,[]),di(e),e.u&&e.v(e.u,e.s),t!==ec?t:void 0}function pi(t,e,r){if(Ra(e))return e;var o=e[ee];if(!o)return ar(e,function(l,c){return jl(t,o,e,l,c,r)},!0),e;if(o.A!==t)return e;if(!o.P)return fi(t,o.t,!0),o.t;if(!o.I){o.I=!0,o.A._--;var n=o.i===4||o.i===5?o.o=wa(o.k):o.o,a=n,s=!1;o.i===3&&(a=new Set(n),n.clear(),s=!0),ar(a,function(l,c){return jl(t,o,n,l,c,r,s)}),fi(t,n,!1),r&&t.u&&it("Patches").N(o,r,t.u,t.s)}return o.o}function jl(t,e,r,o,n,a,s){if(xt(n)){var l=pi(t,n,a&&e&&e.i!==3&&!Cr(e.R,o)?a.concat(o):void 0);if(Xl(r,o,l),!xt(l))return;t.m=!1}else s&&r.add(n);if(qe(n)&&!Ra(n)){if(!t.h.D&&t._<1)return;pi(t,n),e&&e.A.l||fi(t,n)}}function fi(t,e,r){r===void 0&&(r=!1),!t.l&&t.h.D&&t.m&&Aa(e,r)}function ga(t,e){var r=t[ee];return(r?Lt(r):t)[e]}function Kl(t,e){if(e in t)for(var r=Object.getPrototypeOf(t);r;){var o=Object.getOwnPropertyDescriptor(r,e);if(o)return o;r=Object.getPrototypeOf(r)}}function It(t){t.P||(t.P=!0,t.l&&It(t.l))}function ba(t){t.o||(t.o=wa(t.t))}function Sa(t,e,r){var o=Ca(e)?it("MapSet").F(e,r):Ea(e)?it("MapSet").T(e,r):t.O?function(n,a){var s=Array.isArray(n),l={i:s?1:0,A:a?a.A:xa(),P:!1,I:!1,R:{},l:a,t:n,k:null,o:null,j:null,C:!1},c=l,p=Oo;s&&(c=[l],p=vo);var f=Proxy.revocable(c,p),h=f.revoke,g=f.proxy;return l.k=g,l.j=h,g}(e,r):it("ES5").J(e,r);return(r?r.A:xa()).p.push(o),o}function Af(t){return xt(t)||He(22,t),function e(r){if(!qe(r))return r;var o,n=r[ee],a=wr(r);if(n){if(!n.P&&(n.i<4||!it("ES5").K(n)))return n.t;n.I=!0,o=Gl(r,a),n.I=!1}else o=Gl(r,a);return ar(o,function(s,l){n&&Of(n.t,s)===l||Xl(o,s,e(l))}),a===3?new Set(o):o}(t)}function Gl(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return wa(t)}function Ql(){function t(s,l){var c=a[s];return c?c.enumerable=l:a[s]=c={configurable:!0,enumerable:l,get:function(){var p=this[ee];return Oo.get(p,s)},set:function(p){var f=this[ee];Oo.set(f,s,p)}},c}function e(s){for(var l=s.length-1;l>=0;l--){var c=s[l][ee];if(!c.P)switch(c.i){case 5:o(c)&&It(c);break;case 4:r(c)&&It(c)}}}function r(s){for(var l=s.t,c=s.k,p=Er(c),f=p.length-1;f>=0;f--){var h=p[f];if(h!==ee){var g=l[h];if(g===void 0&&!Cr(l,h))return!0;var b=c[h],x=b&&b[ee];if(x?x.t!==g:!Jl(b,g))return!0}}var C=!!l[ee];return p.length!==Er(l).length+(C?0:1)}function o(s){var l=s.k;if(l.length!==s.t.length)return!0;var c=Object.getOwnPropertyDescriptor(l,l.length-1);if(c&&!c.get)return!0;for(var p=0;p<l.length;p++)if(!l.hasOwnProperty(p))return!0;return!1}function n(s){s.g&&He(3,JSON.stringify(Lt(s)))}var a={};Ef("ES5",{J:function(s,l){var c=Array.isArray(s),p=function(h,g){if(h){for(var b=Array(g.length),x=0;x<g.length;x++)Object.defineProperty(b,""+x,t(x,!0));return b}var C=tc(g);delete C[ee];for(var $=Er(C),L=0;L<$.length;L++){var I=$[L];C[I]=t(I,h||!!C[I].enumerable)}return Object.create(Object.getPrototypeOf(g),C)}(c,s),f={i:c?5:4,A:l?l.A:xa(),P:!1,I:!1,R:{},l,t:s,k:p,o:null,g:!1,C:!1};return Object.defineProperty(p,ee,{value:f,writable:!0}),p},S:function(s,l,c){c?xt(l)&&l[ee].A===s&&e(s.p):(s.u&&function p(f){if(f&&typeof f=="object"){var h=f[ee];if(h){var g=h.t,b=h.k,x=h.R,C=h.i;if(C===4)ar(b,function(S){S!==ee&&(g[S]!==void 0||Cr(g,S)?x[S]||p(b[S]):(x[S]=!0,It(h)))}),ar(g,function(S){b[S]!==void 0||Cr(b,S)||(x[S]=!1,It(h))});else if(C===5){if(o(h)&&(It(h),x.length=!0),b.length<g.length)for(var $=b.length;$<g.length;$++)x[$]=!1;else for(var L=g.length;L<b.length;L++)x[L]=!0;for(var I=Math.min(b.length,g.length),O=0;O<I;O++)b.hasOwnProperty(O)||(x[O]=!0),x[O]===void 0&&p(b[O])}}}}(s.p[0]),e(s.p))},K:function(s){return s.i===4?r(s):o(s)}})}var Zl,So,Na=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",Rf=typeof Map<"u",Nf=typeof Set<"u",ql=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",ec=Na?Symbol.for("immer-nothing"):((Zl={})["immer-nothing"]=!0,Zl),Yl=Na?Symbol.for("immer-draftable"):"__$immer_draftable",ee=Na?Symbol.for("immer-state"):"__$immer_state";var _f=""+Object.prototype.constructor,Er=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,tc=Object.getOwnPropertyDescriptors||function(t){var e={};return Er(t).forEach(function(r){e[r]=Object.getOwnPropertyDescriptor(t,r)}),e},Oa={},Oo={get:function(t,e){if(e===ee)return t;var r=Lt(t);if(!Cr(r,e))return function(n,a,s){var l,c=Kl(a,s);return c?"value"in c?c.value:(l=c.get)===null||l===void 0?void 0:l.call(n.k):void 0}(t,r,e);var o=r[e];return t.I||!qe(o)?o:o===ga(t.t,e)?(ba(t),t.o[e]=Sa(t.A.h,o,t)):o},has:function(t,e){return e in Lt(t)},ownKeys:function(t){return Reflect.ownKeys(Lt(t))},set:function(t,e,r){var o=Kl(Lt(t),e);if(o?.set)return o.set.call(t.k,r),!0;if(!t.P){var n=ga(Lt(t),e),a=n?.[ee];if(a&&a.t===r)return t.o[e]=r,t.R[e]=!1,!0;if(Jl(r,n)&&(r!==void 0||Cr(t.t,e)))return!0;ba(t),It(t)}return t.o[e]===r&&(r!==void 0||e in t.o)||Number.isNaN(r)&&Number.isNaN(t.o[e])||(t.o[e]=r,t.R[e]=!0),!0},deleteProperty:function(t,e){return ga(t.t,e)!==void 0||e in t.t?(t.R[e]=!1,ba(t),It(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var r=Lt(t),o=Reflect.getOwnPropertyDescriptor(r,e);return o&&{writable:!0,configurable:t.i!==1||e!=="length",enumerable:o.enumerable,value:r[e]}},defineProperty:function(){He(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){He(12)}},vo={};ar(Oo,function(t,e){vo[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}}),vo.deleteProperty=function(t,e){return vo.set.call(this,t,e,void 0)},vo.set=function(t,e,r){return Oo.set.call(this,t[0],e,r,t[0])};var Tf=function(){function t(r){var o=this;this.O=ql,this.D=!0,this.produce=function(n,a,s){if(typeof n=="function"&&typeof a!="function"){var l=a;a=n;var c=o;return function(C){var $=this;C===void 0&&(C=l);for(var L=arguments.length,I=Array(L>1?L-1:0),O=1;O<L;O++)I[O-1]=arguments[O];return c.produce(C,function(S){var E;return(E=a).call.apply(E,[$,S].concat(I))})}}var p;if(typeof a!="function"&&He(6),s!==void 0&&typeof s!="function"&&He(7),qe(n)){var f=Vl(o),h=Sa(o,n,void 0),g=!0;try{p=a(h),g=!1}finally{g?di(f):va(f)}return typeof Promise<"u"&&p instanceof Promise?p.then(function(C){return ma(f,s),ya(C,f)},function(C){throw di(f),C}):(ma(f,s),ya(p,f))}if(!n||typeof n!="object"){if((p=a(n))===void 0&&(p=n),p===ec&&(p=void 0),o.D&&Aa(p,!0),s){var b=[],x=[];it("Patches").M(n,p,b,x),s(b,x)}return p}He(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),g=1;g<f;g++)h[g-1]=arguments[g];return o.produceWithPatches(p,function(b){return n.apply(void 0,[b].concat(h))})};var s,l,c=o.produce(n,a,function(p,f){s=p,l=f});return typeof Promise<"u"&&c instanceof Promise?c.then(function(p){return[p,s,l]}):[c,s,l]},typeof r?.useProxies=="boolean"&&this.setUseProxies(r.useProxies),typeof r?.autoFreeze=="boolean"&&this.setAutoFreeze(r.autoFreeze)}var e=t.prototype;return e.createDraft=function(r){qe(r)||He(8),xt(r)&&(r=Af(r));var o=Vl(this),n=Sa(this,r,void 0);return n[ee].C=!0,va(o),n},e.finishDraft=function(r,o){var n=r&&r[ee],a=n.A;return ma(a,o),ya(void 0,a)},e.setAutoFreeze=function(r){this.D=r},e.setUseProxies=function(r){r&&!ql&&He(20),this.O=r},e.applyPatches=function(r,o){var n;for(n=o.length-1;n>=0;n--){var a=o[n];if(a.path.length===0&&a.op==="replace"){r=a.value;break}}n>-1&&(o=o.slice(n+1));var s=it("Patches").$;return xt(r)?s(r,o):this.produce(r,function(l){return s(l,o)})},t}(),Ue=new Tf,Pf=Ue.produce,Ob=Ue.produceWithPatches.bind(Ue),Cb=Ue.setAutoFreeze.bind(Ue),Eb=Ue.setUseProxies.bind(Ue),wb=Ue.applyPatches.bind(Ue),Ab=Ue.createDraft.bind(Ue),Rb=Ue.finishDraft.bind(Ue),ui=Pf;function kt(t){"@babel/helpers - typeof";return kt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},kt(t)}function _a(t,e){if(kt(t)!=="object"||t===null)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var o=r.call(t,e||"default");if(kt(o)!=="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Ta(t){var e=_a(t,"string");return kt(e)==="symbol"?e:String(e)}function Pa(t,e,r){return e=Ta(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function rc(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter(function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable})),r.push.apply(r,o)}return r}function hi(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?rc(Object(r),!0).forEach(function(o){Pa(t,o,r[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):rc(Object(r)).forEach(function(o){Object.defineProperty(t,o,Object.getOwnPropertyDescriptor(r,o))})}return t}function Oe(t){return"Minified Redux error #"+t+"; visit https://redux.js.org/Errors?code="+t+" for the full message or use the non-minified dev environment for full errors. "}var oc=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),$a=function(){return Math.random().toString(36).substring(7).split("").join(".")},mi={INIT:"@@redux/INIT"+$a(),REPLACE:"@@redux/REPLACE"+$a(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+$a()}};function $f(t){if(typeof t!="object"||t===null)return!1;for(var e=t;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}function La(t,e,r){var o;if(typeof e=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(Oe(0));if(typeof e=="function"&&typeof r>"u"&&(r=e,e=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(Oe(1));return r(La)(t,e)}if(typeof t!="function")throw new Error(Oe(2));var n=t,a=e,s=[],l=s,c=!1;function p(){l===s&&(l=s.slice())}function f(){if(c)throw new Error(Oe(3));return a}function h(C){if(typeof C!="function")throw new Error(Oe(4));if(c)throw new Error(Oe(5));var $=!0;return p(),l.push(C),function(){if($){if(c)throw new Error(Oe(6));$=!1,p();var I=l.indexOf(C);l.splice(I,1),s=null}}}function g(C){if(!$f(C))throw new Error(Oe(7));if(typeof C.type>"u")throw new Error(Oe(8));if(c)throw new Error(Oe(9));try{c=!0,a=n(a,C)}finally{c=!1}for(var $=s=l,L=0;L<$.length;L++){var I=$[L];I()}return C}function b(C){if(typeof C!="function")throw new Error(Oe(10));n=C,g({type:mi.REPLACE})}function x(){var C,$=h;return C={subscribe:function(I){if(typeof I!="object"||I===null)throw new Error(Oe(11));function O(){I.next&&I.next(f())}O();var S=$(O);return{unsubscribe:S}}},C[oc]=function(){return this},C}return g({type:mi.INIT}),o={dispatch:g,subscribe:h,getState:f,replaceReducer:b},o[oc]=x,o}function Lf(t){Object.keys(t).forEach(function(e){var r=t[e],o=r(void 0,{type:mi.INIT});if(typeof o>"u")throw new Error(Oe(12));if(typeof r(void 0,{type:mi.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(Oe(13))})}function ic(t){for(var e=Object.keys(t),r={},o=0;o<e.length;o++){var n=e[o];typeof t[n]=="function"&&(r[n]=t[n])}var a=Object.keys(r),s,l;try{Lf(r)}catch(c){l=c}return function(p,f){if(p===void 0&&(p={}),l)throw l;if(0)var h;for(var g=!1,b={},x=0;x<a.length;x++){var C=a[x],$=r[C],L=p[C],I=$(L,f);if(typeof I>"u"){var O=f&&f.type;throw new Error(Oe(14))}b[C]=I,g=g||I!==L}return g=g||a.length!==Object.keys(p).length,g?b:p}}function Ar(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return e.length===0?function(o){return o}:e.length===1?e[0]:e.reduce(function(o,n){return function(){return o(n.apply(void 0,arguments))}})}function nc(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return function(o){return function(){var n=o.apply(void 0,arguments),a=function(){throw new Error(Oe(15))},s={getState:n.getState,dispatch:function(){return a.apply(void 0,arguments)}},l=e.map(function(c){return c(s)});return a=Ar.apply(void 0,l)(n.dispatch),hi(hi({},n),{},{dispatch:a})}}}function ac(t){var e=function(o){var n=o.dispatch,a=o.getState;return function(s){return function(l){return typeof l=="function"?l(n,a,t):s(l)}}};return e}var sc=ac();sc.withExtraArgument=ac;var Ia=sc;var fc=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,n){o.__proto__=n}||function(o,n){for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(o[a]=n[a])},t(e,r)};return function(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function o(){this.constructor=e}e.prototype=r===null?Object.create(r):(o.prototype=r.prototype,new o)}}(),If=function(t,e){var r={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},o,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 c([p,f])}}function c(p){if(o)throw new TypeError("Generator is already executing.");for(;r;)try{if(o=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 r.label++,{value:p[1],done:!1};case 5:r.label++,n=p[1],p=[0];continue;case 7:p=r.ops.pop(),r.trys.pop();continue;default:if(a=r.trys,!(a=a.length>0&&a[a.length-1])&&(p[0]===6||p[0]===2)){r=0;continue}if(p[0]===3&&(!a||p[1]>a[0]&&p[1]<a[3])){r.label=p[1];break}if(p[0]===6&&r.label<a[1]){r.label=a[1],a=p;break}if(a&&r.label<a[2]){r.label=a[2],r.ops.push(p);break}a[2]&&r.ops.pop(),r.trys.pop();continue}p=e.call(t,r)}catch(f){p=[6,f],n=0}finally{o=a=0}if(p[0]&5)throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}},Rr=function(t,e){for(var r=0,o=e.length,n=t.length;r<o;r++,n++)t[n]=e[r];return t},kf=Object.defineProperty,Df=Object.defineProperties,Mf=Object.getOwnPropertyDescriptors,lc=Object.getOwnPropertySymbols,Uf=Object.prototype.hasOwnProperty,Bf=Object.prototype.propertyIsEnumerable,cc=function(t,e,r){return e in t?kf(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r},Dt=function(t,e){for(var r in e||(e={}))Uf.call(e,r)&&cc(t,r,e[r]);if(lc)for(var o=0,n=lc(e);o<n.length;o++){var r=n[o];Bf.call(e,r)&&cc(t,r,e[r])}return t},ka=function(t,e){return Df(t,Mf(e))},Ff=function(t,e,r){return new Promise(function(o,n){var a=function(c){try{l(r.next(c))}catch(p){n(p)}},s=function(c){try{l(r.throw(c))}catch(p){n(p)}},l=function(c){return c.done?o(c.value):Promise.resolve(c.value).then(a,s)};l((r=r.apply(t,e)).next())})};var zf=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Ar:Ar.apply(null,arguments)},jb=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(t){return t}};function Wf(t){if(typeof t!="object"||t===null)return!1;var e=Object.getPrototypeOf(t);if(e===null)return!0;for(var r=e;Object.getPrototypeOf(r)!==null;)r=Object.getPrototypeOf(r);return e===r}var Hf=function(t){fc(e,t);function e(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];var n=t.apply(this,r)||this;return Object.setPrototypeOf(n,e.prototype),n}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];return t.prototype.concat.apply(this,r)},e.prototype.prepend=function(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];return r.length===1&&Array.isArray(r[0])?new(e.bind.apply(e,Rr([void 0],r[0].concat(this)))):new(e.bind.apply(e,Rr([void 0],r.concat(this))))},e}(Array),Vf=function(t){fc(e,t);function e(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];var n=t.apply(this,r)||this;return Object.setPrototypeOf(n,e.prototype),n}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];return t.prototype.concat.apply(this,r)},e.prototype.prepend=function(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];return r.length===1&&Array.isArray(r[0])?new(e.bind.apply(e,Rr([void 0],r[0].concat(this)))):new(e.bind.apply(e,Rr([void 0],r.concat(this))))},e}(Array);function Ua(t){return qe(t)?ui(t,function(){}):t}function jf(t){return typeof t=="boolean"}function Kf(){return function(e){return Gf(e)}}function Gf(t){t===void 0&&(t={});var e=t.thunk,r=e===void 0?!0:e,o=t.immutableCheck,n=o===void 0?!0:o,a=t.serializableCheck,s=a===void 0?!0:a,l=new Hf;if(r&&(jf(r)?l.push(Ia):l.push(Ia.withExtraArgument(r.extraArgument))),0){if(n)var c;if(s)var p}return l}var Da=!0;function uc(t){var e=Kf(),r=t||{},o=r.reducer,n=o===void 0?void 0:o,a=r.middleware,s=a===void 0?e():a,l=r.devTools,c=l===void 0?!0:l,p=r.preloadedState,f=p===void 0?void 0:p,h=r.enhancers,g=h===void 0?void 0:h,b;if(typeof n=="function")b=n;else if(Wf(n))b=ic(n);else throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');var x=s;if(typeof x=="function"&&(x=x(e),!Da&&!Array.isArray(x)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!Da&&x.some(function(S){return typeof S!="function"}))throw new Error("each middleware provided to configureStore must be a function");var C=nc.apply(void 0,x),$=Ar;c&&($=zf(Dt({trace:!Da},typeof c=="object"&&c)));var L=new Vf(C),I=L;Array.isArray(g)?I=Rr([C],g):typeof g=="function"&&(I=g(L));var O=$.apply(void 0,I);return La(b,f,O)}function Mt(t,e){function r(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];if(e){var a=e.apply(void 0,o);if(!a)throw new Error("prepareAction did not return an object");return Dt(Dt({type:t,payload:a.payload},"meta"in a&&{meta:a.meta}),"error"in a&&{error:a.error})}return{type:t,payload:o[0]}}return r.toString=function(){return""+t},r.type=t,r.match=function(o){return o.type===t},r}function hc(t){var e={},r=[],o,n={addCase:function(a,s){var l=typeof a=="string"?a:a.type;if(l in e)throw new Error("addCase cannot be called with two reducers for the same action type");return e[l]=s,n},addMatcher:function(a,s){return r.push({matcher:a,reducer:s}),n},addDefaultCase:function(a){return o=a,n}};return t(n),[e,r,o]}function Zf(t){return typeof t=="function"}function qf(t,e,r,o){r===void 0&&(r=[]);var n=typeof e=="function"?hc(e):[e,r,o],a=n[0],s=n[1],l=n[2],c;if(Zf(t))c=function(){return Ua(t())};else{var p=Ua(t);c=function(){return p}}function f(h,g){h===void 0&&(h=c());var b=Rr([a[g.type]],s.filter(function(x){var C=x.matcher;return C(g)}).map(function(x){var C=x.reducer;return C}));return b.filter(function(x){return!!x}).length===0&&(b=[l]),b.reduce(function(x,C){if(C)if(xt(x)){var $=x,L=C($,g);return L===void 0?x:L}else{if(qe(x))return ui(x,function(I){return C(I,g)});var L=C(x,g);if(L===void 0){if(x===null)return x;throw Error("A case reducer on a non-draftable value must not return undefined")}return L}return x},h)}return f.getInitialState=c,f}function Yf(t,e){return t+"/"+e}function mc(t){var e=t.name;if(!e)throw new Error("`name` is a required option for createSlice");typeof process<"u";var r=typeof t.initialState=="function"?t.initialState:Ua(t.initialState),o=t.reducers||{},n=Object.keys(o),a={},s={},l={};n.forEach(function(f){var h=o[f],g=Yf(e,f),b,x;"reducer"in h?(b=h.reducer,x=h.prepare):b=h,a[f]=b,s[g]=b,l[f]=x?Mt(g,x):Mt(g)});function c(){var f=typeof t.extraReducers=="function"?hc(t.extraReducers):[t.extraReducers],h=f[0],g=h===void 0?{}:h,b=f[1],x=b===void 0?[]:b,C=f[2],$=C===void 0?void 0:C,L=Dt(Dt({},g),s);return qf(r,function(I){for(var O in L)I.addCase(O,L[O]);for(var S=0,E=x;S<E.length;S++){var U=E[S];I.addMatcher(U.matcher,U.reducer)}$&&I.addDefaultCase($)})}var p;return{name:e,reducer:function(f,h){return p||(p=c()),p(f,h)},actions:l,caseReducers:a,getInitialState:function(){return p||(p=c()),p.getInitialState()}}}var Xf="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Jf=function(t){t===void 0&&(t=21);for(var e="",r=t;r--;)e+=Xf[Math.random()*64|0];return e},Qf=["name","message","stack","code"],Ma=function(){function t(e,r){this.payload=e,this.meta=r}return t}(),dc=function(){function t(e,r){this.payload=e,this.meta=r}return t}(),eu=function(t){if(typeof t=="object"&&t!==null){for(var e={},r=0,o=Qf;r<o.length;r++){var n=o[r];typeof t[n]=="string"&&(e[n]=t[n])}return e}return{message:String(t)}},qb=function(){function t(e,r,o){var n=Mt(e+"/fulfilled",function(f,h,g,b){return{payload:f,meta:ka(Dt({},b||{}),{arg:g,requestId:h,requestStatus:"fulfilled"})}}),a=Mt(e+"/pending",function(f,h,g){return{payload:void 0,meta:ka(Dt({},g||{}),{arg:h,requestId:f,requestStatus:"pending"})}}),s=Mt(e+"/rejected",function(f,h,g,b,x){return{payload:b,error:(o&&o.serializeError||eu)(f||"Rejected"),meta:ka(Dt({},x||{}),{arg:g,requestId:h,rejectedWithValue:!!b,requestStatus:"rejected",aborted:f?.name==="AbortError",condition:f?.name==="ConditionError"})}}),l=!1,c=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,g,b){var x=o?.idGenerator?o.idGenerator(f):Jf(),C=new c,$,L=!1;function I(S){$=S,C.abort()}var O=function(){return Ff(this,null,function(){var S,E,U,z,Se,Z,m;return If(this,function(v){switch(v.label){case 0:return v.trys.push([0,4,,5]),z=(S=o?.condition)==null?void 0:S.call(o,f,{getState:g,extra:b}),ru(z)?[4,z]:[3,2];case 1:z=v.sent(),v.label=2;case 2:if(z===!1||C.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return L=!0,Se=new Promise(function(R,j){return C.signal.addEventListener("abort",function(){return j({name:"AbortError",message:$||"Aborted"})})}),h(a(x,f,(E=o?.getPendingMeta)==null?void 0:E.call(o,{requestId:x,arg:f},{getState:g,extra:b}))),[4,Promise.race([Se,Promise.resolve(r(f,{dispatch:h,getState:g,extra:b,requestId:x,signal:C.signal,abort:I,rejectWithValue:function(R,j){return new Ma(R,j)},fulfillWithValue:function(R,j){return new dc(R,j)}})).then(function(R){if(R instanceof Ma)throw R;return R instanceof dc?n(R.payload,x,f,R.meta):n(R,x,f)})])];case 3:return U=v.sent(),[3,5];case 4:return Z=v.sent(),U=Z instanceof Ma?s(null,x,f,Z.payload,Z.meta):s(Z,x,f),[3,5];case 5:return m=o&&!o.dispatchConditionRejection&&s.match(U)&&U.meta.condition,m||h(U),[2,U]}})})}();return Object.assign(O,{abort:I,requestId:x,arg:f,unwrap:function(){return O.then(tu)}})}}return Object.assign(p,{pending:a,rejected:s,fulfilled:n,typePrefix:e})}return t.withTypes=function(){return t},t}();function tu(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}function ru(t){return t!==null&&typeof t=="object"&&typeof t.then=="function"}var yc="listener",gc="completed",bc="cancelled",Yb="task-"+bc,Xb="task-"+gc,Jb=yc+"-"+bc,Qb=yc+"-"+gc;var Ba="listenerMiddleware";var ex=Mt(Ba+"/add"),tx=Mt(Ba+"/removeAll"),rx=Mt(Ba+"/remove");var pc,ox=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(t){return(pc||(pc=Promise.resolve())).then(t).catch(function(e){return setTimeout(function(){throw e},0)})},ou=function(t){return function(e){setTimeout(e,t)}},ix=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:ou(10);Ql();window.ftReduxStores||(window.ftReduxStores={});var vt=class t{static get(e){var r;let o=typeof e=="string"?e:e.name,n=typeof e=="string"?void 0:e,a=window.ftReduxStores[o];if(ir(a))return a;if(n==null)return;let s=mc({...n,reducers:(r=n.reducers)!==null&&r!==void 0?r:{}}),l=uc({reducer:(c,p)=>p.type==="CLEAR_FT_REDUX_STORE"?s.getInitialState():typeof p.type=="string"&&p.type.startsWith("DEFAULT_VALUE_SETTER__")?{...c,...p.overwrites}:s.reducer(c,p)});return window.ftReduxStores[n.name]=new t(s,l)}constructor(e,r){this.reduxSlice=e,this.reduxStore=r,this.isFtReduxStore=!0,this.eventBus=document.createElement("event-bus"),this.commands=new xo,this.actions=new Proxy(this.reduxSlice.actions,{get:(o,n,a)=>{let s=n,l=o[s];return l?(...c)=>{let p=l(...c);return this.reduxStore.dispatch(p),p}:c=>{this.setState({[s]:c})}}})}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE"})}setState(e){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(e).join("_"),overwrites:e})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(e){throw new Error("Not implemented yet.")}subscribe(e){return this.reduxStore.subscribe(e)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}};function iu(){var t;for(let e of Object.values((t=window.ftReduxStores)!==null&&t!==void 0?t:{}))ir(e)&&e.clear()}var Ha={};J(Ha,{scrollHelper:()=>nu});var za,yi=new Map,Wa=class{lock(e,r){if(r){let o=yi.get(r);if(o==null||o===e)return yi.set(r,e),r}}release(e,r){r&&yi.get(r)===e&&yi.delete(r)}findFirstScrollableParent(e){let r,o=n=>{var a;n.stopPropagation();let s,l;for(let c of n.composedPath()){let p=c,f=this.elementCanScroll(p);if(f&&p.clientHeight&&p.clientHeight<p.scrollHeight){s=p;break}else f&&l==null&&(l=p)}r=(a=s??l)!==null&&a!==void 0?a:document.body};return e.addEventListener("find-scrollable-parent",o),e.dispatchEvent(new Event("find-scrollable-parent",{composed:!0})),e.removeEventListener("find-scrollable-parent",o),r}elementCanScroll(e){try{return["auto","scroll"].includes(getComputedStyle(e).overflowY)}catch{return!1}}getAbsoluteScrollOffset(e,r){let o=0;for(;r&&r.offsetParent!==e.offsetParent;)o+=r.offsetTop,r=r.offsetParent;return o+r.offsetTop-e.offsetTop}computeTopOffsetRatio(e,r){if(typeof e=="number")return e;switch(e){case"end":return 1;case"center":return .5;case"nearest":return r;default:return 0}}scrollIntoViewIfPossible(e,r){let o=this.findFirstScrollableParent(e);if(e&&this.lock(this,o)){let n=this.getAbsoluteScrollOffset(o,e),a=n-o.clientHeight+e.clientHeight,s=n,l=fn(0,(s-o.scrollTop)/(s-a),1),c=this.computeTopOffsetRatio(r?.position,l)*(a-s)+s;o.scrollTo({behavior:r?.behavior,top:c})}else console.warn("Could not scroll element into view because the scrollable parent is already locked",e,o);this.release(this,o)}};window.FluidTopicsScrollHelper=(za=window.FluidTopicsScrollHelper)!==null&&za!==void 0?za:new Wa;var nu=window.FluidTopicsScrollHelper;var Va={};J(Va,{shadowQuerySelector:()=>au,shadowQuerySelectorAll:()=>su});function au(t,e,...r){var o;let n=t.querySelector(e);for(let a of r)n=(o=n?.shadowRoot)===null||o===void 0?void 0:o.querySelector(a);return n}function su(t,e,...r){let o=[...t.querySelectorAll(e)];for(let n of r)o=o.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 o}var ja={};J(ja,{serializeRequest:()=>cu});function lu(t){return`"${t}"`}function cu(t,e){var r,o,n,a;let s=new URLSearchParams({"content-lang":(r=e.contentLocale)!==null&&r!==void 0?r:"all"});if(((o=e.query)===null||o===void 0?void 0:o.length)>0&&s.append("query",e.query),e.scope&&e.scope!=="DEFAULT"&&s.append("scope",e.scope.toLowerCase()),e.virtualField&&e.virtualField!=="EVERYWHERE"&&s.append("virtual-field",e.virtualField.toLowerCase()),e.periodFilter){let c=e.periodFilter.period,p=c?`_${c.from}_${c.to}`:"";s.append("period",e.periodFilter.periodType.toLowerCase()+p)}if(((n=e.sort)===null||n===void 0?void 0:n.length)>0&&e.sort[0].key==="ft:lastEdition"&&s.append("sort","last_update"),((a=e.filters)===null||a===void 0?void 0:a.length)>0){let c=e.filters.map(p=>{let f=p.values.map(h=>h.replace(/_/g,"\\\\\\\\_").replace(/~/g,"\\\\~").replace(/\*/g,"\\*")).map(h=>encodeURIComponent(lu(h))).join("_");return`${p.key}~${f}`}).join("*");s.append("filters",c)}return new URL(`${t.replace(/\/+$/,"")}/search?${s.toString()}`).href}var Ga={};J(Ga,{toFtFormComponent:()=>Ka});var gi=Symbol("elementInternals");function Ka(t,e){class r extends t{static get formAssociated(){return!0}get form(){return this[gi].form}constructor(...n){super(n),this[gi]=this.attachInternals(),this[gi].role=e}setFormValue(n){this[gi].setFormValue(n)}}return r}var Za={};J(Za,{DateFormatter:()=>Nr});var Nr=class{static format(e,r,o,n){return window.moment?window.moment(e).locale(r).format(this.getDateFormat(o,n)):e}static getDateFormat(e,r){return e?r?"lll":"ll":r?"L LT":"L"}};var qa,Ya,Xa,Ja,sr=navigator.vendor&&!!navigator.vendor.match(/apple/i)||((Xa=(Ya=(qa=window.safari)===null||qa===void 0?void 0:qa.pushNotification)===null||Ya===void 0?void 0:Ya.toString())!==null&&Xa!==void 0?Xa:"")==="[object SafariRemoteNotification]",du="ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0;window.ftGlobals=(Ja=window.ftGlobals)!==null&&Ja!==void 0?Ja:{lit:Yi,litDecorators:en,litRepeat:tn,litClassMap:rn,litStyleMap:on,litUnsafeHTML:an,wcUtils:{...ln,...sn,...dn,...Za,...pn,...hn,...Hn,...Gn,...na,...Wn,...la,...sa,...Ul,...un,...pa,...ua,...Fl,...ha,...Fa,...aa,...Ha,...Va,...ja,...Ga,isSafari:sr,isTouchScreen:du,setVariable:T}};var pu={spacing:i.create("--ft-search-selected-facets-spacing","","SIZE","8px")},xc=N`
|
|
50
50
|
.ft-search-selected-facets--container {
|
|
51
51
|
display: flex;
|
|
52
52
|
flex-wrap: wrap;
|
|
53
|
-
gap: ${
|
|
53
|
+
gap: ${pu.spacing};
|
|
54
54
|
}
|
|
55
55
|
|
|
56
56
|
.ft-search-selected-facets--container > * {
|
|
57
57
|
min-width: 0;
|
|
58
58
|
}
|
|
59
|
-
`;var
|
|
60
|
-
`;var
|
|
59
|
+
`;var fu={setRequest:(t,e)=>{t.request=e.payload},setRequestQuery:(t,e)=>{t.request.query=e.payload},setRequestContentLocale:(t,e)=>{t.request.contentLocale=e.payload},setPageSize:(t,e)=>{t.request.paging.perPage=e.payload},setPageNumber:(t,e)=>{t.request.paging.page=e.payload},setRequestSort:(t,e)=>{t.request.sort=e.payload},setRequestFilters:(t,e)=>{t.request.filters=e.payload},setRequestFacets:(t,e)=>{t.request.facets=e.payload},setRequestVirtualField:(t,e)=>{t.request.virtualField=e.payload},setRequestScope:(t,e)=>{t.request.scope=e.payload},setRequestClusterSortCriterion:(t,e)=>{var r;t.request.clusterSortCriterions=(r=e.payload)!==null&&r!==void 0?r:[]},setResults:(t,e)=>{t.results=e.payload},setFacets:(t,e)=>{t.facets=e.payload},setSpellcheck:(t,e)=>{t.spellcheck=e.payload},setLocales:(t,e)=>{t.locales=e.payload},setPaging:(t,e)=>{t.paging=e.payload},setLiveQuery:(t,e)=>{t.liveQuery=e.payload},setSuggestResults:(t,e)=>{t.suggestResults=e.payload},setRequestPeriodFilter:(t,e)=>{t.request.periodFilter=e.payload}},vc=t=>vt.get({name:"ft-search-"+t,initialState:{request:{query:"",clusterSortCriterions:[],filters:[],facets:[],sort:[],paging:{page:1,perPage:20}},liveQuery:""},reducers:fu});var nv=Wd(Oc(),1);var Cc;(function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"})(Cc||(Cc={}));var Ec;(function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"})(Ec||(Ec={}));var wc;(function(t){t.THIRD_PARTY="THIRD_PARTY",t.OFF_THE_GRID="OFF_THE_GRID",t.CONTENT_PACKAGER="CONTENT_PACKAGER",t.PAGES="PAGES",t.DESIGNED_READER="DESIGNED_READER"})(wc||(wc={}));var Ac;(function(t){t.HOMEPAGE="HOMEPAGE",t.CUSTOM="CUSTOM",t.HEADER="HEADER",t.READER="READER",t.TOPIC_TEMPLATE="TOPIC_TEMPLATE",t.SEARCH="SEARCH",t.SEARCH_RESULT="SEARCH_RESULT"})(Ac||(Ac={}));var Rc;(function(t){t.CLASSIC="CLASSIC",t.CUSTOM="CUSTOM",t.DESIGNER="DESIGNER"})(Rc||(Rc={}));var Nc;(function(t){t.AND="AND",t.OR="OR",t.MONOVALUED="MONOVALUED"})(Nc||(Nc={}));var _c;(function(t){t.NONE="NONE",t.ALPHABET="ALPHABET",t.VERSION="VERSION"})(_c||(_c={}));var Tc;(function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"})(Tc||(Tc={}));var bi;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR",t.CUSTOM="CUSTOM"})(bi||(bi={}));var Pc;(function(t){t.ASC="ASC",t.DESC="DESC"})(Pc||(Pc={}));var $c;(function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"})($c||($c={}));var _r;(function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"})(_r||(_r={}));var Lc;(function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK"})(Lc||(Lc={}));var Ic;(function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"})(Ic||(Ic={}));var kc;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.PERSONAL_BOOK="PERSONAL_BOOK",t.SHARED_BOOK="SHARED_BOOK"})(kc||(kc={}));var Dc;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC"})(Dc||(Dc={}));var Tr;(function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS",t.ALL_TOPICS="ALL_TOPICS"})(Tr||(Tr={}));var me;(function(t){t.PERSONAL_BOOK_USER="PERSONAL_BOOK_USER",t.PERSONAL_BOOK_SHARE_USER="PERSONAL_BOOK_SHARE_USER",t.HTML_EXPORT_USER="HTML_EXPORT_USER",t.PDF_EXPORT_USER="PDF_EXPORT_USER",t.SAVED_SEARCH_USER="SAVED_SEARCH_USER",t.COLLECTION_USER="COLLECTION_USER",t.OFFLINE_USER="OFFLINE_USER",t.ANALYTICS_USER="ANALYTICS_USER",t.BETA_USER="BETA_USER",t.DEBUG_USER="DEBUG_USER",t.PRINT_USER="PRINT_USER",t.RATING_USER="RATING_USER",t.FEEDBACK_USER="FEEDBACK_USER",t.GENERATIVE_AI_USER="GENERATIVE_AI_USER",t.CONTENT_PUBLISHER="CONTENT_PUBLISHER",t.KHUB_ADMIN="KHUB_ADMIN",t.USERS_ADMIN="USERS_ADMIN",t.PORTAL_ADMIN="PORTAL_ADMIN",t.ADMIN="ADMIN",t.DEVELOPER="DEVELOPER"})(me||(me={}));var Mc;(function(t){t.VALID="VALID",t.INVALID="INVALID"})(Mc||(Mc={}));var tv={[me.PERSONAL_BOOK_SHARE_USER]:[me.PERSONAL_BOOK_USER],[me.HTML_EXPORT_USER]:[me.PERSONAL_BOOK_USER],[me.PDF_EXPORT_USER]:[me.PERSONAL_BOOK_USER],[me.KHUB_ADMIN]:[me.CONTENT_PUBLISHER],[me.ADMIN]:[me.KHUB_ADMIN,me.USERS_ADMIN,me.PORTAL_ADMIN],[me.DEVELOPER]:[me.BETA_USER,me.DEBUG_USER]};var Uc=N`
|
|
60
|
+
`;var uu="ft-app-info",Qa=class extends CustomEvent{constructor(e){super("authentication-change",{detail:e})}},hu={session:(t,e)=>{De(t.session,e.payload)||(t.session=e.payload,setTimeout(()=>D.eventBus.dispatchEvent(new Qa(e.payload)),0))}},D=vt.get({name:uu,reducers:hu,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 lr=class t{static get(e){let{baseUrl:r,apiIntegrationIdentifier:o}=D.getState(),n=e??o;if(r&&n&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(r,n,!0)}static await(e){return new Promise(r=>{let o=t.get(e);if(o)r(o);else{let n=D.subscribe(()=>{o=t.get(e),o&&(n(),r(o))})}})}};var nt=class{constructor(e=!0,r){var o;this.overrideApi=r;let n=this.constructor;n.commonCache=(o=n.commonCache)!==null&&o!==void 0?o:new rt,this.cache=e?n.commonCache:new rt}get api(){var e;return(e=this.overrideApi)!==null&&e!==void 0?e:lr.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):lr.await()}clearCache(){this.cache.clearAll()}};var Bc,mu=Symbol("clearAfterUnitTest"),xi=class extends nt{constructor(e){super(),this.messageContextProvider=e,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[Bc]=()=>{this.defaultMessages={},this.cache=new rt,this.listeners={}},this.currentUiLocale=D.getState().uiLocale,D.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:e}=D.getState();this.currentUiLocale!==e&&(this.currentUiLocale=e,this.cache.clearAll(),this.notifyAll())}addContext(e){let r=e.name.toLowerCase();this.cache.setFinal(r,e),this.notify(r)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(e,r){var o;if(e=e.toLowerCase(),Object.keys(r).length>0){let n={...(o=this.defaultMessages[e])!==null&&o!==void 0?o:{},...r};De(this.defaultMessages[e],n)||(this.defaultMessages[e]=n,await this.notify(e))}await this.fetchContext(e)}resolveMessage(e,r,...o){var n,a,s;e=e.toLowerCase(),this.fetchContext(e);let l=(a=(n=this.cache.getNow(e))===null||n===void 0?void 0:n.messages)!==null&&a!==void 0?a:{};return new bo((s=this.defaultMessages[e])!==null&&s!==void 0?s:{},l).resolve(r,...o)}async fetchContext(e){if(!this.cache.has(e))try{await this.cache.get(e,()=>this.messageContextProvider(this.currentUiLocale,e)),await this.notify(e)}catch(r){console.error(r)}}subscribe(e,r){var o;return e=e.toLowerCase(),this.listeners[e]=(o=this.listeners[e])!==null&&o!==void 0?o:new Set,this.listeners[e].add(r),()=>{var n;return(n=this.listeners[e])===null||n===void 0?void 0:n.delete(r)}}async notifyAll(){await Promise.all(Object.keys(this.listeners).map(e=>this.notify(e)))}async notify(e){this.listeners[e]!=null&&await Promise.all([...this.listeners[e].values()].map(r=>Qo(0).then(()=>r()).catch(()=>null)))}};Bc=mu;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends xi{constructor(){super(async(t,e)=>(await this.awaitApi).getFluidTopicsMessageContext(t,e))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends xi{constructor(){super(async(t,e)=>(await this.awaitApi).getCustomMessageContext(t,e))}});var Pr=window.FluidTopicsI18nService,Fc=window.FluidTopicsCustomI18nService;var we=function(t,e,r,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},se=class extends M{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=()=>lr.get(),this.messageContexts=[],this.cache=new rt,this.cleanSessionDebouncer=new oe}render(){return _`
|
|
61
61
|
<slot></slot>
|
|
62
|
-
`}update(e){super.update(e),e.has("baseUrl")&&(D.actions.baseUrl(this.baseUrl),window.fluidTopicsBaseUrl=this.baseUrl),e.has("apiIntegrationIdentifier")&&D.actions.apiIntegrationIdentifier(this.apiIntegrationIdentifier),e.has("uiLocale")&&D.actions.uiLocale(this.uiLocale),e.has("metadataConfiguration")&&D.actions.metadataConfiguration(this.metadataConfiguration),e.has("noCustom")&&D.actions.noCustom(this.noCustom),e.has("editorMode")&&D.actions.editorMode(this.editorMode),e.has("noCustomComponent")&&D.actions.noCustomComponent(this.noCustomComponent),e.has("session")&&D.actions.session(this.session),e.has("availableUiLocales")&&D.actions.availableUiLocales(Array.isArray(this.availableUiLocales)?this.availableUiLocales:[]),e.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(r=>Pr.addContext(r)),e.has("openExternalDocumentInNewTab")&&D.actions.openExternalDocumentInNewTab(this.openExternalDocumentInNewTab),e.has("navigatorOnline")&&D.actions.navigatorOnline(this.navigatorOnline),e.has("forcedOffline")&&D.actions.forcedOffline(this.forcedOffline),setTimeout(()=>this.updateIfNeeded())}async updateIfNeeded(){!this.withManualResources&&this.apiProvider()&&(this.session==null&&this.updateSession(),this.availableUiLocales==null&&this.updateUiLocales(),this.metadataConfiguration==null&&this.updateMetadataConfiguration())}async updateSession(){this.session=await this.cache.get("session",async()=>{let e=await this.apiProvider().getCurrentSession();return e.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run(()=>{this.cache.clear("session"),this.session=void 0},e.idleTimeoutInMillis),e})}async updateUiLocales(){this.availableUiLocales=await this.cache.get("availableUiLocales",()=>this.apiProvider().getAvailableUiLocales())}async updateMetadataConfiguration(){this.metadataConfiguration=await this.cache.get("metadataConfiguration",()=>this.apiProvider().getMetadataConfiguration())}};se.elementDefinitions={};se.styles=$c;we([y()],se.prototype,"baseUrl",void 0);we([y()],se.prototype,"apiIntegrationIdentifier",void 0);we([y()],se.prototype,"uiLocale",void 0);we([be(null)],se.prototype,"availableUiLocales",void 0);we([be(null)],se.prototype,"metadataConfiguration",void 0);we([y({type:Boolean})],se.prototype,"editorMode",void 0);we([y({type:Boolean})],se.prototype,"noCustom",void 0);we([y({type:Boolean})],se.prototype,"openExternalDocumentInNewTab",void 0);we([y({converter:{fromAttribute(t){return t==="false"?!1:t==="true"||(t??!1)}}})],se.prototype,"noCustomComponent",void 0);we([y({type:Boolean})],se.prototype,"withManualResources",void 0);we([y({type:Boolean})],se.prototype,"navigatorOnline",void 0);we([y({type:Boolean})],se.prototype,"forcedOffline",void 0);we([y({type:Object})],se.prototype,"apiProvider",void 0);we([be([])],se.prototype,"messageContexts",void 0);we([be(void 0)],se.prototype,"session",void 0);var xi=class extends nt{async listMySearches(){let e=D.getState().session;return e?.sessionAuthenticated?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(e.profile.userId),5*60*1e3):[]}};var vi=class extends nt{async listMyBookmarks(){let e=D.getState().session;return e?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(e.profile.userId),5*60*1e3):[]}};var lu="ft-user-assets",Si=vt.get({name:lu,initialState:{savedSearches:void 0,bookmarks:void 0}}),Za=class{constructor(){this.currentSession=D.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new vi,this.savedSearchesService=new xi,D.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var e;let{session:r}=D.getState();De((e=this.currentSession)===null||e===void 0?void 0:e.profile,r?.profile)||(this.currentSession=r,this.clearMySearches(),this.reloadBookmarks())}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),Si.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),Si.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let e=await this.savedSearchesService.listMySearches();Si.actions.savedSearches(e)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var e;if(this.bookmarksAreUsed){let r=!((e=this.currentSession)===null||e===void 0)&&e.sessionAuthenticated?await this.bookmarksService.listMyBookmarks():void 0;Si.actions.bookmarks(r)}}},kc=new Za;var qa=class{addCommand(e,r=!1){D.commands.add(e,r)}consumeCommand(e){return D.commands.consume(e)}};window.FluidTopicsAppInfoStoreService=new qa;var Ya=class{highlightHtml(e,r){ca(e,r)}};window.FluidTopicsHighlightHtmlService=new Ya;var Xa=class{isDate(e){var r,i,n,a;return(a=(n=((i=(r=D.getState().metadataConfiguration)===null||r===void 0?void 0:r.descriptors)!==null&&i!==void 0?i:[]).find(l=>l.key===e))===null||n===void 0?void 0:n.date)!==null&&a!==void 0?a:!1}format(e,r){var i,n,a;return sr.format(e,(i=r?.locale)!==null&&i!==void 0?i:D.getState().uiLocale,(n=r?.longFormat)!==null&&n!==void 0?n:!1,(a=r?.withTime)!==null&&a!==void 0?a:!1)}};window.FluidTopicsDateService=new Xa;F("ft-app-context")(se);var Oi=class extends nt{async launchSearch(e){return this.cache.get(this.hash(e),async()=>(await this.awaitApi).search(e),2*60*1e3)}async launchSuggest(e){return this.cache.get(this.hash(e),async()=>(await this.awaitApi).getSuggestions(e),2*60*1e3)}async getAvailableSearchLocales(){return this.cache.get("available-locales",async()=>(await this.awaitApi).getAvailableSearchLocales())}hash(e){return""+Array.from(JSON.stringify(e)).reduce((r,i)=>0|31*r+i.charCodeAt(0),0)}};var Eo=t=>t.request.virtualField===_r.TITLE_ONLY&&t.request.scope===Tr.DOCUMENTS,Ci=class t extends Event{constructor(){super(t.eventName)}};Ci.eventName="search-context-clear-all-filters";var Co=class t{static build(e,r){return new t(hc(e.trim()||"context"),r)}constructor(e,r){this.store=e,this.ignoreEmptyQuery=!1,this.openExternalDocumentInNewTab=!1,this.localesDebouncer=new oe(10),this.searchDebouncer=new oe(100),this.suggestDebouncer=new oe(300),this.service=r??new Oi}async initService(){return this.updateLocales(),this.launchSearch()}setQuery(e){this.store.actions.setRequestQuery(e),this.store.actions.setLiveQuery(e),this.store.actions.setPageNumber(1),this.launchSearch()}setContentLocale(e){let r=this.store.getState().locales,i=this.store.getState().request.contentLocale;if(e!=i){if(r){let n=a=>r.some(s=>s.lang==a);n(e)||(e=n(i)?i:r[0].lang)}this.store.actions.setRequestContentLocale(e),this.store.actions.setPageNumber(1),this.store.actions.setRequestFilters([]),this.launchSearch()}return e}setPageSize(e){this.store.actions.setPageSize(e),this.launchSearch()}setPageNumber(e){this.store.actions.setPageNumber(e),this.launchSearch()}setSort(e){this.store.actions.setRequestSort(e),this.store.actions.setPageNumber(1),this.launchSearch()}setFilters(e){let r=e.filter(i=>i.values.length>0);this.store.actions.setRequestFilters(r),this.store.actions.setPageNumber(1),r.forEach(i=>{this.facetIds.includes(i.key)||(this.facetIds=[...this.facetIds,i.key])}),this.launchSearch()}setClusterSortCriterion(e){this.store.actions.setRequestClusterSortCriterion(e),this.launchSearch()}setSearchInDocumentTitlesOnly(e){e?(this.store.actions.setRequestVirtualField(_r.TITLE_ONLY),this.store.actions.setRequestScope(Tr.DOCUMENTS)):(this.store.actions.setRequestVirtualField(_r.EVERYWHERE),this.store.actions.setRequestScope(Tr.DEFAULT)),this.launchSearch()}setVirtualField(e){this.store.actions.setRequestVirtualField(e),this.launchSearch()}get searchInDocumentTitlesOnly(){return Eo(this.store.getState())}get periodFilter(){return this.store.getState().request.periodFilter}clearAllFilters(){this.setFilters([]),this.store.eventBus.dispatchEvent(new Ci)}addFacet(e){this.facetIds=[...this.facetIds,e],this.launchSearch()}replaceFacet(e,r){let i=this.facetIds.filter(n=>n!=e);r&&i.push(r),this.facetIds=i,this.launchSearch()}get facetIds(){return this.store.getState().request.facets.map(e=>e.id)}set facetIds(e){let i=[...new Set(e)].map(n=>({id:n}));this.store.actions.setRequestFacets(i)}setFilter(e,r){let i=this.store.getState().request.filters,n={key:e,values:r,negative:!1},a=[...i.filter(s=>s.key!==e),n];this.setFilters(a)}setLiveQuery(e){this.store.actions.setLiveQuery(e),this.launchSuggest()}setRequest(e){this.store.actions.setRequest(e),this.store.actions.setLiveQuery(e.query),this.store.actions.setPageNumber(1),this.launchSearch()}setScope(e){this.store.actions.setRequestScope(e),this.launchSearch()}setIgnoreEmptyQuery(e){this.ignoreEmptyQuery=e,this.launchSearch()}setOpenExternalDocumentInNewTab(e){this.openExternalDocumentInNewTab=e}setPeriodFilter(e){this.store.actions.setRequestPeriodFilter(e),this.store.actions.setPageNumber(1),this.launchSearch()}updateLocales(){return this.localesDebouncer.run(async()=>this.store.actions.setLocales((await this.service.getAvailableSearchLocales()).contentLocales))}launchSearch(){return this.searchDebouncer.run(()=>this.fetchSearchData())}launchSuggest(){return this.suggestDebouncer.run(()=>this.fetchSuggestData())}async fetchSearchData(){var e,r;try{(e=this.cancelableSearch)===null||e===void 0||e.cancel();let i=this.store.getState().request;if(this.store.actions.setPaging(void 0),this.ignoreEmptyQuery&&i.query.length==0)this.store.actions.setResults(void 0),this.store.actions.setFacets(void 0),this.store.actions.setSpellcheck(void 0);else{this.cancelableSearch=vr(this.service.launchSearch(i));let n=await this.cancelableSearch;if(n.paging.currentPage<=1)this.store.actions.setResults(n.results),this.store.actions.setFacets(n.facets),this.store.actions.setSpellcheck(n.spellcheck);else{let a=((r=this.store.getState().results)!==null&&r!==void 0?r:[]).concat(n.results);this.store.actions.setResults(a)}this.store.actions.setPaging(n.paging)}}catch(i){!(i instanceof _t)&&this.errorHandler&&this.errorHandler(i)}}async fetchSuggestData(){var e;try{let r=this.store.getState(),i=r.request,n={input:r.liveQuery,filters:i.filters,sort:i.sort,contentLocale:i.contentLocale,scope:i.scope};(e=this.cancelableSuggest)===null||e===void 0||e.cancel(),this.cancelableSuggest=vr(this.service.launchSuggest(n));let a=await this.cancelableSuggest;this.store.actions.setSuggestResults(a.suggestions)}catch(r){!(r instanceof _t)&&this.errorHandler&&this.errorHandler(r)}}clear(){this.store.clear()}};var cu=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},Qa=class extends Event{constructor(){super("register-ft-search-component",{bubbles:!0,composed:!0})}},Ja=Symbol("registerInterval");function du(t){var e;class r extends t{constructor(){super(...arguments),this[e]=0}setSearchStateManager(n){this.clearStateManager(),this.stateManager=n,this.addStore(n.store,"search")}clearStateManager(){this.stateManager&&(this.removeStore(this.stateManager.store),this.stateManager=void 0)}connectedCallback(){super.connectedCallback(),this[Ja]=window.setInterval(()=>this.tryToRegisterToContext(),50)}tryToRegisterToContext(){this.stateManager!=null?window.clearInterval(this[Ja]):this.dispatchEvent(new Qa)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return e=Ja,cu([K()],r.prototype,"stateManager",void 0),r}var Ut=class extends du(We){};var Dc=o.extend("--ft-ripple-color","",T.colorContent),V={color:Dc,backgroundColor:o.extend("--ft-ripple-background-color","",Dc),opacityContentOnSurfacePressed:o.external(T.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:o.external(T.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:o.external(T.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:o.external(T.opacityContentOnSurfaceSelected,"Design system"),borderRadius:o.create("--ft-ripple-border-radius","","SIZE","0px")},Mc=o.extend("--ft-ripple-color","",T.colorPrimary),Uc={color:Mc,backgroundColor:o.extend("--ft-ripple-background-color","",Mc)},Bc=o.extend("--ft-ripple-color","",T.colorSecondary),Fc={color:Bc,backgroundColor:o.extend("--ft-ripple-background-color","",Bc)},zc=N`
|
|
62
|
+
`}update(e){super.update(e),e.has("baseUrl")&&(D.actions.baseUrl(this.baseUrl),window.fluidTopicsBaseUrl=this.baseUrl),e.has("apiIntegrationIdentifier")&&D.actions.apiIntegrationIdentifier(this.apiIntegrationIdentifier),e.has("uiLocale")&&D.actions.uiLocale(this.uiLocale),e.has("metadataConfiguration")&&D.actions.metadataConfiguration(this.metadataConfiguration),e.has("noCustom")&&D.actions.noCustom(this.noCustom),e.has("editorMode")&&D.actions.editorMode(this.editorMode),e.has("noCustomComponent")&&D.actions.noCustomComponent(this.noCustomComponent),e.has("session")&&D.actions.session(this.session),e.has("availableUiLocales")&&D.actions.availableUiLocales(Array.isArray(this.availableUiLocales)?this.availableUiLocales:[]),e.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(r=>Pr.addContext(r)),e.has("openExternalDocumentInNewTab")&&D.actions.openExternalDocumentInNewTab(this.openExternalDocumentInNewTab),e.has("navigatorOnline")&&D.actions.navigatorOnline(this.navigatorOnline),e.has("forcedOffline")&&D.actions.forcedOffline(this.forcedOffline),setTimeout(()=>this.updateIfNeeded())}async updateIfNeeded(){!this.withManualResources&&this.apiProvider()&&(this.session==null&&this.updateSession(),this.availableUiLocales==null&&this.updateUiLocales(),this.metadataConfiguration==null&&this.updateMetadataConfiguration())}async updateSession(){this.session=await this.cache.get("session",async()=>{let e=await this.apiProvider().getCurrentSession();return e.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run(()=>{this.cache.clear("session"),this.session=void 0},e.idleTimeoutInMillis),e})}async updateUiLocales(){this.availableUiLocales=await this.cache.get("availableUiLocales",()=>this.apiProvider().getAvailableUiLocales())}async updateMetadataConfiguration(){this.metadataConfiguration=await this.cache.get("metadataConfiguration",()=>this.apiProvider().getMetadataConfiguration())}};se.elementDefinitions={};se.styles=Uc;we([y()],se.prototype,"baseUrl",void 0);we([y()],se.prototype,"apiIntegrationIdentifier",void 0);we([y()],se.prototype,"uiLocale",void 0);we([be(null)],se.prototype,"availableUiLocales",void 0);we([be(null)],se.prototype,"metadataConfiguration",void 0);we([y({type:Boolean})],se.prototype,"editorMode",void 0);we([y({type:Boolean})],se.prototype,"noCustom",void 0);we([y({type:Boolean})],se.prototype,"openExternalDocumentInNewTab",void 0);we([y({converter:{fromAttribute(t){return t==="false"?!1:t==="true"||(t??!1)}}})],se.prototype,"noCustomComponent",void 0);we([y({type:Boolean})],se.prototype,"withManualResources",void 0);we([y({type:Boolean})],se.prototype,"navigatorOnline",void 0);we([y({type:Boolean})],se.prototype,"forcedOffline",void 0);we([y({type:Object})],se.prototype,"apiProvider",void 0);we([be([])],se.prototype,"messageContexts",void 0);we([be(void 0)],se.prototype,"session",void 0);var vi=class extends nt{async listMySearches(){let e=D.getState().session;return e?.sessionAuthenticated?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(e.profile.userId),5*60*1e3):[]}};var Si=class extends nt{async listMyBookmarks(){let e=D.getState().session;return e?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(e.profile.userId),5*60*1e3):[]}};var yu="ft-user-assets",Oi=vt.get({name:yu,initialState:{savedSearches:void 0,bookmarks:void 0}}),es=class{constructor(){this.currentSession=D.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new Si,this.savedSearchesService=new vi,D.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var e;let{session:r}=D.getState();De((e=this.currentSession)===null||e===void 0?void 0:e.profile,r?.profile)||(this.currentSession=r,this.clearMySearches(),this.reloadBookmarks())}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),Oi.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),Oi.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let e=await this.savedSearchesService.listMySearches();Oi.actions.savedSearches(e)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var e;if(this.bookmarksAreUsed){let r=!((e=this.currentSession)===null||e===void 0)&&e.sessionAuthenticated?await this.bookmarksService.listMyBookmarks():void 0;Oi.actions.bookmarks(r)}}},zc=new es;var ts=class{addCommand(e,r=!1){D.commands.add(e,r)}consumeCommand(e){return D.commands.consume(e)}};window.FluidTopicsAppInfoStoreService=new ts;var rs=class{highlightHtml(e,r,o){da(e,r,o)}};window.FluidTopicsHighlightHtmlService=new rs;var os=class{isDate(e){var r,o,n,a;return(a=(n=((o=(r=D.getState().metadataConfiguration)===null||r===void 0?void 0:r.descriptors)!==null&&o!==void 0?o:[]).find(l=>l.key===e))===null||n===void 0?void 0:n.date)!==null&&a!==void 0?a:!1}format(e,r){var o,n,a;return Nr.format(e,(o=r?.locale)!==null&&o!==void 0?o:D.getState().uiLocale,(n=r?.longFormat)!==null&&n!==void 0?n:!1,(a=r?.withTime)!==null&&a!==void 0?a:!1)}};window.FluidTopicsDateService=new os;F("ft-app-context")(se);var Ci=class extends nt{async launchSearch(e){return this.cache.get(this.hash(e),async()=>(await this.awaitApi).search(e),2*60*1e3)}async launchSuggest(e){return this.cache.get(this.hash(e),async()=>(await this.awaitApi).getSuggestions(e),2*60*1e3)}async getAvailableSearchLocales(){return this.cache.get("available-locales",async()=>(await this.awaitApi).getAvailableSearchLocales())}hash(e){return""+Array.from(JSON.stringify(e)).reduce((r,o)=>0|31*r+o.charCodeAt(0),0)}};var Eo=t=>t.request.virtualField===_r.TITLE_ONLY&&t.request.scope===Tr.DOCUMENTS,Ei=class t extends Event{constructor(){super(t.eventName)}};Ei.eventName="search-context-clear-all-filters";var Co=class t{static build(e,r){return new t(vc(e.trim()||"context"),r)}constructor(e,r){this.store=e,this.ignoreEmptyQuery=!1,this.openExternalDocumentInNewTab=!1,this.localesDebouncer=new oe(10),this.searchDebouncer=new oe(100),this.suggestDebouncer=new oe(300),this.service=r??new Ci}async initService(){return this.updateLocales(),this.launchSearch()}setQuery(e){this.store.actions.setRequestQuery(e),this.store.actions.setLiveQuery(e),this.store.actions.setPageNumber(1),this.launchSearch()}setContentLocale(e){let r=this.store.getState().locales,o=this.store.getState().request.contentLocale;if(e!=o){if(r){let n=a=>r.some(s=>s.lang==a);n(e)||(e=n(o)?o:r[0].lang)}this.store.actions.setRequestContentLocale(e),this.store.actions.setPageNumber(1),this.store.actions.setRequestFilters([]),this.launchSearch()}return e}setPageSize(e){this.store.actions.setPageSize(e),this.launchSearch()}setPageNumber(e){this.store.actions.setPageNumber(e),this.launchSearch()}setSort(e){this.store.actions.setRequestSort(e),this.store.actions.setPageNumber(1),this.launchSearch()}setFilters(e){let r=e.filter(o=>o.values.length>0);this.store.actions.setRequestFilters(r),this.store.actions.setPageNumber(1),r.forEach(o=>{this.facetIds.includes(o.key)||(this.facetIds=[...this.facetIds,o.key])}),this.launchSearch()}setClusterSortCriterion(e){this.store.actions.setRequestClusterSortCriterion(e),this.launchSearch()}setSearchInDocumentTitlesOnly(e){e?(this.store.actions.setRequestVirtualField(_r.TITLE_ONLY),this.store.actions.setRequestScope(Tr.DOCUMENTS)):(this.store.actions.setRequestVirtualField(_r.EVERYWHERE),this.store.actions.setRequestScope(Tr.DEFAULT)),this.launchSearch()}setVirtualField(e){this.store.actions.setRequestVirtualField(e),this.launchSearch()}get searchInDocumentTitlesOnly(){return Eo(this.store.getState())}get periodFilter(){return this.store.getState().request.periodFilter}clearAllFilters(){this.setFilters([]),this.store.eventBus.dispatchEvent(new Ei)}addFacet(e){this.facetIds=[...this.facetIds,e],this.launchSearch()}replaceFacet(e,r){let o=this.facetIds.filter(n=>n!=e);r&&o.push(r),this.facetIds=o,this.launchSearch()}get facetIds(){return this.store.getState().request.facets.map(e=>e.id)}set facetIds(e){let o=[...new Set(e)].map(n=>({id:n}));this.store.actions.setRequestFacets(o)}setFilter(e,r){let o=this.store.getState().request.filters,n={key:e,values:r,negative:!1},a=[...o.filter(s=>s.key!==e),n];this.setFilters(a)}setLiveQuery(e){this.store.actions.setLiveQuery(e),this.launchSuggest()}setRequest(e){this.store.actions.setRequest(e),this.store.actions.setLiveQuery(e.query),this.store.actions.setPageNumber(1),this.launchSearch()}setScope(e){this.store.actions.setRequestScope(e),this.launchSearch()}setIgnoreEmptyQuery(e){this.ignoreEmptyQuery=e,this.launchSearch()}setOpenExternalDocumentInNewTab(e){this.openExternalDocumentInNewTab=e}setPeriodFilter(e){this.store.actions.setRequestPeriodFilter(e),this.store.actions.setPageNumber(1),this.launchSearch()}updateLocales(){return this.localesDebouncer.run(async()=>this.store.actions.setLocales((await this.service.getAvailableSearchLocales()).contentLocales))}launchSearch(){return this.searchDebouncer.run(()=>this.fetchSearchData())}launchSuggest(){return this.suggestDebouncer.run(()=>this.fetchSuggestData())}async fetchSearchData(){var e,r;try{(e=this.cancelableSearch)===null||e===void 0||e.cancel();let o=this.store.getState().request;if(this.store.actions.setPaging(void 0),this.ignoreEmptyQuery&&o.query.length==0)this.store.actions.setResults(void 0),this.store.actions.setFacets(void 0),this.store.actions.setSpellcheck(void 0);else{this.cancelableSearch=xr(this.service.launchSearch(o));let n=await this.cancelableSearch;if(n.paging.currentPage<=1)this.store.actions.setResults(n.results),this.store.actions.setFacets(n.facets),this.store.actions.setSpellcheck(n.spellcheck);else{let a=((r=this.store.getState().results)!==null&&r!==void 0?r:[]).concat(n.results);this.store.actions.setResults(a)}this.store.actions.setPaging(n.paging)}}catch(o){!(o instanceof _t)&&this.errorHandler&&this.errorHandler(o)}}async fetchSuggestData(){var e;try{let r=this.store.getState(),o=r.request,n={input:r.liveQuery,filters:o.filters,sort:o.sort,contentLocale:o.contentLocale,scope:o.scope};(e=this.cancelableSuggest)===null||e===void 0||e.cancel(),this.cancelableSuggest=xr(this.service.launchSuggest(n));let a=await this.cancelableSuggest;this.store.actions.setSuggestResults(a.suggestions)}catch(r){!(r instanceof _t)&&this.errorHandler&&this.errorHandler(r)}}clear(){this.store.clear()}};var gu=function(t,e,r,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},ns=class extends Event{constructor(){super("register-ft-search-component",{bubbles:!0,composed:!0})}},is=Symbol("registerInterval");function bu(t){var e;class r extends t{constructor(){super(...arguments),this[e]=0}setSearchStateManager(n){this.clearStateManager(),this.stateManager=n,this.addStore(n.store,"search")}clearStateManager(){this.stateManager&&(this.removeStore(this.stateManager.store),this.stateManager=void 0)}connectedCallback(){super.connectedCallback(),this[is]=window.setInterval(()=>this.tryToRegisterToContext(),50)}tryToRegisterToContext(){this.stateManager!=null?window.clearInterval(this[is]):this.dispatchEvent(new ns)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return e=is,gu([K()],r.prototype,"stateManager",void 0),r}var Ut=class extends bu(We){};var Wc=i.extend("--ft-ripple-color","",P.colorContent),V={color:Wc,backgroundColor:i.extend("--ft-ripple-background-color","",Wc),opacityContentOnSurfacePressed:i.external(P.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:i.external(P.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:i.external(P.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:i.external(P.opacityContentOnSurfaceSelected,"Design system"),borderRadius:i.create("--ft-ripple-border-radius","","SIZE","0px")},Hc=i.extend("--ft-ripple-color","",P.colorPrimary),Vc={color:Hc,backgroundColor:i.extend("--ft-ripple-background-color","",Hc)},jc=i.extend("--ft-ripple-color","",P.colorSecondary),Kc={color:jc,backgroundColor:i.extend("--ft-ripple-background-color","",jc)},Gc=N`
|
|
63
63
|
:host {
|
|
64
64
|
display: contents;
|
|
65
65
|
}
|
|
@@ -114,19 +114,19 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
114
114
|
}
|
|
115
115
|
|
|
116
116
|
.ft-ripple.ft-ripple--secondary .ft-ripple--background {
|
|
117
|
-
background-color: ${
|
|
117
|
+
background-color: ${Kc.backgroundColor};
|
|
118
118
|
}
|
|
119
119
|
|
|
120
120
|
.ft-ripple.ft-ripple--secondary .ft-ripple--effect {
|
|
121
|
-
background-color: ${
|
|
121
|
+
background-color: ${Kc.color};
|
|
122
122
|
}
|
|
123
123
|
|
|
124
124
|
.ft-ripple.ft-ripple--primary .ft-ripple--background {
|
|
125
|
-
background-color: ${
|
|
125
|
+
background-color: ${Vc.backgroundColor};
|
|
126
126
|
}
|
|
127
127
|
|
|
128
128
|
.ft-ripple.ft-ripple--primary .ft-ripple--effect {
|
|
129
|
-
background-color: ${
|
|
129
|
+
background-color: ${Vc.color};
|
|
130
130
|
}
|
|
131
131
|
|
|
132
132
|
.ft-ripple .ft-ripple--background {
|
|
@@ -171,7 +171,7 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
171
171
|
opacity: ${V.opacityContentOnSurfacePressed};
|
|
172
172
|
transform: translate(-50%, -50%) scale(1);
|
|
173
173
|
}
|
|
174
|
-
`;var _e=function(t,e,r,
|
|
174
|
+
`;var _e=function(t,e,r,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},Y=class extends M{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 oe(1e3),this.onTransitionStart=e=>{e.propertyName==="transform"&&(this.rippling=this.pressed,this.debouncer.run(()=>this.rippling=!1))},this.onTransitionEnd=e=>{e.propertyName==="transform"&&(this.rippling=!1)},this.setupDebouncer=new oe(10),this.moveRipple=e=>{var r,o;let{x:n,y:a}=this.getCoordinates(e),s=(o=(r=this.ripple)===null||r===void 0?void 0:r.getBoundingClientRect())!==null&&o!==void 0?o:{x:0,y:0,width:0,height:0};this.originX=Math.round(n!=null?n-s.x:s.width/2),this.originY=Math.round(a!=null?a-s.y:s.height/2)},this.startPress=e=>{this.moveRipple(e),this.pressed=!this.isIgnored(e)},this.endPress=()=>{this.pressed=!1},this.startHover=e=>{this.hovered=!this.isIgnored(e)},this.endHover=()=>{this.hovered=!1},this.startFocus=e=>{this.focused=this.isFocusVisible(e?.target)&&!this.isIgnored(e)},this.endFocus=()=>{this.focused=!1}}render(){let e={"ft-ripple":!0,"ft-ripple--primary":this.primary,"ft-ripple--secondary":this.secondary,"ft-ripple--unbounded":this.unbounded,"ft-ripple--selected":(this.selected||this.activated)&&!this.disabled,"ft-ripple--pressed":(this.pressed||this.rippling)&&!this.disabled,"ft-ripple--hovered":this.hovered&&!this.disabled,"ft-ripple--focused":this.focused&&!this.disabled};return _`
|
|
175
175
|
<style>
|
|
176
176
|
.ft-ripple .ft-ripple--effect {
|
|
177
177
|
left: ${this.originX}px;
|
|
@@ -182,7 +182,7 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
182
182
|
<div class="ft-ripple--background"></div>
|
|
183
183
|
<div class="ft-ripple--effect"></div>
|
|
184
184
|
</div>
|
|
185
|
-
`}contentAvailableCallback(e){super.contentAvailableCallback(e),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}update(e){var r,
|
|
185
|
+
`}contentAvailableCallback(e){super.contentAvailableCallback(e),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}update(e){var r,o;super.update(e),e.has("disabled")&&(this.disabled?(this.endRipple(),(r=this.target)===null||r===void 0||r.removeAttribute("data-is-ft-ripple-target")):(o=this.target)===null||o===void 0||o.setAttribute("data-is-ft-ripple-target","true"))}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run(()=>this.defaultSetup())}defaultSetup(){var e,r;let o=(e=this.shadowRoot)===null||e===void 0?void 0:e.host.parentElement;o&&this.setupFor((r=this.target)!==null&&r!==void 0?r:o)}setupFor(e){if(this.setupDebouncer.cancel(),this.target===e)return;this.onDisconnect&&this.onDisconnect(),this.target=e,e.setAttribute("data-is-ft-ripple-target","true");let r=(...l)=>c=>{l.forEach(p=>window.addEventListener(p,this.endPress,{once:!0})),this.startPress(c)},o=r("mouseup","contextmenu"),n=r("touchend","touchcancel"),a=l=>{["Enter"," "].includes(l.key)&&r("keyup")(l)},s={passive:!0};e.addEventListener("mouseover",this.startHover,s),e.addEventListener("mousemove",this.moveRipple,s),e.addEventListener("mouseleave",this.endHover,s),e.addEventListener("mousedown",o,s),e.addEventListener("touchstart",n,s),e.addEventListener("touchmove",this.moveRipple,s),e.addEventListener("keydown",a,s),e.addEventListener("focus",this.startFocus,s),e.addEventListener("blur",this.endFocus,s),e.addEventListener("focusin",this.startFocus,s),e.addEventListener("focusout",this.endFocus,s),this.onDisconnect=()=>{e.removeAttribute("data-is-ft-ripple-target"),e.removeEventListener("mouseover",this.startHover,s),e.removeEventListener("mousemove",this.moveRipple,s),e.removeEventListener("mouseleave",this.endHover,s),e.removeEventListener("mousedown",o,s),e.removeEventListener("touchstart",n,s),e.removeEventListener("touchmove",this.moveRipple,s),e.removeEventListener("keydown",a,s),e.removeEventListener("focus",this.startFocus,s),e.removeEventListener("blur",this.endFocus,s),e.removeEventListener("focusin",this.startFocus,s),e.removeEventListener("focusout",this.endFocus,s),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(e){let r=e,o=e,n,a;return r.x!=null?{x:n,y:a}=r:o.touches!=null&&(n=o.touches[0].clientX,a=o.touches[0].clientY),{x:n,y:a}}isFocusVisible(e){return e instanceof HTMLElement?e.matches(":focus-visible"):!0}isIgnored(e){if(this.disabled)return!0;if(e!=null)for(let r of e.composedPath()){if(r===this.target)break;if("hasAttribute"in r&&r.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.endRipple()}};Y.elementDefinitions={};Y.styles=Gc;_e([y({type:Boolean})],Y.prototype,"primary",void 0);_e([y({type:Boolean})],Y.prototype,"secondary",void 0);_e([y({type:Boolean})],Y.prototype,"unbounded",void 0);_e([y({type:Boolean})],Y.prototype,"activated",void 0);_e([y({type:Boolean})],Y.prototype,"selected",void 0);_e([y({type:Boolean})],Y.prototype,"disabled",void 0);_e([K()],Y.prototype,"hovered",void 0);_e([K()],Y.prototype,"focused",void 0);_e([K()],Y.prototype,"pressed",void 0);_e([K()],Y.prototype,"rippling",void 0);_e([K()],Y.prototype,"originX",void 0);_e([K()],Y.prototype,"originY",void 0);_e([W(".ft-ripple")],Y.prototype,"ripple",void 0);_e([W(".ft-ripple--effect")],Y.prototype,"rippleEffect",void 0);F("ft-ripple")(Y);var qc=Symbol.for(""),xu=t=>{if(t?.r===qc)return t?._$litStatic$},as=t=>({_$litStatic$:t,r:qc});var Zc=new Map,Yc=t=>(e,...r)=>{let o=r.length,n,a,s=[],l=[],c,p=0,f=!1;for(;p<o;){for(c=e[p];p<o&&(a=r[p],(n=xu(a))!==void 0);)c+=n+e[++p],f=!0;p!==o&&l.push(a),s.push(c),p++}if(p===o&&s.push(e[o]),f){let h=s.join("$$lit$$");(e=Zc.get(h))===void 0&&(s.raw=s,Zc.set(h,e=s)),r=l}return t(e,...r)},ss=Yc(Ls),X0=Yc(Is);var Ve;(function(t){t.title="title",t.title_dense="title-dense",t.subtitle1="subtitle1",t.subtitle2="subtitle2",t.body1="body1",t.body2="body2",t.caption="caption",t.breadcrumb="breadcrumb",t.overline="overline",t.button="button",t.display="display",t.title1="title-1",t.title2="title-2",t.title3="title-3",t.body1regular="body-1-regular",t.body1medium="body-1-medium",t.body1semibold="body-1-semibold",t.body2regular="body-2-regular",t.body2medium="body-2-medium",t.body2semibold="body-2-semibold",t.label1medium="label-1-medium",t.label1semibold="label-1-semibold",t.label1bold="label-1-bold",t.label2medium="label-2-medium",t.label2semibold="label-2-semibold",t.label2bold="label-2-bold",t.caption1medium="caption-1-medium",t.caption1semibold="caption-1-semibold",t.caption1bold="caption-1-bold",t.caption2medium="caption-2-medium",t.caption2semibold="caption-2-semibold",t.caption2bold="caption-2-bold"})(Ve||(Ve={}));function Xc(t){let e=so[t];return N`
|
|
186
186
|
.ft-typography--${dt(t)} {
|
|
187
187
|
font-family: ${e.fontFamily};
|
|
188
188
|
font-size: ${e.fontSize};
|
|
@@ -191,7 +191,7 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
191
191
|
line-height: ${e.lineHeight};
|
|
192
192
|
text-transform: ${e.textCase};
|
|
193
193
|
}
|
|
194
|
-
`}var
|
|
194
|
+
`}var Jc=i.extend("--ft-typography-font-family","",P.titleFont),St=i.extend("--ft-typography-font-family","",P.contentFont),k={fontFamily:St,fontSize:i.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:i.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:i.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:i.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:i.create("--ft-typography-text-transform","","UNKNOWN","inherit")},$r={fontFamily:i.extend("--ft-typography-title-font-family","",Jc),fontSize:i.extend("--ft-typography-title-font-size","",k.fontSize,"20px"),fontWeight:i.extend("--ft-typography-title-font-weight","",k.fontWeight,"normal"),letterSpacing:i.extend("--ft-typography-title-letter-spacing","",k.letterSpacing,"0.15px"),lineHeight:i.extend("--ft-typography-title-line-height","",k.lineHeight,"1.2"),textTransform:i.extend("--ft-typography-title-text-transform","",k.textTransform,"inherit")},Lr={fontFamily:i.extend("--ft-typography-title-dense-font-family","",Jc),fontSize:i.extend("--ft-typography-title-dense-font-size","",k.fontSize,"14px"),fontWeight:i.extend("--ft-typography-title-dense-font-weight","",k.fontWeight,"normal"),letterSpacing:i.extend("--ft-typography-title-dense-letter-spacing","",k.letterSpacing,"0.105px"),lineHeight:i.extend("--ft-typography-title-dense-line-height","",k.lineHeight,"1.7"),textTransform:i.extend("--ft-typography-title-dense-text-transform","",k.textTransform,"inherit")},Ir={fontFamily:i.extend("--ft-typography-subtitle1-font-family","",St),fontSize:i.extend("--ft-typography-subtitle1-font-size","",k.fontSize,"16px"),fontWeight:i.extend("--ft-typography-subtitle1-font-weight","",k.fontWeight,"600"),letterSpacing:i.extend("--ft-typography-subtitle1-letter-spacing","",k.letterSpacing,"0.144px"),lineHeight:i.extend("--ft-typography-subtitle1-line-height","",k.lineHeight,"1.5"),textTransform:i.extend("--ft-typography-subtitle1-text-transform","",k.textTransform,"inherit")},kr={fontFamily:i.extend("--ft-typography-subtitle2-font-family","",St),fontSize:i.extend("--ft-typography-subtitle2-font-size","",k.fontSize,"14px"),fontWeight:i.extend("--ft-typography-subtitle2-font-weight","",k.fontWeight,"normal"),letterSpacing:i.extend("--ft-typography-subtitle2-letter-spacing","",k.letterSpacing,"0.098px"),lineHeight:i.extend("--ft-typography-subtitle2-line-height","",k.lineHeight,"1.7"),textTransform:i.extend("--ft-typography-subtitle2-text-transform","",k.textTransform,"inherit")},Dr={fontFamily:i.extend("--ft-typography-body1-font-family","",St),fontSize:i.extend("--ft-typography-body1-font-size","",k.fontSize,"16px"),fontWeight:i.extend("--ft-typography-body1-font-weight","",k.fontWeight,"normal"),letterSpacing:i.extend("--ft-typography-body1-letter-spacing","",k.letterSpacing,"0.496px"),lineHeight:i.extend("--ft-typography-body1-line-height","",k.lineHeight,"1.5"),textTransform:i.extend("--ft-typography-body1-text-transform","",k.textTransform,"inherit")},xe={fontFamily:i.extend("--ft-typography-body2-font-family","",St),fontSize:i.extend("--ft-typography-body2-font-size","",k.fontSize,"14px"),fontWeight:i.extend("--ft-typography-body2-font-weight","",k.fontWeight,"normal"),letterSpacing:i.extend("--ft-typography-body2-letter-spacing","",k.letterSpacing,"0.252px"),lineHeight:i.extend("--ft-typography-body2-line-height","",k.lineHeight,"1.4"),textTransform:i.extend("--ft-typography-body2-text-transform","",k.textTransform,"inherit")},Mr={fontFamily:i.extend("--ft-typography-caption-font-family","",St),fontSize:i.extend("--ft-typography-caption-font-size","",k.fontSize,"12px"),fontWeight:i.extend("--ft-typography-caption-font-weight","",k.fontWeight,"normal"),letterSpacing:i.extend("--ft-typography-caption-letter-spacing","",k.letterSpacing,"0.396px"),lineHeight:i.extend("--ft-typography-caption-line-height","",k.lineHeight,"1.33"),textTransform:i.extend("--ft-typography-caption-text-transform","",k.textTransform,"inherit")},Ur={fontFamily:i.extend("--ft-typography-breadcrumb-font-family","",St),fontSize:i.extend("--ft-typography-breadcrumb-font-size","",k.fontSize,"10px"),fontWeight:i.extend("--ft-typography-breadcrumb-font-weight","",k.fontWeight,"normal"),letterSpacing:i.extend("--ft-typography-breadcrumb-letter-spacing","",k.letterSpacing,"0.33px"),lineHeight:i.extend("--ft-typography-breadcrumb-line-height","",k.lineHeight,"1.6"),textTransform:i.extend("--ft-typography-breadcrumb-text-transform","",k.textTransform,"inherit")},Br={fontFamily:i.extend("--ft-typography-overline-font-family","",St),fontSize:i.extend("--ft-typography-overline-font-size","",k.fontSize,"10px"),fontWeight:i.extend("--ft-typography-overline-font-weight","",k.fontWeight,"normal"),letterSpacing:i.extend("--ft-typography-overline-letter-spacing","",k.letterSpacing,"1.5px"),lineHeight:i.extend("--ft-typography-overline-line-height","",k.lineHeight,"1.6"),textTransform:i.extend("--ft-typography-overline-text-transform","",k.textTransform,"uppercase")},at={fontFamily:i.extend("--ft-typography-button-font-family","",St),fontSize:i.extend("--ft-typography-button-font-size","",k.fontSize,"14px"),fontWeight:i.extend("--ft-typography-button-font-weight","",k.fontWeight,"600"),letterSpacing:i.extend("--ft-typography-button-letter-spacing","",k.letterSpacing,"1.246px"),lineHeight:i.extend("--ft-typography-button-line-height","",k.lineHeight,"1.15"),textTransform:i.extend("--ft-typography-button-text-transform","",k.textTransform,"uppercase")},Qc=N`
|
|
195
195
|
.ft-typography--title {
|
|
196
196
|
font-family: ${$r.fontFamily};
|
|
197
197
|
font-size: ${$r.fontSize};
|
|
@@ -200,7 +200,7 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
200
200
|
line-height: ${$r.lineHeight};
|
|
201
201
|
text-transform: ${$r.textTransform};
|
|
202
202
|
}
|
|
203
|
-
`,
|
|
203
|
+
`,ed=N`
|
|
204
204
|
.ft-typography--title-dense {
|
|
205
205
|
font-family: ${Lr.fontFamily};
|
|
206
206
|
font-size: ${Lr.fontSize};
|
|
@@ -209,7 +209,7 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
209
209
|
line-height: ${Lr.lineHeight};
|
|
210
210
|
text-transform: ${Lr.textTransform};
|
|
211
211
|
}
|
|
212
|
-
`,
|
|
212
|
+
`,td=N`
|
|
213
213
|
.ft-typography--subtitle1 {
|
|
214
214
|
font-family: ${Ir.fontFamily};
|
|
215
215
|
font-size: ${Ir.fontSize};
|
|
@@ -218,7 +218,7 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
218
218
|
line-height: ${Ir.lineHeight};
|
|
219
219
|
text-transform: ${Ir.textTransform};
|
|
220
220
|
}
|
|
221
|
-
`,
|
|
221
|
+
`,rd=N`
|
|
222
222
|
.ft-typography--subtitle2 {
|
|
223
223
|
font-family: ${kr.fontFamily};
|
|
224
224
|
font-size: ${kr.fontSize};
|
|
@@ -228,7 +228,7 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
228
228
|
text-transform: ${kr.textTransform};
|
|
229
229
|
}
|
|
230
230
|
|
|
231
|
-
`,
|
|
231
|
+
`,od=N`
|
|
232
232
|
.ft-typography--body1 {
|
|
233
233
|
font-family: ${Dr.fontFamily};
|
|
234
234
|
font-size: ${Dr.fontSize};
|
|
@@ -237,7 +237,7 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
237
237
|
line-height: ${Dr.lineHeight};
|
|
238
238
|
text-transform: ${Dr.textTransform};
|
|
239
239
|
}
|
|
240
|
-
`,
|
|
240
|
+
`,id=N`
|
|
241
241
|
.ft-typography--body2 {
|
|
242
242
|
font-family: ${xe.fontFamily};
|
|
243
243
|
font-size: ${xe.fontSize};
|
|
@@ -246,7 +246,7 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
246
246
|
line-height: ${xe.lineHeight};
|
|
247
247
|
text-transform: ${xe.textTransform};
|
|
248
248
|
}
|
|
249
|
-
`,
|
|
249
|
+
`,wi=N`
|
|
250
250
|
.ft-typography--caption {
|
|
251
251
|
font-family: ${Mr.fontFamily};
|
|
252
252
|
font-size: ${Mr.fontSize};
|
|
@@ -255,7 +255,7 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
255
255
|
line-height: ${Mr.lineHeight};
|
|
256
256
|
text-transform: ${Mr.textTransform};
|
|
257
257
|
}
|
|
258
|
-
`,
|
|
258
|
+
`,nd=N`
|
|
259
259
|
.ft-typography--breadcrumb {
|
|
260
260
|
font-family: ${Ur.fontFamily};
|
|
261
261
|
font-size: ${Ur.fontSize};
|
|
@@ -264,7 +264,7 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
264
264
|
line-height: ${Ur.lineHeight};
|
|
265
265
|
text-transform: ${Ur.textTransform};
|
|
266
266
|
}
|
|
267
|
-
`,
|
|
267
|
+
`,ad=N`
|
|
268
268
|
.ft-typography--overline {
|
|
269
269
|
font-family: ${Br.fontFamily};
|
|
270
270
|
font-size: ${Br.fontSize};
|
|
@@ -273,7 +273,7 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
273
273
|
line-height: ${Br.lineHeight};
|
|
274
274
|
text-transform: ${Br.textTransform};
|
|
275
275
|
}
|
|
276
|
-
`,
|
|
276
|
+
`,sd=N`
|
|
277
277
|
.ft-typography--button {
|
|
278
278
|
font-family: ${at.fontFamily};
|
|
279
279
|
font-size: ${at.fontSize};
|
|
@@ -282,19 +282,19 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
282
282
|
line-height: ${at.lineHeight};
|
|
283
283
|
text-transform: ${at.textTransform};
|
|
284
284
|
}
|
|
285
|
-
`,
|
|
285
|
+
`,ld=N`
|
|
286
286
|
.ft-typography {
|
|
287
287
|
vertical-align: inherit;
|
|
288
288
|
}
|
|
289
|
-
`,
|
|
290
|
-
<${
|
|
289
|
+
`,cd=[Object.keys(so).map(t=>Xc(t))];var dd=function(t,e,r,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},Q=class extends M{constructor(){super(...arguments),this.variant=Ve.body1}render(){return this.element?ss`
|
|
290
|
+
<${as(this.element)}
|
|
291
291
|
part="text"
|
|
292
292
|
class="ft-typography ft-typography--${this.variant}">
|
|
293
293
|
<slot></slot>
|
|
294
|
-
</${
|
|
295
|
-
`:
|
|
294
|
+
</${as(this.element)}>
|
|
295
|
+
`:ss`
|
|
296
296
|
<slot part="text" class="ft-typography ft-typography--${this.variant}"></slot>
|
|
297
|
-
`}};Q.styles=[
|
|
297
|
+
`}};Q.styles=[Qc,ed,td,rd,od,id,wi,nd,ad,sd,ld,...cd];dd([y()],Q.prototype,"element",void 0);dd([y()],Q.prototype,"variant",void 0);F("ft-typography")(Q);var Fr;(function(t){t.ADD_TO_PBK="",t.ALERT="",t.ADD_ALERT="",t.BACK_TO_SEARCH="",t.ADD_BOOKMARK="",t.BOOKMARK="",t.BOOKS="",t.MENU="",t.DOWNLOAD="",t.EDIT="",t.FEEDBACK="",t.HOME="",t.MODIFY_PBK="",t.SCHEDULED="",t.SEARCH="",t.EXPORT="",t.TOC="",t.WRITE_UGC="",t.TRASH="",t.USER="",t.EXTLINK="",t.CALENDAR="",t.OFFLINE="",t.BOOK="",t.DOWNLOAD_PLAIN="",t.CHECK="",t.STAR_PLAIN="",t.TOPICS="",t.DISC="",t.CIRCLE="",t.SHARED="",t.SORT_UNSORTED="",t.SORT_UP="",t.SORT_DOWN="",t.WORKING="",t.CLOSE="",t.ZOOM_OUT="",t.ZOOM_IN="",t.ZOOM_REALSIZE="",t.ZOOM_FULLSCREEN="",t.ADMIN_RESTRICTED="",t.ADMIN="",t.ADMIN_KHUB="",t.ADMIN_THEME="",t.ADMIN_USERS="",t.WARNING="",t.CONTEXT="",t.SEARCH_HOME="",t.STEPS="",t.ICON_EXPAND="",t.ICON_COLLAPSE="",t.INFO="",t.MINUS_PLAIN="",t.PLUS_PLAIN="",t.FACET_HAS_DESCENDANT="",t.TRIANGLE_BOTTOM="",t.TRIANGLE_LEFT="",t.TRIANGLE_RIGHT="",t.TRIANGLE_TOP="",t.THIN_ARROW="",t.SIGN_IN="",t.LOGOUT="",t.TRANSLATE="",t.CLOSE_PLAIN="",t.CHECK_PLAIN="",t.ARTICLE="",t.COLUMNS="",t.ANALYTICS="",t.COLLECTIONS="",t.ARROW_DOWN="",t.ARROW_LEFT="",t.ARROW_RIGHT="",t.ARROW_UP="",t.SEARCH_IN_PUBLICATION="",t.COPY_TO_CLIPBOARD="",t.SHARED_PBK="",t.ATTACHMENTS="",t.STRIPE_ARROW_LEFT="",t.STRIPE_ARROW_RIGHT="",t.FILTERS="",t.DOT="",t.MINUS="",t.PLUS="",t.MAILS_AND_NOTIFICATIONS="",t.SAVE="",t.LOCKER="",t.ADMIN_INTEGRATION="",t.SYNC="",t.TAG="",t.BOOK_PLAIN="",t.UPLOAD="",t.ONLINE="",t.TAG_PLAIN="",t.ACCOUNT_SETTINGS="",t.PRINT="",t.DEFAULT_ROLES="",t.SHORTCUT_MENU="",t.RELATIVES_PLAIN="",t.RELATIVES="",t.PAUSE="",t.PLAY="",t.ADMIN_PORTAL="",t.STAR="",t.THUMBS_DOWN="",t.THUMBS_DOWN_PLAIN="",t.THUMBS_UP="",t.THUMBS_UP_PLAIN="",t.FEEDBACK_PLAIN="",t.RATE_PLAIN="",t.RATE="",t.OFFLINE_SETTINGS="",t.MY_COLLECTIONS="",t.THIN_ARROW_LEFT="",t.THIN_ARROW_RIGHT="",t.RESET="",t.MY_LIBRARY="",t.UNSTRUCTURED_DOC="",t.CONTEXTUAL="",t.THIN_ARROW_UP="",t.ARROW_RIGHT_TO_LINE="",t.DESKTOP="",t.TABLET_LANDSCAPE="",t.TABLET_PORTRAIT="",t.MOBILE_LANDSCAPE="",t.MOBILE_PORTRAIT="",t.DIAGRAM_SUNBURST="",t.DIAGRAM_SANKEY="",t.COMMENT_QUESTION="",t.COMMENT_QUESTION_PLAIN="",t.MESSAGE_BOT="",t.CHART_SIMPLE="",t.BARS_PROGRESS="",t.BOOK_OPEN_GEAR="",t.BOOK_OPEN_GEAR_SLASH="",t.LINE_CHART="",t.STACKED_CHART="",t.CHART_BAR_STACKED="",t.CHART_BAR_GROUPED="",t.EYE_SLASH="",t.X_MARK="",t.EXPAND_WIDE="",t.PIP="",t.PIP_WIDE="",t.LIFE_RING="",t.GLOBE="",t.PIGGY_BANK="",t.EXTLINK_LIGHT="",t.CLONE="",t.CLONE_LINK_SIMPLE="",t.CHART_BAR_NORMALIZED="",t.CONSUMER="",t.OCTAGON_XMARK="",t.HOURGLASS_HALF="",t.CLOCK="",t.CLOCK_THREE="",t.CALENDAR_DAY="",t.COMPUTER_MOUSE_MAGNIFYING_GLASS="",t.WAND_MAGIC_SPARKLES="",t.PAPER_PLANE="",t.CIRCLE_STOP="",t.ARROW_ROTATE_RIGHT="",t.ARROWS_ROTATE="",t.ALIGN_RIGHT="",t.FORMAT_CLEAR="",t.ALIGN_CENTER="",t.ALIGN_LEFT="",t.PALETTE="",t.BOLD="",t.ITALIC="",t.UNDERLINE="",t.STRIKETHROUGH="",t.LINK_SIMPLE_SLASH="",t.LINK_SIMPLE="",t.ROUTE="",t.CIRCLE_USER_SLASH="",t.CIRCLE_USER_CHECK="",t.LIST_MAGNIFYING_GLASS="",t.MEDAL="",t.THUMBS_UP_THUMBS_DOWN_SOLID="",t.ARROW_TURN_DOWN_RIGHT="",t.FLASK="",t.EYE="",t.SHARE="󨃱"})(Fr||(Fr={}));var A;(function(t){t.UNKNOWN="",t.ABW="",t.AUDIO="",t.AVI="",t.CHM="",t.CODE="",t.CSV="",t.DITA="",t.EPUB="",t.EXCEL="",t.FLAC="",t.GIF="",t.GZIP="",t.HTML="",t.IMAGE="",t.JPEG="",t.JSON="",t.M4A="",t.MOV="",t.MP3="",t.MP4="",t.OGG="",t.PDF="",t.PNG="",t.POWERPOINT="",t.RAR="",t.STP="",t.TEXT="",t.VIDEO="",t.WAV="",t.WMA="",t.WORD="",t.XML="",t.YAML="",t.ZIP=""})(A||(A={}));var GS=new Map([...["abw"].map(t=>[t,A.ABW]),...["3gp","act","aiff","aac","amr","au","awb","dct","dss","dvf","gsm","iklax","ivs","mmf","mpc","msv","opus","ra","rm","raw","sln","tta","vox","wv"].map(t=>[t,A.AUDIO]),...["avi"].map(t=>[t,A.AVI]),...["chm","xhs"].map(t=>[t,A.CHM]),...["java","py","php","php3","php4","php5","js","javascript","rb","rbw","c","cpp","cxx","h","hh","hpp","hxx","sh","bash","zsh","tcsh","ksh","csh","vb","scala","pl","prl","perl","groovy","ceylon","aspx","jsp","scpt","applescript","bas","bat","lua","jsp","mk","cmake","css","sass","less","m","mm","xcodeproj"].map(t=>[t,A.CODE]),...["csv"].map(t=>[t,A.CSV]),...["dita","ditamap","ditaval"].map(t=>[t,A.DITA]),...["epub"].map(t=>[t,A.EPUB]),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map(t=>[t,A.EXCEL]),...["flac"].map(t=>[t,A.FLAC]),...["gif"].map(t=>[t,A.GIF]),...["gzip","x-gzip","giz","gz","tgz"].map(t=>[t,A.GZIP]),...["html","htm","xhtml"].map(t=>[t,A.HTML]),...["ai","vml","xps","img","cpt","psd","psp","xcf","svg","svg+xml","bmp","bpg","ppm","pgm","pbm","pnm","rif","tif","tiff","webp","wmf","ico"].map(t=>[t,A.IMAGE]),...["jpeg","jpg","jpe"].map(t=>[t,A.JPEG]),...["json"].map(t=>[t,A.JSON]),...["m4a","m4p"].map(t=>[t,A.M4A]),...["mov","qt"].map(t=>[t,A.MOV]),...["mp3"].map(t=>[t,A.MP3]),...["mp4","m4v"].map(t=>[t,A.MP4]),...["ogg","oga"].map(t=>[t,A.OGG]),...["pdf","ps"].map(t=>[t,A.PDF]),...["png"].map(t=>[t,A.PNG]),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map(t=>[t,A.POWERPOINT]),...["rar"].map(t=>[t,A.RAR]),...["stp"].map(t=>[t,A.STP]),...["txt","rtf","md","mdown"].map(t=>[t,A.TEXT]),...["webm","mkv","flv","vob","ogv","ogg","drc","mng","wmv","yuv","rm","rmvb","asf","mpg","mp2","mpeg","mpe","mpv","m2v","svi","3gp","3g2","mxf","roq","nsv"].map(t=>[t,A.VIDEO]),...["wav"].map(t=>[t,A.WAV]),...["wma"].map(t=>[t,A.WMA]),...["doc","dot","docx","docm","dotx","dotm","docb"].map(t=>[t,A.WORD]),...["xml","xsl","rdf"].map(t=>[t,A.XML]),...["yaml","yml","x-yaml"].map(t=>[t,A.YAML]),...["zip"].map(t=>[t,A.ZIP])]);var ZS={[A.ABW]:"#91ABC6",[A.AUDIO]:"#1795E3",[A.AVI]:"#E63324",[A.CHM]:"#71C3EB",[A.CODE]:"#71C3EB",[A.CSV]:"#1F7345",[A.DITA]:"#71C3EB",[A.EPUB]:"#85B926",[A.EXCEL]:"#1F7345",[A.FLAC]:"#1795E3",[A.GIF]:"#59B031",[A.GZIP]:"#F8AB36",[A.HTML]:"#71C3EB",[A.IMAGE]:"#59B031",[A.JPEG]:"#59B031",[A.JSON]:"#71C3EB",[A.M4A]:"#1795E3",[A.MOV]:"#E63324",[A.MP3]:"#1795E3",[A.MP4]:"#E63324",[A.OGG]:"#1795E3",[A.PDF]:"#E44948",[A.PNG]:"#59B031",[A.POWERPOINT]:"#B54A2B",[A.RAR]:"#F8AB36",[A.STP]:"#3764B1",[A.TEXT]:"#3162AB",[A.UNKNOWN]:"#999999",[A.VIDEO]:"#E63324",[A.WAV]:"#1795E3",[A.WMA]:"#1795E3",[A.WORD]:"#3162AB",[A.XML]:"#71C3EB",[A.YAML]:"#71C3EB",[A.ZIP]:"#F8AB36"};var de={size:i.create("--ft-icon-font-size","","SIZE","24px"),fluidTopicsFontFamily:i.extend("--ft-icon-fluid-topics-font-family","",i.create("--ft-icon-font-family","","UNKNOWN","ft-icons")),fileFormatFontFamily:i.extend("--ft-icon-file-format-font-family","",i.create("--ft-icon-font-family","","UNKNOWN","ft-mime")),materialFontFamily:i.extend("--ft-icon-material-font-family","",i.create("--ft-icon-font-family","","UNKNOWN","Material Icons")),verticalAlign:i.create("--ft-icon-vertical-align","","UNKNOWN","unset")},pd=N`
|
|
298
298
|
:host, i.ft-icon {
|
|
299
299
|
display: inline-flex;
|
|
300
300
|
align-items: center;
|
|
@@ -342,12 +342,12 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
342
342
|
.ft-icon--material {
|
|
343
343
|
font-family: ${de.materialFontFamily}, "Material Icons", sans-serif;
|
|
344
344
|
}
|
|
345
|
-
`;var je;(function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"})(je||(je={}));var
|
|
345
|
+
`;var je;(function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"})(je||(je={}));var Ai=function(t,e,r,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},ye=class extends M{constructor(){super(...arguments),this.resolvedIcon=B}render(){let e=this.variant&&Object.values(je).includes(this.variant)?this.variant:je.fluid_topics,r=e!==je.material||!!this.value;return _`
|
|
346
346
|
<i class="ft-icon ft-icon--${e}" part="icon icon-${e}">
|
|
347
|
-
${
|
|
347
|
+
${nn(this.resolvedIcon)}
|
|
348
348
|
<slot ?hidden=${r}></slot>
|
|
349
349
|
</i>
|
|
350
|
-
`}get textContent(){var e,r;return(r=(e=this.slottedContent)===null||e===void 0?void 0:e.assignedNodes().map(
|
|
350
|
+
`}get textContent(){var e,r;return(r=(e=this.slottedContent)===null||e===void 0?void 0:e.assignedNodes().map(o=>o.textContent).join("").trim())!==null&&r!==void 0?r:""}update(e){super.update(e),["value","variant"].some(r=>e.has(r))&&this.resolveIcon()}resolveIcon(){var e,r;let o=this.value||this.textContent;switch(this.variant){case je.file_format:this.resolvedIcon=(e=A[o.replace("-","_").toUpperCase()])!==null&&e!==void 0?e:o;break;case je.material:this.resolvedIcon=this.value||B;break;default:this.resolvedIcon=(r=Fr[o.replace("-","_").toUpperCase()])!==null&&r!==void 0?r:o;break}}firstUpdated(e){super.firstUpdated(e),setTimeout(()=>this.resolveIcon())}};ye.elementDefinitions={};ye.styles=pd;Ai([y()],ye.prototype,"variant",void 0);Ai([y()],ye.prototype,"value",void 0);Ai([K()],ye.prototype,"resolvedIcon",void 0);Ai([W("slot")],ye.prototype,"slottedContent",void 0);F("ft-icon")(ye);var Ae={color:i.extend("--ft-loader-color","",P.colorPrimary),size:i.create("--ft-loader-size","","SIZE","80px")},fd=N`
|
|
351
351
|
:host {
|
|
352
352
|
line-height: 0;
|
|
353
353
|
}
|
|
@@ -416,7 +416,7 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
416
416
|
transform: translate(calc(0.35 * ${Ae.size}), 0);
|
|
417
417
|
}
|
|
418
418
|
}
|
|
419
|
-
`;var
|
|
419
|
+
`;var ud=i.extend("--ft-button-color","",P.colorPrimary),X={backgroundColor:i.extend("--ft-button-background-color","",P.colorSurface),borderRadius:i.extend("--ft-button-border-radius","",P.borderRadiusL),color:ud,fontSize:i.extend("--ft-button-font-size","",at.fontSize),iconSize:i.create("--ft-button-icon-size","","SIZE","24px"),rippleColor:i.extend("--ft-button-ripple-color","",ud),verticalPadding:i.create("--ft-button-vertical-padding","","SIZE","6px"),horizontalPadding:i.create("--ft-button-horizontal-padding","","SIZE","8px"),iconPadding:i.create("--ft-button-icon-padding","","SIZE","8px"),opacityDisabled:i.external(P.colorOpacityDisabled,"Design system")},hd=i.extend("--ft-button-primary-color","",i.extend("--ft-button-color","",P.colorOnPrimary)),ls={backgroundColor:i.extend("--ft-button-primary-background-color","",i.extend("--ft-button-background-color","",P.colorPrimary)),color:hd,rippleColor:i.extend("--ft-button-primary-ripple-color","",hd)},st={borderRadius:i.extend("--ft-button-dense-border-radius","",i.extend("--ft-button-border-radius","",P.borderRadiusM)),verticalPadding:i.create("--ft-button-dense-vertical-padding","","SIZE","2px"),horizontalPadding:i.create("--ft-button-dense-horizontal-padding","","SIZE","4px"),iconPadding:i.create("--ft-button-dense-icon-padding","","SIZE","4px")},md=[N`
|
|
420
420
|
:host {
|
|
421
421
|
display: inline-block;
|
|
422
422
|
max-width: 100%;
|
|
@@ -458,8 +458,8 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
458
458
|
|
|
459
459
|
--ft-button-internal-line-height: max(calc(${X.fontSize} + 2px), ${X.iconSize});
|
|
460
460
|
--ft-button-internal-color: ${X.color};
|
|
461
|
-
${
|
|
462
|
-
${
|
|
461
|
+
${T(de.size,X.iconSize)};
|
|
462
|
+
${T(V.color,X.rippleColor)};
|
|
463
463
|
|
|
464
464
|
border-radius: ${X.borderRadius};
|
|
465
465
|
padding: ${X.verticalPadding} ${X.horizontalPadding};
|
|
@@ -501,9 +501,9 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
501
501
|
}
|
|
502
502
|
|
|
503
503
|
.ft-button.ft-button--primary {
|
|
504
|
-
background-color: ${
|
|
505
|
-
--ft-button-internal-color: ${
|
|
506
|
-
${
|
|
504
|
+
background-color: ${ls.backgroundColor};
|
|
505
|
+
--ft-button-internal-color: ${ls.color};
|
|
506
|
+
${T(V.color,ls.rippleColor)};
|
|
507
507
|
}
|
|
508
508
|
|
|
509
509
|
.ft-button:focus {
|
|
@@ -517,8 +517,8 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
517
517
|
text-overflow: ellipsis;
|
|
518
518
|
display: block;
|
|
519
519
|
margin: 0 ${X.iconPadding};
|
|
520
|
-
${
|
|
521
|
-
${
|
|
520
|
+
${T(at.fontSize,"1em")};
|
|
521
|
+
${T(at.lineHeight,"var(--ft-button-internal-line-height)")};
|
|
522
522
|
}
|
|
523
523
|
|
|
524
524
|
.ft-button--dense .ft-button--label {
|
|
@@ -549,10 +549,10 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
549
549
|
}
|
|
550
550
|
|
|
551
551
|
ft-loader {
|
|
552
|
-
${
|
|
553
|
-
${
|
|
552
|
+
${T(Ae.size,X.iconSize)};
|
|
553
|
+
${T(Ae.color,"var(--ft-button-internal-color)")};
|
|
554
554
|
}
|
|
555
|
-
`,or];var zr={distance:
|
|
555
|
+
`,or];var zr={distance:i.create("--ft-tooltip-distance","","SIZE","4px"),color:i.create("--ft-tooltip-color","","COLOR","#FFFFFF"),backgroundColor:i.create("--ft-tooltip-background-color","","COLOR","#666666"),zIndex:i.create("--ft-tooltip-z-index","","NUMBER","100"),borderRadiusS:i.external(P.borderRadiusS,"Design system"),maxWidth:i.create("--ft-tooltip-max-width","","SIZE","150px")},yd=N`
|
|
556
556
|
.ft-tooltip--container {
|
|
557
557
|
display: block;
|
|
558
558
|
}
|
|
@@ -581,7 +581,7 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
581
581
|
position: relative;
|
|
582
582
|
word-break: break-word;
|
|
583
583
|
}
|
|
584
|
-
`;var Te=function(t,e,r,
|
|
584
|
+
`;var Te=function(t,e,r,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},te=class extends M{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 oe,this.revealDebouncer=new oe}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){return _`
|
|
585
585
|
<div part="container"
|
|
586
586
|
class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}"
|
|
587
587
|
@mouseenter=${this.onHover}
|
|
@@ -599,14 +599,14 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
599
599
|
</div>
|
|
600
600
|
</div>
|
|
601
601
|
</div>
|
|
602
|
-
`}updated(e){e.has("visible")&&this.visible&&this.resetTooltipContent(),super.updated(e)}contentAvailableCallback(e){super.contentAvailableCallback(e),["visible","text"].some(r=>e.has(r))&&this.visible&&this.positionTooltip()}async show(e){this.visible=!0,e!=null&&await this.hideDebounce.run(()=>{this.hide()},e)}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var e;return((e=this.slotNodes)!==null&&e!==void 0?e:[]).filter(r=>r.nodeType==Node.ELEMENT_NODE)[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){let e=this.tooltipContent.style;switch(e.transition="none",this.validPosition){case"top":e.top=this.tooltip.clientHeight+"px",e.left="0";break;case"bottom":e.top=-this.tooltip.clientHeight+"px",e.left="0";break;case"left":e.top="0",e.left=this.tooltip.clientWidth+"px";break;case"right":e.top="0",e.left=-this.tooltip.clientWidth+"px";break}}}positionTooltip(){this.resetTooltipContent(),this.tooltip&&this.slottedElement&&(this.tooltip.style.left="",this.tooltip.style.top="",
|
|
602
|
+
`}updated(e){e.has("visible")&&this.visible&&this.resetTooltipContent(),super.updated(e)}contentAvailableCallback(e){super.contentAvailableCallback(e),["visible","text"].some(r=>e.has(r))&&this.visible&&this.positionTooltip()}async show(e){this.visible=!0,e!=null&&await this.hideDebounce.run(()=>{this.hide()},e)}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var e;return((e=this.slotNodes)!==null&&e!==void 0?e:[]).filter(r=>r.nodeType==Node.ELEMENT_NODE)[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){let e=this.tooltipContent.style;switch(e.transition="none",this.validPosition){case"top":e.top=this.tooltip.clientHeight+"px",e.left="0";break;case"bottom":e.top=-this.tooltip.clientHeight+"px",e.left="0";break;case"left":e.top="0",e.left=this.tooltip.clientWidth+"px";break;case"right":e.top="0",e.left=-this.tooltip.clientWidth+"px";break}}}positionTooltip(){this.resetTooltipContent(),this.tooltip&&this.slottedElement&&(this.tooltip.style.left="",this.tooltip.style.top="",ia(this.slottedElement,this.tooltip,this.position).then(({x:e,y:r})=>{this.tooltip&&(this.tooltip.style.left=`${e}px`,this.tooltip.style.top=`${r}px`)})),this.revealDebouncer.run(()=>{this.tooltipContent&&(this.tooltipContent.style.transition="top var(--ft-transition-duration, 250ms), left var(--ft-transition-duration, 250ms)",this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")},this.manual?0:this.delay)}onTouch(){this.manual||(this.show(),setTimeout(()=>window.addEventListener("touchstart",e=>{e.composedPath().includes(this.container)||this.onOut()},{once:!0}),100))}onHover(){this.manual||this.show()}onOut(){this.manual||(this.revealDebouncer.cancel(),this.hide())}onClick(){this.manual||(this.revealDebouncer.cancel(),this.hide())}correctOutOfWindowPixels(e,r){return Math.max(e,Math.min(0,-r))}};te.elementDefinitions={"ft-typography":Q};te.styles=yd;Te([y()],te.prototype,"text",void 0);Te([y({type:Boolean})],te.prototype,"manual",void 0);Te([y({type:Boolean})],te.prototype,"inline",void 0);Te([y({type:Number})],te.prototype,"delay",void 0);Te([y()],te.prototype,"position",void 0);Te([Qi()],te.prototype,"slotNodes",void 0);Te([W(".ft-tooltip--container")],te.prototype,"container",void 0);Te([W(".ft-tooltip")],te.prototype,"tooltip",void 0);Te([W(".ft-tooltip--content")],te.prototype,"tooltipContent",void 0);Te([K()],te.prototype,"visible",void 0);Te([hr({passive:!0})],te.prototype,"onTouch",null);Te([hr({passive:!0})],te.prototype,"onHover",null);Te([hr({passive:!0})],te.prototype,"onOut",null);Te([hr({passive:!0})],te.prototype,"onClick",null);F("ft-tooltip")(te);var cr=class extends M{render(){return _`
|
|
603
603
|
<div class="ft-loader">
|
|
604
604
|
<div></div>
|
|
605
605
|
<div></div>
|
|
606
606
|
<div></div>
|
|
607
607
|
<div></div>
|
|
608
608
|
</div>
|
|
609
|
-
`}};
|
|
609
|
+
`}};cr.styles=fd;F("ft-loader")(cr);var Be=function(t,e,r,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},pe=class extends Ka(M,"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.tooltipPosition="bottom",this.hideTooltip=!1,this.forceTooltip=!1,this.addEventListener("click",e=>{var r;this.isDisabled()?(e.preventDefault(),e.stopPropagation(),e.stopImmediatePropagation()):this.type=="submit"&&((r=this.form)===null||r===void 0||r.requestSubmit())})}render(){return this.addTooltipIfNeeded(_`
|
|
610
610
|
<button part="button"
|
|
611
611
|
class="${Ee(this.buttonClasses)}"
|
|
612
612
|
aria-label="${this.getLabel()}"
|
|
@@ -615,7 +615,7 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
615
615
|
<ft-typography part="label"
|
|
616
616
|
variant=${this.typographyVariant}
|
|
617
617
|
element="span"
|
|
618
|
-
class="ft-button--label ${
|
|
618
|
+
class="ft-button--label ${sr?"ft-safari-ellipsis-fix":""}"
|
|
619
619
|
?hidden=${!this.hasTextContent()}>
|
|
620
620
|
<slot @slotchange=${this.onSlotchange}></slot>
|
|
621
621
|
</ft-typography>
|
|
@@ -632,7 +632,7 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
632
632
|
<ft-icon part="icon" .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon>
|
|
633
633
|
`:_`
|
|
634
634
|
<slot part="icon" name="icon"></slot>
|
|
635
|
-
`}focus(){var e;(e=this.button)===null||e===void 0||e.focus()}getLabel(){return this.label||this.textContent}get textContent(){return this.unslotText(this.slottedContent).trim()}unslotText(e){return e instanceof HTMLSlotElement?e.assignedNodes().map(r=>this.unslotText(r)).join(""):e?.textContent||""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}};pe.elementDefinitions={"ft-ripple":Y,"ft-tooltip":te,"ft-typography":Q,"ft-icon":ye,"ft-loader":
|
|
635
|
+
`}focus(){var e;(e=this.button)===null||e===void 0||e.focus()}getLabel(){return this.label||this.textContent}get textContent(){return this.unslotText(this.slottedContent).trim()}unslotText(e){return e instanceof HTMLSlotElement?e.assignedNodes().map(r=>this.unslotText(r)).join(""):e?.textContent||""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}};pe.elementDefinitions={"ft-ripple":Y,"ft-tooltip":te,"ft-typography":Q,"ft-icon":ye,"ft-loader":cr};Be([y({type:String,reflect:!0})],pe.prototype,"role",void 0);Be([y()],pe.prototype,"type",void 0);Be([y({type:Boolean})],pe.prototype,"disabled",void 0);Be([y()],pe.prototype,"label",void 0);Be([y()],pe.prototype,"icon",void 0);Be([y()],pe.prototype,"iconVariant",void 0);Be([y({type:Boolean})],pe.prototype,"trailingIcon",void 0);Be([y({type:Boolean})],pe.prototype,"loading",void 0);Be([y()],pe.prototype,"tooltipPosition",void 0);Be([y({type:Boolean})],pe.prototype,"hideTooltip",void 0);Be([y({type:Boolean})],pe.prototype,"forceTooltip",void 0);Be([W(".ft-button")],pe.prototype,"button",void 0);Be([W(".ft-button--label slot")],pe.prototype,"slottedContent",void 0);var Ri=function(t,e,r,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},ve=class extends pe{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"}};ve.styles=[go,md];Ri([y({type:Boolean})],ve.prototype,"primary",void 0);Ri([y({type:Boolean})],ve.prototype,"outlined",void 0);Ri([y({type:Boolean})],ve.prototype,"dense",void 0);Ri([y({type:Boolean})],ve.prototype,"round",void 0);var gd=[N`
|
|
636
636
|
:host {
|
|
637
637
|
display: inline-block;
|
|
638
638
|
max-width: 100%;
|
|
@@ -716,13 +716,13 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
716
716
|
/** Primary styles **/
|
|
717
717
|
|
|
718
718
|
.ft-button--primary {
|
|
719
|
-
${
|
|
719
|
+
${T(Ae.color,w.primaryIconColor)};
|
|
720
720
|
|
|
721
|
-
${
|
|
722
|
-
${
|
|
723
|
-
${
|
|
724
|
-
${
|
|
725
|
-
${
|
|
721
|
+
${T(V.color,w.primaryStateLayerColor)};
|
|
722
|
+
${T(V.opacityContentOnSurfaceHover,w.primaryHoverStateLayerOpacity)};
|
|
723
|
+
${T(V.opacityContentOnSurfaceFocused,w.primaryFocusStateLayerOpacity)};
|
|
724
|
+
${T(V.opacityContentOnSurfaceSelected,w.primaryActiveStateLayerOpacity)};
|
|
725
|
+
${T(V.opacityContentOnSurfacePressed,w.primaryActiveStateLayerOpacity)};
|
|
726
726
|
|
|
727
727
|
background-color: ${w.primaryBackgroundColor};
|
|
728
728
|
color: ${w.primaryColor};
|
|
@@ -740,13 +740,13 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
740
740
|
/** Secondary styles **/
|
|
741
741
|
|
|
742
742
|
.ft-button--secondary {
|
|
743
|
-
${
|
|
743
|
+
${T(Ae.color,w.secondaryIconColor)};
|
|
744
744
|
|
|
745
|
-
${
|
|
746
|
-
${
|
|
747
|
-
${
|
|
748
|
-
${
|
|
749
|
-
${
|
|
745
|
+
${T(V.color,w.secondaryStateLayerColor)};
|
|
746
|
+
${T(V.opacityContentOnSurfaceHover,w.secondaryHoverStateLayerOpacity)};
|
|
747
|
+
${T(V.opacityContentOnSurfaceFocused,w.secondaryFocusStateLayerOpacity)};
|
|
748
|
+
${T(V.opacityContentOnSurfaceSelected,w.secondaryActiveStateLayerOpacity)};
|
|
749
|
+
${T(V.opacityContentOnSurfacePressed,w.secondaryActiveStateLayerOpacity)};
|
|
750
750
|
|
|
751
751
|
background-color: ${w.secondaryBackgroundColor};
|
|
752
752
|
color: ${w.secondaryColor};
|
|
@@ -765,13 +765,13 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
765
765
|
/** Tertiary styles **/
|
|
766
766
|
|
|
767
767
|
.ft-button--tertiary {
|
|
768
|
-
${
|
|
768
|
+
${T(Ae.color,w.tertiaryIconColor)};
|
|
769
769
|
|
|
770
|
-
${
|
|
771
|
-
${
|
|
772
|
-
${
|
|
773
|
-
${
|
|
774
|
-
${
|
|
770
|
+
${T(V.color,w.tertiaryStateLayerColor)};
|
|
771
|
+
${T(V.opacityContentOnSurfaceHover,w.tertiaryHoverStateLayerOpacity)};
|
|
772
|
+
${T(V.opacityContentOnSurfaceFocused,w.tertiaryFocusStateLayerOpacity)};
|
|
773
|
+
${T(V.opacityContentOnSurfaceSelected,w.tertiaryActiveStateLayerOpacity)};
|
|
774
|
+
${T(V.opacityContentOnSurfacePressed,w.tertiaryActiveStateLayerOpacity)};
|
|
775
775
|
|
|
776
776
|
background-color: ${w.tertiaryBackgroundColor};
|
|
777
777
|
color: ${w.tertiaryColor};
|
|
@@ -789,13 +789,13 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
789
789
|
/** Neutral styles **/
|
|
790
790
|
|
|
791
791
|
.ftds--family-neutral {
|
|
792
|
-
${
|
|
792
|
+
${T(Ae.color,w.neutralIconColor)};
|
|
793
793
|
|
|
794
|
-
${
|
|
795
|
-
${
|
|
796
|
-
${
|
|
797
|
-
${
|
|
798
|
-
${
|
|
794
|
+
${T(V.backgroundColor,w.neutralStateLayerColor)};
|
|
795
|
+
${T(V.opacityContentOnSurfaceHover,w.neutralHoverStateLayerOpacity)};
|
|
796
|
+
${T(V.opacityContentOnSurfaceFocused,w.neutralFocusStateLayerOpacity)};
|
|
797
|
+
${T(V.opacityContentOnSurfaceSelected,w.neutralActiveStateLayerOpacity)};
|
|
798
|
+
${T(V.opacityContentOnSurfacePressed,w.neutralActiveStateLayerOpacity)};
|
|
799
799
|
|
|
800
800
|
background-color: ${w.neutralBackgroundColor};
|
|
801
801
|
color: ${w.neutralColor};
|
|
@@ -813,8 +813,8 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
813
813
|
/** Large styles **/
|
|
814
814
|
|
|
815
815
|
.ftds--size-large {
|
|
816
|
-
${
|
|
817
|
-
${
|
|
816
|
+
${T(de.size,w.largeIconSize)};
|
|
817
|
+
${T(Ae.size,w.largeIconSize)};
|
|
818
818
|
|
|
819
819
|
height: ${w.largeHeight};
|
|
820
820
|
padding: 0 ${w.largeHorizontalPadding};
|
|
@@ -835,8 +835,8 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
835
835
|
/** Small styles **/
|
|
836
836
|
|
|
837
837
|
.ftds--size-medium {
|
|
838
|
-
${
|
|
839
|
-
${
|
|
838
|
+
${T(de.size,w.mediumIconSize)};
|
|
839
|
+
${T(Ae.size,w.mediumIconSize)};
|
|
840
840
|
|
|
841
841
|
height: ${w.mediumHeight};
|
|
842
842
|
padding: 0 ${w.mediumHorizontalPadding};
|
|
@@ -858,8 +858,8 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
858
858
|
/** Small styles **/
|
|
859
859
|
|
|
860
860
|
.ftds--size-small {
|
|
861
|
-
${
|
|
862
|
-
${
|
|
861
|
+
${T(de.size,w.smallIconSize)};
|
|
862
|
+
${T(Ae.size,w.smallIconSize)};
|
|
863
863
|
|
|
864
864
|
height: ${w.smallHeight};
|
|
865
865
|
padding: 0 ${w.smallHorizontalPadding};
|
|
@@ -876,7 +876,7 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
876
876
|
.ftds--size-small.ft-button--icon-only {
|
|
877
877
|
width: ${w.smallIconOnlyWidth};
|
|
878
878
|
}
|
|
879
|
-
`,or];var
|
|
879
|
+
`,or];var Ni=function(t,e,r,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},Ye=class extends li(pe){constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.tertiary=!1,this.round=!1,this.family=mt.brand,this.iconVariant=je.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 he.large:return Ve.body2medium;case he.medium:return Ve.caption1medium;case he.small:return Ve.caption2medium}}};Ye.styles=[go,gd];Ni([y({type:Boolean})],Ye.prototype,"primary",void 0);Ni([y({type:Boolean})],Ye.prototype,"secondary",void 0);Ni([y({type:Boolean})],Ye.prototype,"tertiary",void 0);Ni([y({type:Boolean})],Ye.prototype,"round",void 0);F("ft-button")(ve);F("ftds-button")(Ye);var bd=i.extend("--ft-chip-color","",P.colorOnSurface),Ke={backgroundColor:i.extend("--ft-chip-background-color","",P.colorSurface),color:bd,fontSize:i.extend("--ft-chip-font-size","",xe.fontSize),iconSize:i.create("--ft-chip-icon-size","","SIZE","18px"),borderRadius:i.create("--ft-chip-border-radius","","SIZE",""),rippleColor:i.extend("--ft-chip-ripple-color","",bd),horizontalPadding:i.create("--ft-chip-horizontal-padding","","SIZE","6px"),verticalPadding:i.create("--ft-chip-vertical-padding","","SIZE","6px"),colorOutline:i.external(P.colorOutline,"Design system"),opacityDisabled:i.external(P.colorOpacityDisabled,"Design system")},xd=i.extend("--ft-chip-highlighted-color","",i.extend("--ft-chip-color","",P.colorOnPrimary)),cs={backgroundColor:i.extend("--ft-chip-highlighted-background-color","",i.extend("--ft-chip-background-color","",P.colorPrimary)),color:xd,rippleColor:i.extend("--ft-chip-highlighted-ripple-color","",xd)},vd={horizontalPadding:i.create("--ft-chip-dense-horizontal-padding","","SIZE","4px"),verticalPadding:i.create("--ft-chip-dense-vertical-padding","","SIZE","4px")},Sd=[or,N`
|
|
880
880
|
:host {
|
|
881
881
|
display: inline-block;
|
|
882
882
|
max-width: 100%;
|
|
@@ -894,7 +894,7 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
894
894
|
|
|
895
895
|
--ft-chip-internal-font-size: ${Ke.fontSize};
|
|
896
896
|
--ft-chip-internal-line-height: max(20px, calc(var(--ft-chip-internal-font-size) + 2px));
|
|
897
|
-
${
|
|
897
|
+
${T(de.size,Ke.iconSize)};
|
|
898
898
|
--ft-chip-internal-vertical-padding: ${Ke.verticalPadding};
|
|
899
899
|
--ft-chip-internal-horizontal-padding: ${Ke.horizontalPadding};
|
|
900
900
|
--ft-chip-internal-icon-padding: 3px;
|
|
@@ -902,7 +902,7 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
902
902
|
|
|
903
903
|
border: 1px solid ${Ke.colorOutline};
|
|
904
904
|
color: ${Ke.color};
|
|
905
|
-
${
|
|
905
|
+
${T(V.color,Ke.rippleColor)};
|
|
906
906
|
border-radius: var(${dt(Ke.borderRadius.name)}, calc(var(--ft-chip-internal-content-height) / 2 + var(--ft-chip-internal-vertical-padding)));
|
|
907
907
|
padding: calc(var(--ft-chip-internal-vertical-padding) - 1px) calc(var(--ft-chip-internal-horizontal-padding) - 1px);
|
|
908
908
|
background-color: ${Ke.backgroundColor};
|
|
@@ -915,8 +915,8 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
915
915
|
|
|
916
916
|
.ft-chip--dense {
|
|
917
917
|
--ft-chip-internal-icon-padding: 3px;
|
|
918
|
-
--ft-chip-internal-vertical-padding: ${
|
|
919
|
-
--ft-chip-internal-horizontal-padding: ${
|
|
918
|
+
--ft-chip-internal-vertical-padding: ${vd.verticalPadding};
|
|
919
|
+
--ft-chip-internal-horizontal-padding: ${vd.horizontalPadding};
|
|
920
920
|
--ft-chip-internal-line-height: max(16px, calc(var(--ft-chip-internal-font-size) + 2px));
|
|
921
921
|
}
|
|
922
922
|
|
|
@@ -934,9 +934,9 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
934
934
|
.ft-chip--highlighted {
|
|
935
935
|
border: none;
|
|
936
936
|
padding: var(--ft-chip-internal-vertical-padding) var(--ft-chip-internal-horizontal-padding);
|
|
937
|
-
background-color: ${
|
|
938
|
-
${
|
|
939
|
-
color: ${
|
|
937
|
+
background-color: ${cs.backgroundColor};
|
|
938
|
+
${T(V.color,cs.rippleColor)};
|
|
939
|
+
color: ${cs.color};
|
|
940
940
|
}
|
|
941
941
|
|
|
942
942
|
.ft-chip--clickable {
|
|
@@ -966,9 +966,9 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
966
966
|
}
|
|
967
967
|
|
|
968
968
|
.ft-chip--icon-button {
|
|
969
|
-
${
|
|
970
|
-
${
|
|
971
|
-
${
|
|
969
|
+
${T(X.iconSize,Ke.iconSize)};
|
|
970
|
+
${T(X.horizontalPadding,"var(--ft-chip-internal-icon-padding)")};
|
|
971
|
+
${T(X.verticalPadding,"var(--ft-chip-internal-icon-padding)")};
|
|
972
972
|
margin: calc((-1) * var(--ft-chip-internal-icon-padding));
|
|
973
973
|
}
|
|
974
974
|
|
|
@@ -976,8 +976,8 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
976
976
|
vertical-align: bottom;
|
|
977
977
|
display: block;
|
|
978
978
|
margin: 0 var(--ft-chip-internal-horizontal-padding);
|
|
979
|
-
${
|
|
980
|
-
${
|
|
979
|
+
${T(xe.fontSize,"var(--ft-chip-internal-font-size)")};
|
|
980
|
+
${T(xe.lineHeight,"var(--ft-chip-internal-content-height)")};
|
|
981
981
|
}
|
|
982
982
|
|
|
983
983
|
.ft-chip--safari-fix .ft-chip--label {
|
|
@@ -1013,7 +1013,7 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1013
1013
|
.ft-chip:not(.ft-chip--trailing-icon) .ft-chip--icon-button {
|
|
1014
1014
|
order: -1;
|
|
1015
1015
|
}
|
|
1016
|
-
`];var Fe=function(t,e,r,
|
|
1016
|
+
`];var Fe=function(t,e,r,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},_i=class extends CustomEvent{constructor(){super("icon-click")}},le=class extends M{constructor(){super(...arguments),this.highlighted=!1,this.removable=!1,this.disabled=!1,this.clickable=!1,this.iconClickable=!1,this.dense=!1,this.multiLine=!1,this.label="",this.iconLabel="",this.icon=void 0,this.trailingIcon=!1}render(){let e={"ft-chip":!0,"ft-chip--highlighted":this.highlighted,"ft-chip--disabled":this.disabled,"ft-chip--clickable":this.interactionsOnChip,"ft-chip--trailing-icon":this.trailingIcon||this.removable,"ft-chip--no-content":!this.hasTextContent(),"ft-chip--dense":this.dense,"ft-chip--multi-line":this.multiLine,"ft-chip--safari-fix":sr};return _`
|
|
1017
1017
|
<div class="${Ee(e)}"
|
|
1018
1018
|
aria-label="${this.getLabel()}"
|
|
1019
1019
|
tabindex="${this.interactionsOnChip?0:-1}"
|
|
@@ -1039,7 +1039,7 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1039
1039
|
<div class="ft-chip--icon-container ft-no-text-select" part="icon-container">
|
|
1040
1040
|
<ft-icon .variant=${this.iconVariant} .value="${this.internalIcon}" part="icon"></ft-icon>
|
|
1041
1041
|
</div>
|
|
1042
|
-
`}onKeyUp(e){this.interactionsOnChip&&["Enter"," "].includes(e.key)&&e.target.click()}onIconKeyUp(e){this.interactionsOnIcon&&["Enter"," "].includes(e.key)&&(e.stopPropagation(),this.dispatchEvent(new
|
|
1042
|
+
`}onKeyUp(e){this.interactionsOnChip&&["Enter"," "].includes(e.key)&&e.target.click()}onIconKeyUp(e){this.interactionsOnIcon&&["Enter"," "].includes(e.key)&&(e.stopPropagation(),this.dispatchEvent(new _i))}onIconClick(e){this.interactionsOnIcon&&(e.stopPropagation(),this.dispatchEvent(new _i))}getLabel(){return this.label||this.textContent}get textContent(){var e,r;return(r=(e=this.slottedContent)===null||e===void 0?void 0:e.assignedNodes().map(o=>o.textContent).join("").trim())!==null&&r!==void 0?r:""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}get internalIcon(){return this.icon||(this.removable?"close":void 0)}};le.elementDefinitions={"ft-ripple":Y,"ft-typography":Q,"ft-icon":ye,"ft-button":ve};le.styles=Sd;Fe([y({type:Boolean})],le.prototype,"highlighted",void 0);Fe([y({type:Boolean})],le.prototype,"removable",void 0);Fe([y({type:Boolean})],le.prototype,"disabled",void 0);Fe([y({type:Boolean})],le.prototype,"clickable",void 0);Fe([y({type:Boolean})],le.prototype,"iconClickable",void 0);Fe([y({type:Boolean})],le.prototype,"dense",void 0);Fe([y({type:Boolean})],le.prototype,"multiLine",void 0);Fe([y()],le.prototype,"label",void 0);Fe([y()],le.prototype,"iconLabel",void 0);Fe([y()],le.prototype,"icon",void 0);Fe([y()],le.prototype,"iconVariant",void 0);Fe([y({type:Boolean})],le.prototype,"trailingIcon",void 0);Fe([W("ft-typography slot")],le.prototype,"slottedContent",void 0);var Od=[N`
|
|
1043
1043
|
:host {
|
|
1044
1044
|
display: inline-block;
|
|
1045
1045
|
max-width: 100%;
|
|
@@ -1063,7 +1063,7 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1063
1063
|
border-width: ${H.mediumBorderWidth};
|
|
1064
1064
|
border-style: solid;
|
|
1065
1065
|
gap: ${H.mediumGap};
|
|
1066
|
-
${
|
|
1066
|
+
${T(de.size,H.mediumIconSize)}
|
|
1067
1067
|
}
|
|
1068
1068
|
|
|
1069
1069
|
.ftds--size-medium.ftds-chip--removable {
|
|
@@ -1079,7 +1079,7 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1079
1079
|
border-width: ${H.largeBorderWidth};
|
|
1080
1080
|
border-style: solid;
|
|
1081
1081
|
gap: ${H.largeGap};
|
|
1082
|
-
${
|
|
1082
|
+
${T(de.size,H.largeIconSize)}
|
|
1083
1083
|
}
|
|
1084
1084
|
|
|
1085
1085
|
.ftds--size-large.ftds-chip--removable {
|
|
@@ -1145,7 +1145,7 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1145
1145
|
.ftds--family-error .ftds-chip--icon-container {
|
|
1146
1146
|
color: ${H.errorIconColor};
|
|
1147
1147
|
}
|
|
1148
|
-
`];var wo=function(t,e,r,
|
|
1148
|
+
`];var wo=function(t,e,r,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},ds=class extends CustomEvent{constructor(){super("remove")}},Xe=class extends mo{constructor(){super(...arguments),this.removable=!1,this.removeButtonLabel="Remove",this.label=""}render(){let e={"ftds-chip":!0,"ftds-chip--removable":this.removable,"ftds-chip--with-icon":!!this.icon,...this.getDesignSystemBaseClasses()};return _`
|
|
1149
1149
|
<div class="${Ee(e)}"
|
|
1150
1150
|
aria-label="${this.getLabel()}"
|
|
1151
1151
|
part="chip">
|
|
@@ -1169,16 +1169,16 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1169
1169
|
size=${this.resolveButtonSize()}
|
|
1170
1170
|
part="icon-button"
|
|
1171
1171
|
></ftds-button>
|
|
1172
|
-
`:B}resolveButtonSize(){switch(this.size){case he.large:return he.medium;case he.medium:case he.small:return he.small}}getLabel(){return this.label||this.textContent}get textContent(){var e,r;return(r=(e=this.slottedContent)===null||e===void 0?void 0:e.assignedNodes().map(
|
|
1173
|
-
`;var
|
|
1172
|
+
`:B}resolveButtonSize(){switch(this.size){case he.large:return he.medium;case he.medium:case he.small:return he.small}}getLabel(){return this.label||this.textContent}get textContent(){var e,r;return(r=(e=this.slottedContent)===null||e===void 0?void 0:e.assignedNodes().map(o=>o.textContent).join("").trim())!==null&&r!==void 0?r:""}onSlotchange(){this.requestUpdate()}dispatchRemoveEvent(){this.dispatchEvent(new ds)}typographyVariant(){switch(this.size){case he.large:return Ve.body2medium;case he.medium:return Ve.caption1medium;case he.small:return Ve.caption2medium}}};Xe.elementDefinitions={"ft-typography":Q,"ft-icon":ye,"ftds-button":Ye};Xe.styles=Od;wo([y({type:Boolean})],Xe.prototype,"removable",void 0);wo([y()],Xe.prototype,"removeButtonLabel",void 0);wo([y()],Xe.prototype,"label",void 0);wo([y()],Xe.prototype,"icon",void 0);wo([W("ft-typography slot")],Xe.prototype,"slottedContent",void 0);F("ft-chip")(le);F("ftds-chip")(Xe);var Cd=N`
|
|
1173
|
+
`;var vu=function(t,e,r,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},ps=Symbol("i18nAttributes"),Ti=Symbol("i18nProperties"),Ao=Symbol("i18nUnsubs");function Bt(t){var e;class r extends t{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[e]=new Map}get i18nService(){return this.useCustomMessageContexts?Fc:Pr}i18n(n,a,...s){var l;if(typeof n=="string")return this.i18nService.resolveMessage(n,a,...s);let c=(l=n.args)!==null&&l!==void 0?l:n.argsProvider?n.argsProvider(this):[];return this.i18nService.resolveMessage(n.context,n.key,...c)}onI18nUpdate(n){var a,s;(a=this[ps])===null||a===void 0||a.forEach((l,c)=>{var p;let f=this.getI18nAttributeValue(c);((p=f?.context)===null||p===void 0?void 0:p.toLowerCase())===n.toLowerCase()&&this.updateI18nAttributeMessage(c,f,l)}),(s=this[Ti])===null||s===void 0||s.forEach((l,c)=>{l.context.toLowerCase()===n.toLowerCase()&&(this[c]=this.i18n(l))}),setTimeout(()=>this.requestUpdate(),0)}updateI18nAttributeMessage(n,a,s){this[n]={...a,message:this.i18n({context:a.context,key:a.key,...s})}}update(n){var a,s;super.update(n),(a=this[ps])===null||a===void 0||a.forEach((l,c)=>{let p=this.getI18nAttributeValue(c);p?.context&&p.key&&(n.has(c)||l.argsProvider!=null)&&(n.has(c)&&this.addI18nContext(p.context),this.updateI18nAttributeMessage(c,p,l))}),(s=this[Ti])===null||s===void 0||s.forEach((l,c)=>{l.argsProvider!=null&&(this[c]=this.i18n(l))})}getI18nAttributeValue(n){return this[n]}connectedCallback(){var n,a,s,l;super.connectedCallback(),new Set([...(a=(n=this[Ti])===null||n===void 0?void 0:n.values())!==null&&a!==void 0?a:[],...[...(l=(s=this[ps])===null||s===void 0?void 0:s.keys())!==null&&l!==void 0?l:[]].map(c=>this.getI18nAttributeValue(c))].map(c=>c?.context)).forEach(c=>c&&this.addI18nMessages(c))}addI18nMessages(n,a){n=n.toLowerCase(),this[Ao].has(n)||this[Ao].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[Ao].forEach(n=>n()),this[Ao].clear()}}return e=Ao,vu([y({type:Boolean})],r.prototype,"useCustomMessageContexts",void 0),r}var Ed=class extends Bt(M){},Pi=class extends Bt(We){};var Ro=function(t,e,r,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},Je=class extends Pi{constructor(){super(),this.editorMode=!1,this.addStore(D)}render(){return!this.key||!this.context?this.editorMode?"Select a context and a label key.":B:_`
|
|
1174
1174
|
<span class="ft-i18n">
|
|
1175
1175
|
${this.i18n(this.context,this.key,...Array.isArray(this.args)?this.args:[])}
|
|
1176
1176
|
</span>
|
|
1177
|
-
`}update(e){var r;super.update(e),["context","key","defaultMessage"].some(
|
|
1178
|
-
`;var Ce=function(t,e,r,
|
|
1177
|
+
`}update(e){var r;super.update(e),["context","key","defaultMessage"].some(o=>e.has(o))&&this.context&&this.key&&this.addI18nMessages(this.context,{[this.key]:(r=this.defaultMessage)!==null&&r!==void 0?r:""})}};Je.elementDefinitions={};Je.styles=Cd;Ro([fe()],Je.prototype,"editorMode",void 0);Ro([y()],Je.prototype,"context",void 0);Ro([y()],Je.prototype,"key",void 0);Ro([be([])],Je.prototype,"args",void 0);Ro([y()],Je.prototype,"defaultMessage",void 0);var Wr=class t{static build(e){return new t(e)}static fromGwt(e){return new t(e)}constructor(e){this.name=e,this.properties=new Proxy({},{get:(r,o)=>{let n=o;return a=>({context:this.name,key:n,args:typeof a=="function"?void 0:a,argsProvider:typeof a=="function"?a:void 0})}}),this.messages=new Proxy({},{get:(r,o)=>(...n)=>Pr.resolveMessage(this.name,o,...n)})}};F("ft-i18n")(Je);var wd=N`
|
|
1178
|
+
`;var Ce=function(t,e,r,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},fs=class extends CustomEvent{constructor(e){super("ft-search-load-error",{detail:e})}},us=class extends CustomEvent{constructor(e){super("ft-search-request-change",{detail:e})}},hs=class extends CustomEvent{constructor(e,r,o){super("ft-search-results-change",{detail:{request:e,paging:r,spellcheck:o}})}},ie=class extends We{get stateManager(){if(this._stateManager==null){let e=this.searchServiceProvider?this.searchServiceProvider():void 0;this._stateManager=Co.build(this.id||(""+Math.round(Math.random()*999e3)).padStart(6,"0"),e),this._stateManager.errorHandler=r=>this.handleLoadError(r),this.addStore(this.stateManager.store,"search")}return this._stateManager}constructor(){super(),this.query="",this.pageSize=20,this.searchInDocumentTitlesOnly=!1,this.ignoreEmptyQuery=!1,this.openExternalDocumentInNewTab=!1,this.filters=[],this.sort=[],this.addStore(D)}render(){return _`
|
|
1179
1179
|
<slot @register-ft-search-component=${this.registerComponent}></slot>
|
|
1180
|
-
`}update(e){super.update(e),e.has("query")&&this.query!==void 0&&this.stateManager.setQuery(this.query),e.has("contentLocale")&&this.contentLocale!==void 0&&this.stateManager.setContentLocale(this.contentLocale),e.has("filters")&&this.filters!==void 0&&this.stateManager.setFilters(this.filters),e.has("sort")&&this.sort!==void 0&&this.stateManager.setSort(this.sort),e.has("pageSize")&&this.pageSize!==void 0&&this.stateManager.setPageSize(this.pageSize),e.has("searchInDocumentTitlesOnly")&&this.searchInDocumentTitlesOnly!==void 0&&this.stateManager.setSearchInDocumentTitlesOnly(this.searchInDocumentTitlesOnly),e.has("scope")&&this.scope!==void 0&&this.stateManager.setScope(this.scope),e.has("virtualField")&&this.virtualField!==void 0&&this.stateManager.setVirtualField(this.virtualField),e.has("ignoreEmptyQuery")&&this.ignoreEmptyQuery!==void 0&&this.stateManager.setIgnoreEmptyQuery(this.ignoreEmptyQuery),e.has("openExternalDocumentInNewTab")&&this.openExternalDocumentInNewTab!==void 0&&this.stateManager.setOpenExternalDocumentInNewTab(this.openExternalDocumentInNewTab),e.has("periodFilter")&&this.periodFilter
|
|
1181
|
-
`;var Ot={textColor:
|
|
1180
|
+
`}update(e){super.update(e),e.has("query")&&this.query!==void 0&&this.stateManager.setQuery(this.query),e.has("contentLocale")&&this.contentLocale!==void 0&&this.stateManager.setContentLocale(this.contentLocale),e.has("filters")&&this.filters!==void 0&&this.stateManager.setFilters(this.filters),e.has("sort")&&this.sort!==void 0&&this.stateManager.setSort(this.sort),e.has("pageSize")&&this.pageSize!==void 0&&this.stateManager.setPageSize(this.pageSize),e.has("searchInDocumentTitlesOnly")&&this.searchInDocumentTitlesOnly!==void 0&&this.stateManager.setSearchInDocumentTitlesOnly(this.searchInDocumentTitlesOnly),e.has("scope")&&this.scope!==void 0&&this.stateManager.setScope(this.scope),e.has("virtualField")&&this.virtualField!==void 0&&this.stateManager.setVirtualField(this.virtualField),e.has("ignoreEmptyQuery")&&this.ignoreEmptyQuery!==void 0&&this.stateManager.setIgnoreEmptyQuery(this.ignoreEmptyQuery),e.has("openExternalDocumentInNewTab")&&this.openExternalDocumentInNewTab!==void 0&&this.stateManager.setOpenExternalDocumentInNewTab(this.openExternalDocumentInNewTab),e.has("periodFilter")&&this.periodFilter!==void 0&&this.stateManager.setPeriodFilter(this.periodFilter),e.has("session")&&this.session!==void 0&&(this.stateManager.service.clearCache(),this.stateManager.initService())}connectedCallback(){super.connectedCallback(),this.stateManager.initService(),this.stateManager.setQuery(this.query),this.stateManager.setContentLocale(this.contentLocale),this.stateManager.setFilters(this.filters),this.stateManager.setPageSize(this.pageSize),this.stateManager.setSort(this.sort)}contentAvailableCallback(e){super.contentAvailableCallback(e),e.has("request")&&this.request&&this.dispatchEvent(new us(this.request)),e.has("paging")&&this.paging!==void 0&&this.dispatchEvent(new hs(this.request,this.paging,this.autocorrect))}registerComponent(e){e.stopPropagation();let r=e.composedPath()[0];this.register(r)}register(e){e.setSearchStateManager(this.stateManager)}handleLoadError(e){this.dispatchEvent(new fs(e))}reloadSavedSearches(){zc.clearMySearches()}clear(){this.stateManager.clear()}};ie.elementDefinitions={};ie.styles=wd;Ce([fe({store:D.name})],ie.prototype,"session",void 0);Ce([y()],ie.prototype,"query",void 0);Ce([y()],ie.prototype,"contentLocale",void 0);Ce([y({type:Number})],ie.prototype,"pageSize",void 0);Ce([y({type:Boolean})],ie.prototype,"searchInDocumentTitlesOnly",void 0);Ce([y()],ie.prototype,"periodFilter",void 0);Ce([y()],ie.prototype,"scope",void 0);Ce([y()],ie.prototype,"virtualField",void 0);Ce([y({type:Boolean})],ie.prototype,"ignoreEmptyQuery",void 0);Ce([fe({store:D.name})],ie.prototype,"openExternalDocumentInNewTab",void 0);Ce([be([])],ie.prototype,"filters",void 0);Ce([be([])],ie.prototype,"sort",void 0);Ce([fe({store:"search"})],ie.prototype,"request",void 0);Ce([fe({store:"search"})],ie.prototype,"paging",void 0);Ce([fe({store:"search",selector:t=>t.spellcheck})],ie.prototype,"autocorrect",void 0);Ce([y({attribute:!1})],ie.prototype,"searchServiceProvider",void 0);F("ft-search-context")(ie);var Ad=N`
|
|
1181
|
+
`;var Ot={textColor:i.extend("--ft-checkbox-text-color","",P.colorOnSurfaceHigh),fontSize:i.extend("--ft-checkbox-font-size","",k.fontSize),colorPrimary:i.external(P.colorPrimary,"Design system"),colorOnPrimary:i.external(P.colorOnPrimary,"Design system"),borderColor:i.extend("--ft-checkbox-border-color","",P.colorOnSurfaceMedium),colorOnSurfaceDisabled:i.external(P.colorOnSurfaceDisabled,"Design system")},Rd=N`
|
|
1182
1182
|
* {
|
|
1183
1183
|
box-sizing: border-box;
|
|
1184
1184
|
}
|
|
@@ -1256,7 +1256,7 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1256
1256
|
.ft-checkbox--indeterminate .ft-checkbox--checkmark {
|
|
1257
1257
|
opacity: 1;
|
|
1258
1258
|
}
|
|
1259
|
-
`;var Hr=function(t,e,r,
|
|
1259
|
+
`;var Hr=function(t,e,r,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},Pe=class extends M{constructor(){super(...arguments),this.name="",this.checked=!1,this.indeterminate=!1,this.disabled=!1}render(){let e={"ft-checkbox":!0,"ft-checkbox--checked":this.checked,"ft-checkbox--indeterminate":this.indeterminate,"ft-checkbox--disabled":this.disabled};return _`
|
|
1260
1260
|
<label class="${Ee(e)}" for="checkbox-input">
|
|
1261
1261
|
<div class="ft-checkbox--box-container">
|
|
1262
1262
|
<ft-ripple
|
|
@@ -1283,14 +1283,14 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1283
1283
|
<slot></slot>
|
|
1284
1284
|
</ft-typography>
|
|
1285
1285
|
</label>
|
|
1286
|
-
`}onChange(e){e.stopPropagation(),this.checked=e.target.checked,this.indeterminate=!1,this.dispatchEvent(new CustomEvent("change",{detail:this.checked}))}contentAvailableCallback(e){var r;super.contentAvailableCallback(e),(r=this.ripple)===null||r===void 0||r.setupFor(this.container)}};Pe.elementDefinitions={"ft-ripple":Y,"ft-typography":Q};Pe.styles=
|
|
1286
|
+
`}onChange(e){e.stopPropagation(),this.checked=e.target.checked,this.indeterminate=!1,this.dispatchEvent(new CustomEvent("change",{detail:this.checked}))}contentAvailableCallback(e){var r;super.contentAvailableCallback(e),(r=this.ripple)===null||r===void 0||r.setupFor(this.container)}};Pe.elementDefinitions={"ft-ripple":Y,"ft-typography":Q};Pe.styles=Rd;Hr([y()],Pe.prototype,"name",void 0);Hr([y({type:Boolean,reflect:!0})],Pe.prototype,"checked",void 0);Hr([y({type:Boolean})],Pe.prototype,"indeterminate",void 0);Hr([y({type:Boolean})],Pe.prototype,"disabled",void 0);Hr([W(".ft-checkbox")],Pe.prototype,"container",void 0);Hr([W("ft-ripple")],Pe.prototype,"ripple",void 0);F("ft-checkbox")(Pe);var dr={textColor:i.extend("--ft-radio-text-color","",P.colorOnSurfaceHigh),colorPrimary:i.external(P.colorPrimary,"Design system"),colorOnPrimary:i.external(P.colorOnPrimary,"Design system"),borderColor:i.extend("--ft-radio-border-color","",P.colorOnSurfaceMedium),colorOnSurfaceDisabled:i.external(P.colorOnSurfaceDisabled,"Design system")},Nd=N`
|
|
1287
1287
|
* {
|
|
1288
1288
|
box-sizing: border-box;
|
|
1289
1289
|
}
|
|
1290
1290
|
|
|
1291
1291
|
.ft-radio {
|
|
1292
1292
|
box-sizing: border-box;
|
|
1293
|
-
color: ${
|
|
1293
|
+
color: ${dr.textColor};
|
|
1294
1294
|
|
|
1295
1295
|
display: inline-flex;
|
|
1296
1296
|
align-items: center;
|
|
@@ -1298,7 +1298,7 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1298
1298
|
}
|
|
1299
1299
|
|
|
1300
1300
|
.ft-radio--disabled {
|
|
1301
|
-
color: ${
|
|
1301
|
+
color: ${dr.colorOnSurfaceDisabled};
|
|
1302
1302
|
}
|
|
1303
1303
|
|
|
1304
1304
|
input {
|
|
@@ -1321,7 +1321,7 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1321
1321
|
}
|
|
1322
1322
|
|
|
1323
1323
|
.ft-radio--box {
|
|
1324
|
-
border: 2px solid ${
|
|
1324
|
+
border: 2px solid ${dr.borderColor};
|
|
1325
1325
|
border-radius: 50%;
|
|
1326
1326
|
|
|
1327
1327
|
display: flex;
|
|
@@ -1334,7 +1334,7 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1334
1334
|
|
|
1335
1335
|
.ft-radio--box:after {
|
|
1336
1336
|
content: " ";
|
|
1337
|
-
background-color: ${
|
|
1337
|
+
background-color: ${dr.colorPrimary};
|
|
1338
1338
|
|
|
1339
1339
|
border-radius: 50%;
|
|
1340
1340
|
|
|
@@ -1346,7 +1346,7 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1346
1346
|
}
|
|
1347
1347
|
|
|
1348
1348
|
.ft-radio--checked .ft-radio--box {
|
|
1349
|
-
border-color: ${
|
|
1349
|
+
border-color: ${dr.colorPrimary};
|
|
1350
1350
|
}
|
|
1351
1351
|
|
|
1352
1352
|
|
|
@@ -1355,23 +1355,23 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1355
1355
|
}
|
|
1356
1356
|
|
|
1357
1357
|
.ft-radio--disabled .ft-radio--box {
|
|
1358
|
-
border-color: ${
|
|
1358
|
+
border-color: ${dr.colorOnSurfaceDisabled};
|
|
1359
1359
|
background-color: transparent;
|
|
1360
1360
|
}
|
|
1361
1361
|
|
|
1362
1362
|
.ft-radio--disabled .ft-radio--box:after {
|
|
1363
|
-
background-color: ${
|
|
1363
|
+
background-color: ${dr.colorOnSurfaceDisabled};
|
|
1364
1364
|
}
|
|
1365
1365
|
|
|
1366
1366
|
.ft-radio:has(:focus-visible) {
|
|
1367
|
-
outline: 2px solid ${
|
|
1367
|
+
outline: 2px solid ${P.colorPrimary};
|
|
1368
1368
|
outline-offset: -2px;
|
|
1369
1369
|
}
|
|
1370
1370
|
|
|
1371
1371
|
.ft-radio ft-typography {
|
|
1372
1372
|
padding-right: 2px;
|
|
1373
1373
|
}
|
|
1374
|
-
`;var Ct=function(t,e,r,
|
|
1374
|
+
`;var Ct=function(t,e,r,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},$i=class extends CustomEvent{constructor(e,r){super("change",{detail:{value:e,checked:r},bubbles:!0,composed:!0})}},ue=class extends M{constructor(){super(...arguments),this.value="",this.name="",this.checked=!1,this.ariaChecked="false",this.disabled=!1,this.role="radio"}render(){let e={"ft-radio":!0,"ft-radio--checked":this.checked,"ft-radio--disabled":this.disabled};return _`
|
|
1375
1375
|
<div class="${Ee(e)}">
|
|
1376
1376
|
<div class="ft-radio--box-container">
|
|
1377
1377
|
<ft-ripple
|
|
@@ -1390,13 +1390,13 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1390
1390
|
@change=${this.onChange}
|
|
1391
1391
|
>
|
|
1392
1392
|
</div>
|
|
1393
|
-
<label for="radio-button" @click=${r=>{var
|
|
1393
|
+
<label for="radio-button" @click=${r=>{var o;r.stopPropagation(),r.preventDefault(),(o=this.input)===null||o===void 0||o.click()}}>
|
|
1394
1394
|
<ft-typography variant="body2">
|
|
1395
1395
|
<slot></slot>
|
|
1396
1396
|
</ft-typography>
|
|
1397
1397
|
</label>
|
|
1398
1398
|
</div>
|
|
1399
|
-
`}update(e){super.update(e),e.has("checked")&&(this.ariaChecked=this.checked?"true":"false")}onChange(e){e.stopPropagation(),this.checked=e.target.checked,this.dispatchEvent(new
|
|
1399
|
+
`}update(e){super.update(e),e.has("checked")&&(this.ariaChecked=this.checked?"true":"false")}onChange(e){e.stopPropagation(),this.checked=e.target.checked,this.dispatchEvent(new $i(this.value,this.checked))}contentAvailableCallback(e){var r;super.contentAvailableCallback(e),(r=this.ripple)===null||r===void 0||r.setupFor(this.container)}select(){this.checked=!0,this.dispatchEvent(new $i(this.value,this.checked))}setInputTabIndex(e){this.input&&(this.input.tabIndex=e)}focus(){var e;(e=this.input)===null||e===void 0||e.focus()}};ue.elementDefinitions={"ft-ripple":Y,"ft-typography":Q};ue.styles=Nd;Ct([y()],ue.prototype,"value",void 0);Ct([y()],ue.prototype,"name",void 0);Ct([y({type:Boolean,reflect:!0})],ue.prototype,"checked",void 0);Ct([y({attribute:"aria-checked",reflect:!0})],ue.prototype,"ariaChecked",void 0);Ct([y({type:Boolean})],ue.prototype,"disabled",void 0);Ct([y({reflect:!0,attribute:"role"})],ue.prototype,"role",void 0);Ct([W(".ft-radio")],ue.prototype,"container",void 0);Ct([W("ft-ripple")],ue.prototype,"ripple",void 0);Ct([W("input")],ue.prototype,"input",void 0);var _d=N`
|
|
1400
1400
|
:host {
|
|
1401
1401
|
display: block;
|
|
1402
1402
|
}
|
|
@@ -1404,12 +1404,12 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1404
1404
|
:host(:focus-visible) {
|
|
1405
1405
|
outline: none;
|
|
1406
1406
|
}
|
|
1407
|
-
`;var Vr=function(t,e,r,
|
|
1407
|
+
`;var Vr=function(t,e,r,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},$e=class extends M{constructor(){super(...arguments),this.name="",this.role="radiogroup",this.tabIndex=0,this.ariaLabelledBy="",this.currentSelectedIndex=0,this.onFocus=()=>{this.tabIndex==0&&(this.tabIndex=-1,setTimeout(()=>this.focusCurrentChecked(),100))},this.onFocusOut=e=>{!this.contains(e.relatedTarget)&&(this.tabIndex=0)}}render(){return _`
|
|
1408
1408
|
<slot @slotchange=${this.onSlotChange}
|
|
1409
1409
|
@change=${this.onChange}
|
|
1410
1410
|
@keydown=${this.onKeyDown}
|
|
1411
1411
|
></slot>
|
|
1412
|
-
`}connectedCallback(){super.connectedCallback(),this.addEventListener("focus",this.onFocus),this.addEventListener("focusout",this.onFocusOut)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("focus",this.onFocus),this.removeEventListener("focusout",this.onFocusOut)}onSlotChange(){this.radioButtons.forEach(e=>e.name=this.name)}contentAvailableCallback(e){super.contentAvailableCallback(e),this.radioButtons.forEach(r=>r.setInputTabIndex(-1)),this.resolveCurrentSelectedIndex()}onChange(e){e.stopPropagation(),this.radioButtons.forEach(r=>r.checked=e.detail.value===r.value),this.dispatchEvent(new CustomEvent("change",{detail:e.detail.value})),this.resolveCurrentSelectedIndex()}onKeyDown(e){let r=!1;switch(e.key){case"ArrowUp":case"ArrowLeft":{r=!0;let
|
|
1412
|
+
`}connectedCallback(){super.connectedCallback(),this.addEventListener("focus",this.onFocus),this.addEventListener("focusout",this.onFocusOut)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("focus",this.onFocus),this.removeEventListener("focusout",this.onFocusOut)}onSlotChange(){this.radioButtons.forEach(e=>e.name=this.name)}contentAvailableCallback(e){super.contentAvailableCallback(e),this.radioButtons.forEach(r=>r.setInputTabIndex(-1)),this.resolveCurrentSelectedIndex()}onChange(e){e.stopPropagation(),this.radioButtons.forEach(r=>r.checked=e.detail.value===r.value),this.dispatchEvent(new CustomEvent("change",{detail:e.detail.value})),this.resolveCurrentSelectedIndex()}onKeyDown(e){let r=!1;switch(e.key){case"ArrowUp":case"ArrowLeft":{r=!0;let o=this.currentSelectedIndex-1;this.radioButtons[o<0?this.radioButtons.length-1:o].select(),this.radioButtons[o<0?this.radioButtons.length-1:o].focus();break}case"ArrowDown":case"ArrowRight":{r=!0;let o=this.currentSelectedIndex+1;this.radioButtons[o>this.radioButtons.length-1?0:o].select(),this.radioButtons[o>this.radioButtons.length-1?0:o].focus();break}case"Enter":this.radioButtons[this.currentSelectedIndex].select()}r&&(e.stopPropagation(),e.preventDefault())}resolveCurrentSelectedIndex(){let e=this.radioButtons.findIndex(r=>r.checked);e==-1?(this.currentSelectedIndex=0,this.radioButtons[0].select()):this.currentSelectedIndex=e}focusCurrentChecked(){this.radioButtons[this.currentSelectedIndex].focus()}};$e.elementDefinitions={};$e.styles=_d;Vr([y()],$e.prototype,"name",void 0);Vr([y({reflect:!0,attribute:"role"})],$e.prototype,"role",void 0);Vr([y({reflect:!0})],$e.prototype,"tabIndex",void 0);Vr([y({reflect:!0,attribute:"aria-labelledby"})],$e.prototype,"ariaLabelledBy",void 0);Vr([Ji()],$e.prototype,"radioButtons",void 0);Vr([K()],$e.prototype,"currentSelectedIndex",void 0);F("ft-radio")(ue);F("ft-radio-group")($e);var Li={borderRadiusM:i.external(P.borderRadiusM,"Design system"),colorOutline:i.external(P.colorOutline,"Design system"),colorOnSurface:i.external(P.colorOnSurface,"Design system"),colorOnSurfaceMedium:i.external(P.colorOnSurfaceMedium,"Design system"),colorOnSurfaceDisabled:i.external(P.colorOnSurfaceDisabled,"Design system"),colorPrimary:i.external(P.colorPrimary,"Design system"),colorOnPrimary:i.external(P.colorOnPrimary,"Design system"),fontFamily:i.external(xe.fontFamily,"Body2 typography"),fontSize:i.external(xe.fontSize,"Body2 typography"),fontWeight:i.external(xe.fontWeight,"Body2 typography"),letterSpacing:i.external(xe.letterSpacing,"Body2 typography"),lineHeight:i.external(xe.lineHeight,"Body2 typography"),textTransform:i.external(xe.textTransform,"Body2 typography")},Td=N`
|
|
1413
1413
|
.ft-filter-level--container {
|
|
1414
1414
|
display: flex;
|
|
1415
1415
|
flex-direction: column;
|
|
@@ -1423,14 +1423,14 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1423
1423
|
flex-shrink: 0;
|
|
1424
1424
|
text-decoration: none;
|
|
1425
1425
|
position: relative;
|
|
1426
|
-
border-radius: ${
|
|
1426
|
+
border-radius: ${Li.borderRadiusM};
|
|
1427
1427
|
overflow: hidden;
|
|
1428
1428
|
display: flex;
|
|
1429
1429
|
align-items: center;
|
|
1430
1430
|
padding: 4px 4px;
|
|
1431
1431
|
gap: 4px;
|
|
1432
1432
|
cursor: pointer;
|
|
1433
|
-
color: ${
|
|
1433
|
+
color: ${Li.colorOnSurface};
|
|
1434
1434
|
}
|
|
1435
1435
|
|
|
1436
1436
|
.ft-filter-level--go-back:focus {
|
|
@@ -1459,7 +1459,7 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1459
1459
|
}
|
|
1460
1460
|
|
|
1461
1461
|
ft-button {
|
|
1462
|
-
${
|
|
1462
|
+
${T(X.color,Li.colorOnSurface)};
|
|
1463
1463
|
}
|
|
1464
1464
|
|
|
1465
1465
|
ft-radio, ft-checkbox {
|
|
@@ -1473,9 +1473,9 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1473
1473
|
|
|
1474
1474
|
.ft-filter-level--no-values {
|
|
1475
1475
|
margin: 10px 0;
|
|
1476
|
-
color: ${
|
|
1476
|
+
color: ${Li.colorOnSurfaceMedium};
|
|
1477
1477
|
}
|
|
1478
|
-
`;var Re=function(t,e,r,
|
|
1478
|
+
`;var Re=function(t,e,r,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},ce=class extends M{constructor(){super(...arguments),this.filterId="",this.options=[],this.multivalued=!1,this.disabled=!1,this.hideSelectedOptions=!1,this.displayCount=!1,this.preventNavigation=!1,this.filter="",this.moreValuesButtonLabel="More",this.displayedValuesLimit=0,this.displayedPages=1}get hasHiddenValues(){let e=this.limit;return e!=null&&e<this.options.length}get limit(){return this.displayedValuesLimit>0?this.displayedPages*this.displayedValuesLimit:void 0}get height(){var e,r;return(r=(e=this.container)===null||e===void 0?void 0:e.scrollHeight)!==null&&r!==void 0?r:0}render(){let e=[...this.options];this.hideSelectedOptions&&(e=e.filter(o=>!o.selected)),this.filter&&(e=e.filter(o=>o.label.toLowerCase().includes(this.filter.toLowerCase())));let r=e.slice(0,this.limit);return _`
|
|
1479
1479
|
<div class="ft-filter-level--container ${this.disabled?"ft-filter--disabled":""}">
|
|
1480
1480
|
${this.parent==null?null:_`
|
|
1481
1481
|
<div tabindex="0"
|
|
@@ -1495,17 +1495,17 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1495
1495
|
${this.noValuesLabel}
|
|
1496
1496
|
</ft-typography>
|
|
1497
1497
|
`:B}
|
|
1498
|
-
${
|
|
1498
|
+
${yr(r,o=>o.value,o=>{var n;return _`
|
|
1499
1499
|
<div class="ft-filter-level--option" part="options" tabindex="-1">
|
|
1500
|
-
${this.multivalued?this.buildMultiValuedOption(
|
|
1501
|
-
${this.preventNavigation||
|
|
1500
|
+
${this.multivalued?this.buildMultiValuedOption(o):this.buildMonoValuedOption(o)}
|
|
1501
|
+
${this.preventNavigation||o.selected||((n=o.subOptions)!==null&&n!==void 0?n:[]).length===0?B:_`
|
|
1502
1502
|
<ft-button icon="thin_arrow_right"
|
|
1503
1503
|
part="controls navigate-hierarchy"
|
|
1504
1504
|
aria-label="expand node"
|
|
1505
|
-
label="${
|
|
1505
|
+
label="${o.label}"
|
|
1506
1506
|
?disabled=${this.disabled}
|
|
1507
1507
|
tooltipPosition="left"
|
|
1508
|
-
@click=${()=>this.displayLevel(
|
|
1508
|
+
@click=${()=>this.displayLevel(o)}></ft-button>
|
|
1509
1509
|
`}
|
|
1510
1510
|
</div>
|
|
1511
1511
|
`})}
|
|
@@ -1526,8 +1526,8 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1526
1526
|
data-value="${e.value}"
|
|
1527
1527
|
.checked=${e.selected}
|
|
1528
1528
|
.disabled=${this.disabled}
|
|
1529
|
-
.indeterminate=${ut((r=e.subOptions)!==null&&r!==void 0?r:[],
|
|
1530
|
-
@change=${
|
|
1529
|
+
.indeterminate=${ut((r=e.subOptions)!==null&&r!==void 0?r:[],o=>{var n;return(n=o.subOptions)!==null&&n!==void 0?n:[]}).some(o=>o.selected)}
|
|
1530
|
+
@change=${o=>this.optionsChanged(o,e)}>
|
|
1531
1531
|
${e.renderOption?e.renderOption:e.label}${this.displayCount?` (${e.count})`:""}
|
|
1532
1532
|
</ft-checkbox>
|
|
1533
1533
|
`}buildMonoValuedOption(e){return _`
|
|
@@ -1541,7 +1541,7 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1541
1541
|
@change=${r=>this.optionsChanged(r,e)}>
|
|
1542
1542
|
${e.renderOption?e.renderOption:e.label}${this.displayCount?` (${e.count})`:""}
|
|
1543
1543
|
</ft-radio>
|
|
1544
|
-
`}onRadioKeyDown(e,r){e.stopPropagation(),(e.key===" "||e.key==="Enter")&&(e.preventDefault(),this.optionsChanged(e,r))}optionsChanged(e,r){e.stopPropagation(),this.dispatchEvent(new CustomEvent("change",{detail:r}))}displayLevel(e){this.dispatchEvent(new CustomEvent("display-level",{detail:e}))}};ce.elementDefinitions={"ft-button":ve,"ft-ripple":Y,"ft-typography":Q,"ft-checkbox":Pe,"ft-icon":ye,"ft-radio":ue};ce.styles=
|
|
1544
|
+
`}onRadioKeyDown(e,r){e.stopPropagation(),(e.key===" "||e.key==="Enter")&&(e.preventDefault(),this.optionsChanged(e,r))}optionsChanged(e,r){e.stopPropagation(),this.dispatchEvent(new CustomEvent("change",{detail:r}))}displayLevel(e){this.dispatchEvent(new CustomEvent("display-level",{detail:e}))}};ce.elementDefinitions={"ft-button":ve,"ft-ripple":Y,"ft-typography":Q,"ft-checkbox":Pe,"ft-icon":ye,"ft-radio":ue};ce.styles=Td;Re([y({type:String})],ce.prototype,"filterId",void 0);Re([y({type:Object})],ce.prototype,"parent",void 0);Re([y({type:Array})],ce.prototype,"options",void 0);Re([y({type:Boolean})],ce.prototype,"multivalued",void 0);Re([y({type:Boolean})],ce.prototype,"disabled",void 0);Re([y({type:Boolean})],ce.prototype,"hideSelectedOptions",void 0);Re([y({type:Boolean})],ce.prototype,"displayCount",void 0);Re([y({type:Boolean})],ce.prototype,"preventNavigation",void 0);Re([y({type:String})],ce.prototype,"filter",void 0);Re([y({type:String})],ce.prototype,"moreValuesButtonLabel",void 0);Re([y({type:String})],ce.prototype,"noValuesLabel",void 0);Re([y({type:Number})],ce.prototype,"displayedValuesLimit",void 0);Re([W(".ft-filter-level--container")],ce.prototype,"container",void 0);Re([K()],ce.prototype,"radios",void 0);Re([K()],ce.prototype,"displayedPages",void 0);var Ft={buttonsColor:i.extend("--ft-snap-scroll-buttons-color","",P.colorPrimary),buttonsZIndex:i.create("--ft-snap-scroll-buttons-z-index","","NUMBER","1"),gap:i.create("--ft-snap-scroll-gap","","SIZE","0"),colorSurface:i.external(P.colorSurface,"Design system")},Pd=N`
|
|
1545
1545
|
.ft-snap-scroll {
|
|
1546
1546
|
box-sizing: border-box;
|
|
1547
1547
|
position: relative;
|
|
@@ -1622,8 +1622,8 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1622
1622
|
z-index: ${Ft.buttonsZIndex};
|
|
1623
1623
|
opacity: 1;
|
|
1624
1624
|
transition: background-color .5s ease-in-out, opacity .5s ease-in-out, z-index .5s ease-in-out;
|
|
1625
|
-
${
|
|
1626
|
-
${
|
|
1625
|
+
${T(X.backgroundColor,"transparent")};
|
|
1626
|
+
${T(X.color,Ft.buttonsColor)};
|
|
1627
1627
|
}
|
|
1628
1628
|
|
|
1629
1629
|
.ft-snap-scroll--previous[hidden],
|
|
@@ -1666,7 +1666,7 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1666
1666
|
.ft-snap-scroll--vertical .ft-snap-scroll--next:hover {
|
|
1667
1667
|
background-color: ${Ft.colorSurface};
|
|
1668
1668
|
}
|
|
1669
|
-
`;var lt=function(t,e,r,
|
|
1669
|
+
`;var lt=function(t,e,r,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},ms=class extends CustomEvent{constructor(e,r){super("current-element-change",{detail:{index:e,element:r}})}},ge=class extends M{constructor(){super(...arguments),this.horizontal=!1,this.hideScrollbar=!1,this.controls=!1,this.limitSize=!1,this.elements=[],this.currentElement=0,this.withScroll=!1,this.startReached=!0,this.endReached=!0,this.offsetAttribute="offsetTop",this.scrollAttribute="scrollTop",this.sizeAttribute="clientHeight",this.scrollSizeAttribute="scrollHeight",this.updateScrollCallback=()=>this.onScroll(),this.resizeObserver=new ResizeObserver(()=>this.scheduleUpdateScroll()),this.scrollDebouncer=new oe(200),this.updateScrollDebouncer=new oe(100)}scrollToIndex(e){this.scrollToElement(this.elements[e])}scrollIndexIntoView(e){let r=this.elements[e];if(r){let o=this.contentSlot[this.scrollAttribute]+this.contentSlot[this.sizeAttribute]-this.nextSize,n=this.contentSlot[this.scrollAttribute]+this.prevSize;(r[this.offsetAttribute]<n||r[this.offsetAttribute]+r[this.sizeAttribute]>o)&&this.scrollToElement(r)}}previous(){this.scrollToElement(this.elements[Math.max(0,this.closestIndexFromStart()-1)])}next(){this.scrollToElement(this.elements[Math.min(this.closestIndexFromStart()+1,this.elements.length-1)])}render(){let e=Ee({"ft-snap-scroll":!0,"ft-snap-scroll--horizontal":this.horizontal,"ft-snap-scroll--vertical":!this.horizontal,"ft-snap-scroll--hide-scrollbar":this.hideScrollbar,"ft-snap-scroll--limit-size":this.limitSize,"ft-snap-scroll--safari-fix":sr}),r=this.controls&&this.withScroll;return _`
|
|
1670
1670
|
<div part="container" class="${e}">
|
|
1671
1671
|
<ft-button
|
|
1672
1672
|
class="ft-snap-scroll--previous"
|
|
@@ -1690,7 +1690,7 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1690
1690
|
@click=${this.next}
|
|
1691
1691
|
></ft-button>
|
|
1692
1692
|
</div>
|
|
1693
|
-
`}update(e){super.update(e),e.has("horizontal")&&(this.horizontal?(this.offsetAttribute="offsetLeft",this.scrollAttribute="scrollLeft",this.sizeAttribute="clientWidth",this.scrollSizeAttribute="scrollWidth"):(this.offsetAttribute="offsetTop",this.scrollAttribute="scrollTop",this.sizeAttribute="clientHeight",this.scrollSizeAttribute="scrollHeight")),e.has("currentElement")&&this.dispatchEvent(new
|
|
1693
|
+
`}update(e){super.update(e),e.has("horizontal")&&(this.horizontal?(this.offsetAttribute="offsetLeft",this.scrollAttribute="scrollLeft",this.sizeAttribute="clientWidth",this.scrollSizeAttribute="scrollWidth"):(this.offsetAttribute="offsetTop",this.scrollAttribute="scrollTop",this.sizeAttribute="clientHeight",this.scrollSizeAttribute="scrollHeight")),e.has("currentElement")&&this.dispatchEvent(new ms(this.currentElement,this.elements[this.currentElement]))}contentAvailableCallback(e){var r;super.contentAvailableCallback(e),this.contentSlot&&this.listenedContainer!==this.contentSlot&&(this.resizeObserver.observe(this.contentSlot),this.listenedContainer&&this.listenedContainer.removeEventListener("scroll",this.updateScrollCallback),this.listenedContainer=this.contentSlot,(r=this.listenedContainer)===null||r===void 0||r.addEventListener("scroll",this.updateScrollCallback))}onScroll(){this.scrollDebouncer.run(()=>this.snap()),this.scheduleUpdateScroll()}snap(){let e=this.closestElementFromStart();if(e!=null){let r=this.getDistanceFromStart(e);Math.abs(this.contentSlot[this.scrollAttribute]+this.contentSlot[this.sizeAttribute]-this.contentSlot[this.scrollSizeAttribute])<r&&(e=this.lastElement),this.scrollToElement(e)}}scrollToElement(e){var r,o;e&&(this.horizontal?(r=this.contentSlot)===null||r===void 0||r.scrollTo({left:this.getOffset(e)-this.controlsSize,behavior:"smooth"}):(o=this.contentSlot)===null||o===void 0||o.scrollTo({top:this.getOffset(e)-this.controlsSize,behavior:"smooth"}),this.currentElement=this.elements.indexOf(e))}onSlotChange(){var e,r;this.elements=(r=(e=this.contentSlot)===null||e===void 0?void 0:e.assignedElements().map(o=>o))!==null&&r!==void 0?r:[],this.scheduleUpdateScroll()}closestElementFromStart(){return this.elements[this.closestIndexFromStart()]}closestIndexFromStart(){let e=-1;for(let r=0;r<this.elements.length;r++)(e<0||this.getDistanceFromStart(this.elements[r])<this.getDistanceFromStart(this.elements[e]))&&(e=r);return e}scheduleUpdateScroll(){this.updateScrollDebouncer.run(()=>this.updateScroll())}updateScroll(){this.contentSlot!=null?(this.withScroll=this.contentSlot[this.scrollSizeAttribute]>this.contentSlot[this.sizeAttribute],this.startReached=this.contentSlot[this.scrollAttribute]===0,this.endReached=this.contentSlot[this.scrollAttribute]+this.contentSlot[this.sizeAttribute]+1>=this.contentSlot[this.scrollSizeAttribute]):(this.withScroll=!1,this.startReached=!0,this.endReached=!0)}get lastElement(){return this.elements[this.elements.length-1]}get firstElementOffset(){let e=this.elements[0];return e?e[this.offsetAttribute]:0}get controlsSize(){return this.controls?36:0}get nextSize(){return this.endReached?0:this.controlsSize}get prevSize(){return this.startReached?0:this.controlsSize}getOffset(e){return e[this.offsetAttribute]-this.firstElementOffset}getDistanceFromStart(e){let r=e===this.elements[0]?0:this.controlsSize;return Math.abs(this.getOffset(e)-this.contentSlot[this.scrollAttribute]-r)}};ge.elementDefinitions={"ft-button":ve};ge.styles=Pd;lt([y({type:Boolean})],ge.prototype,"horizontal",void 0);lt([y({type:Boolean})],ge.prototype,"hideScrollbar",void 0);lt([y({type:Boolean})],ge.prototype,"controls",void 0);lt([y({type:Boolean})],ge.prototype,"limitSize",void 0);lt([K()],ge.prototype,"elements",void 0);lt([K()],ge.prototype,"currentElement",void 0);lt([K()],ge.prototype,"withScroll",void 0);lt([K()],ge.prototype,"startReached",void 0);lt([K()],ge.prototype,"endReached",void 0);lt([W(".ft-snap-scroll--content")],ge.prototype,"contentSlot",void 0);F("ft-snap-scroll")(ge);var Le={colorOutline:i.external(P.colorOutline,"Design system"),colorOnSurface:i.external(P.colorOnSurface,"Design system"),colorOnSurfaceMedium:i.external(P.colorOnSurfaceMedium,"Design system"),colorPrimary:i.external(P.colorPrimary,"Design system"),colorSurface:i.external(P.colorSurface,"Design system"),transitionDuration:i.external(P.transitionDuration,"Design system"),transitionTimingFunction:i.external(P.transitionTimingFunction,"Design system"),labelColor:i.extend("--ft-filter-label-color","",P.colorOnSurface),labelFontSize:i.extend("--ft-filter-label-font-size","",k.fontSize,"16px")},$d=[wi,fa,N`
|
|
1694
1694
|
:host {
|
|
1695
1695
|
display: flex;
|
|
1696
1696
|
max-height: 100%;
|
|
@@ -1717,7 +1717,7 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1717
1717
|
.ft-filter--header ft-button {
|
|
1718
1718
|
flex-shrink: 0;
|
|
1719
1719
|
margin-left: auto;
|
|
1720
|
-
${
|
|
1720
|
+
${T(X.iconSize,"18px")};
|
|
1721
1721
|
}
|
|
1722
1722
|
.filter-label {
|
|
1723
1723
|
display: contents;
|
|
@@ -1730,8 +1730,8 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1730
1730
|
word-break: break-word;
|
|
1731
1731
|
color: ${Le.labelColor};
|
|
1732
1732
|
font-size: ${Le.labelFontSize};
|
|
1733
|
-
${
|
|
1734
|
-
${
|
|
1733
|
+
${T(k.lineHeight,"22px")};
|
|
1734
|
+
${T(k.fontWeight,"bold")};
|
|
1735
1735
|
}
|
|
1736
1736
|
|
|
1737
1737
|
.ft-filter--filter {
|
|
@@ -1805,7 +1805,7 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1805
1805
|
slot:not([name]) {
|
|
1806
1806
|
display: none;
|
|
1807
1807
|
}
|
|
1808
|
-
`];var re=function(t,e,r,
|
|
1808
|
+
`];var re=function(t,e,r,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},ys=class extends CustomEvent{constructor(e){super("change",{detail:e})}},G=class extends M{constructor(){super(...arguments),this.id="",this.label="",this.filterPlaceHolder="Filter {0}",this.clearButtonLabel="Clear",this.moreValuesButtonLabel="More",this.noValuesLabel="No values available",this.options=[],this.multivalued=!1,this.disabled=!1,this.raiseSelectedOptions=!1,this.displayCount=!1,this.displayedValuesLimit=0,this.hideClearButton=!1,this.lastLevelHasHiddenvalues=!1,this.withScroll=!1,this.filter="",this.displayedLevels=[],this.scrollResizeObserver=new ResizeObserver(()=>this.updateScroll()),this.levelsScrollDebouncer=new oe(300),this.changeDebouncer=new oe(10),this.lastDispatchedValues=[]}get flatOptions(){return ut(this.options,e=>{var r;return(r=e.subOptions)!==null&&r!==void 0?r:[]})}get childrenFilteredFlatOptions(){return ut(this.options,e=>{var r;return e.selected?[]:(r=e.subOptions)!==null&&r!==void 0?r:[]})}get selectedValues(){return this.childrenFilteredFlatOptions.filter(e=>e.selected).map(e=>e.value)}render(){let e=this.flatOptions.some(n=>n.selected),r=this.withScroll||this.filter||this.lastLevelHasHiddenvalues,o=this.filterPlaceHolder.replace("{0}",this.label);return _`
|
|
1809
1809
|
<div class="ft-filter--container ${this.disabled?"ft-filter--disabled":""}"
|
|
1810
1810
|
part="container">
|
|
1811
1811
|
${!this.label&&!e?null:_`
|
|
@@ -1829,8 +1829,8 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1829
1829
|
part="input"
|
|
1830
1830
|
class="ft-typography--caption"
|
|
1831
1831
|
?disabled=${!r}
|
|
1832
|
-
placeholder="${
|
|
1833
|
-
size="${r?
|
|
1832
|
+
placeholder="${o}"
|
|
1833
|
+
size="${r?o.length:0}"
|
|
1834
1834
|
@search=${this.onFilterChange}
|
|
1835
1835
|
@keyup=${this.onFilterChange}>
|
|
1836
1836
|
</div>
|
|
@@ -1841,7 +1841,7 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1841
1841
|
@slotchange=${this.updateOptionsFromSlot}
|
|
1842
1842
|
@option-change=${this.optionsChanged}></slot>
|
|
1843
1843
|
</div>
|
|
1844
|
-
`}update(e){if(super.update(e),e.has("options")){let r=new Set(this.flatOptions.map(
|
|
1844
|
+
`}update(e){if(super.update(e),e.has("options")){let r=new Set(this.flatOptions.map(o=>o.value));this.displayedLevels=this.displayedLevels.filter(o=>r.has(o)),this.lastDispatchedValues=this.selectedValues}}contentAvailableCallback(e){var r,o,n,a,s;super.contentAvailableCallback(e),this.valuesContainer&&this.scrollResizeObserver.observe(this.valuesContainer),this.container&&this.scrollResizeObserver.observe(this.container),e.has("options")&&(this.updateScroll(),(r=this.levelsContainer)===null||r===void 0||r.scrollToIndex(this.displayedLevels.length)),e.has("slideIn")&&this.slideIn&&setTimeout(()=>{var l;(l=this.levelsContainer)===null||l===void 0||l.next(),this.slideIn=void 0},0),e.has("slideOut")&&this.slideOut&&((o=this.levelsContainer)===null||o===void 0||o.previous(),setTimeout(()=>{this.displayedLevels.pop(),this.slideOut=void 0},300)),this.lastLevelHasHiddenvalues=(s=(a=(n=this.shadowRoot)===null||n===void 0?void 0:n.querySelector(".ft-filter--levels ft-filter-level:last-child"))===null||a===void 0?void 0:a.hasHiddenValues)!==null&&s!==void 0?s:!1}renderLevels(){let e=this.flatOptions,r=e.filter(a=>a.selected),o=this.slideIn||this.slideOut?this.displayedLevels.length-2:this.displayedLevels.length-1,n=o<0?"ft-filter--level-center":"ft-filter--level-left";return _`
|
|
1845
1845
|
${this.raiseSelectedOptions&&r.length>0?_`
|
|
1846
1846
|
<ft-filter-level
|
|
1847
1847
|
filterId="${this.id}"
|
|
@@ -1860,9 +1860,9 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1860
1860
|
class="ft-filter--levels"
|
|
1861
1861
|
@current-element-change=${a=>this.levelsScrollDebouncer.run(()=>{for(;a.detail.index<this.displayedLevels.length;)this.displayedLevels.pop();this.requestUpdate()})}>
|
|
1862
1862
|
${this.renderLevel(n,this.options)}
|
|
1863
|
-
${this.displayedLevels.map(a=>e.find(s=>s.value===a)).map((a,s)=>{var l;let c=a?.value===this.slideIn||a?.value===this.slideOut?"ft-filter--level-right":s===
|
|
1863
|
+
${this.displayedLevels.map(a=>e.find(s=>s.value===a)).map((a,s)=>{var l;let c=a?.value===this.slideIn||a?.value===this.slideOut?"ft-filter--level-right":s===o?"ft-filter--level-center":"ft-filter--level-left";return this.renderLevel(c,(l=a?.subOptions)!==null&&l!==void 0?l:[],a)})}
|
|
1864
1864
|
</ft-snap-scroll>
|
|
1865
|
-
`}renderLevel(e,r,
|
|
1865
|
+
`}renderLevel(e,r,o){return _`
|
|
1866
1866
|
<ft-filter-level
|
|
1867
1867
|
class="${e}"
|
|
1868
1868
|
filterId="${this.id}"
|
|
@@ -1872,7 +1872,7 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1872
1872
|
?disabled=${this.disabled||e!=="ft-filter--level-center"}
|
|
1873
1873
|
?hideSelectedOptions=${this.raiseSelectedOptions}
|
|
1874
1874
|
?displayCount="${this.displayCount}"
|
|
1875
|
-
.parent=${
|
|
1875
|
+
.parent=${o}
|
|
1876
1876
|
.options=${r}
|
|
1877
1877
|
.displayedValuesLimit=${this.displayedValuesLimit}
|
|
1878
1878
|
@change=${this.onChange}
|
|
@@ -1882,9 +1882,9 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1882
1882
|
.exportpartsPrefixes=${["values","available-values"]}
|
|
1883
1883
|
noValuesLabel="${this.noValuesLabel}"
|
|
1884
1884
|
></ft-filter-level>
|
|
1885
|
-
`}goBack(e){this.slideOut=e.detail.value}onDisplayLevel(e){this.displayedLevels.push(e.detail.value),this.slideIn=e.detail.value}clear(){if(this.flatOptions.forEach(e=>e.selected=!1),this.displayedLevels.length>0){let e=this.displayedLevels[this.displayedLevels.length-1];this.displayedLevels=[e],this.slideOut=e}this.optionsChanged()}onChange(e){var r;e.stopPropagation();let
|
|
1885
|
+
`}goBack(e){this.slideOut=e.detail.value}onDisplayLevel(e){this.displayedLevels.push(e.detail.value),this.slideIn=e.detail.value}clear(){if(this.flatOptions.forEach(e=>e.selected=!1),this.displayedLevels.length>0){let e=this.displayedLevels[this.displayedLevels.length-1];this.displayedLevels=[e],this.slideOut=e}this.optionsChanged()}onChange(e){var r;e.stopPropagation();let o=this.flatOptions.find(a=>a.value===e.detail.value);o.selected=!o.selected;let n=a=>{var s;a!==o&&(a.selected=!1),(s=a.subOptions)===null||s===void 0||s.forEach(n)};this.multivalued?(r=o.subOptions)===null||r===void 0||r.forEach(n):this.options.forEach(n),this.optionsChanged()}optionsChanged(){this.changeDebouncer.run(()=>{var e;this.sendEventIfValuesChanged(),this.requestUpdate(),(e=this.levels)===null||e===void 0||e.forEach(r=>r.requestUpdate())})}sendEventIfValuesChanged(){let e=this.selectedValues;De(this.lastDispatchedValues,e)||(this.dispatchEvent(new ys(e)),this.lastDispatchedValues=e)}updateOptionsFromSlot(e){e.stopPropagation(),this.options=this.slotElement.assignedElements().map(r=>r),this.optionsChanged()}onFilterChange(){var e,r;this.filter=(r=(e=this.filterInput)===null||e===void 0?void 0:e.value)!==null&&r!==void 0?r:""}updateScroll(){this.valuesContainer&&(this.withScroll=this.valuesContainer.scrollHeight>this.valuesContainer.clientHeight)}};G.elementDefinitions={"ft-button":ve,"ft-filter-level":ce,"ft-snap-scroll":ge,"ft-typography":Q};G.styles=$d;re([y({type:String})],G.prototype,"id",void 0);re([y({type:String})],G.prototype,"label",void 0);re([y({type:String})],G.prototype,"filterPlaceHolder",void 0);re([y({type:String})],G.prototype,"clearButtonLabel",void 0);re([y({type:String})],G.prototype,"moreValuesButtonLabel",void 0);re([y({type:String})],G.prototype,"noValuesLabel",void 0);re([be([])],G.prototype,"options",void 0);re([y({type:Boolean})],G.prototype,"multivalued",void 0);re([y({type:Boolean})],G.prototype,"disabled",void 0);re([y({type:Boolean})],G.prototype,"raiseSelectedOptions",void 0);re([y({type:Boolean})],G.prototype,"displayCount",void 0);re([y({type:Number})],G.prototype,"displayedValuesLimit",void 0);re([y({type:Boolean})],G.prototype,"hideClearButton",void 0);re([W(".ft-filter--slot")],G.prototype,"slotElement",void 0);re([W(".ft-filter--container")],G.prototype,"container",void 0);re([W(".ft-filter--values")],G.prototype,"valuesContainer",void 0);re([W(".ft-filter--levels")],G.prototype,"levelsContainer",void 0);re([K()],G.prototype,"lastLevelHasHiddenvalues",void 0);re([W(".ft-filter--filter input")],G.prototype,"filterInput",void 0);re([Xi(".ft-filter--levels ft-filter-level")],G.prototype,"levels",void 0);re([K()],G.prototype,"withScroll",void 0);re([K()],G.prototype,"filter",void 0);re([K()],G.prototype,"slideIn",void 0);re([K()],G.prototype,"slideOut",void 0);var jr=function(t,e,r,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},Qe=class extends M{constructor(){super(...arguments),this.label="",this.value=null,this.selected=!1,this.subOptions=[]}render(){return _`
|
|
1886
1886
|
<slot class="ft-filter-option--slot" @slotchange=${this.updateSubOptionsFromSlot}></slot>
|
|
1887
|
-
`}updateSubOptionsFromSlot(e){e.stopPropagation(),this.subOptions=this.slotElement.assignedElements().map(r=>r)}update(e){super.update(e),this.dispatchEvent(new CustomEvent("option-change",{detail:this,bubbles:!0}))}};Qe.elementDefinitions={};jr([y({type:String})],Qe.prototype,"label",void 0);jr([y({type:Object,converter:t=>t})],Qe.prototype,"value",void 0);jr([y({type:Boolean,reflect:!0})],Qe.prototype,"selected",void 0);jr([y({type:Object})],Qe.prototype,"subOptions",void 0);jr([be({})],Qe.prototype,"renderOption",void 0);jr([W(".ft-filter-option--slot")],Qe.prototype,"slotElement",void 0);F("ft-filter")(G);F("ft-filter-option")(Qe);var zt=Wr.build("designedSearchType"),
|
|
1887
|
+
`}updateSubOptionsFromSlot(e){e.stopPropagation(),this.subOptions=this.slotElement.assignedElements().map(r=>r)}update(e){super.update(e),this.dispatchEvent(new CustomEvent("option-change",{detail:this,bubbles:!0}))}};Qe.elementDefinitions={};jr([y({type:String})],Qe.prototype,"label",void 0);jr([y({type:Object,converter:t=>t})],Qe.prototype,"value",void 0);jr([y({type:Boolean,reflect:!0})],Qe.prototype,"selected",void 0);jr([y({type:Object})],Qe.prototype,"subOptions",void 0);jr([be({})],Qe.prototype,"renderOption",void 0);jr([W(".ft-filter-option--slot")],Qe.prototype,"slotElement",void 0);F("ft-filter")(G);F("ft-filter-option")(Qe);var zt=Wr.build("designedSearchType"),Ii={label:"Search scope",documentTitlesOnly:"Search in document titles only"};var Ld=function(t,e,r,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},Wt=class extends Bt(Ut){constructor(){super(),this.addI18nContext(zt,Ii)}render(){return _`
|
|
1888
1888
|
<ft-filter
|
|
1889
1889
|
label=${zt.messages.label()}
|
|
1890
1890
|
.options=${[{label:zt.messages.documentTitlesOnly(),value:e=>{var r;return(r=this.stateManager)===null||r===void 0?void 0:r.setSearchInDocumentTitlesOnly(e)},selected:this.searchInDocumentTitlesOnly}]}
|
|
@@ -1893,7 +1893,7 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1893
1893
|
multivalued
|
|
1894
1894
|
@change=${this.onSelected}
|
|
1895
1895
|
></ft-filter>
|
|
1896
|
-
`}onSelected(e){var r;(r=this.filter)===null||r===void 0||r.options.forEach(
|
|
1896
|
+
`}onSelected(e){var r;(r=this.filter)===null||r===void 0||r.options.forEach(o=>o.value(o.selected))}};Wt.elementDefinitions={"ft-filter":G};Wt.styles=Ad;Ld([fe({selector:Eo})],Wt.prototype,"searchInDocumentTitlesOnly",void 0);Ld([W("ft-filter")],Wt.prototype,"filter",void 0);F("ft-search-type")(Wt);var Su={headerColor:i.extend("--ft-search-period-filter-header-color","",P.colorOnSurface)},Id=N`
|
|
1897
1897
|
[part="container"] {
|
|
1898
1898
|
flex-grow: 1;
|
|
1899
1899
|
display: flex;
|
|
@@ -1908,7 +1908,7 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1908
1908
|
overflow: auto;
|
|
1909
1909
|
display: flex;
|
|
1910
1910
|
flex-direction: column;
|
|
1911
|
-
${
|
|
1911
|
+
${T(k.lineHeight,"22px")};
|
|
1912
1912
|
}
|
|
1913
1913
|
|
|
1914
1914
|
[part="header"] {
|
|
@@ -1918,7 +1918,7 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1918
1918
|
flex-shrink: 0;
|
|
1919
1919
|
padding: 0 10px;
|
|
1920
1920
|
margin-bottom: 8px;
|
|
1921
|
-
color: ${
|
|
1921
|
+
color: ${Su.headerColor};
|
|
1922
1922
|
}
|
|
1923
1923
|
|
|
1924
1924
|
[part="label"] {
|
|
@@ -1927,10 +1927,10 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1927
1927
|
flex-grow: 1;
|
|
1928
1928
|
word-break: break-word;
|
|
1929
1929
|
font-size: ${Le.labelFontSize};
|
|
1930
|
-
${
|
|
1930
|
+
${T(k.fontWeight,"bold")};
|
|
1931
1931
|
}
|
|
1932
1932
|
|
|
1933
|
-
`;var Ie=Wr.build("designedSearchPeriodFilter"),
|
|
1933
|
+
`;var Ie=Wr.build("designedSearchPeriodFilter"),ki={label:"Last update",anyTime:"Any time",LAST_WEEK:"Less than a week",LAST_MONTH:"Less than a month",LAST_QUARTER:"Less than a quarter",LAST_YEAR:"Less than a year",CUSTOM:"Custom period",customPeriod:"From {0} to {1}",period:"Period: {0}"};var pr=function(t,e,r,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},ze=class extends Bt(Ut){constructor(){super(),this.key="ft:lastEdition",this.metadataDescriptors=[],this.addI18nContext(Ie,ki),this.addStore(D)}render(){var e,r,o,n;return _`<div part="container">
|
|
1934
1934
|
<div part="header">
|
|
1935
1935
|
<ft-typography variant="overline" part="label" id="label">
|
|
1936
1936
|
${this.header()}
|
|
@@ -1940,16 +1940,16 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1940
1940
|
<ft-radio value="anyTime" ?checked=${this.periodFilter===void 0||this.periodFilter.periodType===void 0}>${Ie.messages.anyTime()}</ft-radio>
|
|
1941
1941
|
${this.lessThanAWeek?_`<ft-radio ?checked=${((e=this.periodFilter)===null||e===void 0?void 0:e.periodType)=="LAST_WEEK"} value="LAST_WEEK">${Ie.messages.LAST_WEEK()}</ft-radio>`:B}
|
|
1942
1942
|
${this.lessThanAMonth?_`<ft-radio ?checked=${((r=this.periodFilter)===null||r===void 0?void 0:r.periodType)=="LAST_MONTH"} value="LAST_MONTH">${Ie.messages.LAST_MONTH()}</ft-radio>`:B}
|
|
1943
|
-
${this.lessThanAQuarter?_`<ft-radio ?checked=${((
|
|
1943
|
+
${this.lessThanAQuarter?_`<ft-radio ?checked=${((o=this.periodFilter)===null||o===void 0?void 0:o.periodType)=="LAST_QUARTER"} value="LAST_QUARTER">${Ie.messages.LAST_QUARTER()}</ft-radio>`:B}
|
|
1944
1944
|
${this.lessThanAYear?_`<ft-radio ?checked=${((n=this.periodFilter)===null||n===void 0?void 0:n.periodType)=="LAST_YEAR"} value="LAST_YEAR">${Ie.messages.LAST_YEAR()}</ft-radio>`:B}
|
|
1945
1945
|
</ft-radio-group>
|
|
1946
|
-
</div>`}setPeriodFilter(e){var r;let
|
|
1946
|
+
</div>`}setPeriodFilter(e){var r;let o=bi[e.detail];(r=this.stateManager)===null||r===void 0||r.setPeriodFilter(o===void 0?void 0:{key:this.key,periodType:o})}header(){var e,r,o;return this.key==="ft:lastEdition"?Ie.messages.label():(o=(r=(e=this.metadataDescriptors)===null||e===void 0?void 0:e.find(n=>n.key==this.key))===null||r===void 0?void 0:r.label)!==null&&o!==void 0?o:this.key}};ze.elementDefinitions={"ft-radio-group":$e,"ft-radio":ue,"ft-typography":Q};ze.styles=Id;pr([y({type:String})],ze.prototype,"key",void 0);pr([y({type:Boolean})],ze.prototype,"lessThanAWeek",void 0);pr([y({type:Boolean})],ze.prototype,"lessThanAMonth",void 0);pr([y({type:Boolean})],ze.prototype,"lessThanAQuarter",void 0);pr([y({type:Boolean})],ze.prototype,"lessThanAYear",void 0);pr([fe({store:"search",selector:t=>t.request.periodFilter})],ze.prototype,"periodFilter",void 0);pr([fe({store:D.name,selector:t=>{var e,r;return(r=(e=t.metadataConfiguration)===null||e===void 0?void 0:e.descriptors)!==null&&r!==void 0?r:[]}})],ze.prototype,"metadataDescriptors",void 0);F("ft-search-period-filter")(ze);var gs=function(t,e,r,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},Et=class extends Bt(Ut){get hasSomethingToDisplay(){var e;return this.searchInDocumentTitlesOnly||((e=this.facets)===null||e===void 0?void 0:e.some(r=>this.getSelectedValues(r).length>0))||this.periodFilter&&this.periodFilter.periodType}constructor(){super(),this.addI18nContext(zt,Ii),this.addI18nContext(Ie,ki)}render(){return this.hasSomethingToDisplay?_`
|
|
1947
1947
|
<div class="ft-search-selected-facets--container">
|
|
1948
|
-
${
|
|
1948
|
+
${yr(this.facets||[],e=>e.key,e=>{let r=this.getSelectedValues(e);return yr(r,o=>e.key+"-"+o,o=>this.renderFacet(e.key,e.label,r,o))})}
|
|
1949
1949
|
${this.renderSearchInDocumentTitlesOnly()}
|
|
1950
1950
|
${this.renderPeriodFilter()}
|
|
1951
1951
|
</div>
|
|
1952
|
-
`:B}renderFacet(e,r,
|
|
1952
|
+
`:B}renderFacet(e,r,o,n){let a=r+": "+this.getBreadcrumbFromValue(n),s=e.replace(":","-");return _`
|
|
1953
1953
|
<ft-tooltip inline text="${a}"
|
|
1954
1954
|
part="tooltips tooltip-${s}">
|
|
1955
1955
|
<ft-chip
|
|
@@ -1957,7 +1957,7 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1957
1957
|
removable
|
|
1958
1958
|
label="${a}"
|
|
1959
1959
|
iconLabel=${"Remove "+a}
|
|
1960
|
-
@icon-click=${()=>{var l;return(l=this.stateManager)===null||l===void 0?void 0:l.setFilter(e,
|
|
1960
|
+
@icon-click=${()=>{var l;return(l=this.stateManager)===null||l===void 0?void 0:l.setFilter(e,o.filter(c=>c!==n))}}
|
|
1961
1961
|
data-key="${e}"
|
|
1962
1962
|
data-value="${n}">
|
|
1963
1963
|
${this.getLabelFromValue(n)}
|
|
@@ -1979,11 +1979,11 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1979
1979
|
<ft-chip
|
|
1980
1980
|
part="ft-search-selected-facets ft-search-selected-facet-period-filter"
|
|
1981
1981
|
removable
|
|
1982
|
-
@icon-click=${()=>{var
|
|
1982
|
+
@icon-click=${()=>{var o;return(o=this.stateManager)===null||o===void 0?void 0:o.setPeriodFilter(void 0)}}>
|
|
1983
1983
|
${Ie.messages[this.periodFilter.periodType]()}
|
|
1984
1984
|
</ft-chip>
|
|
1985
1985
|
</ft-tooltip>
|
|
1986
|
-
`:B}};Et.elementDefinitions={"ft-chip":le,"ft-tooltip":te};Et.styles=
|
|
1986
|
+
`:B}};Et.elementDefinitions={"ft-chip":le,"ft-tooltip":te};Et.styles=xc;gs([fe({store:"search"})],Et.prototype,"facets",void 0);gs([fe({store:"search",selector:Eo})],Et.prototype,"searchInDocumentTitlesOnly",void 0);gs([fe({store:"search",selector:t=>t.request.periodFilter})],Et.prototype,"periodFilter",void 0);F("ft-search-selected-facets")(Et);})();
|
|
1987
1987
|
/*! Bundled license information:
|
|
1988
1988
|
|
|
1989
1989
|
@webcomponents/scoped-custom-element-registry/src/scoped-custom-element-registry.js:
|