${e}
`,qt=e=>R`
${this.lines.map(((r,n)=>{const i=n+1;return Dr(r,Lr(this.renderMutantDots(e.get(i)),this.lines.length===i?t(i):D))}))}
`}renderMutantDots(e){return e?.length?e.map((e=>B``)):D}toggleMutant(e){if(this.removeCurrentDiff(),this.selectedMutant===e)return this.selectedMutant=void 0,void this.dispatchEvent(Ut("mutant-selected",{selected:!1,mutant:e}));this.selectedMutant=e;const t=this.codeRef.value.querySelectorAll("tr.line");for(let r=e.location.start.line-1;r
${this.lines.map(((r,n)=>{const i=n+1;return Dr(r,Lr(this.renderTestDots(e.get(i)),this.lines.length===i?t(i):D))}))}
`}return D}renderTestDots(e){return e?.length?e.map((e=>B``)):D}willUpdate(e){if(e.has("model")&&this.model){const e=this.model;this.filters=[de.ih.Killing,de.ih.Covering,de.ih.NotCovering].filter((t=>e.tests.some((e=>e.status===t)))).map((t=>({enabled:!0,count:e.tests.filter((e=>e.status===t)).length,status:t,label:R`${tr(t)} ${t}`,context:er(t)}))),this.model.source&&(this.lines=Fr(jr(this.model.source,this.model.name)))}(e.has("model")||e.has("enabledStates"))&&this.model&&(this.tests=this.model.tests.filter((e=>this.enabledStates.includes(e.status))).sort(((e,t)=>e.location&&t.location?Or(e.location.start,t.location.start)?1:-1:this.model.tests.indexOf(e)-this.model.tests.indexOf(t)))),super.update(e)}};wn.styles=[be,fe,a(vn.Z)],yn([le()],wn.prototype,"model",void 0),yn([ce()],wn.prototype,"filters",void 0),yn([ce()],wn.prototype,"lines",void 0),yn([ce()],wn.prototype,"enabledStates",void 0),yn([ce()],wn.prototype,"selectedTest",void 0),yn([ce()],wn.prototype,"tests",void 0),wn=yn([ae("mte-test-file")],wn);var xn=function(e,t,r,n){var i,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a};const kn=e=>R`${e.getMutatedLines()}
(${ar(e)})`;let $n=class extends ie{constructor(){super(...arguments),this.mode="closed"}render(){return rn({hasDetail:Boolean(this.test?.killedMutants?.length||this.test?.coveredMutants?.length),mode:this.mode},Jt(this.test,(e=>R`
${tr(e.status)} ${e.name} [${e.status}]
${e.location?R`(${e.location.start.line}:${e.location.start.column})`:D}
${this.renderSummary()}
${this.renderDetail()}
`)))}renderSummary(){return qt(R`${this.test?.killedMutants?.[0]?Kt(R`${Vt("🎯","killed")}Killed:${kn(this.test.killedMutants?.[0])}${this.test.killedMutants.length>1?R` (and ${this.test.killedMutants.length-1} more)`:""}`):D}
${Jt(this.test?.coveredMutants,(e=>Kt(R`${Vt("☂️","umbrella")}Covered ${e.length}
mutant${or(e)}${this.test?.status===de.ih.Covering?" (yet didn't kill any of them)":""}`)))}`)}renderDetail(){return R`