s&&(this.clearTexture(),this.warmUp(),!0)}clearTexture(){this._currentRow.x===0&&this._currentRow.y===0||(this._cacheCtx.clearRect(0,0,n,t),this._cacheMap.clear(),this._cacheMapCombined.clear(),this._currentRow.x=0,this._currentRow.y=0,this._currentRow.height=0,this._fixedRows.length=0,this._didWarmUp=!1)}getRasterizedGlyphCombinedChar(g,m,b,y){return this._getFromCacheMap(this._cacheMapCombined,g,m,b,y)}getRasterizedGlyph(g,m,b,y){return this._getFromCacheMap(this._cacheMap,g,m,b,y)}_getFromCacheMap(g,m,b,y,w){return u.glyph=g.get(m,b,y,w),u.glyph||(u.glyph=this._drawToCache(m,b,y,w),g.set(m,b,y,w,u.glyph)),u.glyph}_getColorFromAnsiIndex(g){if(g>=this._config.colors.ansi.length)throw new Error("No color found for idx "+g);return this._config.colors.ansi[g]}_getBackgroundColor(g,m,b,y){if(this._config.allowTransparency)return f;let w;switch(g){case 16777216:case 33554432:w=this._getColorFromAnsiIndex(m);break;case 50331648:const p=_.AttributeData.toColorRGB(m);w=l.rgba.toColor(p[0],p[1],p[2]);break;default:w=b?this._config.colors.foreground:this._config.colors.background}return y&&(w=l.color.blend(this._config.colors.background,l.color.multiplyOpacity(w,o.DIM_OPACITY))),w}_getForegroundColor(g,m,b,y,w,p,S,L,E,A){const k=this._getMinimumContrastColor(g,m,b,y,w,p,!1,E,A);if(k)return k;let O;switch(w){case 16777216:case 33554432:this._config.drawBoldTextInBrightColors&&E&&p<8&&(p+=8),O=this._getColorFromAnsiIndex(p);break;case 50331648:const T=_.AttributeData.toColorRGB(p);O=l.rgba.toColor(T[0],T[1],T[2]);break;default:O=S?this._config.colors.background:this._config.colors.foreground}return this._config.allowTransparency&&(O=l.color.opaque(O)),L&&(O=l.color.multiplyOpacity(O,o.DIM_OPACITY)),O}_resolveBackgroundRgba(g,m,b){switch(g){case 16777216:case 33554432:return this._getColorFromAnsiIndex(m).rgba;case 50331648:return m<<8;default:return b?this._config.colors.foreground.rgba:this._config.colors.background.rgba}}_resolveForegroundRgba(g,m,b,y){switch(g){case 16777216:case 33554432:return this._config.drawBoldTextInBrightColors&&y&&m<8&&(m+=8),this._getColorFromAnsiIndex(m).rgba;case 50331648:return m<<8;default:return b?this._config.colors.background.rgba:this._config.colors.foreground.rgba}}_getMinimumContrastColor(g,m,b,y,w,p,S,L,E){if(this._config.minimumContrastRatio===1||E)return;const A=this._config.colors.contrastCache.getColor(g,y);if(A!==void 0)return A||void 0;const k=this._resolveBackgroundRgba(m,b,S),O=this._resolveForegroundRgba(w,p,S,L),T=l.rgba.ensureContrastRatio(k,O,this._config.minimumContrastRatio);if(!T)return void this._config.colors.contrastCache.setColor(g,y,null);const H=l.rgba.toColor(T>>24&255,T>>16&255,T>>8&255);return this._config.colors.contrastCache.setColor(g,y,H),H}_drawToCache(g,m,b,y){const w=typeof g=="number"?String.fromCharCode(g):g;this.hasCanvasChanged=!0;const p=this._config.scaledCellWidth*Math.max(w.length,2)+4;this._tmpCanvas.width=12&&!this._config.allowTransparency&&w!==" "){this._tmpCtx.save(),this._tmpCtx.textBaseline="alphabetic";const re=this._tmpCtx.measureText(w);if(this._tmpCtx.restore(),"actualBoundingBoxDescent"in re&&re.actualBoundingBoxDescent>0){this._tmpCtx.save();const Q=new Path2D;Q.rect(ge,ie-Math.ceil(q/2),this._config.scaledCellWidth,le-ie+Math.ceil(q/2)),this._tmpCtx.clip(Q),this._tmpCtx.lineWidth=3*this._config.devicePixelRatio,this._tmpCtx.strokeStyle=P.css,this._tmpCtx.strokeText(w,I,I+this._config.scaledCharHeight),this._tmpCtx.restore()}}}if(K||this._tmpCtx.fillText(w,I,I+this._config.scaledCharHeight),w==="_"&&!this._config.allowTransparency){let q=C(this._tmpCtx.getImageData(I,I,this._config.scaledCellWidth,this._config.scaledCellHeight),P,$,Z);if(q)for(let Y=1;Y<=5&&(this._tmpCtx.save(),this._tmpCtx.fillStyle=P.css,this._tmpCtx.fillRect(0,0,this._tmpCanvas.width,this._tmpCanvas.height),this._tmpCtx.restore(),this._tmpCtx.fillText(w,I,I+this._config.scaledCharHeight-Y),q=C(this._tmpCtx.getImageData(I,I,this._config.scaledCellWidth,this._config.scaledCellHeight),P,$,Z),q);Y++);}if(T){const q=Math.max(1,Math.floor(this._config.fontSize*this._config.devicePixelRatio/10)),Y=this._tmpCtx.lineWidth%2==1?.5:0;this._tmpCtx.lineWidth=q,this._tmpCtx.strokeStyle=this._tmpCtx.fillStyle,this._tmpCtx.beginPath(),this._tmpCtx.moveTo(I,I+Math.floor(this._config.scaledCharHeight/2)-Y),this._tmpCtx.lineTo(I+this._config.scaledCharWidth*N,I+Math.floor(this._config.scaledCharHeight/2)-Y),this._tmpCtx.stroke()}this._tmpCtx.restore();const oe=this._tmpCtx.getImageData(0,0,this._tmpCanvas.width,this._tmpCanvas.height);let be;if(be=this._config.allowTransparency?function(q){for(let Y=0;Y0)return!1;return!0}(oe):C(oe,P,$,Z),be)return v;const te=this._findGlyphBoundingBox(oe,this._workBoundingBox,p,U,K,I),Me=this._clipImageData(oe,this._workBoundingBox);let V;for(;;){V=this._currentRow;for(const q of this._fixedRows)(V===this._currentRow||q.height2*te.size.y&&(this._currentRow.height>0&&this._fixedRows.push(this._currentRow),V={x:0,y:this._currentRow.y+this._currentRow.height,height:te.size.y},this._fixedRows.push(V),this._currentRow={x:0,y:V.y+V.height,height:0}),V.x+te.size.x<=n)break;V===this._currentRow?(V.x=0,V.y+=V.height,V.height=0):this._fixedRows.splice(this._fixedRows.indexOf(V),1)}return te.texturePosition.x=V.x,te.texturePosition.y=V.y,te.texturePositionClipSpace.x=V.x/n,te.texturePositionClipSpace.y=V.y/t,V.height=Math.max(V.height,te.size.y),V.x+=te.size.x,this._cacheCtx.putImageData(Me,te.texturePosition.x,te.texturePosition.y),te}_findGlyphBoundingBox(g,m,b,y,w,p){m.top=0;const S=y?this._config.scaledCellHeight:this._tmpCanvas.height,L=y?this._config.scaledCellWidth:b;let E=!1;for(let A=0;A=0;A--){for(let k=0;k=0;A--){for(let k=0;k{Object.defineProperty(r,"__esModule",{value:!0}),r.BaseRenderLayer=void 0;const o=h(713),d=h(302),c=h(381);r.BaseRenderLayer=class{constructor(_,l,a,i,e,n){this._container=_,this._alpha=i,this._colors=e,this._coreBrowserService=n,this._scaledCharWidth=0,this._scaledCharHeight=0,this._scaledCellWidth=0,this._scaledCellHeight=0,this._scaledCharLeft=0,this._scaledCharTop=0,this._canvas=document.createElement("canvas"),this._canvas.classList.add(`xterm-${l}-layer`),this._canvas.style.zIndex=a.toString(),this._initCanvas(),this._container.appendChild(this._canvas)}dispose(){this._canvas.remove(),this._charAtlas&&this._charAtlas.dispose()}_initCanvas(){this._ctx=(0,c.throwIfFalsy)(this._canvas.getContext("2d",{alpha:this._alpha})),this._alpha||this._clearAll()}onOptionsChanged(_){}onBlur(_){}onFocus(_){}onCursorMove(_){}onGridChanged(_,l,a){}onSelectionChanged(_,l,a,i=!1){}setColors(_,l){this._refreshCharAtlas(_,l)}_setTransparency(_,l){if(l===this._alpha)return;const a=this._canvas;this._alpha=l,this._canvas=this._canvas.cloneNode(),this._initCanvas(),this._container.replaceChild(this._canvas,a),this._refreshCharAtlas(_,this._colors),this.onGridChanged(_,0,_.rows-1)}_refreshCharAtlas(_,l){this._scaledCharWidth<=0&&this._scaledCharHeight<=0||(this._charAtlas=(0,o.acquireCharAtlas)(_,l,this._scaledCellWidth,this._scaledCellHeight,this._scaledCharWidth,this._scaledCharHeight,this._coreBrowserService.dpr),this._charAtlas.warmUp())}resize(_,l){this._scaledCellWidth=l.scaledCellWidth,this._scaledCellHeight=l.scaledCellHeight,this._scaledCharWidth=l.scaledCharWidth,this._scaledCharHeight=l.scaledCharHeight,this._scaledCharLeft=l.scaledCharLeft,this._scaledCharTop=l.scaledCharTop,this._canvas.width=l.scaledCanvasWidth,this._canvas.height=l.scaledCanvasHeight,this._canvas.style.width=`${l.canvasWidth}px`,this._canvas.style.height=`${l.canvasHeight}px`,this._alpha||this._clearAll(),this._refreshCharAtlas(_,this._colors)}_fillCells(_,l,a,i){this._ctx.fillRect(_*this._scaledCellWidth,l*this._scaledCellHeight,a*this._scaledCellWidth,i*this._scaledCellHeight)}_fillBottomLineAtCells(_,l,a=1){this._ctx.fillRect(_*this._scaledCellWidth,(l+1)*this._scaledCellHeight-this._coreBrowserService.dpr-1,a*this._scaledCellWidth,this._coreBrowserService.dpr)}_fillLeftLineAtCell(_,l,a){this._ctx.fillRect(_*this._scaledCellWidth,l*this._scaledCellHeight,this._coreBrowserService.dpr*a,this._scaledCellHeight)}_strokeRectAtCell(_,l,a,i){this._ctx.lineWidth=this._coreBrowserService.dpr,this._ctx.strokeRect(_*this._scaledCellWidth+this._coreBrowserService.dpr/2,l*this._scaledCellHeight+this._coreBrowserService.dpr/2,a*this._scaledCellWidth-this._coreBrowserService.dpr,i*this._scaledCellHeight-this._coreBrowserService.dpr)}_clearAll(){this._alpha?this._ctx.clearRect(0,0,this._canvas.width,this._canvas.height):(this._ctx.fillStyle=this._colors.background.css,this._ctx.fillRect(0,0,this._canvas.width,this._canvas.height))}_clearCells(_,l,a,i){this._alpha?this._ctx.clearRect(_*this._scaledCellWidth,l*this._scaledCellHeight,a*this._scaledCellWidth,i*this._scaledCellHeight):(this._ctx.fillStyle=this._colors.background.css,this._ctx.fillRect(_*this._scaledCellWidth,l*this._scaledCellHeight,a*this._scaledCellWidth,i*this._scaledCellHeight))}_fillCharTrueColor(_,l,a,i){this._ctx.font=this._getFont(_,!1,!1),this._ctx.textBaseline=d.TEXT_BASELINE,this._clipCell(a,i,l.getWidth()),this._ctx.fillText(l.getChars(),a*this._scaledCellWidth+this._scaledCharLeft,i*this._scaledCellHeight+this._scaledCharTop+this._scaledCharHeight)}_clipCell(_,l,a){this._ctx.beginPath(),this._ctx.rect(_*this._scaledCellWidth,l*this._scaledCellHeight,a*this._scaledCellWidth,this._scaledCellHeight),this._ctx.clip()}_getFont(_,l,a){return`${a?"italic":""} ${l?_.options.fontWeightBold:_.options.fontWeight} ${_.options.fontSize*this._coreBrowserService.dpr}px ${_.options.fontFamily}`}}},461:(D,r,h)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.CursorRenderLayer=void 0;const o=h(592),d=h(782);class c extends o.BaseRenderLayer{constructor(a,i,e,n,t,s,f){super(i,"cursor",e,!0,n,s),this._onRequestRefreshRowsEvent=t,this._coreService=f,this._cell=new d.CellData,this._state={x:0,y:0,isFocused:!1,style:"",width:0},this._cursorRenderers={bar:this._renderBarCursor.bind(this),block:this._renderBlockCursor.bind(this),underline:this._renderUnderlineCursor.bind(this)},this.onOptionsChanged(a)}dispose(){var a;(a=this._cursorBlinkStateManager)===null||a===void 0||a.dispose(),this._cursorBlinkStateManager=void 0,super.dispose()}resize(a,i){super.resize(a,i),this._state={x:0,y:0,isFocused:!1,style:"",width:0}}reset(a){var i;this._clearCursor(),(i=this._cursorBlinkStateManager)===null||i===void 0||i.restartBlinkAnimation(a),this.onOptionsChanged(a)}onBlur(a){var i;(i=this._cursorBlinkStateManager)===null||i===void 0||i.pause(),this._onRequestRefreshRowsEvent.fire({start:a.buffer.active.cursorY,end:a.buffer.active.cursorY})}onFocus(a){var i;(i=this._cursorBlinkStateManager)===null||i===void 0||i.resume(a),this._onRequestRefreshRowsEvent.fire({start:a.buffer.active.cursorY,end:a.buffer.active.cursorY})}onOptionsChanged(a){var i;a.options.cursorBlink?this._cursorBlinkStateManager||(this._cursorBlinkStateManager=new _(()=>{this._render(a,!0)},this._coreBrowserService)):((i=this._cursorBlinkStateManager)===null||i===void 0||i.dispose(),this._cursorBlinkStateManager=void 0),this._onRequestRefreshRowsEvent.fire({start:a.buffer.active.cursorY,end:a.buffer.active.cursorY})}onCursorMove(a){var i;(i=this._cursorBlinkStateManager)===null||i===void 0||i.restartBlinkAnimation(a)}onGridChanged(a,i,e){!this._cursorBlinkStateManager||this._cursorBlinkStateManager.isPaused?this._render(a,!1):this._cursorBlinkStateManager.restartBlinkAnimation(a)}_render(a,i){if(!this._coreService.isCursorInitialized||this._coreService.isCursorHidden)return void this._clearCursor();const e=a.buffer.active.baseY+a.buffer.active.cursorY,n=e-a.buffer.active.viewportY,t=Math.min(a.buffer.active.cursorX,a.cols-1);if(n<0||n>=a.rows)this._clearCursor();else if(a._core.buffer.lines.get(e).loadCell(t,this._cell),this._cell.content!==void 0){if(!this._coreBrowserService.isFocused){this._clearCursor(),this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css;const s=a.options.cursorStyle;return s&&s!=="block"?this._cursorRenderers[s](a,t,n,this._cell):this._renderBlurCursor(a,t,n,this._cell),this._ctx.restore(),this._state.x=t,this._state.y=n,this._state.isFocused=!1,this._state.style=s,void(this._state.width=this._cell.getWidth())}if(!this._cursorBlinkStateManager||this._cursorBlinkStateManager.isCursorVisible){if(this._state){if(this._state.x===t&&this._state.y===n&&this._state.isFocused===this._coreBrowserService.isFocused&&this._state.style===a.options.cursorStyle&&this._state.width===this._cell.getWidth())return;this._clearCursor()}this._ctx.save(),this._cursorRenderers[a.options.cursorStyle||"block"](a,t,n,this._cell),this._ctx.restore(),this._state.x=t,this._state.y=n,this._state.isFocused=!1,this._state.style=a.options.cursorStyle,this._state.width=this._cell.getWidth()}else this._clearCursor()}}_clearCursor(){this._state&&(this._coreBrowserService.dpr<1?this._clearAll():this._clearCells(this._state.x,this._state.y,this._state.width,1),this._state={x:0,y:0,isFocused:!1,style:"",width:0})}_renderBarCursor(a,i,e,n){this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css,this._fillLeftLineAtCell(i,e,a.options.cursorWidth),this._ctx.restore()}_renderBlockCursor(a,i,e,n){this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css,this._fillCells(i,e,n.getWidth(),1),this._ctx.fillStyle=this._colors.cursorAccent.css,this._fillCharTrueColor(a,n,i,e),this._ctx.restore()}_renderUnderlineCursor(a,i,e,n){this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css,this._fillBottomLineAtCells(i,e),this._ctx.restore()}_renderBlurCursor(a,i,e,n){this._ctx.save(),this._ctx.strokeStyle=this._colors.cursor.css,this._strokeRectAtCell(i,e,n.getWidth(),1),this._ctx.restore()}}r.CursorRenderLayer=c;class _{constructor(a,i){this._renderCallback=a,this._coreBrowserService=i,this.isCursorVisible=!0,this._coreBrowserService.isFocused&&this._restartInterval()}get isPaused(){return!(this._blinkStartTimeout||this._blinkInterval)}dispose(){this._blinkInterval&&(this._coreBrowserService.window.clearInterval(this._blinkInterval),this._blinkInterval=void 0),this._blinkStartTimeout&&(this._coreBrowserService.window.clearTimeout(this._blinkStartTimeout),this._blinkStartTimeout=void 0),this._animationFrame&&(this._coreBrowserService.window.cancelAnimationFrame(this._animationFrame),this._animationFrame=void 0)}restartBlinkAnimation(a){this.isPaused||(this._animationTimeRestarted=Date.now(),this.isCursorVisible=!0,this._animationFrame||(this._animationFrame=this._coreBrowserService.window.requestAnimationFrame(()=>{this._renderCallback(),this._animationFrame=void 0})))}_restartInterval(a=600){this._blinkInterval&&(this._coreBrowserService.window.clearInterval(this._blinkInterval),this._blinkInterval=void 0),this._blinkStartTimeout=this._coreBrowserService.window.setTimeout(()=>{if(this._animationTimeRestarted){const i=600-(Date.now()-this._animationTimeRestarted);if(this._animationTimeRestarted=void 0,i>0)return void this._restartInterval(i)}this.isCursorVisible=!1,this._animationFrame=this._coreBrowserService.window.requestAnimationFrame(()=>{this._renderCallback(),this._animationFrame=void 0}),this._blinkInterval=this._coreBrowserService.window.setInterval(()=>{if(this._animationTimeRestarted){const i=600-(Date.now()-this._animationTimeRestarted);return this._animationTimeRestarted=void 0,void this._restartInterval(i)}this.isCursorVisible=!this.isCursorVisible,this._animationFrame=this._coreBrowserService.window.requestAnimationFrame(()=>{this._renderCallback(),this._animationFrame=void 0})},600)},a)}pause(){this.isCursorVisible=!0,this._blinkInterval&&(this._coreBrowserService.window.clearInterval(this._blinkInterval),this._blinkInterval=void 0),this._blinkStartTimeout&&(this._coreBrowserService.window.clearTimeout(this._blinkStartTimeout),this._blinkStartTimeout=void 0),this._animationFrame&&(this._coreBrowserService.window.cancelAnimationFrame(this._animationFrame),this._animationFrame=void 0)}resume(a){this.pause(),this._animationTimeRestarted=void 0,this._restartInterval(),this.restartBlinkAnimation(a)}}},733:(D,r,h)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.LinkRenderLayer=void 0;const o=h(592),d=h(302),c=h(433);class _ extends o.BaseRenderLayer{constructor(a,i,e,n,t){super(a,"link",i,!0,e,t),n.linkifier2.onShowLinkUnderline(s=>this._onShowLinkUnderline(s)),n.linkifier2.onHideLinkUnderline(s=>this._onHideLinkUnderline(s))}resize(a,i){super.resize(a,i),this._state=void 0}reset(a){this._clearCurrentLink()}_clearCurrentLink(){if(this._state){this._clearCells(this._state.x1,this._state.y1,this._state.cols-this._state.x1,1);const a=this._state.y2-this._state.y1-1;a>0&&this._clearCells(0,this._state.y1+1,this._state.cols,a),this._clearCells(0,this._state.y2,this._state.x2,1),this._state=void 0}}_onShowLinkUnderline(a){if(a.fg===d.INVERTED_DEFAULT_COLOR?this._ctx.fillStyle=this._colors.background.css:a.fg!==void 0&&(0,c.is256Color)(a.fg)?this._ctx.fillStyle=this._colors.ansi[a.fg].css:this._ctx.fillStyle=this._colors.foreground.css,a.y1===a.y2)this._fillBottomLineAtCells(a.x1,a.y1,a.x2-a.x1);else{this._fillBottomLineAtCells(a.x1,a.y1,a.cols-a.x1);for(let i=a.y1+1;i{Object.defineProperty(r,"__esModule",{value:!0}),r.addDisposableDomListener=void 0,r.addDisposableDomListener=function(h,o,d,c){h.addEventListener(o,d,c);let _=!1;return{dispose:()=>{_||(_=!0,h.removeEventListener(o,d,c))}}}},302:(D,r,h)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.TEXT_BASELINE=r.DIM_OPACITY=r.INVERTED_DEFAULT_COLOR=void 0;const o=h(399);r.INVERTED_DEFAULT_COLOR=257,r.DIM_OPACITY=.5,r.TEXT_BASELINE=o.isFirefox||o.isLegacyEdge?"bottom":"ideographic"},14:(D,r,h)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.tryDrawCustomChar=r.powerlineDefinitions=r.boxDrawingDefinitions=r.blockElementDefinitions=void 0;const o=h(634);r.blockElementDefinitions={"\u2580":[{x:0,y:0,w:8,h:4}],"\u2581":[{x:0,y:7,w:8,h:1}],"\u2582":[{x:0,y:6,w:8,h:2}],"\u2583":[{x:0,y:5,w:8,h:3}],"\u2584":[{x:0,y:4,w:8,h:4}],"\u2585":[{x:0,y:3,w:8,h:5}],"\u2586":[{x:0,y:2,w:8,h:6}],"\u2587":[{x:0,y:1,w:8,h:7}],"\u2588":[{x:0,y:0,w:8,h:8}],"\u2589":[{x:0,y:0,w:7,h:8}],"\u258A":[{x:0,y:0,w:6,h:8}],"\u258B":[{x:0,y:0,w:5,h:8}],"\u258C":[{x:0,y:0,w:4,h:8}],"\u258D":[{x:0,y:0,w:3,h:8}],"\u258E":[{x:0,y:0,w:2,h:8}],"\u258F":[{x:0,y:0,w:1,h:8}],"\u2590":[{x:4,y:0,w:4,h:8}],"\u2594":[{x:0,y:0,w:9,h:1}],"\u2595":[{x:7,y:0,w:1,h:8}],"\u2596":[{x:0,y:4,w:4,h:4}],"\u2597":[{x:4,y:4,w:4,h:4}],"\u2598":[{x:0,y:0,w:4,h:4}],"\u2599":[{x:0,y:0,w:4,h:8},{x:0,y:4,w:8,h:4}],"\u259A":[{x:0,y:0,w:4,h:4},{x:4,y:4,w:4,h:4}],"\u259B":[{x:0,y:0,w:4,h:8},{x:4,y:0,w:4,h:4}],"\u259C":[{x:0,y:0,w:8,h:4},{x:4,y:0,w:4,h:8}],"\u259D":[{x:4,y:0,w:4,h:4}],"\u259E":[{x:4,y:0,w:4,h:4},{x:0,y:4,w:4,h:4}],"\u259F":[{x:4,y:0,w:4,h:8},{x:0,y:4,w:8,h:4}],"\u{1FB70}":[{x:1,y:0,w:1,h:8}],"\u{1FB71}":[{x:2,y:0,w:1,h:8}],"\u{1FB72}":[{x:3,y:0,w:1,h:8}],"\u{1FB73}":[{x:4,y:0,w:1,h:8}],"\u{1FB74}":[{x:5,y:0,w:1,h:8}],"\u{1FB75}":[{x:6,y:0,w:1,h:8}],"\u{1FB76}":[{x:0,y:1,w:8,h:1}],"\u{1FB77}":[{x:0,y:2,w:8,h:1}],"\u{1FB78}":[{x:0,y:3,w:8,h:1}],"\u{1FB79}":[{x:0,y:4,w:8,h:1}],"\u{1FB7A}":[{x:0,y:5,w:8,h:1}],"\u{1FB7B}":[{x:0,y:6,w:8,h:1}],"\u{1FB7C}":[{x:0,y:0,w:1,h:8},{x:0,y:7,w:8,h:1}],"\u{1FB7D}":[{x:0,y:0,w:1,h:8},{x:0,y:0,w:8,h:1}],"\u{1FB7E}":[{x:7,y:0,w:1,h:8},{x:0,y:0,w:8,h:1}],"\u{1FB7F}":[{x:7,y:0,w:1,h:8},{x:0,y:7,w:8,h:1}],"\u{1FB80}":[{x:0,y:0,w:8,h:1},{x:0,y:7,w:8,h:1}],"\u{1FB81}":[{x:0,y:0,w:8,h:1},{x:0,y:2,w:8,h:1},{x:0,y:4,w:8,h:1},{x:0,y:7,w:8,h:1}],"\u{1FB82}":[{x:0,y:0,w:8,h:2}],"\u{1FB83}":[{x:0,y:0,w:8,h:3}],"\u{1FB84}":[{x:0,y:0,w:8,h:5}],"\u{1FB85}":[{x:0,y:0,w:8,h:6}],"\u{1FB86}":[{x:0,y:0,w:8,h:7}],"\u{1FB87}":[{x:6,y:0,w:2,h:8}],"\u{1FB88}":[{x:5,y:0,w:3,h:8}],"\u{1FB89}":[{x:3,y:0,w:5,h:8}],"\u{1FB8A}":[{x:2,y:0,w:6,h:8}],"\u{1FB8B}":[{x:1,y:0,w:7,h:8}],"\u{1FB95}":[{x:0,y:0,w:2,h:2},{x:4,y:0,w:2,h:2},{x:2,y:2,w:2,h:2},{x:6,y:2,w:2,h:2},{x:0,y:4,w:2,h:2},{x:4,y:4,w:2,h:2},{x:2,y:6,w:2,h:2},{x:6,y:6,w:2,h:2}],"\u{1FB96}":[{x:2,y:0,w:2,h:2},{x:6,y:0,w:2,h:2},{x:0,y:2,w:2,h:2},{x:4,y:2,w:2,h:2},{x:2,y:4,w:2,h:2},{x:6,y:4,w:2,h:2},{x:0,y:6,w:2,h:2},{x:4,y:6,w:2,h:2}],"\u{1FB97}":[{x:0,y:2,w:8,h:2},{x:0,y:6,w:8,h:2}]};const d={"\u2591":[[1,0,0,0],[0,0,0,0],[0,0,1,0],[0,0,0,0]],"\u2592":[[1,0],[0,0],[0,1],[0,0]],"\u2593":[[0,1],[1,1],[1,0],[1,1]]};r.boxDrawingDefinitions={"\u2500":{1:"M0,.5 L1,.5"},"\u2501":{3:"M0,.5 L1,.5"},"\u2502":{1:"M.5,0 L.5,1"},"\u2503":{3:"M.5,0 L.5,1"},"\u250C":{1:"M0.5,1 L.5,.5 L1,.5"},"\u250F":{3:"M0.5,1 L.5,.5 L1,.5"},"\u2510":{1:"M0,.5 L.5,.5 L.5,1"},"\u2513":{3:"M0,.5 L.5,.5 L.5,1"},"\u2514":{1:"M.5,0 L.5,.5 L1,.5"},"\u2517":{3:"M.5,0 L.5,.5 L1,.5"},"\u2518":{1:"M.5,0 L.5,.5 L0,.5"},"\u251B":{3:"M.5,0 L.5,.5 L0,.5"},"\u251C":{1:"M.5,0 L.5,1 M.5,.5 L1,.5"},"\u2523":{3:"M.5,0 L.5,1 M.5,.5 L1,.5"},"\u2524":{1:"M.5,0 L.5,1 M.5,.5 L0,.5"},"\u252B":{3:"M.5,0 L.5,1 M.5,.5 L0,.5"},"\u252C":{1:"M0,.5 L1,.5 M.5,.5 L.5,1"},"\u2533":{3:"M0,.5 L1,.5 M.5,.5 L.5,1"},"\u2534":{1:"M0,.5 L1,.5 M.5,.5 L.5,0"},"\u253B":{3:"M0,.5 L1,.5 M.5,.5 L.5,0"},"\u253C":{1:"M0,.5 L1,.5 M.5,0 L.5,1"},"\u254B":{3:"M0,.5 L1,.5 M.5,0 L.5,1"},"\u2574":{1:"M.5,.5 L0,.5"},"\u2578":{3:"M.5,.5 L0,.5"},"\u2575":{1:"M.5,.5 L.5,0"},"\u2579":{3:"M.5,.5 L.5,0"},"\u2576":{1:"M.5,.5 L1,.5"},"\u257A":{3:"M.5,.5 L1,.5"},"\u2577":{1:"M.5,.5 L.5,1"},"\u257B":{3:"M.5,.5 L.5,1"},"\u2550":{1:(i,e)=>`M0,${.5-e} L1,${.5-e} M0,${.5+e} L1,${.5+e}`},"\u2551":{1:(i,e)=>`M${.5-i},0 L${.5-i},1 M${.5+i},0 L${.5+i},1`},"\u2552":{1:(i,e)=>`M.5,1 L.5,${.5-e} L1,${.5-e} M.5,${.5+e} L1,${.5+e}`},"\u2553":{1:(i,e)=>`M${.5-i},1 L${.5-i},.5 L1,.5 M${.5+i},.5 L${.5+i},1`},"\u2554":{1:(i,e)=>`M1,${.5-e} L${.5-i},${.5-e} L${.5-i},1 M1,${.5+e} L${.5+i},${.5+e} L${.5+i},1`},"\u2555":{1:(i,e)=>`M0,${.5-e} L.5,${.5-e} L.5,1 M0,${.5+e} L.5,${.5+e}`},"\u2556":{1:(i,e)=>`M${.5+i},1 L${.5+i},.5 L0,.5 M${.5-i},.5 L${.5-i},1`},"\u2557":{1:(i,e)=>`M0,${.5+e} L${.5-i},${.5+e} L${.5-i},1 M0,${.5-e} L${.5+i},${.5-e} L${.5+i},1`},"\u2558":{1:(i,e)=>`M.5,0 L.5,${.5+e} L1,${.5+e} M.5,${.5-e} L1,${.5-e}`},"\u2559":{1:(i,e)=>`M1,.5 L${.5-i},.5 L${.5-i},0 M${.5+i},.5 L${.5+i},0`},"\u255A":{1:(i,e)=>`M1,${.5-e} L${.5+i},${.5-e} L${.5+i},0 M1,${.5+e} L${.5-i},${.5+e} L${.5-i},0`},"\u255B":{1:(i,e)=>`M0,${.5+e} L.5,${.5+e} L.5,0 M0,${.5-e} L.5,${.5-e}`},"\u255C":{1:(i,e)=>`M0,.5 L${.5+i},.5 L${.5+i},0 M${.5-i},.5 L${.5-i},0`},"\u255D":{1:(i,e)=>`M0,${.5-e} L${.5-i},${.5-e} L${.5-i},0 M0,${.5+e} L${.5+i},${.5+e} L${.5+i},0`},"\u255E":{1:(i,e)=>`M.5,0 L.5,1 M.5,${.5-e} L1,${.5-e} M.5,${.5+e} L1,${.5+e}`},"\u255F":{1:(i,e)=>`M${.5-i},0 L${.5-i},1 M${.5+i},0 L${.5+i},1 M${.5+i},.5 L1,.5`},"\u2560":{1:(i,e)=>`M${.5-i},0 L${.5-i},1 M1,${.5+e} L${.5+i},${.5+e} L${.5+i},1 M1,${.5-e} L${.5+i},${.5-e} L${.5+i},0`},"\u2561":{1:(i,e)=>`M.5,0 L.5,1 M0,${.5-e} L.5,${.5-e} M0,${.5+e} L.5,${.5+e}`},"\u2562":{1:(i,e)=>`M0,.5 L${.5-i},.5 M${.5-i},0 L${.5-i},1 M${.5+i},0 L${.5+i},1`},"\u2563":{1:(i,e)=>`M${.5+i},0 L${.5+i},1 M0,${.5+e} L${.5-i},${.5+e} L${.5-i},1 M0,${.5-e} L${.5-i},${.5-e} L${.5-i},0`},"\u2564":{1:(i,e)=>`M0,${.5-e} L1,${.5-e} M0,${.5+e} L1,${.5+e} M.5,${.5+e} L.5,1`},"\u2565":{1:(i,e)=>`M0,.5 L1,.5 M${.5-i},.5 L${.5-i},1 M${.5+i},.5 L${.5+i},1`},"\u2566":{1:(i,e)=>`M0,${.5-e} L1,${.5-e} M0,${.5+e} L${.5-i},${.5+e} L${.5-i},1 M1,${.5+e} L${.5+i},${.5+e} L${.5+i},1`},"\u2567":{1:(i,e)=>`M.5,0 L.5,${.5-e} M0,${.5-e} L1,${.5-e} M0,${.5+e} L1,${.5+e}`},"\u2568":{1:(i,e)=>`M0,.5 L1,.5 M${.5-i},.5 L${.5-i},0 M${.5+i},.5 L${.5+i},0`},"\u2569":{1:(i,e)=>`M0,${.5+e} L1,${.5+e} M0,${.5-e} L${.5-i},${.5-e} L${.5-i},0 M1,${.5-e} L${.5+i},${.5-e} L${.5+i},0`},"\u256A":{1:(i,e)=>`M.5,0 L.5,1 M0,${.5-e} L1,${.5-e} M0,${.5+e} L1,${.5+e}`},"\u256B":{1:(i,e)=>`M0,.5 L1,.5 M${.5-i},0 L${.5-i},1 M${.5+i},0 L${.5+i},1`},"\u256C":{1:(i,e)=>`M0,${.5+e} L${.5-i},${.5+e} L${.5-i},1 M1,${.5+e} L${.5+i},${.5+e} L${.5+i},1 M0,${.5-e} L${.5-i},${.5-e} L${.5-i},0 M1,${.5-e} L${.5+i},${.5-e} L${.5+i},0`},"\u2571":{1:"M1,0 L0,1"},"\u2572":{1:"M0,0 L1,1"},"\u2573":{1:"M1,0 L0,1 M0,0 L1,1"},"\u257C":{1:"M.5,.5 L0,.5",3:"M.5,.5 L1,.5"},"\u257D":{1:"M.5,.5 L.5,0",3:"M.5,.5 L.5,1"},"\u257E":{1:"M.5,.5 L1,.5",3:"M.5,.5 L0,.5"},"\u257F":{1:"M.5,.5 L.5,1",3:"M.5,.5 L.5,0"},"\u250D":{1:"M.5,.5 L.5,1",3:"M.5,.5 L1,.5"},"\u250E":{1:"M.5,.5 L1,.5",3:"M.5,.5 L.5,1"},"\u2511":{1:"M.5,.5 L.5,1",3:"M.5,.5 L0,.5"},"\u2512":{1:"M.5,.5 L0,.5",3:"M.5,.5 L.5,1"},"\u2515":{1:"M.5,.5 L.5,0",3:"M.5,.5 L1,.5"},"\u2516":{1:"M.5,.5 L1,.5",3:"M.5,.5 L.5,0"},"\u2519":{1:"M.5,.5 L.5,0",3:"M.5,.5 L0,.5"},"\u251A":{1:"M.5,.5 L0,.5",3:"M.5,.5 L.5,0"},"\u251D":{1:"M.5,0 L.5,1",3:"M.5,.5 L1,.5"},"\u251E":{1:"M0.5,1 L.5,.5 L1,.5",3:"M.5,.5 L.5,0"},"\u251F":{1:"M.5,0 L.5,.5 L1,.5",3:"M.5,.5 L.5,1"},"\u2520":{1:"M.5,.5 L1,.5",3:"M.5,0 L.5,1"},"\u2521":{1:"M.5,.5 L.5,1",3:"M.5,0 L.5,.5 L1,.5"},"\u2522":{1:"M.5,.5 L.5,0",3:"M0.5,1 L.5,.5 L1,.5"},"\u2525":{1:"M.5,0 L.5,1",3:"M.5,.5 L0,.5"},"\u2526":{1:"M0,.5 L.5,.5 L.5,1",3:"M.5,.5 L.5,0"},"\u2527":{1:"M.5,0 L.5,.5 L0,.5",3:"M.5,.5 L.5,1"},"\u2528":{1:"M.5,.5 L0,.5",3:"M.5,0 L.5,1"},"\u2529":{1:"M.5,.5 L.5,1",3:"M.5,0 L.5,.5 L0,.5"},"\u252A":{1:"M.5,.5 L.5,0",3:"M0,.5 L.5,.5 L.5,1"},"\u252D":{1:"M0.5,1 L.5,.5 L1,.5",3:"M.5,.5 L0,.5"},"\u252E":{1:"M0,.5 L.5,.5 L.5,1",3:"M.5,.5 L1,.5"},"\u252F":{1:"M.5,.5 L.5,1",3:"M0,.5 L1,.5"},"\u2530":{1:"M0,.5 L1,.5",3:"M.5,.5 L.5,1"},"\u2531":{1:"M.5,.5 L1,.5",3:"M0,.5 L.5,.5 L.5,1"},"\u2532":{1:"M.5,.5 L0,.5",3:"M0.5,1 L.5,.5 L1,.5"},"\u2535":{1:"M.5,0 L.5,.5 L1,.5",3:"M.5,.5 L0,.5"},"\u2536":{1:"M.5,0 L.5,.5 L0,.5",3:"M.5,.5 L1,.5"},"\u2537":{1:"M.5,.5 L.5,0",3:"M0,.5 L1,.5"},"\u2538":{1:"M0,.5 L1,.5",3:"M.5,.5 L.5,0"},"\u2539":{1:"M.5,.5 L1,.5",3:"M.5,0 L.5,.5 L0,.5"},"\u253A":{1:"M.5,.5 L0,.5",3:"M.5,0 L.5,.5 L1,.5"},"\u253D":{1:"M.5,0 L.5,1 M.5,.5 L1,.5",3:"M.5,.5 L0,.5"},"\u253E":{1:"M.5,0 L.5,1 M.5,.5 L0,.5",3:"M.5,.5 L1,.5"},"\u253F":{1:"M.5,0 L.5,1",3:"M0,.5 L1,.5"},"\u2540":{1:"M0,.5 L1,.5 M.5,.5 L.5,1",3:"M.5,.5 L.5,0"},"\u2541":{1:"M.5,.5 L.5,0 M0,.5 L1,.5",3:"M.5,.5 L.5,1"},"\u2542":{1:"M0,.5 L1,.5",3:"M.5,0 L.5,1"},"\u2543":{1:"M0.5,1 L.5,.5 L1,.5",3:"M.5,0 L.5,.5 L0,.5"},"\u2544":{1:"M0,.5 L.5,.5 L.5,1",3:"M.5,0 L.5,.5 L1,.5"},"\u2545":{1:"M.5,0 L.5,.5 L1,.5",3:"M0,.5 L.5,.5 L.5,1"},"\u2546":{1:"M.5,0 L.5,.5 L0,.5",3:"M0.5,1 L.5,.5 L1,.5"},"\u2547":{1:"M.5,.5 L.5,1",3:"M.5,.5 L.5,0 M0,.5 L1,.5"},"\u2548":{1:"M.5,.5 L.5,0",3:"M0,.5 L1,.5 M.5,.5 L.5,1"},"\u2549":{1:"M.5,.5 L1,.5",3:"M.5,0 L.5,1 M.5,.5 L0,.5"},"\u254A":{1:"M.5,.5 L0,.5",3:"M.5,0 L.5,1 M.5,.5 L1,.5"},"\u254C":{1:"M.1,.5 L.4,.5 M.6,.5 L.9,.5"},"\u254D":{3:"M.1,.5 L.4,.5 M.6,.5 L.9,.5"},"\u2504":{1:"M.0667,.5 L.2667,.5 M.4,.5 L.6,.5 M.7333,.5 L.9333,.5"},"\u2505":{3:"M.0667,.5 L.2667,.5 M.4,.5 L.6,.5 M.7333,.5 L.9333,.5"},"\u2508":{1:"M.05,.5 L.2,.5 M.3,.5 L.45,.5 M.55,.5 L.7,.5 M.8,.5 L.95,.5"},"\u2509":{3:"M.05,.5 L.2,.5 M.3,.5 L.45,.5 M.55,.5 L.7,.5 M.8,.5 L.95,.5"},"\u254E":{1:"M.5,.1 L.5,.4 M.5,.6 L.5,.9"},"\u254F":{3:"M.5,.1 L.5,.4 M.5,.6 L.5,.9"},"\u2506":{1:"M.5,.0667 L.5,.2667 M.5,.4 L.5,.6 M.5,.7333 L.5,.9333"},"\u2507":{3:"M.5,.0667 L.5,.2667 M.5,.4 L.5,.6 M.5,.7333 L.5,.9333"},"\u250A":{1:"M.5,.05 L.5,.2 M.5,.3 L.5,.45 L.5,.55 M.5,.7 L.5,.95"},"\u250B":{3:"M.5,.05 L.5,.2 M.5,.3 L.5,.45 L.5,.55 M.5,.7 L.5,.95"},"\u256D":{1:(i,e)=>`M.5,1 L.5,${.5+e/.15*.5} C.5,${.5+e/.15*.5},.5,.5,1,.5`},"\u256E":{1:(i,e)=>`M.5,1 L.5,${.5+e/.15*.5} C.5,${.5+e/.15*.5},.5,.5,0,.5`},"\u256F":{1:(i,e)=>`M.5,0 L.5,${.5-e/.15*.5} C.5,${.5-e/.15*.5},.5,.5,0,.5`},"\u2570":{1:(i,e)=>`M.5,0 L.5,${.5-e/.15*.5} C.5,${.5-e/.15*.5},.5,.5,1,.5`}},r.powerlineDefinitions={"\uE0B0":{d:"M0,0 L1,.5 L0,1",type:0,rightPadding:2},"\uE0B1":{d:"M-1,-.5 L1,.5 L-1,1.5",type:1,leftPadding:1,rightPadding:1},"\uE0B2":{d:"M1,0 L0,.5 L1,1",type:0,leftPadding:2},"\uE0B3":{d:"M2,-.5 L0,.5 L2,1.5",type:1,leftPadding:1,rightPadding:1},"\uE0B4":{d:"M0,0 L0,1 C0.552,1,1,0.776,1,.5 C1,0.224,0.552,0,0,0",type:0,rightPadding:1},"\uE0B5":{d:"M0,1 C0.552,1,1,0.776,1,.5 C1,0.224,0.552,0,0,0",type:1,rightPadding:1},"\uE0B6":{d:"M1,0 L1,1 C0.448,1,0,0.776,0,.5 C0,0.224,0.448,0,1,0",type:0,leftPadding:1},"\uE0B7":{d:"M1,1 C0.448,1,0,0.776,0,.5 C0,0.224,0.448,0,1,0",type:1,leftPadding:1}},r.tryDrawCustomChar=function(i,e,n,t,s,f,v,u){const C=r.blockElementDefinitions[e];if(C)return function(y,w,p,S,L,E){for(let A=0;A7&&parseInt(k.slice(7,9),16)||1;else{if(!k.startsWith("rgba"))throw new Error(`Unexpected fillStyle color format "${k}" when drawing pattern glyph`);[P,R,M,F]=k.substring(5,k.length-1).split(",").map(U=>parseFloat(U))}for(let U=0;Ui.bezierCurveTo(e[0],e[1],e[2],e[3],e[4],e[5]),L:(i,e)=>i.lineTo(e[0],e[1]),M:(i,e)=>i.moveTo(e[0],e[1])};function a(i,e,n,t,s,f,v,u=0,C=0){const g=i.map(m=>parseFloat(m)||parseInt(m));if(g.length<2)throw new Error("Too few arguments for instruction");for(let m=0;m{Object.defineProperty(r,"__esModule",{value:!0}),r.observeDevicePixelDimensions=void 0;const o=h(859);r.observeDevicePixelDimensions=function(d,c,_){let l=new c.ResizeObserver(a=>{const i=a.find(t=>t.target===d);if(!i)return;if(!("devicePixelContentBoxSize"in i))return l==null||l.disconnect(),void(l=void 0);const e=i.devicePixelContentBoxSize[0].inlineSize,n=i.devicePixelContentBoxSize[0].blockSize;e>0&&n>0&&_(e,n)});try{l.observe(d,{box:["device-pixel-content-box"]})}catch{l.disconnect(),l=void 0}return(0,o.toDisposable)(()=>l==null?void 0:l.disconnect())}},634:(D,r)=>{function h(o){return 57508<=o&&o<=57558}Object.defineProperty(r,"__esModule",{value:!0}),r.excludeFromContrastRatioDemands=r.isRestrictedPowerlineGlyph=r.isPowerlineGlyph=r.throwIfFalsy=void 0,r.throwIfFalsy=function(o){if(!o)throw new Error("value must not be falsy");return o},r.isPowerlineGlyph=h,r.isRestrictedPowerlineGlyph=function(o){return 57520<=o&&o<=57527},r.excludeFromContrastRatioDemands=function(o){return h(o)||function(d){return 9472<=d&&d<=9631}(o)}},160:(D,r)=>{var h,o,d;function c(l){const a=l.toString(16);return a.length<2?"0"+a:a}function _(l,a){return l>>0}}(h=r.channels||(r.channels={})),function(l){function a(i,e){const n=Math.round(255*e),[t,s,f]=d.toChannels(i.rgba);return{css:h.toCss(t,s,f,n),rgba:h.toRgba(t,s,f,n)}}l.blend=function(i,e){const n=(255&e.rgba)/255;if(n===1)return{css:e.css,rgba:e.rgba};const t=e.rgba>>24&255,s=e.rgba>>16&255,f=e.rgba>>8&255,v=i.rgba>>24&255,u=i.rgba>>16&255,C=i.rgba>>8&255,g=v+Math.round((t-v)*n),m=u+Math.round((s-u)*n),b=C+Math.round((f-C)*n);return{css:h.toCss(g,m,b),rgba:h.toRgba(g,m,b)}},l.isOpaque=function(i){return(255&i.rgba)==255},l.ensureContrastRatio=function(i,e,n){const t=d.ensureContrastRatio(i.rgba,e.rgba,n);if(t)return d.toColor(t>>24&255,t>>16&255,t>>8&255)},l.opaque=function(i){const e=(255|i.rgba)>>>0,[n,t,s]=d.toChannels(e);return{css:h.toCss(n,t,s),rgba:e}},l.opacity=a,l.multiplyOpacity=function(i,e){return a(i,(255&i.rgba)*e/255)},l.toColorRGB=function(i){return[i.rgba>>24&255,i.rgba>>16&255,i.rgba>>8&255]}}(r.color||(r.color={})),(r.css||(r.css={})).toColor=function(l){if(l.match(/#[0-9a-f]{3,8}/i))switch(l.length){case 4:{const i=parseInt(l.slice(1,2).repeat(2),16),e=parseInt(l.slice(2,3).repeat(2),16),n=parseInt(l.slice(3,4).repeat(2),16);return d.toColor(i,e,n)}case 5:{const i=parseInt(l.slice(1,2).repeat(2),16),e=parseInt(l.slice(2,3).repeat(2),16),n=parseInt(l.slice(3,4).repeat(2),16),t=parseInt(l.slice(4,5).repeat(2),16);return d.toColor(i,e,n,t)}case 7:return{css:l,rgba:(parseInt(l.slice(1),16)<<8|255)>>>0};case 9:return{css:l,rgba:parseInt(l.slice(1),16)>>>0}}const a=l.match(/rgba?\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*(,\s*(0|1|\d?\.(\d+))\s*)?\)/);if(a){const i=parseInt(a[1]),e=parseInt(a[2]),n=parseInt(a[3]),t=Math.round(255*(a[5]===void 0?1:parseFloat(a[5])));return d.toColor(i,e,n,t)}throw new Error("css.toColor: Unsupported css format")},function(l){function a(i,e,n){const t=i/255,s=e/255,f=n/255;return .2126*(t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4))+.7152*(s<=.03928?s/12.92:Math.pow((s+.055)/1.055,2.4))+.0722*(f<=.03928?f/12.92:Math.pow((f+.055)/1.055,2.4))}l.relativeLuminance=function(i){return a(i>>16&255,i>>8&255,255&i)},l.relativeLuminance2=a}(o=r.rgb||(r.rgb={})),function(l){function a(e,n,t){const s=e>>24&255,f=e>>16&255,v=e>>8&255;let u=n>>24&255,C=n>>16&255,g=n>>8&255,m=_(o.relativeLuminance2(u,C,g),o.relativeLuminance2(s,f,v));for(;m0||C>0||g>0);)u-=Math.max(0,Math.ceil(.1*u)),C-=Math.max(0,Math.ceil(.1*C)),g-=Math.max(0,Math.ceil(.1*g)),m=_(o.relativeLuminance2(u,C,g),o.relativeLuminance2(s,f,v));return(u<<24|C<<16|g<<8|255)>>>0}function i(e,n,t){const s=e>>24&255,f=e>>16&255,v=e>>8&255;let u=n>>24&255,C=n>>16&255,g=n>>8&255,m=_(o.relativeLuminance2(u,C,g),o.relativeLuminance2(s,f,v));for(;m>>0}l.ensureContrastRatio=function(e,n,t){const s=o.relativeLuminance(e>>8),f=o.relativeLuminance(n>>8);if(_(s,f)>8));if(g_(s,o.relativeLuminance(m>>8))?C:m}return C}const v=i(e,n,t),u=_(s,o.relativeLuminance(v>>8));if(u_(s,o.relativeLuminance(C>>8))?v:C}return v}},l.reduceLuminance=a,l.increaseLuminance=i,l.toChannels=function(e){return[e>>24&255,e>>16&255,e>>8&255,255&e]},l.toColor=function(e,n,t,s){return{css:h.toCss(e,n,t,s),rgba:h.toRgba(e,n,t,s)}}}(d=r.rgba||(r.rgba={})),r.toPaddedHex=c,r.contrastRatio=_},345:(D,r)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.forwardEvent=r.EventEmitter=void 0,r.EventEmitter=class{constructor(){this._listeners=[],this._disposed=!1}get event(){return this._event||(this._event=h=>(this._listeners.push(h),{dispose:()=>{if(!this._disposed){for(let o=0;oo.fire(d))}},859:(D,r)=>{function h(o){for(const d of o)d.dispose();o.length=0}Object.defineProperty(r,"__esModule",{value:!0}),r.getDisposeArrayDisposable=r.disposeArray=r.toDisposable=r.Disposable=void 0,r.Disposable=class{constructor(){this._disposables=[],this._isDisposed=!1}dispose(){this._isDisposed=!0;for(const o of this._disposables)o.dispose();this._disposables.length=0}register(o){return this._disposables.push(o),o}unregister(o){const d=this._disposables.indexOf(o);d!==-1&&this._disposables.splice(d,1)}},r.toDisposable=function(o){return{dispose:o}},r.disposeArray=h,r.getDisposeArrayDisposable=function(o){return{dispose:()=>h(o)}}},485:(D,r)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.FourKeyMap=r.TwoKeyMap=void 0;class h{constructor(){this._data={}}set(d,c,_){this._data[d]||(this._data[d]={}),this._data[d][c]=_}get(d,c){return this._data[d]?this._data[d][c]:void 0}clear(){this._data={}}}r.TwoKeyMap=h,r.FourKeyMap=class{constructor(){this._data=new h}set(o,d,c,_,l){this._data.get(o,d)||this._data.set(o,d,new h),this._data.get(o,d).set(c,_,l)}get(o,d,c,_){var l;return(l=this._data.get(o,d))===null||l===void 0?void 0:l.get(c,_)}clear(){this._data.clear()}}},399:(D,r)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.isLinux=r.isWindows=r.isIphone=r.isIpad=r.isMac=r.isSafari=r.isLegacyEdge=r.isFirefox=void 0;const h=typeof navigator=="undefined",o=h?"node":navigator.userAgent,d=h?"node":navigator.platform;r.isFirefox=o.includes("Firefox"),r.isLegacyEdge=o.includes("Edge"),r.isSafari=/^((?!chrome|android).)*safari/i.test(o),r.isMac=["Macintosh","MacIntel","MacPPC","Mac68K"].includes(d),r.isIpad=d==="iPad",r.isIphone=d==="iPhone",r.isWindows=["Windows","Win16","Win32","WinCE"].includes(d),r.isLinux=d.indexOf("Linux")>=0},455:(D,r)=>{function h(o,d,c=0,_=o.length){if(c>=o.length)return o;c=(o.length+c)%o.length,_=_>=o.length?o.length:(o.length+_)%o.length;for(let l=c;l<_;++l)o[l]=d;return o}Object.defineProperty(r,"__esModule",{value:!0}),r.concat=r.fillFallback=r.fill=void 0,r.fill=function(o,d,c,_){return o.fill?o.fill(d,c,_):h(o,d,c,_)},r.fillFallback=h,r.concat=function(o,d){const c=new o.constructor(o.length+d.length);return c.set(o),c.set(d,o.length),c}},147:(D,r)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.ExtendedAttrs=r.AttributeData=void 0;class h{constructor(){this.fg=0,this.bg=0,this.extended=new o}static toColorRGB(c){return[c>>>16&255,c>>>8&255,255&c]}static fromColorRGB(c){return(255&c[0])<<16|(255&c[1])<<8|255&c[2]}clone(){const c=new h;return c.fg=this.fg,c.bg=this.bg,c.extended=this.extended.clone(),c}isInverse(){return 67108864&this.fg}isBold(){return 134217728&this.fg}isUnderline(){return this.hasExtendedAttrs()&&this.extended.underlineStyle!==0?1:268435456&this.fg}isBlink(){return 536870912&this.fg}isInvisible(){return 1073741824&this.fg}isItalic(){return 67108864&this.bg}isDim(){return 134217728&this.bg}isStrikethrough(){return 2147483648&this.fg}isProtected(){return 536870912&this.bg}getFgColorMode(){return 50331648&this.fg}getBgColorMode(){return 50331648&this.bg}isFgRGB(){return(50331648&this.fg)==50331648}isBgRGB(){return(50331648&this.bg)==50331648}isFgPalette(){return(50331648&this.fg)==16777216||(50331648&this.fg)==33554432}isBgPalette(){return(50331648&this.bg)==16777216||(50331648&this.bg)==33554432}isFgDefault(){return(50331648&this.fg)==0}isBgDefault(){return(50331648&this.bg)==0}isAttributeDefault(){return this.fg===0&&this.bg===0}getFgColor(){switch(50331648&this.fg){case 16777216:case 33554432:return 255&this.fg;case 50331648:return 16777215&this.fg;default:return-1}}getBgColor(){switch(50331648&this.bg){case 16777216:case 33554432:return 255&this.bg;case 50331648:return 16777215&this.bg;default:return-1}}hasExtendedAttrs(){return 268435456&this.bg}updateExtended(){this.extended.isEmpty()?this.bg&=-268435457:this.bg|=268435456}getUnderlineColor(){if(268435456&this.bg&&~this.extended.underlineColor)switch(50331648&this.extended.underlineColor){case 16777216:case 33554432:return 255&this.extended.underlineColor;case 50331648:return 16777215&this.extended.underlineColor;default:return this.getFgColor()}return this.getFgColor()}getUnderlineColorMode(){return 268435456&this.bg&&~this.extended.underlineColor?50331648&this.extended.underlineColor:this.getFgColorMode()}isUnderlineColorRGB(){return 268435456&this.bg&&~this.extended.underlineColor?(50331648&this.extended.underlineColor)==50331648:this.isFgRGB()}isUnderlineColorPalette(){return 268435456&this.bg&&~this.extended.underlineColor?(50331648&this.extended.underlineColor)==16777216||(50331648&this.extended.underlineColor)==33554432:this.isFgPalette()}isUnderlineColorDefault(){return 268435456&this.bg&&~this.extended.underlineColor?(50331648&this.extended.underlineColor)==0:this.isFgDefault()}getUnderlineStyle(){return 268435456&this.fg?268435456&this.bg?this.extended.underlineStyle:1:0}}r.AttributeData=h;class o{constructor(c=0,_=0){this._ext=0,this._urlId=0,this._ext=c,this._urlId=_}get ext(){return this._urlId?-469762049&this._ext|this.underlineStyle<<26:this._ext}set ext(c){this._ext=c}get underlineStyle(){return this._urlId?5:(469762048&this._ext)>>26}set underlineStyle(c){this._ext&=-469762049,this._ext|=c<<26&469762048}get underlineColor(){return 67108863&this._ext}set underlineColor(c){this._ext&=-67108864,this._ext|=67108863&c}get urlId(){return this._urlId}set urlId(c){this._urlId=c}clone(){return new o(this._ext,this._urlId)}isEmpty(){return this.underlineStyle===0&&this._urlId===0}}r.ExtendedAttrs=o},782:(D,r,h)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.CellData=void 0;const o=h(133),d=h(855),c=h(147);class _ extends c.AttributeData{constructor(){super(...arguments),this.content=0,this.fg=0,this.bg=0,this.extended=new c.ExtendedAttrs,this.combinedData=""}static fromCharData(a){const i=new _;return i.setFromCharData(a),i}isCombined(){return 2097152&this.content}getWidth(){return this.content>>22}getChars(){return 2097152&this.content?this.combinedData:2097151&this.content?(0,o.stringFromCodePoint)(2097151&this.content):""}getCode(){return this.isCombined()?this.combinedData.charCodeAt(this.combinedData.length-1):2097151&this.content}setFromCharData(a){this.fg=a[d.CHAR_DATA_ATTR_INDEX],this.bg=0;let i=!1;if(a[d.CHAR_DATA_CHAR_INDEX].length>2)i=!0;else if(a[d.CHAR_DATA_CHAR_INDEX].length===2){const e=a[d.CHAR_DATA_CHAR_INDEX].charCodeAt(0);if(55296<=e&&e<=56319){const n=a[d.CHAR_DATA_CHAR_INDEX].charCodeAt(1);56320<=n&&n<=57343?this.content=1024*(e-55296)+n-56320+65536|a[d.CHAR_DATA_WIDTH_INDEX]<<22:i=!0}else i=!0}else this.content=a[d.CHAR_DATA_CHAR_INDEX].charCodeAt(0)|a[d.CHAR_DATA_WIDTH_INDEX]<<22;i&&(this.combinedData=a[d.CHAR_DATA_CHAR_INDEX],this.content=2097152|a[d.CHAR_DATA_WIDTH_INDEX]<<22)}getAsCharData(){return[this.fg,this.getChars(),this.getWidth(),this.getCode()]}}r.CellData=_},855:(D,r)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.WHITESPACE_CELL_CODE=r.WHITESPACE_CELL_WIDTH=r.WHITESPACE_CELL_CHAR=r.NULL_CELL_CODE=r.NULL_CELL_WIDTH=r.NULL_CELL_CHAR=r.CHAR_DATA_CODE_INDEX=r.CHAR_DATA_WIDTH_INDEX=r.CHAR_DATA_CHAR_INDEX=r.CHAR_DATA_ATTR_INDEX=r.DEFAULT_EXT=r.DEFAULT_ATTR=r.DEFAULT_COLOR=void 0,r.DEFAULT_COLOR=256,r.DEFAULT_ATTR=256|r.DEFAULT_COLOR<<9,r.DEFAULT_EXT=0,r.CHAR_DATA_ATTR_INDEX=0,r.CHAR_DATA_CHAR_INDEX=1,r.CHAR_DATA_WIDTH_INDEX=2,r.CHAR_DATA_CODE_INDEX=3,r.NULL_CELL_CHAR="",r.NULL_CELL_WIDTH=1,r.NULL_CELL_CODE=0,r.WHITESPACE_CELL_CHAR=" ",r.WHITESPACE_CELL_WIDTH=1,r.WHITESPACE_CELL_CODE=32},133:(D,r)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.Utf8ToUtf32=r.StringToUtf32=r.utf32ToString=r.stringFromCodePoint=void 0,r.stringFromCodePoint=function(h){return h>65535?(h-=65536,String.fromCharCode(55296+(h>>10))+String.fromCharCode(h%1024+56320)):String.fromCharCode(h)},r.utf32ToString=function(h,o=0,d=h.length){let c="";for(let _=o;_65535?(l-=65536,c+=String.fromCharCode(55296+(l>>10))+String.fromCharCode(l%1024+56320)):c+=String.fromCharCode(l)}return c},r.StringToUtf32=class{constructor(){this._interim=0}clear(){this._interim=0}decode(h,o){const d=h.length;if(!d)return 0;let c=0,_=0;if(this._interim){const l=h.charCodeAt(_++);56320<=l&&l<=57343?o[c++]=1024*(this._interim-55296)+l-56320+65536:(o[c++]=this._interim,o[c++]=l),this._interim=0}for(let l=_;l=d)return this._interim=a,c;const i=h.charCodeAt(l);56320<=i&&i<=57343?o[c++]=1024*(a-55296)+i-56320+65536:(o[c++]=a,o[c++]=i)}else a!==65279&&(o[c++]=a)}return c}},r.Utf8ToUtf32=class{constructor(){this.interim=new Uint8Array(3)}clear(){this.interim.fill(0)}decode(h,o){const d=h.length;if(!d)return 0;let c,_,l,a,i=0,e=0,n=0;if(this.interim[0]){let f=!1,v=this.interim[0];v&=(224&v)==192?31:(240&v)==224?15:7;let u,C=0;for(;(u=63&this.interim[++C])&&C<4;)v<<=6,v|=u;const g=(224&this.interim[0])==192?2:(240&this.interim[0])==224?3:4,m=g-C;for(;n=d)return 0;if(u=h[n++],(192&u)!=128){n--,f=!0;break}this.interim[C++]=u,v<<=6,v|=63&u}f||(g===2?v<128?n--:o[i++]=v:g===3?v<2048||v>=55296&&v<=57343||v===65279||(o[i++]=v):v<65536||v>1114111||(o[i++]=v)),this.interim.fill(0)}const t=d-4;let s=n;for(;s=d)return this.interim[0]=c,i;if(_=h[s++],(192&_)!=128){s--;continue}if(e=(31&c)<<6|63&_,e<128){s--;continue}o[i++]=e}else if((240&c)==224){if(s>=d)return this.interim[0]=c,i;if(_=h[s++],(192&_)!=128){s--;continue}if(s>=d)return this.interim[0]=c,this.interim[1]=_,i;if(l=h[s++],(192&l)!=128){s--;continue}if(e=(15&c)<<12|(63&_)<<6|63&l,e<2048||e>=55296&&e<=57343||e===65279)continue;o[i++]=e}else if((248&c)==240){if(s>=d)return this.interim[0]=c,i;if(_=h[s++],(192&_)!=128){s--;continue}if(s>=d)return this.interim[0]=c,this.interim[1]=_,i;if(l=h[s++],(192&l)!=128){s--;continue}if(s>=d)return this.interim[0]=c,this.interim[1]=_,this.interim[2]=l,i;if(a=h[s++],(192&a)!=128){s--;continue}if(e=(7&c)<<18|(63&_)<<12|(63&l)<<6|63&a,e<65536||e>1114111)continue;o[i++]=e}}return i}}}},J={};function j(D){var r=J[D];if(r!==void 0)return r.exports;var h=J[D]={exports:{}};return ee[D](h,h.exports,j),h.exports}var se={};return(()=>{var D=se;Object.defineProperty(D,"__esModule",{value:!0}),D.WebglAddon=void 0;const r=j(666),h=j(345),o=j(399);D.WebglAddon=class{constructor(d){this._preserveDrawingBuffer=d,this._onChangeTextureAtlas=new h.EventEmitter,this._onContextLoss=new h.EventEmitter}get onChangeTextureAtlas(){return this._onChangeTextureAtlas.event}get onContextLoss(){return this._onContextLoss.event}activate(d){if(!d.element)throw new Error("Cannot activate WebglAddon before Terminal.open");if(o.isSafari)throw new Error("Webgl is not currently supported on Safari");this._terminal=d;const c=d._core._renderService,_=d._core._characterJoinerService,l=d._core._coreBrowserService,a=d._core.coreService,i=d._core._decorationService,e=d._core._colorManager.colors;this._renderer=new r.WebglRenderer(d,e,_,l,a,i,this._preserveDrawingBuffer),(0,h.forwardEvent)(this._renderer.onContextLoss,this._onContextLoss),(0,h.forwardEvent)(this._renderer.onChangeTextureAtlas,this._onChangeTextureAtlas),c.setRenderer(this._renderer)}dispose(){var d;if(!this._terminal)throw new Error("Cannot dispose WebglAddon because it is activated");const c=this._terminal._core._renderService;c.setRenderer(this._terminal._core._createRenderer()),c.onResize(this._terminal.cols,this._terminal.rows),(d=this._renderer)===null||d===void 0||d.dispose(),this._renderer=void 0}get textureAtlas(){var d;return(d=this._renderer)===null||d===void 0?void 0:d.textureAtlas}clearTextureAtlas(){var d;(d=this._renderer)===null||d===void 0||d.clearCharAtlas()}}})(),se})()})})(De);function Fe(X,z){return ce(),ke("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor","aria-hidden":"true"},[Ee("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M4 6h16M4 12h16M4 18h7"})])}var We="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAB5UlEQVRYR+2XQU8TURSFz2lLCHa6QJopbExcmHSmaogbd8oPENeucW1YWxcCCbAnbA2/AfEHwM7EBYmGRxP2hj6MLphaDWWu6ZQhdBjo9IURSPq28+49X857b+69xDUvhvp/fzxwjo5z0wLeSZOJkN9D2dbGcHFvt60TAHi6MgnIdprC0dwEnuRttR0ANLRbFWBRIFsQbqYKQpki+JzAu7ytlgKAw7o7R+K9COYLJTWXJkBU6+YCeHXnM8inXW6I/GGWr/JFtR7n0qF2Ntv2XhaT2AFPu3JOxASgk2TZslU17rgvPIIQwLLV6VPt926El3sAYOZA3d1vW26V1Hi/1of7G9qdEeCDALMFW630eQcqgbBl7wQgJksEbPwqP8yP1nZI+H0BmAgmiUn8DJMkM9kzABg4cHsc8LTzqfMf2H1hctuDRuegPO37XMtk+TqsoIkdGBSjG+NA0KieLIJNAtV2NxvbEdWdBRDPTvcL7oG8b14NiVJUSOC/Kdi11TgATzvfAU6cjzGshsLj8tlkWWaaI2PqS1jZokKeroz3ikn8CkyfXq+4WABPu28BLP3PwQRA1bLVcmc0+1l+hFbmay/6K/2e8x9bd2vfuodTP/dShCNXKhRJRkpzKNP62DWcpinYK/c/z0ExP3rClK8AAAAASUVORK5CYII=",Ue="./static/png/arthas-bcfffb2d.png";const $e={class:"flex flex-col h-[100vh] w-[100vw] resize-none"},Ne={key:0,class:"navbar bg-base-100 md:flex-row flex-col w-[100vw]"},ze={class:"navbar-start"},je={class:"dropdown dropdown-start 2xl:hidden"},Ke={tabindex:"0",class:"btn btn-ghost btn-sm"},qe=xe('',1),Ge={href:"https://github.com/alibaba/arthas",target:"_blank",title:"",class:"mr-2 w-20"},Ve=["src"],Xe=xe('',1),Ye={class:"navbar-center"},Je={class:"input-group input-group-sm mr-2"},Ze=G("span",null,"IP",-1),Qe={class:"input-group input-group-sm mr-2"},et=G("span",null,"Port",-1),tt={key:0,class:"input-group input-group-sm mr-2"},it=G("span",null,"AgentId",-1),st={class:"navbar-end"},rt=["onClick"],nt=["href"],ot=G("div",{class:"w-full h-0 flex-auto bg-black overscroll-auto",id:"terminal-card"},[G("div",{id:"terminal",class:"w-full h-full"})],-1),at={key:1,title:"fullscreen",id:"fullSc",class:"fullSc"},ht=["src"],lt=Te({__name:"Console",props:{isTunnel:{type:Boolean,required:!1,default:!1},isNativeAgent:{type:Boolean,required:!1,default:!1}},setup(X){let z,ee=-1;const J=1e3,j=9999999,se=1,D=X.isTunnel?"7777":"8563",r=ae(""),h=ae(""),o=ae(!0),d=ae(!0),c=ae(""),_=ae(""),l=Ie(()=>X.isTunnel?`proxy/${c.value}/arthas-output/`:"/arthas-output/"),a=new Ae.exports.FitAddon,i=new De.exports.WebglAddon;let e=new Se.exports.Terminal({allowProposedApi:!0});Pe(()=>{var w,p,S,L;r.value=(w=n("ip"))!=null?w:window.location.hostname,h.value=(p=n("port"))!=null?p:D,X.isTunnel&&(c.value=(S=n("agentId"))!=null?S:""),X.isNativeAgent&&(_.value=(L=n("nativeAgentAddress"))!=null?L:"");let y=n("iframe");y&&y.trim()!=="false"&&(o.value=!1),C(!0),window.addEventListener("resize",function(){if(z!=null){const{cols:E,rows:A}=a.proposeDimensions();z.send(JSON.stringify({action:"resize",cols:E,rows:A})),a.fit()}})});function n(y){return new URLSearchParams(window.location.search).get(y)}function t(){var E;const y=`${r.value}:${h.value}`;if(X.isNativeAgent)return`ws://${y}/ws?nativeAgentAddress=${_.value}`;if(!X.isTunnel)return`ws://${y}/ws`;const w=(E=n("path"))!=null?E:"ws",p=n("targetServer"),L=`${location.protocol==="https:"?"wss://":"ws://"}${y}/${encodeURIComponent(w)}?method=connectArthas&id=${c.value}`;return p!=null?L+"&targetServer="+encodeURIComponent(p):L}function s(y){let w=t();z=new WebSocket(w),z.onerror=function(){z!=null||z.close(),z=void 0,!y&&alert("Connect error")},z.onopen=function(){var E;d.value=!0;let p=(E=n("scrollback"))!=null?E:"0";const{cols:S,rows:L}=f(p);e.onData(function(A){z==null||z.send(JSON.stringify({action:"read",data:A}))}),z.onmessage=function(A){if(A.type==="message"){var k=A.data;e.write(k)}},z==null||z.send(JSON.stringify({action:"resize",cols:S,rows:L})),ee=window.setInterval(function(){z!=null&&z.readyState===1&&z.send(JSON.stringify({action:"read",data:""}))},3e4)},z.onclose=function(p){ee!=-1&&(window.clearInterval(ee),ee=-1),p.code===2e3&&alert(p.reason)}}function f(y){let w=parseInt(y,10);return e=new Se.exports.Terminal({screenReaderMode:!1,convertEol:!0,allowProposedApi:!0,scrollback:v(w)?w:J}),e.loadAddon(a),e.open(document.getElementById("terminal")),e.loadAddon(i),a.fit(),{cols:e.cols,rows:e.rows}}function v(y){return y>=se&&y<=j}const u=y=>r.value.trim()===""||h.value.trim()===""?(alert("Ip or port can not be empty"),!1):X.isTunnel&&c.value==""?(y||alert("AgentId can not be empty"),!1):z?(alert("Already connected"),!1):!0;function C(y=!1){u(y)&&s(y)}function g(){try{z.close(),z.onmessage=null,z.onclose=null,z=void 0,e.dispose(),a.dispose(),i.dispose(),d.value=!1,alert("Connection was closed successfully!")}catch{alert("No connection, please start connect first.")}}function m(){var y=document.getElementById("terminal-card");b(y),y.onfullscreenchange=w=>{a.fit()}}function b(y){let w=y.requestFullscreen;if(w)w.call(y);else if(window.ActiveXObject){var p=new ActiveXObject("WScript.Shell");p!==null&&p.SendKeys("{F11}")}}return(y,w)=>(ce(),ue("div",$e,[o.value?(ce(),ue("nav",Ne,[G("div",ze,[G("div",je,[G("label",Ke,[Ee(fe(Fe),{class:"w-6 h-6"})]),qe]),G("a",Ge,[G("img",{src:fe(Ue),alt:"Arthas",title:"Welcome to Arthas web console"},null,8,Ve)]),Xe]),G("div",Ye,[G("div",{class:ye(["xl:flex-row form-control",{"xl:flex-row":X.isTunnel,"lg:flex-row":!X.isTunnel}])},[G("label",Je,[Ze,pe(G("input",{type:"text",placeholder:"please enter ip address",class:"input input-bordered input-sm","onUpdate:modelValue":w[0]||(w[0]=p=>r.value=p)},null,512),[[me,r.value]])]),G("label",Qe,[et,pe(G("input",{type:"text",placeholder:"please enter port",class:"input input-sm input-bordered","onUpdate:modelValue":w[1]||(w[1]=p=>h.value=p)},null,512),[[me,h.value]])]),X.isTunnel?(ce(),ue("label",tt,[it,pe(G("input",{type:"text",placeholder:"please enter AgentId",class:"input input-sm input-bordered","onUpdate:modelValue":w[2]||(w[2]=p=>c.value=p)},null,512),[[me,c.value]])])):Ce("v-if",!0)],2)]),G("div",st,[G("div",{class:ye(["btn-group 2xl:btn-group-horizontal btn-group-horizontal",{"md:btn-group-vertical":X.isTunnel}])},[G("button",{class:"btn btn-sm bg-secondary hover:bg-secondary-focus border-none text-secondary-content focus:bg-secondary-focus normal-case",onClick:w[3]||(w[3]=Le(p=>C(!0),["prevent"]))},"Connect"),G("button",{class:"btn btn-sm bg-secondary hover:bg-secondary-focus border-none text-secondary-content focus:bg-secondary-focus normal-case",onClick:Le(g,["prevent"])},"Disconnect",8,rt),G("a",{class:"btn btn-sm bg-secondary hover:bg-secondary-focus border-none text-secondary-content focus:bg-secondary-focus normal-case",href:fe(l),target:"_blank"},"Arthas Output",8,nt)],2)])])):Ce("v-if",!0),ot,d.value?(ce(),ue("div",at,[G("button",{id:"fullScBtn",onClick:m},[G("img",{src:fe(We)},null,8,ht)])])):Ce("v-if",!0)]))}});var ct=Be(lt,[["__file","D:/code/java/read/arthas/web-ui/arthasWebConsole/all/share/component/Console.vue"]]);const dt=Oe(He(ct,{isNativeAgent:!0}));dt.mount("#app");
diff --git a/cluster-management/native-agent-management-web/src/main/resources/native-agent/static/js/main-38ee3337.js b/cluster-management/native-agent-management-web/src/main/resources/native-agent/static/js/main-38ee3337.js
new file mode 100644
index 00000000000..01119b49848
--- /dev/null
+++ b/cluster-management/native-agent-management-web/src/main/resources/native-agent/static/js/main-38ee3337.js
@@ -0,0 +1,5 @@
+const Yr=function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))o(r);new MutationObserver(r=>{for(const s of r)if(s.type==="childList")for(const i of s.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&o(i)}).observe(document,{childList:!0,subtree:!0});function n(r){const s={};return r.integrity&&(s.integrity=r.integrity),r.referrerpolicy&&(s.referrerPolicy=r.referrerpolicy),r.crossorigin==="use-credentials"?s.credentials="include":r.crossorigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function o(r){if(r.ep)return;r.ep=!0;const s=n(r);fetch(r.href,s)}};Yr();function Me(e,t){const n=Object.create(null),o=e.split(",");for(let r=0;r!!n[r.toLowerCase()]:r=>!!n[r]}function Rn(e){if(M(e)){const t={};for(let n=0;n{if(n){const o=n.split(Zr);o.length>1&&(t[o[0].trim()]=o[1].trim())}}),t}function Sn(e){let t="";if(U(e))t=e;else if(M(e))for(let n=0;nU(e)?e:e==null?"":M(e)||H(e)&&(e.toString===Bo||!N(e.toString))?JSON.stringify(e,Do,2):String(e),Do=(e,t)=>t&&t.__v_isRef?Do(e,t.value):Ne(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[o,r])=>(n[`${o} =>`]=r,n),{})}:ko(t)?{[`Set(${t.size})`]:[...t.values()]}:H(t)&&!M(t)&&!Ko(t)?String(t):t,L=Object.freeze({}),Ze=Object.freeze([]),Ue=()=>{},Ho=()=>!1,is=/^on[^a-z]/,xt=e=>is.test(e),Dt=e=>e.startsWith("onUpdate:"),B=Object.assign,ls=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},cs=Object.prototype.hasOwnProperty,P=(e,t)=>cs.call(e,t),M=Array.isArray,Ne=e=>qt(e)==="[object Map]",ko=e=>qt(e)==="[object Set]",N=e=>typeof e=="function",U=e=>typeof e=="string",Nn=e=>typeof e=="symbol",H=e=>e!==null&&typeof e=="object",Uo=e=>H(e)&&N(e.then)&&N(e.catch),Bo=Object.prototype.toString,qt=e=>Bo.call(e),jn=e=>qt(e).slice(8,-1),Ko=e=>qt(e)==="[object Object]",Ln=e=>U(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,At=Me(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),fs=Me("bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text,memo"),zt=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},us=/-(\w)/g,Ge=zt(e=>e.replace(us,(t,n)=>n?n.toUpperCase():"")),as=/\B([A-Z])/g,Ce=zt(e=>e.replace(as,"-$1").toLowerCase()),Dn=zt(e=>e.charAt(0).toUpperCase()+e.slice(1)),Ae=zt(e=>e?`on${Dn(e)}`:""),Hn=(e,t)=>!Object.is(e,t),ze=(e,t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},kt=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let so;const Vo=()=>so||(so=typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:typeof window!="undefined"?window:typeof global!="undefined"?global:{});function bn(e,...t){}let ce;class ds{constructor(t=!1){this.detached=t,this.active=!0,this.effects=[],this.cleanups=[],this.parent=ce,!t&&ce&&(this.index=(ce.scopes||(ce.scopes=[])).push(this)-1)}run(t){if(this.active){const n=ce;try{return ce=this,t()}finally{ce=n}}else bn("cannot run an inactive effect scope.")}on(){ce=this}off(){ce=this.parent}stop(t){if(this.active){let n,o;for(n=0,o=this.effects.length;n{const t=new Set(e);return t.w=0,t.n=0,t},Wo=e=>(e.w&Ee)>0,qo=e=>(e.n&Ee)>0,hs=({deps:e})=>{if(e.length)for(let t=0;t{const{deps:t}=e;if(t.length){let n=0;for(let o=0;o{(d==="length"||d>=p)&&c.push(b)})}else switch(n!==void 0&&c.push(i.get(n)),t){case"add":M(e)?Ln(n)&&c.push(i.get("length")):(c.push(i.get(je)),Ne(e)&&c.push(i.get(wn)));break;case"delete":M(e)||(c.push(i.get(je)),Ne(e)&&c.push(i.get(wn)));break;case"set":Ne(e)&&c.push(i.get(je));break}const u={target:e,type:t,key:n,newValue:o,oldValue:r,oldTarget:s};if(c.length===1)c[0]&&xn(c[0],u);else{const p=[];for(const b of c)b&&p.push(...b);xn(kn(p),u)}}function xn(e,t){const n=M(e)?e:[...e];for(const o of n)o.computed&&lo(o,t);for(const o of n)o.computed||lo(o,t)}function lo(e,t){(e!==z||e.allowRecurse)&&(e.onTrigger&&e.onTrigger(B({effect:e},t)),e.scheduler?e.scheduler():e.run())}const gs=Me("__proto__,__v_isRef,__isVue"),Xo=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Nn)),bs=Jt(),_s=Jt(!1,!0),ys=Jt(!0),ws=Jt(!0,!0),co=xs();function xs(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const o=F(this);for(let s=0,i=this.length;s{e[t]=function(...n){et();const o=F(this)[t].apply(this,n);return tt(),o}}),e}function Jt(e=!1,t=!1){return function(o,r,s){if(r==="__v_isReactive")return!e;if(r==="__v_isReadonly")return e;if(r==="__v_isShallow")return t;if(r==="__v_raw"&&s===(e?t?rr:or:t?nr:tr).get(o))return o;const i=M(o);if(!e&&i&&P(co,r))return Reflect.get(co,r,s);const c=Reflect.get(o,r,s);return(Nn(r)?Xo.has(r):gs(r))||(e||Q(o,"get",r),t)?c:J(c)?i&&Ln(r)?c:c.value:H(c)?e?ir(c):sr(c):c}}const vs=Zo(),Os=Zo(!0);function Zo(e=!1){return function(n,o,r,s){let i=n[o];if($e(i)&&J(i)&&!J(r))return!1;if(!e&&(!lr(r)&&!$e(r)&&(i=F(i),r=F(r)),!M(n)&&J(i)&&!J(r)))return i.value=r,!0;const c=M(n)&&Ln(o)?Number(o)e,Yt=e=>Reflect.getPrototypeOf(e);function $t(e,t,n=!1,o=!1){e=e.__v_raw;const r=F(e),s=F(t);n||(t!==s&&Q(r,"get",t),Q(r,"get",s));const{has:i}=Yt(r),c=o?Un:n?Bn:gt;if(i.call(r,t))return c(e.get(t));if(i.call(r,s))return c(e.get(s));e!==r&&e.get(t)}function It(e,t=!1){const n=this.__v_raw,o=F(n),r=F(e);return t||(e!==r&&Q(o,"has",e),Q(o,"has",r)),e===r?n.has(e):n.has(e)||n.has(r)}function Mt(e,t=!1){return e=e.__v_raw,!t&&Q(F(e),"iterate",je),Reflect.get(e,"size",e)}function fo(e){e=F(e);const t=F(this);return Yt(t).has.call(t,e)||(t.add(e),be(t,"add",e,e)),this}function uo(e,t){t=F(t);const n=F(this),{has:o,get:r}=Yt(n);let s=o.call(n,e);s?er(n,o,e):(e=F(e),s=o.call(n,e));const i=r.call(n,e);return n.set(e,t),s?Hn(t,i)&&be(n,"set",e,t,i):be(n,"add",e,t),this}function ao(e){const t=F(this),{has:n,get:o}=Yt(t);let r=n.call(t,e);r?er(t,n,e):(e=F(e),r=n.call(t,e));const s=o?o.call(t,e):void 0,i=t.delete(e);return r&&be(t,"delete",e,void 0,s),i}function po(){const e=F(this),t=e.size!==0,n=Ne(e)?new Map(e):new Set(e),o=e.clear();return t&&be(e,"clear",void 0,void 0,n),o}function Ft(e,t){return function(o,r){const s=this,i=s.__v_raw,c=F(i),u=t?Un:e?Bn:gt;return!e&&Q(c,"iterate",je),i.forEach((p,b)=>o.call(r,u(p),u(b),s))}}function Pt(e,t,n){return function(...o){const r=this.__v_raw,s=F(r),i=Ne(s),c=e==="entries"||e===Symbol.iterator&&i,u=e==="keys"&&i,p=r[e](...o),b=n?Un:t?Bn:gt;return!t&&Q(s,"iterate",u?wn:je),{next(){const{value:d,done:x}=p.next();return x?{value:d,done:x}:{value:c?[b(d[0]),b(d[1])]:b(d),done:x}},[Symbol.iterator](){return this}}}}function we(e){return function(...t){{const n=t[0]?`on key "${t[0]}" `:""}return e==="delete"?!1:this}}function Ms(){const e={get(s){return $t(this,s)},get size(){return Mt(this)},has:It,add:fo,set:uo,delete:ao,clear:po,forEach:Ft(!1,!1)},t={get(s){return $t(this,s,!1,!0)},get size(){return Mt(this)},has:It,add:fo,set:uo,delete:ao,clear:po,forEach:Ft(!1,!0)},n={get(s){return $t(this,s,!0)},get size(){return Mt(this,!0)},has(s){return It.call(this,s,!0)},add:we("add"),set:we("set"),delete:we("delete"),clear:we("clear"),forEach:Ft(!0,!1)},o={get(s){return $t(this,s,!0,!0)},get size(){return Mt(this,!0)},has(s){return It.call(this,s,!0)},add:we("add"),set:we("set"),delete:we("delete"),clear:we("clear"),forEach:Ft(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(s=>{e[s]=Pt(s,!1,!1),n[s]=Pt(s,!0,!1),t[s]=Pt(s,!1,!0),o[s]=Pt(s,!0,!0)}),[e,n,t,o]}const[Fs,Ps,As,Rs]=Ms();function Xt(e,t){const n=t?e?Rs:As:e?Ps:Fs;return(o,r,s)=>r==="__v_isReactive"?!e:r==="__v_isReadonly"?e:r==="__v_raw"?o:Reflect.get(P(n,r)&&r in o?n:o,r,s)}const Ss={get:Xt(!1,!1)},Ns={get:Xt(!1,!0)},js={get:Xt(!0,!1)},Ls={get:Xt(!0,!0)};function er(e,t,n){const o=F(n);if(o!==n&&t.call(e,o)){const r=jn(e)}}const tr=new WeakMap,nr=new WeakMap,or=new WeakMap,rr=new WeakMap;function Ds(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Hs(e){return e.__v_skip||!Object.isExtensible(e)?0:Ds(jn(e))}function sr(e){return $e(e)?e:Zt(e,!1,Qo,Ss,tr)}function ks(e){return Zt(e,!1,$s,Ns,nr)}function ir(e){return Zt(e,!0,Go,js,or)}function Xe(e){return Zt(e,!0,Is,Ls,rr)}function Zt(e,t,n,o,r){if(!H(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const s=r.get(e);if(s)return s;const i=Hs(e);if(i===0)return e;const c=new Proxy(e,i===2?o:n);return r.set(e,c),c}function Qt(e){return $e(e)?Qt(e.__v_raw):!!(e&&e.__v_isReactive)}function $e(e){return!!(e&&e.__v_isReadonly)}function lr(e){return!!(e&&e.__v_isShallow)}function vn(e){return Qt(e)||$e(e)}function F(e){const t=e&&e.__v_raw;return t?F(t):e}function cr(e){return Ht(e,"__v_skip",!0),e}const gt=e=>H(e)?sr(e):e,Bn=e=>H(e)?ir(e):e;function fr(e){Te&&z&&(e=F(e),Yo(e.dep||(e.dep=kn()),{target:e,type:"get",key:"value"}))}function ur(e,t){e=F(e),e.dep&&xn(e.dep,{target:e,type:"set",key:"value",newValue:t})}function J(e){return!!(e&&e.__v_isRef===!0)}function zl(e){return Us(e,!1)}function Us(e,t){return J(e)?e:new Bs(e,t)}class Bs{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:F(t),this._value=n?t:gt(t)}get value(){return fr(this),this._value}set value(t){const n=this.__v_isShallow||lr(t)||$e(t);t=n?t:F(t),Hn(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:gt(t),ur(this,t))}}function Ks(e){return J(e)?e.value:e}const Vs={get:(e,t,n)=>Ks(Reflect.get(e,t,n)),set:(e,t,n,o)=>{const r=e[t];return J(r)&&!J(n)?(r.value=n,!0):Reflect.set(e,t,n,o)}};function ar(e){return Qt(e)?e:new Proxy(e,Vs)}var dr;class Ws{constructor(t,n,o,r){this._setter=n,this.dep=void 0,this.__v_isRef=!0,this[dr]=!1,this._dirty=!0,this.effect=new zo(t,()=>{this._dirty||(this._dirty=!0,ur(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!r,this.__v_isReadonly=o}get value(){const t=F(this);return fr(t),(t._dirty||!t._cacheable)&&(t._dirty=!1,t._value=t.effect.run()),t._value}set value(t){this._setter(t)}}dr="__v_isReadonly";function qs(e,t,n=!1){let o,r;const s=N(e);s?(o=e,r=()=>{}):(o=e.get,r=e.set);const i=new Ws(o,r,s||!r,n);return t&&!n&&(i.effect.onTrack=t.onTrack,i.effect.onTrigger=t.onTrigger),i}const Le=[];function Rt(e){Le.push(e)}function St(){Le.pop()}function O(e,...t){et();const n=Le.length?Le[Le.length-1].component:null,o=n&&n.appContext.config.warnHandler,r=zs();if(o)nt(o,n,11,[e+t.join(""),n&&n.proxy,r.map(({vnode:s})=>`at <${on(n,s.type)}>`).join(`
+`),r]);else{const s=[`[Vue warn]: ${e}`,...t];r.length&&s.push(`
+`,...Js(r))}tt()}function zs(){let e=Le[Le.length-1];if(!e)return[];const t=[];for(;e;){const n=t[0];n&&n.vnode===e?n.recurseCount++:t.push({vnode:e,recurseCount:0});const o=e.component&&e.component.parent;e=o&&o.vnode}return t}function Js(e){const t=[];return e.forEach((n,o)=>{t.push(...o===0?[]:[`
+`],...Ys(n))}),t}function Ys({vnode:e,recurseCount:t}){const n=t>0?`... (${t} recursive calls)`:"",o=e.component?e.component.parent==null:!1,r=` at <${on(e.component,e.type,o)}`,s=">"+n;return e.props?[r,...Xs(e.props),s]:[r+s]}function Xs(e){const t=[],n=Object.keys(e);return n.slice(0,3).forEach(o=>{t.push(...pr(o,e[o]))}),n.length>3&&t.push(" ..."),t}function pr(e,t,n){return U(t)?(t=JSON.stringify(t),n?t:[`${e}=${t}`]):typeof t=="number"||typeof t=="boolean"||t==null?n?t:[`${e}=${t}`]:J(t)?(t=pr(e,F(t.value),!0),n?t:[`${e}=Ref<`,t,">"]):N(t)?[`${e}=fn${t.name?`<${t.name}>`:""}`]:(t=F(t),n?t:[`${e}=`,t])}const Kn={sp:"serverPrefetch hook",bc:"beforeCreate hook",c:"created hook",bm:"beforeMount hook",m:"mounted hook",bu:"beforeUpdate hook",u:"updated",bum:"beforeUnmount hook",um:"unmounted hook",a:"activated hook",da:"deactivated hook",ec:"errorCaptured hook",rtc:"renderTracked hook",rtg:"renderTriggered hook",[0]:"setup function",[1]:"render function",[2]:"watcher getter",[3]:"watcher callback",[4]:"watcher cleanup function",[5]:"native event handler",[6]:"component event handler",[7]:"vnode hook",[8]:"directive hook",[9]:"transition hook",[10]:"app errorHandler",[11]:"app warnHandler",[12]:"ref function",[13]:"async component loader",[14]:"scheduler flush. This is likely a Vue internals bug. Please open an issue at https://new-issue.vuejs.org/?repo=vuejs/core"};function nt(e,t,n,o){let r;try{r=o?e(...o):e()}catch(s){Gt(s,t,n)}return r}function Be(e,t,n,o){if(N(e)){const s=nt(e,t,n,o);return s&&Uo(s)&&s.catch(i=>{Gt(i,t,n)}),s}const r=[];for(let s=0;s>>1;_t(V[o])ae&&V.splice(t,1)}function gr(e){M(e)?Qe.push(...e):(!fe||!fe.includes(e,e.allowRecurse?xe+1:xe))&&Qe.push(e),mr()}function ho(e,t=bt?ae+1:0){for(e=e||new Map;t_t(n)-_t(o)),xe=0;xee.id==null?1/0:e.id,ni=(e,t)=>{const n=_t(e)-_t(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function _r(e){On=!1,bt=!0,e=e||new Map,V.sort(ni);const t=n=>qn(e,n);try{for(ae=0;aeQs){const o=t.ownerInstance,r=o&&Ur(o.type);return O(`Maximum recursive updates exceeded${r?` in component <${r}>`:""}. This means you have a reactive effect that is mutating its own dependencies and thus recursively triggering itself. Possible sources include component template, render function, updated hook or watcher source function.`),!0}else e.set(t,n+1)}}let De=!1;const Je=new Set;Vo().__VUE_HMR_RUNTIME__={createRecord:an(yr),rerender:an(si),reload:an(ii)};const Ke=new Map;function oi(e){const t=e.type.__hmrId;let n=Ke.get(t);n||(yr(t,e.type),n=Ke.get(t)),n.instances.add(e)}function ri(e){Ke.get(e.type.__hmrId).instances.delete(e)}function yr(e,t){return Ke.has(e)?!1:(Ke.set(e,{initialDef:dt(t),instances:new Set}),!0)}function dt(e){return Br(e)?e.__vccOpts:e}function si(e,t){const n=Ke.get(e);!n||(n.initialDef.render=t,[...n.instances].forEach(o=>{t&&(o.render=t,dt(o.type).render=t),o.renderCache=[],De=!0,o.update(),De=!1}))}function ii(e,t){const n=Ke.get(e);if(!n)return;t=dt(t),mo(n.initialDef,t);const o=[...n.instances];for(const r of o){const s=dt(r.type);Je.has(s)||(s!==n.initialDef&&mo(s,t),Je.add(s)),r.appContext.optionsCache.delete(r.type),r.ceReload?(Je.add(s),r.ceReload(t.styles),Je.delete(s)):r.parent?Wn(r.parent.update):r.appContext.reload?r.appContext.reload():typeof window!="undefined"&&window.location.reload()}gr(()=>{for(const r of o)Je.delete(dt(r.type))})}function mo(e,t){B(e,t);for(const n in e)n!=="__file"&&!(n in t)&&delete e[n]}function an(e){return(t,n)=>{try{return e(t,n)}catch{}}}let de,ut=[],Tn=!1;function vt(e,...t){de?de.emit(e,...t):Tn||ut.push({event:e,args:t})}function wr(e,t){var n,o;de=e,de?(de.enabled=!0,ut.forEach(({event:r,args:s})=>de.emit(r,...s)),ut=[]):typeof window!="undefined"&&window.HTMLElement&&!(!((o=(n=window.navigator)===null||n===void 0?void 0:n.userAgent)===null||o===void 0)&&o.includes("jsdom"))?((t.__VUE_DEVTOOLS_HOOK_REPLAY__=t.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push(s=>{wr(s,t)}),setTimeout(()=>{de||(t.__VUE_DEVTOOLS_HOOK_REPLAY__=null,Tn=!0,ut=[])},3e3)):(Tn=!0,ut=[])}function li(e,t){vt("app:init",e,t,{Fragment:ue,Text:Ot,Comment:Z,Static:pt})}function ci(e){vt("app:unmount",e)}const fi=zn("component:added"),xr=zn("component:updated"),ui=zn("component:removed"),ai=e=>{de&&typeof de.cleanupBuffer=="function"&&!de.cleanupBuffer(e)&&ui(e)};function zn(e){return t=>{vt(e,t.appContext.app,t.uid,t.parent?t.parent.uid:void 0,t)}}const di=vr("perf:start"),pi=vr("perf:end");function vr(e){return(t,n,o)=>{vt(e,t.appContext.app,t.uid,t,n,o)}}function hi(e,t,n){vt("component:emit",e.appContext.app,e,t,n)}function mi(e,t,...n){if(e.isUnmounted)return;const o=e.vnode.props||L;{const{emitsOptions:b,propsOptions:[d]}=e;if(b)if(!(t in b))(!d||!(Ae(t)in d))&&O(`Component emitted event "${t}" but it is neither declared in the emits option nor as an "${Ae(t)}" prop.`);else{const x=b[t];N(x)&&(x(...n)||O(`Invalid event arguments: event validation failed for event "${t}".`))}}let r=n;const s=t.startsWith("update:"),i=s&&t.slice(7);if(i&&i in o){const b=`${i==="modelValue"?"model":i}Modifiers`,{number:d,trim:x}=o[b]||L;x&&(r=n.map(I=>U(I)?I.trim():I)),d&&(r=n.map(kt))}hi(e,t,r);{const b=t.toLowerCase();b!==t&&o[Ae(b)]&&O(`Event "${b}" is emitted in component ${on(e,e.type)} but the handler is registered for "${t}". Note that HTML attributes are case-insensitive and you cannot use v-on to listen to camelCase events when using in-DOM templates. You should probably use "${Ce(t)}" instead of "${t}".`)}let c,u=o[c=Ae(t)]||o[c=Ae(Ge(t))];!u&&s&&(u=o[c=Ae(Ce(t))]),u&&Be(u,e,6,r);const p=o[c+"Once"];if(p){if(!e.emitted)e.emitted={};else if(e.emitted[c])return;e.emitted[c]=!0,Be(p,e,6,r)}}function gi(e,t,n=!1){const o=t.emitsCache,r=o.get(e);if(r!==void 0)return r;const s=e.emits;let i={};return!s&&!!1?(H(e)&&o.set(e,null),null):(M(s)?s.forEach(u=>i[u]=null):B(i,s),H(e)&&o.set(e,i),i)}function en(e,t){return!e||!xt(t)?!1:(t=t.slice(2).replace(/Once$/,""),P(e,t[0].toLowerCase()+t.slice(1))||P(e,Ce(t))||P(e,t))}let ee=null,Or=null;function Ut(e){const t=ee;return ee=e,Or=e&&e.type.__scopeId||null,t}function bi(e,t=ee,n){if(!t||e._n)return e;const o=(...r)=>{o._d&&Co(-1);const s=Ut(t);let i;try{i=e(...r)}finally{Ut(s),o._d&&Co(1)}return xr(t),i};return o._n=!0,o._c=!0,o._d=!0,o}let Cn=!1;function Bt(){Cn=!0}function dn(e){const{type:t,vnode:n,proxy:o,withProxy:r,props:s,propsOptions:[i],slots:c,attrs:u,emit:p,render:b,renderCache:d,data:x,setupState:I,ctx:D,inheritAttrs:R}=e;let te,se;const rn=Ut(e);Cn=!1;try{if(n.shapeFlag&4){const Y=r||o;te=oe(b.call(Y,Y,d,s,I,x,D)),se=u}else{const Y=t;u===s&&Bt(),te=oe(Y.length>1?Y(s,{get attrs(){return Bt(),u},slots:c,emit:p}):Y(s,null)),se=t.props?u:yi(u)}}catch(Y){ht.length=0,Gt(Y,e,1),te=X(Z)}let K=te,ot;if(te.patchFlag>0&&te.patchFlag&2048&&([K,ot]=_i(te)),se&&R!==!1){const Y=Object.keys(se),{shapeFlag:sn}=K;if(Y.length){if(sn&7)i&&Y.some(Dt)&&(se=wi(se,i)),K=Ie(K,se);else if(!Cn&&K.type!==Z){const Tt=Object.keys(u),Ve=[],pe=[];for(let rt=0,st=Tt.length;rt renders non-element root node that cannot be animated."),K.transition=n.transition),ot?ot(K):te=K,Ut(rn),te}const _i=e=>{const t=e.children,n=e.dynamicChildren,o=Tr(t);if(!o)return[e,void 0];const r=t.indexOf(o),s=n?n.indexOf(o):-1,i=c=>{t[r]=c,n&&(s>-1?n[s]=c:c.patchFlag>0&&(e.dynamicChildren=[...n,c]))};return[oe(o),i]};function Tr(e){let t;for(let n=0;n{let t;for(const n in e)(n==="class"||n==="style"||xt(n))&&((t||(t={}))[n]=e[n]);return t},wi=(e,t)=>{const n={};for(const o in e)(!Dt(o)||!(o.slice(9)in t))&&(n[o]=e[o]);return n},go=e=>e.shapeFlag&7||e.type===Z;function xi(e,t,n){const{props:o,children:r,component:s}=e,{props:i,children:c,patchFlag:u}=t,p=s.emitsOptions;if((r||c)&&De||t.dirs||t.transition)return!0;if(n&&u>=0){if(u&1024)return!0;if(u&16)return o?bo(o,i,p):!!i;if(u&8){const b=t.dynamicProps;for(let d=0;de.__isSuspense;function Ti(e,t){t&&t.pendingBranch?M(e)?t.effects.push(...e):t.effects.push(e):gr(e)}function at(e,t){if(!H(e)||e.__v_skip||(t=t||new Set,t.has(e)))return e;if(t.add(e),J(e))at(e.value,t);else if(M(e))for(let n=0;n{at(n,t)});else if(Ko(e))for(const n in e)at(e[n],t);return e}function Jl(e){return N(e)?{setup:e,name:e.name}:e}const Nt=e=>!!e.type.__asyncLoader,Cr=e=>e.type.__isKeepAlive;function Ci(e,t,n=ke,o=!1){if(n){const r=n[e]||(n[e]=[]),s=t.__weh||(t.__weh=(...i)=>{if(n.isUnmounted)return;et(),Xn(n);const c=Be(t,n,e,i);return mt(),tt(),c});return o?r.unshift(s):r.push(s),s}else{const r=Ae(Kn[e].replace(/ hook$/,""));O(`${r} is called when there is no active component instance to be associated with. Lifecycle injection APIs can only be used during execution of setup(). If you are using async setup(), make sure to register lifecycle hooks before the first await statement.`)}}const Ei=e=>(t,n=ke)=>(!Wt||e==="sp")&&Ci(e,(...o)=>t(...o),n),Yl=Ei("m");function Er(e){fs(e)&&O("Do not use built-in directive ids as custom directive id: "+e)}function Xl(e,t){const n=ee;if(n===null)return O("withDirectives can only be used inside render functions."),e;const o=nn(n)||n.proxy,r=e.dirs||(e.dirs=[]);for(let s=0;st(i,c,void 0,s&&s[c]));else{const i=Object.keys(e);r=new Array(i.length);for(let c=0,u=i.length;ce?Hr(e)?nn(e)||e.proxy:En(e.parent):null,He=B(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>Xe(e.props),$attrs:e=>Xe(e.attrs),$slots:e=>Xe(e.slots),$refs:e=>Xe(e.refs),$parent:e=>En(e.parent),$root:e=>En(e.root),$emit:e=>e.emit,$options:e=>e.type,$forceUpdate:e=>e.f||(e.f=()=>Wn(e.update)),$nextTick:e=>e.n||(e.n=Gs.bind(e.proxy)),$watch:e=>Ue}),$r=e=>e==="_"||e==="$",pn=(e,t)=>e!==L&&!e.__isScriptSetup&&P(e,t),Ir={get({_:e},t){const{ctx:n,setupState:o,data:r,props:s,accessCache:i,type:c,appContext:u}=e;if(t==="__isVue")return!0;let p;if(t[0]!=="$"){const I=i[t];if(I!==void 0)switch(I){case 1:return o[t];case 2:return r[t];case 4:return n[t];case 3:return s[t]}else{if(pn(o,t))return i[t]=1,o[t];if(r!==L&&P(r,t))return i[t]=2,r[t];if((p=e.propsOptions[0])&&P(p,t))return i[t]=3,s[t];if(n!==L&&P(n,t))return i[t]=4,n[t];i[t]=0}}const b=He[t];let d,x;if(b)return t==="$attrs"&&(Q(e,"get",t),Bt()),b(e);if((d=c.__cssModules)&&(d=d[t]))return d;if(n!==L&&P(n,t))return i[t]=4,n[t];if(x=u.config.globalProperties,P(x,t))return x[t];ee&&(!U(t)||t.indexOf("__v")!==0)&&(r!==L&&$r(t[0])&&P(r,t)?O(`Property ${JSON.stringify(t)} must be accessed via $data because it starts with a reserved character ("$" or "_") and is not proxied on the render context.`):e===ee&&O(`Property ${JSON.stringify(t)} was accessed during render but is not defined on instance.`))},set({_:e},t,n){const{data:o,setupState:r,ctx:s}=e;return pn(r,t)?(r[t]=n,!0):r.__isScriptSetup&&P(r,t)?(O(`Cannot mutate
+