protvista-uniprot 3.0.8 → 3.0.9
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.
|
@@ -316,7 +316,7 @@ var e={59085:e=>{e.exports=function(e){if("function"!=typeof e)throw TypeError(S
|
|
|
316
316
|
></animate>
|
|
317
317
|
</circle>
|
|
318
318
|
</svg>
|
|
319
|
-
</div>`}updated(e){this.heatmapData&&!this.heatmapInstance&&(this.renderHeatmap(),this.bindHeatmapEvents()),this.applyZoomTranslation()}setHeatmapData(e,t,r){this.heatmapDomainX=e,this.heatmapDomainY=t,this.heatmapData?(this.heatmapData=r,this.heatmapInstance.setData({xDomain:e,yDomain:t,data:r,x:e=>e.xValue,y:e=>e.yValue?e.yValue:"none"})):this.heatmapData=r,this.requestUpdate()}createRandomFromLength(){const e=[...Array(this.length).keys()].map((e=>e+1)),t=["A","B","C"],r=[];for(const n of e)for(const e of t){const t=Math.random();r.push({xValue:n,yValue:e,score:t})}this.setHeatmapData(e,t,r)}renderHeatmap(){const e=$Tt.Heatmap.create({xDomain:this.heatmapDomainX,yDomain:this.heatmapDomainY,data:this.heatmapData,x:e=>e.xValue,y:e=>e.yValue?e.yValue:"none"}),t=Math.min(...this.heatmapData.map((e=>e.score))),r=Math.max(...this.heatmapData.map((e=>e.score))),n=Ppt([t,r],["#3d5493","#9a131a"]);e.setColor((e=>n(e.score))),e.setTooltip(((e,t,r,n,i)=>`\n <b>You are at</b> <br />\n x,y: <b>${e.xValue},${e.yValue}</b><br />\n score: <b>${zTt(e.score)}</b>`)),e.setZooming({axis:"x"}),e.setVisualParams({xGapPixels:0,yGapPixels:0}),this.heatmapInstance=e,this.heatmapInstance.render(this["heatmap-id"]),this.heatmapInstance.events.render.subscribe((e=>{this.requestUpdate()}))}bindHeatmapEvents(){this.heatmapInstance&&this.heatmapInstance.events.zoom.subscribe((e=>{if(!e)return;let t=e.xMin;!this.firstZoom&&this["display-start"]&&(t=this["display-start"]),t!==this["display-start"]&&this.dispatchEvent(new CustomEvent("change",{detail:{value:t,type:"display-start"},bubbles:!0,cancelable:!0}));let r=e.xMax-1;!this.firstZoom&&this["display-end"]&&(r=this["display-end"]),r!==this["display-end"]&&this.dispatchEvent(new CustomEvent("change",{detail:{value:r,type:"display-end"},bubbles:!0,cancelable:!0})),this.firstZoom||(this.firstZoom=!0)}))}triggerHeatmapZoom(){const e=this["display-start"],t=this["display-end"]+1;this.heatmapInstance&&this.heatmapInstance.zoom({xMin:e,xMax:t})}triggerHeatmapHighlight(){var e;if(!this.heatmapInstance)return;this["use-ctrl-to-zoom"]&&(null===(e=this.heatmapInstance.extensions.zoom)||void 0===e||e.update({scrollRequireCtrl:!0}));const t=this.heatmapInstance.extensions.marker,r=bgt.MarkerY;t.state.dom.svg.selectAll("."+r).data(this.highlightedRegion.segments).join((e=>e.append("rect").attr("class",r).attr("rx",t.params.markerCornerRadius).attr("ry",t.params.markerCornerRadius).attr("x",(e=>t.state.scales.worldToCanvas.x(e.start-1))).attr("y",t.state.boxes.canvas.ymin).attr("width",(e=>lgt(t.state.scales.worldToCanvas.x,Math.max(e.end-e.start+1,1)))).attr("height",ugt.height(t.state.boxes.canvas))),(e=>e.attr("x",(e=>t.state.scales.worldToCanvas.x(e.start-1))).attr("width",(e=>lgt(t.state.scales.worldToCanvas.x,Math.max(e.end-e.start+1,1))))),(e=>e.remove()))}};dat([Got({type:String})],GTt.prototype,"heatmap-id",void 0),dat([Got({type:Number})],GTt.prototype,"hm-highlight-width",void 0),dat([Got({type:Boolean})],GTt.prototype,"use-ctrl-to-zoom",void 0),GTt=dat([(e=>t=>{window.customElements.get(e)||(e=>t=>"function"==typeof t?((e,t)=>(customElements.define(e,t),t))(e,t):((e,t)=>{const{kind:r,elements:n}=t;return{kind:r,elements:n,finisher(t){customElements.define(e,t)}}})(e,t))(e)(t)})("nightingale-sequence-heatmap")],GTt);var HTt=GTt;function VTt(e,t,r,n){var i,a=arguments.length,o=a<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(o=(a<3?i(o):a>3?i(t,r,o):i(t,r))||o);return a>3&&o&&Object.defineProperty(t,r,o),o}function qTt(e,t,r,n){if("a"===r&&!n)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?n:"a"===r?n.call(e):n?n.value:t.get(e)}"function"==typeof SuppressedError&&SuppressedError;const WTt=globalThis,XTt=WTt.ShadowRoot&&(void 0===WTt.ShadyCSS||WTt.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,YTt=Symbol(),KTt=new WeakMap;let ZTt=class{constructor(e,t,r){if(this._$cssResult$=!0,r!==YTt)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=t}get styleSheet(){let e=this.o;const t=this.t;if(XTt&&void 0===e){const r=void 0!==t&&1===t.length;r&&(e=KTt.get(t)),void 0===e&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),r&&KTt.set(t,e))}return e}toString(){return this.cssText}};const QTt=XTt?e=>e:e=>e instanceof CSSStyleSheet?(e=>{let t="";for(const r of e.cssRules)t+=r.cssText;return(e=>new ZTt("string"==typeof e?e:e+"",void 0,YTt))(t)})(e):e,{is:JTt,defineProperty:ePt,getOwnPropertyDescriptor:tPt,getOwnPropertyNames:rPt,getOwnPropertySymbols:nPt,getPrototypeOf:iPt}=Object,aPt=globalThis,oPt=aPt.trustedTypes,sPt=oPt?oPt.emptyScript:"",uPt=aPt.reactiveElementPolyfillSupport,cPt=(e,t)=>e,lPt={toAttribute(e,t){switch(t){case Boolean:e=e?sPt:null;break;case Object:case Array:e=null==e?e:JSON.stringify(e)}return e},fromAttribute(e,t){let r=e;switch(t){case Boolean:r=null!==e;break;case Number:r=null===e?null:Number(e);break;case Object:case Array:try{r=JSON.parse(e)}catch(e){r=null}}return r}},dPt=(e,t)=>!JTt(e,t),fPt={attribute:!0,type:String,converter:lPt,reflect:!1,hasChanged:dPt};Symbol.metadata??=Symbol("metadata"),aPt.litPropertyMetadata??=new WeakMap;let hPt=class extends HTMLElement{static addInitializer(e){this._$Ei(),(this.l??=[]).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,t=fPt){if(t.state&&(t.attribute=!1),this._$Ei(),this.elementProperties.set(e,t),!t.noAccessor){const r=Symbol(),n=this.getPropertyDescriptor(e,r,t);void 0!==n&&ePt(this.prototype,e,n)}}static getPropertyDescriptor(e,t,r){const{get:n,set:i}=tPt(this.prototype,e)??{get(){return this[t]},set(e){this[t]=e}};return{get(){return n?.call(this)},set(t){const a=n?.call(this);i.call(this,t),this.requestUpdate(e,a,r)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??fPt}static _$Ei(){if(this.hasOwnProperty(cPt("elementProperties")))return;const e=iPt(this);e.finalize(),void 0!==e.l&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(cPt("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(cPt("properties"))){const e=this.properties,t=[...rPt(e),...nPt(e)];for(const r of t)this.createProperty(r,e[r])}const e=this[Symbol.metadata];if(null!==e){const t=litPropertyMetadata.get(e);if(void 0!==t)for(const[e,r]of t)this.elementProperties.set(e,r)}this._$Eh=new Map;for(const[e,t]of this.elementProperties){const r=this._$Eu(e,t);void 0!==r&&this._$Eh.set(r,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){const t=[];if(Array.isArray(e)){const r=new Set(e.flat(1/0).reverse());for(const e of r)t.unshift(QTt(e))}else void 0!==e&&t.push(QTt(e));return t}static _$Eu(e,t){const r=t.attribute;return!1===r?void 0:"string"==typeof r?r:"string"==typeof e?e.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise((e=>this.enableUpdating=e)),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach((e=>e(this)))}addController(e){(this._$EO??=new Set).add(e),void 0!==this.renderRoot&&this.isConnected&&e.hostConnected?.()}removeController(e){this._$EO?.delete(e)}_$E_(){const e=new Map,t=this.constructor.elementProperties;for(const r of t.keys())this.hasOwnProperty(r)&&(e.set(r,this[r]),delete this[r]);e.size>0&&(this._$Ep=e)}createRenderRoot(){const e=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return((e,t)=>{if(XTt)e.adoptedStyleSheets=t.map((e=>e instanceof CSSStyleSheet?e:e.styleSheet));else for(const r of t){const t=document.createElement("style"),n=WTt.litNonce;void 0!==n&&t.setAttribute("nonce",n),t.textContent=r.cssText,e.appendChild(t)}})(e,this.constructor.elementStyles),e}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach((e=>e.hostConnected?.()))}enableUpdating(e){}disconnectedCallback(){this._$EO?.forEach((e=>e.hostDisconnected?.()))}attributeChangedCallback(e,t,r){this._$AK(e,r)}_$EC(e,t){const r=this.constructor.elementProperties.get(e),n=this.constructor._$Eu(e,r);if(void 0!==n&&!0===r.reflect){const i=(void 0!==r.converter?.toAttribute?r.converter:lPt).toAttribute(t,r.type);this._$Em=e,null==i?this.removeAttribute(n):this.setAttribute(n,i),this._$Em=null}}_$AK(e,t){const r=this.constructor,n=r._$Eh.get(e);if(void 0!==n&&this._$Em!==n){const e=r.getPropertyOptions(n),i="function"==typeof e.converter?{fromAttribute:e.converter}:void 0!==e.converter?.fromAttribute?e.converter:lPt;this._$Em=n,this[n]=i.fromAttribute(t,e.type),this._$Em=null}}requestUpdate(e,t,r){if(void 0!==e){if(r??=this.constructor.getPropertyOptions(e),!(r.hasChanged??dPt)(this[e],t))return;this.P(e,t,r)}!1===this.isUpdatePending&&(this._$ES=this._$ET())}P(e,t,r){this._$AL.has(e)||this._$AL.set(e,t),!0===r.reflect&&this._$Em!==e&&(this._$Ej??=new Set).add(e)}async _$ET(){this.isUpdatePending=!0;try{await this._$ES}catch(e){Promise.reject(e)}const e=this.scheduleUpdate();return null!=e&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[e,t]of this._$Ep)this[e]=t;this._$Ep=void 0}const e=this.constructor.elementProperties;if(e.size>0)for(const[t,r]of e)!0!==r.wrapped||this._$AL.has(t)||void 0===this[t]||this.P(t,this[t],r)}let e=!1;const t=this._$AL;try{e=this.shouldUpdate(t),e?(this.willUpdate(t),this._$EO?.forEach((e=>e.hostUpdate?.())),this.update(t)):this._$EU()}catch(t){throw e=!1,this._$EU(),t}e&&this._$AE(t)}willUpdate(e){}_$AE(e){this._$EO?.forEach((e=>e.hostUpdated?.())),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(e){return!0}update(e){this._$Ej&&=this._$Ej.forEach((e=>this._$EC(e,this[e]))),this._$EU()}updated(e){}firstUpdated(e){}};hPt.elementStyles=[],hPt.shadowRootOptions={mode:"open"},hPt[cPt("elementProperties")]=new Map,hPt[cPt("finalized")]=new Map,uPt?.({ReactiveElement:hPt}),(aPt.reactiveElementVersions??=[]).push("2.0.4");const pPt={attribute:!0,type:String,converter:lPt,reflect:!1,hasChanged:dPt},mPt=(e=pPt,t,r)=>{const{kind:n,metadata:i}=r;let a=globalThis.litPropertyMetadata.get(i);if(void 0===a&&globalThis.litPropertyMetadata.set(i,a=new Map),a.set(r.name,e),"accessor"===n){const{name:n}=r;return{set(r){const i=t.get.call(this);t.set.call(this,r),this.requestUpdate(n,i,e)},init(t){return void 0!==t&&this.P(n,void 0,e),t}}}if("setter"===n){const{name:n}=r;return function(r){const i=this[n];t.call(this,r),this.requestUpdate(n,i,e)}}throw Error("Unsupported decorator location: "+n)};function vPt(e){return(t,r)=>"object"==typeof r?mPt(e,t,r):((e,t,r)=>{const n=t.hasOwnProperty(r);return t.constructor.createProperty(r,n?{...e,wrapped:!0}:e),n?Object.getOwnPropertyDescriptor(t,r):void 0})(e,t,r)}const gPt=globalThis,yPt=gPt.trustedTypes,bPt=yPt?yPt.createPolicy("lit-html",{createHTML:e=>e}):void 0,_Pt="$lit$",xPt=`lit$${Math.random().toFixed(9).slice(2)}$`,wPt="?"+xPt,SPt=`<${wPt}>`,APt=document,CPt=()=>APt.createComment(""),EPt=e=>null===e||"object"!=typeof e&&"function"!=typeof e,TPt=Array.isArray,PPt="[ \t\n\f\r]",MPt=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,kPt=/-->/g,OPt=/>/g,IPt=RegExp(`>|${PPt}(?:([^\\s"'>=/]+)(${PPt}*=${PPt}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),DPt=/'/g,NPt=/"/g,RPt=/^(?:script|style|textarea|title)$/i,BPt=Symbol.for("lit-noChange"),FPt=Symbol.for("lit-nothing"),LPt=new WeakMap,UPt=APt.createTreeWalker(APt,129);function $Pt(e,t){if(!Array.isArray(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==bPt?bPt.createHTML(t):t}let jPt=class e{constructor({strings:t,_$litType$:r},n){let i;this.parts=[];let a=0,o=0;const s=t.length-1,u=this.parts,[c,l]=((e,t)=>{const r=e.length-1,n=[];let i,a=2===t?"<svg>":"",o=MPt;for(let t=0;t<r;t++){const r=e[t];let s,u,c=-1,l=0;for(;l<r.length&&(o.lastIndex=l,u=o.exec(r),null!==u);)l=o.lastIndex,o===MPt?"!--"===u[1]?o=kPt:void 0!==u[1]?o=OPt:void 0!==u[2]?(RPt.test(u[2])&&(i=RegExp("</"+u[2],"g")),o=IPt):void 0!==u[3]&&(o=IPt):o===IPt?">"===u[0]?(o=i??MPt,c=-1):void 0===u[1]?c=-2:(c=o.lastIndex-u[2].length,s=u[1],o=void 0===u[3]?IPt:'"'===u[3]?NPt:DPt):o===NPt||o===DPt?o=IPt:o===kPt||o===OPt?o=MPt:(o=IPt,i=void 0);const d=o===IPt&&e[t+1].startsWith("/>")?" ":"";a+=o===MPt?r+SPt:c>=0?(n.push(s),r.slice(0,c)+_Pt+r.slice(c)+xPt+d):r+xPt+(-2===c?t:d)}return[$Pt(e,a+(e[r]||"<?>")+(2===t?"</svg>":"")),n]})(t,r);if(this.el=e.createElement(c,n),UPt.currentNode=this.el.content,2===r){const e=this.el.content.firstChild;e.replaceWith(...e.childNodes)}for(;null!==(i=UPt.nextNode())&&u.length<s;){if(1===i.nodeType){if(i.hasAttributes())for(const e of i.getAttributeNames())if(e.endsWith(_Pt)){const t=l[o++],r=i.getAttribute(e).split(xPt),n=/([.?@])?(.*)/.exec(t);u.push({type:1,index:a,name:n[2],strings:r,ctor:"."===n[1]?qPt:"?"===n[1]?WPt:"@"===n[1]?XPt:VPt}),i.removeAttribute(e)}else e.startsWith(xPt)&&(u.push({type:6,index:a}),i.removeAttribute(e));if(RPt.test(i.tagName)){const e=i.textContent.split(xPt),t=e.length-1;if(t>0){i.textContent=yPt?yPt.emptyScript:"";for(let r=0;r<t;r++)i.append(e[r],CPt()),UPt.nextNode(),u.push({type:2,index:++a});i.append(e[t],CPt())}}}else if(8===i.nodeType)if(i.data===wPt)u.push({type:2,index:a});else{let e=-1;for(;-1!==(e=i.data.indexOf(xPt,e+1));)u.push({type:7,index:a}),e+=xPt.length-1}a++}}static createElement(e,t){const r=APt.createElement("template");return r.innerHTML=e,r}};function zPt(e,t,r=e,n){if(t===BPt)return t;let i=void 0!==n?r._$Co?.[n]:r._$Cl;const a=EPt(t)?void 0:t._$litDirective$;return i?.constructor!==a&&(i?._$AO?.(!1),void 0===a?i=void 0:(i=new a(e),i._$AT(e,r,n)),void 0!==n?(r._$Co??=[])[n]=i:r._$Cl=i),void 0!==i&&(t=zPt(e,i._$AS(e,t.values),i,n)),t}let GPt=class{constructor(e,t){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){const{el:{content:t},parts:r}=this._$AD,n=(e?.creationScope??APt).importNode(t,!0);UPt.currentNode=n;let i=UPt.nextNode(),a=0,o=0,s=r[0];for(;void 0!==s;){if(a===s.index){let t;2===s.type?t=new HPt(i,i.nextSibling,this,e):1===s.type?t=new s.ctor(i,s.name,s.strings,this,e):6===s.type&&(t=new YPt(i,this,e)),this._$AV.push(t),s=r[++o]}a!==s?.index&&(i=UPt.nextNode(),a++)}return UPt.currentNode=APt,n}p(e){let t=0;for(const r of this._$AV)void 0!==r&&(void 0!==r.strings?(r._$AI(e,r,t),t+=r.strings.length-2):r._$AI(e[t])),t++}},HPt=class e{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,t,r,n){this.type=2,this._$AH=FPt,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=r,this.options=n,this._$Cv=n?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode;const t=this._$AM;return void 0!==t&&11===e?.nodeType&&(e=t.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,t=this){e=zPt(this,e,t),EPt(e)?e===FPt||null==e||""===e?(this._$AH!==FPt&&this._$AR(),this._$AH=FPt):e!==this._$AH&&e!==BPt&&this._(e):void 0!==e._$litType$?this.$(e):void 0!==e.nodeType?this.T(e):(e=>TPt(e)||"function"==typeof e?.[Symbol.iterator])(e)?this.k(e):this._(e)}S(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.S(e))}_(e){this._$AH!==FPt&&EPt(this._$AH)?this._$AA.nextSibling.data=e:this.T(APt.createTextNode(e)),this._$AH=e}$(e){const{values:t,_$litType$:r}=e,n="number"==typeof r?this._$AC(e):(void 0===r.el&&(r.el=jPt.createElement($Pt(r.h,r.h[0]),this.options)),r);if(this._$AH?._$AD===n)this._$AH.p(t);else{const e=new GPt(n,this),r=e.u(this.options);e.p(t),this.T(r),this._$AH=e}}_$AC(e){let t=LPt.get(e.strings);return void 0===t&&LPt.set(e.strings,t=new jPt(e)),t}k(t){TPt(this._$AH)||(this._$AH=[],this._$AR());const r=this._$AH;let n,i=0;for(const a of t)i===r.length?r.push(n=new e(this.S(CPt()),this.S(CPt()),this,this.options)):n=r[i],n._$AI(a),i++;i<r.length&&(this._$AR(n&&n._$AB.nextSibling,i),r.length=i)}_$AR(e=this._$AA.nextSibling,t){for(this._$AP?.(!1,!0,t);e&&e!==this._$AB;){const t=e.nextSibling;e.remove(),e=t}}setConnected(e){void 0===this._$AM&&(this._$Cv=e,this._$AP?.(e))}},VPt=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,t,r,n,i){this.type=1,this._$AH=FPt,this._$AN=void 0,this.element=e,this.name=t,this._$AM=n,this.options=i,r.length>2||""!==r[0]||""!==r[1]?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=FPt}_$AI(e,t=this,r,n){const i=this.strings;let a=!1;if(void 0===i)e=zPt(this,e,t,0),a=!EPt(e)||e!==this._$AH&&e!==BPt,a&&(this._$AH=e);else{const n=e;let o,s;for(e=i[0],o=0;o<i.length-1;o++)s=zPt(this,n[r+o],t,o),s===BPt&&(s=this._$AH[o]),a||=!EPt(s)||s!==this._$AH[o],s===FPt?e=FPt:e!==FPt&&(e+=(s??"")+i[o+1]),this._$AH[o]=s}a&&!n&&this.j(e)}j(e){e===FPt?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},qPt=class extends VPt{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===FPt?void 0:e}},WPt=class extends VPt{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==FPt)}},XPt=class extends VPt{constructor(e,t,r,n,i){super(e,t,r,n,i),this.type=5}_$AI(e,t=this){if((e=zPt(this,e,t,0)??FPt)===BPt)return;const r=this._$AH,n=e===FPt&&r!==FPt||e.capture!==r.capture||e.once!==r.once||e.passive!==r.passive,i=e!==FPt&&(r===FPt||n);n&&this.element.removeEventListener(this.name,this,r),i&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){"function"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,e):this._$AH.handleEvent(e)}},YPt=class{constructor(e,t,r){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=r}get _$AU(){return this._$AM._$AU}_$AI(e){zPt(this,e)}};const KPt=gPt.litHtmlPolyfillSupport;KPt?.(jPt,HPt),(gPt.litHtmlVersions??=[]).push("3.1.3");const ZPt=globalThis,QPt=ZPt.ShadowRoot&&(void 0===ZPt.ShadyCSS||ZPt.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,JPt=Symbol(),eMt=new WeakMap;let tMt=class{constructor(e,t,r){if(this._$cssResult$=!0,r!==JPt)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=t}get styleSheet(){let e=this.o;const t=this.t;if(QPt&&void 0===e){const r=void 0!==t&&1===t.length;r&&(e=eMt.get(t)),void 0===e&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),r&&eMt.set(t,e))}return e}toString(){return this.cssText}};const rMt=QPt?e=>e:e=>e instanceof CSSStyleSheet?(e=>{let t="";for(const r of e.cssRules)t+=r.cssText;return(e=>new tMt("string"==typeof e?e:e+"",void 0,JPt))(t)})(e):e,{is:nMt,defineProperty:iMt,getOwnPropertyDescriptor:aMt,getOwnPropertyNames:oMt,getOwnPropertySymbols:sMt,getPrototypeOf:uMt}=Object,cMt=globalThis,lMt=cMt.trustedTypes,dMt=lMt?lMt.emptyScript:"",fMt=cMt.reactiveElementPolyfillSupport,hMt=(e,t)=>e,pMt={toAttribute(e,t){switch(t){case Boolean:e=e?dMt:null;break;case Object:case Array:e=null==e?e:JSON.stringify(e)}return e},fromAttribute(e,t){let r=e;switch(t){case Boolean:r=null!==e;break;case Number:r=null===e?null:Number(e);break;case Object:case Array:try{r=JSON.parse(e)}catch(e){r=null}}return r}},mMt=(e,t)=>!nMt(e,t),vMt={attribute:!0,type:String,converter:pMt,reflect:!1,hasChanged:mMt};Symbol.metadata??=Symbol("metadata"),cMt.litPropertyMetadata??=new WeakMap;class gMt extends HTMLElement{static addInitializer(e){this._$Ei(),(this.l??=[]).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,t=vMt){if(t.state&&(t.attribute=!1),this._$Ei(),this.elementProperties.set(e,t),!t.noAccessor){const r=Symbol(),n=this.getPropertyDescriptor(e,r,t);void 0!==n&&iMt(this.prototype,e,n)}}static getPropertyDescriptor(e,t,r){const{get:n,set:i}=aMt(this.prototype,e)??{get(){return this[t]},set(e){this[t]=e}};return{get(){return n?.call(this)},set(t){const a=n?.call(this);i.call(this,t),this.requestUpdate(e,a,r)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??vMt}static _$Ei(){if(this.hasOwnProperty(hMt("elementProperties")))return;const e=uMt(this);e.finalize(),void 0!==e.l&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(hMt("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(hMt("properties"))){const e=this.properties,t=[...oMt(e),...sMt(e)];for(const r of t)this.createProperty(r,e[r])}const e=this[Symbol.metadata];if(null!==e){const t=litPropertyMetadata.get(e);if(void 0!==t)for(const[e,r]of t)this.elementProperties.set(e,r)}this._$Eh=new Map;for(const[e,t]of this.elementProperties){const r=this._$Eu(e,t);void 0!==r&&this._$Eh.set(r,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){const t=[];if(Array.isArray(e)){const r=new Set(e.flat(1/0).reverse());for(const e of r)t.unshift(rMt(e))}else void 0!==e&&t.push(rMt(e));return t}static _$Eu(e,t){const r=t.attribute;return!1===r?void 0:"string"==typeof r?r:"string"==typeof e?e.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise((e=>this.enableUpdating=e)),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach((e=>e(this)))}addController(e){(this._$EO??=new Set).add(e),void 0!==this.renderRoot&&this.isConnected&&e.hostConnected?.()}removeController(e){this._$EO?.delete(e)}_$E_(){const e=new Map,t=this.constructor.elementProperties;for(const r of t.keys())this.hasOwnProperty(r)&&(e.set(r,this[r]),delete this[r]);e.size>0&&(this._$Ep=e)}createRenderRoot(){const e=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return((e,t)=>{if(QPt)e.adoptedStyleSheets=t.map((e=>e instanceof CSSStyleSheet?e:e.styleSheet));else for(const r of t){const t=document.createElement("style"),n=ZPt.litNonce;void 0!==n&&t.setAttribute("nonce",n),t.textContent=r.cssText,e.appendChild(t)}})(e,this.constructor.elementStyles),e}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach((e=>e.hostConnected?.()))}enableUpdating(e){}disconnectedCallback(){this._$EO?.forEach((e=>e.hostDisconnected?.()))}attributeChangedCallback(e,t,r){this._$AK(e,r)}_$EC(e,t){const r=this.constructor.elementProperties.get(e),n=this.constructor._$Eu(e,r);if(void 0!==n&&!0===r.reflect){const i=(void 0!==r.converter?.toAttribute?r.converter:pMt).toAttribute(t,r.type);this._$Em=e,null==i?this.removeAttribute(n):this.setAttribute(n,i),this._$Em=null}}_$AK(e,t){const r=this.constructor,n=r._$Eh.get(e);if(void 0!==n&&this._$Em!==n){const e=r.getPropertyOptions(n),i="function"==typeof e.converter?{fromAttribute:e.converter}:void 0!==e.converter?.fromAttribute?e.converter:pMt;this._$Em=n,this[n]=i.fromAttribute(t,e.type),this._$Em=null}}requestUpdate(e,t,r){if(void 0!==e){if(r??=this.constructor.getPropertyOptions(e),!(r.hasChanged??mMt)(this[e],t))return;this.P(e,t,r)}!1===this.isUpdatePending&&(this._$ES=this._$ET())}P(e,t,r){this._$AL.has(e)||this._$AL.set(e,t),!0===r.reflect&&this._$Em!==e&&(this._$Ej??=new Set).add(e)}async _$ET(){this.isUpdatePending=!0;try{await this._$ES}catch(e){Promise.reject(e)}const e=this.scheduleUpdate();return null!=e&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[e,t]of this._$Ep)this[e]=t;this._$Ep=void 0}const e=this.constructor.elementProperties;if(e.size>0)for(const[t,r]of e)!0!==r.wrapped||this._$AL.has(t)||void 0===this[t]||this.P(t,this[t],r)}let e=!1;const t=this._$AL;try{e=this.shouldUpdate(t),e?(this.willUpdate(t),this._$EO?.forEach((e=>e.hostUpdate?.())),this.update(t)):this._$EU()}catch(t){throw e=!1,this._$EU(),t}e&&this._$AE(t)}willUpdate(e){}_$AE(e){this._$EO?.forEach((e=>e.hostUpdated?.())),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(e){return!0}update(e){this._$Ej&&=this._$Ej.forEach((e=>this._$EC(e,this[e]))),this._$EU()}updated(e){}firstUpdated(e){}}gMt.elementStyles=[],gMt.shadowRootOptions={mode:"open"},gMt[hMt("elementProperties")]=new Map,gMt[hMt("finalized")]=new Map,fMt?.({ReactiveElement:gMt}),(cMt.reactiveElementVersions??=[]).push("2.0.4");const yMt=globalThis,bMt=yMt.trustedTypes,_Mt=bMt?bMt.createPolicy("lit-html",{createHTML:e=>e}):void 0,xMt="$lit$",wMt=`lit$${Math.random().toFixed(9).slice(2)}$`,SMt="?"+wMt,AMt=`<${SMt}>`,CMt=document,EMt=()=>CMt.createComment(""),TMt=e=>null===e||"object"!=typeof e&&"function"!=typeof e,PMt=Array.isArray,MMt="[ \t\n\f\r]",kMt=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,OMt=/-->/g,IMt=/>/g,DMt=RegExp(`>|${MMt}(?:([^\\s"'>=/]+)(${MMt}*=${MMt}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),NMt=/'/g,RMt=/"/g,BMt=/^(?:script|style|textarea|title)$/i,FMt=(e,...t)=>({_$litType$:1,strings:e,values:t}),LMt=Symbol.for("lit-noChange"),UMt=Symbol.for("lit-nothing"),$Mt=new WeakMap,jMt=CMt.createTreeWalker(CMt,129);function zMt(e,t){if(!Array.isArray(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==_Mt?_Mt.createHTML(t):t}class GMt{constructor({strings:e,_$litType$:t},r){let n;this.parts=[];let i=0,a=0;const o=e.length-1,s=this.parts,[u,c]=((e,t)=>{const r=e.length-1,n=[];let i,a=2===t?"<svg>":"",o=kMt;for(let t=0;t<r;t++){const r=e[t];let s,u,c=-1,l=0;for(;l<r.length&&(o.lastIndex=l,u=o.exec(r),null!==u);)l=o.lastIndex,o===kMt?"!--"===u[1]?o=OMt:void 0!==u[1]?o=IMt:void 0!==u[2]?(BMt.test(u[2])&&(i=RegExp("</"+u[2],"g")),o=DMt):void 0!==u[3]&&(o=DMt):o===DMt?">"===u[0]?(o=i??kMt,c=-1):void 0===u[1]?c=-2:(c=o.lastIndex-u[2].length,s=u[1],o=void 0===u[3]?DMt:'"'===u[3]?RMt:NMt):o===RMt||o===NMt?o=DMt:o===OMt||o===IMt?o=kMt:(o=DMt,i=void 0);const d=o===DMt&&e[t+1].startsWith("/>")?" ":"";a+=o===kMt?r+AMt:c>=0?(n.push(s),r.slice(0,c)+xMt+r.slice(c)+wMt+d):r+wMt+(-2===c?t:d)}return[zMt(e,a+(e[r]||"<?>")+(2===t?"</svg>":"")),n]})(e,t);if(this.el=GMt.createElement(u,r),jMt.currentNode=this.el.content,2===t){const e=this.el.content.firstChild;e.replaceWith(...e.childNodes)}for(;null!==(n=jMt.nextNode())&&s.length<o;){if(1===n.nodeType){if(n.hasAttributes())for(const e of n.getAttributeNames())if(e.endsWith(xMt)){const t=c[a++],r=n.getAttribute(e).split(wMt),o=/([.?@])?(.*)/.exec(t);s.push({type:1,index:i,name:o[2],strings:r,ctor:"."===o[1]?XMt:"?"===o[1]?YMt:"@"===o[1]?KMt:WMt}),n.removeAttribute(e)}else e.startsWith(wMt)&&(s.push({type:6,index:i}),n.removeAttribute(e));if(BMt.test(n.tagName)){const e=n.textContent.split(wMt),t=e.length-1;if(t>0){n.textContent=bMt?bMt.emptyScript:"";for(let r=0;r<t;r++)n.append(e[r],EMt()),jMt.nextNode(),s.push({type:2,index:++i});n.append(e[t],EMt())}}}else if(8===n.nodeType)if(n.data===SMt)s.push({type:2,index:i});else{let e=-1;for(;-1!==(e=n.data.indexOf(wMt,e+1));)s.push({type:7,index:i}),e+=wMt.length-1}i++}}static createElement(e,t){const r=CMt.createElement("template");return r.innerHTML=e,r}}function HMt(e,t,r=e,n){if(t===LMt)return t;let i=void 0!==n?r._$Co?.[n]:r._$Cl;const a=TMt(t)?void 0:t._$litDirective$;return i?.constructor!==a&&(i?._$AO?.(!1),void 0===a?i=void 0:(i=new a(e),i._$AT(e,r,n)),void 0!==n?(r._$Co??=[])[n]=i:r._$Cl=i),void 0!==i&&(t=HMt(e,i._$AS(e,t.values),i,n)),t}class VMt{constructor(e,t){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){const{el:{content:t},parts:r}=this._$AD,n=(e?.creationScope??CMt).importNode(t,!0);jMt.currentNode=n;let i=jMt.nextNode(),a=0,o=0,s=r[0];for(;void 0!==s;){if(a===s.index){let t;2===s.type?t=new qMt(i,i.nextSibling,this,e):1===s.type?t=new s.ctor(i,s.name,s.strings,this,e):6===s.type&&(t=new ZMt(i,this,e)),this._$AV.push(t),s=r[++o]}a!==s?.index&&(i=jMt.nextNode(),a++)}return jMt.currentNode=CMt,n}p(e){let t=0;for(const r of this._$AV)void 0!==r&&(void 0!==r.strings?(r._$AI(e,r,t),t+=r.strings.length-2):r._$AI(e[t])),t++}}class qMt{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,t,r,n){this.type=2,this._$AH=UMt,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=r,this.options=n,this._$Cv=n?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode;const t=this._$AM;return void 0!==t&&11===e?.nodeType&&(e=t.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,t=this){e=HMt(this,e,t),TMt(e)?e===UMt||null==e||""===e?(this._$AH!==UMt&&this._$AR(),this._$AH=UMt):e!==this._$AH&&e!==LMt&&this._(e):void 0!==e._$litType$?this.$(e):void 0!==e.nodeType?this.T(e):(e=>PMt(e)||"function"==typeof e?.[Symbol.iterator])(e)?this.k(e):this._(e)}S(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.S(e))}_(e){this._$AH!==UMt&&TMt(this._$AH)?this._$AA.nextSibling.data=e:this.T(CMt.createTextNode(e)),this._$AH=e}$(e){const{values:t,_$litType$:r}=e,n="number"==typeof r?this._$AC(e):(void 0===r.el&&(r.el=GMt.createElement(zMt(r.h,r.h[0]),this.options)),r);if(this._$AH?._$AD===n)this._$AH.p(t);else{const e=new VMt(n,this),r=e.u(this.options);e.p(t),this.T(r),this._$AH=e}}_$AC(e){let t=$Mt.get(e.strings);return void 0===t&&$Mt.set(e.strings,t=new GMt(e)),t}k(e){PMt(this._$AH)||(this._$AH=[],this._$AR());const t=this._$AH;let r,n=0;for(const i of e)n===t.length?t.push(r=new qMt(this.S(EMt()),this.S(EMt()),this,this.options)):r=t[n],r._$AI(i),n++;n<t.length&&(this._$AR(r&&r._$AB.nextSibling,n),t.length=n)}_$AR(e=this._$AA.nextSibling,t){for(this._$AP?.(!1,!0,t);e&&e!==this._$AB;){const t=e.nextSibling;e.remove(),e=t}}setConnected(e){void 0===this._$AM&&(this._$Cv=e,this._$AP?.(e))}}class WMt{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,t,r,n,i){this.type=1,this._$AH=UMt,this._$AN=void 0,this.element=e,this.name=t,this._$AM=n,this.options=i,r.length>2||""!==r[0]||""!==r[1]?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=UMt}_$AI(e,t=this,r,n){const i=this.strings;let a=!1;if(void 0===i)e=HMt(this,e,t,0),a=!TMt(e)||e!==this._$AH&&e!==LMt,a&&(this._$AH=e);else{const n=e;let o,s;for(e=i[0],o=0;o<i.length-1;o++)s=HMt(this,n[r+o],t,o),s===LMt&&(s=this._$AH[o]),a||=!TMt(s)||s!==this._$AH[o],s===UMt?e=UMt:e!==UMt&&(e+=(s??"")+i[o+1]),this._$AH[o]=s}a&&!n&&this.j(e)}j(e){e===UMt?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}}class XMt extends WMt{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===UMt?void 0:e}}class YMt extends WMt{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==UMt)}}class KMt extends WMt{constructor(e,t,r,n,i){super(e,t,r,n,i),this.type=5}_$AI(e,t=this){if((e=HMt(this,e,t,0)??UMt)===LMt)return;const r=this._$AH,n=e===UMt&&r!==UMt||e.capture!==r.capture||e.once!==r.once||e.passive!==r.passive,i=e!==UMt&&(r===UMt||n);n&&this.element.removeEventListener(this.name,this,r),i&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){"function"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,e):this._$AH.handleEvent(e)}}class ZMt{constructor(e,t,r){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=r}get _$AU(){return this._$AM._$AU}_$AI(e){HMt(this,e)}}const QMt=yMt.litHtmlPolyfillSupport;QMt?.(GMt,qMt),(yMt.litHtmlVersions??=[]).push("3.1.3");class JMt extends gMt{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){const e=super.createRenderRoot();return this.renderOptions.renderBefore??=e.firstChild,e}update(e){const t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=((e,t,r)=>{const n=r?.renderBefore??t;let i=n._$litPart$;if(void 0===i){const e=r?.renderBefore??null;n._$litPart$=i=new qMt(t.insertBefore(EMt(),e),e,void 0,r??{})}return i._$AI(e),i})(t,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return LMt}}JMt._$litElement$=!0,JMt.finalized=!0,globalThis.litElementHydrateSupport?.({LitElement:JMt});const ekt=globalThis.litElementPolyfillSupport;ekt?.({LitElement:JMt}),(globalThis.litElementVersions??=[]).push("4.0.5");var tkt="object"==typeof global&&global&&global.Object===Object&&global,rkt="object"==typeof self&&self&&self.Object===Object&&self,nkt=tkt||rkt||Function("return this")(),ikt=nkt.Symbol,akt=Object.prototype,okt=akt.hasOwnProperty,skt=akt.toString,ukt=ikt?ikt.toStringTag:void 0,ckt=Object.prototype.toString,lkt=ikt?ikt.toStringTag:void 0;function dkt(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":lkt&&lkt in Object(e)?function(e){var t=okt.call(e,ukt),r=e[ukt];try{e[ukt]=void 0;var n=!0}catch(e){}var i=skt.call(e);return n&&(t?e[ukt]=r:delete e[ukt]),i}(e):function(e){return ckt.call(e)}(e)}function fkt(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function hkt(e){if(!fkt(e))return!1;var t=dkt(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}var pkt,mkt=nkt["__core-js_shared__"],vkt=(pkt=/[^.]+$/.exec(mkt&&mkt.keys&&mkt.keys.IE_PROTO||""))?"Symbol(src)_1."+pkt:"",gkt=Function.prototype.toString;function ykt(e){if(null!=e){try{return gkt.call(e)}catch(e){}try{return e+""}catch(e){}}return""}var bkt=/^\[object .+?Constructor\]$/,_kt=Function.prototype,xkt=Object.prototype,wkt=_kt.toString,Skt=xkt.hasOwnProperty,Akt=RegExp("^"+wkt.call(Skt).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Ckt(e,t){var r=function(e,t){return null==e?void 0:e[t]}(e,t);return function(e){return!(!fkt(e)||(t=e,vkt&&vkt in t))&&(hkt(e)?Akt:bkt).test(ykt(e));var t}(r)?r:void 0}var Ekt=function(){try{var e=Ckt(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();function Tkt(e,t,r,n){for(var i=-1,a=null==e?0:e.length;++i<a;){var o=e[i];t(n,o,r(o),e)}return n}function Pkt(e){return null!=e&&"object"==typeof e}function Mkt(e){return Pkt(e)&&"[object Arguments]"==dkt(e)}var kkt=Object.prototype,Okt=kkt.hasOwnProperty,Ikt=kkt.propertyIsEnumerable,Dkt=Mkt(function(){return arguments}())?Mkt:function(e){return Pkt(e)&&Okt.call(e,"callee")&&!Ikt.call(e,"callee")},Nkt=Array.isArray,Rkt="object"==typeof exports&&exports&&!exports.nodeType&&exports,Bkt=Rkt&&"object"==typeof module&&module&&!module.nodeType&&module,Fkt=Bkt&&Bkt.exports===Rkt?nkt.Buffer:void 0,Lkt=(Fkt?Fkt.isBuffer:void 0)||function(){return!1},Ukt=/^(?:0|[1-9]\d*)$/;function $kt(e,t){var r=typeof e;return!!(t=t??9007199254740991)&&("number"==r||"symbol"!=r&&Ukt.test(e))&&e>-1&&e%1==0&&e<t}function jkt(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}var zkt={};zkt["[object Float32Array]"]=zkt["[object Float64Array]"]=zkt["[object Int8Array]"]=zkt["[object Int16Array]"]=zkt["[object Int32Array]"]=zkt["[object Uint8Array]"]=zkt["[object Uint8ClampedArray]"]=zkt["[object Uint16Array]"]=zkt["[object Uint32Array]"]=!0,zkt["[object Arguments]"]=zkt["[object Array]"]=zkt["[object ArrayBuffer]"]=zkt["[object Boolean]"]=zkt["[object DataView]"]=zkt["[object Date]"]=zkt["[object Error]"]=zkt["[object Function]"]=zkt["[object Map]"]=zkt["[object Number]"]=zkt["[object Object]"]=zkt["[object RegExp]"]=zkt["[object Set]"]=zkt["[object String]"]=zkt["[object WeakMap]"]=!1;var Gkt,Hkt="object"==typeof exports&&exports&&!exports.nodeType&&exports,Vkt=Hkt&&"object"==typeof module&&module&&!module.nodeType&&module,qkt=Vkt&&Vkt.exports===Hkt&&tkt.process,Wkt=function(){try{return Vkt&&Vkt.require&&Vkt.require("util").types||qkt&&qkt.binding&&qkt.binding("util")}catch(e){}}(),Xkt=Wkt&&Wkt.isTypedArray,Ykt=Xkt?(Gkt=Xkt,function(e){return Gkt(e)}):function(e){return Pkt(e)&&jkt(e.length)&&!!zkt[dkt(e)]},Kkt=Object.prototype.hasOwnProperty,Zkt=Object.prototype,Qkt=function(e,t){return function(r){return e(t(r))}}(Object.keys,Object),Jkt=Object.prototype.hasOwnProperty;function eOt(e){return null!=e&&jkt(e.length)&&!hkt(e)}function tOt(e){return eOt(e)?function(e){var t=Nkt(e),r=!t&&Dkt(e),n=!t&&!r&&Lkt(e),i=!t&&!r&&!n&&Ykt(e),a=t||r||n||i,o=a?function(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}(e.length,String):[],s=o.length;for(var u in e)!Kkt.call(e,u)||a&&("length"==u||n&&("offset"==u||"parent"==u)||i&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||$kt(u,s))||o.push(u);return o}(e):function(e){if(r=(t=e)&&t.constructor,t!==("function"==typeof r&&r.prototype||Zkt))return Qkt(e);var t,r,n=[];for(var i in Object(e))Jkt.call(e,i)&&"constructor"!=i&&n.push(i);return n}(e)}var rOt,nOt=(rOt=function(e,t){return e&&function(e,t,r){for(var n=-1,i=Object(e),a=r(e),o=a.length;o--;){var s=a[++n];if(!1===t(i[s],s,i))break}return e}(e,t,tOt)},function(e,t){if(null==e)return e;if(!eOt(e))return rOt(e,t);for(var r=e.length,n=-1,i=Object(e);++n<r&&!1!==t(i[n],n,i););return e});function iOt(e,t,r,n){return nOt(e,(function(e,i,a){t(n,e,r(e),a)})),n}function aOt(e,t){return e===t||e!=e&&t!=t}function oOt(e,t){for(var r=e.length;r--;)if(aOt(e[r][0],t))return r;return-1}var sOt=Array.prototype.splice;function uOt(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}uOt.prototype.clear=function(){this.__data__=[],this.size=0},uOt.prototype.delete=function(e){var t=this.__data__,r=oOt(t,e);return!(r<0||(r==t.length-1?t.pop():sOt.call(t,r,1),--this.size,0))},uOt.prototype.get=function(e){var t=this.__data__,r=oOt(t,e);return r<0?void 0:t[r][1]},uOt.prototype.has=function(e){return oOt(this.__data__,e)>-1},uOt.prototype.set=function(e,t){var r=this.__data__,n=oOt(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this};var cOt=Ckt(nkt,"Map"),lOt=Ckt(Object,"create"),dOt=Object.prototype.hasOwnProperty,fOt=Object.prototype.hasOwnProperty;function hOt(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function pOt(e,t){var r,n,i=e.__data__;return("string"==(n=typeof(r=t))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==r:null===r)?i["string"==typeof t?"string":"hash"]:i.map}function mOt(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function vOt(e){var t=this.__data__=new uOt(e);this.size=t.size}function gOt(e){var t=-1,r=null==e?0:e.length;for(this.__data__=new mOt;++t<r;)this.add(e[t])}function yOt(e,t){for(var r=-1,n=null==e?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}function bOt(e,t,r,n,i,a){var o=1&r,s=e.length,u=t.length;if(s!=u&&!(o&&u>s))return!1;var c=a.get(e),l=a.get(t);if(c&&l)return c==t&&l==e;var d=-1,f=!0,h=2&r?new gOt:void 0;for(a.set(e,t),a.set(t,e);++d<s;){var p=e[d],m=t[d];if(n)var v=o?n(m,p,d,t,e,a):n(p,m,d,e,t,a);if(void 0!==v){if(v)continue;f=!1;break}if(h){if(!yOt(t,(function(e,t){if(o=t,!h.has(o)&&(p===e||i(p,e,r,n,a)))return h.push(t);var o}))){f=!1;break}}else if(p!==m&&!i(p,m,r,n,a)){f=!1;break}}return a.delete(e),a.delete(t),f}hOt.prototype.clear=function(){this.__data__=lOt?lOt(null):{},this.size=0},hOt.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},hOt.prototype.get=function(e){var t=this.__data__;if(lOt){var r=t[e];return"__lodash_hash_undefined__"===r?void 0:r}return dOt.call(t,e)?t[e]:void 0},hOt.prototype.has=function(e){var t=this.__data__;return lOt?void 0!==t[e]:fOt.call(t,e)},hOt.prototype.set=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=lOt&&void 0===t?"__lodash_hash_undefined__":t,this},mOt.prototype.clear=function(){this.size=0,this.__data__={hash:new hOt,map:new(cOt||uOt),string:new hOt}},mOt.prototype.delete=function(e){var t=pOt(this,e).delete(e);return this.size-=t?1:0,t},mOt.prototype.get=function(e){return pOt(this,e).get(e)},mOt.prototype.has=function(e){return pOt(this,e).has(e)},mOt.prototype.set=function(e,t){var r=pOt(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this},vOt.prototype.clear=function(){this.__data__=new uOt,this.size=0},vOt.prototype.delete=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r},vOt.prototype.get=function(e){return this.__data__.get(e)},vOt.prototype.has=function(e){return this.__data__.has(e)},vOt.prototype.set=function(e,t){var r=this.__data__;if(r instanceof uOt){var n=r.__data__;if(!cOt||n.length<199)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new mOt(n)}return r.set(e,t),this.size=r.size,this},gOt.prototype.add=gOt.prototype.push=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},gOt.prototype.has=function(e){return this.__data__.has(e)};var _Ot=nkt.Uint8Array;function xOt(e){var t=-1,r=Array(e.size);return e.forEach((function(e,n){r[++t]=[n,e]})),r}function wOt(e){var t=-1,r=Array(e.size);return e.forEach((function(e){r[++t]=e})),r}var SOt=ikt?ikt.prototype:void 0,AOt=SOt?SOt.valueOf:void 0,COt=Object.prototype.propertyIsEnumerable,EOt=Object.getOwnPropertySymbols,TOt=EOt?function(e){return null==e?[]:(e=Object(e),function(e,t){for(var r=-1,n=null==e?0:e.length,i=0,a=[];++r<n;){var o=e[r];t(o)&&(a[i++]=o)}return a}(EOt(e),(function(t){return COt.call(e,t)})))}:function(){return[]};function POt(e){return function(e,t,r){var n=tOt(e);return Nkt(e)?n:function(e,t){for(var r=-1,n=t.length,i=e.length;++r<n;)e[i+r]=t[r];return e}(n,r(e))}(e,0,TOt)}var MOt=Object.prototype.hasOwnProperty,kOt=Ckt(nkt,"DataView"),OOt=Ckt(nkt,"Promise"),IOt=Ckt(nkt,"Set"),DOt=Ckt(nkt,"WeakMap"),NOt="[object Map]",ROt="[object Promise]",BOt="[object Set]",FOt="[object WeakMap]",LOt="[object DataView]",UOt=ykt(kOt),$Ot=ykt(cOt),jOt=ykt(OOt),zOt=ykt(IOt),GOt=ykt(DOt),HOt=dkt;(kOt&&HOt(new kOt(new ArrayBuffer(1)))!=LOt||cOt&&HOt(new cOt)!=NOt||OOt&&HOt(OOt.resolve())!=ROt||IOt&&HOt(new IOt)!=BOt||DOt&&HOt(new DOt)!=FOt)&&(HOt=function(e){var t=dkt(e),r="[object Object]"==t?e.constructor:void 0,n=r?ykt(r):"";if(n)switch(n){case UOt:return LOt;case $Ot:return NOt;case jOt:return ROt;case zOt:return BOt;case GOt:return FOt}return t});var VOt="[object Arguments]",qOt="[object Array]",WOt="[object Object]",XOt=Object.prototype.hasOwnProperty;function YOt(e,t,r,n,i){return e===t||(null==e||null==t||!Pkt(e)&&!Pkt(t)?e!=e&&t!=t:function(e,t,r,n,i,a){var o=Nkt(e),s=Nkt(t),u=o?qOt:HOt(e),c=s?qOt:HOt(t),l=(u=u==VOt?WOt:u)==WOt,d=(c=c==VOt?WOt:c)==WOt,f=u==c;if(f&&Lkt(e)){if(!Lkt(t))return!1;o=!0,l=!1}if(f&&!l)return a||(a=new vOt),o||Ykt(e)?bOt(e,t,r,n,i,a):function(e,t,r,n,i,a,o){switch(r){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!a(new _Ot(e),new _Ot(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return aOt(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var s=xOt;case"[object Set]":var u=1&n;if(s||(s=wOt),e.size!=t.size&&!u)return!1;var c=o.get(e);if(c)return c==t;n|=2,o.set(e,t);var l=bOt(s(e),s(t),n,i,a,o);return o.delete(e),l;case"[object Symbol]":if(AOt)return AOt.call(e)==AOt.call(t)}return!1}(e,t,u,r,n,i,a);if(!(1&r)){var h=l&&XOt.call(e,"__wrapped__"),p=d&&XOt.call(t,"__wrapped__");if(h||p){var m=h?e.value():e,v=p?t.value():t;return a||(a=new vOt),i(m,v,r,n,a)}}return!!f&&(a||(a=new vOt),function(e,t,r,n,i,a){var o=1&r,s=POt(e),u=s.length;if(u!=POt(t).length&&!o)return!1;for(var c=u;c--;){var l=s[c];if(!(o?l in t:MOt.call(t,l)))return!1}var d=a.get(e),f=a.get(t);if(d&&f)return d==t&&f==e;var h=!0;a.set(e,t),a.set(t,e);for(var p=o;++c<u;){var m=e[l=s[c]],v=t[l];if(n)var g=o?n(v,m,l,t,e,a):n(m,v,l,e,t,a);if(!(void 0===g?m===v||i(m,v,r,n,a):g)){h=!1;break}p||(p="constructor"==l)}if(h&&!p){var y=e.constructor,b=t.constructor;y==b||!("constructor"in e)||!("constructor"in t)||"function"==typeof y&&y instanceof y&&"function"==typeof b&&b instanceof b||(h=!1)}return a.delete(e),a.delete(t),h}(e,t,r,n,i,a))}(e,t,r,n,YOt,i))}function KOt(e){return e==e&&!fkt(e)}function ZOt(e,t){return function(r){return null!=r&&r[e]===t&&(void 0!==t||e in Object(r))}}function QOt(e){return"symbol"==typeof e||Pkt(e)&&"[object Symbol]"==dkt(e)}var JOt=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,eIt=/^\w*$/;function tIt(e,t){if(Nkt(e))return!1;var r=typeof e;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=e&&!QOt(e))||eIt.test(e)||!JOt.test(e)||null!=t&&e in Object(t)}function rIt(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var r=function(){var n=arguments,i=t?t.apply(this,n):n[0],a=r.cache;if(a.has(i))return a.get(i);var o=e.apply(this,n);return r.cache=a.set(i,o)||a,o};return r.cache=new(rIt.Cache||mOt),r}rIt.Cache=mOt;var nIt=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,iIt=/\\(\\)?/g,aIt=function(){var e=rIt((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(nIt,(function(e,r,n,i){t.push(n?i.replace(iIt,"$1"):r||e)})),t}),(function(e){return 500===t.size&&t.clear(),e})),t=e.cache;return e}(),oIt=ikt?ikt.prototype:void 0,sIt=oIt?oIt.toString:void 0;function uIt(e){if("string"==typeof e)return e;if(Nkt(e))return function(e,t){for(var r=-1,n=null==e?0:e.length,i=Array(n);++r<n;)i[r]=t(e[r],r,e);return i}(e,uIt)+"";if(QOt(e))return sIt?sIt.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function cIt(e,t){return Nkt(e)?e:tIt(e,t)?[e]:aIt(function(e){return null==e?"":uIt(e)}(e))}function lIt(e){if("string"==typeof e||QOt(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function dIt(e,t){for(var r=0,n=(t=cIt(t,e)).length;null!=e&&r<n;)e=e[lIt(t[r++])];return r&&r==n?e:void 0}function fIt(e,t){return null!=e&&t in Object(e)}function hIt(e){return e}var pIt,mIt,vIt,gIt=Object.prototype.hasOwnProperty,yIt=(pIt=function(e,t,r){gIt.call(e,r)?e[r].push(t):function(e,t,r){"__proto__"==t&&Ekt?Ekt(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}(e,r,[t])},function(e,t){var r;return(Nkt(e)?Tkt:iOt)(e,pIt,"function"==typeof(r=t)?r:null==r?hIt:"object"==typeof r?Nkt(r)?function(e,t){return tIt(e)&&KOt(t)?ZOt(lIt(e),t):function(r){var n=function(e,t){var r=null==e?void 0:dIt(e,t);return void 0===r?void 0:r}(r,e);return void 0===n&&n===t?function(e,t){return null!=e&&function(e,t,r){for(var n=-1,i=(t=cIt(t,e)).length,a=!1;++n<i;){var o=lIt(t[n]);if(!(a=null!=e&&r(e,o)))break;e=e[o]}return a||++n!=i?a:!!(i=null==e?0:e.length)&&jkt(i)&&$kt(o,i)&&(Nkt(e)||Dkt(e))}(e,t,fIt)}(r,e):YOt(t,n,3)}}(r[0],r[1]):function(e){var t=function(e){for(var t=tOt(e),r=t.length;r--;){var n=t[r],i=e[n];t[r]=[n,i,KOt(i)]}return t}(e);return 1==t.length&&t[0][2]?ZOt(t[0][0],t[0][1]):function(r){return r===e||function(e,t,r){var n=r.length,i=n;if(null==e)return!i;for(e=Object(e);n--;){var a=r[n];if(a[2]?a[1]!==e[a[0]]:!(a[0]in e))return!1}for(;++n<i;){var o=(a=r[n])[0],s=e[o],u=a[1];if(a[2]){if(void 0===s&&!(o in e))return!1}else if(!YOt(u,s,3,void 0,new vOt))return!1}return!0}(r,0,t)}}(r):function(e){return tIt(e)?(t=lIt(e),function(e){return null==e?void 0:e[t]}):function(e){return function(t){return dIt(t,e)}}(e);var t}(r),{})});let bIt=class extends Ld{constructor(){super(),this.filters=[],this.for="",mIt.set(this,new Set),vIt.set(this,void 0),this.filters=[]}connectedCallback(){super.connectedCallback(),this.closest("nightingale-manager")&&(function(e,t,r){if("function"==typeof t||!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");t.set(e,r)}(this,vIt,this.closest("nightingale-manager")),qTt(this,vIt,"f").register(this))}disconnectedCallback(){super.disconnectedCallback(),qTt(this,vIt,"f")&&qTt(this,vIt,"f").unregister(this)}render(){const e=yIt(this.filters,(e=>e.type.text));return FMt`
|
|
319
|
+
</div>`}updated(e){this.heatmapData&&!this.heatmapInstance&&(this.renderHeatmap(),this.bindHeatmapEvents()),this.applyZoomTranslation()}setHeatmapData(e,t,r){this.heatmapDomainX=e,this.heatmapDomainY=t,this.heatmapData?(this.heatmapData=r,this.heatmapInstance.setData({xDomain:e,yDomain:t,data:r,x:e=>e.xValue,y:e=>e.yValue?e.yValue:"none"})):this.heatmapData=r,this.requestUpdate()}createRandomFromLength(){const e=[...Array(this.length).keys()].map((e=>e+1)),t=["A","B","C"],r=[];for(const n of e)for(const e of t){const t=Math.random();r.push({xValue:n,yValue:e,score:t})}this.setHeatmapData(e,t,r)}renderHeatmap(){const e=$Tt.Heatmap.create({xDomain:this.heatmapDomainX,yDomain:this.heatmapDomainY,data:this.heatmapData,x:e=>e.xValue,y:e=>e.yValue?e.yValue:"none"}),t=Math.min(...this.heatmapData.map((e=>e.score))),r=Math.max(...this.heatmapData.map((e=>e.score))),n=Ppt([t,r],["#3d5493","#9a131a"]);e.setColor((e=>n(e.score))),e.setTooltip(((e,t,r,n,i)=>`\n <b>You are at</b> <br />\n x,y: <b>${e.xValue},${e.yValue}</b><br />\n score: <b>${zTt(e.score)}</b>`)),e.setZooming({axis:"x"}),e.setVisualParams({xGapPixels:0,yGapPixels:0}),this.heatmapInstance=e,this.heatmapInstance.render(this["heatmap-id"]),this.heatmapInstance.events.render.subscribe((e=>{this.requestUpdate()}))}bindHeatmapEvents(){this.heatmapInstance&&(this.heatmapInstance.events.zoom.subscribe((e=>{if(!e)return;let t=e.xMin;!this.firstZoom&&this["display-start"]&&(t=this["display-start"]),t!==this["display-start"]&&this.dispatchEvent(new CustomEvent("change",{detail:{value:t,type:"display-start"},bubbles:!0,cancelable:!0}));let r=e.xMax-1;!this.firstZoom&&this["display-end"]&&(r=this["display-end"]),r!==this["display-end"]&&this.dispatchEvent(new CustomEvent("change",{detail:{value:r,type:"display-end"},bubbles:!0,cancelable:!0})),this.firstZoom||(this.firstZoom=!0)})),this.heatmapInstance.events.select.subscribe((e=>{let t=null;e&&e.cell&&e.cell.xIndex&&(t=`${e.cell.xIndex+1}:${e.cell.xIndex+1}`),this.dispatchEvent(new CustomEvent("change",{detail:{value:t,type:"highlight"},bubbles:!0,cancelable:!0}))})))}triggerHeatmapZoom(){const e=this["display-start"],t=this["display-end"]+1;this.heatmapInstance&&this.heatmapInstance.zoom({xMin:e,xMax:t})}triggerHeatmapHighlight(){var e;if(!this.heatmapInstance)return;this["use-ctrl-to-zoom"]&&(null===(e=this.heatmapInstance.extensions.zoom)||void 0===e||e.update({scrollRequireCtrl:!0}));const t=this.heatmapInstance.extensions.marker,r=bgt.MarkerY;t.state.dom.svg.selectAll("."+r).data(this.highlightedRegion.segments).join((e=>e.append("rect").attr("class",r).attr("rx",t.params.markerCornerRadius).attr("ry",t.params.markerCornerRadius).attr("x",(e=>t.state.scales.worldToCanvas.x(e.start-1))).attr("y",t.state.boxes.canvas.ymin).attr("width",(e=>lgt(t.state.scales.worldToCanvas.x,Math.max(e.end-e.start+1,1)))).attr("height",ugt.height(t.state.boxes.canvas))),(e=>e.attr("x",(e=>t.state.scales.worldToCanvas.x(e.start-1))).attr("width",(e=>lgt(t.state.scales.worldToCanvas.x,Math.max(e.end-e.start+1,1))))),(e=>e.remove()))}};dat([Got({type:String})],GTt.prototype,"heatmap-id",void 0),dat([Got({type:Number})],GTt.prototype,"hm-highlight-width",void 0),dat([Got({type:Boolean})],GTt.prototype,"use-ctrl-to-zoom",void 0),GTt=dat([(e=>t=>{window.customElements.get(e)||(e=>t=>"function"==typeof t?((e,t)=>(customElements.define(e,t),t))(e,t):((e,t)=>{const{kind:r,elements:n}=t;return{kind:r,elements:n,finisher(t){customElements.define(e,t)}}})(e,t))(e)(t)})("nightingale-sequence-heatmap")],GTt);var HTt=GTt;function VTt(e,t,r,n){var i,a=arguments.length,o=a<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(o=(a<3?i(o):a>3?i(t,r,o):i(t,r))||o);return a>3&&o&&Object.defineProperty(t,r,o),o}function qTt(e,t,r,n){if("a"===r&&!n)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?n:"a"===r?n.call(e):n?n.value:t.get(e)}"function"==typeof SuppressedError&&SuppressedError;const WTt=globalThis,XTt=WTt.ShadowRoot&&(void 0===WTt.ShadyCSS||WTt.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,YTt=Symbol(),KTt=new WeakMap;let ZTt=class{constructor(e,t,r){if(this._$cssResult$=!0,r!==YTt)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=t}get styleSheet(){let e=this.o;const t=this.t;if(XTt&&void 0===e){const r=void 0!==t&&1===t.length;r&&(e=KTt.get(t)),void 0===e&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),r&&KTt.set(t,e))}return e}toString(){return this.cssText}};const QTt=XTt?e=>e:e=>e instanceof CSSStyleSheet?(e=>{let t="";for(const r of e.cssRules)t+=r.cssText;return(e=>new ZTt("string"==typeof e?e:e+"",void 0,YTt))(t)})(e):e,{is:JTt,defineProperty:ePt,getOwnPropertyDescriptor:tPt,getOwnPropertyNames:rPt,getOwnPropertySymbols:nPt,getPrototypeOf:iPt}=Object,aPt=globalThis,oPt=aPt.trustedTypes,sPt=oPt?oPt.emptyScript:"",uPt=aPt.reactiveElementPolyfillSupport,cPt=(e,t)=>e,lPt={toAttribute(e,t){switch(t){case Boolean:e=e?sPt:null;break;case Object:case Array:e=null==e?e:JSON.stringify(e)}return e},fromAttribute(e,t){let r=e;switch(t){case Boolean:r=null!==e;break;case Number:r=null===e?null:Number(e);break;case Object:case Array:try{r=JSON.parse(e)}catch(e){r=null}}return r}},dPt=(e,t)=>!JTt(e,t),fPt={attribute:!0,type:String,converter:lPt,reflect:!1,hasChanged:dPt};Symbol.metadata??=Symbol("metadata"),aPt.litPropertyMetadata??=new WeakMap;let hPt=class extends HTMLElement{static addInitializer(e){this._$Ei(),(this.l??=[]).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,t=fPt){if(t.state&&(t.attribute=!1),this._$Ei(),this.elementProperties.set(e,t),!t.noAccessor){const r=Symbol(),n=this.getPropertyDescriptor(e,r,t);void 0!==n&&ePt(this.prototype,e,n)}}static getPropertyDescriptor(e,t,r){const{get:n,set:i}=tPt(this.prototype,e)??{get(){return this[t]},set(e){this[t]=e}};return{get(){return n?.call(this)},set(t){const a=n?.call(this);i.call(this,t),this.requestUpdate(e,a,r)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??fPt}static _$Ei(){if(this.hasOwnProperty(cPt("elementProperties")))return;const e=iPt(this);e.finalize(),void 0!==e.l&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(cPt("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(cPt("properties"))){const e=this.properties,t=[...rPt(e),...nPt(e)];for(const r of t)this.createProperty(r,e[r])}const e=this[Symbol.metadata];if(null!==e){const t=litPropertyMetadata.get(e);if(void 0!==t)for(const[e,r]of t)this.elementProperties.set(e,r)}this._$Eh=new Map;for(const[e,t]of this.elementProperties){const r=this._$Eu(e,t);void 0!==r&&this._$Eh.set(r,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){const t=[];if(Array.isArray(e)){const r=new Set(e.flat(1/0).reverse());for(const e of r)t.unshift(QTt(e))}else void 0!==e&&t.push(QTt(e));return t}static _$Eu(e,t){const r=t.attribute;return!1===r?void 0:"string"==typeof r?r:"string"==typeof e?e.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise((e=>this.enableUpdating=e)),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach((e=>e(this)))}addController(e){(this._$EO??=new Set).add(e),void 0!==this.renderRoot&&this.isConnected&&e.hostConnected?.()}removeController(e){this._$EO?.delete(e)}_$E_(){const e=new Map,t=this.constructor.elementProperties;for(const r of t.keys())this.hasOwnProperty(r)&&(e.set(r,this[r]),delete this[r]);e.size>0&&(this._$Ep=e)}createRenderRoot(){const e=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return((e,t)=>{if(XTt)e.adoptedStyleSheets=t.map((e=>e instanceof CSSStyleSheet?e:e.styleSheet));else for(const r of t){const t=document.createElement("style"),n=WTt.litNonce;void 0!==n&&t.setAttribute("nonce",n),t.textContent=r.cssText,e.appendChild(t)}})(e,this.constructor.elementStyles),e}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach((e=>e.hostConnected?.()))}enableUpdating(e){}disconnectedCallback(){this._$EO?.forEach((e=>e.hostDisconnected?.()))}attributeChangedCallback(e,t,r){this._$AK(e,r)}_$EC(e,t){const r=this.constructor.elementProperties.get(e),n=this.constructor._$Eu(e,r);if(void 0!==n&&!0===r.reflect){const i=(void 0!==r.converter?.toAttribute?r.converter:lPt).toAttribute(t,r.type);this._$Em=e,null==i?this.removeAttribute(n):this.setAttribute(n,i),this._$Em=null}}_$AK(e,t){const r=this.constructor,n=r._$Eh.get(e);if(void 0!==n&&this._$Em!==n){const e=r.getPropertyOptions(n),i="function"==typeof e.converter?{fromAttribute:e.converter}:void 0!==e.converter?.fromAttribute?e.converter:lPt;this._$Em=n,this[n]=i.fromAttribute(t,e.type),this._$Em=null}}requestUpdate(e,t,r){if(void 0!==e){if(r??=this.constructor.getPropertyOptions(e),!(r.hasChanged??dPt)(this[e],t))return;this.P(e,t,r)}!1===this.isUpdatePending&&(this._$ES=this._$ET())}P(e,t,r){this._$AL.has(e)||this._$AL.set(e,t),!0===r.reflect&&this._$Em!==e&&(this._$Ej??=new Set).add(e)}async _$ET(){this.isUpdatePending=!0;try{await this._$ES}catch(e){Promise.reject(e)}const e=this.scheduleUpdate();return null!=e&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[e,t]of this._$Ep)this[e]=t;this._$Ep=void 0}const e=this.constructor.elementProperties;if(e.size>0)for(const[t,r]of e)!0!==r.wrapped||this._$AL.has(t)||void 0===this[t]||this.P(t,this[t],r)}let e=!1;const t=this._$AL;try{e=this.shouldUpdate(t),e?(this.willUpdate(t),this._$EO?.forEach((e=>e.hostUpdate?.())),this.update(t)):this._$EU()}catch(t){throw e=!1,this._$EU(),t}e&&this._$AE(t)}willUpdate(e){}_$AE(e){this._$EO?.forEach((e=>e.hostUpdated?.())),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(e){return!0}update(e){this._$Ej&&=this._$Ej.forEach((e=>this._$EC(e,this[e]))),this._$EU()}updated(e){}firstUpdated(e){}};hPt.elementStyles=[],hPt.shadowRootOptions={mode:"open"},hPt[cPt("elementProperties")]=new Map,hPt[cPt("finalized")]=new Map,uPt?.({ReactiveElement:hPt}),(aPt.reactiveElementVersions??=[]).push("2.0.4");const pPt={attribute:!0,type:String,converter:lPt,reflect:!1,hasChanged:dPt},mPt=(e=pPt,t,r)=>{const{kind:n,metadata:i}=r;let a=globalThis.litPropertyMetadata.get(i);if(void 0===a&&globalThis.litPropertyMetadata.set(i,a=new Map),a.set(r.name,e),"accessor"===n){const{name:n}=r;return{set(r){const i=t.get.call(this);t.set.call(this,r),this.requestUpdate(n,i,e)},init(t){return void 0!==t&&this.P(n,void 0,e),t}}}if("setter"===n){const{name:n}=r;return function(r){const i=this[n];t.call(this,r),this.requestUpdate(n,i,e)}}throw Error("Unsupported decorator location: "+n)};function vPt(e){return(t,r)=>"object"==typeof r?mPt(e,t,r):((e,t,r)=>{const n=t.hasOwnProperty(r);return t.constructor.createProperty(r,n?{...e,wrapped:!0}:e),n?Object.getOwnPropertyDescriptor(t,r):void 0})(e,t,r)}const gPt=globalThis,yPt=gPt.trustedTypes,bPt=yPt?yPt.createPolicy("lit-html",{createHTML:e=>e}):void 0,_Pt="$lit$",xPt=`lit$${Math.random().toFixed(9).slice(2)}$`,wPt="?"+xPt,SPt=`<${wPt}>`,APt=document,CPt=()=>APt.createComment(""),EPt=e=>null===e||"object"!=typeof e&&"function"!=typeof e,TPt=Array.isArray,PPt="[ \t\n\f\r]",MPt=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,kPt=/-->/g,OPt=/>/g,IPt=RegExp(`>|${PPt}(?:([^\\s"'>=/]+)(${PPt}*=${PPt}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),DPt=/'/g,NPt=/"/g,RPt=/^(?:script|style|textarea|title)$/i,BPt=Symbol.for("lit-noChange"),FPt=Symbol.for("lit-nothing"),LPt=new WeakMap,UPt=APt.createTreeWalker(APt,129);function $Pt(e,t){if(!Array.isArray(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==bPt?bPt.createHTML(t):t}let jPt=class e{constructor({strings:t,_$litType$:r},n){let i;this.parts=[];let a=0,o=0;const s=t.length-1,u=this.parts,[c,l]=((e,t)=>{const r=e.length-1,n=[];let i,a=2===t?"<svg>":"",o=MPt;for(let t=0;t<r;t++){const r=e[t];let s,u,c=-1,l=0;for(;l<r.length&&(o.lastIndex=l,u=o.exec(r),null!==u);)l=o.lastIndex,o===MPt?"!--"===u[1]?o=kPt:void 0!==u[1]?o=OPt:void 0!==u[2]?(RPt.test(u[2])&&(i=RegExp("</"+u[2],"g")),o=IPt):void 0!==u[3]&&(o=IPt):o===IPt?">"===u[0]?(o=i??MPt,c=-1):void 0===u[1]?c=-2:(c=o.lastIndex-u[2].length,s=u[1],o=void 0===u[3]?IPt:'"'===u[3]?NPt:DPt):o===NPt||o===DPt?o=IPt:o===kPt||o===OPt?o=MPt:(o=IPt,i=void 0);const d=o===IPt&&e[t+1].startsWith("/>")?" ":"";a+=o===MPt?r+SPt:c>=0?(n.push(s),r.slice(0,c)+_Pt+r.slice(c)+xPt+d):r+xPt+(-2===c?t:d)}return[$Pt(e,a+(e[r]||"<?>")+(2===t?"</svg>":"")),n]})(t,r);if(this.el=e.createElement(c,n),UPt.currentNode=this.el.content,2===r){const e=this.el.content.firstChild;e.replaceWith(...e.childNodes)}for(;null!==(i=UPt.nextNode())&&u.length<s;){if(1===i.nodeType){if(i.hasAttributes())for(const e of i.getAttributeNames())if(e.endsWith(_Pt)){const t=l[o++],r=i.getAttribute(e).split(xPt),n=/([.?@])?(.*)/.exec(t);u.push({type:1,index:a,name:n[2],strings:r,ctor:"."===n[1]?qPt:"?"===n[1]?WPt:"@"===n[1]?XPt:VPt}),i.removeAttribute(e)}else e.startsWith(xPt)&&(u.push({type:6,index:a}),i.removeAttribute(e));if(RPt.test(i.tagName)){const e=i.textContent.split(xPt),t=e.length-1;if(t>0){i.textContent=yPt?yPt.emptyScript:"";for(let r=0;r<t;r++)i.append(e[r],CPt()),UPt.nextNode(),u.push({type:2,index:++a});i.append(e[t],CPt())}}}else if(8===i.nodeType)if(i.data===wPt)u.push({type:2,index:a});else{let e=-1;for(;-1!==(e=i.data.indexOf(xPt,e+1));)u.push({type:7,index:a}),e+=xPt.length-1}a++}}static createElement(e,t){const r=APt.createElement("template");return r.innerHTML=e,r}};function zPt(e,t,r=e,n){if(t===BPt)return t;let i=void 0!==n?r._$Co?.[n]:r._$Cl;const a=EPt(t)?void 0:t._$litDirective$;return i?.constructor!==a&&(i?._$AO?.(!1),void 0===a?i=void 0:(i=new a(e),i._$AT(e,r,n)),void 0!==n?(r._$Co??=[])[n]=i:r._$Cl=i),void 0!==i&&(t=zPt(e,i._$AS(e,t.values),i,n)),t}let GPt=class{constructor(e,t){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){const{el:{content:t},parts:r}=this._$AD,n=(e?.creationScope??APt).importNode(t,!0);UPt.currentNode=n;let i=UPt.nextNode(),a=0,o=0,s=r[0];for(;void 0!==s;){if(a===s.index){let t;2===s.type?t=new HPt(i,i.nextSibling,this,e):1===s.type?t=new s.ctor(i,s.name,s.strings,this,e):6===s.type&&(t=new YPt(i,this,e)),this._$AV.push(t),s=r[++o]}a!==s?.index&&(i=UPt.nextNode(),a++)}return UPt.currentNode=APt,n}p(e){let t=0;for(const r of this._$AV)void 0!==r&&(void 0!==r.strings?(r._$AI(e,r,t),t+=r.strings.length-2):r._$AI(e[t])),t++}},HPt=class e{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,t,r,n){this.type=2,this._$AH=FPt,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=r,this.options=n,this._$Cv=n?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode;const t=this._$AM;return void 0!==t&&11===e?.nodeType&&(e=t.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,t=this){e=zPt(this,e,t),EPt(e)?e===FPt||null==e||""===e?(this._$AH!==FPt&&this._$AR(),this._$AH=FPt):e!==this._$AH&&e!==BPt&&this._(e):void 0!==e._$litType$?this.$(e):void 0!==e.nodeType?this.T(e):(e=>TPt(e)||"function"==typeof e?.[Symbol.iterator])(e)?this.k(e):this._(e)}S(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.S(e))}_(e){this._$AH!==FPt&&EPt(this._$AH)?this._$AA.nextSibling.data=e:this.T(APt.createTextNode(e)),this._$AH=e}$(e){const{values:t,_$litType$:r}=e,n="number"==typeof r?this._$AC(e):(void 0===r.el&&(r.el=jPt.createElement($Pt(r.h,r.h[0]),this.options)),r);if(this._$AH?._$AD===n)this._$AH.p(t);else{const e=new GPt(n,this),r=e.u(this.options);e.p(t),this.T(r),this._$AH=e}}_$AC(e){let t=LPt.get(e.strings);return void 0===t&&LPt.set(e.strings,t=new jPt(e)),t}k(t){TPt(this._$AH)||(this._$AH=[],this._$AR());const r=this._$AH;let n,i=0;for(const a of t)i===r.length?r.push(n=new e(this.S(CPt()),this.S(CPt()),this,this.options)):n=r[i],n._$AI(a),i++;i<r.length&&(this._$AR(n&&n._$AB.nextSibling,i),r.length=i)}_$AR(e=this._$AA.nextSibling,t){for(this._$AP?.(!1,!0,t);e&&e!==this._$AB;){const t=e.nextSibling;e.remove(),e=t}}setConnected(e){void 0===this._$AM&&(this._$Cv=e,this._$AP?.(e))}},VPt=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,t,r,n,i){this.type=1,this._$AH=FPt,this._$AN=void 0,this.element=e,this.name=t,this._$AM=n,this.options=i,r.length>2||""!==r[0]||""!==r[1]?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=FPt}_$AI(e,t=this,r,n){const i=this.strings;let a=!1;if(void 0===i)e=zPt(this,e,t,0),a=!EPt(e)||e!==this._$AH&&e!==BPt,a&&(this._$AH=e);else{const n=e;let o,s;for(e=i[0],o=0;o<i.length-1;o++)s=zPt(this,n[r+o],t,o),s===BPt&&(s=this._$AH[o]),a||=!EPt(s)||s!==this._$AH[o],s===FPt?e=FPt:e!==FPt&&(e+=(s??"")+i[o+1]),this._$AH[o]=s}a&&!n&&this.j(e)}j(e){e===FPt?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},qPt=class extends VPt{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===FPt?void 0:e}},WPt=class extends VPt{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==FPt)}},XPt=class extends VPt{constructor(e,t,r,n,i){super(e,t,r,n,i),this.type=5}_$AI(e,t=this){if((e=zPt(this,e,t,0)??FPt)===BPt)return;const r=this._$AH,n=e===FPt&&r!==FPt||e.capture!==r.capture||e.once!==r.once||e.passive!==r.passive,i=e!==FPt&&(r===FPt||n);n&&this.element.removeEventListener(this.name,this,r),i&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){"function"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,e):this._$AH.handleEvent(e)}},YPt=class{constructor(e,t,r){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=r}get _$AU(){return this._$AM._$AU}_$AI(e){zPt(this,e)}};const KPt=gPt.litHtmlPolyfillSupport;KPt?.(jPt,HPt),(gPt.litHtmlVersions??=[]).push("3.1.3");const ZPt=globalThis,QPt=ZPt.ShadowRoot&&(void 0===ZPt.ShadyCSS||ZPt.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,JPt=Symbol(),eMt=new WeakMap;let tMt=class{constructor(e,t,r){if(this._$cssResult$=!0,r!==JPt)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=t}get styleSheet(){let e=this.o;const t=this.t;if(QPt&&void 0===e){const r=void 0!==t&&1===t.length;r&&(e=eMt.get(t)),void 0===e&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),r&&eMt.set(t,e))}return e}toString(){return this.cssText}};const rMt=QPt?e=>e:e=>e instanceof CSSStyleSheet?(e=>{let t="";for(const r of e.cssRules)t+=r.cssText;return(e=>new tMt("string"==typeof e?e:e+"",void 0,JPt))(t)})(e):e,{is:nMt,defineProperty:iMt,getOwnPropertyDescriptor:aMt,getOwnPropertyNames:oMt,getOwnPropertySymbols:sMt,getPrototypeOf:uMt}=Object,cMt=globalThis,lMt=cMt.trustedTypes,dMt=lMt?lMt.emptyScript:"",fMt=cMt.reactiveElementPolyfillSupport,hMt=(e,t)=>e,pMt={toAttribute(e,t){switch(t){case Boolean:e=e?dMt:null;break;case Object:case Array:e=null==e?e:JSON.stringify(e)}return e},fromAttribute(e,t){let r=e;switch(t){case Boolean:r=null!==e;break;case Number:r=null===e?null:Number(e);break;case Object:case Array:try{r=JSON.parse(e)}catch(e){r=null}}return r}},mMt=(e,t)=>!nMt(e,t),vMt={attribute:!0,type:String,converter:pMt,reflect:!1,hasChanged:mMt};Symbol.metadata??=Symbol("metadata"),cMt.litPropertyMetadata??=new WeakMap;class gMt extends HTMLElement{static addInitializer(e){this._$Ei(),(this.l??=[]).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,t=vMt){if(t.state&&(t.attribute=!1),this._$Ei(),this.elementProperties.set(e,t),!t.noAccessor){const r=Symbol(),n=this.getPropertyDescriptor(e,r,t);void 0!==n&&iMt(this.prototype,e,n)}}static getPropertyDescriptor(e,t,r){const{get:n,set:i}=aMt(this.prototype,e)??{get(){return this[t]},set(e){this[t]=e}};return{get(){return n?.call(this)},set(t){const a=n?.call(this);i.call(this,t),this.requestUpdate(e,a,r)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??vMt}static _$Ei(){if(this.hasOwnProperty(hMt("elementProperties")))return;const e=uMt(this);e.finalize(),void 0!==e.l&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(hMt("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(hMt("properties"))){const e=this.properties,t=[...oMt(e),...sMt(e)];for(const r of t)this.createProperty(r,e[r])}const e=this[Symbol.metadata];if(null!==e){const t=litPropertyMetadata.get(e);if(void 0!==t)for(const[e,r]of t)this.elementProperties.set(e,r)}this._$Eh=new Map;for(const[e,t]of this.elementProperties){const r=this._$Eu(e,t);void 0!==r&&this._$Eh.set(r,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){const t=[];if(Array.isArray(e)){const r=new Set(e.flat(1/0).reverse());for(const e of r)t.unshift(rMt(e))}else void 0!==e&&t.push(rMt(e));return t}static _$Eu(e,t){const r=t.attribute;return!1===r?void 0:"string"==typeof r?r:"string"==typeof e?e.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise((e=>this.enableUpdating=e)),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach((e=>e(this)))}addController(e){(this._$EO??=new Set).add(e),void 0!==this.renderRoot&&this.isConnected&&e.hostConnected?.()}removeController(e){this._$EO?.delete(e)}_$E_(){const e=new Map,t=this.constructor.elementProperties;for(const r of t.keys())this.hasOwnProperty(r)&&(e.set(r,this[r]),delete this[r]);e.size>0&&(this._$Ep=e)}createRenderRoot(){const e=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return((e,t)=>{if(QPt)e.adoptedStyleSheets=t.map((e=>e instanceof CSSStyleSheet?e:e.styleSheet));else for(const r of t){const t=document.createElement("style"),n=ZPt.litNonce;void 0!==n&&t.setAttribute("nonce",n),t.textContent=r.cssText,e.appendChild(t)}})(e,this.constructor.elementStyles),e}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach((e=>e.hostConnected?.()))}enableUpdating(e){}disconnectedCallback(){this._$EO?.forEach((e=>e.hostDisconnected?.()))}attributeChangedCallback(e,t,r){this._$AK(e,r)}_$EC(e,t){const r=this.constructor.elementProperties.get(e),n=this.constructor._$Eu(e,r);if(void 0!==n&&!0===r.reflect){const i=(void 0!==r.converter?.toAttribute?r.converter:pMt).toAttribute(t,r.type);this._$Em=e,null==i?this.removeAttribute(n):this.setAttribute(n,i),this._$Em=null}}_$AK(e,t){const r=this.constructor,n=r._$Eh.get(e);if(void 0!==n&&this._$Em!==n){const e=r.getPropertyOptions(n),i="function"==typeof e.converter?{fromAttribute:e.converter}:void 0!==e.converter?.fromAttribute?e.converter:pMt;this._$Em=n,this[n]=i.fromAttribute(t,e.type),this._$Em=null}}requestUpdate(e,t,r){if(void 0!==e){if(r??=this.constructor.getPropertyOptions(e),!(r.hasChanged??mMt)(this[e],t))return;this.P(e,t,r)}!1===this.isUpdatePending&&(this._$ES=this._$ET())}P(e,t,r){this._$AL.has(e)||this._$AL.set(e,t),!0===r.reflect&&this._$Em!==e&&(this._$Ej??=new Set).add(e)}async _$ET(){this.isUpdatePending=!0;try{await this._$ES}catch(e){Promise.reject(e)}const e=this.scheduleUpdate();return null!=e&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[e,t]of this._$Ep)this[e]=t;this._$Ep=void 0}const e=this.constructor.elementProperties;if(e.size>0)for(const[t,r]of e)!0!==r.wrapped||this._$AL.has(t)||void 0===this[t]||this.P(t,this[t],r)}let e=!1;const t=this._$AL;try{e=this.shouldUpdate(t),e?(this.willUpdate(t),this._$EO?.forEach((e=>e.hostUpdate?.())),this.update(t)):this._$EU()}catch(t){throw e=!1,this._$EU(),t}e&&this._$AE(t)}willUpdate(e){}_$AE(e){this._$EO?.forEach((e=>e.hostUpdated?.())),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(e){return!0}update(e){this._$Ej&&=this._$Ej.forEach((e=>this._$EC(e,this[e]))),this._$EU()}updated(e){}firstUpdated(e){}}gMt.elementStyles=[],gMt.shadowRootOptions={mode:"open"},gMt[hMt("elementProperties")]=new Map,gMt[hMt("finalized")]=new Map,fMt?.({ReactiveElement:gMt}),(cMt.reactiveElementVersions??=[]).push("2.0.4");const yMt=globalThis,bMt=yMt.trustedTypes,_Mt=bMt?bMt.createPolicy("lit-html",{createHTML:e=>e}):void 0,xMt="$lit$",wMt=`lit$${Math.random().toFixed(9).slice(2)}$`,SMt="?"+wMt,AMt=`<${SMt}>`,CMt=document,EMt=()=>CMt.createComment(""),TMt=e=>null===e||"object"!=typeof e&&"function"!=typeof e,PMt=Array.isArray,MMt="[ \t\n\f\r]",kMt=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,OMt=/-->/g,IMt=/>/g,DMt=RegExp(`>|${MMt}(?:([^\\s"'>=/]+)(${MMt}*=${MMt}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),NMt=/'/g,RMt=/"/g,BMt=/^(?:script|style|textarea|title)$/i,FMt=(e,...t)=>({_$litType$:1,strings:e,values:t}),LMt=Symbol.for("lit-noChange"),UMt=Symbol.for("lit-nothing"),$Mt=new WeakMap,jMt=CMt.createTreeWalker(CMt,129);function zMt(e,t){if(!Array.isArray(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==_Mt?_Mt.createHTML(t):t}class GMt{constructor({strings:e,_$litType$:t},r){let n;this.parts=[];let i=0,a=0;const o=e.length-1,s=this.parts,[u,c]=((e,t)=>{const r=e.length-1,n=[];let i,a=2===t?"<svg>":"",o=kMt;for(let t=0;t<r;t++){const r=e[t];let s,u,c=-1,l=0;for(;l<r.length&&(o.lastIndex=l,u=o.exec(r),null!==u);)l=o.lastIndex,o===kMt?"!--"===u[1]?o=OMt:void 0!==u[1]?o=IMt:void 0!==u[2]?(BMt.test(u[2])&&(i=RegExp("</"+u[2],"g")),o=DMt):void 0!==u[3]&&(o=DMt):o===DMt?">"===u[0]?(o=i??kMt,c=-1):void 0===u[1]?c=-2:(c=o.lastIndex-u[2].length,s=u[1],o=void 0===u[3]?DMt:'"'===u[3]?RMt:NMt):o===RMt||o===NMt?o=DMt:o===OMt||o===IMt?o=kMt:(o=DMt,i=void 0);const d=o===DMt&&e[t+1].startsWith("/>")?" ":"";a+=o===kMt?r+AMt:c>=0?(n.push(s),r.slice(0,c)+xMt+r.slice(c)+wMt+d):r+wMt+(-2===c?t:d)}return[zMt(e,a+(e[r]||"<?>")+(2===t?"</svg>":"")),n]})(e,t);if(this.el=GMt.createElement(u,r),jMt.currentNode=this.el.content,2===t){const e=this.el.content.firstChild;e.replaceWith(...e.childNodes)}for(;null!==(n=jMt.nextNode())&&s.length<o;){if(1===n.nodeType){if(n.hasAttributes())for(const e of n.getAttributeNames())if(e.endsWith(xMt)){const t=c[a++],r=n.getAttribute(e).split(wMt),o=/([.?@])?(.*)/.exec(t);s.push({type:1,index:i,name:o[2],strings:r,ctor:"."===o[1]?XMt:"?"===o[1]?YMt:"@"===o[1]?KMt:WMt}),n.removeAttribute(e)}else e.startsWith(wMt)&&(s.push({type:6,index:i}),n.removeAttribute(e));if(BMt.test(n.tagName)){const e=n.textContent.split(wMt),t=e.length-1;if(t>0){n.textContent=bMt?bMt.emptyScript:"";for(let r=0;r<t;r++)n.append(e[r],EMt()),jMt.nextNode(),s.push({type:2,index:++i});n.append(e[t],EMt())}}}else if(8===n.nodeType)if(n.data===SMt)s.push({type:2,index:i});else{let e=-1;for(;-1!==(e=n.data.indexOf(wMt,e+1));)s.push({type:7,index:i}),e+=wMt.length-1}i++}}static createElement(e,t){const r=CMt.createElement("template");return r.innerHTML=e,r}}function HMt(e,t,r=e,n){if(t===LMt)return t;let i=void 0!==n?r._$Co?.[n]:r._$Cl;const a=TMt(t)?void 0:t._$litDirective$;return i?.constructor!==a&&(i?._$AO?.(!1),void 0===a?i=void 0:(i=new a(e),i._$AT(e,r,n)),void 0!==n?(r._$Co??=[])[n]=i:r._$Cl=i),void 0!==i&&(t=HMt(e,i._$AS(e,t.values),i,n)),t}class VMt{constructor(e,t){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){const{el:{content:t},parts:r}=this._$AD,n=(e?.creationScope??CMt).importNode(t,!0);jMt.currentNode=n;let i=jMt.nextNode(),a=0,o=0,s=r[0];for(;void 0!==s;){if(a===s.index){let t;2===s.type?t=new qMt(i,i.nextSibling,this,e):1===s.type?t=new s.ctor(i,s.name,s.strings,this,e):6===s.type&&(t=new ZMt(i,this,e)),this._$AV.push(t),s=r[++o]}a!==s?.index&&(i=jMt.nextNode(),a++)}return jMt.currentNode=CMt,n}p(e){let t=0;for(const r of this._$AV)void 0!==r&&(void 0!==r.strings?(r._$AI(e,r,t),t+=r.strings.length-2):r._$AI(e[t])),t++}}class qMt{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,t,r,n){this.type=2,this._$AH=UMt,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=r,this.options=n,this._$Cv=n?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode;const t=this._$AM;return void 0!==t&&11===e?.nodeType&&(e=t.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,t=this){e=HMt(this,e,t),TMt(e)?e===UMt||null==e||""===e?(this._$AH!==UMt&&this._$AR(),this._$AH=UMt):e!==this._$AH&&e!==LMt&&this._(e):void 0!==e._$litType$?this.$(e):void 0!==e.nodeType?this.T(e):(e=>PMt(e)||"function"==typeof e?.[Symbol.iterator])(e)?this.k(e):this._(e)}S(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.S(e))}_(e){this._$AH!==UMt&&TMt(this._$AH)?this._$AA.nextSibling.data=e:this.T(CMt.createTextNode(e)),this._$AH=e}$(e){const{values:t,_$litType$:r}=e,n="number"==typeof r?this._$AC(e):(void 0===r.el&&(r.el=GMt.createElement(zMt(r.h,r.h[0]),this.options)),r);if(this._$AH?._$AD===n)this._$AH.p(t);else{const e=new VMt(n,this),r=e.u(this.options);e.p(t),this.T(r),this._$AH=e}}_$AC(e){let t=$Mt.get(e.strings);return void 0===t&&$Mt.set(e.strings,t=new GMt(e)),t}k(e){PMt(this._$AH)||(this._$AH=[],this._$AR());const t=this._$AH;let r,n=0;for(const i of e)n===t.length?t.push(r=new qMt(this.S(EMt()),this.S(EMt()),this,this.options)):r=t[n],r._$AI(i),n++;n<t.length&&(this._$AR(r&&r._$AB.nextSibling,n),t.length=n)}_$AR(e=this._$AA.nextSibling,t){for(this._$AP?.(!1,!0,t);e&&e!==this._$AB;){const t=e.nextSibling;e.remove(),e=t}}setConnected(e){void 0===this._$AM&&(this._$Cv=e,this._$AP?.(e))}}class WMt{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,t,r,n,i){this.type=1,this._$AH=UMt,this._$AN=void 0,this.element=e,this.name=t,this._$AM=n,this.options=i,r.length>2||""!==r[0]||""!==r[1]?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=UMt}_$AI(e,t=this,r,n){const i=this.strings;let a=!1;if(void 0===i)e=HMt(this,e,t,0),a=!TMt(e)||e!==this._$AH&&e!==LMt,a&&(this._$AH=e);else{const n=e;let o,s;for(e=i[0],o=0;o<i.length-1;o++)s=HMt(this,n[r+o],t,o),s===LMt&&(s=this._$AH[o]),a||=!TMt(s)||s!==this._$AH[o],s===UMt?e=UMt:e!==UMt&&(e+=(s??"")+i[o+1]),this._$AH[o]=s}a&&!n&&this.j(e)}j(e){e===UMt?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}}class XMt extends WMt{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===UMt?void 0:e}}class YMt extends WMt{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==UMt)}}class KMt extends WMt{constructor(e,t,r,n,i){super(e,t,r,n,i),this.type=5}_$AI(e,t=this){if((e=HMt(this,e,t,0)??UMt)===LMt)return;const r=this._$AH,n=e===UMt&&r!==UMt||e.capture!==r.capture||e.once!==r.once||e.passive!==r.passive,i=e!==UMt&&(r===UMt||n);n&&this.element.removeEventListener(this.name,this,r),i&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){"function"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,e):this._$AH.handleEvent(e)}}class ZMt{constructor(e,t,r){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=r}get _$AU(){return this._$AM._$AU}_$AI(e){HMt(this,e)}}const QMt=yMt.litHtmlPolyfillSupport;QMt?.(GMt,qMt),(yMt.litHtmlVersions??=[]).push("3.1.3");class JMt extends gMt{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){const e=super.createRenderRoot();return this.renderOptions.renderBefore??=e.firstChild,e}update(e){const t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=((e,t,r)=>{const n=r?.renderBefore??t;let i=n._$litPart$;if(void 0===i){const e=r?.renderBefore??null;n._$litPart$=i=new qMt(t.insertBefore(EMt(),e),e,void 0,r??{})}return i._$AI(e),i})(t,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return LMt}}JMt._$litElement$=!0,JMt.finalized=!0,globalThis.litElementHydrateSupport?.({LitElement:JMt});const ekt=globalThis.litElementPolyfillSupport;ekt?.({LitElement:JMt}),(globalThis.litElementVersions??=[]).push("4.0.5");var tkt="object"==typeof global&&global&&global.Object===Object&&global,rkt="object"==typeof self&&self&&self.Object===Object&&self,nkt=tkt||rkt||Function("return this")(),ikt=nkt.Symbol,akt=Object.prototype,okt=akt.hasOwnProperty,skt=akt.toString,ukt=ikt?ikt.toStringTag:void 0,ckt=Object.prototype.toString,lkt=ikt?ikt.toStringTag:void 0;function dkt(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":lkt&&lkt in Object(e)?function(e){var t=okt.call(e,ukt),r=e[ukt];try{e[ukt]=void 0;var n=!0}catch(e){}var i=skt.call(e);return n&&(t?e[ukt]=r:delete e[ukt]),i}(e):function(e){return ckt.call(e)}(e)}function fkt(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function hkt(e){if(!fkt(e))return!1;var t=dkt(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}var pkt,mkt=nkt["__core-js_shared__"],vkt=(pkt=/[^.]+$/.exec(mkt&&mkt.keys&&mkt.keys.IE_PROTO||""))?"Symbol(src)_1."+pkt:"",gkt=Function.prototype.toString;function ykt(e){if(null!=e){try{return gkt.call(e)}catch(e){}try{return e+""}catch(e){}}return""}var bkt=/^\[object .+?Constructor\]$/,_kt=Function.prototype,xkt=Object.prototype,wkt=_kt.toString,Skt=xkt.hasOwnProperty,Akt=RegExp("^"+wkt.call(Skt).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Ckt(e,t){var r=function(e,t){return null==e?void 0:e[t]}(e,t);return function(e){return!(!fkt(e)||(t=e,vkt&&vkt in t))&&(hkt(e)?Akt:bkt).test(ykt(e));var t}(r)?r:void 0}var Ekt=function(){try{var e=Ckt(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();function Tkt(e,t,r,n){for(var i=-1,a=null==e?0:e.length;++i<a;){var o=e[i];t(n,o,r(o),e)}return n}function Pkt(e){return null!=e&&"object"==typeof e}function Mkt(e){return Pkt(e)&&"[object Arguments]"==dkt(e)}var kkt=Object.prototype,Okt=kkt.hasOwnProperty,Ikt=kkt.propertyIsEnumerable,Dkt=Mkt(function(){return arguments}())?Mkt:function(e){return Pkt(e)&&Okt.call(e,"callee")&&!Ikt.call(e,"callee")},Nkt=Array.isArray,Rkt="object"==typeof exports&&exports&&!exports.nodeType&&exports,Bkt=Rkt&&"object"==typeof module&&module&&!module.nodeType&&module,Fkt=Bkt&&Bkt.exports===Rkt?nkt.Buffer:void 0,Lkt=(Fkt?Fkt.isBuffer:void 0)||function(){return!1},Ukt=/^(?:0|[1-9]\d*)$/;function $kt(e,t){var r=typeof e;return!!(t=t??9007199254740991)&&("number"==r||"symbol"!=r&&Ukt.test(e))&&e>-1&&e%1==0&&e<t}function jkt(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}var zkt={};zkt["[object Float32Array]"]=zkt["[object Float64Array]"]=zkt["[object Int8Array]"]=zkt["[object Int16Array]"]=zkt["[object Int32Array]"]=zkt["[object Uint8Array]"]=zkt["[object Uint8ClampedArray]"]=zkt["[object Uint16Array]"]=zkt["[object Uint32Array]"]=!0,zkt["[object Arguments]"]=zkt["[object Array]"]=zkt["[object ArrayBuffer]"]=zkt["[object Boolean]"]=zkt["[object DataView]"]=zkt["[object Date]"]=zkt["[object Error]"]=zkt["[object Function]"]=zkt["[object Map]"]=zkt["[object Number]"]=zkt["[object Object]"]=zkt["[object RegExp]"]=zkt["[object Set]"]=zkt["[object String]"]=zkt["[object WeakMap]"]=!1;var Gkt,Hkt="object"==typeof exports&&exports&&!exports.nodeType&&exports,Vkt=Hkt&&"object"==typeof module&&module&&!module.nodeType&&module,qkt=Vkt&&Vkt.exports===Hkt&&tkt.process,Wkt=function(){try{return Vkt&&Vkt.require&&Vkt.require("util").types||qkt&&qkt.binding&&qkt.binding("util")}catch(e){}}(),Xkt=Wkt&&Wkt.isTypedArray,Ykt=Xkt?(Gkt=Xkt,function(e){return Gkt(e)}):function(e){return Pkt(e)&&jkt(e.length)&&!!zkt[dkt(e)]},Kkt=Object.prototype.hasOwnProperty,Zkt=Object.prototype,Qkt=function(e,t){return function(r){return e(t(r))}}(Object.keys,Object),Jkt=Object.prototype.hasOwnProperty;function eOt(e){return null!=e&&jkt(e.length)&&!hkt(e)}function tOt(e){return eOt(e)?function(e){var t=Nkt(e),r=!t&&Dkt(e),n=!t&&!r&&Lkt(e),i=!t&&!r&&!n&&Ykt(e),a=t||r||n||i,o=a?function(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}(e.length,String):[],s=o.length;for(var u in e)!Kkt.call(e,u)||a&&("length"==u||n&&("offset"==u||"parent"==u)||i&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||$kt(u,s))||o.push(u);return o}(e):function(e){if(r=(t=e)&&t.constructor,t!==("function"==typeof r&&r.prototype||Zkt))return Qkt(e);var t,r,n=[];for(var i in Object(e))Jkt.call(e,i)&&"constructor"!=i&&n.push(i);return n}(e)}var rOt,nOt=(rOt=function(e,t){return e&&function(e,t,r){for(var n=-1,i=Object(e),a=r(e),o=a.length;o--;){var s=a[++n];if(!1===t(i[s],s,i))break}return e}(e,t,tOt)},function(e,t){if(null==e)return e;if(!eOt(e))return rOt(e,t);for(var r=e.length,n=-1,i=Object(e);++n<r&&!1!==t(i[n],n,i););return e});function iOt(e,t,r,n){return nOt(e,(function(e,i,a){t(n,e,r(e),a)})),n}function aOt(e,t){return e===t||e!=e&&t!=t}function oOt(e,t){for(var r=e.length;r--;)if(aOt(e[r][0],t))return r;return-1}var sOt=Array.prototype.splice;function uOt(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}uOt.prototype.clear=function(){this.__data__=[],this.size=0},uOt.prototype.delete=function(e){var t=this.__data__,r=oOt(t,e);return!(r<0||(r==t.length-1?t.pop():sOt.call(t,r,1),--this.size,0))},uOt.prototype.get=function(e){var t=this.__data__,r=oOt(t,e);return r<0?void 0:t[r][1]},uOt.prototype.has=function(e){return oOt(this.__data__,e)>-1},uOt.prototype.set=function(e,t){var r=this.__data__,n=oOt(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this};var cOt=Ckt(nkt,"Map"),lOt=Ckt(Object,"create"),dOt=Object.prototype.hasOwnProperty,fOt=Object.prototype.hasOwnProperty;function hOt(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function pOt(e,t){var r,n,i=e.__data__;return("string"==(n=typeof(r=t))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==r:null===r)?i["string"==typeof t?"string":"hash"]:i.map}function mOt(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function vOt(e){var t=this.__data__=new uOt(e);this.size=t.size}function gOt(e){var t=-1,r=null==e?0:e.length;for(this.__data__=new mOt;++t<r;)this.add(e[t])}function yOt(e,t){for(var r=-1,n=null==e?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}function bOt(e,t,r,n,i,a){var o=1&r,s=e.length,u=t.length;if(s!=u&&!(o&&u>s))return!1;var c=a.get(e),l=a.get(t);if(c&&l)return c==t&&l==e;var d=-1,f=!0,h=2&r?new gOt:void 0;for(a.set(e,t),a.set(t,e);++d<s;){var p=e[d],m=t[d];if(n)var v=o?n(m,p,d,t,e,a):n(p,m,d,e,t,a);if(void 0!==v){if(v)continue;f=!1;break}if(h){if(!yOt(t,(function(e,t){if(o=t,!h.has(o)&&(p===e||i(p,e,r,n,a)))return h.push(t);var o}))){f=!1;break}}else if(p!==m&&!i(p,m,r,n,a)){f=!1;break}}return a.delete(e),a.delete(t),f}hOt.prototype.clear=function(){this.__data__=lOt?lOt(null):{},this.size=0},hOt.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},hOt.prototype.get=function(e){var t=this.__data__;if(lOt){var r=t[e];return"__lodash_hash_undefined__"===r?void 0:r}return dOt.call(t,e)?t[e]:void 0},hOt.prototype.has=function(e){var t=this.__data__;return lOt?void 0!==t[e]:fOt.call(t,e)},hOt.prototype.set=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=lOt&&void 0===t?"__lodash_hash_undefined__":t,this},mOt.prototype.clear=function(){this.size=0,this.__data__={hash:new hOt,map:new(cOt||uOt),string:new hOt}},mOt.prototype.delete=function(e){var t=pOt(this,e).delete(e);return this.size-=t?1:0,t},mOt.prototype.get=function(e){return pOt(this,e).get(e)},mOt.prototype.has=function(e){return pOt(this,e).has(e)},mOt.prototype.set=function(e,t){var r=pOt(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this},vOt.prototype.clear=function(){this.__data__=new uOt,this.size=0},vOt.prototype.delete=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r},vOt.prototype.get=function(e){return this.__data__.get(e)},vOt.prototype.has=function(e){return this.__data__.has(e)},vOt.prototype.set=function(e,t){var r=this.__data__;if(r instanceof uOt){var n=r.__data__;if(!cOt||n.length<199)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new mOt(n)}return r.set(e,t),this.size=r.size,this},gOt.prototype.add=gOt.prototype.push=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},gOt.prototype.has=function(e){return this.__data__.has(e)};var _Ot=nkt.Uint8Array;function xOt(e){var t=-1,r=Array(e.size);return e.forEach((function(e,n){r[++t]=[n,e]})),r}function wOt(e){var t=-1,r=Array(e.size);return e.forEach((function(e){r[++t]=e})),r}var SOt=ikt?ikt.prototype:void 0,AOt=SOt?SOt.valueOf:void 0,COt=Object.prototype.propertyIsEnumerable,EOt=Object.getOwnPropertySymbols,TOt=EOt?function(e){return null==e?[]:(e=Object(e),function(e,t){for(var r=-1,n=null==e?0:e.length,i=0,a=[];++r<n;){var o=e[r];t(o)&&(a[i++]=o)}return a}(EOt(e),(function(t){return COt.call(e,t)})))}:function(){return[]};function POt(e){return function(e,t,r){var n=tOt(e);return Nkt(e)?n:function(e,t){for(var r=-1,n=t.length,i=e.length;++r<n;)e[i+r]=t[r];return e}(n,r(e))}(e,0,TOt)}var MOt=Object.prototype.hasOwnProperty,kOt=Ckt(nkt,"DataView"),OOt=Ckt(nkt,"Promise"),IOt=Ckt(nkt,"Set"),DOt=Ckt(nkt,"WeakMap"),NOt="[object Map]",ROt="[object Promise]",BOt="[object Set]",FOt="[object WeakMap]",LOt="[object DataView]",UOt=ykt(kOt),$Ot=ykt(cOt),jOt=ykt(OOt),zOt=ykt(IOt),GOt=ykt(DOt),HOt=dkt;(kOt&&HOt(new kOt(new ArrayBuffer(1)))!=LOt||cOt&&HOt(new cOt)!=NOt||OOt&&HOt(OOt.resolve())!=ROt||IOt&&HOt(new IOt)!=BOt||DOt&&HOt(new DOt)!=FOt)&&(HOt=function(e){var t=dkt(e),r="[object Object]"==t?e.constructor:void 0,n=r?ykt(r):"";if(n)switch(n){case UOt:return LOt;case $Ot:return NOt;case jOt:return ROt;case zOt:return BOt;case GOt:return FOt}return t});var VOt="[object Arguments]",qOt="[object Array]",WOt="[object Object]",XOt=Object.prototype.hasOwnProperty;function YOt(e,t,r,n,i){return e===t||(null==e||null==t||!Pkt(e)&&!Pkt(t)?e!=e&&t!=t:function(e,t,r,n,i,a){var o=Nkt(e),s=Nkt(t),u=o?qOt:HOt(e),c=s?qOt:HOt(t),l=(u=u==VOt?WOt:u)==WOt,d=(c=c==VOt?WOt:c)==WOt,f=u==c;if(f&&Lkt(e)){if(!Lkt(t))return!1;o=!0,l=!1}if(f&&!l)return a||(a=new vOt),o||Ykt(e)?bOt(e,t,r,n,i,a):function(e,t,r,n,i,a,o){switch(r){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!a(new _Ot(e),new _Ot(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return aOt(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var s=xOt;case"[object Set]":var u=1&n;if(s||(s=wOt),e.size!=t.size&&!u)return!1;var c=o.get(e);if(c)return c==t;n|=2,o.set(e,t);var l=bOt(s(e),s(t),n,i,a,o);return o.delete(e),l;case"[object Symbol]":if(AOt)return AOt.call(e)==AOt.call(t)}return!1}(e,t,u,r,n,i,a);if(!(1&r)){var h=l&&XOt.call(e,"__wrapped__"),p=d&&XOt.call(t,"__wrapped__");if(h||p){var m=h?e.value():e,v=p?t.value():t;return a||(a=new vOt),i(m,v,r,n,a)}}return!!f&&(a||(a=new vOt),function(e,t,r,n,i,a){var o=1&r,s=POt(e),u=s.length;if(u!=POt(t).length&&!o)return!1;for(var c=u;c--;){var l=s[c];if(!(o?l in t:MOt.call(t,l)))return!1}var d=a.get(e),f=a.get(t);if(d&&f)return d==t&&f==e;var h=!0;a.set(e,t),a.set(t,e);for(var p=o;++c<u;){var m=e[l=s[c]],v=t[l];if(n)var g=o?n(v,m,l,t,e,a):n(m,v,l,e,t,a);if(!(void 0===g?m===v||i(m,v,r,n,a):g)){h=!1;break}p||(p="constructor"==l)}if(h&&!p){var y=e.constructor,b=t.constructor;y==b||!("constructor"in e)||!("constructor"in t)||"function"==typeof y&&y instanceof y&&"function"==typeof b&&b instanceof b||(h=!1)}return a.delete(e),a.delete(t),h}(e,t,r,n,i,a))}(e,t,r,n,YOt,i))}function KOt(e){return e==e&&!fkt(e)}function ZOt(e,t){return function(r){return null!=r&&r[e]===t&&(void 0!==t||e in Object(r))}}function QOt(e){return"symbol"==typeof e||Pkt(e)&&"[object Symbol]"==dkt(e)}var JOt=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,eIt=/^\w*$/;function tIt(e,t){if(Nkt(e))return!1;var r=typeof e;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=e&&!QOt(e))||eIt.test(e)||!JOt.test(e)||null!=t&&e in Object(t)}function rIt(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var r=function(){var n=arguments,i=t?t.apply(this,n):n[0],a=r.cache;if(a.has(i))return a.get(i);var o=e.apply(this,n);return r.cache=a.set(i,o)||a,o};return r.cache=new(rIt.Cache||mOt),r}rIt.Cache=mOt;var nIt=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,iIt=/\\(\\)?/g,aIt=function(){var e=rIt((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(nIt,(function(e,r,n,i){t.push(n?i.replace(iIt,"$1"):r||e)})),t}),(function(e){return 500===t.size&&t.clear(),e})),t=e.cache;return e}(),oIt=ikt?ikt.prototype:void 0,sIt=oIt?oIt.toString:void 0;function uIt(e){if("string"==typeof e)return e;if(Nkt(e))return function(e,t){for(var r=-1,n=null==e?0:e.length,i=Array(n);++r<n;)i[r]=t(e[r],r,e);return i}(e,uIt)+"";if(QOt(e))return sIt?sIt.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function cIt(e,t){return Nkt(e)?e:tIt(e,t)?[e]:aIt(function(e){return null==e?"":uIt(e)}(e))}function lIt(e){if("string"==typeof e||QOt(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function dIt(e,t){for(var r=0,n=(t=cIt(t,e)).length;null!=e&&r<n;)e=e[lIt(t[r++])];return r&&r==n?e:void 0}function fIt(e,t){return null!=e&&t in Object(e)}function hIt(e){return e}var pIt,mIt,vIt,gIt=Object.prototype.hasOwnProperty,yIt=(pIt=function(e,t,r){gIt.call(e,r)?e[r].push(t):function(e,t,r){"__proto__"==t&&Ekt?Ekt(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}(e,r,[t])},function(e,t){var r;return(Nkt(e)?Tkt:iOt)(e,pIt,"function"==typeof(r=t)?r:null==r?hIt:"object"==typeof r?Nkt(r)?function(e,t){return tIt(e)&&KOt(t)?ZOt(lIt(e),t):function(r){var n=function(e,t){var r=null==e?void 0:dIt(e,t);return void 0===r?void 0:r}(r,e);return void 0===n&&n===t?function(e,t){return null!=e&&function(e,t,r){for(var n=-1,i=(t=cIt(t,e)).length,a=!1;++n<i;){var o=lIt(t[n]);if(!(a=null!=e&&r(e,o)))break;e=e[o]}return a||++n!=i?a:!!(i=null==e?0:e.length)&&jkt(i)&&$kt(o,i)&&(Nkt(e)||Dkt(e))}(e,t,fIt)}(r,e):YOt(t,n,3)}}(r[0],r[1]):function(e){var t=function(e){for(var t=tOt(e),r=t.length;r--;){var n=t[r],i=e[n];t[r]=[n,i,KOt(i)]}return t}(e);return 1==t.length&&t[0][2]?ZOt(t[0][0],t[0][1]):function(r){return r===e||function(e,t,r){var n=r.length,i=n;if(null==e)return!i;for(e=Object(e);n--;){var a=r[n];if(a[2]?a[1]!==e[a[0]]:!(a[0]in e))return!1}for(;++n<i;){var o=(a=r[n])[0],s=e[o],u=a[1];if(a[2]){if(void 0===s&&!(o in e))return!1}else if(!YOt(u,s,3,void 0,new vOt))return!1}return!0}(r,0,t)}}(r):function(e){return tIt(e)?(t=lIt(e),function(e){return null==e?void 0:e[t]}):function(e){return function(t){return dIt(t,e)}}(e);var t}(r),{})});let bIt=class extends Ld{constructor(){super(),this.filters=[],this.for="",mIt.set(this,new Set),vIt.set(this,void 0),this.filters=[]}connectedCallback(){super.connectedCallback(),this.closest("nightingale-manager")&&(function(e,t,r){if("function"==typeof t||!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");t.set(e,r)}(this,vIt,this.closest("nightingale-manager")),qTt(this,vIt,"f").register(this))}disconnectedCallback(){super.disconnectedCallback(),qTt(this,vIt,"f")&&qTt(this,vIt,"f").unregister(this)}render(){const e=yIt(this.filters,(e=>e.type.text));return FMt`
|
|
320
320
|
<style>
|
|
321
321
|
.group-title {
|
|
322
322
|
line-height: normal;
|