s.y;return(t&&e.range.start.x<=s.x&&e.range.end.x>=s.x||i&&e.range.end.x>=s.x||c&&e.range.start.x<=s.x||i&&c)&&e.range.start.y<=s.y&&e.range.end.y>=s.y}_positionFromMouseEvent(e,s,t){const i=t.getCoords(e,s,this._bufferService.cols,this._bufferService.rows);if(i)return{x:i[0],y:i[1]+this._bufferService.buffer.ydisp}}_createLinkUnderlineEvent(e,s,t,i,c){return{x1:e,y1:s,x2:t,y2:i,cols:this._bufferService.cols,fg:c}}};o=n([_(0,h.IBufferService)],o),r.Linkifier2=o},9042:(D,r)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.tooMuchOutput=r.promptLabel=void 0,r.promptLabel="Terminal input",r.tooMuchOutput="Too much output to announce, navigate to rows manually to read"},2962:function(D,r,a){var n=this&&this.__decorate||function(o,e,s,t){var i,c=arguments.length,f=c<3?e:t===null?t=Object.getOwnPropertyDescriptor(e,s):t;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")f=Reflect.decorate(o,e,s,t);else for(var p=o.length-1;p>=0;p--)(i=o[p])&&(f=(c<3?i(f):c>3?i(e,s,f):i(e,s))||f);return c>3&&f&&Object.defineProperty(e,s,f),f},_=this&&this.__param||function(o,e){return function(s,t){e(s,t,o)}};Object.defineProperty(r,"__esModule",{value:!0}),r.OscLinkProvider=void 0;const h=a(511),u=a(2585);let d=class{constructor(o,e,s){this._bufferService=o,this._optionsService=e,this._oscLinkService=s}provideLinks(o,e){var s;const t=this._bufferService.buffer.lines.get(o-1);if(!t)return void e(void 0);const i=[],c=this._optionsService.rawOptions.linkHandler,f=new h.CellData,p=t.getTrimmedLength();let m=-1,g=-1,S=!1;for(let w=0;wc?c.activate(v,C,L):l(0,C),hover:(v,C)=>{var b;return(b=c==null?void 0:c.hover)===null||b===void 0?void 0:b.call(c,v,C,L)},leave:(v,C)=>{var b;return(b=c==null?void 0:c.leave)===null||b===void 0?void 0:b.call(c,v,C,L)}})}S=!1,f.hasExtendedAttrs()&&f.extended.urlId?(g=w,m=f.extended.urlId):(g=-1,m=-1)}}e(i)}};function l(o,e){if(confirm(`Do you want to navigate to ${e}?`)){const s=window.open();if(s){try{s.opener=null}catch{}s.location.href=e}else console.warn("Opening link blocked as opener could not be cleared")}}d=n([_(0,u.IBufferService),_(1,u.IOptionsService),_(2,u.IOscLinkService)],d),r.OscLinkProvider=d},6193:(D,r)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.RenderDebouncer=void 0,r.RenderDebouncer=class{constructor(a,n){this._parentWindow=a,this._renderCallback=n,this._refreshCallbacks=[]}dispose(){this._animationFrame&&(this._parentWindow.cancelAnimationFrame(this._animationFrame),this._animationFrame=void 0)}addRefreshCallback(a){return this._refreshCallbacks.push(a),this._animationFrame||(this._animationFrame=this._parentWindow.requestAnimationFrame(()=>this._innerRefresh())),this._animationFrame}refresh(a,n,_){this._rowCount=_,a=a!==void 0?a:0,n=n!==void 0?n:this._rowCount-1,this._rowStart=this._rowStart!==void 0?Math.min(this._rowStart,a):a,this._rowEnd=this._rowEnd!==void 0?Math.max(this._rowEnd,n):n,this._animationFrame||(this._animationFrame=this._parentWindow.requestAnimationFrame(()=>this._innerRefresh()))}_innerRefresh(){if(this._animationFrame=void 0,this._rowStart===void 0||this._rowEnd===void 0||this._rowCount===void 0)return void this._runRefreshCallbacks();const a=Math.max(this._rowStart,0),n=Math.min(this._rowEnd,this._rowCount-1);this._rowStart=void 0,this._rowEnd=void 0,this._renderCallback(a,n),this._runRefreshCallbacks()}_runRefreshCallbacks(){for(const a of this._refreshCallbacks)a(0);this._refreshCallbacks=[]}}},5596:(D,r,a)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.ScreenDprMonitor=void 0;const n=a(844);class _ extends n.Disposable{constructor(u){super(),this._parentWindow=u,this._currentDevicePixelRatio=this._parentWindow.devicePixelRatio}setListener(u){this._listener&&this.clearListener(),this._listener=u,this._outerListener=()=>{this._listener&&(this._listener(this._parentWindow.devicePixelRatio,this._currentDevicePixelRatio),this._updateDpr())},this._updateDpr()}dispose(){super.dispose(),this.clearListener()}_updateDpr(){var u;this._outerListener&&((u=this._resolutionMediaMatchList)===null||u===void 0||u.removeListener(this._outerListener),this._currentDevicePixelRatio=this._parentWindow.devicePixelRatio,this._resolutionMediaMatchList=this._parentWindow.matchMedia(`screen and (resolution: ${this._parentWindow.devicePixelRatio}dppx)`),this._resolutionMediaMatchList.addListener(this._outerListener))}clearListener(){this._resolutionMediaMatchList&&this._listener&&this._outerListener&&(this._resolutionMediaMatchList.removeListener(this._outerListener),this._resolutionMediaMatchList=void 0,this._listener=void 0,this._outerListener=void 0)}}r.ScreenDprMonitor=_},3236:(D,r,a)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.Terminal=void 0;const n=a(2950),_=a(1680),h=a(3614),u=a(2584),d=a(5435),l=a(9312),o=a(6114),e=a(3656),s=a(9042),t=a(4567),i=a(1296),c=a(7399),f=a(8460),p=a(8437),m=a(5680),g=a(3230),S=a(4725),w=a(428),k=a(8934),L=a(6465),v=a(5114),C=a(8969),b=a(8055),E=a(4269),A=a(5941),H=a(3107),$=a(5744),U=a(9074),P=a(2585),W=a(2962),y=typeof window!="undefined"?window.document:null;class T extends C.CoreTerminal{constructor(R={}){super(R),this.browser=o,this._keyDownHandled=!1,this._keyDownSeen=!1,this._keyPressHandled=!1,this._unprocessedDeadKey=!1,this._onCursorMove=new f.EventEmitter,this._onKey=new f.EventEmitter,this._onRender=new f.EventEmitter,this._onSelectionChange=new f.EventEmitter,this._onTitleChange=new f.EventEmitter,this._onBell=new f.EventEmitter,this._onFocus=new f.EventEmitter,this._onBlur=new f.EventEmitter,this._onA11yCharEmitter=new f.EventEmitter,this._onA11yTabEmitter=new f.EventEmitter,this._setup(),this.linkifier2=this.register(this._instantiationService.createInstance(L.Linkifier2)),this.linkifier2.registerLinkProvider(this._instantiationService.createInstance(W.OscLinkProvider)),this._decorationService=this._instantiationService.createInstance(U.DecorationService),this._instantiationService.setService(P.IDecorationService,this._decorationService),this.register(this._inputHandler.onRequestBell(()=>this._onBell.fire())),this.register(this._inputHandler.onRequestRefreshRows((x,B)=>this.refresh(x,B))),this.register(this._inputHandler.onRequestSendFocus(()=>this._reportFocus())),this.register(this._inputHandler.onRequestReset(()=>this.reset())),this.register(this._inputHandler.onRequestWindowsOptionsReport(x=>this._reportWindowsOptions(x))),this.register(this._inputHandler.onColor(x=>this._handleColorEvent(x))),this.register((0,f.forwardEvent)(this._inputHandler.onCursorMove,this._onCursorMove)),this.register((0,f.forwardEvent)(this._inputHandler.onTitleChange,this._onTitleChange)),this.register((0,f.forwardEvent)(this._inputHandler.onA11yChar,this._onA11yCharEmitter)),this.register((0,f.forwardEvent)(this._inputHandler.onA11yTab,this._onA11yTabEmitter)),this.register(this._bufferService.onResize(x=>this._afterResize(x.cols,x.rows)))}get onCursorMove(){return this._onCursorMove.event}get onKey(){return this._onKey.event}get onRender(){return this._onRender.event}get onSelectionChange(){return this._onSelectionChange.event}get onTitleChange(){return this._onTitleChange.event}get onBell(){return this._onBell.event}get onFocus(){return this._onFocus.event}get onBlur(){return this._onBlur.event}get onA11yChar(){return this._onA11yCharEmitter.event}get onA11yTab(){return this._onA11yTabEmitter.event}_handleColorEvent(R){var x,B;if(this._colorManager){for(const I of R){let F,M="";switch(I.index){case 256:F="foreground",M="10";break;case 257:F="background",M="11";break;case 258:F="cursor",M="12";break;default:F="ansi",M="4;"+I.index}switch(I.type){case 0:const K=b.color.toColorRGB(F==="ansi"?this._colorManager.colors.ansi[I.index]:this._colorManager.colors[F]);this.coreService.triggerDataEvent(`${u.C0.ESC}]${M};${(0,A.toRgbString)(K)}${u.C1_ESCAPED.ST}`);break;case 1:F==="ansi"?this._colorManager.colors.ansi[I.index]=b.rgba.toColor(...I.color):this._colorManager.colors[F]=b.rgba.toColor(...I.color);break;case 2:this._colorManager.restoreColor(I.index)}}(x=this._renderService)===null||x===void 0||x.setColors(this._colorManager.colors),(B=this.viewport)===null||B===void 0||B.onThemeChange(this._colorManager.colors)}}dispose(){var R,x,B;this._isDisposed||(super.dispose(),(R=this._renderService)===null||R===void 0||R.dispose(),this._customKeyEventHandler=void 0,this.write=()=>{},(B=(x=this.element)===null||x===void 0?void 0:x.parentNode)===null||B===void 0||B.removeChild(this.element))}_setup(){super._setup(),this._customKeyEventHandler=void 0}get buffer(){return this.buffers.active}focus(){this.textarea&&this.textarea.focus({preventScroll:!0})}_updateOptions(R){var x,B,I,F;switch(super._updateOptions(R),R){case"fontFamily":case"fontSize":(x=this._renderService)===null||x===void 0||x.clear(),(B=this._charSizeService)===null||B===void 0||B.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"scrollback":(I=this.viewport)===null||I===void 0||I.syncScrollArea();break;case"screenReaderMode":this.optionsService.rawOptions.screenReaderMode?!this._accessibilityManager&&this._renderService&&(this._accessibilityManager=new t.AccessibilityManager(this,this._renderService)):((F=this._accessibilityManager)===null||F===void 0||F.dispose(),this._accessibilityManager=void 0);break;case"tabStopWidth":this.buffers.setupTabStops();break;case"theme":this._setTheme(this.optionsService.rawOptions.theme)}}_onTextAreaFocus(R){this.coreService.decPrivateModes.sendFocus&&this.coreService.triggerDataEvent(u.C0.ESC+"[I"),this.updateCursorStyle(R),this.element.classList.add("focus"),this._showCursor(),this._onFocus.fire()}blur(){var R;return(R=this.textarea)===null||R===void 0?void 0:R.blur()}_onTextAreaBlur(){this.textarea.value="",this.refresh(this.buffer.y,this.buffer.y),this.coreService.decPrivateModes.sendFocus&&this.coreService.triggerDataEvent(u.C0.ESC+"[O"),this.element.classList.remove("focus"),this._onBlur.fire()}_syncTextArea(){if(!this.textarea||!this.buffer.isCursorInViewport||this._compositionHelper.isComposing||!this._renderService)return;const R=this.buffer.ybase+this.buffer.y,x=this.buffer.lines.get(R);if(!x)return;const B=Math.min(this.buffer.x,this.cols-1),I=this._renderService.dimensions.actualCellHeight,F=x.getWidth(B),M=this._renderService.dimensions.actualCellWidth*F,K=this.buffer.y*this._renderService.dimensions.actualCellHeight,j=B*this._renderService.dimensions.actualCellWidth;this.textarea.style.left=j+"px",this.textarea.style.top=K+"px",this.textarea.style.width=M+"px",this.textarea.style.height=I+"px",this.textarea.style.lineHeight=I+"px",this.textarea.style.zIndex="-5"}_initGlobal(){this._bindKeys(),this.register((0,e.addDisposableDomListener)(this.element,"copy",x=>{this.hasSelection()&&(0,h.copyHandler)(x,this._selectionService)}));const R=x=>(0,h.handlePasteEvent)(x,this.textarea,this.coreService);this.register((0,e.addDisposableDomListener)(this.textarea,"paste",R)),this.register((0,e.addDisposableDomListener)(this.element,"paste",R)),o.isFirefox?this.register((0,e.addDisposableDomListener)(this.element,"mousedown",x=>{x.button===2&&(0,h.rightClickHandler)(x,this.textarea,this.screenElement,this._selectionService,this.options.rightClickSelectsWord)})):this.register((0,e.addDisposableDomListener)(this.element,"contextmenu",x=>{(0,h.rightClickHandler)(x,this.textarea,this.screenElement,this._selectionService,this.options.rightClickSelectsWord)})),o.isLinux&&this.register((0,e.addDisposableDomListener)(this.element,"auxclick",x=>{x.button===1&&(0,h.moveTextAreaUnderMouseCursor)(x,this.textarea,this.screenElement)}))}_bindKeys(){this.register((0,e.addDisposableDomListener)(this.textarea,"keyup",R=>this._keyUp(R),!0)),this.register((0,e.addDisposableDomListener)(this.textarea,"keydown",R=>this._keyDown(R),!0)),this.register((0,e.addDisposableDomListener)(this.textarea,"keypress",R=>this._keyPress(R),!0)),this.register((0,e.addDisposableDomListener)(this.textarea,"compositionstart",()=>this._compositionHelper.compositionstart())),this.register((0,e.addDisposableDomListener)(this.textarea,"compositionupdate",R=>this._compositionHelper.compositionupdate(R))),this.register((0,e.addDisposableDomListener)(this.textarea,"compositionend",()=>this._compositionHelper.compositionend())),this.register((0,e.addDisposableDomListener)(this.textarea,"input",R=>this._inputEvent(R),!0)),this.register(this.onRender(()=>this._compositionHelper.updateCompositionElements()))}open(R){var x;if(!R)throw new Error("Terminal requires a parent element.");R.isConnected||this._logService.debug("Terminal.open was called on an element that was not attached to the DOM"),this._document=R.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"),R.appendChild(this.element);const B=y.createDocumentFragment();this._viewportElement=y.createElement("div"),this._viewportElement.classList.add("xterm-viewport"),B.appendChild(this._viewportElement),this._viewportScrollArea=y.createElement("div"),this._viewportScrollArea.classList.add("xterm-scroll-area"),this._viewportElement.appendChild(this._viewportScrollArea),this.screenElement=y.createElement("div"),this.screenElement.classList.add("xterm-screen"),this._helperContainer=y.createElement("div"),this._helperContainer.classList.add("xterm-helpers"),this.screenElement.appendChild(this._helperContainer),B.appendChild(this.screenElement),this.textarea=y.createElement("textarea"),this.textarea.classList.add("xterm-helper-textarea"),this.textarea.setAttribute("aria-label",s.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,e.addDisposableDomListener)(this.textarea,"focus",F=>this._onTextAreaFocus(F))),this.register((0,e.addDisposableDomListener)(this.textarea,"blur",()=>this._onTextAreaBlur())),this._helperContainer.appendChild(this.textarea),this._coreBrowserService=this._instantiationService.createInstance(v.CoreBrowserService,this.textarea,(x=this._document.defaultView)!==null&&x!==void 0?x:window),this._instantiationService.setService(S.ICoreBrowserService,this._coreBrowserService),this._charSizeService=this._instantiationService.createInstance(w.CharSizeService,this._document,this._helperContainer),this._instantiationService.setService(S.ICharSizeService,this._charSizeService),this._theme=this.options.theme||this._theme,this._colorManager=new m.ColorManager(y,this.options.allowTransparency),this.register(this.optionsService.onOptionChange(F=>this._colorManager.onOptionsChange(F,this.optionsService.rawOptions[F]))),this._colorManager.setTheme(this._theme),this._characterJoinerService=this._instantiationService.createInstance(E.CharacterJoinerService),this._instantiationService.setService(S.ICharacterJoinerService,this._characterJoinerService);const I=this._createRenderer();this._renderService=this.register(this._instantiationService.createInstance(g.RenderService,I,this.rows,this.screenElement)),this._instantiationService.setService(S.IRenderService,this._renderService),this.register(this._renderService.onRenderedViewportChange(F=>this._onRender.fire(F))),this.onResize(F=>this._renderService.resize(F.cols,F.rows)),this._compositionView=y.createElement("div"),this._compositionView.classList.add("composition-view"),this._compositionHelper=this._instantiationService.createInstance(n.CompositionHelper,this.textarea,this._compositionView),this._helperContainer.appendChild(this._compositionView),this.element.appendChild(B),this._mouseService=this._instantiationService.createInstance(k.MouseService),this._instantiationService.setService(S.IMouseService,this._mouseService),this.viewport=this._instantiationService.createInstance(_.Viewport,F=>this.scrollLines(F,!0,1),this._viewportElement,this._viewportScrollArea,this.element),this.viewport.onThemeChange(this._colorManager.colors),this.register(this._inputHandler.onRequestSyncScrollBar(()=>this.viewport.syncScrollArea())),this.register(this.viewport),this.register(this.onCursorMove(()=>{this._renderService.onCursorMove(),this._syncTextArea()})),this.register(this.onResize(()=>this._renderService.onResize(this.cols,this.rows))),this.register(this.onBlur(()=>this._renderService.onBlur())),this.register(this.onFocus(()=>this._renderService.onFocus())),this.register(this._renderService.onDimensionsChange(()=>this.viewport.syncScrollArea())),this._selectionService=this.register(this._instantiationService.createInstance(l.SelectionService,this.element,this.screenElement,this.linkifier2)),this._instantiationService.setService(S.ISelectionService,this._selectionService),this.register(this._selectionService.onRequestScrollLines(F=>this.scrollLines(F.amount,F.suppressScrollEvent))),this.register(this._selectionService.onSelectionChange(()=>this._onSelectionChange.fire())),this.register(this._selectionService.onRequestRedraw(F=>this._renderService.onSelectionChanged(F.start,F.end,F.columnSelectMode))),this.register(this._selectionService.onLinuxMouseSelection(F=>{this.textarea.value=F,this.textarea.focus(),this.textarea.select()})),this.register(this._onScroll.event(F=>{this.viewport.syncScrollArea(),this._selectionService.refresh()})),this.register((0,e.addDisposableDomListener)(this._viewportElement,"scroll",()=>this._selectionService.refresh())),this.linkifier2.attachToDom(this.screenElement,this._mouseService,this._renderService),this.register(this._instantiationService.createInstance(H.BufferDecorationRenderer,this.screenElement)),this.register((0,e.addDisposableDomListener)(this.element,"mousedown",F=>this._selectionService.onMouseDown(F))),this.coreMouseService.areMouseEventsActive?(this._selectionService.disable(),this.element.classList.add("enable-mouse-events")):this._selectionService.enable(),this.options.screenReaderMode&&(this._accessibilityManager=new t.AccessibilityManager(this,this._renderService)),this.options.overviewRulerWidth&&(this._overviewRulerRenderer=this.register(this._instantiationService.createInstance($.OverviewRulerRenderer,this._viewportElement,this.screenElement))),this.optionsService.onOptionChange(()=>{!this._overviewRulerRenderer&&this.options.overviewRulerWidth&&this._viewportElement&&this.screenElement&&(this._overviewRulerRenderer=this.register(this._instantiationService.createInstance($.OverviewRulerRenderer,this._viewportElement,this.screenElement)))}),this._charSizeService.measure(),this.refresh(0,this.rows-1),this._initGlobal(),this.bindMouse()}_createRenderer(){return this._instantiationService.createInstance(i.DomRenderer,this._colorManager.colors,this.element,this.screenElement,this._viewportElement,this.linkifier2)}_setTheme(R){var x,B,I;this._theme=R,(x=this._colorManager)===null||x===void 0||x.setTheme(R),(B=this._renderService)===null||B===void 0||B.setColors(this._colorManager.colors),(I=this.viewport)===null||I===void 0||I.onThemeChange(this._colorManager.colors)}bindMouse(){const R=this,x=this.element;function B(M){const K=R._mouseService.getMouseReportCoords(M,R.screenElement);if(!K)return!1;let j,X;switch(M.overrideType||M.type){case"mousemove":X=32,M.buttons===void 0?(j=3,M.button!==void 0&&(j=M.button<3?M.button:3)):j=1&M.buttons?0:4&M.buttons?1:2&M.buttons?2:3;break;case"mouseup":X=0,j=M.button<3?M.button:3;break;case"mousedown":X=1,j=M.button<3?M.button:3;break;case"wheel":if(R.viewport.getLinesScrolled(M)===0)return!1;X=M.deltaY<0?0:1,j=4;break;default:return!1}return!(X===void 0||j===void 0||j>4)&&R.coreMouseService.triggerMouseEvent({col:K.col,row:K.row,x:K.x,y:K.y,button:j,action:X,ctrl:M.ctrlKey,alt:M.altKey,shift:M.shiftKey})}const I={mouseup:null,wheel:null,mousedrag:null,mousemove:null},F={mouseup:M=>(B(M),M.buttons||(this._document.removeEventListener("mouseup",I.mouseup),I.mousedrag&&this._document.removeEventListener("mousemove",I.mousedrag)),this.cancel(M)),wheel:M=>(B(M),this.cancel(M,!0)),mousedrag:M=>{M.buttons&&B(M)},mousemove:M=>{M.buttons||B(M)}};this.register(this.coreMouseService.onProtocolChange(M=>{M?(this.optionsService.rawOptions.logLevel==="debug"&&this._logService.debug("Binding to mouse events:",this.coreMouseService.explainEvents(M)),this.element.classList.add("enable-mouse-events"),this._selectionService.disable()):(this._logService.debug("Unbinding from mouse events."),this.element.classList.remove("enable-mouse-events"),this._selectionService.enable()),8&M?I.mousemove||(x.addEventListener("mousemove",F.mousemove),I.mousemove=F.mousemove):(x.removeEventListener("mousemove",I.mousemove),I.mousemove=null),16&M?I.wheel||(x.addEventListener("wheel",F.wheel,{passive:!1}),I.wheel=F.wheel):(x.removeEventListener("wheel",I.wheel),I.wheel=null),2&M?I.mouseup||(I.mouseup=F.mouseup):(this._document.removeEventListener("mouseup",I.mouseup),I.mouseup=null),4&M?I.mousedrag||(I.mousedrag=F.mousedrag):(this._document.removeEventListener("mousemove",I.mousedrag),I.mousedrag=null)})),this.coreMouseService.activeProtocol=this.coreMouseService.activeProtocol,this.register((0,e.addDisposableDomListener)(x,"mousedown",M=>{if(M.preventDefault(),this.focus(),this.coreMouseService.areMouseEventsActive&&!this._selectionService.shouldForceSelection(M))return B(M),I.mouseup&&this._document.addEventListener("mouseup",I.mouseup),I.mousedrag&&this._document.addEventListener("mousemove",I.mousedrag),this.cancel(M)})),this.register((0,e.addDisposableDomListener)(x,"wheel",M=>{if(!I.wheel){if(!this.buffer.hasScrollback){const K=this.viewport.getLinesScrolled(M);if(K===0)return;const j=u.C0.ESC+(this.coreService.decPrivateModes.applicationCursorKeys?"O":"[")+(M.deltaY<0?"A":"B");let X="";for(let J=0;J{if(!this.coreMouseService.areMouseEventsActive)return this.viewport.onTouchStart(M),this.cancel(M)},{passive:!0})),this.register((0,e.addDisposableDomListener)(x,"touchmove",M=>{if(!this.coreMouseService.areMouseEventsActive)return this.viewport.onTouchMove(M)?void 0:this.cancel(M)},{passive:!1}))}refresh(R,x){var B;(B=this._renderService)===null||B===void 0||B.refreshRows(R,x)}updateCursorStyle(R){var x;!((x=this._selectionService)===null||x===void 0)&&x.shouldColumnSelect(R)?this.element.classList.add("column-select"):this.element.classList.remove("column-select")}_showCursor(){this.coreService.isCursorInitialized||(this.coreService.isCursorInitialized=!0,this.refresh(this.buffer.y,this.buffer.y))}scrollLines(R,x,B=0){super.scrollLines(R,x,B),this.refresh(0,this.rows-1)}paste(R){(0,h.paste)(R,this.textarea,this.coreService)}attachCustomKeyEventHandler(R){this._customKeyEventHandler=R}registerLinkProvider(R){return this.linkifier2.registerLinkProvider(R)}registerCharacterJoiner(R){if(!this._characterJoinerService)throw new Error("Terminal must be opened first");const x=this._characterJoinerService.register(R);return this.refresh(0,this.rows-1),x}deregisterCharacterJoiner(R){if(!this._characterJoinerService)throw new Error("Terminal must be opened first");this._characterJoinerService.deregister(R)&&this.refresh(0,this.rows-1)}get markers(){return this.buffer.markers}addMarker(R){return this.buffer.addMarker(this.buffer.ybase+this.buffer.y+R)}registerDecoration(R){return this._decorationService.registerDecoration(R)}hasSelection(){return!!this._selectionService&&this._selectionService.hasSelection}select(R,x,B){this._selectionService.setSelection(R,x,B)}getSelection(){return this._selectionService?this._selectionService.selectionText:""}getSelectionPosition(){if(this._selectionService&&this._selectionService.hasSelection)return{start:{x:this._selectionService.selectionStart[0],y:this._selectionService.selectionStart[1]},end:{x:this._selectionService.selectionEnd[0],y:this._selectionService.selectionEnd[1]}}}clearSelection(){var R;(R=this._selectionService)===null||R===void 0||R.clearSelection()}selectAll(){var R;(R=this._selectionService)===null||R===void 0||R.selectAll()}selectLines(R,x){var B;(B=this._selectionService)===null||B===void 0||B.selectLines(R,x)}_keyDown(R){if(this._keyDownHandled=!1,this._keyDownSeen=!0,this._customKeyEventHandler&&this._customKeyEventHandler(R)===!1)return!1;const x=this.browser.isMac&&this.options.macOptionIsMeta&&R.altKey;if(!x&&!this._compositionHelper.keydown(R))return this.buffer.ybase!==this.buffer.ydisp&&this._bufferService.scrollToBottom(),!1;x||R.key!=="Dead"&&R.key!=="AltGraph"||(this._unprocessedDeadKey=!0);const B=(0,c.evaluateKeyboardEvent)(R,this.coreService.decPrivateModes.applicationCursorKeys,this.browser.isMac,this.options.macOptionIsMeta);if(this.updateCursorStyle(R),B.type===3||B.type===2){const I=this.rows-1;return this.scrollLines(B.type===2?-I:I),this.cancel(R,!0)}return B.type===1&&this.selectAll(),!!this._isThirdLevelShift(this.browser,R)||(B.cancel&&this.cancel(R,!0),!B.key||!!(R.key&&!R.ctrlKey&&!R.altKey&&!R.metaKey&&R.key.length===1&&R.key.charCodeAt(0)>=65&&R.key.charCodeAt(0)<=90)||(this._unprocessedDeadKey?(this._unprocessedDeadKey=!1,!0):(B.key!==u.C0.ETX&&B.key!==u.C0.CR||(this.textarea.value=""),this._onKey.fire({key:B.key,domEvent:R}),this._showCursor(),this.coreService.triggerDataEvent(B.key,!0),this.optionsService.rawOptions.screenReaderMode?void(this._keyDownHandled=!0):this.cancel(R,!0))))}_isThirdLevelShift(R,x){const B=R.isMac&&!this.options.macOptionIsMeta&&x.altKey&&!x.ctrlKey&&!x.metaKey||R.isWindows&&x.altKey&&x.ctrlKey&&!x.metaKey||R.isWindows&&x.getModifierState("AltGraph");return x.type==="keypress"?B:B&&(!x.keyCode||x.keyCode>47)}_keyUp(R){this._keyDownSeen=!1,this._customKeyEventHandler&&this._customKeyEventHandler(R)===!1||(function(x){return x.keyCode===16||x.keyCode===17||x.keyCode===18}(R)||this.focus(),this.updateCursorStyle(R),this._keyPressHandled=!1)}_keyPress(R){let x;if(this._keyPressHandled=!1,this._keyDownHandled||this._customKeyEventHandler&&this._customKeyEventHandler(R)===!1)return!1;if(this.cancel(R),R.charCode)x=R.charCode;else if(R.which===null||R.which===void 0)x=R.keyCode;else{if(R.which===0||R.charCode===0)return!1;x=R.which}return!(!x||(R.altKey||R.ctrlKey||R.metaKey)&&!this._isThirdLevelShift(this.browser,R)||(x=String.fromCharCode(x),this._onKey.fire({key:x,domEvent:R}),this._showCursor(),this.coreService.triggerDataEvent(x,!0),this._keyPressHandled=!0,this._unprocessedDeadKey=!1,0))}_inputEvent(R){if(R.data&&R.inputType==="insertText"&&(!R.composed||!this._keyDownSeen)&&!this.optionsService.rawOptions.screenReaderMode){if(this._keyPressHandled)return!1;this._unprocessedDeadKey=!1;const x=R.data;return this.coreService.triggerDataEvent(x,!0),this.cancel(R),!0}return!1}resize(R,x){R!==this.cols||x!==this.rows?super.resize(R,x):this._charSizeService&&!this._charSizeService.hasValidSize&&this._charSizeService.measure()}_afterResize(R,x){var B,I;(B=this._charSizeService)===null||B===void 0||B.measure(),(I=this.viewport)===null||I===void 0||I.syncScrollArea(!0)}clear(){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(let R=1;R{Object.defineProperty(r,"__esModule",{value:!0}),r.TimeBasedDebouncer=void 0,r.TimeBasedDebouncer=class{constructor(a,n=1e3){this._renderCallback=a,this._debounceThresholdMS=n,this._lastRefreshMs=0,this._additionalRefreshRequested=!1}dispose(){this._refreshTimeoutID&&clearTimeout(this._refreshTimeoutID)}refresh(a,n,_){this._rowCount=_,a=a!==void 0?a:0,n=n!==void 0?n:this._rowCount-1,this._rowStart=this._rowStart!==void 0?Math.min(this._rowStart,a):a,this._rowEnd=this._rowEnd!==void 0?Math.max(this._rowEnd,n):n;const h=Date.now();if(h-this._lastRefreshMs>=this._debounceThresholdMS)this._lastRefreshMs=h,this._innerRefresh();else if(!this._additionalRefreshRequested){const u=h-this._lastRefreshMs,d=this._debounceThresholdMS-u;this._additionalRefreshRequested=!0,this._refreshTimeoutID=window.setTimeout(()=>{this._lastRefreshMs=Date.now(),this._innerRefresh(),this._additionalRefreshRequested=!1,this._refreshTimeoutID=void 0},d)}}_innerRefresh(){if(this._rowStart===void 0||this._rowEnd===void 0||this._rowCount===void 0)return;const a=Math.max(this._rowStart,0),n=Math.min(this._rowEnd,this._rowCount-1);this._rowStart=void 0,this._rowEnd=void 0,this._renderCallback(a,n)}}},1680:function(D,r,a){var n=this&&this.__decorate||function(e,s,t,i){var c,f=arguments.length,p=f<3?s:i===null?i=Object.getOwnPropertyDescriptor(s,t):i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")p=Reflect.decorate(e,s,t,i);else for(var m=e.length-1;m>=0;m--)(c=e[m])&&(p=(f<3?c(p):f>3?c(s,t,p):c(s,t))||p);return f>3&&p&&Object.defineProperty(s,t,p),p},_=this&&this.__param||function(e,s){return function(t,i){s(t,i,e)}};Object.defineProperty(r,"__esModule",{value:!0}),r.Viewport=void 0;const h=a(844),u=a(3656),d=a(4725),l=a(2585);let o=class extends h.Disposable{constructor(e,s,t,i,c,f,p,m,g){super(),this._scrollLines=e,this._viewportElement=s,this._scrollArea=t,this._element=i,this._bufferService=c,this._optionsService=f,this._charSizeService=p,this._renderService=m,this._coreBrowserService=g,this.scrollBarWidth=0,this._currentRowHeight=0,this._currentScaledCellHeight=0,this._lastRecordedBufferLength=0,this._lastRecordedViewportHeight=0,this._lastRecordedBufferHeight=0,this._lastTouchY=0,this._lastScrollTop=0,this._wheelPartialScroll=0,this._refreshAnimationFrame=null,this._ignoreNextScrollEvent=!1,this._smoothScrollState={startTime:0,origin:-1,target:-1},this.scrollBarWidth=this._viewportElement.offsetWidth-this._scrollArea.offsetWidth||15,this.register((0,u.addDisposableDomListener)(this._viewportElement,"scroll",this._onScroll.bind(this))),this._activeBuffer=this._bufferService.buffer,this.register(this._bufferService.buffers.onBufferActivate(S=>this._activeBuffer=S.activeBuffer)),this._renderDimensions=this._renderService.dimensions,this.register(this._renderService.onDimensionsChange(S=>this._renderDimensions=S)),setTimeout(()=>this.syncScrollArea(),0)}onThemeChange(e){this._viewportElement.style.backgroundColor=e.background.css}_refresh(e){if(e)return this._innerRefresh(),void(this._refreshAnimationFrame!==null&&this._coreBrowserService.window.cancelAnimationFrame(this._refreshAnimationFrame));this._refreshAnimationFrame===null&&(this._refreshAnimationFrame=this._coreBrowserService.window.requestAnimationFrame(()=>this._innerRefresh()))}_innerRefresh(){if(this._charSizeService.height>0){this._currentRowHeight=this._renderService.dimensions.scaledCellHeight/this._coreBrowserService.dpr,this._currentScaledCellHeight=this._renderService.dimensions.scaledCellHeight,this._lastRecordedViewportHeight=this._viewportElement.offsetHeight;const s=Math.round(this._currentRowHeight*this._lastRecordedBufferLength)+(this._lastRecordedViewportHeight-this._renderService.dimensions.canvasHeight);this._lastRecordedBufferHeight!==s&&(this._lastRecordedBufferHeight=s,this._scrollArea.style.height=this._lastRecordedBufferHeight+"px")}const e=this._bufferService.buffer.ydisp*this._currentRowHeight;this._viewportElement.scrollTop!==e&&(this._ignoreNextScrollEvent=!0,this._viewportElement.scrollTop=e),this._refreshAnimationFrame=null}syncScrollArea(e=!1){if(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)}_onScroll(e){if(this._lastScrollTop=this._viewportElement.scrollTop,!this._viewportElement.offsetParent)return;if(this._ignoreNextScrollEvent)return this._ignoreNextScrollEvent=!1,void this._scrollLines(0);const s=Math.round(this._lastScrollTop/this._currentRowHeight)-this._bufferService.buffer.ydisp;this._scrollLines(s)}_smoothScroll(){if(this._isDisposed||this._smoothScrollState.origin===-1||this._smoothScrollState.target===-1)return;const e=this._smoothScrollPercent();this._viewportElement.scrollTop=this._smoothScrollState.origin+Math.round(e*(this._smoothScrollState.target-this._smoothScrollState.origin)),e<1?this._coreBrowserService.window.requestAnimationFrame(()=>this._smoothScroll()):this._clearSmoothScrollState()}_smoothScrollPercent(){return this._optionsService.rawOptions.smoothScrollDuration&&this._smoothScrollState.startTime?Math.max(Math.min((Date.now()-this._smoothScrollState.startTime)/this._optionsService.rawOptions.smoothScrollDuration,1),0):1}_clearSmoothScrollState(){this._smoothScrollState.startTime=0,this._smoothScrollState.origin=-1,this._smoothScrollState.target=-1}_bubbleScroll(e,s){const t=this._viewportElement.scrollTop+this._lastRecordedViewportHeight;return!(s<0&&this._viewportElement.scrollTop!==0||s>0&&t0?1:-1),this._wheelPartialScroll%=1):e.deltaMode===WheelEvent.DOM_DELTA_PAGE&&(s*=this._bufferService.rows),s}_applyScrollModifier(e,s){const t=this._optionsService.rawOptions.fastScrollModifier;return t==="alt"&&s.altKey||t==="ctrl"&&s.ctrlKey||t==="shift"&&s.shiftKey?e*this._optionsService.rawOptions.fastScrollSensitivity*this._optionsService.rawOptions.scrollSensitivity:e*this._optionsService.rawOptions.scrollSensitivity}onTouchStart(e){this._lastTouchY=e.touches[0].pageY}onTouchMove(e){const s=this._lastTouchY-e.touches[0].pageY;return this._lastTouchY=e.touches[0].pageY,s!==0&&(this._viewportElement.scrollTop+=s,this._bubbleScroll(e,s))}};o=n([_(4,l.IBufferService),_(5,l.IOptionsService),_(6,d.ICharSizeService),_(7,d.IRenderService),_(8,d.ICoreBrowserService)],o),r.Viewport=o},3107:function(D,r,a){var n=this&&this.__decorate||function(e,s,t,i){var c,f=arguments.length,p=f<3?s:i===null?i=Object.getOwnPropertyDescriptor(s,t):i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")p=Reflect.decorate(e,s,t,i);else for(var m=e.length-1;m>=0;m--)(c=e[m])&&(p=(f<3?c(p):f>3?c(s,t,p):c(s,t))||p);return f>3&&p&&Object.defineProperty(s,t,p),p},_=this&&this.__param||function(e,s){return function(t,i){s(t,i,e)}};Object.defineProperty(r,"__esModule",{value:!0}),r.BufferDecorationRenderer=void 0;const h=a(3656),u=a(4725),d=a(844),l=a(2585);let o=class extends d.Disposable{constructor(e,s,t,i){super(),this._screenElement=e,this._bufferService=s,this._decorationService=t,this._renderService=i,this._decorationElements=new Map,this._altBufferIsActive=!1,this._dimensionsChanged=!1,this._container=document.createElement("div"),this._container.classList.add("xterm-decoration-container"),this._screenElement.appendChild(this._container),this.register(this._renderService.onRenderedViewportChange(()=>this._queueRefresh())),this.register(this._renderService.onDimensionsChange(()=>{this._dimensionsChanged=!0,this._queueRefresh()})),this.register((0,h.addDisposableDomListener)(window,"resize",()=>this._queueRefresh())),this.register(this._bufferService.buffers.onBufferActivate(()=>{this._altBufferIsActive=this._bufferService.buffer===this._bufferService.buffers.alt})),this.register(this._decorationService.onDecorationRegistered(()=>this._queueRefresh())),this.register(this._decorationService.onDecorationRemoved(c=>this._removeDecoration(c)))}dispose(){this._container.remove(),this._decorationElements.clear(),super.dispose()}_queueRefresh(){this._animationFrame===void 0&&(this._animationFrame=this._renderService.addRefreshCallback(()=>{this.refreshDecorations(),this._animationFrame=void 0}))}refreshDecorations(){for(const e of this._decorationService.decorations)this._renderDecoration(e);this._dimensionsChanged=!1}_renderDecoration(e){this._refreshStyle(e),this._dimensionsChanged&&this._refreshXPosition(e)}_createElement(e){var s;const t=document.createElement("div");t.classList.add("xterm-decoration"),t.style.width=`${Math.round((e.options.width||1)*this._renderService.dimensions.actualCellWidth)}px`,t.style.height=(e.options.height||1)*this._renderService.dimensions.actualCellHeight+"px",t.style.top=(e.marker.line-this._bufferService.buffers.active.ydisp)*this._renderService.dimensions.actualCellHeight+"px",t.style.lineHeight=`${this._renderService.dimensions.actualCellHeight}px`;const i=(s=e.options.x)!==null&&s!==void 0?s:0;return i&&i>this._bufferService.cols&&(t.style.display="none"),this._refreshXPosition(e,t),t}_refreshStyle(e){const s=e.marker.line-this._bufferService.buffers.active.ydisp;if(s<0||s>=this._bufferService.rows)e.element&&(e.element.style.display="none",e.onRenderEmitter.fire(e.element));else{let t=this._decorationElements.get(e);t||(e.onDispose(()=>this._removeDecoration(e)),t=this._createElement(e),e.element=t,this._decorationElements.set(e,t),this._container.appendChild(t)),t.style.top=s*this._renderService.dimensions.actualCellHeight+"px",t.style.display=this._altBufferIsActive?"none":"block",e.onRenderEmitter.fire(t)}}_refreshXPosition(e,s=e.element){var t;if(!s)return;const i=(t=e.options.x)!==null&&t!==void 0?t:0;(e.options.anchor||"left")==="right"?s.style.right=i?i*this._renderService.dimensions.actualCellWidth+"px":"":s.style.left=i?i*this._renderService.dimensions.actualCellWidth+"px":""}_removeDecoration(e){var s;(s=this._decorationElements.get(e))===null||s===void 0||s.remove(),this._decorationElements.delete(e)}};o=n([_(1,l.IBufferService),_(2,l.IDecorationService),_(3,u.IRenderService)],o),r.BufferDecorationRenderer=o},5871:(D,r)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.ColorZoneStore=void 0,r.ColorZoneStore=class{constructor(){this._zones=[],this._zonePool=[],this._zonePoolIndex=0,this._linePadding={full:0,left:0,center:0,right:0}}get zones(){return this._zonePool.length=Math.min(this._zonePool.length,this._zones.length),this._zones}clear(){this._zones.length=0,this._zonePoolIndex=0}addDecoration(a){if(a.options.overviewRulerOptions){for(const n of this._zones)if(n.color===a.options.overviewRulerOptions.color&&n.position===a.options.overviewRulerOptions.position){if(this._lineIntersectsZone(n,a.marker.line))return;if(this._lineAdjacentToZone(n,a.marker.line,a.options.overviewRulerOptions.position))return void this._addLineToZone(n,a.marker.line)}if(this._zonePoolIndex=a.startBufferLine&&n<=a.endBufferLine}_lineAdjacentToZone(a,n,_){return n>=a.startBufferLine-this._linePadding[_||"full"]&&n<=a.endBufferLine+this._linePadding[_||"full"]}_addLineToZone(a,n){a.startBufferLine=Math.min(a.startBufferLine,n),a.endBufferLine=Math.max(a.endBufferLine,n)}}},5744:function(D,r,a){var n=this&&this.__decorate||function(c,f,p,m){var g,S=arguments.length,w=S<3?f:m===null?m=Object.getOwnPropertyDescriptor(f,p):m;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")w=Reflect.decorate(c,f,p,m);else for(var k=c.length-1;k>=0;k--)(g=c[k])&&(w=(S<3?g(w):S>3?g(f,p,w):g(f,p))||w);return S>3&&w&&Object.defineProperty(f,p,w),w},_=this&&this.__param||function(c,f){return function(p,m){f(p,m,c)}};Object.defineProperty(r,"__esModule",{value:!0}),r.OverviewRulerRenderer=void 0;const h=a(5871),u=a(3656),d=a(4725),l=a(844),o=a(2585),e={full:0,left:0,center:0,right:0},s={full:0,left:0,center:0,right:0},t={full:0,left:0,center:0,right:0};let i=class extends l.Disposable{constructor(c,f,p,m,g,S,w){var k;super(),this._viewportElement=c,this._screenElement=f,this._bufferService=p,this._decorationService=m,this._renderService=g,this._optionsService=S,this._coreBrowseService=w,this._colorZoneStore=new h.ColorZoneStore,this._shouldUpdateDimensions=!0,this._shouldUpdateAnchor=!0,this._lastKnownBufferLength=0,this._canvas=document.createElement("canvas"),this._canvas.classList.add("xterm-decoration-overview-ruler"),this._refreshCanvasDimensions(),(k=this._viewportElement.parentElement)===null||k===void 0||k.insertBefore(this._canvas,this._viewportElement);const L=this._canvas.getContext("2d");if(!L)throw new Error("Ctx cannot be null");this._ctx=L,this._registerDecorationListeners(),this._registerBufferChangeListeners(),this._registerDimensionChangeListeners()}get _width(){return this._optionsService.options.overviewRulerWidth||0}_registerDecorationListeners(){this.register(this._decorationService.onDecorationRegistered(()=>this._queueRefresh(void 0,!0))),this.register(this._decorationService.onDecorationRemoved(()=>this._queueRefresh(void 0,!0)))}_registerBufferChangeListeners(){this.register(this._renderService.onRenderedViewportChange(()=>this._queueRefresh())),this.register(this._bufferService.buffers.onBufferActivate(()=>{this._canvas.style.display=this._bufferService.buffer===this._bufferService.buffers.alt?"none":"block"})),this.register(this._bufferService.onScroll(()=>{this._lastKnownBufferLength!==this._bufferService.buffers.normal.lines.length&&(this._refreshDrawHeightConstants(),this._refreshColorZonePadding())}))}_registerDimensionChangeListeners(){this.register(this._renderService.onRender(()=>{this._containerHeight&&this._containerHeight===this._screenElement.clientHeight||(this._queueRefresh(!0),this._containerHeight=this._screenElement.clientHeight)})),this.register(this._optionsService.onOptionChange(c=>{c==="overviewRulerWidth"&&this._queueRefresh(!0)})),this.register((0,u.addDisposableDomListener)(this._coreBrowseService.window,"resize",()=>{this._queueRefresh(!0)})),this._queueRefresh(!0)}dispose(){var c;(c=this._canvas)===null||c===void 0||c.remove(),super.dispose()}_refreshDrawConstants(){const c=Math.floor(this._canvas.width/3),f=Math.ceil(this._canvas.width/3);s.full=this._canvas.width,s.left=c,s.center=f,s.right=c,this._refreshDrawHeightConstants(),t.full=0,t.left=0,t.center=s.left,t.right=s.left+s.center}_refreshDrawHeightConstants(){e.full=Math.round(2*this._coreBrowseService.dpr);const c=this._canvas.height/this._bufferService.buffer.lines.length,f=Math.round(Math.max(Math.min(c,12),6)*this._coreBrowseService.dpr);e.left=f,e.center=f,e.right=f}_refreshColorZonePadding(){this._colorZoneStore.setPadding({full:Math.floor(this._bufferService.buffers.active.lines.length/(this._canvas.height-1)*e.full),left:Math.floor(this._bufferService.buffers.active.lines.length/(this._canvas.height-1)*e.left),center:Math.floor(this._bufferService.buffers.active.lines.length/(this._canvas.height-1)*e.center),right:Math.floor(this._bufferService.buffers.active.lines.length/(this._canvas.height-1)*e.right)}),this._lastKnownBufferLength=this._bufferService.buffers.normal.lines.length}_refreshCanvasDimensions(){this._canvas.style.width=`${this._width}px`,this._canvas.width=Math.round(this._width*this._coreBrowseService.dpr),this._canvas.style.height=`${this._screenElement.clientHeight}px`,this._canvas.height=Math.round(this._screenElement.clientHeight*this._coreBrowseService.dpr),this._refreshDrawConstants(),this._refreshColorZonePadding()}_refreshDecorations(){this._shouldUpdateDimensions&&this._refreshCanvasDimensions(),this._ctx.clearRect(0,0,this._canvas.width,this._canvas.height),this._colorZoneStore.clear();for(const f of this._decorationService.decorations)this._colorZoneStore.addDecoration(f);this._ctx.lineWidth=1;const c=this._colorZoneStore.zones;for(const f of c)f.position!=="full"&&this._renderColorZone(f);for(const f of c)f.position==="full"&&this._renderColorZone(f);this._shouldUpdateDimensions=!1,this._shouldUpdateAnchor=!1}_renderColorZone(c){this._ctx.fillStyle=c.color,this._ctx.fillRect(t[c.position||"full"],Math.round((this._canvas.height-1)*(c.startBufferLine/this._bufferService.buffers.active.lines.length)-e[c.position||"full"]/2),s[c.position||"full"],Math.round((this._canvas.height-1)*((c.endBufferLine-c.startBufferLine)/this._bufferService.buffers.active.lines.length)+e[c.position||"full"]))}_queueRefresh(c,f){this._shouldUpdateDimensions=c||this._shouldUpdateDimensions,this._shouldUpdateAnchor=f||this._shouldUpdateAnchor,this._animationFrame===void 0&&(this._animationFrame=this._coreBrowseService.window.requestAnimationFrame(()=>{this._refreshDecorations(),this._animationFrame=void 0}))}};i=n([_(2,o.IBufferService),_(3,o.IDecorationService),_(4,d.IRenderService),_(5,o.IOptionsService),_(6,d.ICoreBrowserService)],i),r.OverviewRulerRenderer=i},2950:function(D,r,a){var n=this&&this.__decorate||function(o,e,s,t){var i,c=arguments.length,f=c<3?e:t===null?t=Object.getOwnPropertyDescriptor(e,s):t;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")f=Reflect.decorate(o,e,s,t);else for(var p=o.length-1;p>=0;p--)(i=o[p])&&(f=(c<3?i(f):c>3?i(e,s,f):i(e,s))||f);return c>3&&f&&Object.defineProperty(e,s,f),f},_=this&&this.__param||function(o,e){return function(s,t){e(s,t,o)}};Object.defineProperty(r,"__esModule",{value:!0}),r.CompositionHelper=void 0;const h=a(4725),u=a(2585),d=a(2584);let l=class{constructor(o,e,s,t,i,c){this._textarea=o,this._compositionView=e,this._bufferService=s,this._optionsService=t,this._coreService=i,this._renderService=c,this._isComposing=!1,this._isSendingComposition=!1,this._compositionPosition={start:0,end:0},this._dataAlreadySent=""}get isComposing(){return this._isComposing}compositionstart(){this._isComposing=!0,this._compositionPosition.start=this._textarea.value.length,this._compositionView.textContent="",this._dataAlreadySent="",this._compositionView.classList.add("active")}compositionupdate(o){this._compositionView.textContent=o.data,this.updateCompositionElements(),setTimeout(()=>{this._compositionPosition.end=this._textarea.value.length},0)}compositionend(){this._finalizeComposition(!0)}keydown(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)}_finalizeComposition(o){if(this._compositionView.classList.remove("active"),this._isComposing=!1,o){const e={start:this._compositionPosition.start,end:this._compositionPosition.end};this._isSendingComposition=!0,setTimeout(()=>{if(this._isSendingComposition){let s;this._isSendingComposition=!1,e.start+=this._dataAlreadySent.length,s=this._isComposing?this._textarea.value.substring(e.start,e.end):this._textarea.value.substring(e.start),s.length>0&&this._coreService.triggerDataEvent(s,!0)}},0)}else{this._isSendingComposition=!1;const e=this._textarea.value.substring(this._compositionPosition.start,this._compositionPosition.end);this._coreService.triggerDataEvent(e,!0)}}_handleAnyTextareaChanges(){const o=this._textarea.value;setTimeout(()=>{if(!this._isComposing){const e=this._textarea.value,s=e.replace(o,"");this._dataAlreadySent=s,e.length>o.length?this._coreService.triggerDataEvent(s,!0):e.lengththis.updateCompositionElements(!0),0)}}};l=n([_(2,u.IBufferService),_(3,u.IOptionsService),_(4,u.ICoreService),_(5,h.IRenderService)],l),r.CompositionHelper=l},9806:(D,r)=>{function a(n,_,h){const u=h.getBoundingClientRect(),d=n.getComputedStyle(h),l=parseInt(d.getPropertyValue("padding-left")),o=parseInt(d.getPropertyValue("padding-top"));return[_.clientX-u.left-l,_.clientY-u.top-o]}Object.defineProperty(r,"__esModule",{value:!0}),r.getCoords=r.getCoordsRelativeToElement=void 0,r.getCoordsRelativeToElement=a,r.getCoords=function(n,_,h,u,d,l,o,e,s){if(!l)return;const t=a(n,_,h);return t?(t[0]=Math.ceil((t[0]+(s?o/2:0))/o),t[1]=Math.ceil(t[1]/e),t[0]=Math.min(Math.max(t[0],1),u+(s?1:0)),t[1]=Math.min(Math.max(t[1],1),d),t):void 0}},9504:(D,r,a)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.moveToCellSequence=void 0;const n=a(2584);function _(e,s,t,i){const c=e-h(t,e),f=s-h(t,s),p=Math.abs(c-f)-function(m,g,S){let w=0;const k=m-h(S,m),L=g-h(S,g);for(let v=0;v=0&&ss?"A":"B"}function d(e,s,t,i,c,f){let p=e,m=s,g="";for(;p!==t||m!==i;)p+=c?1:-1,c&&p>f.cols-1?(g+=f.buffer.translateBufferLineToString(m,!1,e,p),p=0,e=0,m++):!c&&p<0&&(g+=f.buffer.translateBufferLineToString(m,!1,0,e+1),p=f.cols-1,e=p,m--);return g+f.buffer.translateBufferLineToString(m,!1,e,p)}function l(e,s){const t=s?"O":"[";return n.C0.ESC+t+e}function o(e,s){e=Math.floor(e);let t="";for(let i=0;i0?k-h(L,k):S;const b=k,E=function(A,H,$,U,P,W){let y;return y=_($,U,P,W).length>0?U-h(P,U):H,A<$&&y<=U||A>=$&&ye?"D":"C",o(Math.abs(c-e),l(p,i));p=f>s?"D":"C";const m=Math.abs(f-s);return o(function(g,S){return S.cols-g}(f>s?e:c,t)+(m-1)*t.cols+1+((f>s?c:e)-1),l(p,i))}},8036:(D,r,a)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.TEXT_BASELINE=r.DIM_OPACITY=r.INVERTED_DEFAULT_COLOR=void 0;const n=a(6114);r.INVERTED_DEFAULT_COLOR=257,r.DIM_OPACITY=.5,r.TEXT_BASELINE=n.isFirefox||n.isLegacyEdge?"bottom":"ideographic"},1752:(D,r)=>{function a(n){return 57508<=n&&n<=57558}Object.defineProperty(r,"__esModule",{value:!0}),r.excludeFromContrastRatioDemands=r.isRestrictedPowerlineGlyph=r.isPowerlineGlyph=r.throwIfFalsy=void 0,r.throwIfFalsy=function(n){if(!n)throw new Error("value must not be falsy");return n},r.isPowerlineGlyph=a,r.isRestrictedPowerlineGlyph=function(n){return 57520<=n&&n<=57527},r.excludeFromContrastRatioDemands=function(n){return a(n)||function(_){return 9472<=_&&_<=9631}(n)}},1296:function(D,r,a){var n=this&&this.__decorate||function(m,g,S,w){var k,L=arguments.length,v=L<3?g:w===null?w=Object.getOwnPropertyDescriptor(g,S):w;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")v=Reflect.decorate(m,g,S,w);else for(var C=m.length-1;C>=0;C--)(k=m[C])&&(v=(L<3?k(v):L>3?k(g,S,v):k(g,S))||v);return L>3&&v&&Object.defineProperty(g,S,v),v},_=this&&this.__param||function(m,g){return function(S,w){g(S,w,m)}};Object.defineProperty(r,"__esModule",{value:!0}),r.DomRenderer=void 0;const h=a(3787),u=a(8036),d=a(844),l=a(4725),o=a(2585),e=a(8460),s=a(8055),t=a(9631),i="xterm-dom-renderer-owner-",c="xterm-focus";let f=1,p=class extends d.Disposable{constructor(m,g,S,w,k,L,v,C,b,E){super(),this._colors=m,this._element=g,this._screenElement=S,this._viewportElement=w,this._linkifier2=k,this._charSizeService=v,this._optionsService=C,this._bufferService=b,this._coreBrowserService=E,this._terminalClass=f++,this._rowElements=[],this._rowContainer=document.createElement("div"),this._rowContainer.classList.add("xterm-rows"),this._rowContainer.style.lineHeight="normal",this._rowContainer.setAttribute("aria-hidden","true"),this._refreshRowElements(this._bufferService.cols,this._bufferService.rows),this._selectionContainer=document.createElement("div"),this._selectionContainer.classList.add("xterm-selection"),this._selectionContainer.setAttribute("aria-hidden","true"),this.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},this._updateDimensions(),this._injectCss(),this._rowFactory=L.createInstance(h.DomRendererRowFactory,document,this._colors),this._element.classList.add(i+this._terminalClass),this._screenElement.appendChild(this._rowContainer),this._screenElement.appendChild(this._selectionContainer),this.register(this._linkifier2.onShowLinkUnderline(A=>this._onLinkHover(A))),this.register(this._linkifier2.onHideLinkUnderline(A=>this._onLinkLeave(A)))}get onRequestRedraw(){return new e.EventEmitter().event}dispose(){this._element.classList.remove(i+this._terminalClass),(0,t.removeElementFromParent)(this._rowContainer,this._selectionContainer,this._themeStyleElement,this._dimensionsStyleElement),super.dispose()}_updateDimensions(){const m=this._coreBrowserService.dpr;this.dimensions.scaledCharWidth=this._charSizeService.width*m,this.dimensions.scaledCharHeight=Math.ceil(this._charSizeService.height*m),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/m),this.dimensions.canvasHeight=Math.round(this.dimensions.scaledCanvasHeight/m),this.dimensions.actualCellWidth=this.dimensions.canvasWidth/this._bufferService.cols,this.dimensions.actualCellHeight=this.dimensions.canvasHeight/this._bufferService.rows;for(const S of this._rowElements)S.style.width=`${this.dimensions.canvasWidth}px`,S.style.height=`${this.dimensions.actualCellHeight}px`,S.style.lineHeight=`${this.dimensions.actualCellHeight}px`,S.style.overflow="hidden";this._dimensionsStyleElement||(this._dimensionsStyleElement=document.createElement("style"),this._screenElement.appendChild(this._dimensionsStyleElement));const g=`${this._terminalSelector} .xterm-rows span { display: inline-block; height: 100%; vertical-align: top; width: ${this.dimensions.actualCellWidth}px}`;this._dimensionsStyleElement.textContent=g,this._selectionContainer.style.height=this._viewportElement.style.height,this._screenElement.style.width=`${this.dimensions.canvasWidth}px`,this._screenElement.style.height=`${this.dimensions.canvasHeight}px`}setColors(m){this._colors=m,this._injectCss()}_injectCss(){this._themeStyleElement||(this._themeStyleElement=document.createElement("style"),this._screenElement.appendChild(this._themeStyleElement));let m=`${this._terminalSelector} .xterm-rows { color: ${this._colors.foreground.css}; font-family: ${this._optionsService.rawOptions.fontFamily}; font-size: ${this._optionsService.rawOptions.fontSize}px;}`;m+=`${this._terminalSelector} span:not(.${h.BOLD_CLASS}) { font-weight: ${this._optionsService.rawOptions.fontWeight};}${this._terminalSelector} span.${h.BOLD_CLASS} { font-weight: ${this._optionsService.rawOptions.fontWeightBold};}${this._terminalSelector} span.${h.ITALIC_CLASS} { font-style: italic;}`,m+="@keyframes blink_box_shadow_"+this._terminalClass+" { 50% { box-shadow: none; }}",m+="@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}; }}`,m+=`${this._terminalSelector} .xterm-rows:not(.xterm-focus) .${h.CURSOR_CLASS}.${h.CURSOR_STYLE_BLOCK_CLASS} { outline: 1px solid ${this._colors.cursor.css}; outline-offset: -1px;}${this._terminalSelector} .xterm-rows.xterm-focus .${h.CURSOR_CLASS}.${h.CURSOR_BLINK_CLASS}:not(.${h.CURSOR_STYLE_BLOCK_CLASS}) { animation: blink_box_shadow_`+this._terminalClass+` 1s step-end infinite;}${this._terminalSelector} .xterm-rows.xterm-focus .${h.CURSOR_CLASS}.${h.CURSOR_BLINK_CLASS}.${h.CURSOR_STYLE_BLOCK_CLASS} { animation: blink_block_`+this._terminalClass+` 1s step-end infinite;}${this._terminalSelector} .xterm-rows.xterm-focus .${h.CURSOR_CLASS}.${h.CURSOR_STYLE_BLOCK_CLASS} { background-color: ${this._colors.cursor.css}; color: ${this._colors.cursorAccent.css};}${this._terminalSelector} .xterm-rows .${h.CURSOR_CLASS}.${h.CURSOR_STYLE_BAR_CLASS} { box-shadow: ${this._optionsService.rawOptions.cursorWidth}px 0 0 ${this._colors.cursor.css} inset;}${this._terminalSelector} .xterm-rows .${h.CURSOR_CLASS}.${h.CURSOR_STYLE_UNDERLINE_CLASS} { box-shadow: 0 -1px 0 ${this._colors.cursor.css} inset;}`,m+=`${this._terminalSelector} .xterm-selection { position: absolute; top: 0; left: 0; z-index: 1; pointer-events: none;}${this._terminalSelector}.focus .xterm-selection div { position: absolute; background-color: ${this._colors.selectionBackgroundOpaque.css};}${this._terminalSelector} .xterm-selection div { position: absolute; background-color: ${this._colors.selectionInactiveBackgroundOpaque.css};}`,this._colors.ansi.forEach((g,S)=>{m+=`${this._terminalSelector} .xterm-fg-${S} { color: ${g.css}; }${this._terminalSelector} .xterm-bg-${S} { background-color: ${g.css}; }`}),m+=`${this._terminalSelector} .xterm-fg-${u.INVERTED_DEFAULT_COLOR} { color: ${s.color.opaque(this._colors.background).css}; }${this._terminalSelector} .xterm-bg-${u.INVERTED_DEFAULT_COLOR} { background-color: ${this._colors.foreground.css}; }`,this._themeStyleElement.textContent=m}onDevicePixelRatioChange(){this._updateDimensions()}_refreshRowElements(m,g){for(let S=this._rowElements.length;S<=g;S++){const w=document.createElement("div");this._rowContainer.appendChild(w),this._rowElements.push(w)}for(;this._rowElements.length>g;)this._rowContainer.removeChild(this._rowElements.pop())}onResize(m,g){this._refreshRowElements(m,g),this._updateDimensions()}onCharSizeChanged(){this._updateDimensions()}onBlur(){this._rowContainer.classList.remove(c)}onFocus(){this._rowContainer.classList.add(c)}onSelectionChanged(m,g,S){for(;this._selectionContainer.children.length;)this._selectionContainer.removeChild(this._selectionContainer.children[0]);if(this._rowFactory.onSelectionChanged(m,g,S),this.renderRows(0,this._bufferService.rows-1),!m||!g)return;const w=m[1]-this._bufferService.buffer.ydisp,k=g[1]-this._bufferService.buffer.ydisp,L=Math.max(w,0),v=Math.min(k,this._bufferService.rows-1);if(L>=this._bufferService.rows||v<0)return;const C=document.createDocumentFragment();if(S){const b=m[0]>g[0];C.appendChild(this._createSelectionElement(L,b?g[0]:m[0],b?m[0]:g[0],v-L+1))}else{const b=w===L?m[0]:0,E=L===k?g[0]:this._bufferService.cols;C.appendChild(this._createSelectionElement(L,b,E));const A=v-L-1;if(C.appendChild(this._createSelectionElement(L+1,0,this._bufferService.cols,A)),L!==v){const H=k===v?g[0]:this._bufferService.cols;C.appendChild(this._createSelectionElement(v,0,H))}}this._selectionContainer.appendChild(C)}_createSelectionElement(m,g,S,w=1){const k=document.createElement("div");return k.style.height=w*this.dimensions.actualCellHeight+"px",k.style.top=m*this.dimensions.actualCellHeight+"px",k.style.left=g*this.dimensions.actualCellWidth+"px",k.style.width=this.dimensions.actualCellWidth*(S-g)+"px",k}onCursorMove(){}onOptionsChanged(){this._updateDimensions(),this._injectCss()}clear(){for(const m of this._rowElements)m.innerText=""}renderRows(m,g){const S=this._bufferService.buffer.ybase+this._bufferService.buffer.y,w=Math.min(this._bufferService.buffer.x,this._bufferService.cols-1),k=this._optionsService.rawOptions.cursorBlink;for(let L=m;L<=g;L++){const v=this._rowElements[L];v.innerText="";const C=L+this._bufferService.buffer.ydisp,b=this._bufferService.buffer.lines.get(C),E=this._optionsService.rawOptions.cursorStyle;v.appendChild(this._rowFactory.createRow(b,C,C===S,E,w,k,this.dimensions.actualCellWidth,this._bufferService.cols))}}get _terminalSelector(){return`.${i}${this._terminalClass}`}_onLinkHover(m){this._setCellUnderline(m.x1,m.x2,m.y1,m.y2,m.cols,!0)}_onLinkLeave(m){this._setCellUnderline(m.x1,m.x2,m.y1,m.y2,m.cols,!1)}_setCellUnderline(m,g,S,w,k,L){for(;m!==g||S!==w;){const v=this._rowElements[S];if(!v)return;const C=v.children[m];C&&(C.style.textDecoration=L?"underline":"none"),++m>=k&&(m=0,S++)}}};p=n([_(5,o.IInstantiationService),_(6,l.ICharSizeService),_(7,o.IOptionsService),_(8,o.IBufferService),_(9,l.ICoreBrowserService)],p),r.DomRenderer=p},3787:function(D,r,a){var n=this&&this.__decorate||function(p,m,g,S){var w,k=arguments.length,L=k<3?m:S===null?S=Object.getOwnPropertyDescriptor(m,g):S;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")L=Reflect.decorate(p,m,g,S);else for(var v=p.length-1;v>=0;v--)(w=p[v])&&(L=(k<3?w(L):k>3?w(m,g,L):w(m,g))||L);return k>3&&L&&Object.defineProperty(m,g,L),L},_=this&&this.__param||function(p,m){return function(g,S){m(g,S,p)}};Object.defineProperty(r,"__esModule",{value:!0}),r.DomRendererRowFactory=r.CURSOR_STYLE_UNDERLINE_CLASS=r.CURSOR_STYLE_BAR_CLASS=r.CURSOR_STYLE_BLOCK_CLASS=r.CURSOR_BLINK_CLASS=r.CURSOR_CLASS=r.STRIKETHROUGH_CLASS=r.UNDERLINE_CLASS=r.ITALIC_CLASS=r.DIM_CLASS=r.BOLD_CLASS=void 0;const h=a(8036),u=a(643),d=a(511),l=a(2585),o=a(8055),e=a(4725),s=a(4269),t=a(1752),i=a(3734);r.BOLD_CLASS="xterm-bold",r.DIM_CLASS="xterm-dim",r.ITALIC_CLASS="xterm-italic",r.UNDERLINE_CLASS="xterm-underline",r.STRIKETHROUGH_CLASS="xterm-strikethrough",r.CURSOR_CLASS="xterm-cursor",r.CURSOR_BLINK_CLASS="xterm-cursor-blink",r.CURSOR_STYLE_BLOCK_CLASS="xterm-cursor-block",r.CURSOR_STYLE_BAR_CLASS="xterm-cursor-bar",r.CURSOR_STYLE_UNDERLINE_CLASS="xterm-cursor-underline";let c=class{constructor(p,m,g,S,w,k,L){this._document=p,this._colors=m,this._characterJoinerService=g,this._optionsService=S,this._coreBrowserService=w,this._coreService=k,this._decorationService=L,this._workCell=new d.CellData,this._columnSelectMode=!1}setColors(p){this._colors=p}onSelectionChanged(p,m,g){this._selectionStart=p,this._selectionEnd=m,this._columnSelectMode=g}createRow(p,m,g,S,w,k,L,v){const C=this._document.createDocumentFragment(),b=this._characterJoinerService.getJoinedCharacters(m);let E=0;for(let A=Math.min(p.length,v)-1;A>=0;A--)if(p.loadCell(A,this._workCell).getCode()!==u.NULL_CELL_CODE||g&&A===w){E=A+1;break}for(let A=0;A0&&A===b[0][0]){$=!0;const j=b.shift();P=new s.JoinedCellData(this._workCell,p.translateToString(!0,j[0],j[1]),j[1]-j[0]),U=j[1]-1,H=P.getWidth()}const W=this._document.createElement("span");if(H>1&&(W.style.width=L*H+"px"),$&&(W.style.display="inline",w>=A&&w<=U&&(w=A)),!this._coreService.isCursorHidden&&g&&A===w)switch(W.classList.add(r.CURSOR_CLASS),k&&W.classList.add(r.CURSOR_BLINK_CLASS),S){case"bar":W.classList.add(r.CURSOR_STYLE_BAR_CLASS);break;case"underline":W.classList.add(r.CURSOR_STYLE_UNDERLINE_CLASS);break;default:W.classList.add(r.CURSOR_STYLE_BLOCK_CLASS)}if(P.isBold()&&W.classList.add(r.BOLD_CLASS),P.isItalic()&&W.classList.add(r.ITALIC_CLASS),P.isDim()&&W.classList.add(r.DIM_CLASS),P.isInvisible()?W.textContent=u.WHITESPACE_CELL_CHAR:W.textContent=P.getChars()||u.WHITESPACE_CELL_CHAR,P.isUnderline()&&(W.classList.add(`${r.UNDERLINE_CLASS}-${P.extended.underlineStyle}`),W.textContent===" "&&(W.innerHTML=" "),!P.isUnderlineColorDefault()))if(P.isUnderlineColorRGB())W.style.textDecorationColor=`rgb(${i.AttributeData.toColorRGB(P.getUnderlineColor()).join(",")})`;else{let j=P.getUnderlineColor();this._optionsService.rawOptions.drawBoldTextInBrightColors&&P.isBold()&&j<8&&(j+=8),W.style.textDecorationColor=this._colors.ansi[j].css}P.isStrikethrough()&&W.classList.add(r.STRIKETHROUGH_CLASS);let y=P.getFgColor(),T=P.getFgColorMode(),O=P.getBgColor(),R=P.getBgColorMode();const x=!!P.isInverse();if(x){const j=y;y=O,O=j;const X=T;T=R,R=X}let B,I,F=!1;this._decorationService.forEachDecorationAtCell(A,m,void 0,j=>{j.options.layer!=="top"&&F||(j.backgroundColorRGB&&(R=50331648,O=j.backgroundColorRGB.rgba>>8&16777215,B=j.backgroundColorRGB),j.foregroundColorRGB&&(T=50331648,y=j.foregroundColorRGB.rgba>>8&16777215,I=j.foregroundColorRGB),F=j.options.layer==="top")});const M=this._isCellInSelection(A,m);let K;switch(F||this._colors.selectionForeground&&M&&(T=50331648,y=this._colors.selectionForeground.rgba>>8&16777215,I=this._colors.selectionForeground),M&&(B=this._coreBrowserService.isFocused?this._colors.selectionBackgroundOpaque:this._colors.selectionInactiveBackgroundOpaque,F=!0),F&&W.classList.add("xterm-decoration-top"),R){case 16777216:case 33554432:K=this._colors.ansi[O],W.classList.add(`xterm-bg-${O}`);break;case 50331648:K=o.rgba.toColor(O>>16,O>>8&255,255&O),this._addStyle(W,`background-color:#${f((O>>>0).toString(16),"0",6)}`);break;default:x?(K=this._colors.foreground,W.classList.add(`xterm-bg-${h.INVERTED_DEFAULT_COLOR}`)):K=this._colors.background}switch(B||P.isDim()&&(B=o.color.multiplyOpacity(K,.5)),T){case 16777216:case 33554432:P.isBold()&&y<8&&this._optionsService.rawOptions.drawBoldTextInBrightColors&&(y+=8),this._applyMinimumContrast(W,K,this._colors.ansi[y],P,B,void 0)||W.classList.add(`xterm-fg-${y}`);break;case 50331648:const j=o.rgba.toColor(y>>16&255,y>>8&255,255&y);this._applyMinimumContrast(W,K,j,P,B,I)||this._addStyle(W,`color:#${f(y.toString(16),"0",6)}`);break;default:this._applyMinimumContrast(W,K,this._colors.foreground,P,B,void 0)||x&&W.classList.add(`xterm-fg-${h.INVERTED_DEFAULT_COLOR}`)}C.appendChild(W),A=U}return C}_applyMinimumContrast(p,m,g,S,w,k){if(this._optionsService.rawOptions.minimumContrastRatio===1||(0,t.excludeFromContrastRatioDemands)(S.getCode()))return!1;let L;return w||k||(L=this._colors.contrastCache.getColor(m.rgba,g.rgba)),L===void 0&&(L=o.color.ensureContrastRatio(w||m,k||g,this._optionsService.rawOptions.minimumContrastRatio),this._colors.contrastCache.setColor((w||m).rgba,(k||g).rgba,L!=null?L:null)),!!L&&(this._addStyle(p,`color:${L.css}`),!0)}_addStyle(p,m){p.setAttribute("style",`${p.getAttribute("style")||""}${m};`)}_isCellInSelection(p,m){const g=this._selectionStart,S=this._selectionEnd;return!(!g||!S)&&(this._columnSelectMode?g[0]<=S[0]?p>=g[0]&&m>=g[1]&&p=g[1]&&p>=S[0]&&m<=S[1]:m>g[1]&&m=g[0]&&p=g[0])}};function f(p,m,g){for(;p.length{Object.defineProperty(r,"__esModule",{value:!0}),r.SelectionModel=void 0,r.SelectionModel=class{constructor(a){this._bufferService=a,this.isSelectAllActive=!1,this.selectionStartLength=0}clearSelection(){this.selectionStart=void 0,this.selectionEnd=void 0,this.isSelectAllActive=!1,this.selectionStartLength=0}get finalSelectionStart(){return this.isSelectAllActive?[0,0]:this.selectionEnd&&this.selectionStart&&this.areSelectionValuesReversed()?this.selectionEnd:this.selectionStart}get finalSelectionEnd(){if(this.isSelectAllActive)return[this._bufferService.cols,this._bufferService.buffer.ybase+this._bufferService.rows-1];if(this.selectionStart){if(!this.selectionEnd||this.areSelectionValuesReversed()){const a=this.selectionStart[0]+this.selectionStartLength;return a>this._bufferService.cols?a%this._bufferService.cols==0?[this._bufferService.cols,this.selectionStart[1]+Math.floor(a/this._bufferService.cols)-1]:[a%this._bufferService.cols,this.selectionStart[1]+Math.floor(a/this._bufferService.cols)]:[a,this.selectionStart[1]]}if(this.selectionStartLength&&this.selectionEnd[1]===this.selectionStart[1]){const a=this.selectionStart[0]+this.selectionStartLength;return a>this._bufferService.cols?[a%this._bufferService.cols,this.selectionStart[1]+Math.floor(a/this._bufferService.cols)]:[Math.max(a,this.selectionEnd[0]),this.selectionEnd[1]]}return this.selectionEnd}}areSelectionValuesReversed(){const a=this.selectionStart,n=this.selectionEnd;return!(!a||!n)&&(a[1]>n[1]||a[1]===n[1]&&a[0]>n[0])}onTrim(a){return this.selectionStart&&(this.selectionStart[1]-=a),this.selectionEnd&&(this.selectionEnd[1]-=a),this.selectionEnd&&this.selectionEnd[1]<0?(this.clearSelection(),!0):(this.selectionStart&&this.selectionStart[1]<0&&(this.selectionStart[1]=0),!1)}}},428:function(D,r,a){var n=this&&this.__decorate||function(o,e,s,t){var i,c=arguments.length,f=c<3?e:t===null?t=Object.getOwnPropertyDescriptor(e,s):t;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")f=Reflect.decorate(o,e,s,t);else for(var p=o.length-1;p>=0;p--)(i=o[p])&&(f=(c<3?i(f):c>3?i(e,s,f):i(e,s))||f);return c>3&&f&&Object.defineProperty(e,s,f),f},_=this&&this.__param||function(o,e){return function(s,t){e(s,t,o)}};Object.defineProperty(r,"__esModule",{value:!0}),r.CharSizeService=void 0;const h=a(2585),u=a(8460);let d=class{constructor(o,e,s){this._optionsService=s,this.width=0,this.height=0,this._onCharSizeChange=new u.EventEmitter,this._measureStrategy=new l(o,e,this._optionsService)}get hasValidSize(){return this.width>0&&this.height>0}get onCharSizeChange(){return this._onCharSizeChange.event}measure(){const o=this._measureStrategy.measure();o.width===this.width&&o.height===this.height||(this.width=o.width,this.height=o.height,this._onCharSizeChange.fire())}};d=n([_(2,h.IOptionsService)],d),r.CharSizeService=d;class l{constructor(e,s,t){this._document=e,this._parentElement=s,this._optionsService=t,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)}measure(){this._measureElement.style.fontFamily=this._optionsService.rawOptions.fontFamily,this._measureElement.style.fontSize=`${this._optionsService.rawOptions.fontSize}px`;const e=this._measureElement.getBoundingClientRect();return e.width!==0&&e.height!==0&&(this._result.width=e.width,this._result.height=Math.ceil(e.height)),this._result}}},4269:function(D,r,a){var n=this&&this.__decorate||function(s,t,i,c){var f,p=arguments.length,m=p<3?t:c===null?c=Object.getOwnPropertyDescriptor(t,i):c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")m=Reflect.decorate(s,t,i,c);else for(var g=s.length-1;g>=0;g--)(f=s[g])&&(m=(p<3?f(m):p>3?f(t,i,m):f(t,i))||m);return p>3&&m&&Object.defineProperty(t,i,m),m},_=this&&this.__param||function(s,t){return function(i,c){t(i,c,s)}};Object.defineProperty(r,"__esModule",{value:!0}),r.CharacterJoinerService=r.JoinedCellData=void 0;const h=a(3734),u=a(643),d=a(511),l=a(2585);class o extends h.AttributeData{constructor(t,i,c){super(),this.content=0,this.combinedData="",this.fg=t.fg,this.bg=t.bg,this.combinedData=i,this._width=c}isCombined(){return 2097152}getWidth(){return this._width}getChars(){return this.combinedData}getCode(){return 2097151}setFromCharData(t){throw new Error("not implemented")}getAsCharData(){return[this.fg,this.getChars(),this.getWidth(),this.getCode()]}}r.JoinedCellData=o;let e=class ie{constructor(t){this._bufferService=t,this._characterJoiners=[],this._nextCharacterJoinerId=0,this._workCell=new d.CellData}register(t){const i={id:this._nextCharacterJoinerId++,handler:t};return this._characterJoiners.push(i),i.id}deregister(t){for(let i=0;i1){const L=this._getJoinedRanges(f,g,m,i,p);for(let v=0;v1){const k=this._getJoinedRanges(f,g,m,i,p);for(let L=0;L{Object.defineProperty(r,"__esModule",{value:!0}),r.CoreBrowserService=void 0,r.CoreBrowserService=class{constructor(a,n){this._textarea=a,this.window=n}get dpr(){return this.window.devicePixelRatio}get isFocused(){return(this._textarea.getRootNode?this._textarea.getRootNode():this._textarea.ownerDocument).activeElement===this._textarea&&this._textarea.ownerDocument.hasFocus()}}},8934:function(D,r,a){var n=this&&this.__decorate||function(l,o,e,s){var t,i=arguments.length,c=i<3?o:s===null?s=Object.getOwnPropertyDescriptor(o,e):s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")c=Reflect.decorate(l,o,e,s);else for(var f=l.length-1;f>=0;f--)(t=l[f])&&(c=(i<3?t(c):i>3?t(o,e,c):t(o,e))||c);return i>3&&c&&Object.defineProperty(o,e,c),c},_=this&&this.__param||function(l,o){return function(e,s){o(e,s,l)}};Object.defineProperty(r,"__esModule",{value:!0}),r.MouseService=void 0;const h=a(4725),u=a(9806);let d=class{constructor(l,o){this._renderService=l,this._charSizeService=o}getCoords(l,o,e,s,t){return(0,u.getCoords)(window,l,o,e,s,this._charSizeService.hasValidSize,this._renderService.dimensions.actualCellWidth,this._renderService.dimensions.actualCellHeight,t)}getMouseReportCoords(l,o){const e=(0,u.getCoordsRelativeToElement)(window,l,o);if(!(!this._charSizeService.hasValidSize||e[0]<0||e[1]<0||e[0]>=this._renderService.dimensions.canvasWidth||e[1]>=this._renderService.dimensions.canvasHeight))return{col:Math.floor(e[0]/this._renderService.dimensions.actualCellWidth),row:Math.floor(e[1]/this._renderService.dimensions.actualCellHeight),x:Math.floor(e[0]),y:Math.floor(e[1])}}};d=n([_(0,h.IRenderService),_(1,h.ICharSizeService)],d),r.MouseService=d},3230:function(D,r,a){var n=this&&this.__decorate||function(i,c,f,p){var m,g=arguments.length,S=g<3?c:p===null?p=Object.getOwnPropertyDescriptor(c,f):p;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")S=Reflect.decorate(i,c,f,p);else for(var w=i.length-1;w>=0;w--)(m=i[w])&&(S=(g<3?m(S):g>3?m(c,f,S):m(c,f))||S);return g>3&&S&&Object.defineProperty(c,f,S),S},_=this&&this.__param||function(i,c){return function(f,p){c(f,p,i)}};Object.defineProperty(r,"__esModule",{value:!0}),r.RenderService=void 0;const h=a(6193),u=a(8460),d=a(844),l=a(5596),o=a(3656),e=a(2585),s=a(4725);let t=class extends d.Disposable{constructor(i,c,f,p,m,g,S,w){if(super(),this._renderer=i,this._rowCount=c,this._charSizeService=m,this._isPaused=!1,this._needsFullRefresh=!1,this._isNextRenderRedrawOnly=!0,this._needsSelectionRefresh=!1,this._canvasWidth=0,this._canvasHeight=0,this._selectionState={start:void 0,end:void 0,columnSelectMode:!1},this._onDimensionsChange=new u.EventEmitter,this._onRenderedViewportChange=new u.EventEmitter,this._onRender=new u.EventEmitter,this._onRefreshRequest=new u.EventEmitter,this.register({dispose:()=>this._renderer.dispose()}),this._renderDebouncer=new h.RenderDebouncer(w.window,(k,L)=>this._renderRows(k,L)),this.register(this._renderDebouncer),this._screenDprMonitor=new l.ScreenDprMonitor(w.window),this._screenDprMonitor.setListener(()=>this.onDevicePixelRatioChange()),this.register(this._screenDprMonitor),this.register(S.onResize(()=>this._fullRefresh())),this.register(S.buffers.onBufferActivate(()=>{var k;return(k=this._renderer)===null||k===void 0?void 0:k.clear()})),this.register(p.onOptionChange(()=>this._handleOptionsChanged())),this.register(this._charSizeService.onCharSizeChange(()=>this.onCharSizeChanged())),this.register(g.onDecorationRegistered(()=>this._fullRefresh())),this.register(g.onDecorationRemoved(()=>this._fullRefresh())),this._renderer.onRequestRedraw(k=>this.refreshRows(k.start,k.end,!0)),this.register((0,o.addDisposableDomListener)(w.window,"resize",()=>this.onDevicePixelRatioChange())),"IntersectionObserver"in w.window){const k=new w.window.IntersectionObserver(L=>this._onIntersectionChange(L[L.length-1]),{threshold:0});k.observe(f),this.register({dispose:()=>k.disconnect()})}}get onDimensionsChange(){return this._onDimensionsChange.event}get onRenderedViewportChange(){return this._onRenderedViewportChange.event}get onRender(){return this._onRender.event}get onRefreshRequest(){return this._onRefreshRequest.event}get dimensions(){return this._renderer.dimensions}_onIntersectionChange(i){this._isPaused=i.isIntersecting===void 0?i.intersectionRatio===0:!i.isIntersecting,this._isPaused||this._charSizeService.hasValidSize||this._charSizeService.measure(),!this._isPaused&&this._needsFullRefresh&&(this.refreshRows(0,this._rowCount-1),this._needsFullRefresh=!1)}refreshRows(i,c,f=!1){this._isPaused?this._needsFullRefresh=!0:(f||(this._isNextRenderRedrawOnly=!1),this._renderDebouncer.refresh(i,c,this._rowCount))}_renderRows(i,c){this._renderer.renderRows(i,c),this._needsSelectionRefresh&&(this._renderer.onSelectionChanged(this._selectionState.start,this._selectionState.end,this._selectionState.columnSelectMode),this._needsSelectionRefresh=!1),this._isNextRenderRedrawOnly||this._onRenderedViewportChange.fire({start:i,end:c}),this._onRender.fire({start:i,end:c}),this._isNextRenderRedrawOnly=!0}resize(i,c){this._rowCount=c,this._fireOnCanvasResize()}_handleOptionsChanged(){this._renderer.onOptionsChanged(),this.refreshRows(0,this._rowCount-1),this._fireOnCanvasResize()}_fireOnCanvasResize(){this._renderer.dimensions.canvasWidth===this._canvasWidth&&this._renderer.dimensions.canvasHeight===this._canvasHeight||this._onDimensionsChange.fire(this._renderer.dimensions)}dispose(){super.dispose()}setRenderer(i){this._renderer.dispose(),this._renderer=i,this._renderer.onRequestRedraw(c=>this.refreshRows(c.start,c.end,!0)),this._needsSelectionRefresh=!0,this._fullRefresh()}addRefreshCallback(i){return this._renderDebouncer.addRefreshCallback(i)}_fullRefresh(){this._isPaused?this._needsFullRefresh=!0:this.refreshRows(0,this._rowCount-1)}clearTextureAtlas(){var i,c;(c=(i=this._renderer)===null||i===void 0?void 0:i.clearTextureAtlas)===null||c===void 0||c.call(i),this._fullRefresh()}setColors(i){this._renderer.setColors(i),this._fullRefresh()}onDevicePixelRatioChange(){this._charSizeService.measure(),this._renderer.onDevicePixelRatioChange(),this.refreshRows(0,this._rowCount-1)}onResize(i,c){this._renderer.onResize(i,c),this._fullRefresh()}onCharSizeChanged(){this._renderer.onCharSizeChanged()}onBlur(){this._renderer.onBlur()}onFocus(){this._renderer.onFocus()}onSelectionChanged(i,c,f){this._selectionState.start=i,this._selectionState.end=c,this._selectionState.columnSelectMode=f,this._renderer.onSelectionChanged(i,c,f)}onCursorMove(){this._renderer.onCursorMove()}clear(){this._renderer.clear()}};t=n([_(3,e.IOptionsService),_(4,s.ICharSizeService),_(5,e.IDecorationService),_(6,e.IBufferService),_(7,s.ICoreBrowserService)],t),r.RenderService=t},9312:function(D,r,a){var n=this&&this.__decorate||function(g,S,w,k){var L,v=arguments.length,C=v<3?S:k===null?k=Object.getOwnPropertyDescriptor(S,w):k;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")C=Reflect.decorate(g,S,w,k);else for(var b=g.length-1;b>=0;b--)(L=g[b])&&(C=(v<3?L(C):v>3?L(S,w,C):L(S,w))||C);return v>3&&C&&Object.defineProperty(S,w,C),C},_=this&&this.__param||function(g,S){return function(w,k){S(w,k,g)}};Object.defineProperty(r,"__esModule",{value:!0}),r.SelectionService=void 0;const h=a(6114),u=a(456),d=a(511),l=a(8460),o=a(4725),e=a(2585),s=a(9806),t=a(9504),i=a(844),c=a(4841),f=String.fromCharCode(160),p=new RegExp(f,"g");let m=class extends i.Disposable{constructor(g,S,w,k,L,v,C,b,E){super(),this._element=g,this._screenElement=S,this._linkifier=w,this._bufferService=k,this._coreService=L,this._mouseService=v,this._optionsService=C,this._renderService=b,this._coreBrowserService=E,this._dragScrollAmount=0,this._enabled=!0,this._workCell=new d.CellData,this._mouseDownTimeStamp=0,this._oldHasSelection=!1,this._oldSelectionStart=void 0,this._oldSelectionEnd=void 0,this._onLinuxMouseSelection=this.register(new l.EventEmitter),this._onRedrawRequest=this.register(new l.EventEmitter),this._onSelectionChange=this.register(new l.EventEmitter),this._onRequestScrollLines=this.register(new l.EventEmitter),this._mouseMoveListener=A=>this._onMouseMove(A),this._mouseUpListener=A=>this._onMouseUp(A),this._coreService.onUserInput(()=>{this.hasSelection&&this.clearSelection()}),this._trimListener=this._bufferService.buffer.lines.onTrim(A=>this._onTrim(A)),this.register(this._bufferService.buffers.onBufferActivate(A=>this._onBufferActivate(A))),this.enable(),this._model=new u.SelectionModel(this._bufferService),this._activeSelectionMode=0}get onLinuxMouseSelection(){return this._onLinuxMouseSelection.event}get onRequestRedraw(){return this._onRedrawRequest.event}get onSelectionChange(){return this._onSelectionChange.event}get onRequestScrollLines(){return this._onRequestScrollLines.event}dispose(){this._removeMouseDownListeners()}reset(){this.clearSelection()}disable(){this.clearSelection(),this._enabled=!1}enable(){this._enabled=!0}get selectionStart(){return this._model.finalSelectionStart}get selectionEnd(){return this._model.finalSelectionEnd}get hasSelection(){const g=this._model.finalSelectionStart,S=this._model.finalSelectionEnd;return!(!g||!S||g[0]===S[0]&&g[1]===S[1])}get selectionText(){const g=this._model.finalSelectionStart,S=this._model.finalSelectionEnd;if(!g||!S)return"";const w=this._bufferService.buffer,k=[];if(this._activeSelectionMode===3){if(g[0]===S[0])return"";const L=g[0]L.replace(p," ")).join(h.isWindows?`\r
`:`
diff --git a/server/static/static/assets/SshTerminalPage.1665447590227.js b/server/static/static/assets/SshTerminalPage.1665826199593.js
similarity index 80%
rename from server/static/static/assets/SshTerminalPage.1665447590227.js
rename to server/static/static/assets/SshTerminalPage.1665826199593.js
index 5aac6036..fb728390 100644
--- a/server/static/static/assets/SshTerminalPage.1665447590227.js
+++ b/server/static/static/assets/SshTerminalPage.1665826199593.js
@@ -1 +1 @@
-var i=Object.defineProperty;var a=Object.getOwnPropertySymbols;var m=Object.prototype.hasOwnProperty,h=Object.prototype.propertyIsEnumerable;var s=(n,e,t)=>e in n?i(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t,o=(n,e)=>{for(var t in e||(e={}))m.call(e,t)&&s(n,t,e[t]);if(a)for(var t of a(e))h.call(e,t)&&s(n,t,e[t]);return n};import{S as c}from"./SshTerminal.1665447590227.js";import{_ as p,A as d,S as l,r as u,o as f,t as _,b as g,e as I,g as S,d as v}from"./index.1665447590227.js";const $=d({name:"SshTerminalPage",components:{SshTerminal:c},props:{machineId:{type:Number}},setup(){const n=l(),e=u({machineId:0,height:700});return f(()=>{e.height=window.innerHeight+5,e.machineId=Number.parseInt(n.query.id)}),o({},_(e))}});function b(n,e,t,N,T,k){const r=g("ssh-terminal");return v(),I("div",null,[S(r,{ref:"terminal",machineId:n.machineId,height:n.height+"px"},null,8,["machineId","height"])])}var B=p($,[["render",b]]);export{B as default};
+var i=Object.defineProperty;var a=Object.getOwnPropertySymbols;var m=Object.prototype.hasOwnProperty,h=Object.prototype.propertyIsEnumerable;var s=(n,e,t)=>e in n?i(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t,o=(n,e)=>{for(var t in e||(e={}))m.call(e,t)&&s(n,t,e[t]);if(a)for(var t of a(e))h.call(e,t)&&s(n,t,e[t]);return n};import{S as c}from"./SshTerminal.1665826199593.js";import{_ as p,A as d,S as l,r as u,o as f,t as _,b as g,e as I,g as S,d as v}from"./index.1665826199593.js";const $=d({name:"SshTerminalPage",components:{SshTerminal:c},props:{machineId:{type:Number}},setup(){const n=l(),e=u({machineId:0,height:700});return f(()=>{e.height=window.innerHeight+5,e.machineId=Number.parseInt(n.query.id)}),o({},_(e))}});function b(n,e,t,N,T,k){const r=g("ssh-terminal");return v(),I("div",null,[S(r,{ref:"terminal",machineId:n.machineId,height:n.height+"px"},null,8,["machineId","height"])])}var B=p($,[["render",b]]);export{B as default};
diff --git a/server/static/static/assets/SyslogList.1665447590227.js b/server/static/static/assets/SyslogList.1665447590227.js
deleted file mode 100644
index 826f2d16..00000000
--- a/server/static/static/assets/SyslogList.1665447590227.js
+++ /dev/null
@@ -1 +0,0 @@
-var k=Object.defineProperty,B=Object.defineProperties;var N=Object.getOwnPropertyDescriptors;var f=Object.getOwnPropertySymbols;var z=Object.prototype.hasOwnProperty,A=Object.prototype.propertyIsEnumerable;var h=(e,t,a)=>t in e?k(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a,w=(e,t)=>{for(var a in t||(t={}))z.call(t,a)&&h(e,a,t[a]);if(f)for(var a of f(t))A.call(t,a)&&h(e,a,t[a]);return e},C=(e,t)=>B(e,N(t));import{l as S,b as $}from"./api.16654475902272.js";import{_ as j,A as L,r as P,o as T,t as U,b as n,d as p,e as b,g as o,w as u,h as I,F as M,j as R,k as c,B as d,i as G,z as F}from"./index.1665447590227.js";import"./Api.1665447590227.js";const H=L({name:"SyslogList",components:{},setup(){const e=P({query:{pageNum:1,pageSize:10,name:null},total:0,logs:[],accounts:[]});T(()=>{t()});const t=async()=>{let r=await S.list.request(e.query);e.logs=r.list,e.total=r.total},a=r=>{e.query.pageNum=r,t()},m=r=>{$.list.request({username:r}).then(g=>{e.accounts=g.list})};return C(w({},U(e)),{search:t,handlePageChange:a,getAccount:m})}}),J={class:"role-list"},K={style:{float:"right"}},O=d("\u6210\u529F"),Q=d("\u5931\u8D25");function W(e,t,a,m,r,g){const i=n("el-option"),_=n("el-select"),v=n("el-button"),s=n("el-table-column"),y=n("el-tag"),q=n("el-table"),D=n("el-pagination"),E=n("el-row"),V=n("el-card");return p(),b("div",J,[o(V,null,{default:u(()=>[I("div",K,[o(_,{remote:"","remote-method":e.getAccount,modelValue:e.query.creatorId,"onUpdate:modelValue":t[0]||(t[0]=l=>e.query.creatorId=l),filterable:"",placeholder:"\u8BF7\u8F93\u5165\u5E76\u9009\u62E9\u8D26\u53F7",clearable:"",class:"mr5"},{default:u(()=>[(p(!0),b(M,null,R(e.accounts,l=>(p(),c(i,{key:l.id,label:l.username,value:l.id},null,8,["label","value"]))),128))]),_:1},8,["remote-method","modelValue"]),o(_,{modelValue:e.query.type,"onUpdate:modelValue":t[1]||(t[1]=l=>e.query.type=l),filterable:"",placeholder:"\u8BF7\u9009\u62E9\u64CD\u4F5C\u7ED3\u679C",clearable:"",class:"mr5"},{default:u(()=>[o(i,{label:"\u6210\u529F",value:1}),o(i,{label:"\u5931\u8D25",value:2})]),_:1},8,["modelValue"]),o(v,{onClick:e.search,type:"success",icon:"search"},null,8,["onClick"])]),o(q,{data:e.logs,style:{width:"100%"}},{default:u(()=>[o(s,{prop:"creator",label:"\u64CD\u4F5C\u4EBA","min-width":"100","show-overflow-tooltip":""}),o(s,{prop:"createTime",label:"\u64CD\u4F5C\u65F6\u95F4","min-width":"160"},{default:u(l=>[d(G(e.$filters.dateFormat(l.row.createTime)),1)]),_:1}),o(s,{prop:"type",label:"\u7ED3\u679C","min-width":"65"},{default:u(l=>[l.row.type==1?(p(),c(y,{key:0,type:"success",size:"small"},{default:u(()=>[O]),_:1})):F("",!0),l.row.type==2?(p(),c(y,{key:1,type:"danger",size:"small"},{default:u(()=>[Q]),_:1})):F("",!0)]),_:1}),o(s,{prop:"description",label:"\u63CF\u8FF0","min-width":"160","show-overflow-tooltip":""}),o(s,{prop:"reqParam",label:"\u8BF7\u6C42\u4FE1\u606F","min-width":"300","show-overflow-tooltip":""}),o(s,{prop:"resp",label:"\u54CD\u5E94\u4FE1\u606F","min-width":"200","show-overflow-tooltip":""})]),_:1},8,["data"]),o(E,{style:{"margin-top":"20px"},type:"flex",justify:"end"},{default:u(()=>[o(D,{style:{"text-align":"right"},onCurrentChange:e.handlePageChange,total:e.total,layout:"prev, pager, next, total, jumper","current-page":e.query.pageNum,"onUpdate:current-page":t[2]||(t[2]=l=>e.query.pageNum=l),"page-size":e.query.pageSize},null,8,["onCurrentChange","total","current-page","page-size"])]),_:1})]),_:1})])}var ee=j(H,[["render",W]]);export{ee as default};
diff --git a/server/static/static/assets/SyslogList.1665826199593.js b/server/static/static/assets/SyslogList.1665826199593.js
new file mode 100644
index 00000000..f2c25962
--- /dev/null
+++ b/server/static/static/assets/SyslogList.1665826199593.js
@@ -0,0 +1 @@
+var k=Object.defineProperty,B=Object.defineProperties;var N=Object.getOwnPropertyDescriptors;var f=Object.getOwnPropertySymbols;var z=Object.prototype.hasOwnProperty,A=Object.prototype.propertyIsEnumerable;var h=(e,t,a)=>t in e?k(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a,w=(e,t)=>{for(var a in t||(t={}))z.call(t,a)&&h(e,a,t[a]);if(f)for(var a of f(t))A.call(t,a)&&h(e,a,t[a]);return e},C=(e,t)=>B(e,N(t));import{l as S,b as $}from"./api.16658261995932.js";import{_ as j,A as L,r as P,o as T,t as U,b as n,d as p,e as b,g as o,w as u,h as I,F as M,j as R,k as c,B as d,i as G,y as F}from"./index.1665826199593.js";import"./Api.1665826199593.js";const H=L({name:"SyslogList",components:{},setup(){const e=P({query:{pageNum:1,pageSize:10,name:null},total:0,logs:[],accounts:[]});T(()=>{t()});const t=async()=>{let r=await S.list.request(e.query);e.logs=r.list,e.total=r.total},a=r=>{e.query.pageNum=r,t()},m=r=>{$.list.request({username:r}).then(g=>{e.accounts=g.list})};return C(w({},U(e)),{search:t,handlePageChange:a,getAccount:m})}}),J={class:"role-list"},K={style:{float:"right"}};function O(e,t,a,m,r,g){const i=n("el-option"),y=n("el-select"),v=n("el-button"),s=n("el-table-column"),_=n("el-tag"),q=n("el-table"),D=n("el-pagination"),E=n("el-row"),V=n("el-card");return p(),b("div",J,[o(V,null,{default:u(()=>[I("div",K,[o(y,{remote:"","remote-method":e.getAccount,modelValue:e.query.creatorId,"onUpdate:modelValue":t[0]||(t[0]=l=>e.query.creatorId=l),filterable:"",placeholder:"\u8BF7\u8F93\u5165\u5E76\u9009\u62E9\u8D26\u53F7",clearable:"",class:"mr5"},{default:u(()=>[(p(!0),b(M,null,R(e.accounts,l=>(p(),c(i,{key:l.id,label:l.username,value:l.id},null,8,["label","value"]))),128))]),_:1},8,["remote-method","modelValue"]),o(y,{modelValue:e.query.type,"onUpdate:modelValue":t[1]||(t[1]=l=>e.query.type=l),filterable:"",placeholder:"\u8BF7\u9009\u62E9\u64CD\u4F5C\u7ED3\u679C",clearable:"",class:"mr5"},{default:u(()=>[o(i,{label:"\u6210\u529F",value:1}),o(i,{label:"\u5931\u8D25",value:2})]),_:1},8,["modelValue"]),o(v,{onClick:e.search,type:"success",icon:"search"},null,8,["onClick"])]),o(q,{data:e.logs,style:{width:"100%"}},{default:u(()=>[o(s,{prop:"creator",label:"\u64CD\u4F5C\u4EBA","min-width":"100","show-overflow-tooltip":""}),o(s,{prop:"createTime",label:"\u64CD\u4F5C\u65F6\u95F4","min-width":"160"},{default:u(l=>[d(G(e.$filters.dateFormat(l.row.createTime)),1)]),_:1}),o(s,{prop:"type",label:"\u7ED3\u679C","min-width":"65"},{default:u(l=>[l.row.type==1?(p(),c(_,{key:0,type:"success",size:"small"},{default:u(()=>[d("\u6210\u529F")]),_:1})):F("",!0),l.row.type==2?(p(),c(_,{key:1,type:"danger",size:"small"},{default:u(()=>[d("\u5931\u8D25")]),_:1})):F("",!0)]),_:1}),o(s,{prop:"description",label:"\u63CF\u8FF0","min-width":"160","show-overflow-tooltip":""}),o(s,{prop:"reqParam",label:"\u8BF7\u6C42\u4FE1\u606F","min-width":"300","show-overflow-tooltip":""}),o(s,{prop:"resp",label:"\u54CD\u5E94\u4FE1\u606F","min-width":"200","show-overflow-tooltip":""})]),_:1},8,["data"]),o(E,{style:{"margin-top":"20px"},type:"flex",justify:"end"},{default:u(()=>[o(D,{style:{"text-align":"right"},onCurrentChange:e.handlePageChange,total:e.total,layout:"prev, pager, next, total, jumper","current-page":e.query.pageNum,"onUpdate:current-page":t[2]||(t[2]=l=>e.query.pageNum=l),"page-size":e.query.pageSize},null,8,["onCurrentChange","total","current-page","page-size"])]),_:1})]),_:1})])}var Z=j(H,[["render",O]]);export{Z as default};
diff --git a/server/static/static/assets/api.16654475902272.js b/server/static/static/assets/api.16658261995932.js
similarity index 95%
rename from server/static/static/assets/api.16654475902272.js
rename to server/static/static/assets/api.16658261995932.js
index f34f6ec7..a3dc3160 100644
--- a/server/static/static/assets/api.16654475902272.js
+++ b/server/static/static/assets/api.16658261995932.js
@@ -1 +1 @@
-import{A as s}from"./Api.1665447590227.js";const t={list:s.create("/sys/resources","get"),detail:s.create("/sys/resources/{id}","get"),save:s.create("/sys/resources","post"),update:s.create("/sys/resources/{id}","put"),del:s.create("/sys/resources/{id}","delete"),changeStatus:s.create("/sys/resources/{id}/{status}","put")},c={list:s.create("/sys/roles","get"),save:s.create("/sys/roles","post"),update:s.create("/sys/roles/{id}","put"),del:s.create("/sys/roles/{id}","delete"),roleResourceIds:s.create("/sys/roles/{id}/resourceIds","get"),roleResources:s.create("/sys/roles/{id}/resources","get"),saveResources:s.create("/sys/roles/{id}/resources","post")},r={list:s.create("/sys/accounts","get"),save:s.create("/sys/accounts","post"),update:s.create("/sys/accounts/{id}","put"),del:s.create("/sys/accounts/{id}","delete"),changeStatus:s.create("/sys/accounts/change-status/{id}/{status}","put"),roleIds:s.create("/sys/accounts/{id}/roleIds","get"),roles:s.create("/sys/accounts/{id}/roles","get"),resources:s.create("/sys/accounts/{id}/resources","get"),saveRoles:s.create("/sys/accounts/roles","post")},a={list:s.create("/sys/configs","get"),save:s.create("/sys/configs","post"),getValue:s.create("/sys/configs/value","get")},o={list:s.create("/syslogs","get")};export{c as a,r as b,a as c,o as l,t as r};
+import{A as s}from"./Api.1665826199593.js";const t={list:s.create("/sys/resources","get"),detail:s.create("/sys/resources/{id}","get"),save:s.create("/sys/resources","post"),update:s.create("/sys/resources/{id}","put"),del:s.create("/sys/resources/{id}","delete"),changeStatus:s.create("/sys/resources/{id}/{status}","put")},c={list:s.create("/sys/roles","get"),save:s.create("/sys/roles","post"),update:s.create("/sys/roles/{id}","put"),del:s.create("/sys/roles/{id}","delete"),roleResourceIds:s.create("/sys/roles/{id}/resourceIds","get"),roleResources:s.create("/sys/roles/{id}/resources","get"),saveResources:s.create("/sys/roles/{id}/resources","post")},r={list:s.create("/sys/accounts","get"),save:s.create("/sys/accounts","post"),update:s.create("/sys/accounts/{id}","put"),del:s.create("/sys/accounts/{id}","delete"),changeStatus:s.create("/sys/accounts/change-status/{id}/{status}","put"),roleIds:s.create("/sys/accounts/{id}/roleIds","get"),roles:s.create("/sys/accounts/{id}/roles","get"),resources:s.create("/sys/accounts/{id}/resources","get"),saveRoles:s.create("/sys/accounts/roles","post")},a={list:s.create("/sys/configs","get"),save:s.create("/sys/configs","post"),getValue:s.create("/sys/configs/value","get")},o={list:s.create("/syslogs","get")};export{c as a,r as b,a as c,o as l,t as r};
diff --git a/server/static/static/assets/api.16654475902273.js b/server/static/static/assets/api.16658261995933.js
similarity index 95%
rename from server/static/static/assets/api.16654475902273.js
rename to server/static/static/assets/api.16658261995933.js
index d505203a..111a2691 100644
--- a/server/static/static/assets/api.16654475902273.js
+++ b/server/static/static/assets/api.16658261995933.js
@@ -1 +1 @@
-import{A as e}from"./Api.1665447590227.js";const c={list:e.create("/machines","get"),getMachinePwd:e.create("/machines/{id}/pwd","get"),info:e.create("/machines/{id}/sysinfo","get"),stats:e.create("/machines/{id}/stats","get"),process:e.create("/machines/{id}/process","get"),killProcess:e.create("/machines/{id}/process","delete"),closeCli:e.create("/machines/{id}/close-cli","delete"),saveMachine:e.create("/machines","post"),changeStatus:e.create("/machines/{id}/{status}","put"),del:e.create("/machines/{id}","delete"),scripts:e.create("/machines/{machineId}/scripts","get"),runScript:e.create("/machines/{machineId}/scripts/{scriptId}/run","get"),saveScript:e.create("/machines/{machineId}/scripts","post"),deleteScript:e.create("/machines/{machineId}/scripts/{scriptId}","delete"),files:e.create("/machines/{id}/files","get"),lsFile:e.create("/machines/{machineId}/files/{fileId}/read-dir","get"),rmFile:e.create("/machines/{machineId}/files/{fileId}/remove","delete"),uploadFile:e.create("/machines/{machineId}/files/{fileId}/upload?token={token}","post"),fileContent:e.create("/machines/{machineId}/files/{fileId}/read","get"),createFile:e.create("/machines/{machineId}/files/{id}/create-file","post"),updateFileContent:e.create("/machines/{machineId}/files/{id}/write","post"),addConf:e.create("/machines/{machineId}/files","post"),delConf:e.create("/machines/{machineId}/files/{id}","delete"),terminal:e.create("/api/machines/{id}/terminal","get"),recDirNames:e.create("/machines/rec/names","get")};export{c as m};
+import{A as e}from"./Api.1665826199593.js";const c={list:e.create("/machines","get"),getMachinePwd:e.create("/machines/{id}/pwd","get"),info:e.create("/machines/{id}/sysinfo","get"),stats:e.create("/machines/{id}/stats","get"),process:e.create("/machines/{id}/process","get"),killProcess:e.create("/machines/{id}/process","delete"),closeCli:e.create("/machines/{id}/close-cli","delete"),saveMachine:e.create("/machines","post"),changeStatus:e.create("/machines/{id}/{status}","put"),del:e.create("/machines/{id}","delete"),scripts:e.create("/machines/{machineId}/scripts","get"),runScript:e.create("/machines/{machineId}/scripts/{scriptId}/run","get"),saveScript:e.create("/machines/{machineId}/scripts","post"),deleteScript:e.create("/machines/{machineId}/scripts/{scriptId}","delete"),files:e.create("/machines/{id}/files","get"),lsFile:e.create("/machines/{machineId}/files/{fileId}/read-dir","get"),rmFile:e.create("/machines/{machineId}/files/{fileId}/remove","delete"),uploadFile:e.create("/machines/{machineId}/files/{fileId}/upload?token={token}","post"),fileContent:e.create("/machines/{machineId}/files/{fileId}/read","get"),createFile:e.create("/machines/{machineId}/files/{id}/create-file","post"),updateFileContent:e.create("/machines/{machineId}/files/{id}/write","post"),addConf:e.create("/machines/{machineId}/files","post"),delConf:e.create("/machines/{machineId}/files/{id}","delete"),terminal:e.create("/api/machines/{id}/terminal","get"),recDirNames:e.create("/machines/rec/names","get")};export{c as m};
diff --git a/server/static/static/assets/api.16654475902274.js b/server/static/static/assets/api.16658261995934.js
similarity index 89%
rename from server/static/static/assets/api.16654475902274.js
rename to server/static/static/assets/api.16658261995934.js
index 7efae743..601bf87b 100644
--- a/server/static/static/assets/api.16654475902274.js
+++ b/server/static/static/assets/api.16658261995934.js
@@ -1 +1 @@
-import{A as e}from"./Api.1665447590227.js";const c={accountProjects:e.create("/accounts/projects","get"),projects:e.create("/projects","get"),saveProject:e.create("/projects","post"),delProject:e.create("/projects","delete"),projectEnvs:e.create("/projects/{projectId}/envs","get"),delProjectEnvs:e.create("/projects/envs","delete"),saveProjectEnv:e.create("/projects/{projectId}/envs","post"),projectMems:e.create("/projects/{projectId}/members","get"),saveProjectMem:e.create("/projects/{projectId}/members","post"),deleteProjectMem:e.create("/projects/{projectId}/members/{accountId}","delete")};export{c as p};
+import{A as e}from"./Api.1665826199593.js";const c={accountProjects:e.create("/accounts/projects","get"),projects:e.create("/projects","get"),saveProject:e.create("/projects","post"),delProject:e.create("/projects","delete"),projectEnvs:e.create("/projects/{projectId}/envs","get"),delProjectEnvs:e.create("/projects/envs","delete"),saveProjectEnv:e.create("/projects/{projectId}/envs","post"),projectMems:e.create("/projects/{projectId}/members","get"),saveProjectMem:e.create("/projects/{projectId}/members","post"),deleteProjectMem:e.create("/projects/{projectId}/members/{accountId}","delete")};export{c as p};
diff --git a/server/static/static/assets/api.16654475902275.js b/server/static/static/assets/api.16658261995935.js
similarity index 94%
rename from server/static/static/assets/api.16654475902275.js
rename to server/static/static/assets/api.16658261995935.js
index 6e4eefad..db5d3128 100644
--- a/server/static/static/assets/api.16654475902275.js
+++ b/server/static/static/assets/api.16658261995935.js
@@ -1 +1 @@
-import{A as e}from"./Api.1665447590227.js";const t={redisList:e.create("/redis","get"),getRedisPwd:e.create("/redis/{id}/pwd","get"),redisInfo:e.create("/redis/{id}/info","get"),clusterInfo:e.create("/redis/{id}/cluster-info","get"),saveRedis:e.create("/redis","post"),delRedis:e.create("/redis/{id}","delete"),scan:e.create("/redis/{id}/{db}/scan","post"),getStringValue:e.create("/redis/{id}/{db}/string-value","get"),saveStringValue:e.create("/redis/{id}/{db}/string-value","post"),getHashValue:e.create("/redis/{id}/{db}/hash-value","get"),hscan:e.create("/redis/{id}/{db}/hscan","get"),hget:e.create("/redis/{id}/{db}/hget","get"),hdel:e.create("/redis/{id}/{db}/hdel","delete"),saveHashValue:e.create("/redis/{id}/{db}/hash-value","post"),getSetValue:e.create("/redis/{id}/{db}/set-value","get"),saveSetValue:e.create("/redis/{id}/{db}/set-value","post"),del:e.create("/redis/{id}/{db}/scan/{cursor}/{count}","delete"),delKey:e.create("/redis/{id}/{db}/key","delete"),getListValue:e.create("/redis/{id}/{db}/list-value","get"),saveListValue:e.create("/redis/{id}/{db}/list-value","post"),setListValue:e.create("/redis/{id}/{db}/list-value/lset","post")};export{t as r};
+import{A as e}from"./Api.1665826199593.js";const t={redisList:e.create("/redis","get"),getRedisPwd:e.create("/redis/{id}/pwd","get"),redisInfo:e.create("/redis/{id}/info","get"),clusterInfo:e.create("/redis/{id}/cluster-info","get"),saveRedis:e.create("/redis","post"),delRedis:e.create("/redis/{id}","delete"),scan:e.create("/redis/{id}/{db}/scan","post"),getStringValue:e.create("/redis/{id}/{db}/string-value","get"),saveStringValue:e.create("/redis/{id}/{db}/string-value","post"),getHashValue:e.create("/redis/{id}/{db}/hash-value","get"),hscan:e.create("/redis/{id}/{db}/hscan","get"),hget:e.create("/redis/{id}/{db}/hget","get"),hdel:e.create("/redis/{id}/{db}/hdel","delete"),saveHashValue:e.create("/redis/{id}/{db}/hash-value","post"),getSetValue:e.create("/redis/{id}/{db}/set-value","get"),saveSetValue:e.create("/redis/{id}/{db}/set-value","post"),del:e.create("/redis/{id}/{db}/scan/{cursor}/{count}","delete"),delKey:e.create("/redis/{id}/{db}/key","delete"),getListValue:e.create("/redis/{id}/{db}/list-value","get"),saveListValue:e.create("/redis/{id}/{db}/list-value","post"),setListValue:e.create("/redis/{id}/{db}/list-value/lset","post")};export{t as r};
diff --git a/server/static/static/assets/api.16654475902276.js b/server/static/static/assets/api.16658261995936.js
similarity index 89%
rename from server/static/static/assets/api.16654475902276.js
rename to server/static/static/assets/api.16658261995936.js
index e0775a54..74472a9b 100644
--- a/server/static/static/assets/api.16654475902276.js
+++ b/server/static/static/assets/api.16658261995936.js
@@ -1 +1 @@
-import{A as o}from"./Api.1665447590227.js";const m={mongoList:o.create("/mongos","get"),saveMongo:o.create("/mongos","post"),deleteMongo:o.create("/mongos/{id}","delete"),databases:o.create("/mongos/{id}/databases","get"),collections:o.create("/mongos/{id}/collections","get"),runCommand:o.create("/mongos/{id}/run-command","post"),findCommand:o.create("/mongos/{id}/command/find","post"),updateByIdCommand:o.create("/mongos/{id}/command/update-by-id","post"),deleteByIdCommand:o.create("/mongos/{id}/command/delete-by-id","post"),insertCommand:o.create("/mongos/{id}/command/insert","post")};export{m};
+import{A as o}from"./Api.1665826199593.js";const m={mongoList:o.create("/mongos","get"),saveMongo:o.create("/mongos","post"),deleteMongo:o.create("/mongos/{id}","delete"),databases:o.create("/mongos/{id}/databases","get"),collections:o.create("/mongos/{id}/collections","get"),runCommand:o.create("/mongos/{id}/run-command","post"),findCommand:o.create("/mongos/{id}/command/find","post"),updateByIdCommand:o.create("/mongos/{id}/command/update-by-id","post"),deleteByIdCommand:o.create("/mongos/{id}/command/delete-by-id","post"),insertCommand:o.create("/mongos/{id}/command/insert","post")};export{m};
diff --git a/server/static/static/assets/assert.1665447590227.js b/server/static/static/assets/assert.1665826199593.js
similarity index 100%
rename from server/static/static/assets/assert.1665447590227.js
rename to server/static/static/assets/assert.1665826199593.js
diff --git a/server/static/static/assets/bg-login.1665447590227.png b/server/static/static/assets/bg-login.1665826199593.png
similarity index 100%
rename from server/static/static/assets/bg-login.1665447590227.png
rename to server/static/static/assets/bg-login.1665826199593.png
diff --git a/server/static/static/assets/codemirror.1665447590227.css b/server/static/static/assets/codemirror.1665826199593.css
similarity index 100%
rename from server/static/static/assets/codemirror.1665447590227.css
rename to server/static/static/assets/codemirror.1665826199593.css
diff --git a/server/static/static/assets/codemirror.1665447590227.js b/server/static/static/assets/codemirror.1665826199593.js
similarity index 99%
rename from server/static/static/assets/codemirror.1665447590227.js
rename to server/static/static/assets/codemirror.1665826199593.js
index 35069305..57774c59 100644
--- a/server/static/static/assets/codemirror.1665447590227.js
+++ b/server/static/static/assets/codemirror.1665826199593.js
@@ -1,4 +1,4 @@
-var yu=Object.defineProperty,ku=Object.defineProperties;var wu=Object.getOwnPropertyDescriptors;var hl=Object.getOwnPropertySymbols;var _u=Object.prototype.hasOwnProperty,Su=Object.prototype.propertyIsEnumerable;var pl=(Fe,Ie,m)=>Ie in Fe?yu(Fe,Ie,{enumerable:!0,configurable:!0,writable:!0,value:m}):Fe[Ie]=m,gl=(Fe,Ie)=>{for(var m in Ie||(Ie={}))_u.call(Ie,m)&&pl(Fe,m,Ie[m]);if(hl)for(var m of hl(Ie))Su.call(Ie,m)&&pl(Fe,m,Ie[m]);return Fe},ml=(Fe,Ie)=>ku(Fe,wu(Ie));import{M as Cu,A as Lu,N as Tu,O as Mu,t as vl,q as Au,r as zu,o as Eu,v as Du,m as Fu,_ as Ou,b as bl,d as pi,e as xl,h as Nu,k as yl,w as Iu,F as Pu,j as Hu,z as Wu}from"./index.1665447590227.js";var Ve={exports:{}};(function(Fe,Ie){(function(m,re){Fe.exports=re()})(Cu,function(){var m=navigator.userAgent,re=navigator.platform,B=/gecko\/\d/i.test(m),Q=/MSIE \d/.test(m),O=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(m),q=/Edge\/(\d+)/.exec(m),k=Q||O||q,$=k&&(Q?document.documentMode||6:+(q||O)[1]),A=!q&&/WebKit\//.test(m),K=A&&/Qt\/\d+\.\d+/.test(m),v=!q&&/Chrome\/(\d+)/.exec(m),_=v&&+v[1],w=/Opera\//.test(m),h=/Apple Computer/.test(navigator.vendor),p=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(m),g=/PhantomJS/.test(m),y=h&&(/Mobile\/\w+/.test(m)||navigator.maxTouchPoints>2),F=/Android/.test(m),W=y||F||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(m),G=y||/Mac/.test(re),te=/\bCrOS\b/.test(m),ie=/win/i.test(re),ue=w&&m.match(/Version\/(\d*\.\d*)/);ue&&(ue=Number(ue[1])),ue&&ue>=15&&(w=!1,A=!0);var U=G&&(K||w&&(ue==null||ue<12.11)),M=B||k&&$>=9;function L(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}var X=function(e,t){var n=e.className,r=L(t).exec(n);if(r){var i=n.slice(r.index+r[0].length);e.className=n.slice(0,r.index)+(i?r[1]+i:"")}};function z(e){for(var t=e.childNodes.length;t>0;--t)e.removeChild(e.firstChild);return e}function Y(e,t){return z(e).appendChild(t)}function f(e,t,n,r){var i=document.createElement(e);if(n&&(i.className=n),r&&(i.style.cssText=r),typeof t=="string")i.appendChild(document.createTextNode(t));else if(t)for(var o=0;o=t)return a+(t-o);a+=l-o,a+=n-a%n,o=l+1}}var ae=function(){this.id=null,this.f=null,this.time=0,this.handler=d(this.onTimeout,this)};ae.prototype.onTimeout=function(e){e.id=0,e.time<=+new Date?e.f():setTimeout(e.handler,e.time-+new Date)},ae.prototype.set=function(e,t){this.f=t;var n=+new Date+e;(!this.id||n=t)return r+Math.min(a,t-i);if(i+=o-r,i+=n-i%n,r=o+1,i>=t)return r}}var ye=[""];function Ze(e){for(;ye.length<=e;)ye.push(we(ye)+" ");return ye[e]}function we(e){return e[e.length-1]}function Re(e,t){for(var n=[],r=0;r"\x80"&&(e.toUpperCase()!=e.toLowerCase()||Be.test(e))}function le(e,t){return t?t.source.indexOf("\\w")>-1&&j(e)?!0:t.test(e):j(e)}function J(e){for(var t in e)if(e.hasOwnProperty(t)&&e[t])return!1;return!0}var qe=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function tt(e){return e.charCodeAt(0)>=768&&qe.test(e)}function it(e,t,n){for(;(n<0?t>0:tn?-1:1;;){if(t==n)return t;var i=(t+n)/2,o=r<0?Math.ceil(i):Math.floor(i);if(o==t)return e(o)?t:n;e(o)?n=o:t=o+r}}function P(e,t,n,r){if(!e)return r(t,n,"ltr",0);for(var i=!1,o=0;ot||t==n&&a.to==t)&&(r(Math.max(a.from,t),Math.min(a.to,n),a.level==1?"rtl":"ltr",o),i=!0)}i||r(t,n,"ltr")}var E=null;function ee(e,t,n){var r;E=null;for(var i=0;it)return i;o.to==t&&(o.from!=o.to&&n=="before"?r=i:E=i),o.from==t&&(o.from!=o.to&&n!="before"?r=i:E=i)}return r!=null?r:E}var Ee=function(){var e="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",t="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function n(c){return c<=247?e.charAt(c):1424<=c&&c<=1524?"R":1536<=c&&c<=1785?t.charAt(c-1536):1774<=c&&c<=2220?"r":8192<=c&&c<=8203?"w":c==8204?"b":"L"}var r=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,i=/[stwN]/,o=/[LRr]/,a=/[Lb1n]/,l=/[1n]/;function s(c,x,C){this.level=c,this.from=x,this.to=C}return function(c,x){var C=x=="ltr"?"L":"R";if(c.length==0||x=="ltr"&&!r.test(c))return!1;for(var R=c.length,I=[],Z=0;Z-1&&(r[t]=i.slice(0,o).concat(i.slice(o+1)))}}}function Ke(e,t){var n=wt(e,t);if(!!n.length)for(var r=Array.prototype.slice.call(arguments,2),i=0;i0}function cr(e){e.prototype.on=function(t,n){Me(this,t,n)},e.prototype.off=function(t,n){De(this,t,n)}}function dt(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function It(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function an(e){return e.defaultPrevented!=null?e.defaultPrevented:e.returnValue==!1}function Kt(e){dt(e),It(e)}function ln(e){return e.target||e.srcElement}function Nr(e){var t=e.which;return t==null&&(e.button&1?t=1:e.button&2?t=3:e.button&4&&(t=2)),G&&e.ctrlKey&&t==1&&(t=3),t}var Ot=function(){if(k&&$<9)return!1;var e=f("div");return"draggable"in e||"dragDrop"in e}(),Ir;function mi(e){if(Ir==null){var t=f("span","\u200B");Y(e,f("span",[t,document.createTextNode("x")])),e.firstChild.offsetHeight!=0&&(Ir=t.offsetWidth<=1&&t.offsetHeight>2&&!(k&&$<8))}var n=Ir?f("span","\u200B"):f("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return n.setAttribute("cm-text",""),n}var Pt;function vi(e){if(Pt!=null)return Pt;var t=Y(e,document.createTextNode("A\u062EA")),n=H(t,0,1).getBoundingClientRect(),r=H(t,1,2).getBoundingClientRect();return z(e),!n||n.left==n.right?!1:Pt=r.right-n.right<3}var Pr=`
+var yu=Object.defineProperty,ku=Object.defineProperties;var wu=Object.getOwnPropertyDescriptors;var hl=Object.getOwnPropertySymbols;var _u=Object.prototype.hasOwnProperty,Su=Object.prototype.propertyIsEnumerable;var pl=(Fe,Ie,m)=>Ie in Fe?yu(Fe,Ie,{enumerable:!0,configurable:!0,writable:!0,value:m}):Fe[Ie]=m,gl=(Fe,Ie)=>{for(var m in Ie||(Ie={}))_u.call(Ie,m)&&pl(Fe,m,Ie[m]);if(hl)for(var m of hl(Ie))Su.call(Ie,m)&&pl(Fe,m,Ie[m]);return Fe},ml=(Fe,Ie)=>ku(Fe,wu(Ie));import{M as Cu,A as Lu,N as Tu,O as Mu,t as vl,q as Au,r as zu,o as Eu,v as Du,m as Fu,_ as Ou,b as bl,d as pi,e as xl,h as Nu,k as yl,w as Iu,F as Pu,j as Hu,y as Wu}from"./index.1665826199593.js";var Ve={exports:{}};(function(Fe,Ie){(function(m,re){Fe.exports=re()})(Cu,function(){var m=navigator.userAgent,re=navigator.platform,B=/gecko\/\d/i.test(m),Q=/MSIE \d/.test(m),O=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(m),q=/Edge\/(\d+)/.exec(m),k=Q||O||q,$=k&&(Q?document.documentMode||6:+(q||O)[1]),A=!q&&/WebKit\//.test(m),K=A&&/Qt\/\d+\.\d+/.test(m),v=!q&&/Chrome\/(\d+)/.exec(m),_=v&&+v[1],w=/Opera\//.test(m),h=/Apple Computer/.test(navigator.vendor),p=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(m),g=/PhantomJS/.test(m),y=h&&(/Mobile\/\w+/.test(m)||navigator.maxTouchPoints>2),F=/Android/.test(m),W=y||F||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(m),G=y||/Mac/.test(re),te=/\bCrOS\b/.test(m),ie=/win/i.test(re),ue=w&&m.match(/Version\/(\d*\.\d*)/);ue&&(ue=Number(ue[1])),ue&&ue>=15&&(w=!1,A=!0);var U=G&&(K||w&&(ue==null||ue<12.11)),M=B||k&&$>=9;function L(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}var X=function(e,t){var n=e.className,r=L(t).exec(n);if(r){var i=n.slice(r.index+r[0].length);e.className=n.slice(0,r.index)+(i?r[1]+i:"")}};function z(e){for(var t=e.childNodes.length;t>0;--t)e.removeChild(e.firstChild);return e}function Y(e,t){return z(e).appendChild(t)}function f(e,t,n,r){var i=document.createElement(e);if(n&&(i.className=n),r&&(i.style.cssText=r),typeof t=="string")i.appendChild(document.createTextNode(t));else if(t)for(var o=0;o=t)return a+(t-o);a+=l-o,a+=n-a%n,o=l+1}}var ae=function(){this.id=null,this.f=null,this.time=0,this.handler=d(this.onTimeout,this)};ae.prototype.onTimeout=function(e){e.id=0,e.time<=+new Date?e.f():setTimeout(e.handler,e.time-+new Date)},ae.prototype.set=function(e,t){this.f=t;var n=+new Date+e;(!this.id||n=t)return r+Math.min(a,t-i);if(i+=o-r,i+=n-i%n,r=o+1,i>=t)return r}}var ye=[""];function Ze(e){for(;ye.length<=e;)ye.push(we(ye)+" ");return ye[e]}function we(e){return e[e.length-1]}function Re(e,t){for(var n=[],r=0;r"\x80"&&(e.toUpperCase()!=e.toLowerCase()||Be.test(e))}function le(e,t){return t?t.source.indexOf("\\w")>-1&&j(e)?!0:t.test(e):j(e)}function J(e){for(var t in e)if(e.hasOwnProperty(t)&&e[t])return!1;return!0}var qe=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function tt(e){return e.charCodeAt(0)>=768&&qe.test(e)}function it(e,t,n){for(;(n<0?t>0:tn?-1:1;;){if(t==n)return t;var i=(t+n)/2,o=r<0?Math.ceil(i):Math.floor(i);if(o==t)return e(o)?t:n;e(o)?n=o:t=o+r}}function P(e,t,n,r){if(!e)return r(t,n,"ltr",0);for(var i=!1,o=0;ot||t==n&&a.to==t)&&(r(Math.max(a.from,t),Math.min(a.to,n),a.level==1?"rtl":"ltr",o),i=!0)}i||r(t,n,"ltr")}var E=null;function ee(e,t,n){var r;E=null;for(var i=0;it)return i;o.to==t&&(o.from!=o.to&&n=="before"?r=i:E=i),o.from==t&&(o.from!=o.to&&n!="before"?r=i:E=i)}return r!=null?r:E}var Ee=function(){var e="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",t="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function n(c){return c<=247?e.charAt(c):1424<=c&&c<=1524?"R":1536<=c&&c<=1785?t.charAt(c-1536):1774<=c&&c<=2220?"r":8192<=c&&c<=8203?"w":c==8204?"b":"L"}var r=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,i=/[stwN]/,o=/[LRr]/,a=/[Lb1n]/,l=/[1n]/;function s(c,x,C){this.level=c,this.from=x,this.to=C}return function(c,x){var C=x=="ltr"?"L":"R";if(c.length==0||x=="ltr"&&!r.test(c))return!1;for(var R=c.length,I=[],Z=0;Z-1&&(r[t]=i.slice(0,o).concat(i.slice(o+1)))}}}function Ke(e,t){var n=wt(e,t);if(!!n.length)for(var r=Array.prototype.slice.call(arguments,2),i=0;i0}function cr(e){e.prototype.on=function(t,n){Me(this,t,n)},e.prototype.off=function(t,n){De(this,t,n)}}function dt(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function It(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function an(e){return e.defaultPrevented!=null?e.defaultPrevented:e.returnValue==!1}function Kt(e){dt(e),It(e)}function ln(e){return e.target||e.srcElement}function Nr(e){var t=e.which;return t==null&&(e.button&1?t=1:e.button&2?t=3:e.button&4&&(t=2)),G&&e.ctrlKey&&t==1&&(t=3),t}var Ot=function(){if(k&&$<9)return!1;var e=f("div");return"draggable"in e||"dragDrop"in e}(),Ir;function mi(e){if(Ir==null){var t=f("span","\u200B");Y(e,f("span",[t,document.createTextNode("x")])),e.firstChild.offsetHeight!=0&&(Ir=t.offsetWidth<=1&&t.offsetHeight>2&&!(k&&$<8))}var n=Ir?f("span","\u200B"):f("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return n.setAttribute("cm-text",""),n}var Pt;function vi(e){if(Pt!=null)return Pt;var t=Y(e,document.createTextNode("A\u062EA")),n=H(t,0,1).getBoundingClientRect(),r=H(t,1,2).getBoundingClientRect();return z(e),!n||n.left==n.right?!1:Pt=r.right-n.right<3}var Pr=`
b`.split(/\n/).length!=3?function(e){for(var t=0,n=[],r=e.length;t<=r;){var i=e.indexOf(`
`,t);i==-1&&(i=e.length);var o=e.slice(t,e.charAt(i-1)=="\r"?i-1:i),a=o.indexOf("\r");a!=-1?(n.push(o.slice(0,a)),t+=a+1):(n.push(o),t=i+1)}return n}:function(e){return e.split(/\r\n?|\n/)},Nn=window.getSelection?function(e){try{return e.selectionStart!=e.selectionEnd}catch{return!1}}:function(e){var t;try{t=e.ownerDocument.selection.createRange()}catch{}return!t||t.parentElement()!=e?!1:t.compareEndPoints("StartToEnd",t)!=0},bi=function(){var e=f("div");return"oncopy"in e?!0:(e.setAttribute("oncopy","return;"),typeof e.oncopy=="function")}(),Ut=null;function Gt(e){if(Ut!=null)return Ut;var t=Y(e,f("span","x")),n=t.getBoundingClientRect(),r=H(t,0,1).getBoundingClientRect();return Ut=Math.abs(n.left-r.left)>1}var Xt={},Jt={};function Vt(e,t){arguments.length>2&&(t.dependencies=Array.prototype.slice.call(arguments,2)),Xt[e]=t}function xi(e,t){Jt[e]=t}function kr(e){if(typeof e=="string"&&Jt.hasOwnProperty(e))e=Jt[e];else if(e&&typeof e.name=="string"&&Jt.hasOwnProperty(e.name)){var t=Jt[e.name];typeof t=="string"&&(t={name:t}),e=xe(t,e),e.name=t.name}else{if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(e))return kr("application/xml");if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(e))return kr("application/json")}return typeof e=="string"?{name:e}:e||{name:"null"}}function fr(e,t){t=kr(t);var n=Xt[t.name];if(!n)return fr(e,"text/plain");var r=n(e,t);if(St.hasOwnProperty(t.name)){var i=St[t.name];for(var o in i)!i.hasOwnProperty(o)||(r.hasOwnProperty(o)&&(r["_"+o]=r[o]),r[o]=i[o])}if(r.name=t.name,t.helperType&&(r.helperType=t.helperType),t.modeProps)for(var a in t.modeProps)r[a]=t.modeProps[a];return r}var St={};function wr(e,t){var n=St.hasOwnProperty(e)?St[e]:St[e]={};se(t,n)}function er(e,t){if(t===!0)return t;if(e.copyState)return e.copyState(t);var n={};for(var r in t){var i=t[r];i instanceof Array&&(i=i.concat([])),n[r]=i}return n}function Hr(e,t){for(var n;e.innerMode&&(n=e.innerMode(t),!(!n||n.mode==e));)t=n.state,e=n.mode;return n||{mode:e,state:t}}function In(e,t,n){return e.startState?e.startState(t,n):!0}var et=function(e,t,n){this.pos=this.start=0,this.string=e,this.tabSize=t||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=n};et.prototype.eol=function(){return this.pos>=this.string.length},et.prototype.sol=function(){return this.pos==this.lineStart},et.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},et.prototype.next=function(){if(this.post},et.prototype.eatSpace=function(){for(var e=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e},et.prototype.skipToEnd=function(){this.pos=this.string.length},et.prototype.skipTo=function(e){var t=this.string.indexOf(e,this.pos);if(t>-1)return this.pos=t,!0},et.prototype.backUp=function(e){this.pos-=e},et.prototype.column=function(){return this.lastColumnPos0?null:(o&&t!==!1&&(this.pos+=o[0].length),o)}},et.prototype.current=function(){return this.string.slice(this.start,this.pos)},et.prototype.hideFirstChars=function(e,t){this.lineStart+=e;try{return t()}finally{this.lineStart-=e}},et.prototype.lookAhead=function(e){var t=this.lineOracle;return t&&t.lookAhead(e)},et.prototype.baseToken=function(){var e=this.lineOracle;return e&&e.baseToken(this.pos)};function Se(e,t){if(t-=e.first,t<0||t>=e.size)throw new Error("There is no line "+(t+e.first)+" in the document.");for(var n=e;!n.lines;)for(var r=0;;++r){var i=n.children[r],o=i.chunkSize();if(t=e.first&&tn?u(n,Se(e,n).text.length):Wt(t,Se(e,t.line).text.length)}function Wt(e,t){var n=e.ch;return n==null||n>t?u(e.line,t):n<0?u(e.line,0):e}function Pn(e,t){for(var n=[],r=0;r