@opensumi/cli-engine 3.9.1-next-1748425167.0 → 3.9.1-next-1748435481.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 +2 -2
- package/package.json +10 -10
package/lib/browser/browser.js
CHANGED
|
@@ -31964,7 +31964,7 @@ a {
|
|
|
31964
31964
|
}
|
|
31965
31965
|
`},73136:(x,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getMentionBoxStyle=void 0;const e=20,n=({maxRows:r=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:`${e}px`,minHeight:`${e*o}px`,maxHeight:`${e*r}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)"}}}});t.getMentionBoxStyle=n},5167:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.COMMENT_TREE_NODE_HEIGHT=t.CommentNodeRendered=void 0;const n=e(85608),r=n.__importDefault(e(53373)),o=n.__importStar(e(14041)),l=e(41869),_=e(53711),v=n.__importDefault(e(65887)),m=({item:p,defaultLeftPadding:s=8,leftPadding:g=8,decorations:a,onClick:h,onTwistierClick:u})=>{const c=(0,l.useDesignStyles)(v.default.expansion_toggle,"expansion_toggle"),E=(0,o.useCallback)(T=>{p.onSelect?p.onSelect(p):h(T,p)},[h]),f=(0,o.useCallback)(T=>{u(T,p)},[u]),d=`${s+(p.depth||0)*(g||0)+(_.CommentContentNode.is(p)?16:_.CommentFileNode.is(p)?0:28)}px`,y={height:t.COMMENT_TREE_NODE_HEIGHT,lineHeight:`${t.COMMENT_TREE_NODE_HEIGHT}px`,paddingLeft:d},b=(0,o.useCallback)(T=>{if(_.CommentContentNode.is(T)||_.CommentFileNode.is(T))return o.default.createElement("div",{className:(0,r.default)(v.default.icon,T.icon),style:{height:t.COMMENT_TREE_NODE_HEIGHT,lineHeight:`${t.COMMENT_TREE_NODE_HEIGHT}px`}})},[]),A=(0,o.useCallback)(T=>_.CommentContentNode.is(T)?o.default.createElement("div",{className:(0,r.default)(v.default.segment,v.default.displayname)},T.renderedLabel?T.renderedLabel:o.default.createElement(o.default.Fragment,null,T.comment,o.default.createElement("span",{className:v.default.separator},"\xB7"),T.author.name)):o.default.createElement("div",{className:(0,r.default)(v.default.segment,v.default.displayname)},T.renderedLabel),[]),S=(0,o.useCallback)(T=>o.default.createElement("div",{className:(0,r.default)(v.default.segment_grow,v.default.description)},T.renderedDescription),[]),D=(0,o.useCallback)(T=>o.default.createElement("div",{onClick:f,className:(0,r.default)(v.default.segment,c,(0,l.getIcon)("arrow-right"),{[`${v.default.mod_collapsed}`]:!T.expanded})}),[f]),I=(0,o.useCallback)(T=>{if(_.CommentFileNode.is(T)||T?.isAllowToggle)return D(T)},[]),w=(0,o.useCallback)(()=>p.tooltip,[p]);return o.default.createElement("div",{key:p.id,onClick:E,title:w(),className:(0,r.default)(v.default.comment_node,a?a.classlist:null),style:y,"data-id":p.id},o.default.createElement("div",{className:v.default.content},I(p),b(p),o.default.createElement("div",{className:v.default.overflow_wrap},A(p),S(p))))};t.CommentNodeRendered=m,t.COMMENT_TREE_NODE_HEIGHT=22},47842:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CommentModelService=t.CommentTreeModel=void 0;const n=e(85608),r=e(76003),o=e(97267),l=e(41869),_=e(23418),v=e(69635),m=e(53711),p=n.__importDefault(e(65887));let s=class extends o.TreeModel{constructor(h){super(),this.init(h)}};t.CommentTreeModel=s,t.CommentTreeModel=s=n.__decorate([(0,r.Injectable)({multiple:!0}),n.__param(0,(0,r.Optional)()),n.__metadata("design:paramtypes",[m.CommentRoot])],s);let g=class extends l.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 l.Emitter,this.disposableCollection=new l.DisposableCollection,this.applyFocusedDecoration=(h,u=!0)=>{var c;if(h){for(const E of this._selectedNodes)this.selectedDecoration.removeTarget(E);this.focusedNode&&this.focusedDecoration.removeTarget(this.focusedNode),this.selectedDecoration.addTarget(h),this.focusedDecoration.addTarget(h),this._focusedNode=h,this._selectedNodes=[h],u&&((c=this.treeModel)===null||c===void 0||c.dispatchChange())}},this.removeFocusedDecoration=()=>{var h;this.focusedNode&&(this.focusedDecoration.removeTarget(this.focusedNode),(h=this.treeModel)===null||h===void 0||h.dispatchChange()),this._focusedNode=null},this.handleTreeBlur=()=>{this.removeFocusedDecoration()},this.handleTwistierClick=async(h,u)=>{(m.CommentFileNode.is(u)||u?.isAllowToggle)&&this.toggleDirectory(u)},this.handleItemClick=async(h,u)=>{this.applyFocusedDecoration(u),(m.CommentFileNode.is(u)||u?.isAllowToggle)&&this.toggleDirectory(u);let c,E;u instanceof m.CommentReplyNode||u instanceof m.CommentContentNode?(c=u.thread.uri,E=u.thread.range):c=u.resource,this.editorService.open(c,{range:E}).then(()=>{u.thread&&u.thread.show()})},this.toggleDirectory=h=>{h.expanded?this.commentTreeHandle.collapseNode(h):this.commentTreeHandle.expandNode(h)},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 h=await this.commentService.resolveChildren();if(!h)return;const u=h[0];u&&(this._treeModel=this.injector.get(s,[u]),await this._treeModel.ensureReady,this.initDecorations(u),this.disposables.push(l.Event.any(this.commentService.onThreadsCommentChange,this.commentService.onThreadsChanged,this.commentService.onThreadsCreated)(()=>{this.refresh()})),this.onDidUpdateTreeModelEmitter.fire(this._treeModel))}initDecorations(h){return this._decorations=new o.DecorationsManager(h),this._decorations.addDecoration(this.selectedDecoration),this._decorations.addDecoration(this.focusedDecoration),this._decorations}handleTreeHandler(h){this._commentTreeHandle=h}async refresh(){await this.whenReady,(0,l.runWhenIdle)(()=>{this.treeModel.root.refresh()})}async collapsedAll(){return await this.whenReady,this.treeModel.root.collapsedAll()}dispose(){this.disposableCollection.dispose()}};t.CommentModelService=g,n.__decorate([(0,r.Autowired)(v.ICommentsService),n.__metadata("design:type",Object)],g.prototype,"commentService",void 0),n.__decorate([(0,r.Autowired)(r.INJECTOR_TOKEN),n.__metadata("design:type",r.Injector)],g.prototype,"injector",void 0),n.__decorate([(0,r.Autowired)(_.WorkbenchEditorService),n.__metadata("design:type",_.WorkbenchEditorService)],g.prototype,"editorService",void 0),t.CommentModelService=g=n.__decorate([(0,r.Injectable)(),n.__metadata("design:paramtypes",[])],g)},53711:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CommentReplyNode=t.CommentContentNode=t.CommentFileNode=t.CommentRoot=void 0;const n=e(97267);class r extends n.CompositeTreeNode{static is(m){return!!m&&!m.parent}constructor(m){super(m,void 0)}get expanded(){return!0}}t.CommentRoot=r;class o extends n.CompositeTreeNode{static is(m){return n.CompositeTreeNode.is(m)&&"threads"in m}constructor(m,p,s="",g,a,h,u){super(m,u),this.threads=p,this.tooltip=g,this.icon=a,this.resource=h,this.isExpanded=!0,this._renderedLabel=this.resource.displayName,this._renderedDescription=s}set label(m){this._renderedLabel=m}set description(m){this._renderedDescription=m}get renderedLabel(){return this._renderedLabel}get renderedDescription(){return this._renderedDescription}set onSelect(m){this._onSelectHandler=m}get onSelect(){return this._onSelectHandler}}t.CommentFileNode=o;class l extends n.CompositeTreeNode{static is(m){return n.CompositeTreeNode.is(m)&&"author"in m}constructor(m,p,s,g="",a,h,u,c){super(m,c),this.thread=p,this.comment=s,this.icon=a,this.author=h,this.resource=u,this._renderedDescription=g,this.isExpanded=!0,this._isAllowToggle=!1}get isAllowToggle(){return this._isAllowToggle}setIsAllowToggle(m){this._isAllowToggle=m}set label(m){this._renderedLabel=m}set description(m){this._renderedDescription=m}get renderedLabel(){return this._renderedLabel}get renderedDescription(){return this._renderedDescription}set onSelect(m){this._onSelectHandler=m}get onSelect(){return this._onSelectHandler}}t.CommentContentNode=l;class _ extends n.TreeNode{constructor(m,p,s,g="",a,h,u){super(m,u),this.thread=p,this.icon=a,this.resource=h,this._renderedLabel=s,this._renderedDescription=g}set label(m){this._renderedLabel=m}set description(m){this._renderedDescription=m}get renderedLabel(){return this._renderedLabel}get renderedDescription(){return this._renderedDescription}set onSelect(m){this._onSelectHandler=m}get onSelect(){return this._onSelectHandler}}t.CommentReplyNode=_},69635:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CommentReactionClick=t.CommentPanelCollapse=t.SwitchCommandReaction=t.CloseThreadId=t.CollapseId=t.ICommentsService=t.CommentsContribution=t.ICommentsFeatureRegistry=t.CommentPanelId=t.CommentGutterType=t.CommentThreadCollapsibleState=t.CommentMode=void 0;const n=e(41869);var r;(function(m){m[m.Editor=0]="Editor",m[m.Preview=1]="Preview"})(r||(t.CommentMode=r={}));var o;(function(m){m[m.Collapsed=0]="Collapsed",m[m.Expanded=1]="Expanded"})(o||(t.CommentThreadCollapsibleState=o={}));var l;(function(m){m.Thread="thread",m.Empty="empty"})(l||(t.CommentGutterType=l={})),t.CommentPanelId="CommentPanel",t.ICommentsFeatureRegistry=Symbol("ICommentsFeatureRegistry"),t.CommentsContribution=Symbol("CommentsContribution"),t.ICommentsService=Symbol("ICommentsService"),t.CollapseId="comments.panel.action.collapse",t.CloseThreadId="comments.thread.action.close",t.SwitchCommandReaction="comments.comment.action.switchCommand";class _ extends n.BasicEvent{}t.CommentPanelCollapse=_;class v extends n.BasicEvent{}t.CommentReactionClick=v},86077:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),e(85608).__exportStar(e(69635),t)},79383:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Badge=void 0;const n=e(85608),r=n.__importDefault(e(53373)),o=n.__importDefault(e(14041));e(4418);const l=({className:_,children:v,...m})=>o.default.createElement("span",{className:(0,r.default)("kt-badge",_),...m},v);t.Badge=l},48412:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Button=void 0;const n=e(85608),r=n.__importDefault(e(53373)),o=n.__importDefault(e(14041)),l=e(99613),_=e(54713);e(71682);const v=()=>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 m(){}t.Button=o.default.memo(({children:p,loading:s,className:g,type:a="primary",htmlType:h,size:u,ghost:c=!1,onClick:E,disabled:f,block:d,iconClass:y,icon:b,more:A,moreIconClass:S,menu:D,moreVisible:I,placement:w,title:T,showLoadingIcon:R=!0,onVisibleChange:P,...O})=>{const M=(0,r.default)("kt-button",g,{[`kt-${a}-button-loading`]:s,[`ghost-${a}-button`]:c&&!s&&a!=="link",[`${a}-button`]:a,[`${u}-button-size`]:u,"ghost-button":c&&a!=="link","block-button":d}),k=(0,r.default)(g,{"kt-clickable-icon":!!E});if(a==="icon")return o.default.createElement(_.Icon,{tooltip:T,disabled:f,icon:b,onClick:s||f?m:E,className:k,iconClass:y,...O});const F=y?o.default.createElement(_.Icon,{iconClass:y,disabled:f}):null;return D?o.default.createElement(l.Dropdown,{visible:I,className:"kt-menu",overlay:D,trigger:["click"],onVisibleChange:P,placement:w},o.default.createElement("button",{...O,disabled:f,className:M,type:h,onClick:s||f?m:E},s&&a!=="link"&&R&&o.default.createElement(v,null),F&&F,p,A&&o.default.createElement(_.Icon,{iconClass:S||(0,_.getIcon)("down"),className:"kt-button-secondary-more"}))):o.default.createElement("button",{...O,disabled:f,className:M,type:h,onClick:s||f?m:E},s&&a!=="link"&&R&&o.default.createElement(v,null),F&&F,p)})},7273:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CheckBox=void 0;const n=e(85608),r=n.__importDefault(e(53373)),o=n.__importDefault(e(14041)),l=e(65973);e(6099);const _=()=>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"})),v=({insertClass:m,className:p,label:s,size:g="default",disabled:a,checked:h,wrapTabIndex:u,...c})=>{(0,l.warning)(!m,"`insertClass` was deprecated, please use `className` instead");const E=c;return E.checked=h??!1,o.default.createElement("label",{className:(0,r.default)("kt-checkbox",m,p,{"kt-checkbox-large":g==="large","kt-checkbox-disabled":a}),tabIndex:u},o.default.createElement("span",{className:"kt-checkbox-lump"},o.default.createElement("input",{type:"checkbox",disabled:a,...E}),o.default.createElement("span",{className:"kt-checkbox-icon"},o.default.createElement(_,null))),s||" ")};t.CheckBox=v,t.CheckBox.displayName="OpenSumiCheckBox"},58998:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ClickOutside=void 0;const r=e(85608).__importDefault(e(14041)),o=({mouseEvents:l=["click"],onOutsideClick:_,children:v,...m})=>{const p=r.default.useRef(null),s=r.default.useCallback(g=>{p.current&&g.target&&!p.current.contains(g.target)&&_(g)},[_]);return r.default.useEffect(()=>(l.forEach(g=>{window.addEventListener(g,s,!0)}),()=>{l.forEach(g=>{window.removeEventListener(g,s,!0)})}),[l]),r.default.createElement("div",{...m,ref:p},v)};t.ClickOutside=o},50570:(x,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MessageType=void 0;var e;(function(n){n[n.Error=0]="Error",n[n.Warning=1]="Warning",n[n.Info=2]="Info",n[n.Empty=3]="Empty"})(e||(t.MessageType=e={}))},89832:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Dialog=t.DialogContent=void 0;const n=e(85608),r=n.__importDefault(e(53373)),o=n.__importDefault(e(14041)),l=e(43718),_=e(48412),v=e(54713),m=e(79024);e(65773);const p=({onCancel:a,onOk:h,cancelText:u,okText:c})=>o.default.createElement(o.default.Fragment,null,o.default.createElement(_.Button,{onClick:a,type:"secondary"},u||(0,l.localize)("ButtonCancel")),o.default.createElement(_.Button,{onClick:h},c||(0,l.localize)("ButtonOK"))),s=({onClose:a,closable:h,type:u="confirm",messageType:c=l.MessageType.Info,icon:E,message:f,buttons:d,title:y,onOk:b,onCancel:A,okText:S,cancelText:D})=>{const{getIcon:I}=o.default.useContext(v.IconContext);return o.default.createElement(o.default.Fragment,null,o.default.createElement("div",{className:"kt-dialog-content"},E&&o.default.createElement("div",{style:{color:E.color},className:(0,r.default)("kt-dialog-icon",(0,v.getIcon)(E.className)||I(E.className))}),o.default.createElement("div",{className:"kt-dialog-content_area"},o.default.createElement("div",{className:"kt-dialog-content_title"},y),f&&o.default.createElement("span",{className:"kt-dialog-message"},f)),h&&u!=="basic"&&o.default.createElement("button",{className:(0,r.default)("kt-dialog-closex",(0,v.getIcon)("close")),onClick:a})),c!==l.MessageType.Empty&&u!=="basic"&&o.default.createElement("div",{className:"kt-dialog-buttonWrap"},u==="confirm"?d||o.default.createElement(p,{onCancel:A,onOk:b,okText:S,cancelText:D}):o.default.createElement(_.Button,{onClick:a},"OK")))};t.DialogContent=s;const g=({visible:a,onClose:h,closable:u,afterClose:c,messageType:E,icon:f,message:d,detail:y,buttons:b,type:A="confirm",title:S,onOk:D,onCancel:I,okText:w,cancelText:T,getContainer:R,keyboard:P,...O})=>o.default.createElement(m.Overlay,{visible:a,onClose:h,title:A==="basic"?S:null,closable:A==="basic",getContainer:R,keyboard:P,footer:A==="basic"?b||o.default.createElement(p,{onCancel:I,onOk:D,okText:w,cancelText:T}):void 0,afterClose:c,...O},o.default.createElement(t.DialogContent,{title:d,message:y,buttons:b,visible:a,icon:f,...O}));t.Dialog=g},99665:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=e(85608),r=n.__importDefault(e(62596)),o=n.__importDefault(e(53373)),l=n.__importStar(e(14041)),_=e(48412),v=n.__importDefault(e(35060)),m=p=>{var s;const{prefixCls:g,type:a="primary",size:h="default",danger:u,disabled:c,loading:E,onClick:f,htmlType:d,children:y,className:b,overlay:A,trigger:S,align:D,visible:I,onVisibleChange:w,placement:T,getPopupContainer:R,href:P,icon:O=l.createElement(r.default,null),title:M,buttonsRender:k=H=>H,mouseEnterDelay:F,mouseLeaveDelay:L,overlayClassName:B,overlayStyle:U,...W}=p,j=g||"kt-dropdown-button",Q={align:D,overlay:A,disabled:c,trigger:c?[]:S,getPopupContainer:R,mouseEnterDelay:F,mouseLeaveDelay:L,overlayClassName:B,overlayStyle:U};Q.placement=(s=p?.placement)!==null&&s!==void 0?s:"bottomRight";const G=l.createElement(_.Button,{size:h,type:a,disabled:c,loading:E,onClick:f,htmlType:d,title:M},y),Z=l.createElement(_.Button,{size:h,type:a},O??l.createElement(r.default,null)),[$,V]=k([G,Z]);return l.createElement("div",{...W,className:(0,o.default)(j,b)},$,l.createElement(v.default,{...Q},V))};t.default=m},35060:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=e(85608),r=n.__importDefault(e(64797)),o=n.__importDefault(e(53373)),l=n.__importDefault(e(5147)),_=n.__importDefault(e(14041)),v=e(43953),m=e(65973),p=(0,v.tuple)("topLeft","topCenter","topRight","bottomLeft","bottomCenter","bottomRight");class s extends _.default.Component{constructor(){super(...arguments),this.renderOverlay=a=>{const{overlay:h}=this.props;let u;typeof h=="function"?u=h():u=h,u=_.default.Children.only(u);const c=u.props;(0,m.warning)(!c.mode||c.mode==="vertical",`[Dropdown] mode="${c.mode}" is not supported for Dropdown's Menu.`);const{selectable:E=!1,focusable:f=!0}=c,d=_.default.createElement("span",{className:`${a}-menu-submenu-arrow`},_.default.createElement(r.default,{className:`${a}-menu-submenu-arrow-icon`}));return typeof u.type=="string"?h:_.default.cloneElement(u,{mode:"vertical",selectable:E,focusable:f,expandIcon:d})},this.renderDropDown=()=>{const{prefixCls:a,children:h,trigger:u,disabled:c,getPopupContainer:E}=this.props,f=a||"kt-dropdown",d=_.default.Children.only(h),y=_.default.cloneElement(d,{className:(0,o.default)(d.props.className,`${f}-trigger`),disabled:c}),b=c?[]:u;let A;return b&&b.indexOf("contextMenu")!==-1&&(A=!0),_.default.createElement(l.default,{alignPoint:A,...this.props,prefixCls:f,getPopupContainer:E,transitionName:this.getTransitionName(),trigger:b,overlay:()=>this.renderOverlay(f)},y)}}getTransitionName(){const{placement:a="",transitionName:h}=this.props;return h!==void 0?h:a.indexOf("top")>=0?"slide-down":"slide-up"}render(){return this.renderDropDown()}}s.defaultProps={mouseEnterDelay:.15,mouseLeaveDelay:.1,placement:"bottomLeft"},t.default=s},99613:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DropdownButton=t.Dropdown=void 0;const n=e(85608),r=n.__importDefault(e(35060));t.Dropdown=r.default;const o=n.__importDefault(e(99665));t.DropdownButton=o.default,e(34643)},80564:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Icon=t._InternalIcon=t.IconContext=void 0,t.IconContextProvider=v;const n=e(85608),r=n.__importDefault(e(53373)),o=n.__importDefault(e(14041)),l=e(12122),_=e(76577);e(1914),t.IconContext=o.default.createContext({getIcon:(p,s)=>p});function v(p){return o.default.createElement(t.IconContext.Provider,{value:p.value},o.default.createElement(t.IconContext.Consumer,null,s=>p.value===s?p.children:null))}const m=function(p,s){const{size:g="small",loading:a,icon:h,iconClass:u,className:c,tooltip:E,rotate:f,anim:d,fill:y,disabled:b,onClick:A,children:S,resourceOptions:D,animate:I,style:w={},...T}=p,R={rotate:f,anim:d,fill:y};let P;if(h)if(l.defaultIconMap[h])P=(0,_.getIcon)(h,R);else{const{getIcon:O,getResourceIcon:M}=o.default.useContext(t.IconContext);D&&M?P=M(h,D):P=O(h,R)}else P=u;return I&&I==="spin"&&(w.animation="kt-icon-spin 1.5s steps(30) infinite"),o.default.createElement("span",{...T,title:E,onClick:A,ref:s,className:(0,r.default)("kt-icon",P,c,{"kt-icon-loading":a,"kt-icon-disabled":!!b,[`kt-icon-${g}`]:!!g,"kt-icon-clickable":!!A,"kt-icon-resource":!!D,expanded:!!D&&D.isOpenedDirectory}),style:w},S)};t._InternalIcon=o.default.memo(o.default.forwardRef(m)),t.Icon=o.default.memo(o.default.forwardRef(m))},10391:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createFromIconfontCN=g;const n=e(85608),r=n.__importDefault(e(53373)),o=n.__importDefault(e(14041)),l=e(80564),_=e(76577),v=new Set;function m(a){return!!(typeof a=="string"&&a.length&&!v.has(a))}function p(a,h=0){const u=a[h];if(m(u)){const c=document.createElement("script");c.setAttribute("src",u),c.setAttribute("data-namespace",u),a.length>h+1&&(c.onload=()=>{p(a,h+1)},c.onerror=()=>{p(a,h+1)}),v.add(u),document.body.appendChild(c)}}const s={width:"1em",height:"1em",fill:"currentColor"};function g(a={}){const{scriptUrl:h,extraCommonProps:u={}}=a;h&&typeof document<"u"&&typeof window<"u"&&typeof document.createElement=="function"&&(Array.isArray(h)?p(h.reverse()):p([h]));const c=o.default.forwardRef((E,f)=>{const{icon:d,children:y,rotate:b,anim:A,fill:S,className:D="",...I}=E,w={rotate:b,anim:A,fill:S};let T=null;d&&(T=o.default.createElement("svg",{...s,focusable:"false"},o.default.createElement("use",{xlinkHref:`#${d}`}))),y&&(T=y);const R=(0,_.getIconShapeClxList)(w);return o.default.createElement(l._InternalIcon,{...u,...I,className:(0,r.default)(D,R),ref:f},T)});return c.displayName="Iconfont",c}},12122:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.iconManager=t.defaultIconMap=t.defaultIconfont=void 0;const r=e(85608).__importDefault(e(65973)),o=e(81139);Object.defineProperty(t,"defaultIconfont",{enumerable:!0,get:function(){return o.defaultIconfont}});const l={"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"},_=Object.assign({},o.defaultIconfont,l);t.defaultIconMap=new Proxy(_,{get(p,s){const g=l[s];return(0,r.default)(!g,`Icon '${s}' was a typo, please use '${g}' instead`),p[s]}});class v{constructor(){this._ktIconPrefixes=[],this._iconMap={}}update(s,g){this._iconMap[s]=g,this._ktIconPrefixes.push(s)}getIconClx(s){if(!s)return(0,r.default)(!1,"not a valid icon key:"+s),[];let g=this._ktIconPrefixes.length;for(;!this._iconMap[this._ktIconPrefixes[--g]][s]&&g!==0;);const a=this._iconMap[this._ktIconPrefixes[g]][s];return a?[`${this._ktIconPrefixes[g]}${a}`]:((0,r.default)(!1,"No icon found for "+s),[])}}t.iconManager=new v,t.iconManager.update("kaitian-icon kticon-",t.defaultIconMap)},81139:(x,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.defaultIconfont=void 0,t.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",codebraces:"codebraces","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:"file","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",image:"image","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",mcp:"mcp","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-outlined":"send-outlined","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:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createFromIconfontCN=void 0;const n=e(85608);n.__exportStar(e(80564),t),n.__exportStar(e(76577),t);var r=e(10391);Object.defineProperty(t,"createFromIconfontCN",{enumerable:!0,get:function(){return r.createFromIconfontCN}})},76577:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.updateKaitianIconMap=t.getKaitianIcon=t.ANIM_TYPE=t.ROTATE_TYPE=void 0,t.updateIconMap=v,t.getIconShapeClxList=m,t.getIcon=p;const n=e(12122);var r;(function(s){s[s.rotate_90=0]="rotate_90",s[s.rotate_180=1]="rotate_180",s[s.rotate_270=2]="rotate_270",s[s.flip_horizontal=3]="flip_horizontal",s[s.flip_vertical=4]="flip_vertical",s[s.flip_both=5]="flip_both"})(r||(t.ROTATE_TYPE=r={}));var o;(function(s){s[s.spin=0]="spin",s[s.pulse=1]="pulse"})(o||(t.ANIM_TYPE=o={}));const l=["rotate-90","rotate-180","rotate-270","flip-horizontal","flip-vertical","flip-both"],_=["spin","pulse"];function v(s,g){n.iconManager.update(s,g)}function m(s){const{rotate:g,anim:a,fill:h}=s||{},u=[];return g!==void 0&&u.push(`iconfont-${l[g]}`),a!==void 0&&u.push(`iconfont-anim-${_[a]}`),h&&u.push("toggled"),u}function p(s,g){const a=n.iconManager.getIconClx(s),h=m(g);return a.push(...h),a.join(" ")}t.getKaitianIcon=p,t.updateKaitianIconMap=v},46541:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Image=void 0;const n=e(85608),r=n.__importDefault(e(24345)),o=n.__importDefault(e(14041));e(53960);const l=e(54713),_=v=>o.default.createElement(r.default,{prefixCls:"kt-image",preview:{getContainer:()=>{var m;return document.getElementById("main")||((m=document.getElementsByTagName("body"))===null||m===void 0?void 0:m[0])},mask:o.default.createElement("div",{className:"mask"},o.default.createElement(l.Icon,{iconClass:"codicon codicon-eye"}))},...v});t.Image=_},97267:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=e(85608);e(39328),n.__exportStar(e(48412),t),n.__exportStar(e(79383),t),n.__exportStar(e(50708),t),n.__exportStar(e(7273),t),n.__exportStar(e(14640),t),n.__exportStar(e(54076),t),n.__exportStar(e(79024),t),n.__exportStar(e(89832),t),n.__exportStar(e(54713),t),n.__exportStar(e(46541),t),n.__exportStar(e(18875),t),n.__exportStar(e(91397),t),n.__exportStar(e(31059),t),n.__exportStar(e(72871),t),n.__exportStar(e(91416),t),n.__exportStar(e(34128),t),n.__exportStar(e(50570),t),n.__exportStar(e(77011),t),n.__exportStar(e(3660),t),n.__exportStar(e(58998),t),n.__exportStar(e(4981),t),n.__exportStar(e(99613),t)},15857:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.HistoryInputBox=void 0;const r=e(85608).__importDefault(e(14041)),o=e(54114),l=e(63924);class _ extends r.default.Component{constructor(){super(...arguments),this.inputRef=r.default.createRef(),this.addToHistory=m=>{this.history&&m&&m!==this.getCurrentValue()&&this.history.add(m)},this.getHistory=()=>this.history&&this.history.getHistory()||[],this.showNextValue=()=>{const m=this.getCurrentValue()||"";this.history&&!this.history.has(m)&&this.addToHistory(m);let p=this.getNextValue();p&&(p=p===m?this.getNextValue():p),p&&this.onValueChange(p)},this.showPreviousValue=()=>{const m=this.getCurrentValue()||"";this.history&&!this.history.has(m)&&this.addToHistory(m);let p=this.getPreviousValue();p&&(p=p===m?this.getPreviousValue():p),p&&this.onValueChange(p)},this.clearHistory=()=>{this.history&&this.history.clear()},this.getCurrentValue=()=>{if(!this.history)return null;let m=this.history.current();return m||(m=this.history.last(),this.history.next()),m},this.getPreviousValue=()=>this.history&&(this.history.previous()||this.history.first())||null,this.getNextValue=()=>this.history&&(this.history.next()||this.history.last())||null,this.onValueChange=m=>{const{onValueChange:p}=this.props;this.setState({inputValue:m}),p&&p(m)},this.onKeyDown=m=>{const{onKeyDown:p}=this.props;p&&p(m)},this.focus=()=>{this.inputRef&&this.inputRef.current&&this.inputRef.current.focus()}}componentDidMount(){var m;const{history:p,onReady:s}=this.props;this.history=new o.HistoryNavigator(p||new Set([]),100),this.inputProps={...this.props},delete this.inputProps.onReady,this.setState({inputValue:((m=this.props.value)!==null&&m!==void 0?m:this.props.defaultValue)||""}),typeof s=="function"&&s({addToHistory:this.addToHistory,getHistory:this.getHistory,clearHistory:this.clearHistory,getCurrentValue:this.getCurrentValue,showNextValue:this.showNextValue,showPreviousValue:this.showPreviousValue,focus:this.focus})}render(){const m=this.state&&this.state.inputValue;return r.default.createElement(l.Input,{ref:this.inputRef,...this.inputProps,onValueChange:this.onValueChange,onKeyDown:this.onKeyDown,value:m})}}t.HistoryInputBox=_},63924:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Input=void 0;const n=e(85608),r=n.__importDefault(e(53373)),o=n.__importDefault(e(14041)),l=e(54713),_=n.__importDefault(e(65973));e(41065);function v(p){return typeof p>"u"}function m(p,s,g){if(typeof g=="function"){let a=s;if(s.type==="click"){a=Object.create(s),a.target=p,a.currentTarget=p;const h=p.value;p.value="",g(a),p.value=h;return}g(a)}}t.Input=o.default.forwardRef((p,s)=>{const{defaultValue:g,className:a,wrapperStyle:h,size:u="default",controls:c,onChange:E,selection:f,addonBefore:d,addonAfter:y,persistFocus:b=!0,hasClear:A,afterClear:S,value:D,onValueChange:I,onPressEnter:w,onKeyDown:T,as:R="input",...P}=p;(0,_.default)(!c,"[@opensumi/ide-components Input]: `controls` was deprecated, please use `addonAfter` instead");const O=o.default.useRef(null),[M,k]=o.default.useState(!1),[F,L]=o.default.useState(()=>(D??g)||""),[B,U]=o.default.useState(()=>(D??g)||"");o.default.useImperativeHandle(s,()=>O.current),o.default.useEffect(()=>{f&&!v(f.start)&&!M&&O.current.setSelectionRange(f.start,f.end)},[f,M]),o.default.useEffect(()=>{D===null||typeof D>"u"||(D!==B&&D!==F&&L(D),D!==B&&U(D))},[D]);const W=K=>{Q(K.target.value),m(O.current,K,E)},j=K=>{K.preventDefault(),Q(""),m(O.current,K,E),typeof S=="function"&&S()},Q=K=>{L(K),typeof I=="function"&&I(K),M||k(!0)},G=K=>{K.keyCode===13&&typeof w=="function"&&w(K),typeof T=="function"&&T(K)},Z=y||c,$=b?{onMouseDown:K=>{K.preventDefault()}}:{},V=(K,Y)=>K?o.default.createElement("div",{className:(0,r.default)("kt-input-addon",Y),...$},o.default.Children.map(K,X=>o.default.isValidElement(X)?o.default.cloneElement(X,$):null)):null,H=(0,r.default)("kt-input",a,{[`kt-input-${u}`]:u,"kt-input-disabled":p.disabled});return o.default.createElement("div",{className:H,style:h},V(d,"kt-input-addon-before"),o.default.createElement("div",{className:"kt-input-box"},o.default.createElement(R,{ref:O,type:"text",autoCapitalize:"off",autoCorrect:"off",autoComplete:"off",spellCheck:!1,...P,value:F,onChange:W,onKeyDown:G}),A&&F&&o.default.createElement(l.Icon,{className:"kt-input-clear",icon:"close-circle-fill",onClick:j,...$})),V(Z,"kt-input-addon-after"))}),t.Input.displayName="OpenSumiInput"},64545:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.InputNumber=void 0;const n=e(85608),r=n.__importDefault(e(53373)),o=n.__importDefault(e(32476)),l=n.__importDefault(e(14041));e(41065),e(17107);const _="kt-input-number",v=m=>{const{value:p,size:s="default",wrapperStyle:g,className:a,disabled:h,min:u,max:c,onChange:E,...f}=m,d=b=>{E&&E(b)},y=(0,r.default)("kt-input","kt-input-number",a,{[`kt-input-${s}`]:s,"kt-input-disabled":h});return l.default.createElement("div",{className:y,style:g},l.default.createElement("div",{className:"kt-input-box"},l.default.createElement(o.default,{prefixCls:_,min:u,max:c,value:p,type:"number",onChange:d,controls:!0,...f})))};t.InputNumber=v,t.InputNumber.displayName="OpenSumiInputNumber"},10413:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bindInputElement=v;const r=e(85608).__importDefault(e(14041)),o=e(63924);class l extends r.default.Component{constructor(){super(...arguments),this.placeholderInputRef=r.default.createRef()}render(){const p={...this.props};return delete p.inputElement,delete p.innerRef,r.default.createElement(o.Input,{...p,type:"text",id:this.props.id,ref:this.placeholderInputRef})}componentDidMount(){const{innerRef:p,inputElement:s}=this.props;this.placeholderInputRef.current.parentElement.replaceChild(s,this.placeholderInputRef.current),this.applyAttributes(),s.focus(),typeof p=="function"?p(s):p!==null&&typeof p=="object"&&p.current===null&&(p.current=s)}UNSAFE_componentWillUnmount(){const{innerRef:p,inputElement:s}=this.props;s.parentElement.replaceChild(this.placeholderInputRef.current,s),p!==null&&typeof p=="object"&&p.current&&(p.current=null)}shouldComponentUpdate(p){return this.applyAttributes(p),!1}applyAttributes(p=this.props){const{className:s,id:g,inputElement:a,style:h}=p;if(typeof s=="string"&&(a.className=s),typeof g=="string"&&(a.id=g),h!==null&&typeof h=="object")for(const u in h)typeof h[u]=="string"&&a[u]&&(a[u]=h[u])}}const _=r.default.forwardRef((m,p)=>r.default.createElement(l,{...m,innerRef:p}));function v(m){return p=>r.default.createElement(_,{...p,inputElement:m})}},61172:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TextArea=void 0;const r=e(85608).__importDefault(e(14041)),o=e(63924);t.TextArea=r.default.forwardRef((l,_)=>r.default.createElement(o.Input,{...l,as:"textarea",ref:_})),t.TextArea.displayName="OpenSumiTextArea"},34390:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ValidateInput=t.VALIDATE_TYPE=void 0;const n=e(85608),r=n.__importDefault(e(53373)),o=n.__importDefault(e(14041)),l=e(63924);e(13254);var _;(function(v){v[v.INFO=1]="INFO",v[v.ERROR=2]="ERROR",v[v.WARNING=3]="WARNING",v[v.IGNORE=4]="IGNORE"})(_||(t.VALIDATE_TYPE=_={})),t.ValidateInput=o.default.forwardRef(({type:v,className:m,validate:p,onChange:s,onValueChange:g,validateMessage:a,popup:h=!0,...u},c)=>{const[E,f]=o.default.useState();o.default.useEffect(()=>{f(a)},[a]);const d=(0,r.default)({"validate-error":E&&E.type===_.ERROR,"validate-warning":E&&E.type===_.WARNING,"validate-info":E&&E.type===_.INFO}),y=()=>{if(E&&E.message)return o.default.createElement("div",{className:(0,r.default)("validate-message",d,{popup:h})},E.message)},b=A=>{const S=A.target;let D;if(S.type==="number"?D=A.target.valueAsNumber:D=A.target.value,typeof p=="function"){let I;v==="number"?/^[0-9]+$/.test(D)?I=p(Number(D)):I=p(String(D)):I=p(D),f(I)}typeof s=="function"&&s(A),typeof g=="function"&&g(D)};return o.default.createElement("div",{className:(0,r.default)("input-box",{popup:h})},o.default.createElement(l.Input,{type:v,ref:c,className:(0,r.default)(m,E,d),onChange:b,...u}),y())}),t.ValidateInput.displayName="ValidateInput"},50708:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=e(85608);n.__exportStar(e(61172),t),n.__exportStar(e(63924),t),n.__exportStar(e(34390),t),n.__exportStar(e(10413),t),n.__exportStar(e(64545),t)},3660:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),e(85608).__exportStar(e(3205),t)},3205:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Loading=void 0;const r=e(85608).__importDefault(e(14041));e(21221),t.Loading=r.default.memo(()=>r.default.createElement("div",{className:"loading_indicator"})),t.Loading.displayName="Loading"},4981:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LocalizeContext=void 0,t.LocalizeContextProvider=v,t.ComponentContextProvider=m;const r=e(85608).__importDefault(e(14041)),o=e(54713),l=e(65973),_=p=>((0,l.warning)(!1,"Using the default localize fn"),"");t.LocalizeContext=r.default.createContext({localize:_}),t.LocalizeContext.displayName="LocalizeContext";function v(p){return r.default.createElement(t.LocalizeContext.Provider,{value:p.value},r.default.createElement(t.LocalizeContext.Consumer,null,s=>p.value===s?p.children:null))}function m(p){return r.default.createElement(o.IconContextProvider,{value:p.value},r.default.createElement(v,{value:{localize:p.value.localize}},p.children))}},13719:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=e(85608);n.__exportStar(e(44547),t),n.__exportStar(e(32592),t)},32592:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MarkdownReactParser=void 0;const n=e(85608),r=e(33714),o=n.__importDefault(e(14041));class l extends r.marked.Renderer{constructor(m){super(),this.renderer=m.renderer}parse(m){return m.map((p,s)=>{const g=(()=>{switch(p.type){case"html":{const a=p;return this.renderer.html(a.text)}case"space":return null;case"heading":{const a=p,h=a.depth;return this.renderer.heading(this.parseInline(a.tokens),h)}case"paragraph":{const a=p;return this.renderer.paragraph(this.parseInline(a.tokens))}case"text":{const a=p;return a.tokens?this.parseInline(a.tokens):a.text}case"blockquote":{const a=p,h=this.parse(a.tokens);return this.renderer.blockquote(h)}case"list":{const a=p,h=a.items.map((u,c)=>{var E;const f=[];return u.task&&f.push(this.renderer.checkbox((E=u.checked)!==null&&E!==void 0?E:!1)),f.push(this.parse(u.tokens)),o.default.cloneElement(this.renderer.listItem(f),{key:`list-item-${c}`})});return this.renderer.list(h,a.ordered)}case"code":{const a=p;return this.renderer.code(a.text,a.lang)}case"table":{const a=p,h=a.header.map((d,y)=>o.default.cloneElement(this.renderer.tableCell(this.parseInline(d.tokens),{header:!0,align:a.align[y]}),{key:`header-cell-${y}`})),u=o.default.cloneElement(this.renderer.tableRow(h),{key:"header-row"}),c=this.renderer.tableHeader(u),E=a.rows.map((d,y)=>{const b=d.map((A,S)=>o.default.cloneElement(this.renderer.tableCell(this.parseInline(A.tokens),{header:!1,align:a.align[S]}),{key:`body-cell-${y}-${S}`}));return o.default.cloneElement(this.renderer.tableRow(b),{key:`body-row-${y}`})}),f=this.renderer.tableBody(E);return this.renderer.table([c,f])}case"hr":return this.renderer.hr();default:return console.warn(`Token with "${p.type}" type was not found`),null}})();return o.default.isValidElement(g)?o.default.cloneElement(g,{key:`token-${s}`}):g})}parseInline(m=[]){return m.map(p=>{switch(p.type){case"text":{const g=_(p.text);return this.renderer.text(g)}case"strong":{const s=p;return this.renderer.strong(this.parseInline(s.tokens))}case"em":{const s=p;return this.renderer.em(this.parseInline(s.tokens))}case"del":{const s=p;return this.renderer.del(this.parseInline(s.tokens))}case"codespan":{const s=p;return this.renderer.codespan(_(s.text))}case"link":{const s=p;return this.renderer.link(s.href,this.parseInline(s.tokens))}case"image":{const s=p;return this.renderer.image(s.href,s.text,s.title)}case"html":{const s=p;return this.renderer.html(s.text)}case"br":return this.renderer.br();case"escape":{const s=p;return this.renderer.text(s.text)}default:return console.warn(`Token with "${p.type}" type was not found`),null}})}}t.MarkdownReactParser=l;function _(v){return v.replace(/&#(\d+);/g,(m,p)=>String.fromCharCode(p)).replace(/&#x([0-9A-Fa-f]+);/g,(m,p)=>String.fromCharCode(parseInt(p,16)))}},44547:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MarkdownReactRenderer=void 0;const r=e(85608).__importStar(e(14041));class o{constructor(_={}){this.uid=0,this.options=_}node(_,v=null,m={}){const p={key:`marked-react-${this.uid}`};return this.incrementUID(),(0,r.createElement)(_,{...m,...p},v)}incrementUID(){this.uid+=1}heading(_,v){return this.node(`h${v}`,_)}paragraph(_){return this.node("p",_)}joinBase(_,v){if(!v)return _;try{return new URL(_,v).href}catch{return _}}link(_,v){const m=this.joinBase(_,this.options.baseURL);return this.node("a",v,{href:m,target:"_blank",rel:"noopener noreferrer"})}image(_,v,m=null){const p=this.joinBase(_,this.options.baseURL);return this.node("img",null,{src:p,alt:v,title:m})}codespan(_,v=null){const m=v?`${this.options.langPrefix}${v}`:null;return this.node("code",_,{className:m})}code(_,v){return this.node("pre",this.codespan(_,v))}blockquote(_){return this.node("blockquote",_)}list(_,v){return this.node(v?"ol":"ul",_)}listItem(_){return this.node("li",_)}checkbox(_){return this.node("input",null,{type:"checkbox",disabled:!0,checked:_})}table(_){return this.node("table",_)}tableHeader(_){return this.node("thead",_)}tableBody(_){return this.node("tbody",_)}tableRow(_){return this.node("tr",_)}tableCell(_,v){const m=v.header?"th":"td";return this.node(m,_,{align:v.align})}strong(_){return this.node("strong",_)}em(_){return this.node("em",_)}del(_){return this.node("del",_)}text(_){return _}html(_){return r.default.createElement("div",{dangerouslySetInnerHTML:{__html:_}})}hr(){return this.node("hr")}br(){return this.node("br")}}t.MarkdownReactRenderer=o},56849:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DefaultMarkedRenderer=t.linkify=void 0,t.Markdown=m;const n=e(85608),r=e(33714),o=n.__importDefault(e(14041)),l=e(39777),_=(p,s,g)=>`<a rel="noopener" ${l.DATA_SET_COMMAND}="${p}" title="${s??p}">${g}</a>`;t.linkify=_;class v extends r.Renderer{link({href:s,title:g,text:a}){return(0,t.linkify)(s,g||null,a)}}t.DefaultMarkedRenderer=v;function m(p){const s=(h,u)=>{const c=r.marked.parse(h,{renderer:u,async:!1});return typeof c=="string"?c:""},[g,a]=o.default.useState(s(p.value||"",p.renderer));return o.default.useEffect(()=>{a(s(p.value||"",p.renderer))},[p.renderer,p.value]),o.default.createElement(l.RenderWrapper,{opener:p.opener,html:g})}},39777:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RenderWrapper=t.DATA_SET_COMMAND=void 0;const r=e(85608).__importStar(e(14041));e(28566),t.DATA_SET_COMMAND="data-command";const o=l=>{const _=(0,r.useRef)(),{html:v,opener:m}=l;(0,r.useEffect)(()=>(_&&_.current&&_.current.addEventListener("click",p),()=>{_&&_.current&&_.current.removeEventListener("click",p)}),[]);const p=s=>{let g=s.target;if(g.className.includes("codicon")&&(g=g.parentNode),g.tagName.toLowerCase()==="a"&&g.hasAttribute(t.DATA_SET_COMMAND)){const a=g.getAttribute(t.DATA_SET_COMMAND);a&&m&&m.open(a)}};return r.default.createElement("div",{className:"kt-md-renderer-wrap",dangerouslySetInnerHTML:{__html:v},ref:_})};t.RenderWrapper=o},98113:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=(0,e(14041).createContext)({inlineCollapsed:!1});t.default=r},64063:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=e(85608),r=e(31363),o=n.__importDefault(e(14041)),l=n.__importDefault(e(98113));class _ extends o.default.Component{constructor(){super(...arguments),this.renderItem=()=>{const{title:m,...p}=this.props;return o.default.createElement(l.default.Consumer,null,({inlineCollapsed:s})=>s?o.default.createElement(r.Item,{...p,title:m}):o.default.createElement(r.Item,{...p,title:m}))}}render(){return this.renderItem()}}_.isMenuItem=!0,t.default=_},91886:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=e(85608),r=n.__importDefault(e(39067)),o=e(31363),l=n.__importDefault(e(14041));class _ extends l.default.Component{render(){const{popupClassName:m}=this.props;return l.default.createElement(o.SubMenu,{...this.props,popupClassName:m})}}_.contextTypes={antdMenuTheme:r.default.string},_.isSubMenu=1,t.default=_},45803:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Menu=void 0;const n=e(85608),r=n.__importDefault(e(53373)),o=n.__importStar(e(31363)),l=n.__importDefault(e(14041)),_=e(90146),v=e(2835),m=e(47768),p=e(65973),s=n.__importDefault(e(98113)),g=n.__importDefault(e(64063)),a=n.__importDefault(e(91886));e(42985);class h extends l.default.Component{static getDerivedStateFromProps(E,f){const{prevProps:d}=f,y={prevProps:E};return d.mode==="inline"&&E.mode!=="inline"&&(y.switchingModeFromInline=!0),"openKeys"in E?y.openKeys=E.openKeys:(E.inlineCollapsed&&!d.inlineCollapsed&&(y.switchingModeFromInline=!0,y.inlineOpenKeys=f.openKeys,y.openKeys=[]),!E.inlineCollapsed&&d.inlineCollapsed&&(y.openKeys=f.inlineOpenKeys,y.inlineOpenKeys=[])),y}constructor(E){super(E),this.handleMouseEnter=d=>{this.restoreModeVerticalFromInline();const{onMouseEnter:y}=this.props;y&&y(d)},this.handleTransitionEnd=d=>{const y=d.propertyName==="width"&&d.target===d.currentTarget,{className:b}=d.target,A=Object.prototype.toString.call(b)==="[object SVGAnimatedString]"?b.animVal:b,S=d.propertyName==="font-size"&&A.indexOf("anticon")>=0;(y||S)&&this.restoreModeVerticalFromInline()},this.handleClick=d=>{this.handleOpenChange([]);const{onClick:y}=this.props;y&&y(d)},this.handleOpenChange=d=>{this.setOpenKeys(d);const{onOpenChange:y}=this.props;y&&y(d)},this.renderMenu=()=>{const{prefixCls:d,className:y}=this.props,b=this.getRealMenuMode(),A=this.getOpenMotionProps(b),S=d||"kt-inner-menu",D=(0,r.default)(y,{[`${S}-inline-collapsed`]:this.getInlineCollapsed()}),I={openKeys:this.state.openKeys,onOpenChange:this.handleOpenChange,className:D,mode:b,...A};return b!=="inline"&&(I.onClick=this.handleClick),this.getInlineCollapsed()&&(I.openKeys=[]),l.default.createElement(o.default,{...this.props,...I,prefixCls:S,onTransitionEnd:this.handleTransitionEnd,onMouseEnter:this.handleMouseEnter})},(0,p.warning)(!("onOpen"in E||"onClose"in E),"[Menu] `onOpen` and `onClose` are removed, please use `onOpenChange` instead, see: https://u.ant.design/menu-on-open-change."),(0,p.warning)(!("inlineCollapsed"in E&&E.mode!=="inline"),"[Menu] `inlineCollapsed` should only be used when `mode` is inline.");let f;"openKeys"in E?f=E.openKeys:"defaultOpenKeys"in E&&(f=E.defaultOpenKeys),this.state={openKeys:f||[],switchingModeFromInline:!1,inlineOpenKeys:[],prevProps:E}}componentWillUnmount(){m.wrapperRaf.cancel(this.mountRafId)}setOpenKeys(E){"openKeys"in this.props||this.setState({openKeys:E})}getRealMenuMode(){const E=this.getInlineCollapsed();if(this.state.switchingModeFromInline&&E)return"inline";const{mode:f}=this.props;return E?"vertical":f}getInlineCollapsed(){const{inlineCollapsed:E}=this.props;return E}getOpenMotionProps(E){const{openTransitionName:f,openAnimation:d,motion:y}=this.props;return y?{motion:y}:d?((0,p.warning)(typeof d=="string","[Menu] `openAnimation` do not support object. Please use `motion` instead."),{openAnimation:d}):f?{openTransitionName:f}:E==="horizontal"?{motion:{motionName:"slide-up"}}:E==="inline"?{motion:v.collapseMotion}:{motion:{motionName:""}}}restoreModeVerticalFromInline(){const{switchingModeFromInline:E}=this.state;E&&this.setState({switchingModeFromInline:!1})}render(){return l.default.createElement(s.default.Provider,{value:{inlineCollapsed:this.getInlineCollapsed()||!1}},this.renderMenu())}}h.defaultProps={className:"",focusable:!1},(0,_.polyfill)(h);class u extends l.default.Component{render(){return l.default.createElement(h,{...this.props})}}t.Menu=u,u.Divider=o.Divider,u.Item=g.default,u.SubMenu=a.default,u.ItemGroup=o.ItemGroup},31059:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.message=void 0;const r=e(85608).__importDefault(e(71036));e(38663);function o(l){return(_,v)=>new Promise(m=>{r.default[l](_,v,m)})}t.message={success:o("success"),error:o("error"),info:o("info"),warning:o("warning"),loading:o("loading")}},71036:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=e(85608),r=n.__importDefault(e(29517)),o=n.__importDefault(e(96041)),l=n.__importDefault(e(63492)),_=n.__importDefault(e(36117)),v=n.__importDefault(e(59303)),m=n.__importDefault(e(10435)),p=n.__importDefault(e(14041));let s=3,g,a,h=1,u="kt-message",c="move-up",E,f;function d(D){if(a){D(a);return}m.default.newInstance({prefixCls:u,transitionName:c,style:{top:g},getContainer:E,maxCount:f},I=>{if(a){D(a);return}a=I,D(I)})}const y={info:_.default,success:r.default,error:o.default,warning:l.default,loading:v.default};function b(D){const I=D.duration!==void 0?D.duration:s,w=D.key||h++,T=new Promise(P=>{const O=()=>(typeof D.onClose=="function"&&D.onClose(),P(!0));d(M=>{const k=y[D.type];M.notice({key:w,duration:I,style:{},content:p.default.createElement("div",{className:`${u}-custom-content${D.type?` ${u}-${D.type}`:""}`},D.icon||k&&p.default.createElement(k,null),p.default.createElement("span",null,D.content)),onClose:O})})}),R=()=>{a&&a.removeNotice(w)};return R.then=(P,O)=>T.then(P,O),R.promise=T,R}function A(D){return Object.prototype.toString.call(D)==="[object Object]"&&!!D.content}const S={open:b,config(D){D.top!==void 0&&(g=D.top,a=null),D.duration!==void 0&&(s=D.duration),D.prefixCls!==void 0&&(u=D.prefixCls),D.getContainer!==void 0&&(E=D.getContainer),D.transitionName!==void 0&&(c=D.transitionName,a=null),D.maxCount!==void 0&&(f=D.maxCount,a=null)},destroy(){a&&(a.destroy(),a=null)}};["success","info","warning","error","loading"].forEach(D=>{S[D]=(I,w,T)=>A(I)?S.open({...I,type:D}):(typeof w=="function"&&(T=w,w=void 0),S.open({content:I,duration:w,type:D,onClose:T}))}),S.warn=S.warning,t.default=S},6656:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.destroyFns=void 0;const n=e(85608),r=n.__importDefault(e(22143)),o=n.__importDefault(e(53373)),l=n.__importDefault(e(39067)),_=n.__importDefault(e(91812)),v=n.__importDefault(e(25946)),m=n.__importDefault(e(14041)),p=e(48412),s=e(69587);let g;t.destroyFns=[];const a=u=>{g={x:u.pageX,y:u.pageY},setTimeout(()=>g=null,100)};typeof window<"u"&&window.document&&window.document.documentElement&&(0,v.default)(document.documentElement,"click",a);class h extends m.default.Component{constructor(){super(...arguments),this.handleCancel=c=>{const{onCancel:E}=this.props;E&&E(c)},this.handleOk=c=>{const{onOk:E}=this.props;E&&E(c)},this.renderFooter=c=>{const{okText:E,okType:f,cancelText:d,confirmLoading:y}=this.props;return m.default.createElement("div",null,m.default.createElement(p.Button,{onClick:this.handleCancel,...this.props.cancelButtonProps},d||c.cancelText),m.default.createElement(p.Button,{type:f,loading:y,onClick:this.handleOk,...this.props.okButtonProps},E||c.okText))},this.renderModal=()=>{const{prefixCls:c,footer:E,visible:f,wrapClassName:d,centered:y,getContainer:b,closeIcon:A,closable:S=!0,...D}=this.props,I=c||"kt-modal",w=this.renderFooter((0,s.getConfirmLocale)()),T=m.default.createElement("span",{className:`${I}-close-x`},A||m.default.createElement(r.default,{className:`${I}-close-icon`}));return m.default.createElement(_.default,{...D,animation:this.props.animation,getContainer:b,prefixCls:I,wrapClassName:(0,o.default)({[`${I}-centered`]:!!y},d),footer:E===void 0?w:E,visible:f,mousePosition:g,onClose:this.handleCancel,closeIcon:T})}}render(){return this.renderModal()}}h.defaultProps={width:520,confirmLoading:!1,visible:!1,okType:"primary"},h.propTypes={prefixCls:l.default.string,onOk:l.default.func,onCancel:l.default.func,okText:l.default.node,cancelText:l.default.node,centered:l.default.bool,width:l.default.oneOfType([l.default.number,l.default.string]),confirmLoading:l.default.bool,visible:l.default.bool,footer:l.default.node,title:l.default.node,closable:l.default.bool,closeIcon:l.default.node},t.default=h},53017:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Modal=void 0;const r=e(85608).__importDefault(e(6656));t.Modal=r.default,e(61349)},69587:(x,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.changeConfirmLocale=r,t.getConfirmLocale=o;const e={okText:"OK",cancelText:"Cancel",justOkText:"OK"};let n={...e};function r(l){l?n={...n,...l}:n={...e}}function o(){return n}},18875:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.notification=void 0,t.open=g,t.close=a,t.update=h;const n=e(85608),r=n.__importDefault(e(53373)),o=n.__importDefault(e(14041)),l=e(43718),_=e(70392),v=e(48412),m=n.__importDefault(e(70748));e(1477);const p={[l.MessageType.Info]:15,[l.MessageType.Warning]:18,[l.MessageType.Error]:20};m.default.config({placement:"bottomRight"}),t.notification=m.default;const s=new Map;function g(c,E,f=!0,d,y,b,A,S){return(0,_.createCancelablePromise)(D=>(D.onCancellationRequested(()=>{a(d)}),new Promise(I=>{const w={key:d,className:(0,r.default)("kt-notification-wrapper",{"kt-notification-info":E===l.MessageType.Info,"kt-notification-error":E===l.MessageType.Error,"kt-notification-warn":E===l.MessageType.Warning}),duration:(0,_.isUndefined)(A)?p[E]:A,onClose:()=>{S&&S(),s.delete(d),I(void 0)},btn:y?y.map((T,R)=>{const P=typeof T=="string",O={className:`${(0,r.default)("kt-notification-button")}${P?"":T.class}`,ghost:P?R===0:!T.primary,key:P?T:T.id,onClick:()=>{I(T),m.default.close(d),P||T.run()}},M=P?T:T.label;return o.default.createElement(v.Button,{size:"small",...O},M)}):null,message:c,description:b};s.set(d,[E,w]),f||(w.closeIcon=o.default.createElement("span",null)),u(E,w)})))}function a(c){t.notification.close(c)}function h(c,E){const f=s.get(c);u(f[0],{...f[1],key:c,message:E})}function u(c,E){switch(c){case l.MessageType.Info:t.notification.info(E);break;case l.MessageType.Warning:t.notification.warning(E);break;case l.MessageType.Error:t.notification.error(E);break;default:t.notification.open(E);break}}},70748:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=e(85608),r=n.__importDefault(e(55435)),o=n.__importDefault(e(31079)),l=n.__importDefault(e(22143)),_=n.__importDefault(e(5550)),v=n.__importDefault(e(74339)),m=n.__importDefault(e(10435)),p=n.__importDefault(e(14041)),s=e(70392),g={};let a=4.5,h=24,u=24,c="topRight",E,f;function d(I){const{duration:w,placement:T,bottom:R,top:P,getContainer:O,closeIcon:M}=I;w!==void 0&&(a=w),T!==void 0&&(c=T),R!==void 0&&(u=R),P!==void 0&&(h=P),O!==void 0&&(E=O),M!==void 0&&(f=M)}function y(I,w=h,T=u){let R;switch(I){case"topLeft":R={left:0,top:w,bottom:"auto"};break;case"topRight":R={right:0,top:w,bottom:"auto"};break;case"bottomLeft":R={left:0,top:"auto",bottom:T};break;default:R={right:0,top:"auto",bottom:T};break}return R}function b({prefixCls:I,placement:w=c,getContainer:T=E,top:R,bottom:P,closeIcon:O=f},M){const k=`${I}-${w}`;if(g[k]){M(g[k]);return}const F=p.default.createElement("span",{className:`${I}-close-x`},O||p.default.createElement(l.default,{className:`${I}-close-icon`}));m.default.newInstance({prefixCls:I,className:`${I}-${w}`,style:y(w,R,P),getContainer:T,closeIcon:F},L=>{g[k]=L,M(L)})}const A={success:r.default,info:v.default,error:o.default,warning:_.default};function S(I){const w=I.prefixCls||"kt-notification",T=`${w}-notice`,R=(0,s.isUndefined)(I.duration)?a:I.duration;let P=null;I.icon?P=p.default.createElement("span",{className:`${T}-icon`},I.icon):I.type&&(P=p.default.createElement(A[I.type]||null,{className:`${T}-icon ${T}-icon-${I.type}`}));const{placement:O,top:M,bottom:k,getContainer:F,closeIcon:L}=I;b({prefixCls:w,placement:O,top:M,bottom:k,getContainer:F,closeIcon:L},B=>{B.notice({content:p.default.createElement("div",{className:P?`${T}-with-icon`:""},P,p.default.createElement("div",{className:`${T}-message`},I.message),p.default.createElement("div",{className:`${T}-description`},I.description),I.btn?p.default.createElement("span",{className:`${T}-btn`},I.btn):null),duration:R,closable:!0,onClose:I.onClose,onClick:I.onClick,key:I.key,style:I.style||{},className:I.className})})}const D={open:S,close(I){Object.keys(g).forEach(w=>g[w].removeNotice(I))},config:d,destroy(){Object.keys(g).forEach(I=>{g[I].destroy(),delete g[I]})}};["success","info","warning","error"].forEach(I=>{D[I]=w=>D.open({...w,type:I})}),D.warn=D.warning,t.default=D},79024:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Overlay=void 0;const n=e(85608),r=n.__importDefault(e(53373)),o=n.__importDefault(e(14041)),l=e(53017);e(45531);const _=({maskClosable:v=!1,closable:m=!0,className:p,onClose:s,children:g,footer:a,title:h,getContainer:u,keyboard:c,...E})=>o.default.createElement(l.Modal,{footer:a||null,maskClosable:v,closable:m,onCancel:s,title:h,getContainer:u,className:(0,r.default)("kt-overlay",p),keyboard:c,...E},g);t.Overlay=_},91397:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Popover=t.PopoverPosition=t.PopoverTriggerType=void 0;const n=e(85608),r=n.__importDefault(e(53373)),o=n.__importDefault(e(6208)),l=n.__importStar(e(14041));e(14856);const _=e(48412);var v;(function(s){s.hover="hover",s.click="click",s.focus="focus"})(v||(t.PopoverTriggerType=v={}));var m;(function(s){s.top="top",s.bottom="bottom",s.left="left",s.right="right",s.topLeft="topLeft",s.topRight="topRight",s.bottomLeft="bottomLeft",s.bottomRight="bottomRight",s.leftTop="leftTop",s.leftBottom="leftBottom",s.rightTop="rightTop",s.rightBottom="rightBottom"})(m||(t.PopoverPosition=m={}));const p=({children:s,trigger:g=v.hover,visible:a,content:h,position:u=m.top,showArrow:c=!0,title:E,titleClassName:f,overlay:d,overlayClassName:y,overlayStyle:b,action:A,delay:S=200,zIndex:D=1e3,onClickAction:I,onVisibleChange:w,getTooltipContainer:T,...R})=>{const P=(0,l.useCallback)(M=>{I&&I(M)},[I]),O=(0,l.useMemo)(()=>d||(!E&&!h?null:l.default.createElement(l.default.Fragment,null,E&&l.default.createElement("p",{className:(0,r.default)("kt-popover-title",f)},E,A&&l.default.createElement(_.Button,{size:"small",type:"link",onClick:P},A)),h||"")),[d,h,A,P]);return O?l.default.createElement(o.default,{...R,visible:a,placement:u,mouseEnterDelay:S?S/1e3:void 0,trigger:g,showArrow:c,onVisibleChange:w,overlayClassName:y,prefixCls:"kt-popover",overlayStyle:b,getTooltipContainer:T,overlay:O,zIndex:D},l.default.createElement("div",{className:"kt-popover-trigger"},s)):s};t.Popover=p},8573:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RecycleList=t.RECYCLE_LIST_OVER_SCAN_COUNT=t.RECYCLE_LIST_STABILIZATION_TIME=void 0;const n=e(85608),r=n.__importDefault(e(53373)),o=n.__importStar(e(14041)),l=n.__importDefault(e(19686)),_=e(58723),v=e(77011);t.RECYCLE_LIST_STABILIZATION_TIME=500,t.RECYCLE_LIST_OVER_SCAN_COUNT=50;const m=({width:p,height:s,maxHeight:g,minHeight:a,className:h,style:u,data:c,onReady:E,onScroll:f,itemHeight:d,header:y,footer:b,template:A,paddingBottomSize:S,getSize:D,hiddenVerticalScrollbar:I,hiddenHorizontalScrollbar:w})=>{const T=(0,o.useRef)(),R=(0,o.useRef)(),P=(0,o.useRef)({}),O=(0,o.useRef)(0),M=(0,o.useRef)();(0,o.useEffect)(()=>{typeof E=="function"&&E({scrollTo:K=>{var Y;(Y=T.current)===null||Y===void 0||Y.scrollTo(K)},scrollToIndex:(K,Y="start")=>{var X,oe;let ie=K;if(y&&ie++,typeof d=="number")(X=T.current)===null||X===void 0||X.scrollToItem(ie,Y);else{M.current&&clearTimeout(M.current);const me=(P.current?Object.keys(P.current):[]).slice(0,ie).reduce((q,Ee)=>q+F(Ee),0);(oe=T.current)===null||oe===void 0||oe.scrollToItem(K,Y),M.current=setTimeout(()=>{var q;(P.current?Object.keys(P.current):[]).slice(0,ie).reduce((te,fe)=>te+F(fe),0)!==me&&((q=T.current)===null||q===void 0||q.scrollToItem(K,Y)),M.current=null},t.RECYCLE_LIST_STABILIZATION_TIME)}}})},[]);const k=(H,K)=>{var Y;P.current[H]!==K&&(P.current={...P.current,[H]:K},T.current&&((Y=T.current)===null||Y===void 0||Y.resetAfterIndex(0)))},F=(0,o.useCallback)(H=>D?D(Number(H)):(P?.current||[])[H]||d||100,[d,D]),L=(0,o.useCallback)(()=>{if(g){let H=0;for(let K=0;K<c.length;K++)H+=F(K);return H>g?g:H}},[g,c]),B=(0,o.useCallback)(()=>{if(a)return a},[a,c]),U=(0,o.useMemo)(()=>{let H=c.length;return y&&H++,b&&H++,H},[c,b,y]),W=({index:H,style:K})=>{let Y;if(H===0&&y)return o.default.createElement("div",{style:K},o.default.createElement(y,null));if(H+1===U&&b)return o.default.createElement("div",{style:K},o.default.createElement(b,null));if(y?Y=c[H-1]:Y=c[H],!Y)return o.default.createElement("div",{style:K});const X={"aria-setsize":U,"aria-posinset":H};return o.default.createElement("div",{tabIndex:0,style:K,role:"listitem",...X},o.default.createElement(A,{data:Y,index:H}))},j=({index:H,style:K})=>{const Y=(0,o.useRef)(null),X=(0,o.useRef)(),oe=()=>{if(Y.current){let he=0;for(let me=0;me<Y.current.children.length;me++)he+=Y.current.children[me].getBoundingClientRect().height;k(H,he)}};(0,o.useEffect)(()=>{if(Y.current&&T.current){X.current=new MutationObserver(()=>{oe()});const he={childList:!0,attributes:!0,characterData:!0,attributeFilter:["class","style"],attributeOldValue:!0,characterDataOldValue:!0};X.current.observe(Y.current,he),oe()}return()=>{X.current.disconnect()}},[Y.current]);let ie;return H===0&&y?o.default.createElement("div",{style:K},o.default.createElement(y,null)):H+1===U&&b?o.default.createElement("div",{style:K},o.default.createElement(b,null)):(y?ie=c[H-1]:ie=c[H],ie?o.default.createElement("div",{style:K,ref:Y},o.default.createElement(A,{data:ie,index:H})):o.default.createElement("div",{style:K}))},Q=(0,o.useMemo)(()=>c.reduce((K,Y)=>K+F(Y),0)/c.length,[c]),G=(0,o.useCallback)(H=>{O.current=H.scrollOffset,f&&f(H)},[f]),Z=(0,o.useMemo)(()=>(0,o.forwardRef)((H,K)=>{const{style:Y,...X}=H;return o.default.createElement("div",{ref:K,style:{...Y,height:`${parseFloat(Y.height)+(S||0)}px`},...X})}),[S]),$=(0,o.useMemo)(()=>(0,o.forwardRef)((H,K)=>o.default.createElement(v.Scrollbars,{hiddenVertical:I,hiddenHorizontal:w,...H,thumbSize:10,forwardedRef:K})),[I,w]);return(()=>{const H=typeof d!="number",K=!p||!s;return(()=>{const X=({width:oe,height:ie})=>{R.current&&(R.current.scrollTop=O.current);const he=L(),me=B();let q=ie;return me?q=Math.min(ie,me):he&&(q=he),H?o.default.createElement(_.VariableSizeList,{onScroll:G,width:oe,height:q,itemData:[],itemSize:F,itemCount:U,overscanCount:t.RECYCLE_LIST_OVER_SCAN_COUNT,ref:T,style:{transform:"translate3d(0px, 0px, 0px)",...u},className:(0,r.default)(h,"kt-recycle-list"),innerElementType:Z,outerElementType:$,estimatedItemSize:Q},j):o.default.createElement(_.FixedSizeList,{onScroll:G,width:oe,height:q,itemData:[],itemSize:d,itemCount:U,overscanCount:t.RECYCLE_LIST_OVER_SCAN_COUNT,ref:T,outerRef:R,style:{transform:"translate3d(0px, 0px, 0px)",...u},className:(0,r.default)(h,"recycle-list"),innerElementType:Z,outerElementType:$},W)};return K?o.default.createElement(l.default,null,X):X({width:p,height:s})})()})()};t.RecycleList=m},34128:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),e(85608).__exportStar(e(8573),t)},57621:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RecycleTree=t.RenderErrorType=void 0;const n=e(85608),r=n.__importDefault(e(39050)),o=n.__importStar(e(14041)),l=e(58723),_=e(70392),v=e(77011),m=e(48103),p=e(65601),s=e(43685),g=e(13429),a=e(34054);var h;(function(E){E[E.RENDER_ITEM=0]="RENDER_ITEM",E[E.GET_RENDED_KEY=1]="GET_RENDED_KEY",E[E.RENDER_ERROR=2]="RENDER_ERROR"})(h||(t.RenderErrorType=h={}));const u=o.default.forwardRef((E,f)=>{const{style:d,...y}=E;return o.default.createElement("div",{ref:f,style:{...d,height:`${parseFloat(d.height)+c.PADDING_BOTTOM_SIZE}px`},...y})});class c extends o.default.Component{constructor(){super(...arguments),this.idxToRendererPropsCache=new Map,this.dynamicSizeMap=new Map,this.listRef=o.default.createRef(),this.disposables=new _.DisposableCollection,this.onErrorEmitter=new _.Emitter,this.onDidUpdateEmitter=new _.Emitter,this.onDidModelChangeEmitter=new _.Emitter,this.newPromptInsertionIndex=-1,this.idToFilterRendererPropsCache=new Map,this.filterFlattenBranchChildrenCache=new Map,this.filterWatcherDisposeCollection=new _.DisposableCollection,this.queueUpdatePromise=null,this.updateCancelToken=new _.CancellationTokenSource,this.expandNodeCancelToken=new _.CancellationTokenSource,this.willUpdateTasks=0,this.queueUpdateThrottler=new _.Throttler,this.doBatchUpdate=(()=>{const f=(d,y)=>{if(this.disposables.disposed)return;const{root:b}=this.props.model;let A=-1;if(this.promptTargetID>-1&&this.promptHandle instanceof p.NewPromptHandle&&this.promptHandle.parent&&this.promptHandle.parent.expanded&&b.isItemVisibleAtSurface(this.promptHandle.parent)&&!this.promptHandle.destroyed){const S=b.getIndexAtTreeNodeId(this.promptTargetID);if(S>-1||this.promptHandle.parent===b)if(this.promptHandle.type===a.TreeNodeType.TreeNode){const D=this.promptHandle.parent;D?A=this.getNewPromptInsertIndex(S,D):A=S+1}else A=S+1;else this.promptTargetID=-1}if(A===-1&&this.promptHandle&&this.promptHandle.constructor===p.NewPromptHandle&&!this.promptHandle.destroyed&&this.promptHandle.destroy(),this.newPromptInsertionIndex=A,this.idxToRendererPropsCache.clear(),y.isCancellationRequested){d();return}this.forceUpdate(()=>{d(),this.props.filter&&this.props.filterProvider&&this.props.filterProvider.filterAlways&&this.filterItems(this.props.filter)})};return()=>{const d=(A,S)=>{const D=!!this.willUpdateTasks;if(this.willUpdateTasks=0,!D)S.resolve();else{this.updateCancelToken.cancel(),this.updateCancelToken=new _.CancellationTokenSource;const I=this.updateCancelToken.token;requestAnimationFrame(()=>{if(I.isCancellationRequested){S();return}f(S,I)})}return A};let y;const b=new Promise(A=>y=A);return b.then(()=>{this.onDidUpdateEmitter.fire()}),d(b,y),b}})(),this.batchUpdate=()=>(this.willUpdateTasks++,this.queueUpdatePromise=this.queueUpdateThrottler.queue(this.doBatchUpdate),this.queueUpdatePromise),this.promptNewTreeNode=f=>this.promptNew(f),this.promptNewCompositeTreeNode=f=>this.promptNew(f,a.TreeNodeType.CompositeTreeNode),this.promptRename=async(f,d)=>{var y,b;const{root:A}=this.props.model,S=typeof f=="string"?await A.getTreeNodeByPath(f):f;if(!s.TreeNode.is(S)||s.CompositeTreeNode.isRoot(S))throw new TypeError(`Cannot rename object of type ${typeof S}`);const D=new m.RenamePromptHandle(d||S.name,S);return this.promptHandle=D,this.promptTargetID=S.id,A.isItemVisibleAtSurface(S)?await this.batchUpdate():await S.parent.setExpanded(!0),(b=(y=this.listRef)===null||y===void 0?void 0:y.current)===null||b===void 0||b.scrollToItem(A.getIndexAtTreeNodeId(this.promptTargetID)),this.promptHandle},this.expandNode=async f=>{const{root:d}=this.props.model,y=typeof f=="string"?d.getTreeNodeByPath(f):f;if(this.expandNodeCancelToken.token.isCancellationRequested&&(this.expandNodeCancelToken=new _.CancellationTokenSource),y&&s.CompositeTreeNode.is(y)&&!y.disposed)return y.setExpanded(!1,!1,!0,this.expandNodeCancelToken.token)},this.collapseNode=async f=>{const{root:d}=this.props.model,y=typeof f=="string"?d.getTreeNodeByPath(f):f;if(y&&s.CompositeTreeNode.is(y)&&!y.disposed)return this.expandNodeCancelToken.cancel(),y.setCollapsed()},this._isEnsuring=!1,this.ensureVisible=async(f,d="smart",y=!1)=>{if(this._isEnsuring)return;this._isEnsuring=!0;const{root:b}=this.props.model,A=typeof f=="string"?b.getTreeNodeByPath(f)||await b.loadTreeNodeByPath(f):f;if(A&&!b.isItemVisibleAtSurface(A)&&await b.loadTreeNodeByPath(A.path),!s.TreeNode.is(A)||s.CompositeTreeNode.isRoot(A)){this._isEnsuring=!1;return}return y?this.tryScrollIntoViewWhileStable(A,d):this.tryScrollIntoView(A,d),this._isEnsuring=!1,A},this.getItemAtIndex=f=>{const{filter:d}=this.props;if(d&&this.filterFlattenBranch.length>0)return this.idToFilterRendererPropsCache.get(this.filterFlattenBranch[f]);let y=this.idxToRendererPropsCache.get(f);if(!y){const b=this.newPromptInsertionIndex,{root:A}=this.props.model;if(b>-1&&this.promptHandle&&this.promptHandle.constructor===p.NewPromptHandle&&!this.promptHandle.destroyed)if(f===b)y={itemType:a.TreeNodeType.NewPrompt,item:this.promptHandle};else{const S=A.getTreeNodeAtIndex(f-(f>=b?1:0));y={itemType:s.CompositeTreeNode.is(S)?a.TreeNodeType.CompositeTreeNode:a.TreeNodeType.TreeNode,item:S}}else{const S=A.getTreeNodeAtIndex(f);S&&S.id===this.promptTargetID&&this.promptHandle&&this.promptHandle.constructor===m.RenamePromptHandle&&!this.promptHandle.destroyed?y={itemType:a.TreeNodeType.RenamePrompt,item:this.promptHandle}:y={itemType:s.CompositeTreeNode.is(S)?a.TreeNodeType.CompositeTreeNode:a.TreeNodeType.TreeNode,item:S}}this.idxToRendererPropsCache.set(f,y)}return y},this.handleListScroll=({scrollOffset:f})=>{const{model:d,height:y,itemHeight:b}=this.props;if(d.state.saveScrollOffset(f),!this.promptHandle||!b)return;let A;this.promptHandle instanceof p.NewPromptHandle&&this.newPromptInsertionIndex>-1?A=this.newPromptInsertionIndex:A=d.root.getIndexAtTreeNodeId(this.promptHandle.id),(f+y<A*b||A*b<f)&&this.promptHandle.destroy()},this.getItemKey=f=>{const d=this.getItemAtIndex(f),{getItemKey:y}=this.props,b=y?y(d):void 0;return b??f},this.filterItems=f=>{const{model:{root:d},filterProvider:y}=this.props;if(this.filterWatcherDisposeCollection.dispose(),this.idToFilterRendererPropsCache.clear(),!f)return;const b=/\//.test(f),A=new Set,S=new Map,D=[];for(let I=0,w=d.branchSize;I<w;I++){const T=d.getTreeNodeAtIndex(I);D.push(T)}if(b)D.forEach(I=>{if(I&&I.path.indexOf(f)>-1){A.add(I.id);let w=I.parent;for(;w&&!s.CompositeTreeNode.isRoot(w);)A.add(w.id),w=w.parent}});else{let I=[];y?I=r.default.filter(f,D,y.fuzzyOptions()):I=r.default.filter(f,D,c.FILTER_FUZZY_OPTIONS);const w=T=>{const R=T.children||[];if(R.length>0)for(const P of R)A.add(P.id),s.CompositeTreeNode.is(P)&&P.expanded&&w(P)};I.forEach(T=>{const R=T.original;A.add(R.id);let P=R.parent;for(S.set(R.id,()=>o.default.createElement("div",{style:{flex:1,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},dangerouslySetInnerHTML:{__html:T.string||""}})),s.CompositeTreeNode.is(R)&&w(R);P&&!s.CompositeTreeNode.isRoot(P);)A.add(P.id),P=P.parent})}this.filterFlattenBranch=new Array(A.size);for(let I=0,w=0,T=d.branchSize;w<T;w++){const R=d.getTreeNodeAtIndex(w);R&&A.has(R.id)&&(this.filterFlattenBranch[I]=R.id,s.CompositeTreeNode.is(R)?this.idToFilterRendererPropsCache.set(R.id,{item:R,itemType:a.TreeNodeType.CompositeTreeNode,template:S.has(R.id)?S.get(R.id):void 0}):this.idToFilterRendererPropsCache.set(R.id,{item:R,itemType:a.TreeNodeType.TreeNode,template:S.has(R.id)?S.get(R.id):void 0}),I++)}this.filterWatcherDisposeCollection.push(d.watcher.on(a.TreeNodeEvent.DidChangeExpansionState,(I,w)=>{const T=this.filterFlattenBranch.indexOf(I.id);if(w){const R=this.filterFlattenBranchChildrenCache.get(I.id);R&&R.length>0&&(this.filterFlattenBranch=(0,s.spliceArray)(this.filterFlattenBranch,T+1,0,R),this.filterFlattenBranchChildrenCache.delete(I.id))}else{const R=[];for(let P=T+1;P<this.filterFlattenBranch.length;P++){const O=d.getTreeNodeById(this.filterFlattenBranch[P]);if(O&&O.depth>I.depth)R.push(O.id);else break}this.filterFlattenBranchChildrenCache.set(I.id,R),this.filterFlattenBranch=(0,s.spliceArray)(this.filterFlattenBranch,T+1,R.length)}})),this.filterWatcherDisposeCollection.push(_.Disposable.create(()=>{this.filterFlattenBranchChildrenCache.clear()}))},this.renderItem=({index:f,style:d})=>{var y,b,A,S,D,I,w;const{children:T,overflow:R="ellipsis",supportDynamicHeights:P}=this.props,O=this.getItemAtIndex(f),M=(0,o.useRef)(null),k=(0,o.useMemo)(()=>P?()=>{let j=0;if(M.current){const Q=M.current;j=Array.from(Q.children).reduce((G,Z)=>G+Z.getBoundingClientRect().height,0)}return j&&(this.dynamicSizeMap.set(f,j),this.layoutItem()),Math.max(j,c.DEFAULT_ITEM_HEIGHT)}:()=>{},[P]);if((0,o.useEffect)(()=>{M.current&&k()},[]),!O)return o.default.createElement(o.default.Fragment,null);const{item:F,itemType:L,template:B}=O;if(!F)return o.default.createElement("div",{style:d});let U;s.CompositeTreeNode.is(F)?U={"aria-label":(y=F.accessibilityInformation)===null||y===void 0?void 0:y.label,"aria-expanded":F.expanded,"aria-level":F.depth,"aria-setsize":(A=(b=F.parent)===null||b===void 0?void 0:b.children)===null||A===void 0?void 0:A.length,"aria-posinset":f}:s.TreeNode.is(F)&&(U={"aria-label":(S=F.accessibilityInformation)===null||S===void 0?void 0:S.label,"aria-level":F.depth,"aria-setsize":(I=(D=F.parent)===null||D===void 0?void 0:D.children)===null||I===void 0?void 0:I.length,"aria-posinset":f});const W=R==="ellipsis"?d:{...d,width:"auto",minWidth:"100%"};return o.default.createElement("div",{ref:M,style:W,role:((w=F.accessibilityInformation)===null||w===void 0?void 0:w.role)||"treeiem",...U},o.default.createElement(g.NodeRendererWrap,{item:F,depth:F.depth,itemType:L,template:B,hasPrompt:!!this.promptHandle&&!this.promptHandle.destroyed,expanded:s.CompositeTreeNode.is(F)?F.expanded:void 0},T))},this.layoutItem=()=>{var f,d,y,b;if(this.props.supportDynamicHeights&&this.listRef&&!((f=this.listRef)===null||f===void 0)&&f.current&&"_getRangeToRender"in((d=this.listRef)===null||d===void 0?void 0:d.current)){const A=(y=this.listRef)===null||y===void 0?void 0:y.current._getRangeToRender();if(A){const S=A[0];((b=this.listRef)===null||b===void 0?void 0:b.current).resetAfterIndex(S)}}}}getNewPromptInsertIndex(f,d){const{root:y}=this.props.model;let b=f+1;for(;b-f<=d.branchSize;b++){const A=y.getTreeNodeAtIndex(b);if(!A)return b;if(!s.CompositeTreeNode.is(A)){if(A?.depth>d.depth+1)continue;return b}}return b}UNSAFE_componentWillUpdate(f){this.props.filter!==f.filter&&this.filterItems(f.filter),this.props.model!==f.model&&(this.idxToRendererPropsCache.clear(),this.idToFilterRendererPropsCache.clear(),this.dynamicSizeMap.clear())}componentDidUpdate(f){var d,y;if(this.props.model!==f.model){this.disposables.dispose();const{model:b}=this.props;(y=(d=this.listRef)===null||d===void 0?void 0:d.current)===null||y===void 0||y.scrollTo(b.state.scrollOffset),this.disposables.push(b.onChange(this.batchUpdate.bind(this))),this.disposables.push(b.state.onDidLoadState(()=>{var A,S;(S=(A=this.listRef)===null||A===void 0?void 0:A.current)===null||S===void 0||S.scrollTo(b.state.scrollOffset)})),this.onDidModelChangeEmitter.fire({preModel:f.model,nextModel:b})}}async promptNew(f,d=a.TreeNodeType.TreeNode){var y,b;const{root:A}=this.props.model;let S=typeof f=="string"?await A.getTreeNodeByPath(f):f;if(d!==a.TreeNodeType.TreeNode&&d!==a.TreeNodeType.CompositeTreeNode)throw new TypeError(`Invalid type supplied. Expected 'TreeNodeType.TreeNode' or 'TreeNodeType.CompositeTreeNode', got ${d}`);if(S&&!s.CompositeTreeNode.is(S)&&(S=S.parent,!s.CompositeTreeNode.is(S)))throw new TypeError(`Cannot create new prompt at object of type ${typeof S}`);if(!S)throw new Error(`Cannot find node at ${f}`);const D=new p.NewPromptHandle(d,S);return this.promptHandle=D,this.promptTargetID=S.id,S!==A&&(!S.expanded||!A.isItemVisibleAtSurface(S))?await S.setExpanded(!0):await this.batchUpdate(),this.newPromptInsertionIndex>=0?(b=(y=this.listRef)===null||y===void 0?void 0:y.current)===null||b===void 0||b.scrollToItem(this.newPromptInsertionIndex):this.tryScrollIntoViewWhileStable(this.promptHandle),this.promptHandle}tryScrollIntoView(f,d="auto"){var y,b,A,S;const{root:D}=this.props.model;f.constructor===p.NewPromptHandle&&!f.destroyed?(b=(y=this.listRef)===null||y===void 0?void 0:y.current)===null||b===void 0||b.scrollToItem(this.newPromptInsertionIndex):D.isItemVisibleAtSurface(f)&&((S=(A=this.listRef)===null||A===void 0?void 0:A.current)===null||S===void 0||S.scrollToItem(D.getIndexAtTreeNode(f),d))}tryScrollIntoViewWhileStable(f,d="smart"){const{root:y}=this.props.model;if(this.tryEnsureVisibleTimes>c.TRY_ENSURE_VISIBLE_MAX_TIMES){this.tryEnsureVisibleTimes=0;return}_.Event.once(this.props.model.onChange)(async()=>{var b,A,S,D;await this.queueUpdatePromise,f.constructor===p.NewPromptHandle&&!f.destroyed?(A=(b=this.listRef)===null||b===void 0?void 0:b.current)===null||A===void 0||A.scrollToItem(this.newPromptInsertionIndex):y.isItemVisibleAtSurface(f)?((D=(S=this.listRef)===null||S===void 0?void 0:S.current)===null||D===void 0||D.scrollToItem(y.getIndexAtTreeNode(f),d),this.tryEnsureVisibleTimes=0):(this.tryEnsureVisibleTimes++,this.tryScrollIntoViewWhileStable(f,d))})}componentDidMount(){var f,d;const{model:y,onReady:b}=this.props;if((d=(f=this.listRef)===null||f===void 0?void 0:f.current)===null||d===void 0||d.scrollTo(y.state.scrollOffset),this.disposables.push(y.onChange(this.batchUpdate.bind(this))),this.disposables.push(y.state.onDidLoadState(()=>{var A,S;(S=(A=this.listRef)===null||A===void 0?void 0:A.current)===null||S===void 0||S.scrollTo(y.state.scrollOffset)})),typeof b=="function"){const A={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:_.Event.once(this.onDidUpdateEmitter.event),onError:this.onErrorEmitter.event};b(A)}}componentWillUnmount(){this.disposables.dispose()}set promptHandle(f){this._promptHandle!==f&&(this._promptHandle instanceof m.PromptHandle&&!this._promptHandle.destroyed&&this._promptHandle.destroy(),f.onDestroy(this.batchUpdate),this._promptHandle=f)}get promptHandle(){return this._promptHandle}get adjustedRowCount(){const{root:f}=this.props.model,{filter:d}=this.props;return d?this.filterFlattenBranch.length:this.newPromptInsertionIndex>-1&&this.promptHandle&&this.promptHandle.constructor===p.NewPromptHandle&&!this.promptHandle.destroyed?f.branchSize+1:f.branchSize}getItemSize(f){return this.dynamicSizeMap.get(f)||this.props.itemHeight}render(){const{children:f,itemHeight:d,width:y="100%",height:b,style:A,className:S,placeholder:D,overScanCount:I,leaveBottomBlank:w,supportDynamicHeights:T}=this.props;if(D&&this.adjustedRowCount===0){const P=D;return o.default.createElement(P,null)}const R={children:f,height:b,width:y,itemData:[],itemCount:this.adjustedRowCount,itemKey:this.getItemKey,overscanCount:I||c.DEFAULT_OVER_SCAN_COUNT,onScroll:this.handleListScroll,style:{transform:"translate3d(0px, 0px, 0px)",...A},className:S,outerElementType:v.ScrollbarsVirtualList};return w&&(R.innerElementType=u),T?o.default.createElement(l.VariableSizeList,{ref:this.listRef,itemSize:this.getItemSize.bind(this),...R},this.renderItem):o.default.createElement(l.FixedSizeList,{ref:this.listRef,itemSize:d,...R},this.renderItem)}}t.RecycleTree=c,c.PADDING_BOTTOM_SIZE=22,c.DEFAULT_ITEM_HEIGHT=22,c.TRY_ENSURE_VISIBLE_MAX_TIMES=5,c.FILTER_FUZZY_OPTIONS={pre:"<match>",post:"</match>",extract:E=>E?.name||""},c.DEFAULT_OVER_SCAN_COUNT=50},13429:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NodeRendererWrap=void 0;const r=e(85608).__importDefault(e(14041));class o extends r.default.Component{render(){const{item:_,itemType:v,children:m,template:p,hasPrompt:s}=this.props;return r.default.createElement(m,{item:_,itemType:v,template:p,hasPrompt:s,key:_.id})}shouldComponentUpdate(_){return!0}}t.NodeRendererWrap=o},75821:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BasicRecycleTree=void 0;const n=e(85608),r=n.__importStar(e(14041)),o=n.__importDefault(e(26460)),l=e(58998),_=e(57621),v=e(64013),m=e(84225),p=e(17462),s=e(78569),g=e(45203);e(12794),e(34728),n.__exportStar(e(92532),t);const a=({width:h,height:u,itemHeight:c=22,itemClassname:E,indent:f,baseIndent:d,containerClassname:y,onClick:b,onContextMenu:A,onTwistierClick:S,onIconClick:D,onDbClick:I,resolveChildren:w,sortComparator:T,treeData:R,inlineMenus:P,inlineMenuActuator:O,onReady:M,contextMenus:k,contextMenuActuator:F,treeName:L,leaveBottomBlank:B=!0})=>{const[U,W]=(0,r.useState)({show:!1}),[j,Q]=(0,r.useState)([]),[G,Z]=(0,r.useState)(),$=(0,r.useRef)(!1),V=(0,r.useRef)(),H=(0,r.useRef)(),K=(0,r.useRef)(null),Y=(0,r.useCallback)(Pe=>{var we;return r.default.createElement(p.BasicTreeNodeRenderer,{item:Pe.item,itemType:Pe.itemType,itemHeight:c,indent:f,baseIndent:d,className:E,inlineMenus:P,inlineMenuActuator:O,onClick:he,onDbClick:q,onContextMenu:Ee,onTwistierClick:te,onIconClick:me,decorations:(we=V.current)===null||we===void 0?void 0:we.decorations.getDecorations(Pe.item)})},[G]);(0,r.useEffect)(()=>{var Pe,we;V.current=new g.BasicTreeService(R,w,T,{treeName:L});const _e=(Pe=V.current)===null||Pe===void 0?void 0:Pe.onDidUpdateTreeModel(Te=>{X(Te)}),Ne=()=>{var Te;(Te=V.current)===null||Te===void 0||Te.enactiveFocusedDecoration()};return(we=K.current)===null||we===void 0||we.addEventListener("blur",Ne,!0),()=>{var Te,We;$.current=!0,(Te=K.current)===null||Te===void 0||Te.removeEventListener("blur",Ne,!0),_e.dispose(),(We=V.current)===null||We===void 0||We.dispose()}},[]),(0,r.useEffect)(()=>{var Pe;(Pe=V.current)===null||Pe===void 0||Pe.updateTreeData(R)},[R]);const X=async Pe=>{Pe&&await Pe.ensureReady,$.current||Z(Pe)},oe=async Pe=>{var we;(we=V.current)===null||we===void 0||we.activeFocusedDecoration(Pe),s.BasicCompositeTreeNode.is(Pe)&&ue(Pe)},ie=(0,r.useCallback)(Pe=>{M&&M({...Pe,selectItem:oe,focusItem:async we=>{var _e;const Ne=`/${L}/${we}`;await G?.ensureReady;const Te=await Pe.ensureVisible(Ne,"auto",!0);Te&&((_e=V.current)===null||_e===void 0||_e.activeFocusedDecoration(Te))}}),H.current=Pe},[V.current]),he=(0,r.useCallback)((Pe,we)=>{oe(we),b&&b(Pe,we)},[b]),me=(0,r.useCallback)((Pe,we)=>{D&&D(Pe,we)},[D]),q=(0,r.useCallback)((Pe,we)=>{I&&I(Pe,we)},[I]),Ee=(0,r.useCallback)((Pe,we)=>{var _e,Ne;if(we?(_e=V.current)===null||_e===void 0||_e.activeContextMenuDecoration(we):(Ne=V.current)===null||Ne===void 0||Ne.enactiveFocusedDecoration(),A)A(Pe,we);else{let Te=[];Array.isArray(k)?Te=k:typeof k=="function"&&(Te=k(we));const We=new Set,pe={};for(const Ue of Te)We.add(Ue.group||"-1"),pe[Ue.group||"-1"]||(pe[Ue.group||"-1"]=[]),pe[Ue.group||"-1"].push(Ue);const re=Array.from(We).sort((Ue,Ye)=>Ue.localeCompare(Ye,"kn",{numeric:!0}));let ge=[];for(const Ue of re)ge=ge.concat(pe[Ue].map(Ye=>({id:Ye.id,label:Ye.title,group:Ye.group}))),ge=ge.concat([{id:`${Ue}_divider`,label:"",type:"divider"}]);ge.pop(),JSON.stringify(ge)!==JSON.stringify(j)&&Q(ge);const{x:De,y:Ae}=Pe.nativeEvent;W({show:!0,point:{pageX:De,pageY:Ae},activeNode:we})}},[I]),ue=(0,r.useCallback)(Pe=>{var we,_e;Pe.expanded?(we=H.current)===null||we===void 0||we.collapseNode(Pe):(_e=H.current)===null||_e===void 0||_e.expandNode(Pe)},[]),te=(0,r.useCallback)((Pe,we)=>{s.BasicCompositeTreeNode.is(we)&&ue(we),S&&S(Pe,we)},[S]),fe=(0,r.useCallback)(()=>{var Pe;(Pe=V.current)===null||Pe===void 0||Pe.enactiveFocusedDecoration()},[]),Ie=(0,r.useCallback)((Pe,we)=>{A&&A(Pe,we)},[]),Me=(0,r.useCallback)(()=>{W({...U,show:!1})},[U]),Be=(0,r.useCallback)(()=>k?r.default.createElement(o.default,{popupPlacement:"bottomLeft",popupVisible:U.show,action:["contextMenu"],popupAlign:{overflow:{adjustX:1,adjustY:1},offset:[window.scrollX,window.scrollY]},point:U.point||{},builtinPlacements:m.placements,popup:r.default.createElement(l.ClickOutside,{className:"basic_tree_menubars",mouseEvents:["click","contextmenu"],onOutsideClick:Me},j.map(({id:Pe,label:we,type:_e})=>r.default.createElement(v.BasicMenuItem,{key:Pe,id:Pe,label:we,type:_e,focusMode:U.show,onClick:Ne=>{F&&F(U.activeNode,Ne),W({show:!1})}}))),alignPoint:!0}):null,[j,F,U]);return r.default.createElement("div",{className:"basic_tree",tabIndex:-1,ref:K,onClick:fe,onContextMenu:Ie},Be(),G?r.default.createElement(_.RecycleTree,{height:u,width:h,itemHeight:c,model:G,onReady:ie,className:y,leaveBottomBlank:B},Y):null)};t.BasicRecycleTree=a},64013:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BasicMenuItem=void 0;const n=e(85608),r=n.__importDefault(e(53373)),o=n.__importDefault(e(14041)),l=({id:_,label:v,type:m,focusMode:p,onClick:s})=>{const[g,a]=o.default.useState(!1),h=o.default.useCallback(()=>{a(p?!0:c=>!c),s(_)},[_]),u=o.default.useCallback(()=>{},[_,p]);return m==="divider"?o.default.createElement("div",{className:"basic_menu_item_divider"}):o.default.createElement("div",{className:(0,r.default)("basic_menu_item",{"menu-open":g}),onMouseOver:u,onClick:h},v)};t.BasicMenuItem=l},84225:(x,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.placements=void 0;const e={adjustX:1,adjustY:1},n=[0,0];t.placements={bottomLeft:{points:["tl","bl"],overflow:e,offset:[0,4],targetOffset:n}}},78569:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BasicTreeNode=t.BasicCompositeTreeNode=t.BasicTreeRoot=void 0;const n=e(43685);class r extends n.CompositeTreeNode{constructor(v,m,p,s={}){super(v,m,void 0,{treeName:s.treeName}),this._raw=p}get name(){var v;return(v=this.getMetadata("treeName"))!==null&&v!==void 0?v:`BasicTreeRoot_${this.id}`}get raw(){return this._raw}get expanded(){return!0}}t.BasicTreeRoot=r;class o extends n.CompositeTreeNode{constructor(v,m,p,s){super(v,m,void 0,{name:p.label}),this.isExpanded=p.expanded||!1,this.id=s||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}}t.BasicCompositeTreeNode=o;class l extends n.TreeNode{constructor(v,m,p,s){super(v,m,void 0,{name:p.label}),this.id=s||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}}t.BasicTreeNode=l},17462:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BasicTreeNodeRenderer=void 0;const n=e(85608),r=n.__importDefault(e(53373)),o=n.__importStar(e(14041)),l=e(48412),_=e(54713),v=e(3660),m=e(78569),p=e(92532);e(12794);const s=({item:g,className:a,itemHeight:h=22,indent:u=8,baseIndent:c=8,onClick:E,onDbClick:f,onTwistierClick:d,onIconClick:y,onContextMenu:b,decorations:A,inlineMenus:S=[],inlineMenuActuator:D=()=>{}})=>{const I=(0,o.useCallback)($=>{E&&($.stopPropagation(),E($,g))},[E]),w=(0,o.useCallback)($=>{f&&($.stopPropagation(),f($,g))},[f]),T=(0,o.useCallback)($=>{b&&($.stopPropagation(),$.preventDefault(),b($,g))},[b]),R=(0,o.useCallback)($=>{$.stopPropagation(),d?d($,g):E&&E($,g)},[E,d]),P=(0,o.useCallback)($=>{$.stopPropagation(),y?y($,g):E&&E($,g)},[E,y]);let M=(g.depth>0?g.depth-1:0)*u;c&&(M+=c),g.indentOffset&&(M+=g.indentOffset);const k={height:h,lineHeight:`${h}px`,paddingLeft:`${M}px`},F=(0,o.useCallback)($=>o.default.createElement(_.Icon,{onClick:P,icon:$.icon,className:(0,r.default)("icon",$.iconClassName)}),[]),L=(0,o.useCallback)($=>$.displayName.replace(/\n/g,"\u21B5"),[]),B=(0,o.useCallback)($=>$.displayName&&o.default.createElement("div",{className:(0,r.default)("segment","display_name")},L($)),[]),U=(0,o.useCallback)($=>$.renderLabel,[]),W=(0,o.useCallback)($=>$.description?typeof $.description=="string"?o.default.createElement("div",{className:(0,r.default)("segment_grow","description")},$.description):$.description:null,[]),j=(0,o.useCallback)($=>{if(Array.isArray(S))return S;if(typeof S=="function")return S($)},[S]),Q=()=>{var $;const V=m.BasicCompositeTreeNode.is(g),H=($=j(g))===null||$===void 0?void 0:$.filter(Y=>V?Y.position===p.IBasicInlineMenuPosition.TREE_CONTAINER:Y.position===p.IBasicInlineMenuPosition.TREE_NODE);if(!H?.length)return null;const K=(0,o.useCallback)((Y,X)=>{Y.stopPropagation(),D(g,X)},[]);return o.default.createElement("div",{className:(0,r.default)("segment","tail")},H.map(Y=>o.default.createElement(l.Button,{style:{marginRight:"5px"},type:"icon",key:`${g.id}-${Y.icon}`,icon:Y.icon,title:Y.title,onClick:X=>K(X,Y)})))},G=($,V)=>A&&A?.classlist.indexOf(p.DECORATIONS.LOADING)>-1?o.default.createElement(v.Loading,null):o.default.createElement(_.Icon,{className:(0,r.default)("segment","expansion_toggle",$.twisterClassName,{mod_collapsed:!$.expanded}),onClick:V,icon:"arrow-right"}),Z=$=>{if(!$.expandable)return o.default.createElement("div",{className:(0,r.default)("segment","expansion_toggle",$.twisterPlaceholderClassName)});if(m.BasicCompositeTreeNode.is($))return G($,R)};return o.default.createElement("div",{key:g.id,onClick:I,onDoubleClick:w,onContextMenu:T,className:(0,r.default)("tree_node",a,A?A.classlist:null,g.className),style:k,"data-id":g.id},o.default.createElement("div",{className:"content"},Z(g),F(g),o.default.createElement("div",{className:"overflow_wrap"},U(g)||B(g),W(g)),Q()))};t.BasicTreeNodeRenderer=s},45203:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BasicTreeModel=t.BasicTreeService=void 0;const n=e(70392),r=e(43685),o=e(34054),l=e(78569),_=e(92532);class v extends r.Tree{constructor(s,g,a,h={}){super(),this._treeData=s,this._resolveChildren=g,this._sortComparator=a,this.treeOptions=h,this.selectedDecoration=new r.Decoration(_.DECORATIONS.SELECTED),this.focusedDecoration=new r.Decoration(_.DECORATIONS.FOCUSED),this.contextMenuDecoration=new r.Decoration(_.DECORATIONS.ACTIVED),this.loadingDecoration=new r.Decoration(_.DECORATIONS.LOADING),this._selectedNodes=[],this.disposableCollection=new n.DisposableCollection,this.decorationDisposableCollection=new n.DisposableCollection,this.onDidUpdateTreeModelEmitter=new n.Emitter,this.sortComparator=(u,c)=>{if(this._sortComparator){const E=this._sortComparator(u.raw,c.raw);if(typeof E<"u")return E}return super.sortComparator(u,c)},this.activeFocusedDecoration=u=>{var c;this._contextMenuNode&&(this.clearDecoration(this.contextMenuDecoration),this.clearDecoration(this.focusedDecoration),this.clearDecoration(this.selectedDecoration),this._contextMenuNode=void 0),u&&(this.selectedNodes.length>0&&this.clearDecoration(this.selectedDecoration),this.focusedNode&&(this.clearDecoration(this.focusedDecoration),this._focusedNode=void 0),this.selectedDecoration.addTarget(u),this.focusedDecoration.addTarget(u),this._focusedNode=u,this._selectedNodes=[u],(c=this.model)===null||c===void 0||c.dispatchChange())},this.activeContextMenuDecoration=u=>{var c;this._contextMenuNode&&(this.clearDecoration(this.contextMenuDecoration),this._contextMenuNode=void 0),this.focusedNode&&(this.clearDecoration(this.focusedDecoration),this._focusedNode=void 0),this.contextMenuDecoration.addTarget(u),this._contextMenuNode=u,(c=this.model)===null||c===void 0||c.dispatchChange()},this.enactiveFocusedDecoration=()=>{var u;this.focusedNode&&(this.clearDecoration(this.focusedDecoration),this._focusedNode=void 0,(u=this.model)===null||u===void 0||u.dispatchChange())},this.disposableCollection.push(this.onDidUpdateTreeModelEmitter)}setUpTreeModel(){this._root=new l.BasicTreeRoot(this,void 0,{children:this._treeData,label:"",command:"",icon:""},{treeName:this.treeOptions.treeName}),this._model=new m,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(s){this.decorationDisposableCollection.dispose(),this._decorations=new r.DecorationsManager(s),this._decorations.addDecoration(this.selectedDecoration),this._decorations.addDecoration(this.focusedDecoration),this._decorations.addDecoration(this.contextMenuDecoration),this._decorations.addDecoration(this.loadingDecoration),this.decorationDisposableCollection.push(s.watcher.on(o.TreeNodeEvent.WillResolveChildren,g=>{this.loadingDecoration.addTarget(g)})),this.decorationDisposableCollection.push(s.watcher.on(o.TreeNodeEvent.DidResolveChildren,g=>{this.loadingDecoration.removeTarget(g)})),this.decorationDisposableCollection.push(this._decorations)}updateTreeData(s){this._treeData=s,this.resetState(),this.setUpTreeModel()}async resolveChildren(s){return this._resolveChildren?this.transformTreeNode(s,this._resolveChildren(s?.raw)||[]):this.transformTreeNode(s,s?.raw.children||[])}transformTreeNode(s,g){if(!g)return[];const a=[];for(const h of g)h.children?a.push(new l.BasicCompositeTreeNode(this,s,h)):a.push(new l.BasicTreeNode(this,s,h));return a}get selectedNodes(){return this._selectedNodes}get focusedNode(){return this._focusedNode}get contextMenuNode(){return this._contextMenuNode}clearDecoration(s){for(const g of s.appliedTargets.keys())s.removeTarget(g)}dispose(){super.dispose(),this.disposableCollection.dispose(),this.decorationDisposableCollection.dispose()}}t.BasicTreeService=v;class m extends r.TreeModel{}t.BasicTreeModel=m},92532:(x,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DECORATIONS=t.IBasicInlineMenuPosition=void 0;var e;(function(n){n[n.TREE_NODE=1]="TREE_NODE",n[n.TREE_CONTAINER=2]="TREE_CONTAINER"})(e||(t.IBasicInlineMenuPosition=e={})),t.DECORATIONS={SELECTED:"mod_selected",FOCUSED:"mod_focused",ACTIVED:"mod_actived",LOADING:"mod_loading"}},24786:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RecycleTreeAdaptiveDecorator=void 0;const r=e(85608).__importDefault(e(14041)),o=e(34054),l=_=>v=>{const{model:m,itemHeight:p,onReady:s}=v,g=r.default.useRef(),a=r.default.useRef(!1),[h,u]=r.default.useState(0),c=()=>{u(m.root.branchSize*p)},E=f=>{s&&s({...f,promptNewTreeNode:async d=>{var y;const b=await f.promptNewTreeNode(d);return!((y=g.current)===null||y===void 0)&&y.root.branchSize?u(g.current.root.branchSize*p+p):u(p),a.current=!1,b.onDestroy(()=>{var A;!((A=g.current)===null||A===void 0)&&A.root.branchSize&&u(g.current.root.branchSize*p)}),b.onCancel(()=>{g.current&&u(g.current.root.branchSize*p)}),b.onBlur(()=>a.current),b},promptNewCompositeTreeNode:async d=>{var y;const b=await f.promptNewCompositeTreeNode(d);return!((y=g.current)===null||y===void 0)&&y.root.branchSize?u(g.current.root.branchSize*p+p):u(p),b.onDestroy(()=>{var A;!((A=g.current)===null||A===void 0)&&A.root.branchSize&&u(g.current.root.branchSize*p)}),b.onCancel(()=>{var A;!((A=g.current)===null||A===void 0)&&A.root.branchSize&&u(g.current.root.branchSize*p)}),b.onBlur(()=>a.current),b}})};return r.default.useEffect(()=>{g.current=m,g.current.root&&(u(g.current.root.branchSize*p),g.current.root.watcher.on(o.TreeNodeEvent.DidChangeExpansionState,c))},[m]),r.default.useEffect(()=>{setTimeout(()=>{a.current=!0},100)},[h]),r.default.createElement(r.default.Fragment,null,r.default.createElement(_,{...v,height:h,onReady:E}))};t.RecycleTreeAdaptiveDecorator=l},326:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RecycleTreeFilterDecorator=void 0;const n=e(85608),r=n.__importDefault(e(97331)),o=n.__importStar(e(14041)),l=e(54713),_=e(50708),v=e(4981);e(69715);const m=30,p=500,s=a=>{const{localize:h}=o.default.useContext(v.LocalizeContext);return o.default.createElement("div",{className:"kt-recycle-tree-filter-wrapper"},o.default.createElement(_.Input,{hasClear:!0,autoFocus:!0,className:"kt-recycle-tree-filter-input",size:"small",...a,placeholder:a.placeholder||h("tree.filter.placeholder"),addonBefore:o.default.createElement(l.Icon,{className:"kt-recycle-tree-filter-icon",icon:"retrieval"})}))},g=a=>h=>{const[u,c]=o.default.useState(""),[E,f]=o.default.useState(""),{beforeFilterValueChange:d,filterEnabled:y,height:b,filterPlaceholder:A,filterAfterClear:S,onReady:D,onFilterBlur:I,filterAutoFocus:w,...T}=h,R=(0,r.default)(async M=>{d&&await d(M),f(M)},p),P=(0,o.useCallback)(M=>{c(M),R(M)},[u]),O=(0,o.useCallback)(M=>{D&&D({...M,clearFilter:()=>{f(""),c("")}})},[D]);return o.default.createElement(o.default.Fragment,null,y&&o.default.createElement(s,{afterClear:S,placeholder:A,value:u,autoFocus:w,onBlur:I,onValueChange:P}),o.default.createElement(a,{...T,height:b-(y?m:0),onReady:O,filter:E}))};t.RecycleTreeFilterDecorator=g},72731:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=e(85608);n.__exportStar(e(326),t),n.__exportStar(e(24786),t)},91416:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=e(85608);n.__exportStar(e(57621),t),n.__exportStar(e(13429),t),n.__exportStar(e(48103),t),n.__exportStar(e(43685),t),n.__exportStar(e(34054),t),n.__exportStar(e(72731),t),n.__exportStar(e(75821),t)},65601:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NewPromptHandle=void 0;const n=e(43685),r=e(65747);class o extends r.PromptHandle{constructor(_,v){super(),this.type=_,this.parent=v,this._id=n.TreeNode.nextId()}get id(){return this._id}get depth(){return this.parent.depth+1}}t.NewPromptHandle=o},65747:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PromptHandle=t.VALIDATE_CLASS_NAME=t.PROMPT_VALIDATE_TYPE=void 0;const n=e(70392),r=e(50708),o=e(84605),l=p=>new Promise(s=>setTimeout(s,p));var _;(function(p){p[p.INFO=1]="INFO",p[p.ERROR=2]="ERROR",p[p.WARNING=3]="WARNING"})(_||(t.PROMPT_VALIDATE_TYPE=_={}));var v;(function(p){p.INFO="validate-info",p.ERROR="validate-error",p.WARNING="validate-warning"})(v||(t.VALIDATE_CLASS_NAME=v={}));class m{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=s=>{s.stopPropagation()},this.handleDBClick=s=>{s.stopPropagation()},this.handleCompositionstart=()=>{this._inComposition=!0},this.handleCompositionend=()=>{this._inComposition=!1},this.handleKeyup=()=>{this._inComposition||this.onChangeEmitter.fire(this.$.value)},this.handleKeydown=async s=>{if(!this._inComposition){if(s.key==="Escape"){if((await this.onCancelEmitter.fireAndAwait(this.$.value)).some(a=>a.result===!1||!!a.err))return;this.destroy()}if(s.key==="Enter"){if(this.isInPendingCommitState=!0,this.$.disabled=!0,(await this.onCommitEmitter.fireAndAwait(this.$.value)).some(a=>a.result===!1||!!a.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 s=>{await l(0),!(!this.$.isConnected&&!this.destroyed||(await this.onBlurEmitter.fireAndAwait(this.$.value)).some(a=>a.result===!1||!!a.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,r.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(s,g){this.$.setSelectionRange(s,g)}addClassName(s){this.$.classList.add(s)}removeClassName(s){this.$.classList.remove(s)}addAddonAfter(s){var g,a;!this._hasAddonAfter&&!this._destroyed&&((a=(g=this.$.parentElement)===null||g===void 0?void 0:g.parentElement)===null||a===void 0||a.appendChild(this.$addonAfter),this._hasAddonAfter=!0);const h=document.createElement("div");h.setAttribute("class",s),this.$addonAfter.appendChild(h)}removeAddonAfter(){var s,g,a;this._hasAddonAfter&&((s=this.$addonAfter.firstChild)===null||s===void 0||s.remove(),(a=(g=this.$.parentElement)===null||g===void 0?void 0:g.parentElement)===null||a===void 0||a.removeChild(this.$addonAfter),this._hasAddonAfter=!1)}addValidateMessage(s){var g,a,h,u,c,E,f;!this._hasValidateElement&&!this._destroyed&&((h=(a=(g=this.$.parentElement)===null||g===void 0?void 0:g.parentElement)===null||a===void 0?void 0:a.parentElement)===null||h===void 0||h.appendChild(this.$validate),this._hasValidateElement=!0);let d="validate-message popup ";s&&s.type===_.ERROR?this._validateClassName=v.ERROR:s&&s.type===_.WARNING?this._validateClassName=v.WARNING:this._validateClassName=v.INFO,d+=this._validateClassName,this.$validate.classList.value=d;const y=(0,o.toMarkdownHtml)(s.message||"",{renderer:this.markdownRenderer});this.$validate.innerHTML=typeof y=="string"?y:"",(c=(u=this.$.parentElement)===null||u===void 0?void 0:u.parentElement)===null||c===void 0||c.classList.remove(v.INFO,v.ERROR,v.WARNING),(f=(E=this.$.parentElement)===null||E===void 0?void 0:E.parentElement)===null||f===void 0||f.classList.add(this._validateClassName)}removeValidateMessage(){var s,g,a,h,u;this._hasValidateElement&&((a=(g=(s=this.$.parentElement)===null||s===void 0?void 0:s.parentElement)===null||g===void 0?void 0:g.parentElement)===null||a===void 0||a.removeChild(this.$validate),this._hasValidateElement=!1,(u=(h=this.$.parentElement)===null||h===void 0?void 0:h.parentElement)===null||u===void 0||u.classList.remove(this._validateClassName))}destroy(){if(this._destroyed)return;const s=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(()=>{s?.focus()})}focusPrevActiveElement(){let s=this.$.parentElement;for(;s&&!(typeof s.attributes.tabindex<"u");)s=s?.parentElement;return s}}t.PromptHandle=m},58357:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RenamePromptHandle=void 0;const n=e(65747);class r extends n.PromptHandle{constructor(l,_){super(),this.originalFileName=l,this.target=_,this.$.value=l,this.setSelectionRange(0,l.lastIndexOf("."))}get id(){return this.target.id}get depth(){return this.target.depth}}t.RenamePromptHandle=r},48103:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=e(85608);n.__exportStar(e(65747),t),n.__exportStar(e(58357),t),n.__exportStar(e(65601),t)},29805:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Tree=void 0;const n=e(70392),r=e(26353);class o{constructor(){this.onChangedEmitter=new n.Emitter,this.toDispose=new n.DisposableCollection,this.nodes={}}dispose(){var _;this.toDispose.dispose(),(_=this._root)===null||_===void 0||_.dispose()}get root(){return this._root}set root(_){var v;_!==this._root&&((v=this._root)===null||v===void 0||v.dispose(),this._root=_)}fireChanged(){this.onChangedEmitter.fire(void 0)}sortComparator(_,v){return _.constructor===v.constructor?_.name>v.name?1:_.name<v.name?-1:0:r.CompositeTreeNode.is(_)?-1:r.CompositeTreeNode.is(v)?1:0}}t.Tree=o},26353:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CompositeTreeNode=t.TreeNode=t.BranchOperatorStatus=void 0,t.spliceArray=l;const n=e(70392),r=e(34054),{Path:o}=n.path;function l(p,s,g=0,a){const h=p.slice(0);return h.splice(s,g,...a||[]),h}var _;(function(p){p[p.EXPANDED=1]="EXPANDED",p[p.SHRINKED=2]="SHRINKED"})(_||(t.BranchOperatorStatus=_={}));class v{static is(s){return!!s&&"depth"in s&&"name"in s&&"path"in s&&"id"in s}static getTreeNodeById(s){return v.idToTreeNode.get(s)}static getTreeNodeByPath(s){return v.pathToTreeNode.get(s)}static setTreeNode(s,g,a){v.idToTreeNode.set(s,a),v.pathToTreeNode.set(g,a)}static removeTreeNode(s,g){v.idToTreeNode.delete(s),v.pathToTreeNode.delete(g)}static getIdByPath(s){return v.pathToId.get(s)}static setIdByPath(s,g){return v.pathToId.set(s,g)}static getGlobalTreeState(s){let g=v.pathToGlobalTreeState.get(s);return g||(g={isExpanding:!1,isLoadingPath:!1,isRefreshing:!1,refreshCancelToken:new n.CancellationTokenSource,loadPathCancelToken:new n.CancellationTokenSource}),g}static setGlobalTreeState(s,g){let a=v.pathToGlobalTreeState.get(s);return a||(a={isExpanding:!1,isLoadingPath:!1,isRefreshing:!1,refreshCancelToken:new n.CancellationTokenSource,loadPathCancelToken:new n.CancellationTokenSource}),a={...a,...g},v.pathToGlobalTreeState.set(s,a),a}constructor(s,g,a,h){this._uid=v.nextId(),this._parent=g,this._tree=s,this._disposed=!1,this._visible=!0,this._metadata={...h||{}},this._depth=g?g.depth+1:0,a?this._watcher=a:g&&(this._watcher=g.watcher)}get disposed(){return this._disposed}get depth(){return this._depth}get parent(){return this._parent}set parent(s){this._parent=s,this._path=""}get type(){return r.TreeNodeType.TreeNode}get id(){return this._uid}set id(s){this._uid=s}get displayName(){return this.name}get name(){return this.parent?this.getMetadata("name")||String(this.id):`root_${this.id}`}set name(s){this.addMetadata("name",s),this._path=""}get path(){return this._path||(this.parent?this._path=this.name.startsWith(o.separator)?`${this.parent.path}${this.name}`:`${this.parent.path}${o.separator}${this.name}`:this._path=this.name.startsWith(o.separator)?this.name:`${o.separator}${this.name}`),this._path}get checkboxInfo(){return{checked:!1,tooltip:"",accessibilityInformation:this.accessibilityInformation}}get accessibilityInformation(){return{label:this.name,role:"treeitem"}}getMetadata(s){return s==="name"&&!this._metadata[s]&&(this._metadata[s]=String(v.nextId())),this._metadata[s]}addMetadata(s,g){if(!(s in this._metadata))this._metadata[s]=g,this._watcher.notifyDidChangeMetadata(this,{type:r.MetadataChangeType.Added,key:s,prevValue:void 0,value:g});else{const a=this._metadata[s];this._metadata[s]=g,this._watcher.notifyDidChangeMetadata(this,{type:r.MetadataChangeType.Updated,key:s,prevValue:a,value:g})}}removeMetadata(s){if(s in this._metadata){const g=this._metadata[s];delete this._metadata[s],this._watcher.notifyDidChangeMetadata(this,{type:r.MetadataChangeType.Removed,key:s,prevValue:g,value:void 0})}}mv(s,g=this.name){const a=this._parent;if(s===null||!m.is(s)){this._parent=void 0,this.dispose();return}const h=a!==s,u=this.path;this._depth=s.depth+1,(h||g!==this.name)&&(this.name=g,h&&this._watcher.notifyWillChangeParent(this,a,s),this.parent&&(this.parent.unlinkItem(this,!0),this.parent=s,this.parent.insertItem(this)),h&&this._watcher.notifyDidChangeParent(this,a,s)),this.path!==u&&this._watcher.notifyDidChangePath(this)}get visible(){return this._visible}setVisible(s){return this._visible=s,this}dispose(){this._disposed||(v.removeTreeNode(this.id,this.path),this._disposed=!0,this._watcher.notifyDidDispose(this))}}t.TreeNode=v,v.nextId=(()=>{let p=0;return()=>p++})(),v.idToTreeNode=new Map,v.pathToTreeNode=new Map,v.pathToId=new Map,v.pathToGlobalTreeState=new Map;class m extends v{static defaultSortComparator(s,g){return s.constructor===g.constructor?s.name>g.name?1:s.name<g.name?-1:0:m.is(s)?-1:m.is(g)?1:0}static is(s){return!!s&&"children"in s}static isRoot(s){return m.is(s)&&!s.parent}generatorWatcher(){const s=new n.Emitter,g=s.event,a=new n.DisposableCollection,h=c=>{this.watchEvents.delete(c)};return{notifyWillProcessWatchEvent:(c,E)=>{s.fire({type:r.TreeNodeEvent.WillProcessWatchEvent,args:[c,E]})},notifyWillChangeParent:(c,E,f)=>{s.fire({type:r.TreeNodeEvent.WillChangeParent,args:[c,E,f]})},notifyDidChangeParent:(c,E,f)=>{s.fire({type:r.TreeNodeEvent.DidChangeParent,args:[c,E,f]})},notifyDidDispose:c=>{s.fire({type:r.TreeNodeEvent.DidDispose,args:[c]})},notifyDidProcessWatchEvent:(c,E)=>{s.fire({type:r.TreeNodeEvent.DidProcessWatchEvent,args:[c,E]})},notifyDidChangePath:c=>{s.fire({type:r.TreeNodeEvent.DidChangePath,args:[c]})},notifyWillChangeExpansionState:(c,E)=>{const f=this.isItemVisibleAtSurface(c);s.fire({type:r.TreeNodeEvent.WillChangeExpansionState,args:[c,E,f]})},notifyDidChangeExpansionState:(c,E)=>{const f=this.isItemVisibleAtSurface(c);s.fire({type:r.TreeNodeEvent.DidChangeExpansionState,args:[c,E,f]})},notifyDidChangeMetadata:(c,E)=>{s.fire({type:r.TreeNodeEvent.DidChangeMetadata,args:[c,E]})},notifyDidUpdateBranch:()=>{s.fire({type:r.TreeNodeEvent.BranchDidUpdate,args:[]})},notifyWillResolveChildren:(c,E)=>{s.fire({type:r.TreeNodeEvent.WillResolveChildren,args:[c,E]})},notifyDidResolveChildren:(c,E)=>{s.fire({type:r.TreeNodeEvent.DidResolveChildren,args:[c,E]})},on:(c,E)=>{const f=g(d=>{d.type===c&&E(...d.args)});return a.push(f),f},onWatchEvent:(c,E)=>{const f=h;return this.watchEvents.set(c,{terminator:f,callback:E}),f},dispose:a}}constructor(s,g,a,h){super(s,g,a,h),this._children=null,this._lock=!1,this.refreshThrottler=new n.ThrottledDelayer(m.REFRESH_DELAY),this.toRefreshPathQueue=new Set,this.handleWatchEvent=async u=>{switch(this.watcher.notifyWillProcessWatchEvent(this,u),u.type){case r.WatchEvent.Moved:{const{oldPath:c,newPath:E}=u;if(typeof c!="string")throw new TypeError("Expected oldPath to be a string");if(typeof E!="string")throw new TypeError("Expected newPath to be a string");if(o.isRelative(c))throw new TypeError("oldPath must be absolute");if(o.isRelative(E))throw new TypeError("newPath must be absolute");this.transferItem(c,E);break}case r.WatchEvent.Added:{const{node:c}=u;if(!v.is(c))throw new TypeError("Expected node to be a TreeNode");this.insertItem(c);break}case r.WatchEvent.Removed:{const{path:c}=u,E=new o(c),f=E.dir.toString(),d=E.base.toString();if(f===this.path&&this.children){const y=this.children.find(b=>b.name===d);y&&this.unlinkItem(y)}break}default:this.isItemVisibleAtRootSurface(this)?await this.refresh():(this.isExpanded=!1,this._children=null);break}this.watcher.notifyDidProcessWatchEvent(this,u)},this.isExpanded=!g,this._branchSize=0,g?this._watcher=g.watcher:(this.watchEvents=new Map,this._watcher=this.generatorWatcher(),this._root=this,v.setTreeNode(this.id,this.path,this))}set name(s){const g=this.path;!m.isRoot(this)&&typeof this.watchTerminator=="function"?(this.watchTerminator(g),this.addMetadata("name",s),this.watchTerminator=this.watcher.onWatchEvent(this.path,this.handleWatchEvent)):this.addMetadata("name",s),this._path=""}get name(){return this.parent?this.getMetadata("name"):`root_${this.id}`}get watcher(){return this._watcher}get type(){return r.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 s=this.parent;for(;s&&s.parent;)s=s.parent;return s}async ensureLoaded(s){if(!this._children)return await this.hardReloadChildren(s)}async setExpanded(s=!0,g=!1,a=!0,h){if(!this.disposed&&!m.isRoot(this)&&!this.isExpanded){if(a){const u=v.getGlobalTreeState(this.path);u.loadPathCancelToken.cancel(),u.refreshCancelToken.cancel(),v.setGlobalTreeState(this.path,{isExpanding:!0})}if(this.isExpanded=!0,this._children===null&&(this._watcher.notifyWillResolveChildren(this,this.isExpanded),await this.hardReloadChildren(h),this._watcher.notifyDidResolveChildren(this,this.isExpanded),!this.isExpanded||h?.isCancellationRequested)){a&&v.setGlobalTreeState(this.path,{isExpanding:!1});return}if(s&&this.parent&&m.is(this.parent)&&await this.parent.setExpanded(!0,!g,!1,h),h?.isCancellationRequested){a&&v.setGlobalTreeState(this.path,{isExpanding:!1});return}this.isExpanded&&(this._watcher.notifyWillChangeExpansionState(this,!0),this.expandBranch(this,g),this._watcher.notifyDidChangeExpansionState(this,!0)),a&&(v.setGlobalTreeState(this.path,{isExpanding:!1}),v.setTreeNode(this.id,this.path,this))}}getAllExpandedNodePath(){var s,g;const a=[];let h=0;m.isRoot(this)||(h=((s=this.root)===null||s===void 0?void 0:s.getIndexAtTreeNodeId(this.id))+1);const u=h+this.branchSize;for(let c=h;c<u;c++){const E=(g=this.root)===null||g===void 0?void 0:g.getTreeNodeAtIndex(c);m.is(E)&&E.expanded&&a.push(E.path)}return a}getAllCollapsedNodePath(){let s=[];if(this.children){for(let g=0;g<this.children.length;g++){const a=this.children[g];m.is(a)&&(a.isExpanded?s=s.concat(a.getAllCollapsedNodePath()):s.push(a.path))}return s}else return s}async resolveChildrens(s){var g,a,h;let u=this.children,c=[];try{u=await this._tree.resolveChildren(this)||[]}catch{u=[]}if(s?.isCancellationRequested)return!1;const E=new Array(u.length);this._children=Array(u.length);for(let d=0;d<u.length;d++){const y=u[d];y.id=v.getIdByPath(y.path)||y.id,this._children[d]=y,v.setIdByPath(y.path,y.id)}(g=this._children)===null||g===void 0||g.sort(this._tree.sortComparator||m.defaultSortComparator);for(let d=0;d<u.length;d++)E[d]=this._children[d].id;const f=[];for(let d=0,y=((a=this.children)===null||a===void 0?void 0:a.length)||0;d<y;d++){const b=(h=this.children)===null||h===void 0?void 0:h[d];if(m.is(b)&&b.expanded){const A=await b.resolveChildrens(s);if(A&&(c=c.concat(A)),s?.isCancellationRequested)return;f.push(b)}}this._branchSize=E.length,this.setFlattenedBranch(E);for(let d=0;d<f.length;d++){const y=f[d];y.expandBranch(y,!0)}return c.concat(f.map(d=>d.path.toString()))}updateTreeNodeCache(s){var g;if(v.setTreeNode(s.id,s.path,s),m.is(s)&&s.expanded&&(!((g=s.children)===null||g===void 0)&&g.length))for(let a=0;a<s.children.length;a++){const h=s.children[a];this.updateTreeNodeCache(h)}}async refreshTreeNodeByPaths(s=this.getAllExpandedNodePath(),g,a){if(!m.is(this))return;let h;const u=this.children;let c=this.children||[];if(this.expanded){if(this===a){try{c=await this._tree.resolveChildren(this)||[]}catch{c=[]}if(g?.isCancellationRequested)return;if(!this.expanded){if(this.children&&this.children&&this.parent){for(let E=0;E<this.children.length;E++)this.children[E].dispose();this._children=null}return}}for(;h=s.shift();){if(!(h.indexOf(`${this.path}${o.separator}`)>-1)){h===this.path&&(h=void 0);break}const f=c?.find(d=>d.path===h);if(f){if(m.is(f)&&!f.expanded){f.isExpanded=!0;const d=await f.resolveChildrens(g);if(g?.isCancellationRequested||(d&&(s=s.filter(y=>!d.find(b=>b.includes(y)))),s.length>0&&!g?.isCancellationRequested&&(s=await f.refreshTreeNodeByPaths([...s],g,a)||[],g?.isCancellationRequested)))return}}else{if(!c||c.length===0)break;for(let d=0;d<c.length;d++){const y=c[d];if(h.indexOf(`${y.path}${o.separator}`)===0&&m.is(y)){if(!m.is(y))continue;y.isExpanded=!0;const A=await y.resolveChildrens(g);if(g?.isCancellationRequested||(A&&(s=s.filter(S=>!A.find(D=>D===S))),y.path!==h&&!s.includes(y.path)&&s.unshift(h),s.length>0&&(s=await y.refreshTreeNodeByPaths([...s],g,a)||[],g?.isCancellationRequested)))return;break}}}}if(h){if(s.unshift(h),this===a){if(u){this.shrinkBranch(this,!0);for(let d=0;d<u.length;d++){const y=u[d];y?.dispose()}}const E=[],f=new Array(c.length);this._children=Array(c.length);for(let d=0;d<c.length;d++){const y=c[d];y.id=v.getIdByPath(y.path)||y.id,this._children[d]=y,v.setIdByPath(y.path,y.id),m.is(y)&&y.expanded&&E.push(y)}this._children.sort(this._tree.sortComparator||m.defaultSortComparator);for(let d=0;d<c.length;d++)f[d]=this._children[d].id;this._branchSize=f.length,this.setFlattenedBranch(f,!0),this.watcher.notifyDidUpdateBranch()}return this.parent!==a&&this.expandBranch(this,!0),s}else if(m.isRoot(this)){if(this.children){this.shrinkBranch(this,!0);for(let y=0;y<this.children.length;y++){const b=this.children[y];b?.dispose()}}const E=[],f=[],d=new Array(c.length);this._children=Array(c.length);for(let y=0;y<c.length;y++){const b=c[y];if(b.id=v.getIdByPath(b.path)||b.id,this._children[y]=b,v.setIdByPath(b.path,b.id),m.is(b)&&b.expanded){if(!b.children&&(await b.resolveChildrens(g),g?.isCancellationRequested))return;E.push(b)}else f.push(b)}this._children.sort(this._tree.sortComparator||m.defaultSortComparator);for(let y=0;y<c.length;y++)d[y]=this._children[y].id;this._branchSize=d.length,this.setFlattenedBranch(d,!0);for(let y=0;y<E.length;y++){const b=E[y];b.expandBranch(b,!0),this.updateTreeNodeCache(b)}for(let y=0;y<f.length;y++){const b=f[y];this.updateTreeNodeCache(b)}typeof this.watchTerminator=="function"&&this.watchTerminator(this.path),this.watchTerminator=this.watcher.onWatchEvent(this.path,this.handleWatchEvent),this.watcher.notifyDidUpdateBranch()}else{const E=[];if(this===a){if(this.children&&this.shrinkBranch(this,!0),this.children)for(let d=0,y=this.children.length;d<y;d++)this.children[d].dispose();const f=new Array(c.length);this._children=Array(c.length);for(let d=0,y=c.length;d<y;d++){const b=c[d];b.id=v.getIdByPath(b.path)||b.id,this._children[d]=b,v.setIdByPath(b.path,b.id),m.is(b)&&b.expanded&&E.push(b),this.updateTreeNodeCache(b)}this._children.sort(this._tree.sortComparator||m.defaultSortComparator);for(let d=0;d<c.length;d++)f[d]=this._children[d].id;this._branchSize=f.length,this.setFlattenedBranch(f);for(let d=0;d<E.length;d++){const y=E[d];y.expandBranch(y,!0)}}else for(let f=0;f<c.length;f++){const d=c[f];d.expanded&&E.push(d)}for(let f=0;f<E.length;f++){const d=E[f];d.expandBranch(d,!0)}typeof this.watchTerminator=="function"&&this.watchTerminator(this.path),this.watchTerminator=this.watcher.onWatchEvent(this.path,this.handleWatchEvent),this===a&&this.expandBranch(this)}}else{if(this.children&&this.children&&this.parent){for(let E=0,f=this.children.length;E<f;E++)this.children[E].dispose();this._children=null}return}}async expandedAll(s=this.getAllCollapsedNodePath()){if(!m.isRoot(this))return;s=s.sort((a,h)=>o.pathDepth(a)-o.pathDepth(h));let g;for(;s.length>0;){g=s.pop();const a=v.getTreeNodeByPath(g);m.is(a)&&await a.setExpanded(!1,!0)}this.watcher.notifyDidUpdateBranch()}async collapsedAll(s=this.getAllExpandedNodePath()){if(!m.isRoot(this))return;s=s.sort((a,h)=>o.pathDepth(a)-o.pathDepth(h));let g;for(;s.length>0;){g=s.pop();const a=v.getTreeNodeByPath(g);m.is(a)&&a.setCollapsed(!0)}this.watcher.notifyDidUpdateBranch()}setCollapsed(s=!1){if(m.isRoot(this)||this.disposed||!this.isExpanded)return;const g=v.getGlobalTreeState(this.path);g.isExpanding||(g.loadPathCancelToken.cancel(),g.refreshCancelToken.cancel(),this._watcher.notifyWillChangeExpansionState(this,!1),this._children&&this.parent&&this.shrinkBranch(this,s),this.isExpanded=!1,v.setTreeNode(this.id,this.path,this),this._watcher.notifyDidChangeExpansionState(this,!1))}mv(s,g=this.name){const a=this.path;if(super.mv(s,g),typeof this.watchTerminator=="function"&&(this.watchTerminator(a),this.watchTerminator=this.watcher.onWatchEvent(this.path,this.handleWatchEvent)),this.children)for(let h=0;h<this.children.length;h++){const u=this.children[h];u.mv(u.parent,u.name)}}insertItem(s){if(s.parent!==this){s.mv(this,s.name);return}if(this.children){for(let f=0;f<this.children.length;f++)if(this.children[f].path===s.path){this.children[f]=s;return}}const g=1+(s instanceof m&&s.expanded?s._branchSize:0);this._children&&(this._children.push(s),this._children.sort(this._tree.sortComparator||m.defaultSortComparator)),this._branchSize+=g;let a=this;for(;!a._flattenedBranch;)a.parent&&(a=a.parent,a._branchSize+=g);if(!this._children)return;let h=this._children.indexOf(s),u;const c=this._children[h-1];c?h=a._flattenedBranch.indexOf(c.id)+(c instanceof m&&c.expanded?c._branchSize:0):h=a._flattenedBranch.indexOf(this.id),h===-1&&this._branchSize===1&&(h=0),u=h+1,a._flattenedBranch.length===0&&(u=0);let E=[s.id];return s instanceof m&&s.expanded&&s._flattenedBranch&&(E=E.concat(s._flattenedBranch),s.setFlattenedBranch(null)),a.setFlattenedBranch(l(a._flattenedBranch,u,0,E)),v.setTreeNode(s.id,s.path,s),s}unlinkItem(s,g){var a;if(!this._children)return;const h=this._children.indexOf(s);if(h===-1||!this.isItemVisibleAtRootSurface(this))return;(a=this._children)===null||a===void 0||a.splice(h,1);const u=1+(s instanceof m&&s.expanded?s._branchSize:0);this._branchSize-=u;let c=this;for(;!c._flattenedBranch;)c.parent&&(c=c.parent,c._branchSize-=u);const E=c._flattenedBranch.indexOf(s.id);E!==-1&&(s instanceof m&&s.expanded&&s.setFlattenedBranch(c._flattenedBranch.slice(E+1,E+u)),c.setFlattenedBranch(l(c._flattenedBranch,E,u)),!g&&s.parent===this&&s.mv(null))}transferItem(s,g){var a;const h=new o(s),u=h.dir.toString();if(u!==this.path)return;const c=h.base.toString(),E=(a=this._children)===null||a===void 0?void 0:a.find(b=>b.name===c);if(!E)return;const f=new o(g),d=f.dir.toString(),y=d===u?this:v.getTreeNodeByPath(d);if(!m.is(y)){this.unlinkItem(E);return}return E.mv(y,f.base.toString()),E}dispose(){if(this.watchEvents){const s=this.watchEvents.get(this.path);s&&s.terminator(),this.watchEvents.clear()}this._children&&(this.isExpanded=!1,this._children.forEach(s=>{s.dispose()}),this._children=null,this._flattenedBranch=null),super.dispose()}setFlattenedBranch(s,g){this._flattenedBranch=s,m.isRoot(this)&&!g&&this.watcher.notifyDidUpdateBranch()}expandBranch(s,g){if(this!==s&&s._flattenedBranch&&(this._branchSize+=s._branchSize),this!==s&&this._flattenedBranch){const a=this._flattenedBranch.indexOf(s.id)+1;if(a===0)return;this.setFlattenedBranch(l(this._flattenedBranch,a,0,s._flattenedBranch),g),s.setFlattenedBranch(null,g)}else this.parent&&this.parent.expandBranch(s,g)}shrinkBranch(s,g){if(this!==s&&(this._branchSize-=s._branchSize),this!==s&&this._flattenedBranch){const a=this._flattenedBranch.indexOf(s.id)+1;if(a===0)return;s.setFlattenedBranch(this._flattenedBranch.slice(a,a+s._branchSize),g),this.setFlattenedBranch(l(this._flattenedBranch,a,s._flattenedBranch?s._flattenedBranch.length:0),g)}else this.parent&&this.parent.shrinkBranch(s,g)}async hardReloadChildren(s){let g;const a=this.path;try{g=await this._tree.resolveChildren(this)||[]}catch{g=[]}if(!this.expanded||s?.isCancellationRequested)return!1;this.path!==a&&v.setGlobalTreeState(a,{isExpanding:!1,isLoadingPath:!1,isRefreshing:!1});const h=[],u=new Array(g.length),c=new Array(g.length);for(let E=0;E<g.length;E++){const f=g[E];if(f.id=v.getIdByPath(f.path)||f.id,c[E]=f,v.setIdByPath(f.path,f.id),m.is(f)&&f.expanded){if(f.children||await f.resolveChildrens(s),s?.isCancellationRequested)return!1;h.push(f)}}c.sort(this._tree.sortComparator||m.defaultSortComparator);for(let E=0;E<g.length;E++)u[E]=c[E].id;if(this.children&&this.shrinkBranch(this),this.children)for(let E=0;E<this.children.length;E++){const f=this.children[E];f?.dispose()}for(let E=0;E<c.length;E++)this.updateTreeNodeCache(c[E]);this._children=c,this._branchSize=u.length,this.setFlattenedBranch(u);for(let E=0;E<h.length;E++){const f=h[E];f.expandBranch(f,!0)}return typeof this.watchTerminator=="function"&&this.watchTerminator(this.path),this.watchTerminator=this.watcher.onWatchEvent(this.path,this.handleWatchEvent),!0}moveNode(s,g){if(typeof s!="string")throw new TypeError("Expected oldPath to be a string");if(typeof g!="string")throw new TypeError("Expected newPath to be a string");if(o.isRelative(s))throw new TypeError("oldPath must be absolute");if(o.isRelative(g))throw new TypeError("newPath must be absolute");return this.transferItem(s,g)}addNode(s){if(!v.is(s))throw new TypeError("Expected node to be a TreeNode");return this.insertItem(s)}removeNode(s){const g=new o(s),a=g.dir.toString(),h=g.base.toString();if(a===this.path&&this.children){const u=this.children.find(c=>c.name===h);u&&this.unlinkItem(u)}}async refresh(s,g){if(!m.isRoot(this))return await this.root.refresh(s,this);const a=v.getGlobalTreeState(this.path);if(a.isLoadingPath||a.isExpanding)return;let h;if(s&&!s.token.isCancellationRequested)v.setGlobalTreeState(this.path,{isRefreshing:!0,refreshCancelToken:s}),h=s.token;else if(a.refreshCancelToken.token.isCancellationRequested){const u=new n.CancellationTokenSource;v.setGlobalTreeState(this.path,{isRefreshing:!0,refreshCancelToken:u}),h=u.token}else h=a.refreshCancelToken.token;this.toRefreshPathQueue.add((g||this).path),await this.refreshThrottler.trigger(()=>this.doRefresh(h)),v.setGlobalTreeState(this.path,{isRefreshing:!1})}async doRefresh(s){const g=this.getRefreshNode()||this;if(!m.is(g))return;const a=g.getAllExpandedNodePath();await g.refreshTreeNodeByPaths(a,s,g)}getRefreshNode(){let s=Array.from(this.toRefreshPathQueue);if(this.toRefreshPathQueue.clear(),!s.length)return this.root;if(s=s.sort((h,u)=>{const c=o.pathDepth(h),E=o.pathDepth(u);return c-E}),s.length===1||o.pathDepth(s[0])===1)return v.getTreeNodeByPath(s[0]);const g=s.map(h=>new o(h));let a=g[0];for(let h=1,u=g.length;h<u;h++)if(!a.isEqualOrParent(g[h]))for(;!a.isRoot&&(a=a.dir,!(!a||a.isEqualOrParent(g[h]))););return a?v.getTreeNodeByPath(a.toString()):this.root}isItemVisibleAtRootSurface(s){let g=s;for(;g.parent;)g=g.parent;return g.isItemVisibleAtSurface(s)}isItemVisibleAtSurface(s){return s===this?!0:!!this._flattenedBranch&&this._flattenedBranch.indexOf(s.id)>-1}transformToRelativePath(s){const{splitPath:g}=o,a=g(s);return a.shift(),a}async loadTreeNodeByPath(s,g=!1){if(!m.isRoot(this))return;const a=v.getGlobalTreeState(this.path);if(a.isExpanding)return;a.refreshCancelToken.cancel(),a.loadPathCancelToken.cancel();const h=new n.CancellationTokenSource;v.setGlobalTreeState(this.path,{isLoadingPath:!0,loadPathCancelToken:h});const u=h.token,c=[],{splitPath:E,isRelative:f}=o,d=f(s)?E(s):this.transformToRelativePath(s);if(d.length===0)return v.setGlobalTreeState(this.path,{isLoadingPath:!1}),this;if(this.children||await this.ensureLoaded(u),u.isCancellationRequested){v.setGlobalTreeState(this.path,{isLoadingPath:!1});return}let y=this._children,b,A="",S;for(;y&&(S=d.shift());){let D=y.find(I=>I.name.indexOf(S)===0);if(D){if(m.is(D)){if(D._watcher.notifyWillChangeExpansionState(D,!0),D.isExpanded=!0,!D.children&&(await D.resolveChildrens(u),u.isCancellationRequested)){v.setGlobalTreeState(this.path,{isLoadingPath:!1});return}c.push(D),D._watcher.notifyDidChangeExpansionState(D,!0)}if(d.length===0){b=D;break}}if(!D&&b){const I=E(b.name).slice(1);if(I[0]===S){for(I.shift();I.length>0&&I[0]===d[0];)I.shift(),d.shift();S=d.shift(),D=y.find(w=>w.name.indexOf(S)===0)}}if(!D||!m.is(D)&&d.length>0)break;if(m.is(D)){if(D.name.indexOf(o.separator)>0){const w=E(D.name).slice(1);for(;w.length>0&&w[0]===d[0];)w.shift(),d.shift()}if(!D._children&&(A=D.path,m.is(D))){if(D.isExpanded=!0,!D.children&&(await D.resolveChildrens(u),u.isCancellationRequested)){v.setGlobalTreeState(this.path,{isLoadingPath:!1});return}c.push(D)}if(D&&d.length===0){b=D;break}else{if(A&&A!==D.path){const w=E(A),T=E(D.path);T.length>w.length&&d.splice(0,T.length-w.length)}y=D._children,b=D}}}if(b){let D;if(b.disposed){v.setGlobalTreeState(this.path,{isLoadingPath:!1});return}for(;D=c.pop();)D.expandBranch(D,!0),c.length===0&&this.updateTreeNodeCache(D);return g||this.watcher.notifyDidUpdateBranch(),v.setGlobalTreeState(this.path,{isLoadingPath:!1}),b}v.setGlobalTreeState(this.path,{isLoadingPath:!1})}getIndexAtTreeNodeId(s){return this._flattenedBranch?this._flattenedBranch.indexOf(s):-1}getIndexAtTreeNode(s){return this._flattenedBranch?this._flattenedBranch.indexOf(s.id):-1}getTreeNodeAtIndex(s){var g;const a=(g=this._flattenedBranch)===null||g===void 0?void 0:g[s];if(a)return v.getTreeNodeById(a)}getTreeNodeById(s){return v.getTreeNodeById(s)}getTreeNodeByPath(s){return v.getTreeNodeByPath(s)}}t.CompositeTreeNode=m,m.REFRESH_DELAY=200},58781:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CompositeDecoration=t.ChangeReason=t.CompositeDecorationType=t.ClasslistComposite=void 0;const n=e(70392),r=e(96336);class o{constructor(p,s){this.addChangeListener=p,this.removeChangeListener=s}}t.ClasslistComposite=o;var l;(function(m){m[m.Applicable=1]="Applicable",m[m.Inheritable=2]="Inheritable"})(l||(t.CompositeDecorationType=l={}));var _;(function(m){m[m.UnTargetDecoration=1]="UnTargetDecoration",m[m.TargetDecoration=2]="TargetDecoration"})(_||(t.ChangeReason=_={}));class v{constructor(p,s,g){this.handleDecorationDidAddClassname=a=>{const{classname:h}=a;!this.selfOwned||!h||(this.compositeCssClasslist.classlist.push(h),this.notifyClasslistChange())},this.handleDecorationDidRemoveClassname=a=>{const{classname:h}=a;if(!this.selfOwned||!h)return;const u=this.compositeCssClasslist.classlist.indexOf(h);u>-1&&(this.compositeCssClasslist.classlist.splice(u,1),this.notifyClasslistChange())},this.mergeDecorationClasslist=a=>{const{decoration:h}=a;this.selfOwned&&(this.compositeCssClasslist.classlist.push(...h.cssClassList),this.notifyClasslistChange())},this.handleDecorationDisable=a=>{const{decoration:h}=a;this.removeDecorationClasslist(h)},this.target=p,this.type=s,this.linkedComposites=new Set,this.classlistChangeCallbacks=new Set,this.compositeCssClasslist=new o(this.classlistChangeCallbacks.add.bind(this.classlistChangeCallbacks),this.classlistChangeCallbacks.delete.bind(this.classlistChangeCallbacks)),g?(this.selfOwned=!1,this.parent=g,this.renderedDecorations=g.renderedDecorations,this.compositeCssClasslist.classlist=g.compositeCssClasslist.classlist,g.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[s]of this.renderedDecorations)this.recursiveRefresh(this,!1,_.UnTargetDecoration,s,!1);this.parent!==p&&(this.parent.linkedComposites.delete(this),this.parent=p,p.linkedComposites.add(this));for(const[s]of p.renderedDecorations)this.recursiveRefresh(this,!1,_.TargetDecoration,s,!1)}}add(p){const s=p.appliedTargets.get(this.target),g=s&&(s===r.TargetMatchMode.Self||s===r.TargetMatchMode.SelfAndChildren),a=s&&(s===r.TargetMatchMode.Children||s===r.TargetMatchMode.SelfAndChildren);if(!(this.type===l.Applicable&&!g)&&!(this.type===l.Inheritable&&!a)){if(!this.selfOwned){this.selfOwn(_.TargetDecoration,p),this.targetedDecorations.add(p);return}this.targetedDecorations.has(p)||(this.targetedDecorations.add(p),this.recursiveRefresh(this,!1,_.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,_.UnTargetDecoration,p);this.recursiveRefresh(this,!1,_.UnTargetDecoration,p)}}negate(p){const s=p.negatedTargets.get(this.target),g=s&&(s===r.TargetMatchMode.Self||s===r.TargetMatchMode.SelfAndChildren),a=s&&(s===r.TargetMatchMode.Children||s===r.TargetMatchMode.SelfAndChildren);if(!(this.type===l.Applicable&&!g)&&!(this.type===l.Inheritable&&!a)){if(!this.selfOwned){this.selfOwn(_.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,_.TargetDecoration,p)}}selfOwn(p,s){if(this.selfOwned)throw new Error("CompositeDecoration is already self owned");const g=this.parent;this.selfOwned=!0,this.compositeCssClasslist.classlist=[],this.renderedDecorations=new Map,this.targetedDecorations=new Set,this.negatedDecorations=new Set;for(const[a]of g.renderedDecorations)a!==s&&this.processCompositeAlteration(_.TargetDecoration,a);p===_.UnTargetDecoration&&this.parent.renderedDecorations.has(s)&&!this.renderedDecorations.has(s)&&this.notifyClasslistChange(!1),this.recursiveRefresh(this,!0,p,s)}parentOwn(p,s,g){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,s,g)}processCompositeAlteration(p,s){if(!this.selfOwned)throw new Error("CompositeDecoration is not self owned");if(p===_.UnTargetDecoration){const g=this.renderedDecorations.get(s);if(g){const a=s.appliedTargets.get(this.target),h=a&&(a===r.TargetMatchMode.Self||a===r.TargetMatchMode.SelfAndChildren),u=a&&(a===r.TargetMatchMode.Children||a===r.TargetMatchMode.SelfAndChildren);return h&&this.type===l.Applicable||u&&this.type===l.Inheritable?!1:(this.removeDecorationClasslist(s,!1),g&&g.dispose(),this.renderedDecorations.delete(s))}return!1}if(p===_.TargetDecoration){const g=s.negatedTargets.get(this.target),a=g&&(g===r.TargetMatchMode.Self||g===r.TargetMatchMode.SelfAndChildren),h=g&&(g===r.TargetMatchMode.Children||g===r.TargetMatchMode.SelfAndChildren);if(a&&this.type===l.Applicable||h&&this.type===l.Inheritable)return!1;if(!this.renderedDecorations.has(s)){const u=new n.DisposableCollection;return u.push(s.onDidAddCSSClassname(this.handleDecorationDidAddClassname)),u.push(s.onDidRemoveCSSClassname(this.handleDecorationDidRemoveClassname)),u.push(s.onDidDisableDecoration(this.handleDecorationDisable)),u.push(s.onDidEnableDecoration(this.mergeDecorationClasslist)),this.renderedDecorations.set(s,u),s.disabled?!1:(this.compositeCssClasslist.classlist.push(...s.cssClassList),!0)}}return!1}recursiveRefresh(p,s,g,a,h=!0){if(!this.selfOwned&&s&&(this.renderedDecorations=this.parent.renderedDecorations,this.compositeCssClasslist.classlist=this.parent.compositeCssClasslist.classlist),this.selfOwned&&s&&p!==this){for(const[u]of this.renderedDecorations)this.processCompositeAlteration(_.UnTargetDecoration,u);for(const[u]of this.parent.renderedDecorations)this.processCompositeAlteration(_.TargetDecoration,u);h&&this.notifyClasslistChange(!1)}else this.selfOwned&&g===_.UnTargetDecoration&&a&&this.renderedDecorations.has(a)?(this.processCompositeAlteration(g,a),h&&this.notifyClasslistChange(!1)):this.selfOwned&&g===_.TargetDecoration&&a&&this.processCompositeAlteration(g,a)&&h?this.notifyClasslistChange(!1):!this.selfOwned&&h&&this.notifyClasslistChange(!1);for(const u of this.linkedComposites)u.recursiveRefresh(p,s,g,a,h)}removeDecorationClasslist(p,s=!0){if(this.selfOwned){for(const g of p.cssClassList){const a=this.compositeCssClasslist.classlist.indexOf(g);a>-1&&this.compositeCssClasslist.classlist.splice(a,1)}s&&this.notifyClasslistChange()}}notifyClasslistChange(p=!0){for(const s of[...this.classlistChangeCallbacks])s();if(p)for(const s of this.linkedComposites)s.selfOwned||s.notifyClasslistChange()}}t.CompositeDecoration=v},96336:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Decoration=t.TargetMatchMode=void 0;const n=e(70392),r=e(26353);var o;(function(_){_[_.None=1]="None",_[_.Self=2]="Self",_[_.Children=3]="Children",_[_.SelfAndChildren=4]="SelfAndChildren"})(o||(t.TargetMatchMode=o={}));class l{constructor(...v){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(v))if(v.every(m=>typeof m=="string"))this._cssClassList=new Set(v);else throw new TypeError("classlist must be of type `Array<string>`");else this._cssClassList=new Set}get disabled(){return this._disabled}set disabled(v){this._disabled=v,v?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(v){this._cssClassList.has(v)||(this._cssClassList.add(v),this.onDidAddCSSClassnameEmitter.fire({decoration:this,classname:v}))}removeCSSClass(v){this._cssClassList.has(v)&&(this._cssClassList.delete(v),this.onDidRemoveCSSClassnameEmitter.fire({decoration:this,classname:v}))}hasTarget(v){return!!this._appliedTargets.get(v)}addTarget(v,m=o.Self){if(this._appliedTargets.get(v)===m||!r.TreeNode.is(v))return;this._appliedTargets.set(v,m);const s=n.Disposable.create(()=>{this.removeTarget(v)});return this.appliedTargetsDisposables.set(v,s),this.onDidAddTargetEmitter.fire({decoration:this,target:v}),s}removeTarget(v){if(this._appliedTargets.delete(v)){const m=this.appliedTargetsDisposables.get(v);m&&m.dispose(),this.onDidRemoveTargetEmitter.fire({decoration:this,target:v})}}clearAppliedTarget(){const v=Array.from(this._appliedTargets.keys());for(const m of v)this.removeTarget(m)}clearNegateTarget(){const v=Array.from(this._negatedTargets.keys());for(const m of v)this.unNegateTarget(m)}negateTarget(v,m=o.Self){if(this._negatedTargets.get(v)===m||!r.TreeNode.is(v))return;this._negatedTargets.set(v,m);const s=n.Disposable.create(()=>{this.unNegateTarget(v)});return this.negatedTargetsDisposables.set(v,s),this.onDidNegateTargetEmitter.fire({decoration:this,target:v}),s}unNegateTarget(v){if(this._negatedTargets.delete(v)){const m=this.negatedTargetsDisposables.get(v);m&&m.dispose(),this.onDidUnNegateTargetEmitter.fire({decoration:this,target:v})}}}t.Decoration=l},29701:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DecorationsManager=void 0;const n=e(70392),r=e(34054),o=e(26353),l=e(58781);class _{constructor(m){this.root=m,this.decorations=new Map,this.decorationsMeta=new WeakMap,this.disposables=new n.DisposableCollection,this.disposed=!1,this.targetDecoration=p=>{const{decoration:s,target:g}=p,a=this.getDecorationData(g);if(a){const{applicable:h,inheritable:u}=a;h.add(s),u&&u.add(s)}},this.updateTarget=()=>{for(const[p]of this.decorations)for(const[s,g]of Array.from(p.appliedTargets)){p.removeTarget(s);const a=this.root.getTreeNodeByPath(s.path);a&&p.addTarget(a,g)}},this.unTargetDecoration=p=>{const{decoration:s,target:g}=p,a=this.getDecorationData(g);if(a){const{applicable:h,inheritable:u}=a;h.remove(s),u&&u.remove(s)}},this.negateDecoration=p=>{const{decoration:s,target:g}=p,a=this.getDecorationData(g);if(a){const{applicable:h,inheritable:u}=a;h.negate(s),u&&u.negate(s)}},this.unNegateDecoration=p=>{const{decoration:s,target:g}=p,a=this.getDecorationData(g);if(a){const{applicable:h,inheritable:u}=a;h.unNegate(s),u&&u.unNegate(s)}},this.switchParent=(p,s,g)=>{const a=this.decorationsMeta.get(p);if(!a)return;const h=this.getDecorationData(g);h&&(a.applicable.changeParent(h.inheritable),a.inheritable&&a.inheritable.changeParent(h.inheritable))},this.decorationsMeta.set(m,{applicable:new l.CompositeDecoration(m,l.CompositeDecorationType.Applicable),inheritable:new l.CompositeDecoration(m,l.CompositeDecorationType.Inheritable)}),this.disposables.push(m.watcher.on(r.TreeNodeEvent.DidChangeParent,this.switchParent)),this.disposables.push(m.watcher.on(r.TreeNodeEvent.DidDispose,p=>this.decorationsMeta.delete(p))),this.disposables.push(m.watcher.on(r.TreeNodeEvent.BranchDidUpdate,this.updateTarget))}dispose(){for(const[m]of this.decorations)this.removeDecoration(m);this.disposables.dispose(),this.disposed=!0}addDecoration(m){if(this.disposed)throw new Error("DecorationManager disposed");if(this.decorations.has(m))return;const p=new n.DisposableCollection;p.push(m.onDidAddTarget(this.targetDecoration)),p.push(m.onDidRemoveTarget(this.unTargetDecoration)),p.push(m.onDidNegateTarget(this.negateDecoration)),p.push(m.onDidUnNegateTarget(this.unNegateDecoration)),this.decorations.set(m,p);for(const[s]of m.appliedTargets)this.targetDecoration({decoration:m,target:s});for(const[s]of m.negatedTargets)this.negateDecoration({decoration:m,target:s})}removeDecoration(m){const p=this.decorations.get(m);if(p){for(const[s]of m.appliedTargets){const g=this.decorationsMeta.get(s);g&&(g.applicable.remove(m),g.inheritable&&g.inheritable.remove(m))}for(const[s]of m.negatedTargets){const g=this.decorationsMeta.get(s);g&&(g.applicable.unNegate(m),g.inheritable&&g.inheritable.unNegate(m))}p.dispose(),this.decorations.delete(m)}}getDecorations(m){if(!m||!o.TreeNode.is(m))return;const p=this.getDecorationData(m);if(p)return p.applicable.compositeCssClasslist}getDecorationData(m){if(this.disposed)return;const p=this.decorationsMeta.get(m);if(p)return p;if(!m||!m.parent)return;const s=this.getDecorationData(m.parent);if(s){const g={applicable:new l.CompositeDecoration(m,l.CompositeDecorationType.Applicable,s.inheritable),inheritable:o.CompositeTreeNode.is(m)?new l.CompositeDecoration(m,l.CompositeDecorationType.Inheritable,s.inheritable):void 0};return this.decorationsMeta.set(m,g),g}}}t.DecorationsManager=_},24936:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=e(85608);n.__exportStar(e(96336),t),n.__exportStar(e(29701),t),n.__exportStar(e(58781),t)},43685:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=e(85608);n.__exportStar(e(29805),t),n.__exportStar(e(26353),t),n.__exportStar(e(58615),t),n.__exportStar(e(24936),t)},13674:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TreeModel=void 0;const n=e(70392),r=e(34054),o=e(70609);class l{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(v){this._root=v,this.initState(v),this.root&&(this._ensureReady=this.root.ensureLoaded())}get state(){return this._state}set state(v){this._state=v}init(v){this.root=v,this.root.watcher.on(r.TreeNodeEvent.BranchDidUpdate,this.dispatchChange)}initState(v){this.state=new o.TreeStateManager(v)}loadTreeState(v){return typeof v=="string"&&(v=JSON.parse(v)),this.state.loadTreeState(v)}getTreeStateWatcher(v=!1){return new o.TreeStateWatcher(this.state,v)}resolveChildren(v){return Promise.resolve(Array.from(v.children))}}t.TreeModel=l},58615:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),e(85608).__exportStar(e(13674),t)},12165:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TreeStateManager=t.Operation=void 0;const n=e(70392),r=e(34054),o=e(26353),{Path:l}=n.path;var _;(function(p){p[p.SetExpanded=1]="SetExpanded",p[p.SetCollapsed=2]="SetCollapsed",p[p.SetActive=3]="SetActive"})(_||(t.Operation=_={}));var v;(function(p){p[p.Expanded=1]="Expanded",p[p.Collapsed=2]="Collapsed",p[p.Disabled=4]="Disabled"})(v||(v={}));class m{constructor(s){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=(g,a,h)=>{var u;if(this.stashing&&this.stashKeyframes&&this.stashKeyframes.set(g.id,a?v.Expanded:v.Collapsed),this.stashKeyframes&&!this.stashing){if(a){let E=g;for(;E;){if(this.stashKeyframes.has(E.id)){let f=this.stashKeyframes.get(E.id);f=f|v.Disabled,this.stashKeyframes.set(E.id,f)}E=E.parent}this.stashLockingItems.add(g)}if(this.stashLockingItems&&this.stashLockingItems.has(g)&&!a){let E=g;for(;E;){if(this.stashKeyframes.has(E.id)){let f=this.stashKeyframes.get(E.id);f&=~v.Disabled,this.stashKeyframes.set(E.id,f)}E=E.parent}this.stashLockingItems.delete(g)}}let c=this.expandedDirectories.get(g);a&&!c?(c=(u=new l(this.root.path).relative(new l(g.path)))===null||u===void 0?void 0:u.toString(),this.expandedDirectories.set(g,c),this.onDidChangeExpansionStateEmitter.fire({relativePath:c,isExpanded:a,isVisibleAtSurface:h})):!a&&c&&(this.expandedDirectories.delete(g),this.onDidChangeExpansionStateEmitter.fire({relativePath:c,isExpanded:a,isVisibleAtSurface:h}))},this.handleDidChangePath=g=>{var a;if(this.expandedDirectories.has(g)){const h=this.expandedDirectories.get(g),u=(a=new l(this.root.path).relative(new l(g.path)))===null||a===void 0?void 0:a.toString();this.expandedDirectories.set(g,u),this.onDidChangeRelativePathEmitter.fire({prevPath:h,newPath:u})}},this.root=s,this.root.watcher.on(r.TreeNodeEvent.DidChangeExpansionState,this.handleExpansionChange),this.root.watcher.on(r.TreeNodeEvent.DidChangePath,this.handleDidChangePath)}get scrollOffset(){return this._scrollOffset}saveScrollOffset(s){this._scrollOffset=s,this.onChangeScrollOffsetEmitter.fire(s)}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(s){if(s){for(const g of s.expandedDirectories.buried)try{const a=await this.root.loadTreeNodeByPath(g);if(!a)break;a&&o.CompositeTreeNode.is(a)&&a.setCollapsed()}catch{}for(const g of s.expandedDirectories.atSurface)try{if(!await this.root.loadTreeNodeByPath(g,!0))break}catch{}this._scrollOffset=typeof s.scrollPosition=="number"&&s.scrollPosition>-1?s.scrollPosition:this._scrollOffset,this.root.watcher.notifyDidUpdateBranch(),this.onDidLoadStateEmitter.fire()}}excludeFromStash(s){this.stashKeyframes&&!this.stashing&&this.handleExpansionChange(o.CompositeTreeNode.is(s)?s:s.parent,!0,this.root.isItemVisibleAtSurface(s))}beginStashing(){this.stashing=!0,this.stashKeyframes=new Map}endStashing(){this.stashing=!1,this.stashLockingItems.clear()}async reverseStash(){if(!this.stashKeyframes)return;this.endStashing();const s=Array.from(this.stashKeyframes);this.stashKeyframes=null;for(const[g,a]of s){const h=(a&v.Disabled)===v.Disabled,u=o.TreeNode.getTreeNodeById(g);!u||h||((a&v.Expanded)===v.Expanded?u.setCollapsed():(a&v.Collapsed)===v.Collapsed&&await u.setExpanded())}}}t.TreeStateManager=m},72782:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TreeStateWatcher=void 0;const n=e(70392),r=e(13440);class o{constructor(_,v=!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(_.onChangeScrollOffset(m=>{this.currentState.scrollPosition=m,this.onDidTreeStateChangeEmitter.fire(r.TreeStateWatcherChangeType.ScrollOffset)})),this.disposables.push(_.onDidChangeRelativePath(({prevPath:m,newPath:p})=>{let s=!1;const g=new Set(this.currentState.expandedDirectories.atSurface);if(g.has(m)&&(g.delete(m),g.add(p),s=!0),this.currentState.expandedDirectories.atSurface=Array.from(g),v){const a=new Set(this.currentState.expandedDirectories.buried);a.has(m)&&(g.delete(m),g.add(p),s=!0),this.currentState.expandedDirectories.buried=Array.from(a)}s&&this.onDidTreeStateChangeEmitter.fire(r.TreeStateWatcherChangeType.PathsUpdated)})),this.disposables.push(_.onDidChangeExpansionState(({relativePath:m,isExpanded:p,isVisibleAtSurface:s})=>{let g=!1;const a=new Set(this.currentState.expandedDirectories.atSurface),h=new Set(this.currentState.expandedDirectories.buried);if(a.has(m)&&(!p||!s)){a.delete(m);const c=Array.from(a).filter(E=>E.indexOf(m)>=0);for(const E of c)a.delete(E),h.has(E)||h.add(E);g=!0}else p&&s&&(a.add(m),g=!0);this.currentState.expandedDirectories.atSurface=Array.from(a),v||(h.has(m)&&(!p||s)?(h.delete(m),g=!0):p&&!s&&(h.add(m),g=!0),this.currentState.expandedDirectories.buried=Array.from(h)),g&&this.onDidTreeStateChangeEmitter.fire(r.TreeStateWatcherChangeType.DirExpansionState)}))}get onDidChange(){return this.onDidTreeStateChangeEmitter.event}dispose(){this._disposed||(this._disposed=!0,this.disposables.dispose())}snapshot(){return{...this.currentState,expandedDirectories:{atSurface:this.currentState.expandedDirectories.atSurface.slice(),buried:this.currentState.expandedDirectories.buried.slice()}}}toString(){return JSON.stringify(this.currentState)}}t.TreeStateWatcher=o},70609:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TreeStateWatcher=t.TreeStateManager=void 0;var n=e(12165);Object.defineProperty(t,"TreeStateManager",{enumerable:!0,get:function(){return n.TreeStateManager}});var r=e(72782);Object.defineProperty(t,"TreeStateWatcher",{enumerable:!0,get:function(){return r.TreeStateWatcher}})},13440:(x,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TreeStateWatcherChangeType=t.TreeStateEvent=void 0;var e;(function(r){r[r.DidChangeScrollOffset=1]="DidChangeScrollOffset",r[r.DidChangeDirExpansionState=2]="DidChangeDirExpansionState",r[r.DidChangeRelativePath=3]="DidChangeRelativePath",r[r.DidChange=4]="DidChange",r[r.DidLoadState=5]="DidLoadState"})(e||(t.TreeStateEvent=e={}));var n;(function(r){r[r.ScrollOffset=1]="ScrollOffset",r[r.DirExpansionState=2]="DirExpansionState",r[r.PathsUpdated=3]="PathsUpdated"})(n||(t.TreeStateWatcherChangeType=n={}))},34054:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=e(85608);n.__exportStar(e(79632),t),n.__exportStar(e(32281),t),n.__exportStar(e(3754),t)},32281:(x,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TreeNodeType=void 0;var e;(function(n){n[n.TreeNode=1]="TreeNode",n[n.CompositeTreeNode=2]="CompositeTreeNode",n[n.NewPrompt=3]="NewPrompt",n[n.RenamePrompt=4]="RenamePrompt"})(e||(t.TreeNodeType=e={}))},79632:(x,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},3754:(x,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MetadataChangeType=t.WatchEvent=t.TreeNodeEvent=void 0;var e;(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"})(e||(t.TreeNodeEvent=e={}));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||(t.WatchEvent=n={}));var r;(function(o){o[o.Added=1]="Added",o[o.Updated=2]="Updated",o[o.Removed=3]="Removed"})(r||(t.MetadataChangeType=r={}))},77011:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ScrollbarsVirtualList=t.Scrollbars=void 0;const n=e(85608),r=n.__importDefault(e(53373)),o=n.__importDefault(e(97331)),l=n.__importStar(e(14041)),_=e(70392),v=e(56875);e(93324);const m=({onScroll:p,onUpdate:s,forwardedRef:g,style:a,children:h,className:u,onReachBottom:c,tabBarMode:E,thumbSize:f=5,hiddenVertical:d,hiddenHorizontal:y,universal:b=!1})=>{const A=(0,l.useRef)(new _.DisposableCollection),S=(0,l.useRef)(),D=(0,l.useCallback)(P=>{P?(S.current=P.view,g&&(typeof g=="function"?g(P.view):g.current=P.view)):g&&typeof g=="function"&&g(null)},[]),I=(0,l.useRef)(),w=(0,l.useRef)(),T=(0,l.useCallback)(P=>{if(!P)return;const{scrollTop:O,scrollHeight:M,clientHeight:k}=P;if(M===0&&k===0)return;(O+100)/(M-k)>1&&c&&c()},[c]),R=(0,l.useCallback)((0,o.default)(P=>{if(!P)return;const{scrollTop:O,scrollLeft:M}=P,k=1/20*Math.min(O,20),F=1/20*Math.min(M,20);I.current&&(I.current.style.opacity=String(k)),w.current&&(w.current.style.opacity=String(F)),T(P),s&&s(P)},100),[s,T,I.current,w.current]);return(0,l.useEffect)(()=>{const P=O=>{S.current&&(O.preventDefault(),O.stopPropagation(),S.current.clientHeight>=S.current.scrollHeight&&(O.deltaY!==0&&(S.current.scrollLeft+=O.deltaY),O.deltaX!==0&&(S.current.scrollLeft+=O.deltaX)))};return E&&S.current&&S.current.addEventListener("wheel",P),()=>{var O;(O=S.current)===null||O===void 0||O.removeEventListener("wheel",P)}},[S.current,E]),(0,l.useEffect)(()=>()=>A.current.dispose(),[]),l.default.createElement(v.Scrollbars,{ref:D,style:{...a,overflow:"hidden"},className:(0,r.default)(u,"kt-scrollbar"),onUpdate:R,onScroll:p,universal:b,renderTrackHorizontal:({style:P,...O})=>{const M={...P,height:f,left:0,right:0,bottom:1};return y&&(M.display="none"),l.default.createElement("div",{...O,style:M})},renderTrackVertical:({style:P,...O})=>{const M={...P,width:f,top:0,right:1,bottom:0};return d&&(M.display="none"),l.default.createElement("div",{...O,style:M})},renderThumbVertical:({style:P,className:O,...M})=>{const k={...P,width:f};return d&&(k.display="none"),l.default.createElement("div",{...M,style:k,className:(0,r.default)(O,"scrollbar-thumb-vertical")})},renderThumbHorizontal:({style:P,className:O,...M})=>{const k={...P,height:f,display:"none"};return y&&(k.display="none"),l.default.createElement("div",{...M,style:k,className:(0,r.default)(O,"scrollbar-thumb-horizontal")})}},l.default.createElement("div",{ref:P=>{I.current=P},className:"scrollbar-decoration-vertical"}),l.default.createElement("div",{ref:P=>{w.current=P},className:"scrollbar-decoration-horizontal"}),h)};t.Scrollbars=m,t.Scrollbars.displayName="CustomScrollbars",t.ScrollbarsVirtualList=l.default.forwardRef((p,s)=>l.default.createElement(t.Scrollbars,{...p,thumbSize:10,forwardedRef:s})),t.ScrollbarsVirtualList.displayName="ScrollbarsVirtualList"},14640:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SelectOptionsList=t.Option=void 0,t.isDataOptions=a,t.isDataOptionGroups=h,t.Select=A;const n=e(85608),r=n.__importDefault(e(53373)),o=n.__importStar(e(14041)),l=e(54713),_=e(50708);e(11110);const v=({value:D,children:I,disabled:w,onClick:T,className:R,...P})=>o.default.createElement("span",{...P,className:(0,r.default)(R,{"kt-option-disabled":w}),onClick:()=>T&&!w&&T(D)},I);t.Option=v;function m(...D){}function p(D,I){return I?D.props[I]:D.props.value}function s(D,I){let w=[];return Array.isArray(D)?w=o.default.Children.toArray(D).map(I):w=[I(D)],w}function g(D,I,w=(T,R)=>T===R){const R=o.default.Children.toArray(I).filter(P=>o.default.isValidElement(P)).find(P=>{var O;return P.props&&w((O=P.props)===null||O===void 0?void 0:O.value,D)?P:null});return R?.props}function a(D){return D?D.length===0?!0:u(D[0]):!1}function h(D){return D?D.length===0?!0:c(D[0]):!1}function u(D){return D.value!==void 0}function c(D){return D.groupName!==void 0&&a(D.options)}function E(D){return o.default.createElement(o.default.Fragment,null,D.data.iconClass?o.default.createElement("div",{className:(0,r.default)(D.data.iconClass,"kt-select-option-icon")}):void 0,D.data.label)}function f({group:D,index:I}){return o.default.createElement("div",{key:"header_"+I,className:"kt-select-group-header"},D.iconClass?o.default.createElement("div",{className:(0,r.default)(D.iconClass,"kt-select-option-icon")}):void 0,o.default.createElement("div",null,D.groupName))}function d(D,I){let w=I.label;if(w===void 0)try{w=I.value.toString()}catch{w=void 0}return typeof w=="string"?w.indexOf(D)!==-1:!1}const y=o.default.memo(({selected:D,selectedRenderer:I})=>I?o.default.createElement(I,{data:D}):o.default.createElement(o.default.Fragment,null,D.iconClass&&o.default.createElement("div",{className:(0,r.default)(D.iconClass,"kt-select-option-icon")}),o.default.createElement("span",{className:"kt-select-option"},D.label))),b=o.default.memo(({value:D,onChange:I,placeholder:w,size:T="default"})=>o.default.createElement(_.Input,{className:"kt-select-search",value:D,size:T,onChange:R=>I(R.target.value),autoFocus:!0,placeholder:w||""}));function A({disabled:D,options:I,size:w="default",children:T,value:R,onChange:P,onMouseEnter:O,optionLabelProp:M,style:k,optionStyle:F,className:L,maxHeight:B,equals:U=(q,Ee)=>q===Ee,optionRenderer:W=E,groupTitleRenderer:j,footerComponent:Q,headerComponent:G,showSearch:Z=!1,filterOption:$=d,searchPlaceholder:V="",emptyComponent:H,selectedRenderer:K,onBeforeShowOptions:Y,allowOptionsOverflow:X,dropdownRenderType:oe="fixed",description:ie,notMatchWarning:he,onSearchChange:me}){const[q,Ee]=(0,o.useState)(!1),[ue,te]=(0,o.useState)(""),fe=o.default.useRef(null),Ie=o.default.useRef(null),Me=(0,o.useCallback)(Ae=>{Ae.preventDefault(),Ae.stopPropagation(),!(!q&&Y?.())&&Ee(!q)},[q,Y]),Pe=(0,o.useCallback)(()=>{var Ae,Ue,Ye,Ke,mt,_t,Mt,ct,wt;if(I&&a(I)){for(const st of I)if(U(R,st.value))return{iconClass:st.iconClass,label:st.label,value:st.value};return{iconClass:(Ae=I[0])===null||Ae===void 0?void 0:Ae.iconClass,label:(Ue=I[0])===null||Ue===void 0?void 0:Ue.label,value:(Ye=I[0])===null||Ye===void 0?void 0:Ye.value}}else if(I&&h(I)){for(const st of I)for(const rt of st.options)if(U(R,rt.value))return{iconClass:rt.iconClass,label:rt.label,value:rt.value};return{iconClass:(mt=(Ke=I[0])===null||Ke===void 0?void 0:Ke.options[0])===null||mt===void 0?void 0:mt.iconClass,label:(Mt=(_t=I[0])===null||_t===void 0?void 0:_t.options[0])===null||Mt===void 0?void 0:Mt.label,value:(wt=(ct=I[0])===null||ct===void 0?void 0:ct.options[0])===null||wt===void 0?void 0:wt.value}}else{const st=T&&g(R,T);if(st)return{label:st.label||st.value,value:st.value}}return{label:R,value:R,notMatch:!0}},[I,R,T])(),we=(0,r.default)("kt-select-options",{"kt-select-options-visible":q,[`kt-select-options-${w}`]:w}),_e=he&&Pe.notMatch,Ne=(0,r.default)("kt-select-value",{"kt-select-warning":_e,"kt-select-disabled":D,"kt-select-value-active":q,[`kt-select-value-${w}`]:w});function Te(Ae,Ue){var Ye;if(!Ae)return null;(typeof Ae=="string"||typeof Ae=="number")&&(Ae=o.default.createElement(t.Option,{value:Ae,label:String(Ae),key:`${Ae}_${Ue}`},Ae));const Ke=Ae,mt=((Ye=Ke.props)===null||Ye===void 0?void 0:Ye.disabled)||!1;return o.default.createElement("div",{key:`${Ke.props.value}_${Ue}`,className:(0,r.default)({"kt-select-option-select":R===Ke.props.value}),onMouseEnter:()=>O?.(Ke.props.value,Ue),onClick:mt?m:()=>{Ee(!1),P&&P(p(Ae,M))}},Ae)}(0,o.useEffect)(()=>{!q&&ue&&te("")},[]),(0,o.useEffect)(()=>{if(!q)return;const Ae=Ue=>{fe.current&&!fe.current.contains(Ue.target)&&Ee(!1)};return document.addEventListener("click",Ae),()=>document.removeEventListener("click",Ae)},[q]);const We=(0,o.useCallback)(()=>{if(!fe.current||!Ie.current)return;const Ae=fe.current.getBoundingClientRect(),Ue=Ie.current;X?(Ue.style.minWidth=`${Ae.width}px`,Ue.style.maxWidth=`${window.innerWidth-Ae.left-4}px`):Ue.style.width=`${Ae.width}px`;const Ye=window.innerHeight-Ae.bottom-50,Ke=Ue.clientHeight;Ye<Ke?Ue.style.bottom=`${Ae.height+4}px`:(Ue.style.maxHeight=`${Ye}px`,Ue.style.bottom="auto"),Ue.style.position=oe},[X,oe]);(0,o.useEffect)(()=>{if(q)return We(),window.addEventListener("resize",We),()=>window.removeEventListener("resize",We)},[q,We]);const pe=(0,o.useMemo)(()=>ue?a(I)?I.filter(Ae=>$(ue,Ae)):h(I)?I.reduce((Ae,Ue)=>{const Ye=Ue.options.filter(Ke=>$(ue,Ke,Ue));return Ye.length&&Ae.push({...Ue,options:Ye}),Ae},[]):I:I,[I,ue,$]),re=()=>o.default.createElement(o.default.Fragment,null,o.default.createElement(y,{selected:Pe,selectedRenderer:K}),o.default.createElement(l.Icon,{iconClass:(0,r.default)((0,l.getIcon)("down"),"kt-select-value-default-icon")})),ge=(0,o.useCallback)(Ae=>{te(Ae),me?.(Ae)},[ue,me]),De=()=>o.default.createElement(b,{value:ue,onChange:ge,placeholder:V});return o.default.createElement("div",{className:(0,r.default)("kt-select-container",L),ref:fe},o.default.createElement("div",{className:Ne,onClick:Me,style:k},Z&&q?De():re()),_e&&o.default.createElement("div",{className:"kt-select-warning-text"},he),q&&!ue&&(a(pe)||h(pe)?o.default.createElement(t.SelectOptionsList,{optionRenderer:W,options:pe,equals:U,optionStyle:F,currentValue:R,size:w,onSelect:Ae=>{P&&P(Ae),Ee(!1)},groupTitleRenderer:j,className:we,style:{maxHeight:`${B}px`},ref:Ie,footerComponent:Q,headerComponent:G,emptyComponent:H}):o.default.createElement("div",{className:we,style:{maxHeight:`${B}px`},ref:Ie},I&&I.map((Ae,Ue)=>Te(Ae,Ue)),T&&s(T,Te),ie&&o.default.createElement(S,{text:ie}),o.default.createElement("div",{className:"kt-select-overlay",onClick:Me}))))}function S({text:D}){return o.default.createElement(o.default.Fragment,null,o.default.createElement("div",{className:"kt-option-divider"}),o.default.createElement("div",{className:"kt-option-description"},D))}t.SelectOptionsList=o.default.forwardRef((D,I)=>{const{options:w,optionRenderer:T=E,equals:R=(H,K)=>H===K,onSelect:P,currentValue:O,optionStyle:M,size:k,className:F,style:L,groupTitleRenderer:B=f,renderCheck:U,headerComponent:W,footerComponent:j,emptyComponent:Q}=D,G=(0,r.default)("kt-select-options",{[`kt-select-options-${k}`]:!0},F);function Z(H){return H.map((K,Y)=>{const X=o.default.createElement(B,{group:K,index:Y});return o.default.createElement(o.default.Fragment,{key:"group_"+Y},X,$(K.options))})}function $(H){return H&&H.map((K,Y)=>{const X=R(O,K.value);return o.default.createElement(t.Option,{value:Y,key:Y,className:(0,r.default)({"kt-select-option-select":X,"kt-select-option-default":!0,"kt-option-with-check":U}),onClick:()=>P(K.value),style:M},U&&R(O,K.value)?o.default.createElement("div",{className:"kt-option-check"},o.default.createElement(l.Icon,{icon:"check"})):void 0,o.default.createElement(T,{data:K,isCurrent:X}))})}let V;return h(w)?V=w.filter(H=>H.options.length>0).length===0:V=w.length===0,o.default.createElement("div",{className:G,style:L,ref:I,onClick:H=>{H.stopPropagation()}},W?o.default.createElement(W,null):null,V&&Q?o.default.createElement(Q,null):(h(w)?Z(w):$(w))||Q&&o.default.createElement(Q,null),j?o.default.createElement(j,null):null)})},54076:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Tabs=void 0;const n=e(85608),r=n.__importDefault(e(53373)),o=n.__importDefault(e(14041));e(1030);const l=_=>{const{tabs:v,className:m,value:p,onChange:s,mini:g,style:a,...h}=_,u=o.default.useCallback(c=>{typeof s=="function"&&s(c)},[]);return o.default.createElement("div",{...h,style:a,className:(0,r.default)("kt-tabs",m,{"kt-tabs-mini":g})},v.map((c,E)=>{const f=E===p?"kt-tab-selected":"";return typeof c=="string"?o.default.createElement("div",{key:E,className:(0,r.default)("kt-tab",f,{"kt-mini-tab":g}),onClick:u.bind(null,E)},c):o.default.createElement("div",{key:E,className:(0,r.default)("kt-custom-tab",f,{"kt-mini-tab":g}),onClick:u.bind(null,E)},c)}))};t.Tabs=l},72871:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Tooltip=void 0;const n=e(85608),r=n.__importDefault(e(53373)),o=n.__importStar(e(14041));e(24571);const l=({title:_,children:v,delay:m})=>{const[p,s]=(0,o.useState)(!1),g=(0,o.useRef)(null),a=(0,o.useRef)(null),h=(0,o.useRef)(null),u=(0,o.useRef)(null);(0,o.useEffect)(()=>()=>clearTimeout(u.current),[]);function c(){if(p){u.current&&clearTimeout(u.current);return}u.current=setTimeout(()=>{if(s(!0),a.current&&g.current&&h.current){const{x:f,y:d,width:y,height:b}=g.current.getBoundingClientRect(),A=a.current.getBoundingClientRect();d<A.height*1.5?(h.current.className+=" kt-tooltip-reverse-arrow",a.current.style.top=`${d+b+A.height/2}px`):a.current.style.top=`${d-A.height*1.5}px`,f+A.width/2>=document.body.offsetWidth?(h.current.style.right=`${y/2-7}px`,a.current.style.left=`${f+y-A.width}px`):f-A.width/2<=0?(h.current.style.left=`${y/2-7}px`,a.current.style.left=`${f}px`):(h.current.style.left=`${A.width/2-7}px`,a.current.style.left=`${f+y/2-A.width/2}px`)}clearTimeout(u.current)},m||500)}function E(){u.current&&clearTimeout(u.current),s(!1)}return o.default.createElement("p",{ref:g,className:"kt-tooltip-wrapper",onMouseEnter:c,onMouseLeave:E},v,p&&o.default.createElement("span",{ref:a,className:(0,r.default)("kt-tooltip-content")},_,o.default.createElement("span",{ref:h,className:"kt-tooltip-arrow-placeholder"})))};t.Tooltip=l},40604:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Deprecated=l;const n=e(85608),r=n.__importDefault(e(14041)),o=n.__importDefault(e(65973));function l(_,v){return m=>(r.default.useEffect(()=>{(0,o.default)(!1,`${_.displayName||_.name} is deprecated: ${v}`)},[]),r.default.createElement(_,m))}},84605:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=e(85608);n.__exportStar(e(40604),t),n.__exportStar(e(65973),t),n.__exportStar(e(43953),t),n.__exportStar(e(2835),t),n.__exportStar(e(47768),t),n.__exportStar(e(26809),t)},26809:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parseWithoutEscape=t.toMarkdownHtml=t.parseMarkdown=t.createMarkedRenderer=t.marked=void 0;const n=e(33714);Object.defineProperty(t,"marked",{enumerable:!0,get:function(){return n.marked}});const r=()=>new n.Renderer;t.createMarkedRenderer=r;const o=(v,m)=>n.marked.parse(v,m);t.parseMarkdown=o;const l=(v,m)=>(0,n.marked)(v,m);t.toMarkdownHtml=l;const _=v=>{if(v.type==="escape"){const m=v;m.text=m.raw}return v};t.parseWithoutEscape=_},2835:(x,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.collapseMotion=void 0;const e=()=>({height:0,opacity:0}),n=o=>({height:o.scrollHeight,opacity:1}),r=o=>({height:o.offsetHeight});t.collapseMotion={motionName:"kt-motion-collapse",onAppearStart:e,onEnterStart:e,onAppearActive:n,onEnterActive:n,onLeaveStart:r,onLeaveActive:e}},47768:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.wrapperRaf=_;const r=e(85608).__importDefault(e(10719));let o=0;const l={};function _(v,m=1){const p=o++;let s=m;function g(){s-=1,s<=0?(v(),delete l[p]):l[p]=(0,r.default)(g)}return l[p]=(0,r.default)(g),p}_.cancel=function(m){m!==void 0&&(r.default.cancel(l[m]),delete l[m])},_.ids=l},43953:(x,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.tupleNum=t.tuple=void 0;const e=(...r)=>r;t.tuple=e;const n=(...r)=>r;t.tupleNum=n},65973:(x,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.warning=n,t.note=r,t.resetWarned=o,t.call=l,t.warningOnce=_,t.noteOnce=v;let e={};function n(m,p){}function r(m,p){}function o(){e={}}function l(m,p,s){!p&&!e[s]&&(m(!1,s),e[s]=!0)}function _(m,p){l(n,m,p)}function v(m,p){l(r,m,p)}t.default=_},91802:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.VirtualList=void 0;const r=e(85608).__importStar(e(14041)),o=e(24241),l=e(77011),_=({data:v,className:m,template:p,refSetter:s,onRangeChanged:g})=>{const a=(0,r.useRef)(null);return(0,r.useEffect)(()=>{s?.(a.current)},[a.current]),r.default.createElement(l.Scrollbars,{thumbSize:0},r.default.createElement(o.Virtuoso,{rangeChanged:h=>{g?.(h)},overscan:20,ref:a,style:{height:"100%"},className:m,data:v,itemContent:(h,u)=>r.default.createElement(p,{index:h,data:u})}))};t.VirtualList=_},18740:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),e(85608).__exportStar(e(59019),t)},59019:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WSChannelHandler=void 0;const n=e(40396),r=e(43718),o=e(54558),l=e(47561);class _{onChannelCreated(m,p){return this._onChannelCreatedEmitter.on(m,p)}constructor(m,p,s={}){this.connection=m,this._disposables=new r.DisposableStore,this._onChannelCreatedEmitter=this._disposables.add(new n.EventEmitter),this.channelMap=new Map,this.channelCloseEventMap=new r.MultiMap,this.logger=console,this.openingBarrier=new r.Barrier,this.logger=s.logger||this.logger,this.clientId=p,this.LOG_TAG=`[WSChannelHandler] [client-id:${this.clientId}]`;const g=s.serializer||o.furySerializer;this.wrappedConnection=(0,o.wrapSerializer)(this.connection,g)}replaceLogger(m){m&&(this.logger=m)}setReporter(m){this.reporterService=m}heartbeatMessage(){this.heartbeatMessageTimer&&clearTimeout(this.heartbeatMessageTimer),this.heartbeatMessageTimer=setTimeout(()=>{this.channelMap.forEach(m=>{m.ping()}),this.heartbeatMessage()},1e4)}async initHandler(){this.wrappedConnection.onMessage(p=>{switch(this.heartbeatMessage(),p.kind){case"pong":break;default:{const s=this.channelMap.get(p.id);s?s.dispatch(p):this.logger.warn(this.LOG_TAG,`channel ${p.id} not found`)}}});const m=()=>{this.channelMap.size>0&&this.channelMap.forEach(p=>{p.open(p.channelPath,this.clientId)})};this.connection.onClose((p,s)=>{this.channelMap.forEach(g=>{g.close(p,s)})}),this.connection.isOpen()&&(this.heartbeatMessage(),this.openingBarrier.open()),this.connection.onOpen(()=>{this.heartbeatMessage(),this.openingBarrier.isOpen()?m():this.openingBarrier.open()}),await this.openingBarrier.wait()}fillKey(m){return`${this.clientId}:${m}`}getChannel(m){return this.channelMap.get(this.fillKey(m))}async openChannel(m){const p=this.fillKey(m);this.channelMap.has(p)&&(this.channelMap.get(p).dispose(),this.logger.log(this.LOG_TAG,`channel ${p} already exists, dispose it`));const s=new l.WSChannel(this.wrappedConnection,{id:p,logger:this.logger,ensureServerReady:!0});this.channelMap.set(s.id,s),this._onChannelCreatedEmitter.emit(m,s);let g=0;s.onOpen(()=>{g++,g>1?(s.fireReopen(),this.logger.log(this.LOG_TAG,`channel reconnect ${this.clientId}:${s.channelPath}, count: ${g}`)):this.logger.log(this.LOG_TAG,`channel open ${this.clientId}:${s.channelPath}`);const u=this.channelCloseEventMap.get(s.id);u&&(u.forEach(c=>{this.reporterService&&this.reporterService.point(r.REPORT_NAME.CHANNEL_RECONNECT,r.REPORT_NAME.CHANNEL_RECONNECT,c)}),this.channelCloseEventMap.delete(s.id))}),s.onClose((u,c)=>{this.channelCloseEventMap.set(s.id,{channelPath:m,closeEvent:{code:u,reason:c},connectInfo:navigator.connection}),this.logger.log(this.LOG_TAG,`channel ${m} closed, code: ${u}, reason: ${c}`)});const a=new r.Deferred,h=s.onOpen(()=>{a.resolve(),h.dispose()});return s.open(m,this.clientId),await a.promise,s}dispose(){this.heartbeatMessageTimer&&clearTimeout(this.heartbeatMessageTimer),this._disposables.dispose()}awaitChannelReady(m){const p=this.getChannel(m),s=new r.Deferred;if(p)p.onServerReady(()=>{s.resolve()});else{const g=this.onChannelCreated(m,a=>{a.onServerReady(()=>{s.resolve()}),g.dispose()})}return s.promise}}t.WSChannelHandler=_},98710:(x,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Cursor=t.Buffers=t.emptyBuffer=void 0,t.copy=e,t.emptyBuffer=new Uint8Array(0);function e(o,l,_,v,m){l.set(o.subarray(v,m),_)}class n{constructor(){this.buffers=[],this.size=0}get byteLength(){return this.size}push(l){this.buffers.push(l),this.size+=l.length}unshift(l){this.buffers.unshift(l),this.size+=l.length}slice(l,_){const v=this.buffers;if(_===void 0&&(_=this.size),l===void 0&&(l=0),_>this.size&&(_=this.size),l>=_)return t.emptyBuffer;let m=0,p=0;for(;p<v.length&&m+v[p].length<=l;p++)m+=v[p].length;const s=new Uint8Array(_-l);let g=0;for(let a=p;g<_-l&&a<v.length;a++){const h=v[a].length,u=g===0?l-m:0,c=g+h>=_-l?Math.min(u+(_-l)-g,h):h;e(v[a],s,g,u,c),g+=c-u}return s}pos(l){if(l<0||l>=this.size)throw new Error(`out of range, ${l} not in [0, ${this.size})`);let _=l,v=0,m=null;for(;;){if(m=this.buffers[v],_<m.length)return{buf:v,offset:_};_-=m.length,v++}}copy(l,_=0,v=0,m=this.size){return e(this.slice(v,m),l,_,0,m-v)}splice(l,_,...v){const m=this.buffers,p=l>=0?l:this.size-l;_===void 0?_=this.size-p:_>this.size-p&&(_=this.size-p);for(const h of v)this.size+=h.length;const s=new n;let g=0,a=0;for(;a<m.length&&g+m[a].length<p;a++)g+=m[a].length;if(p-g>0){const h=p-g;if(h+_<m[a].length){s.push(m[a].slice(h,h+_));const u=m[a],c=new Uint8Array(h);for(let f=0;f<h;f++)c[f]=u[f];const E=new Uint8Array(u.length-h-_);for(let f=h+_;f<u.length;f++)E[f-_-h]=u[f];if(v.length>0){const f=v.slice();f.unshift(c),f.push(E),m.splice.apply(m,[a,1,...f]),a+=f.length,v=[]}else m.splice(a,1,c,E),a+=2}else s.push(m[a].slice(h)),m[a]=m[a].slice(0,h),a++}for(v.length>0&&(m.splice.apply(m,[a,0,...v]),a+=v.length);s.byteLength<_;){const h=m[a],u=h.length,c=Math.min(u,_-s.byteLength);c===u?(s.push(h),m.splice(a,1)):(s.push(h.slice(0,c)),m[a]=m[a].slice(c))}return this.size-=s.byteLength,s}get(l){const{buf:_,offset:v}=this.pos(l);return this.buffers[_][v]}set(l,_){const{buf:v,offset:m}=this.pos(l);this.buffers[v][m]=_}cursor(l=0){return new r(this,l)}dispose(){this.buffers=[],this.size=0}}t.Buffers=n;class r{constructor(l,_=0){this.buffers=l,this.offset=_,this.chunkIndex=0,this.chunkOffset=0,this.updatePosition()}updatePosition(){if(this.offset===0){this.chunkIndex=0,this.chunkOffset=0;return}const{buf:l,offset:_}=this.buffers.pos(this.offset);this.chunkIndex=l,this.chunkOffset=_}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 l=this.buffers.buffers[this.chunkIndex],_=l.byteLength;for(;this.chunkOffset<_;){const v=l[this.chunkOffset];this.chunkOffset++,this.offset++,yield v}this.chunkOffset=0,this.chunkIndex++}}read(l){const _=this.offset+l,v=this.buffers.slice(this.offset,_);return this.skip(l),v}skip(l){let _=0;for(;this.chunkIndex<this.buffers.buffers.length;){const m=this.buffers.buffers[this.chunkIndex].byteLength;for(;this.chunkOffset<m;)if(this.chunkOffset++,this.offset++,++_===l)return;this.chunkOffset=0,this.chunkIndex++}}moveTo(l){this.offset=l,this.updatePosition()}dispose(){this.buffers=null,this.offset=0}reset(){this.offset=0,this.chunkIndex=0,this.chunkOffset=0}}t.Cursor=r},30613:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Capturer=t.ResponseStatus=t.MessageType=void 0,t.getCapturer=v;const n=e(43718),r=e(65265);var o;(function(p){p.SendNotification="sendNotification",p.SendRequest="sendRequest",p.RequestResult="requestResult",p.OnNotification="onNotification",p.OnRequest="onRequest",p.OnRequestResult="onRequestResult"})(o||(t.MessageType=o={}));var l;(function(p){p.Success="success",p.Fail="fail"})(l||(t.ResponseStatus=l={}));const _=typeof e.g>"u"?typeof window>"u"?{__OPENSUMI_DEVTOOLS_GLOBAL_HOOK__:void 0}:window:e.g;function v(){const p=_.__OPENSUMI_DEVTOOLS_GLOBAL_HOOK__;if(p)return p.captureRPC}class m{constructor(s){this.source=s,this._disposables=new n.DisposableStore,this.capturer=null,this.setupListener=g=>{const{command:a}=g.detail;a===r.DevtoolsLantencyCommand.Start?this.capturer=v():a===r.DevtoolsLantencyCommand.Stop&&(this.capturer=null)},this.prefix=(0,n.randomString)(6),this.capturer=v(),typeof _.addEventListener=="function"&&(_.addEventListener(r.EDevtoolsEvent.Latency,this.setupListener),this._disposables.add({dispose:()=>{_.removeEventListener(r.EDevtoolsEvent.Latency,this.setupListener)}}))}capture(s){if(!this.capturer)return;const g={...s,source:this.source};g.data&&(0,n.isUint8Array)(g.data)&&(g.data="<Uint8Array>"),s.requestId&&(g.requestId=`${this.prefix}-${s.requestId}`),s.error&&(g.error=(0,n.transformErrorForSerialization)(s.error)),this.capturer(g)}captureOnRequest(s,g,a){this.capturer&&this.capture({type:o.OnRequest,requestId:`\u2193${s}`,serviceMethod:g,arguments:a})}captureOnRequestResult(s,g,a){this.capturer&&this.capture({type:o.OnRequestResult,status:l.Success,requestId:`\u2193${s}`,serviceMethod:g,data:a})}captureOnRequestFail(s,g,a){this.capturer&&this.capture({type:o.OnRequestResult,status:l.Fail,requestId:`\u2193${s}`,serviceMethod:g,error:a})}captureSendRequest(s,g,a){this.capturer&&this.capture({type:o.SendRequest,requestId:s,serviceMethod:g,arguments:a})}captureSendRequestResult(s,g,a){this.capturer&&this.capture({type:o.RequestResult,status:l.Success,requestId:s,serviceMethod:g,data:a})}captureSendRequestFail(s,g,a){this.capturer&&this.capture({type:o.RequestResult,status:l.Fail,requestId:s,serviceMethod:g,error:a})}captureSendNotification(s,g,a){this.capturer&&this.capture({type:o.SendNotification,serviceMethod:g,arguments:a,requestId:s})}captureOnNotification(s,g,a){this.capturer&&this.capture({type:o.OnNotification,serviceMethod:g,arguments:a,requestId:`\u2193${s}`})}dispose(){this._disposables.dispose()}}t.Capturer=m},29433:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),e(85608).__exportStar(e(39048),t)},39048:(x,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ErrorMessageCode=void 0;var e;(function(n){n[n.ChannelNotFound=1]="ChannelNotFound"})(e||(t.ErrorMessageCode=e={}))},9811:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.initRPCService=l,t.createRPCService=_,t.getRPCService=v;const n=e(85608),r=e(62199),o=e(8140);function l(m){return{createRPCService:(p,s)=>{const g=_(p,m);return s&&g.onRequestService(s),g},getRPCService:p=>v(p,m)}}function _(m,p){return new r.RPCServiceStub(m,p,o.ServiceType.Service).getProxy()}function v(m,p){return new r.RPCServiceStub(m,p,o.ServiceType.Stub).getProxy()}n.__exportStar(e(62199),t)},35821:(x,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BaseConnection=void 0;class e{}t.BaseConnection=e},57358:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LengthFieldBasedFrameDecoder=t.indicator=void 0;const n=e(89212),r=e(43718),o=e(98710);t.indicator=new Uint8Array([13,10,13,10]);class l{constructor(){this.dataEmitter=new r.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(v){this.buffers.push(v);let m=!1;for(;!m;)m=this.readFrame()}readFrame(){if(this.readLengthField()){const m=this.cursor.offset,p=m+this.contentLength,s=this.buffers.slice(m,p);if(this.dataEmitter.fire(s),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 v=this.buffers.byteLength;if(this.state!==4){if(this.cursor.offset+t.indicator.length>v)return!1;this.readIndicator()}if(this.state!==4)return!1;if(this.contentLength===-1){if(this.cursor.offset+this.lengthFieldLength>v)return!1;const m=this.cursor.read(this.lengthFieldLength);this.contentLength=(0,r.readUInt32LE)(m,0)}return!(this.cursor.offset+this.contentLength>v)}readIndicator(){const v=this.cursor.iterator();let m=v.next();for(;!m.done;){switch(m.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,v.return();break;default:this.state=0;break}break;default:this.state=0;break}m=v.next()}}dispose(){this.dataEmitter.dispose(),this.buffers.dispose()}static construct(v){return l.writer.reset(),l.writer.buffer(t.indicator),l.writer.uint32(v.byteLength),l.writer.buffer(v),l.writer.dump()}}t.LengthFieldBasedFrameDecoder=l,l.writer=(0,n.BinaryWriter)({})},34982:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=e(85608);n.__exportStar(e(35821),t),n.__exportStar(e(71056),t),n.__exportStar(e(57625),t),n.__exportStar(e(15272),t)},92917:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MessagePortConnection=void 0;const n=e(35821);class r extends n.BaseConnection{constructor(l){super(),this.port=l,l.start()}send(l){this.port.postMessage(l)}onMessage(l){const _=v=>{l(v.data)};return this.port.addEventListener("message",_),{dispose:()=>{this.port.removeEventListener("message",_)}}}onceClose(l){return this.port.addEventListener("close",l),{dispose:()=>{this.port.addEventListener("close",l)}}}dispose(){}}t.MessagePortConnection=r},71056:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NodeMessagePortConnection=void 0;const n=e(35821);class r extends n.BaseConnection{constructor(l){super(),this.port=l}send(l){this.port.postMessage(l)}onMessage(l){return this.port.on("message",l),{dispose:()=>{this.port.off("message",l)}}}onceClose(l){return this.port.once("close",l),{dispose:()=>{this.port.off("close",l)}}}dispose(){this.port.removeAllListeners()}}t.NodeMessagePortConnection=r},91493:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ReconnectingWebSocketConnection=void 0;const r=e(85608).__importDefault(e(31133)),o=e(35821);class l extends o.BaseConnection{constructor(v){super(),this.socket=v}send(v){this.socket.send(v)}isOpen(){return this.socket.readyState===this.socket.OPEN}onOpen(v){return this.socket.addEventListener("open",v),{dispose:()=>{this.socket.removeEventListener("open",v)}}}onMessage(v){const m=p=>{var s,g;let a;if(p.data instanceof Blob)a=p.data.arrayBuffer();else if(p.data instanceof ArrayBuffer)a=Promise.resolve(p.data);else if(((g=(s=p.data)===null||s===void 0?void 0:s.constructor)===null||g===void 0?void 0:g.name)==="Buffer")a=Promise.resolve(p.data);else throw new Error("unknown message type, expect Blob or ArrayBuffer, received: "+typeof p.data);a.then(h=>v(new Uint8Array(h,0,h.byteLength)))};return this.socket.addEventListener("message",m),{dispose:()=>{this.socket.removeEventListener("message",m)}}}onceClose(v){const m=this.onClose(p);return{dispose:()=>{m.dispose()}};function p(s,g){v(s,g),m.dispose()}}onClose(v){const m=p=>{v(p.code,p.reason)};return this.socket.addEventListener("close",m),{dispose:()=>{this.socket.removeEventListener("close",m)}}}onError(v){const m=p=>{v(p.error)};return this.socket.addEventListener("error",m),{dispose:()=>{this.socket.removeEventListener("error",m)}}}dispose(){}static forURL(v,m,p){const s=new r.default(v,m,p);return s.binaryType="arraybuffer",new l(s)}}t.ReconnectingWebSocketConnection=l},57625:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NetSocketConnection=void 0;const n=e(36932);class r extends n.StreamConnection{constructor(l){super(l,l),this.socket=l}isOpen(){return this.socket.readyState==="open"}onOpen(l){return this.socket.on("connect",l),{dispose:()=>{this.socket.off("connect",l)}}}destroy(){this.socket.destroy()}}t.NetSocketConnection=r},36932:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StreamConnection=void 0;const n=e(35821),r=e(57358);class o extends n.BaseConnection{constructor(_,v){super(),this.readable=_,this.writable=v,this.decoder=new r.LengthFieldBasedFrameDecoder;const m=p=>{this.decoder.push(p)};this.readable.on("data",m),this.readable.once("close",()=>{this.decoder.dispose(),this.readable.off("data",m)})}send(_){const v=r.LengthFieldBasedFrameDecoder.construct(_);this.writable.write(v,()=>{})}onMessage(_){return this.decoder.onData(_)}onceClose(_){const v=this.onClose(m);return{dispose:()=>{v.dispose()}};function m(p,s){_(p,s),v.dispose()}}onClose(_){const v=m=>{_(m?1:0,m?"had error":"")};return this.readable.on("close",v),this.writable!==this.readable&&this.writable.on("close",v),{dispose:()=>{this.readable.off("close",v),this.writable!==this.readable&&this.writable.off("close",v)}}}onError(_){return this.readable.on("error",_),this.writable!==this.readable&&this.writable.on("error",_),{dispose:()=>{this.readable.off("error",_),this.writable!==this.readable&&this.writable.off("error",_)}}}dispose(){this.decoder.dispose()}}t.StreamConnection=o},15272:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WSWebSocketConnection=void 0;const n=e(35821);class r extends n.BaseConnection{constructor(l){super(),this.socket=l}send(l){this.socket.send(l)}onMessage(l){return this.socket.on("message",l),{dispose:()=>{this.socket.off("message",l)}}}onceClose(l){return this.socket.once("close",l),{dispose:()=>{this.socket.off("close",l)}}}isOpen(){return this.socket.readyState===this.socket.OPEN}dispose(){this.socket.removeAllListeners()}}t.WSWebSocketConnection=r},90750:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),e(85608).__exportStar(e(34982),t)},91676:(x,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.METHOD_NOT_REGISTERED=void 0,t.METHOD_NOT_REGISTERED="$$METHOD_NOT_REGISTERED"},89104:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ExtObjectTransfer=t.AnySerializer=t.ProtocolType=void 0;const n=e(43718);var r;(function(v){v[v.String=0]="String",v[v.Buffer=1]="Buffer",v[v.Number=2]="Number",v[v.JSONObject=3]="JSONObject",v[v.BigInt=4]="BigInt",v[v.Array=5]="Array",v[v.Object=6]="Object",v[v.Undefined=7]="Undefined",v[v.Null=8]="Null",v[v.Boolean=9]="Boolean"})(r||(t.ProtocolType=r={}));class o{constructor(m,p,s){this.writer=m,this.reader=p,this.objectTransfer=s,this.deserialize=g=>(this.reader.reset(g),this.read()),this.serialize=g=>(this.writer.reset(),this.write(g),this.writer.dump())}write(m){var p;const{writer:s}=this,g=typeof m;switch(s.reserve(1),m){case null:s.uint8(r.Null);return;default:switch(g){case"undefined":s.uint8(r.Undefined);break;case"string":s.uint8(r.String),s.stringOfVarUInt32(m);break;case"boolean":s.reserve(1),s.uint8(r.Boolean),s.uint8(m?1:0);break;case"number":s.reserve(8),s.uint8(r.Number),s.double(m);break;case"bigint":s.reserve(8),s.uint8(r.BigInt),s.int64(m);break;case"object":if(Array.isArray(m)){s.reserve(4),s.uint8(r.Array),s.varUInt32(m.length);for(const a of m)this.write(a)}else(0,n.isUint8Array)(m)?(s.reserve(4),s.uint8(r.Buffer),s.varUInt32(m.byteLength),s.buffer(m)):(s.uint8(r.JSONObject),s.stringOfVarUInt32(JSON.stringify(m,(p=this.objectTransfer)===null||p===void 0?void 0:p.replacer)));break;default:throw new Error(`Unknown type ${g}`)}}}read(){var m;const{reader:p}=this,s=p.uint8();switch(s){case r.Undefined:return;case r.Null:return null;case r.String:return p.stringOfVarUInt32();case r.Buffer:{const g=p.varUInt32();return p.buffer(g)}case r.Number:return p.double();case r.JSONObject:{const g=p.stringOfVarUInt32();return JSON.parse(g,(m=this.objectTransfer)===null||m===void 0?void 0:m.reviver)}case r.BigInt:return p.int64();case r.Array:{const g=p.varUInt32(),a=[];for(let h=0;h<g;h++)a.push(this.read());return a}case r.Boolean:return p.uint8()===1;default:throw new Error(`Unknown type ${s}`)}}}t.AnySerializer=o;var l;(function(v){v.CODE_URI="CodeURI",v.BUFFER="Buffer"})(l||(l={}));class _{static replacer(m,p){if(p){switch(p.$mid){case 1:{const s=n.Uri.revive(p);return{$type:l.CODE_URI,data:s.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(m,p){if(p&&p.$type!==void 0&&p.data!==void 0)switch(p.$type){case l.CODE_URI:return n.Uri.parse(p.data);case l.BUFFER:return Uint8Array.from(p.data)}return p}}t.ExtObjectTransfer=_},94846:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.oneOf=void 0;const n=e(26246),r=e(4405),o=8,l=(_,v)=>{v||(v=(0,r.furyFactory)());const{fury:m,reader:p,writer:s}=v,g=new Array(o),a=new Array(o),h={};return _.forEach((E,f)=>{const d=E.options.tag;g[f]=(0,n.generateSerializer)(m,E),a[f]=d,h[d]=f}),{deserialize:E=>{p.reset(E);const f=p.uint8();let d;switch(f){case 0:d=g[0].read();break;case 1:d=g[1].read();break;case 2:d=g[2].read();break;case 3:d=g[3].read();break;case 4:d=g[4].read();break;case 5:d=g[5].read();break;case 6:d=g[6].read();break;case 7:d=g[7].read();break}return d.kind=a[f],d},serialize:E=>{const f=h[E.kind];switch(s.reset(),s.uint8(f),f){case 0:g[0].write(E);break;case 1:g[1].write(E);break;case 2:g[2].write(E);break;case 3:g[3].write(E);break;case 4:g[4].write(E);break;case 5:g[5].write(E);break;case 6:g[6].write(E);break;case 7:g[7].write(E);break}return s.dump()}}};t.oneOf=l},4405:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.furyFactory=void 0;const r=e(85608).__importDefault(e(97419)),o=l=>{const _=new r.default(l),v=_.binaryReader,m=_.binaryWriter;return{fury:_,reader:v,writer:m}};t.furyFactory=o},25285:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=e(85608);n.__exportStar(e(66748),t),n.__exportStar(e(62199),t),n.__exportStar(e(86058),t),n.__exportStar(e(15726),t),n.__exportStar(e(30613),t),n.__exportStar(e(47561),t),n.__exportStar(e(9811),t),n.__exportStar(e(8140),t),n.__exportStar(e(90750),t),n.__exportStar(e(54558),t),n.__exportStar(e(29433),t)},16908:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CommonServerProtocol=void 0;const n=e(26387),r=e(43718);t.CommonServerProtocol={name:r.CommonServerPath,methods:[{method:"getBackendOS",request:[],response:{type:n.Type.uint16()}}]}},52890:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PositionProto=t.SelectionProto=t.RangeProto=t.UriComponentsProto=void 0;const n=e(26387);t.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()}),t.RangeProto=n.Type.object("range",{startLineNumber:n.Type.uint32(),startColumn:n.Type.uint32(),endLineNumber:n.Type.uint32(),endColumn:n.Type.uint32()}),t.SelectionProto=n.Type.object("selection",{selectionStartLineNumber:n.Type.uint32(),selectionStartColumn:n.Type.uint32(),positionLineNumber:n.Type.uint32(),positionColumn:n.Type.uint32()}),t.PositionProto=n.Type.object("position",{lineNumber:n.Type.uint32(),column:n.Type.uint32()})},11431:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ExtensionDocumentProtocol=void 0;const n=e(26387),r=e(52890);t.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:r.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:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RPCServiceCenter=void 0,t.getNotificationName=s,t.getRequestName=g,t.getMethodName=a;const n=e(43718),r=e(96068),o=e(91676),l=e(8140),_=e(66748),v=e(92408),m=200;class p{constructor(u,c){this.bench=u,this._disposables=new n.DisposableStore,this.proxies=[],this.serviceRegistry=this._disposables.add(new v.ServiceRegistry),this.protocolRegistry=this._disposables.add(new v.ProtocolRegistry),this.deferred=new n.Deferred,this._reportThreshold=m,this.uid=(0,n.randomString)(6),this.logger=c||console}setReporter(u,c=m){this._reporterService=u,this._reportThreshold=c}registerService(u,c){c===l.ServiceType.Service&&this.bench&&this.bench.registerService(u)}ready(){return this.deferred.promise}loadProtocol(u){this.protocolRegistry.addProtocol(u,{nameConverter:c=>a(u.name,c)})}setSumiConnection(u){this.proxies.length===0&&this.deferred.resolve(),this.protocolRegistry.applyTo(u.io);const c=new _.ProxySumi(this.serviceRegistry,this.logger);c.listen(u);const E=(0,r.addElement)(this.proxies,c);return{dispose:()=>{E.dispose(),c.dispose()}}}setConnection(u){this.proxies.length===0&&this.deferred.resolve();const c=new _.ProxyJson(this.serviceRegistry,this.logger);c.listen(u);const E=(0,r.addElement)(this.proxies,c);return{dispose:()=>{E.dispose(),c.dispose()}}}onRequest(u,c,E){this.serviceRegistry.register(a(u,c),E)}onRequestService(u,c){this.serviceRegistry.registerService(c,{nameConverter:E=>a(u,E)})}async broadcast(u,c,...E){await this.ready();const f=a(u,c);let d;this._reporterService&&(d=this._reporterService.time(n.REPORT_NAME.RPC_TIMMING_MEASURE));const y=await Promise.all(this.proxies.map(S=>S.invoke(f,...E))),b=[],A=[];for(const S of y)S===o.METHOD_NOT_REGISTERED?b.push(S):A.push(S);if(b.length>0&&this.logger.warn(`broadcast rpc \`${f}\` getting doubtful responses: ${b.join(",")}`),A.length===0)throw d&&d.timeEnd(f,{success:!1},{minimumReportThresholdTime:this._reportThreshold}),new Error(`broadcast rpc \`${f}\` error: no remote service can handle this call`);return d&&d.timeEnd(f,{success:!0},{minimumReportThresholdTime:this._reportThreshold}),A.length===1?A[0]:A}dispose(){this._disposables.dispose(),this.proxies.forEach(u=>u.dispose()),this.proxies=[]}}t.RPCServiceCenter=p;function s(h,u){return`on:${h}:${u}`}function g(h,u){return`${h}:${u}`}function a(h,u){return u.startsWith("on")?s(h,u):g(h,u)}},62199:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RPCService=void 0;const n=e(85608);n.__exportStar(e(68855),t),n.__exportStar(e(26166),t),n.__exportStar(e(92408),t);class r{get client(){return this.rpcClient?this.rpcClient[0]:void 0}}t.RPCService=r},59875:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ProxyBase=void 0;const n=e(43718),r=new Set(["then","finally"]);let o=0;class l{constructor(v,m){this.registry=v,this.connectionPromise=new n.Deferred,this._disposables=new n.DisposableStore,this.logger=m||console,this.registry.onServicesUpdate(p=>{this.connection&&this.bindMethods(p)})}nextRequestId(){return String(o++)}listen(v){this.connection=v,this._disposables.add(this.connection),this.bindMethods(this.registry.methods()),v.listen(),this.connectionPromise.resolve()}listenService(v){this.registry.registerService(v)}dispose(){this._disposables.dispose()}getInvokeProxy(){return new Proxy(Object.create(null),{get:(v,m)=>typeof m!="string"?null:r.has(m)?Promise.resolve():(v[m]||(v[m]=(...p)=>this.invoke(m,...p)),v[m])})}}t.ProxyBase=l},66748:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=e(85608);n.__exportStar(e(33716),t),n.__exportStar(e(16420),t)},33716:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ProxyJson=void 0;const n=e(30613),r=e(91676),o=e(59875);class l extends o.ProxyBase{constructor(){super(...arguments),this.engine="json",this.capturer=this._disposables.add(new n.Capturer(this.engine))}bindMethods(v){for(const m of v)m.startsWith("on")?this.connection.onNotification(m,async(...p)=>{this.capturer.captureOnNotification("_",m,p);try{await this.registry.invoke(m,...this.serializeArguments(p))}catch(s){this.logger.warn(`notification exec ${m} error`,s)}}):this.connection.onRequest(m,async(...p)=>{const s=this.nextRequestId();this.capturer.captureOnRequest(s,m,p);try{const g=await this.registry.invoke(m,...this.serializeArguments(p));return this.capturer.captureOnRequestResult(s,m,g),{error:!1,data:g}}catch(g){return this.capturer.captureOnRequestFail(s,m,g),{error:!0,data:{message:g.message,stack:g.stack}}}})}async invoke(v,...m){await this.connectionPromise.promise;let p=!1;if(m.length===1&&Array.isArray(m[0])&&(p=!0),v.startsWith("on"))this.capturer.captureSendNotification("_",v,m),p?this.connection.sendNotification(v,[...m]):this.connection.sendNotification(v,...m);else{const s=this.nextRequestId();let g;p?g=this.connection.sendRequest(v,[...m]):g=this.connection.sendRequest(v,...m),this.capturer.captureSendRequest(s,v,m);const a=await g;if(a.error){const h=new Error(a.data.message);throw a.data.stack&&(h.stack=a.data.stack),this.capturer.captureSendRequestFail(s,v,a.data),h}else return this.capturer.captureSendRequestResult(s,v,a.data),a.data}}serializeArguments(v){const m=v[v.length-1];return v.length===2&&Array.isArray(v[0])&&Object.prototype.hasOwnProperty.call(m,"_isCancelled")?[...v[0],m]:v}listen(v){super.listen(v),this._disposables.add(v.onRequest(m=>{if(!this.registry.has(m)){const p=this.nextRequestId();this.capturer.captureOnRequest(p,m,[]);const s={data:r.METHOD_NOT_REGISTERED};return this.capturer.captureOnRequestFail(p,m,s.data),s}}))}}t.ProxyJson=l},16420:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ProxySumi=void 0;const n=e(91676),r=e(59875);class o extends r.ProxyBase{constructor(){super(...arguments),this.engine="sumi"}bindMethods(_){for(const v of _)v.startsWith("on")?this.connection.onNotification(v,async(...m)=>{try{await this.registry.invoke(v,...m)}catch(p){this.logger.warn(`notification exec ${v} error`,p)}}):this.connection.onRequest(v,async(...m)=>await this.registry.invoke(v,...m))}async invoke(_,...v){if(await this.connectionPromise.promise,_.startsWith("on"))this.connection.sendNotification(_,...v);else return await this.connection.sendRequest(_,...v)}listen(_){super.listen(_),this._disposables.add(_.onRequestNotFound(()=>{throw n.METHOD_NOT_REGISTERED}))}}t.ProxySumi=o},92408:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ProtocolRegistry=t.ServiceRegistry=void 0,t.getServiceMethods=o;const n=e(43718),r=new Set(["constructor"]);function o(v){const m=new Set;let p=v;do{const g=Object.getOwnPropertyNames(p);for(const a of g)r.has(a)||typeof v[a]=="function"&&m.add(a)}while(p=Object.getPrototypeOf(p));const s=Array.from(m);return s.sort(),s}class l{constructor(){this._disposables=new n.DisposableStore,this.emitter=this._disposables.add(new n.Emitter),this.onServicesUpdate=this.emitter.event,this.serviceMethodMap=new Map}register(m,p){this.serviceMethodMap.set(m,p),this.emitter.fire([m])}registerService(m,p){const s=[],{nameConverter:g}=p||{},a=o(m);for(const h of a){let u=h;g&&(u=g(h)),this.serviceMethodMap.set(u,m[h].bind(m)),s.push(u)}this.emitter.fire(s)}has(m){return this.serviceMethodMap.has(m)}invoke(m,...p){return this.serviceMethodMap.get(m)(...p)}methods(){return Array.from(this.serviceMethodMap.keys())}dispose(){this._disposables.dispose()}}t.ServiceRegistry=l;class _{constructor(){this._disposables=new n.DisposableStore,this.emitter=this._disposables.add(new n.Emitter),this.onProtocolUpdate=this.emitter.event,this.protocolMap=new Map}addProtocol(m,p){const s=[],{nameConverter:g}=p||{},{methods:a}=m;for(const h of a){let u=h.method;g&&(u=g(u)),this.protocolMap.set(u,{...h,method:u}),s.push(u)}this.emitter.fire(s)}applyTo(m){if(m.loadProtocolMethod){for(const p of this.protocolMap.values())m.loadProtocolMethod(p);this._disposables.add(this.onProtocolUpdate(p=>{if(m.loadProtocolMethod)for(const s of p){const g=this.protocolMap.get(s);g&&m.loadProtocolMethod(g)}}))}}dispose(){this._disposables.dispose()}}t.ProtocolRegistry=_},68855:(x,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RPCServiceStub=void 0;class e{constructor(r,o,l){this.serviceName=r,this.center=o,this.type=l,this.getProxy=()=>new Proxy(this,{get:(_,v)=>typeof v=="symbol"?Promise.resolve():(_[v]||(_[v]=(...m)=>this.broadcast(v,...m)),_[v])}),this.center.registerService(r,this.type)}on(r,o){this.onRequest(r,o)}onRequestService(r){this.center.onRequestService(this.serviceName,r)}onRequest(r,o){this.center.onRequest(this.serviceName,r,o)}broadcast(r,...o){return this.center.broadcast(this.serviceName,r,...o)}}t.RPCServiceStub=e},97349:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SumiConnection=void 0;const n=e(43718),r=e(70392),o=e(93062),l=e(30613),_=e(90750),v=e(91676),m=e(48218),p=e(76339),s={},g={chunked:!0};class a{constructor(u,c={}){this.socket=u,this.options=c,this.disposable=new r.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,c.logger?this.logger=c.logger:this.logger=(0,n.getDebugLogger)(),this.io=c.io||new p.MessageIO,this.capturer=new l.Capturer(c.name||"sumi"),this.disposable.add(this.capturer)}sendNotification(u,...c){const E=this._requestId++;this.capturer.captureSendNotification(E,u,c),this.socket.send(this.io.Notification(E,u,s,c))}sendRequest(u,...c){return new Promise((E,f)=>{const d=this._requestId++;if(this._callbacks.set(d,(b,A,S)=>{if(A){if(this.traceRequestError(d,u,c,A),A===v.METHOD_NOT_REGISTERED){E(A);return}f(A);return}this.capturer.captureSendRequestResult(d,u,S),E(S)}),this.options.timeout&&this.options.timeout!==-1){const b=setTimeout(()=>{this._handleTimeout(u,d)},this.options.timeout);this._reqTimeoutHandles.set(d,b)}const y=c.length&&r.CancellationToken.isCancellationToken(c[c.length-1])?c.pop():void 0;if(y&&y.isCancellationRequested)return Promise.reject((0,r.canceled)());y&&y.onCancellationRequested(()=>this.cancelRequest(d)),this.capturer.captureSendRequest(d,u,c),this.socket.send(this.io.Request(d,u,{cancelable:!!y||void 0},c))})}cancelRequest(u){this.socket.send(this.io.Cancel(u))}_handleTimeout(u,c){if(!this._callbacks.has(c)||!this._reqTimeoutHandles.has(c))return;const E=this._callbacks.get(c);this._callbacks.delete(c),this._reqTimeoutHandles.delete(c),E(s,new m.MethodTimeoutError(u))}onRequest(u,c){return this._requestHandlers.set(u,c),{dispose:()=>{this._requestHandlers.delete(u)}}}onRequestNotFound(u){return this._starRequestHandler=u,{dispose:()=>{this._starRequestHandler=void 0}}}onNotification(u,c){return this._notificationHandlers.set(u,c),{dispose:()=>{this._notificationHandlers.delete(u)}}}onNotificationNotFound(u){return this._starNotificationHandler=u,{dispose:()=>{this._starNotificationHandler=void 0}}}listen(){this.disposable.add(this.socket.onMessage(u=>{const c=this.io.parse(u),E=c.kind,f=c.requestId;switch(E===p.OperationType.Error&&this.logger.warn(`[${c.requestId}] Error received from server method ${c.method}: ${c.error}`),E){case p.OperationType.Error:case p.OperationType.Response:{const{headers:d,method:y}=c,b=c.error,A=c.result;this._reqTimeoutHandles.has(f)&&(clearTimeout(this._reqTimeoutHandles.get(f)),this._reqTimeoutHandles.delete(f));const S=(D,I,w)=>{const T=this._callbacks.get(f);if(!T){this.logger.error(`Cannot find callback for request ${f}: ${y}`);return}this._callbacks.delete(f),T(D,I,w)};if(d&&d.chunked){let D;if(this.activeRequestPool.has(f)?D=this.activeRequestPool.get(f):(D=new o.SumiReadableStream,this.activeRequestPool.set(f,D),S(d,void 0,D)),A===null){D.end(),this.activeRequestPool.delete(f);break}if(b){D.emitError(b);break}D.emitData(A);break}S(d,b,A);break}case p.OperationType.Notification:case p.OperationType.Request:{const{method:d,headers:y,args:b}=c;if(y.cancelable){const A=new r.CancellationTokenSource;this._cancellationTokenSources.set(f,A),b.push(A.token),this._knownCanceledRequests.has(f)&&(A.cancel(),this._knownCanceledRequests.delete(f))}switch(E){case p.OperationType.Request:{this.capturer.captureOnRequest(f,d,b);let A;try{let I;const w=this._requestHandlers.get(d);w?I=w(...b):this._starRequestHandler&&(I=this._starRequestHandler(d,b)),A=Promise.resolve(I)}catch(I){A=Promise.reject(I)}const S=I=>{this.capturer.captureOnRequestResult(f,d,I),(0,o.isReadableStream)(I)?(0,o.listenReadable)(I,{onData:w=>{this.socket.send(this.io.Response(f,d,g,w))},onEnd:()=>{this.socket.send(this.io.Response(f,d,g,null)),this._cancellationTokenSources.delete(f)},onError:w=>{this.socket.send(this.io.Error(f,d,g,w)),this._cancellationTokenSources.delete(f)}}):(this.socket.send(this.io.Response(f,d,s,I)),this._cancellationTokenSources.delete(f))},D=I=>{this.traceRequestError(f,d,b,I),this.socket.send(this.io.Error(f,d,s,I)),this._cancellationTokenSources.delete(f)};A.then(S).catch(D);break}case p.OperationType.Notification:{this.capturer.captureOnNotification(f,d,b);const A=this._notificationHandlers.get(d);A?A(...b):this._starNotificationHandler&&this._starNotificationHandler(d,b);break}}break}case p.OperationType.Cancel:{const d=this._cancellationTokenSources.get(f);d?d.cancel():this._knownCanceledRequests.add(f);break}default:break}}))}dispose(){this.disposable.dispose()}static forWSWebSocket(u,c={}){return new a(new _.WSWebSocketConnection(u),c)}static forNetSocket(u,c={}){return new a(new _.NetSocketConnection(u),c)}traceRequestError(u,c,E,f){this.capturer.captureSendRequestFail(u,c,f)}toJSON(){throw new Error(`You're trying to serialize a SumiConnection instance, which is not allowed.
|
|
31966
31966
|
Please check your code, and remove the rpc proxy reference.`)}}t.SumiConnection=a},48218:(x,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MethodTimeoutError=void 0;class e extends Error{constructor(r){super(`method ${r} timeout`)}}t.MethodTimeoutError=e},76339:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RawMessageIO=t.MessageIO=t.IMessageIO=t.AnyProtocolSerializer=t.HeadersProto=t.OperationType=void 0;const n=e(26387),r=e(26246),o=e(86560),l=e(89104),_=e(4405),v=1;var m;(function(c){c[c.Request=0]="Request",c[c.Notification=1]="Notification",c[c.Response=2]="Response",c[c.Cancel=3]="Cancel",c[c.Error=4]="Error"})(m||(t.OperationType=m={})),t.HeadersProto={Request:n.Type.object("req-headers",{cancelable:n.Type.bool()}),Response:n.Type.object("resp-headers",{chunked:n.Type.bool()})};const p={Request:m.Request<<8|v,Notification:m.Notification<<8|v,Response:m.Response<<8|v,Cancel:m.Cancel<<8|v,Error:m.Error<<8|v};class s{constructor(E,f){this.fury=f;const d=[];for(const A of E.request)d.push(A.type);const y=n.Type.tuple(d);let b=n.Type.any();E.response&&E.response.type&&(b=E.response.type),this.request=this.fury.registerSerializer(y),this.result=this.fury.registerSerializer(b)}writeRequest(E){return this.request.serializer.write(E)}readRequest(){return this.request.serializer.read()}writeResponse(E){return this.result.serializer.write(E)}readResponse(){return this.result.serializer.read()}}class g{constructor(E,f,d){this.writer=E,this.reader=f,this.anySerializer=new l.AnySerializer(this.writer,this.reader,d)}writeRequest(E){this.anySerializer.write(E)}readRequest(){return this.anySerializer.read()}writeResponse(E){this.anySerializer.write(E)}readResponse(){return this.anySerializer.read()}}t.AnyProtocolSerializer=g;class a{}t.IMessageIO=a;class h extends a{constructor(){super(),this.serializerMap=new Map;const E=(0,_.furyFactory)();this.fury=E.fury,this.reader=E.reader,this.writer=E.writer,this.requestHeadersSerializer=(0,r.generateSerializer)(this.fury,t.HeadersProto.Request),this.responseHeadersSerializer=(0,r.generateSerializer)(this.fury,t.HeadersProto.Response),this.anySerializer=new g(this.writer,this.reader)}setAnySerializer(E){this.anySerializer=E}has(E){return this.serializerMap.has(E)}loadProtocol(E,f){const{methods:d}=E;for(const y of d)this.loadProtocolMethod(y,f)}loadProtocolMethod(E,f){let d=E.method;f?.nameConverter&&(d=f.nameConverter(d)),this.serializerMap.set(d,new s(E,this.fury))}getProcessor(E){const f=this.serializerMap.get(E);return f||this.anySerializer}Notification(E,f,d,y){const{writer:b}=this;return b.reset(),b.uint16(p.Notification),b.uint32(E),b.stringOfVarUInt32(f),this.requestHeadersSerializer.write(d),this.getProcessor(f).writeRequest(y),b.dump()}Request(E,f,d,y){const{writer:b}=this;return b.reset(),b.uint16(p.Request),b.uint32(E),b.stringOfVarUInt32(f),this.requestHeadersSerializer.write(d),this.getProcessor(f).writeRequest(y),b.dump()}Cancel(E){const{writer:f}=this;return f.reset(),f.uint16(p.Cancel),f.uint32(E),f.dump()}Response(E,f,d,y){const{writer:b}=this;return b.reset(),b.uint16(p.Response),b.uint32(E),b.stringOfVarUInt32(f),this.responseHeadersSerializer.write(d),this.getProcessor(f).writeResponse(y),b.dump()}Error(E,f,d,y){const{writer:b}=this;return b.reset(),b.uint16(p.Error),b.uint32(E),b.stringOfVarUInt32(f),this.responseHeadersSerializer.write(d),b.stringOfVarUInt32((0,o.stringifyError)(y)),b.dump()}parse(E){const{reader:f}=this;f.reset(E),f.skip(1);const d=f.uint8(),y=f.uint32();switch(d){case m.Request:case m.Notification:{const b=f.stringOfVarUInt32(),A=this.requestHeadersSerializer.read(),S=this.getProcessor(b).readRequest();return{kind:d,requestId:y,method:b,headers:A,args:S}}case m.Error:{const b=f.stringOfVarUInt32(),A=this.responseHeadersSerializer.read(),S=(0,o.parseError)(f.stringOfVarUInt32());return{kind:m.Error,requestId:y,method:b,headers:A,error:S}}case m.Response:{const b=f.stringOfVarUInt32(),A=this.responseHeadersSerializer.read(),S=this.getProcessor(b).readResponse();return{kind:m.Response,requestId:y,method:b,headers:A,result:S}}case m.Cancel:return{kind:m.Cancel,requestId:y};default:throw new Error(`Unknown message type: ${d}`)}}}t.MessageIO=h;class u{Request(E,f,d,y){return{kind:m.Request,requestId:E,method:f,headers:d,args:y}}Notification(E,f,d,y){return{kind:m.Notification,requestId:E,method:f,headers:d,args:y}}Cancel(E){return{kind:m.Cancel,requestId:E}}Response(E,f,d,y){return{kind:m.Response,requestId:E,headers:d,method:f,result:y}}Error(E,f,d,y){return{kind:m.Error,requestId:E,method:f,headers:d,error:y}}parse(E){return E}}t.RawMessageIO=u},86058:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SumiConnectionMultiplexer=t.IRPCProtocol=t.ProxyIdentifier=void 0,t.createExtMessageIO=_;const n=e(89104),r=e(97349),o=e(76339);class l{constructor(p){this.serviceId=p,this.countId=++l.count}static for(p){return new l(p)}}t.ProxyIdentifier=l,l.count=0,t.IRPCProtocol=Symbol("IRPCProtocol");function _(m){const p=new o.MessageIO;return p.setAnySerializer(new o.AnyProtocolSerializer(p.writer,p.reader,n.ExtObjectTransfer)),m?.forEach((s,g)=>{p.loadProtocol(s,{nameConverter:a=>v.getRPCName(g.serviceId,a)})}),p}class v extends r.SumiConnection{static getRPCName(p,s){return`${p}${v.SEP}${s}`}static extractServiceAndMethod(p){const s=p.indexOf(v.SEP);return[p.substring(0,s),p.substring(s+v.SEP_LENGTH)]}static normalizeServiceId(p){return p.replace(/\//g,"_")}constructor(p,s={}){super(p,{...s,io:s.io||_()}),this.socket=p,this.options=s,this._locals=new Map,this._proxies=new Map,this.onRequestNotFound((g,a)=>this.invoke(g,a)),this.listen()}set(p,s){const g=v.normalizeServiceId(p.serviceId);return this._locals.set(g,s),s}get(p){return this._locals.get(v.normalizeServiceId(p.serviceId))}getProxy(p){const s=v.normalizeServiceId(p.serviceId);return this._proxies.has(s)||this._proxies.set(s,this._createProxy(s)),this._proxies.get(s)}_createProxy(p){const s={get:(g,a)=>{if(typeof a=="symbol")return null;if(!g[a])if(a.charCodeAt(0)===36){const h=v.getRPCName(p,a);g[a]=(...u)=>this.sendRequest(h,...u)}else a==="toJSON"&&(g[a]=()=>{throw new Error("Cannot serialize a rpc protocol proxy object")});return g[a]}};return new Proxy(Object.create(null),s)}async invoke(p,s){const[g,a]=v.extractServiceAndMethod(p),h=this._locals.get(g);if(!h)throw new Error("Unknown actor "+g);const u=await h[a];if(typeof u!="function")throw new Error("Unknown method "+a+" on actor "+g);return u.apply(h,s)}getSocket(){return this.socket}}t.SumiConnectionMultiplexer=v,v.SEP="/",v.SEP_LENGTH=v.SEP.length},15726:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RPCProtocol=t.MessageIO=t.ObjectTransfer=t.ProxyIdentifier=t.IRPCProtocol=t.RPCProtocolEnv=void 0,t.createExtHostContextProxyIdentifier=l,t.createMainContextProxyIdentifier=_;const n=e(43718),r=e(86058);Object.defineProperty(t,"IRPCProtocol",{enumerable:!0,get:function(){return r.IRPCProtocol}}),Object.defineProperty(t,"ProxyIdentifier",{enumerable:!0,get:function(){return r.ProxyIdentifier}});var o;(function(g){g[g.MAIN=0]="MAIN",g[g.EXT=1]="EXT"})(o||(t.RPCProtocolEnv=o={}));function l(g){return new r.ProxyIdentifier(g)}function _(g){return new r.ProxyIdentifier(g)}var v;(function(g){function a(u,c){if(c){if(c.$mid===1)return{$type:"VSCODE_URI",data:n.Uri.revive(c).toString()};if(c instanceof Uint8Array||c instanceof Uint32Array||c instanceof Uint16Array)return{$type:"Buffer",data:Array.from(c)};if(c instanceof ArrayBuffer)return{$type:"Buffer",data:Array.from(new Uint8Array(c))};if(c.type==="Buffer")return{$type:"Buffer",data:c.data}}return c}g.replacer=a;function h(u,c){if(c&&c.$type!==void 0&&c.data!==void 0){if(c.$type==="VSCODE_URI")return n.Uri.parse(c.data);if(c.$type==="Buffer")return Uint8Array.from(c.data)}return c}g.reviver=h})(v||(t.ObjectTransfer=v={}));class m{static cancel(a,h){return`{"type":4,"id":"${a}"}`}static serializeRequest(a,h,u,c){return c=c.map(E=>{if(E instanceof Error){const f=Array.prototype.slice.call(arguments);return f[0]=E.stack,f.join(`
|
|
31967
|
-
`)}return E}),`{"type": 1, "id": "${a}", "proxyId": "${h}", "method": "${u}", "args": ${JSON.stringify(c,v.replacer)}}`}static serializeReplyOK(a,h,u){if(typeof h>"u")return`{"type": 2, "id": "${a}"}`;try{return`{"type": 2, "id": "${a}", "res": ${JSON.stringify(h,v.replacer)}}`}catch{return u&&u.warn("res",h),`{"type": 2, "id": "${a}", "res": {}}`}}static serializeReplyError(a,h,u){try{return`{"type": 3, "id": "${a}", "res": ${JSON.stringify((0,n.transformErrorForSerialization)(h),v.replacer)}}`}catch{return u&&u.error("error",h),`{"type": 3, "id": "${a}", "res": {}}`}}}t.MessageIO=m;function p(){const g=new Error("Canceled");return g.name=g.message,g}class s{constructor(a,h){this._protocol=a,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=h||console,this.logger.error("You are using the deprecated class: 'RPCProtocol'. Please use the new one: 'SumiConnectionMultiplexer'"),this._protocol.onMessage(u=>this._receiveOneMessage(u))}set(a,h){return this._locals.set(a.serviceId,h),h}get(a){return this._locals.get(a.serviceId)}getProxy(a){return this._proxies.has(a.serviceId)||this._proxies.set(a.serviceId,this._createProxy(a.serviceId)),this._proxies.get(a.serviceId)}_createProxy(a){const h={get:(u,c)=>typeof c=="symbol"?null:(!u[c]&&c.charCodeAt(0)===36&&(u[c]=(...E)=>this._remoteCall(a,c,E)),u[c])};return new Proxy(Object.create(null),h)}_remoteCall(a,h,u){const c=u.length&&n.CancellationToken.isCancellationToken(u[u.length-1])?u.pop():void 0;if(c&&c.isCancellationRequested)return Promise.reject(p());const E=String(++this._lastMessageId),f=new n.Deferred;c&&(u.push("add.cancellation.token"),c.onCancellationRequested(()=>this._protocol.send(m.cancel(E)))),this._pendingRPCReplies.set(E,f);const d=m.serializeRequest(E,a,h,u);if(this._protocol.send(d),this._protocol.timeout&&this._protocol.timeout!==-1){const y=setTimeout(()=>{this._handleTimeout(E)},this._protocol.timeout);this._timeoutHandles.set(E,y)}return f.promise}_receiveOneMessage(a){const h=JSON.parse(a,v.reviver);switch(this._timeoutHandles.has(h.id)&&(typeof clearTimeout=="function"&&clearTimeout(this._timeoutHandles.get(h.id)),this._timeoutHandles.delete(h.id)),h.type){case 1:this._receiveRequest(h);break;case 2:this._receiveReply(h);break;case 4:this._receiveCancel(h);break;case 3:this._receiveError(h);break}}_receiveCancel(a){const h=this._cancellationTokenSources.get(a.id);h&&h.cancel()}_receiveError(a){const h=a.id;if(!this._pendingRPCReplies.has(h))return;const u=this._pendingRPCReplies.get(h);this._pendingRPCReplies.delete(h);let c;a.res&&(a.res.$isError?(c=new Error,c.name=a.res.name,c.message=a.res.message,c.stack=a.res.stack):c=a.res),u.reject(c)}_receiveRequest(a){const h=a.id,u=a.proxyId,c=a.method,E=a.args.map(y=>y===null?void 0:y);if(E.length&&E[E.length-1]==="add.cancellation.token"?E.pop():!1){const y=new n.CancellationTokenSource;this._cancellationTokenSources.set(h,y),E.push(y.token)}this._invokeHandler(u,c,E).then(y=>{this._protocol.send(m.serializeReplyOK(h,y)),this._cancellationTokenSources.delete(h)}).catch(y=>{this._protocol.send(m.serializeReplyError(h,y)),this._cancellationTokenSources.delete(h)})}_invokeHandler(a,h,u){try{return this._doInvokeHandler(a,h,u)}catch(c){return Promise.reject(c)}}async _doInvokeHandler(a,h,u){const c=this._locals.get(a);if(!c)throw new Error("Unknown actor "+a);const E=await c[h];if(typeof E!="function")throw new Error("Unknown method "+h+" on actor "+a);return E.apply(c,u)}_receiveReply(a){const h=a.id;if(!this._pendingRPCReplies.has(h))return;const u=this._pendingRPCReplies.get(h);this._pendingRPCReplies.delete(h),u.resolve(a.res)}_handleTimeout(a){if(!this._pendingRPCReplies.has(a)||!this._timeoutHandles.has(a))return;const h=this._pendingRPCReplies.get(a);this._pendingRPCReplies.delete(a),this._timeoutHandles.delete(a),h.reject(new Error("RPC Timeout: "+a))}}t.RPCProtocol=s},64592:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.furySerializer=t.CloseProtocol=t.BinaryProtocol=t.DataProtocol=t.ErrorProtocol=t.ServerReadyProtocol=t.OpenProtocol=t.PongProtocol=t.PingProtocol=void 0;const n=e(26387),r=e(94846);function o(){return{id:n.Type.string()}}t.PingProtocol=n.Type.object("ping",{...o()}),t.PongProtocol=n.Type.object("pong",{...o()}),t.OpenProtocol=n.Type.object("open",{...o(),clientId:n.Type.string(),path:n.Type.string(),traceId:n.Type.string()}),t.ServerReadyProtocol=n.Type.object("server-ready",{...o(),traceId:n.Type.string()}),t.ErrorProtocol=n.Type.object("error",{...o(),code:n.Type.uint16(),message:n.Type.string()}),t.DataProtocol=n.Type.object("data",{...o(),content:n.Type.string()}),t.BinaryProtocol=n.Type.object("binary",{...o(),binary:n.Type.binary()}),t.CloseProtocol=n.Type.object("close",{...o(),code:n.Type.uint32(),reason:n.Type.string()});const l=(0,r.oneOf)([t.PingProtocol,t.PongProtocol,t.OpenProtocol,t.ServerReadyProtocol,t.DataProtocol,t.BinaryProtocol,t.CloseProtocol,t.ErrorProtocol]);t.furySerializer=l},54558:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.wrapSerializer=void 0;const n=e(85608);n.__exportStar(e(64592),t),n.__exportStar(e(43620),t),n.__exportStar(e(41619),t);const r=(o,l)=>({onceClose(_){return o.onceClose(_)},onMessage(_){return o.onMessage(v=>{_(l.deserialize(v))})},send(_){o.send(l.serialize(_))}});t.wrapSerializer=r},43620:(x,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.rawSerializer=void 0,t.rawSerializer={serialize:e=>e,deserialize:e=>e}},41619:(x,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},76271:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RPCServiceChannelPath=t.BaseCommonChannelHandler=t.CommonChannelPathHandler=void 0,t.injectConnectionProviders=m;const n=e(39048),r=e(54558),o=e(47561);class l{constructor(){this.handlerMap=new Map,this.paramsKey=new Map}register(s,g){const a=s.indexOf("/:"),h=a>=0;let u=s;h&&(u=s.slice(0,a),this.paramsKey.set(u,s.slice(a+2))),this.handlerMap.has(u)||this.handlerMap.set(u,[]);const c=this.handlerMap.get(u),E=g.handler.bind(g),f=(d,y,b)=>{g.connection=d,E(d,y,b)};g.handler=f,c.push(g),this.handlerMap.set(u,c)}getParams(s,g){const a={};if(this.paramsKey.has(s)){const h=this.paramsKey.get(s);h&&(a[h]=g)}return a}removeHandler(s,g){const a=s.indexOf(":"),h=a>=0;let u=s;h&&(u=s.slice(0,a));const c=this.handlerMap.get(u)||[],E=c.indexOf(g);E!==-1&&c.splice(E,1),this.handlerMap.set(s,c)}get(s){return this.handlerMap.get(s)}disposeConnectionClientId(s,g){this.handlerMap.forEach(a=>{a.forEach(h=>{h.dispose(s,g)})})}openChannel(s,g,a){let h=this.get(s),u;if(!h){const c=s.indexOf("/");c>=0&&(h=this.get(s.slice(0,c)),u=this.getParams(s.slice(0,c),s.slice(c+1)))}if(h)for(let c=0,E=h.length;c<E;c++)h[c].handler(g,a,u)}getAll(){return Array.from(this.handlerMap.values())}}t.CommonChannelPathHandler=l;var _;(function(p){p[p.ConnectionClosed=1]="ConnectionClosed",p[p.NewChannelOpened=2]="NewChannelOpened"})(_||(_={}));class v{constructor(s,g,a=console,h={}){this.handlerId=s,this.commonChannelPathHandler=g,this.logger=a,this.channelMap=new Map,this.heartbeatTimer=null,this.serializer=r.furySerializer,h.serializer&&(this.serializer=h.serializer)}heartbeat(s){this.heartbeatTimer&&clearTimeout(this.heartbeatTimer),this.heartbeatTimer=setTimeout(()=>{this.doHeartbeat(s),this.heartbeat(s)},5e3)}receiveConnection(s){let g;this.heartbeat(s);const a=(0,r.wrapSerializer)(s,this.serializer);a.onMessage(h=>{try{switch(h.kind){case"open":{const{id:u,path:c,traceId:E}=h;g=h.clientId,this.logger.log(`open a new connection channel ${g} with path ${c}`);let f=this.channelMap.get(u);f&&(f.close(_.NewChannelOpened,"new channel opened for the same channel id"),f.dispose()),f=new o.WSServerChannel(a,{id:u,clientId:g,logger:this.logger}),this.channelMap.set(u,f),this.commonChannelPathHandler.openChannel(c,f,g),f.serverReady(E);break}default:{const{id:u}=h,c=this.channelMap.get(u);c?c.dispatch(h):(a.send({kind:"error",id:u,code:n.ErrorMessageCode.ChannelNotFound,message:`channel ${u} not found`}),this.logger.warn(`channel ${u} is not found`))}}}catch(u){this.logger.error("handle connection message error",u)}}),s.onceClose(()=>{this.logger.log(`connection ${g} is closed, dispose all channels`),this.commonChannelPathHandler.disposeConnectionClientId(s,g),Array.from(this.channelMap.values()).filter(h=>h.clientId===g).forEach(h=>{h.close(_.ConnectionClosed,"connection closed"),h.dispose(),this.channelMap.delete(h.id),this.logger.log(`Remove connection channel ${h.id}`)})})}dispose(){this.heartbeatTimer&&clearTimeout(this.heartbeatTimer)}}t.BaseCommonChannelHandler=v,t.RPCServiceChannelPath="RPCService";function m(p){const s=new l;p.addProviders({token:l,useValue:s})}},8140:(x,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ServiceType=void 0;var e;(function(n){n[n.Service=0]="Service",n[n.Stub=1]="Stub"})(e||(t.ServiceType=e={}))},47561:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WSServerChannel=t.WSChannel=void 0;const n=e(40396),r=e(43718),o=e(39048),l=e(97349);var _;(function(s){s[s.ReSend=0]="ReSend",s[s.Sended=1]="Sended",s[s.Success=2]="Success",s[s.Failed=3]="Failed"})(_||(_={}));class v{constructor(){this.map=new Map,this.deliveryTimeout=500,this.timerMap=new Map}setDeliveryTimeout(g){this.deliveryTimeout=g}set(g,a){this.map.set(g,a)}get(g){return this.map.get(g)}success(g){this.map.set(g,_.Success);const a=this.timerMap.get(g);a&&clearTimeout(a)}dispose(){this.timerMap.forEach(g=>{clearTimeout(g)})}stop(g){const a=this.timerMap.get(g);a&&clearTimeout(a)}send(g,a){this.set(g,_.Sended),this.guard(g,a)}guard(g,a){const h=this.timerMap.get(g);h&&clearTimeout(h);const u=setTimeout(()=>{this.set(g,_.ReSend),a.whenRetry()},this.deliveryTimeout);this.timerMap.set(g,u)}}class m{constructor(g,a){this.connection=g,this._disposables=new r.DisposableStore,this.emitter=this._disposables.add(new n.EventEmitter),this.onBinaryQueue=this._disposables.add(new r.EventQueue),this.sendQueue=[],this._isServerReady=!1,this.stateTracer=new v,this.LOG_TAG="[WSChannel]",this.logger=console;const{id:h,logger:u,ensureServerReady:c}=a;this.id=h,this.LOG_TAG=`[WSChannel id:${this.id}]`,u&&(this.logger=u),this._ensureServerReady=!!c,a.deliveryTimeout&&this.stateTracer.setDeliveryTimeout(a.deliveryTimeout),this._disposables.add(this.emitter.on("binary",E=>this.onBinaryQueue.push(E)))}inqueue(g){if(this._ensureServerReady&&!this._isServerReady){this.sendQueue||(this.sendQueue=[]),this.sendQueue.push(g);return}this.connection.send(g)}ensureMessageDeliveried(g,a=(0,r.randomString)(16)){const h=this.stateTracer.get(a);if(h&&h>=_.Sended){this.logger.error(`message already send already success or in progress, traceId: ${a}, state: ${h}`);return}g.traceId=a,this.connection.send(g),this.stateTracer.send(a,{whenRetry:()=>{if(this._isServerReady){this.stateTracer.stop(a);return}this.ensureMessageDeliveried(g,a)}})}onMessage(g){return this.emitter.on("message",g)}onBinary(g){return this.onBinaryQueue.on(g)}onOpen(g){return this.emitter.on("open",g)}onReopen(g){return this.emitter.on("reopen",g)}pause(){this._isServerReady=!1}onServerReady(g){if(this._isServerReady){g();return}return this.emitter.on("open",g)}resume(){if(this._isServerReady=!0,this.sendQueue){for(const g of this.sendQueue)this.connection.send(g);this.sendQueue=[]}}dispatch(g){switch(g.kind){case"server-ready":g.traceId&&this.stateTracer.success(g.traceId),this.resume(),this.emitter.emit("open",g.id);break;case"data":this.emitter.emit("message",g.content);break;case"binary":this.emitter.emit("binary",g.binary);break;case"error":switch(this.logger.error(this.LOG_TAG,`receive error: id: ${g.id}, code: ${g.code}, error: ${g.message}`),g.code){case o.ErrorMessageCode.ChannelNotFound:this.channelPath&&(this.pause(),this.open(this.channelPath,this.clientId));break}break}}open(g,a){this.channelPath=g,this.clientId=a,this.LOG_TAG=`[WSChannel id=${this.id} path=${g}]`;const h={kind:"open",id:this.id,path:g,clientId:a};this._ensureServerReady?this.ensureMessageDeliveried(h):this.connection.send(h)}send(g){this.inqueue({kind:"data",id:this.id,content:g})}sendBinary(g){this.inqueue({kind:"binary",id:this.id,binary:g})}onError(){}close(g,a){this.pause(),this.emitter.emit("close",g,a)}fireReopen(){this.emitter.emit("reopen")}onClose(g){return this.emitter.on("close",g)}onceClose(g){return this.emitter.once("close",g)}createConnection(){return{onceClose:g=>this.onceClose(g),onMessage:g=>this.onBinary(g),send:g=>{this.sendBinary(g)},dispose(){}}}createSumiConnection(g={}){return new l.SumiConnection(this.createConnection(),g)}dispose(){this.stateTracer.dispose(),this.sendQueue=[],this._disposables.dispose()}ping(){this.connection.send({kind:"ping",id:this.id})}}t.WSChannel=m;class p extends m{constructor(g,a){super(g,a),this.connection=g,this.messageQueue=[],this.clientId=a.clientId}serverReady(g){this.connection.send({kind:"server-ready",id:this.id,traceId:g})}dispatch(g){switch(g.kind){case"data":this.emitter.emit("message",g.content);break;case"binary":this.emitter.emit("binary",g.binary);break;case"ping":this.connection.send({kind:"pong",id:this.id});break}}}t.WSServerChannel=p},8919:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),e(85608).__exportStar(e(25285),t)},70650:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AINativeConfigService=void 0;const n=e(85608),r=e(76003),o=e(89195),l=e(1149),_=e(11050),v={supportsMarkers:!0,supportsChatAssistant:!0,supportsCodeAction:!0,supportsInlineChat:!0,supportsInlineCompletion:!0,supportsConflictResolve:!0,supportsRenameSuggestions:!0,supportsProblemFix:!0,supportsTerminalDetection:!0,supportsTerminalCommandSuggest:!0,supportsCustomLLMSettings:!0,supportsMCP:!0},m={};Object.keys(v).forEach(a=>{m[a]=!1});const p={inputWidth:320,inputKeybinding:"ctrlcmd+k",logo:o.AILogoAvatar},s={triggerKeybinding:"alt+\\"};let g=class{constructor(){this.aiModuleLoaded=!1,this.internalCapabilities=v,this.internalInlineChat=p,this.internalCodeEdits=s}get capabilities(){if(!this.aiModuleLoaded)return m;const{AINativeConfig:h}=this.appConfig;return h?.capabilities?{...this.internalCapabilities,...h.capabilities}:this.internalCapabilities}get inlineChat(){const{AINativeConfig:h}=this.appConfig;return h?.inlineChat?{...this.internalInlineChat,...h.inlineChat}:this.internalInlineChat}get codeEdits(){const{AINativeConfig:h}=this.appConfig;return h?.codeEdits?{...this.internalCodeEdits,...h.codeEdits}:this.internalCodeEdits}setAINativeModuleLoaded(h){this.aiModuleLoaded=h}};t.AINativeConfigService=g,n.__decorate([(0,r.Autowired)(_.AppConfig),n.__metadata("design:type",Object)],g.prototype,"appConfig",void 0),n.__decorate([(0,r.Autowired)(l.LayoutViewSizeConfig),n.__metadata("design:type",l.LayoutViewSizeConfig)],g.prototype,"layoutViewSize",void 0),t.AINativeConfigService=g=n.__decorate([(0,r.Injectable)()],g)},41480:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AIReporter=void 0;const n=e(85608),r=e(76003),o=e(43718),l=e(52664);let _=class{constructor(){this.reportInfoCache=new Map,this.reporterCancelHandler=new Map}getRelationId(){return(0,o.uuid)()}getCacheReportInfo(m){return this.reportInfoCache.get(m)}getCommonReportInfo(){return{}}start(m,p,s=60*1e3){const g=this.getRelationId();this.report(g,{...p,msgType:m,isStart:!0});const a=setTimeout(()=>{this.report(g,{...p,success:!1})},s);return this.reporterCancelHandler.set(g,a),g}end(m,p){const s=this.reporterCancelHandler.get(m);s&&clearTimeout(s),this.report(m,{success:!0,...p,isStart:!1})}send(m){this.reporter.point(l.AI_REPORTER_NAME,m.msgType,m)}record(m,p){p||(p=this.getRelationId());const s=this.reportInfoCache.get(p)||{},g={...this.getCommonReportInfo(),...s,...m,relationId:p};return this.reportInfoCache.set(p,g),g}report(m,p){const s=this.record(p,m);this.reporter.point(l.AI_REPORTER_NAME,p.msgType||s.msgType,s)}};t.AIReporter=_,n.__decorate([(0,r.Autowired)(o.IReporterService),n.__metadata("design:type",Object)],_.prototype,"reporter",void 0),t.AIReporter=_=n.__decorate([(0,r.Injectable)()],_)},57925:(x,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AI_CODE_EDITS_COMMANDS=t.AI_CODE_ACTION=t.AI_CHAT_VISIBLE=t.AI_INLINE_COMPLETION_REPORTER=t.AI_INLINE_DIFF_PARTIAL_EDIT=t.AI_INLINE_COMPLETION_VISIBLE=t.AI_INLINE_CHAT_INTERACTIVE_INPUT_CANCEL=t.AI_INLINE_CHAT_INTERACTIVE_INPUT_VISIBLE=t.AI_INLINE_CHAT_VISIBLE=void 0,t.AI_INLINE_CHAT_VISIBLE={id:"ai.inlineChat.visible"},t.AI_INLINE_CHAT_INTERACTIVE_INPUT_VISIBLE={id:"ai.inlineChat.interactiveInput.visible"},t.AI_INLINE_CHAT_INTERACTIVE_INPUT_CANCEL={id:"ai.inlineChat.interactiveInput.cancel"},t.AI_INLINE_COMPLETION_VISIBLE={id:"ai.inline.completion.visible"},t.AI_INLINE_DIFF_PARTIAL_EDIT={id:"ai.inline.diff.partial.edit"},t.AI_INLINE_COMPLETION_REPORTER={id:"ai.inline.completion.reporter"},t.AI_CHAT_VISIBLE={id:"ai.chat.visible"},t.AI_CODE_ACTION={id:"ai.code.action"};var e;(function(n){n.DISCARD={id:"ai.codeEdits.discard"},n.ACCEPT={id:"ai.codeEdits.accept"},n.TRIGGER={id:"ai.codeEdits.trigger"}})(e||(t.AI_CODE_EDITS_COMMANDS=e={}))},38070:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MergeConflictReportService=void 0;const n=e(85608),r=e(76003),o=e(43718),l=e(70650);let _=class extends o.Disposable{constructor(){super(...arguments),this.reportInfoMap=new Map,this.unique2RelationMap=new Map}record(m,p){if(!this.aiNativeConfigService.capabilities.supportsConflictResolve)return p;let s="";return this.unique2RelationMap.has(m)?(s=this.unique2RelationMap.get(m),this.aiReporter.record(p,s)):(s=this.aiReporter.record({...p,msgType:o.AIServiceType.MergeConflict,message:o.AIServiceType.MergeConflict,editorMode:p.editorMode||o.MergeConflictEditorMode.traditional}).relationId,this.unique2RelationMap.set(m,s)),{...p,relationId:s}}report(m,p){if(!this.aiNativeConfigService.capabilities.supportsConflictResolve)return;const s=this.record(m,p);this.aiReporter.end(s.relationId,s)}reportIncrementNum(m,p){if(!this.aiNativeConfigService.capabilities.supportsConflictResolve)return;const s=this.unique2RelationMap.get(m);if(!s)return;const g=this.aiReporter.getCacheReportInfo(s)[p]||0;this.report(m,{[p]:g+1})}dispose(){super.dispose(),this.reportInfoMap.clear()}};t.MergeConflictReportService=_,n.__decorate([(0,r.Autowired)(l.AINativeConfigService),n.__metadata("design:type",l.AINativeConfigService)],_.prototype,"aiNativeConfigService",void 0),n.__decorate([(0,r.Autowired)(o.IAIReporter),n.__metadata("design:type",Object)],_.prototype,"aiReporter",void 0),t.MergeConflictReportService=_=n.__decorate([(0,r.Injectable)()],_)},95040:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IAIInlineChatService=void 0,e(85608).__exportStar(e(70650),t),t.IAIInlineChatService=Symbol("IAIInlineChatService")},12956:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ClientAppStateService=t.ClientAppStateEvent=void 0;const n=e(85608),r=e(76003),o=e(43718);class l extends o.BasicEvent{}t.ClientAppStateEvent=l;let _=class{constructor(){this._state="init",this.deferred={}}get state(){return this._state}set state(m){m!==this._state&&(this._state=m,this.deferred[m]===void 0&&(this.deferred[m]=new o.Deferred),this.deferred[m].resolve(),this.eventBus.fire(new l(m)))}reachedState(m){return this.deferred[m]===void 0&&(this.deferred[m]=new o.Deferred),this.deferred[m].promise}reachedAnyState(...m){return Promise.race(m.map(p=>this.reachedState(p)))}};t.ClientAppStateService=_,n.__decorate([(0,r.Autowired)(o.IEventBus),n.__metadata("design:type",Object)],_.prototype,"eventBus",void 0),t.ClientAppStateService=_=n.__decorate([(0,r.Injectable)()],_)},59555:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ApplicationService=void 0;const n=e(85608),r=e(76003),o=e(59019),l=e(43718),_=e(11050),v=e(42101);let m=class{constructor(){this._initialized=new l.Deferred}async initializeData(){this._backendOS=await this.commonServer.getBackendOS(),this._initialized.resolve()}get frontendOS(){return l.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?v.electronEnv.currentWindowId:this.injector.get(o.WSChannelHandler).clientId}};t.ApplicationService=m,n.__decorate([(0,r.Autowired)(l.CommonServerPath),n.__metadata("design:type",Object)],m.prototype,"commonServer",void 0),n.__decorate([(0,r.Autowired)(_.AppConfig),n.__metadata("design:type",Object)],m.prototype,"appConfig",void 0),n.__decorate([(0,r.Autowired)(r.INJECTOR_TOKEN),n.__metadata("design:type",r.Injector)],m.prototype,"injector",void 0),t.ApplicationService=m=n.__decorate([(0,r.Injectable)()],m)},16884:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=e(85608);n.__exportStar(e(12956),t),n.__exportStar(e(59555),t)},22914:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BaseConnectionHelper=void 0;const n=e(85608),r=e(76003),o=e(18740),l=e(43718),_=e(32796),v=e(38578),m=(0,l.getDebugLogger)();let p=class{async createRPCServiceChannel(g){var a;const h=this.createConnection(),u=(a=this.appConfig.clientId)!==null&&a!==void 0?a:this.getDefaultClientId(),c=new o.WSChannelHandler(h,u,{logger:m});return(0,_.createConnectionService)(this.injector,g,c)}};t.BaseConnectionHelper=p,n.__decorate([(0,r.Autowired)(r.INJECTOR_TOKEN),n.__metadata("design:type",r.Injector)],p.prototype,"injector",void 0),n.__decorate([(0,r.Autowired)(v.AppConfig),n.__metadata("design:type",Object)],p.prototype,"appConfig",void 0),n.__decorate([(0,r.Autowired)(l.IReporterService),n.__metadata("design:type",Object)],p.prototype,"reporterService",void 0),t.BaseConnectionHelper=p=n.__decorate([(0,r.Injectable)({multiple:!0})],p)},41320:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BrowserRuntime=void 0;const n=e(85608),r=e(76003),o=e(44142),l=e(6858),_=e(53206);let v=class extends l.RendererRuntime{constructor(){super(...arguments),this.runtimeName=o.ESupportRuntime.Web}registerRuntimeModuleProviders(p,s){s.webProviders&&p.addProviders(...s.webProviders)}registerRuntimeInnerProviders(p){(0,_.injectBrowserInnerProviders)(p)}};t.BrowserRuntime=v,t.BrowserRuntime=v=n.__decorate([(0,r.Injectable)()],v)},53206:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.injectBrowserInnerProviders=o;const n=e(93899),r=e(97222);function o(l){l.addProviders({token:n.ICtxMenuRenderer,useClass:r.BrowserCtxMenuRenderer})}},55267:(x,t,e)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.WebConnectionHelper=void 0;const r=e(85608),o=e(76003),l=e(91493),_=e(43718),v=e(22914);let m=n=class extends v.BaseConnectionHelper{constructor(s){super(),this.options=s,this.clientId=n.clientIdFactory()}getDefaultClientId(){return this.clientId}createConnection(){return l.ReconnectingWebSocketConnection.forURL(this.options.connectionPath,this.options.connectionProtocols)}static clientIdFactory(){return`CLIENT_ID_${(0,_.uuid)()}`}};t.WebConnectionHelper=m,t.WebConnectionHelper=m=n=r.__decorate([(0,o.Injectable)({multiple:!0}),r.__metadata("design:paramtypes",[Object])],m)},44142:(x,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.onigWasmCDNUri=t.ESupportRuntime=void 0;var e;(function(n){n.Electron="electron",n.Web="web"})(e||(t.ESupportRuntime=e={})),t.onigWasmCDNUri="https://g.alicdn.com/kaitian/vscode-oniguruma-wasm/1.5.1/onig.wasm"},59574:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ElectronRendererRuntime=void 0;const n=e(85608),r=e(76003),o=e(38578),l=e(42101),_=e(44142),v=e(6858),m=e(38892);let p=class extends v.RendererRuntime{constructor(){super(...arguments),this.runtimeName=_.ESupportRuntime.Electron}registerRuntimeModuleProviders(a,h){h.electronProviders&&a.addProviders(...h.electronProviders)}registerRuntimeInnerProviders(a){(0,m.injectElectronInnerProviders)(a)}mergeAppConfig(a){return s(a)}async provideResourceUri(a){switch(a){case v.EKnownResources.OnigWasm:return l.electronEnv.onigWasmUri||this.appConfig.onigWasmUri||_.onigWasmCDNUri;case v.EKnownResources.TreeSitterWasmDirectory:return l.electronEnv.treeSitterWasmDirectoryUri||this.appConfig.treeSitterWasmDirectoryUri||(0,o.getTreeSitterWasmCDNUri)(this.appConfig.componentCDNType);default:throw new Error(`Unknown resource: ${a}`)}}};t.ElectronRendererRuntime=p,t.ElectronRendererRuntime=p=n.__decorate([(0,r.Injectable)()],p);function s(g){var a;const h=(a=l.electronEnv.metadata)!==null&&a!==void 0?a:{},u={...g,appRoot:g.appRoot||l.electronEnv.appPath,extensionDir:g.extensionDir||h.extensionDir};return h.extensionDevelopmentHost&&(g.extensionDevelopmentHost=h.extensionDevelopmentHost),h.extensionCandidate&&(g.extensionCandidate=(g.extensionCandidate||[]).concat(l.electronEnv.metadata.extensionCandidate||[])),u}},38892:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.injectElectronInnerProviders=m;const n=e(43718),r=e(37406),o=e(93899),l=e(27790),_=e(11050),v=e(42101);function m(p){const s=p.get(_.AppConfig);p.addProviders({token:n.IElectronMainMenuService,useValue:(0,v.createElectronMainApi)(n.IElectronMainMenuService,s.devtools)},{token:r.IElectronMainUIService,useValue:(0,v.createElectronMainApi)(r.IElectronMainUIService,s.devtools)},{token:r.IElectronMainLifeCycleService,useValue:(0,v.createElectronMainApi)(r.IElectronMainLifeCycleService,s.devtools)},{token:r.IElectronURLService,useValue:(0,v.createElectronMainApi)(r.IElectronURLService,s.devtools)},{token:l.IElectronMenuFactory,useClass:l.ElectronMenuFactory},{token:l.IElectronMenuBarService,useClass:l.ElectronMenuBarService},{token:o.ICtxMenuRenderer,useClass:l.ElectronCtxMenuRenderer})}},63977:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ElectronConnectionHelper=void 0;const n=e(85608),r=e(76003),o=e(42101),l=e(22914);let _=class extends l.BaseConnectionHelper{getDefaultClientId(){return o.electronEnv.metadata.windowClientId}createConnection(){return(0,o.createNetSocketConnection)()}};t.ElectronConnectionHelper=_,t.ElectronConnectionHelper=_=n.__decorate([(0,r.Injectable)({multiple:!0})],_)},18379:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ConnectionHelperFactory=v;const n=e(85608),r=e(38578),o=e(55267),l=e(44142),_=e(63977);n.__exportStar(e(55267),t),n.__exportStar(e(63977),t),n.__exportStar(e(22914),t),n.__exportStar(e(44142),t);function v(m){return p=>{const s=m.get(r.AppConfig);let g;switch(p){case l.ESupportRuntime.Electron:g=m.get(_.ElectronConnectionHelper);break;case l.ESupportRuntime.Web:g=m.get(o.WebConnectionHelper,[{connectionPath:s.connectionPath,connectionProtocols:s.connectionProtocols}]);break;default:throw new Error(`Unknown backend type: ${p}`)}return g}}},6858:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RendererRuntime=t.EKnownResources=void 0;const n=e(85608),r=e(76003),o=e(11050),l=e(44142);var _;(function(m){m.OnigWasm="wasm:onig",m.TreeSitterWasmDirectory="wasm:tree-sitter"})(_||(t.EKnownResources=_={}));let v=class{mergeAppConfig(p){return p}async provideResourceUri(p){switch(p){case _.OnigWasm:return this.appConfig.onigWasmUri||l.onigWasmCDNUri;case _.TreeSitterWasmDirectory:return this.appConfig.treeSitterWasmDirectoryUri||(0,o.getTreeSitterWasmCDNUri)(this.appConfig.componentCDNType);default:throw new Error(`Unknown resource: ${p}`)}}};t.RendererRuntime=v,n.__decorate([(0,r.Autowired)(o.AppConfig),n.__metadata("design:type",Object)],v.prototype,"appConfig",void 0),t.RendererRuntime=v=n.__decorate([(0,r.Injectable)()],v)},37638:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AuthenticationContribution=void 0;const n=e(85608),r=e(76003),o=e(43718),l=e(66549);let _=class{onStart(){this.authenticationService.initialize()}registerCommands(m){m.registerCommand({id:o.noAccountsId,label:"%authentication.noAccounts%"},{execute:()=>{}})}};t.AuthenticationContribution=_,n.__decorate([(0,r.Autowired)(o.IAuthenticationService),n.__metadata("design:type",Object)],_.prototype,"authenticationService",void 0),t.AuthenticationContribution=_=n.__decorate([(0,o.Domain)(l.ClientAppContribution,o.CommandContribution)],_)},10605:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AuthenticationService=void 0;const n=e(85608),r=e(76003),o=e(43718),l=e(93899);let _=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 m=new Map;this.onDidChangeSessions(async p=>{if(p.event.added.length>0){const s=await this.getSessions(p.providerId);s.forEach(g=>{if(s.find(b=>m.get(b.id)))return;const a=new o.DisposableCollection,h=`account-sign-out-${p.providerId}-${g.id}`,u=this.commands.registerCommand({id:h,label:(0,o.formatLocalize)("authentication.signOut",p.label)},{execute:async()=>{await this.signOutOfAccount(p.providerId,g.account.label)}}),c=`manage-trusted-${p.providerId}-${g.id}`,E=this.commands.registerCommand({id:c,label:"%authentication.manageTrustedExtensions%"},{execute:async()=>{await this.manageTrustedExtensionsForAccount(p.providerId,g.account.label)}}),f=`${p.providerId}${g.account.label}`,d=this.menus.registerMenuItem(l.MenuId.AccountsContext,{submenu:f,label:`${g.account.label} (${p.label})`}),y=this.menus.registerMenuItems(f,[{command:c},{command:h}]);a.push(d),a.push(y),a.push(u),a.push(E),m.set(g.id,a)})}p.event.removed.length>0&&p.event.removed.forEach(s=>{const g=m.get(s.id);g&&(g.dispose(),m.delete(s.id))})})}get storage(){return this._storage}registerAuthenticationProvider(m,p){this._authenticationProviders.set(m,p),this._onDidRegisterAuthenticationProvider.fire({id:m,label:p.label}),this.updateAccountsMenuItem()}async sessionsUpdate(m,p){const s=this._authenticationProviders.get(m);s&&(this._onDidChangeSessions.fire({providerId:m,label:s.label,event:p}),await s.updateSessionItems(p),this.updateAccountsMenuItem(),p.added&&await this.updateNewSessionRequests(s))}async updateNewSessionRequests(m){const p=this._signInRequestItems.get(m.id);if(!p)return;const s=await m.getSessions();Object.keys(p).forEach(g=>{if(s.some(a=>a.scopes.slice().sort().join("")===g)){const a=p[g];a&&a.disposables.forEach(h=>h.dispose()),delete p[g],Object.keys(p).length===0?this._signInRequestItems.delete(m.id):this._signInRequestItems.set(m.id,p)}})}getTrustedKey(m,p){return`trusted-${m}-${p}`}async getAllowedExtensions(m,p){const s=this.getTrustedKey(m,p);let g=[];try{const a=await this.storage.get(s);a&&(g=JSON.parse(a))}catch(a){this.logger.warn("read allow extensions error: "+a)}return g}async setAllowedExtensions(m,p,s){const g=this.getTrustedKey(m,p);await this.storage.set(g,JSON.stringify(s))}async removeAllowedExtensions(m,p){const s=this.getTrustedKey(m,p);await this.storage.delete(s)}async updatedAllowedExtension(m,p,s,g,a){const h=await this.getAllowedExtensions(m,p),u=h.findIndex(c=>c.id===s);u===-1?h.push({id:s,name:g,allowed:a}):h[u].allowed=a,await this.setAllowedExtensions(m,p,h)}async isAccessAllowed(m,p,s){const a=(await this.getAllowedExtensions(m,p)).find(h=>h.id===s);return a?a.allowed!==void 0?a.allowed:!0:!1}async tryActivateProvider(m){await this.eventBus.fireAndAwait(new o.ExtensionActivateEvent({topic:"onView",data:m}));let p=this._authenticationProviders.get(m);if(p)return p;const s=new Promise((a,h)=>{this.onDidRegisterAuthenticationProvider(u=>{if(u.id===m)if(p=this._authenticationProviders.get(m),p)a(p);else throw new Error(`No authentication provider '${m}' is currently registered.`)})}),g=new Promise((a,h)=>{setTimeout(()=>{h(new Error(`didRegister ${m} timeout`))},5e3)});return Promise.race([s,g])}async getSessions(m,p,s,g){try{return await(this._authenticationProviders.get(m)||await this.tryActivateProvider(m)).getSessions(p,g)}catch{throw new Error(`No authentication provider '${m}' is currently registered.`)}}isAuthenticationProviderRegistered(m){return this._authenticationProviders.has(m)}getProviderIds(){const m=[];return this._authenticationProviders.forEach(p=>{m.push(p.id)}),m}unregisterAuthenticationProvider(m){const p=this._authenticationProviders.get(m);p&&(p.dispose(),this._authenticationProviders.delete(m),this._onDidUnregisterAuthenticationProvider.fire({id:m,label:p.label}),this.updateAccountsMenuItem())}updateAccountsMenuItem(){let m=!1;this._authenticationProviders.forEach(p=>{m=m||p.hasSessions()}),m&&this._noAccountsMenuItem&&(this._noAccountsMenuItem.dispose(),this._noAccountsMenuItem=void 0),!m&&!this._noAccountsMenuItem&&(this._noAccountsMenuItem=this.menus.registerMenuItem(l.MenuId.AccountsContext,{group:"0_accounts",command:o.noAccountsId}))}async requestNewSession(m,p,s,g,a){let h=this._authenticationProviders.get(m);if(h||await new Promise((u,c)=>{this.onDidRegisterAuthenticationProvider(E=>{E.id===m&&(h=this._authenticationProviders.get(m),u())})}),h){const u=this._signInRequestItems.get(m),c=p.sort().join("");if(u&&u[c]&&u[c].requestingExtensionIds.includes(g))return;const f=this.commands.registerCommand({id:`${g}signIn`,label:(0,o.formatLocalize)("authentication.signInRequests",a)},{execute:async()=>{const y=await this.login(m,p,s),b=y.account.label,A=await this.getAllowedExtensions(m,b);A.find(S=>S.id===g)||(A.push({id:g,name:a}),await this.setAllowedExtensions(m,b,A)),await this.setExtensionSessionId(a,m,y.id)}}),d=this.menus.registerMenuItem(l.MenuId.AccountsContext,{group:"2_signInRequests",command:`${g}signIn`});if(u){const y=u[c]||{disposables:[],requestingExtensionIds:[]};u[c]={disposables:[...y.disposables,d,f],requestingExtensionIds:[...y.requestingExtensionIds,g]},this._signInRequestItems.set(m,u)}else this._signInRequestItems.set(m,{[c]:{disposables:[d,f],requestingExtensionIds:[g]}})}}getLabel(m){const p=this._authenticationProviders.get(m);if(p)return p.label;throw new Error(`No authentication provider '${m}' has been declared.`)}supportsMultipleAccounts(m){const p=this._authenticationProviders.get(m);if(p)return p.supportsMultipleAccounts;throw new Error(`No authentication provider '${m}' is currently registered.`)}async login(m,p,s){try{return await(this._authenticationProviders.get(m)||await this.tryActivateProvider(m)).login(p,s)}catch(g){throw new Error(`No authentication provider '${m}' is currently registered, error messge: ${g.message}`)}}logout(m,p){const s=this._authenticationProviders.get(m);if(s)return s.logout(p);throw new Error(`No authentication provider '${m}' is currently registered.`)}manageTrustedExtensionsForAccount(m,p){const s=this._authenticationProviders.get(m);if(s)return s.manageTrustedExtensions(p);throw new Error(`No authentication provider '${m}' is currently registered.`)}signOutOfAccount(m,p){const s=this._authenticationProviders.get(m);if(s)return s.signOut(p);throw new Error(`No authentication provider '${m}' is currently registered.`)}getUsagesKey(m,p){return`usages-${m}-${p}`}async getAccountUsages(m,p){const s=this.getUsagesKey(m,p),g=await this.storage.get(s);let a=[];if(g)try{a=JSON.parse(g)}catch(h){this.logger.warn("parse account usages error: "+h)}return a}async addAccountUsage(m,p,s,g){const a=this.getUsagesKey(m,p),h=await this.getAccountUsages(m,p),u=h.findIndex(c=>c.extensionId===s);u>-1?h.splice(u,1,{extensionId:s,extensionName:g,lastUsed:Date.now()}):h.push({extensionId:s,extensionName:g,lastUsed:Date.now()}),await this.storage.set(a,JSON.stringify(h))}async removeAccountUsage(m,p){const s=this.getUsagesKey(m,p);await this.storage.delete(s)}getExtensionSessionIdKey(m,p){return`session-${m}-${p}`}async getExtensionSessionId(m,p){const s=this.getExtensionSessionIdKey(m,p);return await this.storage.get(s)}async setExtensionSessionId(m,p,s){const g=this.getExtensionSessionIdKey(m,p);await this.storage.set(g,s)}async removeExtensionSessionId(m,p){const s=this.getExtensionSessionIdKey(m,p);await this.storage.delete(s)}};t.AuthenticationService=_,n.__decorate([(0,r.Autowired)(o.ILogger),n.__metadata("design:type",Object)],_.prototype,"logger",void 0),n.__decorate([(0,r.Autowired)(o.StorageProvider),n.__metadata("design:type",Function)],_.prototype,"getStorage",void 0),n.__decorate([(0,r.Autowired)(o.IEventBus),n.__metadata("design:type",Object)],_.prototype,"eventBus",void 0),n.__decorate([(0,r.Autowired)(l.IMenuRegistry),n.__metadata("design:type",l.IMenuRegistry)],_.prototype,"menus",void 0),n.__decorate([(0,r.Autowired)(o.CommandRegistry),n.__metadata("design:type",Object)],_.prototype,"commands",void 0),t.AuthenticationService=_=n.__decorate([(0,r.Injectable)()],_)},72746:(x,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},33916:(x,t,e)=>{"use strict";var n;n={value:!0},t.j=void 0,e(37533);const r=e(76003),o=e(43718),l=e(4588),_=e(37406),v=e(16884),m=e(18379),p=e(41320),s=e(59574),g=e(6858),a=e(36206),h=e(66963),u=e(18193),c=e(41118),E=e(1149),f=e(11949),d=e(64102),y=e(78132),b=e(11050),A=e(67304),S=e(79951),D=e(79248),I=e(96302),w=e(71843);e(99696);class T{constructor(P){var O,M,k;this.opts=P,this.appInitialized=new o.Deferred,this.browserModules=[],this._disposables=new o.DisposableCollection,this._inComposition=!1,this._handleBeforeUpload=K=>{if(this.config.isElectronRenderer){if(this.stateService.state==="electron_confirmed_close")return;K.returnValue="",K.preventDefault(),this.stateService.state!=="electron_asking_close"&&(this.stateService.state="electron_asking_close",this.preventStopElectron().then(Y=>{if(Y)this.stateService.state="ready";else return this.stopContributionsElectron().then(()=>{this.stateService.state="electron_confirmed_close";const X=this.injector.get(_.IElectronMainLifeCycleService);setTimeout(()=>{X.closeWindow(S.electronEnv.currentWindowId)},0)})}))}else if(this.preventStop())return(K||window.event).returnValue=!0,!0},this._handleUnload=()=>{this.stateService.state="closing_window",this.config.isElectronRenderer||(this.disposeSideEffect(),this.stopContributions())},this._handleResize=()=>{},this._handleKeydown=K=>{K&&K.target.name!==c.NO_KEYBINDING_NAME&&this.keybindingService.run(K)},this._handleKeyup=K=>{this.keybindingService.resolveModifierKey(K)},this._handleWheel=()=>{};const{modules:F,contributions:L,iconStyleSheets:B,useCdnIcon:U,editorBackgroundImage:W,defaultPreferences:j,allowSetDocumentTitleFollowWorkspaceDir:Q=!0,...G}=P;this.initEarlyPreference(P.workspaceDir||"");const Z=(0,y.getPreferenceLanguageId)(j);(0,o.setLanguageId)(Z),this.injector=P.injector||new r.Injector,this.modules=F,this.modules.forEach(K=>this.resolveModuleDeps(K)),this.browserModules=P.modulesInstances||[];const $=(O=P.isElectronRenderer)!==null&&O!==void 0?O:this.detectRuntime()===m.ESupportRuntime.Electron;this.config={appName:l.DEFAULT_APPLICATION_NAME,appHost:$?l.DEFAULT_APPLICATION_DESKTOP_HOST:l.DEFAULT_APPLICATION_WEB_HOST,appRoot:P.appRoot||"",uriScheme:l.DEFAULT_URI_SCHEME,...G,isElectronRenderer:$,workspaceDir:P.workspaceDir||"",extensionDir:P.extensionDir||"",injector:this.injector,wsPath:P.wsPath||`ws://${window.location.hostname}:8000`,layoutConfig:P.layoutConfig,editorBackgroundImage:P.editorBackgroundImage||W,allowSetDocumentTitleFollowWorkspaceDir:Q,devtools:(M=P.devtools)!==null&&M!==void 0?M:!1,rpcMessageTimeout:P.rpcMessageTimeout||-1},this.config.connectionPath=P.connectionPath||`${this.config.wsPath}/service`;const V=this.injector.get(E.LayoutViewSizeConfig);V.init(P.layoutViewSize),this.config.layoutViewSize=V,this.injector.get(E.DesignLayoutConfig).setLayout(P.designLayout,(k=P.AINativeConfig)===null||k===void 0?void 0:k.layout),this.injector.addProviders({token:a.IClientApp,useValue:this}),this.injector.addProviders({token:b.AppConfig,useValue:this.config}),this.runtime=$?this.injector.get(s.ElectronRendererRuntime):this.injector.get(p.BrowserRuntime),this.injector.addProviders({token:g.RendererRuntime,useValue:this.runtime}),this.config.devtools&&(window.__OPENSUMI_DEVTOOLS_GLOBAL_HOOK__={}),P.extensionDevelopmentPath&&(this.config.extensionCandidate=(this.config.extensionCandidate||[]).concat(Array.isArray(P.extensionDevelopmentPath)?P.extensionDevelopmentPath.map(K=>(0,o.asExtensionCandidate)(K,!0)):[(0,o.asExtensionCandidate)(P.extensionDevelopmentPath,!0)]),this.config.extensionDevelopmentHost=!0),this.config=this.runtime.mergeAppConfig(this.config),L&&this.injector.addProviders(...L),this.initBaseProvider(),this.initFields(),this.appendIconStyleSheets(B,U),this.createBrowserModules(j)}resolveModuleDeps(P){const O=Reflect.getMetadata("dependencies",P);O&&O.forEach(M=>{this.modules.indexOf(M)===-1&&this.modules.push(M)})}get lifeCycleService(){return this.injector.get(o.AppLifeCycleServiceToken)}async start(P,O,M){const F=this.injector.get(o.IReporterService).time(o.REPORT_NAME.MEASURE);this.lifeCycleService.phase=1,M?(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,I.bindConnectionServiceDeprecated)(this.injector,this.modules,M)):O&&await this.createConnection(O),F.timeEnd("ClientApp.createConnection"),this.logger=this.injector.get(o.ILogger),this.stateService.state="client_connected",this.registerEventListeners(),await this.injector.get(o.IApplicationService).initializeData(),await this.measure("Contributions.start",()=>this.startContributions(P)),this.stateService.state="started_contributions",this.stateService.state="ready",this.lifeCycleService.phase=4,F.timeEnd("Framework.ready")}async createConnection(P){(await this.injector.get(m.ConnectionHelperFactory)(P).createRPCServiceChannel(this.modules)).onReopen(()=>{this.onReconnectContributions()})}onReconnectContributions(){const P=this.contributions;for(const O of P)O.onReconnect&&O.onReconnect(this)}initBaseProvider(){(0,w.injectInnerProviders)(this.injector),this.runtime.registerRuntimeInnerProviders(this.injector)}initFields(){this.contributionsProvider=this.injector.get(h.ClientAppContribution),this.commandRegistry=this.injector.get(o.CommandRegistry),this.keybindingRegistry=this.injector.get(c.KeybindingRegistry),this.keybindingService=this.injector.get(c.KeybindingService),this.stateService=this.injector.get(v.ClientAppStateService),this.nextMenuRegistry=this.injector.get(d.IMenuRegistry)}createBrowserModules(P){const O=this.injector;for(const M of this.modules){const k=O.get(M);this.browserModules.push(k),k.providers&&this.injector.addProviders(...k.providers),this.runtime.registerRuntimeModuleProviders(this.injector,k),k.preferences&&k.preferences(this.injector)}(0,u.injectCorePreferences)(this.injector),this.injectPreferenceService(this.injector,P),this.injectStorageProvider(this.injector);for(const M of this.browserModules)if(M.contributionProvider)if(Array.isArray(M.contributionProvider))for(const k of M.contributionProvider)(0,o.createContributionProvider)(this.injector,k);else(0,o.createContributionProvider)(this.injector,M.contributionProvider)}get contributions(){return this.contributionsProvider.getContributions()}async startContributions(P){await this.measure("RenderApp.render",()=>this.renderApp(P)),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(P,O){return await Promise.all(P.map(M=>this.contributionPhaseRunner(M,O)))}async contributionPhaseRunner(P,O){const M=P[O];if(typeof M=="function")try{const k=P.constructor.name+"."+O;return await this.measure(k,()=>M.call(P,this))}catch(k){this.logger.error(`Could not run contribution#${O}`,k)}}async renderApp(P){await(0,D.renderClientApp)(this,P),this.injector.get(o.IEventBus).fire(new f.RenderedEvent)}async measure(P,O){const k=this.injector.get(o.IReporterService).time(o.REPORT_NAME.MEASURE),F=await O();return k.timeEnd(P),F}preventStop(){const O=this.injector.get(u.CorePreferences)["application.confirmExit"];if(O==="never")return!1;for(const M of this.contributions)if(M.onWillStop)try{if(M.onWillStop(this))return!0}catch(k){(0,o.getDebugLogger)().error(k)}return O==="always"}async preventStopElectron(){if(this.injector.get(u.CorePreferences)["application.confirmExit"]==="never")return!1;for(const M of this.contributions)if(M.onWillStop)try{if(await M.onWillStop(this))return!0}catch(k){(0,o.getDebugLogger)().error(k)}return!1}stopContributions(){for(const P of this.contributions)if(P.onStop)try{P.onStop(this)}catch(O){this.logger.error("Could not stop contribution",O)}}async stopContributionsElectron(){const P=[];for(const O of this.contributions)O.onStop&&P.push((async()=>{try{await O.onStop(this)}catch(M){this.logger.error("Could not stop contribution",M)}})());await Promise.all(P)}registerEventListeners(){var P,O;window.addEventListener("beforeunload",this._handleBeforeUpload),window.addEventListener("unload",this._handleUnload),window.addEventListener("resize",this._handleResize),window.addEventListener("compositionstart",(P=this.keybindingService)===null||P===void 0?void 0:P.handleCompositionStart),window.addEventListener("compositionend",(O=this.keybindingService)===null||O===void 0?void 0:O.handleCompositionEnd),window.addEventListener("keydown",this._handleKeydown,!0),window.addEventListener("keyup",this._handleKeyup,!0),o.isOSX&&document.body.addEventListener("wheel",this._handleWheel,{passive:!1})}injectPreferenceService(P,O){const M=()=>k=>{const F=P.get(y.PreferenceProvider,{tag:k});return F.asScope(k),F};if((0,y.injectPreferenceConfigurations)(P),(0,y.injectPreferenceSchemaProvider)(P),P.addProviders({token:y.PreferenceProviderProvider,useFactory:M},{token:y.PreferenceService,useClass:y.PreferenceServiceImpl}),O){const F=P.get(y.PreferenceProviderProvider)(y.PreferenceScope.Default);for(const L of Object.keys(O))F.setPreference(L,O[L])}}injectStorageProvider(P){P.addProviders({token:o.DefaultStorageProvider,useClass:o.DefaultStorageProvider}),P.addProviders({token:o.StorageProvider,useFactory:O=>M=>O.get(o.DefaultStorageProvider).get(M)}),(0,o.createContributionProvider)(P,o.StorageResolverContribution)}fireOnReload(P=!1){window.location.reload(P)}appendIconStyleSheets(P,O){const M=O?[A.DEFAULT_CDN_ICON,A.IDE_OCTICONS_CN_CSS,A.IDE_CODICONS_CN_CSS]:[];P&&P.length&&P.forEach(k=>{this.updateIconMap(k.prefix,k.iconMap),M.push(k.cssPath)});for(const k of M){const F=document.createElement("link");F.setAttribute("rel","stylesheet"),F.setAttribute("href",k),document.getElementsByTagName("head")[0].appendChild(F)}}updateIconMap(P,O){P==="kaitian-icon kticon-"&&this.logger.error(`The icon prefix '${P}' conflicts with the built-in icon, please check the icon configuration.`),(0,A.updateIconMap)(P,O)}initEarlyPreference(P){this._disposables.push((0,y.registerLocalStorageProvider)(o.GeneralSettingsId.Theme,P)),this._disposables.push((0,y.registerLocalStorageProvider)(o.GeneralSettingsId.Icon,P)),this._disposables.push((0,y.registerLocalStorageProvider)(o.GeneralSettingsId.Language,P))}async dispose(){var P,O;window.removeEventListener("beforeunload",this._handleBeforeUpload),window.removeEventListener("unload",this._handleUnload),window.removeEventListener("resize",this._handleResize),window.removeEventListener("compositionstart",(P=this.keybindingService)===null||P===void 0?void 0:P.handleCompositionStart),window.removeEventListener("compositionend",(O=this.keybindingService)===null||O===void 0?void 0:O.handleCompositionEnd),window.removeEventListener("keydown",this._handleKeydown,!0),o.isOSX&&document.body.removeEventListener("wheel",this._handleWheel),this._disposables.dispose(),this.disposeSideEffect()}disposeSideEffect(){for(const P of this.contributions)if(P.onDisposeSideEffects)try{P.onDisposeSideEffects(this)}catch(O){this.logger.error("Could not dispose contribution",O)}}detectRuntime(){return window.isElectronRenderer||typeof navigator=="object"&&typeof navigator.userAgent=="string"&&navigator.userAgent.indexOf("Electron")>=0?m.ESupportRuntime.Electron:m.ESupportRuntime.Web}}t.j=T},79248:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.App=u,t.renderClientApp=f;const n=e(85608),r=n.__importDefault(e(14041)),o=n.__importDefault(e(25873)),l=e(97267),_=e(43718),v=e(28003),m=e(68456),p=e(11050),s=e(52564),g=e(26542),a=e(67304),h=e(75206);function u(d){const y=d.app.injector,b=y.get(_.IEventBus),A=y.get(g.LabelService),S=r.default.useCallback((D,I)=>A.getIcon(_.URI.parse(D),I),[]);return r.default.useEffect(()=>{let D;const I=()=>{D&&window.cancelAnimationFrame(D),D=window.requestAnimationFrame(()=>{D=null,s.allSlot.forEach(w=>{b.fire(new m.ResizeEvent({slotLocation:w.slot})),b.fireDirective(m.ResizeEvent.createDirective(w.slot))})})};return window.addEventListener("resize",I),()=>{window.removeEventListener("resize",I)}},[]),r.default.createElement(l.ComponentContextProvider,{value:{getIcon:a.getIcon,localize:_.localize,getResourceIcon:S}},r.default.createElement(p.ConfigProvider,{value:d.app.config},r.default.createElement(d.main,{callback:d.callback}),d.overlays&&d.overlays.map((D,I)=>r.default.createElement(D,{key:I}))))}const c=d=>y=>{o.default.createRoot(d).render(r.default.createElement(y,null))},E=(0,_.getDebugLogger)();function f(d,y){let b=d.config.layoutComponent||v.DefaultLayout;const A=d.browserModules.filter(R=>R.isOverlay).map(R=>R.component?R.component:(E.warn("Overlay module does not have component",R),null)).filter(Boolean),S=d.injector;S.get(h.ClientAppContextContribution).getContributions().forEach(R=>b=R.registerClientAppContext(b,S));const w=R=>r.default.createElement(u,{...R,app:d,main:b,overlays:A});return(typeof y=="function"?y:c(y))(w)}},96302:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createConnectionService=m,t.bindConnectionServiceDeprecated=p;const n=e(8919),r=e(18740),o=e(76271),l=e(43718),_=e(16884),v=e(11050);async function m(g,a,h,u={}){var c;const E=g.get(v.AppConfig),f=g.get(l.IReporterService);h.setReporter(f);const d=g.get(l.IEventBus),y=g.get(_.ClientAppStateService),b=()=>{y.reachedState("core_module_initialized").then(()=>{d.fire(new l.BrowserConnectionOpenEvent)})};h.connection.isOpen()&&b(),h.connection.onOpen(()=>{b()}),h.connection.onClose(()=>{y.reachedState("core_module_initialized").then(()=>{d.fire(new l.BrowserConnectionCloseEvent)})}),h.connection.onError(I=>{y.reachedState("core_module_initialized").then(()=>{d.fire(new l.BrowserConnectionErrorEvent(I))})}),await h.initHandler(),g.addProviders({token:r.WSChannelHandler,useValue:h});const A=await h.openChannel(o.RPCServiceChannelPath),S=new n.RPCServiceCenter;return S.setSumiConnection(A.createSumiConnection(u)),!((c=E?.measure)===null||c===void 0)&&c.connection&&S.setReporter(f,E.measure.connection.minimumReportThresholdTime),s(g,a,S),g.get(l.ILogger).reportToServer(),A}function p(g,a,h){const u=new n.RPCServiceCenter,c=u.setConnection(h),E=h.onClose(()=>{c.dispose(),E.dispose()});s(g,a,u)}function s(g,a,h){const{getRPCService:u}=(0,n.initRPCService)(h),c=[],E=[];for(const f of a){const d=g.get(f);if(d.backServices)for(const y of d.backServices)c.push(y),y.protocol&&h.loadProtocol(y.protocol)}for(const f of c){const{servicePath:d}=f,y=u(d),b={token:d,useValue:y};g.addProviders(b),f.clientToken&&E.push(f)}for(const f of E){const{servicePath:d}=f,y=u(d);if(f.clientToken){const b=g.get(f.clientToken);y.onRequestService(b)}}}},75206:(x,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ClientAppContextContribution=void 0,t.ClientAppContextContribution=Symbol("ClientAppContextContribution")},32796:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=e(85608);n.__exportStar(e(72746),t),n.__exportStar(e(79248),t),n.__exportStar(e(96302),t),n.__exportStar(e(75206),t)},71843:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.injectInnerProviders=$;const n=e(43718),r=e(96405),o=e(16872),l=e(41480),_=e(12956),v=e(59555),m=e(18379),p=e(10605),s=e(66963),g=e(71707),a=e(80832),h=e(23396),u=e(77273),c=e(41118),E=e(37015),f=e(68456),d=e(75694),y=e(93899),b=e(77666),A=e(90697),S=e(73967),D=e(78132),I=e(68969),w=e(11719),T=e(52564),R=e(26542),P=e(52993),O=e(10845),M=e(40827),k=e(32242),F=e(99e3),L=e(42637),B=e(62652),U=e(27957),W=e(45670),j=e(66894),Q=e(63921),G=e(75206),Z=e(82493);function $(V){(0,n.createContributionProvider)(V,s.ClientAppContribution),(0,n.createContributionProvider)(V,n.CommandContribution),(0,n.createContributionProvider)(V,u.FsProviderContribution),(0,n.createContributionProvider)(V,c.KeybindingContribution),(0,n.createContributionProvider)(V,y.MenuContribution),(0,n.createContributionProvider)(V,f.ComponentContribution),(0,n.createContributionProvider)(V,T.SlotRendererContribution),(0,n.createContributionProvider)(V,D.PreferenceContribution),(0,n.createContributionProvider)(V,W.VariableContribution),(0,n.createContributionProvider)(V,f.TabBarToolbarContribution),(0,n.createContributionProvider)(V,L.ToolBarActionContribution),(0,n.createContributionProvider)(V,k.StaticResourceContribution),(0,n.createContributionProvider)(V,G.ClientAppContextContribution);const H=[{token:n.IEventBus,useClass:n.EventBusImpl},{token:n.CommandService,useClass:n.CommandServiceImpl},{token:n.CommandRegistry,useClass:n.CommandRegistryImpl},{token:c.KeybindingRegistry,useClass:c.KeybindingRegistryImpl},{token:c.KeybindingService,useFactory:K=>K.get(c.KeybindingRegistry)},{token:o.KeyboardNativeLayoutService,useClass:E.BrowserKeyboardLayoutImpl},{token:o.KeyboardLayoutChangeNotifierService,useFactory:K=>K.get(o.KeyboardNativeLayoutService)},{token:E.KeyValidator,useFactory:K=>K.get(o.KeyboardNativeLayoutService)},_.ClientAppStateService,{token:d.ILogger,useClass:d.Logger},{token:d.Logger,useAlias:d.ILogger},{token:f.ComponentRegistry,useClass:f.ComponentRegistryImpl},{token:W.VariableRegistry,useClass:W.VariableRegistryImpl},{token:y.AbstractMenuService,useClass:y.MenuServiceImpl},{token:y.AbstractContextMenuService,useClass:y.ContextMenuServiceImpl},{token:y.IMenuRegistry,useClass:y.MenuRegistryImpl},{token:b.IToolbarActionService,useClass:b.ToolbarActionService},{token:y.AbstractMenubarService,useClass:y.MenubarServiceImpl},{token:n.IReporter,useClass:n.DefaultReporter},{token:n.IReporterService,useClass:n.ReporterService},{token:n.ReporterMetadata,useValue:{host:n.REPORT_HOST.BROWSER}},{token:I.IProgressService,useClass:w.ProgressService},{token:L.IToolbarRegistry,useClass:U.NextToolbarRegistryImpl},{token:L.IToolbarPopoverRegistry,useClass:B.ToolbarPopoverRegistry},U.ToolbarClientAppContribution,{token:n.IProblemPatternRegistry,useClass:n.ProblemPatternRegistryImpl},{token:n.IProblemMatcherRegistry,useClass:n.ProblemMatchersRegistryImpl},{token:n.ITaskDefinitionRegistry,useClass:n.TaskDefinitionRegistryImpl},{token:A.IOpenerService,useClass:S.OpenerService},{token:j.IWindowService,useClass:Q.WindowService},{token:n.IApplicationService,useClass:v.ApplicationService},{token:P.IClipboardService,useClass:P.BrowserClipboardService},{token:O.IExternalUriService,useClass:O.ExternalUriService},{token:n.IAuthenticationService,useClass:p.AuthenticationService},{token:R.ICryptoService,useClass:R.CryptoService},{token:R.ICredentialsService,useClass:R.CredentialsService},{token:r.IHashCalculateService,useClass:r.HashCalculateServiceImpl},{token:n.IExtensionsSchemaService,useClass:h.ExtensionsPointServiceImpl},{token:n.AppLifeCycleServiceToken,useClass:Z.AppLifeCycleService},{token:k.StaticResourceService,useClass:F.StaticResourceServiceImpl},M.StaticResourceClientAppContribution,{token:g.ISplitPanelService,useClass:g.SplitPanelService},{token:n.IAIReporter,useClass:l.AIReporter},{token:a.IDesignStyleService,useClass:a.DesignStyleService},{token:m.ConnectionHelperFactory,useFactory:m.ConnectionHelperFactory}];V.addProviders(...H)}},82493:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AppLifeCycleService=void 0;const n=e(85608),r=e(76003),o=e(43718);let l=class{constructor(){this.onDidChangeLifecyclePhaseEmitter=new o.Emitter,this.onDidLifeCyclePhaseChange=this.onDidChangeLifecyclePhaseEmitter.event}set phase(v){this.lifeCyclePhase=v,this.onDidChangeLifecyclePhaseEmitter.fire(this.lifeCyclePhase)}get phase(){return this.lifeCyclePhase}};t.AppLifeCycleService=l,t.AppLifeCycleService=l=n.__decorate([(0,r.Injectable)()],l)},99696:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=e(85608).__importDefault(e(99126));typeof window.ResizeObserver>"u"&&(window.ResizeObserver=r.default)},36206:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BrowserModule=t.IClientApp=void 0;const n=e(85608),r=e(76003),o=e(43718);t.IClientApp=Symbol("CLIENT_APP_TOKEN");class l extends o.BasicModule{}t.BrowserModule=l,n.__decorate([(0,r.Autowired)(t.IClientApp),n.__metadata("design:type",Object)],l.prototype,"app",void 0)},14109:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MERGE_CONFLICT_COMMANDS=t.SCM_COMMANDS=t.QUICK_OPEN_COMMANDS=t.MARKER_COMMANDS=t.LAYOUT_COMMANDS=t.TERMINAL_COMMANDS=t.DIALOG_COMMANDS=t.KEYBOARD_COMMANDS=t.WORKSPACE_COMMANDS=t.OUTLINE_COMMANDS=t.SEARCH_COMMANDS=t.MULTI_DIFF_EDITOR_COMMANDS=t.DIFF_EDITOR_COMMANDS=t.EDITOR_COMMANDS=t.COMMON_COMMANDS=t.OPEN_EDITORS_COMMANDS=t.FILE_COMMANDS=void 0;const n=e(67304);var r;(function(b){const A="file";b.NEW_FILE={id:"file.new",category:A,iconClass:(0,n.getIcon)("new-file")},b.RENAME_FILE={id:"file.rename",category:A},b.DELETE_FILE={id:"file.delete",category:A},b.NEW_FOLDER={id:"file.folder.new",category:A,iconClass:(0,n.getIcon)("new-folder")},b.COMPARE_SELECTED={id:"file.compare",category:A},b.OPEN_FILE={id:"file.open",category:A},b.SAVE_FILE={id:"file.save",category:A},b.COLLAPSE_ALL={id:"filetree.collapse.all",category:A,iconClass:(0,n.getIcon)("collapse-all")},b.REFRESH_ALL={id:"filetree.refresh.all",category:A,iconClass:(0,n.getIcon)("refresh")},b.OPEN_RESOURCES={id:"filetree.open.file",category:A},b.OPEN_TO_THE_SIDE={id:"filetree.open.side",category:A},b.OPEN_TYPE_WITH={id:"filetree.open.with",category:A},b.COPY_PATH={id:"filetree.copy.path",category:A,label:"%file.copy.path%"},b.COPY_RELATIVE_PATH={id:"filetree.copy.relativepath",category:A},b.COPY_FILE={id:"filetree.copy.file",category:A},b.CUT_FILE={id:"filetree.cut.file",category:A},b.PASTE_FILE={id:"filetree.paste.file",category:A},b.SELECT_CURRENT_NODE={id:"filetree.selectCurrentNode",category:A},b.LOCATION={id:"filetree.location",category:A},b.LOCATION_WITH_EDITOR={id:"filetree.location_with_editor",category:A,iconClass:(0,n.getIcon)("focus")},b.OPEN_FOLDER={id:"filetree.open.folder",category:A,label:"%file.open.folder%"},b.VSCODE_OPEN_FOLDER={id:"filetree.open.vscode_open_folder",category:A},b.OPEN_WORKSPACE={id:"filetree.open.workspace",category:A,label:"%file.open.workspace%"},b.SEARCH_ON_FOLDER={id:"filetree.search.folder",category:A},b.FOCUS_FILES={id:"filetree.focus.files",category:A,label:"%file.focus.files%"},b.FILTER_TOGGLE={id:"filetree.files.filter_toggle",category:A,iconClass:(0,n.getIcon)("retrieval")},b.FILTER_OPEN={id:"filetree.files.filter_open",category:A},b.OPEN_TERMINAL_WITH_PATH={id:"filetree.openTerminalWithPath",category:A},b.FILTER_CLOSE={id:"filetree.quitFilterMode",category:A},b.NEXT={id:"filetree.next",category:A},b.PREV={id:"filetree.prev",category:A},b.COLLAPSE={id:"filetree.collapse",category:A},b.EXPAND={id:"filetree.expand",category:A},b.REVEAL_IN_EXPLORER={id:"filetree.revealInExplorer",category:A},b.TOGGLE_OR_OPEN={id:"filetree.toggleOrOpen",category:A}})(r||(t.FILE_COMMANDS=r={}));var o;(function(b){const A="openeditors";b.SAVE_ALL={id:"opened.editors.save.all",category:A,iconClass:(0,n.getIcon)("save-all")},b.CLOSE_ALL={id:"opened.editors.close.all",category:A,iconClass:(0,n.getIcon)("close-all")},b.SAVE_BY_GROUP={id:"opened.editors.save.byGroup"},b.CLOSE_BY_GROUP={id:"opened.editors.close.byGroup"},b.OPEN={id:"opened.editors.open",category:A},b.CLOSE={id:"opened.editors.close",category:A},b.OPEN_TO_THE_SIDE={id:"opened.editors.openToTheSide",category:A},b.COMPARE_SELECTED={id:"opened.editors.compare",category:A},b.COPY_RELATIVE_PATH={id:"opened.editors.copyRelativePath",category:A},b.COPY_PATH={id:"opened.editors.copyPath",category:A},b.LOCATION={id:"opened.editors.location",category:A}})(o||(t.OPEN_EDITORS_COMMANDS=o={}));var l;(function(b){b.FIND={id:"core.find",label:"%common.find%"},b.REPLACE={id:"core.replace",label:"%common.replace%"},b.ABOUT_COMMAND={id:"core.about",label:"%common.about%"},b.OPEN_PREFERENCES={id:"core.openpreference",label:"%common.preference.open%"},b.LOCATE_PREFERENCES={id:"workbench.preferences.locate"},b.OPEN_KEYMAPS={id:"core.keymaps.open",label:"%common.keymaps.open%"},b.OPEN_LAUNCH_CONFIGURATION={id:"core.launchConfiguration.open",label:"%debug.action.open.configuration%"},b.ENVIRONMENT_VARIABLE={id:"core.environment.variable"}})(l||(t.COMMON_COMMANDS=l={}));var _;(function(b){const A="editor";b.API_OPEN_EDITOR_COMMAND_ID="_workbench.open",b.API_OPEN_DIFF_EDITOR_COMMAND_ID="_workbench.diff",b.API_OPEN_WITH_EDITOR_COMMAND_ID="_workbench.openWith",b.VSCODE_OPEN_MULTI_DIFF_EDITOR_COMMAND_ID="_workbench.openMultiDiffEditor",b.NEW_UNTITLED_FILE={id:"file.new.untitled",category:A,label:"%file.new%",iconClass:(0,n.getIcon)("new-file")},b.UNDO={id:"editor.undo",category:A,label:"%editor.undo%"},b.REDO={id:"editor.redo",category:A,label:"%editor.redo%"},b.SELECT_ALL={id:"editor.selectAll",category:A,label:"%selection.all%"},b.OPEN_RESOURCE={id:"editor.openUri",category:A},b.OPEN_RESOURCES={id:"editor.openUris",category:A},b.SAVE_URI={id:"editor.saveUri",category:A},b.SAVE_CURRENT={id:"editor.saveCurrent",category:A,label:"%editor.saveCurrent%"},b.FOCUS_IF_NOT_ACTIVATE_ELEMENT={id:"editor.focusIfNotActivateElement",category:A,label:"%editor.saveCurrent%"},b.COMPARE={id:"editor.compare",category:A},b.OPEN_MERGEEDITOR={id:"editor.open.mergeEditor",category:A},b.OPEN_MERGEEDITOR_DEV={id:"editor.open.mergeEditor.dev",category:"Merge Editor (Dev)",label:"Open Merge Editor State from Json"},b.MERGEEDITOR_RESET={id:"editor.mergeEditor.reset",category:A,label:"%mergeEditor.reset%"},b.CLOSE={id:"editor.close",category:A,label:"%editor.closeCurrent%"},b.CLOSE_ALL_IN_GROUP={id:"editor.closeAllInGroup",category:A,label:"%editor.closeAllInGroup%"},b.CLOSE_OTHER_IN_GROUP={id:"editor.closeOtherEditorsInGroup",category:A,label:"%editor.closeOtherEditors%"},b.CLOSE_ALL={id:"editor.closeAll",category:A,label:"%editor.close.all%"},b.CLOSE_SAVED={id:"editor.closeSaved",category:A,label:"%editor.closeSaved%"},b.SAVE_ALL={id:"editor.saveAll",category:A,label:"%editor.saveAll%"},b.CLOSE_TO_RIGHT={id:"editor.closeToRight",category:A,label:"%editor.closeToRight%"},b.GET_CURRENT={id:"editor.getCurrent",category:A},b.GET_CURRENT_RESOURCE={id:"editor.getCurrentResource",category:A},b.SPLIT_TO_LEFT={id:"editor.splitToLeft",category:A,label:"%editor.splitToLeft%"},b.SPLIT_TO_RIGHT={id:"editor.splitToRight",category:A,label:"%editor.splitToRight%"},b.SPLIT_TO_TOP={id:"editor.splitToTop",category:A,label:"%editor.splitToTop%"},b.SPLIT_TO_BOTTOM={id:"editor.splitToBottom",category:A,label:"%editor.splitToBottom%"},b.CHANGE_LANGUAGE={id:"editor.changeLanguage",category:A},b.CHANGE_ENCODING={id:"editor.changeEncoding",category:A},b.GET_ENCODING={id:"editor.getEncoding",category:A},b.CHANGE_EOL={id:"editor.changeEol",category:A},b.NAVIGATE_LEFT={id:"editor.navigateLeft",category:A},b.NAVIGATE_RIGHT={id:"editor.navigateRight",category:A},b.NAVIGATE_UP={id:"editor.navigateUp",category:A},b.NAVIGATE_DOWN={id:"editor.navigateDown",category:A},b.NAVIGATE_NEXT={id:"editor.navigateNext",category:A},b.NAVIGATE_PREVIOUS={id:"editor.navigatePrevious",category:A},b.PREVIOUS={id:"editor.previous",category:A},b.NEXT={id:"editor.next",category:A},b.PREVIOUS_IN_GROUP={id:"editor.previousInGroup",category:A},b.NEXT_IN_GROUP={id:"editor.nextInGroup",category:A},b.LAST_IN_GROUP={id:"editor.lastInGroup",category:A},b.CLOSE_OTHER_GROUPS={id:"editor.closeOtherGroup",category:A,label:"%editor.closeEditorsInOtherGroups%"},b.OPEN_EDITOR_AT_INDEX={id:"editor.openEditorAtIndex",category:A},b.EVEN_EDITOR_GROUPS={id:"editor.evenEditorGroups",category:A,label:"%editor.resetEditorGroups%"},b.REVERT_DOCUMENT={id:"editor.document.revert",category:A,label:"%editor.revert%"},b.REVERT_AND_CLOSE={id:"editor.revertAndClose",category:A},b.GO_FORWARD={id:"editor.goForward",category:A},b.GO_BACK={id:"editor.goBack",category:A},b.PIN_CURRENT={id:"editor.pinCurrent",category:A},b.COPY_CURRENT_PATH={id:"editor.copyCurrentPath",category:A},b.GO_TO_GROUP={id:"editor.goToGroup",category:A},b.MOVE_GROUP={id:"editor.moveGroup",category:A},b.REOPEN_CLOSED={id:"editor.reopenClosed",category:A},b.FOCUS={id:"editor.focus",category:A},b.TEST_TOKENIZE={id:"editor.tokenize.test",category:A,label:"%editor.tokenize.test%"},b.AUTO_SAVE={id:"editor.autoSave",category:A},b.FOCUS_ACTIVE_EDITOR_GROUP={id:"editor.focusActiveEditorGroup",category:A},b.COMPONENT_UNDO={id:"editor.componentUndo",category:A},b.COMPONENT_REDO={id:"editor.componentRedo"},b.SEARCH_WORKSPACE_SYMBOL={id:"editor.workspaceSymbol.quickopen",label:"%editor.workspaceSymbol.quickopen%",category:A},b.SEARCH_WORKSPACE_SYMBOL_CLASS={id:"editor.workspaceSymbolClass.quickopen",label:"%editor.workspaceSymbolClass.quickopen%",category:A},b.GO_TO_LINE={id:"editor.action.gotoLine",label:"%editor.goToLine%",category:A},b.QUICK_OPEN={id:"workbench.action.quickOpen",category:A,label:"%editor.quickOpen%"},b.TOGGLE_WORD_WRAP={id:"editor.toggleWordWrap",label:"%editor.toggleWordWrap%",category:A},b.TOGGLE_COLUMN_SELECTION={id:"editor.action.toggleColumnSelection",label:"%editor.action.toggleColumnSelection%",category:A},b.FORMAT_DOCUMENT={id:"editor.action.formatDocument",category:A},b.FORMAT_SELECTION={id:"editor.action.formatSelection",category:A},b.FORMAT_DOCUMENT_WITH={id:"editor.action.formatDocument.multiple",category:A,label:"%editor.formatDocument.label.multiple%"},b.FORMAT_SELECTION_WITH={id:"editor.action.formatSelection.multiple",category:A,label:"%editor.formatSelection.label.multiple%"},b.COPY_PATH={id:"editor.action.copyPath",category:A,label:"%editor.copyPath%"},b.COPY_RELATIVE_PATH={id:"editor.action.copyRelativePath",category:A,label:"%editor.copyRelativePath%"}})(_||(t.EDITOR_COMMANDS=_={}));var v;(function(b){const A="diff-editor";b.REVERT={id:"editor.diff.revert",category:A},b.ACCEPT={id:"editor.diff.accept",category:A},b.TOGGLE_COLLAPSE_UNCHANGED_REGIONS={id:"editor.diff.toggleCollapseUnchangedRegions",category:A}})(v||(t.DIFF_EDITOR_COMMANDS=v={}));var m;(function(b){const A="multi-diff-editor";b.COLLAPSE_FILES={id:"editor.diff.collapseFiles",category:A},b.EXPAND_FILES={id:"editor.diff.expandFiles",category:A}})(m||(t.MULTI_DIFF_EDITOR_COMMANDS=m={}));var p;(function(b){const A="search";b.OPEN_SEARCH={id:"content-search.openSearch",category:A,label:"Open search sidebar"},b.REFRESH={id:"file-search.refresh",label:"refresh search",iconClass:(0,n.getIcon)("refresh"),category:A},b.CLEAN={id:"file-search.clean",label:"clean search",iconClass:(0,n.getIcon)("clear"),category:A},b.GET_RECENT_SEARCH_WORD={id:"search.getRecentSearchWordCmd",category:A},b.GET_BACK_RECENT_SEARCH_WORD={id:"search.getBackRecentSearchWordCmd",category:A},b.MENU_REPLACE={id:"search.menu.replace",category:A,label:"%search.replace.title%"},b.MENU_REPLACE_ALL={id:"search.menu.replaceAll",category:A,label:"%search.replaceAll.label%"},b.MENU_HIDE={id:"search.menu.hide",category:A,label:"%search.result.hide%"},b.MENU_COPY={id:"search.menu.copy",category:A,label:"%file.copy.file%"},b.MENU_COPY_ALL={id:"search.menu.copyAll",category:A,label:"%search.menu.copyAll%"},b.MENU_COPY_PATH={id:"search.menu.copyPath",category:A,label:"%file.copy.path%"},b.REPLACE={id:"search.replace",category:A},b.CLOSE={id:"search.close",category:A}})(p||(t.SEARCH_COMMANDS=p={}));var s;(function(b){const A="outline";b.OUTLINE_COLLAPSE_ALL={id:"outline.collapse.all",category:A},b.OUTLINE_FOLLOW_CURSOR={id:"outline.follow.cursor",category:A},b.OUTLINE_SORT_KIND={id:"outline.sort.kind",category:A},b.OUTLINE_SORT_NAME={id:"outline.sort.name",category:A},b.OUTLINE_SORT_POSITION={id:"outline.sort.position",category:A}})(s||(t.OUTLINE_COMMANDS=s={}));var g;(function(b){const A="workspace";b.ADD_WORKSPACE_FOLDER={id:"workspace.addFolderToWorkspace",label:"%workspace.addFolderToWorkspace%",category:A},b.REMOVE_WORKSPACE_FOLDER={id:"workspace.removeFolderFromWorkspace",label:"%workspace.removeFolderFromWorkspace%",category:A},b.SAVE_WORKSPACE_AS_FILE={id:"workspace.saveWorkspaceAsFile",label:"%workspace.saveWorkspaceAsFile%",category:A}})(g||(t.WORKSPACE_COMMANDS=g={}));var a;(function(b){const A="keyboard";b.CHOOSE_KEYBOARD_LAYOUT={id:"keyboard.chooseKeyboardLayout",label:"%keyboard.chooseKeyboardLayout%",category:A}})(a||(t.KEYBOARD_COMMANDS=a={}));var h;(function(b){const A="dialog";b.ENSURE={id:"dialog.ensure",category:A}})(h||(t.DIALOG_COMMANDS=h={}));var u;(function(b){b.CATEGORY="%terminal.name%",b.FOCUS_NEXT_TERMINAL={id:"workbench.action.terminal.focusNextPane",label:"%terminal.focusNext.inTerminalGroup%",category:b.CATEGORY},b.FOCUS_PREVIOUS_TERMINAL={id:"workbench.action.terminal.focusPreviousPane",label:"%terminal.focusPrevious.inTerminalGroup%",category:b.CATEGORY},b.SPLIT={id:"terminal.split",label:"%terminal.split%",category:b.CATEGORY},b.ADD={id:"terminal.add",label:"%terminal.new%",category:b.CATEGORY},b.REMOVE={id:"terminal.remove",label:"%terminal.remove%",category:b.CATEGORY},b.CLEAR={id:"terminal.clear",label:"%terminal.clear%",category:b.CATEGORY},b.OPEN_SEARCH={id:"terminal.search",label:"%terminal.search%",category:b.CATEGORY},b.SEARCH_NEXT={id:"terminal.search.next",label:"%terminal.search.next%",category:b.CATEGORY},b.OPEN_WITH_PATH={id:"terminal.openWithPath",category:b.CATEGORY},b.CLEAR_CONTENT={id:"terminal.clearContent",label:"%terminal.menu.clearCurrentContent%",category:b.CATEGORY},b.CLEAR_ALL_CONTENT={id:"terminal.clearAllContent",label:"%terminal.menu.clearAllContents%",category:b.CATEGORY},b.TAB_RENAME={id:"terminal.tabRename",category:b.CATEGORY},b.SELECT_ALL_CONTENT={id:"terminal.selectAllContent",label:"%terminal.menu.selectAllContent%",category:b.CATEGORY},b.MORE_SETTINGS={id:"terminal.moreSettings",label:"%terminal.menu.moreSettings%",category:b.CATEGORY},b.SELECT_TYPE={id:"terminal.selectType",category:b.CATEGORY},b.SELECT_ZSH={id:"terminal.selectTypeZsh",label:"zsh",category:b.CATEGORY},b.SELECT_BASH={id:"terminal.selectTypeBash",label:"bash",category:b.CATEGORY},b.SELECT_SH={id:"terminal.selectTypeSh",label:"sh",category:b.CATEGORY},b.SELECT_CMD={id:"terminal.selectTypeCMD",label:"cmd",category:b.CATEGORY},b.SELECT_POWERSHELL={id:"terminal.selectTypePowerShell",label:"powershell",category:b.CATEGORY},b.COPY={id:"terminal.copy",label:"%edit.copy%",category:b.CATEGORY},b.PASTE={id:"terminal.paste",label:"%edit.paste%",category:b.CATEGORY},b.SELECT_ALL={id:"terminal.selectAll",label:"%terminal.menu.selectCurrentContent%",category:b.CATEGORY},b.RE_LAUNCH={id:"terminal.relaunch",category:b.CATEGORY},b.TOGGLE_TERMINAL={id:"terminal.toggleTerminal",label:"%terminal.toggleTerminal%",category:b.CATEGORY},b.KILL_PROCESS={id:"terminal.killProcess",label:"%terminal.killProcess%",category:b.CATEGORY}})(u||(t.TERMINAL_COMMANDS=u={}));var c;(function(b){const A="view";b.QUICK_OPEN_VIEW={id:"layout.action.quickOpenView",category:A},b.OPEN_VIEW={id:"layout.action.openView",label:"%layout.action.openView%",category:A},b.MAXIMIZE_EDITOR={id:"layout.action.Maximizeeditor",category:A},b.TOGGLE_SIDEBAR_VISIBILITY={id:"main-layout.left-panel.toggle",category:A}})(c||(t.LAYOUT_COMMANDS=c={}));var E;(function(b){const A="marker";b.SHOW_ERRORS_WARNINGS={id:"marker.action.showErrorsWarnings",category:A},b.TOGGLE_SHOW_ERRORS_WARNINGS={id:"marker.action.toggleShowErrorsWarnings",category:A}})(E||(t.MARKER_COMMANDS=E={}));var f;(function(b){b.OPEN={id:"editor.action.quickCommand"},b.OPEN_OUTLINE={id:"editor.action.quickOutline"},b.OPEN_VIEW={id:"editor.action.quickView"},b.OPEN_WITH_COMMAND={id:"editor.action.quickCommand.withCommand"}})(f||(t.QUICK_OPEN_COMMANDS=f={}));var d;(function(b){const A="SCM";b.GetSCMResource={id:"scm.getResource",category:A},b._GIT_OPEN_MERGE_EDITOR={id:"_git.openMergeEditor"},b.GIT_OPEN_MERGE_EDITOR={id:"git.openMergeEditor"}})(d||(t.SCM_COMMANDS=d={}));var y;(function(b){const A="MergeConflict";b.AI_ACCEPT={id:"merge-conflict.ai.accept",category:A},b.ALL_RESET={id:"merge-conflict.ai.all-reset",category:A},b.AI_ALL_ACCEPT={id:"merge-conflict.ai.all-accept",category:A},b.AI_ALL_ACCEPT_STOP={id:"merge-conflict.ai.all-accept-stop",category:A}})(y||(t.MERGE_CONFLICT_COMMANDS=y={}))},22780:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ClientCommonContribution=t.locationProtocolContextKey=t.inputFocusedContextKey=void 0;const n=e(85608),r=e(76003),o=e(97267),l=e(43718),_=e(53736),v=e(18193),m=e(22366),p=e(41118),s=e(1149),g=e(64102),a=e(39496),h=e(78132),u=e(11050),c=e(14109),E=e(66549);t.inputFocusedContextKey="inputFocus",t.locationProtocolContextKey="locationProtocol";let f=class{constructor(){this.schema=v.corePreferenceSchema;const y={"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},b=Object.keys(this.schema.properties);for(const A of b)this.schema.properties[A].default=y[A]||this.schema.properties[A].default}onStart(){this.contextKeyService.createKey(t.locationProtocolContextKey,window.location.protocol.split(":")[0]),this.inputFocusedContext=this.contextKeyService.createKey(t.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 y=this.activeElementIsInput();if(this.inputFocusedContext.set(y),y){const b=(0,m.trackFocus)(document.activeElement);l.Event.once(b.onDidBlur)(()=>{this.inputFocusedContext.set(this.activeElementIsInput()),b.dispose()})}}registerCommands(y){y.registerCommand(c.EDITOR_COMMANDS.UNDO),y.registerCommand(c.EDITOR_COMMANDS.REDO),y.registerCommand(c.EDITOR_COMMANDS.SELECT_ALL),y.registerCommand(c.COMMON_COMMANDS.ABOUT_COMMAND,{execute:()=>{alert((0,l.replaceLocalizePlaceholder)(this.appConfig.appName))}})}registerMenus(y){y.registerMenubarItem(a.MenuId.MenubarFileMenu,{label:(0,l.localize)("menu-bar.title.file"),order:1,iconClass:(0,o.getIcon)("menubar-file")}),y.registerMenubarItem(a.MenuId.MenubarEditMenu,{label:(0,l.localize)("menu-bar.title.edit"),order:2,iconClass:(0,o.getIcon)("menubar-edit")}),y.registerMenubarItem(a.MenuId.MenubarSelectionMenu,{label:(0,l.localize)("menu-bar.title.selection"),order:3,iconClass:(0,o.getIcon)("menubar-selection")}),y.registerMenubarItem(a.MenuId.MenubarViewMenu,{label:(0,l.localize)("menu-bar.title.view"),order:4,iconClass:(0,o.getIcon)("menubar-view")}),y.registerMenubarItem(a.MenuId.MenubarGoMenu,{label:(0,l.localize)("menu-bar.title.go"),order:5,iconClass:(0,o.getIcon)("menubar-go")}),y.registerMenubarItem(a.MenuId.MenubarTerminalMenu,{label:(0,l.localize)("menu-bar.title.terminal"),order:5,iconClass:(0,o.getIcon)("terminal")}),y.registerMenubarItem(a.MenuId.MenubarHelpMenu,{label:(0,l.localize)("menu-bar.title.help"),order:999,iconClass:(0,o.getIcon)("question-circle")}),y.registerMenuItems(a.MenuId.MenubarFileMenu,[{command:c.FILE_COMMANDS.OPEN_FOLDER.id,group:"1_open",when:"config.application.supportsOpenFolder"},{command:c.FILE_COMMANDS.OPEN_WORKSPACE.id,group:"1_open",when:"config.application.supportsOpenWorkspace"},{command:c.WORKSPACE_COMMANDS.ADD_WORKSPACE_FOLDER.id,group:"1_open",when:"config.workspace.supportMultiRootWorkspace"},{command:c.WORKSPACE_COMMANDS.SAVE_WORKSPACE_AS_FILE.id,group:"1_open",when:"config.workspace.supportMultiRootWorkspace"},{command:c.EDITOR_COMMANDS.NEW_UNTITLED_FILE.id,group:"2_new"},{command:{id:c.EDITOR_COMMANDS.SAVE_CURRENT.id,label:(0,l.localize)("file.save")},group:"3_save"},{command:{id:c.EDITOR_COMMANDS.SAVE_ALL.id,label:(0,l.localize)("file.saveAll")},group:"3_save"},{command:{id:c.EDITOR_COMMANDS.AUTO_SAVE.id,label:(0,l.localize)("file.autoSave")},toggledWhen:"config.editor.autoSave != off",group:"4_autosave"}]),y.registerMenuItems(a.MenuId.MenubarGoMenu,[{command:{id:c.EDITOR_COMMANDS.GO_BACK.id,label:(0,l.localize)("editor.goBack")},group:"1_go"},{command:{id:c.EDITOR_COMMANDS.GO_FORWARD.id,label:(0,l.localize)("editor.goForward")},group:"1_go"},{command:{id:c.EDITOR_COMMANDS.QUICK_OPEN.id,label:(0,l.localize)("editor.quickOpen")},group:"2_go_file"},{command:{id:c.EDITOR_COMMANDS.SEARCH_WORKSPACE_SYMBOL.id,label:(0,l.localize)("editor.workspaceSymbol.quickopen")},group:"2_go_file"},{command:{id:c.EDITOR_COMMANDS.GO_TO_LINE.id,label:(0,l.localize)("editor.goToLine")},group:"3_go_infile"},{command:{id:"editor.action.jumpToBracket",label:(0,l.localize)("menu-bar.go.jumpToBracket")},group:"3_go_infile"},{command:{id:"editor.action.marker.nextInFiles",label:(0,l.localize)("menu-bar.go.nextProblemInFiles")},group:"6_go_problem"},{command:{id:"editor.action.marker.prevInFiles",label:(0,l.localize)("menu-bar.go.prevProblemInFiles")},group:"6_go_problem"}]),y.registerMenuItems(a.MenuId.MenubarTerminalMenu,[{command:{id:c.TERMINAL_COMMANDS.ADD.id,label:c.TERMINAL_COMMANDS.ADD.label},group:"1_terminal"},{command:{id:c.TERMINAL_COMMANDS.SPLIT.id,label:c.TERMINAL_COMMANDS.SPLIT.label},group:"1_terminal"}])}registerKeybindings(y){y.registerKeybinding({command:c.EDITOR_COMMANDS.SELECT_ALL.id,keybinding:"ctrlcmd+a",when:"editorFocus"}),y.registerKeybinding({command:c.EDITOR_COMMANDS.UNDO.id,keybinding:"ctrlcmd+z",when:"editorFocus"}),y.registerKeybinding({command:c.EDITOR_COMMANDS.REDO.id,keybinding:"ctrlcmd+shift+z",when:"editorFocus"})}};t.ClientCommonContribution=f,n.__decorate([(0,r.Autowired)(l.CommandService),n.__metadata("design:type",Object)],f.prototype,"commandService",void 0),n.__decorate([(0,r.Autowired)(_.IContextKeyService),n.__metadata("design:type",Object)],f.prototype,"contextKeyService",void 0),n.__decorate([(0,r.Autowired)(u.AppConfig),n.__metadata("design:type",Object)],f.prototype,"appConfig",void 0),n.__decorate([(0,r.Autowired)(s.LayoutViewSizeConfig),n.__metadata("design:type",s.LayoutViewSizeConfig)],f.prototype,"layoutViewSize",void 0),t.ClientCommonContribution=f=n.__decorate([(0,l.Domain)(l.CommandContribution,E.ClientAppContribution,h.PreferenceContribution,g.MenuContribution,p.KeybindingContribution),n.__metadata("design:paramtypes",[])],f)},66549:(x,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ClientAppContribution=void 0,t.ClientAppContribution=Symbol("ClientAppContribution")},34505:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ClientCommonModule=void 0;const n=e(85608),r=e(76003),o=e(16908),l=e(43718),_=e(37638),v=e(36206),m=e(136),p=e(90697),s=e(45829),g=e(44867),a=e(22780),h=e(10797),u=e(17821);let c=class extends v.BrowserModule{constructor(){super(...arguments),this.contributionProvider=[p.OpenerContribution],this.providers=[a.ClientCommonContribution,g.DefaultOpenerContribution,g.OpenerContributionClient,_.AuthenticationContribution,m.HashCalculateContribution],this.electronProviders=[h.ClientElectronCommonContribution,s.ElectronOpenerContributionClient],this.webProviders=[u.ClientWebCommonContribution],this.backServices=[{servicePath:l.CommonServerPath,protocol:o.CommonServerProtocol},{servicePath:l.KeytarServicePath},{servicePath:l.CryptoServicePath}]}};t.ClientCommonModule=c,t.ClientCommonModule=c=n.__decorate([(0,r.Injectable)()],c)},98881:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RecentStorage=void 0;const n=e(85608),r=e(76003),o=e(43718);let l=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}};t.RecentStorage=l,n.__decorate([(0,r.Autowired)(o.StorageProvider),n.__metadata("design:type",Function)],l.prototype,"getStorage",void 0),t.RecentStorage=l=n.__decorate([(0,r.Injectable)()],l)},30144:(x,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EXTENSION_CONTAINER_ID=t.SCM_CONTAINER_ID=t.SEARCH_CONTAINER_ID=t.EXPLORER_CONTAINER_ID=t.DEBUG_CONTAINER_ID=t.TEST_RESULT_CONTAINER_ID=t.DEBUG_CONSOLE_CONTAINER_ID=t.TERMINAL_CONTAINER_ID=t.OUTPUT_CONTAINER_ID=t.MARKER_CONTAINER_ID=void 0,t.MARKER_CONTAINER_ID="markers",t.OUTPUT_CONTAINER_ID="output",t.TERMINAL_CONTAINER_ID="terminal",t.DEBUG_CONSOLE_CONTAINER_ID="debug-console",t.TEST_RESULT_CONTAINER_ID="test-result",t.DEBUG_CONTAINER_ID="debug",t.EXPLORER_CONTAINER_ID="explorer",t.SEARCH_CONTAINER_ID="search",t.SCM_CONTAINER_ID="scm",t.EXTENSION_CONTAINER_ID="extension"},10797:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ClientElectronCommonContribution=void 0;const n=e(85608),r=e(76003),o=e(43718),l=e(64102),_=e(39496),v=e(11050);let m=class{registerMenus(s){s.registerMenubarItem(_.MenuId.MenubarAppMenu,{label:(0,o.localize)("app.name",this.appConfig.appName),order:0}),s.registerMenuItems(_.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"}]),s.registerMenuItems(_.MenuId.MenubarAppMenu,[{command:{id:"electron.quit",label:(0,o.localize)("app.quit")},nativeRole:"quit",group:"4_quit"}])}};t.ClientElectronCommonContribution=m,n.__decorate([(0,r.Autowired)(v.AppConfig),n.__metadata("design:type",Object)],m.prototype,"appConfig",void 0),t.ClientElectronCommonContribution=m=n.__decorate([(0,o.Domain)(l.MenuContribution)],m)},66963:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=e(85608);n.__exportStar(e(14109),t),n.__exportStar(e(34505),t),n.__exportStar(e(66549),t),n.__exportStar(e(98881),t)},17821:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ClientWebCommonContribution=void 0;const n=e(85608),r=e(43718),o=e(64102),l=e(39496),_=e(14109);let v=class{registerMenus(p){p.registerMenuItems(l.MenuId.MenubarEditMenu,[{command:_.EDITOR_COMMANDS.REDO.id,group:"1_undo"},{command:_.EDITOR_COMMANDS.UNDO.id,group:"1_undo"}]),p.registerMenuItem(l.MenuId.MenubarHelpMenu,{command:{id:_.COMMON_COMMANDS.ABOUT_COMMAND.id,label:_.COMMON_COMMANDS.ABOUT_COMMAND.label},nativeRole:"about",group:"0_about"})}};t.ClientWebCommonContribution=v,t.ClientWebCommonContribution=v=n.__decorate([(0,r.Domain)(o.MenuContribution)],v)},25918:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TitleActionList=t.InlineActionWidget=t.MenuActionList=void 0,t.InlineActionBar=d,t.InlineMenuBar=y;const n=e(85608),r=n.__importDefault(e(53373)),o=n.__importStar(e(14041)),l=e(97267),_=e(45803),v=e(43718),m=e(93899),p=e(48560),s=e(79951),g=e(55693),a=n.__importDefault(e(17647)),h=n.__importDefault(e(54859)),u=({data:b,hasSubmenu:A,disabled:S,iconService:D,hasChecked:I})=>o.default.createElement("div",{className:(0,r.default)(h.default.menuAction,{[h.default.disabled]:S,[h.default.checked]:b.checked})},o.default.createElement("div",{className:(0,r.default)({[h.default.icon]:I})},b.checked?o.default.createElement(l.Icon,{icon:"check"}):null),o.default.createElement("div",{className:h.default.label},b.label?(0,s.transformLabelWithCodicon)(v.strings.mnemonicButtonLabel(b.label,!0),{margin:"0 3px"},D?.fromString.bind(D)):""),o.default.createElement("div",{className:h.default.tip},b.keybinding?o.default.createElement("div",{className:h.default.shortcut},b.keybinding):null,A?o.default.createElement("div",{className:h.default.submenuIcon},o.default.createElement(l.Icon,{icon:"right"})):null,!b.keybinding&&!A&&b.extraDesc&&o.default.createElement("div",{className:h.default.extraDesc},b.extraDesc))),c=({data:b=[],context:A=[],afterClick:S,style:D,iconService:I,renderSubMenuTitle:w,renderMenuItem:T})=>{if(!b.length)return null;const R=o.default.useCallback(k=>{const{key:F,item:L}=k;if([m.SeparatorMenuItemNode.ID,m.SubmenuItemNode.ID].includes(F))return;const U=(Array.isArray(L.props.children)?L.props.children[0]:L.props.children).props.data;U&&(typeof U.execute=="function"&&U.execute(A),typeof S=="function"&&S(U))},[b,A]),P=o.default.useCallback((k,F)=>{if(w){const L=w(k,{hasSubmenu:!0,disabled:!1});if(L)return L}return o.default.createElement(u,{hasChecked:F,hasSubmenu:!0,data:k,iconService:I})},[w]),O=o.default.useCallback((k,F)=>{if(T){const L=T(k,{hasSubmenu:!1,disabled:k.disabled});if(L)return L}return o.default.createElement(u,{hasChecked:F,data:k,disabled:k.disabled,iconService:I})},[T]),M=o.default.useCallback(k=>{const F=k.some(L=>L.checked);return k.map((L,B)=>{if(L.id===m.SeparatorMenuItemNode.ID)return null;const U=k[B+1]&&k[B+1].id===m.SeparatorMenuItemNode.ID;return L.id===m.SubmenuItemNode.ID?!Array.isArray(L.children)||!L.children.length?null:o.default.createElement(o.default.Fragment,{key:`${L.id}-${L.submenuId}-${B}`},o.default.createElement(_.Menu.SubMenu,{key:`${L.id}-${L.submenuId}-${B}`,className:h.default.submenuItem,popupClassName:"kt-menu",title:P(L,F)},M(L.children)),U?o.default.createElement(_.Menu.Divider,{key:`divider-${B}`,className:h.default.menuItemDivider}):null):o.default.createElement(o.default.Fragment,{key:`${L.id}-${B}`},o.default.createElement(_.Menu.Item,{id:`${L.id}-${B}`,key:`${L.id}-${B}`,className:h.default.menuItem,disabled:L.disabled},O(L,F)),U?o.default.createElement(_.Menu.Divider,{key:`divider-${B}`,className:h.default.menuItemDivider}):null)})},[]);return o.default.createElement(_.Menu,{className:"kt-menu",selectable:!1,motion:{motionLeave:!1,motionEnter:!1},builtinPlacements:a.default,onClick:R,style:D},M(b))};t.MenuActionList=c;const E=({type:b,icon:A,disabled:S,onClick:D,title:I})=>{const w=(0,g.useDesignStyles)(h.default.btnAction,"btnAction");if(b==="icon")return o.default.createElement(l.Button,{size:"small",type:b,className:w,onClick:D,title:I,icon:A||"ellipsis"});const T={};return(0,v.isBoolean)(S)&&(T.disabled=S),o.default.createElement(l.Button,{size:"small",type:"secondary",className:w,onClick:D,...T,title:I},o.default.createElement(l.Icon,{icon:A||"ellipsis"}))};E.displayName="EllipsisWidget",t.InlineActionWidget=o.default.memo(({iconService:b,type:A="icon",data:S,context:D=[],className:I,afterClick:w,...T})=>{const R=(0,g.useDesignStyles)(h.default.iconAction,"iconAction"),P=(0,g.useDesignStyles)(h.default.btnAction,"btnAction"),[O,M]=(0,o.useState)(!1),k=o.default.useCallback(async(U,...W)=>{if(U&&(U.preventDefault(),U.stopPropagation()),!O){if(M(!0),S.id===m.SubmenuItemNode.ID&&U){const j={x:U.clientX,y:U.clientY};await S.execute([j,...D])}else typeof S.execute=="function"&&await S.execute([...D,...W]);M(!1),typeof w=="function"&&w()}},[S,D]),[F,L]=o.default.useMemo(()=>{let U=S.tooltip||S.label;const W=S.label;return S.keybinding&&(U=`${U} (${S.keybinding})`),[U,W]},[S]),B=S.id===m.SubmenuItemNode.ID;return A==="icon"&&!S.type?o.default.createElement(l.Button,{type:S.icon?"icon":"link",className:(0,r.default)(R,I,{[h.default.disabled]:S.disabled,[h.default.submenuIconAction]:B}),title:F,iconClass:S.icon,onClick:k,...T},!S.icon&&L):S.type==="checkbox"?o.default.createElement(l.CheckBox,{className:(0,r.default)(I,P),disabled:S.disabled,label:S.label,title:F,checked:S.checked,onChange:U=>k(void 0,U.target.checked),...T}):o.default.createElement(l.Button,{loading:O,showLoadingIcon:!1,className:(0,r.default)(I,P),disabled:S.disabled,onClick:k,size:"small",type:S.type,title:F,...T},(0,s.transformLabelWithCodicon)(L,{margin:"0 3px"},b?.fromString.bind(b)),B&&o.default.createElement(l.Icon,{icon:"down",className:"kt-button-secondary-more"}))}),t.InlineActionWidget.displayName="InlineAction";const f=({data:b,context:A})=>{const S=o.default.useCallback(()=>b.getExecuteArgs(A),[b,A]);return o.default.createElement(b.component,{getExecuteArgs:S})};f.displayName="CustomAction",t.TitleActionList=o.default.memo(({type:b="icon",nav:A=[],more:S=[],moreIcon:D,moreTitle:I,context:w=[],extraNavActions:T=[],moreAtFirst:R=!1,className:P,afterClick:O,menuId:M,iconService:k,regroup:F=(...L)=>L})=>{const L=(0,p.useInjectable)(m.ICtxMenuRenderer),B=(0,p.useInjectable)(m.AbstractMenuService),U=(0,g.useDesignStyles)(h.default.titleActions,"titleActions"),[W,j]=F(A,S),Q=o.default.useCallback(Z=>{Z.preventDefault(),Z.stopPropagation(),j&&L.show({anchor:{x:Z.clientX,y:Z.clientY},menuNodes:j,args:w,onHide:O})},[j,w]);if(W.length===0&&j.length===0&&T.length===0)return null;const G=j.length>0?o.default.createElement(E,{disabled:j[0].disabled,icon:D,type:b,onClick:Q,title:I}):null;return o.default.createElement("div",{className:(0,r.default)([U,P]),"data-menu-id":M},R&&G,W.map(Z=>{if(Z.id===m.ComponentMenuItemNode.ID)return o.default.createElement(f,{context:w,data:Z,key:Z.nodeId});if(Z.id===m.SubmenuItemNode.ID){const V=B.createMenu(Z.submenuId);if(!((0,m.generateMergedCtxMenu)({menus:V}).length>0))return}if(Z.id===m.SeparatorMenuItemNode.ID)return o.default.createElement("span",{key:`vertical-divider-${Z.id}`,className:h.default.verticalDivider});const $=Z.id===m.SubmenuItemNode.ID?Z.submenuId:Z.id;return o.default.createElement(t.InlineActionWidget,{id:$,key:$,className:(0,r.default)({[h.default.selected]:Z.checked}),type:b,data:Z,afterClick:O,context:w,iconService:k})}),Array.isArray(T)&&T.length?o.default.createElement(o.default.Fragment,null,W.length&&o.default.createElement("span",{className:h.default.divider}),T):null,!R&&G)}),t.TitleActionList.displayName="TitleActionList";function d(b){const{menus:A,context:S,separator:D="navigation",debounce:I,isFlattenMenu:w=!1,...T}=b,[R,P]=(0,g.useMenus)(A,D,S,I),O=(0,o.useMemo)(()=>w?[...R,...P]:R,[R,P,w]);return o.default.createElement(t.TitleActionList,{menuId:A.menuId,nav:O,more:D==="inline"||w?[]:P,...T})}function y(b){const{iconService:A,menus:S,context:D,moreIcon:I,moreTitle:w,separator:T="navigation",...R}=b,[P,O]=(0,g.useContextMenus)(S);return o.default.createElement(t.TitleActionList,{menuId:S.menuId,nav:P,more:T==="inline"?[]:O,moreIcon:I,moreTitle:w,context:D,iconService:A,...R})}y.displayName="InlineMenuBar"},17647:(x,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.placements=void 0;const e={adjustX:1,adjustY:1},n=[0,0];t.placements={topLeft:{points:["bl","tl"],overflow:e,offset:[0,-4],targetOffset:n},topCenter:{points:["bc","tc"],overflow:e,offset:[0,-4],targetOffset:n},topRight:{points:["br","tr"],overflow:e,offset:[0,-4],targetOffset:n},bottomLeft:{points:["tl","bl"],overflow:e,offset:[0,4],targetOffset:n},bottomCenter:{points:["tc","bc"],overflow:e,offset:[0,4],targetOffset:n},bottomRight:{points:["tr","br"],overflow:e,offset:[0,4],targetOffset:n}},t.default=t.placements},89847:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AIAction=void 0;const n=e(85608),r=n.__importDefault(e(53373)),o=n.__importStar(e(14041)),l=e(43718),_=e(70650),v=e(22689),m=e(48560),p=e(57995),s=e(24951),g=e(49716),a=e(52141),h=n.__importDefault(e(27410)),u=(0,v.createLayoutEventType)(l.AIInlineChatContentWidgetId),c=new CustomEvent(u,{bubbles:!0}),E=f=>{const{operationList:d,moreOperation:y,showClose:b=!0,onClickItem:A,onClose:S,customOperationRender:D,loading:I,loadingShowOperation:w=!1}=f,T=o.default.useRef(null),[R,P]=(0,m.useHover)(),O=(0,m.useInjectable)(_.AINativeConfigService),M=(0,o.useCallback)(()=>{S?.()},[S]);(0,m.useChange)(P,()=>{var B;(B=T.current)===null||B===void 0||B.dispatchEvent(c)});const k=(0,o.useMemo)(()=>{const B=O?.inlineChat.logo;return typeof B=="string"?o.default.createElement("img",{src:B,className:h.default.ai_action_icon}):o.default.isValidElement(B)?B:typeof B=="function"?o.default.createElement(B,null):null},[O?.inlineChat.logo]),F=(0,o.useCallback)(()=>I&&w?o.default.createElement("div",{className:h.default.loading_mask}):null,[I,w]),L=(0,o.useCallback)(()=>{if(I&&!w)return null;const B=o.default.createElement(o.default.Fragment,null,d?.map(({name:U,title:W,id:j},Q)=>W?o.default.createElement(a.EnhancePopover,{id:j,title:W,key:`popover_${Q}`},o.default.createElement(p.EnhanceIcon,{wrapperClassName:h.default.operate_item,onClick:()=>A?.(j)},o.default.createElement("span",{key:Q},U))):o.default.createElement(p.EnhanceIcon,{wrapperClassName:h.default.operate_item,onClick:()=>A?.(j),key:Q},o.default.createElement("span",null,U))),y?.length?o.default.createElement(p.EnhanceIconWithCtxMenu,{icon:"more",menuNodes:y,wrapperClassName:h.default.operate_btn,skew:{x:-83,y:5}}):null);return o.default.createElement("div",{ref:R,className:h.default.operate_container},F(),k&&o.default.createElement(s.LineVertical,{height:"100%",margin:"0 8px",maxHeight:14,minHeight:14}),D?o.default.createElement("div",{className:h.default.custom_operation_wrapper},D):o.default.createElement("div",{className:h.default.default_operation_wrapper},B))},[D,d,y,I,w,k]);return o.default.createElement("div",{ref:T,className:(0,r.default)(h.default.ai_action_wrapper,I&&h.default.loading,w&&h.default.loading_show_operation)},o.default.createElement(o.default.Fragment,null,o.default.createElement("div",{className:h.default.stable_container},I?o.default.createElement(a.EnhancePopover,{id:"inline_chat_loading",title:(0,l.localize)("aiNative.inline.chat.operate.loading.cancel")},o.default.createElement(g.Loading,{className:h.default.loading_icon})):k?o.default.createElement("div",{className:h.default.logo_container},k):null),L(),b&&o.default.createElement("div",{className:h.default.close_container},o.default.createElement(s.LineVertical,{height:"100%",margin:"0px 8px",maxHeight:14,minHeight:14}),o.default.createElement(p.EnhanceIcon,{wrapperClassName:h.default.operate_btn,icon:"window-close",onClick:M}))))};t.AIAction=E},66205:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ContentWidgetContainerPanel=void 0;const n=e(85608),r=n.__importDefault(e(14041)),o=n.__importDefault(e(41771)),l=_=>r.default.createElement("div",{className:o.default.inline_chat_container_panel,style:_.style},_.children);t.ContentWidgetContainerPanel=l},57995:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AILogoAvatar=t.EnhanceIconWithCtxMenu=t.EnhanceIcon=void 0;const n=e(85608),r=n.__importDefault(e(53373)),o=n.__importStar(e(14041)),l=e(43718),_=e(81878),v=e(97222),m=e(48560),p=n.__importDefault(e(42798));t.EnhanceIcon=o.default.forwardRef((a,h)=>o.default.createElement("div",{className:(0,r.default)(a.wrapperClassName,p.default.ai_enhance_icon),style:a.wrapperStyle,onClick:a.onClick,ref:h,tabIndex:a.tabIndex,role:a.role,"aria-label":a.ariaLabel,"aria-pressed":a.ariaPressed},o.default.createElement(_.Icon,{className:(0,r.default)(a.className,p.default.icon),children:null,onClick:()=>null,style:(a.icon||a.iconClass)&&a.children?{marginRight:5}:{},icon:a.icon,iconClass:a.iconClass}),a.children&&o.default.createElement("span",{className:p.default.children_wrap},a.children)));const s=a=>{const{children:h,menuNodes:u,skew:c,id:E,...f}=a,d=(0,m.useInjectable)(l.CommandService),y=(0,m.useInjectable)(v.IBrowserCtxMenu),[b,A]=o.default.useState(void 0),S=o.default.useRef(null);o.default.useEffect(()=>{D()},[S.current,c]);const D=(0,o.useCallback)(w=>{requestAnimationFrame(()=>{if(S.current){const T=S.current.getBoundingClientRect(),{x:R,y:P,width:O,height:M}=T,k={x:R+O,y:P+M};c&&(k.x+=c.x,k.y+=c.y),A(k),w&&w(k)}})},[S.current,c]),I=o.default.useCallback(()=>{b&&(u?D(w=>{y.show({anchor:w,menuNodes:u})}):E&&d.executeCommand(E))},[S.current,u,b,E]);return o.default.createElement(t.EnhanceIcon,{ref:S,onClick:I,...f},h)};t.EnhanceIconWithCtxMenu=s;const g=a=>o.default.createElement("div",{className:(0,r.default)(p.default.ai_logo_avatar_container,a.className)},o.default.createElement(_.Icon,{icon:"magic-wand",className:(0,r.default)(a.iconClassName,p.default.avatar_icon)}));t.AILogoAvatar=g},89195:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=e(85608);n.__exportStar(e(89847),t),n.__exportStar(e(57995),t),n.__exportStar(e(28229),t),n.__exportStar(e(24951),t),n.__exportStar(e(52141),t),n.__exportStar(e(75777),t),n.__exportStar(e(49716),t),n.__exportStar(e(83913),t)},28229:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AIInlineResult=void 0;const n=e(85608),r=n.__importDefault(e(53373)),o=n.__importDefault(e(14041)),l=e(57995),_=e(24951),v=e(75777),m=n.__importDefault(e(5011)),p=s=>{const{iconItems:g,isRenderThumbs:a=!0,isRenderClose:h=!1,closeClick:u}=s;return o.default.createElement("div",{className:m.default.ai_inline_result_panel},o.default.createElement("div",{className:m.default.side},g.map(({icon:c,text:E,onClick:f,btnType:d},y)=>o.default.createElement(l.EnhanceIcon,{wrapperClassName:(0,r.default)(m.default.operate_btn,d==="default"?m.default.default:""),icon:c,onClick:f,key:y},o.default.createElement("span",null,E)))),a&&o.default.createElement(o.default.Fragment,null,o.default.createElement(_.LineVertical,{height:"60%",margin:"0px 6px 0 6px"}),o.default.createElement("div",{className:m.default.side},o.default.createElement(v.Thumbs,{wrapperClassName:m.default.operate_icon}))),h&&o.default.createElement(o.default.Fragment,null,o.default.createElement(l.EnhanceIcon,{wrapperClassName:m.default.operate_btn,icon:"close",onClick:u})))};t.AIInlineResult=p},83913:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.InteractiveInput=void 0;const n=e(85608),r=n.__importDefault(e(53373)),o=n.__importStar(e(14041)),l=e(97267),_=e(43718),v=e(37015),m=e(48560),p=e(7369),s=e(89195),g=n.__importDefault(e(42348)),a=160,h=32,u="ai-native-chat-input-history",c=10;t.InteractiveInput=o.default.forwardRef((E,f)=>{const{placeholder:d,onKeyDown:y,onBlur:b,onValueChange:A,onHeightChange:S,onFocus:D,onSend:I,onStop:w,disabled:T=!1,className:R,height:P,width:O,sendBtnClassName:M,popoverPosition:k,autoFocus:F,defaultValue:L}=E,B=(0,o.useRef)(null),U=(0,m.useInjectable)(p.GlobalBrowserStorageService),W=(0,o.useRef)(),j=(0,o.useRef)(0),[Q,G]=(0,o.useState)(L||E.value||""),[Z,$]=(0,o.useState)(P||h),[V,H]=(0,o.useState)(!1),K=o.default.useRef(!1);(0,o.useImperativeHandle)(f,()=>B.current),(0,o.useEffect)(()=>{const ue=U.getData(u);ue&&(W.current=ue)},[]),(0,o.useEffect)(()=>{B&&B.current&&F&&B.current.focus()},[B]),(0,o.useEffect)(()=>{var ue;const te=E.value;(0,_.isUndefined)(te)||te!==((ue=B.current)===null||ue===void 0?void 0:ue.value)&&G(te||"")},[E.value,Q,B]),(0,o.useEffect)(()=>{(0,_.isUndefined)(P)||P!==Z&&$(P)},[P,Z,S]),(0,o.useEffect)(()=>{if(!Q){$(h);return}if(B&&B.current&&Z<=a){B.current.style.height="0px";const ue=B.current.scrollHeight;B.current.style.height=Math.min(ue,a)+"px";const te=Math.min(ue+12,a);$(te)}},[B,Q,S,Z]),(0,o.useEffect)(()=>{S?.(Z)},[Z]);const Y=(0,o.useCallback)(ue=>{K.current=!0,G(ue),A?.(ue)},[A]),X=(0,o.useCallback)(ue=>{H(!0),D?.(ue)},[D]),oe=(0,o.useCallback)(ue=>{H(!1),b?.(ue)},[b]),ie=(0,o.useCallback)(()=>{w&&w()},[]),he=(0,o.useCallback)(()=>{T||Q.trim()&&(W.current=W.current||[],W.current.push(Q),j.current=0,U.setData(u,W.current.slice(-c)),K.current=!1,I?.(Q))},[I,Q,T]),me=(0,o.useCallback)(ue=>{var te,fe,Ie;if(ue.key===v.Key.ENTER.code&&!ue.nativeEvent.isComposing){if(ue.shiftKey)return;ue.preventDefault(),he();return}else if((ue.key===v.Key.ARROW_UP.code||ue.key===v.Key.ARROW_DOWN.code)&&(!Q||!K.current)){if(ue.preventDefault(),ue.key===v.Key.ARROW_UP.code){const Me=(te=W.current)===null||te===void 0?void 0:te[W.current.length-1-j.current];Me&&(G(Me),A?.(Me),j.current=Math.min(j.current+1,((fe=W.current)===null||fe===void 0?void 0:fe.length)||0))}else if(ue.key===v.Key.ARROW_DOWN.code){ue.preventDefault();const Me=(Ie=W.current)===null||Ie===void 0?void 0:Ie[W.current.length-1-j.current];Me&&(G(Me),A?.(Me),j.current=Math.max(j.current-1,0))}}y?.(ue)},[y,he,Q]),q=(0,o.useMemo)(()=>o.default.createElement("div",{className:g.default.input_icon_container},o.default.createElement("div",{className:(0,r.default)(g.default.send_chat_btn,V&&g.default.active,T&&g.default.disabled,M)},T?w?o.default.createElement(l.Popover,{id:`ai_chat_input_send_${(0,_.uuid)(4)}`,content:(0,_.localize)("aiNative.chat.enter.send"),delay:1500,position:k??l.PopoverPosition.top,disable:T},o.default.createElement(s.EnhanceIcon,{wrapperClassName:g.default.stop_icon,className:"codicon codicon-debug-stop",onClick:ie,tabIndex:0,role:"button",ariaLabel:(0,_.localize)("aiNative.chat.enter.send")})):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(l.Popover,{id:`ai_chat_input_send_${(0,_.uuid)(4)}`,content:(0,_.localize)("aiNative.chat.enter.send"),delay:1500,position:k??l.PopoverPosition.top,disable:T},o.default.createElement(s.EnhanceIcon,{wrapperClassName:g.default.send_icon,className:(0,l.getIcon)("send-solid"),onClick:he,tabIndex:0,role:"button",ariaLabel:(0,_.localize)("aiNative.chat.enter.send")})))),[V,T,M,Q,k]),Ee=(0,o.useMemo)(()=>(0,_.isUndefined)(O)?"100%":O+"px",[O]);return o.default.createElement(l.TextArea,{ref:B,placeholder:d,wrapperStyle:{height:Z+"px",width:Ee},style:{height:Z-10+"px"},value:Q,onKeyDown:me,onFocus:X,onBlur:oe,onValueChange:Y,disabled:T,className:(0,r.default)(g.default.interactive_input_container,V?g.default.active:null,R),addonAfter:q})}),t.InteractiveInput.displayName="interactiveInput"},24951:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.HorizontalVertical=t.LineVertical=void 0;const r=e(85608).__importDefault(e(14041)),o={backgroundColor:"var(--editorGroup-border)",height:"100%",width:"1px",minWidth:"1px"},l={backgroundColor:"var(--editorGroup-border)",width:"100%",height:"1px",minHeight:"1px"},_=m=>r.default.createElement("span",{style:{...o,...m}});t.LineVertical=_;const v=m=>r.default.createElement("span",{style:{...l,...m}});t.HorizontalVertical=v},49716:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Loading=void 0;const n=e(85608),r=n.__importDefault(e(53373)),o=n.__importDefault(e(14041)),l=e(97267),_=n.__importDefault(e(43135));t.Loading=o.default.memo(v=>o.default.createElement(l.Icon,{className:(0,r.default)(v.className,_.default.loading_indicator),iconClass:(0,l.getIcon)("loading")})),t.Loading.displayName="Loading"},52141:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EnhancePopover=void 0;const r=e(85608).__importStar(e(14041)),o=e(97267),l=e(43718),_=v=>{const{children:m,id:p,title:s,onClick:g}=v,[a,h]=r.default.useState(!1),u=(0,r.useMemo)(()=>p+(0,l.uuid)(6),[p]),c=(0,r.useCallback)(f=>{h(!1),g&&g(f)},[g]),E=(0,r.useCallback)(f=>{h(f)},[]);return r.default.createElement(o.Popover,{id:u,title:s,onClick:c,display:a,onDisplayChange:E},m)};t.EnhancePopover=_},75777:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Thumbs=void 0;const r=e(85608).__importStar(e(14041)),o=e(43718),l=e(95040),_=e(81878),v=e(48560),m=e(67304),p=e(57995),s=g=>{const a=(0,v.useInjectable)(l.IAIInlineChatService),{relationId:h,onClick:u,wrapperClassName:c}=g,[E,f]=(0,r.useState)("thumbs"),[d,y]=(0,r.useState)("thumbsdown"),b=(0,r.useCallback)(D=>{u&&u(D),a&&a.fireThumbsEvent(D)},[h,a]),A=(0,r.useCallback)(D=>{D==="up"&&E==="thumbs"&&(f("thumbs-fill"),y(!1),b(!0)),D==="up"&&E==="thumbs-fill"&&(f("thumbs"),y("thumbsdown")),D==="down"&&d==="thumbsdown"&&(y("thumbsdown-fill"),f(!1),b(!1)),D==="down"&&d==="thumbsdown-fill"&&(y("thumbsdown"),f("thumbs"))},[E,d]),S=(0,v.useUUID)();return r.default.createElement(r.default.Fragment,null,typeof E=="string"&&r.default.createElement(_.Popover,{id:`ai-chat-thumbsup-${S}`,title:(0,o.localize)("aiNative.inline.chat.operate.thumbsup.title")},r.default.createElement(p.EnhanceIcon,{wrapperClassName:c,onClick:()=>A("up"),className:(0,m.getExternalIcon)(E,m.KTICON_OWNER),tabIndex:0,role:"button",ariaLabel:(0,o.localize)("aiNative.inline.chat.operate.thumbsup.title"),ariaPressed:E==="thumbs-fill"?"true":"false"})),typeof d=="string"&&r.default.createElement(_.Popover,{id:`ai-chat-thumbsdown-${S}`,title:(0,o.localize)("aiNative.inline.chat.operate.thumbsdown.title")},r.default.createElement(p.EnhanceIcon,{wrapperClassName:c,onClick:()=>A("down"),className:(0,m.getExternalIcon)(d,m.KTICON_OWNER),tabIndex:0,role:"button",ariaLabel:(0,o.localize)("aiNative.inline.chat.operate.thumbsdown.title"),ariaPressed:d==="thumbsdown-fill"?"true":"false"})))};t.Thumbs=s},81878:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Scroll=t.Scrollbars=t.NativeSelect=void 0;const n=e(85608);n.__exportStar(e(97885),t),n.__exportStar(e(73215),t),n.__exportStar(e(32293),t);var r=e(77331);Object.defineProperty(t,"NativeSelect",{enumerable:!0,get:function(){return r.Select}}),n.__exportStar(e(48412),t),n.__exportStar(e(79383),t),n.__exportStar(e(50708),t),n.__exportStar(e(7273),t),n.__exportStar(e(14640),t),n.__exportStar(e(54076),t),n.__exportStar(e(79024),t),n.__exportStar(e(89832),t),n.__exportStar(e(54713),t),n.__exportStar(e(18875),t),n.__exportStar(e(91397),t),n.__exportStar(e(31059),t),n.__exportStar(e(72871),t),n.__exportStar(e(34128),t);var o=e(77011);Object.defineProperty(t,"Scrollbars",{enumerable:!0,get:function(){return o.Scrollbars}}),Object.defineProperty(t,"Scroll",{enumerable:!0,get:function(){return o.Scrollbars}})},57327:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BoxPanel=void 0;const n=e(85608),r=n.__importDefault(e(53373)),o=n.__importStar(e(14041)),l=e(48560),_=e(38578),v=e(55693),m=e(25719),p=n.__importDefault(e(91290)),s=({className:g,children:a=[],direction:h="left-to-right",...u})=>{const c=o.default.Children.toArray(a),E=(0,l.useInjectable)(_.AppConfig),f=(0,v.useDesignStyles)(p.default["box-panel"],"box-panel");(0,o.useEffect)(()=>{E.didRendered&&E.didRendered()},[]);const d=m.Layout.getStyleProperties(h);return o.default.createElement("div",{...u,className:(0,r.default)(f,g),style:{flexDirection:d.direction,zIndex:u.zIndex||u["z-index"]}},c.map((y,b)=>{const A=y.props||{};return o.default.createElement("div",{key:b,id:A["data-wrapper-id"],className:(0,r.default)(p.default.wrapper,A["data-wrapper-class"]),style:{flex:A.flex,overflow:A.overflow,zIndex:A.zIndex||A["z-index"],[d.minSize]:A.defaultSize,backgroundColor:A.backgroundColor}},y)}))};t.BoxPanel=s},28003:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DefaultLayout=t.getStorageValue=void 0,t.ToolbarActionBasedLayout=m,t.fixLayout=p;const r=e(85608).__importDefault(e(14041)),o=e(52564),l=e(57327),_=e(99333),v=()=>{let s={},g={};try{const a=localStorage.getItem("layout");a&&(s=JSON.parse(a));const h=localStorage.getItem("theme");h&&(g=JSON.parse(h))}catch{}return{layout:p(s),colors:g}};t.getStorageValue=v,t.DefaultLayout=m;function m(s={}){var g,a,h,u,c,E;const{layout:f}=(0,t.getStorageValue)();return r.default.createElement(l.BoxPanel,{direction:"top-to-bottom"},r.default.createElement(o.SlotRenderer,{id:"top",defaultSize:s.topSlotDefaultSize||0,slot:"top",zIndex:s.topSlotZIndex}),r.default.createElement(_.SplitPanel,{id:"main-horizontal",flex:1},r.default.createElement(o.SlotRenderer,{slot:o.SlotLocation.view,isTabbar:!0,defaultSize:!((g=f.left)===null||g===void 0)&&g.currentId?((a=f.left)===null||a===void 0?void 0:a.size)||310:49,minResize:280,maxResize:480,minSize:49}),r.default.createElement(_.SplitPanel,{id:"main-vertical",minResize:300,flexGrow:1,direction:"top-to-bottom"},r.default.createElement(o.SlotRenderer,{flex:2,flexGrow:1,minResize:200,slot:"main"}),r.default.createElement(o.SlotRenderer,{flex:1,defaultSize:!((h=f.bottom)===null||h===void 0)&&h.currentId?(u=f.bottom)===null||u===void 0?void 0:u.size:24,minResize:160,slot:o.SlotLocation.panel,isTabbar:!0})),r.default.createElement(o.SlotRenderer,{slot:o.SlotLocation.extendView,isTabbar:!0,defaultSize:!((c=f.right)===null||c===void 0)&&c.currentId?((E=f.right)===null||E===void 0?void 0:E.size)||310:0,minResize:280,maxResize:480,minSize:0})),r.default.createElement(o.SlotRenderer,{id:"statusBar",defaultSize:24,slot:"statusBar"}))}function p(s){const g={...s};for(const a in s)!s[a]||a==="containerLocations"||s[a].size||(g[a].currentId="");return g}},32293:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=e(85608);n.__exportStar(e(25719),t),n.__exportStar(e(99333),t),n.__exportStar(e(57327),t),n.__exportStar(e(28003),t)},25719:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Layout=void 0;const n=e(73215),r={"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(l){function _(u){return r[u]}l.getStyleProperties=_;function v(u){return r[u].direction}l.getFlexDirection=v;function m(u){return r[u].size}l.getSizeProperty=m;function p(u){return r[u].domSize}l.getDomSizeProperty=p;function s(u){return r[u].minSize}l.getMinSizeProperty=s;function g(u){return r[u].maxSize}l.getMaxSizeProperty=g;function a(u){return u==="bottom-to-top"||u==="top-to-bottom"?n.ResizeHandleVertical:n.ResizeHandleHorizontal}l.getResizeHandle=a;function h(u){return u==="bottom-to-top"||u==="top-to-bottom"?"row":"column"}l.getTabbarDirection=h})(o||(t.Layout=o={}))},99333:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SplitPanel=t.PanelContext=void 0;const n=e(85608),r=n.__importDefault(e(53373)),o=n.__importDefault(e(14041)),l=e(43718),_=e(68456),v=e(48560),m=e(73215),p=e(25719),s=e(71707),g=n.__importDefault(e(91290));t.PanelContext=o.default.createContext({setSize:(c,E)=>{},setRelativeSize:(c,E,f)=>{},getSize:c=>0,getRelativeSize:c=>[0,0],lockSize:(c,E)=>{},setMaxSize:(c,E)=>{},hidePanel:c=>{}});const a=(c,E,f)=>{var d,y;return(y=c&&c.props&&((d=c.props[E])!==null&&d!==void 0?d:c.props[`data-sp-${E}`]))!==null&&y!==void 0?y:f};function h(c,E){return a(c,"savedSize")?a(c,"savedSize")+"px":a(c,"defaultSize")!==void 0?a(c,"defaultSize")+"px":a(c,"flex")?a(c,"flex")/E*100+"%":1/E*100+"%"}const u=c=>{const E=(0,v.useInjectable)(s.SplitPanelManager).getService(c.id),{id:f,className:d,headerSize:y,resizeHandleClassName:b,style:A,children:S=[],direction:D="left-to-right",resizeKeep:I=!0,dynamicTarget:w}=o.default.useMemo(()=>E.interceptProps(c),[E,E.interceptProps,c]),T=p.Layout.getResizeHandle(D),R=p.Layout.getStyleProperties(D),P=o.default.useMemo(()=>o.default.Children.toArray(S),[S]),O=o.default.useMemo(()=>P.find(ue=>a(ue,"flexGrow")),[P]),M=o.default.useMemo(()=>P.reduce((ue,te)=>ue+a(te,"flex",1),0),[P]),k=o.default.useRef([]),F=(0,v.useInjectable)(l.IEventBus),L=o.default.useRef(),B=o.default.useRef(P.map(()=>!1)),U=o.default.useRef(P.map(()=>!1)),W=o.default.useRef(B.current.slice(0,P.length-1)),[j,Q]=o.default.useState(W.current),[G,Z]=o.default.useState(U.current),[$,V]=o.default.useState(B.current);E.panels=[];const H=o.default.useCallback(ue=>(te,fe)=>{const Ie=fe?ue-1:ue,Me=k.current[Ie];Me&&Me.setAbsoluteSize(te!==void 0?te:a(P[ue],"defaultSize"),fe,I)},[k.current]),K=o.default.useCallback(ue=>(te,fe,Ie)=>{const Me=Ie?ue-1:ue,Be=k.current[Me];Be&&Be.setRelativeSize(te,fe)},[k.current]),Y=o.default.useCallback(ue=>te=>{const fe=te?ue-1:ue,Ie=k.current[fe];return Ie?Ie.getAbsoluteSize(te):0},[k.current]),X=o.default.useCallback(ue=>te=>{const fe=te?ue-1:ue,Ie=k.current[fe];return Ie?Ie.getRelativeSize():[0,0]},[k.current]),oe=o.default.useCallback(ue=>(te,fe)=>{const Ie=fe?ue-1:ue,Me=W.current.map((Be,Pe)=>Pe===Ie?te!==void 0?te:!Be:Be);W.current=Me,Q(Me)},[k.current]),ie=o.default.useCallback(ue=>te=>{const fe=B.current.map((Ie,Me)=>Me===ue?te!==void 0?te:!Ie:Ie);B.current=fe,V(fe)},[k.current]),he=o.default.useCallback(ue=>te=>{const fe=U.current.map((Me,Be)=>Be===ue?te!==void 0?!te:!Me:Me);U.current=fe;const Ie=a(P[ue],"slot")||a(P[ue],"id");Ie&&me(Ie),Z(fe)},[P,U.current]),me=o.default.useCallback(ue=>{ue&&(F.fire(new _.ResizeEvent({slotLocation:ue})),F.fireDirective(_.ResizeEvent.createDirective(ue)))},[F]),q=o.default.useMemo(()=>P.map((ue,te)=>{const fe=[],Ie=a(ue,"minSize"),Me=a(ue,"maxSize"),Be=a(ue,"flexGrow");if(te!==0){const Pe=te===1?P[te-1]:P[te];let we;Be?we=m.ResizeFlexMode.Prev:a(P[te-1],"flexGrow")&&(we=m.ResizeFlexMode.Next),a(Pe,"noResize")||j[te-1]||fe.push(o.default.createElement(T,{className:b,onResize:()=>{const Ne=a(P[te-1],"slot")||a(P[te-1],"id"),Te=a(P[te],"slot")||a(P[te],"id");me(Ne),me(Te)},noColor:!0,findNextElement:w?Ne=>E.getFirstResizablePanel(te-1,Ne):void 0,findPrevElement:w?Ne=>E.getFirstResizablePanel(te-1,Ne,!0):void 0,key:`split-handle-${te}`,delegate:Ne=>{k.current.push(Ne)},flexMode:we}))}return fe.push(o.default.createElement(t.PanelContext.Provider,{key:te,value:{setSize:H(te),getSize:Y(te),setRelativeSize:K(te),getRelativeSize:X(te),lockSize:oe(te),setMaxSize:ie(te),hidePanel:he(te)}},o.default.createElement("div",{"data-min-resize":a(ue,"minResize"),"data-max-resize":a(ue,"maxResize"),ref:Pe=>{Pe&&E.panels.indexOf(Pe)===-1&&E.panels.push(Pe)},className:h(ue,M)===`${y}px`?m.RESIZE_LOCK:"",id:a(ue,"id"),style:{...a(ue,"flex")&&!a(ue,"savedSize")&&!O?{flex:a(ue,"flex")}:{[R.size]:h(ue,M)},[R.minSize]:Ie?Ie+"px":"-1px",[R.maxSize]:$[te]&&Me?Me+"px":"unset",...Be!==void 0?{flexGrow:Be}:{},display:G[te]?"none":"block"}},ue))),fe}).filter(Boolean),[S,P,b,w,k.current,G,j]);return o.default.useEffect(()=>{L.current&&E.setRootNode(L.current);const ue=F.onDirective(_.ResizeEvent.createDirective(f),()=>{P.forEach(te=>{me(a(te,"slot")||a(te,"id"))})});return()=>{ue.dispose()}},[]),o.default.useMemo(()=>{const{minResize:ue,flexGrow:te,minSize:fe,maxSize:Ie,savedSize:Me,defaultSize:Be,flex:Pe,noResize:we,slot:_e,headerSize:Ne,...Te}=c;return delete Te.resizeHandleClassName,delete Te.dynamicTarget,delete Te.resizeKeep,delete Te.direction,E.renderSplitPanel(o.default.createElement("div",{...Te,ref:We=>L.current=We,className:(0,r.default)(g.default["split-panel"],d),style:{flexDirection:R.direction,...A},"data-min-resize":ue,"data-max-resize":Ie,"data-min-size":fe,"data-max-size":Ie,"data-saved-size":Me,"data-default-size":Be,"data-header-size":Ne,"data-flex":Pe,"data-flex-grow":te,"data-no-resize":we,"data-slot":_e}),q,Te)},[E,E.renderSplitPanel,q,L,A,c])};t.SplitPanel=u},71707:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SplitPanelManager=t.SplitPanelService=t.ISplitPanelService=void 0;const n=e(85608),r=n.__importDefault(e(14041)),o=e(76003),l=e(43718),_=e(38578),v=e(73215);t.ISplitPanelService=Symbol("ISplitPanelService");let m=class extends l.Disposable{constructor(g){super(),this.panelId=g,this._whenReadyDeferred=new l.Deferred,this.panels=[]}get isVisible(){return this.rootNode&&this.rootNode.clientHeight>0||!1}get whenReady(){return this._whenReadyDeferred.promise}setRootNode(g){this.rootNode=g,this._whenReadyDeferred.resolve()}getFirstResizablePanel(g,a,h){if(h){if(a){for(let u=g;u>=0;u--)if(!this.panels[u].classList.contains(v.RESIZE_LOCK))return this.panels[u]}else for(let u=g;u>=0;u--)if(!this.panels[u].classList.contains(v.RESIZE_LOCK))return this.panels[u]}else if(a){for(let u=g+1;u<this.panels.length;u++)if(!this.panels[u].classList.contains(v.RESIZE_LOCK))return this.panels[u]}else for(let u=g+1;u<this.panels.length;u++)if(!this.panels[u].classList.contains(v.RESIZE_LOCK))return this.panels[u]}checkChildNoResize(g){var a,h;if(g&&g.type===_.SlotRenderer){const u=(h=this.appConfig.layoutConfig[(a=g.props)===null||a===void 0?void 0:a.slot])===null||h===void 0?void 0:h.modules;if(!u||u.length===0)return!0}return!1}renderSplitPanel(g,a,h){return r.default.cloneElement(g,{...h,...g.props},a)}interceptProps(g){return g}};t.SplitPanelService=m,n.__decorate([(0,o.Autowired)(_.AppConfig),n.__metadata("design:type",Object)],m.prototype,"appConfig",void 0),t.SplitPanelService=m=n.__decorate([(0,o.Injectable)({multiple:!0}),n.__metadata("design:paramtypes",[String])],m);let p=class{constructor(){this.services=new Map}getService(g){let a=this.services.get(g);return a||(a=this.injector.get(t.ISplitPanelService,[g]),this.services.set(g,a)),a}};t.SplitPanelManager=p,n.__decorate([(0,o.Autowired)(o.INJECTOR_TOKEN),n.__metadata("design:type",o.Injector)],p.prototype,"injector",void 0),t.SplitPanelManager=p=n.__decorate([(0,o.Injectable)()],p)},89897:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),e(85608).__exportStar(e(85266),t)},85266:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Loading=void 0;const r=e(85608).__importDefault(e(14041));e(18182);const o=()=>r.default.createElement("div",{className:"loading_indicator "});t.Loading=o,t.Loading.displayName="Loading"},97885:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=e(85608).__importDefault(e(43144)),o=e(48560),l=({id:_,className:v,children:m})=>{const p=(0,o.usePortal)(_,v);return r.default.createPortal(m,p)};t.default=l},73215:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ResizeHandleVertical=t.ResizeHandleHorizontal=t.ResizeFlexMode=t.RESIZE_LOCK=void 0,t.preventWebviewCatchMouseEvents=m,t.allowWebviewCatchMouseEvents=p;const n=e(85608),r=n.__importDefault(e(53373)),o=n.__importDefault(e(14041)),l=e(22366),_=n.__importDefault(e(57482));t.RESIZE_LOCK="resize-lock";var v;(function(a){a.Prev="prev",a.Next="next",a.Percentage="Percentage"})(v||(t.ResizeFlexMode=v={}));function m(){const a=document.getElementsByTagName("iframe"),h=document.getElementsByTagName("webview"),u=document.getElementsByClassName("shadow-root-host");for(const c of h)c.classList.add("none-pointer-event");for(const c of a)c.classList.add("none-pointer-event");for(const c of u)c?.classList.add("none-pointer-event")}function p(){const a=document.getElementsByTagName("iframe"),h=document.getElementsByTagName("webview"),u=document.getElementsByClassName("shadow-root-host");for(const c of h)c.classList.remove("none-pointer-event");for(const c of a)c.classList.remove("none-pointer-event");for(const c of u)c?.classList.remove("none-pointer-event")}const s=a=>{const h=o.default.useRef(),u=o.default.useRef(!1),c=o.default.useRef(0),E=o.default.useRef(0),f=o.default.useRef(0),d=o.default.useRef(),y=o.default.useRef(),b=o.default.useRef(),A=(L,B)=>{const U=a.findPrevElement?a.findPrevElement():d.current,W=a.findNextElement?a.findNextElement():y.current;if(U&&U.classList.contains(t.RESIZE_LOCK)||W&&W.classList.contains(t.RESIZE_LOCK))return;const j=h.current.parentElement.offsetWidth,Q=Number(U?.dataset.minResize||0),G=Number(W?.dataset.minResize||0),Z=Number(U?.dataset.maxResize||0),$=Number(W?.dataset.maxResize||0);(Q||G)&&(L*j<=Q||B*j<=G)||(Z||$)&&(L*j>=Z||B*j>=$)||(W&&(W.style.width=B*100+"%"),U&&(U.style.width=L*100+"%"),a.onResize&&W&&U&&a.onResize(U,W))},S=(L,B,U,W)=>{var j,Q;const G=a.findPrevElement?a.findPrevElement(W):d.current,Z=a.findNextElement?a.findNextElement(W):y.current,$=Number((j=G?.dataset.minResize)!==null&&j!==void 0?j:0),V=Number((Q=Z?.dataset.minResize)!==null&&Q!==void 0?Q:0),H=G?.dataset.maxResize?Number(G?.dataset.maxResize):null,K=Z?.dataset.maxResize?Number(Z?.dataset.maxResize):null,Y=a.flexMode===v.Prev,X=Y?G:Z,oe=Y?Z:G;let ie=Y?L:B;U||(($||V)&&(Y?$>L?ie=$:V>B&&(ie=L+B-V):V>B?ie=V:$>L&&(ie=L+B-$)),(H||K)&&(Y?H&&H<=L?ie=H:K&&K>B&&(ie=L+B-K):K&&K<=B?ie=K:H&&H>B&&(ie=L+B-H))),X.style.width=ie+"px",X.style.flexGrow="0",X.style.flexShrink="1",oe.style.width="0",oe.style.flexGrow="1",oe.style.flexShrink="0",a.onResize&&Z&&G&&a.onResize(G,Z)},D=(L,B)=>{const U=d.current,W=y.current;let j;a.flexMode?j=(U.offsetWidth+W.offsetWidth)/U.parentElement.offsetWidth*100:j=+y.current.style.width.replace("%","")+ +d.current.style.width.replace("%",""),W&&(W.style.width=B/(L+B)*j+"%"),U&&(U.style.width=L/(L+B)*j+"%"),I(L,B),a.onResize&&W&&U&&a.onResize(U,W)},I=(L,B)=>{const U=d.current,W=y.current;let j=!1;U&&(L===0?(U.classList.add("kt_display_none"),j=!0):U.classList.remove("kt_display_none")),W&&(B===0?(W.classList.add("kt_display_none"),j=!0):W.classList.remove("kt_display_none")),h.current&&(j?h.current.classList.add("none-pointer-event"):h.current.classList.remove("none-pointer-event"))},w=()=>{const L=d.current.clientWidth,B=y.current.clientWidth,U=L+B,W=[];return W.push(L/U),W.push(B/U),W},T=(L,B)=>{l.fastdom.mutate(()=>{const U=d.current.clientWidth,W=y.current.clientWidth,j=U+W;if(a.flexMode){const Q=a.flexMode===v.Prev?L:j-L,G=a.flexMode===v.Next?L:j-L;S(Q,G,!0)}else{const Q=+y.current.style.width.replace("%",""),G=+d.current.style.width.replace("%",""),Z=Q+G;B?(y.current.style.width=Z*(L/j)+"%",d.current.style.width=Z*(1-L/j)+"%"):(d.current.style.width=Z*(L/j)+"%",y.current.style.width=Z*(1-L/j)+"%")}B?I(j-L,L):I(L,j-L),a.onResize&&a.onResize(d.current,y.current)})},R=L=>L?y.current.clientWidth:d.current.clientWidth,P=L=>{const B=L.classList,U=_.default["resize-overflow-hidden"];B?.contains(U)||B.add(U)},O=L=>{const B=L.classList,U=_.default["resize-overflow-hidden"];B?.contains(U)&&B.remove(U)},M=L=>{if(L.preventDefault(),h.current&&h.current.classList.contains("no-resize"))return;const B=E.current+L.pageX-c.current,U=f.current-(L.pageX-c.current);b.current&&b.current.dispose(),b.current=l.fastdom.mutate(()=>{if(a.flexMode)S(B,U);else{const W=h.current.parentElement.offsetWidth;A(B/W,U/W)}})},k=()=>{u.current=!1,document.removeEventListener("mousemove",M),document.removeEventListener("mouseup",k),a.onFinished&&a.onFinished(),l.fastdom.mutate(()=>{var L;(L=h.current)===null||L===void 0||L.classList.remove(_.default.active),O(d.current),O(y.current),p()})},F=L=>{u.current=!0,document.addEventListener("mousemove",M),document.addEventListener("mouseup",k),c.current=L.pageX,l.fastdom.measure(()=>{E.current=d.current.offsetWidth,f.current=y.current.offsetWidth,l.fastdom.mutate(()=>{var B;(B=h.current)===null||B===void 0||B.classList.add(_.default.active),P(d.current),P(y.current),m()})})};return o.default.useEffect(()=>(h.current&&(h.current.addEventListener("mousedown",F),d.current=h.current.previousSibling,y.current=h.current.nextSibling),()=>{h.current&&(h.current.removeEventListener("mousedown",F),h.current.removeEventListener("mousemove",M),h.current.removeEventListener("mouseup",k))}),[]),a.delegate&&a.delegate({setSize:A,setAbsoluteSize:T,getAbsoluteSize:R,setRelativeSize:D,getRelativeSize:w}),o.default.createElement("div",{ref:L=>{h.current=L},className:(0,r.default)({[_.default["resize-handle-horizontal"]]:!0,[_.default["with-color"]]:!a.noColor,[a.className||""]:!0})})};t.ResizeHandleHorizontal=s;const g=a=>{const h=o.default.useRef(),u=o.default.useRef(!1),c=o.default.useRef(0),E=o.default.useRef(0),f=o.default.useRef(0),d=o.default.useRef(),y=o.default.useRef(),b=o.default.useRef(),A=o.default.useRef(),S=(L,B,U)=>{const W=a.findPrevElement?a.findPrevElement(U):d.current,j=a.findNextElement?a.findNextElement(U):y.current;!j||!W||W.classList.contains(t.RESIZE_LOCK)||j.classList.contains(t.RESIZE_LOCK)||(j.style.height=B*100+"%",W.style.height=L*100+"%",a.onResize&&a.onResize(W,j))},D=(L,B,U,W)=>{var j,Q;const G=a.findPrevElement?a.findPrevElement(W):d.current,Z=a.findNextElement?a.findNextElement(W):y.current;let $,V,H=0;const K=Number(((j=G?.dataset)===null||j===void 0?void 0:j.minResize)||0),Y=Number(((Q=Z?.dataset)===null||Q===void 0?void 0:Q.minResize)||0);a.flexMode===v.Prev?($=G,V=Z,H=L,U||(K>L?H=K:Y>B&&(H=L+B-Y))):($=Z,V=G,H=B,U||(Y>B?H=Y:K>L&&(H=L+B-K))),$.style.height=H+"px",$.style.flexGrow="0",$.style.flexShrink="1",V.style.height="0",V.style.flexGrow="1",V.style.flexShrink="0",a.onResize&&Z&&G&&a.onResize(G,Z)},I=(L,B)=>{const U=d.current,W=y.current;let j;a.flexMode?j=(U.offsetHeight+W.offsetHeight)/U.parentElement.offsetHeight*100:j=+W.style.height.replace("%","")+ +U.style.height.replace("%",""),W&&(W.style.height=B/(L+B)*j+"%"),U&&(U.style.height=L/(L+B)*j+"%"),w(L,B),a.onResize&&W&&U&&a.onResize(U,W)},w=(L,B)=>{const U=d.current,W=y.current;let j=!1;U&&(L===0?(U.classList.add("kt_display_none"),j=!0):U.classList.remove("kt_display_none")),W&&(B===0?(W.classList.add("kt_display_none"),j=!0):W.classList.remove("kt_display_none")),h.current&&(j?h.current.classList.add("none-pointer-event"):h.current.classList.remove("none-pointer-event"))},T=()=>{const L=d.current.clientHeight,B=y.current.clientHeight,U=L+B,W=[];return W.push(L/U),W.push(B/U),W},R=(L,B,U,W)=>{U.classList.contains(t.RESIZE_LOCK)||W.classList.contains(t.RESIZE_LOCK)||(W.style.height=B+"px",U.style.height=L+"px",W.style.flex="unset",U.style.flex="unset",a.onResize&&W&&U&&a.onResize(U,W))},P=(L,B,U)=>{if(!d.current||!y.current)return;const W=d.current.clientHeight,j=y.current.clientHeight,Q=W+j;if(a.flexMode){const G=a.flexMode===v.Prev?L:Q-L,Z=a.flexMode===v.Next?L:Q-L;D(G,Z,!0)}else{const G=+y.current.style.height.replace(/\%|px/,""),Z=+d.current.style.height.replace(/\%|px/,""),$=G+Z;if(B){U&&(d.current.style.height=$*(1-L/Q)+"%");const V=$*(L/Q);y.current.style.height=V===0?V+"px":V+"%"}else d.current.style.height=$*(L/Q)+"%",U&&(y.current.style.height=$*(1-L/Q)+"%")}B?w(Q-L,L):w(L,Q-L),a.onResize&&a.onResize(d.current,y.current)},O=L=>L?y.current.clientHeight:d.current.clientHeight,M=L=>{u.current=!0,document.addEventListener("mousemove",k),document.addEventListener("mouseup",F),c.current=L.pageY,A.current=y.current,b.current=d.current,l.fastdom.measure(()=>{E.current=d.current.offsetHeight,f.current=y.current.offsetHeight,l.fastdom.mutate(()=>{var B;(B=h.current)===null||B===void 0||B.classList.add(_.default.active),m()})})},k=L=>{L.preventDefault(),!(h.current&&h.current.classList.contains("no-resize"))&&l.fastdom.measure(()=>{const B=L.pageY>c.current,U=a.findNextElement?a.findNextElement(B):null,W=a.findPrevElement?a.findPrevElement(B):null;if(U!==null&&A.current!==U||W!==null&&b.current!==W){if(!U||!W)return;A.current=U,b.current=W,c.current=L.pageY,E.current=b.current.offsetHeight,f.current=A.current.offsetHeight}const j=E.current+L.pageY-c.current,Q=f.current-(L.pageY-c.current),G=Number(b.current.dataset.minResize||0),Z=Number(A.current.dataset.minResize||0);(G||Z)&&(j<=G||Q<=Z)||l.fastdom.mutate(()=>{if(a.flexMode===v.Prev||a.flexMode===v.Next)D(j,Q);else if(a.flexMode===v.Percentage){const $=h.current.parentElement.offsetHeight;S(j/$,Q/$)}else R(j,Q,b.current,A.current)})})},F=L=>{u.current=!1,document.removeEventListener("mousemove",k),document.removeEventListener("mouseup",F),l.fastdom.mutate(()=>{var B;(B=h.current)===null||B===void 0||B.classList.remove(_.default.active),a.onFinished&&a.onFinished(),p()})};return o.default.useEffect(()=>(h.current.addEventListener("mousedown",M),d.current=h.current.previousSibling,y.current=h.current.nextSibling,()=>{h.current.removeEventListener("mousedown",M),document.removeEventListener("mousemove",k),document.removeEventListener("mouseup",F)}),[]),a.delegate&&a.delegate({setSize:S,setAbsoluteSize:P,getAbsoluteSize:O,setRelativeSize:I,getRelativeSize:T}),o.default.createElement("div",{ref:L=>L&&(h.current=L),className:(0,r.default)({[_.default["resize-handle-vertical"]]:!0,[a.className||""]:!0,[_.default["with-color"]]:!a.noColor})})};t.ResizeHandleVertical=g},77331:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Select=void 0;const n=e(85608),r=n.__importDefault(e(53373)),o=n.__importDefault(e(14041));n.__exportStar(e(88706),t);const l=_=>(_={..._,className:(0,r.default)("kt_select",_.className)},o.default.createElement("select",{..._}));t.Select=l},53736:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ContextKeyChangeEvent=t.IContextKeyService=void 0;const n=e(43718);t.IContextKeyService=Symbol("IContextKeyService");class r extends n.BasicEvent{}t.ContextKeyChangeEvent=r},50394:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.InlineInputWidgetIsStreaming=t.InlineInputWidgetIsVisible=t.CodeEditsIsVisible=t.InlineDiffPartialEditsIsVisible=t.InlineHintWidgetIsVisible=t.InlineCompletionIsTrigger=t.InlineChatIsVisible=void 0;const n=e(40191);t.InlineChatIsVisible=new n.RawContextKey("ai.native.inlineChatIsVisible",!1),t.InlineCompletionIsTrigger=new n.RawContextKey("ai.native.inlineCompletionIsTrigger",!1),t.InlineHintWidgetIsVisible=new n.RawContextKey("ai.native.inlineHintWidgetIsVisible",!1),t.InlineDiffPartialEditsIsVisible=new n.RawContextKey("ai.native.inlineDiffPartialEditsIsVisible",!1),t.CodeEditsIsVisible=new n.RawContextKey("ai.native.codeEditsIsVisible",!1),t.InlineInputWidgetIsVisible=new n.RawContextKey("ai.native.inlineInputWidgetIsVisible",!1),t.InlineInputWidgetIsStreaming=new n.RawContextKey("ai.native.inlineInputWidgetIsStreaming",!1)},20162:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FileDialogViewVisibleContext=t.DialogViewVisibleContext=void 0;const n=e(40191);t.DialogViewVisibleContext=new n.RawContextKey("dialogViewVisible",!1),t.FileDialogViewVisibleContext=new n.RawContextKey("fileDialogViewVisible",!1)},16413:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ExplorerCompressedLastFocusContext=t.ExplorerCompressedFirstFocusContext=t.ExplorerCompressedFocusContext=t.FilesExplorerFilteredContext=t.FilesExplorerInputFocusedContext=t.FilesExplorerFocusedContext=t.ExplorerFilteredContext=t.ExplorerFocusedContext=t.ExplorerResourceCut=t.ExplorerViewletVisibleContext=t.ExplorerResourceIsFolderContext=void 0;const n=e(40191);t.ExplorerResourceIsFolderContext=new n.RawContextKey("explorerResourceIsFolder",!1),t.ExplorerViewletVisibleContext=new n.RawContextKey("explorerViewletVisible",!0),t.ExplorerResourceCut=new n.RawContextKey("explorerResourceCut",!1),t.ExplorerFocusedContext=new n.RawContextKey("explorerViewletFocus",!1),t.ExplorerFilteredContext=new n.RawContextKey("explorerViewletFilter",!1),t.FilesExplorerFocusedContext=new n.RawContextKey("filesExplorerFocus",!1),t.FilesExplorerInputFocusedContext=new n.RawContextKey("filesExplorerInputFocus",!1),t.FilesExplorerFilteredContext=new n.RawContextKey("filesExplorerFilteredContext",!1),t.ExplorerCompressedFocusContext=new n.RawContextKey("explorerViewletCompressedFocus",!1),t.ExplorerCompressedFirstFocusContext=new n.RawContextKey("explorerViewletCompressedFirstFocus",!1),t.ExplorerCompressedLastFocusContext=new n.RawContextKey("explorerViewletCompressedLastFocus",!1)},66e3:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=e(85608);n.__exportStar(e(16413),t),n.__exportStar(e(91830),t),n.__exportStar(e(29906),t),n.__exportStar(e(96774),t),n.__exportStar(e(73537),t),n.__exportStar(e(20162),t)},379:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ShowExcludedFilesFilterContextKey=t.ShowActiveFileFilterContextKey=t.ShowInfoFilterContextKey=t.ShowWarningsFilterContextKey=t.ShowErrorsFilterContextKey=t.RelatedInformationFocusContextKey=t.MarkerViewFilterFocusContextKey=t.MarkerFocusContextKey=t.MarkersTreeVisibilityContextKey=void 0;const n=e(40191);t.MarkersTreeVisibilityContextKey=new n.RawContextKey("problemsVisibility",!1),t.MarkerFocusContextKey=new n.RawContextKey("problemFocus",!1),t.MarkerViewFilterFocusContextKey=new n.RawContextKey("problemsFilterFocus",!1),t.RelatedInformationFocusContextKey=new n.RawContextKey("relatedInformationFocus",!1),t.ShowErrorsFilterContextKey=new n.RawContextKey("problems.filter.errors",!0),t.ShowWarningsFilterContextKey=new n.RawContextKey("problems.filter.warnings",!0),t.ShowInfoFilterContextKey=new n.RawContextKey("problems.filter.info",!0),t.ShowActiveFileFilterContextKey=new n.RawContextKey("problems.filter.activeFile",!1),t.ShowExcludedFilesFilterContextKey=new n.RawContextKey("problems.filter.excludedFiles",!0)},96774:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.OutlineFollowCursorContext=t.OutlineSortTypeContext=void 0;const n=e(40191);t.OutlineSortTypeContext=new n.RawContextKey("outlineSortType",0),t.OutlineFollowCursorContext=new n.RawContextKey("outlineFollowCursor",!1)},91830:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ResourceContextKey=void 0;const n=e(43718),r=e(63214);class o{constructor(_,v=r.getLanguageIdFromMonaco,m="resource"){if(this.contextKeyService=_,this.languageResolver=v,!m)throw new Error("resource key prefix cannot be empty!");this.resourceScheme=this.contextKeyService.createKey(m+"Scheme",""),this.resourceFilename=this.contextKeyService.createKey(m+"Filename",""),this.resourceExtname=this.contextKeyService.createKey(m+"Extname",""),this.resourceLangId=this.contextKeyService.createKey(m+"LangId",""),this.resourceKey=this.contextKeyService.createKey(m,""),this.isFileSystemResource=this.contextKeyService.createKey("isFileSystem"+m.substr(0,1).toUpperCase()+m.substr(1),!1)}set(_){if(!_){this.reset();return}const v=this.resourceKey.get();_.isEqual(new n.URI(v))||(this.resourceScheme.set(_.scheme),this.resourceFilename.set(_.path.name+_.path.ext),this.resourceExtname.set(_.path.ext),this.resourceLangId.set(this.languageResolver(_)),this.resourceKey.set(_.toString()),this.isFileSystemResource.set(_.scheme===n.Schemes.file))}reset(){this.resourceScheme.set(""),this.resourceFilename.set(""),this.resourceExtname.set(""),this.resourceLangId.set(""),this.resourceKey.set(""),this.isFileSystemResource.set(!1)}}t.ResourceContextKey=o},67386:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.InTreeViewKey=t.ViewHasSomeCollapsibleKey=t.ViewHasFilePatternKey=t.ViewHasReplacePatternKey=t.ViewHasSearchPatternKey=t.MatchFocusKey=t.ResourceFolderFocusKey=t.FolderFocusKey=t.FileFocusKey=t.FileMatchOrFolderMatchWithResourceFocusKey=t.FileMatchOrFolderMatchFocusKey=t.FileMatchOrMatchFocusKey=t.FirstMatchFocusKey=t.ReplaceActiveKey=t.PatternExcludesFocusedKey=t.PatternIncludesFocusedKey=t.InputBoxFocusedKey=t.SearchViewVisibleKey=t.HasSearchResults=t.ReplaceInputBoxFocusedKey=t.SearchInputBoxFocusedKey=t.SearchViewFocusedKey=void 0;const n=e(40191);t.SearchViewFocusedKey=new n.RawContextKey("searchViewletFocus",!1),t.SearchInputBoxFocusedKey=new n.RawContextKey("searchInputBoxFocus",!1),t.ReplaceInputBoxFocusedKey=new n.RawContextKey("replaceInputBoxFocus",!1),t.HasSearchResults=new n.RawContextKey("hasSearchResult",!1),t.SearchViewVisibleKey=new n.RawContextKey("searchViewletVisible",!0),t.InputBoxFocusedKey=new n.RawContextKey("inputBoxFocus",!1),t.PatternIncludesFocusedKey=new n.RawContextKey("patternIncludesInputBoxFocus",!1),t.PatternExcludesFocusedKey=new n.RawContextKey("patternExcludesInputBoxFocus",!1),t.ReplaceActiveKey=new n.RawContextKey("replaceActive",!1),t.FirstMatchFocusKey=new n.RawContextKey("firstMatchFocus",!1),t.FileMatchOrMatchFocusKey=new n.RawContextKey("fileMatchOrMatchFocus",!1),t.FileMatchOrFolderMatchFocusKey=new n.RawContextKey("fileMatchOrFolderMatchFocus",!1),t.FileMatchOrFolderMatchWithResourceFocusKey=new n.RawContextKey("fileMatchOrFolderMatchWithResourceFocus",!1),t.FileFocusKey=new n.RawContextKey("fileMatchFocus",!1),t.FolderFocusKey=new n.RawContextKey("folderMatchFocus",!1),t.ResourceFolderFocusKey=new n.RawContextKey("folderMatchWithResourceFocus",!1),t.MatchFocusKey=new n.RawContextKey("matchFocus",!1),t.ViewHasSearchPatternKey=new n.RawContextKey("viewHasSearchPattern",!1),t.ViewHasReplacePatternKey=new n.RawContextKey("viewHasReplacePattern",!1),t.ViewHasFilePatternKey=new n.RawContextKey("viewHasFilePattern",!1),t.ViewHasSomeCollapsibleKey=new n.RawContextKey("viewHasSomeCollapsibleResult",!1),t.InTreeViewKey=new n.RawContextKey("inTreeView",!1)},29906:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ShellExecutionSupported=t.IsTerminalFocused=t.IsTerminalViewInitialized=void 0;const n=e(40191);t.IsTerminalViewInitialized=new n.RawContextKey("isTerminalViewInitialized",!1),t.IsTerminalFocused=new n.RawContextKey("isTerminalFocused",!1),t.ShellExecutionSupported=new n.RawContextKey("shellExecutionSupported",!0)},12288:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TestingCanRefreshTests=t.TestingIsPeekVisible=t.TestingIsInPeek=t.TestingIsRunning=t.TestingHasAnyResults=t.TestingServiceHasDebuggableContextKey=t.TestingServiceProviderCount=void 0;const n=e(40191);t.TestingServiceProviderCount=new n.RawContextKey("service.testing.providerCount",0),t.TestingServiceHasDebuggableContextKey=new n.RawContextKey("service.testing.hasDebuggableContext",!1),t.TestingHasAnyResults=new n.RawContextKey("testing.hasAnyResults",!1),t.TestingIsRunning=new n.RawContextKey("testing.isRunning",!1),t.TestingIsInPeek=new n.RawContextKey("testing.isInPeek",!0),t.TestingIsPeekVisible=new n.RawContextKey("testing.isPeekVisible",!1),t.TestingCanRefreshTests=new n.RawContextKey("testing.canRefresh",!1)},73537:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.VirtualWorkspace=t.WorkspaceTrusted=t.WorkspaceFolderCount=t.WorkbenchState=void 0;const n=e(40191);t.WorkbenchState=new n.RawContextKey("workbenchState","empty"),t.WorkspaceFolderCount=new n.RawContextKey("workspaceFolderCount",0),t.WorkspaceTrusted=new n.RawContextKey("isWorkspaceTrusted",!0),t.VirtualWorkspace=new n.RawContextKey("virtualWorkspace",!1)},18193:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CorePreferences=t.corePreferenceSchema=t.FILE_TREE_DEFAULTS=t.FILES_DEFAULTS=void 0,t.injectCorePreferences=v;const n=e(43718),r=e(69734),o=e(87863),l=e(78132),_={confirmDelete:!0,confirmMove:!0};t.FILES_DEFAULTS={filesWatcherExclude:o.defaultFilesWatcherExcludes,filesExclude:{"**/.git":!0,"**/.svn":!0,"**/.hg":!0,"**/CVS":!0,"**/.DS_Store":!0}},t.FILE_TREE_DEFAULTS={baseIndent:10,indent:8},t.corePreferenceSchema={type:"object",properties:{[n.GeneralSettingsId.Language]:{type:"string",enum:(0,n.getAvailableLanguages)().map(m=>m.languageId),default:r.LOCALE_TYPES.EN_US},[n.GeneralSettingsId.Theme]:{type:"string",default:"vs-dark",enum:[]},"general.askReloadOnLanguageChange":{type:"boolean",default:!0,description:"%preference.description.general.askReloadOnLanguageChange%"},[n.GeneralSettingsId.Icon]:{type:"string",default:"vs-minimal",enum:[]},[n.GeneralSettingsId.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:_.confirmDelete,description:"%preference.explorer.confirm.move%"},"explorer.confirmDelete":{type:"boolean",default:_.confirmMove,description:"%preference.explorer.confirm.delete%"},"explorer.fileTree.baseIndent":{type:"number",default:t.FILE_TREE_DEFAULTS.baseIndent},"explorer.fileTree.indent":{type:"number",default:t.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:t.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:t.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:[`
|
|
31967
|
+
`)}return E}),`{"type": 1, "id": "${a}", "proxyId": "${h}", "method": "${u}", "args": ${JSON.stringify(c,v.replacer)}}`}static serializeReplyOK(a,h,u){if(typeof h>"u")return`{"type": 2, "id": "${a}"}`;try{return`{"type": 2, "id": "${a}", "res": ${JSON.stringify(h,v.replacer)}}`}catch{return u&&u.warn("res",h),`{"type": 2, "id": "${a}", "res": {}}`}}static serializeReplyError(a,h,u){try{return`{"type": 3, "id": "${a}", "res": ${JSON.stringify((0,n.transformErrorForSerialization)(h),v.replacer)}}`}catch{return u&&u.error("error",h),`{"type": 3, "id": "${a}", "res": {}}`}}}t.MessageIO=m;function p(){const g=new Error("Canceled");return g.name=g.message,g}class s{constructor(a,h){this._protocol=a,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=h||console,this.logger.error("You are using the deprecated class: 'RPCProtocol'. Please use the new one: 'SumiConnectionMultiplexer'"),this._protocol.onMessage(u=>this._receiveOneMessage(u))}set(a,h){return this._locals.set(a.serviceId,h),h}get(a){return this._locals.get(a.serviceId)}getProxy(a){return this._proxies.has(a.serviceId)||this._proxies.set(a.serviceId,this._createProxy(a.serviceId)),this._proxies.get(a.serviceId)}_createProxy(a){const h={get:(u,c)=>typeof c=="symbol"?null:(!u[c]&&c.charCodeAt(0)===36&&(u[c]=(...E)=>this._remoteCall(a,c,E)),u[c])};return new Proxy(Object.create(null),h)}_remoteCall(a,h,u){const c=u.length&&n.CancellationToken.isCancellationToken(u[u.length-1])?u.pop():void 0;if(c&&c.isCancellationRequested)return Promise.reject(p());const E=String(++this._lastMessageId),f=new n.Deferred;c&&(u.push("add.cancellation.token"),c.onCancellationRequested(()=>this._protocol.send(m.cancel(E)))),this._pendingRPCReplies.set(E,f);const d=m.serializeRequest(E,a,h,u);if(this._protocol.send(d),this._protocol.timeout&&this._protocol.timeout!==-1){const y=setTimeout(()=>{this._handleTimeout(E)},this._protocol.timeout);this._timeoutHandles.set(E,y)}return f.promise}_receiveOneMessage(a){const h=JSON.parse(a,v.reviver);switch(this._timeoutHandles.has(h.id)&&(typeof clearTimeout=="function"&&clearTimeout(this._timeoutHandles.get(h.id)),this._timeoutHandles.delete(h.id)),h.type){case 1:this._receiveRequest(h);break;case 2:this._receiveReply(h);break;case 4:this._receiveCancel(h);break;case 3:this._receiveError(h);break}}_receiveCancel(a){const h=this._cancellationTokenSources.get(a.id);h&&h.cancel()}_receiveError(a){const h=a.id;if(!this._pendingRPCReplies.has(h))return;const u=this._pendingRPCReplies.get(h);this._pendingRPCReplies.delete(h);let c;a.res&&(a.res.$isError?(c=new Error,c.name=a.res.name,c.message=a.res.message,c.stack=a.res.stack):c=a.res),u.reject(c)}_receiveRequest(a){const h=a.id,u=a.proxyId,c=a.method,E=a.args.map(y=>y===null?void 0:y);if(E.length&&E[E.length-1]==="add.cancellation.token"?E.pop():!1){const y=new n.CancellationTokenSource;this._cancellationTokenSources.set(h,y),E.push(y.token)}this._invokeHandler(u,c,E).then(y=>{this._protocol.send(m.serializeReplyOK(h,y)),this._cancellationTokenSources.delete(h)}).catch(y=>{this._protocol.send(m.serializeReplyError(h,y)),this._cancellationTokenSources.delete(h)})}_invokeHandler(a,h,u){try{return this._doInvokeHandler(a,h,u)}catch(c){return Promise.reject(c)}}async _doInvokeHandler(a,h,u){const c=this._locals.get(a);if(!c)throw new Error("Unknown actor "+a);const E=await c[h];if(typeof E!="function")throw new Error("Unknown method "+h+" on actor "+a);return E.apply(c,u)}_receiveReply(a){const h=a.id;if(!this._pendingRPCReplies.has(h))return;const u=this._pendingRPCReplies.get(h);this._pendingRPCReplies.delete(h),u.resolve(a.res)}_handleTimeout(a){if(!this._pendingRPCReplies.has(a)||!this._timeoutHandles.has(a))return;const h=this._pendingRPCReplies.get(a);this._pendingRPCReplies.delete(a),this._timeoutHandles.delete(a),h.reject(new Error("RPC Timeout: "+a))}}t.RPCProtocol=s},64592:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.furySerializer=t.CloseProtocol=t.BinaryProtocol=t.DataProtocol=t.ErrorProtocol=t.ServerReadyProtocol=t.OpenProtocol=t.PongProtocol=t.PingProtocol=void 0;const n=e(26387),r=e(94846);function o(){return{id:n.Type.string()}}t.PingProtocol=n.Type.object("ping",{...o()}),t.PongProtocol=n.Type.object("pong",{...o()}),t.OpenProtocol=n.Type.object("open",{...o(),clientId:n.Type.string(),path:n.Type.string(),traceId:n.Type.string()}),t.ServerReadyProtocol=n.Type.object("server-ready",{...o(),traceId:n.Type.string()}),t.ErrorProtocol=n.Type.object("error",{...o(),code:n.Type.uint16(),message:n.Type.string()}),t.DataProtocol=n.Type.object("data",{...o(),content:n.Type.string()}),t.BinaryProtocol=n.Type.object("binary",{...o(),binary:n.Type.binary()}),t.CloseProtocol=n.Type.object("close",{...o(),code:n.Type.uint32(),reason:n.Type.string()});const l=(0,r.oneOf)([t.PingProtocol,t.PongProtocol,t.OpenProtocol,t.ServerReadyProtocol,t.DataProtocol,t.BinaryProtocol,t.CloseProtocol,t.ErrorProtocol]);t.furySerializer=l},54558:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.wrapSerializer=void 0;const n=e(85608);n.__exportStar(e(64592),t),n.__exportStar(e(43620),t),n.__exportStar(e(41619),t);const r=(o,l)=>({onceClose(_){return o.onceClose(_)},onMessage(_){return o.onMessage(v=>{_(l.deserialize(v))})},send(_){o.send(l.serialize(_))}});t.wrapSerializer=r},43620:(x,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.rawSerializer=void 0,t.rawSerializer={serialize:e=>e,deserialize:e=>e}},41619:(x,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},76271:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RPCServiceChannelPath=t.BaseCommonChannelHandler=t.CommonChannelPathHandler=void 0,t.injectConnectionProviders=m;const n=e(39048),r=e(54558),o=e(47561);class l{constructor(){this.handlerMap=new Map,this.paramsKey=new Map}register(s,g){const a=s.indexOf("/:"),h=a>=0;let u=s;h&&(u=s.slice(0,a),this.paramsKey.set(u,s.slice(a+2))),this.handlerMap.has(u)||this.handlerMap.set(u,[]);const c=this.handlerMap.get(u),E=g.handler.bind(g),f=(d,y,b)=>{g.connection=d,E(d,y,b)};g.handler=f,c.push(g),this.handlerMap.set(u,c)}getParams(s,g){const a={};if(this.paramsKey.has(s)){const h=this.paramsKey.get(s);h&&(a[h]=g)}return a}removeHandler(s,g){const a=s.indexOf(":"),h=a>=0;let u=s;h&&(u=s.slice(0,a));const c=this.handlerMap.get(u)||[],E=c.indexOf(g);E!==-1&&c.splice(E,1),this.handlerMap.set(s,c)}get(s){return this.handlerMap.get(s)}disposeConnectionClientId(s,g){this.handlerMap.forEach(a=>{a.forEach(h=>{h.dispose(s,g)})})}openChannel(s,g,a){let h=this.get(s),u;if(!h){const c=s.indexOf("/");c>=0&&(h=this.get(s.slice(0,c)),u=this.getParams(s.slice(0,c),s.slice(c+1)))}if(h)for(let c=0,E=h.length;c<E;c++)h[c].handler(g,a,u)}getAll(){return Array.from(this.handlerMap.values())}}t.CommonChannelPathHandler=l;var _;(function(p){p[p.ConnectionClosed=1]="ConnectionClosed",p[p.NewChannelOpened=2]="NewChannelOpened"})(_||(_={}));class v{constructor(s,g,a=console,h={}){this.handlerId=s,this.commonChannelPathHandler=g,this.logger=a,this.channelMap=new Map,this.heartbeatTimer=null,this.serializer=r.furySerializer,h.serializer&&(this.serializer=h.serializer)}heartbeat(s){this.heartbeatTimer&&clearTimeout(this.heartbeatTimer),this.heartbeatTimer=setTimeout(()=>{this.doHeartbeat(s),this.heartbeat(s)},5e3)}receiveConnection(s){let g;this.heartbeat(s);const a=(0,r.wrapSerializer)(s,this.serializer);a.onMessage(h=>{try{switch(h.kind){case"open":{const{id:u,path:c,traceId:E}=h;g=h.clientId,this.logger.log(`open a new connection channel ${g} with path ${c}`);let f=this.channelMap.get(u);f&&(f.close(_.NewChannelOpened,"new channel opened for the same channel id"),f.dispose()),f=new o.WSServerChannel(a,{id:u,clientId:g,logger:this.logger}),this.channelMap.set(u,f),this.commonChannelPathHandler.openChannel(c,f,g),f.serverReady(E);break}default:{const{id:u}=h,c=this.channelMap.get(u);c?c.dispatch(h):(a.send({kind:"error",id:u,code:n.ErrorMessageCode.ChannelNotFound,message:`channel ${u} not found`}),this.logger.warn(`channel ${u} is not found`))}}}catch(u){this.logger.error("handle connection message error",u)}}),s.onceClose(()=>{this.logger.log(`connection ${g} is closed, dispose all channels`),this.commonChannelPathHandler.disposeConnectionClientId(s,g),Array.from(this.channelMap.values()).filter(h=>h.clientId===g).forEach(h=>{h.close(_.ConnectionClosed,"connection closed"),h.dispose(),this.channelMap.delete(h.id),this.logger.log(`Remove connection channel ${h.id}`)})})}dispose(){this.heartbeatTimer&&clearTimeout(this.heartbeatTimer)}}t.BaseCommonChannelHandler=v,t.RPCServiceChannelPath="RPCService";function m(p){const s=new l;p.addProviders({token:l,useValue:s})}},8140:(x,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ServiceType=void 0;var e;(function(n){n[n.Service=0]="Service",n[n.Stub=1]="Stub"})(e||(t.ServiceType=e={}))},47561:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WSServerChannel=t.WSChannel=void 0;const n=e(40396),r=e(43718),o=e(39048),l=e(97349);var _;(function(s){s[s.ReSend=0]="ReSend",s[s.Sended=1]="Sended",s[s.Success=2]="Success",s[s.Failed=3]="Failed"})(_||(_={}));class v{constructor(){this.map=new Map,this.deliveryTimeout=500,this.timerMap=new Map}setDeliveryTimeout(g){this.deliveryTimeout=g}set(g,a){this.map.set(g,a)}get(g){return this.map.get(g)}success(g){this.map.set(g,_.Success);const a=this.timerMap.get(g);a&&clearTimeout(a)}dispose(){this.timerMap.forEach(g=>{clearTimeout(g)})}stop(g){const a=this.timerMap.get(g);a&&clearTimeout(a)}send(g,a){this.set(g,_.Sended),this.guard(g,a)}guard(g,a){const h=this.timerMap.get(g);h&&clearTimeout(h);const u=setTimeout(()=>{this.set(g,_.ReSend),a.whenRetry()},this.deliveryTimeout);this.timerMap.set(g,u)}}class m{constructor(g,a){this.connection=g,this._disposables=new r.DisposableStore,this.emitter=this._disposables.add(new n.EventEmitter),this.onBinaryQueue=this._disposables.add(new r.EventQueue),this.sendQueue=[],this._isServerReady=!1,this.stateTracer=new v,this.LOG_TAG="[WSChannel]",this.logger=console;const{id:h,logger:u,ensureServerReady:c}=a;this.id=h,this.LOG_TAG=`[WSChannel id:${this.id}]`,u&&(this.logger=u),this._ensureServerReady=!!c,a.deliveryTimeout&&this.stateTracer.setDeliveryTimeout(a.deliveryTimeout),this._disposables.add(this.emitter.on("binary",E=>this.onBinaryQueue.push(E)))}inqueue(g){if(this._ensureServerReady&&!this._isServerReady){this.sendQueue||(this.sendQueue=[]),this.sendQueue.push(g);return}this.connection.send(g)}ensureMessageDeliveried(g,a=(0,r.randomString)(16)){const h=this.stateTracer.get(a);if(h&&h>=_.Sended){this.logger.error(`message already send already success or in progress, traceId: ${a}, state: ${h}`);return}g.traceId=a,this.connection.send(g),this.stateTracer.send(a,{whenRetry:()=>{if(this._isServerReady){this.stateTracer.stop(a);return}this.ensureMessageDeliveried(g,a)}})}onMessage(g){return this.emitter.on("message",g)}onBinary(g){return this.onBinaryQueue.on(g)}onOpen(g){return this.emitter.on("open",g)}onReopen(g){return this.emitter.on("reopen",g)}pause(){this._isServerReady=!1}onServerReady(g){if(this._isServerReady){g();return}return this.emitter.on("open",g)}resume(){if(this._isServerReady=!0,this.sendQueue){for(const g of this.sendQueue)this.connection.send(g);this.sendQueue=[]}}dispatch(g){switch(g.kind){case"server-ready":g.traceId&&this.stateTracer.success(g.traceId),this.resume(),this.emitter.emit("open",g.id);break;case"data":this.emitter.emit("message",g.content);break;case"binary":this.emitter.emit("binary",g.binary);break;case"error":switch(this.logger.error(this.LOG_TAG,`receive error: id: ${g.id}, code: ${g.code}, error: ${g.message}`),g.code){case o.ErrorMessageCode.ChannelNotFound:this.channelPath&&(this.pause(),this.open(this.channelPath,this.clientId));break}break}}open(g,a){this.channelPath=g,this.clientId=a,this.LOG_TAG=`[WSChannel id=${this.id} path=${g}]`;const h={kind:"open",id:this.id,path:g,clientId:a};this._ensureServerReady?this.ensureMessageDeliveried(h):this.connection.send(h)}send(g){this.inqueue({kind:"data",id:this.id,content:g})}sendBinary(g){this.inqueue({kind:"binary",id:this.id,binary:g})}onError(){}close(g,a){this.pause(),this.emitter.emit("close",g,a)}fireReopen(){this.emitter.emit("reopen")}onClose(g){return this.emitter.on("close",g)}onceClose(g){return this.emitter.once("close",g)}createConnection(){return{onceClose:g=>this.onceClose(g),onMessage:g=>this.onBinary(g),send:g=>{this.sendBinary(g)},dispose(){}}}createSumiConnection(g={}){return new l.SumiConnection(this.createConnection(),g)}dispose(){this.stateTracer.dispose(),this.sendQueue=[],this._disposables.dispose()}ping(){this.connection.send({kind:"ping",id:this.id})}}t.WSChannel=m;class p extends m{constructor(g,a){super(g,a),this.connection=g,this.messageQueue=[],this.clientId=a.clientId}serverReady(g){this.connection.send({kind:"server-ready",id:this.id,traceId:g})}dispatch(g){switch(g.kind){case"data":this.emitter.emit("message",g.content);break;case"binary":this.emitter.emit("binary",g.binary);break;case"ping":this.connection.send({kind:"pong",id:this.id});break}}}t.WSServerChannel=p},8919:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),e(85608).__exportStar(e(25285),t)},70650:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AINativeConfigService=void 0;const n=e(85608),r=e(76003),o=e(89195),l=e(1149),_=e(11050),v={supportsMarkers:!0,supportsChatAssistant:!0,supportsCodeAction:!0,supportsInlineChat:!0,supportsInlineCompletion:!0,supportsConflictResolve:!0,supportsRenameSuggestions:!0,supportsProblemFix:!0,supportsTerminalDetection:!0,supportsTerminalCommandSuggest:!0,supportsCustomLLMSettings:!0,supportsMCP:!0},m={};Object.keys(v).forEach(a=>{m[a]=!1});const p={inputWidth:320,inputKeybinding:"ctrlcmd+k",logo:o.AILogoAvatar},s={triggerKeybinding:"alt+\\"};let g=class{constructor(){this.aiModuleLoaded=!1,this.internalCapabilities=v,this.internalInlineChat=p,this.internalCodeEdits=s}get capabilities(){if(!this.aiModuleLoaded)return m;const{AINativeConfig:h}=this.appConfig;return h?.capabilities?{...this.internalCapabilities,...h.capabilities}:this.internalCapabilities}get inlineChat(){const{AINativeConfig:h}=this.appConfig;return h?.inlineChat?{...this.internalInlineChat,...h.inlineChat}:this.internalInlineChat}get codeEdits(){const{AINativeConfig:h}=this.appConfig;return h?.codeEdits?{...this.internalCodeEdits,...h.codeEdits}:this.internalCodeEdits}setAINativeModuleLoaded(h){this.aiModuleLoaded=h}};t.AINativeConfigService=g,n.__decorate([(0,r.Autowired)(_.AppConfig),n.__metadata("design:type",Object)],g.prototype,"appConfig",void 0),n.__decorate([(0,r.Autowired)(l.LayoutViewSizeConfig),n.__metadata("design:type",l.LayoutViewSizeConfig)],g.prototype,"layoutViewSize",void 0),t.AINativeConfigService=g=n.__decorate([(0,r.Injectable)()],g)},41480:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AIReporter=void 0;const n=e(85608),r=e(76003),o=e(43718),l=e(52664);let _=class{constructor(){this.reportInfoCache=new Map,this.reporterCancelHandler=new Map}getRelationId(){return(0,o.uuid)()}getCacheReportInfo(m){return this.reportInfoCache.get(m)}getCommonReportInfo(){return{}}start(m,p,s=60*1e3){const g=this.getRelationId();this.report(g,{...p,msgType:m,isStart:!0});const a=setTimeout(()=>{this.report(g,{...p,success:!1})},s);return this.reporterCancelHandler.set(g,a),g}end(m,p){const s=this.reporterCancelHandler.get(m);s&&clearTimeout(s),this.report(m,{success:!0,...p,isStart:!1})}send(m){this.reporter.point(l.AI_REPORTER_NAME,m.msgType,m)}record(m,p){p||(p=this.getRelationId());const s=this.reportInfoCache.get(p)||{},g={...this.getCommonReportInfo(),...s,...m,relationId:p};return this.reportInfoCache.set(p,g),g}report(m,p){const s=this.record(p,m);this.reporter.point(l.AI_REPORTER_NAME,p.msgType||s.msgType,s)}};t.AIReporter=_,n.__decorate([(0,r.Autowired)(o.IReporterService),n.__metadata("design:type",Object)],_.prototype,"reporter",void 0),t.AIReporter=_=n.__decorate([(0,r.Injectable)()],_)},57925:(x,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AI_CODE_EDITS_COMMANDS=t.AI_CODE_ACTION=t.AI_CHAT_VISIBLE=t.AI_INLINE_COMPLETION_REPORTER=t.AI_INLINE_DIFF_PARTIAL_EDIT=t.AI_INLINE_COMPLETION_VISIBLE=t.AI_INLINE_CHAT_INTERACTIVE_INPUT_CANCEL=t.AI_INLINE_CHAT_INTERACTIVE_INPUT_VISIBLE=t.AI_INLINE_CHAT_VISIBLE=void 0,t.AI_INLINE_CHAT_VISIBLE={id:"ai.inlineChat.visible"},t.AI_INLINE_CHAT_INTERACTIVE_INPUT_VISIBLE={id:"ai.inlineChat.interactiveInput.visible"},t.AI_INLINE_CHAT_INTERACTIVE_INPUT_CANCEL={id:"ai.inlineChat.interactiveInput.cancel"},t.AI_INLINE_COMPLETION_VISIBLE={id:"ai.inline.completion.visible"},t.AI_INLINE_DIFF_PARTIAL_EDIT={id:"ai.inline.diff.partial.edit"},t.AI_INLINE_COMPLETION_REPORTER={id:"ai.inline.completion.reporter"},t.AI_CHAT_VISIBLE={id:"ai.chat.visible"},t.AI_CODE_ACTION={id:"ai.code.action"};var e;(function(n){n.DISCARD={id:"ai.codeEdits.discard"},n.ACCEPT={id:"ai.codeEdits.accept"},n.TRIGGER={id:"ai.codeEdits.trigger"}})(e||(t.AI_CODE_EDITS_COMMANDS=e={}))},38070:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MergeConflictReportService=void 0;const n=e(85608),r=e(76003),o=e(43718),l=e(70650);let _=class extends o.Disposable{constructor(){super(...arguments),this.reportInfoMap=new Map,this.unique2RelationMap=new Map}record(m,p){if(!this.aiNativeConfigService.capabilities.supportsConflictResolve)return p;let s="";return this.unique2RelationMap.has(m)?(s=this.unique2RelationMap.get(m),this.aiReporter.record(p,s)):(s=this.aiReporter.record({...p,msgType:o.AIServiceType.MergeConflict,message:o.AIServiceType.MergeConflict,editorMode:p.editorMode||o.MergeConflictEditorMode.traditional}).relationId,this.unique2RelationMap.set(m,s)),{...p,relationId:s}}report(m,p){if(!this.aiNativeConfigService.capabilities.supportsConflictResolve)return;const s=this.record(m,p);this.aiReporter.end(s.relationId,s)}reportIncrementNum(m,p){if(!this.aiNativeConfigService.capabilities.supportsConflictResolve)return;const s=this.unique2RelationMap.get(m);if(!s)return;const g=this.aiReporter.getCacheReportInfo(s)[p]||0;this.report(m,{[p]:g+1})}dispose(){super.dispose(),this.reportInfoMap.clear()}};t.MergeConflictReportService=_,n.__decorate([(0,r.Autowired)(l.AINativeConfigService),n.__metadata("design:type",l.AINativeConfigService)],_.prototype,"aiNativeConfigService",void 0),n.__decorate([(0,r.Autowired)(o.IAIReporter),n.__metadata("design:type",Object)],_.prototype,"aiReporter",void 0),t.MergeConflictReportService=_=n.__decorate([(0,r.Injectable)()],_)},95040:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IAIInlineChatService=void 0,e(85608).__exportStar(e(70650),t),t.IAIInlineChatService=Symbol("IAIInlineChatService")},12956:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ClientAppStateService=t.ClientAppStateEvent=void 0;const n=e(85608),r=e(76003),o=e(43718);class l extends o.BasicEvent{}t.ClientAppStateEvent=l;let _=class{constructor(){this._state="init",this.deferred={}}get state(){return this._state}set state(m){m!==this._state&&(this._state=m,this.deferred[m]===void 0&&(this.deferred[m]=new o.Deferred),this.deferred[m].resolve(),this.eventBus.fire(new l(m)))}reachedState(m){return this.deferred[m]===void 0&&(this.deferred[m]=new o.Deferred),this.deferred[m].promise}reachedAnyState(...m){return Promise.race(m.map(p=>this.reachedState(p)))}};t.ClientAppStateService=_,n.__decorate([(0,r.Autowired)(o.IEventBus),n.__metadata("design:type",Object)],_.prototype,"eventBus",void 0),t.ClientAppStateService=_=n.__decorate([(0,r.Injectable)()],_)},59555:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ApplicationService=void 0;const n=e(85608),r=e(76003),o=e(59019),l=e(43718),_=e(11050),v=e(42101);let m=class{constructor(){this._initialized=new l.Deferred}async initializeData(){this._backendOS=await this.commonServer.getBackendOS(),this._initialized.resolve()}get frontendOS(){return l.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?v.electronEnv.currentWindowId:this.injector.get(o.WSChannelHandler).clientId}};t.ApplicationService=m,n.__decorate([(0,r.Autowired)(l.CommonServerPath),n.__metadata("design:type",Object)],m.prototype,"commonServer",void 0),n.__decorate([(0,r.Autowired)(_.AppConfig),n.__metadata("design:type",Object)],m.prototype,"appConfig",void 0),n.__decorate([(0,r.Autowired)(r.INJECTOR_TOKEN),n.__metadata("design:type",r.Injector)],m.prototype,"injector",void 0),t.ApplicationService=m=n.__decorate([(0,r.Injectable)()],m)},16884:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=e(85608);n.__exportStar(e(12956),t),n.__exportStar(e(59555),t)},22914:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BaseConnectionHelper=void 0;const n=e(85608),r=e(76003),o=e(18740),l=e(43718),_=e(32796),v=e(38578),m=(0,l.getDebugLogger)();let p=class{async createRPCServiceChannel(g){var a;const h=this.createConnection(),u=(a=this.appConfig.clientId)!==null&&a!==void 0?a:this.getDefaultClientId(),c=new o.WSChannelHandler(h,u,{logger:m});return(0,_.createConnectionService)(this.injector,g,c)}};t.BaseConnectionHelper=p,n.__decorate([(0,r.Autowired)(r.INJECTOR_TOKEN),n.__metadata("design:type",r.Injector)],p.prototype,"injector",void 0),n.__decorate([(0,r.Autowired)(v.AppConfig),n.__metadata("design:type",Object)],p.prototype,"appConfig",void 0),n.__decorate([(0,r.Autowired)(l.IReporterService),n.__metadata("design:type",Object)],p.prototype,"reporterService",void 0),t.BaseConnectionHelper=p=n.__decorate([(0,r.Injectable)({multiple:!0})],p)},41320:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BrowserRuntime=void 0;const n=e(85608),r=e(76003),o=e(44142),l=e(6858),_=e(53206);let v=class extends l.RendererRuntime{constructor(){super(...arguments),this.runtimeName=o.ESupportRuntime.Web}registerRuntimeModuleProviders(p,s){s.webProviders&&p.addProviders(...s.webProviders)}registerRuntimeInnerProviders(p){(0,_.injectBrowserInnerProviders)(p)}};t.BrowserRuntime=v,t.BrowserRuntime=v=n.__decorate([(0,r.Injectable)()],v)},53206:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.injectBrowserInnerProviders=o;const n=e(93899),r=e(97222);function o(l){l.addProviders({token:n.ICtxMenuRenderer,useClass:r.BrowserCtxMenuRenderer})}},55267:(x,t,e)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.WebConnectionHelper=void 0;const r=e(85608),o=e(76003),l=e(91493),_=e(43718),v=e(22914);let m=n=class extends v.BaseConnectionHelper{constructor(s){super(),this.options=s,this.clientId=n.clientIdFactory()}getDefaultClientId(){return this.clientId}createConnection(){return l.ReconnectingWebSocketConnection.forURL(this.options.connectionPath,this.options.connectionProtocols)}static clientIdFactory(){return`CLIENT_ID_${(0,_.uuid)()}`}};t.WebConnectionHelper=m,t.WebConnectionHelper=m=n=r.__decorate([(0,o.Injectable)({multiple:!0}),r.__metadata("design:paramtypes",[Object])],m)},44142:(x,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.onigWasmCDNUri=t.ESupportRuntime=void 0;var e;(function(n){n.Electron="electron",n.Web="web"})(e||(t.ESupportRuntime=e={})),t.onigWasmCDNUri="https://g.alicdn.com/kaitian/vscode-oniguruma-wasm/1.5.1/onig.wasm"},59574:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ElectronRendererRuntime=void 0;const n=e(85608),r=e(76003),o=e(38578),l=e(42101),_=e(44142),v=e(6858),m=e(38892);let p=class extends v.RendererRuntime{constructor(){super(...arguments),this.runtimeName=_.ESupportRuntime.Electron}registerRuntimeModuleProviders(a,h){h.electronProviders&&a.addProviders(...h.electronProviders)}registerRuntimeInnerProviders(a){(0,m.injectElectronInnerProviders)(a)}mergeAppConfig(a){return s(a)}async provideResourceUri(a){switch(a){case v.EKnownResources.OnigWasm:return l.electronEnv.onigWasmUri||this.appConfig.onigWasmUri||_.onigWasmCDNUri;case v.EKnownResources.TreeSitterWasmDirectory:return l.electronEnv.treeSitterWasmDirectoryUri||this.appConfig.treeSitterWasmDirectoryUri||(0,o.getTreeSitterWasmCDNUri)(this.appConfig.componentCDNType);default:throw new Error(`Unknown resource: ${a}`)}}};t.ElectronRendererRuntime=p,t.ElectronRendererRuntime=p=n.__decorate([(0,r.Injectable)()],p);function s(g){var a;const h=(a=l.electronEnv.metadata)!==null&&a!==void 0?a:{},u={...g,appRoot:g.appRoot||l.electronEnv.appPath,extensionDir:g.extensionDir||h.extensionDir};return h.extensionDevelopmentHost&&(g.extensionDevelopmentHost=h.extensionDevelopmentHost),h.extensionCandidate&&(g.extensionCandidate=(g.extensionCandidate||[]).concat(l.electronEnv.metadata.extensionCandidate||[])),u}},38892:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.injectElectronInnerProviders=m;const n=e(43718),r=e(37406),o=e(93899),l=e(27790),_=e(11050),v=e(42101);function m(p){const s=p.get(_.AppConfig);p.addProviders({token:n.IElectronMainMenuService,useValue:(0,v.createElectronMainApi)(n.IElectronMainMenuService,s.devtools)},{token:r.IElectronMainUIService,useValue:(0,v.createElectronMainApi)(r.IElectronMainUIService,s.devtools)},{token:r.IElectronMainLifeCycleService,useValue:(0,v.createElectronMainApi)(r.IElectronMainLifeCycleService,s.devtools)},{token:r.IElectronURLService,useValue:(0,v.createElectronMainApi)(r.IElectronURLService,s.devtools)},{token:l.IElectronMenuFactory,useClass:l.ElectronMenuFactory},{token:l.IElectronMenuBarService,useClass:l.ElectronMenuBarService},{token:o.ICtxMenuRenderer,useClass:l.ElectronCtxMenuRenderer})}},63977:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ElectronConnectionHelper=void 0;const n=e(85608),r=e(76003),o=e(42101),l=e(22914);let _=class extends l.BaseConnectionHelper{getDefaultClientId(){return o.electronEnv.metadata.windowClientId}createConnection(){return(0,o.createNetSocketConnection)()}};t.ElectronConnectionHelper=_,t.ElectronConnectionHelper=_=n.__decorate([(0,r.Injectable)({multiple:!0})],_)},18379:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ConnectionHelperFactory=v;const n=e(85608),r=e(38578),o=e(55267),l=e(44142),_=e(63977);n.__exportStar(e(55267),t),n.__exportStar(e(63977),t),n.__exportStar(e(22914),t),n.__exportStar(e(44142),t);function v(m){return p=>{const s=m.get(r.AppConfig);let g;switch(p){case l.ESupportRuntime.Electron:g=m.get(_.ElectronConnectionHelper);break;case l.ESupportRuntime.Web:g=m.get(o.WebConnectionHelper,[{connectionPath:s.connectionPath,connectionProtocols:s.connectionProtocols}]);break;default:throw new Error(`Unknown backend type: ${p}`)}return g}}},6858:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RendererRuntime=t.EKnownResources=void 0;const n=e(85608),r=e(76003),o=e(11050),l=e(44142);var _;(function(m){m.OnigWasm="wasm:onig",m.TreeSitterWasmDirectory="wasm:tree-sitter"})(_||(t.EKnownResources=_={}));let v=class{mergeAppConfig(p){return p}async provideResourceUri(p){switch(p){case _.OnigWasm:return this.appConfig.onigWasmUri||l.onigWasmCDNUri;case _.TreeSitterWasmDirectory:return this.appConfig.treeSitterWasmDirectoryUri||(0,o.getTreeSitterWasmCDNUri)(this.appConfig.componentCDNType);default:throw new Error(`Unknown resource: ${p}`)}}};t.RendererRuntime=v,n.__decorate([(0,r.Autowired)(o.AppConfig),n.__metadata("design:type",Object)],v.prototype,"appConfig",void 0),t.RendererRuntime=v=n.__decorate([(0,r.Injectable)()],v)},37638:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AuthenticationContribution=void 0;const n=e(85608),r=e(76003),o=e(43718),l=e(66549);let _=class{onStart(){this.authenticationService.initialize()}registerCommands(m){m.registerCommand({id:o.noAccountsId,label:"%authentication.noAccounts%"},{execute:()=>{}})}};t.AuthenticationContribution=_,n.__decorate([(0,r.Autowired)(o.IAuthenticationService),n.__metadata("design:type",Object)],_.prototype,"authenticationService",void 0),t.AuthenticationContribution=_=n.__decorate([(0,o.Domain)(l.ClientAppContribution,o.CommandContribution)],_)},10605:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AuthenticationService=void 0;const n=e(85608),r=e(76003),o=e(43718),l=e(93899);let _=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 m=new Map;this.onDidChangeSessions(async p=>{if(p.event.added.length>0){const s=await this.getSessions(p.providerId);s.forEach(g=>{if(s.find(b=>m.get(b.id)))return;const a=new o.DisposableCollection,h=`account-sign-out-${p.providerId}-${g.id}`,u=this.commands.registerCommand({id:h,label:(0,o.formatLocalize)("authentication.signOut",p.label)},{execute:async()=>{await this.signOutOfAccount(p.providerId,g.account.label)}}),c=`manage-trusted-${p.providerId}-${g.id}`,E=this.commands.registerCommand({id:c,label:"%authentication.manageTrustedExtensions%"},{execute:async()=>{await this.manageTrustedExtensionsForAccount(p.providerId,g.account.label)}}),f=`${p.providerId}${g.account.label}`,d=this.menus.registerMenuItem(l.MenuId.AccountsContext,{submenu:f,label:`${g.account.label} (${p.label})`}),y=this.menus.registerMenuItems(f,[{command:c},{command:h}]);a.push(d),a.push(y),a.push(u),a.push(E),m.set(g.id,a)})}p.event.removed.length>0&&p.event.removed.forEach(s=>{const g=m.get(s.id);g&&(g.dispose(),m.delete(s.id))})})}get storage(){return this._storage}registerAuthenticationProvider(m,p){this._authenticationProviders.set(m,p),this._onDidRegisterAuthenticationProvider.fire({id:m,label:p.label}),this.updateAccountsMenuItem()}async sessionsUpdate(m,p){const s=this._authenticationProviders.get(m);s&&(this._onDidChangeSessions.fire({providerId:m,label:s.label,event:p}),await s.updateSessionItems(p),this.updateAccountsMenuItem(),p.added&&await this.updateNewSessionRequests(s))}async updateNewSessionRequests(m){const p=this._signInRequestItems.get(m.id);if(!p)return;const s=await m.getSessions();Object.keys(p).forEach(g=>{if(s.some(a=>a.scopes.slice().sort().join("")===g)){const a=p[g];a&&a.disposables.forEach(h=>h.dispose()),delete p[g],Object.keys(p).length===0?this._signInRequestItems.delete(m.id):this._signInRequestItems.set(m.id,p)}})}getTrustedKey(m,p){return`trusted-${m}-${p}`}async getAllowedExtensions(m,p){const s=this.getTrustedKey(m,p);let g=[];try{const a=await this.storage.get(s);a&&(g=JSON.parse(a))}catch(a){this.logger.warn("read allow extensions error: "+a)}return g}async setAllowedExtensions(m,p,s){const g=this.getTrustedKey(m,p);await this.storage.set(g,JSON.stringify(s))}async removeAllowedExtensions(m,p){const s=this.getTrustedKey(m,p);await this.storage.delete(s)}async updatedAllowedExtension(m,p,s,g,a){const h=await this.getAllowedExtensions(m,p),u=h.findIndex(c=>c.id===s);u===-1?h.push({id:s,name:g,allowed:a}):h[u].allowed=a,await this.setAllowedExtensions(m,p,h)}async isAccessAllowed(m,p,s){const a=(await this.getAllowedExtensions(m,p)).find(h=>h.id===s);return a?a.allowed!==void 0?a.allowed:!0:!1}async tryActivateProvider(m){await this.eventBus.fireAndAwait(new o.ExtensionActivateEvent({topic:"onView",data:m}));let p=this._authenticationProviders.get(m);if(p)return p;const s=new Promise((a,h)=>{this.onDidRegisterAuthenticationProvider(u=>{if(u.id===m)if(p=this._authenticationProviders.get(m),p)a(p);else throw new Error(`No authentication provider '${m}' is currently registered.`)})}),g=new Promise((a,h)=>{setTimeout(()=>{h(new Error(`didRegister ${m} timeout`))},5e3)});return Promise.race([s,g])}async getSessions(m,p,s,g){try{return await(this._authenticationProviders.get(m)||await this.tryActivateProvider(m)).getSessions(p,g)}catch{throw new Error(`No authentication provider '${m}' is currently registered.`)}}isAuthenticationProviderRegistered(m){return this._authenticationProviders.has(m)}getProviderIds(){const m=[];return this._authenticationProviders.forEach(p=>{m.push(p.id)}),m}unregisterAuthenticationProvider(m){const p=this._authenticationProviders.get(m);p&&(p.dispose(),this._authenticationProviders.delete(m),this._onDidUnregisterAuthenticationProvider.fire({id:m,label:p.label}),this.updateAccountsMenuItem())}updateAccountsMenuItem(){let m=!1;this._authenticationProviders.forEach(p=>{m=m||p.hasSessions()}),m&&this._noAccountsMenuItem&&(this._noAccountsMenuItem.dispose(),this._noAccountsMenuItem=void 0),!m&&!this._noAccountsMenuItem&&(this._noAccountsMenuItem=this.menus.registerMenuItem(l.MenuId.AccountsContext,{group:"0_accounts",command:o.noAccountsId}))}async requestNewSession(m,p,s,g,a){let h=this._authenticationProviders.get(m);if(h||await new Promise((u,c)=>{this.onDidRegisterAuthenticationProvider(E=>{E.id===m&&(h=this._authenticationProviders.get(m),u())})}),h){const u=this._signInRequestItems.get(m),c=p.sort().join("");if(u&&u[c]&&u[c].requestingExtensionIds.includes(g))return;const f=this.commands.registerCommand({id:`${g}signIn`,label:(0,o.formatLocalize)("authentication.signInRequests",a)},{execute:async()=>{const y=await this.login(m,p,s),b=y.account.label,A=await this.getAllowedExtensions(m,b);A.find(S=>S.id===g)||(A.push({id:g,name:a}),await this.setAllowedExtensions(m,b,A)),await this.setExtensionSessionId(a,m,y.id)}}),d=this.menus.registerMenuItem(l.MenuId.AccountsContext,{group:"2_signInRequests",command:`${g}signIn`});if(u){const y=u[c]||{disposables:[],requestingExtensionIds:[]};u[c]={disposables:[...y.disposables,d,f],requestingExtensionIds:[...y.requestingExtensionIds,g]},this._signInRequestItems.set(m,u)}else this._signInRequestItems.set(m,{[c]:{disposables:[d,f],requestingExtensionIds:[g]}})}}getLabel(m){const p=this._authenticationProviders.get(m);if(p)return p.label;throw new Error(`No authentication provider '${m}' has been declared.`)}supportsMultipleAccounts(m){const p=this._authenticationProviders.get(m);if(p)return p.supportsMultipleAccounts;throw new Error(`No authentication provider '${m}' is currently registered.`)}async login(m,p,s){try{return await(this._authenticationProviders.get(m)||await this.tryActivateProvider(m)).login(p,s)}catch(g){throw new Error(`No authentication provider '${m}' is currently registered, error messge: ${g.message}`)}}logout(m,p){const s=this._authenticationProviders.get(m);if(s)return s.logout(p);throw new Error(`No authentication provider '${m}' is currently registered.`)}manageTrustedExtensionsForAccount(m,p){const s=this._authenticationProviders.get(m);if(s)return s.manageTrustedExtensions(p);throw new Error(`No authentication provider '${m}' is currently registered.`)}signOutOfAccount(m,p){const s=this._authenticationProviders.get(m);if(s)return s.signOut(p);throw new Error(`No authentication provider '${m}' is currently registered.`)}getUsagesKey(m,p){return`usages-${m}-${p}`}async getAccountUsages(m,p){const s=this.getUsagesKey(m,p),g=await this.storage.get(s);let a=[];if(g)try{a=JSON.parse(g)}catch(h){this.logger.warn("parse account usages error: "+h)}return a}async addAccountUsage(m,p,s,g){const a=this.getUsagesKey(m,p),h=await this.getAccountUsages(m,p),u=h.findIndex(c=>c.extensionId===s);u>-1?h.splice(u,1,{extensionId:s,extensionName:g,lastUsed:Date.now()}):h.push({extensionId:s,extensionName:g,lastUsed:Date.now()}),await this.storage.set(a,JSON.stringify(h))}async removeAccountUsage(m,p){const s=this.getUsagesKey(m,p);await this.storage.delete(s)}getExtensionSessionIdKey(m,p){return`session-${m}-${p}`}async getExtensionSessionId(m,p){const s=this.getExtensionSessionIdKey(m,p);return await this.storage.get(s)}async setExtensionSessionId(m,p,s){const g=this.getExtensionSessionIdKey(m,p);await this.storage.set(g,s)}async removeExtensionSessionId(m,p){const s=this.getExtensionSessionIdKey(m,p);await this.storage.delete(s)}};t.AuthenticationService=_,n.__decorate([(0,r.Autowired)(o.ILogger),n.__metadata("design:type",Object)],_.prototype,"logger",void 0),n.__decorate([(0,r.Autowired)(o.StorageProvider),n.__metadata("design:type",Function)],_.prototype,"getStorage",void 0),n.__decorate([(0,r.Autowired)(o.IEventBus),n.__metadata("design:type",Object)],_.prototype,"eventBus",void 0),n.__decorate([(0,r.Autowired)(l.IMenuRegistry),n.__metadata("design:type",l.IMenuRegistry)],_.prototype,"menus",void 0),n.__decorate([(0,r.Autowired)(o.CommandRegistry),n.__metadata("design:type",Object)],_.prototype,"commands",void 0),t.AuthenticationService=_=n.__decorate([(0,r.Injectable)()],_)},72746:(x,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},33916:(x,t,e)=>{"use strict";var n;n={value:!0},t.j=void 0,e(37533);const r=e(76003),o=e(43718),l=e(4588),_=e(37406),v=e(16884),m=e(18379),p=e(41320),s=e(59574),g=e(6858),a=e(36206),h=e(66963),u=e(18193),c=e(41118),E=e(1149),f=e(11949),d=e(64102),y=e(78132),b=e(11050),A=e(67304),S=e(79951),D=e(79248),I=e(96302),w=e(71843);e(99696);class T{constructor(P){var O,M,k;this.opts=P,this.appInitialized=new o.Deferred,this.browserModules=[],this._disposables=new o.DisposableCollection,this._inComposition=!1,this._handleBeforeUpload=K=>{if(this.config.isElectronRenderer){if(this.stateService.state==="electron_confirmed_close")return;K.returnValue="",K.preventDefault(),this.stateService.state!=="electron_asking_close"&&(this.stateService.state="electron_asking_close",this.preventStopElectron().then(Y=>{if(Y)this.stateService.state="ready";else return this.stopContributionsElectron().then(()=>{this.stateService.state="electron_confirmed_close";const X=this.injector.get(_.IElectronMainLifeCycleService);setTimeout(()=>{X.closeWindow(S.electronEnv.currentWindowId)},0)})}))}else if(this.preventStop())return(K||window.event).returnValue=!0,!0},this._handleUnload=()=>{this.stateService.state="closing_window",this.config.isElectronRenderer||(this.disposeSideEffect(),this.stopContributions())},this._handleResize=()=>{},this._handleKeydown=K=>{K&&K.target.name!==c.NO_KEYBINDING_NAME&&this.keybindingService.run(K)},this._handleKeyup=K=>{this.keybindingService.resolveModifierKey(K)},this._handleWheel=()=>{};const{modules:F,contributions:L,iconStyleSheets:B,useCdnIcon:U,editorBackgroundImage:W,defaultPreferences:j,allowSetDocumentTitleFollowWorkspaceDir:Q=!0,...G}=P;this.initEarlyPreference(P.workspaceDir||"");const Z=(0,y.getPreferenceLanguageId)(j);(0,o.setLanguageId)(Z),this.injector=P.injector||new r.Injector,this.modules=F,this.modules.forEach(K=>this.resolveModuleDeps(K)),this.browserModules=P.modulesInstances||[];const $=(O=P.isElectronRenderer)!==null&&O!==void 0?O:this.detectRuntime()===m.ESupportRuntime.Electron;this.config={appName:l.DEFAULT_APPLICATION_NAME,appHost:$?l.DEFAULT_APPLICATION_DESKTOP_HOST:l.DEFAULT_APPLICATION_WEB_HOST,appRoot:P.appRoot||"",uriScheme:l.DEFAULT_URI_SCHEME,...G,isElectronRenderer:$,workspaceDir:P.workspaceDir||"",extensionDir:P.extensionDir||"",injector:this.injector,wsPath:P.wsPath||`ws://${window.location.hostname}:8000`,layoutConfig:P.layoutConfig,editorBackgroundImage:P.editorBackgroundImage||W,allowSetDocumentTitleFollowWorkspaceDir:Q,devtools:(M=P.devtools)!==null&&M!==void 0?M:!1,rpcMessageTimeout:P.rpcMessageTimeout||-1},this.config.connectionPath=P.connectionPath||`${this.config.wsPath}/service`;const V=this.injector.get(E.LayoutViewSizeConfig);V.init(P.layoutViewSize),this.config.layoutViewSize=V,this.injector.get(E.DesignLayoutConfig).setLayout(P.designLayout,(k=P.AINativeConfig)===null||k===void 0?void 0:k.layout),this.injector.addProviders({token:a.IClientApp,useValue:this}),this.injector.addProviders({token:b.AppConfig,useValue:this.config}),this.runtime=$?this.injector.get(s.ElectronRendererRuntime):this.injector.get(p.BrowserRuntime),this.injector.addProviders({token:g.RendererRuntime,useValue:this.runtime}),this.config.devtools&&(window.__OPENSUMI_DEVTOOLS_GLOBAL_HOOK__={}),P.extensionDevelopmentPath&&(this.config.extensionCandidate=(this.config.extensionCandidate||[]).concat(Array.isArray(P.extensionDevelopmentPath)?P.extensionDevelopmentPath.map(K=>(0,o.asExtensionCandidate)(K,!0)):[(0,o.asExtensionCandidate)(P.extensionDevelopmentPath,!0)]),this.config.extensionDevelopmentHost=!0),this.config=this.runtime.mergeAppConfig(this.config),L&&this.injector.addProviders(...L),this.initBaseProvider(),this.initFields(),this.appendIconStyleSheets(B,U),this.createBrowserModules(j)}resolveModuleDeps(P){const O=Reflect.getMetadata("dependencies",P);O&&O.forEach(M=>{this.modules.indexOf(M)===-1&&this.modules.push(M)})}get lifeCycleService(){return this.injector.get(o.AppLifeCycleServiceToken)}async start(P,O,M){const F=this.injector.get(o.IReporterService).time(o.REPORT_NAME.MEASURE);this.lifeCycleService.phase=1,M?(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,I.bindConnectionServiceDeprecated)(this.injector,this.modules,M)):O&&await this.createConnection(O),F.timeEnd("ClientApp.createConnection"),this.logger=this.injector.get(o.ILogger),this.stateService.state="client_connected",this.registerEventListeners(),await this.injector.get(o.IApplicationService).initializeData(),await this.measure("Contributions.start",()=>this.startContributions(P)),this.stateService.state="started_contributions",this.stateService.state="ready",this.lifeCycleService.phase=4,F.timeEnd("Framework.ready")}async createConnection(P){(await this.injector.get(m.ConnectionHelperFactory)(P).createRPCServiceChannel(this.modules)).onReopen(()=>{this.onReconnectContributions()})}onReconnectContributions(){const P=this.contributions;for(const O of P)O.onReconnect&&O.onReconnect(this)}initBaseProvider(){(0,w.injectInnerProviders)(this.injector),this.runtime.registerRuntimeInnerProviders(this.injector)}initFields(){this.contributionsProvider=this.injector.get(h.ClientAppContribution),this.commandRegistry=this.injector.get(o.CommandRegistry),this.keybindingRegistry=this.injector.get(c.KeybindingRegistry),this.keybindingService=this.injector.get(c.KeybindingService),this.stateService=this.injector.get(v.ClientAppStateService),this.nextMenuRegistry=this.injector.get(d.IMenuRegistry)}createBrowserModules(P){const O=this.injector;for(const M of this.modules){const k=O.get(M);this.browserModules.push(k),k.providers&&this.injector.addProviders(...k.providers),this.runtime.registerRuntimeModuleProviders(this.injector,k),k.preferences&&k.preferences(this.injector)}(0,u.injectCorePreferences)(this.injector),this.injectPreferenceService(this.injector,P),this.injectStorageProvider(this.injector);for(const M of this.browserModules)if(M.contributionProvider)if(Array.isArray(M.contributionProvider))for(const k of M.contributionProvider)(0,o.createContributionProvider)(this.injector,k);else(0,o.createContributionProvider)(this.injector,M.contributionProvider)}get contributions(){return this.contributionsProvider.getContributions()}async startContributions(P){await this.measure("RenderApp.render",()=>this.renderApp(P)),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(P,O){return await Promise.all(P.map(M=>this.contributionPhaseRunner(M,O)))}async contributionPhaseRunner(P,O){const M=P[O];if(typeof M=="function")try{const k=P.constructor.name+"."+O;return await this.measure(k,()=>M.call(P,this))}catch(k){this.logger.error(`Could not run contribution#${O}`,k)}}async renderApp(P){await(0,D.renderClientApp)(this,P),this.injector.get(o.IEventBus).fire(new f.RenderedEvent)}async measure(P,O){const k=this.injector.get(o.IReporterService).time(o.REPORT_NAME.MEASURE),F=await O();return k.timeEnd(P),F}preventStop(){const O=this.injector.get(u.CorePreferences)["application.confirmExit"];if(O==="never")return!1;for(const M of this.contributions)if(M.onWillStop)try{if(M.onWillStop(this))return!0}catch(k){(0,o.getDebugLogger)().error(k)}return O==="always"}async preventStopElectron(){if(this.injector.get(u.CorePreferences)["application.confirmExit"]==="never")return!1;for(const M of this.contributions)if(M.onWillStop)try{if(await M.onWillStop(this))return!0}catch(k){(0,o.getDebugLogger)().error(k)}return!1}stopContributions(){for(const P of this.contributions)if(P.onStop)try{P.onStop(this)}catch(O){this.logger.error("Could not stop contribution",O)}}async stopContributionsElectron(){const P=[];for(const O of this.contributions)O.onStop&&P.push((async()=>{try{await O.onStop(this)}catch(M){this.logger.error("Could not stop contribution",M)}})());await Promise.all(P)}registerEventListeners(){var P,O;window.addEventListener("beforeunload",this._handleBeforeUpload),window.addEventListener("unload",this._handleUnload),window.addEventListener("resize",this._handleResize),window.addEventListener("compositionstart",(P=this.keybindingService)===null||P===void 0?void 0:P.handleCompositionStart),window.addEventListener("compositionend",(O=this.keybindingService)===null||O===void 0?void 0:O.handleCompositionEnd),window.addEventListener("keydown",this._handleKeydown,!0),window.addEventListener("keyup",this._handleKeyup,!0),o.isOSX&&document.body.addEventListener("wheel",this._handleWheel,{passive:!1})}injectPreferenceService(P,O){const M=()=>k=>{const F=P.get(y.PreferenceProvider,{tag:k});return F.asScope(k),F};if((0,y.injectPreferenceConfigurations)(P),(0,y.injectPreferenceSchemaProvider)(P),P.addProviders({token:y.PreferenceProviderProvider,useFactory:M},{token:y.PreferenceService,useClass:y.PreferenceServiceImpl}),O){const F=P.get(y.PreferenceProviderProvider)(y.PreferenceScope.Default);for(const L of Object.keys(O))F.setPreference(L,O[L])}}injectStorageProvider(P){P.addProviders({token:o.DefaultStorageProvider,useClass:o.DefaultStorageProvider}),P.addProviders({token:o.StorageProvider,useFactory:O=>M=>O.get(o.DefaultStorageProvider).get(M)}),(0,o.createContributionProvider)(P,o.StorageResolverContribution)}fireOnReload(P=!1){window.location.reload(P)}appendIconStyleSheets(P,O){const M=O?[A.DEFAULT_CDN_ICON,A.IDE_OCTICONS_CN_CSS,A.IDE_CODICONS_CN_CSS]:[];P&&P.length&&P.forEach(k=>{this.updateIconMap(k.prefix,k.iconMap),M.push(k.cssPath)});for(const k of M){const F=document.createElement("link");F.setAttribute("rel","stylesheet"),F.setAttribute("href",k),document.getElementsByTagName("head")[0].appendChild(F)}}updateIconMap(P,O){P==="kaitian-icon kticon-"&&this.logger.error(`The icon prefix '${P}' conflicts with the built-in icon, please check the icon configuration.`),(0,A.updateIconMap)(P,O)}initEarlyPreference(P){this._disposables.push((0,y.registerLocalStorageProvider)(o.GeneralSettingsId.Theme,P)),this._disposables.push((0,y.registerLocalStorageProvider)(o.GeneralSettingsId.Icon,P)),this._disposables.push((0,y.registerLocalStorageProvider)(o.GeneralSettingsId.Language,P))}async dispose(){var P,O;window.removeEventListener("beforeunload",this._handleBeforeUpload),window.removeEventListener("unload",this._handleUnload),window.removeEventListener("resize",this._handleResize),window.removeEventListener("compositionstart",(P=this.keybindingService)===null||P===void 0?void 0:P.handleCompositionStart),window.removeEventListener("compositionend",(O=this.keybindingService)===null||O===void 0?void 0:O.handleCompositionEnd),window.removeEventListener("keydown",this._handleKeydown,!0),o.isOSX&&document.body.removeEventListener("wheel",this._handleWheel),this._disposables.dispose(),this.disposeSideEffect()}disposeSideEffect(){for(const P of this.contributions)if(P.onDisposeSideEffects)try{P.onDisposeSideEffects(this)}catch(O){this.logger.error("Could not dispose contribution",O)}}detectRuntime(){return window.isElectronRenderer||typeof navigator=="object"&&typeof navigator.userAgent=="string"&&navigator.userAgent.indexOf("Electron")>=0?m.ESupportRuntime.Electron:m.ESupportRuntime.Web}}t.j=T},79248:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.App=u,t.renderClientApp=f;const n=e(85608),r=n.__importDefault(e(14041)),o=n.__importDefault(e(25873)),l=e(97267),_=e(43718),v=e(28003),m=e(68456),p=e(11050),s=e(52564),g=e(26542),a=e(67304),h=e(75206);function u(d){const y=d.app.injector,b=y.get(_.IEventBus),A=y.get(g.LabelService),S=r.default.useCallback((D,I)=>A.getIcon(_.URI.parse(D),I),[]);return r.default.useEffect(()=>{let D;const I=()=>{D&&window.cancelAnimationFrame(D),D=window.requestAnimationFrame(()=>{D=null,s.allSlot.forEach(w=>{b.fire(new m.ResizeEvent({slotLocation:w.slot})),b.fireDirective(m.ResizeEvent.createDirective(w.slot))})})};return window.addEventListener("resize",I),()=>{window.removeEventListener("resize",I)}},[]),r.default.createElement(l.ComponentContextProvider,{value:{getIcon:a.getIcon,localize:_.localize,getResourceIcon:S}},r.default.createElement(p.ConfigProvider,{value:d.app.config},r.default.createElement(d.main,{callback:d.callback}),d.overlays&&d.overlays.map((D,I)=>r.default.createElement(D,{key:I}))))}const c=d=>y=>{o.default.createRoot(d).render(r.default.createElement(y,null))},E=(0,_.getDebugLogger)();function f(d,y){let b=d.config.layoutComponent||v.DefaultLayout;const A=d.browserModules.filter(R=>R.isOverlay).map(R=>R.component?R.component:(E.warn("Overlay module does not have component",R),null)).filter(Boolean),S=d.injector;S.get(h.ClientAppContextContribution).getContributions().forEach(R=>b=R.registerClientAppContext(b,S));const w=R=>r.default.createElement(u,{...R,app:d,main:b,overlays:A});return(typeof y=="function"?y:c(y))(w)}},96302:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createConnectionService=m,t.bindConnectionServiceDeprecated=p;const n=e(8919),r=e(18740),o=e(76271),l=e(43718),_=e(16884),v=e(11050);async function m(g,a,h,u={}){var c;const E=g.get(v.AppConfig),f=g.get(l.IReporterService);h.setReporter(f);const d=g.get(l.IEventBus),y=g.get(_.ClientAppStateService),b=()=>{y.reachedState("core_module_initialized").then(()=>{d.fire(new l.BrowserConnectionOpenEvent)})};h.connection.isOpen()&&b(),h.connection.onOpen(()=>{b()}),h.connection.onClose(()=>{y.reachedState("core_module_initialized").then(()=>{d.fire(new l.BrowserConnectionCloseEvent)})}),h.connection.onError(I=>{y.reachedState("core_module_initialized").then(()=>{d.fire(new l.BrowserConnectionErrorEvent(I))})}),await h.initHandler(),g.addProviders({token:r.WSChannelHandler,useValue:h});const A=await h.openChannel(o.RPCServiceChannelPath),S=new n.RPCServiceCenter;return S.setSumiConnection(A.createSumiConnection(u)),!((c=E?.measure)===null||c===void 0)&&c.connection&&S.setReporter(f,E.measure.connection.minimumReportThresholdTime),s(g,a,S),g.get(l.ILogger).reportToServer(),A}function p(g,a,h){const u=new n.RPCServiceCenter,c=u.setConnection(h),E=h.onClose(()=>{c.dispose(),E.dispose()});s(g,a,u)}function s(g,a,h){const{getRPCService:u}=(0,n.initRPCService)(h),c=[],E=[];for(const f of a){const d=g.get(f);if(d.backServices)for(const y of d.backServices)c.push(y),y.protocol&&h.loadProtocol(y.protocol)}for(const f of c){const{servicePath:d}=f,y=u(d),b={token:d,useValue:y};g.addProviders(b),f.clientToken&&E.push(f)}for(const f of E){const{servicePath:d}=f,y=u(d);if(f.clientToken){const b=g.get(f.clientToken);y.onRequestService(b)}}}},75206:(x,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ClientAppContextContribution=void 0,t.ClientAppContextContribution=Symbol("ClientAppContextContribution")},32796:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=e(85608);n.__exportStar(e(72746),t),n.__exportStar(e(79248),t),n.__exportStar(e(96302),t),n.__exportStar(e(75206),t)},71843:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.injectInnerProviders=$;const n=e(43718),r=e(96405),o=e(16872),l=e(41480),_=e(12956),v=e(59555),m=e(18379),p=e(10605),s=e(66963),g=e(71707),a=e(80832),h=e(23396),u=e(77273),c=e(41118),E=e(37015),f=e(68456),d=e(75694),y=e(93899),b=e(77666),A=e(90697),S=e(73967),D=e(78132),I=e(68969),w=e(11719),T=e(52564),R=e(26542),P=e(52993),O=e(10845),M=e(40827),k=e(32242),F=e(99e3),L=e(42637),B=e(62652),U=e(27957),W=e(45670),j=e(66894),Q=e(63921),G=e(75206),Z=e(82493);function $(V){(0,n.createContributionProvider)(V,s.ClientAppContribution),(0,n.createContributionProvider)(V,n.CommandContribution),(0,n.createContributionProvider)(V,u.FsProviderContribution),(0,n.createContributionProvider)(V,c.KeybindingContribution),(0,n.createContributionProvider)(V,y.MenuContribution),(0,n.createContributionProvider)(V,f.ComponentContribution),(0,n.createContributionProvider)(V,T.SlotRendererContribution),(0,n.createContributionProvider)(V,D.PreferenceContribution),(0,n.createContributionProvider)(V,W.VariableContribution),(0,n.createContributionProvider)(V,f.TabBarToolbarContribution),(0,n.createContributionProvider)(V,L.ToolBarActionContribution),(0,n.createContributionProvider)(V,k.StaticResourceContribution),(0,n.createContributionProvider)(V,G.ClientAppContextContribution);const H=[{token:n.IEventBus,useClass:n.EventBusImpl},{token:n.CommandService,useClass:n.CommandServiceImpl},{token:n.CommandRegistry,useClass:n.CommandRegistryImpl},{token:c.KeybindingRegistry,useClass:c.KeybindingRegistryImpl},{token:c.KeybindingService,useFactory:K=>K.get(c.KeybindingRegistry)},{token:o.KeyboardNativeLayoutService,useClass:E.BrowserKeyboardLayoutImpl},{token:o.KeyboardLayoutChangeNotifierService,useFactory:K=>K.get(o.KeyboardNativeLayoutService)},{token:E.KeyValidator,useFactory:K=>K.get(o.KeyboardNativeLayoutService)},_.ClientAppStateService,{token:d.ILogger,useClass:d.Logger},{token:d.Logger,useAlias:d.ILogger},{token:f.ComponentRegistry,useClass:f.ComponentRegistryImpl},{token:W.VariableRegistry,useClass:W.VariableRegistryImpl},{token:y.AbstractMenuService,useClass:y.MenuServiceImpl},{token:y.AbstractContextMenuService,useClass:y.ContextMenuServiceImpl},{token:y.IMenuRegistry,useClass:y.MenuRegistryImpl},{token:b.IToolbarActionService,useClass:b.ToolbarActionService},{token:y.AbstractMenubarService,useClass:y.MenubarServiceImpl},{token:n.IReporter,useClass:n.DefaultReporter},{token:n.IReporterService,useClass:n.ReporterService},{token:n.ReporterMetadata,useValue:{host:n.REPORT_HOST.BROWSER}},{token:I.IProgressService,useClass:w.ProgressService},{token:L.IToolbarRegistry,useClass:U.NextToolbarRegistryImpl},{token:L.IToolbarPopoverRegistry,useClass:B.ToolbarPopoverRegistry},U.ToolbarClientAppContribution,{token:n.IProblemPatternRegistry,useClass:n.ProblemPatternRegistryImpl},{token:n.IProblemMatcherRegistry,useClass:n.ProblemMatchersRegistryImpl},{token:n.ITaskDefinitionRegistry,useClass:n.TaskDefinitionRegistryImpl},{token:A.IOpenerService,useClass:S.OpenerService},{token:j.IWindowService,useClass:Q.WindowService},{token:n.IApplicationService,useClass:v.ApplicationService},{token:P.IClipboardService,useClass:P.BrowserClipboardService},{token:O.IExternalUriService,useClass:O.ExternalUriService},{token:n.IAuthenticationService,useClass:p.AuthenticationService},{token:R.ICryptoService,useClass:R.CryptoService},{token:R.ICredentialsService,useClass:R.CredentialsService},{token:r.IHashCalculateService,useClass:r.HashCalculateServiceImpl},{token:n.IExtensionsSchemaService,useClass:h.ExtensionsPointServiceImpl},{token:n.AppLifeCycleServiceToken,useClass:Z.AppLifeCycleService},{token:k.StaticResourceService,useClass:F.StaticResourceServiceImpl},M.StaticResourceClientAppContribution,{token:g.ISplitPanelService,useClass:g.SplitPanelService},{token:n.IAIReporter,useClass:l.AIReporter},{token:a.IDesignStyleService,useClass:a.DesignStyleService},{token:m.ConnectionHelperFactory,useFactory:m.ConnectionHelperFactory}];V.addProviders(...H)}},82493:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AppLifeCycleService=void 0;const n=e(85608),r=e(76003),o=e(43718);let l=class{constructor(){this.onDidChangeLifecyclePhaseEmitter=new o.Emitter,this.onDidLifeCyclePhaseChange=this.onDidChangeLifecyclePhaseEmitter.event}set phase(v){this.lifeCyclePhase=v,this.onDidChangeLifecyclePhaseEmitter.fire(this.lifeCyclePhase)}get phase(){return this.lifeCyclePhase}};t.AppLifeCycleService=l,t.AppLifeCycleService=l=n.__decorate([(0,r.Injectable)()],l)},99696:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=e(85608).__importDefault(e(99126));typeof window.ResizeObserver>"u"&&(window.ResizeObserver=r.default)},36206:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BrowserModule=t.IClientApp=void 0;const n=e(85608),r=e(76003),o=e(43718);t.IClientApp=Symbol("CLIENT_APP_TOKEN");class l extends o.BasicModule{}t.BrowserModule=l,n.__decorate([(0,r.Autowired)(t.IClientApp),n.__metadata("design:type",Object)],l.prototype,"app",void 0)},14109:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MERGE_CONFLICT_COMMANDS=t.SCM_COMMANDS=t.QUICK_OPEN_COMMANDS=t.MARKER_COMMANDS=t.LAYOUT_COMMANDS=t.TERMINAL_COMMANDS=t.DIALOG_COMMANDS=t.KEYBOARD_COMMANDS=t.WORKSPACE_COMMANDS=t.OUTLINE_COMMANDS=t.SEARCH_COMMANDS=t.MULTI_DIFF_EDITOR_COMMANDS=t.DIFF_EDITOR_COMMANDS=t.EDITOR_COMMANDS=t.COMMON_COMMANDS=t.OPEN_EDITORS_COMMANDS=t.FILE_COMMANDS=void 0;const n=e(67304);var r;(function(b){const A="file";b.NEW_FILE={id:"file.new",category:A,iconClass:(0,n.getIcon)("new-file")},b.RENAME_FILE={id:"file.rename",category:A},b.DELETE_FILE={id:"file.delete",category:A},b.NEW_FOLDER={id:"file.folder.new",category:A,iconClass:(0,n.getIcon)("new-folder")},b.COMPARE_SELECTED={id:"file.compare",category:A},b.OPEN_FILE={id:"file.open",category:A},b.SAVE_FILE={id:"file.save",category:A},b.COLLAPSE_ALL={id:"filetree.collapse.all",category:A,iconClass:(0,n.getIcon)("collapse-all")},b.REFRESH_ALL={id:"filetree.refresh.all",category:A,iconClass:(0,n.getIcon)("refresh")},b.OPEN_RESOURCES={id:"filetree.open.file",category:A},b.OPEN_TO_THE_SIDE={id:"filetree.open.side",category:A},b.OPEN_TYPE_WITH={id:"filetree.open.with",category:A},b.COPY_PATH={id:"filetree.copy.path",category:A,label:"%file.copy.path%"},b.COPY_RELATIVE_PATH={id:"filetree.copy.relativepath",category:A},b.COPY_FILE={id:"filetree.copy.file",category:A},b.CUT_FILE={id:"filetree.cut.file",category:A},b.PASTE_FILE={id:"filetree.paste.file",category:A},b.SELECT_CURRENT_NODE={id:"filetree.selectCurrentNode",category:A},b.LOCATION={id:"filetree.location",category:A},b.LOCATION_WITH_EDITOR={id:"filetree.location_with_editor",category:A,iconClass:(0,n.getIcon)("focus")},b.OPEN_FOLDER={id:"filetree.open.folder",category:A,label:"%file.open.folder%"},b.VSCODE_OPEN_FOLDER={id:"filetree.open.vscode_open_folder",category:A},b.OPEN_WORKSPACE={id:"filetree.open.workspace",category:A,label:"%file.open.workspace%"},b.SEARCH_ON_FOLDER={id:"filetree.search.folder",category:A},b.FOCUS_FILES={id:"filetree.focus.files",category:A,label:"%file.focus.files%"},b.FILTER_TOGGLE={id:"filetree.files.filter_toggle",category:A,iconClass:(0,n.getIcon)("retrieval")},b.FILTER_OPEN={id:"filetree.files.filter_open",category:A},b.OPEN_TERMINAL_WITH_PATH={id:"filetree.openTerminalWithPath",category:A},b.FILTER_CLOSE={id:"filetree.quitFilterMode",category:A},b.NEXT={id:"filetree.next",category:A},b.PREV={id:"filetree.prev",category:A},b.COLLAPSE={id:"filetree.collapse",category:A},b.EXPAND={id:"filetree.expand",category:A},b.REVEAL_IN_EXPLORER={id:"filetree.revealInExplorer",category:A},b.TOGGLE_OR_OPEN={id:"filetree.toggleOrOpen",category:A}})(r||(t.FILE_COMMANDS=r={}));var o;(function(b){const A="openeditors";b.SAVE_ALL={id:"opened.editors.save.all",category:A,iconClass:(0,n.getIcon)("save-all")},b.CLOSE_ALL={id:"opened.editors.close.all",category:A,iconClass:(0,n.getIcon)("close-all")},b.SAVE_BY_GROUP={id:"opened.editors.save.byGroup"},b.CLOSE_BY_GROUP={id:"opened.editors.close.byGroup"},b.OPEN={id:"opened.editors.open",category:A},b.CLOSE={id:"opened.editors.close",category:A},b.OPEN_TO_THE_SIDE={id:"opened.editors.openToTheSide",category:A},b.COMPARE_SELECTED={id:"opened.editors.compare",category:A},b.COPY_RELATIVE_PATH={id:"opened.editors.copyRelativePath",category:A},b.COPY_PATH={id:"opened.editors.copyPath",category:A},b.LOCATION={id:"opened.editors.location",category:A}})(o||(t.OPEN_EDITORS_COMMANDS=o={}));var l;(function(b){b.FIND={id:"core.find",label:"%common.find%"},b.REPLACE={id:"core.replace",label:"%common.replace%"},b.ABOUT_COMMAND={id:"core.about",label:"%common.about%"},b.OPEN_PREFERENCES={id:"core.openpreference",label:"%common.preference.open%"},b.LOCATE_PREFERENCES={id:"workbench.preferences.locate"},b.OPEN_KEYMAPS={id:"core.keymaps.open",label:"%common.keymaps.open%"},b.OPEN_LAUNCH_CONFIGURATION={id:"core.launchConfiguration.open",label:"%debug.action.open.configuration%"},b.ENVIRONMENT_VARIABLE={id:"core.environment.variable"}})(l||(t.COMMON_COMMANDS=l={}));var _;(function(b){const A="editor";b.API_OPEN_EDITOR_COMMAND_ID="_workbench.open",b.API_OPEN_DIFF_EDITOR_COMMAND_ID="_workbench.diff",b.API_OPEN_WITH_EDITOR_COMMAND_ID="_workbench.openWith",b.VSCODE_OPEN_MULTI_DIFF_EDITOR_COMMAND_ID="_workbench.openMultiDiffEditor",b.NEW_UNTITLED_FILE={id:"file.new.untitled",category:A,label:"%file.new%",iconClass:(0,n.getIcon)("new-file")},b.UNDO={id:"editor.undo",category:A,label:"%editor.undo%"},b.REDO={id:"editor.redo",category:A,label:"%editor.redo%"},b.SELECT_ALL={id:"editor.selectAll",category:A,label:"%selection.all%"},b.OPEN_RESOURCE={id:"editor.openUri",category:A},b.OPEN_RESOURCES={id:"editor.openUris",category:A},b.SAVE_URI={id:"editor.saveUri",category:A},b.SAVE_CURRENT={id:"editor.saveCurrent",category:A,label:"%editor.saveCurrent%"},b.FOCUS_IF_NOT_ACTIVATE_ELEMENT={id:"editor.focusIfNotActivateElement",category:A,label:"%editor.saveCurrent%"},b.COMPARE={id:"editor.compare",category:A},b.OPEN_MERGEEDITOR={id:"editor.open.mergeEditor",category:A},b.OPEN_MERGEEDITOR_DEV={id:"editor.open.mergeEditor.dev",category:"Merge Editor (Dev)",label:"Open Merge Editor State from Json"},b.MERGEEDITOR_RESET={id:"editor.mergeEditor.reset",category:A,label:"%mergeEditor.reset%"},b.CLOSE={id:"editor.close",category:A,label:"%editor.closeCurrent%"},b.CLOSE_ALL_IN_GROUP={id:"editor.closeAllInGroup",category:A,label:"%editor.closeAllInGroup%"},b.CLOSE_OTHER_IN_GROUP={id:"editor.closeOtherEditorsInGroup",category:A,label:"%editor.closeOtherEditors%"},b.CLOSE_ALL={id:"editor.closeAll",category:A,label:"%editor.close.all%"},b.CLOSE_SAVED={id:"editor.closeSaved",category:A,label:"%editor.closeSaved%"},b.SAVE_ALL={id:"editor.saveAll",category:A,label:"%editor.saveAll%"},b.CLOSE_TO_RIGHT={id:"editor.closeToRight",category:A,label:"%editor.closeToRight%"},b.GET_CURRENT={id:"editor.getCurrent",category:A},b.GET_CURRENT_RESOURCE={id:"editor.getCurrentResource",category:A},b.SPLIT_TO_LEFT={id:"editor.splitToLeft",category:A,label:"%editor.splitToLeft%"},b.SPLIT_TO_RIGHT={id:"editor.splitToRight",category:A,label:"%editor.splitToRight%"},b.SPLIT_TO_TOP={id:"editor.splitToTop",category:A,label:"%editor.splitToTop%"},b.SPLIT_TO_BOTTOM={id:"editor.splitToBottom",category:A,label:"%editor.splitToBottom%"},b.CHANGE_LANGUAGE={id:"editor.changeLanguage",category:A},b.CHANGE_ENCODING={id:"editor.changeEncoding",category:A},b.GET_ENCODING={id:"editor.getEncoding",category:A},b.CHANGE_EOL={id:"editor.changeEol",category:A},b.NAVIGATE_LEFT={id:"editor.navigateLeft",category:A},b.NAVIGATE_RIGHT={id:"editor.navigateRight",category:A},b.NAVIGATE_UP={id:"editor.navigateUp",category:A},b.NAVIGATE_DOWN={id:"editor.navigateDown",category:A},b.NAVIGATE_NEXT={id:"editor.navigateNext",category:A},b.NAVIGATE_PREVIOUS={id:"editor.navigatePrevious",category:A},b.PREVIOUS={id:"editor.previous",category:A},b.NEXT={id:"editor.next",category:A},b.PREVIOUS_IN_GROUP={id:"editor.previousInGroup",category:A},b.NEXT_IN_GROUP={id:"editor.nextInGroup",category:A},b.LAST_IN_GROUP={id:"editor.lastInGroup",category:A},b.CLOSE_OTHER_GROUPS={id:"editor.closeOtherGroup",category:A,label:"%editor.closeEditorsInOtherGroups%"},b.OPEN_EDITOR_AT_INDEX={id:"editor.openEditorAtIndex",category:A},b.EVEN_EDITOR_GROUPS={id:"editor.evenEditorGroups",category:A,label:"%editor.resetEditorGroups%"},b.REVERT_DOCUMENT={id:"editor.document.revert",category:A,label:"%editor.revert%"},b.REVERT_AND_CLOSE={id:"editor.revertAndClose",category:A},b.GO_FORWARD={id:"editor.goForward",category:A},b.GO_BACK={id:"editor.goBack",category:A},b.PIN_CURRENT={id:"editor.pinCurrent",category:A},b.COPY_CURRENT_PATH={id:"editor.copyCurrentPath",category:A},b.GO_TO_GROUP={id:"editor.goToGroup",category:A},b.MOVE_GROUP={id:"editor.moveGroup",category:A},b.REOPEN_CLOSED={id:"editor.reopenClosed",category:A},b.FOCUS={id:"editor.focus",category:A},b.TEST_TOKENIZE={id:"editor.tokenize.test",category:A,label:"%editor.tokenize.test%"},b.AUTO_SAVE={id:"editor.autoSave",category:A},b.FOCUS_ACTIVE_EDITOR_GROUP={id:"editor.focusActiveEditorGroup",category:A},b.COMPONENT_UNDO={id:"editor.componentUndo",category:A},b.COMPONENT_REDO={id:"editor.componentRedo"},b.SEARCH_WORKSPACE_SYMBOL={id:"editor.workspaceSymbol.quickopen",label:"%editor.workspaceSymbol.quickopen%",category:A},b.SEARCH_WORKSPACE_SYMBOL_CLASS={id:"editor.workspaceSymbolClass.quickopen",label:"%editor.workspaceSymbolClass.quickopen%",category:A},b.GO_TO_LINE={id:"editor.action.gotoLine",label:"%editor.goToLine%",category:A},b.QUICK_OPEN={id:"workbench.action.quickOpen",category:A,label:"%editor.quickOpen%"},b.TOGGLE_WORD_WRAP={id:"editor.toggleWordWrap",label:"%editor.toggleWordWrap%",category:A},b.TOGGLE_COLUMN_SELECTION={id:"editor.action.toggleColumnSelection",label:"%editor.action.toggleColumnSelection%",category:A},b.FORMAT_DOCUMENT={id:"editor.action.formatDocument",category:A},b.FORMAT_SELECTION={id:"editor.action.formatSelection",category:A},b.FORMAT_DOCUMENT_WITH={id:"editor.action.formatDocument.multiple",category:A,label:"%editor.formatDocument.label.multiple%"},b.FORMAT_SELECTION_WITH={id:"editor.action.formatSelection.multiple",category:A,label:"%editor.formatSelection.label.multiple%"},b.COPY_PATH={id:"editor.action.copyPath",category:A,label:"%editor.copyPath%"},b.COPY_RELATIVE_PATH={id:"editor.action.copyRelativePath",category:A,label:"%editor.copyRelativePath%"}})(_||(t.EDITOR_COMMANDS=_={}));var v;(function(b){const A="diff-editor";b.REVERT={id:"editor.diff.revert",category:A},b.ACCEPT={id:"editor.diff.accept",category:A},b.TOGGLE_COLLAPSE_UNCHANGED_REGIONS={id:"editor.diff.toggleCollapseUnchangedRegions",category:A}})(v||(t.DIFF_EDITOR_COMMANDS=v={}));var m;(function(b){const A="multi-diff-editor";b.COLLAPSE_FILES={id:"editor.diff.collapseFiles",category:A},b.EXPAND_FILES={id:"editor.diff.expandFiles",category:A}})(m||(t.MULTI_DIFF_EDITOR_COMMANDS=m={}));var p;(function(b){const A="search";b.OPEN_SEARCH={id:"content-search.openSearch",category:A,label:"Open search sidebar"},b.REFRESH={id:"file-search.refresh",label:"refresh search",iconClass:(0,n.getIcon)("refresh"),category:A},b.CLEAN={id:"file-search.clean",label:"clean search",iconClass:(0,n.getIcon)("clear"),category:A},b.GET_RECENT_SEARCH_WORD={id:"search.getRecentSearchWordCmd",category:A},b.GET_BACK_RECENT_SEARCH_WORD={id:"search.getBackRecentSearchWordCmd",category:A},b.MENU_REPLACE={id:"search.menu.replace",category:A,label:"%search.replace.title%"},b.MENU_REPLACE_ALL={id:"search.menu.replaceAll",category:A,label:"%search.replaceAll.label%"},b.MENU_HIDE={id:"search.menu.hide",category:A,label:"%search.result.hide%"},b.MENU_COPY={id:"search.menu.copy",category:A,label:"%file.copy.file%"},b.MENU_COPY_ALL={id:"search.menu.copyAll",category:A,label:"%search.menu.copyAll%"},b.MENU_COPY_PATH={id:"search.menu.copyPath",category:A,label:"%file.copy.path%"},b.REPLACE={id:"search.replace",category:A},b.CLOSE={id:"search.close",category:A}})(p||(t.SEARCH_COMMANDS=p={}));var s;(function(b){const A="outline";b.OUTLINE_COLLAPSE_ALL={id:"outline.collapse.all",category:A},b.OUTLINE_FOLLOW_CURSOR={id:"outline.follow.cursor",category:A},b.OUTLINE_SORT_KIND={id:"outline.sort.kind",category:A},b.OUTLINE_SORT_NAME={id:"outline.sort.name",category:A},b.OUTLINE_SORT_POSITION={id:"outline.sort.position",category:A}})(s||(t.OUTLINE_COMMANDS=s={}));var g;(function(b){const A="workspace";b.ADD_WORKSPACE_FOLDER={id:"workspace.addFolderToWorkspace",label:"%workspace.addFolderToWorkspace%",category:A},b.REMOVE_WORKSPACE_FOLDER={id:"workspace.removeFolderFromWorkspace",label:"%workspace.removeFolderFromWorkspace%",category:A},b.SAVE_WORKSPACE_AS_FILE={id:"workspace.saveWorkspaceAsFile",label:"%workspace.saveWorkspaceAsFile%",category:A}})(g||(t.WORKSPACE_COMMANDS=g={}));var a;(function(b){const A="keyboard";b.CHOOSE_KEYBOARD_LAYOUT={id:"keyboard.chooseKeyboardLayout",label:"%keyboard.chooseKeyboardLayout%",category:A}})(a||(t.KEYBOARD_COMMANDS=a={}));var h;(function(b){const A="dialog";b.ENSURE={id:"dialog.ensure",category:A}})(h||(t.DIALOG_COMMANDS=h={}));var u;(function(b){b.CATEGORY="%terminal.name%",b.FOCUS_NEXT_TERMINAL={id:"workbench.action.terminal.focusNextPane",label:"%terminal.focusNext.inTerminalGroup%",category:b.CATEGORY},b.FOCUS_PREVIOUS_TERMINAL={id:"workbench.action.terminal.focusPreviousPane",label:"%terminal.focusPrevious.inTerminalGroup%",category:b.CATEGORY},b.SPLIT={id:"terminal.split",label:"%terminal.split%",category:b.CATEGORY},b.ADD={id:"terminal.add",label:"%terminal.new%",category:b.CATEGORY},b.REMOVE={id:"terminal.remove",label:"%terminal.remove%",category:b.CATEGORY},b.CLEAR={id:"terminal.clear",label:"%terminal.clear%",category:b.CATEGORY},b.OPEN_SEARCH={id:"terminal.search",label:"%terminal.search%",category:b.CATEGORY},b.SEARCH_NEXT={id:"terminal.search.next",label:"%terminal.search.next%",category:b.CATEGORY},b.OPEN_WITH_PATH={id:"terminal.openWithPath",category:b.CATEGORY},b.CLEAR_CONTENT={id:"terminal.clearContent",label:"%terminal.menu.clearCurrentContent%",category:b.CATEGORY},b.CLEAR_ALL_CONTENT={id:"terminal.clearAllContent",label:"%terminal.menu.clearAllContents%",category:b.CATEGORY},b.TAB_RENAME={id:"terminal.tabRename",category:b.CATEGORY},b.SELECT_ALL_CONTENT={id:"terminal.selectAllContent",label:"%terminal.menu.selectAllContent%",category:b.CATEGORY},b.MORE_SETTINGS={id:"terminal.moreSettings",label:"%terminal.menu.moreSettings%",category:b.CATEGORY},b.SELECT_TYPE={id:"terminal.selectType",category:b.CATEGORY},b.SELECT_ZSH={id:"terminal.selectTypeZsh",label:"zsh",category:b.CATEGORY},b.SELECT_BASH={id:"terminal.selectTypeBash",label:"bash",category:b.CATEGORY},b.SELECT_SH={id:"terminal.selectTypeSh",label:"sh",category:b.CATEGORY},b.SELECT_CMD={id:"terminal.selectTypeCMD",label:"cmd",category:b.CATEGORY},b.SELECT_POWERSHELL={id:"terminal.selectTypePowerShell",label:"powershell",category:b.CATEGORY},b.COPY={id:"terminal.copy",label:"%edit.copy%",category:b.CATEGORY},b.PASTE={id:"terminal.paste",label:"%edit.paste%",category:b.CATEGORY},b.SELECT_ALL={id:"terminal.selectAll",label:"%terminal.menu.selectCurrentContent%",category:b.CATEGORY},b.RE_LAUNCH={id:"terminal.relaunch",category:b.CATEGORY},b.TOGGLE_TERMINAL={id:"terminal.toggleTerminal",label:"%terminal.toggleTerminal%",category:b.CATEGORY},b.KILL_PROCESS={id:"terminal.killProcess",label:"%terminal.killProcess%",category:b.CATEGORY}})(u||(t.TERMINAL_COMMANDS=u={}));var c;(function(b){const A="view";b.QUICK_OPEN_VIEW={id:"layout.action.quickOpenView",category:A},b.OPEN_VIEW={id:"layout.action.openView",label:"%layout.action.openView%",category:A},b.MAXIMIZE_EDITOR={id:"layout.action.Maximizeeditor",category:A},b.TOGGLE_SIDEBAR_VISIBILITY={id:"main-layout.view.toggle",category:A}})(c||(t.LAYOUT_COMMANDS=c={}));var E;(function(b){const A="marker";b.SHOW_ERRORS_WARNINGS={id:"marker.action.showErrorsWarnings",category:A},b.TOGGLE_SHOW_ERRORS_WARNINGS={id:"marker.action.toggleShowErrorsWarnings",category:A}})(E||(t.MARKER_COMMANDS=E={}));var f;(function(b){b.OPEN={id:"editor.action.quickCommand"},b.OPEN_OUTLINE={id:"editor.action.quickOutline"},b.OPEN_VIEW={id:"editor.action.quickView"},b.OPEN_WITH_COMMAND={id:"editor.action.quickCommand.withCommand"}})(f||(t.QUICK_OPEN_COMMANDS=f={}));var d;(function(b){const A="SCM";b.GetSCMResource={id:"scm.getResource",category:A},b._GIT_OPEN_MERGE_EDITOR={id:"_git.openMergeEditor"},b.GIT_OPEN_MERGE_EDITOR={id:"git.openMergeEditor"}})(d||(t.SCM_COMMANDS=d={}));var y;(function(b){const A="MergeConflict";b.AI_ACCEPT={id:"merge-conflict.ai.accept",category:A},b.ALL_RESET={id:"merge-conflict.ai.all-reset",category:A},b.AI_ALL_ACCEPT={id:"merge-conflict.ai.all-accept",category:A},b.AI_ALL_ACCEPT_STOP={id:"merge-conflict.ai.all-accept-stop",category:A}})(y||(t.MERGE_CONFLICT_COMMANDS=y={}))},22780:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ClientCommonContribution=t.locationProtocolContextKey=t.inputFocusedContextKey=void 0;const n=e(85608),r=e(76003),o=e(97267),l=e(43718),_=e(53736),v=e(18193),m=e(22366),p=e(41118),s=e(1149),g=e(64102),a=e(39496),h=e(78132),u=e(11050),c=e(14109),E=e(66549);t.inputFocusedContextKey="inputFocus",t.locationProtocolContextKey="locationProtocol";let f=class{constructor(){this.schema=v.corePreferenceSchema;const y={"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},b=Object.keys(this.schema.properties);for(const A of b)this.schema.properties[A].default=y[A]||this.schema.properties[A].default}onStart(){this.contextKeyService.createKey(t.locationProtocolContextKey,window.location.protocol.split(":")[0]),this.inputFocusedContext=this.contextKeyService.createKey(t.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 y=this.activeElementIsInput();if(this.inputFocusedContext.set(y),y){const b=(0,m.trackFocus)(document.activeElement);l.Event.once(b.onDidBlur)(()=>{this.inputFocusedContext.set(this.activeElementIsInput()),b.dispose()})}}registerCommands(y){y.registerCommand(c.EDITOR_COMMANDS.UNDO),y.registerCommand(c.EDITOR_COMMANDS.REDO),y.registerCommand(c.EDITOR_COMMANDS.SELECT_ALL),y.registerCommand(c.COMMON_COMMANDS.ABOUT_COMMAND,{execute:()=>{alert((0,l.replaceLocalizePlaceholder)(this.appConfig.appName))}})}registerMenus(y){y.registerMenubarItem(a.MenuId.MenubarFileMenu,{label:(0,l.localize)("menu-bar.title.file"),order:1,iconClass:(0,o.getIcon)("menubar-file")}),y.registerMenubarItem(a.MenuId.MenubarEditMenu,{label:(0,l.localize)("menu-bar.title.edit"),order:2,iconClass:(0,o.getIcon)("menubar-edit")}),y.registerMenubarItem(a.MenuId.MenubarSelectionMenu,{label:(0,l.localize)("menu-bar.title.selection"),order:3,iconClass:(0,o.getIcon)("menubar-selection")}),y.registerMenubarItem(a.MenuId.MenubarViewMenu,{label:(0,l.localize)("menu-bar.title.view"),order:4,iconClass:(0,o.getIcon)("menubar-view")}),y.registerMenubarItem(a.MenuId.MenubarGoMenu,{label:(0,l.localize)("menu-bar.title.go"),order:5,iconClass:(0,o.getIcon)("menubar-go")}),y.registerMenubarItem(a.MenuId.MenubarTerminalMenu,{label:(0,l.localize)("menu-bar.title.terminal"),order:5,iconClass:(0,o.getIcon)("terminal")}),y.registerMenubarItem(a.MenuId.MenubarHelpMenu,{label:(0,l.localize)("menu-bar.title.help"),order:999,iconClass:(0,o.getIcon)("question-circle")}),y.registerMenuItems(a.MenuId.MenubarFileMenu,[{command:c.FILE_COMMANDS.OPEN_FOLDER.id,group:"1_open",when:"config.application.supportsOpenFolder"},{command:c.FILE_COMMANDS.OPEN_WORKSPACE.id,group:"1_open",when:"config.application.supportsOpenWorkspace"},{command:c.WORKSPACE_COMMANDS.ADD_WORKSPACE_FOLDER.id,group:"1_open",when:"config.workspace.supportMultiRootWorkspace"},{command:c.WORKSPACE_COMMANDS.SAVE_WORKSPACE_AS_FILE.id,group:"1_open",when:"config.workspace.supportMultiRootWorkspace"},{command:c.EDITOR_COMMANDS.NEW_UNTITLED_FILE.id,group:"2_new"},{command:{id:c.EDITOR_COMMANDS.SAVE_CURRENT.id,label:(0,l.localize)("file.save")},group:"3_save"},{command:{id:c.EDITOR_COMMANDS.SAVE_ALL.id,label:(0,l.localize)("file.saveAll")},group:"3_save"},{command:{id:c.EDITOR_COMMANDS.AUTO_SAVE.id,label:(0,l.localize)("file.autoSave")},toggledWhen:"config.editor.autoSave != off",group:"4_autosave"}]),y.registerMenuItems(a.MenuId.MenubarGoMenu,[{command:{id:c.EDITOR_COMMANDS.GO_BACK.id,label:(0,l.localize)("editor.goBack")},group:"1_go"},{command:{id:c.EDITOR_COMMANDS.GO_FORWARD.id,label:(0,l.localize)("editor.goForward")},group:"1_go"},{command:{id:c.EDITOR_COMMANDS.QUICK_OPEN.id,label:(0,l.localize)("editor.quickOpen")},group:"2_go_file"},{command:{id:c.EDITOR_COMMANDS.SEARCH_WORKSPACE_SYMBOL.id,label:(0,l.localize)("editor.workspaceSymbol.quickopen")},group:"2_go_file"},{command:{id:c.EDITOR_COMMANDS.GO_TO_LINE.id,label:(0,l.localize)("editor.goToLine")},group:"3_go_infile"},{command:{id:"editor.action.jumpToBracket",label:(0,l.localize)("menu-bar.go.jumpToBracket")},group:"3_go_infile"},{command:{id:"editor.action.marker.nextInFiles",label:(0,l.localize)("menu-bar.go.nextProblemInFiles")},group:"6_go_problem"},{command:{id:"editor.action.marker.prevInFiles",label:(0,l.localize)("menu-bar.go.prevProblemInFiles")},group:"6_go_problem"}]),y.registerMenuItems(a.MenuId.MenubarTerminalMenu,[{command:{id:c.TERMINAL_COMMANDS.ADD.id,label:c.TERMINAL_COMMANDS.ADD.label},group:"1_terminal"},{command:{id:c.TERMINAL_COMMANDS.SPLIT.id,label:c.TERMINAL_COMMANDS.SPLIT.label},group:"1_terminal"}])}registerKeybindings(y){y.registerKeybinding({command:c.EDITOR_COMMANDS.SELECT_ALL.id,keybinding:"ctrlcmd+a",when:"editorFocus"}),y.registerKeybinding({command:c.EDITOR_COMMANDS.UNDO.id,keybinding:"ctrlcmd+z",when:"editorFocus"}),y.registerKeybinding({command:c.EDITOR_COMMANDS.REDO.id,keybinding:"ctrlcmd+shift+z",when:"editorFocus"})}};t.ClientCommonContribution=f,n.__decorate([(0,r.Autowired)(l.CommandService),n.__metadata("design:type",Object)],f.prototype,"commandService",void 0),n.__decorate([(0,r.Autowired)(_.IContextKeyService),n.__metadata("design:type",Object)],f.prototype,"contextKeyService",void 0),n.__decorate([(0,r.Autowired)(u.AppConfig),n.__metadata("design:type",Object)],f.prototype,"appConfig",void 0),n.__decorate([(0,r.Autowired)(s.LayoutViewSizeConfig),n.__metadata("design:type",s.LayoutViewSizeConfig)],f.prototype,"layoutViewSize",void 0),t.ClientCommonContribution=f=n.__decorate([(0,l.Domain)(l.CommandContribution,E.ClientAppContribution,h.PreferenceContribution,g.MenuContribution,p.KeybindingContribution),n.__metadata("design:paramtypes",[])],f)},66549:(x,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ClientAppContribution=void 0,t.ClientAppContribution=Symbol("ClientAppContribution")},34505:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ClientCommonModule=void 0;const n=e(85608),r=e(76003),o=e(16908),l=e(43718),_=e(37638),v=e(36206),m=e(136),p=e(90697),s=e(45829),g=e(44867),a=e(22780),h=e(10797),u=e(17821);let c=class extends v.BrowserModule{constructor(){super(...arguments),this.contributionProvider=[p.OpenerContribution],this.providers=[a.ClientCommonContribution,g.DefaultOpenerContribution,g.OpenerContributionClient,_.AuthenticationContribution,m.HashCalculateContribution],this.electronProviders=[h.ClientElectronCommonContribution,s.ElectronOpenerContributionClient],this.webProviders=[u.ClientWebCommonContribution],this.backServices=[{servicePath:l.CommonServerPath,protocol:o.CommonServerProtocol},{servicePath:l.KeytarServicePath},{servicePath:l.CryptoServicePath}]}};t.ClientCommonModule=c,t.ClientCommonModule=c=n.__decorate([(0,r.Injectable)()],c)},98881:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RecentStorage=void 0;const n=e(85608),r=e(76003),o=e(43718);let l=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}};t.RecentStorage=l,n.__decorate([(0,r.Autowired)(o.StorageProvider),n.__metadata("design:type",Function)],l.prototype,"getStorage",void 0),t.RecentStorage=l=n.__decorate([(0,r.Injectable)()],l)},30144:(x,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EXTENSION_CONTAINER_ID=t.SCM_CONTAINER_ID=t.SEARCH_CONTAINER_ID=t.EXPLORER_CONTAINER_ID=t.DEBUG_CONTAINER_ID=t.TEST_RESULT_CONTAINER_ID=t.DEBUG_CONSOLE_CONTAINER_ID=t.TERMINAL_CONTAINER_ID=t.OUTPUT_CONTAINER_ID=t.MARKER_CONTAINER_ID=void 0,t.MARKER_CONTAINER_ID="markers",t.OUTPUT_CONTAINER_ID="output",t.TERMINAL_CONTAINER_ID="terminal",t.DEBUG_CONSOLE_CONTAINER_ID="debug-console",t.TEST_RESULT_CONTAINER_ID="test-result",t.DEBUG_CONTAINER_ID="debug",t.EXPLORER_CONTAINER_ID="explorer",t.SEARCH_CONTAINER_ID="search",t.SCM_CONTAINER_ID="scm",t.EXTENSION_CONTAINER_ID="extension"},10797:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ClientElectronCommonContribution=void 0;const n=e(85608),r=e(76003),o=e(43718),l=e(64102),_=e(39496),v=e(11050);let m=class{registerMenus(s){s.registerMenubarItem(_.MenuId.MenubarAppMenu,{label:(0,o.localize)("app.name",this.appConfig.appName),order:0}),s.registerMenuItems(_.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"}]),s.registerMenuItems(_.MenuId.MenubarAppMenu,[{command:{id:"electron.quit",label:(0,o.localize)("app.quit")},nativeRole:"quit",group:"4_quit"}])}};t.ClientElectronCommonContribution=m,n.__decorate([(0,r.Autowired)(v.AppConfig),n.__metadata("design:type",Object)],m.prototype,"appConfig",void 0),t.ClientElectronCommonContribution=m=n.__decorate([(0,o.Domain)(l.MenuContribution)],m)},66963:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=e(85608);n.__exportStar(e(14109),t),n.__exportStar(e(34505),t),n.__exportStar(e(66549),t),n.__exportStar(e(98881),t)},17821:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ClientWebCommonContribution=void 0;const n=e(85608),r=e(43718),o=e(64102),l=e(39496),_=e(14109);let v=class{registerMenus(p){p.registerMenuItems(l.MenuId.MenubarEditMenu,[{command:_.EDITOR_COMMANDS.REDO.id,group:"1_undo"},{command:_.EDITOR_COMMANDS.UNDO.id,group:"1_undo"}]),p.registerMenuItem(l.MenuId.MenubarHelpMenu,{command:{id:_.COMMON_COMMANDS.ABOUT_COMMAND.id,label:_.COMMON_COMMANDS.ABOUT_COMMAND.label},nativeRole:"about",group:"0_about"})}};t.ClientWebCommonContribution=v,t.ClientWebCommonContribution=v=n.__decorate([(0,r.Domain)(o.MenuContribution)],v)},25918:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TitleActionList=t.InlineActionWidget=t.MenuActionList=void 0,t.InlineActionBar=d,t.InlineMenuBar=y;const n=e(85608),r=n.__importDefault(e(53373)),o=n.__importStar(e(14041)),l=e(97267),_=e(45803),v=e(43718),m=e(93899),p=e(48560),s=e(79951),g=e(55693),a=n.__importDefault(e(17647)),h=n.__importDefault(e(54859)),u=({data:b,hasSubmenu:A,disabled:S,iconService:D,hasChecked:I})=>o.default.createElement("div",{className:(0,r.default)(h.default.menuAction,{[h.default.disabled]:S,[h.default.checked]:b.checked})},o.default.createElement("div",{className:(0,r.default)({[h.default.icon]:I})},b.checked?o.default.createElement(l.Icon,{icon:"check"}):null),o.default.createElement("div",{className:h.default.label},b.label?(0,s.transformLabelWithCodicon)(v.strings.mnemonicButtonLabel(b.label,!0),{margin:"0 3px"},D?.fromString.bind(D)):""),o.default.createElement("div",{className:h.default.tip},b.keybinding?o.default.createElement("div",{className:h.default.shortcut},b.keybinding):null,A?o.default.createElement("div",{className:h.default.submenuIcon},o.default.createElement(l.Icon,{icon:"right"})):null,!b.keybinding&&!A&&b.extraDesc&&o.default.createElement("div",{className:h.default.extraDesc},b.extraDesc))),c=({data:b=[],context:A=[],afterClick:S,style:D,iconService:I,renderSubMenuTitle:w,renderMenuItem:T})=>{if(!b.length)return null;const R=o.default.useCallback(k=>{const{key:F,item:L}=k;if([m.SeparatorMenuItemNode.ID,m.SubmenuItemNode.ID].includes(F))return;const U=(Array.isArray(L.props.children)?L.props.children[0]:L.props.children).props.data;U&&(typeof U.execute=="function"&&U.execute(A),typeof S=="function"&&S(U))},[b,A]),P=o.default.useCallback((k,F)=>{if(w){const L=w(k,{hasSubmenu:!0,disabled:!1});if(L)return L}return o.default.createElement(u,{hasChecked:F,hasSubmenu:!0,data:k,iconService:I})},[w]),O=o.default.useCallback((k,F)=>{if(T){const L=T(k,{hasSubmenu:!1,disabled:k.disabled});if(L)return L}return o.default.createElement(u,{hasChecked:F,data:k,disabled:k.disabled,iconService:I})},[T]),M=o.default.useCallback(k=>{const F=k.some(L=>L.checked);return k.map((L,B)=>{if(L.id===m.SeparatorMenuItemNode.ID)return null;const U=k[B+1]&&k[B+1].id===m.SeparatorMenuItemNode.ID;return L.id===m.SubmenuItemNode.ID?!Array.isArray(L.children)||!L.children.length?null:o.default.createElement(o.default.Fragment,{key:`${L.id}-${L.submenuId}-${B}`},o.default.createElement(_.Menu.SubMenu,{key:`${L.id}-${L.submenuId}-${B}`,className:h.default.submenuItem,popupClassName:"kt-menu",title:P(L,F)},M(L.children)),U?o.default.createElement(_.Menu.Divider,{key:`divider-${B}`,className:h.default.menuItemDivider}):null):o.default.createElement(o.default.Fragment,{key:`${L.id}-${B}`},o.default.createElement(_.Menu.Item,{id:`${L.id}-${B}`,key:`${L.id}-${B}`,className:h.default.menuItem,disabled:L.disabled},O(L,F)),U?o.default.createElement(_.Menu.Divider,{key:`divider-${B}`,className:h.default.menuItemDivider}):null)})},[]);return o.default.createElement(_.Menu,{className:"kt-menu",selectable:!1,motion:{motionLeave:!1,motionEnter:!1},builtinPlacements:a.default,onClick:R,style:D},M(b))};t.MenuActionList=c;const E=({type:b,icon:A,disabled:S,onClick:D,title:I})=>{const w=(0,g.useDesignStyles)(h.default.btnAction,"btnAction");if(b==="icon")return o.default.createElement(l.Button,{size:"small",type:b,className:w,onClick:D,title:I,icon:A||"ellipsis"});const T={};return(0,v.isBoolean)(S)&&(T.disabled=S),o.default.createElement(l.Button,{size:"small",type:"secondary",className:w,onClick:D,...T,title:I},o.default.createElement(l.Icon,{icon:A||"ellipsis"}))};E.displayName="EllipsisWidget",t.InlineActionWidget=o.default.memo(({iconService:b,type:A="icon",data:S,context:D=[],className:I,afterClick:w,...T})=>{const R=(0,g.useDesignStyles)(h.default.iconAction,"iconAction"),P=(0,g.useDesignStyles)(h.default.btnAction,"btnAction"),[O,M]=(0,o.useState)(!1),k=o.default.useCallback(async(U,...W)=>{if(U&&(U.preventDefault(),U.stopPropagation()),!O){if(M(!0),S.id===m.SubmenuItemNode.ID&&U){const j={x:U.clientX,y:U.clientY};await S.execute([j,...D])}else typeof S.execute=="function"&&await S.execute([...D,...W]);M(!1),typeof w=="function"&&w()}},[S,D]),[F,L]=o.default.useMemo(()=>{let U=S.tooltip||S.label;const W=S.label;return S.keybinding&&(U=`${U} (${S.keybinding})`),[U,W]},[S]),B=S.id===m.SubmenuItemNode.ID;return A==="icon"&&!S.type?o.default.createElement(l.Button,{type:S.icon?"icon":"link",className:(0,r.default)(R,I,{[h.default.disabled]:S.disabled,[h.default.submenuIconAction]:B}),title:F,iconClass:S.icon,onClick:k,...T},!S.icon&&L):S.type==="checkbox"?o.default.createElement(l.CheckBox,{className:(0,r.default)(I,P),disabled:S.disabled,label:S.label,title:F,checked:S.checked,onChange:U=>k(void 0,U.target.checked),...T}):o.default.createElement(l.Button,{loading:O,showLoadingIcon:!1,className:(0,r.default)(I,P),disabled:S.disabled,onClick:k,size:"small",type:S.type,title:F,...T},(0,s.transformLabelWithCodicon)(L,{margin:"0 3px"},b?.fromString.bind(b)),B&&o.default.createElement(l.Icon,{icon:"down",className:"kt-button-secondary-more"}))}),t.InlineActionWidget.displayName="InlineAction";const f=({data:b,context:A})=>{const S=o.default.useCallback(()=>b.getExecuteArgs(A),[b,A]);return o.default.createElement(b.component,{getExecuteArgs:S})};f.displayName="CustomAction",t.TitleActionList=o.default.memo(({type:b="icon",nav:A=[],more:S=[],moreIcon:D,moreTitle:I,context:w=[],extraNavActions:T=[],moreAtFirst:R=!1,className:P,afterClick:O,menuId:M,iconService:k,regroup:F=(...L)=>L})=>{const L=(0,p.useInjectable)(m.ICtxMenuRenderer),B=(0,p.useInjectable)(m.AbstractMenuService),U=(0,g.useDesignStyles)(h.default.titleActions,"titleActions"),[W,j]=F(A,S),Q=o.default.useCallback(Z=>{Z.preventDefault(),Z.stopPropagation(),j&&L.show({anchor:{x:Z.clientX,y:Z.clientY},menuNodes:j,args:w,onHide:O})},[j,w]);if(W.length===0&&j.length===0&&T.length===0)return null;const G=j.length>0?o.default.createElement(E,{disabled:j[0].disabled,icon:D,type:b,onClick:Q,title:I}):null;return o.default.createElement("div",{className:(0,r.default)([U,P]),"data-menu-id":M},R&&G,W.map(Z=>{if(Z.id===m.ComponentMenuItemNode.ID)return o.default.createElement(f,{context:w,data:Z,key:Z.nodeId});if(Z.id===m.SubmenuItemNode.ID){const V=B.createMenu(Z.submenuId);if(!((0,m.generateMergedCtxMenu)({menus:V}).length>0))return}if(Z.id===m.SeparatorMenuItemNode.ID)return o.default.createElement("span",{key:`vertical-divider-${Z.id}`,className:h.default.verticalDivider});const $=Z.id===m.SubmenuItemNode.ID?Z.submenuId:Z.id;return o.default.createElement(t.InlineActionWidget,{id:$,key:$,className:(0,r.default)({[h.default.selected]:Z.checked}),type:b,data:Z,afterClick:O,context:w,iconService:k})}),Array.isArray(T)&&T.length?o.default.createElement(o.default.Fragment,null,W.length&&o.default.createElement("span",{className:h.default.divider}),T):null,!R&&G)}),t.TitleActionList.displayName="TitleActionList";function d(b){const{menus:A,context:S,separator:D="navigation",debounce:I,isFlattenMenu:w=!1,...T}=b,[R,P]=(0,g.useMenus)(A,D,S,I),O=(0,o.useMemo)(()=>w?[...R,...P]:R,[R,P,w]);return o.default.createElement(t.TitleActionList,{menuId:A.menuId,nav:O,more:D==="inline"||w?[]:P,...T})}function y(b){const{iconService:A,menus:S,context:D,moreIcon:I,moreTitle:w,separator:T="navigation",...R}=b,[P,O]=(0,g.useContextMenus)(S);return o.default.createElement(t.TitleActionList,{menuId:S.menuId,nav:P,more:T==="inline"?[]:O,moreIcon:I,moreTitle:w,context:D,iconService:A,...R})}y.displayName="InlineMenuBar"},17647:(x,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.placements=void 0;const e={adjustX:1,adjustY:1},n=[0,0];t.placements={topLeft:{points:["bl","tl"],overflow:e,offset:[0,-4],targetOffset:n},topCenter:{points:["bc","tc"],overflow:e,offset:[0,-4],targetOffset:n},topRight:{points:["br","tr"],overflow:e,offset:[0,-4],targetOffset:n},bottomLeft:{points:["tl","bl"],overflow:e,offset:[0,4],targetOffset:n},bottomCenter:{points:["tc","bc"],overflow:e,offset:[0,4],targetOffset:n},bottomRight:{points:["tr","br"],overflow:e,offset:[0,4],targetOffset:n}},t.default=t.placements},89847:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AIAction=void 0;const n=e(85608),r=n.__importDefault(e(53373)),o=n.__importStar(e(14041)),l=e(43718),_=e(70650),v=e(22689),m=e(48560),p=e(57995),s=e(24951),g=e(49716),a=e(52141),h=n.__importDefault(e(27410)),u=(0,v.createLayoutEventType)(l.AIInlineChatContentWidgetId),c=new CustomEvent(u,{bubbles:!0}),E=f=>{const{operationList:d,moreOperation:y,showClose:b=!0,onClickItem:A,onClose:S,customOperationRender:D,loading:I,loadingShowOperation:w=!1}=f,T=o.default.useRef(null),[R,P]=(0,m.useHover)(),O=(0,m.useInjectable)(_.AINativeConfigService),M=(0,o.useCallback)(()=>{S?.()},[S]);(0,m.useChange)(P,()=>{var B;(B=T.current)===null||B===void 0||B.dispatchEvent(c)});const k=(0,o.useMemo)(()=>{const B=O?.inlineChat.logo;return typeof B=="string"?o.default.createElement("img",{src:B,className:h.default.ai_action_icon}):o.default.isValidElement(B)?B:typeof B=="function"?o.default.createElement(B,null):null},[O?.inlineChat.logo]),F=(0,o.useCallback)(()=>I&&w?o.default.createElement("div",{className:h.default.loading_mask}):null,[I,w]),L=(0,o.useCallback)(()=>{if(I&&!w)return null;const B=o.default.createElement(o.default.Fragment,null,d?.map(({name:U,title:W,id:j},Q)=>W?o.default.createElement(a.EnhancePopover,{id:j,title:W,key:`popover_${Q}`},o.default.createElement(p.EnhanceIcon,{wrapperClassName:h.default.operate_item,onClick:()=>A?.(j)},o.default.createElement("span",{key:Q},U))):o.default.createElement(p.EnhanceIcon,{wrapperClassName:h.default.operate_item,onClick:()=>A?.(j),key:Q},o.default.createElement("span",null,U))),y?.length?o.default.createElement(p.EnhanceIconWithCtxMenu,{icon:"more",menuNodes:y,wrapperClassName:h.default.operate_btn,skew:{x:-83,y:5}}):null);return o.default.createElement("div",{ref:R,className:h.default.operate_container},F(),k&&o.default.createElement(s.LineVertical,{height:"100%",margin:"0 8px",maxHeight:14,minHeight:14}),D?o.default.createElement("div",{className:h.default.custom_operation_wrapper},D):o.default.createElement("div",{className:h.default.default_operation_wrapper},B))},[D,d,y,I,w,k]);return o.default.createElement("div",{ref:T,className:(0,r.default)(h.default.ai_action_wrapper,I&&h.default.loading,w&&h.default.loading_show_operation)},o.default.createElement(o.default.Fragment,null,o.default.createElement("div",{className:h.default.stable_container},I?o.default.createElement(a.EnhancePopover,{id:"inline_chat_loading",title:(0,l.localize)("aiNative.inline.chat.operate.loading.cancel")},o.default.createElement(g.Loading,{className:h.default.loading_icon})):k?o.default.createElement("div",{className:h.default.logo_container},k):null),L(),b&&o.default.createElement("div",{className:h.default.close_container},o.default.createElement(s.LineVertical,{height:"100%",margin:"0px 8px",maxHeight:14,minHeight:14}),o.default.createElement(p.EnhanceIcon,{wrapperClassName:h.default.operate_btn,icon:"window-close",onClick:M}))))};t.AIAction=E},66205:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ContentWidgetContainerPanel=void 0;const n=e(85608),r=n.__importDefault(e(14041)),o=n.__importDefault(e(41771)),l=_=>r.default.createElement("div",{className:o.default.inline_chat_container_panel,style:_.style},_.children);t.ContentWidgetContainerPanel=l},57995:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AILogoAvatar=t.EnhanceIconWithCtxMenu=t.EnhanceIcon=void 0;const n=e(85608),r=n.__importDefault(e(53373)),o=n.__importStar(e(14041)),l=e(43718),_=e(81878),v=e(97222),m=e(48560),p=n.__importDefault(e(42798));t.EnhanceIcon=o.default.forwardRef((a,h)=>o.default.createElement("div",{className:(0,r.default)(a.wrapperClassName,p.default.ai_enhance_icon),style:a.wrapperStyle,onClick:a.onClick,ref:h,tabIndex:a.tabIndex,role:a.role,"aria-label":a.ariaLabel,"aria-pressed":a.ariaPressed},o.default.createElement(_.Icon,{className:(0,r.default)(a.className,p.default.icon),children:null,onClick:()=>null,style:(a.icon||a.iconClass)&&a.children?{marginRight:5}:{},icon:a.icon,iconClass:a.iconClass}),a.children&&o.default.createElement("span",{className:p.default.children_wrap},a.children)));const s=a=>{const{children:h,menuNodes:u,skew:c,id:E,...f}=a,d=(0,m.useInjectable)(l.CommandService),y=(0,m.useInjectable)(v.IBrowserCtxMenu),[b,A]=o.default.useState(void 0),S=o.default.useRef(null);o.default.useEffect(()=>{D()},[S.current,c]);const D=(0,o.useCallback)(w=>{requestAnimationFrame(()=>{if(S.current){const T=S.current.getBoundingClientRect(),{x:R,y:P,width:O,height:M}=T,k={x:R+O,y:P+M};c&&(k.x+=c.x,k.y+=c.y),A(k),w&&w(k)}})},[S.current,c]),I=o.default.useCallback(()=>{b&&(u?D(w=>{y.show({anchor:w,menuNodes:u})}):E&&d.executeCommand(E))},[S.current,u,b,E]);return o.default.createElement(t.EnhanceIcon,{ref:S,onClick:I,...f},h)};t.EnhanceIconWithCtxMenu=s;const g=a=>o.default.createElement("div",{className:(0,r.default)(p.default.ai_logo_avatar_container,a.className)},o.default.createElement(_.Icon,{icon:"magic-wand",className:(0,r.default)(a.iconClassName,p.default.avatar_icon)}));t.AILogoAvatar=g},89195:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=e(85608);n.__exportStar(e(89847),t),n.__exportStar(e(57995),t),n.__exportStar(e(28229),t),n.__exportStar(e(24951),t),n.__exportStar(e(52141),t),n.__exportStar(e(75777),t),n.__exportStar(e(49716),t),n.__exportStar(e(83913),t)},28229:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AIInlineResult=void 0;const n=e(85608),r=n.__importDefault(e(53373)),o=n.__importDefault(e(14041)),l=e(57995),_=e(24951),v=e(75777),m=n.__importDefault(e(5011)),p=s=>{const{iconItems:g,isRenderThumbs:a=!0,isRenderClose:h=!1,closeClick:u}=s;return o.default.createElement("div",{className:m.default.ai_inline_result_panel},o.default.createElement("div",{className:m.default.side},g.map(({icon:c,text:E,onClick:f,btnType:d},y)=>o.default.createElement(l.EnhanceIcon,{wrapperClassName:(0,r.default)(m.default.operate_btn,d==="default"?m.default.default:""),icon:c,onClick:f,key:y},o.default.createElement("span",null,E)))),a&&o.default.createElement(o.default.Fragment,null,o.default.createElement(_.LineVertical,{height:"60%",margin:"0px 6px 0 6px"}),o.default.createElement("div",{className:m.default.side},o.default.createElement(v.Thumbs,{wrapperClassName:m.default.operate_icon}))),h&&o.default.createElement(o.default.Fragment,null,o.default.createElement(l.EnhanceIcon,{wrapperClassName:m.default.operate_btn,icon:"close",onClick:u})))};t.AIInlineResult=p},83913:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.InteractiveInput=void 0;const n=e(85608),r=n.__importDefault(e(53373)),o=n.__importStar(e(14041)),l=e(97267),_=e(43718),v=e(37015),m=e(48560),p=e(7369),s=e(89195),g=n.__importDefault(e(42348)),a=160,h=32,u="ai-native-chat-input-history",c=10;t.InteractiveInput=o.default.forwardRef((E,f)=>{const{placeholder:d,onKeyDown:y,onBlur:b,onValueChange:A,onHeightChange:S,onFocus:D,onSend:I,onStop:w,disabled:T=!1,className:R,height:P,width:O,sendBtnClassName:M,popoverPosition:k,autoFocus:F,defaultValue:L}=E,B=(0,o.useRef)(null),U=(0,m.useInjectable)(p.GlobalBrowserStorageService),W=(0,o.useRef)(),j=(0,o.useRef)(0),[Q,G]=(0,o.useState)(L||E.value||""),[Z,$]=(0,o.useState)(P||h),[V,H]=(0,o.useState)(!1),K=o.default.useRef(!1);(0,o.useImperativeHandle)(f,()=>B.current),(0,o.useEffect)(()=>{const ue=U.getData(u);ue&&(W.current=ue)},[]),(0,o.useEffect)(()=>{B&&B.current&&F&&B.current.focus()},[B]),(0,o.useEffect)(()=>{var ue;const te=E.value;(0,_.isUndefined)(te)||te!==((ue=B.current)===null||ue===void 0?void 0:ue.value)&&G(te||"")},[E.value,Q,B]),(0,o.useEffect)(()=>{(0,_.isUndefined)(P)||P!==Z&&$(P)},[P,Z,S]),(0,o.useEffect)(()=>{if(!Q){$(h);return}if(B&&B.current&&Z<=a){B.current.style.height="0px";const ue=B.current.scrollHeight;B.current.style.height=Math.min(ue,a)+"px";const te=Math.min(ue+12,a);$(te)}},[B,Q,S,Z]),(0,o.useEffect)(()=>{S?.(Z)},[Z]);const Y=(0,o.useCallback)(ue=>{K.current=!0,G(ue),A?.(ue)},[A]),X=(0,o.useCallback)(ue=>{H(!0),D?.(ue)},[D]),oe=(0,o.useCallback)(ue=>{H(!1),b?.(ue)},[b]),ie=(0,o.useCallback)(()=>{w&&w()},[]),he=(0,o.useCallback)(()=>{T||Q.trim()&&(W.current=W.current||[],W.current.push(Q),j.current=0,U.setData(u,W.current.slice(-c)),K.current=!1,I?.(Q))},[I,Q,T]),me=(0,o.useCallback)(ue=>{var te,fe,Ie;if(ue.key===v.Key.ENTER.code&&!ue.nativeEvent.isComposing){if(ue.shiftKey)return;ue.preventDefault(),he();return}else if((ue.key===v.Key.ARROW_UP.code||ue.key===v.Key.ARROW_DOWN.code)&&(!Q||!K.current)){if(ue.preventDefault(),ue.key===v.Key.ARROW_UP.code){const Me=(te=W.current)===null||te===void 0?void 0:te[W.current.length-1-j.current];Me&&(G(Me),A?.(Me),j.current=Math.min(j.current+1,((fe=W.current)===null||fe===void 0?void 0:fe.length)||0))}else if(ue.key===v.Key.ARROW_DOWN.code){ue.preventDefault();const Me=(Ie=W.current)===null||Ie===void 0?void 0:Ie[W.current.length-1-j.current];Me&&(G(Me),A?.(Me),j.current=Math.max(j.current-1,0))}}y?.(ue)},[y,he,Q]),q=(0,o.useMemo)(()=>o.default.createElement("div",{className:g.default.input_icon_container},o.default.createElement("div",{className:(0,r.default)(g.default.send_chat_btn,V&&g.default.active,T&&g.default.disabled,M)},T?w?o.default.createElement(l.Popover,{id:`ai_chat_input_send_${(0,_.uuid)(4)}`,content:(0,_.localize)("aiNative.chat.enter.send"),delay:1500,position:k??l.PopoverPosition.top,disable:T},o.default.createElement(s.EnhanceIcon,{wrapperClassName:g.default.stop_icon,className:"codicon codicon-debug-stop",onClick:ie,tabIndex:0,role:"button",ariaLabel:(0,_.localize)("aiNative.chat.enter.send")})):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(l.Popover,{id:`ai_chat_input_send_${(0,_.uuid)(4)}`,content:(0,_.localize)("aiNative.chat.enter.send"),delay:1500,position:k??l.PopoverPosition.top,disable:T},o.default.createElement(s.EnhanceIcon,{wrapperClassName:g.default.send_icon,className:(0,l.getIcon)("send-solid"),onClick:he,tabIndex:0,role:"button",ariaLabel:(0,_.localize)("aiNative.chat.enter.send")})))),[V,T,M,Q,k]),Ee=(0,o.useMemo)(()=>(0,_.isUndefined)(O)?"100%":O+"px",[O]);return o.default.createElement(l.TextArea,{ref:B,placeholder:d,wrapperStyle:{height:Z+"px",width:Ee},style:{height:Z-10+"px"},value:Q,onKeyDown:me,onFocus:X,onBlur:oe,onValueChange:Y,disabled:T,className:(0,r.default)(g.default.interactive_input_container,V?g.default.active:null,R),addonAfter:q})}),t.InteractiveInput.displayName="interactiveInput"},24951:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.HorizontalVertical=t.LineVertical=void 0;const r=e(85608).__importDefault(e(14041)),o={backgroundColor:"var(--editorGroup-border)",height:"100%",width:"1px",minWidth:"1px"},l={backgroundColor:"var(--editorGroup-border)",width:"100%",height:"1px",minHeight:"1px"},_=m=>r.default.createElement("span",{style:{...o,...m}});t.LineVertical=_;const v=m=>r.default.createElement("span",{style:{...l,...m}});t.HorizontalVertical=v},49716:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Loading=void 0;const n=e(85608),r=n.__importDefault(e(53373)),o=n.__importDefault(e(14041)),l=e(97267),_=n.__importDefault(e(43135));t.Loading=o.default.memo(v=>o.default.createElement(l.Icon,{className:(0,r.default)(v.className,_.default.loading_indicator),iconClass:(0,l.getIcon)("loading")})),t.Loading.displayName="Loading"},52141:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EnhancePopover=void 0;const r=e(85608).__importStar(e(14041)),o=e(97267),l=e(43718),_=v=>{const{children:m,id:p,title:s,onClick:g}=v,[a,h]=r.default.useState(!1),u=(0,r.useMemo)(()=>p+(0,l.uuid)(6),[p]),c=(0,r.useCallback)(f=>{h(!1),g&&g(f)},[g]),E=(0,r.useCallback)(f=>{h(f)},[]);return r.default.createElement(o.Popover,{id:u,title:s,onClick:c,display:a,onDisplayChange:E},m)};t.EnhancePopover=_},75777:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Thumbs=void 0;const r=e(85608).__importStar(e(14041)),o=e(43718),l=e(95040),_=e(81878),v=e(48560),m=e(67304),p=e(57995),s=g=>{const a=(0,v.useInjectable)(l.IAIInlineChatService),{relationId:h,onClick:u,wrapperClassName:c}=g,[E,f]=(0,r.useState)("thumbs"),[d,y]=(0,r.useState)("thumbsdown"),b=(0,r.useCallback)(D=>{u&&u(D),a&&a.fireThumbsEvent(D)},[h,a]),A=(0,r.useCallback)(D=>{D==="up"&&E==="thumbs"&&(f("thumbs-fill"),y(!1),b(!0)),D==="up"&&E==="thumbs-fill"&&(f("thumbs"),y("thumbsdown")),D==="down"&&d==="thumbsdown"&&(y("thumbsdown-fill"),f(!1),b(!1)),D==="down"&&d==="thumbsdown-fill"&&(y("thumbsdown"),f("thumbs"))},[E,d]),S=(0,v.useUUID)();return r.default.createElement(r.default.Fragment,null,typeof E=="string"&&r.default.createElement(_.Popover,{id:`ai-chat-thumbsup-${S}`,title:(0,o.localize)("aiNative.inline.chat.operate.thumbsup.title")},r.default.createElement(p.EnhanceIcon,{wrapperClassName:c,onClick:()=>A("up"),className:(0,m.getExternalIcon)(E,m.KTICON_OWNER),tabIndex:0,role:"button",ariaLabel:(0,o.localize)("aiNative.inline.chat.operate.thumbsup.title"),ariaPressed:E==="thumbs-fill"?"true":"false"})),typeof d=="string"&&r.default.createElement(_.Popover,{id:`ai-chat-thumbsdown-${S}`,title:(0,o.localize)("aiNative.inline.chat.operate.thumbsdown.title")},r.default.createElement(p.EnhanceIcon,{wrapperClassName:c,onClick:()=>A("down"),className:(0,m.getExternalIcon)(d,m.KTICON_OWNER),tabIndex:0,role:"button",ariaLabel:(0,o.localize)("aiNative.inline.chat.operate.thumbsdown.title"),ariaPressed:d==="thumbsdown-fill"?"true":"false"})))};t.Thumbs=s},81878:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Scroll=t.Scrollbars=t.NativeSelect=void 0;const n=e(85608);n.__exportStar(e(97885),t),n.__exportStar(e(73215),t),n.__exportStar(e(32293),t);var r=e(77331);Object.defineProperty(t,"NativeSelect",{enumerable:!0,get:function(){return r.Select}}),n.__exportStar(e(48412),t),n.__exportStar(e(79383),t),n.__exportStar(e(50708),t),n.__exportStar(e(7273),t),n.__exportStar(e(14640),t),n.__exportStar(e(54076),t),n.__exportStar(e(79024),t),n.__exportStar(e(89832),t),n.__exportStar(e(54713),t),n.__exportStar(e(18875),t),n.__exportStar(e(91397),t),n.__exportStar(e(31059),t),n.__exportStar(e(72871),t),n.__exportStar(e(34128),t);var o=e(77011);Object.defineProperty(t,"Scrollbars",{enumerable:!0,get:function(){return o.Scrollbars}}),Object.defineProperty(t,"Scroll",{enumerable:!0,get:function(){return o.Scrollbars}})},57327:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BoxPanel=void 0;const n=e(85608),r=n.__importDefault(e(53373)),o=n.__importStar(e(14041)),l=e(48560),_=e(38578),v=e(55693),m=e(25719),p=n.__importDefault(e(91290)),s=({className:g,children:a=[],direction:h="left-to-right",...u})=>{const c=o.default.Children.toArray(a),E=(0,l.useInjectable)(_.AppConfig),f=(0,v.useDesignStyles)(p.default["box-panel"],"box-panel");(0,o.useEffect)(()=>{E.didRendered&&E.didRendered()},[]);const d=m.Layout.getStyleProperties(h);return o.default.createElement("div",{...u,className:(0,r.default)(f,g),style:{flexDirection:d.direction,zIndex:u.zIndex||u["z-index"]}},c.map((y,b)=>{const A=y.props||{};return o.default.createElement("div",{key:b,id:A["data-wrapper-id"],className:(0,r.default)(p.default.wrapper,A["data-wrapper-class"]),style:{flex:A.flex,overflow:A.overflow,zIndex:A.zIndex||A["z-index"],[d.minSize]:A.defaultSize,backgroundColor:A.backgroundColor}},y)}))};t.BoxPanel=s},28003:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DefaultLayout=t.getStorageValue=void 0,t.ToolbarActionBasedLayout=m,t.fixLayout=p;const r=e(85608).__importDefault(e(14041)),o=e(52564),l=e(57327),_=e(99333),v=()=>{let s={},g={};try{const a=localStorage.getItem("layout");a&&(s=JSON.parse(a));const h=localStorage.getItem("theme");h&&(g=JSON.parse(h))}catch{}return{layout:p(s),colors:g}};t.getStorageValue=v,t.DefaultLayout=m;function m(s={}){var g,a,h,u,c,E;const{layout:f}=(0,t.getStorageValue)();return r.default.createElement(l.BoxPanel,{direction:"top-to-bottom"},r.default.createElement(o.SlotRenderer,{id:"top",defaultSize:s.topSlotDefaultSize||0,slot:"top",zIndex:s.topSlotZIndex}),r.default.createElement(_.SplitPanel,{id:"main-horizontal",flex:1},r.default.createElement(o.SlotRenderer,{slot:o.SlotLocation.view,isTabbar:!0,defaultSize:!((g=f.left)===null||g===void 0)&&g.currentId?((a=f.left)===null||a===void 0?void 0:a.size)||310:49,minResize:280,maxResize:480,minSize:49}),r.default.createElement(_.SplitPanel,{id:"main-vertical",minResize:300,flexGrow:1,direction:"top-to-bottom"},r.default.createElement(o.SlotRenderer,{flex:2,flexGrow:1,minResize:200,slot:"main"}),r.default.createElement(o.SlotRenderer,{flex:1,defaultSize:!((h=f.bottom)===null||h===void 0)&&h.currentId?(u=f.bottom)===null||u===void 0?void 0:u.size:24,minResize:160,slot:o.SlotLocation.panel,isTabbar:!0})),r.default.createElement(o.SlotRenderer,{slot:o.SlotLocation.extendView,isTabbar:!0,defaultSize:!((c=f.right)===null||c===void 0)&&c.currentId?((E=f.right)===null||E===void 0?void 0:E.size)||310:0,minResize:280,maxResize:480,minSize:0})),r.default.createElement(o.SlotRenderer,{id:"statusBar",defaultSize:24,slot:"statusBar"}))}function p(s){const g={...s};for(const a in s)!s[a]||a==="containerLocations"||s[a].size||(g[a].currentId="");return g}},32293:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=e(85608);n.__exportStar(e(25719),t),n.__exportStar(e(99333),t),n.__exportStar(e(57327),t),n.__exportStar(e(28003),t)},25719:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Layout=void 0;const n=e(73215),r={"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(l){function _(u){return r[u]}l.getStyleProperties=_;function v(u){return r[u].direction}l.getFlexDirection=v;function m(u){return r[u].size}l.getSizeProperty=m;function p(u){return r[u].domSize}l.getDomSizeProperty=p;function s(u){return r[u].minSize}l.getMinSizeProperty=s;function g(u){return r[u].maxSize}l.getMaxSizeProperty=g;function a(u){return u==="bottom-to-top"||u==="top-to-bottom"?n.ResizeHandleVertical:n.ResizeHandleHorizontal}l.getResizeHandle=a;function h(u){return u==="bottom-to-top"||u==="top-to-bottom"?"row":"column"}l.getTabbarDirection=h})(o||(t.Layout=o={}))},99333:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SplitPanel=t.PanelContext=void 0;const n=e(85608),r=n.__importDefault(e(53373)),o=n.__importDefault(e(14041)),l=e(43718),_=e(68456),v=e(48560),m=e(73215),p=e(25719),s=e(71707),g=n.__importDefault(e(91290));t.PanelContext=o.default.createContext({setSize:(c,E)=>{},setRelativeSize:(c,E,f)=>{},getSize:c=>0,getRelativeSize:c=>[0,0],lockSize:(c,E)=>{},setMaxSize:(c,E)=>{},hidePanel:c=>{}});const a=(c,E,f)=>{var d,y;return(y=c&&c.props&&((d=c.props[E])!==null&&d!==void 0?d:c.props[`data-sp-${E}`]))!==null&&y!==void 0?y:f};function h(c,E){return a(c,"savedSize")?a(c,"savedSize")+"px":a(c,"defaultSize")!==void 0?a(c,"defaultSize")+"px":a(c,"flex")?a(c,"flex")/E*100+"%":1/E*100+"%"}const u=c=>{const E=(0,v.useInjectable)(s.SplitPanelManager).getService(c.id),{id:f,className:d,headerSize:y,resizeHandleClassName:b,style:A,children:S=[],direction:D="left-to-right",resizeKeep:I=!0,dynamicTarget:w}=o.default.useMemo(()=>E.interceptProps(c),[E,E.interceptProps,c]),T=p.Layout.getResizeHandle(D),R=p.Layout.getStyleProperties(D),P=o.default.useMemo(()=>o.default.Children.toArray(S),[S]),O=o.default.useMemo(()=>P.find(ue=>a(ue,"flexGrow")),[P]),M=o.default.useMemo(()=>P.reduce((ue,te)=>ue+a(te,"flex",1),0),[P]),k=o.default.useRef([]),F=(0,v.useInjectable)(l.IEventBus),L=o.default.useRef(),B=o.default.useRef(P.map(()=>!1)),U=o.default.useRef(P.map(()=>!1)),W=o.default.useRef(B.current.slice(0,P.length-1)),[j,Q]=o.default.useState(W.current),[G,Z]=o.default.useState(U.current),[$,V]=o.default.useState(B.current);E.panels=[];const H=o.default.useCallback(ue=>(te,fe)=>{const Ie=fe?ue-1:ue,Me=k.current[Ie];Me&&Me.setAbsoluteSize(te!==void 0?te:a(P[ue],"defaultSize"),fe,I)},[k.current]),K=o.default.useCallback(ue=>(te,fe,Ie)=>{const Me=Ie?ue-1:ue,Be=k.current[Me];Be&&Be.setRelativeSize(te,fe)},[k.current]),Y=o.default.useCallback(ue=>te=>{const fe=te?ue-1:ue,Ie=k.current[fe];return Ie?Ie.getAbsoluteSize(te):0},[k.current]),X=o.default.useCallback(ue=>te=>{const fe=te?ue-1:ue,Ie=k.current[fe];return Ie?Ie.getRelativeSize():[0,0]},[k.current]),oe=o.default.useCallback(ue=>(te,fe)=>{const Ie=fe?ue-1:ue,Me=W.current.map((Be,Pe)=>Pe===Ie?te!==void 0?te:!Be:Be);W.current=Me,Q(Me)},[k.current]),ie=o.default.useCallback(ue=>te=>{const fe=B.current.map((Ie,Me)=>Me===ue?te!==void 0?te:!Ie:Ie);B.current=fe,V(fe)},[k.current]),he=o.default.useCallback(ue=>te=>{const fe=U.current.map((Me,Be)=>Be===ue?te!==void 0?!te:!Me:Me);U.current=fe;const Ie=a(P[ue],"slot")||a(P[ue],"id");Ie&&me(Ie),Z(fe)},[P,U.current]),me=o.default.useCallback(ue=>{ue&&(F.fire(new _.ResizeEvent({slotLocation:ue})),F.fireDirective(_.ResizeEvent.createDirective(ue)))},[F]),q=o.default.useMemo(()=>P.map((ue,te)=>{const fe=[],Ie=a(ue,"minSize"),Me=a(ue,"maxSize"),Be=a(ue,"flexGrow");if(te!==0){const Pe=te===1?P[te-1]:P[te];let we;Be?we=m.ResizeFlexMode.Prev:a(P[te-1],"flexGrow")&&(we=m.ResizeFlexMode.Next),a(Pe,"noResize")||j[te-1]||fe.push(o.default.createElement(T,{className:b,onResize:()=>{const Ne=a(P[te-1],"slot")||a(P[te-1],"id"),Te=a(P[te],"slot")||a(P[te],"id");me(Ne),me(Te)},noColor:!0,findNextElement:w?Ne=>E.getFirstResizablePanel(te-1,Ne):void 0,findPrevElement:w?Ne=>E.getFirstResizablePanel(te-1,Ne,!0):void 0,key:`split-handle-${te}`,delegate:Ne=>{k.current.push(Ne)},flexMode:we}))}return fe.push(o.default.createElement(t.PanelContext.Provider,{key:te,value:{setSize:H(te),getSize:Y(te),setRelativeSize:K(te),getRelativeSize:X(te),lockSize:oe(te),setMaxSize:ie(te),hidePanel:he(te)}},o.default.createElement("div",{"data-min-resize":a(ue,"minResize"),"data-max-resize":a(ue,"maxResize"),ref:Pe=>{Pe&&E.panels.indexOf(Pe)===-1&&E.panels.push(Pe)},className:h(ue,M)===`${y}px`?m.RESIZE_LOCK:"",id:a(ue,"id"),style:{...a(ue,"flex")&&!a(ue,"savedSize")&&!O?{flex:a(ue,"flex")}:{[R.size]:h(ue,M)},[R.minSize]:Ie?Ie+"px":"-1px",[R.maxSize]:$[te]&&Me?Me+"px":"unset",...Be!==void 0?{flexGrow:Be}:{},display:G[te]?"none":"block"}},ue))),fe}).filter(Boolean),[S,P,b,w,k.current,G,j]);return o.default.useEffect(()=>{L.current&&E.setRootNode(L.current);const ue=F.onDirective(_.ResizeEvent.createDirective(f),()=>{P.forEach(te=>{me(a(te,"slot")||a(te,"id"))})});return()=>{ue.dispose()}},[]),o.default.useMemo(()=>{const{minResize:ue,flexGrow:te,minSize:fe,maxSize:Ie,savedSize:Me,defaultSize:Be,flex:Pe,noResize:we,slot:_e,headerSize:Ne,...Te}=c;return delete Te.resizeHandleClassName,delete Te.dynamicTarget,delete Te.resizeKeep,delete Te.direction,E.renderSplitPanel(o.default.createElement("div",{...Te,ref:We=>L.current=We,className:(0,r.default)(g.default["split-panel"],d),style:{flexDirection:R.direction,...A},"data-min-resize":ue,"data-max-resize":Ie,"data-min-size":fe,"data-max-size":Ie,"data-saved-size":Me,"data-default-size":Be,"data-header-size":Ne,"data-flex":Pe,"data-flex-grow":te,"data-no-resize":we,"data-slot":_e}),q,Te)},[E,E.renderSplitPanel,q,L,A,c])};t.SplitPanel=u},71707:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SplitPanelManager=t.SplitPanelService=t.ISplitPanelService=void 0;const n=e(85608),r=n.__importDefault(e(14041)),o=e(76003),l=e(43718),_=e(38578),v=e(73215);t.ISplitPanelService=Symbol("ISplitPanelService");let m=class extends l.Disposable{constructor(g){super(),this.panelId=g,this._whenReadyDeferred=new l.Deferred,this.panels=[]}get isVisible(){return this.rootNode&&this.rootNode.clientHeight>0||!1}get whenReady(){return this._whenReadyDeferred.promise}setRootNode(g){this.rootNode=g,this._whenReadyDeferred.resolve()}getFirstResizablePanel(g,a,h){if(h){if(a){for(let u=g;u>=0;u--)if(!this.panels[u].classList.contains(v.RESIZE_LOCK))return this.panels[u]}else for(let u=g;u>=0;u--)if(!this.panels[u].classList.contains(v.RESIZE_LOCK))return this.panels[u]}else if(a){for(let u=g+1;u<this.panels.length;u++)if(!this.panels[u].classList.contains(v.RESIZE_LOCK))return this.panels[u]}else for(let u=g+1;u<this.panels.length;u++)if(!this.panels[u].classList.contains(v.RESIZE_LOCK))return this.panels[u]}checkChildNoResize(g){var a,h;if(g&&g.type===_.SlotRenderer){const u=(h=this.appConfig.layoutConfig[(a=g.props)===null||a===void 0?void 0:a.slot])===null||h===void 0?void 0:h.modules;if(!u||u.length===0)return!0}return!1}renderSplitPanel(g,a,h){return r.default.cloneElement(g,{...h,...g.props},a)}interceptProps(g){return g}};t.SplitPanelService=m,n.__decorate([(0,o.Autowired)(_.AppConfig),n.__metadata("design:type",Object)],m.prototype,"appConfig",void 0),t.SplitPanelService=m=n.__decorate([(0,o.Injectable)({multiple:!0}),n.__metadata("design:paramtypes",[String])],m);let p=class{constructor(){this.services=new Map}getService(g){let a=this.services.get(g);return a||(a=this.injector.get(t.ISplitPanelService,[g]),this.services.set(g,a)),a}};t.SplitPanelManager=p,n.__decorate([(0,o.Autowired)(o.INJECTOR_TOKEN),n.__metadata("design:type",o.Injector)],p.prototype,"injector",void 0),t.SplitPanelManager=p=n.__decorate([(0,o.Injectable)()],p)},89897:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),e(85608).__exportStar(e(85266),t)},85266:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Loading=void 0;const r=e(85608).__importDefault(e(14041));e(18182);const o=()=>r.default.createElement("div",{className:"loading_indicator "});t.Loading=o,t.Loading.displayName="Loading"},97885:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=e(85608).__importDefault(e(43144)),o=e(48560),l=({id:_,className:v,children:m})=>{const p=(0,o.usePortal)(_,v);return r.default.createPortal(m,p)};t.default=l},73215:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ResizeHandleVertical=t.ResizeHandleHorizontal=t.ResizeFlexMode=t.RESIZE_LOCK=void 0,t.preventWebviewCatchMouseEvents=m,t.allowWebviewCatchMouseEvents=p;const n=e(85608),r=n.__importDefault(e(53373)),o=n.__importDefault(e(14041)),l=e(22366),_=n.__importDefault(e(57482));t.RESIZE_LOCK="resize-lock";var v;(function(a){a.Prev="prev",a.Next="next",a.Percentage="Percentage"})(v||(t.ResizeFlexMode=v={}));function m(){const a=document.getElementsByTagName("iframe"),h=document.getElementsByTagName("webview"),u=document.getElementsByClassName("shadow-root-host");for(const c of h)c.classList.add("none-pointer-event");for(const c of a)c.classList.add("none-pointer-event");for(const c of u)c?.classList.add("none-pointer-event")}function p(){const a=document.getElementsByTagName("iframe"),h=document.getElementsByTagName("webview"),u=document.getElementsByClassName("shadow-root-host");for(const c of h)c.classList.remove("none-pointer-event");for(const c of a)c.classList.remove("none-pointer-event");for(const c of u)c?.classList.remove("none-pointer-event")}const s=a=>{const h=o.default.useRef(),u=o.default.useRef(!1),c=o.default.useRef(0),E=o.default.useRef(0),f=o.default.useRef(0),d=o.default.useRef(),y=o.default.useRef(),b=o.default.useRef(),A=(L,B)=>{const U=a.findPrevElement?a.findPrevElement():d.current,W=a.findNextElement?a.findNextElement():y.current;if(U&&U.classList.contains(t.RESIZE_LOCK)||W&&W.classList.contains(t.RESIZE_LOCK))return;const j=h.current.parentElement.offsetWidth,Q=Number(U?.dataset.minResize||0),G=Number(W?.dataset.minResize||0),Z=Number(U?.dataset.maxResize||0),$=Number(W?.dataset.maxResize||0);(Q||G)&&(L*j<=Q||B*j<=G)||(Z||$)&&(L*j>=Z||B*j>=$)||(W&&(W.style.width=B*100+"%"),U&&(U.style.width=L*100+"%"),a.onResize&&W&&U&&a.onResize(U,W))},S=(L,B,U,W)=>{var j,Q;const G=a.findPrevElement?a.findPrevElement(W):d.current,Z=a.findNextElement?a.findNextElement(W):y.current,$=Number((j=G?.dataset.minResize)!==null&&j!==void 0?j:0),V=Number((Q=Z?.dataset.minResize)!==null&&Q!==void 0?Q:0),H=G?.dataset.maxResize?Number(G?.dataset.maxResize):null,K=Z?.dataset.maxResize?Number(Z?.dataset.maxResize):null,Y=a.flexMode===v.Prev,X=Y?G:Z,oe=Y?Z:G;let ie=Y?L:B;U||(($||V)&&(Y?$>L?ie=$:V>B&&(ie=L+B-V):V>B?ie=V:$>L&&(ie=L+B-$)),(H||K)&&(Y?H&&H<=L?ie=H:K&&K>B&&(ie=L+B-K):K&&K<=B?ie=K:H&&H>B&&(ie=L+B-H))),X.style.width=ie+"px",X.style.flexGrow="0",X.style.flexShrink="1",oe.style.width="0",oe.style.flexGrow="1",oe.style.flexShrink="0",a.onResize&&Z&&G&&a.onResize(G,Z)},D=(L,B)=>{const U=d.current,W=y.current;let j;a.flexMode?j=(U.offsetWidth+W.offsetWidth)/U.parentElement.offsetWidth*100:j=+y.current.style.width.replace("%","")+ +d.current.style.width.replace("%",""),W&&(W.style.width=B/(L+B)*j+"%"),U&&(U.style.width=L/(L+B)*j+"%"),I(L,B),a.onResize&&W&&U&&a.onResize(U,W)},I=(L,B)=>{const U=d.current,W=y.current;let j=!1;U&&(L===0?(U.classList.add("kt_display_none"),j=!0):U.classList.remove("kt_display_none")),W&&(B===0?(W.classList.add("kt_display_none"),j=!0):W.classList.remove("kt_display_none")),h.current&&(j?h.current.classList.add("none-pointer-event"):h.current.classList.remove("none-pointer-event"))},w=()=>{const L=d.current.clientWidth,B=y.current.clientWidth,U=L+B,W=[];return W.push(L/U),W.push(B/U),W},T=(L,B)=>{l.fastdom.mutate(()=>{const U=d.current.clientWidth,W=y.current.clientWidth,j=U+W;if(a.flexMode){const Q=a.flexMode===v.Prev?L:j-L,G=a.flexMode===v.Next?L:j-L;S(Q,G,!0)}else{const Q=+y.current.style.width.replace("%",""),G=+d.current.style.width.replace("%",""),Z=Q+G;B?(y.current.style.width=Z*(L/j)+"%",d.current.style.width=Z*(1-L/j)+"%"):(d.current.style.width=Z*(L/j)+"%",y.current.style.width=Z*(1-L/j)+"%")}B?I(j-L,L):I(L,j-L),a.onResize&&a.onResize(d.current,y.current)})},R=L=>L?y.current.clientWidth:d.current.clientWidth,P=L=>{const B=L.classList,U=_.default["resize-overflow-hidden"];B?.contains(U)||B.add(U)},O=L=>{const B=L.classList,U=_.default["resize-overflow-hidden"];B?.contains(U)&&B.remove(U)},M=L=>{if(L.preventDefault(),h.current&&h.current.classList.contains("no-resize"))return;const B=E.current+L.pageX-c.current,U=f.current-(L.pageX-c.current);b.current&&b.current.dispose(),b.current=l.fastdom.mutate(()=>{if(a.flexMode)S(B,U);else{const W=h.current.parentElement.offsetWidth;A(B/W,U/W)}})},k=()=>{u.current=!1,document.removeEventListener("mousemove",M),document.removeEventListener("mouseup",k),a.onFinished&&a.onFinished(),l.fastdom.mutate(()=>{var L;(L=h.current)===null||L===void 0||L.classList.remove(_.default.active),O(d.current),O(y.current),p()})},F=L=>{u.current=!0,document.addEventListener("mousemove",M),document.addEventListener("mouseup",k),c.current=L.pageX,l.fastdom.measure(()=>{E.current=d.current.offsetWidth,f.current=y.current.offsetWidth,l.fastdom.mutate(()=>{var B;(B=h.current)===null||B===void 0||B.classList.add(_.default.active),P(d.current),P(y.current),m()})})};return o.default.useEffect(()=>(h.current&&(h.current.addEventListener("mousedown",F),d.current=h.current.previousSibling,y.current=h.current.nextSibling),()=>{h.current&&(h.current.removeEventListener("mousedown",F),h.current.removeEventListener("mousemove",M),h.current.removeEventListener("mouseup",k))}),[]),a.delegate&&a.delegate({setSize:A,setAbsoluteSize:T,getAbsoluteSize:R,setRelativeSize:D,getRelativeSize:w}),o.default.createElement("div",{ref:L=>{h.current=L},className:(0,r.default)({[_.default["resize-handle-horizontal"]]:!0,[_.default["with-color"]]:!a.noColor,[a.className||""]:!0})})};t.ResizeHandleHorizontal=s;const g=a=>{const h=o.default.useRef(),u=o.default.useRef(!1),c=o.default.useRef(0),E=o.default.useRef(0),f=o.default.useRef(0),d=o.default.useRef(),y=o.default.useRef(),b=o.default.useRef(),A=o.default.useRef(),S=(L,B,U)=>{const W=a.findPrevElement?a.findPrevElement(U):d.current,j=a.findNextElement?a.findNextElement(U):y.current;!j||!W||W.classList.contains(t.RESIZE_LOCK)||j.classList.contains(t.RESIZE_LOCK)||(j.style.height=B*100+"%",W.style.height=L*100+"%",a.onResize&&a.onResize(W,j))},D=(L,B,U,W)=>{var j,Q;const G=a.findPrevElement?a.findPrevElement(W):d.current,Z=a.findNextElement?a.findNextElement(W):y.current;let $,V,H=0;const K=Number(((j=G?.dataset)===null||j===void 0?void 0:j.minResize)||0),Y=Number(((Q=Z?.dataset)===null||Q===void 0?void 0:Q.minResize)||0);a.flexMode===v.Prev?($=G,V=Z,H=L,U||(K>L?H=K:Y>B&&(H=L+B-Y))):($=Z,V=G,H=B,U||(Y>B?H=Y:K>L&&(H=L+B-K))),$.style.height=H+"px",$.style.flexGrow="0",$.style.flexShrink="1",V.style.height="0",V.style.flexGrow="1",V.style.flexShrink="0",a.onResize&&Z&&G&&a.onResize(G,Z)},I=(L,B)=>{const U=d.current,W=y.current;let j;a.flexMode?j=(U.offsetHeight+W.offsetHeight)/U.parentElement.offsetHeight*100:j=+W.style.height.replace("%","")+ +U.style.height.replace("%",""),W&&(W.style.height=B/(L+B)*j+"%"),U&&(U.style.height=L/(L+B)*j+"%"),w(L,B),a.onResize&&W&&U&&a.onResize(U,W)},w=(L,B)=>{const U=d.current,W=y.current;let j=!1;U&&(L===0?(U.classList.add("kt_display_none"),j=!0):U.classList.remove("kt_display_none")),W&&(B===0?(W.classList.add("kt_display_none"),j=!0):W.classList.remove("kt_display_none")),h.current&&(j?h.current.classList.add("none-pointer-event"):h.current.classList.remove("none-pointer-event"))},T=()=>{const L=d.current.clientHeight,B=y.current.clientHeight,U=L+B,W=[];return W.push(L/U),W.push(B/U),W},R=(L,B,U,W)=>{U.classList.contains(t.RESIZE_LOCK)||W.classList.contains(t.RESIZE_LOCK)||(W.style.height=B+"px",U.style.height=L+"px",W.style.flex="unset",U.style.flex="unset",a.onResize&&W&&U&&a.onResize(U,W))},P=(L,B,U)=>{if(!d.current||!y.current)return;const W=d.current.clientHeight,j=y.current.clientHeight,Q=W+j;if(a.flexMode){const G=a.flexMode===v.Prev?L:Q-L,Z=a.flexMode===v.Next?L:Q-L;D(G,Z,!0)}else{const G=+y.current.style.height.replace(/\%|px/,""),Z=+d.current.style.height.replace(/\%|px/,""),$=G+Z;if(B){U&&(d.current.style.height=$*(1-L/Q)+"%");const V=$*(L/Q);y.current.style.height=V===0?V+"px":V+"%"}else d.current.style.height=$*(L/Q)+"%",U&&(y.current.style.height=$*(1-L/Q)+"%")}B?w(Q-L,L):w(L,Q-L),a.onResize&&a.onResize(d.current,y.current)},O=L=>L?y.current.clientHeight:d.current.clientHeight,M=L=>{u.current=!0,document.addEventListener("mousemove",k),document.addEventListener("mouseup",F),c.current=L.pageY,A.current=y.current,b.current=d.current,l.fastdom.measure(()=>{E.current=d.current.offsetHeight,f.current=y.current.offsetHeight,l.fastdom.mutate(()=>{var B;(B=h.current)===null||B===void 0||B.classList.add(_.default.active),m()})})},k=L=>{L.preventDefault(),!(h.current&&h.current.classList.contains("no-resize"))&&l.fastdom.measure(()=>{const B=L.pageY>c.current,U=a.findNextElement?a.findNextElement(B):null,W=a.findPrevElement?a.findPrevElement(B):null;if(U!==null&&A.current!==U||W!==null&&b.current!==W){if(!U||!W)return;A.current=U,b.current=W,c.current=L.pageY,E.current=b.current.offsetHeight,f.current=A.current.offsetHeight}const j=E.current+L.pageY-c.current,Q=f.current-(L.pageY-c.current),G=Number(b.current.dataset.minResize||0),Z=Number(A.current.dataset.minResize||0);(G||Z)&&(j<=G||Q<=Z)||l.fastdom.mutate(()=>{if(a.flexMode===v.Prev||a.flexMode===v.Next)D(j,Q);else if(a.flexMode===v.Percentage){const $=h.current.parentElement.offsetHeight;S(j/$,Q/$)}else R(j,Q,b.current,A.current)})})},F=L=>{u.current=!1,document.removeEventListener("mousemove",k),document.removeEventListener("mouseup",F),l.fastdom.mutate(()=>{var B;(B=h.current)===null||B===void 0||B.classList.remove(_.default.active),a.onFinished&&a.onFinished(),p()})};return o.default.useEffect(()=>(h.current.addEventListener("mousedown",M),d.current=h.current.previousSibling,y.current=h.current.nextSibling,()=>{h.current.removeEventListener("mousedown",M),document.removeEventListener("mousemove",k),document.removeEventListener("mouseup",F)}),[]),a.delegate&&a.delegate({setSize:S,setAbsoluteSize:P,getAbsoluteSize:O,setRelativeSize:I,getRelativeSize:T}),o.default.createElement("div",{ref:L=>L&&(h.current=L),className:(0,r.default)({[_.default["resize-handle-vertical"]]:!0,[a.className||""]:!0,[_.default["with-color"]]:!a.noColor})})};t.ResizeHandleVertical=g},77331:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Select=void 0;const n=e(85608),r=n.__importDefault(e(53373)),o=n.__importDefault(e(14041));n.__exportStar(e(88706),t);const l=_=>(_={..._,className:(0,r.default)("kt_select",_.className)},o.default.createElement("select",{..._}));t.Select=l},53736:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ContextKeyChangeEvent=t.IContextKeyService=void 0;const n=e(43718);t.IContextKeyService=Symbol("IContextKeyService");class r extends n.BasicEvent{}t.ContextKeyChangeEvent=r},50394:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.InlineInputWidgetIsStreaming=t.InlineInputWidgetIsVisible=t.CodeEditsIsVisible=t.InlineDiffPartialEditsIsVisible=t.InlineHintWidgetIsVisible=t.InlineCompletionIsTrigger=t.InlineChatIsVisible=void 0;const n=e(40191);t.InlineChatIsVisible=new n.RawContextKey("ai.native.inlineChatIsVisible",!1),t.InlineCompletionIsTrigger=new n.RawContextKey("ai.native.inlineCompletionIsTrigger",!1),t.InlineHintWidgetIsVisible=new n.RawContextKey("ai.native.inlineHintWidgetIsVisible",!1),t.InlineDiffPartialEditsIsVisible=new n.RawContextKey("ai.native.inlineDiffPartialEditsIsVisible",!1),t.CodeEditsIsVisible=new n.RawContextKey("ai.native.codeEditsIsVisible",!1),t.InlineInputWidgetIsVisible=new n.RawContextKey("ai.native.inlineInputWidgetIsVisible",!1),t.InlineInputWidgetIsStreaming=new n.RawContextKey("ai.native.inlineInputWidgetIsStreaming",!1)},20162:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FileDialogViewVisibleContext=t.DialogViewVisibleContext=void 0;const n=e(40191);t.DialogViewVisibleContext=new n.RawContextKey("dialogViewVisible",!1),t.FileDialogViewVisibleContext=new n.RawContextKey("fileDialogViewVisible",!1)},16413:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ExplorerCompressedLastFocusContext=t.ExplorerCompressedFirstFocusContext=t.ExplorerCompressedFocusContext=t.FilesExplorerFilteredContext=t.FilesExplorerInputFocusedContext=t.FilesExplorerFocusedContext=t.ExplorerFilteredContext=t.ExplorerFocusedContext=t.ExplorerResourceCut=t.ExplorerViewletVisibleContext=t.ExplorerResourceIsFolderContext=void 0;const n=e(40191);t.ExplorerResourceIsFolderContext=new n.RawContextKey("explorerResourceIsFolder",!1),t.ExplorerViewletVisibleContext=new n.RawContextKey("explorerViewletVisible",!0),t.ExplorerResourceCut=new n.RawContextKey("explorerResourceCut",!1),t.ExplorerFocusedContext=new n.RawContextKey("explorerViewletFocus",!1),t.ExplorerFilteredContext=new n.RawContextKey("explorerViewletFilter",!1),t.FilesExplorerFocusedContext=new n.RawContextKey("filesExplorerFocus",!1),t.FilesExplorerInputFocusedContext=new n.RawContextKey("filesExplorerInputFocus",!1),t.FilesExplorerFilteredContext=new n.RawContextKey("filesExplorerFilteredContext",!1),t.ExplorerCompressedFocusContext=new n.RawContextKey("explorerViewletCompressedFocus",!1),t.ExplorerCompressedFirstFocusContext=new n.RawContextKey("explorerViewletCompressedFirstFocus",!1),t.ExplorerCompressedLastFocusContext=new n.RawContextKey("explorerViewletCompressedLastFocus",!1)},66e3:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=e(85608);n.__exportStar(e(16413),t),n.__exportStar(e(91830),t),n.__exportStar(e(29906),t),n.__exportStar(e(96774),t),n.__exportStar(e(73537),t),n.__exportStar(e(20162),t)},379:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ShowExcludedFilesFilterContextKey=t.ShowActiveFileFilterContextKey=t.ShowInfoFilterContextKey=t.ShowWarningsFilterContextKey=t.ShowErrorsFilterContextKey=t.RelatedInformationFocusContextKey=t.MarkerViewFilterFocusContextKey=t.MarkerFocusContextKey=t.MarkersTreeVisibilityContextKey=void 0;const n=e(40191);t.MarkersTreeVisibilityContextKey=new n.RawContextKey("problemsVisibility",!1),t.MarkerFocusContextKey=new n.RawContextKey("problemFocus",!1),t.MarkerViewFilterFocusContextKey=new n.RawContextKey("problemsFilterFocus",!1),t.RelatedInformationFocusContextKey=new n.RawContextKey("relatedInformationFocus",!1),t.ShowErrorsFilterContextKey=new n.RawContextKey("problems.filter.errors",!0),t.ShowWarningsFilterContextKey=new n.RawContextKey("problems.filter.warnings",!0),t.ShowInfoFilterContextKey=new n.RawContextKey("problems.filter.info",!0),t.ShowActiveFileFilterContextKey=new n.RawContextKey("problems.filter.activeFile",!1),t.ShowExcludedFilesFilterContextKey=new n.RawContextKey("problems.filter.excludedFiles",!0)},96774:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.OutlineFollowCursorContext=t.OutlineSortTypeContext=void 0;const n=e(40191);t.OutlineSortTypeContext=new n.RawContextKey("outlineSortType",0),t.OutlineFollowCursorContext=new n.RawContextKey("outlineFollowCursor",!1)},91830:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ResourceContextKey=void 0;const n=e(43718),r=e(63214);class o{constructor(_,v=r.getLanguageIdFromMonaco,m="resource"){if(this.contextKeyService=_,this.languageResolver=v,!m)throw new Error("resource key prefix cannot be empty!");this.resourceScheme=this.contextKeyService.createKey(m+"Scheme",""),this.resourceFilename=this.contextKeyService.createKey(m+"Filename",""),this.resourceExtname=this.contextKeyService.createKey(m+"Extname",""),this.resourceLangId=this.contextKeyService.createKey(m+"LangId",""),this.resourceKey=this.contextKeyService.createKey(m,""),this.isFileSystemResource=this.contextKeyService.createKey("isFileSystem"+m.substr(0,1).toUpperCase()+m.substr(1),!1)}set(_){if(!_){this.reset();return}const v=this.resourceKey.get();_.isEqual(new n.URI(v))||(this.resourceScheme.set(_.scheme),this.resourceFilename.set(_.path.name+_.path.ext),this.resourceExtname.set(_.path.ext),this.resourceLangId.set(this.languageResolver(_)),this.resourceKey.set(_.toString()),this.isFileSystemResource.set(_.scheme===n.Schemes.file))}reset(){this.resourceScheme.set(""),this.resourceFilename.set(""),this.resourceExtname.set(""),this.resourceLangId.set(""),this.resourceKey.set(""),this.isFileSystemResource.set(!1)}}t.ResourceContextKey=o},67386:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.InTreeViewKey=t.ViewHasSomeCollapsibleKey=t.ViewHasFilePatternKey=t.ViewHasReplacePatternKey=t.ViewHasSearchPatternKey=t.MatchFocusKey=t.ResourceFolderFocusKey=t.FolderFocusKey=t.FileFocusKey=t.FileMatchOrFolderMatchWithResourceFocusKey=t.FileMatchOrFolderMatchFocusKey=t.FileMatchOrMatchFocusKey=t.FirstMatchFocusKey=t.ReplaceActiveKey=t.PatternExcludesFocusedKey=t.PatternIncludesFocusedKey=t.InputBoxFocusedKey=t.SearchViewVisibleKey=t.HasSearchResults=t.ReplaceInputBoxFocusedKey=t.SearchInputBoxFocusedKey=t.SearchViewFocusedKey=void 0;const n=e(40191);t.SearchViewFocusedKey=new n.RawContextKey("searchViewletFocus",!1),t.SearchInputBoxFocusedKey=new n.RawContextKey("searchInputBoxFocus",!1),t.ReplaceInputBoxFocusedKey=new n.RawContextKey("replaceInputBoxFocus",!1),t.HasSearchResults=new n.RawContextKey("hasSearchResult",!1),t.SearchViewVisibleKey=new n.RawContextKey("searchViewletVisible",!0),t.InputBoxFocusedKey=new n.RawContextKey("inputBoxFocus",!1),t.PatternIncludesFocusedKey=new n.RawContextKey("patternIncludesInputBoxFocus",!1),t.PatternExcludesFocusedKey=new n.RawContextKey("patternExcludesInputBoxFocus",!1),t.ReplaceActiveKey=new n.RawContextKey("replaceActive",!1),t.FirstMatchFocusKey=new n.RawContextKey("firstMatchFocus",!1),t.FileMatchOrMatchFocusKey=new n.RawContextKey("fileMatchOrMatchFocus",!1),t.FileMatchOrFolderMatchFocusKey=new n.RawContextKey("fileMatchOrFolderMatchFocus",!1),t.FileMatchOrFolderMatchWithResourceFocusKey=new n.RawContextKey("fileMatchOrFolderMatchWithResourceFocus",!1),t.FileFocusKey=new n.RawContextKey("fileMatchFocus",!1),t.FolderFocusKey=new n.RawContextKey("folderMatchFocus",!1),t.ResourceFolderFocusKey=new n.RawContextKey("folderMatchWithResourceFocus",!1),t.MatchFocusKey=new n.RawContextKey("matchFocus",!1),t.ViewHasSearchPatternKey=new n.RawContextKey("viewHasSearchPattern",!1),t.ViewHasReplacePatternKey=new n.RawContextKey("viewHasReplacePattern",!1),t.ViewHasFilePatternKey=new n.RawContextKey("viewHasFilePattern",!1),t.ViewHasSomeCollapsibleKey=new n.RawContextKey("viewHasSomeCollapsibleResult",!1),t.InTreeViewKey=new n.RawContextKey("inTreeView",!1)},29906:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ShellExecutionSupported=t.IsTerminalFocused=t.IsTerminalViewInitialized=void 0;const n=e(40191);t.IsTerminalViewInitialized=new n.RawContextKey("isTerminalViewInitialized",!1),t.IsTerminalFocused=new n.RawContextKey("isTerminalFocused",!1),t.ShellExecutionSupported=new n.RawContextKey("shellExecutionSupported",!0)},12288:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TestingCanRefreshTests=t.TestingIsPeekVisible=t.TestingIsInPeek=t.TestingIsRunning=t.TestingHasAnyResults=t.TestingServiceHasDebuggableContextKey=t.TestingServiceProviderCount=void 0;const n=e(40191);t.TestingServiceProviderCount=new n.RawContextKey("service.testing.providerCount",0),t.TestingServiceHasDebuggableContextKey=new n.RawContextKey("service.testing.hasDebuggableContext",!1),t.TestingHasAnyResults=new n.RawContextKey("testing.hasAnyResults",!1),t.TestingIsRunning=new n.RawContextKey("testing.isRunning",!1),t.TestingIsInPeek=new n.RawContextKey("testing.isInPeek",!0),t.TestingIsPeekVisible=new n.RawContextKey("testing.isPeekVisible",!1),t.TestingCanRefreshTests=new n.RawContextKey("testing.canRefresh",!1)},73537:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.VirtualWorkspace=t.WorkspaceTrusted=t.WorkspaceFolderCount=t.WorkbenchState=void 0;const n=e(40191);t.WorkbenchState=new n.RawContextKey("workbenchState","empty"),t.WorkspaceFolderCount=new n.RawContextKey("workspaceFolderCount",0),t.WorkspaceTrusted=new n.RawContextKey("isWorkspaceTrusted",!0),t.VirtualWorkspace=new n.RawContextKey("virtualWorkspace",!1)},18193:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CorePreferences=t.corePreferenceSchema=t.FILE_TREE_DEFAULTS=t.FILES_DEFAULTS=void 0,t.injectCorePreferences=v;const n=e(43718),r=e(69734),o=e(87863),l=e(78132),_={confirmDelete:!0,confirmMove:!0};t.FILES_DEFAULTS={filesWatcherExclude:o.defaultFilesWatcherExcludes,filesExclude:{"**/.git":!0,"**/.svn":!0,"**/.hg":!0,"**/CVS":!0,"**/.DS_Store":!0}},t.FILE_TREE_DEFAULTS={baseIndent:10,indent:8},t.corePreferenceSchema={type:"object",properties:{[n.GeneralSettingsId.Language]:{type:"string",enum:(0,n.getAvailableLanguages)().map(m=>m.languageId),default:r.LOCALE_TYPES.EN_US},[n.GeneralSettingsId.Theme]:{type:"string",default:"vs-dark",enum:[]},"general.askReloadOnLanguageChange":{type:"boolean",default:!0,description:"%preference.description.general.askReloadOnLanguageChange%"},[n.GeneralSettingsId.Icon]:{type:"string",default:"vs-minimal",enum:[]},[n.GeneralSettingsId.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:_.confirmDelete,description:"%preference.explorer.confirm.move%"},"explorer.confirmDelete":{type:"boolean",default:_.confirmMove,description:"%preference.explorer.confirm.delete%"},"explorer.fileTree.baseIndent":{type:"number",default:t.FILE_TREE_DEFAULTS.baseIndent},"explorer.fileTree.indent":{type:"number",default:t.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:t.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:t.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:[`
|
|
31968
31968
|
`,`\r
|
|
31969
31969
|
`,"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},"mergeEditor.autoApplyNonConflictChanges":{type:"boolean",default:!1}}},t.CorePreferences=Symbol("CorePreferences");function v(m){m.addProviders({token:t.CorePreferences,useFactory:p=>{const s=p.get(l.PreferenceService);return(0,l.createPreferenceProxy)(s,t.corePreferenceSchema)}})}},2758:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DesignStyleService=void 0;const n=e(85608),r=n.__importDefault(e(53373)),o=e(76003),l="design-";let _=class{get styles(){return this._styles}setStyles(m){this._styles=m}wrapStyles(m,p){return this._styles?m?(0,r.default)(m,this._styles[l+p]):"":m||""}};t.DesignStyleService=_,t.DesignStyleService=_=n.__decorate([(0,o.Injectable)()],_)},80832:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=e(85608);n.__exportStar(e(2758),t),n.__exportStar(e(66597),t),n.__exportStar(e(68576),t)},68576:(x,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StackingLevelStr=t.StackingLevel=void 0,t.StackingLevel=Object.freeze({Background:0,Workbench:1,Toolbar:2,XtermDecoration:8,ToolbarDropdown:10,EditorTabbarCurrent:11,ResizeHandle:12,EditorTabbarOverlay:15,EditorFloatingContainer:20,FindWidget:25,Popup:100,Overlay:800,PopoverComponent:999,PopoverComponentArrow:1e3,OverlayTop:1e3}),t.StackingLevelStr=Object.fromEntries(Object.entries(t.StackingLevel).map(([e,n])=>[e,n.toString()]))},66597:(x,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IDesignStyleService=void 0,t.IDesignStyleService=Symbol("IDesignStyleService")},4246:(x,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.withPrevented=e;function e(n){return r=>{r.preventDefault(),r.stopPropagation(),n&&n(r)}}},19636:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=e(70392);class r{constructor(y,b){this._runner=y,this.priority=b,this._disposed=!1}run(){if(!this._disposed)try{this._runner()}catch(y){(0,n.onUnexpectedError)(y)}}dispose(){this._disposed=!0}}const o=new n.Heap({comparator:(d,y)=>y.priority-d.priority}),l=new n.Heap({comparator:(d,y)=>y.priority-d.priority});let _=o,v=l;function m(){_===o?(_=l,v=o):(_=o,v=l)}let p,s=!1;function g(){for(p=void 0,s=!0,m();_.size>0;)_.pop().run();s=!1}function a(){p||(p=requestAnimationFrame(g))}function h(d){s?_.add(d):v.add(d)}function u(d){const y=new r(d,1e4);return h(y),a(),y}function c(d){const y=new r(d,-1e4);return h(y),a(),y}function E(d){const y=new r(d,1e4);return v.add(y),a(),y}const f={measure:u,measureAtNextFrame:E,mutate:c};t.default=f},22366:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MouseEventButton=t.fastdom=t.FocusTracker=t.DomListener=t.EventType=void 0,t.isAncestor=_,t.addDisposableListener=m,t.trackFocus=s,t.createClassNameTokens=g,t.addClassName=a;const n=e(85608),r=e(43718),o=e(77714),l=n.__importDefault(e(19636));t.fastdom=l.default,n.__exportStar(e(4246),t),t.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:r.isWebKit?"webkitAnimationStart":"animationstart",ANIMATION_END:r.isWebKit?"webkitAnimationEnd":"animationend",ANIMATION_ITERATION:r.isWebKit?"webkitAnimationIteration":"animationiteration"};function _(h,u){for(;h;){if(h===u)return!0;h=h.parentNode}return!1}class v{constructor(u,c,E,f){this._node=u,this._type=c,this._handler=E,this._useCapture=f||!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)}}t.DomListener=v;function m(h,u,c,E){return new v(h,u,c,E)}class p extends r.Disposable{constructor(u){super(),this.didFocus=new r.Emitter,this.onDidFocus=this.didFocus.event,this.didBlur=new r.Emitter,this.onDidBlur=this.didBlur.event;let c=_(document.activeElement,u),E=!1;const f=()=>{E=!1,c||(c=!0,this.didFocus.fire())},d=()=>{c&&(E=!0,window.setTimeout(()=>{E&&(E=!1,c=!1,this.didBlur.fire())},0))};this.addDispose(this.didBlur),this.addDispose(this.didFocus),this.addDispose(new v(u,t.EventType.FOCUS,f,!0)),this.addDispose(new v(u,t.EventType.BLUR,d,!0))}}t.FocusTracker=p;function s(h){return new p(h)}t.MouseEventButton={Left:0,Middle:1,Right:2,Back:3,Forward:4};function g(h){return h.split(o.space).filter(Boolean)}function a(h,u){const c=g(u);h.classList.add(...c)}},5910:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EncodingRegistry=void 0;const n=e(85608),r=e(76003),o=e(43718),l=e(78132),_=e(63214);let v=class{constructor(){this.encodingOverrides=[]}registerOverride(p){return this.encodingOverrides.push(p),o.Disposable.create(()=>{const s=this.encodingOverrides.indexOf(p);s!==-1&&this.encodingOverrides.splice(s,1)})}getEncodingForResource(p,s){let g;const a=this.getEncodingOverride(p);return a?g=a:s?g=s:g=this.preferenceService.get("files.encoding",void 0,p.toString(),(0,_.getLanguageIdFromMonaco)(p)||void 0)||"",!g||!(0,o.encodingExists)(g)?o.UTF8:g}getEncodingOverride(p){if(this.encodingOverrides&&this.encodingOverrides.length){for(const s of this.encodingOverrides)if(s.parent&&p.isEqualOrParent(s.parent)||s.extension&&p.path.ext===`.${s.extension}`||s.scheme&&s.scheme===p.scheme)return s.encoding}}};t.EncodingRegistry=v,n.__decorate([(0,r.Autowired)(l.PreferenceService),n.__metadata("design:type",Object)],v.prototype,"preferenceService",void 0),t.EncodingRegistry=v=n.__decorate([(0,r.Injectable)()],v)},35018:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ExtensionsPointServiceImpl=t.OPENSUMI_EXTENSION_JSON_URI=t.EXTENSION_JSON_URI=void 0;const n=e(85608),r=n.__importDefault(e(56757)),o=n.__importDefault(e(46123)),l=n.__importDefault(e(52103)),_=n.__importDefault(e(41263)),v=e(76003),m=e(22689),p=e(14790),s=e(96702);t.EXTENSION_JSON_URI="vscode://schemas/vscode-extensions",t.OPENSUMI_EXTENSION_JSON_URI="vscode://schemas/opensumi-extensions";let g=class{registerSchema(){this.schemaRegistry.registerSchema(t.OPENSUMI_EXTENSION_JSON_URI,p.OpenSumiExtensionPackageSchema,["package.json"]),this.schemaRegistry.registerSchema(t.EXTENSION_JSON_URI,s.VSCodeExtensionPackageSchema,["package.json"])}appendPropertiesFactory(h){const u=h==="opensumi"?p.OpenSumiExtensionPackageSchema.properties.sumiContributes.properties:s.VSCodeExtensionPackageSchema.properties.contributes.properties;return(c,E)=>{const{extensionPoint:f,jsonSchema:d}=E,y=c.concat(f).filter(Boolean);if((0,l.default)(u,y)){const b=(0,o.default)(u,y.concat("properties"));(0,r.default)(d.properties,b)}(0,_.default)(u,y,d)}}appendOpenSumiProperties(h,u){this.appendPropertiesFactory("opensumi")(h,u)}appendVScodeProperties(h,u){this.appendPropertiesFactory("vscode")(h,u)}appendExtensionPoint(h,u){if(!u)return;const{frameworkKind:c=["vscode"]}=u;c.includes("opensumi")&&this.appendOpenSumiProperties(h,u),c.includes("vscode")&&this.appendVScodeProperties(h,u),this.registerSchema()}registerExtensionPoint(h){h&&this.appendExtensionPoint([],h)}};t.ExtensionsPointServiceImpl=g,n.__decorate([(0,v.Autowired)(m.IJSONSchemaRegistry),n.__metadata("design:type",Object)],g.prototype,"schemaRegistry",void 0),t.ExtensionsPointServiceImpl=g=n.__decorate([(0,v.Injectable)()],g)},23396:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=e(85608);n.__exportStar(e(35018),t),n.__exportStar(e(96702),t),n.__exportStar(e(14790),t)},21634:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.browserViews=void 0;const n=e(43718);var r;(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:{...o.properties,description:(0,n.localize)("sumiContributes.browserViews.left")},right:{...o.properties,description:(0,n.localize)("sumiContributes.browserViews.right")},bottom:{...o.properties,description:(0,n.localize)("sumiContributes.browserViews.bottom")}}}})(r||(t.browserViews=r={}))},57559:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.menus=void 0;const n=e(43718),r=e(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"}}},l={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"}}}]}}},_=[{id:r.MenuId.CommandPalette,description:(0,n.localize)("sumiContributes.menu.api.CommandPalette")},{id:r.MenuId.ActivityBarExtra,description:(0,n.localize)("sumiContributes.menu.api.ActivityBarExtra")},{id:r.MenuId.ActivityBarTopExtra,description:(0,n.localize)("sumiContributes.menu.api.ActivityBarTopExtra")},{id:r.MenuId.DebugBreakpointsContext,description:(0,n.localize)("sumiContributes.menu.api.DebugBreakpointsContext")},{id:r.MenuId.DebugCallStackContext,description:(0,n.localize)("sumiContributes.menu.api.DebugCallStackContext")},{id:r.MenuId.DebugConsoleContext,description:(0,n.localize)("sumiContributes.menu.api.DebugConsoleContext")},{id:r.MenuId.DebugVariablesContext,description:(0,n.localize)("sumiContributes.menu.api.DebugVariablesContext")},{id:r.MenuId.DebugWatchContext,description:(0,n.localize)("sumiContributes.menu.api.DebugWatchContext")},{id:r.MenuId.DebugToolBar,description:(0,n.localize)("sumiContributes.menu.api.DebugToolBar")},{id:r.MenuId.EditorContext,description:(0,n.localize)("sumiContributes.menu.api.EditorContext")},{id:r.MenuId.EditorTitle,description:(0,n.localize)("sumiContributes.menu.api.EditorTitle")},{id:r.MenuId.EditorTitleContext,description:(0,n.localize)("sumiContributes.menu.api.EditorTitleContext")},{id:r.MenuId.ExplorerContext,description:(0,n.localize)("sumiContributes.menu.api.ExplorerContext")},{id:r.MenuId.MenubarAppMenu,description:(0,n.localize)("sumiContributes.menu.api.MenubarAppMenu")},{id:r.MenuId.MenubarEditMenu,description:(0,n.localize)("sumiContributes.menu.api.MenubarEditMenu")},{id:r.MenuId.MenubarFileMenu,description:(0,n.localize)("sumiContributes.menu.api.MenubarFileMenu")},{id:r.MenuId.MenubarGoMenu,description:(0,n.localize)("sumiContributes.menu.api.MenubarGoMenu")},{id:r.MenuId.MenubarHelpMenu,description:(0,n.localize)("sumiContributes.menu.api.MenubarHelpMenu")},{id:r.MenuId.MenubarViewMenu,description:(0,n.localize)("sumiContributes.menu.api.MenubarViewMenu")},{id:r.MenuId.MenubarSelectionMenu,description:(0,n.localize)("sumiContributes.menu.api.MenubarSelectionMenu")},{id:r.MenuId.MenubarTerminalMenu,description:(0,n.localize)("sumiContributes.menu.api.MenubarTerminalMenu")},{id:r.MenuId.TerminalInstanceContext,description:(0,n.localize)("sumiContributes.menu.api.TerminalInstanceContext")},{id:r.MenuId.TerminalNewDropdownContext,description:(0,n.localize)("sumiContributes.menu.api.TerminalNewDropdownContext")},{id:r.MenuId.TerminalTabContext,description:(0,n.localize)("sumiContributes.menu.api.TerminalTabContext")},{id:r.MenuId.OpenEditorsContext,description:(0,n.localize)("sumiContributes.menu.api.OpenEditorsContext")},{id:r.MenuId.SCMResourceContext,description:(0,n.localize)("sumiContributes.menu.api.SCMResourceContext")},{id:r.MenuId.SCMResourceGroupContext,description:(0,n.localize)("sumiContributes.menu.api.SCMResourceGroupContext")},{id:r.MenuId.SCMResourceFolderContext,description:(0,n.localize)("sumiContributes.menu.api.SCMResourceFolderContext")},{id:r.MenuId.SCMTitle,description:(0,n.localize)("sumiContributes.menu.api.SCMTitle")},{id:r.MenuId.SCMInput,description:(0,n.localize)("sumiContributes.menu.api.SCMInput")},{id:r.MenuId.SearchContext,description:(0,n.localize)("sumiContributes.menu.api.SearchContext")},{id:r.MenuId.StatusBarContext,description:(0,n.localize)("sumiContributes.menu.api.StatusBarContext")},{id:r.MenuId.ViewItemContext,description:(0,n.localize)("sumiContributes.menu.api.ViewItemContext")},{id:r.MenuId.ViewTitle,description:(0,n.localize)("sumiContributes.menu.api.ViewTitle")},{id:r.MenuId.SettingsIconMenu,description:(0,n.localize)("sumiContributes.menu.api.SettingsIconMenu")}],v=(p,s,g)=>p.reduce((a,h)=>(a[s(h)]=g?g(h):h,a),Object.create(null));var m;(function(p){p.schema={description:(0,n.localize)("sumiContributes.menu"),type:"object",properties:v(_,s=>s.id,s=>({type:"array",description:s.description,items:o}))},p.subMenusSchema={description:(0,n.localize)("sumiContributes.submenus"),type:"object",additionalProperties:l}})(m||(t.menus=m={}))},14790:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.OpenSumiExtensionPackageSchema=void 0;const n=e(43718);t.OpenSumiExtensionPackageSchema={properties:{sumiContributes:{description:(0,n.localize)("sumiContributes.contributes"),type:"object",properties:{},default:{}}}}},9905:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.toolbar=void 0;const n=e(43718),r=(v,m)=>`${JSON.stringify(v)}: ${m}`,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")]}}},l={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 _;(function(v){v.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:r({type:"button"},(0,n.localize)("sumiContributes.toolbar.actions.type.button")),body:{id:"${2}",type:"button",description:"${3}",title:"${4}",iconPath:"${5}"}},{label:r({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:r({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:l}}}]}}}}})(_||(t.toolbar=_={}))},96702:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.VSCodeExtensionPackageSchema=t.EXTENSION_IDENTIFIER_PATTERN=void 0;const n=e(43718);t.EXTENSION_IDENTIFIER_PATTERN="^([a-z0-9A-Z][a-z0-9-A-Z]*)\\.([a-z0-9A-Z][a-z0-9-A-Z]*)$",t.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:t.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:t.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:(x,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},77273:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FsProviderContribution=t.FilesChangeEvent=void 0;const n=e(43718);class r extends n.BasicEvent{}t.FilesChangeEvent=r,t.FsProviderContribution=Symbol("FsProviderContribution")},136:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.HashCalculateContribution=void 0;const n=e(85608),r=e(76003),o=e(98295),l=e(96405),_=e(66549);let v=class{async initialize(){try{await this.hashCalculateService.initialize()}catch(p){throw new Error(`hashCalculateService init fail:
|
|
31970
31970
|
${p.message}`)}}};t.HashCalculateContribution=v,n.__decorate([(0,r.Autowired)(l.IHashCalculateService),n.__metadata("design:type",Object)],v.prototype,"hashCalculateService",void 0),t.HashCalculateContribution=v=n.__decorate([(0,o.Domain)(_.ClientAppContribution)],v)},41869:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=e(85608);n.__exportStar(e(43718),t),n.__exportStar(e(48560),t),n.__exportStar(e(38578),t),n.__exportStar(e(36206),t),n.__exportStar(e(32796),t),n.__exportStar(e(78132),t),n.__exportStar(e(41118),t),n.__exportStar(e(37015),t),n.__exportStar(e(16884),t),n.__exportStar(e(68456),t),n.__exportStar(e(77273),t),n.__exportStar(e(42637),t),n.__exportStar(e(89378),t),n.__exportStar(e(53746),t),n.__exportStar(e(95040),t),n.__exportStar(e(80832),t),n.__exportStar(e(75694),t),n.__exportStar(e(79951),t),n.__exportStar(e(17544),t),n.__exportStar(e(53736),t),n.__exportStar(e(66963),t),n.__exportStar(e(22689),t),n.__exportStar(e(74404),t),n.__exportStar(e(45670),t),n.__exportStar(e(22366),t),n.__exportStar(e(18193),t),n.__exportStar(e(67304),t),n.__exportStar(e(66894),t),n.__exportStar(e(90697),t),n.__exportStar(e(26542),t),n.__exportStar(e(5910),t),n.__exportStar(e(61943),t),n.__exportStar(e(23396),t),n.__exportStar(e(40827),t),n.__exportStar(e(53736),t)},41118:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),e(85608).__exportStar(e(95376),t)},95376:(x,t,e)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.NO_KEYBINDING_NAME=t.KeybindingRegistryImpl=t.KeybindingService=t.keybindingServicePath=t.KeybindingRegistry=t.KeybindingContribution=t.KeybindingsResultCollection=t.Keybinding=t.KeybindingWeight=t.KeybindingScope=void 0;const r=e(85608),o=e(76003),l=e(43718),_=e(23268),v=e(53736),m=e(81331),p=e(7967),s=e(26542);var g;(function(E){E[E.DEFAULT=0]="DEFAULT",E[E.USER=1]="USER",E[E.WORKSPACE=2]="WORKSPACE",E[E.END=3]="END"})(g||(t.KeybindingScope=g={}));var a;(function(E){E[E.Default=0]="Default",E[E.EditorCore=1]="EditorCore",E[E.EditorContrib=100]="EditorContrib",E[E.WorkbenchContrib=200]="WorkbenchContrib",E[E.BuiltinExtension=300]="BuiltinExtension",E[E.ExternalExtension=400]="ExternalExtension"})(a||(t.KeybindingWeight=a={})),function(E){E.length=E.END-E.DEFAULT}(g||(t.KeybindingScope=g={}));var h;(function(E){function f(y){const b={command:y.command,keybinding:y.keybinding};return JSON.stringify(b)}E.stringify=f;function d(y){return!!y&&y===Object(y)&&"command"in y&&"keybinding"in y}E.is=d})(h||(t.Keybinding=h={}));var u;(function(E){class f{constructor(){this.full=[],this.partial=[],this.shadow=[]}merge(y){return this.full.push(...y.full),this.partial.push(...y.partial),this.shadow.push(...y.shadow),this}filter(y){const b=new f;return b.full=this.full.filter(y),b.partial=this.partial.filter(y),b.shadow=this.shadow.filter(y),b}}E.KeybindingsResult=f})(u||(t.KeybindingsResultCollection=u={})),t.KeybindingContribution=Symbol("KeybindingContribution"),t.KeybindingRegistry=Symbol("KeybindingRegistry"),t.keybindingServicePath="/services/keybindings",t.KeybindingService=Symbol("KeybindingService");let c=n=class{constructor(){this.keymaps=[...Array(g.length)].map(()=>[]),this.keySequence=[],this.convertKeySequence=[],this.modifierKeySequence=[],this._inComposition=!1,this.keybindingsChanged=new l.Emitter,this.handleCompositionStart=()=>{this._inComposition=!0},this.handleCompositionEnd=()=>{this._inComposition=!1}}async initialize(){await this.keyboardLayoutService.initialize(),this.keyboardLayoutService.onKeyboardLayoutChanged(()=>{this.clearResolvedKeybindings()});for(const f of this.keybindingContributionProvider.getContributions())f.registerKeybindings(this)}get onKeybindingsChanged(){return this.keybindingsChanged.event}registerKeybinding(f,d=g.DEFAULT){return this.doRegisterKeybinding(f,d)}registerKeybindings(f,d=g.DEFAULT){return this.doRegisterKeybindings(f,d)}convertMonacoWhen(f){return f?typeof f=="string"?f:f.serialize():""}unregisterKeybinding(f,d=g.DEFAULT){const y=h.is(f)?f.keybinding:f,b=this.keymaps[d];let A;h.is(f)&&f.when?A=b.filter(S=>this.isKeybindingEqual(S.keybinding,f.keybinding)&&this.isKeybindingWhenEqual(S.when,f.when)):A=b.filter(S=>this.isKeybindingEqual(S.keybinding,y)),A.forEach(S=>{const D=b.indexOf(S);D>=0&&b.splice(D,1)})}isKeybindingWhenEqual(f,d){return this.convertMonacoWhen(f)===this.convertMonacoWhen(d)}isKeybindingEqual(f,d){return this.acceleratorForSequenceKeyString(f)===this.acceleratorForSequenceKeyString(d)}acceleratorForSequenceKeyString(f){const y=f.split(" ").map(b=>p.KeyCode.parse(b));return this.acceleratorForSequence(y,"+").join(" ")}doRegisterKeybindings(f,d=g.DEFAULT){const y=new l.Disposable;for(const b of f)y.addDispose(this.doRegisterKeybinding(b,d));return y}doRegisterKeybinding(f,d=g.DEFAULT){try{this.resolveKeybinding(f,!0),this.keymaps[d].unshift(f)}catch(y){this.logger.warn(`Could not register keybinding:
|
|
@@ -32208,7 +32208,7 @@ your modifications. Are you sure to regenerate?`,"aiNative.resolve.conflict.mess
|
|
|
32208
32208
|
|
|
32209
32209
|
\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.hover.enabled":"\u63A7\u5236\u662F\u5426\u5728\u7F16\u8F91\u5668\u4E2D\u542F\u7528\u4EE3\u7801\u63D0\u793A\u3002","editor.configuration.hover.delay":"\u63A7\u5236\u4EE3\u7801\u63D0\u793A\u663E\u793A\u7684\u5EF6\u8FDF\u65F6\u95F4\uFF08\u6BEB\u79D2\uFF09\u3002","editor.configuration.hover.sticky":"\u63A7\u5236\u4EE3\u7801\u63D0\u793A\u662F\u5426\u5728\u9F20\u6807\u60AC\u505C\u65F6\u4FDD\u6301\u53EF\u89C1\u3002","editor.configuration.hover.hidingDelay":"\u63A7\u5236\u4EE3\u7801\u63D0\u793A\u9690\u85CF\u7684\u5EF6\u8FDF\u65F6\u95F4\uFF08\u6BEB\u79D2\uFF09\u3002\u9700\u8981 `editor.hover.sticky` \u8BBE\u7F6E\u4E3A true \u65F6\u751F\u6548\u3002","editor.configuration.hover.above":"\u4F18\u5148\u663E\u793A\u4EE3\u7801\u63D0\u793A\u5728\u884C\u4E0A\u65B9\uFF0C\u5982\u679C\u884C\u6709\u7A7A\u95F4\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","multiDiffEditor.action.collapseFiles":"\u6298\u53E0\u6240\u6709\u6587\u4EF6","multiDiffEditor.action.expandFiles":"\u5C55\u5F00\u6240\u6709\u6587\u4EF6","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":"\u6587\u672C\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\u8F93\u5165 @ \u53EF\u5F15\u7528\u5185\u5BB9","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.chat.defaultContextFile":"\u5F53\u524D\u6587\u4EF6","aiNative.chat.defaultContextFolder":"\u5F53\u524D\u6587\u4EF6\u5939","aiNative.chat.thinking":"\u6DF1\u5EA6\u601D\u8003","aiNative.chat.imageUpload":"\u4E0A\u4F20\u56FE\u7247","aiNative.chat.clearContext":"\u6E05\u7A7A\u4E0A\u4E0B\u6587","aiNative.chat.context.description":"\u5171 {0} \u4E2A\u5F15\u7528","aiNative.chat.context.clear":"\u70B9\u51FB\u6E05\u7A7A\u5F15\u7528","aiNative.chat.modelSelector.disableTip":"\u5982\u9700\u5207\u6362\u6A21\u578B\uFF0C\u8BF7\u65B0\u5EFA\u6216\u6E05\u7A7A\u4F1A\u8BDD","aiNative.inline.chat.operate.chat.title":"Chat({0})","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":"\u8BF7\u8F93\u5165\u4F60\u7684\u610F\u56FE...(\u2191\u2193 \u5207\u6362\u5386\u53F2)","aiNative.inline.chat.generating.canceled":"Inline Chat \u5DF2\u505C\u6B62\u751F\u6210","aiNative.inline.hint.widget.placeholder":"\u6309 {0} \u5524\u8D77 Inline Chat","aiNative.inline.problem.fix.title":"AI \u4FEE\u590D","aiNative.inline.diff.accept":"\u91C7\u7EB3","aiNative.inline.diff.reject":"\u62D2\u7EDD","aiNative.chat.view-changes":"\u67E5\u770B\u6539\u52A8","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
|
|
32210
32210
|
\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.operate.tools.title":"MCP \u5DE5\u5177","aiNative.operate.newChat.title":"\u65B0\u5EFA\u804A\u5929","aiNative.operate.chatHistory.title":"\u804A\u5929\u5386\u53F2","aiNative.operate.chatHistory.searchPlaceholder":"\u8BF7\u641C\u7D22...","aiNative.operate.chatHistory.edit":"\u7F16\u8F91","aiNative.operate.chatHistory.delete":"\u5220\u9664","aiNative.chat.welcome.loading.text":"\u521D\u59CB\u5316\u4E2D...","aiNative.chat.ai.assistant.limit.message":"{0} \u6761\u6700\u65E9\u7684\u6D88\u606F\u56E0\u8F93\u5165 Tokens \u9650\u5236\u800C\u88AB\u4E22\u5F03","aiNative.inlineDiff.acceptAll":"\u63A5\u53D7\u5168\u90E8","aiNative.inlineDiff.rejectAll":"\u62D2\u7EDD\u5168\u90E8","aiNative.inlineDiff.reveal":"\u5728\u804A\u5929\u4E2D\u5C55\u793A","aiNative.inlineDiff.up":"\u4E0A\u4E00\u5904\u53D8\u66F4","aiNative.inlineDiff.down":"\u4E0B\u4E00\u5904\u53D8\u66F4","aiNative.inlineDiff.right":"\u4E0B\u4E00\u5904\u6587\u4EF6","aiNative.inlineDiff.left":"\u4E0A\u4E00\u5904\u6587\u4EF6","aiNative.inlineDiff.noMoreChangesUp":"\u9876\u90E8\u6CA1\u6709\u66F4\u591A\u53D8\u66F4\u4E86","aiNative.inlineDiff.noMoreChangesDown":"\u5E95\u90E8\u6CA1\u6709\u66F4\u591A\u53D8\u66F4\u4E86","aiNative.chat.session.max":"\u6700\u591A\u53EA\u80FD\u521B\u5EFA {0} \u4E2A\u804A\u5929","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.inlineDiff.preview.mode":"Inline Diff \u7684\u9884\u89C8\u6A21\u5F0F","preference.ai.native.inlineDiff.preview.mode.sideBySide":"\u5728\u7F16\u8F91\u5668\u5F53\u4E2D\u4EE5\u5DE6\u53F3 diff \u9762\u677F\u7684\u65B9\u5F0F\u5C55\u793A","preference.ai.native.inlineDiff.preview.mode.inlineLive":"\u5728\u7F16\u8F91\u5668\u5F53\u4E2D\u4EE5\u6D41\u5F0F\u6E32\u67D3\u7684\u65B9\u5F0F\u5C55\u793A","preference.ai.native.intelligentCompletions.title":"\u667A\u80FD\u8865\u5168","preference.ai.native.intelligentCompletions.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.intelligentCompletions.debounceTime":"\u667A\u80FD\u8865\u5168\u7684\u5EF6\u8FDF\u65F6\u95F4\uFF08\u6BEB\u79D2\uFF09","preference.ai.native.intelligentCompletions.cache.enabled":"\u662F\u5426\u542F\u7528\u667A\u80FD\u8865\u5168\u7684\u7F13\u5B58","preference.ai.native.intelligentCompletions.alwaysVisible":"\u662F\u5426\u603B\u662F\u5C55\u793A\u667A\u80FD\u8865\u5168","preference.ai.native.codeEdits.title":"\u667A\u80FD\u6539\u5199","preference.ai.native.codeEdits.lintErrors":"\u662F\u5426\u5728\u53D1\u751F Lint Error \u65F6\u89E6\u53D1\u667A\u80FD\u6539\u5199","preference.ai.native.codeEdits.lineChange":"\u662F\u5426\u5728\u5149\u6807\u884C\u53F7\u53D1\u751F\u53D8\u5316\u65F6\u89E6\u53D1\u667A\u80FD\u6539\u5199","preference.ai.native.codeEdits.typing":"\u662F\u5426\u5728\u5185\u5BB9\u53D1\u751F\u53D8\u5316\u65F6\u89E6\u53D1\u667A\u80FD\u6539\u5199","preference.ai.native.codeEdits.renderType":"\u667A\u80FD\u6539\u5199\u6E32\u67D3\u65B9\u5F0F","preference.ai.native.chat.system.prompt":"\u9ED8\u8BA4\u804A\u5929\u7CFB\u7EDF\u63D0\u793A\u8BCD","webview.webviewTagUnavailable":"\u975E Electron \u73AF\u5883\u4E0D\u652F\u6301 webview \u6807\u7B7E\uFF0C\u8BF7\u4F7F\u7528 iframe \u6807\u7B7E","notebook.kernel.panel.empty":"\u6682\u65E0\u5185\u5BB9","notebook.kernel.panel.title":"\u8FD0\u884C\u7684\u7EC8\u7AEF\u548C\u5185\u6838","notebook.kernel.panel.opened.pages":"\u5DF2\u5F00\u542F\u7684\u6807\u7B7E\u9875","notebook.kernel.panel.running.kernels":"\u8FD0\u884C\u7684\u5185\u6838","notebook.kernel.close.all.confirmation":"\u4F60\u786E\u5B9A\u8981\u5173\u95ED\u5168\u90E8\u5417\uFF1F","notebook.variable.panel.title":"\u53D8\u91CF\u68C0\u67E5\u5668","notebook.variable.panel.unsupported":"\u8BE5\u6587\u4EF6\u683C\u5F0F\u6682\u4E0D\u652F\u6301\u53D8\u91CF\u68C0\u67E5","notebook.variable.panel.refresh.success":"\u53D8\u91CF\u5237\u65B0\u6210\u529F","notebook.variable.panel.refresh.error":"\u53D8\u91CF\u5237\u65B0\u5931\u8D25","notebook.variable.panel.search.placeholder":"\u8BF7\u8F93\u5165\u53D8\u91CF\u540D\u79F0\u641C\u7D22","notebook.variable.panel.show.detail":"\u67E5\u770B\u8BE6\u60C5",...r.browserViews,...o.editorLocalizations,...l.zhCN,"preference.ai.native.llm.apiSettings.title":"\u5927\u6A21\u578B API \u8BBE\u7F6E","preference.ai.native.llm.model.id":"\u6A21\u578B ID","preference.ai.native.deepseek.apiKey":"Deepseek API \u5BC6\u94A5","preference.ai.native.deepseek.apiKey.description":"Deepseek \u8BED\u8A00\u6A21\u578B\u7684 API \u5BC6\u94A5","preference.ai.native.anthropic.apiKey":"Anthropic API \u5BC6\u94A5","preference.ai.native.anthropic.apiKey.description":"Anthropic \u8BED\u8A00\u6A21\u578B\u7684 API \u5BC6\u94A5","preference.ai.native.openai.apiKey":"OpenAI API \u5BC6\u94A5","preference.ai.native.openai.apiKey.description":"OpenAI \u517C\u5BB9\u8BED\u8A00\u6A21\u578B\u7684 API \u5BC6\u94A5","preference.ai.native.openai.baseURL":"OpenAI Base URL","preference.ai.native.openai.baseURL.description":"OpenAI \u517C\u5BB9\u8BED\u8A00\u6A21\u578B\u7684 Base URL","preference.ai.native.contextWindow":"\u4E0A\u4E0B\u6587\u7A97\u53E3","preference.ai.native.contextWindow.description":"\u4E0A\u4E0B\u6587\u7A97\u53E3\u7684\u6700\u5927Token\u6570","preference.ai.native.maxTokens":"\u6700\u5927\u8F93\u51FA","preference.ai.native.maxTokens.description":"\u6700\u5927\u8F93\u51FAToken\u6570","preference.ai.native.mcp.settings.title":"MCP \u670D\u52A1\u5668\u8BBE\u7F6E","preference.ai.native.mcp.servers":"MCP \u670D\u52A1\u5668","preference.ai.native.mcp.servers.description":"\u914D\u7F6E MCP (Model Context Protocol) \u670D\u52A1\u5668","preference.ai.native.mcp.servers.name.description":"MCP \u670D\u52A1\u5668\u540D\u79F0","preference.ai.native.mcp.servers.command.description":"\u542F\u52A8 MCP \u670D\u52A1\u5668\u7684\u547D\u4EE4","preference.ai.native.mcp.servers.args.description":"MCP \u670D\u52A1\u5668\u7684\u547D\u4EE4\u884C\u53C2\u6570","preference.ai.native.mcp.servers.env.description":"MCP \u670D\u52A1\u5668\u7684\u73AF\u5883\u53D8\u91CF","preference.ai.native.mcp.servers.type.description":"MCP \u670D\u52A1\u5668\u8FDE\u63A5\u7C7B\u578B","preference.ai.native.mcp.servers.type.stdio":"Stdio \u8FDE\u63A5","preference.ai.native.mcp.servers.type.sse":"SSE \u8FDE\u63A5","ai.native.mcp.terminal.command":"\u547D\u4EE4","ai.native.mcp.terminal.output":"\u8F93\u51FA","ai.native.mcp.terminal.allow-question":"\u662F\u5426\u5141\u8BB8\u8FD0\u884C\u547D\u4EE4?","ai.native.mcp.terminal.allow":"\u5141\u8BB8","ai.native.mcp.terminal.deny":"\u62D2\u7EDD","ai.native.terminal.autorun":"\u7EC8\u7AEF\u547D\u4EE4\u81EA\u52A8\u6267\u884C\u7B56\u7565","ai.native.terminal.autorun.description":"Agent\u7EC8\u7AEF\u547D\u4EE4\u7684\u81EA\u52A8\u6267\u884C\u7B56\u7565\u3002`off` \u8868\u793A\u6C38\u8FDC\u4E0D\u81EA\u52A8\u6267\u884C\uFF0C`auto` \u8868\u793A\u6A21\u578B\u5C06\u6839\u636E\u547D\u4EE4\u51B3\u5B9A\u662F\u5426\u81EA\u52A8\u6267\u884C\uFF08\u53EA\u9002\u7528\u4E8E\u9AD8\u7EA7\u6A21\u578B\uFF09\uFF0C`always` \u8868\u793A\u6C38\u8FDC\u81EA\u52A8\u6267\u884C\u3002","ai.native.terminal.autorun.denied":"\u9ED8\u8BA4\u60C5\u51B5\u4E0B\u62D2\u7EDD\u81EA\u52A8\u8FD0\u884C","ai.native.terminal.autorun.question":"\u5E0C\u671B\u81EA\u52A8\u8FD0\u884C?","ai.native.terminal.autorun.command":"\u70B9\u51FB\u66F4\u6539\u547D\u4EE4\u81EA\u52A8\u6267\u884C\u7B56\u7565.","ai.native.terminal.autorun.always":"\u59CB\u7EC8\u5141\u8BB8","ai.native.terminal.autorun.auto":"\u6A21\u578B\u81EA\u52A8\u6267\u884C","ai.native.terminal.autorun.off":"\u7981\u6B62\u81EA\u52A8\u6267\u884C","ai.native.terminal.autorun.running":"\u547D\u4EE4\u6267\u884C\u4E2D...","ai.native.mcp.name":"\u540D\u79F0:","ai.native.mcp.command":"\u547D\u4EE4:","ai.native.mcp.args":"\u53C2\u6570:","ai.native.mcp.env":"\u73AF\u5883\u53D8\u91CF:","ai.native.mcp.type":"\u7C7B\u578B:","ai.native.mcp.stdio":"Command","ai.native.mcp.sse":"SSE","ai.native.mcp.buttonSave":"\u6DFB\u52A0","ai.native.mcp.buttonUpdate":"\u66F4\u65B0","ai.native.mcp.buttonCancel":"\u53D6\u6D88","ai.native.mcp.addMCPServer.title":"\u6DFB\u52A0 MCP \u670D\u52A1\u5668","ai.native.mcp.editMCPServer.title":"\u7F16\u8F91 MCP \u670D\u52A1\u5668","ai.native.mcp.url.placeHolder":"\u8F93\u5165 SSE URL","ai.native.mcp.command.placeHolder":"\u8F93\u5165\u547D\u4EE4","ai.native.mcp.args.placeHolder":"\u8FD0\u884C\u53C2\u6570","ai.native.mcp.env.placeHolder":"KEY=value\uFF08\u6BCF\u884C\u4E00\u4E2A\uFF09","ai.native.mcp.name.placeHolder":"\u670D\u52A1\u5668\u540D\u79F0","ai.native.mcp.type.builtin":"\u5185\u7F6E","ai.native.mcp.type.sse":"SSE","ai.native.mcp.type.stdio":"\u547D\u4EE4","ai.native.mcp.serverNameExists":'\u670D\u52A1\u540D\u79F0 "{0}" \u5DF2\u5B58\u5728',"ai.native.mcp.name.isRequired":"\u670D\u52A1\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A","ai.native.mcp.command.isRequired":"\u547D\u4EE4\u4E0D\u80FD\u4E3A\u7A7A","ai.native.mcp.url.isRequired":"SSE URL \u4E0D\u80FD\u4E3A\u7A7A","ai.native.mcp.manage.connections":"\u7BA1\u7406\u4F60\u7684 MCP \u670D\u52A1\u5668\u8FDE\u63A5","ai.native.mcp.enabled":"\u5DF2\u542F\u7528","ai.native.mcp.disabled":"\u5DF2\u7981\u7528","ai.native.mcp.enable.title":"\u542F\u52A8\u8BE5\u670D\u52A1","ai.native.mcp.disable.title":"\u505C\u6B62\u8BE5\u670D\u52A1","ai.native.mcp.config.title":"MCP \u914D\u7F6E","ai.native.mcp.tool.arguments":"\u53C2\u6570","ai.native.mcp.tool.results":"\u8FD4\u56DE","ai.native.mcp.tool.action.edit":"\u4FEE\u6539","ai.native.mcp.tool.action.delete":"\u5220\u9664","ai.native.mcp.tool.action.sync":"\u540C\u6B65"}}},10199:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),e(85608).__exportStar(e(32581),t)},21774:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.KeymapsModule=void 0;const n=e(85608),r=e(76003),o=e(41869),l=e(25067),_=e(48644),v=e(85448);let m=class extends o.BrowserModule{constructor(){super(...arguments),this.providers=[{token:l.IKeymapService,useClass:v.KeymapService},_.KeymapsContribution]}};t.KeymapsModule=m,t.KeymapsModule=m=n.__decorate([(0,r.Injectable)()],m)},2312:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.KeymapsParser=t.keymapsSchema=void 0;const n=e(85608),r=n.__importDefault(e(82174)),o=n.__importStar(e(23304)),l=e(76003);t.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 _=class{constructor(){this.validate=new r.default({jsonPointers:!0}).compile(t.keymapsSchema)}parse(m,p){const s=o.stripComments(m),g=p?[]:void 0,a=o.parse(s,g);if(g&&p)for(const h of g)p.push(`${this.printParseErrorCode(h.error)} at ${h.offset} offset of ${h.length} length`);if(this.validate(a))return a;if(p&&this.validate.errors)for(const h of this.validate.errors)p.push(`${h.message} at ${h.dataPath}`);return[]}printParseErrorCode(m){return o.printParseErrorCode(m)}};t.KeymapsParser=_,t.KeymapsParser=_=n.__decorate([(0,l.Injectable)(),n.__metadata("design:paramtypes",[])],_)},48644:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.KeymapsContribution=t.KEYMAP_COMMANDS=t.KeymapsContextMenu=t.KeymapsResourceProvider=void 0;const n=e(85608),r=e(76003),o=e(41869),l=e(93899),_=e(57517),v=e(42933),m=e(97821),p=e(25067),s=e(34879),g="keymaps-preview";let a=class extends o.WithEventBus{constructor(){super(),this.scheme=p.KEYMAPS_SCHEME}provideResource(f){return{supportsRevive:!0,name:(0,o.localize)("keymaps.tab.name"),icon:(0,o.getIcon)("setting"),uri:f}}provideResourceSubname(f,d){return null}async shouldCloseResource(f,d){return!0}};t.KeymapsResourceProvider=a,t.KeymapsResourceProvider=a=n.__decorate([(0,r.Injectable)(),n.__metadata("design:paramtypes",[])],a);var h;(function(E){E.KEYMAPS="2_keymaps"})(h||(t.KeymapsContextMenu=h={}));var u;(function(E){const f="keymaps";E.OPEN_SOURCE_FILE={id:"keymaps.open.source",label:"%keymaps.editorTitle.openSource%",category:f}})(u||(t.KEYMAP_COMMANDS=u={}));let c=class{registerCommands(f){f.registerCommand(o.COMMON_COMMANDS.OPEN_KEYMAPS,{isEnabled:()=>!0,execute:async()=>{await this.keymapService.open()}}),f.registerCommand(u.OPEN_SOURCE_FILE,{execute:async()=>{this.keymapService.openResource()}}),f.registerCommand(o.KEYBOARD_COMMANDS.CHOOSE_KEYBOARD_LAYOUT,{execute:()=>{this.chooseLayout()}})}registerMenus(f){f.registerMenuItem(l.MenuId.SettingsIconMenu,{command:o.COMMON_COMMANDS.OPEN_KEYMAPS.id,group:h.KEYMAPS}),f.registerMenuItem(l.MenuId.EditorTitle,{command:u.OPEN_SOURCE_FILE.id,iconClass:(0,o.getIcon)("open"),group:"navigation",order:4,when:`resourceScheme == ${p.KEYMAPS_SCHEME}`}),f.registerMenuItem(l.MenuId.EditorTitle,{command:o.COMMON_COMMANDS.OPEN_KEYMAPS.id,iconClass:(0,o.getIcon)("open"),group:"navigation",order:4,when:"resourceFilename =~ /keymaps.json/"})}registerKeybindings(f){f.registerKeybinding({command:o.COMMON_COMMANDS.OPEN_KEYMAPS.id,keybinding:"ctrlcmd+K ctrlcmd+S"})}onStart(){this.keymapService.init()}registerResource(f){f.registerResourceProvider(this.keymapsResourceProvider)}registerEditorComponent(f){f.registerEditorComponent({component:s.KeymapsView,uid:g,scheme:p.KEYMAPS_SCHEME}),f.registerEditorComponentResolver(p.KEYMAPS_SCHEME,(d,y,b)=>{b([{type:_.EditorOpenType.component,componentId:g}])})}async chooseLayout(){const f=this.layoutProvider.currentLayoutData,d={label:(0,o.localize)("keyboard.autoDetect.label"),description:f&&this.layoutProvider.currentLayoutSource!=="user-choice"?(0,o.formatLocalize)("keyboard.autoDetect.description",(0,o.getKeyboardLayoutId)(f.layout)):void 0,detail:(0,o.localize)("keyboard.autoDetect.detail"),value:"autodetect"},y=this.layoutProvider.allLayoutData.map(S=>this.toQuickPickValue(S,f===S));let b;b=[d,...y];const A=await this.quickPickService.show(b,{placeholder:"Choose a keyboard layout"});if(A)return this.layoutProvider.setLayoutData(A)}toQuickPickValue(f,d){return{label:(0,o.getKeyboardLayoutId)(f.layout),value:f}}};t.KeymapsContribution=c,n.__decorate([(0,r.Autowired)(m.QuickPickService),n.__metadata("design:type",Object)],c.prototype,"quickPickService",void 0),n.__decorate([(0,r.Autowired)(o.KeyboardNativeLayoutService),n.__metadata("design:type",Object)],c.prototype,"layoutProvider",void 0),n.__decorate([(0,r.Autowired)(v.IFileServiceClient),n.__metadata("design:type",Object)],c.prototype,"filesystem",void 0),n.__decorate([(0,r.Autowired)(a),n.__metadata("design:type",a)],c.prototype,"keymapsResourceProvider",void 0),n.__decorate([(0,r.Autowired)(p.IKeymapService),n.__metadata("design:type",Object)],c.prototype,"keymapService",void 0),t.KeymapsContribution=c=n.__decorate([(0,o.Domain)(o.CommandContribution,o.KeybindingContribution,o.ClientAppContribution,_.BrowserEditorContribution,l.MenuContribution)],c)},85448:(x,t,e)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.KeymapService=void 0;const r=e(85608),o=r.__importStar(e(39050)),l=e(76003),_=e(41869),v=e(68969),m=e(14951),p=e(25067),s=e(2312);let g=n=class{constructor(){this.keymapChangeEmitter=new _.Emitter,this.convertKeySequence=[],this.toUnregisterUserKeybindingMap=new Map,this.toRestoreDefaultKeybindingMap=new Map,this.searchDelayer=new _.ThrottledDelayer(n.DEFAULT_SEARCH_DELAY),this.disposableCollection=new _.DisposableCollection,this._whenReadyDeferred=new _.Deferred,this.fuzzyOptions={pre:"<match>",post:"</match>"},this.reconcileQueue=new _.Throttler,this.keybindings=[],this.updateKeybindings=()=>{this.currentSearchValue?this.doSearchKeybindings(this.currentSearchValue):(0,_.runWhenIdle)(()=>{this.keybindings=this.getKeybindingItems(),this.keymapChangeEmitter.fire(this.keybindings)})},this.setKeybinding=(h,u)=>this.progressService.withProgress({location:_.ProgressLocation.Notification},c=>new Promise((E,f)=>{c.report({message:(0,_.localize)("keymaps.keybinding.loading"),increment:0,total:100});const d=this.storeKeybindings||[];let y=!1;for(const b of d){const A={when:b.when,command:b.command,keybinding:b.key};if(b.command===u.command){y=!0,this.unregisterUserKeybinding(A);const S=this.toUniqueKey(h),D=this.toRestoreDefaultKeybindingMap.get(S);if(D){const I=this.toUniqueKey(u);this.toRestoreDefaultKeybindingMap.delete(S),this.toRestoreDefaultKeybindingMap.set(I,D)}b.key=u.keybinding,this.registerUserKeybinding({...A,priority:_.KeybindingWeight.WorkbenchContrib*100})}}if(!y){const b=this.keybindings.find(S=>S.id===u.command&&this.getRaw(S.when)===u.when);if(b&&b.keybinding){this.unregisterDefaultKeybinding({when:this.getRaw(b.when),command:b.id,keybinding:this.getRaw(b.keybinding)});const S=this.toUniqueKey(h),D=this.toRestoreDefaultKeybindingMap.get(S);if(D){const I=this.toUniqueKey(u);this.toRestoreDefaultKeybindingMap.delete(S),this.toRestoreDefaultKeybindingMap.set(I,D)}}const A={when:this.getWhen(u),command:u.command,key:u.keybinding};d.push(A),this.registerUserKeybinding(u)}return this.saveKeybinding(d).then(()=>{E(void 0),c.report({message:(0,_.localize)("keymaps.keybinding.success"),increment:99})}).catch(b=>{f(b),c.report({message:(0,_.localize)("keymaps.keybinding.fail"),increment:99})}).finally(()=>{setTimeout(()=>{c.report({increment:100})},3e3)})}),()=>{}),this.covert=h=>this.keybindingService.convert(h," "),this.clearCovert=()=>this.keybindingService.clearConvert(),this.resetKeybinding=async h=>{if(!this.resource)return;const c=this.storeKeybindings.filter(E=>E.command!==h.command);return this.unregisterUserKeybinding(h),this.restoreDefaultKeybinding(h),this.saveKeybinding(c)},this.fixed=async()=>{this.commandService.executeCommand(_.EDITOR_COMMANDS.OPEN_RESOURCE.id,new _.URI().withScheme(p.KEYMAPS_SCHEME),{preview:!1})},this.searchKeybindings=h=>{this.currentSearchValue=h,this.searchDelayer.isTriggered()||this.searchDelayer.cancel(),this.searchDelayer.trigger(async()=>{this.doSearchKeybindings(this.currentSearchValue)})},this.isSearching=!1,this.doSearchKeybindings=h=>{h?this.isSearching=!0:this.isSearching=!1;const u=this.getKeybindingItems(),c=[];u.forEach(E=>{const f=["id","command","keybinding","when","context","source"];let d=!1;for(const y of f){const b=E[y];if(b){const A=o.match(h,b,this.fuzzyOptions);if(A)E[y]=A.rendered,d=!0;else if(y==="keybinding"){const S=h.split("+"),D=b.split(" "),I=[0];let w=[];D.length>1?D.forEach(P=>{const O=P.split("+");I.push(O.length+I[-1]),w.push(...O)}):w=b.split("+"),I.shift();const T=[...w];let R=0;if(S.forEach(P=>{let O={rendered:"",score:0},M=-1;if(b){w.forEach(F=>{const L=o.match(P,F,this.fuzzyOptions);L&&L.score>O.score&&(O=L,M=T.indexOf(F))});const k=O.rendered;k&&(M>-1&&(T[M]=k),w.splice(M,1,""),R+=1)}}),R===S.length){if(I.length>0){const P="";T.forEach((O,M)=>{M===0?P.concat(O):I.indexOf(M)!==-1?P.concat(" "+O):P.concat("+"+O)}),E[y]=P}E[y]=T.join("+"),d=!0}}}}d&&c.push(E)}),this.keybindings=c,this.keymapChangeEmitter.fire(this.keybindings)},this.validateKeybinding=(h,u)=>{if(!u)return(0,_.localize)("keymaps.keybinding.require");try{const c={command:this.isSearching?this.getRaw(h.command):h.command,when:this.isSearching?this.getRaw(h.when):h.when,keybinding:this.isSearching?this.getRaw(u):u};return h.keybinding===u?" ":this.keybindingRegistry.validateKeybindingInScope(c)}catch(c){return c}},this.detectKeybindings=(h,u)=>{if(!u)return[];try{if(h.keybinding===u)return[];const c=this.keybindings.filter(E=>this.getRaw(E.keybinding)===u);if(c.length>0)return c.map(E=>{const f=this.commandRegistry.getCommand(this.getRaw(E.command)),d=this.storeKeybindings.find(y=>f&&y.command===f.id);return E.when=this.getRaw(E.when),E.keybinding=this.getRaw(E.keybinding),{id:f?f.id:this.getRaw(E.command),command:(f?f.label||f.id:E.command)||"",when:this.keybindingService.convertMonacoWhen(E.when),keybinding:this.getRaw(E.keybinding),source:d?this.getScope(_.KeybindingScope.USER):this.getScope(_.KeybindingScope.DEFAULT)}})}catch(c){this.logger.error(c)}return[]}}get onDidKeymapChanges(){return this.keymapChangeEmitter.event}get storeKeybindings(){return this._storeKeybindings&&this._storeKeybindings.map(h=>({...h,command:this.getValidateCommand(h.command),key:h.key||h.keybinding}))}set storeKeybindings(h){this._storeKeybindings=h}get whenReady(){return this._whenReadyDeferred.promise}async init(){await this.reconcile();const h=await this.filesystem.watchFileChanges(n.KEYMAP_FILE_URI);this.disposableCollection.push(h),h.onFilesChanged(()=>{this.reconcileQueue.queue(this.reconcile.bind(this))}),this._whenReadyDeferred.resolve()}async openResource(){if(!this.resource||!this.resource.uri)return;const h=await this.resource.uri;if(!h)return;if(!await this.filesystem.access(h)){const c=await this.filesystem.createFile(h),E=await this.filesystem.setContent(c,`{
|
|
32211
|
-
}`);this.resource=E||void 0}h&&this.commandService.executeCommand(_.EDITOR_COMMANDS.OPEN_RESOURCE.id,new _.URI(h),{preview:!1})}disposeRegistedKeybinding(){for(const[,h]of this.toUnregisterUserKeybindingMap)h.dispose();for(const[,h]of this.toRestoreDefaultKeybindingMap)h.dispose()}dispose(){this.disposeRegistedKeybinding(),this.disposableCollection.dispose()}getValidateCommand(h){return h.replace(/^monaco.editor/,"editor")}async reconcile(h){const u=n.KEYMAP_FILE_URI.toString();this.resource=await this.filesystem.getFileStat(u),this.resource||(this.resource=await this.filesystem.createFile(u,{content:JSON.stringify([])}));const E=(h?h.slice(0):await this.parseKeybindings()).map(y=>({when:y.when,command:this.getValidateCommand(y.command),keybinding:y.key||y.keybinding})),f=[],d=[];this.disposeRegistedKeybinding(),E.forEach(y=>{y.command.startsWith("-")?d.push(y):f.push(y)}),f.map(y=>{this.unregisterDefaultKeybinding(y,!0),this.registerUserKeybinding(y)}),d.map(y=>{y.command=y.command.slice(1),this.unregisterDefaultKeybinding(y,!0)})}unregisterUserKeybinding(h){const u=this.toUniqueKey(h);if(this.toUnregisterUserKeybindingMap.has(u)){const c=this.toUnregisterUserKeybindingMap.get(u);c?.dispose(),this.toUnregisterUserKeybindingMap.delete(u)}}registerUserKeybinding(h){const u=this.toUniqueKey(h);this.toUnregisterUserKeybindingMap.set(u,this.keybindingRegistry.registerKeybinding(h,_.KeybindingScope.USER))}unregisterDefaultKeybinding(h,u=!1){if(u)this.keybindingRegistry.getKeybindingsForCommand(h.command).map(E=>{const f={...h,keybinding:E.keybinding};this.keybindingRegistry.unregisterKeybinding(f);const d=this.toUniqueKey(h);this.toRestoreDefaultKeybindingMap.set(d,_.Disposable.create(()=>{this.keybindingRegistry.registerKeybinding(f)}))});else{this.keybindingRegistry.unregisterKeybinding(h);const c=this.toUniqueKey(h);this.toRestoreDefaultKeybindingMap.set(c,_.Disposable.create(()=>{this.keybindingRegistry.registerKeybinding(h)}))}}restoreDefaultKeybinding(h){const u=this.toUniqueKey(h),c=this.toRestoreDefaultKeybindingMap.get(u);c&&(c?.dispose(),this.toRestoreDefaultKeybindingMap.delete(u))}toUniqueKey(h){return`${h.command}${h.when?`-${h.when}`:"-"}${h.keybinding?`-${h.keybinding}`:"-"}`}async parseKeybindings(){try{const h=await this.resource;if(!h)return[];const{content:u}=await this.filesystem.readFile(h.uri);this.storeKeybindings=this.parser.parse(u.toString())}catch(h){this.logger.warn(`ParseKeybindings fail: ${h.stack}`),this.storeKeybindings=[]}return this.storeKeybindings}async saveKeybinding(h){this.storeKeybindings=h,this.updateKeybindings(),this.resource||(this.resource=await this.filesystem.createFile(n.KEYMAP_FILE_URI.toString()));const u=await this.filesystem.setContent(this.resource,JSON.stringify(h,void 0,2));this.resource=u||void 0}async getKeybindings(){return this.storeKeybindings.map(h=>({command:h.command,keybinding:h.key,when:h.when,args:h.args}))}async open(){this.commandService.executeCommand(_.EDITOR_COMMANDS.OPEN_RESOURCE.id,new _.URI().withScheme(p.KEYMAPS_SCHEME),{preview:!0})}getWhen(h){return h?this.keybindingService.convertMonacoWhen(h.when):""}getScope(h){return h===_.KeybindingScope.DEFAULT?(0,_.localize)("keymaps.source.default"):h===_.KeybindingScope.USER?(0,_.localize)("keymaps.source.user"):h===_.KeybindingScope.WORKSPACE?(0,_.localize)("keymaps.source.workspace"):""}getKeybindingItems(){const h=this.commandRegistry.getCommands(),u=[];for(const b of h){const A=this.keybindingRegistry.getKeybindingsForCommand(b.id);!A||!A.length?b.label&&u.push({id:b.id,command:b.label,hasCommandLabel:!0}):A.forEach(S=>{let D;if(this.storeKeybindings){const I=this.storeKeybindings.find(w=>b&&w.command===b.id);D={id:b.id,command:b.label||b.id,keybinding:I?I.key:S?this.keybindingRegistry.acceleratorFor(S,"+").join(" "):"",when:I?this.getWhen(I):this.getWhen(A&&S),source:I?this.getScope(_.KeybindingScope.USER):this.getScope(_.KeybindingScope.DEFAULT),hasCommandLabel:!!b.label}}else D={id:b.id,command:b.label||b.id,keybinding:A&&S?this.keybindingRegistry.acceleratorFor(S,"+").join(" "):"",when:this.getWhen(A&&S),source:A&&S&&typeof S.scope<"u"?this.getScope(S.scope):"",hasCommandLabel:!!b.label};u.push(D)})}const c=u.sort((b,A)=>this.compareItem(b,A)),E=c.filter(b=>!!b.keybinding),f=c.filter(b=>!b.keybinding&&b.hasCommandLabel),d=E.filter(b=>b.hasCommandLabel),y=E.filter(b=>!b.hasCommandLabel);return[...d,...y,...f]}compareItem(h,u){return h&&u?h.source===u.source?h.command.toLowerCase().localeCompare(u.command.toLowerCase()):h.source===this.getScope(_.KeybindingScope.USER)?-1:1:0}getRaw(h){return h?h.replace(new RegExp(/<(\/)?match>/gi),""):""}};t.KeymapService=g,g.DEFAULT_SEARCH_DELAY=100,g.KEYMAP_FILE_URI=new _.URI().withScheme(_.Schemes.userStorage).withPath(p.KEYMAPS_FILE_NAME),r.__decorate([(0,l.Autowired)(_.KeybindingRegistry),r.__metadata("design:type",Object)],g.prototype,"keyBindingRegistry",void 0),r.__decorate([(0,l.Autowired)(s.KeymapsParser),r.__metadata("design:type",s.KeymapsParser)],g.prototype,"parser",void 0),r.__decorate([(0,l.Autowired)(_.CommandService),r.__metadata("design:type",Object)],g.prototype,"commandService",void 0),r.__decorate([(0,l.Autowired)(_.CommandRegistry),r.__metadata("design:type",Object)],g.prototype,"commandRegistry",void 0),r.__decorate([(0,l.Autowired)(_.KeybindingRegistry),r.__metadata("design:type",Object)],g.prototype,"keybindingRegistry",void 0),r.__decorate([(0,l.Autowired)(_.KeybindingService),r.__metadata("design:type",Object)],g.prototype,"keybindingService",void 0),r.__decorate([(0,l.Autowired)(m.IFileServiceClient),r.__metadata("design:type",Object)],g.prototype,"filesystem",void 0),r.__decorate([(0,l.Autowired)(_.ILogger),r.__metadata("design:type",Object)],g.prototype,"logger",void 0),r.__decorate([(0,l.Autowired)(v.IProgressService),r.__metadata("design:type",Object)],g.prototype,"progressService",void 0),t.KeymapService=g=n=r.__decorate([(0,l.Injectable)()],g)},34879:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.KeymapsView=void 0;const n=e(85608),r=n.__importDefault(e(53373)),o=n.__importStar(e(14041)),l=e(97267),_=e(41869),v=e(25067),m=n.__importDefault(e(78541)),p=()=>{const{keybindings:s,searchKeybindings:g,validateKeybinding:a,detectKeybindings:h,setKeybinding:u,resetKeybinding:c,getRaw:E,getScope:f,covert:d,clearCovert:y,fixed:b,onDidKeymapChanges:A,updateKeybindings:S}=(0,_.useInjectable)(v.IKeymapService),[D,I]=o.default.useState(!1),[w,T]=o.default.useState(""),[R,P]=o.default.useState(s),O=({data:Q,index:G})=>{const{id:Z,command:$,when:V,source:H,keybinding:K}=Q,[Y,X]=o.default.useState(!1),[oe,ie]=o.default.useState(K||""),[he,me]=o.default.useState(!1),[q,Ee]=o.default.useState(),[ue,te]=o.default.useState([]),fe=()=>{he||(b(),me(!0)),y(),ie(E(K)),X(!0)},Ie=We=>{const pe=a(Q,We);pe?pe!==" "?Ee({message:pe,type:l.VALIDATE_TYPE.ERROR}):X(!1):(u({command:E(Z),when:E(V)||"",keybinding:E(K)},{command:E(Z),when:E(V)||"",keybinding:We}),X(!1),y())},Me=()=>{X(!1)},Be=We=>{We.stopPropagation(),We.preventDefault();const{key:pe}=_.KeyCode.createKeyCode(We.nativeEvent),re=We.nativeEvent.shiftKey||We.nativeEvent.metaKey||We.nativeEvent.altKey||We.nativeEvent.ctrlKey;pe&&_.Key.ENTER.keyCode===pe.keyCode&&!re?oe&&Ie(oe):ie(d(We.nativeEvent))},Pe=()=>{const We=()=>{Ee(void 0),oe&&ie(""),y()},pe=re=>{re.stopPropagation(),re.preventDefault()};return o.default.createElement("div",{className:m.default.keybinding_optional_actions,onMouseDown:pe},o.default.createElement("span",{className:(0,r.default)((0,_.getIcon)("close-circle-fill"),m.default.keybinding_optional_action),onClick:We,title:(0,_.localize)("keymaps.action.clear")}))},we=()=>o.default.createElement("div",{className:m.default.keybinding_key_input_placeholder},"\u23CE"),_e=We=>{const pe=re=>{re.preventDefault(),he||(b(),me(!0)),c({command:E(Z),when:E(V)||"",keybinding:oe})};if(We&&E(We)===f(_.KeybindingScope.USER))return o.default.createElement("span",{className:(0,r.default)((0,_.getIcon)("rollback"),m.default.keybinding_inline_action),onClick:pe,title:(0,_.localize)("keymaps.action.reset")})},Ne=()=>{if(!q&&ue.length>0)return o.default.createElement("div",{className:m.default.keybinding_detective_messages},o.default.createElement("div",{className:m.default.keybinding_detective_messages_label},(0,_.formatLocalize)("keymaps.keybinding.duplicate",ue.length)),o.default.createElement("ul",{className:m.default.keybinding_detective_messages_container},ue.map((We,pe)=>o.default.createElement("li",{className:m.default.keybinding_detective_messages_item,key:`${We.id}_${pe}`,title:`${We.command}-${We.when}`},o.default.createElement("div",{className:m.default.title},(0,_.localize)("keymaps.header.command.title"),": ",E(We.command)||"-"),o.default.createElement("div",{className:m.default.description},o.default.createElement("div",{style:{marginRight:4}},(0,_.localize)("keymaps.header.source.title"),": ",E(We.source)||"-"),o.default.createElement("div",null,(0,_.localize)("keymaps.header.when.title"),": ",E(We.when)||"\u2014"))))))},Te=()=>{if(Y)return o.default.createElement("div",{className:m.default.keybinding_key_input_container},Pe(),o.default.createElement(l.ValidateInput,{placeholder:(0,_.localize)("keymaps.edit.placeholder"),validateMessage:q,className:m.default.keybinding_key_input,size:"small",autoFocus:!0,name:_.NO_KEYBINDING_NAME,value:oe,onKeyDown:Be,onBlur:Me}),we(),Ne());{const We=K?.split(" ");return o.default.createElement("div",{className:m.default.keybinding_key,title:E(K),onDoubleClick:fe},o.default.createElement("div",{className:m.default.keybinding_action,onClick:fe},o.default.createElement("span",{className:(0,r.default)(K?(0,_.getIcon)("edit"):(0,_.getIcon)("plus"),m.default.keybinding_inline_action),title:K?(0,_.localize)("keymaps.action.edit"):(0,_.localize)("keymaps.action.add")}),_e(H)),We&&We[0]?We.map((pe,re)=>{const ge=pe.split("+");return o.default.createElement("div",{className:m.default.keybinding_key_block,key:`${pe}_${re}`},ge.map((De,Ae)=>o.default.createElement("div",{className:m.default.keybinding_key_item,key:`${De}_${Ae}`,dangerouslySetInnerHTML:{__html:De||""}})))}):"\u2014")}};return(0,o.useEffect)(()=>{q&&Ee(void 0),te(oe&&Y?h(Q,oe):[])},[oe]),o.default.createElement("div",{className:(0,r.default)(m.default.keybinding_list_item,G%2===1&&m.default.odd)},o.default.createElement("div",{className:(0,r.default)(m.default.keybinding_list_item_box,m.default.keybinding_command)},o.default.createElement("div",{className:m.default.command_name,title:E($),dangerouslySetInnerHTML:{__html:$}}),o.default.createElement("div",{className:(0,r.default)(m.default.limit_warp,m.default.command_id),title:E(Z),dangerouslySetInnerHTML:{__html:(0,_.formatLocalize)("keymaps.commandId.title",Z)}})),o.default.createElement("div",{className:(0,r.default)(m.default.keybinding_list_item_box)},Te()),o.default.createElement("div",{className:m.default.keybinding_list_item_box},o.default.createElement("div",{className:m.default.limit_warp,title:E(V||"\u2014"),dangerouslySetInnerHTML:{__html:V||"\u2014"}})),o.default.createElement("div",{className:m.default.keybinding_list_item_box},o.default.createElement("div",{title:E(H),dangerouslySetInnerHTML:{__html:H||""}})))},M=()=>{const Q=()=>{I(!D)};return o.default.createElement("div",{className:m.default.search_inline_action},o.default.createElement("span",{className:(0,r.default)((0,_.getIcon)("keyboard"),m.default.search_inline_action_icon,D&&m.default.active),onClick:Q}))},k=(0,o.useCallback)(Q=>{T(Q),g(Q)},[w]),F=Q=>{if(!D){const G=Q.target&&Q.target.value?Q.target.value.toLocaleLowerCase():"";k(G)}},L=Q=>{if(D){Q.stopPropagation(),Q.preventDefault();const{key:G}=_.KeyCode.createKeyCode(Q.nativeEvent);if(G&&_.Key.ENTER.keyCode===G.keyCode)return;k(d(Q.nativeEvent))}},B=()=>{w&&(T(""),g("")),y()},U=()=>o.default.createElement("div",{className:m.default.keybinding_optional_actions},o.default.createElement("span",{className:(0,r.default)((0,_.getIcon)("close-circle-fill"),m.default.keybinding_optional_action),onClick:B,title:(0,_.localize)("keymaps.action.reset")})),W=()=>o.default.createElement("div",{className:m.default.search_container},o.default.createElement(l.Input,{className:m.default.search_input,placeholder:(0,_.localize)(D?"keymaps.search.keyboard.placeholder":"keymaps.search.placeholder"),type:"text",value:w,name:_.NO_KEYBINDING_NAME,onChange:F,onKeyDown:L,addonBefore:M()}),U()),j=(0,o.useMemo)(()=>{const Q=[{title:(0,_.localize)("keymaps.header.command.title"),classname:m.default.keybinding_header_item},{title:(0,_.localize)("keymaps.header.keybinding.title"),classname:m.default.keybinding_header_item},{title:(0,_.localize)("keymaps.header.when.title"),classname:m.default.keybinding_header_item},{title:(0,_.localize)("keymaps.header.source.title"),classname:m.default.keybinding_header_item}];return o.default.createElement("div",{className:m.default.keybinding_header},Q.map((G,Z)=>o.default.createElement("div",{className:G.classname,key:`${G.title}_${Z}`},G.title)))},[]);return(0,o.useEffect)(()=>{const Q=A(G=>{P(G)});return S(),()=>{Q.dispose()}},[]),o.default.createElement("div",{className:m.default.keybinding_container},o.default.createElement("div",{className:m.default.keybinding_searchbar},W()),o.default.createElement("div",{className:m.default.keybinding_body},j,o.default.createElement("div",{className:m.default.keybinding_list},o.default.createElement(l.RecycleList,{itemHeight:40,data:R,template:O,className:m.default.keybinding_list_container}))))};t.KeymapsView=p},79312:(x,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.KEYMAPS_FILE_NAME=t.KEYMAPS_SCHEME=void 0,t.KEYMAPS_SCHEME="keymaps",t.KEYMAPS_FILE_NAME="keymaps.json"},25067:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=e(85608);n.__exportStar(e(79312),t),n.__exportStar(e(88811),t)},88811:(x,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IKeymapService=void 0,t.IKeymapService=Symbol("IKeymapService")},83507:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LogModule=t.LogServiceClient=void 0;const n=e(85608),r=e(76003),o=e(41869),l=e(47548),_=e(49187);n.__exportStar(e(47548),t);var v=e(1700);Object.defineProperty(t,"LogServiceClient",{enumerable:!0,get:function(){return v.LogServiceClient}});let m=class extends o.BrowserModule{constructor(){super(...arguments),this.providers=[{token:l.ILoggerManagerClient,useClass:_.LoggerManagerClient}],this.backServices=[{servicePath:l.LogServiceForClientPath,clientToken:l.ILoggerManagerClient}]}};t.LogModule=m,t.LogModule=m=n.__decorate([(0,r.Injectable)()],m)},49187:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LoggerManagerClient=void 0;const n=e(85608),r=e(76003),o=e(43718),l=e(47548),_=e(1700);let v=class{constructor(){this.logLevelChangeEmitter=new o.Emitter}getLogger(p,s){const g=new _.LogServiceClient(p);return g.setup(this.logServiceForClient,s),g}getBrowserLogger(p){return new _.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)}};t.LoggerManagerClient=v,n.__decorate([(0,r.Autowired)(l.LogServiceForClientPath),n.__metadata("design:type",Object)],v.prototype,"logServiceForClient",void 0),t.LoggerManagerClient=v=n.__decorate([(0,r.Injectable)()],v)},1700:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LogServiceClient=void 0;const n=e(43718),r=e(47548);class o{constructor(_){this.level=r.LogLevel.Verbose,this.ready=new n.Deferred,this.namespace=_,this.debugLog=new r.DebugLog(_)}async setup(_,v){this.logServiceForClient=_,this.pid=v;const m=await this.logServiceForClient.getGlobalLogLevel();this.level=m,this.ready.resolve()}async getLevel(){return this.logServiceForClient?await this.logServiceForClient.getLevel(this.namespace):this.level}async setLevel(_){this.level=_,this.logServiceForClient&&await this.logServiceForClient.setLevel(this.namespace,_)}async verbose(..._){this.debugLog.verbose(..._),this.logServiceForClient&&await this.logServiceForClient.verbose(this.namespace,(0,r.format)(_),this.pid)}async debug(..._){this.debugLog.debug(..._),this.logServiceForClient&&(await this.ready.promise,!(this.level>r.LogLevel.Debug)&&await this.logServiceForClient.debug(this.namespace,(0,r.format)(_),this.pid))}async log(..._){this.debugLog.log(..._),this.logServiceForClient&&(await this.ready.promise,!(this.level>r.LogLevel.Info)&&await this.logServiceForClient.log(this.namespace,(0,r.format)(_),this.pid))}async warn(..._){this.debugLog.warn(..._),this.logServiceForClient&&(await this.ready.promise,!(this.level>r.LogLevel.Warning)&&await this.logServiceForClient.warn(this.namespace,(0,r.format)(_),this.pid))}async error(..._){this.debugLog.error(..._),this.logServiceForClient&&(await this.ready.promise,!(this.level>r.LogLevel.Error)&&await this.logServiceForClient.error(this.namespace,(0,r.format)(_),this.pid))}async critical(..._){this.debugLog.error(..._),this.logServiceForClient&&(await this.ready.promise,!(this.level>r.LogLevel.Critical)&&await this.logServiceForClient.critical(this.namespace,(0,r.format)(_),this.pid))}async dispose(){this.debugLog.destroy(),this.logServiceForClient&&await this.logServiceForClient.disposeLogger(this.namespace)}}t.LogServiceClient=o},47548:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=e(85608);n.__exportStar(e(4892),t),n.__exportStar(e(46196),t)},46196:(x,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ILogServiceForClient=void 0,t.format=e,t.ILogServiceForClient=Symbol("LogServiceForClient");function e(n){let r="";for(let o=0;o<n.length;o++){let l=n[o];if(l instanceof Error){const _=Array.prototype.slice.call(arguments);_[0]=l.stack,l=e(_)}else if(typeof l=="object")try{l=JSON.stringify(l)}catch{}else if(typeof l=="symbol")try{l=l.toString()}catch{}r+=(o>0?" ":"")+l}return r}},73344:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),e(85608).__exportStar(e(47548),t)},9522:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AccordionServiceFactory=t.AccordionService=void 0;const n=e(85608),r=n.__importDefault(e(12784)),o=n.__importDefault(e(46343)),l=e(76003),_=e(41869),v=e(81878),m=e(71707),p=e(95416),s=e(93899),g=e(68969),a=e(28423),h=e(17793);let u=class extends _.WithEventBus{get views(){return this.viewsObservable.get()}get state(){return this.stateObservable.get()}set alignment(E){this._alignment!==E&&(this._alignment=E,this.doUpdateResize())}constructor(E,f){super(),this.containerId=E,this.noRestore=f,this.forceRevealContextKeys=new Map,this.viewWhenContextkeys=new Set,this.appendedViewSet=new Set,this.viewsWithContextKey=new Set,this.viewsObservable=(0,a.observableValue)(this,[]),this.stateObservable=(0,a.observableValue)(this,{}),this.visibleViews=(0,a.derived)(this,d=>{const y=this.viewsObservable.read(d);return this.stateObservable.read(d),y.filter(b=>!this.getViewState(b.id).hidden)}),this.rendered=!1,this.menuId=`${s.MenuId.AccordionContext}/${this.containerId}`,this.toDispose=new Map,this.didChangeViewTitleEmitter=this.registerDispose(new _.Emitter),this.onDidChangeViewTitle=this.didChangeViewTitleEmitter.event,this.beforeAppendViewEmitter=this.registerDispose(new _.Emitter),this.onBeforeAppendViewEvent=this.beforeAppendViewEmitter.event,this.afterAppendViewEmitter=this.registerDispose(new _.Emitter),this.onAfterAppendViewEvent=this.afterAppendViewEmitter.event,this.afterDisposeViewEmitter=this.registerDispose(new _.Emitter),this.onAfterDisposeViewEvent=this.afterDisposeViewEmitter.event,this._alignment="vertical",this.doUpdateResize=(0,r.default)(()=>{var d,y;let b;if(Object.keys(this.state).forEach(A=>{this.state[A].hidden||this.state[A].collapsed||(b?(this.state[A].size||0)>(this.state[b].size||0)&&(b=A):b=A)}),b&&this.splitPanelService.isVisible&&this.expandedViews.length>1&&!((d=this.splitPanelService.rootNode)===null||d===void 0)&&d.clientHeight){const A=((y=this.splitPanelService.rootNode)===null||y===void 0?void 0:y.clientHeight)-this.getPanelFullHeight();if(A){const S=this.state;S[b].size+=A,(0,a.transaction)(D=>{this.stateObservable.set({...S},D)}),this.toggleOpen(b,!1)}}},16),this.storeState=()=>{this.noRestore||!this.rendered||this.layoutState.setState(p.LAYOUT_STATE.getContainerSpace(this.containerId),this.state)},this.handleSectionClick=(d,y,b)=>{this.doToggleOpen(d,y,b)},this.handleContextMenu=(d,y)=>{d.preventDefault();const b=this.ctxMenuService.createMenu({id:this.menuId,config:{args:[{viewId:y}]},contextKeyService:y?this.viewContextKeyRegistry.getContextKeyService(y):void 0}),A=b.getGroupedMenuNodes();b.dispose(),this.contextMenuRenderer.show({menuNodes:A[1],anchor:{x:d.clientX,y:d.clientY}})},this.addDispose((0,a.recomputeInitiallyAndOnChange)(this.visibleViews)),this.splitPanelService=this.splitPanelManager.getService(E),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,_.localize)("layout.view.hide","Hide")},group:"0_global",when:"triggerWithSection == true"}),this.viewContextKeyRegistry.afterContextKeyServiceRegistered(this.containerId,d=>{this.topViewKey=d.createKey("view",E),setTimeout(()=>{this.popViewKeyIfOnlyOneViewVisible()})}),this.addDispose(_.Event.debounce(this.contextKeyService.onDidChangeContext,(d,y)=>d||y.payload.affectsSome(this.viewWhenContextkeys),50)(d=>d&&this.handleContextKeyChange(),this)),this.splitPanelService.whenReady.then(()=>{this.listenWindowResize()})}updateViewTitle(E,f){const d=this.views.find(y=>y.id===E);d?(d.name=f,this.didChangeViewTitleEmitter.fire({id:E,title:f})):this.logger.error(`No target view \`${E}\` found, unable to update accordion title`)}updateViewDesciption(E,f){const d=this.views.find(y=>y.id===E);d?(d.description=f,this.didChangeViewTitleEmitter.fire({id:E,description:f})):this.logger.error(`No target view \`${E}\` found, unable to update accordion description`)}updateViewMessage(E,f){const d=this.views.find(y=>y.id===E);d?(d.message=f,this.didChangeViewTitleEmitter.fire({id:E,message:f})):this.logger.error(`No target view \`${E}\` found, unable to update accordion message`)}updateViewBadge(E,f){const d=this.views.find(y=>y.id===E);d?(d.badge=f,this.didChangeViewTitleEmitter.fire({id:E,badge:f})):this.logger.error(`No target view \`${E}\` found, unable to update accordion message`)}tryUpdateResize(){this.doUpdateResize()}restoreState(){if(this.noRestore)return;const E={};this.visibleViews.get().forEach(d=>E[d.id]={collapsed:!1,hidden:!1});const f=this.layoutState.getState(p.LAYOUT_STATE.getContainerSpace(this.containerId),E);(0,o.default)(f,E)||(0,a.transaction)(d=>{this.stateObservable.set({...f},d)}),this.popViewKeyIfOnlyOneViewVisible(),this.splitPanelService.whenReady.then(()=>{this.restoreSize(),this.rendered=!0})}restoreSize(){var E;let f=((E=this.splitPanelService.rootNode)===null||E===void 0?void 0:E.clientHeight)||0,d;if(this.visibleViews.get().forEach((y,b)=>{const A=this.state[y.id];A.collapsed?(this.setSize(b,0,!1,!0),f-=this.headerSize):!A.collapsed&&A.size&&(this.setSize(b,A.size,!1,!0),f-=A.size,d=b)}),d){const y=this.visibleViews.get()[d];this.setSize(d,this.state[y.id].size+f)}}initConfig(E){const{headerSize:f,minSize:d}=E;this.headerSize=f,this.minSize=d}registerContextService(E){let f=this.viewContextKeyRegistry.getContextKeyService(E);return f||(f=this.contextKeyService.createScoped(),f.createKey("view",E),this.viewContextKeyRegistry.registerContextKeyService(E,f)),f}getSectionToolbarMenu(E){const f=this.registerContextService(E),d=this.menuService.createMenu(s.MenuId.ViewTitle,f),y=this.views.find(b=>b.id===E);return y&&(y.titleMenu=d),d}updateView(E){(0,a.transaction)(f=>{const d=this.views;if(E.priority){const y=d.findIndex(b=>(b.priority||0)<(E.priority||0));d.splice(y===-1?d.length:y,0,E),this.viewsObservable.set([...d],f)}else this.viewsObservable.set([...d,E],f)})}appendView(E,f){if(this.appendedViewSet.has(E.id)&&!f)return;const d=new _.DisposableCollection;d.push(this.progressService.registerProgressIndicator(E.id));const y=this.views.findIndex(b=>b.id===E.id);if(y!==-1){(0,a.transaction)(b=>{const A=this.views;A[y]=Object.assign({},A[y],E),this.viewsObservable.set([...A],b)});return}if(E.when){this.viewsWithContextKey.add(E);const b=this.createRevealContextKey(E.id);if(this.fillKeysInWhenExpr(this.viewWhenContextkeys,E.when),!this.contextKeyService.match(E.when)&&!this.contextKeyService.match(b))return;this.appendedViewSet.add(E.id)}this.beforeAppendViewEmitter.fire(E.id),this.updateView(E),this.registerContextService(E.id),d.push(this.menuRegistry.registerMenuItem(this.menuId,{command:{id:this.registerVisibleToggleCommand(E.id,d),label:(E.name||E.id).toUpperCase()},group:"1_widgets"})),this.toDispose.set(E.id,d),this.popViewKeyIfOnlyOneViewVisible(),this.afterAppendViewEmitter.fire(E.id)}disposeView(E){const f=this.views.findIndex(y=>y.id===E);f>-1&&(0,a.transaction)(y=>{const b=this.views;b.splice(f,1),this.viewsObservable.set([...b],y)});const d=this.toDispose.get(E);d&&d.dispose(),this.appendedViewSet.delete(E),this.popViewKeyIfOnlyOneViewVisible(),this.afterDisposeViewEmitter.fire(E)}revealView(E){const f=this.forceRevealContextKeys.get(E);f&&f.key.set(!0)}disposeAll(){(0,a.transaction)(E=>{this.viewsObservable.set([],E)}),this.toDispose.forEach(E=>{E.dispose()})}onResize(E){if(E.payload.slotLocation&&this.state[E.payload.slotLocation]){const f=E.payload.slotLocation;_.fastdom.measureAtNextFrame(()=>{const d=document.getElementById(f);if(d){const y=this.state;y[f].size=d.clientHeight,(0,a.transaction)(b=>{this.stateObservable.set({...y},b)}),this.storeState()}})}}getPanelFullHeight(E){return Object.keys(this.state).filter(f=>this.views.find(d=>d.id===f)&&f!==E).reduce((f,d)=>f+(this.state[d].collapsed?this.headerSize:this.state[d].hidden?0:this.state[d].size),0)}listenWindowResize(){window.addEventListener("resize",this.doUpdateResize),this.addDispose({dispose:()=>window.removeEventListener("resize",this.doUpdateResize)})}createRevealContextKey(E){const f=`forceShow.${E}`;return this.forceRevealContextKeys.set(E,{when:`${f} == true`,key:this.contextKeyService.createKey(f,!1)}),this.viewWhenContextkeys.add(f),`${f} == true`}registerGlobalToggleCommand(){const E=`view-container.hide.${this.containerId}`;return this.commandRegistry.registerCommand({id:E},{execute:({viewId:f})=>{this.doToggleView(f)},isEnabled:()=>this.visibleViews.get().length>1}),E}registerVisibleToggleCommand(E,f){const d=`view-container.hide.${E}`;return f.push(this.commandRegistry.registerCommand({id:d},{execute:({forceShow:y}={})=>{this.doToggleView(E,y)},isToggled:()=>!this.getViewState(E).hidden,isEnabled:()=>this.getViewState(E).hidden||this.visibleViews.get().length>1})),d}doToggleView(E,f){const d=this.getViewState(E);let y;f===void 0?y=!d.hidden:y=!f,d.hidden=y,this.updateViewState(E,d),this.popViewKeyIfOnlyOneViewVisible(),this.storeState()}popViewKeyIfOnlyOneViewVisible(){if(!this.topViewKey)return;const E=this.visibleViews.get();E.length===1?this.topViewKey.set(E[0].id):this.topViewKey.reset()}toggleViewVisibility(E,f){this.doToggleView(E,f)}get expandedViews(){return this.views.filter(E=>{const f=this.state[E.id];return!f||f&&!f.hidden&&!f.collapsed})}toggleOpen(E,f){const d=this.visibleViews.get().findIndex(y=>y.id===E);d>-1&&this.doToggleOpen(E,f,d,!0)}getViewState(E){let f=this.state[E];const d=this.views.find(y=>y.id===E);return f||(this.updateViewState(E,{collapsed:d?.collapsed||!1,hidden:d?.hidden||!1}),f=this.state[E]),f}updateViewState(E,f){const d=this.state;d[E]=f,(0,a.transaction)(y=>{this.stateObservable.set({...d},y)})}doToggleOpen(E,f,d,y){const b=this.getViewState(E);this.updateViewState(E,{...b,collapsed:f});const A=this._alignment==="horizontal";let S;if(f)S=this.setSizeByAlignment(d,0,!1,y,A);else{const D=this.expandedViews.length===1?this.getAvailableSizeByAlignment(A):b.size||this.minSize;S=this.setSizeByAlignment(d,D,!1,y,A)}this.adjustAdjacentViews(d,S,y,A),this.eventBus.fire(new h.ViewCollapseChangedEvent({viewId:E,collapsed:f}))}setSizeByAlignment(E,f,d,y,b){return b?this.setSizeHorizontal(E,f,d,y):this.setSize(E,f,d,y)}getAvailableSizeByAlignment(E){return E?this.getAvailableSizeHorizontal():this.getAvailableSize()}adjustAdjacentViews(E,f,d,y){const b=this.visibleViews.get();for(let A=b.length-1;A>E;A--)this.getViewState(b[A].id).collapsed!==!0?f=this.setSizeByAlignment(A,f,!0,d,y):this.setSizeByAlignment(A,0,!1,d,y);for(let A=E-1;A>=0;A--)(this.state[b[A].id]||{}).collapsed!==!0?f=this.setSizeByAlignment(A,f,!0,d,y):this.setSizeByAlignment(A,0,!1,d,y)}setSize(E,f,d,y){var b;const A=this.visibleViews.get()[E],S=(b=this.splitPanelService.rootNode)===null||b===void 0?void 0:b.clientHeight,D=this.splitPanelService.panels[E];if(!D)return 0;y||D.classList.add("resize-ease"),!f&&!d?(f=this.headerSize,D.classList.add(v.RESIZE_LOCK)):D.classList.remove(v.RESIZE_LOCK);const I=D.clientHeight,w=this.getViewState(A.id);let T=f;if(d&&(T=Math.max(I-f,this.minSize)),E===this.expandedViews.length-1&&(0,_.isDefined)(S))if(T+E*this.minSize>S)T-=T+E*this.minSize-S;else{const R=this.getPanelFullHeight(A.id);T+R<S&&(T+=S-(T+R))}if(this.rendered){let R;f===this.headerSize?R=I:R=T,R!==this.headerSize&&(w.size=R)}return this.storeState(),w.nextSize=T,y||setTimeout(()=>{D.classList.remove("resize-ease")},200),d?T-(I-f):f-I}getAvailableSize(){var E;const f=(E=this.splitPanelService.rootNode)===null||E===void 0?void 0:E.clientHeight;return f?f-(this.visibleViews.get().length-1)*this.headerSize:0}setSizeHorizontal(E,f,d,y){var b;const A=this.visibleViews.get()[E],S=(b=this.splitPanelService.rootNode)===null||b===void 0?void 0:b.clientWidth,D=this.splitPanelService.panels[E];if(!D)return 0;y||D.classList.add("resize-ease-horizontal"),!f&&!d?(f=this.headerSize,D.classList.add(v.RESIZE_LOCK)):D.classList.remove(v.RESIZE_LOCK);const I=D.clientWidth,w=this.getViewState(A.id);let T=f;if(d&&(T=Math.max(I-f,this.minSize)),E===this.expandedViews.length-1&&(0,_.isDefined)(S))if(T+E*this.minSize>S)T-=T+E*this.minSize-S;else{const R=this.getPanelFullWidthHorizontal(A.id);T+R<S&&(T+=S-(T+R))}if(this.rendered){let R;f===this.headerSize?R=I:R=T,R!==this.headerSize&&(w.size=R)}return this.storeState(),w.nextSize=T,y||setTimeout(()=>{D.classList.remove("resize-ease-horizontal")},200),d?T-(I-f):f-I}getAvailableSizeHorizontal(){var E;const f=(E=this.splitPanelService.rootNode)===null||E===void 0?void 0:E.clientWidth;return f?f-(this.visibleViews.get().length-1)*this.headerSize:0}getPanelFullWidthHorizontal(E){return Object.keys(this.state).filter(f=>this.views.find(d=>d.id===f)&&f!==E).reduce((f,d)=>f+(this.state[d].collapsed?this.headerSize:this.state[d].hidden?0:this.state[d].size),0)}handleContextKeyChange(){Array.from(this.viewsWithContextKey.values()).forEach(E=>{this.contextKeyService.match(E.when)||this.contextKeyService.match(this.forceRevealContextKeys.get(E.id).when)?this.appendView(E):this.disposeView(E.id)})}fillKeysInWhenExpr(E,f){this.contextKeyService.getKeysInWhen(f).forEach(y=>{E.add(y)})}};t.AccordionService=u,n.__decorate([(0,l.Autowired)(),n.__metadata("design:type",m.SplitPanelManager)],u.prototype,"splitPanelManager",void 0),n.__decorate([(0,l.Autowired)(s.AbstractMenuService),n.__metadata("design:type",s.AbstractMenuService)],u.prototype,"menuService",void 0),n.__decorate([(0,l.Autowired)(s.AbstractContextMenuService),n.__metadata("design:type",s.AbstractContextMenuService)],u.prototype,"ctxMenuService",void 0),n.__decorate([(0,l.Autowired)(s.IMenuRegistry),n.__metadata("design:type",s.IMenuRegistry)],u.prototype,"menuRegistry",void 0),n.__decorate([(0,l.Autowired)(_.CommandRegistry),n.__metadata("design:type",Object)],u.prototype,"commandRegistry",void 0),n.__decorate([(0,l.Autowired)(s.ICtxMenuRenderer),n.__metadata("design:type",s.ICtxMenuRenderer)],u.prototype,"contextMenuRenderer",void 0),n.__decorate([(0,l.Autowired)(),n.__metadata("design:type",_.ViewContextKeyRegistry)],u.prototype,"viewContextKeyRegistry",void 0),n.__decorate([(0,l.Autowired)(_.IContextKeyService),n.__metadata("design:type",Object)],u.prototype,"contextKeyService",void 0),n.__decorate([(0,l.Autowired)(p.LayoutState),n.__metadata("design:type",p.LayoutState)],u.prototype,"layoutState",void 0),n.__decorate([(0,l.Autowired)(g.IProgressService),n.__metadata("design:type",Object)],u.prototype,"progressService",void 0),n.__decorate([(0,l.Autowired)(_.ILogger),n.__metadata("design:type",Object)],u.prototype,"logger",void 0),n.__decorate([(0,_.OnEvent)(_.ResizeEvent),n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[_.ResizeEvent]),n.__metadata("design:returntype",void 0)],u.prototype,"onResize",null),t.AccordionService=u=n.__decorate([(0,l.Injectable)({multiple:!0}),n.__metadata("design:paramtypes",[String,Boolean])],u),t.AccordionServiceFactory=Symbol("AccordionServiceFactory")},70936:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Panel=t.AccordionContainer=void 0;const n=e(85608),r=n.__importDefault(e(53373)),o=n.__importStar(e(14041)),l=e(41869),_=e(81878),v=e(1149),m=e(43718),p=e(9522),s=e(95867),g=({alignment:h="vertical",views:u,containerId:c,headerSize:E=24,minSize:f=120,className:d,noRestore:y,style:b})=>{const A=(0,l.useInjectable)(v.LayoutViewSizeConfig),S=(0,l.useInjectable)(p.AccordionServiceFactory)(c,y);S.alignment=h;const D=(0,l.useAutorun)(S.visibleViews);(0,l.useAutorun)(S.stateObservable);const I=(0,o.useMemo)(()=>E||A.accordionHeaderSizeHeight,[E]);return o.default.useEffect(()=>{if(u.length)for(const w of u)S.appendView(w)},[u]),o.default.useEffect(()=>{S.initConfig({headerSize:I,minSize:f})},[]),o.default.createElement(_.SplitPanel,{className:(0,r.default)(d,{horizontal:h==="horizontal"}),style:b,headerSize:E,dynamicTarget:!0,id:c,resizeKeep:!1,direction:h==="horizontal"?"left-to-right":"top-to-bottom"},D.map((w,T)=>{const R=S.getViewState(w.id),P=w.titleMenu||S.getSectionToolbarMenu(w.id),{collapsed:O,nextSize:M}=R;return o.default.createElement(s.AccordionSection,{noHeader:D.length===1,onItemClick:()=>{S.handleSectionClick(w.id,!O,T)},onContextMenuHandler:S.handleContextMenu,alignment:h,header:w.name&&(0,m.replaceLocalizePlaceholder)(w.name)||w.id,viewId:w.id,key:w.id,message:w.message,description:w.description,badge:w.badge,title:w.name,expanded:!O,accordionService:S,index:T,headerSize:E,minSize:E,initialProps:w.initialProps,titleMenu:P,titleMenuContext:w.titleMenuContext,savedSize:O?E:M,flex:w.weight||1},w.component)}))};t.AccordionContainer=g,t.AccordionContainer.displayName="AccordionContainer";const a=({children:h})=>o.default.createElement("div",null,h);t.Panel=a,t.Panel.displayName="Panel"},95867:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AccordionSection=void 0;const n=e(85608),r=n.__importDefault(e(53373)),o=n.__importDefault(e(14041)),l=e(41869),_=e(25918),v=e(93899),m=e(68969),p=e(68974),s=e(69589),g=e(52416),a=n.__importDefault(e(81388)),h={tabIndex:0},u=({header:c,description:E,message:f,headerClass:d,onItemClick:y,noHeader:b,children:A,badge:S,headerSize:D,viewId:I,initialProps:w,titleMenu:T,titleMenuContext:R,expanded:P,accordionService:O,onContextMenuHandler:M,alignment:k})=>{const F=(0,l.useInjectable)(g.IIconService),L=(0,l.useDesignStyles)(a.default.actions_wrap,"actions_wrap"),B=(0,l.useDesignStyles)(a.default.kt_split_panel,"kt_split_panel"),U=(0,l.useDesignStyles)(a.default.kt_split_panel_header,"kt_split_panel_header"),W=(0,l.useDesignStyles)(a.default.kt_split_panel_body,"kt_split_panel_body"),j=(0,l.useDesignStyles)(a.default.section_badge,"section_badge"),Q=o.default.useRef(null),[G,Z]=o.default.useState({header:c,description:E,message:f,badge:S});o.default.useEffect(()=>{const ie=O.onDidChangeViewTitle(({id:he,title:me,description:q,message:Ee,badge:ue})=>{let te=!1;const fe={...G};I===he&&me&&me!==G.header&&(fe.header=me,te=!0),I===he&&ue!==G.badge&&(fe.badge=ue,te=!0),I===he&&q&&q!==G.description&&(fe.description=q,te=!0),I===he&&Ee&&Ee!==G.message&&(fe.message=Ee,te=!0),te&&Z(fe)});return()=>{ie.dispose()}},[]);const $=o.default.useCallback(()=>{y()},[y]),V=o.default.useMemo(()=>({overflow:P?"auto":"hidden"}),[P]),H=(0,l.useViewState)(I,Q,!0),Y=(0,l.useInjectable)(m.IProgressService).getIndicator(I),X=A,oe=o.default.useMemo(()=>P?`${D}px`:k==="horizontal"?"100%":`${D}px`,[P,D,k]);return o.default.createElement("div",{className:(0,r.default)(B,{horizontal:k==="horizontal"}),"data-view-id":I,draggable:!1},!b&&o.default.createElement("div",{...h,className:(0,r.default)(U,d),onClick:$,onContextMenu:ie=>M(ie,I),style:{height:oe,lineHeight:oe}},o.default.createElement("div",{className:a.default.label_wrap},o.default.createElement("i",{className:(0,r.default)((0,l.getIcon)("arrow-down"),a.default.arrow_icon,P?"":a.default.kt_mod_collapsed)}),o.default.createElement("div",{className:a.default.section_label,style:{lineHeight:D+"px"}},G.header),G.description&&o.default.createElement("div",{className:a.default.section_description,style:{lineHeight:D+"px"}},typeof G.description=="string"?(0,s.transformLabelWithCodicon)(G.description,{},F.fromString.bind(F)):G.description),G.badge&&o.default.createElement("div",{className:j},typeof G.badge=="string"?G.badge:G.badge.value)),P&&T&&o.default.createElement("div",{className:L},(0,v.isIMenu)(T)?o.default.createElement(_.InlineActionBar,{menus:T,context:R}):o.default.createElement(_.InlineMenuBar,{menus:T,context:R}))),o.default.createElement("div",{className:(0,r.default)([W,{[a.default.hide]:!P}]),style:V,ref:Q},o.default.createElement(p.ProgressBar,{className:a.default.progressBar,progressModel:Y?.progressModel}),o.default.createElement(l.ErrorBoundary,null,G.message&&o.default.createElement("div",{className:a.default.kt_split_panel_message},G.message),o.default.createElement(X,{...w,viewState:{height:H.height-(G.message?22:0),width:H.width}}))))};t.AccordionSection=u},91527:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TitleBar=void 0;const n=e(85608),r=n.__importDefault(e(14041)),o=e(41869),l=e(752),_=n.__importDefault(e(81388));t.TitleBar=r.default.memo(v=>{const m=(0,o.useDesignStyles)(_.default.titlebar,"titlebar"),p=(0,o.useInjectable)(l.TabbarServiceFactory)(v.side),s=r.default.useCallback(a=>{v.containerId&&v.side&&p.handleDragStart(a,v.containerId)},[v.containerId,v.side,p]),g=r.default.useCallback(a=>{p.handleDragEnd(a)},[p]);return r.default.createElement("div",{className:m,style:{height:v.height}},!v.draggable&&r.default.createElement("h1",null,v.title),!!v.draggable&&r.default.createElement("h1",{draggable:!0,style:{cursor:"pointer"},onDragStart:s,onDragEnd:g},v.title),v.menubar||null)}),t.TitleBar.displayName="TitleBar"},75053:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RETRACT_PANEL_COMMAND=t.EXPAND_PANEL_COMMAND=t.IS_VISIBLE_PANEL_COMMAND=t.IS_VISIBLE_EXTEND_VIEW_COMMAND=t.IS_VISIBLE_VIEW_COMMAND=t.TOGGLE_PANEL_COMMAND=t.TOGGLE_EXTEND_VIEW_COMMAND=t.TOGGLE_VIEW_COMMAND=t.WORKBENCH_ACTION_CLOSEPANEL=t.WORKBENCH_ACTION_CLOSESIDECAR=t.RETRACT_BOTTOM_PANEL=t.EXPAND_BOTTOM_PANEL=t.IS_VISIBLE_RIGHT_PANEL_COMMAND=t.IS_VISIBLE_LEFT_PANEL_COMMAND=t.IS_VISIBLE_BOTTOM_PANEL_COMMAND=t.TOGGLE_BOTTOM_PANEL_COMMAND=t.TOGGLE_RIGHT_PANEL_COMMAND=t.TOGGLE_LEFT_PANEL_COMMAND=void 0;const n=e(41869);t.TOGGLE_LEFT_PANEL_COMMAND={id:"main-layout.left-panel.toggle",delegate:"main-layout.view.toggle"},t.TOGGLE_RIGHT_PANEL_COMMAND={id:"main-layout.right-panel.toggle",delegate:"main-layout.extend-view.toggle"},t.TOGGLE_BOTTOM_PANEL_COMMAND={id:"main-layout.bottom-panel.toggle",delegate:"main-layout.panel.toggle"},t.IS_VISIBLE_BOTTOM_PANEL_COMMAND={id:"main-layout.bottom-panel.is-visible",delegate:"main-layout.panel.is-visible"},t.IS_VISIBLE_LEFT_PANEL_COMMAND={id:"main-layout.left-panel.is-visible",delegate:"main-layout.view.is-visible"},t.IS_VISIBLE_RIGHT_PANEL_COMMAND={id:"main-layout.right-panel.is-visible",delegate:"main-layout.extend-view.is-visible"},t.EXPAND_BOTTOM_PANEL={id:"main-layout.bottom-panel.expand",delegate:"main-layout.panel.expand"},t.RETRACT_BOTTOM_PANEL={id:"main-layout.bottom-panel.retract",delegate:"main-layout.panel.retract"},t.WORKBENCH_ACTION_CLOSESIDECAR={id:"workbench.action.closeSidebar",label:"%main-layout.sidebar.hide%"},t.WORKBENCH_ACTION_CLOSEPANEL={id:"workbench.action.closePanel"},t.TOGGLE_VIEW_COMMAND={id:"main-layout.view.toggle",label:"%main-layout.view.toggle%"},t.TOGGLE_EXTEND_VIEW_COMMAND={id:"main-layout.extend-view.toggle",label:"%main-layout.extend-view.toggle%"},t.TOGGLE_PANEL_COMMAND={id:"main-layout.panel.toggle",iconClass:(0,n.getIcon)("minus"),label:"%main-layout.panel.toggle%"},t.IS_VISIBLE_VIEW_COMMAND={id:"main-layout.view.is-visible"},t.IS_VISIBLE_EXTEND_VIEW_COMMAND={id:"main-layout.extend-view.is-visible"},t.IS_VISIBLE_PANEL_COMMAND={id:"main-layout.panel.is-visible"},t.EXPAND_PANEL_COMMAND={id:"main-layout.panel.expand",label:"%layout.tabbar.expand%",iconClass:(0,n.getIcon)("expand")},t.RETRACT_PANEL_COMMAND={id:"main-layout.panel.retract",label:"%layout.tabbar.retract%",iconClass:(0,n.getIcon)("shrink")}},25072:(x,t,e)=>{"use strict";var n;n={value:!0},t.s=void 0;const r=e(41869),o=e(17793);t.s={[r.SlotLocation.top]:{modules:["@opensumi/ide-menu-bar"]},[r.SlotLocation.action]:{modules:["@opensumi/ide-toolbar-action"]},[r.SlotLocation.view]:{modules:[o.DROP_VIEW_CONTAINER,"@opensumi/ide-explorer","@opensumi/ide-search","@opensumi/ide-scm","@opensumi/ide-debug","@opensumi/ide-extension-manager","@opensumi/ide-notebook"]},[r.SlotLocation.extendView]:{modules:[o.DROP_EXTEND_VIEW_CONTAINER]},[r.SlotLocation.main]:{modules:["@opensumi/ide-editor"]},[r.SlotLocation.panel]:{modules:[o.DROP_PANEL_CONTAINER,"@opensumi/ide-terminal-next","@opensumi/ide-output","debug-console","@opensumi/ide-markers"]},[r.SlotLocation.statusBar]:{modules:["@opensumi/ide-status-bar"]},[r.SlotLocation.extra]:{modules:["breadcrumb-menu"]}}},45395:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PanelDropArea=t.ExtendViewDropArea=t.ViewDropArea=void 0;const n=e(85608),r=n.__importDefault(e(14041)),o=e(41869),l=e(17793),_=n.__importDefault(e(36623)),v=g=>{const{location:a}=g,h=(0,o.useInjectable)(l.IMainLayoutService),u=r.default.useCallback(c=>{var E;const f=(E=c.dataTransfer)===null||E===void 0?void 0:E.getData("containerId");h.moveContainerTo(f,a),h.hideDropArea()},[h,a]);return r.default.createElement("div",{className:_.default.drop_area,onDrop:u,onDragOver:c=>{c.preventDefault()}},(0,o.localize)("main-layout.drop-area.tip"))},m=()=>r.default.createElement(v,{location:o.SlotLocation.view});t.ViewDropArea=m;const p=()=>r.default.createElement(v,{location:o.SlotLocation.extendView});t.ExtendViewDropArea=p;const s=()=>r.default.createElement(v,{location:o.SlotLocation.panel});t.PanelDropArea=s},7480:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MainLayoutModule=void 0;const n=e(85608),r=e(76003),o=e(41869),l=e(17793),_=e(9522),v=e(22537),m=e(53576),p=e(752),s=e(58296);let g=class extends o.BrowserModule{constructor(){super(...arguments),this.providers=[m.MainLayoutModuleContribution,{token:l.IMainLayoutService,useClass:v.LayoutService},{token:l.IViewsRegistry,useClass:s.ViewsRegistry},{token:p.TabbarServiceFactory,useFactory:p.TabbarServiceFactoryFn},{token:_.AccordionServiceFactory,useFactory:h=>(u,c)=>h.get(l.IMainLayoutService).getAccordionService(u,c)}],this.contributionProvider=l.MainLayoutContribution}};t.MainLayoutModule=g,t.MainLayoutModule=g=n.__decorate([(0,r.Injectable)()],g)},5567:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AutoFocusedInput=void 0;const r=e(85608).__importStar(e(14041)),o=e(97267),l=e(48560),_=e(17793),v=({containerId:m,...p})=>{const s=(0,l.useInjectable)(_.IMainLayoutService),g=(0,r.useRef)(null),a=r.default.useCallback(()=>{g&&g.current&&queueMicrotask(()=>{var h;return(h=g.current)===null||h===void 0?void 0:h.focus()})},[g.current]);return(0,r.useEffect)(()=>{a();const h=s.getTabbarHandler(m),u=h?.onActivate(a);return()=>{u?.dispose()}},[s]),r.default.createElement(o.Input,{ref:g,...p})};t.AutoFocusedInput=v},22537:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LayoutService=void 0;const n=e(85608),r=n.__importDefault(e(12784)),o=e(76003),l=e(41869),_=e(81878),v=e(95416),m=e(93899),p=e(43718),s=e(28423),g=e(52416),a=e(17793),h=e(9522),u=e(752),c=e(58999),E={[l.SlotLocation.view]:{currentId:void 0,size:void 0},[l.SlotLocation.extendView]:{currentId:"",size:void 0},[l.SlotLocation.panel]:{currentId:void 0,size:void 0},containerLocations:{}};let f=class extends l.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,p.getDebugLogger)(),this.viewReady=new p.Deferred,this.restoreTabbarService=async y=>{this.state=(0,_.fixLayout)(this.layoutState.getState(v.LAYOUT_STATE.MAIN,E));const{currentId:b,size:A}=this.state[y.location]||{};if(y.prevSize=A,this.state.containerLocations){for(const[D,I]of Object.entries(this.state.containerLocations))if(I===y.location&&!this.isDropContainer(D)){const w=this.findTabbarServiceByContainerId(D);w&&w.location!==y.location?this.moveContainerTo(D,y.location):(delete this.state.containerLocations[D],this.layoutState.setState(v.LAYOUT_STATE.MAIN,this.state))}}const S=this.getDefaultContainer(y);this.restoreContainerId(y,b,S)},this.holdTabbarComponent=new Map,this.tabbarUpdateSet=new Set}didMount(){for(const[b,A]of this.pendingViewsMap.entries())A.forEach(({view:S,props:D})=>{this.collectViewComponent(S,b,D)});for(const b of this.contributions.getContributions())b.onDidRender&&b.onDidRender();const y=[];this.tabbarServices.forEach(b=>{l.slotRendererRegistry.isTabbar(b.location)&&b.containersMap.size>0&&y.push(b.viewReady.promise)}),Promise.all(y).then(()=>{this.viewReady.resolve()})}storeState(y,b){this.state[y.location]={currentId:b,size:y.prevSize},this.layoutState.setState(v.LAYOUT_STATE.MAIN,this.state)}onThemeChange(y){var b,A,S,D,I;const w=y.payload.theme;localStorage.setItem("theme",JSON.stringify({menuBarBackground:(b=w.getColor("kt.menubar.background"))===null||b===void 0?void 0:b.toString(),sideBarBackground:(A=w.getColor("sideBar.background"))===null||A===void 0?void 0:A.toString(),editorBackground:(S=w.getColor("editor.background"))===null||S===void 0?void 0:S.toString(),panelBackground:(D=w.getColor("panel.background"))===null||D===void 0?void 0:D.toString(),statusBarBackground:(I=w.getColor("statusBar.background"))===null||I===void 0?void 0:I.toString()}))}getDefaultContainer(y){var b,A,S,D;const I=this.appConfig.defaultPanels,w=I&&I[y.location];if(I&&w!==void 0){if(y.containersMap.has(w))return w;const T=this.componentRegistry.getComponentRegistryInfo(w);if(T&&((A=(b=this.appConfig.layoutConfig[y.location])===null||b===void 0?void 0:b.modules)===null||A===void 0?void 0:A.includes(w)))return T.options.containerId;this.logger.warn(`[defaultPanels] No \`${w}\` view found!`)}return(D=(S=y.visibleContainers[0])===null||S===void 0?void 0:S.options)===null||D===void 0?void 0:D.containerId}restoreContainerId(y,b,A){if((0,p.isUndefined)(b)){(0,p.isUndefined)(A)?y.updateNextContainerId():y.updateCurrentContainerId(A);return}if(b&&!this.isDropContainer(b)){if(y.containersMap.has(b)){y.updateCurrentContainerId(b);return}y.updateCurrentContainerId(A||""),y.updateNextContainerId(b);return}(b===""||this.isDropContainer(b))&&y.updateCurrentContainerId("")}findTabbarServiceByContainerId(y){let b;for(const A of this.tabbarServices.values())if(A.containersMap.has(y)){b=A;break}return b}moveContainerTo(y,b){var A;const S=this.findTabbarServiceByContainerId(y);if(!S){this.logger.error(`cannot find container: ${y}`);return}const D=S.getContainer(y);if(!D){this.logger.error(`cannot find container: ${y}`);return}if(((A=D.options)===null||A===void 0?void 0:A.draggable)===!1){this.logger.warn(`container: ${y} is not draggable`);return}const I=this.getTabbarService(b);S.removeContainer(y),(!S.visibleContainers.length||S.currentContainerId.get()===y)&&this.toggleSlot(S.location,!1),I.dynamicAddContainer(y,D);const w=this.injector.get(c.TabBarHandler,[y,this.getTabbarService(I.location)]);this.handleMap.set(y,w),this.state.containerLocations||(this.state.containerLocations={}),this.state.containerLocations[y]=b}showDropAreaForContainer(y){const b=this.findTabbarServiceByContainerId(y),A=this.tabbarServices.get(l.SlotLocation.panel),S=this.tabbarServices.get(l.SlotLocation.extendView),D=this.tabbarServices.get(l.SlotLocation.view);if(!b){this.logger.error(`cannot find container: ${y}`);return}const I={[l.SlotLocation.extendView]:[A,D],[l.SlotLocation.panel]:[S,D],[l.SlotLocation.view]:[A,S]},w={[l.SlotLocation.panel]:a.DROP_PANEL_CONTAINER,[l.SlotLocation.extendView]:a.DROP_EXTEND_VIEW_CONTAINER,[l.SlotLocation.view]:a.DROP_VIEW_CONTAINER};(0,s.transaction)(T=>{var R;(R=I[b?.location])===null||R===void 0||R.forEach(P=>{P?.updateCurrentContainerId(w[P?.location],T)})})}hideDropArea(){const y=this.tabbarServices.get(l.SlotLocation.panel),b=this.tabbarServices.get(l.SlotLocation.extendView),A=this.tabbarServices.get(l.SlotLocation.view);(0,s.transaction)(S=>{y?.currentContainerId.get()===a.DROP_PANEL_CONTAINER&&y.updateCurrentContainerId(y.previousContainerId||"",S),b?.currentContainerId.get()===a.DROP_EXTEND_VIEW_CONTAINER&&b.updateCurrentContainerId(b.previousContainerId||"",S),A?.currentContainerId.get()===a.DROP_VIEW_CONTAINER&&A.updateCurrentContainerId(A.previousContainerId||"",S)})}isVisible(y){return!!this.getTabbarService(y).currentContainerId.get()}isViewVisible(y){const b=this.getTabbarHandler(y);if(!b||!b.isActivated())return!1;const A=b.accordionService.getViewState(y);return!A.collapsed&&!A.hidden}toggleSlot(y,b,A){var S;const D=this.getTabbarService(y);if(!D){this.debug.error(`Unable to switch panels because no TabbarService corresponding to \`${y}\` was found.`);return}b===!0?D.updateCurrentContainerId(this.findNonDropContainerId(D)):b===!1?D.updateCurrentContainerId(""):D.updateCurrentContainerId(D.currentContainerId.get()?"":this.findNonDropContainerId(D)),D.currentContainerId.get()&&A&&((S=D.resizeHandle)===null||S===void 0||S.setSize(A))}isDropContainer(y){return[a.DROP_PANEL_CONTAINER,a.DROP_EXTEND_VIEW_CONTAINER,a.DROP_VIEW_CONTAINER].includes(y)}findNonDropContainerId(y){const b=y.currentContainerId.get();if(b&&!this.isDropContainer(b))return b;if(y.previousContainerId&&!this.isDropContainer(y.previousContainerId))return y.previousContainerId;for(const A of y.containersMap.keys())if(!this.isDropContainer(A))return A;return""}getTabbarService(y){const b=this.tabbarServices.get(y)||this.injector.get(u.TabbarService,[y]);if(!this.tabbarServices.get(y)){b.addDispose(b.onCurrentChange(({currentId:S})=>{if(this.storeState(b,S),this.eventBus.fire(new l.ExtensionActivateEvent({topic:"onView",data:S})),S&&a.SUPPORT_ACCORDION_LOCATION.has(b.location)){const D=this.getAccordionService(S);D?.tryUpdateResize(),D?.expandedViews.forEach(I=>{this.eventBus.fire(new l.ExtensionActivateEvent({topic:"onView",data:I.id}))})}})),b.viewReady.promise.then(()=>b.restoreState()).then(()=>this.restoreTabbarService(b)).catch(S=>{this.logger.error(`[TabbarService:${y}] restore state error`,S)});const A=(0,r.default)(()=>this.storeState(b,b.currentContainerId.get()),100);if(b.addDispose(b.onSizeChange(A)),y===l.SlotLocation.panel){const S=(0,r.default)(()=>void this.bottomExpanded,100);b.addDispose(b.onSizeChange(()=>S))}this.tabbarServices.set(y,b)}return b}getAllAccordionService(){return this.accordionServices}getAccordionService(y,b){let A=this.accordionServices.get(y);return A||(A=this.injector.get(h.AccordionService,[y,b]),this.accordionServices.set(y,A)),A}getTabbarHandler(y){let b=this.doGetTabbarHandler(y);if(!b){const A=this.viewToContainerMap.get(y);A?b=this.doGetTabbarHandler(A||""):this.debug.warn(`${y} view tabbar not found.`)}return b}getContainer(y){for(const b of this.tabbarServices.values()){const A=b.getContainer(y);if(A)return A}}getExtraTopMenu(){return this.contextmenuService.createMenu({id:m.MenuId.ActivityBarTopExtra})}getExtraMenu(){return this.contextmenuService.createMenu({id:m.MenuId.ActivityBarExtra})}doGetTabbarHandler(y){let b=this.handleMap.get(y);if(!b){let A;for(const S of this.tabbarServices.values())if(S.getContainer(y)){A=S.location;break}A&&(b=this.injector.get(c.TabBarHandler,[y,this.getTabbarService(A)]),this.handleMap.set(y,b))}return b}collectTabbarComponent(y,b,A,S){if(S&&this.debug.warn("collectTabbarComponent api warning: Please move react component into options.component!"),A=this.mapSideToLocation(A),b.hideIfEmpty&&!y.length&&!b.component){this.holdTabbarComponent.set(b.containerId,{views:y,options:b,side:A}),this.tabbarUpdateSet.has(b.containerId)&&this.tryUpdateTabbar(b.containerId);const I=this.getAccordionService(b.containerId);return I.addDispose(I.onBeforeAppendViewEvent(()=>{this.tryUpdateTabbar(b.containerId)})),I.addDispose(I.onAfterDisposeViewEvent(()=>{I.views.length===0&&(this.disposeContainer(b.containerId),this.holdTabbarComponent.set(b.containerId,{views:y,options:b,side:A}))})),b.containerId}return this.getTabbarService(A).registerContainer(b.containerId,{views:y,options:b}),y.forEach(I=>{this.viewToContainerMap.set(I.id,b.containerId)}),b.containerId}mapSideToLocation(y){switch(y){case"left":return l.SlotLocation.view;case"right":return l.SlotLocation.extendView;case"bottom":return l.SlotLocation.panel;default:return y}}getViewAccordionService(y){const b=this.viewToContainerMap.get(y);if(b)return this.getAccordionService(b)}collectViewComponent(y,b,A={},S){this.customViews.set(y.id,y),this.viewToContainerMap.set(y.id,b);const D=this.getAccordionService(b);return A&&(y.initialProps=A),D.appendView(y,S?.isReplace),D.views.length===1&&(this.tabbarUpdateSet.add(b),this.tryUpdateTabbar(b)),S?.fromExtension&&this.disposableMap.set(y.id,this.commandRegistry.registerCommand({id:`${y.id}.focus`},{execute:async()=>(await this.ensureViewReady(y.id),this.commandService.executeCommand(`workbench.view.extension.${b}`,{forceShow:!0}))})),b}ensureViewReady(y){const b=this.viewToContainerMap.get(y),A=new p.Deferred,S=this.getAccordionService(b);return S.visibleViews.get().find(D=>D.id===y)?A.resolve():S.addDispose(S.onAfterAppendViewEvent(D=>{D===y&&A.resolve()})),A.promise}tryUpdateTabbar(y){const b=this.holdTabbarComponent.get(y);b&&(this.getTabbarService(b.side).registerContainer(y,{views:b.views,options:b.options}),this.tabbarUpdateSet.delete(y),this.holdTabbarComponent.delete(y))}replaceViewComponent(y,b){const A=this.viewToContainerMap.get(y.id);if(!A){this.debug.warn(`The container corresponding to \`${y.id}\` was not found, please check the incoming parameters!`);return}const S=this.customViews.get(y.id);S&&(y=Object.assign(S,y)),this.collectViewComponent(y,A,b,{isReplace:!0})}disposeViewComponent(y){const b=this.disposableMap.get(y);b&&b.dispose();const A=this.viewToContainerMap.get(y);if(!A){this.debug.warn(`The container corresponding to \`${y}\` was not found, please check the incoming parameters!`);return}this.getAccordionService(A).disposeView(y)}revealView(y){const b=this.viewToContainerMap.get(y);if(!b){this.debug.warn(`The container corresponding to \`${y}\` was not found, please check the incoming parameters!`);return}this.getAccordionService(b).revealView(y)}disposeContainer(y){let b;for(const A of this.tabbarServices.values())if(A.getContainer(y)){b=A.location;break}b?this.getTabbarService(b).disposeContainer(y):this.debug.warn(`The Tabbar to the \`${y}\` was not found.`)}expandBottom(y){const b=this.getTabbarService(l.SlotLocation.panel);b.currentContainerId.get()||b.updateCurrentContainerId(b.currentContainerId.get()||b.previousContainerId||b.containersMap.keys().next().value),b.doExpand(y),this.contextKeyService.createKey("bottomFullExpanded",b.isExpanded)}get bottomExpanded(){const y=this.getTabbarService(l.SlotLocation.panel);return this.contextKeyService.createKey("bottomFullExpanded",y.isExpanded),y.isExpanded}};t.LayoutService=f,n.__decorate([(0,o.Autowired)(o.INJECTOR_TOKEN),n.__metadata("design:type",o.Injector)],f.prototype,"injector",void 0),n.__decorate([(0,o.Autowired)(a.MainLayoutContribution),n.__metadata("design:type",Object)],f.prototype,"contributions",void 0),n.__decorate([(0,o.Autowired)(m.IMenuRegistry),n.__metadata("design:type",m.IMenuRegistry)],f.prototype,"menus",void 0),n.__decorate([(0,o.Autowired)(l.CommandRegistry),n.__metadata("design:type",Object)],f.prototype,"commandRegistry",void 0),n.__decorate([(0,o.Autowired)(l.CommandService),n.__metadata("design:type",Object)],f.prototype,"commandService",void 0),n.__decorate([(0,o.Autowired)(),n.__metadata("design:type",v.LayoutState)],f.prototype,"layoutState",void 0),n.__decorate([(0,o.Autowired)(l.AppConfig),n.__metadata("design:type",Object)],f.prototype,"appConfig",void 0),n.__decorate([(0,o.Autowired)(l.IContextKeyService),n.__metadata("design:type",Object)],f.prototype,"contextKeyService",void 0),n.__decorate([(0,o.Autowired)(l.ComponentRegistry),n.__metadata("design:type",Object)],f.prototype,"componentRegistry",void 0),n.__decorate([(0,o.Autowired)(l.ILogger),n.__metadata("design:type",Object)],f.prototype,"logger",void 0),n.__decorate([(0,o.Autowired)(m.AbstractMenuService),n.__metadata("design:type",m.AbstractMenuService)],f.prototype,"menuService",void 0),n.__decorate([(0,o.Autowired)(m.AbstractContextMenuService),n.__metadata("design:type",m.AbstractContextMenuService)],f.prototype,"contextmenuService",void 0),n.__decorate([(0,l.OnEvent)(g.ThemeChangedEvent),n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[g.ThemeChangedEvent]),n.__metadata("design:returntype",void 0)],f.prototype,"onThemeChange",null),t.LayoutService=f=n.__decorate([(0,o.Injectable)()],f)},53576:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MainLayoutModuleContribution=void 0;const n=e(85608),r=e(76003),o=e(41869),l=e(30144),_=e(68456),v=e(95416),m=e(93899),p=e(43718),s=e(92323),g=e(17793),a=e(75053),h=e(45395),u=e(68988),c=e(19951);let E=class extends p.WithEventBus{async initialize(){await this.layoutState.initStorage();const d=this.contributionProvider.getContributions();for(const A of d)A.registerComponent&&A.registerComponent(this.componentRegistry);const y=this.rendererContributionProvider.getContributions();for(const A of y)A.registerRenderer&&A.registerRenderer(o.slotRendererRegistry);const b=this.toolBarContributionProvider.getContributions();for(const A of b)A.registerToolbarItems&&A.registerToolbarItems(this.toolBarRegistry)}registerComponent(d){d.register(g.DROP_EXTEND_VIEW_CONTAINER,[],{component:h.ExtendViewDropArea,hideTab:!0,containerId:g.DROP_EXTEND_VIEW_CONTAINER}),d.register(g.DROP_PANEL_CONTAINER,[],{component:h.PanelDropArea,hideTab:!0,containerId:g.DROP_PANEL_CONTAINER}),d.register(g.DROP_VIEW_CONTAINER,[],{component:h.ViewDropArea,hideTab:!0,containerId:g.DROP_VIEW_CONTAINER})}async onStart(){this.registerSideToggleKey()}async onDidStart(){this.mainLayoutService.didMount()}registerRenderer(d){d.registerSlotRenderer(o.SlotLocation.extendView,c.RightTabRenderer,{isLatter:!0,supportedActions:{accordion:!0}}),d.registerSlotRenderer(o.SlotLocation.view,c.LeftTabRenderer,{supportedActions:{accordion:!0}}),d.registerSlotRenderer(o.SlotLocation.panel,c.BottomTabRenderer,{isLatter:!0,supportedActions:{expand:!0,toggle:!0}})}registerCommands(d){d.registerCommand(a.TOGGLE_VIEW_COMMAND,{execute:(y,b)=>{this.mainLayoutService.toggleSlot(o.SlotLocation.view,y,b)}}),d.registerCommand(a.TOGGLE_EXTEND_VIEW_COMMAND,{execute:(y,b)=>{this.mainLayoutService.toggleSlot(o.SlotLocation.extendView,y,b)}}),d.registerCommand(a.TOGGLE_PANEL_COMMAND,{execute:(y,b)=>{this.mainLayoutService.toggleSlot(o.SlotLocation.panel,y,b)}}),d.registerCommand(a.IS_VISIBLE_VIEW_COMMAND,{execute:()=>this.mainLayoutService.isVisible(o.SlotLocation.view)}),d.registerCommand(a.IS_VISIBLE_EXTEND_VIEW_COMMAND,{execute:()=>this.mainLayoutService.isVisible(o.SlotLocation.extendView)}),d.registerCommand(a.IS_VISIBLE_PANEL_COMMAND,{execute:()=>this.mainLayoutService.isVisible(o.SlotLocation.panel)}),d.registerCommand(a.TOGGLE_LEFT_PANEL_COMMAND),d.registerCommand(a.TOGGLE_RIGHT_PANEL_COMMAND),d.registerCommand(a.TOGGLE_BOTTOM_PANEL_COMMAND),d.registerCommand(a.EXPAND_BOTTOM_PANEL),d.registerCommand(a.RETRACT_BOTTOM_PANEL),d.registerCommand(a.IS_VISIBLE_LEFT_PANEL_COMMAND),d.registerCommand(a.IS_VISIBLE_RIGHT_PANEL_COMMAND),d.registerCommand(a.IS_VISIBLE_BOTTOM_PANEL_COMMAND),d.registerCommand(a.WORKBENCH_ACTION_CLOSESIDECAR,{execute:()=>Promise.all([this.mainLayoutService.toggleSlot(o.SlotLocation.view,!1),this.mainLayoutService.toggleSlot(o.SlotLocation.extendView,!1)])}),d.registerCommand(a.WORKBENCH_ACTION_CLOSEPANEL,{execute:()=>{this.mainLayoutService.toggleSlot(o.SlotLocation.panel,!1)}}),d.registerCommand({id:"view.outward.right-panel.hide"},{execute:()=>{this.commandService.executeCommand("main-layout.right-panel.toggle",!1)}}),d.registerCommand({id:"view.outward.right-panel.show"},{execute:y=>{this.commandService.executeCommand("main-layout.right-panel.toggle",!0,y)}}),d.registerCommand({id:"view.outward.left-panel.hide"},{execute:()=>{this.commandService.executeCommand("main-layout.left-panel.toggle",!1)}}),d.registerCommand({id:"view.outward.left-panel.show"},{execute:y=>{this.commandService.executeCommand("main-layout.left-panel.toggle",!0,y)}}),d.registerCommand({id:o.LAYOUT_COMMANDS.MAXIMIZE_EDITOR.id},{execute:()=>{this.commandService.executeCommand(a.TOGGLE_RIGHT_PANEL_COMMAND.id,!1),this.commandService.executeCommand(a.TOGGLE_LEFT_PANEL_COMMAND.id,!1)}}),d.registerCommand(o.LAYOUT_COMMANDS.OPEN_VIEW,{execute:()=>{this.commandService.executeCommand(o.QUICK_OPEN_COMMANDS.OPEN_VIEW.id)}})}registerMenus(d){d.registerMenuItem(m.MenuId.ActivityBarExtra,{submenu:m.MenuId.SettingsIconMenu,iconClass:(0,o.getIcon)("setting"),label:(0,p.localize)("layout.tabbar.setting"),order:1,group:"navigation"}),Object.entries({[o.SlotLocation.view]:[l.EXPLORER_CONTAINER_ID,l.SEARCH_CONTAINER_ID,l.SCM_CONTAINER_ID,l.DEBUG_CONTAINER_ID,l.EXTENSION_CONTAINER_ID],[o.SlotLocation.panel]:[l.MARKER_CONTAINER_ID,l.OUTPUT_CONTAINER_ID,l.DEBUG_CONSOLE_CONTAINER_ID,l.TERMINAL_CONTAINER_ID]}).forEach(([y,b],A)=>{const S=this.mainLayoutService.getTabbarService(y);S.viewReady.promise.then(()=>{b.forEach(D=>{var I,w;const T=S.getContainer(D);T&&d.registerMenuItem(m.MenuId.MenubarViewMenu,{command:{id:`container.toggle.${D}`,label:(w=(I=T.options)===null||I===void 0?void 0:I.title)!==null&&w!==void 0?w:D},group:`${3+A}_${y}`})})})}),d.registerMenuItem(m.MenuId.MenubarViewMenu,{command:a.TOGGLE_VIEW_COMMAND,group:"5_panel"}),d.registerMenuItem(m.MenuId.MenubarViewMenu,{command:a.TOGGLE_EXTEND_VIEW_COMMAND,group:"5_panel"}),d.registerMenuItem(m.MenuId.MenubarViewMenu,{command:a.TOGGLE_PANEL_COMMAND,group:"5_panel"}),d.registerMenuItem(m.MenuId.MenubarViewMenu,{command:a.EXPAND_PANEL_COMMAND,group:"5_panel",when:"!bottomFullExpanded"}),d.registerMenuItem(m.MenuId.MenubarViewMenu,{command:a.RETRACT_PANEL_COMMAND,group:"5_panel",when:"bottomFullExpanded"}),d.registerMenuItem(m.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:a.TOGGLE_VIEW_COMMAND.id}),this.keybindingRegistry.registerKeybinding({keybinding:"ctrlcmd+alt+b",command:a.TOGGLE_EXTEND_VIEW_COMMAND.id}),this.keybindingRegistry.registerKeybinding({keybinding:"ctrlcmd+j",command:a.TOGGLE_PANEL_COMMAND.id}),this.keybindingRegistry.registerKeybinding({keybinding:"ctrlcmd+shift+j",command:a.EXPAND_PANEL_COMMAND.id,when:"!bottomFullExpanded"}),this.keybindingRegistry.registerKeybinding({keybinding:"ctrlcmd+shift+j",command:a.RETRACT_PANEL_COMMAND.id,when:"bottomFullExpanded"})}registerQuickOpenHandlers(d){d.registerHandler(this.quickOpenViewHandler,{title:(0,p.localize)("layout.action.openView"),commandId:o.LAYOUT_COMMANDS.QUICK_OPEN_VIEW.id,order:5,hideTab:!0})}};t.MainLayoutModuleContribution=E,n.__decorate([(0,r.Autowired)(g.IMainLayoutService),n.__metadata("design:type",Object)],E.prototype,"mainLayoutService",void 0),n.__decorate([(0,r.Autowired)(o.IContextKeyService),n.__metadata("design:type",Object)],E.prototype,"contextKeyService",void 0),n.__decorate([(0,r.Autowired)(p.IEventBus),n.__metadata("design:type",Object)],E.prototype,"eventBus",void 0),n.__decorate([(0,r.Autowired)(_.ComponentContribution),n.__metadata("design:type",Object)],E.prototype,"contributionProvider",void 0),n.__decorate([(0,r.Autowired)(o.SlotRendererContribution),n.__metadata("design:type",Object)],E.prototype,"rendererContributionProvider",void 0),n.__decorate([(0,r.Autowired)(_.ComponentRegistry),n.__metadata("design:type",Object)],E.prototype,"componentRegistry",void 0),n.__decorate([(0,r.Autowired)(s.CommandService),n.__metadata("design:type",Object)],E.prototype,"commandService",void 0),n.__decorate([(0,r.Autowired)(),n.__metadata("design:type",v.LayoutState)],E.prototype,"layoutState",void 0),n.__decorate([(0,r.Autowired)(_.TabBarToolbarContribution),n.__metadata("design:type",Object)],E.prototype,"toolBarContributionProvider",void 0),n.__decorate([(0,r.Autowired)(),n.__metadata("design:type",_.ToolbarRegistry)],E.prototype,"toolBarRegistry",void 0),n.__decorate([(0,r.Autowired)(o.KeybindingRegistry),n.__metadata("design:type",Object)],E.prototype,"keybindingRegistry",void 0),n.__decorate([(0,r.Autowired)(u.ViewQuickOpenHandler),n.__metadata("design:type",u.ViewQuickOpenHandler)],E.prototype,"quickOpenViewHandler",void 0),t.MainLayoutModuleContribution=E=n.__decorate([(0,p.Domain)(s.CommandContribution,o.ClientAppContribution,o.SlotRendererContribution,m.MenuContribution,o.QuickOpenContribution,_.ComponentContribution)],E)},68988:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ViewQuickOpenItem=t.ContainerQuickOpenItem=t.ViewQuickOpenHandler=void 0;const n=e(85608),r=e(76003),o=e(41869),l=e(74404),_=e(17793);let v=class{constructor(){this.prefix="view ",this.description=(0,o.localize)("layout.action.openView")}getModel(){return{onType:(g,a)=>a(this.getViewQuickOpenItems())}}getViewQuickOpenItems(){var g;const a=this.layoutService.getAllAccordionService(),h=Array.from(a.keys());let u=[];u=u.concat(h.map((c,E)=>this.injector.get(m,[c,{groupLabel:E===0?(0,o.localize)("layout.openView.containerTitle"):"",showBorder:!1}])));for(const c of h){const E=(g=a.get(c))===null||g===void 0?void 0:g.views;if(E)for(let f=0,d=E.length;f<d;f++)u.push(this.injector.get(p,[c,E[f],{groupLabel:f===0?(0,o.formatLocalize)("layout.openView.viewTitle",String(c).toUpperCase()):"",showBorder:!1}]))}return u}getOptions(){return{}}onClose(){}};t.ViewQuickOpenHandler=v,n.__decorate([(0,r.Autowired)(l.PrefixQuickOpenService),n.__metadata("design:type",Object)],v.prototype,"quickOpenService",void 0),n.__decorate([(0,r.Autowired)(_.IMainLayoutService),n.__metadata("design:type",Object)],v.prototype,"layoutService",void 0),n.__decorate([(0,r.Autowired)(r.INJECTOR_TOKEN),n.__metadata("design:type",r.Injector)],v.prototype,"injector",void 0),t.ViewQuickOpenHandler=v=n.__decorate([(0,r.Injectable)()],v);let m=class extends l.QuickOpenItem{constructor(g,a){super(a),this.containerId=g,this.options=a}getLabel(){return String(this.containerId).toLocaleUpperCase()}isHidden(){return super.isHidden()}run(g){if(g!==l.Mode.OPEN)return!1;const a=this.layoutService.getTabbarHandler(this.containerId);return a?.activate(),!0}};t.ContainerQuickOpenItem=m,n.__decorate([(0,r.Autowired)(_.IMainLayoutService),n.__metadata("design:type",Object)],m.prototype,"layoutService",void 0),t.ContainerQuickOpenItem=m=n.__decorate([(0,r.Injectable)({multiple:!0}),n.__metadata("design:paramtypes",[Object,Object])],m);let p=class extends l.QuickOpenItem{constructor(g,a,h){super(h),this.containerId=g,this.view=a,this.options=h}getLabel(){var g;return(g=this.view.name)===null||g===void 0?void 0:g.toUpperCase()}isHidden(){return super.isHidden()}run(g){if(g!==l.Mode.OPEN)return!1;const a=this.layoutService.getTabbarHandler(this.containerId);return a&&(a.activate(),a.isCollapsed(this.view.id)&&a?.setCollapsed(this.view.id,!1)),!0}};t.ViewQuickOpenItem=p,n.__decorate([(0,r.Autowired)(_.IMainLayoutService),n.__metadata("design:type",Object)],p.prototype,"layoutService",void 0),t.ViewQuickOpenItem=p=n.__decorate([(0,r.Injectable)({multiple:!0}),n.__metadata("design:paramtypes",[String,Object,Object])],p)},58999:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TabBarHandler=void 0;const n=e(85608),r=e(76003),o=e(43718),l=e(17793),_=e(752);let v=class{constructor(p,s){this.containerId=p,this.tabbarService=s,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),s.currentContainerId.get()===this.containerId&&(this.onActivateEmitter.fire(),this.isVisible=!0),this.tabbarService.onCurrentChange(g=>{g.currentId===this.containerId?(this.onActivateEmitter.fire(),this.isVisible=!0):g.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.get()===this.containerId}show(){this.tabbarService.showContainer(this.containerId)}hide(){this.tabbarService.hideContainer(this.containerId)}setTitleComponent(p,s){const g=this.tabbarService.getContainer(this.containerId);g&&g.options&&(g.options.titleProps=s,g.options.titleComponent=p,g.fireChange(g))}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,s){this.accordionService.toggleOpen(p,s)}toggleViews(p,s){for(const g of p){const a=this.accordionService.getViewState(g);this.accordionService.updateViewState(g,{...a,hidden:!s})}}updateViewTitle(p,s){this.accordionService.updateViewTitle(p,s)}updateViewDescription(p,s){this.accordionService.updateViewDesciption(p,s)}updateViewMessage(p,s){this.accordionService.updateViewMessage(p,s)}updateTitle(p){this.tabbarService.updateTitle(this.containerId,p)}setResizeLock(p){this.tabbarService.resizeHandle.lockSize(p)}};t.TabBarHandler=v,n.__decorate([(0,r.Autowired)(l.IMainLayoutService),n.__metadata("design:type",Object)],v.prototype,"layoutService",void 0),t.TabBarHandler=v=n.__decorate([(0,r.Injectable)({multiple:!0}),n.__metadata("design:paramtypes",[String,_.TabbarService])],v)},46245:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ChatTabbarRenderer2=t.BottomTabbarRenderer=t.LeftTabbarRenderer=t.RightTabbarRenderer=t.TextElipses=t.IconElipses=t.TextTabView=t.IconTabView=t.TabbarViewBase=void 0;const n=e(85608),r=n.__importDefault(e(53373)),o=n.__importStar(e(14041)),l=e(97267),_=e(41869),v=e(25918),m=e(25719),p=e(63373),s=e(68969),g=e(17793),a=e(19951),h=n.__importDefault(e(5330)),u=e(752);function c(T,R){return R>=T.length?[T,[]]:R<=1?[[],T]:[T.slice(0,R-1),T.slice(R-1)]}function E(T){return typeof T=="string"?parseInt(T,10)>99?"99+":T:typeof T=="object"&&T.value?T.value>99?"99+":T.value:""}const f=T=>{var R;const{TabView:P,MoreTabView:O,forbidCollapse:M,barSize:k=48,panelBorderSize:F=0,tabClassName:L,className:B,margin:U,tabSize:W,canHideTabbar:j,renderOtherVisibleContainers:Q=()=>null,disableAutoAdjust:G}=T,{side:Z,direction:$,fullSize:V}=(0,o.useContext)(a.TabbarConfig),H=(0,_.useInjectable)(u.TabbarServiceFactory)(Z),K=(0,_.useDesignStyles)(h.default.tab_bar,"tab_bar"),Y=(0,_.useDesignStyles)(h.default.bar_content,"bar_content"),X=(0,o.useMemo)(()=>G?Number.MAX_SAFE_INTEGER:Math.floor(V-(U||0)/W),[G,V,U,W]),[oe,ie]=(0,o.useState)(c(H.visibleContainers.filter(fe=>{var Ie;return!(!((Ie=fe.options)===null||Ie===void 0)&&Ie.hideTab)}),X));(0,o.useEffect)(()=>{H.updateBarSize(k+F)},[]),(0,o.useEffect)(()=>{const fe=()=>{ie(c(H.visibleContainers.filter(Me=>{var Be;return!(!((Be=Me.options)===null||Be===void 0)&&Be.hideTab)}),X))};fe();const Ie=_.Event.any(H.onDidRegisterContainer,H.onStateChange)(fe);return()=>{Ie.dispose()}},[X]);const he=(0,_.useAutorun)(H.currentContainerId),me=(0,_.usePreference)("workbench.hideSlotTabBarWhenHidePanel",!1),q=j&&me;q&&!he&&((R=H.resizeHandle)===null||R===void 0||R.setSize(0));const[Ee,ue]=oe;ue.forEach(fe=>{H.updateTabInMoreKey(fe.options.containerId,!0)});const te=(0,o.useCallback)((fe,Ie,Me,Be)=>{var Pe;const we=(Pe=fe.options)===null||Pe===void 0?void 0:Pe.containerId;if(!we)return null;Ie.updateTabInMoreKey(we,!1);let _e;return o.default.createElement("li",{draggable:!0,onDragStart:Ne=>{if(_e){const Te=_e.cloneNode(!0);Te.classList.add(h.default.dragging),L&&(0,_.addClassName)(Te,L),document.body.appendChild(Te),Ne.persist(),requestAnimationFrame(()=>{Ne.dataTransfer.setDragImage(Te,0,0),document.body.removeChild(Te)})}Ie.handleDragStart(Ne,we)},onDragOver:Ne=>{Ne.preventDefault(),_e&&_e.classList.add("on-drag-over")},onDragLeave:()=>{_e&&_e.classList.remove("on-drag-over")},onDrop:Ne=>{_e&&_e.classList.remove("on-drag-over"),Ie.handleDrop(Ne,we)},onDragEnd:Ne=>{Ie.handleDragEnd(Ne)},key:we,id:we,onContextMenu:Ne=>Ie.handleContextMenu(Ne,we),onClick:Ne=>Ie.handleTabClick(Ne,q||M),ref:Ne=>_e=Ne,className:(0,r.default)({active:Me===we},L)},o.default.createElement(P,{component:fe}))},[]);return o.default.createElement("div",{className:(0,r.default)([K,B])},o.default.createElement("div",{className:Y,style:{flexDirection:m.Layout.getTabbarDirection($)}},Ee.map(fe=>te(fe,H,he,Z)),Q({props:T,renderContainers:te}),ue.length?o.default.createElement("li",{key:"tab-more",onClick:fe=>{var Ie;return H.showMoreMenu(fe,Ee[Ee.length-1]&&((Ie=Ee[Ee.length-1].options)===null||Ie===void 0?void 0:Ie.containerId))},className:L},o.default.createElement(O,null)):null))};t.TabbarViewBase=f;const d=({component:T})=>{var R,P,O;const M=(0,_.useInjectable)(s.IProgressService),k=(0,_.useInjectable)(_.KeybindingRegistry),F=(0,_.useDesignStyles)(h.default.icon_tab,"icon_tab"),[L,B]=(0,o.useState)(T),U=M.getIndicator(((R=L.options)===null||R===void 0?void 0:R.containerId)||""),W=U?(0,_.useAutorun)(U.progressModel.show):!1,j=(0,o.useMemo)(()=>{const Q=L.options;return Q?.activateKeyBinding?`${Q?.title} (${k.acceleratorForKeyString(Q.activateKeyBinding,"+")})`:Q?.title},[L]);return(0,o.useEffect)(()=>{const Q=L.onChange(G=>{B({...G})});return()=>{Q.dispose()}},[L]),o.default.createElement("div",{className:F},o.default.createElement("div",{className:(0,r.default)((P=L.options)===null||P===void 0?void 0:P.iconClass,"activity-icon"),title:j}),W?o.default.createElement(l.Badge,{className:h.default.tab_badge},o.default.createElement("span",{className:h.default.icon_wrapper},o.default.createElement(l.Icon,{icon:"time-circle"}))):((O=L.options)===null||O===void 0?void 0:O.badge)&&o.default.createElement(l.Badge,{className:h.default.tab_badge},E(L.options.badge)))};t.IconTabView=d;const y=({component:T})=>{var R,P,O;const[M,k]=(0,o.useState)(T);return(0,o.useEffect)(()=>{const F=M.onChange(L=>{k({...L})});return()=>{F.dispose()}},[M]),o.default.createElement("div",{className:h.default.text_tab},o.default.createElement("div",{className:h.default.bottom_tab_title},(P=(R=M.options)===null||R===void 0?void 0:R.title)===null||P===void 0?void 0:P.toUpperCase()),((O=M.options)===null||O===void 0?void 0:O.badge)&&o.default.createElement(l.Badge,{className:h.default.tab_badge},E(M.options.badge)))};t.TextTabView=y;const b=()=>{const T=(0,_.useDesignStyles)(h.default.icon_tab,"icon_tab");return o.default.createElement("div",{className:T},o.default.createElement("div",{className:(0,r.default)((0,_.getIcon)("ellipsis"),"activity-icon"),title:"extra tabs"}))};t.IconElipses=b;const A=()=>o.default.createElement("div",{className:h.default.text_tab},o.default.createElement("div",{className:h.default.bottom_tab_title},o.default.createElement("i",{className:(0,_.getIcon)("doubleright")})));t.TextElipses=A;const S=T=>{const{barSize:R=48,style:P}=T,{side:O}=(0,o.useContext)(a.TabbarConfig),M=(0,_.useInjectable)(u.TabbarServiceFactory)(O),k=(0,_.useDesignStyles)(h.default.right_tab_bar,"right_tab_bar"),F=(0,_.useDesignStyles)(h.default.right_tab,"right_tab");return o.default.createElement("div",{id:p.VIEW_CONTAINERS.RIGHT_TABBAR,className:k,style:P,onContextMenu:M.handleContextMenu},o.default.createElement(t.TabbarViewBase,{tabSize:48,MoreTabView:t.IconElipses,tabClassName:F,TabView:t.IconTabView,barSize:R,panelBorderSize:1}))};t.RightTabbarRenderer=S;const D=({renderOtherVisibleContainers:T,isRenderExtraTopMenus:R=!0,renderExtraMenus:P,tabbarViewProps:O})=>{const{side:M}=(0,o.useContext)(a.TabbarConfig),k=(0,_.useInjectable)(g.IMainLayoutService),F=(0,_.useInjectable)(u.TabbarServiceFactory)(M),L=(0,o.useMemo)(()=>k.getExtraTopMenu(),[k]),B=(0,o.useMemo)(()=>k.getExtraMenu(),[k]),U=(0,_.useDesignStyles)(h.default.left_tab_bar,"left_tab_bar"),W=(0,_.useDesignStyles)(h.default.left_tab,"left_tab");return o.default.createElement("div",{id:p.VIEW_CONTAINERS.LEFT_TABBAR,className:U,onContextMenu:F.handleContextMenu},R&&o.default.createElement(v.InlineMenuBar,{className:(0,r.default)(h.default.vertical_icons,h.default.extra_top_menus),menus:L}),o.default.createElement(t.TabbarViewBase,{tabSize:48,MoreTabView:t.IconElipses,className:h.default.left_tab_content,tabClassName:W,TabView:t.IconTabView,barSize:48,margin:90,panelBorderSize:1,renderOtherVisibleContainers:T,...O}),P||o.default.createElement(v.InlineMenuBar,{className:h.default.vertical_icons,menus:B}))};t.LeftTabbarRenderer=D;const I=()=>{const{side:T}=(0,o.useContext)(a.TabbarConfig),R=(0,_.useInjectable)(u.TabbarServiceFactory)(T),P=(0,_.useDesignStyles)(h.default.bottom_bar_container,"bottom_bar_container"),O=(0,_.useDesignStyles)(h.default.bottom_tab,"bottom_tab");return o.default.createElement("div",{id:p.VIEW_CONTAINERS.BOTTOM_TABBAR,onContextMenu:R.handleContextMenu,className:(0,r.default)(P,"next_bottom_bar")},o.default.createElement(t.TabbarViewBase,{tabSize:80,MoreTabView:t.TextElipses,tabClassName:O,TabView:t.TextTabView,barSize:24,panelBorderSize:1,canHideTabbar:!0}))};t.BottomTabbarRenderer=I;const w=T=>{const{barSize:R=32,style:P}=T,{side:O}=(0,o.useContext)(a.TabbarConfig),M=(0,_.useInjectable)(u.TabbarServiceFactory)(O),k=(0,_.useDesignStyles)(h.default.ai_right_tab_bar,"ai_right_tab_bar"),F=(0,_.useDesignStyles)(h.default.ai_right_tab,"ai_right_tab");return o.default.createElement("div",{id:O,className:k,style:P,onContextMenu:M.handleContextMenu},o.default.createElement(t.TabbarViewBase,{tabSize:32,MoreTabView:t.IconElipses,tabClassName:F,TabView:t.IconTabView,barSize:R,panelBorderSize:1}))};t.ChatTabbarRenderer2=w},66368:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BottomTabPanelRenderer=t.LeftTabPanelRenderer=t.RightTabPanelRenderer=t.ContainerView=t.BaseTabPanelView=void 0;const n=e(85608),r=n.__importDefault(e(53373)),o=n.__importStar(e(14041)),l=e(76003),_=e(41869),v=e(25918),m=e(1149),p=e(68969),s=e(68974),g=e(9522),a=e(70936),h=e(91527),u=e(19951),c=n.__importDefault(e(5330)),E=e(752),f=o.default.memo(({children:T})=>T,(T,R)=>!(T.visible||R.visible)),d={display:"block"},y={display:"none"},b=T=>{const{PanelView:R,panelSize:P,id:O,PanelViewProps:M}=T,{side:k}=o.default.useContext(u.TabbarConfig),F=(0,_.useInjectable)(_.AppConfig),L=F.panelSizes&&F.panelSizes[k],B=(0,_.useInjectable)(E.TabbarServiceFactory)(k),U=(0,_.useAutorun)(B.currentContainerId),W=(0,_.useDesignStyles)(c.default.tab_panel,"tab_panel"),j=(0,_.useDesignStyles)(c.default.tab_panel_hidden,"tab_panel_hidden");return o.default.useEffect(()=>{B.updatePanelSize(L||P||335)},[]),o.default.createElement("div",{id:O,className:(0,r.default)("kt-tab-panel",W,{[j]:!U})},B.visibleContainers.map(Q=>{var G;const Z=(G=Q.options)===null||G===void 0?void 0:G.containerId;if(!Z)return null;const $=B.getTitleToolbarMenu(Z);return o.default.createElement("div",{key:Z,className:(0,r.default)(c.default.panel_wrap,Z),"data-viewlet-id":Z,style:U===Z?d:y,id:O},o.default.createElement(_.ErrorBoundary,null,o.default.createElement(f,{visible:U===Z},o.default.createElement(R,{titleMenu:$,side:k,component:Q,...M}))))}))};t.BaseTabPanelView=b;const A=({component:T,titleMenu:R,side:P,renderContainerWrap:O,className:M,customTitleBar:k})=>{var F,L;const B=o.default.useRef(),U=o.default.useRef(null),W=(0,_.useInjectable)(_.AppConfig),{title:j,titleComponent:Q,component:G,containerId:Z,draggable:$}=T.options||{},V=(0,_.useInjectable)(l.INJECTOR_TOKEN),H=(0,_.useInjectable)(m.LayoutViewSizeConfig),K=(0,o.useCallback)(he=>{V.get(g.AccordionServiceFactory)(Z).handleContextMenu(he)},[Z]);if(!Z)return null;const X=(0,_.useInjectable)(p.IProgressService).getIndicator(Z);if(!X)return null;const oe=(0,_.useViewState)(P,U),ie=o.default.useCallback(he=>O?O({children:he}):he,[O]);return o.default.createElement("div",{ref:U,className:(0,r.default)(c.default.view_container,M)},!!k&&k,!G&&o.default.createElement("div",{onContextMenu:K,className:c.default.panel_titlebar},j?o.default.createElement(h.TitleBar,{containerId:Z,side:P,title:j,draggable:$,height:H.panelTitleBarHeight,menubar:o.default.createElement(v.InlineActionBar,{menus:R})}):null,Q&&o.default.createElement("div",{className:c.default.panel_component},o.default.createElement(_.ConfigProvider,{value:W},o.default.createElement(_.ComponentRenderer,{Component:Q,initialProps:(F=T.options)===null||F===void 0?void 0:F.titleProps})))),o.default.createElement("div",{className:c.default.container_wrap,ref:he=>B.current=he},o.default.createElement(s.ProgressBar,{progressModel:X.progressModel}),ie(G?o.default.createElement(_.ConfigProvider,{value:W},o.default.createElement(_.ComponentRenderer,{initialProps:{viewState:oe,...(L=T.options)===null||L===void 0?void 0:L.initialProps},Component:G})):o.default.createElement(a.AccordionContainer,{views:T.views,minSize:T.options.miniSize,containerId:T.options.containerId}))))};t.ContainerView=A;const S=({component:T,titleMenu:R,side:P})=>{var O,M,k,F;const L=o.default.useRef(),B=o.default.useRef(null),U=(0,_.useInjectable)(_.AppConfig),W=(0,_.useInjectable)(E.TabbarServiceFactory)(P),j=(0,_.useDesignStyles)(c.default.panel_title_bar,"panel_title_bar"),Q=(0,_.useDesignStyles)(c.default.panel_toolbar_container,"panel_toolbar_container"),G=(0,_.useViewState)(P,B),Z=(0,_.useInjectable)(m.LayoutViewSizeConfig),$=(0,_.useInjectable)(p.IProgressService),{component:V,containerId:H}=T.options||{},K=T.options&&T.options.titleComponent;if(!H)return null;const Y=$.getIndicator(H);return Y?o.default.createElement("div",{ref:B,className:c.default.panel_container},o.default.createElement("div",{className:j,style:{height:Z.panelTitleBarHeight}},o.default.createElement("h1",null,(M=(O=T.options)===null||O===void 0?void 0:O.title)===null||M===void 0?void 0:M.toUpperCase()),o.default.createElement("div",{className:c.default.title_component_container},K&&o.default.createElement(_.ComponentRenderer,{Component:K,initialProps:(k=T.options)===null||k===void 0?void 0:k.titleProps})),o.default.createElement("div",{className:Q},R&&o.default.createElement(v.InlineActionBar,{menus:R}),o.default.createElement(v.InlineMenuBar,{menus:W.commonTitleMenu,moreAtFirst:!0}))),o.default.createElement("div",{className:c.default.container_wrap,ref:X=>L.current=X},o.default.createElement(s.ProgressBar,{progressModel:Y.progressModel}),V?o.default.createElement(_.ConfigProvider,{value:U},o.default.createElement(_.ComponentRenderer,{initialProps:{viewState:G,...(F=T.options)===null||F===void 0?void 0:F.initialProps},Component:V})):o.default.createElement(a.AccordionContainer,{views:T.views,alignment:"horizontal",minSize:T.options.miniSize||200,containerId:T.options.containerId}))):null},D=()=>o.default.createElement(t.BaseTabPanelView,{PanelView:t.ContainerView});t.RightTabPanelRenderer=D;const I=()=>o.default.createElement(t.BaseTabPanelView,{PanelView:t.ContainerView});t.LeftTabPanelRenderer=I;const w=()=>o.default.createElement(t.BaseTabPanelView,{PanelView:S,panelSize:280});t.BottomTabPanelRenderer=w},19951:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BottomTabRenderer=t.LeftTabRenderer=t.RightTabRenderer=t.TabRendererBase=t.TabbarConfig=void 0;const n=e(85608),r=n.__importDefault(e(53373)),o=n.__importStar(e(14041)),l=e(41869),_=e(81878),v=e(25719),m=e(63373),p=e(46245),s=e(66368),g=n.__importDefault(e(5330)),a=e(752);t.TabbarConfig=(0,o.createContext)({side:l.SlotLocation.view,direction:"left-to-right",fullSize:0}),t.TabRendererBase=(0,o.memo)(({id:E,className:f,components:d,direction:y="left-to-right",TabbarView:b,side:A,TabpanelView:S})=>{const D=(0,l.useInjectable)(a.TabbarServiceFactory)(A),I=(0,l.useInjectable)(l.IEventBus),w=(0,o.useContext)(_.PanelContext),T=(0,o.useRef)(null),[R,P]=(0,o.useState)(0);(0,o.useLayoutEffect)(()=>{D.registerResizeHandle(w),d.forEach(M=>{D.registerContainer(M.options.containerId,M)}),D.updatePanelVisibility(),D.ensureViewReady()},[d]);const O=(0,o.useCallback)(()=>{T.current&&P(T.current[v.Layout.getDomSizeProperty(y)])},[]);return(0,o.useEffect)(()=>{l.fastdom.measure(()=>{O()});let M;I.onDirective(l.ResizeEvent.createDirective(A),()=>{M&&M.dispose(),M=l.fastdom.measureAtNextFrame(()=>{O()})})},[]),o.default.createElement("div",{ref:T,id:E,className:(0,r.default)(g.default.tab_container,f),style:{flexDirection:v.Layout.getFlexDirection(y)}},o.default.createElement(t.TabbarConfig.Provider,{value:{side:A,direction:y,fullSize:R}},o.default.createElement(b,null),o.default.createElement(S,null)))});const h=({className:E,components:f,tabbarView:d,tabpanelView:y})=>o.default.createElement(t.TabRendererBase,{side:l.SlotLocation.extendView,direction:"right-to-left",id:m.VIEW_CONTAINERS.RIGHT_TABBAR_PANEL,className:(0,r.default)(E,"right-slot"),components:f,TabbarView:d??p.RightTabbarRenderer,TabpanelView:y??s.RightTabPanelRenderer});t.RightTabRenderer=h;const u=({className:E,components:f,tabbarView:d})=>o.default.createElement(t.TabRendererBase,{side:l.SlotLocation.view,direction:"left-to-right",id:m.VIEW_CONTAINERS.LEFT_TABBAR_PANEL,className:(0,r.default)(E,"left-slot"),components:f,TabbarView:d??p.LeftTabbarRenderer,TabpanelView:s.LeftTabPanelRenderer});t.LeftTabRenderer=u;const c=({className:E,components:f,tabbarView:d})=>o.default.createElement(t.TabRendererBase,{side:l.SlotLocation.panel,id:m.VIEW_CONTAINERS.BOTTOM_TABBAR_PANEL,direction:"bottom-to-top",className:(0,r.default)(E,"bottom-slot"),components:f,TabbarView:d??p.BottomTabbarRenderer,TabpanelView:s.BottomTabPanelRenderer});t.BottomTabRenderer=c},94813:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TabbarBehaviorHandler=void 0;const n=e(41869),r=e(30144),o=e(75053);class l{constructor(v,m){this.location=v,this.config=m,this.accordionRestored=new Set}getIsLatter(){var v;return((v=this.config)===null||v===void 0?void 0:v.isLatter)!==void 0?this.config.isLatter:this.location==="extendView"||this.location==="panel"}wrapResizeHandle(v){const{setSize:m,setRelativeSize:p,getSize:s,getRelativeSize:g,lockSize:a,setMaxSize:h,hidePanel:u}=v,c=this.getIsLatter();return{setSize:E=>m(E,c),setRelativeSize:(E,f)=>p(E,f,c),getSize:()=>s(c),getRelativeSize:()=>g(c),setMaxSize:E=>h(E,c),lockSize:E=>a(E,c),hidePanel:E=>u(E)}}registerLocationSpecificCommands(v){const m=new n.DisposableCollection,{supportedActions:p}=this.config||{};return p?.expand&&(m.push(v.commandRegistry.registerCommand(o.EXPAND_PANEL_COMMAND,{execute:()=>{v.layoutService.expandBottom(!0)}})),m.push(v.commandRegistry.registerCommand(o.RETRACT_PANEL_COMMAND,{execute:()=>{v.layoutService.expandBottom(!1)}}))),p?.toggle&&m.push(v.commandRegistry.registerCommand(o.TOGGLE_PANEL_COMMAND,{execute:(s,g)=>{v.layoutService.toggleSlot(this.location,s,g)}})),m}registerLocationSpecificMenus(v){var m,p,s,g;const a=[];if(!((p=(m=this.config)===null||m===void 0?void 0:m.supportedActions)===null||p===void 0)&&p.expand&&a.push({command:o.EXPAND_PANEL_COMMAND.id,group:"navigation",when:"!bottomFullExpanded",order:1},{command:o.RETRACT_PANEL_COMMAND.id,group:"navigation",when:"bottomFullExpanded",order:1}),!((g=(s=this.config)===null||s===void 0?void 0:s.supportedActions)===null||g===void 0)&&g.toggle&&a.push({command:o.TOGGLE_PANEL_COMMAND.id,group:"navigation",order:2}),a.length>0)return v.menuRegistry.registerMenuItems(`tabbar/${this.location}/common`,a),v.ctxMenuService.createMenu({id:`tabbar/${this.location}/common`})}doExpand(v,m){var p,s;if(!(!((s=(p=this.config)===null||p===void 0?void 0:p.supportedActions)===null||s===void 0)&&s.expand)||!m)return;const{setRelativeSize:g}=m,a=this.getIsLatter();v?a?g(0,1):g(1,0):g(2,1)}isExpanded(v){var m,p;if(!(!((p=(m=this.config)===null||m===void 0?void 0:m.supportedActions)===null||p===void 0)&&p.expand)||!v)return!1;const{getRelativeSize:s}=v,g=s().join(",");return this.getIsLatter()?g==="0,1":g==="1,0"}handleActivateKeyBinding(v,m,p,s){var g,a;!((a=(g=this.config)===null||g===void 0?void 0:g.supportedActions)===null||a===void 0)&&a.toggle&&!s?p(m===v?"":v):p(v)}handleFullExpanded(v,m,p,s){var g,a;const{barSize:h,panelSize:u,prevSize:c}=s,{setRelativeSize:E,setSize:f}=p;v?m&&(!((a=(g=this.config)===null||g===void 0?void 0:g.supportedActions)===null||a===void 0)&&a.expand)?this.getIsLatter()?E(0,1):E(1,0):f(c||u+h):f(h)}tryRestoreAccordionSize(v,m){var p,s,g,a;if(!(!((s=(p=this.config)===null||p===void 0?void 0:p.supportedActions)===null||s===void 0)&&s.accordion))return;const{containerId:h}=v.options||{};if(!h||this.accordionRestored.has(h)||(!v||!((g=v.options)===null||g===void 0)&&g.component)&&((a=v?.options)===null||a===void 0?void 0:a.containerId)!==r.SCM_CONTAINER_ID)return;m.getAccordionService(h).restoreState(),this.accordionRestored.add(h)}}t.TabbarBehaviorHandler=l},752:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TabbarService=t.TabbarServiceFactoryFn=t.TabbarServiceFactory=void 0;const n=e(85608),r=n.__importDefault(e(12784)),o=e(76003),l=e(41869),_=e(95416),v=e(93899),m=e(68969),p=e(38578),s=e(28423),g=e(17793),a=e(94813);t.TabbarServiceFactory=Symbol("TabbarServiceFactory");const h=E=>f=>E.get(g.IMainLayoutService).getTabbarService(f);t.TabbarServiceFactoryFn=h;const u=void 0;let c=class extends l.WithEventBus{constructor(f){super(),this.location=f,this.doChangeViewEmitter=new l.Emitter,this.onStateChangeEmitter=new l.Emitter,this.onStateChange=this.onStateChangeEmitter.event,this.shouldChangeView=(0,s.observableFromEventOpts)({owner:this,equalsFn:()=>!1},this.doChangeViewEmitter.event,()=>{}),this.containerIdObs=(0,s.observableValue)(this,u),this.currentContainerId=(0,s.derivedOpts)({owner:this,equalsFn:()=>!1},y=>(this.shouldChangeView.read(y),this.containerIdObs.read(y))),this.nextContainerId="",this.useFirstContainerId=!1,this.previousContainerId=void 0,this.containersMap=new Map,this.viewReady=new l.Deferred,this.state=new Map,this.storedState={},this.onCurrentChangeEmitter=new l.Emitter,this.onCurrentChange=this.onCurrentChangeEmitter.event,this.onSizeChangeEmitter=new l.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 l.Emitter,this.isEmptyTabbar=!0,this.updatePanel=(0,r.default)(y=>{this.resizeHandle&&this.resizeHandle.hidePanel(y)},60),this._menuMap=new Map,this.handleContextMenu=(y,b)=>{y.preventDefault(),y.stopPropagation();const A=this.menuService.createMenu(this.menuId,b?this.scopedCtxKeyService:this.contextKeyService),S=(0,v.generateCtxMenu)({menus:A,args:[{containerId:b}]});this.contextMenuRenderer.show({menuNodes:S[1],anchor:{x:y.clientX,y:y.clientY}})};const d=p.slotRendererRegistry.getTabbarConfig(f);this.behaviorHandler=new a.TabbarBehaviorHandler(f,d),this.scopedCtxKeyService=this.contextKeyService.createScoped(),this.scopedCtxKeyService.createKey("triggerWithTab",!0),this.menuRegistry.registerMenuItem(this.menuId,{command:{id:this.registerGlobalToggleCommand(),label:(0,l.localize)("layout.tabbar.toggle")},group:"0_global",when:"triggerWithTab == true"}),this.activatedKey=this.contextKeyService.createKey((0,l.getTabbarCtxKey)(this.location),""),this.behaviorHandler.registerLocationSpecificCommands({commandRegistry:this.commandRegistry,layoutService:this.layoutService}),this.commonTitleMenu=this.behaviorHandler.registerLocationSpecificMenus({menuRegistry:this.menuRegistry,ctxMenuService:this.ctxMenuService}),this.eventBus.onDirective(l.ResizeEvent.createDirective(this.location),()=>{this.onResize()})}get onDidRegisterContainer(){return this.onDidRegisterContainerEmitter.event}updateNextContainerId(f){(0,l.isUndefined)(f)?this.useFirstContainerId=!0:this.nextContainerId=f}updateCurrentContainerId(f,d){d?this.containerIdObs.set(f,d):(0,s.transaction)(y=>{this.containerIdObs.set(f,y)})}updateBadge(f,d){const y=this.getContainer(f);y&&y.options&&(y.options.badge=d),y?.fireChange(y)}getContainerState(f){return this.state.get(f)}hideContainer(f){const d=this.state.get(f);d&&(d.hidden=!0,this.onStateChangeEmitter.fire())}showContainer(f){const d=this.state.get(f);d&&(d.hidden=!1,this.onStateChangeEmitter.fire())}updatePanelVisibility(f){f===void 0&&(f=this.containersMap.size>0),this.updatePanel(f)}ensureViewReady(){(0,l.isDefined)(this.barSize)&&(0,l.isDefined)(this.panelSize)?this.resolveViewReady():this.shouldWaitForViewRender=!0}updatePanelSize(f){this.panelSize=f,(0,l.isDefined)(this.barSize)&&this.shouldWaitForViewRender&&this.resolveViewReady()}updateBarSize(f){this.barSize=f,(0,l.isDefined)(this.panelSize)&&this.shouldWaitForViewRender&&this.resolveViewReady()}resolveViewReady(){this.isEmptyTabbar?l.Event.once(this.onDidRegisterContainer)(()=>{this.viewReady.resolve()}):this.viewReady.resolve()}getBarSize(){return this.barSize}updateTabInMoreKey(f,d){const y=this.tabInMoreKeyMap.get(f);y&&y.set(d)}get visibleContainers(){const f=[];return this.containersMap.forEach(d=>{const y=d.options&&this.state.get(d.options.containerId);(!y||!y.hidden)&&f.push(d)}),f.sort((d,y)=>this.getContainerState(d.options.containerId).priority-this.getContainerState(y.options.containerId).priority)}registerResizeHandle(f){return this.resizeHandle=this.behaviorHandler.wrapResizeHandle(f),this.listenCurrentChange()}registerContainer(f,d){var y;if(this.containersMap.has(f))return;this.useFirstContainerId&&(this.useFirstContainerId=!1,this.updateCurrentContainerId(f)),this.nextContainerId===f&&this.updateCurrentContainerId(f);const b=new l.DisposableCollection,A=d.options||{containerId:f};d.options=A;const S=new l.Emitter;this.containersMap.set(f,{fireChange:I=>S.fire(I),onChange:S.event,views:d.views,options:A}),b.push({dispose:()=>{this.containersMap.delete(f),this.state.delete(f)}}),this.updatePanelVisibility(this.containersMap.size>0);let D=this.sortedContainers.findIndex(I=>{var w,T;return(((w=I.options)===null||w===void 0?void 0:w.priority)||1)<=(((T=d.options)===null||T===void 0?void 0:T.priority)||1)});D===-1&&(D=this.sortedContainers.length),this.sortedContainers.splice(D,0,d);for(let I=D;I<this.sortedContainers.length;I++){const T=(y=this.sortedContainers[I].options)===null||y===void 0?void 0:y.containerId;if(T){const R=this.storedState[T]||this.getContainerState(T)||{};this.state.set(T,{hidden:R.hidden,priority:I})}}b.push(this.registerSideEffects(d)),this.eventBus.fire(new g.TabBarRegistrationEvent({tabBarId:f})),f===this.currentContainerId.get()&&this.handleChange(f,""),this.viewContextKeyRegistry.registerContextKeyService(f,this.contextKeyService.createScoped()).createKey("view",f),this.isEmptyTabbar&&(this.isEmptyTabbar=!1),this.disposableMap.set(f,b),this.onDidRegisterContainerEmitter.fire(f)}registerSideEffects(f){var d;const y=new l.DisposableCollection;!((d=f.options)===null||d===void 0)&&d.hideTab||(y.push(this.registerHideMenu(f)),y.push(this.registerMoreMenu(f))),y.push(this.registerActivateKeyBinding(f,f.options.fromExtension));const b=this.contextKeyService.createKey(`workbench.${this.location}.${f.options.containerId}`,!0);return y.push({dispose:()=>{b.set(!1)}}),y.push(this.progressService.registerProgressIndicator(f.options.containerId)),y.push(this.registerContainerPanelRelatedCommand(f)),y}registerContainerPanelRelatedCommand(f){var d,y,b,A,S;const D=new l.DisposableCollection,I=(d=f.options)===null||d===void 0?void 0:d.containerId;return D.push(this.commandRegistry.registerCommand({id:"container.show."+I,label:(0,l.formatLocalize)("view.command.show",(b=(y=f.options)===null||y===void 0?void 0:y.title)!==null&&b!==void 0?b:I),labelLocalized:(0,l.createFormatLocalizedStr)("view.command.show",(S=(A=f.options)===null||A===void 0?void 0:A.title)!==null&&S!==void 0?S:I),category:"View"},{execute:()=>{this.updateCurrentContainerId(I)}})),D.push(this.commandRegistry.registerCommand({id:"container.hide."+I},{execute:()=>{this.updateCurrentContainerId("")}})),D.push(this.commandRegistry.registerCommand({id:"container.toggle."+I},{execute:()=>{this.currentContainerId.get()===I?this.updateCurrentContainerId(""):this.updateCurrentContainerId(I)}})),D}registerHideMenu(f){const d=new l.DisposableCollection,y=f.options.containerId;return d.push(this.menuRegistry.registerMenuItem(this.menuId,{command:{id:this.registerVisibleToggleCommand(y,d),label:f.options.title||y},group:"1_widgets"})),d}registerMoreMenu(f){const d=new l.DisposableCollection,y=f.options.containerId,b=this.scopedCtxKeyService.createKey(this.getTabInMoreCtxKey(y),!1);return this.tabInMoreKeyMap.set(y,b),d.push({dispose:()=>this.tabInMoreKeyMap.delete(y)}),d.push(this.menuRegistry.registerMenuItem(this.moreMenuId,{command:{id:this.registerMoreToggleCommand(f,d),label:f.options.title||y},group:"inline",when:`${this.getTabInMoreCtxKey(y)} == true`,toggledWhen:`${(0,l.getTabbarCtxKey)(this.location)} == ${y}`,iconClass:f.options.iconClass})),d}disposeContainer(f){var d;const y=this.disposableMap.get(f);y&&y.dispose(),this.currentContainerId.get()===f&&this.updateCurrentContainerId(((d=this.visibleContainers[0].options)===null||d===void 0?void 0:d.containerId)||"")}updateTitle(f,d){const y=this.getContainer(f);y&&(y.options.title=d)}getContainer(f){return f?this.containersMap.get(f):void 0}getTitleToolbarMenu(f){const d=this._menuMap.get(f);if(d)return d;const y=this.menuService.createMenu(v.MenuId.ViewTitle,this.viewContextKeyRegistry.getContextKeyService(f));this._menuMap.set(f,y);const b=this.disposableMap.get(f),A=[y,(0,l.toDisposable)(()=>{this._menuMap.delete(f)})];return b?b.pushAll(A):this.addDispose(A),y}doExpand(f){this.behaviorHandler.doExpand(f,this.resizeHandle)}get isExpanded(){return this.behaviorHandler.isExpanded(this.resizeHandle)}handleTabClick(f,d){const y=f.currentTarget.id;y===this.currentContainerId.get()&&!d?this.updateCurrentContainerId(""):this.updateCurrentContainerId(y)}showMoreMenu(f,d){const y=this.menuService.createMenu(this.moreMenuId,this.scopedCtxKeyService),b=(0,v.generateCtxMenu)({menus:y,args:[{lastContainerId:d}]});this.contextMenuRenderer.show({menuNodes:b[1],anchor:{x:f.clientX,y:f.clientY}})}handleDragStart(f,d){f.dataTransfer.setData("containerId",d),this.layoutService.showDropAreaForContainer(d)}handleDrop(f,d){if(f.dataTransfer.getData("containerId")){const y=f.dataTransfer.getData("containerId"),b=this.visibleContainers,A=b.findIndex(D=>y===D.options.containerId),S=b.findIndex(D=>d===D.options.containerId);this.doInsertTab(b,A,S),this.storeState()}}handleDragEnd(f){this.layoutService.hideDropArea()}restoreState(){this.storedState=this.layoutState.getState(_.LAYOUT_STATE.getTabbarSpace(this.location),{});for(const f of this.state.keys())this.storedState[f]&&this.state.set(f,this.storedState[f]);this.visibleContainers.forEach(f=>{this.tryRestoreAccordionSize(f)})}removeContainer(f){const d=this.disposableMap.get(f);d?.dispose(),this.onStateChangeEmitter.fire()}dynamicAddContainer(f,d){this.registerContainer(f,d),this.updateCurrentContainerId(f)}doInsertTab(f,d,y){const b=this.getContainerState(f[y].options.containerId).priority,A=(D,I)=>{const w=this.getContainerState(f[D].options.containerId),T=this.getContainerState(f[I].options.containerId);w.priority=T.priority};let S;if(d>y)for(S=y;S<d;S++)A(S,S+1);else for(S=y;S>d;S--)A(S,S-1);this.getContainerState(f[S].options.containerId).priority=b,this.doChangeViewEmitter.fire()}storeState(){const f={};this.state.forEach((d,y)=>{f[y]=d}),this.layoutState.setState(_.LAYOUT_STATE.getTabbarSpace(this.location),f),this.onStateChangeEmitter.fire()}registerActivateKeyBinding(f,d){const y=f.options,b=y.containerId,A=d?`workbench.view.extension.${b}`:`workbench.view.${b}`,S=new l.DisposableCollection;return S.push(this.commandRegistry.registerCommand({id:A},{execute:({forceShow:D}={})=>{this.behaviorHandler.handleActivateKeyBinding(b,this.currentContainerId.get()||"",I=>this.updateCurrentContainerId(I),D)}})),y.activateKeyBinding&&S.push(this.keybindingRegistry.registerKeybinding({command:A,keybinding:y.activateKeyBinding})),S}registerGlobalToggleCommand(){const f=`activity.bar.toggle.${this.location}`;return this.commandRegistry.registerCommand({id:f},{execute:({containerId:d})=>{this.doToggleTab(d)},isEnabled:()=>this.visibleContainers.length>1}),f}registerVisibleToggleCommand(f,d){const y=`activity.bar.toggle.${f}`;return d.push(this.commandRegistry.registerCommand({id:y},{execute:({forceShow:b}={})=>{this.doToggleTab(f,b)},isToggled:()=>!this.getContainerState(f).hidden,isEnabled:()=>this.getContainerState(f).hidden||this.visibleContainers.length!==1})),y}registerMoreToggleCommand(f,d){const{options:y}=f,{containerId:b}=y,A=`activity.bar.activate.more.${b}`;return d.push(this.commandRegistry.registerCommand({id:A},{execute:({lastContainerId:S})=>{if(this.updateCurrentContainerId(b),S){const D=this.getContainerState(b),I=this.getContainerState(S),w=D.priority;D.priority=I.priority,I.priority=w,this.storeState()}}})),A}getTabInMoreCtxKey(f){return`${f}.isInMore`}doToggleTab(f,d){const y=this.getContainerState(f);d===void 0?y.hidden=!y.hidden:y.hidden=!d,y.hidden&&this.currentContainerId.get()===f&&this.updateCurrentContainerId(this.visibleContainers[0].options.containerId),this.storeState()}shouldExpand(f){const d=this.getContainer(f);return!!(d&&d.options&&d.options.expanded)}onResize(){l.fastdom.measureAtNextFrame(()=>{if(!this.currentContainerId||!this.resizeHandle)return;const f=this.resizeHandle.getSize();f!==this.barSize&&!this.shouldExpand(this.currentContainerId.get())&&(this.prevSize=f,this.onSizeChangeEmitter.fire({size:f}))})}listenCurrentChange(){return(0,s.autorunDelta)(this.currentContainerId,({lastValue:f,newValue:d})=>{this.previousContainerId=f===u?"":f,this.handleChange(d,f)})}handleChange(f,d){var y;if(!this.resizeHandle)return;const{getSize:b,setSize:A,lockSize:S}=this.resizeHandle;this.onCurrentChangeEmitter.fire({previousId:d,currentId:f});const D=this.shouldExpand(f);if(this.shouldExpand(this.previousContainerId)||D)this.behaviorHandler.handleFullExpanded(f,D,this.resizeHandle,{barSize:this.barSize,panelSize:this.panelSize,prevSize:this.prevSize});else if(f){d&&f!==d&&(this.prevSize=b());const I=this.getContainer(f);A(this.prevSize||this.panelSize+this.barSize),S(!!(!((y=I?.options)===null||y===void 0)&&y.noResize)),this.activatedKey.set(f)}else A(this.barSize),S(!0)}tryRestoreAccordionSize(f){this.behaviorHandler.tryRestoreAccordionSize(f,this.layoutService)}};t.TabbarService=c,n.__decorate([(0,o.Autowired)(v.AbstractMenuService),n.__metadata("design:type",v.AbstractMenuService)],c.prototype,"menuService",void 0),n.__decorate([(0,o.Autowired)(v.AbstractContextMenuService),n.__metadata("design:type",v.AbstractContextMenuService)],c.prototype,"ctxMenuService",void 0),n.__decorate([(0,o.Autowired)(v.IMenuRegistry),n.__metadata("design:type",v.IMenuRegistry)],c.prototype,"menuRegistry",void 0),n.__decorate([(0,o.Autowired)(l.CommandRegistry),n.__metadata("design:type",Object)],c.prototype,"commandRegistry",void 0),n.__decorate([(0,o.Autowired)(v.ICtxMenuRenderer),n.__metadata("design:type",v.ICtxMenuRenderer)],c.prototype,"contextMenuRenderer",void 0),n.__decorate([(0,o.Autowired)(l.KeybindingRegistry),n.__metadata("design:type",Object)],c.prototype,"keybindingRegistry",void 0),n.__decorate([(0,o.Autowired)(),n.__metadata("design:type",l.ViewContextKeyRegistry)],c.prototype,"viewContextKeyRegistry",void 0),n.__decorate([(0,o.Autowired)(l.IContextKeyService),n.__metadata("design:type",Object)],c.prototype,"contextKeyService",void 0),n.__decorate([(0,o.Autowired)(g.IMainLayoutService),n.__metadata("design:type",Object)],c.prototype,"layoutService",void 0),n.__decorate([(0,o.Autowired)(),n.__metadata("design:type",_.LayoutState)],c.prototype,"layoutState",void 0),n.__decorate([(0,o.Autowired)(m.IProgressService),n.__metadata("design:type",Object)],c.prototype,"progressService",void 0),t.TabbarService=c=n.__decorate([(0,o.Injectable)({multiple:!0}),n.__metadata("design:paramtypes",[String])],c)},58296:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ViewsRegistry=t.ViewsController=t.ViewContentGroups=void 0;const n=e(85608),r=e(76003),o=e(41869),l=e(43718),_=e(17793);var v;(function(g){g.Open="2_open",g.Debug="4_debug",g.SCM="5_scm",g.More="9_more"})(v||(t.ViewContentGroups=v={}));function m(g,a){var h,u,c,E;const f=(h=g.group)!==null&&h!==void 0?h:v.More,d=(u=a.group)!==null&&u!==void 0?u:v.More;return f!==d?f.localeCompare(d):((c=g.order)!==null&&c!==void 0?c:5)-((E=a.order)!==null&&E!==void 0?E:5)}let p=class{get contents(){const a=this.items.filter(h=>h.visible);return a.length===0&&this.defaultItem?[this.defaultItem.descriptor]:a.map(h=>h.descriptor)}constructor(a){this.id=a,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,h=>h===this.id)(this.onDidChangeViewWelcomeContent,this,this.disposables),this.onDidChangeViewWelcomeContent()}onDidChangeViewWelcomeContent(){const a=this.viewsRegistry.getViewWelcomeContent(this.id);this.items=[];for(const h of a)if(h.when==="default")this.defaultItem={descriptor:h,visible:!0};else{const u=h.when?this.contextKeyService.match(h.when):!0;this.items.push({descriptor:h,visible:u})}this._onDidChange.fire()}onDidChangeContext(){let a=!1;for(const h of this.items){if(!h.descriptor.when||h.descriptor.when==="default")continue;const u=this.contextKeyService.match(h.descriptor.when);h.visible!==u&&(h.visible=u,a=!0)}a&&this._onDidChange.fire()}dispose(){this.disposables.forEach(a=>a.dispose()),this.disposables=[]}};t.ViewsController=p,n.__decorate([(0,r.Autowired)(o.IContextKeyService),n.__metadata("design:type",Object)],p.prototype,"contextKeyService",void 0),n.__decorate([(0,r.Autowired)(_.IViewsRegistry),n.__metadata("design:type",Object)],p.prototype,"viewsRegistry",void 0),t.ViewsController=p=n.__decorate([(0,r.Injectable)({multiple:!0}),n.__metadata("design:paramtypes",[String])],p);let s=class{constructor(){this.viewWelcomeContent=new l.SetMap,this._onDidChangeViewWelcomeContent=new o.Emitter,this.onDidChangeViewWelcomeContent=this._onDidChangeViewWelcomeContent.event}registerViewWelcomeContent(a,h){return this.viewWelcomeContent.add(a,h),this._onDidChangeViewWelcomeContent.fire(a),{dispose:()=>{this.viewWelcomeContent.delete(a,h),this._onDidChangeViewWelcomeContent.fire(a)}}}registerViewWelcomeContent2(a,h){const u=new Map;for(const[c,E]of h)this.viewWelcomeContent.add(a,E),u.set(c,(0,o.toDisposable)(()=>{this.viewWelcomeContent.delete(a,E),this._onDidChangeViewWelcomeContent.fire(a)}));return this._onDidChangeViewWelcomeContent.fire(a),u}getViewWelcomeContent(a){const h=[];return this.viewWelcomeContent.forEach(a,u=>h.push(u)),h.sort(m),h}};t.ViewsRegistry=s,t.ViewsRegistry=s=n.__decorate([(0,r.Injectable)()],s)},24429:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WelcomeView=t.CSSIcon=void 0,t.renderLabelWithIcons=a;const n=e(85608),r=n.__importDefault(e(53373)),o=n.__importDefault(e(14041)),l=e(48412),_=e(41869),v=e(43718),m=n.__importDefault(e(81388)),p=e(58296);var s;(function(c){c.iconNameSegment="[A-Za-z0-9]+",c.iconNameExpression="[A-Za-z0-9\\-]+",c.iconModifierExpression="~[A-Za-z]+"})(s||(t.CSSIcon=s={}));const g=new RegExp(`(\\\\)?\\$\\((${s.iconNameExpression}(?:${s.iconModifierExpression})?)\\)`,"g");function a(c){const E=new Array;let f,d=0,y=0;for(;(f=g.exec(c))!==null;){y=f.index||0,E.push(c.substring(d,y)),d=(f.index||0)+f[0].length;const[,b,A]=f;E.push(b?`$(${A})`:o.default.createElement("span",{className:(0,_.getExternalIcon)(A)}))}return d<c.length&&E.push(c.substring(d)),E}const h=c=>{const{contents:E}=c,[f,d]=o.default.useState(E.map(A=>A.precondition?!1:null)),y=(0,_.useInjectable)(_.IContextKeyService),b=(0,_.useInjectable)(_.IOpenerService);return o.default.useEffect(()=>{const A=E.map(D=>{if(D.precondition){const I=new Set;return D.precondition.keys().forEach(w=>I.add(w)),I}return null}),S=y.onDidChangeContext(D=>{A.forEach((I,w)=>{I&&D.payload.affectsSome(I)&&d(f.map((T,R)=>R===w?y.match(E[w].precondition):T))})});return()=>S.dispose()},[E]),E.length===0?null:o.default.createElement(o.default.Fragment,null,E.map(({content:A,precondition:S},D)=>{const I=A.split(`
|
|
32211
|
+
}`);this.resource=E||void 0}h&&this.commandService.executeCommand(_.EDITOR_COMMANDS.OPEN_RESOURCE.id,new _.URI(h),{preview:!1})}disposeRegistedKeybinding(){for(const[,h]of this.toUnregisterUserKeybindingMap)h.dispose();for(const[,h]of this.toRestoreDefaultKeybindingMap)h.dispose()}dispose(){this.disposeRegistedKeybinding(),this.disposableCollection.dispose()}getValidateCommand(h){return h.replace(/^monaco.editor/,"editor")}async reconcile(h){const u=n.KEYMAP_FILE_URI.toString();this.resource=await this.filesystem.getFileStat(u),this.resource||(this.resource=await this.filesystem.createFile(u,{content:JSON.stringify([])}));const E=(h?h.slice(0):await this.parseKeybindings()).map(y=>({when:y.when,command:this.getValidateCommand(y.command),keybinding:y.key||y.keybinding})),f=[],d=[];this.disposeRegistedKeybinding(),E.forEach(y=>{y.command.startsWith("-")?d.push(y):f.push(y)}),f.map(y=>{this.unregisterDefaultKeybinding(y,!0),this.registerUserKeybinding(y)}),d.map(y=>{y.command=y.command.slice(1),this.unregisterDefaultKeybinding(y,!0)})}unregisterUserKeybinding(h){const u=this.toUniqueKey(h);if(this.toUnregisterUserKeybindingMap.has(u)){const c=this.toUnregisterUserKeybindingMap.get(u);c?.dispose(),this.toUnregisterUserKeybindingMap.delete(u)}}registerUserKeybinding(h){const u=this.toUniqueKey(h);this.toUnregisterUserKeybindingMap.set(u,this.keybindingRegistry.registerKeybinding(h,_.KeybindingScope.USER))}unregisterDefaultKeybinding(h,u=!1){if(u)this.keybindingRegistry.getKeybindingsForCommand(h.command).map(E=>{const f={...h,keybinding:E.keybinding};this.keybindingRegistry.unregisterKeybinding(f);const d=this.toUniqueKey(h);this.toRestoreDefaultKeybindingMap.set(d,_.Disposable.create(()=>{this.keybindingRegistry.registerKeybinding(f)}))});else{this.keybindingRegistry.unregisterKeybinding(h);const c=this.toUniqueKey(h);this.toRestoreDefaultKeybindingMap.set(c,_.Disposable.create(()=>{this.keybindingRegistry.registerKeybinding(h)}))}}restoreDefaultKeybinding(h){const u=this.toUniqueKey(h),c=this.toRestoreDefaultKeybindingMap.get(u);c&&(c?.dispose(),this.toRestoreDefaultKeybindingMap.delete(u))}toUniqueKey(h){return`${h.command}${h.when?`-${h.when}`:"-"}${h.keybinding?`-${h.keybinding}`:"-"}`}async parseKeybindings(){try{const h=await this.resource;if(!h)return[];const{content:u}=await this.filesystem.readFile(h.uri);this.storeKeybindings=this.parser.parse(u.toString())}catch(h){this.logger.warn(`ParseKeybindings fail: ${h.stack}`),this.storeKeybindings=[]}return this.storeKeybindings}async saveKeybinding(h){this.storeKeybindings=h,this.updateKeybindings(),this.resource||(this.resource=await this.filesystem.createFile(n.KEYMAP_FILE_URI.toString()));const u=await this.filesystem.setContent(this.resource,JSON.stringify(h,void 0,2));this.resource=u||void 0}async getKeybindings(){return this.storeKeybindings.map(h=>({command:h.command,keybinding:h.key,when:h.when,args:h.args}))}async open(){this.commandService.executeCommand(_.EDITOR_COMMANDS.OPEN_RESOURCE.id,new _.URI().withScheme(p.KEYMAPS_SCHEME),{preview:!0})}getWhen(h){return h?this.keybindingService.convertMonacoWhen(h.when):""}getScope(h){return h===_.KeybindingScope.DEFAULT?(0,_.localize)("keymaps.source.default"):h===_.KeybindingScope.USER?(0,_.localize)("keymaps.source.user"):h===_.KeybindingScope.WORKSPACE?(0,_.localize)("keymaps.source.workspace"):""}getKeybindingItems(){const h=this.commandRegistry.getCommands(),u=[];for(const b of h){const A=this.keybindingRegistry.getKeybindingsForCommand(b.id);!A||!A.length?b.label&&u.push({id:b.id,command:b.label,hasCommandLabel:!0}):A.forEach(S=>{let D;if(this.storeKeybindings){const I=this.storeKeybindings.find(w=>b&&w.command===b.id);D={id:b.id,command:b.label||b.id,keybinding:I?I.key:S?this.keybindingRegistry.acceleratorFor(S,"+").join(" "):"",when:I?this.getWhen(I):this.getWhen(A&&S),source:I?this.getScope(_.KeybindingScope.USER):this.getScope(_.KeybindingScope.DEFAULT),hasCommandLabel:!!b.label}}else D={id:b.id,command:b.label||b.id,keybinding:A&&S?this.keybindingRegistry.acceleratorFor(S,"+").join(" "):"",when:this.getWhen(A&&S),source:A&&S&&typeof S.scope<"u"?this.getScope(S.scope):"",hasCommandLabel:!!b.label};u.push(D)})}const c=u.sort((b,A)=>this.compareItem(b,A)),E=c.filter(b=>!!b.keybinding),f=c.filter(b=>!b.keybinding&&b.hasCommandLabel),d=E.filter(b=>b.hasCommandLabel),y=E.filter(b=>!b.hasCommandLabel);return[...d,...y,...f]}compareItem(h,u){return h&&u?h.source===u.source?h.command.toLowerCase().localeCompare(u.command.toLowerCase()):h.source===this.getScope(_.KeybindingScope.USER)?-1:1:0}getRaw(h){return h?h.replace(new RegExp(/<(\/)?match>/gi),""):""}};t.KeymapService=g,g.DEFAULT_SEARCH_DELAY=100,g.KEYMAP_FILE_URI=new _.URI().withScheme(_.Schemes.userStorage).withPath(p.KEYMAPS_FILE_NAME),r.__decorate([(0,l.Autowired)(_.KeybindingRegistry),r.__metadata("design:type",Object)],g.prototype,"keyBindingRegistry",void 0),r.__decorate([(0,l.Autowired)(s.KeymapsParser),r.__metadata("design:type",s.KeymapsParser)],g.prototype,"parser",void 0),r.__decorate([(0,l.Autowired)(_.CommandService),r.__metadata("design:type",Object)],g.prototype,"commandService",void 0),r.__decorate([(0,l.Autowired)(_.CommandRegistry),r.__metadata("design:type",Object)],g.prototype,"commandRegistry",void 0),r.__decorate([(0,l.Autowired)(_.KeybindingRegistry),r.__metadata("design:type",Object)],g.prototype,"keybindingRegistry",void 0),r.__decorate([(0,l.Autowired)(_.KeybindingService),r.__metadata("design:type",Object)],g.prototype,"keybindingService",void 0),r.__decorate([(0,l.Autowired)(m.IFileServiceClient),r.__metadata("design:type",Object)],g.prototype,"filesystem",void 0),r.__decorate([(0,l.Autowired)(_.ILogger),r.__metadata("design:type",Object)],g.prototype,"logger",void 0),r.__decorate([(0,l.Autowired)(v.IProgressService),r.__metadata("design:type",Object)],g.prototype,"progressService",void 0),t.KeymapService=g=n=r.__decorate([(0,l.Injectable)()],g)},34879:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.KeymapsView=void 0;const n=e(85608),r=n.__importDefault(e(53373)),o=n.__importStar(e(14041)),l=e(97267),_=e(41869),v=e(25067),m=n.__importDefault(e(78541)),p=()=>{const{keybindings:s,searchKeybindings:g,validateKeybinding:a,detectKeybindings:h,setKeybinding:u,resetKeybinding:c,getRaw:E,getScope:f,covert:d,clearCovert:y,fixed:b,onDidKeymapChanges:A,updateKeybindings:S}=(0,_.useInjectable)(v.IKeymapService),[D,I]=o.default.useState(!1),[w,T]=o.default.useState(""),[R,P]=o.default.useState(s),O=({data:Q,index:G})=>{const{id:Z,command:$,when:V,source:H,keybinding:K}=Q,[Y,X]=o.default.useState(!1),[oe,ie]=o.default.useState(K||""),[he,me]=o.default.useState(!1),[q,Ee]=o.default.useState(),[ue,te]=o.default.useState([]),fe=()=>{he||(b(),me(!0)),y(),ie(E(K)),X(!0)},Ie=We=>{const pe=a(Q,We);pe?pe!==" "?Ee({message:pe,type:l.VALIDATE_TYPE.ERROR}):X(!1):(u({command:E(Z),when:E(V)||"",keybinding:E(K)},{command:E(Z),when:E(V)||"",keybinding:We}),X(!1),y())},Me=()=>{X(!1)},Be=We=>{We.stopPropagation(),We.preventDefault();const{key:pe}=_.KeyCode.createKeyCode(We.nativeEvent),re=We.nativeEvent.shiftKey||We.nativeEvent.metaKey||We.nativeEvent.altKey||We.nativeEvent.ctrlKey;pe&&_.Key.ENTER.keyCode===pe.keyCode&&!re?oe&&Ie(oe):ie(d(We.nativeEvent))},Pe=()=>{const We=()=>{Ee(void 0),oe&&ie(""),y()},pe=re=>{re.stopPropagation(),re.preventDefault()};return o.default.createElement("div",{className:m.default.keybinding_optional_actions,onMouseDown:pe},o.default.createElement("span",{className:(0,r.default)((0,_.getIcon)("close-circle-fill"),m.default.keybinding_optional_action),onClick:We,title:(0,_.localize)("keymaps.action.clear")}))},we=()=>o.default.createElement("div",{className:m.default.keybinding_key_input_placeholder},"\u23CE"),_e=We=>{const pe=re=>{re.preventDefault(),he||(b(),me(!0)),c({command:E(Z),when:E(V)||"",keybinding:oe})};if(We&&E(We)===f(_.KeybindingScope.USER))return o.default.createElement("span",{className:(0,r.default)((0,_.getIcon)("rollback"),m.default.keybinding_inline_action),onClick:pe,title:(0,_.localize)("keymaps.action.reset")})},Ne=()=>{if(!q&&ue.length>0)return o.default.createElement("div",{className:m.default.keybinding_detective_messages},o.default.createElement("div",{className:m.default.keybinding_detective_messages_label},(0,_.formatLocalize)("keymaps.keybinding.duplicate",ue.length)),o.default.createElement("ul",{className:m.default.keybinding_detective_messages_container},ue.map((We,pe)=>o.default.createElement("li",{className:m.default.keybinding_detective_messages_item,key:`${We.id}_${pe}`,title:`${We.command}-${We.when}`},o.default.createElement("div",{className:m.default.title},(0,_.localize)("keymaps.header.command.title"),": ",E(We.command)||"-"),o.default.createElement("div",{className:m.default.description},o.default.createElement("div",{style:{marginRight:4}},(0,_.localize)("keymaps.header.source.title"),": ",E(We.source)||"-"),o.default.createElement("div",null,(0,_.localize)("keymaps.header.when.title"),": ",E(We.when)||"\u2014"))))))},Te=()=>{if(Y)return o.default.createElement("div",{className:m.default.keybinding_key_input_container},Pe(),o.default.createElement(l.ValidateInput,{placeholder:(0,_.localize)("keymaps.edit.placeholder"),validateMessage:q,className:m.default.keybinding_key_input,size:"small",autoFocus:!0,name:_.NO_KEYBINDING_NAME,value:oe,onKeyDown:Be,onBlur:Me}),we(),Ne());{const We=K?.split(" ");return o.default.createElement("div",{className:m.default.keybinding_key,title:E(K),onDoubleClick:fe},o.default.createElement("div",{className:m.default.keybinding_action,onClick:fe},o.default.createElement("span",{className:(0,r.default)(K?(0,_.getIcon)("edit"):(0,_.getIcon)("plus"),m.default.keybinding_inline_action),title:K?(0,_.localize)("keymaps.action.edit"):(0,_.localize)("keymaps.action.add")}),_e(H)),We&&We[0]?We.map((pe,re)=>{const ge=pe.split("+");return o.default.createElement("div",{className:m.default.keybinding_key_block,key:`${pe}_${re}`},ge.map((De,Ae)=>o.default.createElement("div",{className:m.default.keybinding_key_item,key:`${De}_${Ae}`,dangerouslySetInnerHTML:{__html:De||""}})))}):"\u2014")}};return(0,o.useEffect)(()=>{q&&Ee(void 0),te(oe&&Y?h(Q,oe):[])},[oe]),o.default.createElement("div",{className:(0,r.default)(m.default.keybinding_list_item,G%2===1&&m.default.odd)},o.default.createElement("div",{className:(0,r.default)(m.default.keybinding_list_item_box,m.default.keybinding_command)},o.default.createElement("div",{className:m.default.command_name,title:E($),dangerouslySetInnerHTML:{__html:$}}),o.default.createElement("div",{className:(0,r.default)(m.default.limit_warp,m.default.command_id),title:E(Z),dangerouslySetInnerHTML:{__html:(0,_.formatLocalize)("keymaps.commandId.title",Z)}})),o.default.createElement("div",{className:(0,r.default)(m.default.keybinding_list_item_box)},Te()),o.default.createElement("div",{className:m.default.keybinding_list_item_box},o.default.createElement("div",{className:m.default.limit_warp,title:E(V||"\u2014"),dangerouslySetInnerHTML:{__html:V||"\u2014"}})),o.default.createElement("div",{className:m.default.keybinding_list_item_box},o.default.createElement("div",{title:E(H),dangerouslySetInnerHTML:{__html:H||""}})))},M=()=>{const Q=()=>{I(!D)};return o.default.createElement("div",{className:m.default.search_inline_action},o.default.createElement("span",{className:(0,r.default)((0,_.getIcon)("keyboard"),m.default.search_inline_action_icon,D&&m.default.active),onClick:Q}))},k=(0,o.useCallback)(Q=>{T(Q),g(Q)},[w]),F=Q=>{if(!D){const G=Q.target&&Q.target.value?Q.target.value.toLocaleLowerCase():"";k(G)}},L=Q=>{if(D){Q.stopPropagation(),Q.preventDefault();const{key:G}=_.KeyCode.createKeyCode(Q.nativeEvent);if(G&&_.Key.ENTER.keyCode===G.keyCode)return;k(d(Q.nativeEvent))}},B=()=>{w&&(T(""),g("")),y()},U=()=>o.default.createElement("div",{className:m.default.keybinding_optional_actions},o.default.createElement("span",{className:(0,r.default)((0,_.getIcon)("close-circle-fill"),m.default.keybinding_optional_action),onClick:B,title:(0,_.localize)("keymaps.action.reset")})),W=()=>o.default.createElement("div",{className:m.default.search_container},o.default.createElement(l.Input,{className:m.default.search_input,placeholder:(0,_.localize)(D?"keymaps.search.keyboard.placeholder":"keymaps.search.placeholder"),type:"text",value:w,name:_.NO_KEYBINDING_NAME,onChange:F,onKeyDown:L,addonBefore:M()}),U()),j=(0,o.useMemo)(()=>{const Q=[{title:(0,_.localize)("keymaps.header.command.title"),classname:m.default.keybinding_header_item},{title:(0,_.localize)("keymaps.header.keybinding.title"),classname:m.default.keybinding_header_item},{title:(0,_.localize)("keymaps.header.when.title"),classname:m.default.keybinding_header_item},{title:(0,_.localize)("keymaps.header.source.title"),classname:m.default.keybinding_header_item}];return o.default.createElement("div",{className:m.default.keybinding_header},Q.map((G,Z)=>o.default.createElement("div",{className:G.classname,key:`${G.title}_${Z}`},G.title)))},[]);return(0,o.useEffect)(()=>{const Q=A(G=>{P(G)});return S(),()=>{Q.dispose()}},[]),o.default.createElement("div",{className:m.default.keybinding_container},o.default.createElement("div",{className:m.default.keybinding_searchbar},W()),o.default.createElement("div",{className:m.default.keybinding_body},j,o.default.createElement("div",{className:m.default.keybinding_list},o.default.createElement(l.RecycleList,{itemHeight:40,data:R,template:O,className:m.default.keybinding_list_container}))))};t.KeymapsView=p},79312:(x,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.KEYMAPS_FILE_NAME=t.KEYMAPS_SCHEME=void 0,t.KEYMAPS_SCHEME="keymaps",t.KEYMAPS_FILE_NAME="keymaps.json"},25067:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=e(85608);n.__exportStar(e(79312),t),n.__exportStar(e(88811),t)},88811:(x,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IKeymapService=void 0,t.IKeymapService=Symbol("IKeymapService")},83507:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LogModule=t.LogServiceClient=void 0;const n=e(85608),r=e(76003),o=e(41869),l=e(47548),_=e(49187);n.__exportStar(e(47548),t);var v=e(1700);Object.defineProperty(t,"LogServiceClient",{enumerable:!0,get:function(){return v.LogServiceClient}});let m=class extends o.BrowserModule{constructor(){super(...arguments),this.providers=[{token:l.ILoggerManagerClient,useClass:_.LoggerManagerClient}],this.backServices=[{servicePath:l.LogServiceForClientPath,clientToken:l.ILoggerManagerClient}]}};t.LogModule=m,t.LogModule=m=n.__decorate([(0,r.Injectable)()],m)},49187:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LoggerManagerClient=void 0;const n=e(85608),r=e(76003),o=e(43718),l=e(47548),_=e(1700);let v=class{constructor(){this.logLevelChangeEmitter=new o.Emitter}getLogger(p,s){const g=new _.LogServiceClient(p);return g.setup(this.logServiceForClient,s),g}getBrowserLogger(p){return new _.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)}};t.LoggerManagerClient=v,n.__decorate([(0,r.Autowired)(l.LogServiceForClientPath),n.__metadata("design:type",Object)],v.prototype,"logServiceForClient",void 0),t.LoggerManagerClient=v=n.__decorate([(0,r.Injectable)()],v)},1700:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LogServiceClient=void 0;const n=e(43718),r=e(47548);class o{constructor(_){this.level=r.LogLevel.Verbose,this.ready=new n.Deferred,this.namespace=_,this.debugLog=new r.DebugLog(_)}async setup(_,v){this.logServiceForClient=_,this.pid=v;const m=await this.logServiceForClient.getGlobalLogLevel();this.level=m,this.ready.resolve()}async getLevel(){return this.logServiceForClient?await this.logServiceForClient.getLevel(this.namespace):this.level}async setLevel(_){this.level=_,this.logServiceForClient&&await this.logServiceForClient.setLevel(this.namespace,_)}async verbose(..._){this.debugLog.verbose(..._),this.logServiceForClient&&await this.logServiceForClient.verbose(this.namespace,(0,r.format)(_),this.pid)}async debug(..._){this.debugLog.debug(..._),this.logServiceForClient&&(await this.ready.promise,!(this.level>r.LogLevel.Debug)&&await this.logServiceForClient.debug(this.namespace,(0,r.format)(_),this.pid))}async log(..._){this.debugLog.log(..._),this.logServiceForClient&&(await this.ready.promise,!(this.level>r.LogLevel.Info)&&await this.logServiceForClient.log(this.namespace,(0,r.format)(_),this.pid))}async warn(..._){this.debugLog.warn(..._),this.logServiceForClient&&(await this.ready.promise,!(this.level>r.LogLevel.Warning)&&await this.logServiceForClient.warn(this.namespace,(0,r.format)(_),this.pid))}async error(..._){this.debugLog.error(..._),this.logServiceForClient&&(await this.ready.promise,!(this.level>r.LogLevel.Error)&&await this.logServiceForClient.error(this.namespace,(0,r.format)(_),this.pid))}async critical(..._){this.debugLog.error(..._),this.logServiceForClient&&(await this.ready.promise,!(this.level>r.LogLevel.Critical)&&await this.logServiceForClient.critical(this.namespace,(0,r.format)(_),this.pid))}async dispose(){this.debugLog.destroy(),this.logServiceForClient&&await this.logServiceForClient.disposeLogger(this.namespace)}}t.LogServiceClient=o},47548:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=e(85608);n.__exportStar(e(4892),t),n.__exportStar(e(46196),t)},46196:(x,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ILogServiceForClient=void 0,t.format=e,t.ILogServiceForClient=Symbol("LogServiceForClient");function e(n){let r="";for(let o=0;o<n.length;o++){let l=n[o];if(l instanceof Error){const _=Array.prototype.slice.call(arguments);_[0]=l.stack,l=e(_)}else if(typeof l=="object")try{l=JSON.stringify(l)}catch{}else if(typeof l=="symbol")try{l=l.toString()}catch{}r+=(o>0?" ":"")+l}return r}},73344:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),e(85608).__exportStar(e(47548),t)},9522:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AccordionServiceFactory=t.AccordionService=void 0;const n=e(85608),r=n.__importDefault(e(12784)),o=n.__importDefault(e(46343)),l=e(76003),_=e(41869),v=e(81878),m=e(71707),p=e(95416),s=e(93899),g=e(68969),a=e(28423),h=e(17793);let u=class extends _.WithEventBus{get views(){return this.viewsObservable.get()}get state(){return this.stateObservable.get()}set alignment(E){this._alignment!==E&&(this._alignment=E,this.doUpdateResize())}constructor(E,f){super(),this.containerId=E,this.noRestore=f,this.forceRevealContextKeys=new Map,this.viewWhenContextkeys=new Set,this.appendedViewSet=new Set,this.viewsWithContextKey=new Set,this.viewsObservable=(0,a.observableValue)(this,[]),this.stateObservable=(0,a.observableValue)(this,{}),this.visibleViews=(0,a.derived)(this,d=>{const y=this.viewsObservable.read(d);return this.stateObservable.read(d),y.filter(b=>!this.getViewState(b.id).hidden)}),this.rendered=!1,this.menuId=`${s.MenuId.AccordionContext}/${this.containerId}`,this.toDispose=new Map,this.didChangeViewTitleEmitter=this.registerDispose(new _.Emitter),this.onDidChangeViewTitle=this.didChangeViewTitleEmitter.event,this.beforeAppendViewEmitter=this.registerDispose(new _.Emitter),this.onBeforeAppendViewEvent=this.beforeAppendViewEmitter.event,this.afterAppendViewEmitter=this.registerDispose(new _.Emitter),this.onAfterAppendViewEvent=this.afterAppendViewEmitter.event,this.afterDisposeViewEmitter=this.registerDispose(new _.Emitter),this.onAfterDisposeViewEvent=this.afterDisposeViewEmitter.event,this._alignment="vertical",this.doUpdateResize=(0,r.default)(()=>{var d,y;let b;if(Object.keys(this.state).forEach(A=>{this.state[A].hidden||this.state[A].collapsed||(b?(this.state[A].size||0)>(this.state[b].size||0)&&(b=A):b=A)}),b&&this.splitPanelService.isVisible&&this.expandedViews.length>1&&!((d=this.splitPanelService.rootNode)===null||d===void 0)&&d.clientHeight){const A=((y=this.splitPanelService.rootNode)===null||y===void 0?void 0:y.clientHeight)-this.getPanelFullHeight();if(A){const S=this.state;S[b].size+=A,(0,a.transaction)(D=>{this.stateObservable.set({...S},D)}),this.toggleOpen(b,!1)}}},16),this.storeState=()=>{this.noRestore||!this.rendered||this.layoutState.setState(p.LAYOUT_STATE.getContainerSpace(this.containerId),this.state)},this.handleSectionClick=(d,y,b)=>{this.doToggleOpen(d,y,b)},this.handleContextMenu=(d,y)=>{d.preventDefault();const b=this.ctxMenuService.createMenu({id:this.menuId,config:{args:[{viewId:y}]},contextKeyService:y?this.viewContextKeyRegistry.getContextKeyService(y):void 0}),A=b.getGroupedMenuNodes();b.dispose(),this.contextMenuRenderer.show({menuNodes:A[1],anchor:{x:d.clientX,y:d.clientY}})},this.addDispose((0,a.recomputeInitiallyAndOnChange)(this.visibleViews)),this.splitPanelService=this.splitPanelManager.getService(E),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,_.localize)("layout.view.hide","Hide")},group:"0_global",when:"triggerWithSection == true"}),this.viewContextKeyRegistry.afterContextKeyServiceRegistered(this.containerId,d=>{this.topViewKey=d.createKey("view",E),setTimeout(()=>{this.popViewKeyIfOnlyOneViewVisible()})}),this.addDispose(_.Event.debounce(this.contextKeyService.onDidChangeContext,(d,y)=>d||y.payload.affectsSome(this.viewWhenContextkeys),50)(d=>d&&this.handleContextKeyChange(),this)),this.splitPanelService.whenReady.then(()=>{this.listenWindowResize()})}updateViewTitle(E,f){const d=this.views.find(y=>y.id===E);d?(d.name=f,this.didChangeViewTitleEmitter.fire({id:E,title:f})):this.logger.error(`No target view \`${E}\` found, unable to update accordion title`)}updateViewDesciption(E,f){const d=this.views.find(y=>y.id===E);d?(d.description=f,this.didChangeViewTitleEmitter.fire({id:E,description:f})):this.logger.error(`No target view \`${E}\` found, unable to update accordion description`)}updateViewMessage(E,f){const d=this.views.find(y=>y.id===E);d?(d.message=f,this.didChangeViewTitleEmitter.fire({id:E,message:f})):this.logger.error(`No target view \`${E}\` found, unable to update accordion message`)}updateViewBadge(E,f){const d=this.views.find(y=>y.id===E);d?(d.badge=f,this.didChangeViewTitleEmitter.fire({id:E,badge:f})):this.logger.error(`No target view \`${E}\` found, unable to update accordion message`)}tryUpdateResize(){this.doUpdateResize()}restoreState(){if(this.noRestore)return;const E={};this.visibleViews.get().forEach(d=>E[d.id]={collapsed:!1,hidden:!1});const f=this.layoutState.getState(p.LAYOUT_STATE.getContainerSpace(this.containerId),E);(0,o.default)(f,E)||(0,a.transaction)(d=>{this.stateObservable.set({...f},d)}),this.popViewKeyIfOnlyOneViewVisible(),this.splitPanelService.whenReady.then(()=>{this.restoreSize(),this.rendered=!0})}restoreSize(){var E;let f=((E=this.splitPanelService.rootNode)===null||E===void 0?void 0:E.clientHeight)||0,d;if(this.visibleViews.get().forEach((y,b)=>{const A=this.state[y.id];A.collapsed?(this.setSize(b,0,!1,!0),f-=this.headerSize):!A.collapsed&&A.size&&(this.setSize(b,A.size,!1,!0),f-=A.size,d=b)}),d){const y=this.visibleViews.get()[d];this.setSize(d,this.state[y.id].size+f)}}initConfig(E){const{headerSize:f,minSize:d}=E;this.headerSize=f,this.minSize=d}registerContextService(E){let f=this.viewContextKeyRegistry.getContextKeyService(E);return f||(f=this.contextKeyService.createScoped(),f.createKey("view",E),this.viewContextKeyRegistry.registerContextKeyService(E,f)),f}getSectionToolbarMenu(E){const f=this.registerContextService(E),d=this.menuService.createMenu(s.MenuId.ViewTitle,f),y=this.views.find(b=>b.id===E);return y&&(y.titleMenu=d),d}updateView(E){(0,a.transaction)(f=>{const d=this.views;if(E.priority){const y=d.findIndex(b=>(b.priority||0)<(E.priority||0));d.splice(y===-1?d.length:y,0,E),this.viewsObservable.set([...d],f)}else this.viewsObservable.set([...d,E],f)})}appendView(E,f){if(this.appendedViewSet.has(E.id)&&!f)return;const d=new _.DisposableCollection;d.push(this.progressService.registerProgressIndicator(E.id));const y=this.views.findIndex(b=>b.id===E.id);if(y!==-1){(0,a.transaction)(b=>{const A=this.views;A[y]=Object.assign({},A[y],E),this.viewsObservable.set([...A],b)});return}if(E.when){this.viewsWithContextKey.add(E);const b=this.createRevealContextKey(E.id);if(this.fillKeysInWhenExpr(this.viewWhenContextkeys,E.when),!this.contextKeyService.match(E.when)&&!this.contextKeyService.match(b))return;this.appendedViewSet.add(E.id)}this.beforeAppendViewEmitter.fire(E.id),this.updateView(E),this.registerContextService(E.id),d.push(this.menuRegistry.registerMenuItem(this.menuId,{command:{id:this.registerVisibleToggleCommand(E.id,d),label:(E.name||E.id).toUpperCase()},group:"1_widgets"})),this.toDispose.set(E.id,d),this.popViewKeyIfOnlyOneViewVisible(),this.afterAppendViewEmitter.fire(E.id)}disposeView(E){const f=this.views.findIndex(y=>y.id===E);f>-1&&(0,a.transaction)(y=>{const b=this.views;b.splice(f,1),this.viewsObservable.set([...b],y)});const d=this.toDispose.get(E);d&&d.dispose(),this.appendedViewSet.delete(E),this.popViewKeyIfOnlyOneViewVisible(),this.afterDisposeViewEmitter.fire(E)}revealView(E){const f=this.forceRevealContextKeys.get(E);f&&f.key.set(!0)}disposeAll(){(0,a.transaction)(E=>{this.viewsObservable.set([],E)}),this.toDispose.forEach(E=>{E.dispose()})}onResize(E){if(E.payload.slotLocation&&this.state[E.payload.slotLocation]){const f=E.payload.slotLocation;_.fastdom.measureAtNextFrame(()=>{const d=document.getElementById(f);if(d){const y=this.state;y[f].size=d.clientHeight,(0,a.transaction)(b=>{this.stateObservable.set({...y},b)}),this.storeState()}})}}getPanelFullHeight(E){return Object.keys(this.state).filter(f=>this.views.find(d=>d.id===f)&&f!==E).reduce((f,d)=>f+(this.state[d].collapsed?this.headerSize:this.state[d].hidden?0:this.state[d].size),0)}listenWindowResize(){window.addEventListener("resize",this.doUpdateResize),this.addDispose({dispose:()=>window.removeEventListener("resize",this.doUpdateResize)})}createRevealContextKey(E){const f=`forceShow.${E}`;return this.forceRevealContextKeys.set(E,{when:`${f} == true`,key:this.contextKeyService.createKey(f,!1)}),this.viewWhenContextkeys.add(f),`${f} == true`}registerGlobalToggleCommand(){const E=`view-container.hide.${this.containerId}`;return this.commandRegistry.registerCommand({id:E},{execute:({viewId:f})=>{this.doToggleView(f)},isEnabled:()=>this.visibleViews.get().length>1}),E}registerVisibleToggleCommand(E,f){const d=`view-container.hide.${E}`;return f.push(this.commandRegistry.registerCommand({id:d},{execute:({forceShow:y}={})=>{this.doToggleView(E,y)},isToggled:()=>!this.getViewState(E).hidden,isEnabled:()=>this.getViewState(E).hidden||this.visibleViews.get().length>1})),d}doToggleView(E,f){const d=this.getViewState(E);let y;f===void 0?y=!d.hidden:y=!f,d.hidden=y,this.updateViewState(E,d),this.popViewKeyIfOnlyOneViewVisible(),this.storeState()}popViewKeyIfOnlyOneViewVisible(){if(!this.topViewKey)return;const E=this.visibleViews.get();E.length===1?this.topViewKey.set(E[0].id):this.topViewKey.reset()}toggleViewVisibility(E,f){this.doToggleView(E,f)}get expandedViews(){return this.views.filter(E=>{const f=this.state[E.id];return!f||f&&!f.hidden&&!f.collapsed})}toggleOpen(E,f){const d=this.visibleViews.get().findIndex(y=>y.id===E);d>-1&&this.doToggleOpen(E,f,d,!0)}getViewState(E){let f=this.state[E];const d=this.views.find(y=>y.id===E);return f||(this.updateViewState(E,{collapsed:d?.collapsed||!1,hidden:d?.hidden||!1}),f=this.state[E]),f}updateViewState(E,f){const d=this.state;d[E]=f,(0,a.transaction)(y=>{this.stateObservable.set({...d},y)})}doToggleOpen(E,f,d,y){const b=this.getViewState(E);this.updateViewState(E,{...b,collapsed:f});const A=this._alignment==="horizontal";let S;if(f)S=this.setSizeByAlignment(d,0,!1,y,A);else{const D=this.expandedViews.length===1?this.getAvailableSizeByAlignment(A):b.size||this.minSize;S=this.setSizeByAlignment(d,D,!1,y,A)}this.adjustAdjacentViews(d,S,y,A),this.eventBus.fire(new h.ViewCollapseChangedEvent({viewId:E,collapsed:f}))}setSizeByAlignment(E,f,d,y,b){return b?this.setSizeHorizontal(E,f,d,y):this.setSize(E,f,d,y)}getAvailableSizeByAlignment(E){return E?this.getAvailableSizeHorizontal():this.getAvailableSize()}adjustAdjacentViews(E,f,d,y){const b=this.visibleViews.get();for(let A=b.length-1;A>E;A--)this.getViewState(b[A].id).collapsed!==!0?f=this.setSizeByAlignment(A,f,!0,d,y):this.setSizeByAlignment(A,0,!1,d,y);for(let A=E-1;A>=0;A--)(this.state[b[A].id]||{}).collapsed!==!0?f=this.setSizeByAlignment(A,f,!0,d,y):this.setSizeByAlignment(A,0,!1,d,y)}setSize(E,f,d,y){var b;const A=this.visibleViews.get()[E],S=(b=this.splitPanelService.rootNode)===null||b===void 0?void 0:b.clientHeight,D=this.splitPanelService.panels[E];if(!D)return 0;y||D.classList.add("resize-ease"),!f&&!d?(f=this.headerSize,D.classList.add(v.RESIZE_LOCK)):D.classList.remove(v.RESIZE_LOCK);const I=D.clientHeight,w=this.getViewState(A.id);let T=f;if(d&&(T=Math.max(I-f,this.minSize)),E===this.expandedViews.length-1&&(0,_.isDefined)(S))if(T+E*this.minSize>S)T-=T+E*this.minSize-S;else{const R=this.getPanelFullHeight(A.id);T+R<S&&(T+=S-(T+R))}if(this.rendered){let R;f===this.headerSize?R=I:R=T,R!==this.headerSize&&(w.size=R)}return this.storeState(),w.nextSize=T,y||setTimeout(()=>{D.classList.remove("resize-ease")},200),d?T-(I-f):f-I}getAvailableSize(){var E;const f=(E=this.splitPanelService.rootNode)===null||E===void 0?void 0:E.clientHeight;return f?f-(this.visibleViews.get().length-1)*this.headerSize:0}setSizeHorizontal(E,f,d,y){var b;const A=this.visibleViews.get()[E],S=(b=this.splitPanelService.rootNode)===null||b===void 0?void 0:b.clientWidth,D=this.splitPanelService.panels[E];if(!D)return 0;y||D.classList.add("resize-ease-horizontal"),!f&&!d?(f=this.headerSize,D.classList.add(v.RESIZE_LOCK)):D.classList.remove(v.RESIZE_LOCK);const I=D.clientWidth,w=this.getViewState(A.id);let T=f;if(d&&(T=Math.max(I-f,this.minSize)),E===this.expandedViews.length-1&&(0,_.isDefined)(S))if(T+E*this.minSize>S)T-=T+E*this.minSize-S;else{const R=this.getPanelFullWidthHorizontal(A.id);T+R<S&&(T+=S-(T+R))}if(this.rendered){let R;f===this.headerSize?R=I:R=T,R!==this.headerSize&&(w.size=R)}return this.storeState(),w.nextSize=T,y||setTimeout(()=>{D.classList.remove("resize-ease-horizontal")},200),d?T-(I-f):f-I}getAvailableSizeHorizontal(){var E;const f=(E=this.splitPanelService.rootNode)===null||E===void 0?void 0:E.clientWidth;return f?f-(this.visibleViews.get().length-1)*this.headerSize:0}getPanelFullWidthHorizontal(E){return Object.keys(this.state).filter(f=>this.views.find(d=>d.id===f)&&f!==E).reduce((f,d)=>f+(this.state[d].collapsed?this.headerSize:this.state[d].hidden?0:this.state[d].size),0)}handleContextKeyChange(){Array.from(this.viewsWithContextKey.values()).forEach(E=>{this.contextKeyService.match(E.when)||this.contextKeyService.match(this.forceRevealContextKeys.get(E.id).when)?this.appendView(E):this.disposeView(E.id)})}fillKeysInWhenExpr(E,f){this.contextKeyService.getKeysInWhen(f).forEach(y=>{E.add(y)})}};t.AccordionService=u,n.__decorate([(0,l.Autowired)(),n.__metadata("design:type",m.SplitPanelManager)],u.prototype,"splitPanelManager",void 0),n.__decorate([(0,l.Autowired)(s.AbstractMenuService),n.__metadata("design:type",s.AbstractMenuService)],u.prototype,"menuService",void 0),n.__decorate([(0,l.Autowired)(s.AbstractContextMenuService),n.__metadata("design:type",s.AbstractContextMenuService)],u.prototype,"ctxMenuService",void 0),n.__decorate([(0,l.Autowired)(s.IMenuRegistry),n.__metadata("design:type",s.IMenuRegistry)],u.prototype,"menuRegistry",void 0),n.__decorate([(0,l.Autowired)(_.CommandRegistry),n.__metadata("design:type",Object)],u.prototype,"commandRegistry",void 0),n.__decorate([(0,l.Autowired)(s.ICtxMenuRenderer),n.__metadata("design:type",s.ICtxMenuRenderer)],u.prototype,"contextMenuRenderer",void 0),n.__decorate([(0,l.Autowired)(),n.__metadata("design:type",_.ViewContextKeyRegistry)],u.prototype,"viewContextKeyRegistry",void 0),n.__decorate([(0,l.Autowired)(_.IContextKeyService),n.__metadata("design:type",Object)],u.prototype,"contextKeyService",void 0),n.__decorate([(0,l.Autowired)(p.LayoutState),n.__metadata("design:type",p.LayoutState)],u.prototype,"layoutState",void 0),n.__decorate([(0,l.Autowired)(g.IProgressService),n.__metadata("design:type",Object)],u.prototype,"progressService",void 0),n.__decorate([(0,l.Autowired)(_.ILogger),n.__metadata("design:type",Object)],u.prototype,"logger",void 0),n.__decorate([(0,_.OnEvent)(_.ResizeEvent),n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[_.ResizeEvent]),n.__metadata("design:returntype",void 0)],u.prototype,"onResize",null),t.AccordionService=u=n.__decorate([(0,l.Injectable)({multiple:!0}),n.__metadata("design:paramtypes",[String,Boolean])],u),t.AccordionServiceFactory=Symbol("AccordionServiceFactory")},70936:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Panel=t.AccordionContainer=void 0;const n=e(85608),r=n.__importDefault(e(53373)),o=n.__importStar(e(14041)),l=e(41869),_=e(81878),v=e(1149),m=e(43718),p=e(9522),s=e(95867),g=({alignment:h="vertical",views:u,containerId:c,headerSize:E=24,minSize:f=120,className:d,noRestore:y,style:b})=>{const A=(0,l.useInjectable)(v.LayoutViewSizeConfig),S=(0,l.useInjectable)(p.AccordionServiceFactory)(c,y);S.alignment=h;const D=(0,l.useAutorun)(S.visibleViews);(0,l.useAutorun)(S.stateObservable);const I=(0,o.useMemo)(()=>E||A.accordionHeaderSizeHeight,[E]);return o.default.useEffect(()=>{if(u.length)for(const w of u)S.appendView(w)},[u]),o.default.useEffect(()=>{S.initConfig({headerSize:I,minSize:f})},[]),o.default.createElement(_.SplitPanel,{className:(0,r.default)(d,{horizontal:h==="horizontal"}),style:b,headerSize:E,dynamicTarget:!0,id:c,resizeKeep:!1,direction:h==="horizontal"?"left-to-right":"top-to-bottom"},D.map((w,T)=>{const R=S.getViewState(w.id),P=w.titleMenu||S.getSectionToolbarMenu(w.id),{collapsed:O,nextSize:M}=R;return o.default.createElement(s.AccordionSection,{noHeader:D.length===1,onItemClick:()=>{S.handleSectionClick(w.id,!O,T)},onContextMenuHandler:S.handleContextMenu,alignment:h,header:w.name&&(0,m.replaceLocalizePlaceholder)(w.name)||w.id,viewId:w.id,key:w.id,message:w.message,description:w.description,badge:w.badge,title:w.name,expanded:!O,accordionService:S,index:T,headerSize:E,minSize:E,initialProps:w.initialProps,titleMenu:P,titleMenuContext:w.titleMenuContext,savedSize:O?E:M,flex:w.weight||1},w.component)}))};t.AccordionContainer=g,t.AccordionContainer.displayName="AccordionContainer";const a=({children:h})=>o.default.createElement("div",null,h);t.Panel=a,t.Panel.displayName="Panel"},95867:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AccordionSection=void 0;const n=e(85608),r=n.__importDefault(e(53373)),o=n.__importDefault(e(14041)),l=e(41869),_=e(25918),v=e(93899),m=e(68969),p=e(68974),s=e(69589),g=e(52416),a=n.__importDefault(e(81388)),h={tabIndex:0},u=({header:c,description:E,message:f,headerClass:d,onItemClick:y,noHeader:b,children:A,badge:S,headerSize:D,viewId:I,initialProps:w,titleMenu:T,titleMenuContext:R,expanded:P,accordionService:O,onContextMenuHandler:M,alignment:k})=>{const F=(0,l.useInjectable)(g.IIconService),L=(0,l.useDesignStyles)(a.default.actions_wrap,"actions_wrap"),B=(0,l.useDesignStyles)(a.default.kt_split_panel,"kt_split_panel"),U=(0,l.useDesignStyles)(a.default.kt_split_panel_header,"kt_split_panel_header"),W=(0,l.useDesignStyles)(a.default.kt_split_panel_body,"kt_split_panel_body"),j=(0,l.useDesignStyles)(a.default.section_badge,"section_badge"),Q=o.default.useRef(null),[G,Z]=o.default.useState({header:c,description:E,message:f,badge:S});o.default.useEffect(()=>{const ie=O.onDidChangeViewTitle(({id:he,title:me,description:q,message:Ee,badge:ue})=>{let te=!1;const fe={...G};I===he&&me&&me!==G.header&&(fe.header=me,te=!0),I===he&&ue!==G.badge&&(fe.badge=ue,te=!0),I===he&&q&&q!==G.description&&(fe.description=q,te=!0),I===he&&Ee&&Ee!==G.message&&(fe.message=Ee,te=!0),te&&Z(fe)});return()=>{ie.dispose()}},[]);const $=o.default.useCallback(()=>{y()},[y]),V=o.default.useMemo(()=>({overflow:P?"auto":"hidden"}),[P]),H=(0,l.useViewState)(I,Q,!0),Y=(0,l.useInjectable)(m.IProgressService).getIndicator(I),X=A,oe=o.default.useMemo(()=>P?`${D}px`:k==="horizontal"?"100%":`${D}px`,[P,D,k]);return o.default.createElement("div",{className:(0,r.default)(B,{horizontal:k==="horizontal"}),"data-view-id":I,draggable:!1},!b&&o.default.createElement("div",{...h,className:(0,r.default)(U,d),onClick:$,onContextMenu:ie=>M(ie,I),style:{height:oe,lineHeight:oe}},o.default.createElement("div",{className:a.default.label_wrap},o.default.createElement("i",{className:(0,r.default)((0,l.getIcon)("arrow-down"),a.default.arrow_icon,P?"":a.default.kt_mod_collapsed)}),o.default.createElement("div",{className:a.default.section_label,style:{lineHeight:D+"px"}},G.header),G.description&&o.default.createElement("div",{className:a.default.section_description,style:{lineHeight:D+"px"}},typeof G.description=="string"?(0,s.transformLabelWithCodicon)(G.description,{},F.fromString.bind(F)):G.description),G.badge&&o.default.createElement("div",{className:j},typeof G.badge=="string"?G.badge:G.badge.value)),P&&T&&o.default.createElement("div",{className:L},(0,v.isIMenu)(T)?o.default.createElement(_.InlineActionBar,{menus:T,context:R}):o.default.createElement(_.InlineMenuBar,{menus:T,context:R}))),o.default.createElement("div",{className:(0,r.default)([W,{[a.default.hide]:!P}]),style:V,ref:Q},o.default.createElement(p.ProgressBar,{className:a.default.progressBar,progressModel:Y?.progressModel}),o.default.createElement(l.ErrorBoundary,null,G.message&&o.default.createElement("div",{className:a.default.kt_split_panel_message},G.message),o.default.createElement(X,{...w,viewState:{height:H.height-(G.message?22:0),width:H.width}}))))};t.AccordionSection=u},91527:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TitleBar=void 0;const n=e(85608),r=n.__importDefault(e(14041)),o=e(41869),l=e(752),_=n.__importDefault(e(81388));t.TitleBar=r.default.memo(v=>{const m=(0,o.useDesignStyles)(_.default.titlebar,"titlebar"),p=(0,o.useInjectable)(l.TabbarServiceFactory)(v.side),s=r.default.useCallback(a=>{v.containerId&&v.side&&p.handleDragStart(a,v.containerId)},[v.containerId,v.side,p]),g=r.default.useCallback(a=>{p.handleDragEnd(a)},[p]);return r.default.createElement("div",{className:m,style:{height:v.height}},!v.draggable&&r.default.createElement("h1",null,v.title),!!v.draggable&&r.default.createElement("h1",{draggable:!0,style:{cursor:"pointer"},onDragStart:s,onDragEnd:g},v.title),v.menubar||null)}),t.TitleBar.displayName="TitleBar"},75053:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RETRACT_PANEL_COMMAND=t.EXPAND_PANEL_COMMAND=t.IS_VISIBLE_PANEL_COMMAND=t.IS_VISIBLE_EXTEND_VIEW_COMMAND=t.IS_VISIBLE_VIEW_COMMAND=t.TOGGLE_PANEL_COMMAND=t.TOGGLE_EXTEND_VIEW_COMMAND=t.TOGGLE_VIEW_COMMAND=t.WORKBENCH_ACTION_CLOSEPANEL=t.WORKBENCH_ACTION_CLOSESIDECAR=t.RETRACT_BOTTOM_PANEL=t.EXPAND_BOTTOM_PANEL=t.IS_VISIBLE_RIGHT_PANEL_COMMAND=t.IS_VISIBLE_LEFT_PANEL_COMMAND=t.IS_VISIBLE_BOTTOM_PANEL_COMMAND=t.TOGGLE_BOTTOM_PANEL_COMMAND=t.TOGGLE_RIGHT_PANEL_COMMAND=t.TOGGLE_LEFT_PANEL_COMMAND=void 0;const n=e(41869);t.TOGGLE_LEFT_PANEL_COMMAND={id:"main-layout.left-panel.toggle",delegate:"main-layout.view.toggle"},t.TOGGLE_RIGHT_PANEL_COMMAND={id:"main-layout.right-panel.toggle",delegate:"main-layout.extend-view.toggle"},t.TOGGLE_BOTTOM_PANEL_COMMAND={id:"main-layout.bottom-panel.toggle",delegate:"main-layout.panel.toggle"},t.IS_VISIBLE_BOTTOM_PANEL_COMMAND={id:"main-layout.bottom-panel.is-visible",delegate:"main-layout.panel.is-visible"},t.IS_VISIBLE_LEFT_PANEL_COMMAND={id:"main-layout.left-panel.is-visible",delegate:"main-layout.view.is-visible"},t.IS_VISIBLE_RIGHT_PANEL_COMMAND={id:"main-layout.right-panel.is-visible",delegate:"main-layout.extend-view.is-visible"},t.EXPAND_BOTTOM_PANEL={id:"main-layout.bottom-panel.expand",delegate:"main-layout.panel.expand"},t.RETRACT_BOTTOM_PANEL={id:"main-layout.bottom-panel.retract",delegate:"main-layout.panel.retract"},t.WORKBENCH_ACTION_CLOSESIDECAR={id:"workbench.action.closeSidebar",label:"%main-layout.sidebar.hide%"},t.WORKBENCH_ACTION_CLOSEPANEL={id:"workbench.action.closePanel"},t.TOGGLE_VIEW_COMMAND={id:"main-layout.view.toggle",label:"%main-layout.view.toggle%"},t.TOGGLE_EXTEND_VIEW_COMMAND={id:"main-layout.extend-view.toggle",label:"%main-layout.extend-view.toggle%"},t.TOGGLE_PANEL_COMMAND={id:"main-layout.panel.toggle",iconClass:(0,n.getIcon)("minus"),label:"%main-layout.panel.toggle%"},t.IS_VISIBLE_VIEW_COMMAND={id:"main-layout.view.is-visible"},t.IS_VISIBLE_EXTEND_VIEW_COMMAND={id:"main-layout.extend-view.is-visible"},t.IS_VISIBLE_PANEL_COMMAND={id:"main-layout.panel.is-visible"},t.EXPAND_PANEL_COMMAND={id:"main-layout.panel.expand",label:"%layout.tabbar.expand%",iconClass:(0,n.getIcon)("expand")},t.RETRACT_PANEL_COMMAND={id:"main-layout.panel.retract",label:"%layout.tabbar.retract%",iconClass:(0,n.getIcon)("shrink")}},25072:(x,t,e)=>{"use strict";var n;n={value:!0},t.s=void 0;const r=e(41869),o=e(17793);t.s={[r.SlotLocation.top]:{modules:["@opensumi/ide-menu-bar"]},[r.SlotLocation.action]:{modules:["@opensumi/ide-toolbar-action"]},[r.SlotLocation.view]:{modules:[o.DROP_VIEW_CONTAINER,"@opensumi/ide-explorer","@opensumi/ide-search","@opensumi/ide-scm","@opensumi/ide-debug","@opensumi/ide-extension-manager","@opensumi/ide-notebook"]},[r.SlotLocation.extendView]:{modules:[o.DROP_EXTEND_VIEW_CONTAINER]},[r.SlotLocation.main]:{modules:["@opensumi/ide-editor"]},[r.SlotLocation.panel]:{modules:[o.DROP_PANEL_CONTAINER,"@opensumi/ide-terminal-next","@opensumi/ide-output","debug-console","@opensumi/ide-markers"]},[r.SlotLocation.statusBar]:{modules:["@opensumi/ide-status-bar"]},[r.SlotLocation.extra]:{modules:["breadcrumb-menu"]}}},45395:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PanelDropArea=t.ExtendViewDropArea=t.ViewDropArea=void 0;const n=e(85608),r=n.__importDefault(e(14041)),o=e(41869),l=e(17793),_=n.__importDefault(e(36623)),v=g=>{const{location:a}=g,h=(0,o.useInjectable)(l.IMainLayoutService),u=r.default.useCallback(c=>{var E;const f=(E=c.dataTransfer)===null||E===void 0?void 0:E.getData("containerId");h.moveContainerTo(f,a),h.hideDropArea()},[h,a]);return r.default.createElement("div",{className:_.default.drop_area,onDrop:u,onDragOver:c=>{c.preventDefault()}},(0,o.localize)("main-layout.drop-area.tip"))},m=()=>r.default.createElement(v,{location:o.SlotLocation.view});t.ViewDropArea=m;const p=()=>r.default.createElement(v,{location:o.SlotLocation.extendView});t.ExtendViewDropArea=p;const s=()=>r.default.createElement(v,{location:o.SlotLocation.panel});t.PanelDropArea=s},7480:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MainLayoutModule=void 0;const n=e(85608),r=e(76003),o=e(41869),l=e(17793),_=e(9522),v=e(22537),m=e(53576),p=e(752),s=e(58296);let g=class extends o.BrowserModule{constructor(){super(...arguments),this.providers=[m.MainLayoutModuleContribution,{token:l.IMainLayoutService,useClass:v.LayoutService},{token:l.IViewsRegistry,useClass:s.ViewsRegistry},{token:p.TabbarServiceFactory,useFactory:p.TabbarServiceFactoryFn},{token:_.AccordionServiceFactory,useFactory:h=>(u,c)=>h.get(l.IMainLayoutService).getAccordionService(u,c)}],this.contributionProvider=l.MainLayoutContribution}};t.MainLayoutModule=g,t.MainLayoutModule=g=n.__decorate([(0,r.Injectable)()],g)},5567:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AutoFocusedInput=void 0;const r=e(85608).__importStar(e(14041)),o=e(97267),l=e(48560),_=e(17793),v=({containerId:m,...p})=>{const s=(0,l.useInjectable)(_.IMainLayoutService),g=(0,r.useRef)(null),a=r.default.useCallback(()=>{g&&g.current&&queueMicrotask(()=>{var h;return(h=g.current)===null||h===void 0?void 0:h.focus()})},[g.current]);return(0,r.useEffect)(()=>{a();const h=s.getTabbarHandler(m),u=h?.onActivate(a);return()=>{u?.dispose()}},[s]),r.default.createElement(o.Input,{ref:g,...p})};t.AutoFocusedInput=v},22537:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LayoutService=void 0;const n=e(85608),r=n.__importDefault(e(12784)),o=e(76003),l=e(41869),_=e(81878),v=e(95416),m=e(93899),p=e(43718),s=e(28423),g=e(52416),a=e(17793),h=e(9522),u=e(752),c=e(58999),E={[l.SlotLocation.view]:{currentId:void 0,size:void 0},[l.SlotLocation.extendView]:{currentId:"",size:void 0},[l.SlotLocation.panel]:{currentId:void 0,size:void 0},containerLocations:{}};let f=class extends l.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,p.getDebugLogger)(),this.viewReady=new p.Deferred,this.restoreTabbarService=async y=>{this.state=(0,_.fixLayout)(this.layoutState.getState(v.LAYOUT_STATE.MAIN,E));const{currentId:b,size:A}=this.state[y.location]||{};if(y.prevSize=A,this.state.containerLocations){for(const[D,I]of Object.entries(this.state.containerLocations))if(I===y.location&&!this.isDropContainer(D)){const w=this.findTabbarServiceByContainerId(D);w&&w.location!==y.location?this.moveContainerTo(D,y.location):(delete this.state.containerLocations[D],this.layoutState.setState(v.LAYOUT_STATE.MAIN,this.state))}}const S=this.getDefaultContainer(y);this.restoreContainerId(y,b,S)},this.holdTabbarComponent=new Map,this.tabbarUpdateSet=new Set}didMount(){for(const[b,A]of this.pendingViewsMap.entries())A.forEach(({view:S,props:D})=>{this.collectViewComponent(S,b,D)});for(const b of this.contributions.getContributions())b.onDidRender&&b.onDidRender();const y=[];this.tabbarServices.forEach(b=>{l.slotRendererRegistry.isTabbar(b.location)&&b.containersMap.size>0&&y.push(b.viewReady.promise)}),Promise.all(y).then(()=>{this.viewReady.resolve()})}storeState(y,b){this.state[y.location]={currentId:b,size:y.prevSize},this.layoutState.setState(v.LAYOUT_STATE.MAIN,this.state)}onThemeChange(y){var b,A,S,D,I;const w=y.payload.theme;localStorage.setItem("theme",JSON.stringify({menuBarBackground:(b=w.getColor("kt.menubar.background"))===null||b===void 0?void 0:b.toString(),sideBarBackground:(A=w.getColor("sideBar.background"))===null||A===void 0?void 0:A.toString(),editorBackground:(S=w.getColor("editor.background"))===null||S===void 0?void 0:S.toString(),panelBackground:(D=w.getColor("panel.background"))===null||D===void 0?void 0:D.toString(),statusBarBackground:(I=w.getColor("statusBar.background"))===null||I===void 0?void 0:I.toString()}))}getDefaultContainer(y){var b,A,S,D;const I=this.appConfig.defaultPanels,w=I&&I[y.location];if(I&&w!==void 0){if(!w)return"";if(y.containersMap.has(w))return w;const T=this.componentRegistry.getComponentRegistryInfo(w);if(T&&((A=(b=this.appConfig.layoutConfig[y.location])===null||b===void 0?void 0:b.modules)===null||A===void 0?void 0:A.includes(w)))return T.options.containerId;this.logger.warn(`[defaultPanels] No \`${w}\` view found!`)}return(D=(S=y.visibleContainers[0])===null||S===void 0?void 0:S.options)===null||D===void 0?void 0:D.containerId}restoreContainerId(y,b,A){if((0,p.isUndefined)(b)){(0,p.isUndefined)(A)?y.updateNextContainerId():y.updateCurrentContainerId(A);return}if(b&&!this.isDropContainer(b)){if(y.containersMap.has(b)){y.updateCurrentContainerId(b);return}y.updateCurrentContainerId(A||""),y.updateNextContainerId(b);return}(b===""||this.isDropContainer(b))&&y.updateCurrentContainerId("")}findTabbarServiceByContainerId(y){let b;for(const A of this.tabbarServices.values())if(A.containersMap.has(y)){b=A;break}return b}moveContainerTo(y,b){var A;const S=this.findTabbarServiceByContainerId(y);if(!S){this.logger.error(`cannot find container: ${y}`);return}const D=S.getContainer(y);if(!D){this.logger.error(`cannot find container: ${y}`);return}if(((A=D.options)===null||A===void 0?void 0:A.draggable)===!1){this.logger.warn(`container: ${y} is not draggable`);return}const I=this.getTabbarService(b);S.removeContainer(y),(!S.visibleContainers.length||S.currentContainerId.get()===y)&&this.toggleSlot(S.location,!1),I.dynamicAddContainer(y,D);const w=this.injector.get(c.TabBarHandler,[y,this.getTabbarService(I.location)]);this.handleMap.set(y,w),this.state.containerLocations||(this.state.containerLocations={}),this.state.containerLocations[y]=b}showDropAreaForContainer(y){const b=this.findTabbarServiceByContainerId(y),A=this.tabbarServices.get(l.SlotLocation.panel),S=this.tabbarServices.get(l.SlotLocation.extendView),D=this.tabbarServices.get(l.SlotLocation.view);if(!b){this.logger.error(`cannot find container: ${y}`);return}const I={[l.SlotLocation.extendView]:[A,D],[l.SlotLocation.panel]:[S,D],[l.SlotLocation.view]:[A,S]},w={[l.SlotLocation.panel]:a.DROP_PANEL_CONTAINER,[l.SlotLocation.extendView]:a.DROP_EXTEND_VIEW_CONTAINER,[l.SlotLocation.view]:a.DROP_VIEW_CONTAINER};(0,s.transaction)(T=>{var R;(R=I[b?.location])===null||R===void 0||R.forEach(P=>{P?.updateCurrentContainerId(w[P?.location],T)})})}hideDropArea(){const y=this.tabbarServices.get(l.SlotLocation.panel),b=this.tabbarServices.get(l.SlotLocation.extendView),A=this.tabbarServices.get(l.SlotLocation.view);(0,s.transaction)(S=>{y?.currentContainerId.get()===a.DROP_PANEL_CONTAINER&&y.updateCurrentContainerId(y.previousContainerId||"",S),b?.currentContainerId.get()===a.DROP_EXTEND_VIEW_CONTAINER&&b.updateCurrentContainerId(b.previousContainerId||"",S),A?.currentContainerId.get()===a.DROP_VIEW_CONTAINER&&A.updateCurrentContainerId(A.previousContainerId||"",S)})}isVisible(y){return!!this.getTabbarService(y).currentContainerId.get()}isViewVisible(y){const b=this.getTabbarHandler(y);if(!b||!b.isActivated())return!1;const A=b.accordionService.getViewState(y);return!A.collapsed&&!A.hidden}toggleSlot(y,b,A){var S;const D=this.getTabbarService(y);if(!D){this.debug.error(`Unable to switch panels because no TabbarService corresponding to \`${y}\` was found.`);return}b===!0?D.updateCurrentContainerId(this.findNonDropContainerId(D)):b===!1?D.updateCurrentContainerId(""):D.updateCurrentContainerId(D.currentContainerId.get()?"":this.findNonDropContainerId(D)),D.currentContainerId.get()&&A&&((S=D.resizeHandle)===null||S===void 0||S.setSize(A))}isDropContainer(y){return[a.DROP_PANEL_CONTAINER,a.DROP_EXTEND_VIEW_CONTAINER,a.DROP_VIEW_CONTAINER].includes(y)}findNonDropContainerId(y){const b=y.currentContainerId.get();if(b&&!this.isDropContainer(b))return b;if(y.previousContainerId&&!this.isDropContainer(y.previousContainerId))return y.previousContainerId;for(const A of y.containersMap.keys())if(!this.isDropContainer(A))return A;return""}getTabbarService(y){const b=this.tabbarServices.get(y)||this.injector.get(u.TabbarService,[y]);if(!this.tabbarServices.get(y)){b.addDispose(b.onCurrentChange(({currentId:S})=>{if(this.storeState(b,S),this.eventBus.fire(new l.ExtensionActivateEvent({topic:"onView",data:S})),S&&a.SUPPORT_ACCORDION_LOCATION.has(b.location)){const D=this.getAccordionService(S);D?.tryUpdateResize(),D?.expandedViews.forEach(I=>{this.eventBus.fire(new l.ExtensionActivateEvent({topic:"onView",data:I.id}))})}})),b.viewReady.promise.then(()=>b.restoreState()).then(()=>this.restoreTabbarService(b)).catch(S=>{this.logger.error(`[TabbarService:${y}] restore state error`,S)});const A=(0,r.default)(()=>this.storeState(b,b.currentContainerId.get()),100);if(b.addDispose(b.onSizeChange(A)),y===l.SlotLocation.panel){const S=(0,r.default)(()=>void this.bottomExpanded,100);b.addDispose(b.onSizeChange(()=>S))}this.tabbarServices.set(y,b)}return b}getAllAccordionService(){return this.accordionServices}getAccordionService(y,b){let A=this.accordionServices.get(y);return A||(A=this.injector.get(h.AccordionService,[y,b]),this.accordionServices.set(y,A)),A}getTabbarHandler(y){let b=this.doGetTabbarHandler(y);if(!b){const A=this.viewToContainerMap.get(y);A?b=this.doGetTabbarHandler(A||""):this.debug.warn(`${y} view tabbar not found.`)}return b}getContainer(y){for(const b of this.tabbarServices.values()){const A=b.getContainer(y);if(A)return A}}getExtraTopMenu(){return this.contextmenuService.createMenu({id:m.MenuId.ActivityBarTopExtra})}getExtraMenu(){return this.contextmenuService.createMenu({id:m.MenuId.ActivityBarExtra})}doGetTabbarHandler(y){let b=this.handleMap.get(y);if(!b){let A;for(const S of this.tabbarServices.values())if(S.getContainer(y)){A=S.location;break}A&&(b=this.injector.get(c.TabBarHandler,[y,this.getTabbarService(A)]),this.handleMap.set(y,b))}return b}collectTabbarComponent(y,b,A,S){if(S&&this.debug.warn("collectTabbarComponent api warning: Please move react component into options.component!"),A=this.mapSideToLocation(A),b.hideIfEmpty&&!y.length&&!b.component){this.holdTabbarComponent.set(b.containerId,{views:y,options:b,side:A}),this.tabbarUpdateSet.has(b.containerId)&&this.tryUpdateTabbar(b.containerId);const I=this.getAccordionService(b.containerId);return I.addDispose(I.onBeforeAppendViewEvent(()=>{this.tryUpdateTabbar(b.containerId)})),I.addDispose(I.onAfterDisposeViewEvent(()=>{I.views.length===0&&(this.disposeContainer(b.containerId),this.holdTabbarComponent.set(b.containerId,{views:y,options:b,side:A}))})),b.containerId}return this.getTabbarService(A).registerContainer(b.containerId,{views:y,options:b}),y.forEach(I=>{this.viewToContainerMap.set(I.id,b.containerId)}),b.containerId}mapSideToLocation(y){switch(y){case"left":return l.SlotLocation.view;case"right":return l.SlotLocation.extendView;case"bottom":return l.SlotLocation.panel;default:return y}}getViewAccordionService(y){const b=this.viewToContainerMap.get(y);if(b)return this.getAccordionService(b)}collectViewComponent(y,b,A={},S){this.customViews.set(y.id,y),this.viewToContainerMap.set(y.id,b);const D=this.getAccordionService(b);return A&&(y.initialProps=A),D.appendView(y,S?.isReplace),D.views.length===1&&(this.tabbarUpdateSet.add(b),this.tryUpdateTabbar(b)),S?.fromExtension&&this.disposableMap.set(y.id,this.commandRegistry.registerCommand({id:`${y.id}.focus`},{execute:async()=>(await this.ensureViewReady(y.id),this.commandService.executeCommand(`workbench.view.extension.${b}`,{forceShow:!0}))})),b}ensureViewReady(y){const b=this.viewToContainerMap.get(y),A=new p.Deferred,S=this.getAccordionService(b);return S.visibleViews.get().find(D=>D.id===y)?A.resolve():S.addDispose(S.onAfterAppendViewEvent(D=>{D===y&&A.resolve()})),A.promise}tryUpdateTabbar(y){const b=this.holdTabbarComponent.get(y);b&&(this.getTabbarService(b.side).registerContainer(y,{views:b.views,options:b.options}),this.tabbarUpdateSet.delete(y),this.holdTabbarComponent.delete(y))}replaceViewComponent(y,b){const A=this.viewToContainerMap.get(y.id);if(!A){this.debug.warn(`The container corresponding to \`${y.id}\` was not found, please check the incoming parameters!`);return}const S=this.customViews.get(y.id);S&&(y=Object.assign(S,y)),this.collectViewComponent(y,A,b,{isReplace:!0})}disposeViewComponent(y){const b=this.disposableMap.get(y);b&&b.dispose();const A=this.viewToContainerMap.get(y);if(!A){this.debug.warn(`The container corresponding to \`${y}\` was not found, please check the incoming parameters!`);return}this.getAccordionService(A).disposeView(y)}revealView(y){const b=this.viewToContainerMap.get(y);if(!b){this.debug.warn(`The container corresponding to \`${y}\` was not found, please check the incoming parameters!`);return}this.getAccordionService(b).revealView(y)}disposeContainer(y){let b;for(const A of this.tabbarServices.values())if(A.getContainer(y)){b=A.location;break}b?this.getTabbarService(b).disposeContainer(y):this.debug.warn(`The Tabbar to the \`${y}\` was not found.`)}expandBottom(y){const b=this.getTabbarService(l.SlotLocation.panel);b.currentContainerId.get()||b.updateCurrentContainerId(b.currentContainerId.get()||b.previousContainerId||b.containersMap.keys().next().value),b.doExpand(y),this.contextKeyService.createKey("bottomFullExpanded",b.isExpanded)}get bottomExpanded(){const y=this.getTabbarService(l.SlotLocation.panel);return this.contextKeyService.createKey("bottomFullExpanded",y.isExpanded),y.isExpanded}};t.LayoutService=f,n.__decorate([(0,o.Autowired)(o.INJECTOR_TOKEN),n.__metadata("design:type",o.Injector)],f.prototype,"injector",void 0),n.__decorate([(0,o.Autowired)(a.MainLayoutContribution),n.__metadata("design:type",Object)],f.prototype,"contributions",void 0),n.__decorate([(0,o.Autowired)(m.IMenuRegistry),n.__metadata("design:type",m.IMenuRegistry)],f.prototype,"menus",void 0),n.__decorate([(0,o.Autowired)(l.CommandRegistry),n.__metadata("design:type",Object)],f.prototype,"commandRegistry",void 0),n.__decorate([(0,o.Autowired)(l.CommandService),n.__metadata("design:type",Object)],f.prototype,"commandService",void 0),n.__decorate([(0,o.Autowired)(),n.__metadata("design:type",v.LayoutState)],f.prototype,"layoutState",void 0),n.__decorate([(0,o.Autowired)(l.AppConfig),n.__metadata("design:type",Object)],f.prototype,"appConfig",void 0),n.__decorate([(0,o.Autowired)(l.IContextKeyService),n.__metadata("design:type",Object)],f.prototype,"contextKeyService",void 0),n.__decorate([(0,o.Autowired)(l.ComponentRegistry),n.__metadata("design:type",Object)],f.prototype,"componentRegistry",void 0),n.__decorate([(0,o.Autowired)(l.ILogger),n.__metadata("design:type",Object)],f.prototype,"logger",void 0),n.__decorate([(0,o.Autowired)(m.AbstractMenuService),n.__metadata("design:type",m.AbstractMenuService)],f.prototype,"menuService",void 0),n.__decorate([(0,o.Autowired)(m.AbstractContextMenuService),n.__metadata("design:type",m.AbstractContextMenuService)],f.prototype,"contextmenuService",void 0),n.__decorate([(0,l.OnEvent)(g.ThemeChangedEvent),n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[g.ThemeChangedEvent]),n.__metadata("design:returntype",void 0)],f.prototype,"onThemeChange",null),t.LayoutService=f=n.__decorate([(0,o.Injectable)()],f)},53576:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MainLayoutModuleContribution=void 0;const n=e(85608),r=e(76003),o=e(41869),l=e(30144),_=e(68456),v=e(95416),m=e(93899),p=e(43718),s=e(92323),g=e(17793),a=e(75053),h=e(45395),u=e(68988),c=e(19951);let E=class extends p.WithEventBus{async initialize(){await this.layoutState.initStorage();const d=this.contributionProvider.getContributions();for(const A of d)A.registerComponent&&A.registerComponent(this.componentRegistry);const y=this.rendererContributionProvider.getContributions();for(const A of y)A.registerRenderer&&A.registerRenderer(o.slotRendererRegistry);const b=this.toolBarContributionProvider.getContributions();for(const A of b)A.registerToolbarItems&&A.registerToolbarItems(this.toolBarRegistry)}registerComponent(d){d.register(g.DROP_EXTEND_VIEW_CONTAINER,[],{component:h.ExtendViewDropArea,hideTab:!0,containerId:g.DROP_EXTEND_VIEW_CONTAINER}),d.register(g.DROP_PANEL_CONTAINER,[],{component:h.PanelDropArea,hideTab:!0,containerId:g.DROP_PANEL_CONTAINER}),d.register(g.DROP_VIEW_CONTAINER,[],{component:h.ViewDropArea,hideTab:!0,containerId:g.DROP_VIEW_CONTAINER})}async onStart(){this.registerSideToggleKey()}async onDidStart(){this.mainLayoutService.didMount()}registerRenderer(d){d.registerSlotRenderer(o.SlotLocation.extendView,c.RightTabRenderer,{isLatter:!0,supportedActions:{accordion:!0}}),d.registerSlotRenderer(o.SlotLocation.view,c.LeftTabRenderer,{supportedActions:{accordion:!0}}),d.registerSlotRenderer(o.SlotLocation.panel,c.BottomTabRenderer,{isLatter:!0,supportedActions:{expand:!0,toggle:!0}})}registerCommands(d){d.registerCommand(a.TOGGLE_VIEW_COMMAND,{execute:(y,b)=>{this.mainLayoutService.toggleSlot(o.SlotLocation.view,y,b)}}),d.registerCommand(a.TOGGLE_EXTEND_VIEW_COMMAND,{execute:(y,b)=>{this.mainLayoutService.toggleSlot(o.SlotLocation.extendView,y,b)}}),d.registerCommand(a.TOGGLE_PANEL_COMMAND,{execute:(y,b)=>{this.mainLayoutService.toggleSlot(o.SlotLocation.panel,y,b)}}),d.registerCommand(a.IS_VISIBLE_VIEW_COMMAND,{execute:()=>this.mainLayoutService.isVisible(o.SlotLocation.view)}),d.registerCommand(a.IS_VISIBLE_EXTEND_VIEW_COMMAND,{execute:()=>this.mainLayoutService.isVisible(o.SlotLocation.extendView)}),d.registerCommand(a.IS_VISIBLE_PANEL_COMMAND,{execute:()=>this.mainLayoutService.isVisible(o.SlotLocation.panel)}),d.registerCommand(a.TOGGLE_LEFT_PANEL_COMMAND),d.registerCommand(a.TOGGLE_RIGHT_PANEL_COMMAND),d.registerCommand(a.TOGGLE_BOTTOM_PANEL_COMMAND),d.registerCommand(a.EXPAND_BOTTOM_PANEL),d.registerCommand(a.RETRACT_BOTTOM_PANEL),d.registerCommand(a.IS_VISIBLE_LEFT_PANEL_COMMAND),d.registerCommand(a.IS_VISIBLE_RIGHT_PANEL_COMMAND),d.registerCommand(a.IS_VISIBLE_BOTTOM_PANEL_COMMAND),d.registerCommand(a.WORKBENCH_ACTION_CLOSESIDECAR,{execute:()=>Promise.all([this.mainLayoutService.toggleSlot(o.SlotLocation.view,!1),this.mainLayoutService.toggleSlot(o.SlotLocation.extendView,!1)])}),d.registerCommand(a.WORKBENCH_ACTION_CLOSEPANEL,{execute:()=>{this.mainLayoutService.toggleSlot(o.SlotLocation.panel,!1)}}),d.registerCommand({id:"view.outward.right-panel.hide"},{execute:()=>{this.commandService.executeCommand("main-layout.right-panel.toggle",!1)}}),d.registerCommand({id:"view.outward.right-panel.show"},{execute:y=>{this.commandService.executeCommand("main-layout.right-panel.toggle",!0,y)}}),d.registerCommand({id:"view.outward.left-panel.hide"},{execute:()=>{this.commandService.executeCommand("main-layout.left-panel.toggle",!1)}}),d.registerCommand({id:"view.outward.left-panel.show"},{execute:y=>{this.commandService.executeCommand("main-layout.left-panel.toggle",!0,y)}}),d.registerCommand({id:o.LAYOUT_COMMANDS.MAXIMIZE_EDITOR.id},{execute:()=>{this.commandService.executeCommand(a.TOGGLE_RIGHT_PANEL_COMMAND.id,!1),this.commandService.executeCommand(a.TOGGLE_LEFT_PANEL_COMMAND.id,!1)}}),d.registerCommand(o.LAYOUT_COMMANDS.OPEN_VIEW,{execute:()=>{this.commandService.executeCommand(o.QUICK_OPEN_COMMANDS.OPEN_VIEW.id)}})}registerMenus(d){d.registerMenuItem(m.MenuId.ActivityBarExtra,{submenu:m.MenuId.SettingsIconMenu,iconClass:(0,o.getIcon)("setting"),label:(0,p.localize)("layout.tabbar.setting"),order:1,group:"navigation"}),Object.entries({[o.SlotLocation.view]:[l.EXPLORER_CONTAINER_ID,l.SEARCH_CONTAINER_ID,l.SCM_CONTAINER_ID,l.DEBUG_CONTAINER_ID,l.EXTENSION_CONTAINER_ID],[o.SlotLocation.panel]:[l.MARKER_CONTAINER_ID,l.OUTPUT_CONTAINER_ID,l.DEBUG_CONSOLE_CONTAINER_ID,l.TERMINAL_CONTAINER_ID]}).forEach(([y,b],A)=>{const S=this.mainLayoutService.getTabbarService(y);S.viewReady.promise.then(()=>{b.forEach(D=>{var I,w;const T=S.getContainer(D);T&&d.registerMenuItem(m.MenuId.MenubarViewMenu,{command:{id:`container.toggle.${D}`,label:(w=(I=T.options)===null||I===void 0?void 0:I.title)!==null&&w!==void 0?w:D},group:`${3+A}_${y}`})})})}),d.registerMenuItem(m.MenuId.MenubarViewMenu,{command:a.TOGGLE_VIEW_COMMAND,group:"5_panel"}),d.registerMenuItem(m.MenuId.MenubarViewMenu,{command:a.TOGGLE_EXTEND_VIEW_COMMAND,group:"5_panel"}),d.registerMenuItem(m.MenuId.MenubarViewMenu,{command:a.TOGGLE_PANEL_COMMAND,group:"5_panel"}),d.registerMenuItem(m.MenuId.MenubarViewMenu,{command:a.EXPAND_PANEL_COMMAND,group:"5_panel",when:"!bottomFullExpanded"}),d.registerMenuItem(m.MenuId.MenubarViewMenu,{command:a.RETRACT_PANEL_COMMAND,group:"5_panel",when:"bottomFullExpanded"}),d.registerMenuItem(m.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:a.TOGGLE_VIEW_COMMAND.id}),this.keybindingRegistry.registerKeybinding({keybinding:"ctrlcmd+alt+b",command:a.TOGGLE_EXTEND_VIEW_COMMAND.id}),this.keybindingRegistry.registerKeybinding({keybinding:"ctrlcmd+j",command:a.TOGGLE_PANEL_COMMAND.id}),this.keybindingRegistry.registerKeybinding({keybinding:"ctrlcmd+shift+j",command:a.EXPAND_PANEL_COMMAND.id,when:"!bottomFullExpanded"}),this.keybindingRegistry.registerKeybinding({keybinding:"ctrlcmd+shift+j",command:a.RETRACT_PANEL_COMMAND.id,when:"bottomFullExpanded"})}registerQuickOpenHandlers(d){d.registerHandler(this.quickOpenViewHandler,{title:(0,p.localize)("layout.action.openView"),commandId:o.LAYOUT_COMMANDS.QUICK_OPEN_VIEW.id,order:5,hideTab:!0})}};t.MainLayoutModuleContribution=E,n.__decorate([(0,r.Autowired)(g.IMainLayoutService),n.__metadata("design:type",Object)],E.prototype,"mainLayoutService",void 0),n.__decorate([(0,r.Autowired)(o.IContextKeyService),n.__metadata("design:type",Object)],E.prototype,"contextKeyService",void 0),n.__decorate([(0,r.Autowired)(p.IEventBus),n.__metadata("design:type",Object)],E.prototype,"eventBus",void 0),n.__decorate([(0,r.Autowired)(_.ComponentContribution),n.__metadata("design:type",Object)],E.prototype,"contributionProvider",void 0),n.__decorate([(0,r.Autowired)(o.SlotRendererContribution),n.__metadata("design:type",Object)],E.prototype,"rendererContributionProvider",void 0),n.__decorate([(0,r.Autowired)(_.ComponentRegistry),n.__metadata("design:type",Object)],E.prototype,"componentRegistry",void 0),n.__decorate([(0,r.Autowired)(s.CommandService),n.__metadata("design:type",Object)],E.prototype,"commandService",void 0),n.__decorate([(0,r.Autowired)(),n.__metadata("design:type",v.LayoutState)],E.prototype,"layoutState",void 0),n.__decorate([(0,r.Autowired)(_.TabBarToolbarContribution),n.__metadata("design:type",Object)],E.prototype,"toolBarContributionProvider",void 0),n.__decorate([(0,r.Autowired)(),n.__metadata("design:type",_.ToolbarRegistry)],E.prototype,"toolBarRegistry",void 0),n.__decorate([(0,r.Autowired)(o.KeybindingRegistry),n.__metadata("design:type",Object)],E.prototype,"keybindingRegistry",void 0),n.__decorate([(0,r.Autowired)(u.ViewQuickOpenHandler),n.__metadata("design:type",u.ViewQuickOpenHandler)],E.prototype,"quickOpenViewHandler",void 0),t.MainLayoutModuleContribution=E=n.__decorate([(0,p.Domain)(s.CommandContribution,o.ClientAppContribution,o.SlotRendererContribution,m.MenuContribution,o.QuickOpenContribution,_.ComponentContribution)],E)},68988:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ViewQuickOpenItem=t.ContainerQuickOpenItem=t.ViewQuickOpenHandler=void 0;const n=e(85608),r=e(76003),o=e(41869),l=e(74404),_=e(17793);let v=class{constructor(){this.prefix="view ",this.description=(0,o.localize)("layout.action.openView")}getModel(){return{onType:(g,a)=>a(this.getViewQuickOpenItems())}}getViewQuickOpenItems(){var g;const a=this.layoutService.getAllAccordionService(),h=Array.from(a.keys());let u=[];u=u.concat(h.map((c,E)=>this.injector.get(m,[c,{groupLabel:E===0?(0,o.localize)("layout.openView.containerTitle"):"",showBorder:!1}])));for(const c of h){const E=(g=a.get(c))===null||g===void 0?void 0:g.views;if(E)for(let f=0,d=E.length;f<d;f++)u.push(this.injector.get(p,[c,E[f],{groupLabel:f===0?(0,o.formatLocalize)("layout.openView.viewTitle",String(c).toUpperCase()):"",showBorder:!1}]))}return u}getOptions(){return{}}onClose(){}};t.ViewQuickOpenHandler=v,n.__decorate([(0,r.Autowired)(l.PrefixQuickOpenService),n.__metadata("design:type",Object)],v.prototype,"quickOpenService",void 0),n.__decorate([(0,r.Autowired)(_.IMainLayoutService),n.__metadata("design:type",Object)],v.prototype,"layoutService",void 0),n.__decorate([(0,r.Autowired)(r.INJECTOR_TOKEN),n.__metadata("design:type",r.Injector)],v.prototype,"injector",void 0),t.ViewQuickOpenHandler=v=n.__decorate([(0,r.Injectable)()],v);let m=class extends l.QuickOpenItem{constructor(g,a){super(a),this.containerId=g,this.options=a}getLabel(){return String(this.containerId).toLocaleUpperCase()}isHidden(){return super.isHidden()}run(g){if(g!==l.Mode.OPEN)return!1;const a=this.layoutService.getTabbarHandler(this.containerId);return a?.activate(),!0}};t.ContainerQuickOpenItem=m,n.__decorate([(0,r.Autowired)(_.IMainLayoutService),n.__metadata("design:type",Object)],m.prototype,"layoutService",void 0),t.ContainerQuickOpenItem=m=n.__decorate([(0,r.Injectable)({multiple:!0}),n.__metadata("design:paramtypes",[Object,Object])],m);let p=class extends l.QuickOpenItem{constructor(g,a,h){super(h),this.containerId=g,this.view=a,this.options=h}getLabel(){var g;return(g=this.view.name)===null||g===void 0?void 0:g.toUpperCase()}isHidden(){return super.isHidden()}run(g){if(g!==l.Mode.OPEN)return!1;const a=this.layoutService.getTabbarHandler(this.containerId);return a&&(a.activate(),a.isCollapsed(this.view.id)&&a?.setCollapsed(this.view.id,!1)),!0}};t.ViewQuickOpenItem=p,n.__decorate([(0,r.Autowired)(_.IMainLayoutService),n.__metadata("design:type",Object)],p.prototype,"layoutService",void 0),t.ViewQuickOpenItem=p=n.__decorate([(0,r.Injectable)({multiple:!0}),n.__metadata("design:paramtypes",[String,Object,Object])],p)},58999:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TabBarHandler=void 0;const n=e(85608),r=e(76003),o=e(43718),l=e(17793),_=e(752);let v=class{constructor(p,s){this.containerId=p,this.tabbarService=s,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),s.currentContainerId.get()===this.containerId&&(this.onActivateEmitter.fire(),this.isVisible=!0),this.tabbarService.onCurrentChange(g=>{g.currentId===this.containerId?(this.onActivateEmitter.fire(),this.isVisible=!0):g.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.get()===this.containerId}show(){this.tabbarService.showContainer(this.containerId)}hide(){this.tabbarService.hideContainer(this.containerId)}setTitleComponent(p,s){const g=this.tabbarService.getContainer(this.containerId);g&&g.options&&(g.options.titleProps=s,g.options.titleComponent=p,g.fireChange(g))}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,s){this.accordionService.toggleOpen(p,s)}toggleViews(p,s){for(const g of p){const a=this.accordionService.getViewState(g);this.accordionService.updateViewState(g,{...a,hidden:!s})}}updateViewTitle(p,s){this.accordionService.updateViewTitle(p,s)}updateViewDescription(p,s){this.accordionService.updateViewDesciption(p,s)}updateViewMessage(p,s){this.accordionService.updateViewMessage(p,s)}updateTitle(p){this.tabbarService.updateTitle(this.containerId,p)}setResizeLock(p){this.tabbarService.resizeHandle.lockSize(p)}};t.TabBarHandler=v,n.__decorate([(0,r.Autowired)(l.IMainLayoutService),n.__metadata("design:type",Object)],v.prototype,"layoutService",void 0),t.TabBarHandler=v=n.__decorate([(0,r.Injectable)({multiple:!0}),n.__metadata("design:paramtypes",[String,_.TabbarService])],v)},46245:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ChatTabbarRenderer2=t.BottomTabbarRenderer=t.LeftTabbarRenderer=t.RightTabbarRenderer=t.TextElipses=t.IconElipses=t.TextTabView=t.IconTabView=t.TabbarViewBase=void 0;const n=e(85608),r=n.__importDefault(e(53373)),o=n.__importStar(e(14041)),l=e(97267),_=e(41869),v=e(25918),m=e(25719),p=e(63373),s=e(68969),g=e(17793),a=e(19951),h=n.__importDefault(e(5330)),u=e(752);function c(T,R){return R>=T.length?[T,[]]:R<=1?[[],T]:[T.slice(0,R-1),T.slice(R-1)]}function E(T){return typeof T=="string"?parseInt(T,10)>99?"99+":T:typeof T=="object"&&T.value?T.value>99?"99+":T.value:""}const f=T=>{var R;const{TabView:P,MoreTabView:O,forbidCollapse:M,barSize:k=48,panelBorderSize:F=0,tabClassName:L,className:B,margin:U,tabSize:W,canHideTabbar:j,renderOtherVisibleContainers:Q=()=>null,disableAutoAdjust:G}=T,{side:Z,direction:$,fullSize:V}=(0,o.useContext)(a.TabbarConfig),H=(0,_.useInjectable)(u.TabbarServiceFactory)(Z),K=(0,_.useDesignStyles)(h.default.tab_bar,"tab_bar"),Y=(0,_.useDesignStyles)(h.default.bar_content,"bar_content"),X=(0,o.useMemo)(()=>G?Number.MAX_SAFE_INTEGER:Math.floor(V-(U||0)/W),[G,V,U,W]),[oe,ie]=(0,o.useState)(c(H.visibleContainers.filter(fe=>{var Ie;return!(!((Ie=fe.options)===null||Ie===void 0)&&Ie.hideTab)}),X));(0,o.useEffect)(()=>{H.updateBarSize(k+F)},[]),(0,o.useEffect)(()=>{const fe=()=>{ie(c(H.visibleContainers.filter(Me=>{var Be;return!(!((Be=Me.options)===null||Be===void 0)&&Be.hideTab)}),X))};fe();const Ie=_.Event.any(H.onDidRegisterContainer,H.onStateChange)(fe);return()=>{Ie.dispose()}},[X]);const he=(0,_.useAutorun)(H.currentContainerId),me=(0,_.usePreference)("workbench.hideSlotTabBarWhenHidePanel",!1),q=j&&me;q&&!he&&((R=H.resizeHandle)===null||R===void 0||R.setSize(0));const[Ee,ue]=oe;ue.forEach(fe=>{H.updateTabInMoreKey(fe.options.containerId,!0)});const te=(0,o.useCallback)((fe,Ie,Me,Be)=>{var Pe;const we=(Pe=fe.options)===null||Pe===void 0?void 0:Pe.containerId;if(!we)return null;Ie.updateTabInMoreKey(we,!1);let _e;return o.default.createElement("li",{draggable:!0,onDragStart:Ne=>{if(_e){const Te=_e.cloneNode(!0);Te.classList.add(h.default.dragging),L&&(0,_.addClassName)(Te,L),document.body.appendChild(Te),Ne.persist(),requestAnimationFrame(()=>{Ne.dataTransfer.setDragImage(Te,0,0),document.body.removeChild(Te)})}Ie.handleDragStart(Ne,we)},onDragOver:Ne=>{Ne.preventDefault(),_e&&_e.classList.add("on-drag-over")},onDragLeave:()=>{_e&&_e.classList.remove("on-drag-over")},onDrop:Ne=>{_e&&_e.classList.remove("on-drag-over"),Ie.handleDrop(Ne,we)},onDragEnd:Ne=>{Ie.handleDragEnd(Ne)},key:we,id:we,onContextMenu:Ne=>Ie.handleContextMenu(Ne,we),onClick:Ne=>Ie.handleTabClick(Ne,q||M),ref:Ne=>_e=Ne,className:(0,r.default)({active:Me===we},L)},o.default.createElement(P,{component:fe}))},[]);return o.default.createElement("div",{className:(0,r.default)([K,B])},o.default.createElement("div",{className:Y,style:{flexDirection:m.Layout.getTabbarDirection($)}},Ee.map(fe=>te(fe,H,he,Z)),Q({props:T,renderContainers:te}),ue.length?o.default.createElement("li",{key:"tab-more",onClick:fe=>{var Ie;return H.showMoreMenu(fe,Ee[Ee.length-1]&&((Ie=Ee[Ee.length-1].options)===null||Ie===void 0?void 0:Ie.containerId))},className:L},o.default.createElement(O,null)):null))};t.TabbarViewBase=f;const d=({component:T})=>{var R,P,O;const M=(0,_.useInjectable)(s.IProgressService),k=(0,_.useInjectable)(_.KeybindingRegistry),F=(0,_.useDesignStyles)(h.default.icon_tab,"icon_tab"),[L,B]=(0,o.useState)(T),U=M.getIndicator(((R=L.options)===null||R===void 0?void 0:R.containerId)||""),W=U?(0,_.useAutorun)(U.progressModel.show):!1,j=(0,o.useMemo)(()=>{const Q=L.options;return Q?.activateKeyBinding?`${Q?.title} (${k.acceleratorForKeyString(Q.activateKeyBinding,"+")})`:Q?.title},[L]);return(0,o.useEffect)(()=>{const Q=L.onChange(G=>{B({...G})});return()=>{Q.dispose()}},[L]),o.default.createElement("div",{className:F},o.default.createElement("div",{className:(0,r.default)((P=L.options)===null||P===void 0?void 0:P.iconClass,"activity-icon"),title:j}),W?o.default.createElement(l.Badge,{className:h.default.tab_badge},o.default.createElement("span",{className:h.default.icon_wrapper},o.default.createElement(l.Icon,{icon:"time-circle"}))):((O=L.options)===null||O===void 0?void 0:O.badge)&&o.default.createElement(l.Badge,{className:h.default.tab_badge},E(L.options.badge)))};t.IconTabView=d;const y=({component:T})=>{var R,P,O;const[M,k]=(0,o.useState)(T);return(0,o.useEffect)(()=>{const F=M.onChange(L=>{k({...L})});return()=>{F.dispose()}},[M]),o.default.createElement("div",{className:h.default.text_tab},o.default.createElement("div",{className:h.default.bottom_tab_title},(P=(R=M.options)===null||R===void 0?void 0:R.title)===null||P===void 0?void 0:P.toUpperCase()),((O=M.options)===null||O===void 0?void 0:O.badge)&&o.default.createElement(l.Badge,{className:h.default.tab_badge},E(M.options.badge)))};t.TextTabView=y;const b=()=>{const T=(0,_.useDesignStyles)(h.default.icon_tab,"icon_tab");return o.default.createElement("div",{className:T},o.default.createElement("div",{className:(0,r.default)((0,_.getIcon)("ellipsis"),"activity-icon"),title:"extra tabs"}))};t.IconElipses=b;const A=()=>o.default.createElement("div",{className:h.default.text_tab},o.default.createElement("div",{className:h.default.bottom_tab_title},o.default.createElement("i",{className:(0,_.getIcon)("doubleright")})));t.TextElipses=A;const S=T=>{const{barSize:R=48,style:P}=T,{side:O}=(0,o.useContext)(a.TabbarConfig),M=(0,_.useInjectable)(u.TabbarServiceFactory)(O),k=(0,_.useDesignStyles)(h.default.right_tab_bar,"right_tab_bar"),F=(0,_.useDesignStyles)(h.default.right_tab,"right_tab");return o.default.createElement("div",{id:p.VIEW_CONTAINERS.RIGHT_TABBAR,className:k,style:P,onContextMenu:M.handleContextMenu},o.default.createElement(t.TabbarViewBase,{tabSize:48,MoreTabView:t.IconElipses,tabClassName:F,TabView:t.IconTabView,barSize:R,panelBorderSize:1}))};t.RightTabbarRenderer=S;const D=({renderOtherVisibleContainers:T,isRenderExtraTopMenus:R=!0,renderExtraMenus:P,tabbarViewProps:O})=>{const{side:M}=(0,o.useContext)(a.TabbarConfig),k=(0,_.useInjectable)(g.IMainLayoutService),F=(0,_.useInjectable)(u.TabbarServiceFactory)(M),L=(0,o.useMemo)(()=>k.getExtraTopMenu(),[k]),B=(0,o.useMemo)(()=>k.getExtraMenu(),[k]),U=(0,_.useDesignStyles)(h.default.left_tab_bar,"left_tab_bar"),W=(0,_.useDesignStyles)(h.default.left_tab,"left_tab");return o.default.createElement("div",{id:p.VIEW_CONTAINERS.LEFT_TABBAR,className:U,onContextMenu:F.handleContextMenu},R&&o.default.createElement(v.InlineMenuBar,{className:(0,r.default)(h.default.vertical_icons,h.default.extra_top_menus),menus:L}),o.default.createElement(t.TabbarViewBase,{tabSize:48,MoreTabView:t.IconElipses,className:h.default.left_tab_content,tabClassName:W,TabView:t.IconTabView,barSize:48,margin:90,panelBorderSize:1,renderOtherVisibleContainers:T,...O}),P||o.default.createElement(v.InlineMenuBar,{className:h.default.vertical_icons,menus:B}))};t.LeftTabbarRenderer=D;const I=()=>{const{side:T}=(0,o.useContext)(a.TabbarConfig),R=(0,_.useInjectable)(u.TabbarServiceFactory)(T),P=(0,_.useDesignStyles)(h.default.bottom_bar_container,"bottom_bar_container"),O=(0,_.useDesignStyles)(h.default.bottom_tab,"bottom_tab");return o.default.createElement("div",{id:p.VIEW_CONTAINERS.BOTTOM_TABBAR,onContextMenu:R.handleContextMenu,className:(0,r.default)(P,"next_bottom_bar")},o.default.createElement(t.TabbarViewBase,{tabSize:80,MoreTabView:t.TextElipses,tabClassName:O,TabView:t.TextTabView,barSize:24,panelBorderSize:1,canHideTabbar:!0}))};t.BottomTabbarRenderer=I;const w=T=>{const{barSize:R=32,style:P}=T,{side:O}=(0,o.useContext)(a.TabbarConfig),M=(0,_.useInjectable)(u.TabbarServiceFactory)(O),k=(0,_.useDesignStyles)(h.default.ai_right_tab_bar,"ai_right_tab_bar"),F=(0,_.useDesignStyles)(h.default.ai_right_tab,"ai_right_tab");return o.default.createElement("div",{id:O,className:k,style:P,onContextMenu:M.handleContextMenu},o.default.createElement(t.TabbarViewBase,{tabSize:32,MoreTabView:t.IconElipses,tabClassName:F,TabView:t.IconTabView,barSize:R,panelBorderSize:1}))};t.ChatTabbarRenderer2=w},66368:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BottomTabPanelRenderer=t.LeftTabPanelRenderer=t.RightTabPanelRenderer=t.ContainerView=t.BaseTabPanelView=void 0;const n=e(85608),r=n.__importDefault(e(53373)),o=n.__importStar(e(14041)),l=e(76003),_=e(41869),v=e(25918),m=e(1149),p=e(68969),s=e(68974),g=e(9522),a=e(70936),h=e(91527),u=e(19951),c=n.__importDefault(e(5330)),E=e(752),f=o.default.memo(({children:T})=>T,(T,R)=>!(T.visible||R.visible)),d={display:"block"},y={display:"none"},b=T=>{const{PanelView:R,panelSize:P,id:O,PanelViewProps:M}=T,{side:k}=o.default.useContext(u.TabbarConfig),F=(0,_.useInjectable)(_.AppConfig),L=F.panelSizes&&F.panelSizes[k],B=(0,_.useInjectable)(E.TabbarServiceFactory)(k),U=(0,_.useAutorun)(B.currentContainerId),W=(0,_.useDesignStyles)(c.default.tab_panel,"tab_panel"),j=(0,_.useDesignStyles)(c.default.tab_panel_hidden,"tab_panel_hidden");return o.default.useEffect(()=>{B.updatePanelSize(L||P||335)},[]),o.default.createElement("div",{id:O,className:(0,r.default)("kt-tab-panel",W,{[j]:!U})},B.visibleContainers.map(Q=>{var G;const Z=(G=Q.options)===null||G===void 0?void 0:G.containerId;if(!Z)return null;const $=B.getTitleToolbarMenu(Z);return o.default.createElement("div",{key:Z,className:(0,r.default)(c.default.panel_wrap,Z),"data-viewlet-id":Z,style:U===Z?d:y,id:O},o.default.createElement(_.ErrorBoundary,null,o.default.createElement(f,{visible:U===Z},o.default.createElement(R,{titleMenu:$,side:k,component:Q,...M}))))}))};t.BaseTabPanelView=b;const A=({component:T,titleMenu:R,side:P,renderContainerWrap:O,className:M,customTitleBar:k})=>{var F,L;const B=o.default.useRef(),U=o.default.useRef(null),W=(0,_.useInjectable)(_.AppConfig),{title:j,titleComponent:Q,component:G,containerId:Z,draggable:$}=T.options||{},V=(0,_.useInjectable)(l.INJECTOR_TOKEN),H=(0,_.useInjectable)(m.LayoutViewSizeConfig),K=(0,o.useCallback)(he=>{V.get(g.AccordionServiceFactory)(Z).handleContextMenu(he)},[Z]);if(!Z)return null;const X=(0,_.useInjectable)(p.IProgressService).getIndicator(Z);if(!X)return null;const oe=(0,_.useViewState)(P,U),ie=o.default.useCallback(he=>O?O({children:he}):he,[O]);return o.default.createElement("div",{ref:U,className:(0,r.default)(c.default.view_container,M)},!!k&&k,!G&&o.default.createElement("div",{onContextMenu:K,className:c.default.panel_titlebar},j?o.default.createElement(h.TitleBar,{containerId:Z,side:P,title:j,draggable:$,height:H.panelTitleBarHeight,menubar:o.default.createElement(v.InlineActionBar,{menus:R})}):null,Q&&o.default.createElement("div",{className:c.default.panel_component},o.default.createElement(_.ConfigProvider,{value:W},o.default.createElement(_.ComponentRenderer,{Component:Q,initialProps:(F=T.options)===null||F===void 0?void 0:F.titleProps})))),o.default.createElement("div",{className:c.default.container_wrap,ref:he=>B.current=he},o.default.createElement(s.ProgressBar,{progressModel:X.progressModel}),ie(G?o.default.createElement(_.ConfigProvider,{value:W},o.default.createElement(_.ComponentRenderer,{initialProps:{viewState:oe,...(L=T.options)===null||L===void 0?void 0:L.initialProps},Component:G})):o.default.createElement(a.AccordionContainer,{views:T.views,minSize:T.options.miniSize,containerId:T.options.containerId}))))};t.ContainerView=A;const S=({component:T,titleMenu:R,side:P})=>{var O,M,k,F;const L=o.default.useRef(),B=o.default.useRef(null),U=(0,_.useInjectable)(_.AppConfig),W=(0,_.useInjectable)(E.TabbarServiceFactory)(P),j=(0,_.useDesignStyles)(c.default.panel_title_bar,"panel_title_bar"),Q=(0,_.useDesignStyles)(c.default.panel_toolbar_container,"panel_toolbar_container"),G=(0,_.useViewState)(P,B),Z=(0,_.useInjectable)(m.LayoutViewSizeConfig),$=(0,_.useInjectable)(p.IProgressService),{component:V,containerId:H}=T.options||{},K=T.options&&T.options.titleComponent;if(!H)return null;const Y=$.getIndicator(H);return Y?o.default.createElement("div",{ref:B,className:c.default.panel_container},o.default.createElement("div",{className:j,style:{height:Z.panelTitleBarHeight}},o.default.createElement("h1",null,(M=(O=T.options)===null||O===void 0?void 0:O.title)===null||M===void 0?void 0:M.toUpperCase()),o.default.createElement("div",{className:c.default.title_component_container},K&&o.default.createElement(_.ComponentRenderer,{Component:K,initialProps:(k=T.options)===null||k===void 0?void 0:k.titleProps})),o.default.createElement("div",{className:Q},R&&o.default.createElement(v.InlineActionBar,{menus:R}),o.default.createElement(v.InlineMenuBar,{menus:W.commonTitleMenu,moreAtFirst:!0}))),o.default.createElement("div",{className:c.default.container_wrap,ref:X=>L.current=X},o.default.createElement(s.ProgressBar,{progressModel:Y.progressModel}),V?o.default.createElement(_.ConfigProvider,{value:U},o.default.createElement(_.ComponentRenderer,{initialProps:{viewState:G,...(F=T.options)===null||F===void 0?void 0:F.initialProps},Component:V})):o.default.createElement(a.AccordionContainer,{views:T.views,alignment:"horizontal",minSize:T.options.miniSize||200,containerId:T.options.containerId}))):null},D=()=>o.default.createElement(t.BaseTabPanelView,{PanelView:t.ContainerView});t.RightTabPanelRenderer=D;const I=()=>o.default.createElement(t.BaseTabPanelView,{PanelView:t.ContainerView});t.LeftTabPanelRenderer=I;const w=()=>o.default.createElement(t.BaseTabPanelView,{PanelView:S,panelSize:280});t.BottomTabPanelRenderer=w},19951:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BottomTabRenderer=t.LeftTabRenderer=t.RightTabRenderer=t.TabRendererBase=t.TabbarConfig=void 0;const n=e(85608),r=n.__importDefault(e(53373)),o=n.__importStar(e(14041)),l=e(41869),_=e(81878),v=e(25719),m=e(63373),p=e(46245),s=e(66368),g=n.__importDefault(e(5330)),a=e(752);t.TabbarConfig=(0,o.createContext)({side:l.SlotLocation.view,direction:"left-to-right",fullSize:0}),t.TabRendererBase=(0,o.memo)(({id:E,className:f,components:d,direction:y="left-to-right",TabbarView:b,side:A,TabpanelView:S})=>{const D=(0,l.useInjectable)(a.TabbarServiceFactory)(A),I=(0,l.useInjectable)(l.IEventBus),w=(0,o.useContext)(_.PanelContext),T=(0,o.useRef)(null),[R,P]=(0,o.useState)(0);(0,o.useLayoutEffect)(()=>{D.registerResizeHandle(w),d.forEach(M=>{D.registerContainer(M.options.containerId,M)}),D.updatePanelVisibility(),D.ensureViewReady()},[d]);const O=(0,o.useCallback)(()=>{T.current&&P(T.current[v.Layout.getDomSizeProperty(y)])},[]);return(0,o.useEffect)(()=>{l.fastdom.measure(()=>{O()});let M;I.onDirective(l.ResizeEvent.createDirective(A),()=>{M&&M.dispose(),M=l.fastdom.measureAtNextFrame(()=>{O()})})},[]),o.default.createElement("div",{ref:T,id:E,className:(0,r.default)(g.default.tab_container,f),style:{flexDirection:v.Layout.getFlexDirection(y)}},o.default.createElement(t.TabbarConfig.Provider,{value:{side:A,direction:y,fullSize:R}},o.default.createElement(b,null),o.default.createElement(S,null)))});const h=({className:E,components:f,tabbarView:d,tabpanelView:y})=>o.default.createElement(t.TabRendererBase,{side:l.SlotLocation.extendView,direction:"right-to-left",id:m.VIEW_CONTAINERS.RIGHT_TABBAR_PANEL,className:(0,r.default)(E,"right-slot"),components:f,TabbarView:d??p.RightTabbarRenderer,TabpanelView:y??s.RightTabPanelRenderer});t.RightTabRenderer=h;const u=({className:E,components:f,tabbarView:d})=>o.default.createElement(t.TabRendererBase,{side:l.SlotLocation.view,direction:"left-to-right",id:m.VIEW_CONTAINERS.LEFT_TABBAR_PANEL,className:(0,r.default)(E,"left-slot"),components:f,TabbarView:d??p.LeftTabbarRenderer,TabpanelView:s.LeftTabPanelRenderer});t.LeftTabRenderer=u;const c=({className:E,components:f,tabbarView:d})=>o.default.createElement(t.TabRendererBase,{side:l.SlotLocation.panel,id:m.VIEW_CONTAINERS.BOTTOM_TABBAR_PANEL,direction:"bottom-to-top",className:(0,r.default)(E,"bottom-slot"),components:f,TabbarView:d??p.BottomTabbarRenderer,TabpanelView:s.BottomTabPanelRenderer});t.BottomTabRenderer=c},94813:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TabbarBehaviorHandler=void 0;const n=e(41869),r=e(30144),o=e(75053);class l{constructor(v,m){this.location=v,this.config=m,this.accordionRestored=new Set}getIsLatter(){var v;return((v=this.config)===null||v===void 0?void 0:v.isLatter)!==void 0?this.config.isLatter:this.location==="extendView"||this.location==="panel"}wrapResizeHandle(v){const{setSize:m,setRelativeSize:p,getSize:s,getRelativeSize:g,lockSize:a,setMaxSize:h,hidePanel:u}=v,c=this.getIsLatter();return{setSize:E=>m(E,c),setRelativeSize:(E,f)=>p(E,f,c),getSize:()=>s(c),getRelativeSize:()=>g(c),setMaxSize:E=>h(E,c),lockSize:E=>a(E,c),hidePanel:E=>u(E)}}registerLocationSpecificCommands(v){const m=new n.DisposableCollection,{supportedActions:p}=this.config||{};return p?.expand&&(m.push(v.commandRegistry.registerCommand(o.EXPAND_PANEL_COMMAND,{execute:()=>{v.layoutService.expandBottom(!0)}})),m.push(v.commandRegistry.registerCommand(o.RETRACT_PANEL_COMMAND,{execute:()=>{v.layoutService.expandBottom(!1)}}))),p?.toggle&&m.push(v.commandRegistry.registerCommand(o.TOGGLE_PANEL_COMMAND,{execute:(s,g)=>{v.layoutService.toggleSlot(this.location,s,g)}})),m}registerLocationSpecificMenus(v){var m,p,s,g;const a=[];if(!((p=(m=this.config)===null||m===void 0?void 0:m.supportedActions)===null||p===void 0)&&p.expand&&a.push({command:o.EXPAND_PANEL_COMMAND.id,group:"navigation",when:"!bottomFullExpanded",order:1},{command:o.RETRACT_PANEL_COMMAND.id,group:"navigation",when:"bottomFullExpanded",order:1}),!((g=(s=this.config)===null||s===void 0?void 0:s.supportedActions)===null||g===void 0)&&g.toggle&&a.push({command:o.TOGGLE_PANEL_COMMAND.id,group:"navigation",order:2}),a.length>0)return v.menuRegistry.registerMenuItems(`tabbar/${this.location}/common`,a),v.ctxMenuService.createMenu({id:`tabbar/${this.location}/common`})}doExpand(v,m){var p,s;if(!(!((s=(p=this.config)===null||p===void 0?void 0:p.supportedActions)===null||s===void 0)&&s.expand)||!m)return;const{setRelativeSize:g}=m,a=this.getIsLatter();v?a?g(0,1):g(1,0):g(2,1)}isExpanded(v){var m,p;if(!(!((p=(m=this.config)===null||m===void 0?void 0:m.supportedActions)===null||p===void 0)&&p.expand)||!v)return!1;const{getRelativeSize:s}=v,g=s().join(",");return this.getIsLatter()?g==="0,1":g==="1,0"}handleActivateKeyBinding(v,m,p,s){var g,a;!((a=(g=this.config)===null||g===void 0?void 0:g.supportedActions)===null||a===void 0)&&a.toggle&&!s?p(m===v?"":v):p(v)}handleFullExpanded(v,m,p,s){var g,a;const{barSize:h,panelSize:u,prevSize:c}=s,{setRelativeSize:E,setSize:f}=p;v?m&&(!((a=(g=this.config)===null||g===void 0?void 0:g.supportedActions)===null||a===void 0)&&a.expand)?this.getIsLatter()?E(0,1):E(1,0):f(c||u+h):f(h)}tryRestoreAccordionSize(v,m){var p,s,g,a;if(!(!((s=(p=this.config)===null||p===void 0?void 0:p.supportedActions)===null||s===void 0)&&s.accordion))return;const{containerId:h}=v.options||{};if(!h||this.accordionRestored.has(h)||(!v||!((g=v.options)===null||g===void 0)&&g.component)&&((a=v?.options)===null||a===void 0?void 0:a.containerId)!==r.SCM_CONTAINER_ID)return;m.getAccordionService(h).restoreState(),this.accordionRestored.add(h)}}t.TabbarBehaviorHandler=l},752:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TabbarService=t.TabbarServiceFactoryFn=t.TabbarServiceFactory=void 0;const n=e(85608),r=n.__importDefault(e(12784)),o=e(76003),l=e(41869),_=e(95416),v=e(93899),m=e(68969),p=e(38578),s=e(28423),g=e(17793),a=e(94813);t.TabbarServiceFactory=Symbol("TabbarServiceFactory");const h=E=>f=>E.get(g.IMainLayoutService).getTabbarService(f);t.TabbarServiceFactoryFn=h;const u=void 0;let c=class extends l.WithEventBus{constructor(f){super(),this.location=f,this.doChangeViewEmitter=new l.Emitter,this.onStateChangeEmitter=new l.Emitter,this.onStateChange=this.onStateChangeEmitter.event,this.shouldChangeView=(0,s.observableFromEventOpts)({owner:this,equalsFn:()=>!1},this.doChangeViewEmitter.event,()=>{}),this.containerIdObs=(0,s.observableValue)(this,u),this.currentContainerId=(0,s.derivedOpts)({owner:this,equalsFn:()=>!1},y=>(this.shouldChangeView.read(y),this.containerIdObs.read(y))),this.nextContainerId="",this.useFirstContainerId=!1,this.previousContainerId=void 0,this.containersMap=new Map,this.viewReady=new l.Deferred,this.state=new Map,this.storedState={},this.onCurrentChangeEmitter=new l.Emitter,this.onCurrentChange=this.onCurrentChangeEmitter.event,this.onSizeChangeEmitter=new l.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 l.Emitter,this.isEmptyTabbar=!0,this.updatePanel=(0,r.default)(y=>{this.resizeHandle&&this.resizeHandle.hidePanel(y)},60),this._menuMap=new Map,this.handleContextMenu=(y,b)=>{y.preventDefault(),y.stopPropagation();const A=this.menuService.createMenu(this.menuId,b?this.scopedCtxKeyService:this.contextKeyService),S=(0,v.generateCtxMenu)({menus:A,args:[{containerId:b}]});this.contextMenuRenderer.show({menuNodes:S[1],anchor:{x:y.clientX,y:y.clientY}})};const d=p.slotRendererRegistry.getTabbarConfig(f);this.behaviorHandler=new a.TabbarBehaviorHandler(f,d),this.scopedCtxKeyService=this.contextKeyService.createScoped(),this.scopedCtxKeyService.createKey("triggerWithTab",!0),this.menuRegistry.registerMenuItem(this.menuId,{command:{id:this.registerGlobalToggleCommand(),label:(0,l.localize)("layout.tabbar.toggle")},group:"0_global",when:"triggerWithTab == true"}),this.activatedKey=this.contextKeyService.createKey((0,l.getTabbarCtxKey)(this.location),""),this.behaviorHandler.registerLocationSpecificCommands({commandRegistry:this.commandRegistry,layoutService:this.layoutService}),this.commonTitleMenu=this.behaviorHandler.registerLocationSpecificMenus({menuRegistry:this.menuRegistry,ctxMenuService:this.ctxMenuService}),this.eventBus.onDirective(l.ResizeEvent.createDirective(this.location),()=>{this.onResize()})}get onDidRegisterContainer(){return this.onDidRegisterContainerEmitter.event}updateNextContainerId(f){(0,l.isUndefined)(f)?this.useFirstContainerId=!0:this.nextContainerId=f}updateCurrentContainerId(f,d){d?this.containerIdObs.set(f,d):(0,s.transaction)(y=>{this.containerIdObs.set(f,y)})}updateBadge(f,d){const y=this.getContainer(f);y&&y.options&&(y.options.badge=d),y?.fireChange(y)}getContainerState(f){return this.state.get(f)}hideContainer(f){const d=this.state.get(f);d&&(d.hidden=!0,this.onStateChangeEmitter.fire())}showContainer(f){const d=this.state.get(f);d&&(d.hidden=!1,this.onStateChangeEmitter.fire())}updatePanelVisibility(f){f===void 0&&(f=this.containersMap.size>0),this.updatePanel(f)}ensureViewReady(){(0,l.isDefined)(this.barSize)&&(0,l.isDefined)(this.panelSize)?this.resolveViewReady():this.shouldWaitForViewRender=!0}updatePanelSize(f){this.panelSize=f,(0,l.isDefined)(this.barSize)&&this.shouldWaitForViewRender&&this.resolveViewReady()}updateBarSize(f){this.barSize=f,(0,l.isDefined)(this.panelSize)&&this.shouldWaitForViewRender&&this.resolveViewReady()}resolveViewReady(){this.isEmptyTabbar?l.Event.once(this.onDidRegisterContainer)(()=>{this.viewReady.resolve()}):this.viewReady.resolve()}getBarSize(){return this.barSize}updateTabInMoreKey(f,d){const y=this.tabInMoreKeyMap.get(f);y&&y.set(d)}get visibleContainers(){const f=[];return this.containersMap.forEach(d=>{const y=d.options&&this.state.get(d.options.containerId);(!y||!y.hidden)&&f.push(d)}),f.sort((d,y)=>this.getContainerState(d.options.containerId).priority-this.getContainerState(y.options.containerId).priority)}registerResizeHandle(f){return this.resizeHandle=this.behaviorHandler.wrapResizeHandle(f),this.listenCurrentChange()}registerContainer(f,d){var y;if(this.containersMap.has(f))return;this.useFirstContainerId&&(this.useFirstContainerId=!1,this.updateCurrentContainerId(f)),this.nextContainerId===f&&this.updateCurrentContainerId(f);const b=new l.DisposableCollection,A=d.options||{containerId:f};d.options=A;const S=new l.Emitter;this.containersMap.set(f,{fireChange:I=>S.fire(I),onChange:S.event,views:d.views,options:A}),b.push({dispose:()=>{this.containersMap.delete(f),this.state.delete(f)}}),this.updatePanelVisibility(this.containersMap.size>0);let D=this.sortedContainers.findIndex(I=>{var w,T;return(((w=I.options)===null||w===void 0?void 0:w.priority)||1)<=(((T=d.options)===null||T===void 0?void 0:T.priority)||1)});D===-1&&(D=this.sortedContainers.length),this.sortedContainers.splice(D,0,d);for(let I=D;I<this.sortedContainers.length;I++){const T=(y=this.sortedContainers[I].options)===null||y===void 0?void 0:y.containerId;if(T){const R=this.storedState[T]||this.getContainerState(T)||{};this.state.set(T,{hidden:R.hidden,priority:I})}}b.push(this.registerSideEffects(d)),this.eventBus.fire(new g.TabBarRegistrationEvent({tabBarId:f})),f===this.currentContainerId.get()&&this.handleChange(f,""),this.viewContextKeyRegistry.registerContextKeyService(f,this.contextKeyService.createScoped()).createKey("view",f),this.isEmptyTabbar&&(this.isEmptyTabbar=!1),this.disposableMap.set(f,b),this.onDidRegisterContainerEmitter.fire(f)}registerSideEffects(f){var d;const y=new l.DisposableCollection;!((d=f.options)===null||d===void 0)&&d.hideTab||(y.push(this.registerHideMenu(f)),y.push(this.registerMoreMenu(f))),y.push(this.registerActivateKeyBinding(f,f.options.fromExtension));const b=this.contextKeyService.createKey(`workbench.${this.location}.${f.options.containerId}`,!0);return y.push({dispose:()=>{b.set(!1)}}),y.push(this.progressService.registerProgressIndicator(f.options.containerId)),y.push(this.registerContainerPanelRelatedCommand(f)),y}registerContainerPanelRelatedCommand(f){var d,y,b,A,S;const D=new l.DisposableCollection,I=(d=f.options)===null||d===void 0?void 0:d.containerId;return D.push(this.commandRegistry.registerCommand({id:"container.show."+I,label:(0,l.formatLocalize)("view.command.show",(b=(y=f.options)===null||y===void 0?void 0:y.title)!==null&&b!==void 0?b:I),labelLocalized:(0,l.createFormatLocalizedStr)("view.command.show",(S=(A=f.options)===null||A===void 0?void 0:A.title)!==null&&S!==void 0?S:I),category:"View"},{execute:()=>{this.updateCurrentContainerId(I)}})),D.push(this.commandRegistry.registerCommand({id:"container.hide."+I},{execute:()=>{this.updateCurrentContainerId("")}})),D.push(this.commandRegistry.registerCommand({id:"container.toggle."+I},{execute:()=>{this.currentContainerId.get()===I?this.updateCurrentContainerId(""):this.updateCurrentContainerId(I)}})),D}registerHideMenu(f){const d=new l.DisposableCollection,y=f.options.containerId;return d.push(this.menuRegistry.registerMenuItem(this.menuId,{command:{id:this.registerVisibleToggleCommand(y,d),label:f.options.title||y},group:"1_widgets"})),d}registerMoreMenu(f){const d=new l.DisposableCollection,y=f.options.containerId,b=this.scopedCtxKeyService.createKey(this.getTabInMoreCtxKey(y),!1);return this.tabInMoreKeyMap.set(y,b),d.push({dispose:()=>this.tabInMoreKeyMap.delete(y)}),d.push(this.menuRegistry.registerMenuItem(this.moreMenuId,{command:{id:this.registerMoreToggleCommand(f,d),label:f.options.title||y},group:"inline",when:`${this.getTabInMoreCtxKey(y)} == true`,toggledWhen:`${(0,l.getTabbarCtxKey)(this.location)} == ${y}`,iconClass:f.options.iconClass})),d}disposeContainer(f){var d;const y=this.disposableMap.get(f);y&&y.dispose(),this.currentContainerId.get()===f&&this.updateCurrentContainerId(((d=this.visibleContainers[0].options)===null||d===void 0?void 0:d.containerId)||"")}updateTitle(f,d){const y=this.getContainer(f);y&&(y.options.title=d)}getContainer(f){return f?this.containersMap.get(f):void 0}getTitleToolbarMenu(f){const d=this._menuMap.get(f);if(d)return d;const y=this.menuService.createMenu(v.MenuId.ViewTitle,this.viewContextKeyRegistry.getContextKeyService(f));this._menuMap.set(f,y);const b=this.disposableMap.get(f),A=[y,(0,l.toDisposable)(()=>{this._menuMap.delete(f)})];return b?b.pushAll(A):this.addDispose(A),y}doExpand(f){this.behaviorHandler.doExpand(f,this.resizeHandle)}get isExpanded(){return this.behaviorHandler.isExpanded(this.resizeHandle)}handleTabClick(f,d){const y=f.currentTarget.id;y===this.currentContainerId.get()&&!d?this.updateCurrentContainerId(""):this.updateCurrentContainerId(y)}showMoreMenu(f,d){const y=this.menuService.createMenu(this.moreMenuId,this.scopedCtxKeyService),b=(0,v.generateCtxMenu)({menus:y,args:[{lastContainerId:d}]});this.contextMenuRenderer.show({menuNodes:b[1],anchor:{x:f.clientX,y:f.clientY}})}handleDragStart(f,d){f.dataTransfer.setData("containerId",d),this.layoutService.showDropAreaForContainer(d)}handleDrop(f,d){if(f.dataTransfer.getData("containerId")){const y=f.dataTransfer.getData("containerId"),b=this.visibleContainers,A=b.findIndex(D=>y===D.options.containerId),S=b.findIndex(D=>d===D.options.containerId);this.doInsertTab(b,A,S),this.storeState()}}handleDragEnd(f){this.layoutService.hideDropArea()}restoreState(){this.storedState=this.layoutState.getState(_.LAYOUT_STATE.getTabbarSpace(this.location),{});for(const f of this.state.keys())this.storedState[f]&&this.state.set(f,this.storedState[f]);this.visibleContainers.forEach(f=>{this.tryRestoreAccordionSize(f)})}removeContainer(f){const d=this.disposableMap.get(f);d?.dispose(),this.onStateChangeEmitter.fire()}dynamicAddContainer(f,d){this.registerContainer(f,d),this.updateCurrentContainerId(f)}doInsertTab(f,d,y){const b=this.getContainerState(f[y].options.containerId).priority,A=(D,I)=>{const w=this.getContainerState(f[D].options.containerId),T=this.getContainerState(f[I].options.containerId);w.priority=T.priority};let S;if(d>y)for(S=y;S<d;S++)A(S,S+1);else for(S=y;S>d;S--)A(S,S-1);this.getContainerState(f[S].options.containerId).priority=b,this.doChangeViewEmitter.fire()}storeState(){const f={};this.state.forEach((d,y)=>{f[y]=d}),this.layoutState.setState(_.LAYOUT_STATE.getTabbarSpace(this.location),f),this.onStateChangeEmitter.fire()}registerActivateKeyBinding(f,d){const y=f.options,b=y.containerId,A=d?`workbench.view.extension.${b}`:`workbench.view.${b}`,S=new l.DisposableCollection;return S.push(this.commandRegistry.registerCommand({id:A},{execute:({forceShow:D}={})=>{this.behaviorHandler.handleActivateKeyBinding(b,this.currentContainerId.get()||"",I=>this.updateCurrentContainerId(I),D)}})),y.activateKeyBinding&&S.push(this.keybindingRegistry.registerKeybinding({command:A,keybinding:y.activateKeyBinding})),S}registerGlobalToggleCommand(){const f=`activity.bar.toggle.${this.location}`;return this.commandRegistry.registerCommand({id:f},{execute:({containerId:d})=>{this.doToggleTab(d)},isEnabled:()=>this.visibleContainers.length>1}),f}registerVisibleToggleCommand(f,d){const y=`activity.bar.toggle.${f}`;return d.push(this.commandRegistry.registerCommand({id:y},{execute:({forceShow:b}={})=>{this.doToggleTab(f,b)},isToggled:()=>!this.getContainerState(f).hidden,isEnabled:()=>this.getContainerState(f).hidden||this.visibleContainers.length!==1})),y}registerMoreToggleCommand(f,d){const{options:y}=f,{containerId:b}=y,A=`activity.bar.activate.more.${b}`;return d.push(this.commandRegistry.registerCommand({id:A},{execute:({lastContainerId:S})=>{if(this.updateCurrentContainerId(b),S){const D=this.getContainerState(b),I=this.getContainerState(S),w=D.priority;D.priority=I.priority,I.priority=w,this.storeState()}}})),A}getTabInMoreCtxKey(f){return`${f}.isInMore`}doToggleTab(f,d){const y=this.getContainerState(f);d===void 0?y.hidden=!y.hidden:y.hidden=!d,y.hidden&&this.currentContainerId.get()===f&&this.updateCurrentContainerId(this.visibleContainers[0].options.containerId),this.storeState()}shouldExpand(f){const d=this.getContainer(f);return!!(d&&d.options&&d.options.expanded)}onResize(){l.fastdom.measureAtNextFrame(()=>{if(!this.currentContainerId||!this.resizeHandle)return;const f=this.resizeHandle.getSize();f!==this.barSize&&!this.shouldExpand(this.currentContainerId.get())&&(this.prevSize=f,this.onSizeChangeEmitter.fire({size:f}))})}listenCurrentChange(){return(0,s.autorunDelta)(this.currentContainerId,({lastValue:f,newValue:d})=>{this.previousContainerId=f===u?"":f,this.handleChange(d,f)})}handleChange(f,d){var y;if(!this.resizeHandle)return;const{getSize:b,setSize:A,lockSize:S}=this.resizeHandle;this.onCurrentChangeEmitter.fire({previousId:d,currentId:f});const D=this.shouldExpand(f);if(this.shouldExpand(this.previousContainerId)||D)this.behaviorHandler.handleFullExpanded(f,D,this.resizeHandle,{barSize:this.barSize,panelSize:this.panelSize,prevSize:this.prevSize});else if(f){d&&f!==d&&(this.prevSize=b());const I=this.getContainer(f);A(this.prevSize||this.panelSize+this.barSize),S(!!(!((y=I?.options)===null||y===void 0)&&y.noResize)),this.activatedKey.set(f)}else A(this.barSize),S(!0)}tryRestoreAccordionSize(f){this.behaviorHandler.tryRestoreAccordionSize(f,this.layoutService)}};t.TabbarService=c,n.__decorate([(0,o.Autowired)(v.AbstractMenuService),n.__metadata("design:type",v.AbstractMenuService)],c.prototype,"menuService",void 0),n.__decorate([(0,o.Autowired)(v.AbstractContextMenuService),n.__metadata("design:type",v.AbstractContextMenuService)],c.prototype,"ctxMenuService",void 0),n.__decorate([(0,o.Autowired)(v.IMenuRegistry),n.__metadata("design:type",v.IMenuRegistry)],c.prototype,"menuRegistry",void 0),n.__decorate([(0,o.Autowired)(l.CommandRegistry),n.__metadata("design:type",Object)],c.prototype,"commandRegistry",void 0),n.__decorate([(0,o.Autowired)(v.ICtxMenuRenderer),n.__metadata("design:type",v.ICtxMenuRenderer)],c.prototype,"contextMenuRenderer",void 0),n.__decorate([(0,o.Autowired)(l.KeybindingRegistry),n.__metadata("design:type",Object)],c.prototype,"keybindingRegistry",void 0),n.__decorate([(0,o.Autowired)(),n.__metadata("design:type",l.ViewContextKeyRegistry)],c.prototype,"viewContextKeyRegistry",void 0),n.__decorate([(0,o.Autowired)(l.IContextKeyService),n.__metadata("design:type",Object)],c.prototype,"contextKeyService",void 0),n.__decorate([(0,o.Autowired)(g.IMainLayoutService),n.__metadata("design:type",Object)],c.prototype,"layoutService",void 0),n.__decorate([(0,o.Autowired)(),n.__metadata("design:type",_.LayoutState)],c.prototype,"layoutState",void 0),n.__decorate([(0,o.Autowired)(m.IProgressService),n.__metadata("design:type",Object)],c.prototype,"progressService",void 0),t.TabbarService=c=n.__decorate([(0,o.Injectable)({multiple:!0}),n.__metadata("design:paramtypes",[String])],c)},58296:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ViewsRegistry=t.ViewsController=t.ViewContentGroups=void 0;const n=e(85608),r=e(76003),o=e(41869),l=e(43718),_=e(17793);var v;(function(g){g.Open="2_open",g.Debug="4_debug",g.SCM="5_scm",g.More="9_more"})(v||(t.ViewContentGroups=v={}));function m(g,a){var h,u,c,E;const f=(h=g.group)!==null&&h!==void 0?h:v.More,d=(u=a.group)!==null&&u!==void 0?u:v.More;return f!==d?f.localeCompare(d):((c=g.order)!==null&&c!==void 0?c:5)-((E=a.order)!==null&&E!==void 0?E:5)}let p=class{get contents(){const a=this.items.filter(h=>h.visible);return a.length===0&&this.defaultItem?[this.defaultItem.descriptor]:a.map(h=>h.descriptor)}constructor(a){this.id=a,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,h=>h===this.id)(this.onDidChangeViewWelcomeContent,this,this.disposables),this.onDidChangeViewWelcomeContent()}onDidChangeViewWelcomeContent(){const a=this.viewsRegistry.getViewWelcomeContent(this.id);this.items=[];for(const h of a)if(h.when==="default")this.defaultItem={descriptor:h,visible:!0};else{const u=h.when?this.contextKeyService.match(h.when):!0;this.items.push({descriptor:h,visible:u})}this._onDidChange.fire()}onDidChangeContext(){let a=!1;for(const h of this.items){if(!h.descriptor.when||h.descriptor.when==="default")continue;const u=this.contextKeyService.match(h.descriptor.when);h.visible!==u&&(h.visible=u,a=!0)}a&&this._onDidChange.fire()}dispose(){this.disposables.forEach(a=>a.dispose()),this.disposables=[]}};t.ViewsController=p,n.__decorate([(0,r.Autowired)(o.IContextKeyService),n.__metadata("design:type",Object)],p.prototype,"contextKeyService",void 0),n.__decorate([(0,r.Autowired)(_.IViewsRegistry),n.__metadata("design:type",Object)],p.prototype,"viewsRegistry",void 0),t.ViewsController=p=n.__decorate([(0,r.Injectable)({multiple:!0}),n.__metadata("design:paramtypes",[String])],p);let s=class{constructor(){this.viewWelcomeContent=new l.SetMap,this._onDidChangeViewWelcomeContent=new o.Emitter,this.onDidChangeViewWelcomeContent=this._onDidChangeViewWelcomeContent.event}registerViewWelcomeContent(a,h){return this.viewWelcomeContent.add(a,h),this._onDidChangeViewWelcomeContent.fire(a),{dispose:()=>{this.viewWelcomeContent.delete(a,h),this._onDidChangeViewWelcomeContent.fire(a)}}}registerViewWelcomeContent2(a,h){const u=new Map;for(const[c,E]of h)this.viewWelcomeContent.add(a,E),u.set(c,(0,o.toDisposable)(()=>{this.viewWelcomeContent.delete(a,E),this._onDidChangeViewWelcomeContent.fire(a)}));return this._onDidChangeViewWelcomeContent.fire(a),u}getViewWelcomeContent(a){const h=[];return this.viewWelcomeContent.forEach(a,u=>h.push(u)),h.sort(m),h}};t.ViewsRegistry=s,t.ViewsRegistry=s=n.__decorate([(0,r.Injectable)()],s)},24429:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WelcomeView=t.CSSIcon=void 0,t.renderLabelWithIcons=a;const n=e(85608),r=n.__importDefault(e(53373)),o=n.__importDefault(e(14041)),l=e(48412),_=e(41869),v=e(43718),m=n.__importDefault(e(81388)),p=e(58296);var s;(function(c){c.iconNameSegment="[A-Za-z0-9]+",c.iconNameExpression="[A-Za-z0-9\\-]+",c.iconModifierExpression="~[A-Za-z]+"})(s||(t.CSSIcon=s={}));const g=new RegExp(`(\\\\)?\\$\\((${s.iconNameExpression}(?:${s.iconModifierExpression})?)\\)`,"g");function a(c){const E=new Array;let f,d=0,y=0;for(;(f=g.exec(c))!==null;){y=f.index||0,E.push(c.substring(d,y)),d=(f.index||0)+f[0].length;const[,b,A]=f;E.push(b?`$(${A})`:o.default.createElement("span",{className:(0,_.getExternalIcon)(A)}))}return d<c.length&&E.push(c.substring(d)),E}const h=c=>{const{contents:E}=c,[f,d]=o.default.useState(E.map(A=>A.precondition?!1:null)),y=(0,_.useInjectable)(_.IContextKeyService),b=(0,_.useInjectable)(_.IOpenerService);return o.default.useEffect(()=>{const A=E.map(D=>{if(D.precondition){const I=new Set;return D.precondition.keys().forEach(w=>I.add(w)),I}return null}),S=y.onDidChangeContext(D=>{A.forEach((I,w)=>{I&&D.payload.affectsSome(I)&&d(f.map((T,R)=>R===w?y.match(E[w].precondition):T))})});return()=>S.dispose()},[E]),E.length===0?null:o.default.createElement(o.default.Fragment,null,E.map(({content:A,precondition:S},D)=>{const I=A.split(`
|
|
32212
32212
|
`),w=[];for(let T of I){if(T=T.trim(),!T)continue;const R=(0,v.parseLinkedText)(T);if(R.nodes.length===1&&typeof R.nodes[0]!="string"){const P=R.nodes[0];w.push(o.default.createElement("div",{key:w.length,title:P.title,className:"button-container"},o.default.createElement(l.Button,{disabled:f[D]===!1,onClick:()=>b.open(P.href)},a(P.label))))}else{const P=R.nodes.map((O,M)=>typeof O=="string"?O:o.default.createElement("a",{key:M,className:(0,r.default)({disabled:O.href.startsWith("command:")&&f[D]===!1}),title:O.title,onClick:()=>b.open(O.href)},O.label));w.push(o.default.createElement("p",{key:w.length},P))}}return o.default.createElement(o.default.Fragment,{key:D},w)}))};function u(c,E){return c.viewId===E.viewId}t.WelcomeView=o.default.memo(c=>{const E=(0,_.useInjectable)(p.ViewsController,[c.viewId]),[f,d]=o.default.useState(E.contents);return o.default.useEffect(()=>{E.onDidChange(()=>{const y=E.contents;d(y)})},[]),f.length?o.default.createElement("div",{className:m.default.welcome},o.default.createElement(h,{contents:f})):null},u)},17793:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),e(85608).__exportStar(e(72260),t)},72260:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DROP_VIEW_CONTAINER=t.DROP_EXTEND_VIEW_CONTAINER=t.DROP_PANEL_CONTAINER=t.SUPPORT_ACCORDION_LOCATION=t.ViewCollapseChangedEvent=t.IViewsRegistry=t.TabBarRegistrationEvent=t.MainLayoutContribution=t.IMainLayoutService=void 0;const n=e(41869);t.IMainLayoutService=Symbol("IMainLayoutService"),t.MainLayoutContribution=Symbol("MainLayoutContribution");class r extends n.BasicEvent{}t.TabBarRegistrationEvent=r,t.IViewsRegistry=Symbol("IViewsRegistry");class o extends n.BasicEvent{}t.ViewCollapseChangedEvent=o,t.SUPPORT_ACCORDION_LOCATION=new Set([n.SlotLocation.view,n.SlotLocation.extendView]),t.DROP_PANEL_CONTAINER="drop-panel",t.DROP_EXTEND_VIEW_CONTAINER="drop-extend-view",t.DROP_VIEW_CONTAINER="drop-view"},63067:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),e(85608).__exportStar(e(17793),t)},93835:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EmbeddedMarkdownEditorContribution=t.MARKDOWN_EDITOR_COMPONENT_ID=void 0;const n=e(85608),r=e(76003),o=e(41869),l=e(43718),_=e(57517),v=e(21066),m=e(81001);t.MARKDOWN_EDITOR_COMPONENT_ID="MARKDOWN_EDITOR_COMPONENT_ID";let p=class{registerEditorComponent(g){g.registerEditorComponent({uid:t.MARKDOWN_EDITOR_COMPONENT_ID,component:m.MarkdownEditorComponent,scheme:l.Schemes.file}),g.registerEditorComponentResolver(l.Schemes.file,(a,h)=>{a.uri.path.ext===".md"&&h.push({type:_.EditorOpenType.component,componentId:t.MARKDOWN_EDITOR_COMPONENT_ID,title:(0,l.localize)("editorOpenType.preview"),weight:this.preferenceService.get("application.preferMarkdownPreview")?10:-1})})}};t.EmbeddedMarkdownEditorContribution=p,n.__decorate([(0,r.Autowired)(v.IMarkdownService),n.__metadata("design:type",Object)],p.prototype,"markdownService",void 0),n.__decorate([(0,r.Autowired)(o.PreferenceService),n.__metadata("design:type",Object)],p.prototype,"preferenceService",void 0),t.EmbeddedMarkdownEditorContribution=p=n.__decorate([(0,l.Domain)(_.BrowserEditorContribution)],p)},81001:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MarkdownEditorComponent=void 0;const r=e(85608).__importDefault(e(14041)),o=e(41869),l=e(57517),_=e(21066),v=({resource:m})=>{let p=null;const s=(0,o.useInjectable)(_.IMarkdownService),g=(0,o.useInjectable)(l.IEditorDocumentModelService);return r.default.useEffect(()=>{if(p){const a=new o.Disposable,h=new o.CancellationTokenSource;return a.addDispose({dispose:()=>{h.cancel()}}),g.createModelReference(m.uri,"markdown-preview").then(u=>{if(h.token.isCancellationRequested){u&&u.dispose();return}const c=new o.Emitter;a.addDispose(c),a.addDispose(u.instance.getMonacoModel().onDidChangeContent(E=>{c.fire(u.instance.getText())})),p&&s.previewMarkdownInContainer(u.instance.getText(),p,h.token,void 0,c.event).then(E=>{a.addDispose(E)}),a.addDispose(u)}),()=>{a.dispose()}}}),r.default.createElement("div",{ref:a=>{p=a},style:{height:"100%"}})};t.MarkdownEditorComponent=v},31101:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MarkdownModule=t.Markdown=void 0;const n=e(85608),r=e(76003),o=e(41869),l=e(21066),_=e(89637);var v=e(6001);Object.defineProperty(t,"Markdown",{enumerable:!0,get:function(){return v.Markdown}});let m=class extends o.BrowserModule{constructor(){super(...arguments),this.providers=[{token:l.IMarkdownService,useClass:_.MarkdownServiceImpl}]}};t.MarkdownModule=m,t.MarkdownModule=m=n.__decorate([(0,r.Injectable)()],m)},86422:(x,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.markdownCss=void 0,t.markdownCss=`
|
|
32213
32213
|
/*---------------------------------------------------------------------------------------------
|
|
32214
32214
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|