UNPKG

monaco-sqlpad-test

Version:

![preview.gif](https://upload-images.jianshu.io/upload_images/11287122-31aabe9832be213f.gif?imageMogr2/auto-orient/strip)

1 lines 2.57 MB
(function(e,t){"object"===typeof exports&&"object"===typeof module?module.exports=t():"function"===typeof define&&define.amd?define([],t):"object"===typeof exports?exports["monaco-sqlpad"]=t():e["monaco-sqlpad"]=t()})("undefined"!==typeof self?self:this,(function(){return function(e){function t(t){for(var n,o,r=t[0],s=t[1],a=0,u=[];a<r.length;a++)o=r[a],Object.prototype.hasOwnProperty.call(i,o)&&i[o]&&u.push(i[o][0]),i[o]=0;for(n in s)Object.prototype.hasOwnProperty.call(s,n)&&(e[n]=s[n]);c&&c(t);while(u.length)u.shift()()}var n={},i={1:0};function o(e){return r.p+"monaco-sqlpad.umd.min."+({}[e]||e)+".js"}function r(t){if(n[t])return n[t].exports;var i=n[t]={i:t,l:!1,exports:{}};return e[t].call(i.exports,i,i.exports,r),i.l=!0,i.exports}r.e=function(e){var t=[],n=i[e];if(0!==n)if(n)t.push(n[2]);else{var s=new Promise((function(t,o){n=i[e]=[t,o]}));t.push(n[2]=s);var a,u=document.createElement("script");u.charset="utf-8",u.timeout=120,r.nc&&u.setAttribute("nonce",r.nc),u.src=o(e);var c=new Error;a=function(t){u.onerror=u.onload=null,clearTimeout(l);var n=i[e];if(0!==n){if(n){var o=t&&("load"===t.type?"missing":t.type),r=t&&t.target&&t.target.src;c.message="Loading chunk "+e+" failed.\n("+o+": "+r+")",c.name="ChunkLoadError",c.type=o,c.request=r,n[1](c)}i[e]=void 0}};var l=setTimeout((function(){a({type:"timeout",target:u})}),12e4);u.onerror=u.onload=a,document.head.appendChild(u)}return Promise.all(t)},r.m=e,r.c=n,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)r.d(n,i,function(t){return e[t]}.bind(null,i));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r.oe=function(e){throw console.error(e),e};var s=("undefined"!==typeof self?self:this)["webpackJsonpmonaco_sqlpad"]=("undefined"!==typeof self?self:this)["webpackJsonpmonaco_sqlpad"]||[],a=s.push.bind(s);s.push=t,s=s.slice();for(var u=0;u<s.length;u++)t(s[u]);var c=a;return r(r.s="fb15")}({"00a3":function(e,t,n){"use strict";n.d(t,"b",(function(){return l})),n.d(t,"a",(function(){return d}));var i=n("11f7"),o=n("30db"),r=n("0f70"),s=n("e757"),a=n("5d28"),u=n("a666"),c=n("0a31");function l(e,t){var n=new a["b"](t);return n.preventDefault(),{leftButton:n.leftButton,buttons:n.buttons,posx:n.posx,posy:n.posy}}var d=function(){function e(){this._hooks=new u["b"],this._mouseMoveEventMerger=null,this._mouseMoveCallback=null,this._onStopCallback=null}return e.prototype.dispose=function(){this.stopMonitoring(!1),this._hooks.dispose()},e.prototype.stopMonitoring=function(e){if(this.isMonitoring()){this._hooks.clear(),this._mouseMoveEventMerger=null,this._mouseMoveCallback=null;var t=this._onStopCallback;this._onStopCallback=null,e&&t&&t()}},e.prototype.isMonitoring=function(){return!!this._mouseMoveEventMerger},e.prototype.startMonitoring=function(e,t,n,u,l){var d=this;if(!this.isMonitoring()){this._mouseMoveEventMerger=n,this._mouseMoveCallback=u,this._onStopCallback=l;var h=s["a"].getSameOriginWindowChain(),p=o["c"]&&c["a"].pointerEvents?"pointermove":"mousemove",f=o["c"]&&c["a"].pointerEvents?"pointerup":"mouseup",g=h.map((function(e){return e.window.document})),m=i["E"](e);m&&g.unshift(m);for(var v=0,b=g;v<b.length;v++){var _=b[v];this._hooks.add(i["m"](_,p,(function(e){r["i"]||e.buttons===t?d._mouseMoveCallback(e):d.stopMonitoring(!0)}),(function(e,t){return d._mouseMoveEventMerger(e,t)}))),this._hooks.add(i["j"](_,f,(function(e){return d.stopMonitoring(!0)})))}if(s["a"].hasDifferentOriginAncestor()){var y=h[h.length-1];this._hooks.add(i["j"](y.window.document,"mouseout",(function(e){var t=new a["b"](e);"html"===t.target.tagName.toLowerCase()&&d.stopMonitoring(!0)}))),this._hooks.add(i["j"](y.window.document,"mouseover",(function(e){var t=new a["b"](e);"html"===t.target.tagName.toLowerCase()&&d.stopMonitoring(!0)}))),this._hooks.add(i["j"](y.window.document.body,"mouseleave",(function(e){d.stopMonitoring(!0)})))}}},e}()},"01b0":function(e,t,n){var i=n("e523");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);var o=n("499e").default;o("814526bc",i,!0,{sourceMap:!1,shadowMode:!1})},"01ca":function(e,t,n){t=e.exports=n("2350")(!1),t.push([e.i,".monaco-editor .lines-content .cslr{position:absolute}.monaco-editor .top-left-radius{border-top-left-radius:3px}.monaco-editor .bottom-left-radius{border-bottom-left-radius:3px}.monaco-editor .top-right-radius{border-top-right-radius:3px}.monaco-editor .bottom-right-radius{border-bottom-right-radius:3px}.monaco-editor.hc-black .top-left-radius{border-top-left-radius:0}.monaco-editor.hc-black .bottom-left-radius{border-bottom-left-radius:0}.monaco-editor.hc-black .top-right-radius{border-top-right-radius:0}.monaco-editor.hc-black .bottom-right-radius{border-bottom-right-radius:0}",""])},"01e1":function(e,t,n){t=e.exports=n("2350")(!1),t.push([e.i,".monaco-icon-label{display:-webkit-box;display:-ms-flexbox;display:flex;overflow:hidden;text-overflow:ellipsis}.monaco-icon-label:before{background-size:16px;background-position:0;background-repeat:no-repeat;padding-right:6px;width:16px;height:22px;line-height:inherit!important;display:inline-block;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;vertical-align:top;-ms-flex-negative:0;flex-shrink:0}.monaco-icon-label>.monaco-icon-label-container{min-width:0;overflow:hidden;text-overflow:ellipsis;-webkit-box-flex:1;-ms-flex:1;flex:1}.monaco-icon-label>.monaco-icon-label-container>.monaco-icon-name-container>.label-name{color:inherit;white-space:pre}.monaco-icon-label>.monaco-icon-label-container>.monaco-icon-name-container>.label-name>.label-separator{margin:0 2px;opacity:.5}.monaco-icon-label>.monaco-icon-label-container>.monaco-icon-description-container>.label-description{opacity:.7;margin-left:.5em;font-size:.9em;white-space:pre}.monaco-icon-label.italic>.monaco-icon-description-container>.label-description,.monaco-icon-label.italic>.monaco-icon-label-container>.monaco-icon-name-container>.label-name{font-style:italic}.monaco-icon-label:after{opacity:.75;font-size:90%;font-weight:600;padding:0 16px 0 5px;text-align:center}.monaco-list:focus .selected .monaco-icon-label,.monaco-list:focus .selected .monaco-icon-label:after,.monaco-tree.focused .selected .monaco-icon-label,.monaco-tree.focused .selected .monaco-icon-label:after{color:inherit!important}.monaco-list-row.focused.selected .label-description,.monaco-list-row.selected .label-description,.monaco-tree-row.focused.selected .label-description,.monaco-tree-row.selected .label-description{opacity:.8}",""])},"01f9":function(e,t,n){"use strict";var i=n("2d00"),o=n("5ca1"),r=n("2aba"),s=n("32e9"),a=n("84f2"),u=n("41a0"),c=n("7f20"),l=n("38fd"),d=n("2b4c")("iterator"),h=!([].keys&&"next"in[].keys()),p="@@iterator",f="keys",g="values",m=function(){return this};e.exports=function(e,t,n,v,b,_,y){u(n,t,v);var w,C,S,x=function(e){if(!h&&e in E)return E[e];switch(e){case f:return function(){return new n(this,e)};case g:return function(){return new n(this,e)}}return function(){return new n(this,e)}},O=t+" Iterator",L=b==g,k=!1,E=e.prototype,N=E[d]||E[p]||b&&E[b],D=N||x(b),I=b?L?x("entries"):D:void 0,T="Array"==t&&E.entries||N;if(T&&(S=l(T.call(new e)),S!==Object.prototype&&S.next&&(c(S,O,!0),i||"function"==typeof S[d]||s(S,d,m))),L&&N&&N.name!==g&&(k=!0,D=function(){return N.call(this)}),i&&!y||!h&&!k&&E[d]||s(E,d,D),a[t]=D,a[O]=m,b)if(w={values:L?D:x(g),keys:_?D:x(f),entries:I},y)for(C in w)C in E||r(E,C,w[C]);else o(o.P+o.F*(h||k),t,w);return w}},"0210":function(e,t,n){"use strict";n.r(t),n.d(t,"GotoLineEntry",(function(){return p})),n.d(t,"GotoLineAction",(function(){return f}));n("0bda");var i=n("3742"),o=n("469c"),r=n("b055"),s=n("b2cc"),a=n("7061"),u=n("6a89"),c=n("c101"),l=n("af33"),d=n("03d9"),h=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),p=function(e){function t(t,n,i){var o=e.call(this)||this;return o.editor=n,o.decorator=i,o.parseResult=o.parseInput(t),o}return h(t,e),t.prototype.parseInput=function(e){var t,n,o=e.split(",").map((function(e){return parseInt(e,10)})).filter((function(e){return!isNaN(e)}));if(t=0===o.length?new a["a"](-1,-1):1===o.length?new a["a"](o[0],1):new a["a"](o[0],o[1]),Object(r["a"])(this.editor))n=this.editor.getModel();else{var s=this.editor.getModel();n=s?s.modified:null}var u,c=!!n&&n.validatePosition(t).equals(t);return u=c?t.column&&t.column>1?i["r"](d["b"].gotoLineLabelValidLineAndColumn,t.lineNumber,t.column):i["r"](d["b"].gotoLineLabelValidLine,t.lineNumber):t.lineNumber<1||t.lineNumber>(n?n.getLineCount():0)?i["r"](d["b"].gotoLineLabelEmptyWithLineLimit,n?n.getLineCount():0):i["r"](d["b"].gotoLineLabelEmptyWithLineAndColumnLimit,n?n.getLineMaxColumn(t.lineNumber):0),{position:t,isValid:c,label:u}},t.prototype.getLabel=function(){return this.parseResult.label},t.prototype.getAriaLabel=function(){var e=this.editor.getPosition(),t=e?e.lineNumber:0;return i["r"](d["b"].gotoLineAriaLabel,t,this.parseResult.label)},t.prototype.run=function(e,t){return 1===e?this.runOpen():this.runPreview()},t.prototype.runOpen=function(){if(!this.parseResult.isValid)return!1;var e=this.toSelection();return this.editor.setSelection(e),this.editor.revealRangeInCenter(e,0),this.editor.focus(),!0},t.prototype.runPreview=function(){if(!this.parseResult.isValid)return this.decorator.clearDecorations(),!1;var e=this.toSelection();return this.editor.revealRangeInCenter(e,0),this.decorator.decorateLine(e,this.editor),!1},t.prototype.toSelection=function(){return new u["a"](this.parseResult.position.lineNumber,this.parseResult.position.column,this.parseResult.position.lineNumber,this.parseResult.position.column)},t}(o["a"]),f=function(e){function t(){return e.call(this,d["b"].gotoLineActionInput,{id:"editor.action.gotoLine",label:d["b"].gotoLineActionLabel,alias:"Go to Line...",precondition:void 0,kbOpts:{kbExpr:c["a"].focus,primary:2085,mac:{primary:293},weight:100}})||this}return h(t,e),t.prototype.run=function(e,t){var n=this;this._show(this.getController(t),{getModel:function(e){return new o["c"]([new p(e,t,n.getController(t))])},getAutoFocus:function(e){return{autoFocusFirstEntry:e.length>0}}})},t}(l["a"]);Object(s["f"])(f)},"02f4":function(e,t,n){var i=n("4588"),o=n("be13");e.exports=function(e){return function(t,n){var r,s,a=String(o(t)),u=i(n),c=a.length;return u<0||u>=c?e?"":void 0:(r=a.charCodeAt(u),r<55296||r>56319||u+1===c||(s=a.charCodeAt(u+1))<56320||s>57343?e?a.charAt(u):r:e?a.slice(u,u+2):s-56320+(r-55296<<10)+65536)}}},"0390":function(e,t,n){"use strict";var i=n("02f4")(!0);e.exports=function(e,t,n){return t+(n?i(e,t).length:1)}},"03d9":function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"c",(function(){return o})),n.d(t,"b",(function(){return r})),n.d(t,"d",(function(){return s})),n.d(t,"e",(function(){return a})),n.d(t,"g",(function(){return u})),n.d(t,"h",(function(){return c})),n.d(t,"f",(function(){return l}));var i,o,r,s,a,u,c,l,d=n("dff7");(function(e){e.noSelection=d["a"]("noSelection","No selection"),e.singleSelectionRange=d["a"]("singleSelectionRange","Line {0}, Column {1} ({2} selected)"),e.singleSelection=d["a"]("singleSelection","Line {0}, Column {1}"),e.multiSelectionRange=d["a"]("multiSelectionRange","{0} selections ({1} characters selected)"),e.multiSelection=d["a"]("multiSelection","{0} selections"),e.emergencyConfOn=d["a"]("emergencyConfOn","Now changing the setting `accessibilitySupport` to 'on'."),e.openingDocs=d["a"]("openingDocs","Now opening the Editor Accessibility documentation page."),e.readonlyDiffEditor=d["a"]("readonlyDiffEditor"," in a read-only pane of a diff editor."),e.editableDiffEditor=d["a"]("editableDiffEditor"," in a pane of a diff editor."),e.readonlyEditor=d["a"]("readonlyEditor"," in a read-only code editor"),e.editableEditor=d["a"]("editableEditor"," in a code editor"),e.changeConfigToOnMac=d["a"]("changeConfigToOnMac","To configure the editor to be optimized for usage with a Screen Reader press Command+E now."),e.changeConfigToOnWinLinux=d["a"]("changeConfigToOnWinLinux","To configure the editor to be optimized for usage with a Screen Reader press Control+E now."),e.auto_on=d["a"]("auto_on","The editor is configured to be optimized for usage with a Screen Reader."),e.auto_off=d["a"]("auto_off","The editor is configured to never be optimized for usage with a Screen Reader, which is not the case at this time."),e.tabFocusModeOnMsg=d["a"]("tabFocusModeOnMsg","Pressing Tab in the current editor will move focus to the next focusable element. Toggle this behavior by pressing {0}."),e.tabFocusModeOnMsgNoKb=d["a"]("tabFocusModeOnMsgNoKb","Pressing Tab in the current editor will move focus to the next focusable element. The command {0} is currently not triggerable by a keybinding."),e.tabFocusModeOffMsg=d["a"]("tabFocusModeOffMsg","Pressing Tab in the current editor will insert the tab character. Toggle this behavior by pressing {0}."),e.tabFocusModeOffMsgNoKb=d["a"]("tabFocusModeOffMsgNoKb","Pressing Tab in the current editor will insert the tab character. The command {0} is currently not triggerable by a keybinding."),e.openDocMac=d["a"]("openDocMac","Press Command+H now to open a browser window with more information related to editor accessibility."),e.openDocWinLinux=d["a"]("openDocWinLinux","Press Control+H now to open a browser window with more information related to editor accessibility."),e.outroMsg=d["a"]("outroMsg","You can dismiss this tooltip and return to the editor by pressing Escape or Shift+Escape."),e.showAccessibilityHelpAction=d["a"]("showAccessibilityHelpAction","Show Accessibility Help")})(i||(i={})),function(e){e.inspectTokensAction=d["a"]("inspectTokens","Developer: Inspect Tokens")}(o||(o={})),function(e){e.gotoLineLabelValidLineAndColumn=d["a"]("gotoLineLabelValidLineAndColumn","Go to line {0} and character {1}"),e.gotoLineLabelValidLine=d["a"]("gotoLineLabelValidLine","Go to line {0}"),e.gotoLineLabelEmptyWithLineLimit=d["a"]("gotoLineLabelEmptyWithLineLimit","Type a line number between 1 and {0} to navigate to"),e.gotoLineLabelEmptyWithLineAndColumnLimit=d["a"]("gotoLineLabelEmptyWithLineAndColumnLimit","Type a character between 1 and {0} to navigate to"),e.gotoLineAriaLabel=d["a"]("gotoLineAriaLabel","Current Line: {0}. Go to line {1}."),e.gotoLineActionInput=d["a"]("gotoLineActionInput","Type a line number, followed by an optional colon and a character number to navigate to"),e.gotoLineActionLabel=d["a"]("gotoLineActionLabel","Go to Line...")}(r||(r={})),function(e){e.ariaLabelEntryWithKey=d["a"]("ariaLabelEntryWithKey","{0}, {1}, commands"),e.ariaLabelEntry=d["a"]("ariaLabelEntry","{0}, commands"),e.quickCommandActionInput=d["a"]("quickCommandActionInput","Type the name of an action you want to execute"),e.quickCommandActionLabel=d["a"]("quickCommandActionLabel","Command Palette")}(s||(s={})),function(e){e.entryAriaLabel=d["a"]("entryAriaLabel","{0}, symbols"),e.quickOutlineActionInput=d["a"]("quickOutlineActionInput","Type the name of an identifier you wish to navigate to"),e.quickOutlineActionLabel=d["a"]("quickOutlineActionLabel","Go to Symbol..."),e._symbols_=d["a"]("symbols","symbols ({0})"),e._modules_=d["a"]("modules","modules ({0})"),e._class_=d["a"]("class","classes ({0})"),e._interface_=d["a"]("interface","interfaces ({0})"),e._method_=d["a"]("method","methods ({0})"),e._function_=d["a"]("function","functions ({0})"),e._property_=d["a"]("property","properties ({0})"),e._variable_=d["a"]("variable","variables ({0})"),e._variable2_=d["a"]("variable2","variables ({0})"),e._constructor_=d["a"]("_constructor","constructors ({0})"),e._call_=d["a"]("call","calls ({0})")}(a||(a={})),function(e){e.editorViewAccessibleLabel=d["a"]("editorViewAccessibleLabel","Editor content"),e.accessibilityHelpMessageIE=d["a"]("accessibilityHelpMessageIE","Press Ctrl+F1 for Accessibility Options."),e.accessibilityHelpMessage=d["a"]("accessibilityHelpMessage","Press Alt+F1 for Accessibility Options.")}(u||(u={})),function(e){e.toggleHighContrast=d["a"]("toggleHighContrast","Toggle High Contrast Theme")}(c||(c={})),function(e){e.bulkEditServiceSummary=d["a"]("bulkEditServiceSummary","Made {0} edits in {1} files")}(l||(l={}))},"03e8":function(e,t,n){"use strict";n.d(t,"a",(function(){return c})),n.d(t,"c",(function(){return i})),n.d(t,"b",(function(){return l}));var i,o=n("0a0f"),r=n("308f"),s=n("a666"),a=n("ef8e"),u=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),c=Object(o["c"])("storageService");(function(e){e[e["NONE"]=0]="NONE",e[e["SHUTDOWN"]=1]="SHUTDOWN"})(i||(i={}));var l=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._onDidChangeStorage=t._register(new r["a"]),t.onDidChangeStorage=t._onDidChangeStorage.event,t._onWillSaveState=t._register(new r["a"]),t.onWillSaveState=t._onWillSaveState.event,t.globalCache=new Map,t.workspaceCache=new Map,t}return u(t,e),t.prototype.getCache=function(e){return 0===e?this.globalCache:this.workspaceCache},t.prototype.get=function(e,t,n){var i=this.getCache(t).get(e);return Object(a["l"])(i)?n:i},t.prototype.getBoolean=function(e,t,n){var i=this.getCache(t).get(e);return Object(a["l"])(i)?n:"true"===i},t.prototype.store=function(e,t,n){if(Object(a["l"])(t))return this.remove(e,n);var i=String(t),o=this.getCache(n).get(e);return o===i||(this.getCache(n).set(e,i),this._onDidChangeStorage.fire({scope:n,key:e})),Promise.resolve()},t.prototype.remove=function(e,t){var n=this.getCache(t).delete(e);return n?(this._onDidChangeStorage.fire({scope:t,key:e}),Promise.resolve()):Promise.resolve()},t}(s["a"])},"045b":function(e,t,n){"use strict";function i(e,t){var n=e.getCount(),i=e.findTokenIndexAtOffset(t),r=e.getLanguageId(i),s=i;while(s+1<n&&e.getLanguageId(s+1)===r)s++;var a=i;while(a>0&&e.getLanguageId(a-1)===r)a--;return new o(e,r,a,s+1,e.getStartOffset(a),e.getEndOffset(s))}n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return r}));var o=function(){function e(e,t,n,i,o,r){this._actual=e,this.languageId=t,this._firstTokenIndex=n,this._lastTokenIndex=i,this.firstCharOffset=o,this._lastCharOffset=r}return e.prototype.getLineContent=function(){var e=this._actual.getLineContent();return e.substring(this.firstCharOffset,this._lastCharOffset)},e.prototype.getActualLineContentBefore=function(e){var t=this._actual.getLineContent();return t.substring(0,this.firstCharOffset+e)},e.prototype.getTokenCount=function(){return this._lastTokenIndex-this._firstTokenIndex},e.prototype.findTokenIndexAtOffset=function(e){return this._actual.findTokenIndexAtOffset(e+this.firstCharOffset)-this._firstTokenIndex},e.prototype.getStandardTokenType=function(e){return this._actual.getStandardTokenType(e+this._firstTokenIndex)},e}();function r(e){return 0!==(7&e)}},"0632":function(e,t,n){var i=n("ac2c");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);var o=n("499e").default;o("8f3d0f46",i,!0,{sourceMap:!1,shadowMode:!1})},"0829":function(e,t,n){var i=n("5cda");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);var o=n("499e").default;o("5a2011a1",i,!0,{sourceMap:!1,shadowMode:!1})},"0876":function(e,t,n){var i=n("ef03");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);var o=n("499e").default;o("fc2a3c5a",i,!0,{sourceMap:!1,shadowMode:!1})},"0910":function(e,t,n){"use strict";n.d(t,"a",(function(){return c})),n.d(t,"b",(function(){return y}));var i=n("dff7"),o=n("308f"),r=n("89cd"),s=n("ef8e"),a=n("dd1b"),u=n("4035"),c={Configuration:"base.contributions.configuration"},l={properties:{},patternProperties:{}},d={properties:{},patternProperties:{}},h={properties:{},patternProperties:{}},p={properties:{},patternProperties:{}},f={properties:{},patternProperties:{}},g={properties:{},patternProperties:{}},m="vscode://schemas/settings/resourceLanguage",v=r["a"].as(a["a"].JSONContribution),b=function(){function e(){this.overrideIdentifiers=new Set,this._onDidSchemaChange=new o["a"],this._onDidUpdateConfiguration=new o["a"],this.defaultOverridesConfigurationNode={id:"defaultOverrides",title:i["a"]("defaultConfigurations.title","Default Configuration Overrides"),properties:{}},this.configurationContributors=[this.defaultOverridesConfigurationNode],this.resourceLanguageSettingsSchema={properties:{},patternProperties:{},additionalProperties:!1,errorMessage:"Unknown editor configuration setting",allowTrailingCommas:!0,allowComments:!0},this.configurationProperties={},this.excludedConfigurationProperties={},v.registerSchema(m,this.resourceLanguageSettingsSchema)}return e.prototype.registerConfiguration=function(e,t){void 0===t&&(t=!0),this.registerConfigurations([e],t)},e.prototype.registerConfigurations=function(e,t){var n=this;void 0===t&&(t=!0);var i=[];e.forEach((function(e){i.push.apply(i,n.validateAndRegisterProperties(e,t)),n.configurationContributors.push(e),n.registerJSONConfiguration(e)})),v.registerSchema(m,this.resourceLanguageSettingsSchema),this._onDidSchemaChange.fire(),this._onDidUpdateConfiguration.fire(i)},e.prototype.registerOverrideIdentifiers=function(e){for(var t=0,n=e;t<n.length;t++){var i=n[t];this.overrideIdentifiers.add(i)}this.updateOverridePropertyPatternKey()},e.prototype.validateAndRegisterProperties=function(e,t,n){void 0===t&&(t=!0),void 0===n&&(n=3),n=s["l"](e.scope)?n:e.scope;var i=[],o=e.properties;if(o)for(var r in o)if(t&&S(r))delete o[r];else{var a=o[r],u=a.default;s["k"](u)&&(a.default=w(a.type)),y.test(r)?a.scope=void 0:a.scope=s["l"](a.scope)?n:a.scope,!o[r].hasOwnProperty("included")||o[r].included?(this.configurationProperties[r]=o[r],i.push(r)):(this.excludedConfigurationProperties[r]=o[r],delete o[r])}var c=e.allOf;if(c)for(var l=0,d=c;l<d.length;l++){var h=d[l];i.push.apply(i,this.validateAndRegisterProperties(h,t,n))}return i},e.prototype.getConfigurationProperties=function(){return this.configurationProperties},e.prototype.registerJSONConfiguration=function(e){var t=this,n=function(e){var i=e.properties;if(i)for(var o in i)switch(l.properties[o]=i[o],i[o].scope){case 1:d.properties[o]=i[o];break;case 2:h.properties[o]=i[o];break;case 6:p.properties[o]=i[o];break;case 3:f.properties[o]=i[o];break;case 4:g.properties[o]=i[o];break;case 5:g.properties[o]=i[o],t.resourceLanguageSettingsSchema.properties[o]=i[o];break}var r=e.allOf;r&&r.forEach(n)};n(e)},e.prototype.updateOverridePropertyPatternKey=function(){for(var e,t=0,n=Object(u["e"])(this.overrideIdentifiers);t<n.length;t++){var o=n[t],r="["+o+"]",s={type:"object",description:i["a"]("overrideSettings.defaultDescription","Configure editor settings to be overridden for a language."),errorMessage:i["a"]("overrideSettings.errorMessage","This setting does not support per-language configuration."),$ref:m,default:null===(e=this.defaultOverridesConfigurationNode.properties[r])||void 0===e?void 0:e.default};l.properties[r]=s,d.properties[r]=s,h.properties[r]=s,p.properties[r]=s,f.properties[r]=s,g.properties[r]=s}this._onDidSchemaChange.fire()},e}(),_="\\[.*\\]$",y=new RegExp(_);function w(e){var t=Array.isArray(e)?e[0]:e;switch(t){case"boolean":return!1;case"integer":case"number":return 0;case"string":return"";case"array":return[];case"object":return{};default:return null}}var C=new b;function S(e){return y.test(e)?i["a"]("config.property.languageDefault","Cannot register '{0}'. This matches property pattern '\\\\[.*\\\\]$' for describing language specific editor settings. Use 'configurationDefaults' contribution.",e):void 0!==C.getConfigurationProperties()[e]?i["a"]("config.property.duplicate","Cannot register '{0}'. This property is already registered.",e):null}r["a"].add(c.Configuration,C)},"099d":function(e,t,n){"use strict";function i(e){return e<0?0:e>255?255:0|e}function o(e){return e<0?0:e>4294967295?4294967295:0|e}n.d(t,"b",(function(){return i})),n.d(t,"a",(function(){return o}))},"0a0f":function(e,t,n){"use strict";var i;n.d(t,"b",(function(){return i})),n.d(t,"a",(function(){return o})),n.d(t,"c",(function(){return s})),n.d(t,"d",(function(){return a})),function(e){function t(t){return t[e.DI_DEPENDENCIES]||[]}e.serviceIds=new Map,e.DI_TARGET="$di$target",e.DI_DEPENDENCIES="$di$dependencies",e.getServiceDependencies=t}(i||(i={}));var o=s("instantiationService");function r(e,t,n,o){t[i.DI_TARGET]===t?t[i.DI_DEPENDENCIES].push({id:e,index:n,optional:o}):(t[i.DI_DEPENDENCIES]=[{id:e,index:n,optional:o}],t[i.DI_TARGET]=t)}function s(e){if(i.serviceIds.has(e))return i.serviceIds.get(e);var t=function(e,n,i){if(3!==arguments.length)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");r(t,e,i,!1)};return t.toString=function(){return e},i.serviceIds.set(e,t),t}function a(e){return function(t,n,i){if(3!==arguments.length)throw new Error("@optional-decorator can only be used to decorate a parameter");r(e,t,i,!0)}}},"0a31":function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var i=n("0f70"),o=n("30db"),r={clipboard:{writeText:o["f"]||document.queryCommandSupported&&document.queryCommandSupported("copy")||!!(navigator&&navigator.clipboard&&navigator.clipboard.writeText),readText:o["f"]||!!(navigator&&navigator.clipboard&&navigator.clipboard.readText),richText:function(){if(i["i"])return!1;if(i["e"]){var e=navigator.userAgent.indexOf("Edge/"),t=parseInt(navigator.userAgent.substring(e+5,navigator.userAgent.indexOf(".",e)),10);if(!t||t>=12&&t<=16)return!1}return!0}()},keyboard:function(){return o["f"]||i["l"]?0:navigator.keyboard||i["k"]?1:2}(),touch:"ontouchstart"in window||navigator.maxTouchPoints>0||window.navigator.msMaxTouchPoints>0,pointerEvents:window.PointerEvent&&("ontouchstart"in window||window.navigator.maxTouchPoints>0||navigator.maxTouchPoints>0||window.navigator.msMaxTouchPoints>0)}},"0a33":function(e,t,n){var i=n("cb64");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);var o=n("499e").default;o("c01a38d8",i,!0,{sourceMap:!1,shadowMode:!1})},"0a49":function(e,t,n){var i=n("9b43"),o=n("626a"),r=n("4bf8"),s=n("9def"),a=n("cd1c");e.exports=function(e,t){var n=1==e,u=2==e,c=3==e,l=4==e,d=6==e,h=5==e||d,p=t||a;return function(t,a,f){for(var g,m,v=r(t),b=o(v),_=i(a,f,3),y=s(b.length),w=0,C=n?p(t,y):u?p(t,0):void 0;y>w;w++)if((h||w in b)&&(g=b[w],m=_(g,w,v),e))if(n)C[w]=m;else if(m)switch(e){case 3:return!0;case 5:return g;case 6:return w;case 2:C.push(g)}else if(l)return!1;return d?-1:c||l?l:C}}},"0a89":function(e,t,n){"use strict";n.d(t,"b",(function(){return s})),n.d(t,"a",(function(){return a}));var i=n("3742"),o=n("7061"),r=n("6a89"),s=function(){function e(e,t,n,i,o){this.value=e,this.selectionStart=t,this.selectionEnd=n,this.selectionStartPosition=i,this.selectionEndPosition=o}return e.prototype.toString=function(){return"[ <"+this.value+">, selectionStart: "+this.selectionStart+", selectionEnd: "+this.selectionEnd+"]"},e.readFromTextArea=function(t){return new e(t.getValue(),t.getSelectionStart(),t.getSelectionEnd(),null,null)},e.prototype.collapseSelection=function(){return new e(this.value,this.value.length,this.value.length,null,null)},e.prototype.writeToTextArea=function(e,t,n){t.setValue(e,this.value),n&&t.setSelectionRange(e,this.selectionStart,this.selectionEnd)},e.prototype.deduceEditorPosition=function(e){if(e<=this.selectionStart){var t=this.value.substring(e,this.selectionStart);return this._finishDeduceEditorPosition(this.selectionStartPosition,t,-1)}if(e>=this.selectionEnd){t=this.value.substring(this.selectionEnd,e);return this._finishDeduceEditorPosition(this.selectionEndPosition,t,1)}var n=this.value.substring(this.selectionStart,e);if(-1===n.indexOf(String.fromCharCode(8230)))return this._finishDeduceEditorPosition(this.selectionStartPosition,n,1);var i=this.value.substring(e,this.selectionEnd);return this._finishDeduceEditorPosition(this.selectionEndPosition,i,-1)},e.prototype._finishDeduceEditorPosition=function(e,t,n){var i=0,o=-1;while(-1!==(o=t.indexOf("\n",o+1)))i++;return[e,n*t.length,i]},e.selectedText=function(t){return new e(t,0,t.length,null,null)},e.deduceInput=function(e,t,n){if(!e)return{text:"",replaceCharCnt:0};var o=e.value,r=e.selectionStart,s=e.selectionEnd,a=t.value,u=t.selectionStart,c=t.selectionEnd,l=o.substring(s),d=a.substring(c),h=i["d"](l,d);a=a.substring(0,a.length-h),o=o.substring(0,o.length-h);var p=o.substring(0,r),f=a.substring(0,u),g=i["c"](p,f);if(a=a.substring(g),o=o.substring(g),u-=g,r-=g,c-=g,s-=g,n&&u===c&&o.length>0){var m=null;if(u===a.length?i["N"](a,o)&&(m=a.substring(o.length)):i["m"](a,o)&&(m=a.substring(0,a.length-o.length)),null!==m&&m.length>0&&(/\uFE0F/.test(m)||i["g"](m)))return{text:m,replaceCharCnt:0}}if(u===c){if(o===a&&0===r&&s===o.length&&u===a.length&&-1===a.indexOf("\n")&&i["h"](a))return{text:"",replaceCharCnt:0};var v=p.length-g;return{text:a,replaceCharCnt:v}}var b=s-r;return{text:a,replaceCharCnt:b}},e.EMPTY=new e("",0,0,null,null),e}(),a=function(){function e(){}return e._getPageOfLine=function(e,t){return Math.floor((e-1)/t)},e._getRangeForPage=function(e,t){var n=e*t,i=n+1,o=n+t;return new r["a"](i,1,o+1,1)},e.fromEditorSelection=function(t,n,i,a,u){var c,l=e._getPageOfLine(i.startLineNumber,a),d=e._getRangeForPage(l,a),h=e._getPageOfLine(i.endLineNumber,a),p=e._getRangeForPage(h,a),f=d.intersectRanges(new r["a"](1,1,i.startLineNumber,i.startColumn)),g=n.getValueInRange(f,1),m=n.getLineCount(),v=n.getLineMaxColumn(m),b=p.intersectRanges(new r["a"](i.endLineNumber,i.endColumn,m,v)),_=n.getValueInRange(b,1);if(l===h||l+1===h)c=n.getValueInRange(i,1);else{var y=d.intersectRanges(i),w=p.intersectRanges(i);c=n.getValueInRange(y,1)+String.fromCharCode(8230)+n.getValueInRange(w,1)}if(u){var C=500;g.length>C&&(g=g.substring(g.length-C,g.length)),_.length>C&&(_=_.substring(0,C)),c.length>2*C&&(c=c.substring(0,C)+String.fromCharCode(8230)+c.substring(c.length-C,c.length))}return new s(g+c+_,g.length,g.length+c.length,new o["a"](i.startLineNumber,i.startColumn),new o["a"](i.endLineNumber,i.endColumn))},e}()},"0b11":function(e,t,n){"use strict";n.r(t);var i=n("b2cc"),o=n("0b54");Object(i["h"])(o["f"].ID,o["f"]),Object(i["f"])(o["e"]),Object(i["f"])(o["g"]),Object(i["f"])(o["h"]),Object(i["f"])(o["d"]),Object(i["f"])(o["a"]),Object(i["f"])(o["c"]),Object(i["g"])(new o["b"])},"0b54":function(e,t,n){"use strict";n.d(t,"f",(function(){return be})),n.d(t,"e",(function(){return Ce})),n.d(t,"b",(function(){return Se})),n.d(t,"g",(function(){return xe})),n.d(t,"h",(function(){return Oe})),n.d(t,"d",(function(){return Le})),n.d(t,"c",(function(){return ke})),n.d(t,"a",(function(){return Ee}));var i,o=function(){function e(e){this.executor=e,this._didRun=!1}return e.prototype.getValue=function(){if(!this._didRun)try{this._value=this.executor()}catch(e){this._error=e}finally{this._didRun=!0}if(this._error)throw this._error;return this._value},Object.defineProperty(e.prototype,"rawValue",{get:function(){return this._value},enumerable:!0,configurable:!0}),e}(),r=n("a666"),s=n("3742"),a=n("b2cc"),u=n("c7f5"),c=n("c101"),l=n("8495"),d=n("e8e3"),h=n("fdcc"),p=n("351f"),f=n("0a0f"),g=n("11f7"),m=n("5aa5"),v=n("f070"),b=n("7061"),_=n("b707"),y=n("9e56"),w=n("533b"),C=n("6dec"),S=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),x=function(){return x=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},x.apply(this,arguments)},O=function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},L=function(e,t){return function(n,i){t(n,i,e)}},k=function(e,t,n,i){function o(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,r){function s(e){try{u(i.next(e))}catch(t){r(t)}}function a(e){try{u(i["throw"](e))}catch(t){r(t)}}function u(e){e.done?n(e.value):o(e.value).then(s,a)}u((i=i.apply(e,t||[])).next())}))},E=function(e,t){var n,i,o,r,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return r={next:a(0),throw:a(1),return:a(2)},"function"===typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function a(e){return function(t){return u([e,t])}}function u(r){if(n)throw new TypeError("Generator is already executing.");while(s)try{if(n=1,i&&(o=2&r[0]?i["return"]:r[0]?i["throw"]||((o=i["return"])&&o.call(i),0):i.next)&&!(o=o.call(i,r[1])).done)return o;switch(i=0,o&&(r=[2&r[0],o.value]),r[0]){case 0:case 1:o=r;break;case 4:return s.label++,{value:r[1],done:!1};case 5:s.label++,i=r[1],r=[0];continue;case 7:r=s.ops.pop(),s.trys.pop();continue;default:if(o=s.trys,!(o=o.length>0&&o[o.length-1])&&(6===r[0]||2===r[0])){s=0;continue}if(3===r[0]&&(!o||r[1]>o[0]&&r[1]<o[3])){s.label=r[1];break}if(6===r[0]&&s.label<o[1]){s.label=o[1],o=r;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(r);break}o[2]&&s.ops.pop(),s.trys.pop();continue}r=t.call(e,s)}catch(a){r=[6,a],i=0}finally{n=o=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}},N=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var i=Array(e),o=0;for(t=0;t<n;t++)for(var r=arguments[t],s=0,a=r.length;s<a;s++,o++)i[o]=r[s];return i},D=function(e){function t(t,n){var i=e.call(this,t.command?t.command.id:t.title,t.title,void 0,!t.disabled,n)||this;return i.action=t,i}return S(t,e),t}(v["a"]),I=function(e){function t(t,n,i,o){var s=e.call(this)||this;return s._editor=t,s._delegate=n,s._contextMenuService=i,s._visible=!1,s._showingActions=s._register(new r["d"]),s._keybindingResolver=new T({getKeybindings:function(){return o.getKeybindings()}}),s}return S(t,e),Object.defineProperty(t.prototype,"isVisible",{get:function(){return this._visible},enumerable:!0,configurable:!0}),t.prototype.show=function(e,t,n,i){return k(this,void 0,void 0,(function(){var o,r,s,a,u=this;return E(this,(function(c){if(o=i.includeDisabledActions?t.allActions:t.validActions,!o.length)return this._visible=!1,[2];if(!this._editor.getDomNode())throw this._visible=!1,Object(h["a"])();return this._visible=!0,this._showingActions.value=t,r=this.getMenuActions(e,o),s=b["a"].isIPosition(n)?this._toCoords(n):n||{x:0,y:0},a=this._keybindingResolver.getResolver(),this._contextMenuService.showContextMenu({getAnchor:function(){return s},getActions:function(){return r},onHide:function(){u._visible=!1,u._editor.focus()},autoSelectFirstItem:!0,getKeyBinding:function(e){return e instanceof D?a(e.action):void 0}}),[2]}))}))},t.prototype.getMenuActions=function(e,t){var n,i,o=this,r=function(e){return new D(e,(function(){return o._delegate.onSelectCodeAction(e)}))},s=t.map(r),a=this._editor.getModel();if(a&&s.length)for(var u=0,c=_["a"].all(a);u<c.length;u++){var l=c[u];if(l._getAdditionalMenuItems){var d=l._getAdditionalMenuItems({trigger:e.type,only:null===(i=null===(n=e.filter)||void 0===n?void 0:n.include)||void 0===i?void 0:i.value},t);d.length&&s.push.apply(s,N([new m["d"]],d.map((function(e){return r({title:e.title,command:e})}))))}}return s},t.prototype._toCoords=function(e){if(!this._editor.hasModel())return{x:0,y:0};this._editor.revealPosition(e,1),this._editor.render();var t=this._editor.getScrolledVisiblePosition(e),n=Object(g["C"])(this._editor.getDomNode()),i=n.left+t.left,o=n.top+t.top+t.height;return{x:i,y:o}},t=O([L(2,w["a"]),L(3,C["a"])],t),t}(r["a"]),T=function(){function e(e){this._keybindingProvider=e}return e.prototype.getResolver=function(){var t=this,n=new o((function(){return t._keybindingProvider.getKeybindings().filter((function(t){return e.codeActionCommands.indexOf(t.command)>=0})).filter((function(e){return e.resolvedKeybinding})).map((function(e){var t=e.commandArgs;return e.command===l["d"]?t={kind:y["b"].SourceOrganizeImports.value}:e.command===l["b"]&&(t={kind:y["b"].SourceFixAll.value}),x({resolvedKeybinding:e.resolvedKeybinding},y["a"].fromUser(t,{kind:y["b"].None,apply:"never"}))}))}));return function(e){if(e.kind){var i=t.bestKeybindingForCodeAction(e,n.getValue());return null===i||void 0===i?void 0:i.resolvedKeybinding}}},e.prototype.bestKeybindingForCodeAction=function(e,t){if(e.kind){var n=new y["b"](e.kind);return t.filter((function(e){return e.kind.contains(n)})).filter((function(t){return!t.preferred||e.isPreferred})).reduceRight((function(e,t){return e?e.kind.contains(t.kind)?t:e:t}),void 0)}},e.codeActionCommands=[l["e"],l["a"],l["f"],l["d"],l["b"]],e}(),M=n("00a3"),A=n("308f"),R=(n("30d5"),n("b57f")),P=n("dff7"),F=n("b7d0"),j=n("303e"),B=n("a60f"),W=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),V=function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},H=function(e,t){return function(n,i){t(n,i,e)}};(function(e){e.Hidden={type:0};var t=function(){function e(e,t,n,i){this.actions=e,this.trigger=t,this.editorPosition=n,this.widgetPosition=i,this.type=1}return e}();e.Showing=t})(i||(i={}));var z=function(e){function t(t,n,o,r){var s=e.call(this)||this;return s._editor=t,s._quickFixActionId=n,s._preferredFixActionId=o,s._keybindingService=r,s._onClick=s._register(new A["a"]),s.onClick=s._onClick.event,s._state=i.Hidden,s._domNode=document.createElement("div"),s._domNode.className="codicon codicon-lightbulb",s._editor.addContentWidget(s),s._register(s._editor.onDidChangeModelContent((function(e){var t=s._editor.getModel();(1!==s.state.type||!t||s.state.editorPosition.lineNumber>=t.getLineCount())&&s.hide()}))),B["b"].ignoreTarget(s._domNode),s._register(g["n"](s._domNode,(function(e){if(1===s.state.type){s._editor.focus(),e.preventDefault();var t=g["C"](s._domNode),n=t.top,i=t.height,o=s._editor.getOption(49),r=Math.floor(o/3);null!==s.state.widgetPosition.position&&s.state.widgetPosition.position.lineNumber<s.state.editorPosition.lineNumber&&(r+=o),s._onClick.fire({x:e.posx,y:n+i+r,actions:s.state.actions,trigger:s.state.trigger})}}))),s._register(g["j"](s._domNode,"mouseenter",(function(e){if(1===(1&e.buttons)){s.hide();var t=new M["a"];t.startMonitoring(e.target,e.buttons,M["b"],(function(){}),(function(){t.dispose()}))}}))),s._register(s._editor.onDidChangeConfiguration((function(e){e.hasChanged(47)&&!s._editor.getOption(47).enabled&&s.hide()}))),s._updateLightBulbTitle(),s._register(s._keybindingService.onDidUpdateKeybindings(s._updateLightBulbTitle,s)),s}return W(t,e),t.prototype.dispose=function(){e.prototype.dispose.call(this),this._editor.removeContentWidget(this)},t.prototype.getId=function(){return"LightBulbWidget"},t.prototype.getDomNode=function(){return this._domNode},t.prototype.getPosition=function(){return 1===this._state.type?this._state.widgetPosition:null},t.prototype.update=function(e,n,o){var r=this;if(e.validActions.length<=0)return this.hide();var s=this._editor.getOptions();if(!s.get(47).enabled)return this.hide();var a=o.lineNumber,u=o.column,c=this._editor.getModel();if(!c)return this.hide();var l=c.getOptions().tabSize,d=s.get(34),h=c.getLineContent(a),p=R["b"].computeIndentLevel(h,l),f=d.spaceWidth*p>22,m=function(e){return e>2&&r._editor.getTopForLineNumber(e)===r._editor.getTopForLineNumber(e-1)},v=a;if(!f)if(a>1&&!m(a-1))v-=1;else if(m(a+1)){if(u*d.spaceWidth<22)return this.hide()}else v+=1;this.state=new i.Showing(e,n,o,{position:{lineNumber:v,column:1},preference:t._posPref}),g["Y"](this._domNode,"codicon-lightbulb-autofix",e.hasAutoFix),this._editor.layoutContentWidget(this)},t.prototype.hide=function(){this.state=i.Hidden,this._editor.layoutContentWidget(this)},Object.defineProperty(t.prototype,"state",{get:function(){return this._state},set:function(e){this._state=e,this._updateLightBulbTitle()},enumerable:!0,configurable:!0}),t.prototype._updateLightBulbTitle=function(){if(1===this.state.type&&this.state.actions.hasAutoFix){var e=this._keybindingService.lookupKeybinding(this._preferredFixActionId);if(e)return void(this.title=P["a"]("prefferedQuickFixWithKb","Show Fixes. Preferred Fix Available ({0})",e.getLabel()))}var t=this._keybindingService.lookupKeybinding(this._quickFixActionId);this.title=t?P["a"]("quickFixWithKb","Show Fixes ({0})",t.getLabel()):P["a"]("quickFix","Show Fixes")},Object.defineProperty(t.prototype,"title",{set:function(e){this._domNode.title=e},enumerable:!0,configurable:!0}),t._posPref=[0],t=V([H(3,C["a"])],t),t}(r["a"]);Object(F["e"])((function(e,t){var n=e.getColor(j["J"]);n&&t.addRule("\n\t\t.monaco-editor .contentWidgets .codicon-lightbulb {\n\t\t\tcolor: "+n+";\n\t\t}");var i=e.getColor(j["I"]);i&&t.addRule("\n\t\t.monaco-editor .contentWidgets .codicon-lightbulb-autofix {\n\t\t\tcolor: "+i+";\n\t\t}")}));var U,K=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),q=function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},G=function(e,t){return function(n,i){t(n,i,e)}},Y=function(e,t,n,i){function o(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,r){function s(e){try{u(i.next(e))}catch(t){r(t)}}function a(e){try{u(i["throw"](e))}catch(t){r(t)}}function u(e){e.done?n(e.value):o(e.value).then(s,a)}u((i=i.apply(e,t||[])).next())}))},Z=function(e,t){var n,i,o,r,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return r={next:a(0),throw:a(1),return:a(2)},"function"===typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function a(e){return function(t){return u([e,t])}}function u(r){if(n)throw new TypeError("Generator is already executing.");while(s)try{if(n=1,i&&(o=2&r[0]?i["return"]:r[0]?i["throw"]||((o=i["return"])&&o.call(i),0):i.next)&&!(o=o.call(i,r[1])).done)return o;switch(i=0,o&&(r=[2&r[0],o.value]),r[0]){case 0:case 1:o=r;break;case 4:return s.label++,{value:r[1],done:!1};case 5:s.label++,i=r[1],r=[0];continue;case 7:r=s.ops.pop(),s.trys.pop();continue;default:if(o=s.trys,!(o=o.length>0&&o[o.length-1])&&(6===r[0]||2===r[0])){s=0;continue}if(3===r[0]&&(!o||r[1]>o[0]&&r[1]<o[3])){s.label=r[1];break}if(6===r[0]&&s.label<o[1]){s.label=o[1],o=r;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(r);break}o[2]&&s.ops.pop(),s.trys.pop();continue}r=t.call(e,s)}catch(a){r=[6,a],i=0}finally{n=o=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}},X=function(e){function t(t,n,i,s,a){var u=e.call(this)||this;return u._editor=t,u.delegate=s,u._activeCodeActions=u._register(new r["d"]),u._codeActionWidget=new o((function(){return u._register(a.createInstance(I,u._editor,{onSelectCodeAction:function(e){return Y(u,void 0,void 0,(function(){return Z(this,(function(t){return this.delegate.applyCodeAction(e,!0),[2]}))}))}}))})),u._lightBulbWidget=new o((function(){var e=u._register(a.createInstance(z,u._editor,n,i));return u._register(e.onClick((function(e){return u.showCodeActionList(e.trigger,e.actions,e,{includeDisabledActions:!1})}))),e})),u}return K(t,e),t.prototype.update=function(e){var t,n,i;return Y(this,void 0,void 0,(function(){var o,r,s,a,u;return Z(this,(function(c){switch(c.label){case 0:if(1!==e.type)return null===(t=this._lightBulbWidget.rawValue)||void 0===t||t.hide(),[2];c.label=1;case 1:return c.trys.push([1,3,,4]),[4,e.actions];case 2:return o=c.sent(),[3,4];case 3:return r=c.sent(),Object(h["e"])(r),[2];case 4:if(this._lightBulbWidget.getValue().update(o,e.trigger,e.position),2!==e.trigger.type)return[3,11];if(!(null===(n=e.trigger.filter)||void 0===n?void 0:n.include))return[3,10];if(s=this.tryGetValidActionToApply(e.trigger,o),!s)return[3,9];c.label=5;case 5:return c.trys.push([5,,7,8]),[4,this.delegate.applyCodeAction(s,!1)];case 6:return c.sent(),[3,8];case 7:return o.dispose(),[7];case 8:return[2];case 9:if(e.trigger.context&&(a=this.getInvalidActionThatWouldHaveBeenApplied(e.trigger,o),a&&a.disabled))return p["a"].get(this._editor).showMessage(a.disabled,e.trigger.context.position),o.dispose(),[2];c.label=10;case 10:return u=!!(null===(i=e.trigger.filter)||void 0===i?void 0:i.include),!e.trigger.context||o.allActions.length&&(u||o.validActions.length)?(this._activeCodeActions.value=o,this._codeActionWidget.getValue().show(e.trigger,o,e.position,{includeDisabledActions:u}),[3,12]):(p["a"].get(this._editor).showMessage(e.trigger.context.notAvailableMessage,e.trigger.context.position),this._activeCodeActions.value=o,o.dispose(),[2]);case 11:this._codeActionWidget.getValue().isVisible?o.dispose():this._activeCodeActions.value=o,c.label=12;case 12:return[2]}}))}))},t.prototype.getInvalidActionThatWouldHaveBeenApplied=function(e,t){if(t.allActions.length)return"first"===e.autoApply&&0===t.validActions.length||"ifSingle"===e.autoApply&&1===t.allActions.length?Object(d["h"])(t.allActions,(function(e){return e.disabled})):void 0},t.prototype.tryGetValidActionToApply=function(e,t){if(t.validActions.length)return"first"===e.autoApply&&t.validActions.length>0||"ifSingle"===e.autoApply&&1===t.validActions.length?t.validActions[0]:void 0},t.prototype.showCodeActionList=function(e,t,n,i){return Y(this,void 0,void 0,(function(){return Z(this,(function(o){return this._codeActionWidget.getValue().show(e,t,n,i),[2]}))}))},t=q([G(4,f["a"])],t),t}(r["a"]),Q=n("9e74"),$=n("4fc3"),J=n("b400"),ee=n("b0cd"),te=n("b539"),ne=n("5d75"),ie=n("5fe7"),oe=n("6a89"),re=n("82c9"),se=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),ae=new $["d"]("supportedCodeAction",""),ue=function(e){function t(t,n,i,o){void 0===o&&(o=250);var r=e.call(this)||this;return r._editor=t,r._markerService=n,r._signalChange=i,r._delay=o,r._autoTriggerTimer=r._register(new ie["e"]),r._register(r._markerService.onMarkerChanged((function(e){return r._onMarkerChanges(e)}))),r._register(r._editor.onDidChangeCursorPosition((function(){return r._onCursorChange()}))),r}return se(t,e),t.prototype.trigger=function(e){var t=this._getRangeOfSelectionUnlessWhitespaceEnclosed(e);return this._createEventAndSignalChange(e,t)},t.prototype._onMarkerChanges=function(e){var t=this,n=this._editor.getModel();n&&e.some((function(e){return Object(re["e"])(e,n.uri)}))&&this._autoTriggerTimer.cancelAndSet((function(){t.trigger({type:1})}),this._delay)},t.prototype._onCursorChange=function(){var e=this;this._autoTriggerTimer.cancelAndSet((function(){e.trigger({type:1})}),this._delay)},t.prototype._getRangeOfMarker=function(e){var t=this._editor.getModel();if(t)for(var n=0,i=this._markerService.read({resource:t.uri});n<i.length;n++){var o=i[n],r=t.validateRange(o);if(oe["a"].intersectRanges(r,e))return oe["a"].lift(r)}},t.prototype._getRangeOfSelectionUnlessWhitespaceEnclosed=function(e){if(this._editor.hasModel()){var t=this._editor.getModel(),n=this._editor.getSelection();if(n.isEmpty()&&1===e.type){var i=n.getPosition(),o=i.lineNumber,r=i.column,s=t.getLineContent(o);if(0===s.length)return;if(1===r){if(/\s/.test(s[0]))return}else if(r===t.getLineMaxColumn(o)){if(/\s/.test(s[s.length-1]))return}else if(/\s/.test(s[r-2])&&/\s/.test(s[r-1]))return}return n}},t.prototype._createEventAndSignalChange=function(e,t){var n=this._editor.getModel();if(t&&n){var i=this._getRangeOfMarker(t),o=i?i.getStartPosition():t.getStartPosition(),r={trigger:e,selection:t,position:o};return this._signalChange(r),r}this._signalChange(void 0)},t}(r["a"]);(function(e){e.Empty={type:0};var t=function(){function e(e,t,n,i){this.trigger=e,this.rangeOrSelection=t,this.position=n,this.actions=i,this.type=1}return e}();e.Triggered=t})(U||(U={}));var ce=function(e){fun