@opensumi/cli-engine 3.1.2-next-1718952012.0 → 3.1.2-next-1718960862.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/browser/browser.js +3 -3
- package/package.json +10 -10
package/lib/browser/browser.js
CHANGED
|
@@ -27642,7 +27642,7 @@ a {
|
|
|
27642
27642
|
color: var(--textLink-foreground);
|
|
27643
27643
|
}
|
|
27644
27644
|
`},73136:(L,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getMentionBoxStyle=void 0;const t=20,n=({maxRows:a=10,minRows:o=2})=>({control:{fontSize:12},highlighter:{overflow:"hidden"},input:{margin:0},"&multiLine":{control:{border:"none"},highlighter:{padding:9},input:{boxSizing:"content-box",padding:"8px 0",lineHeight:`${t}px`,minHeight:`${t*o}px`,maxHeight:`${t*a}px`,outline:0,border:0,overflowY:"auto"}},suggestions:{dataA:"aaa",list:{backgroundColor:"var(--kt-selectDropdown-background)",fontSize:12,maxHeight:200,overflowY:"auto"},item:{backgroundColor:"var(--kt-selectDropdown-background)",color:"var(--kt-selectDropdown-foreground)",padding:"4px 16px","&focused":{backgroundColor:"var(--kt-selectDropdown-selectionBackground)"}}}});e.getMentionBoxStyle=n},5167:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.COMMENT_TREE_NODE_HEIGHT=e.CommentNodeRendered=void 0;const n=t(85608),a=n.__importDefault(t(53373)),o=n.__importStar(t(14041)),I=t(41869),g=t(53711),u=n.__importDefault(t(65887)),G=({item:p,defaultLeftPadding:b=8,leftPadding:m=8,decorations:d,onClick:s,onTwistierClick:l})=>{const r=(0,I.useDesignStyles)(u.default.expansion_toggle,"expansion_toggle"),c=(0,o.useCallback)(A=>{p.onSelect?p.onSelect(p):s(A,p)},[s]),h=(0,o.useCallback)(A=>{l(A,p)},[l]),v=`${b+(p.depth||0)*(m||0)+(g.CommentContentNode.is(p)?16:g.CommentFileNode.is(p)?0:28)}px`,f={height:e.COMMENT_TREE_NODE_HEIGHT,lineHeight:`${e.COMMENT_TREE_NODE_HEIGHT}px`,paddingLeft:v},W=(0,o.useCallback)(A=>{if(g.CommentContentNode.is(A)||g.CommentFileNode.is(A))return o.default.createElement("div",{className:(0,a.default)(u.default.icon,A.icon),style:{height:e.COMMENT_TREE_NODE_HEIGHT,lineHeight:`${e.COMMENT_TREE_NODE_HEIGHT}px`}})},[]),N=(0,o.useCallback)(A=>g.CommentContentNode.is(A)?o.default.createElement("div",{className:(0,a.default)(u.default.segment,u.default.displayname)},A.renderedLabel?A.renderedLabel:o.default.createElement(o.default.Fragment,null,A.comment,o.default.createElement("span",{className:u.default.separator},"\xB7"),A.author.name)):o.default.createElement("div",{className:(0,a.default)(u.default.segment,u.default.displayname)},A.renderedLabel),[]),Z=(0,o.useCallback)(A=>o.default.createElement("div",{className:(0,a.default)(u.default.segment_grow,u.default.description)},A.renderedDescription),[]),y=(0,o.useCallback)(A=>o.default.createElement("div",{onClick:h,className:(0,a.default)(u.default.segment,r,(0,I.getIcon)("arrow-right"),{[`${u.default.mod_collapsed}`]:!A.expanded})}),[h]),E=(0,o.useCallback)(A=>{if(g.CommentFileNode.is(A)||A?.isAllowToggle)return y(A)},[]),R=(0,o.useCallback)(()=>p.tooltip,[p]);return o.default.createElement("div",{key:p.id,onClick:c,title:R(),className:(0,a.default)(u.default.comment_node,d?d.classlist:null),style:f,"data-id":p.id},o.default.createElement("div",{className:u.default.content},E(p),W(p),o.default.createElement("div",{className:u.default.overflow_wrap},N(p),Z(p))))};e.CommentNodeRendered=G,e.COMMENT_TREE_NODE_HEIGHT=22},47842:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CommentModelService=e.CommentTreeModel=void 0;const n=t(85608),a=t(76003),o=t(97267),I=t(41869),g=t(23418),u=t(69635),G=t(53711),p=n.__importDefault(t(65887));let b=class extends o.TreeModel{constructor(s){super(),this.init(s)}};b=n.__decorate([(0,a.Injectable)({multiple:!0}),n.__param(0,(0,a.Optional)()),n.__metadata("design:paramtypes",[G.CommentRoot])],b),e.CommentTreeModel=b;let m=class extends I.Disposable{constructor(){super(),this.selectedDecoration=new o.Decoration(p.default.mod_selected),this.focusedDecoration=new o.Decoration(p.default.mod_focused),this._selectedNodes=[],this.onDidUpdateTreeModelEmitter=new I.Emitter,this.disposableCollection=new I.DisposableCollection,this.applyFocusedDecoration=(s,l=!0)=>{var r;if(s){for(const c of this._selectedNodes)this.selectedDecoration.removeTarget(c);this.focusedNode&&this.focusedDecoration.removeTarget(this.focusedNode),this.selectedDecoration.addTarget(s),this.focusedDecoration.addTarget(s),this._focusedNode=s,this._selectedNodes=[s],l&&((r=this.treeModel)===null||r===void 0||r.dispatchChange())}},this.removeFocusedDecoration=()=>{var s;this.focusedNode&&(this.focusedDecoration.removeTarget(this.focusedNode),(s=this.treeModel)===null||s===void 0||s.dispatchChange()),this._focusedNode=null},this.handleTreeBlur=()=>{this.removeFocusedDecoration()},this.handleTwistierClick=async(s,l)=>{(G.CommentFileNode.is(l)||l?.isAllowToggle)&&this.toggleDirectory(l)},this.handleItemClick=async(s,l)=>{this.applyFocusedDecoration(l),(G.CommentFileNode.is(l)||l?.isAllowToggle)&&this.toggleDirectory(l);let r,c;l instanceof G.CommentReplyNode||l instanceof G.CommentContentNode?(r=l.thread.uri,c=l.thread.range):r=l.resource,this.editorService.open(r,{range:c}).then(()=>{l.thread&&l.thread.show()})},this.toggleDirectory=s=>{s.expanded?this.commentTreeHandle.collapseNode(s):this.commentTreeHandle.expandNode(s)},this._whenReady=this.initTreeModel()}get onDidUpdateTreeModel(){return this.onDidUpdateTreeModelEmitter.event}get whenReady(){return this._whenReady}get commentTreeHandle(){return this._commentTreeHandle}get decorations(){return this._decorations}get treeModel(){return this._treeModel}get focusedNode(){return this._focusedNode}get selectedNodes(){return this._selectedNodes}async initTreeModel(){const s=await this.commentService.resolveChildren();if(!s)return;const l=s[0];l&&(this._treeModel=this.injector.get(b,[l]),await this._treeModel.ensureReady,this.initDecorations(l),this.disposables.push(I.Event.any(this.commentService.onThreadsCommentChange,this.commentService.onThreadsChanged,this.commentService.onThreadsCreated)(()=>{this.refresh()})),this.onDidUpdateTreeModelEmitter.fire(this._treeModel))}initDecorations(s){return this._decorations=new o.DecorationsManager(s),this._decorations.addDecoration(this.selectedDecoration),this._decorations.addDecoration(this.focusedDecoration),this._decorations}handleTreeHandler(s){this._commentTreeHandle=s}async refresh(){await this.whenReady,(0,I.runWhenIdle)(()=>{this.treeModel.root.refresh()})}async collapsedAll(){return await this.whenReady,this.treeModel.root.collapsedAll()}dispose(){this.disposableCollection.dispose()}};n.__decorate([(0,a.Autowired)(u.ICommentsService),n.__metadata("design:type",Object)],m.prototype,"commentService",void 0),n.__decorate([(0,a.Autowired)(a.INJECTOR_TOKEN),n.__metadata("design:type",a.Injector)],m.prototype,"injector",void 0),n.__decorate([(0,a.Autowired)(g.WorkbenchEditorService),n.__metadata("design:type",g.WorkbenchEditorService)],m.prototype,"editorService",void 0),m=n.__decorate([(0,a.Injectable)(),n.__metadata("design:paramtypes",[])],m),e.CommentModelService=m},53711:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CommentReplyNode=e.CommentContentNode=e.CommentFileNode=e.CommentRoot=void 0;const n=t(97267);class a extends n.CompositeTreeNode{static is(G){return!!G&&!G.parent}constructor(G){super(G,void 0)}get expanded(){return!0}}e.CommentRoot=a;class o extends n.CompositeTreeNode{static is(G){return n.CompositeTreeNode.is(G)&&"threads"in G}constructor(G,p,b="",m,d,s,l){super(G,l),this.threads=p,this.tooltip=m,this.icon=d,this.resource=s,this.isExpanded=!0,this._renderedLabel=this.resource.displayName,this._renderedDescription=b}set label(G){this._renderedLabel=G}set description(G){this._renderedDescription=G}get renderedLabel(){return this._renderedLabel}get renderedDescription(){return this._renderedDescription}set onSelect(G){this._onSelectHandler=G}get onSelect(){return this._onSelectHandler}}e.CommentFileNode=o;class I extends n.CompositeTreeNode{static is(G){return n.CompositeTreeNode.is(G)&&"author"in G}constructor(G,p,b,m="",d,s,l,r){super(G,r),this.thread=p,this.comment=b,this.icon=d,this.author=s,this.resource=l,this._renderedDescription=m,this.isExpanded=!0,this._isAllowToggle=!1}get isAllowToggle(){return this._isAllowToggle}setIsAllowToggle(G){this._isAllowToggle=G}set label(G){this._renderedLabel=G}set description(G){this._renderedDescription=G}get renderedLabel(){return this._renderedLabel}get renderedDescription(){return this._renderedDescription}set onSelect(G){this._onSelectHandler=G}get onSelect(){return this._onSelectHandler}}e.CommentContentNode=I;class g extends n.TreeNode{constructor(G,p,b,m="",d,s,l){super(G,l),this.thread=p,this.icon=d,this.resource=s,this._renderedLabel=b,this._renderedDescription=m}set label(G){this._renderedLabel=G}set description(G){this._renderedDescription=G}get renderedLabel(){return this._renderedLabel}get renderedDescription(){return this._renderedDescription}set onSelect(G){this._onSelectHandler=G}get onSelect(){return this._onSelectHandler}}e.CommentReplyNode=g},69635:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CommentReactionClick=e.CommentPanelCollapse=e.SwitchCommandReaction=e.CloseThreadId=e.CollapseId=e.ICommentsService=e.CommentsContribution=e.ICommentsFeatureRegistry=e.CommentPanelId=e.CommentGutterType=e.CommentThreadCollapsibleState=e.CommentMode=void 0;const n=t(41869);var a;(function(G){G[G.Editor=0]="Editor",G[G.Preview=1]="Preview"})(a=e.CommentMode||(e.CommentMode={}));var o;(function(G){G[G.Collapsed=0]="Collapsed",G[G.Expanded=1]="Expanded"})(o=e.CommentThreadCollapsibleState||(e.CommentThreadCollapsibleState={}));var I;(function(G){G.Thread="thread",G.Empty="empty"})(I=e.CommentGutterType||(e.CommentGutterType={})),e.CommentPanelId="CommentPanel",e.ICommentsFeatureRegistry=Symbol("ICommentsFeatureRegistry"),e.CommentsContribution=Symbol("CommentsContribution"),e.ICommentsService=Symbol("ICommentsService"),e.CollapseId="comments.panel.action.collapse",e.CloseThreadId="comments.thread.action.close",e.SwitchCommandReaction="comments.comment.action.switchCommand";class g extends n.BasicEvent{}e.CommentPanelCollapse=g;class u extends n.BasicEvent{}e.CommentReactionClick=u},86077:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),t(85608).__exportStar(t(69635),e)},79383:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Badge=void 0;const n=t(85608),a=n.__importDefault(t(53373)),o=n.__importDefault(t(14041));t(4418);const I=g=>{var{className:u,children:G}=g,p=n.__rest(g,["className","children"]);return o.default.createElement("span",Object.assign({className:(0,a.default)("kt-badge",u)},p),G)};e.Badge=I},48412:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Button=void 0;const n=t(85608),a=n.__importDefault(t(53373)),o=n.__importDefault(t(14041)),I=t(99613),g=t(54713);t(71682);const u=()=>o.default.createElement("svg",{viewBox:"0 0 1024 1024",focusable:"false",className:"kt-button-anticon-spin","data-icon":"loading",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},o.default.createElement("path",{d:"M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 0 0-94.3-139.9 437.71 437.71 0 0 0-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z"}));function G(){}e.Button=o.default.memo(p=>{var{children:b,loading:m,className:d,type:s="primary",htmlType:l,size:r,ghost:c=!1,onClick:h,disabled:v,block:f,iconClass:W,icon:N,more:Z,moreIconClass:y,menu:E,moreVisible:R,placement:A,title:w,onVisibleChange:F}=p,V=n.__rest(p,["children","loading","className","type","htmlType","size","ghost","onClick","disabled","block","iconClass","icon","more","moreIconClass","menu","moreVisible","placement","title","onVisibleChange"]);const Y=(0,a.default)("kt-button",d,{[`kt-${s}-button-loading`]:m,[`ghost-${s}-button`]:c&&!m&&s!=="link",[`${s}-button`]:s,[`${r}-button-size`]:r,"ghost-button":c&&s!=="link","block-button":f}),_=(0,a.default)(d,{"kt-clickable-icon":!!h});if(s==="icon")return o.default.createElement(g.Icon,Object.assign({tooltip:w,disabled:v,icon:N,onClick:m||v?G:h,className:_,iconClass:W},V));const H=W?o.default.createElement(g.Icon,{iconClass:W,disabled:v}):null;return E?o.default.createElement(I.Dropdown,{visible:R,className:"kt-menu",overlay:E,trigger:["click"],onVisibleChange:F,placement:A},o.default.createElement("button",Object.assign({},V,{disabled:v,className:Y,type:l,onClick:m||v?G:h}),m&&s!=="link"&&o.default.createElement(u,null),H&&H,b,Z&&o.default.createElement(g.Icon,{iconClass:y||(0,g.getIcon)("down"),className:"kt-button-secondary-more"}))):o.default.createElement("button",Object.assign({},V,{disabled:v,className:Y,type:l,onClick:m||v?G:h}),m&&s!=="link"&&o.default.createElement(u,null),H&&H,b)})},7273:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CheckBox=void 0;const n=t(85608),a=n.__importDefault(t(53373)),o=n.__importDefault(t(14041)),I=t(65973);t(6099);const g=()=>o.default.createElement("svg",{fill:"currentColor",width:"1em",height:"1em",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},o.default.createElement("path",{d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474c-6.1-7.7-15.3-12.2-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"})),u=G=>{var{insertClass:p,className:b,label:m,size:d="default",disabled:s,checked:l,wrapTabIndex:r}=G,c=n.__rest(G,["insertClass","className","label","size","disabled","checked","wrapTabIndex"]);(0,I.warning)(!p,"`insertClass` was deprecated, please use `className` instead");const h=c;return h.checked=l??!1,o.default.createElement("label",{className:(0,a.default)("kt-checkbox",p,b,{"kt-checkbox-large":d==="large","kt-checkbox-disabled":s}),tabIndex:r},o.default.createElement("span",{className:"kt-checkbox-lump"},o.default.createElement("input",Object.assign({type:"checkbox",disabled:s},h)),o.default.createElement("span",{className:"kt-checkbox-icon"},o.default.createElement(g,null))),m||" ")};e.CheckBox=u,e.CheckBox.displayName="OpenSumiCheckBox"},58998:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ClickOutside=void 0;const n=t(85608),a=n.__importDefault(t(14041)),o=I=>{var{mouseEvents:g=["click"],onOutsideClick:u,children:G}=I,p=n.__rest(I,["mouseEvents","onOutsideClick","children"]);const b=a.default.useRef(null),m=a.default.useCallback(d=>{b.current&&d.target&&!b.current.contains(d.target)&&u(d)},[u]);return a.default.useEffect(()=>(g.forEach(d=>{window.addEventListener(d,m,!0)}),()=>{g.forEach(d=>{window.removeEventListener(d,m,!0)})}),[g]),a.default.createElement("div",Object.assign({},p,{ref:b}),G)};e.ClickOutside=o},50570:(L,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.MessageType=void 0;var t;(function(n){n[n.Error=0]="Error",n[n.Warning=1]="Warning",n[n.Info=2]="Info",n[n.Empty=3]="Empty"})(t=e.MessageType||(e.MessageType={}))},89832:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Dialog=e.DialogContent=void 0;const n=t(85608),a=n.__importDefault(t(53373)),o=n.__importDefault(t(14041)),I=t(43718),g=t(48412),u=t(50570),G=t(54713),p=t(79024);t(65773);const b=({onCancel:s,onOk:l,cancelText:r,okText:c})=>o.default.createElement(o.default.Fragment,null,o.default.createElement(g.Button,{onClick:s,type:"secondary"},r||(0,I.localize)("ButtonCancel")),o.default.createElement(g.Button,{onClick:l},c||(0,I.localize)("ButtonOK"))),m=({onClose:s,closable:l,messageType:r=u.MessageType.Info,icon:c,message:h,buttons:v,type:f="confirm",title:W,onOk:N,onCancel:Z,okText:y,cancelText:E})=>{const{getIcon:R}=o.default.useContext(G.IconContext);return o.default.createElement(o.default.Fragment,null,o.default.createElement("div",{className:"kt-dialog-content"},c&&o.default.createElement("div",{style:{color:c.color},className:(0,a.default)("kt-dialog-icon",(0,G.getIcon)(c.className)||R(c.className))}),o.default.createElement("div",{className:"kt-dialog-content_area"},f!=="basic"&&W&&o.default.createElement("p",{className:"kt-dialog-content_title"},W),o.default.createElement("span",{className:"kt-dialog-message"},h)),l&&f!=="basic"&&o.default.createElement("button",{className:(0,a.default)("kt-dialog-closex",(0,G.getIcon)("close")),onClick:s})),r!==u.MessageType.Empty&&f!=="basic"&&o.default.createElement("div",{className:"kt-dialog-buttonWrap"},f==="confirm"?v||o.default.createElement(b,{onCancel:Z,onOk:N,okText:y,cancelText:E}):o.default.createElement(g.Button,{onClick:s},"OK")))};e.DialogContent=m;const d=s=>{var{visible:l,onClose:r,closable:c,afterClose:h,messageType:v,icon:f,message:W,buttons:N,type:Z="confirm",title:y,onOk:E,onCancel:R,okText:A,cancelText:w,getContainer:F,keyboard:V}=s,Y=n.__rest(s,["visible","onClose","closable","afterClose","messageType","icon","message","buttons","type","title","onOk","onCancel","okText","cancelText","getContainer","keyboard"]);return o.default.createElement(p.Overlay,Object.assign({visible:l,onClose:r,title:Z==="basic"?y:null,closable:Z==="basic",getContainer:F,keyboard:V,footer:Z==="basic"?N||o.default.createElement(b,{onCancel:R,onOk:E,okText:A,cancelText:w}):void 0,afterClose:h},Y),o.default.createElement(e.DialogContent,Object.assign({message:W,buttons:N,visible:l},Y)))};e.Dialog=d},99665:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});const n=t(85608),a=n.__importDefault(t(62596)),o=n.__importDefault(t(53373)),I=n.__importStar(t(14041)),g=t(48412),u=n.__importDefault(t(35060)),G=p=>{var b;const{prefixCls:m,type:d="primary",size:s="default",danger:l,disabled:r,loading:c,onClick:h,htmlType:v,children:f,className:W,overlay:N,trigger:Z,align:y,visible:E,onVisibleChange:R,placement:A,getPopupContainer:w,href:F,icon:V=I.createElement(a.default,null),title:Y,buttonsRender:_=k=>k,mouseEnterDelay:H,mouseLeaveDelay:S,overlayClassName:X,overlayStyle:Q}=p,O=n.__rest(p,["prefixCls","type","size","danger","disabled","loading","onClick","htmlType","children","className","overlay","trigger","align","visible","onVisibleChange","placement","getPopupContainer","href","icon","title","buttonsRender","mouseEnterDelay","mouseLeaveDelay","overlayClassName","overlayStyle"]),M=m||"kt-dropdown-button",T={align:y,overlay:N,disabled:r,trigger:r?[]:Z,getPopupContainer:w,mouseEnterDelay:H,mouseLeaveDelay:S,overlayClassName:X,overlayStyle:Q};T.placement=(b=p?.placement)!==null&&b!==void 0?b:"bottomRight";const x=I.createElement(g.Button,{size:s,type:d,disabled:r,loading:c,onClick:h,htmlType:v,title:Y},f),B=I.createElement(g.Button,{size:s,type:d},V??I.createElement(a.default,null)),[D,J]=_([x,B]);return I.createElement("div",Object.assign({},O,{className:(0,o.default)(M,W)}),D,I.createElement(u.default,Object.assign({},T),J))};e.default=G},35060:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});const n=t(85608),a=n.__importDefault(t(64797)),o=n.__importDefault(t(53373)),I=n.__importDefault(t(97190)),g=n.__importDefault(t(14041)),u=t(43953),G=t(65973),p=(0,u.tuple)("topLeft","topCenter","topRight","bottomLeft","bottomCenter","bottomRight");class b extends g.default.Component{constructor(){super(...arguments),this.renderOverlay=d=>{const{overlay:s}=this.props;let l;typeof s=="function"?l=s():l=s,l=g.default.Children.only(l);const r=l.props;(0,G.warning)(!r.mode||r.mode==="vertical",`[Dropdown] mode="${r.mode}" is not supported for Dropdown's Menu.`);const{selectable:c=!1,focusable:h=!0}=r,v=g.default.createElement("span",{className:`${d}-menu-submenu-arrow`},g.default.createElement(a.default,{className:`${d}-menu-submenu-arrow-icon`}));return typeof l.type=="string"?s:g.default.cloneElement(l,{mode:"vertical",selectable:c,focusable:h,expandIcon:v})},this.renderDropDown=()=>{const{prefixCls:d,children:s,trigger:l,disabled:r,getPopupContainer:c}=this.props,h=d||"kt-dropdown",v=g.default.Children.only(s),f=g.default.cloneElement(v,{className:(0,o.default)(v.props.className,`${h}-trigger`),disabled:r}),W=r?[]:l;let N;return W&&W.indexOf("contextMenu")!==-1&&(N=!0),g.default.createElement(I.default,Object.assign({alignPoint:N},this.props,{prefixCls:h,getPopupContainer:c,transitionName:this.getTransitionName(),trigger:W,overlay:()=>this.renderOverlay(h)}),f)}}getTransitionName(){const{placement:d="",transitionName:s}=this.props;return s!==void 0?s:d.indexOf("top")>=0?"slide-down":"slide-up"}render(){return this.renderDropDown()}}e.default=b,b.defaultProps={mouseEnterDelay:.15,mouseLeaveDelay:.1,placement:"bottomLeft"}},99613:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DropdownButton=e.Dropdown=void 0;const n=t(85608),a=n.__importDefault(t(35060));e.Dropdown=a.default;const o=n.__importDefault(t(99665));e.DropdownButton=o.default,t(34643)},80564:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Icon=e._InternalIcon=e.IconContextProvider=e.IconContext=void 0;const n=t(85608),a=n.__importDefault(t(53373)),o=n.__importDefault(t(14041)),I=t(12122),g=t(76577);t(1914),e.IconContext=o.default.createContext({getIcon:(p,b)=>p});function u(p){return o.default.createElement(e.IconContext.Provider,{value:p.value},o.default.createElement(e.IconContext.Consumer,null,b=>p.value===b?p.children:null))}e.IconContextProvider=u;const G=function(p,b){const{size:m="small",loading:d,icon:s,iconClass:l,className:r,tooltip:c,rotate:h,anim:v,fill:f,disabled:W,onClick:N,children:Z,resourceOptions:y,animate:E,style:R={}}=p,A=n.__rest(p,["size","loading","icon","iconClass","className","tooltip","rotate","anim","fill","disabled","onClick","children","resourceOptions","animate","style"]),w={rotate:h,anim:v,fill:f};let F;if(s)if(I.defaultIconMap[s])F=(0,g.getIcon)(s,w);else{const{getIcon:V,getResourceIcon:Y}=o.default.useContext(e.IconContext);y&&Y?F=Y(s,y):F=V(s,w)}else F=l;return E&&E==="spin"&&(R.animation="kt-icon-spin 1.5s steps(30) infinite"),o.default.createElement("span",Object.assign({},A,{title:c,onClick:N,ref:b,className:(0,a.default)("kt-icon",F,r,{"kt-icon-loading":d,"kt-icon-disabled":!!W,[`kt-icon-${m}`]:!!m,"kt-icon-clickable":!!N,"kt-icon-resource":!!y,expanded:!!y&&y.isOpenedDirectory}),style:R}),Z)};e._InternalIcon=o.default.memo(o.default.forwardRef(G)),e.Icon=o.default.memo(o.default.forwardRef(G))},10391:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.createFromIconfontCN=void 0;const n=t(85608),a=n.__importDefault(t(53373)),o=n.__importDefault(t(14041)),I=t(80564),g=t(76577),u=new Set;function G(d){return!!(typeof d=="string"&&d.length&&!u.has(d))}function p(d,s=0){const l=d[s];if(G(l)){const r=document.createElement("script");r.setAttribute("src",l),r.setAttribute("data-namespace",l),d.length>s+1&&(r.onload=()=>{p(d,s+1)},r.onerror=()=>{p(d,s+1)}),u.add(l),document.body.appendChild(r)}}const b={width:"1em",height:"1em",fill:"currentColor"};function m(d={}){const{scriptUrl:s,extraCommonProps:l={}}=d;s&&typeof document<"u"&&typeof window<"u"&&typeof document.createElement=="function"&&(Array.isArray(s)?p(s.reverse()):p([s]));const r=o.default.forwardRef((c,h)=>{const{icon:v,children:f,rotate:W,anim:N,fill:Z,className:y=""}=c,E=n.__rest(c,["icon","children","rotate","anim","fill","className"]),R={rotate:W,anim:N,fill:Z};let A=null;v&&(A=o.default.createElement("svg",Object.assign({},b,{focusable:"false"}),o.default.createElement("use",{xlinkHref:`#${v}`}))),f&&(A=f);const w=(0,g.getIconShapeClxList)(R);return o.default.createElement(I._InternalIcon,Object.assign({},l,E,{className:(0,a.default)(y,w),ref:h}),A)});return r.displayName="Iconfont",r}e.createFromIconfontCN=m},12122:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.iconManager=e.defaultIconMap=e.defaultIconfont=void 0;const a=t(85608).__importDefault(t(65973)),o=t(81139);Object.defineProperty(e,"defaultIconfont",{enumerable:!0,get:function(){return o.defaultIconfont}});const I={"search-close":"close-square",fold:"collapse-all","setting-general":"setting","setting-file":"file-text","setting-extension":"extension","run-debug":"start","toggle-breakpoints":"deactivate-breakpoints",withdraw:"fallback",terminate1:"stop",stop1:"stop",add:"plus",rundebug:"start",terminate:"stop"},g=Object.assign({},o.defaultIconfont,I);e.defaultIconMap=new Proxy(g,{get(p,b){const m=I[b];return(0,a.default)(!m,`Icon '${b}' was a typo, please use '${m}' instead`),p[b]}});class u{constructor(){this._ktIconPrefixes=[],this._iconMap={}}update(b,m){this._iconMap[b]=m,this._ktIconPrefixes.push(b)}getIconClx(b){if(!b)return(0,a.default)(!1,"not a valid icon key:"+b),[];let m=this._ktIconPrefixes.length;for(;!this._iconMap[this._ktIconPrefixes[--m]][b]&&m!==0;);const d=this._iconMap[this._ktIconPrefixes[m]][b];return d?[`${this._ktIconPrefixes[m]}${d}`]:((0,a.default)(!1,"\u56FE\u6807\u5E93\u7F3A\u5931\u56FE\u6807:"+b),[])}}e.iconManager=new u,e.iconManager.update("kaitian-icon kticon-",e.defaultIconMap)},81139:(L,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.defaultIconfont=void 0,e.defaultIconfont={"Gitlab-fill":"Gitlab-fill",PR:"PR",ab:"ab",abl:"abl","activate-breakpoints":"activate-breakpoints","add-comments":"add-comments",afresh:"afresh","arrow-down":"arrow-down","arrow-right":"arrow-right",arrowdown:"arrowdown",arrowleft:"arrowleft",arrowright:"arrowright",arrowup:"arrowup",bash:"bash",bell:"bell",branches:"branches","breakpoint-activate":"breakpoint-activate","breakpoint-deactivate":"breakpoint-deactivate","breakpoint-disabled":"breakpoint-disabled","breakpoint-enabled":"breakpoint-enabled","breakpoint-stop":"breakpoint-stop","breakpoint-stop-before":"breakpoint-stop-before",brew:"brew","browser-preview":"browser-preview","caret-right":"caret-right",check:"check","check-circle-fill":"check-circle-fill","check-close-circle-o":"check-close-circle-o","check-square-o":"check-square-o","circle-pause":"circle-pause",clear:"clear","clear-bold":"clear-bold",close:"close","close-all":"close-all","close-circle":"close-circle","close-circle-fill":"close-circle-fill",close1:"close1",close_square:"close_square","cloud-download":"cloud-download","cloud-server":"cloud-server",code:"code","collapse-all":"collapse-all",commit:"commit","content-search":"content-search",continue:"continue",control:"control",copy:"copy","create-pullrequest":"create-pullrequest","deactivate-breakpoints":"deactivate-breakpoints",debug:"debug","debug-alt-small":"debug-alt-small","debug-restart-frame":"debug-restart-frame","default-menu-icon":"default-menu-icon",delete:"delete",deploy:"deploy",detail:"detail",discard:"discard",disconnect:"disconnect","dock-down":"dock-down","dock-right":"dock-right",doubleleft:"doubleleft",doubleright:"doubleright",down:"down","down-arrow":"down-arrow",download:"download",drag:"drag",edit:"edit",editor:"editor",ellipsis:"ellipsis",embed:"embed",error:"error",expand:"expand","expand-all":"expand-all",experiment:"experiment",explorer:"explorer",extension:"extension",eye:"eye","eye-close":"eye-close","file-copy":"file-copy","file-default":"file-default","file-exclamation":"file-exclamation","file-text":"file-text",filter:"filter",focus:"focus",folder:"folder","folder-default":"folder-default","follow-cursor":"follow-cursor",fullescreen:"fullescreen",fullscreen:"fullscreen","fullscreen-exit":"fullscreen-exit",git:"git","github-fill":"github-fill",gitlab:"gitlab","global-search":"global-search",go:"go",hex:"hex","info-circle":"info-circle","info-circle-fill":"info-circle-fill",insert:"insert",java:"java",keyboard:"keyboard",kotlin:"kotlin",layout:"layout",layout1:"layout1",left:"left","left-nav-close":"left-nav-close","left-nav-open":"left-nav-open","left-right-subfield":"left-right-subfield",line:"line",link:"link",loading:"loading","magic-wand":"magic-wand",max:"max","menubar-dashboard-back":"menubar-dashboard-back","menubar-edit":"menubar-edit","menubar-file":"menubar-file","menubar-go":"menubar-go","menubar-selection":"menubar-selection","menubar-setting":"menubar-setting","menubar-tool":"menubar-tool","menubar-view":"menubar-view","menubar-workspace":"menubar-workspace",message:"message",min:"min",minus:"minus",mobile:"mobile","mobile-phone":"mobile-phone",more:"more","new-file":"new-file","new-folder":"new-folder",node:"node",open:"open","open-changes":"open-changes",openfile:"openfile","out-link":"out-link",pause:"pause",pin:"pin",pipeline:"pipeline",plus:"plus","project-information":"project-information",python:"python","question-circle":"question-circle","question-circle-o":"question-circle-o",receive:"receive",refresh:"refresh",regex:"regex",reload:"reload",replace:"replace",repository:"repository",retrieval:"retrieval",revoke:"revoke","revoke-white":"revoke-white",right:"right","right-arrow":"right-arrow",rollback:"rollback",run:"run",rust:"rust","save-all":"save-all",scm:"scm",search:"search",send:"send","send-hollow":"send-hollow","send-solid":"send-solid",setting:"setting",sever:"sever",share:"share",shrink:"shrink",smile:"smile",start:"start",step:"step","step-in":"step-in","step-out":"step-out",stop:"stop",swap:"swap",sync:"sync",team:"team",terminal:"terminal",test:"test",thumbs:"thumbs","thumbs-fill":"thumbs-fill",thumbsdown:"thumbsdown","thumbsdown-fill":"thumbsdown-fill","time-circle":"time-circle",toolkit:"toolkit",tree:"tree",undock:"undock",unfullscreen:"unfullscreen",unmax:"unmax",unorderedlist:"unorderedlist",unpin:"unpin",up:"up","up-down-subfield":"up-down-subfield",vim:"vim",wait:"wait","warning-circle":"warning-circle",window:"window","window-close":"window-close","window-maximize":"window-maximize",zsh:"zsh"}},54713:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.createFromIconfontCN=void 0;const n=t(85608);n.__exportStar(t(80564),e),n.__exportStar(t(76577),e);var a=t(10391);Object.defineProperty(e,"createFromIconfontCN",{enumerable:!0,get:function(){return a.createFromIconfontCN}})},76577:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.updateKaitianIconMap=e.getKaitianIcon=e.getIcon=e.getIconShapeClxList=e.updateIconMap=e.ANIM_TYPE=e.ROTATE_TYPE=void 0;const n=t(12122);var a;(function(b){b[b.rotate_90=0]="rotate_90",b[b.rotate_180=1]="rotate_180",b[b.rotate_270=2]="rotate_270",b[b.flip_horizontal=3]="flip_horizontal",b[b.flip_vertical=4]="flip_vertical",b[b.flip_both=5]="flip_both"})(a=e.ROTATE_TYPE||(e.ROTATE_TYPE={}));var o;(function(b){b[b.spin=0]="spin",b[b.pulse=1]="pulse"})(o=e.ANIM_TYPE||(e.ANIM_TYPE={}));const I=["rotate-90","rotate-180","rotate-270","flip-horizontal","flip-vertical","flip-both"],g=["spin","pulse"];function u(b,m){n.iconManager.update(b,m)}e.updateIconMap=u;function G(b){const{rotate:m,anim:d,fill:s}=b||{},l=[];return m!==void 0&&l.push(`iconfont-${I[m]}`),d!==void 0&&l.push(`iconfont-anim-${g[d]}`),s&&l.push("toggled"),l}e.getIconShapeClxList=G;function p(b,m){const d=n.iconManager.getIconClx(b),s=G(m);return d.push(...s),d.join(" ")}e.getIcon=p,e.getKaitianIcon=p,e.updateKaitianIconMap=u},97267:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});const n=t(85608);t(39328),n.__exportStar(t(48412),e),n.__exportStar(t(79383),e),n.__exportStar(t(50708),e),n.__exportStar(t(7273),e),n.__exportStar(t(14640),e),n.__exportStar(t(54076),e),n.__exportStar(t(79024),e),n.__exportStar(t(89832),e),n.__exportStar(t(54713),e),n.__exportStar(t(18875),e),n.__exportStar(t(91397),e),n.__exportStar(t(31059),e),n.__exportStar(t(72871),e),n.__exportStar(t(91416),e),n.__exportStar(t(34128),e),n.__exportStar(t(50570),e),n.__exportStar(t(77011),e),n.__exportStar(t(3660),e),n.__exportStar(t(58998),e),n.__exportStar(t(4981),e),n.__exportStar(t(99613),e)},15857:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.HistoryInputBox=void 0;const a=t(85608).__importDefault(t(14041)),o=t(44198),I=t(63924);class g extends a.default.Component{constructor(){super(...arguments),this.inputRef=a.default.createRef(),this.addToHistory=G=>{this.history&&G&&G!==this.getCurrentValue()&&this.history.add(G)},this.getHistory=()=>this.history&&this.history.getHistory()||[],this.showNextValue=()=>{const G=this.getCurrentValue()||"";this.history&&!this.history.has(G)&&this.addToHistory(G);let p=this.getNextValue();p&&(p=p===G?this.getNextValue():p),p&&this.onValueChange(p)},this.showPreviousValue=()=>{const G=this.getCurrentValue()||"";this.history&&!this.history.has(G)&&this.addToHistory(G);let p=this.getPreviousValue();p&&(p=p===G?this.getPreviousValue():p),p&&this.onValueChange(p)},this.clearHistory=()=>{this.history&&this.history.clear()},this.getCurrentValue=()=>{if(!this.history)return null;let G=this.history.current();return G||(G=this.history.last(),this.history.next()),G},this.getPreviousValue=()=>this.history&&(this.history.previous()||this.history.first())||null,this.getNextValue=()=>this.history&&(this.history.next()||this.history.last())||null,this.onValueChange=G=>{const{onValueChange:p}=this.props;this.setState({inputValue:G}),p&&p(G)},this.onKeyDown=G=>{const{onKeyDown:p}=this.props;p&&p(G)},this.focus=()=>{this.inputRef&&this.inputRef.current&&this.inputRef.current.focus()}}componentDidMount(){var G;const{history:p,onReady:b}=this.props;this.history=new o.HistoryNavigator(p||[],100),this.inputProps=Object.assign({},this.props),delete this.inputProps.onReady,this.setState({inputValue:((G=this.props.value)!==null&&G!==void 0?G:this.props.defaultValue)||""}),typeof b=="function"&&b({addToHistory:this.addToHistory,getHistory:this.getHistory,clearHistory:this.clearHistory,getCurrentValue:this.getCurrentValue,showNextValue:this.showNextValue,showPreviousValue:this.showPreviousValue,focus:this.focus})}render(){const G=this.state&&this.state.inputValue;return a.default.createElement(I.Input,Object.assign({ref:this.inputRef},this.inputProps,{onValueChange:this.onValueChange,onKeyDown:this.onKeyDown,value:G}))}}e.HistoryInputBox=g},63924:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Input=void 0;const n=t(85608),a=n.__importDefault(t(53373)),o=n.__importDefault(t(14041)),I=t(54713),g=n.__importDefault(t(65973));t(41065);function u(p){return typeof p>"u"}function G(p,b,m){if(typeof m=="function"){let d=b;if(b.type==="click"){d=Object.create(b),d.target=p,d.currentTarget=p;const s=p.value;p.value="",m(d),p.value=s;return}m(d)}}e.Input=o.default.forwardRef((p,b)=>{const{defaultValue:m,className:d,wrapperStyle:s,size:l="default",controls:r,onChange:c,selection:h,addonBefore:v,addonAfter:f,persistFocus:W=!0,hasClear:N,afterClear:Z,value:y,onValueChange:E,onPressEnter:R,onKeyDown:A,as:w="input"}=p,F=n.__rest(p,["defaultValue","className","wrapperStyle","size","controls","onChange","selection","addonBefore","addonAfter","persistFocus","hasClear","afterClear","value","onValueChange","onPressEnter","onKeyDown","as"]);(0,g.default)(!r,"[@opensumi/ide-components Input]: `controls` was deprecated, please use `addonAfter` instead");const V=o.default.useRef(null),[Y,_]=o.default.useState(!1),[H,S]=o.default.useState(()=>(y??m)||""),[X,Q]=o.default.useState(()=>(y??m)||"");o.default.useImperativeHandle(b,()=>V.current),o.default.useEffect(()=>{h&&!u(h.start)&&!Y&&V.current.setSelectionRange(h.start,h.end)},[h,Y]),o.default.useEffect(()=>{y===null||typeof y>"u"||(y!==X&&y!==H&&S(y),y!==X&&Q(y))},[y]);const O=z=>{T(z.target.value),G(V.current,z,c)},M=z=>{z.preventDefault(),T(""),G(V.current,z,c),typeof Z=="function"&&Z()},T=z=>{S(z),typeof E=="function"&&E(z),Y||_(!0)},x=z=>{z.keyCode===13&&typeof R=="function"&&R(z),typeof A=="function"&&A(z)},B=f||r,D=W?{onMouseDown:z=>{z.preventDefault()}}:{},J=(z,P)=>z?o.default.createElement("div",Object.assign({className:(0,a.default)("kt-input-addon",P)},D),o.default.Children.map(z,U=>o.default.isValidElement(U)?o.default.cloneElement(U,D):null)):null,k=(0,a.default)("kt-input",d,{[`kt-input-${l}`]:l,"kt-input-disabled":p.disabled});return o.default.createElement("div",{className:k,style:s},J(v,"kt-input-addon-before"),o.default.createElement("div",{className:"kt-input-box"},o.default.createElement(w,Object.assign({ref:V,type:"text",autoCapitalize:"off",autoCorrect:"off",autoComplete:"off",spellCheck:!1},F,{value:H,onChange:O,onKeyDown:x})),N&&H&&o.default.createElement(I.Icon,Object.assign({className:"kt-input-clear",icon:"close-circle-fill",onClick:M},D))),J(B,"kt-input-addon-after"))}),e.Input.displayName="OpenSumiInput"},64545:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.InputNumber=void 0;const n=t(85608),a=n.__importDefault(t(53373)),o=n.__importDefault(t(99158)),I=n.__importDefault(t(14041));t(41065),t(17107);const g="kt-input-number",u=G=>{const{value:p,size:b="default",wrapperStyle:m,className:d,disabled:s,min:l,max:r,onChange:c}=G,h=n.__rest(G,["value","size","wrapperStyle","className","disabled","min","max","onChange"]),v=W=>{c&&c(W)},f=(0,a.default)("kt-input","kt-input-number",d,{[`kt-input-${b}`]:b,"kt-input-disabled":s});return I.default.createElement("div",{className:f,style:m},I.default.createElement("div",{className:"kt-input-box"},I.default.createElement(o.default,Object.assign({prefixCls:g,min:l,max:r,value:p,type:"number",onChange:v,controls:!0},h))))};e.InputNumber=u,e.InputNumber.displayName="OpenSumiInputNumber"},10413:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.bindInputElement=void 0;const a=t(85608).__importDefault(t(14041)),o=t(63924);class I extends a.default.Component{constructor(){super(...arguments),this.placeholderInputRef=a.default.createRef()}render(){const p=Object.assign({},this.props);return delete p.inputElement,delete p.innerRef,a.default.createElement(o.Input,Object.assign({},p,{type:"text",id:this.props.id,ref:this.placeholderInputRef}))}componentDidMount(){const{innerRef:p,inputElement:b}=this.props;this.placeholderInputRef.current.parentElement.replaceChild(b,this.placeholderInputRef.current),this.applyAttributes(),b.focus(),typeof p=="function"?p(b):p!==null&&typeof p=="object"&&p.current===null&&(p.current=b)}UNSAFE_componentWillUnmount(){const{innerRef:p,inputElement:b}=this.props;b.parentElement.replaceChild(this.placeholderInputRef.current,b),p!==null&&typeof p=="object"&&p.current&&(p.current=null)}shouldComponentUpdate(p){return this.applyAttributes(p),!1}applyAttributes(p=this.props){const{className:b,id:m,inputElement:d,style:s}=p;if(typeof b=="string"&&(d.className=b),typeof m=="string"&&(d.id=m),s!==null&&typeof s=="object")for(const l in s)typeof s[l]=="string"&&d[l]&&(d[l]=s[l])}}const g=a.default.forwardRef((G,p)=>a.default.createElement(I,Object.assign({},G,{innerRef:p})));function u(G){return p=>a.default.createElement(g,Object.assign({},p,{inputElement:G}))}e.bindInputElement=u},61172:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.TextArea=void 0;const a=t(85608).__importDefault(t(14041)),o=t(63924);e.TextArea=a.default.forwardRef((I,g)=>a.default.createElement(o.Input,Object.assign({},I,{as:"textarea",ref:g}))),e.TextArea.displayName="OpenSumiTextArea"},34390:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ValidateInput=e.VALIDATE_TYPE=void 0;const n=t(85608),a=n.__importDefault(t(53373)),o=n.__importDefault(t(14041)),I=t(63924);t(13254);var g;(function(u){u[u.INFO=1]="INFO",u[u.ERROR=2]="ERROR",u[u.WARNING=3]="WARNING",u[u.IGNORE=4]="IGNORE"})(g=e.VALIDATE_TYPE||(e.VALIDATE_TYPE={})),e.ValidateInput=o.default.forwardRef((u,G)=>{var{type:p,className:b,validate:m,onChange:d,onValueChange:s,validateMessage:l,popup:r=!0}=u,c=n.__rest(u,["type","className","validate","onChange","onValueChange","validateMessage","popup"]);const[h,v]=o.default.useState();o.default.useEffect(()=>{v(l)},[l]);const f=(0,a.default)({"validate-error":h&&h.type===g.ERROR,"validate-warning":h&&h.type===g.WARNING,"validate-info":h&&h.type===g.INFO}),W=()=>{if(h&&h.message)return o.default.createElement("div",{className:(0,a.default)("validate-message",f,{popup:r})},h.message)},N=Z=>{const y=Z.target;let E;if(y.type==="number"?E=Z.target.valueAsNumber:E=Z.target.value,typeof m=="function"){let R;p==="number"?/^[0-9]+$/.test(E)?R=m(Number(E)):R=m(String(E)):R=m(E),v(R)}typeof d=="function"&&d(Z),typeof s=="function"&&s(E)};return o.default.createElement("div",{className:(0,a.default)("input-box",{popup:r})},o.default.createElement(I.Input,Object.assign({type:p,ref:G,className:(0,a.default)(b,h,f),onChange:N},c)),W())}),e.ValidateInput.displayName="ValidateInput"},50708:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});const n=t(85608);n.__exportStar(t(61172),e),n.__exportStar(t(63924),e),n.__exportStar(t(34390),e),n.__exportStar(t(10413),e),n.__exportStar(t(64545),e)},3660:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),t(85608).__exportStar(t(3205),e)},3205:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Loading=void 0;const a=t(85608).__importDefault(t(14041));t(21221),e.Loading=a.default.memo(()=>a.default.createElement("div",{className:"loading_indicator"})),e.Loading.displayName="Loading"},4981:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ComponentContextProvider=e.LocalizeContextProvider=e.LocalizeContext=void 0;const a=t(85608).__importDefault(t(14041)),o=t(54713),I=t(65973),g=p=>((0,I.warning)(!1,"Using the default localize fn"),"");e.LocalizeContext=a.default.createContext({localize:g}),e.LocalizeContext.displayName="LocalizeContext";function u(p){return a.default.createElement(e.LocalizeContext.Provider,{value:p.value},a.default.createElement(e.LocalizeContext.Consumer,null,b=>p.value===b?p.children:null))}e.LocalizeContextProvider=u;function G(p){return a.default.createElement(o.IconContextProvider,{value:p.value},a.default.createElement(u,{value:{localize:p.value.localize}},p.children))}e.ComponentContextProvider=G},56849:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Markdown=e.DefaultMarkedRenderer=e.linkify=void 0;const n=t(85608),a=t(33714),o=n.__importDefault(t(14041)),I=t(39777),g=(p,b,m)=>`<a rel="noopener" ${I.DATA_SET_COMMAND}="${p}" title="${b??p}">${m}</a>`;e.linkify=g;class u extends a.Renderer{link(b,m,d){return(0,e.linkify)(b,m,d)}}e.DefaultMarkedRenderer=u;function G(p){const b=(s,l)=>a.marked.parse(s,{renderer:l}),[m,d]=o.default.useState(b(p.value||"",p.renderer));return o.default.useEffect(()=>{d(b(p.value||"",p.renderer))},[p.renderer,p.value]),o.default.createElement(I.RenderWrapper,{opener:p.opener,html:m})}e.Markdown=G},39777:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.RenderWrapper=e.DATA_SET_COMMAND=void 0;const a=t(85608).__importStar(t(14041));t(28566),e.DATA_SET_COMMAND="data-command";const o=I=>{const g=(0,a.useRef)(),{html:u,opener:G}=I;(0,a.useEffect)(()=>(g&&g.current&&g.current.addEventListener("click",p),()=>{g&&g.current&&g.current.removeEventListener("click",p)}),[]);const p=b=>{let m=b.target;if(m.className.includes("codicon")&&(m=m.parentNode),m.tagName.toLowerCase()==="a"&&m.hasAttribute(e.DATA_SET_COMMAND)){const d=m.getAttribute(e.DATA_SET_COMMAND);d&&G&&G.open(d)}};return a.default.createElement("div",{className:"kt-md-renderer-wrap",dangerouslySetInnerHTML:{__html:u},ref:g})};e.RenderWrapper=o},98113:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});const a=(0,t(14041).createContext)({inlineCollapsed:!1});e.default=a},64063:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});const n=t(85608),a=t(54715),o=n.__importDefault(t(14041)),I=n.__importDefault(t(98113));class g extends o.default.Component{constructor(){super(...arguments),this.renderItem=()=>{const G=this.props,{title:p}=G,b=n.__rest(G,["title"]);return o.default.createElement(I.default.Consumer,null,({inlineCollapsed:m})=>m?o.default.createElement(a.Item,Object.assign({},b,{title:p})):o.default.createElement(a.Item,Object.assign({},b,{title:p})))}}render(){return this.renderItem()}}e.default=g,g.isMenuItem=!0},91886:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});const n=t(85608),a=n.__importDefault(t(39067)),o=t(54715),I=n.__importDefault(t(14041));class g extends I.default.Component{render(){const{popupClassName:G}=this.props;return I.default.createElement(o.SubMenu,Object.assign({},this.props,{popupClassName:G}))}}g.contextTypes={antdMenuTheme:a.default.string},g.isSubMenu=1,e.default=g},45803:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Menu=void 0;const n=t(85608),a=n.__importDefault(t(53373)),o=n.__importStar(t(54715)),I=n.__importDefault(t(14041)),g=t(90146),u=t(2835),G=t(47768),p=t(65973),b=n.__importDefault(t(98113)),m=n.__importDefault(t(64063)),d=n.__importDefault(t(91886));t(42985);class s extends I.default.Component{static getDerivedStateFromProps(c,h){const{prevProps:v}=h,f={prevProps:c};return v.mode==="inline"&&c.mode!=="inline"&&(f.switchingModeFromInline=!0),"openKeys"in c?f.openKeys=c.openKeys:(c.inlineCollapsed&&!v.inlineCollapsed&&(f.switchingModeFromInline=!0,f.inlineOpenKeys=h.openKeys,f.openKeys=[]),!c.inlineCollapsed&&v.inlineCollapsed&&(f.openKeys=h.inlineOpenKeys,f.inlineOpenKeys=[])),f}constructor(c){super(c),this.handleMouseEnter=v=>{this.restoreModeVerticalFromInline();const{onMouseEnter:f}=this.props;f&&f(v)},this.handleTransitionEnd=v=>{const f=v.propertyName==="width"&&v.target===v.currentTarget,{className:W}=v.target,N=Object.prototype.toString.call(W)==="[object SVGAnimatedString]"?W.animVal:W,Z=v.propertyName==="font-size"&&N.indexOf("anticon")>=0;(f||Z)&&this.restoreModeVerticalFromInline()},this.handleClick=v=>{this.handleOpenChange([]);const{onClick:f}=this.props;f&&f(v)},this.handleOpenChange=v=>{this.setOpenKeys(v);const{onOpenChange:f}=this.props;f&&f(v)},this.renderMenu=()=>{const{prefixCls:v,className:f}=this.props,W=this.getRealMenuMode(),N=this.getOpenMotionProps(W),Z=v||"kt-inner-menu",y=(0,a.default)(f,{[`${Z}-inline-collapsed`]:this.getInlineCollapsed()}),E=Object.assign({openKeys:this.state.openKeys,onOpenChange:this.handleOpenChange,className:y,mode:W},N);return W!=="inline"&&(E.onClick=this.handleClick),this.getInlineCollapsed()&&(E.openKeys=[]),I.default.createElement(o.default,Object.assign({},this.props,E,{prefixCls:Z,onTransitionEnd:this.handleTransitionEnd,onMouseEnter:this.handleMouseEnter}))},(0,p.warning)(!("onOpen"in c||"onClose"in c),"[Menu] `onOpen` and `onClose` are removed, please use `onOpenChange` instead, see: https://u.ant.design/menu-on-open-change."),(0,p.warning)(!("inlineCollapsed"in c&&c.mode!=="inline"),"[Menu] `inlineCollapsed` should only be used when `mode` is inline.");let h;"openKeys"in c?h=c.openKeys:"defaultOpenKeys"in c&&(h=c.defaultOpenKeys),this.state={openKeys:h||[],switchingModeFromInline:!1,inlineOpenKeys:[],prevProps:c}}componentWillUnmount(){G.wrapperRaf.cancel(this.mountRafId)}setOpenKeys(c){"openKeys"in this.props||this.setState({openKeys:c})}getRealMenuMode(){const c=this.getInlineCollapsed();if(this.state.switchingModeFromInline&&c)return"inline";const{mode:h}=this.props;return c?"vertical":h}getInlineCollapsed(){const{inlineCollapsed:c}=this.props;return c}getOpenMotionProps(c){const{openTransitionName:h,openAnimation:v,motion:f}=this.props;return f?{motion:f}:v?((0,p.warning)(typeof v=="string","[Menu] `openAnimation` do not support object. Please use `motion` instead."),{openAnimation:v}):h?{openTransitionName:h}:c==="horizontal"?{motion:{motionName:"slide-up"}}:c==="inline"?{motion:u.collapseMotion}:{motion:{motionName:""}}}restoreModeVerticalFromInline(){const{switchingModeFromInline:c}=this.state;c&&this.setState({switchingModeFromInline:!1})}render(){return I.default.createElement(b.default.Provider,{value:{inlineCollapsed:this.getInlineCollapsed()||!1}},this.renderMenu())}}s.defaultProps={className:"",focusable:!1},(0,g.polyfill)(s);class l extends I.default.Component{render(){return I.default.createElement(s,Object.assign({},this.props))}}e.Menu=l,l.Divider=o.Divider,l.Item=m.default,l.SubMenu=d.default,l.ItemGroup=o.ItemGroup},31059:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.message=void 0;const a=t(85608).__importDefault(t(71036));t(38663);function o(I){return(g,u)=>new Promise(G=>{a.default[I](g,u,G)})}e.message={success:o("success"),error:o("error"),info:o("info"),warning:o("warning"),loading:o("loading")}},71036:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});const n=t(85608),a=n.__importDefault(t(29517)),o=n.__importDefault(t(96041)),I=n.__importDefault(t(63492)),g=n.__importDefault(t(36117)),u=n.__importDefault(t(59303)),G=n.__importDefault(t(75056)),p=n.__importDefault(t(14041));let b=3,m,d,s=1,l="kt-message",r="move-up",c,h;function v(y){if(d){y(d);return}G.default.newInstance({prefixCls:l,transitionName:r,style:{top:m},getContainer:c,maxCount:h},E=>{if(d){y(d);return}d=E,y(E)})}const f={info:g.default,success:a.default,error:o.default,warning:I.default,loading:u.default};function W(y){const E=y.duration!==void 0?y.duration:b,R=y.key||s++,A=new Promise(F=>{const V=()=>(typeof y.onClose=="function"&&y.onClose(),F(!0));v(Y=>{const _=f[y.type];Y.notice({key:R,duration:E,style:{},content:p.default.createElement("div",{className:`${l}-custom-content${y.type?` ${l}-${y.type}`:""}`},y.icon||_&&p.default.createElement(_,null),p.default.createElement("span",null,y.content)),onClose:V})})}),w=()=>{d&&d.removeNotice(R)};return w.then=(F,V)=>A.then(F,V),w.promise=A,w}function N(y){return Object.prototype.toString.call(y)==="[object Object]"&&!!y.content}const Z={open:W,config(y){y.top!==void 0&&(m=y.top,d=null),y.duration!==void 0&&(b=y.duration),y.prefixCls!==void 0&&(l=y.prefixCls),y.getContainer!==void 0&&(c=y.getContainer),y.transitionName!==void 0&&(r=y.transitionName,d=null),y.maxCount!==void 0&&(h=y.maxCount,d=null)},destroy(){d&&(d.destroy(),d=null)}};["success","info","warning","error","loading"].forEach(y=>{Z[y]=(E,R,A)=>N(E)?Z.open(Object.assign(Object.assign({},E),{type:y})):(typeof R=="function"&&(A=R,R=void 0),Z.open({content:E,duration:R,type:y,onClose:A}))}),Z.warn=Z.warning,e.default=Z},6656:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.destroyFns=void 0;const n=t(85608),a=n.__importDefault(t(22143)),o=n.__importDefault(t(53373)),I=n.__importDefault(t(39067)),g=n.__importDefault(t(79773)),u=n.__importDefault(t(25946)),G=n.__importDefault(t(14041)),p=t(48412),b=t(69587);let m;e.destroyFns=[];const d=l=>{m={x:l.pageX,y:l.pageY},setTimeout(()=>m=null,100)};typeof window<"u"&&window.document&&window.document.documentElement&&(0,u.default)(document.documentElement,"click",d);class s extends G.default.Component{constructor(){super(...arguments),this.handleCancel=r=>{const{onCancel:c}=this.props;c&&c(r)},this.handleOk=r=>{const{onOk:c}=this.props;c&&c(r)},this.renderFooter=r=>{const{okText:c,okType:h,cancelText:v,confirmLoading:f}=this.props;return G.default.createElement("div",null,G.default.createElement(p.Button,Object.assign({onClick:this.handleCancel},this.props.cancelButtonProps),v||r.cancelText),G.default.createElement(p.Button,Object.assign({type:h,loading:f,onClick:this.handleOk},this.props.okButtonProps),c||r.okText))},this.renderModal=()=>{const r=this.props,{prefixCls:c,footer:h,visible:v,wrapClassName:f,centered:W,getContainer:N,closeIcon:Z,closable:y=!0}=r,E=n.__rest(r,["prefixCls","footer","visible","wrapClassName","centered","getContainer","closeIcon","closable"]),R=c||"kt-modal",A=this.renderFooter((0,b.getConfirmLocale)()),w=G.default.createElement("span",{className:`${R}-close-x`},Z||G.default.createElement(a.default,{className:`${R}-close-icon`}));return G.default.createElement(g.default,Object.assign({},E,{animation:this.props.animation,getContainer:N,prefixCls:R,wrapClassName:(0,o.default)({[`${R}-centered`]:!!W},f),footer:h===void 0?A:h,visible:v,mousePosition:m,onClose:this.handleCancel,closeIcon:w}))}}render(){return this.renderModal()}}e.default=s,s.defaultProps={width:520,confirmLoading:!1,visible:!1,okType:"primary"},s.propTypes={prefixCls:I.default.string,onOk:I.default.func,onCancel:I.default.func,okText:I.default.node,cancelText:I.default.node,centered:I.default.bool,width:I.default.oneOfType([I.default.number,I.default.string]),confirmLoading:I.default.bool,visible:I.default.bool,footer:I.default.node,title:I.default.node,closable:I.default.bool,closeIcon:I.default.node}},53017:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Modal=void 0;const a=t(85608).__importDefault(t(6656));e.Modal=a.default,t(61349)},69587:(L,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getConfirmLocale=e.changeConfirmLocale=void 0;const t={okText:"OK",cancelText:"Cancel",justOkText:"OK"};let n=Object.assign({},t);function a(I){I?n=Object.assign(Object.assign({},n),I):n=Object.assign({},t)}e.changeConfirmLocale=a;function o(){return n}e.getConfirmLocale=o},18875:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.update=e.close=e.open=e.notification=void 0;const n=t(85608),a=n.__importDefault(t(53373)),o=n.__importDefault(t(14041)),I=t(70392),g=t(48412),u=t(50570),G=n.__importDefault(t(70748));t(1477);const p={[u.MessageType.Info]:15,[u.MessageType.Warning]:18,[u.MessageType.Error]:20};G.default.config({placement:"bottomRight"}),e.notification=G.default;const b=new Map;function m(r,c,h=!0,v,f,W,N,Z){return(0,I.createCancelablePromise)(y=>(y.onCancellationRequested(()=>{d(v)}),new Promise(E=>{const R={key:v,className:(0,a.default)("kt-notification-wrapper",{"kt-notification-info":c===u.MessageType.Info,"kt-notification-error":c===u.MessageType.Error,"kt-notification-warn":c===u.MessageType.Warning}),duration:(0,I.isUndefined)(N)?p[c]:N,onClose:()=>{Z&&Z(),b.delete(v),E(void 0)},btn:f?f.map((A,w)=>{const F=typeof A=="string",V={className:`${(0,a.default)("kt-notification-button")}${F?"":A.class}`,ghost:F?w===0:!A.primary,key:F?A:A.id,onClick:()=>{E(A),G.default.close(v),F||A.run()}},Y=F?A:A.label;return o.default.createElement(g.Button,Object.assign({size:"small"},V),Y)}):null,message:r,description:W};b.set(v,[c,R]),h||(R.closeIcon=o.default.createElement("span",null)),l(c,R)})))}e.open=m;function d(r){e.notification.close(r)}e.close=d;function s(r,c){const h=b.get(r);l(h[0],Object.assign(Object.assign({},h[1]),{key:r,message:c}))}e.update=s;function l(r,c){switch(r){case u.MessageType.Info:e.notification.info(c);break;case u.MessageType.Warning:e.notification.warning(c);break;case u.MessageType.Error:e.notification.error(c);break;default:e.notification.open(c);break}}},70748:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});const n=t(85608),a=n.__importDefault(t(55435)),o=n.__importDefault(t(31079)),I=n.__importDefault(t(22143)),g=n.__importDefault(t(5550)),u=n.__importDefault(t(74339)),G=n.__importDefault(t(75056)),p=n.__importDefault(t(14041)),b=t(70392),m={};let d=4.5,s=24,l=24,r="topRight",c,h;function v(E){const{duration:R,placement:A,bottom:w,top:F,getContainer:V,closeIcon:Y}=E;R!==void 0&&(d=R),A!==void 0&&(r=A),w!==void 0&&(l=w),F!==void 0&&(s=F),V!==void 0&&(c=V),Y!==void 0&&(h=Y)}function f(E,R=s,A=l){let w;switch(E){case"topLeft":w={left:0,top:R,bottom:"auto"};break;case"topRight":w={right:0,top:R,bottom:"auto"};break;case"bottomLeft":w={left:0,top:"auto",bottom:A};break;default:w={right:0,top:"auto",bottom:A};break}return w}function W({prefixCls:E,placement:R=r,getContainer:A=c,top:w,bottom:F,closeIcon:V=h},Y){const _=`${E}-${R}`;if(m[_]){Y(m[_]);return}const H=p.default.createElement("span",{className:`${E}-close-x`},V||p.default.createElement(I.default,{className:`${E}-close-icon`}));G.default.newInstance({prefixCls:E,className:`${E}-${R}`,style:f(R,w,F),getContainer:A,closeIcon:H},S=>{m[_]=S,Y(S)})}const N={success:a.default,info:u.default,error:o.default,warning:g.default};function Z(E){const R=E.prefixCls||"kt-notification",A=`${R}-notice`,w=(0,b.isUndefined)(E.duration)?d:E.duration;let F=null;E.icon?F=p.default.createElement("span",{className:`${A}-icon`},E.icon):E.type&&(F=p.default.createElement(N[E.type]||null,{className:`${A}-icon ${A}-icon-${E.type}`}));const{placement:V,top:Y,bottom:_,getContainer:H,closeIcon:S}=E;W({prefixCls:R,placement:V,top:Y,bottom:_,getContainer:H,closeIcon:S},X=>{X.notice({content:p.default.createElement("div",{className:F?`${A}-with-icon`:""},F,p.default.createElement("div",{className:`${A}-message`},E.message),p.default.createElement("div",{className:`${A}-description`},E.description),E.btn?p.default.createElement("span",{className:`${A}-btn`},E.btn):null),duration:w,closable:!0,onClose:E.onClose,onClick:E.onClick,key:E.key,style:E.style||{},className:E.className})})}const y={open:Z,close(E){Object.keys(m).forEach(R=>m[R].removeNotice(E))},config:v,destroy(){Object.keys(m).forEach(E=>{m[E].destroy(),delete m[E]})}};["success","info","warning","error"].forEach(E=>{y[E]=R=>y.open(Object.assign(Object.assign({},R),{type:E}))}),y.warn=y.warning,e.default=y},79024:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Overlay=void 0;const n=t(85608),a=n.__importDefault(t(53373)),o=n.__importDefault(t(14041)),I=t(53017);t(45531);const g=u=>{var{maskClosable:G=!1,closable:p=!0,className:b,onClose:m,children:d,footer:s,title:l,getContainer:r,keyboard:c}=u,h=n.__rest(u,["maskClosable","closable","className","onClose","children","footer","title","getContainer","keyboard"]);return o.default.createElement(I.Modal,Object.assign({footer:s||null,maskClosable:G,closable:p,onCancel:m,title:l,getContainer:r,className:(0,a.default)("kt-overlay",b),keyboard:c},h),d)};e.Overlay=g},91397:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Popover=e.PopoverPosition=e.PopoverTriggerType=void 0;const n=t(85608),a=n.__importDefault(t(53373)),o=n.__importDefault(t(6208)),I=n.__importStar(t(14041));t(14856);const g=t(48412);var u;(function(b){b.hover="hover",b.click="click",b.focus="focus"})(u=e.PopoverTriggerType||(e.PopoverTriggerType={}));var G;(function(b){b.top="top",b.bottom="bottom",b.left="left",b.right="right",b.topLeft="topLeft",b.topRight="topRight",b.bottomLeft="bottomLeft",b.bottomRight="bottomRight",b.leftTop="leftTop",b.leftBottom="leftBottom",b.rightTop="rightTop",b.rightBottom="rightBottom"})(G=e.PopoverPosition||(e.PopoverPosition={}));const p=b=>{var{children:m,trigger:d=u.hover,visible:s,content:l,position:r=G.top,showArrow:c=!0,title:h,titleClassName:v,overlay:f,overlayClassName:W,overlayStyle:N,action:Z,delay:y,zIndex:E=1e3,onClickAction:R,onVisibleChange:A}=b,w=n.__rest(b,["children","trigger","visible","content","position","showArrow","title","titleClassName","overlay","overlayClassName","overlayStyle","action","delay","zIndex","onClickAction","onVisibleChange"]);const F=(0,I.useCallback)(Y=>{R&&R(Y)},[R]),V=(0,I.useMemo)(()=>f||(!h&&!l?null:I.default.createElement(I.default.Fragment,null,h&&I.default.createElement("p",{className:(0,a.default)("kt-popover-title",v)},h,Z&&I.default.createElement(g.Button,{size:"small",type:"link",onClick:F},Z)),l||"")),[f,l,Z,F]);return V?I.default.createElement(o.default,Object.assign({},w,{visible:s,placement:r,mouseEnterDelay:y?y/1e3:void 0,trigger:d,showArrow:c,onVisibleChange:A,overlayClassName:W,prefixCls:"kt-popover",overlayStyle:N,overlay:V,zIndex:E}),I.default.createElement("div",{className:"kt-popover-trigger"},m)):m};e.Popover=p},8573:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.RecycleList=e.RECYCLE_LIST_OVER_SCAN_COUNT=e.RECYCLE_LIST_STABILIZATION_TIME=void 0;const n=t(85608),a=n.__importDefault(t(53373)),o=n.__importStar(t(14041)),I=n.__importDefault(t(19686)),g=t(58723),u=t(77011);e.RECYCLE_LIST_STABILIZATION_TIME=500,e.RECYCLE_LIST_OVER_SCAN_COUNT=50;const G=({width:p,height:b,maxHeight:m,minHeight:d,className:s,style:l,data:r,onReady:c,onScroll:h,itemHeight:v,header:f,footer:W,template:N,paddingBottomSize:Z,getSize:y,hiddenVerticalScrollbar:E,hiddenHorizontalScrollbar:R})=>{const A=(0,o.useRef)(),w=(0,o.useRef)(),F=(0,o.useRef)({}),V=(0,o.useRef)(0),Y=(0,o.useRef)();(0,o.useEffect)(()=>{typeof c=="function"&&c({scrollTo:z=>{var P;(P=A.current)===null||P===void 0||P.scrollTo(z)},scrollToIndex:(z,P="start")=>{var U,oe;let se=z;if(f&&se++,typeof v=="number")(U=A.current)===null||U===void 0||U.scrollToItem(se,P);else{Y.current&&clearTimeout(Y.current);const he=(F.current?Object.keys(F.current):[]).slice(0,se).reduce((ee,pe)=>ee+H(pe),0);(oe=A.current)===null||oe===void 0||oe.scrollToItem(z,P),Y.current=setTimeout(()=>{var ee;(F.current?Object.keys(F.current):[]).slice(0,se).reduce(($,le)=>$+H(le),0)!==he&&((ee=A.current)===null||ee===void 0||ee.scrollToItem(z,P)),Y.current=null},e.RECYCLE_LIST_STABILIZATION_TIME)}}})},[]);const _=(k,z)=>{var P;F.current[k]!==z&&(F.current=Object.assign(Object.assign({},F.current),{[k]:z}),A.current&&((P=A.current)===null||P===void 0||P.resetAfterIndex(0)))},H=(0,o.useCallback)(k=>y?y(Number(k)):(F?.current||[])[k]||v||100,[v,y]),S=(0,o.useCallback)(()=>{if(m){let k=0;for(let z=0;z<r.length;z++)k+=H(z);return k>m?m:k}},[m,r]),X=(0,o.useCallback)(()=>{if(d)return d},[d,r]),Q=(0,o.useMemo)(()=>{let k=r.length;return f&&k++,W&&k++,k},[r,W,f]),O=({index:k,style:z})=>{let P;if(k===0&&f)return o.default.createElement("div",{style:z},o.default.createElement(f,null));if(k+1===Q&&W)return o.default.createElement("div",{style:z},o.default.createElement(W,null));if(f?P=r[k-1]:P=r[k],!P)return o.default.createElement("div",{style:z});const U={"aria-setsize":Q,"aria-posinset":k};return o.default.createElement("div",Object.assign({tabIndex:0,style:z,role:"listitem"},U),o.default.createElement(N,{data:P,index:k}))},M=({index:k,style:z})=>{const P=(0,o.useRef)(null),U=(0,o.useRef)(),oe=()=>{if(P.current){let ae=0;for(let he=0;he<P.current.children.length;he++)ae+=P.current.children[he].getBoundingClientRect().height;_(k,ae)}};(0,o.useEffect)(()=>{if(P.current&&A.current){U.current=new MutationObserver(()=>{oe()});const ae={childList:!0,attributes:!0,characterData:!0,attributeFilter:["class","style"],attributeOldValue:!0,characterDataOldValue:!0};U.current.observe(P.current,ae),oe()}return()=>{U.current.disconnect()}},[P.current]);let se;return k===0&&f?o.default.createElement("div",{style:z},o.default.createElement(f,null)):k+1===Q&&W?o.default.createElement("div",{style:z},o.default.createElement(W,null)):(f?se=r[k-1]:se=r[k],se?o.default.createElement("div",{style:z,ref:P},o.default.createElement(N,{data:se,index:k})):o.default.createElement("div",{style:z}))},T=(0,o.useMemo)(()=>r.reduce((z,P)=>z+H(P),0)/r.length,[r]),x=(0,o.useCallback)(k=>{V.current=k.scrollOffset,h&&h(k)},[h]),B=(0,o.useMemo)(()=>(0,o.forwardRef)((k,z)=>{const P=k,{style:U}=P,oe=n.__rest(P,["style"]);return o.default.createElement("div",Object.assign({ref:z,style:Object.assign(Object.assign({},U),{height:`${parseFloat(U.height)+(Z||0)}px`})},oe))}),[Z]),D=(0,o.useMemo)(()=>(0,o.forwardRef)((k,z)=>o.default.createElement(u.Scrollbars,Object.assign({hiddenVertical:E,hiddenHorizontal:R},k,{thumbSize:10,forwardedRef:z}))),[E,R]);return(()=>{const k=typeof v!="number",z=!p||!b;return(()=>{const U=({width:oe,height:se})=>{w.current&&(w.current.scrollTop=V.current);const ae=S(),he=X();let ee=se;return he?ee=Math.min(se,he):ae&&(ee=ae),k?o.default.createElement(g.VariableSizeList,{onScroll:x,width:oe,height:ee,itemData:[],itemSize:H,itemCount:Q,overscanCount:e.RECYCLE_LIST_OVER_SCAN_COUNT,ref:A,style:Object.assign({transform:"translate3d(0px, 0px, 0px)"},l),className:(0,a.default)(s,"kt-recycle-list"),innerElementType:B,outerElementType:D,estimatedItemSize:T},M):o.default.createElement(g.FixedSizeList,{onScroll:x,width:oe,height:ee,itemData:[],itemSize:v,itemCount:Q,overscanCount:e.RECYCLE_LIST_OVER_SCAN_COUNT,ref:A,outerRef:w,style:Object.assign({transform:"translate3d(0px, 0px, 0px)"},l),className:(0,a.default)(s,"recycle-list"),innerElementType:B,outerElementType:D},O)};return z?o.default.createElement(I.default,null,U):U({width:p,height:b})})()})()};e.RecycleList=G},34128:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),t(85608).__exportStar(t(8573),e)},57621:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.RecycleTree=e.RenderErrorType=void 0;const n=t(85608),a=n.__importDefault(t(39050)),o=n.__importStar(t(14041)),I=t(58723),g=t(70392),u=t(77011),G=t(48103),p=t(65601),b=t(43685),m=t(13429),d=t(34054);var s;(function(c){c[c.RENDER_ITEM=0]="RENDER_ITEM",c[c.GET_RENDED_KEY=1]="GET_RENDED_KEY",c[c.RENDER_ERROR=2]="RENDER_ERROR"})(s=e.RenderErrorType||(e.RenderErrorType={}));const l=o.default.forwardRef((c,h)=>{const v=c,{style:f}=v,W=n.__rest(v,["style"]);return o.default.createElement("div",Object.assign({ref:h,style:Object.assign(Object.assign({},f),{height:`${parseFloat(f.height)+r.PADDING_BOTTOM_SIZE}px`})},W))});class r extends o.default.Component{constructor(){super(...arguments),this.idxToRendererPropsCache=new Map,this.dynamicSizeMap=new Map,this.listRef=o.default.createRef(),this.disposables=new g.DisposableCollection,this.onErrorEmitter=new g.Emitter,this.onDidUpdateEmitter=new g.Emitter,this.onDidModelChangeEmitter=new g.Emitter,this.newPromptInsertionIndex=-1,this.idToFilterRendererPropsCache=new Map,this.filterFlattenBranchChildrenCache=new Map,this.filterWatcherDisposeCollection=new g.DisposableCollection,this.queueUpdatePromise=null,this.updateCancelToken=new g.CancellationTokenSource,this.expandNodeCancelToken=new g.CancellationTokenSource,this.willUpdateTasks=0,this.queueUpdateThrottler=new g.Throttler,this.doBatchUpdate=(()=>{const h=(v,f)=>{if(this.disposables.disposed)return;const{root:W}=this.props.model;let N=-1;if(this.promptTargetID>-1&&this.promptHandle instanceof p.NewPromptHandle&&this.promptHandle.parent&&this.promptHandle.parent.expanded&&W.isItemVisibleAtSurface(this.promptHandle.parent)&&!this.promptHandle.destroyed){const Z=W.getIndexAtTreeNodeId(this.promptTargetID);if(Z>-1||this.promptHandle.parent===W)if(this.promptHandle.type===d.TreeNodeType.TreeNode){const y=this.promptHandle.parent;y?N=this.getNewPromptInsertIndex(Z,y):N=Z+1}else N=Z+1;else this.promptTargetID=-1}if(N===-1&&this.promptHandle&&this.promptHandle.constructor===p.NewPromptHandle&&!this.promptHandle.destroyed&&this.promptHandle.destroy(),this.newPromptInsertionIndex=N,this.idxToRendererPropsCache.clear(),f.isCancellationRequested){v();return}this.forceUpdate(()=>{v(),this.props.filter&&this.props.filterProvider&&this.props.filterProvider.filterAlways&&this.filterItems(this.props.filter)})};return()=>{const v=(N,Z)=>{const y=!!this.willUpdateTasks;if(this.willUpdateTasks=0,!y)Z.resolve();else{this.updateCancelToken.cancel(),this.updateCancelToken=new g.CancellationTokenSource;const E=this.updateCancelToken.token;requestAnimationFrame(()=>{if(E.isCancellationRequested){Z();return}h(Z,E)})}return N};let f;const W=new Promise(N=>f=N);return W.then(()=>{this.onDidUpdateEmitter.fire()}),v(W,f),W}})(),this.batchUpdate=()=>(this.willUpdateTasks++,this.queueUpdatePromise=this.queueUpdateThrottler.queue(this.doBatchUpdate),this.queueUpdatePromise),this.promptNewTreeNode=h=>this.promptNew(h),this.promptNewCompositeTreeNode=h=>this.promptNew(h,d.TreeNodeType.CompositeTreeNode),this.promptRename=async(h,v)=>{var f,W;const{root:N}=this.props.model,Z=typeof h=="string"?await N.getTreeNodeByPath(h):h;if(!b.TreeNode.is(Z)||b.CompositeTreeNode.isRoot(Z))throw new TypeError(`Cannot rename object of type ${typeof Z}`);const y=new G.RenamePromptHandle(v||Z.name,Z);return this.promptHandle=y,this.promptTargetID=Z.id,N.isItemVisibleAtSurface(Z)?await this.batchUpdate():await Z.parent.setExpanded(!0),(W=(f=this.listRef)===null||f===void 0?void 0:f.current)===null||W===void 0||W.scrollToItem(N.getIndexAtTreeNodeId(this.promptTargetID)),this.promptHandle},this.expandNode=async h=>{const{root:v}=this.props.model,f=typeof h=="string"?v.getTreeNodeByPath(h):h;if(this.expandNodeCancelToken.token.isCancellationRequested&&(this.expandNodeCancelToken=new g.CancellationTokenSource),f&&b.CompositeTreeNode.is(f)&&!f.disposed)return f.setExpanded(!1,!1,!0,this.expandNodeCancelToken.token)},this.collapseNode=async h=>{const{root:v}=this.props.model,f=typeof h=="string"?v.getTreeNodeByPath(h):h;if(f&&b.CompositeTreeNode.is(f)&&!f.disposed)return this.expandNodeCancelToken.cancel(),f.setCollapsed()},this._isEnsuring=!1,this.ensureVisible=async(h,v="smart",f=!1)=>{if(this._isEnsuring)return;this._isEnsuring=!0;const{root:W}=this.props.model,N=typeof h=="string"?W.getTreeNodeByPath(h)||await W.loadTreeNodeByPath(h):h;if(N&&!W.isItemVisibleAtSurface(N)&&await W.loadTreeNodeByPath(N.path),!b.TreeNode.is(N)||b.CompositeTreeNode.isRoot(N)){this._isEnsuring=!1;return}return f?this.tryScrollIntoViewWhileStable(N,v):this.tryScrollIntoView(N,v),this._isEnsuring=!1,N},this.getItemAtIndex=h=>{const{filter:v}=this.props;if(v&&this.filterFlattenBranch.length>0)return this.idToFilterRendererPropsCache.get(this.filterFlattenBranch[h]);let f=this.idxToRendererPropsCache.get(h);if(!f){const W=this.newPromptInsertionIndex,{root:N}=this.props.model;if(W>-1&&this.promptHandle&&this.promptHandle.constructor===p.NewPromptHandle&&!this.promptHandle.destroyed)if(h===W)f={itemType:d.TreeNodeType.NewPrompt,item:this.promptHandle};else{const Z=N.getTreeNodeAtIndex(h-(h>=W?1:0));f={itemType:b.CompositeTreeNode.is(Z)?d.TreeNodeType.CompositeTreeNode:d.TreeNodeType.TreeNode,item:Z}}else{const Z=N.getTreeNodeAtIndex(h);Z&&Z.id===this.promptTargetID&&this.promptHandle&&this.promptHandle.constructor===G.RenamePromptHandle&&!this.promptHandle.destroyed?f={itemType:d.TreeNodeType.RenamePrompt,item:this.promptHandle}:f={itemType:b.CompositeTreeNode.is(Z)?d.TreeNodeType.CompositeTreeNode:d.TreeNodeType.TreeNode,item:Z}}this.idxToRendererPropsCache.set(h,f)}return f},this.handleListScroll=({scrollOffset:h})=>{const{model:v,height:f,itemHeight:W}=this.props;if(v.state.saveScrollOffset(h),!this.promptHandle||!W)return;let N;this.promptHandle instanceof p.NewPromptHandle&&this.newPromptInsertionIndex>-1?N=this.newPromptInsertionIndex:N=v.root.getIndexAtTreeNodeId(this.promptHandle.id),(h+f<N*W||N*W<h)&&this.promptHandle.destroy()},this.getItemKey=h=>{const v=this.getItemAtIndex(h),{getItemKey:f}=this.props,W=f?f(v):void 0;return W??h},this.filterItems=h=>{const{model:{root:v},filterProvider:f}=this.props;if(this.filterWatcherDisposeCollection.dispose(),this.idToFilterRendererPropsCache.clear(),!h)return;const W=/\//.test(h),N=new Set,Z=new Map,y=[];for(let E=0,R=v.branchSize;E<R;E++){const A=v.getTreeNodeAtIndex(E);y.push(A)}if(W)y.forEach(E=>{if(E&&E.path.indexOf(h)>-1){N.add(E.id);let R=E.parent;for(;R&&!b.CompositeTreeNode.isRoot(R);)N.add(R.id),R=R.parent}});else{let E=[];f?E=a.default.filter(h,y,f.fuzzyOptions()):E=a.default.filter(h,y,r.FILTER_FUZZY_OPTIONS);const R=A=>{const w=A.children||[];if(w.length>0)for(const F of w)N.add(F.id),b.CompositeTreeNode.is(F)&&F.expanded&&R(F)};E.forEach(A=>{const w=A.original;N.add(w.id);let F=w.parent;for(Z.set(w.id,()=>o.default.createElement("div",{style:{flex:1,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},dangerouslySetInnerHTML:{__html:A.string||""}})),b.CompositeTreeNode.is(w)&&R(w);F&&!b.CompositeTreeNode.isRoot(F);)N.add(F.id),F=F.parent})}this.filterFlattenBranch=new Array(N.size);for(let E=0,R=0,A=v.branchSize;R<A;R++){const w=v.getTreeNodeAtIndex(R);w&&N.has(w.id)&&(this.filterFlattenBranch[E]=w.id,b.CompositeTreeNode.is(w)?this.idToFilterRendererPropsCache.set(w.id,{item:w,itemType:d.TreeNodeType.CompositeTreeNode,template:Z.has(w.id)?Z.get(w.id):void 0}):this.idToFilterRendererPropsCache.set(w.id,{item:w,itemType:d.TreeNodeType.TreeNode,template:Z.has(w.id)?Z.get(w.id):void 0}),E++)}this.filterWatcherDisposeCollection.push(v.watcher.on(d.TreeNodeEvent.DidChangeExpansionState,(E,R)=>{const A=this.filterFlattenBranch.indexOf(E.id);if(R){const w=this.filterFlattenBranchChildrenCache.get(E.id);w&&w.length>0&&(this.filterFlattenBranch=(0,b.spliceArray)(this.filterFlattenBranch,A+1,0,w),this.filterFlattenBranchChildrenCache.delete(E.id))}else{const w=[];for(let F=A+1;F<this.filterFlattenBranch.length;F++){const V=v.getTreeNodeById(this.filterFlattenBranch[F]);if(V&&V.depth>E.depth)w.push(V.id);else break}this.filterFlattenBranchChildrenCache.set(E.id,w),this.filterFlattenBranch=(0,b.spliceArray)(this.filterFlattenBranch,A+1,w.length)}})),this.filterWatcherDisposeCollection.push(g.Disposable.create(()=>{this.filterFlattenBranchChildrenCache.clear()}))},this.renderItem=({index:h,style:v})=>{var f,W,N,Z,y,E,R;const{children:A,overflow:w="ellipsis",supportDynamicHeights:F}=this.props,V=this.getItemAtIndex(h),Y=(0,o.useRef)(null),_=(0,o.useMemo)(()=>F?()=>{let M=0;if(Y.current){const T=Y.current;M=Array.from(T.children).reduce((x,B)=>x+B.getBoundingClientRect().height,0)}return M&&(this.dynamicSizeMap.set(h,M),this.layoutItem()),Math.max(M,r.DEFAULT_ITEM_HEIGHT)}:()=>{},[F]);if((0,o.useEffect)(()=>{Y.current&&_()},[]),!V)return o.default.createElement(o.default.Fragment,null);const{item:H,itemType:S,template:X}=V;if(!H)return o.default.createElement("div",{style:v});let Q;b.CompositeTreeNode.is(H)?Q={"aria-label":(f=H.accessibilityInformation)===null||f===void 0?void 0:f.label,"aria-expanded":H.expanded,"aria-level":H.depth,"aria-setsize":(N=(W=H.parent)===null||W===void 0?void 0:W.children)===null||N===void 0?void 0:N.length,"aria-posinset":h}:b.TreeNode.is(H)&&(Q={"aria-label":(Z=H.accessibilityInformation)===null||Z===void 0?void 0:Z.label,"aria-level":H.depth,"aria-setsize":(E=(y=H.parent)===null||y===void 0?void 0:y.children)===null||E===void 0?void 0:E.length,"aria-posinset":h});const O=w==="ellipsis"?v:Object.assign(Object.assign({},v),{width:"auto",minWidth:"100%"});return o.default.createElement("div",Object.assign({ref:Y,style:O,role:((R=H.accessibilityInformation)===null||R===void 0?void 0:R.role)||"treeiem"},Q),o.default.createElement(m.NodeRendererWrap,{item:H,depth:H.depth,itemType:S,template:X,hasPrompt:!!this.promptHandle&&!this.promptHandle.destroyed,expanded:b.CompositeTreeNode.is(H)?H.expanded:void 0},A))},this.layoutItem=()=>{var h,v,f,W;if(this.props.supportDynamicHeights&&this.listRef&&!((h=this.listRef)===null||h===void 0)&&h.current&&"_getRangeToRender"in((v=this.listRef)===null||v===void 0?void 0:v.current)){const N=(f=this.listRef)===null||f===void 0?void 0:f.current._getRangeToRender();if(N){const Z=N[0];((W=this.listRef)===null||W===void 0?void 0:W.current).resetAfterIndex(Z)}}}}getNewPromptInsertIndex(h,v){const{root:f}=this.props.model;let W=h+1;for(;W-h<=v.branchSize;W++){const N=f.getTreeNodeAtIndex(W);if(!N)return W;if(!b.CompositeTreeNode.is(N)){if(N?.depth>v.depth+1)continue;return W}}return W}UNSAFE_componentWillUpdate(h){this.props.filter!==h.filter&&this.filterItems(h.filter),this.props.model!==h.model&&(this.idxToRendererPropsCache.clear(),this.idToFilterRendererPropsCache.clear(),this.dynamicSizeMap.clear())}componentDidUpdate(h){var v,f;if(this.props.model!==h.model){this.disposables.dispose();const{model:W}=this.props;(f=(v=this.listRef)===null||v===void 0?void 0:v.current)===null||f===void 0||f.scrollTo(W.state.scrollOffset),this.disposables.push(W.onChange(this.batchUpdate.bind(this))),this.disposables.push(W.state.onDidLoadState(()=>{var N,Z;(Z=(N=this.listRef)===null||N===void 0?void 0:N.current)===null||Z===void 0||Z.scrollTo(W.state.scrollOffset)})),this.onDidModelChangeEmitter.fire({preModel:h.model,nextModel:W})}}async promptNew(h,v=d.TreeNodeType.TreeNode){var f,W;const{root:N}=this.props.model;let Z=typeof h=="string"?await N.getTreeNodeByPath(h):h;if(v!==d.TreeNodeType.TreeNode&&v!==d.TreeNodeType.CompositeTreeNode)throw new TypeError(`Invalid type supplied. Expected 'TreeNodeType.TreeNode' or 'TreeNodeType.CompositeTreeNode', got ${v}`);if(Z&&!b.CompositeTreeNode.is(Z)&&(Z=Z.parent,!b.CompositeTreeNode.is(Z)))throw new TypeError(`Cannot create new prompt at object of type ${typeof Z}`);if(!Z)throw new Error(`Cannot find node at ${h}`);const y=new p.NewPromptHandle(v,Z);return this.promptHandle=y,this.promptTargetID=Z.id,Z!==N&&(!Z.expanded||!N.isItemVisibleAtSurface(Z))?await Z.setExpanded(!0):await this.batchUpdate(),this.newPromptInsertionIndex>=0?(W=(f=this.listRef)===null||f===void 0?void 0:f.current)===null||W===void 0||W.scrollToItem(this.newPromptInsertionIndex):this.tryScrollIntoViewWhileStable(this.promptHandle),this.promptHandle}tryScrollIntoView(h,v="auto"){var f,W,N,Z;const{root:y}=this.props.model;h.constructor===p.NewPromptHandle&&!h.destroyed?(W=(f=this.listRef)===null||f===void 0?void 0:f.current)===null||W===void 0||W.scrollToItem(this.newPromptInsertionIndex):y.isItemVisibleAtSurface(h)&&((Z=(N=this.listRef)===null||N===void 0?void 0:N.current)===null||Z===void 0||Z.scrollToItem(y.getIndexAtTreeNode(h),v))}tryScrollIntoViewWhileStable(h,v="smart"){const{root:f}=this.props.model;if(this.tryEnsureVisibleTimes>r.TRY_ENSURE_VISIBLE_MAX_TIMES){this.tryEnsureVisibleTimes=0;return}g.Event.once(this.props.model.onChange)(async()=>{var W,N,Z,y;await this.queueUpdatePromise,h.constructor===p.NewPromptHandle&&!h.destroyed?(N=(W=this.listRef)===null||W===void 0?void 0:W.current)===null||N===void 0||N.scrollToItem(this.newPromptInsertionIndex):f.isItemVisibleAtSurface(h)?((y=(Z=this.listRef)===null||Z===void 0?void 0:Z.current)===null||y===void 0||y.scrollToItem(f.getIndexAtTreeNode(h),v),this.tryEnsureVisibleTimes=0):(this.tryEnsureVisibleTimes++,this.tryScrollIntoViewWhileStable(h,v))})}componentDidMount(){var h,v;const{model:f,onReady:W}=this.props;if((v=(h=this.listRef)===null||h===void 0?void 0:h.current)===null||v===void 0||v.scrollTo(f.state.scrollOffset),this.disposables.push(f.onChange(this.batchUpdate.bind(this))),this.disposables.push(f.state.onDidLoadState(()=>{var N,Z;(Z=(N=this.listRef)===null||N===void 0?void 0:N.current)===null||Z===void 0||Z.scrollTo(f.state.scrollOffset)})),typeof W=="function"){const N={promptNewTreeNode:this.promptNewTreeNode,promptNewCompositeTreeNode:this.promptNewCompositeTreeNode,promptRename:this.promptRename,expandNode:this.expandNode,collapseNode:this.collapseNode,ensureVisible:this.ensureVisible,getModel:()=>this.props.model,layoutItem:this.layoutItem,getCurrentSize:()=>({width:this.props.width,height:this.props.height}),onDidChangeModel:this.onDidModelChangeEmitter.event,onDidUpdate:this.onDidUpdateEmitter.event,onOnceDidUpdate:g.Event.once(this.onDidUpdateEmitter.event),onError:this.onErrorEmitter.event};W(N)}}componentWillUnmount(){this.disposables.dispose()}set promptHandle(h){this._promptHandle!==h&&(this._promptHandle instanceof G.PromptHandle&&!this._promptHandle.destroyed&&this._promptHandle.destroy(),h.onDestroy(this.batchUpdate),this._promptHandle=h)}get promptHandle(){return this._promptHandle}get adjustedRowCount(){const{root:h}=this.props.model,{filter:v}=this.props;return v?this.filterFlattenBranch.length:this.newPromptInsertionIndex>-1&&this.promptHandle&&this.promptHandle.constructor===p.NewPromptHandle&&!this.promptHandle.destroyed?h.branchSize+1:h.branchSize}getItemSize(h){return this.dynamicSizeMap.get(h)||this.props.itemHeight}render(){const{children:h,itemHeight:v,width:f="100%",height:W,style:N,className:Z,placeholder:y,overScanCount:E,leaveBottomBlank:R,supportDynamicHeights:A}=this.props;if(y&&this.adjustedRowCount===0){const F=y;return o.default.createElement(F,null)}const w={children:h,height:W,width:f,itemData:[],itemCount:this.adjustedRowCount,itemKey:this.getItemKey,overscanCount:E||r.DEFAULT_OVER_SCAN_COUNT,onScroll:this.handleListScroll,style:Object.assign({transform:"translate3d(0px, 0px, 0px)"},N),className:Z,outerElementType:u.ScrollbarsVirtualList};return R&&(w.innerElementType=l),A?o.default.createElement(I.VariableSizeList,Object.assign({ref:this.listRef,itemSize:this.getItemSize.bind(this)},w),this.renderItem):o.default.createElement(I.FixedSizeList,Object.assign({ref:this.listRef,itemSize:v},w),this.renderItem)}}e.RecycleTree=r,r.PADDING_BOTTOM_SIZE=22,r.DEFAULT_ITEM_HEIGHT=22,r.TRY_ENSURE_VISIBLE_MAX_TIMES=5,r.FILTER_FUZZY_OPTIONS={pre:"<match>",post:"</match>",extract:c=>c?.name||""},r.DEFAULT_OVER_SCAN_COUNT=50},13429:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.NodeRendererWrap=void 0;const a=t(85608).__importDefault(t(14041));class o extends a.default.Component{render(){const{item:g,itemType:u,children:G,template:p,hasPrompt:b}=this.props;return a.default.createElement(G,{item:g,itemType:u,template:p,hasPrompt:b,key:g.id})}shouldComponentUpdate(g){return!0}}e.NodeRendererWrap=o},75821:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BasicRecycleTree=void 0;const n=t(85608),a=n.__importStar(t(14041)),o=n.__importDefault(t(26737)),I=t(58998),g=t(57621),u=t(64013),G=t(84225),p=t(17462),b=t(78569),m=t(45203);t(12794),t(34728),n.__exportStar(t(92532),e);const d=({width:s,height:l,itemHeight:r=22,itemClassname:c,indent:h,baseIndent:v,containerClassname:f,onClick:W,onContextMenu:N,onTwistierClick:Z,onIconClick:y,onDbClick:E,resolveChildren:R,sortComparator:A,treeData:w,inlineMenus:F,inlineMenuActuator:V,onReady:Y,contextMenus:_,contextMenuActuator:H,treeName:S,leaveBottomBlank:X=!0})=>{const[Q,O]=(0,a.useState)({show:!1}),[M,T]=(0,a.useState)([]),[x,B]=(0,a.useState)(),D=(0,a.useRef)(!1),J=(0,a.useRef)(),k=(0,a.useRef)(),z=(0,a.useRef)(null),P=(0,a.useCallback)(j=>{var ie;return a.default.createElement(p.BasicTreeNodeRenderer,{item:j.item,itemType:j.itemType,itemHeight:r,indent:h,baseIndent:v,className:c,inlineMenus:F,inlineMenuActuator:V,onClick:ae,onDbClick:ee,onContextMenu:pe,onTwistierClick:$,onIconClick:he,decorations:(ie=J.current)===null||ie===void 0?void 0:ie.decorations.getDecorations(j.item)})},[x]);(0,a.useEffect)(()=>{var j,ie;J.current=new m.BasicTreeService(w,R,A,{treeName:S});const ne=(j=J.current)===null||j===void 0?void 0:j.onDidUpdateTreeModel(Ie=>{U(Ie)}),de=()=>{var Ie;(Ie=J.current)===null||Ie===void 0||Ie.enactiveFocusedDecoration()};return(ie=z.current)===null||ie===void 0||ie.addEventListener("blur",de,!0),()=>{var Ie,Ge;D.current=!0,(Ie=z.current)===null||Ie===void 0||Ie.removeEventListener("blur",de,!0),ne.dispose(),(Ge=J.current)===null||Ge===void 0||Ge.dispose()}},[]),(0,a.useEffect)(()=>{var j;(j=J.current)===null||j===void 0||j.updateTreeData(w)},[w]);const U=async j=>{j&&await j.ensureReady,D.current||B(j)},oe=async j=>{var ie;(ie=J.current)===null||ie===void 0||ie.activeFocusedDecoration(j),b.BasicCompositeTreeNode.is(j)&&ge(j)},se=(0,a.useCallback)(j=>{Y&&Y(Object.assign(Object.assign({},j),{selectItem:oe,focusItem:async ie=>{var ne;const de=`/${S}/${ie}`;await x?.ensureReady;const Ie=await j.ensureVisible(de,"auto",!0);Ie&&((ne=J.current)===null||ne===void 0||ne.activeFocusedDecoration(Ie))}})),k.current=j},[J.current]),ae=(0,a.useCallback)((j,ie)=>{oe(ie),W&&W(j,ie)},[W]),he=(0,a.useCallback)((j,ie)=>{y&&y(j,ie)},[y]),ee=(0,a.useCallback)((j,ie)=>{E&&E(j,ie)},[E]),pe=(0,a.useCallback)((j,ie)=>{var ne,de;if(ie?(ne=J.current)===null||ne===void 0||ne.activeContextMenuDecoration(ie):(de=J.current)===null||de===void 0||de.enactiveFocusedDecoration(),N)N(j,ie);else{let Ie=[];Array.isArray(_)?Ie=_:typeof _=="function"&&(Ie=_(ie));const Ge=new Set,re={};for(const Ee of Ie)Ge.add(Ee.group||"-1"),re[Ee.group||"-1"]||(re[Ee.group||"-1"]=[]),re[Ee.group||"-1"].push(Ee);const me=Array.from(Ge).sort((Ee,Ve)=>Ee.localeCompare(Ve,"kn",{numeric:!0}));let ve=[];for(const Ee of me)ve=ve.concat(re[Ee].map(Ve=>({id:Ve.id,label:Ve.title,group:Ve.group}))),ve=ve.concat([{id:`${Ee}_divider`,label:"",type:"divider"}]);ve.pop(),JSON.stringify(ve)!==JSON.stringify(M)&&T(ve);const{x:Ne,y:Ze}=j.nativeEvent;O({show:!0,point:{pageX:Ne,pageY:Ze},activeNode:ie})}},[E]),ge=(0,a.useCallback)(j=>{var ie,ne;j.expanded?(ie=k.current)===null||ie===void 0||ie.collapseNode(j):(ne=k.current)===null||ne===void 0||ne.expandNode(j)},[]),$=(0,a.useCallback)((j,ie)=>{b.BasicCompositeTreeNode.is(ie)&&ge(ie),Z&&Z(j,ie)},[Z]),le=(0,a.useCallback)(()=>{var j;(j=J.current)===null||j===void 0||j.enactiveFocusedDecoration()},[]),te=(0,a.useCallback)((j,ie)=>{N&&N(j,ie)},[]),ue=(0,a.useCallback)(()=>{O(Object.assign(Object.assign({},Q),{show:!1}))},[Q]),q=(0,a.useCallback)(()=>_?a.default.createElement(o.default,{popupPlacement:"bottomLeft",popupVisible:Q.show,action:["contextMenu"],popupAlign:{overflow:{adjustX:1,adjustY:1},offset:[window.scrollX,window.scrollY]},point:Q.point||{},builtinPlacements:G.placements,popup:a.default.createElement(I.ClickOutside,{className:"basic_tree_menubars",mouseEvents:["click","contextmenu"],onOutsideClick:ue},M.map(({id:j,label:ie,type:ne})=>a.default.createElement(u.BasicMenuItem,{key:j,id:j,label:ie,type:ne,focusMode:Q.show,onClick:de=>{H&&H(Q.activeNode,de),O({show:!1})}}))),alignPoint:!0}):null,[M,H,Q]);return a.default.createElement("div",{className:"basic_tree",tabIndex:-1,ref:z,onClick:le,onContextMenu:te},q(),x?a.default.createElement(g.RecycleTree,{height:l,width:s,itemHeight:r,model:x,onReady:se,className:f,leaveBottomBlank:X},P):null)};e.BasicRecycleTree=d},64013:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BasicMenuItem=void 0;const n=t(85608),a=n.__importDefault(t(53373)),o=n.__importDefault(t(14041)),I=({id:g,label:u,type:G,focusMode:p,onClick:b})=>{const[m,d]=o.default.useState(!1),s=o.default.useCallback(()=>{d(p?!0:r=>!r),b(g)},[g]),l=o.default.useCallback(()=>{},[g,p]);return G==="divider"?o.default.createElement("div",{className:"basic_menu_item_divider"}):o.default.createElement("div",{className:(0,a.default)("basic_menu_item",{"menu-open":m}),onMouseOver:l,onClick:s},u)};e.BasicMenuItem=I},84225:(L,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.placements=void 0;const t={adjustX:1,adjustY:1},n=[0,0];e.placements={bottomLeft:{points:["tl","bl"],overflow:t,offset:[0,4],targetOffset:n}}},78569:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BasicTreeNode=e.BasicCompositeTreeNode=e.BasicTreeRoot=void 0;const n=t(43685);class a extends n.CompositeTreeNode{constructor(u,G,p,b={}){super(u,G,void 0,{treeName:b.treeName}),this._raw=p}get name(){var u;return(u=this.getMetadata("treeName"))!==null&&u!==void 0?u:`BasicTreeRoot_${this.id}`}get raw(){return this._raw}get expanded(){return!0}}e.BasicTreeRoot=a;class o extends n.CompositeTreeNode{constructor(u,G,p,b){super(u,G,void 0,{name:p.label}),this.isExpanded=p.expanded||!1,this.id=b||this.id,this._displayName=p.label,this._raw=p}get displayName(){return this._displayName}get renderLabel(){return this.raw.renderLabel}get icon(){return this.raw.icon}get iconClassName(){return this.raw.iconClassName}get className(){return this.raw.className}get twisterClassName(){return this.raw.twisterClassName}get twisterPlaceholderClassName(){return this.raw.twisterPlaceholderClassName}get indentOffset(){return this.raw.indentOffset}get description(){return this.raw.description}get raw(){return this._raw}get expandable(){return!!this._raw.expandable}}e.BasicCompositeTreeNode=o;class I extends n.TreeNode{constructor(u,G,p,b){super(u,G,void 0,{name:p.label}),this.id=b||this.id,this._displayName=p.label,this._raw=p}get displayName(){return this._displayName}get renderLabel(){return this.raw.renderLabel}get description(){return this.raw.description}get icon(){return this.raw.icon}get iconClassName(){return this.raw.iconClassName}get className(){return this.raw.className}get twisterClassName(){return this.raw.twisterClassName}get indentOffset(){return this.raw.indentOffset}get twisterPlaceholderClassName(){return this.raw.twisterPlaceholderClassName}get raw(){return this._raw}}e.BasicTreeNode=I},17462:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BasicTreeNodeRenderer=void 0;const n=t(85608),a=n.__importDefault(t(53373)),o=n.__importStar(t(14041)),I=t(48412),g=t(54713),u=t(3660),G=t(78569),p=t(92532);t(12794);const b=({item:m,className:d,itemHeight:s=22,indent:l=8,baseIndent:r=8,onClick:c,onDbClick:h,onTwistierClick:v,onIconClick:f,onContextMenu:W,decorations:N,inlineMenus:Z=[],inlineMenuActuator:y=()=>{}})=>{const E=(0,o.useCallback)(D=>{c&&(D.stopPropagation(),c(D,m))},[c]),R=(0,o.useCallback)(D=>{h&&(D.stopPropagation(),h(D,m))},[h]),A=(0,o.useCallback)(D=>{W&&(D.stopPropagation(),D.preventDefault(),W(D,m))},[W]),w=(0,o.useCallback)(D=>{D.stopPropagation(),v?v(D,m):c&&c(D,m)},[c,v]),F=(0,o.useCallback)(D=>{D.stopPropagation(),f?f(D,m):c&&c(D,m)},[c,f]);let Y=(m.depth>0?m.depth-1:0)*l;r&&(Y+=r),m.indentOffset&&(Y+=m.indentOffset);const _={height:s,lineHeight:`${s}px`,paddingLeft:`${Y}px`},H=(0,o.useCallback)(D=>o.default.createElement(g.Icon,{onClick:F,icon:D.icon,className:(0,a.default)("icon",D.iconClassName)}),[]),S=(0,o.useCallback)(D=>D.displayName.replace(/\n/g,"\u21B5"),[]),X=(0,o.useCallback)(D=>D.displayName&&o.default.createElement("div",{className:(0,a.default)("segment","display_name")},S(D)),[]),Q=(0,o.useCallback)(D=>D.renderLabel,[]),O=(0,o.useCallback)(D=>D.description?typeof D.description=="string"?o.default.createElement("div",{className:(0,a.default)("segment_grow","description")},D.description):D.description:null,[]),M=(0,o.useCallback)(D=>{if(Array.isArray(Z))return Z;if(typeof Z=="function")return Z(D)},[Z]),T=()=>{var D;const J=G.BasicCompositeTreeNode.is(m),k=(D=M(m))===null||D===void 0?void 0:D.filter(P=>J?P.position===p.IBasicInlineMenuPosition.TREE_CONTAINER:P.position===p.IBasicInlineMenuPosition.TREE_NODE);if(!k?.length)return null;const z=(0,o.useCallback)((P,U)=>{P.stopPropagation(),y(m,U)},[]);return o.default.createElement("div",{className:(0,a.default)("segment","tail")},k.map(P=>o.default.createElement(I.Button,{style:{marginRight:"5px"},type:"icon",key:`${m.id}-${P.icon}`,icon:P.icon,title:P.title,onClick:U=>z(U,P)})))},x=(D,J)=>N&&N?.classlist.indexOf(p.DECORATIONS.LOADING)>-1?o.default.createElement(u.Loading,null):o.default.createElement(g.Icon,{className:(0,a.default)("segment","expansion_toggle",D.twisterClassName,{mod_collapsed:!D.expanded}),onClick:J,icon:"arrow-right"}),B=D=>{if(!D.expandable)return o.default.createElement("div",{className:(0,a.default)("segment","expansion_toggle",D.twisterPlaceholderClassName)});if(G.BasicCompositeTreeNode.is(D))return x(D,w)};return o.default.createElement("div",{key:m.id,onClick:E,onDoubleClick:R,onContextMenu:A,className:(0,a.default)("tree_node",d,N?N.classlist:null,m.className),style:_,"data-id":m.id},o.default.createElement("div",{className:"content"},B(m),H(m),o.default.createElement("div",{className:"overflow_wrap"},Q(m)||X(m),O(m)),T()))};e.BasicTreeNodeRenderer=b},45203:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BasicTreeModel=e.BasicTreeService=void 0;const n=t(70392),a=t(43685),o=t(34054),I=t(78569),g=t(92532);class u extends a.Tree{constructor(b,m,d,s={}){super(),this._treeData=b,this._resolveChildren=m,this._sortComparator=d,this.treeOptions=s,this.selectedDecoration=new a.Decoration(g.DECORATIONS.SELECTED),this.focusedDecoration=new a.Decoration(g.DECORATIONS.FOCUSED),this.contextMenuDecoration=new a.Decoration(g.DECORATIONS.ACTIVED),this.loadingDecoration=new a.Decoration(g.DECORATIONS.LOADING),this._selectedNodes=[],this.disposableCollection=new n.DisposableCollection,this.decorationDisposableCollection=new n.DisposableCollection,this.onDidUpdateTreeModelEmitter=new n.Emitter,this.sortComparator=(l,r)=>{if(this._sortComparator){const c=this._sortComparator(l.raw,r.raw);if(typeof c<"u")return c}return super.sortComparator(l,r)},this.activeFocusedDecoration=l=>{var r;this._contextMenuNode&&(this.clearDecoration(this.contextMenuDecoration),this.clearDecoration(this.focusedDecoration),this.clearDecoration(this.selectedDecoration),this._contextMenuNode=void 0),l&&(this.selectedNodes.length>0&&this.clearDecoration(this.selectedDecoration),this.focusedNode&&(this.clearDecoration(this.focusedDecoration),this._focusedNode=void 0),this.selectedDecoration.addTarget(l),this.focusedDecoration.addTarget(l),this._focusedNode=l,this._selectedNodes=[l],(r=this.model)===null||r===void 0||r.dispatchChange())},this.activeContextMenuDecoration=l=>{var r;this._contextMenuNode&&(this.clearDecoration(this.contextMenuDecoration),this._contextMenuNode=void 0),this.focusedNode&&(this.clearDecoration(this.focusedDecoration),this._focusedNode=void 0),this.contextMenuDecoration.addTarget(l),this._contextMenuNode=l,(r=this.model)===null||r===void 0||r.dispatchChange()},this.enactiveFocusedDecoration=()=>{var l;this.focusedNode&&(this.clearDecoration(this.focusedDecoration),this._focusedNode=void 0,(l=this.model)===null||l===void 0||l.dispatchChange())},this.disposableCollection.push(this.onDidUpdateTreeModelEmitter)}setUpTreeModel(){this._root=new I.BasicTreeRoot(this,void 0,{children:this._treeData,label:"",command:"",icon:""},{treeName:this.treeOptions.treeName}),this._model=new G,this._model.init(this._root),this.initDecorations(this._root),this.onDidUpdateTreeModelEmitter.fire(this._model)}resetState(){this._selectedNodes=[],this._contextMenuNode=void 0,this._focusedNode=void 0}get onDidUpdateTreeModel(){return this.onDidUpdateTreeModelEmitter.event}get model(){return this._model}get root(){return this._root}get decorations(){return this._decorations}initDecorations(b){this.decorationDisposableCollection.dispose(),this._decorations=new a.DecorationsManager(b),this._decorations.addDecoration(this.selectedDecoration),this._decorations.addDecoration(this.focusedDecoration),this._decorations.addDecoration(this.contextMenuDecoration),this._decorations.addDecoration(this.loadingDecoration),this.decorationDisposableCollection.push(b.watcher.on(o.TreeNodeEvent.WillResolveChildren,m=>{this.loadingDecoration.addTarget(m)})),this.decorationDisposableCollection.push(b.watcher.on(o.TreeNodeEvent.DidResolveChildren,m=>{this.loadingDecoration.removeTarget(m)})),this.decorationDisposableCollection.push(this._decorations)}updateTreeData(b){this._treeData=b,this.resetState(),this.setUpTreeModel()}async resolveChildren(b){return this._resolveChildren?this.transformTreeNode(b,this._resolveChildren(b?.raw)||[]):this.transformTreeNode(b,b?.raw.children||[])}transformTreeNode(b,m){if(!m)return[];const d=[];for(const s of m)s.children?d.push(new I.BasicCompositeTreeNode(this,b,s)):d.push(new I.BasicTreeNode(this,b,s));return d}get selectedNodes(){return this._selectedNodes}get focusedNode(){return this._focusedNode}get contextMenuNode(){return this._contextMenuNode}clearDecoration(b){for(const m of b.appliedTargets.keys())b.removeTarget(m)}dispose(){super.dispose(),this.disposableCollection.dispose(),this.decorationDisposableCollection.dispose()}}e.BasicTreeService=u;class G extends a.TreeModel{}e.BasicTreeModel=G},92532:(L,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DECORATIONS=e.IBasicInlineMenuPosition=void 0;var t;(function(n){n[n.TREE_NODE=1]="TREE_NODE",n[n.TREE_CONTAINER=2]="TREE_CONTAINER"})(t=e.IBasicInlineMenuPosition||(e.IBasicInlineMenuPosition={})),e.DECORATIONS={SELECTED:"mod_selected",FOCUSED:"mod_focused",ACTIVED:"mod_actived",LOADING:"mod_loading"}},24786:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.RecycleTreeAdaptiveDecorator=void 0;const a=t(85608).__importDefault(t(14041)),o=t(34054),I=g=>u=>{const{model:G,itemHeight:p,onReady:b}=u,m=a.default.useRef(),d=a.default.useRef(!1),[s,l]=a.default.useState(0),r=()=>{l(G.root.branchSize*p)},c=h=>{b&&b(Object.assign(Object.assign({},h),{promptNewTreeNode:async v=>{var f;const W=await h.promptNewTreeNode(v);return!((f=m.current)===null||f===void 0)&&f.root.branchSize?l(m.current.root.branchSize*p+p):l(p),d.current=!1,W.onDestroy(()=>{var N;!((N=m.current)===null||N===void 0)&&N.root.branchSize&&l(m.current.root.branchSize*p)}),W.onCancel(()=>{m.current&&l(m.current.root.branchSize*p)}),W.onBlur(()=>d.current),W},promptNewCompositeTreeNode:async v=>{var f;const W=await h.promptNewCompositeTreeNode(v);return!((f=m.current)===null||f===void 0)&&f.root.branchSize?l(m.current.root.branchSize*p+p):l(p),W.onDestroy(()=>{var N;!((N=m.current)===null||N===void 0)&&N.root.branchSize&&l(m.current.root.branchSize*p)}),W.onCancel(()=>{var N;!((N=m.current)===null||N===void 0)&&N.root.branchSize&&l(m.current.root.branchSize*p)}),W.onBlur(()=>d.current),W}}))};return a.default.useEffect(()=>{m.current=G,m.current.root&&(l(m.current.root.branchSize*p),m.current.root.watcher.on(o.TreeNodeEvent.DidChangeExpansionState,r))},[G]),a.default.useEffect(()=>{setTimeout(()=>{d.current=!0},100)},[s]),a.default.createElement(a.default.Fragment,null,a.default.createElement(g,Object.assign(Object.assign({},u),{height:s,onReady:c})))};e.RecycleTreeAdaptiveDecorator=I},326:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.RecycleTreeFilterDecorator=void 0;const n=t(85608),a=n.__importDefault(t(97331)),o=n.__importStar(t(14041)),I=t(54713),g=t(50708),u=t(4981);t(69715);const G=30,p=500,b=d=>{const{localize:s}=o.default.useContext(u.LocalizeContext);return o.default.createElement("div",{className:"kt-recycle-tree-filter-wrapper"},o.default.createElement(g.Input,Object.assign({hasClear:!0,autoFocus:!0,className:"kt-recycle-tree-filter-input",size:"small"},d,{placeholder:d.placeholder||s("tree.filter.placeholder"),addonBefore:o.default.createElement(I.Icon,{className:"kt-recycle-tree-filter-icon",icon:"retrieval"})})))},m=d=>s=>{const[l,r]=o.default.useState(""),[c,h]=o.default.useState(""),{beforeFilterValueChange:v,filterEnabled:f,height:W,filterPlaceholder:N,filterAfterClear:Z,onReady:y,onFilterBlur:E,filterAutoFocus:R}=s,A=n.__rest(s,["beforeFilterValueChange","filterEnabled","height","filterPlaceholder","filterAfterClear","onReady","onFilterBlur","filterAutoFocus"]),w=(0,a.default)(async Y=>{v&&await v(Y),h(Y)},p),F=(0,o.useCallback)(Y=>{r(Y),w(Y)},[l]),V=(0,o.useCallback)(Y=>{y&&y(Object.assign(Object.assign({},Y),{clearFilter:()=>{h(""),r("")}}))},[y]);return o.default.createElement(o.default.Fragment,null,f&&o.default.createElement(b,{afterClear:Z,placeholder:N,value:l,autoFocus:R,onBlur:E,onValueChange:F}),o.default.createElement(d,Object.assign(Object.assign({},A),{height:W-(f?G:0),onReady:V,filter:c})))};e.RecycleTreeFilterDecorator=m},72731:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});const n=t(85608);n.__exportStar(t(326),e),n.__exportStar(t(24786),e)},91416:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});const n=t(85608);n.__exportStar(t(57621),e),n.__exportStar(t(13429),e),n.__exportStar(t(48103),e),n.__exportStar(t(43685),e),n.__exportStar(t(34054),e),n.__exportStar(t(72731),e),n.__exportStar(t(75821),e)},65601:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.NewPromptHandle=void 0;const n=t(43685),a=t(65747);class o extends a.PromptHandle{constructor(g,u){super(),this.type=g,this.parent=u,this._id=n.TreeNode.nextId()}get id(){return this._id}get depth(){return this.parent.depth+1}}e.NewPromptHandle=o},65747:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.PromptHandle=e.VALIDATE_CLASS_NAME=e.PROMPT_VALIDATE_TYPE=void 0;const n=t(70392),a=t(50708),o=t(84605),I=p=>new Promise(b=>setTimeout(b,p));var g;(function(p){p[p.INFO=1]="INFO",p[p.ERROR=2]="ERROR",p[p.WARNING=3]="WARNING"})(g=e.PROMPT_VALIDATE_TYPE||(e.PROMPT_VALIDATE_TYPE={}));var u;(function(p){p.INFO="validate-info",p.ERROR="validate-error",p.WARNING="validate-warning"})(u=e.VALIDATE_CLASS_NAME||(e.VALIDATE_CLASS_NAME={}));class G{constructor(){this.disposables=new n.DisposableCollection,this.isInPendingCommitState=!1,this._destroyed=!1,this._hasValidateElement=!1,this._hasAddonAfter=!1,this._inComposition=!1,this.onChangeEmitter=new n.Emitter,this.onCommitEmitter=new n.Emitter,this.onCancelEmitter=new n.Emitter,this.onFocusEmitter=new n.Emitter,this.onBlurEmitter=new n.Emitter,this.onDestroyEmitter=new n.Emitter,this.markdownRenderer=(0,o.createMarkedRenderer)(),this.handleClick=b=>{b.stopPropagation()},this.handleDBClick=b=>{b.stopPropagation()},this.handleCompositionstart=()=>{this._inComposition=!0},this.handleCompositionend=()=>{this._inComposition=!1},this.handleKeyup=()=>{this._inComposition||this.onChangeEmitter.fire(this.$.value)},this.handleKeydown=async b=>{if(!this._inComposition){if(b.key==="Escape"){if((await this.onCancelEmitter.fireAndAwait(this.$.value)).some(d=>d.result===!1||!!d.err))return;this.destroy()}if(b.key==="Enter"){if(this.isInPendingCommitState=!0,this.$.disabled=!0,(await this.onCommitEmitter.fireAndAwait(this.$.value)).some(d=>d.result===!1||!!d.err)){this.isInPendingCommitState=!1,this.$.disabled=!1,this.$.focus();return}this.isInPendingCommitState=!1,this.$.disabled=!1,this.destroy()}}},this.handleFocus=()=>{this.onFocusEmitter.fire(this.$.value)},this.handleBlur=async b=>{await I(0),!(!this.$.isConnected&&!this.destroyed||(await this.onBlurEmitter.fireAndAwait(this.$.value)).some(d=>d.result===!1||!!d.err))&&(this.isInPendingCommitState||this.destroy())},this.$=document.createElement("input"),this.$.setAttribute("type","text"),this.$.setAttribute("name","no_keybinding"),this.$.setAttribute("spellcheck","false"),this.$.setAttribute("autoCapitalize","off"),this.$.setAttribute("autoCorrect","off"),this.$.setAttribute("autoComplete","off"),this.ProxiedInput=(0,a.bindInputElement)(this.$),this.$.addEventListener("click",this.handleClick),this.$.addEventListener("dblclick",this.handleDBClick),this.$.addEventListener("keyup",this.handleKeyup),this.$.addEventListener("keydown",this.handleKeydown),this.$.addEventListener("focus",this.handleFocus),this.$.addEventListener("blur",this.handleBlur),this.$.addEventListener("compositionstart",this.handleCompositionstart),this.$.addEventListener("compositionend",this.handleCompositionend),this.$validate=document.createElement("div"),this.$validate.setAttribute("style","top: 100%;"),this.$addonAfter=document.createElement("div"),this.$addonAfter.setAttribute("class","kt-input-addon-after")}get destroyed(){return this._destroyed}get onChange(){return this.onChangeEmitter.event}get onCommit(){return this.onCommitEmitter.event}get onCancel(){return this.onCancelEmitter.event}get onFocus(){return this.onFocusEmitter.event}get onBlur(){return this.onBlurEmitter.event}get onDestroy(){return this.onDestroyEmitter.event}focus(){this.$.focus()}setSelectionRange(b,m){this.$.setSelectionRange(b,m)}addClassName(b){this.$.classList.add(b)}removeClassName(b){this.$.classList.remove(b)}addAddonAfter(b){var m,d;!this._hasAddonAfter&&!this._destroyed&&((d=(m=this.$.parentElement)===null||m===void 0?void 0:m.parentElement)===null||d===void 0||d.appendChild(this.$addonAfter),this._hasAddonAfter=!0);const s=document.createElement("div");s.setAttribute("class",b),this.$addonAfter.appendChild(s)}removeAddonAfter(){var b,m,d;this._hasAddonAfter&&((b=this.$addonAfter.firstChild)===null||b===void 0||b.remove(),(d=(m=this.$.parentElement)===null||m===void 0?void 0:m.parentElement)===null||d===void 0||d.removeChild(this.$addonAfter),this._hasAddonAfter=!1)}addValidateMessage(b){var m,d,s,l,r,c,h;!this._hasValidateElement&&!this._destroyed&&((s=(d=(m=this.$.parentElement)===null||m===void 0?void 0:m.parentElement)===null||d===void 0?void 0:d.parentElement)===null||s===void 0||s.appendChild(this.$validate),this._hasValidateElement=!0);let v="validate-message popup ";b&&b.type===g.ERROR?this._validateClassName=u.ERROR:b&&b.type===g.WARNING?this._validateClassName=u.WARNING:this._validateClassName=u.INFO,v+=this._validateClassName,this.$validate.classList.value=v,this.$validate.innerHTML=(0,o.toMarkdownHtml)(b.message||"",{renderer:this.markdownRenderer}),(r=(l=this.$.parentElement)===null||l===void 0?void 0:l.parentElement)===null||r===void 0||r.classList.remove(u.INFO,u.ERROR,u.WARNING),(h=(c=this.$.parentElement)===null||c===void 0?void 0:c.parentElement)===null||h===void 0||h.classList.add(this._validateClassName)}removeValidateMessage(){var b,m,d,s,l;this._hasValidateElement&&((d=(m=(b=this.$.parentElement)===null||b===void 0?void 0:b.parentElement)===null||m===void 0?void 0:m.parentElement)===null||d===void 0||d.removeChild(this.$validate),this._hasValidateElement=!1,(l=(s=this.$.parentElement)===null||s===void 0?void 0:s.parentElement)===null||l===void 0||l.classList.remove(this._validateClassName))}destroy(){if(this._destroyed)return;const b=this.focusPrevActiveElement();this._destroyed=!0,this.$.removeEventListener("click",this.handleClick),this.$.removeEventListener("keyup",this.handleKeyup),this.$.removeEventListener("keydown",this.handleKeydown),this.$.removeEventListener("focus",this.handleFocus),this.$.removeEventListener("blur",this.handleBlur),this.removeValidateMessage(),this.removeAddonAfter(),this.$.disabled=!1,this.onDestroyEmitter.fire(this.$.value),this.disposables.dispose(),requestAnimationFrame(()=>{b?.focus()})}focusPrevActiveElement(){let b=this.$.parentElement;for(;b&&!(typeof b.attributes.tabindex<"u");)b=b?.parentElement;return b}}e.PromptHandle=G},58357:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.RenamePromptHandle=void 0;const n=t(65747);class a extends n.PromptHandle{constructor(I,g){super(),this.originalFileName=I,this.target=g,this.$.value=I,this.setSelectionRange(0,I.lastIndexOf("."))}get id(){return this.target.id}get depth(){return this.target.depth}}e.RenamePromptHandle=a},48103:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});const n=t(85608);n.__exportStar(t(65747),e),n.__exportStar(t(58357),e),n.__exportStar(t(65601),e)},29805:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Tree=void 0;const n=t(70392),a=t(26353);class o{constructor(){this.onChangedEmitter=new n.Emitter,this.toDispose=new n.DisposableCollection,this.nodes={}}dispose(){var g;this.toDispose.dispose(),(g=this._root)===null||g===void 0||g.dispose()}get root(){return this._root}set root(g){var u;g!==this._root&&((u=this._root)===null||u===void 0||u.dispose(),this._root=g)}fireChanged(){this.onChangedEmitter.fire(void 0)}sortComparator(g,u){return g.constructor===u.constructor?g.name>u.name?1:g.name<u.name?-1:0:a.CompositeTreeNode.is(g)?-1:a.CompositeTreeNode.is(u)?1:0}}e.Tree=o},26353:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CompositeTreeNode=e.TreeNode=e.BranchOperatorStatus=e.spliceArray=void 0;const n=t(70392),a=t(34054),{Path:o}=n.path;function I(p,b,m=0,d){const s=p.slice(0);return s.splice(b,m,...d||[]),s}e.spliceArray=I;var g;(function(p){p[p.EXPANDED=1]="EXPANDED",p[p.SHRINKED=2]="SHRINKED"})(g=e.BranchOperatorStatus||(e.BranchOperatorStatus={}));class u{static is(b){return!!b&&"depth"in b&&"name"in b&&"path"in b&&"id"in b}static getTreeNodeById(b){return u.idToTreeNode.get(b)}static getTreeNodeByPath(b){return u.pathToTreeNode.get(b)}static setTreeNode(b,m,d){u.idToTreeNode.set(b,d),u.pathToTreeNode.set(m,d)}static removeTreeNode(b,m){u.idToTreeNode.delete(b),u.pathToTreeNode.delete(m)}static getIdByPath(b){return u.pathToId.get(b)}static setIdByPath(b,m){return u.pathToId.set(b,m)}static getGlobalTreeState(b){let m=u.pathToGlobalTreeState.get(b);return m||(m={isExpanding:!1,isLoadingPath:!1,isRefreshing:!1,refreshCancelToken:new n.CancellationTokenSource,loadPathCancelToken:new n.CancellationTokenSource}),m}static setGlobalTreeState(b,m){let d=u.pathToGlobalTreeState.get(b);return d||(d={isExpanding:!1,isLoadingPath:!1,isRefreshing:!1,refreshCancelToken:new n.CancellationTokenSource,loadPathCancelToken:new n.CancellationTokenSource}),d=Object.assign(Object.assign({},d),m),u.pathToGlobalTreeState.set(b,d),d}constructor(b,m,d,s){this._uid=u.nextId(),this._parent=m,this._tree=b,this._disposed=!1,this._visible=!0,this._metadata=Object.assign({},s||{}),this._depth=m?m.depth+1:0,d?this._watcher=d:m&&(this._watcher=m.watcher)}get disposed(){return this._disposed}get depth(){return this._depth}get parent(){return this._parent}set parent(b){this._parent=b,this._path=""}get type(){return a.TreeNodeType.TreeNode}get id(){return this._uid}set id(b){this._uid=b}get displayName(){return this.name}get name(){return this.parent?this.getMetadata("name")||String(this.id):`root_${this.id}`}set name(b){this.addMetadata("name",b),this._path=""}get path(){return this._path||(this.parent?this._path=new o(this.parent.path).join(this.name).toString():this._path=new o(`${o.separator}${this.name}`).toString()),this._path}get accessibilityInformation(){return{label:this.name,role:"treeitem"}}getMetadata(b){return b==="name"&&!this._metadata[b]&&(this._metadata[b]=String(u.nextId())),this._metadata[b]}addMetadata(b,m){if(!(b in this._metadata))this._metadata[b]=m,this._watcher.notifyDidChangeMetadata(this,{type:a.MetadataChangeType.Added,key:b,prevValue:void 0,value:m});else{const d=this._metadata[b];this._metadata[b]=m,this._watcher.notifyDidChangeMetadata(this,{type:a.MetadataChangeType.Updated,key:b,prevValue:d,value:m})}}removeMetadata(b){if(b in this._metadata){const m=this._metadata[b];delete this._metadata[b],this._watcher.notifyDidChangeMetadata(this,{type:a.MetadataChangeType.Removed,key:b,prevValue:m,value:void 0})}}mv(b,m=this.name){const d=this._parent;if(b===null||!G.is(b)){this.parent=void 0,this.dispose();return}const s=d!==b,l=this.path;this._depth=b.depth+1,(s||m!==this.name)&&(this.name=m,s&&this._watcher.notifyWillChangeParent(this,d,b),this.parent&&(this.parent.unlinkItem(this,!0),this.parent=b,this.parent.insertItem(this)),s&&this._watcher.notifyDidChangeParent(this,d,b)),this.path!==l&&this._watcher.notifyDidChangePath(this)}get visible(){return this._visible}setVisible(b){return this._visible=b,this}dispose(){this._disposed||(u.removeTreeNode(this.id,this.path),this._disposed=!0,this._watcher.notifyDidDispose(this))}}e.TreeNode=u,u.nextId=(()=>{let p=0;return()=>p++})(),u.idToTreeNode=new Map,u.pathToTreeNode=new Map,u.pathToId=new Map,u.pathToGlobalTreeState=new Map;class G extends u{static defaultSortComparator(b,m){return b.constructor===m.constructor?b.name>m.name?1:b.name<m.name?-1:0:G.is(b)?-1:G.is(m)?1:0}static is(b){return!!b&&"children"in b}static isRoot(b){return G.is(b)&&!b.parent}generatorWatcher(){const b=new n.Emitter,m=b.event,d=new n.DisposableCollection,s=r=>{this.watchEvents.delete(r)};return{notifyWillProcessWatchEvent:(r,c)=>{b.fire({type:a.TreeNodeEvent.WillProcessWatchEvent,args:[r,c]})},notifyWillChangeParent:(r,c,h)=>{b.fire({type:a.TreeNodeEvent.WillChangeParent,args:[r,c,h]})},notifyDidChangeParent:(r,c,h)=>{b.fire({type:a.TreeNodeEvent.DidChangeParent,args:[r,c,h]})},notifyDidDispose:r=>{b.fire({type:a.TreeNodeEvent.DidDispose,args:[r]})},notifyDidProcessWatchEvent:(r,c)=>{b.fire({type:a.TreeNodeEvent.DidProcessWatchEvent,args:[r,c]})},notifyDidChangePath:r=>{b.fire({type:a.TreeNodeEvent.DidChangePath,args:[r]})},notifyWillChangeExpansionState:(r,c)=>{const h=this.isItemVisibleAtSurface(r);b.fire({type:a.TreeNodeEvent.WillChangeExpansionState,args:[r,c,h]})},notifyDidChangeExpansionState:(r,c)=>{const h=this.isItemVisibleAtSurface(r);b.fire({type:a.TreeNodeEvent.DidChangeExpansionState,args:[r,c,h]})},notifyDidChangeMetadata:(r,c)=>{b.fire({type:a.TreeNodeEvent.DidChangeMetadata,args:[r,c]})},notifyDidUpdateBranch:()=>{b.fire({type:a.TreeNodeEvent.BranchDidUpdate,args:[]})},notifyWillResolveChildren:(r,c)=>{b.fire({type:a.TreeNodeEvent.WillResolveChildren,args:[r,c]})},notifyDidResolveChildren:(r,c)=>{b.fire({type:a.TreeNodeEvent.DidResolveChildren,args:[r,c]})},on:(r,c)=>{const h=m(v=>{v.type===r&&c(...v.args)});return d.push(h),h},onWatchEvent:(r,c)=>{const h=s;return this.watchEvents.set(r,{terminator:h,callback:c}),h},dispose:d}}constructor(b,m,d,s){super(b,m,d,s),this._children=null,this._lock=!1,this.refreshThrottler=new n.ThrottledDelayer(G.REFRESH_DELAY),this.toRefreshPathQueue=new Set,this.handleWatchEvent=async l=>{switch(this.watcher.notifyWillProcessWatchEvent(this,l),l.type){case a.WatchEvent.Moved:{const{oldPath:r,newPath:c}=l;if(typeof r!="string")throw new TypeError("Expected oldPath to be a string");if(typeof c!="string")throw new TypeError("Expected newPath to be a string");if(o.isRelative(r))throw new TypeError("oldPath must be absolute");if(o.isRelative(c))throw new TypeError("newPath must be absolute");this.transferItem(r,c);break}case a.WatchEvent.Added:{const{node:r}=l;if(!u.is(r))throw new TypeError("Expected node to be a TreeNode");this.insertItem(r);break}case a.WatchEvent.Removed:{const{path:r}=l,c=new o(r),h=c.dir.toString(),v=c.base.toString();if(h===this.path&&this.children){const f=this.children.find(W=>W.name===v);f&&this.unlinkItem(f)}break}default:this.isItemVisibleAtRootSurface(this)?await this.refresh():(this.isExpanded=!1,this._children=null);break}this.watcher.notifyDidProcessWatchEvent(this,l)},this.isExpanded=!m,this._branchSize=0,m?this._watcher=m.watcher:(this.watchEvents=new Map,this._watcher=this.generatorWatcher(),this._root=this,u.setTreeNode(this.id,this.path,this))}set name(b){const m=this.path;!G.isRoot(this)&&typeof this.watchTerminator=="function"?(this.watchTerminator(m),this.addMetadata("name",b),this.watchTerminator=this.watcher.onWatchEvent(this.path,this.handleWatchEvent)):this.addMetadata("name",b),this._path=""}get name(){return this.parent?this.getMetadata("name"):`root_${this.id}`}get watcher(){return this._watcher}get type(){return a.TreeNodeType.CompositeTreeNode}get children(){return this._children}get expanded(){return this.isExpanded}get branchSize(){return this._branchSize}get flattenedBranch(){return this._flattenedBranch}get lock(){return this._lock}get root(){return(0,n.isUndefined)(this._root)&&(this._root=this.getRoot()||null),this._root}getRoot(){let b=this.parent;for(;b&&b.parent;)b=b.parent;return b}async ensureLoaded(b){if(!this._children)return await this.hardReloadChildren(b)}async setExpanded(b=!0,m=!1,d=!0,s){if(!this.disposed&&!G.isRoot(this)&&!this.isExpanded){if(d){const l=u.getGlobalTreeState(this.path);l.loadPathCancelToken.cancel(),l.refreshCancelToken.cancel(),u.setGlobalTreeState(this.path,{isExpanding:!0})}if(this.isExpanded=!0,this._children===null&&(this._watcher.notifyWillResolveChildren(this,this.isExpanded),await this.hardReloadChildren(s),this._watcher.notifyDidResolveChildren(this,this.isExpanded),!this.isExpanded||s?.isCancellationRequested)){d&&u.setGlobalTreeState(this.path,{isExpanding:!1});return}if(b&&this.parent&&G.is(this.parent)&&await this.parent.setExpanded(!0,!m,!1,s),s?.isCancellationRequested){d&&u.setGlobalTreeState(this.path,{isExpanding:!1});return}this.isExpanded&&(this._watcher.notifyWillChangeExpansionState(this,!0),this.expandBranch(this,m),this._watcher.notifyDidChangeExpansionState(this,!0)),d&&(u.setGlobalTreeState(this.path,{isExpanding:!1}),u.setTreeNode(this.id,this.path,this))}}getAllExpandedNodePath(){var b,m;const d=[];let s=0;G.isRoot(this)||(s=((b=this.root)===null||b===void 0?void 0:b.getIndexAtTreeNodeId(this.id))+1);const l=s+this.branchSize;for(let r=s;r<l;r++){const c=(m=this.root)===null||m===void 0?void 0:m.getTreeNodeAtIndex(r);G.is(c)&&c.expanded&&d.push(c.path)}return d}getAllCollapsedNodePath(){let b=[];if(this.children){for(let m=0;m<this.children.length;m++){const d=this.children[m];G.is(d)&&(d.isExpanded?b=b.concat(d.getAllCollapsedNodePath()):b.push(d.path))}return b}else return b}async resolveChildrens(b){var m,d,s;let l=this.children,r=[];try{l=await this._tree.resolveChildren(this)||[]}catch{l=[]}if(b?.isCancellationRequested)return!1;const c=new Array(l.length);this._children=Array(l.length);for(let v=0;v<l.length;v++){const f=l[v];f.id=u.getIdByPath(f.path)||f.id,this._children[v]=f,u.setIdByPath(f.path,f.id)}(m=this._children)===null||m===void 0||m.sort(this._tree.sortComparator||G.defaultSortComparator);for(let v=0;v<l.length;v++)c[v]=this._children[v].id;const h=[];for(let v=0,f=((d=this.children)===null||d===void 0?void 0:d.length)||0;v<f;v++){const W=(s=this.children)===null||s===void 0?void 0:s[v];if(G.is(W)&&W.expanded){const N=await W.resolveChildrens(b);if(N&&(r=r.concat(N)),b?.isCancellationRequested)return;h.push(W)}}this._branchSize=c.length,this.setFlattenedBranch(c);for(let v=0;v<h.length;v++){const f=h[v];f.expandBranch(f,!0)}return r.concat(h.map(v=>v.path.toString()))}updateTreeNodeCache(b){var m;if(u.setTreeNode(b.id,b.path,b),G.is(b)&&b.expanded&&(!((m=b.children)===null||m===void 0)&&m.length))for(let d=0;d<b.children.length;d++){const s=b.children[d];this.updateTreeNodeCache(s)}}async refreshTreeNodeByPaths(b=this.getAllExpandedNodePath(),m,d){if(!G.is(this))return;let s;const l=this.children;let r=this.children||[];if(this.expanded){if(this===d){try{r=await this._tree.resolveChildren(this)||[]}catch{r=[]}if(m?.isCancellationRequested)return;if(!this.expanded){if(this.children&&this.children&&this.parent){for(let c=0;c<this.children.length;c++)this.children[c].dispose();this._children=null}return}}for(;s=b.shift();){if(!(s.indexOf(`${this.path}${o.separator}`)>-1)){s===this.path&&(s=void 0);break}const h=r?.find(v=>v.path===s);if(h){if(G.is(h)&&!h.expanded){h.isExpanded=!0;const v=await h.resolveChildrens(m);if(m?.isCancellationRequested||(v&&(b=b.filter(f=>!v.find(W=>W.includes(f)))),b.length>0&&!m?.isCancellationRequested&&(b=await h.refreshTreeNodeByPaths([...b],m,d)||[],m?.isCancellationRequested)))return}}else{if(!r||r.length===0)break;for(let v=0;v<r.length;v++){const f=r[v];if(s.indexOf(`${f.path}${o.separator}`)===0&&G.is(f)){if(!G.is(f))continue;f.isExpanded=!0;const N=await f.resolveChildrens(m);if(m?.isCancellationRequested||(N&&(b=b.filter(Z=>!N.find(y=>y===Z))),f.path!==s&&!b.includes(f.path)&&b.unshift(s),b.length>0&&(b=await f.refreshTreeNodeByPaths([...b],m,d)||[],m?.isCancellationRequested)))return;break}}}}if(s){if(b.unshift(s),this===d){if(l){this.shrinkBranch(this,!0);for(let v=0;v<l.length;v++){const f=l[v];f?.dispose()}}const c=[],h=new Array(r.length);this._children=Array(r.length);for(let v=0;v<r.length;v++){const f=r[v];f.id=u.getIdByPath(f.path)||f.id,this._children[v]=f,u.setIdByPath(f.path,f.id),G.is(f)&&f.expanded&&c.push(f)}this._children.sort(this._tree.sortComparator||G.defaultSortComparator);for(let v=0;v<r.length;v++)h[v]=this._children[v].id;this._branchSize=h.length,this.setFlattenedBranch(h,!0),this.watcher.notifyDidUpdateBranch()}return this.parent!==d&&this.expandBranch(this,!0),b}else if(G.isRoot(this)){if(this.children){this.shrinkBranch(this,!0);for(let f=0;f<this.children.length;f++){const W=this.children[f];W?.dispose()}}const c=[],h=[],v=new Array(r.length);this._children=Array(r.length);for(let f=0;f<r.length;f++){const W=r[f];if(W.id=u.getIdByPath(W.path)||W.id,this._children[f]=W,u.setIdByPath(W.path,W.id),G.is(W)&&W.expanded){if(!W.children&&(await W.resolveChildrens(m),m?.isCancellationRequested))return;c.push(W)}else h.push(W)}this._children.sort(this._tree.sortComparator||G.defaultSortComparator);for(let f=0;f<r.length;f++)v[f]=this._children[f].id;this._branchSize=v.length,this.setFlattenedBranch(v,!0);for(let f=0;f<c.length;f++){const W=c[f];W.expandBranch(W,!0),this.updateTreeNodeCache(W)}for(let f=0;f<h.length;f++){const W=h[f];this.updateTreeNodeCache(W)}typeof this.watchTerminator=="function"&&this.watchTerminator(this.path),this.watchTerminator=this.watcher.onWatchEvent(this.path,this.handleWatchEvent),this.watcher.notifyDidUpdateBranch()}else{const c=[];if(this===d){if(this.children&&this.shrinkBranch(this,!0),this.children)for(let v=0,f=this.children.length;v<f;v++)this.children[v].dispose();const h=new Array(r.length);this._children=Array(r.length);for(let v=0,f=r.length;v<f;v++){const W=r[v];W.id=u.getIdByPath(W.path)||W.id,this._children[v]=W,u.setIdByPath(W.path,W.id),G.is(W)&&W.expanded&&c.push(W),this.updateTreeNodeCache(W)}this._children.sort(this._tree.sortComparator||G.defaultSortComparator);for(let v=0;v<r.length;v++)h[v]=this._children[v].id;this._branchSize=h.length,this.setFlattenedBranch(h);for(let v=0;v<c.length;v++){const f=c[v];f.expandBranch(f,!0)}}else for(let h=0;h<r.length;h++){const v=r[h];v.expanded&&c.push(v)}for(let h=0;h<c.length;h++){const v=c[h];v.expandBranch(v,!0)}typeof this.watchTerminator=="function"&&this.watchTerminator(this.path),this.watchTerminator=this.watcher.onWatchEvent(this.path,this.handleWatchEvent),this===d&&this.expandBranch(this)}}else{if(this.children&&this.children&&this.parent){for(let c=0,h=this.children.length;c<h;c++)this.children[c].dispose();this._children=null}return}}async expandedAll(b=this.getAllCollapsedNodePath()){if(!G.isRoot(this))return;b=b.sort((d,s)=>o.pathDepth(d)-o.pathDepth(s));let m;for(;b.length>0;){m=b.pop();const d=u.getTreeNodeByPath(m);G.is(d)&&await d.setExpanded(!1,!0)}this.watcher.notifyDidUpdateBranch()}async collapsedAll(b=this.getAllExpandedNodePath()){if(!G.isRoot(this))return;b=b.sort((d,s)=>o.pathDepth(d)-o.pathDepth(s));let m;for(;b.length>0;){m=b.pop();const d=u.getTreeNodeByPath(m);G.is(d)&&d.setCollapsed(!0)}this.watcher.notifyDidUpdateBranch()}setCollapsed(b=!1){if(G.isRoot(this)||this.disposed||!this.isExpanded)return;const m=u.getGlobalTreeState(this.path);m.isExpanding||(m.loadPathCancelToken.cancel(),m.refreshCancelToken.cancel(),this._watcher.notifyWillChangeExpansionState(this,!1),this._children&&this.parent&&this.shrinkBranch(this,b),this.isExpanded=!1,u.setTreeNode(this.id,this.path,this),this._watcher.notifyDidChangeExpansionState(this,!1))}mv(b,m=this.name){const d=this.path;if(super.mv(b,m),typeof this.watchTerminator=="function"&&(this.watchTerminator(d),this.watchTerminator=this.watcher.onWatchEvent(this.path,this.handleWatchEvent)),this.children)for(let s=0;s<this.children.length;s++){const l=this.children[s];l.mv(l.parent,l.name)}}insertItem(b){if(b.parent!==this){b.mv(this,b.name);return}if(this.children){for(let h=0;h<this.children.length;h++)if(this.children[h].path===b.path){this.children[h]=b;return}}const m=1+(b instanceof G&&b.expanded?b._branchSize:0);this._children&&(this._children.push(b),this._children.sort(this._tree.sortComparator||G.defaultSortComparator)),this._branchSize+=m;let d=this;for(;!d._flattenedBranch;)d.parent&&(d=d.parent,d._branchSize+=m);if(!this._children)return;let s=this._children.indexOf(b),l;const r=this._children[s-1];r?s=d._flattenedBranch.indexOf(r.id)+(r instanceof G&&r.expanded?r._branchSize:0):s=d._flattenedBranch.indexOf(this.id),s===-1&&this._branchSize===1&&(s=0),l=s+1,d._flattenedBranch.length===0&&(l=0);let c=[b.id];return b instanceof G&&b.expanded&&b._flattenedBranch&&(c=c.concat(b._flattenedBranch),b.setFlattenedBranch(null)),d.setFlattenedBranch(I(d._flattenedBranch,l,0,c)),u.setTreeNode(b.id,b.path,b),b}unlinkItem(b,m){var d;if(!this._children)return;const s=this._children.indexOf(b);if(s===-1||!this.isItemVisibleAtRootSurface(this))return;(d=this._children)===null||d===void 0||d.splice(s,1);const l=1+(b instanceof G&&b.expanded?b._branchSize:0);this._branchSize-=l;let r=this;for(;!r._flattenedBranch;)r.parent&&(r=r.parent,r._branchSize-=l);const c=r._flattenedBranch.indexOf(b.id);c!==-1&&(b instanceof G&&b.expanded&&b.setFlattenedBranch(r._flattenedBranch.slice(c+1,c+l)),r.setFlattenedBranch(I(r._flattenedBranch,c,l)),!m&&b.parent===this&&b.mv(null))}transferItem(b,m){var d;const s=new o(b),l=s.dir.toString();if(l!==this.path)return;const r=s.base.toString(),c=(d=this._children)===null||d===void 0?void 0:d.find(W=>W.name===r);if(!c)return;const h=new o(m),v=h.dir.toString(),f=v===l?this:u.getTreeNodeByPath(v);if(!G.is(f)){this.unlinkItem(c);return}return c.mv(f,h.base.toString()),c}dispose(){if(this.watchEvents){const b=this.watchEvents.get(this.path);b&&b.terminator(),this.watchEvents.clear()}this._children&&(this.isExpanded=!1,this._children.forEach(b=>{b.dispose()}),this._children=null,this._flattenedBranch=null),super.dispose()}setFlattenedBranch(b,m){this._flattenedBranch=b,G.isRoot(this)&&!m&&this.watcher.notifyDidUpdateBranch()}expandBranch(b,m){if(this!==b&&b._flattenedBranch&&(this._branchSize+=b._branchSize),this!==b&&this._flattenedBranch){const d=this._flattenedBranch.indexOf(b.id)+1;if(d===0)return;this.setFlattenedBranch(I(this._flattenedBranch,d,0,b._flattenedBranch),m),b.setFlattenedBranch(null,m)}else this.parent&&this.parent.expandBranch(b,m)}shrinkBranch(b,m){if(this!==b&&(this._branchSize-=b._branchSize),this!==b&&this._flattenedBranch){const d=this._flattenedBranch.indexOf(b.id)+1;if(d===0)return;b.setFlattenedBranch(this._flattenedBranch.slice(d,d+b._branchSize),m),this.setFlattenedBranch(I(this._flattenedBranch,d,b._flattenedBranch?b._flattenedBranch.length:0),m)}else this.parent&&this.parent.shrinkBranch(b,m)}async hardReloadChildren(b){let m;const d=this.path;try{m=await this._tree.resolveChildren(this)||[]}catch{m=[]}if(!this.expanded||b?.isCancellationRequested)return!1;this.path!==d&&u.setGlobalTreeState(d,{isExpanding:!1,isLoadingPath:!1,isRefreshing:!1});const s=[],l=new Array(m.length),r=new Array(m.length);for(let c=0;c<m.length;c++){const h=m[c];if(h.id=u.getIdByPath(h.path)||h.id,r[c]=h,u.setIdByPath(h.path,h.id),G.is(h)&&h.expanded){if(h.children||await h.resolveChildrens(b),b?.isCancellationRequested)return!1;s.push(h)}}r.sort(this._tree.sortComparator||G.defaultSortComparator);for(let c=0;c<m.length;c++)l[c]=r[c].id;if(this.children&&this.shrinkBranch(this),this.children)for(let c=0;c<this.children.length;c++){const h=this.children[c];h?.dispose()}for(let c=0;c<r.length;c++)this.updateTreeNodeCache(r[c]);this._children=r,this._branchSize=l.length,this.setFlattenedBranch(l);for(let c=0;c<s.length;c++){const h=s[c];h.expandBranch(h,!0)}return typeof this.watchTerminator=="function"&&this.watchTerminator(this.path),this.watchTerminator=this.watcher.onWatchEvent(this.path,this.handleWatchEvent),!0}moveNode(b,m){if(typeof b!="string")throw new TypeError("Expected oldPath to be a string");if(typeof m!="string")throw new TypeError("Expected newPath to be a string");if(o.isRelative(b))throw new TypeError("oldPath must be absolute");if(o.isRelative(m))throw new TypeError("newPath must be absolute");return this.transferItem(b,m)}addNode(b){if(!u.is(b))throw new TypeError("Expected node to be a TreeNode");return this.insertItem(b)}removeNode(b){const m=new o(b),d=m.dir.toString(),s=m.base.toString();if(d===this.path&&this.children){const l=this.children.find(r=>r.name===s);l&&this.unlinkItem(l)}}async refresh(b,m){if(!G.isRoot(this))return await this.root.refresh(b,this);const d=u.getGlobalTreeState(this.path);if(d.isLoadingPath||d.isExpanding)return;let s;if(b&&!b.token.isCancellationRequested)u.setGlobalTreeState(this.path,{isRefreshing:!0,refreshCancelToken:b}),s=b.token;else if(d.refreshCancelToken.token.isCancellationRequested){const l=new n.CancellationTokenSource;u.setGlobalTreeState(this.path,{isRefreshing:!0,refreshCancelToken:l}),s=l.token}else s=d.refreshCancelToken.token;this.toRefreshPathQueue.add((m||this).path),await this.refreshThrottler.trigger(()=>this.doRefresh(s)),u.setGlobalTreeState(this.path,{isRefreshing:!1})}async doRefresh(b){const m=this.getRefreshNode()||this;if(!G.is(m))return;const d=m.getAllExpandedNodePath();await m.refreshTreeNodeByPaths(d,b,m)}getRefreshNode(){let b=Array.from(this.toRefreshPathQueue);if(this.toRefreshPathQueue.clear(),!b.length)return this.root;if(b=b.sort((s,l)=>{const r=o.pathDepth(s),c=o.pathDepth(l);return r-c}),b.length===1||o.pathDepth(b[0])===1)return u.getTreeNodeByPath(b[0]);const m=b.map(s=>new o(s));let d=m[0];for(let s=1,l=m.length;s<l;s++)if(!d.isEqualOrParent(m[s]))for(;!d.isRoot&&(d=d.dir,!(!d||d.isEqualOrParent(m[s]))););return d?u.getTreeNodeByPath(d.toString()):this.root}isItemVisibleAtRootSurface(b){let m=b;for(;m.parent;)m=m.parent;return m.isItemVisibleAtSurface(b)}isItemVisibleAtSurface(b){return b===this?!0:!!this._flattenedBranch&&this._flattenedBranch.indexOf(b.id)>-1}transformToRelativePath(b){const{splitPath:m}=o,d=m(b);return d.shift(),d}async loadTreeNodeByPath(b,m=!1){if(!G.isRoot(this))return;const d=u.getGlobalTreeState(this.path);if(d.isExpanding)return;d.refreshCancelToken.cancel(),d.loadPathCancelToken.cancel();const s=new n.CancellationTokenSource;u.setGlobalTreeState(this.path,{isLoadingPath:!0,loadPathCancelToken:s});const l=s.token,r=[],{splitPath:c,isRelative:h}=o,v=h(b)?c(b):this.transformToRelativePath(b);if(v.length===0)return u.setGlobalTreeState(this.path,{isLoadingPath:!1}),this;if(this.children||await this.ensureLoaded(l),l.isCancellationRequested){u.setGlobalTreeState(this.path,{isLoadingPath:!1});return}let f=this._children,W,N="",Z;for(;f&&(Z=v.shift());){let y=f.find(E=>E.name.indexOf(Z)===0);if(y){if(G.is(y)){if(y._watcher.notifyWillChangeExpansionState(y,!0),y.isExpanded=!0,!y.children&&(await y.resolveChildrens(l),l.isCancellationRequested)){u.setGlobalTreeState(this.path,{isLoadingPath:!1});return}r.push(y),y._watcher.notifyDidChangeExpansionState(y,!0)}if(v.length===0){W=y;break}}if(!y&&W){const E=c(W.name).slice(1);if(E[0]===Z){for(E.shift();E.length>0&&E[0]===v[0];)E.shift(),v.shift();Z=v.shift(),y=f.find(R=>R.name.indexOf(Z)===0)}}if(!y||!G.is(y)&&v.length>0)break;if(G.is(y)){if(y.name.indexOf(o.separator)>0){const R=c(y.name).slice(1);for(;R.length>0&&R[0]===v[0];)R.shift(),v.shift()}if(!y._children&&(N=y.path,G.is(y))){if(y.isExpanded=!0,!y.children&&(await y.resolveChildrens(l),l.isCancellationRequested)){u.setGlobalTreeState(this.path,{isLoadingPath:!1});return}r.push(y)}if(y&&v.length===0){W=y;break}else{if(N&&N!==y.path){const R=c(N),A=c(y.path);A.length>R.length&&v.splice(0,A.length-R.length)}f=y._children,W=y}}}if(W){let y;if(W.disposed){u.setGlobalTreeState(this.path,{isLoadingPath:!1});return}for(;y=r.pop();)y.expandBranch(y,!0),r.length===0&&this.updateTreeNodeCache(y);return m||this.watcher.notifyDidUpdateBranch(),u.setGlobalTreeState(this.path,{isLoadingPath:!1}),W}u.setGlobalTreeState(this.path,{isLoadingPath:!1})}getIndexAtTreeNodeId(b){return this._flattenedBranch?this._flattenedBranch.indexOf(b):-1}getIndexAtTreeNode(b){return this._flattenedBranch?this._flattenedBranch.indexOf(b.id):-1}getTreeNodeAtIndex(b){var m;const d=(m=this._flattenedBranch)===null||m===void 0?void 0:m[b];if(d)return u.getTreeNodeById(d)}getTreeNodeById(b){return u.getTreeNodeById(b)}getTreeNodeByPath(b){return u.getTreeNodeByPath(b)}}e.CompositeTreeNode=G,G.REFRESH_DELAY=200},58781:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CompositeDecoration=e.ChangeReason=e.CompositeDecorationType=e.ClasslistComposite=void 0;const n=t(70392),a=t(96336);class o{constructor(p,b){this.addChangeListener=p,this.removeChangeListener=b}}e.ClasslistComposite=o;var I;(function(G){G[G.Applicable=1]="Applicable",G[G.Inheritable=2]="Inheritable"})(I=e.CompositeDecorationType||(e.CompositeDecorationType={}));var g;(function(G){G[G.UnTargetDecoration=1]="UnTargetDecoration",G[G.TargetDecoration=2]="TargetDecoration"})(g=e.ChangeReason||(e.ChangeReason={}));class u{constructor(p,b,m){this.handleDecorationDidAddClassname=d=>{const{classname:s}=d;!this.selfOwned||!s||(this.compositeCssClasslist.classlist.push(s),this.notifyClasslistChange())},this.handleDecorationDidRemoveClassname=d=>{const{classname:s}=d;if(!this.selfOwned||!s)return;const l=this.compositeCssClasslist.classlist.indexOf(s);l>-1&&(this.compositeCssClasslist.classlist.splice(l,1),this.notifyClasslistChange())},this.mergeDecorationClasslist=d=>{const{decoration:s}=d;this.selfOwned&&(this.compositeCssClasslist.classlist.push(...s.cssClassList),this.notifyClasslistChange())},this.handleDecorationDisable=d=>{const{decoration:s}=d;this.removeDecorationClasslist(s)},this.target=p,this.type=b,this.linkedComposites=new Set,this.classlistChangeCallbacks=new Set,this.compositeCssClasslist=new o(this.classlistChangeCallbacks.add.bind(this.classlistChangeCallbacks),this.classlistChangeCallbacks.delete.bind(this.classlistChangeCallbacks)),m?(this.selfOwned=!1,this.parent=m,this.renderedDecorations=m.renderedDecorations,this.compositeCssClasslist.classlist=m.compositeCssClasslist.classlist,m.linkedComposites.add(this)):(this.renderedDecorations=new Map,this.targetedDecorations=new Set,this.negatedDecorations=new Set,this.compositeCssClasslist.classlist=[],this.selfOwned=!0)}changeParent(p){if(p){if(!this.selfOwned)return this.parentOwn(p);for(const[b]of this.renderedDecorations)this.recursiveRefresh(this,!1,g.UnTargetDecoration,b,!1);this.parent!==p&&(this.parent.linkedComposites.delete(this),this.parent=p,p.linkedComposites.add(this));for(const[b]of p.renderedDecorations)this.recursiveRefresh(this,!1,g.TargetDecoration,b,!1)}}add(p){const b=p.appliedTargets.get(this.target),m=b&&(b===a.TargetMatchMode.Self||b===a.TargetMatchMode.SelfAndChildren),d=b&&(b===a.TargetMatchMode.Children||b===a.TargetMatchMode.SelfAndChildren);if(!(this.type===I.Applicable&&!m)&&!(this.type===I.Inheritable&&!d)){if(!this.selfOwned){this.selfOwn(g.TargetDecoration,p),this.targetedDecorations.add(p);return}this.targetedDecorations.has(p)||(this.targetedDecorations.add(p),this.recursiveRefresh(this,!1,g.TargetDecoration,p))}}remove(p){if(this.selfOwned&&this.targetedDecorations.delete(p)){if(this.negatedDecorations.size===0&&this.targetedDecorations.size===0&&this.parent)return this.parentOwn(void 0,g.UnTargetDecoration,p);this.recursiveRefresh(this,!1,g.UnTargetDecoration,p)}}negate(p){const b=p.negatedTargets.get(this.target),m=b&&(b===a.TargetMatchMode.Self||b===a.TargetMatchMode.SelfAndChildren),d=b&&(b===a.TargetMatchMode.Children||b===a.TargetMatchMode.SelfAndChildren);if(!(this.type===I.Applicable&&!m)&&!(this.type===I.Inheritable&&!d)){if(!this.selfOwned){this.selfOwn(g.UnTargetDecoration,p),this.negatedDecorations.add(p);return}this.negatedDecorations.has(p)||(this.negatedDecorations.add(p),this.renderedDecorations.has(p)&&this.removeDecorationClasslist(p))}}unNegate(p){if(this.selfOwned&&this.negatedDecorations.delete(p)){if(this.negatedDecorations.size===0&&this.targetedDecorations.size===0&&this.parent)return this.parentOwn();!this.renderedDecorations.has(p)&&(this.parent.renderedDecorations.has(p)||p.appliedTargets.has(this.target))&&this.recursiveRefresh(this,!1,g.TargetDecoration,p)}}selfOwn(p,b){if(this.selfOwned)throw new Error("CompositeDecoration is already self owned");const m=this.parent;this.selfOwned=!0,this.compositeCssClasslist.classlist=[],this.renderedDecorations=new Map,this.targetedDecorations=new Set,this.negatedDecorations=new Set;for(const[d]of m.renderedDecorations)d!==b&&this.processCompositeAlteration(g.TargetDecoration,d);p===g.UnTargetDecoration&&this.parent.renderedDecorations.has(b)&&!this.renderedDecorations.has(b)&&this.notifyClasslistChange(!1),this.recursiveRefresh(this,!0,p,b)}parentOwn(p,b,m){this.selfOwned=!1,this.targetedDecorations&&this.targetedDecorations.clear(),this.negatedDecorations&&this.negatedDecorations.clear(),p&&this.parent!==p&&(this.parent&&this.parent.linkedComposites.delete(this),p.linkedComposites.add(this),this.parent=p),this.recursiveRefresh(this,!0,b,m)}processCompositeAlteration(p,b){if(!this.selfOwned)throw new Error("CompositeDecoration is not self owned");if(p===g.UnTargetDecoration){const m=this.renderedDecorations.get(b);if(m){const d=b.appliedTargets.get(this.target),s=d&&(d===a.TargetMatchMode.Self||d===a.TargetMatchMode.SelfAndChildren),l=d&&(d===a.TargetMatchMode.Children||d===a.TargetMatchMode.SelfAndChildren);return s&&this.type===I.Applicable||l&&this.type===I.Inheritable?!1:(this.removeDecorationClasslist(b,!1),m&&m.dispose(),this.renderedDecorations.delete(b))}return!1}if(p===g.TargetDecoration){const m=b.negatedTargets.get(this.target),d=m&&(m===a.TargetMatchMode.Self||m===a.TargetMatchMode.SelfAndChildren),s=m&&(m===a.TargetMatchMode.Children||m===a.TargetMatchMode.SelfAndChildren);if(d&&this.type===I.Applicable||s&&this.type===I.Inheritable)return!1;if(!this.renderedDecorations.has(b)){const l=new n.DisposableCollection;return l.push(b.onDidAddCSSClassname(this.handleDecorationDidAddClassname)),l.push(b.onDidRemoveCSSClassname(this.handleDecorationDidRemoveClassname)),l.push(b.onDidDisableDecoration(this.handleDecorationDisable)),l.push(b.onDidEnableDecoration(this.mergeDecorationClasslist)),this.renderedDecorations.set(b,l),b.disabled?!1:(this.compositeCssClasslist.classlist.push(...b.cssClassList),!0)}}return!1}recursiveRefresh(p,b,m,d,s=!0){if(!this.selfOwned&&b&&(this.renderedDecorations=this.parent.renderedDecorations,this.compositeCssClasslist.classlist=this.parent.compositeCssClasslist.classlist),this.selfOwned&&b&&p!==this){for(const[l]of this.renderedDecorations)this.processCompositeAlteration(g.UnTargetDecoration,l);for(const[l]of this.parent.renderedDecorations)this.processCompositeAlteration(g.TargetDecoration,l);s&&this.notifyClasslistChange(!1)}else this.selfOwned&&m===g.UnTargetDecoration&&d&&this.renderedDecorations.has(d)?(this.processCompositeAlteration(m,d),s&&this.notifyClasslistChange(!1)):this.selfOwned&&m===g.TargetDecoration&&d&&this.processCompositeAlteration(m,d)&&s?this.notifyClasslistChange(!1):!this.selfOwned&&s&&this.notifyClasslistChange(!1);for(const l of this.linkedComposites)l.recursiveRefresh(p,b,m,d,s)}removeDecorationClasslist(p,b=!0){if(this.selfOwned){for(const m of p.cssClassList){const d=this.compositeCssClasslist.classlist.indexOf(m);d>-1&&this.compositeCssClasslist.classlist.splice(d,1)}b&&this.notifyClasslistChange()}}notifyClasslistChange(p=!0){for(const b of[...this.classlistChangeCallbacks])b();if(p)for(const b of this.linkedComposites)b.selfOwned||b.notifyClasslistChange()}}e.CompositeDecoration=u},96336:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Decoration=e.TargetMatchMode=void 0;const n=t(70392),a=t(26353);var o;(function(g){g[g.None=1]="None",g[g.Self=2]="Self",g[g.Children=3]="Children",g[g.SelfAndChildren=4]="SelfAndChildren"})(o=e.TargetMatchMode||(e.TargetMatchMode={}));class I{constructor(...u){if(this._appliedTargets=new Map,this._negatedTargets=new Map,this._disabled=!1,this.appliedTargetsDisposables=new WeakMap,this.negatedTargetsDisposables=new WeakMap,this.onDidAddCSSClassnameEmitter=new n.Emitter,this.onDidRemoveCSSClassnameEmitter=new n.Emitter,this.onDidDisableDecorationEmitter=new n.Emitter,this.onDidEnableDecorationEmitter=new n.Emitter,this.onDidAddTargetEmitter=new n.Emitter,this.onDidRemoveTargetEmitter=new n.Emitter,this.onDidNegateTargetEmitter=new n.Emitter,this.onDidUnNegateTargetEmitter=new n.Emitter,Array.isArray(u))if(u.every(G=>typeof G=="string"))this._cssClassList=new Set(u);else throw new TypeError("classlist must be of type `Array<string>`");else this._cssClassList=new Set}get disabled(){return this._disabled}set disabled(u){this._disabled=u,u?this.onDidDisableDecorationEmitter.fire({decoration:this}):this.onDidEnableDecorationEmitter.fire({decoration:this})}get appliedTargets(){return this._appliedTargets}get negatedTargets(){return this._negatedTargets}get cssClassList(){return this._cssClassList}get onDidAddCSSClassname(){return this.onDidAddCSSClassnameEmitter.event}get onDidRemoveCSSClassname(){return this.onDidRemoveCSSClassnameEmitter.event}get onDidDisableDecoration(){return this.onDidDisableDecorationEmitter.event}get onDidEnableDecoration(){return this.onDidEnableDecorationEmitter.event}get onDidAddTarget(){return this.onDidAddTargetEmitter.event}get onDidRemoveTarget(){return this.onDidRemoveTargetEmitter.event}get onDidNegateTarget(){return this.onDidNegateTargetEmitter.event}get onDidUnNegateTarget(){return this.onDidUnNegateTargetEmitter.event}addCSSClass(u){this._cssClassList.has(u)||(this._cssClassList.add(u),this.onDidAddCSSClassnameEmitter.fire({decoration:this,classname:u}))}removeCSSClass(u){this._cssClassList.has(u)&&(this._cssClassList.delete(u),this.onDidRemoveCSSClassnameEmitter.fire({decoration:this,classname:u}))}hasTarget(u){return!!this._appliedTargets.get(u)}addTarget(u,G=o.Self){if(this._appliedTargets.get(u)===G||!a.TreeNode.is(u))return;this._appliedTargets.set(u,G);const b=n.Disposable.create(()=>{this.removeTarget(u)});return this.appliedTargetsDisposables.set(u,b),this.onDidAddTargetEmitter.fire({decoration:this,target:u}),b}removeTarget(u){if(this._appliedTargets.delete(u)){const G=this.appliedTargetsDisposables.get(u);G&&G.dispose(),this.onDidRemoveTargetEmitter.fire({decoration:this,target:u})}}clearAppliedTarget(){const u=Array.from(this._appliedTargets.keys());for(const G of u)this.removeTarget(G)}clearNegateTarget(){const u=Array.from(this._negatedTargets.keys());for(const G of u)this.unNegateTarget(G)}negateTarget(u,G=o.Self){if(this._negatedTargets.get(u)===G||!a.TreeNode.is(u))return;this._negatedTargets.set(u,G);const b=n.Disposable.create(()=>{this.unNegateTarget(u)});return this.negatedTargetsDisposables.set(u,b),this.onDidNegateTargetEmitter.fire({decoration:this,target:u}),b}unNegateTarget(u){if(this._negatedTargets.delete(u)){const G=this.negatedTargetsDisposables.get(u);G&&G.dispose(),this.onDidUnNegateTargetEmitter.fire({decoration:this,target:u})}}}e.Decoration=I},29701:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DecorationsManager=void 0;const n=t(70392),a=t(34054),o=t(26353),I=t(58781);class g{constructor(G){this.root=G,this.decorations=new Map,this.decorationsMeta=new WeakMap,this.disposables=new n.DisposableCollection,this.disposed=!1,this.targetDecoration=p=>{const{decoration:b,target:m}=p,d=this.getDecorationData(m);if(d){const{applicable:s,inheritable:l}=d;s.add(b),l&&l.add(b)}},this.updateTarget=()=>{for(const[p]of this.decorations)for(const[b,m]of Array.from(p.appliedTargets)){p.removeTarget(b);const d=this.root.getTreeNodeByPath(b.path);d&&p.addTarget(d,m)}},this.unTargetDecoration=p=>{const{decoration:b,target:m}=p,d=this.getDecorationData(m);if(d){const{applicable:s,inheritable:l}=d;s.remove(b),l&&l.remove(b)}},this.negateDecoration=p=>{const{decoration:b,target:m}=p,d=this.getDecorationData(m);if(d){const{applicable:s,inheritable:l}=d;s.negate(b),l&&l.negate(b)}},this.unNegateDecoration=p=>{const{decoration:b,target:m}=p,d=this.getDecorationData(m);if(d){const{applicable:s,inheritable:l}=d;s.unNegate(b),l&&l.unNegate(b)}},this.switchParent=(p,b,m)=>{const d=this.decorationsMeta.get(p);if(!d)return;const s=this.getDecorationData(m);s&&(d.applicable.changeParent(s.inheritable),d.inheritable&&d.inheritable.changeParent(s.inheritable))},this.decorationsMeta.set(G,{applicable:new I.CompositeDecoration(G,I.CompositeDecorationType.Applicable),inheritable:new I.CompositeDecoration(G,I.CompositeDecorationType.Inheritable)}),this.disposables.push(G.watcher.on(a.TreeNodeEvent.DidChangeParent,this.switchParent)),this.disposables.push(G.watcher.on(a.TreeNodeEvent.DidDispose,p=>this.decorationsMeta.delete(p))),this.disposables.push(G.watcher.on(a.TreeNodeEvent.BranchDidUpdate,this.updateTarget))}dispose(){for(const[G]of this.decorations)this.removeDecoration(G);this.disposables.dispose(),this.disposed=!0}addDecoration(G){if(this.disposed)throw new Error("DecorationManager disposed");if(this.decorations.has(G))return;const p=new n.DisposableCollection;p.push(G.onDidAddTarget(this.targetDecoration)),p.push(G.onDidRemoveTarget(this.unTargetDecoration)),p.push(G.onDidNegateTarget(this.negateDecoration)),p.push(G.onDidUnNegateTarget(this.unNegateDecoration)),this.decorations.set(G,p);for(const[b]of G.appliedTargets)this.targetDecoration({decoration:G,target:b});for(const[b]of G.negatedTargets)this.negateDecoration({decoration:G,target:b})}removeDecoration(G){const p=this.decorations.get(G);if(p){for(const[b]of G.appliedTargets){const m=this.decorationsMeta.get(b);m&&(m.applicable.remove(G),m.inheritable&&m.inheritable.remove(G))}for(const[b]of G.negatedTargets){const m=this.decorationsMeta.get(b);m&&(m.applicable.unNegate(G),m.inheritable&&m.inheritable.unNegate(G))}p.dispose(),this.decorations.delete(G)}}getDecorations(G){if(!G||!o.TreeNode.is(G))return;const p=this.getDecorationData(G);if(p)return p.applicable.compositeCssClasslist}getDecorationData(G){if(this.disposed)return;const p=this.decorationsMeta.get(G);if(p)return p;if(!G||!G.parent)return;const b=this.getDecorationData(G.parent);if(b){const m={applicable:new I.CompositeDecoration(G,I.CompositeDecorationType.Applicable,b.inheritable),inheritable:o.CompositeTreeNode.is(G)?new I.CompositeDecoration(G,I.CompositeDecorationType.Inheritable,b.inheritable):void 0};return this.decorationsMeta.set(G,m),m}}}e.DecorationsManager=g},24936:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});const n=t(85608);n.__exportStar(t(96336),e),n.__exportStar(t(29701),e),n.__exportStar(t(58781),e)},43685:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});const n=t(85608);n.__exportStar(t(29805),e),n.__exportStar(t(26353),e),n.__exportStar(t(58615),e),n.__exportStar(t(24936),e)},13674:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.TreeModel=void 0;const n=t(70392),a=t(34054),o=t(70609);class I{constructor(){this.onChangeEmitter=new n.Emitter,this.dispatchChange=()=>{this.onChangeEmitter.fire()}}get onChange(){return this.onChangeEmitter.event}get ensureReady(){return this._ensureReady}get root(){return this._root}set root(u){this._root=u,this.initState(u),this.root&&(this._ensureReady=this.root.ensureLoaded())}get state(){return this._state}set state(u){this._state=u}init(u){this.root=u,this.root.watcher.on(a.TreeNodeEvent.BranchDidUpdate,this.dispatchChange)}initState(u){this.state=new o.TreeStateManager(u)}loadTreeState(u){return typeof u=="string"&&(u=JSON.parse(u)),this.state.loadTreeState(u)}getTreeStateWatcher(u=!1){return new o.TreeStateWatcher(this.state,u)}resolveChildren(u){return Promise.resolve(Array.from(u.children))}}e.TreeModel=I},58615:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),t(85608).__exportStar(t(13674),e)},12165:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.TreeStateManager=e.Operation=void 0;const n=t(70392),a=t(34054),o=t(26353),{Path:I}=n.path;var g;(function(p){p[p.SetExpanded=1]="SetExpanded",p[p.SetCollapsed=2]="SetCollapsed",p[p.SetActive=3]="SetActive"})(g=e.Operation||(e.Operation={}));var u;(function(p){p[p.Expanded=1]="Expanded",p[p.Collapsed=2]="Collapsed",p[p.Disabled=4]="Disabled"})(u||(u={}));class G{constructor(b){this.expandedDirectories=new Map,this._scrollOffset=0,this.stashing=!1,this.stashLockingItems=new Set,this.onDidLoadStateEmitter=new n.Emitter,this.onChangeScrollOffsetEmitter=new n.Emitter,this.onDidChangeExpansionStateEmitter=new n.Emitter,this.onDidChangeRelativePathEmitter=new n.Emitter,this.handleExpansionChange=(m,d,s)=>{var l;if(this.stashing&&this.stashKeyframes&&this.stashKeyframes.set(m.id,d?u.Expanded:u.Collapsed),this.stashKeyframes&&!this.stashing){if(d){let c=m;for(;c;){if(this.stashKeyframes.has(c.id)){let h=this.stashKeyframes.get(c.id);h=h|u.Disabled,this.stashKeyframes.set(c.id,h)}c=c.parent}this.stashLockingItems.add(m)}if(this.stashLockingItems&&this.stashLockingItems.has(m)&&!d){let c=m;for(;c;){if(this.stashKeyframes.has(c.id)){let h=this.stashKeyframes.get(c.id);h&=~u.Disabled,this.stashKeyframes.set(c.id,h)}c=c.parent}this.stashLockingItems.delete(m)}}let r=this.expandedDirectories.get(m);d&&!r?(r=(l=new I(this.root.path).relative(new I(m.path)))===null||l===void 0?void 0:l.toString(),this.expandedDirectories.set(m,r),this.onDidChangeExpansionStateEmitter.fire({relativePath:r,isExpanded:d,isVisibleAtSurface:s})):!d&&r&&(this.expandedDirectories.delete(m),this.onDidChangeExpansionStateEmitter.fire({relativePath:r,isExpanded:d,isVisibleAtSurface:s}))},this.handleDidChangePath=m=>{var d;if(this.expandedDirectories.has(m)){const s=this.expandedDirectories.get(m),l=(d=new I(this.root.path).relative(new I(m.path)))===null||d===void 0?void 0:d.toString();this.expandedDirectories.set(m,l),this.onDidChangeRelativePathEmitter.fire({prevPath:s,newPath:l})}},this.root=b,this.root.watcher.on(a.TreeNodeEvent.DidChangeExpansionState,this.handleExpansionChange),this.root.watcher.on(a.TreeNodeEvent.DidChangePath,this.handleDidChangePath)}get scrollOffset(){return this._scrollOffset}saveScrollOffset(b){this._scrollOffset=b,this.onChangeScrollOffsetEmitter.fire(b)}get onDidLoadState(){return this.onDidLoadStateEmitter.event}get onChangeScrollOffset(){return this.onChangeScrollOffsetEmitter.event}get onDidChangeExpansionState(){return this.onDidChangeExpansionStateEmitter.event}get onDidChangeRelativePath(){return this.onDidChangeRelativePathEmitter.event}async loadTreeState(b){if(b){for(const m of b.expandedDirectories.buried)try{const d=await this.root.loadTreeNodeByPath(m);if(!d)break;d&&o.CompositeTreeNode.is(d)&&d.setCollapsed()}catch{}for(const m of b.expandedDirectories.atSurface)try{if(!await this.root.loadTreeNodeByPath(m,!0))break}catch{}this._scrollOffset=typeof b.scrollPosition=="number"&&b.scrollPosition>-1?b.scrollPosition:this._scrollOffset,this.root.watcher.notifyDidUpdateBranch(),this.onDidLoadStateEmitter.fire()}}excludeFromStash(b){this.stashKeyframes&&!this.stashing&&this.handleExpansionChange(o.CompositeTreeNode.is(b)?b:b.parent,!0,this.root.isItemVisibleAtSurface(b))}beginStashing(){this.stashing=!0,this.stashKeyframes=new Map}endStashing(){this.stashing=!1,this.stashLockingItems.clear()}async reverseStash(){if(!this.stashKeyframes)return;this.endStashing();const b=Array.from(this.stashKeyframes);this.stashKeyframes=null;for(const[m,d]of b){const s=(d&u.Disabled)===u.Disabled,l=o.TreeNode.getTreeNodeById(m);!l||s||((d&u.Expanded)===u.Expanded?l.setCollapsed():(d&u.Collapsed)===u.Collapsed&&await l.setExpanded())}}}e.TreeStateManager=G},72782:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.TreeStateWatcher=void 0;const n=t(70392),a=t(13440);class o{constructor(g,u=!1){this._disposed=!1,this.disposables=new n.DisposableCollection,this.onDidTreeStateChangeEmitter=new n.Emitter,this.currentState={specVersion:1,scrollPosition:0,expandedDirectories:{atSurface:[],buried:[]}},this.disposables.push(g.onChangeScrollOffset(G=>{this.currentState.scrollPosition=G,this.onDidTreeStateChangeEmitter.fire(a.TreeStateWatcherChangeType.ScrollOffset)})),this.disposables.push(g.onDidChangeRelativePath(({prevPath:G,newPath:p})=>{let b=!1;const m=new Set(this.currentState.expandedDirectories.atSurface);if(m.has(G)&&(m.delete(G),m.add(p),b=!0),this.currentState.expandedDirectories.atSurface=Array.from(m),u){const d=new Set(this.currentState.expandedDirectories.buried);d.has(G)&&(m.delete(G),m.add(p),b=!0),this.currentState.expandedDirectories.buried=Array.from(d)}b&&this.onDidTreeStateChangeEmitter.fire(a.TreeStateWatcherChangeType.PathsUpdated)})),this.disposables.push(g.onDidChangeExpansionState(({relativePath:G,isExpanded:p,isVisibleAtSurface:b})=>{let m=!1;const d=new Set(this.currentState.expandedDirectories.atSurface),s=new Set(this.currentState.expandedDirectories.buried);if(d.has(G)&&(!p||!b)){d.delete(G);const r=Array.from(d).filter(c=>c.indexOf(G)>=0);for(const c of r)d.delete(c),s.has(c)||s.add(c);m=!0}else p&&b&&(d.add(G),m=!0);this.currentState.expandedDirectories.atSurface=Array.from(d),u||(s.has(G)&&(!p||b)?(s.delete(G),m=!0):p&&!b&&(s.add(G),m=!0),this.currentState.expandedDirectories.buried=Array.from(s)),m&&this.onDidTreeStateChangeEmitter.fire(a.TreeStateWatcherChangeType.DirExpansionState)}))}get onDidChange(){return this.onDidTreeStateChangeEmitter.event}dispose(){this._disposed||(this._disposed=!0,this.disposables.dispose())}snapshot(){return Object.assign(Object.assign({},this.currentState),{expandedDirectories:{atSurface:this.currentState.expandedDirectories.atSurface.slice(),buried:this.currentState.expandedDirectories.buried.slice()}})}toString(){return JSON.stringify(this.currentState)}}e.TreeStateWatcher=o},70609:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.TreeStateWatcher=e.TreeStateManager=void 0;var n=t(12165);Object.defineProperty(e,"TreeStateManager",{enumerable:!0,get:function(){return n.TreeStateManager}});var a=t(72782);Object.defineProperty(e,"TreeStateWatcher",{enumerable:!0,get:function(){return a.TreeStateWatcher}})},13440:(L,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.TreeStateWatcherChangeType=e.TreeStateEvent=void 0;var t;(function(a){a[a.DidChangeScrollOffset=1]="DidChangeScrollOffset",a[a.DidChangeDirExpansionState=2]="DidChangeDirExpansionState",a[a.DidChangeRelativePath=3]="DidChangeRelativePath",a[a.DidChange=4]="DidChange",a[a.DidLoadState=5]="DidLoadState"})(t=e.TreeStateEvent||(e.TreeStateEvent={}));var n;(function(a){a[a.ScrollOffset=1]="ScrollOffset",a[a.DirExpansionState=2]="DirExpansionState",a[a.PathsUpdated=3]="PathsUpdated"})(n=e.TreeStateWatcherChangeType||(e.TreeStateWatcherChangeType={}))},34054:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});const n=t(85608);n.__exportStar(t(79632),e),n.__exportStar(t(32281),e),n.__exportStar(t(3754),e)},32281:(L,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.TreeNodeType=void 0;var t;(function(n){n[n.TreeNode=1]="TreeNode",n[n.CompositeTreeNode=2]="CompositeTreeNode",n[n.NewPrompt=3]="NewPrompt",n[n.RenamePrompt=4]="RenamePrompt"})(t=e.TreeNodeType||(e.TreeNodeType={}))},79632:(L,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})},3754:(L,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.MetadataChangeType=e.WatchEvent=e.TreeNodeEvent=void 0;var t;(function(o){o[o.WillChangeExpansionState=1]="WillChangeExpansionState",o[o.DidChangeExpansionState=2]="DidChangeExpansionState",o[o.WillChangeParent=3]="WillChangeParent",o[o.DidChangeParent=4]="DidChangeParent",o[o.DidDispose=5]="DidDispose",o[o.BranchDidUpdate=6]="BranchDidUpdate",o[o.DidChangePath=7]="DidChangePath",o[o.DidProcessWatchEvent=8]="DidProcessWatchEvent",o[o.WillProcessWatchEvent=9]="WillProcessWatchEvent",o[o.DidChangeMetadata=10]="DidChangeMetadata",o[o.DidResolveChildren=11]="DidResolveChildren",o[o.WillResolveChildren=12]="WillResolveChildren"})(t=e.TreeNodeEvent||(e.TreeNodeEvent={}));var n;(function(o){o[o.Added=1]="Added",o[o.Removed=2]="Removed",o[o.Changed=3]="Changed",o[o.Moved=4]="Moved"})(n=e.WatchEvent||(e.WatchEvent={}));var a;(function(o){o[o.Added=1]="Added",o[o.Updated=2]="Updated",o[o.Removed=3]="Removed"})(a=e.MetadataChangeType||(e.MetadataChangeType={}))},77011:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ScrollbarsVirtualList=e.Scrollbars=void 0;const n=t(85608),a=n.__importDefault(t(53373)),o=n.__importDefault(t(97331)),I=n.__importStar(t(14041)),g=t(65289),u=t(70392);t(93324);const G=({onScroll:p,onUpdate:b,forwardedRef:m,style:d,children:s,className:l,onReachBottom:r,tabBarMode:c,thumbSize:h=5,hiddenVertical:v,hiddenHorizontal:f,universal:W=!1})=>{const N=(0,I.useRef)(new u.DisposableCollection),Z=(0,I.useRef)(),y=(0,I.useCallback)(F=>{F?(Z.current=F.view,m&&(typeof m=="function"?m(F.view):m.current=F.view)):m&&typeof m=="function"&&m(null)},[]),E=(0,I.useRef)(),R=(0,I.useRef)(),A=(0,I.useCallback)(F=>{if(!F)return;const{scrollTop:V,scrollHeight:Y,clientHeight:_}=F;if(Y===0&&_===0)return;(V+100)/(Y-_)>1&&r&&r()},[r]),w=(0,I.useCallback)((0,o.default)(F=>{if(!F)return;const{scrollTop:V,scrollLeft:Y}=F,_=1/20*Math.min(V,20),H=1/20*Math.min(Y,20);E.current&&(E.current.style.opacity=String(_)),R.current&&(R.current.style.opacity=String(H)),A(F),b&&b(F)},100),[b,A,E.current,R.current]);return(0,I.useEffect)(()=>{const F=V=>{Z.current&&(V.preventDefault(),V.stopPropagation(),Z.current.clientHeight>=Z.current.scrollHeight&&(V.deltaY!==0&&(Z.current.scrollLeft+=V.deltaY),V.deltaX!==0&&(Z.current.scrollLeft+=V.deltaX)))};return c&&Z.current&&Z.current.addEventListener("wheel",F),()=>{var V;(V=Z.current)===null||V===void 0||V.removeEventListener("wheel",F)}},[Z.current,c]),(0,I.useEffect)(()=>()=>N.current.dispose(),[]),I.default.createElement(g.Scrollbars,{ref:y,style:Object.assign(Object.assign({},d),{overflow:"hidden"}),className:(0,a.default)(l,"kt-scrollbar"),onUpdate:w,onScroll:p,universal:W,renderTrackHorizontal:F=>{var{style:V}=F,Y=n.__rest(F,["style"]);const _=Object.assign(Object.assign({},V),{height:h,left:0,right:0,bottom:1});return f&&(_.display="none"),I.default.createElement("div",Object.assign({},Y,{style:_}))},renderTrackVertical:F=>{var{style:V}=F,Y=n.__rest(F,["style"]);const _=Object.assign(Object.assign({},V),{width:h,top:0,right:1,bottom:0});return v&&(_.display="none"),I.default.createElement("div",Object.assign({},Y,{style:_}))},renderThumbVertical:F=>{var{style:V,className:Y}=F,_=n.__rest(F,["style","className"]);const H=Object.assign(Object.assign({},V),{width:h});return v&&(H.display="none"),I.default.createElement("div",Object.assign({},_,{style:H,className:(0,a.default)(Y,"scrollbar-thumb-vertical")}))},renderThumbHorizontal:F=>{var{style:V,className:Y}=F,_=n.__rest(F,["style","className"]);const H=Object.assign(Object.assign({},V),{height:h,display:"none"});return f&&(H.display="none"),I.default.createElement("div",Object.assign({},_,{style:H,className:(0,a.default)(Y,"scrollbar-thumb-horizontal")}))}},I.default.createElement("div",{ref:F=>{E.current=F},className:"scrollbar-decoration-vertical"}),I.default.createElement("div",{ref:F=>{R.current=F},className:"scrollbar-decoration-horizontal"}),s)};e.Scrollbars=G,e.Scrollbars.displayName="CustomScrollbars",e.ScrollbarsVirtualList=I.default.forwardRef((p,b)=>I.default.createElement(e.Scrollbars,Object.assign({},p,{thumbSize:10,forwardedRef:b}))),e.ScrollbarsVirtualList.displayName="ScrollbarsVirtualList"},14640:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SelectOptionsList=e.Select=e.isDataOptionGroups=e.isDataOptions=e.Option=void 0;const n=t(85608),a=n.__importDefault(t(53373)),o=n.__importStar(t(14041));t(11110);const I=t(54713),g=W=>{var{value:N,children:Z,disabled:y,onClick:E,className:R}=W,A=n.__rest(W,["value","children","disabled","onClick","className"]);return o.default.createElement("span",Object.assign({},A,{className:(0,a.default)(R,{"kt-option-disabled":y}),onClick:()=>E&&!y&&E(N)}),Z)};e.Option=g;function u(...W){}function G(W,N){return N?W.props[N]:W.props.value}function p(W,N){let Z=[];return Array.isArray(W)?Z=o.default.Children.toArray(W).map(N):Z=[N(W)],Z}function b(W,N,Z=(y,E)=>y===E){const E=o.default.Children.toArray(N).filter(R=>o.default.isValidElement(R)).find(R=>{var A;return R.props&&Z((A=R.props)===null||A===void 0?void 0:A.value,W)?R:null});return E?.props}function m(W){return W?W.length===0?!0:s(W[0]):!1}e.isDataOptions=m;function d(W){return W?W.length===0?!0:l(W[0]):!1}e.isDataOptionGroups=d;function s(W){return W.value!==void 0}function l(W){return W.groupName!==void 0&&m(W.options)}function r(W){return o.default.createElement(o.default.Fragment,null,W.data.iconClass?o.default.createElement("div",{className:(0,a.default)(W.data.iconClass,"kt-select-option-icon")}):void 0,W.data.label)}function c({group:W,index:N}){return o.default.createElement("div",{key:"header_"+N,className:"kt-select-group-header"},W.iconClass?o.default.createElement("div",{className:(0,a.default)(W.iconClass,"kt-select-option-icon")}):void 0,o.default.createElement("div",null,W.groupName))}function h(W,N){let Z=N.label;if(Z===void 0)try{Z=N.value.toString()}catch{Z=void 0}return typeof Z=="string"?Z.indexOf(W)!==-1:!1}function v({disabled:W,options:N,size:Z="default",children:y,value:E,onChange:R,onMouseEnter:A,optionLabelProp:w,style:F,optionStyle:V,className:Y,maxHeight:_,equals:H=(oe,se)=>oe===se,optionRenderer:S=r,groupTitleRenderer:X,footerComponent:Q,headerComponent:O,showSearch:M=!1,filterOption:T=h,searchPlaceholder:x="",emptyComponent:B,selectedRenderer:D,onBeforeShowOptions:J,allowOptionsOverflow:k,dropdownRenderType:z="fixed",description:P,notMatchWarning:U}){const[oe,se]=(0,o.useState)(!1),[ae,he]=(0,o.useState)(""),ee=o.default.useRef(null),pe=o.default.useRef(null),ge=(0,o.useCallback)(de=>{de.preventDefault(),de.stopPropagation();const Ie=!oe;Ie&&J&&J()||se(Ie)},[oe,J,J]),le=(0,o.useCallback)(()=>{var de,Ie,Ge,re,me,ve,Ne,Ze,Ee;if(N&&m(N)){for(const Ve of N)if(H(E,Ve.value))return{iconClass:Ve.iconClass,label:Ve.label,value:Ve.value};return{iconClass:(de=N[0])===null||de===void 0?void 0:de.iconClass,label:(Ie=N[0])===null||Ie===void 0?void 0:Ie.label,value:(Ge=N[0])===null||Ge===void 0?void 0:Ge.value}}else if(N&&d(N)){for(const Ve of N)for(const Ce of Ve.options)if(H(E,Ce.value))return{iconClass:Ce.iconClass,label:Ce.label,value:Ce.value};return{iconClass:(me=(re=N[0])===null||re===void 0?void 0:re.options[0])===null||me===void 0?void 0:me.iconClass,label:(Ne=(ve=N[0])===null||ve===void 0?void 0:ve.options[0])===null||Ne===void 0?void 0:Ne.label,value:(Ee=(Ze=N[0])===null||Ze===void 0?void 0:Ze.options[0])===null||Ee===void 0?void 0:Ee.value}}else{const Ve=y&&b(E,y);if(Ve)return{label:Ve.label||Ve.value,value:Ve.value}}return{label:E,value:E,notMatch:!0}},[N,E,y])(),te=(0,a.default)("kt-select-options",{"kt-select-options-visible":oe,[`kt-select-options-${Z}`]:Z}),ue=U&&le.notMatch,q=(0,a.default)("kt-select-value",{"kt-select-warning":ue,"kt-select-disabled":W,"kt-select-value-active":oe,[`kt-select-value-${Z}`]:Z});function j(de,Ie){var Ge;if(!de)return null;(typeof de=="string"||typeof de=="number")&&(de=o.default.createElement(e.Option,{value:de,label:String(de),key:`${de}_${Ie}`},de));const re=de,me=((Ge=re.props)===null||Ge===void 0?void 0:Ge.disabled)||!1;return o.default.createElement("div",{key:`${re.props.value}_${Ie}`,className:(0,a.default)({"kt-select-option-select":E===re.props.value}),onMouseEnter:()=>A?.(re.props.value,Ie),onClick:me?u:()=>{se(!1),R&&R(G(de,w))}},de)}if((0,o.useEffect)(()=>{!oe&&ae&&he("")},[]),(0,o.useEffect)(()=>{if(ee.current&&pe.current){const de=ee.current.getBoundingClientRect();k?(pe.current.style.minWidth=`${de.width}px`,pe.current.style.maxWidth=`${window.innerWidth-de.left-4}px`):pe.current.style.width=`${de.width}px`;const Ie=window.innerHeight-de.bottom-50;Ie<pe.current.clientHeight?pe.current.style.bottom=ee.current.clientHeight+4+"px":pe.current.style.maxHeight=`${Ie}px`,pe.current.style.position=z==="fixed"?"fixed":"absolute"}if(oe){const de=()=>{se(!1)};return document.addEventListener("click",de),()=>{document.removeEventListener("click",de)}}},[oe]),ae){if(N&&m(N))N=N.filter(de=>T(ae,de));else if(N&&d(N)){const de=[];for(const Ie of N){const Ge={iconClass:Ie.iconClass,groupName:Ie.groupName,options:Ie.options.filter(re=>T(ae,re,Ie))};Ge.options.length>0&&de.push(Ge)}N=de}}const ie=()=>{const de=D;return o.default.createElement(o.default.Fragment,null,de?o.default.createElement(de,{data:le}):o.default.createElement(o.default.Fragment,null,le.iconClass?o.default.createElement("div",{className:(0,a.default)(le.iconClass,"kt-select-option-icon")}):void 0,o.default.createElement("span",{className:"kt-select-option"},le.label)),o.default.createElement(I.Icon,{iconClass:(0,a.default)((0,I.getIcon)("down"),"kt-select-value-default-icon")}))},ne=()=>o.default.createElement("input",{className:(0,a.default)("kt-select-search"),onChange:de=>{he(de.target.value)},value:ae,autoFocus:!0,placeholder:x||""});return o.default.createElement("div",{className:(0,a.default)("kt-select-container",Y),ref:ee},o.default.createElement("div",{className:q,onClick:ge,style:F},M&&oe?ne():ie()),ue&&o.default.createElement("div",{className:"kt-select-warning-text"},U),oe&&(m(N)||d(N)?o.default.createElement(e.SelectOptionsList,{optionRenderer:S,options:N,equals:H,optionStyle:V,currentValue:E,size:Z,onSelect:de=>{R&&R(de),se(!1)},groupTitleRenderer:X,className:te,style:{maxHeight:`${_}px`},ref:pe,footerComponent:Q,headerComponent:O,emptyComponent:B}):o.default.createElement("div",{className:te,style:{maxHeight:`${_}px`},ref:pe},N&&N.map((de,Ie)=>j(de,Ie)),y&&p(y,j),P&&o.default.createElement(f,{text:P}),o.default.createElement("div",{className:"kt-select-overlay",onClick:ge}))))}e.Select=v;function f({text:W}){return o.default.createElement(o.default.Fragment,null,o.default.createElement("div",{className:"kt-option-divider"}),o.default.createElement("div",{className:"kt-option-description"},W))}e.SelectOptionsList=o.default.forwardRef((W,N)=>{const{options:Z,optionRenderer:y=r,equals:E=(B,D)=>B===D,onSelect:R,currentValue:A,optionStyle:w,size:F,className:V,style:Y,groupTitleRenderer:_=c,renderCheck:H,headerComponent:S,footerComponent:X,emptyComponent:Q}=W,O=(0,a.default)("kt-select-options",{[`kt-select-options-${F}`]:!0},V);function M(B){return B.map((D,J)=>{const k=o.default.createElement(_,{group:D,index:J});return o.default.createElement(o.default.Fragment,{key:"group_"+J},k,T(D.options))})}function T(B){return B&&B.map((D,J)=>{const k=E(A,D.value);return o.default.createElement(e.Option,{value:J,key:J,className:(0,a.default)({"kt-select-option-select":k,"kt-select-option-default":!0,"kt-option-with-check":H}),onClick:()=>R(D.value),style:w},H&&E(A,D.value)?o.default.createElement("div",{className:"kt-option-check"},o.default.createElement(I.Icon,{icon:"check"})):void 0,o.default.createElement(y,{data:D,isCurrent:k}))})}let x;return d(Z)?x=Z.filter(B=>B.options.length>0).length===0:x=Z.length===0,o.default.createElement("div",{className:O,style:Y,ref:N,onClick:B=>{B.stopPropagation()}},S?o.default.createElement(S,null):null,x&&Q?o.default.createElement(Q,null):(d(Z)?M(Z):T(Z))||Q&&o.default.createElement(Q,null),X?o.default.createElement(X,null):null)})},54076:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Tabs=void 0;const n=t(85608),a=n.__importDefault(t(53373)),o=n.__importDefault(t(14041));t(1030);const I=g=>{const{tabs:u,className:G,value:p,onChange:b,mini:m,style:d}=g,s=n.__rest(g,["tabs","className","value","onChange","mini","style"]),l=o.default.useCallback(r=>{typeof b=="function"&&b(r)},[]);return o.default.createElement("div",Object.assign({},s,{style:d,className:(0,a.default)("kt-tabs",G,{"kt-tabs-mini":m})}),u.map((r,c)=>{const h=c===p?"kt-tab-selected":"";return typeof r=="string"?o.default.createElement("div",{key:c,className:(0,a.default)("kt-tab",h,{"kt-mini-tab":m}),onClick:l.bind(null,c)},r):o.default.createElement("div",{key:c,className:(0,a.default)("kt-custom-tab",h,{"kt-mini-tab":m}),onClick:l.bind(null,c)},r)}))};e.Tabs=I},72871:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Tooltip=void 0;const n=t(85608),a=n.__importDefault(t(53373)),o=n.__importStar(t(14041));t(24571);const I=({title:g,children:u,delay:G})=>{const[p,b]=(0,o.useState)(!1),m=(0,o.useRef)(null),d=(0,o.useRef)(null),s=(0,o.useRef)(null),l=(0,o.useRef)(null);(0,o.useEffect)(()=>()=>clearTimeout(l.current),[]);function r(){if(p){l.current&&clearTimeout(l.current);return}l.current=setTimeout(()=>{if(b(!0),d.current&&m.current&&s.current){const{x:h,y:v,width:f,height:W}=m.current.getBoundingClientRect(),N=d.current.getBoundingClientRect();v<N.height*1.5?(s.current.className+=" kt-tooltip-reverse-arrow",d.current.style.top=`${v+W+N.height/2}px`):d.current.style.top=`${v-N.height*1.5}px`,h+N.width/2>=document.body.offsetWidth?(s.current.style.right=`${f/2-7}px`,d.current.style.left=`${h+f-N.width}px`):h-N.width/2<=0?(s.current.style.left=`${f/2-7}px`,d.current.style.left=`${h}px`):(s.current.style.left=`${N.width/2-7}px`,d.current.style.left=`${h+f/2-N.width/2}px`)}clearTimeout(l.current)},G||500)}function c(){l.current&&clearTimeout(l.current),b(!1)}return o.default.createElement("p",{ref:m,className:"kt-tooltip-wrapper",onMouseEnter:r,onMouseLeave:c},u,p&&o.default.createElement("span",{ref:d,className:(0,a.default)("kt-tooltip-content")},g,o.default.createElement("span",{ref:s,className:"kt-tooltip-arrow-placeholder"})))};e.Tooltip=I},40604:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Deprecated=void 0;const n=t(85608),a=n.__importDefault(t(14041)),o=n.__importDefault(t(65973));function I(g,u){return G=>(a.default.useEffect(()=>{(0,o.default)(!1,`${g.displayName||g.name} is deprecated: ${u}`)},[]),a.default.createElement(g,G))}e.Deprecated=I},84605:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});const n=t(85608);n.__exportStar(t(40604),e),n.__exportStar(t(65973),e),n.__exportStar(t(43953),e),n.__exportStar(t(2835),e),n.__exportStar(t(47768),e),n.__exportStar(t(26809),e)},26809:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.parseWithoutEscape=e.toMarkdownHtml=e.parseMarkdown=e.createMarkedRenderer=e.marked=void 0;const n=t(33714);Object.defineProperty(e,"marked",{enumerable:!0,get:function(){return n.marked}});const a=()=>new n.Renderer;e.createMarkedRenderer=a;const o=(u,G,p)=>{if(!p)return n.marked.parse(u,G);G?n.marked.parse(u,G,p):n.marked.parse(u,p)};e.parseMarkdown=o;const I=(u,G)=>(0,n.marked)(u,G);e.toMarkdownHtml=I;const g=u=>(u.type==="escape"&&(u.text=u.raw),u);e.parseWithoutEscape=g},2835:(L,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.collapseMotion=void 0;const t=()=>({height:0,opacity:0}),n=o=>({height:o.scrollHeight,opacity:1}),a=o=>({height:o.offsetHeight});e.collapseMotion={motionName:"kt-motion-collapse",onAppearStart:t,onEnterStart:t,onAppearActive:n,onEnterActive:n,onLeaveStart:a,onLeaveActive:t}},47768:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.wrapperRaf=void 0;const a=t(85608).__importDefault(t(10719));let o=0;const I={};function g(u,G=1){const p=o++;let b=G;function m(){b-=1,b<=0?(u(),delete I[p]):I[p]=(0,a.default)(m)}return I[p]=(0,a.default)(m),p}e.wrapperRaf=g,g.cancel=function(G){G!==void 0&&(a.default.cancel(I[G]),delete I[G])},g.ids=I},43953:(L,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.tupleNum=e.tuple=void 0;const t=(...a)=>a;e.tuple=t;const n=(...a)=>a;e.tupleNum=n},65973:(L,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.noteOnce=e.warningOnce=e.call=e.resetWarned=e.note=e.warning=void 0;let t={};function n(G,p){}e.warning=n;function a(G,p){}e.note=a;function o(){t={}}e.resetWarned=o;function I(G,p,b){!p&&!t[b]&&(G(!1,b),t[b]=!0)}e.call=I;function g(G,p){I(n,G,p)}e.warningOnce=g;function u(G,p){I(a,G,p)}e.noteOnce=u,e.default=g},91802:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.VirtualList=void 0;const a=t(85608).__importStar(t(14041)),o=t(24241),I=t(77011),g=({data:u,className:G,template:p,refSetter:b,onRangeChanged:m})=>{const d=(0,a.useRef)(null);return(0,a.useEffect)(()=>{b?.(d.current)},[d.current]),a.default.createElement(I.Scrollbars,{thumbSize:0},a.default.createElement(o.Virtuoso,{rangeChanged:s=>{m?.(s)},overscan:20,ref:d,style:{height:"100%"},className:G,data:u,itemContent:(s,l)=>a.default.createElement(p,{index:s,data:l})}))};e.VirtualList=g},18740:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),t(85608).__exportStar(t(59019),e)},59019:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.WSChannelHandler=void 0;const n=t(40396),a=t(43718),o=t(54558),I=t(47561);class g{onChannelCreated(G,p){return this._onChannelCreatedEmitter.on(G,p)}constructor(G,p,b={}){this.connection=G,this._disposables=new a.DisposableStore,this._onChannelCreatedEmitter=this._disposables.add(new n.EventEmitter),this.channelMap=new Map,this.channelCloseEventMap=new a.MultiMap,this.logger=console,this.openingBarrier=new a.Barrier,this.logger=b.logger||this.logger,this.clientId=p,this.LOG_TAG=`[WSChannelHandler] [client-id:${this.clientId}]`;const m=b.serializer||o.furySerializer;this.wrappedConnection=(0,o.wrapSerializer)(this.connection,m)}replaceLogger(G){G&&(this.logger=G)}setReporter(G){this.reporterService=G}heartbeatMessage(){this.heartbeatMessageTimer&&clearTimeout(this.heartbeatMessageTimer),this.heartbeatMessageTimer=t.g.setTimeout(()=>{this.channelMap.forEach(G=>{G.ping()}),this.heartbeatMessage()},1e4)}async initHandler(){this.wrappedConnection.onMessage(p=>{switch(this.heartbeatMessage(),p.kind){case"pong":break;default:{const b=this.channelMap.get(p.id);b?b.dispatch(p):this.logger.warn(this.LOG_TAG,`channel ${p.id} not found`)}}});const G=()=>{this.channelMap.size>0&&this.channelMap.forEach(p=>{p.open(p.channelPath,this.clientId)})};this.connection.onClose((p,b)=>{this.channelMap.forEach(m=>{m.close(p,b)})}),this.connection.isOpen()&&(this.heartbeatMessage(),this.openingBarrier.open()),this.connection.onOpen(()=>{this.heartbeatMessage(),this.openingBarrier.isOpen()?G():this.openingBarrier.open()}),await this.openingBarrier.wait()}fillKey(G){return`${this.clientId}:${G}`}getChannel(G){return this.channelMap.get(this.fillKey(G))}async openChannel(G){const p=this.fillKey(G);this.channelMap.has(p)&&(this.channelMap.get(p).dispose(),this.logger.log(this.LOG_TAG,`channel ${p} already exists, dispose it`));const b=new I.WSChannel(this.wrappedConnection,{id:p,logger:this.logger,ensureServerReady:!0});this.channelMap.set(b.id,b),this._onChannelCreatedEmitter.emit(G,b);let m=0;b.onOpen(()=>{m++,m>1?(b.fireReopen(),this.logger.log(this.LOG_TAG,`channel reconnect ${this.clientId}:${b.channelPath}, count: ${m}`)):this.logger.log(this.LOG_TAG,`channel open ${this.clientId}:${b.channelPath}`);const l=this.channelCloseEventMap.get(b.id);l&&(l.forEach(r=>{this.reporterService&&this.reporterService.point(a.REPORT_NAME.CHANNEL_RECONNECT,a.REPORT_NAME.CHANNEL_RECONNECT,r)}),this.channelCloseEventMap.delete(b.id))}),b.onClose((l,r)=>{this.channelCloseEventMap.set(b.id,{channelPath:G,closeEvent:{code:l,reason:r},connectInfo:navigator.connection}),this.logger.log(this.LOG_TAG,`channel ${G} closed, code: ${l}, reason: ${r}`)});const d=new a.Deferred,s=b.onOpen(()=>{d.resolve(),s.dispose()});return b.open(G,this.clientId),await d.promise,b}dispose(){this.heartbeatMessageTimer&&clearTimeout(this.heartbeatMessageTimer),this._disposables.dispose()}awaitChannelReady(G){const p=this.getChannel(G),b=new a.Deferred;if(p)p.onServerReady(()=>{b.resolve()});else{const m=this.onChannelCreated(G,d=>{d.onServerReady(()=>{b.resolve()}),m.dispose()})}return b.promise}}e.WSChannelHandler=g},98710:(L,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Cursor=e.Buffers=e.copy=e.emptyBuffer=void 0,e.emptyBuffer=new Uint8Array(0);function t(o,I,g,u,G){I.set(o.subarray(u,G),g)}e.copy=t;class n{constructor(){this.buffers=[],this.size=0}get byteLength(){return this.size}push(I){this.buffers.push(I),this.size+=I.length}unshift(I){this.buffers.unshift(I),this.size+=I.length}slice(I,g){const u=this.buffers;if(g===void 0&&(g=this.size),I===void 0&&(I=0),g>this.size&&(g=this.size),I>=g)return e.emptyBuffer;let G=0,p=0;for(;p<u.length&&G+u[p].length<=I;p++)G+=u[p].length;const b=new Uint8Array(g-I);let m=0;for(let d=p;m<g-I&&d<u.length;d++){const s=u[d].length,l=m===0?I-G:0,r=m+s>=g-I?Math.min(l+(g-I)-m,s):s;t(u[d],b,m,l,r),m+=r-l}return b}pos(I){if(I<0||I>=this.size)throw new Error(`out of range, ${I} not in [0, ${this.size})`);let g=I,u=0,G=null;for(;;){if(G=this.buffers[u],g<G.length)return{buf:u,offset:g};g-=G.length,u++}}copy(I,g=0,u=0,G=this.size){return t(this.slice(u,G),I,g,0,G-u)}splice(I,g,...u){const G=this.buffers,p=I>=0?I:this.size-I;g===void 0?g=this.size-p:g>this.size-p&&(g=this.size-p);for(const s of u)this.size+=s.length;const b=new n;let m=0,d=0;for(;d<G.length&&m+G[d].length<p;d++)m+=G[d].length;if(p-m>0){const s=p-m;if(s+g<G[d].length){b.push(G[d].slice(s,s+g));const l=G[d],r=new Uint8Array(s);for(let h=0;h<s;h++)r[h]=l[h];const c=new Uint8Array(l.length-s-g);for(let h=s+g;h<l.length;h++)c[h-g-s]=l[h];if(u.length>0){const h=u.slice();h.unshift(r),h.push(c),G.splice.apply(G,[d,1,...h]),d+=h.length,u=[]}else G.splice(d,1,r,c),d+=2}else b.push(G[d].slice(s)),G[d]=G[d].slice(0,s),d++}for(u.length>0&&(G.splice.apply(G,[d,0,...u]),d+=u.length);b.byteLength<g;){const s=G[d],l=s.length,r=Math.min(l,g-b.byteLength);r===l?(b.push(s),G.splice(d,1)):(b.push(s.slice(0,r)),G[d]=G[d].slice(r))}return this.size-=b.byteLength,b}get(I){const{buf:g,offset:u}=this.pos(I);return this.buffers[g][u]}set(I,g){const{buf:u,offset:G}=this.pos(I);this.buffers[u][G]=g}cursor(I=0){return new a(this,I)}dispose(){this.buffers=[],this.size=0}}e.Buffers=n;class a{constructor(I,g=0){this.buffers=I,this.offset=g,this.chunkIndex=0,this.chunkOffset=0,this.updatePosition()}updatePosition(){if(this.offset===0){this.chunkIndex=0,this.chunkOffset=0;return}const{buf:I,offset:g}=this.buffers.pos(this.offset);this.chunkIndex=I,this.chunkOffset=g}get line(){return this.chunkIndex}get lineWidth(){return this.buffers.buffers[this.chunkIndex].byteLength}get value(){return this.buffers.buffers[this.chunkIndex][this.chunkOffset]}get lineOffset(){return this.chunkOffset}*iterator(){for(;this.chunkIndex<this.buffers.buffers.length;){const I=this.buffers.buffers[this.chunkIndex],g=I.byteLength;for(;this.chunkOffset<g;){const u=I[this.chunkOffset];this.chunkOffset++,this.offset++,yield u}this.chunkOffset=0,this.chunkIndex++}}read(I){const g=this.offset+I,u=this.buffers.slice(this.offset,g);return this.skip(I),u}skip(I){let g=0;for(;this.chunkIndex<this.buffers.buffers.length;){const G=this.buffers.buffers[this.chunkIndex].byteLength;for(;this.chunkOffset<G;)if(this.chunkOffset++,this.offset++,++g===I)return;this.chunkOffset=0,this.chunkIndex++}}moveTo(I){this.offset=I,this.updatePosition()}dispose(){this.buffers=null,this.offset=0}reset(){this.offset=0,this.chunkIndex=0,this.chunkOffset=0}}e.Cursor=a},30613:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Capturer=e.getCapturer=e.ResponseStatus=e.MessageType=void 0;const n=t(43718),a=t(65265);var o;(function(p){p.SendNotification="sendNotification",p.SendRequest="sendRequest",p.RequestResult="requestResult",p.OnNotification="onNotification",p.OnRequest="onRequest",p.OnRequestResult="onRequestResult"})(o=e.MessageType||(e.MessageType={}));var I;(function(p){p.Success="success",p.Fail="fail"})(I=e.ResponseStatus||(e.ResponseStatus={}));const g=(typeof window<"u"?window:t.g)||{__OPENSUMI_DEVTOOLS_GLOBAL_HOOK__:void 0};function u(){const p=g.__OPENSUMI_DEVTOOLS_GLOBAL_HOOK__;if(p)return p.captureRPC}e.getCapturer=u;class G{constructor(b){this.source=b,this._disposables=new n.DisposableStore,this.capturer=null,this.setupListener=m=>{const{command:d}=m.detail;d===a.DevtoolsLantencyCommand.Start?this.capturer=u():d===a.DevtoolsLantencyCommand.Stop&&(this.capturer=null)},this.prefix=(0,n.randomString)(6),this.capturer=u(),typeof g.addEventListener=="function"&&(g.addEventListener(a.EDevtoolsEvent.Latency,this.setupListener),this._disposables.add({dispose:()=>{g.removeEventListener(a.EDevtoolsEvent.Latency,this.setupListener)}}))}capture(b){if(!this.capturer)return;const m=Object.assign(Object.assign({},b),{source:this.source});m.data&&(0,n.isUint8Array)(m.data)&&(m.data="<Uint8Array>"),b.requestId&&(m.requestId=`${this.prefix}-${b.requestId}`),b.error&&(m.error=(0,n.transformErrorForSerialization)(b.error)),this.capturer(m)}captureOnRequest(b,m,d){this.capturer&&this.capture({type:o.OnRequest,requestId:`\u2193${b}`,serviceMethod:m,arguments:d})}captureOnRequestResult(b,m,d){this.capturer&&this.capture({type:o.OnRequestResult,status:I.Success,requestId:`\u2193${b}`,serviceMethod:m,data:d})}captureOnRequestFail(b,m,d){this.capturer&&this.capture({type:o.OnRequestResult,status:I.Fail,requestId:`\u2193${b}`,serviceMethod:m,error:d})}captureSendRequest(b,m,d){this.capturer&&this.capture({type:o.SendRequest,requestId:b,serviceMethod:m,arguments:d})}captureSendRequestResult(b,m,d){this.capturer&&this.capture({type:o.RequestResult,status:I.Success,requestId:b,serviceMethod:m,data:d})}captureSendRequestFail(b,m,d){this.capturer&&this.capture({type:o.RequestResult,status:I.Fail,requestId:b,serviceMethod:m,error:d})}captureSendNotification(b,m,d){this.capturer&&this.capture({type:o.SendNotification,serviceMethod:m,arguments:d,requestId:b})}captureOnNotification(b,m,d){this.capturer&&this.capture({type:o.OnNotification,serviceMethod:m,arguments:d,requestId:`\u2193${b}`})}dispose(){this._disposables.dispose()}}e.Capturer=G},29433:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),t(85608).__exportStar(t(39048),e)},39048:(L,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ErrorMessageCode=void 0;var t;(function(n){n[n.ChannelNotFound=1]="ChannelNotFound"})(t=e.ErrorMessageCode||(e.ErrorMessageCode={}))},9811:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getRPCService=e.createRPCService=e.initRPCService=void 0;const n=t(85608),a=t(62199),o=t(8140);function I(G){return{createRPCService:(p,b)=>{const m=g(p,G);return b&&m.onRequestService(b),m},getRPCService:p=>u(p,G)}}e.initRPCService=I;function g(G,p){return new a.RPCServiceStub(G,p,o.ServiceType.Service).getProxy()}e.createRPCService=g;function u(G,p){return new a.RPCServiceStub(G,p,o.ServiceType.Stub).getProxy()}e.getRPCService=u,n.__exportStar(t(62199),e)},35821:(L,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BaseConnection=void 0;class t{}e.BaseConnection=t},57358:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.LengthFieldBasedFrameDecoder=e.indicator=void 0;const n=t(89212),a=t(43718),o=t(98710);e.indicator=new Uint8Array([13,10,13,10]);class I{constructor(){this.dataEmitter=new a.Emitter,this.onData=this.dataEmitter.event,this.buffers=new o.Buffers,this.cursor=this.buffers.cursor(),this.contentLength=-1,this.state=0,this.lengthFieldLength=4}reset(){this.contentLength=-1,this.state=0,this.cursor.reset()}push(u){this.buffers.push(u);let G=!1;for(;!G;)G=this.readFrame()}readFrame(){if(this.readLengthField()){const G=this.cursor.offset,p=G+this.contentLength,b=this.buffers.slice(G,p);if(this.dataEmitter.fire(b),this.buffers.byteLength>p)return this.contentLength=-1,this.state=0,this.cursor.moveTo(p),!1;this.buffers.splice(0,p),this.reset()}return!0}readLengthField(){const u=this.buffers.byteLength;if(this.state!==4){if(this.cursor.offset+e.indicator.length>u)return!1;this.readIndicator()}if(this.state!==4)return!1;if(this.contentLength===-1){if(this.cursor.offset+this.lengthFieldLength>u)return!1;const G=this.cursor.read(this.lengthFieldLength);this.contentLength=(0,a.readUInt32LE)(G,0)}return!(this.cursor.offset+this.contentLength>u)}readIndicator(){const u=this.cursor.iterator();let G=u.next();for(;!G.done;){switch(G.value){case 13:switch(this.state){case 0:this.state=1;break;case 2:this.state=3;break;default:this.state=0;break}break;case 10:switch(this.state){case 1:this.state=2;break;case 3:this.state=4,u.return();break;default:this.state=0;break}break;default:this.state=0;break}G=u.next()}}dispose(){this.dataEmitter.dispose(),this.buffers.dispose()}static construct(u){return I.writer.reset(),I.writer.buffer(e.indicator),I.writer.uint32(u.byteLength),I.writer.buffer(u),I.writer.dump()}}e.LengthFieldBasedFrameDecoder=I,I.writer=(0,n.BinaryWriter)({})},34982:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});const n=t(85608);n.__exportStar(t(35821),e),n.__exportStar(t(71056),e),n.__exportStar(t(57625),e),n.__exportStar(t(15272),e)},92917:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.MessagePortConnection=void 0;const n=t(35821);class a extends n.BaseConnection{constructor(I){super(),this.port=I,I.start()}send(I){this.port.postMessage(I)}onMessage(I){const g=u=>{I(u.data)};return this.port.addEventListener("message",g),{dispose:()=>{this.port.removeEventListener("message",g)}}}onceClose(I){return this.port.addEventListener("close",I),{dispose:()=>{this.port.addEventListener("close",I)}}}dispose(){}}e.MessagePortConnection=a},71056:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.NodeMessagePortConnection=void 0;const n=t(35821);class a extends n.BaseConnection{constructor(I){super(),this.port=I}send(I){this.port.postMessage(I)}onMessage(I){return this.port.on("message",I),{dispose:()=>{this.port.off("message",I)}}}onceClose(I){return this.port.once("close",I),{dispose:()=>{this.port.off("close",I)}}}dispose(){this.port.removeAllListeners()}}e.NodeMessagePortConnection=a},91493:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ReconnectingWebSocketConnection=void 0;const a=t(85608).__importDefault(t(31133)),o=t(35821);class I extends o.BaseConnection{constructor(u){super(),this.socket=u}send(u){this.socket.send(u)}isOpen(){return this.socket.readyState===this.socket.OPEN}onOpen(u){return this.socket.addEventListener("open",u),{dispose:()=>{this.socket.removeEventListener("open",u)}}}onMessage(u){const G=p=>{var b,m;let d;if(p.data instanceof Blob)d=p.data.arrayBuffer();else if(p.data instanceof ArrayBuffer)d=Promise.resolve(p.data);else if(((m=(b=p.data)===null||b===void 0?void 0:b.constructor)===null||m===void 0?void 0:m.name)==="Buffer")d=Promise.resolve(p.data);else throw new Error("unknown message type, expect Blob or ArrayBuffer, received: "+typeof p.data);d.then(s=>u(new Uint8Array(s,0,s.byteLength)))};return this.socket.addEventListener("message",G),{dispose:()=>{this.socket.removeEventListener("message",G)}}}onceClose(u){const G=this.onClose(p);return{dispose:()=>{G.dispose()}};function p(b,m){u(b,m),G.dispose()}}onClose(u){const G=p=>{u(p.code,p.reason)};return this.socket.addEventListener("close",G),{dispose:()=>{this.socket.removeEventListener("close",G)}}}onError(u){const G=p=>{u(p.error)};return this.socket.addEventListener("error",G),{dispose:()=>{this.socket.removeEventListener("error",G)}}}dispose(){}static forURL(u,G,p){const b=new a.default(u,G,p);return b.binaryType="arraybuffer",new I(b)}}e.ReconnectingWebSocketConnection=I},57625:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.NetSocketConnection=void 0;const n=t(36932);class a extends n.StreamConnection{constructor(I){super(I,I),this.socket=I}isOpen(){return this.socket.readyState==="open"}onOpen(I){return this.socket.on("connect",I),{dispose:()=>{this.socket.off("connect",I)}}}destroy(){this.socket.destroy()}}e.NetSocketConnection=a},36932:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.StreamConnection=void 0;const n=t(35821),a=t(57358);class o extends n.BaseConnection{constructor(g,u){super(),this.readable=g,this.writable=u,this.decoder=new a.LengthFieldBasedFrameDecoder;const G=p=>{this.decoder.push(p)};this.readable.on("data",G),this.readable.once("close",()=>{this.decoder.dispose(),this.readable.off("data",G)})}send(g){const u=a.LengthFieldBasedFrameDecoder.construct(g);this.writable.write(u,()=>{})}onMessage(g){return this.decoder.onData(g)}onceClose(g){const u=this.onClose(G);return{dispose:()=>{u.dispose()}};function G(p,b){g(p,b),u.dispose()}}onClose(g){const u=G=>{g(G?1:0,G?"had error":"")};return this.readable.on("close",u),this.writable!==this.readable&&this.writable.on("close",u),{dispose:()=>{this.readable.off("close",u),this.writable!==this.readable&&this.writable.off("close",u)}}}onError(g){return this.readable.on("error",g),this.writable!==this.readable&&this.writable.on("error",g),{dispose:()=>{this.readable.off("error",g),this.writable!==this.readable&&this.writable.off("error",g)}}}dispose(){this.decoder.dispose()}}e.StreamConnection=o},15272:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.WSWebSocketConnection=void 0;const n=t(35821);class a extends n.BaseConnection{constructor(I){super(),this.socket=I}send(I){this.socket.send(I)}onMessage(I){return this.socket.on("message",I),{dispose:()=>{this.socket.off("message",I)}}}onceClose(I){return this.socket.once("close",I),{dispose:()=>{this.socket.off("close",I)}}}isOpen(){return this.socket.readyState===this.socket.OPEN}dispose(){this.socket.removeAllListeners()}}e.WSWebSocketConnection=a},90750:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),t(85608).__exportStar(t(34982),e)},91676:(L,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.METHOD_NOT_REGISTERED=void 0,e.METHOD_NOT_REGISTERED="$$METHOD_NOT_REGISTERED"},89104:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ExtObjectTransfer=e.AnySerializer=e.ProtocolType=void 0;const n=t(43718);var a;(function(u){u[u.String=0]="String",u[u.Buffer=1]="Buffer",u[u.Number=2]="Number",u[u.JSONObject=3]="JSONObject",u[u.BigInt=4]="BigInt",u[u.Array=5]="Array",u[u.Object=6]="Object",u[u.Undefined=7]="Undefined",u[u.Null=8]="Null",u[u.Boolean=9]="Boolean"})(a=e.ProtocolType||(e.ProtocolType={}));class o{constructor(G,p,b){this.writer=G,this.reader=p,this.objectTransfer=b,this.deserialize=m=>(this.reader.reset(m),this.read()),this.serialize=m=>(this.writer.reset(),this.write(m),this.writer.dump())}write(G){var p;const{writer:b}=this,m=typeof G;switch(b.reserve(1),G){case null:b.uint8(a.Null);return;default:switch(m){case"undefined":b.uint8(a.Undefined);break;case"string":b.uint8(a.String),b.stringOfVarUInt32(G);break;case"boolean":b.reserve(1),b.uint8(a.Boolean),b.uint8(G?1:0);break;case"number":b.reserve(8),b.uint8(a.Number),b.double(G);break;case"bigint":b.reserve(8),b.uint8(a.BigInt),b.int64(G);break;case"object":if(Array.isArray(G)){b.reserve(4),b.uint8(a.Array),b.varUInt32(G.length);for(const d of G)this.write(d)}else(0,n.isUint8Array)(G)?(b.reserve(4),b.uint8(a.Buffer),b.varUInt32(G.byteLength),b.buffer(G)):(b.uint8(a.JSONObject),b.stringOfVarUInt32(JSON.stringify(G,(p=this.objectTransfer)===null||p===void 0?void 0:p.replacer)));break;default:throw new Error(`Unknown type ${m}`)}}}read(){var G;const{reader:p}=this,b=p.uint8();switch(b){case a.Undefined:return;case a.Null:return null;case a.String:return p.stringOfVarUInt32();case a.Buffer:{const m=p.varUInt32();return p.buffer(m)}case a.Number:return p.double();case a.JSONObject:{const m=p.stringOfVarUInt32();return JSON.parse(m,(G=this.objectTransfer)===null||G===void 0?void 0:G.reviver)}case a.BigInt:return p.int64();case a.Array:{const m=p.varUInt32(),d=[];for(let s=0;s<m;s++)d.push(this.read());return d}case a.Boolean:return p.uint8()===1;default:throw new Error(`Unknown type ${b}`)}}}e.AnySerializer=o;var I;(function(u){u.CODE_URI="CodeURI",u.BUFFER="Buffer"})(I||(I={}));class g{static replacer(G,p){if(p){switch(p.$mid){case 1:{const b=n.Uri.revive(p);return{$type:I.CODE_URI,data:b.toString()}}}if(p instanceof Uint8Array||p instanceof Uint32Array||p instanceof Uint16Array)return{$type:"Buffer",data:Array.from(p)};if(p instanceof ArrayBuffer)return{$type:"Buffer",data:Array.from(new Uint8Array(p))};if(p.type==="Buffer")return{$type:"Buffer",data:p.data}}return p}static reviver(G,p){if(p&&p.$type!==void 0&&p.data!==void 0)switch(p.$type){case I.CODE_URI:return n.Uri.parse(p.data);case I.BUFFER:return Uint8Array.from(p.data)}return p}}e.ExtObjectTransfer=g},94846:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.oneOf=void 0;const n=t(26246),a=t(4405),o=8,I=(g,u)=>{u||(u=(0,a.furyFactory)());const{fury:G,reader:p,writer:b}=u,m=new Array(o),d=new Array(o),s={};return g.forEach((c,h)=>{const v=c.options.tag;m[h]=(0,n.generateSerializer)(G,c),d[h]=v,s[v]=h}),{deserialize:c=>{p.reset(c);const h=p.uint8();let v;switch(h){case 0:v=m[0].read();break;case 1:v=m[1].read();break;case 2:v=m[2].read();break;case 3:v=m[3].read();break;case 4:v=m[4].read();break;case 5:v=m[5].read();break;case 6:v=m[6].read();break;case 7:v=m[7].read();break}return v.kind=d[h],v},serialize:c=>{const h=s[c.kind];switch(b.reset(),b.uint8(h),h){case 0:m[0].write(c);break;case 1:m[1].write(c);break;case 2:m[2].write(c);break;case 3:m[3].write(c);break;case 4:m[4].write(c);break;case 5:m[5].write(c);break;case 6:m[6].write(c);break;case 7:m[7].write(c);break}return b.dump()}}};e.oneOf=I},4405:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.furyFactory=void 0;const a=t(85608).__importDefault(t(97419)),o=I=>{const g=new a.default(I),u=g.binaryReader,G=g.binaryWriter;return{fury:g,reader:u,writer:G}};e.furyFactory=o},25285:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});const n=t(85608);n.__exportStar(t(66748),e),n.__exportStar(t(62199),e),n.__exportStar(t(86058),e),n.__exportStar(t(15726),e),n.__exportStar(t(30613),e),n.__exportStar(t(47561),e),n.__exportStar(t(9811),e),n.__exportStar(t(8140),e),n.__exportStar(t(90750),e),n.__exportStar(t(54558),e),n.__exportStar(t(29433),e)},16908:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CommonServerProtocol=void 0;const n=t(26387),a=t(43718);e.CommonServerProtocol={name:a.CommonServerPath,methods:[{method:"getBackendOS",request:[],response:{type:n.Type.uint16()}}]}},52890:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.PositionProto=e.SelectionProto=e.RangeProto=e.UriComponentsProto=void 0;const n=t(26387);e.UriComponentsProto=n.Type.object("uri-components",{scheme:n.Type.string(),authority:n.Type.string(),path:n.Type.string(),query:n.Type.string(),fragment:n.Type.string()}),e.RangeProto=n.Type.object("range",{startLineNumber:n.Type.uint32(),startColumn:n.Type.uint32(),endLineNumber:n.Type.uint32(),endColumn:n.Type.uint32()}),e.SelectionProto=n.Type.object("selection",{selectionStartLineNumber:n.Type.uint32(),selectionStartColumn:n.Type.uint32(),positionLineNumber:n.Type.uint32(),positionColumn:n.Type.uint32()}),e.PositionProto=n.Type.object("position",{lineNumber:n.Type.uint32(),column:n.Type.uint32()})},11431:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ExtensionDocumentProtocol=void 0;const n=t(26387),a=t(52890);e.ExtensionDocumentProtocol={name:"ExtHostDocuments",methods:[{method:"$fireModelChangedEvent",request:[{name:"event",type:n.Type.object("model-changed-event",{changes:n.Type.array(n.Type.object("model-changed-event-changes",{range:a.RangeProto,rangeLength:n.Type.uint32(),rangeOffset:n.Type.uint32(),text:n.Type.string()})),uri:n.Type.string(),versionId:n.Type.uint32(),eol:n.Type.string(),dirty:n.Type.bool(),isRedoing:n.Type.bool(),isUndoing:n.Type.bool()})}]},{method:"$fireModelOpenedEvent",request:[{name:"event",type:n.Type.object("model-open-event",{uri:n.Type.string(),lines:n.Type.array(n.Type.string()),eol:n.Type.string(),versionId:n.Type.uint32(),languageId:n.Type.string(),dirty:n.Type.bool()})}]},{method:"$provideTextDocumentContent",request:[{name:"path",type:n.Type.string()},{name:"encoding",type:n.Type.string()}],response:{type:n.Type.string()}}]}},26166:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getMethodName=e.getRequestName=e.getNotificationName=e.RPCServiceCenter=void 0;const n=t(43718),a=t(96068),o=t(91676),I=t(8140),g=t(66748),u=t(92408),G=200;class p{constructor(l,r){this.bench=l,this._disposables=new n.DisposableStore,this.proxies=[],this.serviceRegistry=this._disposables.add(new u.ServiceRegistry),this.protocolRegistry=this._disposables.add(new u.ProtocolRegistry),this.deferred=new n.Deferred,this._reportThreshold=G,this.uid=(0,n.randomString)(6),this.logger=r||console}setReporter(l,r=G){this._reporterService=l,this._reportThreshold=r}registerService(l,r){r===I.ServiceType.Service&&this.bench&&this.bench.registerService(l)}ready(){return this.deferred.promise}loadProtocol(l){this.protocolRegistry.addProtocol(l,{nameConverter:r=>d(l.name,r)})}setSumiConnection(l){this.proxies.length===0&&this.deferred.resolve(),this.protocolRegistry.applyTo(l.io);const r=new g.ProxySumi(this.serviceRegistry,this.logger);r.listen(l);const c=(0,a.addElement)(this.proxies,r);return{dispose:()=>{c.dispose(),r.dispose()}}}setConnection(l){this.proxies.length===0&&this.deferred.resolve();const r=new g.ProxyJson(this.serviceRegistry,this.logger);r.listen(l);const c=(0,a.addElement)(this.proxies,r);return{dispose:()=>{c.dispose(),r.dispose()}}}onRequest(l,r,c){this.serviceRegistry.register(d(l,r),c)}onRequestService(l,r){this.serviceRegistry.registerService(r,{nameConverter:c=>d(l,c)})}async broadcast(l,r,...c){await this.ready();const h=d(l,r);let v;this._reporterService&&(v=this._reporterService.time(n.REPORT_NAME.RPC_TIMMING_MEASURE));const f=await Promise.all(this.proxies.map(Z=>Z.invoke(h,...c))),W=[],N=[];for(const Z of f)Z===o.METHOD_NOT_REGISTERED?W.push(Z):N.push(Z);if(W.length>0&&this.logger.warn(`broadcast rpc \`${h}\` getting doubtful responses: ${W.join(",")}`),N.length===0)throw v&&v.timeEnd(h,{success:!1},{minimumReportThresholdTime:this._reportThreshold}),new Error(`broadcast rpc \`${h}\` error: no remote service can handle this call`);return v&&v.timeEnd(h,{success:!0},{minimumReportThresholdTime:this._reportThreshold}),N.length===1?N[0]:N}dispose(){this._disposables.dispose(),this.proxies.forEach(l=>l.dispose()),this.proxies=[]}}e.RPCServiceCenter=p;function b(s,l){return`on:${s}:${l}`}e.getNotificationName=b;function m(s,l){return`${s}:${l}`}e.getRequestName=m;function d(s,l){return l.startsWith("on")?b(s,l):m(s,l)}e.getMethodName=d},62199:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.RPCService=void 0;const n=t(85608);n.__exportStar(t(68855),e),n.__exportStar(t(26166),e),n.__exportStar(t(92408),e);class a{get client(){return this.rpcClient?this.rpcClient[0]:void 0}}e.RPCService=a},59875:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ProxyBase=void 0;const n=t(43718),a=new Set(["then","finally"]);let o=0;class I{constructor(u,G){this.registry=u,this.connectionPromise=new n.Deferred,this._disposables=new n.DisposableStore,this.logger=G||console,this.registry.onServicesUpdate(p=>{this.connection&&this.bindMethods(p)})}nextRequestId(){return String(o++)}listen(u){this.connection=u,this._disposables.add(this.connection),this.bindMethods(this.registry.methods()),u.listen(),this.connectionPromise.resolve()}listenService(u){this.registry.registerService(u)}dispose(){this._disposables.dispose()}getInvokeProxy(){return new Proxy(Object.create(null),{get:(u,G)=>typeof G!="string"?null:a.has(G)?Promise.resolve():(u[G]||(u[G]=(...p)=>this.invoke(G,...p)),u[G])})}}e.ProxyBase=I},66748:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});const n=t(85608);n.__exportStar(t(33716),e),n.__exportStar(t(16420),e)},33716:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ProxyJson=void 0;const n=t(30613),a=t(91676),o=t(59875);class I extends o.ProxyBase{constructor(){super(...arguments),this.engine="json",this.capturer=this._disposables.add(new n.Capturer(this.engine))}bindMethods(u){for(const G of u)G.startsWith("on")?this.connection.onNotification(G,async(...p)=>{this.capturer.captureOnNotification("_",G,p);try{await this.registry.invoke(G,...this.serializeArguments(p))}catch(b){this.logger.warn(`notification exec ${G} error`,b)}}):this.connection.onRequest(G,async(...p)=>{const b=this.nextRequestId();this.capturer.captureOnRequest(b,G,p);try{const m=await this.registry.invoke(G,...this.serializeArguments(p));return this.capturer.captureOnRequestResult(b,G,m),{error:!1,data:m}}catch(m){return this.capturer.captureOnRequestFail(b,G,m),{error:!0,data:{message:m.message,stack:m.stack}}}})}async invoke(u,...G){await this.connectionPromise.promise;let p=!1;if(G.length===1&&Array.isArray(G[0])&&(p=!0),u.startsWith("on"))this.capturer.captureSendNotification("_",u,G),p?this.connection.sendNotification(u,[...G]):this.connection.sendNotification(u,...G);else{const b=this.nextRequestId();let m;p?m=this.connection.sendRequest(u,[...G]):m=this.connection.sendRequest(u,...G),this.capturer.captureSendRequest(b,u,G);const d=await m;if(d.error){const s=new Error(d.data.message);throw d.data.stack&&(s.stack=d.data.stack),this.capturer.captureSendRequestFail(b,u,d.data),s}else return this.capturer.captureSendRequestResult(b,u,d.data),d.data}}serializeArguments(u){const G=u[u.length-1];return u.length===2&&Array.isArray(u[0])&&Object.prototype.hasOwnProperty.call(G,"_isCancelled")?[...u[0],G]:u}listen(u){super.listen(u),this._disposables.add(u.onRequest(G=>{if(!this.registry.has(G)){const p=this.nextRequestId();this.capturer.captureOnRequest(p,G,[]);const b={data:a.METHOD_NOT_REGISTERED};return this.capturer.captureOnRequestFail(p,G,b.data),b}}))}}e.ProxyJson=I},16420:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ProxySumi=void 0;const n=t(91676),a=t(59875);class o extends a.ProxyBase{constructor(){super(...arguments),this.engine="sumi"}bindMethods(g){for(const u of g)u.startsWith("on")?this.connection.onNotification(u,async(...G)=>{try{await this.registry.invoke(u,...G)}catch(p){this.logger.warn(`notification exec ${u} error`,p)}}):this.connection.onRequest(u,async(...G)=>await this.registry.invoke(u,...G))}async invoke(g,...u){if(await this.connectionPromise.promise,g.startsWith("on"))this.connection.sendNotification(g,...u);else return await this.connection.sendRequest(g,...u)}listen(g){super.listen(g),this._disposables.add(g.onRequestNotFound(()=>{throw n.METHOD_NOT_REGISTERED}))}}e.ProxySumi=o},92408:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ProtocolRegistry=e.ServiceRegistry=e.getServiceMethods=void 0;const n=t(43718),a=new Set(["constructor"]);function o(u){const G=new Set;let p=u;do{const m=Object.getOwnPropertyNames(p);for(const d of m)a.has(d)||typeof u[d]=="function"&&G.add(d)}while(p=Object.getPrototypeOf(p));const b=Array.from(G);return b.sort(),b}e.getServiceMethods=o;class I{constructor(){this._disposables=new n.DisposableStore,this.emitter=this._disposables.add(new n.Emitter),this.onServicesUpdate=this.emitter.event,this.serviceMethodMap=new Map}register(G,p){this.serviceMethodMap.set(G,p),this.emitter.fire([G])}registerService(G,p){const b=[],{nameConverter:m}=p||{},d=o(G);for(const s of d){let l=s;m&&(l=m(s)),this.serviceMethodMap.set(l,G[s].bind(G)),b.push(l)}this.emitter.fire(b)}has(G){return this.serviceMethodMap.has(G)}invoke(G,...p){return this.serviceMethodMap.get(G)(...p)}methods(){return Array.from(this.serviceMethodMap.keys())}dispose(){this._disposables.dispose()}}e.ServiceRegistry=I;class g{constructor(){this._disposables=new n.DisposableStore,this.emitter=this._disposables.add(new n.Emitter),this.onProtocolUpdate=this.emitter.event,this.protocolMap=new Map}addProtocol(G,p){const b=[],{nameConverter:m}=p||{},{methods:d}=G;for(const s of d){let l=s.method;m&&(l=m(l)),this.protocolMap.set(l,Object.assign(Object.assign({},s),{method:l})),b.push(l)}this.emitter.fire(b)}applyTo(G){if(G.loadProtocolMethod){for(const p of this.protocolMap.values())G.loadProtocolMethod(p);this._disposables.add(this.onProtocolUpdate(p=>{if(G.loadProtocolMethod)for(const b of p){const m=this.protocolMap.get(b);m&&G.loadProtocolMethod(m)}}))}}dispose(){this._disposables.dispose()}}e.ProtocolRegistry=g},68855:(L,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.RPCServiceStub=void 0;class t{constructor(a,o,I){this.serviceName=a,this.center=o,this.type=I,this.getProxy=()=>new Proxy(this,{get:(g,u)=>typeof u=="symbol"?Promise.resolve():(g[u]||(g[u]=(...G)=>this.broadcast(u,...G)),g[u])}),this.center.registerService(a,this.type)}on(a,o){this.onRequest(a,o)}onRequestService(a){this.center.onRequestService(this.serviceName,a)}onRequest(a,o){this.center.onRequest(this.serviceName,a,o)}broadcast(a,...o){return this.center.broadcast(this.serviceName,a,...o)}}e.RPCServiceStub=t},97349:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SumiConnection=void 0;const n=t(43718),a=t(70392),o=t(93062),I=t(30613),g=t(90750),u=t(91676),G=t(48218),p=t(76339),b={},m={chunked:!0};class d{constructor(l,r={}){this.socket=l,this.options=r,this.disposable=new a.DisposableStore,this._requestHandlers=new Map,this._notificationHandlers=new Map,this._requestId=0,this._callbacks=new Map,this._reqTimeoutHandles=new Map,this._cancellationTokenSources=new Map,this._knownCanceledRequests=new Set,this.activeRequestPool=new Map,r.logger?this.logger=r.logger:this.logger=(0,n.getDebugLogger)(),this.io=r.io||new p.MessageIO,this.capturer=new I.Capturer(r.name||"sumi"),this.disposable.add(this.capturer)}sendNotification(l,...r){const c=this._requestId++;this.capturer.captureSendNotification(c,l,r),this.socket.send(this.io.Notification(c,l,b,r))}sendRequest(l,...r){return new Promise((c,h)=>{const v=this._requestId++;if(this._callbacks.set(v,(W,N,Z)=>{if(N){if(this.traceRequestError(v,l,r,N),N===u.METHOD_NOT_REGISTERED){c(N);return}h(N);return}this.capturer.captureSendRequestResult(v,l,Z),c(Z)}),this.options.timeout&&this.options.timeout!==-1){const W=setTimeout(()=>{this._handleTimeout(l,v)},this.options.timeout);this._reqTimeoutHandles.set(v,W)}const f=r.length&&a.CancellationToken.isCancellationToken(r[r.length-1])?r.pop():void 0;if(f&&f.isCancellationRequested)return Promise.reject((0,a.canceled)());f&&f.onCancellationRequested(()=>this.cancelRequest(v)),this.capturer.captureSendRequest(v,l,r),this.socket.send(this.io.Request(v,l,{cancelable:!!f||void 0},r))})}cancelRequest(l){this.socket.send(this.io.Cancel(l))}_handleTimeout(l,r){if(!this._callbacks.has(r)||!this._reqTimeoutHandles.has(r))return;const c=this._callbacks.get(r);this._callbacks.delete(r),this._reqTimeoutHandles.delete(r),c(b,new G.MethodTimeoutError(l))}onRequest(l,r){return this._requestHandlers.set(l,r),{dispose:()=>{this._requestHandlers.delete(l)}}}onRequestNotFound(l){return this._starRequestHandler=l,{dispose:()=>{this._starRequestHandler=void 0}}}onNotification(l,r){return this._notificationHandlers.set(l,r),{dispose:()=>{this._notificationHandlers.delete(l)}}}onNotificationNotFound(l){return this._starNotificationHandler=l,{dispose:()=>{this._starNotificationHandler=void 0}}}listen(){this.disposable.add(this.socket.onMessage(l=>{const r=this.io.parse(l),c=r.kind,h=r.requestId;switch(c){case p.OperationType.Error:case p.OperationType.Response:{const{headers:v,method:f}=r,W=r.error,N=r.result;this._reqTimeoutHandles.has(h)&&(clearTimeout(this._reqTimeoutHandles.get(h)),this._reqTimeoutHandles.delete(h));const Z=(y,E,R)=>{const A=this._callbacks.get(h);if(!A){this.logger.error(`Cannot find callback for request ${h}: ${f}`);return}this._callbacks.delete(h),A(y,E,R)};if(v&&v.chunked){let y;if(this.activeRequestPool.has(h)?y=this.activeRequestPool.get(h):(y=new o.SumiReadableStream,this.activeRequestPool.set(h,y),Z(v,void 0,y)),N===null){y.end(),this.activeRequestPool.delete(h);break}if(W){y.emitError(W);break}y.emitData(N);break}Z(v,W,N);break}case p.OperationType.Notification:case p.OperationType.Request:{const{method:v,headers:f,args:W}=r;if(f.cancelable){const N=new a.CancellationTokenSource;this._cancellationTokenSources.set(h,N),W.push(N.token),this._knownCanceledRequests.has(h)&&(N.cancel(),this._knownCanceledRequests.delete(h))}switch(c){case p.OperationType.Request:{this.capturer.captureOnRequest(h,v,W);let N;try{let E;const R=this._requestHandlers.get(v);R?E=R(...W):this._starRequestHandler&&(E=this._starRequestHandler(v,W)),N=Promise.resolve(E)}catch(E){N=Promise.reject(E)}const Z=E=>{this.capturer.captureOnRequestResult(h,v,E),(0,o.isReadableStream)(E)?(0,o.listenReadable)(E,{onData:R=>{this.socket.send(this.io.Response(h,v,m,R))},onEnd:()=>{this.socket.send(this.io.Response(h,v,m,null)),this._cancellationTokenSources.delete(h)},onError:R=>{this.socket.send(this.io.Error(h,v,m,R)),this._cancellationTokenSources.delete(h)}}):(this.socket.send(this.io.Response(h,v,b,E)),this._cancellationTokenSources.delete(h))},y=E=>{this.traceRequestError(h,v,W,E),this.socket.send(this.io.Error(h,v,b,E)),this._cancellationTokenSources.delete(h)};N.then(Z).catch(y);break}case p.OperationType.Notification:{this.capturer.captureOnNotification(h,v,W);const N=this._notificationHandlers.get(v);N?N(...W):this._starNotificationHandler&&this._starNotificationHandler(v,W);break}}break}case p.OperationType.Cancel:{const v=this._cancellationTokenSources.get(h);v?v.cancel():this._knownCanceledRequests.add(h);break}default:break}}))}dispose(){this.disposable.dispose()}static forWSWebSocket(l,r={}){return new d(new g.WSWebSocketConnection(l),r)}static forNetSocket(l,r={}){return new d(new g.NetSocketConnection(l),r)}traceRequestError(l,r,c,h){this.capturer.captureSendRequestFail(l,r,h)}}e.SumiConnection=d},48218:(L,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.MethodTimeoutError=void 0;class t extends Error{constructor(a){super(`method ${a} timeout`)}}e.MethodTimeoutError=t},47317:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});const n=t(85608);n.__exportStar(t(14076),e),n.__exportStar(t(76339),e)},76339:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.RawMessageIO=e.MessageIO=e.IMessageIO=e.AnyProtocolSerializer=e.HeadersProto=e.OperationType=void 0;const n=t(26387),a=t(26246),o=t(86560),I=t(89104),g=t(4405),u=1;var G;(function(r){r[r.Request=0]="Request",r[r.Notification=1]="Notification",r[r.Response=2]="Response",r[r.Cancel=3]="Cancel",r[r.Error=4]="Error"})(G=e.OperationType||(e.OperationType={})),e.HeadersProto={Request:n.Type.object("req-headers",{cancelable:n.Type.bool()}),Response:n.Type.object("resp-headers",{chunked:n.Type.bool()})};const p={Request:G.Request<<8|u,Notification:G.Notification<<8|u,Response:G.Response<<8|u,Cancel:G.Cancel<<8|u,Error:G.Error<<8|u};class b{constructor(c,h){this.fury=h;const v=[];for(const N of c.request)v.push(N.type);const f=n.Type.tuple(v);let W=n.Type.any();c.response&&c.response.type&&(W=c.response.type),this.request=this.fury.registerSerializer(f),this.result=this.fury.registerSerializer(W)}writeRequest(c){return this.request.serializer.write(c)}readRequest(){return this.request.serializer.read()}writeResponse(c){return this.result.serializer.write(c)}readResponse(){return this.result.serializer.read()}}class m{constructor(c,h,v){this.writer=c,this.reader=h,this.anySerializer=new I.AnySerializer(this.writer,this.reader,v)}writeRequest(c){this.anySerializer.write(c)}readRequest(){return this.anySerializer.read()}writeResponse(c){this.anySerializer.write(c)}readResponse(){return this.anySerializer.read()}}e.AnyProtocolSerializer=m;class d{}e.IMessageIO=d;class s extends d{constructor(){super(),this.serializerMap=new Map;const c=(0,g.furyFactory)();this.fury=c.fury,this.reader=c.reader,this.writer=c.writer,this.requestHeadersSerializer=(0,a.generateSerializer)(this.fury,e.HeadersProto.Request),this.responseHeadersSerializer=(0,a.generateSerializer)(this.fury,e.HeadersProto.Response),this.anySerializer=new m(this.writer,this.reader)}setAnySerializer(c){this.anySerializer=c}has(c){return this.serializerMap.has(c)}loadProtocol(c,h){const{methods:v}=c;for(const f of v)this.loadProtocolMethod(f,h)}loadProtocolMethod(c,h){let v=c.method;h?.nameConverter&&(v=h.nameConverter(v)),this.serializerMap.set(v,new b(c,this.fury))}getProcessor(c){const h=this.serializerMap.get(c);return h||this.anySerializer}Notification(c,h,v,f){const{writer:W}=this;return W.reset(),W.uint16(p.Notification),W.uint32(c),W.stringOfVarUInt32(h),this.requestHeadersSerializer.write(v),this.getProcessor(h).writeRequest(f),W.dump()}Request(c,h,v,f){const{writer:W}=this;return W.reset(),W.uint16(p.Request),W.uint32(c),W.stringOfVarUInt32(h),this.requestHeadersSerializer.write(v),this.getProcessor(h).writeRequest(f),W.dump()}Cancel(c){const{writer:h}=this;return h.reset(),h.uint16(p.Cancel),h.uint32(c),h.dump()}Response(c,h,v,f){const{writer:W}=this;return W.reset(),W.uint16(p.Response),W.uint32(c),W.stringOfVarUInt32(h),this.responseHeadersSerializer.write(v),this.getProcessor(h).writeResponse(f),W.dump()}Error(c,h,v,f){const{writer:W}=this;return W.reset(),W.uint16(p.Error),W.uint32(c),W.stringOfVarUInt32(h),this.responseHeadersSerializer.write(v),W.stringOfVarUInt32((0,o.stringifyError)(f)),W.dump()}parse(c){const{reader:h}=this;h.reset(c),h.skip(1);const v=h.uint8(),f=h.uint32();switch(v){case G.Request:case G.Notification:{const W=h.stringOfVarUInt32(),N=this.requestHeadersSerializer.read(),Z=this.getProcessor(W).readRequest();return{kind:v,requestId:f,method:W,headers:N,args:Z}}case G.Error:{const W=h.stringOfVarUInt32(),N=this.responseHeadersSerializer.read(),Z=(0,o.parseError)(h.stringOfVarUInt32());return{kind:G.Error,requestId:f,method:W,headers:N,error:Z}}case G.Response:{const W=h.stringOfVarUInt32(),N=this.responseHeadersSerializer.read(),Z=this.getProcessor(W).readResponse();return{kind:G.Response,requestId:f,method:W,headers:N,result:Z}}case G.Cancel:return{kind:G.Cancel,requestId:f};default:throw new Error(`Unknown message type: ${v}`)}}}e.MessageIO=s;class l{Request(c,h,v,f){return{kind:G.Request,requestId:c,method:h,headers:v,args:f}}Notification(c,h,v,f){return{kind:G.Notification,requestId:c,method:h,headers:v,args:f}}Cancel(c){return{kind:G.Cancel,requestId:c}}Response(c,h,v,f){return{kind:G.Response,requestId:c,headers:v,method:h,result:f}}Error(c,h,v,f){return{kind:G.Error,requestId:c,method:h,headers:v,error:f}}parse(c){return c}}e.RawMessageIO=l},86058:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SumiConnectionMultiplexer=e.createExtMessageIO=e.IRPCProtocol=e.ProxyIdentifier=void 0;const n=t(89104),a=t(97349),o=t(76339);class I{constructor(p){this.serviceId=p,this.countId=++I.count}static for(p){return new I(p)}}e.ProxyIdentifier=I,I.count=0,e.IRPCProtocol=Symbol("IRPCProtocol");function g(G){const p=new o.MessageIO;return p.setAnySerializer(new o.AnyProtocolSerializer(p.writer,p.reader,n.ExtObjectTransfer)),G?.forEach((b,m)=>{p.loadProtocol(b,{nameConverter:d=>u.getRPCName(m.serviceId,d)})}),p}e.createExtMessageIO=g;class u extends a.SumiConnection{static getRPCName(p,b){return`${p}${u.SEP}${b}`}static extractServiceAndMethod(p){const b=p.indexOf(u.SEP);return[p.substring(0,b),p.substring(b+u.SEP_LENGTH)]}static normalizeServiceId(p){return p.replace(/\//g,"_")}constructor(p,b={}){super(p,Object.assign(Object.assign({},b),{io:b.io||g()})),this.socket=p,this.options=b,this._locals=new Map,this._proxies=new Map,this.onRequestNotFound((m,d)=>this.invoke(m,d)),this.listen()}set(p,b){const m=u.normalizeServiceId(p.serviceId);return this._locals.set(m,b),b}get(p){return this._locals.get(u.normalizeServiceId(p.serviceId))}getProxy(p){const b=u.normalizeServiceId(p.serviceId);return this._proxies.has(b)||this._proxies.set(b,this._createProxy(b)),this._proxies.get(b)}_createProxy(p){const b={get:(m,d)=>{if(typeof d=="symbol")return null;if(!m[d]&&d.charCodeAt(0)===36){const s=u.getRPCName(p,d);m[d]=(...l)=>this.sendRequest(s,...l)}return m[d]}};return new Proxy(Object.create(null),b)}async invoke(p,b){const[m,d]=u.extractServiceAndMethod(p),s=this._locals.get(m);if(!s)throw new Error("Unknown actor "+m);const l=await s[d];if(typeof l!="function")throw new Error("Unknown method "+d+" on actor "+m);return l.apply(s,b)}getSocket(){return this.socket}}e.SumiConnectionMultiplexer=u,u.SEP="/",u.SEP_LENGTH=u.SEP.length},14076:(L,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})},15726:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.RPCProtocol=e.MessageIO=e.ObjectTransfer=e.createMainContextProxyIdentifier=e.createExtHostContextProxyIdentifier=e.ProxyIdentifier=e.IRPCProtocol=e.RPCProtocolEnv=void 0;const n=t(43718),a=t(86058);Object.defineProperty(e,"IRPCProtocol",{enumerable:!0,get:function(){return a.IRPCProtocol}}),Object.defineProperty(e,"ProxyIdentifier",{enumerable:!0,get:function(){return a.ProxyIdentifier}});var o;(function(m){m[m.MAIN=0]="MAIN",m[m.EXT=1]="EXT"})(o=e.RPCProtocolEnv||(e.RPCProtocolEnv={}));function I(m){return new a.ProxyIdentifier(m)}e.createExtHostContextProxyIdentifier=I;function g(m){return new a.ProxyIdentifier(m)}e.createMainContextProxyIdentifier=g;var u;(function(m){function d(l,r){if(r){if(r.$mid===1)return{$type:"VSCODE_URI",data:n.Uri.revive(r).toString()};if(r instanceof Uint8Array||r instanceof Uint32Array||r instanceof Uint16Array)return{$type:"Buffer",data:Array.from(r)};if(r instanceof ArrayBuffer)return{$type:"Buffer",data:Array.from(new Uint8Array(r))};if(r.type==="Buffer")return{$type:"Buffer",data:r.data}}return r}m.replacer=d;function s(l,r){if(r&&r.$type!==void 0&&r.data!==void 0){if(r.$type==="VSCODE_URI")return n.Uri.parse(r.data);if(r.$type==="Buffer")return Uint8Array.from(r.data)}return r}m.reviver=s})(u=e.ObjectTransfer||(e.ObjectTransfer={}));class G{static cancel(d,s){return`{"type":4,"id":"${d}"}`}static serializeRequest(d,s,l,r){return r=r.map(c=>{if(c instanceof Error){const h=Array.prototype.slice.call(arguments);return h[0]=c.stack,h.join(`
|
|
27645
|
-
`)}return c}),`{"type": 1, "id": "${d}", "proxyId": "${s}", "method": "${l}", "args": ${JSON.stringify(r,u.replacer)}}`}static serializeReplyOK(d,s,l){if(typeof s>"u")return`{"type": 2, "id": "${d}"}`;try{return`{"type": 2, "id": "${d}", "res": ${JSON.stringify(s,u.replacer)}}`}catch{return l&&l.warn("res",s),`{"type": 2, "id": "${d}", "res": {}}`}}static serializeReplyError(d,s,l){try{return`{"type": 3, "id": "${d}", "res": ${JSON.stringify((0,n.transformErrorForSerialization)(s),u.replacer)}}`}catch{return l&&l.error("error",s),`{"type": 3, "id": "${d}", "res": {}}`}}}e.MessageIO=G;function p(){const m=new Error("Canceled");return m.name=m.message,m}class b{constructor(d,s){this._protocol=d,this._locals=new Map,this._proxies=new Map,this._pendingRPCReplies=new Map,this._cancellationTokenSources=new Map,this._timeoutHandles=new Map,this._lastMessageId=0,this.logger=s||console,this.logger.error("You are using the deprecated class: 'RPCProtocol'. Please use the new one: 'SumiConnectionMultiplexer'"),this._protocol.onMessage(l=>this._receiveOneMessage(l))}set(d,s){return this._locals.set(d.serviceId,s),s}get(d){return this._locals.get(d.serviceId)}getProxy(d){return this._proxies.has(d.serviceId)||this._proxies.set(d.serviceId,this._createProxy(d.serviceId)),this._proxies.get(d.serviceId)}_createProxy(d){const s={get:(l,r)=>typeof r=="symbol"?null:(!l[r]&&r.charCodeAt(0)===36&&(l[r]=(...c)=>this._remoteCall(d,r,c)),l[r])};return new Proxy(Object.create(null),s)}_remoteCall(d,s,l){const r=l.length&&n.CancellationToken.isCancellationToken(l[l.length-1])?l.pop():void 0;if(r&&r.isCancellationRequested)return Promise.reject(p());const c=String(++this._lastMessageId),h=new n.Deferred;r&&(l.push("add.cancellation.token"),r.onCancellationRequested(()=>this._protocol.send(G.cancel(c)))),this._pendingRPCReplies.set(c,h);const v=G.serializeRequest(c,d,s,l);if(this._protocol.send(v),this._protocol.timeout&&this._protocol.timeout!==-1){const f=setTimeout(()=>{this._handleTimeout(c)},this._protocol.timeout);this._timeoutHandles.set(c,f)}return h.promise}_receiveOneMessage(d){const s=JSON.parse(d,u.reviver);switch(this._timeoutHandles.has(s.id)&&(typeof clearTimeout=="function"&&clearTimeout(this._timeoutHandles.get(s.id)),this._timeoutHandles.delete(s.id)),s.type){case 1:this._receiveRequest(s);break;case 2:this._receiveReply(s);break;case 4:this._receiveCancel(s);break;case 3:this._receiveError(s);break}}_receiveCancel(d){const s=this._cancellationTokenSources.get(d.id);s&&s.cancel()}_receiveError(d){const s=d.id;if(!this._pendingRPCReplies.has(s))return;const l=this._pendingRPCReplies.get(s);this._pendingRPCReplies.delete(s);let r;d.res&&(d.res.$isError?(r=new Error,r.name=d.res.name,r.message=d.res.message,r.stack=d.res.stack):r=d.res),l.reject(r)}_receiveRequest(d){const s=d.id,l=d.proxyId,r=d.method,c=d.args.map(f=>f===null?void 0:f);if(c.length&&c[c.length-1]==="add.cancellation.token"?c.pop():!1){const f=new n.CancellationTokenSource;this._cancellationTokenSources.set(s,f),c.push(f.token)}this._invokeHandler(l,r,c).then(f=>{this._protocol.send(G.serializeReplyOK(s,f)),this._cancellationTokenSources.delete(s)}).catch(f=>{this._protocol.send(G.serializeReplyError(s,f)),this._cancellationTokenSources.delete(s)})}_invokeHandler(d,s,l){try{return this._doInvokeHandler(d,s,l)}catch(r){return Promise.reject(r)}}async _doInvokeHandler(d,s,l){const r=this._locals.get(d);if(!r)throw new Error("Unknown actor "+d);const c=await r[s];if(typeof c!="function")throw new Error("Unknown method "+s+" on actor "+d);return c.apply(r,l)}_receiveReply(d){const s=d.id;if(!this._pendingRPCReplies.has(s))return;const l=this._pendingRPCReplies.get(s);this._pendingRPCReplies.delete(s),l.resolve(d.res)}_handleTimeout(d){if(!this._pendingRPCReplies.has(d)||!this._timeoutHandles.has(d))return;const s=this._pendingRPCReplies.get(d);this._pendingRPCReplies.delete(d),this._timeoutHandles.delete(d),s.reject(new Error("RPC Timeout: "+d))}}e.RPCProtocol=b},64592:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.furySerializer=e.CloseProtocol=e.BinaryProtocol=e.DataProtocol=e.ErrorProtocol=e.ServerReadyProtocol=e.OpenProtocol=e.PongProtocol=e.PingProtocol=void 0;const n=t(26387),a=t(94846);function o(){return{id:n.Type.string()}}e.PingProtocol=n.Type.object("ping",Object.assign({},o())),e.PongProtocol=n.Type.object("pong",Object.assign({},o())),e.OpenProtocol=n.Type.object("open",Object.assign(Object.assign({},o()),{clientId:n.Type.string(),path:n.Type.string(),traceId:n.Type.string()})),e.ServerReadyProtocol=n.Type.object("server-ready",Object.assign(Object.assign({},o()),{traceId:n.Type.string()})),e.ErrorProtocol=n.Type.object("error",Object.assign(Object.assign({},o()),{code:n.Type.uint16(),message:n.Type.string()})),e.DataProtocol=n.Type.object("data",Object.assign(Object.assign({},o()),{content:n.Type.string()})),e.BinaryProtocol=n.Type.object("binary",Object.assign(Object.assign({},o()),{binary:n.Type.binary()})),e.CloseProtocol=n.Type.object("close",Object.assign(Object.assign({},o()),{code:n.Type.uint32(),reason:n.Type.string()}));const I=(0,a.oneOf)([e.PingProtocol,e.PongProtocol,e.OpenProtocol,e.ServerReadyProtocol,e.DataProtocol,e.BinaryProtocol,e.CloseProtocol,e.ErrorProtocol]);e.furySerializer=I},54558:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.wrapSerializer=void 0;const n=t(85608);n.__exportStar(t(64592),e),n.__exportStar(t(43620),e),n.__exportStar(t(41619),e);const a=(o,I)=>({onceClose(g){return o.onceClose(g)},onMessage(g){return o.onMessage(u=>{g(I.deserialize(u))})},send(g){o.send(I.serialize(g))}});e.wrapSerializer=a},43620:(L,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.rawSerializer=void 0,e.rawSerializer={serialize:t=>t,deserialize:t=>t}},41619:(L,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})},76271:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.RPCServiceChannelPath=e.BaseCommonChannelHandler=e.commonChannelPathHandler=e.CommonChannelPathHandler=void 0;const n=t(39048),a=t(54558),o=t(47561);class I{constructor(){this.handlerMap=new Map,this.paramsKey=new Map}register(p,b){const m=p.indexOf("/:"),d=m>=0;let s=p;d&&(s=p.slice(0,m),this.paramsKey.set(s,p.slice(m+2))),this.handlerMap.has(s)||this.handlerMap.set(s,[]);const l=this.handlerMap.get(s),r=b.handler.bind(b),c=(h,v,f)=>{b.connection=h,r(h,v,f)};b.handler=c,l.push(b),this.handlerMap.set(s,l)}getParams(p,b){const m={};if(this.paramsKey.has(p)){const d=this.paramsKey.get(p);d&&(m[d]=b)}return m}removeHandler(p,b){const m=p.indexOf(":"),d=m>=0;let s=p;d&&(s=p.slice(0,m));const l=this.handlerMap.get(s)||[],r=l.indexOf(b);r!==-1&&l.splice(r,1),this.handlerMap.set(p,l)}get(p){return this.handlerMap.get(p)}disposeConnectionClientId(p,b){this.handlerMap.forEach(m=>{m.forEach(d=>{d.dispose(p,b)})})}openChannel(p,b,m){let d=this.get(p),s;if(!d){const l=p.indexOf("/");l>=0&&(d=this.get(p.slice(0,l)),s=this.getParams(p.slice(0,l),p.slice(l+1)))}if(d)for(let l=0,r=d.length;l<r;l++)d[l].handler(b,m,s)}getAll(){return Array.from(this.handlerMap.values())}}e.CommonChannelPathHandler=I,e.commonChannelPathHandler=new I;var g;(function(G){G[G.ConnectionClosed=1]="ConnectionClosed",G[G.NewChannelOpened=2]="NewChannelOpened"})(g||(g={}));class u{constructor(p,b=console,m={}){this.handlerId=p,this.logger=b,this.channelMap=new Map,this.heartbeatTimer=null,this.serializer=a.furySerializer,m.serializer&&(this.serializer=m.serializer)}heartbeat(p){this.heartbeatTimer&&clearTimeout(this.heartbeatTimer),this.heartbeatTimer=t.g.setTimeout(()=>{this.doHeartbeat(p),this.heartbeat(p)},5e3)}receiveConnection(p){let b;this.heartbeat(p);const m=(0,a.wrapSerializer)(p,this.serializer);m.onMessage(d=>{try{switch(d.kind){case"open":{const{id:s,path:l,traceId:r}=d;b=d.clientId,this.logger.log(`open a new connection channel ${b} with path ${l}`);let c=this.channelMap.get(s);c&&(c.close(g.NewChannelOpened,"new channel opened for the same channel id"),c.dispose()),c=new o.WSServerChannel(m,{id:s,clientId:b,logger:this.logger}),this.channelMap.set(s,c),e.commonChannelPathHandler.openChannel(l,c,b),c.serverReady(r);break}default:{const{id:s}=d,l=this.channelMap.get(s);l?l.dispatch(d):(m.send({kind:"error",id:s,code:n.ErrorMessageCode.ChannelNotFound,message:`channel ${s} not found`}),this.logger.warn(`channel ${s} is not found`))}}}catch(s){this.logger.error("handle connection message error",s)}}),p.onceClose(()=>{this.logger.log(`connection ${b} is closed, dispose all channels`),e.commonChannelPathHandler.disposeConnectionClientId(p,b),Array.from(this.channelMap.values()).filter(d=>d.clientId===b).forEach(d=>{d.close(g.ConnectionClosed,"connection closed"),d.dispose(),this.channelMap.delete(d.id),this.logger.log(`Remove connection channel ${d.id}`)})})}dispose(){this.heartbeatTimer&&clearTimeout(this.heartbeatTimer)}}e.BaseCommonChannelHandler=u,e.RPCServiceChannelPath="RPCService"},8140:(L,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ServiceType=void 0;var t;(function(n){n[n.Service=0]="Service",n[n.Stub=1]="Stub"})(t=e.ServiceType||(e.ServiceType={}))},47561:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.WSServerChannel=e.WSChannel=void 0;const n=t(40396),a=t(43718),o=t(39048),I=t(97349);var g;(function(b){b[b.ReSend=0]="ReSend",b[b.Sended=1]="Sended",b[b.Success=2]="Success",b[b.Failed=3]="Failed"})(g||(g={}));class u{constructor(){this.map=new Map,this.deliveryTimeout=500,this.timerMap=new Map}setDeliveryTimeout(m){this.deliveryTimeout=m}set(m,d){this.map.set(m,d)}get(m){return this.map.get(m)}success(m){this.map.set(m,g.Success);const d=this.timerMap.get(m);d&&clearTimeout(d)}dispose(){this.timerMap.forEach(m=>{clearTimeout(m)})}stop(m){const d=this.timerMap.get(m);d&&clearTimeout(d)}send(m,d){this.set(m,g.Sended),this.guard(m,d)}guard(m,d){const s=this.timerMap.get(m);s&&clearTimeout(s);const l=setTimeout(()=>{this.set(m,g.ReSend),d.whenRetry()},this.deliveryTimeout);this.timerMap.set(m,l)}}class G{constructor(m,d){this.connection=m,this._disposables=new a.DisposableStore,this.emitter=this._disposables.add(new n.EventEmitter),this.onBinaryQueue=this._disposables.add(new a.EventQueue),this.sendQueue=[],this._isServerReady=!1,this.stateTracer=new u,this.LOG_TAG="[WSChannel]",this.logger=console;const{id:s,logger:l,ensureServerReady:r}=d;this.id=s,this.LOG_TAG=`[WSChannel id:${this.id}]`,l&&(this.logger=l),this._ensureServerReady=!!r,d.deliveryTimeout&&this.stateTracer.setDeliveryTimeout(d.deliveryTimeout),this._disposables.add(this.emitter.on("binary",c=>this.onBinaryQueue.push(c)))}inqueue(m){if(this._ensureServerReady&&!this._isServerReady){this.sendQueue||(this.sendQueue=[]),this.sendQueue.push(m);return}this.connection.send(m)}ensureMessageDeliveried(m,d=(0,a.randomString)(16)){const s=this.stateTracer.get(d);if(s&&s>=g.Sended){this.logger.error(`message already send already success or in progress, traceId: ${d}, state: ${s}`);return}m.traceId=d,this.connection.send(m),this.stateTracer.send(d,{whenRetry:()=>{if(this._isServerReady){this.stateTracer.stop(d);return}this.ensureMessageDeliveried(m,d)}})}onMessage(m){return this.emitter.on("message",m)}onBinary(m){return this.onBinaryQueue.on(m)}onOpen(m){return this.emitter.on("open",m)}onReopen(m){return this.emitter.on("reopen",m)}pause(){this._isServerReady=!1}onServerReady(m){if(this._isServerReady){m();return}return this.emitter.on("open",m)}resume(){if(this._isServerReady=!0,this.sendQueue){for(const m of this.sendQueue)this.connection.send(m);this.sendQueue=[]}}dispatch(m){switch(m.kind){case"server-ready":m.traceId&&this.stateTracer.success(m.traceId),this.resume(),this.emitter.emit("open",m.id);break;case"data":this.emitter.emit("message",m.content);break;case"binary":this.emitter.emit("binary",m.binary);break;case"error":switch(this.logger.error(this.LOG_TAG,`receive error: id: ${m.id}, code: ${m.code}, error: ${m.message}`),m.code){case o.ErrorMessageCode.ChannelNotFound:this.channelPath&&(this.pause(),this.open(this.channelPath,this.clientId));break}break}}open(m,d){this.channelPath=m,this.clientId=d,this.LOG_TAG=`[WSChannel id=${this.id} path=${m}]`;const s={kind:"open",id:this.id,path:m,clientId:d};this._ensureServerReady?this.ensureMessageDeliveried(s):this.connection.send(s)}send(m){this.inqueue({kind:"data",id:this.id,content:m})}sendBinary(m){this.inqueue({kind:"binary",id:this.id,binary:m})}onError(){}close(m,d){this.pause(),this.emitter.emit("close",m,d)}fireReopen(){this.emitter.emit("reopen")}onClose(m){return this.emitter.on("close",m)}onceClose(m){return this.emitter.once("close",m)}createConnection(){return{onceClose:m=>this.onceClose(m),onMessage:m=>this.onBinary(m),send:m=>{this.sendBinary(m)},dispose(){}}}createSumiConnection(m={}){return new I.SumiConnection(this.createConnection(),m)}dispose(){this.stateTracer.dispose(),this.sendQueue=[],this._disposables.dispose()}ping(){this.connection.send({kind:"ping",id:this.id})}}e.WSChannel=G;class p extends G{constructor(m,d){super(m,d),this.connection=m,this.messageQueue=[],this.clientId=d.clientId}serverReady(m){this.connection.send({kind:"server-ready",id:this.id,traceId:m})}dispatch(m){switch(m.kind){case"data":this.emitter.emit("message",m.content);break;case"binary":this.emitter.emit("binary",m.binary);break;case"ping":this.connection.send({kind:"pong",id:this.id});break}}}e.WSServerChannel=p},8919:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),t(85608).__exportStar(t(25285),e)},70650:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AINativeConfigService=void 0;const n=t(85608),a=t(76003),o=t(1149),I=t(11050),g={supportsMarkers:!0,supportsChatAssistant:!0,supportsInlineChat:!0,supportsInlineCompletion:!0,supportsConflictResolve:!0,supportsRenameSuggestions:!0,supportsTerminalDetection:!0,supportsTerminalCommandSuggest:!0},u={};Object.keys(g).forEach(p=>{u[p]=!1});let G=class{constructor(){this.aiModuleLoaded=!1,this.internalCapabilities=g}setDefaultCapabilities(b){for(const m in this.internalCapabilities)Object.prototype.hasOwnProperty.call(this.internalCapabilities,m)&&(this.internalCapabilities[m]=b)}enableCapabilities(){this.setDefaultCapabilities(!0)}disableCapabilities(){this.setDefaultCapabilities(!1)}get capabilities(){if(!this.aiModuleLoaded)return u;const{AINativeConfig:b}=this.appConfig;return b?.capabilities?Object.assign(Object.assign({},this.internalCapabilities),b.capabilities):this.internalCapabilities}setAINativeModuleLoaded(b){this.aiModuleLoaded=b}};n.__decorate([(0,a.Autowired)(I.AppConfig),n.__metadata("design:type",Object)],G.prototype,"appConfig",void 0),n.__decorate([(0,a.Autowired)(o.LayoutViewSizeConfig),n.__metadata("design:type",o.LayoutViewSizeConfig)],G.prototype,"layoutViewSize",void 0),G=n.__decorate([(0,a.Injectable)()],G),e.AINativeConfigService=G},41480:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AIReporter=void 0;const n=t(85608),a=t(76003),o=t(43718),I=t(52664);let g=class{constructor(){this.reportInfoCache=new Map,this.reporterCancelHandler=new Map}getRelationId(){return(0,o.uuid)()}getCacheReportInfo(G){return this.reportInfoCache.get(G)}getCommonReportInfo(){return{}}start(G,p){const b=this.getRelationId();this.report(b,Object.assign(Object.assign({},p),{msgType:G,isStart:!0}));const m=setTimeout(()=>{this.report(b,Object.assign(Object.assign({},p),{success:!1}))},60*1e3);return this.reporterCancelHandler.set(b,m),b}end(G,p){const b=this.reporterCancelHandler.get(G);b&&clearTimeout(b),this.report(G,Object.assign(Object.assign({success:!0},p),{isStart:!1}))}record(G,p){p||(p=this.getRelationId());const b=this.reportInfoCache.get(p)||{},m=Object.assign(Object.assign(Object.assign(Object.assign({},this.getCommonReportInfo()),b),G),{relationId:p});return this.reportInfoCache.set(p,m),m}report(G,p){const b=this.record(p,G);this.reporter.point(I.AI_REPORTER_NAME,p.msgType||b.msgType,b)}};n.__decorate([(0,a.Autowired)(o.IReporterService),n.__metadata("design:type",Object)],g.prototype,"reporter",void 0),g=n.__decorate([(0,a.Injectable)()],g),e.AIReporter=g},57925:(L,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AI_CODE_ACTION=e.AI_CHAT_VISIBLE=e.AI_INLINE_COMPLETION_REPORTER=e.AI_INLINE_COMPLETION_VISIBLE=e.AI_INLINE_CHAT_INTERACTIVE_INPUT_VISIBLE=e.AI_INLINE_CHAT_VISIBLE=void 0,e.AI_INLINE_CHAT_VISIBLE={id:"ai.inlineChat.visible"},e.AI_INLINE_CHAT_INTERACTIVE_INPUT_VISIBLE={id:"ai.inlineChat.interactiveInput.visible"},e.AI_INLINE_COMPLETION_VISIBLE={id:"ai.inline.completion.visible"},e.AI_INLINE_COMPLETION_REPORTER={id:"ai.inline.completion.reporter"},e.AI_CHAT_VISIBLE={id:"ai.chat.visible"},e.AI_CODE_ACTION={id:"ai.code.action"}},38070:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.MergeConflictReportService=void 0;const n=t(85608),a=t(76003),o=t(43718),I=t(70650);let g=class extends o.Disposable{constructor(){super(...arguments),this.reportInfoMap=new Map,this.unique2RelationMap=new Map}record(G,p){if(!this.aiNativeConfigService.capabilities.supportsConflictResolve)return p;let b="";return this.unique2RelationMap.has(G)?(b=this.unique2RelationMap.get(G),this.aiReporter.record(p,b)):(b=this.aiReporter.record(Object.assign(Object.assign({},p),{msgType:o.AISerivceType.MergeConflict,message:o.AISerivceType.MergeConflict,editorMode:p.editorMode||o.MergeConflictEditorMode.traditional})).relationId,this.unique2RelationMap.set(G,b)),Object.assign(Object.assign({},p),{relationId:b})}report(G,p){if(!this.aiNativeConfigService.capabilities.supportsConflictResolve)return;const b=this.record(G,p);this.aiReporter.end(b.relationId,b)}reportIncrementNum(G,p){if(!this.aiNativeConfigService.capabilities.supportsConflictResolve)return;const b=this.unique2RelationMap.get(G);if(!b)return;const m=this.aiReporter.getCacheReportInfo(b)[p]||0;this.report(G,{[p]:m+1})}dispose(){super.dispose(),this.reportInfoMap.clear()}};n.__decorate([(0,a.Autowired)(I.AINativeConfigService),n.__metadata("design:type",I.AINativeConfigService)],g.prototype,"aiNativeConfigService",void 0),n.__decorate([(0,a.Autowired)(o.IAIReporter),n.__metadata("design:type",Object)],g.prototype,"aiReporter",void 0),g=n.__decorate([(0,a.Injectable)()],g),e.MergeConflictReportService=g},95040:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.IAIInlineChatService=void 0,t(85608).__exportStar(t(70650),e),e.IAIInlineChatService=Symbol("IAIInlineChatService")},12956:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ClientAppStateService=e.ClientAppStateEvent=void 0;const n=t(85608),a=t(76003),o=t(43718);class I extends o.BasicEvent{}e.ClientAppStateEvent=I;let g=class{constructor(){this._state="init",this.deferred={}}get state(){return this._state}set state(G){G!==this._state&&(this._state=G,this.deferred[G]===void 0&&(this.deferred[G]=new o.Deferred),this.deferred[G].resolve(),this.eventBus.fire(new I(G)))}reachedState(G){return this.deferred[G]===void 0&&(this.deferred[G]=new o.Deferred),this.deferred[G].promise}reachedAnyState(...G){return Promise.race(G.map(p=>this.reachedState(p)))}};n.__decorate([(0,a.Autowired)(o.IEventBus),n.__metadata("design:type",Object)],g.prototype,"eventBus",void 0),g=n.__decorate([(0,a.Injectable)()],g),e.ClientAppStateService=g},59555:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ApplicationService=void 0;const n=t(85608),a=t(76003),o=t(59019),I=t(43718),g=t(11050),u=t(42101);let G=class{constructor(){this._initialized=new I.Deferred}async initializeData(){this._backendOS=await this.commonServer.getBackendOS(),this._initialized.resolve()}get frontendOS(){return I.OS.type()}get backendOS(){if(this._backendOS)return this._backendOS;if(this.appConfig.isElectronRenderer)return this.frontendOS;throw new Error("Can't get backend os type before initialize, if you want wait to get backend os, please use async method: getBackendOS")}async getBackendOS(){return await this._initialized.promise,this.backendOS}get clientId(){return this.injector.get(o.WSChannelHandler).clientId}get windowId(){return this.appConfig.isElectronRenderer?u.electronEnv.currentWindowId:this.injector.get(o.WSChannelHandler).clientId}};n.__decorate([(0,a.Autowired)(I.CommonServerPath),n.__metadata("design:type",Object)],G.prototype,"commonServer",void 0),n.__decorate([(0,a.Autowired)(g.AppConfig),n.__metadata("design:type",Object)],G.prototype,"appConfig",void 0),n.__decorate([(0,a.Autowired)(a.INJECTOR_TOKEN),n.__metadata("design:type",a.Injector)],G.prototype,"injector",void 0),G=n.__decorate([(0,a.Injectable)()],G),e.ApplicationService=G},16884:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});const n=t(85608);n.__exportStar(t(12956),e),n.__exportStar(t(59555),e)},22914:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BaseConnectionHelper=void 0;const n=t(85608),a=t(76003),o=t(18740),I=t(43718),g=t(32796),u=t(38578),G=(0,I.getDebugLogger)();let p=class{async createRPCServiceChannel(m){var d;const s=this.createConnection(),l=(d=this.appConfig.clientId)!==null&&d!==void 0?d:this.getDefaultClientId(),r=new o.WSChannelHandler(s,l,{logger:G});return(0,g.createConnectionService)(this.injector,m,r)}};n.__decorate([(0,a.Autowired)(a.INJECTOR_TOKEN),n.__metadata("design:type",a.Injector)],p.prototype,"injector",void 0),n.__decorate([(0,a.Autowired)(u.AppConfig),n.__metadata("design:type",Object)],p.prototype,"appConfig",void 0),n.__decorate([(0,a.Autowired)(I.IReporterService),n.__metadata("design:type",Object)],p.prototype,"reporterService",void 0),p=n.__decorate([(0,a.Injectable)({multiple:!0})],p),e.BaseConnectionHelper=p},41320:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BrowserRuntime=void 0;const n=t(85608),a=t(76003),o=t(44142),I=t(6858),g=t(53206);let u=class extends I.RendererRuntime{constructor(){super(...arguments),this.runtimeName=o.ESupportRuntime.Web}registerRuntimeModuleProviders(p,b){b.webProviders&&p.addProviders(...b.webProviders)}registerRuntimeInnerProviders(p){(0,g.injectBrowserInnerProviders)(p)}};u=n.__decorate([(0,a.Injectable)()],u),e.BrowserRuntime=u},53206:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.injectBrowserInnerProviders=void 0;const n=t(93899),a=t(97222);function o(I){I.addProviders({token:n.ICtxMenuRenderer,useClass:a.BrowserCtxMenuRenderer})}e.injectBrowserInnerProviders=o},55267:(L,e,t)=>{"use strict";var n;Object.defineProperty(e,"__esModule",{value:!0}),e.WebConnectionHelper=void 0;const a=t(85608),o=t(76003),I=t(91493),g=t(43718),u=t(22914);let G=n=class extends u.BaseConnectionHelper{constructor(b){super(),this.options=b,this.clientId=n.clientIdFactory()}getDefaultClientId(){return this.clientId}createConnection(){return I.ReconnectingWebSocketConnection.forURL(this.options.connectionPath,this.options.connectionProtocols)}static clientIdFactory(){return`CLIENT_ID_${(0,g.uuid)()}`}};G=n=a.__decorate([(0,o.Injectable)({multiple:!0}),a.__metadata("design:paramtypes",[Object])],G),e.WebConnectionHelper=G},44142:(L,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.treeSitterWasmCDNUri=e.onigWasmCDNUri=e.ESupportRuntime=void 0;var t;(function(n){n.Electron="electron",n.Web="web"})(t=e.ESupportRuntime||(e.ESupportRuntime={})),e.onigWasmCDNUri="https://g.alicdn.com/kaitian/vscode-oniguruma-wasm/1.5.1/onig.wasm",e.treeSitterWasmCDNUri="https://gw.alipayobjects.com/os/lib/opensumi/tree-sitter-wasm/0.0.2"},59574:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ElectronRendererRuntime=void 0;const n=t(85608),a=t(76003),o=t(42101),I=t(44142),g=t(6858),u=t(38892);let G=class extends g.RendererRuntime{constructor(){super(...arguments),this.runtimeName=I.ESupportRuntime.Electron}registerRuntimeModuleProviders(m,d){d.electronProviders&&m.addProviders(...d.electronProviders)}registerRuntimeInnerProviders(m){(0,u.injectElectronInnerProviders)(m)}mergeAppConfig(m){return p(m)}async provideResourceUri(m){switch(m){case g.EKnownResources.OnigWasm:return o.electronEnv.onigWasmUri||this.appConfig.onigWasmUri||I.onigWasmCDNUri;case g.EKnownResources.TreeSitterWasmDirectory:return o.electronEnv.treeSitterWasmDirectoryUri||this.appConfig.treeSitterWasmDirectoryUri||I.treeSitterWasmCDNUri;default:throw new Error(`Unknown resource: ${m}`)}}};G=n.__decorate([(0,a.Injectable)()],G),e.ElectronRendererRuntime=G;function p(b){var m;const d=(m=o.electronEnv.metadata)!==null&&m!==void 0?m:{},s=Object.assign(Object.assign({},b),{appRoot:b.appRoot||o.electronEnv.appPath,extensionDir:b.extensionDir||d.extensionDir});return d.extensionDevelopmentHost&&(b.extensionDevelopmentHost=d.extensionDevelopmentHost),d.extensionCandidate&&(b.extensionCandidate=(b.extensionCandidate||[]).concat(o.electronEnv.metadata.extensionCandidate||[])),s}},38892:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.injectElectronInnerProviders=void 0;const n=t(43718),a=t(37406),o=t(93899),I=t(27790),g=t(11050),u=t(42101);function G(p){const b=p.get(g.AppConfig);p.addProviders({token:n.IElectronMainMenuService,useValue:(0,u.createElectronMainApi)(n.IElectronMainMenuService,b.devtools)},{token:a.IElectronMainUIService,useValue:(0,u.createElectronMainApi)(a.IElectronMainUIService,b.devtools)},{token:a.IElectronMainLifeCycleService,useValue:(0,u.createElectronMainApi)(a.IElectronMainLifeCycleService,b.devtools)},{token:a.IElectronURLService,useValue:(0,u.createElectronMainApi)(a.IElectronURLService,b.devtools)},{token:I.IElectronMenuFactory,useClass:I.ElectronMenuFactory},{token:I.IElectronMenuBarService,useClass:I.ElectronMenuBarService},{token:o.ICtxMenuRenderer,useClass:I.ElectronCtxMenuRenderer})}e.injectElectronInnerProviders=G},63977:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ElectronConnectionHelper=void 0;const n=t(85608),a=t(76003),o=t(42101),I=t(22914);let g=class extends I.BaseConnectionHelper{getDefaultClientId(){return o.electronEnv.metadata.windowClientId}createConnection(){return(0,o.createNetSocketConnection)()}};g=n.__decorate([(0,a.Injectable)({multiple:!0})],g),e.ElectronConnectionHelper=g},18379:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ConnectionHelperFactory=void 0;const n=t(85608),a=t(38578),o=t(55267),I=t(44142),g=t(63977);n.__exportStar(t(55267),e),n.__exportStar(t(63977),e),n.__exportStar(t(22914),e),n.__exportStar(t(44142),e);function u(G){return p=>{const b=G.get(a.AppConfig);let m;switch(p){case I.ESupportRuntime.Electron:m=G.get(g.ElectronConnectionHelper);break;case I.ESupportRuntime.Web:m=G.get(o.WebConnectionHelper,[{connectionPath:b.connectionPath,connectionProtocols:b.connectionProtocols}]);break;default:throw new Error(`Unknown backend type: ${p}`)}return m}}e.ConnectionHelperFactory=u},6858:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.RendererRuntime=e.EKnownResources=void 0;const n=t(85608),a=t(76003),o=t(11050),I=t(44142);var g;(function(G){G.OnigWasm="wasm:onig",G.TreeSitterWasmDirectory="wasm:tree-sitter"})(g=e.EKnownResources||(e.EKnownResources={}));let u=class{mergeAppConfig(p){return p}async provideResourceUri(p){switch(p){case g.OnigWasm:return this.appConfig.onigWasmUri||I.onigWasmCDNUri;case g.TreeSitterWasmDirectory:return this.appConfig.treeSitterWasmDirectoryUri||I.treeSitterWasmCDNUri;default:throw new Error(`Unknown resource: ${p}`)}}};n.__decorate([(0,a.Autowired)(o.AppConfig),n.__metadata("design:type",Object)],u.prototype,"appConfig",void 0),u=n.__decorate([(0,a.Injectable)()],u),e.RendererRuntime=u},37638:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AuthenticationContribution=void 0;const n=t(85608),a=t(76003),o=t(43718),I=t(66549);let g=class{onStart(){this.authenticationService.initialize()}registerCommands(G){G.registerCommand({id:o.noAccountsId,label:"%authentication.noAccounts%"},{execute:()=>{}})}};n.__decorate([(0,a.Autowired)(o.IAuthenticationService),n.__metadata("design:type",Object)],g.prototype,"authenticationService",void 0),g=n.__decorate([(0,o.Domain)(I.ClientAppContribution,o.CommandContribution)],g),e.AuthenticationContribution=g},10605:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AuthenticationService=void 0;const n=t(85608),a=t(76003),o=t(43718),I=t(93899);let g=class extends o.Disposable{constructor(){super(...arguments),this._onDidRegisterAuthenticationProvider=this.registerDispose(new o.Emitter),this.onDidRegisterAuthenticationProvider=this._onDidRegisterAuthenticationProvider.event,this._onDidUnregisterAuthenticationProvider=this.registerDispose(new o.Emitter),this.onDidUnregisterAuthenticationProvider=this._onDidUnregisterAuthenticationProvider.event,this._onDidChangeSessions=this.registerDispose(new o.Emitter),this.onDidChangeSessions=this._onDidChangeSessions.event,this._authenticationProviders=new Map,this._signInRequestItems=new Map}async initialize(){this._storage=await this.getStorage(new o.URI("authentication").withScheme(o.STORAGE_SCHEMA.GLOBAL));const G=new Map;this.onDidChangeSessions(async p=>{if(p.event.added.length>0){const b=await this.getSessions(p.providerId);b.forEach(m=>{if(b.find(W=>G.get(W.id)))return;const d=new o.DisposableCollection,s=`account-sign-out-${p.providerId}-${m.id}`,l=this.commands.registerCommand({id:s,label:(0,o.formatLocalize)("authentication.signOut",p.label)},{execute:async()=>{await this.signOutOfAccount(p.providerId,m.account.label)}}),r=`manage-trusted-${p.providerId}-${m.id}`,c=this.commands.registerCommand({id:r,label:"%authentication.manageTrustedExtensions%"},{execute:async()=>{await this.manageTrustedExtensionsForAccount(p.providerId,m.account.label)}}),h=`${p.providerId}${m.account.label}`,v=this.menus.registerMenuItem(I.MenuId.AccountsContext,{submenu:h,label:`${m.account.label} (${p.label})`}),f=this.menus.registerMenuItems(h,[{command:r},{command:s}]);d.push(v),d.push(f),d.push(l),d.push(c),G.set(m.id,d)})}p.event.removed.length>0&&p.event.removed.forEach(b=>{const m=G.get(b.id);m&&(m.dispose(),G.delete(b.id))})})}get storage(){return this._storage}registerAuthenticationProvider(G,p){this._authenticationProviders.set(G,p),this._onDidRegisterAuthenticationProvider.fire({id:G,label:p.label}),this.updateAccountsMenuItem()}async sessionsUpdate(G,p){const b=this._authenticationProviders.get(G);b&&(this._onDidChangeSessions.fire({providerId:G,label:b.label,event:p}),await b.updateSessionItems(p),this.updateAccountsMenuItem(),p.added&&await this.updateNewSessionRequests(b))}async updateNewSessionRequests(G){const p=this._signInRequestItems.get(G.id);if(!p)return;const b=await G.getSessions();Object.keys(p).forEach(m=>{if(b.some(d=>d.scopes.slice().sort().join("")===m)){const d=p[m];d&&d.disposables.forEach(s=>s.dispose()),delete p[m],Object.keys(p).length===0?this._signInRequestItems.delete(G.id):this._signInRequestItems.set(G.id,p)}})}getTrustedKey(G,p){return`trusted-${G}-${p}`}async getAllowedExtensions(G,p){const b=this.getTrustedKey(G,p);let m=[];try{const d=await this.storage.get(b);d&&(m=JSON.parse(d))}catch(d){this.logger.warn("read allow extensions error: "+d)}return m}async setAllowedExtensions(G,p,b){const m=this.getTrustedKey(G,p);await this.storage.set(m,JSON.stringify(b))}async removeAllowedExtensions(G,p){const b=this.getTrustedKey(G,p);await this.storage.delete(b)}async updatedAllowedExtension(G,p,b,m,d){const s=await this.getAllowedExtensions(G,p),l=s.findIndex(r=>r.id===b);l===-1?s.push({id:b,name:m,allowed:d}):s[l].allowed=d,await this.setAllowedExtensions(G,p,s)}async isAccessAllowed(G,p,b){const d=(await this.getAllowedExtensions(G,p)).find(s=>s.id===b);return d?d.allowed!==void 0?d.allowed:!0:!1}async tryActivateProvider(G){await this.eventBus.fireAndAwait(new o.ExtensionActivateEvent({topic:"onView",data:G}));let p=this._authenticationProviders.get(G);if(p)return p;const b=new Promise((d,s)=>{this.onDidRegisterAuthenticationProvider(l=>{if(l.id===G)if(p=this._authenticationProviders.get(G),p)d(p);else throw new Error(`No authentication provider '${G}' is currently registered.`)})}),m=new Promise((d,s)=>{setTimeout(()=>{s(new Error(`didRegister ${G} timeout`))},5e3)});return Promise.race([b,m])}async getSessions(G){try{return await(this._authenticationProviders.get(G)||await this.tryActivateProvider(G)).getSessions()}catch{throw new Error(`No authentication provider '${G}' is currently registered.`)}}isAuthenticationProviderRegistered(G){return this._authenticationProviders.has(G)}getProviderIds(){const G=[];return this._authenticationProviders.forEach(p=>{G.push(p.id)}),G}unregisterAuthenticationProvider(G){const p=this._authenticationProviders.get(G);p&&(p.dispose(),this._authenticationProviders.delete(G),this._onDidUnregisterAuthenticationProvider.fire({id:G,label:p.label}),this.updateAccountsMenuItem())}updateAccountsMenuItem(){let G=!1;this._authenticationProviders.forEach(p=>{G=G||p.hasSessions()}),G&&this._noAccountsMenuItem&&(this._noAccountsMenuItem.dispose(),this._noAccountsMenuItem=void 0),!G&&!this._noAccountsMenuItem&&(this._noAccountsMenuItem=this.menus.registerMenuItem(I.MenuId.AccountsContext,{group:"0_accounts",command:o.noAccountsId}))}async requestNewSession(G,p,b,m){let d=this._authenticationProviders.get(G);if(d||await new Promise((s,l)=>{this.onDidRegisterAuthenticationProvider(r=>{r.id===G&&(d=this._authenticationProviders.get(G),s())})}),d){const s=this._signInRequestItems.get(G),l=p.sort().join("");if(s&&s[l]&&s[l].requestingExtensionIds.includes(b))return;const c=this.commands.registerCommand({id:`${b}signIn`,label:(0,o.formatLocalize)("authentication.signInRequests",m)},{execute:async()=>{const v=await this.login(G,p),f=v.account.label,W=await this.getAllowedExtensions(G,f);W.find(N=>N.id===b)||(W.push({id:b,name:m}),await this.setAllowedExtensions(G,f,W)),await this.setExtensionSessionId(m,G,v.id)}}),h=this.menus.registerMenuItem(I.MenuId.AccountsContext,{group:"2_signInRequests",command:`${b}signIn`});if(s){const v=s[l]||{disposables:[],requestingExtensionIds:[]};s[l]={disposables:[...v.disposables,h,c],requestingExtensionIds:[...v.requestingExtensionIds,b]},this._signInRequestItems.set(G,s)}else this._signInRequestItems.set(G,{[l]:{disposables:[h,c],requestingExtensionIds:[b]}})}}getLabel(G){const p=this._authenticationProviders.get(G);if(p)return p.label;throw new Error(`No authentication provider '${G}' has been declared.`)}supportsMultipleAccounts(G){const p=this._authenticationProviders.get(G);if(p)return p.supportsMultipleAccounts;throw new Error(`No authentication provider '${G}' is currently registered.`)}async login(G,p){try{return await(this._authenticationProviders.get(G)||await this.tryActivateProvider(G)).login(p)}catch(b){throw new Error(`No authentication provider '${G}' is currently registered, error messge: ${b.message}`)}}logout(G,p){const b=this._authenticationProviders.get(G);if(b)return b.logout(p);throw new Error(`No authentication provider '${G}' is currently registered.`)}manageTrustedExtensionsForAccount(G,p){const b=this._authenticationProviders.get(G);if(b)return b.manageTrustedExtensions(p);throw new Error(`No authentication provider '${G}' is currently registered.`)}signOutOfAccount(G,p){const b=this._authenticationProviders.get(G);if(b)return b.signOut(p);throw new Error(`No authentication provider '${G}' is currently registered.`)}getUsagesKey(G,p){return`usages-${G}-${p}`}async getAccountUsages(G,p){const b=this.getUsagesKey(G,p),m=await this.storage.get(b);let d=[];if(m)try{d=JSON.parse(m)}catch(s){this.logger.warn("parse account usages error: "+s)}return d}async addAccountUsage(G,p,b,m){const d=this.getUsagesKey(G,p),s=await this.getAccountUsages(G,p),l=s.findIndex(r=>r.extensionId===b);l>-1?s.splice(l,1,{extensionId:b,extensionName:m,lastUsed:Date.now()}):s.push({extensionId:b,extensionName:m,lastUsed:Date.now()}),await this.storage.set(d,JSON.stringify(s))}async removeAccountUsage(G,p){const b=this.getUsagesKey(G,p);await this.storage.delete(b)}getExtensionSessionIdKey(G,p){return`session-${G}-${p}`}async getExtensionSessionId(G,p){const b=this.getExtensionSessionIdKey(G,p);return await this.storage.get(b)}async setExtensionSessionId(G,p,b){const m=this.getExtensionSessionIdKey(G,p);await this.storage.set(m,b)}async removeExtensionSessionId(G,p){const b=this.getExtensionSessionIdKey(G,p);await this.storage.delete(b)}};n.__decorate([(0,a.Autowired)(o.ILogger),n.__metadata("design:type",Object)],g.prototype,"logger",void 0),n.__decorate([(0,a.Autowired)(o.StorageProvider),n.__metadata("design:type",Function)],g.prototype,"getStorage",void 0),n.__decorate([(0,a.Autowired)(o.IEventBus),n.__metadata("design:type",Object)],g.prototype,"eventBus",void 0),n.__decorate([(0,a.Autowired)(I.IMenuRegistry),n.__metadata("design:type",I.IMenuRegistry)],g.prototype,"menus",void 0),n.__decorate([(0,a.Autowired)(o.CommandRegistry),n.__metadata("design:type",Object)],g.prototype,"commands",void 0),g=n.__decorate([(0,a.Injectable)()],g),e.AuthenticationService=g},72746:(L,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})},33916:(L,e,t)=>{"use strict";var n;n={value:!0},e.j=void 0;const a=t(85608);t(29810);const o=t(76003),I=t(43718),g=t(4588),u=t(37406),G=t(16884),p=t(18379),b=t(41320),m=t(59574),d=t(6858),s=t(36206),l=t(66963),r=t(18193),c=t(41118),h=t(1149),v=t(11949),f=t(64102),W=t(78132),N=t(11050),Z=t(67304),y=t(79951),E=t(79248),R=t(96302),A=t(71843);t(99696);class w{constructor(V){var Y,_,H;this.opts=V,this.appInitialized=new I.Deferred,this.browserModules=[],this._disposables=new I.DisposableCollection,this._inComposition=!1,this._handleBeforeUpload=z=>{if(this.config.isElectronRenderer){if(this.stateService.state==="electron_confirmed_close")return;z.returnValue="",z.preventDefault(),this.stateService.state!=="electron_asking_close"&&(this.stateService.state="electron_asking_close",this.preventStopElectron().then(P=>{if(P)this.stateService.state="ready";else return this.stopContributionsElectron().then(()=>{this.stateService.state="electron_confirmed_close";const U=this.injector.get(u.IElectronMainLifeCycleService);setTimeout(()=>{U.closeWindow(y.electronEnv.currentWindowId)},0)})}))}else if(this.preventStop())return(z||window.event).returnValue=!0,!0},this._handleUnload=()=>{this.stateService.state="closing_window",this.config.isElectronRenderer||(this.disposeSideEffect(),this.stopContributions())},this._handleResize=()=>{},this._handleKeydown=z=>{z&&z.target.name!==c.NO_KEYBINDING_NAME&&!this._inComposition&&this.keybindingService.run(z)},this._handleKeyup=z=>{this.keybindingService.resolveModifierKey(z)},this._handleCompositionstart=()=>{this._inComposition=!0},this._handleCompositionend=()=>{this._inComposition=!1},this._handleWheel=()=>{};const{modules:S,iconStyleSheets:X,useCdnIcon:Q,editorBackgroundImage:O,defaultPreferences:M,allowSetDocumentTitleFollowWorkspaceDir:T=!0}=V,x=a.__rest(V,["modules","iconStyleSheets","useCdnIcon","editorBackgroundImage","defaultPreferences","allowSetDocumentTitleFollowWorkspaceDir"]);this.initEarlyPreference(V.workspaceDir||"");const B=(0,W.getPreferenceLanguageId)(M);(0,I.setLanguageId)(B),this.injector=V.injector||new o.Injector,this.modules=S,this.modules.forEach(z=>this.resolveModuleDeps(z)),this.browserModules=V.modulesInstances||[];const D=(Y=V.isElectronRenderer)!==null&&Y!==void 0?Y:this.detectRuntime()===p.ESupportRuntime.Electron;this.config=Object.assign(Object.assign({appName:g.DEFAULT_APPLICATION_NAME,appHost:D?g.DEFAULT_APPLICATION_DESKTOP_HOST:g.DEFAULT_APPLICATION_WEB_HOST,appRoot:V.appRoot||"",uriScheme:g.DEFAULT_URI_SCHEME},x),{isElectronRenderer:D,workspaceDir:V.workspaceDir||"",extensionDir:V.extensionDir||"",injector:this.injector,wsPath:V.wsPath||`ws://${window.location.hostname}:8000`,layoutConfig:V.layoutConfig,editorBackgroundImage:V.editorBackgroundImage||O,allowSetDocumentTitleFollowWorkspaceDir:T,devtools:(_=V.devtools)!==null&&_!==void 0?_:!1,rpcMessageTimeout:V.rpcMessageTimeout||-1}),this.config.connectionPath=V.connectionPath||`${this.config.wsPath}/service`;const J=this.injector.get(h.LayoutViewSizeConfig);J.init(V.layoutViewSize),this.config.layoutViewSize=J,this.injector.get(h.DesignLayoutConfig).setLayout(V.designLayout,(H=V.AINativeConfig)===null||H===void 0?void 0:H.layout),this.injector.addProviders({token:s.IClientApp,useValue:this}),this.injector.addProviders({token:N.AppConfig,useValue:this.config}),this.runtime=D?this.injector.get(m.ElectronRendererRuntime):this.injector.get(b.BrowserRuntime),this.injector.addProviders({token:d.RendererRuntime,useValue:this.runtime}),this.config.devtools&&(window.__OPENSUMI_DEVTOOLS_GLOBAL_HOOK__={}),V.extensionDevelopmentPath&&(this.config.extensionCandidate=(this.config.extensionCandidate||[]).concat(Array.isArray(V.extensionDevelopmentPath)?V.extensionDevelopmentPath.map(z=>(0,I.asExtensionCandidate)(z,!0)):[(0,I.asExtensionCandidate)(V.extensionDevelopmentPath,!0)]),this.config.extensionDevelopmentHost=!0),this.config=this.runtime.mergeAppConfig(this.config),this.initBaseProvider(),this.initFields(),this.appendIconStyleSheets(X,Q),this.createBrowserModules(M)}resolveModuleDeps(V){const Y=Reflect.getMetadata("dependencies",V);Y&&Y.forEach(_=>{this.modules.indexOf(_)===-1&&this.modules.push(_)})}get lifeCycleService(){return this.injector.get(I.AppLifeCycleServiceToken)}async start(V,Y,_){const S=this.injector.get(I.IReporterService).time(I.REPORT_NAME.MEASURE);this.lifeCycleService.phase=1,_?(console.error("You're using deprecated method 'start()' with connection parameter"),console.error("We introduced a new connection service to replace the old one"),(0,R.bindConnectionServiceDeprecated)(this.injector,this.modules,_)):Y&&await this.createConnection(Y),S.timeEnd("ClientApp.createConnection"),this.logger=this.injector.get(I.ILogger),this.stateService.state="client_connected",this.registerEventListeners(),await this.injector.get(I.IApplicationService).initializeData(),await this.measure("Contributions.start",()=>this.startContributions(V)),this.stateService.state="started_contributions",this.stateService.state="ready",this.lifeCycleService.phase=4,S.timeEnd("Framework.ready")}async createConnection(V){(await this.injector.get(p.ConnectionHelperFactory)(V).createRPCServiceChannel(this.modules)).onReopen(()=>{this.onReconnectContributions()})}onReconnectContributions(){const V=this.contributions;for(const Y of V)Y.onReconnect&&Y.onReconnect(this)}initBaseProvider(){(0,A.injectInnerProviders)(this.injector),this.runtime.registerRuntimeInnerProviders(this.injector)}initFields(){this.contributionsProvider=this.injector.get(l.ClientAppContribution),this.commandRegistry=this.injector.get(I.CommandRegistry),this.keybindingRegistry=this.injector.get(c.KeybindingRegistry),this.keybindingService=this.injector.get(c.KeybindingService),this.stateService=this.injector.get(G.ClientAppStateService),this.nextMenuRegistry=this.injector.get(f.IMenuRegistry)}createBrowserModules(V){const Y=this.injector;for(const _ of this.modules){const H=Y.get(_);this.browserModules.push(H),H.providers&&this.injector.addProviders(...H.providers),this.runtime.registerRuntimeModuleProviders(this.injector,H),H.preferences&&H.preferences(this.injector)}(0,r.injectCorePreferences)(this.injector),this.injectPreferenceService(this.injector,V),this.injectStorageProvider(this.injector);for(const _ of this.browserModules)if(_.contributionProvider)if(Array.isArray(_.contributionProvider))for(const H of _.contributionProvider)(0,I.createContributionProvider)(this.injector,H);else(0,I.createContributionProvider)(this.injector,_.contributionProvider)}get contributions(){return this.contributionsProvider.getContributions()}async startContributions(V){await this.measure("RenderApp.render",()=>this.renderApp(V)),this.lifeCycleService.phase=2,await this.measure("Contributions.initialize",()=>this.initializeContributions()),await this.initializeCoreRegistry(),this.stateService.state="core_module_initialized",this.lifeCycleService.phase=3,await this.measure("Contributions.onStart",()=>this.onStartContributions()),await this.runContributionsPhase(this.contributions,"onDidStart")}async initializeCoreRegistry(){this.commandRegistry.initialize(),await this.keybindingRegistry.initialize(),this.nextMenuRegistry.initialize()}async initializeContributions(){await this.runContributionsPhase(this.contributions,"initialize"),this.appInitialized.resolve(),this.logger.verbose("contributions.initialize done")}async onStartContributions(){await this.runContributionsPhase(this.contributions,"onStart")}async runContributionsPhase(V,Y){return await Promise.all(V.map(_=>this.contributionPhaseRunner(_,Y)))}async contributionPhaseRunner(V,Y){const _=V[Y];if(typeof _=="function")try{const H=V.constructor.name+"."+Y;return await this.measure(H,()=>_.call(V,this))}catch(H){this.logger.error(`Could not run contribution#${Y}`,H)}}async renderApp(V){await(0,E.renderClientApp)(this,V),this.injector.get(I.IEventBus).fire(new v.RenderedEvent)}async measure(V,Y){const H=this.injector.get(I.IReporterService).time(I.REPORT_NAME.MEASURE),S=await Y();return H.timeEnd(V),S}preventStop(){const Y=this.injector.get(r.CorePreferences)["application.confirmExit"];if(Y==="never")return!1;for(const _ of this.contributions)if(_.onWillStop)try{if(_.onWillStop(this))return!0}catch(H){(0,I.getDebugLogger)().error(H)}return Y==="always"}async preventStopElectron(){if(this.injector.get(r.CorePreferences)["application.confirmExit"]==="never")return!1;for(const _ of this.contributions)if(_.onWillStop)try{if(await _.onWillStop(this))return!0}catch(H){(0,I.getDebugLogger)().error(H)}return!1}stopContributions(){for(const V of this.contributions)if(V.onStop)try{V.onStop(this)}catch(Y){this.logger.error("Could not stop contribution",Y)}}async stopContributionsElectron(){const V=[];for(const Y of this.contributions)Y.onStop&&V.push((async()=>{try{await Y.onStop(this)}catch(_){this.logger.error("Could not stop contribution",_)}})());await Promise.all(V)}registerEventListeners(){window.addEventListener("beforeunload",this._handleBeforeUpload),window.addEventListener("unload",this._handleUnload),window.addEventListener("resize",this._handleResize),window.addEventListener("compositionstart",this._handleCompositionstart),window.addEventListener("compositionend",this._handleCompositionend),window.addEventListener("keydown",this._handleKeydown,!0),window.addEventListener("keyup",this._handleKeyup,!0),I.isOSX&&document.body.addEventListener("wheel",this._handleWheel,{passive:!1})}injectPreferenceService(V,Y){const _=()=>H=>{const S=V.get(W.PreferenceProvider,{tag:H});return S.asScope(H),S};if((0,W.injectPreferenceConfigurations)(V),(0,W.injectPreferenceSchemaProvider)(V),V.addProviders({token:W.PreferenceProviderProvider,useFactory:_},{token:W.PreferenceService,useClass:W.PreferenceServiceImpl}),Y){const S=V.get(W.PreferenceProviderProvider)(W.PreferenceScope.Default);for(const X of Object.keys(Y))S.setPreference(X,Y[X])}}injectStorageProvider(V){V.addProviders({token:I.DefaultStorageProvider,useClass:I.DefaultStorageProvider}),V.addProviders({token:I.StorageProvider,useFactory:Y=>_=>Y.get(I.DefaultStorageProvider).get(_)}),(0,I.createContributionProvider)(V,I.StorageResolverContribution)}fireOnReload(V=!1){window.location.reload(V)}appendIconStyleSheets(V,Y){const _=Y?[Z.DEFAULT_CDN_ICON,Z.IDE_OCTICONS_CN_CSS,Z.IDE_CODICONS_CN_CSS]:[];V&&V.length&&V.forEach(H=>{this.updateIconMap(H.prefix,H.iconMap),_.push(H.cssPath)});for(const H of _){const S=document.createElement("link");S.setAttribute("rel","stylesheet"),S.setAttribute("href",H),document.getElementsByTagName("head")[0].appendChild(S)}}updateIconMap(V,Y){V==="kaitian-icon kticon-"&&this.logger.error(`The icon prefix '${V}' conflicts with the built-in icon, please check the icon configuration.`),(0,Z.updateIconMap)(V,Y)}initEarlyPreference(V){this._disposables.push((0,W.registerLocalStorageProvider)("general.theme",V)),this._disposables.push((0,W.registerLocalStorageProvider)("general.icon",V)),this._disposables.push((0,W.registerLocalStorageProvider)("general.language",V))}async dispose(){window.removeEventListener("beforeunload",this._handleBeforeUpload),window.removeEventListener("unload",this._handleUnload),window.removeEventListener("resize",this._handleResize),window.removeEventListener("compositionstart",this._handleCompositionstart),window.removeEventListener("compositionend",this._handleCompositionend),window.removeEventListener("keydown",this._handleKeydown,!0),I.isOSX&&document.body.removeEventListener("wheel",this._handleWheel),this._disposables.dispose(),this.disposeSideEffect()}disposeSideEffect(){for(const V of this.contributions)if(V.onDisposeSideEffects)try{V.onDisposeSideEffects(this)}catch(Y){this.logger.error("Could not dispose contribution",Y)}}detectRuntime(){return window.isElectronRenderer||typeof navigator=="object"&&typeof navigator.userAgent=="string"&&navigator.userAgent.indexOf("Electron")>=0?p.ESupportRuntime.Electron:p.ESupportRuntime.Web}}e.j=w},79248:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.renderClientApp=e.App=void 0;const n=t(85608),a=n.__importDefault(t(14041)),o=n.__importDefault(t(25873)),I=t(97267),g=t(43718),u=t(28003),G=t(68456),p=t(11050),b=t(52564),m=t(26542),d=t(67304);function s(c){const h=c.app.injector,v=h.get(g.IEventBus),f=h.get(m.LabelService),W=a.default.useCallback((N,Z)=>f.getIcon(g.URI.parse(N),Z),[]);return a.default.useEffect(()=>{let N;const Z=()=>{N&&window.cancelAnimationFrame(N),N=window.requestAnimationFrame(()=>{N=null,b.allSlot.forEach(y=>{v.fire(new G.ResizeEvent({slotLocation:y.slot}))})})};return window.addEventListener("resize",Z),()=>{window.removeEventListener("resize",Z)}},[]),a.default.createElement(I.ComponentContextProvider,{value:{getIcon:d.getIcon,localize:g.localize,getResourceIcon:W}},a.default.createElement(p.ConfigProvider,{value:c.app.config},a.default.createElement(c.main,{callback:c.callback}),c.overlays&&c.overlays.map((N,Z)=>a.default.createElement(N,{key:Z}))))}e.App=s;const l=c=>h=>{o.default.createRoot(c).render(a.default.createElement(h,null))};function r(c,h){const v=c.config.layoutComponent||u.DefaultLayout,f=c.browserModules.filter(Z=>Z.isOverlay).map(Z=>Z.component?Z.component:((0,g.getDebugLogger)().warn("Overlay module does not have component",Z),()=>a.default.createElement(a.default.Fragment,null))),W=Z=>a.default.createElement(s,Object.assign({},Z,{app:c,main:v,overlays:f}));return(typeof h=="function"?h:l(h))(W)}e.renderClientApp=r},96302:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.bindConnectionServiceDeprecated=e.createConnectionService=void 0;const n=t(8919),a=t(18740),o=t(76271),I=t(43718),g=t(16884),u=t(11050);async function G(m,d,s,l={}){var r;const c=m.get(u.AppConfig),h=m.get(I.IReporterService);s.setReporter(h);const v=m.get(I.IEventBus),f=m.get(g.ClientAppStateService),W=()=>{f.reachedState("core_module_initialized").then(()=>{v.fire(new I.BrowserConnectionOpenEvent)})};s.connection.isOpen()&&W(),s.connection.onOpen(()=>{W()}),s.connection.onClose(()=>{f.reachedState("core_module_initialized").then(()=>{v.fire(new I.BrowserConnectionCloseEvent)})}),s.connection.onError(E=>{f.reachedState("core_module_initialized").then(()=>{v.fire(new I.BrowserConnectionErrorEvent(E))})}),await s.initHandler(),m.addProviders({token:a.WSChannelHandler,useValue:s});const N=await s.openChannel(o.RPCServiceChannelPath),Z=new n.RPCServiceCenter;return Z.setSumiConnection(N.createSumiConnection(l)),!((r=c?.measure)===null||r===void 0)&&r.connection&&Z.setReporter(h,c.measure.connection.minimumReportThresholdTime),b(m,d,Z),m.get(I.ILogger).reportToServer(),N}e.createConnectionService=G;function p(m,d,s){const l=new n.RPCServiceCenter,r=l.setConnection(s),c=s.onClose(()=>{r.dispose(),c.dispose()});b(m,d,l)}e.bindConnectionServiceDeprecated=p;function b(m,d,s){const{getRPCService:l}=(0,n.initRPCService)(s),r=[],c=[];for(const h of d){const v=m.get(h);if(v.backServices)for(const f of v.backServices)r.push(f),f.protocol&&s.loadProtocol(f.protocol)}for(const h of r){const{servicePath:v}=h,f=l(v),W={token:v,useValue:f};m.addProviders(W),h.clientToken&&c.push(h)}for(const h of c){const{servicePath:v}=h,f=l(v);if(h.clientToken){const W=m.get(h.clientToken);f.onRequestService(W)}}}},32796:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});const n=t(85608);n.__exportStar(t(72746),e),n.__exportStar(t(79248),e),n.__exportStar(t(96302),e)},71843:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.injectInnerProviders=void 0;const n=t(43718),a=t(96405),o=t(16872),I=t(41480),g=t(12956),u=t(59555),G=t(18379),p=t(10605),b=t(66963),m=t(71707),d=t(80832),s=t(23396),l=t(77273),r=t(41118),c=t(37015),h=t(68456),v=t(75694),f=t(93899),W=t(77666),N=t(90697),Z=t(73967),y=t(78132),E=t(68969),R=t(11719),A=t(52564),w=t(26542),F=t(52993),V=t(10845),Y=t(40827),_=t(32242),H=t(99e3),S=t(42637),X=t(62652),Q=t(27957),O=t(45670),M=t(66894),T=t(63921),x=t(82493);function B(D){(0,n.createContributionProvider)(D,b.ClientAppContribution),(0,n.createContributionProvider)(D,n.CommandContribution),(0,n.createContributionProvider)(D,l.FsProviderContribution),(0,n.createContributionProvider)(D,r.KeybindingContribution),(0,n.createContributionProvider)(D,f.MenuContribution),(0,n.createContributionProvider)(D,h.ComponentContribution),(0,n.createContributionProvider)(D,A.SlotRendererContribution),(0,n.createContributionProvider)(D,y.PreferenceContribution),(0,n.createContributionProvider)(D,O.VariableContribution),(0,n.createContributionProvider)(D,h.TabBarToolbarContribution),(0,n.createContributionProvider)(D,S.ToolBarActionContribution),(0,n.createContributionProvider)(D,_.StaticResourceContribution);const J=[{token:n.IEventBus,useClass:n.EventBusImpl},{token:n.CommandService,useClass:n.CommandServiceImpl},{token:n.CommandRegistry,useClass:n.CommandRegistryImpl},{token:r.KeybindingRegistry,useClass:r.KeybindingRegistryImpl},{token:r.KeybindingService,useFactory:k=>k.get(r.KeybindingRegistry)},{token:o.KeyboardNativeLayoutService,useClass:c.BrowserKeyboardLayoutImpl},{token:o.KeyboardLayoutChangeNotifierService,useFactory:k=>k.get(o.KeyboardNativeLayoutService)},{token:c.KeyValidator,useFactory:k=>k.get(o.KeyboardNativeLayoutService)},g.ClientAppStateService,{token:v.ILogger,useClass:v.Logger},{token:v.Logger,useAlias:v.ILogger},{token:h.ComponentRegistry,useClass:h.ComponentRegistryImpl},{token:O.VariableRegistry,useClass:O.VariableRegistryImpl},{token:f.AbstractMenuService,useClass:f.MenuServiceImpl},{token:f.AbstractContextMenuService,useClass:f.ContextMenuServiceImpl},{token:f.IMenuRegistry,useClass:f.MenuRegistryImpl},{token:W.IToolbarActionService,useClass:W.ToolbarActionService},{token:f.AbstractMenubarService,useClass:f.MenubarServiceImpl},{token:n.IReporter,useClass:n.DefaultReporter},{token:n.IReporterService,useClass:n.ReporterService},{token:n.ReporterMetadata,useValue:{host:n.REPORT_HOST.BROWSER}},{token:E.IProgressService,useClass:R.ProgressService},{token:S.IToolbarRegistry,useClass:Q.NextToolbarRegistryImpl},{token:S.IToolbarPopoverRegistry,useClass:X.ToolbarPopoverRegistry},Q.ToolbarClientAppContribution,{token:n.IProblemPatternRegistry,useClass:n.ProblemPatternRegistryImpl},{token:n.IProblemMatcherRegistry,useClass:n.ProblemMatchersRegistryImpl},{token:n.ITaskDefinitionRegistry,useClass:n.TaskDefinitionRegistryImpl},{token:N.IOpenerService,useClass:Z.OpenerService},{token:M.IWindowService,useClass:T.WindowService},{token:n.IApplicationService,useClass:u.ApplicationService},{token:F.IClipboardService,useClass:F.BrowserClipboardService},{token:V.IExternalUriService,useClass:V.ExternalUriService},{token:n.IAuthenticationService,useClass:p.AuthenticationService},{token:w.ICryptoService,useClass:w.CryptoService},{token:w.ICredentialsService,useClass:w.CredentialsService},{token:a.IHashCalculateService,useClass:a.HashCalculateServiceImpl},{token:n.IExtensionsSchemaService,useClass:s.ExtensionsPointServiceImpl},{token:n.AppLifeCycleServiceToken,useClass:x.AppLifeCycleService},{token:_.StaticResourceService,useClass:H.StaticResourceServiceImpl},Y.StaticResourceClientAppContribution,{token:m.ISplitPanelService,useClass:m.SplitPanelService},{token:n.IAIReporter,useClass:I.AIReporter},{token:d.IDesignStyleService,useClass:d.DesignStyleService},{token:G.ConnectionHelperFactory,useFactory:G.ConnectionHelperFactory}];D.addProviders(...J)}e.injectInnerProviders=B},82493:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AppLifeCycleService=void 0;const n=t(85608),a=t(76003),o=t(43718);let I=class{constructor(){this.onDidChangeLifecyclePhaseEmitter=new o.Emitter,this.onDidLifeCyclePhaseChange=this.onDidChangeLifecyclePhaseEmitter.event}set phase(u){this.lifeCyclePhase=u,this.onDidChangeLifecyclePhaseEmitter.fire(this.lifeCyclePhase)}get phase(){return this.lifeCyclePhase}};I=n.__decorate([(0,a.Injectable)()],I),e.AppLifeCycleService=I},99696:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});const a=t(85608).__importDefault(t(99126));typeof window.ResizeObserver>"u"&&(window.ResizeObserver=a.default)},36206:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BrowserModule=e.IClientApp=void 0;const n=t(85608),a=t(76003),o=t(43718);e.IClientApp=Symbol("CLIENT_APP_TOKEN");class I extends o.BasicModule{}n.__decorate([(0,a.Autowired)(e.IClientApp),n.__metadata("design:type",Object)],I.prototype,"app",void 0),e.BrowserModule=I},14109:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.MERGE_CONFLICT_COMMANDS=e.SCM_COMMANDS=e.QUICK_OPEN_COMMANDS=e.MARKER_COMMANDS=e.LAYOUT_COMMANDS=e.TERMINAL_COMMANDS=e.DIALOG_COMMANDS=e.KEYBOARD_COMMANDS=e.WORKSPACE_COMMANDS=e.OUTLINE_COMMANDS=e.SEARCH_COMMANDS=e.DIFF_EDITOR_COMMANDS=e.EDITOR_COMMANDS=e.COMMON_COMMANDS=e.OPEN_EDITORS_COMMANDS=e.FILE_COMMANDS=void 0;const n=t(67304);var a;(function(f){const W="file";f.NEW_FILE={id:"file.new",category:W,iconClass:(0,n.getIcon)("new-file")},f.RENAME_FILE={id:"file.rename",category:W},f.DELETE_FILE={id:"file.delete",category:W},f.NEW_FOLDER={id:"file.folder.new",category:W,iconClass:(0,n.getIcon)("new-folder")},f.COMPARE_SELECTED={id:"file.compare",category:W},f.OPEN_FILE={id:"file.open",category:W},f.SAVE_FILE={id:"file.save",category:W},f.COLLAPSE_ALL={id:"filetree.collapse.all",category:W,iconClass:(0,n.getIcon)("collapse-all")},f.REFRESH_ALL={id:"filetree.refresh.all",category:W,iconClass:(0,n.getIcon)("refresh")},f.OPEN_RESOURCES={id:"filetree.open.file",category:W},f.OPEN_TO_THE_SIDE={id:"filetree.open.side",category:W},f.OPEN_TYPE_WITH={id:"filetree.open.with",category:W},f.COPY_PATH={id:"filetree.copy.path",category:W,label:"%file.copy.path%"},f.COPY_RELATIVE_PATH={id:"filetree.copy.relativepath",category:W},f.COPY_FILE={id:"filetree.copy.file",category:W},f.CUT_FILE={id:"filetree.cut.file",category:W},f.PASTE_FILE={id:"filetree.paste.file",category:W},f.SELECT_CURRENT_NODE={id:"filetree.selectCurrentNode",category:W},f.LOCATION={id:"filetree.location",category:W},f.LOCATION_WITH_EDITOR={id:"filetree.location_with_editor",category:W,iconClass:(0,n.getIcon)("focus")},f.OPEN_FOLDER={id:"filetree.open.folder",category:W,label:"%file.open.folder%"},f.VSCODE_OPEN_FOLDER={id:"filetree.open.vscode_open_folder",category:W},f.OPEN_WORKSPACE={id:"filetree.open.workspace",category:W,label:"%file.open.workspace%"},f.SEARCH_ON_FOLDER={id:"filetree.search.folder",category:W},f.FOCUS_FILES={id:"filetree.focus.files",category:W,label:"%file.focus.files%"},f.FILTER_TOGGLE={id:"filetree.files.filter_toggle",category:W,iconClass:(0,n.getIcon)("retrieval")},f.FILTER_OPEN={id:"filetree.files.filter_open",category:W},f.OPEN_TERMINAL_WITH_PATH={id:"filetree.openTerminalWithPath",category:W},f.FILTER_CLOSE={id:"filetree.quitFilterMode",category:W},f.NEXT={id:"filetree.next",category:W},f.PREV={id:"filetree.prev",category:W},f.COLLAPSE={id:"filetree.collapse",category:W},f.EXPAND={id:"filetree.expand",category:W},f.REVEAL_IN_EXPLORER={id:"filetree.revealInExplorer",category:W},f.TOGGLE_OR_OPEN={id:"filetree.toggleOrOpen",category:W}})(a=e.FILE_COMMANDS||(e.FILE_COMMANDS={}));var o;(function(f){const W="openeditors";f.SAVE_ALL={id:"opened.editors.save.all",category:W,iconClass:(0,n.getIcon)("save-all")},f.CLOSE_ALL={id:"opened.editors.close.all",category:W,iconClass:(0,n.getIcon)("close-all")},f.SAVE_BY_GROUP={id:"opened.editors.save.byGroup"},f.CLOSE_BY_GROUP={id:"opened.editors.close.byGroup"},f.OPEN={id:"opened.editors.open",category:W},f.CLOSE={id:"opened.editors.close",category:W},f.OPEN_TO_THE_SIDE={id:"opened.editors.openToTheSide",category:W},f.COMPARE_SELECTED={id:"opened.editors.compare",category:W},f.COPY_RELATIVE_PATH={id:"opened.editors.copyRelativePath",category:W},f.COPY_PATH={id:"opened.editors.copyPath",category:W},f.LOCATION={id:"opened.editors.location",category:W}})(o=e.OPEN_EDITORS_COMMANDS||(e.OPEN_EDITORS_COMMANDS={}));var I;(function(f){f.FIND={id:"core.find",label:"%common.find%"},f.REPLACE={id:"core.replace",label:"%common.replace%"},f.ABOUT_COMMAND={id:"core.about",label:"%common.about%"},f.OPEN_PREFERENCES={id:"core.openpreference",label:"%common.preference.open%"},f.LOCATE_PREFERENCES={id:"workbench.preferences.locate"},f.OPEN_KEYMAPS={id:"core.keymaps.open",label:"%common.keymaps.open%"},f.OPEN_LAUNCH_CONFIGURATION={id:"core.launchConfiguration.open",label:"%debug.action.open.configuration%"},f.ENVIRONMENT_VARIABLE={id:"core.environment.variable"}})(I=e.COMMON_COMMANDS||(e.COMMON_COMMANDS={}));var g;(function(f){const W="editor";f.API_OPEN_EDITOR_COMMAND_ID="_workbench.open",f.API_OPEN_DIFF_EDITOR_COMMAND_ID="_workbench.diff",f.API_OPEN_WITH_EDITOR_COMMAND_ID="_workbench.openWith",f.NEW_UNTITLED_FILE={id:"file.new.untitled",category:W,label:"%file.new%",iconClass:(0,n.getIcon)("new-file")},f.UNDO={id:"editor.undo",category:W,label:"%editor.undo%"},f.REDO={id:"editor.redo",category:W,label:"%editor.redo%"},f.SELECT_ALL={id:"editor.selectAll",category:W,label:"%selection.all%"},f.OPEN_RESOURCE={id:"editor.openUri",category:W},f.OPEN_RESOURCES={id:"editor.openUris",category:W},f.SAVE_URI={id:"editor.saveUri",category:W},f.SAVE_CURRENT={id:"editor.saveCurrent",category:W,label:"%editor.saveCurrent%"},f.FOCUS_IF_NOT_ACTIVATE_ELEMENT={id:"editor.focusIfNotActivateElement",category:W,label:"%editor.saveCurrent%"},f.COMPARE={id:"editor.compare",category:W},f.OPEN_MERGEEDITOR={id:"editor.open.mergeEditor",category:W},f.OPEN_MERGEEDITOR_DEV={id:"editor.open.mergeEditor.dev",category:"Merge Editor (Dev)",label:"Open Merge Editor State from Json"},f.MERGEEDITOR_RESET={id:"editor.mergeEditor.reset",category:W,label:"%mergeEditor.reset%"},f.CLOSE={id:"editor.close",category:W,label:"%editor.closeCurrent%"},f.CLOSE_ALL_IN_GROUP={id:"editor.closeAllInGroup",category:W,label:"%editor.closeAllInGroup%"},f.CLOSE_OTHER_IN_GROUP={id:"editor.closeOtherEditorsInGroup",category:W,label:"%editor.closeOtherEditors%"},f.CLOSE_ALL={id:"editor.closeAll",category:W,label:"%editor.close.all%"},f.CLOSE_SAVED={id:"editor.closeSaved",category:W,label:"%editor.closeSaved%"},f.SAVE_ALL={id:"editor.saveAll",category:W,label:"%editor.saveAll%"},f.CLOSE_TO_RIGHT={id:"editor.closeToRight",category:W,label:"%editor.closeToRight%"},f.GET_CURRENT={id:"editor.getCurrent",category:W},f.GET_CURRENT_RESOURCE={id:"editor.getCurrentResource",category:W},f.SPLIT_TO_LEFT={id:"editor.splitToLeft",category:W,label:"%editor.splitToLeft%"},f.SPLIT_TO_RIGHT={id:"editor.splitToRight",category:W,label:"%editor.splitToRight%",iconClass:(0,n.getIcon)("embed")},f.SPLIT_TO_TOP={id:"editor.splitToTop",category:W,label:"%editor.splitToTop%"},f.SPLIT_TO_BOTTOM={id:"editor.splitToBottom",category:W,label:"%editor.splitToBottom%"},f.CHANGE_LANGUAGE={id:"editor.changeLanguage",category:W},f.CHANGE_ENCODING={id:"editor.changeEncoding",category:W},f.CHANGE_EOL={id:"editor.changeEol",category:W},f.NAVIGATE_LEFT={id:"editor.navigateLeft",category:W},f.NAVIGATE_RIGHT={id:"editor.navigateRight",category:W},f.NAVIGATE_UP={id:"editor.navigateUp",category:W},f.NAVIGATE_DOWN={id:"editor.navigateDown",category:W},f.NAVIGATE_NEXT={id:"editor.navigateNext",category:W},f.NAVIGATE_PREVIOUS={id:"editor.navigatePrevious",category:W},f.PREVIOUS={id:"editor.previous",category:W},f.NEXT={id:"editor.next",category:W},f.PREVIOUS_IN_GROUP={id:"editor.previousInGroup",category:W},f.NEXT_IN_GROUP={id:"editor.nextInGroup",category:W},f.LAST_IN_GROUP={id:"editor.lastInGroup",category:W},f.CLOSE_OTHER_GROUPS={id:"editor.closeOtherGroup",category:W,label:"%editor.closeEditorsInOtherGroups%"},f.OPEN_EDITOR_AT_INDEX={id:"editor.openEditorAtIndex",category:W},f.EVEN_EDITOR_GROUPS={id:"editor.evenEditorGroups",category:W,label:"%editor.resetEditorGroups%"},f.REVERT_DOCUMENT={id:"editor.document.revert",category:W,label:"%editor.revert%"},f.REVERT_AND_CLOSE={id:"editor.revertAndClose",category:W},f.GO_FORWARD={id:"editor.goForward",category:W},f.GO_BACK={id:"editor.goBack",category:W},f.PIN_CURRENT={id:"editor.pinCurrent",category:W},f.COPY_CURRENT_PATH={id:"editor.copyCurrentPath",category:W},f.GO_TO_GROUP={id:"editor.goToGroup",category:W},f.MOVE_GROUP={id:"editor.moveGroup",category:W},f.REOPEN_CLOSED={id:"editor.reopenClosed",category:W},f.FOCUS={id:"editor.focus",category:W},f.TEST_TOKENIZE={id:"editor.tokenize.test",category:W,label:"%editor.tokenize.test%"},f.AUTO_SAVE={id:"editor.autoSave",category:W},f.FOCUS_ACTIVE_EDITOR_GROUP={id:"editor.focusActiveEditorGroup",category:W},f.COMPONENT_UNDO={id:"editor.componentUndo",category:W},f.COMPONENT_REDO={id:"editor.componentRedo"},f.SEARCH_WORKSPACE_SYMBOL={id:"editor.workspaceSymbol.quickopen",label:"%editor.workspaceSymbol.quickopen%",category:W},f.SEARCH_WORKSPACE_SYMBOL_CLASS={id:"editor.workspaceSymbolClass.quickopen",label:"%editor.workspaceSymbolClass.quickopen%",category:W},f.GO_TO_LINE={id:"editor.action.gotoLine",label:"%editor.goToLine%",category:W},f.QUICK_OPEN={id:"workbench.action.quickOpen",category:W,label:"%editor.quickOpen%"},f.TOGGLE_WORD_WRAP={id:"editor.toggleWordWrap",label:"%editor.toggleWordWrap%",category:W},f.FORMAT_DOCUMENT={id:"editor.action.formatDocument",category:W},f.FORMAT_SELECTION={id:"editor.action.formatSelection",category:W},f.FORMAT_DOCUMENT_WITH={id:"editor.action.formatDocument.multiple",category:W,label:"%editor.formatDocument.label.multiple%"},f.FORMAT_SELECTION_WITH={id:"editor.action.formatSelection.multiple",category:W,label:"%editor.formatSelection.label.multiple%"},f.COPY_PATH={id:"editor.action.copyPath",category:W,label:"%editor.copyPath%"},f.COPY_RELATIVE_PATH={id:"editor.action.copyRelativePath",category:W,label:"%editor.copyRelativePath%"}})(g=e.EDITOR_COMMANDS||(e.EDITOR_COMMANDS={}));var u;(function(f){const W="diff-editor";f.REVERT={id:"editor.diff.revert",category:W},f.ACCEPT={id:"editor.diff.accept",category:W},f.TOGGLE_COLLAPSE_UNCHANGED_REGIONS={id:"editor.diff.toggleCollapseUnchangedRegions",category:W}})(u=e.DIFF_EDITOR_COMMANDS||(e.DIFF_EDITOR_COMMANDS={}));var G;(function(f){const W="search";f.OPEN_SEARCH={id:"content-search.openSearch",category:W,label:"Open search sidebar"},f.REFRESH={id:"file-search.refresh",label:"refresh search",iconClass:(0,n.getIcon)("refresh"),category:W},f.CLEAN={id:"file-search.clean",label:"clean search",iconClass:(0,n.getIcon)("clear"),category:W},f.GET_RECENT_SEARCH_WORD={id:"search.getRecentSearchWordCmd",category:W},f.GET_BACK_RECENT_SEARCH_WORD={id:"search.getBackRecentSearchWordCmd",category:W},f.MENU_REPLACE={id:"search.menu.replace",category:W,label:"%search.replace.title%"},f.MENU_REPLACE_ALL={id:"search.menu.replaceAll",category:W,label:"%search.replaceAll.label%"},f.MENU_HIDE={id:"search.menu.hide",category:W,label:"%search.result.hide%"},f.MENU_COPY={id:"search.menu.copy",category:W,label:"%file.copy.file%"},f.MENU_COPY_ALL={id:"search.menu.copyAll",category:W,label:"%search.menu.copyAll%"},f.MENU_COPY_PATH={id:"search.menu.copyPath",category:W,label:"%file.copy.path%"},f.REPLACE={id:"search.replace",category:W},f.CLOSE={id:"search.close",category:W}})(G=e.SEARCH_COMMANDS||(e.SEARCH_COMMANDS={}));var p;(function(f){const W="outline";f.OUTLINE_COLLAPSE_ALL={id:"outline.collapse.all",category:W},f.OUTLINE_FOLLOW_CURSOR={id:"outline.follow.cursor",category:W},f.OUTLINE_SORT_KIND={id:"outline.sort.kind",category:W},f.OUTLINE_SORT_NAME={id:"outline.sort.name",category:W},f.OUTLINE_SORT_POSITION={id:"outline.sort.position",category:W}})(p=e.OUTLINE_COMMANDS||(e.OUTLINE_COMMANDS={}));var b;(function(f){const W="workspace";f.ADD_WORKSPACE_FOLDER={id:"workspace.addFolderToWorkspace",label:"%workspace.addFolderToWorkspace%",category:W},f.REMOVE_WORKSPACE_FOLDER={id:"workspace.removeFolderFromWorkspace",category:W},f.SAVE_WORKSPACE_AS_FILE={id:"workspace.saveWorkspaceAsFile",label:"%workspace.saveWorkspaceAsFile%",category:W}})(b=e.WORKSPACE_COMMANDS||(e.WORKSPACE_COMMANDS={}));var m;(function(f){const W="keyboard";f.CHOOSE_KEYBOARD_LAYOUT={id:"keyboard.chooseKeyboardLayout",label:"%keyboard.chooseKeyboardLayout%",category:W}})(m=e.KEYBOARD_COMMANDS||(e.KEYBOARD_COMMANDS={}));var d;(function(f){const W="dialog";f.ENSURE={id:"dialog.ensure",category:W}})(d=e.DIALOG_COMMANDS||(e.DIALOG_COMMANDS={}));var s;(function(f){f.CATEGORY="%terminal.name%",f.FOCUS_NEXT_TERMINAL={id:"workbench.action.terminal.focusNextPane",label:"%terminal.focusNext.inTerminalGroup%",category:f.CATEGORY},f.FOCUS_PREVIOUS_TERMINAL={id:"workbench.action.terminal.focusPreviousPane",label:"%terminal.focusPrevious.inTerminalGroup%",category:f.CATEGORY},f.SPLIT={id:"terminal.split",label:"%terminal.split%",category:f.CATEGORY},f.ADD={id:"terminal.add",label:"%terminal.new%",category:f.CATEGORY},f.REMOVE={id:"terminal.remove",label:"%terminal.remove%",category:f.CATEGORY},f.CLEAR={id:"terminal.clear",label:"%terminal.clear%",category:f.CATEGORY},f.OPEN_SEARCH={id:"terminal.search",label:"%terminal.search%",category:f.CATEGORY},f.SEARCH_NEXT={id:"terminal.search.next",label:"%terminal.search.next%",category:f.CATEGORY},f.OPEN_WITH_PATH={id:"terminal.openWithPath",category:f.CATEGORY},f.CLEAR_CONTENT={id:"terminal.clearContent",label:"%terminal.menu.clearCurrentContent%",category:f.CATEGORY},f.CLEAR_ALL_CONTENT={id:"terminal.clearAllContent",label:"%terminal.menu.clearAllContents%",category:f.CATEGORY},f.TAB_RENAME={id:"terminal.tabRename",category:f.CATEGORY},f.SELECT_ALL_CONTENT={id:"terminal.selectAllContent",label:"%terminal.menu.selectAllContent%",category:f.CATEGORY},f.MORE_SETTINGS={id:"terminal.moreSettings",label:"%terminal.menu.moreSettings%",category:f.CATEGORY},f.SELECT_TYPE={id:"terminal.selectType",category:f.CATEGORY},f.SELECT_ZSH={id:"terminal.selectTypeZsh",label:"zsh",category:f.CATEGORY},f.SELECT_BASH={id:"terminal.selectTypeBash",label:"bash",category:f.CATEGORY},f.SELECT_SH={id:"terminal.selectTypeSh",label:"sh",category:f.CATEGORY},f.SELECT_CMD={id:"terminal.selectTypeCMD",label:"cmd",category:f.CATEGORY},f.SELECT_POWERSHELL={id:"terminal.selectTypePowerShell",label:"powershell",category:f.CATEGORY},f.COPY={id:"terminal.copy",label:"%edit.copy%",category:f.CATEGORY},f.PASTE={id:"terminal.paste",label:"%edit.paste%",category:f.CATEGORY},f.SELECT_ALL={id:"terminal.selectAll",label:"%terminal.menu.selectCurrentContent%",category:f.CATEGORY},f.RE_LAUNCH={id:"terminal.relaunch",category:f.CATEGORY},f.TOGGLE_TERMINAL={id:"terminal.toggleTerminal",label:"%terminal.toggleTerminal%",category:f.CATEGORY},f.KILL_PROCESS={id:"terminal.killProcess",label:"%terminal.killProcess%",category:f.CATEGORY}})(s=e.TERMINAL_COMMANDS||(e.TERMINAL_COMMANDS={}));var l;(function(f){const W="view";f.QUICK_OPEN_VIEW={id:"layout.action.quickOpenView",category:W},f.OPEN_VIEW={id:"layout.action.openView",label:"%layout.action.openView%",category:W},f.MAXIMIZE_EDITOR={id:"layout.action.Maximizeeditor",category:W},f.TOGGLE_SIDEBAR_VISIBILITY={id:"main-layout.left-panel.toggle",category:W}})(l=e.LAYOUT_COMMANDS||(e.LAYOUT_COMMANDS={}));var r;(function(f){const W="marker";f.SHOW_ERRORS_WARNINGS={id:"marker.action.showErrorsWarnings",category:W},f.TOGGLE_SHOW_ERRORS_WARNINGS={id:"marker.action.toggleShowErrorsWarnings",category:W}})(r=e.MARKER_COMMANDS||(e.MARKER_COMMANDS={}));var c;(function(f){f.OPEN={id:"editor.action.quickCommand"},f.OPEN_OUTLINE={id:"editor.action.quickOutline"},f.OPEN_VIEW={id:"editor.action.quickView"},f.OPEN_WITH_COMMAND={id:"editor.action.quickCommand.withCommand"}})(c=e.QUICK_OPEN_COMMANDS||(e.QUICK_OPEN_COMMANDS={}));var h;(function(f){const W="SCM";f.GetSCMResource={id:"scm.getResource",category:W},f._GIT_OPEN_MERGE_EDITOR={id:"_git.openMergeEditor"},f.GIT_OPEN_MERGE_EDITOR={id:"git.openMergeEditor"}})(h=e.SCM_COMMANDS||(e.SCM_COMMANDS={}));var v;(function(f){const W="MergeConflict";f.AI_ACCEPT={id:"merge-conflict.ai.accept",category:W},f.ALL_RESET={id:"merge-conflict.ai.all-reset",category:W},f.AI_ALL_ACCEPT={id:"merge-conflict.ai.all-accept",category:W},f.AI_ALL_ACCEPT_STOP={id:"merge-conflict.ai.all-accept-stop",category:W}})(v=e.MERGE_CONFLICT_COMMANDS||(e.MERGE_CONFLICT_COMMANDS={}))},22780:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ClientCommonContribution=e.locationProtocolContextKey=e.inputFocusedContextKey=void 0;const n=t(85608),a=t(76003),o=t(97267),I=t(43718),g=t(53736),u=t(18193),G=t(22366),p=t(41118),b=t(1149),m=t(64102),d=t(39496),s=t(78132),l=t(11050),r=t(14109),c=t(66549);e.inputFocusedContextKey="inputFocus",e.locationProtocolContextKey="locationProtocol";let h=class{constructor(){this.schema=u.corePreferenceSchema;const f={"application.supportsOpenFolder":!!this.appConfig.isElectronRenderer&&!this.appConfig.isRemote,"application.supportsOpenWorkspace":!!this.appConfig.isElectronRenderer&&!this.appConfig.isRemote,"debug.toolbar.top":this.appConfig.isElectronRenderer?0:this.layoutViewSize.menubarHeight},W=Object.keys(this.schema.properties);for(const N of W)this.schema.properties[N].default=f[N]||this.schema.properties[N].default}onStart(){this.contextKeyService.createKey(e.locationProtocolContextKey,window.location.protocol.split(":")[0]),this.inputFocusedContext=this.contextKeyService.createKey(e.inputFocusedContextKey,!1),window.addEventListener("focusin",this.updateInputContextKeys.bind(this))}onStop(){window.removeEventListener("focusin",this.updateInputContextKeys.bind(this))}activeElementIsInput(){return!!document.activeElement&&(document.activeElement.tagName==="INPUT"||document.activeElement.tagName==="TEXTAREA")}updateInputContextKeys(){const f=this.activeElementIsInput();if(this.inputFocusedContext.set(f),f){const W=(0,G.trackFocus)(document.activeElement);I.Event.once(W.onDidBlur)(()=>{this.inputFocusedContext.set(this.activeElementIsInput()),W.dispose()})}}registerCommands(f){f.registerCommand(r.EDITOR_COMMANDS.UNDO),f.registerCommand(r.EDITOR_COMMANDS.REDO),f.registerCommand(r.EDITOR_COMMANDS.SELECT_ALL),f.registerCommand(r.COMMON_COMMANDS.ABOUT_COMMAND,{execute:()=>{alert((0,I.replaceLocalizePlaceholder)(this.appConfig.appName))}})}registerMenus(f){f.registerMenubarItem(d.MenuId.MenubarFileMenu,{label:(0,I.localize)("menu-bar.title.file"),order:1,iconClass:(0,o.getIcon)("menubar-file")}),f.registerMenubarItem(d.MenuId.MenubarEditMenu,{label:(0,I.localize)("menu-bar.title.edit"),order:2,iconClass:(0,o.getIcon)("menubar-edit")}),f.registerMenubarItem(d.MenuId.MenubarSelectionMenu,{label:(0,I.localize)("menu-bar.title.selection"),order:3,iconClass:(0,o.getIcon)("menubar-selection")}),f.registerMenubarItem(d.MenuId.MenubarViewMenu,{label:(0,I.localize)("menu-bar.title.view"),order:4,iconClass:(0,o.getIcon)("menubar-view")}),f.registerMenubarItem(d.MenuId.MenubarGoMenu,{label:(0,I.localize)("menu-bar.title.go"),order:5,iconClass:(0,o.getIcon)("menubar-go")}),f.registerMenubarItem(d.MenuId.MenubarTerminalMenu,{label:(0,I.localize)("menu-bar.title.terminal"),order:5,iconClass:(0,o.getIcon)("terminal")}),f.registerMenubarItem(d.MenuId.MenubarHelpMenu,{label:(0,I.localize)("menu-bar.title.help"),order:999,iconClass:(0,o.getIcon)("question-circle")}),f.registerMenuItems(d.MenuId.MenubarFileMenu,[{command:r.FILE_COMMANDS.OPEN_FOLDER.id,group:"1_open",when:"config.application.supportsOpenFolder"},{command:r.FILE_COMMANDS.OPEN_WORKSPACE.id,group:"1_open",when:"config.application.supportsOpenWorkspace"},{command:r.EDITOR_COMMANDS.NEW_UNTITLED_FILE.id,group:"2_new"},{command:{id:r.EDITOR_COMMANDS.SAVE_CURRENT.id,label:(0,I.localize)("file.save")},group:"3_save"},{command:{id:r.EDITOR_COMMANDS.SAVE_ALL.id,label:(0,I.localize)("file.saveAll")},group:"3_save"},{command:{id:r.EDITOR_COMMANDS.AUTO_SAVE.id,label:(0,I.localize)("file.autoSave")},toggledWhen:"config.editor.autoSave != off",group:"4_autosave"}]),f.registerMenuItems(d.MenuId.MenubarGoMenu,[{command:{id:r.EDITOR_COMMANDS.GO_BACK.id,label:(0,I.localize)("editor.goBack")},group:"1_go"},{command:{id:r.EDITOR_COMMANDS.GO_FORWARD.id,label:(0,I.localize)("editor.goForward")},group:"1_go"},{command:{id:r.EDITOR_COMMANDS.QUICK_OPEN.id,label:(0,I.localize)("editor.quickOpen")},group:"2_go_file"},{command:{id:r.EDITOR_COMMANDS.SEARCH_WORKSPACE_SYMBOL.id,label:(0,I.localize)("editor.workspaceSymbol.quickopen")},group:"2_go_file"},{command:{id:r.EDITOR_COMMANDS.GO_TO_LINE.id,label:(0,I.localize)("editor.goToLine")},group:"3_go_infile"},{command:{id:"editor.action.jumpToBracket",label:(0,I.localize)("menu-bar.go.jumpToBracket")},group:"3_go_infile"},{command:{id:"editor.action.marker.nextInFiles",label:(0,I.localize)("menu-bar.go.nextProblemInFiles")},group:"6_go_problem"},{command:{id:"editor.action.marker.prevInFiles",label:(0,I.localize)("menu-bar.go.prevProblemInFiles")},group:"6_go_problem"}]),f.registerMenuItems(d.MenuId.MenubarTerminalMenu,[{command:{id:r.TERMINAL_COMMANDS.ADD.id,label:r.TERMINAL_COMMANDS.ADD.label},group:"1_terminal"},{command:{id:r.TERMINAL_COMMANDS.SPLIT.id,label:r.TERMINAL_COMMANDS.SPLIT.label},group:"1_terminal"}])}registerKeybindings(f){f.registerKeybinding({command:r.EDITOR_COMMANDS.SELECT_ALL.id,keybinding:"ctrlcmd+a",when:"editorFocus"}),f.registerKeybinding({command:r.EDITOR_COMMANDS.UNDO.id,keybinding:"ctrlcmd+z",when:"editorFocus"}),f.registerKeybinding({command:r.EDITOR_COMMANDS.REDO.id,keybinding:"ctrlcmd+shift+z",when:"editorFocus"})}};n.__decorate([(0,a.Autowired)(I.CommandService),n.__metadata("design:type",Object)],h.prototype,"commandService",void 0),n.__decorate([(0,a.Autowired)(g.IContextKeyService),n.__metadata("design:type",Object)],h.prototype,"contextKeyService",void 0),n.__decorate([(0,a.Autowired)(l.AppConfig),n.__metadata("design:type",Object)],h.prototype,"appConfig",void 0),n.__decorate([(0,a.Autowired)(b.LayoutViewSizeConfig),n.__metadata("design:type",b.LayoutViewSizeConfig)],h.prototype,"layoutViewSize",void 0),h=n.__decorate([(0,I.Domain)(I.CommandContribution,c.ClientAppContribution,s.PreferenceContribution,m.MenuContribution,p.KeybindingContribution),n.__metadata("design:paramtypes",[])],h),e.ClientCommonContribution=h},66549:(L,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ClientAppContribution=void 0,e.ClientAppContribution=Symbol("ClientAppContribution")},34505:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ClientCommonModule=void 0;const n=t(85608),a=t(76003),o=t(16908),I=t(43718),g=t(37638),u=t(36206),G=t(136),p=t(90697),b=t(45829),m=t(44867),d=t(22780),s=t(10797),l=t(17821);let r=class extends u.BrowserModule{constructor(){super(...arguments),this.contributionProvider=[p.OpenerContribution],this.providers=[d.ClientCommonContribution,m.DefaultOpenerContribution,m.OpenerContributionClient,g.AuthenticationContribution,G.HashCalculateContribution],this.electronProviders=[s.ClientElectronCommonContribution,b.ElectronOpenerContributionClient],this.webProviders=[l.ClientWebCommonContribution],this.backServices=[{servicePath:I.CommonServerPath,protocol:o.CommonServerProtocol},{servicePath:I.KeytarServicePath},{servicePath:I.CryptoServicePath}]}};r=n.__decorate([(0,a.Injectable)()],r),e.ClientCommonModule=r},98881:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.RecentStorage=void 0;const n=t(85608),a=t(76003),o=t(43718);let I=class{async getScopeStorage(){return this.recentStorage=this.recentStorage||await this.getStorage(o.STORAGE_NAMESPACE.RECENT_DATA),this.recentStorage}async getGlobalStorage(){return this.recentGlobalStorage=this.recentGlobalStorage||await this.getStorage(o.STORAGE_NAMESPACE.GLOBAL_RECENT_DATA),this.recentGlobalStorage}};n.__decorate([(0,a.Autowired)(o.StorageProvider),n.__metadata("design:type",Function)],I.prototype,"getStorage",void 0),I=n.__decorate([(0,a.Injectable)()],I),e.RecentStorage=I},30144:(L,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.EXTENSION_CONTAINER_ID=e.SCM_CONTAINER_ID=e.SEARCH_CONTAINER_ID=e.EXPLORER_CONTAINER_ID=e.DEBUG_CONTAINER_ID=e.TEST_RESULT_CONTAINER_ID=e.DEBUG_CONSOLE_CONTAINER_ID=e.TERMINAL_CONTAINER_ID=e.OUTPUT_CONTAINER_ID=e.MARKER_CONTAINER_ID=void 0,e.MARKER_CONTAINER_ID="markers",e.OUTPUT_CONTAINER_ID="output",e.TERMINAL_CONTAINER_ID="terminal",e.DEBUG_CONSOLE_CONTAINER_ID="debug-console",e.TEST_RESULT_CONTAINER_ID="test-result",e.DEBUG_CONTAINER_ID="debug",e.EXPLORER_CONTAINER_ID="explorer",e.SEARCH_CONTAINER_ID="search",e.SCM_CONTAINER_ID="scm",e.EXTENSION_CONTAINER_ID="extension"},10797:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ClientElectronCommonContribution=void 0;const n=t(85608),a=t(76003),o=t(43718),I=t(64102),g=t(39496),u=t(11050);let G=class{registerMenus(b){b.registerMenubarItem(g.MenuId.MenubarAppMenu,{label:(0,o.localize)("app.name",this.appConfig.appName),order:0}),b.registerMenuItems(g.MenuId.MenubarEditMenu,[{command:{id:"electron.undo",label:(0,o.localize)("editor.undo")},nativeRole:"undo",group:"1_undo"},{command:{id:"electron.redo",label:(0,o.localize)("editor.redo")},group:"1_undo",nativeRole:"redo"},{command:{label:(0,o.localize)("edit.cut"),id:"electron.cut"},nativeRole:"cut",group:"2_clipboard"},{command:{label:(0,o.localize)("edit.copy"),id:"electron.copy"},nativeRole:"copy",group:"2_clipboard"},{command:{label:(0,o.localize)("edit.paste"),id:"electron.paste"},nativeRole:"paste",group:"2_clipboard"},{command:{label:(0,o.localize)("edit.selectAll"),id:"electron.selectAll"},nativeRole:"selectAll",group:"2_clipboard"}]),b.registerMenuItems(g.MenuId.MenubarAppMenu,[{command:{id:"electron.quit",label:(0,o.localize)("app.quit")},nativeRole:"quit",group:"4_quit"}])}};n.__decorate([(0,a.Autowired)(u.AppConfig),n.__metadata("design:type",Object)],G.prototype,"appConfig",void 0),G=n.__decorate([(0,o.Domain)(I.MenuContribution)],G),e.ClientElectronCommonContribution=G},66963:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});const n=t(85608);n.__exportStar(t(14109),e),n.__exportStar(t(34505),e),n.__exportStar(t(66549),e),n.__exportStar(t(98881),e)},17821:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ClientWebCommonContribution=void 0;const n=t(85608),a=t(43718),o=t(64102),I=t(39496),g=t(14109);let u=class{registerMenus(p){p.registerMenuItems(I.MenuId.MenubarEditMenu,[{command:g.EDITOR_COMMANDS.REDO.id,group:"1_undo"},{command:g.EDITOR_COMMANDS.UNDO.id,group:"1_undo"}]),p.registerMenuItem(I.MenuId.MenubarHelpMenu,{command:{id:g.COMMON_COMMANDS.ABOUT_COMMAND.id,label:g.COMMON_COMMANDS.ABOUT_COMMAND.label},nativeRole:"about",group:"0_about"})}};u=n.__decorate([(0,a.Domain)(o.MenuContribution)],u),e.ClientWebCommonContribution=u},25918:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.InlineMenuBar=e.InlineActionBar=e.TitleActionList=e.MenuActionList=void 0;const n=t(85608),a=n.__importDefault(t(53373)),o=n.__importStar(t(14041)),I=t(97267),g=t(45803),u=t(43718),G=t(93899),p=t(48560),b=t(79951),m=t(55693),d=n.__importDefault(t(17647)),s=n.__importDefault(t(54859)),l=({data:N,hasSubmenu:Z,disabled:y,iconService:E,hasChecked:R})=>o.default.createElement("div",{className:(0,a.default)(s.default.menuAction,{[s.default.disabled]:y,[s.default.checked]:N.checked})},o.default.createElement("div",{className:(0,a.default)({[s.default.icon]:R})},N.checked?o.default.createElement(I.Icon,{icon:"check"}):null),o.default.createElement("div",{className:s.default.label},N.label?(0,b.transformLabelWithCodicon)(u.strings.mnemonicButtonLabel(N.label,!0),{margin:"0 3px"},E?.fromString.bind(E)):""),o.default.createElement("div",{className:s.default.tip},N.keybinding?o.default.createElement("div",{className:s.default.shortcut},N.keybinding):null,Z?o.default.createElement("div",{className:s.default.submenuIcon},o.default.createElement(I.Icon,{icon:"right"})):null,!N.keybinding&&!Z&&N.extraDesc&&o.default.createElement("div",{className:s.default.extraDesc},N.extraDesc))),r=({data:N=[],context:Z=[],afterClick:y,style:E,iconService:R,renderSubMenuTitle:A,renderMenuItem:w})=>{if(!N.length)return null;const F=o.default.useCallback(H=>{const{key:S,item:X}=H;if([G.SeparatorMenuItemNode.ID,G.SubmenuItemNode.ID].includes(S))return;const O=(Array.isArray(X.props.children)?X.props.children[0]:X.props.children).props.data;O&&(typeof O.execute=="function"&&O.execute(Z),typeof y=="function"&&y(O))},[N,Z]),V=o.default.useCallback((H,S)=>{if(A){const X=A(H,{hasSubmenu:!0,disabled:!1});if(X)return X}return o.default.createElement(l,{hasChecked:S,hasSubmenu:!0,data:H,iconService:R})},[A]),Y=o.default.useCallback((H,S)=>{if(w){const X=w(H,{hasSubmenu:!1,disabled:H.disabled});if(X)return X}return o.default.createElement(l,{hasChecked:S,data:H,disabled:H.disabled,iconService:R})},[w]),_=o.default.useCallback(H=>{const S=H.some(X=>X.checked);return H.map((X,Q)=>{if(X.id===G.SeparatorMenuItemNode.ID)return null;const O=H[Q+1]&&H[Q+1].id===G.SeparatorMenuItemNode.ID;return X.id===G.SubmenuItemNode.ID?!Array.isArray(X.children)||!X.children.length?null:o.default.createElement(o.default.Fragment,{key:`${X.id}-${X.submenuId}-${Q}`},o.default.createElement(g.Menu.SubMenu,{key:`${X.id}-${X.submenuId}-${Q}`,className:s.default.submenuItem,popupClassName:"kt-menu",title:V(X,S)},_(X.children)),O?o.default.createElement(g.Menu.Divider,{key:`divider-${Q}`,className:s.default.menuItemDivider}):null):o.default.createElement(o.default.Fragment,{key:`${X.id}-${Q}`},o.default.createElement(g.Menu.Item,{id:`${X.id}-${Q}`,key:`${X.id}-${Q}`,className:s.default.menuItem,disabled:X.disabled},Y(X,S)),O?o.default.createElement(g.Menu.Divider,{key:`divider-${Q}`,className:s.default.menuItemDivider}):null)})},[]);return o.default.createElement(g.Menu,Object.assign({className:"kt-menu",selectable:!1,motion:{motionLeave:!1,motionEnter:!1}},{builtinPlacements:d.default},{onClick:F,style:E}),_(N))};e.MenuActionList=r;const c=({type:N,icon:Z,disabled:y,onClick:E,title:R})=>{const A=(0,m.useDesignStyles)(s.default.btnAction,"btnAction");if(N==="icon")return o.default.createElement(I.Button,{size:"small",type:N,className:A,onClick:E,title:R,icon:Z||"ellipsis"});const w={};return(0,u.isBoolean)(y)&&(w.disabled=y),o.default.createElement(I.Button,Object.assign({size:"small",type:"secondary",className:A,onClick:E},w,{title:R}),o.default.createElement(I.Icon,{icon:Z||"ellipsis"}))};c.displayName="EllipsisWidget";const h=o.default.memo(N=>{var{iconService:Z,type:y="icon",data:E,context:R=[],className:A,afterClick:w}=N,F=n.__rest(N,["iconService","type","data","context","className","afterClick"]);const V=(0,m.useDesignStyles)(s.default.iconAction,"iconAction"),Y=(0,m.useDesignStyles)(s.default.btnAction,"btnAction"),[_,H]=(0,o.useState)(!1),S=o.default.useCallback(async(M,...T)=>{if(M&&(M.preventDefault(),M.stopPropagation()),!_){if(H(!0),E.id===G.SubmenuItemNode.ID&&M){const x={x:M.clientX,y:M.clientY};await E.execute([x,...R])}else typeof E.execute=="function"&&await E.execute([...R,...T]);H(!1),typeof w=="function"&&w()}},[E,R]),[X,Q]=o.default.useMemo(()=>{let M=E.tooltip||E.label;const T=E.label;return E.keybinding&&(M=`${M} (${E.keybinding})`),[M,T]},[E]),O=E.id===G.SubmenuItemNode.ID;return y==="icon"&&!E.type?o.default.createElement(I.Button,Object.assign({type:E.icon?"icon":"link",className:(0,a.default)(V,A,{[s.default.disabled]:E.disabled,[s.default.submenuIconAction]:O}),title:X,iconClass:E.icon,onClick:S},F),!E.icon&&Q):E.type==="checkbox"?o.default.createElement(I.CheckBox,Object.assign({className:(0,a.default)(A,Y),disabled:E.disabled,label:E.label,title:X,checked:E.checked,onChange:M=>S(void 0,M.target.checked)},F)):o.default.createElement(I.Button,Object.assign({loading:_,className:(0,a.default)(A,Y),disabled:E.disabled,onClick:S,size:"small",type:E.type,title:X},F),(0,b.transformLabelWithCodicon)(Q,{margin:"0 3px"},Z?.fromString.bind(Z)),O&&o.default.createElement(I.Icon,{icon:"down",className:"kt-button-secondary-more"}))});h.displayName="InlineAction";const v=({data:N,context:Z})=>{const y=o.default.useCallback(()=>N.getExecuteArgs(Z),[N,Z]);return o.default.createElement(N.component,{getExecuteArgs:y})};v.displayName="CustomAction",e.TitleActionList=o.default.memo(({type:N="icon",nav:Z=[],more:y=[],moreIcon:E,moreTitle:R,context:A=[],extraNavActions:w=[],moreAtFirst:F=!1,className:V,afterClick:Y,menuId:_,iconService:H,regroup:S=(...X)=>X})=>{const X=(0,p.useInjectable)(G.ICtxMenuRenderer),Q=(0,p.useInjectable)(G.AbstractMenuService),O=(0,m.useDesignStyles)(s.default.titleActions,"titleActions"),[M,T]=S(Z,y),x=o.default.useCallback(D=>{D.preventDefault(),D.stopPropagation(),T&&X.show({anchor:{x:D.clientX,y:D.clientY},menuNodes:T,args:A,onHide:Y})},[T,A]);if(M.length===0&&T.length===0&&w.length===0)return null;const B=T.length>0?o.default.createElement(c,{disabled:T[0].disabled,icon:E,type:N,onClick:x,title:R}):null;return o.default.createElement("div",{className:(0,a.default)([O,V]),"data-menu-id":_},F&&B,M.map(D=>{if(D.id===G.ComponentMenuItemNode.ID)return o.default.createElement(v,{context:A,data:D,key:D.nodeId});if(D.id===G.SubmenuItemNode.ID){const k=Q.createMenu(D.submenuId);if(!((0,G.generateMergedCtxMenu)({menus:k}).length>0))return}if(D.id===G.SeparatorMenuItemNode.ID)return o.default.createElement("span",{key:`vertical-divider-${D.id}`,className:s.default.verticalDivider});const J=D.id===G.SubmenuItemNode.ID?D.submenuId:D.id;return o.default.createElement(h,{id:J,key:J,className:(0,a.default)({[s.default.selected]:D.checked}),type:N,data:D,afterClick:Y,context:A,iconService:H})}),Array.isArray(w)&&w.length?o.default.createElement(o.default.Fragment,null,M.length&&o.default.createElement("span",{className:s.default.divider}),w):null,!F&&B)}),e.TitleActionList.displayName="TitleActionList";function f(N){const{menus:Z,context:y,separator:E="navigation",debounce:R,isFlattenMenu:A=!1}=N,w=n.__rest(N,["menus","context","separator","debounce","isFlattenMenu"]),[F,V]=(0,m.useMenus)(Z,E,y,R),Y=(0,o.useMemo)(()=>A?[...F,...V]:F,[F,V,A]);return o.default.createElement(e.TitleActionList,Object.assign({menuId:Z.menuId,nav:Y,more:E==="inline"||A?[]:V},w))}e.InlineActionBar=f;function W(N){const{iconService:Z,menus:y,context:E,moreIcon:R,moreTitle:A,separator:w="navigation"}=N,F=n.__rest(N,["iconService","menus","context","moreIcon","moreTitle","separator"]),[V,Y]=(0,m.useContextMenus)(y);return o.default.createElement(e.TitleActionList,Object.assign({menuId:y.menuId,nav:V,more:w==="inline"?[]:Y,moreIcon:R,moreTitle:A,context:E,iconService:Z},F))}e.InlineMenuBar=W,W.displayName="InlineMenuBar"},17647:(L,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.placements=void 0;const t={adjustX:1,adjustY:1},n=[0,0];e.placements={topLeft:{points:["bl","tl"],overflow:t,offset:[0,-4],targetOffset:n},topCenter:{points:["bc","tc"],overflow:t,offset:[0,-4],targetOffset:n},topRight:{points:["br","tr"],overflow:t,offset:[0,-4],targetOffset:n},bottomLeft:{points:["tl","bl"],overflow:t,offset:[0,4],targetOffset:n},bottomCenter:{points:["tc","bc"],overflow:t,offset:[0,4],targetOffset:n},bottomRight:{points:["tr","br"],overflow:t,offset:[0,4],targetOffset:n}},e.default=e.placements},89847:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AIAction=void 0;const n=t(85608),a=n.__importDefault(t(53373)),o=n.__importStar(t(14041)),I=t(43718),g=t(22689),u=t(48560),G=t(57995),p=t(24951),b=t(49716),m=t(52141),d=n.__importDefault(t(27410)),s=(0,g.createLayoutEventType)(I.AIInlineChatContentWidgetId),l=new CustomEvent(s,{bubbles:!0}),r=c=>{const{operationList:h,moreOperation:v,showClose:f=!0,onClickItem:W,onClose:N,customOperationRender:Z,loading:y,loadingShowOperation:E=!1}=c,R=o.default.useRef(null),[A,w]=(0,u.useHover)(),F=(0,o.useCallback)(()=>{N?.()},[N]);(0,u.useChange)(w,()=>{var _;(_=R.current)===null||_===void 0||_.dispatchEvent(l)});const V=(0,o.useCallback)(()=>y&&E?o.default.createElement("div",{className:d.default.loading_mask}):null,[y,E]),Y=(0,o.useCallback)(()=>{if(y&&!E)return null;const _=o.default.createElement(o.default.Fragment,null,h?.map(({name:H,title:S,id:X},Q)=>S?o.default.createElement(m.EnhancePopover,{id:X,title:S,key:`popover_${Q}`},o.default.createElement(G.EnhanceIcon,{wrapperClassName:d.default.operate_item,onClick:()=>W?.(X)},o.default.createElement("span",{key:Q},H))):o.default.createElement(G.EnhanceIcon,{wrapperClassName:d.default.operate_item,onClick:()=>W?.(X),key:Q},o.default.createElement("span",null,H))),v?.length?o.default.createElement(G.EnhanceIconWithCtxMenu,{icon:"more",menuNodes:v,wrapperClassName:d.default.operate_btn,skew:{x:-83,y:5}}):null);return o.default.createElement("div",{ref:A,className:d.default.operate_container},V(),o.default.createElement(p.LineVertical,{height:"100%",margin:"0 8px",maxHeight:14,minHeight:14}),Z?o.default.createElement("div",{className:d.default.custom_operation_wrapper},Z):o.default.createElement("div",{className:d.default.default_operation_wrapper},_))},[Z,h,v,y,E]);return o.default.createElement("div",{ref:R,className:(0,a.default)(d.default.ai_action_wrapper,y&&d.default.loading,E&&d.default.loading_show_operation)},o.default.createElement(o.default.Fragment,null,o.default.createElement("div",{className:d.default.stable_container},y?o.default.createElement(m.EnhancePopover,{id:"inline_chat_loading",title:(0,I.localize)("aiNative.inline.chat.operate.loading.cancel")},o.default.createElement(b.Loading,{className:d.default.loading_icon})):o.default.createElement(G.AILogoAvatar,{className:d.default.ai_action_icon})),Y(),f&&o.default.createElement("div",{className:d.default.close_container},o.default.createElement(p.LineVertical,{height:"100%",margin:"0px 8px",maxHeight:14,minHeight:14}),o.default.createElement(G.EnhanceIcon,{wrapperClassName:d.default.operate_btn,icon:"window-close",onClick:F}))))};e.AIAction=r},66205:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ContentWidgetContainerPanel=void 0;const n=t(85608),a=n.__importDefault(t(14041)),o=n.__importDefault(t(41771)),I=g=>a.default.createElement("div",{className:o.default.inline_chat_container_panel,style:g.style},g.children);e.ContentWidgetContainerPanel=I},57995:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AILogoAvatar=e.EnhanceIconWithCtxMenu=e.EnhanceIcon=void 0;const n=t(85608),a=n.__importDefault(t(53373)),o=n.__importStar(t(14041)),I=t(43718),g=t(81878),u=t(97222),G=t(48560),p=n.__importDefault(t(42798));e.EnhanceIcon=o.default.forwardRef((d,s)=>o.default.createElement("div",{className:(0,a.default)(d.wrapperClassName,p.default.ai_enhance_icon),style:d.wrapperStyle,onClick:d.onClick,ref:s},o.default.createElement(g.Icon,{className:(0,a.default)(d.className,p.default.icon),children:null,onClick:()=>null,style:(d.icon||d.iconClass)&&d.children?{marginRight:5}:{},icon:d.icon,iconClass:d.iconClass}),d.children&&o.default.createElement("span",{className:p.default.children_wrap},d.children)));const b=d=>{const{children:s,menuNodes:l,skew:r,id:c}=d,h=n.__rest(d,["children","menuNodes","skew","id"]),v=(0,G.useInjectable)(I.CommandService),f=(0,G.useInjectable)(u.IBrowserCtxMenu),[W,N]=o.default.useState(void 0),Z=o.default.useRef(null);o.default.useEffect(()=>{y()},[Z.current,r]);const y=(0,o.useCallback)(R=>{requestAnimationFrame(()=>{if(Z.current){const A=Z.current.getBoundingClientRect(),{x:w,y:F,width:V,height:Y}=A,_={x:w+V,y:F+Y};r&&(_.x+=r.x,_.y+=r.y),N(_),R&&R(_)}})},[Z.current,r]),E=o.default.useCallback(()=>{W&&(l?y(R=>{f.show({anchor:R,menuNodes:l})}):c&&v.executeCommand(c))},[Z.current,l,W,c]);return o.default.createElement(e.EnhanceIcon,Object.assign({ref:Z,onClick:E},h),s)};e.EnhanceIconWithCtxMenu=b;const m=d=>o.default.createElement("div",{className:(0,a.default)(p.default.ai_logo_avatar_container,d.className)},o.default.createElement(g.Icon,{icon:"magic-wand",className:(0,a.default)(d.iconClassName,p.default.avatar_icon)}));e.AILogoAvatar=m},89195:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});const n=t(85608);n.__exportStar(t(89847),e),n.__exportStar(t(57995),e),n.__exportStar(t(50610),e),n.__exportStar(t(24951),e),n.__exportStar(t(52141),e),n.__exportStar(t(75777),e),n.__exportStar(t(49716),e),n.__exportStar(t(83913),e)},50610:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AIInlineResult=void 0;const n=t(85608),a=n.__importDefault(t(14041)),o=t(57995),I=t(24951),g=t(75777),u=n.__importDefault(t(5011)),G=p=>{const{iconItems:b,isRenderThumbs:m=!0,isRenderClose:d=!1,closeClick:s}=p;return a.default.createElement("div",{className:u.default.ai_inline_result_panel},a.default.createElement("div",{className:u.default.side},b.map(({icon:l,text:r,onClick:c},h)=>a.default.createElement(o.EnhanceIcon,{wrapperClassName:u.default.operate_btn,icon:l,onClick:c,key:h},a.default.createElement("span",null,r)))),m&&a.default.createElement(a.default.Fragment,null,a.default.createElement(I.LineVertical,{height:"60%",margin:"0px 6px 0 6px"}),a.default.createElement("div",{className:u.default.side},a.default.createElement(g.Thumbs,{wrapperClassName:u.default.operate_icon}))),d&&a.default.createElement(a.default.Fragment,null,a.default.createElement(o.EnhanceIcon,{wrapperClassName:u.default.operate_btn,icon:"close",onClick:s})))};e.AIInlineResult=G},83913:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.InteractiveInput=void 0;const n=t(85608),a=n.__importDefault(t(53373)),o=n.__importStar(t(14041)),I=t(97267),g=t(43718),u=t(89195),G=n.__importDefault(t(42348)),p=160,b=32;e.InteractiveInput=o.default.forwardRef((m,d)=>{const{placeholder:s,onKeyDown:l,onBlur:r,onValueChange:c,onHeightChange:h,onFocus:v,onSend:f,disabled:W=!1,className:N,height:Z,width:y,sendBtnClassName:E,popoverPosition:R,autoFocus:A}=m,w=(0,o.useRef)(null),[F,V]=(0,o.useState)(m.value||""),[Y,_]=(0,o.useState)(Z||b),[H,S]=(0,o.useState)(!1);(0,o.useImperativeHandle)(d,()=>w.current),(0,o.useEffect)(()=>{w&&w.current&&A&&w.current.focus()},[w]),(0,o.useEffect)(()=>{var D;const J=m.value;(0,g.isUndefined)(J)||J!==((D=w.current)===null||D===void 0?void 0:D.value)&&V(J||"")},[m.value,F,w]),(0,o.useEffect)(()=>{(0,g.isUndefined)(Z)||Z!==Y&&_(Z)},[Z,Y,h]),(0,o.useEffect)(()=>{if(!F){_(b);return}if(w&&w.current&&Y<=p){w.current.style.height="0px";const D=w.current.scrollHeight;w.current.style.height=Math.min(D,p)+"px";const J=Math.min(D+12,p);_(J)}},[w,F,h,Y]),(0,o.useEffect)(()=>{h?.(Y)},[Y]);const X=(0,o.useCallback)(D=>{V(D),c?.(D)},[c]),Q=(0,o.useCallback)(D=>{S(!0),v?.(D)},[v]),O=(0,o.useCallback)(D=>{S(!1),r?.(D)},[r]),M=(0,o.useCallback)(()=>{W||F.trim()&&f?.(F)},[f,F,W]),T=(0,o.useCallback)(D=>{if(D.key==="Enter"&&!D.nativeEvent.isComposing){if(D.shiftKey)return;D.preventDefault(),M();return}l?.(D)},[l,M]),x=(0,o.useMemo)(()=>o.default.createElement("div",{className:G.default.input_icon_container},o.default.createElement("div",{className:(0,a.default)(G.default.send_chat_btn,H&&G.default.active,W&&G.default.disabled,E)},W?o.default.createElement("div",{className:G.default.ai_loading},o.default.createElement("div",{className:G.default.loader}),o.default.createElement("div",{className:G.default.loader}),o.default.createElement("div",{className:G.default.loader})):o.default.createElement(I.Popover,{id:`ai_chat_input_send_${(0,g.uuid)(4)}`,content:(0,g.localize)("aiNative.chat.enter.send"),delay:1500,position:R??I.PopoverPosition.top,disable:W},o.default.createElement(u.EnhanceIcon,{wrapperClassName:G.default.send_icon,className:(0,I.getIcon)("send-solid"),onClick:M})))),[H,W,E,F,R]),B=(0,o.useMemo)(()=>(0,g.isUndefined)(y)?"100%":y+"px",[y]);return o.default.createElement(I.TextArea,{ref:w,placeholder:s,wrapperStyle:{height:Y+"px",width:B},style:{height:Y-10+"px"},value:F,onKeyDown:T,onFocus:Q,onBlur:O,onValueChange:X,disabled:W,className:(0,a.default)(G.default.interactive_input_container,H?G.default.active:null,N),addonAfter:x})}),e.InteractiveInput.displayName="interactiveInput"},24951:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.HorizontalVertical=e.LineVertical=void 0;const a=t(85608).__importDefault(t(14041)),o={backgroundColor:"var(--editorGroup-border)",height:"100%",width:"1px",minWidth:"1px"},I={backgroundColor:"var(--editorGroup-border)",width:"100%",height:"1px",minHeight:"1px"},g=G=>a.default.createElement("span",{style:Object.assign(Object.assign({},o),G)});e.LineVertical=g;const u=G=>a.default.createElement("span",{style:Object.assign(Object.assign({},I),G)});e.HorizontalVertical=u},49716:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Loading=void 0;const n=t(85608),a=n.__importDefault(t(53373)),o=n.__importDefault(t(14041)),I=t(97267),g=n.__importDefault(t(43135));e.Loading=o.default.memo(u=>o.default.createElement(I.Icon,{className:(0,a.default)(u.className,g.default.loading_indicator),iconClass:(0,I.getIcon)("loading")})),e.Loading.displayName="Loading"},52141:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.EnhancePopover=void 0;const a=t(85608).__importStar(t(14041)),o=t(97267),I=t(43718),g=u=>{const{children:G,id:p,title:b,onClick:m}=u,[d,s]=a.default.useState(!1),l=(0,a.useMemo)(()=>p+(0,I.uuid)(6),[p]),r=(0,a.useCallback)(h=>{s(!1),m&&m(h)},[m]),c=(0,a.useCallback)(h=>{s(h)},[]);return a.default.createElement(o.Popover,{id:l,title:b,onClick:r,display:d,onDisplayChange:c},G)};e.EnhancePopover=g},75777:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Thumbs=void 0;const a=t(85608).__importStar(t(14041)),o=t(43718),I=t(95040),g=t(81878),u=t(48560),G=t(67304),p=t(57995),b=m=>{const d=(0,u.useInjectable)(I.IAIInlineChatService),{relationId:s,onClick:l,wrapperClassName:r}=m,[c,h]=(0,a.useState)("thumbs"),[v,f]=(0,a.useState)("thumbsdown"),W=(0,a.useCallback)(y=>{l&&l(y),d&&d.fireThumbsEvent(y)},[s,d]),N=(0,a.useCallback)(y=>{y==="up"&&c==="thumbs"&&(h("thumbs-fill"),f(!1),W(!0)),y==="up"&&c==="thumbs-fill"&&(h("thumbs"),f("thumbsdown")),y==="down"&&v==="thumbsdown"&&(f("thumbsdown-fill"),h(!1),W(!1)),y==="down"&&v==="thumbsdown-fill"&&(f("thumbsdown"),h("thumbs"))},[c,v]),Z=(0,u.useUUID)();return a.default.createElement(a.default.Fragment,null,typeof c=="string"&&a.default.createElement(g.Popover,{id:`ai-chat-thumbsup-${Z}`,title:(0,o.localize)("aiNative.inline.chat.operate.thumbsup.title")},a.default.createElement(p.EnhanceIcon,{wrapperClassName:r,onClick:()=>N("up"),className:(0,G.getExternalIcon)(c,G.KTICON_OWNER)})),typeof v=="string"&&a.default.createElement(g.Popover,{id:`ai-chat-thumbsdown-${Z}`,title:(0,o.localize)("aiNative.inline.chat.operate.thumbsdown.title")},a.default.createElement(p.EnhanceIcon,{wrapperClassName:r,onClick:()=>N("down"),className:(0,G.getExternalIcon)(v,G.KTICON_OWNER)})))};e.Thumbs=b},81878:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Scroll=e.Scrollbars=e.NativeSelect=void 0;const n=t(85608);n.__exportStar(t(97885),e),n.__exportStar(t(73215),e),n.__exportStar(t(32293),e);var a=t(77331);Object.defineProperty(e,"NativeSelect",{enumerable:!0,get:function(){return a.Select}}),n.__exportStar(t(48412),e),n.__exportStar(t(79383),e),n.__exportStar(t(50708),e),n.__exportStar(t(7273),e),n.__exportStar(t(14640),e),n.__exportStar(t(54076),e),n.__exportStar(t(79024),e),n.__exportStar(t(89832),e),n.__exportStar(t(54713),e),n.__exportStar(t(18875),e),n.__exportStar(t(91397),e),n.__exportStar(t(31059),e),n.__exportStar(t(72871),e),n.__exportStar(t(34128),e);var o=t(77011);Object.defineProperty(e,"Scrollbars",{enumerable:!0,get:function(){return o.Scrollbars}}),Object.defineProperty(e,"Scroll",{enumerable:!0,get:function(){return o.Scrollbars}})},57327:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BoxPanel=void 0;const n=t(85608),a=n.__importDefault(t(53373)),o=n.__importStar(t(14041)),I=t(48560),g=t(38578),u=t(55693),G=t(25719),p=n.__importDefault(t(91290)),b=m=>{var{className:d,children:s=[],direction:l="left-to-right"}=m,r=n.__rest(m,["className","children","direction"]);const c=o.default.Children.toArray(s),h=(0,I.useInjectable)(g.AppConfig),v=(0,u.useDesignStyles)(p.default["box-panel"],"box-panel");(0,o.useEffect)(()=>{h.didRendered&&h.didRendered()},[]);const f=G.Layout.getStyleProperties(l);return o.default.createElement("div",Object.assign({},r,{className:(0,a.default)(v,d),style:{flexDirection:f.direction,zIndex:r.zIndex||r["z-index"]}}),c.map((W,N)=>{const Z=W.props||{};return o.default.createElement("div",{key:N,id:Z["data-wrapper-id"],className:(0,a.default)(p.default.wrapper,Z["data-wrapper-class"]),style:{flex:Z.flex,overflow:Z.overflow,zIndex:Z.zIndex||Z["z-index"],[f.minSize]:Z.defaultSize,backgroundColor:Z.backgroundColor}},W)}))};e.BoxPanel=b},28003:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ToolbarActionBasedLayout=e.DefaultLayout=e.getStorageValue=void 0;const a=t(85608).__importDefault(t(14041)),o=t(52564),I=t(57327),g=t(99333),u=()=>{let p={},b={};try{p=JSON.parse(localStorage.getItem("layout")||"{}"),b=JSON.parse(localStorage.getItem("theme")||"{}")}catch{}return{layout:p,colors:b}};e.getStorageValue=u,e.DefaultLayout=G;function G(p={}){var b,m,d,s,l;const{layout:r}=(0,e.getStorageValue)();return a.default.createElement(I.BoxPanel,{direction:"top-to-bottom"},a.default.createElement(o.SlotRenderer,{id:"top",defaultSize:p.topSlotDefaultSize||0,slot:"top",zIndex:p.topSlotZIndex}),a.default.createElement(g.SplitPanel,{id:"main-horizontal",flex:1},a.default.createElement(o.SlotRenderer,{slot:"left",isTabbar:!0,defaultSize:!((b=r.left)===null||b===void 0)&&b.currentId?((m=r.left)===null||m===void 0?void 0:m.size)||310:49,minResize:280,maxResize:480,minSize:49}),a.default.createElement(g.SplitPanel,{id:"main-vertical",minResize:300,flexGrow:1,direction:"top-to-bottom"},a.default.createElement(o.SlotRenderer,{flex:2,flexGrow:1,minResize:200,slot:"main"}),a.default.createElement(o.SlotRenderer,{flex:1,defaultSize:(d=r.bottom)===null||d===void 0?void 0:d.size,minResize:160,slot:"bottom",isTabbar:!0})),a.default.createElement(o.SlotRenderer,{slot:"right",isTabbar:!0,defaultSize:!((s=r.right)===null||s===void 0)&&s.currentId?((l=r.right)===null||l===void 0?void 0:l.size)||310:0,minResize:280,maxResize:480,minSize:0})),a.default.createElement(o.SlotRenderer,{id:"statusBar",defaultSize:24,slot:"statusBar"}))}e.ToolbarActionBasedLayout=G},32293:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});const n=t(85608);n.__exportStar(t(25719),e),n.__exportStar(t(99333),e),n.__exportStar(t(57327),e),n.__exportStar(t(28003),e)},25719:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Layout=void 0;const n=t(73215),a={"left-to-right":{direction:"row",size:"width",domSize:"clientHeight",minSize:"minWidth",maxSize:"maxWidth"},"right-to-left":{direction:"row-reverse",size:"width",domSize:"clientHeight",minSize:"minWidth",maxSize:"maxWidth"},"top-to-bottom":{direction:"column",size:"height",domSize:"clientWidth",minSize:"minHeight",maxSize:"maxHeight"},"bottom-to-top":{direction:"column-reverse",size:"height",domSize:"clientWidth",minSize:"minHeight",maxSize:"maxHeight"}};var o;(function(I){function g(l){return a[l]}I.getStyleProperties=g;function u(l){return a[l].direction}I.getFlexDirection=u;function G(l){return a[l].size}I.getSizeProperty=G;function p(l){return a[l].domSize}I.getDomSizeProperty=p;function b(l){return a[l].minSize}I.getMinSizeProperty=b;function m(l){return a[l].maxSize}I.getMaxSizeProperty=m;function d(l){return l==="bottom-to-top"||l==="top-to-bottom"?n.ResizeHandleVertical:n.ResizeHandleHorizontal}I.getResizeHandle=d;function s(l){return l==="bottom-to-top"||l==="top-to-bottom"?"row":"column"}I.getTabbarDirection=s})(o=e.Layout||(e.Layout={}))},99333:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SplitPanel=e.PanelContext=void 0;const n=t(85608),a=n.__importDefault(t(53373)),o=n.__importDefault(t(14041)),I=t(43718),g=t(68456),u=t(48560),G=t(73215),p=t(25719),b=t(71707),m=n.__importDefault(t(91290));e.PanelContext=o.default.createContext({setSize:(r,c)=>{},setRelativeSize:(r,c,h)=>{},getSize:r=>0,getRelativeSize:r=>[0,0],lockSize:(r,c)=>{},setMaxSize:(r,c)=>{},hidePanel:r=>{}});const d=(r,c,h)=>{var v,f;return(f=r&&r.props&&((v=r.props[c])!==null&&v!==void 0?v:r.props[`data-sp-${c}`]))!==null&&f!==void 0?f:h};function s(r,c){return d(r,"savedSize")?d(r,"savedSize")+"px":d(r,"defaultSize")!==void 0?d(r,"defaultSize")+"px":d(r,"flex")?d(r,"flex")/c*100+"%":1/c*100+"%"}const l=r=>{const c=(0,u.useInjectable)(b.SplitPanelManager).getService(r.id),{id:h,className:v,resizeHandleClassName:f,style:W,children:N=[],direction:Z="left-to-right",resizeKeep:y=!0,dynamicTarget:E}=o.default.useMemo(()=>c.interceptProps(r),[c,c.interceptProps,r]),R=p.Layout.getResizeHandle(Z),A=p.Layout.getStyleProperties(Z),w=o.default.useMemo(()=>o.default.Children.toArray(N),[N]),F=o.default.useMemo(()=>w.find(pe=>d(pe,"flexGrow")),[w]),V=o.default.useMemo(()=>w.reduce((pe,ge)=>pe+d(ge,"flex",1),0),[w]),Y=o.default.useRef([]),_=(0,u.useInjectable)(I.IEventBus),H=o.default.useRef(),S=o.default.useRef(w.map(()=>!1)),X=o.default.useRef(w.map(()=>!1)),Q=o.default.useRef(S.current.slice(0,w.length-1)),[O,M]=o.default.useState(Q.current),[T,x]=o.default.useState(X.current),[B,D]=o.default.useState(S.current);c.panels=[];const J=o.default.useCallback(pe=>(ge,$)=>{const le=$?pe-1:pe,te=Y.current[le];te&&te.setAbsoluteSize(ge!==void 0?ge:d(w[pe],"defaultSize"),$,y)},[Y.current]),k=o.default.useCallback(pe=>(ge,$,le)=>{const te=le?pe-1:pe,ue=Y.current[te];ue&&ue.setRelativeSize(ge,$)},[Y.current]),z=o.default.useCallback(pe=>ge=>{const $=ge?pe-1:pe,le=Y.current[$];return le?le.getAbsoluteSize(ge):0},[Y.current]),P=o.default.useCallback(pe=>ge=>{const $=ge?pe-1:pe,le=Y.current[$];return le?le.getRelativeSize():[0,0]},[Y.current]),U=o.default.useCallback(pe=>(ge,$)=>{const le=$?pe-1:pe,te=Q.current.map((ue,q)=>q===le?ge!==void 0?ge:!ue:ue);Q.current=te,M(te)},[Y.current]),oe=o.default.useCallback(pe=>ge=>{const $=S.current.map((le,te)=>te===pe?ge!==void 0?ge:!le:le);S.current=$,D($)},[Y.current]),se=o.default.useCallback(pe=>ge=>{const $=X.current.map((te,ue)=>ue===pe?ge!==void 0?!ge:!te:te);X.current=$;const le=d(w[pe],"slot")||d(w[pe],"id");le&&ae(le),x($)},[w,X.current]),ae=o.default.useCallback(pe=>{pe&&_.fire(new g.ResizeEvent({slotLocation:pe}))},[_]),he=o.default.useMemo(()=>w.map((pe,ge)=>{const $=[],le=d(pe,"minSize"),te=d(pe,"maxSize"),ue=d(pe,"flexGrow");if(ge!==0){const q=ge===1?w[ge-1]:w[ge];let j;ue?j=G.ResizeFlexMode.Prev:d(w[ge-1],"flexGrow")&&(j=G.ResizeFlexMode.Next),d(q,"noResize")||O[ge-1]||$.push(o.default.createElement(R,{className:f,onResize:()=>{const ne=d(w[ge-1],"slot")||d(w[ge-1],"id"),de=d(w[ge],"slot")||d(w[ge],"id");ae(ne),ae(de)},noColor:!0,findNextElement:E?ne=>c.getFirstResizablePanel(ge-1,ne):void 0,findPrevElement:E?ne=>c.getFirstResizablePanel(ge-1,ne,!0):void 0,key:`split-handle-${ge}`,delegate:ne=>{Y.current.push(ne)},flexMode:j}))}return $.push(o.default.createElement(e.PanelContext.Provider,{key:ge,value:{setSize:J(ge),getSize:z(ge),setRelativeSize:k(ge),getRelativeSize:P(ge),lockSize:U(ge),setMaxSize:oe(ge),hidePanel:se(ge)}},o.default.createElement("div",{"data-min-resize":d(pe,"minResize"),"data-max-resize":d(pe,"maxResize"),ref:q=>{q&&c.panels.indexOf(q)===-1&&c.panels.push(q)},id:d(pe,"id"),style:Object.assign(Object.assign(Object.assign(Object.assign({},d(pe,"flex")&&!d(pe,"savedSize")&&!F?{flex:d(pe,"flex")}:{[A.size]:s(pe,V)}),{[A.minSize]:le?le+"px":"-1px",[A.maxSize]:B[ge]&&te?te+"px":"unset"}),ue!==void 0?{flexGrow:ue}:{}),{display:T[ge]?"none":"block"})},pe))),$}).filter(Boolean),[N,w,f,E,Y.current,T,O]);return o.default.useEffect(()=>{H.current&&c.setRootNode(H.current);const pe=_.on(g.ResizeEvent,ge=>{ge.payload.slotLocation===h&&w.forEach($=>{ae(d($,"slot")||d($,"id"))})});return()=>{pe.dispose()}},[]),o.default.useMemo(()=>{const{minResize:pe,flexGrow:ge,minSize:$,maxSize:le,savedSize:te,defaultSize:ue,flex:q,noResize:j,slot:ie}=r,ne=n.__rest(r,["minResize","flexGrow","minSize","maxSize","savedSize","defaultSize","flex","noResize","slot"]);return delete ne.resizeHandleClassName,delete ne.dynamicTarget,delete ne.resizeKeep,delete ne.direction,c.renderSplitPanel(o.default.createElement("div",Object.assign({},ne,{ref:de=>H.current=de,className:(0,a.default)(m.default["split-panel"],v),style:Object.assign({flexDirection:A.direction},W),"data-min-resize":pe,"data-max-resize":le,"data-min-size":$,"data-max-size":le,"data-saved-size":te,"data-default-size":ue,"data-flex":q,"data-flex-grow":ge,"data-no-resize":j,"data-slot":ie})),he,ne)},[c,c.renderSplitPanel,he,H,W,r])};e.SplitPanel=l},71707:(L,e,t)=>{"use strict";var n;Object.defineProperty(e,"__esModule",{value:!0}),e.SplitPanelManager=e.SplitPanelService=e.ISplitPanelService=void 0;const a=t(85608),o=a.__importDefault(t(14041)),I=t(76003),g=t(43718),u=t(73215);e.ISplitPanelService=Symbol("ISplitPanelService");let G=n=class extends g.Disposable{constructor(m){super(),this.panelId=m,this._whenReadyDeferred=new g.Deferred,this.panels=[]}get isVisible(){return this.rootNode&&this.rootNode.clientHeight>0||!1}get whenReady(){return this._whenReadyDeferred.promise}setRootNode(m){this.rootNode=m,this._whenReadyDeferred.resolve()}getFirstResizablePanel(m,d,s){if(s){if(d)return this.panels[m];for(let l=m;l>=0;l--)if(this.panels[l].clientHeight>n.MIN_SIZE)return this.panels[l]}else if(d){for(let l=m+1;l<this.panels.length;l++)if(this.panels[l].clientHeight>n.MIN_SIZE&&!this.panels[l].classList.contains(u.RESIZE_LOCK))return this.panels[l]}else for(let l=m+1;l<this.panels.length;l++)if(!this.panels[l].classList.contains(u.RESIZE_LOCK))return this.panels[l]}renderSplitPanel(m,d,s){return o.default.cloneElement(m,Object.assign(Object.assign({},s),m.props),d)}interceptProps(m){return m}};G.MIN_SIZE=120,G=n=a.__decorate([(0,I.Injectable)({multiple:!0}),a.__metadata("design:paramtypes",[String])],G),e.SplitPanelService=G;let p=class{constructor(){this.services=new Map}getService(m){let d=this.services.get(m);return d||(d=this.injector.get(e.ISplitPanelService,[m]),this.services.set(m,d)),d}};a.__decorate([(0,I.Autowired)(I.INJECTOR_TOKEN),a.__metadata("design:type",I.Injector)],p.prototype,"injector",void 0),p=a.__decorate([(0,I.Injectable)()],p),e.SplitPanelManager=p},89897:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),t(85608).__exportStar(t(85266),e)},85266:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Loading=void 0;const a=t(85608).__importDefault(t(14041));t(18182);const o=()=>a.default.createElement("div",{className:"loading_indicator "});e.Loading=o,e.Loading.displayName="Loading"},97885:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});const a=t(85608).__importDefault(t(43144)),o=t(48560),I=({id:g,className:u,children:G})=>{const p=(0,o.usePortal)(g,u);return a.default.createPortal(G,p)};e.default=I},73215:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ResizeHandleVertical=e.ResizeHandleHorizontal=e.allowWebviewCatchMouseEvents=e.preventWebviewCatchMouseEvents=e.ResizeFlexMode=e.RESIZE_LOCK=void 0;const n=t(85608),a=n.__importDefault(t(53373)),o=n.__importDefault(t(14041)),I=n.__importDefault(t(57482));e.RESIZE_LOCK="resize-lock";var g;(function(m){m.Prev="prev",m.Next="next",m.Percentage="Percentage"})(g=e.ResizeFlexMode||(e.ResizeFlexMode={}));function u(){const m=document.getElementsByTagName("iframe"),d=document.getElementsByTagName("webview");for(const l of d)l.classList.add("none-pointer-event");for(const l of m)l.classList.add("none-pointer-event");const s=document.getElementsByClassName("shadow-root-host");for(const l of s)l?.classList.add("none-pointer-event")}e.preventWebviewCatchMouseEvents=u;function G(){const m=document.getElementsByTagName("iframe"),d=document.getElementsByTagName("webview");for(const l of d)l.classList.remove("none-pointer-event");for(const l of m)l.classList.remove("none-pointer-event");const s=document.getElementsByClassName("shadow-root-host");for(const l of s)l?.classList.remove("none-pointer-event")}e.allowWebviewCatchMouseEvents=G;const p=m=>{const d=o.default.useRef(),s=o.default.useRef(!1),l=o.default.useRef(0),r=o.default.useRef(0),c=o.default.useRef(0),h=o.default.useRef(),v=o.default.useRef(),f=o.default.useRef(),W=(H,S)=>{const X=d.current.parentElement.offsetWidth,Q=m.findPrevElement?m.findPrevElement():h.current,O=m.findNextElement?m.findNextElement():v.current;if(Q&&Q.classList.contains(e.RESIZE_LOCK)||O&&O.classList.contains(e.RESIZE_LOCK))return;const M=Number(Q?.dataset.minResize||0),T=Number(O?.dataset.minResize||0),x=Number(Q?.dataset.maxResize||0),B=Number(O?.dataset.maxResize||0);(M||T)&&(H*X<=M||S*X<=T)||(x||B)&&(H*X>=x||S*X>=B)||(O&&(O.style.width=S*100+"%"),Q&&(Q.style.width=H*100+"%"),m.onResize&&O&&Q&&m.onResize(Q,O))},N=(H,S,X,Q)=>{var O,M;const T=m.findPrevElement?m.findPrevElement(Q):h.current,x=m.findNextElement?m.findNextElement(Q):v.current,B=Number((O=T?.dataset.minResize)!==null&&O!==void 0?O:0),D=Number((M=x?.dataset.minResize)!==null&&M!==void 0?M:0),J=T?.dataset.maxResize?Number(T?.dataset.maxResize):null,k=x?.dataset.maxResize?Number(x?.dataset.maxResize):null,z=m.flexMode===g.Prev,P=z?T:x,U=z?x:T;let oe=z?H:S;X||((B||D)&&(z?B>H?oe=B:D>S&&(oe=H+S-D):D>S?oe=D:B>H&&(oe=H+S-B)),(J||k)&&(z?J&&J<=H?oe=J:k&&k>S&&(oe=H+S-k):k&&k<=S?oe=k:J&&J>S&&(oe=H+S-J))),P.style.width=oe+"px",P.style.flexGrow="0",P.style.flexShrink="1",U.style.width="0",U.style.flexGrow="1",U.style.flexShrink="0",m.onResize&&x&&T&&m.onResize(T,x)},Z=(H,S)=>{const X=h.current,Q=v.current;let O;m.flexMode?O=(X.offsetWidth+Q.offsetWidth)/X.parentElement.offsetWidth*100:O=+v.current.style.width.replace("%","")+ +h.current.style.width.replace("%",""),Q&&(Q.style.width=S/(H+S)*O+"%"),X&&(X.style.width=H/(H+S)*O+"%"),y(H,S),m.onResize&&Q&&X&&m.onResize(X,Q)},y=(H,S)=>{const X=h.current,Q=v.current;let O=!1;X&&(H===0?(X.classList.add("kt_display_none"),O=!0):X.classList.remove("kt_display_none")),Q&&(S===0?(Q.classList.add("kt_display_none"),O=!0):Q.classList.remove("kt_display_none")),d.current&&(O?d.current.classList.add("none-pointer-event"):d.current.classList.remove("none-pointer-event"))},E=()=>{const H=h.current.clientWidth,S=v.current.clientWidth,X=H+S,Q=[];return Q.push(H/X),Q.push(S/X),Q},R=(H,S)=>{const X=h.current.clientWidth,Q=v.current.clientWidth,O=X+Q;if(m.flexMode){const M=m.flexMode===g.Prev?H:O-H,T=m.flexMode===g.Next?H:O-H;N(M,T,!0)}else{const M=+v.current.style.width.replace("%","")+ +h.current.style.width.replace("%","");S?(v.current.style.width=M*(H/O)+"%",h.current.style.width=M*(1-H/O)+"%"):(h.current.style.width=M*(H/O)+"%",v.current.style.width=M*(1-H/O)+"%")}S?y(O-H,H):y(H,O-H),m.onResize&&m.onResize(h.current,v.current)},A=H=>H?v.current.clientWidth:h.current.clientWidth,w=H=>{const S=H.classList,X=I.default["resize-overflow-hidden"];S?.contains(X)||S.add(X)},F=H=>{const S=H.classList,X=I.default["resize-overflow-hidden"];S?.contains(X)&&S.remove(X)},V=H=>{if(H.preventDefault(),d.current&&d.current.classList.contains("no-resize"))return;const S=r.current+H.pageX-l.current,X=c.current-(H.pageX-l.current);f.current&&window.cancelAnimationFrame(f.current);const Q=d.current.parentElement.offsetWidth;f.current=window.requestAnimationFrame(()=>{m.flexMode?N(S,X):W(S/Q,X/Q)})},Y=H=>{var S;s.current=!1,(S=d.current)===null||S===void 0||S.classList.remove(I.default.active),document.removeEventListener("mousemove",V),document.removeEventListener("mouseup",Y),F(h.current),F(v.current),m.onFinished&&m.onFinished(),G()},_=H=>{var S;s.current=!0,(S=d.current)===null||S===void 0||S.classList.add(I.default.active),document.addEventListener("mousemove",V),document.addEventListener("mouseup",Y),l.current=H.pageX,r.current=h.current.offsetWidth,c.current=v.current.offsetWidth,w(h.current),w(v.current),u()};return o.default.useEffect(()=>(d.current&&(d.current.addEventListener("mousedown",_),h.current=d.current.previousSibling,v.current=d.current.nextSibling),()=>{d.current&&(d.current.removeEventListener("mousedown",_),d.current.removeEventListener("mousemove",V),d.current.removeEventListener("mouseup",Y))}),[]),m.delegate&&m.delegate({setSize:W,setAbsoluteSize:R,getAbsoluteSize:A,setRelativeSize:Z,getRelativeSize:E}),o.default.createElement("div",{ref:H=>{d.current=H},className:(0,a.default)({[I.default["resize-handle-horizontal"]]:!0,[I.default["with-color"]]:!m.noColor,[m.className||""]:!0})})};e.ResizeHandleHorizontal=p;const b=m=>{const d=o.default.useRef(),s=o.default.useRef(!1),l=o.default.useRef(0),r=o.default.useRef(0),c=o.default.useRef(0),h=o.default.useRef(),v=o.default.useRef(),f=o.default.useRef(),W=o.default.useRef(),N=o.default.useRef(),Z=(S,X,Q)=>{const O=m.findPrevElement?m.findPrevElement(Q):h.current,M=m.findNextElement?m.findNextElement(Q):v.current;!M||!O||O.classList.contains(e.RESIZE_LOCK)||M.classList.contains(e.RESIZE_LOCK)||(M.style.height=X*100+"%",O.style.height=S*100+"%",m.onResize&&m.onResize(O,M))},y=(S,X,Q,O)=>{var M,T;const x=m.findPrevElement?m.findPrevElement(O):h.current,B=m.findNextElement?m.findNextElement(O):v.current;let D,J,k=0;const z=Number(((M=x?.dataset)===null||M===void 0?void 0:M.minResize)||0),P=Number(((T=B?.dataset)===null||T===void 0?void 0:T.minResize)||0);m.flexMode===g.Prev?(D=x,J=B,k=S,Q||(z>S?k=z:P>X&&(k=S+X-P))):(D=B,J=x,k=X,Q||(P>X?k=P:z>S&&(k=S+X-z))),D.style.height=k+"px",D.style.flexGrow="0",D.style.flexShrink="1",J.style.height="0",J.style.flexGrow="1",J.style.flexShrink="0",m.onResize&&B&&x&&m.onResize(x,B)},E=(S,X)=>{const Q=h.current,O=v.current;let M;m.flexMode?M=(Q.offsetHeight+O.offsetHeight)/Q.parentElement.offsetHeight*100:M=+O.style.height.replace("%","")+ +Q.style.height.replace("%",""),O&&(O.style.height=X/(S+X)*M+"%"),Q&&(Q.style.height=S/(S+X)*M+"%"),R(S,X),m.onResize&&O&&Q&&m.onResize(Q,O)},R=(S,X)=>{const Q=h.current,O=v.current;let M=!1;Q&&(S===0?(Q.classList.add("kt_display_none"),M=!0):Q.classList.remove("kt_display_none")),O&&(X===0?(O.classList.add("kt_display_none"),M=!0):O.classList.remove("kt_display_none")),d.current&&(M?d.current.classList.add("none-pointer-event"):d.current.classList.remove("none-pointer-event"))},A=()=>{const S=h.current.clientHeight,X=v.current.clientHeight,Q=S+X,O=[];return O.push(S/Q),O.push(X/Q),O},w=(S,X,Q,O)=>{Q.classList.contains(e.RESIZE_LOCK)||O.classList.contains(e.RESIZE_LOCK)||(O.style.height=X+"px",Q.style.height=S+"px",O.style.flex="unset",Q.style.flex="unset",m.onResize&&O&&Q&&m.onResize(Q,O))},F=(S,X,Q)=>{const O=h.current.clientHeight,M=v.current.clientHeight,T=O+M;if(m.flexMode){const x=m.flexMode===g.Prev?S:T-S,B=m.flexMode===g.Next?S:T-S;y(x,B,!0)}else{const x=+v.current.style.height.replace(/\%|px/,""),B=+h.current.style.height.replace(/\%|px/,""),D=x+B;if(X){Q&&(h.current.style.height=D*(1-S/T)+"%");const J=D*(S/T);v.current.style.height=J===0?J+"px":J+"%"}else h.current.style.height=D*(S/T)+"%",Q&&(v.current.style.height=D*(1-S/T)+"%")}X?R(T-S,S):R(S,T-S),m.onResize&&m.onResize(h.current,v.current)},V=S=>S?v.current.clientHeight:h.current.clientHeight,Y=S=>{var X;s.current=!0,(X=d.current)===null||X===void 0||X.classList.add(I.default.active),document.addEventListener("mousemove",_),document.addEventListener("mouseup",H),l.current=S.pageY,W.current=v.current,f.current=h.current,r.current=h.current.offsetHeight,c.current=v.current.offsetHeight,u()},_=S=>{if(S.preventDefault(),d.current&&d.current.classList.contains("no-resize"))return;const X=S.pageY>l.current,Q=m.findNextElement?m.findNextElement(X):null,O=m.findPrevElement?m.findPrevElement(X):null;if(Q!==null&&W.current!==Q||O!==null&&f.current!==O){if(!Q||!O)return;W.current=Q,f.current=O,l.current=S.pageY,r.current=f.current.offsetHeight,c.current=W.current.offsetHeight}const M=r.current+S.pageY-l.current,T=c.current-(S.pageY-l.current);N.current&&window.cancelAnimationFrame(N.current),N.current=window.requestAnimationFrame(()=>{const x=Number(f.current.dataset.minResize||0),B=Number(W.current.dataset.minResize||0);if(!((x||B)&&(M<=x||T<=B)))if(m.flexMode===g.Prev||m.flexMode===g.Next)y(M,T);else if(m.flexMode===g.Percentage){const D=d.current.parentElement.offsetHeight;Z(M/D,T/D)}else w(M,T,f.current,W.current)})},H=S=>{var X;s.current=!1,(X=d.current)===null||X===void 0||X.classList.remove(I.default.active),document.removeEventListener("mousemove",_),document.removeEventListener("mouseup",H),m.onFinished&&m.onFinished(),G()};return o.default.useEffect(()=>(d.current.addEventListener("mousedown",Y),h.current=d.current.previousSibling,v.current=d.current.nextSibling,()=>{d.current.removeEventListener("mousedown",Y),document.removeEventListener("mousemove",_),document.removeEventListener("mouseup",H)}),[]),m.delegate&&m.delegate({setSize:Z,setAbsoluteSize:F,getAbsoluteSize:V,setRelativeSize:E,getRelativeSize:A}),o.default.createElement("div",{ref:S=>S&&(d.current=S),className:(0,a.default)({[I.default["resize-handle-vertical"]]:!0,[m.className||""]:!0,[I.default["with-color"]]:!m.noColor})})};e.ResizeHandleVertical=b},77331:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Select=void 0;const n=t(85608),a=n.__importDefault(t(53373)),o=n.__importDefault(t(14041));n.__exportStar(t(88706),e);const I=g=>(g=Object.assign(Object.assign({},g),{className:(0,a.default)("kt_select",g.className)}),o.default.createElement("select",Object.assign({},g)));e.Select=I},53736:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ContextKeyChangeEvent=e.IContextKeyService=void 0;const n=t(43718);e.IContextKeyService=Symbol("IContextKeyService");class a extends n.BasicEvent{}e.ContextKeyChangeEvent=a},50394:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.InlineInputWidgetIsVisible=e.InlineHintWidgetIsVisible=e.InlineCompletionIsTrigger=e.InlineChatIsVisible=void 0;const n=t(40191);e.InlineChatIsVisible=new n.RawContextKey("ai.native.inlineChatIsVisible",!1),e.InlineCompletionIsTrigger=new n.RawContextKey("ai.native.inlineCompletionIsTrigger",!1),e.InlineHintWidgetIsVisible=new n.RawContextKey("ai.native.inlineHintWidgetIsVisible",!1),e.InlineInputWidgetIsVisible=new n.RawContextKey("ai.native.inlineInputWidgetIsVisible",!1)},20162:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DialogViewVisibleContext=void 0;const n=t(40191);e.DialogViewVisibleContext=new n.RawContextKey("dialogViewVisible",!1)},16413:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ExplorerCompressedLastFocusContext=e.ExplorerCompressedFirstFocusContext=e.ExplorerCompressedFocusContext=e.FilesExplorerFilteredContext=e.FilesExplorerInputFocusedContext=e.FilesExplorerFocusedContext=e.ExplorerFilteredContext=e.ExplorerFocusedContext=e.ExplorerResourceCut=e.ExplorerViewletVisibleContext=e.ExplorerResourceIsFolderContext=void 0;const n=t(40191);e.ExplorerResourceIsFolderContext=new n.RawContextKey("explorerResourceIsFolder",!1),e.ExplorerViewletVisibleContext=new n.RawContextKey("explorerViewletVisible",!0),e.ExplorerResourceCut=new n.RawContextKey("explorerResourceCut",!1),e.ExplorerFocusedContext=new n.RawContextKey("explorerViewletFocus",!1),e.ExplorerFilteredContext=new n.RawContextKey("explorerViewletFilter",!1),e.FilesExplorerFocusedContext=new n.RawContextKey("filesExplorerFocus",!1),e.FilesExplorerInputFocusedContext=new n.RawContextKey("filesExplorerInputFocus",!1),e.FilesExplorerFilteredContext=new n.RawContextKey("filesExplorerFilteredContext",!1),e.ExplorerCompressedFocusContext=new n.RawContextKey("explorerViewletCompressedFocus",!1),e.ExplorerCompressedFirstFocusContext=new n.RawContextKey("explorerViewletCompressedFirstFocus",!1),e.ExplorerCompressedLastFocusContext=new n.RawContextKey("explorerViewletCompressedLastFocus",!1)},66e3:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});const n=t(85608);n.__exportStar(t(16413),e),n.__exportStar(t(91830),e),n.__exportStar(t(29906),e),n.__exportStar(t(96774),e),n.__exportStar(t(73537),e),n.__exportStar(t(20162),e)},379:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ShowExcludedFilesFilterContextKey=e.ShowActiveFileFilterContextKey=e.ShowInfoFilterContextKey=e.ShowWarningsFilterContextKey=e.ShowErrorsFilterContextKey=e.RelatedInformationFocusContextKey=e.MarkerViewFilterFocusContextKey=e.MarkerFocusContextKey=e.MarkersTreeVisibilityContextKey=void 0;const n=t(40191);e.MarkersTreeVisibilityContextKey=new n.RawContextKey("problemsVisibility",!1),e.MarkerFocusContextKey=new n.RawContextKey("problemFocus",!1),e.MarkerViewFilterFocusContextKey=new n.RawContextKey("problemsFilterFocus",!1),e.RelatedInformationFocusContextKey=new n.RawContextKey("relatedInformationFocus",!1),e.ShowErrorsFilterContextKey=new n.RawContextKey("problems.filter.errors",!0),e.ShowWarningsFilterContextKey=new n.RawContextKey("problems.filter.warnings",!0),e.ShowInfoFilterContextKey=new n.RawContextKey("problems.filter.info",!0),e.ShowActiveFileFilterContextKey=new n.RawContextKey("problems.filter.activeFile",!1),e.ShowExcludedFilesFilterContextKey=new n.RawContextKey("problems.filter.excludedFiles",!0)},96774:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.OutlineFollowCursorContext=e.OutlineSortTypeContext=void 0;const n=t(40191);e.OutlineSortTypeContext=new n.RawContextKey("outlineSortType",0),e.OutlineFollowCursorContext=new n.RawContextKey("outlineFollowCursor",!1)},91830:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ResourceContextKey=void 0;const n=t(43718),a=t(63214);class o{constructor(g,u=a.getLanguageIdFromMonaco,G="resource"){if(this.contextKeyService=g,this.languageResolver=u,!G)throw new Error("resource key prefix cannot be empty!");this.resourceScheme=this.contextKeyService.createKey(G+"Scheme",""),this.resourceFilename=this.contextKeyService.createKey(G+"Filename",""),this.resourceExtname=this.contextKeyService.createKey(G+"Extname",""),this.resourceLangId=this.contextKeyService.createKey(G+"LangId",""),this.resourceKey=this.contextKeyService.createKey(G,""),this.isFileSystemResource=this.contextKeyService.createKey("isFileSystem"+G.substr(0,1).toUpperCase()+G.substr(1),!1)}set(g){if(!g){this.reset();return}const u=this.resourceKey.get();g.isEqual(new n.URI(u))||(this.resourceScheme.set(g.scheme),this.resourceFilename.set(g.path.name+g.path.ext),this.resourceExtname.set(g.path.ext),this.resourceLangId.set(this.languageResolver(g)),this.resourceKey.set(g.toString()),this.isFileSystemResource.set(g.scheme===n.Schemes.file))}reset(){this.resourceScheme.set(""),this.resourceFilename.set(""),this.resourceExtname.set(""),this.resourceLangId.set(""),this.resourceKey.set(""),this.isFileSystemResource.set(!1)}}e.ResourceContextKey=o},67386:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.InTreeViewKey=e.ViewHasSomeCollapsibleKey=e.ViewHasFilePatternKey=e.ViewHasReplacePatternKey=e.ViewHasSearchPatternKey=e.MatchFocusKey=e.ResourceFolderFocusKey=e.FolderFocusKey=e.FileFocusKey=e.FileMatchOrFolderMatchWithResourceFocusKey=e.FileMatchOrFolderMatchFocusKey=e.FileMatchOrMatchFocusKey=e.FirstMatchFocusKey=e.ReplaceActiveKey=e.PatternExcludesFocusedKey=e.PatternIncludesFocusedKey=e.InputBoxFocusedKey=e.SearchViewVisibleKey=e.HasSearchResults=e.ReplaceInputBoxFocusedKey=e.SearchInputBoxFocusedKey=e.SearchViewFocusedKey=void 0;const n=t(40191);e.SearchViewFocusedKey=new n.RawContextKey("searchViewletFocus",!1),e.SearchInputBoxFocusedKey=new n.RawContextKey("searchInputBoxFocus",!1),e.ReplaceInputBoxFocusedKey=new n.RawContextKey("replaceInputBoxFocus",!1),e.HasSearchResults=new n.RawContextKey("hasSearchResult",!1),e.SearchViewVisibleKey=new n.RawContextKey("searchViewletVisible",!0),e.InputBoxFocusedKey=new n.RawContextKey("inputBoxFocus",!1),e.PatternIncludesFocusedKey=new n.RawContextKey("patternIncludesInputBoxFocus",!1),e.PatternExcludesFocusedKey=new n.RawContextKey("patternExcludesInputBoxFocus",!1),e.ReplaceActiveKey=new n.RawContextKey("replaceActive",!1),e.FirstMatchFocusKey=new n.RawContextKey("firstMatchFocus",!1),e.FileMatchOrMatchFocusKey=new n.RawContextKey("fileMatchOrMatchFocus",!1),e.FileMatchOrFolderMatchFocusKey=new n.RawContextKey("fileMatchOrFolderMatchFocus",!1),e.FileMatchOrFolderMatchWithResourceFocusKey=new n.RawContextKey("fileMatchOrFolderMatchWithResourceFocus",!1),e.FileFocusKey=new n.RawContextKey("fileMatchFocus",!1),e.FolderFocusKey=new n.RawContextKey("folderMatchFocus",!1),e.ResourceFolderFocusKey=new n.RawContextKey("folderMatchWithResourceFocus",!1),e.MatchFocusKey=new n.RawContextKey("matchFocus",!1),e.ViewHasSearchPatternKey=new n.RawContextKey("viewHasSearchPattern",!1),e.ViewHasReplacePatternKey=new n.RawContextKey("viewHasReplacePattern",!1),e.ViewHasFilePatternKey=new n.RawContextKey("viewHasFilePattern",!1),e.ViewHasSomeCollapsibleKey=new n.RawContextKey("viewHasSomeCollapsibleResult",!1),e.InTreeViewKey=new n.RawContextKey("inTreeView",!1)},29906:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ShellExecutionSupported=e.IsTerminalFocused=e.IsTerminalViewInitialized=void 0;const n=t(40191);e.IsTerminalViewInitialized=new n.RawContextKey("isTerminalViewInitialized",!1),e.IsTerminalFocused=new n.RawContextKey("isTerminalFocused",!1),e.ShellExecutionSupported=new n.RawContextKey("shellExecutionSupported",!0)},12288:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.TestingCanRefreshTests=e.TestingIsPeekVisible=e.TestingIsInPeek=e.TestingIsRunning=e.TestingHasAnyResults=e.TestingServiceHasDebuggableContextKey=e.TestingServiceProviderCount=void 0;const n=t(40191);e.TestingServiceProviderCount=new n.RawContextKey("service.testing.providerCount",0),e.TestingServiceHasDebuggableContextKey=new n.RawContextKey("service.testing.hasDebuggableContext",!1),e.TestingHasAnyResults=new n.RawContextKey("testing.hasAnyResults",!1),e.TestingIsRunning=new n.RawContextKey("testing.isRunning",!1),e.TestingIsInPeek=new n.RawContextKey("testing.isInPeek",!0),e.TestingIsPeekVisible=new n.RawContextKey("testing.isPeekVisible",!1),e.TestingCanRefreshTests=new n.RawContextKey("testing.canRefresh",!1)},73537:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.WorkspaceFolderCount=e.WorkbenchState=void 0;const n=t(40191);e.WorkbenchState=new n.RawContextKey("workbenchState","empty"),e.WorkspaceFolderCount=new n.RawContextKey("workspaceFolderCount",0)},18193:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.injectCorePreferences=e.CorePreferences=e.corePreferenceSchema=e.FILE_TREE_DEFAULTS=e.FILES_DEFAULTS=void 0;const n=t(43718),a=t(69734),o=t(78132),I={confirmDelete:!0,confirmMove:!0};e.FILES_DEFAULTS={filesWatcherExclude:{"**/.git/objects/**":!0,"**/.git/subtree-cache/**":!0,"**/node_modules/**/*":!0,"**/.hg/store/**":!0},filesExclude:{"**/.git":!0,"**/.svn":!0,"**/.hg":!0,"**/CVS":!0,"**/.DS_Store":!0}},e.FILE_TREE_DEFAULTS={baseIndent:10,indent:8},e.corePreferenceSchema={type:"object",properties:{"general.language":{type:"string",enum:(0,n.getAvailableLanguages)().map(u=>u.languageId),default:a.LOCALE_TYPES.EN_US},"general.theme":{type:"string",default:"vs-dark",enum:[]},"general.askReloadOnLanguageChange":{type:"boolean",default:!0,description:"%preference.description.general.askReloadOnLanguageChange%"},"general.icon":{type:"string",default:"vs-minimal",enum:[]},"general.productIconTheme":{type:"string",default:"opensumi-icons",enum:["opensumi-icons"]},"workbench.colorCustomizations":{type:"object",description:"%preference.workbench.colorCustomizations%",default:{}},"application.supportsOpenFolder":{type:"boolean",default:!1,description:"Whether default open folder behavior is supported"},"application.supportsOpenWorkspace":{type:"boolean",default:!1,description:"Whether default open workspace behavior is supported"},"application.confirmExit":{type:"string",enum:["never","ifRequired","always"],default:"always",description:"When to confirm before closing the application window."},"application.preferMarkdownPreview":{type:"boolean",default:!1,description:"Use markdown preview first"},"application.invalidExthostReload":{type:"string",enum:["ifRequired","always"],default:"ifRequired",description:"Reload strategy when exthost process became invalid."},"workbench.list.openMode":{type:"string",enum:["singleClick","doubleClick"],default:"singleClick",description:"%preference.workbench.list.openMode%"},"workbench.commandPalette.history":{type:"number",default:50,minimum:0,description:"Controls the number of recently used commands to keep in history for the command palette. Set to 0 to disable command history."},"workbench.refactoringChanges.showPreviewStrategy":{type:"string",default:"askMe",enum:["show","hide","askMe"],description:"%preference.workbench.refactoringChanges.showPreviewStrategy%"},"workbench.quickOpen.preserveInput":{type:"boolean",default:!0,description:"%workbench.quickOpen.preserveInput%"},"workbench.hideSlotTabBarWhenHidePanel":{type:"boolean",default:!1,description:"%workbench.hideSlotTabBarWhenHidePanel%"},"explorer.confirmMove":{type:"boolean",default:I.confirmDelete,description:"%preference.explorer.confirm.move%"},"explorer.confirmDelete":{type:"boolean",default:I.confirmMove,description:"%preference.explorer.confirm.delete%"},"explorer.fileTree.baseIndent":{type:"number",default:e.FILE_TREE_DEFAULTS.baseIndent},"explorer.fileTree.indent":{type:"number",default:e.FILE_TREE_DEFAULTS.indent},"explorer.compactFolders":{type:"boolean",description:"%preference.explorer.compactFolders%",default:!0},"explorer.autoReveal":{type:"boolean",default:!0},"debug.toolbar.float":{type:"boolean",default:!0},"debug.breakpoint.editorHint":{type:"boolean",default:!0,description:"%preference.debug.breakpoint.editorHint%"},"debug.breakpoint.showBreakpointsInOverviewRuler":{type:"boolean",default:!1,description:"%preference.debug.breakpoint.showBreakpointsInOverviewRuler%"},"debug.toolbar.top":{type:"number",default:0,description:"%preference.debug.toolbar.top%"},"debug.toolbar.height":{type:"number",default:30,description:"%preference.debug.toolbar.height%"},"debug.console.filter.mode":{type:"string",enum:["filter","matcher"],default:"filter"},"files.exclude":{type:"object",description:"%preference.files.exclude%",default:e.FILES_DEFAULTS.filesExclude,additionalProperties:{anyOf:[{type:"boolean",description:(0,n.localize)("files.exclude.boolean","The glob pattern to match file paths against. Set to true or false to enable or disable the pattern.")}]}},"files.watcherExclude":{type:"object",default:e.FILES_DEFAULTS.filesWatcherExclude,description:"%preference.files.watcherExclude%"},"files.associations":{type:"object",markdownDescription:"%preference.files.associations%"},"files.encoding":{type:"string",description:"%preference.files.encoding%",default:"utf8",enum:Object.keys(n.SUPPORTED_ENCODINGS)},"files.eol":{type:"string",enum:[`
|
|
27645
|
+
`)}return c}),`{"type": 1, "id": "${d}", "proxyId": "${s}", "method": "${l}", "args": ${JSON.stringify(r,u.replacer)}}`}static serializeReplyOK(d,s,l){if(typeof s>"u")return`{"type": 2, "id": "${d}"}`;try{return`{"type": 2, "id": "${d}", "res": ${JSON.stringify(s,u.replacer)}}`}catch{return l&&l.warn("res",s),`{"type": 2, "id": "${d}", "res": {}}`}}static serializeReplyError(d,s,l){try{return`{"type": 3, "id": "${d}", "res": ${JSON.stringify((0,n.transformErrorForSerialization)(s),u.replacer)}}`}catch{return l&&l.error("error",s),`{"type": 3, "id": "${d}", "res": {}}`}}}e.MessageIO=G;function p(){const m=new Error("Canceled");return m.name=m.message,m}class b{constructor(d,s){this._protocol=d,this._locals=new Map,this._proxies=new Map,this._pendingRPCReplies=new Map,this._cancellationTokenSources=new Map,this._timeoutHandles=new Map,this._lastMessageId=0,this.logger=s||console,this.logger.error("You are using the deprecated class: 'RPCProtocol'. Please use the new one: 'SumiConnectionMultiplexer'"),this._protocol.onMessage(l=>this._receiveOneMessage(l))}set(d,s){return this._locals.set(d.serviceId,s),s}get(d){return this._locals.get(d.serviceId)}getProxy(d){return this._proxies.has(d.serviceId)||this._proxies.set(d.serviceId,this._createProxy(d.serviceId)),this._proxies.get(d.serviceId)}_createProxy(d){const s={get:(l,r)=>typeof r=="symbol"?null:(!l[r]&&r.charCodeAt(0)===36&&(l[r]=(...c)=>this._remoteCall(d,r,c)),l[r])};return new Proxy(Object.create(null),s)}_remoteCall(d,s,l){const r=l.length&&n.CancellationToken.isCancellationToken(l[l.length-1])?l.pop():void 0;if(r&&r.isCancellationRequested)return Promise.reject(p());const c=String(++this._lastMessageId),h=new n.Deferred;r&&(l.push("add.cancellation.token"),r.onCancellationRequested(()=>this._protocol.send(G.cancel(c)))),this._pendingRPCReplies.set(c,h);const v=G.serializeRequest(c,d,s,l);if(this._protocol.send(v),this._protocol.timeout&&this._protocol.timeout!==-1){const f=setTimeout(()=>{this._handleTimeout(c)},this._protocol.timeout);this._timeoutHandles.set(c,f)}return h.promise}_receiveOneMessage(d){const s=JSON.parse(d,u.reviver);switch(this._timeoutHandles.has(s.id)&&(typeof clearTimeout=="function"&&clearTimeout(this._timeoutHandles.get(s.id)),this._timeoutHandles.delete(s.id)),s.type){case 1:this._receiveRequest(s);break;case 2:this._receiveReply(s);break;case 4:this._receiveCancel(s);break;case 3:this._receiveError(s);break}}_receiveCancel(d){const s=this._cancellationTokenSources.get(d.id);s&&s.cancel()}_receiveError(d){const s=d.id;if(!this._pendingRPCReplies.has(s))return;const l=this._pendingRPCReplies.get(s);this._pendingRPCReplies.delete(s);let r;d.res&&(d.res.$isError?(r=new Error,r.name=d.res.name,r.message=d.res.message,r.stack=d.res.stack):r=d.res),l.reject(r)}_receiveRequest(d){const s=d.id,l=d.proxyId,r=d.method,c=d.args.map(f=>f===null?void 0:f);if(c.length&&c[c.length-1]==="add.cancellation.token"?c.pop():!1){const f=new n.CancellationTokenSource;this._cancellationTokenSources.set(s,f),c.push(f.token)}this._invokeHandler(l,r,c).then(f=>{this._protocol.send(G.serializeReplyOK(s,f)),this._cancellationTokenSources.delete(s)}).catch(f=>{this._protocol.send(G.serializeReplyError(s,f)),this._cancellationTokenSources.delete(s)})}_invokeHandler(d,s,l){try{return this._doInvokeHandler(d,s,l)}catch(r){return Promise.reject(r)}}async _doInvokeHandler(d,s,l){const r=this._locals.get(d);if(!r)throw new Error("Unknown actor "+d);const c=await r[s];if(typeof c!="function")throw new Error("Unknown method "+s+" on actor "+d);return c.apply(r,l)}_receiveReply(d){const s=d.id;if(!this._pendingRPCReplies.has(s))return;const l=this._pendingRPCReplies.get(s);this._pendingRPCReplies.delete(s),l.resolve(d.res)}_handleTimeout(d){if(!this._pendingRPCReplies.has(d)||!this._timeoutHandles.has(d))return;const s=this._pendingRPCReplies.get(d);this._pendingRPCReplies.delete(d),this._timeoutHandles.delete(d),s.reject(new Error("RPC Timeout: "+d))}}e.RPCProtocol=b},64592:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.furySerializer=e.CloseProtocol=e.BinaryProtocol=e.DataProtocol=e.ErrorProtocol=e.ServerReadyProtocol=e.OpenProtocol=e.PongProtocol=e.PingProtocol=void 0;const n=t(26387),a=t(94846);function o(){return{id:n.Type.string()}}e.PingProtocol=n.Type.object("ping",Object.assign({},o())),e.PongProtocol=n.Type.object("pong",Object.assign({},o())),e.OpenProtocol=n.Type.object("open",Object.assign(Object.assign({},o()),{clientId:n.Type.string(),path:n.Type.string(),traceId:n.Type.string()})),e.ServerReadyProtocol=n.Type.object("server-ready",Object.assign(Object.assign({},o()),{traceId:n.Type.string()})),e.ErrorProtocol=n.Type.object("error",Object.assign(Object.assign({},o()),{code:n.Type.uint16(),message:n.Type.string()})),e.DataProtocol=n.Type.object("data",Object.assign(Object.assign({},o()),{content:n.Type.string()})),e.BinaryProtocol=n.Type.object("binary",Object.assign(Object.assign({},o()),{binary:n.Type.binary()})),e.CloseProtocol=n.Type.object("close",Object.assign(Object.assign({},o()),{code:n.Type.uint32(),reason:n.Type.string()}));const I=(0,a.oneOf)([e.PingProtocol,e.PongProtocol,e.OpenProtocol,e.ServerReadyProtocol,e.DataProtocol,e.BinaryProtocol,e.CloseProtocol,e.ErrorProtocol]);e.furySerializer=I},54558:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.wrapSerializer=void 0;const n=t(85608);n.__exportStar(t(64592),e),n.__exportStar(t(43620),e),n.__exportStar(t(41619),e);const a=(o,I)=>({onceClose(g){return o.onceClose(g)},onMessage(g){return o.onMessage(u=>{g(I.deserialize(u))})},send(g){o.send(I.serialize(g))}});e.wrapSerializer=a},43620:(L,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.rawSerializer=void 0,e.rawSerializer={serialize:t=>t,deserialize:t=>t}},41619:(L,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})},76271:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.RPCServiceChannelPath=e.BaseCommonChannelHandler=e.commonChannelPathHandler=e.CommonChannelPathHandler=void 0;const n=t(39048),a=t(54558),o=t(47561);class I{constructor(){this.handlerMap=new Map,this.paramsKey=new Map}register(p,b){const m=p.indexOf("/:"),d=m>=0;let s=p;d&&(s=p.slice(0,m),this.paramsKey.set(s,p.slice(m+2))),this.handlerMap.has(s)||this.handlerMap.set(s,[]);const l=this.handlerMap.get(s),r=b.handler.bind(b),c=(h,v,f)=>{b.connection=h,r(h,v,f)};b.handler=c,l.push(b),this.handlerMap.set(s,l)}getParams(p,b){const m={};if(this.paramsKey.has(p)){const d=this.paramsKey.get(p);d&&(m[d]=b)}return m}removeHandler(p,b){const m=p.indexOf(":"),d=m>=0;let s=p;d&&(s=p.slice(0,m));const l=this.handlerMap.get(s)||[],r=l.indexOf(b);r!==-1&&l.splice(r,1),this.handlerMap.set(p,l)}get(p){return this.handlerMap.get(p)}disposeConnectionClientId(p,b){this.handlerMap.forEach(m=>{m.forEach(d=>{d.dispose(p,b)})})}openChannel(p,b,m){let d=this.get(p),s;if(!d){const l=p.indexOf("/");l>=0&&(d=this.get(p.slice(0,l)),s=this.getParams(p.slice(0,l),p.slice(l+1)))}if(d)for(let l=0,r=d.length;l<r;l++)d[l].handler(b,m,s)}getAll(){return Array.from(this.handlerMap.values())}}e.CommonChannelPathHandler=I,e.commonChannelPathHandler=new I;var g;(function(G){G[G.ConnectionClosed=1]="ConnectionClosed",G[G.NewChannelOpened=2]="NewChannelOpened"})(g||(g={}));class u{constructor(p,b=console,m={}){this.handlerId=p,this.logger=b,this.channelMap=new Map,this.heartbeatTimer=null,this.serializer=a.furySerializer,m.serializer&&(this.serializer=m.serializer)}heartbeat(p){this.heartbeatTimer&&clearTimeout(this.heartbeatTimer),this.heartbeatTimer=t.g.setTimeout(()=>{this.doHeartbeat(p),this.heartbeat(p)},5e3)}receiveConnection(p){let b;this.heartbeat(p);const m=(0,a.wrapSerializer)(p,this.serializer);m.onMessage(d=>{try{switch(d.kind){case"open":{const{id:s,path:l,traceId:r}=d;b=d.clientId,this.logger.log(`open a new connection channel ${b} with path ${l}`);let c=this.channelMap.get(s);c&&(c.close(g.NewChannelOpened,"new channel opened for the same channel id"),c.dispose()),c=new o.WSServerChannel(m,{id:s,clientId:b,logger:this.logger}),this.channelMap.set(s,c),e.commonChannelPathHandler.openChannel(l,c,b),c.serverReady(r);break}default:{const{id:s}=d,l=this.channelMap.get(s);l?l.dispatch(d):(m.send({kind:"error",id:s,code:n.ErrorMessageCode.ChannelNotFound,message:`channel ${s} not found`}),this.logger.warn(`channel ${s} is not found`))}}}catch(s){this.logger.error("handle connection message error",s)}}),p.onceClose(()=>{this.logger.log(`connection ${b} is closed, dispose all channels`),e.commonChannelPathHandler.disposeConnectionClientId(p,b),Array.from(this.channelMap.values()).filter(d=>d.clientId===b).forEach(d=>{d.close(g.ConnectionClosed,"connection closed"),d.dispose(),this.channelMap.delete(d.id),this.logger.log(`Remove connection channel ${d.id}`)})})}dispose(){this.heartbeatTimer&&clearTimeout(this.heartbeatTimer)}}e.BaseCommonChannelHandler=u,e.RPCServiceChannelPath="RPCService"},8140:(L,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ServiceType=void 0;var t;(function(n){n[n.Service=0]="Service",n[n.Stub=1]="Stub"})(t=e.ServiceType||(e.ServiceType={}))},47561:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.WSServerChannel=e.WSChannel=void 0;const n=t(40396),a=t(43718),o=t(39048),I=t(97349);var g;(function(b){b[b.ReSend=0]="ReSend",b[b.Sended=1]="Sended",b[b.Success=2]="Success",b[b.Failed=3]="Failed"})(g||(g={}));class u{constructor(){this.map=new Map,this.deliveryTimeout=500,this.timerMap=new Map}setDeliveryTimeout(m){this.deliveryTimeout=m}set(m,d){this.map.set(m,d)}get(m){return this.map.get(m)}success(m){this.map.set(m,g.Success);const d=this.timerMap.get(m);d&&clearTimeout(d)}dispose(){this.timerMap.forEach(m=>{clearTimeout(m)})}stop(m){const d=this.timerMap.get(m);d&&clearTimeout(d)}send(m,d){this.set(m,g.Sended),this.guard(m,d)}guard(m,d){const s=this.timerMap.get(m);s&&clearTimeout(s);const l=setTimeout(()=>{this.set(m,g.ReSend),d.whenRetry()},this.deliveryTimeout);this.timerMap.set(m,l)}}class G{constructor(m,d){this.connection=m,this._disposables=new a.DisposableStore,this.emitter=this._disposables.add(new n.EventEmitter),this.onBinaryQueue=this._disposables.add(new a.EventQueue),this.sendQueue=[],this._isServerReady=!1,this.stateTracer=new u,this.LOG_TAG="[WSChannel]",this.logger=console;const{id:s,logger:l,ensureServerReady:r}=d;this.id=s,this.LOG_TAG=`[WSChannel id:${this.id}]`,l&&(this.logger=l),this._ensureServerReady=!!r,d.deliveryTimeout&&this.stateTracer.setDeliveryTimeout(d.deliveryTimeout),this._disposables.add(this.emitter.on("binary",c=>this.onBinaryQueue.push(c)))}inqueue(m){if(this._ensureServerReady&&!this._isServerReady){this.sendQueue||(this.sendQueue=[]),this.sendQueue.push(m);return}this.connection.send(m)}ensureMessageDeliveried(m,d=(0,a.randomString)(16)){const s=this.stateTracer.get(d);if(s&&s>=g.Sended){this.logger.error(`message already send already success or in progress, traceId: ${d}, state: ${s}`);return}m.traceId=d,this.connection.send(m),this.stateTracer.send(d,{whenRetry:()=>{if(this._isServerReady){this.stateTracer.stop(d);return}this.ensureMessageDeliveried(m,d)}})}onMessage(m){return this.emitter.on("message",m)}onBinary(m){return this.onBinaryQueue.on(m)}onOpen(m){return this.emitter.on("open",m)}onReopen(m){return this.emitter.on("reopen",m)}pause(){this._isServerReady=!1}onServerReady(m){if(this._isServerReady){m();return}return this.emitter.on("open",m)}resume(){if(this._isServerReady=!0,this.sendQueue){for(const m of this.sendQueue)this.connection.send(m);this.sendQueue=[]}}dispatch(m){switch(m.kind){case"server-ready":m.traceId&&this.stateTracer.success(m.traceId),this.resume(),this.emitter.emit("open",m.id);break;case"data":this.emitter.emit("message",m.content);break;case"binary":this.emitter.emit("binary",m.binary);break;case"error":switch(this.logger.error(this.LOG_TAG,`receive error: id: ${m.id}, code: ${m.code}, error: ${m.message}`),m.code){case o.ErrorMessageCode.ChannelNotFound:this.channelPath&&(this.pause(),this.open(this.channelPath,this.clientId));break}break}}open(m,d){this.channelPath=m,this.clientId=d,this.LOG_TAG=`[WSChannel id=${this.id} path=${m}]`;const s={kind:"open",id:this.id,path:m,clientId:d};this._ensureServerReady?this.ensureMessageDeliveried(s):this.connection.send(s)}send(m){this.inqueue({kind:"data",id:this.id,content:m})}sendBinary(m){this.inqueue({kind:"binary",id:this.id,binary:m})}onError(){}close(m,d){this.pause(),this.emitter.emit("close",m,d)}fireReopen(){this.emitter.emit("reopen")}onClose(m){return this.emitter.on("close",m)}onceClose(m){return this.emitter.once("close",m)}createConnection(){return{onceClose:m=>this.onceClose(m),onMessage:m=>this.onBinary(m),send:m=>{this.sendBinary(m)},dispose(){}}}createSumiConnection(m={}){return new I.SumiConnection(this.createConnection(),m)}dispose(){this.stateTracer.dispose(),this.sendQueue=[],this._disposables.dispose()}ping(){this.connection.send({kind:"ping",id:this.id})}}e.WSChannel=G;class p extends G{constructor(m,d){super(m,d),this.connection=m,this.messageQueue=[],this.clientId=d.clientId}serverReady(m){this.connection.send({kind:"server-ready",id:this.id,traceId:m})}dispatch(m){switch(m.kind){case"data":this.emitter.emit("message",m.content);break;case"binary":this.emitter.emit("binary",m.binary);break;case"ping":this.connection.send({kind:"pong",id:this.id});break}}}e.WSServerChannel=p},8919:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),t(85608).__exportStar(t(25285),e)},70650:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AINativeConfigService=void 0;const n=t(85608),a=t(76003),o=t(1149),I=t(11050),g={supportsMarkers:!0,supportsChatAssistant:!0,supportsInlineChat:!0,supportsInlineCompletion:!0,supportsConflictResolve:!0,supportsRenameSuggestions:!0,supportsTerminalDetection:!0,supportsTerminalCommandSuggest:!0},u={};Object.keys(g).forEach(p=>{u[p]=!1});let G=class{constructor(){this.aiModuleLoaded=!1,this.internalCapabilities=g}setDefaultCapabilities(b){for(const m in this.internalCapabilities)Object.prototype.hasOwnProperty.call(this.internalCapabilities,m)&&(this.internalCapabilities[m]=b)}enableCapabilities(){this.setDefaultCapabilities(!0)}disableCapabilities(){this.setDefaultCapabilities(!1)}get capabilities(){if(!this.aiModuleLoaded)return u;const{AINativeConfig:b}=this.appConfig;return b?.capabilities?Object.assign(Object.assign({},this.internalCapabilities),b.capabilities):this.internalCapabilities}setAINativeModuleLoaded(b){this.aiModuleLoaded=b}};n.__decorate([(0,a.Autowired)(I.AppConfig),n.__metadata("design:type",Object)],G.prototype,"appConfig",void 0),n.__decorate([(0,a.Autowired)(o.LayoutViewSizeConfig),n.__metadata("design:type",o.LayoutViewSizeConfig)],G.prototype,"layoutViewSize",void 0),G=n.__decorate([(0,a.Injectable)()],G),e.AINativeConfigService=G},41480:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AIReporter=void 0;const n=t(85608),a=t(76003),o=t(43718),I=t(52664);let g=class{constructor(){this.reportInfoCache=new Map,this.reporterCancelHandler=new Map}getRelationId(){return(0,o.uuid)()}getCacheReportInfo(G){return this.reportInfoCache.get(G)}getCommonReportInfo(){return{}}start(G,p){const b=this.getRelationId();this.report(b,Object.assign(Object.assign({},p),{msgType:G,isStart:!0}));const m=setTimeout(()=>{this.report(b,Object.assign(Object.assign({},p),{success:!1}))},60*1e3);return this.reporterCancelHandler.set(b,m),b}end(G,p){const b=this.reporterCancelHandler.get(G);b&&clearTimeout(b),this.report(G,Object.assign(Object.assign({success:!0},p),{isStart:!1}))}record(G,p){p||(p=this.getRelationId());const b=this.reportInfoCache.get(p)||{},m=Object.assign(Object.assign(Object.assign(Object.assign({},this.getCommonReportInfo()),b),G),{relationId:p});return this.reportInfoCache.set(p,m),m}report(G,p){const b=this.record(p,G);this.reporter.point(I.AI_REPORTER_NAME,p.msgType||b.msgType,b)}};n.__decorate([(0,a.Autowired)(o.IReporterService),n.__metadata("design:type",Object)],g.prototype,"reporter",void 0),g=n.__decorate([(0,a.Injectable)()],g),e.AIReporter=g},57925:(L,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AI_CODE_ACTION=e.AI_CHAT_VISIBLE=e.AI_INLINE_COMPLETION_REPORTER=e.AI_INLINE_COMPLETION_VISIBLE=e.AI_INLINE_CHAT_INTERACTIVE_INPUT_VISIBLE=e.AI_INLINE_CHAT_VISIBLE=void 0,e.AI_INLINE_CHAT_VISIBLE={id:"ai.inlineChat.visible"},e.AI_INLINE_CHAT_INTERACTIVE_INPUT_VISIBLE={id:"ai.inlineChat.interactiveInput.visible"},e.AI_INLINE_COMPLETION_VISIBLE={id:"ai.inline.completion.visible"},e.AI_INLINE_COMPLETION_REPORTER={id:"ai.inline.completion.reporter"},e.AI_CHAT_VISIBLE={id:"ai.chat.visible"},e.AI_CODE_ACTION={id:"ai.code.action"}},38070:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.MergeConflictReportService=void 0;const n=t(85608),a=t(76003),o=t(43718),I=t(70650);let g=class extends o.Disposable{constructor(){super(...arguments),this.reportInfoMap=new Map,this.unique2RelationMap=new Map}record(G,p){if(!this.aiNativeConfigService.capabilities.supportsConflictResolve)return p;let b="";return this.unique2RelationMap.has(G)?(b=this.unique2RelationMap.get(G),this.aiReporter.record(p,b)):(b=this.aiReporter.record(Object.assign(Object.assign({},p),{msgType:o.AISerivceType.MergeConflict,message:o.AISerivceType.MergeConflict,editorMode:p.editorMode||o.MergeConflictEditorMode.traditional})).relationId,this.unique2RelationMap.set(G,b)),Object.assign(Object.assign({},p),{relationId:b})}report(G,p){if(!this.aiNativeConfigService.capabilities.supportsConflictResolve)return;const b=this.record(G,p);this.aiReporter.end(b.relationId,b)}reportIncrementNum(G,p){if(!this.aiNativeConfigService.capabilities.supportsConflictResolve)return;const b=this.unique2RelationMap.get(G);if(!b)return;const m=this.aiReporter.getCacheReportInfo(b)[p]||0;this.report(G,{[p]:m+1})}dispose(){super.dispose(),this.reportInfoMap.clear()}};n.__decorate([(0,a.Autowired)(I.AINativeConfigService),n.__metadata("design:type",I.AINativeConfigService)],g.prototype,"aiNativeConfigService",void 0),n.__decorate([(0,a.Autowired)(o.IAIReporter),n.__metadata("design:type",Object)],g.prototype,"aiReporter",void 0),g=n.__decorate([(0,a.Injectable)()],g),e.MergeConflictReportService=g},95040:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.IAIInlineChatService=void 0,t(85608).__exportStar(t(70650),e),e.IAIInlineChatService=Symbol("IAIInlineChatService")},12956:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ClientAppStateService=e.ClientAppStateEvent=void 0;const n=t(85608),a=t(76003),o=t(43718);class I extends o.BasicEvent{}e.ClientAppStateEvent=I;let g=class{constructor(){this._state="init",this.deferred={}}get state(){return this._state}set state(G){G!==this._state&&(this._state=G,this.deferred[G]===void 0&&(this.deferred[G]=new o.Deferred),this.deferred[G].resolve(),this.eventBus.fire(new I(G)))}reachedState(G){return this.deferred[G]===void 0&&(this.deferred[G]=new o.Deferred),this.deferred[G].promise}reachedAnyState(...G){return Promise.race(G.map(p=>this.reachedState(p)))}};n.__decorate([(0,a.Autowired)(o.IEventBus),n.__metadata("design:type",Object)],g.prototype,"eventBus",void 0),g=n.__decorate([(0,a.Injectable)()],g),e.ClientAppStateService=g},59555:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ApplicationService=void 0;const n=t(85608),a=t(76003),o=t(59019),I=t(43718),g=t(11050),u=t(42101);let G=class{constructor(){this._initialized=new I.Deferred}async initializeData(){this._backendOS=await this.commonServer.getBackendOS(),this._initialized.resolve()}get frontendOS(){return I.OS.type()}get backendOS(){if(this._backendOS)return this._backendOS;if(this.appConfig.isElectronRenderer)return this.frontendOS;throw new Error("Can't get backend os type before initialize, if you want wait to get backend os, please use async method: getBackendOS")}async getBackendOS(){return await this._initialized.promise,this.backendOS}get clientId(){return this.injector.get(o.WSChannelHandler).clientId}get windowId(){return this.appConfig.isElectronRenderer?u.electronEnv.currentWindowId:this.injector.get(o.WSChannelHandler).clientId}};n.__decorate([(0,a.Autowired)(I.CommonServerPath),n.__metadata("design:type",Object)],G.prototype,"commonServer",void 0),n.__decorate([(0,a.Autowired)(g.AppConfig),n.__metadata("design:type",Object)],G.prototype,"appConfig",void 0),n.__decorate([(0,a.Autowired)(a.INJECTOR_TOKEN),n.__metadata("design:type",a.Injector)],G.prototype,"injector",void 0),G=n.__decorate([(0,a.Injectable)()],G),e.ApplicationService=G},16884:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});const n=t(85608);n.__exportStar(t(12956),e),n.__exportStar(t(59555),e)},22914:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BaseConnectionHelper=void 0;const n=t(85608),a=t(76003),o=t(18740),I=t(43718),g=t(32796),u=t(38578),G=(0,I.getDebugLogger)();let p=class{async createRPCServiceChannel(m){var d;const s=this.createConnection(),l=(d=this.appConfig.clientId)!==null&&d!==void 0?d:this.getDefaultClientId(),r=new o.WSChannelHandler(s,l,{logger:G});return(0,g.createConnectionService)(this.injector,m,r)}};n.__decorate([(0,a.Autowired)(a.INJECTOR_TOKEN),n.__metadata("design:type",a.Injector)],p.prototype,"injector",void 0),n.__decorate([(0,a.Autowired)(u.AppConfig),n.__metadata("design:type",Object)],p.prototype,"appConfig",void 0),n.__decorate([(0,a.Autowired)(I.IReporterService),n.__metadata("design:type",Object)],p.prototype,"reporterService",void 0),p=n.__decorate([(0,a.Injectable)({multiple:!0})],p),e.BaseConnectionHelper=p},41320:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BrowserRuntime=void 0;const n=t(85608),a=t(76003),o=t(44142),I=t(6858),g=t(53206);let u=class extends I.RendererRuntime{constructor(){super(...arguments),this.runtimeName=o.ESupportRuntime.Web}registerRuntimeModuleProviders(p,b){b.webProviders&&p.addProviders(...b.webProviders)}registerRuntimeInnerProviders(p){(0,g.injectBrowserInnerProviders)(p)}};u=n.__decorate([(0,a.Injectable)()],u),e.BrowserRuntime=u},53206:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.injectBrowserInnerProviders=void 0;const n=t(93899),a=t(97222);function o(I){I.addProviders({token:n.ICtxMenuRenderer,useClass:a.BrowserCtxMenuRenderer})}e.injectBrowserInnerProviders=o},55267:(L,e,t)=>{"use strict";var n;Object.defineProperty(e,"__esModule",{value:!0}),e.WebConnectionHelper=void 0;const a=t(85608),o=t(76003),I=t(91493),g=t(43718),u=t(22914);let G=n=class extends u.BaseConnectionHelper{constructor(b){super(),this.options=b,this.clientId=n.clientIdFactory()}getDefaultClientId(){return this.clientId}createConnection(){return I.ReconnectingWebSocketConnection.forURL(this.options.connectionPath,this.options.connectionProtocols)}static clientIdFactory(){return`CLIENT_ID_${(0,g.uuid)()}`}};G=n=a.__decorate([(0,o.Injectable)({multiple:!0}),a.__metadata("design:paramtypes",[Object])],G),e.WebConnectionHelper=G},44142:(L,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.treeSitterWasmCDNUri=e.onigWasmCDNUri=e.ESupportRuntime=void 0;var t;(function(n){n.Electron="electron",n.Web="web"})(t=e.ESupportRuntime||(e.ESupportRuntime={})),e.onigWasmCDNUri="https://g.alicdn.com/kaitian/vscode-oniguruma-wasm/1.5.1/onig.wasm",e.treeSitterWasmCDNUri="https://gw.alipayobjects.com/os/lib/opensumi/tree-sitter-wasm/0.0.2"},59574:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ElectronRendererRuntime=void 0;const n=t(85608),a=t(76003),o=t(42101),I=t(44142),g=t(6858),u=t(38892);let G=class extends g.RendererRuntime{constructor(){super(...arguments),this.runtimeName=I.ESupportRuntime.Electron}registerRuntimeModuleProviders(m,d){d.electronProviders&&m.addProviders(...d.electronProviders)}registerRuntimeInnerProviders(m){(0,u.injectElectronInnerProviders)(m)}mergeAppConfig(m){return p(m)}async provideResourceUri(m){switch(m){case g.EKnownResources.OnigWasm:return o.electronEnv.onigWasmUri||this.appConfig.onigWasmUri||I.onigWasmCDNUri;case g.EKnownResources.TreeSitterWasmDirectory:return o.electronEnv.treeSitterWasmDirectoryUri||this.appConfig.treeSitterWasmDirectoryUri||I.treeSitterWasmCDNUri;default:throw new Error(`Unknown resource: ${m}`)}}};G=n.__decorate([(0,a.Injectable)()],G),e.ElectronRendererRuntime=G;function p(b){var m;const d=(m=o.electronEnv.metadata)!==null&&m!==void 0?m:{},s=Object.assign(Object.assign({},b),{appRoot:b.appRoot||o.electronEnv.appPath,extensionDir:b.extensionDir||d.extensionDir});return d.extensionDevelopmentHost&&(b.extensionDevelopmentHost=d.extensionDevelopmentHost),d.extensionCandidate&&(b.extensionCandidate=(b.extensionCandidate||[]).concat(o.electronEnv.metadata.extensionCandidate||[])),s}},38892:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.injectElectronInnerProviders=void 0;const n=t(43718),a=t(37406),o=t(93899),I=t(27790),g=t(11050),u=t(42101);function G(p){const b=p.get(g.AppConfig);p.addProviders({token:n.IElectronMainMenuService,useValue:(0,u.createElectronMainApi)(n.IElectronMainMenuService,b.devtools)},{token:a.IElectronMainUIService,useValue:(0,u.createElectronMainApi)(a.IElectronMainUIService,b.devtools)},{token:a.IElectronMainLifeCycleService,useValue:(0,u.createElectronMainApi)(a.IElectronMainLifeCycleService,b.devtools)},{token:a.IElectronURLService,useValue:(0,u.createElectronMainApi)(a.IElectronURLService,b.devtools)},{token:I.IElectronMenuFactory,useClass:I.ElectronMenuFactory},{token:I.IElectronMenuBarService,useClass:I.ElectronMenuBarService},{token:o.ICtxMenuRenderer,useClass:I.ElectronCtxMenuRenderer})}e.injectElectronInnerProviders=G},63977:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ElectronConnectionHelper=void 0;const n=t(85608),a=t(76003),o=t(42101),I=t(22914);let g=class extends I.BaseConnectionHelper{getDefaultClientId(){return o.electronEnv.metadata.windowClientId}createConnection(){return(0,o.createNetSocketConnection)()}};g=n.__decorate([(0,a.Injectable)({multiple:!0})],g),e.ElectronConnectionHelper=g},18379:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ConnectionHelperFactory=void 0;const n=t(85608),a=t(38578),o=t(55267),I=t(44142),g=t(63977);n.__exportStar(t(55267),e),n.__exportStar(t(63977),e),n.__exportStar(t(22914),e),n.__exportStar(t(44142),e);function u(G){return p=>{const b=G.get(a.AppConfig);let m;switch(p){case I.ESupportRuntime.Electron:m=G.get(g.ElectronConnectionHelper);break;case I.ESupportRuntime.Web:m=G.get(o.WebConnectionHelper,[{connectionPath:b.connectionPath,connectionProtocols:b.connectionProtocols}]);break;default:throw new Error(`Unknown backend type: ${p}`)}return m}}e.ConnectionHelperFactory=u},6858:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.RendererRuntime=e.EKnownResources=void 0;const n=t(85608),a=t(76003),o=t(11050),I=t(44142);var g;(function(G){G.OnigWasm="wasm:onig",G.TreeSitterWasmDirectory="wasm:tree-sitter"})(g=e.EKnownResources||(e.EKnownResources={}));let u=class{mergeAppConfig(p){return p}async provideResourceUri(p){switch(p){case g.OnigWasm:return this.appConfig.onigWasmUri||I.onigWasmCDNUri;case g.TreeSitterWasmDirectory:return this.appConfig.treeSitterWasmDirectoryUri||I.treeSitterWasmCDNUri;default:throw new Error(`Unknown resource: ${p}`)}}};n.__decorate([(0,a.Autowired)(o.AppConfig),n.__metadata("design:type",Object)],u.prototype,"appConfig",void 0),u=n.__decorate([(0,a.Injectable)()],u),e.RendererRuntime=u},37638:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AuthenticationContribution=void 0;const n=t(85608),a=t(76003),o=t(43718),I=t(66549);let g=class{onStart(){this.authenticationService.initialize()}registerCommands(G){G.registerCommand({id:o.noAccountsId,label:"%authentication.noAccounts%"},{execute:()=>{}})}};n.__decorate([(0,a.Autowired)(o.IAuthenticationService),n.__metadata("design:type",Object)],g.prototype,"authenticationService",void 0),g=n.__decorate([(0,o.Domain)(I.ClientAppContribution,o.CommandContribution)],g),e.AuthenticationContribution=g},10605:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AuthenticationService=void 0;const n=t(85608),a=t(76003),o=t(43718),I=t(93899);let g=class extends o.Disposable{constructor(){super(...arguments),this._onDidRegisterAuthenticationProvider=this.registerDispose(new o.Emitter),this.onDidRegisterAuthenticationProvider=this._onDidRegisterAuthenticationProvider.event,this._onDidUnregisterAuthenticationProvider=this.registerDispose(new o.Emitter),this.onDidUnregisterAuthenticationProvider=this._onDidUnregisterAuthenticationProvider.event,this._onDidChangeSessions=this.registerDispose(new o.Emitter),this.onDidChangeSessions=this._onDidChangeSessions.event,this._authenticationProviders=new Map,this._signInRequestItems=new Map}async initialize(){this._storage=await this.getStorage(new o.URI("authentication").withScheme(o.STORAGE_SCHEMA.GLOBAL));const G=new Map;this.onDidChangeSessions(async p=>{if(p.event.added.length>0){const b=await this.getSessions(p.providerId);b.forEach(m=>{if(b.find(W=>G.get(W.id)))return;const d=new o.DisposableCollection,s=`account-sign-out-${p.providerId}-${m.id}`,l=this.commands.registerCommand({id:s,label:(0,o.formatLocalize)("authentication.signOut",p.label)},{execute:async()=>{await this.signOutOfAccount(p.providerId,m.account.label)}}),r=`manage-trusted-${p.providerId}-${m.id}`,c=this.commands.registerCommand({id:r,label:"%authentication.manageTrustedExtensions%"},{execute:async()=>{await this.manageTrustedExtensionsForAccount(p.providerId,m.account.label)}}),h=`${p.providerId}${m.account.label}`,v=this.menus.registerMenuItem(I.MenuId.AccountsContext,{submenu:h,label:`${m.account.label} (${p.label})`}),f=this.menus.registerMenuItems(h,[{command:r},{command:s}]);d.push(v),d.push(f),d.push(l),d.push(c),G.set(m.id,d)})}p.event.removed.length>0&&p.event.removed.forEach(b=>{const m=G.get(b.id);m&&(m.dispose(),G.delete(b.id))})})}get storage(){return this._storage}registerAuthenticationProvider(G,p){this._authenticationProviders.set(G,p),this._onDidRegisterAuthenticationProvider.fire({id:G,label:p.label}),this.updateAccountsMenuItem()}async sessionsUpdate(G,p){const b=this._authenticationProviders.get(G);b&&(this._onDidChangeSessions.fire({providerId:G,label:b.label,event:p}),await b.updateSessionItems(p),this.updateAccountsMenuItem(),p.added&&await this.updateNewSessionRequests(b))}async updateNewSessionRequests(G){const p=this._signInRequestItems.get(G.id);if(!p)return;const b=await G.getSessions();Object.keys(p).forEach(m=>{if(b.some(d=>d.scopes.slice().sort().join("")===m)){const d=p[m];d&&d.disposables.forEach(s=>s.dispose()),delete p[m],Object.keys(p).length===0?this._signInRequestItems.delete(G.id):this._signInRequestItems.set(G.id,p)}})}getTrustedKey(G,p){return`trusted-${G}-${p}`}async getAllowedExtensions(G,p){const b=this.getTrustedKey(G,p);let m=[];try{const d=await this.storage.get(b);d&&(m=JSON.parse(d))}catch(d){this.logger.warn("read allow extensions error: "+d)}return m}async setAllowedExtensions(G,p,b){const m=this.getTrustedKey(G,p);await this.storage.set(m,JSON.stringify(b))}async removeAllowedExtensions(G,p){const b=this.getTrustedKey(G,p);await this.storage.delete(b)}async updatedAllowedExtension(G,p,b,m,d){const s=await this.getAllowedExtensions(G,p),l=s.findIndex(r=>r.id===b);l===-1?s.push({id:b,name:m,allowed:d}):s[l].allowed=d,await this.setAllowedExtensions(G,p,s)}async isAccessAllowed(G,p,b){const d=(await this.getAllowedExtensions(G,p)).find(s=>s.id===b);return d?d.allowed!==void 0?d.allowed:!0:!1}async tryActivateProvider(G){await this.eventBus.fireAndAwait(new o.ExtensionActivateEvent({topic:"onView",data:G}));let p=this._authenticationProviders.get(G);if(p)return p;const b=new Promise((d,s)=>{this.onDidRegisterAuthenticationProvider(l=>{if(l.id===G)if(p=this._authenticationProviders.get(G),p)d(p);else throw new Error(`No authentication provider '${G}' is currently registered.`)})}),m=new Promise((d,s)=>{setTimeout(()=>{s(new Error(`didRegister ${G} timeout`))},5e3)});return Promise.race([b,m])}async getSessions(G){try{return await(this._authenticationProviders.get(G)||await this.tryActivateProvider(G)).getSessions()}catch{throw new Error(`No authentication provider '${G}' is currently registered.`)}}isAuthenticationProviderRegistered(G){return this._authenticationProviders.has(G)}getProviderIds(){const G=[];return this._authenticationProviders.forEach(p=>{G.push(p.id)}),G}unregisterAuthenticationProvider(G){const p=this._authenticationProviders.get(G);p&&(p.dispose(),this._authenticationProviders.delete(G),this._onDidUnregisterAuthenticationProvider.fire({id:G,label:p.label}),this.updateAccountsMenuItem())}updateAccountsMenuItem(){let G=!1;this._authenticationProviders.forEach(p=>{G=G||p.hasSessions()}),G&&this._noAccountsMenuItem&&(this._noAccountsMenuItem.dispose(),this._noAccountsMenuItem=void 0),!G&&!this._noAccountsMenuItem&&(this._noAccountsMenuItem=this.menus.registerMenuItem(I.MenuId.AccountsContext,{group:"0_accounts",command:o.noAccountsId}))}async requestNewSession(G,p,b,m){let d=this._authenticationProviders.get(G);if(d||await new Promise((s,l)=>{this.onDidRegisterAuthenticationProvider(r=>{r.id===G&&(d=this._authenticationProviders.get(G),s())})}),d){const s=this._signInRequestItems.get(G),l=p.sort().join("");if(s&&s[l]&&s[l].requestingExtensionIds.includes(b))return;const c=this.commands.registerCommand({id:`${b}signIn`,label:(0,o.formatLocalize)("authentication.signInRequests",m)},{execute:async()=>{const v=await this.login(G,p),f=v.account.label,W=await this.getAllowedExtensions(G,f);W.find(N=>N.id===b)||(W.push({id:b,name:m}),await this.setAllowedExtensions(G,f,W)),await this.setExtensionSessionId(m,G,v.id)}}),h=this.menus.registerMenuItem(I.MenuId.AccountsContext,{group:"2_signInRequests",command:`${b}signIn`});if(s){const v=s[l]||{disposables:[],requestingExtensionIds:[]};s[l]={disposables:[...v.disposables,h,c],requestingExtensionIds:[...v.requestingExtensionIds,b]},this._signInRequestItems.set(G,s)}else this._signInRequestItems.set(G,{[l]:{disposables:[h,c],requestingExtensionIds:[b]}})}}getLabel(G){const p=this._authenticationProviders.get(G);if(p)return p.label;throw new Error(`No authentication provider '${G}' has been declared.`)}supportsMultipleAccounts(G){const p=this._authenticationProviders.get(G);if(p)return p.supportsMultipleAccounts;throw new Error(`No authentication provider '${G}' is currently registered.`)}async login(G,p){try{return await(this._authenticationProviders.get(G)||await this.tryActivateProvider(G)).login(p)}catch(b){throw new Error(`No authentication provider '${G}' is currently registered, error messge: ${b.message}`)}}logout(G,p){const b=this._authenticationProviders.get(G);if(b)return b.logout(p);throw new Error(`No authentication provider '${G}' is currently registered.`)}manageTrustedExtensionsForAccount(G,p){const b=this._authenticationProviders.get(G);if(b)return b.manageTrustedExtensions(p);throw new Error(`No authentication provider '${G}' is currently registered.`)}signOutOfAccount(G,p){const b=this._authenticationProviders.get(G);if(b)return b.signOut(p);throw new Error(`No authentication provider '${G}' is currently registered.`)}getUsagesKey(G,p){return`usages-${G}-${p}`}async getAccountUsages(G,p){const b=this.getUsagesKey(G,p),m=await this.storage.get(b);let d=[];if(m)try{d=JSON.parse(m)}catch(s){this.logger.warn("parse account usages error: "+s)}return d}async addAccountUsage(G,p,b,m){const d=this.getUsagesKey(G,p),s=await this.getAccountUsages(G,p),l=s.findIndex(r=>r.extensionId===b);l>-1?s.splice(l,1,{extensionId:b,extensionName:m,lastUsed:Date.now()}):s.push({extensionId:b,extensionName:m,lastUsed:Date.now()}),await this.storage.set(d,JSON.stringify(s))}async removeAccountUsage(G,p){const b=this.getUsagesKey(G,p);await this.storage.delete(b)}getExtensionSessionIdKey(G,p){return`session-${G}-${p}`}async getExtensionSessionId(G,p){const b=this.getExtensionSessionIdKey(G,p);return await this.storage.get(b)}async setExtensionSessionId(G,p,b){const m=this.getExtensionSessionIdKey(G,p);await this.storage.set(m,b)}async removeExtensionSessionId(G,p){const b=this.getExtensionSessionIdKey(G,p);await this.storage.delete(b)}};n.__decorate([(0,a.Autowired)(o.ILogger),n.__metadata("design:type",Object)],g.prototype,"logger",void 0),n.__decorate([(0,a.Autowired)(o.StorageProvider),n.__metadata("design:type",Function)],g.prototype,"getStorage",void 0),n.__decorate([(0,a.Autowired)(o.IEventBus),n.__metadata("design:type",Object)],g.prototype,"eventBus",void 0),n.__decorate([(0,a.Autowired)(I.IMenuRegistry),n.__metadata("design:type",I.IMenuRegistry)],g.prototype,"menus",void 0),n.__decorate([(0,a.Autowired)(o.CommandRegistry),n.__metadata("design:type",Object)],g.prototype,"commands",void 0),g=n.__decorate([(0,a.Injectable)()],g),e.AuthenticationService=g},72746:(L,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})},33916:(L,e,t)=>{"use strict";var n;n={value:!0},e.j=void 0;const a=t(85608);t(29810);const o=t(76003),I=t(43718),g=t(4588),u=t(37406),G=t(16884),p=t(18379),b=t(41320),m=t(59574),d=t(6858),s=t(36206),l=t(66963),r=t(18193),c=t(41118),h=t(1149),v=t(11949),f=t(64102),W=t(78132),N=t(11050),Z=t(67304),y=t(79951),E=t(79248),R=t(96302),A=t(71843);t(99696);class w{constructor(V){var Y,_,H;this.opts=V,this.appInitialized=new I.Deferred,this.browserModules=[],this._disposables=new I.DisposableCollection,this._inComposition=!1,this._handleBeforeUpload=z=>{if(this.config.isElectronRenderer){if(this.stateService.state==="electron_confirmed_close")return;z.returnValue="",z.preventDefault(),this.stateService.state!=="electron_asking_close"&&(this.stateService.state="electron_asking_close",this.preventStopElectron().then(P=>{if(P)this.stateService.state="ready";else return this.stopContributionsElectron().then(()=>{this.stateService.state="electron_confirmed_close";const U=this.injector.get(u.IElectronMainLifeCycleService);setTimeout(()=>{U.closeWindow(y.electronEnv.currentWindowId)},0)})}))}else if(this.preventStop())return(z||window.event).returnValue=!0,!0},this._handleUnload=()=>{this.stateService.state="closing_window",this.config.isElectronRenderer||(this.disposeSideEffect(),this.stopContributions())},this._handleResize=()=>{},this._handleKeydown=z=>{z&&z.target.name!==c.NO_KEYBINDING_NAME&&!this._inComposition&&this.keybindingService.run(z)},this._handleKeyup=z=>{this.keybindingService.resolveModifierKey(z)},this._handleCompositionstart=()=>{this._inComposition=!0},this._handleCompositionend=()=>{this._inComposition=!1},this._handleWheel=()=>{};const{modules:S,iconStyleSheets:X,useCdnIcon:Q,editorBackgroundImage:O,defaultPreferences:M,allowSetDocumentTitleFollowWorkspaceDir:T=!0}=V,x=a.__rest(V,["modules","iconStyleSheets","useCdnIcon","editorBackgroundImage","defaultPreferences","allowSetDocumentTitleFollowWorkspaceDir"]);this.initEarlyPreference(V.workspaceDir||"");const B=(0,W.getPreferenceLanguageId)(M);(0,I.setLanguageId)(B),this.injector=V.injector||new o.Injector,this.modules=S,this.modules.forEach(z=>this.resolveModuleDeps(z)),this.browserModules=V.modulesInstances||[];const D=(Y=V.isElectronRenderer)!==null&&Y!==void 0?Y:this.detectRuntime()===p.ESupportRuntime.Electron;this.config=Object.assign(Object.assign({appName:g.DEFAULT_APPLICATION_NAME,appHost:D?g.DEFAULT_APPLICATION_DESKTOP_HOST:g.DEFAULT_APPLICATION_WEB_HOST,appRoot:V.appRoot||"",uriScheme:g.DEFAULT_URI_SCHEME},x),{isElectronRenderer:D,workspaceDir:V.workspaceDir||"",extensionDir:V.extensionDir||"",injector:this.injector,wsPath:V.wsPath||`ws://${window.location.hostname}:8000`,layoutConfig:V.layoutConfig,editorBackgroundImage:V.editorBackgroundImage||O,allowSetDocumentTitleFollowWorkspaceDir:T,devtools:(_=V.devtools)!==null&&_!==void 0?_:!1,rpcMessageTimeout:V.rpcMessageTimeout||-1}),this.config.connectionPath=V.connectionPath||`${this.config.wsPath}/service`;const J=this.injector.get(h.LayoutViewSizeConfig);J.init(V.layoutViewSize),this.config.layoutViewSize=J,this.injector.get(h.DesignLayoutConfig).setLayout(V.designLayout,(H=V.AINativeConfig)===null||H===void 0?void 0:H.layout),this.injector.addProviders({token:s.IClientApp,useValue:this}),this.injector.addProviders({token:N.AppConfig,useValue:this.config}),this.runtime=D?this.injector.get(m.ElectronRendererRuntime):this.injector.get(b.BrowserRuntime),this.injector.addProviders({token:d.RendererRuntime,useValue:this.runtime}),this.config.devtools&&(window.__OPENSUMI_DEVTOOLS_GLOBAL_HOOK__={}),V.extensionDevelopmentPath&&(this.config.extensionCandidate=(this.config.extensionCandidate||[]).concat(Array.isArray(V.extensionDevelopmentPath)?V.extensionDevelopmentPath.map(z=>(0,I.asExtensionCandidate)(z,!0)):[(0,I.asExtensionCandidate)(V.extensionDevelopmentPath,!0)]),this.config.extensionDevelopmentHost=!0),this.config=this.runtime.mergeAppConfig(this.config),this.initBaseProvider(),this.initFields(),this.appendIconStyleSheets(X,Q),this.createBrowserModules(M)}resolveModuleDeps(V){const Y=Reflect.getMetadata("dependencies",V);Y&&Y.forEach(_=>{this.modules.indexOf(_)===-1&&this.modules.push(_)})}get lifeCycleService(){return this.injector.get(I.AppLifeCycleServiceToken)}async start(V,Y,_){const S=this.injector.get(I.IReporterService).time(I.REPORT_NAME.MEASURE);this.lifeCycleService.phase=1,_?(console.error("You're using deprecated method 'start()' with connection parameter"),console.error("We introduced a new connection service to replace the old one"),(0,R.bindConnectionServiceDeprecated)(this.injector,this.modules,_)):Y&&await this.createConnection(Y),S.timeEnd("ClientApp.createConnection"),this.logger=this.injector.get(I.ILogger),this.stateService.state="client_connected",this.registerEventListeners(),await this.injector.get(I.IApplicationService).initializeData(),await this.measure("Contributions.start",()=>this.startContributions(V)),this.stateService.state="started_contributions",this.stateService.state="ready",this.lifeCycleService.phase=4,S.timeEnd("Framework.ready")}async createConnection(V){(await this.injector.get(p.ConnectionHelperFactory)(V).createRPCServiceChannel(this.modules)).onReopen(()=>{this.onReconnectContributions()})}onReconnectContributions(){const V=this.contributions;for(const Y of V)Y.onReconnect&&Y.onReconnect(this)}initBaseProvider(){(0,A.injectInnerProviders)(this.injector),this.runtime.registerRuntimeInnerProviders(this.injector)}initFields(){this.contributionsProvider=this.injector.get(l.ClientAppContribution),this.commandRegistry=this.injector.get(I.CommandRegistry),this.keybindingRegistry=this.injector.get(c.KeybindingRegistry),this.keybindingService=this.injector.get(c.KeybindingService),this.stateService=this.injector.get(G.ClientAppStateService),this.nextMenuRegistry=this.injector.get(f.IMenuRegistry)}createBrowserModules(V){const Y=this.injector;for(const _ of this.modules){const H=Y.get(_);this.browserModules.push(H),H.providers&&this.injector.addProviders(...H.providers),this.runtime.registerRuntimeModuleProviders(this.injector,H),H.preferences&&H.preferences(this.injector)}(0,r.injectCorePreferences)(this.injector),this.injectPreferenceService(this.injector,V),this.injectStorageProvider(this.injector);for(const _ of this.browserModules)if(_.contributionProvider)if(Array.isArray(_.contributionProvider))for(const H of _.contributionProvider)(0,I.createContributionProvider)(this.injector,H);else(0,I.createContributionProvider)(this.injector,_.contributionProvider)}get contributions(){return this.contributionsProvider.getContributions()}async startContributions(V){await this.measure("RenderApp.render",()=>this.renderApp(V)),this.lifeCycleService.phase=2,await this.measure("Contributions.initialize",()=>this.initializeContributions()),await this.initializeCoreRegistry(),this.stateService.state="core_module_initialized",this.lifeCycleService.phase=3,await this.measure("Contributions.onStart",()=>this.onStartContributions()),await this.runContributionsPhase(this.contributions,"onDidStart")}async initializeCoreRegistry(){this.commandRegistry.initialize(),await this.keybindingRegistry.initialize(),this.nextMenuRegistry.initialize()}async initializeContributions(){await this.runContributionsPhase(this.contributions,"initialize"),this.appInitialized.resolve(),this.logger.verbose("contributions.initialize done")}async onStartContributions(){await this.runContributionsPhase(this.contributions,"onStart")}async runContributionsPhase(V,Y){return await Promise.all(V.map(_=>this.contributionPhaseRunner(_,Y)))}async contributionPhaseRunner(V,Y){const _=V[Y];if(typeof _=="function")try{const H=V.constructor.name+"."+Y;return await this.measure(H,()=>_.call(V,this))}catch(H){this.logger.error(`Could not run contribution#${Y}`,H)}}async renderApp(V){await(0,E.renderClientApp)(this,V),this.injector.get(I.IEventBus).fire(new v.RenderedEvent)}async measure(V,Y){const H=this.injector.get(I.IReporterService).time(I.REPORT_NAME.MEASURE),S=await Y();return H.timeEnd(V),S}preventStop(){const Y=this.injector.get(r.CorePreferences)["application.confirmExit"];if(Y==="never")return!1;for(const _ of this.contributions)if(_.onWillStop)try{if(_.onWillStop(this))return!0}catch(H){(0,I.getDebugLogger)().error(H)}return Y==="always"}async preventStopElectron(){if(this.injector.get(r.CorePreferences)["application.confirmExit"]==="never")return!1;for(const _ of this.contributions)if(_.onWillStop)try{if(await _.onWillStop(this))return!0}catch(H){(0,I.getDebugLogger)().error(H)}return!1}stopContributions(){for(const V of this.contributions)if(V.onStop)try{V.onStop(this)}catch(Y){this.logger.error("Could not stop contribution",Y)}}async stopContributionsElectron(){const V=[];for(const Y of this.contributions)Y.onStop&&V.push((async()=>{try{await Y.onStop(this)}catch(_){this.logger.error("Could not stop contribution",_)}})());await Promise.all(V)}registerEventListeners(){window.addEventListener("beforeunload",this._handleBeforeUpload),window.addEventListener("unload",this._handleUnload),window.addEventListener("resize",this._handleResize),window.addEventListener("compositionstart",this._handleCompositionstart),window.addEventListener("compositionend",this._handleCompositionend),window.addEventListener("keydown",this._handleKeydown,!0),window.addEventListener("keyup",this._handleKeyup,!0),I.isOSX&&document.body.addEventListener("wheel",this._handleWheel,{passive:!1})}injectPreferenceService(V,Y){const _=()=>H=>{const S=V.get(W.PreferenceProvider,{tag:H});return S.asScope(H),S};if((0,W.injectPreferenceConfigurations)(V),(0,W.injectPreferenceSchemaProvider)(V),V.addProviders({token:W.PreferenceProviderProvider,useFactory:_},{token:W.PreferenceService,useClass:W.PreferenceServiceImpl}),Y){const S=V.get(W.PreferenceProviderProvider)(W.PreferenceScope.Default);for(const X of Object.keys(Y))S.setPreference(X,Y[X])}}injectStorageProvider(V){V.addProviders({token:I.DefaultStorageProvider,useClass:I.DefaultStorageProvider}),V.addProviders({token:I.StorageProvider,useFactory:Y=>_=>Y.get(I.DefaultStorageProvider).get(_)}),(0,I.createContributionProvider)(V,I.StorageResolverContribution)}fireOnReload(V=!1){window.location.reload(V)}appendIconStyleSheets(V,Y){const _=Y?[Z.DEFAULT_CDN_ICON,Z.IDE_OCTICONS_CN_CSS,Z.IDE_CODICONS_CN_CSS]:[];V&&V.length&&V.forEach(H=>{this.updateIconMap(H.prefix,H.iconMap),_.push(H.cssPath)});for(const H of _){const S=document.createElement("link");S.setAttribute("rel","stylesheet"),S.setAttribute("href",H),document.getElementsByTagName("head")[0].appendChild(S)}}updateIconMap(V,Y){V==="kaitian-icon kticon-"&&this.logger.error(`The icon prefix '${V}' conflicts with the built-in icon, please check the icon configuration.`),(0,Z.updateIconMap)(V,Y)}initEarlyPreference(V){this._disposables.push((0,W.registerLocalStorageProvider)("general.theme",V)),this._disposables.push((0,W.registerLocalStorageProvider)("general.icon",V)),this._disposables.push((0,W.registerLocalStorageProvider)("general.language",V))}async dispose(){window.removeEventListener("beforeunload",this._handleBeforeUpload),window.removeEventListener("unload",this._handleUnload),window.removeEventListener("resize",this._handleResize),window.removeEventListener("compositionstart",this._handleCompositionstart),window.removeEventListener("compositionend",this._handleCompositionend),window.removeEventListener("keydown",this._handleKeydown,!0),I.isOSX&&document.body.removeEventListener("wheel",this._handleWheel),this._disposables.dispose(),this.disposeSideEffect()}disposeSideEffect(){for(const V of this.contributions)if(V.onDisposeSideEffects)try{V.onDisposeSideEffects(this)}catch(Y){this.logger.error("Could not dispose contribution",Y)}}detectRuntime(){return window.isElectronRenderer||typeof navigator=="object"&&typeof navigator.userAgent=="string"&&navigator.userAgent.indexOf("Electron")>=0?p.ESupportRuntime.Electron:p.ESupportRuntime.Web}}e.j=w},79248:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.renderClientApp=e.App=void 0;const n=t(85608),a=n.__importDefault(t(14041)),o=n.__importDefault(t(25873)),I=t(97267),g=t(43718),u=t(28003),G=t(68456),p=t(11050),b=t(52564),m=t(26542),d=t(67304);function s(c){const h=c.app.injector,v=h.get(g.IEventBus),f=h.get(m.LabelService),W=a.default.useCallback((N,Z)=>f.getIcon(g.URI.parse(N),Z),[]);return a.default.useEffect(()=>{let N;const Z=()=>{N&&window.cancelAnimationFrame(N),N=window.requestAnimationFrame(()=>{N=null,b.allSlot.forEach(y=>{v.fire(new G.ResizeEvent({slotLocation:y.slot}))})})};return window.addEventListener("resize",Z),()=>{window.removeEventListener("resize",Z)}},[]),a.default.createElement(I.ComponentContextProvider,{value:{getIcon:d.getIcon,localize:g.localize,getResourceIcon:W}},a.default.createElement(p.ConfigProvider,{value:c.app.config},a.default.createElement(c.main,{callback:c.callback}),c.overlays&&c.overlays.map((N,Z)=>a.default.createElement(N,{key:Z}))))}e.App=s;const l=c=>h=>{o.default.createRoot(c).render(a.default.createElement(h,null))};function r(c,h){const v=c.config.layoutComponent||u.DefaultLayout,f=c.browserModules.filter(Z=>Z.isOverlay).map(Z=>Z.component?Z.component:((0,g.getDebugLogger)().warn("Overlay module does not have component",Z),()=>a.default.createElement(a.default.Fragment,null))),W=Z=>a.default.createElement(s,Object.assign({},Z,{app:c,main:v,overlays:f}));return(typeof h=="function"?h:l(h))(W)}e.renderClientApp=r},96302:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.bindConnectionServiceDeprecated=e.createConnectionService=void 0;const n=t(8919),a=t(18740),o=t(76271),I=t(43718),g=t(16884),u=t(11050);async function G(m,d,s,l={}){var r;const c=m.get(u.AppConfig),h=m.get(I.IReporterService);s.setReporter(h);const v=m.get(I.IEventBus),f=m.get(g.ClientAppStateService),W=()=>{f.reachedState("core_module_initialized").then(()=>{v.fire(new I.BrowserConnectionOpenEvent)})};s.connection.isOpen()&&W(),s.connection.onOpen(()=>{W()}),s.connection.onClose(()=>{f.reachedState("core_module_initialized").then(()=>{v.fire(new I.BrowserConnectionCloseEvent)})}),s.connection.onError(E=>{f.reachedState("core_module_initialized").then(()=>{v.fire(new I.BrowserConnectionErrorEvent(E))})}),await s.initHandler(),m.addProviders({token:a.WSChannelHandler,useValue:s});const N=await s.openChannel(o.RPCServiceChannelPath),Z=new n.RPCServiceCenter;return Z.setSumiConnection(N.createSumiConnection(l)),!((r=c?.measure)===null||r===void 0)&&r.connection&&Z.setReporter(h,c.measure.connection.minimumReportThresholdTime),b(m,d,Z),m.get(I.ILogger).reportToServer(),N}e.createConnectionService=G;function p(m,d,s){const l=new n.RPCServiceCenter,r=l.setConnection(s),c=s.onClose(()=>{r.dispose(),c.dispose()});b(m,d,l)}e.bindConnectionServiceDeprecated=p;function b(m,d,s){const{getRPCService:l}=(0,n.initRPCService)(s),r=[],c=[];for(const h of d){const v=m.get(h);if(v.backServices)for(const f of v.backServices)r.push(f),f.protocol&&s.loadProtocol(f.protocol)}for(const h of r){const{servicePath:v}=h,f=l(v),W={token:v,useValue:f};m.addProviders(W),h.clientToken&&c.push(h)}for(const h of c){const{servicePath:v}=h,f=l(v);if(h.clientToken){const W=m.get(h.clientToken);f.onRequestService(W)}}}},32796:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});const n=t(85608);n.__exportStar(t(72746),e),n.__exportStar(t(79248),e),n.__exportStar(t(96302),e)},71843:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.injectInnerProviders=void 0;const n=t(43718),a=t(96405),o=t(16872),I=t(41480),g=t(12956),u=t(59555),G=t(18379),p=t(10605),b=t(66963),m=t(71707),d=t(80832),s=t(23396),l=t(77273),r=t(41118),c=t(37015),h=t(68456),v=t(75694),f=t(93899),W=t(77666),N=t(90697),Z=t(73967),y=t(78132),E=t(68969),R=t(11719),A=t(52564),w=t(26542),F=t(52993),V=t(10845),Y=t(40827),_=t(32242),H=t(99e3),S=t(42637),X=t(62652),Q=t(27957),O=t(45670),M=t(66894),T=t(63921),x=t(82493);function B(D){(0,n.createContributionProvider)(D,b.ClientAppContribution),(0,n.createContributionProvider)(D,n.CommandContribution),(0,n.createContributionProvider)(D,l.FsProviderContribution),(0,n.createContributionProvider)(D,r.KeybindingContribution),(0,n.createContributionProvider)(D,f.MenuContribution),(0,n.createContributionProvider)(D,h.ComponentContribution),(0,n.createContributionProvider)(D,A.SlotRendererContribution),(0,n.createContributionProvider)(D,y.PreferenceContribution),(0,n.createContributionProvider)(D,O.VariableContribution),(0,n.createContributionProvider)(D,h.TabBarToolbarContribution),(0,n.createContributionProvider)(D,S.ToolBarActionContribution),(0,n.createContributionProvider)(D,_.StaticResourceContribution);const J=[{token:n.IEventBus,useClass:n.EventBusImpl},{token:n.CommandService,useClass:n.CommandServiceImpl},{token:n.CommandRegistry,useClass:n.CommandRegistryImpl},{token:r.KeybindingRegistry,useClass:r.KeybindingRegistryImpl},{token:r.KeybindingService,useFactory:k=>k.get(r.KeybindingRegistry)},{token:o.KeyboardNativeLayoutService,useClass:c.BrowserKeyboardLayoutImpl},{token:o.KeyboardLayoutChangeNotifierService,useFactory:k=>k.get(o.KeyboardNativeLayoutService)},{token:c.KeyValidator,useFactory:k=>k.get(o.KeyboardNativeLayoutService)},g.ClientAppStateService,{token:v.ILogger,useClass:v.Logger},{token:v.Logger,useAlias:v.ILogger},{token:h.ComponentRegistry,useClass:h.ComponentRegistryImpl},{token:O.VariableRegistry,useClass:O.VariableRegistryImpl},{token:f.AbstractMenuService,useClass:f.MenuServiceImpl},{token:f.AbstractContextMenuService,useClass:f.ContextMenuServiceImpl},{token:f.IMenuRegistry,useClass:f.MenuRegistryImpl},{token:W.IToolbarActionService,useClass:W.ToolbarActionService},{token:f.AbstractMenubarService,useClass:f.MenubarServiceImpl},{token:n.IReporter,useClass:n.DefaultReporter},{token:n.IReporterService,useClass:n.ReporterService},{token:n.ReporterMetadata,useValue:{host:n.REPORT_HOST.BROWSER}},{token:E.IProgressService,useClass:R.ProgressService},{token:S.IToolbarRegistry,useClass:Q.NextToolbarRegistryImpl},{token:S.IToolbarPopoverRegistry,useClass:X.ToolbarPopoverRegistry},Q.ToolbarClientAppContribution,{token:n.IProblemPatternRegistry,useClass:n.ProblemPatternRegistryImpl},{token:n.IProblemMatcherRegistry,useClass:n.ProblemMatchersRegistryImpl},{token:n.ITaskDefinitionRegistry,useClass:n.TaskDefinitionRegistryImpl},{token:N.IOpenerService,useClass:Z.OpenerService},{token:M.IWindowService,useClass:T.WindowService},{token:n.IApplicationService,useClass:u.ApplicationService},{token:F.IClipboardService,useClass:F.BrowserClipboardService},{token:V.IExternalUriService,useClass:V.ExternalUriService},{token:n.IAuthenticationService,useClass:p.AuthenticationService},{token:w.ICryptoService,useClass:w.CryptoService},{token:w.ICredentialsService,useClass:w.CredentialsService},{token:a.IHashCalculateService,useClass:a.HashCalculateServiceImpl},{token:n.IExtensionsSchemaService,useClass:s.ExtensionsPointServiceImpl},{token:n.AppLifeCycleServiceToken,useClass:x.AppLifeCycleService},{token:_.StaticResourceService,useClass:H.StaticResourceServiceImpl},Y.StaticResourceClientAppContribution,{token:m.ISplitPanelService,useClass:m.SplitPanelService},{token:n.IAIReporter,useClass:I.AIReporter},{token:d.IDesignStyleService,useClass:d.DesignStyleService},{token:G.ConnectionHelperFactory,useFactory:G.ConnectionHelperFactory}];D.addProviders(...J)}e.injectInnerProviders=B},82493:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AppLifeCycleService=void 0;const n=t(85608),a=t(76003),o=t(43718);let I=class{constructor(){this.onDidChangeLifecyclePhaseEmitter=new o.Emitter,this.onDidLifeCyclePhaseChange=this.onDidChangeLifecyclePhaseEmitter.event}set phase(u){this.lifeCyclePhase=u,this.onDidChangeLifecyclePhaseEmitter.fire(this.lifeCyclePhase)}get phase(){return this.lifeCyclePhase}};I=n.__decorate([(0,a.Injectable)()],I),e.AppLifeCycleService=I},99696:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});const a=t(85608).__importDefault(t(99126));typeof window.ResizeObserver>"u"&&(window.ResizeObserver=a.default)},36206:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BrowserModule=e.IClientApp=void 0;const n=t(85608),a=t(76003),o=t(43718);e.IClientApp=Symbol("CLIENT_APP_TOKEN");class I extends o.BasicModule{}n.__decorate([(0,a.Autowired)(e.IClientApp),n.__metadata("design:type",Object)],I.prototype,"app",void 0),e.BrowserModule=I},14109:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.MERGE_CONFLICT_COMMANDS=e.SCM_COMMANDS=e.QUICK_OPEN_COMMANDS=e.MARKER_COMMANDS=e.LAYOUT_COMMANDS=e.TERMINAL_COMMANDS=e.DIALOG_COMMANDS=e.KEYBOARD_COMMANDS=e.WORKSPACE_COMMANDS=e.OUTLINE_COMMANDS=e.SEARCH_COMMANDS=e.DIFF_EDITOR_COMMANDS=e.EDITOR_COMMANDS=e.COMMON_COMMANDS=e.OPEN_EDITORS_COMMANDS=e.FILE_COMMANDS=void 0;const n=t(67304);var a;(function(f){const W="file";f.NEW_FILE={id:"file.new",category:W,iconClass:(0,n.getIcon)("new-file")},f.RENAME_FILE={id:"file.rename",category:W},f.DELETE_FILE={id:"file.delete",category:W},f.NEW_FOLDER={id:"file.folder.new",category:W,iconClass:(0,n.getIcon)("new-folder")},f.COMPARE_SELECTED={id:"file.compare",category:W},f.OPEN_FILE={id:"file.open",category:W},f.SAVE_FILE={id:"file.save",category:W},f.COLLAPSE_ALL={id:"filetree.collapse.all",category:W,iconClass:(0,n.getIcon)("collapse-all")},f.REFRESH_ALL={id:"filetree.refresh.all",category:W,iconClass:(0,n.getIcon)("refresh")},f.OPEN_RESOURCES={id:"filetree.open.file",category:W},f.OPEN_TO_THE_SIDE={id:"filetree.open.side",category:W},f.OPEN_TYPE_WITH={id:"filetree.open.with",category:W},f.COPY_PATH={id:"filetree.copy.path",category:W,label:"%file.copy.path%"},f.COPY_RELATIVE_PATH={id:"filetree.copy.relativepath",category:W},f.COPY_FILE={id:"filetree.copy.file",category:W},f.CUT_FILE={id:"filetree.cut.file",category:W},f.PASTE_FILE={id:"filetree.paste.file",category:W},f.SELECT_CURRENT_NODE={id:"filetree.selectCurrentNode",category:W},f.LOCATION={id:"filetree.location",category:W},f.LOCATION_WITH_EDITOR={id:"filetree.location_with_editor",category:W,iconClass:(0,n.getIcon)("focus")},f.OPEN_FOLDER={id:"filetree.open.folder",category:W,label:"%file.open.folder%"},f.VSCODE_OPEN_FOLDER={id:"filetree.open.vscode_open_folder",category:W},f.OPEN_WORKSPACE={id:"filetree.open.workspace",category:W,label:"%file.open.workspace%"},f.SEARCH_ON_FOLDER={id:"filetree.search.folder",category:W},f.FOCUS_FILES={id:"filetree.focus.files",category:W,label:"%file.focus.files%"},f.FILTER_TOGGLE={id:"filetree.files.filter_toggle",category:W,iconClass:(0,n.getIcon)("retrieval")},f.FILTER_OPEN={id:"filetree.files.filter_open",category:W},f.OPEN_TERMINAL_WITH_PATH={id:"filetree.openTerminalWithPath",category:W},f.FILTER_CLOSE={id:"filetree.quitFilterMode",category:W},f.NEXT={id:"filetree.next",category:W},f.PREV={id:"filetree.prev",category:W},f.COLLAPSE={id:"filetree.collapse",category:W},f.EXPAND={id:"filetree.expand",category:W},f.REVEAL_IN_EXPLORER={id:"filetree.revealInExplorer",category:W},f.TOGGLE_OR_OPEN={id:"filetree.toggleOrOpen",category:W}})(a=e.FILE_COMMANDS||(e.FILE_COMMANDS={}));var o;(function(f){const W="openeditors";f.SAVE_ALL={id:"opened.editors.save.all",category:W,iconClass:(0,n.getIcon)("save-all")},f.CLOSE_ALL={id:"opened.editors.close.all",category:W,iconClass:(0,n.getIcon)("close-all")},f.SAVE_BY_GROUP={id:"opened.editors.save.byGroup"},f.CLOSE_BY_GROUP={id:"opened.editors.close.byGroup"},f.OPEN={id:"opened.editors.open",category:W},f.CLOSE={id:"opened.editors.close",category:W},f.OPEN_TO_THE_SIDE={id:"opened.editors.openToTheSide",category:W},f.COMPARE_SELECTED={id:"opened.editors.compare",category:W},f.COPY_RELATIVE_PATH={id:"opened.editors.copyRelativePath",category:W},f.COPY_PATH={id:"opened.editors.copyPath",category:W},f.LOCATION={id:"opened.editors.location",category:W}})(o=e.OPEN_EDITORS_COMMANDS||(e.OPEN_EDITORS_COMMANDS={}));var I;(function(f){f.FIND={id:"core.find",label:"%common.find%"},f.REPLACE={id:"core.replace",label:"%common.replace%"},f.ABOUT_COMMAND={id:"core.about",label:"%common.about%"},f.OPEN_PREFERENCES={id:"core.openpreference",label:"%common.preference.open%"},f.LOCATE_PREFERENCES={id:"workbench.preferences.locate"},f.OPEN_KEYMAPS={id:"core.keymaps.open",label:"%common.keymaps.open%"},f.OPEN_LAUNCH_CONFIGURATION={id:"core.launchConfiguration.open",label:"%debug.action.open.configuration%"},f.ENVIRONMENT_VARIABLE={id:"core.environment.variable"}})(I=e.COMMON_COMMANDS||(e.COMMON_COMMANDS={}));var g;(function(f){const W="editor";f.API_OPEN_EDITOR_COMMAND_ID="_workbench.open",f.API_OPEN_DIFF_EDITOR_COMMAND_ID="_workbench.diff",f.API_OPEN_WITH_EDITOR_COMMAND_ID="_workbench.openWith",f.NEW_UNTITLED_FILE={id:"file.new.untitled",category:W,label:"%file.new%",iconClass:(0,n.getIcon)("new-file")},f.UNDO={id:"editor.undo",category:W,label:"%editor.undo%"},f.REDO={id:"editor.redo",category:W,label:"%editor.redo%"},f.SELECT_ALL={id:"editor.selectAll",category:W,label:"%selection.all%"},f.OPEN_RESOURCE={id:"editor.openUri",category:W},f.OPEN_RESOURCES={id:"editor.openUris",category:W},f.SAVE_URI={id:"editor.saveUri",category:W},f.SAVE_CURRENT={id:"editor.saveCurrent",category:W,label:"%editor.saveCurrent%"},f.FOCUS_IF_NOT_ACTIVATE_ELEMENT={id:"editor.focusIfNotActivateElement",category:W,label:"%editor.saveCurrent%"},f.COMPARE={id:"editor.compare",category:W},f.OPEN_MERGEEDITOR={id:"editor.open.mergeEditor",category:W},f.OPEN_MERGEEDITOR_DEV={id:"editor.open.mergeEditor.dev",category:"Merge Editor (Dev)",label:"Open Merge Editor State from Json"},f.MERGEEDITOR_RESET={id:"editor.mergeEditor.reset",category:W,label:"%mergeEditor.reset%"},f.CLOSE={id:"editor.close",category:W,label:"%editor.closeCurrent%"},f.CLOSE_ALL_IN_GROUP={id:"editor.closeAllInGroup",category:W,label:"%editor.closeAllInGroup%"},f.CLOSE_OTHER_IN_GROUP={id:"editor.closeOtherEditorsInGroup",category:W,label:"%editor.closeOtherEditors%"},f.CLOSE_ALL={id:"editor.closeAll",category:W,label:"%editor.close.all%"},f.CLOSE_SAVED={id:"editor.closeSaved",category:W,label:"%editor.closeSaved%"},f.SAVE_ALL={id:"editor.saveAll",category:W,label:"%editor.saveAll%"},f.CLOSE_TO_RIGHT={id:"editor.closeToRight",category:W,label:"%editor.closeToRight%"},f.GET_CURRENT={id:"editor.getCurrent",category:W},f.GET_CURRENT_RESOURCE={id:"editor.getCurrentResource",category:W},f.SPLIT_TO_LEFT={id:"editor.splitToLeft",category:W,label:"%editor.splitToLeft%"},f.SPLIT_TO_RIGHT={id:"editor.splitToRight",category:W,label:"%editor.splitToRight%",iconClass:(0,n.getIcon)("embed")},f.SPLIT_TO_TOP={id:"editor.splitToTop",category:W,label:"%editor.splitToTop%"},f.SPLIT_TO_BOTTOM={id:"editor.splitToBottom",category:W,label:"%editor.splitToBottom%"},f.CHANGE_LANGUAGE={id:"editor.changeLanguage",category:W},f.CHANGE_ENCODING={id:"editor.changeEncoding",category:W},f.CHANGE_EOL={id:"editor.changeEol",category:W},f.NAVIGATE_LEFT={id:"editor.navigateLeft",category:W},f.NAVIGATE_RIGHT={id:"editor.navigateRight",category:W},f.NAVIGATE_UP={id:"editor.navigateUp",category:W},f.NAVIGATE_DOWN={id:"editor.navigateDown",category:W},f.NAVIGATE_NEXT={id:"editor.navigateNext",category:W},f.NAVIGATE_PREVIOUS={id:"editor.navigatePrevious",category:W},f.PREVIOUS={id:"editor.previous",category:W},f.NEXT={id:"editor.next",category:W},f.PREVIOUS_IN_GROUP={id:"editor.previousInGroup",category:W},f.NEXT_IN_GROUP={id:"editor.nextInGroup",category:W},f.LAST_IN_GROUP={id:"editor.lastInGroup",category:W},f.CLOSE_OTHER_GROUPS={id:"editor.closeOtherGroup",category:W,label:"%editor.closeEditorsInOtherGroups%"},f.OPEN_EDITOR_AT_INDEX={id:"editor.openEditorAtIndex",category:W},f.EVEN_EDITOR_GROUPS={id:"editor.evenEditorGroups",category:W,label:"%editor.resetEditorGroups%"},f.REVERT_DOCUMENT={id:"editor.document.revert",category:W,label:"%editor.revert%"},f.REVERT_AND_CLOSE={id:"editor.revertAndClose",category:W},f.GO_FORWARD={id:"editor.goForward",category:W},f.GO_BACK={id:"editor.goBack",category:W},f.PIN_CURRENT={id:"editor.pinCurrent",category:W},f.COPY_CURRENT_PATH={id:"editor.copyCurrentPath",category:W},f.GO_TO_GROUP={id:"editor.goToGroup",category:W},f.MOVE_GROUP={id:"editor.moveGroup",category:W},f.REOPEN_CLOSED={id:"editor.reopenClosed",category:W},f.FOCUS={id:"editor.focus",category:W},f.TEST_TOKENIZE={id:"editor.tokenize.test",category:W,label:"%editor.tokenize.test%"},f.AUTO_SAVE={id:"editor.autoSave",category:W},f.FOCUS_ACTIVE_EDITOR_GROUP={id:"editor.focusActiveEditorGroup",category:W},f.COMPONENT_UNDO={id:"editor.componentUndo",category:W},f.COMPONENT_REDO={id:"editor.componentRedo"},f.SEARCH_WORKSPACE_SYMBOL={id:"editor.workspaceSymbol.quickopen",label:"%editor.workspaceSymbol.quickopen%",category:W},f.SEARCH_WORKSPACE_SYMBOL_CLASS={id:"editor.workspaceSymbolClass.quickopen",label:"%editor.workspaceSymbolClass.quickopen%",category:W},f.GO_TO_LINE={id:"editor.action.gotoLine",label:"%editor.goToLine%",category:W},f.QUICK_OPEN={id:"workbench.action.quickOpen",category:W,label:"%editor.quickOpen%"},f.TOGGLE_WORD_WRAP={id:"editor.toggleWordWrap",label:"%editor.toggleWordWrap%",category:W},f.FORMAT_DOCUMENT={id:"editor.action.formatDocument",category:W},f.FORMAT_SELECTION={id:"editor.action.formatSelection",category:W},f.FORMAT_DOCUMENT_WITH={id:"editor.action.formatDocument.multiple",category:W,label:"%editor.formatDocument.label.multiple%"},f.FORMAT_SELECTION_WITH={id:"editor.action.formatSelection.multiple",category:W,label:"%editor.formatSelection.label.multiple%"},f.COPY_PATH={id:"editor.action.copyPath",category:W,label:"%editor.copyPath%"},f.COPY_RELATIVE_PATH={id:"editor.action.copyRelativePath",category:W,label:"%editor.copyRelativePath%"}})(g=e.EDITOR_COMMANDS||(e.EDITOR_COMMANDS={}));var u;(function(f){const W="diff-editor";f.REVERT={id:"editor.diff.revert",category:W},f.ACCEPT={id:"editor.diff.accept",category:W},f.TOGGLE_COLLAPSE_UNCHANGED_REGIONS={id:"editor.diff.toggleCollapseUnchangedRegions",category:W}})(u=e.DIFF_EDITOR_COMMANDS||(e.DIFF_EDITOR_COMMANDS={}));var G;(function(f){const W="search";f.OPEN_SEARCH={id:"content-search.openSearch",category:W,label:"Open search sidebar"},f.REFRESH={id:"file-search.refresh",label:"refresh search",iconClass:(0,n.getIcon)("refresh"),category:W},f.CLEAN={id:"file-search.clean",label:"clean search",iconClass:(0,n.getIcon)("clear"),category:W},f.GET_RECENT_SEARCH_WORD={id:"search.getRecentSearchWordCmd",category:W},f.GET_BACK_RECENT_SEARCH_WORD={id:"search.getBackRecentSearchWordCmd",category:W},f.MENU_REPLACE={id:"search.menu.replace",category:W,label:"%search.replace.title%"},f.MENU_REPLACE_ALL={id:"search.menu.replaceAll",category:W,label:"%search.replaceAll.label%"},f.MENU_HIDE={id:"search.menu.hide",category:W,label:"%search.result.hide%"},f.MENU_COPY={id:"search.menu.copy",category:W,label:"%file.copy.file%"},f.MENU_COPY_ALL={id:"search.menu.copyAll",category:W,label:"%search.menu.copyAll%"},f.MENU_COPY_PATH={id:"search.menu.copyPath",category:W,label:"%file.copy.path%"},f.REPLACE={id:"search.replace",category:W},f.CLOSE={id:"search.close",category:W}})(G=e.SEARCH_COMMANDS||(e.SEARCH_COMMANDS={}));var p;(function(f){const W="outline";f.OUTLINE_COLLAPSE_ALL={id:"outline.collapse.all",category:W},f.OUTLINE_FOLLOW_CURSOR={id:"outline.follow.cursor",category:W},f.OUTLINE_SORT_KIND={id:"outline.sort.kind",category:W},f.OUTLINE_SORT_NAME={id:"outline.sort.name",category:W},f.OUTLINE_SORT_POSITION={id:"outline.sort.position",category:W}})(p=e.OUTLINE_COMMANDS||(e.OUTLINE_COMMANDS={}));var b;(function(f){const W="workspace";f.ADD_WORKSPACE_FOLDER={id:"workspace.addFolderToWorkspace",label:"%workspace.addFolderToWorkspace%",category:W},f.REMOVE_WORKSPACE_FOLDER={id:"workspace.removeFolderFromWorkspace",category:W},f.SAVE_WORKSPACE_AS_FILE={id:"workspace.saveWorkspaceAsFile",label:"%workspace.saveWorkspaceAsFile%",category:W}})(b=e.WORKSPACE_COMMANDS||(e.WORKSPACE_COMMANDS={}));var m;(function(f){const W="keyboard";f.CHOOSE_KEYBOARD_LAYOUT={id:"keyboard.chooseKeyboardLayout",label:"%keyboard.chooseKeyboardLayout%",category:W}})(m=e.KEYBOARD_COMMANDS||(e.KEYBOARD_COMMANDS={}));var d;(function(f){const W="dialog";f.ENSURE={id:"dialog.ensure",category:W}})(d=e.DIALOG_COMMANDS||(e.DIALOG_COMMANDS={}));var s;(function(f){f.CATEGORY="%terminal.name%",f.FOCUS_NEXT_TERMINAL={id:"workbench.action.terminal.focusNextPane",label:"%terminal.focusNext.inTerminalGroup%",category:f.CATEGORY},f.FOCUS_PREVIOUS_TERMINAL={id:"workbench.action.terminal.focusPreviousPane",label:"%terminal.focusPrevious.inTerminalGroup%",category:f.CATEGORY},f.SPLIT={id:"terminal.split",label:"%terminal.split%",category:f.CATEGORY},f.ADD={id:"terminal.add",label:"%terminal.new%",category:f.CATEGORY},f.REMOVE={id:"terminal.remove",label:"%terminal.remove%",category:f.CATEGORY},f.CLEAR={id:"terminal.clear",label:"%terminal.clear%",category:f.CATEGORY},f.OPEN_SEARCH={id:"terminal.search",label:"%terminal.search%",category:f.CATEGORY},f.SEARCH_NEXT={id:"terminal.search.next",label:"%terminal.search.next%",category:f.CATEGORY},f.OPEN_WITH_PATH={id:"terminal.openWithPath",category:f.CATEGORY},f.CLEAR_CONTENT={id:"terminal.clearContent",label:"%terminal.menu.clearCurrentContent%",category:f.CATEGORY},f.CLEAR_ALL_CONTENT={id:"terminal.clearAllContent",label:"%terminal.menu.clearAllContents%",category:f.CATEGORY},f.TAB_RENAME={id:"terminal.tabRename",category:f.CATEGORY},f.SELECT_ALL_CONTENT={id:"terminal.selectAllContent",label:"%terminal.menu.selectAllContent%",category:f.CATEGORY},f.MORE_SETTINGS={id:"terminal.moreSettings",label:"%terminal.menu.moreSettings%",category:f.CATEGORY},f.SELECT_TYPE={id:"terminal.selectType",category:f.CATEGORY},f.SELECT_ZSH={id:"terminal.selectTypeZsh",label:"zsh",category:f.CATEGORY},f.SELECT_BASH={id:"terminal.selectTypeBash",label:"bash",category:f.CATEGORY},f.SELECT_SH={id:"terminal.selectTypeSh",label:"sh",category:f.CATEGORY},f.SELECT_CMD={id:"terminal.selectTypeCMD",label:"cmd",category:f.CATEGORY},f.SELECT_POWERSHELL={id:"terminal.selectTypePowerShell",label:"powershell",category:f.CATEGORY},f.COPY={id:"terminal.copy",label:"%edit.copy%",category:f.CATEGORY},f.PASTE={id:"terminal.paste",label:"%edit.paste%",category:f.CATEGORY},f.SELECT_ALL={id:"terminal.selectAll",label:"%terminal.menu.selectCurrentContent%",category:f.CATEGORY},f.RE_LAUNCH={id:"terminal.relaunch",category:f.CATEGORY},f.TOGGLE_TERMINAL={id:"terminal.toggleTerminal",label:"%terminal.toggleTerminal%",category:f.CATEGORY},f.KILL_PROCESS={id:"terminal.killProcess",label:"%terminal.killProcess%",category:f.CATEGORY}})(s=e.TERMINAL_COMMANDS||(e.TERMINAL_COMMANDS={}));var l;(function(f){const W="view";f.QUICK_OPEN_VIEW={id:"layout.action.quickOpenView",category:W},f.OPEN_VIEW={id:"layout.action.openView",label:"%layout.action.openView%",category:W},f.MAXIMIZE_EDITOR={id:"layout.action.Maximizeeditor",category:W},f.TOGGLE_SIDEBAR_VISIBILITY={id:"main-layout.left-panel.toggle",category:W}})(l=e.LAYOUT_COMMANDS||(e.LAYOUT_COMMANDS={}));var r;(function(f){const W="marker";f.SHOW_ERRORS_WARNINGS={id:"marker.action.showErrorsWarnings",category:W},f.TOGGLE_SHOW_ERRORS_WARNINGS={id:"marker.action.toggleShowErrorsWarnings",category:W}})(r=e.MARKER_COMMANDS||(e.MARKER_COMMANDS={}));var c;(function(f){f.OPEN={id:"editor.action.quickCommand"},f.OPEN_OUTLINE={id:"editor.action.quickOutline"},f.OPEN_VIEW={id:"editor.action.quickView"},f.OPEN_WITH_COMMAND={id:"editor.action.quickCommand.withCommand"}})(c=e.QUICK_OPEN_COMMANDS||(e.QUICK_OPEN_COMMANDS={}));var h;(function(f){const W="SCM";f.GetSCMResource={id:"scm.getResource",category:W},f._GIT_OPEN_MERGE_EDITOR={id:"_git.openMergeEditor"},f.GIT_OPEN_MERGE_EDITOR={id:"git.openMergeEditor"}})(h=e.SCM_COMMANDS||(e.SCM_COMMANDS={}));var v;(function(f){const W="MergeConflict";f.AI_ACCEPT={id:"merge-conflict.ai.accept",category:W},f.ALL_RESET={id:"merge-conflict.ai.all-reset",category:W},f.AI_ALL_ACCEPT={id:"merge-conflict.ai.all-accept",category:W},f.AI_ALL_ACCEPT_STOP={id:"merge-conflict.ai.all-accept-stop",category:W}})(v=e.MERGE_CONFLICT_COMMANDS||(e.MERGE_CONFLICT_COMMANDS={}))},22780:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ClientCommonContribution=e.locationProtocolContextKey=e.inputFocusedContextKey=void 0;const n=t(85608),a=t(76003),o=t(97267),I=t(43718),g=t(53736),u=t(18193),G=t(22366),p=t(41118),b=t(1149),m=t(64102),d=t(39496),s=t(78132),l=t(11050),r=t(14109),c=t(66549);e.inputFocusedContextKey="inputFocus",e.locationProtocolContextKey="locationProtocol";let h=class{constructor(){this.schema=u.corePreferenceSchema;const f={"application.supportsOpenFolder":!!this.appConfig.isElectronRenderer&&!this.appConfig.isRemote,"application.supportsOpenWorkspace":!!this.appConfig.isElectronRenderer&&!this.appConfig.isRemote,"debug.toolbar.top":this.appConfig.isElectronRenderer?0:this.layoutViewSize.menubarHeight},W=Object.keys(this.schema.properties);for(const N of W)this.schema.properties[N].default=f[N]||this.schema.properties[N].default}onStart(){this.contextKeyService.createKey(e.locationProtocolContextKey,window.location.protocol.split(":")[0]),this.inputFocusedContext=this.contextKeyService.createKey(e.inputFocusedContextKey,!1),window.addEventListener("focusin",this.updateInputContextKeys.bind(this))}onStop(){window.removeEventListener("focusin",this.updateInputContextKeys.bind(this))}activeElementIsInput(){return!!document.activeElement&&(document.activeElement.tagName==="INPUT"||document.activeElement.tagName==="TEXTAREA")}updateInputContextKeys(){const f=this.activeElementIsInput();if(this.inputFocusedContext.set(f),f){const W=(0,G.trackFocus)(document.activeElement);I.Event.once(W.onDidBlur)(()=>{this.inputFocusedContext.set(this.activeElementIsInput()),W.dispose()})}}registerCommands(f){f.registerCommand(r.EDITOR_COMMANDS.UNDO),f.registerCommand(r.EDITOR_COMMANDS.REDO),f.registerCommand(r.EDITOR_COMMANDS.SELECT_ALL),f.registerCommand(r.COMMON_COMMANDS.ABOUT_COMMAND,{execute:()=>{alert((0,I.replaceLocalizePlaceholder)(this.appConfig.appName))}})}registerMenus(f){f.registerMenubarItem(d.MenuId.MenubarFileMenu,{label:(0,I.localize)("menu-bar.title.file"),order:1,iconClass:(0,o.getIcon)("menubar-file")}),f.registerMenubarItem(d.MenuId.MenubarEditMenu,{label:(0,I.localize)("menu-bar.title.edit"),order:2,iconClass:(0,o.getIcon)("menubar-edit")}),f.registerMenubarItem(d.MenuId.MenubarSelectionMenu,{label:(0,I.localize)("menu-bar.title.selection"),order:3,iconClass:(0,o.getIcon)("menubar-selection")}),f.registerMenubarItem(d.MenuId.MenubarViewMenu,{label:(0,I.localize)("menu-bar.title.view"),order:4,iconClass:(0,o.getIcon)("menubar-view")}),f.registerMenubarItem(d.MenuId.MenubarGoMenu,{label:(0,I.localize)("menu-bar.title.go"),order:5,iconClass:(0,o.getIcon)("menubar-go")}),f.registerMenubarItem(d.MenuId.MenubarTerminalMenu,{label:(0,I.localize)("menu-bar.title.terminal"),order:5,iconClass:(0,o.getIcon)("terminal")}),f.registerMenubarItem(d.MenuId.MenubarHelpMenu,{label:(0,I.localize)("menu-bar.title.help"),order:999,iconClass:(0,o.getIcon)("question-circle")}),f.registerMenuItems(d.MenuId.MenubarFileMenu,[{command:r.FILE_COMMANDS.OPEN_FOLDER.id,group:"1_open",when:"config.application.supportsOpenFolder"},{command:r.FILE_COMMANDS.OPEN_WORKSPACE.id,group:"1_open",when:"config.application.supportsOpenWorkspace"},{command:r.EDITOR_COMMANDS.NEW_UNTITLED_FILE.id,group:"2_new"},{command:{id:r.EDITOR_COMMANDS.SAVE_CURRENT.id,label:(0,I.localize)("file.save")},group:"3_save"},{command:{id:r.EDITOR_COMMANDS.SAVE_ALL.id,label:(0,I.localize)("file.saveAll")},group:"3_save"},{command:{id:r.EDITOR_COMMANDS.AUTO_SAVE.id,label:(0,I.localize)("file.autoSave")},toggledWhen:"config.editor.autoSave != off",group:"4_autosave"}]),f.registerMenuItems(d.MenuId.MenubarGoMenu,[{command:{id:r.EDITOR_COMMANDS.GO_BACK.id,label:(0,I.localize)("editor.goBack")},group:"1_go"},{command:{id:r.EDITOR_COMMANDS.GO_FORWARD.id,label:(0,I.localize)("editor.goForward")},group:"1_go"},{command:{id:r.EDITOR_COMMANDS.QUICK_OPEN.id,label:(0,I.localize)("editor.quickOpen")},group:"2_go_file"},{command:{id:r.EDITOR_COMMANDS.SEARCH_WORKSPACE_SYMBOL.id,label:(0,I.localize)("editor.workspaceSymbol.quickopen")},group:"2_go_file"},{command:{id:r.EDITOR_COMMANDS.GO_TO_LINE.id,label:(0,I.localize)("editor.goToLine")},group:"3_go_infile"},{command:{id:"editor.action.jumpToBracket",label:(0,I.localize)("menu-bar.go.jumpToBracket")},group:"3_go_infile"},{command:{id:"editor.action.marker.nextInFiles",label:(0,I.localize)("menu-bar.go.nextProblemInFiles")},group:"6_go_problem"},{command:{id:"editor.action.marker.prevInFiles",label:(0,I.localize)("menu-bar.go.prevProblemInFiles")},group:"6_go_problem"}]),f.registerMenuItems(d.MenuId.MenubarTerminalMenu,[{command:{id:r.TERMINAL_COMMANDS.ADD.id,label:r.TERMINAL_COMMANDS.ADD.label},group:"1_terminal"},{command:{id:r.TERMINAL_COMMANDS.SPLIT.id,label:r.TERMINAL_COMMANDS.SPLIT.label},group:"1_terminal"}])}registerKeybindings(f){f.registerKeybinding({command:r.EDITOR_COMMANDS.SELECT_ALL.id,keybinding:"ctrlcmd+a",when:"editorFocus"}),f.registerKeybinding({command:r.EDITOR_COMMANDS.UNDO.id,keybinding:"ctrlcmd+z",when:"editorFocus"}),f.registerKeybinding({command:r.EDITOR_COMMANDS.REDO.id,keybinding:"ctrlcmd+shift+z",when:"editorFocus"})}};n.__decorate([(0,a.Autowired)(I.CommandService),n.__metadata("design:type",Object)],h.prototype,"commandService",void 0),n.__decorate([(0,a.Autowired)(g.IContextKeyService),n.__metadata("design:type",Object)],h.prototype,"contextKeyService",void 0),n.__decorate([(0,a.Autowired)(l.AppConfig),n.__metadata("design:type",Object)],h.prototype,"appConfig",void 0),n.__decorate([(0,a.Autowired)(b.LayoutViewSizeConfig),n.__metadata("design:type",b.LayoutViewSizeConfig)],h.prototype,"layoutViewSize",void 0),h=n.__decorate([(0,I.Domain)(I.CommandContribution,c.ClientAppContribution,s.PreferenceContribution,m.MenuContribution,p.KeybindingContribution),n.__metadata("design:paramtypes",[])],h),e.ClientCommonContribution=h},66549:(L,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ClientAppContribution=void 0,e.ClientAppContribution=Symbol("ClientAppContribution")},34505:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ClientCommonModule=void 0;const n=t(85608),a=t(76003),o=t(16908),I=t(43718),g=t(37638),u=t(36206),G=t(136),p=t(90697),b=t(45829),m=t(44867),d=t(22780),s=t(10797),l=t(17821);let r=class extends u.BrowserModule{constructor(){super(...arguments),this.contributionProvider=[p.OpenerContribution],this.providers=[d.ClientCommonContribution,m.DefaultOpenerContribution,m.OpenerContributionClient,g.AuthenticationContribution,G.HashCalculateContribution],this.electronProviders=[s.ClientElectronCommonContribution,b.ElectronOpenerContributionClient],this.webProviders=[l.ClientWebCommonContribution],this.backServices=[{servicePath:I.CommonServerPath,protocol:o.CommonServerProtocol},{servicePath:I.KeytarServicePath},{servicePath:I.CryptoServicePath}]}};r=n.__decorate([(0,a.Injectable)()],r),e.ClientCommonModule=r},98881:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.RecentStorage=void 0;const n=t(85608),a=t(76003),o=t(43718);let I=class{async getScopeStorage(){return this.recentStorage=this.recentStorage||await this.getStorage(o.STORAGE_NAMESPACE.RECENT_DATA),this.recentStorage}async getGlobalStorage(){return this.recentGlobalStorage=this.recentGlobalStorage||await this.getStorage(o.STORAGE_NAMESPACE.GLOBAL_RECENT_DATA),this.recentGlobalStorage}};n.__decorate([(0,a.Autowired)(o.StorageProvider),n.__metadata("design:type",Function)],I.prototype,"getStorage",void 0),I=n.__decorate([(0,a.Injectable)()],I),e.RecentStorage=I},30144:(L,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.EXTENSION_CONTAINER_ID=e.SCM_CONTAINER_ID=e.SEARCH_CONTAINER_ID=e.EXPLORER_CONTAINER_ID=e.DEBUG_CONTAINER_ID=e.TEST_RESULT_CONTAINER_ID=e.DEBUG_CONSOLE_CONTAINER_ID=e.TERMINAL_CONTAINER_ID=e.OUTPUT_CONTAINER_ID=e.MARKER_CONTAINER_ID=void 0,e.MARKER_CONTAINER_ID="markers",e.OUTPUT_CONTAINER_ID="output",e.TERMINAL_CONTAINER_ID="terminal",e.DEBUG_CONSOLE_CONTAINER_ID="debug-console",e.TEST_RESULT_CONTAINER_ID="test-result",e.DEBUG_CONTAINER_ID="debug",e.EXPLORER_CONTAINER_ID="explorer",e.SEARCH_CONTAINER_ID="search",e.SCM_CONTAINER_ID="scm",e.EXTENSION_CONTAINER_ID="extension"},10797:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ClientElectronCommonContribution=void 0;const n=t(85608),a=t(76003),o=t(43718),I=t(64102),g=t(39496),u=t(11050);let G=class{registerMenus(b){b.registerMenubarItem(g.MenuId.MenubarAppMenu,{label:(0,o.localize)("app.name",this.appConfig.appName),order:0}),b.registerMenuItems(g.MenuId.MenubarEditMenu,[{command:{id:"electron.undo",label:(0,o.localize)("editor.undo")},nativeRole:"undo",group:"1_undo"},{command:{id:"electron.redo",label:(0,o.localize)("editor.redo")},group:"1_undo",nativeRole:"redo"},{command:{label:(0,o.localize)("edit.cut"),id:"electron.cut"},nativeRole:"cut",group:"2_clipboard"},{command:{label:(0,o.localize)("edit.copy"),id:"electron.copy"},nativeRole:"copy",group:"2_clipboard"},{command:{label:(0,o.localize)("edit.paste"),id:"electron.paste"},nativeRole:"paste",group:"2_clipboard"},{command:{label:(0,o.localize)("edit.selectAll"),id:"electron.selectAll"},nativeRole:"selectAll",group:"2_clipboard"}]),b.registerMenuItems(g.MenuId.MenubarAppMenu,[{command:{id:"electron.quit",label:(0,o.localize)("app.quit")},nativeRole:"quit",group:"4_quit"}])}};n.__decorate([(0,a.Autowired)(u.AppConfig),n.__metadata("design:type",Object)],G.prototype,"appConfig",void 0),G=n.__decorate([(0,o.Domain)(I.MenuContribution)],G),e.ClientElectronCommonContribution=G},66963:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});const n=t(85608);n.__exportStar(t(14109),e),n.__exportStar(t(34505),e),n.__exportStar(t(66549),e),n.__exportStar(t(98881),e)},17821:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ClientWebCommonContribution=void 0;const n=t(85608),a=t(43718),o=t(64102),I=t(39496),g=t(14109);let u=class{registerMenus(p){p.registerMenuItems(I.MenuId.MenubarEditMenu,[{command:g.EDITOR_COMMANDS.REDO.id,group:"1_undo"},{command:g.EDITOR_COMMANDS.UNDO.id,group:"1_undo"}]),p.registerMenuItem(I.MenuId.MenubarHelpMenu,{command:{id:g.COMMON_COMMANDS.ABOUT_COMMAND.id,label:g.COMMON_COMMANDS.ABOUT_COMMAND.label},nativeRole:"about",group:"0_about"})}};u=n.__decorate([(0,a.Domain)(o.MenuContribution)],u),e.ClientWebCommonContribution=u},25918:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.InlineMenuBar=e.InlineActionBar=e.TitleActionList=e.MenuActionList=void 0;const n=t(85608),a=n.__importDefault(t(53373)),o=n.__importStar(t(14041)),I=t(97267),g=t(45803),u=t(43718),G=t(93899),p=t(48560),b=t(79951),m=t(55693),d=n.__importDefault(t(17647)),s=n.__importDefault(t(54859)),l=({data:N,hasSubmenu:Z,disabled:y,iconService:E,hasChecked:R})=>o.default.createElement("div",{className:(0,a.default)(s.default.menuAction,{[s.default.disabled]:y,[s.default.checked]:N.checked})},o.default.createElement("div",{className:(0,a.default)({[s.default.icon]:R})},N.checked?o.default.createElement(I.Icon,{icon:"check"}):null),o.default.createElement("div",{className:s.default.label},N.label?(0,b.transformLabelWithCodicon)(u.strings.mnemonicButtonLabel(N.label,!0),{margin:"0 3px"},E?.fromString.bind(E)):""),o.default.createElement("div",{className:s.default.tip},N.keybinding?o.default.createElement("div",{className:s.default.shortcut},N.keybinding):null,Z?o.default.createElement("div",{className:s.default.submenuIcon},o.default.createElement(I.Icon,{icon:"right"})):null,!N.keybinding&&!Z&&N.extraDesc&&o.default.createElement("div",{className:s.default.extraDesc},N.extraDesc))),r=({data:N=[],context:Z=[],afterClick:y,style:E,iconService:R,renderSubMenuTitle:A,renderMenuItem:w})=>{if(!N.length)return null;const F=o.default.useCallback(H=>{const{key:S,item:X}=H;if([G.SeparatorMenuItemNode.ID,G.SubmenuItemNode.ID].includes(S))return;const O=(Array.isArray(X.props.children)?X.props.children[0]:X.props.children).props.data;O&&(typeof O.execute=="function"&&O.execute(Z),typeof y=="function"&&y(O))},[N,Z]),V=o.default.useCallback((H,S)=>{if(A){const X=A(H,{hasSubmenu:!0,disabled:!1});if(X)return X}return o.default.createElement(l,{hasChecked:S,hasSubmenu:!0,data:H,iconService:R})},[A]),Y=o.default.useCallback((H,S)=>{if(w){const X=w(H,{hasSubmenu:!1,disabled:H.disabled});if(X)return X}return o.default.createElement(l,{hasChecked:S,data:H,disabled:H.disabled,iconService:R})},[w]),_=o.default.useCallback(H=>{const S=H.some(X=>X.checked);return H.map((X,Q)=>{if(X.id===G.SeparatorMenuItemNode.ID)return null;const O=H[Q+1]&&H[Q+1].id===G.SeparatorMenuItemNode.ID;return X.id===G.SubmenuItemNode.ID?!Array.isArray(X.children)||!X.children.length?null:o.default.createElement(o.default.Fragment,{key:`${X.id}-${X.submenuId}-${Q}`},o.default.createElement(g.Menu.SubMenu,{key:`${X.id}-${X.submenuId}-${Q}`,className:s.default.submenuItem,popupClassName:"kt-menu",title:V(X,S)},_(X.children)),O?o.default.createElement(g.Menu.Divider,{key:`divider-${Q}`,className:s.default.menuItemDivider}):null):o.default.createElement(o.default.Fragment,{key:`${X.id}-${Q}`},o.default.createElement(g.Menu.Item,{id:`${X.id}-${Q}`,key:`${X.id}-${Q}`,className:s.default.menuItem,disabled:X.disabled},Y(X,S)),O?o.default.createElement(g.Menu.Divider,{key:`divider-${Q}`,className:s.default.menuItemDivider}):null)})},[]);return o.default.createElement(g.Menu,Object.assign({className:"kt-menu",selectable:!1,motion:{motionLeave:!1,motionEnter:!1}},{builtinPlacements:d.default},{onClick:F,style:E}),_(N))};e.MenuActionList=r;const c=({type:N,icon:Z,disabled:y,onClick:E,title:R})=>{const A=(0,m.useDesignStyles)(s.default.btnAction,"btnAction");if(N==="icon")return o.default.createElement(I.Button,{size:"small",type:N,className:A,onClick:E,title:R,icon:Z||"ellipsis"});const w={};return(0,u.isBoolean)(y)&&(w.disabled=y),o.default.createElement(I.Button,Object.assign({size:"small",type:"secondary",className:A,onClick:E},w,{title:R}),o.default.createElement(I.Icon,{icon:Z||"ellipsis"}))};c.displayName="EllipsisWidget";const h=o.default.memo(N=>{var{iconService:Z,type:y="icon",data:E,context:R=[],className:A,afterClick:w}=N,F=n.__rest(N,["iconService","type","data","context","className","afterClick"]);const V=(0,m.useDesignStyles)(s.default.iconAction,"iconAction"),Y=(0,m.useDesignStyles)(s.default.btnAction,"btnAction"),[_,H]=(0,o.useState)(!1),S=o.default.useCallback(async(M,...T)=>{if(M&&(M.preventDefault(),M.stopPropagation()),!_){if(H(!0),E.id===G.SubmenuItemNode.ID&&M){const x={x:M.clientX,y:M.clientY};await E.execute([x,...R])}else typeof E.execute=="function"&&await E.execute([...R,...T]);H(!1),typeof w=="function"&&w()}},[E,R]),[X,Q]=o.default.useMemo(()=>{let M=E.tooltip||E.label;const T=E.label;return E.keybinding&&(M=`${M} (${E.keybinding})`),[M,T]},[E]),O=E.id===G.SubmenuItemNode.ID;return y==="icon"&&!E.type?o.default.createElement(I.Button,Object.assign({type:E.icon?"icon":"link",className:(0,a.default)(V,A,{[s.default.disabled]:E.disabled,[s.default.submenuIconAction]:O}),title:X,iconClass:E.icon,onClick:S},F),!E.icon&&Q):E.type==="checkbox"?o.default.createElement(I.CheckBox,Object.assign({className:(0,a.default)(A,Y),disabled:E.disabled,label:E.label,title:X,checked:E.checked,onChange:M=>S(void 0,M.target.checked)},F)):o.default.createElement(I.Button,Object.assign({loading:_,className:(0,a.default)(A,Y),disabled:E.disabled,onClick:S,size:"small",type:E.type,title:X},F),(0,b.transformLabelWithCodicon)(Q,{margin:"0 3px"},Z?.fromString.bind(Z)),O&&o.default.createElement(I.Icon,{icon:"down",className:"kt-button-secondary-more"}))});h.displayName="InlineAction";const v=({data:N,context:Z})=>{const y=o.default.useCallback(()=>N.getExecuteArgs(Z),[N,Z]);return o.default.createElement(N.component,{getExecuteArgs:y})};v.displayName="CustomAction",e.TitleActionList=o.default.memo(({type:N="icon",nav:Z=[],more:y=[],moreIcon:E,moreTitle:R,context:A=[],extraNavActions:w=[],moreAtFirst:F=!1,className:V,afterClick:Y,menuId:_,iconService:H,regroup:S=(...X)=>X})=>{const X=(0,p.useInjectable)(G.ICtxMenuRenderer),Q=(0,p.useInjectable)(G.AbstractMenuService),O=(0,m.useDesignStyles)(s.default.titleActions,"titleActions"),[M,T]=S(Z,y),x=o.default.useCallback(D=>{D.preventDefault(),D.stopPropagation(),T&&X.show({anchor:{x:D.clientX,y:D.clientY},menuNodes:T,args:A,onHide:Y})},[T,A]);if(M.length===0&&T.length===0&&w.length===0)return null;const B=T.length>0?o.default.createElement(c,{disabled:T[0].disabled,icon:E,type:N,onClick:x,title:R}):null;return o.default.createElement("div",{className:(0,a.default)([O,V]),"data-menu-id":_},F&&B,M.map(D=>{if(D.id===G.ComponentMenuItemNode.ID)return o.default.createElement(v,{context:A,data:D,key:D.nodeId});if(D.id===G.SubmenuItemNode.ID){const k=Q.createMenu(D.submenuId);if(!((0,G.generateMergedCtxMenu)({menus:k}).length>0))return}if(D.id===G.SeparatorMenuItemNode.ID)return o.default.createElement("span",{key:`vertical-divider-${D.id}`,className:s.default.verticalDivider});const J=D.id===G.SubmenuItemNode.ID?D.submenuId:D.id;return o.default.createElement(h,{id:J,key:J,className:(0,a.default)({[s.default.selected]:D.checked}),type:N,data:D,afterClick:Y,context:A,iconService:H})}),Array.isArray(w)&&w.length?o.default.createElement(o.default.Fragment,null,M.length&&o.default.createElement("span",{className:s.default.divider}),w):null,!F&&B)}),e.TitleActionList.displayName="TitleActionList";function f(N){const{menus:Z,context:y,separator:E="navigation",debounce:R,isFlattenMenu:A=!1}=N,w=n.__rest(N,["menus","context","separator","debounce","isFlattenMenu"]),[F,V]=(0,m.useMenus)(Z,E,y,R),Y=(0,o.useMemo)(()=>A?[...F,...V]:F,[F,V,A]);return o.default.createElement(e.TitleActionList,Object.assign({menuId:Z.menuId,nav:Y,more:E==="inline"||A?[]:V},w))}e.InlineActionBar=f;function W(N){const{iconService:Z,menus:y,context:E,moreIcon:R,moreTitle:A,separator:w="navigation"}=N,F=n.__rest(N,["iconService","menus","context","moreIcon","moreTitle","separator"]),[V,Y]=(0,m.useContextMenus)(y);return o.default.createElement(e.TitleActionList,Object.assign({menuId:y.menuId,nav:V,more:w==="inline"?[]:Y,moreIcon:R,moreTitle:A,context:E,iconService:Z},F))}e.InlineMenuBar=W,W.displayName="InlineMenuBar"},17647:(L,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.placements=void 0;const t={adjustX:1,adjustY:1},n=[0,0];e.placements={topLeft:{points:["bl","tl"],overflow:t,offset:[0,-4],targetOffset:n},topCenter:{points:["bc","tc"],overflow:t,offset:[0,-4],targetOffset:n},topRight:{points:["br","tr"],overflow:t,offset:[0,-4],targetOffset:n},bottomLeft:{points:["tl","bl"],overflow:t,offset:[0,4],targetOffset:n},bottomCenter:{points:["tc","bc"],overflow:t,offset:[0,4],targetOffset:n},bottomRight:{points:["tr","br"],overflow:t,offset:[0,4],targetOffset:n}},e.default=e.placements},89847:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AIAction=void 0;const n=t(85608),a=n.__importDefault(t(53373)),o=n.__importStar(t(14041)),I=t(43718),g=t(22689),u=t(48560),G=t(57995),p=t(24951),b=t(49716),m=t(52141),d=n.__importDefault(t(27410)),s=(0,g.createLayoutEventType)(I.AIInlineChatContentWidgetId),l=new CustomEvent(s,{bubbles:!0}),r=c=>{const{operationList:h,moreOperation:v,showClose:f=!0,onClickItem:W,onClose:N,customOperationRender:Z,loading:y,loadingShowOperation:E=!1}=c,R=o.default.useRef(null),[A,w]=(0,u.useHover)(),F=(0,o.useCallback)(()=>{N?.()},[N]);(0,u.useChange)(w,()=>{var _;(_=R.current)===null||_===void 0||_.dispatchEvent(l)});const V=(0,o.useCallback)(()=>y&&E?o.default.createElement("div",{className:d.default.loading_mask}):null,[y,E]),Y=(0,o.useCallback)(()=>{if(y&&!E)return null;const _=o.default.createElement(o.default.Fragment,null,h?.map(({name:H,title:S,id:X},Q)=>S?o.default.createElement(m.EnhancePopover,{id:X,title:S,key:`popover_${Q}`},o.default.createElement(G.EnhanceIcon,{wrapperClassName:d.default.operate_item,onClick:()=>W?.(X)},o.default.createElement("span",{key:Q},H))):o.default.createElement(G.EnhanceIcon,{wrapperClassName:d.default.operate_item,onClick:()=>W?.(X),key:Q},o.default.createElement("span",null,H))),v?.length?o.default.createElement(G.EnhanceIconWithCtxMenu,{icon:"more",menuNodes:v,wrapperClassName:d.default.operate_btn,skew:{x:-83,y:5}}):null);return o.default.createElement("div",{ref:A,className:d.default.operate_container},V(),o.default.createElement(p.LineVertical,{height:"100%",margin:"0 8px",maxHeight:14,minHeight:14}),Z?o.default.createElement("div",{className:d.default.custom_operation_wrapper},Z):o.default.createElement("div",{className:d.default.default_operation_wrapper},_))},[Z,h,v,y,E]);return o.default.createElement("div",{ref:R,className:(0,a.default)(d.default.ai_action_wrapper,y&&d.default.loading,E&&d.default.loading_show_operation)},o.default.createElement(o.default.Fragment,null,o.default.createElement("div",{className:d.default.stable_container},y?o.default.createElement(m.EnhancePopover,{id:"inline_chat_loading",title:(0,I.localize)("aiNative.inline.chat.operate.loading.cancel")},o.default.createElement(b.Loading,{className:d.default.loading_icon})):o.default.createElement(G.AILogoAvatar,{className:d.default.ai_action_icon})),Y(),f&&o.default.createElement("div",{className:d.default.close_container},o.default.createElement(p.LineVertical,{height:"100%",margin:"0px 8px",maxHeight:14,minHeight:14}),o.default.createElement(G.EnhanceIcon,{wrapperClassName:d.default.operate_btn,icon:"window-close",onClick:F}))))};e.AIAction=r},66205:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ContentWidgetContainerPanel=void 0;const n=t(85608),a=n.__importDefault(t(14041)),o=n.__importDefault(t(41771)),I=g=>a.default.createElement("div",{className:o.default.inline_chat_container_panel,style:g.style},g.children);e.ContentWidgetContainerPanel=I},57995:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AILogoAvatar=e.EnhanceIconWithCtxMenu=e.EnhanceIcon=void 0;const n=t(85608),a=n.__importDefault(t(53373)),o=n.__importStar(t(14041)),I=t(43718),g=t(81878),u=t(97222),G=t(48560),p=n.__importDefault(t(42798));e.EnhanceIcon=o.default.forwardRef((d,s)=>o.default.createElement("div",{className:(0,a.default)(d.wrapperClassName,p.default.ai_enhance_icon),style:d.wrapperStyle,onClick:d.onClick,ref:s},o.default.createElement(g.Icon,{className:(0,a.default)(d.className,p.default.icon),children:null,onClick:()=>null,style:(d.icon||d.iconClass)&&d.children?{marginRight:5}:{},icon:d.icon,iconClass:d.iconClass}),d.children&&o.default.createElement("span",{className:p.default.children_wrap},d.children)));const b=d=>{const{children:s,menuNodes:l,skew:r,id:c}=d,h=n.__rest(d,["children","menuNodes","skew","id"]),v=(0,G.useInjectable)(I.CommandService),f=(0,G.useInjectable)(u.IBrowserCtxMenu),[W,N]=o.default.useState(void 0),Z=o.default.useRef(null);o.default.useEffect(()=>{y()},[Z.current,r]);const y=(0,o.useCallback)(R=>{requestAnimationFrame(()=>{if(Z.current){const A=Z.current.getBoundingClientRect(),{x:w,y:F,width:V,height:Y}=A,_={x:w+V,y:F+Y};r&&(_.x+=r.x,_.y+=r.y),N(_),R&&R(_)}})},[Z.current,r]),E=o.default.useCallback(()=>{W&&(l?y(R=>{f.show({anchor:R,menuNodes:l})}):c&&v.executeCommand(c))},[Z.current,l,W,c]);return o.default.createElement(e.EnhanceIcon,Object.assign({ref:Z,onClick:E},h),s)};e.EnhanceIconWithCtxMenu=b;const m=d=>o.default.createElement("div",{className:(0,a.default)(p.default.ai_logo_avatar_container,d.className)},o.default.createElement(g.Icon,{icon:"magic-wand",className:(0,a.default)(d.iconClassName,p.default.avatar_icon)}));e.AILogoAvatar=m},89195:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});const n=t(85608);n.__exportStar(t(89847),e),n.__exportStar(t(57995),e),n.__exportStar(t(50610),e),n.__exportStar(t(24951),e),n.__exportStar(t(52141),e),n.__exportStar(t(75777),e),n.__exportStar(t(49716),e),n.__exportStar(t(83913),e)},50610:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AIInlineResult=void 0;const n=t(85608),a=n.__importDefault(t(14041)),o=t(57995),I=t(24951),g=t(75777),u=n.__importDefault(t(5011)),G=p=>{const{iconItems:b,isRenderThumbs:m=!0,isRenderClose:d=!1,closeClick:s}=p;return a.default.createElement("div",{className:u.default.ai_inline_result_panel},a.default.createElement("div",{className:u.default.side},b.map(({icon:l,text:r,onClick:c},h)=>a.default.createElement(o.EnhanceIcon,{wrapperClassName:u.default.operate_btn,icon:l,onClick:c,key:h},a.default.createElement("span",null,r)))),m&&a.default.createElement(a.default.Fragment,null,a.default.createElement(I.LineVertical,{height:"60%",margin:"0px 6px 0 6px"}),a.default.createElement("div",{className:u.default.side},a.default.createElement(g.Thumbs,{wrapperClassName:u.default.operate_icon}))),d&&a.default.createElement(a.default.Fragment,null,a.default.createElement(o.EnhanceIcon,{wrapperClassName:u.default.operate_btn,icon:"close",onClick:s})))};e.AIInlineResult=G},83913:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.InteractiveInput=void 0;const n=t(85608),a=n.__importDefault(t(53373)),o=n.__importStar(t(14041)),I=t(97267),g=t(43718),u=t(89195),G=n.__importDefault(t(42348)),p=160,b=32;e.InteractiveInput=o.default.forwardRef((m,d)=>{const{placeholder:s,onKeyDown:l,onBlur:r,onValueChange:c,onHeightChange:h,onFocus:v,onSend:f,disabled:W=!1,className:N,height:Z,width:y,sendBtnClassName:E,popoverPosition:R,autoFocus:A}=m,w=(0,o.useRef)(null),[F,V]=(0,o.useState)(m.value||""),[Y,_]=(0,o.useState)(Z||b),[H,S]=(0,o.useState)(!1);(0,o.useImperativeHandle)(d,()=>w.current),(0,o.useEffect)(()=>{w&&w.current&&A&&w.current.focus()},[w]),(0,o.useEffect)(()=>{var D;const J=m.value;(0,g.isUndefined)(J)||J!==((D=w.current)===null||D===void 0?void 0:D.value)&&V(J||"")},[m.value,F,w]),(0,o.useEffect)(()=>{(0,g.isUndefined)(Z)||Z!==Y&&_(Z)},[Z,Y,h]),(0,o.useEffect)(()=>{if(!F){_(b);return}if(w&&w.current&&Y<=p){w.current.style.height="0px";const D=w.current.scrollHeight;w.current.style.height=Math.min(D,p)+"px";const J=Math.min(D+12,p);_(J)}},[w,F,h,Y]),(0,o.useEffect)(()=>{h?.(Y)},[Y]);const X=(0,o.useCallback)(D=>{V(D),c?.(D)},[c]),Q=(0,o.useCallback)(D=>{S(!0),v?.(D)},[v]),O=(0,o.useCallback)(D=>{S(!1),r?.(D)},[r]),M=(0,o.useCallback)(()=>{W||F.trim()&&f?.(F)},[f,F,W]),T=(0,o.useCallback)(D=>{if(D.key==="Enter"&&!D.nativeEvent.isComposing){if(D.shiftKey)return;D.preventDefault(),M();return}l?.(D)},[l,M]),x=(0,o.useMemo)(()=>o.default.createElement("div",{className:G.default.input_icon_container},o.default.createElement("div",{className:(0,a.default)(G.default.send_chat_btn,H&&G.default.active,W&&G.default.disabled,E)},W?o.default.createElement("div",{className:G.default.ai_loading},o.default.createElement("div",{className:G.default.loader}),o.default.createElement("div",{className:G.default.loader}),o.default.createElement("div",{className:G.default.loader})):o.default.createElement(I.Popover,{id:`ai_chat_input_send_${(0,g.uuid)(4)}`,content:(0,g.localize)("aiNative.chat.enter.send"),delay:1500,position:R??I.PopoverPosition.top,disable:W},o.default.createElement(u.EnhanceIcon,{wrapperClassName:G.default.send_icon,className:(0,I.getIcon)("send-solid"),onClick:M})))),[H,W,E,F,R]),B=(0,o.useMemo)(()=>(0,g.isUndefined)(y)?"100%":y+"px",[y]);return o.default.createElement(I.TextArea,{ref:w,placeholder:s,wrapperStyle:{height:Y+"px",width:B},style:{height:Y-10+"px"},value:F,onKeyDown:T,onFocus:Q,onBlur:O,onValueChange:X,disabled:W,className:(0,a.default)(G.default.interactive_input_container,H?G.default.active:null,N),addonAfter:x})}),e.InteractiveInput.displayName="interactiveInput"},24951:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.HorizontalVertical=e.LineVertical=void 0;const a=t(85608).__importDefault(t(14041)),o={backgroundColor:"var(--editorGroup-border)",height:"100%",width:"1px",minWidth:"1px"},I={backgroundColor:"var(--editorGroup-border)",width:"100%",height:"1px",minHeight:"1px"},g=G=>a.default.createElement("span",{style:Object.assign(Object.assign({},o),G)});e.LineVertical=g;const u=G=>a.default.createElement("span",{style:Object.assign(Object.assign({},I),G)});e.HorizontalVertical=u},49716:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Loading=void 0;const n=t(85608),a=n.__importDefault(t(53373)),o=n.__importDefault(t(14041)),I=t(97267),g=n.__importDefault(t(43135));e.Loading=o.default.memo(u=>o.default.createElement(I.Icon,{className:(0,a.default)(u.className,g.default.loading_indicator),iconClass:(0,I.getIcon)("loading")})),e.Loading.displayName="Loading"},52141:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.EnhancePopover=void 0;const a=t(85608).__importStar(t(14041)),o=t(97267),I=t(43718),g=u=>{const{children:G,id:p,title:b,onClick:m}=u,[d,s]=a.default.useState(!1),l=(0,a.useMemo)(()=>p+(0,I.uuid)(6),[p]),r=(0,a.useCallback)(h=>{s(!1),m&&m(h)},[m]),c=(0,a.useCallback)(h=>{s(h)},[]);return a.default.createElement(o.Popover,{id:l,title:b,onClick:r,display:d,onDisplayChange:c},G)};e.EnhancePopover=g},75777:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Thumbs=void 0;const a=t(85608).__importStar(t(14041)),o=t(43718),I=t(95040),g=t(81878),u=t(48560),G=t(67304),p=t(57995),b=m=>{const d=(0,u.useInjectable)(I.IAIInlineChatService),{relationId:s,onClick:l,wrapperClassName:r}=m,[c,h]=(0,a.useState)("thumbs"),[v,f]=(0,a.useState)("thumbsdown"),W=(0,a.useCallback)(y=>{l&&l(y),d&&d.fireThumbsEvent(y)},[s,d]),N=(0,a.useCallback)(y=>{y==="up"&&c==="thumbs"&&(h("thumbs-fill"),f(!1),W(!0)),y==="up"&&c==="thumbs-fill"&&(h("thumbs"),f("thumbsdown")),y==="down"&&v==="thumbsdown"&&(f("thumbsdown-fill"),h(!1),W(!1)),y==="down"&&v==="thumbsdown-fill"&&(f("thumbsdown"),h("thumbs"))},[c,v]),Z=(0,u.useUUID)();return a.default.createElement(a.default.Fragment,null,typeof c=="string"&&a.default.createElement(g.Popover,{id:`ai-chat-thumbsup-${Z}`,title:(0,o.localize)("aiNative.inline.chat.operate.thumbsup.title")},a.default.createElement(p.EnhanceIcon,{wrapperClassName:r,onClick:()=>N("up"),className:(0,G.getExternalIcon)(c,G.KTICON_OWNER)})),typeof v=="string"&&a.default.createElement(g.Popover,{id:`ai-chat-thumbsdown-${Z}`,title:(0,o.localize)("aiNative.inline.chat.operate.thumbsdown.title")},a.default.createElement(p.EnhanceIcon,{wrapperClassName:r,onClick:()=>N("down"),className:(0,G.getExternalIcon)(v,G.KTICON_OWNER)})))};e.Thumbs=b},81878:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Scroll=e.Scrollbars=e.NativeSelect=void 0;const n=t(85608);n.__exportStar(t(97885),e),n.__exportStar(t(73215),e),n.__exportStar(t(32293),e);var a=t(77331);Object.defineProperty(e,"NativeSelect",{enumerable:!0,get:function(){return a.Select}}),n.__exportStar(t(48412),e),n.__exportStar(t(79383),e),n.__exportStar(t(50708),e),n.__exportStar(t(7273),e),n.__exportStar(t(14640),e),n.__exportStar(t(54076),e),n.__exportStar(t(79024),e),n.__exportStar(t(89832),e),n.__exportStar(t(54713),e),n.__exportStar(t(18875),e),n.__exportStar(t(91397),e),n.__exportStar(t(31059),e),n.__exportStar(t(72871),e),n.__exportStar(t(34128),e);var o=t(77011);Object.defineProperty(e,"Scrollbars",{enumerable:!0,get:function(){return o.Scrollbars}}),Object.defineProperty(e,"Scroll",{enumerable:!0,get:function(){return o.Scrollbars}})},57327:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BoxPanel=void 0;const n=t(85608),a=n.__importDefault(t(53373)),o=n.__importStar(t(14041)),I=t(48560),g=t(38578),u=t(55693),G=t(25719),p=n.__importDefault(t(91290)),b=m=>{var{className:d,children:s=[],direction:l="left-to-right"}=m,r=n.__rest(m,["className","children","direction"]);const c=o.default.Children.toArray(s),h=(0,I.useInjectable)(g.AppConfig),v=(0,u.useDesignStyles)(p.default["box-panel"],"box-panel");(0,o.useEffect)(()=>{h.didRendered&&h.didRendered()},[]);const f=G.Layout.getStyleProperties(l);return o.default.createElement("div",Object.assign({},r,{className:(0,a.default)(v,d),style:{flexDirection:f.direction,zIndex:r.zIndex||r["z-index"]}}),c.map((W,N)=>{const Z=W.props||{};return o.default.createElement("div",{key:N,id:Z["data-wrapper-id"],className:(0,a.default)(p.default.wrapper,Z["data-wrapper-class"]),style:{flex:Z.flex,overflow:Z.overflow,zIndex:Z.zIndex||Z["z-index"],[f.minSize]:Z.defaultSize,backgroundColor:Z.backgroundColor}},W)}))};e.BoxPanel=b},28003:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ToolbarActionBasedLayout=e.DefaultLayout=e.getStorageValue=void 0;const a=t(85608).__importDefault(t(14041)),o=t(52564),I=t(57327),g=t(99333),u=()=>{let p={},b={};try{p=JSON.parse(localStorage.getItem("layout")||"{}"),b=JSON.parse(localStorage.getItem("theme")||"{}")}catch{}return{layout:p,colors:b}};e.getStorageValue=u,e.DefaultLayout=G;function G(p={}){var b,m,d,s,l;const{layout:r}=(0,e.getStorageValue)();return a.default.createElement(I.BoxPanel,{direction:"top-to-bottom"},a.default.createElement(o.SlotRenderer,{id:"top",defaultSize:p.topSlotDefaultSize||0,slot:"top",zIndex:p.topSlotZIndex}),a.default.createElement(g.SplitPanel,{id:"main-horizontal",flex:1},a.default.createElement(o.SlotRenderer,{slot:"left",isTabbar:!0,defaultSize:!((b=r.left)===null||b===void 0)&&b.currentId?((m=r.left)===null||m===void 0?void 0:m.size)||310:49,minResize:280,maxResize:480,minSize:49}),a.default.createElement(g.SplitPanel,{id:"main-vertical",minResize:300,flexGrow:1,direction:"top-to-bottom"},a.default.createElement(o.SlotRenderer,{flex:2,flexGrow:1,minResize:200,slot:"main"}),a.default.createElement(o.SlotRenderer,{flex:1,defaultSize:(d=r.bottom)===null||d===void 0?void 0:d.size,minResize:160,slot:"bottom",isTabbar:!0})),a.default.createElement(o.SlotRenderer,{slot:"right",isTabbar:!0,defaultSize:!((s=r.right)===null||s===void 0)&&s.currentId?((l=r.right)===null||l===void 0?void 0:l.size)||310:0,minResize:280,maxResize:480,minSize:0})),a.default.createElement(o.SlotRenderer,{id:"statusBar",defaultSize:24,slot:"statusBar"}))}e.ToolbarActionBasedLayout=G},32293:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});const n=t(85608);n.__exportStar(t(25719),e),n.__exportStar(t(99333),e),n.__exportStar(t(57327),e),n.__exportStar(t(28003),e)},25719:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Layout=void 0;const n=t(73215),a={"left-to-right":{direction:"row",size:"width",domSize:"clientHeight",minSize:"minWidth",maxSize:"maxWidth"},"right-to-left":{direction:"row-reverse",size:"width",domSize:"clientHeight",minSize:"minWidth",maxSize:"maxWidth"},"top-to-bottom":{direction:"column",size:"height",domSize:"clientWidth",minSize:"minHeight",maxSize:"maxHeight"},"bottom-to-top":{direction:"column-reverse",size:"height",domSize:"clientWidth",minSize:"minHeight",maxSize:"maxHeight"}};var o;(function(I){function g(l){return a[l]}I.getStyleProperties=g;function u(l){return a[l].direction}I.getFlexDirection=u;function G(l){return a[l].size}I.getSizeProperty=G;function p(l){return a[l].domSize}I.getDomSizeProperty=p;function b(l){return a[l].minSize}I.getMinSizeProperty=b;function m(l){return a[l].maxSize}I.getMaxSizeProperty=m;function d(l){return l==="bottom-to-top"||l==="top-to-bottom"?n.ResizeHandleVertical:n.ResizeHandleHorizontal}I.getResizeHandle=d;function s(l){return l==="bottom-to-top"||l==="top-to-bottom"?"row":"column"}I.getTabbarDirection=s})(o=e.Layout||(e.Layout={}))},99333:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SplitPanel=e.PanelContext=void 0;const n=t(85608),a=n.__importDefault(t(53373)),o=n.__importDefault(t(14041)),I=t(43718),g=t(68456),u=t(48560),G=t(73215),p=t(25719),b=t(71707),m=n.__importDefault(t(91290));e.PanelContext=o.default.createContext({setSize:(r,c)=>{},setRelativeSize:(r,c,h)=>{},getSize:r=>0,getRelativeSize:r=>[0,0],lockSize:(r,c)=>{},setMaxSize:(r,c)=>{},hidePanel:r=>{}});const d=(r,c,h)=>{var v,f;return(f=r&&r.props&&((v=r.props[c])!==null&&v!==void 0?v:r.props[`data-sp-${c}`]))!==null&&f!==void 0?f:h};function s(r,c){return d(r,"savedSize")?d(r,"savedSize")+"px":d(r,"defaultSize")!==void 0?d(r,"defaultSize")+"px":d(r,"flex")?d(r,"flex")/c*100+"%":1/c*100+"%"}const l=r=>{const c=(0,u.useInjectable)(b.SplitPanelManager).getService(r.id),{id:h,className:v,resizeHandleClassName:f,style:W,children:N=[],direction:Z="left-to-right",resizeKeep:y=!0,dynamicTarget:E}=o.default.useMemo(()=>c.interceptProps(r),[c,c.interceptProps,r]),R=p.Layout.getResizeHandle(Z),A=p.Layout.getStyleProperties(Z),w=o.default.useMemo(()=>o.default.Children.toArray(N),[N]),F=o.default.useMemo(()=>w.find(pe=>d(pe,"flexGrow")),[w]),V=o.default.useMemo(()=>w.reduce((pe,ge)=>pe+d(ge,"flex",1),0),[w]),Y=o.default.useRef([]),_=(0,u.useInjectable)(I.IEventBus),H=o.default.useRef(),S=o.default.useRef(w.map(()=>!1)),X=o.default.useRef(w.map(()=>!1)),Q=o.default.useRef(S.current.slice(0,w.length-1)),[O,M]=o.default.useState(Q.current),[T,x]=o.default.useState(X.current),[B,D]=o.default.useState(S.current);c.panels=[];const J=o.default.useCallback(pe=>(ge,$)=>{const le=$?pe-1:pe,te=Y.current[le];te&&te.setAbsoluteSize(ge!==void 0?ge:d(w[pe],"defaultSize"),$,y)},[Y.current]),k=o.default.useCallback(pe=>(ge,$,le)=>{const te=le?pe-1:pe,ue=Y.current[te];ue&&ue.setRelativeSize(ge,$)},[Y.current]),z=o.default.useCallback(pe=>ge=>{const $=ge?pe-1:pe,le=Y.current[$];return le?le.getAbsoluteSize(ge):0},[Y.current]),P=o.default.useCallback(pe=>ge=>{const $=ge?pe-1:pe,le=Y.current[$];return le?le.getRelativeSize():[0,0]},[Y.current]),U=o.default.useCallback(pe=>(ge,$)=>{const le=$?pe-1:pe,te=Q.current.map((ue,q)=>q===le?ge!==void 0?ge:!ue:ue);Q.current=te,M(te)},[Y.current]),oe=o.default.useCallback(pe=>ge=>{const $=S.current.map((le,te)=>te===pe?ge!==void 0?ge:!le:le);S.current=$,D($)},[Y.current]),se=o.default.useCallback(pe=>ge=>{const $=X.current.map((te,ue)=>ue===pe?ge!==void 0?!ge:!te:te);X.current=$;const le=d(w[pe],"slot")||d(w[pe],"id");le&&ae(le),x($)},[w,X.current]),ae=o.default.useCallback(pe=>{pe&&_.fire(new g.ResizeEvent({slotLocation:pe}))},[_]),he=o.default.useMemo(()=>w.map((pe,ge)=>{const $=[],le=d(pe,"minSize"),te=d(pe,"maxSize"),ue=d(pe,"flexGrow");if(ge!==0){const q=ge===1?w[ge-1]:w[ge];let j;ue?j=G.ResizeFlexMode.Prev:d(w[ge-1],"flexGrow")&&(j=G.ResizeFlexMode.Next),d(q,"noResize")||O[ge-1]||$.push(o.default.createElement(R,{className:f,onResize:()=>{const ne=d(w[ge-1],"slot")||d(w[ge-1],"id"),de=d(w[ge],"slot")||d(w[ge],"id");ae(ne),ae(de)},noColor:!0,findNextElement:E?ne=>c.getFirstResizablePanel(ge-1,ne):void 0,findPrevElement:E?ne=>c.getFirstResizablePanel(ge-1,ne,!0):void 0,key:`split-handle-${ge}`,delegate:ne=>{Y.current.push(ne)},flexMode:j}))}return $.push(o.default.createElement(e.PanelContext.Provider,{key:ge,value:{setSize:J(ge),getSize:z(ge),setRelativeSize:k(ge),getRelativeSize:P(ge),lockSize:U(ge),setMaxSize:oe(ge),hidePanel:se(ge)}},o.default.createElement("div",{"data-min-resize":d(pe,"minResize"),"data-max-resize":d(pe,"maxResize"),ref:q=>{q&&c.panels.indexOf(q)===-1&&c.panels.push(q)},id:d(pe,"id"),style:Object.assign(Object.assign(Object.assign(Object.assign({},d(pe,"flex")&&!d(pe,"savedSize")&&!F?{flex:d(pe,"flex")}:{[A.size]:s(pe,V)}),{[A.minSize]:le?le+"px":"-1px",[A.maxSize]:B[ge]&&te?te+"px":"unset"}),ue!==void 0?{flexGrow:ue}:{}),{display:T[ge]?"none":"block"})},pe))),$}).filter(Boolean),[N,w,f,E,Y.current,T,O]);return o.default.useEffect(()=>{H.current&&c.setRootNode(H.current);const pe=_.on(g.ResizeEvent,ge=>{ge.payload.slotLocation===h&&w.forEach($=>{ae(d($,"slot")||d($,"id"))})});return()=>{pe.dispose()}},[]),o.default.useMemo(()=>{const{minResize:pe,flexGrow:ge,minSize:$,maxSize:le,savedSize:te,defaultSize:ue,flex:q,noResize:j,slot:ie}=r,ne=n.__rest(r,["minResize","flexGrow","minSize","maxSize","savedSize","defaultSize","flex","noResize","slot"]);return delete ne.resizeHandleClassName,delete ne.dynamicTarget,delete ne.resizeKeep,delete ne.direction,c.renderSplitPanel(o.default.createElement("div",Object.assign({},ne,{ref:de=>H.current=de,className:(0,a.default)(m.default["split-panel"],v),style:Object.assign({flexDirection:A.direction},W),"data-min-resize":pe,"data-max-resize":le,"data-min-size":$,"data-max-size":le,"data-saved-size":te,"data-default-size":ue,"data-flex":q,"data-flex-grow":ge,"data-no-resize":j,"data-slot":ie})),he,ne)},[c,c.renderSplitPanel,he,H,W,r])};e.SplitPanel=l},71707:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SplitPanelManager=e.SplitPanelService=e.ISplitPanelService=void 0;const n=t(85608),a=n.__importDefault(t(14041)),o=t(76003),I=t(43718),g=t(73215);e.ISplitPanelService=Symbol("ISplitPanelService");let u=class extends I.Disposable{constructor(b){super(),this.panelId=b,this._whenReadyDeferred=new I.Deferred,this.panels=[]}get isVisible(){return this.rootNode&&this.rootNode.clientHeight>0||!1}get whenReady(){return this._whenReadyDeferred.promise}setRootNode(b){this.rootNode=b,this._whenReadyDeferred.resolve()}getFirstResizablePanel(b,m,d){if(d){if(m){for(let s=b;s>=0;s--)if(!this.panels[s].classList.contains(g.RESIZE_LOCK))return this.panels[s]}else for(let s=b;s>=0;s--)if(!this.panels[s].classList.contains(g.RESIZE_LOCK))return this.panels[s]}else if(m){for(let s=b+1;s<this.panels.length;s++)if(!this.panels[s].classList.contains(g.RESIZE_LOCK))return this.panels[s]}else for(let s=b+1;s<this.panels.length;s++)if(!this.panels[s].classList.contains(g.RESIZE_LOCK))return this.panels[s]}renderSplitPanel(b,m,d){return a.default.cloneElement(b,Object.assign(Object.assign({},d),b.props),m)}interceptProps(b){return b}};u=n.__decorate([(0,o.Injectable)({multiple:!0}),n.__metadata("design:paramtypes",[String])],u),e.SplitPanelService=u;let G=class{constructor(){this.services=new Map}getService(b){let m=this.services.get(b);return m||(m=this.injector.get(e.ISplitPanelService,[b]),this.services.set(b,m)),m}};n.__decorate([(0,o.Autowired)(o.INJECTOR_TOKEN),n.__metadata("design:type",o.Injector)],G.prototype,"injector",void 0),G=n.__decorate([(0,o.Injectable)()],G),e.SplitPanelManager=G},89897:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),t(85608).__exportStar(t(85266),e)},85266:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Loading=void 0;const a=t(85608).__importDefault(t(14041));t(18182);const o=()=>a.default.createElement("div",{className:"loading_indicator "});e.Loading=o,e.Loading.displayName="Loading"},97885:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});const a=t(85608).__importDefault(t(43144)),o=t(48560),I=({id:g,className:u,children:G})=>{const p=(0,o.usePortal)(g,u);return a.default.createPortal(G,p)};e.default=I},73215:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ResizeHandleVertical=e.ResizeHandleHorizontal=e.allowWebviewCatchMouseEvents=e.preventWebviewCatchMouseEvents=e.ResizeFlexMode=e.RESIZE_LOCK=void 0;const n=t(85608),a=n.__importDefault(t(53373)),o=n.__importDefault(t(14041)),I=n.__importDefault(t(57482));e.RESIZE_LOCK="resize-lock";var g;(function(m){m.Prev="prev",m.Next="next",m.Percentage="Percentage"})(g=e.ResizeFlexMode||(e.ResizeFlexMode={}));function u(){const m=document.getElementsByTagName("iframe"),d=document.getElementsByTagName("webview");for(const l of d)l.classList.add("none-pointer-event");for(const l of m)l.classList.add("none-pointer-event");const s=document.getElementsByClassName("shadow-root-host");for(const l of s)l?.classList.add("none-pointer-event")}e.preventWebviewCatchMouseEvents=u;function G(){const m=document.getElementsByTagName("iframe"),d=document.getElementsByTagName("webview");for(const l of d)l.classList.remove("none-pointer-event");for(const l of m)l.classList.remove("none-pointer-event");const s=document.getElementsByClassName("shadow-root-host");for(const l of s)l?.classList.remove("none-pointer-event")}e.allowWebviewCatchMouseEvents=G;const p=m=>{const d=o.default.useRef(),s=o.default.useRef(!1),l=o.default.useRef(0),r=o.default.useRef(0),c=o.default.useRef(0),h=o.default.useRef(),v=o.default.useRef(),f=o.default.useRef(),W=(H,S)=>{const X=d.current.parentElement.offsetWidth,Q=m.findPrevElement?m.findPrevElement():h.current,O=m.findNextElement?m.findNextElement():v.current;if(Q&&Q.classList.contains(e.RESIZE_LOCK)||O&&O.classList.contains(e.RESIZE_LOCK))return;const M=Number(Q?.dataset.minResize||0),T=Number(O?.dataset.minResize||0),x=Number(Q?.dataset.maxResize||0),B=Number(O?.dataset.maxResize||0);(M||T)&&(H*X<=M||S*X<=T)||(x||B)&&(H*X>=x||S*X>=B)||(O&&(O.style.width=S*100+"%"),Q&&(Q.style.width=H*100+"%"),m.onResize&&O&&Q&&m.onResize(Q,O))},N=(H,S,X,Q)=>{var O,M;const T=m.findPrevElement?m.findPrevElement(Q):h.current,x=m.findNextElement?m.findNextElement(Q):v.current,B=Number((O=T?.dataset.minResize)!==null&&O!==void 0?O:0),D=Number((M=x?.dataset.minResize)!==null&&M!==void 0?M:0),J=T?.dataset.maxResize?Number(T?.dataset.maxResize):null,k=x?.dataset.maxResize?Number(x?.dataset.maxResize):null,z=m.flexMode===g.Prev,P=z?T:x,U=z?x:T;let oe=z?H:S;X||((B||D)&&(z?B>H?oe=B:D>S&&(oe=H+S-D):D>S?oe=D:B>H&&(oe=H+S-B)),(J||k)&&(z?J&&J<=H?oe=J:k&&k>S&&(oe=H+S-k):k&&k<=S?oe=k:J&&J>S&&(oe=H+S-J))),P.style.width=oe+"px",P.style.flexGrow="0",P.style.flexShrink="1",U.style.width="0",U.style.flexGrow="1",U.style.flexShrink="0",m.onResize&&x&&T&&m.onResize(T,x)},Z=(H,S)=>{const X=h.current,Q=v.current;let O;m.flexMode?O=(X.offsetWidth+Q.offsetWidth)/X.parentElement.offsetWidth*100:O=+v.current.style.width.replace("%","")+ +h.current.style.width.replace("%",""),Q&&(Q.style.width=S/(H+S)*O+"%"),X&&(X.style.width=H/(H+S)*O+"%"),y(H,S),m.onResize&&Q&&X&&m.onResize(X,Q)},y=(H,S)=>{const X=h.current,Q=v.current;let O=!1;X&&(H===0?(X.classList.add("kt_display_none"),O=!0):X.classList.remove("kt_display_none")),Q&&(S===0?(Q.classList.add("kt_display_none"),O=!0):Q.classList.remove("kt_display_none")),d.current&&(O?d.current.classList.add("none-pointer-event"):d.current.classList.remove("none-pointer-event"))},E=()=>{const H=h.current.clientWidth,S=v.current.clientWidth,X=H+S,Q=[];return Q.push(H/X),Q.push(S/X),Q},R=(H,S)=>{const X=h.current.clientWidth,Q=v.current.clientWidth,O=X+Q;if(m.flexMode){const M=m.flexMode===g.Prev?H:O-H,T=m.flexMode===g.Next?H:O-H;N(M,T,!0)}else{const M=+v.current.style.width.replace("%","")+ +h.current.style.width.replace("%","");S?(v.current.style.width=M*(H/O)+"%",h.current.style.width=M*(1-H/O)+"%"):(h.current.style.width=M*(H/O)+"%",v.current.style.width=M*(1-H/O)+"%")}S?y(O-H,H):y(H,O-H),m.onResize&&m.onResize(h.current,v.current)},A=H=>H?v.current.clientWidth:h.current.clientWidth,w=H=>{const S=H.classList,X=I.default["resize-overflow-hidden"];S?.contains(X)||S.add(X)},F=H=>{const S=H.classList,X=I.default["resize-overflow-hidden"];S?.contains(X)&&S.remove(X)},V=H=>{if(H.preventDefault(),d.current&&d.current.classList.contains("no-resize"))return;const S=r.current+H.pageX-l.current,X=c.current-(H.pageX-l.current);f.current&&window.cancelAnimationFrame(f.current);const Q=d.current.parentElement.offsetWidth;f.current=window.requestAnimationFrame(()=>{m.flexMode?N(S,X):W(S/Q,X/Q)})},Y=H=>{var S;s.current=!1,(S=d.current)===null||S===void 0||S.classList.remove(I.default.active),document.removeEventListener("mousemove",V),document.removeEventListener("mouseup",Y),F(h.current),F(v.current),m.onFinished&&m.onFinished(),G()},_=H=>{var S;s.current=!0,(S=d.current)===null||S===void 0||S.classList.add(I.default.active),document.addEventListener("mousemove",V),document.addEventListener("mouseup",Y),l.current=H.pageX,r.current=h.current.offsetWidth,c.current=v.current.offsetWidth,w(h.current),w(v.current),u()};return o.default.useEffect(()=>(d.current&&(d.current.addEventListener("mousedown",_),h.current=d.current.previousSibling,v.current=d.current.nextSibling),()=>{d.current&&(d.current.removeEventListener("mousedown",_),d.current.removeEventListener("mousemove",V),d.current.removeEventListener("mouseup",Y))}),[]),m.delegate&&m.delegate({setSize:W,setAbsoluteSize:R,getAbsoluteSize:A,setRelativeSize:Z,getRelativeSize:E}),o.default.createElement("div",{ref:H=>{d.current=H},className:(0,a.default)({[I.default["resize-handle-horizontal"]]:!0,[I.default["with-color"]]:!m.noColor,[m.className||""]:!0})})};e.ResizeHandleHorizontal=p;const b=m=>{const d=o.default.useRef(),s=o.default.useRef(!1),l=o.default.useRef(0),r=o.default.useRef(0),c=o.default.useRef(0),h=o.default.useRef(),v=o.default.useRef(),f=o.default.useRef(),W=o.default.useRef(),N=o.default.useRef(),Z=(S,X,Q)=>{const O=m.findPrevElement?m.findPrevElement(Q):h.current,M=m.findNextElement?m.findNextElement(Q):v.current;!M||!O||O.classList.contains(e.RESIZE_LOCK)||M.classList.contains(e.RESIZE_LOCK)||(M.style.height=X*100+"%",O.style.height=S*100+"%",m.onResize&&m.onResize(O,M))},y=(S,X,Q,O)=>{var M,T;const x=m.findPrevElement?m.findPrevElement(O):h.current,B=m.findNextElement?m.findNextElement(O):v.current;let D,J,k=0;const z=Number(((M=x?.dataset)===null||M===void 0?void 0:M.minResize)||0),P=Number(((T=B?.dataset)===null||T===void 0?void 0:T.minResize)||0);m.flexMode===g.Prev?(D=x,J=B,k=S,Q||(z>S?k=z:P>X&&(k=S+X-P))):(D=B,J=x,k=X,Q||(P>X?k=P:z>S&&(k=S+X-z))),D.style.height=k+"px",D.style.flexGrow="0",D.style.flexShrink="1",J.style.height="0",J.style.flexGrow="1",J.style.flexShrink="0",m.onResize&&B&&x&&m.onResize(x,B)},E=(S,X)=>{const Q=h.current,O=v.current;let M;m.flexMode?M=(Q.offsetHeight+O.offsetHeight)/Q.parentElement.offsetHeight*100:M=+O.style.height.replace("%","")+ +Q.style.height.replace("%",""),O&&(O.style.height=X/(S+X)*M+"%"),Q&&(Q.style.height=S/(S+X)*M+"%"),R(S,X),m.onResize&&O&&Q&&m.onResize(Q,O)},R=(S,X)=>{const Q=h.current,O=v.current;let M=!1;Q&&(S===0?(Q.classList.add("kt_display_none"),M=!0):Q.classList.remove("kt_display_none")),O&&(X===0?(O.classList.add("kt_display_none"),M=!0):O.classList.remove("kt_display_none")),d.current&&(M?d.current.classList.add("none-pointer-event"):d.current.classList.remove("none-pointer-event"))},A=()=>{const S=h.current.clientHeight,X=v.current.clientHeight,Q=S+X,O=[];return O.push(S/Q),O.push(X/Q),O},w=(S,X,Q,O)=>{Q.classList.contains(e.RESIZE_LOCK)||O.classList.contains(e.RESIZE_LOCK)||(O.style.height=X+"px",Q.style.height=S+"px",O.style.flex="unset",Q.style.flex="unset",m.onResize&&O&&Q&&m.onResize(Q,O))},F=(S,X,Q)=>{const O=h.current.clientHeight,M=v.current.clientHeight,T=O+M;if(m.flexMode){const x=m.flexMode===g.Prev?S:T-S,B=m.flexMode===g.Next?S:T-S;y(x,B,!0)}else{const x=+v.current.style.height.replace(/\%|px/,""),B=+h.current.style.height.replace(/\%|px/,""),D=x+B;if(X){Q&&(h.current.style.height=D*(1-S/T)+"%");const J=D*(S/T);v.current.style.height=J===0?J+"px":J+"%"}else h.current.style.height=D*(S/T)+"%",Q&&(v.current.style.height=D*(1-S/T)+"%")}X?R(T-S,S):R(S,T-S),m.onResize&&m.onResize(h.current,v.current)},V=S=>S?v.current.clientHeight:h.current.clientHeight,Y=S=>{var X;s.current=!0,(X=d.current)===null||X===void 0||X.classList.add(I.default.active),document.addEventListener("mousemove",_),document.addEventListener("mouseup",H),l.current=S.pageY,W.current=v.current,f.current=h.current,r.current=h.current.offsetHeight,c.current=v.current.offsetHeight,u()},_=S=>{if(S.preventDefault(),d.current&&d.current.classList.contains("no-resize"))return;const X=S.pageY>l.current,Q=m.findNextElement?m.findNextElement(X):null,O=m.findPrevElement?m.findPrevElement(X):null;if(Q!==null&&W.current!==Q||O!==null&&f.current!==O){if(!Q||!O)return;W.current=Q,f.current=O,l.current=S.pageY,r.current=f.current.offsetHeight,c.current=W.current.offsetHeight}const M=r.current+S.pageY-l.current,T=c.current-(S.pageY-l.current);N.current&&window.cancelAnimationFrame(N.current),N.current=window.requestAnimationFrame(()=>{const x=Number(f.current.dataset.minResize||0),B=Number(W.current.dataset.minResize||0);if(!((x||B)&&(M<=x||T<=B)))if(m.flexMode===g.Prev||m.flexMode===g.Next)y(M,T);else if(m.flexMode===g.Percentage){const D=d.current.parentElement.offsetHeight;Z(M/D,T/D)}else w(M,T,f.current,W.current)})},H=S=>{var X;s.current=!1,(X=d.current)===null||X===void 0||X.classList.remove(I.default.active),document.removeEventListener("mousemove",_),document.removeEventListener("mouseup",H),m.onFinished&&m.onFinished(),G()};return o.default.useEffect(()=>(d.current.addEventListener("mousedown",Y),h.current=d.current.previousSibling,v.current=d.current.nextSibling,()=>{d.current.removeEventListener("mousedown",Y),document.removeEventListener("mousemove",_),document.removeEventListener("mouseup",H)}),[]),m.delegate&&m.delegate({setSize:Z,setAbsoluteSize:F,getAbsoluteSize:V,setRelativeSize:E,getRelativeSize:A}),o.default.createElement("div",{ref:S=>S&&(d.current=S),className:(0,a.default)({[I.default["resize-handle-vertical"]]:!0,[m.className||""]:!0,[I.default["with-color"]]:!m.noColor})})};e.ResizeHandleVertical=b},77331:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Select=void 0;const n=t(85608),a=n.__importDefault(t(53373)),o=n.__importDefault(t(14041));n.__exportStar(t(88706),e);const I=g=>(g=Object.assign(Object.assign({},g),{className:(0,a.default)("kt_select",g.className)}),o.default.createElement("select",Object.assign({},g)));e.Select=I},53736:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ContextKeyChangeEvent=e.IContextKeyService=void 0;const n=t(43718);e.IContextKeyService=Symbol("IContextKeyService");class a extends n.BasicEvent{}e.ContextKeyChangeEvent=a},50394:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.InlineInputWidgetIsVisible=e.InlineHintWidgetIsVisible=e.InlineCompletionIsTrigger=e.InlineChatIsVisible=void 0;const n=t(40191);e.InlineChatIsVisible=new n.RawContextKey("ai.native.inlineChatIsVisible",!1),e.InlineCompletionIsTrigger=new n.RawContextKey("ai.native.inlineCompletionIsTrigger",!1),e.InlineHintWidgetIsVisible=new n.RawContextKey("ai.native.inlineHintWidgetIsVisible",!1),e.InlineInputWidgetIsVisible=new n.RawContextKey("ai.native.inlineInputWidgetIsVisible",!1)},20162:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DialogViewVisibleContext=void 0;const n=t(40191);e.DialogViewVisibleContext=new n.RawContextKey("dialogViewVisible",!1)},16413:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ExplorerCompressedLastFocusContext=e.ExplorerCompressedFirstFocusContext=e.ExplorerCompressedFocusContext=e.FilesExplorerFilteredContext=e.FilesExplorerInputFocusedContext=e.FilesExplorerFocusedContext=e.ExplorerFilteredContext=e.ExplorerFocusedContext=e.ExplorerResourceCut=e.ExplorerViewletVisibleContext=e.ExplorerResourceIsFolderContext=void 0;const n=t(40191);e.ExplorerResourceIsFolderContext=new n.RawContextKey("explorerResourceIsFolder",!1),e.ExplorerViewletVisibleContext=new n.RawContextKey("explorerViewletVisible",!0),e.ExplorerResourceCut=new n.RawContextKey("explorerResourceCut",!1),e.ExplorerFocusedContext=new n.RawContextKey("explorerViewletFocus",!1),e.ExplorerFilteredContext=new n.RawContextKey("explorerViewletFilter",!1),e.FilesExplorerFocusedContext=new n.RawContextKey("filesExplorerFocus",!1),e.FilesExplorerInputFocusedContext=new n.RawContextKey("filesExplorerInputFocus",!1),e.FilesExplorerFilteredContext=new n.RawContextKey("filesExplorerFilteredContext",!1),e.ExplorerCompressedFocusContext=new n.RawContextKey("explorerViewletCompressedFocus",!1),e.ExplorerCompressedFirstFocusContext=new n.RawContextKey("explorerViewletCompressedFirstFocus",!1),e.ExplorerCompressedLastFocusContext=new n.RawContextKey("explorerViewletCompressedLastFocus",!1)},66e3:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});const n=t(85608);n.__exportStar(t(16413),e),n.__exportStar(t(91830),e),n.__exportStar(t(29906),e),n.__exportStar(t(96774),e),n.__exportStar(t(73537),e),n.__exportStar(t(20162),e)},379:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ShowExcludedFilesFilterContextKey=e.ShowActiveFileFilterContextKey=e.ShowInfoFilterContextKey=e.ShowWarningsFilterContextKey=e.ShowErrorsFilterContextKey=e.RelatedInformationFocusContextKey=e.MarkerViewFilterFocusContextKey=e.MarkerFocusContextKey=e.MarkersTreeVisibilityContextKey=void 0;const n=t(40191);e.MarkersTreeVisibilityContextKey=new n.RawContextKey("problemsVisibility",!1),e.MarkerFocusContextKey=new n.RawContextKey("problemFocus",!1),e.MarkerViewFilterFocusContextKey=new n.RawContextKey("problemsFilterFocus",!1),e.RelatedInformationFocusContextKey=new n.RawContextKey("relatedInformationFocus",!1),e.ShowErrorsFilterContextKey=new n.RawContextKey("problems.filter.errors",!0),e.ShowWarningsFilterContextKey=new n.RawContextKey("problems.filter.warnings",!0),e.ShowInfoFilterContextKey=new n.RawContextKey("problems.filter.info",!0),e.ShowActiveFileFilterContextKey=new n.RawContextKey("problems.filter.activeFile",!1),e.ShowExcludedFilesFilterContextKey=new n.RawContextKey("problems.filter.excludedFiles",!0)},96774:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.OutlineFollowCursorContext=e.OutlineSortTypeContext=void 0;const n=t(40191);e.OutlineSortTypeContext=new n.RawContextKey("outlineSortType",0),e.OutlineFollowCursorContext=new n.RawContextKey("outlineFollowCursor",!1)},91830:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ResourceContextKey=void 0;const n=t(43718),a=t(63214);class o{constructor(g,u=a.getLanguageIdFromMonaco,G="resource"){if(this.contextKeyService=g,this.languageResolver=u,!G)throw new Error("resource key prefix cannot be empty!");this.resourceScheme=this.contextKeyService.createKey(G+"Scheme",""),this.resourceFilename=this.contextKeyService.createKey(G+"Filename",""),this.resourceExtname=this.contextKeyService.createKey(G+"Extname",""),this.resourceLangId=this.contextKeyService.createKey(G+"LangId",""),this.resourceKey=this.contextKeyService.createKey(G,""),this.isFileSystemResource=this.contextKeyService.createKey("isFileSystem"+G.substr(0,1).toUpperCase()+G.substr(1),!1)}set(g){if(!g){this.reset();return}const u=this.resourceKey.get();g.isEqual(new n.URI(u))||(this.resourceScheme.set(g.scheme),this.resourceFilename.set(g.path.name+g.path.ext),this.resourceExtname.set(g.path.ext),this.resourceLangId.set(this.languageResolver(g)),this.resourceKey.set(g.toString()),this.isFileSystemResource.set(g.scheme===n.Schemes.file))}reset(){this.resourceScheme.set(""),this.resourceFilename.set(""),this.resourceExtname.set(""),this.resourceLangId.set(""),this.resourceKey.set(""),this.isFileSystemResource.set(!1)}}e.ResourceContextKey=o},67386:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.InTreeViewKey=e.ViewHasSomeCollapsibleKey=e.ViewHasFilePatternKey=e.ViewHasReplacePatternKey=e.ViewHasSearchPatternKey=e.MatchFocusKey=e.ResourceFolderFocusKey=e.FolderFocusKey=e.FileFocusKey=e.FileMatchOrFolderMatchWithResourceFocusKey=e.FileMatchOrFolderMatchFocusKey=e.FileMatchOrMatchFocusKey=e.FirstMatchFocusKey=e.ReplaceActiveKey=e.PatternExcludesFocusedKey=e.PatternIncludesFocusedKey=e.InputBoxFocusedKey=e.SearchViewVisibleKey=e.HasSearchResults=e.ReplaceInputBoxFocusedKey=e.SearchInputBoxFocusedKey=e.SearchViewFocusedKey=void 0;const n=t(40191);e.SearchViewFocusedKey=new n.RawContextKey("searchViewletFocus",!1),e.SearchInputBoxFocusedKey=new n.RawContextKey("searchInputBoxFocus",!1),e.ReplaceInputBoxFocusedKey=new n.RawContextKey("replaceInputBoxFocus",!1),e.HasSearchResults=new n.RawContextKey("hasSearchResult",!1),e.SearchViewVisibleKey=new n.RawContextKey("searchViewletVisible",!0),e.InputBoxFocusedKey=new n.RawContextKey("inputBoxFocus",!1),e.PatternIncludesFocusedKey=new n.RawContextKey("patternIncludesInputBoxFocus",!1),e.PatternExcludesFocusedKey=new n.RawContextKey("patternExcludesInputBoxFocus",!1),e.ReplaceActiveKey=new n.RawContextKey("replaceActive",!1),e.FirstMatchFocusKey=new n.RawContextKey("firstMatchFocus",!1),e.FileMatchOrMatchFocusKey=new n.RawContextKey("fileMatchOrMatchFocus",!1),e.FileMatchOrFolderMatchFocusKey=new n.RawContextKey("fileMatchOrFolderMatchFocus",!1),e.FileMatchOrFolderMatchWithResourceFocusKey=new n.RawContextKey("fileMatchOrFolderMatchWithResourceFocus",!1),e.FileFocusKey=new n.RawContextKey("fileMatchFocus",!1),e.FolderFocusKey=new n.RawContextKey("folderMatchFocus",!1),e.ResourceFolderFocusKey=new n.RawContextKey("folderMatchWithResourceFocus",!1),e.MatchFocusKey=new n.RawContextKey("matchFocus",!1),e.ViewHasSearchPatternKey=new n.RawContextKey("viewHasSearchPattern",!1),e.ViewHasReplacePatternKey=new n.RawContextKey("viewHasReplacePattern",!1),e.ViewHasFilePatternKey=new n.RawContextKey("viewHasFilePattern",!1),e.ViewHasSomeCollapsibleKey=new n.RawContextKey("viewHasSomeCollapsibleResult",!1),e.InTreeViewKey=new n.RawContextKey("inTreeView",!1)},29906:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ShellExecutionSupported=e.IsTerminalFocused=e.IsTerminalViewInitialized=void 0;const n=t(40191);e.IsTerminalViewInitialized=new n.RawContextKey("isTerminalViewInitialized",!1),e.IsTerminalFocused=new n.RawContextKey("isTerminalFocused",!1),e.ShellExecutionSupported=new n.RawContextKey("shellExecutionSupported",!0)},12288:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.TestingCanRefreshTests=e.TestingIsPeekVisible=e.TestingIsInPeek=e.TestingIsRunning=e.TestingHasAnyResults=e.TestingServiceHasDebuggableContextKey=e.TestingServiceProviderCount=void 0;const n=t(40191);e.TestingServiceProviderCount=new n.RawContextKey("service.testing.providerCount",0),e.TestingServiceHasDebuggableContextKey=new n.RawContextKey("service.testing.hasDebuggableContext",!1),e.TestingHasAnyResults=new n.RawContextKey("testing.hasAnyResults",!1),e.TestingIsRunning=new n.RawContextKey("testing.isRunning",!1),e.TestingIsInPeek=new n.RawContextKey("testing.isInPeek",!0),e.TestingIsPeekVisible=new n.RawContextKey("testing.isPeekVisible",!1),e.TestingCanRefreshTests=new n.RawContextKey("testing.canRefresh",!1)},73537:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.WorkspaceFolderCount=e.WorkbenchState=void 0;const n=t(40191);e.WorkbenchState=new n.RawContextKey("workbenchState","empty"),e.WorkspaceFolderCount=new n.RawContextKey("workspaceFolderCount",0)},18193:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.injectCorePreferences=e.CorePreferences=e.corePreferenceSchema=e.FILE_TREE_DEFAULTS=e.FILES_DEFAULTS=void 0;const n=t(43718),a=t(69734),o=t(78132),I={confirmDelete:!0,confirmMove:!0};e.FILES_DEFAULTS={filesWatcherExclude:{"**/.git/objects/**":!0,"**/.git/subtree-cache/**":!0,"**/node_modules/**/*":!0,"**/.hg/store/**":!0},filesExclude:{"**/.git":!0,"**/.svn":!0,"**/.hg":!0,"**/CVS":!0,"**/.DS_Store":!0}},e.FILE_TREE_DEFAULTS={baseIndent:10,indent:8},e.corePreferenceSchema={type:"object",properties:{"general.language":{type:"string",enum:(0,n.getAvailableLanguages)().map(u=>u.languageId),default:a.LOCALE_TYPES.EN_US},"general.theme":{type:"string",default:"vs-dark",enum:[]},"general.askReloadOnLanguageChange":{type:"boolean",default:!0,description:"%preference.description.general.askReloadOnLanguageChange%"},"general.icon":{type:"string",default:"vs-minimal",enum:[]},"general.productIconTheme":{type:"string",default:"opensumi-icons",enum:["opensumi-icons"]},"workbench.colorCustomizations":{type:"object",description:"%preference.workbench.colorCustomizations%",default:{}},"application.supportsOpenFolder":{type:"boolean",default:!1,description:"Whether default open folder behavior is supported"},"application.supportsOpenWorkspace":{type:"boolean",default:!1,description:"Whether default open workspace behavior is supported"},"application.confirmExit":{type:"string",enum:["never","ifRequired","always"],default:"always",description:"When to confirm before closing the application window."},"application.preferMarkdownPreview":{type:"boolean",default:!1,description:"Use markdown preview first"},"application.invalidExthostReload":{type:"string",enum:["ifRequired","always"],default:"ifRequired",description:"Reload strategy when exthost process became invalid."},"workbench.list.openMode":{type:"string",enum:["singleClick","doubleClick"],default:"singleClick",description:"%preference.workbench.list.openMode%"},"workbench.commandPalette.history":{type:"number",default:50,minimum:0,description:"Controls the number of recently used commands to keep in history for the command palette. Set to 0 to disable command history."},"workbench.refactoringChanges.showPreviewStrategy":{type:"string",default:"askMe",enum:["show","hide","askMe"],description:"%preference.workbench.refactoringChanges.showPreviewStrategy%"},"workbench.quickOpen.preserveInput":{type:"boolean",default:!0,description:"%workbench.quickOpen.preserveInput%"},"workbench.hideSlotTabBarWhenHidePanel":{type:"boolean",default:!1,description:"%workbench.hideSlotTabBarWhenHidePanel%"},"explorer.confirmMove":{type:"boolean",default:I.confirmDelete,description:"%preference.explorer.confirm.move%"},"explorer.confirmDelete":{type:"boolean",default:I.confirmMove,description:"%preference.explorer.confirm.delete%"},"explorer.fileTree.baseIndent":{type:"number",default:e.FILE_TREE_DEFAULTS.baseIndent},"explorer.fileTree.indent":{type:"number",default:e.FILE_TREE_DEFAULTS.indent},"explorer.compactFolders":{type:"boolean",description:"%preference.explorer.compactFolders%",default:!0},"explorer.autoReveal":{type:"boolean",default:!0},"debug.toolbar.float":{type:"boolean",default:!0},"debug.breakpoint.editorHint":{type:"boolean",default:!0,description:"%preference.debug.breakpoint.editorHint%"},"debug.breakpoint.showBreakpointsInOverviewRuler":{type:"boolean",default:!1,description:"%preference.debug.breakpoint.showBreakpointsInOverviewRuler%"},"debug.toolbar.top":{type:"number",default:0,description:"%preference.debug.toolbar.top%"},"debug.toolbar.height":{type:"number",default:30,description:"%preference.debug.toolbar.height%"},"debug.console.filter.mode":{type:"string",enum:["filter","matcher"],default:"filter"},"files.exclude":{type:"object",description:"%preference.files.exclude%",default:e.FILES_DEFAULTS.filesExclude,additionalProperties:{anyOf:[{type:"boolean",description:(0,n.localize)("files.exclude.boolean","The glob pattern to match file paths against. Set to true or false to enable or disable the pattern.")}]}},"files.watcherExclude":{type:"object",default:e.FILES_DEFAULTS.filesWatcherExclude,description:"%preference.files.watcherExclude%"},"files.associations":{type:"object",markdownDescription:"%preference.files.associations%"},"files.encoding":{type:"string",description:"%preference.files.encoding%",default:"utf8",enum:Object.keys(n.SUPPORTED_ENCODINGS)},"files.eol":{type:"string",enum:[`
|
|
27646
27646
|
`,`\r
|
|
27647
27647
|
`,"auto"],default:"auto"},"files.trimFinalNewlines":{type:"boolean",default:!1},"files.trimTrailingWhitespace":{type:"boolean",default:!1},"files.insertFinalNewline":{type:"boolean",default:!1},"files.autoGuessEncoding":{type:"boolean",default:!1,description:"%preference.files.autoGuessEncoding%",included:Object.keys(n.SUPPORTED_ENCODINGS).length>1},"settings.userBeforeWorkspace":{type:"boolean",default:!1,description:"%settings.configuration.userBeforeWorkspace%"},"output.maxChannelLine":{type:"number",default:5e4,description:"%output.maxChannelLineDesc%"},"output.enableLogHighlight":{type:"boolean",default:!0,description:"%output.enableLogHighlightDesc%"},"output.enableSmartScroll":{type:"boolean",default:!0,description:"%output.enableSmartScrollDesc%"},"debug.inline.values":{type:"boolean",default:!1},"debug.console.wordWrap":{type:"boolean",default:!0},"toolbar.ignoreActions":{type:"object",patternProperties:{".*":{type:"array",items:[{type:"string"}]}},description:"%preference.toolbar.ignoreActions%"},"toolbar.buttonDisplay":{type:"string",enum:["icon","iconAndText"],default:"iconAndText",description:"%preference.toolbar.buttonDisplay%"},"toolbar.buttonTitleStyle":{type:"string",enum:["vertical","horizontal"],default:"horizontal"},"view.saveLayoutWithWorkspace":{type:"boolean",default:!1},"menubar.compactMode":{type:"boolean",default:!1},"editor.codeActionWidget.showHeaders":{type:"boolean",default:!0}}},e.CorePreferences=Symbol("CorePreferences");function g(u){u.addProviders({token:e.CorePreferences,useFactory:G=>{const p=G.get(o.PreferenceService);return(0,o.createPreferenceProxy)(p,e.corePreferenceSchema)}})}e.injectCorePreferences=g},2758:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DesignStyleService=void 0;const n=t(85608),a=n.__importDefault(t(53373)),o=t(76003),I="design-";let g=class{get styles(){return this._styles}setStyles(G){this._styles=G}wrapStyles(G,p){return this._styles?G?(0,a.default)(G,this._styles[I+p]):"":G||""}};g=n.__decorate([(0,o.Injectable)()],g),e.DesignStyleService=g},80832:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});const n=t(85608);n.__exportStar(t(2758),e),n.__exportStar(t(66597),e),n.__exportStar(t(68576),e)},68576:(L,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.StackingLevelStr=e.StackingLevel=void 0,e.StackingLevel={Base:0,Background:0,Workbench:1,WorkbenchEditor:1,Toolbar:2,XtermDecoration:8,ToolbarDropdown:10,ResizeHandle:12,EditorFloatingContainer:20,Popup:100,PopoverComponent:1e3,PopoverComponentArrow:1001,Overlay:800,OverlayTop:1e3},e.StackingLevelStr=Object.fromEntries(Object.entries(e.StackingLevel).map(([t,n])=>[t,n.toString()]))},66597:(L,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.IDesignStyleService=void 0,e.IDesignStyleService=Symbol("IDesignStyleService")},4246:(L,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.withPrevented=void 0;function t(n){return a=>{a.preventDefault(),a.stopPropagation(),n&&n(a)}}e.withPrevented=t},22366:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.trackFocus=e.FocusTracker=e.addDisposableListener=e.DomListener=e.isAncestor=e.EventType=void 0;const n=t(85608),a=t(43718);n.__exportStar(t(4246),e),e.EventType={CLICK:"click",DBLCLICK:"dblclick",MOUSE_UP:"mouseup",MOUSE_DOWN:"mousedown",MOUSE_OVER:"mouseover",MOUSE_MOVE:"mousemove",MOUSE_OUT:"mouseout",MOUSE_ENTER:"mouseenter",MOUSE_LEAVE:"mouseleave",CONTEXT_MENU:"contextmenu",WHEEL:"wheel",KEY_DOWN:"keydown",KEY_PRESS:"keypress",KEY_UP:"keyup",LOAD:"load",UNLOAD:"unload",ABORT:"abort",ERROR:"error",RESIZE:"resize",SCROLL:"scroll",FULLSCREEN_CHANGE:"fullscreenchange",WK_FULLSCREEN_CHANGE:"webkitfullscreenchange",SELECT:"select",CHANGE:"change",SUBMIT:"submit",RESET:"reset",FOCUS:"focus",FOCUS_IN:"focusin",FOCUS_OUT:"focusout",BLUR:"blur",INPUT:"input",STORAGE:"storage",DRAG_START:"dragstart",DRAG:"drag",DRAG_ENTER:"dragenter",DRAG_LEAVE:"dragleave",DRAG_OVER:"dragover",DROP:"drop",DRAG_END:"dragend",ANIMATION_START:a.isWebKit?"webkitAnimationStart":"animationstart",ANIMATION_END:a.isWebKit?"webkitAnimationEnd":"animationend",ANIMATION_ITERATION:a.isWebKit?"webkitAnimationIteration":"animationiteration"};function o(p,b){for(;p;){if(p===b)return!0;p=p.parentNode}return!1}e.isAncestor=o;class I{constructor(b,m,d,s){this._node=b,this._type=m,this._handler=d,this._useCapture=s||!1,this._node.addEventListener(this._type,this._handler,this._useCapture)}dispose(){this._handler&&(this._node.removeEventListener(this._type,this._handler,this._useCapture),this._node=null,this._handler=null)}}e.DomListener=I;function g(p,b,m,d){return new I(p,b,m,d)}e.addDisposableListener=g;class u extends a.Disposable{constructor(b){super(),this.didFocus=new a.Emitter,this.onDidFocus=this.didFocus.event,this.didBlur=new a.Emitter,this.onDidBlur=this.didBlur.event;let m=o(document.activeElement,b),d=!1;const s=()=>{d=!1,m||(m=!0,this.didFocus.fire())},l=()=>{m&&(d=!0,window.setTimeout(()=>{d&&(d=!1,m=!1,this.didBlur.fire())},0))};this.addDispose(this.didBlur),this.addDispose(this.didFocus),this.addDispose(new I(b,e.EventType.FOCUS,s,!0)),this.addDispose(new I(b,e.EventType.BLUR,l,!0))}}e.FocusTracker=u;function G(p){return new u(p)}e.trackFocus=G},5910:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.EncodingRegistry=void 0;const n=t(85608),a=t(76003),o=t(43718),I=t(78132),g=t(63214);let u=class{constructor(){this.encodingOverrides=[]}registerOverride(p){return this.encodingOverrides.push(p),o.Disposable.create(()=>{const b=this.encodingOverrides.indexOf(p);b!==-1&&this.encodingOverrides.splice(b,1)})}getEncodingForResource(p,b){let m;const d=this.getEncodingOverride(p);return d?m=d:b?m=b:m=this.preferenceService.get("files.encoding",void 0,p.toString(),(0,g.getLanguageIdFromMonaco)(p)||void 0)||"",!m||!(0,o.encodingExists)(m)?o.UTF8:m}getEncodingOverride(p){if(this.encodingOverrides&&this.encodingOverrides.length){for(const b of this.encodingOverrides)if(b.parent&&p.isEqualOrParent(b.parent)||b.extension&&p.path.ext===`.${b.extension}`||b.scheme&&b.scheme===p.scheme)return b.encoding}}};n.__decorate([(0,a.Autowired)(I.PreferenceService),n.__metadata("design:type",Object)],u.prototype,"preferenceService",void 0),u=n.__decorate([(0,a.Injectable)()],u),e.EncodingRegistry=u},12637:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ExtensionsPointServiceImpl=e.OPENSUMI_EXTENSION_JSON_URI=e.EXTENSION_JSON_URI=void 0;const n=t(85608),a=n.__importDefault(t(56757)),o=n.__importDefault(t(46123)),I=n.__importDefault(t(52103)),g=n.__importDefault(t(41263)),u=t(76003),G=t(22689),p=t(14790),b=t(96702);e.EXTENSION_JSON_URI="vscode://schemas/vscode-extensions",e.OPENSUMI_EXTENSION_JSON_URI="vscode://schemas/opensumi-extensions";let m=class{registerSchema(){this.schemaRegistry.registerSchema(e.OPENSUMI_EXTENSION_JSON_URI,p.OpenSumiExtensionPackageSchema,["package.json"]),this.schemaRegistry.registerSchema(e.EXTENSION_JSON_URI,b.VSCodeExtensionPackageSchema,["package.json"])}appendPropertiesFactory(s){const l=s==="opensumi"?p.OpenSumiExtensionPackageSchema.properties.sumiContributes.properties:b.VSCodeExtensionPackageSchema.properties.contributes.properties;return(r,c)=>{const{extensionPoint:h,jsonSchema:v}=c,f=r.concat(h).filter(Boolean);if((0,I.default)(l,f)){const W=(0,o.default)(l,f.concat("properties"));(0,a.default)(v.properties,W)}(0,g.default)(l,f,v)}}appendOpenSumiProperties(s,l){this.appendPropertiesFactory("opensumi")(s,l)}appendVScodeProperties(s,l){this.appendPropertiesFactory("vscode")(s,l)}appendExtensionPoint(s,l){if(!l)return;const{frameworkKind:r=["vscode"]}=l;r.includes("opensumi")&&this.appendOpenSumiProperties(s,l),r.includes("vscode")&&this.appendVScodeProperties(s,l),this.registerSchema()}registerExtensionPoint(s){s&&this.appendExtensionPoint([],s)}};n.__decorate([(0,u.Autowired)(G.IJSONSchemaRegistry),n.__metadata("design:type",Object)],m.prototype,"schemaRegistry",void 0),m=n.__decorate([(0,u.Injectable)()],m),e.ExtensionsPointServiceImpl=m},23396:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});const n=t(85608);n.__exportStar(t(12637),e),n.__exportStar(t(96702),e),n.__exportStar(t(14790),e)},21634:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.browserViews=void 0;const n=t(43718);var a;(function(o){o.properties={type:"object",required:["type","view"],defaultSnippets:[{label:"type",bodyText:JSON.stringify({type:"${1:add}",view:[{id:"${2}"}]},null," ")}],properties:{type:{type:"string",enum:["add","replace"]},view:{type:"array",items:{type:"object",required:["id"],defaultSnippets:[{label:'{"id":""}',description:"",bodyText:JSON.stringify({id:"${3}"},null," ")}],properties:{id:{type:"string",description:(0,n.localize)("sumiContributes.browserViews.view.id")},icon:{type:"string",markdownDescription:(0,n.localize)("sumiContributes.browserViews.view.icon")},iconPath:{type:"string",description:(0,n.localize)("sumiContributes.browserViews.view.iconPath")},title:{type:"string",description:(0,n.localize)("sumiContributes.browserViews.view.title")},titleComponentId:{type:"string",description:(0,n.localize)("sumiContributes.browserViews.view.titleComponentId")},expanded:{type:"boolean",description:(0,n.localize)("sumiContributes.browserViews.view.expanded")}}}}}},o.schema={description:(0,n.localize)("sumiContributes.browserViews"),type:"object",properties:{left:Object.assign(Object.assign({},o.properties),{description:(0,n.localize)("sumiContributes.browserViews.left")}),right:Object.assign(Object.assign({},o.properties),{description:(0,n.localize)("sumiContributes.browserViews.right")}),bottom:Object.assign(Object.assign({},o.properties),{description:(0,n.localize)("sumiContributes.browserViews.bottom")})}}})(a=e.browserViews||(e.browserViews={}))},57559:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.menus=void 0;const n=t(43718),a=t(93899),o={type:"object",required:["command"],defaultSnippets:[{body:{command:"${1}"}}],properties:{command:{description:(0,n.localize)("sumiContributes.common.command"),type:"string"},when:{description:(0,n.localize)("sumiContributes.common.when"),type:"string"},group:{description:(0,n.localize)("sumiContributes.common.group"),type:"string"}}},I={type:"object",required:["id","title"],properties:{id:{description:(0,n.localize)("sumiContributes.submenus.id"),type:"string"},title:{description:(0,n.localize)("sumiContributes.submenus.title"),type:"string"},group:{description:(0,n.localize)("sumiContributes.common.group"),type:"string"},when:{type:"string",description:(0,n.localize)("sumiContributes.common.when")},icon:{description:(0,n.localize)("sumiContributes.submenus.icon"),anyOf:[{type:"string"},{type:"object",properties:{light:{description:(0,n.localize)("sumiContributes.submenus.icon.light"),type:"string"},dark:{description:(0,n.localize)("sumiContributes.submenus.dark"),type:"string"}}}]}}},g=[{id:a.MenuId.CommandPalette,description:(0,n.localize)("sumiContributes.menu.api.CommandPalette")},{id:a.MenuId.ActivityBarExtra,description:(0,n.localize)("sumiContributes.menu.api.ActivityBarExtra")},{id:a.MenuId.ActivityBarTopExtra,description:(0,n.localize)("sumiContributes.menu.api.ActivityBarTopExtra")},{id:a.MenuId.DebugBreakpointsContext,description:(0,n.localize)("sumiContributes.menu.api.DebugBreakpointsContext")},{id:a.MenuId.DebugCallStackContext,description:(0,n.localize)("sumiContributes.menu.api.DebugCallStackContext")},{id:a.MenuId.DebugConsoleContext,description:(0,n.localize)("sumiContributes.menu.api.DebugConsoleContext")},{id:a.MenuId.DebugVariablesContext,description:(0,n.localize)("sumiContributes.menu.api.DebugVariablesContext")},{id:a.MenuId.DebugWatchContext,description:(0,n.localize)("sumiContributes.menu.api.DebugWatchContext")},{id:a.MenuId.DebugToolBar,description:(0,n.localize)("sumiContributes.menu.api.DebugToolBar")},{id:a.MenuId.EditorContext,description:(0,n.localize)("sumiContributes.menu.api.EditorContext")},{id:a.MenuId.EditorTitle,description:(0,n.localize)("sumiContributes.menu.api.EditorTitle")},{id:a.MenuId.EditorTitleContext,description:(0,n.localize)("sumiContributes.menu.api.EditorTitleContext")},{id:a.MenuId.ExplorerContext,description:(0,n.localize)("sumiContributes.menu.api.ExplorerContext")},{id:a.MenuId.MenubarAppMenu,description:(0,n.localize)("sumiContributes.menu.api.MenubarAppMenu")},{id:a.MenuId.MenubarEditMenu,description:(0,n.localize)("sumiContributes.menu.api.MenubarEditMenu")},{id:a.MenuId.MenubarFileMenu,description:(0,n.localize)("sumiContributes.menu.api.MenubarFileMenu")},{id:a.MenuId.MenubarGoMenu,description:(0,n.localize)("sumiContributes.menu.api.MenubarGoMenu")},{id:a.MenuId.MenubarHelpMenu,description:(0,n.localize)("sumiContributes.menu.api.MenubarHelpMenu")},{id:a.MenuId.MenubarViewMenu,description:(0,n.localize)("sumiContributes.menu.api.MenubarViewMenu")},{id:a.MenuId.MenubarSelectionMenu,description:(0,n.localize)("sumiContributes.menu.api.MenubarSelectionMenu")},{id:a.MenuId.MenubarTerminalMenu,description:(0,n.localize)("sumiContributes.menu.api.MenubarTerminalMenu")},{id:a.MenuId.TerminalInstanceContext,description:(0,n.localize)("sumiContributes.menu.api.TerminalInstanceContext")},{id:a.MenuId.TerminalNewDropdownContext,description:(0,n.localize)("sumiContributes.menu.api.TerminalNewDropdownContext")},{id:a.MenuId.TerminalTabContext,description:(0,n.localize)("sumiContributes.menu.api.TerminalTabContext")},{id:a.MenuId.OpenEditorsContext,description:(0,n.localize)("sumiContributes.menu.api.OpenEditorsContext")},{id:a.MenuId.SCMResourceContext,description:(0,n.localize)("sumiContributes.menu.api.SCMResourceContext")},{id:a.MenuId.SCMResourceGroupContext,description:(0,n.localize)("sumiContributes.menu.api.SCMResourceGroupContext")},{id:a.MenuId.SCMResourceFolderContext,description:(0,n.localize)("sumiContributes.menu.api.SCMResourceFolderContext")},{id:a.MenuId.SCMTitle,description:(0,n.localize)("sumiContributes.menu.api.SCMTitle")},{id:a.MenuId.SCMInput,description:(0,n.localize)("sumiContributes.menu.api.SCMInput")},{id:a.MenuId.SearchContext,description:(0,n.localize)("sumiContributes.menu.api.SearchContext")},{id:a.MenuId.StatusBarContext,description:(0,n.localize)("sumiContributes.menu.api.StatusBarContext")},{id:a.MenuId.ViewItemContext,description:(0,n.localize)("sumiContributes.menu.api.ViewItemContext")},{id:a.MenuId.ViewTitle,description:(0,n.localize)("sumiContributes.menu.api.ViewTitle")},{id:a.MenuId.SettingsIconMenu,description:(0,n.localize)("sumiContributes.menu.api.SettingsIconMenu")}],u=(p,b,m)=>p.reduce((d,s)=>(d[b(s)]=m?m(s):s,d),Object.create(null));var G;(function(p){p.schema={description:(0,n.localize)("sumiContributes.menu"),type:"object",properties:u(g,b=>b.id,b=>({type:"array",description:b.description,items:o}))},p.subMenusSchema={description:(0,n.localize)("sumiContributes.submenus"),type:"object",additionalProperties:I}})(G=e.menus||(e.menus={}))},14790:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.OpenSumiExtensionPackageSchema=void 0;const n=t(43718);e.OpenSumiExtensionPackageSchema={properties:{sumiContributes:{description:(0,n.localize)("sumiContributes.contributes"),type:"object",properties:{},default:{}}}}},9905:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.toolbar=void 0;const n=t(43718),a=(u,G)=>`${JSON.stringify(u)}: ${G}`,o={type:"object",properties:{title:{type:"string",description:(0,n.localize)("sumiContributes.toolbar.actions.title")},iconPath:{type:"string",description:(0,n.localize)("sumiContributes.toolbar.actions.iconPath")},iconMaskMode:{type:"boolean",description:(0,n.localize)("sumiContributes.toolbar.actions.iconMaskMode")},width:{type:"number",description:(0,n.localize)("sumiContributes.toolbar.actions.button.states.width")},height:{type:"number",description:(0,n.localize)("sumiContributes.toolbar.actions.button.states.height")},showTitle:{type:"boolean",description:(0,n.localize)("sumiContributes.toolbar.actions.button.states.showTitle")},iconForeground:{type:"string",description:(0,n.localize)("sumiContributes.toolbar.actions.button.states.iconForeground")},iconBackground:{type:"string",description:(0,n.localize)("sumiContributes.toolbar.actions.button.states.iconBackground")},titleForeground:{type:"string",description:(0,n.localize)("sumiContributes.toolbar.actions.button.states.titleForeground")},titleBackground:{type:"string",description:(0,n.localize)("sumiContributes.toolbar.actions.button.states.titleBackground")},titleSize:{type:"string",description:(0,n.localize)("sumiContributes.toolbar.actions.button.states.titleSize")},iconSize:{type:"string",description:(0,n.localize)("sumiContributes.toolbar.actions.button.states.iconSize")},background:{type:"string",description:(0,n.localize)("sumiContributes.toolbar.actions.button.states.background")},btnStyle:{type:"string",description:(0,n.localize)("sumiContributes.toolbar.actions.button.states.btnStyle"),enum:["inline","button"]},btnTitleStyle:{type:"string",description:(0,n.localize)("sumiContributes.toolbar.actions.button.states.btnTitleStyle"),enum:["vertical","horizontal"],enumDescriptions:[(0,n.localize)("sumiContributes.toolbar.actions.button.states.btnTitleStyle.vertical"),(0,n.localize)("sumiContributes.toolbar.actions.button.states.btnTitleStyle.horizontal")]}}},I={type:"object",properties:{backgroundColor:{type:"string",description:(0,n.localize)("sumiContributes.toolbar.actions.select.states.backgroundColor")},labelForegroundColor:{type:"string",description:(0,n.localize)("sumiContributes.toolbar.actions.select.states.labelForegroundColor")},iconForegroundColor:{type:"string",description:(0,n.localize)("sumiContributes.toolbar.actions.select.states.iconForegroundColor")},width:{type:"number",description:(0,n.localize)("sumiContributes.toolbar.actions.select.states.width")},minWidth:{type:"number",description:(0,n.localize)("sumiContributes.toolbar.actions.select.states.minWidth")}}};var g;(function(u){u.schema={type:"object",description:(0,n.localize)("sumiContributes.toolbar"),properties:{actions:{type:"array",markdownDescription:(0,n.localize)("sumiContributes.toolbar.actions"),items:{type:"object",required:["id","description"],defaultSnippets:[{label:a({type:"button"},(0,n.localize)("sumiContributes.toolbar.actions.type.button")),body:{id:"${2}",type:"button",description:"${3}",title:"${4}",iconPath:"${5}"}},{label:a({type:"select"},(0,n.localize)("sumiContributes.toolbar.actions.type.select")),body:{id:"${2}",type:"select",description:"${3}",options:["${4}"],defaultValue:"${5}"}}],properties:{id:{type:"string",description:(0,n.localize)("sumiContributes.toolbar.actions.id")},weight:{type:"number",description:(0,n.localize)("sumiContributes.toolbar.actions.weight")},preferredPosition:{type:"object",description:(0,n.localize)("sumiContributes.toolbar.actions.preferredPosition"),properties:{location:{type:"string",description:(0,n.localize)("sumiContributes.toolbar.actions.preferredPosition.location")},group:{type:"string",description:(0,n.localize)("sumiContributes.toolbar.actions.preferredPosition.group")}}},strictPosition:{type:"object",description:(0,n.localize)("sumiContributes.toolbar.actions.strictPosition"),required:["location","group"],defaultSnippets:[{body:{location:"${1}",group:"${2}"}}],properties:{location:{type:"string",description:(0,n.localize)("sumiContributes.toolbar.actions.preferredPosition.location")},group:{type:"string",description:(0,n.localize)("sumiContributes.toolbar.actions.preferredPosition.group")}}},description:{type:"string",description:(0,n.localize)("sumiContributes.toolbar.actions.description")},command:{type:"string",description:(0,n.localize)("sumiContributes.toolbar.actions.command")},defaultState:{type:"string",description:(0,n.localize)("sumiContributes.toolbar.actions.defaultState")}},oneOf:[{required:["type","title","iconPath"],properties:{type:{type:"string",description:(0,n.localize)("sumiContributes.toolbar.actions.type"),enum:["button"],enumDescriptions:[(0,n.localize)("sumiContributes.toolbar.actions.type.button")],default:"button"},title:{type:"string",description:(0,n.localize)("sumiContributes.toolbar.actions.title")},iconPath:{type:"string",description:(0,n.localize)("sumiContributes.toolbar.actions.iconPath")},iconMaskMode:{type:"boolean",description:(0,n.localize)("sumiContributes.toolbar.actions.iconMaskMode")},states:{type:"object",description:(0,n.localize)("sumiContributes.toolbar.actions.button.states"),additionalProperties:o,properties:{default:o}},popoverComponent:{type:"string",description:(0,n.localize)("sumiContributes.toolbar.actions.popoverComponent")},popoverStyle:{type:"object",description:(0,n.localize)("sumiContributes.toolbar.actions.popoverStyle"),properties:{position:{type:"string",description:(0,n.localize)("sumiContributes.toolbar.actions.popoverStyle.position"),enum:["top","bottom"],enumDescriptions:[(0,n.localize)("sumiContributes.toolbar.actions.popoverStyle.position.top"),(0,n.localize)("sumiContributes.toolbar.actions.popoverStyle.position.bottom")]},horizontalOffset:{type:"number",description:(0,n.localize)("sumiContributes.toolbar.actions.popoverStyle.horizontalOffset")},hideOnClickOutside:{type:"boolean",description:(0,n.localize)("sumiContributes.toolbar.actions.popoverStyle.hideOnClickOutside")},noContainerStyle:{type:"boolean",description:(0,n.localize)("sumiContributes.toolbar.actions.popoverStyle.noContainerStyle")},minWidth:{type:"number",description:(0,n.localize)("sumiContributes.toolbar.actions.popoverStyle.minWidth")},minHeight:{type:"number",description:(0,n.localize)("sumiContributes.toolbar.actions.popoverStyle.minHeight")}}},when:{type:"string",description:(0,n.localize)("sumiContributes.toolbar.actions.when")}}},{required:["type","options","defaultValue"],properties:{type:{type:"string",description:(0,n.localize)("sumiContributes.toolbar.actions.type"),enum:["select"],enumDescriptions:[(0,n.localize)("sumiContributes.toolbar.actions.type.select")],default:"select"},options:{type:"array",description:(0,n.localize)("sumiContributes.toolbar.actions.select.options"),required:["value"],items:{type:"object",defaultSnippets:[{label:a({value:""},(0,n.localize)("sumiContributes.toolbar.actions.select.options.value")),body:{value:"${1}"}}],properties:{iconPath:{type:"string",description:(0,n.localize)("sumiContributes.toolbar.actions.select.options.iconPath")},iconMaskMode:{type:"boolean",description:(0,n.localize)("sumiContributes.toolbar.actions.select.options.iconMaskMode")},label:{type:"string",description:(0,n.localize)("sumiContributes.toolbar.actions.select.options.label")},value:{type:"string",description:(0,n.localize)("sumiContributes.toolbar.actions.select.options.value")}}}},defaultValue:{type:"string",description:(0,n.localize)("sumiContributes.toolbar.actions.select.defaultValue")},optionEqualityKey:{type:"string",description:(0,n.localize)("sumiContributes.toolbar.actions.select.optionEqualityKey")},states:{type:"object",description:(0,n.localize)("sumiContributes.toolbar.actions.select.states"),additionalProperties:I}}}]}}}}})(g=e.toolbar||(e.toolbar={}))},96702:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.VSCodeExtensionPackageSchema=e.EXTENSION_IDENTIFIER_PATTERN=void 0;const n=t(43718);e.EXTENSION_IDENTIFIER_PATTERN="^([a-z0-9A-Z][a-z0-9-A-Z]*)\\.([a-z0-9A-Z][a-z0-9-A-Z]*)$",e.VSCodeExtensionPackageSchema={properties:{engines:{type:"object",description:(0,n.localize)("vscode.extension.engines","Engine compatibility."),properties:{vscode:{type:"string",description:(0,n.localize)("vscode.extension.engines.vscode","For VS Code extensions, specifies the VS Code version that the extension is compatible with. Cannot be *. For example: ^0.10.5 indicates compatibility with a minimum VS Code version of 0.10.5."),default:"^1.22.0"}}},publisher:{description:(0,n.localize)("vscode.extension.publisher","The publisher of the VS Code extension."),type:"string"},displayName:{description:(0,n.localize)("vscode.extension.displayName","The display name for the extension used in the VS Code gallery."),type:"string"},categories:{description:(0,n.localize)("vscode.extension.categories","The categories used by the VS Code gallery to categorize the extension."),type:"array",uniqueItems:!0,items:{oneOf:[{type:"string",enum:["Programming Languages","Snippets","Linters","Themes","Debuggers","Other","Keymaps","Formatters","Extension Packs","SCM Providers","Azure","Language Packs"]},{type:"string",const:"Languages",deprecationMessage:(0,n.localize)("vscode.extension.category.languages.deprecated","Use 'Programming Languages' instead")}]}},galleryBanner:{type:"object",description:(0,n.localize)("vscode.extension.galleryBanner","Banner used in the VS Code marketplace."),properties:{color:{description:(0,n.localize)("vscode.extension.galleryBanner.color","The banner color on the VS Code marketplace page header."),type:"string"},theme:{description:(0,n.localize)("vscode.extension.galleryBanner.theme","The color theme for the font used in the banner."),type:"string",enum:["dark","light"]}}},contributes:{description:(0,n.localize)("vscode.extension.contributes","All contributions of the VS Code extension represented by this package."),type:"object",properties:{},default:{}},preview:{type:"boolean",description:(0,n.localize)("vscode.extension.preview","Sets the extension to be flagged as a Preview in the Marketplace.")},activationEvents:{description:(0,n.localize)("vscode.extension.activationEvents","Activation events for the VS Code extension."),type:"array",items:{type:"string",defaultSnippets:[{label:"onLanguage",description:(0,n.localize)("vscode.extension.activationEvents.onLanguage","An activation event emitted whenever a file that resolves to the specified language gets opened."),body:"onLanguage:${1:languageId}"},{label:"onCommand",description:(0,n.localize)("vscode.extension.activationEvents.onCommand","An activation event emitted whenever the specified command gets invoked."),body:"onCommand:${2:commandId}"},{label:"onDebug",description:(0,n.localize)("vscode.extension.activationEvents.onDebug","An activation event emitted whenever a user is about to start debugging or about to setup debug configurations."),body:"onDebug"},{label:"onDebugInitialConfigurations",description:(0,n.localize)("vscode.extension.activationEvents.onDebugInitialConfigurations",'An activation event emitted whenever a "launch.json" needs to be created (and all provideDebugConfigurations methods need to be called).'),body:"onDebugInitialConfigurations"},{label:"onDebugResolve",description:(0,n.localize)("vscode.extension.activationEvents.onDebugResolve","An activation event emitted whenever a debug session with the specific type is about to be launched (and a corresponding resolveDebugConfiguration method needs to be called)."),body:"onDebugResolve:${6:type}"},{label:"onDebugAdapterProtocolTracker",description:(0,n.localize)("vscode.extension.activationEvents.onDebugAdapterProtocolTracker","An activation event emitted whenever a debug session with the specific type is about to be launched and a debug protocol tracker might be needed."),body:"onDebugAdapterProtocolTracker:${6:type}"},{label:"workspaceContains",description:(0,n.localize)("vscode.extension.activationEvents.workspaceContains","An activation event emitted whenever a folder is opened that contains at least a file matching the specified glob pattern."),body:"workspaceContains:${4:filePattern}"},{label:"onFileSystem",description:(0,n.localize)("vscode.extension.activationEvents.onFileSystem","An activation event emitted whenever a file or folder is accessed with the given scheme."),body:"onFileSystem:${1:scheme}"},{label:"onSearch",description:(0,n.localize)("vscode.extension.activationEvents.onSearch","An activation event emitted whenever a search is started in the folder with the given scheme."),body:"onSearch:${7:scheme}"},{label:"onView",body:"onView:${5:viewId}",description:(0,n.localize)("vscode.extension.activationEvents.onView","An activation event emitted whenever the specified view is expanded.")},{label:"onUri",body:"onUri",description:(0,n.localize)("vscode.extension.activationEvents.onUri","An activation event emitted whenever a system-wide Uri directed towards this extension is open.")},{label:"*",description:(0,n.localize)("vscode.extension.activationEvents.star","An activation event emitted on VS Code startup. To ensure a great end user experience, please use this activation event in your extension only when no other activation events combination works in your use-case."),body:"*"}]}},badges:{type:"array",description:(0,n.localize)("vscode.extension.badges","Array of badges to display in the sidebar of the Marketplace's extension page."),items:{type:"object",required:["url","href","description"],properties:{url:{type:"string",description:(0,n.localize)("vscode.extension.badges.url","Badge image URL.")},href:{type:"string",description:(0,n.localize)("vscode.extension.badges.href","Badge link.")},description:{type:"string",description:(0,n.localize)("vscode.extension.badges.description","Badge description.")}}}},markdown:{type:"string",description:(0,n.localize)("vscode.extension.markdown","Controls the Markdown rendering engine used in the Marketplace. Either github (default) or standard."),enum:["github","standard"],default:"github"},qna:{default:"marketplace",description:(0,n.localize)("vscode.extension.qna","Controls the Q&A link in the Marketplace. Set to marketplace to enable the default Marketplace Q & A site. Set to a string to provide the URL of a custom Q & A site. Set to false to disable Q & A altogether."),anyOf:[{type:["string","boolean"],enum:["marketplace",!1]},{type:"string"}]},extensionDependencies:{description:(0,n.localize)("vscode.extension.extensionDependencies","Dependencies to other extensions. The identifier of an extension is always ${publisher}.${name}. For example: vscode.csharp."),type:"array",uniqueItems:!0,items:{type:"string",pattern:e.EXTENSION_IDENTIFIER_PATTERN}},extensionPack:{description:(0,n.localize)("vscode.extension.contributes.extensionPack","A set of extensions that can be installed together. The identifier of an extension is always ${publisher}.${name}. For example: vscode.csharp."),type:"array",uniqueItems:!0,items:{type:"string",pattern:e.EXTENSION_IDENTIFIER_PATTERN}},extensionKind:{description:(0,n.localize)("extensionKind","Define the kind of an extension. `ui` extensions are installed and run on the local machine while `workspace` extensions are run on the remote."),type:"string",enum:["ui","workspace"],enumDescriptions:[(0,n.localize)("ui","UI extension kind. In a remote window, such extensions are enabled only when available on the local machine."),(0,n.localize)("workspace","Workspace extension kind. In a remote window, such extensions are enabled only when available on the remote.")],default:"workspace"},scripts:{type:"object",properties:{"vscode:prepublish":{description:(0,n.localize)("vscode.extension.scripts.prepublish","Script executed before the package is published as a VS Code extension."),type:"string"},"vscode:uninstall":{description:(0,n.localize)("vscode.extension.scripts.uninstall","Uninstall hook for VS Code extension. Script that gets executed when the extension is completely uninstalled from VS Code which is when VS Code is restarted (shutdown and start) after the extension is uninstalled. Only Node scripts are supported."),type:"string"}}},icon:{type:"string",description:(0,n.localize)("vscode.extension.icon","The path to a 128x128 pixel icon.")}}}},53746:(L,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})},77273:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.FsProviderContribution=e.FilesChangeEvent=void 0;const n=t(43718);class a extends n.BasicEvent{}e.FilesChangeEvent=a,e.FsProviderContribution=Symbol("FsProviderContribution")},136:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.HashCalculateContribution=void 0;const n=t(85608),a=t(76003),o=t(98295),I=t(96405),g=t(66549);let u=class{async initialize(){try{await this.hashCalculateService.initialize()}catch(p){throw new Error(`hashCalculateService init fail:
|
|
27648
27648
|
${p.message}`)}}};n.__decorate([(0,a.Autowired)(I.IHashCalculateService),n.__metadata("design:type",Object)],u.prototype,"hashCalculateService",void 0),u=n.__decorate([(0,o.Domain)(g.ClientAppContribution)],u),e.HashCalculateContribution=u},41869:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});const n=t(85608);n.__exportStar(t(43718),e),n.__exportStar(t(48560),e),n.__exportStar(t(38578),e),n.__exportStar(t(36206),e),n.__exportStar(t(32796),e),n.__exportStar(t(78132),e),n.__exportStar(t(41118),e),n.__exportStar(t(37015),e),n.__exportStar(t(16884),e),n.__exportStar(t(68456),e),n.__exportStar(t(77273),e),n.__exportStar(t(42637),e),n.__exportStar(t(89378),e),n.__exportStar(t(53746),e),n.__exportStar(t(95040),e),n.__exportStar(t(80832),e),n.__exportStar(t(75694),e),n.__exportStar(t(79951),e),n.__exportStar(t(17544),e),n.__exportStar(t(53736),e),n.__exportStar(t(66963),e),n.__exportStar(t(22689),e),n.__exportStar(t(74404),e),n.__exportStar(t(45670),e),n.__exportStar(t(22366),e),n.__exportStar(t(18193),e),n.__exportStar(t(67304),e),n.__exportStar(t(66894),e),n.__exportStar(t(90697),e),n.__exportStar(t(26542),e),n.__exportStar(t(5910),e),n.__exportStar(t(61943),e),n.__exportStar(t(23396),e),n.__exportStar(t(40827),e)},41118:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),t(85608).__exportStar(t(95376),e)},95376:(L,e,t)=>{"use strict";var n;Object.defineProperty(e,"__esModule",{value:!0}),e.NO_KEYBINDING_NAME=e.KeybindingRegistryImpl=e.KeybindingService=e.keybindingServicePath=e.KeybindingRegistry=e.KeybindingContribution=e.KeybindingsResultCollection=e.Keybinding=e.KeybindingWeight=e.KeybindingScope=void 0;const a=t(85608),o=t(76003),I=t(43718),g=t(53736),u=t(81331),G=t(7967),p=t(26542);var b;(function(r){r[r.DEFAULT=0]="DEFAULT",r[r.USER=1]="USER",r[r.WORKSPACE=2]="WORKSPACE",r[r.END=3]="END"})(b=e.KeybindingScope||(e.KeybindingScope={}));var m;(function(r){r[r.Default=0]="Default",r[r.EditorCore=1]="EditorCore",r[r.EditorContrib=100]="EditorContrib",r[r.WorkbenchContrib=200]="WorkbenchContrib",r[r.BuiltinExtension=300]="BuiltinExtension",r[r.ExternalExtension=400]="ExternalExtension"})(m=e.KeybindingWeight||(e.KeybindingWeight={})),function(r){r.length=r.END-r.DEFAULT}(b=e.KeybindingScope||(e.KeybindingScope={}));var d;(function(r){function c(v){const f={command:v.command,keybinding:v.keybinding};return JSON.stringify(f)}r.stringify=c;function h(v){return!!v&&v===Object(v)&&"command"in v&&"keybinding"in v}r.is=h})(d=e.Keybinding||(e.Keybinding={}));var s;(function(r){class c{constructor(){this.full=[],this.partial=[],this.shadow=[]}merge(v){return this.full.push(...v.full),this.partial.push(...v.partial),this.shadow.push(...v.shadow),this}filter(v){const f=new c;return f.full=this.full.filter(v),f.partial=this.partial.filter(v),f.shadow=this.shadow.filter(v),f}}r.KeybindingsResult=c})(s=e.KeybindingsResultCollection||(e.KeybindingsResultCollection={})),e.KeybindingContribution=Symbol("KeybindingContribution"),e.KeybindingRegistry=Symbol("KeybindingRegistry"),e.keybindingServicePath="/services/keybindings",e.KeybindingService=Symbol("KeybindingService");let l=n=class{constructor(){this.keymaps=[...Array(b.length)].map(()=>[]),this.keySequence=[],this.convertKeySequence=[],this.modifierKeySequence=[],this.keybindingsChanged=new I.Emitter}async initialize(){await this.keyboardLayoutService.initialize(),this.keyboardLayoutService.onKeyboardLayoutChanged(()=>{this.clearResolvedKeybindings()});for(const c of this.keybindingContributionProvider.getContributions())c.registerKeybindings(this)}get onKeybindingsChanged(){return this.keybindingsChanged.event}registerKeybinding(c,h=b.DEFAULT){return this.doRegisterKeybinding(c,h)}registerKeybindings(c,h=b.DEFAULT){return this.doRegisterKeybindings(c,h)}convertMonacoWhen(c){return c?typeof c=="string"?c:c.serialize():""}unregisterKeybinding(c,h=b.DEFAULT){const v=d.is(c)?c.keybinding:c,f=this.keymaps[h];let W;d.is(c)&&c.when?W=f.filter(N=>this.isKeybindingEqual(N.keybinding,c.keybinding)&&this.isKeybindingWhenEqual(N.when,c.when)):W=f.filter(N=>this.isKeybindingEqual(N.keybinding,v)),W.forEach(N=>{const Z=f.indexOf(N);Z>=0&&f.splice(Z,1)})}isKeybindingWhenEqual(c,h){return this.convertMonacoWhen(c)===this.convertMonacoWhen(h)}isKeybindingEqual(c,h){return this.acceleratorForSequenceKeyString(c)===this.acceleratorForSequenceKeyString(h)}acceleratorForSequenceKeyString(c){const v=c.split(" ").map(f=>G.KeyCode.parse(f));return this.acceleratorForSequence(v,"+").join(" ")}doRegisterKeybindings(c,h=b.DEFAULT){const v=new I.Disposable;for(const f of c)v.addDispose(this.doRegisterKeybinding(f,h));return v}doRegisterKeybinding(c,h=b.DEFAULT){try{this.resolveKeybinding(c,!0),this.keymaps[h].unshift(c)}catch(v){this.logger.warn(`Could not register keybinding:
|
|
@@ -27679,7 +27679,7 @@ ${v}`)}return this.keybindingsChanged.fire({affectsCommands:[c.command]}),{dispo
|
|
|
27679
27679
|
`:`
|
|
27680
27680
|
`}async read(p,b){const{content:m}=await this.fileServiceClient.readFile(p.toString()),d=b.autoGuessEncoding||this.preferenceService.get("files.autoGuessEncoding",void 0,p.toString(),(0,o.getLanguageIdFromMonaco)(p)),s=await(0,o.detectEncodingFromBuffer)(m,d);s.encoding=await this.getReadEncoding(p,b,s.encoding);const l=m.toString(s.encoding),r=p.toString();return this._detectedEncodingMap.set(r,s.encoding),this._fileContentMd5OnBrowserFs.add(r),{encoding:s.encoding||o.UTF8,content:l}}async provideEditorDocumentModelContent(p,b){return(await this.read(p,{encoding:b})).content}async isReadonly(p){const b=this.editorPreferences["editor.readonlyFiles"];if(b&&b.length){for(const m of b)if(p.isEqual(o.URI.file(m))||p.matchGlobPattern(m)||p.toString().endsWith(m.replace("./","")))return!0}return this.fileServiceClient.isReadonly(p.toString())}async saveDocumentModel(p,b,m,d,s,l=!1){try{const r=await this.fileServiceClient.getFileStat(p.toString());return r?await this.fileServiceClient.setContent(r,b,{encoding:s}):await this.fileServiceClient.createFile(p.toString(),{content:b,overwrite:!0,encoding:s}),{state:o.SaveTaskResponseState.SUCCESS}}catch(r){return{state:o.SaveTaskResponseState.ERROR,errorMessage:r.message}}}onDidDisposeModel(p){this._fileContentMd5OnBrowserFs.delete(p.toString())}async guessEncoding(p){return(await this.read(p,{autoGuessEncoding:!0})).encoding}getReadEncoding(p,b,m){let d;return b?.encoding?m===o.UTF8_with_bom&&b.encoding===o.UTF8?d=o.UTF8_with_bom:d=b.encoding:m&&(d=m),this.getEncodingForResource(p,d)}async getEncodingForResource(p,b){return this.encodingRegistry.getEncodingForResource(p,b)}};n.__decorate([(0,a.Autowired)(I.IFileServiceClient),n.__metadata("design:type",Object)],u.prototype,"fileServiceClient",void 0),n.__decorate([(0,a.Autowired)(g.EditorPreferences),n.__metadata("design:type",Object)],u.prototype,"editorPreferences",void 0),n.__decorate([(0,a.Autowired)(o.IApplicationService),n.__metadata("design:type",Object)],u.prototype,"applicationService",void 0),n.__decorate([(0,a.Autowired)(o.PreferenceService),n.__metadata("design:type",Object)],u.prototype,"preferenceService",void 0),n.__decorate([(0,a.Autowired)(o.EncodingRegistry),n.__metadata("design:type",o.EncodingRegistry)],u.prototype,"encodingRegistry",void 0),u=n.__decorate([(0,a.Injectable)(),n.__metadata("design:paramtypes",[])],u),e.BaseFileSystemEditorDocumentProvider=u},10:(L,e,t)=>{"use strict";var n;Object.defineProperty(e,"__esModule",{value:!0}),e.FileSystemResourceProvider=void 0;const a=t(85608),o=t(76003),I=t(41869),g=t(26542),u=t(43718),G=t(42933),p=t(72665),b=t(23418),m=t(96689),d=t(5580),{Path:s}=u.path;let l=n=class extends I.WithEventBus{constructor(){super(),this.cachedFileStat=new I.LRUMap(200,100),this.ready=this.init(),this.listen()}async init(){const h=await this.applicationService.getBackendOS();this.involvedFiles=new d.FileTreeSet(h===I.OperatingSystem.Windows)}handlesUri(h){const v=h.scheme;return this.fileServiceClient.handlesScheme(v)?10:-1}listen(){this.fileServiceClient.onFilesChanged(h=>{h.forEach(v=>{var f;v.type===u.FileChangeType.ADDED||v.type===u.FileChangeType.DELETED?((f=this.involvedFiles)===null||f===void 0?void 0:f.effects(new I.URI(v.uri).codeUri.fsPath)).forEach(N=>{const Z=I.URI.file(N);this.cachedFileStat.delete(Z.toString()),this.eventBus.fire(new b.ResourceNeedUpdateEvent(Z))}):this.cachedFileStat.has(v.uri)&&this.cachedFileStat.get(v.uri)===void 0&&(this.cachedFileStat.delete(v.uri),this.eventBus.fire(new b.ResourceNeedUpdateEvent(new I.URI(v.uri))))})}),this.labelService.onDidChange(h=>{var v;h.codeUri.fsPath&&(!((v=this.involvedFiles)===null||v===void 0)&&v.effects(h.codeUri.fsPath))&&this.eventBus.fire(new b.ResourceNeedUpdateEvent(h))})}async getFileStat(h){return this.cachedFileStat.has(h)||this.cachedFileStat.set(h,await this.fileServiceClient.getFileStat(h.toString())),this.cachedFileStat.get(h)}async getCurrentUserHome(){if(!this.userhomePath)try{const h=await this.fileServiceClient.getCurrentUserHome();h&&(this.userhomePath=new I.URI(h.uri))}catch{}return this.userhomePath}async getReadableTooltip(h){const v=h.toString(),f=await this.getCurrentUserHome();if(!f)return decodeURIComponent(h.withScheme("").toString());if(f.isEqualOrParent(h)){const W=f&&f.toString();return decodeURIComponent(v.replace(W,"~"))}return decodeURIComponent(h.withScheme("").toString())}async provideResource(h){return await this.ready,this.involvedFiles.add(h.codeUri.fsPath),Promise.all([this.getFileStat(h.toString()),this.labelService.getName(h),this.labelService.getIcon(h),this.getReadableTooltip(h)]).then(([v,f,W,N])=>({name:v?f:f+(0,I.localize)("file.resource-deleted","(\u5DF2\u5220\u9664)"),icon:W,uri:h,metadata:null,deleted:!v,supportsRevive:!0,title:N}))}provideResourceSubname(h,v){const f=[];for(const W of v)this.fileServiceClient.handlesScheme(W.uri.scheme)&&W.uri.displayName===h.uri.displayName&&W!==h&&f.push(W.uri);if(f.length>0){const W=r(h.uri,f);return W.startsWith(s.separator)?W.length>n.SUBNAME_LIMIT?"..."+W.slice(W.length-n.SUBNAME_LIMIT):W:"..."+s.separator+r(h.uri,f)}else return null}onDisposeResource(h){var v;(v=this.involvedFiles)===null||v===void 0||v.delete(h.uri.codeUri.fsPath),this.cachedFileStat.delete(h.uri.toString())}async shouldCloseResourceWithoutConfirm(h){const v=this.documentModelService.getModelReference(h.uri,"close-resource-check");return!!(v&&v.instance.dirty)}async close(h,v){const f=this.documentModelService.getModelReference(h.uri,"close-resource-check");if(!f)return!1;if(v===b.AskSaveResult.SAVE){const W=await f.instance.save();return f.dispose(),W}else return v===b.AskSaveResult.REVERT?(await f.instance.revert(),f.dispose(),!0):!v||v===b.AskSaveResult.CANCEL?(f.dispose(),!1):!0}async shouldCloseResource(h,v){let f=0;for(const E of v)for(const R of E)if(R.uri.scheme===b.DIFF_SCHEME&&R.metadata&&R.metadata.modified.toString()===h.uri.toString()&&f++,this.fileServiceClient.handlesScheme(R.uri.scheme)&&R.uri.toString()===h.uri.toString()&&f++,f>1)return!0;const W=this.documentModelService.getModelReference(h.uri,"close-resource-check");if(!W||!W.instance.dirty)return W&&W.dispose(),!0;const N={[(0,I.localize)("file.prompt.dontSave","Don't Save")]:b.AskSaveResult.REVERT,[(0,I.localize)("file.prompt.save","Save")]:b.AskSaveResult.SAVE,[(0,I.localize)("file.prompt.cancel","Cancel")]:b.AskSaveResult.CANCEL},Z=await this.dialogService.open((0,I.formatLocalize)("saveChangesMessage",h.name),I.MessageType.Info,Object.keys(N)),y=N[Z];return this.close(h,y)}};l.SUBNAME_LIMIT=20,a.__decorate([(0,o.Autowired)(),a.__metadata("design:type",g.LabelService)],l.prototype,"labelService",void 0),a.__decorate([(0,o.Autowired)(G.IFileServiceClient),a.__metadata("design:type",Object)],l.prototype,"fileServiceClient",void 0),a.__decorate([(0,o.Autowired)(p.IDialogService),a.__metadata("design:type",Object)],l.prototype,"dialogService",void 0),a.__decorate([(0,o.Autowired)(m.IEditorDocumentModelService),a.__metadata("design:type",Object)],l.prototype,"documentModelService",void 0),a.__decorate([(0,o.Autowired)(I.IApplicationService),a.__metadata("design:type",Object)],l.prototype,"applicationService",void 0),l=n=a.__decorate([(0,o.Injectable)(),a.__metadata("design:paramtypes",[])],l),e.FileSystemResourceProvider=l;function r(c,h){const v=c.path.dir.toString().split(s.separator).reverse(),f=h.map(W=>W.path.dir.toString().split(s.separator).reverse());for(let W=0;W<v.length;W++){let N=!1;for(const Z of f)if(Z[W]===v[W]){N=!0;break}if(!N)return v.slice(0,W+1).reverse().join(s.separator)}return v.reverse().join(s.separator)}},69728:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.FileSystemResourceContribution=void 0;const n=t(85608),a=t(76003),o=t(41869),I=t(82196),g=t(68692),u=t(10);let G=class{registerResource(b){b.registerResourceProvider(this.fsResourceProvider)}registerEditorDocumentModelContentProvider(b){b.registerEditorDocumentModelContentProvider(this.fsDocProvider)}};n.__decorate([(0,a.Autowired)(u.FileSystemResourceProvider),n.__metadata("design:type",u.FileSystemResourceProvider)],G.prototype,"fsResourceProvider",void 0),n.__decorate([(0,a.Autowired)(g.BaseFileSystemEditorDocumentProvider),n.__metadata("design:type",g.BaseFileSystemEditorDocumentProvider)],G.prototype,"fsDocProvider",void 0),G=n.__decorate([(0,o.Domain)(I.BrowserEditorContribution)],G),e.FileSystemResourceContribution=G},47049:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.splitDirectionMatches=e.SplitDirection=e.EditorGrid=e.editorGridUid=void 0;const n=t(41869),a=t(43718),o=t(23418),I=t(82196);e.editorGridUid=new Set;class g{constructor(b){this.parent=b,this.editorGroup=null,this.children=[],this._onDidGridStateChange=new n.Emitter,this.onDidGridStateChange=this._onDidGridStateChange.event,this._onDidGridAndDesendantStateChange=new n.Emitter,this.onDidGridAndDesendantStateChange=this._onDidGridAndDesendantStateChange.event;let m=(0,a.makeRandomHexString)(5);for(;e.editorGridUid.has(m);)m=(0,a.makeRandomHexString)(5);this.uid=m,e.editorGridUid.add(m),this.onDidGridStateChange(()=>{var d;this._onDidGridAndDesendantStateChange.fire(),(d=this.parent)===null||d===void 0||d._onDidGridAndDesendantStateChange.fire()})}setEditorGroup(b){this.editorGroup=b,b.grid=this,this.splitDirection=void 0}generateSplitParent(b,m,d){this.splitDirection=b;const s=new g(this);s.setEditorGroup(this.editorGroup),this.editorGroup=null;const l=new g(this);l.setEditorGroup(m),d?this.children=[l,s]:this.children=[s,l],this._onDidGridStateChange.fire()}generateSplitSibling(b,m){if(this.parent){const d=this.parent.children.indexOf(this),s=new g(this.parent);s.setEditorGroup(b),m?this.parent.children.splice(d,0,s):this.parent.children.splice(d+1,0,s),this.parent._onDidGridStateChange.fire()}}split(b,m,d){this.splitDirection||(this.parent?this.parent.splitDirection===b?this.generateSplitSibling(m,d):this.parent.splitDirection!==b&&this.generateSplitParent(b,m,d):this.generateSplitParent(b,m,d))}dispose(){if(this.editorGroup){if(this.editorGroup=null,!this.parent)return;const b=this.parent.children.indexOf(this);this.parent.children.splice(b,1),this.parent.children.length===1&&this.parent.replaceBy(this.parent.children[0]),this.parent._onDidGridStateChange.fire()}}replaceBy(b){b.editorGroup&&this.setEditorGroup(b.editorGroup),this.splitDirection=b.splitDirection,this.children.splice(0,this.children.length,...b.children.splice(0,b.children.length)),this.children.forEach(m=>{m.parent=this}),this.parent&&this.parent._onDidGridStateChange.fire()}emitResizeWithEventBus(b){b.fire(new I.GridResizeEvent({gridId:this.uid})),this.children.forEach(m=>{m.emitResizeWithEventBus(b)})}serialize(){if(this.editorGroup){const b=this.editorGroup.getState();return this.parent&&b.uris.length===0?null:{editorGroup:b}}else{if(this.parent&&this.children.length===0)return null;const b=this.children.map(m=>m.serialize()).filter(m=>!!m);return b.length===1?b[0]:{splitDirection:this.splitDirection,children:b}}}async deserialize(b,m,d){const s=[];return b.editorGroup?(this.setEditorGroup(m()),d.push(this.editorGroup.restoreState(b.editorGroup))):(this.splitDirection=b.splitDirection,this.children=(b.children||[]).map(l=>{const r=new g(this);return s.push(r.deserialize(l,m,d)),r})),Promise.all(s)}findGird(b,m=0){if(this.splitDirection&&G(this.splitDirection,b)){const d=m+(b===o.Direction.LEFT||b===o.Direction.UP?-1:1);if(this.children[d])return this.children[d].getFirstLeaf()}return this.parent?this.parent.findGird(b,this.parent.children.indexOf(this)):null}getFirstLeaf(){return this.editorGroup?this:this.children.length>0?this.children[0].getFirstLeaf():null}sortEditorGroups(b){this.editorGroup?b.push(this.editorGroup):this.children.length>0&&this.children.forEach(m=>{m.sortEditorGroups(b)})}move(b){if(this.parent){if(this.parent.splitDirection===u.Horizontal){if(b===o.Direction.LEFT){const m=this.parent.children.indexOf(this);m>0&&(this.parent.children.splice(m,1),this.parent.children.splice(m-1,0,this),this.parent._onDidGridStateChange.fire())}else if(b===o.Direction.RIGHT){const m=this.parent.children.indexOf(this);m<this.parent.children.length&&(this.parent.children.splice(m,1),this.parent.children.splice(m+1,0,this),this.parent._onDidGridStateChange.fire())}}else if(this.parent.splitDirection===u.Vertical){if(b===o.Direction.UP){const m=this.parent.children.indexOf(this);m>0&&(this.parent.children.splice(m,1),this.parent.children.splice(m-1,0,this),this.parent._onDidGridStateChange.fire())}else if(b===o.Direction.DOWN){const m=this.parent.children.indexOf(this);m<this.parent.children.length&&(this.parent.children.splice(m,1),this.parent.children.splice(m+1,0,this),this.parent._onDidGridStateChange.fire())}}}}}e.EditorGrid=g;var u;(function(p){p[p.Horizontal=1]="Horizontal",p[p.Vertical=2]="Vertical"})(u=e.SplitDirection||(e.SplitDirection={}));function G(p,b){return b===o.Direction.UP||b===o.Direction.DOWN?p===u.Vertical:b===o.Direction.LEFT||b===o.Direction.RIGHT?p===u.Horizontal:!1}e.splitDirectionMatches=G},95338:(L,e,t)=>{"use strict";var n;Object.defineProperty(e,"__esModule",{value:!0}),e.EditorHistoryState=e.EditorHistoryService=void 0;const a=t(85608),o=t(76003),I=t(41869),g=t(23418),u=t(82196),G=7,p=200,b=100;let m=n=class extends I.WithEventBus{constructor(){super(...arguments),this.currentIndex=-1,this.stack=[],this.closedStack=[]}init(){this.registerMouseNavigationListener()}registerMouseNavigationListener(){const l=new I.DisposableCollection,r=()=>{l.dispose(),this.preferenceService.get(n.MOUSE_NAVIGATION_SETTING)&&l.push((0,I.addDisposableListener)(window.document,I.EventType.MOUSE_DOWN,c=>this.onMouseDown(c))),this.disposables.push(l)};this.disposables.push(this.preferenceService.onSpecificPreferenceChange(n.MOUSE_NAVIGATION_SETTING,()=>{this.preferenceService.get(n.MOUSE_NAVIGATION_SETTING)&&r()})),r()}onMouseDown(l){switch(l.button){case 3:l.stopPropagation(),this.back();break;case 4:l.stopPropagation(),this.forward();break}}onEditorSelectionChangeEvent(l){l.payload.selections[0]&&this.onNewState(new d(l.payload.editorUri,{lineNumber:l.payload.selections[0].selectionStartLineNumber,column:l.payload.selections[0].selectionStartColumn},l.payload.group.index,!1))}onEditorGroupChangeEvent(l){if(l.payload.newOpenType&&(l.payload.newOpenType.type===u.EditorOpenType.code||l.payload.newOpenType.type===u.EditorOpenType.diff)){const r=l.payload.group.currentEditor.getSelections();r&&r.length>0&&this.onNewState(new d(l.payload.newResource.uri,{lineNumber:r[0].selectionStartLineNumber,column:r[0].selectionStartColumn},l.payload.group.index,!0))}}onEditorGroupCloseEvent(l){this.pushClosed(l.payload.resource.uri)}onNewState(l){if(this.currentIndex!==this.stack.length-1&&(l.isTabChange&&this.currentState.isRelevant(l)||this.currentState&&this.currentState.isEqual(l)))return;const r=this.currentState&&this.currentState.isRelevant(l);this.doPushState(l,r)}get currentState(){return this.stack[this.currentIndex]}doPushState(l,r){this.stack.splice(this.currentIndex+(r?0:1)),this.stack.push(l),this.stack.length>p&&this.stack.splice(0,this.stack.length-b),this.currentIndex=this.stack.length-1}forward(){this.currentIndex<this.stack.length-1&&(this.currentIndex++,this.restoreState(this.currentState))}back(){this.currentIndex>0&&(this.currentIndex--,this.restoreState(this.currentState))}restoreState(l){if(!l)return;(this.editorService.editorGroups[l.groupIndex]||this.editorService.currentEditorGroup).open(l.uri,{range:{startColumn:l.position.column,startLineNumber:l.position.lineNumber,endColumn:l.position.column,endLineNumber:l.position.lineNumber},focus:!0})}pushClosed(l){this.closedStack.push(l),this.closedStack.length>p&&this.closedStack.splice(0,this.closedStack.length-b)}popClosed(){const l=this.closedStack.pop();l&&(this.editorService.open(l,{focus:!0}),this.closedStack=this.closedStack.filter(r=>!l.isEqual(r)))}};m.MOUSE_NAVIGATION_SETTING="editor.mouseBackForwardToNavigate",a.__decorate([(0,o.Autowired)(I.PreferenceService),a.__metadata("design:type",Object)],m.prototype,"preferenceService",void 0),a.__decorate([(0,o.Autowired)(g.WorkbenchEditorService),a.__metadata("design:type",g.WorkbenchEditorService)],m.prototype,"editorService",void 0),a.__decorate([(0,I.OnEvent)(u.EditorSelectionChangeEvent),a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[u.EditorSelectionChangeEvent]),a.__metadata("design:returntype",void 0)],m.prototype,"onEditorSelectionChangeEvent",null),a.__decorate([(0,I.OnEvent)(u.EditorGroupChangeEvent),a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[u.EditorGroupChangeEvent]),a.__metadata("design:returntype",void 0)],m.prototype,"onEditorGroupChangeEvent",null),a.__decorate([(0,I.OnEvent)(u.EditorGroupCloseEvent),a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[u.EditorGroupCloseEvent]),a.__metadata("design:returntype",void 0)],m.prototype,"onEditorGroupCloseEvent",null),m=n=a.__decorate([(0,o.Injectable)()],m),e.EditorHistoryService=m;class d{constructor(l,r,c,h){this.uri=l,this.position=r,this.groupIndex=c,this.isTabChange=h}isRelevant(l){return!!(this.uri.isEqual(l.uri)&&(l.position.lineNumber<this.position.lineNumber+G&&l.position.lineNumber>this.position.lineNumber-G||this.isTabChange||l.isTabChange))}isEqual(l){return this.uri.isEqual(l.uri)&&this.position.lineNumber===l.position.lineNumber&&this.position.column===l.position.column}}e.EditorHistoryState=d},64544:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.useEditorDocumentModelRef=void 0;const n=t(14041),a=t(41869),o=t(96689);function I(g){const u=(0,a.useInjectable)(o.IEditorDocumentModelService),[G,p]=(0,n.useState)(null);return(0,n.useEffect)(()=>{const b=()=>{const d=u.getModelReference(g);d&&p(d)},m=u.onDocumentModelCreated(g.toString(),()=>{b()});return b(),()=>{m.dispose(),G&&G.dispose()}},[g]),G}e.useEditorDocumentModelRef=I},57517:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.EditorClientAppContribution=e.EditorModule=void 0;const n=t(85608),a=t(76003),o=t(41869),I=t(55218),g=t(21880),u=t(62660),G=t(28694),p=t(23418),b=t(93107),m=t(88895),d=t(11673),s=t(57581),l=t(84158),r=t(80487),c=t(37275),h=t(66537),v=t(96689),f=t(71624),W=t(17315),N=t(60362),Z=t(2863),y=t(30612),E=t(59879),R=t(69728),A=t(1015),w=t(49746),F=t(78889),V=t(8135),Y=t(32837),_=t(6950),H=t(59137),S=t(9447),X=t(54324),Q=t(34885),O=t(24328),M=t(80200),T=t(82196),x=t(51553);n.__exportStar(t(80487),e),n.__exportStar(t(96689),e),n.__exportStar(t(24739),e),n.__exportStar(t(24328),e),n.__exportStar(t(82196),e),n.__exportStar(t(33835),e);let B=class extends o.BrowserModule{constructor(){super(...arguments),this.providers=[{token:p.EditorCollectionService,useClass:f.EditorCollectionServiceImpl},{token:p.WorkbenchEditorService,useClass:x.WorkbenchEditorServiceImpl},{token:p.ResourceService,useClass:M.ResourceServiceImpl},{token:T.EditorComponentRegistry,useClass:d.EditorComponentRegistryImpl},{token:T.IEditorDecorationCollectionService,useClass:Z.EditorDecorationCollectionService},{token:v.IEditorDocumentModelContentRegistry,useClass:c.EditorDocumentModelContentRegistryImpl},{token:v.IEditorDocumentModelService,useClass:c.EditorDocumentModelServiceImpl},{token:p.ILanguageService,useClass:F.LanguageService},{token:T.IEditorActionRegistry,useClass:V.EditorActionRegistryImpl},{token:b.IDocPersistentCacheProvider,useClass:r.EmptyDocCacheImpl},{token:T.ICompareService,useClass:l.CompareService},{token:T.IBreadCrumbService,useClass:m.BreadCrumbServiceImpl},{token:T.IEditorFeatureRegistry,useClass:E.EditorFeatureRegistryImpl},{token:O.EditorPreferences,useFactory:k=>{const z=k.get(o.PreferenceService);return(0,o.createPreferenceProxy)(z,O.editorPreferenceSchema)}},{token:I.ICallHierarchyService,useClass:H.CallHierarchyService},{token:G.ITypeHierarchyService,useClass:H.TypeHierarchyService},{token:g.ICommandServiceToken,useClass:S.MonacoCommandService},{token:g.IMonacoCommandsRegistry,useClass:S.MonacoCommandRegistry},{token:g.IMonacoActionRegistry,useClass:S.MonacoActionRegistry},{token:u.ITextmateTokenizer,useClass:X.TextmateService},{token:T.ILanguageStatusService,useClass:w.LanguageStatusService},{token:T.IEditorTabService,useClass:y.EditorTabService},Q.EditorPreferenceContribution,s.DefaultDiffEditorContribution,_.MergeEditorContribution,D,N.EditorContribution,l.CompareEditorContribution,N.EditorAutoSaveEditorContribution,h.SaveParticipantsContribution,R.FileSystemResourceContribution,H.CallHierarchyContribution,H.TypeHierarchyContribution,A.LanguageStatusContribution,Y.OpenTypeMenuContribution],this.electronProviders=[W.EditorElectronContribution],this.contributionProvider=T.BrowserEditorContribution}};B=n.__decorate([(0,a.Injectable)()],B),e.EditorModule=B;let D=class{async initialize(){for(const k of this.contributions.getContributions())k.registerResource&&k.registerResource(this.resourceService),k.registerEditorComponent&&k.registerEditorComponent(this.editorComponentRegistry),k.registerEditorDocumentModelContentProvider&&k.registerEditorDocumentModelContentProvider(this.modelContentRegistry),k.registerEditorActions&&k.registerEditorActions(this.editorActionRegistry),k.registerEditorFeature&&k.registerEditorFeature(this.editorFeatureRegistry);this.workbenchEditorService.contributionsReady.resolve(),await Promise.all([this.workbenchEditorService.initialize(),this.modelService.initialize()])}async onDidStart(){this.workbenchEditorService.prepareContextKeyService()}};n.__decorate([(0,a.Autowired)(),n.__metadata("design:type",p.ResourceService)],D.prototype,"resourceService",void 0),n.__decorate([(0,a.Autowired)(),n.__metadata("design:type",T.EditorComponentRegistry)],D.prototype,"editorComponentRegistry",void 0),n.__decorate([(0,a.Autowired)(p.WorkbenchEditorService),n.__metadata("design:type",x.WorkbenchEditorServiceImpl)],D.prototype,"workbenchEditorService",void 0),n.__decorate([(0,a.Autowired)(v.IEditorDocumentModelContentRegistry),n.__metadata("design:type",Object)],D.prototype,"modelContentRegistry",void 0),n.__decorate([(0,a.Autowired)(T.IEditorActionRegistry),n.__metadata("design:type",Object)],D.prototype,"editorActionRegistry",void 0),n.__decorate([(0,a.Autowired)(T.IEditorFeatureRegistry),n.__metadata("design:type",Object)],D.prototype,"editorFeatureRegistry",void 0),n.__decorate([(0,a.Autowired)(a.INJECTOR_TOKEN),n.__metadata("design:type",a.Injector)],D.prototype,"injector",void 0),n.__decorate([(0,a.Autowired)(v.IEditorDocumentModelService),n.__metadata("design:type",c.EditorDocumentModelServiceImpl)],D.prototype,"modelService",void 0),n.__decorate([(0,a.Autowired)(T.BrowserEditorContribution),n.__metadata("design:type",Object)],D.prototype,"contributions",void 0),D=n.__decorate([(0,o.Domain)(o.ClientAppContribution)],D),e.EditorClientAppContribution=D},37906:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.MonacoModelDiagnostics=e.MonacoDiagnosticCollection=void 0;const n=t(85608),a=t(43718),o=n.__importStar(t(20868)),I=t(52902),g=t(23418);class u{constructor(b){this.name=b,this.diagnostics=new Map,this.toDispose=new a.DisposableCollection}dispose(){this.toDispose.dispose()}get(b){const m=this.diagnostics.get(b);return m?m.diagnostics:[]}set(b,m){const d=this.diagnostics.get(b);if(d)d.diagnostics=m;else{const s=new G(b,m,this.name);this.diagnostics.set(b,s),this.toDispose.push(a.Disposable.create(()=>{this.diagnostics.delete(b),s.dispose()}))}}}e.MonacoDiagnosticCollection=u;class G{constructor(b,m,d){this.owner=d,this._markers=[],this._diagnostics=[],this.uri=o.Uri.parse(b),this.diagnostics=m,I.monacoApi.editor.onDidCreateModel(s=>this.doUpdateModelMarkers(s))}set diagnostics(b){this._diagnostics=b,this._markers=(0,g.asMonacoDiagnostics)(b)||[],this.updateModelMarkers()}get diagnostics(){return this._diagnostics}get markers(){return this._markers}dispose(){this._markers=[],this.updateModelMarkers()}updateModelMarkers(){const b=I.monacoApi.editor.getModel(this.uri);this.doUpdateModelMarkers(b)}doUpdateModelMarkers(b){b&&this.uri.toString()===b.uri.toString()&&I.monacoApi.editor.setModelMarkers(b,this.owner,this._markers)}}e.MonacoModelDiagnostics=G},1015:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.LanguageStatusContribution=void 0;const n=t(85608),a=t(76003),o=t(41869),I=t(23418),g=t(96689);let u=class extends o.WithEventBus{initialize(){this.workbenchEditorService.onActiveResourceChange(()=>{this.updateLanguageStatus(this.workbenchEditorService.currentEditor)}),this.eventBus.on(g.EditorDocumentModelOptionChangedEvent,p=>{const b=this.workbenchEditorService.currentEditor;b&&b.currentUri&&b.currentUri.isEqual(p.payload.uri)&&this.updateLanguageStatus(this.workbenchEditorService.currentEditor)})}updateLanguageStatus(p){if(!p){this.statusBar.removeElement("editor-status-language-status");return}const b=p.currentDocumentModel;if(b){const m=this.languageStatusService.getLanguageStatus(b.getMonacoModel());m.length&&this.statusBar.addElement("editor-status-language-status",{name:(0,o.localize)("status-bar.editor-langStatus"),alignment:o.StatusBarAlignment.RIGHT,text:this.getLanguageStatusText(m),priority:1.1,hoverContents:m.map(d=>({title:d.label,name:d.name,command:d.command})),onClick:()=>{}})}}getLanguageStatusText(p){if(p.length===0)return;const[b]=p;switch(b.severity){case o.Severity.Error:return"$(bracket-error)";case o.Severity.Warning:return"$(bracket-dot)";default:return"$(bracket)"}}};n.__decorate([(0,a.Autowired)(o.IStatusBarService),n.__metadata("design:type",Object)],u.prototype,"statusBar",void 0),n.__decorate([(0,a.Autowired)(),n.__metadata("design:type",I.WorkbenchEditorService)],u.prototype,"workbenchEditorService",void 0),n.__decorate([(0,a.Autowired)(I.ILanguageStatusService),n.__metadata("design:type",Object)],u.prototype,"languageStatusService",void 0),u=n.__decorate([(0,o.Domain)(o.ClientAppContribution)],u),e.LanguageStatusContribution=u},49746:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.LanguageStatusService=void 0;const n=t(85608),a=t(76003),o=t(43718),I=t(40497),{compare:g}=o.strings;let u=class{constructor(){this._provider=new I.LanguageFeatureRegistry,this.onDidChange=this._provider.onDidChange}addStatus(p){return this._provider.register(p.selector,p)}getLanguageStatus(p){return this._provider.ordered(p).sort((b,m)=>{let d=m.severity-b.severity;return d===0&&(d=g(b.source,m.source)),d===0&&(d=g(b.id,m.id)),d})}};u=n.__decorate([(0,a.Injectable)()],u),e.LanguageStatusService=u},78889:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.LanguageService=e.reviveMarker=void 0;const n=t(85608),a=t(76003),o=t(43718),I=t(62660),g=t(23418),u=t(37906);function G(s){switch(s){case o.MarkerSeverity.Error:return g.DiagnosticSeverity.Error;case o.MarkerSeverity.Warning:return g.DiagnosticSeverity.Warning;case o.MarkerSeverity.Info:return g.DiagnosticSeverity.Information;case o.MarkerSeverity.Hint:return g.DiagnosticSeverity.Hint}}function p(s,l,r,c){return{start:{line:s-1,character:l-1},end:{line:r-1,character:c-1}}}function b(s){return{message:s.message,location:{uri:s.resource,range:p(s.startLineNumber,s.startColumn,s.endLineNumber,s.endColumn)}}}function m(s){const l={code:typeof s.codeHref<"u"?{value:String(s.code),target:s.codeHref}:s.code,severity:G(s.severity),range:p(s.startLineNumber,s.startColumn,s.endLineNumber,s.endColumn),message:s.message,source:s.source,relatedInformation:void 0,tags:s.tags};return s.relatedInformation&&(l.relatedInformation=s.relatedInformation.map(b)),l}e.reviveMarker=m;let d=class{constructor(){this.markers=new Map,this.workspaceSymbolProviders=[];for(const l of this.markerManager.getResources())this.updateMarkers(new o.URI(l));this.markerManager.onMarkerChanged(l=>{l&&l.forEach(r=>this.updateMarkers(new o.URI(r)))})}get languages(){return[...this.mergeLanguages(this.textmateService.getLanguages()).values()]}getLanguage(l){return this.mergeLanguages(this.textmateService.getLanguages().filter(r=>r.id===l)).get(l)}mergeLanguages(l){const r=new Map;for(const{id:c,aliases:h,extensions:v,filenames:f}of l){const W=r.get(c)||{id:c,name:"",extensions:new Set,filenames:new Set};if(!W.name&&h&&h.length&&(W.name=h[0]),v&&v.length)for(const N of v)W.extensions.add(N);if(f&&f.length)for(const N of f)W.filenames.add(N);r.set(c,W)}for(const[c,h]of r)h.name||(h.name=c);return r}registerWorkspaceSymbolProvider(l){return this.workspaceSymbolProviders.push(l),o.Disposable.create(()=>{const r=this.workspaceSymbolProviders.indexOf(l);r!==-1&&this.workspaceSymbolProviders.splice(r,1)})}updateMarkers(l){const r=l.toString(),c=new Map;for(const v of this.markerManager.getMarkers({resource:l.toString()})){const f=c.get(v.type)||[];f.push(m(v)),c.set(v.type,f)}const h=new Set(this.markers.keys());for(const[v,f]of c){h.delete(v);const W=this.markers.get(v)||new u.MonacoDiagnosticCollection(v);W.set(r,f),this.markers.set(v,W)}for(const v of h){const f=this.markers.get(v);f&&f.set(r,[])}}};n.__decorate([(0,a.Autowired)(),n.__metadata("design:type",o.MarkerManager)],d.prototype,"markerManager",void 0),n.__decorate([(0,a.Autowired)(I.ITextmateTokenizer),n.__metadata("design:type",Object)],d.prototype,"textmateService",void 0),d=n.__decorate([(0,a.Injectable)(),n.__metadata("design:paramtypes",[])],d),e.LanguageService=d},26209:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BreadCrumbsMenuService=void 0;const n=t(85608),a=t(76003),o=t(93899);let I=class{show(u,G,p,b){const m=p.contextKeyService,s=this.ctxMenuService.createMenu({id:o.MenuId.BreadcrumbsTitleContext,contextKeyService:m}).getMergedMenuNodes();this.ctxMenuRenderer.show({anchor:{x:u,y:G},menuNodes:s,args:[{uri:b,group:p}]})}};n.__decorate([(0,a.Autowired)(o.AbstractContextMenuService),n.__metadata("design:type",o.AbstractContextMenuService)],I.prototype,"ctxMenuService",void 0),n.__decorate([(0,a.Autowired)(o.ICtxMenuRenderer),n.__metadata("design:type",o.ICtxMenuRenderer)],I.prototype,"ctxMenuRenderer",void 0),I=n.__decorate([(0,a.Injectable)()],I),e.BreadCrumbsMenuService=I},94617:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.EditorContextMenuController=void 0;const n=t(85608),a=t(41869),o=t(93899),I=n.__importStar(t(20868)),g=n.__importStar(t(50189)),u=t(85139),G=t(19582),p=t(31324),b=t(27416);class m extends a.Disposable{static get(s){return s.getContribution(b.ContextMenuController.ID)}constructor(s,l,r,c){super(),this.contextMenuService=s,this.globalContextKeyService=l,this.contextMenuRenderer=r,this.codeEditor=c,this.contextKeyService=this.registerDispose(this.globalContextKeyService.createScoped(this.codeEditor._contextKeyService)),this.addDispose(this.codeEditor.onContextMenu(h=>this.onContextMenu(h))),this.addDispose(this.codeEditor.onKeyDown(h=>{h.keyCode===u.KeyCode.ContextMenu&&(h.preventDefault(),h.stopPropagation(),this.showContextMenu())}))}showContextMenu(s){if(!this.codeEditor.getOption(p.EditorOption.contextmenu)||!this.codeEditor.hasModel())return;if(!this.contextMenuService){this.codeEditor.focus();return}const l=this.getMenuNodes();l.length>0&&this._doShowContextMenu(l,s)}onContextMenu(s){if(!this.codeEditor.hasModel())return;if(!this.codeEditor.getOption(p.EditorOption.contextmenu)){this.codeEditor.focus(),s.target.position&&!this.codeEditor.getSelection().containsPosition(s.target.position)&&this.codeEditor.setPosition(s.target.position);return}if(s.target.type===G.MouseTargetType.OVERLAY_WIDGET||s.target.type===G.MouseTargetType.CONTENT_TEXT&&s.target.detail.injectedText||(s.event.preventDefault(),s.event.stopPropagation(),s.target.type!==G.MouseTargetType.CONTENT_TEXT&&s.target.type!==G.MouseTargetType.CONTENT_EMPTY&&s.target.type!==G.MouseTargetType.TEXTAREA))return;if(this.codeEditor.focus(),s.target.position){let r=!1;for(const c of this.codeEditor.getSelections())if(c.containsPosition(s.target.position)){r=!0;break}r||this.codeEditor.setPosition(s.target.position)}let l=null;s.target.type!==G.MouseTargetType.TEXTAREA&&(l={x:s.event.posx-1,width:2,y:s.event.posy-1,height:2}),this.showContextMenu(l)}_doShowContextMenu(s,l){const r=this.codeEditor;if(!r.hasModel())return;const c=r.getOption(I.editor.EditorOption.hover);if(r.updateOptions({hover:{enabled:!1}}),!l){r.revealPosition(r.getPosition(),I.editor.ScrollType.Immediate),r.render();const h=r.getScrolledVisiblePosition(r.getPosition()),v=g.getDomNodePagePosition(r.getDomNode()),f=v.left+h.left,W=v.top+h.top+h.height;l={x:f,y:W}}this.contextMenuRenderer.show({anchor:{x:l.x-window.scrollX,y:l.y-window.scrollY},menuNodes:s,args:[r.getModel().uri],onHide:()=>{this.codeEditor.updateOptions({hover:c}),this.codeEditor.focus()}})}getMenuNodes(){const s=this.contextMenuService.createMenu({id:o.MenuId.EditorContext,contextKeyService:this.contextKeyService}),l=s.getMergedMenuNodes();return s.dispose(),l}}e.EditorContextMenuController=m,m.ID="editor.contrib.contextmenu"},8135:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.EditorActionRegistryImpl=void 0;const n=t(85608),a=t(76003),o=t(41869),I=t(93899);let g=class extends o.Disposable{constructor(){super(...arguments),this._cachedMenus=new Map}registerEditorAction(){return this.logger.warn(new Error("registerEditorAction has been deprecated, use menu apis instead")),new o.Disposable}getMenu(G){const p=G.currentFocusedEditor?"editor-menu-"+G.currentFocusedEditor.getId():"editor-group-menu-"+G.name;if(!this._cachedMenus.has(p)){const b=G.currentFocusedEditor?this.contextKeyService.createScoped(G.currentFocusedEditor.monacoEditor._contextKeyService):G.contextKeyService,m=this.registerDispose(this.menuService.createMenu({id:I.MenuId.EditorTitle,contextKeyService:b}));this._cachedMenus.set(p,m)}return this._cachedMenus.get(p)}};n.__decorate([(0,a.Autowired)(o.IContextKeyService),n.__metadata("design:type",Object)],g.prototype,"contextKeyService",void 0),n.__decorate([(0,a.Autowired)(I.AbstractContextMenuService),n.__metadata("design:type",I.AbstractContextMenuService)],g.prototype,"menuService",void 0),n.__decorate([(0,a.Autowired)(o.ILogger),n.__metadata("design:type",Object)],g.prototype,"logger",void 0),g=n.__decorate([(0,a.Injectable)()],g),e.EditorActionRegistryImpl=g},32837:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.OpenTypeMenuContribution=void 0;const n=t(85608),a=t(76003),o=t(41869),I=t(93899),g=t(43718),u=t(98295),G=t(82196),p=t(51553);var b;(function(d){d.EDITOR_OPEN_TYPE={id:"editor.opentype"}})(b||(b={}));let m=class extends g.Disposable{registerCommands(s){s.registerCommand(b.EDITOR_OPEN_TYPE,{execute:(...l)=>{const r=l[l.length-1];r&&typeof r=="string"&&this.workbenchEditorService.currentEditorGroup.changeOpenType(r)}})}constructor(){super(),this.registerEditorOpenTypes(),this.disposables.push(this.workbenchEditorService.onActiveResourceChange(s=>{this.registerEditorOpenTypes()}))}registerEditorOpenTypes(){const s=this.workbenchEditorService.currentEditorGroup.availableOpenTypes;this.menuRegistry.getMenuItems(I.MenuId.OpenTypeSubmenuContext).map(r=>r.command).forEach(r=>{this.menuRegistry.unregisterMenuItem(I.MenuId.OpenTypeSubmenuContext,r.id)}),this.menuRegistry.unregisterMenuItem(I.MenuId.EditorTitle,I.MenuId.OpenTypeSubmenuContext),s.length>=2&&this.registerMenuItem(s)}registerMenus(s){}registerMenuItem(s){const l={submenu:I.MenuId.OpenTypeSubmenuContext,label:(0,g.localize)("editor.openType"),group:"navigation",order:Number.MIN_SAFE_INTEGER,iconClass:(0,o.getIcon)("setting"),type:"default"};this.menuRegistry.registerMenuItem(I.MenuId.EditorTitle,l),s.forEach(r=>{var c;this.menuRegistry.registerMenuItem(I.MenuId.OpenTypeSubmenuContext,{command:{id:b.EDITOR_OPEN_TYPE.id,label:r.title||r.componentId||r.type},extraTailArgs:[(c=r.componentId)!==null&&c!==void 0?c:r.type],group:"navigation"})})}};n.__decorate([(0,a.Autowired)(G.WorkbenchEditorService),n.__metadata("design:type",p.WorkbenchEditorServiceImpl)],m.prototype,"workbenchEditorService",void 0),n.__decorate([(0,a.Autowired)(I.IMenuRegistry),n.__metadata("design:type",I.IMenuRegistry)],m.prototype,"menuRegistry",void 0),m=n.__decorate([(0,u.Domain)(g.CommandContribution,I.MenuContribution),n.__metadata("design:paramtypes",[])],m),e.OpenTypeMenuContribution=m},78680:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.TabTitleMenuService=void 0;const n=t(85608),a=t(76003),o=t(41869),I=t(91830),g=t(93899);let u=class{get editorTitleContextKey(){return this._editorTitleContextKey||(this._editorTitleContextKey=this.contextKeyService.createKey("editorTitleContext",!1)),this._editorTitleContextKey}show(p,b,m,d){const s=d.contextKeyService.createScoped();new I.ResourceContextKey(s).set(m),this.editorTitleContextKey.set(!0);const r=this.ctxMenuService.createMenu({id:g.MenuId.EditorTitleContext,contextKeyService:s}),c=r.getMergedMenuNodes();r.dispose(),s.dispose(),this.ctxMenuRenderer.show({anchor:{x:p,y:b},menuNodes:c,args:[{uri:m,group:d}],onHide:()=>{this.editorTitleContextKey.set(!1)}})}};n.__decorate([(0,a.Autowired)(g.AbstractContextMenuService),n.__metadata("design:type",g.AbstractContextMenuService)],u.prototype,"ctxMenuService",void 0),n.__decorate([(0,a.Autowired)(g.ICtxMenuRenderer),n.__metadata("design:type",g.ICtxMenuRenderer)],u.prototype,"ctxMenuRenderer",void 0),n.__decorate([(0,a.Autowired)(o.IContextKeyService),n.__metadata("design:type",Object)],u.prototype,"contextKeyService",void 0),u=n.__decorate([(0,a.Injectable)()],u),e.TabTitleMenuService=u},86273:(L,e,t)=>{"use strict";var n;Object.defineProperty(e,"__esModule",{value:!0}),e.DocumentMergeConflict=e.MergeConflictParser=e.TextLine=void 0;const a=t(85608),o=t(76003),I=t(43718),g=a.__importStar(t(20868)),u="<<<<<<<",G="|||||||",p="=======",b=">>>>>>>";class m{constructor(h,v){if(typeof v!="number"||v<=0||v>h.getLineCount())throw new Error("Illegal value for `line`");this.text=h.getLineContent(v),this.firstNonWhitespaceCharacterIndex=/^(\s*)/.exec(this.text)[1].length,this.range=new g.Range(v,1,v,this.text.length+1),this.rangeIncludingLineBreak=v<=h.getLineCount()?new g.Range(v,1,v+1,1):this.range,this.lineNumber=v,this.isEmptyOrWhitespace=this.firstNonWhitespaceCharacterIndex===this.text.length}}e.TextLine=m;let d=n=class extends I.Disposable{constructor(){super(...arguments),this.cache=new I.LRUCache(100),this._conflictTextCaches=new Map,this._conflictRangeCaches=new Map}static createCacheKey(h){return`${h.uri.toString()}-${h.getVersionId()}`}scanDocument(h){const v=n.createCacheKey(h);if(this.cache.has(v))return this.cache.get(v);let f=null;const W=[],N=this._conflictTextCaches.get(h.uri.toString());for(let y=0;y<h.getLineCount();y++){const E=new m(h,y+1);if(!(!E||E.isEmptyOrWhitespace)){if(E.text.startsWith(u)){if(f!==null){f=null;break}f={startHeader:E,commonAncestors:[]}}else if(f&&!f.splitter&&E.text.startsWith(G))f.commonAncestors.push(E);else if(f&&!f.splitter&&E.text===p)f.splitter=E;else if(f&&E.text.startsWith(b)){f.endFooter=E;const R=s(h,f);R!==null&&W.push(R),f=null}}}if(!N&&W.length){this._conflictTextCaches.set(h.uri.toString(),h.getValue());const y=[];W.filter(Boolean).forEach(E=>{const R=E.range;y.push({id:(0,I.uuid)(),range:R,text:h.getValueInRange(R),isResolved:!1})}),this._conflictRangeCaches.set(h.uri.toString(),y)}const Z=W?.filter(Boolean).map(y=>new r(y));return this.cache.set(v,Z),Z}getConflictText(h){return this._conflictTextCaches.get(h)}getAllConflictsByUri(h){return this._conflictRangeCaches.get(h)}getAllConflicts(){return this._conflictRangeCaches}setConflictResolved(h,v){const f=this._conflictRangeCaches.get(h);if(f){const W=f.find(N=>N.id===v);W&&(W.isResolved=!0)}}deleteConflictText(h){this._conflictTextCaches.delete(h)}dispose(){this._conflictTextCaches.clear(),this._conflictRangeCaches.clear()}};d=n=a.__decorate([(0,o.Injectable)()],d),e.MergeConflictParser=d;function s(c,h){if(!h.startHeader||!h.splitter||!h.endFooter)return null;const v=h.commonAncestors[0]||h.splitter;return{current:{header:h.startHeader.range,decoratorContent:new g.Range(h.startHeader.rangeIncludingLineBreak.endLineNumber,h.startHeader.rangeIncludingLineBreak.endColumn,l(c,v.range.getStartPosition(),h.startHeader.rangeIncludingLineBreak.getEndPosition()).lineNumber,l(c,v.range.getStartPosition(),h.startHeader.rangeIncludingLineBreak.getEndPosition()).column),content:new g.Range(h.startHeader.rangeIncludingLineBreak.endLineNumber,h.startHeader.rangeIncludingLineBreak.endColumn,v.range.startLineNumber,v.range.startColumn),name:h.startHeader.text.substring(u.length+1)},commonAncestors:h.commonAncestors.map((f,W,N)=>{const Z=N[W+1]||h.splitter;return{header:f.range,decoratorContent:new g.Range(f.rangeIncludingLineBreak.endLineNumber,f.rangeIncludingLineBreak.endColumn,l(c,Z.range.getStartPosition(),f.rangeIncludingLineBreak.getEndPosition()).lineNumber,l(c,Z.range.getStartPosition(),f.rangeIncludingLineBreak.getEndPosition()).lineNumber),content:new g.Range(f.rangeIncludingLineBreak.endLineNumber,f.rangeIncludingLineBreak.endColumn,Z.range.startLineNumber,Z.range.startColumn),name:f.text.substring(G.length+1)}}),splitter:h.splitter.range,incoming:{header:h.endFooter.range,decoratorContent:new g.Range(h.splitter.rangeIncludingLineBreak.endLineNumber,h.splitter.rangeIncludingLineBreak.endColumn,l(c,h.endFooter.range.getStartPosition(),h.splitter.rangeIncludingLineBreak.getEndPosition()).lineNumber,l(c,h.endFooter.range.getStartPosition(),h.splitter.rangeIncludingLineBreak.getEndPosition()).column),content:new g.Range(h.splitter.rangeIncludingLineBreak.endLineNumber,h.splitter.rangeIncludingLineBreak.endColumn,h.endFooter.range.startLineNumber,h.endFooter.range.startColumn),name:h.endFooter.text.substring(b.length+1)},range:new g.Range(h.startHeader.range.startLineNumber,h.startHeader.range.startColumn,h.endFooter.range.endLineNumber,h.endFooter.range.endColumn)}}function l(c,h,v){if(h.equals(v))return h;let f=h.lineNumber,W=h.column-1;return W<0&&(f--,W=new m(c,f).range.endColumn),new g.Position(f,W)}class r{constructor(h){this.range=h.range,this.current=h.current,this.incoming=h.incoming,this.commonAncestors=h.commonAncestors,this.splitter=h.splitter}}e.DocumentMergeConflict=r},31375:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});const n=t(85608);n.__exportStar(t(86273),e),n.__exportStar(t(87334),e)},71433:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.useMergeConflictModel=void 0;const a=t(85608).__importDefault(t(12784)),o=t(14041),I=t(41869),g=t(70392),u=t(64544),G=t(90775);function p(b){const m=(0,u.useEditorDocumentModelRef)(b),[d,s]=(0,o.useState)(!1),[l,r]=(0,o.useState)(0),c=(0,I.useInjectable)(G.MergeConflictService),h=(0,o.useMemo)(()=>(0,I.formatLocalize)("merge-conflicts.merge.conflict.remain",l),[l]);return(0,o.useEffect)(()=>{const v=new g.DisposableStore;if(m){const{instance:f}=m,W=()=>{const Z=c.scanDocument(f.getMonacoModel());r(Z),Z>0&&s(!0)},N=(0,a.default)(W,150);return v.add(f.getMonacoModel().onDidChangeContent(()=>{N()})),W(),()=>{v.dispose(),c.clear(),s(!1),r(0)}}},[m]),{isVisiable:d,summary:h,canNavigate:l>0}}e.useMergeConflictModel=p},90775:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.MergeConflictService=void 0;const n=t(85608),a=t(76003),o=t(34712),I=t(72665),g=t(82196),u=t(86273);let G=class{constructor(){this.conflicts=[]}scanDocument(b){return this.conflicts=this.parser.scanDocument(b),this.conflicts.length}clear(){this.conflicts=[]}async navigate(b,m){this.conflicts=this.parser.scanDocument(b.monacoEditor.getModel());const d=this.conflicts.map(r=>r.range),s=(0,o.findRangeForNavigation)(m,d,b.monacoEditor.getPosition());if(s)if(s.canNavigate){if(!s.range)return}else{this.messageService.warning("No other merge conflicts within this file");return}else{this.messageService.warning("No merge conflicts found in this file");return}b.monacoEditor.setPosition(s.range.getStartPosition());const l=s.range.delta(-1);b.monacoEditor.revealRangeNearTopIfOutsideViewport(l),b.monacoEditor.focus()}navigateNext(){return this.navigate(this.editorService.currentEditor,o.NavigationDirection.Forwards)}navigatePrevious(){return this.navigate(this.editorService.currentEditor,o.NavigationDirection.Backwards)}};n.__decorate([(0,a.Autowired)(u.MergeConflictParser),n.__metadata("design:type",u.MergeConflictParser)],G.prototype,"parser",void 0),n.__decorate([(0,a.Autowired)(g.WorkbenchEditorService),n.__metadata("design:type",g.WorkbenchEditorService)],G.prototype,"editorService",void 0),n.__decorate([(0,a.Autowired)(I.IMessageService),n.__metadata("design:type",Object)],G.prototype,"messageService",void 0),G=n.__decorate([(0,a.Injectable)()],G),e.MergeConflictService=G},87334:(L,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AI_COMMAND=void 0;var t;(function(n){const a="merge-conflict";n.ACCEPT=`${a}.ai.accept`,n.REVERT=`${a}.ai.revert`})(t=e.AI_COMMAND||(e.AI_COMMAND={}))},69647:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.MergeEditorFloatComponents=void 0;const a=t(85608).__importStar(t(14041)),o=t(41869),I=t(61468),g=t(71433),u=t(90775),G=({resource:p})=>{const{uri:b}=p,m=(0,o.useInjectable)(u.MergeConflictService),d=(0,o.useInjectable)(o.CommandService),s=(0,o.useInjectable)(o.CommandRegistry),{canNavigate:l,isVisiable:r,summary:c}=(0,g.useMergeConflictModel)(b),[h,v]=(0,a.useState)(!1),f=(0,a.useCallback)(()=>{m.navigatePrevious()},[]),W=(0,a.useCallback)(()=>{m.navigateNext()},[]),N=(0,a.useCallback)(async()=>{v(!0),h?await d.executeCommand(o.MERGE_CONFLICT_COMMANDS.AI_ALL_ACCEPT_STOP.id,b):await d.executeCommand(o.MERGE_CONFLICT_COMMANDS.AI_ALL_ACCEPT.id,b),v(!1)},[b,h]);return r?a.default.createElement(I.MergeActions,{uri:b,editorType:"text",summary:c,canNavigate:l,handleNext:W,handlePrev:f,isAIResolving:h,onAIResolve:N,onReset:()=>{d.executeCommand(o.MERGE_CONFLICT_COMMANDS.ALL_RESET.id,b)},onSwitchEditor:()=>{[o.SCM_COMMANDS.GIT_OPEN_MERGE_EDITOR,o.SCM_COMMANDS._GIT_OPEN_MERGE_EDITOR].forEach(({id:Z})=>{s.getCommand(Z)&&s.isEnabled(Z)&&d.executeCommand(Z,b)})}}):null};e.MergeEditorFloatComponents=G},6950:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.MergeEditorContribution=void 0;const n=t(85608),a=t(76003),o=t(41869),I=t(82196),g=t(14769),u=t(69647),G="merge.editor.floating.widget";let p=class extends o.Disposable{registerResource(m){m.registerResourceProvider(this.mergeEditorResourceProvider)}registerEditorComponent(m){m.registerEditorComponentResolver(I.EditorOpenType.mergeEditor,(d,s)=>{s.push({type:I.EditorOpenType.mergeEditor})}),m.registerEditorSideWidget({id:G,component:u.MergeEditorFloatComponents,displaysOnResource:d=>{const{uri:s}=d;return s.scheme===o.Schemes.file}})}};n.__decorate([(0,a.Autowired)(),n.__metadata("design:type",g.MergeEditorResourceProvider)],p.prototype,"mergeEditorResourceProvider",void 0),p=n.__decorate([(0,o.Domain)(I.BrowserEditorContribution)],p),e.MergeEditorContribution=p},14769:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.MergeEditorResourceProvider=void 0;const n=t(85608),a=t(76003),o=t(41869),I=t(96177);let g=class extends o.WithEventBus{constructor(){super(...arguments),this.scheme="mergeEditor"}provideResource(G){const{openMetadata:p,name:b}=G.getParsedQuery();try{const m=JSON.parse(p),{ancestor:d,input1:s,input2:l,output:r}=m,c=new o.URI(r),h=this.labelService.getIcon(c);return{supportsRevive:!0,name:b,icon:h,uri:G,metadata:{ancestor:d,input1:s,input2:l,output:r}}}catch{throw Error("invalid merge editor resource parse")}}shouldCloseResource(G,p){const{openMetadata:b}=G.uri.getParsedQuery();try{const m=JSON.parse(b),{output:d}=m,s=new o.URI(d);return this.mergeEditorService.fireRestoreState(s),!0}catch{throw Error("invalid merge editor resource parse")}}};n.__decorate([(0,a.Autowired)(o.LabelService),n.__metadata("design:type",o.LabelService)],g.prototype,"labelService",void 0),n.__decorate([(0,a.Autowired)(I.MergeEditorService),n.__metadata("design:type",I.MergeEditorService)],g.prototype,"mergeEditorService",void 0),g=n.__decorate([(0,a.Injectable)()],g),e.MergeEditorResourceProvider=g},98388:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CallHierarchyContribution=e.executeProvideOutgoingCallsCommand=e.executeProvideIncomingCallsCommand=e.executePrepareCallHierarchyCommand=void 0;const n=t(85608),a=t(76003),o=t(41869),I=t(40191),g=t(55218),u=t(82196);e.executePrepareCallHierarchyCommand={id:"_executePrepareCallHierarchy"},e.executeProvideIncomingCallsCommand={id:"_executeProvideIncomingCalls"},e.executeProvideOutgoingCallsCommand={id:"_executeProvideOutgoingCalls"};const G=new I.RawContextKey("editorHasCallHierarchyProvider",!1);let p=class{registerCommands(m){m.registerCommand(e.executePrepareCallHierarchyCommand,{execute:(d,s)=>this.callHierarchyService.prepareCallHierarchyProvider(d,s)}),m.registerCommand(e.executeProvideIncomingCallsCommand,{execute:d=>this.callHierarchyService.provideIncomingCalls(d)}),m.registerCommand(e.executeProvideOutgoingCallsCommand,{execute:d=>this.callHierarchyService.provideOutgoingCalls(d)})}registerEditorFeature(m){this.ctxHasProvider=G.bind(this.contextKeyService),m.registerEditorFeatureContribution({contribute:d=>{const s=d.monacoEditor;return o.Event.any(s.onDidChangeModel,s.onDidChangeModelLanguage,g.CallHierarchyProviderRegistry.onDidChange)(()=>{s.hasModel()&&this.ctxHasProvider.set(g.CallHierarchyProviderRegistry.has(s.getModel()))})}})}};n.__decorate([(0,a.Autowired)(o.IContextKeyService),n.__metadata("design:type",Object)],p.prototype,"contextKeyService",void 0),n.__decorate([(0,a.Autowired)(g.ICallHierarchyService),n.__metadata("design:type",Object)],p.prototype,"callHierarchyService",void 0),p=n.__decorate([(0,o.Domain)(o.CommandContribution,u.BrowserEditorContribution)],p),e.CallHierarchyContribution=p},45483:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CallHierarchyService=e.CallHierarchyModel=void 0;const n=t(85608),a=t(76003),o=t(43718),I=t(55218),g=t(96689),{isNonEmptyArray:u}=o.arrays;class G{static async create(m,d,s){const[l]=I.CallHierarchyProviderRegistry.ordered(m);if(!l)return;const r=await l.prepareCallHierarchy(m,d,s);if(r)return new G(r.roots.reduce((c,h)=>c+h._sessionId,""),l,r.roots,new o.RefCountedDisposable(r))}constructor(m,d,s,l){this.id=m,this.provider=d,this.roots=s,this.ref=l,this.root=s[0]}dispose(){this.ref.release()}fork(m){const d=this;return new class extends G{constructor(){super(d.id,d.provider,[m],d.ref.acquire())}}}async resolveIncomingCalls(m,d){try{const s=await this.provider.provideIncomingCalls(m,d);if(u(s))return s}catch(s){(0,o.onUnexpectedExternalError)(s)}return[]}async resolveOutgoingCalls(m,d){try{const s=await this.provider.provideOutgoingCalls(m,d);if(u(s))return s}catch(s){(0,o.onUnexpectedExternalError)(s)}return[]}}e.CallHierarchyModel=G;let p=class{constructor(){this.models=new Map}registerCallHierarchyProvider(m,d){I.CallHierarchyProviderRegistry.register(m,d)}async prepareCallHierarchyProvider(m,d){var s;let l=(s=this.modelService.getModelReference(o.URI.parse(m.toString())))===null||s===void 0?void 0:s.instance.getMonacoModel(),r;if(!l){const c=await this.modelService.createModelReference(o.URI.parse(m.toString()));l=c.instance.getMonacoModel(),r=c}try{const c=await G.create(l,d,o.CancellationToken.None);return c?(this.models.set(c.id,c),this.models.forEach((h,v,f)=>{f.size>10&&(h.dispose(),this.models.delete(v))}),[c.root]):[]}finally{r?.dispose()}}provideIncomingCalls(m){const d=this.models.get(m._sessionId);if(d)return d.resolveIncomingCalls(m,o.CancellationToken.None)}provideOutgoingCalls(m){const d=this.models.get(m._sessionId);if(d)return d.resolveOutgoingCalls(m,o.CancellationToken.None)}};n.__decorate([(0,a.Autowired)(g.IEditorDocumentModelService),n.__metadata("design:type",Object)],p.prototype,"modelService",void 0),p=n.__decorate([(0,a.Injectable)()],p),e.CallHierarchyService=p},9447:(L,e,t)=>{"use strict";var n;Object.defineProperty(e,"__esModule",{value:!0}),e.MonacoActionRegistry=e.MonacoCommandRegistry=e.MonacoCommandService=e.MonacoCommandType=void 0;const a=t(85608),o=t(76003),I=t(41869),g=t(20868),u=t(21880),G=t(52902),p=t(60304),b=t(82196),m={"editor.action.smartSelect.grow":"editor.action.smartSelect.expand",cursorWordPartStartLeft:"cursorWordPartLeft",cursorWordPartStartLeftSelect:"cursorWordPartLeftSelect","editor.action.previewDeclaration":"editor.action.peekDefinition","editor.action.openDeclarationToTheSide":"editor.action.revealDefinitionAside","editor.action.goToDeclaration":"editor.action.revealDefinition"};var d;(function(c){c[c.ACTION=0]="ACTION",c[c.COMMAND=1]="COMMAND"})(d=e.MonacoCommandType||(e.MonacoCommandType={}));let s=class{constructor(){this._onDidExecuteCommand=new I.Emitter,this.onDidExecuteCommand=this._onDidExecuteCommand.event,this._onWillExecuteCommand=new I.Emitter}setDelegate(h){this.delegate=h}get onWillExecuteCommand(){return this._onWillExecuteCommand.event}async executeCommand(h,...v){this.logger.debug("command: "+h),this._onWillExecuteCommand.fire({commandId:h,args:v});try{const f=await this.commandService.executeCommand(h,...v);return this._onDidExecuteCommand.fire({commandId:h,args:v}),f}catch(f){if(f?.name!==`${I.HANDLER_NOT_FOUND}:${h}`)throw f}if(this.delegate){const f=this.delegate.executeCommand(m[h]?m[h]:h,...v);return this._onDidExecuteCommand.fire({commandId:h,args:v}),f}return this.reporterService.point(I.REPORT_NAME.NOT_FOUND_COMMAND,h),Promise.reject(new Error(`command '${h}' not found`))}};a.__decorate([(0,o.Autowired)(I.ILogger),a.__metadata("design:type",Object)],s.prototype,"logger",void 0),a.__decorate([(0,o.Autowired)(I.CommandRegistry),a.__metadata("design:type",Object)],s.prototype,"commandRegistry",void 0),a.__decorate([(0,o.Autowired)(I.CommandService),a.__metadata("design:type",Object)],s.prototype,"commandService",void 0),a.__decorate([(0,o.Autowired)(I.IReporterService),a.__metadata("design:type",Object)],s.prototype,"reporterService",void 0),s=a.__decorate([(0,o.Injectable)()],s),e.MonacoCommandService=s;let l=class{validate(h){var v;return(v=this.commands.getRawCommand(h))===null||v===void 0?void 0:v.id}registerCommand(h,v){this.commands.registerCommand(h,this.newHandler(v))}registerHandler(h,v){this.commands.registerHandler(h,this.newHandler(v))}newHandler(h){return{execute:(...v)=>this.execute(h,...v)}}execute(h,...v){const f=this.getActiveCodeEditor();return f?Promise.resolve(h.execute(f,...v)):Promise.resolve()}get codeEditorService(){return this.overrideServiceRegistry.getRegisteredService(I.ServiceNames.CODE_EDITOR_SERVICE)}getActiveCodeEditor(){var h;const v=(h=this.codeEditorService)===null||h===void 0?void 0:h.getFocusedCodeEditor();if(v)return v;if(this.editorCollectionService.currentEditor)return this.editorCollectionService.currentEditor.monacoEditor;const f=this.workbenchEditorService.currentEditorGroup;if(f){const W=f.currentOrPreviousFocusedEditor||f.currentEditor;if(W)return W.monacoEditor}}};a.__decorate([(0,o.Autowired)(I.CommandRegistry),a.__metadata("design:type",Object)],l.prototype,"commands",void 0),a.__decorate([(0,o.Autowired)(b.WorkbenchEditorService),a.__metadata("design:type",b.WorkbenchEditorService)],l.prototype,"workbenchEditorService",void 0),a.__decorate([(0,o.Autowired)(b.EditorCollectionService),a.__metadata("design:type",b.EditorCollectionService)],l.prototype,"editorCollectionService",void 0),a.__decorate([(0,o.Autowired)(I.MonacoOverrideServiceRegistry),a.__metadata("design:type",I.MonacoOverrideServiceRegistry)],l.prototype,"overrideServiceRegistry",void 0),l=a.__decorate([(0,o.Injectable)()],l),e.MonacoCommandRegistry=l;let r=n=class{get globalInstantiationService(){const h=this.overrideServiceRegistry.getRegisteredService(I.ServiceNames.CODE_EDITOR_SERVICE),v=this.overrideServiceRegistry.getRegisteredService(I.ServiceNames.TEXT_MODEL_SERVICE),f=this.overrideServiceRegistry.getRegisteredService(I.ServiceNames.CONTEXT_KEY_SERVICE);return p.StandaloneServices.initialize({codeEditorService:h,textModelService:v,contextKeyService:f})}get monacoEditorRegistry(){return u.EditorExtensionsRegistry}get monacoCommands(){return u.CommandsRegistry.getCommands()}registerMonacoActions(){var h;const v=new Map(Array.from(this.monacoEditorRegistry.getEditorActions()).map(({id:f,label:W,alias:N})=>[f,{label:W,alias:N}]));for(const f of this.monacoCommands.keys()){if(n.EXCLUDE_ACTIONS.includes(f))continue;const W=(h=v.get(f))!==null&&h!==void 0?h:{},N=this.actAndComHandler(v,f);this.monacoCommandRegistry.registerCommand({id:f,label:W.label,labelLocalized:W.label&&W.alias?{alias:W.alias,localized:W.label,raw:W.label}:void 0},N);const Z=n.COMMON_ACTIONS.get(f);Z&&this.monacoCommandRegistry.registerHandler(Z,N)}}actAndComHandler(h,v){if(n.CONVERT_MONACO_ACTIONS_TO_CONTRIBUTION_ID.has(v)){const f=n.CONVERT_MONACO_ACTIONS_TO_CONTRIBUTION_ID.get(v);if(this.monacoEditorRegistry.getSomeEditorContributions([f]).length>0)return this.newCommandHandler(v)}return h.has(v)?this.newActionHandler(v):this.newCommandHandler(v)}isInternalExecuteCommand(h){return h.startsWith("_execute")}processInternalCommandArgument(h,v=[]){return this.isInternalExecuteCommand(h)?v.map(f=>f instanceof I.Uri?G.URI.revive(f):f):n.CONVERT_MONACO_COMMAND_ARGS.has(h)?n.CONVERT_MONACO_COMMAND_ARGS.get(h)(...v):v}newCommandHandler(h){return{execute:(v,...f)=>{var W;if(!v)return;const Z=!!this.monacoEditorRegistry.getEditorCommand(h)||!(this.isInternalExecuteCommand(h)||h==="setContext"||n.COMMON_ACTIONS.has(h))?v&&v._instantiationService:this.globalInstantiationService;if(!Z)return;const y=this.processInternalCommandArgument(h,f);return Z.invokeFunction((W=this.monacoCommands.get(h))===null||W===void 0?void 0:W.handler,...y)}}}newActionHandler(h){return{execute:v=>{const f=v.getAction(h);if(f&&f.isSupported())return this.runAction(h,v)}}}runAction(h,v){if(v){const f=v.getAction(h);if(f)return f.run()}return Promise.resolve()}newKeyboardHandler(h){return{execute:(v,...f)=>v.trigger("keyboard",h,f)}}};r.COMMON_ACTIONS=new Map([[g.DELEGATE_COMMANDS.UNDO,I.EDITOR_COMMANDS.UNDO.id],[g.DELEGATE_COMMANDS.REDO,I.EDITOR_COMMANDS.REDO.id],[g.DELEGATE_COMMANDS.SELECT_ALL,I.EDITOR_COMMANDS.SELECT_ALL.id]]),r.CONVERT_MONACO_COMMAND_ARGS=new Map([["editor.action.showReferences",(c,...h)=>[G.URI.parse(c),...h]],["editor.action.goToLocations",(c,...h)=>[G.URI.parse(c),...h]]]),r.CONVERT_MONACO_ACTIONS_TO_CONTRIBUTION_ID=new Map([["editor.action.rename","editor.contrib.renameController"]]),r.EXCLUDE_ACTIONS=["setContext","editor.action.quickCommand","editor.action.quickOutline","editor.action.toggleHighContrast","editor.action.gotoLine"],a.__decorate([(0,o.Autowired)(),a.__metadata("design:type",l)],r.prototype,"monacoCommandRegistry",void 0),a.__decorate([(0,o.Autowired)(I.MonacoOverrideServiceRegistry),a.__metadata("design:type",I.MonacoOverrideServiceRegistry)],r.prototype,"overrideServiceRegistry",void 0),a.__decorate([I.memoize,a.__metadata("design:type",Object),a.__metadata("design:paramtypes",[])],r.prototype,"globalInstantiationService",null),a.__decorate([I.memoize,a.__metadata("design:type",Object),a.__metadata("design:paramtypes",[])],r.prototype,"monacoEditorRegistry",null),a.__decorate([I.memoize,a.__metadata("design:type",Object),a.__metadata("design:paramtypes",[])],r.prototype,"monacoCommands",null),r=n=a.__decorate([(0,o.Injectable)()],r),e.MonacoActionRegistry=r},59137:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});const n=t(85608);n.__exportStar(t(98388),e),n.__exportStar(t(45483),e),n.__exportStar(t(88412),e),n.__exportStar(t(7795),e)},41977:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.TextmateRegistry=void 0;const n=t(85608),a=t(76003),o=t(43718);let I=class{constructor(){this.scopeToProvider=new Map,this.languageToConfig=new Map,this.languageIdToScope=new Map}registerTextmateGrammarScope(u,G){return this.scopeToProvider.has(u)&&(0,o.getDebugLogger)().warn(new Error(`a registered grammar provider for '${u}' scope is overridden`)),this.scopeToProvider.set(u,G),()=>{this.scopeToProvider.delete(u)}}getProvider(u){return this.scopeToProvider.get(u)}mapLanguageIdToTextmateGrammar(u,G){const p=this.getScope(u);return typeof p=="string"&&(0,o.getDebugLogger)().warn(new Error(`'${u}' language is remapped from '${p}' to '${G}' scope`)),this.languageIdToScope.set(u,G),()=>{this.languageIdToScope.delete(u)}}getScope(u){return this.languageIdToScope.get(u)}getLanguageId(u){for(const G of this.languageIdToScope.keys())if(this.languageIdToScope.get(G)===u)return G}registerGrammarConfiguration(u,G){return this.languageToConfig.has(u),this.languageToConfig.set(u,G),()=>{this.languageToConfig.delete(u)}}getGrammarConfiguration(u){return this.languageToConfig.get(u)||(()=>({}))}};I=n.__decorate([(0,a.Injectable)()],I),e.TextmateRegistry=I},58837:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.TextMateTokenizer=e.TokenizerState=void 0;const n=t(25726),a=t(86560),o=t(38390);class I{constructor(G){this.ruleStack=G}clone(){return new I(this.ruleStack)}equals(G){return G instanceof I&&(G===this||G.ruleStack===this.ruleStack)}}e.TokenizerState=I;class g extends a.Disposable{constructor(G,p,b){super(),this.grammar=G,this.options=p,this.conatinsEmbeddedLanguages=b,this.onDidEncounterLanguageEmitter=new a.Emitter,this.onDidEncounterLanguage=this.onDidEncounterLanguageEmitter.event,this.seenLanguages=[]}getInitialState(){return new I(n.INITIAL)}tokenizeEncoded(G,p){if(this.options.lineLimit!==void 0&&G.length>this.options.lineLimit){const m=new Uint32Array(2);return m[0]=0,m[1]=1<<o.MetadataConsts.LANGUAGEID_OFFSET|0<<o.MetadataConsts.TOKEN_TYPE_OFFSET|0<<o.MetadataConsts.FONT_STYLE_OFFSET|1<<o.MetadataConsts.FOREGROUND_OFFSET|2<<o.MetadataConsts.BACKGROUND_OFFSET|o.MetadataConsts.BALANCED_BRACKETS_MASK>>>0,{endState:new I(n.INITIAL),tokens:m}}const b=this.grammar.tokenizeLine2(G,p.ruleStack,500);if(this.conatinsEmbeddedLanguages){const m=this.seenLanguages,d=b.tokens;for(let s=0,l=d.length>>>1;s<l;s++){const r=d[(s<<1)+1],c=o.TokenMetadata.getLanguageId(r);m[c]||(m[c]=!0,this.onDidEncounterLanguageEmitter.fire(c))}}return{endState:new I(b.ruleStack),tokens:b.tokens}}tokenize(G,p){const b=this.grammar.tokenizeLine(G,p.ruleStack);return{endState:new I(b.ruleStack),tokens:b.tokens.map(m=>Object.assign(Object.assign({},m),{scopes:m.scopes.join(`\r
|
|
27681
27681
|
`)}))}}}e.TextMateTokenizer=g},54324:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.TextmateService=e.getLegalThemeName=e.getEncodedLanguageId=void 0;const n=t(85608),a=t(27107),o=t(25726),I=t(76003),g=t(41869),u=t(6858),G=t(43718),p=t(42933),b=t(52902),m=t(33096),d=t(89944),s=t(96068),l=t(14162),r=t(83e3),c=t(96689),h=t(41977),v=t(58837);let f=!1;function W(A){return b.monaco.languages.getEncodedLanguageId(A)}e.getEncodedLanguageId=W;function N(A){return A.toLowerCase().replace(/[^a-z0-9-]/g,"-")}e.getLegalThemeName=N;class Z{createOnigScanner(w){return new a.OnigScanner(w)}createOnigString(w){return new a.OnigString(w)}}function y(A){if(!Array.isArray(A))return!1;for(let w=0,F=A.length;w<F;w++)if(typeof A[w]!="string")return!1;return!0}function E(A){return y(A)&&A.length===2}let R=class extends g.WithEventBus{constructor(){super(...arguments),this.registeredGrammarDisposableCollection=new Map,this.injections=new Map,this.activatedLanguage=new Set,this.languageConfigLocation=new Map,this.languageConfiguration=new Map,this.initialized=!1,this.dynamicLanguages=[]}init(){this.initGrammarRegistry(),this.listenThemeChange(),this.listenPreferenceChange()}listenThemeChange(){this.eventBus.on(d.ThemeChangedEvent,w=>{const F=w.payload.theme.themeData;F!==this.editorTheme&&(this.editorTheme=F,this.setTheme(F))})}async registerLanguage(w,F){return this.registerLanguages([w],F)}reviveLanguageConfiguration(w,F){return{wordPattern:this.createRegex(F.wordPattern),autoClosingPairs:this.extractValidAutoClosingPairs(w,F),brackets:this.extractValidBrackets(w,F),comments:this.extractValidCommentRule(w,F),folding:this.convertFolding(F.folding),surroundingPairs:this.extractValidSurroundingPairs(w,F),indentationRules:this.convertIndentationRules(F.indentationRules),autoCloseBefore:F.autoCloseBefore,colorizedBracketPairs:this.extractValidColorizedBracketPairs(w,F),onEnterRules:this.extractValidOnEnterRules(w,F)}}get monacoLanguageService(){return r.StandaloneServices.get(l.ILanguageService)}isEmbeddedLanguageOnly(w){return!w.filenames&&!w.extensions&&!w.filenamePatterns&&!w.firstLine&&!w.mimetypes&&(!w.aliases||w.aliases.length===0)}async registerLanguages(w,F){const V=w.map(Y=>({id:Y.id,aliases:Y.aliases,extensions:Y.extensions,filenamePatterns:Y.filenamePatterns,filenames:Y.filenames,firstLine:Y.firstLine,mimetypes:Y.mimetypes}));if(this.dynamicLanguages.push(...V.filter(Y=>!this.isEmbeddedLanguageOnly(Y))),this.monacoLanguageService._registry._registerLanguages(V),w.forEach(async Y=>{this.languageConfigLocation.set(Y.id,F),this.addDispose(b.monaco.languages.onLanguage(Y.id,async()=>{await this.loadLanguageConfiguration(Y,F),this.activateLanguage(Y.id)})),this.languageConfiguration.set(Y.id,Y)}),this.initialized){const Y=this.editorDocumentModelService.getAllModels().map(_=>_.uri);for(const _ of Y){const H=this.editorDocumentModelService.getModelReference(G.URI.parse(_.codeUri.toString()));if(H&&H.instance){const S=H.instance.getMonacoModel().getLanguageId();if(this.languageConfiguration.has(S)){const X=this.languageConfigLocation.get(S);await this.loadLanguageConfiguration(this.languageConfiguration.get(S),X),this.activateLanguage(S)}}H?.dispose()}}}async registerGrammar(w,F){if(w.path){const V=w.path.replace(/^\.\//,"");w.location=F.resolve(V)}this.doRegisterGrammar(w)}unregisterGrammar(w){const F=this.registeredGrammarDisposableCollection.get(w.scopeName);F&&F.dispose()}doRegisterGrammar(w){const F=new G.Disposable;if(w.injectTo)for(const V of w.injectTo){let Y=this.injections.get(V);Y||(Y=[],F.addDispose(G.Disposable.create(()=>{this.injections.delete(V)})),this.injections.set(V,Y)),Y.push(w.scopeName)}F.addDispose(G.Disposable.create(this.textmateRegistry.registerTextmateGrammarScope(w.scopeName,{async getGrammarDefinition(){return{format:/\.json$/.test(w.path)?"json":"plist",location:w.location,content:await w.resolvedConfiguration}},getInjections:V=>{const Y=V.split(".");let _=[];for(let H=1;H<=Y.length;H++){const S=Y.slice(0,H).join(".");_=[..._,...this.injections.get(S)||[]]}return _}}))),w.language&&(F.addDispose(G.Disposable.create(this.textmateRegistry.mapLanguageIdToTextmateGrammar(w.language,w.scopeName))),F.addDispose(G.Disposable.create(this.textmateRegistry.registerGrammarConfiguration(w.language,()=>({embeddedLanguages:this.convertEmbeddedLanguages(w.embeddedLanguages),tokenTypes:this.convertTokenTypes(w.tokenTypes),balancedBracketSelectors:(0,s.asStringArray)(w.balancedBracketScopes,["*"]),unbalancedBracketSelectors:(0,s.asStringArray)(w.unbalancedBracketScopes,[])}))))),this.registeredGrammarDisposableCollection.set(w.scopeName,F)}async loadLanguageConfiguration(w,F){let V;if(typeof w.resolvedConfiguration=="object"){const Y=await w.resolvedConfiguration;V=this.reviveLanguageConfiguration(w.id,Y)}else if(w.configuration){const Y=w.configuration.replace(/^\.\//,""),_=F.resolve(Y),S=(await this.fileServiceClient.resolveContent(_.toString())).content;if(S){const X=this.safeParseJSON(S);X&&(V=this.reviveLanguageConfiguration(w.id,X))}}V&&b.monaco.languages.setLanguageConfiguration(w.id,V)}async activateLanguage(w){this.eventBus.fire(new g.ExtensionActivateEvent({topic:"onLanguage",data:w})),!this.activatedLanguage.has(w)&&(this.activatedLanguage.add(w),this.setTokensProviderByLanguageId(w))}async setTokensProviderByLanguageId(w){const F=this.textmateRegistry.getScope(w);if(!F||!this.textmateRegistry.getProvider(F))return;const Y={lineLimit:this.preferenceService.getValid("editor.maxTokenizationLineLength",2e4)},_=this.textmateRegistry.getGrammarConfiguration(w)(),H=W(w);try{const S=await this.grammarRegistry.loadGrammarWithConfiguration(F,H,_),X=_.tokenizerOption?_.tokenizerOption:Y,Q=_.embeddedLanguages&&Object.keys(_.embeddedLanguages).length>0;if(S){const O=new v.TextMateTokenizer(S,X,Q);this.addDispose(O.onDidEncounterLanguage(async M=>{const T=this.monacoLanguageService._registry.languageIdCodec.decodeLanguageId(M),x=this.languageConfigLocation.get(T);x&&this.languageConfiguration.has(T)&&(await this.loadLanguageConfiguration(this.languageConfiguration.get(T),x),this.activateLanguage(T))})),b.monaco.languages.setTokensProvider(w,O)}}catch(S){this.logger.warn("No grammar for this language id",w,S)}}setTheme(w){this.generateEncodedTokenColors(w),b.monaco.editor.defineTheme(N(w.name),w),b.monaco.editor.setTheme(N(w.name))}generateEncodedTokenColors(w){this.grammarRegistry.setTheme(w),w.encodedTokensColors=this.grammarRegistry.getColorMap(),w.encodedTokensColors[0]=null}createRegex(w){if(typeof w=="string")return new RegExp(w,"");if((0,G.isObject)(w)){if(typeof w.pattern!="string"||typeof w.flags<"u"&&typeof w.flags!="string")return;try{return new RegExp(w.pattern,w.flags)}catch{return}}}safeParseJSON(w){let F;try{return F=(0,g.parseWithComments)(w),F}catch(V){this.logger.error(`Language configuration file parsing error, ${V.stack}`);return}}convertFolding(w){if(!w)return;const F={offSide:w.offSide};return w.markers&&(F.markers={end:w.markers.end,start:w.markers.start}),F}convertIndentationRules(w){if(!w)return;const F={decreaseIndentPattern:this.createRegex(w.decreaseIndentPattern),increaseIndentPattern:this.createRegex(w.increaseIndentPattern)};return w.indentNextLinePattern&&(F.indentNextLinePattern=this.createRegex(w.indentNextLinePattern)),w.unIndentedLinePattern&&(F.unIndentedLinePattern=this.createRegex(w.unIndentedLinePattern)),F}convertEmbeddedLanguages(w){if(typeof w>"u"||w===null)return;const F=Object.create(null),V=Object.keys(w),Y=V.length;for(let _=0;_<Y;_++){const H=V[_],S=w[H];F[H]=W(S)}return F}convertTokenTypes(w){if(typeof w>"u"||w===null)return;const F=Object.create(null),V=Object.keys(w),Y=V.length;for(let _=0;_<Y;_++){const H=V[_];switch(w[H]){case"string":F[H]=2;break;case"other":F[H]=0;break;case"comment":F[H]=1;break}}return F}extractValidSurroundingPairs(w,F){if(!F)return;const V=F.surroundingPairs;if(typeof V>"u")return;if(!Array.isArray(V)){this.logger.warn(`[${w}: language configuration: expected \`surroundingPairs\` to be an array.`);return}let Y;for(let _=0,H=V.length;_<H;_++){const S=V[_];if(Array.isArray(S)){if(!E(S)){this.logger.warn(`[${w}: language configuration: expected \`surroundingPairs[${_}]\` to be an array of two strings or an object.`);continue}Y=Y||[],Y.push({open:S[0],close:S[1]})}else{if(typeof S!="object"){this.logger.warn(`[${w}: language configuration: expected \`surroundingPairs[${_}]\` to be an array of two strings or an object.`);continue}if(typeof S.open!="string"){this.logger.warn(`[${w}: language configuration: expected \`surroundingPairs[${_}].open\` to be a string.`);continue}if(typeof S.close!="string"){this.logger.warn(`[${w}: language configuration: expected \`surroundingPairs[${_}].close\` to be a string.`);continue}Y=Y||[],Y.push({open:S.open,close:S.close})}}return Y}extractValidColorizedBracketPairs(w,F){const V=F.colorizedBracketPairs;if(typeof V>"u")return;if(!Array.isArray(V)){this.logger.warn(`[${w}]: language configuration: expected \`colorizedBracketPairs\` to be an array.`);return}const Y=[];for(let _=0,H=V.length;_<H;_++){const S=V[_];if(!E(S)){this.logger.warn(`[${w}]: language configuration: expected \`colorizedBracketPairs[${_}]\` to be an array of two strings.`);continue}Y.push([S[0],S[1]])}return Y}extractValidOnEnterRules(w,F){const V=F.onEnterRules;if(typeof V>"u")return;if(!Array.isArray(V)){this.logger.warn(`[${w}]: language configuration: expected \`onEnterRules\` to be an array.`);return}let Y;for(let _=0,H=V.length;_<H;_++){const S=V[_];if(!(0,G.isObject)(S)){this.logger.warn(`[${w}]: language configuration: expected \`onEnterRules[${_}]\` to be an object.`);continue}if(!(0,G.isObject)(S.action)){this.logger.warn(`[${w}]: language configuration: expected \`onEnterRules[${_}].action\` to be an object.`);continue}let X;if(S.action.indent==="none")X=m.IndentAction.None;else if(S.action.indent==="indent")X=m.IndentAction.Indent;else if(S.action.indent==="indentOutdent")X=m.IndentAction.IndentOutdent;else if(S.action.indent==="outdent")X=m.IndentAction.Outdent;else{this.logger.warn(`[${w}]: language configuration: expected \`onEnterRules[${_}].action.indent\` to be 'none', 'indent', 'indentOutdent' or 'outdent'.`);continue}const Q={indentAction:X};S.action.appendText&&(typeof S.action.appendText=="string"?Q.appendText=S.action.appendText:this.logger.warn(`[${w}]: language configuration: expected \`onEnterRules[${_}].action.appendText\` to be undefined or a string.`)),S.action.removeText&&(typeof S.action.removeText=="number"?Q.removeText=S.action.removeText:this.logger.warn(`[${w}]: language configuration: expected \`onEnterRules[${_}].action.removeText\` to be undefined or a number.`));const O=this.createRegex(S.beforeText);if(!O)continue;const M={beforeText:O,action:Q};if(S.afterText){const T=this.createRegex(S.afterText);T&&(M.afterText=T)}if(S.previousLineText){const T=this.createRegex(S.previousLineText);T&&(M.previousLineText=T)}Y=Y||[],Y.push(M)}return Y}extractValidBrackets(w,F){const V=F.brackets;if(typeof V>"u")return;if(!Array.isArray(V)){this.logger.warn(`[${w}]: language configuration: expected \`brackets\` to be an array.`);return}let Y;for(let _=0,H=V.length;_<H;_++){const S=V[_];if(!E(S)){this.logger.warn(`[${w}]: language configuration: expected \`brackets[${_}]\` to be an array of two strings.`);continue}Y=Y||[],Y.push(S)}return Y}extractValidAutoClosingPairs(w,F){const V=F.autoClosingPairs;if(typeof V>"u")return;if(!Array.isArray(V)){this.logger.warn(`[${w}]: language configuration: expected \`autoClosingPairs\` to be an array.`);return}let Y;for(let _=0,H=V.length;_<H;_++){const S=V[_];if(Array.isArray(S)){if(!E(S)){this.logger.warn(`[${w}]: language configuration: expected \`autoClosingPairs[${_}]\` to be an array of two strings or an object.`);continue}Y=Y||[],Y.push({open:S[0],close:S[1]})}else{if(typeof S!="object"){this.logger.warn(`[${w}]: language configuration: expected \`autoClosingPairs[${_}]\` to be an array of two strings or an object.`);continue}if(typeof S.open!="string"){this.logger.warn(`[${w}]: language configuration: expected \`autoClosingPairs[${_}].open\` to be a string.`);continue}if(typeof S.close!="string"){this.logger.warn(`[${w}]: language configuration: expected \`autoClosingPairs[${_}].close\` to be a string.`);continue}if(typeof S.notIn<"u"&&!y(S.notIn)){this.logger.warn(`[${w}]: language configuration: expected \`autoClosingPairs[${_}].notIn\` to be a string array.`);continue}Y=Y||[],Y.push({open:S.open,close:S.close,notIn:S.notIn})}}return Y}extractValidCommentRule(w,F){const V=F.comments;if(typeof V>"u")return;if(typeof V!="object"){this.logger.warn(`[${w}]: language configuration: expected \`comments\` to be an object.`);return}let Y;return typeof V.lineComment<"u"&&(typeof V.lineComment!="string"?this.logger.warn(`[${w}]: language configuration: expected \`comments.lineComment\` to be a string.`):(Y=Y||{},Y.lineComment=V.lineComment)),typeof V.blockComment<"u"&&(E(V.blockComment)?(Y=Y||{},Y.blockComment=V.blockComment):this.logger.warn(`[${w}]: language configuration: expected \`comments.blockComment\` to be an array of two strings.`)),Y}async initGrammarRegistry(){this.grammarRegistry=new o.Registry({onigLib:this.getOnigLib(),loadGrammar:async w=>{const F=this.textmateRegistry.getProvider(w);if(F){const V=await F.getGrammarDefinition();if(!V.content){const H=(await this.fileServiceClient.resolveContent(V.location.toString())).content;V.content=V.format==="json"?this.safeParseJSON(H):H}let Y;return typeof V.content=="string"?Y=(0,o.parseRawGrammar)(V.content,V.format==="json"?"grammar.json":"grammar.plist"):Y=V.content,Y}},getInjections:w=>{const F=this.textmateRegistry.getProvider(w);return F&&F.getInjections?F.getInjections(w):[]}}),this.activateLanguages()}getLanguages(){return[...b.monaco.languages.getLanguages(),...this.dynamicLanguages]}activateLanguages(){for(const{id:w}of this.getLanguages())this.editorDocumentModelService.hasLanguage(w)&&this.activateLanguage(w)}async getOnigLib(){if(f)return new Z;const w=await this.rendererRuntime.provideResourceUri(u.EKnownResources.OnigWasm),V=await(await fetch(w)).arrayBuffer();return await(0,a.loadWASM)(V),f=!0,new Z}listenPreferenceChange(){this.preferenceService.onPreferenceChanged(w=>{if(w.preferenceName==="editor.maxTokenizationLineLength")for(const F of this.activatedLanguage)this.setTokensProviderByLanguageId(F)})}async testTokenize(w,F){const V=this.textmateRegistry.getScope(F);if(!V)return;const Y=this.textmateRegistry.getGrammarConfiguration(F)(),_=W(F),H=await this.grammarRegistry.loadGrammarWithConfiguration(V,_,Y);let S=o.INITIAL;const X=H.tokenizeLine(w,S),Q=(0,g.getDebugLogger)("tokenize");Q.log(`
|
|
27682
|
-
Tokenizing line: ${w}`);for(let O=0;O<X.tokens.length;O++){const M=X.tokens[O];Q.log(` - token from ${M.startIndex} to ${M.endIndex} (${w.substring(M.startIndex,M.endIndex)}) with scopes ${M.scopes.join(", ")}`)}S=X.ruleStack}dispose(){super.dispose(),this.monacoLanguageService._encounteredLanguages.clear()}};n.__decorate([(0,I.Autowired)(),n.__metadata("design:type",h.TextmateRegistry)],R.prototype,"textmateRegistry",void 0),n.__decorate([(0,I.Autowired)(p.IFileServiceClient),n.__metadata("design:type",Object)],R.prototype,"fileServiceClient",void 0),n.__decorate([(0,I.Autowired)(g.PreferenceService),n.__metadata("design:type",Object)],R.prototype,"preferenceService",void 0),n.__decorate([(0,I.Autowired)(g.ILogger),n.__metadata("design:type",Object)],R.prototype,"logger",void 0),n.__decorate([(0,I.Autowired)(c.IEditorDocumentModelService),n.__metadata("design:type",Object)],R.prototype,"editorDocumentModelService",void 0),n.__decorate([(0,I.Autowired)(u.RendererRuntime),n.__metadata("design:type",u.RendererRuntime)],R.prototype,"rendererRuntime",void 0),R=n.__decorate([(0,I.Injectable)()],R),e.TextmateService=R},88412:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.TypeHierarchyContribution=e.executeProvideSubtypesCommand=e.executeProvideSupertypesCommand=e.executePrepareTypeHierarchyCommand=void 0;const n=t(85608),a=t(76003),o=t(41869),I=t(40191),g=t(28694),u=t(82196);e.executePrepareTypeHierarchyCommand={id:"_executePrepareTypeHierarchy"},e.executeProvideSupertypesCommand={id:"_executeProvideSupertypes"},e.executeProvideSubtypesCommand={id:"_executeProvideSubtypes"};const G=new I.RawContextKey("editorHasCallHierarchyProvider",!1);let p=class{registerCommands(m){m.registerCommand(e.executePrepareTypeHierarchyCommand,{execute:(d,s)=>this.typeHierarchyService.prepareTypeHierarchyProvider(d,s)}),m.registerCommand(e.executeProvideSupertypesCommand,{execute:d=>this.typeHierarchyService.provideSupertypes(d)}),m.registerCommand(e.executeProvideSubtypesCommand,{execute:d=>this.typeHierarchyService.provideSubtypes(d)})}registerEditorFeature(m){this.ctxHasProvider=G.bind(this.contextKeyService),m.registerEditorFeatureContribution({contribute:d=>{const s=d.monacoEditor;return o.Event.any(s.onDidChangeModel,s.onDidChangeModelLanguage,g.TypeHierarchyProviderRegistry.onDidChange)(()=>{s.hasModel()&&this.ctxHasProvider.set(g.TypeHierarchyProviderRegistry.has(s.getModel()))})}})}};n.__decorate([(0,a.Autowired)(o.IContextKeyService),n.__metadata("design:type",Object)],p.prototype,"contextKeyService",void 0),n.__decorate([(0,a.Autowired)(g.ITypeHierarchyService),n.__metadata("design:type",Object)],p.prototype,"typeHierarchyService",void 0),p=n.__decorate([(0,o.Domain)(o.CommandContribution,u.BrowserEditorContribution)],p),e.TypeHierarchyContribution=p},7795:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.TypeHierarchyService=e.TypeHierarchyModel=void 0;const n=t(85608),a=t(76003),o=t(43718),I=t(28694),g=t(96689),{isNonEmptyArray:u}=o.arrays;class G{static async create(m,d,s){const[l]=I.TypeHierarchyProviderRegistry.ordered(m);if(!l)return;const r=await l.prepareTypeHierarchy(m,d,s);if(r)return new G(r.roots.reduce((c,h)=>c+h._sessionId,""),l,r.roots,new o.RefCountedDisposable(r))}constructor(m,d,s,l){this.id=m,this.provider=d,this.roots=s,this.ref=l,this.root=s[0]}dispose(){this.ref.release()}fork(m){const d=this;return new class extends G{constructor(){super(d.id,d.provider,[m],d.ref.acquire())}}}async provideSupertypes(m,d){try{const s=await this.provider.provideSupertypes(m,d);if(u(s))return s}catch(s){(0,o.onUnexpectedExternalError)(s)}return[]}async provideSubtypes(m,d){try{const s=await this.provider.provideSubtypes(m,d);if(u(s))return s}catch(s){(0,o.onUnexpectedExternalError)(s)}return[]}}e.TypeHierarchyModel=G;let p=class{constructor(){this.models=new Map}registerTypeHierarchyProvider(m,d){I.TypeHierarchyProviderRegistry.register(m,d)}async prepareTypeHierarchyProvider(m,d){var s;let l=(s=this.modelService.getModelReference(o.URI.parse(m.toString())))===null||s===void 0?void 0:s.instance.getMonacoModel(),r;if(!l){const c=await this.modelService.createModelReference(o.URI.parse(m.toString()));l=c.instance.getMonacoModel(),r=c}try{const c=await G.create(l,d,o.CancellationToken.None);return c?(this.models.set(c.id,c),this.models.forEach((h,v,f)=>{f.size>10&&(h.dispose(),this.models.delete(v))}),[c.root]):[]}finally{r?.dispose()}}async provideSupertypes(m){const d=this.models.get(m._sessionId);if(d)return d.provideSupertypes(m,o.CancellationToken.None)}async provideSubtypes(m){const d=this.models.get(m._sessionId);if(d)return d.provideSubtypes(m,o.CancellationToken.None)}};n.__decorate([(0,a.Autowired)(g.IEditorDocumentModelService),n.__metadata("design:type",Object)],p.prototype,"modelService",void 0),p=n.__decorate([(0,a.Injectable)()],p),e.TypeHierarchyService=p},93532:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.NavigationMenuModel=e.NavigationBarViewService=e.NavigationMenuContainer=e.NavigationMenu=e.NavigationItem=e.NavigationBar=void 0;const n=t(85608),a=n.__importDefault(t(53373)),o=t(83794),I=t(25150),g=n.__importStar(t(14041)),u=t(76003),G=t(97267),p=t(41869),b=t(26209),m=n.__importDefault(t(69418)),d=t(82196),s=t(50674),l=({editorGroup:h})=>{const v=(0,p.useInjectable)(d.IBreadCrumbService),f=(0,p.useDesignStyles)(m.default.navigation_container,"navigation_container"),W=(0,p.useDesignStyles)(m.default.navigation_icon,"navigation_icon");if((0,s.useUpdateOnGroupTabChange)(h),(0,p.useUpdateOnEvent)(v.onDidUpdateBreadCrumbResults,[],Z=>{var y;const E=h.currentEditor&&h.currentEditor.currentDocumentModel?h.currentEditor:null,R=h.currentEditor&&h.currentEditor.currentDocumentModel?h.currentEditor.currentDocumentModel.uri:(y=h.currentResource)===null||y===void 0?void 0:y.uri;return!!R&&Z.editor===E&&Z.uri.isEqual(R)}),h.resources.length===0||!h.currentResource)return null;let N;return h.currentEditor&&h.currentEditor.currentDocumentModel?N=v.getBreadCrumbs(h.currentEditor.currentDocumentModel.uri,h.currentEditor):N=v.getBreadCrumbs(h.currentResource.uri,null),N?N.length===0?null:g.default.createElement("div",{className:f,onContextMenu:Z=>{Z.preventDefault()}},N.map((Z,y)=>g.default.createElement(g.default.Fragment,{key:y+"-crumb:"+Z.name},y>0&&g.default.createElement(G.Icon,{icon:"right",size:"small",className:W}),g.default.createElement(e.NavigationItem,{part:Z,editorGroup:h})))):null};e.NavigationBar=l,e.NavigationItem=(0,g.memo)(({part:h,editorGroup:v})=>{const f=(0,p.useInjectable)(r),W=(0,p.useInjectable)(b.BreadCrumbsMenuService),N=(0,g.useRef)(),Z=(0,p.useDesignStyles)(m.default["navigation-part"],"navigation-part"),y=(0,g.useCallback)(async()=>{if(h.getSiblings&&N.current){const{left:E,top:R,height:A}=N.current.getBoundingClientRect(),w=await h.getSiblings();let F=E;window.innerWidth-F<210&&(F=window.innerWidth-200-5),f.showMenu(w.parts,F,R+A+5,w.currentIndex,h.uri,v)}},[N.current,h]);return g.default.createElement("span",{onClick:y,onContextMenu:E=>{!h.isSymbol&&h.uri&&W.show(E.nativeEvent.x,E.nativeEvent.y,v,h.uri),E.preventDefault()},className:Z,ref:N},h.icon&&g.default.createElement("span",{className:h.icon}),g.default.createElement("span",null,h.name))}),e.NavigationMenu=(0,I.observer)(({model:h})=>{let v=window.innerHeight-h.y-20,f=h.y;const W=h.parts.length*22;v<100&&v<W&&(v=100,f=window.innerHeight-20-v);const N=(0,g.useRef)(),Z=(0,p.useDesignStyles)(m.default.navigation_menu,"navigation_menu"),y=(0,p.useDesignStyles)(m.default.navigation_menu_item,"navigation_menu_item"),E=(0,p.useInjectable)(r),R=(0,g.useCallback)(()=>{if(N.current)try{const A=N.current.querySelector(`.${m.default.navigation_menu_item_current}`);A&&A.scrollIntoView({behavior:"auto",block:"center"})}catch{}},[N.current]);return g.default.createElement("div",{className:Z,style:{left:h.x+"px",top:f+"px",maxHeight:v+"px",height:W+"px"}},g.default.createElement(G.Scrollbars,{className:m.default.navigation_menu_items,universal:!0,forwardedRef:A=>{N.current=A,R()}},h.parts.map((A,w)=>{let F;const V=A.getChildren?async()=>{if(F){const{left:_,top:H,width:S}=F.getBoundingClientRect();let X=_+S+5;window.innerWidth-X<210&&(X=_-S-5);const Q=await A.getChildren();h.showSubMenu(Q,X,H,h)}}:void 0,Y=A.onClick?()=>{A.onClick(),E.dispose()}:void 0;return g.default.createElement("div",{onClick:Y||V,ref:_=>F=_,className:(0,a.default)(y,{[m.default.navigation_menu_item_current]:w===h.initialIndex}),key:"menu-"+A.name},g.default.createElement("span",{className:A.icon||(0,p.getIcon)("smile")}),g.default.createElement("span",{className:m.default.navigation_menu_item_label},A.name),A.getChildren&&g.default.createElement("span",{className:m.default.navigation_right,onClick:Y&&V?_=>{_.stopPropagation(),V()}:void 0},g.default.createElement(G.Icon,{icon:"right",size:"small"})))})),h.subMenu&&g.default.createElement(e.NavigationMenu,{model:h.subMenu}))}),e.NavigationMenuContainer=(0,I.observer)(()=>{const h=(0,p.useInjectable)(r),v=(0,g.useRef)();return(0,g.useEffect)(()=>{if(v.current){const f=new p.Disposable;return f.addDispose(new p.DomListener(window,"mouseup",()=>{h.dispose()})),f.addDispose(new p.DomListener(v.current,"mouseup",W=>{W.stopPropagation()})),f.dispose.bind(f)}}),h.current?g.default.createElement("div",{tabIndex:1,ref:v},g.default.createElement(e.NavigationMenu,{model:h.current})):null});let r=class{constructor(){this.current=null,this.editorGroup=null,(0,o.makeObservable)(this)}showMenu(v,f,W,N,Z,y){this.current=new c(v,f,W,N,Z),this.editorGroup=y}dispose(){this.current&&this.current.dispose(),this.current=null}};n.__decorate([o.observable.ref,n.__metadata("design:type",Object)],r.prototype,"current",void 0),n.__decorate([o.observable.ref,n.__metadata("design:type",Object)],r.prototype,"editorGroup",void 0),n.__decorate([o.action,n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[Array,Object,Object,Object,Object,Object]),n.__metadata("design:returntype",void 0)],r.prototype,"showMenu",null),n.__decorate([o.action,n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[]),n.__metadata("design:returntype",void 0)],r.prototype,"dispose",null),r=n.__decorate([(0,u.Injectable)(),n.__metadata("design:paramtypes",[])],r),e.NavigationBarViewService=r;class c{constructor(v,f,W,N=-1,Z){this.parts=v,this.x=f,this.y=W,this.initialIndex=N,this.uri=Z,this.subMenu=null,(0,o.makeObservable)(this)}showSubMenu(v,f,W,N){this.subMenu=new c(v,f,W,-1,N)}dispose(){this.subMenu&&this.subMenu.dispose(),this.subMenu=null}}n.__decorate([o.observable.ref,n.__metadata("design:type",Object)],c.prototype,"subMenu",void 0),n.__decorate([o.action,n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[Array,Object,Object,Object]),n.__metadata("design:returntype",void 0)],c.prototype,"showSubMenu",null),n.__decorate([o.action,n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[]),n.__metadata("design:returntype",void 0)],c.prototype,"dispose",null),e.NavigationMenuModel=c},34885:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.EditorPreferenceContribution=void 0;const n=t(85608),a=t(41869),o=t(24328);let I=class{constructor(){this.schema=o.editorPreferenceSchema}};I=n.__decorate([(0,a.Domain)(a.PreferenceContribution)],I),e.EditorPreferenceContribution=I},6043:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isDiffEditorOption=e.isEditorOption=e.diffEditorOptionsConverters=e.textModelUpdateOptionsConverters=e.editorOptionsConverters=e.getConvertedMonacoOptions=void 0;const n=t(41869),{removeUndefined:a}=n.objects;function o(G,p,b,m){const d={},s={},l={},r=[],c=[],h=[];return m?m.forEach(v=>{e.editorOptionsConverters.has(v)?r.push(v):e.textModelUpdateOptionsConverters.has(v)?c.push(v):e.diffEditorOptionsConverters.has(v)&&h.push(v)}):(r.push(...e.editorOptionsConverters.keys()),c.push(...e.textModelUpdateOptionsConverters.keys()),h.push(...e.diffEditorOptionsConverters.keys())),r.forEach(v=>{const f=G.getValue(v,{resource:p?n.Uri.parse(p):void 0,overrideIdentifier:b});if(f!==void 0)if(!e.editorOptionsConverters.get(v))d[v]=f;else{const W=e.editorOptionsConverters.get(v);d[W.monaco]?d[W.monaco]=Object.assign(Object.assign({},d[W.monaco]),W.convert?W.convert(f):f):d[W.monaco]=W.convert?W.convert(f):f}}),c.forEach(v=>{const f=G.getValue(v,{resource:p?n.Uri.parse(p):void 0,overrideIdentifier:b});if(f!==void 0)if(!e.textModelUpdateOptionsConverters.get(v))l[v]=f;else{const W=e.textModelUpdateOptionsConverters.get(v);l[W.monaco]=W.convert?W.convert(f):f}}),h.forEach(v=>{const f=G.getValue(v,{resource:p?n.Uri.parse(p):void 0,overrideIdentifier:b});if(f!==void 0)if(!e.diffEditorOptionsConverters.get(v))d[v]=f;else{const W=e.diffEditorOptionsConverters.get(v);s[W.monaco]?s[W.monaco]=Object.assign(Object.assign({},s[W.monaco]),W.convert?W.convert(f):f):s[W.monaco]=W.convert?W.convert(f):f}}),{editorOptions:a(d),modelOptions:a(l),diffOptions:a(s)}}e.getConvertedMonacoOptions=o,e.editorOptionsConverters=new Map([["editor.ariaLabel",{monaco:"ariaLabel"}],["editor.rulers",{monaco:"rulers"}],["editor.wordSeparators",{monaco:"wordSeparators"}],["editor.selectionClipboard",{monaco:"selectionClipboard"}],["editor.lineNumbers",{monaco:"lineNumbers"}],["editor.renderFinalNewline",{monaco:"renderFinalNewline"}],["editor.selectOnLineNumbers",{monaco:"selectOnLineNumbers"}],["editor.lineNumbersMinChars",{monaco:"lineNumbersMinChars"}],["editor.glyphMargin",{monaco:"glyphMargin"}],["editor.lineDecorationsWidth",{monaco:"lineDecorationsWidth"}],["editor.revealHorizontalRightPadding",{monaco:"revealHorizontalRightPadding"}],["editor.roundedSelection",{monaco:"roundedSelection"}],["editor.extraEditorClassName",{monaco:"extraEditorClassName"}],["editor.readOnly",{monaco:"readOnly"}],["editor.scrollbar",{monaco:"scrollbar"}],["editor.minimap",{monaco:"minimap",convert:G=>({enabled:G})}],["editor.find",{monaco:"find"}],["editor.fixedOverflowWidgets",{monaco:"fixedOverflowWidgets"}],["editor.overviewRulerLanes",{monaco:"overviewRulerLanes"}],["editor.overviewRulerBorder",{monaco:"overviewRulerBorder"}],["editor.cursorBlinking",{monaco:"cursorBlinking"}],["editor.mouseWheelZoom",{monaco:"mouseWheelZoom"}],["editor.cursorSmoothCaretAnimation",{monaco:"cursorSmoothCaretAnimation"}],["editor.cursorStyle",{monaco:"cursorStyle"}],["editor.cursorWidth",{monaco:"cursorWidth"}],["editor.fontLigatures",{monaco:"fontLigatures"}],["editor.disableLayerHinting",{monaco:"disableLayerHinting"}],["editor.disableMonospaceOptimizations",{monaco:"disableMonospaceOptimizations"}],["editor.hideCursorInOverviewRuler",{monaco:"hideCursorInOverviewRuler"}],["editor.scrollBeyondLastLine",{monaco:"scrollBeyondLastLine"}],["editor.scrollBeyondLastColumn",{monaco:"scrollBeyondLastColumn"}],["editor.smoothScrolling",{monaco:"smoothScrolling"}],["editor.automaticLayout",{monaco:"automaticLayout"}],["editor.wordWrap",{monaco:"wordWrap"}],["editor.wordWrapColumn",{monaco:"wordWrapColumn"}],["editor.wordWrapMinified",{monaco:"wordWrapMinified"}],["editor.wrappingIndent",{monaco:"wrappingIndent"}],["editor.wordWrapBreakBeforeCharacters",{monaco:"wordWrapBreakBeforeCharacters"}],["editor.wordWrapBreakAfterCharacters",{monaco:"wordWrapBreakAfterCharacters"}],["editor.wordWrapBreakObtrusiveCharacters",{monaco:"wordWrapBreakObtrusiveCharacters"}],["editor.stopRenderingLineAfter",{monaco:"stopRenderingLineAfter"}],["editor.hover",{monaco:"hover"}],["editor.links",{monaco:"links"}],["editor.colorDecorators",{monaco:"colorDecorators"}],["editor.contextmenu",{monaco:"contextmenu"}],["editor.mouseWheelScrollSensitivity",{monaco:"mouseWheelScrollSensitivity"}],["editor.fastScrollSensitivity",{monaco:"fastScrollSensitivity"}],["editor.multiCursorModifier",{monaco:"multiCursorModifier"}],["editor.multiCursorMergeOverlapping",{monaco:"multiCursorMergeOverlapping"}],["editor.accessibilitySupport",{monaco:"accessibilitySupport"}],["editor.suggest",{monaco:"suggest"}],["editor.gotoLocation",{monaco:"gotoLocation"}],["editor.quickSuggestions",{monaco:"quickSuggestions"}],["editor.quickSuggestionsDelay",{monaco:"quickSuggestionsDelay"}],["editor.parameterHints",{monaco:"parameterHints"}],["editor.autoClosingBrackets",{monaco:"autoClosingBrackets"}],["editor.autoClosingQuotes",{monaco:"autoClosingQuotes"}],["editor.autoSurround",{monaco:"autoSurround"}],["editor.autoIndent",{monaco:"autoIndent"}],["editor.formatOnType",{monaco:"formatOnType"}],["editor.formatOnPaste",{monaco:"formatOnPaste"}],["editor.dragAndDrop",{monaco:"dragAndDrop"}],["editor.suggestOnTriggerCharacters",{monaco:"suggestOnTriggerCharacters"}],["editor.acceptSuggestionOnEnter",{monaco:"acceptSuggestionOnEnter"}],["editor.acceptSuggestionOnCommitCharacter",{monaco:"acceptSuggestionOnCommitCharacter"}],["editor.snippetSuggestions",{monaco:"snippetSuggestions"}],["editor.emptySelectionClipboard",{monaco:"emptySelectionClipboard"}],["editor.copyWithSyntaxHighlighting",{monaco:"copyWithSyntaxHighlighting"}],["editor.wordBasedSuggestions",{monaco:"wordBasedSuggestions"}],["editor.suggestSelection",{monaco:"suggestSelection"}],["editor.suggestFontSize",{monaco:"suggestFontSize"}],["editor.suggestLineHeight",{monaco:"suggestLineHeight"}],["editor.tabCompletion",{monaco:"tabCompletion"}],["editor.selectionHighlight",{monaco:"selectionHighlight"}],["editor.occurrencesHighlight",{monaco:"occurrencesHighlight"}],["editor.codeLens",{monaco:"codeLens"}],["editor.lightbulb",{monaco:"lightbulb"}],["editor.codeActionsOnSave",{monaco:"codeActionsOnSave"}],["editor.codeActionsOnSaveTimeout",{monaco:"codeActionsOnSaveTimeout"}],["editor.folding",{monaco:"folding"}],["editor.foldingStrategy",{monaco:"foldingStrategy"}],["editor.showFoldingControls",{monaco:"showFoldingControls"}],["editor.matchBrackets",{monaco:"matchBrackets"}],["editor.renderWhitespace",{monaco:"renderWhitespace"}],["editor.renderControlCharacters",{monaco:"renderControlCharacters"}],["editor.renderIndentGuides",{monaco:"guides.indentation"}],["editor.highlightActiveIndentGuide",{monaco:"guides.highlightActiveIndentation"}],["editor.guides",{monaco:"guides"}],["editor.renderLineHighlight",{monaco:"renderLineHighlight"}],["editor.useTabStops",{monaco:"useTabStops"}],["editor.fontFamily",{monaco:"fontFamily"}],["editor.fontWeight",{monaco:"fontWeight"}],["editor.fontSize",{monaco:"fontSize"}],["editor.lineHeight",{monaco:"lineHeight"}],["editor.letterSpacing",{monaco:"letterSpacing"}],["editor.showUnused",{monaco:"showUnused"}],["editor.rename.enablePreview",{monaco:"editor.rename.enablePreview"}],["editor.semanticHighlighting",{monaco:"semanticHighlighting"}],["editor.bracketPairColorization",{monaco:"bracketPairColorization"}],["editor.wrappingStrategy",{monaco:"wrappingStrategy"}],["editor.experimental.stickyScroll.enabled",{monaco:"experimental",convert:G=>({stickyScroll:{enabled:G}})}],["editor.forceReadOnly",{monaco:"readOnly",convert:G=>{if(G)return!0}}],["editor.unicodeHighlight",{monaco:"unicodeHighlight"}],["editor.inlineSuggest.showToolbar",{monaco:"inlineSuggest",convert:G=>{if(G)return{showToolbar:G}}}]]),e.textModelUpdateOptionsConverters=new Map([["editor.tabSize",{monaco:"tabSize"}],["editor.indentSize",{monaco:"indentSize"}],["editor.insertSpaces",{monaco:"insertSpaces"}],["editor.trimAutoWhitespace",{monaco:"trimAutoWhitespace"}]]),e.diffEditorOptionsConverters=new Map([["diffEditor.enableSplitViewResizing",{monaco:"enableSplitViewResizing"}],["diffEditor.renderSideBySide",{monaco:"renderSideBySide"}],["diffEditor.ignoreTrimWhitespace",{monaco:"ignoreTrimWhitespace"}],["diffEditor.renderIndicators",{monaco:"renderIndicators"}],["diffEditor.originalEditable",{monaco:"originalEditable"}],["diffEditor.minimap",{monaco:"minimap",convert:G=>({enabled:G})}],["diffEditor.experimental.stickyScroll.enabled",{monaco:"experimental",convert:G=>({stickyScroll:{enabled:G}})}],["diffEditor.hideUnchangedRegions.enabled",{monaco:"hideUnchangedRegions",convert:G=>({enabled:G})}],["diffEditor.hideUnchangedRegions.revealLineCount",{monaco:"hideUnchangedRegions",convert:G=>({revealLineCount:G})}],["diffEditor.hideUnchangedRegions.minimumLineCount",{monaco:"hideUnchangedRegions",convert:G=>({minimumLineCount:G})}],["diffEditor.hideUnchangedRegions.contextLineCount",{monaco:"hideUnchangedRegions",convert:G=>({contextLineCount:G})}],["diffEditor.experimental.showMoves",{monaco:"experimental",convert:G=>({showMoves:G})}],["diffEditor.experimental.showEmptyDecorations",{monaco:"experimental",convert:G=>({showEmptyDecorations:G})}]]);function I(G,p){if(p.has(G))return!0;{const b=p.keys();for(const m of b)if(G.startsWith(m))return!0}return!1}function g(G){return I(G,e.editorOptionsConverters)||I(G,e.textModelUpdateOptionsConverters)||I(G,e.diffEditorOptionsConverters)}e.isEditorOption=g;function u(G){return I(G,e.diffEditorOptionsConverters)}e.isDiffEditorOption=u},24328:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.EditorPreferences=e.editorPreferenceSchema=e.DIFF_EDITOR_DEFAULTS=e.EDITOR_DEFAULTS=e.EDITOR_INLINE_SUGGEST_DEFAULTS=e.EDITOR_SUGGEST_DEFAULTS=e.EDITOR_MODEL_DEFAULTS=e.EDITOR_FONT_DEFAULTS=e.USUAL_WORD_SEPARATORS=void 0;const n=t(41869),a=t(82196);e.USUAL_WORD_SEPARATORS="`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?";const o="Consolas, 'Courier New', monospace",I="Menlo, Monaco, 'Courier New', monospace",g="'Droid Sans Mono', 'monospace', monospace, 'Droid Sans Fallback'";e.EDITOR_FONT_DEFAULTS={fontFamily:n.isOSX?I:n.isLinux?g:o,fontWeight:"normal",fontSize:12,tabSize:2,renderWhitespace:!1,cursorStyle:"line",insertSpace:!0,wordWrap:"off",wordWrapColumn:80,lineHeight:0,letterSpacing:0},e.EDITOR_MODEL_DEFAULTS={tabSize:4,indentSize:4,insertSpaces:!0,detectIndentation:!0,trimAutoWhitespace:!0,largeFileOptimizations:!0},e.EDITOR_SUGGEST_DEFAULTS={insertMode:"insert",filterGraceful:!0,snippetsPreventQuickSuggestions:!0,localityBonus:!1,shareSuggestSelections:!1,showIcons:!0,maxVisibleSuggestions:12,showMethods:!0,showFunctions:!0,showConstructors:!0,showFields:!0,showVariables:!0,showClasses:!0,showStructs:!0,showInterfaces:!0,showModules:!0,showProperties:!0,showEvents:!0,showOperators:!0,showUnits:!0,showValues:!0,showConstants:!0,showEnums:!0,showEnumMembers:!0,showKeywords:!0,showWords:!0,showColors:!0,showFiles:!0,showReferences:!0,showFolders:!0,showTypeParameters:!0,showSnippets:!0,showUsers:!0,showIssues:!0,detailsVisible:!0,preview:!0,statusBar:{visible:!1}},e.EDITOR_INLINE_SUGGEST_DEFAULTS={enabled:!0,showToolbar:"onHover"},e.EDITOR_DEFAULTS={inDiffEditor:!1,wordSeparators:e.USUAL_WORD_SEPARATORS,lineNumbersMinChars:3,lineDecorationsWidth:10,readOnly:!1,mouseStyle:"text",disableLayerHinting:!1,automaticLayout:!0,wordWrap:"off",wordWrapColumn:80,wordWrapMinified:!0,wrappingIndent:1,wordWrapBreakBeforeCharacters:"([{\u2018\u201C\u3008\u300A\u300C\u300E\u3010\u3014\uFF08\uFF3B\uFF5B\uFF62\xA3\xA5\uFF04\uFFE1\uFFE5+\uFF0B",wordWrapBreakAfterCharacters:" })]?|/&.,;\xA2\xB0\u2032\u2033\u2030\u2103\u3001\u3002\uFF61\uFF64\uFFE0\uFF0C\uFF0E\uFF1A\uFF1B\uFF1F\uFF01\uFF05\u30FB\uFF65\u309D\u309E\u30FD\u30FE\u30FC\u30A1\u30A3\u30A5\u30A7\u30A9\u30C3\u30E3\u30E5\u30E7\u30EE\u30F5\u30F6\u3041\u3043\u3045\u3047\u3049\u3063\u3083\u3085\u3087\u308E\u3095\u3096\u31F0\u31F1\u31F2\u31F3\u31F4\u31F5\u31F6\u31F7\u31F8\u31F9\u31FA\u31FB\u31FC\u31FD\u31FE\u31FF\u3005\u303B\uFF67\uFF68\uFF69\uFF6A\uFF6B\uFF6C\uFF6D\uFF6E\uFF6F\uFF70\u201D\u3009\u300B\u300D\u300F\u3011\u3015\uFF09\uFF3D\uFF5D\uFF63",wordWrapBreakObtrusiveCharacters:".",autoClosingBrackets:"languageDefined",autoClosingQuotes:"languageDefined",autoSurround:"languageDefined",autoIndent:!0,dragAndDrop:!0,emptySelectionClipboard:!0,copyWithSyntaxHighlighting:!0,useTabStops:!0,multiCursorModifier:"altKey",multiCursorMergeOverlapping:!0,accessibilitySupport:"off",showUnused:!0,wrappingStrategy:"simple",viewInfo:{extraEditorClassName:"",disableMonospaceOptimizations:!1,rulers:[],ariaLabel:(0,n.localize)("editorViewAccessibleLabel","Editor Content"),renderLineNumbers:0,renderCustomLineNumbers:null,renderFinalNewline:!0,selectOnLineNumbers:!0,glyphMargin:!0,revealHorizontalRightPadding:30,roundedSelection:!0,overviewRulerLanes:2,overviewRulerBorder:!0,cursorBlinking:1,mouseWheelZoom:!1,cursorSmoothCaretAnimation:!1,cursorStyle:1,cursorWidth:0,hideCursorInOverviewRuler:!1,scrollBeyondLastLine:!0,scrollBeyondLastColumn:5,smoothScrolling:!1,stopRenderingLineAfter:1e4,renderWhitespace:"none",renderControlCharacters:!1,fontLigatures:!1,renderLineHighlight:"none",scrollbar:{vertical:1,horizontal:1,arrowSize:11,useShadows:!0,verticalHasArrows:!1,horizontalHasArrows:!1,horizontalScrollbarSize:10,horizontalSliderSize:10,verticalScrollbarSize:14,verticalSliderSize:14,handleMouseWheel:!0,mouseWheelScrollSensitivity:1,fastScrollSensitivity:5},minimap:{enabled:!0,side:"right",showSlider:"mouseover",renderCharacters:!0,maxColumn:120},guides:{indentation:!0,highlightActiveIndentGuide:!0,bracketPairs:!0},fixedOverflowWidgets:!0},contribInfo:{selectionClipboard:!0,hover:{enabled:!0,delay:300,sticky:!0},links:!0,contextmenu:!0,quickSuggestions:{other:!0,comments:!1,strings:!1},quickSuggestionsDelay:10,parameterHints:{enabled:!0,cycle:!1},formatOnType:!1,formatOnPaste:!1,suggestOnTriggerCharacters:!0,acceptSuggestionOnEnter:"on",acceptSuggestionOnCommitCharacter:!0,wordBasedSuggestions:!1,suggestSelection:"recentlyUsed",suggestFontSize:0,suggestLineHeight:0,tabCompletion:"off",gotoLocation:{multiple:"peek"},selectionHighlight:!0,occurrencesHighlight:!0,codeLens:!0,folding:!0,foldingStrategy:"auto",showFoldingControls:"mouseover",matchBrackets:!0,find:{seedSearchStringFromSelection:!0,autoFindInSelection:!1,globalFindClipboard:!1,addExtraSpaceOnTop:!0},colorDecorators:!0,lightbulbEnabled:a.ShowLightbulbIconMode.On,codeActionsOnSave:{},codeActionsOnSaveTimeout:750}},e.DIFF_EDITOR_DEFAULTS={renderIndicators:!0,minimap:!1,renderSideBySide:!0,ignoreTrimWhitespace:!1,hideUnchangedRegions:{enabled:!0,revealLineCount:20,minimumLineCount:3,contextLineCount:3},experimental:{showMoves:!1,showEmptyDecorations:!0,collapseUnchangedRegions:!0,stickyScroll:{enable:!1}}};const u={"editor.ariaLabel":{type:"string",default:e.EDITOR_DEFAULTS.viewInfo.ariaLabel,description:"%editor.configuration.ariaLabel%"},"editor.extraEditorClassName":{type:"string",description:"%editor.configuration.extraEditorClassName%"},"editor.fixedOverflowWidgets":{type:"boolean",default:e.EDITOR_DEFAULTS.viewInfo.fixedOverflowWidgets,description:"%editor.configuration.fixedOverflowWidgets%"},"editor.revealHorizontalRightPadding":{type:"number",description:"%editor.configuration.revealHorizontalRightPadding%"},"editor.selectOnLineNumbers":{type:"boolean",description:"%editor.configuration.selectOnLineNumbers%"},"editor.wordWrapMinified":{type:"boolean",description:"%editor.configuration.wordWrapMinified%"},"editor.wordWrapBreakAfterCharacters":{type:"string",default:" })]?|/&.,;\xA2\xB0\u2032\u2033\u2030\u2103\u3001\u3002\uFF61\uFF64\uFFE0\uFF0C\uFF0E\uFF1A\uFF1B\uFF1F\uFF01\uFF05\u30FB\uFF65\u309D\u309E\u30FD\u30FE\u30FC\u30A1\u30A3\u30A5\u30A7\u30A9\u30C3\u30E3\u30E5\u30E7\u30EE\u30F5\u30F6\u3041\u3043\u3045\u3047\u3049\u3063\u3083\u3085\u3087\u308E\u3095\u3096\u31F0\u31F1\u31F2\u31F3\u31F4\u31F5\u31F6\u31F7\u31F8\u31F9\u31FA\u31FB\u31FC\u31FD\u31FE\u31FF\u3005\u303B\uFF67\uFF68\uFF69\uFF6A\uFF6B\uFF6C\uFF6D\uFF6E\uFF6F\uFF70\u201D\u3009\u300B\u300D\u300F\u3011\u3015\uFF09\uFF3D\uFF5D\uFF63",description:"%editor.configuration.wordWrapBreakAfterCharacters%"},"editor.wrappingStrategy":{type:"string",enum:["advanced","simple"],default:"simple",description:"%editor.configuration.wrappingStrategy%"},"editor.wordWrapBreakBeforeCharacters":{type:"string",default:"([{\u2018\u201C\u3008\u300A\u300C\u300E\u3010\u3014\uFF08\uFF3B\uFF5B\uFF62\xA3\xA5\uFF04\uFFE1\uFFE5+\uFF0B",description:"%editor.configuration.wordWrapBreakBeforeCharacters%"},"editor.lineNumbersMinChars":{type:"number",default:e.EDITOR_DEFAULTS.lineNumbersMinChars,description:"%editor.configuration.lineNumbersMinChars%"},"editor.lineDecorationsWidth":{type:"number",default:e.EDITOR_DEFAULTS.lineDecorationsWidth,description:"%editor.configuration.lineDecorationsWidth%"},"editor.fontFamily":{type:"string",default:e.EDITOR_FONT_DEFAULTS.fontFamily,description:"%editor.configuration.fontFamily%"},"editor.fontWeight":{type:"string",default:e.EDITOR_FONT_DEFAULTS.fontWeight,description:"%editor.configuration.fontWeight%"},"editor.fontSize":{type:"number",default:e.EDITOR_FONT_DEFAULTS.fontSize,description:(0,n.localize)("fontSize","Controls the font size in pixels.")},"editor.lineHeight":{type:"number",default:e.EDITOR_FONT_DEFAULTS.lineHeight,description:(0,n.localize)("lineHeight","Controls the line height. Use 0 to compute the line height from the font size.")},"editor.suggest.insertMode":{type:"string",enum:["insert","replace"],enumDescriptions:[(0,n.localize)("editor.configuration.suggest.insertMode.insert","Insert suggestion without overwriting text right of the cursor."),(0,n.localize)("editor.configuration.suggest.insertMode.replace","Insert suggestion and overwrite text right of the cursor.")],default:"insert",description:"%editor.configuration.suggest.insertMode%"},"editor.suggest.filterGraceful":{type:"boolean",default:e.EDITOR_SUGGEST_DEFAULTS.filterGraceful,description:"%editor.configuration.suggest.filterGraceful%"},"editor.suggest.localityBonus":{type:"boolean",default:e.EDITOR_SUGGEST_DEFAULTS.localityBonus,description:"%editor.configuration.suggest.localityBonus%"},"editor.suggest.shareSuggestSelections":{type:"boolean",default:e.EDITOR_SUGGEST_DEFAULTS.shareSuggestSelections,description:"%editor.configuration.suggest.shareSuggestSelections%"},"editor.suggest.snippetsPreventQuickSuggestions":{type:"boolean",default:e.EDITOR_SUGGEST_DEFAULTS.snippetsPreventQuickSuggestions,description:"%editor.configuration.suggest.snippetsPreventQuickSuggestions%"},"editor.suggest.showIcons":{type:"boolean",default:e.EDITOR_SUGGEST_DEFAULTS.showIcons,description:"%editor.configuration.suggest.showIcons%"},"editor.suggest.maxVisibleSuggestions":{type:"number",default:e.EDITOR_SUGGEST_DEFAULTS.maxVisibleSuggestions,minimum:1,maximum:15,description:"%editor.configuration.suggest.maxVisibleSuggestions%"},"editor.suggest.showMethods":{type:"boolean",default:!0,description:"%editor.configuration.suggest.showMethods%"},"editor.suggest.showFunctions":{type:"boolean",default:!0,description:"%editor.configuration.suggest.showFunctions%"},"editor.suggest.showConstructors":{type:"boolean",default:!0,description:"%editor.configuration.suggest.showConstructors%"},"editor.suggest.showFields":{type:"boolean",default:!0,description:"%editor.configuration.suggest.showFields%"},"editor.suggest.showVariables":{type:"boolean",default:!0,description:"%editor.configuration.suggest.showVariables%"},"editor.suggest.showClasses":{type:"boolean",default:!0,description:"%editor.configuration.suggest.showClasss%"},"editor.suggest.showStructs":{type:"boolean",default:!0,description:"%editor.configuration.suggest.showStructs%"},"editor.suggest.showInterfaces":{type:"boolean",default:!0,description:"%editor.configuration.suggest.showInterfaces%"},"editor.suggest.showModules":{type:"boolean",default:!0,description:"%editor.configuration.suggest.showModules%"},"editor.suggest.showProperties":{type:"boolean",default:!0,description:"%editor.configuration.suggest.showPropertys%"},"editor.suggest.showEvents":{type:"boolean",default:!0,description:"%editor.configuration.suggest.showEvents%"},"editor.suggest.showOperators":{type:"boolean",default:!0,description:"%editor.configuration.suggest.showOperators%"},"editor.suggest.showUnits":{type:"boolean",default:!0,description:"%editor.configuration.suggest.showUnits%"},"editor.suggest.showValues":{type:"boolean",default:!0,description:"%editor.configuration.suggest.showValues%"},"editor.suggest.showConstants":{type:"boolean",default:!0,description:"%editor.configuration.suggest.showConstants%"},"editor.suggest.showEnums":{type:"boolean",default:!0,description:"%editor.configuration.suggest.showEnums%"},"editor.suggest.showEnumMembers":{type:"boolean",default:!0,description:"%editor.configuration.suggest.showEnumMembers%"},"editor.suggest.showKeywords":{type:"boolean",default:!0,description:"%editor.configuration.suggest.showKeywords%"},"editor.suggest.showWords":{type:"boolean",default:!0,description:"%editor.configuration.suggest.showTexts%"},"editor.suggest.showColors":{type:"boolean",default:!0,description:"%editor.configuration.suggest.showColors%"},"editor.suggest.showFiles":{type:"boolean",default:!0,description:"%editor.configuration.suggest.showFiles%"},"editor.suggest.showReferences":{type:"boolean",default:!0,description:"%editor.configuration.suggest.showReferences%"},"editor.suggest.showCustomcolors":{type:"boolean",default:!0,description:"%editor.configuration.suggest.showCustomcolors%"},"editor.suggest.showFolders":{type:"boolean",default:!0,description:"%editor.configuration.suggest.showFolders%"},"editor.suggest.showTypeParameters":{type:"boolean",default:!0,description:"%editor.configuration.suggest.showTypeParameters%"},"editor.suggest.showSnippets":{type:"boolean",default:!0,description:"%editor.configuration.suggest.showSnippets%"},"editor.suggest.showUsers":{type:"boolean",default:!0,description:"%editor.configuration.suggest.showUsers%"},"editor.suggest.showIssues":{type:"boolean",default:!0,description:"%editor.configuration.suggest.showIssues%"},"editor.suggest.statusBar.visible":{type:"boolean",default:!1,description:"%editor.configuration.suggest.statusBar.visible%"},"editor.suggest.preview":{type:"boolean",default:e.EDITOR_SUGGEST_DEFAULTS.preview,description:"%editor.configuration.suggest.preview%"},"editor.suggest.details.visible":{type:"boolean",default:e.EDITOR_SUGGEST_DEFAULTS.detailsVisible,description:"%editor.configuration.suggest.details.visible%"},"editor.inlineSuggest.enabled":{type:"boolean",default:e.EDITOR_INLINE_SUGGEST_DEFAULTS.enabled,description:"%editor.configuration.inlineSuggest.enabled%"},"editor.inlineSuggest.showToolbar":{type:"string",default:e.EDITOR_INLINE_SUGGEST_DEFAULTS.showToolbar,enum:["always","onHover","never"],enumDescriptions:[(0,n.localize)("editor.configuration.inlineSuggest.showToolbar.always","Show the inline suggestion toolbar whenever an inline suggestion is shown."),(0,n.localize)("editor.configuration.inlineSuggest.showToolbar.onHover","Show the inline suggestion toolbar when hovering over an inline suggestion."),(0,n.localize)("editor.configuration.inlineSuggest.showToolbar.never","Never show the inline suggestion toolbar.")],description:"%editor.configuration.inlineSuggest.showToolbar%"},"editor.experimental.stickyScroll.enabled":{type:"boolean",default:!0,description:"%editor.configuration.experimental.stickyScroll%"},"editor.customCodeActionMenu.showHeaders":{type:"boolean",default:!0,description:"%editor.configuration.customCodeActionMenu.showHeaders"},"editor.useCustomCodeActionMenu":{type:"boolean",default:!0,description:"%editor.configuration.useCustomCodeActionMenu%"},"editor.letterSpacing":{type:"number",default:e.EDITOR_FONT_DEFAULTS.letterSpacing,description:"%editor.configuration.letterSpacing%"},"editor.lineNumbers":{type:"string",enum:["off","on","relative","interval"],enumDescriptions:[(0,n.localize)("editor.configuration.lineNumbers.off","Line numbers are not rendered."),(0,n.localize)("editor.configuration.lineNumbers.on","Line numbers are rendered as absolute number."),(0,n.localize)("editor.configuration.lineNumbers.relative","Line numbers are rendered as distance in lines to cursor position."),(0,n.localize)("editor.configuration.lineNumbers.interval","Line numbers are rendered every 10 lines.")],default:"on",description:"%editor.configuration.lineNumbers%"},"editor.renderFinalNewline":{type:"boolean",default:e.EDITOR_DEFAULTS.viewInfo.renderFinalNewline,description:"%editor.configuration.renderFinalNewline%"},"editor.rulers":{type:"array",items:{type:"number"},default:e.EDITOR_DEFAULTS.viewInfo.rulers,description:"%editor.configuration.rulers%"},"editor.wordSeparators":{type:"string",default:e.EDITOR_DEFAULTS.wordSeparators,description:"%editor.configuration.wordSeparators%"},"editor.tabSize":{type:"number",default:e.EDITOR_MODEL_DEFAULTS.tabSize,minimum:1,markdownDescription:"%editor.configuration.tabSize%"},"editor.insertSpaces":{type:"boolean",default:e.EDITOR_MODEL_DEFAULTS.insertSpaces,markdownDescription:"%editor.configuration.insertSpaces%"},"editor.detectIndentation":{type:"boolean",default:e.EDITOR_MODEL_DEFAULTS.detectIndentation,markdownDescription:"%editor.configuration.detectIndentation%"},"editor.roundedSelection":{type:"boolean",default:e.EDITOR_DEFAULTS.viewInfo.roundedSelection,description:"%editor.configuration.roundedSelection%"},"editor.scrollBeyondLastLine":{type:"boolean",default:e.EDITOR_DEFAULTS.viewInfo.scrollBeyondLastLine,description:"%editor.configuration.scrollBeyondLastLine%"},"editor.scrollBeyondLastColumn":{type:"number",default:e.EDITOR_DEFAULTS.viewInfo.scrollBeyondLastColumn,description:"%editor.configuration.scrollBeyondLastColumn%"},"editor.smoothScrolling":{type:"boolean",default:e.EDITOR_DEFAULTS.viewInfo.smoothScrolling,description:"%editor.configuration.smoothScrolling%"},"editor.minimap.enabled":{type:"boolean",default:e.EDITOR_DEFAULTS.viewInfo.minimap.enabled,description:"%editor.configuration.minimap.enabled%"},"editor.minimap.side":{type:"string",enum:["left","right"],default:e.EDITOR_DEFAULTS.viewInfo.minimap.side,description:"%editor.configuration.minimap.side%"},"editor.minimap.showSlider":{type:"string",enum:["always","mouseover"],default:e.EDITOR_DEFAULTS.viewInfo.minimap.showSlider,description:"%editor.configuration.minimap.showSlider%"},"editor.minimap.renderCharacters":{type:"boolean",default:e.EDITOR_DEFAULTS.viewInfo.minimap.renderCharacters,description:"%editor.configuration.minimap.renderCharacters%"},"editor.minimap.maxColumn":{type:"number",default:e.EDITOR_DEFAULTS.viewInfo.minimap.maxColumn,description:"%editor.configuration.minimap.maxColumn%"},"editor.hover.enabled":{type:"boolean",default:e.EDITOR_DEFAULTS.contribInfo.hover.enabled,description:"%editor.configuration.hover.enabled%"},"editor.hover.delay":{type:"number",default:e.EDITOR_DEFAULTS.contribInfo.hover.delay,description:(0,n.localize)("hover.delay","Controls the delay in milliseconds after which the hover is shown.")},"editor.hover.sticky":{type:"boolean",default:e.EDITOR_DEFAULTS.contribInfo.hover.sticky,description:"%editor.configuration.hover.sticky%"},"editor.find.seedSearchStringFromSelection":{type:"boolean",default:e.EDITOR_DEFAULTS.contribInfo.find.seedSearchStringFromSelection,description:"%editor.configuration.find.seedSearchStringFromSelection%"},"editor.find.autoFindInSelection":{type:"boolean",default:e.EDITOR_DEFAULTS.contribInfo.find.autoFindInSelection,description:"%editor.configuration.find.autoFindInSelection%"},"editor.find.globalFindClipboard":{type:"boolean",default:e.EDITOR_DEFAULTS.contribInfo.find.globalFindClipboard,description:"%editor.configuration.find.globalFindClipboard%",included:n.isOSX},"editor.find.addExtraSpaceOnTop":{type:"boolean",default:!0,description:"%editor.configuration.find.addExtraSpaceOnTop%"},"editor.wordWrap":{type:"string",enum:["off","on","wordWrapColumn","bounded"],markdownEnumDescriptions:[(0,n.localize)("editor.configuration.wordWrap.off","Lines will never wrap."),(0,n.localize)("editor.configuration.wordWrap.on","Lines will wrap at the viewport width."),(0,n.localize)("editor.configuration.wordWrap.wordWrapColumn","Lines will wrap at `#editor.wordWrapColumn#`."),(0,n.localize)("editor.configuration.wordWrap.bounded","Lines will wrap at the minimum of viewport and `#editor.wordWrapColumn#`.")],default:e.EDITOR_DEFAULTS.wordWrap,description:"%editor.configuration.wordWrap%"},"editor.wordWrapColumn":{type:"integer",default:e.EDITOR_DEFAULTS.wordWrapColumn,minimum:1,markdownDescription:"%editor.configuration.wordWrapColumn%"},"editor.wrappingIndent":{type:"string",enum:["none","same","indent","deepIndent"],enumDescriptions:[(0,n.localize)("editor.configuration.wrappingIndent.none","No indentation. Wrapped lines begin at column 1."),(0,n.localize)("editor.configuration.wrappingIndent.same","Wrapped lines get the same indentation as the parent."),(0,n.localize)("editor.configuration.wrappingIndent.indent","Wrapped lines get +1 indentation toward the parent."),(0,n.localize)("editor.configuration.wrappingIndent.deepIndent","Wrapped lines get +2 indentation toward the parent.")],default:"same",description:"%editor.configuration.wrappingIndent%"},"editor.mouseWheelScrollSensitivity":{type:"number",default:e.EDITOR_DEFAULTS.viewInfo.scrollbar.mouseWheelScrollSensitivity,markdownDescription:"%editor.configuration.mouseWheelScrollSensitivity%"},"editor.fastScrollSensitivity":{type:"number",default:e.EDITOR_DEFAULTS.viewInfo.scrollbar.fastScrollSensitivity,markdownDescription:"%editor.configuration.fastScrollSensitivity%"},"editor.multiCursorModifier":{type:"string",enum:["ctrlCmd","alt"],markdownEnumDescriptions:[(0,n.localize)("editor.configuration.multiCursorModifier.ctrlCmd","Maps to `Control` on Windows and Linux and to `Command` on macOS."),(0,n.localize)("editor.configuration.multiCursorModifier.alt","Maps to `Alt` on Windows and Linux and to `Option` on macOS.")],default:"alt",markdownDescription:(0,n.localize)("multiCursorModifier","The modifier to be used to add multiple cursors with the mouse. The Go To Definition and Open Link mouse gestures will adapt such that they do not conflict with the multicursor modifier. [Read more](https://code.visualstudio.com/docs/editor/codebasics#_multicursor-modifier).")},"editor.multiCursorMergeOverlapping":{type:"boolean",default:e.EDITOR_DEFAULTS.multiCursorMergeOverlapping,description:"%editor.configuration.multiCursorMergeOverlapping%"},"editor.quickSuggestions":{anyOf:[{type:"boolean"},{type:"object",properties:{strings:{type:"boolean",default:!1,description:(0,n.localize)("editor.configuration.quickSuggestions.strings","Enable quick suggestions inside strings.")},comments:{type:"boolean",default:!1,description:(0,n.localize)("editor.configuration.quickSuggestions.comments","Enable quick suggestions inside comments.")},other:{type:"boolean",default:!0,description:"%editor.configuration.quickSuggestions.other%"}}}],default:e.EDITOR_DEFAULTS.contribInfo.quickSuggestions,description:"%editor.configuration.quickSuggestions%"},"editor.quickSuggestionsDelay":{type:"integer",default:e.EDITOR_DEFAULTS.contribInfo.quickSuggestionsDelay,minimum:0,description:"%editor.configuration.quickSuggestionsDelay%"},"editor.parameterHints.enabled":{type:"boolean",default:e.EDITOR_DEFAULTS.contribInfo.parameterHints.enabled,description:"%editor.configuration.parameterHints.enabled%"},"editor.parameterHints.cycle":{type:"boolean",default:e.EDITOR_DEFAULTS.contribInfo.parameterHints.cycle,description:"%editor.configuration.parameterHints.cycle%"},"editor.autoClosingBrackets":{type:"string",enum:["always","languageDefined","beforeWhitespace","never"],enumDescriptions:["",(0,n.localize)("editor.configuration.autoClosingBrackets.languageDefined","Use language configurations to determine when to autoclose brackets."),(0,n.localize)("editor.configuration.autoClosingBrackets.beforeWhitespace","Autoclose brackets only when the cursor is to the left of whitespace."),""],default:e.EDITOR_DEFAULTS.autoClosingBrackets,description:"%editor.configuration.autoClosingBrackets%"},"editor.autoClosingQuotes":{type:"string",enum:["always","languageDefined","beforeWhitespace","never"],enumDescriptions:["",(0,n.localize)("editor.configuration.autoClosingQuotes.languageDefined","Use language configurations to determine when to autoclose quotes."),(0,n.localize)("editor.configuration.autoClosingQuotes.beforeWhitespace","Autoclose quotes only when the cursor is to the left of whitespace."),""],default:e.EDITOR_DEFAULTS.autoClosingQuotes,description:"%editor.configuration.autoClosingQuotes%"},"editor.autoSurround":{type:"string",enum:["languageDefined","brackets","quotes","never"],enumDescriptions:[(0,n.localize)("editor.configuration.autoSurround.languageDefined","Use language configurations to determine when to automatically surround selections."),(0,n.localize)("editor.configuration.autoSurround.brackets","Surround with brackets but not quotes."),(0,n.localize)("editor.configuration.autoSurround.quotes","Surround with quotes but not brackets."),""],default:e.EDITOR_DEFAULTS.autoSurround,description:"%editor.configuration.autoSurround%"},"editor.formatOnType":{type:"boolean",default:e.EDITOR_DEFAULTS.contribInfo.formatOnType,description:"%editor.configuration.formatOnType%"},"editor.formatOnPaste":{type:"boolean",default:e.EDITOR_DEFAULTS.contribInfo.formatOnPaste,description:"%editor.configuration.formatOnPaste%"},"editor.autoIndent":{type:"boolean",default:e.EDITOR_DEFAULTS.autoIndent,description:"%editor.configuration.autoIndent%"},"editor.suggestOnTriggerCharacters":{type:"boolean",default:e.EDITOR_DEFAULTS.contribInfo.suggestOnTriggerCharacters,description:"%editor.configuration.suggestOnTriggerCharacters%"},"editor.acceptSuggestionOnEnter":{type:"string",enum:["on","smart","off"],default:e.EDITOR_DEFAULTS.contribInfo.acceptSuggestionOnEnter,markdownEnumDescriptions:["",(0,n.localize)("editor.configuration.acceptSuggestionOnEnterSmart","Only accept a suggestion with `Enter` when it makes a textual change."),""],markdownDescription:(0,n.localize)("editor.configuration.acceptSuggestionOnEnter","Controls whether suggestions should be accepted on `Enter`, in addition to `Tab`. Helps to avoid ambiguity between inserting new lines or accepting suggestions.")},"editor.acceptSuggestionOnCommitCharacter":{type:"boolean",default:e.EDITOR_DEFAULTS.contribInfo.acceptSuggestionOnCommitCharacter,markdownDescription:(0,n.localize)("editor.configuration.acceptSuggestionOnCommitCharacter","Controls whether suggestions should be accepted on commit characters. For example, in JavaScript, the semi-colon (`;`) can be a commit character that accepts a suggestion and types that character.")},"editor.snippetSuggestions":{type:"string",enum:["top","bottom","inline","none"],enumDescriptions:[(0,n.localize)("editor.configuration.snippetSuggestions.top","Show snippet suggestions on top of other suggestions."),(0,n.localize)("editor.configuration.snippetSuggestions.bottom","Show snippet suggestions below other suggestions."),(0,n.localize)("editor.configuration.snippetSuggestions.inline","Show snippets suggestions with other suggestions."),(0,n.localize)("editor.configuration.snippetSuggestions.none","Do not show snippet suggestions.")],default:"inline",description:"%editor.configuration.snippetSuggestions%"},"editor.emptySelectionClipboard":{type:"boolean",default:e.EDITOR_DEFAULTS.emptySelectionClipboard,description:"%editor.configuration.emptySelectionClipboard%"},"editor.copyWithSyntaxHighlighting":{type:"boolean",default:e.EDITOR_DEFAULTS.copyWithSyntaxHighlighting,description:"%editor.configuration.copyWithSyntaxHighlighting%"},"editor.wordBasedSuggestions":{type:"boolean",default:e.EDITOR_DEFAULTS.contribInfo.wordBasedSuggestions,description:"%editor.configuration.wordBasedSuggestions%"},"editor.suggestSelection":{type:"string",enum:["first","recentlyUsed","recentlyUsedByPrefix"],markdownEnumDescriptions:[(0,n.localize)("editor.configuration.suggestSelection.first","Always select the first suggestion."),(0,n.localize)("editor.configuration.suggestSelection.recentlyUsed","Select recent suggestions unless further typing selects one, e.g. `console.| -> console.log` because `log` has been completed recently."),(0,n.localize)("editor.configuration.suggestSelection.recentlyUsedByPrefix","Select suggestions based on previous prefixes that have completed those suggestions, e.g. `co -> console` and `con -> const`.")],default:"recentlyUsed",description:"%editor.configuration.suggestSelection%"},"editor.suggestFontSize":{type:"integer",default:0,minimum:0,markdownDescription:"%editor.configuration.suggestFontSize%"},"editor.suggestLineHeight":{type:"integer",default:0,minimum:0,markdownDescription:"%editor.configuration.suggestLineHeight%"},"editor.tabCompletion":{type:"string",default:"off",enum:["on","off","onlySnippets"],enumDescriptions:[(0,n.localize)("editor.configuration.tabCompletion.on","Tab complete will insert the best matching suggestion when pressing tab."),(0,n.localize)("editor.configuration.tabCompletion.off","Disable tab completions."),(0,n.localize)("editor.configuration.tabCompletion.onlySnippets","Tab complete snippets when their prefix match. Works best when 'quickSuggestions' aren't enabled.")],description:"%editor.configuration.tabCompletion%"},"editor.suggest.filteredTypes":{type:"object",default:{keyword:!0,snippet:!0},markdownDescription:"%editor.configuration.suggest.filtered%",properties:{method:{type:"boolean",default:!0,markdownDescription:(0,n.localize)("editor.configuration.suggest.filtered.method","When set to `false` IntelliSense never shows `method` suggestions.")},function:{type:"boolean",default:!0,markdownDescription:"%editor.configuration.suggest.filtered.function%"},constructor:{type:"boolean",default:!0,markdownDescription:"%editor.configuration.suggest.filtered.constructor%"},field:{type:"boolean",default:!0,markdownDescription:"%editor.configuration.suggest.filtered.field%"},variable:{type:"boolean",default:!0,markdownDescription:"%editor.configuration.suggest.filtered.variable%"},class:{type:"boolean",default:!0,markdownDescription:"%editor.configuration.suggest.filtered.class%"},struct:{type:"boolean",default:!0,markdownDescription:"%editor.configuration.suggest.filtered.struct%"},interface:{type:"boolean",default:!0,markdownDescription:"%editor.configuration.suggest.filtered.interface%"},module:{type:"boolean",default:!0,markdownDescription:"%editor.configuration.suggest.filtered.module%"},property:{type:"boolean",default:!0,markdownDescription:"%editor.configuration.suggest.filtered.property%"},event:{type:"boolean",default:!0,markdownDescription:"%editor.configuration.suggest.filtered.event%"},operator:{type:"boolean",default:!0,markdownDescription:"%editor.configuration.suggest.filtered.operator%"},unit:{type:"boolean",default:!0,markdownDescription:"%editor.configuration.suggest.filtered.unit%"},value:{type:"boolean",default:!0,markdownDescription:"%editor.configuration.suggest.filtered.value"},constant:{type:"boolean",default:!0,markdownDescription:"%editor.configuration.suggest.filtered.constant%"},enum:{type:"boolean",default:!0,markdownDescription:"%editor.configuration.suggest.filtered.enum%"},enumMember:{type:"boolean",default:!0,markdownDescription:"%editor.configuration.suggest.filtered.enumMember%"},keyword:{type:"boolean",default:!0,markdownDescription:"%editor.configuration.suggest.filtered.keyword%"},text:{type:"boolean",default:!0,markdownDescription:"%editor.configuration.suggest.filtered.text%"},color:{type:"boolean",default:!0,markdownDescription:"%editor.configuration.suggest.filtered.color%"},file:{type:"boolean",default:!0,markdownDescription:"%editor.configuration.suggest.filtered.file%"},reference:{type:"boolean",default:!0,markdownDescription:"%editor.configuration.suggest.filtered.reference%"},customcolor:{type:"boolean",default:!0,markdownDescription:"%editor.configuration.suggest.filtered.customcolor%"},folder:{type:"boolean",default:!0,markdownDescription:"%editor.configuration.suggest.filtered.folder%"},typeParameter:{type:"boolean",default:!0,markdownDescription:"%editor.configuration.suggest.filtered.typeParameter%"},snippet:{type:"boolean",default:!0,markdownDescription:"%editor.configuration.suggest.filtered.snippet%"}}},"editor.gotoLocation.multiple":{description:"%editor.configuration.editor.gotoLocation.multiple%",type:"string",enum:["peek","gotoAndPeek","goto"],default:e.EDITOR_DEFAULTS.contribInfo.gotoLocation.multiple,enumDescriptions:[(0,n.localize)("editor.configuration.gotoLocation.multiple.peek","Show peek view of the results (default)"),(0,n.localize)("editor.configuration.gotoLocation.multiple.gotoAndPeek","Go to the primary result and show a peek view"),(0,n.localize)("editor.configuration.gotoLocation.multiple.goto","Go to the primary result and enable peek-less navigation to others")]},"editor.selectionHighlight":{type:"boolean",default:e.EDITOR_DEFAULTS.contribInfo.selectionHighlight,description:"%editor.configuration.selectionHighlight%"},"editor.occurrencesHighlight":{type:"boolean",default:e.EDITOR_DEFAULTS.contribInfo.occurrencesHighlight,description:"%editor.configuration.occurrencesHighlight%"},"editor.overviewRulerLanes":{type:"integer",default:3,description:"%editor.configuration.overviewRulerLanes%"},"editor.overviewRulerBorder":{type:"boolean",default:e.EDITOR_DEFAULTS.viewInfo.overviewRulerBorder,description:"%editor.configuration.overviewRulerBorder%"},"editor.cursorBlinking":{type:"string",enum:["blink","smooth","phase","expand","solid"],default:"blink",description:"%editor.configuration.cursorBlinking%"},"editor.mouseWheelZoom":{type:"boolean",default:e.EDITOR_DEFAULTS.viewInfo.mouseWheelZoom,markdownDescription:"%editor.configuration.mouseWheelZoom%"},"editor.cursorSmoothCaretAnimation":{type:"boolean",default:e.EDITOR_DEFAULTS.viewInfo.cursorSmoothCaretAnimation,description:"%editor.configuration.cursorSmoothCaretAnimation%"},"editor.cursorStyle":{type:"string",enum:["block","block-outline","line","line-thin","underline","underline-thin"],default:e.EDITOR_FONT_DEFAULTS.cursorStyle,description:"%editor.configuration.cursorStyle%"},"editor.cursorWidth":{type:"integer",default:e.EDITOR_DEFAULTS.viewInfo.cursorWidth,markdownDescription:"%editor.configuration.cursorWidth%"},"editor.fontLigatures":{type:"boolean",default:e.EDITOR_DEFAULTS.viewInfo.fontLigatures,description:"%editor.configuration.fontLigatures%"},"editor.hideCursorInOverviewRuler":{type:"boolean",default:e.EDITOR_DEFAULTS.viewInfo.hideCursorInOverviewRuler,description:"%editor.configuration.hideCursorInOverviewRuler%"},"editor.renderWhitespace":{type:"string",enum:["none","boundary","selection","all"],enumDescriptions:["",(0,n.localize)("editor.configuration.renderWhitespace.boundary","Render whitespace characters except for single spaces between words."),(0,n.localize)("editor.configuration.renderWhitespace.selection","Render whitespace characters only on selected text."),""],default:e.EDITOR_DEFAULTS.viewInfo.renderWhitespace,description:"%editor.configuration.renderWhitespace%"},"editor.rename.enablePreview":{type:"boolean",default:!0,description:"%editor.configuration.rename.enablePreview%"},"editor.renderControlCharacters":{type:"boolean",default:e.EDITOR_DEFAULTS.viewInfo.renderControlCharacters,description:"%editor.configuration.renderControlCharacters%"},"editor.guides.indentation":{type:"boolean",default:e.EDITOR_DEFAULTS.viewInfo.guides.indentation,description:"%editor.configuration.guides.indentation%"},"editor.guides.highlightActiveIndentation":{type:"boolean",default:e.EDITOR_DEFAULTS.viewInfo.guides.highlightActiveIndentGuide,description:"%editor.configuration.guides.highlightActiveIndentation%"},"editor.guides.bracketPairs":{type:"boolean",default:e.EDITOR_DEFAULTS.viewInfo.guides.bracketPairs,description:"%editor.configuration.guides.bracketPairs%"},"editor.renderLineHighlight":{type:"string",enum:["none","gutter","line","all"],enumDescriptions:["","","",(0,n.localize)("editor.configuration.renderLineHighlight.all","Highlights both the gutter and the current line.")],default:e.EDITOR_DEFAULTS.viewInfo.renderLineHighlight,description:"%editor.configuration.renderLineHighlight%"},"editor.codeLens":{type:"boolean",default:e.EDITOR_DEFAULTS.contribInfo.codeLens,description:"%editor.configuration.codeLens%"},"editor.folding":{type:"boolean",default:e.EDITOR_DEFAULTS.contribInfo.folding,description:"%editor.configuration.folding%"},"editor.foldingStrategy":{type:"string",enum:["auto","indentation"],default:e.EDITOR_DEFAULTS.contribInfo.foldingStrategy,markdownDescription:"%editor.configuration.foldingStrategy%"},"editor.showFoldingControls":{type:"string",enum:["always","mouseover"],default:e.EDITOR_DEFAULTS.contribInfo.showFoldingControls,description:"%editor.configuration.showFoldingControls%"},"editor.matchBrackets":{type:"boolean",default:e.EDITOR_DEFAULTS.contribInfo.matchBrackets,description:"%editor.configuration.matchBrackets%"},"editor.glyphMargin":{type:"boolean",default:e.EDITOR_DEFAULTS.viewInfo.glyphMargin,description:"%editor.configuration.glyphMargin%"},"editor.useTabStops":{type:"boolean",default:e.EDITOR_DEFAULTS.useTabStops,description:"%editor.configuration.useTabStops%"},"editor.trimAutoWhitespace":{type:"boolean",default:e.EDITOR_MODEL_DEFAULTS.trimAutoWhitespace,description:"%editor.configuration.trimAutoWhitespace%"},"editor.stablePeek":{type:"boolean",default:!1,markdownDescription:"%editor.configuration.stablePeek%"},"editor.dragAndDrop":{type:"boolean",default:e.EDITOR_DEFAULTS.dragAndDrop,description:"%editor.configuration.dragAndDrop%"},"editor.accessibilitySupport":{type:"string",enum:["auto","on","off"],enumDescriptions:[(0,n.localize)("editor.configuration.accessibilitySupport.auto","The editor will use platform APIs to detect when a Screen Reader is attached."),(0,n.localize)("editor.configuration.accessibilitySupport.on","The editor will be permanently optimized for usage with a Screen Reader."),(0,n.localize)("editor.configuration.accessibilitySupport.off","The editor will never be optimized for usage with a Screen Reader.")],default:e.EDITOR_DEFAULTS.accessibilitySupport,description:(0,n.localize)("accessibilitySupport","Controls whether the editor should run in a mode where it is optimized for screen readers.")},"editor.showUnused":{type:"boolean",default:e.EDITOR_DEFAULTS.showUnused,description:"%editor.configuration.showUnused%"},"editor.comments.insertSpace":{type:"boolean",default:!0,description:"%editor.configuration.comments.insertSpace%"},"editor.comments.ignoreEmptyLines":{type:"boolean",default:!0,description:"%editor.configuration.comments.ignoreEmptyLines%"},"editor.links":{type:"boolean",default:e.EDITOR_DEFAULTS.contribInfo.links,description:"%editor.configuration.links%"},"editor.colorDecorators":{type:"boolean",default:e.EDITOR_DEFAULTS.contribInfo.colorDecorators,description:"%editor.configuration.colorDecorators%"},"editor.lightbulb.enabled":{type:"string",default:e.EDITOR_DEFAULTS.contribInfo.lightbulbEnabled,enum:[a.ShowLightbulbIconMode.Off,a.ShowLightbulbIconMode.OnCode,a.ShowLightbulbIconMode.On],enumDescriptions:[],description:"%editor.configuration.lightbulb.enabled%"},"editor.maxTokenizationLineLength":{type:"integer",default:2e4,description:"%editor.configuration.maxTokenizationLineLength%"},"editor.codeActionsOnSave":{type:"object",properties:{"source.organizeImports":{type:"boolean",description:"%editor.configuration.codeActionsOnSave.organizeImports%"},"source.fixAll":{type:"boolean",description:"%editor.configuration.codeActionsOnSave.fixAll%"}},additionalProperties:{type:"boolean"},default:e.EDITOR_DEFAULTS.contribInfo.codeActionsOnSave,description:"%editor.configuration.codeActionsOnSave%"},"editor.codeActionsOnSaveTimeout":{type:"number",default:e.EDITOR_DEFAULTS.contribInfo.codeActionsOnSaveTimeout,description:"%editor.configuration.codeActionsOnSaveTimeout%"},"editor.codeActionsOnSaveNotification":{type:"boolean",default:!0,description:"%editor.configuration.codeActionsOnSaveNotification%"},"editor.selectionClipboard":{type:"boolean",default:e.EDITOR_DEFAULTS.contribInfo.selectionClipboard,description:"%editor.configuration.selectionClipboard%",included:n.isLinux},"editor.largeFileOptimizations":{type:"boolean",default:e.EDITOR_MODEL_DEFAULTS.largeFileOptimizations,description:"%editor.configuration.largeFileOptimizations%"},"editor.defaultFormatter":{type:"string",description:"%editor.configuration.defaultFormatter%"},"editor.unicodeHighlight.ambiguousCharacters":{type:"boolean",default:!0,description:"%editor.configuration.unicodeHighlight.ambiguousCharacters%"},"diffEditor.renderIndicators":{type:"boolean",default:e.DIFF_EDITOR_DEFAULTS.renderIndicators,description:"%editor.configuration.renderIndicators%"},"diffEditor.minimap":{type:"boolean",default:e.DIFF_EDITOR_DEFAULTS.minimap},"diffEditor.experimental.stickyScroll.enabled":{type:"boolean",default:e.DIFF_EDITOR_DEFAULTS.experimental.stickyScroll.enable}},G={"editor.tokenColorCustomizations":{type:"object",description:"%editor.configuration.tokenColorCustomizations%",default:{}},"editor.askIfDiff":{type:"boolean",default:!0,description:"%editor.configuration.askIfDiff%"},"editor.showActionWhenGroupEmpty":{type:"boolean",default:!1,description:"%editor.configuration.showActionWhenGroupEmpty%"},"editor.autoSave":{type:"string",enum:["off","afterDelay","editorFocusChange","windowLostFocus"],default:"off",description:"%editor.configuration.autoSave%"},"editor.autoSaveDelay":{type:"number",default:1e3,markdownDescription:"%editor.configuration.autoSaveDelay%"},"editor.preferredFormatter":{type:"object",default:{},description:"%editor.configuration.preferredFormatter%"},"editor.previewMode":{type:"boolean",default:!0,description:"%editor.configuration.previewMode%"},"editor.wrapTab":{type:"boolean",default:!1,description:"%editor.configuration.wrapTab%"},"editor.enablePreviewFromCodeNavigation":{type:"boolean",default:!1,markdownDescription:"%editor.configuration.enablePreviewFromCodeNavigation%"},"editor.minimap":{type:"boolean",default:!0},"editor.forceReadOnly":{type:"boolean",default:!1,description:"%editor.configuration.forceReadOnly%"},"editor.languageFeatureEnabledMaxSize":{type:"number",default:4*1024*1024*1024,description:"%editor.configuration.languageFeatureEnabledMaxSize%"},"editor.docExtHostSyncMaxSize":{type:"number",default:4*1024*1024*1024,description:"%editor.configuration.docExtHostSyncMaxSize%"},"editor.renderLineHighlight":{type:"string",enum:["none","gutter","line","all"],default:"all",description:"%editor.configuration.renderLineHighlight%"},"editor.fontFamily":{type:"string",default:e.EDITOR_FONT_DEFAULTS.fontFamily},"editor.fontSize":{type:"number",default:e.EDITOR_FONT_DEFAULTS.fontSize,minimum:6},"editor.tabSize":{type:"number",default:e.EDITOR_FONT_DEFAULTS.tabSize,minimum:1,description:"%editor.configuration.tabSize%"},"editor.formatOnPaste":{type:"boolean",default:!1},"editor.detectIndentation":{type:"boolean",default:!0},"editor.renderWhitespace":{type:"boolean",default:e.EDITOR_FONT_DEFAULTS.renderWhitespace},"editor.cursorStyle":{type:"string",enum:["line","block","block-outline","line-thin","underline","underline-thin"],default:e.EDITOR_FONT_DEFAULTS.cursorStyle},"editor.insertSpaces":{type:"boolean",default:e.EDITOR_FONT_DEFAULTS.insertSpace},"editor.wordWrap":{type:"string",enum:["off","on"],default:e.EDITOR_FONT_DEFAULTS.wordWrap},"editor.wordWrapColumn":{type:"number",default:e.EDITOR_FONT_DEFAULTS.wordWrapColumn,description:"%editor.configuration.wordWrapColumn%"},"editor.readonlyFiles":{type:"array",default:[],items:{type:"string"}},"editor.formatOnSave":{type:"boolean",default:!1,description:"%editor.configuration.formatOnSave%"},"editor.formatOnSaveTimeout":{type:"number",default:750,markdownDescription:"%editor.configuration.formatOnSaveTimeout%"},"editor.lineHeight":{type:"number",default:0,description:"%editor.lineHeight.description%"},"editor.maxTokenizationLineLength":{type:"integer",default:2e4,description:"%editor.configuration.maxTokenizationLineLength%"},"editor.semanticHighlighting.enabled":{enum:[!0,!1,"configuredByTheme"],enumDescriptions:[(0,n.localize)("editor.configuration.semanticHighlighting.true","Semantic highlighting enabled for all color themes."),(0,n.localize)("editor.configuration.semanticHighlighting.false","Semantic highlighting disabled for all color themes."),(0,n.localize)("editor.configuration.semanticHighlighting.configuredByTheme","Semantic highlighting is configured by the current color theme's `semanticHighlighting` setting.")],default:!0,description:"%editor.configuration.semanticHighlighting.enabled%"},"editor.bracketPairColorization.enabled":{type:"boolean",default:!0,description:"%editor.configuration.bracketPairColorization.enabled%"},"editor.largeFile":{type:"number",default:4*1024*1024*1024,description:"%editor.configuration.largeFileSize%"},"editor.quickSuggestionsDelay":{type:"integer",default:100,description:"%editor.configuration.quickSuggestionsDelay%"},"editor.modelDisposeTime":{type:"integer",default:3e3},"workbench.editorAssociations":{type:"object",markdownDescription:"%editor.configuration.workbench.editorAssociations%",default:{},additionalProperties:{type:"string"}},"editor.experimental.stickyScroll.enabled":{type:"boolean",default:!1,description:"%editor.configuration.experimental.stickyScroll.enabled%"},"editor.mouseBackForwardToNavigate":{type:"boolean",default:!0,description:"%editor.configuration.mouseBackForwardToNavigate%"},"diffEditor.renderSideBySide":{type:"boolean",default:e.DIFF_EDITOR_DEFAULTS.renderSideBySide,description:"%diffEditor.configuration.renderSideBySide%"},"diffEditor.ignoreTrimWhitespace":{type:"boolean",default:e.DIFF_EDITOR_DEFAULTS.ignoreTrimWhitespace,description:"%diffEditor.configuration.ignoreTrimWhitespace%"},"diffEditor.hideUnchangedRegions.enabled":{type:"boolean",default:e.DIFF_EDITOR_DEFAULTS.hideUnchangedRegions.enabled,description:"Controls whether the diff editor shows unchanged regions."},"diffEditor.hideUnchangedRegions.revealLineCount":{type:"integer",default:e.DIFF_EDITOR_DEFAULTS.hideUnchangedRegions.revealLineCount,description:"Controls how many lines are used for unchanged regions.",minimum:1},"diffEditor.hideUnchangedRegions.minimumLineCount":{type:"integer",default:e.DIFF_EDITOR_DEFAULTS.hideUnchangedRegions.minimumLineCount,description:"Controls how many lines are used as a minimum for unchanged regions.",minimum:1},"diffEditor.hideUnchangedRegions.contextLineCount":{type:"integer",default:e.DIFF_EDITOR_DEFAULTS.hideUnchangedRegions.contextLineCount,description:"Controls how many lines are used as context when comparing unchanged regions.",minimum:1},"diffEditor.experimental.showMoves":{type:"boolean",default:e.DIFF_EDITOR_DEFAULTS.experimental.showMoves,description:"Controls whether the diff editor should show detected code moves."},"diffEditor.experimental.showEmptyDecorations":{type:"boolean",default:e.DIFF_EDITOR_DEFAULTS.experimental.showEmptyDecorations,description:"Controls whether the diff editor shows empty decorations to see where characters got inserted or deleted."},"diffEditor.experimental.collapseUnchangedRegions":{type:"boolean",default:e.DIFF_EDITOR_DEFAULTS.experimental.collapseUnchangedRegions,description:"Controls whether the diff editor shows unchanged regions."}};e.editorPreferenceSchema={type:"object",properties:Object.assign(Object.assign({},u),G)},e.EditorPreferences=Symbol("EditorPreference")},90915:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.createEditorPreferenceProxy=void 0;const n=t(41869),a=t(24328);function o(I,g,u){return(0,n.createPreferenceProxy)(I,a.editorPreferenceSchema,{resourceUri:g,overrideIdentifier:u})}e.createEditorPreferenceProxy=o},53135:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.GoToLineQuickOpenHandler=void 0;const n=t(85608),a=t(76003),o=t(41869),I=t(74404),g=n.__importStar(t(20868)),u=t(55979),G=t(82196);class p extends u.AbstractGotoLineQuickAccessProvider{clearDecorations(d){super.clearDecorations(d)}preview(d,s){d.revealRangeInCenter(s,g.editor.ScrollType.Smooth),this.addDecorations(d,s)}goTo(d,s,l=!0){this.gotoLocation({editor:d},{range:s,preserveFocus:l,keyMods:{alt:!1,ctrlCmd:!1}})}}let b=class{constructor(){this.prefix=":",this.description=(0,o.localize)("quickopen.goToLine.desc"),this.quickAccess=new p}getFirstSelection(){const d=this.workbenchEditorService.currentEditor,s=d?.getSelections();return s?.[0]}getRange(d=1,s=1){return{startLineNumber:d,endLineNumber:d,startColumn:s,endColumn:s}}init(){var d;this.savedViewState=(0,o.withNullAsUndefined)((d=this.workbenchEditorService.currentEditor)===null||d===void 0?void 0:d.monacoEditor.saveViewState())}getModel(){var d,s,l,r,c;const h=this.workbenchEditorService.currentEditor,v=this.getFirstSelection();if(!v||!h)return{onType:(Z,y)=>{y([new I.QuickOpenItem({label:(0,o.localize)("quickopen.goToLine.notValid"),run:()=>!1})])}};const f=(d=v.positionLineNumber)!==null&&d!==void 0?d:1,W=(s=v.positionColumn)!==null&&s!==void 0?s:1,N=(c=(r=(l=h.currentDocumentModel)===null||l===void 0?void 0:l.getMonacoModel())===null||r===void 0?void 0:r.getLineCount())!==null&&c!==void 0?c:1;return{onType:(Z,y)=>{const E=Z.split(/,|:|#|:|,/).map(w=>parseInt(w,10)).filter(w=>!isNaN(w)),R=E[0],A=E[1];if(R){let w=(0,o.formatLocalize)("quickopen.goToLine.lineInfo",R);A&&(w+=(0,o.formatLocalize)("quickopen.goToLine.colInfo",A));const F=this.getRange(R,A);y([new I.QuickOpenItem({label:w,run:V=>V===I.Mode.PREVIEW?(this.quickAccess.preview(h.monacoEditor,F),!1):(this.quickAccess.goTo(h.monacoEditor,F,!0),!0)})])}else this.quickAccess.clearDecorations(h.monacoEditor),y([new I.QuickOpenItem({label:(0,o.formatLocalize)("quickopen.goToLine.defaultMessage",f,W,N),run:()=>!1})])}}}getOptions(){return{}}onClose(d){const s=this.workbenchEditorService.currentEditor;s&&(s.monacoEditor.focus(),this.quickAccess.clearDecorations(s.monacoEditor),d&&this.savedViewState&&s.monacoEditor.restoreViewState(this.savedViewState))}};n.__decorate([(0,a.Autowired)(I.PrefixQuickOpenService),n.__metadata("design:type",Object)],b.prototype,"quickOpenService",void 0),n.__decorate([(0,a.Autowired)(o.CommandService),n.__metadata("design:type",Object)],b.prototype,"commandService",void 0),n.__decorate([(0,a.Autowired)(G.WorkbenchEditorService),n.__metadata("design:type",G.WorkbenchEditorService)],b.prototype,"workbenchEditorService",void 0),b=n.__decorate([(0,a.Injectable)(),n.__metadata("design:paramtypes",[])],b),e.GoToLineQuickOpenHandler=b},50236:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SymbolInformationQuickOpenItem=e.WorkspaceSymbolQuickOpenHandler=void 0;const n=t(85608),a=t(76003),o=t(41869),I=t(43718),g=t(97821),u=t(51500),G=t(48069),p=t(23418);let b=class extends g.QuickOpenBaseAction{constructor(){super({id:"workspace-symbol:splitToRight",tooltip:(0,I.localize)("quickOpen.openOnTheRightSide"),class:(0,o.getIcon)("embed")})}async run(r){await r.openSide()}};b=n.__decorate([(0,a.Injectable)(),n.__metadata("design:paramtypes",[])],b);let m=class{hasActions(){return!0}getActions(){return[this.workspaceSymbolOpenSideActionOpen]}};n.__decorate([(0,a.Autowired)(),n.__metadata("design:type",b)],m.prototype,"workspaceSymbolOpenSideActionOpen",void 0),m=n.__decorate([(0,a.Injectable)()],m);let d=class{constructor(){this.prefix="#",this.cancellationSource=new o.CancellationTokenSource}get description(){return(0,I.localize)("editor.workspaceSymbol.description")}getModel(){return{onType:(r,c)=>{if(r===""){c([new o.QuickOpenItem({label:(0,I.localize)("editor.workspaceSymbol.search"),run:()=>!1})]);return}if(r==="#")return void c([new o.QuickOpenItem({label:(0,I.localize)("editor.workspaceSymbolClass.search"),run:()=>!1})]);if(this.languageService.workspaceSymbolProviders.length===0){c([new o.QuickOpenItem({label:(0,I.localize)("editor.workspaceSymbol.notfound"),run:()=>!1})]);return}const h=r[0]==="#",v=[];this.cancellationSource.cancel();const f=new o.CancellationTokenSource;this.cancellationSource=f;const W={query:h?r.slice(1):r},N=this.reporterService.time(I.REPORT_NAME.QUICK_OPEN_MEASURE);Promise.all(this.languageService.workspaceSymbolProviders.map(async Z=>{let y=await Z.provideWorkspaceSymbols(W,f.token);if(h&&(y=y?.filter(E=>E.kind===G.SymbolKind.Class)),y&&y.length&&!f.token.isCancellationRequested){const E=await Promise.all(y.map(async R=>{const A=await this.workspaceService.asRelativePath(new o.URI(R.location.uri).parent);return new s(R,Z,this.workbenchEditorService,f.token,A?.path||"")}));v.push(...E),c(v,this.workspaceSymbolActionProvider)}return y})).catch(Z=>{this.logger.log(Z)}).finally(()=>{f.token.isCancellationRequested||(v.length||c([]),N.timeEnd(h?"class":"symbol",{lookFor:r,stat:{symbol:v.length}}))})}}}getOptions(){return{fuzzyMatchLabel:{enableSeparateSubstringMatching:!0},showItemsWithoutHighlight:!0,fuzzyMatchDescription:!1,getPlaceholderItem:(r,c)=>new o.QuickOpenItem({label:(0,I.localize)(c.startsWith("##")?"editor.workspaceSymbolClass.notfound":"editor.workspaceSymbol.notfound"),run:()=>!1})}}onClose(){this.cancellationSource.cancel()}onToggle(){this.cancellationSource.cancel()}};n.__decorate([(0,a.Autowired)(p.ILanguageService),n.__metadata("design:type",Object)],d.prototype,"languageService",void 0),n.__decorate([(0,a.Autowired)(u.IWorkspaceService),n.__metadata("design:type",Object)],d.prototype,"workspaceService",void 0),n.__decorate([(0,a.Autowired)(I.ILogger),n.__metadata("design:type",Object)],d.prototype,"logger",void 0),n.__decorate([(0,a.Autowired)(p.WorkbenchEditorService),n.__metadata("design:type",p.WorkbenchEditorService)],d.prototype,"workbenchEditorService",void 0),n.__decorate([(0,a.Autowired)(),n.__metadata("design:type",m)],d.prototype,"workspaceSymbolActionProvider",void 0),n.__decorate([(0,a.Autowired)(I.IReporterService),n.__metadata("design:type",Object)],d.prototype,"reporterService",void 0),d=n.__decorate([(0,a.Injectable)()],d),e.WorkspaceSymbolQuickOpenHandler=d;class s extends o.QuickOpenItem{constructor(r,c,h,v,f){super({}),this.symbol=r,this.provider=c,this.workbenchEditorService=h,this.token=v,this.relativePath=f}getLabel(){return this.symbol.name}getUri(){return new o.URI(this.symbol.location.uri)}getIconClass(){return(0,o.getSymbolIcon)(this.symbol.kind)}getDescription(){const r=this.symbol.containerName;return`${r?`${r} \xB7 `:""}${decodeURIComponent(this.relativePath)}`}fromRange(r){if(!r)return;const{start:c,end:h}=r;return{startLineNumber:c.line+1,startColumn:c.character+1,endLineNumber:h.line+1,endColumn:h.character+1}}open(r,c){this.workbenchEditorService.open(r,{range:this.fromRange(c)})}run(r){const c=this.getUri();return r===o.QuickOpenMode.OPEN&&this.provider.resolveWorkspaceSymbol(this.symbol,this.token).then(h=>{h?this.open(c,h.location.range):this.open(c,this.symbol.location.range)}),!0}openSide(){const r=this.getUri();return this.provider.resolveWorkspaceSymbol(this.symbol,this.token).then(c=>{this.workbenchEditorService.open(r,{preview:!1,split:p.EditorGroupSplitAction.Right,range:this.fromRange(c?c.location.range:this.symbol.location.range),focus:!0})})}}e.SymbolInformationQuickOpenItem=s},80200:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ResourceServiceImpl=void 0;const n=t(85608),a=t(83794),o=t(76003),I=t(41869),g=t(43718),u=t(23418),{addElement:G}=g.arrays;let p=class extends I.WithEventBus{constructor(){super(),this.providers=[],this.resources=new Map,this.gettingResources=new Map,this.resourceDecoration=new Map,this.cachedProvider=new g.LRUMap(500,200),this.onRegisterResourceProviderEmitter=new g.Emitter,this.onRegisterResourceProvider=this.onRegisterResourceProviderEmitter.event,this.onUnregisterResourceProviderEmitter=new g.Emitter,this.onUnregisterResourceProvider=this.onUnregisterResourceProviderEmitter.event}onResourceNeedUpdateEvent(s){const l=s.payload;if(this.resources.has(l.toString())){const r=this.resources.get(l.toString());this.doGetResource(l).then(c=>{r&&(Object.assign(r?.resource,c?.resource),r.provider=c?.provider),this.eventBus.fire(new u.ResourceDidUpdateEvent(l))})}}onResourceDecorationNeedChangeEvent(s){this.getResourceDecoration(s.payload.uri);let l=!1;const r=this.resourceDecoration.get(s.payload.uri.toString())||{};new Set([...Object.keys(r),...Object.keys(s.payload.decoration)]).forEach(c=>{r[c]!==s.payload.decoration[c]&&(l=!0)}),l&&(Object.assign(this.resourceDecoration.get(s.payload.uri.toString()),s.payload.decoration),this.eventBus.fire(new u.ResourceDecorationChangeEvent(s.payload)))}getSupportedSchemes(){return Array.from(this.providers.values()).map(s=>s.scheme).filter(Boolean)}async getResource(s){if(!this.resources.has(s.toString())){const l=await this.doGetResource(s);if(!l)return null;const r={resource:(0,a.observable)(Object.assign({},l.resource)),provider:l.provider};this.resources.set(s.toString(),r)}return this.resources.get(s.toString()).resource}handlesUri(s){return!!this.calculateProvider(s)}async doGetResource(s){if(!this.gettingResources.has(s.toString())){const l=(async()=>{const r=this.calculateProvider(s);if(r){const c=await r.provideResource(s);return c.uri=s,{resource:c,provider:r}}else return this.logger.error("URI has no resource provider: "+s),null})();this.gettingResources.set(s.toString(),l),l.finally(()=>{this.gettingResources.delete(s.toString())})}return this.gettingResources.get(s.toString())}registerResourceProvider(s){this.onRegisterResourceProviderEmitter.fire(s);const l=new g.Disposable;return l.addDispose(G(this.providers,s)),l.addDispose({dispose:()=>{for(const r of this.resources.values())r.provider===s&&(r.provider=m,this.onUnregisterResourceProviderEmitter.fire(s));this.cachedProvider.clear()}}),this.cachedProvider.clear(),l}async shouldCloseResource(s,l){const r=this.getProvider(s.uri);return!r||!r.shouldCloseResource?!0:await r.shouldCloseResource(s,l)}async shouldCloseResourceWithoutConfirm(s){const l=this.getProvider(s.uri);return l&&l.shouldCloseResourceWithoutConfirm?await l.shouldCloseResourceWithoutConfirm(s):!1}async close(s,l){const r=this.getProvider(s.uri);return!r||!r.close?!0:await r.close(s,l)}calculateProvider(s){if(this.cachedProvider.has(s.toString()))return this.cachedProvider.get(s.toString());let l,r={weight:-1,index:-1};function c(h,v,f){r={weight:v,index:f},l=h}return this.providers.forEach((h,v)=>{let f=-1;h.handlesUri?f=h.handlesUri(s):h.scheme&&(f=h.scheme===s.scheme?10:-1),f>=0&&(f>r.weight||f===r.weight&&v>r.index)&&c(h,f,v)}),this.cachedProvider.set(s.toString(),l),l}getProvider(s){const l=this.resources.get(s.toString());if(l)return l.provider}getResourceDecoration(s){return this.resourceDecoration.has(s.toString())||this.resourceDecoration.set(s.toString(),(0,a.observable)(b)),this.resourceDecoration.get(s.toString())}getResourceSubname(s,l){const r=this.getProvider(s.uri);return r&&r.provideResourceSubname?r.provideResourceSubname(s,l):null}disposeResource(s){const l=this.getProvider(s.uri);if(this.resources.delete(s.uri.toString()),this.resourceDecoration.delete(s.uri.toString()),!(!l||!l.onDisposeResource))return l.onDisposeResource(s)}};n.__decorate([(0,o.Autowired)(g.ILogger),n.__metadata("design:type",Object)],p.prototype,"logger",void 0),n.__decorate([(0,I.OnEvent)(u.ResourceNeedUpdateEvent),n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[u.ResourceNeedUpdateEvent]),n.__metadata("design:returntype",void 0)],p.prototype,"onResourceNeedUpdateEvent",null),n.__decorate([(0,I.OnEvent)(u.ResourceDecorationNeedChangeEvent),n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[u.ResourceDecorationNeedChangeEvent]),n.__metadata("design:returntype",void 0)],p.prototype,"onResourceDecorationNeedChangeEvent",null),p=n.__decorate([(0,o.Injectable)(),n.__metadata("design:paramtypes",[])],p),e.ResourceServiceImpl=p;const b={dirty:!1,readOnly:!1},m={handlesUri:()=>-1,provideResource:d=>({uri:d,name:"",icon:""})}},52795:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.EditorActions=e.Tabs=void 0;const n=t(85608),a=n.__importDefault(t(53373)),o=n.__importStar(t(14041)),I=t(97267),g=t(41869),u=t(25918),G=t(1149),p=t(63373),b=t(93899),m=t(48560),d=t(23418),s=n.__importDefault(t(62711)),l=t(78680),r=t(82196),c=t(50674),h=t(72570).UU,v=({group:W})=>{const N=(0,o.useRef)(),Z=(0,o.useRef)(),y=(0,o.useRef)(),E=(0,o.useRef)(null),R=(0,o.useRef)(null),A=(0,m.useInjectable)(d.ResourceService),w=(0,m.useInjectable)(g.IEventBus),F=(0,o.useContext)(g.ConfigContext),V=(0,m.useInjectable)(d.WorkbenchEditorService),Y=(0,m.useInjectable)(l.TabTitleMenuService),_=(0,m.useInjectable)(g.PreferenceService),H=(0,m.useInjectable)(b.IMenuRegistry),S=(0,m.useInjectable)(r.IEditorTabService),X=(0,m.useInjectable)(G.LayoutViewSizeConfig),Q=(0,g.useDesignStyles)(s.default.tab_right,"tab_right"),O=(0,g.useDesignStyles)(s.default.close_tab,"close_tab"),M=(0,g.useDesignStyles)(s.default.kt_editor_close_icon,"kt_editor_close_icon"),T=(0,g.useDesignStyles)(s.default.kt_editor_tabs_content,"kt_editor_tabs_content"),x=(0,g.useDesignStyles)(s.default.kt_editor_tabs_current_last,"kt_editor_tabs_current_last"),B=(0,g.useDesignStyles)(s.default.kt_editor_tab,"kt_editor_tab"),D=(0,g.useDesignStyles)(s.default.kt_editor_tab_current_prev,"kt_editor_tab_current_prev"),J=(0,g.useDesignStyles)(s.default.kt_editor_tab_current_next,"kt_editor_tab_current_next"),k=(0,g.useDesignStyles)(s.default.kt_editor_tab_current,"kt_editor_tab_current"),z=(0,g.useDesignStyles)(s.default.kt_editor_tab_dirty,"kt_editor_tab_dirty"),P=(0,g.useDesignStyles)(s.default.kt_editor_tabs,"kt_editor_tabs"),U=(0,g.useDesignStyles)(s.default.kt_editor_tabs_scroll_wrapper,"kt_editor_tabs_scroll_wrapper"),[oe,se]=(0,o.useState)({}),[ae,he]=(0,o.useState)(!!_.get("editor.wrapTab")),[ee,pe]=(0,o.useState)(new Map),[ge,$]=(0,o.useState)(),le=(0,o.useMemo)(()=>(0,g.getSlotLocation)(h,F.layoutConfig),[]);(0,c.useUpdateOnGroupTabChange)(W),(0,m.useUpdateOnEventBusEvent)(d.ResourceDidUpdateEvent,[W.resources],me=>!!y&&W.resources.findIndex(ve=>ve.uri.isEqual(me))!==-1),(0,o.useEffect)(()=>{const me=new g.Disposable;return me.addDispose(W.onDidEditorGroupContentLoading(ve=>{var Ne;(Ne=W.resourceStatus.get(ve))===null||Ne===void 0||Ne.finally(()=>{se(Object.assign({},oe,{[ve.uri.toString()]:!1}))}),se(Object.assign({},oe,{[ve.uri.toString()]:!0}))})),me.addDispose(W.onDidEditorGroupTabChanged(()=>{ae||ue()})),()=>{me.dispose()}},[W]);const te=(0,o.useCallback)((me,ve,Ne)=>{if(me.dataTransfer.getData("uri")){const Ze=new g.URI(me.dataTransfer.getData("uri"));let Ee;me.dataTransfer.getData("uri-source-group")&&(Ee=V.getEditorGroup(me.dataTransfer.getData("uri-source-group"))),W.dropUri(Ze,r.DragOverPosition.CENTER,Ee,Ne)}me.dataTransfer.files.length>0&&w.fire(new r.EditorGroupFileDropEvent({group:W,tabIndex:ve,files:me.dataTransfer.files}))},[W]),ue=(0,o.useCallback)(()=>{if(N.current&&W.currentResource)try{const me=N.current.querySelector("."+s.default.kt_editor_tab+"[data-uri='"+W.currentResource.uri.toString()+"']");me&&me.scrollIntoView()}catch{}},[W,N.current]),q=(0,o.useCallback)(()=>{E.current&&(clearTimeout(E.current),E.current=null);const me=setTimeout(()=>{var ve,Ne;((ve=R.current)===null||ve===void 0?void 0:ve.offsetWidth)!==ge&&$((Ne=R.current)===null||Ne===void 0?void 0:Ne.offsetWidth)},200);E.current=me},[R.current,E.current,ge]);(0,o.useEffect)(()=>{ae||queueMicrotask(()=>{ue()})},[ae,N.current]),(0,o.useEffect)(()=>{if(!ae){const me=new g.Disposable;return N.current&&me.addDispose(new g.DomListener(N.current,"mousewheel",f)),me.addDispose(w.on(g.ResizeEvent,ve=>{ve.payload.slotLocation===le&&ue()})),me.addDispose(w.on(r.GridResizeEvent,ve=>{ve.payload.gridId===W.grid.uid&&ue()})),()=>{me.dispose()}}},[ae]);const j=(0,o.useCallback)(()=>{if(y.current&&ae){const me=new Map;let ve,Ne;const Ze=Array.from(y.current.children);Ze.pop(),Ze.forEach(Ee=>{Ee.offsetTop!==ve&&(ve=Ee.offsetTop,Ne&&me.set(Ze.indexOf(Ne),!0)),Ne=Ee,me.set(Ze.indexOf(Ee),!1)}),pe(me)}},[y.current,ae]);(0,o.useEffect)(()=>{q()},[R.current,ae]),(0,o.useEffect)(j,[ae,y.current,W,W.resources.length]),(0,o.useEffect)(()=>{const me=new g.DisposableCollection;return me.push(w.on(g.ResizeEvent,ve=>{ve.payload.slotLocation===le&&j()})),me.push(_.onPreferenceChanged(ve=>{ve.preferenceName==="editor.wrapTab"&&he(!!ve.newValue)})),me.push(V.onDidCurrentEditorGroupChanged(()=>{window.requestAnimationFrame(q)})),me.push(g.Event.debounce(g.Event.filter(H.onDidChangeMenu,ve=>ve===b.MenuId.EditorTitle),()=>{},200)(()=>{window.requestAnimationFrame(q)})),()=>{me.dispose()}},[]),(0,o.useEffect)(()=>{const me=new g.DisposableCollection;return me.push(W.onDidEditorFocusChange(ve=>{q()})),()=>{me.dispose()}},[W]);const ie=(0,o.useCallback)(me=>{me.preventDefault(),me.stopPropagation(),Z.current&&Z.current.classList.add(s.default.kt_on_drag_over)},[Z.current]),ne=(0,o.useCallback)(me=>{Z.current&&Z.current.classList.remove(s.default.kt_on_drag_over)},[Z.current]),de=(0,o.useCallback)(me=>{Z.current&&Z.current.classList.remove(s.default.kt_on_drag_over),te&&te(me,-1)},[te,Z.current]),Ie=(0,o.useCallback)(me=>{me.target===me.currentTarget&&V.createUntitledResource()},[V]),Ge=o.default.useCallback((me,ve)=>{const Ne=A.getResourceDecoration(me.uri),Ze=A.getResourceSubname(me,W.resources);return S.renderEditorTab(o.default.createElement(o.default.Fragment,null,o.default.createElement("div",{className:oe[me.uri.toString()]?"loading_indicator":(0,a.default)(me.icon)}," "),o.default.createElement("div",null,me.name),Ze?o.default.createElement("div",{className:s.default.subname},Ze):null,Ne.readOnly?o.default.createElement("span",{className:(0,a.default)((0,g.getExternalIcon)("lock"),s.default.editor_readonly_icon)}):null,o.default.createElement("div",{className:Q},o.default.createElement("div",{className:(0,a.default)({[s.default.kt_hidden]:!Ne.dirty,[s.default.dirty]:!0})}),o.default.createElement("div",{className:O,onMouseDown:Ee=>{Ee.stopPropagation(),W.close(me.uri)}},S.renderTabCloseComponent(o.default.createElement("div",{className:(0,a.default)((0,g.getIcon)("close"),M)}))))),ve)},[S]),re=()=>{const me=W.resources.findIndex(ve=>W.currentResource===ve);return o.default.createElement("div",{className:(0,a.default)({[T]:!0,[x]:me===W.resources.length-1}),ref:y},W.resources.map((ve,Ne)=>{let Ze;const Ee=A.getResourceDecoration(ve.uri);return o.default.createElement("div",{draggable:!0,title:ve.title,className:(0,a.default)({[B]:!0,[s.default.last_in_row]:ee.get(Ne),[D]:me-1===Ne,[J]:me+1===Ne,[k]:W.currentResource===ve,[s.default.kt_editor_tab_preview]:W.previewURI&&W.previewURI.isEqual(ve.uri),[z]:Ee.dirty}),style:ae&&Ne===W.resources.length-1?{marginRight:ge,height:X.editorTabsHeight}:{height:X.editorTabsHeight},onContextMenu:Ve=>{Y.show(Ve.nativeEvent.x,Ve.nativeEvent.y,ve&&ve.uri,W),Ve.preventDefault()},key:ve.uri.toString(),onMouseUp:Ve=>{Ve.nativeEvent.which===2&&(Ve.preventDefault(),Ve.stopPropagation(),W.close(ve.uri))},onMouseDown:Ve=>{Ve.nativeEvent.which===1&&W.open(ve.uri,{focus:!0})},"data-uri":ve.uri.toString(),onDragOver:Ve=>{Ve.preventDefault(),Ve.stopPropagation(),Ze&&Ze.classList.add(s.default.kt_on_drag_over)},onDragLeave:Ve=>{Ze&&Ze.classList.remove(s.default.kt_on_drag_over)},onDrop:Ve=>{Ze&&Ze.classList.remove(s.default.kt_on_drag_over),te&&te(Ve,Ne,ve)},onDoubleClick:Ve=>{W.pinPreviewed(ve.uri)},ref:Ve=>Ze=Ve,onDragStart:Ve=>{Ve.dataTransfer.setData("uri",ve.uri.toString()),Ve.dataTransfer.setData("uri-source-group",W.name)}},Ge(ve,W.currentResource===ve))}),ae&&o.default.createElement(e.EditorActions,{className:s.default.kt_editor_wrap_mode_action,ref:R,group:W}))};return o.default.createElement("div",{id:p.VIEW_CONTAINERS.EDITOR_TABS,className:P},o.default.createElement("div",{className:U,ref:Z,onDragOver:ie,onDragLeave:ne,onDrop:de,onDoubleClick:Ie},ae?o.default.createElement("div",{className:s.default.kt_editor_wrap_container},re()):o.default.createElement(I.Scrollbars,{tabBarMode:!0,forwardedRef:me=>me?N.current=me:null,className:s.default.kt_editor_tabs_scroll},re())),!ae&&o.default.createElement(e.EditorActions,{ref:R,group:W}))};e.Tabs=v,e.EditorActions=(0,o.forwardRef)((W,N)=>{const Z=(0,g.useDesignStyles)(s.default.editor_actions,"editor_actions"),{group:y,className:E}=W,R=(0,o.useCallback)(()=>{var X,Q;return y.currentResource?[y.currentResource.uri,y,((X=y.currentOrPreviousFocusedEditor)===null||X===void 0?void 0:X.currentUri)||((Q=y.currentEditor)===null||Q===void 0?void 0:Q.currentUri)]:void 0},[y]),A=(0,m.useInjectable)(r.IEditorActionRegistry),w=(0,m.useInjectable)(d.WorkbenchEditorService),F=(0,m.useInjectable)(G.LayoutViewSizeConfig),V=A.getMenu(y),[Y,_]=(0,o.useState)(w.currentEditorGroup===y),[H,S]=(0,o.useState)(R());return(0,o.useEffect)(()=>{const X=new g.DisposableCollection;return X.push(w.onDidCurrentEditorGroupChanged(()=>{_(w.currentEditorGroup===y)})),X.push(w.onActiveResourceChange(()=>{S(R())})),X.push(y.onDidEditorGroupTabChanged(()=>{S(R())})),()=>{X.dispose()}},[y]),o.default.createElement("div",{ref:N,className:(0,a.default)(Z,E),style:{height:F.editorTabsHeight}},o.default.createElement(u.InlineMenuBar,{menus:V,context:H,regroup:(X,Q)=>Y?[X,Q]:[[],Q]}))});function f(W){(this.offsetWidth+this.scrollLeft+W.deltaX>this.scrollWidth||this.scrollLeft+W.deltaX<0)&&W.preventDefault()}},82196:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.IEditorTabService=e.ResoucesOfActiveComponentChangedEvent=e.CodeEditorDidVisibleEvent=e.EditorComponentDisposeEvent=e.ResourceOpenTypeChangedEvent=e.IEditorFeatureRegistry=e.IBreadCrumbService=e.CompareResult=e.ICompareService=e.IEditorActionRegistry=e.EditorDecorationTypeRemovedEvent=e.EditorDecorationChangeEvent=e.EditorDecorationProviderRegistrationEvent=e.RegisterEditorSideComponentEvent=e.EditorGroupsResetSizeEvent=e.EditorGroupIndexChangedEvent=e.EditorConfigurationChangedEvent=e.EditorVisibleChangeEvent=e.EditorSelectionChangeEvent=e.IEditorDecorationCollectionService=e.EditorGroupFileDropEvent=e.EditorActiveResourceStateChangedEvent=e.EditorGroupChangeEvent=e.EditorGroupDisposeEvent=e.EditorGroupCloseEvent=e.EditorGroupOpenEvent=e.GridResizeEvent=e.BrowserEditorContribution=e.EditorComponentRegistry=e.RegisterEditorComponentEvent=e.RegisterEditorComponentResolverEvent=e.EditorComponentRenderMode=void 0;const n=t(85608),a=t(41869);n.__exportStar(t(23418),e);var o;(function(V){V[V.ONE_PER_RESOURCE=1]="ONE_PER_RESOURCE",V[V.ONE_PER_GROUP=2]="ONE_PER_GROUP",V[V.ONE_PER_WORKBENCH=3]="ONE_PER_WORKBENCH"})(o=e.EditorComponentRenderMode||(e.EditorComponentRenderMode={}));class I extends a.BasicEvent{}e.RegisterEditorComponentResolverEvent=I;class g extends a.BasicEvent{}e.RegisterEditorComponentEvent=g;class u{}e.EditorComponentRegistry=u,e.BrowserEditorContribution=Symbol("BrowserEditorContribution");class G extends a.BasicEvent{}e.GridResizeEvent=G;class p extends a.BasicEvent{}e.EditorGroupOpenEvent=p;class b extends a.BasicEvent{}e.EditorGroupCloseEvent=b;class m extends a.BasicEvent{}e.EditorGroupDisposeEvent=m;class d extends a.BasicEvent{}e.EditorGroupChangeEvent=d;class s extends a.BasicEvent{}e.EditorActiveResourceStateChangedEvent=s;class l extends a.BasicEvent{}e.EditorGroupFileDropEvent=l,e.IEditorDecorationCollectionService=Symbol("IEditorDecorationCollectionService");class r extends a.BasicEvent{}e.EditorSelectionChangeEvent=r;class c extends a.BasicEvent{}e.EditorVisibleChangeEvent=c;class h extends a.BasicEvent{}e.EditorConfigurationChangedEvent=h;class v extends a.BasicEvent{}e.EditorGroupIndexChangedEvent=v;class f extends a.BasicEvent{}e.EditorGroupsResetSizeEvent=f;class W extends a.BasicEvent{}e.RegisterEditorSideComponentEvent=W;class N extends a.BasicEvent{}e.EditorDecorationProviderRegistrationEvent=N;class Z extends a.BasicEvent{}e.EditorDecorationChangeEvent=Z;class y extends a.BasicEvent{}e.EditorDecorationTypeRemovedEvent=y,e.IEditorActionRegistry=Symbol("IEditorActionRegistry"),e.ICompareService=Symbol("ICompareService");var E;(function(V){V.revert="revert",V.accept="accept",V.cancel="cancel"})(E=e.CompareResult||(e.CompareResult={})),e.IBreadCrumbService=Symbol("IBreadScrumbService"),e.IEditorFeatureRegistry=Symbol("IEditorFeatureRegistry");class R extends a.BasicEvent{}e.ResourceOpenTypeChangedEvent=R;class A extends a.BasicEvent{}e.EditorComponentDisposeEvent=A;class w extends a.BasicEvent{}e.CodeEditorDidVisibleEvent=w;class F extends a.BasicEvent{}e.ResoucesOfActiveComponentChangedEvent=F,e.IEditorTabService=Symbol("IEditorTabService")},17878:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.UntitledSchemeResourceProvider=e.UntitledSchemeDocumentProvider=e.UntitledDocumentIdCounter=void 0;const n=t(85608),a=t(76003),o=t(41869),I=t(72665),g=t(23418),u=t(96689);let G=class{constructor(){this._id=1}get id(){return this._id++}};G=n.__decorate([(0,a.Injectable)()],G),e.UntitledDocumentIdCounter=G;let p=class{constructor(){this._onDidChangeContent=new o.Emitter,this.onDidChangeContent=this._onDidChangeContent.event}handlesScheme(d){return d===o.Schemes.untitled}async provideEncoding(d){return this.preferenceService.get("files.encoding",void 0,d.toString(),(0,o.getLanguageIdFromMonaco)(d))||"utf8"}async provideEOL(d){const s=await this.applicationService.getBackendOS(),l=this.preferenceService.get("files.eol","auto",d.toString(),(0,o.getLanguageIdFromMonaco)(d));return l!=="auto"?l:s===o.OperatingSystem.Windows?`\r
|
|
27682
|
+
Tokenizing line: ${w}`);for(let O=0;O<X.tokens.length;O++){const M=X.tokens[O];Q.log(` - token from ${M.startIndex} to ${M.endIndex} (${w.substring(M.startIndex,M.endIndex)}) with scopes ${M.scopes.join(", ")}`)}S=X.ruleStack}dispose(){super.dispose(),this.monacoLanguageService._encounteredLanguages.clear()}};n.__decorate([(0,I.Autowired)(),n.__metadata("design:type",h.TextmateRegistry)],R.prototype,"textmateRegistry",void 0),n.__decorate([(0,I.Autowired)(p.IFileServiceClient),n.__metadata("design:type",Object)],R.prototype,"fileServiceClient",void 0),n.__decorate([(0,I.Autowired)(g.PreferenceService),n.__metadata("design:type",Object)],R.prototype,"preferenceService",void 0),n.__decorate([(0,I.Autowired)(g.ILogger),n.__metadata("design:type",Object)],R.prototype,"logger",void 0),n.__decorate([(0,I.Autowired)(c.IEditorDocumentModelService),n.__metadata("design:type",Object)],R.prototype,"editorDocumentModelService",void 0),n.__decorate([(0,I.Autowired)(u.RendererRuntime),n.__metadata("design:type",u.RendererRuntime)],R.prototype,"rendererRuntime",void 0),R=n.__decorate([(0,I.Injectable)()],R),e.TextmateService=R},88412:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.TypeHierarchyContribution=e.executeProvideSubtypesCommand=e.executeProvideSupertypesCommand=e.executePrepareTypeHierarchyCommand=void 0;const n=t(85608),a=t(76003),o=t(41869),I=t(40191),g=t(28694),u=t(82196);e.executePrepareTypeHierarchyCommand={id:"_executePrepareTypeHierarchy"},e.executeProvideSupertypesCommand={id:"_executeProvideSupertypes"},e.executeProvideSubtypesCommand={id:"_executeProvideSubtypes"};const G=new I.RawContextKey("editorHasCallHierarchyProvider",!1);let p=class{registerCommands(m){m.registerCommand(e.executePrepareTypeHierarchyCommand,{execute:(d,s)=>this.typeHierarchyService.prepareTypeHierarchyProvider(d,s)}),m.registerCommand(e.executeProvideSupertypesCommand,{execute:d=>this.typeHierarchyService.provideSupertypes(d)}),m.registerCommand(e.executeProvideSubtypesCommand,{execute:d=>this.typeHierarchyService.provideSubtypes(d)})}registerEditorFeature(m){this.ctxHasProvider=G.bind(this.contextKeyService),m.registerEditorFeatureContribution({contribute:d=>{const s=d.monacoEditor;return o.Event.any(s.onDidChangeModel,s.onDidChangeModelLanguage,g.TypeHierarchyProviderRegistry.onDidChange)(()=>{s.hasModel()&&this.ctxHasProvider.set(g.TypeHierarchyProviderRegistry.has(s.getModel()))})}})}};n.__decorate([(0,a.Autowired)(o.IContextKeyService),n.__metadata("design:type",Object)],p.prototype,"contextKeyService",void 0),n.__decorate([(0,a.Autowired)(g.ITypeHierarchyService),n.__metadata("design:type",Object)],p.prototype,"typeHierarchyService",void 0),p=n.__decorate([(0,o.Domain)(o.CommandContribution,u.BrowserEditorContribution)],p),e.TypeHierarchyContribution=p},7795:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.TypeHierarchyService=e.TypeHierarchyModel=void 0;const n=t(85608),a=t(76003),o=t(43718),I=t(28694),g=t(96689),{isNonEmptyArray:u}=o.arrays;class G{static async create(m,d,s){const[l]=I.TypeHierarchyProviderRegistry.ordered(m);if(!l)return;const r=await l.prepareTypeHierarchy(m,d,s);if(r)return new G(r.roots.reduce((c,h)=>c+h._sessionId,""),l,r.roots,new o.RefCountedDisposable(r))}constructor(m,d,s,l){this.id=m,this.provider=d,this.roots=s,this.ref=l,this.root=s[0]}dispose(){this.ref.release()}fork(m){const d=this;return new class extends G{constructor(){super(d.id,d.provider,[m],d.ref.acquire())}}}async provideSupertypes(m,d){try{const s=await this.provider.provideSupertypes(m,d);if(u(s))return s}catch(s){(0,o.onUnexpectedExternalError)(s)}return[]}async provideSubtypes(m,d){try{const s=await this.provider.provideSubtypes(m,d);if(u(s))return s}catch(s){(0,o.onUnexpectedExternalError)(s)}return[]}}e.TypeHierarchyModel=G;let p=class{constructor(){this.models=new Map}registerTypeHierarchyProvider(m,d){I.TypeHierarchyProviderRegistry.register(m,d)}async prepareTypeHierarchyProvider(m,d){var s;let l=(s=this.modelService.getModelReference(o.URI.parse(m.toString())))===null||s===void 0?void 0:s.instance.getMonacoModel(),r;if(!l){const c=await this.modelService.createModelReference(o.URI.parse(m.toString()));l=c.instance.getMonacoModel(),r=c}try{const c=await G.create(l,d,o.CancellationToken.None);return c?(this.models.set(c.id,c),this.models.forEach((h,v,f)=>{f.size>10&&(h.dispose(),this.models.delete(v))}),[c.root]):[]}finally{r?.dispose()}}async provideSupertypes(m){const d=this.models.get(m._sessionId);if(d)return d.provideSupertypes(m,o.CancellationToken.None)}async provideSubtypes(m){const d=this.models.get(m._sessionId);if(d)return d.provideSubtypes(m,o.CancellationToken.None)}};n.__decorate([(0,a.Autowired)(g.IEditorDocumentModelService),n.__metadata("design:type",Object)],p.prototype,"modelService",void 0),p=n.__decorate([(0,a.Injectable)()],p),e.TypeHierarchyService=p},93532:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.NavigationMenuModel=e.NavigationBarViewService=e.NavigationMenuContainer=e.NavigationMenu=e.NavigationItem=e.NavigationBar=void 0;const n=t(85608),a=n.__importDefault(t(53373)),o=t(83794),I=t(25150),g=n.__importStar(t(14041)),u=t(76003),G=t(97267),p=t(41869),b=t(26209),m=n.__importDefault(t(69418)),d=t(82196),s=t(50674),l=({editorGroup:h})=>{const v=(0,p.useInjectable)(d.IBreadCrumbService),f=(0,p.useDesignStyles)(m.default.navigation_container,"navigation_container"),W=(0,p.useDesignStyles)(m.default.navigation_icon,"navigation_icon");if((0,s.useUpdateOnGroupTabChange)(h),(0,p.useUpdateOnEvent)(v.onDidUpdateBreadCrumbResults,[],Z=>{var y;const E=h.currentEditor&&h.currentEditor.currentDocumentModel?h.currentEditor:null,R=h.currentEditor&&h.currentEditor.currentDocumentModel?h.currentEditor.currentDocumentModel.uri:(y=h.currentResource)===null||y===void 0?void 0:y.uri;return!!R&&Z.editor===E&&Z.uri.isEqual(R)}),h.resources.length===0||!h.currentResource)return null;let N;return h.currentEditor&&h.currentEditor.currentDocumentModel?N=v.getBreadCrumbs(h.currentEditor.currentDocumentModel.uri,h.currentEditor):N=v.getBreadCrumbs(h.currentResource.uri,null),N?N.length===0?null:g.default.createElement("div",{className:f,onContextMenu:Z=>{Z.preventDefault()}},N.map((Z,y)=>g.default.createElement(g.default.Fragment,{key:y+"-crumb:"+Z.name},y>0&&g.default.createElement(G.Icon,{icon:"right",size:"small",className:W}),g.default.createElement(e.NavigationItem,{part:Z,editorGroup:h})))):null};e.NavigationBar=l,e.NavigationItem=(0,g.memo)(({part:h,editorGroup:v})=>{const f=(0,p.useInjectable)(r),W=(0,p.useInjectable)(b.BreadCrumbsMenuService),N=(0,g.useRef)(),Z=(0,p.useDesignStyles)(m.default["navigation-part"],"navigation-part"),y=(0,g.useCallback)(async()=>{if(h.getSiblings&&N.current){const{left:E,top:R,height:A}=N.current.getBoundingClientRect(),w=await h.getSiblings();let F=E;window.innerWidth-F<210&&(F=window.innerWidth-200-5),f.showMenu(w.parts,F,R+A+5,w.currentIndex,h.uri,v)}},[N.current,h]);return g.default.createElement("span",{onClick:y,onContextMenu:E=>{!h.isSymbol&&h.uri&&W.show(E.nativeEvent.x,E.nativeEvent.y,v,h.uri),E.preventDefault()},className:Z,ref:N},h.icon&&g.default.createElement("span",{className:h.icon}),g.default.createElement("span",null,h.name))}),e.NavigationMenu=(0,I.observer)(({model:h})=>{let v=window.innerHeight-h.y-20,f=h.y;const W=h.parts.length*22;v<100&&v<W&&(v=100,f=window.innerHeight-20-v);const N=(0,g.useRef)(),Z=(0,p.useDesignStyles)(m.default.navigation_menu,"navigation_menu"),y=(0,p.useDesignStyles)(m.default.navigation_menu_item,"navigation_menu_item"),E=(0,p.useInjectable)(r),R=(0,g.useCallback)(()=>{if(N.current)try{const A=N.current.querySelector(`.${m.default.navigation_menu_item_current}`);A&&A.scrollIntoView({behavior:"auto",block:"center"})}catch{}},[N.current]);return g.default.createElement("div",{className:Z,style:{left:h.x+"px",top:f+"px",maxHeight:v+"px",height:W+"px"}},g.default.createElement(G.Scrollbars,{className:m.default.navigation_menu_items,universal:!0,forwardedRef:A=>{N.current=A,R()}},h.parts.map((A,w)=>{let F;const V=A.getChildren?async()=>{if(F){const{left:_,top:H,width:S}=F.getBoundingClientRect();let X=_+S+5;window.innerWidth-X<210&&(X=_-S-5);const Q=await A.getChildren();h.showSubMenu(Q,X,H,h)}}:void 0,Y=A.onClick?()=>{A.onClick(),E.dispose()}:void 0;return g.default.createElement("div",{onClick:Y||V,ref:_=>F=_,className:(0,a.default)(y,{[m.default.navigation_menu_item_current]:w===h.initialIndex}),key:"menu-"+A.name},g.default.createElement("span",{className:A.icon||(0,p.getIcon)("smile")}),g.default.createElement("span",{className:m.default.navigation_menu_item_label},A.name),A.getChildren&&g.default.createElement("span",{className:m.default.navigation_right,onClick:Y&&V?_=>{_.stopPropagation(),V()}:void 0},g.default.createElement(G.Icon,{icon:"right",size:"small"})))})),h.subMenu&&g.default.createElement(e.NavigationMenu,{model:h.subMenu}))}),e.NavigationMenuContainer=(0,I.observer)(()=>{const h=(0,p.useInjectable)(r),v=(0,g.useRef)();return(0,g.useEffect)(()=>{if(v.current){const f=new p.Disposable;return f.addDispose(new p.DomListener(window,"mouseup",()=>{h.dispose()})),f.addDispose(new p.DomListener(v.current,"mouseup",W=>{W.stopPropagation()})),f.dispose.bind(f)}}),h.current?g.default.createElement("div",{tabIndex:1,ref:v},g.default.createElement(e.NavigationMenu,{model:h.current})):null});let r=class{constructor(){this.current=null,this.editorGroup=null,(0,o.makeObservable)(this)}showMenu(v,f,W,N,Z,y){this.current=new c(v,f,W,N,Z),this.editorGroup=y}dispose(){this.current&&this.current.dispose(),this.current=null}};n.__decorate([o.observable.ref,n.__metadata("design:type",Object)],r.prototype,"current",void 0),n.__decorate([o.observable.ref,n.__metadata("design:type",Object)],r.prototype,"editorGroup",void 0),n.__decorate([o.action,n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[Array,Object,Object,Object,Object,Object]),n.__metadata("design:returntype",void 0)],r.prototype,"showMenu",null),n.__decorate([o.action,n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[]),n.__metadata("design:returntype",void 0)],r.prototype,"dispose",null),r=n.__decorate([(0,u.Injectable)(),n.__metadata("design:paramtypes",[])],r),e.NavigationBarViewService=r;class c{constructor(v,f,W,N=-1,Z){this.parts=v,this.x=f,this.y=W,this.initialIndex=N,this.uri=Z,this.subMenu=null,(0,o.makeObservable)(this)}showSubMenu(v,f,W,N){this.subMenu=new c(v,f,W,-1,N)}dispose(){this.subMenu&&this.subMenu.dispose(),this.subMenu=null}}n.__decorate([o.observable.ref,n.__metadata("design:type",Object)],c.prototype,"subMenu",void 0),n.__decorate([o.action,n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[Array,Object,Object,Object]),n.__metadata("design:returntype",void 0)],c.prototype,"showSubMenu",null),n.__decorate([o.action,n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[]),n.__metadata("design:returntype",void 0)],c.prototype,"dispose",null),e.NavigationMenuModel=c},34885:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.EditorPreferenceContribution=void 0;const n=t(85608),a=t(41869),o=t(24328);let I=class{constructor(){this.schema=o.editorPreferenceSchema}};I=n.__decorate([(0,a.Domain)(a.PreferenceContribution)],I),e.EditorPreferenceContribution=I},6043:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isDiffEditorOption=e.isEditorOption=e.diffEditorOptionsConverters=e.textModelUpdateOptionsConverters=e.editorOptionsConverters=e.getConvertedMonacoOptions=void 0;const n=t(41869),{removeUndefined:a}=n.objects;function o(G,p,b,m){const d={},s={},l={},r=[],c=[],h=[];return m?m.forEach(v=>{e.editorOptionsConverters.has(v)?r.push(v):e.textModelUpdateOptionsConverters.has(v)?c.push(v):e.diffEditorOptionsConverters.has(v)&&h.push(v)}):(r.push(...e.editorOptionsConverters.keys()),c.push(...e.textModelUpdateOptionsConverters.keys()),h.push(...e.diffEditorOptionsConverters.keys())),r.forEach(v=>{const f=G.getValue(v,{resource:p?n.Uri.parse(p):void 0,overrideIdentifier:b});if(f!==void 0)if(!e.editorOptionsConverters.get(v))d[v]=f;else{const W=e.editorOptionsConverters.get(v);d[W.monaco]?d[W.monaco]=Object.assign(Object.assign({},d[W.monaco]),W.convert?W.convert(f):f):d[W.monaco]=W.convert?W.convert(f):f}}),c.forEach(v=>{const f=G.getValue(v,{resource:p?n.Uri.parse(p):void 0,overrideIdentifier:b});if(f!==void 0)if(!e.textModelUpdateOptionsConverters.get(v))l[v]=f;else{const W=e.textModelUpdateOptionsConverters.get(v);l[W.monaco]=W.convert?W.convert(f):f}}),h.forEach(v=>{const f=G.getValue(v,{resource:p?n.Uri.parse(p):void 0,overrideIdentifier:b});if(f!==void 0)if(!e.diffEditorOptionsConverters.get(v))d[v]=f;else{const W=e.diffEditorOptionsConverters.get(v);s[W.monaco]?s[W.monaco]=Object.assign(Object.assign({},s[W.monaco]),W.convert?W.convert(f):f):s[W.monaco]=W.convert?W.convert(f):f}}),{editorOptions:a(d),modelOptions:a(l),diffOptions:a(s)}}e.getConvertedMonacoOptions=o,e.editorOptionsConverters=new Map([["editor.ariaLabel",{monaco:"ariaLabel"}],["editor.rulers",{monaco:"rulers"}],["editor.wordSeparators",{monaco:"wordSeparators"}],["editor.selectionClipboard",{monaco:"selectionClipboard"}],["editor.lineNumbers",{monaco:"lineNumbers"}],["editor.renderFinalNewline",{monaco:"renderFinalNewline"}],["editor.selectOnLineNumbers",{monaco:"selectOnLineNumbers"}],["editor.lineNumbersMinChars",{monaco:"lineNumbersMinChars"}],["editor.glyphMargin",{monaco:"glyphMargin"}],["editor.lineDecorationsWidth",{monaco:"lineDecorationsWidth"}],["editor.revealHorizontalRightPadding",{monaco:"revealHorizontalRightPadding"}],["editor.roundedSelection",{monaco:"roundedSelection"}],["editor.extraEditorClassName",{monaco:"extraEditorClassName"}],["editor.readOnly",{monaco:"readOnly"}],["editor.scrollbar",{monaco:"scrollbar"}],["editor.minimap",{monaco:"minimap",convert:G=>({enabled:G})}],["editor.find",{monaco:"find"}],["editor.fixedOverflowWidgets",{monaco:"fixedOverflowWidgets"}],["editor.overviewRulerLanes",{monaco:"overviewRulerLanes"}],["editor.overviewRulerBorder",{monaco:"overviewRulerBorder"}],["editor.cursorBlinking",{monaco:"cursorBlinking"}],["editor.mouseWheelZoom",{monaco:"mouseWheelZoom"}],["editor.cursorSmoothCaretAnimation",{monaco:"cursorSmoothCaretAnimation"}],["editor.cursorStyle",{monaco:"cursorStyle"}],["editor.cursorWidth",{monaco:"cursorWidth"}],["editor.fontLigatures",{monaco:"fontLigatures"}],["editor.disableLayerHinting",{monaco:"disableLayerHinting"}],["editor.disableMonospaceOptimizations",{monaco:"disableMonospaceOptimizations"}],["editor.hideCursorInOverviewRuler",{monaco:"hideCursorInOverviewRuler"}],["editor.scrollBeyondLastLine",{monaco:"scrollBeyondLastLine"}],["editor.scrollBeyondLastColumn",{monaco:"scrollBeyondLastColumn"}],["editor.smoothScrolling",{monaco:"smoothScrolling"}],["editor.automaticLayout",{monaco:"automaticLayout"}],["editor.wordWrap",{monaco:"wordWrap"}],["editor.wordWrapColumn",{monaco:"wordWrapColumn"}],["editor.wordWrapMinified",{monaco:"wordWrapMinified"}],["editor.wrappingIndent",{monaco:"wrappingIndent"}],["editor.wordWrapBreakBeforeCharacters",{monaco:"wordWrapBreakBeforeCharacters"}],["editor.wordWrapBreakAfterCharacters",{monaco:"wordWrapBreakAfterCharacters"}],["editor.wordWrapBreakObtrusiveCharacters",{monaco:"wordWrapBreakObtrusiveCharacters"}],["editor.stopRenderingLineAfter",{monaco:"stopRenderingLineAfter"}],["editor.hover",{monaco:"hover"}],["editor.links",{monaco:"links"}],["editor.colorDecorators",{monaco:"colorDecorators"}],["editor.contextmenu",{monaco:"contextmenu"}],["editor.mouseWheelScrollSensitivity",{monaco:"mouseWheelScrollSensitivity"}],["editor.fastScrollSensitivity",{monaco:"fastScrollSensitivity"}],["editor.multiCursorModifier",{monaco:"multiCursorModifier"}],["editor.multiCursorMergeOverlapping",{monaco:"multiCursorMergeOverlapping"}],["editor.accessibilitySupport",{monaco:"accessibilitySupport"}],["editor.suggest",{monaco:"suggest"}],["editor.gotoLocation",{monaco:"gotoLocation"}],["editor.quickSuggestions",{monaco:"quickSuggestions"}],["editor.quickSuggestionsDelay",{monaco:"quickSuggestionsDelay"}],["editor.parameterHints",{monaco:"parameterHints"}],["editor.autoClosingBrackets",{monaco:"autoClosingBrackets"}],["editor.autoClosingQuotes",{monaco:"autoClosingQuotes"}],["editor.autoSurround",{monaco:"autoSurround"}],["editor.autoIndent",{monaco:"autoIndent"}],["editor.formatOnType",{monaco:"formatOnType"}],["editor.formatOnPaste",{monaco:"formatOnPaste"}],["editor.dragAndDrop",{monaco:"dragAndDrop"}],["editor.suggestOnTriggerCharacters",{monaco:"suggestOnTriggerCharacters"}],["editor.acceptSuggestionOnEnter",{monaco:"acceptSuggestionOnEnter"}],["editor.acceptSuggestionOnCommitCharacter",{monaco:"acceptSuggestionOnCommitCharacter"}],["editor.snippetSuggestions",{monaco:"snippetSuggestions"}],["editor.emptySelectionClipboard",{monaco:"emptySelectionClipboard"}],["editor.copyWithSyntaxHighlighting",{monaco:"copyWithSyntaxHighlighting"}],["editor.wordBasedSuggestions",{monaco:"wordBasedSuggestions"}],["editor.suggestSelection",{monaco:"suggestSelection"}],["editor.suggestFontSize",{monaco:"suggestFontSize"}],["editor.suggestLineHeight",{monaco:"suggestLineHeight"}],["editor.tabCompletion",{monaco:"tabCompletion"}],["editor.selectionHighlight",{monaco:"selectionHighlight"}],["editor.occurrencesHighlight",{monaco:"occurrencesHighlight"}],["editor.codeLens",{monaco:"codeLens"}],["editor.lightbulb",{monaco:"lightbulb"}],["editor.codeActionsOnSave",{monaco:"codeActionsOnSave"}],["editor.codeActionsOnSaveTimeout",{monaco:"codeActionsOnSaveTimeout"}],["editor.folding",{monaco:"folding"}],["editor.foldingStrategy",{monaco:"foldingStrategy"}],["editor.showFoldingControls",{monaco:"showFoldingControls"}],["editor.matchBrackets",{monaco:"matchBrackets"}],["editor.renderWhitespace",{monaco:"renderWhitespace"}],["editor.renderControlCharacters",{monaco:"renderControlCharacters"}],["editor.renderIndentGuides",{monaco:"guides.indentation"}],["editor.highlightActiveIndentGuide",{monaco:"guides.highlightActiveIndentation"}],["editor.guides",{monaco:"guides"}],["editor.renderLineHighlight",{monaco:"renderLineHighlight"}],["editor.useTabStops",{monaco:"useTabStops"}],["editor.fontFamily",{monaco:"fontFamily"}],["editor.fontWeight",{monaco:"fontWeight"}],["editor.fontSize",{monaco:"fontSize"}],["editor.lineHeight",{monaco:"lineHeight"}],["editor.letterSpacing",{monaco:"letterSpacing"}],["editor.showUnused",{monaco:"showUnused"}],["editor.rename.enablePreview",{monaco:"editor.rename.enablePreview"}],["editor.semanticHighlighting",{monaco:"semanticHighlighting"}],["editor.bracketPairColorization",{monaco:"bracketPairColorization"}],["editor.wrappingStrategy",{monaco:"wrappingStrategy"}],["editor.experimental.stickyScroll.enabled",{monaco:"experimental",convert:G=>({stickyScroll:{enabled:G}})}],["editor.forceReadOnly",{monaco:"readOnly",convert:G=>{if(G)return!0}}],["editor.unicodeHighlight",{monaco:"unicodeHighlight"}],["editor.inlineSuggest.showToolbar",{monaco:"inlineSuggest",convert:G=>{if(G)return{showToolbar:G}}}]]),e.textModelUpdateOptionsConverters=new Map([["editor.tabSize",{monaco:"tabSize"}],["editor.indentSize",{monaco:"indentSize"}],["editor.insertSpaces",{monaco:"insertSpaces"}],["editor.trimAutoWhitespace",{monaco:"trimAutoWhitespace"}]]),e.diffEditorOptionsConverters=new Map([["diffEditor.enableSplitViewResizing",{monaco:"enableSplitViewResizing"}],["diffEditor.renderSideBySide",{monaco:"renderSideBySide"}],["diffEditor.ignoreTrimWhitespace",{monaco:"ignoreTrimWhitespace"}],["diffEditor.renderIndicators",{monaco:"renderIndicators"}],["diffEditor.originalEditable",{monaco:"originalEditable"}],["diffEditor.minimap",{monaco:"minimap",convert:G=>({enabled:G})}],["diffEditor.experimental.stickyScroll.enabled",{monaco:"experimental",convert:G=>({stickyScroll:{enabled:G}})}],["diffEditor.hideUnchangedRegions.enabled",{monaco:"hideUnchangedRegions",convert:G=>({enabled:G})}],["diffEditor.hideUnchangedRegions.revealLineCount",{monaco:"hideUnchangedRegions",convert:G=>({revealLineCount:G})}],["diffEditor.hideUnchangedRegions.minimumLineCount",{monaco:"hideUnchangedRegions",convert:G=>({minimumLineCount:G})}],["diffEditor.hideUnchangedRegions.contextLineCount",{monaco:"hideUnchangedRegions",convert:G=>({contextLineCount:G})}],["diffEditor.experimental.showMoves",{monaco:"experimental",convert:G=>({showMoves:G})}],["diffEditor.experimental.showEmptyDecorations",{monaco:"experimental",convert:G=>({showEmptyDecorations:G})}]]);function I(G,p){if(p.has(G))return!0;{const b=p.keys();for(const m of b)if(G.startsWith(m))return!0}return!1}function g(G){return I(G,e.editorOptionsConverters)||I(G,e.textModelUpdateOptionsConverters)||I(G,e.diffEditorOptionsConverters)}e.isEditorOption=g;function u(G){return I(G,e.diffEditorOptionsConverters)}e.isDiffEditorOption=u},24328:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.EditorPreferences=e.editorPreferenceSchema=e.DIFF_EDITOR_DEFAULTS=e.EDITOR_DEFAULTS=e.EDITOR_INLINE_SUGGEST_DEFAULTS=e.EDITOR_SUGGEST_DEFAULTS=e.EDITOR_MODEL_DEFAULTS=e.EDITOR_FONT_DEFAULTS=e.USUAL_WORD_SEPARATORS=void 0;const n=t(41869),a=t(82196);e.USUAL_WORD_SEPARATORS="`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?";const o="Consolas, 'Courier New', monospace",I="Menlo, Monaco, 'Courier New', monospace",g="'Droid Sans Mono', 'monospace', monospace, 'Droid Sans Fallback'";e.EDITOR_FONT_DEFAULTS={fontFamily:n.isOSX?I:n.isLinux?g:o,fontWeight:"normal",fontSize:12,tabSize:2,renderWhitespace:!1,cursorStyle:"line",insertSpace:!0,wordWrap:"off",wordWrapColumn:80,lineHeight:0,letterSpacing:0},e.EDITOR_MODEL_DEFAULTS={tabSize:4,indentSize:4,insertSpaces:!0,detectIndentation:!0,trimAutoWhitespace:!0,largeFileOptimizations:!0},e.EDITOR_SUGGEST_DEFAULTS={insertMode:"insert",filterGraceful:!0,snippetsPreventQuickSuggestions:!0,localityBonus:!1,shareSuggestSelections:!1,showIcons:!0,maxVisibleSuggestions:12,showMethods:!0,showFunctions:!0,showConstructors:!0,showFields:!0,showVariables:!0,showClasses:!0,showStructs:!0,showInterfaces:!0,showModules:!0,showProperties:!0,showEvents:!0,showOperators:!0,showUnits:!0,showValues:!0,showConstants:!0,showEnums:!0,showEnumMembers:!0,showKeywords:!0,showWords:!0,showColors:!0,showFiles:!0,showReferences:!0,showFolders:!0,showTypeParameters:!0,showSnippets:!0,showUsers:!0,showIssues:!0,detailsVisible:!0,preview:!0,statusBar:{visible:!1}},e.EDITOR_INLINE_SUGGEST_DEFAULTS={enabled:!0,showToolbar:"onHover"},e.EDITOR_DEFAULTS={inDiffEditor:!1,wordSeparators:e.USUAL_WORD_SEPARATORS,lineNumbersMinChars:3,lineDecorationsWidth:10,readOnly:!1,mouseStyle:"text",disableLayerHinting:!1,automaticLayout:!0,wordWrap:"off",wordWrapColumn:80,wordWrapMinified:!0,wrappingIndent:1,wordWrapBreakBeforeCharacters:"([{\u2018\u201C\u3008\u300A\u300C\u300E\u3010\u3014\uFF08\uFF3B\uFF5B\uFF62\xA3\xA5\uFF04\uFFE1\uFFE5+\uFF0B",wordWrapBreakAfterCharacters:" })]?|/&.,;\xA2\xB0\u2032\u2033\u2030\u2103\u3001\u3002\uFF61\uFF64\uFFE0\uFF0C\uFF0E\uFF1A\uFF1B\uFF1F\uFF01\uFF05\u30FB\uFF65\u309D\u309E\u30FD\u30FE\u30FC\u30A1\u30A3\u30A5\u30A7\u30A9\u30C3\u30E3\u30E5\u30E7\u30EE\u30F5\u30F6\u3041\u3043\u3045\u3047\u3049\u3063\u3083\u3085\u3087\u308E\u3095\u3096\u31F0\u31F1\u31F2\u31F3\u31F4\u31F5\u31F6\u31F7\u31F8\u31F9\u31FA\u31FB\u31FC\u31FD\u31FE\u31FF\u3005\u303B\uFF67\uFF68\uFF69\uFF6A\uFF6B\uFF6C\uFF6D\uFF6E\uFF6F\uFF70\u201D\u3009\u300B\u300D\u300F\u3011\u3015\uFF09\uFF3D\uFF5D\uFF63",wordWrapBreakObtrusiveCharacters:".",autoClosingBrackets:"languageDefined",autoClosingQuotes:"languageDefined",autoSurround:"languageDefined",autoIndent:!0,dragAndDrop:!0,emptySelectionClipboard:!0,copyWithSyntaxHighlighting:!0,useTabStops:!0,multiCursorModifier:"altKey",multiCursorMergeOverlapping:!0,accessibilitySupport:"off",showUnused:!0,wrappingStrategy:"simple",viewInfo:{extraEditorClassName:"",disableMonospaceOptimizations:!1,rulers:[],ariaLabel:(0,n.localize)("editorViewAccessibleLabel","Editor Content"),renderLineNumbers:0,renderCustomLineNumbers:null,renderFinalNewline:!0,selectOnLineNumbers:!0,glyphMargin:!0,revealHorizontalRightPadding:30,roundedSelection:!0,overviewRulerLanes:2,overviewRulerBorder:!0,cursorBlinking:1,mouseWheelZoom:!1,cursorSmoothCaretAnimation:!1,cursorStyle:1,cursorWidth:0,hideCursorInOverviewRuler:!1,scrollBeyondLastLine:!0,scrollBeyondLastColumn:5,smoothScrolling:!1,stopRenderingLineAfter:1e4,renderWhitespace:"none",renderControlCharacters:!1,fontLigatures:!1,renderLineHighlight:"none",scrollbar:{vertical:1,horizontal:1,arrowSize:11,useShadows:!0,verticalHasArrows:!1,horizontalHasArrows:!1,horizontalScrollbarSize:10,horizontalSliderSize:10,verticalScrollbarSize:14,verticalSliderSize:14,handleMouseWheel:!0,mouseWheelScrollSensitivity:1,fastScrollSensitivity:5},minimap:{enabled:!0,side:"right",showSlider:"mouseover",renderCharacters:!0,maxColumn:120},guides:{indentation:!0,highlightActiveIndentGuide:!0,bracketPairs:!0},fixedOverflowWidgets:!0},contribInfo:{selectionClipboard:!0,hover:{enabled:!0,delay:300,sticky:!0},links:!0,contextmenu:!0,quickSuggestions:{other:!0,comments:!1,strings:!1},quickSuggestionsDelay:10,parameterHints:{enabled:!0,cycle:!1},formatOnType:!1,formatOnPaste:!1,suggestOnTriggerCharacters:!0,acceptSuggestionOnEnter:"on",acceptSuggestionOnCommitCharacter:!0,wordBasedSuggestions:!1,suggestSelection:"recentlyUsed",suggestFontSize:0,suggestLineHeight:0,tabCompletion:"off",gotoLocation:{multiple:"peek"},selectionHighlight:!0,occurrencesHighlight:!0,codeLens:!0,folding:!0,foldingStrategy:"auto",showFoldingControls:"mouseover",matchBrackets:!0,find:{seedSearchStringFromSelection:!0,autoFindInSelection:!1,globalFindClipboard:!1,addExtraSpaceOnTop:!0},colorDecorators:!0,lightbulbEnabled:a.ShowLightbulbIconMode.On,codeActionsOnSave:{},codeActionsOnSaveTimeout:750}},e.DIFF_EDITOR_DEFAULTS={renderIndicators:!0,minimap:!1,renderSideBySide:!0,ignoreTrimWhitespace:!1,hideUnchangedRegions:{enabled:!0,revealLineCount:20,minimumLineCount:3,contextLineCount:3},experimental:{showMoves:!1,showEmptyDecorations:!0,collapseUnchangedRegions:!0,stickyScroll:{enable:!1}}};const u={"editor.ariaLabel":{type:"string",default:e.EDITOR_DEFAULTS.viewInfo.ariaLabel,description:"%editor.configuration.ariaLabel%"},"editor.extraEditorClassName":{type:"string",description:"%editor.configuration.extraEditorClassName%"},"editor.fixedOverflowWidgets":{type:"boolean",default:e.EDITOR_DEFAULTS.viewInfo.fixedOverflowWidgets,description:"%editor.configuration.fixedOverflowWidgets%"},"editor.revealHorizontalRightPadding":{type:"number",description:"%editor.configuration.revealHorizontalRightPadding%"},"editor.selectOnLineNumbers":{type:"boolean",description:"%editor.configuration.selectOnLineNumbers%"},"editor.wordWrapMinified":{type:"boolean",description:"%editor.configuration.wordWrapMinified%"},"editor.wordWrapBreakAfterCharacters":{type:"string",default:" })]?|/&.,;\xA2\xB0\u2032\u2033\u2030\u2103\u3001\u3002\uFF61\uFF64\uFFE0\uFF0C\uFF0E\uFF1A\uFF1B\uFF1F\uFF01\uFF05\u30FB\uFF65\u309D\u309E\u30FD\u30FE\u30FC\u30A1\u30A3\u30A5\u30A7\u30A9\u30C3\u30E3\u30E5\u30E7\u30EE\u30F5\u30F6\u3041\u3043\u3045\u3047\u3049\u3063\u3083\u3085\u3087\u308E\u3095\u3096\u31F0\u31F1\u31F2\u31F3\u31F4\u31F5\u31F6\u31F7\u31F8\u31F9\u31FA\u31FB\u31FC\u31FD\u31FE\u31FF\u3005\u303B\uFF67\uFF68\uFF69\uFF6A\uFF6B\uFF6C\uFF6D\uFF6E\uFF6F\uFF70\u201D\u3009\u300B\u300D\u300F\u3011\u3015\uFF09\uFF3D\uFF5D\uFF63",description:"%editor.configuration.wordWrapBreakAfterCharacters%"},"editor.wrappingStrategy":{type:"string",enum:["advanced","simple"],default:"simple",description:"%editor.configuration.wrappingStrategy%"},"editor.wordWrapBreakBeforeCharacters":{type:"string",default:"([{\u2018\u201C\u3008\u300A\u300C\u300E\u3010\u3014\uFF08\uFF3B\uFF5B\uFF62\xA3\xA5\uFF04\uFFE1\uFFE5+\uFF0B",description:"%editor.configuration.wordWrapBreakBeforeCharacters%"},"editor.lineNumbersMinChars":{type:"number",default:e.EDITOR_DEFAULTS.lineNumbersMinChars,description:"%editor.configuration.lineNumbersMinChars%"},"editor.lineDecorationsWidth":{type:"number",default:e.EDITOR_DEFAULTS.lineDecorationsWidth,description:"%editor.configuration.lineDecorationsWidth%"},"editor.fontFamily":{type:"string",default:e.EDITOR_FONT_DEFAULTS.fontFamily,description:"%editor.configuration.fontFamily%"},"editor.fontWeight":{type:"string",default:e.EDITOR_FONT_DEFAULTS.fontWeight,description:"%editor.configuration.fontWeight%"},"editor.fontSize":{type:"number",default:e.EDITOR_FONT_DEFAULTS.fontSize,description:(0,n.localize)("fontSize","Controls the font size in pixels.")},"editor.lineHeight":{type:"number",default:e.EDITOR_FONT_DEFAULTS.lineHeight,description:(0,n.localize)("lineHeight","Controls the line height. Use 0 to compute the line height from the font size.")},"editor.suggest.insertMode":{type:"string",enum:["insert","replace"],enumDescriptions:[(0,n.localize)("editor.configuration.suggest.insertMode.insert","Insert suggestion without overwriting text right of the cursor."),(0,n.localize)("editor.configuration.suggest.insertMode.replace","Insert suggestion and overwrite text right of the cursor.")],default:"insert",description:"%editor.configuration.suggest.insertMode%"},"editor.suggest.filterGraceful":{type:"boolean",default:e.EDITOR_SUGGEST_DEFAULTS.filterGraceful,description:"%editor.configuration.suggest.filterGraceful%"},"editor.suggest.localityBonus":{type:"boolean",default:e.EDITOR_SUGGEST_DEFAULTS.localityBonus,description:"%editor.configuration.suggest.localityBonus%"},"editor.suggest.shareSuggestSelections":{type:"boolean",default:e.EDITOR_SUGGEST_DEFAULTS.shareSuggestSelections,description:"%editor.configuration.suggest.shareSuggestSelections%"},"editor.suggest.snippetsPreventQuickSuggestions":{type:"boolean",default:e.EDITOR_SUGGEST_DEFAULTS.snippetsPreventQuickSuggestions,description:"%editor.configuration.suggest.snippetsPreventQuickSuggestions%"},"editor.suggest.showIcons":{type:"boolean",default:e.EDITOR_SUGGEST_DEFAULTS.showIcons,description:"%editor.configuration.suggest.showIcons%"},"editor.suggest.maxVisibleSuggestions":{type:"number",default:e.EDITOR_SUGGEST_DEFAULTS.maxVisibleSuggestions,minimum:1,maximum:15,description:"%editor.configuration.suggest.maxVisibleSuggestions%"},"editor.suggest.showMethods":{type:"boolean",default:!0,description:"%editor.configuration.suggest.showMethods%"},"editor.suggest.showFunctions":{type:"boolean",default:!0,description:"%editor.configuration.suggest.showFunctions%"},"editor.suggest.showConstructors":{type:"boolean",default:!0,description:"%editor.configuration.suggest.showConstructors%"},"editor.suggest.showFields":{type:"boolean",default:!0,description:"%editor.configuration.suggest.showFields%"},"editor.suggest.showVariables":{type:"boolean",default:!0,description:"%editor.configuration.suggest.showVariables%"},"editor.suggest.showClasses":{type:"boolean",default:!0,description:"%editor.configuration.suggest.showClasss%"},"editor.suggest.showStructs":{type:"boolean",default:!0,description:"%editor.configuration.suggest.showStructs%"},"editor.suggest.showInterfaces":{type:"boolean",default:!0,description:"%editor.configuration.suggest.showInterfaces%"},"editor.suggest.showModules":{type:"boolean",default:!0,description:"%editor.configuration.suggest.showModules%"},"editor.suggest.showProperties":{type:"boolean",default:!0,description:"%editor.configuration.suggest.showPropertys%"},"editor.suggest.showEvents":{type:"boolean",default:!0,description:"%editor.configuration.suggest.showEvents%"},"editor.suggest.showOperators":{type:"boolean",default:!0,description:"%editor.configuration.suggest.showOperators%"},"editor.suggest.showUnits":{type:"boolean",default:!0,description:"%editor.configuration.suggest.showUnits%"},"editor.suggest.showValues":{type:"boolean",default:!0,description:"%editor.configuration.suggest.showValues%"},"editor.suggest.showConstants":{type:"boolean",default:!0,description:"%editor.configuration.suggest.showConstants%"},"editor.suggest.showEnums":{type:"boolean",default:!0,description:"%editor.configuration.suggest.showEnums%"},"editor.suggest.showEnumMembers":{type:"boolean",default:!0,description:"%editor.configuration.suggest.showEnumMembers%"},"editor.suggest.showKeywords":{type:"boolean",default:!0,description:"%editor.configuration.suggest.showKeywords%"},"editor.suggest.showWords":{type:"boolean",default:!0,description:"%editor.configuration.suggest.showTexts%"},"editor.suggest.showColors":{type:"boolean",default:!0,description:"%editor.configuration.suggest.showColors%"},"editor.suggest.showFiles":{type:"boolean",default:!0,description:"%editor.configuration.suggest.showFiles%"},"editor.suggest.showReferences":{type:"boolean",default:!0,description:"%editor.configuration.suggest.showReferences%"},"editor.suggest.showCustomcolors":{type:"boolean",default:!0,description:"%editor.configuration.suggest.showCustomcolors%"},"editor.suggest.showFolders":{type:"boolean",default:!0,description:"%editor.configuration.suggest.showFolders%"},"editor.suggest.showTypeParameters":{type:"boolean",default:!0,description:"%editor.configuration.suggest.showTypeParameters%"},"editor.suggest.showSnippets":{type:"boolean",default:!0,description:"%editor.configuration.suggest.showSnippets%"},"editor.suggest.showUsers":{type:"boolean",default:!0,description:"%editor.configuration.suggest.showUsers%"},"editor.suggest.showIssues":{type:"boolean",default:!0,description:"%editor.configuration.suggest.showIssues%"},"editor.suggest.statusBar.visible":{type:"boolean",default:!1,description:"%editor.configuration.suggest.statusBar.visible%"},"editor.suggest.preview":{type:"boolean",default:e.EDITOR_SUGGEST_DEFAULTS.preview,description:"%editor.configuration.suggest.preview%"},"editor.suggest.details.visible":{type:"boolean",default:e.EDITOR_SUGGEST_DEFAULTS.detailsVisible,description:"%editor.configuration.suggest.details.visible%"},"editor.inlineSuggest.enabled":{type:"boolean",default:e.EDITOR_INLINE_SUGGEST_DEFAULTS.enabled,description:"%editor.configuration.inlineSuggest.enabled%"},"editor.inlineSuggest.showToolbar":{type:"string",default:e.EDITOR_INLINE_SUGGEST_DEFAULTS.showToolbar,enum:["always","onHover","never"],enumDescriptions:[(0,n.localize)("editor.configuration.inlineSuggest.showToolbar.always","Show the inline suggestion toolbar whenever an inline suggestion is shown."),(0,n.localize)("editor.configuration.inlineSuggest.showToolbar.onHover","Show the inline suggestion toolbar when hovering over an inline suggestion."),(0,n.localize)("editor.configuration.inlineSuggest.showToolbar.never","Never show the inline suggestion toolbar.")],description:"%editor.configuration.inlineSuggest.showToolbar%"},"editor.experimental.stickyScroll.enabled":{type:"boolean",default:!0,description:"%editor.configuration.experimental.stickyScroll%"},"editor.customCodeActionMenu.showHeaders":{type:"boolean",default:!0,description:"%editor.configuration.customCodeActionMenu.showHeaders"},"editor.useCustomCodeActionMenu":{type:"boolean",default:!0,description:"%editor.configuration.useCustomCodeActionMenu%"},"editor.letterSpacing":{type:"number",default:e.EDITOR_FONT_DEFAULTS.letterSpacing,description:"%editor.configuration.letterSpacing%"},"editor.lineNumbers":{type:"string",enum:["off","on","relative","interval"],enumDescriptions:[(0,n.localize)("editor.configuration.lineNumbers.off","Line numbers are not rendered."),(0,n.localize)("editor.configuration.lineNumbers.on","Line numbers are rendered as absolute number."),(0,n.localize)("editor.configuration.lineNumbers.relative","Line numbers are rendered as distance in lines to cursor position."),(0,n.localize)("editor.configuration.lineNumbers.interval","Line numbers are rendered every 10 lines.")],default:"on",description:"%editor.configuration.lineNumbers%"},"editor.renderFinalNewline":{type:"boolean",default:e.EDITOR_DEFAULTS.viewInfo.renderFinalNewline,description:"%editor.configuration.renderFinalNewline%"},"editor.rulers":{type:"array",items:{type:"number"},default:e.EDITOR_DEFAULTS.viewInfo.rulers,description:"%editor.configuration.rulers%"},"editor.wordSeparators":{type:"string",default:e.EDITOR_DEFAULTS.wordSeparators,description:"%editor.configuration.wordSeparators%"},"editor.tabSize":{type:"number",default:e.EDITOR_MODEL_DEFAULTS.tabSize,minimum:1,markdownDescription:"%editor.configuration.tabSize%"},"editor.insertSpaces":{type:"boolean",default:e.EDITOR_MODEL_DEFAULTS.insertSpaces,markdownDescription:"%editor.configuration.insertSpaces%"},"editor.detectIndentation":{type:"boolean",default:e.EDITOR_MODEL_DEFAULTS.detectIndentation,markdownDescription:"%editor.configuration.detectIndentation%"},"editor.roundedSelection":{type:"boolean",default:e.EDITOR_DEFAULTS.viewInfo.roundedSelection,description:"%editor.configuration.roundedSelection%"},"editor.scrollBeyondLastLine":{type:"boolean",default:e.EDITOR_DEFAULTS.viewInfo.scrollBeyondLastLine,description:"%editor.configuration.scrollBeyondLastLine%"},"editor.scrollBeyondLastColumn":{type:"number",default:e.EDITOR_DEFAULTS.viewInfo.scrollBeyondLastColumn,description:"%editor.configuration.scrollBeyondLastColumn%"},"editor.smoothScrolling":{type:"boolean",default:e.EDITOR_DEFAULTS.viewInfo.smoothScrolling,description:"%editor.configuration.smoothScrolling%"},"editor.minimap.enabled":{type:"boolean",default:e.EDITOR_DEFAULTS.viewInfo.minimap.enabled,description:"%editor.configuration.minimap.enabled%"},"editor.minimap.side":{type:"string",enum:["left","right"],default:e.EDITOR_DEFAULTS.viewInfo.minimap.side,description:"%editor.configuration.minimap.side%"},"editor.minimap.showSlider":{type:"string",enum:["always","mouseover"],default:e.EDITOR_DEFAULTS.viewInfo.minimap.showSlider,description:"%editor.configuration.minimap.showSlider%"},"editor.minimap.renderCharacters":{type:"boolean",default:e.EDITOR_DEFAULTS.viewInfo.minimap.renderCharacters,description:"%editor.configuration.minimap.renderCharacters%"},"editor.minimap.maxColumn":{type:"number",default:e.EDITOR_DEFAULTS.viewInfo.minimap.maxColumn,description:"%editor.configuration.minimap.maxColumn%"},"editor.hover.enabled":{type:"boolean",default:e.EDITOR_DEFAULTS.contribInfo.hover.enabled,description:"%editor.configuration.hover.enabled%"},"editor.hover.delay":{type:"number",default:e.EDITOR_DEFAULTS.contribInfo.hover.delay,description:(0,n.localize)("hover.delay","Controls the delay in milliseconds after which the hover is shown.")},"editor.hover.sticky":{type:"boolean",default:e.EDITOR_DEFAULTS.contribInfo.hover.sticky,description:"%editor.configuration.hover.sticky%"},"editor.find.seedSearchStringFromSelection":{type:"boolean",default:e.EDITOR_DEFAULTS.contribInfo.find.seedSearchStringFromSelection,description:"%editor.configuration.find.seedSearchStringFromSelection%"},"editor.find.autoFindInSelection":{type:"boolean",default:e.EDITOR_DEFAULTS.contribInfo.find.autoFindInSelection,description:"%editor.configuration.find.autoFindInSelection%"},"editor.find.globalFindClipboard":{type:"boolean",default:e.EDITOR_DEFAULTS.contribInfo.find.globalFindClipboard,description:"%editor.configuration.find.globalFindClipboard%",included:n.isOSX},"editor.find.addExtraSpaceOnTop":{type:"boolean",default:!0,description:"%editor.configuration.find.addExtraSpaceOnTop%"},"editor.wordWrap":{type:"string",enum:["off","on","wordWrapColumn","bounded"],markdownEnumDescriptions:[(0,n.localize)("editor.configuration.wordWrap.off","Lines will never wrap."),(0,n.localize)("editor.configuration.wordWrap.on","Lines will wrap at the viewport width."),(0,n.localize)("editor.configuration.wordWrap.wordWrapColumn","Lines will wrap at `#editor.wordWrapColumn#`."),(0,n.localize)("editor.configuration.wordWrap.bounded","Lines will wrap at the minimum of viewport and `#editor.wordWrapColumn#`.")],default:e.EDITOR_DEFAULTS.wordWrap,description:"%editor.configuration.wordWrap%"},"editor.wordWrapColumn":{type:"integer",default:e.EDITOR_DEFAULTS.wordWrapColumn,minimum:1,markdownDescription:"%editor.configuration.wordWrapColumn%"},"editor.wrappingIndent":{type:"string",enum:["none","same","indent","deepIndent"],enumDescriptions:[(0,n.localize)("editor.configuration.wrappingIndent.none","No indentation. Wrapped lines begin at column 1."),(0,n.localize)("editor.configuration.wrappingIndent.same","Wrapped lines get the same indentation as the parent."),(0,n.localize)("editor.configuration.wrappingIndent.indent","Wrapped lines get +1 indentation toward the parent."),(0,n.localize)("editor.configuration.wrappingIndent.deepIndent","Wrapped lines get +2 indentation toward the parent.")],default:"same",description:"%editor.configuration.wrappingIndent%"},"editor.mouseWheelScrollSensitivity":{type:"number",default:e.EDITOR_DEFAULTS.viewInfo.scrollbar.mouseWheelScrollSensitivity,markdownDescription:"%editor.configuration.mouseWheelScrollSensitivity%"},"editor.fastScrollSensitivity":{type:"number",default:e.EDITOR_DEFAULTS.viewInfo.scrollbar.fastScrollSensitivity,markdownDescription:"%editor.configuration.fastScrollSensitivity%"},"editor.multiCursorModifier":{type:"string",enum:["ctrlCmd","alt"],markdownEnumDescriptions:[(0,n.localize)("editor.configuration.multiCursorModifier.ctrlCmd","Maps to `Control` on Windows and Linux and to `Command` on macOS."),(0,n.localize)("editor.configuration.multiCursorModifier.alt","Maps to `Alt` on Windows and Linux and to `Option` on macOS.")],default:"alt",markdownDescription:(0,n.localize)("multiCursorModifier","The modifier to be used to add multiple cursors with the mouse. The Go To Definition and Open Link mouse gestures will adapt such that they do not conflict with the multicursor modifier. [Read more](https://code.visualstudio.com/docs/editor/codebasics#_multicursor-modifier).")},"editor.multiCursorMergeOverlapping":{type:"boolean",default:e.EDITOR_DEFAULTS.multiCursorMergeOverlapping,description:"%editor.configuration.multiCursorMergeOverlapping%"},"editor.quickSuggestions":{anyOf:[{type:"boolean"},{type:"object",properties:{strings:{type:"boolean",default:!1,description:(0,n.localize)("editor.configuration.quickSuggestions.strings","Enable quick suggestions inside strings.")},comments:{type:"boolean",default:!1,description:(0,n.localize)("editor.configuration.quickSuggestions.comments","Enable quick suggestions inside comments.")},other:{type:"boolean",default:!0,description:"%editor.configuration.quickSuggestions.other%"}}}],default:e.EDITOR_DEFAULTS.contribInfo.quickSuggestions,description:"%editor.configuration.quickSuggestions%"},"editor.quickSuggestionsDelay":{type:"integer",default:e.EDITOR_DEFAULTS.contribInfo.quickSuggestionsDelay,minimum:0,description:"%editor.configuration.quickSuggestionsDelay%"},"editor.parameterHints.enabled":{type:"boolean",default:e.EDITOR_DEFAULTS.contribInfo.parameterHints.enabled,description:"%editor.configuration.parameterHints.enabled%"},"editor.parameterHints.cycle":{type:"boolean",default:e.EDITOR_DEFAULTS.contribInfo.parameterHints.cycle,description:"%editor.configuration.parameterHints.cycle%"},"editor.autoClosingBrackets":{type:"string",enum:["always","languageDefined","beforeWhitespace","never"],enumDescriptions:["",(0,n.localize)("editor.configuration.autoClosingBrackets.languageDefined","Use language configurations to determine when to autoclose brackets."),(0,n.localize)("editor.configuration.autoClosingBrackets.beforeWhitespace","Autoclose brackets only when the cursor is to the left of whitespace."),""],default:e.EDITOR_DEFAULTS.autoClosingBrackets,description:"%editor.configuration.autoClosingBrackets%"},"editor.autoClosingQuotes":{type:"string",enum:["always","languageDefined","beforeWhitespace","never"],enumDescriptions:["",(0,n.localize)("editor.configuration.autoClosingQuotes.languageDefined","Use language configurations to determine when to autoclose quotes."),(0,n.localize)("editor.configuration.autoClosingQuotes.beforeWhitespace","Autoclose quotes only when the cursor is to the left of whitespace."),""],default:e.EDITOR_DEFAULTS.autoClosingQuotes,description:"%editor.configuration.autoClosingQuotes%"},"editor.autoSurround":{type:"string",enum:["languageDefined","brackets","quotes","never"],enumDescriptions:[(0,n.localize)("editor.configuration.autoSurround.languageDefined","Use language configurations to determine when to automatically surround selections."),(0,n.localize)("editor.configuration.autoSurround.brackets","Surround with brackets but not quotes."),(0,n.localize)("editor.configuration.autoSurround.quotes","Surround with quotes but not brackets."),""],default:e.EDITOR_DEFAULTS.autoSurround,description:"%editor.configuration.autoSurround%"},"editor.formatOnType":{type:"boolean",default:e.EDITOR_DEFAULTS.contribInfo.formatOnType,description:"%editor.configuration.formatOnType%"},"editor.formatOnPaste":{type:"boolean",default:e.EDITOR_DEFAULTS.contribInfo.formatOnPaste,description:"%editor.configuration.formatOnPaste%"},"editor.autoIndent":{type:"boolean",default:e.EDITOR_DEFAULTS.autoIndent,description:"%editor.configuration.autoIndent%"},"editor.suggestOnTriggerCharacters":{type:"boolean",default:e.EDITOR_DEFAULTS.contribInfo.suggestOnTriggerCharacters,description:"%editor.configuration.suggestOnTriggerCharacters%"},"editor.acceptSuggestionOnEnter":{type:"string",enum:["on","smart","off"],default:e.EDITOR_DEFAULTS.contribInfo.acceptSuggestionOnEnter,markdownEnumDescriptions:["",(0,n.localize)("editor.configuration.acceptSuggestionOnEnterSmart","Only accept a suggestion with `Enter` when it makes a textual change."),""],markdownDescription:(0,n.localize)("editor.configuration.acceptSuggestionOnEnter","Controls whether suggestions should be accepted on `Enter`, in addition to `Tab`. Helps to avoid ambiguity between inserting new lines or accepting suggestions.")},"editor.acceptSuggestionOnCommitCharacter":{type:"boolean",default:e.EDITOR_DEFAULTS.contribInfo.acceptSuggestionOnCommitCharacter,markdownDescription:(0,n.localize)("editor.configuration.acceptSuggestionOnCommitCharacter","Controls whether suggestions should be accepted on commit characters. For example, in JavaScript, the semi-colon (`;`) can be a commit character that accepts a suggestion and types that character.")},"editor.snippetSuggestions":{type:"string",enum:["top","bottom","inline","none"],enumDescriptions:[(0,n.localize)("editor.configuration.snippetSuggestions.top","Show snippet suggestions on top of other suggestions."),(0,n.localize)("editor.configuration.snippetSuggestions.bottom","Show snippet suggestions below other suggestions."),(0,n.localize)("editor.configuration.snippetSuggestions.inline","Show snippets suggestions with other suggestions."),(0,n.localize)("editor.configuration.snippetSuggestions.none","Do not show snippet suggestions.")],default:"inline",description:"%editor.configuration.snippetSuggestions%"},"editor.emptySelectionClipboard":{type:"boolean",default:e.EDITOR_DEFAULTS.emptySelectionClipboard,description:"%editor.configuration.emptySelectionClipboard%"},"editor.copyWithSyntaxHighlighting":{type:"boolean",default:e.EDITOR_DEFAULTS.copyWithSyntaxHighlighting,description:"%editor.configuration.copyWithSyntaxHighlighting%"},"editor.wordBasedSuggestions":{type:"boolean",default:e.EDITOR_DEFAULTS.contribInfo.wordBasedSuggestions,description:"%editor.configuration.wordBasedSuggestions%"},"editor.suggestSelection":{type:"string",enum:["first","recentlyUsed","recentlyUsedByPrefix"],markdownEnumDescriptions:[(0,n.localize)("editor.configuration.suggestSelection.first","Always select the first suggestion."),(0,n.localize)("editor.configuration.suggestSelection.recentlyUsed","Select recent suggestions unless further typing selects one, e.g. `console.| -> console.log` because `log` has been completed recently."),(0,n.localize)("editor.configuration.suggestSelection.recentlyUsedByPrefix","Select suggestions based on previous prefixes that have completed those suggestions, e.g. `co -> console` and `con -> const`.")],default:"recentlyUsed",description:"%editor.configuration.suggestSelection%"},"editor.suggestFontSize":{type:"integer",default:0,minimum:0,markdownDescription:"%editor.configuration.suggestFontSize%"},"editor.suggestLineHeight":{type:"integer",default:0,minimum:0,markdownDescription:"%editor.configuration.suggestLineHeight%"},"editor.tabCompletion":{type:"string",default:"off",enum:["on","off","onlySnippets"],enumDescriptions:[(0,n.localize)("editor.configuration.tabCompletion.on","Tab complete will insert the best matching suggestion when pressing tab."),(0,n.localize)("editor.configuration.tabCompletion.off","Disable tab completions."),(0,n.localize)("editor.configuration.tabCompletion.onlySnippets","Tab complete snippets when their prefix match. Works best when 'quickSuggestions' aren't enabled.")],description:"%editor.configuration.tabCompletion%"},"editor.suggest.filteredTypes":{type:"object",default:{keyword:!0,snippet:!0},markdownDescription:"%editor.configuration.suggest.filtered%",properties:{method:{type:"boolean",default:!0,markdownDescription:(0,n.localize)("editor.configuration.suggest.filtered.method","When set to `false` IntelliSense never shows `method` suggestions.")},function:{type:"boolean",default:!0,markdownDescription:"%editor.configuration.suggest.filtered.function%"},constructor:{type:"boolean",default:!0,markdownDescription:"%editor.configuration.suggest.filtered.constructor%"},field:{type:"boolean",default:!0,markdownDescription:"%editor.configuration.suggest.filtered.field%"},variable:{type:"boolean",default:!0,markdownDescription:"%editor.configuration.suggest.filtered.variable%"},class:{type:"boolean",default:!0,markdownDescription:"%editor.configuration.suggest.filtered.class%"},struct:{type:"boolean",default:!0,markdownDescription:"%editor.configuration.suggest.filtered.struct%"},interface:{type:"boolean",default:!0,markdownDescription:"%editor.configuration.suggest.filtered.interface%"},module:{type:"boolean",default:!0,markdownDescription:"%editor.configuration.suggest.filtered.module%"},property:{type:"boolean",default:!0,markdownDescription:"%editor.configuration.suggest.filtered.property%"},event:{type:"boolean",default:!0,markdownDescription:"%editor.configuration.suggest.filtered.event%"},operator:{type:"boolean",default:!0,markdownDescription:"%editor.configuration.suggest.filtered.operator%"},unit:{type:"boolean",default:!0,markdownDescription:"%editor.configuration.suggest.filtered.unit%"},value:{type:"boolean",default:!0,markdownDescription:"%editor.configuration.suggest.filtered.value"},constant:{type:"boolean",default:!0,markdownDescription:"%editor.configuration.suggest.filtered.constant%"},enum:{type:"boolean",default:!0,markdownDescription:"%editor.configuration.suggest.filtered.enum%"},enumMember:{type:"boolean",default:!0,markdownDescription:"%editor.configuration.suggest.filtered.enumMember%"},keyword:{type:"boolean",default:!0,markdownDescription:"%editor.configuration.suggest.filtered.keyword%"},text:{type:"boolean",default:!0,markdownDescription:"%editor.configuration.suggest.filtered.text%"},color:{type:"boolean",default:!0,markdownDescription:"%editor.configuration.suggest.filtered.color%"},file:{type:"boolean",default:!0,markdownDescription:"%editor.configuration.suggest.filtered.file%"},reference:{type:"boolean",default:!0,markdownDescription:"%editor.configuration.suggest.filtered.reference%"},customcolor:{type:"boolean",default:!0,markdownDescription:"%editor.configuration.suggest.filtered.customcolor%"},folder:{type:"boolean",default:!0,markdownDescription:"%editor.configuration.suggest.filtered.folder%"},typeParameter:{type:"boolean",default:!0,markdownDescription:"%editor.configuration.suggest.filtered.typeParameter%"},snippet:{type:"boolean",default:!0,markdownDescription:"%editor.configuration.suggest.filtered.snippet%"}}},"editor.gotoLocation.multiple":{description:"%editor.configuration.editor.gotoLocation.multiple%",type:"string",enum:["peek","gotoAndPeek","goto"],default:e.EDITOR_DEFAULTS.contribInfo.gotoLocation.multiple,enumDescriptions:[(0,n.localize)("editor.configuration.gotoLocation.multiple.peek","Show peek view of the results (default)"),(0,n.localize)("editor.configuration.gotoLocation.multiple.gotoAndPeek","Go to the primary result and show a peek view"),(0,n.localize)("editor.configuration.gotoLocation.multiple.goto","Go to the primary result and enable peek-less navigation to others")]},"editor.selectionHighlight":{type:"boolean",default:e.EDITOR_DEFAULTS.contribInfo.selectionHighlight,description:"%editor.configuration.selectionHighlight%"},"editor.occurrencesHighlight":{type:"boolean",default:e.EDITOR_DEFAULTS.contribInfo.occurrencesHighlight,description:"%editor.configuration.occurrencesHighlight%"},"editor.overviewRulerLanes":{type:"integer",default:3,description:"%editor.configuration.overviewRulerLanes%"},"editor.overviewRulerBorder":{type:"boolean",default:e.EDITOR_DEFAULTS.viewInfo.overviewRulerBorder,description:"%editor.configuration.overviewRulerBorder%"},"editor.cursorBlinking":{type:"string",enum:["blink","smooth","phase","expand","solid"],default:"blink",description:"%editor.configuration.cursorBlinking%"},"editor.mouseWheelZoom":{type:"boolean",default:e.EDITOR_DEFAULTS.viewInfo.mouseWheelZoom,markdownDescription:"%editor.configuration.mouseWheelZoom%"},"editor.cursorSmoothCaretAnimation":{type:"boolean",default:e.EDITOR_DEFAULTS.viewInfo.cursorSmoothCaretAnimation,description:"%editor.configuration.cursorSmoothCaretAnimation%"},"editor.cursorStyle":{type:"string",enum:["block","block-outline","line","line-thin","underline","underline-thin"],default:e.EDITOR_FONT_DEFAULTS.cursorStyle,description:"%editor.configuration.cursorStyle%"},"editor.cursorWidth":{type:"integer",default:e.EDITOR_DEFAULTS.viewInfo.cursorWidth,markdownDescription:"%editor.configuration.cursorWidth%"},"editor.fontLigatures":{type:"boolean",default:e.EDITOR_DEFAULTS.viewInfo.fontLigatures,description:"%editor.configuration.fontLigatures%"},"editor.hideCursorInOverviewRuler":{type:"boolean",default:e.EDITOR_DEFAULTS.viewInfo.hideCursorInOverviewRuler,description:"%editor.configuration.hideCursorInOverviewRuler%"},"editor.renderWhitespace":{type:"string",enum:["none","boundary","selection","all"],enumDescriptions:["",(0,n.localize)("editor.configuration.renderWhitespace.boundary","Render whitespace characters except for single spaces between words."),(0,n.localize)("editor.configuration.renderWhitespace.selection","Render whitespace characters only on selected text."),""],default:e.EDITOR_DEFAULTS.viewInfo.renderWhitespace,description:"%editor.configuration.renderWhitespace%"},"editor.rename.enablePreview":{type:"boolean",default:!0,description:"%editor.configuration.rename.enablePreview%"},"editor.renderControlCharacters":{type:"boolean",default:e.EDITOR_DEFAULTS.viewInfo.renderControlCharacters,description:"%editor.configuration.renderControlCharacters%"},"editor.guides.indentation":{type:"boolean",default:e.EDITOR_DEFAULTS.viewInfo.guides.indentation,description:"%editor.configuration.guides.indentation%"},"editor.guides.highlightActiveIndentation":{type:"boolean",default:e.EDITOR_DEFAULTS.viewInfo.guides.highlightActiveIndentGuide,description:"%editor.configuration.guides.highlightActiveIndentation%"},"editor.guides.bracketPairs":{type:"boolean",default:e.EDITOR_DEFAULTS.viewInfo.guides.bracketPairs,description:"%editor.configuration.guides.bracketPairs%"},"editor.renderLineHighlight":{type:"string",enum:["none","gutter","line","all"],enumDescriptions:["","","",(0,n.localize)("editor.configuration.renderLineHighlight.all","Highlights both the gutter and the current line.")],default:e.EDITOR_DEFAULTS.viewInfo.renderLineHighlight,description:"%editor.configuration.renderLineHighlight%"},"editor.codeLens":{type:"boolean",default:e.EDITOR_DEFAULTS.contribInfo.codeLens,description:"%editor.configuration.codeLens%"},"editor.folding":{type:"boolean",default:e.EDITOR_DEFAULTS.contribInfo.folding,description:"%editor.configuration.folding%"},"editor.foldingStrategy":{type:"string",enum:["auto","indentation"],default:e.EDITOR_DEFAULTS.contribInfo.foldingStrategy,markdownDescription:"%editor.configuration.foldingStrategy%"},"editor.showFoldingControls":{type:"string",enum:["always","mouseover"],default:e.EDITOR_DEFAULTS.contribInfo.showFoldingControls,description:"%editor.configuration.showFoldingControls%"},"editor.matchBrackets":{type:"boolean",default:e.EDITOR_DEFAULTS.contribInfo.matchBrackets,description:"%editor.configuration.matchBrackets%"},"editor.glyphMargin":{type:"boolean",default:e.EDITOR_DEFAULTS.viewInfo.glyphMargin,description:"%editor.configuration.glyphMargin%"},"editor.useTabStops":{type:"boolean",default:e.EDITOR_DEFAULTS.useTabStops,description:"%editor.configuration.useTabStops%"},"editor.trimAutoWhitespace":{type:"boolean",default:e.EDITOR_MODEL_DEFAULTS.trimAutoWhitespace,description:"%editor.configuration.trimAutoWhitespace%"},"editor.stablePeek":{type:"boolean",default:!1,markdownDescription:"%editor.configuration.stablePeek%"},"editor.dragAndDrop":{type:"boolean",default:e.EDITOR_DEFAULTS.dragAndDrop,description:"%editor.configuration.dragAndDrop%"},"editor.accessibilitySupport":{type:"string",enum:["auto","on","off"],enumDescriptions:[(0,n.localize)("editor.configuration.accessibilitySupport.auto","The editor will use platform APIs to detect when a Screen Reader is attached."),(0,n.localize)("editor.configuration.accessibilitySupport.on","The editor will be permanently optimized for usage with a Screen Reader."),(0,n.localize)("editor.configuration.accessibilitySupport.off","The editor will never be optimized for usage with a Screen Reader.")],default:e.EDITOR_DEFAULTS.accessibilitySupport,description:(0,n.localize)("accessibilitySupport","Controls whether the editor should run in a mode where it is optimized for screen readers.")},"editor.showUnused":{type:"boolean",default:e.EDITOR_DEFAULTS.showUnused,description:"%editor.configuration.showUnused%"},"editor.comments.insertSpace":{type:"boolean",default:!0,description:"%editor.configuration.comments.insertSpace%"},"editor.comments.ignoreEmptyLines":{type:"boolean",default:!0,description:"%editor.configuration.comments.ignoreEmptyLines%"},"editor.links":{type:"boolean",default:e.EDITOR_DEFAULTS.contribInfo.links,description:"%editor.configuration.links%"},"editor.colorDecorators":{type:"boolean",default:e.EDITOR_DEFAULTS.contribInfo.colorDecorators,description:"%editor.configuration.colorDecorators%"},"editor.lightbulb.enabled":{type:"string",default:e.EDITOR_DEFAULTS.contribInfo.lightbulbEnabled,enum:[a.ShowLightbulbIconMode.Off,a.ShowLightbulbIconMode.OnCode,a.ShowLightbulbIconMode.On],enumDescriptions:[],description:"%editor.configuration.lightbulb.enabled%"},"editor.maxTokenizationLineLength":{type:"integer",default:2e4,description:"%editor.configuration.maxTokenizationLineLength%"},"editor.codeActionsOnSave":{type:"object",properties:{"source.organizeImports":{type:"boolean",description:"%editor.configuration.codeActionsOnSave.organizeImports%"},"source.fixAll":{type:"boolean",description:"%editor.configuration.codeActionsOnSave.fixAll%"}},additionalProperties:{type:"boolean"},default:e.EDITOR_DEFAULTS.contribInfo.codeActionsOnSave,description:"%editor.configuration.codeActionsOnSave%"},"editor.codeActionsOnSaveTimeout":{type:"number",default:e.EDITOR_DEFAULTS.contribInfo.codeActionsOnSaveTimeout,description:"%editor.configuration.codeActionsOnSaveTimeout%"},"editor.codeActionsOnSaveNotification":{type:"boolean",default:!0,description:"%editor.configuration.codeActionsOnSaveNotification%"},"editor.selectionClipboard":{type:"boolean",default:e.EDITOR_DEFAULTS.contribInfo.selectionClipboard,description:"%editor.configuration.selectionClipboard%",included:n.isLinux},"editor.largeFileOptimizations":{type:"boolean",default:e.EDITOR_MODEL_DEFAULTS.largeFileOptimizations,description:"%editor.configuration.largeFileOptimizations%"},"editor.defaultFormatter":{type:"string",description:"%editor.configuration.defaultFormatter%"},"editor.unicodeHighlight.ambiguousCharacters":{type:"boolean",default:!0,description:"%editor.configuration.unicodeHighlight.ambiguousCharacters%"},"diffEditor.renderIndicators":{type:"boolean",default:e.DIFF_EDITOR_DEFAULTS.renderIndicators,description:"%editor.configuration.renderIndicators%"},"diffEditor.minimap":{type:"boolean",default:e.DIFF_EDITOR_DEFAULTS.minimap},"diffEditor.experimental.stickyScroll.enabled":{type:"boolean",default:e.DIFF_EDITOR_DEFAULTS.experimental.stickyScroll.enable}},G={"editor.tokenColorCustomizations":{type:"object",description:"%editor.configuration.tokenColorCustomizations%",default:{}},"editor.askIfDiff":{type:"boolean",default:!0,description:"%editor.configuration.askIfDiff%"},"editor.showActionWhenGroupEmpty":{type:"boolean",default:!1,description:"%editor.configuration.showActionWhenGroupEmpty%"},"editor.autoSave":{type:"string",enum:["off","afterDelay","editorFocusChange","windowLostFocus"],default:"off",description:"%editor.configuration.autoSave%"},"editor.autoSaveDelay":{type:"number",default:1e3,markdownDescription:"%editor.configuration.autoSaveDelay%"},"editor.preferredFormatter":{type:"object",default:{},description:"%editor.configuration.preferredFormatter%"},"editor.previewMode":{type:"boolean",default:!0,description:"%editor.configuration.previewMode%"},"editor.wrapTab":{type:"boolean",default:!1,description:"%editor.configuration.wrapTab%"},"editor.enablePreviewFromCodeNavigation":{type:"boolean",default:!1,markdownDescription:"%editor.configuration.enablePreviewFromCodeNavigation%"},"editor.minimap":{type:"boolean",default:!0},"editor.forceReadOnly":{type:"boolean",default:!1,description:"%editor.configuration.forceReadOnly%"},"editor.languageFeatureEnabledMaxSize":{type:"number",default:4*1024*1024*1024,description:"%editor.configuration.languageFeatureEnabledMaxSize%"},"editor.docExtHostSyncMaxSize":{type:"number",default:4*1024*1024*1024,description:"%editor.configuration.docExtHostSyncMaxSize%"},"editor.renderLineHighlight":{type:"string",enum:["none","gutter","line","all"],default:"all",description:"%editor.configuration.renderLineHighlight%"},"editor.fontFamily":{type:"string",default:e.EDITOR_FONT_DEFAULTS.fontFamily},"editor.fontSize":{type:"number",default:e.EDITOR_FONT_DEFAULTS.fontSize,minimum:6},"editor.tabSize":{type:"number",default:e.EDITOR_FONT_DEFAULTS.tabSize,minimum:1,description:"%editor.configuration.tabSize%"},"editor.formatOnPaste":{type:"boolean",default:!1},"editor.detectIndentation":{type:"boolean",default:!0},"editor.renderWhitespace":{type:"boolean",default:e.EDITOR_FONT_DEFAULTS.renderWhitespace},"editor.cursorStyle":{type:"string",enum:["line","block","block-outline","line-thin","underline","underline-thin"],default:e.EDITOR_FONT_DEFAULTS.cursorStyle},"editor.insertSpaces":{type:"boolean",default:e.EDITOR_FONT_DEFAULTS.insertSpace},"editor.wordWrap":{type:"string",enum:["off","on"],default:e.EDITOR_FONT_DEFAULTS.wordWrap},"editor.wordWrapColumn":{type:"number",default:e.EDITOR_FONT_DEFAULTS.wordWrapColumn,description:"%editor.configuration.wordWrapColumn%"},"editor.readonlyFiles":{type:"array",default:[],items:{type:"string"}},"editor.formatOnSave":{type:"boolean",default:!1,description:"%editor.configuration.formatOnSave%"},"editor.formatOnSaveTimeout":{type:"number",default:750,markdownDescription:"%editor.configuration.formatOnSaveTimeout%"},"editor.lineHeight":{type:"number",default:0,description:"%editor.lineHeight.description%"},"editor.maxTokenizationLineLength":{type:"integer",default:2e4,description:"%editor.configuration.maxTokenizationLineLength%"},"editor.semanticHighlighting.enabled":{enum:[!0,!1,"configuredByTheme"],enumDescriptions:[(0,n.localize)("editor.configuration.semanticHighlighting.true","Semantic highlighting enabled for all color themes."),(0,n.localize)("editor.configuration.semanticHighlighting.false","Semantic highlighting disabled for all color themes."),(0,n.localize)("editor.configuration.semanticHighlighting.configuredByTheme","Semantic highlighting is configured by the current color theme's `semanticHighlighting` setting.")],default:!0,description:"%editor.configuration.semanticHighlighting.enabled%"},"editor.bracketPairColorization.enabled":{type:"boolean",default:!0,description:"%editor.configuration.bracketPairColorization.enabled%"},"editor.largeFile":{type:"number",default:4*1024*1024*1024,description:"%editor.configuration.largeFileSize%"},"editor.quickSuggestionsDelay":{type:"integer",default:100,description:"%editor.configuration.quickSuggestionsDelay%"},"editor.modelDisposeTime":{type:"integer",default:3e3},"workbench.editorAssociations":{type:"object",markdownDescription:"%editor.configuration.workbench.editorAssociations%",default:{},additionalProperties:{type:"string"}},"editor.experimental.stickyScroll.enabled":{type:"boolean",default:!1,description:"%editor.configuration.experimental.stickyScroll.enabled%"},"editor.mouseBackForwardToNavigate":{type:"boolean",default:!0,description:"%editor.configuration.mouseBackForwardToNavigate%"},"diffEditor.renderSideBySide":{type:"boolean",default:e.DIFF_EDITOR_DEFAULTS.renderSideBySide,description:"%diffEditor.configuration.renderSideBySide%"},"diffEditor.ignoreTrimWhitespace":{type:"boolean",default:e.DIFF_EDITOR_DEFAULTS.ignoreTrimWhitespace,description:"%diffEditor.configuration.ignoreTrimWhitespace%"},"diffEditor.hideUnchangedRegions.enabled":{type:"boolean",default:e.DIFF_EDITOR_DEFAULTS.hideUnchangedRegions.enabled,description:"Controls whether the diff editor shows unchanged regions."},"diffEditor.hideUnchangedRegions.revealLineCount":{type:"integer",default:e.DIFF_EDITOR_DEFAULTS.hideUnchangedRegions.revealLineCount,description:"Controls how many lines are used for unchanged regions.",minimum:1},"diffEditor.hideUnchangedRegions.minimumLineCount":{type:"integer",default:e.DIFF_EDITOR_DEFAULTS.hideUnchangedRegions.minimumLineCount,description:"Controls how many lines are used as a minimum for unchanged regions.",minimum:1},"diffEditor.hideUnchangedRegions.contextLineCount":{type:"integer",default:e.DIFF_EDITOR_DEFAULTS.hideUnchangedRegions.contextLineCount,description:"Controls how many lines are used as context when comparing unchanged regions.",minimum:1},"diffEditor.experimental.showMoves":{type:"boolean",default:e.DIFF_EDITOR_DEFAULTS.experimental.showMoves,description:"Controls whether the diff editor should show detected code moves."},"diffEditor.experimental.showEmptyDecorations":{type:"boolean",default:e.DIFF_EDITOR_DEFAULTS.experimental.showEmptyDecorations,description:"Controls whether the diff editor shows empty decorations to see where characters got inserted or deleted."},"diffEditor.experimental.collapseUnchangedRegions":{type:"boolean",default:e.DIFF_EDITOR_DEFAULTS.experimental.collapseUnchangedRegions,description:"Controls whether the diff editor shows unchanged regions."}};e.editorPreferenceSchema={type:"object",properties:Object.assign(Object.assign({},u),G)},e.EditorPreferences=Symbol("EditorPreference")},90915:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.createEditorPreferenceProxy=void 0;const n=t(41869),a=t(24328);function o(I,g,u){return(0,n.createPreferenceProxy)(I,a.editorPreferenceSchema,{resourceUri:g,overrideIdentifier:u})}e.createEditorPreferenceProxy=o},53135:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.GoToLineQuickOpenHandler=void 0;const n=t(85608),a=t(76003),o=t(41869),I=t(74404),g=n.__importStar(t(20868)),u=t(55979),G=t(82196);class p extends u.AbstractGotoLineQuickAccessProvider{clearDecorations(d){super.clearDecorations(d)}preview(d,s){d.revealRangeInCenter(s,g.editor.ScrollType.Smooth),this.addDecorations(d,s)}goTo(d,s,l=!0){this.gotoLocation({editor:d},{range:s,preserveFocus:l,keyMods:{alt:!1,ctrlCmd:!1}})}}let b=class{constructor(){this.prefix=":",this.description=(0,o.localize)("quickopen.goToLine.desc"),this.quickAccess=new p}getFirstSelection(){const d=this.workbenchEditorService.currentEditor,s=d?.getSelections();return s?.[0]}getRange(d=1,s=1){return{startLineNumber:d,endLineNumber:d,startColumn:s,endColumn:s}}init(){var d;this.savedViewState=(0,o.withNullAsUndefined)((d=this.workbenchEditorService.currentEditor)===null||d===void 0?void 0:d.monacoEditor.saveViewState())}getModel(){var d,s,l,r,c;const h=this.workbenchEditorService.currentEditor,v=this.getFirstSelection();if(!v||!h)return{onType:(Z,y)=>{y([new I.QuickOpenItem({label:(0,o.localize)("quickopen.goToLine.notValid"),run:()=>!1})])}};const f=(d=v.positionLineNumber)!==null&&d!==void 0?d:1,W=(s=v.positionColumn)!==null&&s!==void 0?s:1,N=(c=(r=(l=h.currentDocumentModel)===null||l===void 0?void 0:l.getMonacoModel())===null||r===void 0?void 0:r.getLineCount())!==null&&c!==void 0?c:1;return{onType:(Z,y)=>{const E=Z.split(/,|:|#|:|,/).map(w=>parseInt(w,10)).filter(w=>!isNaN(w)),R=E[0],A=E[1];if(R){let w=(0,o.formatLocalize)("quickopen.goToLine.lineInfo",R);A&&(w+=(0,o.formatLocalize)("quickopen.goToLine.colInfo",A));const F=this.getRange(R,A);y([new I.QuickOpenItem({label:w,run:V=>V===I.Mode.PREVIEW?(this.quickAccess.preview(h.monacoEditor,F),!1):(this.quickAccess.goTo(h.monacoEditor,F,!0),!0)})])}else this.quickAccess.clearDecorations(h.monacoEditor),y([new I.QuickOpenItem({label:(0,o.formatLocalize)("quickopen.goToLine.defaultMessage",f,W,N),run:()=>!1})])}}}getOptions(){return{}}onClose(d){const s=this.workbenchEditorService.currentEditor;s&&(s.monacoEditor.focus(),this.quickAccess.clearDecorations(s.monacoEditor),d&&this.savedViewState&&s.monacoEditor.restoreViewState(this.savedViewState))}};n.__decorate([(0,a.Autowired)(I.PrefixQuickOpenService),n.__metadata("design:type",Object)],b.prototype,"quickOpenService",void 0),n.__decorate([(0,a.Autowired)(o.CommandService),n.__metadata("design:type",Object)],b.prototype,"commandService",void 0),n.__decorate([(0,a.Autowired)(G.WorkbenchEditorService),n.__metadata("design:type",G.WorkbenchEditorService)],b.prototype,"workbenchEditorService",void 0),b=n.__decorate([(0,a.Injectable)(),n.__metadata("design:paramtypes",[])],b),e.GoToLineQuickOpenHandler=b},50236:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SymbolInformationQuickOpenItem=e.WorkspaceSymbolQuickOpenHandler=void 0;const n=t(85608),a=t(76003),o=t(41869),I=t(43718),g=t(97821),u=t(51500),G=t(48069),p=t(23418);let b=class extends g.QuickOpenBaseAction{constructor(){super({id:"workspace-symbol:splitToRight",tooltip:(0,I.localize)("quickOpen.openOnTheRightSide"),class:(0,o.getIcon)("embed")})}async run(r){await r.openSide()}};b=n.__decorate([(0,a.Injectable)(),n.__metadata("design:paramtypes",[])],b);let m=class{hasActions(){return!0}getActions(){return[this.workspaceSymbolOpenSideActionOpen]}};n.__decorate([(0,a.Autowired)(),n.__metadata("design:type",b)],m.prototype,"workspaceSymbolOpenSideActionOpen",void 0),m=n.__decorate([(0,a.Injectable)()],m);let d=class{constructor(){this.prefix="#",this.cancellationSource=new o.CancellationTokenSource}get description(){return(0,I.localize)("editor.workspaceSymbol.description")}getModel(){return{onType:(r,c)=>{if(r===""){c([new o.QuickOpenItem({label:(0,I.localize)("editor.workspaceSymbol.search"),run:()=>!1})]);return}if(r==="#")return void c([new o.QuickOpenItem({label:(0,I.localize)("editor.workspaceSymbolClass.search"),run:()=>!1})]);if(this.languageService.workspaceSymbolProviders.length===0){c([new o.QuickOpenItem({label:(0,I.localize)("editor.workspaceSymbol.notfound"),run:()=>!1})]);return}const h=r[0]==="#",v=[];this.cancellationSource.cancel();const f=new o.CancellationTokenSource;this.cancellationSource=f;const W={query:h?r.slice(1):r},N=this.reporterService.time(I.REPORT_NAME.QUICK_OPEN_MEASURE);Promise.all(this.languageService.workspaceSymbolProviders.map(async Z=>{let y=await Z.provideWorkspaceSymbols(W,f.token);if(h&&(y=y?.filter(E=>E.kind===G.SymbolKind.Class)),y&&y.length&&!f.token.isCancellationRequested){const E=await Promise.all(y.map(async R=>{const A=await this.workspaceService.asRelativePath(new o.URI(R.location.uri).parent);return new s(R,Z,this.workbenchEditorService,f.token,A?.path||"")}));v.push(...E),c(v,this.workspaceSymbolActionProvider)}return y})).catch(Z=>{this.logger.log(Z)}).finally(()=>{f.token.isCancellationRequested||(v.length||c([]),N.timeEnd(h?"class":"symbol",{lookFor:r,stat:{symbol:v.length}}))})}}}getOptions(){return{fuzzyMatchLabel:{enableSeparateSubstringMatching:!0},showItemsWithoutHighlight:!0,fuzzyMatchDescription:!1,getPlaceholderItem:(r,c)=>new o.QuickOpenItem({label:(0,I.localize)(c.startsWith("##")?"editor.workspaceSymbolClass.notfound":"editor.workspaceSymbol.notfound"),run:()=>!1})}}onClose(){this.cancellationSource.cancel()}onToggle(){this.cancellationSource.cancel()}};n.__decorate([(0,a.Autowired)(p.ILanguageService),n.__metadata("design:type",Object)],d.prototype,"languageService",void 0),n.__decorate([(0,a.Autowired)(u.IWorkspaceService),n.__metadata("design:type",Object)],d.prototype,"workspaceService",void 0),n.__decorate([(0,a.Autowired)(I.ILogger),n.__metadata("design:type",Object)],d.prototype,"logger",void 0),n.__decorate([(0,a.Autowired)(p.WorkbenchEditorService),n.__metadata("design:type",p.WorkbenchEditorService)],d.prototype,"workbenchEditorService",void 0),n.__decorate([(0,a.Autowired)(),n.__metadata("design:type",m)],d.prototype,"workspaceSymbolActionProvider",void 0),n.__decorate([(0,a.Autowired)(I.IReporterService),n.__metadata("design:type",Object)],d.prototype,"reporterService",void 0),d=n.__decorate([(0,a.Injectable)()],d),e.WorkspaceSymbolQuickOpenHandler=d;class s extends o.QuickOpenItem{constructor(r,c,h,v,f){super({}),this.symbol=r,this.provider=c,this.workbenchEditorService=h,this.token=v,this.relativePath=f}getLabel(){return this.symbol.name}getUri(){return new o.URI(this.symbol.location.uri)}getIconClass(){return(0,o.getSymbolIcon)(this.symbol.kind)}getDescription(){const r=this.symbol.containerName;return`${r?`${r} \xB7 `:""}${decodeURIComponent(this.relativePath)}`}fromRange(r){if(!r)return;const{start:c,end:h}=r;return{startLineNumber:c.line+1,startColumn:c.character+1,endLineNumber:h.line+1,endColumn:h.character+1}}open(r,c){this.workbenchEditorService.open(r,{range:this.fromRange(c)})}run(r){const c=this.getUri();return r===o.QuickOpenMode.OPEN&&this.provider.resolveWorkspaceSymbol(this.symbol,this.token).then(h=>{h?this.open(c,h.location.range):this.open(c,this.symbol.location.range)}),!0}openSide(){const r=this.getUri();return this.provider.resolveWorkspaceSymbol(this.symbol,this.token).then(c=>{this.workbenchEditorService.open(r,{preview:!1,split:p.EditorGroupSplitAction.Right,range:this.fromRange(c?c.location.range:this.symbol.location.range),focus:!0})})}}e.SymbolInformationQuickOpenItem=s},80200:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ResourceServiceImpl=void 0;const n=t(85608),a=t(83794),o=t(76003),I=t(41869),g=t(43718),u=t(23418),{addElement:G}=g.arrays;let p=class extends I.WithEventBus{constructor(){super(),this.providers=[],this.resources=new Map,this.gettingResources=new Map,this.resourceDecoration=new Map,this.cachedProvider=new g.LRUMap(500,200),this.onRegisterResourceProviderEmitter=new g.Emitter,this.onRegisterResourceProvider=this.onRegisterResourceProviderEmitter.event,this.onUnregisterResourceProviderEmitter=new g.Emitter,this.onUnregisterResourceProvider=this.onUnregisterResourceProviderEmitter.event}onResourceNeedUpdateEvent(s){const l=s.payload;if(this.resources.has(l.toString())){const r=this.resources.get(l.toString());this.doGetResource(l).then(c=>{r&&(Object.assign(r?.resource,c?.resource),r.provider=c?.provider),this.eventBus.fire(new u.ResourceDidUpdateEvent(l))})}}onResourceDecorationNeedChangeEvent(s){this.getResourceDecoration(s.payload.uri);let l=!1;const r=this.resourceDecoration.get(s.payload.uri.toString())||{};new Set([...Object.keys(r),...Object.keys(s.payload.decoration)]).forEach(c=>{r[c]!==s.payload.decoration[c]&&(l=!0)}),l&&(Object.assign(this.resourceDecoration.get(s.payload.uri.toString()),s.payload.decoration),this.eventBus.fire(new u.ResourceDecorationChangeEvent(s.payload)))}getSupportedSchemes(){return Array.from(this.providers.values()).map(s=>s.scheme).filter(Boolean)}async getResource(s){if(!this.resources.has(s.toString())){const l=await this.doGetResource(s);if(!l)return null;const r={resource:(0,a.observable)(Object.assign({},l.resource)),provider:l.provider};this.resources.set(s.toString(),r)}return this.resources.get(s.toString()).resource}handlesUri(s){return!!this.calculateProvider(s)}async doGetResource(s){if(!this.gettingResources.has(s.toString())){const l=(async()=>{const r=this.calculateProvider(s);if(r){const c=await r.provideResource(s);return c.uri=s,{resource:c,provider:r}}else return this.logger.error("URI has no resource provider: "+s),null})();this.gettingResources.set(s.toString(),l),l.finally(()=>{this.gettingResources.delete(s.toString())})}return this.gettingResources.get(s.toString())}registerResourceProvider(s){this.onRegisterResourceProviderEmitter.fire(s);const l=new g.Disposable;return l.addDispose(G(this.providers,s)),l.addDispose({dispose:()=>{for(const r of this.resources.values())r.provider===s&&(r.provider=m,this.onUnregisterResourceProviderEmitter.fire(s));this.cachedProvider.clear()}}),this.cachedProvider.clear(),l}async shouldCloseResource(s,l){const r=this.getProvider(s.uri);return!r||!r.shouldCloseResource?!0:await r.shouldCloseResource(s,l)}async shouldCloseResourceWithoutConfirm(s){const l=this.getProvider(s.uri);return l&&l.shouldCloseResourceWithoutConfirm?await l.shouldCloseResourceWithoutConfirm(s):!1}async close(s,l){const r=this.getProvider(s.uri);return!r||!r.close?!0:await r.close(s,l)}calculateProvider(s){if(this.cachedProvider.has(s.toString()))return this.cachedProvider.get(s.toString());let l,r={weight:-1,index:-1};function c(h,v,f){r={weight:v,index:f},l=h}return this.providers.forEach((h,v)=>{let f=-1;h.handlesUri?f=h.handlesUri(s):h.scheme&&(f=h.scheme===s.scheme?10:-1),f>=0&&(f>r.weight||f===r.weight&&v>r.index)&&c(h,f,v)}),this.cachedProvider.set(s.toString(),l),l}getProvider(s){const l=this.resources.get(s.toString());if(l)return l.provider}getResourceDecoration(s){return this.resourceDecoration.has(s.toString())||this.resourceDecoration.set(s.toString(),(0,a.observable)(b)),this.resourceDecoration.get(s.toString())}getResourceSubname(s,l){const r=this.getProvider(s.uri);return r&&r.provideResourceSubname?r.provideResourceSubname(s,l):null}disposeResource(s){const l=this.getProvider(s.uri);if(this.resources.delete(s.uri.toString()),this.resourceDecoration.delete(s.uri.toString()),!(!l||!l.onDisposeResource))return l.onDisposeResource(s)}};n.__decorate([(0,o.Autowired)(g.ILogger),n.__metadata("design:type",Object)],p.prototype,"logger",void 0),n.__decorate([(0,I.OnEvent)(u.ResourceNeedUpdateEvent),n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[u.ResourceNeedUpdateEvent]),n.__metadata("design:returntype",void 0)],p.prototype,"onResourceNeedUpdateEvent",null),n.__decorate([(0,I.OnEvent)(u.ResourceDecorationNeedChangeEvent),n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[u.ResourceDecorationNeedChangeEvent]),n.__metadata("design:returntype",void 0)],p.prototype,"onResourceDecorationNeedChangeEvent",null),p=n.__decorate([(0,o.Injectable)(),n.__metadata("design:paramtypes",[])],p),e.ResourceServiceImpl=p;const b={dirty:!1,readOnly:!1},m={handlesUri:()=>-1,provideResource:d=>({uri:d,name:"",icon:""})}},52795:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.EditorActions=e.Tabs=void 0;const n=t(85608),a=n.__importDefault(t(53373)),o=n.__importStar(t(14041)),I=t(97267),g=t(41869),u=t(25918),G=t(1149),p=t(63373),b=t(93899),m=t(48560),d=t(23418),s=n.__importDefault(t(62711)),l=t(78680),r=t(82196),c=t(50674),h=t(72570).UU,v=({group:W})=>{const N=(0,o.useRef)(),Z=(0,o.useRef)(),y=(0,o.useRef)(),E=(0,o.useRef)(null),R=(0,o.useRef)(null),A=(0,m.useInjectable)(d.ResourceService),w=(0,m.useInjectable)(g.IEventBus),F=(0,o.useContext)(g.ConfigContext),V=(0,m.useInjectable)(d.WorkbenchEditorService),Y=(0,m.useInjectable)(l.TabTitleMenuService),_=(0,m.useInjectable)(g.PreferenceService),H=(0,m.useInjectable)(b.IMenuRegistry),S=(0,m.useInjectable)(r.IEditorTabService),X=(0,m.useInjectable)(G.LayoutViewSizeConfig),Q=(0,g.useDesignStyles)(s.default.tab_right,"tab_right"),O=(0,g.useDesignStyles)(s.default.close_tab,"close_tab"),M=(0,g.useDesignStyles)(s.default.kt_editor_close_icon,"kt_editor_close_icon"),T=(0,g.useDesignStyles)(s.default.kt_editor_tabs_content,"kt_editor_tabs_content"),x=(0,g.useDesignStyles)(s.default.kt_editor_tabs_current_last,"kt_editor_tabs_current_last"),B=(0,g.useDesignStyles)(s.default.kt_editor_tab,"kt_editor_tab"),D=(0,g.useDesignStyles)(s.default.kt_editor_tab_current_prev,"kt_editor_tab_current_prev"),J=(0,g.useDesignStyles)(s.default.kt_editor_tab_current_next,"kt_editor_tab_current_next"),k=(0,g.useDesignStyles)(s.default.kt_editor_tab_current,"kt_editor_tab_current"),z=(0,g.useDesignStyles)(s.default.kt_editor_tab_dirty,"kt_editor_tab_dirty"),P=(0,g.useDesignStyles)(s.default.kt_editor_tabs,"kt_editor_tabs"),U=(0,g.useDesignStyles)(s.default.kt_editor_tabs_scroll_wrapper,"kt_editor_tabs_scroll_wrapper"),[oe,se]=(0,o.useState)({}),[ae,he]=(0,o.useState)(!!_.get("editor.wrapTab")),[ee,pe]=(0,o.useState)(new Map),[ge,$]=(0,o.useState)(),le=(0,o.useMemo)(()=>(0,g.getSlotLocation)(h,F.layoutConfig),[]);(0,c.useUpdateOnGroupTabChange)(W),(0,m.useUpdateOnEventBusEvent)(d.ResourceDidUpdateEvent,[W.resources],me=>!!y&&W.resources.findIndex(ve=>ve.uri.isEqual(me))!==-1),(0,o.useEffect)(()=>{const me=new g.Disposable;return me.addDispose(W.onDidEditorGroupContentLoading(ve=>{var Ne;(Ne=W.resourceStatus.get(ve))===null||Ne===void 0||Ne.finally(()=>{se(Object.assign({},oe,{[ve.uri.toString()]:!1}))}),se(Object.assign({},oe,{[ve.uri.toString()]:!0}))})),me.addDispose(W.onDidEditorGroupTabChanged(()=>{ae||ue()})),()=>{me.dispose()}},[W]);const te=(0,o.useCallback)((me,ve,Ne)=>{if(me.dataTransfer.getData("uri")){const Ze=new g.URI(me.dataTransfer.getData("uri"));let Ee;me.dataTransfer.getData("uri-source-group")&&(Ee=V.getEditorGroup(me.dataTransfer.getData("uri-source-group"))),W.dropUri(Ze,r.DragOverPosition.CENTER,Ee,Ne)}me.dataTransfer.files.length>0&&w.fire(new r.EditorGroupFileDropEvent({group:W,tabIndex:ve,files:me.dataTransfer.files}))},[W]),ue=(0,o.useCallback)(()=>{if(N.current&&W.currentResource)try{const me=N.current.querySelector("."+s.default.kt_editor_tab+"[data-uri='"+W.currentResource.uri.toString()+"']");me&&me.scrollIntoView()}catch{}},[W,N.current]),q=(0,o.useCallback)(()=>{E.current&&(clearTimeout(E.current),E.current=null);const me=setTimeout(()=>{var ve,Ne;((ve=R.current)===null||ve===void 0?void 0:ve.offsetWidth)!==ge&&$((Ne=R.current)===null||Ne===void 0?void 0:Ne.offsetWidth)},200);E.current=me},[R.current,E.current,ge]);(0,o.useEffect)(()=>{ae||queueMicrotask(()=>{ue()})},[ae,N.current]),(0,o.useEffect)(()=>{if(!ae){const me=new g.Disposable;return N.current&&me.addDispose(new g.DomListener(N.current,"mousewheel",f)),me.addDispose(w.on(g.ResizeEvent,ve=>{ve.payload.slotLocation===le&&ue()})),me.addDispose(w.on(r.GridResizeEvent,ve=>{ve.payload.gridId===W.grid.uid&&ue()})),()=>{me.dispose()}}},[ae]);const j=(0,o.useCallback)(()=>{if(y.current&&ae){const me=new Map;let ve,Ne;const Ze=Array.from(y.current.children);Ze.pop(),Ze.forEach(Ee=>{Ee.offsetTop!==ve&&(ve=Ee.offsetTop,Ne&&me.set(Ze.indexOf(Ne),!0)),Ne=Ee,me.set(Ze.indexOf(Ee),!1)}),pe(me)}},[y.current,ae]);(0,o.useEffect)(()=>{q()},[R.current,ae]),(0,o.useEffect)(j,[ae,y.current,W,W.resources.length]),(0,o.useEffect)(()=>{const me=new g.DisposableCollection;return me.push(w.on(g.ResizeEvent,ve=>{ve.payload.slotLocation===le&&j()})),me.push(_.onPreferenceChanged(ve=>{ve.preferenceName==="editor.wrapTab"&&he(!!ve.newValue)})),me.push(V.onDidCurrentEditorGroupChanged(()=>{window.requestAnimationFrame(q)})),me.push(g.Event.debounce(g.Event.filter(H.onDidChangeMenu,ve=>ve===b.MenuId.EditorTitle),()=>{},200)(()=>{window.requestAnimationFrame(q)})),()=>{me.dispose()}},[]),(0,o.useEffect)(()=>{const me=new g.DisposableCollection;return me.push(W.onDidEditorFocusChange(ve=>{q()})),()=>{me.dispose()}},[W]);const ie=(0,o.useCallback)(me=>{me.preventDefault(),me.stopPropagation(),Z.current&&Z.current.classList.add(s.default.kt_on_drag_over)},[Z.current]),ne=(0,o.useCallback)(me=>{Z.current&&Z.current.classList.remove(s.default.kt_on_drag_over)},[Z.current]),de=(0,o.useCallback)(me=>{Z.current&&Z.current.classList.remove(s.default.kt_on_drag_over),te&&te(me,-1)},[te,Z.current]),Ie=(0,o.useCallback)(me=>{me.target===me.currentTarget&&V.createUntitledResource()},[V]),Ge=o.default.useCallback((me,ve)=>{const Ne=A.getResourceDecoration(me.uri),Ze=A.getResourceSubname(me,W.resources);return S.renderEditorTab(o.default.createElement(o.default.Fragment,null,o.default.createElement("div",{className:oe[me.uri.toString()]?"loading_indicator":(0,a.default)(me.icon)}," "),o.default.createElement("div",null,me.name),Ze?o.default.createElement("div",{className:s.default.subname},Ze):null,Ne.readOnly?o.default.createElement("span",{className:(0,a.default)((0,g.getExternalIcon)("lock"),s.default.editor_readonly_icon)}):null,o.default.createElement("div",{className:Q},o.default.createElement("div",{className:(0,a.default)({[s.default.kt_hidden]:!Ne.dirty,[s.default.dirty]:!0})}),o.default.createElement("div",{className:O,onMouseDown:Ee=>{Ee.stopPropagation(),W.close(me.uri)}},S.renderTabCloseComponent(o.default.createElement("div",{className:(0,a.default)((0,g.getIcon)("close"),M)}))))),ve)},[S]),re=()=>{const me=W.resources.findIndex(ve=>W.currentResource===ve);return o.default.createElement("div",{draggable:!1,className:(0,a.default)({[T]:!0,[x]:me===W.resources.length-1}),ref:y},W.resources.map((ve,Ne)=>{let Ze;const Ee=A.getResourceDecoration(ve.uri);return o.default.createElement("div",{draggable:!0,title:ve.title,className:(0,a.default)({[B]:!0,[s.default.last_in_row]:ee.get(Ne),[D]:me-1===Ne,[J]:me+1===Ne,[k]:W.currentResource===ve,[s.default.kt_editor_tab_preview]:W.previewURI&&W.previewURI.isEqual(ve.uri),[z]:Ee.dirty}),style:ae&&Ne===W.resources.length-1?{marginRight:ge,height:X.editorTabsHeight}:{height:X.editorTabsHeight},onContextMenu:Ve=>{Y.show(Ve.nativeEvent.x,Ve.nativeEvent.y,ve&&ve.uri,W),Ve.preventDefault()},key:ve.uri.toString(),onMouseUp:Ve=>{Ve.nativeEvent.which===2&&(Ve.preventDefault(),Ve.stopPropagation(),W.close(ve.uri))},onMouseDown:Ve=>{Ve.nativeEvent.which===1&&W.open(ve.uri,{focus:!0})},"data-uri":ve.uri.toString(),onDragOver:Ve=>{Ve.preventDefault(),Ve.stopPropagation(),Ze&&Ze.classList.add(s.default.kt_on_drag_over)},onDragLeave:Ve=>{Ze&&Ze.classList.remove(s.default.kt_on_drag_over)},onDrop:Ve=>{Ze&&Ze.classList.remove(s.default.kt_on_drag_over),te&&te(Ve,Ne,ve)},onDoubleClick:Ve=>{W.pinPreviewed(ve.uri)},ref:Ve=>Ze=Ve,onDragStart:Ve=>{Ve.dataTransfer.setData("uri",ve.uri.toString()),Ve.dataTransfer.setData("uri-source-group",W.name)}},Ge(ve,W.currentResource===ve))}),ae&&o.default.createElement(e.EditorActions,{className:s.default.kt_editor_wrap_mode_action,ref:R,group:W}))};return o.default.createElement("div",{id:p.VIEW_CONTAINERS.EDITOR_TABS,className:P},o.default.createElement("div",{className:U,ref:Z,onDragOver:ie,onDragLeave:ne,onDrop:de,onDoubleClick:Ie},ae?o.default.createElement("div",{className:s.default.kt_editor_wrap_container},re()):o.default.createElement(I.Scrollbars,{tabBarMode:!0,forwardedRef:me=>me?N.current=me:null,className:s.default.kt_editor_tabs_scroll},re())),!ae&&o.default.createElement(e.EditorActions,{ref:R,group:W}))};e.Tabs=v,e.EditorActions=(0,o.forwardRef)((W,N)=>{const Z=(0,g.useDesignStyles)(s.default.editor_actions,"editor_actions"),{group:y,className:E}=W,R=(0,o.useCallback)(()=>{var X,Q;return y.currentResource?[y.currentResource.uri,y,((X=y.currentOrPreviousFocusedEditor)===null||X===void 0?void 0:X.currentUri)||((Q=y.currentEditor)===null||Q===void 0?void 0:Q.currentUri)]:void 0},[y]),A=(0,m.useInjectable)(r.IEditorActionRegistry),w=(0,m.useInjectable)(d.WorkbenchEditorService),F=(0,m.useInjectable)(G.LayoutViewSizeConfig),V=A.getMenu(y),[Y,_]=(0,o.useState)(w.currentEditorGroup===y),[H,S]=(0,o.useState)(R());return(0,o.useEffect)(()=>{const X=new g.DisposableCollection;return X.push(w.onDidCurrentEditorGroupChanged(()=>{_(w.currentEditorGroup===y)})),X.push(w.onActiveResourceChange(()=>{S(R())})),X.push(y.onDidEditorGroupTabChanged(()=>{S(R())})),()=>{X.dispose()}},[y]),o.default.createElement("div",{ref:N,className:(0,a.default)(Z,E),style:{height:F.editorTabsHeight}},o.default.createElement(u.InlineMenuBar,{menus:V,context:H,regroup:(X,Q)=>Y?[X,Q]:[[],Q]}))});function f(W){(this.offsetWidth+this.scrollLeft+W.deltaX>this.scrollWidth||this.scrollLeft+W.deltaX<0)&&W.preventDefault()}},82196:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.IEditorTabService=e.ResoucesOfActiveComponentChangedEvent=e.CodeEditorDidVisibleEvent=e.EditorComponentDisposeEvent=e.ResourceOpenTypeChangedEvent=e.IEditorFeatureRegistry=e.IBreadCrumbService=e.CompareResult=e.ICompareService=e.IEditorActionRegistry=e.EditorDecorationTypeRemovedEvent=e.EditorDecorationChangeEvent=e.EditorDecorationProviderRegistrationEvent=e.RegisterEditorSideComponentEvent=e.EditorGroupsResetSizeEvent=e.EditorGroupIndexChangedEvent=e.EditorConfigurationChangedEvent=e.EditorVisibleChangeEvent=e.EditorSelectionChangeEvent=e.IEditorDecorationCollectionService=e.EditorGroupFileDropEvent=e.EditorActiveResourceStateChangedEvent=e.EditorGroupChangeEvent=e.EditorGroupDisposeEvent=e.EditorGroupCloseEvent=e.EditorGroupOpenEvent=e.GridResizeEvent=e.BrowserEditorContribution=e.EditorComponentRegistry=e.RegisterEditorComponentEvent=e.RegisterEditorComponentResolverEvent=e.EditorComponentRenderMode=void 0;const n=t(85608),a=t(41869);n.__exportStar(t(23418),e);var o;(function(V){V[V.ONE_PER_RESOURCE=1]="ONE_PER_RESOURCE",V[V.ONE_PER_GROUP=2]="ONE_PER_GROUP",V[V.ONE_PER_WORKBENCH=3]="ONE_PER_WORKBENCH"})(o=e.EditorComponentRenderMode||(e.EditorComponentRenderMode={}));class I extends a.BasicEvent{}e.RegisterEditorComponentResolverEvent=I;class g extends a.BasicEvent{}e.RegisterEditorComponentEvent=g;class u{}e.EditorComponentRegistry=u,e.BrowserEditorContribution=Symbol("BrowserEditorContribution");class G extends a.BasicEvent{}e.GridResizeEvent=G;class p extends a.BasicEvent{}e.EditorGroupOpenEvent=p;class b extends a.BasicEvent{}e.EditorGroupCloseEvent=b;class m extends a.BasicEvent{}e.EditorGroupDisposeEvent=m;class d extends a.BasicEvent{}e.EditorGroupChangeEvent=d;class s extends a.BasicEvent{}e.EditorActiveResourceStateChangedEvent=s;class l extends a.BasicEvent{}e.EditorGroupFileDropEvent=l,e.IEditorDecorationCollectionService=Symbol("IEditorDecorationCollectionService");class r extends a.BasicEvent{}e.EditorSelectionChangeEvent=r;class c extends a.BasicEvent{}e.EditorVisibleChangeEvent=c;class h extends a.BasicEvent{}e.EditorConfigurationChangedEvent=h;class v extends a.BasicEvent{}e.EditorGroupIndexChangedEvent=v;class f extends a.BasicEvent{}e.EditorGroupsResetSizeEvent=f;class W extends a.BasicEvent{}e.RegisterEditorSideComponentEvent=W;class N extends a.BasicEvent{}e.EditorDecorationProviderRegistrationEvent=N;class Z extends a.BasicEvent{}e.EditorDecorationChangeEvent=Z;class y extends a.BasicEvent{}e.EditorDecorationTypeRemovedEvent=y,e.IEditorActionRegistry=Symbol("IEditorActionRegistry"),e.ICompareService=Symbol("ICompareService");var E;(function(V){V.revert="revert",V.accept="accept",V.cancel="cancel"})(E=e.CompareResult||(e.CompareResult={})),e.IBreadCrumbService=Symbol("IBreadScrumbService"),e.IEditorFeatureRegistry=Symbol("IEditorFeatureRegistry");class R extends a.BasicEvent{}e.ResourceOpenTypeChangedEvent=R;class A extends a.BasicEvent{}e.EditorComponentDisposeEvent=A;class w extends a.BasicEvent{}e.CodeEditorDidVisibleEvent=w;class F extends a.BasicEvent{}e.ResoucesOfActiveComponentChangedEvent=F,e.IEditorTabService=Symbol("IEditorTabService")},17878:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.UntitledSchemeResourceProvider=e.UntitledSchemeDocumentProvider=e.UntitledDocumentIdCounter=void 0;const n=t(85608),a=t(76003),o=t(41869),I=t(72665),g=t(23418),u=t(96689);let G=class{constructor(){this._id=1}get id(){return this._id++}};G=n.__decorate([(0,a.Injectable)()],G),e.UntitledDocumentIdCounter=G;let p=class{constructor(){this._onDidChangeContent=new o.Emitter,this.onDidChangeContent=this._onDidChangeContent.event}handlesScheme(d){return d===o.Schemes.untitled}async provideEncoding(d){return this.preferenceService.get("files.encoding",void 0,d.toString(),(0,o.getLanguageIdFromMonaco)(d))||"utf8"}async provideEOL(d){const s=await this.applicationService.getBackendOS(),l=this.preferenceService.get("files.eol","auto",d.toString(),(0,o.getLanguageIdFromMonaco)(d));return l!=="auto"?l:s===o.OperatingSystem.Windows?`\r
|
|
27683
27683
|
`:`
|
|
27684
27684
|
`}async provideEditorDocumentModelContent(d,s){return""}isReadonly(d){return!1}isAlwaysDirty(d){return!0}disposeEvenDirty(d){return!0}closeAutoSave(d){return!0}async saveDocumentModel(d,s,l,r,c,h=!1){const{name:v}=d.getParsedQuery(),f=d.path.toString()!=="/"?o.path.dirname(d.path.toString()):this.appConfig.workspaceDir,W=await this.commandService.tryExecuteCommand("file.save",{showNameInput:!0,defaultFileName:v||d.displayName,defaultUri:o.URI.file(o.isWindows?f.replaceAll("\\","/"):f)});return W&&(await this.editorDocumentModelService.saveEditorDocumentModel(W,s,l,r,c,h),await this.workbenchEditorService.open(W,{preview:!1,focus:!0,replace:!0,forceClose:!0})),{state:o.SaveTaskResponseState.SUCCESS}}onDidDisposeModel(){}};n.__decorate([(0,a.Autowired)(u.IEditorDocumentModelService),n.__metadata("design:type",Object)],p.prototype,"editorDocumentModelService",void 0),n.__decorate([(0,a.Autowired)(g.WorkbenchEditorService),n.__metadata("design:type",g.WorkbenchEditorService)],p.prototype,"workbenchEditorService",void 0),n.__decorate([(0,a.Autowired)(o.CommandService),n.__metadata("design:type",Object)],p.prototype,"commandService",void 0),n.__decorate([(0,a.Autowired)(o.AppConfig),n.__metadata("design:type",Object)],p.prototype,"appConfig",void 0),n.__decorate([(0,a.Autowired)(o.IApplicationService),n.__metadata("design:type",Object)],p.prototype,"applicationService",void 0),n.__decorate([(0,a.Autowired)(o.PreferenceService),n.__metadata("design:type",Object)],p.prototype,"preferenceService",void 0),p=n.__decorate([(0,a.Injectable)()],p),e.UntitledSchemeDocumentProvider=p;let b=class extends o.WithEventBus{constructor(){super(...arguments),this.scheme=o.Schemes.untitled}provideResource(d){const{name:s}=d.getParsedQuery();return{name:s||d.displayName,uri:d,icon:"",metadata:null}}async shouldCloseResourceWithoutConfirm(d){const s=this.documentModelService.getModelReference(d.uri,"close-resource-check");return!!(s&&s.instance.dirty)}async close(d,s){const l=this.documentModelService.getModelReference(d.uri,"close-resource-check");if(!l)return!1;if(s===g.AskSaveResult.SAVE){const r=await l.instance.save();return l.dispose(),r}else return s===g.AskSaveResult.REVERT?(await l.instance.revert(),l.dispose(),!0):!s||s===g.AskSaveResult.CANCEL?(l.dispose(),!1):!0}async shouldCloseResource(d){const s=this.documentModelService.getModelReference(d.uri,"close-resource-check");if(!s||!s.instance.dirty)return s&&s.dispose(),!0;const l={[(0,o.localize)("file.prompt.dontSave","Don't Save")]:g.AskSaveResult.REVERT,[(0,o.localize)("file.prompt.save","Save")]:g.AskSaveResult.SAVE,[(0,o.localize)("file.prompt.cancel","Cancel")]:g.AskSaveResult.CANCEL},r=await this.dialogService.open((0,o.formatLocalize)("saveChangesMessage",d.name),o.MessageType.Info,Object.keys(l));return await this.close(d,l[r])}};n.__decorate([(0,a.Autowired)(I.IDialogService),n.__metadata("design:type",Object)],b.prototype,"dialogService",void 0),n.__decorate([(0,a.Autowired)(u.IEditorDocumentModelService),n.__metadata("design:type",Object)],b.prototype,"documentModelService",void 0),b=n.__decorate([(0,a.Injectable)()],b),e.UntitledSchemeResourceProvider=b},33835:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CodeEditor=void 0;const a=t(85608).__importDefault(t(14041)),o=t(41869),I=t(23418),g=t(96689),u=G=>{const p=a.default.useRef(),b=(0,o.useInjectable)(I.EditorCollectionService),m=(0,o.useInjectable)(g.IEditorDocumentModelService),[d,s]=a.default.useState(void 0),[l,r]=a.default.useState(void 0),[c,h]=a.default.useState(void 0),[v,f]=a.default.useState(void 0);let W=!1;return a.default.useEffect(()=>{if(p.current){d&&d.dispose();const N=b.createCodeEditor(p.current,Object.assign({automaticLayout:!0},G.options));s(N),l&&N.open(l)}return()=>{W=!0,d&&d.dispose(),l&&l.dispose()}},[p.current]),G&&d&&G.editorRef&&G.editorRef(d),c&&v!==c&&(f(c),m.createModelReference(new o.URI(c),"editor-react-component").then(N=>{l&&l.dispose(),!W&&N.instance.uri.toString()===c?r(N):N.dispose()})),l&&d&&d.currentDocumentModel!==l.instance&&d.open(l),G.uri&&G.uri.toString()!==c&&h(G.uri.toString()),a.default.createElement("div",Object.assign({ref:N=>N&&(p.current=N)},G))};e.CodeEditor=u},50674:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.useUpdateOnGroupTabChange=void 0;const n=t(41869);function a(o){return(0,n.useUpdateOnEvent)(o.onDidEditorGroupTabChanged,[o])}e.useUpdateOnGroupTabChange=a},6670:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.EditorSuggestWidgetContribution=void 0;const n=t(85608),a=t(76003),o=t(41869),I=t(43718),g=t(38144);let u=class{contribute(p){const b=new o.DisposableCollection,m=p.monacoEditor.getContribution(g.SuggestController.ID);if(m&&m.widget&&m.widget.value){const d=m.widget.value;b.push(d.onDidSelect(s=>{this.eventBus.fire(new o.SuggestEvent({eventType:"onDidSelect",data:s}))})),b.push(d.onDidHide(s=>{this.eventBus.fire(new o.SuggestEvent({eventType:"onDidHide",data:s}))})),b.push(d.onDidShow(s=>{this.eventBus.fire(new o.SuggestEvent({eventType:"onDidShow",data:s}))})),b.push(d.onDidFocus(s=>{this.eventBus.fire(new o.SuggestEvent({eventType:"onDidFocus",data:s}))})),d&&d._setDetailsVisible&&d._setDetailsVisible(this.preferenceService.get("editor.suggest.details.visible",!0))}return b}};n.__decorate([(0,a.Autowired)(I.IEventBus),n.__metadata("design:type",Object)],u.prototype,"eventBus",void 0),n.__decorate([(0,a.Autowired)(o.PreferenceService),n.__metadata("design:type",Object)],u.prototype,"preferenceService",void 0),u=n.__decorate([(0,a.Injectable)()],u),e.EditorSuggestWidgetContribution=u},67903:(L,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.EditorTopPaddingContribution=void 0;class t{contribute(a){return a.monacoEditor.onDidChangeModel(()=>{a.monacoEditor.changeViewZones(o=>{o.addZone({afterLineNumber:0,domNode:document.createElement("div"),heightInPx:0})})})}}e.EditorTopPaddingContribution=t},51553:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.EditorGroup=e.WorkbenchEditorServiceImpl=void 0;const n=t(85608),a=t(83794),o=t(76003),I=t(41869),g=t(91830),u=t(75524),G=t(43718),p=n.__importStar(t(20868)),b=t(72665),m=t(23418),d=t(96689),s=t(76759),l=t(47049),r=t(82196),c=t(17878),h=10,v=y=>!!(y.supportsRevive&&!y.deleted);let f=class extends G.WithEventBus{constructor(){super(),this.editorGroups=[],this._onDidEditorGroupsChanged=new G.Emitter,this.onDidEditorGroupsChanged=this._onDidEditorGroupsChanged.event,this._sortedEditorGroups=[],this._onActiveResourceChange=new G.Emitter,this.onActiveResourceChange=this._onActiveResourceChange.event,this._onActiveEditorUriChange=new G.Emitter,this.onActiveEditorUriChange=this._onActiveEditorUriChange.event,this._onCursorChange=new G.Emitter,this.onCursorChange=this._onCursorChange.event,this._onDidCurrentEditorGroupChanged=new G.Emitter,this.onDidCurrentEditorGroupChanged=this._onDidCurrentEditorGroupChanged.event,this._restoring=!0,this.contributionsReady=new G.Deferred,this.untitledCloseIndex=[],this.gridReady=!1,this._onDidGridReady=new G.Emitter,this.onDidGridReady=this._onDidGridReady.event,this.editorGroupIdGen=0,this.initialize()}setEditorContextKeyService(E){this.editorContextKeyService=E}setCurrentGroup(E){var R;if(E){if(this._currentEditorGroup===E)return;this._currentEditorGroup=E,this._onActiveResourceChange.fire(E.currentResource),this.eventBus.fire(new r.EditorActiveResourceStateChangedEvent({resource:E.currentResource,openType:E.currentOpenType,editorUri:(R=this.currentEditor)===null||R===void 0?void 0:R.currentUri})),this._onDidCurrentEditorGroupChanged.fire(this._currentEditorGroup)}}onEditorGroupChangeEvent(E){var R;E.payload.group===this.currentEditorGroup&&this.eventBus.fire(new r.EditorActiveResourceStateChangedEvent({resource:E.payload.newResource,openType:E.payload.newOpenType,editorUri:(R=this.currentEditor)===null||R===void 0?void 0:R.currentUri}))}getAllOpenedUris(){const E=[];for(const R of this.editorGroups)for(const A of R.resources)E.findIndex(F=>F.isEqual(A.uri))===-1&&E.push(A.uri);return E}async getAllOpenedDocuments(){const E=[];for(const R of this.editorGroups)for(const A of R.resources){if(A.uri.scheme!=="file")continue;if(E.findIndex(F=>F.uri.isEqual(A.uri))===-1){const F=await R.getDocumentModelRef(A.uri);F&&E.push(F.instance)}}return E}async saveAll(E,R){for(const A of this.editorGroups)await A.saveAll(E,R)}hasDirty(){for(const E of this.editorGroups)if(E.hasDirty())return!0;return!1}calcDirtyCount(){const E=new Set;return this.editorGroups.reduce((R,A)=>R+A.calcDirtyCount(E),0)}createEditorGroup(){const E=this.injector.get(W,[this.generateRandomEditorGroupName(),this.editorGroupIdGen++]);this.editorGroups.push(E);const R=new G.Disposable(E.onDidEditorGroupBodyChanged(()=>{E===this.currentEditorGroup&&(!E.currentOpenType&&E.currentResource||this._onActiveResourceChange.fire(E.currentResource))}),E.onDidEditorFocusChange(()=>{var w;E===this.currentEditorGroup&&(!E.currentOpenType&&E.currentResource||this._onActiveEditorUriChange.fire((w=E.currentOrPreviousFocusedEditor)===null||w===void 0?void 0:w.currentUri))}));E.addDispose({dispose:()=>{R.dispose()}});const A=E.onDidEditorGroupTabChanged(()=>{this.saveOpenedResourceState()});return E.addDispose({dispose:()=>{A.dispose()}}),E.onCurrentEditorCursorChange(w=>{this._currentEditorGroup===E&&this._onCursorChange.fire(w)}),E}generateRandomEditorGroupName(){let E=(0,G.makeRandomHexString)(5);for(;this.editorGroups.findIndex(R=>R.name===E)!==-1;)E=(0,G.makeRandomHexString)(5);return E}initialize(){return this.initializing||(this.initializing=this.doInitialize()),this.initializing}async doInitialize(){this.openedResourceState=await this.initializeState(),await this.contributionsReady.promise,await this.restoreState(),this._currentEditorGroup=this.editorGroups[0]}async initializeState(){return await this.getStorage(G.STORAGE_NAMESPACE.WORKBENCH)}get currentEditor(){return this.currentEditorGroup&&this.currentEditorGroup.currentEditor}get currentCodeEditor(){return this.currentEditorGroup.currentCodeEditor}get currentEditorGroup(){return this._currentEditorGroup}get currentOrPreviousFocusedEditor(){return this.currentEditorGroup&&this.currentEditorGroup.currentOrPreviousFocusedEditor}async open(E,R){await this.initialize();let A=this.currentEditorGroup,w;if(R&&typeof R.groupIndex<"u"?w=R.groupIndex:R&&R.relativeGroupIndex&&(w=this.currentEditorGroup.index+R.relativeGroupIndex),typeof w=="number"&&w>=0){if(w>=this.editorGroups.length)return A.open(E,Object.assign({},R,{split:m.EditorGroupSplitAction.Right}));A=this.sortedEditorGroups[w]||this.currentEditorGroup}return A.open(E,R)}async openUris(E){await this.initialize(),await this.currentEditorGroup.openUris(E)}getEditorGroup(E){return this.editorGroups.find(R=>R.name===E)}get currentResource(){return this.currentEditorGroup?this.currentEditorGroup.currentResource:null}removeGroup(E){const R=this.editorGroups.findIndex(A=>A===E);if(R!==-1){if(this.editorGroups.length===1)return;this.editorGroups.splice(R,1),this.currentEditorGroup===E&&this.setCurrentGroup(this.editorGroups[0]);for(let A=R;A<this.editorGroups.length;A++)this.eventBus.fire(new r.EditorGroupIndexChangedEvent({group:this.editorGroups[A],index:A}))}}async saveOpenedResourceState(){if(this._restoring)return;const E=this.topGrid.serialize();await this.openedResourceState.set("grid",E)}prepareContextKeyService(){const E=A=>{let w=null;const F=this.documentModelManager.getModelReference(A,"resourceContextKey");return F&&(w=F.instance.languageId,F.dispose()),w},R=new g.ResourceContextKey(this.editorContextKeyService,A=>{const w=E(A);return w||E(A)});this.onActiveResourceChange(A=>{this.currentEditor&&this.currentEditor.currentUri?R.set(this.currentEditor.currentUri):A?R.set(A.uri):R.reset()}),this.currentEditor&&this.currentEditor.currentUri?R.set(this.currentEditor.currentUri):this.currentResource?R.set(this.currentResource.uri):R.reset()}onDomCreated(E){this._domNode=E,this.editorContextKeyService&&this.editorContextKeyService.attachToDomNode(E)}notifyGroupChanged(){this._sortedEditorGroups=void 0,this._onDidEditorGroupsChanged.fire()}async restoreState(){let E={editorGroup:{uris:[],previewIndex:-1}};E=this.openedResourceState.get("grid",E),this.topGrid=new l.EditorGrid,this.topGrid.onDidGridAndDesendantStateChange(()=>{this._sortedEditorGroups=void 0,this._onDidEditorGroupsChanged.fire()});const R=[],A=this.topGrid.deserialize(E,()=>this.createEditorGroup(),R).then(()=>{this.topGrid.children.length===0&&!this.topGrid.editorGroup&&this.topGrid.setEditorGroup(this.createEditorGroup()),this.gridReady=!0,this._onDidGridReady.fire(),this.notifyGroupChanged()});return Promise.all(R).then(()=>{this._restoring=!1;for(const w of this.contributions.getContributions())w.onDidRestoreState&&w.onDidRestoreState()}),A}async closeAll(E,R){for(const A of this.editorGroups.slice(0))E?await A.close(E,{force:R}):await A.closeAll()}async closeAllOnlyConfirmOnce(){const E=[];for(const H of this.editorGroups)for(const S of H.resources)E.push(S);const A=(await Promise.all(E.map(async H=>({shouldClose:await this.resourceService.shouldCloseResourceWithoutConfirm(H),resource:H})))).filter(H=>H.shouldClose);if(A.length===0)return!1;const w={[(0,G.localize)("file.prompt.dontSave","Don't Save")]:r.AskSaveResult.REVERT,[(0,G.localize)("file.prompt.save","Save")]:r.AskSaveResult.SAVE,[(0,G.localize)("file.prompt.cancel","Cancel")]:r.AskSaveResult.CANCEL};let V=A.slice(0,h).map(H=>H.resource.name).join("\u3001");A.length>h&&(A.length-h===1?V+=(0,G.localize)("file.prompt.more.one"):V+=(0,G.formatLocalize)("file.prompt.more.number",A.length-h));const Y=await this.dialogService.open((0,I.toMarkdown)((0,G.formatLocalize)("saveNFilesChangesMessage",A.length,V),this.openner),G.MessageType.Info,Object.keys(w)),_=w[Y];return _===r.AskSaveResult.SAVE?(await Promise.all(A.map(H=>{var S,X;return(X=(S=this.resourceService).close)===null||X===void 0?void 0:X.call(S,H.resource,r.AskSaveResult.SAVE)})),!1):_===r.AskSaveResult.REVERT?(await Promise.all(A.map(H=>{var S,X;return(X=(S=this.resourceService).close)===null||X===void 0?void 0:X.call(S,H.resource,r.AskSaveResult.REVERT)})),!1):!0}async close(E,R){return this.closeAll(E,R)}get sortedEditorGroups(){return this._sortedEditorGroups||(this._sortedEditorGroups=[],this.topGrid.sortEditorGroups(this._sortedEditorGroups)),this._sortedEditorGroups}handleOnCloseUntitledResource(E){if(E.payload.resource.uri.scheme===G.Schemes.untitled){const{index:R}=E.payload.resource.uri.getParsedQuery();this.untitledCloseIndex.push(parseInt(R,10)),this.untitledCloseIndex.sort((A,w)=>A-w)}}createUntitledURI(){const E=this.untitledCloseIndex.shift()||this.untitledIndex.id;return new G.URI().withScheme(G.Schemes.untitled).withQuery(`name=Untitled-${E}&index=${E}`)}createUntitledResource(E={uri:this.createUntitledURI()}){return this.open(E.uri,Object.assign({preview:!1,focus:!0},E.resourceOpenOptions))}};n.__decorate([(0,o.Autowired)(o.INJECTOR_TOKEN),n.__metadata("design:type",o.Injector)],f.prototype,"injector",void 0),n.__decorate([(0,o.Autowired)(m.ResourceService),n.__metadata("design:type",m.ResourceService)],f.prototype,"resourceService",void 0),n.__decorate([(0,o.Autowired)(G.StorageProvider),n.__metadata("design:type",Function)],f.prototype,"getStorage",void 0),n.__decorate([(0,o.Autowired)(b.IDialogService),n.__metadata("design:type",Object)],f.prototype,"dialogService",void 0),n.__decorate([(0,o.Autowired)(I.IOpenerService),n.__metadata("design:type",Object)],f.prototype,"openner",void 0),n.__decorate([(0,o.Autowired)(r.BrowserEditorContribution),n.__metadata("design:type",Object)],f.prototype,"contributions",void 0),n.__decorate([(0,o.Autowired)(d.IEditorDocumentModelService),n.__metadata("design:type",Object)],f.prototype,"documentModelManager",void 0),n.__decorate([(0,o.Autowired)(),n.__metadata("design:type",c.UntitledDocumentIdCounter)],f.prototype,"untitledIndex",void 0),n.__decorate([(0,G.OnEvent)(r.EditorGroupChangeEvent),n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[r.EditorGroupChangeEvent]),n.__metadata("design:returntype",void 0)],f.prototype,"onEditorGroupChangeEvent",null),n.__decorate([(0,G.OnEvent)(r.EditorGroupCloseEvent),n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[r.EditorGroupCloseEvent]),n.__metadata("design:returntype",void 0)],f.prototype,"handleOnCloseUntitledResource",null),f=n.__decorate([(0,o.Injectable)(),n.__metadata("design:paramtypes",[])],f),e.WorkbenchEditorServiceImpl=f;let W=class extends G.WithEventBus{constructor(E,R){super(),this.name=E,this.groupId=R,this.openingPromise=new Map,this._onDidEditorFocusChange=this.registerDispose(new G.Emitter),this.onDidEditorFocusChange=this._onDidEditorFocusChange.event,this._onDidEditorGroupTabChanged=new G.Emitter,this.onDidEditorGroupTabChanged=this._onDidEditorGroupTabChanged.event,this._onDidEditorGroupTabOperation=new G.Emitter,this.onDidEditorGroupTabOperation=this._onDidEditorGroupTabOperation.event,this._onDidEditorGroupBodyChanged=new G.Emitter,this.onDidEditorGroupBodyChanged=this._onDidEditorGroupBodyChanged.event,this._onDidEditorGroupContentLoading=new G.Emitter,this.onDidEditorGroupContentLoading=this._onDidEditorGroupContentLoading.event,this.previewURI=null,this.resources=[],this.resourceStatus=new Map,this.cachedResourcesActiveOpenTypes=new Map,this.cachedResourcesOpenTypes=new Map,this.availableOpenTypes=[],this.activeComponents=new Map,this.activateComponentsProps=new Map,this.holdDocumentModelRefs=new Map,this.toDispose=[],this._prevDomHeight=0,this._prevDomWidth=0,this._codeEditorPendingLayout=!1,this._diffEditorPendingLayout=!1,this._mergeEditorPendingLayout=!1,this._onCurrentEditorCursorChange=new G.Emitter,this.onCurrentEditorCursorChange=this._onCurrentEditorCursorChange.event,this.resourceOpenHistory=[],this._domNode=null,this._diffEditorDomNode=null,this._diffEditorDomNodeAttached=!1,this._mergeEditorDomNode=null,this._mergeEditorDomNodeAttached=!1,this.codeEditorReady=new G.ReadyEvent,this.diffEditorReady=new G.ReadyEvent,this.diffEditorDomReady=new G.ReadyEvent,this.mergeEditorReady=new G.ReadyEvent,this.mergeEditorDomReady=new G.ReadyEvent,this._restoringState=!1,this.eventBus.on(I.ResizeEvent,A=>{A.payload.slotLocation===(0,I.getSlotLocation)("@opensumi/ide-editor",this.config.layoutConfig)&&this.doLayoutEditors()}),this.eventBus.on(r.GridResizeEvent,A=>{A.payload.gridId===this.grid.uid&&this.doLayoutEditors()}),this.eventBus.on(r.EditorComponentDisposeEvent,A=>{this.activeComponents.delete(A.payload),this.activateComponentsProps.delete(A.payload)}),this.listenToExplorerAutoRevealConfig()}listenToExplorerAutoRevealConfig(){this.explorerAutoRevealConfig=!!this.preferenceService.get("explorer.autoReveal"),this.disposables.push(this.preferenceService.onPreferenceChanged(E=>{E.preferenceName==="explorer.autoReveal"&&(this.explorerAutoRevealConfig=E.newValue)}))}attachDiffEditorDom(E){this._diffEditorDomNodeAttached||(this._diffEditorDomNode=E,this.diffEditorDomReady.ready(),this._diffEditorDomNodeAttached=!0)}attachMergeEditorDom(E){this._mergeEditorDomNodeAttached||(this._mergeEditorDomNode=E,this.mergeEditorDomReady.ready(),this._mergeEditorDomNodeAttached=!0)}attachToDom(E){this._domNode=E,E&&(this.contextKeyService.attachToDomNode(E),this.layoutEditors())}layoutEditors(){if(this._domNode){const E=this._domNode.offsetWidth,R=this._domNode.offsetHeight;(E!==this._prevDomWidth||R!==this._prevDomHeight)&&this.doLayoutEditors(),this._prevDomWidth=E,this._prevDomHeight=R}}doLayoutEditors(){this.codeEditor&&(this.currentOpenType&&this.currentOpenType.type===r.EditorOpenType.code?(this.codeEditor.layout(),this._codeEditorPendingLayout=!1):this._codeEditorPendingLayout=!0),this.diffEditor&&(this.currentOpenType&&this.currentOpenType.type===r.EditorOpenType.diff?(this.diffEditor.layout(),this._diffEditorPendingLayout=!1):this._diffEditorPendingLayout=!0),this.mergeEditor&&(this.currentOpenType&&this.currentOpenType.type===r.EditorOpenType.mergeEditor?this._mergeEditorPendingLayout=!1:this._mergeEditorPendingLayout=!0)}setContextKeys(){var E;if(!this._resourceContext){const R=A=>{let w=null;const F=this.documentModelManager.getModelReference(A,"resourceContextKey");return F&&(F&&(w=F.instance.languageId),F.dispose()),w};this._resourceContext=new g.ResourceContextKey(this.contextKeyService,A=>{const w=R(A);return w||R(A)}),this._diffResourceContextKey=new g.ResourceContextKey(this.contextKeyService,A=>{const w=R(A);return w||R(A)},"diffResource"),this._editorLangIDContextKey=this.contextKeyService.createKey("editorLangId",""),this._isInDiffEditorContextKey=this.contextKeyService.createKey("isInDiffEditor",!1),this._isInDiffRightEditorContextKey=this.contextKeyService.createKey("isInDiffRightEditor",!1),this._isInEditorComponentContextKey=this.contextKeyService.createKey("inEditorComponent",!1)}this.currentOrPreviousFocusedEditor&&this.currentOrPreviousFocusedEditor.currentUri?(this._resourceContext.set(this.currentOrPreviousFocusedEditor.currentUri),this.currentOrPreviousFocusedEditor.currentDocumentModel&&this._editorLangIDContextKey.set(this.currentOrPreviousFocusedEditor.currentDocumentModel.languageId)):this.currentEditor&&this.currentEditor.currentUri?(this._resourceContext.set(this.currentEditor.currentUri),this.currentEditor.currentDocumentModel&&this._editorLangIDContextKey.set(this.currentEditor.currentDocumentModel.languageId)):(this.currentResource?this._resourceContext.set(this.currentResource.uri):this._resourceContext.reset(),this._editorLangIDContextKey.reset()),this._isInDiffEditorContextKey.set(this.isDiffEditorMode()),this._isInDiffRightEditorContextKey.set(this.isDiffEditorMode()),this._isInEditorComponentContextKey.set(this.isComponentMode()),this.isDiffEditorMode()&&this._diffResourceContextKey.set((E=this.currentResource)===null||E===void 0?void 0:E.uri),this.updateContextKeyWhenDiffEditorChangesFocus()}updateContextKeyWhenDiffEditorChangesFocus(){if(this.updateContextKeyWhenEditorChangesFocusDisposer||!this.diffEditor)return;const E=()=>{this.currentFocusedEditor||(this.setContextKeys(),this._onDidEditorFocusChange.fire())};this.updateContextKeyWhenEditorChangesFocusDisposer=new G.Disposable(this.diffEditor.modifiedEditor.onFocus(()=>{this._currentOrPreviousFocusedEditor=this.diffEditor.modifiedEditor,this.setContextKeys(),this._onDidEditorFocusChange.fire()}),this.diffEditor.originalEditor.onFocus(()=>{this._currentOrPreviousFocusedEditor=this.diffEditor.originalEditor,this.setContextKeys(),this._onDidEditorFocusChange.fire()}),this.codeEditor.onFocus(()=>{this.codeEditor.currentUri&&this.locateInFileTree(this.codeEditor.currentUri),this._currentOrPreviousFocusedEditor=this.codeEditor,this.setContextKeys(),this._onDidEditorFocusChange.fire()}),this.codeEditor.onBlur(E),this.diffEditor.originalEditor.onBlur(E),this.diffEditor.modifiedEditor.onBlur(E)),this.addDispose(this.updateContextKeyWhenEditorChangesFocusDisposer)}get contextKeyService(){return this._contextKeyService||(this._contextKeyService=this.workbenchEditorService.editorContextKeyService.createScoped()),this._contextKeyService}get index(){return this.workbenchEditorService.sortedEditorGroups.indexOf(this)}onResourceDecorationChangeEvent(E){E.payload.decoration.dirty&&this.previewURI&&this.previewURI.isEqual(E.payload.uri)&&this.pinPreviewed(),this.resources.find(A=>A.uri.isEqual(E.payload.uri))&&this.notifyTabChanged()}oResourceOpenTypeChangedEvent(E){const R=E.payload;this.cachedResourcesOpenTypes.has(R.toString())&&this.cachedResourcesOpenTypes.delete(R.toString()),this.currentResource&&this.currentResource.uri.isEqual(R)&&(this._currentOpenType=null,this.notifyBodyChanged(),this.displayResourceComponent(this.currentResource,{}))}async onRegisterEditorComponentEvent(){if(this.currentResource){const E=this.currentResource,R=await this.editorComponentRegistry.resolveEditorComponent(E);this.currentResource===E&&(this.availableOpenTypes=R,this.cachedResourcesOpenTypes.set(E.uri.toString(),R))}}pinPreviewed(E){const R=this.previewURI;E===void 0?this.previewURI=null:this.previewURI&&this.previewURI.isEqual(E)&&(this.previewURI=null),R!==this.previewURI&&this.notifyTabChanged()}notifyTabChanged(){this._restoringState||this._onDidEditorGroupTabChanged.fire()}notifyBodyChanged(){this._onDidEditorGroupBodyChanged.fire()}notifyTabLoading(E){this._onDidEditorGroupContentLoading.fire(E)}get currentEditor(){return this.currentOpenType?this.currentOpenType.type===r.EditorOpenType.code?this.codeEditor:this.currentOpenType.type===r.EditorOpenType.diff?this.diffEditor.modifiedEditor:null:null}get currentOrPreviousFocusedEditor(){return this._currentOrPreviousFocusedEditor||this.currentEditor}get currentFocusedEditor(){if(this.currentOpenType){if(this.currentOpenType.type===r.EditorOpenType.code){if(this.codeEditor.monacoEditor.hasWidgetFocus())return this.codeEditor}else if(this.currentOpenType.type===r.EditorOpenType.diff){if(this.diffEditor.modifiedEditor.monacoEditor.hasTextFocus())return this.diffEditor.modifiedEditor;if(this.diffEditor.originalEditor.monacoEditor.hasTextFocus())return this.diffEditor.originalEditor;if(this.diffEditor.modifiedEditor.monacoEditor.hasWidgetFocus())return this.diffEditor.modifiedEditor;if(this.diffEditor.originalEditor.monacoEditor.hasWidgetFocus())return this.diffEditor.originalEditor}}return null}get currentCodeEditor(){return this.currentOpenType&&this.currentOpenType.type===r.EditorOpenType.code?this.codeEditor:null}createEditor(E){this.codeEditor=this.collectionService.createCodeEditor(E,{},{[I.ServiceNames.CONTEXT_KEY_SERVICE]:this.contextKeyService.contextKeyService}),setTimeout(()=>{this.codeEditor.layout()}),this.toDispose.push(this.codeEditor.onCursorPositionChanged(R=>{this._onCurrentEditorCursorChange.fire(R)})),this.toDispose.push(this.codeEditor.onSelectionsChanged(R=>{this.currentOpenType&&this.currentOpenType.type===r.EditorOpenType.code&&this.eventBus.fire(new r.EditorSelectionChangeEvent({group:this,resource:this.currentResource,selections:R.selections,source:R.source,editorUri:this.codeEditor.currentUri}))})),this.toDispose.push(this.codeEditor.onVisibleRangesChanged(R=>{this.currentOpenType&&this.currentOpenType.type===r.EditorOpenType.code&&this.eventBus.fire(new r.EditorVisibleChangeEvent({group:this,resource:this.currentResource,visibleRanges:R,editorUri:this.codeEditor.currentUri}))})),this.toDispose.push(this.codeEditor.onConfigurationChanged(()=>{this.currentOpenType&&this.currentOpenType.type===r.EditorOpenType.code&&this.eventBus.fire(new r.EditorConfigurationChangedEvent({group:this,resource:this.currentResource,editorUri:this.codeEditor.currentUri}))})),this.eventBus.fire(new r.CodeEditorDidVisibleEvent({groupName:this.name,type:r.EditorOpenType.code,editorId:this.codeEditor.getId()})),this.codeEditorReady.ready()}createMergeEditor(E){this.mergeEditor=this.collectionService.createMergeEditor(E,{},{[I.ServiceNames.CONTEXT_KEY_SERVICE]:this.contextKeyService.contextKeyService}),this.mergeEditorReady.ready()}createDiffEditor(E){this.diffEditor=this.collectionService.createDiffEditor(E,{},{[I.ServiceNames.CONTEXT_KEY_SERVICE]:this.contextKeyService.contextKeyService}),setTimeout(()=>{this.diffEditor.layout()}),this.addDiffEditorEventListeners(this.diffEditor.originalEditor,"original"),this.addDiffEditorEventListeners(this.diffEditor.modifiedEditor,"modified"),this.eventBus.fire(new r.CodeEditorDidVisibleEvent({groupName:this.name,type:r.EditorOpenType.diff,editorId:this.diffEditor.modifiedEditor.getId()})),this.eventBus.fire(new r.CodeEditorDidVisibleEvent({groupName:this.name,type:r.EditorOpenType.diff,editorId:this.diffEditor.originalEditor.getId()})),this.diffEditorReady.ready()}addDiffEditorEventListeners(E,R){this.toDispose.push(E.onSelectionsChanged(A=>{this.currentOpenType&&this.currentOpenType.type===r.EditorOpenType.diff&&this.eventBus.fire(new r.EditorSelectionChangeEvent({group:this,resource:this.currentResource,selections:A.selections,source:A.source,editorUri:G.URI.from(E.monacoEditor.getModel().uri),side:R}))})),this.toDispose.push(E.onVisibleRangesChanged(A=>{this.currentOpenType&&this.currentOpenType.type===r.EditorOpenType.diff&&this.eventBus.fire(new r.EditorVisibleChangeEvent({group:this,resource:this.currentResource,visibleRanges:A,editorUri:E.currentUri}))})),this.toDispose.push(E.onConfigurationChanged(()=>{this.currentOpenType&&this.currentOpenType.type===r.EditorOpenType.diff&&this.eventBus.fire(new r.EditorConfigurationChangedEvent({group:this,resource:this.currentResource,editorUri:E.currentUri}))}))}async split(E,R,A){var w,F,V;const Y=this.workbenchEditorService.createEditorGroup(),_=E===m.EditorGroupSplitAction.Left||E===m.EditorGroupSplitAction.Right?l.SplitDirection.Horizontal:l.SplitDirection.Vertical,H=E===m.EditorGroupSplitAction.Left||E===m.EditorGroupSplitAction.Top;if(this.grid.split(_,Y,H),A&&!A.scrollTop&&(A.scrollTop=(w=this.currentEditor)===null||w===void 0?void 0:w.monacoEditor.getScrollTop()),A&&!A.scrollLeft&&(A.scrollLeft=(F=this.currentEditor)===null||F===void 0?void 0:F.monacoEditor.getScrollLeft()),A&&!A?.range){const S=(V=this.currentCodeEditor)===null||V===void 0?void 0:V.monacoEditor.getSelection();S&&(A.range=new p.Range(S.startLineNumber,S.startColumn,S.endLineNumber,S.endColumn))}return Y.open(R,Object.assign(Object.assign({},A),{preview:!1,revealRangeInCenter:!1}))}async open(E,R={}){if(E.scheme===G.Schemes.file&&this.recentFilesManager.setMostRecentlyOpenedFile(E.withoutFragment().toString()),R&&R.split)return this.split(R.split,E,Object.assign({},R,{split:void 0,preview:!1}));if(!this.openingPromise.has(E.toString())){const w=this.doOpen(E,R);this.openingPromise.set(E.toString(),w),w.then(()=>{this.openingPromise.delete(E.toString())},()=>{this.openingPromise.delete(E.toString())})}return this.preferenceService.get("editor.previewMode")&&((0,G.isUndefinedOrNull)(R.preview)?!0:R.preview)||this.openingPromise.get(E.toString()).then(()=>{this.pinPreviewed(E)}),this.openingPromise.get(E.toString())}async pin(E){return this.pinPreviewed(E)}async doOpen(E,R={}){var A,w,F;if(!this.resourceService.handlesUri(E))return this.openerService.open(E),!1;let V;try{const Y=this.preferenceService.get("editor.previewMode")&&((0,G.isUndefinedOrNull)(R.preview)?!0:R.preview);if(this.currentResource&&this.currentResource.uri.isEqual(E)&&(!R.forceOpenType||R.forceOpenType.type===((A=this.currentOpenType)===null||A===void 0?void 0:A.type)))return R.focus&&this.currentEditor&&((w=this._domNode)===null||w===void 0||w.focus(),this.currentEditor.monacoEditor.focus()),R.range&&this.currentEditor&&(this.currentEditor.monacoEditor.setSelection(R.range),setTimeout(()=>{var _;(_=this.currentEditor)===null||_===void 0||_.monacoEditor.revealRangeInCenter(R.range,0)},0)),this.locationInTree(R,E),this.notifyTabChanged(),{group:this,resource:this.currentResource};{const _=this._currentOpenType,H=this._currentResource;let S=null,X=this.resources.find(M=>M.uri.toString()===E.toString());if(!X){if(X=await this.resourceService.getResource(E),!X)throw new Error("This uri cannot be opened!: "+E);if(X.deleted){if(R.deletedPolicy==="fail")throw new Error("resource deleted "+E);if(R.deletedPolicy==="skip")return!1}R&&R.label&&(X.name=R.label);let M=null;if(R&&R.index!==void 0&&R.index<this.resources.length)M=this.resources[R.index],this.resources.splice(R.index,0,X),S={type:"open",resource:X,index:R.index};else if(this.currentResource){const T=this.resources.indexOf(this.currentResource);this.resources.splice(T+1,0,X),S={type:"open",resource:X,index:T+1},M=this.currentResource}else this.resources.push(X),S={type:"open",resource:X,index:this.resources.length-1};Y&&(this.previewURI&&await this.close(this.previewURI,{treatAsNotCurrent:!0,force:R.forceClose}),this.previewURI=X.uri),R.replace&&M&&await this.close(M.uri,{treatAsNotCurrent:!0,force:R.forceClose})}if(R.backend)return this.notifyTabChanged(),!1;if(H&&this.resourceOpenHistory[this.resourceOpenHistory.length-1]!==H.uri){this.resourceOpenHistory.push(H.uri);const M=(F=this.currentCodeEditor)===null||F===void 0?void 0:F.getSelections();M&&M.length>0&&this.recentFilesManager.updateMostRecentlyOpenedFile(H.uri.toString(),{lineNumber:M[0].selectionStartLineNumber,column:M[0].selectionStartColumn})}this._currentOpenType=null,this._currentResource=X;const Q=this.reporterService.time(G.REPORT_NAME.EDITOR_REACTIVE);V=new G.Deferred,this.resourceStatus.set(X,V.promise);const O=setTimeout(()=>{this.notifyTabLoading(X)},60);this.notifyTabChanged(),this.notifyBodyChanged();try{await this.displayResourceComponent(X,R)}finally{S&&this._onDidEditorGroupTabOperation.fire(S)}return this._currentOrPreviousFocusedEditor=this.currentEditor,clearTimeout(O),V.resolve(),Q.timeEnd(X.uri.toString()),this._onDidEditorFocusChange.fire(),this.setContextKeys(),this.eventBus.fire(new r.EditorGroupOpenEvent({group:this,resource:X})),this.locationInTree(R,E),this.eventBus.fire(new r.EditorGroupChangeEvent({group:this,newOpenType:this.currentOpenType,newResource:this.currentResource,oldOpenType:_,oldResource:H})),{group:this,resource:X}}}catch(Y){return(0,G.getDebugLogger)().error(Y),V&&V.reject(),(0,s.isEditorError)(Y,s.EditorTabChangedError)||this.messageService.error((0,G.formatLocalize)("editor.failToOpen",E.displayName,Y.message),[],!0),!1}}locationInTree(E,R){E?.backend||(E?.disableNavigate||this.locateInFileTree(R),E.disableNavigateOnOpendEditor||this.locateInOpenedEditor(R))}locateInFileTree(E){this.explorerAutoRevealConfig&&this.commands.tryExecuteCommand(I.FILE_COMMANDS.LOCATION.id,E)}locateInOpenedEditor(E){this.explorerAutoRevealConfig&&this.commands.tryExecuteCommand(I.OPEN_EDITORS_COMMANDS.LOCATION.id,E)}async openUris(E){for(const R of E)await this.open(R)}async getDocumentModelRef(E){return this.holdDocumentModelRefs.has(E.toString())||this.holdDocumentModelRefs.set(E.toString(),await this.documentModelManager.createModelReference(E,"editor-group-"+this.name)),this.holdDocumentModelRefs.get(E.toString())}disposeDocumentRef(E){E.scheme==="diff"||(E.scheme==="mergeEditor"?this.mergeEditor.dispose():this.doDisposeDocRef(E))}doDisposeDocRef(E){this.holdDocumentModelRefs.has(E.toString())&&(this.holdDocumentModelRefs.get(E.toString()).dispose(),this.holdDocumentModelRefs.delete(E.toString()))}async openCodeEditor(E,R){this.resolveTabChanged(E,this.currentResource),await this.codeEditorReady.onceReady(async()=>{var A;const w=await this.getDocumentModelRef(E.uri);if(await this.codeEditor.open(w),R.range){const F=new p.Range(R.range.startLineNumber,R.range.startColumn,R.range.endLineNumber,R.range.endColumn);this.codeEditor.monacoEditor.setSelection(F),R.revealRangeInCenter&&setTimeout(()=>{this.codeEditor.monacoEditor.revealRangeInCenter(F,1)})}if(queueMicrotask(()=>{R.scrollTop&&this.codeEditor.monacoEditor.setScrollTop(R.scrollTop),R.scrollLeft&&this.codeEditor.monacoEditor.setScrollLeft(R.scrollLeft)}),R.focus){(A=this._domNode)===null||A===void 0||A.focus();const F=this.eventBus.on(r.CodeEditorDidVisibleEvent,V=>{var Y;if(V.payload.groupName===this.name&&V.payload.type===r.EditorOpenType.code){if(F.dispose(),this.disposed||this!==this.workbenchEditorService.currentEditorGroup)return;if(this.currentEditor===this.codeEditor&&(!((Y=this.codeEditor.currentUri)===null||Y===void 0)&&Y.isEqual(E.uri)))try{this.codeEditor.focus()}catch{}}})}w.instance.dirty&&this.pinPreviewed(E.uri)})}async openDiffEditor(E,R){this.diffEditor||await this.diffEditorDomReady.onceReady(()=>{var V;const Y=document.createElement("div");(V=this._diffEditorDomNode)===null||V===void 0||V.appendChild(Y),this.createDiffEditor(Y)});const A=E,[w,F]=await Promise.all([this.getDocumentModelRef(A.metadata.original),this.getDocumentModelRef(A.metadata.modified)]);await this.diffEditorReady.onceReady(async()=>{var V;if(!(!w||!F)&&(await this.diffEditor.compare(w,F,R,E.uri),R.focus)){(V=this._domNode)===null||V===void 0||V.focus();const Y=this.eventBus.on(r.CodeEditorDidVisibleEvent,_=>{if(_.payload.groupName===this.name&&_.payload.type===r.EditorOpenType.diff){if(Y.dispose(),this.disposed||this!==this.workbenchEditorService.currentEditorGroup)return;if(this.currentEditor===this.diffEditor.modifiedEditor)try{this.diffEditor.focus()}catch{}}})}})}async openMergeEditor(E){const{metadata:R}=E;if(!R)return;this.mergeEditor||await this.mergeEditorDomReady.onceReady(()=>{var O;const M=document.createElement("div");(O=this._mergeEditorDomNode)===null||O===void 0||O.appendChild(M),this.createMergeEditor(M)});const{ancestor:A,input1:w,input2:F,output:V}=R,Y=u.MergeEditorInputData.from(w),_=u.MergeEditorInputData.from(F),[H,S,X,Q]=await Promise.all([this.getDocumentModelRef(G.URI.parse(A)),this.getDocumentModelRef(Y.uri),this.getDocumentModelRef(G.URI.parse(V)),this.getDocumentModelRef(_.uri)]);await this.mergeEditorReady.onceReady(async()=>{await this.mergeEditor.open({ancestor:{uri:G.URI.parse(R.ancestor),textModel:H.instance.getMonacoModel(),baseContent:H.instance.baseContent||""},input1:Y.setTextModel(S.instance.getMonacoModel()),input2:_.setTextModel(Q.instance.getMonacoModel()),output:{uri:G.URI.parse(R.output),textModel:X.instance.getMonacoModel()}})})}async openCustomEditor(E,R){const A=this.editorComponentRegistry.getEditorComponent(R),w=this.editorComponentRegistry.getEditorInitialProps(R);if(A){if(this.activateComponentsProps.set(A,w),A.renderMode===r.EditorComponentRenderMode.ONE_PER_RESOURCE){const F=this.activeComponents.get(A)||[];F.findIndex(Y=>Y.uri.toString()===E.uri.toString())===-1&&F.push(E),this.activeComponents.set(A,F)}else if(A.renderMode===r.EditorComponentRenderMode.ONE_PER_GROUP)this.activeComponents.set(A,[E]);else if(A.renderMode===r.EditorComponentRenderMode.ONE_PER_WORKBENCH){const F=[];this.workbenchEditorService.editorGroups.forEach(V=>{if(V===this)return;const Y=V.resources.find(_=>_.uri.isEqual(E.uri));Y&&F.push(V.close(Y.uri))}),await Promise.all(F).catch((0,G.getDebugLogger)().error),this.activeComponents.set(A,[E])}}else throw new Error("Cannot find Editor Component with id: "+R);this._onCurrentEditorCursorChange.fire({position:null,selectionLength:0})}async displayResourceComponent(E,R){R.revealRangeInCenter===void 0&&(R.revealRangeInCenter=!0);const A=E,w=await this.resolveOpenType(E,R);if(w){const{activeOpenType:F,openTypes:V}=w;switch(this.availableOpenTypes=V,R.preserveFocus&&(R.focus=!1),F.type){case r.EditorOpenType.code:await this.openCodeEditor(E,R);break;case r.EditorOpenType.diff:await this.openDiffEditor(E,R);break;case r.EditorOpenType.mergeEditor:await this.openMergeEditor(E);break;case r.EditorOpenType.component:await this.openCustomEditor(E,F.componentId);break;default:return}this.resolveTabChanged(A,this.currentResource),this._currentOpenType=F,this.notifyBodyChanged(),(!this._codeEditorPendingLayout&&F.type===r.EditorOpenType.code||!this._diffEditorPendingLayout&&F.type===r.EditorOpenType.diff||!this._mergeEditorPendingLayout&&F.type===r.EditorOpenType.mergeEditor)&&this.doLayoutEditors(),this.cachedResourcesActiveOpenTypes.set(E.uri.toString(),F)}}resolveTabChanged(E,R){if(E!==R)throw new s.EditorTabChangedError}getLastOpenType(E){return this.cachedResourcesActiveOpenTypes.get(E.uri.toString())}async resolveOpenType(E,R){const A=this.cachedResourcesOpenTypes.get(E.uri.toString())||await this.editorComponentRegistry.resolveEditorComponent(E),w=this.preferenceService.get("workbench.editorAssociations"),F=N(A,this.cachedResourcesActiveOpenTypes.get(E.uri.toString()),E,w,R.forceOpenType);return this.cachedResourcesOpenTypes.set(E.uri.toString(),A),{activeOpenType:F,openTypes:A}}async close(E,{treatAsNotCurrent:R,force:A}={}){const w=this.resources.findIndex(F=>F.uri.toString()===E.toString());if(w!==-1){const F=this.resources[w];if(!A&&!await this.shouldClose(F))return!1;if(this.resources.splice(w,1),this._onDidEditorGroupTabOperation.fire({type:"close",resource:F,index:w}),this.eventBus.fire(new r.EditorGroupCloseEvent({group:this,resource:F})),this.previewURI&&this.previewURI.isEqual(E)&&(this.previewURI=null),F===this.currentResource&&!R){let V;for(;this.resourceOpenHistory.length>0;)if(this.resources.findIndex(Y=>Y.uri===this.resourceOpenHistory[this.resourceOpenHistory.length-1])!==-1){V=this.resourceOpenHistory.pop();break}else this.resourceOpenHistory.pop();if(V)this.open(V);else{let Y=w;for(;Y>0&&!this.resources[Y];)Y--;this.resources[Y]?this.open(this.resources[Y].uri):this.backToEmpty()}}else this.notifyTabChanged();this.removeResouceFromActiveComponents(F),this.disposeDocumentRef(E)}return this.resources.length===0&&(this.grid.parent&&this.dispose(),this.availableOpenTypes=[]),!0}removeResouceFromActiveComponents(E){this.activeComponents.forEach((R,A)=>{const w=R.indexOf(E);w!==-1&&(R.splice(w,1),this.eventBus.fire(new r.ResoucesOfActiveComponentChangedEvent({component:A,resources:R})))})}async shouldClose(E){const R=this.workbenchEditorService.editorGroups.map(A=>A.resources);if(await this.resourceService.shouldCloseResource(E,R)){let A=0;for(const w of R)for(const F of w)if(F.uri.isEqual(E.uri)&&(A++,A>=2))break;return A<=1&&this.resourceService.disposeResource(E),!0}else return!1}backToEmpty(){const E=this._currentOpenType,R=this._currentResource;this._currentResource=null,this._currentOpenType=null,this.notifyTabChanged(),this.notifyBodyChanged(),this._currentOrPreviousFocusedEditor=null,this._onDidEditorFocusChange.fire(),this.eventBus.fire(new r.EditorGroupChangeEvent({group:this,newOpenType:this.currentOpenType,newResource:this.currentResource,oldOpenType:E,oldResource:R}))}async closeAll(){for(const R of this.resources)if(!await this.shouldClose(R))return!1;return this.resources.splice(0,this.resources.length).reverse().forEach((R,A)=>{this.clearResourceOnClose(R),this._onDidEditorGroupTabOperation.fire({type:"close",resource:R,index:A})}),this.activeComponents.clear(),this.workbenchEditorService.editorGroups.length>1&&this.dispose(),this.previewURI=null,this.backToEmpty(),!0}async closeSaved(){const E=this.resources.filter(R=>{const A=this.resourceService.getResourceDecoration(R.uri);if(!A||!A.dirty)return!0});for(const R of E)if(!await this.shouldClose(R))return;for(const R of E)await this.close(R.uri)}async closeToRight(E){const R=this.resources.findIndex(A=>A.uri.toString()===E.toString());if(R!==-1){const A=this.resources.slice(R+1);for(const w of A)if(!await this.shouldClose(w))return;this.resources.splice(R+1),A.reverse().forEach((w,F)=>{this._onDidEditorGroupTabOperation.fire({type:"close",resource:w,index:R+1+(A.length-1-F)})});for(const w of A)this.clearResourceOnClose(w);this.open(E)}}clearResourceOnClose(E){this.eventBus.fire(new r.EditorGroupCloseEvent({group:this,resource:E})),this.removeResouceFromActiveComponents(E)}async closeOthers(E){const R=this.resources.findIndex(A=>A.uri.toString()===E.toString());if(R!==-1){const A=this.resources.filter((F,V)=>V!==R);for(const F of A)if(!await this.shouldClose(F))return;const w=this.resources;this.resources=[this.resources[R]],A.reverse().forEach(F=>{this._onDidEditorGroupTabOperation.fire({type:"close",resource:F,index:w.indexOf(F)})});for(const F of A)this.clearResourceOnClose(F);await this.open(E)}}get currentResource(){return this._currentResource}get currentOpenType(){return this._currentOpenType}async changeOpenType(E){const R=this.availableOpenTypes.find(w=>w.type===E||w.componentId===E);if(!R||!this.currentResource||Z(R,this.currentOpenType))return;const A=this.currentOpenType;await this.displayResourceComponent(this.currentResource,{forceOpenType:R}),this.eventBus.fire(new r.EditorGroupChangeEvent({group:this,newOpenType:this.currentOpenType,newResource:this.currentResource,oldOpenType:A,oldResource:this.currentResource}))}async dropUri(E,R,A,w){if(R!==r.DragOverPosition.CENTER)await this.split((0,m.getSplitActionFromDragDrop)(R),E,{preview:!1,focus:!0});else if(!w)await this.open(E,{preview:!1,focus:!0});else{const F=this.resources.indexOf(w);if(F===-1)await this.open(E,{preview:!1,focus:!0});else{const V=this.resources.findIndex(Y=>Y.uri.toString()===E.toString());if(V===-1)await this.open(E,{index:F,preview:!1});else{const Y=this.resources[V];V>F?(this.resources.splice(V,1),this.resources.splice(F,0,Y),this._onDidEditorGroupTabOperation.fire({type:"move",resource:Y,oldIndex:V,index:F}),await this.open(E,{preview:!1})):V<F&&(this.resources.splice(F+1,0,Y),this.resources.splice(V,1),this._onDidEditorGroupTabOperation.fire({type:"move",resource:Y,oldIndex:V,index:F}),await this.open(E,{preview:!1}))}}}A&&(A!==this?await A.close(E):R!==r.DragOverPosition.CENTER&&await this.close(E))}gainFocus(){this.workbenchEditorService.setCurrentGroup(this)}focus(){this.gainFocus(),this.currentOpenType&&this.currentOpenType.type===r.EditorOpenType.code&&this.codeEditor.focus(),this.currentOpenType&&this.currentOpenType.type===r.EditorOpenType.diff&&this.diffEditor.focus()}dispose(){var E;(E=this.grid)===null||E===void 0||E.dispose(),this.workbenchEditorService.removeGroup(this),super.dispose(),this.codeEditor&&this.codeEditor.dispose(),this.diffEditor&&this.diffEditor.dispose(),this.toDispose.forEach(R=>R.dispose()),this.eventBus.fire(new r.EditorGroupDisposeEvent({group:this}))}getState(){const E=this.resources.filter(v).map(R=>R.uri.toString());return{uris:E,current:this.currentResource&&v(this.currentResource)?this.currentResource.uri.toString():void 0,previewIndex:this.previewURI?E.indexOf(this.previewURI.toString()):-1}}isCodeEditorMode(){return!!this.currentOpenType&&this.currentOpenType.type===r.EditorOpenType.code}isDiffEditorMode(){return!!this.currentOpenType&&this.currentOpenType.type===r.EditorOpenType.diff}isComponentMode(){return!!this.currentOpenType&&this.currentOpenType.type===r.EditorOpenType.component}async restoreState(E){this._restoringState=!0,this.previewURI=E.uris[E.previewIndex]?new G.URI(E.uris[E.previewIndex]):null,await Promise.all(E.uris.map(async A=>{await this.doOpen(new G.URI(A),{disableNavigate:!0,backend:!0,preview:!1,deletedPolicy:"skip"})}));let R;E.current?R=new G.URI(E.current):E.uris.length>0&&(R=new G.URI(E.uris[E.uris.length-1])),R&&(await this.open(R,{deletedPolicy:"skip"})||this.resources[0]&&await this.open(this.resources[0].uri)),this._restoringState=!1,this.notifyTabChanged()}async saveAll(E,R){for(const A of this.resources)!E&&A.uri.scheme===G.Schemes.untitled||await this.saveResource(A,R)}async saveResource(E,R=m.SaveReason.Manual){if(await this.saveByOpenType(E,R))return;const A=this.documentModelManager.getModelReference(E.uri);A&&(A.instance.dirty&&await A.instance.save(void 0,R),A.dispose())}async saveByOpenType(E,R){const A=this.cachedResourcesActiveOpenTypes.get(E.uri.toString());if(A&&A.saveResource)try{return await A.saveResource(E,R),!0}catch(w){this.logger.error(w)}return!1}async saveCurrent(E=m.SaveReason.Manual){const R=this.currentResource;if(R&&!await this.saveByOpenType(R,E)&&this.currentEditor)return this.currentEditor.save()}hasDirty(){for(const E of this.resources){const R=this.documentModelManager.getModelReference(E.uri);if(R){const A=R.instance.dirty;if(R.dispose(),A)return!0}}return!1}calcDirtyCount(E=new Set){let R=0;for(const A of this.resources){const w=this.documentModelManager.getModelReference(A.uri,"calc-dirty-count");if(!E.has(A.uri.toString())&&(E.add(A.uri.toString()),w)){const F=w.instance.dirty;w.dispose(),F&&(R+=1)}}return R}componentUndo(){const E=this.currentOpenType;E?.undo&&E.undo(this.currentResource)}componentRedo(){const E=this.currentOpenType;E?.redo&&E.redo(this.currentResource)}toJSON(){return{name:this.name}}};n.__decorate([(0,o.Autowired)(),n.__metadata("design:type",m.EditorCollectionService)],W.prototype,"collectionService",void 0),n.__decorate([(0,o.Autowired)(),n.__metadata("design:type",m.ResourceService)],W.prototype,"resourceService",void 0),n.__decorate([(0,o.Autowired)(),n.__metadata("design:type",r.EditorComponentRegistry)],W.prototype,"editorComponentRegistry",void 0),n.__decorate([(0,o.Autowired)(m.WorkbenchEditorService),n.__metadata("design:type",f)],W.prototype,"workbenchEditorService",void 0),n.__decorate([(0,o.Autowired)(d.IEditorDocumentModelService),n.__metadata("design:type",Object)],W.prototype,"documentModelManager",void 0),n.__decorate([(0,o.Autowired)(G.CommandService),n.__metadata("design:type",Object)],W.prototype,"commands",void 0),n.__decorate([(0,o.Autowired)(I.PreferenceService),n.__metadata("design:type",Object)],W.prototype,"preferenceService",void 0),n.__decorate([(0,o.Autowired)(I.RecentFilesManager),n.__metadata("design:type",I.RecentFilesManager)],W.prototype,"recentFilesManager",void 0),n.__decorate([(0,o.Autowired)(b.IMessageService),n.__metadata("design:type",Object)],W.prototype,"messageService",void 0),n.__decorate([(0,o.Autowired)(G.IReporterService),n.__metadata("design:type",Object)],W.prototype,"reporterService",void 0),n.__decorate([(0,o.Autowired)(I.AppConfig),n.__metadata("design:type",Object)],W.prototype,"config",void 0),n.__decorate([(0,o.Autowired)(I.IOpenerService),n.__metadata("design:type",Object)],W.prototype,"openerService",void 0),n.__decorate([(0,o.Autowired)(G.ILogger),n.__metadata("design:type",Object)],W.prototype,"logger",void 0),n.__decorate([a.observable.shallow,n.__metadata("design:type",Array)],W.prototype,"availableOpenTypes",void 0),n.__decorate([(0,G.debounce)(100),n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[]),n.__metadata("design:returntype",void 0)],W.prototype,"doLayoutEditors",null),n.__decorate([(0,G.OnEvent)(m.ResourceDecorationChangeEvent),n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[m.ResourceDecorationChangeEvent]),n.__metadata("design:returntype",void 0)],W.prototype,"onResourceDecorationChangeEvent",null),n.__decorate([(0,G.OnEvent)(r.ResourceOpenTypeChangedEvent),n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[r.ResourceOpenTypeChangedEvent]),n.__metadata("design:returntype",void 0)],W.prototype,"oResourceOpenTypeChangedEvent",null),n.__decorate([(0,G.OnEvent)(r.RegisterEditorComponentEvent),n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[]),n.__metadata("design:returntype",Promise)],W.prototype,"onRegisterEditorComponentEvent",null),W=n.__decorate([(0,o.Injectable)({multiple:!0}),n.__metadata("design:paramtypes",[String,Number])],W),e.EditorGroup=W;function N(y,E,R,A,w){if(w)return y.find(F=>Z(F,w))||y[0];if(E)return y.find(F=>Z(F,E))||y[0];if(A){const F=y.find(V=>{const Y=Object.keys(A).find(S=>(0,G.match)(S,R.uri.path.toString().toLowerCase())||(0,G.match)(S,R.uri.path.base.toLowerCase())),_=Y&&A[Y];if(!_)return!1;const H=`${G.CUSTOM_EDITOR_SCHEME}-${_}`;return V.componentId===H});if(F)return F}return y[0]}function Z(y,E){return y.type===E.type&&(y.type!==r.EditorOpenType.component||y.componentId===E.componentId)}},93107:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.parseRangeFrom=e.parseCacheValueFrom=e.isDocChangesCache=e.isDocContentCache=e.IDocPersistentCacheProvider=void 0;const n=t(44781);e.IDocPersistentCacheProvider=Symbol("IDocPersistentCacheProvider");function a(u){return u.hasOwnProperty("content")}e.isDocContentCache=a;function o(u){return u.hasOwnProperty("changeMatrix")}e.isDocChangesCache=o;function I(u){const G=u.text,p=u.range.startLineNumber,b=u.range.startColumn,m=u.range.endLineNumber,d=u.range.endColumn;return[G,p,b,m,d]}e.parseCacheValueFrom=I;function g(u){const[G,p,b,m,d]=u;return n.Range.lift({startLineNumber:p,startColumn:b,endLineNumber:m,endColumn:d})}e.parseRangeFrom=g},55113:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getSimpleEditorOptions=e.AUTO_SAVE_MODE=e.SaveReason=e.Direction=e.EditorGroupSplitAction=e.DragOverPosition=e.EditorOpenType=e.IEditorPriority=e.OverviewRulerLane=e.WorkbenchEditorService=e.DidApplyEditorDecorationFromProvider=e.DidChangeEditorGroupUriEvent=e.CollectionEditorsUpdateEvent=e.EditorCollectionService=e.EditorType=e.ShowLightbulbIconMode=void 0;const n=t(85608),a=t(76003),o=t(43718);var I=t(20868);Object.defineProperty(e,"ShowLightbulbIconMode",{enumerable:!0,get:function(){return I.ShowLightbulbIconMode}});var g;(function(N){N[N.CODE=0]="CODE",N[N.ORIGINAL_DIFF=1]="ORIGINAL_DIFF",N[N.MODIFIED_DIFF=2]="MODIFIED_DIFF",N.MERGE_EDITOR_DIFF="MERGE_EDITOR_DIFF"})(g=e.EditorType||(e.EditorType={}));let u=class{};u=n.__decorate([(0,a.Injectable)()],u),e.EditorCollectionService=u;class G extends o.BasicEvent{}e.CollectionEditorsUpdateEvent=G;class p extends o.BasicEvent{}e.DidChangeEditorGroupUriEvent=p;class b extends o.BasicEvent{}e.DidApplyEditorDecorationFromProvider=b;class m{}e.WorkbenchEditorService=m;var d;(function(N){N[N.Left=1]="Left",N[N.Center=2]="Center",N[N.Right=4]="Right",N[N.Full=7]="Full"})(d=e.OverviewRulerLane||(e.OverviewRulerLane={}));var s;(function(N){N.builtin="builtin",N.option="option",N.exclusive="exclusive",N.default="default"})(s=e.IEditorPriority||(e.IEditorPriority={}));var l;(function(N){N.code="code",N.diff="diff",N.mergeEditor="mergeEditor",N.component="component"})(l=e.EditorOpenType||(e.EditorOpenType={}));var r;(function(N){N.LEFT="left",N.RIGHT="right",N.TOP="top",N.BOTTOM="bottom",N.CENTER="center"})(r=e.DragOverPosition||(e.DragOverPosition={}));var c;(function(N){N[N.Top=1]="Top",N[N.Bottom=2]="Bottom",N[N.Left=3]="Left",N[N.Right=4]="Right"})(c=e.EditorGroupSplitAction||(e.EditorGroupSplitAction={}));var h;(function(N){N.UP="up",N.DOWN="down",N.LEFT="left",N.RIGHT="right"})(h=e.Direction||(e.Direction={}));var v;(function(N){N[N.Manual=1]="Manual",N[N.AfterDelay=2]="AfterDelay",N[N.FocusOut=3]="FocusOut"})(v=e.SaveReason||(e.SaveReason={}));var f;(function(N){N.OFF="off",N.AFTER_DELAY="afterDelay",N.EDITOR_FOCUS_CHANGE="editorFocusChange",N.WINDOWS_LOST_FOCUS="windowLostFocus"})(f=e.AUTO_SAVE_MODE||(e.AUTO_SAVE_MODE={}));function W(){return{fontSize:12,fontWeight:"normal",lineHeight:0,wordWrap:"on",overviewRulerLanes:0,glyphMargin:!1,lineNumbers:"off",folding:!1,selectOnLineNumbers:!1,hideCursorInOverviewRuler:!0,selectionHighlight:!1,scrollbar:{horizontal:"hidden"},lineDecorationsWidth:0,overviewRulerBorder:!1,scrollBeyondLastLine:!1,renderLineHighlight:"none",fixedOverflowWidgets:!0,acceptSuggestionOnEnter:"smart",minimap:{enabled:!1},guides:{highlightActiveIndentation:!1,indentation:!1,bracketPairs:!1}}}e.getSimpleEditorOptions=W},23418:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});const n=t(85608);n.__exportStar(t(93107),e),n.__exportStar(t(55113),e),n.__exportStar(t(4308),e),n.__exportStar(t(23950),e),n.__exportStar(t(39467),e),n.__exportStar(t(27693),e)},27693:(L,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ILanguageStatusService=void 0,e.ILanguageStatusService=Symbol("ILanguageStatusService")},23950:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.asMonacoDiagnostic=e.asMonacoDiagnostics=e.asRelatedInformation=e.asRelatedInformations=e.asSeverity=e.DiagnosticTag=e.DiagnosticSeverity=e.ILanguageService=void 0;const n=t(43718),a=t(26592);e.ILanguageService=Symbol("ILanguageService");var o;(function(m){m[m.Error=1]="Error",m[m.Warning=2]="Warning",m[m.Information=3]="Information",m[m.Hint=4]="Hint"})(o=e.DiagnosticSeverity||(e.DiagnosticSeverity={}));var I;(function(m){m[m.Unnecessary=1]="Unnecessary",m[m.Deprecated=2]="Deprecated"})(I=e.DiagnosticTag||(e.DiagnosticTag={}));function g(m){return m===1?n.MarkerSeverity.Error:m===2?n.MarkerSeverity.Warning:m===3?n.MarkerSeverity.Info:n.MarkerSeverity.Hint}e.asSeverity=g;function u(m){if(m)return m.map(d=>G(d))}e.asRelatedInformations=u;function G(m){return{resource:a.URI.parse(m.location.uri),startLineNumber:m.location.range.start.line+1,startColumn:m.location.range.start.character+1,endLineNumber:m.location.range.end.line+1,endColumn:m.location.range.end.character+1,message:m.message}}e.asRelatedInformation=G;function p(m){if(m)return m.map(d=>b(d))}e.asMonacoDiagnostics=p;function b(m){return{code:typeof m.code=="number"?m.code.toString():typeof m.code=="object"?{value:m.code.value.toString(),target:m.code.target}:m.code,severity:g(m.severity),message:m.message,source:m.source,startLineNumber:m.range.start.line+1,startColumn:m.range.start.character+1,endLineNumber:m.range.end.line+1,endColumn:m.range.end.character+1,relatedInformation:u(m.relatedInformation),tags:m.tags}}e.asMonacoDiagnostic=b},4308:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AskSaveResult=e.isDiffResource=e.DIFF_SCHEME=e.ResourceDecorationNeedChangeEvent=e.ResourceDecorationChangeEvent=e.ResourceRemoveEvent=e.ResourceDidUpdateEvent=e.ResourceNeedUpdateEvent=e.ResourceService=void 0;const n=t(43718);class a{}e.ResourceService=a;class o extends n.BasicEvent{}e.ResourceNeedUpdateEvent=o;class I extends n.BasicEvent{}e.ResourceDidUpdateEvent=I;class g extends n.BasicEvent{}e.ResourceRemoveEvent=g;class u extends n.BasicEvent{}e.ResourceDecorationChangeEvent=u;class G extends n.BasicEvent{}e.ResourceDecorationNeedChangeEvent=G,e.DIFF_SCHEME="diff";function p(m){return m.uri.scheme===e.DIFF_SCHEME}e.isDiffResource=p;var b;(function(m){m[m.REVERT=1]="REVERT",m[m.SAVE=2]="SAVE",m[m.CANCEL=3]="CANCEL"})(b=e.AskSaveResult||(e.AskSaveResult={}))},39467:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getSplitActionFromDragDrop=void 0;const n=t(55113);function a(o){return{[n.DragOverPosition.LEFT]:n.EditorGroupSplitAction.Left,[n.DragOverPosition.RIGHT]:n.EditorGroupSplitAction.Right,[n.DragOverPosition.BOTTOM]:n.EditorGroupSplitAction.Bottom,[n.DragOverPosition.TOP]:n.EditorGroupSplitAction.Top}[o]}e.getSplitActionFromDragDrop=a},54414:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),t(85608).__exportStar(t(23418),e)},32595:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ExplorerContribution=e.EXPLORER_CONTAINER_ID=void 0;const n=t(85608),a=t(76003),o=t(41869),I=t(30144);Object.defineProperty(e,"EXPLORER_CONTAINER_ID",{enumerable:!0,get:function(){return I.EXPLORER_CONTAINER_ID}});const g=t(21634),u=t(68456),G=t(43718);let p=class{registerComponent(m){m.register("@opensumi/ide-explorer",[],{iconClass:(0,o.getIcon)("explorer"),title:(0,o.localize)("explorer.title"),priority:10,containerId:I.EXPLORER_CONTAINER_ID,activateKeyBinding:"ctrlcmd+shift+e"})}onStart(){this.extensionsSchemaService.appendExtensionPoint(["browserViews","properties"],{extensionPoint:I.EXPLORER_CONTAINER_ID,frameworkKind:["opensumi"],jsonSchema:Object.assign(Object.assign({},g.browserViews.properties),{description:(0,o.formatLocalize)("sumiContributes.browserViews.location.custom",(0,o.localize)("explorer.title"))})})}};n.__decorate([(0,a.Autowired)(G.IExtensionsSchemaService),n.__metadata("design:type",Object)],p.prototype,"extensionsSchemaService",void 0),p=n.__decorate([(0,o.Domain)(o.ClientAppContribution,u.ComponentContribution)],p),e.ExplorerContribution=p},59027:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ExplorerModule=void 0;const n=t(85608),a=t(76003),o=t(41869),I=t(32595);let g=class extends o.BrowserModule{constructor(){super(...arguments),this.providers=[I.ExplorerContribution]}};g=n.__decorate([(0,a.Injectable)()],g),e.ExplorerModule=g},18531:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ExpressFileServerContribution=void 0;const n=t(85608),a=t(76003),o=t(41869),I=t(32242),g=t(90242);let u=class{registerStaticResolver(p){p.registerStaticResourceProvider({scheme:o.Schemes.file,resolveStaticResource:b=>{const m=new o.URI(this.appConfig.staticServicePath||g.EXPRESS_SERVER_PATH),[d,s]=b.codeUri.path.split("?");return m.resolve(`assets${decodeURIComponent(d)}`).withQuery(s)},roots:[this.appConfig.staticServicePath||g.EXPRESS_SERVER_PATH]})}};n.__decorate([(0,a.Autowired)(o.AppConfig),n.__metadata("design:type",Object)],u.prototype,"appConfig",void 0),u=n.__decorate([(0,o.Domain)(I.StaticResourceContribution)],u),e.ExpressFileServerContribution=u},98885:(L,e,t)=>{"use strict";var n;n={value:!0},e.Q=void 0;const a=t(85608),o=t(76003),I=t(41869),g=t(18531);let u=class extends I.BrowserModule{constructor(){super(...arguments),this.providers=[g.ExpressFileServerContribution]}};u=a.__decorate([(0,o.Injectable)()],u),e.Q=u},90242:(L,e,t)=>{"use strict";var n=t(39907);Object.defineProperty(e,"__esModule",{value:!0}),e.ALLOW_MIME=e.EXPRESS_SERVER_PATH=e.EXPRESS_SERVER_PORT=void 0,e.EXPRESS_SERVER_PORT=8e3,e.EXPRESS_SERVER_PATH=n.env.STATIC_SERVER_PATH||`http://127.0.0.1:${e.EXPRESS_SERVER_PORT}/`,e.ALLOW_MIME={gif:"image/gif",jpg:"image/jpeg",png:"image/png",webp:"image/webp",svg:"image/svg+xml",ttf:"font/ttf",eot:"font/eot",otf:"font/otf",woff:"font/woff",woff2:"font/woff2",js:"application/javascript",css:"text/css",mp4:"video/mp4",ogg:"video/ogg",webm:"video/webm"}},21082:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.EXTENSION_SCHEME=e.OPEN_VSX_EXTENSION_MANAGER_CONTAINER_ID=void 0;const n=t(30144);e.OPEN_VSX_EXTENSION_MANAGER_CONTAINER_ID=n.EXTENSION_CONTAINER_ID,e.EXTENSION_SCHEME="extension"},6449:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ExtensionOverview=void 0;const n=t(85608),a=n.__importStar(t(14041)),o=t(97267),I=t(68974),g=t(95422),u=t(43718),G=t(93374),p=t(29150),b=n.__importDefault(t(40769));var m;(function(l){l.details="Details",l.changelog="ChangeLog",l.deps="Dependencies"})(m||(m={}));const d=[m.details,m.changelog,m.deps],s=({resource:l})=>{var r,c,h,v,f,W,N,Z,y,E,R,A,w,F,V,Y,_,H,S,X,Q,O,M,T,x;const B=(0,g.useInjectable)(p.VSXExtensionServiceToken),[D,J]=(0,a.useState)(!0),[k,z]=(0,a.useState)(((r=l.metadata)===null||r===void 0?void 0:r.state)===p.InstallState.INSTALLED?4:0),[P,U]=(0,a.useState)(m.details),[oe,se]=(0,a.useState)({}),ae=(0,a.useCallback)($=>{const le=d[$];le&&U(le)},[]),he=(0,a.useCallback)(async()=>{var $;const le=await B.getRemoteRawExtension(($=l.metadata)===null||$===void 0?void 0:$.extensionId);if(le){const te=["readme","changelog"].map(j=>{var ie,ne;const de=(ie=le.files)===null||ie===void 0?void 0:ie[j];return de?fetch(de).then(Ie=>Ie.text()):(ne=le[j])!==null&&ne!==void 0?ne:""}),[ue,q]=await Promise.all(te);se({readme:ue,changelog:q,downloadCount:le.downloadCount})}J(!1)},[l]),ee=(0,a.useCallback)(async()=>{var $;const le=await B.getLocalExtension(($=l.metadata)===null||$===void 0?void 0:$.extensionId);le&&(z(1),B.install(le).finally(()=>{z(4)}))},[l]),pe=(0,a.useCallback)(async()=>{var $;const le=await B.getLocalExtension(($=l.metadata)===null||$===void 0?void 0:$.extensionId);le&&(z(2),B.uninstall(le).finally(()=>{z(3)}))},[l]);(0,a.useEffect)(()=>{he()},[l]);const ge=(0,a.useMemo)(()=>{var $,le,te;const ue=[];if((($=l.metadata)===null||$===void 0?void 0:$.state)!==p.InstallState.NOT_INSTALLED)if(k!==3)ue.push(a.default.createElement(o.Button,{size:"small",key:"uninstall",onClick:pe,disabled:k===2},(0,u.localize)(k===2?"marketplace.extension.uninstalling":"marketplace.extension.uninstall")));else return ue.push(a.default.createElement(o.Button,{size:"small",key:"uninstalled",disabled:!0},(0,u.localize)("marketplace.extension.uninstalled"))),ue;return((le=l.metadata)===null||le===void 0?void 0:le.state)===p.InstallState.NOT_INSTALLED?k===4?ue.push(a.default.createElement(o.Button,{size:"small",key:"installed",disabled:!0},(0,u.localize)("marketplace.extension.installed"))):ue.push(a.default.createElement(o.Button,{size:"small",key:"install",onClick:ee,disabled:k!==0},(0,u.localize)(k===1?"marketplace.extension.installing":"marketplace.extension.install"))):((te=l.metadata)===null||te===void 0?void 0:te.state)===p.InstallState.SHOULD_UPDATE?k===4?ue.push(a.default.createElement(o.Button,{size:"small",key:"installed",disabled:!0},(0,u.localize)("marketplace.extension.installed"))):ue.push(a.default.createElement(o.Button,{size:"small",key:"update",onClick:ee,disabled:k!==0},(0,u.localize)(k===1?"marketplace.extension.updating":"marketplace.extension.update"))):ue.push(a.default.createElement(o.Button,{size:"small",key:"installed",disabled:!0},(0,u.localize)("marketplace.extension.installed"))),ue},[l,k]);return a.default.createElement("div",{className:b.default.extension_overview_container},a.default.createElement(I.Progress,{loading:D}),a.default.createElement("div",{className:b.default.extension_overview_header},!((c=l.metadata)===null||c===void 0)&&c.iconUrl?a.default.createElement("img",{src:(h=l.metadata)===null||h===void 0?void 0:h.iconUrl,alt:(0,u.replaceLocalizePlaceholder)((v=l.metadata)===null||v===void 0?void 0:v.displayName,(f=l.metadata)===null||f===void 0?void 0:f.extensionId)}):a.default.createElement("div",{className:b.default.default_icon},a.default.createElement(o.Icon,{iconClass:(0,o.getIcon)("extension")})),a.default.createElement("div",{className:b.default.extension_detail},a.default.createElement("div",{className:b.default.extension_name},a.default.createElement("h1",null,a.default.createElement("a",{href:`${(W=l.metadata)===null||W===void 0?void 0:W.openVSXRegistry}/extension/${(N=l.metadata)===null||N===void 0?void 0:N.namespace.toLowerCase()}/${(Z=l.metadata)===null||Z===void 0?void 0:Z.name.toLowerCase()}`,target:"_blank",rel:"noopener noreferrer"},(0,u.replaceLocalizePlaceholder)((y=l.metadata)===null||y===void 0?void 0:y.displayName,(E=l.metadata)===null||E===void 0?void 0:E.extensionId)||((R=l.metadata)===null||R===void 0?void 0:R.name))),a.default.createElement("span",{className:b.default.extension_id},((A=l.metadata)===null||A===void 0?void 0:A.namespace.toLowerCase())+"."+((w=l.metadata)===null||w===void 0?void 0:w.name.toLowerCase()))),a.default.createElement("div",{className:b.default.manifest},a.default.createElement("span",null,a.default.createElement("a",{href:(F=l.metadata)===null||F===void 0?void 0:F.namespaceUrl,target:"_blank",rel:"noopener noreferrer"},(V=l.metadata)===null||V===void 0?void 0:V.namespace)),a.default.createElement("span",null,a.default.createElement(o.Icon,{iconClass:(0,o.getIcon)("download")}),((Y=l.metadata)===null||Y===void 0?void 0:Y.downloadCount)||oe.downloadCount),((_=l.metadata)===null||_===void 0?void 0:_.averageRating)&&a.default.createElement("span",null,(H=l.metadata)===null||H===void 0?void 0:H.averageRating),((S=l.metadata)===null||S===void 0?void 0:S.repository)&&a.default.createElement("span",null,a.default.createElement("a",{href:(X=l.metadata)===null||X===void 0?void 0:X.repository,target:"blank"},"Repository")),((Q=l.metadata)===null||Q===void 0?void 0:Q.license)&&a.default.createElement("span",null,a.default.createElement("a",{href:(O=l.metadata)===null||O===void 0?void 0:O.files.license,target:"blank"},"License")),a.default.createElement("span",null,"v",(M=l.metadata)===null||M===void 0?void 0:M.version)),a.default.createElement("div",{className:b.default.description},(0,u.replaceLocalizePlaceholder)((T=l.metadata)===null||T===void 0?void 0:T.description,(x=l.metadata)===null||x===void 0?void 0:x.extensionId)),a.default.createElement("div",{className:b.default.buttons},ge))),a.default.createElement("div",{className:b.default.extension_overview_body},a.default.createElement(o.Tabs,{className:b.default.tabs,value:P,onChange:ae,tabs:[m.details,m.changelog]}),a.default.createElement("div",{className:b.default.extension_content},P===m.details&&oe.readme&&a.default.createElement(G.Markdown,{content:oe.readme}),P===m.changelog&&oe.changelog&&a.default.createElement(G.Markdown,{content:oe.changelog}))))};e.ExtensionOverview=s},87791:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Extension=e.ExtensionViewType=void 0;const n=t(85608),a=n.__importStar(t(14041)),o=t(97267),I=t(41869),g=t(43718),u=t(29150),G=n.__importDefault(t(90425));var p;(function(b){b[b.MARKETPLACE=0]="MARKETPLACE",b[b.INSTALLED=1]="INSTALLED"})(p=e.ExtensionViewType||(e.ExtensionViewType={})),e.Extension=a.default.memo(({extension:b,onInstall:m,onClick:d,type:s,installedExtensions:l,openVSXRegistry:r})=>{const c=(0,I.useDesignStyles)(G.default.extension_item,"extension_item"),[h,v]=(0,a.useState)(),f=l?.find(A=>A.namespace===b.namespace&&A.name===b.name),W=!!(s===p.INSTALLED||f),N=W&&s===p.MARKETPLACE&&f?.version!==b.version,[Z,y]=(0,a.useState)(W),E=(0,a.useCallback)(A=>{A.stopPropagation(),v(!0),m(b).then(()=>{v(!1),y(!0)})},[b]),R=(0,a.useCallback)(()=>{d(b,Z?N?u.InstallState.SHOULD_UPDATE:u.InstallState.INSTALLED:u.InstallState.NOT_INSTALLED)},[b]);return a.default.createElement("div",{className:c,onClick:R},b.iconUrl?a.default.createElement("img",{className:G.default.icon,src:b.iconUrl,alt:(0,g.replaceLocalizePlaceholder)(b.displayName,`${b.publisher}.${b.name}`)}):a.default.createElement("div",{className:G.default.default_icon},a.default.createElement(o.Icon,{iconClass:(0,o.getIcon)("extension")})),a.default.createElement("div",{className:G.default.extension_detail},a.default.createElement("div",{className:G.default.base_info},a.default.createElement("span",{className:G.default.display_name},(0,g.replaceLocalizePlaceholder)(b.displayName,`${b.publisher}.${b.name}`)||b.name),a.default.createElement("span",{className:G.default.version},b.version),!Z&&a.default.createElement("span",{className:G.default.download_count},a.default.createElement(o.Icon,{iconClass:(0,o.getIcon)("download")}),b.downloadCount)),a.default.createElement("span",{className:G.default.description},(0,g.replaceLocalizePlaceholder)(b.description,`${b.publisher}.${b.name}`)),a.default.createElement("div",{className:G.default.footer},a.default.createElement("span",{className:G.default.namespace},b.namespace),s===p.MARKETPLACE&&(W?N?a.default.createElement(o.Button,{type:"primary",size:"small",onClick:E,disabled:h},(0,g.localize)(h?"marketplace.extension.updating":"marketplace.extension.update")):a.default.createElement("span",{className:G.default.state_text},(0,g.localize)("marketplace.extension.installed")):a.default.createElement(o.Button,{type:"primary",size:"small",onClick:E,disabled:h},(0,g.localize)(h?"marketplace.extension.installing":"marketplace.extension.install"))),s===p.INSTALLED&&a.default.createElement(o.Button,{type:"primary",size:"small",onClick:E,disabled:!0},(0,g.localize)("marketplace.extension.installed")))))})},38105:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.OpenVsxExtensionManagerModule=void 0;const n=t(85608),a=t(76003),o=t(41869),I=t(29150),g=t(70274),u=t(67761);let G=class extends o.BrowserModule{constructor(){super(...arguments),this.providers=[g.VSXExtensionContribution,{token:I.VSXExtensionServiceToken,useClass:u.VSXExtensionService}],this.backServices=[{servicePath:I.VSXExtensionServicePath,token:I.VSXExtensionBackSerivceToken}]}};G=n.__decorate([(0,a.Injectable)()],G),e.OpenVsxExtensionManagerModule=G},70274:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.VSXExtensionContribution=void 0;const n=t(85608),a=t(76003),o=t(41869),I=t(43718),g=t(57517),u=t(63067),G=t(52416),p=t(29150),b=t(21082),m=t(6449),d=t(73689);let s=class{initialize(){}onDidRender(){const r=this.mainLayoutService.getTabbarHandler(b.OPEN_VSX_EXTENSION_MANAGER_CONTAINER_ID);r&&(r.isActivated()?this.vsxExtensionService.getOpenVSXRegistry().then(()=>{this.vsxExtensionService.search("")}):r.onActivate(async()=>{!this.vsxExtensionService.openVSXRegistry&&await this.vsxExtensionService.getOpenVSXRegistry(),this.vsxExtensionService.search("")}))}registerResource(r){r.registerResourceProvider({scheme:b.EXTENSION_SCHEME,provideResource:async c=>{const{extensionId:h,state:v}=c.getParsedQuery(),f=await this.vsxExtensionService.getLocalExtension(h),W=this.iconService.fromIcon("",f?.iconUrl,G.IconType.Background);return{uri:c,metadata:Object.assign(Object.assign({},f),{extensionId:h,state:v,openVSXRegistry:this.vsxExtensionService.openVSXRegistry}),icon:W||(0,o.getIcon)("extension"),name:(0,I.replaceLocalizePlaceholder)(f?.displayName,h)||""}}})}registerEditorComponent(r){const c=`${b.EXTENSION_SCHEME}_detail`;r.registerEditorComponent({component:m.ExtensionOverview,uid:c,scheme:b.EXTENSION_SCHEME}),r.registerEditorComponentResolver(b.EXTENSION_SCHEME,(h,v,f)=>{f?.([{type:g.EditorOpenType.component,componentId:c}])})}registerComponent(r){r.register("@opensumi/ide-extension-manager",[],{iconClass:(0,o.getIcon)("extension"),title:(0,I.localize)("marketplace.extension.container"),priority:5,containerId:b.OPEN_VSX_EXTENSION_MANAGER_CONTAINER_ID,component:d.VSXExtensionView,activateKeyBinding:"ctrlcmd+shift+x"})}};n.__decorate([(0,a.Autowired)(u.IMainLayoutService),n.__metadata("design:type",Object)],s.prototype,"mainLayoutService",void 0),n.__decorate([(0,a.Autowired)(p.VSXExtensionServiceToken),n.__metadata("design:type",Object)],s.prototype,"vsxExtensionService",void 0),n.__decorate([(0,a.Autowired)(G.IIconService),n.__metadata("design:type",Object)],s.prototype,"iconService",void 0),s=n.__decorate([(0,I.Domain)(o.ClientAppContribution,u.MainLayoutContribution,o.ComponentContribution,g.BrowserEditorContribution)],s),e.VSXExtensionContribution=s},67761:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.VSXExtensionService=void 0;const n=t(85608),a=t(83794),o=t(76003),I=t(41869),g=t(57517),u=t(98453),G=t(71354),p=t(52416),b=t(12456),m=t(29150);let d=class extends I.Disposable{constructor(){super(),this.extensions=a.observable.array([]),this.installedExtensions=a.observable.array([]),this.openVSXRegistry="",this.tasks=new Map,(0,a.makeObservable)(this),this.getInstalledExtensions(),this.disposables.push(this.extensionInstanceService.onDidChange(()=>{this.getInstalledExtensions(),this.search(this.searchValue)}))}updateStatusBar(){if(this.tasks.size===0){this.installStatus&&(this.installStatus.dispose(),this.installStatus=void 0);return}const l="sumi-upload-file-status";if(this.tasks.size===1){const r=(0,I.localize)("marketplace.extension.installing"),c={text:r,alignment:I.StatusBarAlignment.RIGHT,tooltip:r,iconClass:"kaitian-icon kticon-cloud-server"};this.installStatus=this.statusBarService.addElement(l,c)}}async install(l){var r,c;const h=this.getExtensionId(l);if(this.tasks.has(h)||!l.downloadUrl)return;const v=this.backService.install({id:h,name:(r=l.name)!==null&&r!==void 0?r:"-",url:l.downloadUrl,version:(c=l.version)!==null&&c!==void 0?c:"-"});return this.tasks.set(h,v),this.updateStatusBar(),v.then(async f=>{if(this.tasks.delete(h),this.updateStatusBar(),await this.extensionManagementService.postChangedExtension(!1,f),this.themeService.getAvailableThemeInfos().some(y=>y.extensionId===l.originId)){this.commandService.executeCommand(b.THEME_TOGGLE_COMMAND.id,{extensionId:l.originId});return}if(this.iconService.getAvailableThemeInfos().some(y=>y.extensionId===l.originId)){this.commandService.executeCommand(b.ICON_THEME_TOGGLE_COMMAND.id,{extensionId:l.originId});return}if(this.productIconService.getAvailableThemeInfos().some(y=>y.extensionId===l.originId)){this.commandService.executeCommand(b.PRODUCT_ICON_THEME_TOGGLE_COMMAND.id,{extensionId:l.originId});return}})}async uninstall(l){l&&l.path&&await this.extensionManagementService.postUninstallExtension(l.path)}async disable(l){l&&l.path&&this.extensionManagementService.postDisableExtension(l.path)}async enable(l){l&&l.path&&this.extensionManagementService.postEnableExtension(l.path)}getExtensionId(l){var r,c,h;return(r=l?.extensionId)!==null&&r!==void 0?r:((c=l?.namespace)===null||c===void 0?void 0:c.toLowerCase())+"."+((h=l?.name)===null||h===void 0?void 0:h.toLowerCase())}async getLocalExtension(l){return l?this.extensions.find(c=>this.getExtensionId(c)===l)||this.installedExtensions.find(c=>this.getExtensionId(c)===l):void 0}async getRemoteRawExtension(l){if(!l)return;const r={extensionId:l},c=await this.backService.getExtension(r);if(c&&c.extensions&&c.extensions.length>=1)return Object.assign({},c.extensions[0])}async getOpenVSXRegistry(){this.openVSXRegistry=await this.backService.getOpenVSXRegistry()}async openExtensionEditor(l,r){this.workbenchEditorService.open(new I.URI(`extension://?extensionId=${l}&state=${r}`),{preview:!0})}async search(l){const r={query:l,size:50,sortBy:"downloadCount"};this.searchValue=l;const c=await this.backService.search(r);c.extensions&&(0,a.runInAction)(()=>{this.extensions=c.extensions.filter(h=>!this.installedExtensions.find(v=>this.getExtensionId(v)===this.getExtensionId(h))).map(h=>Object.assign(Object.assign({},h),{publisher:h.namespace,iconUrl:h.files.icon,downloadUrl:h.files.download,readme:h.files.readme}))})}async searchInstalledExtensions(l){this.installedExtensions=this.installedExtensions.sort((r,c)=>{const h=(0,I.fuzzyScore)(l,l.toLowerCase(),0,r.name,r.name.toLowerCase(),0,!0),v=(0,I.fuzzyScore)(l,l.toLowerCase(),0,c.name,c.name.toLowerCase(),0,!0);return h?v?v[0]-h[0]:-1:1})}getInstalledExtensions(){this.installedExtensions=this.extensionInstanceService.getExtensionInstances().map(l=>{const r=l.extensionId;return{namespace:r&&r.includes(".")?r.split(".")[0]:l.packageJSON.publisher,name:l.packageJSON.name,id:l.extensionId,version:l.packageJSON.version,displayName:l.packageJSON.displayName,description:l.packageJSON.description,publisher:l.packageJSON.publisher,iconUrl:l.packageJSON.icon&&l.extensionLocation.toString()+`/${l.packageJSON.icon}`,path:l.path,realpath:l.realPath}})}};n.__decorate([(0,o.Autowired)(m.VSXExtensionServicePath),n.__metadata("design:type",Object)],d.prototype,"backService",void 0),n.__decorate([(0,o.Autowired)(g.WorkbenchEditorService),n.__metadata("design:type",g.WorkbenchEditorService)],d.prototype,"workbenchEditorService",void 0),n.__decorate([(0,o.Autowired)(G.AbstractExtInstanceManagementService),n.__metadata("design:type",G.AbstractExtInstanceManagementService)],d.prototype,"extensionInstanceService",void 0),n.__decorate([(0,o.Autowired)(),n.__metadata("design:type",u.ExtensionManagementService)],d.prototype,"extensionManagementService",void 0),n.__decorate([(0,o.Autowired)(p.IThemeService),n.__metadata("design:type",Object)],d.prototype,"themeService",void 0),n.__decorate([(0,o.Autowired)(p.IIconService),n.__metadata("design:type",Object)],d.prototype,"iconService",void 0),n.__decorate([(0,o.Autowired)(p.IProductIconService),n.__metadata("design:type",Object)],d.prototype,"productIconService",void 0),n.__decorate([(0,o.Autowired)(I.CommandService),n.__metadata("design:type",Object)],d.prototype,"commandService",void 0),n.__decorate([a.observable.shallow,n.__metadata("design:type",Array)],d.prototype,"extensions",void 0),n.__decorate([a.observable,n.__metadata("design:type",Array)],d.prototype,"installedExtensions",void 0),n.__decorate([a.observable,n.__metadata("design:type",Object)],d.prototype,"openVSXRegistry",void 0),n.__decorate([(0,o.Autowired)(I.IStatusBarService),n.__metadata("design:type",Object)],d.prototype,"statusBarService",void 0),n.__decorate([a.observable,n.__metadata("design:type",Map)],d.prototype,"tasks",void 0),n.__decorate([(0,I.pMemoize)(s=>s),n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[String]),n.__metadata("design:returntype",Promise)],d.prototype,"search",null),n.__decorate([a.action,n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[String]),n.__metadata("design:returntype",Promise)],d.prototype,"searchInstalledExtensions",null),n.__decorate([a.action,n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[]),n.__metadata("design:returntype",void 0)],d.prototype,"getInstalledExtensions",null),d=n.__decorate([(0,o.Injectable)(),n.__metadata("design:paramtypes",[])],d),e.VSXExtensionService=d},73689:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.VSXExtensionView=void 0;const n=t(85608),a=n.__importDefault(t(12784)),o=t(25150),I=n.__importStar(t(14041)),g=t(14041),u=t(97267),G=t(41869),p=t(68974),b=t(43718),m=t(5567),d=t(29150),s=t(21082),l=t(87791),r=n.__importDefault(t(68143)),c=[d.TabActiveKey.MARKETPLACE,d.TabActiveKey.INSTALLED];e.VSXExtensionView=(0,o.observer)(()=>{const[h,v]=(0,g.useState)(d.TabActiveKey.MARKETPLACE),[f,W]=(0,g.useState)(!1),N=(0,G.useInjectable)(d.VSXExtensionServiceToken),Z=(0,a.default)(A=>{W(!0);let w;h===d.TabActiveKey.MARKETPLACE?w=N.search(A):w=N.searchInstalledExtensions(A),typeof w=="object"&&w.then&&w.then(()=>{W(!1)})},500),y=(0,g.useCallback)(A=>N.install(A),[]),E=(0,g.useCallback)((A,w)=>{const F=N.getExtensionId(A);N.openExtensionEditor(F,w)},[]),R=(0,g.useCallback)(A=>{const w=c[A];w&&v(w)},[]);return I.createElement("div",{className:r.default.panel},I.createElement(u.Tabs,{mini:!0,className:r.default.tabs,value:c.indexOf(h),onChange:R,tabs:[(0,b.localize)("marketplace.panel.tab.marketplace"),(0,b.localize)("marketplace.tab.installed")]}),I.createElement("div",{style:{padding:"8px"}},I.createElement(m.AutoFocusedInput,{containerId:s.OPEN_VSX_EXTENSION_MANAGER_CONTAINER_ID,placeholder:(0,b.localize)("marketplace.panel.tab.placeholder.search"),value:"",onChange:A=>Z(A.target.value)})),h===d.TabActiveKey.MARKETPLACE&&I.createElement("div",{className:r.default.extensions_view},I.createElement(p.Progress,{loading:f}),N.extensions.map((A,w)=>I.createElement(l.Extension,{key:`${w}:${A.namespace}-${A.name}`,onClick:E,onInstall:y,extension:A,type:l.ExtensionViewType.MARKETPLACE,installedExtensions:N.installedExtensions,openVSXRegistry:N.openVSXRegistry}))),h===d.TabActiveKey.INSTALLED&&I.createElement("div",{className:r.default.extensions_view},N.installedExtensions.map((A,w)=>I.createElement(l.Extension,{key:`${w}:${A.namespace}-${A.name}`,onClick:E,onInstall:y,extension:A,type:l.ExtensionViewType.INSTALLED,openVSXRegistry:N.openVSXRegistry}))))})},29150:(L,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.IOpenvsxMarketplaceService=e.IAlipayCloudMarketplaceService=e.VSXExtensionServicePath=e.VSXExtensionBackSerivceToken=e.VSXExtensionServiceToken=e.VSXExtension=e.InstallState=e.TabActiveKey=e.EnableScope=void 0;var t;(function(I){I.GLOBAL="GLOBAL",I.WORKSPACE="WORKSPACE"})(t=e.EnableScope||(e.EnableScope={}));var n;(function(I){I.MARKETPLACE="marketplace",I.INSTALLED="installed"})(n=e.TabActiveKey||(e.TabActiveKey={}));var a;(function(I){I.INSTALLED="INSTALLED",I.NOT_INSTALLED="NOT_INSTALLED",I.SHOULD_UPDATE="SHOULD_UPDATE"})(a=e.InstallState||(e.InstallState={}));class o{}e.VSXExtension=o,o.KEYS=new Set(["version","iconUrl","publisher","name","displayName","description","averageRating","downloadCount","downloadUrl","readmeUrl","licenseUrl","repository","license","readme","preview","namespaceAccess","publishedBy"]),e.VSXExtensionServiceToken=Symbol("VSXExtensionSerivceToken"),e.VSXExtensionBackSerivceToken=Symbol("VSXExtensionBackSerivceToken"),e.VSXExtensionServicePath="VSXExtensionServicePath",e.IAlipayCloudMarketplaceService=Symbol("IAlipayCloudMarketplaceService"),e.IOpenvsxMarketplaceService=Symbol("IOpenvsxMarketplaceService")},53599:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ExtensionStorageContribution=e.ExtensionStorageModule=void 0;const n=t(85608),a=t(76003),o=t(41869),I=t(93584),g=t(7446),u=t(16132),G=t(10207),p=t(19227);let b=class extends o.BrowserModule{constructor(){super(...arguments),this.providers=[{token:I.IExtensionStorageService,useClass:G.ExtensionStorageService},{token:I.IExtensionStoragePathServer,useClass:u.ExtensionStoragePathServer},{token:I.IExtensionStorageServer,useClass:g.ExtensionStorageServer},m]}};b=n.__decorate([(0,o.Domain)(p.name)],b),e.ExtensionStorageModule=b;let m=class{onReconnect(){this.extensionStorageService.reConnectInit()}};n.__decorate([(0,a.Autowired)(I.IExtensionStorageService),n.__metadata("design:type",Object)],m.prototype,"extensionStorageService",void 0),m=n.__decorate([(0,o.Domain)(o.ClientAppContribution)],m),e.ExtensionStorageContribution=m,n.__exportStar(t(10207),e)},16132:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ExtensionStoragePathServer=void 0;const n=t(85608),a=t(76003),o=t(41869),I=t(43718),g=t(96405),u=t(14951),G=t(73344),p=t(51500),{Path:b}=I.path;let m=class{constructor(){this.windowsDataFolders=[I.StoragePaths.WINDOWS_APP_DATA_DIR,I.StoragePaths.WINDOWS_ROAMING_DIR],this.deferredWorkspaceStoragePath=new I.Deferred,this.deferredStoragePath=new I.Deferred,this.storagePathInitialized=!1}get workspaceSuffixName(){return this.appConfig.workspaceSuffixName||p.DEFAULT_WORKSPACE_SUFFIX_NAME}async provideHostLogPath(){const s=await this.getLogsDirPath();if(!s)throw new Error("Unable to get parent log directory");const l=s,r=I.URI.file(l).toString();return await this.fileSystem.access(r)||await this.fileSystem.createFolder(r),new I.URI(s)}async provideHostStoragePath(s,l,r){const c=await this.getWorkspaceStorageDirPath(r);if(!c)throw new Error("Unable to get parent storage directory");await this.fileSystem.access(I.URI.file(c).toString())||await this.fileSystem.createFolder(I.URI.file(c).toString());const h=await this.buildWorkspaceId(s,l,r),v=new b(c).join(h).toString();await this.fileSystem.access(I.URI.file(v).toString())||await this.fileSystem.createFolder(I.URI.file(v).toString());const f=new I.URI(v);return this.storagePathInitialized||(this.deferredWorkspaceStoragePath.resolve(f.path.toString()),this.deferredStoragePath.resolve(c),this.storagePathInitialized=!0),this.cachedStoragePath=f}async getLastWorkspaceStoragePath(){var s;return this.storagePathInitialized?(s=this.cachedStoragePath)===null||s===void 0?void 0:s.path.toString():this.deferredWorkspaceStoragePath.promise}async getLastStoragePath(){return this.deferredStoragePath.promise}doHash(s){return this.hashCalculateService.calculate(s)}async buildWorkspaceId(s,l,r){const c=await this.getUserHomeDir(),h=W=>W.resolve(r||p.WORKSPACE_USER_STORAGE_FOLDER_NAME).resolve(`${p.UNTITLED_WORKSPACE}.${this.workspaceSuffixName}`).withScheme(I.Schemes.file),v=W=>W.resolve(r||p.WORKSPACE_USER_STORAGE_FOLDER_NAME).resolve(`${p.UNTITLED_WORKSPACE}`).withScheme(I.Schemes.file);if(!s){const W=v(new I.URI(c));return this.doHash(W.toString())}if(h(new I.URI(c)).toString()===s.uri){const W=l.map(N=>N.uri).sort().join(",");return this.doHash(W)}else{const W=new I.URI(s.uri);return this.doHash(W.toString())}}async getLogsDirPath(){const s=await this.loggerManager.getLogFolder();return new b(s).join(I.StoragePaths.EXTENSIONS_LOGS_DIR).toString()}async getWorkspaceStorageDirPath(s){const l=await this.getWorkspaceDataDirPath(s);return new b(l).join(I.StoragePaths.EXTENSIONS_WORKSPACE_STORAGE_DIR).toString()}async getWorkspaceDataDirPath(s){const l=await this.getUserHomeDir(),r=s;return new b(l).join(...I.isWindows?this.windowsDataFolders:[""],r).toString()}async getUserHomeDir(){const s=await this.fileSystem.getCurrentUserHome();if(!s)throw new Error("Unable to get user home directory");return await this.fileSystem.getFsPath(s.uri)}};n.__decorate([(0,a.Autowired)(u.IFileServiceClient),n.__metadata("design:type",Object)],m.prototype,"fileSystem",void 0),n.__decorate([(0,a.Autowired)(G.ILoggerManagerClient),n.__metadata("design:type",Object)],m.prototype,"loggerManager",void 0),n.__decorate([(0,a.Autowired)(o.AppConfig),n.__metadata("design:type",Object)],m.prototype,"appConfig",void 0),n.__decorate([(0,a.Autowired)(g.IHashCalculateService),n.__metadata("design:type",Object)],m.prototype,"hashCalculateService",void 0),m=n.__decorate([(0,a.Injectable)(),n.__metadata("design:paramtypes",[])],m),e.ExtensionStoragePathServer=m},7446:(L,e,t)=>{"use strict";var n;Object.defineProperty(e,"__esModule",{value:!0}),e.ExtensionStorageServer=void 0;const a=t(85608),o=t(76003),I=t(43718),g=t(14951),u=t(93584),{Path:G}=I.path;let p=n=class{constructor(){this.deferredWorkspaceDataDirPath=new I.Deferred,this.storageThrottler=new I.Throttler,this.storageTasks={},this.storageExistPromises=new Map}async init(m,d,s){return this.storageDelayer=new I.ThrottledDelayer(n.DEFAULT_FLUSH_DELAY),await this.setupDirectories(m,d,s||u.DEFAULT_EXTENSION_STORAGE_DIR_NAME)}async asAccess(m,d){if(d)return await this.fileSystem.access(m);if(!this.storageExistPromises.has(m)){const s=this.fileSystem.access(m);this.storageExistPromises.set(m,s)}return await this.storageExistPromises.get(m)}async setupDirectories(m,d,s){const l=await this.extensionStoragePathsServer.getWorkspaceDataDirPath(s),r=I.URI.file(l).toString();await this.fileSystem.access(r)||await this.fileSystem.createFolder(r),this.workspaceDataDirPath=l,this.globalDataPath=new G(this.workspaceDataDirPath).join(I.StoragePaths.EXTENSIONS_GLOBAL_STORAGE_DIR).toString();const c=I.URI.file(this.globalDataPath).toString();await this.fileSystem.access(c)||await this.fileSystem.createFolder(c),this.deferredWorkspaceDataDirPath.resolve(this.workspaceDataDirPath);const h=await this.extensionStoragePathsServer.provideHostLogPath(),v=await this.extensionStoragePathsServer.provideHostStoragePath(m,d,s);return{logUri:h.codeUri,storageUri:v.codeUri,globalStorageUri:I.Uri.file(this.globalDataPath)}}async resolveStorageTask(m){const d=Object.keys(m);for(const s of d){const l=await this.readFromFile(s);for(const{key:r,value:c}of m[s])c===void 0||(0,I.isEmptyObject)(c)?delete l[r]:l[r]=c;await this.writeToFile(s,l)}}doSet(){const m=Object.assign({},this.storageTasks);return this.storageTasks={},this.resolveStorageTask(m)}async set(m,d,s){const l=await this.getDataPath(s);if(!l)throw new Error("Cannot save data: no opened workspace");return this.storageTasks[l]||(this.storageTasks[l]=[]),this.storageTasks[l].push({key:m,value:d}),this.storageDelayer.trigger(()=>this.storageThrottler.queue(this.doSet.bind(this)))}async get(m,d){const s=await this.getDataPath(d);return s?(await this.readFromFile(s))[m]:{}}async getAll(m){const d=await this.getDataPath(m);return d?await this.readFromFile(d):{}}async getDataPath(m){if(this.workspaceDataDirPath===void 0&&await this.deferredWorkspaceDataDirPath.promise,m)return new G(this.globalDataPath).join("global-state.json").toString();{const d=await this.extensionStoragePathsServer.getLastWorkspaceStoragePath();return d?new G(d).join("workspace-state.json").toString():void 0}}async readFromFile(m){const d=I.URI.file(m);if(!await this.asAccess(d.toString(),!0))return{};try{const{content:l}=await this.fileSystem.readFile(d.toString());return JSON.parse(l.toString())}catch(l){return this.logger.error('Failed to parse data from "',d.toString(),'". Reason:',l),{}}}async writeToFile(m,d){const s=I.URI.file(m);await this.asAccess(s.parent.toString())||await this.fileSystem.createFolder(s.parent.toString());const r=JSON.stringify(d);let c=await this.fileSystem.getFileStat(s.toString());c||(c=await this.fileSystem.createFile(s.toString())),await this.fileSystem.setContent(c,r)}};p.DEFAULT_FLUSH_DELAY=100,a.__decorate([(0,o.Autowired)(u.IExtensionStoragePathServer),a.__metadata("design:type",Object)],p.prototype,"extensionStoragePathsServer",void 0),a.__decorate([(0,o.Autowired)(g.IFileServiceClient),a.__metadata("design:type",Object)],p.prototype,"fileSystem",void 0),a.__decorate([(0,o.Autowired)(I.ILogger),a.__metadata("design:type",Object)],p.prototype,"logger",void 0),p=n=a.__decorate([(0,o.Injectable)()],p),e.ExtensionStorageServer=p},10207:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ExtensionStorageService=void 0;const n=t(85608),a=t(76003),o=t(41869),I=t(43718),g=t(51500),u=t(93584);let G=class{constructor(){this._init=this.init(),this.updateEnvState()}get whenReady(){return this._init}get extensionStoragePath(){return this._extensionStoragePath}async init(){const b=await this.workspaceService.roots,m=this.workspaceService.workspace,d=this.appConfig.extensionStorageDirName||u.DEFAULT_EXTENSION_STORAGE_DIR_NAME;return this._extensionStoragePath=await this.extensionStorageServer.init(m,b,d),this._extensionStoragePath}async updateEnvState(){await this.get(I.firstSessionDateStorageKey,!0)===void 0&&await this.set(I.firstSessionDateStorageKey,{date:new Date().toUTCString()},!0)}set(b,m,d){return this.extensionStorageServer.set(b,m,d)}get(b,m){return this.extensionStorageServer.get(b,m)}getAll(b=!1){return this.extensionStorageServer.getAll(b)}async reConnectInit(){const b=await this.workspaceService.roots,m=this.workspaceService.workspace,d=this.appConfig.extensionStorageDirName||u.DEFAULT_EXTENSION_STORAGE_DIR_NAME;return this._extensionStoragePath=await this.extensionStorageServer.init(m,b,d),this._extensionStoragePath}};n.__decorate([(0,a.Autowired)(u.IExtensionStorageServer),n.__metadata("design:type",Object)],G.prototype,"extensionStorageServer",void 0),n.__decorate([(0,a.Autowired)(g.IWorkspaceService),n.__metadata("design:type",Object)],G.prototype,"workspaceService",void 0),n.__decorate([(0,a.Autowired)(o.AppConfig),n.__metadata("design:type",Object)],G.prototype,"appConfig",void 0),G=n.__decorate([(0,a.Injectable)(),n.__metadata("design:paramtypes",[])],G),e.ExtensionStorageService=G},93584:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});const n=t(85608);n.__exportStar(t(85853),e),n.__exportStar(t(56969),e),n.__exportStar(t(23618),e)},85853:(L,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DEFAULT_EXTENSION_STORAGE_DIR_NAME=e.IExtensionStoragePathServer=void 0,e.IExtensionStoragePathServer=Symbol("IExtensionStoragePathServer"),e.DEFAULT_EXTENSION_STORAGE_DIR_NAME=".sumi"},56969:(L,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.IExtensionStorageService=e.IExtensionStorageServer=void 0,e.IExtensionStorageServer=Symbol("ExtensionStorageServer"),e.IExtensionStorageService=Symbol("ExtensionStorageService")},23618:(L,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})},50492:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),t(85608).__exportStar(t(93584),e)},57962:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ActivationEventServiceImpl=void 0;const n=t(85608),a=n.__importDefault(t(80076)),o=t(76003),I=t(43718);let g=class{constructor(){this.eventListeners=new Map,this.collectTopicData=new I.MultiMap,this.wildCardTopics=new Set,this.activatedEventSet=new Set,this.wildCardTopics.add("workspaceContains")}getTopicsData(G){return this.collectTopicData.get(G)||[]}async fireEvent(G,p=""){this.activatedEventSet.add(JSON.stringify({topic:G,data:p}));let b;if(this.wildCardTopics.has(G)?b=this.eventListeners.get(G):this.eventListeners.has(G)?b=this.eventListeners.get(G):b=this.eventListeners.get(G+":"+p),b){const m=await Promise.allSettled(b.map(d=>this.tryRun(G,p,d)));for(const d of m)d.status==="rejected"&&this.logger.error(`fire event ${G}:${p} error: ${d.reason}`)}}addWildCardTopic(G){return this.wildCardTopics.add(G),{dispose:()=>{this.wildCardTopics.delete(G)}}}onEvent(G,p){const b=G.indexOf(":");let m,d;return b===-1?(m=G,d=""):(m=G.substr(0,b),d=G.substr(b+1)),this.addListener(m,{topic:m,data:d,execute:p})}addListener(G,p){if(this.collectTopicData.set(p.topic,p.data),this.wildCardTopics.has(G))return this.eventListeners.has(G)||this.eventListeners.set(G,[]),this.eventListeners.get(G).push(p),{dispose:()=>{const b=this.eventListeners.get(G).indexOf(p);b!==-1&&this.eventListeners.get(G).splice(b,1)}};{const b=G+":"+p.data;return this.eventListeners.has(b)||this.eventListeners.set(b,[]),this.eventListeners.get(b).push(p),{dispose:()=>{const m=this.eventListeners.get(b).indexOf(p);m!==-1&&this.eventListeners.get(b).splice(m,1)}}}}async tryRun(G,p,b){this.wildCardTopics.has(G)?(0,a.default)(b.data)(p)&&await b.execute():await b.execute()}};n.__decorate([(0,o.Autowired)(I.ILogger),n.__metadata("design:type",Object)],g.prototype,"logger",void 0),g=n.__decorate([(0,o.Injectable)(),n.__metadata("design:paramtypes",[])],g),e.ActivationEventServiceImpl=g},63056:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ExtensionNoExportsView=e.ExtensionLoadingView=void 0;const n=t(85608),a=n.__importDefault(t(14041)),o=t(41869),I=t(68974),g=n.__importDefault(t(17267)),u=({style:p})=>a.default.createElement("div",{style:p||{},className:g.default.kt_extension_view},a.default.createElement(I.Progress,{loading:!0}));e.ExtensionLoadingView=u;const G=(p,b)=>a.default.createElement("div",{className:g.default.kt_extension_no_exports_view},(0,o.formatLocalize)("extension.no.view.found",p,b));e.ExtensionNoExportsView=G},56405:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.PortalRoot=void 0;const n=t(85608),a=n.__importDefault(t(53373)),o=n.__importDefault(t(14041)),I=t(41869),g=t(87420),u=t(25600),G=p=>{var b;const[m,d]=o.default.useState(null),s=(0,I.useInjectable)(u.AbstractViewExtProcessService),l=(0,I.useInjectable)(g.IThemeService);o.default.useEffect(()=>{const c=new I.DisposableCollection;return l.getCurrentTheme().then(h=>d(h.type)),c.push(l.onThemeChange(h=>{h.type&&h.type!==m&&d(h.type)})),c.dispose.bind(c)},[]);const r=p.original;return o.default.createElement(r,Object.assign({},p.otherProps,{className:(0,a.default)((b=p.otherProps)===null||b===void 0?void 0:b.className,(0,g.getThemeTypeSelector)(m)),getContainer:()=>s.getPortalShadowRoot(p.extensionId)}))};e.PortalRoot=G},82443:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.TREE_VIEW_NODE_HEIGHT=e.TreeViewNode=void 0;const n=t(85608),a=n.__importDefault(t(53373)),o=n.__importStar(t(14041)),I=t(97267),g=t(41869),u=t(25918),G=t(93899),p=t(95422),b=t(69589),m=t(42912),d=n.__importDefault(t(50790)),s=({item:l,onClick:r,onContextMenu:c,itemType:h,leftPadding:v=8,onTwistierClick:f,decorations:W,defaultLeftPadding:N=8,treeViewId:Z,decorationService:y,draggable:E,onDragStart:R,onDragEnter:A,onDragLeave:w,onDragOver:F,onDrop:V})=>{const Y=(0,p.useInjectable)(m.IIconService),_=(0,g.useDesignStyles)(d.default.expansion_toggle,"expansion_toggle"),H=(0,g.useDesignStyles)(d.default.tree_view_node,"tree_view_node"),[S,X]=(0,o.useState)(l.uri&&y.getDecoration(l.uri,!1));(0,o.useEffect)(()=>{const te=y.onDidChangeDecorations(ue=>{l.uri&&ue.affectsResource(l.uri)&&X(y.getDecoration(l.uri,!1))});return()=>{te.dispose()}},[]);const Q=(0,p.useInjectable)(m.IThemeService),O=(0,o.useCallback)(te=>{(h===I.TreeNodeType.TreeNode||h===I.TreeNodeType.CompositeTreeNode)&&r(te,l,h)},[l,h,r]),M=(0,o.useCallback)(te=>{(h===I.TreeNodeType.TreeNode||h===I.TreeNodeType.CompositeTreeNode)&&(f?f(te,l,h):r(te,l,h))},[l,h,f,r]),T=(0,o.useCallback)(te=>{te.nativeEvent.which===0||!c||(h===I.TreeNodeType.TreeNode||h===I.TreeNodeType.CompositeTreeNode)&&c(te,l,h)},[l,h,c]),x=(0,o.useCallback)(te=>{R&&R(te,l)},[l,R]),B=(0,o.useCallback)(te=>{A&&A(te,l)},[l,A]),D=(0,o.useCallback)(te=>{w&&w(te,l)},[l,w]),J=(0,o.useCallback)(te=>{F&&F(te,l)},[l,F]),k=(0,o.useCallback)(te=>{V&&V(te,l)},[l,V]),z=h===I.TreeNodeType.CompositeTreeNode,P=z?`${N+(l.depth||0)*(v||0)}px`:`${N+(l.depth||0)*(v||0)+8}px`,U={height:e.TREE_VIEW_NODE_HEIGHT,lineHeight:`${e.TREE_VIEW_NODE_HEIGHT}px`,paddingLeft:P},oe=(te,ue)=>W&&W?.classlist.indexOf(d.default.mod_loading)>-1?o.default.createElement(I.Loading,null):o.default.createElement("div",{onClick:ue,className:(0,a.default)(d.default.tree_view_node_segment,_,(0,g.getIcon)("arrow-right"),{[`${d.default.mod_collapsed}`]:!te.expanded})}),se=te=>o.default.createElement("div",{className:(0,a.default)(d.default.file_icon,te.icon),style:{maxHeight:e.TREE_VIEW_NODE_HEIGHT}}),ae=te=>{const ue=()=>{if(te.highlights){let q=[],j=0;const ie=te.highlights.sort((ne,de)=>ne[0]-de[0]);return q=ie.map((ne,de)=>{const[Ie,Ge]=ne,re=te.displayName.slice(j,Ie);j=Ge;const me=te.displayName.slice(Ie,Ge),ve=[o.default.createElement("span",{key:`line_begin_${de}_${re}`},re),o.default.createElement("span",{className:d.default.highlight,key:`line_hightlight_${de}_${me}`},me)];if(de===ie.length-1){const Ne=te.displayName.slice(Ge);ve.push(o.default.createElement("span",{key:`line_end_${de}_${Ne}`},Ne))}return ve}),q}else return te.displayName};return o.default.createElement("div",{className:(0,a.default)(d.default.tree_view_node_segment,d.default.tree_view_node_displayname,te.strikethrough&&d.default.strikethrough)},ue())},he=()=>o.default.createElement("div",{className:(0,a.default)(d.default.tree_view_node_segment,d.default.tree_view_node_tail)},ee()),ee=()=>{if(l.actions.length>0)return o.default.createElement("div",{className:d.default.tree_view_actions},o.default.createElement(u.TitleActionList,{className:d.default.inlineMenu,context:[{treeViewId:Z,treeItemId:l.treeItemId}],nav:l.actions,menuId:G.MenuId.ViewItemContext}))},pe=te=>{if(z)return oe(te,M)},ge=()=>l.tooltip||l.name,$=te=>o.default.createElement("div",{className:(0,a.default)(d.default.tree_view_node_segment_grow,d.default.tree_view_node_description)},!te.name&&!te.description?"\u2014\u2014":te.description),le=()=>{if(!S)return null;const te=S.badge||"",ue=S.color,q=ue&&Q.getColor({id:ue});return o.default.createElement("div",{className:d.default.tree_view_node_tail,style:{color:q}},(0,b.transformLabelWithCodicon)(te.slice(),{},Y.fromString.bind(Y)))};return o.default.createElement("div",{key:l.id,onClick:O,onContextMenu:T,onDragStart:x,onDragOver:J,onDragEnter:B,onDragLeave:D,onDrop:k,title:ge(),className:(0,a.default)(H,W?W.classlist:null),"data-id":l.id,style:U,draggable:E},o.default.createElement("div",{className:(0,a.default)(d.default.tree_view_node_content)},pe(l),se(l),o.default.createElement("div",{className:d.default.tree_view_node_overflow_wrap},ae(l),$(l)),he(),le()))};e.TreeViewNode=s,e.TREE_VIEW_NODE_HEIGHT=22},81302:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ExtensionTabBarTreeView=void 0;const n=t(85608),a=t(25150),o=n.__importStar(t(14041)),I=t(97267),g=t(41869),u=t(68974),G=t(41893),p=t(24429),b=t(72260),m=t(82443),d=n.__importDefault(t(17267));e.ExtensionTabBarTreeView=(0,a.observer)(({viewState:r,model:c,dataProvider:h,treeViewId:v})=>{const f=(0,g.useInjectable)(b.IMainLayoutService),W=(0,g.useInjectable)(G.IDecorationsService),N=(0,o.useMemo)(()=>f.getViewAccordionService(v),[]),Z=(0,o.useMemo)(()=>{const x=N?.getViewState(v);return x?!x.collapsed&&!x.hidden:!1},[N]),{height:y}=r,{canSelectMany:E}=c.treeViewOptions||{},R=(0,o.useRef)(null),A=(0,o.useCallback)(x=>{c.handleTreeHandler(Object.assign(Object.assign({},x),{getModel:()=>c.treeModel,hasDirectFocus:()=>R.current===document.activeElement}))},[c]),w=(0,o.useCallback)((x,B)=>{x.stopPropagation();const{toggleDirectory:D}=c;D(B)},[c]),F=(0,o.useCallback)(x=>V(x)?!1:x.shiftKey,[]),V=(0,o.useCallback)(x=>{const{metaKey:B,ctrlKey:D}=x;return g.isOSX&&B||D},[]),Y=(0,o.useCallback)((x,B,D)=>{x.stopPropagation();const{handleItemClick:J,handleItemToggleClick:k,handleItemRangeClick:z}=c;if(!B)return;const P=F(event),U=V(event);E?P?z(B,D):U?k(B,D):J(B,D):J(B,D)},[E,c]),_=(0,o.useCallback)((x,B)=>{const{handleContextMenu:D}=c;D(x,B)},[c]),H=x=>{const{handleContextMenu:B}=c;B(x)},S=(0,o.useCallback)(()=>{const{enactiveNodeDecoration:x}=c;x()},[c]),X=(0,o.useCallback)((x,B)=>{const{handleDragStart:D}=c;D(x,B)},[c]),Q=(0,o.useCallback)((x,B)=>{const{handleDragOver:D}=c;D(x,B)},[c]),O=(0,o.useCallback)((x,B)=>{const{handleDragEnter:D}=c;D(x,B)},[c]),M=(0,o.useCallback)((x,B)=>{const{handleDrop:D}=c;D(x,B)},[c]),T=(0,o.useCallback)((x,B)=>{const{handleDragLeave:D}=c;D(x,B)},[c]);return(0,o.useEffect)(()=>{var x;const B=()=>{c.handleTreeBlur()};return(x=R.current)===null||x===void 0||x.addEventListener("blur",B,!0),()=>{var D;(D=R.current)===null||D===void 0||D.removeEventListener("blur",B,!0)}},[R.current]),o.default.createElement("div",{className:d.default.kt_extension_view,tabIndex:-1,ref:R,onContextMenu:H,onClick:S,"data-tree-view-id":v},o.default.createElement(l,{height:y,isVisible:Z,handleTreeReady:A,handleItemClicked:Y,handleTwistierClick:w,handleContextMenu:_,handleDragStart:X,handleDragOver:Q,handleDragEnter:O,handleDragLeave:T,handleDrop:M,draggable:c.draggable,treeViewId:v,model:c,dataProvider:h,decorationService:W}))});function s(r,c){return r.isVisible===c.isVisible&&r.model===c.model&&r.treeViewId===c.treeViewId&&r.height===c.height}const l=(0,o.memo)(({model:r,treeViewId:c,height:h,isVisible:v,dataProvider:f,handleTreeReady:W,handleItemClicked:N,handleTwistierClick:Z,handleContextMenu:y,handleDragStart:E,handleDragOver:R,handleDragEnter:A,handleDragLeave:w,handleDrop:F,draggable:V,decorationService:Y})=>{const[_,H]=(0,o.useState)(!1),[S,X]=(0,o.useState)(!1);(0,o.useEffect)(()=>{let O=!1;return(async()=>(await r.whenReady,r.treeModel&&v&&await r.treeModel.ensureReady,O||H(!0)))(),()=>{O=!0,r&&r.removeNodeDecoration()}},[r,v]),(0,o.useEffect)(()=>{const O=f.onDidChangeEmpty(()=>{f.isTreeEmpty!==S&&X(f.isTreeEmpty)});return()=>O.dispose()},[]);const Q=(0,o.useCallback)(O=>o.default.createElement(m.TreeViewNode,{item:O.item,itemType:O.itemType,decorations:r.decorations.getDecorations(O.item),onClick:N,onTwistierClick:Z,onContextMenu:y,onDragStart:E,onDragOver:R,onDragEnter:A,onDragLeave:w,onDrop:F,defaultLeftPadding:8,leftPadding:8,treeViewId:c,draggable:V,decorationService:Y}),[r.treeModel]);if(_){if(S)return o.default.createElement(p.WelcomeView,{viewId:c});if(r.treeModel)return o.default.createElement(I.RecycleTree,{height:h,itemHeight:m.TREE_VIEW_NODE_HEIGHT,onReady:W,model:r.treeModel},Q)}else return o.default.createElement(u.Progress,{loading:!0});return null},s);l.displayName="ExtensionsTreeView"},88341:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ExtensionWebviewView=e.WebviewViewShouldShowEvent=void 0;const a=t(85608).__importDefault(t(14041)),o=t(41869),I=t(99220);class g extends o.BasicEvent{}e.WebviewViewShouldShowEvent=g;const u=({viewId:G})=>{const p=a.default.useRef(null),b=(0,o.useInjectable)(o.IEventBus),m=(0,o.useInjectable)(I.ExtensionService);return a.default.useEffect(()=>{const d=new o.CancellationTokenSource,s=new o.Disposable({dispose:()=>d.cancel()});return m.eagerExtensionsActivated.promise.then(()=>{d.token.isCancellationRequested||p.current&&b.fire(new g({viewType:G,container:p.current,title:"",cancellationToken:d.token,disposer:s}))}),()=>{s.dispose()}},[]),a.default.createElement("div",{style:{height:"100%",width:"100%",position:"relative"},className:"webview-view-component",ref:p})};e.ExtensionWebviewView=u},17428:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});const n=t(85608);n.__exportStar(t(81302),e),n.__exportStar(t(63056),e)},21167:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.WalkthroughsEditorView=void 0;const n=t(85608),a=n.__importDefault(t(53373)),o=n.__importStar(t(14041)),I=t(97267),g=t(41869),u=t(93374),G=t(52416),p=t(99220),b=t(17441),m=n.__importDefault(t(42076)),d=({resource:{uri:c}})=>{const h=(0,g.useInjectable)(b.WalkthroughsService),v=(0,g.useInjectable)(g.IContextKeyService),{query:f,authority:W}=c,[N,Z]=(0,o.useState)(),[y,E]=(0,o.useState)();(0,o.useEffect)(()=>{N&&N.steps.length>0&&(y||E(N.steps[0].id))},[N,y]),(0,o.useEffect)(()=>{f&&Z(h.getWalkthrough(f))},[f,N]);const R=(0,o.useCallback)(()=>{var A;return N&&((A=N.steps.find(w=>w.id===y))===null||A===void 0?void 0:A.media)},[y,N]);return o.default.createElement("div",{className:m.default.getting_started_container},o.default.createElement("div",{className:m.default.getting_started_detailsContent},o.default.createElement("div",{className:m.default.category_container},o.default.createElement("div",{className:m.default.category_icon},N&&N.icon.type==="image"&&o.default.createElement("img",{src:N.icon.path})),o.default.createElement("div",{className:m.default.category_description_container},o.default.createElement("h2",{className:m.default.category_title},N?.title),o.default.createElement("div",{className:m.default.category_description},N?.description))),o.default.createElement("div",{className:m.default.steps_container},o.default.createElement("div",{className:m.default.getting_started_detail_container},o.default.createElement("div",{className:m.default.step_list_container},N?N.steps.filter(A=>v.match(A.when)).map(A=>o.default.createElement(s,{key:A.id,step:A,isExpanded:A.id===y,onSelected:E})):null))),o.default.createElement("div",{className:m.default.getting_started_media},y&&o.default.createElement(l,{media:R(),extensionId:W,stepId:y}))))};e.WalkthroughsEditorView=d;const s=({step:c,isExpanded:h,onSelected:v})=>{const f=(0,g.useInjectable)(g.IOpenerService),W=(0,g.useInjectable)(b.WalkthroughsService),N=(0,g.useInjectable)(G.IIconService),[Z,y]=(0,o.useState)(!1),{description:E}=c;(0,o.useEffect)(()=>{const V=W.onDidProgressStep(Y=>{const{id:_,done:H}=Y;_===c.id&&H&&y(H)});return()=>V.dispose()},[]);const R=(0,o.useCallback)(()=>{y(!Z),W.progressByEvent(p.CompletionEventsType.stepSelected+":"+c.id)},[Z,c.id]),A=(0,o.useCallback)(V=>{const{href:Y}=V;f.open(Y),/^http(s)?:\/\//.test(Y)&&W.progressByEvent(p.CompletionEventsType.onLink+":"+Y)},[]),w=(0,o.useCallback)(()=>{if(E.length===0)return null;const V=[];return E.map((Y,_)=>{if(Y.nodes.length===1&&typeof Y.nodes[0]!="string"){const H=Y.nodes[0];V.push(o.default.createElement("div",{key:_.toString()+V.length,title:H.title},o.default.createElement(I.Button,{onClick:()=>A(H)},(0,g.transformLabelWithCodicon)(H.label,{},N.fromString.bind(N)))))}else{const H=Y.nodes.map((S,X)=>typeof S=="string"?S:o.default.createElement("a",{key:S.label+"#"+X,title:S.title,onClick:()=>A(S)},S.label));V.push(o.default.createElement("p",{key:_.toString()+V.length.toString()+H.length.toString()},H))}}),o.default.createElement("div",{className:m.default.step_description_container},o.default.createElement(o.default.Fragment,null,V))},[E]),F=(0,o.useCallback)(()=>(0,g.transformLabelWithCodicon)(c.title,{},N.fromString.bind(N)),[c.title]);return o.default.createElement("div",{className:(0,a.default)(m.default.getting_started_step,h&&m.default.expanded),onClick:()=>v(c.id)},o.default.createElement("div",{className:m.default.checkbox},o.default.createElement(I.CheckBox,{id:c.id,onChange:R,checked:Z})),o.default.createElement("div",{className:m.default.step_container},o.default.createElement("h3",{className:m.default.step_title},F()),h&&w()))},l=({media:c,extensionId:h,stepId:v})=>{const f=(0,g.useInjectable)(G.IThemeService),W=(0,g.useInjectable)(b.WalkthroughsService),[N,Z]=(0,o.useState)(""),[y,E]=(0,o.useState)(""),R=(0,o.useCallback)(async A=>c?.type==="image"?"":A?(await W.getFileContent(h,A)).toString():"",[c]);if((0,o.useEffect)(()=>{const A=W.getStepsByExtension(v);A&&(c&&c.type==="svg"&&A.media.svg&&R(A.media.svg).then(Z),c&&c.type==="markdown"&&A.media.markdown&&R(A.media.markdown).then(E))},[c,v]),!c)return null;if(c.type==="image"){const A=f.getCurrentThemeSync().type,w=c.path[A].toString(!0).replace(/ /g,"%20");return o.default.createElement(o.default.Fragment,null,o.default.createElement("img",{alt:c.altText,srcSet:w.toLowerCase().endsWith(".svg")?w:w+" 1.5x"}))}return c.type==="svg"?o.default.createElement(o.default.Fragment,null,o.default.createElement("div",{className:m.default.media_svg_container,dangerouslySetInnerHTML:{__html:N}})):c.type==="markdown"?o.default.createElement(o.default.Fragment,null,o.default.createElement(r,{content:y,media:c})):null},r=({content:c,media:h})=>{const v=(0,g.useInjectable)(g.IOpenerService);if(h.type!=="markdown")return null;const f=(0,o.useCallback)(()=>h.base.resolve("/").toString(),[h,c]);return o.default.createElement(u.Markdown,{content:c,options:{baseUrl:f()},onLinkClick:W=>v.open(W)})}},87444:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ExtCommandManagementImpl=void 0;const n=t(85608),a=t(76003),o=t(43718);let I=class extends o.Disposable{constructor(){super(...arguments),this.commandEnvRegistry=new Map,this.proxyCommandExecutorRegistry=new Map}dispose(){this.commandEnvRegistry.clear(),this.proxyCommandExecutorRegistry.clear()}registerProxyCommandExecutor(u,G){this.proxyCommandExecutorRegistry.set(u,G)}async executeExtensionCommand(u,G,p){const b=this.proxyCommandExecutorRegistry.get(u);if(!b)throw new Error('Proxy command executor "'+u+'" is not existed');return b.$executeExtensionCommand(G,...p)}registerExtensionCommandEnv(u,G="node"){return this.commandEnvRegistry.set(u,G),{dispose:()=>{this.commandEnvRegistry.delete(u)}}}getExtensionCommandEnv(u){return this.commandEnvRegistry.get(u)}};I=n.__decorate([(0,a.Injectable)()],I),e.ExtCommandManagementImpl=I},49413:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ExtInstanceManagementService=void 0;const n=t(85608),a=t(76003),o=t(41869),I=t(43718),g=t(99220),u=t(42734);let G=class extends o.Disposable{constructor(){super(),this.onDidChangeEmitter=new I.Emitter,this.extensionMap=new Map,this._whenReady=this.init()}async init(){this.workspaceStorage=await this.storageProvider(o.STORAGE_NAMESPACE.EXTENSIONS),this.globalStorage=await this.storageProvider(o.STORAGE_NAMESPACE.GLOBAL_EXTENSIONS)}get whenReady(){return this._whenReady}get onDidChange(){return this.onDidChangeEmitter.event}dispose(){this.disposeExtensionInstances()}getExtensionInstances(){return Array.from(this.extensionMap.values())}disposeExtensionInstances(){for(const b of this.extensionMap.values())b.dispose();this.extensionMap=new Map}disposeExtensionInstancesByPath(b){b.forEach(m=>{this.extensionMap.has(m)&&this.extensionMap.get(m).dispose()})}resetExtensionInstances(){for(const b of this.extensionMap.values())b.reset()}getExtensionInstanceByPath(b){return this.extensionMap.get(b)}getExtensionInstanceByExtId(b){for(const m of this.extensionMap.values())if(m.id===b)return m}deleteExtensionInstanceByPath(b){this.extensionMap.delete(b),this.onDidChangeEmitter.fire()}addExtensionInstance(b){this.extensionMap.set(b.path,b),this.onDidChangeEmitter.fire()}async checkExtensionEnable(b){await this.whenReady;const m=this.globalStorage.get(b.extensionId,g.EXTENSION_ENABLE.ENABLE);return this.workspaceStorage.get(b.extensionId,m)===g.EXTENSION_ENABLE.ENABLE}async createExtensionInstance(b,m,d){const s=typeof b=="string"?await this.extensionNodeClient.getExtension(b,(0,I.getLanguageId)(),{}):b;if(s)return this.injector.get(u.Extension,[s,await this.checkExtensionEnable(s),m||(this.appConfig.extensionDir?s.realPath.startsWith(this.appConfig.extensionDir):!1),!!d])}checkIsBuiltin(b){const m=this.getExtensionCandidateByPath(b.realPath);return(this.appConfig.extensionDir?b.realPath.startsWith(this.appConfig.extensionDir):!1)||(m?m.isBuiltin:!1)}checkIsDevelopment(b){const m=this.getExtensionCandidateByPath(b.realPath);return!!m?.isDevelopment}getExtensionCandidateByPath(b){return this.appConfig.extensionCandidate&&this.appConfig.extensionCandidate.find(m=>m.path===b)}};n.__decorate([(0,a.Autowired)(o.StorageProvider),n.__metadata("design:type",Function)],G.prototype,"storageProvider",void 0),n.__decorate([(0,a.Autowired)(o.AppConfig),n.__metadata("design:type",Object)],G.prototype,"appConfig",void 0),n.__decorate([(0,a.Autowired)(a.INJECTOR_TOKEN),n.__metadata("design:type",a.Injector)],G.prototype,"injector",void 0),n.__decorate([(0,a.Autowired)(g.ExtensionNodeServiceServerPath),n.__metadata("design:type",Object)],G.prototype,"extensionNodeClient",void 0),G=n.__decorate([(0,a.Injectable)(),n.__metadata("design:paramtypes",[])],G),e.ExtInstanceManagementService=G},98453:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ExtensionManagementService=void 0;const n=t(85608),a=t(76003),o=t(43718),I=t(14951),g=t(99220),u=t(82389),G=t(71354),p=t(35321);let b=class extends o.WithEventBus{async getExtensionProps(d,s){const l=await this.extensionNodeClient.getExtension(d,(0,o.getLanguageId)(),s);if(l){const r=this.getExtensionByPath(d);if(r)return Object.assign(Object.assign({},r.toJSON()),{extraMetadata:l.extraMetadata})}}getExtensionByPath(d){return this.extInstanceManagementService.getExtensionInstances().find(s=>d===s.path)}getExtensionByExtId(d){return this.extInstanceManagementService.getExtensionInstances().find(s=>d===s.id)}async postChangedExtension(d,s,l){const{upgrade:r,extensionPath:c,oldExtensionPath:h,isBuiltin:v}=typeof d=="boolean"?{upgrade:d,extensionPath:s,oldExtensionPath:l,isBuiltin:!1}:d,f=this.extInstanceManagementService.getExtensionInstanceByPath(c);if(f){this.logger.warn(`Extension ${f.id} already exists, skip activate`);return}const W=await this.extInstanceManagementService.createExtensionInstance(c,!!v);if(W)return r&&this.disableExtension(h),await this.enableExtension(W)}async postEnableExtension(d){const s=await this.extInstanceManagementService.getExtensionInstanceByPath(d);if(s)return await this.enableExtension(s)}async postDisableExtension(d){return this.disableExtension(d)}async postUninstallExtension(d){return this.uninstallExtension(d)}getAllExtensionJson(){return this.extInstanceManagementService.getExtensionInstances().map(d=>d.toJSON())}disableExtension(d){const s=this.extInstanceManagementService.getExtensionInstanceByPath(d);s&&(s.disable(),this.extInstanceManagementService.deleteExtensionInstanceByPath(d))}async enableExtension(d){this.extInstanceManagementService.addExtensionInstance(d),d.enable(),await d.initialize(),this.eventBus.fire(new G.ExtensionDidEnabledEvent(d.toJSON())),this.sumiContributesService.register(d.id,d.packageJSON.sumiContributes||{}),this.contributesService.register(d.id,d.contributes),this.sumiContributesService.initialize(),this.contributesService.initialize()}async removeExtension(d){try{return await this.fileService.delete(o.URI.file(d).toString()),!0}catch(s){return this.logger.error(s),!1}}async uninstallExtension(d){const s=this.extInstanceManagementService.getExtensionInstanceByPath(d);s&&(s.dispose(),this.extInstanceManagementService.deleteExtensionInstanceByPath(d)),await this.removeExtension(d),this.eventBus.fire(new G.ExtensionDidUninstalledEvent)}};n.__decorate([(0,a.Autowired)(G.AbstractExtInstanceManagementService),n.__metadata("design:type",G.AbstractExtInstanceManagementService)],b.prototype,"extInstanceManagementService",void 0),n.__decorate([(0,a.Autowired)(g.ExtensionNodeServiceServerPath),n.__metadata("design:type",Object)],b.prototype,"extensionNodeClient",void 0),n.__decorate([(0,a.Autowired)(p.VSCodeContributesServiceToken),n.__metadata("design:type",p.VSCodeContributesService)],b.prototype,"contributesService",void 0),n.__decorate([(0,a.Autowired)(u.SumiContributionsServiceToken),n.__metadata("design:type",u.SumiContributionsService)],b.prototype,"sumiContributesService",void 0),n.__decorate([(0,a.Autowired)(I.IFileServiceClient),n.__metadata("design:type",Object)],b.prototype,"fileService",void 0),n.__decorate([(0,a.Autowired)(o.ILogger),n.__metadata("design:type",Object)],b.prototype,"logger",void 0),b=n.__decorate([(0,a.Injectable)()],b),e.ExtensionManagementService=b},20670:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.NodeExtProcessService=void 0;const n=t(85608),a=t(76003),o=t(8919),I=t(18740),g=t(41869),u=t(99220),G=t(46147),p=t(37846),b=t(28949),m=t(51072),d=t(17802);let s=class{constructor(){this._apiFactoryDisposables=new g.DisposableStore,this.ready=new g.Deferred,this._extHostUpdated=new g.Deferred,this.extensions=[]}disposeApiFactory(){this._apiFactoryDisposables.clear()}async disposeProcess(){this.disposeApiFactory(),await this.extensionNodeClient.disposeClientExtProcess(this.clientId,!1)}async activate(){return await this.createExtProcess(),this.protocol&&(this.ready.resolve(),await this.createBrowserMainThreadAPI(),await(await this.getProxy()).$updateExtHostData(),this._extHostUpdated.resolve()),this.protocol}async activeExtension(r,c){!this.appConfig.noExtHost&&!c&&(await this._extHostUpdated.promise,await(await this.getProxy()).$activateExtension(r.id))}async updateExtensionData(r){if(this.extensions=r,this.protocol){const c=await this.getProxy();await c.$updateExtHostData(),c.$fireChangeEvent()}}getExtension(r){return this.extensions.find(c=>c.id===r)}async $activateExtension(r){const c=this.extensions.find(h=>h.path===r);c&&await c.activate()}async $getExtensions(){return this.extensions.map(r=>r.toJSON())}async getProxy(){return await this.ready.promise,this.protocol.getProxy(G.ExtHostAPIIdentifier.ExtHostExtensionService)}async createBrowserMainThreadAPI(){const r=(0,d.initSharedAPIProxy)(this.protocol,this.injector);this._apiFactoryDisposables.add(r),this._apiFactoryDisposables.add((0,g.toDisposable)((0,m.initNodeThreadAPIProxy)(this.protocol,this.injector,this))),this._apiFactoryDisposables.add((0,g.toDisposable)((0,b.createSumiAPIFactory)(this.protocol,this.injector))),await r.setup()}async getActivatedExtensions(){return await(await this.getProxy()).$getActivatedExtensions()}get clientId(){return this.applicationService.clientId}async createExtProcess(){await this.extensionNodeClient.createProcess(this.clientId,{enableDebugExtensionHost:this.appConfig.enableDebugExtensionHost,inspectExtensionHost:this.appConfig.inspectExtensionHost,extensionConnectOption:this.appConfig.extensionConnectOption}),await this.initExtProtocol()}async initExtProtocol(){var r,c;this.channel&&this.channel.dispose(),this.protocol&&((c=(r=this.protocol).dispose)===null||c===void 0||c.call(r)),this.channel=await this.channelHandler.openChannel(u.CONNECTION_HANDLE_BETWEEN_EXTENSION_AND_MAIN_THREAD),this.connection=this.channel.createConnection(),this.protocol=new o.SumiConnectionMultiplexer(this.connection,{timeout:this.appConfig.rpcMessageTimeout,name:"node-ext-host",io:(0,o.createExtMessageIO)(p.knownProtocols)})}};n.__decorate([(0,a.Autowired)(g.ILogger),n.__metadata("design:type",Object)],s.prototype,"logger",void 0),n.__decorate([(0,a.Autowired)(g.AppConfig),n.__metadata("design:type",Object)],s.prototype,"appConfig",void 0),n.__decorate([(0,a.Autowired)(a.INJECTOR_TOKEN),n.__metadata("design:type",a.Injector)],s.prototype,"injector",void 0),n.__decorate([(0,a.Autowired)(u.ExtensionNodeServiceServerPath),n.__metadata("design:type",Object)],s.prototype,"extensionNodeClient",void 0),n.__decorate([(0,a.Autowired)(g.IApplicationService),n.__metadata("design:type",Object)],s.prototype,"applicationService",void 0),n.__decorate([(0,a.Autowired)(I.WSChannelHandler),n.__metadata("design:type",I.WSChannelHandler)],s.prototype,"channelHandler",void 0),s=n.__decorate([(0,a.Injectable)()],s),e.NodeExtProcessService=s},90731:(L,e,t)=>{"use strict";var n;Object.defineProperty(e,"__esModule",{value:!0}),e.ViewExtProcessService=void 0;const a=t(85608),o=t(76003),I=t(65973),g=t(8919),u=t(41869),G=t(40827),p=t(43718),b=t(61656),m=t(99220),d=t(25600),s=t(17428),l=t(54107),r=t(9438),c=t(8403),h=t(31738),{Path:v,posix:f}=u.path,W="load";let N=n=class extends p.Disposable{constructor(){super(...arguments),this.debugLogger=(0,p.getDebugLogger)(),this.extensions=[],this.activatedViewExtensionMap=new Map,this.portalShadowRootMap=new Map,this.shadowRootBodyMap=new Map}getExtension(y){return this.extensions.find(E=>E.id===y)}async initExtension(y){this.extensions=y}async getActivatedExtensions(){return[]}getProxy(){}async $activateExtension(y){}async $getExtensions(){return this.extensions.map(y=>y.toJSON())}async disposeProcess(){}activate(){const y=this.requireInterceptorContributionProvider.getContributions();for(const E of y)E.registerRequireInterceptor(this.requireInterceptorService);this.extendExtensionErrorStackTrace()}extendExtensionErrorStackTrace(){Error.stackTraceLimit=100,Error.prepareStackTrace=(y,E)=>{let R,A=`Error: ${y.message}`;for(const w of E)if(A+=`
|
|
27685
27685
|
at ${w.toString()}`,!R&&w.isEval()){const F=w.getEvalOrigin(),V=this.getExtension.apply(this,[F]);if(V){R=V;const Y=w.getColumnNumber(),_=w.getLineNumber();A=`
|
|
@@ -27875,7 +27875,7 @@ your modifications. Are you sure to regenerate?`,"aiNative.resolve.conflict.mess
|
|
|
27875
27875
|
|
|
27876
27876
|
\u662F\u5426\u8981\u9000\u51FA?`,"authentication.signOutMessageSimple":"\u662F\u5426\u8981\u9000\u51FA {0}?","authentication.useOtherAccount":"\u4F7F\u7528\u5176\u4ED6\u8D26\u6237\u767B\u5F55","authentication.selectAccount":"\u6269\u5C55 '{0}' \u5C06\u8981\u8BBF\u95EE {1} \u8D26\u6237","authentication.getSessionPlaceholder":"\u9009\u62E9\u4E00\u4E2A\u8D26\u6237\u7ED9 '{0}' \u4F7F\u7528","authentication.confirmAuthenticationAccess":"\u6269\u5C55 '{0}' \u5C06\u8981\u4F7F\u7528 '{2}' \u8BBF\u95EE {1}","authentication.confirmLogin":"\u6269\u5C55 '{0}' \u5C06\u8981\u4F7F\u7528 {1} \u767B\u5F55","authentication.confirmReLogin":"\u6269\u5C55 '{0}' \u5C06\u8981\u4F7F\u7528 {1} \u518D\u6B21\u767B\u5F55","authentication.signInRequests":"\u767B\u5F55 {0}","authentication.signOut":"\u9000\u51FA {0}","authentication.noAccounts":"\u76EE\u524D\u6CA1\u6709\u767B\u5F55\u4EFB\u4F55\u8D26\u6237","authentication.signedOut":"\u6210\u529F\u9000\u51FA","refactoring-changes.ask.1.create":"\u6269\u5C55 '{0} ' \u5E0C\u671B\u901A\u8FC7\u65B0\u5EFA\u6B64\u6587\u4EF6\u6765\u8FDB\u884C\u91CD\u6784\u66F4\u6539","refactoring-changes.ask.1.copy":"\u6269\u5C55 '{0} ' \u5E0C\u671B\u901A\u8FC7\u590D\u5236\u6B64\u6587\u4EF6\u6765\u8FDB\u884C\u91CD\u6784\u66F4\u6539","refactoring-changes.ask.1.move":"\u6269\u5C55 '{0} ' \u5E0C\u671B\u901A\u8FC7\u79FB\u52A8\u6B64\u6587\u4EF6\u6765\u8FDB\u884C\u91CD\u6784\u66F4\u6539","refactoring-changes.ask.1.delete":"\u6269\u5C55 '{0} ' \u5E0C\u671B\u901A\u8FC7\u5220\u9664\u6B64\u6587\u4EF6\u6765\u8FDB\u884C\u91CD\u6784\u66F4\u6539","refactoring-changes.ask.N.create":"{0} \u4E2A\u63D2\u4EF6\u5E0C\u671B\u901A\u8FC7\u65B0\u5EFA\u6B64\u6587\u4EF6\u6765\u8FDB\u884C\u91CD\u6784\u66F4\u6539","refactoring-changes.ask.N.copy":"{0} \u4E2A\u63D2\u4EF6\u5E0C\u671B\u901A\u8FC7\u590D\u5236\u6B64\u6587\u4EF6\u6765\u8FDB\u884C\u91CD\u6784\u66F4\u6539","refactoring-changes.ask.N.move":"{0} \u4E2A\u63D2\u4EF6\u5E0C\u671B\u901A\u8FC7\u79FB\u52A8\u6B64\u6587\u4EF6\u6765\u8FDB\u884C\u91CD\u6784\u66F4\u6539","refactoring-changes.ask.N.delete":"{0} \u4E2A\u63D2\u4EF6\u5E0C\u671B\u901A\u8FC7\u5220\u9664\u6B64\u6587\u4EF6\u6765\u8FDB\u884C\u91CD\u6784\u66F4\u6539","refactoring-changes.msg.showPreview":"\u663E\u793A\u9884\u89C8","refactoring-changes.msg.skipChanges":"\u8DF3\u8FC7\u66F4\u6539","keyboard.chooseKeyboardLayout":"\u9009\u62E9\u5E03\u5C40\u6587\u4EF6\u914D\u7F6E","keyboard.autoDetect.label":"\u81EA\u52A8\u68C0\u6D4B","keyboard.autoDetect.description":"\uFF08\u5F53\u524D\uFF1A'{0} '\uFF09","keyboard.autoDetect.detail":"\u5C1D\u8BD5\u901A\u8FC7\u6D4F\u89C8\u5668\u53CA\u6309\u952E\u4FE1\u606F\u8FDB\u884C\u5E03\u5C40\u81EA\u52A8\u68C0\u6D4B","editor.configuration.suggest.filterGraceful":"\u63A7\u5236\u5BF9\u5EFA\u8BAE\u7684\u7B5B\u9009\u548C\u6392\u5E8F\u662F\u5426\u8003\u8651\u5C0F\u7684\u62FC\u5199\u9519\u8BEF\u3002","editor.configuration.suggest.insertMode":"\u63A7\u5236\u63A5\u53D7\u8865\u5168\u65F6\u662F\u5426\u8986\u76D6\u5355\u8BCD\u3002\u8BF7\u6CE8\u610F\uFF0C\u8FD9\u53D6\u51B3\u4E8E\u6269\u5C55\u9009\u62E9\u4F7F\u7528\u6B64\u529F\u80FD\u3002","editor.configuration.suggest.insertMode.insert":"\u63D2\u5165\u5EFA\u8BAE\u800C\u4E0D\u8986\u76D6\u5149\u6807\u53F3\u4FA7\u7684\u6587\u672C\u3002","editor.configuration.suggest.insertMode.replace":"\u63D2\u5165\u5EFA\u8BAE\u5E76\u8986\u76D6\u5149\u6807\u53F3\u4FA7\u7684\u6587\u672C\u3002","editor.configuration.suggest.localityBonus":"\u63A7\u5236\u6392\u5E8F\u65F6\u662F\u5426\u9996\u9009\u5149\u6807\u9644\u8FD1\u7684\u5B57\u8BCD\u3002","editor.configuration.suggest.maxVisibleSuggestions.dep":"\u6B64\u8BBE\u7F6E\u5DF2\u5F03\u7528\u3002\u73B0\u5728\u53EF\u4EE5\u8C03\u6574\u5EFA\u8BAE\u5C0F\u7EC4\u4EF6\u7684\u5927\u5C0F\u3002","editor.configuration.suggest.preview":"\u63A7\u5236\u662F\u5426\u5728\u7F16\u8F91\u5668\u4E2D\u9884\u89C8\u5EFA\u8BAE\u7ED3\u679C\u3002","editor.configuration.suggest.shareSuggestSelections":"\u63A7\u5236\u662F\u5426\u5728\u591A\u4E2A\u5DE5\u4F5C\u533A\u548C\u7A97\u53E3\u95F4\u5171\u4EAB\u8BB0\u5FC6\u7684\u5EFA\u8BAE\u9009\u9879(\u9700\u8981 `#editor.suggestSelection#`)\u3002","editor.configuration.suggest.showIcons":"\u63A7\u5236\u662F\u5426\u5728\u5EFA\u8BAE\u4E2D\u663E\u793A\u6216\u9690\u85CF\u56FE\u6807\u3002","editor.configuration.suggest.showInlineDetails":"\u63A7\u5236\u5EFA\u8BAE\u8BE6\u7EC6\u4FE1\u606F\u662F\u968F\u6807\u7B7E\u4E00\u8D77\u663E\u793A\u8FD8\u662F\u4EC5\u663E\u793A\u5728\u8BE6\u7EC6\u4FE1\u606F\u5C0F\u7EC4\u4EF6\u4E2D","editor.configuration.suggest.showStatusBar":"\u63A7\u5236\u5EFA\u8BAE\u5C0F\u90E8\u4EF6\u5E95\u90E8\u7684\u72B6\u6001\u680F\u7684\u53EF\u89C1\u6027\u3002","editor.configuration.suggest.snippetsPreventQuickSuggestions":"\u63A7\u5236\u6D3B\u52A8\u4EE3\u7801\u6BB5\u662F\u5426\u963B\u6B62\u5FEB\u901F\u5EFA\u8BAE\u3002","editor.configuration.suggestFontSize":"\u5EFA\u8BAE\u5C0F\u90E8\u4EF6\u7684\u5B57\u53F7\u3002\u5982\u679C\u8BBE\u7F6E\u4E3A `0`\uFF0C\u5219\u4F7F\u7528 `#editor.fontSize#` \u7684\u503C\u3002","editor.configuration.suggestLineHeight":"\u5EFA\u8BAE\u5C0F\u90E8\u4EF6\u7684\u884C\u9AD8\u3002\u5982\u679C\u8BBE\u7F6E\u4E3A `0`\uFF0C\u5219\u4F7F\u7528 `#editor.lineHeight#` \u7684\u503C\u3002\u6700\u5C0F\u503C\u4E3A 8\u3002","editor.configuration.suggestOnTriggerCharacters":"\u63A7\u5236\u5728\u952E\u5165\u89E6\u53D1\u5B57\u7B26\u540E\u662F\u5426\u81EA\u52A8\u663E\u793A\u5EFA\u8BAE\u3002","editor.configuration.acceptSuggestionOnEnterSmart":"\u4EC5\u5728\u5EFA\u8BAE\u505A\u51FA\u6587\u672C\u66F4\u6539\u65F6\uFF0C\u624D\u4F7F\u7528 `Enter` \u63A5\u53D7\u5EFA\u8BAE\u3002","editor.configuration.acceptSuggestionOnEnter":"\u63A7\u5236\u7F16\u8F91\u5668\u662F\u5426\u5E94\u8BE5\u5728 `Tab` \u952E\u4E4B\u5916\uFF0C\u8FD8\u4F7F\u7528 `Enter` \u952E\u6765\u63A5\u53D7\u5EFA\u8BAE\u3002\u8FD9\u6709\u52A9\u4E8E\u907F\u514D\u5728\u63D2\u5165\u65B0\u884C\u6216\u63A5\u53D7\u5EFA\u8BAE\u4E4B\u95F4\u7684\u6B67\u4E49\u3002","editor.configuration.acceptSuggestionOnCommitCharacter":"\u63A7\u5236\u662F\u5426\u5728\u4F7F\u7528\u63D0\u4EA4\u5B57\u7B26\u65F6\u63A5\u53D7\u5EFA\u8BAE\u3002\u4F8B\u5982\uFF0C\u5728 JavaScript \u4E2D\uFF0C\u5206\u53F7 (`;`) \u662F\u4E00\u4E2A\u63D0\u4EA4\u5B57\u7B26\uFF0C\u53EF\u4EE5\u63A5\u53D7\u4E00\u4E2A\u5EFA\u8BAE\u5E76\u952E\u5165\u8BE5\u5B57\u7B26\u3002","editor.configuration.snippetSuggestions.top":"\u5C06\u4EE3\u7801\u7247\u6BB5\u7684\u5EFA\u8BAE\u653E\u5728\u5176\u4ED6\u5EFA\u8BAE\u7684\u9876\u90E8\u3002","editor.configuration.snippetSuggestions.bottom":"\u5C06\u4EE3\u7801\u7247\u6BB5\u7684\u5EFA\u8BAE\u653E\u5728\u5176\u4ED6\u5EFA\u8BAE\u7684\u5E95\u90E8\u3002","editor.configuration.snippetSuggestions.inline":"\u5C06\u4EE3\u7801\u7247\u6BB5\u7684\u5EFA\u8BAE\u6DF7\u5408\u5728\u5176\u4ED6\u5EFA\u8BAE\u7684\u4E2D\u95F4\u3002","editor.configuration.snippetSuggestions.none":"\u4E0D\u5C55\u793A\u4EE3\u7801\u7247\u6BB5\u5EFA\u8BAE\u3002","editor.configuration.snippetSuggestions":"\u63A7\u5236\u4EE3\u7801\u7247\u6BB5\u662F\u5426\u4E0E\u5176\u4ED6\u5EFA\u8BAE\u4E00\u540C\u663E\u793A\u4EE5\u53CA\u5B83\u4EEC\u7684\u6392\u5E8F\u65B9\u5F0F\u3002","editor.configuration.wordBasedSuggestions":"\u63A7\u5236\u662F\u5426\u6839\u636E\u6587\u6863\u4E2D\u7684\u5B57\u8BCD\u8BA1\u7B97\u81EA\u52A8\u8865\u5168\u5217\u8868\u3002","editor.configuration.suggestSelection":"\u63A7\u5236\u5728\u5EFA\u8BAE\u5217\u8868\u4E2D\u5982\u4F55\u9884\u5148\u9009\u62E9\u5EFA\u8BAE\u3002","editor.configuration.suggestSelection.first":"\u59CB\u7EC8\u9009\u62E9\u7B2C\u4E00\u4E2A\u5EFA\u8BAE\u3002","editor.configuration.suggestSelection.recentlyUsed":"\u9009\u62E9\u6700\u8FD1\u7684\u5EFA\u8BAE\uFF0C\u9664\u975E\u8FDB\u4E00\u6B65\u952E\u5165\u9009\u62E9\u5176\u4ED6\u9879\u3002\u4F8B\u5982 `console. -> console.log`\uFF0C\u56E0\u4E3A\u6700\u8FD1\u8865\u5168\u8FC7 `log`\u3002","editor.configuration.suggestSelection.recentlyUsedByPrefix":"\u6839\u636E\u4E4B\u524D\u8865\u5168\u8FC7\u7684\u5EFA\u8BAE\u7684\u524D\u7F00\u6765\u8FDB\u884C\u9009\u62E9\u3002\u4F8B\u5982\uFF0C`co -> console`\u3001`con -> const`\u3002","editor.configuration.tabCompletion":"\u542F\u7528 Tab \u8865\u5168\u3002","editor.configuration.tabCompletion.off":"\u7981\u7528 Tab \u8865\u5168\u3002","editor.configuration.tabCompletion.on":"\u5728\u6309\u4E0B Tab \u952E\u65F6\u8FDB\u884C Tab \u8865\u5168\uFF0C\u5C06\u63D2\u5165\u6700\u4F73\u5339\u914D\u5EFA\u8BAE\u3002","editor.configuration.tabCompletion.onlySnippets":'\u5728\u524D\u7F00\u5339\u914D\u65F6\u8FDB\u884C Tab \u8865\u5168\u3002\u5728 "quickSuggestions" \u672A\u542F\u7528\u65F6\u4F53\u9A8C\u6700\u597D\u3002',"editor.configuration.editor.guides.bracketPairs":"\u63A7\u5236\u662F\u5426\u542F\u7528\u62EC\u53F7\u5BF9\u6307\u5357\u3002","editor.configuration.editor.guides.bracketPairsHorizontal":"\u63A7\u5236\u662F\u5426\u542F\u7528\u6C34\u5E73\u62EC\u53F7\u5BF9\u6307\u5357\u3002","editor.configuration.renderLineHighlight":"\u63A7\u5236\u7F16\u8F91\u5668\u7684\u5F53\u524D\u884C\u8FDB\u884C\u9AD8\u4EAE\u663E\u793A\u7684\u65B9\u5F0F\u3002","editor.configuration.renderLineHighlight.all":"\u540C\u65F6\u7A81\u51FA\u663E\u793A\u5BFC\u822A\u7EBF\u548C\u5F53\u524D\u884C\u3002","editor.configuration.renderLineHighlightOnlyWhenFocus":"\u63A7\u5236\u7F16\u8F91\u5668\u662F\u5426\u4EC5\u5728\u7126\u70B9\u5728\u7F16\u8F91\u5668\u65F6\u7A81\u51FA\u663E\u793A\u5F53\u524D\u884C\u3002","editor.configuration.codeLens":"\u63A7\u5236\u662F\u5426\u5728\u7F16\u8F91\u5668\u4E2D\u663E\u793A CodeLens\u3002","editor.configuration.suggest.showClasss":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u663E\u793A\u201C\u7C7B\u201D\u5EFA\u8BAE\u3002","editor.configuration.suggest.showColors":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u663E\u793A\u201C\u989C\u8272\u201D\u5EFA\u8BAE\u3002","editor.configuration.suggest.showConstants":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u663E\u793A\u201C\u5E38\u91CF\u201D\u5EFA\u8BAE\u3002","editor.configuration.suggest.showConstructors":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u663E\u793A\u201C\u6784\u9020\u51FD\u6570\u201D\u5EFA\u8BAE\u3002","editor.configuration.suggest.showCustomcolors":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u663E\u793A\u201C\u81EA\u5B9A\u4E49\u989C\u8272\u201D\u5EFA\u8BAE\u3002","editor.configuration.suggest.showDeprecated":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u663E\u793A\u201C\u5DF2\u542F\u7528\u201D\u5EFA\u8BAE\u3002","editor.configuration.suggest.showEnumMembers":'\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u663E\u793A "enumMember" \u5EFA\u8BAE\u3002',"editor.configuration.suggest.showEnums":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u663E\u793A\u201C\u679A\u4E3E\u201D\u5EFA\u8BAE\u3002","editor.configuration.suggest.showEvents":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u663E\u793A\u201C\u4E8B\u4EF6\u201D\u5EFA\u8BAE\u3002","editor.configuration.suggest.showFields":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u663E\u793A\u201C\u5B57\u6BB5\u201D\u5EFA\u8BAE\u3002","editor.configuration.suggest.showFiles":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u663E\u793A\u201C\u6587\u4EF6\u201D\u5EFA\u8BAE\u3002","editor.configuration.suggest.showFolders":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u663E\u793A\u201C\u6587\u4EF6\u5939\u201D\u5EFA\u8BAE\u3002","editor.configuration.suggest.showFunctions":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u663E\u793A\u201C\u51FD\u6570\u201D\u5EFA\u8BAE\u3002","editor.configuration.suggest.showInterfaces":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u663E\u793A\u201C\u63A5\u53E3\u201D\u5EFA\u8BAE\u3002","editor.configuration.suggest.showIssues":'\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u663E\u793A"\u95EE\u9898"\u5EFA\u8BAE\u3002',"editor.configuration.suggest.showKeywords":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u663E\u793A\u201C\u5173\u952E\u5B57\u201D\u5EFA\u8BAE\u3002","editor.configuration.suggest.showMethods":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u663E\u793A\u201C\u65B9\u6CD5\u201D\u5EFA\u8BAE\u3002","editor.configuration.suggest.showModules":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u663E\u793A\u201C\u6A21\u5757\u201D\u5EFA\u8BAE\u3002","editor.configuration.suggest.showOperators":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u663E\u793A\u201C\u64CD\u4F5C\u7B26\u201D\u5EFA\u8BAE\u3002","editor.configuration.suggest.showPropertys":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u663E\u793A\u201C\u5C5E\u6027\u201D\u5EFA\u8BAE\u3002","editor.configuration.suggest.showReferences":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u663E\u793A\u201C\u53C2\u8003\u201D\u5EFA\u8BAE\u3002","editor.configuration.suggest.showSnippets":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u663E\u793A\u201C\u7247\u6BB5\u201D\u5EFA\u8BAE\u3002","editor.configuration.suggest.showStructs":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u663E\u793A\u201C\u7ED3\u6784\u201D\u5EFA\u8BAE\u3002","editor.configuration.suggest.showTexts":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u663E\u793A\u201C\u6587\u672C\u201D\u5EFA\u8BAE\u3002","editor.configuration.suggest.showTypeParameters":'\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u663E\u793A "typeParameter" \u5EFA\u8BAE\u3002',"editor.configuration.suggest.showUnits":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u663E\u793A\u201C\u5355\u4F4D\u201D\u5EFA\u8BAE\u3002","editor.configuration.suggest.showUsers":'\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u663E\u793A"\u7528\u6237"\u5EFA\u8BAE\u3002',"editor.configuration.suggest.showValues":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u663E\u793A\u201C\u503C\u201D\u5EFA\u8BAE\u3002","editor.configuration.suggest.showVariables":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u663E\u793A\u201C\u53D8\u91CF\u201D\u5EFA\u8BAE\u3002","editor.configuration.suggest.maxVisibleSuggestions":"\u63A7\u5236 IntelliSense \u5728\u663E\u793A\u6EDA\u52A8\u6761\u4E4B\u524D\u5C06\u663E\u793A\u7684\u5EFA\u8BAE\u6570\u91CF\uFF08\u6700\u591A 15 \u4E2A\uFF09\u3002","editor.configuration.suggest.details.visible":"\u63A7\u5236\u7F16\u8F91\u5668\u4EE3\u7801\u8865\u5168\u662F\u5426\u9ED8\u8BA4\u5C55\u5F00\u8BE6\u60C5\u4FE1\u606F","editor.configuration.suggest.filtered":"\u63A7\u5236\u662F\u5426\u5E94\u4ECE IntelliSense \u4E2D\u8FC7\u6EE4\u6389\u67D0\u4E9B\u5EFA\u8BAE\u7C7B\u578B\u3002\u53EF\u4EE5\u5728\u6B64\u5904\u627E\u5230\u4E00\u4EFD\u5EFA\u8BAE\u7C7B\u578B\u5217\u8868: https://code.visualstudio.com/docs/editor/intellisense#_types-of-completions.","editor.configuration.suggest.filtered.method":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u4F1A\u5C55\u793A `method` \u7C7B\u578B\u7684\u5EFA\u8BAE\u3002","editor.configuration.suggest.filtered.function":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u4F1A\u5C55\u793A `function` \u7C7B\u578B\u7684\u5EFA\u8BAE\u3002","editor.configuration.suggest.filtered.constructor":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u4F1A\u5C55\u793A `constructor` \u7C7B\u578B\u7684\u5EFA\u8BAE\u3002","editor.configuration.suggest.filtered.field":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u4F1A\u5C55\u793A `field` \u7C7B\u578B\u7684\u5EFA\u8BAE\u3002","editor.configuration.suggest.filtered.variable":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u4F1A\u5C55\u793A `variable` \u7C7B\u578B\u7684\u5EFA\u8BAE\u3002","editor.configuration.suggest.filtered.class":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u4F1A\u5C55\u793A `class` \u7C7B\u578B\u7684\u5EFA\u8BAE\u3002","editor.configuration.suggest.filtered.struct":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u4F1A\u5C55\u793A `struct` \u7C7B\u578B\u7684\u5EFA\u8BAE\u3002","editor.configuration.suggest.filtered.interface":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u4F1A\u5C55\u793A `interface` \u7C7B\u578B\u7684\u5EFA\u8BAE\u3002","editor.configuration.suggest.filtered.module":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u4F1A\u5C55\u793A `module` \u7C7B\u578B\u7684\u5EFA\u8BAE\u3002","editor.configuration.suggest.filtered.property":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u4F1A\u5C55\u793A `property` \u7C7B\u578B\u7684\u5EFA\u8BAE\u3002","editor.configuration.suggest.filtered.event":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u4F1A\u5C55\u793A `event` \u7C7B\u578B\u7684\u5EFA\u8BAE\u3002","editor.configuration.suggest.filtered.operator":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u4F1A\u5C55\u793A `operator` \u7C7B\u578B\u7684\u5EFA\u8BAE\u3002","editor.configuration.suggest.filtered.unit":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u4F1A\u5C55\u793A `unit` \u7C7B\u578B\u7684\u5EFA\u8BAE\u3002","editor.configuration.suggest.filtered.value":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u4F1A\u5C55\u793A `value` \u7C7B\u578B\u7684\u5EFA\u8BAE\u3002","editor.configuration.suggest.filtered.constant":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u4F1A\u5C55\u793A `constant` \u7C7B\u578B\u7684\u5EFA\u8BAE\u3002","editor.configuration.suggest.filtered.enum":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u4F1A\u5C55\u793A `enum` \u7C7B\u578B\u7684\u5EFA\u8BAE\u3002","editor.configuration.suggest.filtered.enumMember":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u4F1A\u5C55\u793A `enumMember` \u7C7B\u578B\u7684\u5EFA\u8BAE\u3002","editor.configuration.suggest.filtered.keyword":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u4F1A\u5C55\u793A `keyword` \u7C7B\u578B\u7684\u5EFA\u8BAE\u3002","editor.configuration.suggest.filtered.text":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u4F1A\u5C55\u793A `text` \u7C7B\u578B\u7684\u5EFA\u8BAE\u3002","editor.configuration.suggest.filtered.color":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u4F1A\u5C55\u793A `color` \u7C7B\u578B\u7684\u5EFA\u8BAE\u3002","editor.configuration.suggest.filtered.file":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u4F1A\u5C55\u793A `file` \u7C7B\u578B\u7684\u5EFA\u8BAE\u3002","editor.configuration.suggest.filtered.reference":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u4F1A\u5C55\u793A `reference` \u7C7B\u578B\u7684\u5EFA\u8BAE\u3002","editor.configuration.suggest.filtered.customcolor":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u4F1A\u5C55\u793A `customcolor` \u7C7B\u578B\u7684\u5EFA\u8BAE\u3002","editor.configuration.suggest.filtered.folder":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u4F1A\u5C55\u793A `folder` \u7C7B\u578B\u7684\u5EFA\u8BAE\u3002","editor.configuration.suggest.filtered.typeParameter":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u4F1A\u5C55\u793A `typeParameter` \u7C7B\u578B\u7684\u5EFA\u8BAE\u3002","editor.configuration.suggest.filtered.snippet":"\u542F\u7528\u540E\uFF0CIntelliSense \u5C06\u4F1A\u5C55\u793A `snippet` \u7C7B\u578B\u7684\u5EFA\u8BAE\u3002","editor.configuration.editor.gotoLocation.multiple":'\u63A7\u5236 "\u8F6C\u5230" \u547D\u4EE4\uFF08\u4F8B\u5982\u8F6C\u5230\u5B9A\u4E49\uFF09\u5728\u5B58\u5728\u591A\u4E2A\u76EE\u6807\u4F4D\u7F6E\u65F6\u7684\u884C\u4E3A\u3002',"editor.configuration.gotoLocation.multiple.peek":"\u5728\u901F\u89C8\u89C6\u56FE(Peek View)\u4E2D\u663E\u793A\u7ED3\u679C\u3002(\u9ED8\u8BA4)","editor.configuration.gotoLocation.multiple.gotoAndPeek":"\u8F6C\u5230\u4E3B\u7ED3\u679C\u5E76\u663E\u793A\u901F\u89C8\u89C6\u56FE(Peek View)\u3002","editor.configuration.gotoLocation.multiple.goto":"\u8F6C\u5230\u4E3B\u7ED3\u679C\uFF0C\u5E76\u5BF9\u5176\u4ED6\u7ED3\u679C\u542F\u7528\u65E0\u901F\u89C8\u5BFC\u822A","editor.configuration.experimental.stickyScroll.enabled":"\u5728\u7F16\u8F91\u5668\u9876\u90E8\u7684\u6EDA\u52A8\u8FC7\u7A0B\u4E2D\u663E\u793A\u5D4C\u5957\u7684\u5F53\u524D\u4F5C\u7528\u57DF\u3002","editor.configuration.maxTokenizationLineLength":"\u7531\u4E8E\u6027\u80FD\u539F\u56E0\uFF0C\u8D85\u8FC7\u8FD9\u4E2A\u957F\u5EA6\u7684\u884C\u5C06\u4E0D\u4F1A\u88AB\u6807\u8BC6\u3002","editor.configuration.codeActionsOnSave.organizeImports":"\u63A7\u5236\u662F\u5426\u5E94\u5728\u6587\u4EF6\u4FDD\u5B58\u65F6\u6574\u7406\u5BFC\u5165\uFF08Import\uFF09\u8BED\u53E5\u3002","editor.configuration.codeActionsOnSave.fixAll":"\u63A7\u5236\u662F\u5426\u5E94\u5728\u6587\u4EF6\u4FDD\u5B58\u65F6\u8FD0\u884C\u81EA\u52A8\u4FEE\u590D\u64CD\u4F5C\u3002","editor.configuration.codeActionsOnSave":"\u5728\u4FDD\u5B58\u65F6\u8FD0\u884C\u7684\u4EE3\u7801\u64CD\u4F5C\u7C7B\u578B","editor.configuration.codeActionsOnSaveTimeout":"\u5728\u6B64\u8D85\u65F6\u65F6\u95F4(\u6BEB\u79D2)\u4E4B\u540E\u4EE3\u7801\u64CD\u4F5C\u5C06\u88AB\u53D6\u6D88\u3002","editor.configuration.codeActionsOnSaveNotification":"\u4EE3\u7801\u64CD\u4F5C\u6267\u884C\u65F6\u662F\u5426\u5C55\u793A\u901A\u77E5\u4FE1\u606F","editor.configuration.quickSuggestionsDelay":"\u63A7\u5236\u663E\u793A\u667A\u80FD\u63D0\u793A\u7684\u5EF6\u8FDF\u65F6\u957F (\u6BEB\u79D2)\u3002","editor.configuration.tabSize":"\u63A7\u5236 Tab \u7F29\u8FDB\u7B49\u4E8E\u7684\u7A7A\u683C\u6570\u3002\u82E5\u542F\u7528 `#editor.detectIndentation#`\uFF0C\u8BE5\u8BBE\u7F6E\u53EF\u80FD\u4F1A\u88AB\u8986\u76D6","editor.configuration.fontWeight":'\u63A7\u5236\u5B57\u4F53\u7C97\u7EC6\uFF0C\u63A5\u6536 "normal" \u548C "bold" \u5173\u952E\u8BCD\u6216\u8005 1 \u5230 1000 \u6570\u503C\u3002',"editor.configuration.largeFileSize":"\u63A7\u5236\u8D85\u5927\u6587\u4EF6\u7684\u81EA\u5B9A\u4E49\u4F53\u79EF\u3002(\u5355\u4F4D\uFF1AB)","editor.configuration.preferredFormatter":"\u914D\u7F6E\u4F18\u5148\u4F7F\u7528\u7684\u683C\u5F0F\u5316\u5668\u3002","editor.configuration.wrapTab":"\u63A7\u5236\u5F53\u7F16\u8F91\u5668 Tab \u8D85\u8FC7\u53EF\u7528\u7A7A\u95F4\u65F6\uFF0C\u662F\u5426\u4F7F\u7528\u6362\u884C\u6765\u4EE3\u66FF\u6EDA\u52A8\u6A21\u5F0F\u3002","editor.configuration.enablePreviewFromCodeNavigation":"\u63A7\u5236\u5F53\u4EE3\u7801\u5BFC\u822A\u4ECE\u5176\u51FA\u53D1\u65F6\uFF0C\u7F16\u8F91\u5668\u662F\u5426\u4ECD\u5904\u4E8E\u9884\u89C8\u6A21\u5F0F\u3002","editor.configuration.formatOnSaveTimeout":"\u63A7\u5236\u4FDD\u5B58\u65F6\u683C\u5F0F\u5316\u7684\u8D85\u65F6\u65F6\u95F4\uFF08\u6BEB\u79D2\uFF09\u3002\u4EC5\u5F53 `#editor.formatOnSave#` \u542F\u7528\u65F6\u751F\u6548\u3002","editor.configuration.inlineSuggest.enabled":"\u63A7\u5236\u662F\u5426\u5728\u7F16\u8F91\u5668\u4E2D\u81EA\u52A8\u663E\u793A\u5185\u8054\u5EFA\u8BAE\u3002","editor.configuration.inlineSuggest.showToolbar":"\u63A7\u5236\u4F55\u65F6\u663E\u793A\u5185\u8054\u5EFA\u8BAE\u5DE5\u5177\u680F\u3002","editor.configuration.inlineSuggest.showToolbar.always":"\u6BCF\u5F53\u663E\u793A\u5185\u8054\u5EFA\u8BAE\u65F6\uFF0C\u5C31\u663E\u793A\u5185\u8054\u5EFA\u8BAE\u5DE5\u5177\u680F\u3002","editor.configuration.inlineSuggest.showToolbar.onHover":"\u5C06\u9F20\u6807\u60AC\u505C\u5728\u5185\u8054\u5EFA\u8BAE\u4E0A\u65F6\u663E\u793A\u5185\u8054\u5EFA\u8BAE\u5DE5\u5177\u680F\u3002","editor.configuration.inlineSuggest.showToolbar.never":"\u6C38\u4E0D\u663E\u793A\u5185\u8054\u5EFA\u8BAE\u5DE5\u5177\u680F\u3002","editor.configuration.autoSave":"\u63A7\u5236\u5982\u4F55\u81EA\u52A8\u4FDD\u5B58\u6587\u4EF6\u3002","editor.configuration.formatOnSave":"\u5728\u4FDD\u5B58\u65F6\u683C\u5F0F\u5316\u6587\u4EF6","editor.configuration.formatOnType":"\u63A7\u5236\u7F16\u8F91\u5668\u662F\u5728\u952E\u5165\u540E\u81EA\u52A8\u683C\u5F0F\u5316\u8BE5\u884C\u3002","editor.configuration.formatOnPaste":"\u63A7\u5236\u7F16\u8F91\u5668\u662F\u5426\u81EA\u52A8\u683C\u5F0F\u5316\u7C98\u8D34\u7684\u5185\u5BB9\u3002\u9700\u8981\u5F53\u524D\u6587\u4EF6\u6709\u4E00\u4E2A\u683C\u5F0F\u5316\u5DE5\u5177\u5E76\u4E14\u8BE5\u683C\u5F0F\u5316\u683C\u5C40\u5FC5\u987B\u80FD\u591F\u5728\u6587\u6863\u4E2D\u683C\u5F0F\u5316\u4E00\u4E2A\u8303\u56F4\u3002","editor.configuration.autoIndent":"\u63A7\u5236\u7F16\u8F91\u5668\u662F\u5426\u5E94\u8BE5\u5728\u7528\u6237\u952E\u5165\u3001\u7C98\u8D34\u6216\u79FB\u52A8\u884C\u65F6\u81EA\u52A8\u8C03\u6574\u7F29\u8FDB\u3002\u5FC5\u987B\u63D0\u4F9B\u5E26\u6709\u8BE5\u8BED\u8A00\u7F29\u8FDB\u89C4\u5219\u7684\u6269\u5C55\u3002","editor.configuration.autoSaveDelay":"\u63A7\u5236\u81EA\u52A8\u4FDD\u5B58\u7684\u5EF6\u8FDF\u65F6\u957F\uFF08\u6BEB\u79D2\uFF09\u3002\u4EC5\u5F53 `#editor.autoSave#` \u8BBE\u7F6E\u4E3A\u201C\u7F16\u8F91\u540E\u81EA\u52A8\u4FDD\u5B58\u201D\u65F6\u751F\u6548\u3002","editor.configuration.askIfDiff":"\u4FDD\u5B58\u6587\u4EF6\u65F6\u5982\u679C\u78C1\u76D8\u4E0A\u7684\u6587\u4EF6\u8F83\u65B0\uFF0C\u8FDB\u884C\u63D0\u793A\u624B\u52A8\u89E3\u51B3\u4FDD\u5B58\u51B2\u7A81\u3002","editor.configuration.forceReadOnly":"\u662F\u5426\u542F\u7528 \u53EA\u8BFB\u6A21\u5F0F","editor.configuration.bracketPairColorization.enabled":"\u63A7\u5236\u662F\u5426\u542F\u7528\u62EC\u53F7\u5BF9\u7740\u8272\u3002\u4F7F\u7528 \u201Cworkbench.colorCustomizations\u201D \u66FF\u4EE3\u62EC\u53F7\u7A81\u51FA\u663E\u793A\u989C\u8272\u3002","editor.configuration.guides.bracketPairs":"\u63A7\u5236\u662F\u5426\u542F\u7528\u62EC\u53F7\u5BF9\u6307\u5357\u3002","editor.configuration.mouseBackForwardToNavigate":"\u5141\u8BB8\u4F7F\u7528\u9F20\u6807\u6309\u94AE 4 \u548C 5 \u6765\u6267\u884C\u547D\u4EE4\u201CGo Back\u201D\u548C\u201CGo Forward\u201D\u3002","editor.configuration.previewMode":"\u4F7F\u7528\u9884\u89C8\u6A21\u5F0F\u6253\u5F00","editor.configuration.tokenColorCustomizations":"\u8986\u76D6\u5F53\u524D\u6240\u9009\u989C\u8272\u4E3B\u9898\u4E2D\u7684\u7F16\u8F91\u5668\u989C\u8272\u548C\u5B57\u4F53\u6837\u5F0F","editor.configuration.workbench.editorAssociations":'\u5C06 glob \u6A21\u5F0F\u914D\u7F6E\u5230\u7F16\u8F91\u5668(\u4F8B\u5982 `"*\u5341\u516D\u8FDB\u5236": "hexEditor.hexEdit"`)\u3002\u8FD9\u4E9B\u4F18\u5148\u987A\u5E8F\u9AD8\u4E8E\u9ED8\u8BA4\u884C\u4E3A\u3002',"editor.configuration.guides.indentation":"\u63A7\u5236\u7F16\u8F91\u5668\u662F\u5426\u663E\u793A\u7F29\u8FDB\u53C2\u8003\u7EBF\u3002","editor.configuration.guides.highlightActiveIndentation":"\u63A7\u5236\u662F\u5426\u7A81\u51FA\u663E\u793A\u7F16\u8F91\u5668\u4E2D\u6D3B\u52A8\u7684\u7F29\u8FDB\u53C2\u8003\u7EBF\u3002","editor.configuration.trimAutoWhitespace":"\u5220\u9664\u81EA\u52A8\u63D2\u5165\u7684\u5C3E\u968F\u7A7A\u767D\u7B26\u53F7\u3002","editor.configuration.unicodeHighlight.ambiguousCharacters":"\u63A7\u5236\u662F\u5426\u7A81\u51FA\u663E\u793A\u53EF\u80FD\u4E0E\u57FA\u672C ASCII \u5B57\u7B26\u6DF7\u6DC6\u7684\u5B57\u7B26\uFF0C\u4F46\u5F53\u524D\u7528\u6237\u533A\u57DF\u8BBE\u7F6E\u4E2D\u5E38\u89C1\u7684\u5B57\u7B26\u9664\u5916\u3002","editor.configuration.lightbulb.enabled":"\u5728\u7F16\u8F91\u5668\u4E2D\u542F\u7528\u4EE3\u7801\u64CD\u4F5C\u83DC\u5355\u3002","editor.configuration.lightbulb.enabled.off":"\u7981\u7528\u4EE3\u7801\u64CD\u4F5C\u83DC\u5355\u3002","editor.configuration.lightbulb.enabled.onCode":"\u5F53\u5149\u6807\u4E0E\u4EE3\u7801\u4E00\u8D77\u6392\u5217\u65F6\uFF0C\u663E\u793A\u4EE3\u7801\u64CD\u4F5C\u83DC\u5355\u3002","editor.configuration.lightbulb.enabled.on":"\u5F53\u5149\u6807\u4E0E\u4EE3\u7801\u4E00\u8D77\u6392\u5217\u6216\u5728\u7A7A\u7684\u884C\u65F6\uFF0C\u663E\u793A\u4EE3\u7801\u64CD\u4F5C\u83DC\u5355\u3002","diffEditor.configuration.renderSideBySide":"\u63A7\u5236\u5DEE\u5F02\u7F16\u8F91\u5668\u7684\u663E\u793A\u65B9\u5F0F\u3002","diffEditor.configuration.ignoreTrimWhitespace":"\u542F\u7528\u540E\uFF0C\u5DEE\u5F02\u7F16\u8F91\u5668\u7684\u524D\u5BFC\u548C\u5C3E\u968F\u7A7A\u767D\u5B57\u7B26\u5C06\u4F1A\u5FFD\u7565","diffEditor.action.toggleCollapseUnchangedRegions":"\u6298\u53E0\u672A\u66F4\u6539\u7684\u4EE3\u7801\u533A\u57DF","inlineSuggest.enabled":"\u63A7\u5236\u662F\u5426\u5728\u7F16\u8F91\u5668\u4E2D\u81EA\u52A8\u663E\u793A\u5185\u8054\u5EFA\u8BAE\u3002","view.component.renderedError":"\u89C6\u56FE\u7EC4\u4EF6\u6E32\u67D3\u5F02\u5E38","view.component.tryAgain":"\u91CD\u65B0\u52A0\u8F7D","test.title":"\u6D4B\u8BD5\u7BA1\u7406\u5668","test.result.runFinished":"\u6D4B\u8BD5\u8FD0\u884C\u5B8C\u6210\u4E8E {0}","test.task.unnamed":"\u672A\u547D\u540D\u4EFB\u52A1","test.results":"\u6D4B\u8BD5\u7ED3\u679C","menu.missing.command":"\u83DC\u5355{0} \u8981\u6267\u884C\u7684\u547D\u4EE4\u4E0D\u5B58\u5728\uFF1A{1}","menu.missing.altCommand":"\u83DC\u5355{0} \u8981\u6267\u884C\u7684\u547D\u4EE4(altCommand)\u4E0D\u5B58\u5728\uFF1A{1}","menu.dupe.command":"\u83DC\u5355{0} command({1}) \u548C alt({2}) \u6CE8\u518C\u91CD\u590D","command.category.developerTools":"\u5F00\u53D1\u4EBA\u5458\u5DE5\u5177","connection.start.rtt":"\u67E5\u770B\u901A\u4FE1\u5EF6\u8FDF","connection.stop.rtt":"\u5173\u95ED\u901A\u4FE1\u5EF6\u8FDF\u68C0\u67E5","debug.terminal.label":"\u521B\u5EFA Javascript Debug Terminal","debug.terminal.title":"\u8C03\u8BD5\u8FDB\u7A0B","workbench.action.tasks.runTask":"\u8FD0\u884C\u4EFB\u52A1","workbench.action.tasks.reRunTask":"\u6267\u884C\u4E0A\u6B21\u8FD0\u884C\u7684\u4EFB\u52A1","workbench.action.tasks.restartTask":"\u91CD\u65B0\u5F00\u59CB\u8FD0\u884C\u4E2D\u7684\u4EFB\u52A1","workbench.action.tasks.terminate":"\u7EC8\u6B62\u4EFB\u52A1","workbench.action.tasks.showTasks":"\u5C55\u793A\u4EFB\u52A1","workbench.action.tasks.showLog":"\u5C55\u793A\u4EFB\u52A1\u65E5\u5FD7","task.contribute":"\u8D21\u732E","task.cannotFindTask":"\u672A\u627E\u5230 {0} \u7684\u4EFB\u52A1\uFF0C\u6309\u56DE\u8F66\u952E\u8FD4\u56DE","comment.reply.count":"{0} \u4E2A\u8BC4\u8BBA","comment.reply.lastReply":"\u6700\u540E\u7531 {0} \u8BC4\u8BBA","walkthroughs.welcome":"\u6B22\u8FCE\u4F7F\u7528","walkthroughs.get.started":"\u6253\u5F00 `\u5165\u95E8` \u6F14\u793A","mergeEditor.reset":"\u91CD\u7F6E","mergeEditor.workbench.tab.name":"\u6B63\u5728\u5408\u5E76: {0}","mergeEditor.conflict.action.apply.confirm.title":"\u5F53\u524D\u6587\u4EF6\u8FD8\u6709\u672A\u5904\u7406\u7684\u51B2\u7A81\u6216\u53D8\u66F4\uFF0C\u662F\u5426\u5E94\u7528\u5E76\u4FDD\u5B58\u66F4\u6539\uFF1F","mergeEditor.conflict.action.apply.confirm.continue":"\u7EE7\u7EED\u5408\u5E76","mergeEditor.conflict.action.apply.confirm.complete":"\u786E\u8BA4\u4FDD\u5B58\u5E76\u66F4\u6539","mergeEditor.action.button.apply":"\u5E94\u7528\u66F4\u6539","mergeEditor.action.button.apply-and-stash":"\u5E94\u7528\u5E76\u6682\u5B58","mergeEditor.action.button.accept.left":"\u63A5\u53D7\u5DE6\u8FB9","mergeEditor.action.button.accept.right":"\u63A5\u53D7\u53F3\u8FB9","mergeEditor.open.3way":"3-way \u7F16\u8F91\u5668","mergeEditor.conflict.prev":"\u4E0A\u4E00\u5904\u51B2\u7A81","mergeEditor.conflict.next":"\u4E0B\u4E00\u5904\u51B2\u7A81","mergeEditor.conflict.ai.resolve.all":"AI \u89E3\u51B3","mergeEditor.conflict.ai.resolve.all.stop":"\u5168\u90E8\u505C\u6B62","mergeEditor.open.tradition":"\u4F20\u7EDF\u7F16\u8F91\u5668","workbench.quickOpen.preserveInput":"\u662F\u5426\u5728 QuickOpen \u7684\u8F93\u5165\u6846\uFF08\u5305\u62EC\u547D\u4EE4\u9762\u677F\uFF09\u4E2D\u4FDD\u7559\u4E0A\u6B21\u8F93\u5165\u7684\u5185\u5BB9","aiNative.chat.ai.assistant.name":"AI \u7814\u53D1\u52A9\u624B","aiNative.chat.input.placeholder.default":'\u53EF\u4EE5\u95EE\u6211\u4EFB\u4F55\u95EE\u9898\uFF0C\u6216\u952E\u5165\u4E3B\u9898 "/" ',"aiNative.chat.stop.immediately":"\u6211\u5148\u4E0D\u60F3\u4E86\uFF0C\u6709\u9700\u8981\u53EF\u4EE5\u968F\u65F6\u95EE\u6211","aiNative.chat.error.response":"\u5F53\u524D\u4E0E\u6211\u4E92\u52A8\u7684\u4EBA\u592A\u591A\uFF0C\u8BF7\u7A0D\u540E\u518D\u8BD5\uFF0C\u611F\u8C22\u60A8\u7684\u7406\u89E3\u4E0E\u652F\u6301","aiNative.chat.code.insert":"\u63D2\u5165\u4EE3\u7801","aiNative.chat.code.copy":"\u590D\u5236\u4EE3\u7801","aiNative.chat.code.copy.success":"\u590D\u5236\u6210\u529F","aiNative.chat.expand.unfullscreen":"\u6536\u8D77","aiNative.chat.expand.fullescreen":"\u5C55\u5F00\u5168\u5C4F","aiNative.chat.enter.send":"Enter \u53D1\u9001","aiNative.inline.chat.operate.check.title":"\u91C7\u7EB3","aiNative.inline.chat.operate.thumbsup.title":"\u8D5E","aiNative.inline.chat.operate.thumbsdown.title":"\u8E29","aiNative.inline.chat.operate.loading.cancel":"\u6309 ESC \u53D6\u6D88","aiNative.inline.chat.input.placeholder.default":"\u53EF\u4EE5\u95EE\u6211\u4EFB\u4F55\u95EE\u9898\uFF0C\u652F\u6301 shift + \u56DE\u8F66\u6362\u884C","aiNative.inline.hint.widget.placeholder":"\u6309 {0} \u5524\u8D77 Inline Chat","aiNative.resolve.conflict.dialog.afresh":"\u4F60\u786E\u5B9A\u8981\u91CD\u65B0\u751F\u6210\u5417\uFF1F","aiNative.resolve.conflict.dialog.detection":`\u68C0\u6D4B\u5230\u60A8\u5DF2\u505A\u4E86\u4FEE\u6539\uFF0C\u91CD\u65B0\u751F\u6210\u4F1A\u8986\u76D6\u6389
|
|
27877
27877
|
\u60A8\u4FEE\u6539\u7684\u90E8\u5206\uFF0C\u662F\u5426\u786E\u8BA4\u8FDB\u884C\u91CD\u65B0\u751F\u6210\u3002`,"aiNative.resolve.conflict.message.not.processed.yet":"AI \u5DF2\u5904\u7406 {0} \u5904\u51B2\u7A81\uFF0C{1} \u5904\u51B2\u7A81\u6682\u672A\u5904\u7406\uFF08\u4ECD\u6807\u8BB0\u4E3A\u9EC4\u8272\u90E8\u5206\uFF09\uFF0C\u9700\u4EBA\u5DE5\u5904\u7406","aiNative.operate.discard.title":"\u4E22\u5F03","aiNative.operate.afresh.title":"\u91CD\u65B0\u751F\u6210","aiNative.operate.stop.title":"\u505C\u6B62","aiNative.operate.close.title":"\u5173\u95ED","aiNative.operate.clear.title":"\u6E05\u7A7A","aiNative.chat.welcome.loading.text":"\u521D\u59CB\u5316\u4E2D...","preference.ai.native.inlineChat.title":"Inline Chat","preference.ai.native.chat.title":"Chat","preference.ai.native.interface.quick.title":"\u63A5\u53E3\u5FEB\u901F\u8DF3\u8F6C","preference.ai.native.interface.quick.navigation":"\u70B9\u51FB\u7F16\u8F91\u5668\u5DE6\u4FA7\u56FE\u6807\u5FEB\u901F\u8DF3\u8F6C\u5230\u63A5\u53E3\u5B9E\u73B0","preference.ai.native.interface.quick.navigation.hover":"\u8DF3\u8F6C\u5230\u5B9E\u73B0","preference.ai.native.inlineChat.auto.visible":"\u662F\u5426\u5728\u9009\u4E2D\u4EE3\u7801\u7247\u6BB5\u65F6\u81EA\u52A8\u663E\u793A Inline Chat?","preference.ai.native.inlineChat.codeAction.enabled":"\u662F\u5426\u542F\u7528\u5728\u9009\u4E2D\u4EE3\u7801\u7247\u6BB5\u65F6\u663E\u793A Inline Chat \u76F8\u5173\u7684 Code Actions?","preference.ai.native.chat.visible.type":"\u63A7\u5236 Chat \u9762\u677F\u9ED8\u8BA4\u7684\u5C55\u793A\u65B9\u5F0F","preference.ai.native.inlineCompletions.title":"\u5185\u8054\u8865\u5168","preference.ai.native.inlineCompletions.promptEngineering.enabled":"\u662F\u5426\u542F\u7528\u63D0\u793A\u8BCD\u5DE5\u7A0B\uFF0C\u4E00\u4E9B LLM \u6A21\u578B\u5728\u63D0\u793A\u8BCD\u5DE5\u7A0B\u4E0A\u53EF\u80FD\u8868\u73B0\u4E0D\u4F73\u3002","preference.ai.native.inlineCompletions.debounceTime":"\u5185\u8054\u8865\u5168\u7684\u5EF6\u8FDF\u65F6\u95F4\uFF08\u6BEB\u79D2\uFF09","webview.webviewTagUnavailable":"\u975E Electron \u73AF\u5883\u4E0D\u652F\u6301 webview \u6807\u7B7E\uFF0C\u8BF7\u4F7F\u7528 iframe \u6807\u7B7E"},a.browserViews),o.editorLocalizations),I.zhCN)}},10199:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),t(85608).__exportStar(t(32581),e)},21774:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.KeymapsModule=void 0;const n=t(85608),a=t(76003),o=t(41869),I=t(25067),g=t(48644),u=t(85448);let G=class extends o.BrowserModule{constructor(){super(...arguments),this.providers=[{token:I.IKeymapService,useClass:u.KeymapService},g.KeymapsContribution]}};G=n.__decorate([(0,a.Injectable)()],G),e.KeymapsModule=G},2312:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.KeymapsParser=e.keymapsSchema=void 0;const n=t(85608),a=n.__importDefault(t(82174)),o=n.__importStar(t(23304)),I=t(76003);e.keymapsSchema={type:"array",items:{type:"object",properties:{key:{type:"string"},keybinding:{type:"string",deprecated:!0},command:{type:"string"},context:{type:"string"},when:{type:"string"},args:{}},required:["command"],optional:["key","keybinding","when","args"],additionalProperties:!1}};let g=class{constructor(){this.validate=new a.default({jsonPointers:!0}).compile(e.keymapsSchema)}parse(G,p){const b=o.stripComments(G),m=p?[]:void 0,d=o.parse(b,m);if(m&&p)for(const s of m)p.push(`${this.printParseErrorCode(s.error)} at ${s.offset} offset of ${s.length} length`);if(this.validate(d))return d;if(p&&this.validate.errors)for(const s of this.validate.errors)p.push(`${s.message} at ${s.dataPath}`);return[]}printParseErrorCode(G){switch(G){case 1:return"InvalidSymbol";case 2:return"InvalidNumberFormat";case 3:return"PropertyNameExpected";case 4:return"ValueExpected";case 5:return"ColonExpected";case 6:return"CommaExpected";case 7:return"CloseBraceExpected";case 8:return"CloseBracketExpected";case 9:return"EndOfFileExpected";case 10:return"InvalidCommentToken";case 11:return"UnexpectedEndOfComment";case 12:return"UnexpectedEndOfString";case 13:return"UnexpectedEndOfNumber";case 14:return"InvalidUnicode";case 15:return"InvalidEscapeCharacter";case 16:return"InvalidCharacter"}return"<unknown ParseErrorCode>"}};g=n.__decorate([(0,I.Injectable)(),n.__metadata("design:paramtypes",[])],g),e.KeymapsParser=g},48644:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.KeymapsContribution=e.KEYMAP_COMMANDS=e.KeymapsContextMenu=e.KeymapsResourceProvider=void 0;const n=t(85608),a=t(76003),o=t(41869),I=t(93899),g=t(57517),u=t(42933),G=t(97821),p=t(25067),b=t(34879),m="keymaps-preview";let d=class extends o.WithEventBus{constructor(){super(),this.scheme=p.KEYMAPS_SCHEME}provideResource(h){return{supportsRevive:!0,name:(0,o.localize)("keymaps.tab.name"),icon:(0,o.getIcon)("setting"),uri:h}}provideResourceSubname(h,v){return null}async shouldCloseResource(h,v){return!0}};d=n.__decorate([(0,a.Injectable)(),n.__metadata("design:paramtypes",[])],d),e.KeymapsResourceProvider=d;var s;(function(c){c.KEYMAPS="2_keymaps"})(s=e.KeymapsContextMenu||(e.KeymapsContextMenu={}));var l;(function(c){const h="keymaps";c.OPEN_SOURCE_FILE={id:"keymaps.open.source",label:"%keymaps.editorTitle.openSource%",category:h}})(l=e.KEYMAP_COMMANDS||(e.KEYMAP_COMMANDS={}));let r=class{registerCommands(h){h.registerCommand(o.COMMON_COMMANDS.OPEN_KEYMAPS,{isEnabled:()=>!0,execute:async()=>{await this.keymapService.open()}}),h.registerCommand(l.OPEN_SOURCE_FILE,{execute:async()=>{this.keymapService.openResource()}}),h.registerCommand(o.KEYBOARD_COMMANDS.CHOOSE_KEYBOARD_LAYOUT,{execute:()=>{this.chooseLayout()}})}registerMenus(h){h.registerMenuItem(I.MenuId.SettingsIconMenu,{command:o.COMMON_COMMANDS.OPEN_KEYMAPS.id,group:s.KEYMAPS}),h.registerMenuItem(I.MenuId.EditorTitle,{command:l.OPEN_SOURCE_FILE.id,iconClass:(0,o.getIcon)("open"),group:"navigation",order:4,when:`resourceScheme == ${p.KEYMAPS_SCHEME}`}),h.registerMenuItem(I.MenuId.EditorTitle,{command:o.COMMON_COMMANDS.OPEN_KEYMAPS.id,iconClass:(0,o.getIcon)("open"),group:"navigation",order:4,when:"resourceFilename =~ /keymaps.json/"})}registerKeybindings(h){h.registerKeybinding({command:o.COMMON_COMMANDS.OPEN_KEYMAPS.id,keybinding:"ctrlcmd+K ctrlcmd+S"})}onStart(){this.keymapService.init()}registerResource(h){h.registerResourceProvider(this.keymapsResourceProvider)}registerEditorComponent(h){h.registerEditorComponent({component:b.KeymapsView,uid:m,scheme:p.KEYMAPS_SCHEME}),h.registerEditorComponentResolver(p.KEYMAPS_SCHEME,(v,f,W)=>{W([{type:g.EditorOpenType.component,componentId:m}])})}async chooseLayout(){const h=this.layoutProvider.currentLayoutData,v={label:(0,o.localize)("keyboard.autoDetect.label"),description:h&&this.layoutProvider.currentLayoutSource!=="user-choice"?(0,o.formatLocalize)("keyboard.autoDetect.description",(0,o.getKeyboardLayoutId)(h.layout)):void 0,detail:(0,o.localize)("keyboard.autoDetect.detail"),value:"autodetect"},f=this.layoutProvider.allLayoutData.map(Z=>this.toQuickPickValue(Z,h===Z));let W;W=[v,...f];const N=await this.quickPickService.show(W,{placeholder:"Choose a keyboard layout"});if(N)return this.layoutProvider.setLayoutData(N)}toQuickPickValue(h,v){return{label:(0,o.getKeyboardLayoutId)(h.layout),value:h}}};n.__decorate([(0,a.Autowired)(G.QuickPickService),n.__metadata("design:type",Object)],r.prototype,"quickPickService",void 0),n.__decorate([(0,a.Autowired)(o.KeyboardNativeLayoutService),n.__metadata("design:type",Object)],r.prototype,"layoutProvider",void 0),n.__decorate([(0,a.Autowired)(u.IFileServiceClient),n.__metadata("design:type",Object)],r.prototype,"filesystem",void 0),n.__decorate([(0,a.Autowired)(d),n.__metadata("design:type",d)],r.prototype,"keymapsResourceProvider",void 0),n.__decorate([(0,a.Autowired)(p.IKeymapService),n.__metadata("design:type",Object)],r.prototype,"keymapService",void 0),r=n.__decorate([(0,o.Domain)(o.CommandContribution,o.KeybindingContribution,o.ClientAppContribution,g.BrowserEditorContribution,I.MenuContribution)],r),e.KeymapsContribution=r},85448:(L,e,t)=>{"use strict";var n;Object.defineProperty(e,"__esModule",{value:!0}),e.KeymapService=void 0;const a=t(85608),o=a.__importStar(t(39050)),I=t(76003),g=t(41869),u=t(68969),G=t(14951),p=t(25067),b=t(2312);let m=n=class{constructor(){this.keymapChangeEmitter=new g.Emitter,this.convertKeySequence=[],this.toUnregisterUserKeybindingMap=new Map,this.toRestoreDefaultKeybindingMap=new Map,this.searchDelayer=new g.ThrottledDelayer(n.DEFAULT_SEARCH_DELAY),this.disposableCollection=new g.DisposableCollection,this._whenReadyDeferred=new g.Deferred,this.fuzzyOptions={pre:"<match>",post:"</match>"},this.reconcileQueue=new g.Throttler,this.keybindings=[],this.updateKeybindings=()=>{this.currentSearchValue?this.doSearchKeybindings(this.currentSearchValue):(0,g.runWhenIdle)(()=>{this.keybindings=this.getKeybindingItems(),this.keymapChangeEmitter.fire(this.keybindings)})},this.setKeybinding=(s,l)=>this.progressService.withProgress({location:g.ProgressLocation.Notification},r=>new Promise((c,h)=>{r.report({message:(0,g.localize)("keymaps.keybinding.loading"),increment:0,total:100});const v=this.storeKeybindings||[];let f=!1;for(const W of v){const N={when:W.when,command:W.command,keybinding:W.key};if(W.command===l.command){f=!0,this.unregisterUserKeybinding(N);const Z=this.toUniqueKey(s),y=this.toRestoreDefaultKeybindingMap.get(Z);if(y){const E=this.toUniqueKey(l);this.toRestoreDefaultKeybindingMap.delete(Z),this.toRestoreDefaultKeybindingMap.set(E,y)}W.key=l.keybinding,this.registerUserKeybinding(Object.assign(Object.assign({},N),{priority:g.KeybindingWeight.WorkbenchContrib*100}))}}if(!f){const W=this.keybindings.find(Z=>Z.id===l.command&&this.getRaw(Z.when)===l.when);if(W&&W.keybinding){this.unregisterDefaultKeybinding({when:this.getRaw(W.when),command:W.id,keybinding:this.getRaw(W.keybinding)});const Z=this.toUniqueKey(s),y=this.toRestoreDefaultKeybindingMap.get(Z);if(y){const E=this.toUniqueKey(l);this.toRestoreDefaultKeybindingMap.delete(Z),this.toRestoreDefaultKeybindingMap.set(E,y)}}const N={when:this.getWhen(l),command:l.command,key:l.keybinding};v.push(N),this.registerUserKeybinding(l)}return this.saveKeybinding(v).then(()=>{c(void 0),r.report({message:(0,g.localize)("keymaps.keybinding.success"),increment:99})}).catch(W=>{h(W),r.report({message:(0,g.localize)("keymaps.keybinding.fail"),increment:99})}).finally(()=>{setTimeout(()=>{r.report({increment:100})},3e3)})}),()=>{}),this.covert=s=>this.keybindingService.convert(s," "),this.clearCovert=()=>this.keybindingService.clearConvert(),this.resetKeybinding=async s=>{if(!this.resource)return;const r=this.storeKeybindings.filter(c=>c.command!==s.command);return this.unregisterUserKeybinding(s),this.restoreDefaultKeybinding(s),this.saveKeybinding(r)},this.fixed=async()=>{this.commandService.executeCommand(g.EDITOR_COMMANDS.OPEN_RESOURCE.id,new g.URI().withScheme(p.KEYMAPS_SCHEME),{preview:!1})},this.searchKeybindings=s=>{this.currentSearchValue=s,this.searchDelayer.isTriggered||this.searchDelayer.cancel(),this.searchDelayer.trigger(async()=>{this.doSearchKeybindings(this.currentSearchValue)})},this.isSearching=!1,this.doSearchKeybindings=s=>{s?this.isSearching=!0:this.isSearching=!1;const l=this.getKeybindingItems(),r=[];l.forEach(c=>{const h=["id","command","keybinding","when","context","source"];let v=!1;for(const f of h){const W=c[f];if(W){const N=o.match(s,W,this.fuzzyOptions);if(N)c[f]=N.rendered,v=!0;else if(f==="keybinding"){const Z=s.split("+"),y=W.split(" "),E=[0];let R=[];y.length>1?y.forEach(F=>{const V=F.split("+");E.push(V.length+E[-1]),R.push(...V)}):R=W.split("+"),E.shift();const A=[...R];let w=0;if(Z.forEach(F=>{let V={rendered:"",score:0},Y=-1;if(W){R.forEach(H=>{const S=o.match(F,H,this.fuzzyOptions);S&&S.score>V.score&&(V=S,Y=A.indexOf(H))});const _=V.rendered;_&&(Y>-1&&(A[Y]=_),R.splice(Y,1,""),w+=1)}}),w===Z.length){if(E.length>0){const F="";A.forEach((V,Y)=>{Y===0?F.concat(V):E.indexOf(Y)!==-1?F.concat(" "+V):F.concat("+"+V)}),c[f]=F}c[f]=A.join("+"),v=!0}}}}v&&r.push(c)}),this.keybindings=r,this.keymapChangeEmitter.fire(this.keybindings)},this.validateKeybinding=(s,l)=>{if(!l)return(0,g.localize)("keymaps.keybinding.require");try{const r={command:this.isSearching?this.getRaw(s.command):s.command,when:this.isSearching?this.getRaw(s.when):s.when,keybinding:this.isSearching?this.getRaw(l):l};return s.keybinding===l?" ":this.keybindingRegistry.validateKeybindingInScope(r)}catch(r){return r}},this.detectKeybindings=(s,l)=>{if(!l)return[];try{if(s.keybinding===l)return[];const r=this.keybindings.filter(c=>this.getRaw(c.keybinding)===l);if(r.length>0)return r.map(c=>{const h=this.commandRegistry.getCommand(this.getRaw(c.command)),v=this.storeKeybindings.find(f=>h&&f.command===h.id);return c.when=this.getRaw(c.when),c.keybinding=this.getRaw(c.keybinding),{id:h?h.id:this.getRaw(c.command),command:(h?h.label||h.id:c.command)||"",when:this.keybindingService.convertMonacoWhen(c.when),keybinding:this.getRaw(c.keybinding),source:v?this.getScope(g.KeybindingScope.USER):this.getScope(g.KeybindingScope.DEFAULT)}})}catch(r){this.logger.error(r)}return[]}}get onDidKeymapChanges(){return this.keymapChangeEmitter.event}get storeKeybindings(){return this._storeKeybindings&&this._storeKeybindings.map(s=>Object.assign(Object.assign({},s),{command:this.getValidateCommand(s.command),key:s.key||s.keybinding}))}set storeKeybindings(s){this._storeKeybindings=s}get whenReady(){return this._whenReadyDeferred.promise}async init(){await this.reconcile();const s=await this.filesystem.watchFileChanges(n.KEYMAP_FILE_URI);this.disposableCollection.push(s),s.onFilesChanged(()=>{this.reconcileQueue.queue(this.reconcile.bind(this))}),this._whenReadyDeferred.resolve()}async openResource(){if(!this.resource||!this.resource.uri)return;const s=await this.resource.uri;if(!s)return;if(!await this.filesystem.access(s)){const r=await this.filesystem.createFile(s),c=await this.filesystem.setContent(r,`{
|
|
27878
|
-
}`);this.resource=c||void 0}s&&this.commandService.executeCommand(g.EDITOR_COMMANDS.OPEN_RESOURCE.id,new g.URI(s),{preview:!1})}disposeRegistedKeybinding(){for(const[,s]of this.toUnregisterUserKeybindingMap)s.dispose();for(const[,s]of this.toRestoreDefaultKeybindingMap)s.dispose()}dispose(){this.disposeRegistedKeybinding(),this.disposableCollection.dispose()}getValidateCommand(s){return s.replace(/^monaco.editor/,"editor")}async reconcile(s){const l=n.KEYMAP_FILE_URI.toString();this.resource=await this.filesystem.getFileStat(l),this.resource||(this.resource=await this.filesystem.createFile(l,{content:JSON.stringify([])}));const c=(s?s.slice(0):await this.parseKeybindings()).map(f=>({when:f.when,command:this.getValidateCommand(f.command),keybinding:f.key||f.keybinding})),h=[],v=[];this.disposeRegistedKeybinding(),c.forEach(f=>{f.command.startsWith("-")?v.push(f):h.push(f)}),h.map(f=>{this.unregisterDefaultKeybinding(f,!0),this.registerUserKeybinding(f)}),v.map(f=>{f.command=f.command.slice(1),this.unregisterDefaultKeybinding(f,!0)})}unregisterUserKeybinding(s){const l=this.toUniqueKey(s);if(this.toUnregisterUserKeybindingMap.has(l)){const r=this.toUnregisterUserKeybindingMap.get(l);r?.dispose(),this.toUnregisterUserKeybindingMap.delete(l)}}registerUserKeybinding(s){const l=this.toUniqueKey(s);this.toUnregisterUserKeybindingMap.set(l,this.keybindingRegistry.registerKeybinding(s,g.KeybindingScope.USER))}unregisterDefaultKeybinding(s,l=!1){if(l)this.keybindingRegistry.getKeybindingsForCommand(s.command).map(c=>{const h=Object.assign(Object.assign({},s),{keybinding:c.keybinding});this.keybindingRegistry.unregisterKeybinding(h);const v=this.toUniqueKey(s);this.toRestoreDefaultKeybindingMap.set(v,g.Disposable.create(()=>{this.keybindingRegistry.registerKeybinding(h)}))});else{this.keybindingRegistry.unregisterKeybinding(s);const r=this.toUniqueKey(s);this.toRestoreDefaultKeybindingMap.set(r,g.Disposable.create(()=>{this.keybindingRegistry.registerKeybinding(s)}))}}restoreDefaultKeybinding(s){const l=this.toUniqueKey(s),r=this.toRestoreDefaultKeybindingMap.get(l);r&&(r?.dispose(),this.toRestoreDefaultKeybindingMap.delete(l))}toUniqueKey(s){return`${s.command}${s.when?`-${s.when}`:"-"}${s.keybinding?`-${s.keybinding}`:"-"}`}async parseKeybindings(){try{const s=await this.resource;if(!s)return[];const{content:l}=await this.filesystem.readFile(s.uri);this.storeKeybindings=this.parser.parse(l.toString())}catch(s){this.logger.warn(`ParseKeybindings fail: ${s.stack}`),this.storeKeybindings=[]}return this.storeKeybindings}async saveKeybinding(s){this.storeKeybindings=s,this.updateKeybindings(),this.resource||(this.resource=await this.filesystem.createFile(n.KEYMAP_FILE_URI.toString()));const l=await this.filesystem.setContent(this.resource,JSON.stringify(s,void 0,2));this.resource=l||void 0}async getKeybindings(){return this.storeKeybindings.map(s=>({command:s.command,keybinding:s.key,when:s.when,args:s.args}))}async open(){this.commandService.executeCommand(g.EDITOR_COMMANDS.OPEN_RESOURCE.id,new g.URI().withScheme(p.KEYMAPS_SCHEME),{preview:!0})}getWhen(s){return s?this.keybindingService.convertMonacoWhen(s.when):""}getScope(s){return s===g.KeybindingScope.DEFAULT?(0,g.localize)("keymaps.source.default"):s===g.KeybindingScope.USER?(0,g.localize)("keymaps.source.user"):s===g.KeybindingScope.WORKSPACE?(0,g.localize)("keymaps.source.workspace"):""}getKeybindingItems(){const s=this.commandRegistry.getCommands(),l=[];for(const W of s){const N=this.keybindingRegistry.getKeybindingsForCommand(W.id);!N||!N.length?W.label&&l.push({id:W.id,command:W.label,hasCommandLabel:!0}):N.forEach(Z=>{let y;if(this.storeKeybindings){const E=this.storeKeybindings.find(R=>W&&R.command===W.id);y={id:W.id,command:W.label||W.id,keybinding:E?E.key:Z?this.keybindingRegistry.acceleratorFor(Z,"+").join(" "):"",when:E?this.getWhen(E):this.getWhen(N&&Z),source:E?this.getScope(g.KeybindingScope.USER):this.getScope(g.KeybindingScope.DEFAULT),hasCommandLabel:!!W.label}}else y={id:W.id,command:W.label||W.id,keybinding:N&&Z?this.keybindingRegistry.acceleratorFor(Z,"+").join(" "):"",when:this.getWhen(N&&Z),source:N&&Z&&typeof Z.scope<"u"?this.getScope(Z.scope):"",hasCommandLabel:!!W.label};l.push(y)})}const r=l.sort((W,N)=>this.compareItem(W,N)),c=r.filter(W=>!!W.keybinding),h=r.filter(W=>!W.keybinding&&W.hasCommandLabel),v=c.filter(W=>W.hasCommandLabel),f=c.filter(W=>!W.hasCommandLabel);return[...v,...f,...h]}compareItem(s,l){return s&&l?s.source===l.source?s.command.toLowerCase().localeCompare(l.command.toLowerCase()):s.source===this.getScope(g.KeybindingScope.USER)?-1:1:0}getRaw(s){return s?s.replace(new RegExp(/<(\/)?match>/gi),""):""}};m.DEFAULT_SEARCH_DELAY=100,m.KEYMAP_FILE_URI=new g.URI().withScheme(g.Schemes.userStorage).withPath(p.KEYMAPS_FILE_NAME),a.__decorate([(0,I.Autowired)(g.KeybindingRegistry),a.__metadata("design:type",Object)],m.prototype,"keyBindingRegistry",void 0),a.__decorate([(0,I.Autowired)(b.KeymapsParser),a.__metadata("design:type",b.KeymapsParser)],m.prototype,"parser",void 0),a.__decorate([(0,I.Autowired)(g.CommandService),a.__metadata("design:type",Object)],m.prototype,"commandService",void 0),a.__decorate([(0,I.Autowired)(g.CommandRegistry),a.__metadata("design:type",Object)],m.prototype,"commandRegistry",void 0),a.__decorate([(0,I.Autowired)(g.KeybindingRegistry),a.__metadata("design:type",Object)],m.prototype,"keybindingRegistry",void 0),a.__decorate([(0,I.Autowired)(g.KeybindingService),a.__metadata("design:type",Object)],m.prototype,"keybindingService",void 0),a.__decorate([(0,I.Autowired)(G.IFileServiceClient),a.__metadata("design:type",Object)],m.prototype,"filesystem",void 0),a.__decorate([(0,I.Autowired)(g.ILogger),a.__metadata("design:type",Object)],m.prototype,"logger",void 0),a.__decorate([(0,I.Autowired)(u.IProgressService),a.__metadata("design:type",Object)],m.prototype,"progressService",void 0),m=n=a.__decorate([(0,I.Injectable)()],m),e.KeymapService=m},34879:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.KeymapsView=void 0;const n=t(85608),a=n.__importDefault(t(53373)),o=n.__importStar(t(14041)),I=t(97267),g=t(41869),u=t(25067),G=n.__importDefault(t(78541)),p=()=>{const{keybindings:b,searchKeybindings:m,validateKeybinding:d,detectKeybindings:s,setKeybinding:l,resetKeybinding:r,getRaw:c,getScope:h,covert:v,clearCovert:f,fixed:W,onDidKeymapChanges:N,updateKeybindings:Z}=(0,g.useInjectable)(u.IKeymapService),[y,E]=o.default.useState(!1),[R,A]=o.default.useState(""),[w,F]=o.default.useState(b),V=({data:T,index:x})=>{const{id:B,command:D,when:J,source:k,keybinding:z}=T,[P,U]=o.default.useState(!1),[oe,se]=o.default.useState(z||""),[ae,he]=o.default.useState(!1),[ee,pe]=o.default.useState(),[ge,$]=o.default.useState([]),le=()=>{ae||(W(),he(!0)),f(),se(c(z)),U(!0)},te=Ge=>{const re=d(T,Ge);re?re!==" "?pe({message:re,type:I.VALIDATE_TYPE.ERROR}):U(!1):(l({command:c(B),when:c(J)||"",keybinding:c(z)},{command:c(B),when:c(J)||"",keybinding:Ge}),U(!1),f())},ue=()=>{U(!1)},q=Ge=>{Ge.stopPropagation(),Ge.preventDefault();const{key:re}=g.KeyCode.createKeyCode(Ge.nativeEvent),me=Ge.nativeEvent.shiftKey||Ge.nativeEvent.metaKey||Ge.nativeEvent.altKey||Ge.nativeEvent.ctrlKey;re&&g.Key.ENTER.keyCode===re.keyCode&&!me?oe&&te(oe):se(v(Ge.nativeEvent))},j=()=>{const Ge=()=>{pe(void 0),oe&&se(""),f()},re=me=>{me.stopPropagation(),me.preventDefault()};return o.default.createElement("div",{className:G.default.keybinding_optional_actions,onMouseDown:re},o.default.createElement("span",{className:(0,a.default)((0,g.getIcon)("close-circle-fill"),G.default.keybinding_optional_action),onClick:Ge,title:(0,g.localize)("keymaps.action.clear")}))},ie=()=>o.default.createElement("div",{className:G.default.keybinding_key_input_placeholder},"\u23CE"),ne=Ge=>{const re=me=>{me.preventDefault(),ae||(W(),he(!0)),r({command:c(B),when:c(J)||"",keybinding:oe})};if(Ge&&c(Ge)===h(g.KeybindingScope.USER))return o.default.createElement("span",{className:(0,a.default)((0,g.getIcon)("rollback"),G.default.keybinding_inline_action),onClick:re,title:(0,g.localize)("keymaps.action.reset")})},de=()=>{if(!ee&&ge.length>0)return o.default.createElement("div",{className:G.default.keybinding_detective_messages},o.default.createElement("div",{className:G.default.keybinding_detective_messages_label},(0,g.formatLocalize)("keymaps.keybinding.duplicate",ge.length)),o.default.createElement("ul",{className:G.default.keybinding_detective_messages_container},ge.map((Ge,re)=>o.default.createElement("li",{className:G.default.keybinding_detective_messages_item,key:`${Ge.id}_${re}`,title:`${Ge.command}-${Ge.when}`},o.default.createElement("div",{className:G.default.title},(0,g.localize)("keymaps.header.command.title"),": ",c(Ge.command)||"-"),o.default.createElement("div",{className:G.default.description},o.default.createElement("div",{style:{marginRight:4}},(0,g.localize)("keymaps.header.source.title"),": ",c(Ge.source)||"-"),o.default.createElement("div",null,(0,g.localize)("keymaps.header.when.title"),": ",c(Ge.when)||"\u2014"))))))},Ie=()=>{if(P)return o.default.createElement("div",{className:G.default.keybinding_key_input_container},j(),o.default.createElement(I.ValidateInput,{placeholder:(0,g.localize)("keymaps.edit.placeholder"),validateMessage:ee,className:G.default.keybinding_key_input,size:"small",autoFocus:!0,name:g.NO_KEYBINDING_NAME,value:oe,onKeyDown:q,onBlur:ue}),ie(),de());{const Ge=z?.split(" ");return o.default.createElement("div",{className:G.default.keybinding_key,title:c(z),onDoubleClick:le},o.default.createElement("div",{className:G.default.keybinding_action,onClick:le},o.default.createElement("span",{className:(0,a.default)(z?(0,g.getIcon)("edit"):(0,g.getIcon)("plus"),G.default.keybinding_inline_action),title:z?(0,g.localize)("keymaps.action.edit"):(0,g.localize)("keymaps.action.add")}),ne(k)),Ge&&Ge[0]?Ge.map((re,me)=>{const ve=re.split("+");return o.default.createElement("div",{className:G.default.keybinding_key_block,key:`${re}_${me}`},ve.map((Ne,Ze)=>o.default.createElement("div",{className:G.default.keybinding_key_item,key:`${Ne}_${Ze}`,dangerouslySetInnerHTML:{__html:Ne||""}})))}):"\u2014")}};return(0,o.useEffect)(()=>{ee&&pe(void 0),$(oe&&P?s(T,oe):[])},[oe]),o.default.createElement("div",{className:(0,a.default)(G.default.keybinding_list_item,x%2===1&&G.default.odd)},o.default.createElement("div",{className:(0,a.default)(G.default.keybinding_list_item_box,G.default.keybinding_command)},o.default.createElement("div",{className:G.default.command_name,title:c(D),dangerouslySetInnerHTML:{__html:D}}),o.default.createElement("div",{className:(0,a.default)(G.default.limit_warp,G.default.command_id),title:c(B),dangerouslySetInnerHTML:{__html:(0,g.formatLocalize)("keymaps.commandId.title",B)}})),o.default.createElement("div",{className:(0,a.default)(G.default.keybinding_list_item_box)},Ie()),o.default.createElement("div",{className:G.default.keybinding_list_item_box},o.default.createElement("div",{className:G.default.limit_warp,title:c(J||"\u2014"),dangerouslySetInnerHTML:{__html:J||"\u2014"}})),o.default.createElement("div",{className:G.default.keybinding_list_item_box},o.default.createElement("div",{title:c(k),dangerouslySetInnerHTML:{__html:k||""}})))},Y=()=>{const T=()=>{E(!y)};return o.default.createElement("div",{className:G.default.search_inline_action},o.default.createElement("span",{className:(0,a.default)((0,g.getIcon)("keyboard"),G.default.search_inline_action_icon,y&&G.default.active),onClick:T}))},_=(0,o.useCallback)(T=>{A(T),m(T)},[R]),H=T=>{if(!y){const x=T.target&&T.target.value?T.target.value.toLocaleLowerCase():"";_(x)}},S=T=>{if(y){T.stopPropagation(),T.preventDefault();const{key:x}=g.KeyCode.createKeyCode(T.nativeEvent);if(x&&g.Key.ENTER.keyCode===x.keyCode)return;_(v(T.nativeEvent))}},X=()=>{R&&(A(""),m("")),f()},Q=()=>o.default.createElement("div",{className:G.default.keybinding_optional_actions},o.default.createElement("span",{className:(0,a.default)((0,g.getIcon)("close-circle-fill"),G.default.keybinding_optional_action),onClick:X,title:(0,g.localize)("keymaps.action.reset")})),O=()=>o.default.createElement("div",{className:G.default.search_container},o.default.createElement(I.Input,{className:G.default.search_input,placeholder:(0,g.localize)(y?"keymaps.search.keyboard.placeholder":"keymaps.search.placeholder"),type:"text",value:R,name:g.NO_KEYBINDING_NAME,onChange:H,onKeyDown:S,addonBefore:Y()}),Q()),M=(0,o.useMemo)(()=>{const T=[{title:(0,g.localize)("keymaps.header.command.title"),classname:G.default.keybinding_header_item},{title:(0,g.localize)("keymaps.header.keybinding.title"),classname:G.default.keybinding_header_item},{title:(0,g.localize)("keymaps.header.when.title"),classname:G.default.keybinding_header_item},{title:(0,g.localize)("keymaps.header.source.title"),classname:G.default.keybinding_header_item}];return o.default.createElement("div",{className:G.default.keybinding_header},T.map((x,B)=>o.default.createElement("div",{className:x.classname,key:`${x.title}_${B}`},x.title)))},[]);return(0,o.useEffect)(()=>{const T=N(x=>{F(x)});return Z(),()=>{T.dispose()}},[]),o.default.createElement("div",{className:G.default.keybinding_container},o.default.createElement("div",{className:G.default.keybinding_searchbar},O()),o.default.createElement("div",{className:G.default.keybinding_body},M,o.default.createElement("div",{className:G.default.keybinding_list},o.default.createElement(I.RecycleList,{itemHeight:40,data:w,template:V,className:G.default.keybinding_list_container}))))};e.KeymapsView=p},79312:(L,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.KEYMAPS_FILE_NAME=e.KEYMAPS_SCHEME=void 0,e.KEYMAPS_SCHEME="keymaps",e.KEYMAPS_FILE_NAME="keymaps.json"},25067:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});const n=t(85608);n.__exportStar(t(79312),e),n.__exportStar(t(88811),e)},88811:(L,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.IKeymapService=void 0,e.IKeymapService=Symbol("IKeymapService")},83507:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.LogModule=e.LogServiceClient=void 0;const n=t(85608),a=t(76003),o=t(41869),I=t(47548),g=t(49187);n.__exportStar(t(47548),e);var u=t(1700);Object.defineProperty(e,"LogServiceClient",{enumerable:!0,get:function(){return u.LogServiceClient}});let G=class extends o.BrowserModule{constructor(){super(...arguments),this.providers=[{token:I.ILoggerManagerClient,useClass:g.LoggerManagerClient}],this.backServices=[{servicePath:I.LogServiceForClientPath,clientToken:I.ILoggerManagerClient}]}};G=n.__decorate([(0,a.Injectable)()],G),e.LogModule=G},49187:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.LoggerManagerClient=void 0;const n=t(85608),a=t(76003),o=t(43718),I=t(47548),g=t(1700);let u=class{constructor(){this.logLevelChangeEmitter=new o.Emitter}getLogger(p,b){const m=new g.LogServiceClient(p);return m.setup(this.logServiceForClient,b),m}getBrowserLogger(p){return new g.LogServiceClient(p)}async getLogFolder(){return await this.logServiceForClient.getLogFolder()}async setGlobalLogLevel(p){return await this.logServiceForClient.setGlobalLogLevel(p)}async getGlobalLogLevel(){return await this.logServiceForClient.getGlobalLogLevel()}async dispose(){return this.logLevelChangeEmitter.dispose(),await this.logServiceForClient.disposeAll()}get onDidChangeLogLevel(){return this.logLevelChangeEmitter.event}onDidLogLevelChanged(p){this.logLevelChangeEmitter.fire(p)}};n.__decorate([(0,a.Autowired)(I.LogServiceForClientPath),n.__metadata("design:type",Object)],u.prototype,"logServiceForClient",void 0),u=n.__decorate([(0,a.Injectable)()],u),e.LoggerManagerClient=u},1700:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.LogServiceClient=void 0;const n=t(43718),a=t(47548);class o{constructor(g){this.level=a.LogLevel.Verbose,this.ready=new n.Deferred,this.namespace=g,this.debugLog=new a.DebugLog(g)}async setup(g,u){this.logServiceForClient=g,this.pid=u;const G=await this.logServiceForClient.getGlobalLogLevel();this.level=G,this.ready.resolve()}async getLevel(){return this.logServiceForClient?await this.logServiceForClient.getLevel(this.namespace):this.level}async setLevel(g){this.level=g,this.logServiceForClient&&await this.logServiceForClient.setLevel(this.namespace,g)}async verbose(...g){this.debugLog.verbose(...g),this.logServiceForClient&&await this.logServiceForClient.verbose(this.namespace,(0,a.format)(g),this.pid)}async debug(...g){this.debugLog.debug(...g),this.logServiceForClient&&(await this.ready.promise,!(this.level>a.LogLevel.Debug)&&await this.logServiceForClient.debug(this.namespace,(0,a.format)(g),this.pid))}async log(...g){this.debugLog.log(...g),this.logServiceForClient&&(await this.ready.promise,!(this.level>a.LogLevel.Info)&&await this.logServiceForClient.log(this.namespace,(0,a.format)(g),this.pid))}async warn(...g){this.debugLog.warn(...g),this.logServiceForClient&&(await this.ready.promise,!(this.level>a.LogLevel.Warning)&&await this.logServiceForClient.warn(this.namespace,(0,a.format)(g),this.pid))}async error(...g){this.debugLog.error(...g),this.logServiceForClient&&(await this.ready.promise,!(this.level>a.LogLevel.Error)&&await this.logServiceForClient.error(this.namespace,(0,a.format)(g),this.pid))}async critical(...g){this.debugLog.error(...g),this.logServiceForClient&&(await this.ready.promise,!(this.level>a.LogLevel.Critical)&&await this.logServiceForClient.critical(this.namespace,(0,a.format)(g),this.pid))}async dispose(){this.debugLog.destroy(),this.logServiceForClient&&await this.logServiceForClient.dispose(this.namespace)}}e.LogServiceClient=o},47548:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});const n=t(85608);n.__exportStar(t(4892),e),n.__exportStar(t(46196),e)},46196:(L,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.format=e.ILogServiceForClient=void 0,e.ILogServiceForClient=Symbol("LogServiceForClient");function t(n){let a="";for(let o=0;o<n.length;o++){let I=n[o];if(I instanceof Error){const g=Array.prototype.slice.call(arguments);g[0]=I.stack,I=t(g)}else if(typeof I=="object")try{I=JSON.stringify(I)}catch{}else if(typeof I=="symbol")try{I=I.toString()}catch{}a+=(o>0?" ":"")+I}return a}e.format=t},73344:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),t(85608).__exportStar(t(47548),e)},9522:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AccordionServiceFactory=e.AccordionService=void 0;const n=t(85608),a=n.__importDefault(t(12784)),o=t(83794),I=t(76003),g=t(41869),u=t(81878),G=t(71707),p=t(95416),b=t(93899),m=t(68969),d=t(17793);let s=class extends g.WithEventBus{constructor(r,c){super(),this.containerId=r,this.noRestore=c,this.forceRevealContextKeys=new Map,this.viewWhenContextkeys=new Set,this.appendedViewSet=new Set,this.viewsWithContextKey=new Set,this.views=[],this.state={},this.rendered=!1,this.menuId=`${b.MenuId.AccordionContext}/${this.containerId}`,this.toDispose=new Map,this.didChangeViewTitleEmitter=new g.Emitter,this.onDidChangeViewTitle=this.didChangeViewTitleEmitter.event,this.beforeAppendViewEmitter=new g.Emitter,this.onBeforeAppendViewEvent=this.beforeAppendViewEmitter.event,this.afterAppendViewEmitter=new g.Emitter,this.onAfterAppendViewEvent=this.afterAppendViewEmitter.event,this.afterDisposeViewEmitter=new g.Emitter,this.onAfterDisposeViewEvent=this.afterDisposeViewEmitter.event,this.doUpdateResize=(0,a.default)(()=>{var h,v;let f;if(Object.keys(this.state).forEach(W=>{this.state[W].hidden||this.state[W].collapsed||(f?(this.state[W].size||0)>(this.state[f].size||0)&&(f=W):f=W)}),f&&this.splitPanelService.isVisible&&this.expandedViews.length>1&&!((h=this.splitPanelService.rootNode)===null||h===void 0)&&h.clientHeight){const W=((v=this.splitPanelService.rootNode)===null||v===void 0?void 0:v.clientHeight)-this.getPanelFullHeight();W&&((0,o.runInAction)(()=>{this.state[f].size+=W}),this.toggleOpen(f,!1))}},16),this.storeState=()=>{this.noRestore||!this.rendered||this.layoutState.setState(p.LAYOUT_STATE.getContainerSpace(this.containerId),this.state)},this.handleSectionClick=(h,v,f)=>{this.doToggleOpen(h,v,f)},this.handleContextMenu=(h,v)=>{h.preventDefault();const f=this.ctxMenuService.createMenu({id:this.menuId,config:{args:[{viewId:v}]},contextKeyService:v?this.viewContextKeyRegistry.getContextKeyService(v):void 0}),W=f.getGroupedMenuNodes();f.dispose(),this.contextMenuRenderer.show({menuNodes:W[1],anchor:{x:h.clientX,y:h.clientY}})},(0,o.makeObservable)(this),this.splitPanelService=this.splitPanelManager.getService(r),this.addDispose(this.splitPanelService),this.scopedCtxKeyService=this.contextKeyService.createScoped(),this.scopedCtxKeyService.createKey("triggerWithSection",!0),this.menuRegistry.registerMenuItem(this.menuId,{command:{id:this.registerGlobalToggleCommand(),label:(0,g.localize)("layout.view.hide","Hide")},group:"0_global",when:"triggerWithSection == true"}),this.viewContextKeyRegistry.afterContextKeyServiceRegistered(this.containerId,h=>{this.topViewKey=h.createKey("view",r),setTimeout(()=>{this.popViewKeyIfOnlyOneViewVisible()})}),this.addDispose(g.Event.debounce(this.contextKeyService.onDidChangeContext,(h,v)=>h||v.payload.affectsSome(this.viewWhenContextkeys),50)(h=>h&&this.handleContextKeyChange(),this)),this.splitPanelService.whenReady.then(()=>{this.listenWindowResize()})}updateViewTitle(r,c){const h=this.views.find(v=>v.id===r);h?(h.name=c,this.didChangeViewTitleEmitter.fire({id:r,title:c})):this.logger.error(`No target view \`${r}\` found, unable to update accordion title`)}updateViewDesciption(r,c){const h=this.views.find(v=>v.id===r);h?(h.description=c,this.didChangeViewTitleEmitter.fire({id:r,description:c})):this.logger.error(`No target view \`${r}\` found, unable to update accordion description`)}updateViewMessage(r,c){const h=this.views.find(v=>v.id===r);h?(h.message=c,this.didChangeViewTitleEmitter.fire({id:r,message:c})):this.logger.error(`No target view \`${r}\` found, unable to update accordion message`)}updateViewBadge(r,c){const h=this.views.find(v=>v.id===r);h?(h.badge=c,this.didChangeViewTitleEmitter.fire({id:r,badge:c})):this.logger.error(`No target view \`${r}\` found, unable to update accordion message`)}tryUpdateResize(){this.doUpdateResize()}restoreState(){if(this.noRestore)return;const r={};this.visibleViews.forEach(h=>r[h.id]={collapsed:!1,hidden:!1});const c=this.layoutState.getState(p.LAYOUT_STATE.getContainerSpace(this.containerId),r);c!==r&&(this.state=c),this.popViewKeyIfOnlyOneViewVisible(),this.splitPanelService.whenReady.then(()=>{this.restoreSize(),this.rendered=!0})}restoreSize(){var r;let c=((r=this.splitPanelService.rootNode)===null||r===void 0?void 0:r.clientHeight)||0,h;this.visibleViews.forEach((v,f)=>{const W=this.state[v.id];W.collapsed?(this.setSize(f,0,!1,!0),c-=this.headerSize):!W.collapsed&&W.size&&(this.setSize(f,W.size,!1,!0),c-=W.size,h=f)}),h&&this.setSize(h,this.state[this.visibleViews[h].id].size+c)}initConfig(r){const{headerSize:c,minSize:h}=r;this.headerSize=c,this.minSize=h}registerContextService(r){let c=this.viewContextKeyRegistry.getContextKeyService(r);return c||(c=this.contextKeyService.createScoped(),c.createKey("view",r),this.viewContextKeyRegistry.registerContextKeyService(r,c)),c}getSectionToolbarMenu(r){const c=this.registerContextService(r),h=this.menuService.createMenu(b.MenuId.ViewTitle,c),v=this.views.find(f=>f.id===r);return v&&(v.titleMenu=h),h}updateView(r){if(r.priority){const c=this.views.findIndex(h=>(h.priority||0)<(r.priority||0));this.views.splice(c===-1?this.views.length:c,0,r)}else this.views.push(r)}appendView(r,c){if(this.appendedViewSet.has(r.id)&&!c)return;const h=new g.DisposableCollection;h.push(this.progressService.registerProgressIndicator(r.id));const v=this.views.findIndex(f=>f.id===r.id);if(v!==-1){this.views[v]=Object.assign({},this.views[v],r);return}if(r.when){this.viewsWithContextKey.add(r);const f=this.createRevealContextKey(r.id);if(this.fillKeysInWhenExpr(this.viewWhenContextkeys,r.when),!this.contextKeyService.match(r.when)&&!this.contextKeyService.match(f))return;this.appendedViewSet.add(r.id)}this.beforeAppendViewEmitter.fire(r.id),this.updateView(r),this.registerContextService(r.id),h.push(this.menuRegistry.registerMenuItem(this.menuId,{command:{id:this.registerVisibleToggleCommand(r.id,h),label:(r.name||r.id).toUpperCase()},group:"1_widgets"})),this.toDispose.set(r.id,h),this.popViewKeyIfOnlyOneViewVisible(),this.afterAppendViewEmitter.fire(r.id)}disposeView(r){const c=this.views.findIndex(v=>v.id===r);c>-1&&this.views.splice(c,1);const h=this.toDispose.get(r);h&&h.dispose(),this.appendedViewSet.delete(r),this.popViewKeyIfOnlyOneViewVisible(),this.afterDisposeViewEmitter.fire(r)}revealView(r){const c=this.forceRevealContextKeys.get(r);c&&c.key.set(!0)}disposeAll(){this.views=o.observable.array([]),this.toDispose.forEach(r=>{r.dispose()})}onResize(r){if(r.payload.slotLocation&&this.state[r.payload.slotLocation]){const c=r.payload.slotLocation,h=document.getElementById(c);h&&(this.state[c].size=h.clientHeight,this.storeState())}}getPanelFullHeight(r){return Object.keys(this.state).filter(c=>this.views.find(h=>h.id===c)&&c!==r).reduce((c,h)=>c+(this.state[h].collapsed?this.headerSize:this.state[h].hidden?0:this.state[h].size),0)}listenWindowResize(){window.addEventListener("resize",this.doUpdateResize),this.addDispose({dispose:()=>window.removeEventListener("resize",this.doUpdateResize)})}createRevealContextKey(r){const c=`forceShow.${r}`;return this.forceRevealContextKeys.set(r,{when:`${c} == true`,key:this.contextKeyService.createKey(c,!1)}),this.viewWhenContextkeys.add(c),`${c} == true`}registerGlobalToggleCommand(){const r=`view-container.hide.${this.containerId}`;return this.commandRegistry.registerCommand({id:r},{execute:({viewId:c})=>{this.doToggleView(c)},isEnabled:()=>this.visibleViews.length>1}),r}registerVisibleToggleCommand(r,c){const h=`view-container.hide.${r}`;return c.push(this.commandRegistry.registerCommand({id:h},{execute:({forceShow:v}={})=>{this.doToggleView(r,v)},isToggled:()=>!this.getViewState(r).hidden,isEnabled:()=>this.getViewState(r).hidden||this.visibleViews.length>1})),h}doToggleView(r,c){const h=this.getViewState(r);let v;c===void 0?v=!h.hidden:v=!c,h.hidden=v,this.updateViewState(r,h),this.popViewKeyIfOnlyOneViewVisible(),this.storeState()}popViewKeyIfOnlyOneViewVisible(){if(!this.topViewKey)return;const r=this.visibleViews;r.length===1?this.topViewKey.set(r[0].id):this.topViewKey.reset()}toggleViewVisibility(r,c){this.doToggleView(r,c)}get visibleViews(){return this.views.filter(r=>!this.getViewState(r.id).hidden)}get expandedViews(){return this.views.filter(r=>{const c=this.state[r.id];return!c||c&&!c.hidden&&!c.collapsed})}toggleOpen(r,c){const h=this.visibleViews.findIndex(v=>v.id===r);h>-1&&this.doToggleOpen(r,c,h,!0)}getViewState(r){let c=this.state[r];const h=this.views.find(v=>v.id===r);return c||(this.updateViewState(r,{collapsed:h?.collapsed||!1,hidden:h?.hidden||!1}),c=this.state[r]),c}updateViewState(r,c){this.state[r]=c}doToggleOpen(r,c,h,v){var f;const W=this.getViewState(r);W.collapsed=c;const N=this.mainLayoutService.getContainer(this.containerId);if(((f=N?.options)===null||f===void 0?void 0:f.alignment)!=="horizontal"){let Z;c?Z=this.setSize(h,0,!1,v):Z=this.setSize(h,this.expandedViews.length===1?this.getAvailableSize():W.size||this.minSize,!1,v);for(let y=this.visibleViews.length-1;y>h;y--)this.getViewState(this.visibleViews[y].id).collapsed!==!0?Z=this.setSize(y,Z,!0,v):this.setSize(y,0,!1,v);for(let y=h-1;y>=0;y--)(this.state[this.visibleViews[y].id]||{}).collapsed!==!0?Z=this.setSize(y,Z,!0,v):this.setSize(y,0,!1,v)}this.eventBus.fire(new d.ViewCollapseChangedEvent({viewId:r,collapsed:W.collapsed}))}setSize(r,c,h,v){var f;const W=(f=this.splitPanelService.rootNode)===null||f===void 0?void 0:f.clientHeight,N=this.splitPanelService.panels[r];v||N.classList.add("resize-ease"),!c&&!h?(c=this.headerSize,N.classList.add(u.RESIZE_LOCK)):N.classList.remove(u.RESIZE_LOCK);const Z=N.clientHeight,y=this.getViewState(this.visibleViews[r].id);let E=c;if(h&&(E=Math.max(Z-c,this.minSize)),r===this.expandedViews.length-1&&(0,g.isDefined)(W))if(E+r*this.minSize>W)E-=E+r*this.minSize-W;else{const R=this.getPanelFullHeight(this.visibleViews[r].id);E+R<W&&(E+=W-(E+R))}if(this.rendered){let R;c===this.headerSize?R=Z:R=E,R!==this.headerSize&&(y.size=R)}return this.storeState(),y.nextSize=E,v||setTimeout(()=>{N.classList.remove("resize-ease")},200),h?E-(Z-c):c-Z}getAvailableSize(){var r;const c=(r=this.splitPanelService.rootNode)===null||r===void 0?void 0:r.clientHeight;return c?c-(this.visibleViews.length-1)*this.headerSize:0}handleContextKeyChange(){Array.from(this.viewsWithContextKey.values()).forEach(r=>{this.contextKeyService.match(r.when)||this.contextKeyService.match(this.forceRevealContextKeys.get(r.id).when)?this.appendView(r):this.disposeView(r.id)})}fillKeysInWhenExpr(r,c){this.contextKeyService.getKeysInWhen(c).forEach(v=>{r.add(v)})}};n.__decorate([(0,I.Autowired)(),n.__metadata("design:type",G.SplitPanelManager)],s.prototype,"splitPanelManager",void 0),n.__decorate([(0,I.Autowired)(b.AbstractMenuService),n.__metadata("design:type",b.AbstractMenuService)],s.prototype,"menuService",void 0),n.__decorate([(0,I.Autowired)(b.AbstractContextMenuService),n.__metadata("design:type",b.AbstractContextMenuService)],s.prototype,"ctxMenuService",void 0),n.__decorate([(0,I.Autowired)(b.IMenuRegistry),n.__metadata("design:type",b.IMenuRegistry)],s.prototype,"menuRegistry",void 0),n.__decorate([(0,I.Autowired)(g.CommandRegistry),n.__metadata("design:type",Object)],s.prototype,"commandRegistry",void 0),n.__decorate([(0,I.Autowired)(b.ICtxMenuRenderer),n.__metadata("design:type",b.ICtxMenuRenderer)],s.prototype,"contextMenuRenderer",void 0),n.__decorate([(0,I.Autowired)(),n.__metadata("design:type",g.ViewContextKeyRegistry)],s.prototype,"viewContextKeyRegistry",void 0),n.__decorate([(0,I.Autowired)(d.IMainLayoutService),n.__metadata("design:type",Object)],s.prototype,"mainLayoutService",void 0),n.__decorate([(0,I.Autowired)(g.IContextKeyService),n.__metadata("design:type",Object)],s.prototype,"contextKeyService",void 0),n.__decorate([(0,I.Autowired)(),n.__metadata("design:type",p.LayoutState)],s.prototype,"layoutState",void 0),n.__decorate([(0,I.Autowired)(m.IProgressService),n.__metadata("design:type",Object)],s.prototype,"progressService",void 0),n.__decorate([(0,I.Autowired)(g.ILogger),n.__metadata("design:type",Object)],s.prototype,"logger",void 0),n.__decorate([o.observable.shallow,n.__metadata("design:type",Array)],s.prototype,"views",void 0),n.__decorate([o.observable,n.__metadata("design:type",Object)],s.prototype,"state",void 0),n.__decorate([o.action,n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[String,String]),n.__metadata("design:returntype",void 0)],s.prototype,"updateViewTitle",null),n.__decorate([o.action,n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[String,String]),n.__metadata("design:returntype",void 0)],s.prototype,"updateViewDesciption",null),n.__decorate([o.action,n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[String,String]),n.__metadata("design:returntype",void 0)],s.prototype,"updateViewMessage",null),n.__decorate([o.action,n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[String,String]),n.__metadata("design:returntype",void 0)],s.prototype,"updateViewBadge",null),n.__decorate([o.action,n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[]),n.__metadata("design:returntype",void 0)],s.prototype,"restoreState",null),n.__decorate([o.action,n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[]),n.__metadata("design:returntype",void 0)],s.prototype,"restoreSize",null),n.__decorate([o.action,n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[Object]),n.__metadata("design:returntype",void 0)],s.prototype,"updateView",null),n.__decorate([o.action,n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[Object,Boolean]),n.__metadata("design:returntype",void 0)],s.prototype,"appendView",null),n.__decorate([o.action,n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[String]),n.__metadata("design:returntype",void 0)],s.prototype,"disposeView",null),n.__decorate([o.action,n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[]),n.__metadata("design:returntype",void 0)],s.prototype,"disposeAll",null),n.__decorate([o.action,(0,g.OnEvent)(g.ResizeEvent),n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[g.ResizeEvent]),n.__metadata("design:returntype",void 0)],s.prototype,"onResize",null),n.__decorate([o.action,n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[String,Boolean]),n.__metadata("design:returntype",void 0)],s.prototype,"doToggleView",null),n.__decorate([o.action,n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[String,Object]),n.__metadata("design:returntype",void 0)],s.prototype,"updateViewState",null),n.__decorate([o.action,n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[String,Boolean,Number,Boolean]),n.__metadata("design:returntype",void 0)],s.prototype,"doToggleOpen",null),n.__decorate([o.action,n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[Number,Number,Boolean,Boolean]),n.__metadata("design:returntype",Number)],s.prototype,"setSize",null),s=n.__decorate([(0,I.Injectable)({multiple:!0}),n.__metadata("design:paramtypes",[String,Boolean])],s),e.AccordionService=s,e.AccordionServiceFactory=Symbol("AccordionServiceFactory")},70936:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Panel=e.AccordionContainer=void 0;const n=t(85608),a=t(25150),o=n.__importStar(t(14041)),I=t(41869),g=t(81878),u=t(1149),G=t(43718),p=t(9522),b=t(95867);e.AccordionContainer=(0,a.observer)(({alignment:d="vertical",views:s,containerId:l,headerSize:r=24,minSize:c=120,className:h,noRestore:v,style:f})=>{const W=(0,I.useInjectable)(p.AccordionServiceFactory)(l,v),N=(0,I.useInjectable)(u.LayoutViewSizeConfig),Z=(0,o.useMemo)(()=>r||N.accordionHeaderSizeHeight,[r]);return o.default.useEffect(()=>{if(s.length)for(const y of s)W.appendView(y)},[s]),o.default.useEffect(()=>{W.initConfig({headerSize:Z,minSize:c})},[]),o.default.createElement(g.SplitPanel,{className:h,style:f,dynamicTarget:!0,id:l,resizeKeep:!1,direction:d==="horizontal"?"left-to-right":"top-to-bottom"},W.visibleViews.map((y,E)=>{const R=W.getViewState(y.id),A=y.titleMenu||W.getSectionToolbarMenu(y.id),{collapsed:w,nextSize:F}=R;return o.default.createElement(b.AccordionSection,{noHeader:W.visibleViews.length===1,onItemClick:()=>{W.handleSectionClick(y.id,!w,E)},onContextMenuHandler:W.handleContextMenu,alignment:d,header:y.name&&(0,G.replaceLocalizePlaceholder)(y.name)||y.id,viewId:y.id,key:y.id,message:y.message,description:y.description,badge:y.badge,title:y.name,expanded:!w,accordionService:W,index:E,headerSize:r,minSize:r,initialProps:y.initialProps,titleMenu:A,titleMenuContext:y.titleMenuContext,savedSize:w?r:F,flex:y.weight||1},y.component)}))}),e.AccordionContainer.displayName="AccordionContainer";const m=({children:d})=>o.default.createElement("div",null,d);e.Panel=m,e.Panel.displayName="Panel"},95867:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AccordionSection=void 0;const n=t(85608),a=n.__importDefault(t(53373)),o=n.__importDefault(t(14041)),I=t(41869),g=t(25918),u=t(93899),G=t(68969),p=t(68974),b=t(69589),m=t(52416),d=n.__importDefault(t(81388)),s={tabIndex:0},l=({header:r,description:c,message:h,headerClass:v,onItemClick:f,noHeader:W,children:N,badge:Z,headerSize:y,viewId:E,initialProps:R,titleMenu:A,titleMenuContext:w,expanded:F,accordionService:V,onContextMenuHandler:Y,alignment:_})=>{const H=(0,I.useInjectable)(m.IIconService),S=(0,I.useDesignStyles)(d.default.actions_wrap,"actions_wrap"),X=(0,I.useDesignStyles)(d.default.kt_split_panel,"kt_split_panel"),Q=(0,I.useDesignStyles)(d.default.kt_split_panel_header,"kt_split_panel_header"),O=(0,I.useDesignStyles)(d.default.kt_split_panel_body,"kt_split_panel_body"),M=(0,I.useDesignStyles)(d.default.section_badge,"section_badge"),T=o.default.useRef(null),[x,B]=o.default.useState({header:r,description:c,message:h,badge:Z});o.default.useEffect(()=>{const se=V.onDidChangeViewTitle(({id:ae,title:he,description:ee,message:pe,badge:ge})=>{let $=!1;const le=Object.assign({},x);E===ae&&he&&he!==x.header&&(le.header=he,$=!0),E===ae&&ge!==x.badge&&(le.badge=ge,$=!0),E===ae&&ee&&ee!==x.badge&&(le.description=ee,$=!0),E===ae&&pe&&pe!==x.message&&(le.message=pe,$=!0),$&&B(le)});return()=>{se.dispose()}},[]);const D=o.default.useCallback(()=>{f()},[f]),J=o.default.useMemo(()=>({overflow:F?"auto":"hidden"}),[F]),k=(0,I.useViewState)(E,T,!0),P=(0,I.useInjectable)(G.IProgressService).getIndicator(E),U=N,oe=o.default.useMemo(()=>F?`${y}px`:_==="horizontal"?"100%":`${y}px`,[F,y,_]);return o.default.createElement("div",{className:X,"data-view-id":E},!W&&o.default.createElement("div",Object.assign({},s,{className:(0,a.default)(Q,v),onClick:D,onContextMenu:se=>Y(se,E),style:{height:oe,lineHeight:oe}}),o.default.createElement("div",{className:d.default.label_wrap},o.default.createElement("i",{className:(0,a.default)((0,I.getIcon)("arrow-down"),d.default.arrow_icon,F?"":d.default.kt_mod_collapsed)}),o.default.createElement("div",{className:d.default.section_label,style:{lineHeight:y+"px"}},x.header),x.description&&o.default.createElement("div",{className:d.default.section_description,style:{lineHeight:y+"px"}},(0,b.transformLabelWithCodicon)(x.description,{},H.fromString.bind(H))),x.badge&&o.default.createElement("div",{className:M},x.badge)),F&&A&&o.default.createElement("div",{className:S},(0,u.isIMenu)(A)?o.default.createElement(g.InlineActionBar,{menus:A,context:w}):o.default.createElement(g.InlineMenuBar,{menus:A,context:w}))),o.default.createElement("div",{className:(0,a.default)([O,{[d.default.hide]:!F}]),style:J,ref:T},o.default.createElement(p.ProgressBar,{className:d.default.progressBar,progressModel:P.progressModel}),o.default.createElement(I.ErrorBoundary,null,x.message&&o.default.createElement("div",{className:d.default.kt_split_panel_message},x.message),o.default.createElement(U,Object.assign({},R,{viewState:{height:k.height-(x.message?22:0),width:k.width}})))))};e.AccordionSection=l},91527:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.TitleBar=void 0;const n=t(85608),a=n.__importDefault(t(14041)),o=t(41869),I=n.__importDefault(t(81388));e.TitleBar=a.default.memo(g=>{const u=(0,o.useDesignStyles)(I.default.titlebar,"titlebar");return a.default.createElement("div",{className:u,style:{height:g.height}},a.default.createElement("h1",null,g.title),g.menubar||null)}),e.TitleBar.displayName="TitleBar"},25072:(L,e,t)=>{"use strict";var n;n={value:!0},e.s=void 0;const a=t(41869);e.s={[a.SlotLocation.top]:{modules:["@opensumi/ide-menu-bar"]},[a.SlotLocation.action]:{modules:["@opensumi/ide-toolbar-action"]},[a.SlotLocation.left]:{modules:["@opensumi/ide-explorer","@opensumi/ide-search","@opensumi/ide-scm","@opensumi/ide-extension-manager","@opensumi/ide-debug"]},[a.SlotLocation.right]:{modules:[]},[a.SlotLocation.main]:{modules:["@opensumi/ide-editor"]},[a.SlotLocation.bottom]:{modules:["@opensumi/ide-terminal-next","@opensumi/ide-output","debug-console","@opensumi/ide-markers"]},[a.SlotLocation.statusBar]:{modules:["@opensumi/ide-status-bar"]},[a.SlotLocation.extra]:{modules:["breadcrumb-menu"]}}},7480:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.MainLayoutModule=void 0;const n=t(85608),a=t(76003),o=t(41869),I=t(17793),g=t(9522),u=t(22537),G=t(53576),p=t(752),b=t(58296);let m=class extends o.BrowserModule{constructor(){super(...arguments),this.providers=[G.MainLayoutModuleContribution,{token:I.IMainLayoutService,useClass:u.LayoutService},{token:I.IViewsRegistry,useClass:b.ViewsRegistry},{token:p.TabbarServiceFactory,useFactory:s=>l=>s.get(I.IMainLayoutService).getTabbarService(l)},{token:g.AccordionServiceFactory,useFactory:s=>(l,r)=>s.get(I.IMainLayoutService).getAccordionService(l,r)}],this.contributionProvider=I.MainLayoutContribution}};m=n.__decorate([(0,a.Injectable)()],m),e.MainLayoutModule=m},5567:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AutoFocusedInput=void 0;const n=t(85608),a=n.__importStar(t(14041)),o=t(97267),I=t(48560),g=t(17793),u=G=>{var{containerId:p}=G,b=n.__rest(G,["containerId"]);const m=(0,I.useInjectable)(g.IMainLayoutService),d=(0,a.useRef)(null),s=a.default.useCallback(()=>{d&&d.current&&queueMicrotask(()=>{var l;return(l=d.current)===null||l===void 0?void 0:l.focus()})},[d.current]);return(0,a.useEffect)(()=>{s();const l=m.getTabbarHandler(p),r=l?.onActivate(s);return()=>{r?.dispose()}},[m]),a.default.createElement(o.Input,Object.assign({ref:d},b))};e.AutoFocusedInput=u},22537:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.LayoutService=void 0;const n=t(85608),a=n.__importDefault(t(12784)),o=t(76003),I=t(41869),g=t(95416),u=t(93899),G=t(43718),p=t(52416),b=t(17793),m=t(9522),d=t(752),s=t(58999);let l=class extends I.WithEventBus{constructor(){super(...arguments),this.handleMap=new Map,this.tabbarServices=new Map,this.accordionServices=new Map,this.pendingViewsMap=new Map,this.viewToContainerMap=new Map,this.disposableMap=new Map,this.state={},this.customViews=new Map,this.debug=(0,G.getDebugLogger)(),this.viewReady=new G.Deferred,this.restoreTabbarService=async c=>{var h;await c.viewReady.promise,this.state=this.layoutState.getState(g.LAYOUT_STATE.MAIN,{[I.SlotLocation.left]:{currentId:void 0,size:void 0},[I.SlotLocation.right]:{currentId:"",size:void 0},[I.SlotLocation.bottom]:{currentId:void 0,size:void 0}});const{currentId:v,size:f}=this.state[c.location]||{};c.prevSize=f;let W=c.visibleContainers[0]&&c.visibleContainers[0].options.containerId;const N=this.appConfig.defaultPanels,Z=N&&N[c.location];if(N&&Z!==void 0)if(Z)if(c.containersMap.has(Z))W=Z;else{const y=this.componentRegistry.getComponentRegistryInfo(Z);y&&(!((h=this.appConfig.layoutConfig[c.location])===null||h===void 0)&&h.modules)&&~this.appConfig.layoutConfig[c.location].modules.indexOf(Z)?W=y.options.containerId:this.logger.warn(`[defaultPanels] No \`${Z}\` view found!`)}else W="";(0,G.isUndefined)(v)?c.updateCurrentContainerId(W):c.updateCurrentContainerId(v?c.containersMap.has(v)?v:W:"")},this.holdTabbarComponent=new Map,this.tabbarUpdateSet=new Set}didMount(){for(const[h,v]of this.pendingViewsMap.entries())v.forEach(({view:f,props:W})=>{this.collectViewComponent(f,h,W)});for(const h of this.contributions.getContributions())h.onDidRender&&h.onDidRender();const c=[];this.tabbarServices.forEach(h=>{I.slotRendererRegistry.isTabbar(h.location)&&h.containersMap.size>0&&c.push(h.viewReady.promise)}),Promise.all(c).then(()=>{this.viewReady.resolve()})}storeState(c,h){this.state[c.location]={currentId:h,size:c.prevSize},this.layoutState.setState(g.LAYOUT_STATE.MAIN,this.state)}onThemeChange(c){var h,v,f,W,N;const Z=c.payload.theme;localStorage.setItem("theme",JSON.stringify({menuBarBackground:(h=Z.getColor("kt.menubar.background"))===null||h===void 0?void 0:h.toString(),sideBarBackground:(v=Z.getColor("sideBar.background"))===null||v===void 0?void 0:v.toString(),editorBackground:(f=Z.getColor("editor.background"))===null||f===void 0?void 0:f.toString(),panelBackground:(W=Z.getColor("panel.background"))===null||W===void 0?void 0:W.toString(),statusBarBackground:(N=Z.getColor("statusBar.background"))===null||N===void 0?void 0:N.toString()}))}isVisible(c){return!!this.getTabbarService(c).currentContainerId}isViewVisible(c){const h=this.getTabbarHandler(c);if(!h||!h.isActivated())return!1;const v=h.accordionService.getViewState(c);return!v.collapsed&&!v.hidden}toggleSlot(c,h,v){var f;const W=this.getTabbarService(c);if(!W){this.debug.error(`Unable to switch panels because no TabbarService corresponding to \`${c}\` was found.`);return}h===!0?W.updateCurrentContainerId(W.currentContainerId||W.previousContainerId||W.containersMap.keys().next().value):h===!1?W.updateCurrentContainerId(""):W.updateCurrentContainerId(W.currentContainerId?"":W.previousContainerId||W.containersMap.keys().next().value),W.currentContainerId&&v&&((f=W.resizeHandle)===null||f===void 0||f.setSize(v))}getTabbarService(c){const h=this.tabbarServices.get(c)||this.injector.get(d.TabbarService,[c]);if(!this.tabbarServices.get(c)){h.onCurrentChange(({currentId:f})=>{if(this.storeState(h,f),this.eventBus.fire(new I.ExtensionActivateEvent({topic:"onView",data:f})),f&&b.SUPPORT_ACCORDION_LOCATION.has(h.location)){const W=this.getAccordionService(f);W?.tryUpdateResize(),W?.expandedViews.forEach(N=>{this.eventBus.fire(new I.ExtensionActivateEvent({topic:"onView",data:N.id}))})}}),h.viewReady.promise.then(()=>h.restoreState()).then(()=>this.restoreTabbarService(h)).catch(f=>{this.logger.error(`[TabbarService:${c}] restore state error`,f)});const v=(0,a.default)(()=>this.storeState(h,h.currentContainerId),100);if(h.onSizeChange(v),c===I.SlotLocation.bottom){const f=(0,a.default)(()=>void this.bottomExpanded,100);h.onSizeChange(()=>f)}this.tabbarServices.set(c,h)}return h}getAllAccordionService(){return this.accordionServices}getAccordionService(c,h){let v=this.accordionServices.get(c);return v||(v=this.injector.get(m.AccordionService,[c,h]),this.accordionServices.set(c,v)),v}getTabbarHandler(c){let h=this.doGetTabbarHandler(c);if(!h){const v=this.viewToContainerMap.get(c);v?h=this.doGetTabbarHandler(v||""):this.debug.warn(`${c} view tabbar not found.`)}return h}getContainer(c){for(const h of this.tabbarServices.values()){const v=h.getContainer(c);if(v)return v}}getExtraTopMenu(){return this.contextmenuService.createMenu({id:u.MenuId.ActivityBarTopExtra})}getExtraMenu(){return this.contextmenuService.createMenu({id:u.MenuId.ActivityBarExtra})}doGetTabbarHandler(c){let h=this.handleMap.get(c);if(!h){let v;for(const f of this.tabbarServices.values())if(f.getContainer(c)){v=f.location;break}v&&(h=this.injector.get(s.TabBarHandler,[c,this.getTabbarService(v)]),this.handleMap.set(c,h))}return h}collectTabbarComponent(c,h,v,f){if(f&&this.debug.warn("collectTabbarComponent api warning: Please move react component into options.component!"),h.hideIfEmpty&&!c.length&&!h.component){this.holdTabbarComponent.set(h.containerId,{views:c,options:h,side:v}),this.tabbarUpdateSet.has(h.containerId)&&this.tryUpdateTabbar(h.containerId);const N=this.getAccordionService(h.containerId);return N.onBeforeAppendViewEvent(()=>{this.tryUpdateTabbar(h.containerId)}),N.onAfterDisposeViewEvent(()=>{N.views.length===0&&(this.disposeContainer(h.containerId),this.holdTabbarComponent.set(h.containerId,{views:c,options:h,side:v}))}),h.containerId}return this.getTabbarService(v).registerContainer(h.containerId,{views:c,options:h}),c.forEach(N=>{this.viewToContainerMap.set(N.id,h.containerId)}),h.containerId}getViewAccordionService(c){const h=this.viewToContainerMap.get(c);if(h)return this.getAccordionService(h)}collectViewComponent(c,h,v={},f){this.customViews.set(c.id,c),this.viewToContainerMap.set(c.id,h);const W=this.getAccordionService(h);return v&&(c.initialProps=v),W.appendView(c,f?.isReplace),W.views.length===1&&(this.tabbarUpdateSet.add(h),this.tryUpdateTabbar(h)),f?.fromExtension&&this.disposableMap.set(c.id,this.commandRegistry.registerCommand({id:`${c.id}.focus`},{execute:async()=>(await this.ensureViewReady(c.id),this.commandService.executeCommand(`workbench.view.extension.${h}`,{forceShow:!0}))})),h}ensureViewReady(c){const h=this.viewToContainerMap.get(c),v=new G.Deferred,f=this.getAccordionService(h);return f.visibleViews.find(W=>W.id===c)?v.resolve():f.onAfterAppendViewEvent(W=>{W===c&&v.resolve()}),v.promise}tryUpdateTabbar(c){const h=this.holdTabbarComponent.get(c);h&&(this.getTabbarService(h.side).registerContainer(c,{views:h.views,options:h.options}),this.tabbarUpdateSet.delete(c),this.holdTabbarComponent.delete(c))}replaceViewComponent(c,h){const v=this.viewToContainerMap.get(c.id);if(!v){this.debug.warn(`The container corresponding to \`${c.id}\` was not found, please check the incoming parameters!`);return}const f=this.customViews.get(c.id);f&&(c=Object.assign(f,c)),this.collectViewComponent(c,v,h,{isReplace:!0})}disposeViewComponent(c){const h=this.disposableMap.get(c);h&&h.dispose();const v=this.viewToContainerMap.get(c);if(!v){this.debug.warn(`The container corresponding to \`${c}\` was not found, please check the incoming parameters!`);return}this.getAccordionService(v).disposeView(c)}revealView(c){const h=this.viewToContainerMap.get(c);if(!h){this.debug.warn(`The container corresponding to \`${c}\` was not found, please check the incoming parameters!`);return}this.getAccordionService(h).revealView(c)}disposeContainer(c){let h;for(const v of this.tabbarServices.values())if(v.getContainer(c)){h=v.location;break}h?this.getTabbarService(h).disposeContainer(c):this.debug.warn(`The Tabbar to the \`${c}\` was not found.`)}expandBottom(c){const h=this.getTabbarService(I.SlotLocation.bottom);h.currentContainerId||h.updateCurrentContainerId(h.currentContainerId||h.previousContainerId||h.containersMap.keys().next().value),h.doExpand(c),this.contextKeyService.createKey("bottomFullExpanded",h.isExpanded)}get bottomExpanded(){const c=this.getTabbarService(I.SlotLocation.bottom);return this.contextKeyService.createKey("bottomFullExpanded",c.isExpanded),c.isExpanded}};n.__decorate([(0,o.Autowired)(o.INJECTOR_TOKEN),n.__metadata("design:type",o.Injector)],l.prototype,"injector",void 0),n.__decorate([(0,o.Autowired)(b.MainLayoutContribution),n.__metadata("design:type",Object)],l.prototype,"contributions",void 0),n.__decorate([(0,o.Autowired)(u.IMenuRegistry),n.__metadata("design:type",u.IMenuRegistry)],l.prototype,"menus",void 0),n.__decorate([(0,o.Autowired)(I.CommandRegistry),n.__metadata("design:type",Object)],l.prototype,"commandRegistry",void 0),n.__decorate([(0,o.Autowired)(I.CommandService),n.__metadata("design:type",Object)],l.prototype,"commandService",void 0),n.__decorate([(0,o.Autowired)(),n.__metadata("design:type",g.LayoutState)],l.prototype,"layoutState",void 0),n.__decorate([(0,o.Autowired)(I.AppConfig),n.__metadata("design:type",Object)],l.prototype,"appConfig",void 0),n.__decorate([(0,o.Autowired)(I.IContextKeyService),n.__metadata("design:type",Object)],l.prototype,"contextKeyService",void 0),n.__decorate([(0,o.Autowired)(I.ComponentRegistry),n.__metadata("design:type",Object)],l.prototype,"componentRegistry",void 0),n.__decorate([(0,o.Autowired)(I.ILogger),n.__metadata("design:type",Object)],l.prototype,"logger",void 0),n.__decorate([(0,o.Autowired)(u.AbstractMenuService),n.__metadata("design:type",u.AbstractMenuService)],l.prototype,"menuService",void 0),n.__decorate([(0,o.Autowired)(u.AbstractContextMenuService),n.__metadata("design:type",u.AbstractContextMenuService)],l.prototype,"contextmenuService",void 0),n.__decorate([(0,I.OnEvent)(p.ThemeChangedEvent),n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[p.ThemeChangedEvent]),n.__metadata("design:returntype",void 0)],l.prototype,"onThemeChange",null),l=n.__decorate([(0,o.Injectable)()],l),e.LayoutService=l},53576:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.MainLayoutModuleContribution=e.RETRACT_BOTTOM_PANEL=e.EXPAND_BOTTOM_PANEL=e.IS_VISIBLE_RIGHT_PANEL_COMMAND=e.IS_VISIBLE_LEFT_PANEL_COMMAND=e.IS_VISIBLE_BOTTOM_PANEL_COMMAND=e.TOGGLE_BOTTOM_PANEL_COMMAND=e.SHOW_BOTTOM_PANEL_COMMAND=e.WORKBENCH_ACTION_CLOSEPANEL=e.HIDE_BOTTOM_PANEL_COMMAND=e.TOGGLE_RIGHT_PANEL_COMMAND=e.SHOW_RIGHT_PANEL_COMMAND=e.HIDE_RIGHT_PANEL_COMMAND=e.TOGGLE_LEFT_PANEL_COMMAND=e.SHOW_LEFT_PANEL_COMMAND=e.WORKBENCH_ACTION_CLOSESIDECAR=e.HIDE_LEFT_PANEL_COMMAND=void 0;const n=t(85608),a=t(76003),o=t(41869),I=t(30144),g=t(68456),u=t(95416),G=t(93899),p=t(43718),b=t(92323),m=t(17793),d=t(68988),s=t(19951);e.HIDE_LEFT_PANEL_COMMAND={id:"main-layout.left-panel.hide",label:"%main-layout.left-panel.hide%"},e.WORKBENCH_ACTION_CLOSESIDECAR={id:"workbench.action.closeSidebar",label:"%main-layout.sidebar.hide%"},e.SHOW_LEFT_PANEL_COMMAND={id:"main-layout.left-panel.show",label:"%main-layout.left-panel.show%"},e.TOGGLE_LEFT_PANEL_COMMAND={id:"main-layout.left-panel.toggle",label:"%main-layout.left-panel.toggle%"},e.HIDE_RIGHT_PANEL_COMMAND={id:"main-layout.right-panel.hide",label:"%main-layout.right-panel.hide%"},e.SHOW_RIGHT_PANEL_COMMAND={id:"main-layout.right-panel.show",label:"%main-layout.right-panel.show%"},e.TOGGLE_RIGHT_PANEL_COMMAND={id:"main-layout.right-panel.toggle",label:"%main-layout.right-panel.toggle%"},e.HIDE_BOTTOM_PANEL_COMMAND={id:"main-layout.bottom-panel.hide",label:"%main-layout.bottom-panel.hide%"},e.WORKBENCH_ACTION_CLOSEPANEL={id:"workbench.action.closePanel",delegate:e.HIDE_BOTTOM_PANEL_COMMAND.id},e.SHOW_BOTTOM_PANEL_COMMAND={id:"main-layout.bottom-panel.show",label:"%main-layout.bottom-panel.show%"},e.TOGGLE_BOTTOM_PANEL_COMMAND={id:"main-layout.bottom-panel.toggle",iconClass:(0,o.getIcon)("minus"),label:"%layout.tabbar.toggle%"},e.IS_VISIBLE_BOTTOM_PANEL_COMMAND={id:"main-layout.bottom-panel.is-visible"},e.IS_VISIBLE_LEFT_PANEL_COMMAND={id:"main-layout.left-panel.is-visible"},e.IS_VISIBLE_RIGHT_PANEL_COMMAND={id:"main-layout.right-panel.is-visible"},e.EXPAND_BOTTOM_PANEL={id:"main-layout.bottom-panel.expand",label:"%layout.tabbar.expand%",iconClass:(0,o.getIcon)("expand")},e.RETRACT_BOTTOM_PANEL={id:"main-layout.bottom-panel.retract",label:"%layout.tabbar.retract%",iconClass:(0,o.getIcon)("shrink")};let l=class extends p.WithEventBus{async initialize(){await this.layoutState.initStorage();const c=this.contributionProvider.getContributions();for(const f of c)f.registerComponent&&f.registerComponent(this.componentRegistry);const h=this.rendererContributionProvider.getContributions();for(const f of h)f.registerRenderer&&f.registerRenderer(o.slotRendererRegistry);const v=this.toolBarContributionProvider.getContributions();for(const f of v)f.registerToolbarItems&&f.registerToolbarItems(this.toolBarRegistry)}async onStart(){this.registerSideToggleKey()}async onDidStart(){this.mainLayoutService.didMount()}registerRenderer(c){c.registerSlotRenderer(o.SlotLocation.right,s.RightTabRenderer),c.registerSlotRenderer(o.SlotLocation.left,s.LeftTabRenderer),c.registerSlotRenderer(o.SlotLocation.bottom,s.BottomTabRenderer)}registerCommands(c){c.registerCommand(e.HIDE_LEFT_PANEL_COMMAND,{execute:()=>{this.mainLayoutService.toggleSlot(o.SlotLocation.left,!1)}}),c.registerCommand(e.SHOW_LEFT_PANEL_COMMAND,{execute:h=>{this.mainLayoutService.toggleSlot(o.SlotLocation.left,!0,h)}}),c.registerCommand(e.TOGGLE_LEFT_PANEL_COMMAND,{execute:(h,v)=>{this.mainLayoutService.toggleSlot(o.SlotLocation.left,h,v)}}),c.registerCommand(e.HIDE_RIGHT_PANEL_COMMAND,{execute:()=>{this.mainLayoutService.toggleSlot(o.SlotLocation.right,!1)}}),c.registerCommand(e.SHOW_RIGHT_PANEL_COMMAND,{execute:h=>{this.mainLayoutService.toggleSlot(o.SlotLocation.right,!0,h)}}),c.registerCommand(e.TOGGLE_RIGHT_PANEL_COMMAND,{execute:(h,v)=>{this.mainLayoutService.toggleSlot(o.SlotLocation.right,h,v)}}),c.registerCommand(e.WORKBENCH_ACTION_CLOSESIDECAR,{execute:()=>Promise.all([this.mainLayoutService.toggleSlot(o.SlotLocation.left,!1),this.mainLayoutService.toggleSlot(o.SlotLocation.right,!1)])}),c.registerCommand(e.SHOW_BOTTOM_PANEL_COMMAND,{execute:()=>{this.mainLayoutService.toggleSlot(o.SlotLocation.bottom,!0)}}),c.registerCommand(e.HIDE_BOTTOM_PANEL_COMMAND,{execute:()=>{this.mainLayoutService.toggleSlot(o.SlotLocation.bottom,!1)}}),c.registerCommand(e.WORKBENCH_ACTION_CLOSEPANEL),c.registerCommand(e.IS_VISIBLE_BOTTOM_PANEL_COMMAND,{execute:()=>this.mainLayoutService.getTabbarService("bottom").currentContainerId!==""}),c.registerCommand(e.IS_VISIBLE_LEFT_PANEL_COMMAND,{execute:()=>this.mainLayoutService.isVisible(o.SlotLocation.left)}),c.registerCommand(e.IS_VISIBLE_RIGHT_PANEL_COMMAND,{execute:()=>this.mainLayoutService.isVisible(o.SlotLocation.left)}),c.registerCommand({id:"view.outward.right-panel.hide"},{execute:()=>{this.commandService.executeCommand("main-layout.right-panel.toggle",!1)}}),c.registerCommand({id:"view.outward.right-panel.show"},{execute:h=>{this.commandService.executeCommand("main-layout.right-panel.toggle",!0,h)}}),c.registerCommand({id:"view.outward.left-panel.hide"},{execute:()=>{this.commandService.executeCommand("main-layout.left-panel.toggle",!1)}}),c.registerCommand({id:"view.outward.left-panel.show"},{execute:h=>{this.commandService.executeCommand("main-layout.left-panel.toggle",!0,h)}}),c.registerCommand({id:o.LAYOUT_COMMANDS.MAXIMIZE_EDITOR.id},{execute:()=>{this.commandService.executeCommand(e.TOGGLE_RIGHT_PANEL_COMMAND.id,!1),this.commandService.executeCommand(e.TOGGLE_LEFT_PANEL_COMMAND.id,!1)}}),c.registerCommand(o.LAYOUT_COMMANDS.OPEN_VIEW,{execute:()=>{this.commandService.executeCommand(o.QUICK_OPEN_COMMANDS.OPEN_VIEW.id)}})}registerMenus(c){c.registerMenuItem(G.MenuId.ActivityBarExtra,{submenu:G.MenuId.SettingsIconMenu,iconClass:(0,o.getIcon)("setting"),label:(0,p.localize)("layout.tabbar.setting"),order:1,group:"navigation"}),Object.entries({[o.SlotLocation.left]:[I.EXPLORER_CONTAINER_ID,I.SEARCH_CONTAINER_ID,I.SCM_CONTAINER_ID,I.DEBUG_CONTAINER_ID,I.EXTENSION_CONTAINER_ID],[o.SlotLocation.bottom]:[I.MARKER_CONTAINER_ID,I.OUTPUT_CONTAINER_ID,I.DEBUG_CONSOLE_CONTAINER_ID,I.TERMINAL_CONTAINER_ID]}).forEach(([h,v],f)=>{const W=this.mainLayoutService.getTabbarService(h);W.viewReady.promise.then(()=>{v.forEach(N=>{var Z,y;const E=W.getContainer(N);E&&c.registerMenuItem(G.MenuId.MenubarViewMenu,{command:{id:`container.toggle.${N}`,label:(y=(Z=E.options)===null||Z===void 0?void 0:Z.title)!==null&&y!==void 0?y:N},group:`${3+f}_${h}`})})})}),c.registerMenuItem(G.MenuId.MenubarViewMenu,{command:e.TOGGLE_LEFT_PANEL_COMMAND,group:"5_panel"}),c.registerMenuItem(G.MenuId.MenubarViewMenu,{command:e.TOGGLE_RIGHT_PANEL_COMMAND,group:"5_panel"}),c.registerMenuItem(G.MenuId.MenubarViewMenu,{command:e.TOGGLE_BOTTOM_PANEL_COMMAND,group:"5_panel"}),c.registerMenuItem(G.MenuId.MenubarViewMenu,{command:e.EXPAND_BOTTOM_PANEL,group:"5_panel",when:"!bottomFullExpanded"}),c.registerMenuItem(G.MenuId.MenubarViewMenu,{command:e.RETRACT_BOTTOM_PANEL,group:"5_panel",when:"bottomFullExpanded"}),c.registerMenuItem(G.MenuId.MenubarViewMenu,{command:{id:o.EDITOR_COMMANDS.TOGGLE_WORD_WRAP.id,label:"%preference.editor.wordWrap%"},group:"6_capability",toggledWhen:"config.editor.wordWrap == on"})}registerSideToggleKey(){this.keybindingRegistry.registerKeybinding({keybinding:"ctrlcmd+b",command:e.TOGGLE_LEFT_PANEL_COMMAND.id}),this.keybindingRegistry.registerKeybinding({keybinding:"ctrlcmd+j",command:e.TOGGLE_BOTTOM_PANEL_COMMAND.id}),this.keybindingRegistry.registerKeybinding({keybinding:"ctrlcmd+shift+j",command:e.EXPAND_BOTTOM_PANEL.id,when:"!bottomFullExpanded"}),this.keybindingRegistry.registerKeybinding({keybinding:"ctrlcmd+shift+j",command:e.RETRACT_BOTTOM_PANEL.id,when:"bottomFullExpanded"})}registerQuickOpenHandlers(c){c.registerHandler(this.quickOpenViewHandler,{title:(0,p.localize)("layout.action.openView"),commandId:o.LAYOUT_COMMANDS.QUICK_OPEN_VIEW.id,order:5,hideTab:!0})}};n.__decorate([(0,a.Autowired)(m.IMainLayoutService),n.__metadata("design:type",Object)],l.prototype,"mainLayoutService",void 0),n.__decorate([(0,a.Autowired)(o.IContextKeyService),n.__metadata("design:type",Object)],l.prototype,"contextKeyService",void 0),n.__decorate([(0,a.Autowired)(p.IEventBus),n.__metadata("design:type",Object)],l.prototype,"eventBus",void 0),n.__decorate([(0,a.Autowired)(g.ComponentContribution),n.__metadata("design:type",Object)],l.prototype,"contributionProvider",void 0),n.__decorate([(0,a.Autowired)(o.SlotRendererContribution),n.__metadata("design:type",Object)],l.prototype,"rendererContributionProvider",void 0),n.__decorate([(0,a.Autowired)(g.ComponentRegistry),n.__metadata("design:type",Object)],l.prototype,"componentRegistry",void 0),n.__decorate([(0,a.Autowired)(b.CommandService),n.__metadata("design:type",Object)],l.prototype,"commandService",void 0),n.__decorate([(0,a.Autowired)(),n.__metadata("design:type",u.LayoutState)],l.prototype,"layoutState",void 0),n.__decorate([(0,a.Autowired)(g.TabBarToolbarContribution),n.__metadata("design:type",Object)],l.prototype,"toolBarContributionProvider",void 0),n.__decorate([(0,a.Autowired)(),n.__metadata("design:type",g.ToolbarRegistry)],l.prototype,"toolBarRegistry",void 0),n.__decorate([(0,a.Autowired)(o.KeybindingRegistry),n.__metadata("design:type",Object)],l.prototype,"keybindingRegistry",void 0),n.__decorate([(0,a.Autowired)(d.ViewQuickOpenHandler),n.__metadata("design:type",d.ViewQuickOpenHandler)],l.prototype,"quickOpenViewHandler",void 0),l=n.__decorate([(0,p.Domain)(b.CommandContribution,o.ClientAppContribution,o.SlotRendererContribution,G.MenuContribution,o.QuickOpenContribution)],l),e.MainLayoutModuleContribution=l},68988:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ViewQuickOpenItem=e.ContainerQuickOpenItem=e.ViewQuickOpenHandler=void 0;const n=t(85608),a=t(76003),o=t(41869),I=t(74404),g=t(17793);let u=class{constructor(){this.prefix="view ",this.description=(0,o.localize)("layout.action.openView")}getModel(){return{onType:(m,d)=>d(this.getViewQuickOpenItems())}}getViewQuickOpenItems(){var m;const d=this.layoutService.getAllAccordionService(),s=Array.from(d.keys());let l=[];l=l.concat(s.map((r,c)=>this.injector.get(G,[r,{groupLabel:c===0?(0,o.localize)("layout.openView.containerTitle"):"",showBorder:!1}])));for(const r of s){const c=(m=d.get(r))===null||m===void 0?void 0:m.views;if(c)for(let h=0,v=c.length;h<v;h++)l.push(this.injector.get(p,[r,c[h],{groupLabel:h===0?(0,o.formatLocalize)("layout.openView.viewTitle",String(r).toUpperCase()):"",showBorder:!1}]))}return l}getOptions(){return{}}onClose(){}};n.__decorate([(0,a.Autowired)(I.PrefixQuickOpenService),n.__metadata("design:type",Object)],u.prototype,"quickOpenService",void 0),n.__decorate([(0,a.Autowired)(g.IMainLayoutService),n.__metadata("design:type",Object)],u.prototype,"layoutService",void 0),n.__decorate([(0,a.Autowired)(a.INJECTOR_TOKEN),n.__metadata("design:type",a.Injector)],u.prototype,"injector",void 0),u=n.__decorate([(0,a.Injectable)()],u),e.ViewQuickOpenHandler=u;let G=class extends I.QuickOpenItem{constructor(m,d){super(d),this.containerId=m,this.options=d}getLabel(){return String(this.containerId).toLocaleUpperCase()}isHidden(){return super.isHidden()}run(m){if(m!==I.Mode.OPEN)return!1;const d=this.layoutService.getTabbarHandler(this.containerId);return d?.activate(),!0}};n.__decorate([(0,a.Autowired)(g.IMainLayoutService),n.__metadata("design:type",Object)],G.prototype,"layoutService",void 0),G=n.__decorate([(0,a.Injectable)({multiple:!0}),n.__metadata("design:paramtypes",[Object,Object])],G),e.ContainerQuickOpenItem=G;let p=class extends I.QuickOpenItem{constructor(m,d,s){super(s),this.containerId=m,this.view=d,this.options=s}getLabel(){var m;return(m=this.view.name)===null||m===void 0?void 0:m.toUpperCase()}isHidden(){return super.isHidden()}run(m){if(m!==I.Mode.OPEN)return!1;const d=this.layoutService.getTabbarHandler(this.containerId);return d&&(d.activate(),d.isCollapsed(this.view.id)&&d?.setCollapsed(this.view.id,!1)),!0}};n.__decorate([(0,a.Autowired)(g.IMainLayoutService),n.__metadata("design:type",Object)],p.prototype,"layoutService",void 0),p=n.__decorate([(0,a.Injectable)({multiple:!0}),n.__metadata("design:paramtypes",[String,Object,Object])],p),e.ViewQuickOpenItem=p},58999:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.TabBarHandler=void 0;const n=t(85608),a=t(76003),o=t(43718),I=t(17793),g=t(752);let u=class{constructor(p,b){this.containerId=p,this.tabbarService=b,this.onActivateEmitter=new o.Emitter,this.onActivate=this.onActivateEmitter.event,this.onInActivateEmitter=new o.Emitter,this.onInActivate=this.onInActivateEmitter.event,this.onCollapseEmitter=new o.Emitter,this.onCollapse=this.onCollapseEmitter.event,this.isVisible=!1,this.accordionService=this.layoutService.getAccordionService(this.containerId),b.currentContainerId===this.containerId&&(this.onActivateEmitter.fire(),this.isVisible=!0),this.tabbarService.onCurrentChange(m=>{m.currentId===this.containerId?(this.onActivateEmitter.fire(),this.isVisible=!0):m.previousId===this.containerId&&(this.onInActivateEmitter.fire(),this.isVisible=!1)})}dispose(){this.tabbarService.containersMap.delete(this.containerId),this.tabbarService.disposeContainer(this.containerId)}disposeView(p){this.layoutService.disposeViewComponent(p)}activate(){this.tabbarService.updateCurrentContainerId(this.containerId)}deactivate(){this.tabbarService.updateCurrentContainerId("")}isActivated(){return this.tabbarService.currentContainerId===this.containerId}show(){this.tabbarService.showContainer(this.containerId)}hide(){this.tabbarService.hideContainer(this.containerId)}setTitleComponent(p,b){const m=this.tabbarService.getContainer(this.containerId);m&&m.options&&(m.options.titleProps=b,m.options.titleComponent=p,m.fireChange(m))}setSize(p){this.layoutService.toggleSlot(this.tabbarService.location,!0,p+this.tabbarService.getBarSize())}setBadge(p){this.tabbarService.updateBadge(this.containerId,p)}getBadge(){return this.tabbarService.getContainer(this.containerId).options.badge}setIconClass(p){this.tabbarService.getContainer(this.containerId).options.iconClass=p}isCollapsed(p){return this.accordionService.getViewState(p).collapsed}setCollapsed(p,b){this.accordionService.toggleOpen(p,b)}toggleViews(p,b){for(const m of p){const d=this.accordionService.getViewState(m);this.accordionService.updateViewState(m,Object.assign(Object.assign({},d),{hidden:!b}))}}updateViewTitle(p,b){this.accordionService.updateViewTitle(p,b)}updateViewDescription(p,b){this.accordionService.updateViewDesciption(p,b)}updateViewMessage(p,b){this.accordionService.updateViewMessage(p,b)}updateTitle(p){this.tabbarService.updateTitle(this.containerId,p)}setResizeLock(p){this.tabbarService.resizeHandle.lockSize(p)}};n.__decorate([(0,a.Autowired)(I.IMainLayoutService),n.__metadata("design:type",Object)],u.prototype,"layoutService",void 0),u=n.__decorate([(0,a.Injectable)({multiple:!0}),n.__metadata("design:paramtypes",[String,g.TabbarService])],u),e.TabBarHandler=u},46245:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BottomTabbarRenderer=e.LeftTabbarRenderer=e.RightTabbarRenderer=e.TextElipses=e.IconElipses=e.TextTabView=e.IconTabView=e.TabbarViewBase=void 0;const n=t(85608),a=n.__importDefault(t(53373)),o=t(25150),I=n.__importStar(t(14041)),g=t(97267),u=t(41869),G=t(25918),p=t(25719),b=t(63373),m=t(68969),d=t(17793),s=t(19951),l=n.__importDefault(t(5330)),r=t(752);function c(Z,y){return y>=Z.length?[Z,[]]:y<=1?[[],Z]:[Z.slice(0,y-1),Z.slice(y-1)]}e.TabbarViewBase=(0,o.observer)(Z=>{var y;const{TabView:E,MoreTabView:R,forbidCollapse:A,barSize:w=48,panelBorderSize:F=0,tabClassName:V,className:Y,margin:_,tabSize:H,canHideTabbar:S,renderOtherVisibleContainers:X=()=>null,disableAutoAdjust:Q}=Z,{side:O,direction:M,fullSize:T}=I.default.useContext(s.TabbarConfig),x=(0,u.useInjectable)(r.TabbarServiceFactory)(O),B=(0,u.useDesignStyles)(l.default.tab_bar,"tab_bar"),D=(0,u.useDesignStyles)(l.default.bar_content,"bar_content");I.default.useEffect(()=>{x.updateBarSize(w+F)},[]);const{currentContainerId:J,handleTabClick:k}=x,z=(0,u.usePreference)("workbench.hideSlotTabBarWhenHidePanel",!1),P=S&&z;P&&!J&&((y=x.resizeHandle)===null||y===void 0||y.setSize(0));const U=Q?Number.MAX_SAFE_INTEGER:Math.floor(T-(_||0)/H),[oe,se]=c(x.visibleContainers.filter(he=>{var ee;return!(!((ee=he.options)===null||ee===void 0)&&ee.hideTab)}),U);se.forEach(he=>{x.updateTabInMoreKey(he.options.containerId,!0)});const ae=I.default.useCallback((he,ee,pe)=>{var ge;const $=(ge=he.options)===null||ge===void 0?void 0:ge.containerId;if(!$)return null;x.updateTabInMoreKey($,!1);let le;return I.default.createElement("li",{draggable:!0,onDragStart:te=>{if(le){const ue=le.cloneNode(!0);ue.classList.add(l.default.dragging),V&&ue.classList.add(V),document.body.appendChild(ue),te.persist(),requestAnimationFrame(()=>{te.dataTransfer.setDragImage(ue,0,0),document.body.removeChild(ue)})}x.handleDragStart(te,$)},onDragOver:te=>{te.preventDefault(),le&&le.classList.add("on-drag-over")},onDragLeave:()=>{le&&le.classList.remove("on-drag-over")},onDrop:te=>{le&&le.classList.remove("on-drag-over"),x.handleDrop(te,$)},key:$,id:$,onContextMenu:te=>x.handleContextMenu(te,$),onClick:te=>ee(te,P||A),ref:te=>le=te,className:(0,a.default)({active:pe===$},V)},I.default.createElement(E,{component:he}))},[]);return I.default.createElement("div",{className:(0,a.default)([B,Y])},I.default.createElement("div",{className:D,style:{flexDirection:p.Layout.getTabbarDirection(M)}},oe.map(he=>ae(he,k,J)),X({props:Z,renderContainers:ae}),se.length?I.default.createElement("li",{key:"tab-more",onClick:he=>{var ee;return x.showMoreMenu(he,oe[oe.length-1]&&((ee=oe[oe.length-1].options)===null||ee===void 0?void 0:ee.containerId))},className:V},I.default.createElement(R,null)):null))}),e.IconTabView=(0,o.observer)(({component:Z})=>{var y,E,R,A;const w=(0,u.useInjectable)(m.IProgressService),F=(0,u.useInjectable)(u.KeybindingRegistry),V=(0,u.useDesignStyles)(l.default.icon_tab,"icon_tab"),[Y,_]=I.default.useState(Z),H=(E=w.getIndicator(((y=Y.options)===null||y===void 0?void 0:y.containerId)||""))===null||E===void 0?void 0:E.progressModel.show,S=I.default.useMemo(()=>{const X=Y.options;return X?.activateKeyBinding?`${X?.title} (${F.acceleratorForKeyString(X.activateKeyBinding,"+")})`:X?.title},[Y]);return(0,I.useEffect)(()=>{const X=Y.onChange(Q=>{_(Q)});return()=>{X.dispose()}},[]),I.default.createElement("div",{className:V},I.default.createElement("div",{className:(0,a.default)((R=Y.options)===null||R===void 0?void 0:R.iconClass,"activity-icon"),title:S}),H?I.default.createElement(g.Badge,{className:l.default.tab_badge},I.default.createElement("span",{className:l.default.icon_wrapper},I.default.createElement(g.Icon,{icon:"time-circle"}))):((A=Y.options)===null||A===void 0?void 0:A.badge)&&I.default.createElement(g.Badge,{className:l.default.tab_badge},parseInt(Y.options.badge,10)>99?"99+":Y.options.badge))}),e.TextTabView=(0,o.observer)(({component:Z})=>{var y,E,R;const[A,w]=I.default.useState(Z);return(0,I.useEffect)(()=>{const F=A.onChange(V=>{w(V)});return()=>{F.dispose()}},[]),I.default.createElement("div",{className:l.default.text_tab},I.default.createElement("div",{className:l.default.bottom_tab_title},(E=(y=A.options)===null||y===void 0?void 0:y.title)===null||E===void 0?void 0:E.toUpperCase()),((R=A.options)===null||R===void 0?void 0:R.badge)&&I.default.createElement(g.Badge,{className:l.default.tab_badge},parseInt(A.options.badge,10)>99?"99+":A.options.badge))});const h=()=>{const Z=(0,u.useDesignStyles)(l.default.icon_tab,"icon_tab");return I.default.createElement("div",{className:Z},I.default.createElement("div",{className:(0,a.default)((0,u.getIcon)("ellipsis"),"activity-icon"),title:"extra tabs"}))};e.IconElipses=h;const v=()=>I.default.createElement("div",{className:l.default.text_tab},I.default.createElement("div",{className:l.default.bottom_tab_title},I.default.createElement("i",{className:(0,u.getIcon)("doubleright")})));e.TextElipses=v;const f=Z=>{const{barSize:y=48,style:E}=Z,{side:R}=I.default.useContext(s.TabbarConfig),A=(0,u.useInjectable)(r.TabbarServiceFactory)(R),w=(0,u.useDesignStyles)(l.default.right_tab_bar,"right_tab_bar"),F=(0,u.useDesignStyles)(l.default.right_tab,"right_tab");return I.default.createElement("div",{id:b.VIEW_CONTAINERS.RIGHT_TABBAR,className:w,style:E,onContextMenu:A.handleContextMenu},I.default.createElement(e.TabbarViewBase,{tabSize:48,MoreTabView:e.IconElipses,tabClassName:F,TabView:e.IconTabView,barSize:y,panelBorderSize:1}))};e.RightTabbarRenderer=f;const W=({renderOtherVisibleContainers:Z,isRenderExtraTopMenus:y=!0,renderExtraMenus:E,tabbarViewProps:R})=>{const{side:A}=I.default.useContext(s.TabbarConfig),w=(0,u.useInjectable)(d.IMainLayoutService),F=(0,u.useInjectable)(r.TabbarServiceFactory)(A),V=I.default.useMemo(()=>w.getExtraTopMenu(),[w]),Y=I.default.useMemo(()=>w.getExtraMenu(),[w]),_=(0,u.useDesignStyles)(l.default.left_tab_bar,"left_tab_bar"),H=(0,u.useDesignStyles)(l.default.left_tab,"left_tab");return I.default.createElement("div",{id:b.VIEW_CONTAINERS.LEFT_TABBAR,className:_,onContextMenu:F.handleContextMenu},y&&I.default.createElement(G.InlineMenuBar,{className:(0,a.default)(l.default.vertical_icons,l.default.extra_top_menus),menus:V}),I.default.createElement(e.TabbarViewBase,Object.assign({tabSize:48,MoreTabView:e.IconElipses,className:l.default.left_tab_content,tabClassName:H,TabView:e.IconTabView,barSize:48,margin:90,panelBorderSize:1,renderOtherVisibleContainers:Z},R)),E||I.default.createElement(G.InlineMenuBar,{className:l.default.vertical_icons,menus:Y}))};e.LeftTabbarRenderer=W;const N=()=>{const{side:Z}=I.default.useContext(s.TabbarConfig),y=(0,u.useInjectable)(r.TabbarServiceFactory)(Z),E=(0,u.useDesignStyles)(l.default.bottom_bar_container,"bottom_bar_container"),R=(0,u.useDesignStyles)(l.default.bottom_tab,"bottom_tab");return I.default.createElement("div",{id:b.VIEW_CONTAINERS.BOTTOM_TABBAR,onContextMenu:y.handleContextMenu,className:(0,a.default)(E,"next_bottom_bar")},I.default.createElement(e.TabbarViewBase,{tabSize:80,MoreTabView:e.TextElipses,tabClassName:R,TabView:e.TextTabView,barSize:24,panelBorderSize:1,canHideTabbar:!0}))};e.BottomTabbarRenderer=N},66368:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BottomTabPanelRenderer=e.LeftTabPanelRenderer=e.RightTabPanelRenderer=e.ContainerView=e.BaseTabPanelView=void 0;const n=t(85608),a=n.__importDefault(t(53373)),o=t(25150),I=n.__importDefault(t(14041)),g=t(76003),u=t(41869),G=t(25918),p=t(1149),b=t(68969),m=t(68974),d=t(9522),s=t(70936),l=t(91527),r=t(19951),c=n.__importDefault(t(5330)),h=t(752),v=I.default.memo(({children:R})=>R,(R,A)=>!(R.visible||A.visible)),f={display:"block"},W={display:"none"};e.BaseTabPanelView=(0,o.observer)(R=>{const{PanelView:A,panelSize:w,id:F,PanelViewProps:V}=R,{side:Y}=I.default.useContext(r.TabbarConfig),_=(0,u.useInjectable)(h.TabbarServiceFactory)(Y),H=(0,u.useInjectable)(u.AppConfig),S=H.panelSizes&&H.panelSizes[Y],X=(0,u.useDesignStyles)(c.default.tab_panel,"tab_panel"),Q=(0,u.useDesignStyles)(c.default.tab_panel_hidden,"tab_panel_hidden");return I.default.useEffect(()=>{_.updatePanelSize(S||w||335)},[]),I.default.createElement("div",{id:F,className:(0,a.default)(X,{[Q]:!_.currentContainerId})},_.visibleContainers.map(O=>{var M;const T=(M=O.options)===null||M===void 0?void 0:M.containerId;if(!T)return null;const x=_.getTitleToolbarMenu(T);return I.default.createElement("div",{key:T,className:(0,a.default)(c.default.panel_wrap,T),"data-viewlet-id":T,style:_.currentContainerId===T?f:W,id:F},I.default.createElement(u.ErrorBoundary,null,I.default.createElement(v,{visible:_.currentContainerId===T},I.default.createElement(A,Object.assign({titleMenu:x,side:Y,component:O},V)))))}))}),e.ContainerView=(0,o.observer)(({component:R,titleMenu:A,side:w,renderContainerWrap:F,className:V})=>{var Y,_;const H=I.default.useRef(),S=I.default.useRef(null),X=(0,u.useInjectable)(u.AppConfig),{title:Q,titleComponent:O,component:M,containerId:T}=R.options||{},x=(0,u.useInjectable)(g.INJECTOR_TOKEN),B=(0,u.useInjectable)(p.LayoutViewSizeConfig),D=U=>{x.get(d.AccordionServiceFactory)(T).handleContextMenu(U)};if(!T)return null;const k=(0,u.useInjectable)(b.IProgressService).getIndicator(T);if(!k)return null;const z=(0,u.useViewState)(w,S),P=I.default.useCallback(U=>F?F({children:U}):U,[F]);return I.default.createElement("div",{ref:S,className:(0,a.default)(c.default.view_container,V)},!M&&I.default.createElement("div",{onContextMenu:D,className:c.default.panel_titlebar},Q?I.default.createElement(l.TitleBar,{title:Q,height:B.panelTitleBarHeight,menubar:I.default.createElement(G.InlineActionBar,{menus:A})}):null,O&&I.default.createElement("div",{className:c.default.panel_component},I.default.createElement(u.ConfigProvider,{value:X},I.default.createElement(u.ComponentRenderer,{Component:O,initialProps:(Y=R.options)===null||Y===void 0?void 0:Y.titleProps})))),I.default.createElement("div",{className:c.default.container_wrap,ref:U=>H.current=U},I.default.createElement(m.ProgressBar,{progressModel:k.progressModel}),P(M?I.default.createElement(u.ConfigProvider,{value:X},I.default.createElement(u.ComponentRenderer,{initialProps:Object.assign({viewState:z},(_=R.options)===null||_===void 0?void 0:_.initialProps),Component:M})):I.default.createElement(s.AccordionContainer,{views:R.views,minSize:R.options.miniSize,containerId:R.options.containerId}))))});const N=(0,o.observer)(({component:R,titleMenu:A,side:w})=>{var F,V,Y,_;const H=I.default.useRef(),S=I.default.useRef(null),X=(0,u.useInjectable)(u.AppConfig),Q=(0,u.useInjectable)(h.TabbarServiceFactory)(w),O=(0,u.useDesignStyles)(c.default.panel_title_bar,"panel_title_bar"),M=(0,u.useDesignStyles)(c.default.panel_toolbar_container,"panel_toolbar_container"),T=(0,u.useViewState)(w,S),x=(0,u.useInjectable)(p.LayoutViewSizeConfig),B=(0,u.useInjectable)(b.IProgressService),{component:D,containerId:J}=R.options||{},k=R.options&&R.options.titleComponent;if(!J)return null;const z=B.getIndicator(J);return z?I.default.createElement("div",{ref:S,className:c.default.panel_container},I.default.createElement("div",{className:O,style:{height:x.panelTitleBarHeight}},I.default.createElement("h1",null,(V=(F=R.options)===null||F===void 0?void 0:F.title)===null||V===void 0?void 0:V.toUpperCase()),I.default.createElement("div",{className:c.default.title_component_container},k&&I.default.createElement(u.ComponentRenderer,{Component:k,initialProps:(Y=R.options)===null||Y===void 0?void 0:Y.titleProps})),I.default.createElement("div",{className:M},A&&I.default.createElement(G.InlineActionBar,{menus:A}),I.default.createElement(G.InlineMenuBar,{menus:Q.commonTitleMenu,moreAtFirst:!0}))),I.default.createElement("div",{className:c.default.container_wrap,ref:P=>H.current=P},I.default.createElement(m.ProgressBar,{progressModel:z.progressModel}),D?I.default.createElement(u.ConfigProvider,{value:X},I.default.createElement(u.ComponentRenderer,{initialProps:Object.assign({viewState:T},(_=R.options)===null||_===void 0?void 0:_.initialProps),Component:D})):I.default.createElement(s.AccordionContainer,{views:R.views,alignment:"horizontal",minSize:R.options.miniSize,containerId:R.options.containerId}))):null}),Z=()=>I.default.createElement(e.BaseTabPanelView,{PanelView:e.ContainerView});e.RightTabPanelRenderer=Z;const y=()=>I.default.createElement(e.BaseTabPanelView,{PanelView:e.ContainerView});e.LeftTabPanelRenderer=y;const E=()=>I.default.createElement(e.BaseTabPanelView,{PanelView:N,panelSize:280});e.BottomTabPanelRenderer=E},19951:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BottomTabRenderer=e.LeftTabRenderer=e.RightTabRenderer=e.TabRendererBase=e.TabbarConfig=void 0;const n=t(85608),a=n.__importDefault(t(53373)),o=n.__importStar(t(14041)),I=t(41869),g=t(81878),u=t(25719),G=t(63373),p=t(46245),b=t(66368),m=n.__importDefault(t(5330)),d=t(752);e.TabbarConfig=(0,o.createContext)({side:I.SlotLocation.left,direction:"left-to-right",fullSize:0}),e.TabRendererBase=(0,o.memo)(({id:c,className:h,components:v,direction:f="left-to-right",TabbarView:W,side:N,TabpanelView:Z})=>{const y=(0,I.useInjectable)(d.TabbarServiceFactory)(N),E=(0,I.useInjectable)(I.IEventBus),R=(0,o.useContext)(g.PanelContext),A=(0,o.useRef)(null),[w,F]=(0,o.useState)(0);(0,o.useLayoutEffect)(()=>{y.registerResizeHandle(R),v.forEach(Y=>{y.registerContainer(Y.options.containerId,Y)}),y.updatePanelVisibility(),y.ensureViewReady()},[v]);const V=(0,o.useCallback)(()=>{A.current&&F(A.current[u.Layout.getDomSizeProperty(f)])},[w,A.current]);return(0,o.useEffect)(()=>{if(A.current){V();let Y;E.on(I.ResizeEvent,_=>{_.payload.slotLocation===N&&(Y&&(Y.dispose(),Y=null),Y=(0,I.runWhenIdle)(V))})}},[]),o.default.createElement("div",{ref:A,id:c,className:(0,a.default)(m.default.tab_container,h),style:{flexDirection:u.Layout.getFlexDirection(f)}},o.default.createElement(e.TabbarConfig.Provider,{value:{side:N,direction:f,fullSize:w}},o.default.createElement(W,null),o.default.createElement(Z,null)))});const s=({className:c,components:h,tabbarView:v,tabpanelView:f})=>o.default.createElement(e.TabRendererBase,{side:I.SlotLocation.right,direction:"right-to-left",id:G.VIEW_CONTAINERS.RIGHT_TABBAR_PANEL,className:(0,a.default)(c,"right-slot"),components:h,TabbarView:v??p.RightTabbarRenderer,TabpanelView:f??b.RightTabPanelRenderer});e.RightTabRenderer=s;const l=({className:c,components:h,tabbarView:v})=>o.default.createElement(e.TabRendererBase,{side:I.SlotLocation.left,direction:"left-to-right",id:G.VIEW_CONTAINERS.LEFT_TABBAR_PANEL,className:(0,a.default)(c,"left-slot"),components:h,TabbarView:v??p.LeftTabbarRenderer,TabpanelView:b.LeftTabPanelRenderer});e.LeftTabRenderer=l;const r=({className:c,components:h,tabbarView:v})=>o.default.createElement(e.TabRendererBase,{side:I.SlotLocation.bottom,id:G.VIEW_CONTAINERS.BOTTOM_TABBAR_PANEL,direction:"bottom-to-top",className:(0,a.default)(c,"bottom-slot"),components:h,TabbarView:v??p.BottomTabbarRenderer,TabpanelView:b.BottomTabPanelRenderer});e.BottomTabRenderer=r},752:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.TabbarService=e.TabbarServiceFactory=void 0;const n=t(85608),a=n.__importDefault(t(12784)),o=t(83794),I=t(76003),g=t(41869),u=t(30144),G=t(95416),p=t(93899),b=t(68969),m=t(17793),d=t(53576);e.TabbarServiceFactory=Symbol("TabbarServiceFactory");const s={left:"view",right:"extendView",bottom:"panel"},l=void 0;let r=class extends g.WithEventBus{constructor(h){super(),this.location=h,this.currentContainerId=l,this.previousContainerId="",this.containersMap=new Map,this.state=new Map,this.storedState={},this.viewReady=new g.Deferred,this.accordionRestored=new Set,this.onCurrentChangeEmitter=new g.Emitter,this.onCurrentChange=this.onCurrentChangeEmitter.event,this.onSizeChangeEmitter=new g.Emitter,this.onSizeChange=this.onSizeChangeEmitter.event,this.menuId=`tabbar/${this.location}`,this.moreMenuId=`tabbar/${this.location}/more`,this.sortedContainers=[],this.disposableMap=new Map,this.tabInMoreKeyMap=new Map,this.shouldWaitForViewRender=!1,this.onDidRegisterContainerEmitter=new g.Emitter,this.isEmptyTabbar=!0,this.updatePanel=(0,a.default)(v=>{this.resizeHandle&&this.resizeHandle.hidePanel(v)},60),this._menuMap=new Map,this.setIsLatter(h===g.SlotLocation.right||h===g.SlotLocation.bottom),(0,o.makeObservable)(this),this.scopedCtxKeyService=this.contextKeyService.createScoped(),this.scopedCtxKeyService.createKey("triggerWithTab",!0),this.menuRegistry.registerMenuItem(this.menuId,{command:{id:this.registerGlobalToggleCommand(),label:(0,g.localize)("layout.tabbar.toggle")},group:"0_global",when:"triggerWithTab == true"}),this.activatedKey=this.contextKeyService.createKey((0,g.getTabbarCtxKey)(this.location),""),this.location==="bottom"&&(this.registerPanelCommands(),this.registerPanelMenus())}get onDidRegisterContainer(){return this.onDidRegisterContainerEmitter.event}setIsLatter(h){this.isLatter=h}updateCurrentContainerId(h){this.currentContainerId=h}updateBadge(h,v){const f=this.getContainer(h);f&&f.options&&(f.options.badge=v),f?.fireChange(f)}registerPanelCommands(){this.commandRegistry.registerCommand(d.EXPAND_BOTTOM_PANEL,{execute:()=>{this.layoutService.expandBottom(!0)}}),this.commandRegistry.registerCommand(d.RETRACT_BOTTOM_PANEL,{execute:()=>{this.layoutService.expandBottom(!1)}}),this.commandRegistry.registerCommand(d.TOGGLE_BOTTOM_PANEL_COMMAND,{execute:(h,v)=>{this.layoutService.toggleSlot(g.SlotLocation.bottom,h,v)}})}getContainerState(h){return this.state.get(h)}hideContainer(h){const v=this.state.get(h);v&&(v.hidden=!0)}showContainer(h){const v=this.state.get(h);v&&(v.hidden=!1)}updatePanelVisibility(h){h===void 0&&(h=this.containersMap.size>0),this.updatePanel(h)}ensureViewReady(){(0,g.isDefined)(this.barSize)&&(0,g.isDefined)(this.panelSize)?this.resolveViewReady():this.shouldWaitForViewRender=!0}updatePanelSize(h){this.panelSize=h,(0,g.isDefined)(this.barSize)&&this.shouldWaitForViewRender&&this.resolveViewReady()}updateBarSize(h){this.barSize=h,(0,g.isDefined)(this.panelSize)&&this.shouldWaitForViewRender&&this.resolveViewReady()}resolveViewReady(){this.isEmptyTabbar?g.Event.once(this.onDidRegisterContainer)(()=>{this.viewReady.resolve()}):this.viewReady.resolve()}getBarSize(){return this.barSize}updateTabInMoreKey(h,v){const f=this.tabInMoreKeyMap.get(h);f&&f.set(v)}get visibleContainers(){const h=[];return this.containersMap.forEach(v=>{const f=v.options&&this.state.get(v.options.containerId);(!f||!f.hidden)&&h.push(v)}),h.sort((v,f)=>this.getContainerState(v.options.containerId).priority-this.getContainerState(f.options.containerId).priority)}registerResizeHandle(h){const{setSize:v,setRelativeSize:f,getSize:W,getRelativeSize:N,lockSize:Z,setMaxSize:y,hidePanel:E}=h;return this.resizeHandle={setSize:R=>v(R,this.isLatter),setRelativeSize:(R,A)=>f(R,A,this.isLatter),getSize:()=>W(this.isLatter),getRelativeSize:()=>N(this.isLatter),setMaxSize:R=>y(R,this.isLatter),lockSize:R=>Z(R,this.isLatter),hidePanel:R=>E(R)},this.listenCurrentChange()}registerContainer(h,v){var f;if(this.containersMap.has(h))return;const W=new g.DisposableCollection,N=v.options||{containerId:h};v.options=N;const Z=new g.Emitter;this.containersMap.set(h,{fireChange:E=>Z.fire(E),onChange:Z.event,views:v.views,options:o.observable.object(N,void 0,{deep:!1})}),W.push({dispose:()=>{this.containersMap.delete(h),this.state.delete(h)}}),this.updatePanelVisibility(this.containersMap.size>0);let y=this.sortedContainers.findIndex(E=>{var R,A;return(((R=E.options)===null||R===void 0?void 0:R.priority)||1)<=(((A=v.options)===null||A===void 0?void 0:A.priority)||1)});y===-1&&(y=this.sortedContainers.length),this.sortedContainers.splice(y,0,v);for(let E=y;E<this.sortedContainers.length;E++){const A=(f=this.sortedContainers[E].options)===null||f===void 0?void 0:f.containerId;if(A){const w=this.storedState[A]||this.getContainerState(A)||{};(0,o.runInAction)(()=>{this.state.set(A,{hidden:w.hidden,priority:E})})}}W.push(this.registerSideEffects(v)),this.eventBus.fire(new m.TabBarRegistrationEvent({tabBarId:h})),h===this.currentContainerId&&this.handleChange(h,""),this.viewContextKeyRegistry.registerContextKeyService(h,this.contextKeyService.createScoped()).createKey("view",h),this.isEmptyTabbar&&(this.isEmptyTabbar=!1),this.disposableMap.set(h,W),this.onDidRegisterContainerEmitter.fire(h)}registerSideEffects(h){var v;const f=new g.DisposableCollection;!((v=h.options)===null||v===void 0)&&v.hideTab||(f.push(this.registerHideMenu(h)),f.push(this.registerMoreMenu(h))),f.push(this.registerActivateKeyBinding(h,h.options.fromExtension));const W=this.contextKeyService.createKey(`workbench.${s[this.location]||"view"}.${h.options.containerId}`,!0);return f.push({dispose:()=>{W.set(!1)}}),f.push(this.progressService.registerProgressIndicator(h.options.containerId)),f.push(this.registerContainerPanelRelatedCommand(h)),f}registerContainerPanelRelatedCommand(h){var v,f,W,N,Z;const y=new g.DisposableCollection,E=(v=h.options)===null||v===void 0?void 0:v.containerId;return y.push(this.commandRegistry.registerCommand({id:"container.show."+E,label:(0,g.formatLocalize)("view.command.show",(W=(f=h.options)===null||f===void 0?void 0:f.title)!==null&&W!==void 0?W:E),labelLocalized:(0,g.createFormatLocalizedStr)("view.command.show",(Z=(N=h.options)===null||N===void 0?void 0:N.title)!==null&&Z!==void 0?Z:E),category:"View"},{execute:()=>{this.updateCurrentContainerId(E)}})),y.push(this.commandRegistry.registerCommand({id:"container.hide."+E},{execute:()=>{this.updateCurrentContainerId("")}})),y.push(this.commandRegistry.registerCommand({id:"container.toggle."+E},{execute:()=>{this.currentContainerId===E?this.updateCurrentContainerId(""):this.updateCurrentContainerId(E)}})),y}registerHideMenu(h){const v=new g.DisposableCollection,f=h.options.containerId;return v.push(this.menuRegistry.registerMenuItem(this.menuId,{command:{id:this.registerVisibleToggleCommand(f,v),label:h.options.title||f},group:"1_widgets"})),v}registerMoreMenu(h){const v=new g.DisposableCollection,f=h.options.containerId,W=this.scopedCtxKeyService.createKey(this.getTabInMoreCtxKey(f),!1);return this.tabInMoreKeyMap.set(f,W),v.push({dispose:()=>this.tabInMoreKeyMap.delete(f)}),v.push(this.menuRegistry.registerMenuItem(this.moreMenuId,{command:{id:this.registerMoreToggleCommand(h,v),label:h.options.title||f},group:"inline",when:`${this.getTabInMoreCtxKey(f)} == true`,toggledWhen:`${(0,g.getTabbarCtxKey)(this.location)} == ${f}`,iconClass:h.options.iconClass})),v}disposeContainer(h){var v;const f=this.disposableMap.get(h);f&&f.dispose(),this.currentContainerId===h&&this.updateCurrentContainerId(((v=this.visibleContainers[0].options)===null||v===void 0?void 0:v.containerId)||"")}updateTitle(h,v){const f=this.getContainer(h);f&&(f.options.title=v)}getContainer(h){return this.containersMap.get(h)}getTitleToolbarMenu(h){const v=this._menuMap.get(h);if(v)return v;const f=this.menuService.createMenu(p.MenuId.ViewTitle,this.viewContextKeyRegistry.getContextKeyService(h));this._menuMap.set(h,f);const W=this.disposableMap.get(h),N=[f,(0,g.toDisposable)(()=>{this._menuMap.delete(h)})];return W?W.pushAll(N):this.addDispose(N),f}doExpand(h){if(this.resizeHandle){const{setRelativeSize:v}=this.resizeHandle;h?this.isLatter?v(0,1):v(1,0):v(2,1)}}get isExpanded(){if(this.resizeHandle){const{getRelativeSize:h}=this.resizeHandle,v=h().join(",");return this.isLatter?v==="0,1":v==="1,0"}return!1}handleTabClick(h,v){const f=h.currentTarget.id;f===this.currentContainerId&&!v?this.updateCurrentContainerId(""):this.updateCurrentContainerId(f)}handleContextMenu(h,v){h.preventDefault(),h.stopPropagation();const f=this.menuService.createMenu(this.menuId,v?this.scopedCtxKeyService:this.contextKeyService),W=(0,p.generateCtxMenu)({menus:f,args:[{containerId:v}]});this.contextMenuRenderer.show({menuNodes:W[1],anchor:{x:h.clientX,y:h.clientY}})}showMoreMenu(h,v){const f=this.menuService.createMenu(this.moreMenuId,this.scopedCtxKeyService),W=(0,p.generateCtxMenu)({menus:f,args:[{lastContainerId:v}]});this.contextMenuRenderer.show({menuNodes:W[1],anchor:{x:h.clientX,y:h.clientY}})}handleDragStart(h,v){h.dataTransfer.setData("containerId",v)}handleDrop(h,v){if(h.dataTransfer.getData("containerId")){const f=h.dataTransfer.getData("containerId"),W=this.visibleContainers,N=W.findIndex(y=>f===y.options.containerId),Z=W.findIndex(y=>v===y.options.containerId);this.doInsertTab(W,N,Z),this.storeState()}}restoreState(){this.storedState=this.layoutState.getState(G.LAYOUT_STATE.getTabbarSpace(this.location),{});for(const h of this.state.keys())this.storedState[h]&&this.state.set(h,this.storedState[h]);this.visibleContainers.forEach(h=>{m.SUPPORT_ACCORDION_LOCATION.has(this.location)&&this.tryRestoreAccordionSize(h.options.containerId)})}doInsertTab(h,v,f){const W=this.getContainerState(h[f].options.containerId).priority,N=(y,E)=>{const R=this.getContainerState(h[y].options.containerId),A=this.getContainerState(h[E].options.containerId);R.priority=A.priority};let Z;if(v>f)for(Z=f;Z<v;Z++)N(Z,Z+1);else for(Z=f;Z>v;Z--)N(Z,Z-1);this.getContainerState(h[Z].options.containerId).priority=W}storeState(){const h={};this.state.forEach((v,f)=>{h[f]=v}),this.layoutState.setState(G.LAYOUT_STATE.getTabbarSpace(this.location),h)}registerActivateKeyBinding(h,v){const f=h.options,W=f.containerId,N=v?`workbench.view.extension.${W}`:`workbench.view.${W}`,Z=new g.DisposableCollection;return Z.push(this.commandRegistry.registerCommand({id:N},{execute:({forceShow:y}={})=>{this.location==="bottom"&&!y?this.updateCurrentContainerId(this.currentContainerId===W?"":W):this.updateCurrentContainerId(W)}})),f.activateKeyBinding&&Z.push(this.keybindingRegistry.registerKeybinding({command:N,keybinding:f.activateKeyBinding})),Z}registerGlobalToggleCommand(){const h=`activity.bar.toggle.${this.location}`;return this.commandRegistry.registerCommand({id:h},{execute:({containerId:v})=>{this.doToggleTab(v)},isEnabled:()=>this.visibleContainers.length>1}),h}registerVisibleToggleCommand(h,v){const f=`activity.bar.toggle.${h}`;return v.push(this.commandRegistry.registerCommand({id:f},{execute:({forceShow:W}={})=>{this.doToggleTab(h,W)},isToggled:()=>!this.getContainerState(h).hidden,isEnabled:()=>this.getContainerState(h).hidden||this.visibleContainers.length!==1})),f}registerMoreToggleCommand(h,v){const{options:f}=h,{containerId:W}=f,N=`activity.bar.activate.more.${W}`;return v.push(this.commandRegistry.registerCommand({id:N},{execute:({lastContainerId:Z})=>{if(this.updateCurrentContainerId(W),Z){const y=this.getContainerState(W),E=this.getContainerState(Z),R=y.priority;y.priority=E.priority,E.priority=R,this.storeState()}}})),N}getTabInMoreCtxKey(h){return`${h}.isInMore`}registerPanelMenus(){this.menuRegistry.registerMenuItems((0,p.getTabbarCommonMenuId)("bottom"),[{command:d.EXPAND_BOTTOM_PANEL.id,group:"navigation",when:"!bottomFullExpanded",order:1},{command:d.RETRACT_BOTTOM_PANEL.id,group:"navigation",when:"bottomFullExpanded",order:1},{command:d.TOGGLE_BOTTOM_PANEL_COMMAND.id,group:"navigation",order:2}]),this.commonTitleMenu=this.ctxMenuService.createMenu({id:"tabbar/bottom/common"})}doToggleTab(h,v){const f=this.getContainerState(h);v===void 0?f.hidden=!f.hidden:f.hidden=!v,f.hidden&&this.currentContainerId===h&&this.updateCurrentContainerId(this.visibleContainers[0].options.containerId),this.storeState()}shouldExpand(h){const v=this.getContainer(h);return v&&v.options&&v.options.expanded}onResize(h){if(h.payload.slotLocation===this.location){if(!this.currentContainerId||!this.resizeHandle)return;const v=this.resizeHandle.getSize();v!==this.barSize&&!this.shouldExpand(this.currentContainerId)&&(this.prevSize=v,this.onSizeChangeEmitter.fire({size:v}))}}listenCurrentChange(){return(0,o.reaction)(()=>this.currentContainerId,(h,v)=>{this.previousContainerId=v===l?"":v,this.handleChange(h,v)})}handleChange(h,v){var f;if(!this.resizeHandle)return;const{getSize:W,setSize:N,lockSize:Z}=this.resizeHandle;this.onCurrentChangeEmitter.fire({previousId:v,currentId:h});const y=this.shouldExpand(h);if(this.shouldExpand(this.previousContainerId)||y)this.handleFullExpanded(h,y);else if(h){v&&h!==v&&(this.prevSize=W());const E=this.getContainer(h);N(this.prevSize||this.panelSize+this.barSize),Z(!!(!((f=E?.options)===null||f===void 0)&&f.noResize)),this.activatedKey.set(h)}else N(this.barSize),Z(!0)}tryRestoreAccordionSize(h){var v,f;if(this.accordionRestored.has(h))return;const W=this.containersMap.get(h);if((!W||!((v=W.options)===null||v===void 0)&&v.component)&&((f=W?.options)===null||f===void 0?void 0:f.containerId)!==u.SCM_CONTAINER_ID)return;this.layoutService.getAccordionService(h).restoreState(),this.accordionRestored.add(h)}handleFullExpanded(h,v){if(!this.resizeHandle)return;const{setRelativeSize:f,setSize:W}=this.resizeHandle;h?v?this.isLatter?f(0,1):f(1,0):W(this.prevSize||this.panelSize+this.barSize):W(this.barSize)}};n.__decorate([o.observable,n.__metadata("design:type",String)],r.prototype,"currentContainerId",void 0),n.__decorate([o.observable,n.__metadata("design:type",Map)],r.prototype,"state",void 0),n.__decorate([(0,I.Autowired)(p.AbstractMenuService),n.__metadata("design:type",p.AbstractMenuService)],r.prototype,"menuService",void 0),n.__decorate([(0,I.Autowired)(p.AbstractContextMenuService),n.__metadata("design:type",p.AbstractContextMenuService)],r.prototype,"ctxMenuService",void 0),n.__decorate([(0,I.Autowired)(p.IMenuRegistry),n.__metadata("design:type",p.IMenuRegistry)],r.prototype,"menuRegistry",void 0),n.__decorate([(0,I.Autowired)(g.CommandRegistry),n.__metadata("design:type",Object)],r.prototype,"commandRegistry",void 0),n.__decorate([(0,I.Autowired)(p.ICtxMenuRenderer),n.__metadata("design:type",p.ICtxMenuRenderer)],r.prototype,"contextMenuRenderer",void 0),n.__decorate([(0,I.Autowired)(g.KeybindingRegistry),n.__metadata("design:type",Object)],r.prototype,"keybindingRegistry",void 0),n.__decorate([(0,I.Autowired)(),n.__metadata("design:type",g.ViewContextKeyRegistry)],r.prototype,"viewContextKeyRegistry",void 0),n.__decorate([(0,I.Autowired)(g.IContextKeyService),n.__metadata("design:type",Object)],r.prototype,"contextKeyService",void 0),n.__decorate([(0,I.Autowired)(m.IMainLayoutService),n.__metadata("design:type",Object)],r.prototype,"layoutService",void 0),n.__decorate([(0,I.Autowired)(),n.__metadata("design:type",G.LayoutState)],r.prototype,"layoutState",void 0),n.__decorate([(0,I.Autowired)(b.IProgressService),n.__metadata("design:type",Object)],r.prototype,"progressService",void 0),n.__decorate([o.action,n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[String]),n.__metadata("design:returntype",void 0)],r.prototype,"updateCurrentContainerId",null),n.__decorate([o.action,n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[String,String]),n.__metadata("design:returntype",void 0)],r.prototype,"updateBadge",null),n.__decorate([o.action,n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[String]),n.__metadata("design:returntype",void 0)],r.prototype,"hideContainer",null),n.__decorate([o.action,n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[String]),n.__metadata("design:returntype",void 0)],r.prototype,"showContainer",null),n.__decorate([o.action,n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[String,Object]),n.__metadata("design:returntype",void 0)],r.prototype,"registerContainer",null),n.__decorate([o.action,n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[String]),n.__metadata("design:returntype",void 0)],r.prototype,"disposeContainer",null),n.__decorate([o.action,n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[String,String]),n.__metadata("design:returntype",void 0)],r.prototype,"updateTitle",null),n.__decorate([o.action.bound,n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[Object,Boolean]),n.__metadata("design:returntype",void 0)],r.prototype,"handleTabClick",null),n.__decorate([o.action.bound,n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[Object,String]),n.__metadata("design:returntype",void 0)],r.prototype,"handleContextMenu",null),n.__decorate([o.action,n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[]),n.__metadata("design:returntype",void 0)],r.prototype,"restoreState",null),n.__decorate([o.action,n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[String,Boolean]),n.__metadata("design:returntype",void 0)],r.prototype,"doToggleTab",null),n.__decorate([(0,g.OnEvent)(g.ResizeEvent),n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[g.ResizeEvent]),n.__metadata("design:returntype",void 0)],r.prototype,"onResize",null),r=n.__decorate([(0,I.Injectable)({multiple:!0}),n.__metadata("design:paramtypes",[String])],r),e.TabbarService=r},58296:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ViewsRegistry=e.ViewsController=e.ViewContentGroups=void 0;const n=t(85608),a=t(76003),o=t(41869),I=t(43718),g=t(17793);var u;(function(m){m.Open="2_open",m.Debug="4_debug",m.SCM="5_scm",m.More="9_more"})(u=e.ViewContentGroups||(e.ViewContentGroups={}));function G(m,d){var s,l,r,c;const h=(s=m.group)!==null&&s!==void 0?s:u.More,v=(l=d.group)!==null&&l!==void 0?l:u.More;return h!==v?h.localeCompare(v):((r=m.order)!==null&&r!==void 0?r:5)-((c=d.order)!==null&&c!==void 0?c:5)}let p=class{get contents(){const d=this.items.filter(s=>s.visible);return d.length===0&&this.defaultItem?[this.defaultItem.descriptor]:d.map(s=>s.descriptor)}constructor(d){this.id=d,this._onDidChange=new o.Emitter,this.onDidChange=this._onDidChange.event,this.items=[],this.disposables=[],this.contextKeyService.onDidChangeContext(this.onDidChangeContext,this,this.disposables),o.Event.filter(this.viewsRegistry.onDidChangeViewWelcomeContent,s=>s===this.id)(this.onDidChangeViewWelcomeContent,this,this.disposables),this.onDidChangeViewWelcomeContent()}onDidChangeViewWelcomeContent(){const d=this.viewsRegistry.getViewWelcomeContent(this.id);this.items=[];for(const s of d)if(s.when==="default")this.defaultItem={descriptor:s,visible:!0};else{const l=s.when?this.contextKeyService.match(s.when):!0;this.items.push({descriptor:s,visible:l})}this._onDidChange.fire()}onDidChangeContext(){let d=!1;for(const s of this.items){if(!s.descriptor.when||s.descriptor.when==="default")continue;const l=this.contextKeyService.match(s.descriptor.when);s.visible!==l&&(s.visible=l,d=!0)}d&&this._onDidChange.fire()}dispose(){this.disposables.forEach(d=>d.dispose()),this.disposables=[]}};n.__decorate([(0,a.Autowired)(o.IContextKeyService),n.__metadata("design:type",Object)],p.prototype,"contextKeyService",void 0),n.__decorate([(0,a.Autowired)(g.IViewsRegistry),n.__metadata("design:type",Object)],p.prototype,"viewsRegistry",void 0),p=n.__decorate([(0,a.Injectable)({multiple:!0}),n.__metadata("design:paramtypes",[String])],p),e.ViewsController=p;let b=class{constructor(){this.viewWelcomeContent=new I.SetMap,this._onDidChangeViewWelcomeContent=new o.Emitter,this.onDidChangeViewWelcomeContent=this._onDidChangeViewWelcomeContent.event}registerViewWelcomeContent(d,s){return this.viewWelcomeContent.add(d,s),this._onDidChangeViewWelcomeContent.fire(d),{dispose:()=>{this.viewWelcomeContent.delete(d,s),this._onDidChangeViewWelcomeContent.fire(d)}}}registerViewWelcomeContent2(d,s){const l=new Map;for(const[r,c]of s)this.viewWelcomeContent.add(d,c),l.set(r,(0,o.toDisposable)(()=>{this.viewWelcomeContent.delete(d,c),this._onDidChangeViewWelcomeContent.fire(d)}));return this._onDidChangeViewWelcomeContent.fire(d),l}getViewWelcomeContent(d){const s=[];return this.viewWelcomeContent.forEach(d,l=>s.push(l)),s.sort(G),s}};b=n.__decorate([(0,a.Injectable)()],b),e.ViewsRegistry=b},24429:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.WelcomeView=e.renderLabelWithIcons=e.CSSIcon=void 0;const n=t(85608),a=n.__importDefault(t(53373)),o=n.__importDefault(t(14041)),I=t(48412),g=t(41869),u=t(43718),G=n.__importDefault(t(81388)),p=t(58296);var b;(function(r){r.iconNameSegment="[A-Za-z0-9]+",r.iconNameExpression="[A-Za-z0-9\\-]+",r.iconModifierExpression="~[A-Za-z]+"})(b=e.CSSIcon||(e.CSSIcon={}));const m=new RegExp(`(\\\\)?\\$\\((${b.iconNameExpression}(?:${b.iconModifierExpression})?)\\)`,"g");function d(r){const c=new Array;let h,v=0,f=0;for(;(h=m.exec(r))!==null;){f=h.index||0,c.push(r.substring(v,f)),v=(h.index||0)+h[0].length;const[,W,N]=h;c.push(W?`$(${N})`:o.default.createElement("span",{className:(0,g.getExternalIcon)(N)}))}return v<r.length&&c.push(r.substring(v)),c}e.renderLabelWithIcons=d;const s=r=>{const{contents:c}=r,[h,v]=o.default.useState(c.map(N=>N.precondition?!1:null)),f=(0,g.useInjectable)(g.IContextKeyService),W=(0,g.useInjectable)(g.IOpenerService);return o.default.useEffect(()=>{const N=c.map(y=>{if(y.precondition){const E=new Set;return y.precondition.keys().forEach(R=>E.add(R)),E}return null}),Z=f.onDidChangeContext(y=>{N.forEach((E,R)=>{E&&y.payload.affectsSome(E)&&v(h.map((A,w)=>w===R?f.match(c[R].precondition):A))})});return()=>Z.dispose()},[c]),c.length===0?null:o.default.createElement(o.default.Fragment,null,c.map(({content:N,precondition:Z},y)=>{const E=N.split(`
|
|
27878
|
+
}`);this.resource=c||void 0}s&&this.commandService.executeCommand(g.EDITOR_COMMANDS.OPEN_RESOURCE.id,new g.URI(s),{preview:!1})}disposeRegistedKeybinding(){for(const[,s]of this.toUnregisterUserKeybindingMap)s.dispose();for(const[,s]of this.toRestoreDefaultKeybindingMap)s.dispose()}dispose(){this.disposeRegistedKeybinding(),this.disposableCollection.dispose()}getValidateCommand(s){return s.replace(/^monaco.editor/,"editor")}async reconcile(s){const l=n.KEYMAP_FILE_URI.toString();this.resource=await this.filesystem.getFileStat(l),this.resource||(this.resource=await this.filesystem.createFile(l,{content:JSON.stringify([])}));const c=(s?s.slice(0):await this.parseKeybindings()).map(f=>({when:f.when,command:this.getValidateCommand(f.command),keybinding:f.key||f.keybinding})),h=[],v=[];this.disposeRegistedKeybinding(),c.forEach(f=>{f.command.startsWith("-")?v.push(f):h.push(f)}),h.map(f=>{this.unregisterDefaultKeybinding(f,!0),this.registerUserKeybinding(f)}),v.map(f=>{f.command=f.command.slice(1),this.unregisterDefaultKeybinding(f,!0)})}unregisterUserKeybinding(s){const l=this.toUniqueKey(s);if(this.toUnregisterUserKeybindingMap.has(l)){const r=this.toUnregisterUserKeybindingMap.get(l);r?.dispose(),this.toUnregisterUserKeybindingMap.delete(l)}}registerUserKeybinding(s){const l=this.toUniqueKey(s);this.toUnregisterUserKeybindingMap.set(l,this.keybindingRegistry.registerKeybinding(s,g.KeybindingScope.USER))}unregisterDefaultKeybinding(s,l=!1){if(l)this.keybindingRegistry.getKeybindingsForCommand(s.command).map(c=>{const h=Object.assign(Object.assign({},s),{keybinding:c.keybinding});this.keybindingRegistry.unregisterKeybinding(h);const v=this.toUniqueKey(s);this.toRestoreDefaultKeybindingMap.set(v,g.Disposable.create(()=>{this.keybindingRegistry.registerKeybinding(h)}))});else{this.keybindingRegistry.unregisterKeybinding(s);const r=this.toUniqueKey(s);this.toRestoreDefaultKeybindingMap.set(r,g.Disposable.create(()=>{this.keybindingRegistry.registerKeybinding(s)}))}}restoreDefaultKeybinding(s){const l=this.toUniqueKey(s),r=this.toRestoreDefaultKeybindingMap.get(l);r&&(r?.dispose(),this.toRestoreDefaultKeybindingMap.delete(l))}toUniqueKey(s){return`${s.command}${s.when?`-${s.when}`:"-"}${s.keybinding?`-${s.keybinding}`:"-"}`}async parseKeybindings(){try{const s=await this.resource;if(!s)return[];const{content:l}=await this.filesystem.readFile(s.uri);this.storeKeybindings=this.parser.parse(l.toString())}catch(s){this.logger.warn(`ParseKeybindings fail: ${s.stack}`),this.storeKeybindings=[]}return this.storeKeybindings}async saveKeybinding(s){this.storeKeybindings=s,this.updateKeybindings(),this.resource||(this.resource=await this.filesystem.createFile(n.KEYMAP_FILE_URI.toString()));const l=await this.filesystem.setContent(this.resource,JSON.stringify(s,void 0,2));this.resource=l||void 0}async getKeybindings(){return this.storeKeybindings.map(s=>({command:s.command,keybinding:s.key,when:s.when,args:s.args}))}async open(){this.commandService.executeCommand(g.EDITOR_COMMANDS.OPEN_RESOURCE.id,new g.URI().withScheme(p.KEYMAPS_SCHEME),{preview:!0})}getWhen(s){return s?this.keybindingService.convertMonacoWhen(s.when):""}getScope(s){return s===g.KeybindingScope.DEFAULT?(0,g.localize)("keymaps.source.default"):s===g.KeybindingScope.USER?(0,g.localize)("keymaps.source.user"):s===g.KeybindingScope.WORKSPACE?(0,g.localize)("keymaps.source.workspace"):""}getKeybindingItems(){const s=this.commandRegistry.getCommands(),l=[];for(const W of s){const N=this.keybindingRegistry.getKeybindingsForCommand(W.id);!N||!N.length?W.label&&l.push({id:W.id,command:W.label,hasCommandLabel:!0}):N.forEach(Z=>{let y;if(this.storeKeybindings){const E=this.storeKeybindings.find(R=>W&&R.command===W.id);y={id:W.id,command:W.label||W.id,keybinding:E?E.key:Z?this.keybindingRegistry.acceleratorFor(Z,"+").join(" "):"",when:E?this.getWhen(E):this.getWhen(N&&Z),source:E?this.getScope(g.KeybindingScope.USER):this.getScope(g.KeybindingScope.DEFAULT),hasCommandLabel:!!W.label}}else y={id:W.id,command:W.label||W.id,keybinding:N&&Z?this.keybindingRegistry.acceleratorFor(Z,"+").join(" "):"",when:this.getWhen(N&&Z),source:N&&Z&&typeof Z.scope<"u"?this.getScope(Z.scope):"",hasCommandLabel:!!W.label};l.push(y)})}const r=l.sort((W,N)=>this.compareItem(W,N)),c=r.filter(W=>!!W.keybinding),h=r.filter(W=>!W.keybinding&&W.hasCommandLabel),v=c.filter(W=>W.hasCommandLabel),f=c.filter(W=>!W.hasCommandLabel);return[...v,...f,...h]}compareItem(s,l){return s&&l?s.source===l.source?s.command.toLowerCase().localeCompare(l.command.toLowerCase()):s.source===this.getScope(g.KeybindingScope.USER)?-1:1:0}getRaw(s){return s?s.replace(new RegExp(/<(\/)?match>/gi),""):""}};m.DEFAULT_SEARCH_DELAY=100,m.KEYMAP_FILE_URI=new g.URI().withScheme(g.Schemes.userStorage).withPath(p.KEYMAPS_FILE_NAME),a.__decorate([(0,I.Autowired)(g.KeybindingRegistry),a.__metadata("design:type",Object)],m.prototype,"keyBindingRegistry",void 0),a.__decorate([(0,I.Autowired)(b.KeymapsParser),a.__metadata("design:type",b.KeymapsParser)],m.prototype,"parser",void 0),a.__decorate([(0,I.Autowired)(g.CommandService),a.__metadata("design:type",Object)],m.prototype,"commandService",void 0),a.__decorate([(0,I.Autowired)(g.CommandRegistry),a.__metadata("design:type",Object)],m.prototype,"commandRegistry",void 0),a.__decorate([(0,I.Autowired)(g.KeybindingRegistry),a.__metadata("design:type",Object)],m.prototype,"keybindingRegistry",void 0),a.__decorate([(0,I.Autowired)(g.KeybindingService),a.__metadata("design:type",Object)],m.prototype,"keybindingService",void 0),a.__decorate([(0,I.Autowired)(G.IFileServiceClient),a.__metadata("design:type",Object)],m.prototype,"filesystem",void 0),a.__decorate([(0,I.Autowired)(g.ILogger),a.__metadata("design:type",Object)],m.prototype,"logger",void 0),a.__decorate([(0,I.Autowired)(u.IProgressService),a.__metadata("design:type",Object)],m.prototype,"progressService",void 0),m=n=a.__decorate([(0,I.Injectable)()],m),e.KeymapService=m},34879:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.KeymapsView=void 0;const n=t(85608),a=n.__importDefault(t(53373)),o=n.__importStar(t(14041)),I=t(97267),g=t(41869),u=t(25067),G=n.__importDefault(t(78541)),p=()=>{const{keybindings:b,searchKeybindings:m,validateKeybinding:d,detectKeybindings:s,setKeybinding:l,resetKeybinding:r,getRaw:c,getScope:h,covert:v,clearCovert:f,fixed:W,onDidKeymapChanges:N,updateKeybindings:Z}=(0,g.useInjectable)(u.IKeymapService),[y,E]=o.default.useState(!1),[R,A]=o.default.useState(""),[w,F]=o.default.useState(b),V=({data:T,index:x})=>{const{id:B,command:D,when:J,source:k,keybinding:z}=T,[P,U]=o.default.useState(!1),[oe,se]=o.default.useState(z||""),[ae,he]=o.default.useState(!1),[ee,pe]=o.default.useState(),[ge,$]=o.default.useState([]),le=()=>{ae||(W(),he(!0)),f(),se(c(z)),U(!0)},te=Ge=>{const re=d(T,Ge);re?re!==" "?pe({message:re,type:I.VALIDATE_TYPE.ERROR}):U(!1):(l({command:c(B),when:c(J)||"",keybinding:c(z)},{command:c(B),when:c(J)||"",keybinding:Ge}),U(!1),f())},ue=()=>{U(!1)},q=Ge=>{Ge.stopPropagation(),Ge.preventDefault();const{key:re}=g.KeyCode.createKeyCode(Ge.nativeEvent),me=Ge.nativeEvent.shiftKey||Ge.nativeEvent.metaKey||Ge.nativeEvent.altKey||Ge.nativeEvent.ctrlKey;re&&g.Key.ENTER.keyCode===re.keyCode&&!me?oe&&te(oe):se(v(Ge.nativeEvent))},j=()=>{const Ge=()=>{pe(void 0),oe&&se(""),f()},re=me=>{me.stopPropagation(),me.preventDefault()};return o.default.createElement("div",{className:G.default.keybinding_optional_actions,onMouseDown:re},o.default.createElement("span",{className:(0,a.default)((0,g.getIcon)("close-circle-fill"),G.default.keybinding_optional_action),onClick:Ge,title:(0,g.localize)("keymaps.action.clear")}))},ie=()=>o.default.createElement("div",{className:G.default.keybinding_key_input_placeholder},"\u23CE"),ne=Ge=>{const re=me=>{me.preventDefault(),ae||(W(),he(!0)),r({command:c(B),when:c(J)||"",keybinding:oe})};if(Ge&&c(Ge)===h(g.KeybindingScope.USER))return o.default.createElement("span",{className:(0,a.default)((0,g.getIcon)("rollback"),G.default.keybinding_inline_action),onClick:re,title:(0,g.localize)("keymaps.action.reset")})},de=()=>{if(!ee&&ge.length>0)return o.default.createElement("div",{className:G.default.keybinding_detective_messages},o.default.createElement("div",{className:G.default.keybinding_detective_messages_label},(0,g.formatLocalize)("keymaps.keybinding.duplicate",ge.length)),o.default.createElement("ul",{className:G.default.keybinding_detective_messages_container},ge.map((Ge,re)=>o.default.createElement("li",{className:G.default.keybinding_detective_messages_item,key:`${Ge.id}_${re}`,title:`${Ge.command}-${Ge.when}`},o.default.createElement("div",{className:G.default.title},(0,g.localize)("keymaps.header.command.title"),": ",c(Ge.command)||"-"),o.default.createElement("div",{className:G.default.description},o.default.createElement("div",{style:{marginRight:4}},(0,g.localize)("keymaps.header.source.title"),": ",c(Ge.source)||"-"),o.default.createElement("div",null,(0,g.localize)("keymaps.header.when.title"),": ",c(Ge.when)||"\u2014"))))))},Ie=()=>{if(P)return o.default.createElement("div",{className:G.default.keybinding_key_input_container},j(),o.default.createElement(I.ValidateInput,{placeholder:(0,g.localize)("keymaps.edit.placeholder"),validateMessage:ee,className:G.default.keybinding_key_input,size:"small",autoFocus:!0,name:g.NO_KEYBINDING_NAME,value:oe,onKeyDown:q,onBlur:ue}),ie(),de());{const Ge=z?.split(" ");return o.default.createElement("div",{className:G.default.keybinding_key,title:c(z),onDoubleClick:le},o.default.createElement("div",{className:G.default.keybinding_action,onClick:le},o.default.createElement("span",{className:(0,a.default)(z?(0,g.getIcon)("edit"):(0,g.getIcon)("plus"),G.default.keybinding_inline_action),title:z?(0,g.localize)("keymaps.action.edit"):(0,g.localize)("keymaps.action.add")}),ne(k)),Ge&&Ge[0]?Ge.map((re,me)=>{const ve=re.split("+");return o.default.createElement("div",{className:G.default.keybinding_key_block,key:`${re}_${me}`},ve.map((Ne,Ze)=>o.default.createElement("div",{className:G.default.keybinding_key_item,key:`${Ne}_${Ze}`,dangerouslySetInnerHTML:{__html:Ne||""}})))}):"\u2014")}};return(0,o.useEffect)(()=>{ee&&pe(void 0),$(oe&&P?s(T,oe):[])},[oe]),o.default.createElement("div",{className:(0,a.default)(G.default.keybinding_list_item,x%2===1&&G.default.odd)},o.default.createElement("div",{className:(0,a.default)(G.default.keybinding_list_item_box,G.default.keybinding_command)},o.default.createElement("div",{className:G.default.command_name,title:c(D),dangerouslySetInnerHTML:{__html:D}}),o.default.createElement("div",{className:(0,a.default)(G.default.limit_warp,G.default.command_id),title:c(B),dangerouslySetInnerHTML:{__html:(0,g.formatLocalize)("keymaps.commandId.title",B)}})),o.default.createElement("div",{className:(0,a.default)(G.default.keybinding_list_item_box)},Ie()),o.default.createElement("div",{className:G.default.keybinding_list_item_box},o.default.createElement("div",{className:G.default.limit_warp,title:c(J||"\u2014"),dangerouslySetInnerHTML:{__html:J||"\u2014"}})),o.default.createElement("div",{className:G.default.keybinding_list_item_box},o.default.createElement("div",{title:c(k),dangerouslySetInnerHTML:{__html:k||""}})))},Y=()=>{const T=()=>{E(!y)};return o.default.createElement("div",{className:G.default.search_inline_action},o.default.createElement("span",{className:(0,a.default)((0,g.getIcon)("keyboard"),G.default.search_inline_action_icon,y&&G.default.active),onClick:T}))},_=(0,o.useCallback)(T=>{A(T),m(T)},[R]),H=T=>{if(!y){const x=T.target&&T.target.value?T.target.value.toLocaleLowerCase():"";_(x)}},S=T=>{if(y){T.stopPropagation(),T.preventDefault();const{key:x}=g.KeyCode.createKeyCode(T.nativeEvent);if(x&&g.Key.ENTER.keyCode===x.keyCode)return;_(v(T.nativeEvent))}},X=()=>{R&&(A(""),m("")),f()},Q=()=>o.default.createElement("div",{className:G.default.keybinding_optional_actions},o.default.createElement("span",{className:(0,a.default)((0,g.getIcon)("close-circle-fill"),G.default.keybinding_optional_action),onClick:X,title:(0,g.localize)("keymaps.action.reset")})),O=()=>o.default.createElement("div",{className:G.default.search_container},o.default.createElement(I.Input,{className:G.default.search_input,placeholder:(0,g.localize)(y?"keymaps.search.keyboard.placeholder":"keymaps.search.placeholder"),type:"text",value:R,name:g.NO_KEYBINDING_NAME,onChange:H,onKeyDown:S,addonBefore:Y()}),Q()),M=(0,o.useMemo)(()=>{const T=[{title:(0,g.localize)("keymaps.header.command.title"),classname:G.default.keybinding_header_item},{title:(0,g.localize)("keymaps.header.keybinding.title"),classname:G.default.keybinding_header_item},{title:(0,g.localize)("keymaps.header.when.title"),classname:G.default.keybinding_header_item},{title:(0,g.localize)("keymaps.header.source.title"),classname:G.default.keybinding_header_item}];return o.default.createElement("div",{className:G.default.keybinding_header},T.map((x,B)=>o.default.createElement("div",{className:x.classname,key:`${x.title}_${B}`},x.title)))},[]);return(0,o.useEffect)(()=>{const T=N(x=>{F(x)});return Z(),()=>{T.dispose()}},[]),o.default.createElement("div",{className:G.default.keybinding_container},o.default.createElement("div",{className:G.default.keybinding_searchbar},O()),o.default.createElement("div",{className:G.default.keybinding_body},M,o.default.createElement("div",{className:G.default.keybinding_list},o.default.createElement(I.RecycleList,{itemHeight:40,data:w,template:V,className:G.default.keybinding_list_container}))))};e.KeymapsView=p},79312:(L,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.KEYMAPS_FILE_NAME=e.KEYMAPS_SCHEME=void 0,e.KEYMAPS_SCHEME="keymaps",e.KEYMAPS_FILE_NAME="keymaps.json"},25067:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});const n=t(85608);n.__exportStar(t(79312),e),n.__exportStar(t(88811),e)},88811:(L,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.IKeymapService=void 0,e.IKeymapService=Symbol("IKeymapService")},83507:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.LogModule=e.LogServiceClient=void 0;const n=t(85608),a=t(76003),o=t(41869),I=t(47548),g=t(49187);n.__exportStar(t(47548),e);var u=t(1700);Object.defineProperty(e,"LogServiceClient",{enumerable:!0,get:function(){return u.LogServiceClient}});let G=class extends o.BrowserModule{constructor(){super(...arguments),this.providers=[{token:I.ILoggerManagerClient,useClass:g.LoggerManagerClient}],this.backServices=[{servicePath:I.LogServiceForClientPath,clientToken:I.ILoggerManagerClient}]}};G=n.__decorate([(0,a.Injectable)()],G),e.LogModule=G},49187:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.LoggerManagerClient=void 0;const n=t(85608),a=t(76003),o=t(43718),I=t(47548),g=t(1700);let u=class{constructor(){this.logLevelChangeEmitter=new o.Emitter}getLogger(p,b){const m=new g.LogServiceClient(p);return m.setup(this.logServiceForClient,b),m}getBrowserLogger(p){return new g.LogServiceClient(p)}async getLogFolder(){return await this.logServiceForClient.getLogFolder()}async setGlobalLogLevel(p){return await this.logServiceForClient.setGlobalLogLevel(p)}async getGlobalLogLevel(){return await this.logServiceForClient.getGlobalLogLevel()}async dispose(){return this.logLevelChangeEmitter.dispose(),await this.logServiceForClient.disposeAll()}get onDidChangeLogLevel(){return this.logLevelChangeEmitter.event}onDidLogLevelChanged(p){this.logLevelChangeEmitter.fire(p)}};n.__decorate([(0,a.Autowired)(I.LogServiceForClientPath),n.__metadata("design:type",Object)],u.prototype,"logServiceForClient",void 0),u=n.__decorate([(0,a.Injectable)()],u),e.LoggerManagerClient=u},1700:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.LogServiceClient=void 0;const n=t(43718),a=t(47548);class o{constructor(g){this.level=a.LogLevel.Verbose,this.ready=new n.Deferred,this.namespace=g,this.debugLog=new a.DebugLog(g)}async setup(g,u){this.logServiceForClient=g,this.pid=u;const G=await this.logServiceForClient.getGlobalLogLevel();this.level=G,this.ready.resolve()}async getLevel(){return this.logServiceForClient?await this.logServiceForClient.getLevel(this.namespace):this.level}async setLevel(g){this.level=g,this.logServiceForClient&&await this.logServiceForClient.setLevel(this.namespace,g)}async verbose(...g){this.debugLog.verbose(...g),this.logServiceForClient&&await this.logServiceForClient.verbose(this.namespace,(0,a.format)(g),this.pid)}async debug(...g){this.debugLog.debug(...g),this.logServiceForClient&&(await this.ready.promise,!(this.level>a.LogLevel.Debug)&&await this.logServiceForClient.debug(this.namespace,(0,a.format)(g),this.pid))}async log(...g){this.debugLog.log(...g),this.logServiceForClient&&(await this.ready.promise,!(this.level>a.LogLevel.Info)&&await this.logServiceForClient.log(this.namespace,(0,a.format)(g),this.pid))}async warn(...g){this.debugLog.warn(...g),this.logServiceForClient&&(await this.ready.promise,!(this.level>a.LogLevel.Warning)&&await this.logServiceForClient.warn(this.namespace,(0,a.format)(g),this.pid))}async error(...g){this.debugLog.error(...g),this.logServiceForClient&&(await this.ready.promise,!(this.level>a.LogLevel.Error)&&await this.logServiceForClient.error(this.namespace,(0,a.format)(g),this.pid))}async critical(...g){this.debugLog.error(...g),this.logServiceForClient&&(await this.ready.promise,!(this.level>a.LogLevel.Critical)&&await this.logServiceForClient.critical(this.namespace,(0,a.format)(g),this.pid))}async dispose(){this.debugLog.destroy(),this.logServiceForClient&&await this.logServiceForClient.dispose(this.namespace)}}e.LogServiceClient=o},47548:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});const n=t(85608);n.__exportStar(t(4892),e),n.__exportStar(t(46196),e)},46196:(L,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.format=e.ILogServiceForClient=void 0,e.ILogServiceForClient=Symbol("LogServiceForClient");function t(n){let a="";for(let o=0;o<n.length;o++){let I=n[o];if(I instanceof Error){const g=Array.prototype.slice.call(arguments);g[0]=I.stack,I=t(g)}else if(typeof I=="object")try{I=JSON.stringify(I)}catch{}else if(typeof I=="symbol")try{I=I.toString()}catch{}a+=(o>0?" ":"")+I}return a}e.format=t},73344:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),t(85608).__exportStar(t(47548),e)},9522:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AccordionServiceFactory=e.AccordionService=void 0;const n=t(85608),a=n.__importDefault(t(12784)),o=t(83794),I=t(76003),g=t(41869),u=t(81878),G=t(71707),p=t(95416),b=t(93899),m=t(68969),d=t(17793);let s=class extends g.WithEventBus{constructor(r,c){super(),this.containerId=r,this.noRestore=c,this.forceRevealContextKeys=new Map,this.viewWhenContextkeys=new Set,this.appendedViewSet=new Set,this.viewsWithContextKey=new Set,this.views=[],this.state={},this.rendered=!1,this.menuId=`${b.MenuId.AccordionContext}/${this.containerId}`,this.toDispose=new Map,this.didChangeViewTitleEmitter=new g.Emitter,this.onDidChangeViewTitle=this.didChangeViewTitleEmitter.event,this.beforeAppendViewEmitter=new g.Emitter,this.onBeforeAppendViewEvent=this.beforeAppendViewEmitter.event,this.afterAppendViewEmitter=new g.Emitter,this.onAfterAppendViewEvent=this.afterAppendViewEmitter.event,this.afterDisposeViewEmitter=new g.Emitter,this.onAfterDisposeViewEvent=this.afterDisposeViewEmitter.event,this.doUpdateResize=(0,a.default)(()=>{var h,v;let f;if(Object.keys(this.state).forEach(W=>{this.state[W].hidden||this.state[W].collapsed||(f?(this.state[W].size||0)>(this.state[f].size||0)&&(f=W):f=W)}),f&&this.splitPanelService.isVisible&&this.expandedViews.length>1&&!((h=this.splitPanelService.rootNode)===null||h===void 0)&&h.clientHeight){const W=((v=this.splitPanelService.rootNode)===null||v===void 0?void 0:v.clientHeight)-this.getPanelFullHeight();W&&((0,o.runInAction)(()=>{this.state[f].size+=W}),this.toggleOpen(f,!1))}},16),this.storeState=()=>{this.noRestore||!this.rendered||this.layoutState.setState(p.LAYOUT_STATE.getContainerSpace(this.containerId),this.state)},this.handleSectionClick=(h,v,f)=>{this.doToggleOpen(h,v,f)},this.handleContextMenu=(h,v)=>{h.preventDefault();const f=this.ctxMenuService.createMenu({id:this.menuId,config:{args:[{viewId:v}]},contextKeyService:v?this.viewContextKeyRegistry.getContextKeyService(v):void 0}),W=f.getGroupedMenuNodes();f.dispose(),this.contextMenuRenderer.show({menuNodes:W[1],anchor:{x:h.clientX,y:h.clientY}})},(0,o.makeObservable)(this),this.splitPanelService=this.splitPanelManager.getService(r),this.addDispose(this.splitPanelService),this.scopedCtxKeyService=this.contextKeyService.createScoped(),this.scopedCtxKeyService.createKey("triggerWithSection",!0),this.menuRegistry.registerMenuItem(this.menuId,{command:{id:this.registerGlobalToggleCommand(),label:(0,g.localize)("layout.view.hide","Hide")},group:"0_global",when:"triggerWithSection == true"}),this.viewContextKeyRegistry.afterContextKeyServiceRegistered(this.containerId,h=>{this.topViewKey=h.createKey("view",r),setTimeout(()=>{this.popViewKeyIfOnlyOneViewVisible()})}),this.addDispose(g.Event.debounce(this.contextKeyService.onDidChangeContext,(h,v)=>h||v.payload.affectsSome(this.viewWhenContextkeys),50)(h=>h&&this.handleContextKeyChange(),this)),this.splitPanelService.whenReady.then(()=>{this.listenWindowResize()})}updateViewTitle(r,c){const h=this.views.find(v=>v.id===r);h?(h.name=c,this.didChangeViewTitleEmitter.fire({id:r,title:c})):this.logger.error(`No target view \`${r}\` found, unable to update accordion title`)}updateViewDesciption(r,c){const h=this.views.find(v=>v.id===r);h?(h.description=c,this.didChangeViewTitleEmitter.fire({id:r,description:c})):this.logger.error(`No target view \`${r}\` found, unable to update accordion description`)}updateViewMessage(r,c){const h=this.views.find(v=>v.id===r);h?(h.message=c,this.didChangeViewTitleEmitter.fire({id:r,message:c})):this.logger.error(`No target view \`${r}\` found, unable to update accordion message`)}updateViewBadge(r,c){const h=this.views.find(v=>v.id===r);h?(h.badge=c,this.didChangeViewTitleEmitter.fire({id:r,badge:c})):this.logger.error(`No target view \`${r}\` found, unable to update accordion message`)}tryUpdateResize(){this.doUpdateResize()}restoreState(){if(this.noRestore)return;const r={};this.visibleViews.forEach(h=>r[h.id]={collapsed:!1,hidden:!1});const c=this.layoutState.getState(p.LAYOUT_STATE.getContainerSpace(this.containerId),r);c!==r&&(this.state=c),this.popViewKeyIfOnlyOneViewVisible(),this.splitPanelService.whenReady.then(()=>{this.restoreSize(),this.rendered=!0})}restoreSize(){var r;let c=((r=this.splitPanelService.rootNode)===null||r===void 0?void 0:r.clientHeight)||0,h;this.visibleViews.forEach((v,f)=>{const W=this.state[v.id];W.collapsed?(this.setSize(f,0,!1,!0),c-=this.headerSize):!W.collapsed&&W.size&&(this.setSize(f,W.size,!1,!0),c-=W.size,h=f)}),h&&this.setSize(h,this.state[this.visibleViews[h].id].size+c)}initConfig(r){const{headerSize:c,minSize:h}=r;this.headerSize=c,this.minSize=h}registerContextService(r){let c=this.viewContextKeyRegistry.getContextKeyService(r);return c||(c=this.contextKeyService.createScoped(),c.createKey("view",r),this.viewContextKeyRegistry.registerContextKeyService(r,c)),c}getSectionToolbarMenu(r){const c=this.registerContextService(r),h=this.menuService.createMenu(b.MenuId.ViewTitle,c),v=this.views.find(f=>f.id===r);return v&&(v.titleMenu=h),h}updateView(r){if(r.priority){const c=this.views.findIndex(h=>(h.priority||0)<(r.priority||0));this.views.splice(c===-1?this.views.length:c,0,r)}else this.views.push(r)}appendView(r,c){if(this.appendedViewSet.has(r.id)&&!c)return;const h=new g.DisposableCollection;h.push(this.progressService.registerProgressIndicator(r.id));const v=this.views.findIndex(f=>f.id===r.id);if(v!==-1){this.views[v]=Object.assign({},this.views[v],r);return}if(r.when){this.viewsWithContextKey.add(r);const f=this.createRevealContextKey(r.id);if(this.fillKeysInWhenExpr(this.viewWhenContextkeys,r.when),!this.contextKeyService.match(r.when)&&!this.contextKeyService.match(f))return;this.appendedViewSet.add(r.id)}this.beforeAppendViewEmitter.fire(r.id),this.updateView(r),this.registerContextService(r.id),h.push(this.menuRegistry.registerMenuItem(this.menuId,{command:{id:this.registerVisibleToggleCommand(r.id,h),label:(r.name||r.id).toUpperCase()},group:"1_widgets"})),this.toDispose.set(r.id,h),this.popViewKeyIfOnlyOneViewVisible(),this.afterAppendViewEmitter.fire(r.id)}disposeView(r){const c=this.views.findIndex(v=>v.id===r);c>-1&&this.views.splice(c,1);const h=this.toDispose.get(r);h&&h.dispose(),this.appendedViewSet.delete(r),this.popViewKeyIfOnlyOneViewVisible(),this.afterDisposeViewEmitter.fire(r)}revealView(r){const c=this.forceRevealContextKeys.get(r);c&&c.key.set(!0)}disposeAll(){this.views=o.observable.array([]),this.toDispose.forEach(r=>{r.dispose()})}onResize(r){if(r.payload.slotLocation&&this.state[r.payload.slotLocation]){const c=r.payload.slotLocation,h=document.getElementById(c);h&&(this.state[c].size=h.clientHeight,this.storeState())}}getPanelFullHeight(r){return Object.keys(this.state).filter(c=>this.views.find(h=>h.id===c)&&c!==r).reduce((c,h)=>c+(this.state[h].collapsed?this.headerSize:this.state[h].hidden?0:this.state[h].size),0)}listenWindowResize(){window.addEventListener("resize",this.doUpdateResize),this.addDispose({dispose:()=>window.removeEventListener("resize",this.doUpdateResize)})}createRevealContextKey(r){const c=`forceShow.${r}`;return this.forceRevealContextKeys.set(r,{when:`${c} == true`,key:this.contextKeyService.createKey(c,!1)}),this.viewWhenContextkeys.add(c),`${c} == true`}registerGlobalToggleCommand(){const r=`view-container.hide.${this.containerId}`;return this.commandRegistry.registerCommand({id:r},{execute:({viewId:c})=>{this.doToggleView(c)},isEnabled:()=>this.visibleViews.length>1}),r}registerVisibleToggleCommand(r,c){const h=`view-container.hide.${r}`;return c.push(this.commandRegistry.registerCommand({id:h},{execute:({forceShow:v}={})=>{this.doToggleView(r,v)},isToggled:()=>!this.getViewState(r).hidden,isEnabled:()=>this.getViewState(r).hidden||this.visibleViews.length>1})),h}doToggleView(r,c){const h=this.getViewState(r);let v;c===void 0?v=!h.hidden:v=!c,h.hidden=v,this.updateViewState(r,h),this.popViewKeyIfOnlyOneViewVisible(),this.storeState()}popViewKeyIfOnlyOneViewVisible(){if(!this.topViewKey)return;const r=this.visibleViews;r.length===1?this.topViewKey.set(r[0].id):this.topViewKey.reset()}toggleViewVisibility(r,c){this.doToggleView(r,c)}get visibleViews(){return this.views.filter(r=>!this.getViewState(r.id).hidden)}get expandedViews(){return this.views.filter(r=>{const c=this.state[r.id];return!c||c&&!c.hidden&&!c.collapsed})}toggleOpen(r,c){const h=this.visibleViews.findIndex(v=>v.id===r);h>-1&&this.doToggleOpen(r,c,h,!0)}getViewState(r){let c=this.state[r];const h=this.views.find(v=>v.id===r);return c||(this.updateViewState(r,{collapsed:h?.collapsed||!1,hidden:h?.hidden||!1}),c=this.state[r]),c}updateViewState(r,c){this.state[r]=c}doToggleOpen(r,c,h,v){var f;const W=this.getViewState(r);W.collapsed=c;const N=this.mainLayoutService.getContainer(this.containerId);if(((f=N?.options)===null||f===void 0?void 0:f.alignment)!=="horizontal"){let Z;c?Z=this.setSize(h,0,!1,v):Z=this.setSize(h,this.expandedViews.length===1?this.getAvailableSize():W.size||this.minSize,!1,v);for(let y=this.visibleViews.length-1;y>h;y--)this.getViewState(this.visibleViews[y].id).collapsed!==!0?Z=this.setSize(y,Z,!0,v):this.setSize(y,0,!1,v);for(let y=h-1;y>=0;y--)(this.state[this.visibleViews[y].id]||{}).collapsed!==!0?Z=this.setSize(y,Z,!0,v):this.setSize(y,0,!1,v)}this.eventBus.fire(new d.ViewCollapseChangedEvent({viewId:r,collapsed:W.collapsed}))}setSize(r,c,h,v){var f;const W=(f=this.splitPanelService.rootNode)===null||f===void 0?void 0:f.clientHeight,N=this.splitPanelService.panels[r];v||N.classList.add("resize-ease"),!c&&!h?(c=this.headerSize,N.classList.add(u.RESIZE_LOCK)):N.classList.remove(u.RESIZE_LOCK);const Z=N.clientHeight,y=this.getViewState(this.visibleViews[r].id);let E=c;if(h&&(E=Math.max(Z-c,this.minSize)),r===this.expandedViews.length-1&&(0,g.isDefined)(W))if(E+r*this.minSize>W)E-=E+r*this.minSize-W;else{const R=this.getPanelFullHeight(this.visibleViews[r].id);E+R<W&&(E+=W-(E+R))}if(this.rendered){let R;c===this.headerSize?R=Z:R=E,R!==this.headerSize&&(y.size=R)}return this.storeState(),y.nextSize=E,v||setTimeout(()=>{N.classList.remove("resize-ease")},200),h?E-(Z-c):c-Z}getAvailableSize(){var r;const c=(r=this.splitPanelService.rootNode)===null||r===void 0?void 0:r.clientHeight;return c?c-(this.visibleViews.length-1)*this.headerSize:0}handleContextKeyChange(){Array.from(this.viewsWithContextKey.values()).forEach(r=>{this.contextKeyService.match(r.when)||this.contextKeyService.match(this.forceRevealContextKeys.get(r.id).when)?this.appendView(r):this.disposeView(r.id)})}fillKeysInWhenExpr(r,c){this.contextKeyService.getKeysInWhen(c).forEach(v=>{r.add(v)})}};n.__decorate([(0,I.Autowired)(),n.__metadata("design:type",G.SplitPanelManager)],s.prototype,"splitPanelManager",void 0),n.__decorate([(0,I.Autowired)(b.AbstractMenuService),n.__metadata("design:type",b.AbstractMenuService)],s.prototype,"menuService",void 0),n.__decorate([(0,I.Autowired)(b.AbstractContextMenuService),n.__metadata("design:type",b.AbstractContextMenuService)],s.prototype,"ctxMenuService",void 0),n.__decorate([(0,I.Autowired)(b.IMenuRegistry),n.__metadata("design:type",b.IMenuRegistry)],s.prototype,"menuRegistry",void 0),n.__decorate([(0,I.Autowired)(g.CommandRegistry),n.__metadata("design:type",Object)],s.prototype,"commandRegistry",void 0),n.__decorate([(0,I.Autowired)(b.ICtxMenuRenderer),n.__metadata("design:type",b.ICtxMenuRenderer)],s.prototype,"contextMenuRenderer",void 0),n.__decorate([(0,I.Autowired)(),n.__metadata("design:type",g.ViewContextKeyRegistry)],s.prototype,"viewContextKeyRegistry",void 0),n.__decorate([(0,I.Autowired)(d.IMainLayoutService),n.__metadata("design:type",Object)],s.prototype,"mainLayoutService",void 0),n.__decorate([(0,I.Autowired)(g.IContextKeyService),n.__metadata("design:type",Object)],s.prototype,"contextKeyService",void 0),n.__decorate([(0,I.Autowired)(),n.__metadata("design:type",p.LayoutState)],s.prototype,"layoutState",void 0),n.__decorate([(0,I.Autowired)(m.IProgressService),n.__metadata("design:type",Object)],s.prototype,"progressService",void 0),n.__decorate([(0,I.Autowired)(g.ILogger),n.__metadata("design:type",Object)],s.prototype,"logger",void 0),n.__decorate([o.observable.shallow,n.__metadata("design:type",Array)],s.prototype,"views",void 0),n.__decorate([o.observable,n.__metadata("design:type",Object)],s.prototype,"state",void 0),n.__decorate([o.action,n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[String,String]),n.__metadata("design:returntype",void 0)],s.prototype,"updateViewTitle",null),n.__decorate([o.action,n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[String,String]),n.__metadata("design:returntype",void 0)],s.prototype,"updateViewDesciption",null),n.__decorate([o.action,n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[String,String]),n.__metadata("design:returntype",void 0)],s.prototype,"updateViewMessage",null),n.__decorate([o.action,n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[String,String]),n.__metadata("design:returntype",void 0)],s.prototype,"updateViewBadge",null),n.__decorate([o.action,n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[]),n.__metadata("design:returntype",void 0)],s.prototype,"restoreState",null),n.__decorate([o.action,n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[]),n.__metadata("design:returntype",void 0)],s.prototype,"restoreSize",null),n.__decorate([o.action,n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[Object]),n.__metadata("design:returntype",void 0)],s.prototype,"updateView",null),n.__decorate([o.action,n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[Object,Boolean]),n.__metadata("design:returntype",void 0)],s.prototype,"appendView",null),n.__decorate([o.action,n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[String]),n.__metadata("design:returntype",void 0)],s.prototype,"disposeView",null),n.__decorate([o.action,n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[]),n.__metadata("design:returntype",void 0)],s.prototype,"disposeAll",null),n.__decorate([o.action,(0,g.OnEvent)(g.ResizeEvent),n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[g.ResizeEvent]),n.__metadata("design:returntype",void 0)],s.prototype,"onResize",null),n.__decorate([o.action,n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[String,Boolean]),n.__metadata("design:returntype",void 0)],s.prototype,"doToggleView",null),n.__decorate([o.action,n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[String,Object]),n.__metadata("design:returntype",void 0)],s.prototype,"updateViewState",null),n.__decorate([o.action,n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[String,Boolean,Number,Boolean]),n.__metadata("design:returntype",void 0)],s.prototype,"doToggleOpen",null),n.__decorate([o.action,n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[Number,Number,Boolean,Boolean]),n.__metadata("design:returntype",Number)],s.prototype,"setSize",null),s=n.__decorate([(0,I.Injectable)({multiple:!0}),n.__metadata("design:paramtypes",[String,Boolean])],s),e.AccordionService=s,e.AccordionServiceFactory=Symbol("AccordionServiceFactory")},70936:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Panel=e.AccordionContainer=void 0;const n=t(85608),a=t(25150),o=n.__importStar(t(14041)),I=t(41869),g=t(81878),u=t(1149),G=t(43718),p=t(9522),b=t(95867);e.AccordionContainer=(0,a.observer)(({alignment:d="vertical",views:s,containerId:l,headerSize:r=24,minSize:c=120,className:h,noRestore:v,style:f})=>{const W=(0,I.useInjectable)(p.AccordionServiceFactory)(l,v),N=(0,I.useInjectable)(u.LayoutViewSizeConfig),Z=(0,o.useMemo)(()=>r||N.accordionHeaderSizeHeight,[r]);return o.default.useEffect(()=>{if(s.length)for(const y of s)W.appendView(y)},[s]),o.default.useEffect(()=>{W.initConfig({headerSize:Z,minSize:c})},[]),o.default.createElement(g.SplitPanel,{className:h,style:f,dynamicTarget:!0,id:l,resizeKeep:!1,direction:d==="horizontal"?"left-to-right":"top-to-bottom"},W.visibleViews.map((y,E)=>{const R=W.getViewState(y.id),A=y.titleMenu||W.getSectionToolbarMenu(y.id),{collapsed:w,nextSize:F}=R;return o.default.createElement(b.AccordionSection,{noHeader:W.visibleViews.length===1,onItemClick:()=>{W.handleSectionClick(y.id,!w,E)},onContextMenuHandler:W.handleContextMenu,alignment:d,header:y.name&&(0,G.replaceLocalizePlaceholder)(y.name)||y.id,viewId:y.id,key:y.id,message:y.message,description:y.description,badge:y.badge,title:y.name,expanded:!w,accordionService:W,index:E,headerSize:r,minSize:r,initialProps:y.initialProps,titleMenu:A,titleMenuContext:y.titleMenuContext,savedSize:w?r:F,flex:y.weight||1},y.component)}))}),e.AccordionContainer.displayName="AccordionContainer";const m=({children:d})=>o.default.createElement("div",null,d);e.Panel=m,e.Panel.displayName="Panel"},95867:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AccordionSection=void 0;const n=t(85608),a=n.__importDefault(t(53373)),o=n.__importDefault(t(14041)),I=t(41869),g=t(25918),u=t(93899),G=t(68969),p=t(68974),b=t(69589),m=t(52416),d=n.__importDefault(t(81388)),s={tabIndex:0},l=({header:r,description:c,message:h,headerClass:v,onItemClick:f,noHeader:W,children:N,badge:Z,headerSize:y,viewId:E,initialProps:R,titleMenu:A,titleMenuContext:w,expanded:F,accordionService:V,onContextMenuHandler:Y,alignment:_})=>{const H=(0,I.useInjectable)(m.IIconService),S=(0,I.useDesignStyles)(d.default.actions_wrap,"actions_wrap"),X=(0,I.useDesignStyles)(d.default.kt_split_panel,"kt_split_panel"),Q=(0,I.useDesignStyles)(d.default.kt_split_panel_header,"kt_split_panel_header"),O=(0,I.useDesignStyles)(d.default.kt_split_panel_body,"kt_split_panel_body"),M=(0,I.useDesignStyles)(d.default.section_badge,"section_badge"),T=o.default.useRef(null),[x,B]=o.default.useState({header:r,description:c,message:h,badge:Z});o.default.useEffect(()=>{const se=V.onDidChangeViewTitle(({id:ae,title:he,description:ee,message:pe,badge:ge})=>{let $=!1;const le=Object.assign({},x);E===ae&&he&&he!==x.header&&(le.header=he,$=!0),E===ae&&ge!==x.badge&&(le.badge=ge,$=!0),E===ae&&ee&&ee!==x.badge&&(le.description=ee,$=!0),E===ae&&pe&&pe!==x.message&&(le.message=pe,$=!0),$&&B(le)});return()=>{se.dispose()}},[]);const D=o.default.useCallback(()=>{f()},[f]),J=o.default.useMemo(()=>({overflow:F?"auto":"hidden"}),[F]),k=(0,I.useViewState)(E,T,!0),P=(0,I.useInjectable)(G.IProgressService).getIndicator(E),U=N,oe=o.default.useMemo(()=>F?`${y}px`:_==="horizontal"?"100%":`${y}px`,[F,y,_]);return o.default.createElement("div",{className:X,"data-view-id":E},!W&&o.default.createElement("div",Object.assign({},s,{className:(0,a.default)(Q,v),onClick:D,draggable:!1,onContextMenu:se=>Y(se,E),style:{height:oe,lineHeight:oe}}),o.default.createElement("div",{className:d.default.label_wrap},o.default.createElement("i",{className:(0,a.default)((0,I.getIcon)("arrow-down"),d.default.arrow_icon,F?"":d.default.kt_mod_collapsed)}),o.default.createElement("div",{className:d.default.section_label,style:{lineHeight:y+"px"}},x.header),x.description&&o.default.createElement("div",{className:d.default.section_description,style:{lineHeight:y+"px"}},(0,b.transformLabelWithCodicon)(x.description,{},H.fromString.bind(H))),x.badge&&o.default.createElement("div",{className:M},x.badge)),F&&A&&o.default.createElement("div",{className:S},(0,u.isIMenu)(A)?o.default.createElement(g.InlineActionBar,{menus:A,context:w}):o.default.createElement(g.InlineMenuBar,{menus:A,context:w}))),o.default.createElement("div",{className:(0,a.default)([O,{[d.default.hide]:!F}]),style:J,ref:T},o.default.createElement(p.ProgressBar,{className:d.default.progressBar,progressModel:P.progressModel}),o.default.createElement(I.ErrorBoundary,null,x.message&&o.default.createElement("div",{className:d.default.kt_split_panel_message},x.message),o.default.createElement(U,Object.assign({},R,{viewState:{height:k.height-(x.message?22:0),width:k.width}})))))};e.AccordionSection=l},91527:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.TitleBar=void 0;const n=t(85608),a=n.__importDefault(t(14041)),o=t(41869),I=n.__importDefault(t(81388));e.TitleBar=a.default.memo(g=>{const u=(0,o.useDesignStyles)(I.default.titlebar,"titlebar");return a.default.createElement("div",{className:u,style:{height:g.height}},a.default.createElement("h1",null,g.title),g.menubar||null)}),e.TitleBar.displayName="TitleBar"},25072:(L,e,t)=>{"use strict";var n;n={value:!0},e.s=void 0;const a=t(41869);e.s={[a.SlotLocation.top]:{modules:["@opensumi/ide-menu-bar"]},[a.SlotLocation.action]:{modules:["@opensumi/ide-toolbar-action"]},[a.SlotLocation.left]:{modules:["@opensumi/ide-explorer","@opensumi/ide-search","@opensumi/ide-scm","@opensumi/ide-extension-manager","@opensumi/ide-debug"]},[a.SlotLocation.right]:{modules:[]},[a.SlotLocation.main]:{modules:["@opensumi/ide-editor"]},[a.SlotLocation.bottom]:{modules:["@opensumi/ide-terminal-next","@opensumi/ide-output","debug-console","@opensumi/ide-markers"]},[a.SlotLocation.statusBar]:{modules:["@opensumi/ide-status-bar"]},[a.SlotLocation.extra]:{modules:["breadcrumb-menu"]}}},7480:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.MainLayoutModule=void 0;const n=t(85608),a=t(76003),o=t(41869),I=t(17793),g=t(9522),u=t(22537),G=t(53576),p=t(752),b=t(58296);let m=class extends o.BrowserModule{constructor(){super(...arguments),this.providers=[G.MainLayoutModuleContribution,{token:I.IMainLayoutService,useClass:u.LayoutService},{token:I.IViewsRegistry,useClass:b.ViewsRegistry},{token:p.TabbarServiceFactory,useFactory:s=>l=>s.get(I.IMainLayoutService).getTabbarService(l)},{token:g.AccordionServiceFactory,useFactory:s=>(l,r)=>s.get(I.IMainLayoutService).getAccordionService(l,r)}],this.contributionProvider=I.MainLayoutContribution}};m=n.__decorate([(0,a.Injectable)()],m),e.MainLayoutModule=m},5567:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AutoFocusedInput=void 0;const n=t(85608),a=n.__importStar(t(14041)),o=t(97267),I=t(48560),g=t(17793),u=G=>{var{containerId:p}=G,b=n.__rest(G,["containerId"]);const m=(0,I.useInjectable)(g.IMainLayoutService),d=(0,a.useRef)(null),s=a.default.useCallback(()=>{d&&d.current&&queueMicrotask(()=>{var l;return(l=d.current)===null||l===void 0?void 0:l.focus()})},[d.current]);return(0,a.useEffect)(()=>{s();const l=m.getTabbarHandler(p),r=l?.onActivate(s);return()=>{r?.dispose()}},[m]),a.default.createElement(o.Input,Object.assign({ref:d},b))};e.AutoFocusedInput=u},22537:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.LayoutService=void 0;const n=t(85608),a=n.__importDefault(t(12784)),o=t(76003),I=t(41869),g=t(95416),u=t(93899),G=t(43718),p=t(52416),b=t(17793),m=t(9522),d=t(752),s=t(58999);let l=class extends I.WithEventBus{constructor(){super(...arguments),this.handleMap=new Map,this.tabbarServices=new Map,this.accordionServices=new Map,this.pendingViewsMap=new Map,this.viewToContainerMap=new Map,this.disposableMap=new Map,this.state={},this.customViews=new Map,this.debug=(0,G.getDebugLogger)(),this.viewReady=new G.Deferred,this.restoreTabbarService=async c=>{var h;await c.viewReady.promise,this.state=this.layoutState.getState(g.LAYOUT_STATE.MAIN,{[I.SlotLocation.left]:{currentId:void 0,size:void 0},[I.SlotLocation.right]:{currentId:"",size:void 0},[I.SlotLocation.bottom]:{currentId:void 0,size:void 0}});const{currentId:v,size:f}=this.state[c.location]||{};c.prevSize=f;let W=c.visibleContainers[0]&&c.visibleContainers[0].options.containerId;const N=this.appConfig.defaultPanels,Z=N&&N[c.location];if(N&&Z!==void 0)if(Z)if(c.containersMap.has(Z))W=Z;else{const y=this.componentRegistry.getComponentRegistryInfo(Z);y&&(!((h=this.appConfig.layoutConfig[c.location])===null||h===void 0)&&h.modules)&&~this.appConfig.layoutConfig[c.location].modules.indexOf(Z)?W=y.options.containerId:this.logger.warn(`[defaultPanels] No \`${Z}\` view found!`)}else W="";(0,G.isUndefined)(v)?c.updateCurrentContainerId(W):c.updateCurrentContainerId(v?c.containersMap.has(v)?v:W:"")},this.holdTabbarComponent=new Map,this.tabbarUpdateSet=new Set}didMount(){for(const[h,v]of this.pendingViewsMap.entries())v.forEach(({view:f,props:W})=>{this.collectViewComponent(f,h,W)});for(const h of this.contributions.getContributions())h.onDidRender&&h.onDidRender();const c=[];this.tabbarServices.forEach(h=>{I.slotRendererRegistry.isTabbar(h.location)&&h.containersMap.size>0&&c.push(h.viewReady.promise)}),Promise.all(c).then(()=>{this.viewReady.resolve()})}storeState(c,h){this.state[c.location]={currentId:h,size:c.prevSize},this.layoutState.setState(g.LAYOUT_STATE.MAIN,this.state)}onThemeChange(c){var h,v,f,W,N;const Z=c.payload.theme;localStorage.setItem("theme",JSON.stringify({menuBarBackground:(h=Z.getColor("kt.menubar.background"))===null||h===void 0?void 0:h.toString(),sideBarBackground:(v=Z.getColor("sideBar.background"))===null||v===void 0?void 0:v.toString(),editorBackground:(f=Z.getColor("editor.background"))===null||f===void 0?void 0:f.toString(),panelBackground:(W=Z.getColor("panel.background"))===null||W===void 0?void 0:W.toString(),statusBarBackground:(N=Z.getColor("statusBar.background"))===null||N===void 0?void 0:N.toString()}))}isVisible(c){return!!this.getTabbarService(c).currentContainerId}isViewVisible(c){const h=this.getTabbarHandler(c);if(!h||!h.isActivated())return!1;const v=h.accordionService.getViewState(c);return!v.collapsed&&!v.hidden}toggleSlot(c,h,v){var f;const W=this.getTabbarService(c);if(!W){this.debug.error(`Unable to switch panels because no TabbarService corresponding to \`${c}\` was found.`);return}h===!0?W.updateCurrentContainerId(W.currentContainerId||W.previousContainerId||W.containersMap.keys().next().value):h===!1?W.updateCurrentContainerId(""):W.updateCurrentContainerId(W.currentContainerId?"":W.previousContainerId||W.containersMap.keys().next().value),W.currentContainerId&&v&&((f=W.resizeHandle)===null||f===void 0||f.setSize(v))}getTabbarService(c){const h=this.tabbarServices.get(c)||this.injector.get(d.TabbarService,[c]);if(!this.tabbarServices.get(c)){h.onCurrentChange(({currentId:f})=>{if(this.storeState(h,f),this.eventBus.fire(new I.ExtensionActivateEvent({topic:"onView",data:f})),f&&b.SUPPORT_ACCORDION_LOCATION.has(h.location)){const W=this.getAccordionService(f);W?.tryUpdateResize(),W?.expandedViews.forEach(N=>{this.eventBus.fire(new I.ExtensionActivateEvent({topic:"onView",data:N.id}))})}}),h.viewReady.promise.then(()=>h.restoreState()).then(()=>this.restoreTabbarService(h)).catch(f=>{this.logger.error(`[TabbarService:${c}] restore state error`,f)});const v=(0,a.default)(()=>this.storeState(h,h.currentContainerId),100);if(h.onSizeChange(v),c===I.SlotLocation.bottom){const f=(0,a.default)(()=>void this.bottomExpanded,100);h.onSizeChange(()=>f)}this.tabbarServices.set(c,h)}return h}getAllAccordionService(){return this.accordionServices}getAccordionService(c,h){let v=this.accordionServices.get(c);return v||(v=this.injector.get(m.AccordionService,[c,h]),this.accordionServices.set(c,v)),v}getTabbarHandler(c){let h=this.doGetTabbarHandler(c);if(!h){const v=this.viewToContainerMap.get(c);v?h=this.doGetTabbarHandler(v||""):this.debug.warn(`${c} view tabbar not found.`)}return h}getContainer(c){for(const h of this.tabbarServices.values()){const v=h.getContainer(c);if(v)return v}}getExtraTopMenu(){return this.contextmenuService.createMenu({id:u.MenuId.ActivityBarTopExtra})}getExtraMenu(){return this.contextmenuService.createMenu({id:u.MenuId.ActivityBarExtra})}doGetTabbarHandler(c){let h=this.handleMap.get(c);if(!h){let v;for(const f of this.tabbarServices.values())if(f.getContainer(c)){v=f.location;break}v&&(h=this.injector.get(s.TabBarHandler,[c,this.getTabbarService(v)]),this.handleMap.set(c,h))}return h}collectTabbarComponent(c,h,v,f){if(f&&this.debug.warn("collectTabbarComponent api warning: Please move react component into options.component!"),h.hideIfEmpty&&!c.length&&!h.component){this.holdTabbarComponent.set(h.containerId,{views:c,options:h,side:v}),this.tabbarUpdateSet.has(h.containerId)&&this.tryUpdateTabbar(h.containerId);const N=this.getAccordionService(h.containerId);return N.onBeforeAppendViewEvent(()=>{this.tryUpdateTabbar(h.containerId)}),N.onAfterDisposeViewEvent(()=>{N.views.length===0&&(this.disposeContainer(h.containerId),this.holdTabbarComponent.set(h.containerId,{views:c,options:h,side:v}))}),h.containerId}return this.getTabbarService(v).registerContainer(h.containerId,{views:c,options:h}),c.forEach(N=>{this.viewToContainerMap.set(N.id,h.containerId)}),h.containerId}getViewAccordionService(c){const h=this.viewToContainerMap.get(c);if(h)return this.getAccordionService(h)}collectViewComponent(c,h,v={},f){this.customViews.set(c.id,c),this.viewToContainerMap.set(c.id,h);const W=this.getAccordionService(h);return v&&(c.initialProps=v),W.appendView(c,f?.isReplace),W.views.length===1&&(this.tabbarUpdateSet.add(h),this.tryUpdateTabbar(h)),f?.fromExtension&&this.disposableMap.set(c.id,this.commandRegistry.registerCommand({id:`${c.id}.focus`},{execute:async()=>(await this.ensureViewReady(c.id),this.commandService.executeCommand(`workbench.view.extension.${h}`,{forceShow:!0}))})),h}ensureViewReady(c){const h=this.viewToContainerMap.get(c),v=new G.Deferred,f=this.getAccordionService(h);return f.visibleViews.find(W=>W.id===c)?v.resolve():f.onAfterAppendViewEvent(W=>{W===c&&v.resolve()}),v.promise}tryUpdateTabbar(c){const h=this.holdTabbarComponent.get(c);h&&(this.getTabbarService(h.side).registerContainer(c,{views:h.views,options:h.options}),this.tabbarUpdateSet.delete(c),this.holdTabbarComponent.delete(c))}replaceViewComponent(c,h){const v=this.viewToContainerMap.get(c.id);if(!v){this.debug.warn(`The container corresponding to \`${c.id}\` was not found, please check the incoming parameters!`);return}const f=this.customViews.get(c.id);f&&(c=Object.assign(f,c)),this.collectViewComponent(c,v,h,{isReplace:!0})}disposeViewComponent(c){const h=this.disposableMap.get(c);h&&h.dispose();const v=this.viewToContainerMap.get(c);if(!v){this.debug.warn(`The container corresponding to \`${c}\` was not found, please check the incoming parameters!`);return}this.getAccordionService(v).disposeView(c)}revealView(c){const h=this.viewToContainerMap.get(c);if(!h){this.debug.warn(`The container corresponding to \`${c}\` was not found, please check the incoming parameters!`);return}this.getAccordionService(h).revealView(c)}disposeContainer(c){let h;for(const v of this.tabbarServices.values())if(v.getContainer(c)){h=v.location;break}h?this.getTabbarService(h).disposeContainer(c):this.debug.warn(`The Tabbar to the \`${c}\` was not found.`)}expandBottom(c){const h=this.getTabbarService(I.SlotLocation.bottom);h.currentContainerId||h.updateCurrentContainerId(h.currentContainerId||h.previousContainerId||h.containersMap.keys().next().value),h.doExpand(c),this.contextKeyService.createKey("bottomFullExpanded",h.isExpanded)}get bottomExpanded(){const c=this.getTabbarService(I.SlotLocation.bottom);return this.contextKeyService.createKey("bottomFullExpanded",c.isExpanded),c.isExpanded}};n.__decorate([(0,o.Autowired)(o.INJECTOR_TOKEN),n.__metadata("design:type",o.Injector)],l.prototype,"injector",void 0),n.__decorate([(0,o.Autowired)(b.MainLayoutContribution),n.__metadata("design:type",Object)],l.prototype,"contributions",void 0),n.__decorate([(0,o.Autowired)(u.IMenuRegistry),n.__metadata("design:type",u.IMenuRegistry)],l.prototype,"menus",void 0),n.__decorate([(0,o.Autowired)(I.CommandRegistry),n.__metadata("design:type",Object)],l.prototype,"commandRegistry",void 0),n.__decorate([(0,o.Autowired)(I.CommandService),n.__metadata("design:type",Object)],l.prototype,"commandService",void 0),n.__decorate([(0,o.Autowired)(),n.__metadata("design:type",g.LayoutState)],l.prototype,"layoutState",void 0),n.__decorate([(0,o.Autowired)(I.AppConfig),n.__metadata("design:type",Object)],l.prototype,"appConfig",void 0),n.__decorate([(0,o.Autowired)(I.IContextKeyService),n.__metadata("design:type",Object)],l.prototype,"contextKeyService",void 0),n.__decorate([(0,o.Autowired)(I.ComponentRegistry),n.__metadata("design:type",Object)],l.prototype,"componentRegistry",void 0),n.__decorate([(0,o.Autowired)(I.ILogger),n.__metadata("design:type",Object)],l.prototype,"logger",void 0),n.__decorate([(0,o.Autowired)(u.AbstractMenuService),n.__metadata("design:type",u.AbstractMenuService)],l.prototype,"menuService",void 0),n.__decorate([(0,o.Autowired)(u.AbstractContextMenuService),n.__metadata("design:type",u.AbstractContextMenuService)],l.prototype,"contextmenuService",void 0),n.__decorate([(0,I.OnEvent)(p.ThemeChangedEvent),n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[p.ThemeChangedEvent]),n.__metadata("design:returntype",void 0)],l.prototype,"onThemeChange",null),l=n.__decorate([(0,o.Injectable)()],l),e.LayoutService=l},53576:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.MainLayoutModuleContribution=e.RETRACT_BOTTOM_PANEL=e.EXPAND_BOTTOM_PANEL=e.IS_VISIBLE_RIGHT_PANEL_COMMAND=e.IS_VISIBLE_LEFT_PANEL_COMMAND=e.IS_VISIBLE_BOTTOM_PANEL_COMMAND=e.TOGGLE_BOTTOM_PANEL_COMMAND=e.SHOW_BOTTOM_PANEL_COMMAND=e.WORKBENCH_ACTION_CLOSEPANEL=e.HIDE_BOTTOM_PANEL_COMMAND=e.TOGGLE_RIGHT_PANEL_COMMAND=e.SHOW_RIGHT_PANEL_COMMAND=e.HIDE_RIGHT_PANEL_COMMAND=e.TOGGLE_LEFT_PANEL_COMMAND=e.SHOW_LEFT_PANEL_COMMAND=e.WORKBENCH_ACTION_CLOSESIDECAR=e.HIDE_LEFT_PANEL_COMMAND=void 0;const n=t(85608),a=t(76003),o=t(41869),I=t(30144),g=t(68456),u=t(95416),G=t(93899),p=t(43718),b=t(92323),m=t(17793),d=t(68988),s=t(19951);e.HIDE_LEFT_PANEL_COMMAND={id:"main-layout.left-panel.hide",label:"%main-layout.left-panel.hide%"},e.WORKBENCH_ACTION_CLOSESIDECAR={id:"workbench.action.closeSidebar",label:"%main-layout.sidebar.hide%"},e.SHOW_LEFT_PANEL_COMMAND={id:"main-layout.left-panel.show",label:"%main-layout.left-panel.show%"},e.TOGGLE_LEFT_PANEL_COMMAND={id:"main-layout.left-panel.toggle",label:"%main-layout.left-panel.toggle%"},e.HIDE_RIGHT_PANEL_COMMAND={id:"main-layout.right-panel.hide",label:"%main-layout.right-panel.hide%"},e.SHOW_RIGHT_PANEL_COMMAND={id:"main-layout.right-panel.show",label:"%main-layout.right-panel.show%"},e.TOGGLE_RIGHT_PANEL_COMMAND={id:"main-layout.right-panel.toggle",label:"%main-layout.right-panel.toggle%"},e.HIDE_BOTTOM_PANEL_COMMAND={id:"main-layout.bottom-panel.hide",label:"%main-layout.bottom-panel.hide%"},e.WORKBENCH_ACTION_CLOSEPANEL={id:"workbench.action.closePanel",delegate:e.HIDE_BOTTOM_PANEL_COMMAND.id},e.SHOW_BOTTOM_PANEL_COMMAND={id:"main-layout.bottom-panel.show",label:"%main-layout.bottom-panel.show%"},e.TOGGLE_BOTTOM_PANEL_COMMAND={id:"main-layout.bottom-panel.toggle",iconClass:(0,o.getIcon)("minus"),label:"%layout.tabbar.toggle%"},e.IS_VISIBLE_BOTTOM_PANEL_COMMAND={id:"main-layout.bottom-panel.is-visible"},e.IS_VISIBLE_LEFT_PANEL_COMMAND={id:"main-layout.left-panel.is-visible"},e.IS_VISIBLE_RIGHT_PANEL_COMMAND={id:"main-layout.right-panel.is-visible"},e.EXPAND_BOTTOM_PANEL={id:"main-layout.bottom-panel.expand",label:"%layout.tabbar.expand%",iconClass:(0,o.getIcon)("expand")},e.RETRACT_BOTTOM_PANEL={id:"main-layout.bottom-panel.retract",label:"%layout.tabbar.retract%",iconClass:(0,o.getIcon)("shrink")};let l=class extends p.WithEventBus{async initialize(){await this.layoutState.initStorage();const c=this.contributionProvider.getContributions();for(const f of c)f.registerComponent&&f.registerComponent(this.componentRegistry);const h=this.rendererContributionProvider.getContributions();for(const f of h)f.registerRenderer&&f.registerRenderer(o.slotRendererRegistry);const v=this.toolBarContributionProvider.getContributions();for(const f of v)f.registerToolbarItems&&f.registerToolbarItems(this.toolBarRegistry)}async onStart(){this.registerSideToggleKey()}async onDidStart(){this.mainLayoutService.didMount()}registerRenderer(c){c.registerSlotRenderer(o.SlotLocation.right,s.RightTabRenderer),c.registerSlotRenderer(o.SlotLocation.left,s.LeftTabRenderer),c.registerSlotRenderer(o.SlotLocation.bottom,s.BottomTabRenderer)}registerCommands(c){c.registerCommand(e.HIDE_LEFT_PANEL_COMMAND,{execute:()=>{this.mainLayoutService.toggleSlot(o.SlotLocation.left,!1)}}),c.registerCommand(e.SHOW_LEFT_PANEL_COMMAND,{execute:h=>{this.mainLayoutService.toggleSlot(o.SlotLocation.left,!0,h)}}),c.registerCommand(e.TOGGLE_LEFT_PANEL_COMMAND,{execute:(h,v)=>{this.mainLayoutService.toggleSlot(o.SlotLocation.left,h,v)}}),c.registerCommand(e.HIDE_RIGHT_PANEL_COMMAND,{execute:()=>{this.mainLayoutService.toggleSlot(o.SlotLocation.right,!1)}}),c.registerCommand(e.SHOW_RIGHT_PANEL_COMMAND,{execute:h=>{this.mainLayoutService.toggleSlot(o.SlotLocation.right,!0,h)}}),c.registerCommand(e.TOGGLE_RIGHT_PANEL_COMMAND,{execute:(h,v)=>{this.mainLayoutService.toggleSlot(o.SlotLocation.right,h,v)}}),c.registerCommand(e.WORKBENCH_ACTION_CLOSESIDECAR,{execute:()=>Promise.all([this.mainLayoutService.toggleSlot(o.SlotLocation.left,!1),this.mainLayoutService.toggleSlot(o.SlotLocation.right,!1)])}),c.registerCommand(e.SHOW_BOTTOM_PANEL_COMMAND,{execute:()=>{this.mainLayoutService.toggleSlot(o.SlotLocation.bottom,!0)}}),c.registerCommand(e.HIDE_BOTTOM_PANEL_COMMAND,{execute:()=>{this.mainLayoutService.toggleSlot(o.SlotLocation.bottom,!1)}}),c.registerCommand(e.WORKBENCH_ACTION_CLOSEPANEL),c.registerCommand(e.IS_VISIBLE_BOTTOM_PANEL_COMMAND,{execute:()=>this.mainLayoutService.getTabbarService("bottom").currentContainerId!==""}),c.registerCommand(e.IS_VISIBLE_LEFT_PANEL_COMMAND,{execute:()=>this.mainLayoutService.isVisible(o.SlotLocation.left)}),c.registerCommand(e.IS_VISIBLE_RIGHT_PANEL_COMMAND,{execute:()=>this.mainLayoutService.isVisible(o.SlotLocation.left)}),c.registerCommand({id:"view.outward.right-panel.hide"},{execute:()=>{this.commandService.executeCommand("main-layout.right-panel.toggle",!1)}}),c.registerCommand({id:"view.outward.right-panel.show"},{execute:h=>{this.commandService.executeCommand("main-layout.right-panel.toggle",!0,h)}}),c.registerCommand({id:"view.outward.left-panel.hide"},{execute:()=>{this.commandService.executeCommand("main-layout.left-panel.toggle",!1)}}),c.registerCommand({id:"view.outward.left-panel.show"},{execute:h=>{this.commandService.executeCommand("main-layout.left-panel.toggle",!0,h)}}),c.registerCommand({id:o.LAYOUT_COMMANDS.MAXIMIZE_EDITOR.id},{execute:()=>{this.commandService.executeCommand(e.TOGGLE_RIGHT_PANEL_COMMAND.id,!1),this.commandService.executeCommand(e.TOGGLE_LEFT_PANEL_COMMAND.id,!1)}}),c.registerCommand(o.LAYOUT_COMMANDS.OPEN_VIEW,{execute:()=>{this.commandService.executeCommand(o.QUICK_OPEN_COMMANDS.OPEN_VIEW.id)}})}registerMenus(c){c.registerMenuItem(G.MenuId.ActivityBarExtra,{submenu:G.MenuId.SettingsIconMenu,iconClass:(0,o.getIcon)("setting"),label:(0,p.localize)("layout.tabbar.setting"),order:1,group:"navigation"}),Object.entries({[o.SlotLocation.left]:[I.EXPLORER_CONTAINER_ID,I.SEARCH_CONTAINER_ID,I.SCM_CONTAINER_ID,I.DEBUG_CONTAINER_ID,I.EXTENSION_CONTAINER_ID],[o.SlotLocation.bottom]:[I.MARKER_CONTAINER_ID,I.OUTPUT_CONTAINER_ID,I.DEBUG_CONSOLE_CONTAINER_ID,I.TERMINAL_CONTAINER_ID]}).forEach(([h,v],f)=>{const W=this.mainLayoutService.getTabbarService(h);W.viewReady.promise.then(()=>{v.forEach(N=>{var Z,y;const E=W.getContainer(N);E&&c.registerMenuItem(G.MenuId.MenubarViewMenu,{command:{id:`container.toggle.${N}`,label:(y=(Z=E.options)===null||Z===void 0?void 0:Z.title)!==null&&y!==void 0?y:N},group:`${3+f}_${h}`})})})}),c.registerMenuItem(G.MenuId.MenubarViewMenu,{command:e.TOGGLE_LEFT_PANEL_COMMAND,group:"5_panel"}),c.registerMenuItem(G.MenuId.MenubarViewMenu,{command:e.TOGGLE_RIGHT_PANEL_COMMAND,group:"5_panel"}),c.registerMenuItem(G.MenuId.MenubarViewMenu,{command:e.TOGGLE_BOTTOM_PANEL_COMMAND,group:"5_panel"}),c.registerMenuItem(G.MenuId.MenubarViewMenu,{command:e.EXPAND_BOTTOM_PANEL,group:"5_panel",when:"!bottomFullExpanded"}),c.registerMenuItem(G.MenuId.MenubarViewMenu,{command:e.RETRACT_BOTTOM_PANEL,group:"5_panel",when:"bottomFullExpanded"}),c.registerMenuItem(G.MenuId.MenubarViewMenu,{command:{id:o.EDITOR_COMMANDS.TOGGLE_WORD_WRAP.id,label:"%preference.editor.wordWrap%"},group:"6_capability",toggledWhen:"config.editor.wordWrap == on"})}registerSideToggleKey(){this.keybindingRegistry.registerKeybinding({keybinding:"ctrlcmd+b",command:e.TOGGLE_LEFT_PANEL_COMMAND.id}),this.keybindingRegistry.registerKeybinding({keybinding:"ctrlcmd+j",command:e.TOGGLE_BOTTOM_PANEL_COMMAND.id}),this.keybindingRegistry.registerKeybinding({keybinding:"ctrlcmd+shift+j",command:e.EXPAND_BOTTOM_PANEL.id,when:"!bottomFullExpanded"}),this.keybindingRegistry.registerKeybinding({keybinding:"ctrlcmd+shift+j",command:e.RETRACT_BOTTOM_PANEL.id,when:"bottomFullExpanded"})}registerQuickOpenHandlers(c){c.registerHandler(this.quickOpenViewHandler,{title:(0,p.localize)("layout.action.openView"),commandId:o.LAYOUT_COMMANDS.QUICK_OPEN_VIEW.id,order:5,hideTab:!0})}};n.__decorate([(0,a.Autowired)(m.IMainLayoutService),n.__metadata("design:type",Object)],l.prototype,"mainLayoutService",void 0),n.__decorate([(0,a.Autowired)(o.IContextKeyService),n.__metadata("design:type",Object)],l.prototype,"contextKeyService",void 0),n.__decorate([(0,a.Autowired)(p.IEventBus),n.__metadata("design:type",Object)],l.prototype,"eventBus",void 0),n.__decorate([(0,a.Autowired)(g.ComponentContribution),n.__metadata("design:type",Object)],l.prototype,"contributionProvider",void 0),n.__decorate([(0,a.Autowired)(o.SlotRendererContribution),n.__metadata("design:type",Object)],l.prototype,"rendererContributionProvider",void 0),n.__decorate([(0,a.Autowired)(g.ComponentRegistry),n.__metadata("design:type",Object)],l.prototype,"componentRegistry",void 0),n.__decorate([(0,a.Autowired)(b.CommandService),n.__metadata("design:type",Object)],l.prototype,"commandService",void 0),n.__decorate([(0,a.Autowired)(),n.__metadata("design:type",u.LayoutState)],l.prototype,"layoutState",void 0),n.__decorate([(0,a.Autowired)(g.TabBarToolbarContribution),n.__metadata("design:type",Object)],l.prototype,"toolBarContributionProvider",void 0),n.__decorate([(0,a.Autowired)(),n.__metadata("design:type",g.ToolbarRegistry)],l.prototype,"toolBarRegistry",void 0),n.__decorate([(0,a.Autowired)(o.KeybindingRegistry),n.__metadata("design:type",Object)],l.prototype,"keybindingRegistry",void 0),n.__decorate([(0,a.Autowired)(d.ViewQuickOpenHandler),n.__metadata("design:type",d.ViewQuickOpenHandler)],l.prototype,"quickOpenViewHandler",void 0),l=n.__decorate([(0,p.Domain)(b.CommandContribution,o.ClientAppContribution,o.SlotRendererContribution,G.MenuContribution,o.QuickOpenContribution)],l),e.MainLayoutModuleContribution=l},68988:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ViewQuickOpenItem=e.ContainerQuickOpenItem=e.ViewQuickOpenHandler=void 0;const n=t(85608),a=t(76003),o=t(41869),I=t(74404),g=t(17793);let u=class{constructor(){this.prefix="view ",this.description=(0,o.localize)("layout.action.openView")}getModel(){return{onType:(m,d)=>d(this.getViewQuickOpenItems())}}getViewQuickOpenItems(){var m;const d=this.layoutService.getAllAccordionService(),s=Array.from(d.keys());let l=[];l=l.concat(s.map((r,c)=>this.injector.get(G,[r,{groupLabel:c===0?(0,o.localize)("layout.openView.containerTitle"):"",showBorder:!1}])));for(const r of s){const c=(m=d.get(r))===null||m===void 0?void 0:m.views;if(c)for(let h=0,v=c.length;h<v;h++)l.push(this.injector.get(p,[r,c[h],{groupLabel:h===0?(0,o.formatLocalize)("layout.openView.viewTitle",String(r).toUpperCase()):"",showBorder:!1}]))}return l}getOptions(){return{}}onClose(){}};n.__decorate([(0,a.Autowired)(I.PrefixQuickOpenService),n.__metadata("design:type",Object)],u.prototype,"quickOpenService",void 0),n.__decorate([(0,a.Autowired)(g.IMainLayoutService),n.__metadata("design:type",Object)],u.prototype,"layoutService",void 0),n.__decorate([(0,a.Autowired)(a.INJECTOR_TOKEN),n.__metadata("design:type",a.Injector)],u.prototype,"injector",void 0),u=n.__decorate([(0,a.Injectable)()],u),e.ViewQuickOpenHandler=u;let G=class extends I.QuickOpenItem{constructor(m,d){super(d),this.containerId=m,this.options=d}getLabel(){return String(this.containerId).toLocaleUpperCase()}isHidden(){return super.isHidden()}run(m){if(m!==I.Mode.OPEN)return!1;const d=this.layoutService.getTabbarHandler(this.containerId);return d?.activate(),!0}};n.__decorate([(0,a.Autowired)(g.IMainLayoutService),n.__metadata("design:type",Object)],G.prototype,"layoutService",void 0),G=n.__decorate([(0,a.Injectable)({multiple:!0}),n.__metadata("design:paramtypes",[Object,Object])],G),e.ContainerQuickOpenItem=G;let p=class extends I.QuickOpenItem{constructor(m,d,s){super(s),this.containerId=m,this.view=d,this.options=s}getLabel(){var m;return(m=this.view.name)===null||m===void 0?void 0:m.toUpperCase()}isHidden(){return super.isHidden()}run(m){if(m!==I.Mode.OPEN)return!1;const d=this.layoutService.getTabbarHandler(this.containerId);return d&&(d.activate(),d.isCollapsed(this.view.id)&&d?.setCollapsed(this.view.id,!1)),!0}};n.__decorate([(0,a.Autowired)(g.IMainLayoutService),n.__metadata("design:type",Object)],p.prototype,"layoutService",void 0),p=n.__decorate([(0,a.Injectable)({multiple:!0}),n.__metadata("design:paramtypes",[String,Object,Object])],p),e.ViewQuickOpenItem=p},58999:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.TabBarHandler=void 0;const n=t(85608),a=t(76003),o=t(43718),I=t(17793),g=t(752);let u=class{constructor(p,b){this.containerId=p,this.tabbarService=b,this.onActivateEmitter=new o.Emitter,this.onActivate=this.onActivateEmitter.event,this.onInActivateEmitter=new o.Emitter,this.onInActivate=this.onInActivateEmitter.event,this.onCollapseEmitter=new o.Emitter,this.onCollapse=this.onCollapseEmitter.event,this.isVisible=!1,this.accordionService=this.layoutService.getAccordionService(this.containerId),b.currentContainerId===this.containerId&&(this.onActivateEmitter.fire(),this.isVisible=!0),this.tabbarService.onCurrentChange(m=>{m.currentId===this.containerId?(this.onActivateEmitter.fire(),this.isVisible=!0):m.previousId===this.containerId&&(this.onInActivateEmitter.fire(),this.isVisible=!1)})}dispose(){this.tabbarService.containersMap.delete(this.containerId),this.tabbarService.disposeContainer(this.containerId)}disposeView(p){this.layoutService.disposeViewComponent(p)}activate(){this.tabbarService.updateCurrentContainerId(this.containerId)}deactivate(){this.tabbarService.updateCurrentContainerId("")}isActivated(){return this.tabbarService.currentContainerId===this.containerId}show(){this.tabbarService.showContainer(this.containerId)}hide(){this.tabbarService.hideContainer(this.containerId)}setTitleComponent(p,b){const m=this.tabbarService.getContainer(this.containerId);m&&m.options&&(m.options.titleProps=b,m.options.titleComponent=p,m.fireChange(m))}setSize(p){this.layoutService.toggleSlot(this.tabbarService.location,!0,p+this.tabbarService.getBarSize())}setBadge(p){this.tabbarService.updateBadge(this.containerId,p)}getBadge(){return this.tabbarService.getContainer(this.containerId).options.badge}setIconClass(p){this.tabbarService.getContainer(this.containerId).options.iconClass=p}isCollapsed(p){return this.accordionService.getViewState(p).collapsed}setCollapsed(p,b){this.accordionService.toggleOpen(p,b)}toggleViews(p,b){for(const m of p){const d=this.accordionService.getViewState(m);this.accordionService.updateViewState(m,Object.assign(Object.assign({},d),{hidden:!b}))}}updateViewTitle(p,b){this.accordionService.updateViewTitle(p,b)}updateViewDescription(p,b){this.accordionService.updateViewDesciption(p,b)}updateViewMessage(p,b){this.accordionService.updateViewMessage(p,b)}updateTitle(p){this.tabbarService.updateTitle(this.containerId,p)}setResizeLock(p){this.tabbarService.resizeHandle.lockSize(p)}};n.__decorate([(0,a.Autowired)(I.IMainLayoutService),n.__metadata("design:type",Object)],u.prototype,"layoutService",void 0),u=n.__decorate([(0,a.Injectable)({multiple:!0}),n.__metadata("design:paramtypes",[String,g.TabbarService])],u),e.TabBarHandler=u},46245:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BottomTabbarRenderer=e.LeftTabbarRenderer=e.RightTabbarRenderer=e.TextElipses=e.IconElipses=e.TextTabView=e.IconTabView=e.TabbarViewBase=void 0;const n=t(85608),a=n.__importDefault(t(53373)),o=t(25150),I=n.__importStar(t(14041)),g=t(97267),u=t(41869),G=t(25918),p=t(25719),b=t(63373),m=t(68969),d=t(17793),s=t(19951),l=n.__importDefault(t(5330)),r=t(752);function c(Z,y){return y>=Z.length?[Z,[]]:y<=1?[[],Z]:[Z.slice(0,y-1),Z.slice(y-1)]}e.TabbarViewBase=(0,o.observer)(Z=>{var y;const{TabView:E,MoreTabView:R,forbidCollapse:A,barSize:w=48,panelBorderSize:F=0,tabClassName:V,className:Y,margin:_,tabSize:H,canHideTabbar:S,renderOtherVisibleContainers:X=()=>null,disableAutoAdjust:Q}=Z,{side:O,direction:M,fullSize:T}=I.default.useContext(s.TabbarConfig),x=(0,u.useInjectable)(r.TabbarServiceFactory)(O),B=(0,u.useDesignStyles)(l.default.tab_bar,"tab_bar"),D=(0,u.useDesignStyles)(l.default.bar_content,"bar_content");I.default.useEffect(()=>{x.updateBarSize(w+F)},[]);const{currentContainerId:J,handleTabClick:k}=x,z=(0,u.usePreference)("workbench.hideSlotTabBarWhenHidePanel",!1),P=S&&z;P&&!J&&((y=x.resizeHandle)===null||y===void 0||y.setSize(0));const U=Q?Number.MAX_SAFE_INTEGER:Math.floor(T-(_||0)/H),[oe,se]=c(x.visibleContainers.filter(he=>{var ee;return!(!((ee=he.options)===null||ee===void 0)&&ee.hideTab)}),U);se.forEach(he=>{x.updateTabInMoreKey(he.options.containerId,!0)});const ae=I.default.useCallback((he,ee,pe)=>{var ge;const $=(ge=he.options)===null||ge===void 0?void 0:ge.containerId;if(!$)return null;x.updateTabInMoreKey($,!1);let le;return I.default.createElement("li",{draggable:!0,onDragStart:te=>{if(le){const ue=le.cloneNode(!0);ue.classList.add(l.default.dragging),V&&ue.classList.add(V),document.body.appendChild(ue),te.persist(),requestAnimationFrame(()=>{te.dataTransfer.setDragImage(ue,0,0),document.body.removeChild(ue)})}x.handleDragStart(te,$)},onDragOver:te=>{te.preventDefault(),le&&le.classList.add("on-drag-over")},onDragLeave:()=>{le&&le.classList.remove("on-drag-over")},onDrop:te=>{le&&le.classList.remove("on-drag-over"),x.handleDrop(te,$)},key:$,id:$,onContextMenu:te=>x.handleContextMenu(te,$),onClick:te=>ee(te,P||A),ref:te=>le=te,className:(0,a.default)({active:pe===$},V)},I.default.createElement(E,{component:he}))},[]);return I.default.createElement("div",{className:(0,a.default)([B,Y])},I.default.createElement("div",{className:D,style:{flexDirection:p.Layout.getTabbarDirection(M)}},oe.map(he=>ae(he,k,J)),X({props:Z,renderContainers:ae}),se.length?I.default.createElement("li",{key:"tab-more",onClick:he=>{var ee;return x.showMoreMenu(he,oe[oe.length-1]&&((ee=oe[oe.length-1].options)===null||ee===void 0?void 0:ee.containerId))},className:V},I.default.createElement(R,null)):null))}),e.IconTabView=(0,o.observer)(({component:Z})=>{var y,E,R,A;const w=(0,u.useInjectable)(m.IProgressService),F=(0,u.useInjectable)(u.KeybindingRegistry),V=(0,u.useDesignStyles)(l.default.icon_tab,"icon_tab"),[Y,_]=I.default.useState(Z),H=(E=w.getIndicator(((y=Y.options)===null||y===void 0?void 0:y.containerId)||""))===null||E===void 0?void 0:E.progressModel.show,S=I.default.useMemo(()=>{const X=Y.options;return X?.activateKeyBinding?`${X?.title} (${F.acceleratorForKeyString(X.activateKeyBinding,"+")})`:X?.title},[Y]);return(0,I.useEffect)(()=>{const X=Y.onChange(Q=>{_(Q)});return()=>{X.dispose()}},[]),I.default.createElement("div",{className:V},I.default.createElement("div",{className:(0,a.default)((R=Y.options)===null||R===void 0?void 0:R.iconClass,"activity-icon"),title:S}),H?I.default.createElement(g.Badge,{className:l.default.tab_badge},I.default.createElement("span",{className:l.default.icon_wrapper},I.default.createElement(g.Icon,{icon:"time-circle"}))):((A=Y.options)===null||A===void 0?void 0:A.badge)&&I.default.createElement(g.Badge,{className:l.default.tab_badge},parseInt(Y.options.badge,10)>99?"99+":Y.options.badge))}),e.TextTabView=(0,o.observer)(({component:Z})=>{var y,E,R;const[A,w]=I.default.useState(Z);return(0,I.useEffect)(()=>{const F=A.onChange(V=>{w(V)});return()=>{F.dispose()}},[]),I.default.createElement("div",{className:l.default.text_tab},I.default.createElement("div",{className:l.default.bottom_tab_title},(E=(y=A.options)===null||y===void 0?void 0:y.title)===null||E===void 0?void 0:E.toUpperCase()),((R=A.options)===null||R===void 0?void 0:R.badge)&&I.default.createElement(g.Badge,{className:l.default.tab_badge},parseInt(A.options.badge,10)>99?"99+":A.options.badge))});const h=()=>{const Z=(0,u.useDesignStyles)(l.default.icon_tab,"icon_tab");return I.default.createElement("div",{className:Z},I.default.createElement("div",{className:(0,a.default)((0,u.getIcon)("ellipsis"),"activity-icon"),title:"extra tabs"}))};e.IconElipses=h;const v=()=>I.default.createElement("div",{className:l.default.text_tab},I.default.createElement("div",{className:l.default.bottom_tab_title},I.default.createElement("i",{className:(0,u.getIcon)("doubleright")})));e.TextElipses=v;const f=Z=>{const{barSize:y=48,style:E}=Z,{side:R}=I.default.useContext(s.TabbarConfig),A=(0,u.useInjectable)(r.TabbarServiceFactory)(R),w=(0,u.useDesignStyles)(l.default.right_tab_bar,"right_tab_bar"),F=(0,u.useDesignStyles)(l.default.right_tab,"right_tab");return I.default.createElement("div",{id:b.VIEW_CONTAINERS.RIGHT_TABBAR,className:w,style:E,onContextMenu:A.handleContextMenu},I.default.createElement(e.TabbarViewBase,{tabSize:48,MoreTabView:e.IconElipses,tabClassName:F,TabView:e.IconTabView,barSize:y,panelBorderSize:1}))};e.RightTabbarRenderer=f;const W=({renderOtherVisibleContainers:Z,isRenderExtraTopMenus:y=!0,renderExtraMenus:E,tabbarViewProps:R})=>{const{side:A}=I.default.useContext(s.TabbarConfig),w=(0,u.useInjectable)(d.IMainLayoutService),F=(0,u.useInjectable)(r.TabbarServiceFactory)(A),V=I.default.useMemo(()=>w.getExtraTopMenu(),[w]),Y=I.default.useMemo(()=>w.getExtraMenu(),[w]),_=(0,u.useDesignStyles)(l.default.left_tab_bar,"left_tab_bar"),H=(0,u.useDesignStyles)(l.default.left_tab,"left_tab");return I.default.createElement("div",{id:b.VIEW_CONTAINERS.LEFT_TABBAR,className:_,onContextMenu:F.handleContextMenu},y&&I.default.createElement(G.InlineMenuBar,{className:(0,a.default)(l.default.vertical_icons,l.default.extra_top_menus),menus:V}),I.default.createElement(e.TabbarViewBase,Object.assign({tabSize:48,MoreTabView:e.IconElipses,className:l.default.left_tab_content,tabClassName:H,TabView:e.IconTabView,barSize:48,margin:90,panelBorderSize:1,renderOtherVisibleContainers:Z},R)),E||I.default.createElement(G.InlineMenuBar,{className:l.default.vertical_icons,menus:Y}))};e.LeftTabbarRenderer=W;const N=()=>{const{side:Z}=I.default.useContext(s.TabbarConfig),y=(0,u.useInjectable)(r.TabbarServiceFactory)(Z),E=(0,u.useDesignStyles)(l.default.bottom_bar_container,"bottom_bar_container"),R=(0,u.useDesignStyles)(l.default.bottom_tab,"bottom_tab");return I.default.createElement("div",{id:b.VIEW_CONTAINERS.BOTTOM_TABBAR,onContextMenu:y.handleContextMenu,className:(0,a.default)(E,"next_bottom_bar")},I.default.createElement(e.TabbarViewBase,{tabSize:80,MoreTabView:e.TextElipses,tabClassName:R,TabView:e.TextTabView,barSize:24,panelBorderSize:1,canHideTabbar:!0}))};e.BottomTabbarRenderer=N},66368:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BottomTabPanelRenderer=e.LeftTabPanelRenderer=e.RightTabPanelRenderer=e.ContainerView=e.BaseTabPanelView=void 0;const n=t(85608),a=n.__importDefault(t(53373)),o=t(25150),I=n.__importDefault(t(14041)),g=t(76003),u=t(41869),G=t(25918),p=t(1149),b=t(68969),m=t(68974),d=t(9522),s=t(70936),l=t(91527),r=t(19951),c=n.__importDefault(t(5330)),h=t(752),v=I.default.memo(({children:R})=>R,(R,A)=>!(R.visible||A.visible)),f={display:"block"},W={display:"none"};e.BaseTabPanelView=(0,o.observer)(R=>{const{PanelView:A,panelSize:w,id:F,PanelViewProps:V}=R,{side:Y}=I.default.useContext(r.TabbarConfig),_=(0,u.useInjectable)(h.TabbarServiceFactory)(Y),H=(0,u.useInjectable)(u.AppConfig),S=H.panelSizes&&H.panelSizes[Y],X=(0,u.useDesignStyles)(c.default.tab_panel,"tab_panel"),Q=(0,u.useDesignStyles)(c.default.tab_panel_hidden,"tab_panel_hidden");return I.default.useEffect(()=>{_.updatePanelSize(S||w||335)},[]),I.default.createElement("div",{id:F,className:(0,a.default)(X,{[Q]:!_.currentContainerId})},_.visibleContainers.map(O=>{var M;const T=(M=O.options)===null||M===void 0?void 0:M.containerId;if(!T)return null;const x=_.getTitleToolbarMenu(T);return I.default.createElement("div",{key:T,className:(0,a.default)(c.default.panel_wrap,T),"data-viewlet-id":T,style:_.currentContainerId===T?f:W,id:F},I.default.createElement(u.ErrorBoundary,null,I.default.createElement(v,{visible:_.currentContainerId===T},I.default.createElement(A,Object.assign({titleMenu:x,side:Y,component:O},V)))))}))}),e.ContainerView=(0,o.observer)(({component:R,titleMenu:A,side:w,renderContainerWrap:F,className:V})=>{var Y,_;const H=I.default.useRef(),S=I.default.useRef(null),X=(0,u.useInjectable)(u.AppConfig),{title:Q,titleComponent:O,component:M,containerId:T}=R.options||{},x=(0,u.useInjectable)(g.INJECTOR_TOKEN),B=(0,u.useInjectable)(p.LayoutViewSizeConfig),D=U=>{x.get(d.AccordionServiceFactory)(T).handleContextMenu(U)};if(!T)return null;const k=(0,u.useInjectable)(b.IProgressService).getIndicator(T);if(!k)return null;const z=(0,u.useViewState)(w,S),P=I.default.useCallback(U=>F?F({children:U}):U,[F]);return I.default.createElement("div",{ref:S,className:(0,a.default)(c.default.view_container,V)},!M&&I.default.createElement("div",{onContextMenu:D,className:c.default.panel_titlebar},Q?I.default.createElement(l.TitleBar,{title:Q,height:B.panelTitleBarHeight,menubar:I.default.createElement(G.InlineActionBar,{menus:A})}):null,O&&I.default.createElement("div",{className:c.default.panel_component},I.default.createElement(u.ConfigProvider,{value:X},I.default.createElement(u.ComponentRenderer,{Component:O,initialProps:(Y=R.options)===null||Y===void 0?void 0:Y.titleProps})))),I.default.createElement("div",{className:c.default.container_wrap,ref:U=>H.current=U},I.default.createElement(m.ProgressBar,{progressModel:k.progressModel}),P(M?I.default.createElement(u.ConfigProvider,{value:X},I.default.createElement(u.ComponentRenderer,{initialProps:Object.assign({viewState:z},(_=R.options)===null||_===void 0?void 0:_.initialProps),Component:M})):I.default.createElement(s.AccordionContainer,{views:R.views,minSize:R.options.miniSize,containerId:R.options.containerId}))))});const N=(0,o.observer)(({component:R,titleMenu:A,side:w})=>{var F,V,Y,_;const H=I.default.useRef(),S=I.default.useRef(null),X=(0,u.useInjectable)(u.AppConfig),Q=(0,u.useInjectable)(h.TabbarServiceFactory)(w),O=(0,u.useDesignStyles)(c.default.panel_title_bar,"panel_title_bar"),M=(0,u.useDesignStyles)(c.default.panel_toolbar_container,"panel_toolbar_container"),T=(0,u.useViewState)(w,S),x=(0,u.useInjectable)(p.LayoutViewSizeConfig),B=(0,u.useInjectable)(b.IProgressService),{component:D,containerId:J}=R.options||{},k=R.options&&R.options.titleComponent;if(!J)return null;const z=B.getIndicator(J);return z?I.default.createElement("div",{ref:S,className:c.default.panel_container},I.default.createElement("div",{className:O,style:{height:x.panelTitleBarHeight}},I.default.createElement("h1",null,(V=(F=R.options)===null||F===void 0?void 0:F.title)===null||V===void 0?void 0:V.toUpperCase()),I.default.createElement("div",{className:c.default.title_component_container},k&&I.default.createElement(u.ComponentRenderer,{Component:k,initialProps:(Y=R.options)===null||Y===void 0?void 0:Y.titleProps})),I.default.createElement("div",{className:M},A&&I.default.createElement(G.InlineActionBar,{menus:A}),I.default.createElement(G.InlineMenuBar,{menus:Q.commonTitleMenu,moreAtFirst:!0}))),I.default.createElement("div",{className:c.default.container_wrap,ref:P=>H.current=P},I.default.createElement(m.ProgressBar,{progressModel:z.progressModel}),D?I.default.createElement(u.ConfigProvider,{value:X},I.default.createElement(u.ComponentRenderer,{initialProps:Object.assign({viewState:T},(_=R.options)===null||_===void 0?void 0:_.initialProps),Component:D})):I.default.createElement(s.AccordionContainer,{views:R.views,alignment:"horizontal",minSize:R.options.miniSize,containerId:R.options.containerId}))):null}),Z=()=>I.default.createElement(e.BaseTabPanelView,{PanelView:e.ContainerView});e.RightTabPanelRenderer=Z;const y=()=>I.default.createElement(e.BaseTabPanelView,{PanelView:e.ContainerView});e.LeftTabPanelRenderer=y;const E=()=>I.default.createElement(e.BaseTabPanelView,{PanelView:N,panelSize:280});e.BottomTabPanelRenderer=E},19951:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BottomTabRenderer=e.LeftTabRenderer=e.RightTabRenderer=e.TabRendererBase=e.TabbarConfig=void 0;const n=t(85608),a=n.__importDefault(t(53373)),o=n.__importStar(t(14041)),I=t(41869),g=t(81878),u=t(25719),G=t(63373),p=t(46245),b=t(66368),m=n.__importDefault(t(5330)),d=t(752);e.TabbarConfig=(0,o.createContext)({side:I.SlotLocation.left,direction:"left-to-right",fullSize:0}),e.TabRendererBase=(0,o.memo)(({id:c,className:h,components:v,direction:f="left-to-right",TabbarView:W,side:N,TabpanelView:Z})=>{const y=(0,I.useInjectable)(d.TabbarServiceFactory)(N),E=(0,I.useInjectable)(I.IEventBus),R=(0,o.useContext)(g.PanelContext),A=(0,o.useRef)(null),[w,F]=(0,o.useState)(0);(0,o.useLayoutEffect)(()=>{y.registerResizeHandle(R),v.forEach(Y=>{y.registerContainer(Y.options.containerId,Y)}),y.updatePanelVisibility(),y.ensureViewReady()},[v]);const V=(0,o.useCallback)(()=>{A.current&&F(A.current[u.Layout.getDomSizeProperty(f)])},[w,A.current]);return(0,o.useEffect)(()=>{if(A.current){V();let Y;E.on(I.ResizeEvent,_=>{_.payload.slotLocation===N&&(Y&&(Y.dispose(),Y=null),Y=(0,I.runWhenIdle)(V))})}},[]),o.default.createElement("div",{ref:A,id:c,className:(0,a.default)(m.default.tab_container,h),style:{flexDirection:u.Layout.getFlexDirection(f)}},o.default.createElement(e.TabbarConfig.Provider,{value:{side:N,direction:f,fullSize:w}},o.default.createElement(W,null),o.default.createElement(Z,null)))});const s=({className:c,components:h,tabbarView:v,tabpanelView:f})=>o.default.createElement(e.TabRendererBase,{side:I.SlotLocation.right,direction:"right-to-left",id:G.VIEW_CONTAINERS.RIGHT_TABBAR_PANEL,className:(0,a.default)(c,"right-slot"),components:h,TabbarView:v??p.RightTabbarRenderer,TabpanelView:f??b.RightTabPanelRenderer});e.RightTabRenderer=s;const l=({className:c,components:h,tabbarView:v})=>o.default.createElement(e.TabRendererBase,{side:I.SlotLocation.left,direction:"left-to-right",id:G.VIEW_CONTAINERS.LEFT_TABBAR_PANEL,className:(0,a.default)(c,"left-slot"),components:h,TabbarView:v??p.LeftTabbarRenderer,TabpanelView:b.LeftTabPanelRenderer});e.LeftTabRenderer=l;const r=({className:c,components:h,tabbarView:v})=>o.default.createElement(e.TabRendererBase,{side:I.SlotLocation.bottom,id:G.VIEW_CONTAINERS.BOTTOM_TABBAR_PANEL,direction:"bottom-to-top",className:(0,a.default)(c,"bottom-slot"),components:h,TabbarView:v??p.BottomTabbarRenderer,TabpanelView:b.BottomTabPanelRenderer});e.BottomTabRenderer=r},752:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.TabbarService=e.TabbarServiceFactory=void 0;const n=t(85608),a=n.__importDefault(t(12784)),o=t(83794),I=t(76003),g=t(41869),u=t(30144),G=t(95416),p=t(93899),b=t(68969),m=t(17793),d=t(53576);e.TabbarServiceFactory=Symbol("TabbarServiceFactory");const s={left:"view",right:"extendView",bottom:"panel"},l=void 0;let r=class extends g.WithEventBus{constructor(h){super(),this.location=h,this.currentContainerId=l,this.previousContainerId="",this.containersMap=new Map,this.state=new Map,this.storedState={},this.viewReady=new g.Deferred,this.accordionRestored=new Set,this.onCurrentChangeEmitter=new g.Emitter,this.onCurrentChange=this.onCurrentChangeEmitter.event,this.onSizeChangeEmitter=new g.Emitter,this.onSizeChange=this.onSizeChangeEmitter.event,this.menuId=`tabbar/${this.location}`,this.moreMenuId=`tabbar/${this.location}/more`,this.sortedContainers=[],this.disposableMap=new Map,this.tabInMoreKeyMap=new Map,this.shouldWaitForViewRender=!1,this.onDidRegisterContainerEmitter=new g.Emitter,this.isEmptyTabbar=!0,this.updatePanel=(0,a.default)(v=>{this.resizeHandle&&this.resizeHandle.hidePanel(v)},60),this._menuMap=new Map,this.setIsLatter(h===g.SlotLocation.right||h===g.SlotLocation.bottom),(0,o.makeObservable)(this),this.scopedCtxKeyService=this.contextKeyService.createScoped(),this.scopedCtxKeyService.createKey("triggerWithTab",!0),this.menuRegistry.registerMenuItem(this.menuId,{command:{id:this.registerGlobalToggleCommand(),label:(0,g.localize)("layout.tabbar.toggle")},group:"0_global",when:"triggerWithTab == true"}),this.activatedKey=this.contextKeyService.createKey((0,g.getTabbarCtxKey)(this.location),""),this.location==="bottom"&&(this.registerPanelCommands(),this.registerPanelMenus())}get onDidRegisterContainer(){return this.onDidRegisterContainerEmitter.event}setIsLatter(h){this.isLatter=h}updateCurrentContainerId(h){this.currentContainerId=h}updateBadge(h,v){const f=this.getContainer(h);f&&f.options&&(f.options.badge=v),f?.fireChange(f)}registerPanelCommands(){this.commandRegistry.registerCommand(d.EXPAND_BOTTOM_PANEL,{execute:()=>{this.layoutService.expandBottom(!0)}}),this.commandRegistry.registerCommand(d.RETRACT_BOTTOM_PANEL,{execute:()=>{this.layoutService.expandBottom(!1)}}),this.commandRegistry.registerCommand(d.TOGGLE_BOTTOM_PANEL_COMMAND,{execute:(h,v)=>{this.layoutService.toggleSlot(g.SlotLocation.bottom,h,v)}})}getContainerState(h){return this.state.get(h)}hideContainer(h){const v=this.state.get(h);v&&(v.hidden=!0)}showContainer(h){const v=this.state.get(h);v&&(v.hidden=!1)}updatePanelVisibility(h){h===void 0&&(h=this.containersMap.size>0),this.updatePanel(h)}ensureViewReady(){(0,g.isDefined)(this.barSize)&&(0,g.isDefined)(this.panelSize)?this.resolveViewReady():this.shouldWaitForViewRender=!0}updatePanelSize(h){this.panelSize=h,(0,g.isDefined)(this.barSize)&&this.shouldWaitForViewRender&&this.resolveViewReady()}updateBarSize(h){this.barSize=h,(0,g.isDefined)(this.panelSize)&&this.shouldWaitForViewRender&&this.resolveViewReady()}resolveViewReady(){this.isEmptyTabbar?g.Event.once(this.onDidRegisterContainer)(()=>{this.viewReady.resolve()}):this.viewReady.resolve()}getBarSize(){return this.barSize}updateTabInMoreKey(h,v){const f=this.tabInMoreKeyMap.get(h);f&&f.set(v)}get visibleContainers(){const h=[];return this.containersMap.forEach(v=>{const f=v.options&&this.state.get(v.options.containerId);(!f||!f.hidden)&&h.push(v)}),h.sort((v,f)=>this.getContainerState(v.options.containerId).priority-this.getContainerState(f.options.containerId).priority)}registerResizeHandle(h){const{setSize:v,setRelativeSize:f,getSize:W,getRelativeSize:N,lockSize:Z,setMaxSize:y,hidePanel:E}=h;return this.resizeHandle={setSize:R=>v(R,this.isLatter),setRelativeSize:(R,A)=>f(R,A,this.isLatter),getSize:()=>W(this.isLatter),getRelativeSize:()=>N(this.isLatter),setMaxSize:R=>y(R,this.isLatter),lockSize:R=>Z(R,this.isLatter),hidePanel:R=>E(R)},this.listenCurrentChange()}registerContainer(h,v){var f;if(this.containersMap.has(h))return;const W=new g.DisposableCollection,N=v.options||{containerId:h};v.options=N;const Z=new g.Emitter;this.containersMap.set(h,{fireChange:E=>Z.fire(E),onChange:Z.event,views:v.views,options:o.observable.object(N,void 0,{deep:!1})}),W.push({dispose:()=>{this.containersMap.delete(h),this.state.delete(h)}}),this.updatePanelVisibility(this.containersMap.size>0);let y=this.sortedContainers.findIndex(E=>{var R,A;return(((R=E.options)===null||R===void 0?void 0:R.priority)||1)<=(((A=v.options)===null||A===void 0?void 0:A.priority)||1)});y===-1&&(y=this.sortedContainers.length),this.sortedContainers.splice(y,0,v);for(let E=y;E<this.sortedContainers.length;E++){const A=(f=this.sortedContainers[E].options)===null||f===void 0?void 0:f.containerId;if(A){const w=this.storedState[A]||this.getContainerState(A)||{};(0,o.runInAction)(()=>{this.state.set(A,{hidden:w.hidden,priority:E})})}}W.push(this.registerSideEffects(v)),this.eventBus.fire(new m.TabBarRegistrationEvent({tabBarId:h})),h===this.currentContainerId&&this.handleChange(h,""),this.viewContextKeyRegistry.registerContextKeyService(h,this.contextKeyService.createScoped()).createKey("view",h),this.isEmptyTabbar&&(this.isEmptyTabbar=!1),this.disposableMap.set(h,W),this.onDidRegisterContainerEmitter.fire(h)}registerSideEffects(h){var v;const f=new g.DisposableCollection;!((v=h.options)===null||v===void 0)&&v.hideTab||(f.push(this.registerHideMenu(h)),f.push(this.registerMoreMenu(h))),f.push(this.registerActivateKeyBinding(h,h.options.fromExtension));const W=this.contextKeyService.createKey(`workbench.${s[this.location]||"view"}.${h.options.containerId}`,!0);return f.push({dispose:()=>{W.set(!1)}}),f.push(this.progressService.registerProgressIndicator(h.options.containerId)),f.push(this.registerContainerPanelRelatedCommand(h)),f}registerContainerPanelRelatedCommand(h){var v,f,W,N,Z;const y=new g.DisposableCollection,E=(v=h.options)===null||v===void 0?void 0:v.containerId;return y.push(this.commandRegistry.registerCommand({id:"container.show."+E,label:(0,g.formatLocalize)("view.command.show",(W=(f=h.options)===null||f===void 0?void 0:f.title)!==null&&W!==void 0?W:E),labelLocalized:(0,g.createFormatLocalizedStr)("view.command.show",(Z=(N=h.options)===null||N===void 0?void 0:N.title)!==null&&Z!==void 0?Z:E),category:"View"},{execute:()=>{this.updateCurrentContainerId(E)}})),y.push(this.commandRegistry.registerCommand({id:"container.hide."+E},{execute:()=>{this.updateCurrentContainerId("")}})),y.push(this.commandRegistry.registerCommand({id:"container.toggle."+E},{execute:()=>{this.currentContainerId===E?this.updateCurrentContainerId(""):this.updateCurrentContainerId(E)}})),y}registerHideMenu(h){const v=new g.DisposableCollection,f=h.options.containerId;return v.push(this.menuRegistry.registerMenuItem(this.menuId,{command:{id:this.registerVisibleToggleCommand(f,v),label:h.options.title||f},group:"1_widgets"})),v}registerMoreMenu(h){const v=new g.DisposableCollection,f=h.options.containerId,W=this.scopedCtxKeyService.createKey(this.getTabInMoreCtxKey(f),!1);return this.tabInMoreKeyMap.set(f,W),v.push({dispose:()=>this.tabInMoreKeyMap.delete(f)}),v.push(this.menuRegistry.registerMenuItem(this.moreMenuId,{command:{id:this.registerMoreToggleCommand(h,v),label:h.options.title||f},group:"inline",when:`${this.getTabInMoreCtxKey(f)} == true`,toggledWhen:`${(0,g.getTabbarCtxKey)(this.location)} == ${f}`,iconClass:h.options.iconClass})),v}disposeContainer(h){var v;const f=this.disposableMap.get(h);f&&f.dispose(),this.currentContainerId===h&&this.updateCurrentContainerId(((v=this.visibleContainers[0].options)===null||v===void 0?void 0:v.containerId)||"")}updateTitle(h,v){const f=this.getContainer(h);f&&(f.options.title=v)}getContainer(h){return this.containersMap.get(h)}getTitleToolbarMenu(h){const v=this._menuMap.get(h);if(v)return v;const f=this.menuService.createMenu(p.MenuId.ViewTitle,this.viewContextKeyRegistry.getContextKeyService(h));this._menuMap.set(h,f);const W=this.disposableMap.get(h),N=[f,(0,g.toDisposable)(()=>{this._menuMap.delete(h)})];return W?W.pushAll(N):this.addDispose(N),f}doExpand(h){if(this.resizeHandle){const{setRelativeSize:v}=this.resizeHandle;h?this.isLatter?v(0,1):v(1,0):v(2,1)}}get isExpanded(){if(this.resizeHandle){const{getRelativeSize:h}=this.resizeHandle,v=h().join(",");return this.isLatter?v==="0,1":v==="1,0"}return!1}handleTabClick(h,v){const f=h.currentTarget.id;f===this.currentContainerId&&!v?this.updateCurrentContainerId(""):this.updateCurrentContainerId(f)}handleContextMenu(h,v){h.preventDefault(),h.stopPropagation();const f=this.menuService.createMenu(this.menuId,v?this.scopedCtxKeyService:this.contextKeyService),W=(0,p.generateCtxMenu)({menus:f,args:[{containerId:v}]});this.contextMenuRenderer.show({menuNodes:W[1],anchor:{x:h.clientX,y:h.clientY}})}showMoreMenu(h,v){const f=this.menuService.createMenu(this.moreMenuId,this.scopedCtxKeyService),W=(0,p.generateCtxMenu)({menus:f,args:[{lastContainerId:v}]});this.contextMenuRenderer.show({menuNodes:W[1],anchor:{x:h.clientX,y:h.clientY}})}handleDragStart(h,v){h.dataTransfer.setData("containerId",v)}handleDrop(h,v){if(h.dataTransfer.getData("containerId")){const f=h.dataTransfer.getData("containerId"),W=this.visibleContainers,N=W.findIndex(y=>f===y.options.containerId),Z=W.findIndex(y=>v===y.options.containerId);this.doInsertTab(W,N,Z),this.storeState()}}restoreState(){this.storedState=this.layoutState.getState(G.LAYOUT_STATE.getTabbarSpace(this.location),{});for(const h of this.state.keys())this.storedState[h]&&this.state.set(h,this.storedState[h]);this.visibleContainers.forEach(h=>{m.SUPPORT_ACCORDION_LOCATION.has(this.location)&&this.tryRestoreAccordionSize(h.options.containerId)})}doInsertTab(h,v,f){const W=this.getContainerState(h[f].options.containerId).priority,N=(y,E)=>{const R=this.getContainerState(h[y].options.containerId),A=this.getContainerState(h[E].options.containerId);R.priority=A.priority};let Z;if(v>f)for(Z=f;Z<v;Z++)N(Z,Z+1);else for(Z=f;Z>v;Z--)N(Z,Z-1);this.getContainerState(h[Z].options.containerId).priority=W}storeState(){const h={};this.state.forEach((v,f)=>{h[f]=v}),this.layoutState.setState(G.LAYOUT_STATE.getTabbarSpace(this.location),h)}registerActivateKeyBinding(h,v){const f=h.options,W=f.containerId,N=v?`workbench.view.extension.${W}`:`workbench.view.${W}`,Z=new g.DisposableCollection;return Z.push(this.commandRegistry.registerCommand({id:N},{execute:({forceShow:y}={})=>{this.location==="bottom"&&!y?this.updateCurrentContainerId(this.currentContainerId===W?"":W):this.updateCurrentContainerId(W)}})),f.activateKeyBinding&&Z.push(this.keybindingRegistry.registerKeybinding({command:N,keybinding:f.activateKeyBinding})),Z}registerGlobalToggleCommand(){const h=`activity.bar.toggle.${this.location}`;return this.commandRegistry.registerCommand({id:h},{execute:({containerId:v})=>{this.doToggleTab(v)},isEnabled:()=>this.visibleContainers.length>1}),h}registerVisibleToggleCommand(h,v){const f=`activity.bar.toggle.${h}`;return v.push(this.commandRegistry.registerCommand({id:f},{execute:({forceShow:W}={})=>{this.doToggleTab(h,W)},isToggled:()=>!this.getContainerState(h).hidden,isEnabled:()=>this.getContainerState(h).hidden||this.visibleContainers.length!==1})),f}registerMoreToggleCommand(h,v){const{options:f}=h,{containerId:W}=f,N=`activity.bar.activate.more.${W}`;return v.push(this.commandRegistry.registerCommand({id:N},{execute:({lastContainerId:Z})=>{if(this.updateCurrentContainerId(W),Z){const y=this.getContainerState(W),E=this.getContainerState(Z),R=y.priority;y.priority=E.priority,E.priority=R,this.storeState()}}})),N}getTabInMoreCtxKey(h){return`${h}.isInMore`}registerPanelMenus(){this.menuRegistry.registerMenuItems((0,p.getTabbarCommonMenuId)("bottom"),[{command:d.EXPAND_BOTTOM_PANEL.id,group:"navigation",when:"!bottomFullExpanded",order:1},{command:d.RETRACT_BOTTOM_PANEL.id,group:"navigation",when:"bottomFullExpanded",order:1},{command:d.TOGGLE_BOTTOM_PANEL_COMMAND.id,group:"navigation",order:2}]),this.commonTitleMenu=this.ctxMenuService.createMenu({id:"tabbar/bottom/common"})}doToggleTab(h,v){const f=this.getContainerState(h);v===void 0?f.hidden=!f.hidden:f.hidden=!v,f.hidden&&this.currentContainerId===h&&this.updateCurrentContainerId(this.visibleContainers[0].options.containerId),this.storeState()}shouldExpand(h){const v=this.getContainer(h);return v&&v.options&&v.options.expanded}onResize(h){if(h.payload.slotLocation===this.location){if(!this.currentContainerId||!this.resizeHandle)return;const v=this.resizeHandle.getSize();v!==this.barSize&&!this.shouldExpand(this.currentContainerId)&&(this.prevSize=v,this.onSizeChangeEmitter.fire({size:v}))}}listenCurrentChange(){return(0,o.reaction)(()=>this.currentContainerId,(h,v)=>{this.previousContainerId=v===l?"":v,this.handleChange(h,v)})}handleChange(h,v){var f;if(!this.resizeHandle)return;const{getSize:W,setSize:N,lockSize:Z}=this.resizeHandle;this.onCurrentChangeEmitter.fire({previousId:v,currentId:h});const y=this.shouldExpand(h);if(this.shouldExpand(this.previousContainerId)||y)this.handleFullExpanded(h,y);else if(h){v&&h!==v&&(this.prevSize=W());const E=this.getContainer(h);N(this.prevSize||this.panelSize+this.barSize),Z(!!(!((f=E?.options)===null||f===void 0)&&f.noResize)),this.activatedKey.set(h)}else N(this.barSize),Z(!0)}tryRestoreAccordionSize(h){var v,f;if(this.accordionRestored.has(h))return;const W=this.containersMap.get(h);if((!W||!((v=W.options)===null||v===void 0)&&v.component)&&((f=W?.options)===null||f===void 0?void 0:f.containerId)!==u.SCM_CONTAINER_ID)return;this.layoutService.getAccordionService(h).restoreState(),this.accordionRestored.add(h)}handleFullExpanded(h,v){if(!this.resizeHandle)return;const{setRelativeSize:f,setSize:W}=this.resizeHandle;h?v?this.isLatter?f(0,1):f(1,0):W(this.prevSize||this.panelSize+this.barSize):W(this.barSize)}};n.__decorate([o.observable,n.__metadata("design:type",String)],r.prototype,"currentContainerId",void 0),n.__decorate([o.observable,n.__metadata("design:type",Map)],r.prototype,"state",void 0),n.__decorate([(0,I.Autowired)(p.AbstractMenuService),n.__metadata("design:type",p.AbstractMenuService)],r.prototype,"menuService",void 0),n.__decorate([(0,I.Autowired)(p.AbstractContextMenuService),n.__metadata("design:type",p.AbstractContextMenuService)],r.prototype,"ctxMenuService",void 0),n.__decorate([(0,I.Autowired)(p.IMenuRegistry),n.__metadata("design:type",p.IMenuRegistry)],r.prototype,"menuRegistry",void 0),n.__decorate([(0,I.Autowired)(g.CommandRegistry),n.__metadata("design:type",Object)],r.prototype,"commandRegistry",void 0),n.__decorate([(0,I.Autowired)(p.ICtxMenuRenderer),n.__metadata("design:type",p.ICtxMenuRenderer)],r.prototype,"contextMenuRenderer",void 0),n.__decorate([(0,I.Autowired)(g.KeybindingRegistry),n.__metadata("design:type",Object)],r.prototype,"keybindingRegistry",void 0),n.__decorate([(0,I.Autowired)(),n.__metadata("design:type",g.ViewContextKeyRegistry)],r.prototype,"viewContextKeyRegistry",void 0),n.__decorate([(0,I.Autowired)(g.IContextKeyService),n.__metadata("design:type",Object)],r.prototype,"contextKeyService",void 0),n.__decorate([(0,I.Autowired)(m.IMainLayoutService),n.__metadata("design:type",Object)],r.prototype,"layoutService",void 0),n.__decorate([(0,I.Autowired)(),n.__metadata("design:type",G.LayoutState)],r.prototype,"layoutState",void 0),n.__decorate([(0,I.Autowired)(b.IProgressService),n.__metadata("design:type",Object)],r.prototype,"progressService",void 0),n.__decorate([o.action,n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[String]),n.__metadata("design:returntype",void 0)],r.prototype,"updateCurrentContainerId",null),n.__decorate([o.action,n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[String,String]),n.__metadata("design:returntype",void 0)],r.prototype,"updateBadge",null),n.__decorate([o.action,n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[String]),n.__metadata("design:returntype",void 0)],r.prototype,"hideContainer",null),n.__decorate([o.action,n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[String]),n.__metadata("design:returntype",void 0)],r.prototype,"showContainer",null),n.__decorate([o.action,n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[String,Object]),n.__metadata("design:returntype",void 0)],r.prototype,"registerContainer",null),n.__decorate([o.action,n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[String]),n.__metadata("design:returntype",void 0)],r.prototype,"disposeContainer",null),n.__decorate([o.action,n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[String,String]),n.__metadata("design:returntype",void 0)],r.prototype,"updateTitle",null),n.__decorate([o.action.bound,n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[Object,Boolean]),n.__metadata("design:returntype",void 0)],r.prototype,"handleTabClick",null),n.__decorate([o.action.bound,n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[Object,String]),n.__metadata("design:returntype",void 0)],r.prototype,"handleContextMenu",null),n.__decorate([o.action,n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[]),n.__metadata("design:returntype",void 0)],r.prototype,"restoreState",null),n.__decorate([o.action,n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[String,Boolean]),n.__metadata("design:returntype",void 0)],r.prototype,"doToggleTab",null),n.__decorate([(0,g.OnEvent)(g.ResizeEvent),n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[g.ResizeEvent]),n.__metadata("design:returntype",void 0)],r.prototype,"onResize",null),r=n.__decorate([(0,I.Injectable)({multiple:!0}),n.__metadata("design:paramtypes",[String])],r),e.TabbarService=r},58296:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ViewsRegistry=e.ViewsController=e.ViewContentGroups=void 0;const n=t(85608),a=t(76003),o=t(41869),I=t(43718),g=t(17793);var u;(function(m){m.Open="2_open",m.Debug="4_debug",m.SCM="5_scm",m.More="9_more"})(u=e.ViewContentGroups||(e.ViewContentGroups={}));function G(m,d){var s,l,r,c;const h=(s=m.group)!==null&&s!==void 0?s:u.More,v=(l=d.group)!==null&&l!==void 0?l:u.More;return h!==v?h.localeCompare(v):((r=m.order)!==null&&r!==void 0?r:5)-((c=d.order)!==null&&c!==void 0?c:5)}let p=class{get contents(){const d=this.items.filter(s=>s.visible);return d.length===0&&this.defaultItem?[this.defaultItem.descriptor]:d.map(s=>s.descriptor)}constructor(d){this.id=d,this._onDidChange=new o.Emitter,this.onDidChange=this._onDidChange.event,this.items=[],this.disposables=[],this.contextKeyService.onDidChangeContext(this.onDidChangeContext,this,this.disposables),o.Event.filter(this.viewsRegistry.onDidChangeViewWelcomeContent,s=>s===this.id)(this.onDidChangeViewWelcomeContent,this,this.disposables),this.onDidChangeViewWelcomeContent()}onDidChangeViewWelcomeContent(){const d=this.viewsRegistry.getViewWelcomeContent(this.id);this.items=[];for(const s of d)if(s.when==="default")this.defaultItem={descriptor:s,visible:!0};else{const l=s.when?this.contextKeyService.match(s.when):!0;this.items.push({descriptor:s,visible:l})}this._onDidChange.fire()}onDidChangeContext(){let d=!1;for(const s of this.items){if(!s.descriptor.when||s.descriptor.when==="default")continue;const l=this.contextKeyService.match(s.descriptor.when);s.visible!==l&&(s.visible=l,d=!0)}d&&this._onDidChange.fire()}dispose(){this.disposables.forEach(d=>d.dispose()),this.disposables=[]}};n.__decorate([(0,a.Autowired)(o.IContextKeyService),n.__metadata("design:type",Object)],p.prototype,"contextKeyService",void 0),n.__decorate([(0,a.Autowired)(g.IViewsRegistry),n.__metadata("design:type",Object)],p.prototype,"viewsRegistry",void 0),p=n.__decorate([(0,a.Injectable)({multiple:!0}),n.__metadata("design:paramtypes",[String])],p),e.ViewsController=p;let b=class{constructor(){this.viewWelcomeContent=new I.SetMap,this._onDidChangeViewWelcomeContent=new o.Emitter,this.onDidChangeViewWelcomeContent=this._onDidChangeViewWelcomeContent.event}registerViewWelcomeContent(d,s){return this.viewWelcomeContent.add(d,s),this._onDidChangeViewWelcomeContent.fire(d),{dispose:()=>{this.viewWelcomeContent.delete(d,s),this._onDidChangeViewWelcomeContent.fire(d)}}}registerViewWelcomeContent2(d,s){const l=new Map;for(const[r,c]of s)this.viewWelcomeContent.add(d,c),l.set(r,(0,o.toDisposable)(()=>{this.viewWelcomeContent.delete(d,c),this._onDidChangeViewWelcomeContent.fire(d)}));return this._onDidChangeViewWelcomeContent.fire(d),l}getViewWelcomeContent(d){const s=[];return this.viewWelcomeContent.forEach(d,l=>s.push(l)),s.sort(G),s}};b=n.__decorate([(0,a.Injectable)()],b),e.ViewsRegistry=b},24429:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.WelcomeView=e.renderLabelWithIcons=e.CSSIcon=void 0;const n=t(85608),a=n.__importDefault(t(53373)),o=n.__importDefault(t(14041)),I=t(48412),g=t(41869),u=t(43718),G=n.__importDefault(t(81388)),p=t(58296);var b;(function(r){r.iconNameSegment="[A-Za-z0-9]+",r.iconNameExpression="[A-Za-z0-9\\-]+",r.iconModifierExpression="~[A-Za-z]+"})(b=e.CSSIcon||(e.CSSIcon={}));const m=new RegExp(`(\\\\)?\\$\\((${b.iconNameExpression}(?:${b.iconModifierExpression})?)\\)`,"g");function d(r){const c=new Array;let h,v=0,f=0;for(;(h=m.exec(r))!==null;){f=h.index||0,c.push(r.substring(v,f)),v=(h.index||0)+h[0].length;const[,W,N]=h;c.push(W?`$(${N})`:o.default.createElement("span",{className:(0,g.getExternalIcon)(N)}))}return v<r.length&&c.push(r.substring(v)),c}e.renderLabelWithIcons=d;const s=r=>{const{contents:c}=r,[h,v]=o.default.useState(c.map(N=>N.precondition?!1:null)),f=(0,g.useInjectable)(g.IContextKeyService),W=(0,g.useInjectable)(g.IOpenerService);return o.default.useEffect(()=>{const N=c.map(y=>{if(y.precondition){const E=new Set;return y.precondition.keys().forEach(R=>E.add(R)),E}return null}),Z=f.onDidChangeContext(y=>{N.forEach((E,R)=>{E&&y.payload.affectsSome(E)&&v(h.map((A,w)=>w===R?f.match(c[R].precondition):A))})});return()=>Z.dispose()},[c]),c.length===0?null:o.default.createElement(o.default.Fragment,null,c.map(({content:N,precondition:Z},y)=>{const E=N.split(`
|
|
27879
27879
|
`),R=[];for(let A of E){if(A=A.trim(),!A)continue;const w=(0,u.parseLinkedText)(A);if(w.nodes.length===1&&typeof w.nodes[0]!="string"){const F=w.nodes[0];R.push(o.default.createElement("div",{key:R.length,title:F.title,className:"button-container"},o.default.createElement(I.Button,{disabled:h[y]===!1,onClick:()=>W.open(F.href)},d(F.label))))}else{const F=w.nodes.map((V,Y)=>typeof V=="string"?V:o.default.createElement("a",{key:Y,className:(0,a.default)({disabled:V.href.startsWith("command:")&&h[y]===!1}),title:V.title,onClick:()=>W.open(V.href)},V.label));R.push(o.default.createElement("p",{key:R.length},F))}}return o.default.createElement(o.default.Fragment,{key:y},R)}))};function l(r,c){return r.viewId===c.viewId}e.WelcomeView=o.default.memo(r=>{const c=(0,g.useInjectable)(p.ViewsController,[r.viewId]),[h,v]=o.default.useState(c.contents);return o.default.useEffect(()=>{c.onDidChange(()=>{const f=c.contents;v(f)})},[]),h.length?o.default.createElement("div",{className:G.default.welcome},o.default.createElement(s,{contents:h})):null},l)},17793:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),t(85608).__exportStar(t(72260),e)},72260:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SUPPORT_ACCORDION_LOCATION=e.ViewCollapseChangedEvent=e.IViewsRegistry=e.TabBarRegistrationEvent=e.MainLayoutContribution=e.IMainLayoutService=void 0;const n=t(41869);e.IMainLayoutService=Symbol("IMainLayoutService"),e.MainLayoutContribution=Symbol("MainLayoutContribution");class a extends n.BasicEvent{}e.TabBarRegistrationEvent=a,e.IViewsRegistry=Symbol("IViewsRegistry");class o extends n.BasicEvent{}e.ViewCollapseChangedEvent=o,e.SUPPORT_ACCORDION_LOCATION=new Set([n.SlotLocation.left,n.SlotLocation.right])},63067:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),t(85608).__exportStar(t(17793),e)},93835:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.EmbeddedMarkdownEditorContribution=e.MARKDOWN_EDITOR_COMPONENT_ID=void 0;const n=t(85608),a=t(76003),o=t(41869),I=t(43718),g=t(57517),u=t(21066),G=t(81001);e.MARKDOWN_EDITOR_COMPONENT_ID="MARKDOWN_EDITOR_COMPONENT_ID";let p=class{registerEditorComponent(m){m.registerEditorComponent({uid:e.MARKDOWN_EDITOR_COMPONENT_ID,component:G.MarkdownEditorComponent,scheme:I.Schemes.file}),m.registerEditorComponentResolver(I.Schemes.file,(d,s)=>{d.uri.path.ext===".md"&&s.push({type:g.EditorOpenType.component,componentId:e.MARKDOWN_EDITOR_COMPONENT_ID,title:(0,I.localize)("editorOpenType.preview"),weight:this.preferenceService.get("application.preferMarkdownPreview")?10:-1})})}};n.__decorate([(0,a.Autowired)(u.IMarkdownService),n.__metadata("design:type",Object)],p.prototype,"markdownService",void 0),n.__decorate([(0,a.Autowired)(o.PreferenceService),n.__metadata("design:type",Object)],p.prototype,"preferenceService",void 0),p=n.__decorate([(0,I.Domain)(g.BrowserEditorContribution)],p),e.EmbeddedMarkdownEditorContribution=p},81001:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.MarkdownEditorComponent=void 0;const a=t(85608).__importDefault(t(14041)),o=t(41869),I=t(57517),g=t(21066),u=({resource:G})=>{let p=null;const b=(0,o.useInjectable)(g.IMarkdownService),m=(0,o.useInjectable)(I.IEditorDocumentModelService);return a.default.useEffect(()=>{if(p){const d=new o.Disposable,s=new o.CancellationTokenSource;return d.addDispose({dispose:()=>{s.cancel()}}),m.createModelReference(G.uri,"markdown-preview").then(l=>{if(s.token.isCancellationRequested){l&&l.dispose();return}const r=new o.Emitter;d.addDispose(r),d.addDispose(l.instance.getMonacoModel().onDidChangeContent(c=>{r.fire(l.instance.getText())})),p&&b.previewMarkdownInContainer(l.instance.getText(),p,s.token,void 0,r.event).then(c=>{d.addDispose(c)}),d.addDispose(l)}),()=>{d.dispose()}}}),a.default.createElement("div",{ref:d=>{p=d},style:{height:"100%"}})};e.MarkdownEditorComponent=u},31101:(L,e,t)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.MarkdownModule=e.Markdown=void 0;const n=t(85608),a=t(76003),o=t(41869),I=t(21066),g=t(89637);var u=t(6001);Object.defineProperty(e,"Markdown",{enumerable:!0,get:function(){return u.Markdown}});let G=class extends o.BrowserModule{constructor(){super(...arguments),this.providers=[{token:I.IMarkdownService,useClass:g.MarkdownServiceImpl}]}};G=n.__decorate([(0,a.Injectable)()],G),e.MarkdownModule=G},86422:(L,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.markdownCss=void 0,e.markdownCss=`
|
|
27880
27880
|
/*---------------------------------------------------------------------------------------------
|
|
27881
27881
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|