Files
mayfly-go/server/static/assets/SshTerminal.88463733.js

178 lines
310 KiB
JavaScript
Raw Normal View History

2021-06-09 16:58:57 +08:00
import{g as ne}from"./index.99723322.js";import{f as oe,h as se}from"./vendor.42638b6b.js";var he=`/**
* Copyright (c) 2014 The xterm.js authors. All rights reserved.
* Copyright (c) 2012-2013, Christopher Jeffrey (MIT License)
* https://github.com/chjj/term.js
* @license MIT
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*
* Originally forked from (with the author's permission):
* Fabrice Bellard's javascript vt100 for jslinux:
* http://bellard.org/jslinux/
* Copyright (c) 2011 Fabrice Bellard
* The original design remains. The terminal itself
* has been extended to include xterm CSI codes, among
* other features.
*/
/**
* Default styles for xterm.js
*/
.xterm {
position: relative;
user-select: none;
-ms-user-select: none;
-webkit-user-select: none;
}
.xterm.focus,
.xterm:focus {
outline: none;
}
.xterm .xterm-helpers {
position: absolute;
top: 0;
/**
* The z-index of the helpers must be higher than the canvases in order for
* IMEs to appear on top.
*/
z-index: 5;
}
.xterm .xterm-helper-textarea {
padding: 0;
border: 0;
margin: 0;
/* Move textarea out of the screen to the far left, so that the cursor is not visible */
position: absolute;
opacity: 0;
left: -9999em;
top: 0;
width: 0;
height: 0;
z-index: -5;
/** Prevent wrapping so the IME appears against the textarea at the correct position */
white-space: nowrap;
overflow: hidden;
resize: none;
}
.xterm .composition-view {
/* TODO: Composition position got messed up somewhere */
background: #000;
color: #FFF;
display: none;
position: absolute;
white-space: nowrap;
z-index: 1;
}
.xterm .composition-view.active {
display: block;
}
.xterm .xterm-viewport {
/* On OS X this is required in order for the scroll bar to appear fully opaque */
background-color: #000;
overflow-y: scroll;
cursor: default;
position: absolute;
right: 0;
left: 0;
top: 0;
bottom: 0;
}
.xterm .xterm-screen {
position: relative;
}
.xterm .xterm-screen canvas {
position: absolute;
left: 0;
top: 0;
}
.xterm .xterm-scroll-area {
visibility: hidden;
}
.xterm-char-measure-element {
display: inline-block;
visibility: hidden;
position: absolute;
top: 0;
left: -9999em;
line-height: normal;
}
.xterm {
cursor: text;
}
.xterm.enable-mouse-events {
/* When mouse events are enabled (eg. tmux), revert to the standard pointer cursor */
cursor: default;
}
.xterm.xterm-cursor-pointer {
cursor: pointer;
}
.xterm.column-select.focus {
/* Column selection mode */
cursor: crosshair;
}
.xterm .xterm-accessibility,
.xterm .xterm-message {
position: absolute;
left: 0;
top: 0;
bottom: 0;
right: 0;
z-index: 10;
color: transparent;
}
.xterm .live-region {
position: absolute;
left: -9999px;
width: 1px;
height: 1px;
overflow: hidden;
}
.xterm-dim {
opacity: 0.5;
}
.xterm-underline {
text-decoration: underline;
}
`,te={exports:{}};(function(z,Q){(function(X,K){z.exports=K()})(self,function(){return(()=>{var X={4567:function(I,a,v){var h,d=this&&this.__extends||(h=function(i,e){return(h=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(t[s]=n[s])})(i,e)},function(i,e){function t(){this.constructor=i}h(i,e),i.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)});Object.defineProperty(a,"__esModule",{value:!0}),a.AccessibilityManager=void 0;var _=v(9042),f=v(6114),S=v(6193),g=v(3656),o=v(844),c=v(5596),l=v(9631),r=function(i){function e(t,n){var s=i.call(this)||this;s._terminal=t,s._renderService=n,s._liveRegionLineCount=0,s._charsToConsume=[],s._charsToAnnounce="",s._accessibilityTreeRoot=document.createElement("div"),s._accessibilityTreeRoot.classList.add("xterm-accessibility"),s._rowContainer=document.createElement("div"),s._rowContainer.setAttribute("role","list"),s._rowContainer.classList.add("xterm-accessibility-tree"),s._rowElements=[];for(var u=0;u<s._terminal.rows;u++)s._rowElements[u]=s._createAccessibilityTreeNode(),s._rowContainer.appendChild(s._rowElements[u]);if(s._topBoundaryFocusListener=function(p){return s._onBoundaryFocus(p,0)},s._bottomBoundaryFocusListener=function(p){return s._onBoundaryFocus(p,1)},s._rowElements[0].addEventListener("focus",s._topBoundaryFocusListener),s._rowElements[s._rowElements.length-1].addEventListener("focus",s._bottomBoundaryFocusListener),s._refreshRowsDimensions(),s._accessibilityTreeRoot.appendChild(s._rowContainer),s._renderRowsDebouncer=new S.RenderDebouncer(s._renderRows.bind(s)),s._refreshRows(),s._liveRegion=document.createElement("div"),s._liveRegion.classList.add("live-region"),s._liveRegion.setAttribute("aria-live","assertive"),s._accessibilityTreeRoot.appendChild(s._liveRegion),!s._terminal.element)throw new Error("Cannot enable accessibility before Terminal.open");return s._terminal.element.insertAdjacentElement("afterbegin",s._accessibilityTreeRoot),s.register(s._renderRowsDebouncer),s.register(s._terminal.onResize(function(p){return s._onResize(p.rows)})),s.register(s._terminal.onRender(function(p){return s._refreshRows(p.start,p.end)})),s.register(s._terminal.onScroll(function(){return s._refreshRows()})),s.register(s._terminal.onA11yChar(function(p){return s._onChar(p)})),s.register(s._terminal.onLineFeed(function(){return s._onChar(`
`)})),s.register(s._terminal.onA11yTab(function(p){return s._onTab(p)})),s.register(s._terminal.onKey(function(p){return s._onKey(p.key)})),s.register(s._terminal.onBlur(function(){return s._clearLiveRegion()})),s.register(s._renderService.onDimensionsChange(function(){return s._refreshRowsDimensions()})),s._screenDprMonitor=new c.ScreenDprMonitor,s.register(s._screenDprMonitor),s._screenDprMonitor.setListener(function(){return s._refreshRowsDimensions()}),s.register(g.addDisposableDomListener(window,"resize",function(){return s._refreshRowsDimensions()})),s}return d(e,i),e.prototype.dispose=function(){i.prototype.dispose.call(this),l.removeElementFromParent(this._accessibilityTreeRoot),this._rowElements.length=0},e.prototype._onBoundaryFocus=function(t,n){var s=t.target,u=this._rowElements[n===0?1:this._rowElements.length-2];if(s.getAttribute("aria-posinset")!==(n===0?"1":""+this._terminal.buffer.lines.length)&&t.relatedTarget===u){var p,C;if(n===0?(p=s,C=this._rowElements.pop(),this._rowContainer.removeChild(C)):(p=this._rowElements.shift(),C=s,this._rowContainer.removeChild(p)),p.removeEventListener("focus",this._topBoundaryFocusListener),C.removeEventListener("focus",this._bottomBoundaryFocusListener),n===0){var w=this._createAccessibilityTreeNode();this._rowElements.unshift(w),this._rowContainer.insertAdjacentElement("afterbegin",w)}else w=this._createAccessibilityTreeNode(),this._rowElements.push(w),this._rowContainer.appendChild(w);this._rowElements[0].addEventListener("focus",this._topBoundaryFocusListener),this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._terminal.scrollLines(n===0?-1:1),this._rowElements[n===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 n=this._rowContainer.children.length;n<this._terminal.rows;n++)this._rowElements[n]=this._createAccessibilityTreeNode(),this._rowContainer.appendChild(this._rowElements[n]);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 n=0;n<t;n++)this._onChar(" ")},e.prototype._onChar=function(t){var n=this;this._liveRegionLineCount<21&&(this._charsToConsume.length>0?this._charsToConsume.shift()!==t&&(this._charsToAnnounce+=t):this._charsToAnnounce+=t,t===`
`&&(this._liveRegionLineCount++,this._liveRegionLineCount===21&&(this._liveRegion.textContent+=_.tooMuchOutput)),f.isMac&&this._liveRegion.textContent&&this._liveRegion.textContent.length>0&&!this._liveRegion.parentNode&&setTimeout(function(){n._accessibilityTreeRoot.appendChild(n._liveRegion)},0))},e.prototype._clearLiveRegion=function(){this._liveRegion.textContent="",this._liveRegionLineCount=0,f.isMac&&l.removeElementFromParent(this._liveRegion)},e.prototype._onKey=function(t){this._clearLiveRegion(),this._charsToConsume.push(t)},e.prototype._refreshRows=function(t,n){this._renderRowsDebouncer.refresh(t,n,this._terminal.rows)},e.prototype._renderRows=function(t,n){for(var s=this._terminal.buffer,u=s.lines.length.toString(),p=t;p<=n;p++){var C=s.translateBufferLineToString(s.ydisp+p,!0),w=(s.ydisp+p+1).toString(),m=this._rowElements[p];m&&(C.length===0?m.innerText="\xA0":m.textContent=C,m.setAttribute("aria-posinset",w),m.setAttribute("aria-setsize",u))}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);a.AccessibilityManager=r},3614:(I,a)=>{function v(f){return f.replace(/\r?\n/g,"\r")}function h(f,S){return S?"[200~"+f+"[201~":f}function d(f,S,g){f=h(f=v(f),g.decPrivateModes.bracketedPasteMode),g.triggerDataEvent(f,!0),S.value=""}function _(f,S,g){var o=g.getBoundingClientRect(),c=f.clientX-o.left-10,l=f.clientY-o.top-10;S.style.width="20px",S.style.height="20px",S.style.left=c+"px",S.style.top=l+"px",S.style.zIndex="1000",S.focus()}Object.defineProperty(a,"__esModule",{value:!0}),a.rightClickHandler=a.moveTextAreaUnderMouseCursor=a.paste=a.handlePasteEvent=a.copyHandler=a.bracketTextForPaste=a.prepareTextForTerminal=void 0,a.prepareTextForTerminal=v,a.bracketTextForPaste=h,a.copyHandler=function(f,S){f.clipboardData&&f.clipboardData.setData("text/plain",S.selectionText),f.preventDefault()},a.handlePasteEvent=function(f,S,g){f.stopPropagation(),f.clipboardData&&d(f.clipboardData.getData("text/plain"),S,g)},a.paste=d,a.moveTextAreaUnderMouseCursor=_,a.rightClickHandler=function(f,S,g,o,c){_(f,S,g),c&&o.rightClickSelect(f),S.value=o.selectionText,S.select()}},4774:(I,a)=>{var v,h,d,_;function f(g){var o=g.toString(16);return o.length<2?"0"+o:o}function S(g,o){return g<o?(o+.05)/(g+.05):(g+.05)/(o+.05)}Object.defineProperty(a,"__esModule",{value:!0}),a.contrastRatio=a.toPaddedHex=a.rgba=a.rgb=a.css=a.color=a.channels=void 0,function(g){g.toCss=function(o,c,l,r){return r!==void 0?"#"+f(o)+f(c)+f(l)+f(r):"#"+f(o)+f(c)+f(l)},g.toRgba=function(o,c,l,r){return r===void 0&&(r=255),(o<<24|c<<16|l<<8|r)>>>0}}(v=a.channels||(a.channels={})),(h=a.color||(a.color={})).blend=function(g,o){var c=(255&o.rgba)/255;if(c===1)return{css:o.css,rgba:o.rgba};var l=o.rgba>>24&255,r=o.rgba>>16&255,i=o.rgba>>8&255,e=g.rgba>>24&255,t=g.rgba>>16&255,n=g.rgba>>8&255,s=e+Math.round((l-e)*c),u=t+Math.round((r-t)*c),p=n+Math.round((i-n)*c);return{css:v.toCss(s,u,p),rgba:v.toRgba(s,u,p)}},h.isOpaque=function(g){return(255&g.rgba)==255},h.ensureContrastRatio=function(g,o,c){var l=_.ensureContrastRatio(g.rgba,o.rgba,c);if(l)return _.toColor(l>>24&255,l>>16&255,l>>8&255)},h.opaque=function(g){var o=(255|g.rgba)>>>0,c=_.toChannels(o),l=c[0],r=c[1],i=c[2];return{css:v.toCss(l,r,i),rgba:o}},h.opacity=function(g,o){var c=Math.round(255*o),l=_.toChannels(g.rgba),r=l[0],i=l[1],e=l[2];return{css:v.toCss(r,i,e,c),rgba:v.toRgba(r,i,e,c)}},(a.css||(a.css={})).toColor=function(g){switch(g.length){case 7:return{css:g,rgba:(parseInt(g.slice(1),16)<<8|255)>>>0};case 9:return{css:g,rgba:parseInt(g.slice(1),16)>>>0}}throw new Error("css.t
`,n)},e.prototype.paste=function(t){this._core.paste(t)},e.prototype.getOption=function(t){return this._core.optionsService.getOption(t)},e.prototype.setOption=function(t,n){this._core.optionsService.setOption(t,n)},e.prototype.refresh=function(t,n){this._verifyIntegers(t,n),this._core.refresh(t,n)},e.prototype.reset=function(){this._core.reset()},e.prototype.loadAddon=function(t){return this._addonManager.loadAddon(this,t)},Object.defineProperty(e,"strings",{get:function(){return _},enumerable:!1,configurable:!0}),e.prototype._verifyIntegers=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];for(var s=0,u=t;s<u.length;s++){var p=u[s];if(p===1/0||isNaN(p)||p%1!=0)throw new Error("This API only accepts integers")}},e}();a.Terminal=g;var o=function(){function e(t,n){this._buffer=t,this.type=n}return e.prototype.init=function(t){return this._buffer=t,this},Object.defineProperty(e.prototype,"cursorY",{get:function(){return this._buffer.y},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"cursorX",{get:function(){return this._buffer.x},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"viewportY",{get:function(){return this._buffer.ydisp},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"baseY",{get:function(){return this._buffer.ybase},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"length",{get:function(){return this._buffer.lines.length},enumerable:!1,configurable:!0}),e.prototype.getLine=function(t){var n=this._buffer.lines.get(t);if(n)return new l(n)},e.prototype.getNullCell=function(){return new h.CellData},e}(),c=function(){function e(t){var n=this;this._core=t,this._onBufferChange=new f.EventEmitter,this._normal=new o(this._core.buffers.normal,"normal"),this._alternate=new o(this._core.buffers.alt,"alternate"),this._core.buffers.onBufferActivate(function(){return n._onBufferChange.fire(n.active)})}return Object.defineProperty(e.prototype,"onBufferChange",{get:function(){return this._onBufferChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"active",{get:function(){if(this._core.buffers.active===this._core.buffers.normal)return this.normal;if(this._core.buffers.active===this._core.buffers.alt)return this.alternate;throw new Error("Active buffer is neither normal nor alternate")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"normal",{get:function(){return this._normal.init(this._core.buffers.normal)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"alternate",{get:function(){return this._alternate.init(this._core.buffers.alt)},enumerable:!1,configurable:!0}),e}(),l=function(){function e(t){this._line=t}return Object.defineProperty(e.prototype,"isWrapped",{get:function(){return this._line.isWrapped},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"length",{get:function(){return this._line.length},enumerable:!1,configurable:!0}),e.prototype.getCell=function(t,n){if(!(t<0||t>=this._line.length))return n?(this._line.loadCell(t,n),n):this._line.loadCell(t,new h.CellData)},e.prototype.translateToString=function(t,n,s){return this._line.translateToString(t,n,s)},e}(),r=function(){function e(t){this._core=t}return e.prototype.registerCsiHandler=function(t,n){return this._core.registerCsiHandler(t,function(s){return n(s.toArray())})},e.prototype.addCsiHandler=function(t,n){return this.registerCsiHandler(t,n)},e.prototype.registerDcsHandler=function(t,n){return this._core.registerDcsHandler(t,function(s,u){return n(s,u.toArray())})},e.prototype.addDcsHandler=function(t,n){return this.registerDcsHandler(t,n)},e.prototype.registerEscHandler=function(t,n){return this._core.registerEscHandler(t,n)},e.prototype.addEscHandler=function(t,n){return this.registerEscHandler(t,n)},e.prototype.registerOscHandler=function(t,n){return this._core.registerOscHandler(t,n)},e.prototype.addOscHandler=function(t,n){return this.registerOscHandler(t,n)},e}(),i=function(){function e(t){this._core=t}return e.prototype.register=function(t){this._core.unicodeService.register(t)},Obje
`:`
`)},enumerable:!1,configurable:!0}),w.prototype.clearSelection=function(){this._model.clearSelection(),this._removeMouseDownListeners(),this.refresh(),this._onSelectionChange.fire()},w.prototype.refresh=function(m){var b=this;this._refreshAnimationFrame||(this._refreshAnimationFrame=window.requestAnimationFrame(function(){return b._refresh()})),S.isLinux&&m&&this.selectionText.length&&this._onLinuxMouseSelection.fire(this.selectionText)},w.prototype._refresh=function(){this._refreshAnimationFrame=void 0,this._onRedrawRequest.fire({start:this._model.finalSelectionStart,end:this._model.finalSelectionEnd,columnSelectMode:this._activeSelectionMode===3})},w.prototype._isClickInSelection=function(m){var b=this._getMouseBufferCoords(m),x=this._model.finalSelectionStart,L=this._model.finalSelectionEnd;return!!(x&&L&&b)&&this._areCoordsInSelection(b,x,L)},w.prototype._areCoordsInSelection=function(m,b,x){return m[1]>b[1]&&m[1]<x[1]||b[1]===x[1]&&m[1]===b[1]&&m[0]>=b[0]&&m[0]<x[0]||b[1]<x[1]&&m[1]===x[1]&&m[0]<x[0]||b[1]<x[1]&&m[1]===b[1]&&m[0]>=b[0]},w.prototype._selectWordAtCursor=function(m,b){var x,L,k=(L=(x=this._linkifier.currentLink)===null||x===void 0?void 0:x.link)===null||L===void 0?void 0:L.range;if(k)return this._model.selectionStart=[k.start.x-1,k.start.y-1],this._model.selectionStartLength=n.getRangeLength(k,this._bufferService.cols),this._model.selectionEnd=void 0,!0;var E=this._getMouseBufferCoords(m);return!!E&&(this._selectWordAt(E,b),this._model.selectionEnd=void 0,!0)},w.prototype.selectAll=function(){this._model.isSelectAllActive=!0,this.refresh(),this._onSelectionChange.fire()},w.prototype.selectLines=function(m,b){this._model.clearSelection(),m=Math.max(m,0),b=Math.min(b,this._bufferService.buffer.lines.length-1),this._model.selectionStart=[0,m],this._model.selectionEnd=[this._bufferService.cols,b],this.refresh(),this._onSelectionChange.fire()},w.prototype._onTrim=function(m){this._model.onTrim(m)&&this.refresh()},w.prototype._getMouseBufferCoords=function(m){var b=this._mouseService.getCoords(m,this._screenElement,this._bufferService.cols,this._bufferService.rows,!0);if(b)return b[0]--,b[1]--,b[1]+=this._bufferService.buffer.ydisp,b},w.prototype._getMouseEventScrollAmount=function(m){var b=i.getCoordsRelativeToElement(m,this._screenElement)[1],x=this._renderService.dimensions.canvasHeight;return b>=0&&b<=x?0:(b>x&&(b-=x),b=Math.min(Math.max(b,-50),50),(b/=50)/Math.abs(b)+Math.round(14*b))},w.prototype.shouldForceSelection=function(m){return S.isMac?m.altKey&&this._optionsService.options.macOptionClickForcesSelection:m.shiftKey},w.prototype.onMouseDown=function(m){if(this._mouseDownTimeStamp=m.timeStamp,(m.button!==2||!this.hasSelection)&&m.button===0){if(!this._enabled){if(!this.shouldForceSelection(m))return;m.stopPropagation()}m.preventDefault(),this._dragScrollAmount=0,this._enabled&&m.shiftKey?this._onIncrementalClick(m):m.detail===1?this._onSingleClick(m):m.detail===2?this._onDoubleClick(m):m.detail===3&&this._onTripleClick(m),this._addMouseDownListeners(),this.refresh(!0)}},w.prototype._addMouseDownListeners=function(){var m=this;this._screenElement.ownerDocument&&(this._screenElement.ownerDocument.addEventListener("mousemove",this._mouseMoveListener),this._screenElement.ownerDocument.addEventListener("mouseup",this._mouseUpListener)),this._dragScrollIntervalTimer=window.setInterval(function(){return m._dragScroll()},50)},w.prototype._removeMouseDownListeners=function(){this._screenElement.ownerDocument&&(this._screenElement.ownerDocument.removeEventListener("mousemove",this._mouseMoveListener),this._screenElement.ownerDocument.removeEventListener("mouseup",this._mouseUpListener)),clearInterval(this._dragScrollIntervalTimer),this._dragScrollIntervalTimer=void 0},w.prototype._onIncrementalClick=function(m){this._model.selectionStart&&(this._model.selectionEnd=this._getMouseBufferCoords(m))},w.prototype._onSingleClick=function(m){if(this._model.selectionStartLength=0,this._model.isSelectAllActive=!1,this._activeSelectionMode=this.shouldColumnSelect(m)?3:0,this._model.selectionStart=this._getMouseBuffer
`,h.VT="\v",h.FF="\f",h.CR="\r",h.SO="",h.SI="",h.DLE="",h.DC1="",h.DC2="",h.DC3="",h.DC4="",h.NAK="",h.SYN="",h.ETB="",h.CAN="",h.EM="",h.SUB="",h.ESC="",h.FS="",h.GS="",h.RS="",h.US="",h.SP=" ",h.DEL="\x7F",(v=a.C1||(a.C1={})).PAD="\x80",v.HOP="\x81",v.BPH="\x82",v.NBH="\x83",v.IND="\x84",v.NEL="\x85",v.SSA="\x86",v.ESA="\x87",v.HTS="\x88",v.HTJ="\x89",v.VTS="\x8A",v.PLD="\x8B",v.PLU="\x8C",v.RI="\x8D",v.SS2="\x8E",v.SS3="\x8F",v.DCS="\x90",v.PU1="\x91",v.PU2="\x92",v.STS="\x93",v.CCH="\x94",v.MW="\x95",v.SPA="\x96",v.EPA="\x97",v.SOS="\x98",v.SGCI="\x99",v.SCI="\x9A",v.CSI="\x9B",v.ST="\x9C",v.OSC="\x9D",v.PM="\x9E",v.APC="\x9F"},7399:(I,a,v)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.evaluateKeyboardEvent=void 0;var h=v(2584),d={48:["0",")"],49:["1","!"],50:["2","@"],51:["3","#"],52:["4","$"],53:["5","%"],54:["6","^"],55:["7","&"],56:["8","*"],57:["9","("],186:[";",":"],187:["=","+"],188:[",","<"],189:["-","_"],190:[".",">"],191:["/","?"],192:["`","~"],219:["[","{"],220:["\\","|"],221:["]","}"],222:["'",'"']};a.evaluateKeyboardEvent=function(_,f,S,g){var o={type:0,cancel:!1,key:void 0},c=(_.shiftKey?1:0)|(_.altKey?2:0)|(_.ctrlKey?4:0)|(_.metaKey?8:0);switch(_.keyCode){case 0:_.key==="UIKeyInputUpArrow"?o.key=f?h.C0.ESC+"OA":h.C0.ESC+"[A":_.key==="UIKeyInputLeftArrow"?o.key=f?h.C0.ESC+"OD":h.C0.ESC+"[D":_.key==="UIKeyInputRightArrow"?o.key=f?h.C0.ESC+"OC":h.C0.ESC+"[C":_.key==="UIKeyInputDownArrow"&&(o.key=f?h.C0.ESC+"OB":h.C0.ESC+"[B");break;case 8:if(_.shiftKey){o.key=h.C0.BS;break}if(_.altKey){o.key=h.C0.ESC+h.C0.DEL;break}o.key=h.C0.DEL;break;case 9:if(_.shiftKey){o.key=h.C0.ESC+"[Z";break}o.key=h.C0.HT,o.cancel=!0;break;case 13:o.key=_.altKey?h.C0.ESC+h.C0.CR:h.C0.CR,o.cancel=!0;break;case 27:o.key=h.C0.ESC,_.altKey&&(o.key=h.C0.ESC+h.C0.ESC),o.cancel=!0;break;case 37:if(_.metaKey)break;c?(o.key=h.C0.ESC+"[1;"+(c+1)+"D",o.key===h.C0.ESC+"[1;3D"&&(o.key=h.C0.ESC+(S?"b":"[1;5D"))):o.key=f?h.C0.ESC+"OD":h.C0.ESC+"[D";break;case 39:if(_.metaKey)break;c?(o.key=h.C0.ESC+"[1;"+(c+1)+"C",o.key===h.C0.ESC+"[1;3C"&&(o.key=h.C0.ESC+(S?"f":"[1;5C"))):o.key=f?h.C0.ESC+"OC":h.C0.ESC+"[C";break;case 38:if(_.metaKey)break;c?(o.key=h.C0.ESC+"[1;"+(c+1)+"A",S||o.key!==h.C0.ESC+"[1;3A"||(o.key=h.C0.ESC+"[1;5A")):o.key=f?h.C0.ESC+"OA":h.C0.ESC+"[A";break;case 40:if(_.metaKey)break;c?(o.key=h.C0.ESC+"[1;"+(c+1)+"B",S||o.key!==h.C0.ESC+"[1;3B"||(o.key=h.C0.ESC+"[1;5B")):o.key=f?h.C0.ESC+"OB":h.C0.ESC+"[B";break;case 45:_.shiftKey||_.ctrlKey||(o.key=h.C0.ESC+"[2~");break;case 46:o.key=c?h.C0.ESC+"[3;"+(c+1)+"~":h.C0.ESC+"[3~";break;case 36:o.key=c?h.C0.ESC+"[1;"+(c+1)+"H":f?h.C0.ESC+"OH":h.C0.ESC+"[H";break;case 35:o.key=c?h.C0.ESC+"[1;"+(c+1)+"F":f?h.C0.ESC+"OF":h.C0.ESC+"[F";break;case 33:_.shiftKey?o.type=2:o.key=h.C0.ESC+"[5~";break;case 34:_.shiftKey?o.type=3:o.key=h.C0.ESC+"[6~";break;case 112:o.key=c?h.C0.ESC+"[1;"+(c+1)+"P":h.C0.ESC+"OP";break;case 113:o.key=c?h.C0.ESC+"[1;"+(c+1)+"Q":h.C0.ESC+"OQ";break;case 114:o.key=c?h.C0.ESC+"[1;"+(c+1)+"R":h.C0.ESC+"OR";break;case 115:o.key=c?h.C0.ESC+"[1;"+(c+1)+"S":h.C0.ESC+"OS";break;case 116:o.key=c?h.C0.ESC+"[15;"+(c+1)+"~":h.C0.ESC+"[15~";break;case 117:o.key=c?h.C0.ESC+"[17;"+(c+1)+"~":h.C0.ESC+"[17~";break;case 118:o.key=c?h.C0.ESC+"[18;"+(c+1)+"~":h.C0.ESC+"[18~";break;case 119:o.key=c?h.C0.ESC+"[19;"+(c+1)+"~":h.C0.ESC+"[19~";break;case 120:o.key=c?h.C0.ESC+"[20;"+(c+1)+"~":h.C0.ESC+"[20~";break;case 121:o.key=c?h.C0.ESC+"[21;"+(c+1)+"~":h.C0.ESC+"[21~";break;case 122:o.key=c?h.C0.ESC+"[23;"+(c+1)+"~":h.C0.ESC+"[23~";break;case 123:o.key=c?h.C0.ESC+"[24;"+(c+1)+"~":h.C0.ESC+"[24~";break;default:if(!_.ctrlKey||_.shiftKey||_.altKey||_.metaKey)if(S&&!g||!_.altKey||_.metaKey)!S||_.altKey||_.ctrlKey||_.shiftKey||!_.metaKey?_.key&&!_.ctrlKey&&!_.altKey&&!_.metaKey&&_.keyCode>=48&&_.key.length===1?o.key=_.key:_.key&&_.ctrlKey&&_.key==="_"&&(o.key=h.C0.US):_.keyCode===65&&(o.type=1);else{var l=d[_.keyCode],r=l&&l[_.shiftKey?1:0];if(r)o.key=h.C0.ESC+r;else if(_.keyCode>=65&&_.keyCode<=90){var i=_.ctrlKey?_.keyCode-64:_.keyCode+32;o.key=h.C0.ESC+String.fromCha