@fluid-topics/ft-search-result-metadata 1.1.21 → 1.1.22
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.
|
@@ -58,7 +58,7 @@ const E={attribute:!0,type:String,converter:w,reflect:!1,hasChanged:S},$=(t=E,e,
|
|
|
58
58
|
* @license
|
|
59
59
|
* Copyright 2017 Google LLC
|
|
60
60
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
61
|
-
*/const P=globalThis,M=P.trustedTypes,F=M?M.createPolicy("lit-html",{createHTML:t=>t}):void 0,
|
|
61
|
+
*/const P=globalThis,M=P.trustedTypes,F=M?M.createPolicy("lit-html",{createHTML:t=>t}):void 0,K="$lit$",B=`lit$${(Math.random()+"").slice(9)}$`,D="?"+B,z=`<${D}>`,T=document,Z=()=>T.createComment(""),_=t=>null===t||"object"!=typeof t&&"function"!=typeof t,H=Array.isArray,G=t=>H(t)||"function"==typeof t?.[Symbol.iterator],V="[ \t\n\f\r]",q=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Y=/-->/g,X=/>/g,J=RegExp(`>|${V}(?:([^\\s"'>=/]+)(${V}*=${V}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),Q=/'/g,tt=/"/g,et=/^(?:script|style|textarea|title)$/i,ot=(t=>(e,...o)=>({_$litType$:t,strings:e,values:o}))(1),it=Symbol.for("lit-noChange"),rt=Symbol.for("lit-nothing"),nt=new WeakMap,at=T.createTreeWalker(T,129);function st(t,e){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==F?F.createHTML(e):e}const lt=(t,e)=>{const o=t.length-1,i=[];let r,n=2===e?"<svg>":"",a=q;for(let e=0;e<o;e++){const o=t[e];let s,l,c=-1,f=0;for(;f<o.length&&(a.lastIndex=f,l=a.exec(o),null!==l);)f=a.lastIndex,a===q?"!--"===l[1]?a=Y:void 0!==l[1]?a=X:void 0!==l[2]?(et.test(l[2])&&(r=RegExp("</"+l[2],"g")),a=J):void 0!==l[3]&&(a=J):a===J?">"===l[0]?(a=r??q,c=-1):void 0===l[1]?c=-2:(c=a.lastIndex-l[2].length,s=l[1],a=void 0===l[3]?J:'"'===l[3]?tt:Q):a===tt||a===Q?a=J:a===Y||a===X?a=q:(a=J,r=void 0);const h=a===J&&t[e+1].startsWith("/>")?" ":"";n+=a===q?o+z:c>=0?(i.push(s),o.slice(0,c)+K+o.slice(c)+B+h):o+B+(-2===c?e:h)}return[st(t,n+(t[o]||"<?>")+(2===e?"</svg>":"")),i]};let ct=class t{constructor({strings:e,_$litType$:o},i){let r;this.parts=[];let n=0,a=0;const s=e.length-1,l=this.parts,[c,f]=lt(e,o);if(this.el=t.createElement(c,i),at.currentNode=this.el.content,2===o){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes)}for(;null!==(r=at.nextNode())&&l.length<s;){if(1===r.nodeType){if(r.hasAttributes())for(const t of r.getAttributeNames())if(t.endsWith(K)){const e=f[a++],o=r.getAttribute(t).split(B),i=/([.?@])?(.*)/.exec(e);l.push({type:1,index:n,name:i[2],strings:o,ctor:"."===i[1]?dt:"?"===i[1]?yt:"@"===i[1]?gt:pt}),r.removeAttribute(t)}else t.startsWith(B)&&(l.push({type:6,index:n}),r.removeAttribute(t));if(et.test(r.tagName)){const t=r.textContent.split(B),e=t.length-1;if(e>0){r.textContent=M?M.emptyScript:"";for(let o=0;o<e;o++)r.append(t[o],Z()),at.nextNode(),l.push({type:2,index:++n});r.append(t[e],Z())}}}else if(8===r.nodeType)if(r.data===D)l.push({type:2,index:n});else{let t=-1;for(;-1!==(t=r.data.indexOf(B,t+1));)l.push({type:7,index:n}),t+=B.length-1}n++}}static createElement(t,e){const o=T.createElement("template");return o.innerHTML=t,o}};function ft(t,e,o=t,i){if(e===it)return e;let r=void 0!==i?o._$Co?.[i]:o._$Cl;const n=_(e)?void 0:e._$litDirective$;return r?.constructor!==n&&(r?._$AO?.(!1),void 0===n?r=void 0:(r=new n(t),r._$AT(t,o,i)),void 0!==i?(o._$Co??=[])[i]=r:o._$Cl=r),void 0!==r&&(e=ft(t,r._$AS(t,e.values),r,i)),e}let ht=class{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:e},parts:o}=this._$AD,i=(t?.creationScope??T).importNode(e,!0);at.currentNode=i;let r=at.nextNode(),n=0,a=0,s=o[0];for(;void 0!==s;){if(n===s.index){let e;2===s.type?e=new ut(r,r.nextSibling,this,t):1===s.type?e=new s.ctor(r,s.name,s.strings,this,t):6===s.type&&(e=new bt(r,this,t)),this._$AV.push(e),s=o[++a]}n!==s?.index&&(r=at.nextNode(),n++)}return at.currentNode=T,i}p(t){let e=0;for(const o of this._$AV)void 0!==o&&(void 0!==o.strings?(o._$AI(t,o,e),e+=o.strings.length-2):o._$AI(t[e])),e++}},ut=class t{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,o,i){this.type=2,this._$AH=rt,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=o,this.options=i,this._$Cv=i?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===t?.nodeType&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=ft(this,t,e),_(t)?t===rt||null==t||""===t?(this._$AH!==rt&&this._$AR(),this._$AH=rt):t!==this._$AH&&t!==it&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):G(t)?this.T(t):this._(t)}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}_(t){this._$AH!==rt&&_(this._$AH)?this._$AA.nextSibling.data=t:this.$(T.createTextNode(t)),this._$AH=t}g(t){const{values:e,_$litType$:o}=t,i="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=ct.createElement(st(o.h,o.h[0]),this.options)),o);if(this._$AH?._$AD===i)this._$AH.p(e);else{const t=new ht(i,this),o=t.u(this.options);t.p(e),this.$(o),this._$AH=t}}_$AC(t){let e=nt.get(t.strings);return void 0===e&&nt.set(t.strings,e=new ct(t)),e}T(e){H(this._$AH)||(this._$AH=[],this._$AR());const o=this._$AH;let i,r=0;for(const n of e)r===o.length?o.push(i=new t(this.k(Z()),this.k(Z()),this,this.options)):i=o[r],i._$AI(n),r++;r<o.length&&(this._$AR(i&&i._$AB.nextSibling,r),o.length=r)}_$AR(t=this._$AA.nextSibling,e){for(this._$AP?.(!1,!0,e);t&&t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){void 0===this._$AM&&(this._$Cv=t,this._$AP?.(t))}},pt=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,o,i,r){this.type=1,this._$AH=rt,this._$AN=void 0,this.element=t,this.name=e,this._$AM=i,this.options=r,o.length>2||""!==o[0]||""!==o[1]?(this._$AH=Array(o.length-1).fill(new String),this.strings=o):this._$AH=rt}_$AI(t,e=this,o,i){const r=this.strings;let n=!1;if(void 0===r)t=ft(this,t,e,0),n=!_(t)||t!==this._$AH&&t!==it,n&&(this._$AH=t);else{const i=t;let a,s;for(t=r[0],a=0;a<r.length-1;a++)s=ft(this,i[o+a],e,a),s===it&&(s=this._$AH[a]),n||=!_(s)||s!==this._$AH[a],s===rt?t=rt:t!==rt&&(t+=(s??"")+r[a+1]),this._$AH[a]=s}n&&!i&&this.O(t)}O(t){t===rt?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},dt=class extends pt{constructor(){super(...arguments),this.type=3}O(t){this.element[this.name]=t===rt?void 0:t}},yt=class extends pt{constructor(){super(...arguments),this.type=4}O(t){this.element.toggleAttribute(this.name,!!t&&t!==rt)}},gt=class extends pt{constructor(t,e,o,i,r){super(t,e,o,i,r),this.type=5}_$AI(t,e=this){if((t=ft(this,t,e,0)??rt)===it)return;const o=this._$AH,i=t===rt&&o!==rt||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,r=t!==rt&&(o===rt||i);i&&this.element.removeEventListener(this.name,this,o),r&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){"function"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}},bt=class{constructor(t,e,o){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=o}get _$AU(){return this._$AM._$AU}_$AI(t){ft(this,t)}};const mt={j:K,P:B,A:D,C:1,M:lt,L:ht,R:G,V:ft,D:ut,I:pt,H:yt,N:gt,U:dt,B:bt},vt=P.litHtmlPolyfillSupport;vt?.(ct,ut),(P.litHtmlVersions??=[]).push("3.1.0");
|
|
62
62
|
/**
|
|
63
63
|
* @license
|
|
64
64
|
* Copyright 2019 Google LLC
|
|
@@ -69,7 +69,7 @@ const xt=globalThis,Ot=xt.ShadowRoot&&(void 0===xt.ShadyCSS||xt.ShadyCSS.nativeS
|
|
|
69
69
|
* @license
|
|
70
70
|
* Copyright 2017 Google LLC
|
|
71
71
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
72
|
-
*/,{is:Rt,defineProperty:kt,getOwnPropertyDescriptor:Ut,getOwnPropertyNames:It,getOwnPropertySymbols:Lt,getPrototypeOf:At}=Object,Wt=globalThis,jt=Wt.trustedTypes,Pt=jt?jt.emptyScript:"",Mt=Wt.reactiveElementPolyfillSupport,Ft=(t,e)=>t,
|
|
72
|
+
*/,{is:Rt,defineProperty:kt,getOwnPropertyDescriptor:Ut,getOwnPropertyNames:It,getOwnPropertySymbols:Lt,getPrototypeOf:At}=Object,Wt=globalThis,jt=Wt.trustedTypes,Pt=jt?jt.emptyScript:"",Mt=Wt.reactiveElementPolyfillSupport,Ft=(t,e)=>t,Kt={toAttribute(t,e){switch(e){case Boolean:t=t?Pt:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let o=t;switch(e){case Boolean:o=null!==t;break;case Number:o=null===t?null:Number(t);break;case Object:case Array:try{o=JSON.parse(t)}catch(t){o=null}}return o}},Bt=(t,e)=>!Rt(t,e),Dt={attribute:!0,type:String,converter:Kt,reflect:!1,hasChanged:Bt};Symbol.metadata??=Symbol("metadata"),Wt.litPropertyMetadata??=new WeakMap;let zt=class extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=Dt){if(e.state&&(e.attribute=!1),this._$Ei(),this.elementProperties.set(t,e),!e.noAccessor){const o=Symbol(),i=this.getPropertyDescriptor(t,o,e);void 0!==i&&kt(this.prototype,t,i)}}static getPropertyDescriptor(t,e,o){const{get:i,set:r}=Ut(this.prototype,t)??{get(){return this[e]},set(t){this[e]=t}};return{get(){return i?.call(this)},set(e){const n=i?.call(this);r.call(this,e),this.requestUpdate(t,n,o)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??Dt}static _$Ei(){if(this.hasOwnProperty(Ft("elementProperties")))return;const t=At(this);t.finalize(),void 0!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(Ft("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Ft("properties"))){const t=this.properties,e=[...It(t),...Lt(t)];for(const o of e)this.createProperty(o,t[o])}const t=this[Symbol.metadata];if(null!==t){const e=litPropertyMetadata.get(t);if(void 0!==e)for(const[t,o]of e)this.elementProperties.set(t,o)}this._$Eh=new Map;for(const[t,e]of this.elementProperties){const o=this._$Eu(t,e);void 0!==o&&this._$Eh.set(o,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const o=new Set(t.flat(1/0).reverse());for(const t of o)e.unshift($t(t))}else void 0!==t&&e.push($t(t));return e}static _$Eu(t,e){const o=e.attribute;return!1===o?void 0:"string"==typeof o?o:"string"==typeof t?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$Eg=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$ES(),this.requestUpdate(),this.constructor.l?.forEach((t=>t(this)))}addController(t){(this._$E_??=new Set).add(t),void 0!==this.renderRoot&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$E_?.delete(t)}_$ES(){const t=new Map,e=this.constructor.elementProperties;for(const o of e.keys())this.hasOwnProperty(o)&&(t.set(o,this[o]),delete this[o]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return((t,e)=>{if(Ot)t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet));else for(const o of e){const e=document.createElement("style"),i=xt.litNonce;void 0!==i&&e.setAttribute("nonce",i),e.textContent=o.cssText,t.appendChild(e)}})(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$E_?.forEach((t=>t.hostConnected?.()))}enableUpdating(t){}disconnectedCallback(){this._$E_?.forEach((t=>t.hostDisconnected?.()))}attributeChangedCallback(t,e,o){this._$AK(t,o)}_$EO(t,e){const o=this.constructor.elementProperties.get(t),i=this.constructor._$Eu(t,o);if(void 0!==i&&!0===o.reflect){const r=(void 0!==o.converter?.toAttribute?o.converter:Kt).toAttribute(e,o.type);this._$Em=t,null==r?this.removeAttribute(i):this.setAttribute(i,r),this._$Em=null}}_$AK(t,e){const o=this.constructor,i=o._$Eh.get(t);if(void 0!==i&&this._$Em!==i){const t=o.getPropertyOptions(i),r="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==t.converter?.fromAttribute?t.converter:Kt;this._$Em=i,this[i]=r.fromAttribute(e,t.type),this._$Em=null}}requestUpdate(t,e,o,i=!1,r){if(void 0!==t){if(o??=this.constructor.getPropertyOptions(t),!(o.hasChanged??Bt)(i?r:this[t],e))return;this.C(t,e,o)}!1===this.isUpdatePending&&(this._$Eg=this._$EP())}C(t,e,o){this._$AL.has(t)||this._$AL.set(t,e),!0===o.reflect&&this._$Em!==t&&(this._$Ej??=new Set).add(t)}async _$EP(){this.isUpdatePending=!0;try{await this._$Eg}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[t,e]of this._$Ep)this[t]=e;this._$Ep=void 0}const t=this.constructor.elementProperties;if(t.size>0)for(const[e,o]of t)!0!==o.wrapped||this._$AL.has(e)||void 0===this[e]||this.C(e,this[e],o)}let t=!1;const e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),this._$E_?.forEach((t=>t.hostUpdate?.())),this.update(e)):this._$ET()}catch(e){throw t=!1,this._$ET(),e}t&&this._$AE(e)}willUpdate(t){}_$AE(t){this._$E_?.forEach((t=>t.hostUpdated?.())),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$ET(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$Eg}shouldUpdate(t){return!0}update(t){this._$Ej&&=this._$Ej.forEach((t=>this._$EO(t,this[t]))),this._$ET()}updated(t){}firstUpdated(t){}};zt.elementStyles=[],zt.shadowRootOptions={mode:"open"},zt[Ft("elementProperties")]=new Map,zt[Ft("finalized")]=new Map,Mt?.({ReactiveElement:zt}),(Wt.reactiveElementVersions??=[]).push("2.0.2");
|
|
73
73
|
/**
|
|
74
74
|
* @license
|
|
75
75
|
* Copyright 2017 Google LLC
|
|
@@ -86,7 +86,7 @@ let Se=class extends zt{constructor(){super(...arguments),this.renderOptions={ho
|
|
|
86
86
|
* @license
|
|
87
87
|
* Copyright 2019 Google LLC
|
|
88
88
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
89
|
-
*/class je extends Se{createRenderRoot(){const t=this.constructor;t.elementDefinitions&&!t.registry&&(t.registry=new CustomElementRegistry,Object.entries(t.elementDefinitions).forEach((([e,o])=>t.registry.define(e,o))));const e={...t.shadowRootOptions,customElements:t.registry},o=this.renderOptions.creationScope=this.attachShadow(e);return((t,e)=>{We?t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):e.forEach((e=>{const o=document.createElement("style"),i=Ae.litNonce;void 0!==i&&o.setAttribute("nonce",i),o.textContent=e.cssText,t.appendChild(o)}))})(o,t.elementStyles),o}}var Pe,Me=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};const Fe=Symbol("constructorPrototype"),
|
|
89
|
+
*/class je extends Se{createRenderRoot(){const t=this.constructor;t.elementDefinitions&&!t.registry&&(t.registry=new CustomElementRegistry,Object.entries(t.elementDefinitions).forEach((([e,o])=>t.registry.define(e,o))));const e={...t.shadowRootOptions,customElements:t.registry},o=this.renderOptions.creationScope=this.attachShadow(e);return((t,e)=>{We?t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):e.forEach((e=>{const o=document.createElement("style"),i=Ae.litNonce;void 0!==i&&o.setAttribute("nonce",i),o.textContent=e.cssText,t.appendChild(o)}))})(o,t.elementStyles),o}}var Pe,Me=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};const Fe=Symbol("constructorPrototype"),Ke=Symbol("constructorName"),Be=Symbol("exportpartsDebouncer");class De extends je{constructor(){super(),this[Pe]=new r(5),this[Ke]=this.constructor.name,this[Fe]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Ke]&&Object.setPrototypeOf(this,this[Fe])}updated(t){super.updated(t),setTimeout((()=>{this.contentAvailableCallback(t),this.scheduleExportpartsUpdate()}),0)}contentAvailableCallback(t){var e,o;if((null!==(o=null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelectorAll(".ft-lit-element--custom-stylesheet"))&&void 0!==o?o:[]).forEach((t=>t.remove())),this.customStylesheet){const t=document.createElement("style");t.classList.add("ft-lit-element--custom-stylesheet"),t.innerHTML=this.customStylesheet,this.shadowRoot.append(t)}}scheduleExportpartsUpdate(){this[Be].run((()=>{var t;(null===(t=this.exportpartsPrefix)||void 0===t?void 0:t.trim())?this.setExportpartsAttribute([this.exportpartsPrefix]):null!=this.exportpartsPrefixes&&this.exportpartsPrefixes.length>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)}))}setExportpartsAttribute(t){var e,o,i,r,n,a;const s=t=>null!=t&&t.trim().length>0,l=t.filter(s).map((t=>t.trim()));if(0===l.length)return void this.removeAttribute("exportparts");const c=new Set;for(let t of null!==(o=null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelectorAll("[part],[exportparts]"))&&void 0!==o?o:[]){const e=null!==(r=null===(i=t.getAttribute("part"))||void 0===i?void 0:i.split(" "))&&void 0!==r?r:[],o=null!==(a=null===(n=t.getAttribute("exportparts"))||void 0===n?void 0:n.split(",").map((t=>t.split(":")[1])))&&void 0!==a?a:[];new Array(...e,...o).filter(s).map((t=>t.trim())).forEach((t=>c.add(t)))}if(0===c.size)return void this.removeAttribute("exportparts");const f=[...c.values()].flatMap((t=>l.map((e=>`${t}:${e}--${t}`))));this.setAttribute("exportparts",[...this.part,...f].join(", "))}}Pe=Be,Me([R()],De.prototype,"exportpartsPrefix",void 0),Me([j([])],De.prototype,"exportpartsPrefixes",void 0),Me([R()],De.prototype,"customStylesheet",void 0);const ze=Ee.create("--ft-utils-highlight-html-background-color","","COLOR","#FFF26E");Et`
|
|
90
90
|
.highlight-html-match {
|
|
91
91
|
background: ${ze};
|
|
92
92
|
}
|
|
@@ -122,7 +122,7 @@ let Se=class extends zt{constructor(){super(...arguments),this.renderOptions={ho
|
|
|
122
122
|
display: inline-block;
|
|
123
123
|
width: 0;
|
|
124
124
|
}
|
|
125
|
-
`;class _e{constructor(t,e){this.defaultLabels=t,this.labels=e}resolve(t,...e){var o,i;t=this.resolvePluralKey(t,e);let r=null!==(i=null!==(o=this.labels[t])&&void 0!==o?o:this.defaultLabels[t])&&void 0!==i?i:"";return e.forEach(((t,e)=>r=r.replace(new RegExp(`\\{${e}([^}]*)\\}`,"g"),((e,o)=>this.formatValue(t,o))))),r}resolvePluralKey(t,e){for(let o of e)if("number"==typeof o){const e=`${String(t)}[\\=${o}]`;if(e in this.labels||e in this.defaultLabels)return e}return t}formatValue(t,e){return t instanceof Date?this.formatDate(t,e):null!=t?t:""}formatDate(t,e){const o=o=>(null==e?void 0:e.includes("date"))?t.toLocaleDateString(o):(null==e?void 0:e.includes("time"))?t.toLocaleTimeString(o):t.toLocaleString(o);try{return o(document.documentElement.lang)}catch(t){return o()}}}const He=t=>{const e=null!=t?t:{};return(t,o)=>{var i;const r={hasChanged:(t,e)=>!A(t,e),attribute:!1,...e};R(r)(t,o);const n=t.constructor;n.reduxProperties=new Map(n.reduxProperties),n.reduxProperties.set(o,{selector:null!==(i=e.selector)&&void 0!==i?i:t=>t[o],store:e.store})}};class Ge{constructor(){this.queue=[]}add(t,e=!1){e&&(this.queue=this.queue.filter((e=>e.type!==t.type))),this.queue.push(t)}consume(t){const e=this.queue.find((e=>e.type===t));return e&&(this.queue=this.queue.filter((t=>t!==e))),e}}function Ve(t){var e;return null!==(e=null==t?void 0:t.isFtReduxStore)&&void 0!==e&&e}var qe,Ye,Xe;const Je=Symbol("internalReduxEventsUnsubscribers"),Qe=Symbol("internalStoresUnsubscribers"),to=Symbol("internalStores");class eo extends De{constructor(){super(...arguments),this[qe]=new Map,this[Ye]=new Map,this[Xe]=[]}get reduxConstructor(){return this.constructor}update(t){super.update(t),[...this.reduxConstructor.reduxReactiveProperties].some((e=>t.has(e)))&&this.updateFromStores()}getUnnamedStore(){if(this[to].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[to].values()][0]}getStore(t){return null==t?this.getUnnamedStore():this[to].get(t)}addStore(t,e){var o;e=null!==(o=null!=e?e:Ve(t)?t.name:void 0)&&void 0!==o?o:"default-store",this.unsubscribeFromStore(e),this.setupStore(e,t)}removeStore(t){const e="string"==typeof t?t:t.name;this.unsubscribeFromStore(e),this[to].delete(e)}setupStore(t,e){this[to].set(t,e),this.subscribeToStore(t,e),this.updateFromStores()}setupStores(){this.unsubscribeFromStores(),this[to].forEach(((t,e)=>this.subscribeToStore(e,t))),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach(((t,e)=>{const o=this.constructor.getPropertyOptions(e);if(!(null==o?void 0:o.attribute)||!this.hasAttribute("string"==typeof(null==o?void 0:o.attribute)?o.attribute:e)){const o=this.getStore(t.store);o&&(t.store?this[Qe].has(t.store):this[Qe].size>0)&&(this[e]=t.selector(o.getState(),this))}}))}subscribeToStore(t,e){var o;this[Qe].set(t,e.subscribe((()=>this.updateFromStores()))),Ve(e)&&e.eventBus&&(null===(o=this.reduxConstructor.reduxEventListeners)||void 0===o||o.forEach(((t,o)=>{if("function"==typeof this[o]&&(!t.store||e.name===t.store)){const i=t=>this[o](t);e.eventBus.addEventListener(t.eventName,i),this[Je].push((()=>e.eventBus.removeEventListener(t.eventName,i)))}}))),this.onStoreAvailable(t)}unsubscribeFromStores(){this[Qe].forEach(((t,e)=>this.unsubscribeFromStore(e))),this[Je].forEach((t=>t())),this[Je]=[]}unsubscribeFromStore(t){this[Qe].has(t)&&this[Qe].get(t)(),this[Qe].delete(t)}onStoreAvailable(t){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}function oo(t){for(var e=arguments.length,o=Array(e>1?e-1:0),i=1;i<e;i++)o[i-1]=arguments[i];throw Error("[Immer] minified error nr: "+t+(o.length?" "+o.map((function(t){return"'"+t+"'"})).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function io(t){return!!t&&!!t[Zo]}function ro(t){var e;return!!t&&(function(t){if(!t||"object"!=typeof t)return!1;var e=Object.getPrototypeOf(t);if(null===e)return!0;var o=Object.hasOwnProperty.call(e,"constructor")&&e.constructor;return o===Object||"function"==typeof o&&Function.toString.call(o)===_o}(t)||Array.isArray(t)||!!t[To]||!!(null===(e=t.constructor)||void 0===e?void 0:e[To])||fo(t)||ho(t))}function no(t,e,o){void 0===o&&(o=!1),0===ao(t)?(o?Object.keys:Ho)(t).forEach((function(i){o&&"symbol"==typeof i||e(i,t[i],t)})):t.forEach((function(o,i){return e(i,o,t)}))}function ao(t){var e=t[Zo];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:fo(t)?2:ho(t)?3:0}function so(t,e){return 2===ao(t)?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function lo(t,e,o){var i=ao(t);2===i?t.set(e,o):3===i?t.add(o):t[e]=o}function co(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}function fo(t){return Bo&&t instanceof Map}function ho(t){return Ko&&t instanceof Set}function uo(t){return t.o||t.t}function po(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=Go(t);delete e[Zo];for(var o=Ho(e),i=0;i<o.length;i++){var r=o[i],n=e[r];!1===n.writable&&(n.writable=!0,n.configurable=!0),(n.get||n.set)&&(e[r]={configurable:!0,writable:!0,enumerable:n.enumerable,value:t[r]})}return Object.create(Object.getPrototypeOf(t),e)}function yo(t,e){return void 0===e&&(e=!1),bo(t)||io(t)||!ro(t)||(ao(t)>1&&(t.set=t.add=t.clear=t.delete=go),Object.freeze(t),e&&no(t,(function(t,e){return yo(e,!0)}),!0)),t}function go(){oo(2)}function bo(t){return null==t||"object"!=typeof t||Object.isFrozen(t)}function mo(t){var e=Vo[t];return e||oo(18,t),e}function vo(){return Mo}function xo(t,e){e&&(mo("Patches"),t.u=[],t.s=[],t.v=e)}function Oo(t){wo(t),t.p.forEach(No),t.p=null}function wo(t){t===Mo&&(Mo=t.l)}function So(t){return Mo={p:[],l:Mo,h:t,m:!0,_:0}}function No(t){var e=t[Zo];0===e.i||1===e.i?e.j():e.g=!0}function Co(t,e){e._=e.p.length;var o=e.p[0],i=void 0!==t&&t!==o;return e.h.O||mo("ES5").S(e,t,i),i?(o[Zo].P&&(Oo(e),oo(4)),ro(t)&&(t=Eo(e,t),e.l||Ro(e,t)),e.u&&mo("Patches").M(o[Zo].t,t,e.u,e.s)):t=Eo(e,o,[]),Oo(e),e.u&&e.v(e.u,e.s),t!==zo?t:void 0}function Eo(t,e,o){if(bo(e))return e;var i=e[Zo];if(!i)return no(e,(function(r,n){return $o(t,i,e,r,n,o)}),!0),e;if(i.A!==t)return e;if(!i.P)return Ro(t,i.t,!0),i.t;if(!i.I){i.I=!0,i.A._--;var r=4===i.i||5===i.i?i.o=po(i.k):i.o,n=r,a=!1;3===i.i&&(n=new Set(r),r.clear(),a=!0),no(n,(function(e,n){return $o(t,i,r,e,n,o,a)})),Ro(t,r,!1),o&&t.u&&mo("Patches").N(i,o,t.u,t.s)}return i.o}function $o(t,e,o,i,r,n,a){if(io(r)){var s=Eo(t,r,n&&e&&3!==e.i&&!so(e.R,i)?n.concat(i):void 0);if(lo(o,i,s),!io(s))return;t.m=!1}else a&&o.add(r);if(ro(r)&&!bo(r)){if(!t.h.D&&t._<1)return;Eo(t,r),e&&e.A.l||Ro(t,r)}}function Ro(t,e,o){void 0===o&&(o=!1),!t.l&&t.h.D&&t.m&&yo(e,o)}function ko(t,e){var o=t[Zo];return(o?uo(o):t)[e]}function Uo(t,e){if(e in t)for(var o=Object.getPrototypeOf(t);o;){var i=Object.getOwnPropertyDescriptor(o,e);if(i)return i;o=Object.getPrototypeOf(o)}}function Io(t){t.P||(t.P=!0,t.l&&Io(t.l))}function Lo(t){t.o||(t.o=po(t.t))}function Ao(t,e,o){var i=fo(e)?mo("MapSet").F(e,o):ho(e)?mo("MapSet").T(e,o):t.O?function(t,e){var o=Array.isArray(t),i={i:o?1:0,A:e?e.A:vo(),P:!1,I:!1,R:{},l:e,t,k:null,o:null,j:null,C:!1},r=i,n=qo;o&&(r=[i],n=Yo);var a=Proxy.revocable(r,n),s=a.revoke,l=a.proxy;return i.k=l,i.j=s,l}(e,o):mo("ES5").J(e,o);return(o?o.A:vo()).p.push(i),i}function Wo(t){return io(t)||oo(22,t),function t(e){if(!ro(e))return e;var o,i=e[Zo],r=ao(e);if(i){if(!i.P&&(i.i<4||!mo("ES5").K(i)))return i.t;i.I=!0,o=jo(e,r),i.I=!1}else o=jo(e,r);return no(o,(function(e,r){i&&function(t,e){return 2===ao(t)?t.get(e):t[e]}(i.t,e)===r||lo(o,e,t(r))})),3===r?new Set(o):o}(t)}function jo(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return po(t)}qe=Qe,Ye=to,Xe=Je,eo.reduxProperties=new Map,eo.reduxReactiveProperties=new Set,eo.reduxEventListeners=new Map;var Po,Mo,Fo="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),Bo="undefined"!=typeof Map,Ko="undefined"!=typeof Set,Do="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,zo=Fo?Symbol.for("immer-nothing"):((Po={})["immer-nothing"]=!0,Po),To=Fo?Symbol.for("immer-draftable"):"__$immer_draftable",Zo=Fo?Symbol.for("immer-state"):"__$immer_state",_o=""+Object.prototype.constructor,Ho="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,Go=Object.getOwnPropertyDescriptors||function(t){var e={};return Ho(t).forEach((function(o){e[o]=Object.getOwnPropertyDescriptor(t,o)})),e},Vo={},qo={get:function(t,e){if(e===Zo)return t;var o=uo(t);if(!so(o,e))return function(t,e,o){var i,r=Uo(e,o);return r?"value"in r?r.value:null===(i=r.get)||void 0===i?void 0:i.call(t.k):void 0}(t,o,e);var i=o[e];return t.I||!ro(i)?i:i===ko(t.t,e)?(Lo(t),t.o[e]=Ao(t.A.h,i,t)):i},has:function(t,e){return e in uo(t)},ownKeys:function(t){return Reflect.ownKeys(uo(t))},set:function(t,e,o){var i=Uo(uo(t),e);if(null==i?void 0:i.set)return i.set.call(t.k,o),!0;if(!t.P){var r=ko(uo(t),e),n=null==r?void 0:r[Zo];if(n&&n.t===o)return t.o[e]=o,t.R[e]=!1,!0;if(co(o,r)&&(void 0!==o||so(t.t,e)))return!0;Lo(t),Io(t)}return t.o[e]===o&&(void 0!==o||e in t.o)||Number.isNaN(o)&&Number.isNaN(t.o[e])||(t.o[e]=o,t.R[e]=!0),!0},deleteProperty:function(t,e){return void 0!==ko(t.t,e)||e in t.t?(t.R[e]=!1,Lo(t),Io(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var o=uo(t),i=Reflect.getOwnPropertyDescriptor(o,e);return i?{writable:!0,configurable:1!==t.i||"length"!==e,enumerable:i.enumerable,value:o[e]}:i},defineProperty:function(){oo(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){oo(12)}},Yo={};no(qo,(function(t,e){Yo[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}})),Yo.deleteProperty=function(t,e){return Yo.set.call(this,t,e,void 0)},Yo.set=function(t,e,o){return qo.set.call(this,t[0],e,o,t[0])};var Xo=function(){function t(t){var e=this;this.O=Do,this.D=!0,this.produce=function(t,o,i){if("function"==typeof t&&"function"!=typeof o){var r=o;o=t;var n=e;return function(t){var e=this;void 0===t&&(t=r);for(var i=arguments.length,a=Array(i>1?i-1:0),s=1;s<i;s++)a[s-1]=arguments[s];return n.produce(t,(function(t){var i;return(i=o).call.apply(i,[e,t].concat(a))}))}}var a;if("function"!=typeof o&&oo(6),void 0!==i&&"function"!=typeof i&&oo(7),ro(t)){var s=So(e),l=Ao(e,t,void 0),c=!0;try{a=o(l),c=!1}finally{c?Oo(s):wo(s)}return"undefined"!=typeof Promise&&a instanceof Promise?a.then((function(t){return xo(s,i),Co(t,s)}),(function(t){throw Oo(s),t})):(xo(s,i),Co(a,s))}if(!t||"object"!=typeof t){if(void 0===(a=o(t))&&(a=t),a===zo&&(a=void 0),e.D&&yo(a,!0),i){var f=[],h=[];mo("Patches").M(t,a,f,h),i(f,h)}return a}oo(21,t)},this.produceWithPatches=function(t,o){if("function"==typeof t)return function(o){for(var i=arguments.length,r=Array(i>1?i-1:0),n=1;n<i;n++)r[n-1]=arguments[n];return e.produceWithPatches(o,(function(e){return t.apply(void 0,[e].concat(r))}))};var i,r,n=e.produce(t,o,(function(t,e){i=t,r=e}));return"undefined"!=typeof Promise&&n instanceof Promise?n.then((function(t){return[t,i,r]})):[n,i,r]},"boolean"==typeof(null==t?void 0:t.useProxies)&&this.setUseProxies(t.useProxies),"boolean"==typeof(null==t?void 0:t.autoFreeze)&&this.setAutoFreeze(t.autoFreeze)}var e=t.prototype;return e.createDraft=function(t){ro(t)||oo(8),io(t)&&(t=Wo(t));var e=So(this),o=Ao(this,t,void 0);return o[Zo].C=!0,wo(e),o},e.finishDraft=function(t,e){var o=(t&&t[Zo]).A;return xo(o,e),Co(void 0,o)},e.setAutoFreeze=function(t){this.D=t},e.setUseProxies=function(t){t&&!Do&&oo(20),this.O=t},e.applyPatches=function(t,e){var o;for(o=e.length-1;o>=0;o--){var i=e[o];if(0===i.path.length&&"replace"===i.op){t=i.value;break}}o>-1&&(e=e.slice(o+1));var r=mo("Patches").$;return io(t)?r(t,e):this.produce(t,(function(t){return r(t,e)}))},t}(),Jo=new Xo,Qo=Jo.produce;function ti(t){return ti="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ti(t)}function ei(t){var e=function(t,e){if("object"!==ti(t)||null===t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var i=o.call(t,e||"default");if("object"!==ti(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===ti(e)?e:String(e)}function oi(t,e,o){return(e=ei(e))in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}function ii(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),o.push.apply(o,i)}return o}function ri(t){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};e%2?ii(Object(o),!0).forEach((function(e){oi(t,e,o[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):ii(Object(o)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))}))}return t}function ni(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. "}Jo.produceWithPatches.bind(Jo),Jo.setAutoFreeze.bind(Jo),Jo.setUseProxies.bind(Jo),Jo.applyPatches.bind(Jo),Jo.createDraft.bind(Jo),Jo.finishDraft.bind(Jo);var ai="function"==typeof Symbol&&Symbol.observable||"@@observable",si=function(){return Math.random().toString(36).substring(7).split("").join(".")},li={INIT:"@@redux/INIT"+si(),REPLACE:"@@redux/REPLACE"+si(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+si()}};function ci(t,e,o){var i;if("function"==typeof e&&"function"==typeof o||"function"==typeof o&&"function"==typeof arguments[3])throw new Error(ni(0));if("function"==typeof e&&void 0===o&&(o=e,e=void 0),void 0!==o){if("function"!=typeof o)throw new Error(ni(1));return o(ci)(t,e)}if("function"!=typeof t)throw new Error(ni(2));var r=t,n=e,a=[],s=a,l=!1;function c(){s===a&&(s=a.slice())}function f(){if(l)throw new Error(ni(3));return n}function h(t){if("function"!=typeof t)throw new Error(ni(4));if(l)throw new Error(ni(5));var e=!0;return c(),s.push(t),function(){if(e){if(l)throw new Error(ni(6));e=!1,c();var o=s.indexOf(t);s.splice(o,1),a=null}}}function u(t){if(!function(t){if("object"!=typeof t||null===t)return!1;for(var e=t;null!==Object.getPrototypeOf(e);)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}(t))throw new Error(ni(7));if(void 0===t.type)throw new Error(ni(8));if(l)throw new Error(ni(9));try{l=!0,n=r(n,t)}finally{l=!1}for(var e=a=s,o=0;o<e.length;o++){(0,e[o])()}return t}return u({type:li.INIT}),(i={dispatch:u,subscribe:h,getState:f,replaceReducer:function(t){if("function"!=typeof t)throw new Error(ni(10));r=t,u({type:li.REPLACE})}})[ai]=function(){var t,e=h;return(t={subscribe:function(t){if("object"!=typeof t||null===t)throw new Error(ni(11));function o(){t.next&&t.next(f())}return o(),{unsubscribe:e(o)}}})[ai]=function(){return this},t},i}function fi(t){for(var e=Object.keys(t),o={},i=0;i<e.length;i++){var r=e[i];"function"==typeof t[r]&&(o[r]=t[r])}var n,a=Object.keys(o);try{!function(t){Object.keys(t).forEach((function(e){var o=t[e];if(void 0===o(void 0,{type:li.INIT}))throw new Error(ni(12));if(void 0===o(void 0,{type:li.PROBE_UNKNOWN_ACTION()}))throw new Error(ni(13))}))}(o)}catch(t){n=t}return function(t,e){if(void 0===t&&(t={}),n)throw n;for(var i=!1,r={},s=0;s<a.length;s++){var l=a[s],c=o[l],f=t[l],h=c(f,e);if(void 0===h)throw e&&e.type,new Error(ni(14));r[l]=h,i=i||h!==f}return(i=i||a.length!==Object.keys(t).length)?r:t}}function hi(){for(var t=arguments.length,e=new Array(t),o=0;o<t;o++)e[o]=arguments[o];return 0===e.length?function(t){return t}:1===e.length?e[0]:e.reduce((function(t,e){return function(){return t(e.apply(void 0,arguments))}}))}function ui(){for(var t=arguments.length,e=new Array(t),o=0;o<t;o++)e[o]=arguments[o];return function(t){return function(){var o=t.apply(void 0,arguments),i=function(){throw new Error(ni(15))},r={getState:o.getState,dispatch:function(){return i.apply(void 0,arguments)}},n=e.map((function(t){return t(r)}));return i=hi.apply(void 0,n)(o.dispatch),ri(ri({},o),{},{dispatch:i})}}}function pi(t){return function(e){var o=e.dispatch,i=e.getState;return function(e){return function(r){return"function"==typeof r?r(o,i,t):e(r)}}}}var di=pi();di.withExtraArgument=pi;var yi,gi=di,bi=(yi=function(t,e){return yi=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])},yi(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function o(){this.constructor=t}yi(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),mi=function(t,e){var o,i,r,n,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return n={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(n[Symbol.iterator]=function(){return this}),n;function s(n){return function(s){return function(n){if(o)throw new TypeError("Generator is already executing.");for(;a;)try{if(o=1,i&&(r=2&n[0]?i.return:n[0]?i.throw||((r=i.return)&&r.call(i),0):i.next)&&!(r=r.call(i,n[1])).done)return r;switch(i=0,r&&(n=[2&n[0],r.value]),n[0]){case 0:case 1:r=n;break;case 4:return a.label++,{value:n[1],done:!1};case 5:a.label++,i=n[1],n=[0];continue;case 7:n=a.ops.pop(),a.trys.pop();continue;default:if(!(r=a.trys,(r=r.length>0&&r[r.length-1])||6!==n[0]&&2!==n[0])){a=0;continue}if(3===n[0]&&(!r||n[1]>r[0]&&n[1]<r[3])){a.label=n[1];break}if(6===n[0]&&a.label<r[1]){a.label=r[1],r=n;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(n);break}r[2]&&a.ops.pop(),a.trys.pop();continue}n=e.call(t,a)}catch(t){n=[6,t],i=0}finally{o=r=0}if(5&n[0])throw n[1];return{value:n[0]?n[1]:void 0,done:!0}}([n,s])}}},vi=function(t,e){for(var o=0,i=e.length,r=t.length;o<i;o++,r++)t[r]=e[o];return t},xi=Object.defineProperty,Oi=Object.defineProperties,wi=Object.getOwnPropertyDescriptors,Si=Object.getOwnPropertySymbols,Ni=Object.prototype.hasOwnProperty,Ci=Object.prototype.propertyIsEnumerable,Ei=function(t,e,o){return e in t?xi(t,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[e]=o},$i=function(t,e){for(var o in e||(e={}))Ni.call(e,o)&&Ei(t,o,e[o]);if(Si)for(var i=0,r=Si(e);i<r.length;i++){o=r[i];Ci.call(e,o)&&Ei(t,o,e[o])}return t},Ri=function(t,e){return Oi(t,wi(e))},ki="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(0!==arguments.length)return"object"==typeof arguments[0]?hi:hi.apply(null,arguments)};var Ui=function(t){function e(){for(var o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];var r=t.apply(this,o)||this;return Object.setPrototypeOf(r,e.prototype),r}return bi(e,t),Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var e=[],o=0;o<arguments.length;o++)e[o]=arguments[o];return t.prototype.concat.apply(this,e)},e.prototype.prepend=function(){for(var t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];return 1===t.length&&Array.isArray(t[0])?new(e.bind.apply(e,vi([void 0],t[0].concat(this)))):new(e.bind.apply(e,vi([void 0],t.concat(this))))},e}(Array),Ii=function(t){function e(){for(var o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];var r=t.apply(this,o)||this;return Object.setPrototypeOf(r,e.prototype),r}return bi(e,t),Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var e=[],o=0;o<arguments.length;o++)e[o]=arguments[o];return t.prototype.concat.apply(this,e)},e.prototype.prepend=function(){for(var t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];return 1===t.length&&Array.isArray(t[0])?new(e.bind.apply(e,vi([void 0],t[0].concat(this)))):new(e.bind.apply(e,vi([void 0],t.concat(this))))},e}(Array);function Li(t){return ro(t)?Qo(t,(function(){})):t}function Ai(){return function(t){return function(t){void 0===t&&(t={});var e=t.thunk,o=void 0===e||e;t.immutableCheck,t.serializableCheck;var i=new Ui;o&&(!function(t){return"boolean"==typeof t}(o)?i.push(gi.withExtraArgument(o.extraArgument)):i.push(gi));return i}(t)}}function Wi(t){var e,o=Ai(),i=t||{},r=i.reducer,n=void 0===r?void 0:r,a=i.middleware,s=void 0===a?o():a,l=i.devTools,c=void 0===l||l,f=i.preloadedState,h=void 0===f?void 0:f,u=i.enhancers,p=void 0===u?void 0:u;if("function"==typeof n)e=n;else{if(!function(t){if("object"!=typeof t||null===t)return!1;var e=Object.getPrototypeOf(t);if(null===e)return!0;for(var o=e;null!==Object.getPrototypeOf(o);)o=Object.getPrototypeOf(o);return e===o}(n))throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');e=fi(n)}var d=s;"function"==typeof d&&(d=d(o));var y=ui.apply(void 0,d),g=hi;c&&(g=ki($i({trace:!1},"object"==typeof c&&c)));var b=new Ii(y),m=b;return Array.isArray(p)?m=vi([y],p):"function"==typeof p&&(m=p(b)),ci(e,h,g.apply(void 0,m))}function ji(t,e){function o(){for(var o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];if(e){var r=e.apply(void 0,o);if(!r)throw new Error("prepareAction did not return an object");return $i($i({type:t,payload:r.payload},"meta"in r&&{meta:r.meta}),"error"in r&&{error:r.error})}return{type:t,payload:o[0]}}return o.toString=function(){return""+t},o.type=t,o.match=function(e){return e.type===t},o}function Pi(t){var e,o={},i=[],r={addCase:function(t,e){var i="string"==typeof t?t:t.type;if(i in o)throw new Error("addCase cannot be called with two reducers for the same action type");return o[i]=e,r},addMatcher:function(t,e){return i.push({matcher:t,reducer:e}),r},addDefaultCase:function(t){return e=t,r}};return t(r),[o,i,e]}function Mi(t){var e=t.name;if(!e)throw new Error("`name` is a required option for createSlice");var o,i="function"==typeof t.initialState?t.initialState:Li(t.initialState),r=t.reducers||{},n=Object.keys(r),a={},s={},l={};function c(){var e="function"==typeof t.extraReducers?Pi(t.extraReducers):[t.extraReducers],o=e[0],r=void 0===o?{}:o,n=e[1],a=void 0===n?[]:n,l=e[2],c=void 0===l?void 0:l,f=$i($i({},r),s);return function(t,e,o,i){void 0===o&&(o=[]);var r,n="function"==typeof e?Pi(e):[e,o,i],a=n[0],s=n[1],l=n[2];if(function(t){return"function"==typeof t}(t))r=function(){return Li(t())};else{var c=Li(t);r=function(){return c}}function f(t,e){void 0===t&&(t=r());var o=vi([a[e.type]],s.filter((function(t){return(0,t.matcher)(e)})).map((function(t){return t.reducer})));return 0===o.filter((function(t){return!!t})).length&&(o=[l]),o.reduce((function(t,o){if(o){var i;if(io(t))return void 0===(i=o(t,e))?t:i;if(ro(t))return Qo(t,(function(t){return o(t,e)}));if(void 0===(i=o(t,e))){if(null===t)return t;throw Error("A case reducer on a non-draftable value must not return undefined")}return i}return t}),t)}return f.getInitialState=r,f}(i,(function(t){for(var e in f)t.addCase(e,f[e]);for(var o=0,i=a;o<i.length;o++){var r=i[o];t.addMatcher(r.matcher,r.reducer)}c&&t.addDefaultCase(c)}))}return n.forEach((function(t){var o,i,n=r[t],c=e+"/"+t;"reducer"in n?(o=n.reducer,i=n.prepare):o=n,a[t]=o,s[c]=o,l[t]=i?ji(c,i):ji(c)})),{name:e,reducer:function(t,e){return o||(o=c()),o(t,e)},actions:l,caseReducers:a,getInitialState:function(){return o||(o=c()),o.getInitialState()}}}var Fi=["name","message","stack","code"],Bi=function(t,e){this.payload=t,this.meta=e},Ki=function(t,e){this.payload=t,this.meta=e},Di=function(t){if("object"==typeof t&&null!==t){for(var e={},o=0,i=Fi;o<i.length;o++){var r=i[o];"string"==typeof t[r]&&(e[r]=t[r])}return e}return{message:String(t)}};function zi(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}!function(){function t(t,e,o){var i=ji(t+"/fulfilled",(function(t,e,o,i){return{payload:t,meta:Ri($i({},i||{}),{arg:o,requestId:e,requestStatus:"fulfilled"})}})),r=ji(t+"/pending",(function(t,e,o){return{payload:void 0,meta:Ri($i({},o||{}),{arg:e,requestId:t,requestStatus:"pending"})}})),n=ji(t+"/rejected",(function(t,e,i,r,n){return{payload:r,error:(o&&o.serializeError||Di)(t||"Rejected"),meta:Ri($i({},n||{}),{arg:i,requestId:e,rejectedWithValue:!!r,requestStatus:"rejected",aborted:"AbortError"===(null==t?void 0:t.name),condition:"ConditionError"===(null==t?void 0:t.name)})}})),a="undefined"!=typeof AbortController?AbortController:function(){function t(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return t.prototype.abort=function(){},t}();return Object.assign((function(t){return function(s,l,c){var f,h=(null==o?void 0:o.idGenerator)?o.idGenerator(t):function(t){void 0===t&&(t=21);for(var e="",o=t;o--;)e+="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW"[64*Math.random()|0];return e}(),u=new a;function p(t){f=t,u.abort()}var d=function(){return a=this,d=null,y=function(){var a,d,y,g,b,m;return mi(this,(function(v){switch(v.label){case 0:return v.trys.push([0,4,,5]),g=null==(a=null==o?void 0:o.condition)?void 0:a.call(o,t,{getState:l,extra:c}),null===(x=g)||"object"!=typeof x||"function"!=typeof x.then?[3,2]:[4,g];case 1:g=v.sent(),v.label=2;case 2:if(!1===g||u.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return b=new Promise((function(t,e){return u.signal.addEventListener("abort",(function(){return e({name:"AbortError",message:f||"Aborted"})}))})),s(r(h,t,null==(d=null==o?void 0:o.getPendingMeta)?void 0:d.call(o,{requestId:h,arg:t},{getState:l,extra:c}))),[4,Promise.race([b,Promise.resolve(e(t,{dispatch:s,getState:l,extra:c,requestId:h,signal:u.signal,abort:p,rejectWithValue:function(t,e){return new Bi(t,e)},fulfillWithValue:function(t,e){return new Ki(t,e)}})).then((function(e){if(e instanceof Bi)throw e;return e instanceof Ki?i(e.payload,h,t,e.meta):i(e,h,t)}))])];case 3:return y=v.sent(),[3,5];case 4:return m=v.sent(),y=m instanceof Bi?n(null,h,t,m.payload,m.meta):n(m,h,t),[3,5];case 5:return o&&!o.dispatchConditionRejection&&n.match(y)&&y.meta.condition||s(y),[2,y]}var x}))},new Promise((function(t,e){var o=function(t){try{r(y.next(t))}catch(t){e(t)}},i=function(t){try{r(y.throw(t))}catch(t){e(t)}},r=function(e){return e.done?t(e.value):Promise.resolve(e.value).then(o,i)};r((y=y.apply(a,d)).next())}));var a,d,y}();return Object.assign(d,{abort:p,requestId:h,arg:t,unwrap:function(){return d.then(zi)}})}}),{pending:r,rejected:n,fulfilled:i,typePrefix:t})}t.withTypes=function(){return t}}();var Ti="listenerMiddleware";ji(Ti+"/add"),ji(Ti+"/removeAll"),ji(Ti+"/remove"),"function"==typeof queueMicrotask&&queueMicrotask.bind("undefined"!=typeof window?window:"undefined"!=typeof global?global:globalThis),function(){function t(t,e){var o=r[t];return o?o.enumerable=e:r[t]=o={configurable:!0,enumerable:e,get:function(){var e=this[Zo];return qo.get(e,t)},set:function(e){var o=this[Zo];qo.set(o,t,e)}},o}function e(t){for(var e=t.length-1;e>=0;e--){var r=t[e][Zo];if(!r.P)switch(r.i){case 5:i(r)&&Io(r);break;case 4:o(r)&&Io(r)}}}function o(t){for(var e=t.t,o=t.k,i=Ho(o),r=i.length-1;r>=0;r--){var n=i[r];if(n!==Zo){var a=e[n];if(void 0===a&&!so(e,n))return!0;var s=o[n],l=s&&s[Zo];if(l?l.t!==a:!co(s,a))return!0}}var c=!!e[Zo];return i.length!==Ho(e).length+(c?0:1)}function i(t){var e=t.k;if(e.length!==t.t.length)return!0;var o=Object.getOwnPropertyDescriptor(e,e.length-1);if(o&&!o.get)return!0;for(var i=0;i<e.length;i++)if(!e.hasOwnProperty(i))return!0;return!1}var r={};!function(t,e){Vo[t]||(Vo[t]=e)}("ES5",{J:function(e,o){var i=Array.isArray(e),r=function(e,o){if(e){for(var i=Array(o.length),r=0;r<o.length;r++)Object.defineProperty(i,""+r,t(r,!0));return i}var n=Go(o);delete n[Zo];for(var a=Ho(n),s=0;s<a.length;s++){var l=a[s];n[l]=t(l,e||!!n[l].enumerable)}return Object.create(Object.getPrototypeOf(o),n)}(i,e),n={i:i?5:4,A:o?o.A:vo(),P:!1,I:!1,R:{},l:o,t:e,k:r,o:null,g:!1,C:!1};return Object.defineProperty(r,Zo,{value:n,writable:!0}),r},S:function(t,o,r){r?io(o)&&o[Zo].A===t&&e(t.p):(t.u&&function t(e){if(e&&"object"==typeof e){var o=e[Zo];if(o){var r=o.t,n=o.k,a=o.R,s=o.i;if(4===s)no(n,(function(e){e!==Zo&&(void 0!==r[e]||so(r,e)?a[e]||t(n[e]):(a[e]=!0,Io(o)))})),no(r,(function(t){void 0!==n[t]||so(n,t)||(a[t]=!1,Io(o))}));else if(5===s){if(i(o)&&(Io(o),a.length=!0),n.length<r.length)for(var l=n.length;l<r.length;l++)a[l]=!1;else for(var c=r.length;c<n.length;c++)a[c]=!0;for(var f=Math.min(n.length,r.length),h=0;h<f;h++)n.hasOwnProperty(h)||(a[h]=!0),void 0===a[h]&&t(n[h])}}}}(t.p[0]),e(t.p))},K:function(t){return 4===t.i?o(t):i(t)}})}(),window.ftReduxStores||(window.ftReduxStores={});class Zi{static get(t){var e;const o="string"==typeof t?t:t.name,i="string"==typeof t?void 0:t,r=window.ftReduxStores[o];if(Ve(r))return r;if(null==i)return;const n=Mi({...i,reducers:null!==(e=i.reducers)&&void 0!==e?e:{}}),a=Wi({reducer:(t,e)=>{var o;switch(e.type){case"CLEAR_FT_REDUX_STORE":return n.getInitialState();case"DEFAULT_STATE_FIELDS_VALUES_SETTER":return{...t,...null!==(o=e.overwrites)&&void 0!==o?o:{}};default:return n.reducer(t,e)}}});return window.ftReduxStores[i.name]=new Zi(n,a)}constructor(t,e){this.reduxSlice=t,this.reduxStore=e,this.isFtReduxStore=!0,this.eventBus=document.createElement("event-bus"),this.commands=new Ge,this.actions=new Proxy(this.reduxSlice.actions,{get:(t,e,o)=>{const i=e,r=t[i];return r?(...t)=>{const e=r(...t);return this.reduxStore.dispatch(e),e}:t=>{this.setState({[i]:t})}}})}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE"})}setState(t){this.reduxStore.dispatch({type:"DEFAULT_STATE_FIELDS_VALUES_SETTER",overwrites:t})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(t){throw new Error("Not implemented yet.")}subscribe(t){return this.reduxStore.subscribe(t)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}}const _i=Symbol("elementInternals");var Hi,Gi,Vi;const qi=navigator.vendor&&!!navigator.vendor.match(/apple/i)||"[object SafariRemoteNotification]"===(null!==(Vi=null===(Gi=null===(Hi=window.safari)||void 0===Hi?void 0:Hi.pushNotification)||void 0===Gi?void 0:Gi.toString())&&void 0!==Vi?Vi:""),Yi=Et`
|
|
125
|
+
`;class _e{constructor(t,e){this.defaultLabels=t,this.labels=e}resolve(t,...e){var o,i;t=this.resolvePluralKey(t,e);let r=null!==(i=null!==(o=this.labels[t])&&void 0!==o?o:this.defaultLabels[t])&&void 0!==i?i:"";return e.forEach(((t,e)=>r=r.replace(new RegExp(`\\{${e}([^}]*)\\}`,"g"),((e,o)=>this.formatValue(t,o))))),r}resolvePluralKey(t,e){for(let o of e)if("number"==typeof o){const e=`${String(t)}[\\=${o}]`;if(e in this.labels||e in this.defaultLabels)return e}return t}formatValue(t,e){return t instanceof Date?this.formatDate(t,e):null!=t?t:""}formatDate(t,e){const o=o=>(null==e?void 0:e.includes("date"))?t.toLocaleDateString(o):(null==e?void 0:e.includes("time"))?t.toLocaleTimeString(o):t.toLocaleString(o);try{return o(document.documentElement.lang)}catch(t){return o()}}}const He=t=>{const e=null!=t?t:{};return(t,o)=>{var i;const r={hasChanged:(t,e)=>!A(t,e),attribute:!1,...e};R(r)(t,o);const n=t.constructor;n.reduxProperties=new Map(n.reduxProperties),n.reduxProperties.set(o,{selector:null!==(i=e.selector)&&void 0!==i?i:t=>t[o],store:e.store})}};class Ge{constructor(){this.queue=[]}add(t,e=!1){e&&(this.queue=this.queue.filter((e=>e.type!==t.type))),this.queue.push(t)}consume(t){const e=this.queue.find((e=>e.type===t));return e&&(this.queue=this.queue.filter((t=>t!==e))),e}}function Ve(t){var e;return null!==(e=null==t?void 0:t.isFtReduxStore)&&void 0!==e&&e}var qe,Ye,Xe;const Je=Symbol("internalReduxEventsUnsubscribers"),Qe=Symbol("internalStoresUnsubscribers"),to=Symbol("internalStores");class eo extends De{constructor(){super(...arguments),this[qe]=new Map,this[Ye]=new Map,this[Xe]=[]}get reduxConstructor(){return this.constructor}update(t){super.update(t),[...this.reduxConstructor.reduxReactiveProperties].some((e=>t.has(e)))&&this.updateFromStores()}getUnnamedStore(){if(this[to].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[to].values()][0]}getStore(t){return null==t?this.getUnnamedStore():this[to].get(t)}addStore(t,e){var o;e=null!==(o=null!=e?e:Ve(t)?t.name:void 0)&&void 0!==o?o:"default-store",this.unsubscribeFromStore(e),this.setupStore(e,t)}removeStore(t){const e="string"==typeof t?t:t.name;this.unsubscribeFromStore(e),this[to].delete(e)}setupStore(t,e){this[to].set(t,e),this.subscribeToStore(t,e),this.updateFromStores()}setupStores(){this.unsubscribeFromStores(),this[to].forEach(((t,e)=>this.subscribeToStore(e,t))),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach(((t,e)=>{const o=this.constructor.getPropertyOptions(e);if(!(null==o?void 0:o.attribute)||!this.hasAttribute("string"==typeof(null==o?void 0:o.attribute)?o.attribute:e)){const o=this.getStore(t.store);o&&(t.store?this[Qe].has(t.store):this[Qe].size>0)&&(this[e]=t.selector(o.getState(),this))}}))}subscribeToStore(t,e){var o;this[Qe].set(t,e.subscribe((()=>this.updateFromStores()))),Ve(e)&&e.eventBus&&(null===(o=this.reduxConstructor.reduxEventListeners)||void 0===o||o.forEach(((t,o)=>{if("function"==typeof this[o]&&(!t.store||e.name===t.store)){const i=t=>this[o](t);e.eventBus.addEventListener(t.eventName,i),this[Je].push((()=>e.eventBus.removeEventListener(t.eventName,i)))}}))),this.onStoreAvailable(t)}unsubscribeFromStores(){this[Qe].forEach(((t,e)=>this.unsubscribeFromStore(e))),this[Je].forEach((t=>t())),this[Je]=[]}unsubscribeFromStore(t){this[Qe].has(t)&&this[Qe].get(t)(),this[Qe].delete(t)}onStoreAvailable(t){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}function oo(t){for(var e=arguments.length,o=Array(e>1?e-1:0),i=1;i<e;i++)o[i-1]=arguments[i];throw Error("[Immer] minified error nr: "+t+(o.length?" "+o.map((function(t){return"'"+t+"'"})).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function io(t){return!!t&&!!t[Zo]}function ro(t){var e;return!!t&&(function(t){if(!t||"object"!=typeof t)return!1;var e=Object.getPrototypeOf(t);if(null===e)return!0;var o=Object.hasOwnProperty.call(e,"constructor")&&e.constructor;return o===Object||"function"==typeof o&&Function.toString.call(o)===_o}(t)||Array.isArray(t)||!!t[To]||!!(null===(e=t.constructor)||void 0===e?void 0:e[To])||fo(t)||ho(t))}function no(t,e,o){void 0===o&&(o=!1),0===ao(t)?(o?Object.keys:Ho)(t).forEach((function(i){o&&"symbol"==typeof i||e(i,t[i],t)})):t.forEach((function(o,i){return e(i,o,t)}))}function ao(t){var e=t[Zo];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:fo(t)?2:ho(t)?3:0}function so(t,e){return 2===ao(t)?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function lo(t,e,o){var i=ao(t);2===i?t.set(e,o):3===i?t.add(o):t[e]=o}function co(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}function fo(t){return Ko&&t instanceof Map}function ho(t){return Bo&&t instanceof Set}function uo(t){return t.o||t.t}function po(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=Go(t);delete e[Zo];for(var o=Ho(e),i=0;i<o.length;i++){var r=o[i],n=e[r];!1===n.writable&&(n.writable=!0,n.configurable=!0),(n.get||n.set)&&(e[r]={configurable:!0,writable:!0,enumerable:n.enumerable,value:t[r]})}return Object.create(Object.getPrototypeOf(t),e)}function yo(t,e){return void 0===e&&(e=!1),bo(t)||io(t)||!ro(t)||(ao(t)>1&&(t.set=t.add=t.clear=t.delete=go),Object.freeze(t),e&&no(t,(function(t,e){return yo(e,!0)}),!0)),t}function go(){oo(2)}function bo(t){return null==t||"object"!=typeof t||Object.isFrozen(t)}function mo(t){var e=Vo[t];return e||oo(18,t),e}function vo(){return Mo}function xo(t,e){e&&(mo("Patches"),t.u=[],t.s=[],t.v=e)}function Oo(t){wo(t),t.p.forEach(No),t.p=null}function wo(t){t===Mo&&(Mo=t.l)}function So(t){return Mo={p:[],l:Mo,h:t,m:!0,_:0}}function No(t){var e=t[Zo];0===e.i||1===e.i?e.j():e.g=!0}function Co(t,e){e._=e.p.length;var o=e.p[0],i=void 0!==t&&t!==o;return e.h.O||mo("ES5").S(e,t,i),i?(o[Zo].P&&(Oo(e),oo(4)),ro(t)&&(t=Eo(e,t),e.l||Ro(e,t)),e.u&&mo("Patches").M(o[Zo].t,t,e.u,e.s)):t=Eo(e,o,[]),Oo(e),e.u&&e.v(e.u,e.s),t!==zo?t:void 0}function Eo(t,e,o){if(bo(e))return e;var i=e[Zo];if(!i)return no(e,(function(r,n){return $o(t,i,e,r,n,o)}),!0),e;if(i.A!==t)return e;if(!i.P)return Ro(t,i.t,!0),i.t;if(!i.I){i.I=!0,i.A._--;var r=4===i.i||5===i.i?i.o=po(i.k):i.o,n=r,a=!1;3===i.i&&(n=new Set(r),r.clear(),a=!0),no(n,(function(e,n){return $o(t,i,r,e,n,o,a)})),Ro(t,r,!1),o&&t.u&&mo("Patches").N(i,o,t.u,t.s)}return i.o}function $o(t,e,o,i,r,n,a){if(io(r)){var s=Eo(t,r,n&&e&&3!==e.i&&!so(e.R,i)?n.concat(i):void 0);if(lo(o,i,s),!io(s))return;t.m=!1}else a&&o.add(r);if(ro(r)&&!bo(r)){if(!t.h.D&&t._<1)return;Eo(t,r),e&&e.A.l||Ro(t,r)}}function Ro(t,e,o){void 0===o&&(o=!1),!t.l&&t.h.D&&t.m&&yo(e,o)}function ko(t,e){var o=t[Zo];return(o?uo(o):t)[e]}function Uo(t,e){if(e in t)for(var o=Object.getPrototypeOf(t);o;){var i=Object.getOwnPropertyDescriptor(o,e);if(i)return i;o=Object.getPrototypeOf(o)}}function Io(t){t.P||(t.P=!0,t.l&&Io(t.l))}function Lo(t){t.o||(t.o=po(t.t))}function Ao(t,e,o){var i=fo(e)?mo("MapSet").F(e,o):ho(e)?mo("MapSet").T(e,o):t.O?function(t,e){var o=Array.isArray(t),i={i:o?1:0,A:e?e.A:vo(),P:!1,I:!1,R:{},l:e,t,k:null,o:null,j:null,C:!1},r=i,n=qo;o&&(r=[i],n=Yo);var a=Proxy.revocable(r,n),s=a.revoke,l=a.proxy;return i.k=l,i.j=s,l}(e,o):mo("ES5").J(e,o);return(o?o.A:vo()).p.push(i),i}function Wo(t){return io(t)||oo(22,t),function t(e){if(!ro(e))return e;var o,i=e[Zo],r=ao(e);if(i){if(!i.P&&(i.i<4||!mo("ES5").K(i)))return i.t;i.I=!0,o=jo(e,r),i.I=!1}else o=jo(e,r);return no(o,(function(e,r){i&&function(t,e){return 2===ao(t)?t.get(e):t[e]}(i.t,e)===r||lo(o,e,t(r))})),3===r?new Set(o):o}(t)}function jo(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return po(t)}qe=Qe,Ye=to,Xe=Je,eo.reduxProperties=new Map,eo.reduxReactiveProperties=new Set,eo.reduxEventListeners=new Map;var Po,Mo,Fo="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),Ko="undefined"!=typeof Map,Bo="undefined"!=typeof Set,Do="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,zo=Fo?Symbol.for("immer-nothing"):((Po={})["immer-nothing"]=!0,Po),To=Fo?Symbol.for("immer-draftable"):"__$immer_draftable",Zo=Fo?Symbol.for("immer-state"):"__$immer_state",_o=""+Object.prototype.constructor,Ho="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,Go=Object.getOwnPropertyDescriptors||function(t){var e={};return Ho(t).forEach((function(o){e[o]=Object.getOwnPropertyDescriptor(t,o)})),e},Vo={},qo={get:function(t,e){if(e===Zo)return t;var o=uo(t);if(!so(o,e))return function(t,e,o){var i,r=Uo(e,o);return r?"value"in r?r.value:null===(i=r.get)||void 0===i?void 0:i.call(t.k):void 0}(t,o,e);var i=o[e];return t.I||!ro(i)?i:i===ko(t.t,e)?(Lo(t),t.o[e]=Ao(t.A.h,i,t)):i},has:function(t,e){return e in uo(t)},ownKeys:function(t){return Reflect.ownKeys(uo(t))},set:function(t,e,o){var i=Uo(uo(t),e);if(null==i?void 0:i.set)return i.set.call(t.k,o),!0;if(!t.P){var r=ko(uo(t),e),n=null==r?void 0:r[Zo];if(n&&n.t===o)return t.o[e]=o,t.R[e]=!1,!0;if(co(o,r)&&(void 0!==o||so(t.t,e)))return!0;Lo(t),Io(t)}return t.o[e]===o&&(void 0!==o||e in t.o)||Number.isNaN(o)&&Number.isNaN(t.o[e])||(t.o[e]=o,t.R[e]=!0),!0},deleteProperty:function(t,e){return void 0!==ko(t.t,e)||e in t.t?(t.R[e]=!1,Lo(t),Io(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var o=uo(t),i=Reflect.getOwnPropertyDescriptor(o,e);return i?{writable:!0,configurable:1!==t.i||"length"!==e,enumerable:i.enumerable,value:o[e]}:i},defineProperty:function(){oo(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){oo(12)}},Yo={};no(qo,(function(t,e){Yo[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}})),Yo.deleteProperty=function(t,e){return Yo.set.call(this,t,e,void 0)},Yo.set=function(t,e,o){return qo.set.call(this,t[0],e,o,t[0])};var Xo=function(){function t(t){var e=this;this.O=Do,this.D=!0,this.produce=function(t,o,i){if("function"==typeof t&&"function"!=typeof o){var r=o;o=t;var n=e;return function(t){var e=this;void 0===t&&(t=r);for(var i=arguments.length,a=Array(i>1?i-1:0),s=1;s<i;s++)a[s-1]=arguments[s];return n.produce(t,(function(t){var i;return(i=o).call.apply(i,[e,t].concat(a))}))}}var a;if("function"!=typeof o&&oo(6),void 0!==i&&"function"!=typeof i&&oo(7),ro(t)){var s=So(e),l=Ao(e,t,void 0),c=!0;try{a=o(l),c=!1}finally{c?Oo(s):wo(s)}return"undefined"!=typeof Promise&&a instanceof Promise?a.then((function(t){return xo(s,i),Co(t,s)}),(function(t){throw Oo(s),t})):(xo(s,i),Co(a,s))}if(!t||"object"!=typeof t){if(void 0===(a=o(t))&&(a=t),a===zo&&(a=void 0),e.D&&yo(a,!0),i){var f=[],h=[];mo("Patches").M(t,a,f,h),i(f,h)}return a}oo(21,t)},this.produceWithPatches=function(t,o){if("function"==typeof t)return function(o){for(var i=arguments.length,r=Array(i>1?i-1:0),n=1;n<i;n++)r[n-1]=arguments[n];return e.produceWithPatches(o,(function(e){return t.apply(void 0,[e].concat(r))}))};var i,r,n=e.produce(t,o,(function(t,e){i=t,r=e}));return"undefined"!=typeof Promise&&n instanceof Promise?n.then((function(t){return[t,i,r]})):[n,i,r]},"boolean"==typeof(null==t?void 0:t.useProxies)&&this.setUseProxies(t.useProxies),"boolean"==typeof(null==t?void 0:t.autoFreeze)&&this.setAutoFreeze(t.autoFreeze)}var e=t.prototype;return e.createDraft=function(t){ro(t)||oo(8),io(t)&&(t=Wo(t));var e=So(this),o=Ao(this,t,void 0);return o[Zo].C=!0,wo(e),o},e.finishDraft=function(t,e){var o=(t&&t[Zo]).A;return xo(o,e),Co(void 0,o)},e.setAutoFreeze=function(t){this.D=t},e.setUseProxies=function(t){t&&!Do&&oo(20),this.O=t},e.applyPatches=function(t,e){var o;for(o=e.length-1;o>=0;o--){var i=e[o];if(0===i.path.length&&"replace"===i.op){t=i.value;break}}o>-1&&(e=e.slice(o+1));var r=mo("Patches").$;return io(t)?r(t,e):this.produce(t,(function(t){return r(t,e)}))},t}(),Jo=new Xo,Qo=Jo.produce;function ti(t){return ti="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ti(t)}function ei(t){var e=function(t,e){if("object"!==ti(t)||null===t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var i=o.call(t,e||"default");if("object"!==ti(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===ti(e)?e:String(e)}function oi(t,e,o){return(e=ei(e))in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}function ii(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),o.push.apply(o,i)}return o}function ri(t){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};e%2?ii(Object(o),!0).forEach((function(e){oi(t,e,o[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):ii(Object(o)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))}))}return t}function ni(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. "}Jo.produceWithPatches.bind(Jo),Jo.setAutoFreeze.bind(Jo),Jo.setUseProxies.bind(Jo),Jo.applyPatches.bind(Jo),Jo.createDraft.bind(Jo),Jo.finishDraft.bind(Jo);var ai="function"==typeof Symbol&&Symbol.observable||"@@observable",si=function(){return Math.random().toString(36).substring(7).split("").join(".")},li={INIT:"@@redux/INIT"+si(),REPLACE:"@@redux/REPLACE"+si(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+si()}};function ci(t,e,o){var i;if("function"==typeof e&&"function"==typeof o||"function"==typeof o&&"function"==typeof arguments[3])throw new Error(ni(0));if("function"==typeof e&&void 0===o&&(o=e,e=void 0),void 0!==o){if("function"!=typeof o)throw new Error(ni(1));return o(ci)(t,e)}if("function"!=typeof t)throw new Error(ni(2));var r=t,n=e,a=[],s=a,l=!1;function c(){s===a&&(s=a.slice())}function f(){if(l)throw new Error(ni(3));return n}function h(t){if("function"!=typeof t)throw new Error(ni(4));if(l)throw new Error(ni(5));var e=!0;return c(),s.push(t),function(){if(e){if(l)throw new Error(ni(6));e=!1,c();var o=s.indexOf(t);s.splice(o,1),a=null}}}function u(t){if(!function(t){if("object"!=typeof t||null===t)return!1;for(var e=t;null!==Object.getPrototypeOf(e);)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}(t))throw new Error(ni(7));if(void 0===t.type)throw new Error(ni(8));if(l)throw new Error(ni(9));try{l=!0,n=r(n,t)}finally{l=!1}for(var e=a=s,o=0;o<e.length;o++){(0,e[o])()}return t}return u({type:li.INIT}),(i={dispatch:u,subscribe:h,getState:f,replaceReducer:function(t){if("function"!=typeof t)throw new Error(ni(10));r=t,u({type:li.REPLACE})}})[ai]=function(){var t,e=h;return(t={subscribe:function(t){if("object"!=typeof t||null===t)throw new Error(ni(11));function o(){t.next&&t.next(f())}return o(),{unsubscribe:e(o)}}})[ai]=function(){return this},t},i}function fi(t){for(var e=Object.keys(t),o={},i=0;i<e.length;i++){var r=e[i];"function"==typeof t[r]&&(o[r]=t[r])}var n,a=Object.keys(o);try{!function(t){Object.keys(t).forEach((function(e){var o=t[e];if(void 0===o(void 0,{type:li.INIT}))throw new Error(ni(12));if(void 0===o(void 0,{type:li.PROBE_UNKNOWN_ACTION()}))throw new Error(ni(13))}))}(o)}catch(t){n=t}return function(t,e){if(void 0===t&&(t={}),n)throw n;for(var i=!1,r={},s=0;s<a.length;s++){var l=a[s],c=o[l],f=t[l],h=c(f,e);if(void 0===h)throw e&&e.type,new Error(ni(14));r[l]=h,i=i||h!==f}return(i=i||a.length!==Object.keys(t).length)?r:t}}function hi(){for(var t=arguments.length,e=new Array(t),o=0;o<t;o++)e[o]=arguments[o];return 0===e.length?function(t){return t}:1===e.length?e[0]:e.reduce((function(t,e){return function(){return t(e.apply(void 0,arguments))}}))}function ui(){for(var t=arguments.length,e=new Array(t),o=0;o<t;o++)e[o]=arguments[o];return function(t){return function(){var o=t.apply(void 0,arguments),i=function(){throw new Error(ni(15))},r={getState:o.getState,dispatch:function(){return i.apply(void 0,arguments)}},n=e.map((function(t){return t(r)}));return i=hi.apply(void 0,n)(o.dispatch),ri(ri({},o),{},{dispatch:i})}}}function pi(t){return function(e){var o=e.dispatch,i=e.getState;return function(e){return function(r){return"function"==typeof r?r(o,i,t):e(r)}}}}var di=pi();di.withExtraArgument=pi;var yi,gi=di,bi=(yi=function(t,e){return yi=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])},yi(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function o(){this.constructor=t}yi(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),mi=function(t,e){var o,i,r,n,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return n={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(n[Symbol.iterator]=function(){return this}),n;function s(n){return function(s){return function(n){if(o)throw new TypeError("Generator is already executing.");for(;a;)try{if(o=1,i&&(r=2&n[0]?i.return:n[0]?i.throw||((r=i.return)&&r.call(i),0):i.next)&&!(r=r.call(i,n[1])).done)return r;switch(i=0,r&&(n=[2&n[0],r.value]),n[0]){case 0:case 1:r=n;break;case 4:return a.label++,{value:n[1],done:!1};case 5:a.label++,i=n[1],n=[0];continue;case 7:n=a.ops.pop(),a.trys.pop();continue;default:if(!(r=a.trys,(r=r.length>0&&r[r.length-1])||6!==n[0]&&2!==n[0])){a=0;continue}if(3===n[0]&&(!r||n[1]>r[0]&&n[1]<r[3])){a.label=n[1];break}if(6===n[0]&&a.label<r[1]){a.label=r[1],r=n;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(n);break}r[2]&&a.ops.pop(),a.trys.pop();continue}n=e.call(t,a)}catch(t){n=[6,t],i=0}finally{o=r=0}if(5&n[0])throw n[1];return{value:n[0]?n[1]:void 0,done:!0}}([n,s])}}},vi=function(t,e){for(var o=0,i=e.length,r=t.length;o<i;o++,r++)t[r]=e[o];return t},xi=Object.defineProperty,Oi=Object.defineProperties,wi=Object.getOwnPropertyDescriptors,Si=Object.getOwnPropertySymbols,Ni=Object.prototype.hasOwnProperty,Ci=Object.prototype.propertyIsEnumerable,Ei=function(t,e,o){return e in t?xi(t,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[e]=o},$i=function(t,e){for(var o in e||(e={}))Ni.call(e,o)&&Ei(t,o,e[o]);if(Si)for(var i=0,r=Si(e);i<r.length;i++){o=r[i];Ci.call(e,o)&&Ei(t,o,e[o])}return t},Ri=function(t,e){return Oi(t,wi(e))},ki="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(0!==arguments.length)return"object"==typeof arguments[0]?hi:hi.apply(null,arguments)};var Ui=function(t){function e(){for(var o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];var r=t.apply(this,o)||this;return Object.setPrototypeOf(r,e.prototype),r}return bi(e,t),Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var e=[],o=0;o<arguments.length;o++)e[o]=arguments[o];return t.prototype.concat.apply(this,e)},e.prototype.prepend=function(){for(var t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];return 1===t.length&&Array.isArray(t[0])?new(e.bind.apply(e,vi([void 0],t[0].concat(this)))):new(e.bind.apply(e,vi([void 0],t.concat(this))))},e}(Array),Ii=function(t){function e(){for(var o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];var r=t.apply(this,o)||this;return Object.setPrototypeOf(r,e.prototype),r}return bi(e,t),Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var e=[],o=0;o<arguments.length;o++)e[o]=arguments[o];return t.prototype.concat.apply(this,e)},e.prototype.prepend=function(){for(var t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];return 1===t.length&&Array.isArray(t[0])?new(e.bind.apply(e,vi([void 0],t[0].concat(this)))):new(e.bind.apply(e,vi([void 0],t.concat(this))))},e}(Array);function Li(t){return ro(t)?Qo(t,(function(){})):t}function Ai(){return function(t){return function(t){void 0===t&&(t={});var e=t.thunk,o=void 0===e||e;t.immutableCheck,t.serializableCheck;var i=new Ui;o&&(!function(t){return"boolean"==typeof t}(o)?i.push(gi.withExtraArgument(o.extraArgument)):i.push(gi));return i}(t)}}function Wi(t){var e,o=Ai(),i=t||{},r=i.reducer,n=void 0===r?void 0:r,a=i.middleware,s=void 0===a?o():a,l=i.devTools,c=void 0===l||l,f=i.preloadedState,h=void 0===f?void 0:f,u=i.enhancers,p=void 0===u?void 0:u;if("function"==typeof n)e=n;else{if(!function(t){if("object"!=typeof t||null===t)return!1;var e=Object.getPrototypeOf(t);if(null===e)return!0;for(var o=e;null!==Object.getPrototypeOf(o);)o=Object.getPrototypeOf(o);return e===o}(n))throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');e=fi(n)}var d=s;"function"==typeof d&&(d=d(o));var y=ui.apply(void 0,d),g=hi;c&&(g=ki($i({trace:!1},"object"==typeof c&&c)));var b=new Ii(y),m=b;return Array.isArray(p)?m=vi([y],p):"function"==typeof p&&(m=p(b)),ci(e,h,g.apply(void 0,m))}function ji(t,e){function o(){for(var o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];if(e){var r=e.apply(void 0,o);if(!r)throw new Error("prepareAction did not return an object");return $i($i({type:t,payload:r.payload},"meta"in r&&{meta:r.meta}),"error"in r&&{error:r.error})}return{type:t,payload:o[0]}}return o.toString=function(){return""+t},o.type=t,o.match=function(e){return e.type===t},o}function Pi(t){var e,o={},i=[],r={addCase:function(t,e){var i="string"==typeof t?t:t.type;if(i in o)throw new Error("addCase cannot be called with two reducers for the same action type");return o[i]=e,r},addMatcher:function(t,e){return i.push({matcher:t,reducer:e}),r},addDefaultCase:function(t){return e=t,r}};return t(r),[o,i,e]}function Mi(t){var e=t.name;if(!e)throw new Error("`name` is a required option for createSlice");var o,i="function"==typeof t.initialState?t.initialState:Li(t.initialState),r=t.reducers||{},n=Object.keys(r),a={},s={},l={};function c(){var e="function"==typeof t.extraReducers?Pi(t.extraReducers):[t.extraReducers],o=e[0],r=void 0===o?{}:o,n=e[1],a=void 0===n?[]:n,l=e[2],c=void 0===l?void 0:l,f=$i($i({},r),s);return function(t,e,o,i){void 0===o&&(o=[]);var r,n="function"==typeof e?Pi(e):[e,o,i],a=n[0],s=n[1],l=n[2];if(function(t){return"function"==typeof t}(t))r=function(){return Li(t())};else{var c=Li(t);r=function(){return c}}function f(t,e){void 0===t&&(t=r());var o=vi([a[e.type]],s.filter((function(t){return(0,t.matcher)(e)})).map((function(t){return t.reducer})));return 0===o.filter((function(t){return!!t})).length&&(o=[l]),o.reduce((function(t,o){if(o){var i;if(io(t))return void 0===(i=o(t,e))?t:i;if(ro(t))return Qo(t,(function(t){return o(t,e)}));if(void 0===(i=o(t,e))){if(null===t)return t;throw Error("A case reducer on a non-draftable value must not return undefined")}return i}return t}),t)}return f.getInitialState=r,f}(i,(function(t){for(var e in f)t.addCase(e,f[e]);for(var o=0,i=a;o<i.length;o++){var r=i[o];t.addMatcher(r.matcher,r.reducer)}c&&t.addDefaultCase(c)}))}return n.forEach((function(t){var o,i,n=r[t],c=e+"/"+t;"reducer"in n?(o=n.reducer,i=n.prepare):o=n,a[t]=o,s[c]=o,l[t]=i?ji(c,i):ji(c)})),{name:e,reducer:function(t,e){return o||(o=c()),o(t,e)},actions:l,caseReducers:a,getInitialState:function(){return o||(o=c()),o.getInitialState()}}}var Fi=["name","message","stack","code"],Ki=function(t,e){this.payload=t,this.meta=e},Bi=function(t,e){this.payload=t,this.meta=e},Di=function(t){if("object"==typeof t&&null!==t){for(var e={},o=0,i=Fi;o<i.length;o++){var r=i[o];"string"==typeof t[r]&&(e[r]=t[r])}return e}return{message:String(t)}};function zi(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}!function(){function t(t,e,o){var i=ji(t+"/fulfilled",(function(t,e,o,i){return{payload:t,meta:Ri($i({},i||{}),{arg:o,requestId:e,requestStatus:"fulfilled"})}})),r=ji(t+"/pending",(function(t,e,o){return{payload:void 0,meta:Ri($i({},o||{}),{arg:e,requestId:t,requestStatus:"pending"})}})),n=ji(t+"/rejected",(function(t,e,i,r,n){return{payload:r,error:(o&&o.serializeError||Di)(t||"Rejected"),meta:Ri($i({},n||{}),{arg:i,requestId:e,rejectedWithValue:!!r,requestStatus:"rejected",aborted:"AbortError"===(null==t?void 0:t.name),condition:"ConditionError"===(null==t?void 0:t.name)})}})),a="undefined"!=typeof AbortController?AbortController:function(){function t(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return t.prototype.abort=function(){},t}();return Object.assign((function(t){return function(s,l,c){var f,h=(null==o?void 0:o.idGenerator)?o.idGenerator(t):function(t){void 0===t&&(t=21);for(var e="",o=t;o--;)e+="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW"[64*Math.random()|0];return e}(),u=new a;function p(t){f=t,u.abort()}var d=function(){return a=this,d=null,y=function(){var a,d,y,g,b,m;return mi(this,(function(v){switch(v.label){case 0:return v.trys.push([0,4,,5]),g=null==(a=null==o?void 0:o.condition)?void 0:a.call(o,t,{getState:l,extra:c}),null===(x=g)||"object"!=typeof x||"function"!=typeof x.then?[3,2]:[4,g];case 1:g=v.sent(),v.label=2;case 2:if(!1===g||u.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return b=new Promise((function(t,e){return u.signal.addEventListener("abort",(function(){return e({name:"AbortError",message:f||"Aborted"})}))})),s(r(h,t,null==(d=null==o?void 0:o.getPendingMeta)?void 0:d.call(o,{requestId:h,arg:t},{getState:l,extra:c}))),[4,Promise.race([b,Promise.resolve(e(t,{dispatch:s,getState:l,extra:c,requestId:h,signal:u.signal,abort:p,rejectWithValue:function(t,e){return new Ki(t,e)},fulfillWithValue:function(t,e){return new Bi(t,e)}})).then((function(e){if(e instanceof Ki)throw e;return e instanceof Bi?i(e.payload,h,t,e.meta):i(e,h,t)}))])];case 3:return y=v.sent(),[3,5];case 4:return m=v.sent(),y=m instanceof Ki?n(null,h,t,m.payload,m.meta):n(m,h,t),[3,5];case 5:return o&&!o.dispatchConditionRejection&&n.match(y)&&y.meta.condition||s(y),[2,y]}var x}))},new Promise((function(t,e){var o=function(t){try{r(y.next(t))}catch(t){e(t)}},i=function(t){try{r(y.throw(t))}catch(t){e(t)}},r=function(e){return e.done?t(e.value):Promise.resolve(e.value).then(o,i)};r((y=y.apply(a,d)).next())}));var a,d,y}();return Object.assign(d,{abort:p,requestId:h,arg:t,unwrap:function(){return d.then(zi)}})}}),{pending:r,rejected:n,fulfilled:i,typePrefix:t})}t.withTypes=function(){return t}}();var Ti="listenerMiddleware";ji(Ti+"/add"),ji(Ti+"/removeAll"),ji(Ti+"/remove"),"function"==typeof queueMicrotask&&queueMicrotask.bind("undefined"!=typeof window?window:"undefined"!=typeof global?global:globalThis),function(){function t(t,e){var o=r[t];return o?o.enumerable=e:r[t]=o={configurable:!0,enumerable:e,get:function(){var e=this[Zo];return qo.get(e,t)},set:function(e){var o=this[Zo];qo.set(o,t,e)}},o}function e(t){for(var e=t.length-1;e>=0;e--){var r=t[e][Zo];if(!r.P)switch(r.i){case 5:i(r)&&Io(r);break;case 4:o(r)&&Io(r)}}}function o(t){for(var e=t.t,o=t.k,i=Ho(o),r=i.length-1;r>=0;r--){var n=i[r];if(n!==Zo){var a=e[n];if(void 0===a&&!so(e,n))return!0;var s=o[n],l=s&&s[Zo];if(l?l.t!==a:!co(s,a))return!0}}var c=!!e[Zo];return i.length!==Ho(e).length+(c?0:1)}function i(t){var e=t.k;if(e.length!==t.t.length)return!0;var o=Object.getOwnPropertyDescriptor(e,e.length-1);if(o&&!o.get)return!0;for(var i=0;i<e.length;i++)if(!e.hasOwnProperty(i))return!0;return!1}var r={};!function(t,e){Vo[t]||(Vo[t]=e)}("ES5",{J:function(e,o){var i=Array.isArray(e),r=function(e,o){if(e){for(var i=Array(o.length),r=0;r<o.length;r++)Object.defineProperty(i,""+r,t(r,!0));return i}var n=Go(o);delete n[Zo];for(var a=Ho(n),s=0;s<a.length;s++){var l=a[s];n[l]=t(l,e||!!n[l].enumerable)}return Object.create(Object.getPrototypeOf(o),n)}(i,e),n={i:i?5:4,A:o?o.A:vo(),P:!1,I:!1,R:{},l:o,t:e,k:r,o:null,g:!1,C:!1};return Object.defineProperty(r,Zo,{value:n,writable:!0}),r},S:function(t,o,r){r?io(o)&&o[Zo].A===t&&e(t.p):(t.u&&function t(e){if(e&&"object"==typeof e){var o=e[Zo];if(o){var r=o.t,n=o.k,a=o.R,s=o.i;if(4===s)no(n,(function(e){e!==Zo&&(void 0!==r[e]||so(r,e)?a[e]||t(n[e]):(a[e]=!0,Io(o)))})),no(r,(function(t){void 0!==n[t]||so(n,t)||(a[t]=!1,Io(o))}));else if(5===s){if(i(o)&&(Io(o),a.length=!0),n.length<r.length)for(var l=n.length;l<r.length;l++)a[l]=!1;else for(var c=r.length;c<n.length;c++)a[c]=!0;for(var f=Math.min(n.length,r.length),h=0;h<f;h++)n.hasOwnProperty(h)||(a[h]=!0),void 0===a[h]&&t(n[h])}}}}(t.p[0]),e(t.p))},K:function(t){return 4===t.i?o(t):i(t)}})}(),window.ftReduxStores||(window.ftReduxStores={});class Zi{static get(t){var e;const o="string"==typeof t?t:t.name,i="string"==typeof t?void 0:t,r=window.ftReduxStores[o];if(Ve(r))return r;if(null==i)return;const n=Mi({...i,reducers:null!==(e=i.reducers)&&void 0!==e?e:{}}),a=Wi({reducer:(t,e)=>{var o;switch(e.type){case"CLEAR_FT_REDUX_STORE":return n.getInitialState();case"DEFAULT_STATE_FIELDS_VALUES_SETTER":return{...t,...null!==(o=e.overwrites)&&void 0!==o?o:{}};default:return n.reducer(t,e)}}});return window.ftReduxStores[i.name]=new Zi(n,a)}constructor(t,e){this.reduxSlice=t,this.reduxStore=e,this.isFtReduxStore=!0,this.eventBus=document.createElement("event-bus"),this.commands=new Ge,this.actions=new Proxy(this.reduxSlice.actions,{get:(t,e,o)=>{const i=e,r=t[i];return r?(...t)=>{const e=r(...t);return this.reduxStore.dispatch(e),e}:t=>{this.setState({[i]:t})}}})}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE"})}setState(t){this.reduxStore.dispatch({type:"DEFAULT_STATE_FIELDS_VALUES_SETTER",overwrites:t})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(t){throw new Error("Not implemented yet.")}subscribe(t){return this.reduxStore.subscribe(t)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}}const _i=Symbol("elementInternals");var Hi,Gi,Vi;const qi=navigator.vendor&&!!navigator.vendor.match(/apple/i)||"[object SafariRemoteNotification]"===(null!==(Vi=null===(Gi=null===(Hi=window.safari)||void 0===Hi?void 0:Hi.pushNotification)||void 0===Gi?void 0:Gi.toString())&&void 0!==Vi?Vi:""),Yi=Et`
|
|
126
126
|
.ft-search-result-metadata--container {
|
|
127
127
|
position: relative;
|
|
128
128
|
}
|
|
@@ -138,7 +138,7 @@ let Se=class extends zt{constructor(){super(...arguments),this.renderOptions={ho
|
|
|
138
138
|
`,gr=Zi.get({name:"ft-app-info",reducers:{},initialState:{baseUrl:void 0,apiIntegrationIdentifier:void 0,uiLocale:document.documentElement.lang||"en-US",availableUiLocales:[],metadataConfiguration:void 0,editorMode:!1,noCustom:!1,noCustomComponent:!1,session:void 0}});class br{static build(t){const{baseUrl:e,apiIntegrationIdentifier:o}=gr.getState(),i=null!=t?t:o;if(e&&i&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(e,i,!0)}static get(t){var e;return null!=t?br.build(t):null!==(e=br.API)&&void 0!==e?e:br.API=br.build()}static await(t){return new Promise((e=>{let o=br.get(t);if(o)e(o);else{const i=gr.subscribe((()=>{o=br.get(t),o&&(i(),e(o))}))}}))}}var mr;const vr=Symbol("clearAfterUnitTest");class xr{constructor(t){this.messageContextProvider=t,this.defaultMessages={},this.cache=new i,this.listeners={},this.currentUiLocale="",this[mr]=()=>{this.defaultMessages={},this.cache=new i,this.listeners={}},this.currentUiLocale=gr.getState().uiLocale,gr.subscribe((()=>this.clearWhenUiLocaleChanges()))}clearWhenUiLocaleChanges(){const{uiLocale:t}=gr.getState();this.currentUiLocale!==t&&(this.currentUiLocale=t,this.cache.clearAll(),this.notifyAll())}addContext(t){const e=t.name.toLowerCase();this.cache.setFinal(e,t),this.notify(e)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(t,e){var o;if(t=t.toLowerCase(),Object.keys(e).length>0){const i={...null!==(o=this.defaultMessages[t])&&void 0!==o?o:{},...e};A(this.defaultMessages[t],i)||(this.defaultMessages[t]=i,await this.notify(t))}await this.fetchContext(t)}resolveMessage(t,e,...o){var i,r,n;t=t.toLowerCase(),this.fetchContext(t);const a=null!==(r=null===(i=this.cache.getNow(t))||void 0===i?void 0:i.messages)&&void 0!==r?r:{};return new _e(null!==(n=this.defaultMessages[t])&&void 0!==n?n:{},a).resolve(e,...o)}async fetchContext(t){if(!this.cache.has(t))try{await this.cache.get(t,(()=>this.messageContextProvider(this.currentUiLocale,t))),await this.notify(t)}catch(t){console.error(t)}}subscribe(t,e){var o;return t=t.toLowerCase(),this.listeners[t]=null!==(o=this.listeners[t])&&void 0!==o?o:new Set,this.listeners[t].add(e),()=>{var o;return null===(o=this.listeners[t])||void 0===o?void 0:o.delete(e)}}async notifyAll(){await Promise.all(Object.keys(this.listeners).map((t=>this.notify(t))))}async notify(t){null!=this.listeners[t]&&await Promise.all([...this.listeners[t].values()].map((t=>{return(e=0,new Promise((t=>setTimeout(t,e)))).then((()=>t())).catch((()=>null));var e})))}}mr=vr,null==window.FluidTopicsI18nService&&(window.FluidTopicsI18nService=new xr((async(t,e)=>(await br.await()).getFluidTopicsMessageContext(t,e)))),null==window.FluidTopicsCustomI18nService&&(window.FluidTopicsCustomI18nService=new xr((async(t,e)=>(await br.await()).getCustomMessageContext(t,e))));const Or=window.FluidTopicsI18nService,wr=window.FluidTopicsCustomI18nService;var Sr=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class Nr extends De{constructor(){super(...arguments),this.apiIntegrationIdentifier="ft-integration",this.uiLocale="en-US",this.editorMode=!1,this.noCustom=!1,this.noCustomComponent=!1,this.withManualResources=!1,this.messageContexts=[],this.apiProvider=()=>br.get(),this.cache=new i,this.cleanSessionDebouncer=new r}render(){return le`
|
|
139
139
|
<slot></slot>
|
|
140
140
|
`}update(t){super.update(t),t.has("baseUrl")&&gr.actions.baseUrl(this.baseUrl),t.has("apiIntegrationIdentifier")&&gr.actions.apiIntegrationIdentifier(this.apiIntegrationIdentifier),t.has("uiLocale")&&gr.actions.uiLocale(this.uiLocale),t.has("metadataConfiguration")&&gr.actions.metadataConfiguration(this.metadataConfiguration),t.has("noCustom")&&gr.actions.noCustom(this.noCustom),t.has("editorMode")&&gr.actions.editorMode(this.editorMode),t.has("noCustomComponent")&&gr.actions.noCustomComponent(this.noCustomComponent),t.has("session")&&gr.actions.session(this.session),t.has("availableUiLocales")&&gr.actions.availableUiLocales(Array.isArray(this.availableUiLocales)?this.availableUiLocales:[]),t.has("messageContexts")&&null!=this.messageContexts&&this.messageContexts.forEach((t=>Or.addContext(t))),setTimeout((()=>this.updateIfNeeded()))}async updateIfNeeded(){!this.withManualResources&&this.apiProvider()&&(null==this.session&&this.updateSession(),null==this.availableUiLocales&&this.updateUiLocales(),null==this.metadataConfiguration&&this.updateMetadataConfiguration())}async updateSession(){this.session=await this.cache.get("session",(async()=>{const t=await this.apiProvider().getCurrentSession();return t.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run((()=>{this.cache.clear("session"),this.session=void 0}),t.idleTimeoutInMillis),t}))}async updateUiLocales(){this.availableUiLocales=await this.cache.get("availableUiLocales",(()=>this.apiProvider().getAvailableUiLocales()))}async updateMetadataConfiguration(){this.metadataConfiguration=await this.cache.get("metadataConfiguration",(()=>this.apiProvider().getMetadataConfiguration()))}}Nr.elementDefinitions={},Nr.styles=yr,Sr([R()],Nr.prototype,"baseUrl",void 0),Sr([R()],Nr.prototype,"apiIntegrationIdentifier",void 0),Sr([R()],Nr.prototype,"uiLocale",void 0),Sr([j(null)],Nr.prototype,"availableUiLocales",void 0),Sr([j(null)],Nr.prototype,"metadataConfiguration",void 0),Sr([R({type:Boolean})],Nr.prototype,"editorMode",void 0),Sr([R({type:Boolean})],Nr.prototype,"noCustom",void 0),Sr([R({converter:{fromAttribute:t=>"false"!==t&&("true"===t||null!=t&&t)}})],Nr.prototype,"noCustomComponent",void 0),Sr([R({type:Boolean})],Nr.prototype,"withManualResources",void 0),Sr([j([])],Nr.prototype,"messageContexts",void 0),Sr([j(void 0)],Nr.prototype,"session",void 0),Sr([R({type:Object})],Nr.prototype,"apiProvider",void 0);class Cr{async listMySearches(){var t;return(null===(t=gr.getState().session)||void 0===t?void 0:t.sessionAuthenticated)?(await br.await()).listMySearches(gr.getState().session.profile.userId):[]}}const Er=new i;class $r{async listMyBookmarks(){return Er.get("bookmarks",(async()=>(await br.await()).listMyBookmarks(gr.getState().session.profile.userId)))}clearCache(){Er.clear("bookmarks")}}const Rr=Zi.get({name:"ft-user-assets",initialState:{savedSearches:void 0,bookmarks:void 0}});new class{constructor(){this.currentSession=gr.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new $r,gr.subscribe((()=>this.reloadWhenUserSessionChanges()))}reloadWhenUserSessionChanges(){var t;const{session:e}=gr.getState();A(null===(t=this.currentSession)||void 0===t?void 0:t.profile,null==e?void 0:e.profile)||(this.currentSession=e,this.clearMySearches(),this.reloadBookmarks())}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){Rr.actions.savedSearches(void 0)}clearMyBookmarks(){Rr.actions.bookmarks(void 0)}async reloadMySearches(){const t=new Cr,e=await t.listMySearches();Rr.actions.savedSearches(e)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var t;if(this.bookmarksAreUsed){const e=(null===(t=this.currentSession)||void 0===t?void 0:t.sessionAuthenticated)?await this.bookmarksService.listMyBookmarks():void 0;Rr.actions.bookmarks(e)}}},W("ft-app-context")(Nr);class kr extends Event{constructor(){super(kr.eventName)}}kr.eventName="search-context-clear-all-filters";var Ur=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class Ir extends Event{constructor(){super("register-ft-search-component",{bubbles:!0,composed:!0})}}const Lr=Symbol("registerInterval");class Ar extends(function(t){var e;class o extends t{constructor(){super(...arguments),this[e]=0}setSearchStateManager(t){this.clearStateManager(),this.stateManager=t,this.addStore(t.store,"search")}clearStateManager(){this.stateManager&&(this.removeStore(this.stateManager.store),this.stateManager=void 0)}connectedCallback(){super.connectedCallback(),this[Lr]=window.setInterval((()=>this.tryToRegisterToContext()),50)}tryToRegisterToContext(){null!=this.stateManager?window.clearInterval(this[Lr]):this.dispatchEvent(new Ir)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return e=Lr,Ur([k()],o.prototype,"stateManager",void 0),o}(eo)){}var Wr=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class jr extends Event{constructor(){super("register-ft-search-result-component",{bubbles:!0,composed:!0})}}const Pr=Symbol("registerInterval");class Mr extends(function(t){var e;class o extends t{constructor(){super(...arguments),this[e]=0}setResultStateManager(t){this.resultStateManager=t}unregisterResultStateManager(){this.resultStateManager&&(this.resultStateManager.unregisterComponent(this),this.resultStateManager=void 0)}connectedCallback(){super.connectedCallback(),this[Pr]=window.setInterval((()=>this.tryToRegisterToResultContext()),50)}tryToRegisterToResultContext(){null!=this.result?window.clearInterval(this[Pr]):this.dispatchEvent(new jr)}disconnectedCallback(){super.disconnectedCallback(),this.unregisterResultStateManager()}}return e=Pr,Wr([R({attribute:!1})],o.prototype,"cluster",void 0),Wr([R({attribute:!1})],o.prototype,"result",void 0),Wr([R({attribute:!1,type:Number})],o.prototype,"rank",void 0),o}(Ar)){}const Fr=Et`
|
|
141
|
-
`;var
|
|
141
|
+
`;var Kr=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};const Br=Symbol("i18nProperties"),Dr=Symbol("i18nUnsubs");function zr(t){var e;class o extends t{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[e]=new Map}get i18nService(){return this.useCustomMessageContexts?wr:Or}i18n(t,e,...o){var i;if("string"==typeof t)return this.i18nService.resolveMessage(t,e,...o);const r=null!==(i=t.args)&&void 0!==i?i:t.argsProvider?t.argsProvider(this):[];return this.i18nService.resolveMessage(t.context,t.key,...r)}onI18nUpdate(t){var e;null===(e=this[Br])||void 0===e||e.forEach(((e,o)=>{e.context.toLowerCase()===t.toLowerCase()&&(this[o]=this.i18n(e))})),setTimeout((()=>this.requestUpdate()),0)}update(t){var e;super.update(t),null===(e=this[Br])||void 0===e||e.forEach(((t,e)=>{null!=t.argsProvider&&(this[e]=this.i18n(t))}))}connectedCallback(){super.connectedCallback(),null!=this[Br]&&new Set([...this[Br].values()].map((t=>t.context))).forEach((t=>this.addI18nMessages(t)))}addI18nMessages(t,e){t=t.toLowerCase(),this[Dr].has(t)||this[Dr].set(t,this.i18nService.subscribe(t,(()=>this.onI18nUpdate(t)))),this.i18nService.prepareContext(t,null!=e?e:{})}addI18nContext(t,e){this.addI18nMessages(t.name,e)}disconnectedCallback(){super.disconnectedCallback(),this[Dr].forEach((t=>t())),this[Dr].clear()}}return e=Dr,Kr([R({type:Boolean})],o.prototype,"useCustomMessageContexts",void 0),o}class Tr extends(zr(De)){}class Zr extends(zr(eo)){}var _r=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class Hr extends Zr{constructor(){super(),this.editorMode=!1,this.addStore(gr)}render(){return this.key&&this.context?le`
|
|
142
142
|
<span class="ft-i18n">
|
|
143
143
|
${this.i18n(this.context,this.key,...Array.isArray(this.args)?this.args:[])}
|
|
144
144
|
</span>
|
|
@@ -147,7 +147,7 @@ let Se=class extends zt{constructor(){super(...arguments),this.renderOptions={ho
|
|
|
147
147
|
* @license
|
|
148
148
|
* Copyright 2020 Google LLC
|
|
149
149
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
150
|
-
*/var tn;!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"}(tn||(tn={}));const en=Ee.extend("--ft-typography-font-family","",Le.titleFont),on=Ee.extend("--ft-typography-font-family","",Le.contentFont),rn={fontFamily:on,fontSize:Ee.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:Ee.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:Ee.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:Ee.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:Ee.create("--ft-typography-text-transform","","UNKNOWN","inherit")},nn=Ee.extend("--ft-typography-title-font-family","",en),an=Ee.extend("--ft-typography-title-font-size","",rn.fontSize,"20px"),sn=Ee.extend("--ft-typography-title-font-weight","",rn.fontWeight,"normal"),ln=Ee.extend("--ft-typography-title-letter-spacing","",rn.letterSpacing,"0.15px"),cn=Ee.extend("--ft-typography-title-line-height","",rn.lineHeight,"1.2"),fn=Ee.extend("--ft-typography-title-text-transform","",rn.textTransform,"inherit"),hn=Ee.extend("--ft-typography-title-dense-font-family","",en),un=Ee.extend("--ft-typography-title-dense-font-size","",rn.fontSize,"14px"),pn=Ee.extend("--ft-typography-title-dense-font-weight","",rn.fontWeight,"normal"),dn=Ee.extend("--ft-typography-title-dense-letter-spacing","",rn.letterSpacing,"0.105px"),yn=Ee.extend("--ft-typography-title-dense-line-height","",rn.lineHeight,"1.7"),gn=Ee.extend("--ft-typography-title-dense-text-transform","",rn.textTransform,"inherit"),bn=Ee.extend("--ft-typography-subtitle1-font-family","",on),mn=Ee.extend("--ft-typography-subtitle1-font-size","",rn.fontSize,"16px"),vn=Ee.extend("--ft-typography-subtitle1-font-weight","",rn.fontWeight,"600"),xn=Ee.extend("--ft-typography-subtitle1-letter-spacing","",rn.letterSpacing,"0.144px"),On=Ee.extend("--ft-typography-subtitle1-line-height","",rn.lineHeight,"1.5"),wn=Ee.extend("--ft-typography-subtitle1-text-transform","",rn.textTransform,"inherit"),Sn=Ee.extend("--ft-typography-subtitle2-font-family","",on),Nn=Ee.extend("--ft-typography-subtitle2-font-size","",rn.fontSize,"14px"),Cn=Ee.extend("--ft-typography-subtitle2-font-weight","",rn.fontWeight,"normal"),En=Ee.extend("--ft-typography-subtitle2-letter-spacing","",rn.letterSpacing,"0.098px"),$n=Ee.extend("--ft-typography-subtitle2-line-height","",rn.lineHeight,"1.7"),Rn=Ee.extend("--ft-typography-subtitle2-text-transform","",rn.textTransform,"inherit"),kn=Ee.extend("--ft-typography-body1-font-family","",on),Un=Ee.extend("--ft-typography-body1-font-size","",rn.fontSize,"16px"),In=Ee.extend("--ft-typography-body1-font-weight","",rn.fontWeight,"normal"),Ln=Ee.extend("--ft-typography-body1-letter-spacing","",rn.letterSpacing,"0.496px"),An=Ee.extend("--ft-typography-body1-line-height","",rn.lineHeight,"1.5"),Wn=Ee.extend("--ft-typography-body1-text-transform","",rn.textTransform,"inherit"),jn={fontFamily:Ee.extend("--ft-typography-body2-font-family","",on),fontSize:Ee.extend("--ft-typography-body2-font-size","",rn.fontSize,"14px"),fontWeight:Ee.extend("--ft-typography-body2-font-weight","",rn.fontWeight,"normal"),letterSpacing:Ee.extend("--ft-typography-body2-letter-spacing","",rn.letterSpacing,"0.252px"),lineHeight:Ee.extend("--ft-typography-body2-line-height","",rn.lineHeight,"1.4"),textTransform:Ee.extend("--ft-typography-body2-text-transform","",rn.textTransform,"inherit")},Pn=Ee.extend("--ft-typography-caption-font-family","",on),Mn=Ee.extend("--ft-typography-caption-font-size","",rn.fontSize,"12px"),Fn=Ee.extend("--ft-typography-caption-font-weight","",rn.fontWeight,"normal"),
|
|
150
|
+
*/var tn;!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"}(tn||(tn={}));const en=Ee.extend("--ft-typography-font-family","",Le.titleFont),on=Ee.extend("--ft-typography-font-family","",Le.contentFont),rn={fontFamily:on,fontSize:Ee.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:Ee.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:Ee.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:Ee.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:Ee.create("--ft-typography-text-transform","","UNKNOWN","inherit")},nn=Ee.extend("--ft-typography-title-font-family","",en),an=Ee.extend("--ft-typography-title-font-size","",rn.fontSize,"20px"),sn=Ee.extend("--ft-typography-title-font-weight","",rn.fontWeight,"normal"),ln=Ee.extend("--ft-typography-title-letter-spacing","",rn.letterSpacing,"0.15px"),cn=Ee.extend("--ft-typography-title-line-height","",rn.lineHeight,"1.2"),fn=Ee.extend("--ft-typography-title-text-transform","",rn.textTransform,"inherit"),hn=Ee.extend("--ft-typography-title-dense-font-family","",en),un=Ee.extend("--ft-typography-title-dense-font-size","",rn.fontSize,"14px"),pn=Ee.extend("--ft-typography-title-dense-font-weight","",rn.fontWeight,"normal"),dn=Ee.extend("--ft-typography-title-dense-letter-spacing","",rn.letterSpacing,"0.105px"),yn=Ee.extend("--ft-typography-title-dense-line-height","",rn.lineHeight,"1.7"),gn=Ee.extend("--ft-typography-title-dense-text-transform","",rn.textTransform,"inherit"),bn=Ee.extend("--ft-typography-subtitle1-font-family","",on),mn=Ee.extend("--ft-typography-subtitle1-font-size","",rn.fontSize,"16px"),vn=Ee.extend("--ft-typography-subtitle1-font-weight","",rn.fontWeight,"600"),xn=Ee.extend("--ft-typography-subtitle1-letter-spacing","",rn.letterSpacing,"0.144px"),On=Ee.extend("--ft-typography-subtitle1-line-height","",rn.lineHeight,"1.5"),wn=Ee.extend("--ft-typography-subtitle1-text-transform","",rn.textTransform,"inherit"),Sn=Ee.extend("--ft-typography-subtitle2-font-family","",on),Nn=Ee.extend("--ft-typography-subtitle2-font-size","",rn.fontSize,"14px"),Cn=Ee.extend("--ft-typography-subtitle2-font-weight","",rn.fontWeight,"normal"),En=Ee.extend("--ft-typography-subtitle2-letter-spacing","",rn.letterSpacing,"0.098px"),$n=Ee.extend("--ft-typography-subtitle2-line-height","",rn.lineHeight,"1.7"),Rn=Ee.extend("--ft-typography-subtitle2-text-transform","",rn.textTransform,"inherit"),kn=Ee.extend("--ft-typography-body1-font-family","",on),Un=Ee.extend("--ft-typography-body1-font-size","",rn.fontSize,"16px"),In=Ee.extend("--ft-typography-body1-font-weight","",rn.fontWeight,"normal"),Ln=Ee.extend("--ft-typography-body1-letter-spacing","",rn.letterSpacing,"0.496px"),An=Ee.extend("--ft-typography-body1-line-height","",rn.lineHeight,"1.5"),Wn=Ee.extend("--ft-typography-body1-text-transform","",rn.textTransform,"inherit"),jn={fontFamily:Ee.extend("--ft-typography-body2-font-family","",on),fontSize:Ee.extend("--ft-typography-body2-font-size","",rn.fontSize,"14px"),fontWeight:Ee.extend("--ft-typography-body2-font-weight","",rn.fontWeight,"normal"),letterSpacing:Ee.extend("--ft-typography-body2-letter-spacing","",rn.letterSpacing,"0.252px"),lineHeight:Ee.extend("--ft-typography-body2-line-height","",rn.lineHeight,"1.4"),textTransform:Ee.extend("--ft-typography-body2-text-transform","",rn.textTransform,"inherit")},Pn=Ee.extend("--ft-typography-caption-font-family","",on),Mn=Ee.extend("--ft-typography-caption-font-size","",rn.fontSize,"12px"),Fn=Ee.extend("--ft-typography-caption-font-weight","",rn.fontWeight,"normal"),Kn=Ee.extend("--ft-typography-caption-letter-spacing","",rn.letterSpacing,"0.396px"),Bn=Ee.extend("--ft-typography-caption-line-height","",rn.lineHeight,"1.33"),Dn=Ee.extend("--ft-typography-caption-text-transform","",rn.textTransform,"inherit"),zn=Ee.extend("--ft-typography-breadcrumb-font-family","",on),Tn=Ee.extend("--ft-typography-breadcrumb-font-size","",rn.fontSize,"10px"),Zn=Ee.extend("--ft-typography-breadcrumb-font-weight","",rn.fontWeight,"normal"),_n=Ee.extend("--ft-typography-breadcrumb-letter-spacing","",rn.letterSpacing,"0.33px"),Hn=Ee.extend("--ft-typography-breadcrumb-line-height","",rn.lineHeight,"1.6"),Gn=Ee.extend("--ft-typography-breadcrumb-text-transform","",rn.textTransform,"inherit"),Vn=Ee.extend("--ft-typography-overline-font-family","",on),qn=Ee.extend("--ft-typography-overline-font-size","",rn.fontSize,"10px"),Yn=Ee.extend("--ft-typography-overline-font-weight","",rn.fontWeight,"normal"),Xn=Ee.extend("--ft-typography-overline-letter-spacing","",rn.letterSpacing,"1.5px"),Jn=Ee.extend("--ft-typography-overline-line-height","",rn.lineHeight,"1.6"),Qn=Ee.extend("--ft-typography-overline-text-transform","",rn.textTransform,"uppercase"),ta={fontFamily:Ee.extend("--ft-typography-button-font-family","",on),fontSize:Ee.extend("--ft-typography-button-font-size","",rn.fontSize,"14px"),fontWeight:Ee.extend("--ft-typography-button-font-weight","",rn.fontWeight,"600"),letterSpacing:Ee.extend("--ft-typography-button-letter-spacing","",rn.letterSpacing,"1.246px"),lineHeight:Ee.extend("--ft-typography-button-line-height","",rn.lineHeight,"1.15"),textTransform:Ee.extend("--ft-typography-button-text-transform","",rn.textTransform,"uppercase")},ea=Et`
|
|
151
151
|
.ft-typography--title {
|
|
152
152
|
font-family: ${nn};
|
|
153
153
|
font-size: ${an};
|
|
@@ -207,8 +207,8 @@ let Se=class extends zt{constructor(){super(...arguments),this.renderOptions={ho
|
|
|
207
207
|
font-family: ${Pn};
|
|
208
208
|
font-size: ${Mn};
|
|
209
209
|
font-weight: ${Fn};
|
|
210
|
-
letter-spacing: ${
|
|
211
|
-
line-height: ${
|
|
210
|
+
letter-spacing: ${Kn};
|
|
211
|
+
line-height: ${Bn};
|
|
212
212
|
text-transform: ${Dn};
|
|
213
213
|
}
|
|
214
214
|
`,la=Et`
|
|
@@ -287,7 +287,7 @@ let Se=class extends zt{constructor(){super(...arguments),this.renderOptions={ho
|
|
|
287
287
|
position: relative;
|
|
288
288
|
word-break: break-word;
|
|
289
289
|
}
|
|
290
|
-
`,wa=["start","end"],Sa=["top","right","bottom","left"].reduce(((t,e)=>t.concat(e,e+"-"+wa[0],e+"-"+wa[1])),[]),Na=Math.min,Ca=Math.max,Ea=Math.round,$a=t=>({x:t,y:t}),Ra={left:"right",right:"left",bottom:"top",top:"bottom"},ka={start:"end",end:"start"};function Ua(t,e,o){return Ca(t,Na(e,o))}function Ia(t,e){return"function"==typeof t?t(e):t}function La(t){return t.split("-")[0]}function Aa(t){return t.split("-")[1]}function Wa(t){return"x"===t?"y":"x"}function ja(t){return"y"===t?"height":"width"}function Pa(t){return["top","bottom"].includes(La(t))?"y":"x"}function Ma(t){return Wa(Pa(t))}function Fa(t){return t.replace(/left|right|bottom|top/g,(t=>Ra[t]))}function Ba(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}function Ka(t,e,o){let{reference:i,floating:r}=t;const n=Pa(e),a=Ma(e),s=ja(a),l=La(e),c="y"===n,f=i.x+i.width/2-r.width/2,h=i.y+i.height/2-r.height/2,u=i[s]/2-r[s]/2;let p;switch(l){case"top":p={x:f,y:i.y-r.height};break;case"bottom":p={x:f,y:i.y+i.height};break;case"right":p={x:i.x+i.width,y:h};break;case"left":p={x:i.x-r.width,y:h};break;default:p={x:i.x,y:i.y}}switch(Aa(e)){case"start":p[a]-=u*(o&&c?-1:1);break;case"end":p[a]+=u*(o&&c?-1:1)}return p}async function Da(t,e){var o;void 0===e&&(e={});const{x:i,y:r,platform:n,rects:a,elements:s,strategy:l}=t,{boundary:c="clippingAncestors",rootBoundary:f="viewport",elementContext:h="floating",altBoundary:u=!1,padding:p=0}=Ia(e,t),d=function(t){return"number"!=typeof t?function(t){return{top:0,right:0,bottom:0,left:0,...t}}(t):{top:t,right:t,bottom:t,left:t}}(p),y=s[u?"floating"===h?"reference":"floating":h],g=Ba(await n.getClippingRect({element:null==(o=await(null==n.isElement?void 0:n.isElement(y)))||o?y:y.contextElement||await(null==n.getDocumentElement?void 0:n.getDocumentElement(s.floating)),boundary:c,rootBoundary:f,strategy:l})),b="floating"===h?{...a.floating,x:i,y:r}:a.reference,m=await(null==n.getOffsetParent?void 0:n.getOffsetParent(s.floating)),v=await(null==n.isElement?void 0:n.isElement(m))&&await(null==n.getScale?void 0:n.getScale(m))||{x:1,y:1},x=Ba(n.convertOffsetParentRelativeRectToViewportRelativeRect?await n.convertOffsetParentRelativeRectToViewportRelativeRect({rect:b,offsetParent:m,strategy:l}):b);return{top:(g.top-x.top+d.top)/v.y,bottom:(x.bottom-g.bottom+d.bottom)/v.y,left:(g.left-x.left+d.left)/v.x,right:(x.right-g.right+d.right)/v.x}}function za(t,e,o){return(t?[...o.filter((e=>Aa(e)===t)),...o.filter((e=>Aa(e)!==t))]:o.filter((t=>La(t)===t))).filter((o=>!t||(Aa(o)===t||!!e&&function(t){return t.replace(/start|end/g,(t=>ka[t]))}(o)!==o)))}const Ta=function(t){return void 0===t&&(t={}),{name:"autoPlacement",options:t,async fn(e){var o,i,r;const{rects:n,middlewareData:a,placement:s,platform:l,elements:c}=e,{crossAxis:f=!1,alignment:h,allowedPlacements:u=Sa,autoAlignment:p=!0,...d}=Ia(t,e),y=void 0!==h||u===Sa?za(h||null,p,u):u,g=await Da(e,d),b=(null==(o=a.autoPlacement)?void 0:o.index)||0,m=y[b];if(null==m)return{};const v=function(t,e,o){void 0===o&&(o=!1);const i=Aa(t),r=Ma(t),n=ja(r);let a="x"===r?i===(o?"end":"start")?"right":"left":"start"===i?"bottom":"top";return e.reference[n]>e.floating[n]&&(a=Fa(a)),[a,Fa(a)]}(m,n,await(null==l.isRTL?void 0:l.isRTL(c.floating)));if(s!==m)return{reset:{placement:y[0]}};const x=[g[La(m)],g[v[0]],g[v[1]]],O=[...(null==(i=a.autoPlacement)?void 0:i.overflows)||[],{placement:m,overflows:x}],w=y[b+1];if(w)return{data:{index:b+1,overflows:O},reset:{placement:w}};const S=O.map((t=>{const e=Aa(t.placement);return[t.placement,e&&f?t.overflows.slice(0,2).reduce(((t,e)=>t+e),0):t.overflows[0],t.overflows]})).sort(((t,e)=>t[1]-e[1])),N=S.filter((t=>t[2].slice(0,Aa(t[0])?2:3).every((t=>t<=0)))),C=(null==(r=N[0])?void 0:r[0])||S[0][0];return C!==s?{data:{index:b+1,overflows:O},reset:{placement:C}}:{}}}},Za=function(t){return void 0===t&&(t={}),{name:"shift",options:t,async fn(e){const{x:o,y:i,placement:r}=e,{mainAxis:n=!0,crossAxis:a=!1,limiter:s={fn:t=>{let{x:e,y:o}=t;return{x:e,y:o}}},...l}=Ia(t,e),c={x:o,y:i},f=await Da(e,l),h=Pa(La(r)),u=Wa(h);let p=c[u],d=c[h];if(n){const t="y"===u?"bottom":"right";p=Ua(p+f["y"===u?"top":"left"],p,p-f[t])}if(a){const t="y"===h?"bottom":"right";d=Ua(d+f["y"===h?"top":"left"],d,d-f[t])}const y=s.fn({...e,[u]:p,[h]:d});return{...y,data:{x:y.x-o,y:y.y-i}}}}};function _a(t){return Va(t)?(t.nodeName||"").toLowerCase():"#document"}function Ha(t){var e;return(null==t||null==(e=t.ownerDocument)?void 0:e.defaultView)||window}function Ga(t){var e;return null==(e=(Va(t)?t.ownerDocument:t.document)||window.document)?void 0:e.documentElement}function Va(t){return t instanceof Node||t instanceof Ha(t).Node}function qa(t){return t instanceof Element||t instanceof Ha(t).Element}function Ya(t){return t instanceof HTMLElement||t instanceof Ha(t).HTMLElement}function Xa(t){return"undefined"!=typeof ShadowRoot&&(t instanceof ShadowRoot||t instanceof Ha(t).ShadowRoot)}function Ja(t){const{overflow:e,overflowX:o,overflowY:i,display:r}=is(t);return/auto|scroll|overlay|hidden|clip/.test(e+i+o)&&!["inline","contents"].includes(r)}function Qa(t){return["table","td","th"].includes(_a(t))}function ts(t){const e=es(),o=is(t);return"none"!==o.transform||"none"!==o.perspective||!!o.containerType&&"normal"!==o.containerType||!e&&!!o.backdropFilter&&"none"!==o.backdropFilter||!e&&!!o.filter&&"none"!==o.filter||["transform","perspective","filter"].some((t=>(o.willChange||"").includes(t)))||["paint","layout","strict","content"].some((t=>(o.contain||"").includes(t)))}function es(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function os(t){return["html","body","#document"].includes(_a(t))}function is(t){return Ha(t).getComputedStyle(t)}function rs(t){return qa(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function ns(t){if("html"===_a(t))return t;const e=t.assignedSlot||t.parentNode||Xa(t)&&t.host||Ga(t);return Xa(e)?e.host:e}function as(t){const e=ns(t);return os(e)?t.ownerDocument?t.ownerDocument.body:t.body:Ya(e)&&Ja(e)?e:as(e)}function ss(t,e,o){var i;void 0===e&&(e=[]),void 0===o&&(o=!0);const r=as(t),n=r===(null==(i=t.ownerDocument)?void 0:i.body),a=Ha(r);return n?e.concat(a,a.visualViewport||[],Ja(r)?r:[],a.frameElement&&o?ss(a.frameElement):[]):e.concat(r,ss(r,[],o))}function ls(t){const e=is(t);let o=parseFloat(e.width)||0,i=parseFloat(e.height)||0;const r=Ya(t),n=r?t.offsetWidth:o,a=r?t.offsetHeight:i,s=Ea(o)!==n||Ea(i)!==a;return s&&(o=n,i=a),{width:o,height:i,$:s}}function cs(t){return qa(t)?t:t.contextElement}function fs(t){const e=cs(t);if(!Ya(e))return $a(1);const o=e.getBoundingClientRect(),{width:i,height:r,$:n}=ls(e);let a=(n?Ea(o.width):o.width)/i,s=(n?Ea(o.height):o.height)/r;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}const hs=$a(0);function us(t){const e=Ha(t);return es()&&e.visualViewport?{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}:hs}function ps(t,e,o,i){void 0===e&&(e=!1),void 0===o&&(o=!1);const r=t.getBoundingClientRect(),n=cs(t);let a=$a(1);e&&(i?qa(i)&&(a=fs(i)):a=fs(t));const s=function(t,e,o){return void 0===e&&(e=!1),!(!o||e&&o!==Ha(t))&&e}(n,o,i)?us(n):$a(0);let l=(r.left+s.x)/a.x,c=(r.top+s.y)/a.y,f=r.width/a.x,h=r.height/a.y;if(n){const t=Ha(n),e=i&&qa(i)?Ha(i):i;let o=t.frameElement;for(;o&&i&&e!==t;){const t=fs(o),e=o.getBoundingClientRect(),i=is(o),r=e.left+(o.clientLeft+parseFloat(i.paddingLeft))*t.x,n=e.top+(o.clientTop+parseFloat(i.paddingTop))*t.y;l*=t.x,c*=t.y,f*=t.x,h*=t.y,l+=r,c+=n,o=Ha(o).frameElement}}return Ba({width:f,height:h,x:l,y:c})}function ds(t){return ps(Ga(t)).left+rs(t).scrollLeft}function ys(t,e,o){let i;if("viewport"===e)i=function(t,e){const o=Ha(t),i=Ga(t),r=o.visualViewport;let n=i.clientWidth,a=i.clientHeight,s=0,l=0;if(r){n=r.width,a=r.height;const t=es();(!t||t&&"fixed"===e)&&(s=r.offsetLeft,l=r.offsetTop)}return{width:n,height:a,x:s,y:l}}(t,o);else if("document"===e)i=function(t){const e=Ga(t),o=rs(t),i=t.ownerDocument.body,r=Ca(e.scrollWidth,e.clientWidth,i.scrollWidth,i.clientWidth),n=Ca(e.scrollHeight,e.clientHeight,i.scrollHeight,i.clientHeight);let a=-o.scrollLeft+ds(t);const s=-o.scrollTop;return"rtl"===is(i).direction&&(a+=Ca(e.clientWidth,i.clientWidth)-r),{width:r,height:n,x:a,y:s}}(Ga(t));else if(qa(e))i=function(t,e){const o=ps(t,!0,"fixed"===e),i=o.top+t.clientTop,r=o.left+t.clientLeft,n=Ya(t)?fs(t):$a(1);return{width:t.clientWidth*n.x,height:t.clientHeight*n.y,x:r*n.x,y:i*n.y}}(e,o);else{const o=us(t);i={...e,x:e.x-o.x,y:e.y-o.y}}return Ba(i)}function gs(t,e){const o=ns(t);return!(o===e||!qa(o)||os(o))&&("fixed"===is(o).position||gs(o,e))}function bs(t,e,o){const i=Ya(e),r=Ga(e),n="fixed"===o,a=ps(t,!0,n,e);let s={scrollLeft:0,scrollTop:0};const l=$a(0);if(i||!i&&!n)if(("body"!==_a(e)||Ja(r))&&(s=rs(e)),i){const t=ps(e,!0,n,e);l.x=t.x+e.clientLeft,l.y=t.y+e.clientTop}else r&&(l.x=ds(r));return{x:a.left+s.scrollLeft-l.x,y:a.top+s.scrollTop-l.y,width:a.width,height:a.height}}function ms(t,e){return Ya(t)&&"fixed"!==is(t).position?e?e(t):t.offsetParent:null}function vs(t,e){const o=Ha(t);if(!Ya(t))return o;let i=ms(t,e);for(;i&&Qa(i)&&"static"===is(i).position;)i=ms(i,e);return i&&("html"===_a(i)||"body"===_a(i)&&"static"===is(i).position&&!ts(i))?o:i||function(t){let e=ns(t);for(;Ya(e)&&!os(e);){if(ts(e))return e;e=ns(e)}return null}(t)||o}const xs={convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{rect:e,offsetParent:o,strategy:i}=t;const r=Ya(o),n=Ga(o);if(o===n)return e;let a={scrollLeft:0,scrollTop:0},s=$a(1);const l=$a(0);if((r||!r&&"fixed"!==i)&&(("body"!==_a(o)||Ja(n))&&(a=rs(o)),Ya(o))){const t=ps(o);s=fs(o),l.x=t.x+o.clientLeft,l.y=t.y+o.clientTop}return{width:e.width*s.x,height:e.height*s.y,x:e.x*s.x-a.scrollLeft*s.x+l.x,y:e.y*s.y-a.scrollTop*s.y+l.y}},getDocumentElement:Ga,getClippingRect:function(t){let{element:e,boundary:o,rootBoundary:i,strategy:r}=t;const n="clippingAncestors"===o?function(t,e){const o=e.get(t);if(o)return o;let i=ss(t,[],!1).filter((t=>qa(t)&&"body"!==_a(t))),r=null;const n="fixed"===is(t).position;let a=n?ns(t):t;for(;qa(a)&&!os(a);){const e=is(a),o=ts(a);o||"fixed"!==e.position||(r=null),(n?!o&&!r:!o&&"static"===e.position&&r&&["absolute","fixed"].includes(r.position)||Ja(a)&&!o&&gs(t,a))?i=i.filter((t=>t!==a)):r=e,a=ns(a)}return e.set(t,i),i}(e,this._c):[].concat(o),a=[...n,i],s=a[0],l=a.reduce(((t,o)=>{const i=ys(e,o,r);return t.top=Ca(i.top,t.top),t.right=Na(i.right,t.right),t.bottom=Na(i.bottom,t.bottom),t.left=Ca(i.left,t.left),t}),ys(e,s,r));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}},getOffsetParent:vs,getElementRects:async function(t){let{reference:e,floating:o,strategy:i}=t;const r=this.getOffsetParent||vs,n=this.getDimensions;return{reference:bs(e,await r(o),i),floating:{x:0,y:0,...await n(o)}}},getClientRects:function(t){return Array.from(t.getClientRects())},getDimensions:function(t){return ls(t)},getScale:fs,isElement:qa,isRTL:function(t){return"rtl"===is(t).direction}},Os=(t,e,o)=>{const i=new Map,r={platform:xs,...o},n={...r.platform,_c:i};return(async(t,e,o)=>{const{placement:i="bottom",strategy:r="absolute",middleware:n=[],platform:a}=o,s=n.filter(Boolean),l=await(null==a.isRTL?void 0:a.isRTL(e));let c=await a.getElementRects({reference:t,floating:e,strategy:r}),{x:f,y:h}=Ka(c,i,l),u=i,p={},d=0;for(let o=0;o<s.length;o++){const{name:n,fn:y}=s[o],{x:g,y:b,data:m,reset:v}=await y({x:f,y:h,initialPlacement:i,placement:u,strategy:r,middlewareData:p,rects:c,platform:a,elements:{reference:t,floating:e}});f=null!=g?g:f,h=null!=b?b:h,p={...p,[n]:{...p[n],...m}},v&&d<=50&&(d++,"object"==typeof v&&(v.placement&&(u=v.placement),v.rects&&(c=!0===v.rects?await a.getElementRects({reference:t,floating:e,strategy:r}):v.rects),({x:f,y:h}=Ka(c,u,l))),o=-1)}return{x:f,y:h,placement:u,strategy:r,middlewareData:p}})(t,e,{...r,platform:n})};function ws(t){return function(t){for(let e=t;e;e=Ss(e))if(e instanceof Element&&"none"===getComputedStyle(e).display)return null;for(let e=Ss(t);e;e=Ss(e)){if(!(e instanceof Element))continue;const t=getComputedStyle(e);if("contents"!==t.display){if("static"!==t.position||"none"!==t.filter)return e;if("BODY"===e.tagName)return e}}return null}(t)}function Ss(t){return t.assignedSlot?t.assignedSlot:t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}var Ns=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class Cs extends De{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 r,this.revealDebouncer=new r}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){return le`
|
|
290
|
+
`,wa=["start","end"],Sa=["top","right","bottom","left"].reduce(((t,e)=>t.concat(e,e+"-"+wa[0],e+"-"+wa[1])),[]),Na=Math.min,Ca=Math.max,Ea=Math.round,$a=t=>({x:t,y:t}),Ra={left:"right",right:"left",bottom:"top",top:"bottom"},ka={start:"end",end:"start"};function Ua(t,e,o){return Ca(t,Na(e,o))}function Ia(t,e){return"function"==typeof t?t(e):t}function La(t){return t.split("-")[0]}function Aa(t){return t.split("-")[1]}function Wa(t){return"x"===t?"y":"x"}function ja(t){return"y"===t?"height":"width"}function Pa(t){return["top","bottom"].includes(La(t))?"y":"x"}function Ma(t){return Wa(Pa(t))}function Fa(t){return t.replace(/left|right|bottom|top/g,(t=>Ra[t]))}function Ka(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}function Ba(t,e,o){let{reference:i,floating:r}=t;const n=Pa(e),a=Ma(e),s=ja(a),l=La(e),c="y"===n,f=i.x+i.width/2-r.width/2,h=i.y+i.height/2-r.height/2,u=i[s]/2-r[s]/2;let p;switch(l){case"top":p={x:f,y:i.y-r.height};break;case"bottom":p={x:f,y:i.y+i.height};break;case"right":p={x:i.x+i.width,y:h};break;case"left":p={x:i.x-r.width,y:h};break;default:p={x:i.x,y:i.y}}switch(Aa(e)){case"start":p[a]-=u*(o&&c?-1:1);break;case"end":p[a]+=u*(o&&c?-1:1)}return p}async function Da(t,e){var o;void 0===e&&(e={});const{x:i,y:r,platform:n,rects:a,elements:s,strategy:l}=t,{boundary:c="clippingAncestors",rootBoundary:f="viewport",elementContext:h="floating",altBoundary:u=!1,padding:p=0}=Ia(e,t),d=function(t){return"number"!=typeof t?function(t){return{top:0,right:0,bottom:0,left:0,...t}}(t):{top:t,right:t,bottom:t,left:t}}(p),y=s[u?"floating"===h?"reference":"floating":h],g=Ka(await n.getClippingRect({element:null==(o=await(null==n.isElement?void 0:n.isElement(y)))||o?y:y.contextElement||await(null==n.getDocumentElement?void 0:n.getDocumentElement(s.floating)),boundary:c,rootBoundary:f,strategy:l})),b="floating"===h?{...a.floating,x:i,y:r}:a.reference,m=await(null==n.getOffsetParent?void 0:n.getOffsetParent(s.floating)),v=await(null==n.isElement?void 0:n.isElement(m))&&await(null==n.getScale?void 0:n.getScale(m))||{x:1,y:1},x=Ka(n.convertOffsetParentRelativeRectToViewportRelativeRect?await n.convertOffsetParentRelativeRectToViewportRelativeRect({rect:b,offsetParent:m,strategy:l}):b);return{top:(g.top-x.top+d.top)/v.y,bottom:(x.bottom-g.bottom+d.bottom)/v.y,left:(g.left-x.left+d.left)/v.x,right:(x.right-g.right+d.right)/v.x}}function za(t,e,o){return(t?[...o.filter((e=>Aa(e)===t)),...o.filter((e=>Aa(e)!==t))]:o.filter((t=>La(t)===t))).filter((o=>!t||(Aa(o)===t||!!e&&function(t){return t.replace(/start|end/g,(t=>ka[t]))}(o)!==o)))}const Ta=function(t){return void 0===t&&(t={}),{name:"autoPlacement",options:t,async fn(e){var o,i,r;const{rects:n,middlewareData:a,placement:s,platform:l,elements:c}=e,{crossAxis:f=!1,alignment:h,allowedPlacements:u=Sa,autoAlignment:p=!0,...d}=Ia(t,e),y=void 0!==h||u===Sa?za(h||null,p,u):u,g=await Da(e,d),b=(null==(o=a.autoPlacement)?void 0:o.index)||0,m=y[b];if(null==m)return{};const v=function(t,e,o){void 0===o&&(o=!1);const i=Aa(t),r=Ma(t),n=ja(r);let a="x"===r?i===(o?"end":"start")?"right":"left":"start"===i?"bottom":"top";return e.reference[n]>e.floating[n]&&(a=Fa(a)),[a,Fa(a)]}(m,n,await(null==l.isRTL?void 0:l.isRTL(c.floating)));if(s!==m)return{reset:{placement:y[0]}};const x=[g[La(m)],g[v[0]],g[v[1]]],O=[...(null==(i=a.autoPlacement)?void 0:i.overflows)||[],{placement:m,overflows:x}],w=y[b+1];if(w)return{data:{index:b+1,overflows:O},reset:{placement:w}};const S=O.map((t=>{const e=Aa(t.placement);return[t.placement,e&&f?t.overflows.slice(0,2).reduce(((t,e)=>t+e),0):t.overflows[0],t.overflows]})).sort(((t,e)=>t[1]-e[1])),N=S.filter((t=>t[2].slice(0,Aa(t[0])?2:3).every((t=>t<=0)))),C=(null==(r=N[0])?void 0:r[0])||S[0][0];return C!==s?{data:{index:b+1,overflows:O},reset:{placement:C}}:{}}}},Za=function(t){return void 0===t&&(t={}),{name:"shift",options:t,async fn(e){const{x:o,y:i,placement:r}=e,{mainAxis:n=!0,crossAxis:a=!1,limiter:s={fn:t=>{let{x:e,y:o}=t;return{x:e,y:o}}},...l}=Ia(t,e),c={x:o,y:i},f=await Da(e,l),h=Pa(La(r)),u=Wa(h);let p=c[u],d=c[h];if(n){const t="y"===u?"bottom":"right";p=Ua(p+f["y"===u?"top":"left"],p,p-f[t])}if(a){const t="y"===h?"bottom":"right";d=Ua(d+f["y"===h?"top":"left"],d,d-f[t])}const y=s.fn({...e,[u]:p,[h]:d});return{...y,data:{x:y.x-o,y:y.y-i}}}}};function _a(t){return Va(t)?(t.nodeName||"").toLowerCase():"#document"}function Ha(t){var e;return(null==t||null==(e=t.ownerDocument)?void 0:e.defaultView)||window}function Ga(t){var e;return null==(e=(Va(t)?t.ownerDocument:t.document)||window.document)?void 0:e.documentElement}function Va(t){return t instanceof Node||t instanceof Ha(t).Node}function qa(t){return t instanceof Element||t instanceof Ha(t).Element}function Ya(t){return t instanceof HTMLElement||t instanceof Ha(t).HTMLElement}function Xa(t){return"undefined"!=typeof ShadowRoot&&(t instanceof ShadowRoot||t instanceof Ha(t).ShadowRoot)}function Ja(t){const{overflow:e,overflowX:o,overflowY:i,display:r}=is(t);return/auto|scroll|overlay|hidden|clip/.test(e+i+o)&&!["inline","contents"].includes(r)}function Qa(t){return["table","td","th"].includes(_a(t))}function ts(t){const e=es(),o=is(t);return"none"!==o.transform||"none"!==o.perspective||!!o.containerType&&"normal"!==o.containerType||!e&&!!o.backdropFilter&&"none"!==o.backdropFilter||!e&&!!o.filter&&"none"!==o.filter||["transform","perspective","filter"].some((t=>(o.willChange||"").includes(t)))||["paint","layout","strict","content"].some((t=>(o.contain||"").includes(t)))}function es(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function os(t){return["html","body","#document"].includes(_a(t))}function is(t){return Ha(t).getComputedStyle(t)}function rs(t){return qa(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function ns(t){if("html"===_a(t))return t;const e=t.assignedSlot||t.parentNode||Xa(t)&&t.host||Ga(t);return Xa(e)?e.host:e}function as(t){const e=ns(t);return os(e)?t.ownerDocument?t.ownerDocument.body:t.body:Ya(e)&&Ja(e)?e:as(e)}function ss(t,e,o){var i;void 0===e&&(e=[]),void 0===o&&(o=!0);const r=as(t),n=r===(null==(i=t.ownerDocument)?void 0:i.body),a=Ha(r);return n?e.concat(a,a.visualViewport||[],Ja(r)?r:[],a.frameElement&&o?ss(a.frameElement):[]):e.concat(r,ss(r,[],o))}function ls(t){const e=is(t);let o=parseFloat(e.width)||0,i=parseFloat(e.height)||0;const r=Ya(t),n=r?t.offsetWidth:o,a=r?t.offsetHeight:i,s=Ea(o)!==n||Ea(i)!==a;return s&&(o=n,i=a),{width:o,height:i,$:s}}function cs(t){return qa(t)?t:t.contextElement}function fs(t){const e=cs(t);if(!Ya(e))return $a(1);const o=e.getBoundingClientRect(),{width:i,height:r,$:n}=ls(e);let a=(n?Ea(o.width):o.width)/i,s=(n?Ea(o.height):o.height)/r;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}const hs=$a(0);function us(t){const e=Ha(t);return es()&&e.visualViewport?{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}:hs}function ps(t,e,o,i){void 0===e&&(e=!1),void 0===o&&(o=!1);const r=t.getBoundingClientRect(),n=cs(t);let a=$a(1);e&&(i?qa(i)&&(a=fs(i)):a=fs(t));const s=function(t,e,o){return void 0===e&&(e=!1),!(!o||e&&o!==Ha(t))&&e}(n,o,i)?us(n):$a(0);let l=(r.left+s.x)/a.x,c=(r.top+s.y)/a.y,f=r.width/a.x,h=r.height/a.y;if(n){const t=Ha(n),e=i&&qa(i)?Ha(i):i;let o=t.frameElement;for(;o&&i&&e!==t;){const t=fs(o),e=o.getBoundingClientRect(),i=is(o),r=e.left+(o.clientLeft+parseFloat(i.paddingLeft))*t.x,n=e.top+(o.clientTop+parseFloat(i.paddingTop))*t.y;l*=t.x,c*=t.y,f*=t.x,h*=t.y,l+=r,c+=n,o=Ha(o).frameElement}}return Ka({width:f,height:h,x:l,y:c})}function ds(t){return ps(Ga(t)).left+rs(t).scrollLeft}function ys(t,e,o){let i;if("viewport"===e)i=function(t,e){const o=Ha(t),i=Ga(t),r=o.visualViewport;let n=i.clientWidth,a=i.clientHeight,s=0,l=0;if(r){n=r.width,a=r.height;const t=es();(!t||t&&"fixed"===e)&&(s=r.offsetLeft,l=r.offsetTop)}return{width:n,height:a,x:s,y:l}}(t,o);else if("document"===e)i=function(t){const e=Ga(t),o=rs(t),i=t.ownerDocument.body,r=Ca(e.scrollWidth,e.clientWidth,i.scrollWidth,i.clientWidth),n=Ca(e.scrollHeight,e.clientHeight,i.scrollHeight,i.clientHeight);let a=-o.scrollLeft+ds(t);const s=-o.scrollTop;return"rtl"===is(i).direction&&(a+=Ca(e.clientWidth,i.clientWidth)-r),{width:r,height:n,x:a,y:s}}(Ga(t));else if(qa(e))i=function(t,e){const o=ps(t,!0,"fixed"===e),i=o.top+t.clientTop,r=o.left+t.clientLeft,n=Ya(t)?fs(t):$a(1);return{width:t.clientWidth*n.x,height:t.clientHeight*n.y,x:r*n.x,y:i*n.y}}(e,o);else{const o=us(t);i={...e,x:e.x-o.x,y:e.y-o.y}}return Ka(i)}function gs(t,e){const o=ns(t);return!(o===e||!qa(o)||os(o))&&("fixed"===is(o).position||gs(o,e))}function bs(t,e,o){const i=Ya(e),r=Ga(e),n="fixed"===o,a=ps(t,!0,n,e);let s={scrollLeft:0,scrollTop:0};const l=$a(0);if(i||!i&&!n)if(("body"!==_a(e)||Ja(r))&&(s=rs(e)),i){const t=ps(e,!0,n,e);l.x=t.x+e.clientLeft,l.y=t.y+e.clientTop}else r&&(l.x=ds(r));return{x:a.left+s.scrollLeft-l.x,y:a.top+s.scrollTop-l.y,width:a.width,height:a.height}}function ms(t,e){return Ya(t)&&"fixed"!==is(t).position?e?e(t):t.offsetParent:null}function vs(t,e){const o=Ha(t);if(!Ya(t))return o;let i=ms(t,e);for(;i&&Qa(i)&&"static"===is(i).position;)i=ms(i,e);return i&&("html"===_a(i)||"body"===_a(i)&&"static"===is(i).position&&!ts(i))?o:i||function(t){let e=ns(t);for(;Ya(e)&&!os(e);){if(ts(e))return e;e=ns(e)}return null}(t)||o}const xs={convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{rect:e,offsetParent:o,strategy:i}=t;const r=Ya(o),n=Ga(o);if(o===n)return e;let a={scrollLeft:0,scrollTop:0},s=$a(1);const l=$a(0);if((r||!r&&"fixed"!==i)&&(("body"!==_a(o)||Ja(n))&&(a=rs(o)),Ya(o))){const t=ps(o);s=fs(o),l.x=t.x+o.clientLeft,l.y=t.y+o.clientTop}return{width:e.width*s.x,height:e.height*s.y,x:e.x*s.x-a.scrollLeft*s.x+l.x,y:e.y*s.y-a.scrollTop*s.y+l.y}},getDocumentElement:Ga,getClippingRect:function(t){let{element:e,boundary:o,rootBoundary:i,strategy:r}=t;const n="clippingAncestors"===o?function(t,e){const o=e.get(t);if(o)return o;let i=ss(t,[],!1).filter((t=>qa(t)&&"body"!==_a(t))),r=null;const n="fixed"===is(t).position;let a=n?ns(t):t;for(;qa(a)&&!os(a);){const e=is(a),o=ts(a);o||"fixed"!==e.position||(r=null),(n?!o&&!r:!o&&"static"===e.position&&r&&["absolute","fixed"].includes(r.position)||Ja(a)&&!o&&gs(t,a))?i=i.filter((t=>t!==a)):r=e,a=ns(a)}return e.set(t,i),i}(e,this._c):[].concat(o),a=[...n,i],s=a[0],l=a.reduce(((t,o)=>{const i=ys(e,o,r);return t.top=Ca(i.top,t.top),t.right=Na(i.right,t.right),t.bottom=Na(i.bottom,t.bottom),t.left=Ca(i.left,t.left),t}),ys(e,s,r));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}},getOffsetParent:vs,getElementRects:async function(t){let{reference:e,floating:o,strategy:i}=t;const r=this.getOffsetParent||vs,n=this.getDimensions;return{reference:bs(e,await r(o),i),floating:{x:0,y:0,...await n(o)}}},getClientRects:function(t){return Array.from(t.getClientRects())},getDimensions:function(t){return ls(t)},getScale:fs,isElement:qa,isRTL:function(t){return"rtl"===is(t).direction}},Os=(t,e,o)=>{const i=new Map,r={platform:xs,...o},n={...r.platform,_c:i};return(async(t,e,o)=>{const{placement:i="bottom",strategy:r="absolute",middleware:n=[],platform:a}=o,s=n.filter(Boolean),l=await(null==a.isRTL?void 0:a.isRTL(e));let c=await a.getElementRects({reference:t,floating:e,strategy:r}),{x:f,y:h}=Ba(c,i,l),u=i,p={},d=0;for(let o=0;o<s.length;o++){const{name:n,fn:y}=s[o],{x:g,y:b,data:m,reset:v}=await y({x:f,y:h,initialPlacement:i,placement:u,strategy:r,middlewareData:p,rects:c,platform:a,elements:{reference:t,floating:e}});f=null!=g?g:f,h=null!=b?b:h,p={...p,[n]:{...p[n],...m}},v&&d<=50&&(d++,"object"==typeof v&&(v.placement&&(u=v.placement),v.rects&&(c=!0===v.rects?await a.getElementRects({reference:t,floating:e,strategy:r}):v.rects),({x:f,y:h}=Ba(c,u,l))),o=-1)}return{x:f,y:h,placement:u,strategy:r,middlewareData:p}})(t,e,{...r,platform:n})};function ws(t){return function(t){for(let e=t;e;e=Ss(e))if(e instanceof Element&&"none"===getComputedStyle(e).display)return null;for(let e=Ss(t);e;e=Ss(e)){if(!(e instanceof Element))continue;const t=getComputedStyle(e);if("contents"!==t.display){if("static"!==t.position||"none"!==t.filter)return e;if("BODY"===e.tagName)return e}}return null}(t)}function Ss(t){return t.assignedSlot?t.assignedSlot:t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}var Ns=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class Cs extends De{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 r,this.revealDebouncer=new r}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){return le`
|
|
291
291
|
<div part="container"
|
|
292
292
|
class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}"
|
|
293
293
|
@mouseenter=${this.onHover}
|
|
@@ -322,7 +322,7 @@ const Es=1,$s=2,Rs=t=>(...e)=>({_$litDirective$:t,values:e});class ks{constructo
|
|
|
322
322
|
* @license
|
|
323
323
|
* Copyright 2018 Google LLC
|
|
324
324
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
325
|
-
*/const Us=Rs(class extends ks{constructor(t){if(super(t),t.type!==Es||"class"!==t.name||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(void 0===this.it){this.it=new Set,void 0!==t.strings&&(this.st=new Set(t.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in e)e[t]&&!this.st?.has(t)&&this.it.add(t);return this.render(e)}const o=t.element.classList;for(const t of this.it)t in e||(o.remove(t),this.it.delete(t));for(const t in e){const i=!!e[t];i===this.it.has(t)||this.st?.has(t)||(i?(o.add(t),this.it.add(t)):(o.remove(t),this.it.delete(t)))}return it}}),Is=Ee.extend("--ft-ripple-color","",Le.colorContent),Ls={color:Is,backgroundColor:Ee.extend("--ft-ripple-background-color","",Is),opacityContentOnSurfacePressed:Ee.external(Le.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:Ee.external(Le.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:Ee.external(Le.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:Ee.external(Le.opacityContentOnSurfaceSelected,"Design system"),borderRadius:Ee.create("--ft-ripple-border-radius","","SIZE","0px")},As=Ee.extend("--ft-ripple-color","",Le.colorPrimary),Ws=As,js=Ee.extend("--ft-ripple-background-color","",As),Ps=Ee.extend("--ft-ripple-color","",Le.colorSecondary),Ms=Ps,Fs=Ee.extend("--ft-ripple-background-color","",Ps),
|
|
325
|
+
*/const Us=Rs(class extends ks{constructor(t){if(super(t),t.type!==Es||"class"!==t.name||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(void 0===this.it){this.it=new Set,void 0!==t.strings&&(this.st=new Set(t.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in e)e[t]&&!this.st?.has(t)&&this.it.add(t);return this.render(e)}const o=t.element.classList;for(const t of this.it)t in e||(o.remove(t),this.it.delete(t));for(const t in e){const i=!!e[t];i===this.it.has(t)||this.st?.has(t)||(i?(o.add(t),this.it.add(t)):(o.remove(t),this.it.delete(t)))}return it}}),Is=Ee.extend("--ft-ripple-color","",Le.colorContent),Ls={color:Is,backgroundColor:Ee.extend("--ft-ripple-background-color","",Is),opacityContentOnSurfacePressed:Ee.external(Le.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:Ee.external(Le.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:Ee.external(Le.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:Ee.external(Le.opacityContentOnSurfaceSelected,"Design system"),borderRadius:Ee.create("--ft-ripple-border-radius","","SIZE","0px")},As=Ee.extend("--ft-ripple-color","",Le.colorPrimary),Ws=As,js=Ee.extend("--ft-ripple-background-color","",As),Ps=Ee.extend("--ft-ripple-color","",Le.colorSecondary),Ms=Ps,Fs=Ee.extend("--ft-ripple-background-color","",Ps),Ks=Et`
|
|
326
326
|
:host {
|
|
327
327
|
display: contents;
|
|
328
328
|
}
|
|
@@ -434,7 +434,7 @@ const Es=1,$s=2,Rs=t=>(...e)=>({_$litDirective$:t,values:e});class ks{constructo
|
|
|
434
434
|
opacity: ${Ls.opacityContentOnSurfacePressed};
|
|
435
435
|
transform: translate(-50%, -50%) scale(1);
|
|
436
436
|
}
|
|
437
|
-
`;var
|
|
437
|
+
`;var Bs=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class Ds extends De{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 r(1e3),this.onTransitionStart=t=>{"transform"===t.propertyName&&(this.rippling=this.pressed,this.debouncer.run((()=>this.rippling=!1)))},this.onTransitionEnd=t=>{"transform"===t.propertyName&&(this.rippling=!1)},this.setupDebouncer=new r(10),this.moveRipple=t=>{var e,o;let{x:i,y:r}=this.getCoordinates(t),n=null!==(o=null===(e=this.ripple)||void 0===e?void 0:e.getBoundingClientRect())&&void 0!==o?o:{x:0,y:0,width:0,height:0};this.originX=Math.round(null!=i?i-n.x:n.width/2),this.originY=Math.round(null!=r?r-n.y:n.height/2)},this.startPress=t=>{this.moveRipple(t),this.pressed=!this.isIgnored(t)},this.endPress=()=>{this.pressed=!1},this.startHover=t=>{this.hovered=!this.isIgnored(t)},this.endHover=()=>{this.hovered=!1},this.startFocus=t=>{this.focused=this.isFocusVisible(null==t?void 0:t.target)&&!this.isIgnored(t)},this.endFocus=()=>{this.focused=!1}}render(){let t={"ft-ripple":!0,"ft-ripple--primary":this.primary,"ft-ripple--secondary":this.secondary,"ft-ripple--unbounded":this.unbounded,"ft-ripple--selected":(this.selected||this.activated)&&!this.disabled,"ft-ripple--pressed":(this.pressed||this.rippling)&&!this.disabled,"ft-ripple--hovered":this.hovered&&!this.disabled,"ft-ripple--focused":this.focused&&!this.disabled};return le`
|
|
438
438
|
<style>
|
|
439
439
|
.ft-ripple .ft-ripple--effect {
|
|
440
440
|
left: ${this.originX}px;
|
|
@@ -445,7 +445,7 @@ const Es=1,$s=2,Rs=t=>(...e)=>({_$litDirective$:t,values:e});class ks{constructo
|
|
|
445
445
|
<div class="ft-ripple--background"></div>
|
|
446
446
|
<div class="ft-ripple--effect"></div>
|
|
447
447
|
</div>
|
|
448
|
-
`}contentAvailableCallback(t){super.contentAvailableCallback(t),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}update(t){var e,o;super.update(t),t.has("disabled")&&(this.disabled?(this.endRipple(),null===(e=this.target)||void 0===e||e.removeAttribute("data-is-ft-ripple-target")):null===(o=this.target)||void 0===o||o.setAttribute("data-is-ft-ripple-target","true"))}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run((()=>this.defaultSetup()))}defaultSetup(){var t,e;const o=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;o&&this.setupFor(null!==(e=this.target)&&void 0!==e?e:o)}setupFor(t){if(this.setupDebouncer.cancel(),this.target===t)return;this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");const e=(...t)=>e=>{t.forEach((t=>window.addEventListener(t,this.endPress,{once:!0}))),this.startPress(e)},o=e("mouseup","contextmenu"),i=e("touchend","touchcancel"),r=t=>{["Enter"," "].includes(t.key)&&e("keyup")(t)},n={passive:!0};t.addEventListener("mouseover",this.startHover,n),t.addEventListener("mousemove",this.moveRipple,n),t.addEventListener("mouseleave",this.endHover,n),t.addEventListener("mousedown",o,n),t.addEventListener("touchstart",i,n),t.addEventListener("touchmove",this.moveRipple,n),t.addEventListener("keydown",r,n),t.addEventListener("focus",this.startFocus,n),t.addEventListener("blur",this.endFocus,n),t.addEventListener("focusin",this.startFocus,n),t.addEventListener("focusout",this.endFocus,n),this.onDisconnect=()=>{t.removeAttribute("data-is-ft-ripple-target"),t.removeEventListener("mouseover",this.startHover,n),t.removeEventListener("mousemove",this.moveRipple,n),t.removeEventListener("mouseleave",this.endHover,n),t.removeEventListener("mousedown",o,n),t.removeEventListener("touchstart",i,n),t.removeEventListener("touchmove",this.moveRipple,n),t.removeEventListener("keydown",r,n),t.removeEventListener("focus",this.startFocus,n),t.removeEventListener("blur",this.endFocus,n),t.removeEventListener("focusin",this.startFocus,n),t.removeEventListener("focusout",this.endFocus,n),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(t){const e=t,o=t;let i,r;return null!=e.x?({x:i,y:r}=e):null!=o.touches&&(i=o.touches[0].clientX,r=o.touches[0].clientY),{x:i,y:r}}isFocusVisible(t){return!(t instanceof HTMLElement)||t.matches(":focus-visible")}isIgnored(t){if(this.disabled)return!0;if(null!=t)for(let e of t.composedPath()){if(e===this.target)break;if("hasAttribute"in e&&e.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.endRipple()}}Ds.elementDefinitions={},Ds.styles=Bs
|
|
448
|
+
`}contentAvailableCallback(t){super.contentAvailableCallback(t),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}update(t){var e,o;super.update(t),t.has("disabled")&&(this.disabled?(this.endRipple(),null===(e=this.target)||void 0===e||e.removeAttribute("data-is-ft-ripple-target")):null===(o=this.target)||void 0===o||o.setAttribute("data-is-ft-ripple-target","true"))}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run((()=>this.defaultSetup()))}defaultSetup(){var t,e;const o=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;o&&this.setupFor(null!==(e=this.target)&&void 0!==e?e:o)}setupFor(t){if(this.setupDebouncer.cancel(),this.target===t)return;this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");const e=(...t)=>e=>{t.forEach((t=>window.addEventListener(t,this.endPress,{once:!0}))),this.startPress(e)},o=e("mouseup","contextmenu"),i=e("touchend","touchcancel"),r=t=>{["Enter"," "].includes(t.key)&&e("keyup")(t)},n={passive:!0};t.addEventListener("mouseover",this.startHover,n),t.addEventListener("mousemove",this.moveRipple,n),t.addEventListener("mouseleave",this.endHover,n),t.addEventListener("mousedown",o,n),t.addEventListener("touchstart",i,n),t.addEventListener("touchmove",this.moveRipple,n),t.addEventListener("keydown",r,n),t.addEventListener("focus",this.startFocus,n),t.addEventListener("blur",this.endFocus,n),t.addEventListener("focusin",this.startFocus,n),t.addEventListener("focusout",this.endFocus,n),this.onDisconnect=()=>{t.removeAttribute("data-is-ft-ripple-target"),t.removeEventListener("mouseover",this.startHover,n),t.removeEventListener("mousemove",this.moveRipple,n),t.removeEventListener("mouseleave",this.endHover,n),t.removeEventListener("mousedown",o,n),t.removeEventListener("touchstart",i,n),t.removeEventListener("touchmove",this.moveRipple,n),t.removeEventListener("keydown",r,n),t.removeEventListener("focus",this.startFocus,n),t.removeEventListener("blur",this.endFocus,n),t.removeEventListener("focusin",this.startFocus,n),t.removeEventListener("focusout",this.endFocus,n),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(t){const e=t,o=t;let i,r;return null!=e.x?({x:i,y:r}=e):null!=o.touches&&(i=o.touches[0].clientX,r=o.touches[0].clientY),{x:i,y:r}}isFocusVisible(t){return!(t instanceof HTMLElement)||t.matches(":focus-visible")}isIgnored(t){if(this.disabled)return!0;if(null!=t)for(let e of t.composedPath()){if(e===this.target)break;if("hasAttribute"in e&&e.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.endRipple()}}Ds.elementDefinitions={},Ds.styles=Ks,Bs([R({type:Boolean})],Ds.prototype,"primary",void 0),Bs([R({type:Boolean})],Ds.prototype,"secondary",void 0),Bs([R({type:Boolean})],Ds.prototype,"unbounded",void 0),Bs([R({type:Boolean})],Ds.prototype,"activated",void 0),Bs([R({type:Boolean})],Ds.prototype,"selected",void 0),Bs([R({type:Boolean})],Ds.prototype,"disabled",void 0),Bs([k()],Ds.prototype,"hovered",void 0),Bs([k()],Ds.prototype,"focused",void 0),Bs([k()],Ds.prototype,"pressed",void 0),Bs([k()],Ds.prototype,"rippling",void 0),Bs([k()],Ds.prototype,"originX",void 0),Bs([k()],Ds.prototype,"originY",void 0),Bs([L(".ft-ripple")],Ds.prototype,"ripple",void 0),Bs([L(".ft-ripple--effect")],Ds.prototype,"rippleEffect",void 0),W("ft-ripple")(Ds);
|
|
449
449
|
/**
|
|
450
450
|
* @license
|
|
451
451
|
* Copyright 2017 Google LLC
|
|
@@ -1118,9 +1118,9 @@ class zs extends ks{constructor(t){if(super(t),this.et=rt,t.type!==$s)throw Erro
|
|
|
1118
1118
|
<div class="ft-chip--icon-container ft-no-text-select">
|
|
1119
1119
|
<ft-icon .variant=${this.iconVariant} .value="${this.internalIcon}"></ft-icon>
|
|
1120
1120
|
</div>
|
|
1121
|
-
`}onKeyUp(t){this.interactionsOnChip&&["Enter"," "].includes(t.key)&&t.target.click()}onIconKeyUp(t){this.interactionsOnIcon&&["Enter"," "].includes(t.key)&&(t.stopPropagation(),this.dispatchEvent(new Nl))}onIconClick(t){this.interactionsOnIcon&&(t.stopPropagation(),this.dispatchEvent(new Nl))}getLabel(){return this.label||this.textContent}get textContent(){var t,e;return null!==(e=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==e?e:""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}get internalIcon(){return this.icon||(this.removable?"close":void 0)}}Cl.elementDefinitions={"ft-ripple":Ds,"ft-typography":da,"ft-icon":Ys,"ft-button":ul},Cl.styles=wl,Sl([R({type:Boolean})],Cl.prototype,"highlighted",void 0),Sl([R({type:Boolean})],Cl.prototype,"removable",void 0),Sl([R({type:Boolean})],Cl.prototype,"disabled",void 0),Sl([R({type:Boolean})],Cl.prototype,"clickable",void 0),Sl([R({type:Boolean})],Cl.prototype,"iconClickable",void 0),Sl([R({type:Boolean})],Cl.prototype,"dense",void 0),Sl([R({type:Boolean})],Cl.prototype,"multiLine",void 0),Sl([R()],Cl.prototype,"label",void 0),Sl([R()],Cl.prototype,"iconLabel",void 0),Sl([R()],Cl.prototype,"icon",void 0),Sl([R()],Cl.prototype,"iconVariant",void 0),Sl([R({type:Boolean})],Cl.prototype,"trailingIcon",void 0),Sl([L("ft-typography slot")],Cl.prototype,"slottedContent",void 0),W("ft-chip")(Cl);const El=
|
|
1121
|
+
`}onKeyUp(t){this.interactionsOnChip&&["Enter"," "].includes(t.key)&&t.target.click()}onIconKeyUp(t){this.interactionsOnIcon&&["Enter"," "].includes(t.key)&&(t.stopPropagation(),this.dispatchEvent(new Nl))}onIconClick(t){this.interactionsOnIcon&&(t.stopPropagation(),this.dispatchEvent(new Nl))}getLabel(){return this.label||this.textContent}get textContent(){var t,e;return null!==(e=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==e?e:""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}get internalIcon(){return this.icon||(this.removable?"close":void 0)}}Cl.elementDefinitions={"ft-ripple":Ds,"ft-typography":da,"ft-icon":Ys,"ft-button":ul},Cl.styles=wl,Sl([R({type:Boolean})],Cl.prototype,"highlighted",void 0),Sl([R({type:Boolean})],Cl.prototype,"removable",void 0),Sl([R({type:Boolean})],Cl.prototype,"disabled",void 0),Sl([R({type:Boolean})],Cl.prototype,"clickable",void 0),Sl([R({type:Boolean})],Cl.prototype,"iconClickable",void 0),Sl([R({type:Boolean})],Cl.prototype,"dense",void 0),Sl([R({type:Boolean})],Cl.prototype,"multiLine",void 0),Sl([R()],Cl.prototype,"label",void 0),Sl([R()],Cl.prototype,"iconLabel",void 0),Sl([R()],Cl.prototype,"icon",void 0),Sl([R()],Cl.prototype,"iconVariant",void 0),Sl([R({type:Boolean})],Cl.prototype,"trailingIcon",void 0),Sl([L("ft-typography slot")],Cl.prototype,"slottedContent",void 0),W("ft-chip")(Cl);const El=Ee.create("--ft-floating-menu-z-index","","NUMBER","8"),$l=Ee.create("--ft-floating-menu-max-width","","SIZE","300px"),Rl=Ee.create("--ft-floating-menu-max-height","","SIZE","500px"),kl=Ee.extend("--ft-floating-menu-text-color","",Le.colorOnSurfaceHigh),Ul=Ee.external(Le.colorSurface,"Design system"),Il=Ee.external(Le.elevation02,"Design system"),Ll=Ee.external(Le.borderRadiusS,"Design system"),Al=Et`
|
|
1122
1122
|
.ft-floating-menu {
|
|
1123
|
-
color: ${
|
|
1123
|
+
color: ${kl};
|
|
1124
1124
|
display: inline-block;
|
|
1125
1125
|
}
|
|
1126
1126
|
|
|
@@ -1137,23 +1137,19 @@ class zs extends ks{constructor(t){if(super(t),this.et=rt,t.type!==$s)throw Erro
|
|
|
1137
1137
|
display: none;
|
|
1138
1138
|
position: relative;
|
|
1139
1139
|
overflow: auto;
|
|
1140
|
-
max-width: ${
|
|
1141
|
-
max-height: ${
|
|
1142
|
-
box-shadow: ${
|
|
1143
|
-
background-color: ${
|
|
1144
|
-
border-radius: ${
|
|
1145
|
-
color: ${
|
|
1146
|
-
z-index: ${El
|
|
1140
|
+
max-width: ${$l};
|
|
1141
|
+
max-height: ${Rl};
|
|
1142
|
+
box-shadow: ${Il};
|
|
1143
|
+
background-color: ${Ul};
|
|
1144
|
+
border-radius: ${Ll};
|
|
1145
|
+
color: ${kl};
|
|
1146
|
+
z-index: ${El};
|
|
1147
1147
|
}
|
|
1148
1148
|
|
|
1149
1149
|
.ft-floating-menu--open .ft-floating-menu--options {
|
|
1150
1150
|
display: block;
|
|
1151
1151
|
}
|
|
1152
|
-
|
|
1153
|
-
[part="button"] {
|
|
1154
|
-
${$e(tl.backgroundColor,El.buttonBackgroundColor)}
|
|
1155
|
-
}
|
|
1156
|
-
`,Rl=Ee.extend("--ft-floating-menu-icon-color","",Le.colorOnSurfaceMedium),kl=Et`
|
|
1152
|
+
`,Wl=Ee.extend("--ft-floating-menu-icon-color","",Le.colorOnSurfaceMedium),jl=Et`
|
|
1157
1153
|
.ft-floating-menu-item {
|
|
1158
1154
|
cursor: pointer;
|
|
1159
1155
|
display: flex;
|
|
@@ -1168,7 +1164,7 @@ class zs extends ks{constructor(t){if(super(t),this.et=rt,t.type!==$s)throw Erro
|
|
|
1168
1164
|
}
|
|
1169
1165
|
|
|
1170
1166
|
.ft-floating-menu-item ft-icon {
|
|
1171
|
-
color: ${
|
|
1167
|
+
color: ${Wl};
|
|
1172
1168
|
margin-left: 0;
|
|
1173
1169
|
flex-shrink: 0;
|
|
1174
1170
|
flex-grow: 0;
|
|
@@ -1183,7 +1179,7 @@ class zs extends ks{constructor(t){if(super(t),this.et=rt,t.type!==$s)throw Erro
|
|
|
1183
1179
|
word-break: break-word;
|
|
1184
1180
|
hyphens: auto;
|
|
1185
1181
|
}
|
|
1186
|
-
`;var
|
|
1182
|
+
`;var Pl=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class Ml extends CustomEvent{constructor(t){super("select",{detail:t,bubbles:!0,composed:!0})}}class Fl extends De{constructor(){super(...arguments),this.value=""}render(){return le`
|
|
1187
1183
|
<div class="ft-floating-menu-item"
|
|
1188
1184
|
@click=${this.onClick}>
|
|
1189
1185
|
<ft-ripple></ft-ripple>
|
|
@@ -1194,7 +1190,7 @@ class zs extends ks{constructor(t){if(super(t),this.et=rt,t.type!==$s)throw Erro
|
|
|
1194
1190
|
<slot></slot>
|
|
1195
1191
|
</ft-typography>
|
|
1196
1192
|
</div>
|
|
1197
|
-
`}onClick(t){this.dispatchEvent(new
|
|
1193
|
+
`}onClick(t){this.dispatchEvent(new Ml(this.value))}}Fl.elementDefinitions={"ft-icon":Ys,"ft-ripple":Ds,"ft-typography":da},Fl.styles=jl,Pl([R()],Fl.prototype,"iconVariant",void 0),Pl([R()],Fl.prototype,"icon",void 0),Pl([R()],Fl.prototype,"value",void 0);var Kl=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class Bl extends De{constructor(){super(...arguments),this.menuOpen=!1,this.forceMenuOpen=!1,this.primary=!1,this.secondary=!1,this.tertiary=!1,this.neutral=!1,this.small=!1,this.iconVariant=Vs.fluid_topics,this.icon="SHORTCUT_MENU",this.horizontalAlignment="left",this.verticalAlignment="bottom",this.disabled=!1,this.closeMenuMatchers=[],this.hideOptions=t=>{this.menuOpen=this.menuOpen&&t.composedPath().includes(this.container),this.menuOpen||document.removeEventListener("click",this.hideOptions)}}render(){const t={"ft-floating-menu":!0,"ft-floating-menu--open":this.forceMenuOpen||this.menuOpen,["ft-floating-menu--"+this.horizontalAlignment.toLowerCase()]:!0,["ft-floating-menu--"+this.verticalAlignment.toLowerCase()]:!0};return le`
|
|
1198
1194
|
<div class="${Us(t)}">
|
|
1199
1195
|
|
|
1200
1196
|
<slot name="toggle"
|
|
@@ -1230,7 +1226,7 @@ class zs extends ks{constructor(t){if(super(t),this.et=rt,t.type!==$s)throw Erro
|
|
|
1230
1226
|
</div>
|
|
1231
1227
|
</div>
|
|
1232
1228
|
</div>
|
|
1233
|
-
`}onClick(){this.menuOpen=!this.menuOpen,setTimeout((()=>document.addEventListener("click",this.hideOptions)))}onClickItem(){this.closeMenu()}closeMenu(){this.menuOpen=!1}onCloseEvent(t){t.stopPropagation(),this.closeMenu()}onContentClick(t){(function(t,e,o=window.document.body){if(e.length>0){const i=t.composedPath();for(let t of i){if(t===o)return!1;if(t.matches&&e.some((e=>t.matches(e))))return!0}}return!1})(t,this.closeMenuMatchers,this)&&(this.closeMenu(),t.stopPropagation())}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("click",this.hideOptions)}contentAvailableCallback(t){super.contentAvailableCallback(t),["menuOpen"].some((e=>t.has(e)))&&this.menuOpen&&(this.menuWrapper.classList.remove("ft-floating-menu--wrapper-positioned"),this.positionMenuWrapper())}positionMenuWrapper(){this.menuWrapper.style.left="",this.menuWrapper.style.top="";const t=this.customToggle.length>0?this.customToggle[0]:this.actionButton;Os(t,this.menuWrapper,{platform:{...xs,getOffsetParent:t=>xs.getOffsetParent(t,ws)},middleware:[Za({crossAxis:!0}),Ta({allowedPlacements:[this.convertPlacement()]})]}).then((({x:t,y:e})=>{this.menuWrapper.style.left=`${t}px`,this.menuWrapper.style.top=`${e}px`})),this.menuWrapper.classList.add("ft-floating-menu--wrapper-positioned")}convertPlacement(){switch(this.horizontalAlignment){case"left":return this.verticalAlignment+"-start";case"right":return this.verticalAlignment+"-end";case"center":return this.verticalAlignment+"-center"}}}
|
|
1229
|
+
`}onClick(){this.menuOpen=!this.menuOpen,setTimeout((()=>document.addEventListener("click",this.hideOptions)))}onClickItem(){this.closeMenu()}closeMenu(){this.menuOpen=!1}onCloseEvent(t){t.stopPropagation(),this.closeMenu()}onContentClick(t){(function(t,e,o=window.document.body){if(e.length>0){const i=t.composedPath();for(let t of i){if(t===o)return!1;if(t.matches&&e.some((e=>t.matches(e))))return!0}}return!1})(t,this.closeMenuMatchers,this)&&(this.closeMenu(),t.stopPropagation())}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("click",this.hideOptions)}contentAvailableCallback(t){super.contentAvailableCallback(t),["menuOpen"].some((e=>t.has(e)))&&this.menuOpen&&(this.menuWrapper.classList.remove("ft-floating-menu--wrapper-positioned"),this.positionMenuWrapper())}positionMenuWrapper(){this.menuWrapper.style.left="",this.menuWrapper.style.top="";const t=this.customToggle.length>0?this.customToggle[0]:this.actionButton;Os(t,this.menuWrapper,{platform:{...xs,getOffsetParent:t=>xs.getOffsetParent(t,ws)},middleware:[Za({crossAxis:!0}),Ta({allowedPlacements:[this.convertPlacement()]})]}).then((({x:t,y:e})=>{this.menuWrapper.style.left=`${t}px`,this.menuWrapper.style.top=`${e}px`})),this.menuWrapper.classList.add("ft-floating-menu--wrapper-positioned")}convertPlacement(){switch(this.horizontalAlignment){case"left":return this.verticalAlignment+"-start";case"right":return this.verticalAlignment+"-end";case"center":return this.verticalAlignment+"-center"}}}Bl.elementDefinitions={"ft-floating-menu-item":Fl},Kl([k()],Bl.prototype,"menuOpen",void 0),Kl([k()],Bl.prototype,"forceMenuOpen",void 0),Kl([L(".ft-floating-menu")],Bl.prototype,"container",void 0),Kl([L(".ft-floating-menu--wrapper")],Bl.prototype,"menuWrapper",void 0),Kl([L("#ft-floating-menu-options")],Bl.prototype,"menuContent",void 0),Kl([L("#actions-button")],Bl.prototype,"actionButton",void 0),Kl([function(t){return(e,o)=>{const{slot:i,selector:r}=t??{},n="slot"+(i?`[name=${i}]`:":not([name])");return I(0,0,{get(){const e=this.renderRoot?.querySelector(n),o=e?.assignedElements(t)??[];return void 0===r?o:o.filter((t=>t.matches(r)))}})}}({slot:"toggle"})],Bl.prototype,"customToggle",void 0),Kl([R({type:Boolean})],Bl.prototype,"primary",void 0),Kl([R({type:Boolean})],Bl.prototype,"secondary",void 0),Kl([R({type:Boolean})],Bl.prototype,"tertiary",void 0),Kl([R({type:Boolean})],Bl.prototype,"neutral",void 0),Kl([R({type:Boolean})],Bl.prototype,"small",void 0),Kl([R()],Bl.prototype,"label",void 0),Kl([R()],Bl.prototype,"tooltipPosition",void 0),Kl([R()],Bl.prototype,"iconVariant",void 0),Kl([R()],Bl.prototype,"icon",void 0),Kl([R()],Bl.prototype,"text",void 0),Kl([R()],Bl.prototype,"horizontalAlignment",void 0),Kl([R()],Bl.prototype,"verticalAlignment",void 0),Kl([R({type:Boolean})],Bl.prototype,"disabled",void 0),Kl([j([])],Bl.prototype,"closeMenuMatchers",void 0);class Dl extends Bl{}Dl.elementDefinitions={"ft-or-ftds-button":ul},Dl.styles=Al;class zl extends Bl{}zl.elementDefinitions={"ft-or-ftds-button":yl},zl.styles=Al;const Tl=Ee.extend("--ft-floating-menu-label-color","",Le.colorOnSurfaceMedium),Zl=Et`
|
|
1234
1230
|
.ft-floating-menu-label {
|
|
1235
1231
|
padding: 4px 8px;
|
|
1236
1232
|
}
|
|
@@ -1241,25 +1237,25 @@ class zs extends ks{constructor(t){if(super(t),this.et=rt,t.type!==$s)throw Erro
|
|
|
1241
1237
|
width: max-content;
|
|
1242
1238
|
text-overflow: ellipsis;
|
|
1243
1239
|
overflow: hidden;
|
|
1244
|
-
color: ${
|
|
1240
|
+
color: ${Tl}
|
|
1245
1241
|
}
|
|
1246
|
-
`;class
|
|
1242
|
+
`;class _l extends De{render(){return le`
|
|
1247
1243
|
<div class="ft-floating-menu-label">
|
|
1248
1244
|
<ft-typography variant="caption">
|
|
1249
1245
|
<slot></slot>
|
|
1250
1246
|
</ft-typography>
|
|
1251
1247
|
</div>
|
|
1252
|
-
`}}function
|
|
1248
|
+
`}}function Hl(t){var e,o;return(null!==(o=null!==(e=null==t?void 0:t.map)&&void 0!==e?e:null==t?void 0:t.document)&&void 0!==o?o:null==t?void 0:t.topic).metadata.map((t=>function(t){if(t.hierarchicalValues){const e=[],o=[];return t.hierarchicalValues.forEach((t=>{e.push(t.join(" / ")),t.length>2?o.push(`... / ${t[t.length-1]}`):o.push(t.join(" / "))})),{key:t.key,value:e.join(", "),displayValue:o.join(", ")}}{const e=t.values.join(", ");return{key:t.key,value:e,displayValue:e}}}(t)))}_l.elementDefinitions={"ft-typography":da},_l.styles=Zl,W("ft-floating-menu")(Dl),W("ftds-floating-menu")(zl),W("ft-floating-menu-item")(Fl),W("ft-floating-menu-label")(_l);class Gl extends CustomEvent{constructor(t,e){super("ft-search-result-click",{detail:{result:t,rank:e},bubbles:!0,composed:!0})}}class Vl{constructor(t,e,o,i){this.cluster=t,this.selectedResult=e,this.clusteringMetadata=o,this.metadataDescriptors=i}computeClustersItemsForMetadata(t,e){var o;const i=null===(o=this.cluster)||void 0===o?void 0:o.entries.flatMap((e=>Hl(e).filter((e=>e.key===t)))).filter(((t,e,o)=>o.findIndex((e=>e.value===t.value))===e));return i.map((e=>({result:this.findMatchingResult(t,e.value),metadata:e}))).sort(((o,i)=>this.compareMetadata(o.metadata.value,i.metadata.value,t,e)))}compareMetadata(t,e,o,i){let r=this.metadataDescriptors.find((t=>o==t.key)),n=(null==r?void 0:r.sortRule)||"NONE",a=(null==r?void 0:r.reverseSort)||!1;if("ALPHABET"==n||"VERSION"==n){let o=t.localeCompare(e,i,{numeric:!0});return a?-1*o:o}return 0}findMatchingResult(t,e){var o,i;let r=Hl(this.selectedResult).filter((t=>this.clusteringMetadata.has(t.key))),n=[...r.filter((e=>e.key!==t)),{key:t,value:e,displayValue:e}];return null!==(i=null!==(o=this.findResultMatchingMetadata(n))&&void 0!==o?o:this.findResultMatchingMetadata([{key:t,value:e,displayValue:e}]))&&void 0!==i?i:this.cluster.entries[0]}findResultMatchingMetadata(t){return this.cluster.entries.find((e=>this.resultMatchesMetadata(e,t)))}resultMatchesMetadata(t,e){let o=Hl(t);return e.every((t=>o.some((e=>e.key==t.key&&e.value==t.value))))}}
|
|
1253
1249
|
/**
|
|
1254
1250
|
* @license
|
|
1255
1251
|
* Copyright 2020 Google LLC
|
|
1256
1252
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1257
|
-
*/const{D:
|
|
1253
|
+
*/const{D:ql}=mt,Yl=()=>document.createComment(""),Xl=(t,e,o)=>{const i=t._$AA.parentNode,r=void 0===e?t._$AB:e._$AA;if(void 0===o){const e=i.insertBefore(Yl(),r),n=i.insertBefore(Yl(),r);o=new ql(e,n,t,t.options)}else{const e=o._$AB.nextSibling,n=o._$AM,a=n!==t;if(a){let e;o._$AQ?.(t),o._$AM=t,void 0!==o._$AP&&(e=t._$AU)!==n._$AU&&o._$AP(e)}if(e!==r||a){let t=o._$AA;for(;t!==e;){const e=t.nextSibling;i.insertBefore(t,r),t=e}}}return o},Jl=(t,e,o=t)=>(t._$AI(e,o),t),Ql={},tc=t=>{t._$AP?.(!1,!0);let e=t._$AA;const o=t._$AB.nextSibling;for(;e!==o;){const t=e.nextSibling;e.remove(),e=t}},ec=(t,e,o)=>{const i=new Map;for(let r=e;r<=o;r++)i.set(t[r],r);return i},oc=Rs(class extends ks{constructor(t){if(super(t),t.type!==$s)throw Error("repeat() can only be used in text expressions")}ht(t,e,o){let i;void 0===o?o=e:void 0!==e&&(i=e);const r=[],n=[];let a=0;for(const e of t)r[a]=i?i(e,a):a,n[a]=o(e,a),a++;return{values:n,keys:r}}render(t,e,o){return this.ht(t,e,o).values}update(t,[e,o,i]){const r=(t=>t._$AH)(t),{values:n,keys:a}=this.ht(e,o,i);if(!Array.isArray(r))return this.dt=a,n;const s=this.dt??=[],l=[];let c,f,h=0,u=r.length-1,p=0,d=n.length-1;for(;h<=u&&p<=d;)if(null===r[h])h++;else if(null===r[u])u--;else if(s[h]===a[p])l[p]=Jl(r[h],n[p]),h++,p++;else if(s[u]===a[d])l[d]=Jl(r[u],n[d]),u--,d--;else if(s[h]===a[d])l[d]=Jl(r[h],n[d]),Xl(t,l[d+1],r[h]),h++,d--;else if(s[u]===a[p])l[p]=Jl(r[u],n[p]),Xl(t,r[h],r[u]),u--,p++;else if(void 0===c&&(c=ec(a,p,d),f=ec(s,h,u)),c.has(s[h]))if(c.has(s[u])){const e=f.get(a[p]),o=void 0!==e?r[e]:null;if(null===o){const e=Xl(t,r[h]);Jl(e,n[p]),l[p]=e}else l[p]=Jl(o,n[p]),Xl(t,r[h],o),r[e]=null;p++}else tc(r[u]),u--;else tc(r[h]),h++;for(;p<=d;){const e=Xl(t,l[d+1]);Jl(e,n[p]),l[p++]=e}for(;h<=u;){const t=r[h++];null!==t&&tc(t)}return this.dt=a,((t,e=Ql)=>{t._$AH=e})(t,l),it}});
|
|
1258
1254
|
/**
|
|
1259
1255
|
* @license
|
|
1260
1256
|
* Copyright 2017 Google LLC
|
|
1261
1257
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1262
|
-
*/var
|
|
1258
|
+
*/var ic=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class rc extends(zr(Mr)){constructor(){super(),this.useChip=!1,this.useAsClusterSwitch=!1,this.goToDocumentOnSwitch=!1,this.editorMode=!1,this.metadataDescriptors=[],this.clustersByValue={},this.clusters=[],this.addStore(gr),this.addI18nContext(Vr)}setResultStateManager(t){super.setResultStateManager(t),this.key&&this.useAsClusterSwitch&&t.registerMetadata(this.key)}render(){return le`
|
|
1263
1259
|
${this.displayCluster?this.renderClusterList():this.renderChip()}
|
|
1264
1260
|
${this.hideIfEmpty()}
|
|
1265
1261
|
`}renderClusterList(){return le`
|
|
@@ -1269,7 +1265,7 @@ class zs extends ks{constructor(t){if(super(t),this.et=rt,t.type!==$s)throw Erro
|
|
|
1269
1265
|
slot="button">
|
|
1270
1266
|
${this.renderChip("toggle")}
|
|
1271
1267
|
<ft-floating-menu-label>${this.metadataLabel}</ft-floating-menu-label>
|
|
1272
|
-
${
|
|
1268
|
+
${oc(this.clusters,(t=>t.metadata.value),(t=>this.renderClusterItem(t.result,t.metadata)))}
|
|
1273
1269
|
</ft-floating-menu>
|
|
1274
1270
|
</div>
|
|
1275
1271
|
`}hideIfEmpty(){return 0!=this.valueText.length||0!=this.clusters.length||this.editorMode?fe:le`
|
|
@@ -1278,7 +1274,7 @@ class zs extends ks{constructor(t){if(super(t),this.et=rt,t.type!==$s)throw Erro
|
|
|
1278
1274
|
display: none !important;
|
|
1279
1275
|
}
|
|
1280
1276
|
</style>
|
|
1281
|
-
`}onClusterSelected(t){var e;null===(e=this.resultStateManager)||void 0===e||e.selectResult(this.clustersByValue[t.detail].result)}computeClusters(){var t;const e={},o=new
|
|
1277
|
+
`}onClusterSelected(t){var e;null===(e=this.resultStateManager)||void 0===e||e.selectResult(this.clustersByValue[t.detail].result)}computeClusters(){var t;const e={},o=new Vl(this.cluster,this.result,this.resultStateManager.registeredMetadata,this.metadataDescriptors);this.clusters=o.computeClustersItemsForMetadata(this.key,(null===(t=this.request)||void 0===t?void 0:t.contentLocale)||"en"),this.clusters.forEach((t=>{e[t.metadata.value]=t})),this.clustersByValue=e}renderClusterItem(t,e){return this.goToDocumentOnSwitch?le`
|
|
1282
1278
|
<a href="${function(t){switch(t.type){case hr.MAP:return t.map.readerUrl;case hr.DOCUMENT:return t.document.viewerUrl;case hr.TOPIC:return t.topic.readerUrl}return""}(t)}" @click=${()=>this.onResultClick(t)}>
|
|
1283
1279
|
<ft-floating-menu-item value="${e.value}">${this.renderClusterItemValue(e.value,e.displayValue)}
|
|
1284
1280
|
</ft-floating-menu-item>
|
|
@@ -1287,7 +1283,7 @@ class zs extends ks{constructor(t){if(super(t),this.et=rt,t.type!==$s)throw Erro
|
|
|
1287
1283
|
<ft-floating-menu-item value="${e.value}">${this.renderClusterItemValue(e.value,e.displayValue)}</ft-floating-menu-item>
|
|
1288
1284
|
`}renderClusterItemValue(t,e){return t===e?le`${t}`:le`
|
|
1289
1285
|
<ft-tooltip text="${t}">${e}</ft-tooltip>
|
|
1290
|
-
`}onResultClick(t){this.dispatchEvent(new
|
|
1286
|
+
`}onResultClick(t){this.dispatchEvent(new Gl(t,this.rank))}renderChip(t){return this.useChip?le`
|
|
1291
1287
|
<ft-tooltip text="${this.tooltipText}" slot="${t}">
|
|
1292
1288
|
<ft-chip icon="${this.displayCluster?"THIN_ARROW":""}" trailingIcon>${this.renderContent()}</ft-chip>
|
|
1293
1289
|
</ft-tooltip>
|
|
@@ -1297,4 +1293,4 @@ class zs extends ks{constructor(t){if(super(t),this.et=rt,t.type!==$s)throw Erro
|
|
|
1297
1293
|
display: none !important;
|
|
1298
1294
|
}
|
|
1299
1295
|
</style>
|
|
1300
|
-
`}get displayCluster(){var t,e;return this.useAsClusterSwitch&&(null!==(e=null===(t=this.cluster)||void 0===t?void 0:t.entries.length)&&void 0!==e?e:0)>1}getEllipsis(t){let e=this.maxLength?t.substring(0,this.maxLength):t;return e+(e.length<t.length?"…":"")}update(t){var e,o,i,r,n;super.update(t),(t.has("result")||t.has("key"))&&this.result&&(this.resultMetadata=null===(e=this.resultData)||void 0===e?void 0:e.metadata.find((t=>t.key==this.key)),this.metadataLabel=this.findClusterMetadataLabel()),t.has("key")&&this.useAsClusterSwitch&&(t.get("key")&&(null===(o=this.resultStateManager)||void 0===o||o.unregisterMetadata(t.get("key"))),this.key&&(null===(i=this.resultStateManager)||void 0===i||i.registerMetadata(this.key))),t.has("useAsClusterSwitch")&&this.key&&(this.useAsClusterSwitch?null===(r=this.resultStateManager)||void 0===r||r.registerMetadata(this.key):null===(n=this.resultStateManager)||void 0===n||n.unregisterMetadata(this.key)),(t.has("cluster")||t.has("result")||t.has("key")||t.has("useAsClusterSwitch"))&&this.cluster&&this.result&&this.key&&this.useAsClusterSwitch&&this.computeClusters()}get resultData(){var t,e,o,i,r;return null!==(i=null!==(e=null===(t=this.result)||void 0===t?void 0:t.map)&&void 0!==e?e:null===(o=this.result)||void 0===o?void 0:o.topic)&&void 0!==i?i:null===(r=this.result)||void 0===r?void 0:r.document}get valueText(){var t,e;return null!==(e=null===(t=this.resultMetadata)||void 0===t?void 0:t.values.join(", "))&&void 0!==e?e:""}get tooltipText(){return this.resultMetadata?`${this.metadataLabel}: ${this.valueText}`:this.useAsClusterSwitch?`${this.metadataLabel}: ${Vr.messages.noValueInCluster()}`:""}findClusterMetadataLabel(){var t;const e=null===(t=this.cluster)||void 0===t?void 0:t.entries.flatMap((t=>{var e,o;return(null!==(o=null!==(e=null==t?void 0:t.map)&&void 0!==e?e:null==t?void 0:t.document)&&void 0!==o?o:null==t?void 0:t.topic).metadata.filter((t=>t.key==this.key))}))[0];return null==e?void 0:e.label}}
|
|
1296
|
+
`}get displayCluster(){var t,e;return this.useAsClusterSwitch&&(null!==(e=null===(t=this.cluster)||void 0===t?void 0:t.entries.length)&&void 0!==e?e:0)>1}getEllipsis(t){let e=this.maxLength?t.substring(0,this.maxLength):t;return e+(e.length<t.length?"…":"")}update(t){var e,o,i,r,n;super.update(t),(t.has("result")||t.has("key"))&&this.result&&(this.resultMetadata=null===(e=this.resultData)||void 0===e?void 0:e.metadata.find((t=>t.key==this.key)),this.metadataLabel=this.findClusterMetadataLabel()),t.has("key")&&this.useAsClusterSwitch&&(t.get("key")&&(null===(o=this.resultStateManager)||void 0===o||o.unregisterMetadata(t.get("key"))),this.key&&(null===(i=this.resultStateManager)||void 0===i||i.registerMetadata(this.key))),t.has("useAsClusterSwitch")&&this.key&&(this.useAsClusterSwitch?null===(r=this.resultStateManager)||void 0===r||r.registerMetadata(this.key):null===(n=this.resultStateManager)||void 0===n||n.unregisterMetadata(this.key)),(t.has("cluster")||t.has("result")||t.has("key")||t.has("useAsClusterSwitch"))&&this.cluster&&this.result&&this.key&&this.useAsClusterSwitch&&this.computeClusters()}get resultData(){var t,e,o,i,r;return null!==(i=null!==(e=null===(t=this.result)||void 0===t?void 0:t.map)&&void 0!==e?e:null===(o=this.result)||void 0===o?void 0:o.topic)&&void 0!==i?i:null===(r=this.result)||void 0===r?void 0:r.document}get valueText(){var t,e;return null!==(e=null===(t=this.resultMetadata)||void 0===t?void 0:t.values.join(", "))&&void 0!==e?e:""}get tooltipText(){return this.resultMetadata?`${this.metadataLabel}: ${this.valueText}`:this.useAsClusterSwitch?`${this.metadataLabel}: ${Vr.messages.noValueInCluster()}`:""}findClusterMetadataLabel(){var t;const e=null===(t=this.cluster)||void 0===t?void 0:t.entries.flatMap((t=>{var e,o;return(null!==(o=null!==(e=null==t?void 0:t.map)&&void 0!==e?e:null==t?void 0:t.document)&&void 0!==o?o:null==t?void 0:t.topic).metadata.filter((t=>t.key==this.key))}))[0];return null==e?void 0:e.label}}rc.elementDefinitions={"ft-tooltip":Cs,"ft-chip":Cl,"ft-floating-menu":Dl,"ft-floating-menu-item":Fl,"ft-floating-menu-label":_l},rc.styles=Yi,ic([R()],rc.prototype,"key",void 0),ic([R({type:Boolean})],rc.prototype,"useChip",void 0),ic([R({type:Boolean})],rc.prototype,"useAsClusterSwitch",void 0),ic([R({type:Boolean})],rc.prototype,"goToDocumentOnSwitch",void 0),ic([R({type:Number,attribute:"max-length"})],rc.prototype,"maxLength",void 0),ic([He({store:gr.name})],rc.prototype,"editorMode",void 0),ic([He({store:gr.name})],rc.prototype,"metadataDescriptors",void 0),ic([He({store:"search"})],rc.prototype,"request",void 0),ic([k()],rc.prototype,"resultMetadata",void 0),ic([k()],rc.prototype,"metadataLabel",void 0),ic([k()],rc.prototype,"clustersByValue",void 0),ic([k()],rc.prototype,"clusters",void 0),W("ft-search-result-metadata")(rc),t.FtSearchResultMetadata=rc,t.FtSearchResultMetadataCssVariables={},t.styles=Yi}({});
|