homebridge-config-ui-x 5.1.0 → 5.2.0

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.
Files changed (73) hide show
  1. package/CHANGELOG.md +22 -3
  2. package/package.json +2 -2
  3. package/public/{chunk-XVOHGK47.js → chunk-2KOR6LRK.js} +1 -1
  4. package/public/{chunk-NFHYMK4G.js → chunk-35FM5BNU.js} +1 -1
  5. package/public/{chunk-JKQXCQ2Z.js → chunk-4ELFIE24.js} +1 -1
  6. package/public/{chunk-4XI5CQKP.js → chunk-5XUXIHBT.js} +1 -1
  7. package/public/{chunk-IBL2QGK7.js → chunk-6JEDJ3MZ.js} +1 -1
  8. package/public/{chunk-J5JT5MX6.js → chunk-7FO4RGTF.js} +1 -1
  9. package/public/{chunk-3QAZWVY3.js → chunk-7UEIHMOI.js} +1 -1
  10. package/public/{chunk-EM3VXCLF.js → chunk-ADNBR4EK.js} +1 -1
  11. package/public/{chunk-PGFVNBPH.js → chunk-AP7BRYIQ.js} +1 -1
  12. package/public/{chunk-CMP7DN6X.js → chunk-B3QDBZSW.js} +1 -1
  13. package/public/{chunk-2MXHSHJW.js → chunk-B7F2YD4Q.js} +1 -1
  14. package/public/{chunk-5KPILP6Z.js → chunk-BF4BAPY7.js} +1 -1
  15. package/public/{chunk-Z2UP3EUO.js → chunk-BLJ3CFZV.js} +1 -1
  16. package/public/{chunk-5VYFMUZI.js → chunk-BRCJFOVZ.js} +1 -1
  17. package/public/{chunk-ZBK325RS.js → chunk-BVXDUT37.js} +1 -1
  18. package/public/{chunk-IYZAN4QG.js → chunk-BYJZ4WBV.js} +1 -1
  19. package/public/{chunk-6GRAO5OI.js → chunk-C2UUY7C4.js} +1 -1
  20. package/public/{chunk-M52PEKJL.js → chunk-CX4ME2ME.js} +1 -1
  21. package/public/{chunk-K274PEUH.js → chunk-DDAEYXAV.js} +1 -1
  22. package/public/{chunk-FFLFHMOD.js → chunk-ERUJZRID.js} +1 -1
  23. package/public/{chunk-MK36QITJ.js → chunk-EXA4HLEA.js} +1 -1
  24. package/public/{chunk-HH4OYX63.js → chunk-FPJPIOST.js} +1 -1
  25. package/public/{chunk-TKKRUAQB.js → chunk-FTA33HXI.js} +1 -1
  26. package/public/{chunk-J46I5YX6.js → chunk-HNJKAZBX.js} +1 -1
  27. package/public/{chunk-PADPFZSE.js → chunk-HYASK3YZ.js} +1 -1
  28. package/public/{chunk-F3LH3JZG.js → chunk-IK3LF6X7.js} +1 -1
  29. package/public/{chunk-GSF3Z3XG.js → chunk-J6BY74Q4.js} +1 -1
  30. package/public/{chunk-LHQI7N3V.js → chunk-JIXMMXPZ.js} +1 -1
  31. package/public/{chunk-VCD26PYR.js → chunk-K2NEWUWG.js} +1 -1
  32. package/public/{chunk-NLGVT4MV.js → chunk-K7QEGT3E.js} +1 -1
  33. package/public/{chunk-VX75HOOB.js → chunk-K7WA5KOE.js} +1 -1
  34. package/public/{chunk-QOBPRLO2.js → chunk-KECVWPQI.js} +1 -1
  35. package/public/{chunk-QNNE7V55.js → chunk-KR4TXJYA.js} +1 -1
  36. package/public/{chunk-PF574E5L.js → chunk-KS7RCH5Z.js} +1 -1
  37. package/public/{chunk-IEANGMUA.js → chunk-NG4XN2SO.js} +1 -1
  38. package/public/{chunk-PSK63HDR.js → chunk-NQDYN4CZ.js} +1 -1
  39. package/public/{chunk-RONKUNPA.js → chunk-O3CSJUU3.js} +1 -1
  40. package/public/{chunk-53HX4CXU.js → chunk-P3TP4J62.js} +1 -1
  41. package/public/{chunk-DHHZNJ4G.js → chunk-PAWQ6VVY.js} +1 -1
  42. package/public/{chunk-AYW72UFQ.js → chunk-PJDX7TKL.js} +1 -1
  43. package/public/{chunk-GVTMDSZC.js → chunk-PO63P7BR.js} +1 -1
  44. package/public/{chunk-IVU5NZ6Q.js → chunk-PSSVCFFV.js} +1 -1
  45. package/public/{chunk-VLK5XU6X.js → chunk-QOU7SWHO.js} +1 -1
  46. package/public/{chunk-G4HMZX6U.js → chunk-QQQOCD2G.js} +1 -1
  47. package/public/{chunk-NSYXJMRL.js → chunk-QRQBCPWO.js} +1 -1
  48. package/public/chunk-RKMGRAC5.js +1 -0
  49. package/public/{chunk-NA3BCE4T.js → chunk-RO5J6JA4.js} +1 -1
  50. package/public/{chunk-7B77N4IT.js → chunk-SXFY7EJ4.js} +1 -1
  51. package/public/{chunk-MBBXPRRX.js → chunk-T7N752IX.js} +1 -1
  52. package/public/{chunk-KLNSM4N6.js → chunk-TMEVA2D3.js} +1 -1
  53. package/public/{chunk-GITBGY3F.js → chunk-TTWTW2NA.js} +1 -1
  54. package/public/{chunk-ZATUJNFV.js → chunk-UNQWAP4O.js} +1 -1
  55. package/public/chunk-V35FUQDD.js +1 -0
  56. package/public/{chunk-OXBT7KSO.js → chunk-V7SOQAC5.js} +1 -1
  57. package/public/{chunk-F2SI3XC2.js → chunk-VFHI5NXQ.js} +1 -1
  58. package/public/{chunk-PLYYXTQR.js → chunk-VQKOAU2J.js} +1 -1
  59. package/public/chunk-VUYNUK27.js +1 -0
  60. package/public/{chunk-I2OX5RXF.js → chunk-WAEIH452.js} +1 -1
  61. package/public/{chunk-7ZQO4P74.js → chunk-WCRRCV3M.js} +1 -1
  62. package/public/{chunk-JECUI6IT.js → chunk-YEQ736I7.js} +1 -1
  63. package/public/{chunk-KXE25QMA.js → chunk-YUEZAPH5.js} +1 -1
  64. package/public/chunk-Z355YUUI.js +1 -0
  65. package/public/{chunk-VTILLTV4.js → chunk-Z6MT43P4.js} +1 -1
  66. package/public/{chunk-TVAJZAL5.js → chunk-ZG3HINDJ.js} +1 -1
  67. package/public/{chunk-6SADNWDM.js → chunk-ZS5KZUZ5.js} +1 -1
  68. package/public/index.html +1 -1
  69. package/public/{main-X7DBVNTD.js → main-WB3CMP7F.js} +1 -1
  70. package/public/chunk-BPRTQCLD.js +0 -1
  71. package/public/chunk-DZVPXNDY.js +0 -1
  72. package/public/chunk-OMLTIUY5.js +0 -1
  73. package/public/chunk-QBIMM2GA.js +0 -1
@@ -1,4 +1,4 @@
1
- import{e as cr}from"./chunk-OXBT7KSO.js";var mr=cr((Pt,lr)=>{(function(me,ee){if(typeof Pt=="object"&&typeof lr=="object")lr.exports=ee();else if(typeof define=="function"&&define.amd)define([],ee);else{var W=ee();for(var c in W)(typeof Pt=="object"?Pt:me)[c]=W[c]}})(self,function(){return(()=>{"use strict";var me={4567:function(W,c,w){var _,u=this&&this.__extends||(_=function(i,e){return _=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,r){t.__proto__=r}||function(t,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])},_(i,e)},function(i,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function t(){this.constructor=i}_(i,e),i.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)});Object.defineProperty(c,"__esModule",{value:!0}),c.AccessibilityManager=void 0;var f=w(9042),d=w(6114),m=w(9924),v=w(3656),o=w(844),s=w(5596),p=w(9631),h=function(i){function e(t,r){var n=i.call(this)||this;n._terminal=t,n._renderService=r,n._liveRegionLineCount=0,n._charsToConsume=[],n._charsToAnnounce="",n._accessibilityTreeRoot=document.createElement("div"),n._accessibilityTreeRoot.classList.add("xterm-accessibility"),n._accessibilityTreeRoot.tabIndex=0,n._rowContainer=document.createElement("div"),n._rowContainer.setAttribute("role","list"),n._rowContainer.classList.add("xterm-accessibility-tree"),n._rowElements=[];for(var l=0;l<n._terminal.rows;l++)n._rowElements[l]=n._createAccessibilityTreeNode(),n._rowContainer.appendChild(n._rowElements[l]);if(n._topBoundaryFocusListener=function(a){return n._onBoundaryFocus(a,0)},n._bottomBoundaryFocusListener=function(a){return n._onBoundaryFocus(a,1)},n._rowElements[0].addEventListener("focus",n._topBoundaryFocusListener),n._rowElements[n._rowElements.length-1].addEventListener("focus",n._bottomBoundaryFocusListener),n._refreshRowsDimensions(),n._accessibilityTreeRoot.appendChild(n._rowContainer),n._renderRowsDebouncer=new m.TimeBasedDebouncer(n._renderRows.bind(n)),n._refreshRows(),n._liveRegion=document.createElement("div"),n._liveRegion.classList.add("live-region"),n._liveRegion.setAttribute("aria-live","assertive"),n._accessibilityTreeRoot.appendChild(n._liveRegion),!n._terminal.element)throw new Error("Cannot enable accessibility before Terminal.open");return n._terminal.element.insertAdjacentElement("afterbegin",n._accessibilityTreeRoot),n.register(n._renderRowsDebouncer),n.register(n._terminal.onResize(function(a){return n._onResize(a.rows)})),n.register(n._terminal.onRender(function(a){return n._refreshRows(a.start,a.end)})),n.register(n._terminal.onScroll(function(){return n._refreshRows()})),n.register(n._terminal.onA11yChar(function(a){return n._onChar(a)})),n.register(n._terminal.onLineFeed(function(){return n._onChar(`
1
+ import{e as cr}from"./chunk-V7SOQAC5.js";var mr=cr((Pt,lr)=>{(function(me,ee){if(typeof Pt=="object"&&typeof lr=="object")lr.exports=ee();else if(typeof define=="function"&&define.amd)define([],ee);else{var W=ee();for(var c in W)(typeof Pt=="object"?Pt:me)[c]=W[c]}})(self,function(){return(()=>{"use strict";var me={4567:function(W,c,w){var _,u=this&&this.__extends||(_=function(i,e){return _=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,r){t.__proto__=r}||function(t,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])},_(i,e)},function(i,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function t(){this.constructor=i}_(i,e),i.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)});Object.defineProperty(c,"__esModule",{value:!0}),c.AccessibilityManager=void 0;var f=w(9042),d=w(6114),m=w(9924),v=w(3656),o=w(844),s=w(5596),p=w(9631),h=function(i){function e(t,r){var n=i.call(this)||this;n._terminal=t,n._renderService=r,n._liveRegionLineCount=0,n._charsToConsume=[],n._charsToAnnounce="",n._accessibilityTreeRoot=document.createElement("div"),n._accessibilityTreeRoot.classList.add("xterm-accessibility"),n._accessibilityTreeRoot.tabIndex=0,n._rowContainer=document.createElement("div"),n._rowContainer.setAttribute("role","list"),n._rowContainer.classList.add("xterm-accessibility-tree"),n._rowElements=[];for(var l=0;l<n._terminal.rows;l++)n._rowElements[l]=n._createAccessibilityTreeNode(),n._rowContainer.appendChild(n._rowElements[l]);if(n._topBoundaryFocusListener=function(a){return n._onBoundaryFocus(a,0)},n._bottomBoundaryFocusListener=function(a){return n._onBoundaryFocus(a,1)},n._rowElements[0].addEventListener("focus",n._topBoundaryFocusListener),n._rowElements[n._rowElements.length-1].addEventListener("focus",n._bottomBoundaryFocusListener),n._refreshRowsDimensions(),n._accessibilityTreeRoot.appendChild(n._rowContainer),n._renderRowsDebouncer=new m.TimeBasedDebouncer(n._renderRows.bind(n)),n._refreshRows(),n._liveRegion=document.createElement("div"),n._liveRegion.classList.add("live-region"),n._liveRegion.setAttribute("aria-live","assertive"),n._accessibilityTreeRoot.appendChild(n._liveRegion),!n._terminal.element)throw new Error("Cannot enable accessibility before Terminal.open");return n._terminal.element.insertAdjacentElement("afterbegin",n._accessibilityTreeRoot),n.register(n._renderRowsDebouncer),n.register(n._terminal.onResize(function(a){return n._onResize(a.rows)})),n.register(n._terminal.onRender(function(a){return n._refreshRows(a.start,a.end)})),n.register(n._terminal.onScroll(function(){return n._refreshRows()})),n.register(n._terminal.onA11yChar(function(a){return n._onChar(a)})),n.register(n._terminal.onLineFeed(function(){return n._onChar(`
2
2
  `)})),n.register(n._terminal.onA11yTab(function(a){return n._onTab(a)})),n.register(n._terminal.onKey(function(a){return n._onKey(a.key)})),n.register(n._terminal.onBlur(function(){return n._clearLiveRegion()})),n.register(n._renderService.onDimensionsChange(function(){return n._refreshRowsDimensions()})),n._screenDprMonitor=new s.ScreenDprMonitor,n.register(n._screenDprMonitor),n._screenDprMonitor.setListener(function(){return n._refreshRowsDimensions()}),n.register((0,v.addDisposableDomListener)(window,"resize",function(){return n._refreshRowsDimensions()})),n}return u(e,i),e.prototype.dispose=function(){i.prototype.dispose.call(this),(0,p.removeElementFromParent)(this._accessibilityTreeRoot),this._rowElements.length=0},e.prototype._onBoundaryFocus=function(t,r){var n=t.target,l=this._rowElements[r===0?1:this._rowElements.length-2];if(n.getAttribute("aria-posinset")!==(r===0?"1":""+this._terminal.buffer.lines.length)&&t.relatedTarget===l){var a,y;if(r===0?(a=n,y=this._rowElements.pop(),this._rowContainer.removeChild(y)):(a=this._rowElements.shift(),y=n,this._rowContainer.removeChild(a)),a.removeEventListener("focus",this._topBoundaryFocusListener),y.removeEventListener("focus",this._bottomBoundaryFocusListener),r===0){var S=this._createAccessibilityTreeNode();this._rowElements.unshift(S),this._rowContainer.insertAdjacentElement("afterbegin",S)}else S=this._createAccessibilityTreeNode(),this._rowElements.push(S),this._rowContainer.appendChild(S);this._rowElements[0].addEventListener("focus",this._topBoundaryFocusListener),this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._terminal.scrollLines(r===0?-1:1),this._rowElements[r===0?1:this._rowElements.length-2].focus(),t.preventDefault(),t.stopImmediatePropagation()}},e.prototype._onResize=function(t){this._rowElements[this._rowElements.length-1].removeEventListener("focus",this._bottomBoundaryFocusListener);for(var r=this._rowContainer.children.length;r<this._terminal.rows;r++)this._rowElements[r]=this._createAccessibilityTreeNode(),this._rowContainer.appendChild(this._rowElements[r]);for(;this._rowElements.length>t;)this._rowContainer.removeChild(this._rowElements.pop());this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._refreshRowsDimensions()},e.prototype._createAccessibilityTreeNode=function(){var t=document.createElement("div");return t.setAttribute("role","listitem"),t.tabIndex=-1,this._refreshRowDimensions(t),t},e.prototype._onTab=function(t){for(var r=0;r<t;r++)this._onChar(" ")},e.prototype._onChar=function(t){var r=this;this._liveRegionLineCount<21&&(this._charsToConsume.length>0?this._charsToConsume.shift()!==t&&(this._charsToAnnounce+=t):this._charsToAnnounce+=t,t===`
3
3
  `&&(this._liveRegionLineCount++,this._liveRegionLineCount===21&&(this._liveRegion.textContent+=f.tooMuchOutput)),d.isMac&&this._liveRegion.textContent&&this._liveRegion.textContent.length>0&&!this._liveRegion.parentNode&&setTimeout(function(){r._accessibilityTreeRoot.appendChild(r._liveRegion)},0))},e.prototype._clearLiveRegion=function(){this._liveRegion.textContent="",this._liveRegionLineCount=0,d.isMac&&(0,p.removeElementFromParent)(this._liveRegion)},e.prototype._onKey=function(t){this._clearLiveRegion(),this._charsToConsume.push(t)},e.prototype._refreshRows=function(t,r){this._renderRowsDebouncer.refresh(t,r,this._terminal.rows)},e.prototype._renderRows=function(t,r){for(var n=this._terminal.buffer,l=n.lines.length.toString(),a=t;a<=r;a++){var y=n.translateBufferLineToString(n.ydisp+a,!0),S=(n.ydisp+a+1).toString(),g=this._rowElements[a];g&&(y.length===0?g.innerText="\xA0":g.textContent=y,g.setAttribute("aria-posinset",S),g.setAttribute("aria-setsize",l))}this._announceCharacters()},e.prototype._refreshRowsDimensions=function(){if(this._renderService.dimensions.actualCellHeight){this._rowElements.length!==this._terminal.rows&&this._onResize(this._terminal.rows);for(var t=0;t<this._terminal.rows;t++)this._refreshRowDimensions(this._rowElements[t])}},e.prototype._refreshRowDimensions=function(t){t.style.height=this._renderService.dimensions.actualCellHeight+"px"},e.prototype._announceCharacters=function(){this._charsToAnnounce.length!==0&&(this._liveRegion.textContent+=this._charsToAnnounce,this._charsToAnnounce="")},e}(o.Disposable);c.AccessibilityManager=h},3614:(W,c)=>{function w(d){return d.replace(/\r?\n/g,"\r")}function _(d,m){return m?"\x1B[200~"+d+"\x1B[201~":d}function u(d,m,v){d=_(d=w(d),v.decPrivateModes.bracketedPasteMode),v.triggerDataEvent(d,!0),m.value=""}function f(d,m,v){var o=v.getBoundingClientRect(),s=d.clientX-o.left-10,p=d.clientY-o.top-10;m.style.width="20px",m.style.height="20px",m.style.left=s+"px",m.style.top=p+"px",m.style.zIndex="1000",m.focus()}Object.defineProperty(c,"__esModule",{value:!0}),c.rightClickHandler=c.moveTextAreaUnderMouseCursor=c.paste=c.handlePasteEvent=c.copyHandler=c.bracketTextForPaste=c.prepareTextForTerminal=void 0,c.prepareTextForTerminal=w,c.bracketTextForPaste=_,c.copyHandler=function(d,m){d.clipboardData&&d.clipboardData.setData("text/plain",m.selectionText),d.preventDefault()},c.handlePasteEvent=function(d,m,v){d.stopPropagation(),d.clipboardData&&u(d.clipboardData.getData("text/plain"),m,v)},c.paste=u,c.moveTextAreaUnderMouseCursor=f,c.rightClickHandler=function(d,m,v,o,s){f(d,m,v),s&&o.rightClickSelect(d),m.value=o.selectionText,m.select()}},7239:(W,c)=>{Object.defineProperty(c,"__esModule",{value:!0}),c.ColorContrastCache=void 0;var w=function(){function _(){this._color={},this._rgba={}}return _.prototype.clear=function(){this._color={},this._rgba={}},_.prototype.setCss=function(u,f,d){this._rgba[u]||(this._rgba[u]={}),this._rgba[u][f]=d},_.prototype.getCss=function(u,f){return this._rgba[u]?this._rgba[u][f]:void 0},_.prototype.setColor=function(u,f,d){this._color[u]||(this._color[u]={}),this._color[u][f]=d},_.prototype.getColor=function(u,f){return this._color[u]?this._color[u][f]:void 0},_}();c.ColorContrastCache=w},5680:function(W,c,w){var _=this&&this.__read||function(h,i){var e=typeof Symbol=="function"&&h[Symbol.iterator];if(!e)return h;var t,r,n=e.call(h),l=[];try{for(;(i===void 0||i-- >0)&&!(t=n.next()).done;)l.push(t.value)}catch(a){r={error:a}}finally{try{t&&!t.done&&(e=n.return)&&e.call(n)}finally{if(r)throw r.error}}return l};Object.defineProperty(c,"__esModule",{value:!0}),c.ColorManager=c.DEFAULT_ANSI_COLORS=void 0;var u=w(8055),f=w(7239),d=u.css.toColor("#ffffff"),m=u.css.toColor("#000000"),v=u.css.toColor("#ffffff"),o=u.css.toColor("#000000"),s={css:"rgba(255, 255, 255, 0.3)",rgba:4294967117};c.DEFAULT_ANSI_COLORS=Object.freeze(function(){for(var h=[u.css.toColor("#2e3436"),u.css.toColor("#cc0000"),u.css.toColor("#4e9a06"),u.css.toColor("#c4a000"),u.css.toColor("#3465a4"),u.css.toColor("#75507b"),u.css.toColor("#06989a"),u.css.toColor("#d3d7cf"),u.css.toColor("#555753"),u.css.toColor("#ef2929"),u.css.toColor("#8ae234"),u.css.toColor("#fce94f"),u.css.toColor("#729fcf"),u.css.toColor("#ad7fa8"),u.css.toColor("#34e2e2"),u.css.toColor("#eeeeec")],i=[0,95,135,175,215,255],e=0;e<216;e++){var t=i[e/36%6|0],r=i[e/6%6|0],n=i[e%6];h.push({css:u.channels.toCss(t,r,n),rgba:u.channels.toRgba(t,r,n)})}for(e=0;e<24;e++){var l=8+10*e;h.push({css:u.channels.toCss(l,l,l),rgba:u.channels.toRgba(l,l,l)})}return h}());var p=function(){function h(i,e){this.allowTransparency=e;var t=i.createElement("canvas");t.width=1,t.height=1;var r=t.getContext("2d");if(!r)throw new Error("Could not get rendering context");this._ctx=r,this._ctx.globalCompositeOperation="copy",this._litmusColor=this._ctx.createLinearGradient(0,0,1,1),this._contrastCache=new f.ColorContrastCache,this.colors={foreground:d,background:m,cursor:v,cursorAccent:o,selectionTransparent:s,selectionOpaque:u.color.blend(m,s),selectionForeground:void 0,ansi:c.DEFAULT_ANSI_COLORS.slice(),contrastCache:this._contrastCache},this._updateRestoreColors()}return h.prototype.onOptionsChange=function(i){i==="minimumContrastRatio"&&this._contrastCache.clear()},h.prototype.setTheme=function(i){i===void 0&&(i={}),this.colors.foreground=this._parseColor(i.foreground,d),this.colors.background=this._parseColor(i.background,m),this.colors.cursor=this._parseColor(i.cursor,v,!0),this.colors.cursorAccent=this._parseColor(i.cursorAccent,o,!0),this.colors.selectionTransparent=this._parseColor(i.selection,s,!0),this.colors.selectionOpaque=u.color.blend(this.colors.background,this.colors.selectionTransparent);var e={css:"",rgba:0};this.colors.selectionForeground=i.selectionForeground?this._parseColor(i.selectionForeground,e):void 0,this.colors.selectionForeground===e&&(this.colors.selectionForeground=void 0),u.color.isOpaque(this.colors.selectionTransparent)&&(this.colors.selectionTransparent=u.color.opacity(this.colors.selectionTransparent,.3)),this.colors.ansi[0]=this._parseColor(i.black,c.DEFAULT_ANSI_COLORS[0]),this.colors.ansi[1]=this._parseColor(i.red,c.DEFAULT_ANSI_COLORS[1]),this.colors.ansi[2]=this._parseColor(i.green,c.DEFAULT_ANSI_COLORS[2]),this.colors.ansi[3]=this._parseColor(i.yellow,c.DEFAULT_ANSI_COLORS[3]),this.colors.ansi[4]=this._parseColor(i.blue,c.DEFAULT_ANSI_COLORS[4]),this.colors.ansi[5]=this._parseColor(i.magenta,c.DEFAULT_ANSI_COLORS[5]),this.colors.ansi[6]=this._parseColor(i.cyan,c.DEFAULT_ANSI_COLORS[6]),this.colors.ansi[7]=this._parseColor(i.white,c.DEFAULT_ANSI_COLORS[7]),this.colors.ansi[8]=this._parseColor(i.brightBlack,c.DEFAULT_ANSI_COLORS[8]),this.colors.ansi[9]=this._parseColor(i.brightRed,c.DEFAULT_ANSI_COLORS[9]),this.colors.ansi[10]=this._parseColor(i.brightGreen,c.DEFAULT_ANSI_COLORS[10]),this.colors.ansi[11]=this._parseColor(i.brightYellow,c.DEFAULT_ANSI_COLORS[11]),this.colors.ansi[12]=this._parseColor(i.brightBlue,c.DEFAULT_ANSI_COLORS[12]),this.colors.ansi[13]=this._parseColor(i.brightMagenta,c.DEFAULT_ANSI_COLORS[13]),this.colors.ansi[14]=this._parseColor(i.brightCyan,c.DEFAULT_ANSI_COLORS[14]),this.colors.ansi[15]=this._parseColor(i.brightWhite,c.DEFAULT_ANSI_COLORS[15]),this._contrastCache.clear(),this._updateRestoreColors()},h.prototype.restoreColor=function(i){if(i!==void 0)switch(i){case 256:this.colors.foreground=this._restoreColors.foreground;break;case 257:this.colors.background=this._restoreColors.background;break;case 258:this.colors.cursor=this._restoreColors.cursor;break;default:this.colors.ansi[i]=this._restoreColors.ansi[i]}else for(var e=0;e<this._restoreColors.ansi.length;++e)this.colors.ansi[e]=this._restoreColors.ansi[e]},h.prototype._updateRestoreColors=function(){this._restoreColors={foreground:this.colors.foreground,background:this.colors.background,cursor:this.colors.cursor,ansi:this.colors.ansi.slice()}},h.prototype._parseColor=function(i,e,t){if(t===void 0&&(t=this.allowTransparency),i===void 0)return e;if(this._ctx.fillStyle=this._litmusColor,this._ctx.fillStyle=i,typeof this._ctx.fillStyle!="string")return console.warn("Color: "+i+" is invalid using fallback "+e.css),e;this._ctx.fillRect(0,0,1,1);var r=this._ctx.getImageData(0,0,1,1).data;if(r[3]!==255){if(!t)return console.warn("Color: "+i+" is using transparency, but allowTransparency is false. Using fallback "+e.css+"."),e;var n=_(this._ctx.fillStyle.substring(5,this._ctx.fillStyle.length-1).split(",").map(function(b){return Number(b)}),4),l=n[0],a=n[1],y=n[2],S=n[3],g=Math.round(255*S);return{rgba:u.channels.toRgba(l,a,y,g),css:i}}return{css:this._ctx.fillStyle,rgba:u.channels.toRgba(r[0],r[1],r[2],r[3])}},h}();c.ColorManager=p},9631:function(W,c){var w=this&&this.__values||function(_){var u=typeof Symbol=="function"&&Symbol.iterator,f=u&&_[u],d=0;if(f)return f.call(_);if(_&&typeof _.length=="number")return{next:function(){return _&&d>=_.length&&(_=void 0),{value:_&&_[d++],done:!_}}};throw new TypeError(u?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(c,"__esModule",{value:!0}),c.removeElementFromParent=void 0,c.removeElementFromParent=function(){for(var _,u,f,d=[],m=0;m<arguments.length;m++)d[m]=arguments[m];try{for(var v=w(d),o=v.next();!o.done;o=v.next()){var s=o.value;(f=s?.parentElement)===null||f===void 0||f.removeChild(s)}}catch(p){_={error:p}}finally{try{o&&!o.done&&(u=v.return)&&u.call(v)}finally{if(_)throw _.error}}}},3656:(W,c)=>{Object.defineProperty(c,"__esModule",{value:!0}),c.addDisposableDomListener=void 0,c.addDisposableDomListener=function(w,_,u,f){w.addEventListener(_,u,f);var d=!1;return{dispose:function(){d||(d=!0,w.removeEventListener(_,u,f))}}}},3551:function(W,c,w){var _=this&&this.__decorate||function(o,s,p,h){var i,e=arguments.length,t=e<3?s:h===null?h=Object.getOwnPropertyDescriptor(s,p):h;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")t=Reflect.decorate(o,s,p,h);else for(var r=o.length-1;r>=0;r--)(i=o[r])&&(t=(e<3?i(t):e>3?i(s,p,t):i(s,p))||t);return e>3&&t&&Object.defineProperty(s,p,t),t},u=this&&this.__param||function(o,s){return function(p,h){s(p,h,o)}};Object.defineProperty(c,"__esModule",{value:!0}),c.MouseZone=c.Linkifier=void 0;var f=w(8460),d=w(2585),m=function(){function o(s,p,h){this._bufferService=s,this._logService=p,this._unicodeService=h,this._linkMatchers=[],this._nextLinkMatcherId=0,this._onShowLinkUnderline=new f.EventEmitter,this._onHideLinkUnderline=new f.EventEmitter,this._onLinkTooltip=new f.EventEmitter,this._rowsToLinkify={start:void 0,end:void 0}}return Object.defineProperty(o.prototype,"onShowLinkUnderline",{get:function(){return this._onShowLinkUnderline.event},enumerable:!1,configurable:!0}),Object.defineProperty(o.prototype,"onHideLinkUnderline",{get:function(){return this._onHideLinkUnderline.event},enumerable:!1,configurable:!0}),Object.defineProperty(o.prototype,"onLinkTooltip",{get:function(){return this._onLinkTooltip.event},enumerable:!1,configurable:!0}),o.prototype.attachToDom=function(s,p){this._element=s,this._mouseZoneManager=p},o.prototype.linkifyRows=function(s,p){var h=this;this._mouseZoneManager&&(this._rowsToLinkify.start===void 0||this._rowsToLinkify.end===void 0?(this._rowsToLinkify.start=s,this._rowsToLinkify.end=p):(this._rowsToLinkify.start=Math.min(this._rowsToLinkify.start,s),this._rowsToLinkify.end=Math.max(this._rowsToLinkify.end,p)),this._mouseZoneManager.clearAll(s,p),this._rowsTimeoutId&&clearTimeout(this._rowsTimeoutId),this._rowsTimeoutId=setTimeout(function(){return h._linkifyRows()},o._timeBeforeLatency))},o.prototype._linkifyRows=function(){this._rowsTimeoutId=void 0;var s=this._bufferService.buffer;if(this._rowsToLinkify.start!==void 0&&this._rowsToLinkify.end!==void 0){var p=s.ydisp+this._rowsToLinkify.start;if(!(p>=s.lines.length)){for(var h=s.ydisp+Math.min(this._rowsToLinkify.end,this._bufferService.rows)+1,i=Math.ceil(2e3/this._bufferService.cols),e=this._bufferService.buffer.iterator(!1,p,h,i,i);e.hasNext();)for(var t=e.next(),r=0;r<this._linkMatchers.length;r++)this._doLinkifyRow(t.range.first,t.content,this._linkMatchers[r]);this._rowsToLinkify.start=void 0,this._rowsToLinkify.end=void 0}}else this._logService.debug("_rowToLinkify was unset before _linkifyRows was called")},o.prototype.registerLinkMatcher=function(s,p,h){if(h===void 0&&(h={}),!p)throw new Error("handler must be defined");var i={id:this._nextLinkMatcherId++,regex:s,handler:p,matchIndex:h.matchIndex,validationCallback:h.validationCallback,hoverTooltipCallback:h.tooltipCallback,hoverLeaveCallback:h.leaveCallback,willLinkActivate:h.willLinkActivate,priority:h.priority||0};return this._addLinkMatcherToList(i),i.id},o.prototype._addLinkMatcherToList=function(s){if(this._linkMatchers.length!==0){for(var p=this._linkMatchers.length-1;p>=0;p--)if(s.priority<=this._linkMatchers[p].priority)return void this._linkMatchers.splice(p+1,0,s);this._linkMatchers.splice(0,0,s)}else this._linkMatchers.push(s)},o.prototype.deregisterLinkMatcher=function(s){for(var p=0;p<this._linkMatchers.length;p++)if(this._linkMatchers[p].id===s)return this._linkMatchers.splice(p,1),!0;return!1},o.prototype._doLinkifyRow=function(s,p,h){for(var i,e=this,t=new RegExp(h.regex.source,(h.regex.flags||"")+"g"),r=-1,n=function(){var a=i[typeof h.matchIndex!="number"?0:h.matchIndex];if(!a)return l._logService.debug("match found without corresponding matchIndex",i,h),"break";if(r=p.indexOf(a,r+1),t.lastIndex=r+a.length,r<0)return"break";var y=l._bufferService.buffer.stringIndexToBufferIndex(s,r);if(y[0]<0)return"break";var S=l._bufferService.buffer.lines.get(y[0]);if(!S)return"break";var g=S.getFg(y[1]),b=g?g>>9&511:void 0;h.validationCallback?h.validationCallback(a,function(C){e._rowsTimeoutId||C&&e._addLink(y[1],y[0]-e._bufferService.buffer.ydisp,a,h,b)}):l._addLink(y[1],y[0]-l._bufferService.buffer.ydisp,a,h,b)},l=this;(i=t.exec(p))!==null&&n()!=="break";);},o.prototype._addLink=function(s,p,h,i,e){var t=this;if(this._mouseZoneManager&&this._element){var r=this._unicodeService.getStringCellWidth(h),n=s%this._bufferService.cols,l=p+Math.floor(s/this._bufferService.cols),a=(n+r)%this._bufferService.cols,y=l+Math.floor((n+r)/this._bufferService.cols);a===0&&(a=this._bufferService.cols,y--),this._mouseZoneManager.add(new v(n+1,l+1,a+1,y+1,function(S){if(i.handler)return i.handler(S,h);var g=window.open();g?(g.opener=null,g.location.href=h):console.warn("Opening link blocked as opener could not be cleared")},function(){t._onShowLinkUnderline.fire(t._createLinkHoverEvent(n,l,a,y,e)),t._element.classList.add("xterm-cursor-pointer")},function(S){t._onLinkTooltip.fire(t._createLinkHoverEvent(n,l,a,y,e)),i.hoverTooltipCallback&&i.hoverTooltipCallback(S,h,{start:{x:n,y:l},end:{x:a,y}})},function(){t._onHideLinkUnderline.fire(t._createLinkHoverEvent(n,l,a,y,e)),t._element.classList.remove("xterm-cursor-pointer"),i.hoverLeaveCallback&&i.hoverLeaveCallback()},function(S){return!i.willLinkActivate||i.willLinkActivate(S,h)}))}},o.prototype._createLinkHoverEvent=function(s,p,h,i,e){return{x1:s,y1:p,x2:h,y2:i,cols:this._bufferService.cols,fg:e}},o._timeBeforeLatency=200,o=_([u(0,d.IBufferService),u(1,d.ILogService),u(2,d.IUnicodeService)],o)}();c.Linkifier=m;var v=function(o,s,p,h,i,e,t,r,n){this.x1=o,this.y1=s,this.x2=p,this.y2=h,this.clickCallback=i,this.hoverCallback=e,this.tooltipCallback=t,this.leaveCallback=r,this.willLinkActivate=n};c.MouseZone=v},6465:function(W,c,w){var _,u=this&&this.__extends||(_=function(e,t){return _=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var l in n)Object.prototype.hasOwnProperty.call(n,l)&&(r[l]=n[l])},_(e,t)},function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}_(e,t),e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}),f=this&&this.__decorate||function(e,t,r,n){var l,a=arguments.length,y=a<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")y=Reflect.decorate(e,t,r,n);else for(var S=e.length-1;S>=0;S--)(l=e[S])&&(y=(a<3?l(y):a>3?l(t,r,y):l(t,r))||y);return a>3&&y&&Object.defineProperty(t,r,y),y},d=this&&this.__param||function(e,t){return function(r,n){t(r,n,e)}},m=this&&this.__values||function(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},v=this&&this.__read||function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n,l,a=r.call(e),y=[];try{for(;(t===void 0||t-- >0)&&!(n=a.next()).done;)y.push(n.value)}catch(S){l={error:S}}finally{try{n&&!n.done&&(r=a.return)&&r.call(a)}finally{if(l)throw l.error}}return y};Object.defineProperty(c,"__esModule",{value:!0}),c.Linkifier2=void 0;var o=w(2585),s=w(8460),p=w(844),h=w(3656),i=function(e){function t(r){var n=e.call(this)||this;return n._bufferService=r,n._linkProviders=[],n._linkCacheDisposables=[],n._isMouseOut=!0,n._activeLine=-1,n._onShowLinkUnderline=n.register(new s.EventEmitter),n._onHideLinkUnderline=n.register(new s.EventEmitter),n.register((0,p.getDisposeArrayDisposable)(n._linkCacheDisposables)),n}return u(t,e),Object.defineProperty(t.prototype,"currentLink",{get:function(){return this._currentLink},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onShowLinkUnderline",{get:function(){return this._onShowLinkUnderline.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onHideLinkUnderline",{get:function(){return this._onHideLinkUnderline.event},enumerable:!1,configurable:!0}),t.prototype.registerLinkProvider=function(r){var n=this;return this._linkProviders.push(r),{dispose:function(){var l=n._linkProviders.indexOf(r);l!==-1&&n._linkProviders.splice(l,1)}}},t.prototype.attachToDom=function(r,n,l){var a=this;this._element=r,this._mouseService=n,this._renderService=l,this.register((0,h.addDisposableDomListener)(this._element,"mouseleave",function(){a._isMouseOut=!0,a._clearCurrentLink()})),this.register((0,h.addDisposableDomListener)(this._element,"mousemove",this._onMouseMove.bind(this))),this.register((0,h.addDisposableDomListener)(this._element,"mousedown",this._handleMouseDown.bind(this))),this.register((0,h.addDisposableDomListener)(this._element,"mouseup",this._handleMouseUp.bind(this)))},t.prototype._onMouseMove=function(r){if(this._lastMouseEvent=r,this._element&&this._mouseService){var n=this._positionFromMouseEvent(r,this._element,this._mouseService);if(n){this._isMouseOut=!1;for(var l=r.composedPath(),a=0;a<l.length;a++){var y=l[a];if(y.classList.contains("xterm"))break;if(y.classList.contains("xterm-hover"))return}this._lastBufferCell&&n.x===this._lastBufferCell.x&&n.y===this._lastBufferCell.y||(this._onHover(n),this._lastBufferCell=n)}}},t.prototype._onHover=function(r){if(this._activeLine!==r.y)return this._clearCurrentLink(),void this._askForLink(r,!1);this._currentLink&&this._linkAtPosition(this._currentLink.link,r)||(this._clearCurrentLink(),this._askForLink(r,!0))},t.prototype._askForLink=function(r,n){var l,a,y,S,g=this;this._activeProviderReplies&&n||((y=this._activeProviderReplies)===null||y===void 0||y.forEach(function(E){E?.forEach(function(A){A.link.dispose&&A.link.dispose()})}),this._activeProviderReplies=new Map,this._activeLine=r.y);var b=!1,C=function(E,A){n?!((S=R._activeProviderReplies)===null||S===void 0)&&S.get(E)&&(b=R._checkLinkProviderResult(E,r,b)):A.provideLinks(r.y,function(T){var U,q;if(!g._isMouseOut){var j=T?.map(function(z){return{link:z}});(U=g._activeProviderReplies)===null||U===void 0||U.set(E,j),b=g._checkLinkProviderResult(E,r,b),((q=g._activeProviderReplies)===null||q===void 0?void 0:q.size)===g._linkProviders.length&&g._removeIntersectingLinks(r.y,g._activeProviderReplies)}})},R=this;try{for(var L=m(this._linkProviders.entries()),k=L.next();!k.done;k=L.next()){var x=v(k.value,2);C(x[0],x[1])}}catch(E){l={error:E}}finally{try{k&&!k.done&&(a=L.return)&&a.call(L)}finally{if(l)throw l.error}}},t.prototype._removeIntersectingLinks=function(r,n){for(var l=new Set,a=0;a<n.size;a++){var y=n.get(a);if(y)for(var S=0;S<y.length;S++)for(var g=y[S],b=g.link.range.start.y<r?0:g.link.range.start.x,C=g.link.range.end.y>r?this._bufferService.cols:g.link.range.end.x,R=b;R<=C;R++){if(l.has(R)){y.splice(S--,1);break}l.add(R)}}},t.prototype._checkLinkProviderResult=function(r,n,l){var a,y=this;if(!this._activeProviderReplies)return l;for(var S=this._activeProviderReplies.get(r),g=!1,b=0;b<r;b++)this._activeProviderReplies.has(b)&&!this._activeProviderReplies.get(b)||(g=!0);if(!g&&S){var C=S.find(function(L){return y._linkAtPosition(L.link,n)});C&&(l=!0,this._handleNewLink(C))}if(this._activeProviderReplies.size===this._linkProviders.length&&!l)for(b=0;b<this._activeProviderReplies.size;b++){var R=(a=this._activeProviderReplies.get(b))===null||a===void 0?void 0:a.find(function(L){return y._linkAtPosition(L.link,n)});if(R){l=!0,this._handleNewLink(R);break}}return l},t.prototype._handleMouseDown=function(){this._mouseDownLink=this._currentLink},t.prototype._handleMouseUp=function(r){if(this._element&&this._mouseService&&this._currentLink){var n=this._positionFromMouseEvent(r,this._element,this._mouseService);n&&this._mouseDownLink===this._currentLink&&this._linkAtPosition(this._currentLink.link,n)&&this._currentLink.link.activate(r,this._currentLink.link.text)}},t.prototype._clearCurrentLink=function(r,n){this._element&&this._currentLink&&this._lastMouseEvent&&(!r||!n||this._currentLink.link.range.start.y>=r&&this._currentLink.link.range.end.y<=n)&&(this._linkLeave(this._element,this._currentLink.link,this._lastMouseEvent),this._currentLink=void 0,(0,p.disposeArray)(this._linkCacheDisposables))},t.prototype._handleNewLink=function(r){var n=this;if(this._element&&this._lastMouseEvent&&this._mouseService){var l=this._positionFromMouseEvent(this._lastMouseEvent,this._element,this._mouseService);l&&this._linkAtPosition(r.link,l)&&(this._currentLink=r,this._currentLink.state={decorations:{underline:r.link.decorations===void 0||r.link.decorations.underline,pointerCursor:r.link.decorations===void 0||r.link.decorations.pointerCursor},isHovered:!0},this._linkHover(this._element,r.link,this._lastMouseEvent),r.link.decorations={},Object.defineProperties(r.link.decorations,{pointerCursor:{get:function(){var a,y;return(y=(a=n._currentLink)===null||a===void 0?void 0:a.state)===null||y===void 0?void 0:y.decorations.pointerCursor},set:function(a){var y,S;!((y=n._currentLink)===null||y===void 0)&&y.state&&n._currentLink.state.decorations.pointerCursor!==a&&(n._currentLink.state.decorations.pointerCursor=a,n._currentLink.state.isHovered&&((S=n._element)===null||S===void 0||S.classList.toggle("xterm-cursor-pointer",a)))}},underline:{get:function(){var a,y;return(y=(a=n._currentLink)===null||a===void 0?void 0:a.state)===null||y===void 0?void 0:y.decorations.underline},set:function(a){var y,S,g;!((y=n._currentLink)===null||y===void 0)&&y.state&&((g=(S=n._currentLink)===null||S===void 0?void 0:S.state)===null||g===void 0?void 0:g.decorations.underline)!==a&&(n._currentLink.state.decorations.underline=a,n._currentLink.state.isHovered&&n._fireUnderlineEvent(r.link,a))}}}),this._renderService&&this._linkCacheDisposables.push(this._renderService.onRenderedViewportChange(function(a){var y=a.start===0?0:a.start+1+n._bufferService.buffer.ydisp;n._clearCurrentLink(y,a.end+1+n._bufferService.buffer.ydisp)})))}},t.prototype._linkHover=function(r,n,l){var a;!((a=this._currentLink)===null||a===void 0)&&a.state&&(this._currentLink.state.isHovered=!0,this._currentLink.state.decorations.underline&&this._fireUnderlineEvent(n,!0),this._currentLink.state.decorations.pointerCursor&&r.classList.add("xterm-cursor-pointer")),n.hover&&n.hover(l,n.text)},t.prototype._fireUnderlineEvent=function(r,n){var l=r.range,a=this._bufferService.buffer.ydisp,y=this._createLinkUnderlineEvent(l.start.x-1,l.start.y-a-1,l.end.x,l.end.y-a-1,void 0);(n?this._onShowLinkUnderline:this._onHideLinkUnderline).fire(y)},t.prototype._linkLeave=function(r,n,l){var a;!((a=this._currentLink)===null||a===void 0)&&a.state&&(this._currentLink.state.isHovered=!1,this._currentLink.state.decorations.underline&&this._fireUnderlineEvent(n,!1),this._currentLink.state.decorations.pointerCursor&&r.classList.remove("xterm-cursor-pointer")),n.leave&&n.leave(l,n.text)},t.prototype._linkAtPosition=function(r,n){var l=r.range.start.y===r.range.end.y,a=r.range.start.y<n.y,y=r.range.end.y>n.y;return(l&&r.range.start.x<=n.x&&r.range.end.x>=n.x||a&&r.range.end.x>=n.x||y&&r.range.start.x<=n.x||a&&y)&&r.range.start.y<=n.y&&r.range.end.y>=n.y},t.prototype._positionFromMouseEvent=function(r,n,l){var a=l.getCoords(r,n,this._bufferService.cols,this._bufferService.rows);if(a)return{x:a[0],y:a[1]+this._bufferService.buffer.ydisp}},t.prototype._createLinkUnderlineEvent=function(r,n,l,a,y){return{x1:r,y1:n,x2:l,y2:a,cols:this._bufferService.cols,fg:y}},f([d(0,o.IBufferService)],t)}(p.Disposable);c.Linkifier2=i},9042:(W,c)=>{Object.defineProperty(c,"__esModule",{value:!0}),c.tooMuchOutput=c.promptLabel=void 0,c.promptLabel="Terminal input",c.tooMuchOutput="Too much output to announce, navigate to rows manually to read"},6954:function(W,c,w){var _,u=this&&this.__extends||(_=function(h,i){return _=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},_(h,i)},function(h,i){if(typeof i!="function"&&i!==null)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function e(){this.constructor=h}_(h,i),h.prototype=i===null?Object.create(i):(e.prototype=i.prototype,new e)}),f=this&&this.__decorate||function(h,i,e,t){var r,n=arguments.length,l=n<3?i:t===null?t=Object.getOwnPropertyDescriptor(i,e):t;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")l=Reflect.decorate(h,i,e,t);else for(var a=h.length-1;a>=0;a--)(r=h[a])&&(l=(n<3?r(l):n>3?r(i,e,l):r(i,e))||l);return n>3&&l&&Object.defineProperty(i,e,l),l},d=this&&this.__param||function(h,i){return function(e,t){i(e,t,h)}};Object.defineProperty(c,"__esModule",{value:!0}),c.MouseZoneManager=void 0;var m=w(844),v=w(3656),o=w(4725),s=w(2585),p=function(h){function i(e,t,r,n,l,a){var y=h.call(this)||this;return y._element=e,y._screenElement=t,y._bufferService=r,y._mouseService=n,y._selectionService=l,y._optionsService=a,y._zones=[],y._areZonesActive=!1,y._lastHoverCoords=[void 0,void 0],y._initialSelectionLength=0,y.register((0,v.addDisposableDomListener)(y._element,"mousedown",function(S){return y._onMouseDown(S)})),y._mouseMoveListener=function(S){return y._onMouseMove(S)},y._mouseLeaveListener=function(S){return y._onMouseLeave(S)},y._clickListener=function(S){return y._onClick(S)},y}return u(i,h),i.prototype.dispose=function(){h.prototype.dispose.call(this),this._deactivate()},i.prototype.add=function(e){this._zones.push(e),this._zones.length===1&&this._activate()},i.prototype.clearAll=function(e,t){if(this._zones.length!==0){e&&t||(e=0,t=this._bufferService.rows-1);for(var r=0;r<this._zones.length;r++){var n=this._zones[r];(n.y1>e&&n.y1<=t+1||n.y2>e&&n.y2<=t+1||n.y1<e&&n.y2>t+1)&&(this._currentZone&&this._currentZone===n&&(this._currentZone.leaveCallback(),this._currentZone=void 0),this._zones.splice(r--,1))}this._zones.length===0&&this._deactivate()}},i.prototype._activate=function(){this._areZonesActive||(this._areZonesActive=!0,this._element.addEventListener("mousemove",this._mouseMoveListener),this._element.addEventListener("mouseleave",this._mouseLeaveListener),this._element.addEventListener("click",this._clickListener))},i.prototype._deactivate=function(){this._areZonesActive&&(this._areZonesActive=!1,this._element.removeEventListener("mousemove",this._mouseMoveListener),this._element.removeEventListener("mouseleave",this._mouseLeaveListener),this._element.removeEventListener("click",this._clickListener))},i.prototype._onMouseMove=function(e){this._lastHoverCoords[0]===e.pageX&&this._lastHoverCoords[1]===e.pageY||(this._onHover(e),this._lastHoverCoords=[e.pageX,e.pageY])},i.prototype._onHover=function(e){var t=this,r=this._findZoneEventAt(e);r!==this._currentZone&&(this._currentZone&&(this._currentZone.leaveCallback(),this._currentZone=void 0,this._tooltipTimeout&&clearTimeout(this._tooltipTimeout)),r&&(this._currentZone=r,r.hoverCallback&&r.hoverCallback(e),this._tooltipTimeout=window.setTimeout(function(){return t._onTooltip(e)},this._optionsService.rawOptions.linkTooltipHoverDuration)))},i.prototype._onTooltip=function(e){this._tooltipTimeout=void 0;var t=this._findZoneEventAt(e);t?.tooltipCallback(e)},i.prototype._onMouseDown=function(e){if(this._initialSelectionLength=this._getSelectionLength(),this._areZonesActive){var t=this._findZoneEventAt(e);t?.willLinkActivate(e)&&(e.preventDefault(),e.stopImmediatePropagation())}},i.prototype._onMouseLeave=function(e){this._currentZone&&(this._currentZone.leaveCallback(),this._currentZone=void 0,this._tooltipTimeout&&clearTimeout(this._tooltipTimeout))},i.prototype._onClick=function(e){var t=this._findZoneEventAt(e),r=this._getSelectionLength();t&&r===this._initialSelectionLength&&(t.clickCallback(e),e.preventDefault(),e.stopImmediatePropagation())},i.prototype._getSelectionLength=function(){var e=this._selectionService.selectionText;return e?e.length:0},i.prototype._findZoneEventAt=function(e){var t=this._mouseService.getCoords(e,this._screenElement,this._bufferService.cols,this._bufferService.rows);if(t)for(var r=t[0],n=t[1],l=0;l<this._zones.length;l++){var a=this._zones[l];if(a.y1===a.y2){if(n===a.y1&&r>=a.x1&&r<a.x2)return a}else if(n===a.y1&&r>=a.x1||n===a.y2&&r<a.x2||n>a.y1&&n<a.y2)return a}},f([d(2,s.IBufferService),d(3,o.IMouseService),d(4,o.ISelectionService),d(5,s.IOptionsService)],i)}(m.Disposable);c.MouseZoneManager=p},6193:function(W,c){var w=this&&this.__values||function(u){var f=typeof Symbol=="function"&&Symbol.iterator,d=f&&u[f],m=0;if(d)return d.call(u);if(u&&typeof u.length=="number")return{next:function(){return u&&m>=u.length&&(u=void 0),{value:u&&u[m++],done:!u}}};throw new TypeError(f?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(c,"__esModule",{value:!0}),c.RenderDebouncer=void 0;var _=function(){function u(f){this._renderCallback=f,this._refreshCallbacks=[]}return u.prototype.dispose=function(){this._animationFrame&&(window.cancelAnimationFrame(this._animationFrame),this._animationFrame=void 0)},u.prototype.addRefreshCallback=function(f){var d=this;return this._refreshCallbacks.push(f),this._animationFrame||(this._animationFrame=window.requestAnimationFrame(function(){return d._innerRefresh()})),this._animationFrame},u.prototype.refresh=function(f,d,m){var v=this;this._rowCount=m,f=f!==void 0?f:0,d=d!==void 0?d:this._rowCount-1,this._rowStart=this._rowStart!==void 0?Math.min(this._rowStart,f):f,this._rowEnd=this._rowEnd!==void 0?Math.max(this._rowEnd,d):d,this._animationFrame||(this._animationFrame=window.requestAnimationFrame(function(){return v._innerRefresh()}))},u.prototype._innerRefresh=function(){if(this._animationFrame=void 0,this._rowStart!==void 0&&this._rowEnd!==void 0&&this._rowCount!==void 0){var f=Math.max(this._rowStart,0),d=Math.min(this._rowEnd,this._rowCount-1);this._rowStart=void 0,this._rowEnd=void 0,this._renderCallback(f,d),this._runRefreshCallbacks()}else this._runRefreshCallbacks()},u.prototype._runRefreshCallbacks=function(){var f,d;try{for(var m=w(this._refreshCallbacks),v=m.next();!v.done;v=m.next())(0,v.value)(0)}catch(o){f={error:o}}finally{try{v&&!v.done&&(d=m.return)&&d.call(m)}finally{if(f)throw f.error}}this._refreshCallbacks=[]},u}();c.RenderDebouncer=_},5596:function(W,c,w){var _,u=this&&this.__extends||(_=function(d,m){return _=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(v,o){v.__proto__=o}||function(v,o){for(var s in o)Object.prototype.hasOwnProperty.call(o,s)&&(v[s]=o[s])},_(d,m)},function(d,m){if(typeof m!="function"&&m!==null)throw new TypeError("Class extends value "+String(m)+" is not a constructor or null");function v(){this.constructor=d}_(d,m),d.prototype=m===null?Object.create(m):(v.prototype=m.prototype,new v)});Object.defineProperty(c,"__esModule",{value:!0}),c.ScreenDprMonitor=void 0;var f=function(d){function m(){var v=d!==null&&d.apply(this,arguments)||this;return v._currentDevicePixelRatio=window.devicePixelRatio,v}return u(m,d),m.prototype.setListener=function(v){var o=this;this._listener&&this.clearListener(),this._listener=v,this._outerListener=function(){o._listener&&(o._listener(window.devicePixelRatio,o._currentDevicePixelRatio),o._updateDpr())},this._updateDpr()},m.prototype.dispose=function(){d.prototype.dispose.call(this),this.clearListener()},m.prototype._updateDpr=function(){var v;this._outerListener&&((v=this._resolutionMediaMatchList)===null||v===void 0||v.removeListener(this._outerListener),this._currentDevicePixelRatio=window.devicePixelRatio,this._resolutionMediaMatchList=window.matchMedia("screen and (resolution: "+window.devicePixelRatio+"dppx)"),this._resolutionMediaMatchList.addListener(this._outerListener))},m.prototype.clearListener=function(){this._resolutionMediaMatchList&&this._listener&&this._outerListener&&(this._resolutionMediaMatchList.removeListener(this._outerListener),this._resolutionMediaMatchList=void 0,this._listener=void 0,this._outerListener=void 0)},m}(w(844).Disposable);c.ScreenDprMonitor=f},3236:function(W,c,w){var _,u=this&&this.__extends||(_=function(X,F){return _=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(O,D){O.__proto__=D}||function(O,D){for(var H in D)Object.prototype.hasOwnProperty.call(D,H)&&(O[H]=D[H])},_(X,F)},function(X,F){if(typeof F!="function"&&F!==null)throw new TypeError("Class extends value "+String(F)+" is not a constructor or null");function O(){this.constructor=X}_(X,F),X.prototype=F===null?Object.create(F):(O.prototype=F.prototype,new O)}),f=this&&this.__values||function(X){var F=typeof Symbol=="function"&&Symbol.iterator,O=F&&X[F],D=0;if(O)return O.call(X);if(X&&typeof X.length=="number")return{next:function(){return X&&D>=X.length&&(X=void 0),{value:X&&X[D++],done:!X}}};throw new TypeError(F?"Object is not iterable.":"Symbol.iterator is not defined.")},d=this&&this.__read||function(X,F){var O=typeof Symbol=="function"&&X[Symbol.iterator];if(!O)return X;var D,H,G=O.call(X),V=[];try{for(;(F===void 0||F-- >0)&&!(D=G.next()).done;)V.push(D.value)}catch(J){H={error:J}}finally{try{D&&!D.done&&(O=G.return)&&O.call(G)}finally{if(H)throw H.error}}return V},m=this&&this.__spreadArray||function(X,F,O){if(O||arguments.length===2)for(var D,H=0,G=F.length;H<G;H++)!D&&H in F||(D||(D=Array.prototype.slice.call(F,0,H)),D[H]=F[H]);return X.concat(D||Array.prototype.slice.call(F))};Object.defineProperty(c,"__esModule",{value:!0}),c.Terminal=void 0;var v=w(2950),o=w(1680),s=w(3614),p=w(2584),h=w(5435),i=w(3525),e=w(3551),t=w(9312),r=w(6114),n=w(3656),l=w(9042),a=w(357),y=w(6954),S=w(4567),g=w(1296),b=w(7399),C=w(8460),R=w(8437),L=w(5680),k=w(3230),x=w(4725),E=w(428),A=w(8934),T=w(6465),U=w(5114),q=w(8969),j=w(8055),z=w(4269),N=w(5941),M=w(3107),Y=w(5744),Z=w(9074),te=w(2585),B=typeof window<"u"?window.document:null,Q=function(X){function F(O){O===void 0&&(O={});var D=X.call(this,O)||this;return D.browser=r,D._keyDownHandled=!1,D._keyDownSeen=!1,D._keyPressHandled=!1,D._unprocessedDeadKey=!1,D._onCursorMove=new C.EventEmitter,D._onKey=new C.EventEmitter,D._onRender=new C.EventEmitter,D._onSelectionChange=new C.EventEmitter,D._onTitleChange=new C.EventEmitter,D._onBell=new C.EventEmitter,D._onFocus=new C.EventEmitter,D._onBlur=new C.EventEmitter,D._onA11yCharEmitter=new C.EventEmitter,D._onA11yTabEmitter=new C.EventEmitter,D._setup(),D.linkifier=D._instantiationService.createInstance(e.Linkifier),D.linkifier2=D.register(D._instantiationService.createInstance(T.Linkifier2)),D._decorationService=D._instantiationService.createInstance(Z.DecorationService),D._instantiationService.setService(te.IDecorationService,D._decorationService),D.register(D._inputHandler.onRequestBell(function(){return D.bell()})),D.register(D._inputHandler.onRequestRefreshRows(function(H,G){return D.refresh(H,G)})),D.register(D._inputHandler.onRequestSendFocus(function(){return D._reportFocus()})),D.register(D._inputHandler.onRequestReset(function(){return D.reset()})),D.register(D._inputHandler.onRequestWindowsOptionsReport(function(H){return D._reportWindowsOptions(H)})),D.register(D._inputHandler.onColor(function(H){return D._handleColorEvent(H)})),D.register((0,C.forwardEvent)(D._inputHandler.onCursorMove,D._onCursorMove)),D.register((0,C.forwardEvent)(D._inputHandler.onTitleChange,D._onTitleChange)),D.register((0,C.forwardEvent)(D._inputHandler.onA11yChar,D._onA11yCharEmitter)),D.register((0,C.forwardEvent)(D._inputHandler.onA11yTab,D._onA11yTabEmitter)),D.register(D._bufferService.onResize(function(H){return D._afterResize(H.cols,H.rows)})),D}return u(F,X),Object.defineProperty(F.prototype,"onCursorMove",{get:function(){return this._onCursorMove.event},enumerable:!1,configurable:!0}),Object.defineProperty(F.prototype,"onKey",{get:function(){return this._onKey.event},enumerable:!1,configurable:!0}),Object.defineProperty(F.prototype,"onRender",{get:function(){return this._onRender.event},enumerable:!1,configurable:!0}),Object.defineProperty(F.prototype,"onSelectionChange",{get:function(){return this._onSelectionChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(F.prototype,"onTitleChange",{get:function(){return this._onTitleChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(F.prototype,"onBell",{get:function(){return this._onBell.event},enumerable:!1,configurable:!0}),Object.defineProperty(F.prototype,"onFocus",{get:function(){return this._onFocus.event},enumerable:!1,configurable:!0}),Object.defineProperty(F.prototype,"onBlur",{get:function(){return this._onBlur.event},enumerable:!1,configurable:!0}),Object.defineProperty(F.prototype,"onA11yChar",{get:function(){return this._onA11yCharEmitter.event},enumerable:!1,configurable:!0}),Object.defineProperty(F.prototype,"onA11yTab",{get:function(){return this._onA11yTabEmitter.event},enumerable:!1,configurable:!0}),F.prototype._handleColorEvent=function(O){var D,H,G,V;if(this._colorManager){try{for(var J=f(O),ie=J.next();!ie.done;ie=J.next()){var se=ie.value,ae=void 0,K="";switch(se.index){case 256:ae="foreground",K="10";break;case 257:ae="background",K="11";break;case 258:ae="cursor",K="12";break;default:ae="ansi",K="4;"+se.index}if(ae)switch(se.type){case 0:var ce=j.color.toColorRGB(ae==="ansi"?this._colorManager.colors.ansi[se.index]:this._colorManager.colors[ae]);this.coreService.triggerDataEvent(p.C0.ESC+"]"+K+";"+(0,N.toRgbString)(ce)+p.C1_ESCAPED.ST);break;case 1:ae==="ansi"?this._colorManager.colors.ansi[se.index]=j.rgba.toColor.apply(j.rgba,m([],d(se.color),!1)):this._colorManager.colors[ae]=j.rgba.toColor.apply(j.rgba,m([],d(se.color),!1));break;case 2:this._colorManager.restoreColor(se.index)}}}catch(de){D={error:de}}finally{try{ie&&!ie.done&&(H=J.return)&&H.call(J)}finally{if(D)throw D.error}}(G=this._renderService)===null||G===void 0||G.setColors(this._colorManager.colors),(V=this.viewport)===null||V===void 0||V.onThemeChange(this._colorManager.colors)}},F.prototype.dispose=function(){var O,D,H;this._isDisposed||(X.prototype.dispose.call(this),(O=this._renderService)===null||O===void 0||O.dispose(),this._customKeyEventHandler=void 0,this.write=function(){},(H=(D=this.element)===null||D===void 0?void 0:D.parentNode)===null||H===void 0||H.removeChild(this.element))},F.prototype._setup=function(){X.prototype._setup.call(this),this._customKeyEventHandler=void 0},Object.defineProperty(F.prototype,"buffer",{get:function(){return this.buffers.active},enumerable:!1,configurable:!0}),F.prototype.focus=function(){this.textarea&&this.textarea.focus({preventScroll:!0})},F.prototype._updateOptions=function(O){var D,H,G,V;switch(X.prototype._updateOptions.call(this,O),O){case"fontFamily":case"fontSize":(D=this._renderService)===null||D===void 0||D.clear(),(H=this._charSizeService)===null||H===void 0||H.measure();break;case"cursorBlink":case"cursorStyle":this.refresh(this.buffer.y,this.buffer.y);break;case"customGlyphs":case"drawBoldTextInBrightColors":case"letterSpacing":case"lineHeight":case"fontWeight":case"fontWeightBold":case"minimumContrastRatio":this._renderService&&(this._renderService.clear(),this._renderService.onResize(this.cols,this.rows),this.refresh(0,this.rows-1));break;case"rendererType":this._renderService&&(this._renderService.setRenderer(this._createRenderer()),this._renderService.onResize(this.cols,this.rows));break;case"scrollback":(G=this.viewport)===null||G===void 0||G.syncScrollArea();break;case"screenReaderMode":this.optionsService.rawOptions.screenReaderMode?!this._accessibilityManager&&this._renderService&&(this._accessibilityManager=new S.AccessibilityManager(this,this._renderService)):((V=this._accessibilityManager)===null||V===void 0||V.dispose(),this._accessibilityManager=void 0);break;case"tabStopWidth":this.buffers.setupTabStops();break;case"theme":this._setTheme(this.optionsService.rawOptions.theme)}},F.prototype._onTextAreaFocus=function(O){this.coreService.decPrivateModes.sendFocus&&this.coreService.triggerDataEvent(p.C0.ESC+"[I"),this.updateCursorStyle(O),this.element.classList.add("focus"),this._showCursor(),this._onFocus.fire()},F.prototype.blur=function(){var O;return(O=this.textarea)===null||O===void 0?void 0:O.blur()},F.prototype._onTextAreaBlur=function(){this.textarea.value="",this.refresh(this.buffer.y,this.buffer.y),this.coreService.decPrivateModes.sendFocus&&this.coreService.triggerDataEvent(p.C0.ESC+"[O"),this.element.classList.remove("focus"),this._onBlur.fire()},F.prototype._syncTextArea=function(){if(this.textarea&&this.buffer.isCursorInViewport&&!this._compositionHelper.isComposing&&this._renderService){var O=this.buffer.ybase+this.buffer.y,D=this.buffer.lines.get(O);if(D){var H=Math.min(this.buffer.x,this.cols-1),G=this._renderService.dimensions.actualCellHeight,V=D.getWidth(H),J=this._renderService.dimensions.actualCellWidth*V,ie=this.buffer.y*this._renderService.dimensions.actualCellHeight,se=H*this._renderService.dimensions.actualCellWidth;this.textarea.style.left=se+"px",this.textarea.style.top=ie+"px",this.textarea.style.width=J+"px",this.textarea.style.height=G+"px",this.textarea.style.lineHeight=G+"px",this.textarea.style.zIndex="-5"}}},F.prototype._initGlobal=function(){var O=this;this._bindKeys(),this.register((0,n.addDisposableDomListener)(this.element,"copy",function(H){O.hasSelection()&&(0,s.copyHandler)(H,O._selectionService)}));var D=function(H){return(0,s.handlePasteEvent)(H,O.textarea,O.coreService)};this.register((0,n.addDisposableDomListener)(this.textarea,"paste",D)),this.register((0,n.addDisposableDomListener)(this.element,"paste",D)),r.isFirefox?this.register((0,n.addDisposableDomListener)(this.element,"mousedown",function(H){H.button===2&&(0,s.rightClickHandler)(H,O.textarea,O.screenElement,O._selectionService,O.options.rightClickSelectsWord)})):this.register((0,n.addDisposableDomListener)(this.element,"contextmenu",function(H){(0,s.rightClickHandler)(H,O.textarea,O.screenElement,O._selectionService,O.options.rightClickSelectsWord)})),r.isLinux&&this.register((0,n.addDisposableDomListener)(this.element,"auxclick",function(H){H.button===1&&(0,s.moveTextAreaUnderMouseCursor)(H,O.textarea,O.screenElement)}))},F.prototype._bindKeys=function(){var O=this;this.register((0,n.addDisposableDomListener)(this.textarea,"keyup",function(D){return O._keyUp(D)},!0)),this.register((0,n.addDisposableDomListener)(this.textarea,"keydown",function(D){return O._keyDown(D)},!0)),this.register((0,n.addDisposableDomListener)(this.textarea,"keypress",function(D){return O._keyPress(D)},!0)),this.register((0,n.addDisposableDomListener)(this.textarea,"compositionstart",function(){return O._compositionHelper.compositionstart()})),this.register((0,n.addDisposableDomListener)(this.textarea,"compositionupdate",function(D){return O._compositionHelper.compositionupdate(D)})),this.register((0,n.addDisposableDomListener)(this.textarea,"compositionend",function(){return O._compositionHelper.compositionend()})),this.register((0,n.addDisposableDomListener)(this.textarea,"input",function(D){return O._inputEvent(D)},!0)),this.register(this.onRender(function(){return O._compositionHelper.updateCompositionElements()})),this.register(this.onRender(function(D){return O._queueLinkification(D.start,D.end)}))},F.prototype.open=function(O){var D=this;if(!O)throw new Error("Terminal requires a parent element.");O.isConnected||this._logService.debug("Terminal.open was called on an element that was not attached to the DOM"),this._document=O.ownerDocument,this.element=this._document.createElement("div"),this.element.dir="ltr",this.element.classList.add("terminal"),this.element.classList.add("xterm"),this.element.setAttribute("tabindex","0"),O.appendChild(this.element);var H=B.createDocumentFragment();this._viewportElement=B.createElement("div"),this._viewportElement.classList.add("xterm-viewport"),H.appendChild(this._viewportElement),this._viewportScrollArea=B.createElement("div"),this._viewportScrollArea.classList.add("xterm-scroll-area"),this._viewportElement.appendChild(this._viewportScrollArea),this.screenElement=B.createElement("div"),this.screenElement.classList.add("xterm-screen"),this._helperContainer=B.createElement("div"),this._helperContainer.classList.add("xterm-helpers"),this.screenElement.appendChild(this._helperContainer),H.appendChild(this.screenElement),this.textarea=B.createElement("textarea"),this.textarea.classList.add("xterm-helper-textarea"),this.textarea.setAttribute("aria-label",l.promptLabel),this.textarea.setAttribute("aria-multiline","false"),this.textarea.setAttribute("autocorrect","off"),this.textarea.setAttribute("autocapitalize","off"),this.textarea.setAttribute("spellcheck","false"),this.textarea.tabIndex=0,this.register((0,n.addDisposableDomListener)(this.textarea,"focus",function(J){return D._onTextAreaFocus(J)})),this.register((0,n.addDisposableDomListener)(this.textarea,"blur",function(){return D._onTextAreaBlur()})),this._helperContainer.appendChild(this.textarea);var G=this._instantiationService.createInstance(U.CoreBrowserService,this.textarea);this._instantiationService.setService(x.ICoreBrowserService,G),this._charSizeService=this._instantiationService.createInstance(E.CharSizeService,this._document,this._helperContainer),this._instantiationService.setService(x.ICharSizeService,this._charSizeService),this._theme=this.options.theme||this._theme,this._colorManager=new L.ColorManager(B,this.options.allowTransparency),this.register(this.optionsService.onOptionChange(function(J){return D._colorManager.onOptionsChange(J)})),this._colorManager.setTheme(this._theme),this._characterJoinerService=this._instantiationService.createInstance(z.CharacterJoinerService),this._instantiationService.setService(x.ICharacterJoinerService,this._characterJoinerService);var V=this._createRenderer();this._renderService=this.register(this._instantiationService.createInstance(k.RenderService,V,this.rows,this.screenElement)),this._instantiationService.setService(x.IRenderService,this._renderService),this.register(this._renderService.onRenderedViewportChange(function(J){return D._onRender.fire(J)})),this.onResize(function(J){return D._renderService.resize(J.cols,J.rows)}),this._compositionView=B.createElement("div"),this._compositionView.classList.add("composition-view"),this._compositionHelper=this._instantiationService.createInstance(v.CompositionHelper,this.textarea,this._compositionView),this._helperContainer.appendChild(this._compositionView),this.element.appendChild(H),this._soundService=this._instantiationService.createInstance(a.SoundService),this._instantiationService.setService(x.ISoundService,this._soundService),this._mouseService=this._instantiationService.createInstance(A.MouseService),this._instantiationService.setService(x.IMouseService,this._mouseService),this.viewport=this._instantiationService.createInstance(o.Viewport,function(J){return D.scrollLines(J,!0,1)},this._viewportElement,this._viewportScrollArea,this.element),this.viewport.onThemeChange(this._colorManager.colors),this.register(this._inputHandler.onRequestSyncScrollBar(function(){return D.viewport.syncScrollArea()})),this.register(this.viewport),this.register(this.onCursorMove(function(){D._renderService.onCursorMove(),D._syncTextArea()})),this.register(this.onResize(function(){return D._renderService.onResize(D.cols,D.rows)})),this.register(this.onBlur(function(){return D._renderService.onBlur()})),this.register(this.onFocus(function(){return D._renderService.onFocus()})),this.register(this._renderService.onDimensionsChange(function(){return D.viewport.syncScrollArea()})),this._selectionService=this.register(this._instantiationService.createInstance(t.SelectionService,this.element,this.screenElement,this.linkifier2)),this._instantiationService.setService(x.ISelectionService,this._selectionService),this.register(this._selectionService.onRequestScrollLines(function(J){return D.scrollLines(J.amount,J.suppressScrollEvent)})),this.register(this._selectionService.onSelectionChange(function(){return D._onSelectionChange.fire()})),this.register(this._selectionService.onRequestRedraw(function(J){return D._renderService.onSelectionChanged(J.start,J.end,J.columnSelectMode)})),this.register(this._selectionService.onLinuxMouseSelection(function(J){D.textarea.value=J,D.textarea.focus(),D.textarea.select()})),this.register(this._onScroll.event(function(J){D.viewport.syncScrollArea(),D._selectionService.refresh()})),this.register((0,n.addDisposableDomListener)(this._viewportElement,"scroll",function(){return D._selectionService.refresh()})),this._mouseZoneManager=this._instantiationService.createInstance(y.MouseZoneManager,this.element,this.screenElement),this.register(this._mouseZoneManager),this.register(this.onScroll(function(){return D._mouseZoneManager.clearAll()})),this.linkifier.attachToDom(this.element,this._mouseZoneManager),this.linkifier2.attachToDom(this.screenElement,this._mouseService,this._renderService),this.register(this._instantiationService.createInstance(M.BufferDecorationRenderer,this.screenElement)),this.register((0,n.addDisposableDomListener)(this.element,"mousedown",function(J){return D._selectionService.onMouseDown(J)})),this.coreMouseService.areMouseEventsActive?(this._selectionService.disable(),this.element.classList.add("enable-mouse-events")):this._selectionService.enable(),this.options.screenReaderMode&&(this._accessibilityManager=new S.AccessibilityManager(this,this._renderService)),this.options.overviewRulerWidth&&(this._overviewRulerRenderer=this._instantiationService.createInstance(Y.OverviewRulerRenderer,this._viewportElement,this.screenElement)),this.optionsService.onOptionChange(function(){!D._overviewRulerRenderer&&D.options.overviewRulerWidth&&D._viewportElement&&D.screenElement&&(D._overviewRulerRenderer=D._instantiationService.createInstance(Y.OverviewRulerRenderer,D._viewportElement,D.screenElement))}),this._charSizeService.measure(),this.refresh(0,this.rows-1),this._initGlobal(),this.bindMouse()},F.prototype._createRenderer=function(){switch(this.options.rendererType){case"canvas":return this._instantiationService.createInstance(i.Renderer,this._colorManager.colors,this.screenElement,this.linkifier,this.linkifier2);case"dom":return this._instantiationService.createInstance(g.DomRenderer,this._colorManager.colors,this.element,this.screenElement,this._viewportElement,this.linkifier,this.linkifier2);default:throw new Error('Unrecognized rendererType "'+this.options.rendererType+'"')}},F.prototype._setTheme=function(O){var D,H,G;this._theme=O,(D=this._colorManager)===null||D===void 0||D.setTheme(O),(H=this._renderService)===null||H===void 0||H.setColors(this._colorManager.colors),(G=this.viewport)===null||G===void 0||G.onThemeChange(this._colorManager.colors)},F.prototype.bindMouse=function(){var O=this,D=this,H=this.element;function G(K){var ce,de,Se=D._mouseService.getRawByteCoords(K,D.screenElement,D.cols,D.rows);if(!Se)return!1;switch(K.overrideType||K.type){case"mousemove":de=32,K.buttons===void 0?(ce=3,K.button!==void 0&&(ce=K.button<3?K.button:3)):ce=1&K.buttons?0:4&K.buttons?1:2&K.buttons?2:3;break;case"mouseup":de=0,ce=K.button<3?K.button:3;break;case"mousedown":de=1,ce=K.button<3?K.button:3;break;case"wheel":if(D.viewport.getLinesScrolled(K)===0)return!1;de=K.deltaY<0?0:1,ce=4;break;default:return!1}return!(de===void 0||ce===void 0||ce>4)&&D.coreMouseService.triggerMouseEvent({col:Se.x-33,row:Se.y-33,button:ce,action:de,ctrl:K.ctrlKey,alt:K.altKey,shift:K.shiftKey})}var V={mouseup:null,wheel:null,mousedrag:null,mousemove:null},J=function(K){return G(K),K.buttons||(O._document.removeEventListener("mouseup",V.mouseup),V.mousedrag&&O._document.removeEventListener("mousemove",V.mousedrag)),O.cancel(K)},ie=function(K){return G(K),O.cancel(K,!0)},se=function(K){K.buttons&&G(K)},ae=function(K){K.buttons||G(K)};this.register(this.coreMouseService.onProtocolChange(function(K){K?(O.optionsService.rawOptions.logLevel==="debug"&&O._logService.debug("Binding to mouse events:",O.coreMouseService.explainEvents(K)),O.element.classList.add("enable-mouse-events"),O._selectionService.disable()):(O._logService.debug("Unbinding from mouse events."),O.element.classList.remove("enable-mouse-events"),O._selectionService.enable()),8&K?V.mousemove||(H.addEventListener("mousemove",ae),V.mousemove=ae):(H.removeEventListener("mousemove",V.mousemove),V.mousemove=null),16&K?V.wheel||(H.addEventListener("wheel",ie,{passive:!1}),V.wheel=ie):(H.removeEventListener("wheel",V.wheel),V.wheel=null),2&K?V.mouseup||(V.mouseup=J):(O._document.removeEventListener("mouseup",V.mouseup),V.mouseup=null),4&K?V.mousedrag||(V.mousedrag=se):(O._document.removeEventListener("mousemove",V.mousedrag),V.mousedrag=null)})),this.coreMouseService.activeProtocol=this.coreMouseService.activeProtocol,this.register((0,n.addDisposableDomListener)(H,"mousedown",function(K){if(K.preventDefault(),O.focus(),O.coreMouseService.areMouseEventsActive&&!O._selectionService.shouldForceSelection(K))return G(K),V.mouseup&&O._document.addEventListener("mouseup",V.mouseup),V.mousedrag&&O._document.addEventListener("mousemove",V.mousedrag),O.cancel(K)})),this.register((0,n.addDisposableDomListener)(H,"wheel",function(K){if(!V.wheel){if(!O.buffer.hasScrollback){var ce=O.viewport.getLinesScrolled(K);if(ce===0)return;for(var de=p.C0.ESC+(O.coreService.decPrivateModes.applicationCursorKeys?"O":"[")+(K.deltaY<0?"A":"B"),Se="",Be=0;Be<Math.abs(ce);Be++)Se+=de;return O.coreService.triggerDataEvent(Se,!0),O.cancel(K,!0)}return O.viewport.onWheel(K)?O.cancel(K):void 0}},{passive:!1})),this.register((0,n.addDisposableDomListener)(H,"touchstart",function(K){if(!O.coreMouseService.areMouseEventsActive)return O.viewport.onTouchStart(K),O.cancel(K)},{passive:!0})),this.register((0,n.addDisposableDomListener)(H,"touchmove",function(K){if(!O.coreMouseService.areMouseEventsActive)return O.viewport.onTouchMove(K)?void 0:O.cancel(K)},{passive:!1}))},F.prototype.refresh=function(O,D){var H;(H=this._renderService)===null||H===void 0||H.refreshRows(O,D)},F.prototype._queueLinkification=function(O,D){var H;(H=this.linkifier)===null||H===void 0||H.linkifyRows(O,D)},F.prototype.updateCursorStyle=function(O){var D;!((D=this._selectionService)===null||D===void 0)&&D.shouldColumnSelect(O)?this.element.classList.add("column-select"):this.element.classList.remove("column-select")},F.prototype._showCursor=function(){this.coreService.isCursorInitialized||(this.coreService.isCursorInitialized=!0,this.refresh(this.buffer.y,this.buffer.y))},F.prototype.scrollLines=function(O,D,H){H===void 0&&(H=0),X.prototype.scrollLines.call(this,O,D,H),this.refresh(0,this.rows-1)},F.prototype.paste=function(O){(0,s.paste)(O,this.textarea,this.coreService)},F.prototype.attachCustomKeyEventHandler=function(O){this._customKeyEventHandler=O},F.prototype.registerLinkMatcher=function(O,D,H){var G=this.linkifier.registerLinkMatcher(O,D,H);return this.refresh(0,this.rows-1),G},F.prototype.deregisterLinkMatcher=function(O){this.linkifier.deregisterLinkMatcher(O)&&this.refresh(0,this.rows-1)},F.prototype.registerLinkProvider=function(O){return this.linkifier2.registerLinkProvider(O)},F.prototype.registerCharacterJoiner=function(O){if(!this._characterJoinerService)throw new Error("Terminal must be opened first");var D=this._characterJoinerService.register(O);return this.refresh(0,this.rows-1),D},F.prototype.deregisterCharacterJoiner=function(O){if(!this._characterJoinerService)throw new Error("Terminal must be opened first");this._characterJoinerService.deregister(O)&&this.refresh(0,this.rows-1)},Object.defineProperty(F.prototype,"markers",{get:function(){return this.buffer.markers},enumerable:!1,configurable:!0}),F.prototype.addMarker=function(O){if(this.buffer===this.buffers.normal)return this.buffer.addMarker(this.buffer.ybase+this.buffer.y+O)},F.prototype.registerDecoration=function(O){return this._decorationService.registerDecoration(O)},F.prototype.hasSelection=function(){return!!this._selectionService&&this._selectionService.hasSelection},F.prototype.select=function(O,D,H){this._selectionService.setSelection(O,D,H)},F.prototype.getSelection=function(){return this._selectionService?this._selectionService.selectionText:""},F.prototype.getSelectionPosition=function(){if(this._selectionService&&this._selectionService.hasSelection)return{startColumn:this._selectionService.selectionStart[0],startRow:this._selectionService.selectionStart[1],endColumn:this._selectionService.selectionEnd[0],endRow:this._selectionService.selectionEnd[1]}},F.prototype.clearSelection=function(){var O;(O=this._selectionService)===null||O===void 0||O.clearSelection()},F.prototype.selectAll=function(){var O;(O=this._selectionService)===null||O===void 0||O.selectAll()},F.prototype.selectLines=function(O,D){var H;(H=this._selectionService)===null||H===void 0||H.selectLines(O,D)},F.prototype._keyDown=function(O){if(this._keyDownHandled=!1,this._keyDownSeen=!0,this._customKeyEventHandler&&this._customKeyEventHandler(O)===!1)return!1;var D=this.browser.isMac&&this.options.macOptionIsMeta&&O.altKey;if(!D&&!this._compositionHelper.keydown(O))return this.buffer.ybase!==this.buffer.ydisp&&this._bufferService.scrollToBottom(),!1;D||O.key!=="Dead"&&O.key!=="AltGraph"||(this._unprocessedDeadKey=!0);var H=(0,b.evaluateKeyboardEvent)(O,this.coreService.decPrivateModes.applicationCursorKeys,this.browser.isMac,this.options.macOptionIsMeta);if(this.updateCursorStyle(O),H.type===3||H.type===2){var G=this.rows-1;return this.scrollLines(H.type===2?-G:G),this.cancel(O,!0)}return H.type===1&&this.selectAll(),!!this._isThirdLevelShift(this.browser,O)||(H.cancel&&this.cancel(O,!0),!H.key||!!(O.key&&!O.ctrlKey&&!O.altKey&&!O.metaKey&&O.key.length===1&&O.key.charCodeAt(0)>=65&&O.key.charCodeAt(0)<=90)||(this._unprocessedDeadKey?(this._unprocessedDeadKey=!1,!0):(H.key!==p.C0.ETX&&H.key!==p.C0.CR||(this.textarea.value=""),this._onKey.fire({key:H.key,domEvent:O}),this._showCursor(),this.coreService.triggerDataEvent(H.key,!0),this.optionsService.rawOptions.screenReaderMode?void(this._keyDownHandled=!0):this.cancel(O,!0))))},F.prototype._isThirdLevelShift=function(O,D){var H=O.isMac&&!this.options.macOptionIsMeta&&D.altKey&&!D.ctrlKey&&!D.metaKey||O.isWindows&&D.altKey&&D.ctrlKey&&!D.metaKey||O.isWindows&&D.getModifierState("AltGraph");return D.type==="keypress"?H:H&&(!D.keyCode||D.keyCode>47)},F.prototype._keyUp=function(O){this._keyDownSeen=!1,this._customKeyEventHandler&&this._customKeyEventHandler(O)===!1||(function(D){return D.keyCode===16||D.keyCode===17||D.keyCode===18}(O)||this.focus(),this.updateCursorStyle(O),this._keyPressHandled=!1)},F.prototype._keyPress=function(O){var D;if(this._keyPressHandled=!1,this._keyDownHandled||this._customKeyEventHandler&&this._customKeyEventHandler(O)===!1)return!1;if(this.cancel(O),O.charCode)D=O.charCode;else if(O.which===null||O.which===void 0)D=O.keyCode;else{if(O.which===0||O.charCode===0)return!1;D=O.which}return!(!D||(O.altKey||O.ctrlKey||O.metaKey)&&!this._isThirdLevelShift(this.browser,O)||(D=String.fromCharCode(D),this._onKey.fire({key:D,domEvent:O}),this._showCursor(),this.coreService.triggerDataEvent(D,!0),this._keyPressHandled=!0,this._unprocessedDeadKey=!1,0))},F.prototype._inputEvent=function(O){if(O.data&&O.inputType==="insertText"&&(!O.composed||!this._keyDownSeen)&&!this.optionsService.rawOptions.screenReaderMode){if(this._keyPressHandled)return!1;this._unprocessedDeadKey=!1;var D=O.data;return this.coreService.triggerDataEvent(D,!0),this.cancel(O),!0}return!1},F.prototype.bell=function(){var O;this._soundBell()&&((O=this._soundService)===null||O===void 0||O.playBellSound()),this._onBell.fire()},F.prototype.resize=function(O,D){O!==this.cols||D!==this.rows?X.prototype.resize.call(this,O,D):this._charSizeService&&!this._charSizeService.hasValidSize&&this._charSizeService.measure()},F.prototype._afterResize=function(O,D){var H,G;(H=this._charSizeService)===null||H===void 0||H.measure(),(G=this.viewport)===null||G===void 0||G.syncScrollArea(!0)},F.prototype.clear=function(){if(this.buffer.ybase!==0||this.buffer.y!==0){this.buffer.clearAllMarkers(),this.buffer.lines.set(0,this.buffer.lines.get(this.buffer.ybase+this.buffer.y)),this.buffer.lines.length=1,this.buffer.ydisp=0,this.buffer.ybase=0,this.buffer.y=0;for(var O=1;O<this.rows;O++)this.buffer.lines.push(this.buffer.getBlankLine(R.DEFAULT_ATTR_DATA));this.refresh(0,this.rows-1),this._onScroll.fire({position:this.buffer.ydisp,source:0})}},F.prototype.reset=function(){var O,D;this.options.rows=this.rows,this.options.cols=this.cols;var H=this._customKeyEventHandler;this._setup(),X.prototype.reset.call(this),(O=this._selectionService)===null||O===void 0||O.reset(),this._decorationService.reset(),this._customKeyEventHandler=H,this.refresh(0,this.rows-1),(D=this.viewport)===null||D===void 0||D.syncScrollArea()},F.prototype.clearTextureAtlas=function(){var O;(O=this._renderService)===null||O===void 0||O.clearTextureAtlas()},F.prototype._reportFocus=function(){var O;!((O=this.element)===null||O===void 0)&&O.classList.contains("focus")?this.coreService.triggerDataEvent(p.C0.ESC+"[I"):this.coreService.triggerDataEvent(p.C0.ESC+"[O")},F.prototype._reportWindowsOptions=function(O){if(this._renderService)switch(O){case h.WindowsOptionsReportType.GET_WIN_SIZE_PIXELS:var D=this._renderService.dimensions.scaledCanvasWidth.toFixed(0),H=this._renderService.dimensions.scaledCanvasHeight.toFixed(0);this.coreService.triggerDataEvent(p.C0.ESC+"[4;"+H+";"+D+"t");break;case h.WindowsOptionsReportType.GET_CELL_SIZE_PIXELS:var G=this._renderService.dimensions.scaledCellWidth.toFixed(0),V=this._renderService.dimensions.scaledCellHeight.toFixed(0);this.coreService.triggerDataEvent(p.C0.ESC+"[6;"+V+";"+G+"t")}},F.prototype.cancel=function(O,D){if(this.options.cancelEvents||D)return O.preventDefault(),O.stopPropagation(),!1},F.prototype._visualBell=function(){return!1},F.prototype._soundBell=function(){return this.options.bellStyle==="sound"},F}(q.CoreTerminal);c.Terminal=Q},9924:(W,c)=>{Object.defineProperty(c,"__esModule",{value:!0}),c.TimeBasedDebouncer=void 0;var w=function(){function _(u,f){f===void 0&&(f=1e3),this._renderCallback=u,this._debounceThresholdMS=f,this._lastRefreshMs=0,this._additionalRefreshRequested=!1}return _.prototype.dispose=function(){this._refreshTimeoutID&&clearTimeout(this._refreshTimeoutID)},_.prototype.refresh=function(u,f,d){var m=this;this._rowCount=d,u=u!==void 0?u:0,f=f!==void 0?f:this._rowCount-1,this._rowStart=this._rowStart!==void 0?Math.min(this._rowStart,u):u,this._rowEnd=this._rowEnd!==void 0?Math.max(this._rowEnd,f):f;var v=Date.now();if(v-this._lastRefreshMs>=this._debounceThresholdMS)this._lastRefreshMs=v,this._innerRefresh();else if(!this._additionalRefreshRequested){var o=v-this._lastRefreshMs,s=this._debounceThresholdMS-o;this._additionalRefreshRequested=!0,this._refreshTimeoutID=window.setTimeout(function(){m._lastRefreshMs=Date.now(),m._innerRefresh(),m._additionalRefreshRequested=!1,m._refreshTimeoutID=void 0},s)}},_.prototype._innerRefresh=function(){if(this._rowStart!==void 0&&this._rowEnd!==void 0&&this._rowCount!==void 0){var u=Math.max(this._rowStart,0),f=Math.min(this._rowEnd,this._rowCount-1);this._rowStart=void 0,this._rowEnd=void 0,this._renderCallback(u,f)}},_}();c.TimeBasedDebouncer=w},1680:function(W,c,w){var _,u=this&&this.__extends||(_=function(h,i){return _=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},_(h,i)},function(h,i){if(typeof i!="function"&&i!==null)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function e(){this.constructor=h}_(h,i),h.prototype=i===null?Object.create(i):(e.prototype=i.prototype,new e)}),f=this&&this.__decorate||function(h,i,e,t){var r,n=arguments.length,l=n<3?i:t===null?t=Object.getOwnPropertyDescriptor(i,e):t;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")l=Reflect.decorate(h,i,e,t);else for(var a=h.length-1;a>=0;a--)(r=h[a])&&(l=(n<3?r(l):n>3?r(i,e,l):r(i,e))||l);return n>3&&l&&Object.defineProperty(i,e,l),l},d=this&&this.__param||function(h,i){return function(e,t){i(e,t,h)}};Object.defineProperty(c,"__esModule",{value:!0}),c.Viewport=void 0;var m=w(844),v=w(3656),o=w(4725),s=w(2585),p=function(h){function i(e,t,r,n,l,a,y,S){var g=h.call(this)||this;return g._scrollLines=e,g._viewportElement=t,g._scrollArea=r,g._element=n,g._bufferService=l,g._optionsService=a,g._charSizeService=y,g._renderService=S,g.scrollBarWidth=0,g._currentRowHeight=0,g._currentScaledCellHeight=0,g._lastRecordedBufferLength=0,g._lastRecordedViewportHeight=0,g._lastRecordedBufferHeight=0,g._lastTouchY=0,g._lastScrollTop=0,g._wheelPartialScroll=0,g._refreshAnimationFrame=null,g._ignoreNextScrollEvent=!1,g.scrollBarWidth=g._viewportElement.offsetWidth-g._scrollArea.offsetWidth||15,g.register((0,v.addDisposableDomListener)(g._viewportElement,"scroll",g._onScroll.bind(g))),g._activeBuffer=g._bufferService.buffer,g.register(g._bufferService.buffers.onBufferActivate(function(b){return g._activeBuffer=b.activeBuffer})),g._renderDimensions=g._renderService.dimensions,g.register(g._renderService.onDimensionsChange(function(b){return g._renderDimensions=b})),setTimeout(function(){return g.syncScrollArea()},0),g}return u(i,h),i.prototype.onThemeChange=function(e){this._viewportElement.style.backgroundColor=e.background.css},i.prototype._refresh=function(e){var t=this;if(e)return this._innerRefresh(),void(this._refreshAnimationFrame!==null&&cancelAnimationFrame(this._refreshAnimationFrame));this._refreshAnimationFrame===null&&(this._refreshAnimationFrame=requestAnimationFrame(function(){return t._innerRefresh()}))},i.prototype._innerRefresh=function(){if(this._charSizeService.height>0){this._currentRowHeight=this._renderService.dimensions.scaledCellHeight/window.devicePixelRatio,this._currentScaledCellHeight=this._renderService.dimensions.scaledCellHeight,this._lastRecordedViewportHeight=this._viewportElement.offsetHeight;var e=Math.round(this._currentRowHeight*this._lastRecordedBufferLength)+(this._lastRecordedViewportHeight-this._renderService.dimensions.canvasHeight);this._lastRecordedBufferHeight!==e&&(this._lastRecordedBufferHeight=e,this._scrollArea.style.height=this._lastRecordedBufferHeight+"px")}var t=this._bufferService.buffer.ydisp*this._currentRowHeight;this._viewportElement.scrollTop!==t&&(this._ignoreNextScrollEvent=!0,this._viewportElement.scrollTop=t),this._refreshAnimationFrame=null},i.prototype.syncScrollArea=function(e){if(e===void 0&&(e=!1),this._lastRecordedBufferLength!==this._bufferService.buffer.lines.length)return this._lastRecordedBufferLength=this._bufferService.buffer.lines.length,void this._refresh(e);this._lastRecordedViewportHeight===this._renderService.dimensions.canvasHeight&&this._lastScrollTop===this._activeBuffer.ydisp*this._currentRowHeight&&this._renderDimensions.scaledCellHeight===this._currentScaledCellHeight||this._refresh(e)},i.prototype._onScroll=function(e){if(this._lastScrollTop=this._viewportElement.scrollTop,this._viewportElement.offsetParent){if(this._ignoreNextScrollEvent)return this._ignoreNextScrollEvent=!1,void this._scrollLines(0);var t=Math.round(this._lastScrollTop/this._currentRowHeight)-this._bufferService.buffer.ydisp;this._scrollLines(t)}},i.prototype._bubbleScroll=function(e,t){var r=this._viewportElement.scrollTop+this._lastRecordedViewportHeight;return!(t<0&&this._viewportElement.scrollTop!==0||t>0&&r<this._lastRecordedBufferHeight)||(e.cancelable&&e.preventDefault(),!1)},i.prototype.onWheel=function(e){var t=this._getPixelsScrolled(e);return t!==0&&(this._viewportElement.scrollTop+=t,this._bubbleScroll(e,t))},i.prototype._getPixelsScrolled=function(e){if(e.deltaY===0||e.shiftKey)return 0;var t=this._applyScrollModifier(e.deltaY,e);return e.deltaMode===WheelEvent.DOM_DELTA_LINE?t*=this._currentRowHeight:e.deltaMode===WheelEvent.DOM_DELTA_PAGE&&(t*=this._currentRowHeight*this._bufferService.rows),t},i.prototype.getLinesScrolled=function(e){if(e.deltaY===0||e.shiftKey)return 0;var t=this._applyScrollModifier(e.deltaY,e);return e.deltaMode===WheelEvent.DOM_DELTA_PIXEL?(t/=this._currentRowHeight+0,this._wheelPartialScroll+=t,t=Math.floor(Math.abs(this._wheelPartialScroll))*(this._wheelPartialScroll>0?1:-1),this._wheelPartialScroll%=1):e.deltaMode===WheelEvent.DOM_DELTA_PAGE&&(t*=this._bufferService.rows),t},i.prototype._applyScrollModifier=function(e,t){var r=this._optionsService.rawOptions.fastScrollModifier;return r==="alt"&&t.altKey||r==="ctrl"&&t.ctrlKey||r==="shift"&&t.shiftKey?e*this._optionsService.rawOptions.fastScrollSensitivity*this._optionsService.rawOptions.scrollSensitivity:e*this._optionsService.rawOptions.scrollSensitivity},i.prototype.onTouchStart=function(e){this._lastTouchY=e.touches[0].pageY},i.prototype.onTouchMove=function(e){var t=this._lastTouchY-e.touches[0].pageY;return this._lastTouchY=e.touches[0].pageY,t!==0&&(this._viewportElement.scrollTop+=t,this._bubbleScroll(e,t))},f([d(4,s.IBufferService),d(5,s.IOptionsService),d(6,o.ICharSizeService),d(7,o.IRenderService)],i)}(m.Disposable);c.Viewport=p},3107:function(W,c,w){var _,u=this&&this.__extends||(_=function(i,e){return _=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,r){t.__proto__=r}||function(t,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])},_(i,e)},function(i,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function t(){this.constructor=i}_(i,e),i.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}),f=this&&this.__decorate||function(i,e,t,r){var n,l=arguments.length,a=l<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(i,e,t,r);else for(var y=i.length-1;y>=0;y--)(n=i[y])&&(a=(l<3?n(a):l>3?n(e,t,a):n(e,t))||a);return l>3&&a&&Object.defineProperty(e,t,a),a},d=this&&this.__param||function(i,e){return function(t,r){e(t,r,i)}},m=this&&this.__values||function(i){var e=typeof Symbol=="function"&&Symbol.iterator,t=e&&i[e],r=0;if(t)return t.call(i);if(i&&typeof i.length=="number")return{next:function(){return i&&r>=i.length&&(i=void 0),{value:i&&i[r++],done:!i}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(c,"__esModule",{value:!0}),c.BufferDecorationRenderer=void 0;var v=w(3656),o=w(4725),s=w(844),p=w(2585),h=function(i){function e(t,r,n,l){var a=i.call(this)||this;return a._screenElement=t,a._bufferService=r,a._decorationService=n,a._renderService=l,a._decorationElements=new Map,a._altBufferIsActive=!1,a._dimensionsChanged=!1,a._container=document.createElement("div"),a._container.classList.add("xterm-decoration-container"),a._screenElement.appendChild(a._container),a.register(a._renderService.onRenderedViewportChange(function(){return a._queueRefresh()})),a.register(a._renderService.onDimensionsChange(function(){a._dimensionsChanged=!0,a._queueRefresh()})),a.register((0,v.addDisposableDomListener)(window,"resize",function(){return a._queueRefresh()})),a.register(a._bufferService.buffers.onBufferActivate(function(){a._altBufferIsActive=a._bufferService.buffer===a._bufferService.buffers.alt})),a.register(a._decorationService.onDecorationRegistered(function(){return a._queueRefresh()})),a.register(a._decorationService.onDecorationRemoved(function(y){return a._removeDecoration(y)})),a}return u(e,i),e.prototype.dispose=function(){this._container.remove(),this._decorationElements.clear(),i.prototype.dispose.call(this)},e.prototype._queueRefresh=function(){var t=this;this._animationFrame===void 0&&(this._animationFrame=this._renderService.addRefreshCallback(function(){t.refreshDecorations(),t._animationFrame=void 0}))},e.prototype.refreshDecorations=function(){var t,r;try{for(var n=m(this._decorationService.decorations),l=n.next();!l.done;l=n.next()){var a=l.value;this._renderDecoration(a)}}catch(y){t={error:y}}finally{try{l&&!l.done&&(r=n.return)&&r.call(n)}finally{if(t)throw t.error}}this._dimensionsChanged=!1},e.prototype._renderDecoration=function(t){this._refreshStyle(t),this._dimensionsChanged&&this._refreshXPosition(t)},e.prototype._createElement=function(t){var r,n=document.createElement("div");n.classList.add("xterm-decoration"),n.style.width=Math.round((t.options.width||1)*this._renderService.dimensions.actualCellWidth)+"px",n.style.height=(t.options.height||1)*this._renderService.dimensions.actualCellHeight+"px",n.style.top=(t.marker.line-this._bufferService.buffers.active.ydisp)*this._renderService.dimensions.actualCellHeight+"px",n.style.lineHeight=this._renderService.dimensions.actualCellHeight+"px";var l=(r=t.options.x)!==null&&r!==void 0?r:0;return l&&l>this._bufferService.cols&&(n.style.display="none"),this._refreshXPosition(t,n),n},e.prototype._refreshStyle=function(t){var r=this,n=t.marker.line-this._bufferService.buffers.active.ydisp;if(n<0||n>=this._bufferService.rows)t.element&&(t.element.style.display="none",t.onRenderEmitter.fire(t.element));else{var l=this._decorationElements.get(t);l||(t.onDispose(function(){return r._removeDecoration(t)}),l=this._createElement(t),t.element=l,this._decorationElements.set(t,l),this._container.appendChild(l)),l.style.top=n*this._renderService.dimensions.actualCellHeight+"px",l.style.display=this._altBufferIsActive?"none":"block",t.onRenderEmitter.fire(l)}},e.prototype._refreshXPosition=function(t,r){var n;if(r===void 0&&(r=t.element),r){var l=(n=t.options.x)!==null&&n!==void 0?n:0;(t.options.anchor||"left")==="right"?r.style.right=l?l*this._renderService.dimensions.actualCellWidth+"px":"":r.style.left=l?l*this._renderService.dimensions.actualCellWidth+"px":""}},e.prototype._removeDecoration=function(t){var r;(r=this._decorationElements.get(t))===null||r===void 0||r.remove(),this._decorationElements.delete(t)},f([d(1,p.IBufferService),d(2,p.IDecorationService),d(3,o.IRenderService)],e)}(s.Disposable);c.BufferDecorationRenderer=h},5871:function(W,c){var w=this&&this.__values||function(u){var f=typeof Symbol=="function"&&Symbol.iterator,d=f&&u[f],m=0;if(d)return d.call(u);if(u&&typeof u.length=="number")return{next:function(){return u&&m>=u.length&&(u=void 0),{value:u&&u[m++],done:!u}}};throw new TypeError(f?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(c,"__esModule",{value:!0}),c.ColorZoneStore=void 0;var _=function(){function u(){this._zones=[],this._zonePool=[],this._zonePoolIndex=0,this._linePadding={full:0,left:0,center:0,right:0}}return Object.defineProperty(u.prototype,"zones",{get:function(){return this._zonePool.length=Math.min(this._zonePool.length,this._zones.length),this._zones},enumerable:!1,configurable:!0}),u.prototype.clear=function(){this._zones.length=0,this._zonePoolIndex=0},u.prototype.addDecoration=function(f){var d,m;if(f.options.overviewRulerOptions){try{for(var v=w(this._zones),o=v.next();!o.done;o=v.next()){var s=o.value;if(s.color===f.options.overviewRulerOptions.color&&s.position===f.options.overviewRulerOptions.position){if(this._lineIntersectsZone(s,f.marker.line))return;if(this._lineAdjacentToZone(s,f.marker.line,f.options.overviewRulerOptions.position))return void this._addLineToZone(s,f.marker.line)}}}catch(p){d={error:p}}finally{try{o&&!o.done&&(m=v.return)&&m.call(v)}finally{if(d)throw d.error}}if(this._zonePoolIndex<this._zonePool.length)return this._zonePool[this._zonePoolIndex].color=f.options.overviewRulerOptions.color,this._zonePool[this._zonePoolIndex].position=f.options.overviewRulerOptions.position,this._zonePool[this._zonePoolIndex].startBufferLine=f.marker.line,this._zonePool[this._zonePoolIndex].endBufferLine=f.marker.line,void this._zones.push(this._zonePool[this._zonePoolIndex++]);this._zones.push({color:f.options.overviewRulerOptions.color,position:f.options.overviewRulerOptions.position,startBufferLine:f.marker.line,endBufferLine:f.marker.line}),this._zonePool.push(this._zones[this._zones.length-1]),this._zonePoolIndex++}},u.prototype.setPadding=function(f){this._linePadding=f},u.prototype._lineIntersectsZone=function(f,d){return d>=f.startBufferLine&&d<=f.endBufferLine},u.prototype._lineAdjacentToZone=function(f,d,m){return d>=f.startBufferLine-this._linePadding[m||"full"]&&d<=f.endBufferLine+this._linePadding[m||"full"]},u.prototype._addLineToZone=function(f,d){f.startBufferLine=Math.min(f.startBufferLine,d),f.endBufferLine=Math.max(f.endBufferLine,d)},u}();c.ColorZoneStore=_},5744:function(W,c,w){var _,u=this&&this.__extends||(_=function(n,l){return _=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,y){a.__proto__=y}||function(a,y){for(var S in y)Object.prototype.hasOwnProperty.call(y,S)&&(a[S]=y[S])},_(n,l)},function(n,l){if(typeof l!="function"&&l!==null)throw new TypeError("Class extends value "+String(l)+" is not a constructor or null");function a(){this.constructor=n}_(n,l),n.prototype=l===null?Object.create(l):(a.prototype=l.prototype,new a)}),f=this&&this.__decorate||function(n,l,a,y){var S,g=arguments.length,b=g<3?l:y===null?y=Object.getOwnPropertyDescriptor(l,a):y;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")b=Reflect.decorate(n,l,a,y);else for(var C=n.length-1;C>=0;C--)(S=n[C])&&(b=(g<3?S(b):g>3?S(l,a,b):S(l,a))||b);return g>3&&b&&Object.defineProperty(l,a,b),b},d=this&&this.__param||function(n,l){return function(a,y){l(a,y,n)}},m=this&&this.__values||function(n){var l=typeof Symbol=="function"&&Symbol.iterator,a=l&&n[l],y=0;if(a)return a.call(n);if(n&&typeof n.length=="number")return{next:function(){return n&&y>=n.length&&(n=void 0),{value:n&&n[y++],done:!n}}};throw new TypeError(l?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(c,"__esModule",{value:!0}),c.OverviewRulerRenderer=void 0;var v=w(5871),o=w(3656),s=w(4725),p=w(844),h=w(2585),i={full:0,left:0,center:0,right:0},e={full:0,left:0,center:0,right:0},t={full:0,left:0,center:0,right:0},r=function(n){function l(a,y,S,g,b,C){var R,L=n.call(this)||this;L._viewportElement=a,L._screenElement=y,L._bufferService=S,L._decorationService=g,L._renderService=b,L._optionsService=C,L._colorZoneStore=new v.ColorZoneStore,L._shouldUpdateDimensions=!0,L._shouldUpdateAnchor=!0,L._lastKnownBufferLength=0,L._canvas=document.createElement("canvas"),L._canvas.classList.add("xterm-decoration-overview-ruler"),L._refreshCanvasDimensions(),(R=L._viewportElement.parentElement)===null||R===void 0||R.insertBefore(L._canvas,L._viewportElement);var k=L._canvas.getContext("2d");if(!k)throw new Error("Ctx cannot be null");return L._ctx=k,L._registerDecorationListeners(),L._registerBufferChangeListeners(),L._registerDimensionChangeListeners(),L}return u(l,n),Object.defineProperty(l.prototype,"_width",{get:function(){return this._optionsService.options.overviewRulerWidth||0},enumerable:!1,configurable:!0}),l.prototype._registerDecorationListeners=function(){var a=this;this.register(this._decorationService.onDecorationRegistered(function(){return a._queueRefresh(void 0,!0)})),this.register(this._decorationService.onDecorationRemoved(function(){return a._queueRefresh(void 0,!0)}))},l.prototype._registerBufferChangeListeners=function(){var a=this;this.register(this._renderService.onRenderedViewportChange(function(){return a._queueRefresh()})),this.register(this._bufferService.buffers.onBufferActivate(function(){a._canvas.style.display=a._bufferService.buffer===a._bufferService.buffers.alt?"none":"block"})),this.register(this._bufferService.onScroll(function(){a._lastKnownBufferLength!==a._bufferService.buffers.normal.lines.length&&(a._refreshDrawHeightConstants(),a._refreshColorZonePadding())}))},l.prototype._registerDimensionChangeListeners=function(){var a=this;this.register(this._renderService.onRender(function(){a._containerHeight&&a._containerHeight===a._screenElement.clientHeight||(a._queueRefresh(!0),a._containerHeight=a._screenElement.clientHeight)})),this.register(this._optionsService.onOptionChange(function(y){y==="overviewRulerWidth"&&a._queueRefresh(!0)})),this.register((0,o.addDisposableDomListener)(window,"resize",function(){a._queueRefresh(!0)})),this._queueRefresh(!0)},l.prototype.dispose=function(){var a;(a=this._canvas)===null||a===void 0||a.remove(),n.prototype.dispose.call(this)},l.prototype._refreshDrawConstants=function(){var a=Math.floor(this._canvas.width/3),y=Math.ceil(this._canvas.width/3);e.full=this._canvas.width,e.left=a,e.center=y,e.right=a,this._refreshDrawHeightConstants(),t.full=0,t.left=0,t.center=e.left,t.right=e.left+e.center},l.prototype._refreshDrawHeightConstants=function(){i.full=Math.round(2*window.devicePixelRatio);var a=this._canvas.height/this._bufferService.buffer.lines.length,y=Math.round(Math.max(Math.min(a,12),6)*window.devicePixelRatio);i.left=y,i.center=y,i.right=y},l.prototype._refreshColorZonePadding=function(){this._colorZoneStore.setPadding({full:Math.floor(this._bufferService.buffers.active.lines.length/(this._canvas.height-1)*i.full),left:Math.floor(this._bufferService.buffers.active.lines.length/(this._canvas.height-1)*i.left),center:Math.floor(this._bufferService.buffers.active.lines.length/(this._canvas.height-1)*i.center),right:Math.floor(this._bufferService.buffers.active.lines.length/(this._canvas.height-1)*i.right)}),this._lastKnownBufferLength=this._bufferService.buffers.normal.lines.length},l.prototype._refreshCanvasDimensions=function(){this._canvas.style.width=this._width+"px",this._canvas.width=Math.round(this._width*window.devicePixelRatio),this._canvas.style.height=this._screenElement.clientHeight+"px",this._canvas.height=Math.round(this._screenElement.clientHeight*window.devicePixelRatio),this._refreshDrawConstants(),this._refreshColorZonePadding()},l.prototype._refreshDecorations=function(){var a,y,S,g,b,C;this._shouldUpdateDimensions&&this._refreshCanvasDimensions(),this._ctx.clearRect(0,0,this._canvas.width,this._canvas.height),this._colorZoneStore.clear();try{for(var R=m(this._decorationService.decorations),L=R.next();!L.done;L=R.next()){var k=L.value;this._colorZoneStore.addDecoration(k)}}catch(j){a={error:j}}finally{try{L&&!L.done&&(y=R.return)&&y.call(R)}finally{if(a)throw a.error}}this._ctx.lineWidth=1;var x=this._colorZoneStore.zones;try{for(var E=m(x),A=E.next();!A.done;A=E.next())(q=A.value).position!=="full"&&this._renderColorZone(q)}catch(j){S={error:j}}finally{try{A&&!A.done&&(g=E.return)&&g.call(E)}finally{if(S)throw S.error}}try{for(var T=m(x),U=T.next();!U.done;U=T.next()){var q;(q=U.value).position==="full"&&this._renderColorZone(q)}}catch(j){b={error:j}}finally{try{U&&!U.done&&(C=T.return)&&C.call(T)}finally{if(b)throw b.error}}this._shouldUpdateDimensions=!1,this._shouldUpdateAnchor=!1},l.prototype._renderColorZone=function(a){this._ctx.fillStyle=a.color,this._ctx.fillRect(t[a.position||"full"],Math.round((this._canvas.height-1)*(a.startBufferLine/this._bufferService.buffers.active.lines.length)-i[a.position||"full"]/2),e[a.position||"full"],Math.round((this._canvas.height-1)*((a.endBufferLine-a.startBufferLine)/this._bufferService.buffers.active.lines.length)+i[a.position||"full"]))},l.prototype._queueRefresh=function(a,y){var S=this;this._shouldUpdateDimensions=a||this._shouldUpdateDimensions,this._shouldUpdateAnchor=y||this._shouldUpdateAnchor,this._animationFrame===void 0&&(this._animationFrame=window.requestAnimationFrame(function(){S._refreshDecorations(),S._animationFrame=void 0}))},f([d(2,h.IBufferService),d(3,h.IDecorationService),d(4,s.IRenderService),d(5,h.IOptionsService)],l)}(p.Disposable);c.OverviewRulerRenderer=r},2950:function(W,c,w){var _=this&&this.__decorate||function(v,o,s,p){var h,i=arguments.length,e=i<3?o:p===null?p=Object.getOwnPropertyDescriptor(o,s):p;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")e=Reflect.decorate(v,o,s,p);else for(var t=v.length-1;t>=0;t--)(h=v[t])&&(e=(i<3?h(e):i>3?h(o,s,e):h(o,s))||e);return i>3&&e&&Object.defineProperty(o,s,e),e},u=this&&this.__param||function(v,o){return function(s,p){o(s,p,v)}};Object.defineProperty(c,"__esModule",{value:!0}),c.CompositionHelper=void 0;var f=w(4725),d=w(2585),m=function(){function v(o,s,p,h,i,e){this._textarea=o,this._compositionView=s,this._bufferService=p,this._optionsService=h,this._coreService=i,this._renderService=e,this._isComposing=!1,this._isSendingComposition=!1,this._compositionPosition={start:0,end:0},this._dataAlreadySent=""}return Object.defineProperty(v.prototype,"isComposing",{get:function(){return this._isComposing},enumerable:!1,configurable:!0}),v.prototype.compositionstart=function(){this._isComposing=!0,this._compositionPosition.start=this._textarea.value.length,this._compositionView.textContent="",this._dataAlreadySent="",this._compositionView.classList.add("active")},v.prototype.compositionupdate=function(o){var s=this;this._compositionView.textContent=o.data,this.updateCompositionElements(),setTimeout(function(){s._compositionPosition.end=s._textarea.value.length},0)},v.prototype.compositionend=function(){this._finalizeComposition(!0)},v.prototype.keydown=function(o){if(this._isComposing||this._isSendingComposition){if(o.keyCode===229||o.keyCode===16||o.keyCode===17||o.keyCode===18)return!1;this._finalizeComposition(!1)}return o.keyCode!==229||(this._handleAnyTextareaChanges(),!1)},v.prototype._finalizeComposition=function(o){var s=this;if(this._compositionView.classList.remove("active"),this._isComposing=!1,o){var p={start:this._compositionPosition.start,end:this._compositionPosition.end};this._isSendingComposition=!0,setTimeout(function(){if(s._isSendingComposition){s._isSendingComposition=!1;var i;p.start+=s._dataAlreadySent.length,(i=s._isComposing?s._textarea.value.substring(p.start,p.end):s._textarea.value.substring(p.start)).length>0&&s._coreService.triggerDataEvent(i,!0)}},0)}else{this._isSendingComposition=!1;var h=this._textarea.value.substring(this._compositionPosition.start,this._compositionPosition.end);this._coreService.triggerDataEvent(h,!0)}},v.prototype._handleAnyTextareaChanges=function(){var o=this,s=this._textarea.value;setTimeout(function(){if(!o._isComposing){var p=o._textarea.value.replace(s,"");p.length>0&&(o._dataAlreadySent=p,o._coreService.triggerDataEvent(p,!0))}},0)},v.prototype.updateCompositionElements=function(o){var s=this;if(this._isComposing){if(this._bufferService.buffer.isCursorInViewport){var p=Math.min(this._bufferService.buffer.x,this._bufferService.cols-1),h=this._renderService.dimensions.actualCellHeight,i=this._bufferService.buffer.y*this._renderService.dimensions.actualCellHeight,e=p*this._renderService.dimensions.actualCellWidth;this._compositionView.style.left=e+"px",this._compositionView.style.top=i+"px",this._compositionView.style.height=h+"px",this._compositionView.style.lineHeight=h+"px",this._compositionView.style.fontFamily=this._optionsService.rawOptions.fontFamily,this._compositionView.style.fontSize=this._optionsService.rawOptions.fontSize+"px";var t=this._compositionView.getBoundingClientRect();this._textarea.style.left=e+"px",this._textarea.style.top=i+"px",this._textarea.style.width=Math.max(t.width,1)+"px",this._textarea.style.height=Math.max(t.height,1)+"px",this._textarea.style.lineHeight=t.height+"px"}o||setTimeout(function(){return s.updateCompositionElements(!0)},0)}},_([u(2,d.IBufferService),u(3,d.IOptionsService),u(4,d.ICoreService),u(5,f.IRenderService)],v)}();c.CompositionHelper=m},9806:(W,c)=>{function w(_,u,f){var d=f.getBoundingClientRect(),m=_.getComputedStyle(f),v=parseInt(m.getPropertyValue("padding-left")),o=parseInt(m.getPropertyValue("padding-top"));return[u.clientX-d.left-v,u.clientY-d.top-o]}Object.defineProperty(c,"__esModule",{value:!0}),c.getRawByteCoords=c.getCoords=c.getCoordsRelativeToElement=void 0,c.getCoordsRelativeToElement=w,c.getCoords=function(_,u,f,d,m,v,o,s,p){if(v){var h=w(_,u,f);if(h)return h[0]=Math.ceil((h[0]+(p?o/2:0))/o),h[1]=Math.ceil(h[1]/s),h[0]=Math.min(Math.max(h[0],1),d+(p?1:0)),h[1]=Math.min(Math.max(h[1],1),m),h}},c.getRawByteCoords=function(_){if(_)return{x:_[0]+32,y:_[1]+32}}},9504:(W,c,w)=>{Object.defineProperty(c,"__esModule",{value:!0}),c.moveToCellSequence=void 0;var _=w(2584);function u(s,p,h,i){var e=s-f(h,s),t=p-f(h,p),r=Math.abs(e-t)-function(n,l,a){for(var y=0,S=n-f(a,n),g=l-f(a,l),b=0;b<Math.abs(S-g);b++){var C=d(n,l)==="A"?-1:1,R=a.buffer.lines.get(S+C*b);R?.isWrapped&&y++}return y}(s,p,h);return o(r,v(d(s,p),i))}function f(s,p){for(var h=0,i=s.buffer.lines.get(p),e=i?.isWrapped;e&&p>=0&&p<s.rows;)h++,e=(i=s.buffer.lines.get(--p))==null?void 0:i.isWrapped;return h}function d(s,p){return s>p?"A":"B"}function m(s,p,h,i,e,t){for(var r=s,n=p,l="";r!==h||n!==i;)r+=e?1:-1,e&&r>t.cols-1?(l+=t.buffer.translateBufferLineToString(n,!1,s,r),r=0,s=0,n++):!e&&r<0&&(l+=t.buffer.translateBufferLineToString(n,!1,0,s+1),s=r=t.cols-1,n--);return l+t.buffer.translateBufferLineToString(n,!1,s,r)}function v(s,p){var h=p?"O":"[";return _.C0.ESC+h+s}function o(s,p){s=Math.floor(s);for(var h="",i=0;i<s;i++)h+=p;return h}c.moveToCellSequence=function(s,p,h,i){var e,t=h.buffer.x,r=h.buffer.y;if(!h.buffer.hasScrollback)return function(l,a,y,S,g,b){return u(a,S,g,b).length===0?"":o(m(l,a,l,a-f(g,a),!1,g).length,v("D",b))}(t,r,0,p,h,i)+u(r,p,h,i)+function(l,a,y,S,g,b){var C;C=u(a,S,g,b).length>0?S-f(g,S):a;var R=S,L=function(k,x,E,A,T,U){var q;return q=u(E,A,T,U).length>0?A-f(T,A):x,k<E&&q<=A||k>=E&&q<A?"C":"D"}(l,a,y,S,g,b);return o(m(l,C,y,R,L==="C",g).length,v(L,b))}(t,r,s,p,h,i);if(r===p)return e=t>s?"D":"C",o(Math.abs(t-s),v(e,i));e=r>p?"D":"C";var n=Math.abs(r-p);return o(function(l,a){return a.cols-l}(r>p?s:t,h)+(n-1)*h.cols+1+((r>p?t:s)-1),v(e,i))}},4389:function(W,c,w){var _=this&&this.__assign||function(){return _=Object.assign||function(i){for(var e,t=1,r=arguments.length;t<r;t++)for(var n in e=arguments[t])Object.prototype.hasOwnProperty.call(e,n)&&(i[n]=e[n]);return i},_.apply(this,arguments)},u=this&&this.__values||function(i){var e=typeof Symbol=="function"&&Symbol.iterator,t=e&&i[e],r=0;if(t)return t.call(i);if(i&&typeof i.length=="number")return{next:function(){return i&&r>=i.length&&(i=void 0),{value:i&&i[r++],done:!i}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(c,"__esModule",{value:!0}),c.Terminal=void 0;var f=w(3236),d=w(9042),m=w(7975),v=w(7090),o=w(5741),s=w(8285),p=["cols","rows"],h=function(){function i(e){var t=this;this._core=new f.Terminal(e),this._addonManager=new o.AddonManager,this._publicOptions=_({},this._core.options);var r=function(y){return t._core.options[y]},n=function(y,S){t._checkReadonlyOptions(y),t._core.options[y]=S};for(var l in this._core.options){var a={get:r.bind(this,l),set:n.bind(this,l)};Object.defineProperty(this._publicOptions,l,a)}}return i.prototype._checkReadonlyOptions=function(e){if(p.includes(e))throw new Error('Option "'+e+'" can only be set in the constructor')},i.prototype._checkProposedApi=function(){if(!this._core.optionsService.rawOptions.allowProposedApi)throw new Error("You must set the allowProposedApi option to true to use proposed API")},Object.defineProperty(i.prototype,"onBell",{get:function(){return this._core.onBell},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"onBinary",{get:function(){return this._core.onBinary},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"onCursorMove",{get:function(){return this._core.onCursorMove},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"onData",{get:function(){return this._core.onData},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"onKey",{get:function(){return this._core.onKey},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"onLineFeed",{get:function(){return this._core.onLineFeed},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"onRender",{get:function(){return this._core.onRender},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"onResize",{get:function(){return this._core.onResize},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"onScroll",{get:function(){return this._core.onScroll},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"onSelectionChange",{get:function(){return this._core.onSelectionChange},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"onTitleChange",{get:function(){return this._core.onTitleChange},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"onWriteParsed",{get:function(){return this._core.onWriteParsed},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"element",{get:function(){return this._core.element},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"parser",{get:function(){return this._checkProposedApi(),this._parser||(this._parser=new m.ParserApi(this._core)),this._parser},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"unicode",{get:function(){return this._checkProposedApi(),new v.UnicodeApi(this._core)},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"textarea",{get:function(){return this._core.textarea},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"rows",{get:function(){return this._core.rows},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"cols",{get:function(){return this._core.cols},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"buffer",{get:function(){return this._checkProposedApi(),this._buffer||(this._buffer=new s.BufferNamespaceApi(this._core)),this._buffer},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"markers",{get:function(){return this._checkProposedApi(),this._core.markers},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"modes",{get:function(){var e=this._core.coreService.decPrivateModes,t="none";switch(this._core.coreMouseService.activeProtocol){case"X10":t="x10";break;case"VT200":t="vt200";break;case"DRAG":t="drag";break;case"ANY":t="any"}return{applicationCursorKeysMode:e.applicationCursorKeys,applicationKeypadMode:e.applicationKeypad,bracketedPasteMode:e.bracketedPasteMode,insertMode:this._core.coreService.modes.insertMode,mouseTrackingMode:t,originMode:e.origin,reverseWraparoundMode:e.reverseWraparound,sendFocusMode:e.sendFocus,wraparoundMode:e.wraparound}},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"options",{get:function(){return this._publicOptions},set:function(e){for(var t in e)this._publicOptions[t]=e[t]},enumerable:!1,configurable:!0}),i.prototype.blur=function(){this._core.blur()},i.prototype.focus=function(){this._core.focus()},i.prototype.resize=function(e,t){this._verifyIntegers(e,t),this._core.resize(e,t)},i.prototype.open=function(e){this._core.open(e)},i.prototype.attachCustomKeyEventHandler=function(e){this._core.attachCustomKeyEventHandler(e)},i.prototype.registerLinkMatcher=function(e,t,r){return this._checkProposedApi(),this._core.registerLinkMatcher(e,t,r)},i.prototype.deregisterLinkMatcher=function(e){this._checkProposedApi(),this._core.deregisterLinkMatcher(e)},i.prototype.registerLinkProvider=function(e){return this._checkProposedApi(),this._core.registerLinkProvider(e)},i.prototype.registerCharacterJoiner=function(e){return this._checkProposedApi(),this._core.registerCharacterJoiner(e)},i.prototype.deregisterCharacterJoiner=function(e){this._checkProposedApi(),this._core.deregisterCharacterJoiner(e)},i.prototype.registerMarker=function(e){return e===void 0&&(e=0),this._checkProposedApi(),this._verifyIntegers(e),this._core.addMarker(e)},i.prototype.registerDecoration=function(e){var t,r,n;return this._checkProposedApi(),this._verifyPositiveIntegers((t=e.x)!==null&&t!==void 0?t:0,(r=e.width)!==null&&r!==void 0?r:0,(n=e.height)!==null&&n!==void 0?n:0),this._core.registerDecoration(e)},i.prototype.addMarker=function(e){return this.registerMarker(e)},i.prototype.hasSelection=function(){return this._core.hasSelection()},i.prototype.select=function(e,t,r){this._verifyIntegers(e,t,r),this._core.select(e,t,r)},i.prototype.getSelection=function(){return this._core.getSelection()},i.prototype.getSelectionPosition=function(){return this._core.getSelectionPosition()},i.prototype.clearSelection=function(){this._core.clearSelection()},i.prototype.selectAll=function(){this._core.selectAll()},i.prototype.selectLines=function(e,t){this._verifyIntegers(e,t),this._core.selectLines(e,t)},i.prototype.dispose=function(){this._addonManager.dispose(),this._core.dispose()},i.prototype.scrollLines=function(e){this._verifyIntegers(e),this._core.scrollLines(e)},i.prototype.scrollPages=function(e){this._verifyIntegers(e),this._core.scrollPages(e)},i.prototype.scrollToTop=function(){this._core.scrollToTop()},i.prototype.scrollToBottom=function(){this._core.scrollToBottom()},i.prototype.scrollToLine=function(e){this._verifyIntegers(e),this._core.scrollToLine(e)},i.prototype.clear=function(){this._core.clear()},i.prototype.write=function(e,t){this._core.write(e,t)},i.prototype.writeUtf8=function(e,t){this._core.write(e,t)},i.prototype.writeln=function(e,t){this._core.write(e),this._core.write(`\r
4
4
  `,t)},i.prototype.paste=function(e){this._core.paste(e)},i.prototype.getOption=function(e){return this._core.optionsService.getOption(e)},i.prototype.setOption=function(e,t){this._checkReadonlyOptions(e),this._core.optionsService.setOption(e,t)},i.prototype.refresh=function(e,t){this._verifyIntegers(e,t),this._core.refresh(e,t)},i.prototype.reset=function(){this._core.reset()},i.prototype.clearTextureAtlas=function(){this._core.clearTextureAtlas()},i.prototype.loadAddon=function(e){return this._addonManager.loadAddon(this,e)},Object.defineProperty(i,"strings",{get:function(){return d},enumerable:!1,configurable:!0}),i.prototype._verifyIntegers=function(){for(var e,t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];try{for(var l=u(r),a=l.next();!a.done;a=l.next()){var y=a.value;if(y===1/0||isNaN(y)||y%1!=0)throw new Error("This API only accepts integers")}}catch(S){e={error:S}}finally{try{a&&!a.done&&(t=l.return)&&t.call(l)}finally{if(e)throw e.error}}},i.prototype._verifyPositiveIntegers=function(){for(var e,t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];try{for(var l=u(r),a=l.next();!a.done;a=l.next()){var y=a.value;if(y&&(y===1/0||isNaN(y)||y%1!=0||y<0))throw new Error("This API only accepts positive integers")}}catch(S){e={error:S}}finally{try{a&&!a.done&&(t=l.return)&&t.call(l)}finally{if(e)throw e.error}}},i}();c.Terminal=h},1546:function(W,c,w){var _=this&&this.__values||function(i){var e=typeof Symbol=="function"&&Symbol.iterator,t=e&&i[e],r=0;if(t)return t.call(i);if(i&&typeof i.length=="number")return{next:function(){return i&&r>=i.length&&(i=void 0),{value:i&&i[r++],done:!i}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(c,"__esModule",{value:!0}),c.BaseRenderLayer=void 0;var u=w(643),f=w(8803),d=w(1420),m=w(3734),v=w(1752),o=w(8055),s=w(9631),p=w(8978),h=function(){function i(e,t,r,n,l,a,y,S,g){this._container=e,this._alpha=n,this._colors=l,this._rendererId=a,this._bufferService=y,this._optionsService=S,this._decorationService=g,this._scaledCharWidth=0,this._scaledCharHeight=0,this._scaledCellWidth=0,this._scaledCellHeight=0,this._scaledCharLeft=0,this._scaledCharTop=0,this._columnSelectMode=!1,this._currentGlyphIdentifier={chars:"",code:0,bg:0,fg:0,bold:!1,dim:!1,italic:!1},this._canvas=document.createElement("canvas"),this._canvas.classList.add("xterm-"+t+"-layer"),this._canvas.style.zIndex=r.toString(),this._initCanvas(),this._container.appendChild(this._canvas)}return i.prototype.dispose=function(){var e;(0,s.removeElementFromParent)(this._canvas),(e=this._charAtlas)===null||e===void 0||e.dispose()},i.prototype._initCanvas=function(){this._ctx=(0,v.throwIfFalsy)(this._canvas.getContext("2d",{alpha:this._alpha})),this._alpha||this._clearAll()},i.prototype.onOptionsChanged=function(){},i.prototype.onBlur=function(){},i.prototype.onFocus=function(){},i.prototype.onCursorMove=function(){},i.prototype.onGridChanged=function(e,t){},i.prototype.onSelectionChanged=function(e,t,r){r===void 0&&(r=!1),this._selectionStart=e,this._selectionEnd=t,this._columnSelectMode=r},i.prototype.setColors=function(e){this._refreshCharAtlas(e)},i.prototype._setTransparency=function(e){if(e!==this._alpha){var t=this._canvas;this._alpha=e,this._canvas=this._canvas.cloneNode(),this._initCanvas(),this._container.replaceChild(this._canvas,t),this._refreshCharAtlas(this._colors),this.onGridChanged(0,this._bufferService.rows-1)}},i.prototype._refreshCharAtlas=function(e){this._scaledCharWidth<=0&&this._scaledCharHeight<=0||(this._charAtlas=(0,d.acquireCharAtlas)(this._optionsService.rawOptions,this._rendererId,e,this._scaledCharWidth,this._scaledCharHeight),this._charAtlas.warmUp())},i.prototype.resize=function(e){this._scaledCellWidth=e.scaledCellWidth,this._scaledCellHeight=e.scaledCellHeight,this._scaledCharWidth=e.scaledCharWidth,this._scaledCharHeight=e.scaledCharHeight,this._scaledCharLeft=e.scaledCharLeft,this._scaledCharTop=e.scaledCharTop,this._canvas.width=e.scaledCanvasWidth,this._canvas.height=e.scaledCanvasHeight,this._canvas.style.width=e.canvasWidth+"px",this._canvas.style.height=e.canvasHeight+"px",this._alpha||this._clearAll(),this._refreshCharAtlas(this._colors)},i.prototype.clearTextureAtlas=function(){var e;(e=this._charAtlas)===null||e===void 0||e.clear()},i.prototype._fillCells=function(e,t,r,n){this._ctx.fillRect(e*this._scaledCellWidth,t*this._scaledCellHeight,r*this._scaledCellWidth,n*this._scaledCellHeight)},i.prototype._fillMiddleLineAtCells=function(e,t,r){r===void 0&&(r=1);var n=Math.ceil(.5*this._scaledCellHeight);this._ctx.fillRect(e*this._scaledCellWidth,(t+1)*this._scaledCellHeight-n-window.devicePixelRatio,r*this._scaledCellWidth,window.devicePixelRatio)},i.prototype._fillBottomLineAtCells=function(e,t,r){r===void 0&&(r=1),this._ctx.fillRect(e*this._scaledCellWidth,(t+1)*this._scaledCellHeight-window.devicePixelRatio-1,r*this._scaledCellWidth,window.devicePixelRatio)},i.prototype._fillLeftLineAtCell=function(e,t,r){this._ctx.fillRect(e*this._scaledCellWidth,t*this._scaledCellHeight,window.devicePixelRatio*r,this._scaledCellHeight)},i.prototype._strokeRectAtCell=function(e,t,r,n){this._ctx.lineWidth=window.devicePixelRatio,this._ctx.strokeRect(e*this._scaledCellWidth+window.devicePixelRatio/2,t*this._scaledCellHeight+window.devicePixelRatio/2,r*this._scaledCellWidth-window.devicePixelRatio,n*this._scaledCellHeight-window.devicePixelRatio)},i.prototype._clearAll=function(){this._alpha?this._ctx.clearRect(0,0,this._canvas.width,this._canvas.height):(this._ctx.fillStyle=this._colors.background.css,this._ctx.fillRect(0,0,this._canvas.width,this._canvas.height))},i.prototype._clearCells=function(e,t,r,n){this._alpha?this._ctx.clearRect(e*this._scaledCellWidth,t*this._scaledCellHeight,r*this._scaledCellWidth,n*this._scaledCellHeight):(this._ctx.fillStyle=this._colors.background.css,this._ctx.fillRect(e*this._scaledCellWidth,t*this._scaledCellHeight,r*this._scaledCellWidth,n*this._scaledCellHeight))},i.prototype._fillCharTrueColor=function(e,t,r){this._ctx.font=this._getFont(!1,!1),this._ctx.textBaseline=f.TEXT_BASELINE,this._clipRow(r);var n=!1;this._optionsService.rawOptions.customGlyphs!==!1&&(n=(0,p.tryDrawCustomChar)(this._ctx,e.getChars(),t*this._scaledCellWidth,r*this._scaledCellHeight,this._scaledCellWidth,this._scaledCellHeight)),n||this._ctx.fillText(e.getChars(),t*this._scaledCellWidth+this._scaledCharLeft,r*this._scaledCellHeight+this._scaledCharTop+this._scaledCharHeight)},i.prototype._drawChars=function(e,t,r){var n,l,a,y=this._getContrastColor(e,t,r);if(y||e.isFgRGB()||e.isBgRGB())this._drawUncachedChars(e,t,r,y);else{var S,g;e.isInverse()?(S=e.isBgDefault()?f.INVERTED_DEFAULT_COLOR:e.getBgColor(),g=e.isFgDefault()?f.INVERTED_DEFAULT_COLOR:e.getFgColor()):(g=e.isBgDefault()?u.DEFAULT_COLOR:e.getBgColor(),S=e.isFgDefault()?u.DEFAULT_COLOR:e.getFgColor()),S+=this._optionsService.rawOptions.drawBoldTextInBrightColors&&e.isBold()&&S<8?8:0,this._currentGlyphIdentifier.chars=e.getChars()||u.WHITESPACE_CELL_CHAR,this._currentGlyphIdentifier.code=e.getCode()||u.WHITESPACE_CELL_CODE,this._currentGlyphIdentifier.bg=g,this._currentGlyphIdentifier.fg=S,this._currentGlyphIdentifier.bold=!!e.isBold(),this._currentGlyphIdentifier.dim=!!e.isDim(),this._currentGlyphIdentifier.italic=!!e.isItalic();var b=!1;try{for(var C=_(this._decorationService.getDecorationsAtCell(t,r)),R=C.next();!R.done;R=C.next()){var L=R.value;if(L.backgroundColorRGB||L.foregroundColorRGB){b=!0;break}}}catch(k){n={error:k}}finally{try{R&&!R.done&&(l=C.return)&&l.call(C)}finally{if(n)throw n.error}}!b&&(!((a=this._charAtlas)===null||a===void 0)&&a.draw(this._ctx,this._currentGlyphIdentifier,t*this._scaledCellWidth+this._scaledCharLeft,r*this._scaledCellHeight+this._scaledCharTop))||this._drawUncachedChars(e,t,r)}},i.prototype._drawUncachedChars=function(e,t,r,n){if(this._ctx.save(),this._ctx.font=this._getFont(!!e.isBold(),!!e.isItalic()),this._ctx.textBaseline=f.TEXT_BASELINE,e.isInverse())if(n)this._ctx.fillStyle=n.css;else if(e.isBgDefault())this._ctx.fillStyle=o.color.opaque(this._colors.background).css;else if(e.isBgRGB())this._ctx.fillStyle="rgb("+m.AttributeData.toColorRGB(e.getBgColor()).join(",")+")";else{var l=e.getBgColor();this._optionsService.rawOptions.drawBoldTextInBrightColors&&e.isBold()&&l<8&&(l+=8),this._ctx.fillStyle=this._colors.ansi[l].css}else if(n)this._ctx.fillStyle=n.css;else if(e.isFgDefault())this._ctx.fillStyle=this._colors.foreground.css;else if(e.isFgRGB())this._ctx.fillStyle="rgb("+m.AttributeData.toColorRGB(e.getFgColor()).join(",")+")";else{var a=e.getFgColor();this._optionsService.rawOptions.drawBoldTextInBrightColors&&e.isBold()&&a<8&&(a+=8),this._ctx.fillStyle=this._colors.ansi[a].css}this._clipRow(r),e.isDim()&&(this._ctx.globalAlpha=f.DIM_OPACITY);var y=!1;this._optionsService.rawOptions.customGlyphs!==!1&&(y=(0,p.tryDrawCustomChar)(this._ctx,e.getChars(),t*this._scaledCellWidth,r*this._scaledCellHeight,this._scaledCellWidth,this._scaledCellHeight)),y||this._ctx.fillText(e.getChars(),t*this._scaledCellWidth+this._scaledCharLeft,r*this._scaledCellHeight+this._scaledCharTop+this._scaledCharHeight),this._ctx.restore()},i.prototype._clipRow=function(e){this._ctx.beginPath(),this._ctx.rect(0,e*this._scaledCellHeight,this._bufferService.cols*this._scaledCellWidth,this._scaledCellHeight),this._ctx.clip()},i.prototype._getFont=function(e,t){return(t?"italic":"")+" "+(e?this._optionsService.rawOptions.fontWeightBold:this._optionsService.rawOptions.fontWeight)+" "+this._optionsService.rawOptions.fontSize*window.devicePixelRatio+"px "+this._optionsService.rawOptions.fontFamily},i.prototype._getContrastColor=function(e,t,r){var n,l,a,y,S=!1;try{for(var g=_(this._decorationService.getDecorationsAtCell(t,r)),b=g.next();!b.done;b=g.next()){var C=b.value;C.options.layer!=="top"&&S||(C.backgroundColorRGB&&(a=C.backgroundColorRGB.rgba),C.foregroundColorRGB&&(y=C.foregroundColorRGB.rgba),S=C.options.layer==="top")}}catch(Y){n={error:Y}}finally{try{b&&!b.done&&(l=g.return)&&l.call(g)}finally{if(n)throw n.error}}if(S||this._colors.selectionForeground&&this._isCellInSelection(t,r)&&(y=this._colors.selectionForeground.rgba),a||y||this._optionsService.rawOptions.minimumContrastRatio!==1&&!(0,v.excludeFromContrastRatioDemands)(e.getCode())){if(!a&&!y){var R=this._colors.contrastCache.getColor(e.bg,e.fg);if(R!==void 0)return R||void 0}var L=e.getFgColor(),k=e.getFgColorMode(),x=e.getBgColor(),E=e.getBgColorMode(),A=!!e.isInverse(),T=!!e.isInverse();if(A){var U=L;L=x,x=U;var q=k;k=E,E=q}var j=this._resolveBackgroundRgba(a!==void 0?50331648:E,a??x,A),z=this._resolveForegroundRgba(k,L,A,T),N=o.rgba.ensureContrastRatio(a??j,y??z,this._optionsService.rawOptions.minimumContrastRatio);if(!N){if(!y)return void this._colors.contrastCache.setColor(e.bg,e.fg,null);N=y}var M={css:o.channels.toCss(N>>24&255,N>>16&255,N>>8&255),rgba:N};return a||y||this._colors.contrastCache.setColor(e.bg,e.fg,M),M}},i.prototype._resolveBackgroundRgba=function(e,t,r){switch(e){case 16777216:case 33554432:return this._colors.ansi[t].rgba;case 50331648:return t<<8;default:return r?this._colors.foreground.rgba:this._colors.background.rgba}},i.prototype._resolveForegroundRgba=function(e,t,r,n){switch(e){case 16777216:case 33554432:return this._optionsService.rawOptions.drawBoldTextInBrightColors&&n&&t<8&&(t+=8),this._colors.ansi[t].rgba;case 50331648:return t<<8;default:return r?this._colors.background.rgba:this._colors.foreground.rgba}},i.prototype._isCellInSelection=function(e,t){var r=this._selectionStart,n=this._selectionEnd;return!(!r||!n)&&(this._columnSelectMode?e>=r[0]&&t>=r[1]&&e<n[0]&&t<n[1]:t>r[1]&&t<n[1]||r[1]===n[1]&&t===r[1]&&e>=r[0]&&e<n[0]||r[1]<n[1]&&t===n[1]&&e<n[0]||r[1]<n[1]&&t===r[1]&&e>=r[0])},i}();c.BaseRenderLayer=h},2512:function(W,c,w){var _,u=this&&this.__extends||(_=function(e,t){return _=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var l in n)Object.prototype.hasOwnProperty.call(n,l)&&(r[l]=n[l])},_(e,t)},function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}_(e,t),e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}),f=this&&this.__decorate||function(e,t,r,n){var l,a=arguments.length,y=a<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")y=Reflect.decorate(e,t,r,n);else for(var S=e.length-1;S>=0;S--)(l=e[S])&&(y=(a<3?l(y):a>3?l(t,r,y):l(t,r))||y);return a>3&&y&&Object.defineProperty(t,r,y),y},d=this&&this.__param||function(e,t){return function(r,n){t(r,n,e)}};Object.defineProperty(c,"__esModule",{value:!0}),c.CursorRenderLayer=void 0;var m=w(1546),v=w(511),o=w(2585),s=w(4725),p=600,h=function(e){function t(r,n,l,a,y,S,g,b,C,R){var L=e.call(this,r,"cursor",n,!0,l,a,S,g,R)||this;return L._onRequestRedraw=y,L._coreService=b,L._coreBrowserService=C,L._cell=new v.CellData,L._state={x:0,y:0,isFocused:!1,style:"",width:0},L._cursorRenderers={bar:L._renderBarCursor.bind(L),block:L._renderBlockCursor.bind(L),underline:L._renderUnderlineCursor.bind(L)},L}return u(t,e),t.prototype.dispose=function(){this._cursorBlinkStateManager&&(this._cursorBlinkStateManager.dispose(),this._cursorBlinkStateManager=void 0),e.prototype.dispose.call(this)},t.prototype.resize=function(r){e.prototype.resize.call(this,r),this._state={x:0,y:0,isFocused:!1,style:"",width:0}},t.prototype.reset=function(){var r;this._clearCursor(),(r=this._cursorBlinkStateManager)===null||r===void 0||r.restartBlinkAnimation(),this.onOptionsChanged()},t.prototype.onBlur=function(){var r;(r=this._cursorBlinkStateManager)===null||r===void 0||r.pause(),this._onRequestRedraw.fire({start:this._bufferService.buffer.y,end:this._bufferService.buffer.y})},t.prototype.onFocus=function(){var r;(r=this._cursorBlinkStateManager)===null||r===void 0||r.resume(),this._onRequestRedraw.fire({start:this._bufferService.buffer.y,end:this._bufferService.buffer.y})},t.prototype.onOptionsChanged=function(){var r,n=this;this._optionsService.rawOptions.cursorBlink?this._cursorBlinkStateManager||(this._cursorBlinkStateManager=new i(this._coreBrowserService.isFocused,function(){n._render(!0)})):((r=this._cursorBlinkStateManager)===null||r===void 0||r.dispose(),this._cursorBlinkStateManager=void 0),this._onRequestRedraw.fire({start:this._bufferService.buffer.y,end:this._bufferService.buffer.y})},t.prototype.onCursorMove=function(){var r;(r=this._cursorBlinkStateManager)===null||r===void 0||r.restartBlinkAnimation()},t.prototype.onGridChanged=function(r,n){!this._cursorBlinkStateManager||this._cursorBlinkStateManager.isPaused?this._render(!1):this._cursorBlinkStateManager.restartBlinkAnimation()},t.prototype._render=function(r){if(this._coreService.isCursorInitialized&&!this._coreService.isCursorHidden){var n=this._bufferService.buffer.ybase+this._bufferService.buffer.y,l=n-this._bufferService.buffer.ydisp;if(l<0||l>=this._bufferService.rows)this._clearCursor();else{var a=Math.min(this._bufferService.buffer.x,this._bufferService.cols-1);if(this._bufferService.buffer.lines.get(n).loadCell(a,this._cell),this._cell.content!==void 0){if(!this._coreBrowserService.isFocused){this._clearCursor(),this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css;var y=this._optionsService.rawOptions.cursorStyle;return y&&y!=="block"?this._cursorRenderers[y](a,l,this._cell):this._renderBlurCursor(a,l,this._cell),this._ctx.restore(),this._state.x=a,this._state.y=l,this._state.isFocused=!1,this._state.style=y,void(this._state.width=this._cell.getWidth())}if(!this._cursorBlinkStateManager||this._cursorBlinkStateManager.isCursorVisible){if(this._state){if(this._state.x===a&&this._state.y===l&&this._state.isFocused===this._coreBrowserService.isFocused&&this._state.style===this._optionsService.rawOptions.cursorStyle&&this._state.width===this._cell.getWidth())return;this._clearCursor()}this._ctx.save(),this._cursorRenderers[this._optionsService.rawOptions.cursorStyle||"block"](a,l,this._cell),this._ctx.restore(),this._state.x=a,this._state.y=l,this._state.isFocused=!1,this._state.style=this._optionsService.rawOptions.cursorStyle,this._state.width=this._cell.getWidth()}else this._clearCursor()}}}else this._clearCursor()},t.prototype._clearCursor=function(){this._state&&(window.devicePixelRatio<1?this._clearAll():this._clearCells(this._state.x,this._state.y,this._state.width,1),this._state={x:0,y:0,isFocused:!1,style:"",width:0})},t.prototype._renderBarCursor=function(r,n,l){this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css,this._fillLeftLineAtCell(r,n,this._optionsService.rawOptions.cursorWidth),this._ctx.restore()},t.prototype._renderBlockCursor=function(r,n,l){this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css,this._fillCells(r,n,l.getWidth(),1),this._ctx.fillStyle=this._colors.cursorAccent.css,this._fillCharTrueColor(l,r,n),this._ctx.restore()},t.prototype._renderUnderlineCursor=function(r,n,l){this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css,this._fillBottomLineAtCells(r,n),this._ctx.restore()},t.prototype._renderBlurCursor=function(r,n,l){this._ctx.save(),this._ctx.strokeStyle=this._colors.cursor.css,this._strokeRectAtCell(r,n,l.getWidth(),1),this._ctx.restore()},f([d(5,o.IBufferService),d(6,o.IOptionsService),d(7,o.ICoreService),d(8,s.ICoreBrowserService),d(9,o.IDecorationService)],t)}(m.BaseRenderLayer);c.CursorRenderLayer=h;var i=function(){function e(t,r){this._renderCallback=r,this.isCursorVisible=!0,t&&this._restartInterval()}return Object.defineProperty(e.prototype,"isPaused",{get:function(){return!(this._blinkStartTimeout||this._blinkInterval)},enumerable:!1,configurable:!0}),e.prototype.dispose=function(){this._blinkInterval&&(window.clearInterval(this._blinkInterval),this._blinkInterval=void 0),this._blinkStartTimeout&&(window.clearTimeout(this._blinkStartTimeout),this._blinkStartTimeout=void 0),this._animationFrame&&(window.cancelAnimationFrame(this._animationFrame),this._animationFrame=void 0)},e.prototype.restartBlinkAnimation=function(){var t=this;this.isPaused||(this._animationTimeRestarted=Date.now(),this.isCursorVisible=!0,this._animationFrame||(this._animationFrame=window.requestAnimationFrame(function(){t._renderCallback(),t._animationFrame=void 0})))},e.prototype._restartInterval=function(t){var r=this;t===void 0&&(t=p),this._blinkInterval&&(window.clearInterval(this._blinkInterval),this._blinkInterval=void 0),this._blinkStartTimeout=window.setTimeout(function(){if(r._animationTimeRestarted){var n=p-(Date.now()-r._animationTimeRestarted);if(r._animationTimeRestarted=void 0,n>0)return void r._restartInterval(n)}r.isCursorVisible=!1,r._animationFrame=window.requestAnimationFrame(function(){r._renderCallback(),r._animationFrame=void 0}),r._blinkInterval=window.setInterval(function(){if(r._animationTimeRestarted){var l=p-(Date.now()-r._animationTimeRestarted);return r._animationTimeRestarted=void 0,void r._restartInterval(l)}r.isCursorVisible=!r.isCursorVisible,r._animationFrame=window.requestAnimationFrame(function(){r._renderCallback(),r._animationFrame=void 0})},p)},t)},e.prototype.pause=function(){this.isCursorVisible=!0,this._blinkInterval&&(window.clearInterval(this._blinkInterval),this._blinkInterval=void 0),this._blinkStartTimeout&&(window.clearTimeout(this._blinkStartTimeout),this._blinkStartTimeout=void 0),this._animationFrame&&(window.cancelAnimationFrame(this._animationFrame),this._animationFrame=void 0)},e.prototype.resume=function(){this.pause(),this._animationTimeRestarted=void 0,this._restartInterval(),this.restartBlinkAnimation()},e}()},8978:function(W,c,w){var _,u,f,d,m,v,o,s,p,h,i,e,t,r,n,l,a,y,S,g,b,C,R,L,k,x,E,A,T,U,q,j,z,N,M,Y,Z,te,B,Q,X,F,O,D,H,G,V,J,ie,se,ae,K,ce,de,Se,Be,jt,Ft,Wt,Ut,qt,Nt,Fe,We,Ue,qe,Ne,ze,Ke,Ge,Ve,Xe,Ze,Ye,Je,$e,Qe,et,tt,rt,it,nt,ot,st,at,ct,lt,ht,ut,ft,dt,_t,pt,vt,yt,gt,mt,bt,St,Ct,wt,Lt,Et,xt,kt,Rt,Mt,At,Ot,Dt,Tt,Bt,zt,Kt,Gt,Vt,Xt,Zt,Yt,Jt,$t,Qt,er,tr,rr,ir,nr,or,fr=this&&this.__read||function(P,I){var oe=typeof Symbol=="function"&&P[Symbol.iterator];if(!oe)return P;var _e,Ce,ve=oe.call(P),ne=[];try{for(;(I===void 0||I-- >0)&&!(_e=ve.next()).done;)ne.push(_e.value)}catch(ye){Ce={error:ye}}finally{try{_e&&!_e.done&&(oe=ve.return)&&oe.call(ve)}finally{if(Ce)throw Ce.error}}return ne},sr=this&&this.__values||function(P){var I=typeof Symbol=="function"&&Symbol.iterator,oe=I&&P[I],_e=0;if(oe)return oe.call(P);if(P&&typeof P.length=="number")return{next:function(){return P&&_e>=P.length&&(P=void 0),{value:P&&P[_e++],done:!P}}};throw new TypeError(I?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(c,"__esModule",{value:!0}),c.tryDrawCustomChar=c.powerlineDefinitions=c.boxDrawingDefinitions=c.blockElementDefinitions=void 0;var dr=w(1752);c.blockElementDefinitions={"\u2580":[{x:0,y:0,w:8,h:4}],"\u2581":[{x:0,y:7,w:8,h:1}],"\u2582":[{x:0,y:6,w:8,h:2}],"\u2583":[{x:0,y:5,w:8,h:3}],"\u2584":[{x:0,y:4,w:8,h:4}],"\u2585":[{x:0,y:3,w:8,h:5}],"\u2586":[{x:0,y:2,w:8,h:6}],"\u2587":[{x:0,y:1,w:8,h:7}],"\u2588":[{x:0,y:0,w:8,h:8}],"\u2589":[{x:0,y:0,w:7,h:8}],"\u258A":[{x:0,y:0,w:6,h:8}],"\u258B":[{x:0,y:0,w:5,h:8}],"\u258C":[{x:0,y:0,w:4,h:8}],"\u258D":[{x:0,y:0,w:3,h:8}],"\u258E":[{x:0,y:0,w:2,h:8}],"\u258F":[{x:0,y:0,w:1,h:8}],"\u2590":[{x:4,y:0,w:4,h:8}],"\u2594":[{x:0,y:0,w:9,h:1}],"\u2595":[{x:7,y:0,w:1,h:8}],"\u2596":[{x:0,y:4,w:4,h:4}],"\u2597":[{x:4,y:4,w:4,h:4}],"\u2598":[{x:0,y:0,w:4,h:4}],"\u2599":[{x:0,y:0,w:4,h:8},{x:0,y:4,w:8,h:4}],"\u259A":[{x:0,y:0,w:4,h:4},{x:4,y:4,w:4,h:4}],"\u259B":[{x:0,y:0,w:4,h:8},{x:0,y:0,w:4,h:8}],"\u259C":[{x:0,y:0,w:8,h:4},{x:4,y:0,w:4,h:8}],"\u259D":[{x:4,y:0,w:4,h:4}],"\u259E":[{x:4,y:0,w:4,h:4},{x:0,y:4,w:4,h:4}],"\u259F":[{x:4,y:0,w:4,h:8},{x:0,y:4,w:8,h:4}],"\u{1FB70}":[{x:1,y:0,w:1,h:8}],"\u{1FB71}":[{x:2,y:0,w:1,h:8}],"\u{1FB72}":[{x:3,y:0,w:1,h:8}],"\u{1FB73}":[{x:4,y:0,w:1,h:8}],"\u{1FB74}":[{x:5,y:0,w:1,h:8}],"\u{1FB75}":[{x:6,y:0,w:1,h:8}],"\u{1FB76}":[{x:0,y:1,w:8,h:1}],"\u{1FB77}":[{x:0,y:2,w:8,h:1}],"\u{1FB78}":[{x:0,y:3,w:8,h:1}],"\u{1FB79}":[{x:0,y:4,w:8,h:1}],"\u{1FB7A}":[{x:0,y:5,w:8,h:1}],"\u{1FB7B}":[{x:0,y:6,w:8,h:1}],"\u{1FB7C}":[{x:0,y:0,w:1,h:8},{x:0,y:7,w:8,h:1}],"\u{1FB7D}":[{x:0,y:0,w:1,h:8},{x:0,y:0,w:8,h:1}],"\u{1FB7E}":[{x:7,y:0,w:1,h:8},{x:0,y:0,w:8,h:1}],"\u{1FB7F}":[{x:7,y:0,w:1,h:8},{x:0,y:7,w:8,h:1}],"\u{1FB80}":[{x:0,y:0,w:8,h:1},{x:0,y:7,w:8,h:1}],"\u{1FB81}":[{x:0,y:0,w:8,h:1},{x:0,y:2,w:8,h:1},{x:0,y:4,w:8,h:1},{x:0,y:7,w:8,h:1}],"\u{1FB82}":[{x:0,y:0,w:8,h:2}],"\u{1FB83}":[{x:0,y:0,w:8,h:3}],"\u{1FB84}":[{x:0,y:0,w:8,h:5}],"\u{1FB85}":[{x:0,y:0,w:8,h:6}],"\u{1FB86}":[{x:0,y:0,w:8,h:7}],"\u{1FB87}":[{x:6,y:0,w:2,h:8}],"\u{1FB88}":[{x:5,y:0,w:3,h:8}],"\u{1FB89}":[{x:3,y:0,w:5,h:8}],"\u{1FB8A}":[{x:2,y:0,w:6,h:8}],"\u{1FB8B}":[{x:1,y:0,w:7,h:8}],"\u{1FB95}":[{x:0,y:0,w:2,h:2},{x:4,y:0,w:2,h:2},{x:2,y:2,w:2,h:2},{x:6,y:2,w:2,h:2},{x:0,y:4,w:2,h:2},{x:4,y:4,w:2,h:2},{x:2,y:6,w:2,h:2},{x:6,y:6,w:2,h:2}],"\u{1FB96}":[{x:2,y:0,w:2,h:2},{x:6,y:0,w:2,h:2},{x:0,y:2,w:2,h:2},{x:4,y:2,w:2,h:2},{x:2,y:4,w:2,h:2},{x:6,y:4,w:2,h:2},{x:0,y:6,w:2,h:2},{x:4,y:6,w:2,h:2}],"\u{1FB97}":[{x:0,y:2,w:8,h:2},{x:0,y:6,w:8,h:2}]};var gr={"\u2591":[[1,0,0,0],[0,0,0,0],[0,0,1,0],[0,0,0,0]],"\u2592":[[1,0],[0,0],[0,1],[0,0]],"\u2593":[[0,1],[1,1],[1,0],[1,1]]};c.boxDrawingDefinitions={"\u2500":(_={},_[1]="M0,.5 L1,.5",_),"\u2501":(u={},u[3]="M0,.5 L1,.5",u),"\u2502":(f={},f[1]="M.5,0 L.5,1",f),"\u2503":(d={},d[3]="M.5,0 L.5,1",d),"\u250C":(m={},m[1]="M0.5,1 L.5,.5 L1,.5",m),"\u250F":(v={},v[3]="M0.5,1 L.5,.5 L1,.5",v),"\u2510":(o={},o[1]="M0,.5 L.5,.5 L.5,1",o),"\u2513":(s={},s[3]="M0,.5 L.5,.5 L.5,1",s),"\u2514":(p={},p[1]="M.5,0 L.5,.5 L1,.5",p),"\u2517":(h={},h[3]="M.5,0 L.5,.5 L1,.5",h),"\u2518":(i={},i[1]="M.5,0 L.5,.5 L0,.5",i),"\u251B":(e={},e[3]="M.5,0 L.5,.5 L0,.5",e),"\u251C":(t={},t[1]="M.5,0 L.5,1 M.5,.5 L1,.5",t),"\u2523":(r={},r[3]="M.5,0 L.5,1 M.5,.5 L1,.5",r),"\u2524":(n={},n[1]="M.5,0 L.5,1 M.5,.5 L0,.5",n),"\u252B":(l={},l[3]="M.5,0 L.5,1 M.5,.5 L0,.5",l),"\u252C":(a={},a[1]="M0,.5 L1,.5 M.5,.5 L.5,1",a),"\u2533":(y={},y[3]="M0,.5 L1,.5 M.5,.5 L.5,1",y),"\u2534":(S={},S[1]="M0,.5 L1,.5 M.5,.5 L.5,0",S),"\u253B":(g={},g[3]="M0,.5 L1,.5 M.5,.5 L.5,0",g),"\u253C":(b={},b[1]="M0,.5 L1,.5 M.5,0 L.5,1",b),"\u254B":(C={},C[3]="M0,.5 L1,.5 M.5,0 L.5,1",C),"\u2574":(R={},R[1]="M.5,.5 L0,.5",R),"\u2578":(L={},L[3]="M.5,.5 L0,.5",L),"\u2575":(k={},k[1]="M.5,.5 L.5,0",k),"\u2579":(x={},x[3]="M.5,.5 L.5,0",x),"\u2576":(E={},E[1]="M.5,.5 L1,.5",E),"\u257A":(A={},A[3]="M.5,.5 L1,.5",A),"\u2577":(T={},T[1]="M.5,.5 L.5,1",T),"\u257B":(U={},U[3]="M.5,.5 L.5,1",U),"\u2550":(q={},q[1]=function(P,I){return"M0,"+(.5-I)+" L1,"+(.5-I)+" M0,"+(.5+I)+" L1,"+(.5+I)},q),"\u2551":(j={},j[1]=function(P,I){return"M"+(.5-P)+",0 L"+(.5-P)+",1 M"+(.5+P)+",0 L"+(.5+P)+",1"},j),"\u2552":(z={},z[1]=function(P,I){return"M.5,1 L.5,"+(.5-I)+" L1,"+(.5-I)+" M.5,"+(.5+I)+" L1,"+(.5+I)},z),"\u2553":(N={},N[1]=function(P,I){return"M"+(.5-P)+",1 L"+(.5-P)+",.5 L1,.5 M"+(.5+P)+",.5 L"+(.5+P)+",1"},N),"\u2554":(M={},M[1]=function(P,I){return"M1,"+(.5-I)+" L"+(.5-P)+","+(.5-I)+" L"+(.5-P)+",1 M1,"+(.5+I)+" L"+(.5+P)+","+(.5+I)+" L"+(.5+P)+",1"},M),"\u2555":(Y={},Y[1]=function(P,I){return"M0,"+(.5-I)+" L.5,"+(.5-I)+" L.5,1 M0,"+(.5+I)+" L.5,"+(.5+I)},Y),"\u2556":(Z={},Z[1]=function(P,I){return"M"+(.5+P)+",1 L"+(.5+P)+",.5 L0,.5 M"+(.5-P)+",.5 L"+(.5-P)+",1"},Z),"\u2557":(te={},te[1]=function(P,I){return"M0,"+(.5+I)+" L"+(.5-P)+","+(.5+I)+" L"+(.5-P)+",1 M0,"+(.5-I)+" L"+(.5+P)+","+(.5-I)+" L"+(.5+P)+",1"},te),"\u2558":(B={},B[1]=function(P,I){return"M.5,0 L.5,"+(.5+I)+" L1,"+(.5+I)+" M.5,"+(.5-I)+" L1,"+(.5-I)},B),"\u2559":(Q={},Q[1]=function(P,I){return"M1,.5 L"+(.5-P)+",.5 L"+(.5-P)+",0 M"+(.5+P)+",.5 L"+(.5+P)+",0"},Q),"\u255A":(X={},X[1]=function(P,I){return"M1,"+(.5-I)+" L"+(.5+P)+","+(.5-I)+" L"+(.5+P)+",0 M1,"+(.5+I)+" L"+(.5-P)+","+(.5+I)+" L"+(.5-P)+",0"},X),"\u255B":(F={},F[1]=function(P,I){return"M0,"+(.5+I)+" L.5,"+(.5+I)+" L.5,0 M0,"+(.5-I)+" L.5,"+(.5-I)},F),"\u255C":(O={},O[1]=function(P,I){return"M0,.5 L"+(.5+P)+",.5 L"+(.5+P)+",0 M"+(.5-P)+",.5 L"+(.5-P)+",0"},O),"\u255D":(D={},D[1]=function(P,I){return"M0,"+(.5-I)+" L"+(.5-P)+","+(.5-I)+" L"+(.5-P)+",0 M0,"+(.5+I)+" L"+(.5+P)+","+(.5+I)+" L"+(.5+P)+",0"},D),"\u255E":(H={},H[1]=function(P,I){return"M.5,0 L.5,1 M.5,"+(.5-I)+" L1,"+(.5-I)+" M.5,"+(.5+I)+" L1,"+(.5+I)},H),"\u255F":(G={},G[1]=function(P,I){return"M"+(.5-P)+",0 L"+(.5-P)+",1 M"+(.5+P)+",0 L"+(.5+P)+",1 M"+(.5+P)+",.5 L1,.5"},G),"\u2560":(V={},V[1]=function(P,I){return"M"+(.5-P)+",0 L"+(.5-P)+",1 M1,"+(.5+I)+" L"+(.5+P)+","+(.5+I)+" L"+(.5+P)+",1 M1,"+(.5-I)+" L"+(.5+P)+","+(.5-I)+" L"+(.5+P)+",0"},V),"\u2561":(J={},J[1]=function(P,I){return"M.5,0 L.5,1 M0,"+(.5-I)+" L.5,"+(.5-I)+" M0,"+(.5+I)+" L.5,"+(.5+I)},J),"\u2562":(ie={},ie[1]=function(P,I){return"M0,.5 L"+(.5-P)+",.5 M"+(.5-P)+",0 L"+(.5-P)+",1 M"+(.5+P)+",0 L"+(.5+P)+",1"},ie),"\u2563":(se={},se[1]=function(P,I){return"M"+(.5+P)+",0 L"+(.5+P)+",1 M0,"+(.5+I)+" L"+(.5-P)+","+(.5+I)+" L"+(.5-P)+",1 M0,"+(.5-I)+" L"+(.5-P)+","+(.5-I)+" L"+(.5-P)+",0"},se),"\u2564":(ae={},ae[1]=function(P,I){return"M0,"+(.5-I)+" L1,"+(.5-I)+" M0,"+(.5+I)+" L1,"+(.5+I)+" M.5,"+(.5+I)+" L.5,1"},ae),"\u2565":(K={},K[1]=function(P,I){return"M0,.5 L1,.5 M"+(.5-P)+",.5 L"+(.5-P)+",1 M"+(.5+P)+",.5 L"+(.5+P)+",1"},K),"\u2566":(ce={},ce[1]=function(P,I){return"M0,"+(.5-I)+" L1,"+(.5-I)+" M0,"+(.5+I)+" L"+(.5-P)+","+(.5+I)+" L"+(.5-P)+",1 M1,"+(.5+I)+" L"+(.5+P)+","+(.5+I)+" L"+(.5+P)+",1"},ce),"\u2567":(de={},de[1]=function(P,I){return"M.5,0 L.5,"+(.5-I)+" M0,"+(.5-I)+" L1,"+(.5-I)+" M0,"+(.5+I)+" L1,"+(.5+I)},de),"\u2568":(Se={},Se[1]=function(P,I){return"M0,.5 L1,.5 M"+(.5-P)+",.5 L"+(.5-P)+",0 M"+(.5+P)+",.5 L"+(.5+P)+",0"},Se),"\u2569":(Be={},Be[1]=function(P,I){return"M0,"+(.5+I)+" L1,"+(.5+I)+" M0,"+(.5-I)+" L"+(.5-P)+","+(.5-I)+" L"+(.5-P)+",0 M1,"+(.5-I)+" L"+(.5+P)+","+(.5-I)+" L"+(.5+P)+",0"},Be),"\u256A":(jt={},jt[1]=function(P,I){return"M.5,0 L.5,1 M0,"+(.5-I)+" L1,"+(.5-I)+" M0,"+(.5+I)+" L1,"+(.5+I)},jt),"\u256B":(Ft={},Ft[1]=function(P,I){return"M0,.5 L1,.5 M"+(.5-P)+",0 L"+(.5-P)+",1 M"+(.5+P)+",0 L"+(.5+P)+",1"},Ft),"\u256C":(Wt={},Wt[1]=function(P,I){return"M0,"+(.5+I)+" L"+(.5-P)+","+(.5+I)+" L"+(.5-P)+",1 M1,"+(.5+I)+" L"+(.5+P)+","+(.5+I)+" L"+(.5+P)+",1 M0,"+(.5-I)+" L"+(.5-P)+","+(.5-I)+" L"+(.5-P)+",0 M1,"+(.5-I)+" L"+(.5+P)+","+(.5-I)+" L"+(.5+P)+",0"},Wt),"\u2571":(Ut={},Ut[1]="M1,0 L0,1",Ut),"\u2572":(qt={},qt[1]="M0,0 L1,1",qt),"\u2573":(Nt={},Nt[1]="M1,0 L0,1 M0,0 L1,1",Nt),"\u257C":(Fe={},Fe[1]="M.5,.5 L0,.5",Fe[3]="M.5,.5 L1,.5",Fe),"\u257D":(We={},We[1]="M.5,.5 L.5,0",We[3]="M.5,.5 L.5,1",We),"\u257E":(Ue={},Ue[1]="M.5,.5 L1,.5",Ue[3]="M.5,.5 L0,.5",Ue),"\u257F":(qe={},qe[1]="M.5,.5 L.5,1",qe[3]="M.5,.5 L.5,0",qe),"\u250D":(Ne={},Ne[1]="M.5,.5 L.5,1",Ne[3]="M.5,.5 L1,.5",Ne),"\u250E":(ze={},ze[1]="M.5,.5 L1,.5",ze[3]="M.5,.5 L.5,1",ze),"\u2511":(Ke={},Ke[1]="M.5,.5 L.5,1",Ke[3]="M.5,.5 L0,.5",Ke),"\u2512":(Ge={},Ge[1]="M.5,.5 L0,.5",Ge[3]="M.5,.5 L.5,1",Ge),"\u2515":(Ve={},Ve[1]="M.5,.5 L.5,0",Ve[3]="M.5,.5 L1,.5",Ve),"\u2516":(Xe={},Xe[1]="M.5,.5 L1,.5",Xe[3]="M.5,.5 L.5,0",Xe),"\u2519":(Ze={},Ze[1]="M.5,.5 L.5,0",Ze[3]="M.5,.5 L0,.5",Ze),"\u251A":(Ye={},Ye[1]="M.5,.5 L0,.5",Ye[3]="M.5,.5 L.5,0",Ye),"\u251D":(Je={},Je[1]="M.5,0 L.5,1",Je[3]="M.5,.5 L1,.5",Je),"\u251E":($e={},$e[1]="M0.5,1 L.5,.5 L1,.5",$e[3]="M.5,.5 L.5,0",$e),"\u251F":(Qe={},Qe[1]="M.5,0 L.5,.5 L1,.5",Qe[3]="M.5,.5 L.5,1",Qe),"\u2520":(et={},et[1]="M.5,.5 L1,.5",et[3]="M.5,0 L.5,1",et),"\u2521":(tt={},tt[1]="M.5,.5 L.5,1",tt[3]="M.5,0 L.5,.5 L1,.5",tt),"\u2522":(rt={},rt[1]="M.5,.5 L.5,0",rt[3]="M0.5,1 L.5,.5 L1,.5",rt),"\u2525":(it={},it[1]="M.5,0 L.5,1",it[3]="M.5,.5 L0,.5",it),"\u2526":(nt={},nt[1]="M0,.5 L.5,.5 L.5,1",nt[3]="M.5,.5 L.5,0",nt),"\u2527":(ot={},ot[1]="M.5,0 L.5,.5 L0,.5",ot[3]="M.5,.5 L.5,1",ot),"\u2528":(st={},st[1]="M.5,.5 L0,.5",st[3]="M.5,0 L.5,1",st),"\u2529":(at={},at[1]="M.5,.5 L.5,1",at[3]="M.5,0 L.5,.5 L0,.5",at),"\u252A":(ct={},ct[1]="M.5,.5 L.5,0",ct[3]="M0,.5 L.5,.5 L.5,1",ct),"\u252D":(lt={},lt[1]="M0.5,1 L.5,.5 L1,.5",lt[3]="M.5,.5 L0,.5",lt),"\u252E":(ht={},ht[1]="M0,.5 L.5,.5 L.5,1",ht[3]="M.5,.5 L1,.5",ht),"\u252F":(ut={},ut[1]="M.5,.5 L.5,1",ut[3]="M0,.5 L1,.5",ut),"\u2530":(ft={},ft[1]="M0,.5 L1,.5",ft[3]="M.5,.5 L.5,1",ft),"\u2531":(dt={},dt[1]="M.5,.5 L1,.5",dt[3]="M0,.5 L.5,.5 L.5,1",dt),"\u2532":(_t={},_t[1]="M.5,.5 L0,.5",_t[3]="M0.5,1 L.5,.5 L1,.5",_t),"\u2535":(pt={},pt[1]="M.5,0 L.5,.5 L1,.5",pt[3]="M.5,.5 L0,.5",pt),"\u2536":(vt={},vt[1]="M.5,0 L.5,.5 L0,.5",vt[3]="M.5,.5 L1,.5",vt),"\u2537":(yt={},yt[1]="M.5,.5 L.5,0",yt[3]="M0,.5 L1,.5",yt),"\u2538":(gt={},gt[1]="M0,.5 L1,.5",gt[3]="M.5,.5 L.5,0",gt),"\u2539":(mt={},mt[1]="M.5,.5 L1,.5",mt[3]="M.5,0 L.5,.5 L0,.5",mt),"\u253A":(bt={},bt[1]="M.5,.5 L0,.5",bt[3]="M.5,0 L.5,.5 L1,.5",bt),"\u253D":(St={},St[1]="M.5,0 L.5,1 M.5,.5 L1,.5",St[3]="M.5,.5 L0,.5",St),"\u253E":(Ct={},Ct[1]="M.5,0 L.5,1 M.5,.5 L0,.5",Ct[3]="M.5,.5 L1,.5",Ct),"\u253F":(wt={},wt[1]="M.5,0 L.5,1",wt[3]="M0,.5 L1,.5",wt),"\u2540":(Lt={},Lt[1]="M0,.5 L1,.5 M.5,.5 L.5,1",Lt[3]="M.5,.5 L.5,0",Lt),"\u2541":(Et={},Et[1]="M.5,.5 L.5,0 M0,.5 L1,.5",Et[3]="M.5,.5 L.5,1",Et),"\u2542":(xt={},xt[1]="M0,.5 L1,.5",xt[3]="M.5,0 L.5,1",xt),"\u2543":(kt={},kt[1]="M0.5,1 L.5,.5 L1,.5",kt[3]="M.5,0 L.5,.5 L0,.5",kt),"\u2544":(Rt={},Rt[1]="M0,.5 L.5,.5 L.5,1",Rt[3]="M.5,0 L.5,.5 L1,.5",Rt),"\u2545":(Mt={},Mt[1]="M.5,0 L.5,.5 L1,.5",Mt[3]="M0,.5 L.5,.5 L.5,1",Mt),"\u2546":(At={},At[1]="M.5,0 L.5,.5 L0,.5",At[3]="M0.5,1 L.5,.5 L1,.5",At),"\u2547":(Ot={},Ot[1]="M.5,.5 L.5,1",Ot[3]="M.5,.5 L.5,0 M0,.5 L1,.5",Ot),"\u2548":(Dt={},Dt[1]="M.5,.5 L.5,0",Dt[3]="M0,.5 L1,.5 M.5,.5 L.5,1",Dt),"\u2549":(Tt={},Tt[1]="M.5,.5 L1,.5",Tt[3]="M.5,0 L.5,1 M.5,.5 L0,.5",Tt),"\u254A":(Bt={},Bt[1]="M.5,.5 L0,.5",Bt[3]="M.5,0 L.5,1 M.5,.5 L1,.5",Bt),"\u254C":(zt={},zt[1]="M.1,.5 L.4,.5 M.6,.5 L.9,.5",zt),"\u254D":(Kt={},Kt[3]="M.1,.5 L.4,.5 M.6,.5 L.9,.5",Kt),"\u2504":(Gt={},Gt[1]="M.0667,.5 L.2667,.5 M.4,.5 L.6,.5 M.7333,.5 L.9333,.5",Gt),"\u2505":(Vt={},Vt[3]="M.0667,.5 L.2667,.5 M.4,.5 L.6,.5 M.7333,.5 L.9333,.5",Vt),"\u2508":(Xt={},Xt[1]="M.05,.5 L.2,.5 M.3,.5 L.45,.5 M.55,.5 L.7,.5 M.8,.5 L.95,.5",Xt),"\u2509":(Zt={},Zt[3]="M.05,.5 L.2,.5 M.3,.5 L.45,.5 M.55,.5 L.7,.5 M.8,.5 L.95,.5",Zt),"\u254E":(Yt={},Yt[1]="M.5,.1 L.5,.4 M.5,.6 L.5,.9",Yt),"\u254F":(Jt={},Jt[3]="M.5,.1 L.5,.4 M.5,.6 L.5,.9",Jt),"\u2506":($t={},$t[1]="M.5,.0667 L.5,.2667 M.5,.4 L.5,.6 M.5,.7333 L.5,.9333",$t),"\u2507":(Qt={},Qt[3]="M.5,.0667 L.5,.2667 M.5,.4 L.5,.6 M.5,.7333 L.5,.9333",Qt),"\u250A":(er={},er[1]="M.5,.05 L.5,.2 M.5,.3 L.5,.45 L.5,.55 M.5,.7 L.5,.95",er),"\u250B":(tr={},tr[3]="M.5,.05 L.5,.2 M.5,.3 L.5,.45 L.5,.55 M.5,.7 L.5,.95",tr),"\u256D":(rr={},rr[1]="C.5,1,.5,.5,1,.5",rr),"\u256E":(ir={},ir[1]="C.5,1,.5,.5,0,.5",ir),"\u256F":(nr={},nr[1]="C.5,0,.5,.5,0,.5",nr),"\u2570":(or={},or[1]="C.5,0,.5,.5,1,.5",or)},c.powerlineDefinitions={"\uE0B0":{d:"M0,0 L1,.5 L0,1",type:0},"\uE0B1":{d:"M0,0 L1,.5 L0,1",type:1,horizontalPadding:.5},"\uE0B2":{d:"M1,0 L0,.5 L1,1",type:0},"\uE0B3":{d:"M1,0 L0,.5 L1,1",type:1,horizontalPadding:.5}},c.tryDrawCustomChar=function(P,I,oe,_e,Ce,ve){var ne=c.blockElementDefinitions[I];if(ne)return function(re,pe,Oe,De,Re,Me){for(var le=0;le<pe.length;le++){var he=pe[le],$=Re/8,ue=Me/8;re.fillRect(Oe+he.x*$,De+he.y*ue,he.w*$,he.h*ue)}}(P,ne,oe,_e,Ce,ve),!0;var ye=gr[I];if(ye)return function(re,pe,Oe,De,Re,Me){var le,he=_r.get(pe);he||(he=new Map,_r.set(pe,he));var $=re.fillStyle;if(typeof $!="string")throw new Error('Unexpected fillStyle type "'+$+'"');var ue=he.get($);if(!ue){var fe=pe[0].length,ge=pe.length,Le=document.createElement("canvas");Le.width=fe,Le.height=ge;var Te=(0,dr.throwIfFalsy)(Le.getContext("2d")),be=new ImageData(fe,ge),Pe=void 0,Ae=void 0,ke=void 0,Ie=void 0;if($.startsWith("#"))Pe=parseInt($.slice(1,3),16),Ae=parseInt($.slice(3,5),16),ke=parseInt($.slice(5,7),16),Ie=$.length>7&&parseInt($.slice(7,9),16)||1;else{if(!$.startsWith("rgba"))throw new Error('Unexpected fillStyle color format "'+$+'" when drawing pattern glyph');Pe=(le=fr($.substring(5,$.length-1).split(",").map(function(je){return parseFloat(je)}),4))[0],Ae=le[1],ke=le[2],Ie=le[3]}for(var Ee=0;Ee<ge;Ee++)for(var xe=0;xe<fe;xe++)be.data[4*(Ee*fe+xe)]=Pe,be.data[4*(Ee*fe+xe)+1]=Ae,be.data[4*(Ee*fe+xe)+2]=ke,be.data[4*(Ee*fe+xe)+3]=pe[Ee][xe]*(255*Ie);Te.putImageData(be,0,0),ue=(0,dr.throwIfFalsy)(re.createPattern(Le,null)),he.set($,ue)}re.fillStyle=ue,re.fillRect(Oe,De,Re,Me)}(P,ye,oe,_e,Ce,ve),!0;var we=c.boxDrawingDefinitions[I];if(we)return function(re,pe,Oe,De,Re,Me){var le,he,$,ue;re.strokeStyle=re.fillStyle;try{for(var fe=sr(Object.entries(pe)),ge=fe.next();!ge.done;ge=fe.next()){var Le=fr(ge.value,2),Te=Le[0],be=Le[1];re.beginPath(),re.lineWidth=window.devicePixelRatio*Number.parseInt(Te);var Pe=void 0;Pe=typeof be=="function"?be(.15,.15/Me*Re):be;try{for(var Ae=($=void 0,sr(Pe.split(" "))),ke=Ae.next();!ke.done;ke=Ae.next()){var Ie=ke.value,Ee=Ie[0],xe=vr[Ee];if(xe){var je=Ie.substring(1).split(",");je[0]&&je[1]&&xe(re,yr(je,Re,Me,Oe,De))}else console.error('Could not find drawing instructions for "'+Ee+'"')}}catch(ar){$={error:ar}}finally{try{ke&&!ke.done&&(ue=Ae.return)&&ue.call(Ae)}finally{if($)throw $.error}}re.stroke(),re.closePath()}}catch(ar){le={error:ar}}finally{try{ge&&!ge.done&&(he=fe.return)&&he.call(fe)}finally{if(le)throw le.error}}}(P,we,oe,_e,Ce,ve),!0;var He=c.powerlineDefinitions[I];return!!He&&(function(re,pe,Oe,De,Re,Me){var le,he;re.beginPath(),re.lineWidth=window.devicePixelRatio;try{for(var $=sr(pe.d.split(" ")),ue=$.next();!ue.done;ue=$.next()){var fe=ue.value,ge=fe[0],Le=vr[ge];if(Le){var Te=fe.substring(1).split(",");Te[0]&&Te[1]&&Le(re,yr(Te,Re,Me,Oe,De,pe.horizontalPadding))}else console.error('Could not find drawing instructions for "'+ge+'"')}}catch(be){le={error:be}}finally{try{ue&&!ue.done&&(he=$.return)&&he.call($)}finally{if(le)throw le.error}}pe.type===1?(re.strokeStyle=re.fillStyle,re.stroke()):re.fill(),re.closePath()}(P,He,oe,_e,Ce,ve),!0)};var _r=new Map;function pr(P,I,oe){return oe===void 0&&(oe=0),Math.max(Math.min(P,I),oe)}var vr={C:function(P,I){return P.bezierCurveTo(I[0],I[1],I[2],I[3],I[4],I[5])},L:function(P,I){return P.lineTo(I[0],I[1])},M:function(P,I){return P.moveTo(I[0],I[1])}};function yr(P,I,oe,_e,Ce,ve){ve===void 0&&(ve=0);var ne=P.map(function(He){return parseFloat(He)||parseInt(He)});if(ne.length<2)throw new Error("Too few arguments for instruction");for(var ye=0;ye<ne.length;ye+=2)ne[ye]*=I-2*ve*window.devicePixelRatio,ne[ye]!==0&&(ne[ye]=pr(Math.round(ne[ye]+.5)-.5,I,0)),ne[ye]+=_e+ve*window.devicePixelRatio;for(var we=1;we<ne.length;we+=2)ne[we]*=oe,ne[we]!==0&&(ne[we]=pr(Math.round(ne[we]+.5)-.5,oe,0)),ne[we]+=Ce;return ne}},3700:(W,c)=>{Object.defineProperty(c,"__esModule",{value:!0}),c.GridCache=void 0;var w=function(){function _(){this.cache=[]}return _.prototype.resize=function(u,f){for(var d=0;d<u;d++){this.cache.length<=d&&this.cache.push([]);for(var m=this.cache[d].length;m<f;m++)this.cache[d].push(void 0);this.cache[d].length=f}this.cache.length=u},_.prototype.clear=function(){for(var u=0;u<this.cache.length;u++)for(var f=0;f<this.cache[u].length;f++)this.cache[u][f]=void 0},_}();c.GridCache=w},5098:function(W,c,w){var _,u=this&&this.__extends||(_=function(h,i){return _=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},_(h,i)},function(h,i){if(typeof i!="function"&&i!==null)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function e(){this.constructor=h}_(h,i),h.prototype=i===null?Object.create(i):(e.prototype=i.prototype,new e)}),f=this&&this.__decorate||function(h,i,e,t){var r,n=arguments.length,l=n<3?i:t===null?t=Object.getOwnPropertyDescriptor(i,e):t;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")l=Reflect.decorate(h,i,e,t);else for(var a=h.length-1;a>=0;a--)(r=h[a])&&(l=(n<3?r(l):n>3?r(i,e,l):r(i,e))||l);return n>3&&l&&Object.defineProperty(i,e,l),l},d=this&&this.__param||function(h,i){return function(e,t){i(e,t,h)}};Object.defineProperty(c,"__esModule",{value:!0}),c.LinkRenderLayer=void 0;var m=w(1546),v=w(8803),o=w(2040),s=w(2585),p=function(h){function i(e,t,r,n,l,a,y,S,g){var b=h.call(this,e,"link",t,!0,r,n,y,S,g)||this;return l.onShowLinkUnderline(function(C){return b._onShowLinkUnderline(C)}),l.onHideLinkUnderline(function(C){return b._onHideLinkUnderline(C)}),a.onShowLinkUnderline(function(C){return b._onShowLinkUnderline(C)}),a.onHideLinkUnderline(function(C){return b._onHideLinkUnderline(C)}),b}return u(i,h),i.prototype.resize=function(e){h.prototype.resize.call(this,e),this._state=void 0},i.prototype.reset=function(){this._clearCurrentLink()},i.prototype._clearCurrentLink=function(){if(this._state){this._clearCells(this._state.x1,this._state.y1,this._state.cols-this._state.x1,1);var e=this._state.y2-this._state.y1-1;e>0&&this._clearCells(0,this._state.y1+1,this._state.cols,e),this._clearCells(0,this._state.y2,this._state.x2,1),this._state=void 0}},i.prototype._onShowLinkUnderline=function(e){if(e.fg===v.INVERTED_DEFAULT_COLOR?this._ctx.fillStyle=this._colors.background.css:e.fg&&(0,o.is256Color)(e.fg)?this._ctx.fillStyle=this._colors.ansi[e.fg].css:this._ctx.fillStyle=this._colors.foreground.css,e.y1===e.y2)this._fillBottomLineAtCells(e.x1,e.y1,e.x2-e.x1);else{this._fillBottomLineAtCells(e.x1,e.y1,e.cols-e.x1);for(var t=e.y1+1;t<e.y2;t++)this._fillBottomLineAtCells(0,t,e.cols);this._fillBottomLineAtCells(0,e.y2,e.x2)}this._state=e},i.prototype._onHideLinkUnderline=function(e){this._clearCurrentLink()},f([d(6,s.IBufferService),d(7,s.IOptionsService),d(8,s.IDecorationService)],i)}(m.BaseRenderLayer);c.LinkRenderLayer=p},3525:function(W,c,w){var _,u=this&&this.__extends||(_=function(a,y){return _=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(S,g){S.__proto__=g}||function(S,g){for(var b in g)Object.prototype.hasOwnProperty.call(g,b)&&(S[b]=g[b])},_(a,y)},function(a,y){if(typeof y!="function"&&y!==null)throw new TypeError("Class extends value "+String(y)+" is not a constructor or null");function S(){this.constructor=a}_(a,y),a.prototype=y===null?Object.create(y):(S.prototype=y.prototype,new S)}),f=this&&this.__decorate||function(a,y,S,g){var b,C=arguments.length,R=C<3?y:g===null?g=Object.getOwnPropertyDescriptor(y,S):g;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")R=Reflect.decorate(a,y,S,g);else for(var L=a.length-1;L>=0;L--)(b=a[L])&&(R=(C<3?b(R):C>3?b(y,S,R):b(y,S))||R);return C>3&&R&&Object.defineProperty(y,S,R),R},d=this&&this.__param||function(a,y){return function(S,g){y(S,g,a)}},m=this&&this.__values||function(a){var y=typeof Symbol=="function"&&Symbol.iterator,S=y&&a[y],g=0;if(S)return S.call(a);if(a&&typeof a.length=="number")return{next:function(){return a&&g>=a.length&&(a=void 0),{value:a&&a[g++],done:!a}}};throw new TypeError(y?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(c,"__esModule",{value:!0}),c.Renderer=void 0;var v=w(9596),o=w(4149),s=w(2512),p=w(5098),h=w(844),i=w(4725),e=w(2585),t=w(1420),r=w(8460),n=1,l=function(a){function y(S,g,b,C,R,L,k,x){var E=a.call(this)||this;E._colors=S,E._screenElement=g,E._bufferService=L,E._charSizeService=k,E._optionsService=x,E._id=n++,E._onRequestRedraw=new r.EventEmitter;var A=E._optionsService.rawOptions.allowTransparency;return E._renderLayers=[R.createInstance(v.TextRenderLayer,E._screenElement,0,E._colors,A,E._id),R.createInstance(o.SelectionRenderLayer,E._screenElement,1,E._colors,E._id),R.createInstance(p.LinkRenderLayer,E._screenElement,2,E._colors,E._id,b,C),R.createInstance(s.CursorRenderLayer,E._screenElement,3,E._colors,E._id,E._onRequestRedraw)],E.dimensions={scaledCharWidth:0,scaledCharHeight:0,scaledCellWidth:0,scaledCellHeight:0,scaledCharLeft:0,scaledCharTop:0,scaledCanvasWidth:0,scaledCanvasHeight:0,canvasWidth:0,canvasHeight:0,actualCellWidth:0,actualCellHeight:0},E._devicePixelRatio=window.devicePixelRatio,E._updateDimensions(),E.onOptionsChanged(),E}return u(y,a),Object.defineProperty(y.prototype,"onRequestRedraw",{get:function(){return this._onRequestRedraw.event},enumerable:!1,configurable:!0}),y.prototype.dispose=function(){var S,g;try{for(var b=m(this._renderLayers),C=b.next();!C.done;C=b.next())C.value.dispose()}catch(R){S={error:R}}finally{try{C&&!C.done&&(g=b.return)&&g.call(b)}finally{if(S)throw S.error}}a.prototype.dispose.call(this),(0,t.removeTerminalFromCache)(this._id)},y.prototype.onDevicePixelRatioChange=function(){this._devicePixelRatio!==window.devicePixelRatio&&(this._devicePixelRatio=window.devicePixelRatio,this.onResize(this._bufferService.cols,this._bufferService.rows))},y.prototype.setColors=function(S){var g,b;this._colors=S;try{for(var C=m(this._renderLayers),R=C.next();!R.done;R=C.next()){var L=R.value;L.setColors(this._colors),L.reset()}}catch(k){g={error:k}}finally{try{R&&!R.done&&(b=C.return)&&b.call(C)}finally{if(g)throw g.error}}},y.prototype.onResize=function(S,g){var b,C;this._updateDimensions();try{for(var R=m(this._renderLayers),L=R.next();!L.done;L=R.next())L.value.resize(this.dimensions)}catch(k){b={error:k}}finally{try{L&&!L.done&&(C=R.return)&&C.call(R)}finally{if(b)throw b.error}}this._screenElement.style.width=this.dimensions.canvasWidth+"px",this._screenElement.style.height=this.dimensions.canvasHeight+"px"},y.prototype.onCharSizeChanged=function(){this.onResize(this._bufferService.cols,this._bufferService.rows)},y.prototype.onBlur=function(){this._runOperation(function(S){return S.onBlur()})},y.prototype.onFocus=function(){this._runOperation(function(S){return S.onFocus()})},y.prototype.onSelectionChanged=function(S,g,b){b===void 0&&(b=!1),this._runOperation(function(C){return C.onSelectionChanged(S,g,b)}),this._colors.selectionForeground&&this._onRequestRedraw.fire({start:0,end:this._bufferService.rows-1})},y.prototype.onCursorMove=function(){this._runOperation(function(S){return S.onCursorMove()})},y.prototype.onOptionsChanged=function(){this._runOperation(function(S){return S.onOptionsChanged()})},y.prototype.clear=function(){this._runOperation(function(S){return S.reset()})},y.prototype._runOperation=function(S){var g,b;try{for(var C=m(this._renderLayers),R=C.next();!R.done;R=C.next())S(R.value)}catch(L){g={error:L}}finally{try{R&&!R.done&&(b=C.return)&&b.call(C)}finally{if(g)throw g.error}}},y.prototype.renderRows=function(S,g){var b,C;try{for(var R=m(this._renderLayers),L=R.next();!L.done;L=R.next())L.value.onGridChanged(S,g)}catch(k){b={error:k}}finally{try{L&&!L.done&&(C=R.return)&&C.call(R)}finally{if(b)throw b.error}}},y.prototype.clearTextureAtlas=function(){var S,g;try{for(var b=m(this._renderLayers),C=b.next();!C.done;C=b.next())C.value.clearTextureAtlas()}catch(R){S={error:R}}finally{try{C&&!C.done&&(g=b.return)&&g.call(b)}finally{if(S)throw S.error}}},y.prototype._updateDimensions=function(){this._charSizeService.hasValidSize&&(this.dimensions.scaledCharWidth=Math.floor(this._charSizeService.width*window.devicePixelRatio),this.dimensions.scaledCharHeight=Math.ceil(this._charSizeService.height*window.devicePixelRatio),this.dimensions.scaledCellHeight=Math.floor(this.dimensions.scaledCharHeight*this._optionsService.rawOptions.lineHeight),this.dimensions.scaledCharTop=this._optionsService.rawOptions.lineHeight===1?0:Math.round((this.dimensions.scaledCellHeight-this.dimensions.scaledCharHeight)/2),this.dimensions.scaledCellWidth=this.dimensions.scaledCharWidth+Math.round(this._optionsService.rawOptions.letterSpacing),this.dimensions.scaledCharLeft=Math.floor(this._optionsService.rawOptions.letterSpacing/2),this.dimensions.scaledCanvasHeight=this._bufferService.rows*this.dimensions.scaledCellHeight,this.dimensions.scaledCanvasWidth=this._bufferService.cols*this.dimensions.scaledCellWidth,this.dimensions.canvasHeight=Math.round(this.dimensions.scaledCanvasHeight/window.devicePixelRatio),this.dimensions.canvasWidth=Math.round(this.dimensions.scaledCanvasWidth/window.devicePixelRatio),this.dimensions.actualCellHeight=this.dimensions.canvasHeight/this._bufferService.rows,this.dimensions.actualCellWidth=this.dimensions.canvasWidth/this._bufferService.cols)},f([d(4,e.IInstantiationService),d(5,e.IBufferService),d(6,i.ICharSizeService),d(7,e.IOptionsService)],y)}(h.Disposable);c.Renderer=l},1752:(W,c)=>{function w(_){return 57508<=_&&_<=57558}Object.defineProperty(c,"__esModule",{value:!0}),c.excludeFromContrastRatioDemands=c.isPowerlineGlyph=c.throwIfFalsy=void 0,c.throwIfFalsy=function(_){if(!_)throw new Error("value must not be falsy");return _},c.isPowerlineGlyph=w,c.excludeFromContrastRatioDemands=function(_){return w(_)||function(u){return 9472<=u&&u<=9631}(_)}},4149:function(W,c,w){var _,u=this&&this.__extends||(_=function(s,p){return _=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,i){h.__proto__=i}||function(h,i){for(var e in i)Object.prototype.hasOwnProperty.call(i,e)&&(h[e]=i[e])},_(s,p)},function(s,p){if(typeof p!="function"&&p!==null)throw new TypeError("Class extends value "+String(p)+" is not a constructor or null");function h(){this.constructor=s}_(s,p),s.prototype=p===null?Object.create(p):(h.prototype=p.prototype,new h)}),f=this&&this.__decorate||function(s,p,h,i){var e,t=arguments.length,r=t<3?p:i===null?i=Object.getOwnPropertyDescriptor(p,h):i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(s,p,h,i);else for(var n=s.length-1;n>=0;n--)(e=s[n])&&(r=(t<3?e(r):t>3?e(p,h,r):e(p,h))||r);return t>3&&r&&Object.defineProperty(p,h,r),r},d=this&&this.__param||function(s,p){return function(h,i){p(h,i,s)}};Object.defineProperty(c,"__esModule",{value:!0}),c.SelectionRenderLayer=void 0;var m=w(1546),v=w(2585),o=function(s){function p(h,i,e,t,r,n,l){var a=s.call(this,h,"selection",i,!0,e,t,r,n,l)||this;return a._clearState(),a}return u(p,s),p.prototype._clearState=function(){this._state={start:void 0,end:void 0,columnSelectMode:void 0,ydisp:void 0}},p.prototype.resize=function(h){s.prototype.resize.call(this,h),this._clearState()},p.prototype.reset=function(){this._state.start&&this._state.end&&(this._clearState(),this._clearAll())},p.prototype.onSelectionChanged=function(h,i,e){if(s.prototype.onSelectionChanged.call(this,h,i,e),this._didStateChange(h,i,e,this._bufferService.buffer.ydisp))if(this._clearAll(),h&&i){var t=h[1]-this._bufferService.buffer.ydisp,r=i[1]-this._bufferService.buffer.ydisp,n=Math.max(t,0),l=Math.min(r,this._bufferService.rows-1);if(n>=this._bufferService.rows||l<0)this._state.ydisp=this._bufferService.buffer.ydisp;else{if(this._ctx.fillStyle=this._colors.selectionTransparent.css,e){var a=h[0],y=i[0]-a,S=l-n+1;this._fillCells(a,n,y,S)}else{a=t===n?h[0]:0;var g=n===r?i[0]:this._bufferService.cols;this._fillCells(a,n,g-a,1);var b=Math.max(l-n-1,0);if(this._fillCells(0,n+1,this._bufferService.cols,b),n!==l){var C=r===l?i[0]:this._bufferService.cols;this._fillCells(0,l,C,1)}}this._state.start=[h[0],h[1]],this._state.end=[i[0],i[1]],this._state.columnSelectMode=e,this._state.ydisp=this._bufferService.buffer.ydisp}}else this._clearState()},p.prototype._didStateChange=function(h,i,e,t){return!this._areCoordinatesEqual(h,this._state.start)||!this._areCoordinatesEqual(i,this._state.end)||e!==this._state.columnSelectMode||t!==this._state.ydisp},p.prototype._areCoordinatesEqual=function(h,i){return!(!h||!i)&&h[0]===i[0]&&h[1]===i[1]},f([d(4,v.IBufferService),d(5,v.IOptionsService),d(6,v.IDecorationService)],p)}(m.BaseRenderLayer);c.SelectionRenderLayer=o},9596:function(W,c,w){var _,u=this&&this.__extends||(_=function(n,l){return _=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,y){a.__proto__=y}||function(a,y){for(var S in y)Object.prototype.hasOwnProperty.call(y,S)&&(a[S]=y[S])},_(n,l)},function(n,l){if(typeof l!="function"&&l!==null)throw new TypeError("Class extends value "+String(l)+" is not a constructor or null");function a(){this.constructor=n}_(n,l),n.prototype=l===null?Object.create(l):(a.prototype=l.prototype,new a)}),f=this&&this.__decorate||function(n,l,a,y){var S,g=arguments.length,b=g<3?l:y===null?y=Object.getOwnPropertyDescriptor(l,a):y;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")b=Reflect.decorate(n,l,a,y);else for(var C=n.length-1;C>=0;C--)(S=n[C])&&(b=(g<3?S(b):g>3?S(l,a,b):S(l,a))||b);return g>3&&b&&Object.defineProperty(l,a,b),b},d=this&&this.__param||function(n,l){return function(a,y){l(a,y,n)}},m=this&&this.__values||function(n){var l=typeof Symbol=="function"&&Symbol.iterator,a=l&&n[l],y=0;if(a)return a.call(n);if(n&&typeof n.length=="number")return{next:function(){return n&&y>=n.length&&(n=void 0),{value:n&&n[y++],done:!n}}};throw new TypeError(l?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(c,"__esModule",{value:!0}),c.TextRenderLayer=void 0;var v=w(3700),o=w(1546),s=w(3734),p=w(643),h=w(511),i=w(2585),e=w(4725),t=w(4269),r=function(n){function l(a,y,S,g,b,C,R,L,k){var x=n.call(this,a,"text",y,g,S,b,C,R,k)||this;return x._characterJoinerService=L,x._characterWidth=0,x._characterFont="",x._characterOverlapCache={},x._workCell=new h.CellData,x._state=new v.GridCache,x}return u(l,n),l.prototype.resize=function(a){n.prototype.resize.call(this,a);var y=this._getFont(!1,!1);this._characterWidth===a.scaledCharWidth&&this._characterFont===y||(this._characterWidth=a.scaledCharWidth,this._characterFont=y,this._characterOverlapCache={}),this._state.clear(),this._state.resize(this._bufferService.cols,this._bufferService.rows)},l.prototype.reset=function(){this._state.clear(),this._clearAll()},l.prototype._forEachCell=function(a,y,S){for(var g=a;g<=y;g++)for(var b=g+this._bufferService.buffer.ydisp,C=this._bufferService.buffer.lines.get(b),R=this._characterJoinerService.getJoinedCharacters(b),L=0;L<this._bufferService.cols;L++){C.loadCell(L,this._workCell);var k=this._workCell,x=!1,E=L;if(k.getWidth()!==0){if(R.length>0&&L===R[0][0]){x=!0;var A=R.shift();k=new t.JoinedCellData(this._workCell,C.translateToString(!0,A[0],A[1]),A[1]-A[0]),E=A[1]-1}!x&&this._isOverlapping(k)&&E<C.length-1&&C.getCodePoint(E+1)===p.NULL_CELL_CODE&&(k.content&=-12582913,k.content|=2<<22),S(k,L,g),L=E}}},l.prototype._drawBackground=function(a,y){var S=this,g=this._ctx,b=this._bufferService.cols,C=0,R=0,L=null;g.save(),this._forEachCell(a,y,function(k,x,E){var A,T,U=null;k.isInverse()?U=k.isFgDefault()?S._colors.foreground.css:k.isFgRGB()?"rgb("+s.AttributeData.toColorRGB(k.getFgColor()).join(",")+")":S._colors.ansi[k.getFgColor()].css:k.isBgRGB()?U="rgb("+s.AttributeData.toColorRGB(k.getBgColor()).join(",")+")":k.isBgPalette()&&(U=S._colors.ansi[k.getBgColor()].css);var q=!1;try{for(var j=m(S._decorationService.getDecorationsAtCell(x,S._bufferService.buffer.ydisp+E)),z=j.next();!z.done;z=j.next()){var N=z.value;N.options.layer!=="top"&&q||(N.backgroundColorRGB&&(U=N.backgroundColorRGB.css),q=N.options.layer==="top")}}catch(M){A={error:M}}finally{try{z&&!z.done&&(T=j.return)&&T.call(j)}finally{if(A)throw A.error}}L===null&&(C=x,R=E),E!==R?(g.fillStyle=L||"",S._fillCells(C,R,b-C,1),C=x,R=E):L!==U&&(g.fillStyle=L||"",S._fillCells(C,R,x-C,1),C=x,R=E),L=U}),L!==null&&(g.fillStyle=L,this._fillCells(C,R,b-C,1)),g.restore()},l.prototype._drawForeground=function(a,y){var S=this;this._forEachCell(a,y,function(g,b,C){if(!g.isInvisible()&&(S._drawChars(g,b,C),g.isUnderline()||g.isStrikethrough())){if(S._ctx.save(),g.isInverse())if(g.isBgDefault())S._ctx.fillStyle=S._colors.background.css;else if(g.isBgRGB())S._ctx.fillStyle="rgb("+s.AttributeData.toColorRGB(g.getBgColor()).join(",")+")";else{var R=g.getBgColor();S._optionsService.rawOptions.drawBoldTextInBrightColors&&g.isBold()&&R<8&&(R+=8),S._ctx.fillStyle=S._colors.ansi[R].css}else if(g.isFgDefault())S._ctx.fillStyle=S._colors.foreground.css;else if(g.isFgRGB())S._ctx.fillStyle="rgb("+s.AttributeData.toColorRGB(g.getFgColor()).join(",")+")";else{var L=g.getFgColor();S._optionsService.rawOptions.drawBoldTextInBrightColors&&g.isBold()&&L<8&&(L+=8),S._ctx.fillStyle=S._colors.ansi[L].css}g.isStrikethrough()&&S._fillMiddleLineAtCells(b,C,g.getWidth()),g.isUnderline()&&S._fillBottomLineAtCells(b,C,g.getWidth()),S._ctx.restore()}})},l.prototype.onGridChanged=function(a,y){this._state.cache.length!==0&&(this._charAtlas&&this._charAtlas.beginFrame(),this._clearCells(0,a,this._bufferService.cols,y-a+1),this._drawBackground(a,y),this._drawForeground(a,y))},l.prototype.onOptionsChanged=function(){this._setTransparency(this._optionsService.rawOptions.allowTransparency)},l.prototype._isOverlapping=function(a){if(a.getWidth()!==1||a.getCode()<256)return!1;var y=a.getChars();if(this._characterOverlapCache.hasOwnProperty(y))return this._characterOverlapCache[y];this._ctx.save(),this._ctx.font=this._characterFont;var S=Math.floor(this._ctx.measureText(y).width)>this._characterWidth;return this._ctx.restore(),this._characterOverlapCache[y]=S,S},f([d(5,i.IBufferService),d(6,i.IOptionsService),d(7,e.ICharacterJoinerService),d(8,i.IDecorationService)],l)}(o.BaseRenderLayer);c.TextRenderLayer=r},9616:(W,c)=>{Object.defineProperty(c,"__esModule",{value:!0}),c.BaseCharAtlas=void 0;var w=function(){function _(){this._didWarmUp=!1}return _.prototype.dispose=function(){},_.prototype.warmUp=function(){this._didWarmUp||(this._doWarmUp(),this._didWarmUp=!0)},_.prototype._doWarmUp=function(){},_.prototype.clear=function(){},_.prototype.beginFrame=function(){},_}();c.BaseCharAtlas=w},1420:(W,c,w)=>{Object.defineProperty(c,"__esModule",{value:!0}),c.removeTerminalFromCache=c.acquireCharAtlas=void 0;var _=w(2040),u=w(1906),f=[];c.acquireCharAtlas=function(d,m,v,o,s){for(var p=(0,_.generateConfig)(o,s,d,v),h=0;h<f.length;h++){var i=(e=f[h]).ownedBy.indexOf(m);if(i>=0){if((0,_.configEquals)(e.config,p))return e.atlas;e.ownedBy.length===1?(e.atlas.dispose(),f.splice(h,1)):e.ownedBy.splice(i,1);break}}for(h=0;h<f.length;h++){var e=f[h];if((0,_.configEquals)(e.config,p))return e.ownedBy.push(m),e.atlas}var t={atlas:new u.DynamicCharAtlas(document,p),config:p,ownedBy:[m]};return f.push(t),t.atlas},c.removeTerminalFromCache=function(d){for(var m=0;m<f.length;m++){var v=f[m].ownedBy.indexOf(d);if(v!==-1){f[m].ownedBy.length===1?(f[m].atlas.dispose(),f.splice(m,1)):f[m].ownedBy.splice(v,1);break}}}},2040:(W,c,w)=>{Object.defineProperty(c,"__esModule",{value:!0}),c.is256Color=c.configEquals=c.generateConfig=void 0;var _=w(643);c.generateConfig=function(u,f,d,m){var v={foreground:m.foreground,background:m.background,cursor:void 0,cursorAccent:void 0,selection:void 0,ansi:m.ansi.slice()};return{devicePixelRatio:window.devicePixelRatio,scaledCharWidth:u,scaledCharHeight:f,fontFamily:d.fontFamily,fontSize:d.fontSize,fontWeight:d.fontWeight,fontWeightBold:d.fontWeightBold,allowTransparency:d.allowTransparency,colors:v}},c.configEquals=function(u,f){for(var d=0;d<u.colors.ansi.length;d++)if(u.colors.ansi[d].rgba!==f.colors.ansi[d].rgba)return!1;return u.devicePixelRatio===f.devicePixelRatio&&u.fontFamily===f.fontFamily&&u.fontSize===f.fontSize&&u.fontWeight===f.fontWeight&&u.fontWeightBold===f.fontWeightBold&&u.allowTransparency===f.allowTransparency&&u.scaledCharWidth===f.scaledCharWidth&&u.scaledCharHeight===f.scaledCharHeight&&u.colors.foreground===f.colors.foreground&&u.colors.background===f.colors.background},c.is256Color=function(u){return u<_.DEFAULT_COLOR}},8803:(W,c,w)=>{Object.defineProperty(c,"__esModule",{value:!0}),c.CHAR_ATLAS_CELL_SPACING=c.TEXT_BASELINE=c.DIM_OPACITY=c.INVERTED_DEFAULT_COLOR=void 0;var _=w(6114);c.INVERTED_DEFAULT_COLOR=257,c.DIM_OPACITY=.5,c.TEXT_BASELINE=_.isFirefox||_.isLegacyEdge?"bottom":"ideographic",c.CHAR_ATLAS_CELL_SPACING=1},1906:function(W,c,w){var _,u=this&&this.__extends||(_=function(a,y){return _=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(S,g){S.__proto__=g}||function(S,g){for(var b in g)Object.prototype.hasOwnProperty.call(g,b)&&(S[b]=g[b])},_(a,y)},function(a,y){if(typeof y!="function"&&y!==null)throw new TypeError("Class extends value "+String(y)+" is not a constructor or null");function S(){this.constructor=a}_(a,y),a.prototype=y===null?Object.create(y):(S.prototype=y.prototype,new S)});Object.defineProperty(c,"__esModule",{value:!0}),c.NoneCharAtlas=c.DynamicCharAtlas=c.getGlyphCacheKey=void 0;var f=w(8803),d=w(9616),m=w(5680),v=w(7001),o=w(6114),s=w(1752),p=w(8055),h=1024,i=1024,e={css:"rgba(0, 0, 0, 0)",rgba:0};function t(a){return a.code<<21|a.bg<<12|a.fg<<3|(a.bold?0:4)+(a.dim?0:2)+(a.italic?0:1)}c.getGlyphCacheKey=t;var r=function(a){function y(S,g){var b=a.call(this)||this;b._config=g,b._drawToCacheCount=0,b._glyphsWaitingOnBitmap=[],b._bitmapCommitTimeout=null,b._bitmap=null,b._cacheCanvas=S.createElement("canvas"),b._cacheCanvas.width=h,b._cacheCanvas.height=i,b._cacheCtx=(0,s.throwIfFalsy)(b._cacheCanvas.getContext("2d",{alpha:!0}));var C=S.createElement("canvas");C.width=b._config.scaledCharWidth,C.height=b._config.scaledCharHeight,b._tmpCtx=(0,s.throwIfFalsy)(C.getContext("2d",{alpha:b._config.allowTransparency})),b._width=Math.floor(h/b._config.scaledCharWidth),b._height=Math.floor(i/b._config.scaledCharHeight);var R=b._width*b._height;return b._cacheMap=new v.LRUMap(R),b._cacheMap.prealloc(R),b}return u(y,a),y.prototype.dispose=function(){this._bitmapCommitTimeout!==null&&(window.clearTimeout(this._bitmapCommitTimeout),this._bitmapCommitTimeout=null)},y.prototype.beginFrame=function(){this._drawToCacheCount=0},y.prototype.clear=function(){if(this._cacheMap.size>0){var S=this._width*this._height;this._cacheMap=new v.LRUMap(S),this._cacheMap.prealloc(S)}this._cacheCtx.clearRect(0,0,h,i),this._tmpCtx.clearRect(0,0,this._config.scaledCharWidth,this._config.scaledCharHeight)},y.prototype.draw=function(S,g,b,C){if(g.code===32)return!0;if(!this._canCache(g))return!1;var R=t(g),L=this._cacheMap.get(R);if(L!=null)return this._drawFromCache(S,L,b,C),!0;if(this._drawToCacheCount<100){var k;k=this._cacheMap.size<this._cacheMap.capacity?this._cacheMap.size:this._cacheMap.peek().index;var x=this._drawToCache(g,k);return this._cacheMap.set(R,x),this._drawFromCache(S,x,b,C),!0}return!1},y.prototype._canCache=function(S){return S.code<256},y.prototype._toCoordinateX=function(S){return S%this._width*this._config.scaledCharWidth},y.prototype._toCoordinateY=function(S){return Math.floor(S/this._width)*this._config.scaledCharHeight},y.prototype._drawFromCache=function(S,g,b,C){if(!g.isEmpty){var R=this._toCoordinateX(g.index),L=this._toCoordinateY(g.index);S.drawImage(g.inBitmap?this._bitmap:this._cacheCanvas,R,L,this._config.scaledCharWidth,this._config.scaledCharHeight,b,C,this._config.scaledCharWidth,this._config.scaledCharHeight)}},y.prototype._getColorFromAnsiIndex=function(S){return S<this._config.colors.ansi.length?this._config.colors.ansi[S]:m.DEFAULT_ANSI_COLORS[S]},y.prototype._getBackgroundColor=function(S){return this._config.allowTransparency?e:S.bg===f.INVERTED_DEFAULT_COLOR?this._config.colors.foreground:S.bg<256?this._getColorFromAnsiIndex(S.bg):this._config.colors.background},y.prototype._getForegroundColor=function(S){return S.fg===f.INVERTED_DEFAULT_COLOR?p.color.opaque(this._config.colors.background):S.fg<256?this._getColorFromAnsiIndex(S.fg):this._config.colors.foreground},y.prototype._drawToCache=function(S,g){this._drawToCacheCount++,this._tmpCtx.save();var b=this._getBackgroundColor(S);this._tmpCtx.globalCompositeOperation="copy",this._tmpCtx.fillStyle=b.css,this._tmpCtx.fillRect(0,0,this._config.scaledCharWidth,this._config.scaledCharHeight),this._tmpCtx.globalCompositeOperation="source-over";var C=S.bold?this._config.fontWeightBold:this._config.fontWeight,R=S.italic?"italic":"";this._tmpCtx.font=R+" "+C+" "+this._config.fontSize*this._config.devicePixelRatio+"px "+this._config.fontFamily,this._tmpCtx.textBaseline=f.TEXT_BASELINE,this._tmpCtx.fillStyle=this._getForegroundColor(S).css,S.dim&&(this._tmpCtx.globalAlpha=f.DIM_OPACITY),this._tmpCtx.fillText(S.chars,0,this._config.scaledCharHeight);var L=this._tmpCtx.getImageData(0,0,this._config.scaledCharWidth,this._config.scaledCharHeight),k=!1;if(this._config.allowTransparency||(k=l(L,b)),k&&S.chars==="_"&&!this._config.allowTransparency)for(var x=1;x<=5&&(this._tmpCtx.fillText(S.chars,0,this._config.scaledCharHeight-x),k=l(L=this._tmpCtx.getImageData(0,0,this._config.scaledCharWidth,this._config.scaledCharHeight),b));x++);this._tmpCtx.restore();var E=this._toCoordinateX(g),A=this._toCoordinateY(g);this._cacheCtx.putImageData(L,E,A);var T={index:g,isEmpty:k,inBitmap:!1};return this._addGlyphToBitmap(T),T},y.prototype._addGlyphToBitmap=function(S){var g=this;!("createImageBitmap"in window)||o.isFirefox||o.isSafari||(this._glyphsWaitingOnBitmap.push(S),this._bitmapCommitTimeout===null&&(this._bitmapCommitTimeout=window.setTimeout(function(){return g._generateBitmap()},100)))},y.prototype._generateBitmap=function(){var S=this,g=this._glyphsWaitingOnBitmap;this._glyphsWaitingOnBitmap=[],window.createImageBitmap(this._cacheCanvas).then(function(b){S._bitmap=b;for(var C=0;C<g.length;C++)g[C].inBitmap=!0}),this._bitmapCommitTimeout=null},y}(d.BaseCharAtlas);c.DynamicCharAtlas=r;var n=function(a){function y(S,g){return a.call(this)||this}return u(y,a),y.prototype.draw=function(S,g,b,C){return!1},y}(d.BaseCharAtlas);function l(a,y){for(var S=!0,g=y.rgba>>>24,b=y.rgba>>>16&255,C=y.rgba>>>8&255,R=0;R<a.data.length;R+=4)a.data[R]===g&&a.data[R+1]===b&&a.data[R+2]===C?a.data[R+3]=0:S=!1;return S}c.NoneCharAtlas=n},7001:(W,c)=>{Object.defineProperty(c,"__esModule",{value:!0}),c.LRUMap=void 0;var w=function(){function _(u){this.capacity=u,this._map={},this._head=null,this._tail=null,this._nodePool=[],this.size=0}return _.prototype._unlinkNode=function(u){var f=u.prev,d=u.next;u===this._head&&(this._head=d),u===this._tail&&(this._tail=f),f!==null&&(f.next=d),d!==null&&(d.prev=f)},_.prototype._appendNode=function(u){var f=this._tail;f!==null&&(f.next=u),u.prev=f,u.next=null,this._tail=u,this._head===null&&(this._head=u)},_.prototype.prealloc=function(u){for(var f=this._nodePool,d=0;d<u;d++)f.push({prev:null,next:null,key:null,value:null})},_.prototype.get=function(u){var f=this._map[u];return f!==void 0?(this._unlinkNode(f),this._appendNode(f),f.value):null},_.prototype.peekValue=function(u){var f=this._map[u];return f!==void 0?f.value:null},_.prototype.peek=function(){var u=this._head;return u===null?null:u.value},_.prototype.set=function(u,f){var d=this._map[u];if(d!==void 0)d=this._map[u],this._unlinkNode(d),d.value=f;else if(this.size>=this.capacity)d=this._head,this._unlinkNode(d),delete this._map[d.key],d.key=u,d.value=f,this._map[u]=d;else{var m=this._nodePool;m.length>0?((d=m.pop()).key=u,d.value=f):d={prev:null,next:null,key:u,value:f},this._map[u]=d,this.size++}this._appendNode(d)},_}();c.LRUMap=w},1296:function(W,c,w){var _,u=this&&this.__extends||(_=function(g,b){return _=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(C,R){C.__proto__=R}||function(C,R){for(var L in R)Object.prototype.hasOwnProperty.call(R,L)&&(C[L]=R[L])},_(g,b)},function(g,b){if(typeof b!="function"&&b!==null)throw new TypeError("Class extends value "+String(b)+" is not a constructor or null");function C(){this.constructor=g}_(g,b),g.prototype=b===null?Object.create(b):(C.prototype=b.prototype,new C)}),f=this&&this.__decorate||function(g,b,C,R){var L,k=arguments.length,x=k<3?b:R===null?R=Object.getOwnPropertyDescriptor(b,C):R;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")x=Reflect.decorate(g,b,C,R);else for(var E=g.length-1;E>=0;E--)(L=g[E])&&(x=(k<3?L(x):k>3?L(b,C,x):L(b,C))||x);return k>3&&x&&Object.defineProperty(b,C,x),x},d=this&&this.__param||function(g,b){return function(C,R){b(C,R,g)}},m=this&&this.__values||function(g){var b=typeof Symbol=="function"&&Symbol.iterator,C=b&&g[b],R=0;if(C)return C.call(g);if(g&&typeof g.length=="number")return{next:function(){return g&&R>=g.length&&(g=void 0),{value:g&&g[R++],done:!g}}};throw new TypeError(b?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(c,"__esModule",{value:!0}),c.DomRenderer=void 0;var v=w(3787),o=w(8803),s=w(844),p=w(4725),h=w(2585),i=w(8460),e=w(8055),t=w(9631),r="xterm-dom-renderer-owner-",n="xterm-fg-",l="xterm-bg-",a="xterm-focus",y=1,S=function(g){function b(C,R,L,k,x,E,A,T,U,q){var j=g.call(this)||this;return j._colors=C,j._element=R,j._screenElement=L,j._viewportElement=k,j._linkifier=x,j._linkifier2=E,j._charSizeService=T,j._optionsService=U,j._bufferService=q,j._terminalClass=y++,j._rowElements=[],j._rowContainer=document.createElement("div"),j._rowContainer.classList.add("xterm-rows"),j._rowContainer.style.lineHeight="normal",j._rowContainer.setAttribute("aria-hidden","true"),j._refreshRowElements(j._bufferService.cols,j._bufferService.rows),j._selectionContainer=document.createElement("div"),j._selectionContainer.classList.add("xterm-selection"),j._selectionContainer.setAttribute("aria-hidden","true"),j.dimensions={scaledCharWidth:0,scaledCharHeight:0,scaledCellWidth:0,scaledCellHeight:0,scaledCharLeft:0,scaledCharTop:0,scaledCanvasWidth:0,scaledCanvasHeight:0,canvasWidth:0,canvasHeight:0,actualCellWidth:0,actualCellHeight:0},j._updateDimensions(),j._injectCss(),j._rowFactory=A.createInstance(v.DomRendererRowFactory,document,j._colors),j._element.classList.add(r+j._terminalClass),j._screenElement.appendChild(j._rowContainer),j._screenElement.appendChild(j._selectionContainer),j.register(j._linkifier.onShowLinkUnderline(function(z){return j._onLinkHover(z)})),j.register(j._linkifier.onHideLinkUnderline(function(z){return j._onLinkLeave(z)})),j.register(j._linkifier2.onShowLinkUnderline(function(z){return j._onLinkHover(z)})),j.register(j._linkifier2.onHideLinkUnderline(function(z){return j._onLinkLeave(z)})),j}return u(b,g),Object.defineProperty(b.prototype,"onRequestRedraw",{get:function(){return new i.EventEmitter().event},enumerable:!1,configurable:!0}),b.prototype.dispose=function(){this._element.classList.remove(r+this._terminalClass),(0,t.removeElementFromParent)(this._rowContainer,this._selectionContainer,this._themeStyleElement,this._dimensionsStyleElement),g.prototype.dispose.call(this)},b.prototype._updateDimensions=function(){var C,R;this.dimensions.scaledCharWidth=this._charSizeService.width*window.devicePixelRatio,this.dimensions.scaledCharHeight=Math.ceil(this._charSizeService.height*window.devicePixelRatio),this.dimensions.scaledCellWidth=this.dimensions.scaledCharWidth+Math.round(this._optionsService.rawOptions.letterSpacing),this.dimensions.scaledCellHeight=Math.floor(this.dimensions.scaledCharHeight*this._optionsService.rawOptions.lineHeight),this.dimensions.scaledCharLeft=0,this.dimensions.scaledCharTop=0,this.dimensions.scaledCanvasWidth=this.dimensions.scaledCellWidth*this._bufferService.cols,this.dimensions.scaledCanvasHeight=this.dimensions.scaledCellHeight*this._bufferService.rows,this.dimensions.canvasWidth=Math.round(this.dimensions.scaledCanvasWidth/window.devicePixelRatio),this.dimensions.canvasHeight=Math.round(this.dimensions.scaledCanvasHeight/window.devicePixelRatio),this.dimensions.actualCellWidth=this.dimensions.canvasWidth/this._bufferService.cols,this.dimensions.actualCellHeight=this.dimensions.canvasHeight/this._bufferService.rows;try{for(var L=m(this._rowElements),k=L.next();!k.done;k=L.next()){var x=k.value;x.style.width=this.dimensions.canvasWidth+"px",x.style.height=this.dimensions.actualCellHeight+"px",x.style.lineHeight=this.dimensions.actualCellHeight+"px",x.style.overflow="hidden"}}catch(A){C={error:A}}finally{try{k&&!k.done&&(R=L.return)&&R.call(L)}finally{if(C)throw C.error}}this._dimensionsStyleElement||(this._dimensionsStyleElement=document.createElement("style"),this._screenElement.appendChild(this._dimensionsStyleElement));var E=this._terminalSelector+" .xterm-rows span { display: inline-block; height: 100%; vertical-align: top; width: "+this.dimensions.actualCellWidth+"px}";this._dimensionsStyleElement.textContent=E,this._selectionContainer.style.height=this._viewportElement.style.height,this._screenElement.style.width=this.dimensions.canvasWidth+"px",this._screenElement.style.height=this.dimensions.canvasHeight+"px"},b.prototype.setColors=function(C){this._colors=C,this._injectCss()},b.prototype._injectCss=function(){var C=this;this._themeStyleElement||(this._themeStyleElement=document.createElement("style"),this._screenElement.appendChild(this._themeStyleElement));var R=this._terminalSelector+" .xterm-rows { color: "+this._colors.foreground.css+"; font-family: "+this._optionsService.rawOptions.fontFamily+"; font-size: "+this._optionsService.rawOptions.fontSize+"px;}";R+=this._terminalSelector+" span:not(."+v.BOLD_CLASS+") { font-weight: "+this._optionsService.rawOptions.fontWeight+";}"+this._terminalSelector+" span."+v.BOLD_CLASS+" { font-weight: "+this._optionsService.rawOptions.fontWeightBold+";}"+this._terminalSelector+" span."+v.ITALIC_CLASS+" { font-style: italic;}",R+="@keyframes blink_box_shadow_"+this._terminalClass+" { 50% { box-shadow: none; }}",R+="@keyframes blink_block_"+this._terminalClass+" { 0% { background-color: "+this._colors.cursor.css+"; color: "+this._colors.cursorAccent.css+"; } 50% { background-color: "+this._colors.cursorAccent.css+"; color: "+this._colors.cursor.css+"; }}",R+=this._terminalSelector+" .xterm-rows:not(.xterm-focus) ."+v.CURSOR_CLASS+"."+v.CURSOR_STYLE_BLOCK_CLASS+" { outline: 1px solid "+this._colors.cursor.css+"; outline-offset: -1px;}"+this._terminalSelector+" .xterm-rows.xterm-focus ."+v.CURSOR_CLASS+"."+v.CURSOR_BLINK_CLASS+":not(."+v.CURSOR_STYLE_BLOCK_CLASS+") { animation: blink_box_shadow_"+this._terminalClass+" 1s step-end infinite;}"+this._terminalSelector+" .xterm-rows.xterm-focus ."+v.CURSOR_CLASS+"."+v.CURSOR_BLINK_CLASS+"."+v.CURSOR_STYLE_BLOCK_CLASS+" { animation: blink_block_"+this._terminalClass+" 1s step-end infinite;}"+this._terminalSelector+" .xterm-rows.xterm-focus ."+v.CURSOR_CLASS+"."+v.CURSOR_STYLE_BLOCK_CLASS+" { background-color: "+this._colors.cursor.css+"; color: "+this._colors.cursorAccent.css+";}"+this._terminalSelector+" .xterm-rows ."+v.CURSOR_CLASS+"."+v.CURSOR_STYLE_BAR_CLASS+" { box-shadow: "+this._optionsService.rawOptions.cursorWidth+"px 0 0 "+this._colors.cursor.css+" inset;}"+this._terminalSelector+" .xterm-rows ."+v.CURSOR_CLASS+"."+v.CURSOR_STYLE_UNDERLINE_CLASS+" { box-shadow: 0 -1px 0 "+this._colors.cursor.css+" inset;}",R+=this._terminalSelector+" .xterm-selection { position: absolute; top: 0; left: 0; z-index: 1; pointer-events: none;}"+this._terminalSelector+" .xterm-selection div { position: absolute; background-color: "+this._colors.selectionOpaque.css+";}",this._colors.ansi.forEach(function(L,k){R+=C._terminalSelector+" ."+n+k+" { color: "+L.css+"; }"+C._terminalSelector+" ."+l+k+" { background-color: "+L.css+"; }"}),R+=this._terminalSelector+" ."+n+o.INVERTED_DEFAULT_COLOR+" { color: "+e.color.opaque(this._colors.background).css+"; }"+this._terminalSelector+" ."+l+o.INVERTED_DEFAULT_COLOR+" { background-color: "+this._colors.foreground.css+"; }",this._themeStyleElement.textContent=R},b.prototype.onDevicePixelRatioChange=function(){this._updateDimensions()},b.prototype._refreshRowElements=function(C,R){for(var L=this._rowElements.length;L<=R;L++){var k=document.createElement("div");this._rowContainer.appendChild(k),this._rowElements.push(k)}for(;this._rowElements.length>R;)this._rowContainer.removeChild(this._rowElements.pop())},b.prototype.onResize=function(C,R){this._refreshRowElements(C,R),this._updateDimensions()},b.prototype.onCharSizeChanged=function(){this._updateDimensions()},b.prototype.onBlur=function(){this._rowContainer.classList.remove(a)},b.prototype.onFocus=function(){this._rowContainer.classList.add(a)},b.prototype.onSelectionChanged=function(C,R,L){for(;this._selectionContainer.children.length;)this._selectionContainer.removeChild(this._selectionContainer.children[0]);if(this._rowFactory.onSelectionChanged(C,R,L),this.renderRows(0,this._bufferService.rows-1),C&&R){var k=C[1]-this._bufferService.buffer.ydisp,x=R[1]-this._bufferService.buffer.ydisp,E=Math.max(k,0),A=Math.min(x,this._bufferService.rows-1);if(!(E>=this._bufferService.rows||A<0)){var T=document.createDocumentFragment();if(L){var U=C[0]>R[0];T.appendChild(this._createSelectionElement(E,U?R[0]:C[0],U?C[0]:R[0],A-E+1))}else{var q=k===E?C[0]:0,j=E===x?R[0]:this._bufferService.cols;T.appendChild(this._createSelectionElement(E,q,j));var z=A-E-1;if(T.appendChild(this._createSelectionElement(E+1,0,this._bufferService.cols,z)),E!==A){var N=x===A?R[0]:this._bufferService.cols;T.appendChild(this._createSelectionElement(A,0,N))}}this._selectionContainer.appendChild(T)}}},b.prototype._createSelectionElement=function(C,R,L,k){k===void 0&&(k=1);var x=document.createElement("div");return x.style.height=k*this.dimensions.actualCellHeight+"px",x.style.top=C*this.dimensions.actualCellHeight+"px",x.style.left=R*this.dimensions.actualCellWidth+"px",x.style.width=this.dimensions.actualCellWidth*(L-R)+"px",x},b.prototype.onCursorMove=function(){},b.prototype.onOptionsChanged=function(){this._updateDimensions(),this._injectCss()},b.prototype.clear=function(){var C,R;try{for(var L=m(this._rowElements),k=L.next();!k.done;k=L.next())k.value.innerText=""}catch(x){C={error:x}}finally{try{k&&!k.done&&(R=L.return)&&R.call(L)}finally{if(C)throw C.error}}},b.prototype.renderRows=function(C,R){for(var L=this._bufferService.buffer.ybase+this._bufferService.buffer.y,k=Math.min(this._bufferService.buffer.x,this._bufferService.cols-1),x=this._optionsService.rawOptions.cursorBlink,E=C;E<=R;E++){var A=this._rowElements[E];A.innerText="";var T=E+this._bufferService.buffer.ydisp,U=this._bufferService.buffer.lines.get(T),q=this._optionsService.rawOptions.cursorStyle;A.appendChild(this._rowFactory.createRow(U,T,T===L,q,k,x,this.dimensions.actualCellWidth,this._bufferService.cols))}},Object.defineProperty(b.prototype,"_terminalSelector",{get:function(){return"."+r+this._terminalClass},enumerable:!1,configurable:!0}),b.prototype._onLinkHover=function(C){this._setCellUnderline(C.x1,C.x2,C.y1,C.y2,C.cols,!0)},b.prototype._onLinkLeave=function(C){this._setCellUnderline(C.x1,C.x2,C.y1,C.y2,C.cols,!1)},b.prototype._setCellUnderline=function(C,R,L,k,x,E){for(;C!==R||L!==k;){var A=this._rowElements[L];if(!A)return;var T=A.children[C];T&&(T.style.textDecoration=E?"underline":"none"),++C>=x&&(C=0,L++)}},f([d(6,h.IInstantiationService),d(7,p.ICharSizeService),d(8,h.IOptionsService),d(9,h.IBufferService)],b)}(s.Disposable);c.DomRenderer=S},3787:function(W,c,w){var _=this&&this.__decorate||function(r,n,l,a){var y,S=arguments.length,g=S<3?n:a===null?a=Object.getOwnPropertyDescriptor(n,l):a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")g=Reflect.decorate(r,n,l,a);else for(var b=r.length-1;b>=0;b--)(y=r[b])&&(g=(S<3?y(g):S>3?y(n,l,g):y(n,l))||g);return S>3&&g&&Object.defineProperty(n,l,g),g},u=this&&this.__param||function(r,n){return function(l,a){n(l,a,r)}},f=this&&this.__values||function(r){var n=typeof Symbol=="function"&&Symbol.iterator,l=n&&r[n],a=0;if(l)return l.call(r);if(r&&typeof r.length=="number")return{next:function(){return r&&a>=r.length&&(r=void 0),{value:r&&r[a++],done:!r}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(c,"__esModule",{value:!0}),c.DomRendererRowFactory=c.CURSOR_STYLE_UNDERLINE_CLASS=c.CURSOR_STYLE_BAR_CLASS=c.CURSOR_STYLE_BLOCK_CLASS=c.CURSOR_BLINK_CLASS=c.CURSOR_CLASS=c.STRIKETHROUGH_CLASS=c.UNDERLINE_CLASS=c.ITALIC_CLASS=c.DIM_CLASS=c.BOLD_CLASS=void 0;var d=w(8803),m=w(643),v=w(511),o=w(2585),s=w(8055),p=w(4725),h=w(4269),i=w(1752);c.BOLD_CLASS="xterm-bold",c.DIM_CLASS="xterm-dim",c.ITALIC_CLASS="xterm-italic",c.UNDERLINE_CLASS="xterm-underline",c.STRIKETHROUGH_CLASS="xterm-strikethrough",c.CURSOR_CLASS="xterm-cursor",c.CURSOR_BLINK_CLASS="xterm-cursor-blink",c.CURSOR_STYLE_BLOCK_CLASS="xterm-cursor-block",c.CURSOR_STYLE_BAR_CLASS="xterm-cursor-bar",c.CURSOR_STYLE_UNDERLINE_CLASS="xterm-cursor-underline";var e=function(){function r(n,l,a,y,S,g){this._document=n,this._colors=l,this._characterJoinerService=a,this._optionsService=y,this._coreService=S,this._decorationService=g,this._workCell=new v.CellData,this._columnSelectMode=!1}return r.prototype.setColors=function(n){this._colors=n},r.prototype.onSelectionChanged=function(n,l,a){this._selectionStart=n,this._selectionEnd=l,this._columnSelectMode=a},r.prototype.createRow=function(n,l,a,y,S,g,b,C){for(var R,L,k=this._document.createDocumentFragment(),x=this._characterJoinerService.getJoinedCharacters(l),E=0,A=Math.min(n.length,C)-1;A>=0;A--)if(n.loadCell(A,this._workCell).getCode()!==m.NULL_CELL_CODE||a&&A===S){E=A+1;break}for(A=0;A<E;A++){n.loadCell(A,this._workCell);var T=this._workCell.getWidth();if(T!==0){var U=!1,q=A,j=this._workCell;if(x.length>0&&A===x[0][0]){U=!0;var z=x.shift();j=new h.JoinedCellData(this._workCell,n.translateToString(!0,z[0],z[1]),z[1]-z[0]),q=z[1]-1,T=j.getWidth()}var N=this._document.createElement("span");if(T>1&&(N.style.width=b*T+"px"),U&&(N.style.display="inline",S>=A&&S<=q&&(S=A)),!this._coreService.isCursorHidden&&a&&A===S)switch(N.classList.add(c.CURSOR_CLASS),g&&N.classList.add(c.CURSOR_BLINK_CLASS),y){case"bar":N.classList.add(c.CURSOR_STYLE_BAR_CLASS);break;case"underline":N.classList.add(c.CURSOR_STYLE_UNDERLINE_CLASS);break;default:N.classList.add(c.CURSOR_STYLE_BLOCK_CLASS)}j.isBold()&&N.classList.add(c.BOLD_CLASS),j.isItalic()&&N.classList.add(c.ITALIC_CLASS),j.isDim()&&N.classList.add(c.DIM_CLASS),j.isUnderline()&&N.classList.add(c.UNDERLINE_CLASS),j.isInvisible()?N.textContent=m.WHITESPACE_CELL_CHAR:N.textContent=j.getChars()||m.WHITESPACE_CELL_CHAR,j.isStrikethrough()&&N.classList.add(c.STRIKETHROUGH_CLASS);var M=j.getFgColor(),Y=j.getFgColorMode(),Z=j.getBgColor(),te=j.getBgColorMode(),B=!!j.isInverse();if(B){var Q=M;M=Z,Z=Q;var X=Y;Y=te,te=X}var F=void 0,O=void 0,D=!1;try{for(var H=(R=void 0,f(this._decorationService.getDecorationsAtCell(A,l))),G=H.next();!G.done;G=H.next()){var V=G.value;V.options.layer!=="top"&&D||(V.backgroundColorRGB&&(te=50331648,Z=V.backgroundColorRGB.rgba>>8&16777215,F=V.backgroundColorRGB),V.foregroundColorRGB&&(Y=50331648,M=V.foregroundColorRGB.rgba>>8&16777215,O=V.foregroundColorRGB),D=V.options.layer==="top")}}catch(ae){R={error:ae}}finally{try{G&&!G.done&&(L=H.return)&&L.call(H)}finally{if(R)throw R.error}}var J=this._isCellInSelection(A,l);D||this._colors.selectionForeground&&J&&(Y=50331648,M=this._colors.selectionForeground.rgba>>8&16777215,O=this._colors.selectionForeground),J&&(F=this._colors.selectionOpaque,D=!0),D&&N.classList.add("xterm-decoration-top");var ie=void 0;switch(te){case 16777216:case 33554432:ie=this._colors.ansi[Z],N.classList.add("xterm-bg-"+Z);break;case 50331648:ie=s.rgba.toColor(Z>>16,Z>>8&255,255&Z),this._addStyle(N,"background-color:#"+t((Z>>>0).toString(16),"0",6));break;default:B?(ie=this._colors.foreground,N.classList.add("xterm-bg-"+d.INVERTED_DEFAULT_COLOR)):ie=this._colors.background}switch(Y){case 16777216:case 33554432:j.isBold()&&M<8&&this._optionsService.rawOptions.drawBoldTextInBrightColors&&(M+=8),this._applyMinimumContrast(N,ie,this._colors.ansi[M],j,F,void 0)||N.classList.add("xterm-fg-"+M);break;case 50331648:var se=s.rgba.toColor(M>>16&255,M>>8&255,255&M);this._applyMinimumContrast(N,ie,se,j,F,O)||this._addStyle(N,"color:#"+t(M.toString(16),"0",6));break;default:this._applyMinimumContrast(N,ie,this._colors.foreground,j,F,void 0)||B&&N.classList.add("xterm-fg-"+d.INVERTED_DEFAULT_COLOR)}k.appendChild(N),A=q}}return k},r.prototype._applyMinimumContrast=function(n,l,a,y,S,g){if(this._optionsService.rawOptions.minimumContrastRatio===1||(0,i.excludeFromContrastRatioDemands)(y.getCode()))return!1;var b=void 0;return S||g||(b=this._colors.contrastCache.getColor(l.rgba,a.rgba)),b===void 0&&(b=s.color.ensureContrastRatio(S||l,g||a,this._optionsService.rawOptions.minimumContrastRatio),this._colors.contrastCache.setColor((S||l).rgba,(g||a).rgba,b??null)),!!b&&(this._addStyle(n,"color:"+b.css),!0)},r.prototype._addStyle=function(n,l){n.setAttribute("style",""+(n.getAttribute("style")||"")+l+";")},r.prototype._isCellInSelection=function(n,l){var a=this._selectionStart,y=this._selectionEnd;return!(!a||!y)&&(this._columnSelectMode?a[0]<=y[0]?n>=a[0]&&l>=a[1]&&n<y[0]&&l<=y[1]:n<a[0]&&l>=a[1]&&n>=y[0]&&l<=y[1]:l>a[1]&&l<y[1]||a[1]===y[1]&&l===a[1]&&n>=a[0]&&n<y[0]||a[1]<y[1]&&l===y[1]&&n<y[0]||a[1]<y[1]&&l===a[1]&&n>=a[0])},_([u(2,p.ICharacterJoinerService),u(3,o.IOptionsService),u(4,o.ICoreService),u(5,o.IDecorationService)],r)}();function t(r,n,l){for(;r.length<l;)r=n+r;return r}c.DomRendererRowFactory=e},456:(W,c)=>{Object.defineProperty(c,"__esModule",{value:!0}),c.SelectionModel=void 0;var w=function(){function _(u){this._bufferService=u,this.isSelectAllActive=!1,this.selectionStartLength=0}return _.prototype.clearSelection=function(){this.selectionStart=void 0,this.selectionEnd=void 0,this.isSelectAllActive=!1,this.selectionStartLength=0},Object.defineProperty(_.prototype,"finalSelectionStart",{get:function(){return this.isSelectAllActive?[0,0]:this.selectionEnd&&this.selectionStart&&this.areSelectionValuesReversed()?this.selectionEnd:this.selectionStart},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"finalSelectionEnd",{get:function(){return this.isSelectAllActive?[this._bufferService.cols,this._bufferService.buffer.ybase+this._bufferService.rows-1]:this.selectionStart?!this.selectionEnd||this.areSelectionValuesReversed()?(u=this.selectionStart[0]+this.selectionStartLength)>this._bufferService.cols?u%this._bufferService.cols==0?[this._bufferService.cols,this.selectionStart[1]+Math.floor(u/this._bufferService.cols)-1]:[u%this._bufferService.cols,this.selectionStart[1]+Math.floor(u/this._bufferService.cols)]:[u,this.selectionStart[1]]:this.selectionStartLength&&this.selectionEnd[1]===this.selectionStart[1]?(u=this.selectionStart[0]+this.selectionStartLength)>this._bufferService.cols?[u%this._bufferService.cols,this.selectionStart[1]+Math.floor(u/this._bufferService.cols)]:[Math.max(u,this.selectionEnd[0]),this.selectionEnd[1]]:this.selectionEnd:void 0;var u},enumerable:!1,configurable:!0}),_.prototype.areSelectionValuesReversed=function(){var u=this.selectionStart,f=this.selectionEnd;return!(!u||!f)&&(u[1]>f[1]||u[1]===f[1]&&u[0]>f[0])},_.prototype.onTrim=function(u){return this.selectionStart&&(this.selectionStart[1]-=u),this.selectionEnd&&(this.selectionEnd[1]-=u),this.selectionEnd&&this.selectionEnd[1]<0?(this.clearSelection(),!0):(this.selectionStart&&this.selectionStart[1]<0&&(this.selectionStart[1]=0),!1)},_}();c.SelectionModel=w},428:function(W,c,w){var _=this&&this.__decorate||function(o,s,p,h){var i,e=arguments.length,t=e<3?s:h===null?h=Object.getOwnPropertyDescriptor(s,p):h;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")t=Reflect.decorate(o,s,p,h);else for(var r=o.length-1;r>=0;r--)(i=o[r])&&(t=(e<3?i(t):e>3?i(s,p,t):i(s,p))||t);return e>3&&t&&Object.defineProperty(s,p,t),t},u=this&&this.__param||function(o,s){return function(p,h){s(p,h,o)}};Object.defineProperty(c,"__esModule",{value:!0}),c.CharSizeService=void 0;var f=w(2585),d=w(8460),m=function(){function o(s,p,h){this._optionsService=h,this.width=0,this.height=0,this._onCharSizeChange=new d.EventEmitter,this._measureStrategy=new v(s,p,this._optionsService)}return Object.defineProperty(o.prototype,"hasValidSize",{get:function(){return this.width>0&&this.height>0},enumerable:!1,configurable:!0}),Object.defineProperty(o.prototype,"onCharSizeChange",{get:function(){return this._onCharSizeChange.event},enumerable:!1,configurable:!0}),o.prototype.measure=function(){var s=this._measureStrategy.measure();s.width===this.width&&s.height===this.height||(this.width=s.width,this.height=s.height,this._onCharSizeChange.fire())},_([u(2,f.IOptionsService)],o)}();c.CharSizeService=m;var v=function(){function o(s,p,h){this._document=s,this._parentElement=p,this._optionsService=h,this._result={width:0,height:0},this._measureElement=this._document.createElement("span"),this._measureElement.classList.add("xterm-char-measure-element"),this._measureElement.textContent="W",this._measureElement.setAttribute("aria-hidden","true"),this._parentElement.appendChild(this._measureElement)}return o.prototype.measure=function(){this._measureElement.style.fontFamily=this._optionsService.rawOptions.fontFamily,this._measureElement.style.fontSize=this._optionsService.rawOptions.fontSize+"px";var s=this._measureElement.getBoundingClientRect();return s.width!==0&&s.height!==0&&(this._result.width=s.width,this._result.height=Math.ceil(s.height)),this._result},o}()},4269:function(W,c,w){var _,u=this&&this.__extends||(_=function(i,e){return _=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,r){t.__proto__=r}||function(t,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])},_(i,e)},function(i,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function t(){this.constructor=i}_(i,e),i.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}),f=this&&this.__decorate||function(i,e,t,r){var n,l=arguments.length,a=l<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(i,e,t,r);else for(var y=i.length-1;y>=0;y--)(n=i[y])&&(a=(l<3?n(a):l>3?n(e,t,a):n(e,t))||a);return l>3&&a&&Object.defineProperty(e,t,a),a},d=this&&this.__param||function(i,e){return function(t,r){e(t,r,i)}};Object.defineProperty(c,"__esModule",{value:!0}),c.CharacterJoinerService=c.JoinedCellData=void 0;var m=w(3734),v=w(643),o=w(511),s=w(2585),p=function(i){function e(t,r,n){var l=i.call(this)||this;return l.content=0,l.combinedData="",l.fg=t.fg,l.bg=t.bg,l.combinedData=r,l._width=n,l}return u(e,i),e.prototype.isCombined=function(){return 2097152},e.prototype.getWidth=function(){return this._width},e.prototype.getChars=function(){return this.combinedData},e.prototype.getCode=function(){return 2097151},e.prototype.setFromCharData=function(t){throw new Error("not implemented")},e.prototype.getAsCharData=function(){return[this.fg,this.getChars(),this.getWidth(),this.getCode()]},e}(m.AttributeData);c.JoinedCellData=p;var h=function(){function i(e){this._bufferService=e,this._characterJoiners=[],this._nextCharacterJoinerId=0,this._workCell=new o.CellData}return i.prototype.register=function(e){var t={id:this._nextCharacterJoinerId++,handler:e};return this._characterJoiners.push(t),t.id},i.prototype.deregister=function(e){for(var t=0;t<this._characterJoiners.length;t++)if(this._characterJoiners[t].id===e)return this._characterJoiners.splice(t,1),!0;return!1},i.prototype.getJoinedCharacters=function(e){if(this._characterJoiners.length===0)return[];var t=this._bufferService.buffer.lines.get(e);if(!t||t.length===0)return[];for(var r=[],n=t.translateToString(!0),l=0,a=0,y=0,S=t.getFg(0),g=t.getBg(0),b=0;b<t.getTrimmedLength();b++)if(t.loadCell(b,this._workCell),this._workCell.getWidth()!==0){if(this._workCell.fg!==S||this._workCell.bg!==g){if(b-l>1)for(var C=this._getJoinedRanges(n,y,a,t,l),R=0;R<C.length;R++)r.push(C[R]);l=b,y=a,S=this._workCell.fg,g=this._workCell.bg}a+=this._workCell.getChars().length||v.WHITESPACE_CELL_CHAR.length}if(this._bufferService.cols-l>1)for(C=this._getJoinedRanges(n,y,a,t,l),R=0;R<C.length;R++)r.push(C[R]);return r},i.prototype._getJoinedRanges=function(e,t,r,n,l){var a=e.substring(t,r),y=[];try{y=this._characterJoiners[0].handler(a)}catch(C){console.error(C)}for(var S=1;S<this._characterJoiners.length;S++)try{for(var g=this._characterJoiners[S].handler(a),b=0;b<g.length;b++)i._mergeRanges(y,g[b])}catch(C){console.error(C)}return this._stringRangesToCellRanges(y,n,l),y},i.prototype._stringRangesToCellRanges=function(e,t,r){var n=0,l=!1,a=0,y=e[n];if(y){for(var S=r;S<this._bufferService.cols;S++){var g=t.getWidth(S),b=t.getString(S).length||v.WHITESPACE_CELL_CHAR.length;if(g!==0){if(!l&&y[0]<=a&&(y[0]=S,l=!0),y[1]<=a){if(y[1]=S,!(y=e[++n]))break;y[0]<=a?(y[0]=S,l=!0):l=!1}a+=b}}y&&(y[1]=this._bufferService.cols)}},i._mergeRanges=function(e,t){for(var r=!1,n=0;n<e.length;n++){var l=e[n];if(r){if(t[1]<=l[0])return e[n-1][1]=t[1],e;if(t[1]<=l[1])return e[n-1][1]=Math.max(t[1],l[1]),e.splice(n,1),e;e.splice(n,1),n--}else{if(t[1]<=l[0])return e.splice(n,0,t),e;if(t[1]<=l[1])return l[0]=Math.min(t[0],l[0]),e;t[0]<l[1]&&(l[0]=Math.min(t[0],l[0]),r=!0)}}return r?e[e.length-1][1]=t[1]:e.push(t),e},i=f([d(0,s.IBufferService)],i)}();c.CharacterJoinerService=h},5114:(W,c)=>{Object.defineProperty(c,"__esModule",{value:!0}),c.CoreBrowserService=void 0;var w=function(){function _(u){this._textarea=u}return Object.defineProperty(_.prototype,"isFocused",{get:function(){return(this._textarea.getRootNode?this._textarea.getRootNode():document).activeElement===this._textarea&&document.hasFocus()},enumerable:!1,configurable:!0}),_}();c.CoreBrowserService=w},8934:function(W,c,w){var _=this&&this.__decorate||function(v,o,s,p){var h,i=arguments.length,e=i<3?o:p===null?p=Object.getOwnPropertyDescriptor(o,s):p;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")e=Reflect.decorate(v,o,s,p);else for(var t=v.length-1;t>=0;t--)(h=v[t])&&(e=(i<3?h(e):i>3?h(o,s,e):h(o,s))||e);return i>3&&e&&Object.defineProperty(o,s,e),e},u=this&&this.__param||function(v,o){return function(s,p){o(s,p,v)}};Object.defineProperty(c,"__esModule",{value:!0}),c.MouseService=void 0;var f=w(4725),d=w(9806),m=function(){function v(o,s){this._renderService=o,this._charSizeService=s}return v.prototype.getCoords=function(o,s,p,h,i){return(0,d.getCoords)(window,o,s,p,h,this._charSizeService.hasValidSize,this._renderService.dimensions.actualCellWidth,this._renderService.dimensions.actualCellHeight,i)},v.prototype.getRawByteCoords=function(o,s,p,h){var i=this.getCoords(o,s,p,h);return(0,d.getRawByteCoords)(i)},_([u(0,f.IRenderService),u(1,f.ICharSizeService)],v)}();c.MouseService=m},3230:function(W,c,w){var _,u=this&&this.__extends||(_=function(t,r){return _=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,l){n.__proto__=l}||function(n,l){for(var a in l)Object.prototype.hasOwnProperty.call(l,a)&&(n[a]=l[a])},_(t,r)},function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}_(t,r),t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}),f=this&&this.__decorate||function(t,r,n,l){var a,y=arguments.length,S=y<3?r:l===null?l=Object.getOwnPropertyDescriptor(r,n):l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")S=Reflect.decorate(t,r,n,l);else for(var g=t.length-1;g>=0;g--)(a=t[g])&&(S=(y<3?a(S):y>3?a(r,n,S):a(r,n))||S);return y>3&&S&&Object.defineProperty(r,n,S),S},d=this&&this.__param||function(t,r){return function(n,l){r(n,l,t)}};Object.defineProperty(c,"__esModule",{value:!0}),c.RenderService=void 0;var m=w(6193),v=w(8460),o=w(844),s=w(5596),p=w(3656),h=w(2585),i=w(4725),e=function(t){function r(n,l,a,y,S,g,b){var C=t.call(this)||this;if(C._renderer=n,C._rowCount=l,C._charSizeService=S,C._isPaused=!1,C._needsFullRefresh=!1,C._isNextRenderRedrawOnly=!0,C._needsSelectionRefresh=!1,C._canvasWidth=0,C._canvasHeight=0,C._selectionState={start:void 0,end:void 0,columnSelectMode:!1},C._onDimensionsChange=new v.EventEmitter,C._onRenderedViewportChange=new v.EventEmitter,C._onRender=new v.EventEmitter,C._onRefreshRequest=new v.EventEmitter,C.register({dispose:function(){return C._renderer.dispose()}}),C._renderDebouncer=new m.RenderDebouncer(function(L,k){return C._renderRows(L,k)}),C.register(C._renderDebouncer),C._screenDprMonitor=new s.ScreenDprMonitor,C._screenDprMonitor.setListener(function(){return C.onDevicePixelRatioChange()}),C.register(C._screenDprMonitor),C.register(b.onResize(function(){return C._fullRefresh()})),C.register(b.buffers.onBufferActivate(function(){var L;return(L=C._renderer)===null||L===void 0?void 0:L.clear()})),C.register(y.onOptionChange(function(){return C._handleOptionsChanged()})),C.register(C._charSizeService.onCharSizeChange(function(){return C.onCharSizeChanged()})),C.register(g.onDecorationRegistered(function(){return C._fullRefresh()})),C.register(g.onDecorationRemoved(function(){return C._fullRefresh()})),C._renderer.onRequestRedraw(function(L){return C.refreshRows(L.start,L.end,!0)}),C.register((0,p.addDisposableDomListener)(window,"resize",function(){return C.onDevicePixelRatioChange()})),"IntersectionObserver"in window){var R=new IntersectionObserver(function(L){return C._onIntersectionChange(L[L.length-1])},{threshold:0});R.observe(a),C.register({dispose:function(){return R.disconnect()}})}return C}return u(r,t),Object.defineProperty(r.prototype,"onDimensionsChange",{get:function(){return this._onDimensionsChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"onRenderedViewportChange",{get:function(){return this._onRenderedViewportChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"onRender",{get:function(){return this._onRender.event},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"onRefreshRequest",{get:function(){return this._onRefreshRequest.event},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"dimensions",{get:function(){return this._renderer.dimensions},enumerable:!1,configurable:!0}),r.prototype._onIntersectionChange=function(n){this._isPaused=n.isIntersecting===void 0?n.intersectionRatio===0:!n.isIntersecting,this._isPaused||this._charSizeService.hasValidSize||this._charSizeService.measure(),!this._isPaused&&this._needsFullRefresh&&(this.refreshRows(0,this._rowCount-1),this._needsFullRefresh=!1)},r.prototype.refreshRows=function(n,l,a){a===void 0&&(a=!1),this._isPaused?this._needsFullRefresh=!0:(a||(this._isNextRenderRedrawOnly=!1),this._renderDebouncer.refresh(n,l,this._rowCount))},r.prototype._renderRows=function(n,l){this._renderer.renderRows(n,l),this._needsSelectionRefresh&&(this._renderer.onSelectionChanged(this._selectionState.start,this._selectionState.end,this._selectionState.columnSelectMode),this._needsSelectionRefresh=!1),this._isNextRenderRedrawOnly||this._onRenderedViewportChange.fire({start:n,end:l}),this._onRender.fire({start:n,end:l}),this._isNextRenderRedrawOnly=!0},r.prototype.resize=function(n,l){this._rowCount=l,this._fireOnCanvasResize()},r.prototype._handleOptionsChanged=function(){this._renderer.onOptionsChanged(),this.refreshRows(0,this._rowCount-1),this._fireOnCanvasResize()},r.prototype._fireOnCanvasResize=function(){this._renderer.dimensions.canvasWidth===this._canvasWidth&&this._renderer.dimensions.canvasHeight===this._canvasHeight||this._onDimensionsChange.fire(this._renderer.dimensions)},r.prototype.dispose=function(){t.prototype.dispose.call(this)},r.prototype.setRenderer=function(n){var l=this;this._renderer.dispose(),this._renderer=n,this._renderer.onRequestRedraw(function(a){return l.refreshRows(a.start,a.end,!0)}),this._needsSelectionRefresh=!0,this._fullRefresh()},r.prototype.addRefreshCallback=function(n){return this._renderDebouncer.addRefreshCallback(n)},r.prototype._fullRefresh=function(){this._isPaused?this._needsFullRefresh=!0:this.refreshRows(0,this._rowCount-1)},r.prototype.clearTextureAtlas=function(){var n,l;(l=(n=this._renderer)===null||n===void 0?void 0:n.clearTextureAtlas)===null||l===void 0||l.call(n),this._fullRefresh()},r.prototype.setColors=function(n){this._renderer.setColors(n),this._fullRefresh()},r.prototype.onDevicePixelRatioChange=function(){this._charSizeService.measure(),this._renderer.onDevicePixelRatioChange(),this.refreshRows(0,this._rowCount-1)},r.prototype.onResize=function(n,l){this._renderer.onResize(n,l),this._fullRefresh()},r.prototype.onCharSizeChanged=function(){this._renderer.onCharSizeChanged()},r.prototype.onBlur=function(){this._renderer.onBlur()},r.prototype.onFocus=function(){this._renderer.onFocus()},r.prototype.onSelectionChanged=function(n,l,a){this._selectionState.start=n,this._selectionState.end=l,this._selectionState.columnSelectMode=a,this._renderer.onSelectionChanged(n,l,a)},r.prototype.onCursorMove=function(){this._renderer.onCursorMove()},r.prototype.clear=function(){this._renderer.clear()},f([d(3,h.IOptionsService),d(4,i.ICharSizeService),d(5,h.IDecorationService),d(6,h.IBufferService)],r)}(o.Disposable);c.RenderService=e},9312:function(W,c,w){var _,u=this&&this.__extends||(_=function(y,S){return _=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(g,b){g.__proto__=b}||function(g,b){for(var C in b)Object.prototype.hasOwnProperty.call(b,C)&&(g[C]=b[C])},_(y,S)},function(y,S){if(typeof S!="function"&&S!==null)throw new TypeError("Class extends value "+String(S)+" is not a constructor or null");function g(){this.constructor=y}_(y,S),y.prototype=S===null?Object.create(S):(g.prototype=S.prototype,new g)}),f=this&&this.__decorate||function(y,S,g,b){var C,R=arguments.length,L=R<3?S:b===null?b=Object.getOwnPropertyDescriptor(S,g):b;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")L=Reflect.decorate(y,S,g,b);else for(var k=y.length-1;k>=0;k--)(C=y[k])&&(L=(R<3?C(L):R>3?C(S,g,L):C(S,g))||L);return R>3&&L&&Object.defineProperty(S,g,L),L},d=this&&this.__param||function(y,S){return function(g,b){S(g,b,y)}};Object.defineProperty(c,"__esModule",{value:!0}),c.SelectionService=void 0;var m=w(6114),v=w(456),o=w(511),s=w(8460),p=w(4725),h=w(2585),i=w(9806),e=w(9504),t=w(844),r=w(4841),n="\xA0",l=new RegExp(n,"g"),a=function(y){function S(g,b,C,R,L,k,x,E){var A=y.call(this)||this;return A._element=g,A._screenElement=b,A._linkifier=C,A._bufferService=R,A._coreService=L,A._mouseService=k,A._optionsService=x,A._renderService=E,A._dragScrollAmount=0,A._enabled=!0,A._workCell=new o.CellData,A._mouseDownTimeStamp=0,A._oldHasSelection=!1,A._oldSelectionStart=void 0,A._oldSelectionEnd=void 0,A._onLinuxMouseSelection=A.register(new s.EventEmitter),A._onRedrawRequest=A.register(new s.EventEmitter),A._onSelectionChange=A.register(new s.EventEmitter),A._onRequestScrollLines=A.register(new s.EventEmitter),A._mouseMoveListener=function(T){return A._onMouseMove(T)},A._mouseUpListener=function(T){return A._onMouseUp(T)},A._coreService.onUserInput(function(){A.hasSelection&&A.clearSelection()}),A._trimListener=A._bufferService.buffer.lines.onTrim(function(T){return A._onTrim(T)}),A.register(A._bufferService.buffers.onBufferActivate(function(T){return A._onBufferActivate(T)})),A.enable(),A._model=new v.SelectionModel(A._bufferService),A._activeSelectionMode=0,A}return u(S,y),Object.defineProperty(S.prototype,"onLinuxMouseSelection",{get:function(){return this._onLinuxMouseSelection.event},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"onRequestRedraw",{get:function(){return this._onRedrawRequest.event},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"onSelectionChange",{get:function(){return this._onSelectionChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"onRequestScrollLines",{get:function(){return this._onRequestScrollLines.event},enumerable:!1,configurable:!0}),S.prototype.dispose=function(){this._removeMouseDownListeners()},S.prototype.reset=function(){this.clearSelection()},S.prototype.disable=function(){this.clearSelection(),this._enabled=!1},S.prototype.enable=function(){this._enabled=!0},Object.defineProperty(S.prototype,"selectionStart",{get:function(){return this._model.finalSelectionStart},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"selectionEnd",{get:function(){return this._model.finalSelectionEnd},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"hasSelection",{get:function(){var g=this._model.finalSelectionStart,b=this._model.finalSelectionEnd;return!(!g||!b||g[0]===b[0]&&g[1]===b[1])},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"selectionText",{get:function(){var g=this._model.finalSelectionStart,b=this._model.finalSelectionEnd;if(!g||!b)return"";var C=this._bufferService.buffer,R=[];if(this._activeSelectionMode===3){if(g[0]===b[0])return"";for(var L=g[0]<b[0]?g[0]:b[0],k=g[0]<b[0]?b[0]:g[0],x=g[1];x<=b[1];x++){var E=C.translateBufferLineToString(x,!0,L,k);R.push(E)}}else{var A=g[1]===b[1]?b[0]:void 0;for(R.push(C.translateBufferLineToString(g[1],!0,g[0],A)),x=g[1]+1;x<=b[1]-1;x++){var T=C.lines.get(x);E=C.translateBufferLineToString(x,!0),T?.isWrapped?R[R.length-1]+=E:R.push(E)}g[1]!==b[1]&&(T=C.lines.get(b[1]),E=C.translateBufferLineToString(b[1],!0,0,b[0]),T&&T.isWrapped?R[R.length-1]+=E:R.push(E))}return R.map(function(U){return U.replace(l," ")}).join(m.isWindows?`\r
@@ -1 +1 @@
1
- import{g as i}from"./chunk-NSYXJMRL.js";import"./chunk-NLGVT4MV.js";import{ha as o,nb as e}from"./chunk-OXBT7KSO.js";var m=[{path:"",redirectTo:"/",pathMatch:"full"},{path:"restart-server",loadComponent:()=>import("./chunk-5VYFMUZI.js").then(t=>t.RestartLinuxComponent)},{path:"shutdown-server",loadComponent:()=>import("./chunk-G4HMZX6U.js").then(t=>t.ShutdownLinuxComponent)}],n=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275mod=e({type:t});static \u0275inj=o({imports:[i.forChild(m),i]})}return t})();var c=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275mod=e({type:t});static \u0275inj=o({imports:[n]})}return t})();export{c as LinuxModule};
1
+ import{g as i}from"./chunk-QRQBCPWO.js";import"./chunk-K7QEGT3E.js";import{ha as o,nb as e}from"./chunk-V7SOQAC5.js";var m=[{path:"",redirectTo:"/",pathMatch:"full"},{path:"restart-server",loadComponent:()=>import("./chunk-BRCJFOVZ.js").then(t=>t.RestartLinuxComponent)},{path:"shutdown-server",loadComponent:()=>import("./chunk-QQQOCD2G.js").then(t=>t.ShutdownLinuxComponent)}],n=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275mod=e({type:t});static \u0275inj=o({imports:[i.forChild(m),i]})}return t})();var c=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275mod=e({type:t});static \u0275inj=o({imports:[n]})}return t})();export{c as LinuxModule};