~ K A L I ~
UNAME : Linux web65.extendcp.co.uk 4.18.0-553.56.1.el8_10.x86_64 #1 SMP Tue Jun 10 05:00:59 EDT 2025 x86_64SERVER IP : 10.0.187.65 -________-
CLIENT IP : 216.73.216.230 MINI SHELL D ZAB '
Current File : //usr/share/maxscale/gui/js/npm.monaco-editor~d0306782.296f7caa.js |
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["npm.monaco-editor~d0306782"],{1341:function(e,t,i){"use strict";i.d(t,"a",(function(){return a}));var s=i("db88"),n=i("7061"),o=i("6a89"),r=function(e,t,i,s){function n(e){return e instanceof i?e:new i((function(t){t(e)}))}return new(i||(i=Promise))((function(i,o){function r(e){try{h(s.next(e))}catch(t){o(t)}}function a(e){try{h(s["throw"](e))}catch(t){o(t)}}function h(e){e.done?i(e.value):n(e.value).then(r,a)}h((s=s.apply(e,t||[])).next())}))};class a{provideSelectionRanges(e,t){return r(this,void 0,void 0,(function*(){const i=[];for(const s of t){const t=[];i.push(t);const n=new Map;yield new Promise(t=>a._bracketsRightYield(t,0,e,s,n)),yield new Promise(i=>a._bracketsLeftYield(i,0,e,s,n,t))}return i}))}static _bracketsRightYield(e,t,i,n,o){const r=new Map,h=Date.now();while(1){if(t>=a._maxRounds){e();break}if(!n){e();break}let c=i.bracketPairs.findNextBracket(n);if(!c){e();break}let l=Date.now()-h;if(l>a._maxDuration){setTimeout(()=>a._bracketsRightYield(e,t+1,i,n,o));break}const d=c.close[0];if(c.isOpen){let e=r.has(d)?r.get(d):0;r.set(d,e+1)}else{let e=r.has(d)?r.get(d):0;if(e-=1,r.set(d,Math.max(0,e)),e<0){let e=o.get(d);e||(e=new s["a"],o.set(d,e)),e.push(c.range)}}n=c.range.getEndPosition()}}static _bracketsLeftYield(e,t,i,s,n,r){const h=new Map,c=Date.now();while(1){if(t>=a._maxRounds&&0===n.size){e();break}if(!s){e();break}let l=i.bracketPairs.findPrevBracket(s);if(!l){e();break}let d=Date.now()-c;if(d>a._maxDuration){setTimeout(()=>a._bracketsLeftYield(e,t+1,i,s,n,r));break}const p=l.close[0];if(l.isOpen){let e=h.has(p)?h.get(p):0;if(e-=1,h.set(p,Math.max(0,e)),e<0){let e=n.get(p);if(e){let t=e.shift();0===e.size&&n.delete(p);const s=o["a"].fromPositions(l.range.getEndPosition(),t.getStartPosition()),h=o["a"].fromPositions(l.range.getStartPosition(),t.getEndPosition());r.push({range:s}),r.push({range:h}),a._addBracketLeading(i,h,r)}}}else{let e=h.has(p)?h.get(p):0;h.set(p,e+1)}s=l.range.getStartPosition()}}static _addBracketLeading(e,t,i){if(t.startLineNumber===t.endLineNumber)return;const s=t.startLineNumber,r=e.getLineFirstNonWhitespaceColumn(s);0!==r&&r!==t.startColumn&&(i.push({range:o["a"].fromPositions(new n["a"](s,r),t.getEndPosition())}),i.push({range:o["a"].fromPositions(new n["a"](s,1),t.getEndPosition())}));const a=s-1;if(a>0){const s=e.getLineFirstNonWhitespaceColumn(a);s===t.startColumn&&s!==e.getLineLastNonWhitespaceColumn(a)&&(i.push({range:o["a"].fromPositions(new n["a"](a,s),t.getEndPosition())}),i.push({range:o["a"].fromPositions(new n["a"](a,1),t.getEndPosition())}))}}}a._maxDuration=30,a._maxRounds=2},"2a5b":function(e,t,i){"use strict";i.r(t),i.d(t,"provideSelectionRanges",(function(){return M}));var s=i("e8e3"),n=i("2504"),o=i("fdcc"),r=i("b2cc"),a=i("7061"),h=i("6a89"),c=i("8025"),l=i("c101"),d=i("1341"),p=i("3742");class _{provideSelectionRanges(e,t){const i=[];for(const s of t){const t=[];i.push(t),this._addInWordRanges(t,e,s),this._addWordRanges(t,e,s),this._addWhitespaceLine(t,e,s),t.push({range:e.getFullModelRange()})}return i}_addInWordRanges(e,t,i){const s=t.getWordAtPosition(i);if(!s)return;let{word:n,startColumn:o}=s,r=i.column-o,a=r,c=r,l=0;for(;a>=0;a--){let e=n.charCodeAt(a);if(a!==r&&(95===e||45===e))break;if(Object(p["G"])(e)&&Object(p["H"])(l))break;l=e}for(a+=1;c<n.length;c++){let e=n.charCodeAt(c);if(Object(p["H"])(e)&&Object(p["G"])(l))break;if(95===e||45===e)break;l=e}a<c&&e.push({range:new h["a"](i.lineNumber,o+a,i.lineNumber,o+c)})}_addWordRanges(e,t,i){const s=t.getWordAtPosition(i);s&&e.push({range:new h["a"](i.lineNumber,s.startColumn,i.lineNumber,s.endColumn)})}_addWhitespaceLine(e,t,i){t.getLineLength(i.lineNumber)>0&&0===t.getLineFirstNonWhitespaceColumn(i.lineNumber)&&0===t.getLineLastNonWhitespaceColumn(i.lineNumber)&&e.push({range:new h["a"](i.lineNumber,1,i.lineNumber,t.getLineMaxColumn(i.lineNumber))})}}var u=i("dff7"),f=i("7e32"),g=i("9e74"),m=i("7340"),S=i("b78f"),b=i("ef8e"),v=i("6d8e"),C=function(e,t,i,s){var n,o=arguments.length,r=o<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(r=(o<3?n(r):o>3?n(t,i,r):n(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},w=function(e,t){return function(i,s){t(i,s,e)}},N=function(e,t,i,s){function n(e){return e instanceof i?e:new i((function(t){t(e)}))}return new(i||(i=Promise))((function(i,o){function r(e){try{h(s.next(e))}catch(t){o(t)}}function a(e){try{h(s["throw"](e))}catch(t){o(t)}}function h(e){e.done?i(e.value):n(e.value).then(r,a)}h((s=s.apply(e,t||[])).next())}))};class x{constructor(e,t){this.index=e,this.ranges=t}mov(e){let t=this.index+(e?1:-1);if(t<0||t>=this.ranges.length)return this;const i=new x(t,this.ranges);return i.ranges[t].equalsRange(this.ranges[this.index])?i.mov(e):i}}let T=class e{constructor(e,t){this._editor=e,this._languageFeaturesService=t,this._ignoreSelection=!1}static get(t){return t.getContribution(e.ID)}dispose(){var e;null===(e=this._selectionListener)||void 0===e||e.dispose()}run(e){return N(this,void 0,void 0,(function*(){if(!this._editor.hasModel())return;const t=this._editor.getSelections(),i=this._editor.getModel();if(this._state||(yield M(this._languageFeaturesService.selectionRangeProvider,i,t.map(e=>e.getPosition()),this._editor.getOption(102),n["a"].None).then(e=>{var i;if(s["r"](e)&&e.length===t.length&&this._editor.hasModel()&&s["h"](this._editor.getSelections(),t,(e,t)=>e.equalsSelection(t))){for(let i=0;i<e.length;i++)e[i]=e[i].filter(e=>e.containsPosition(t[i].getStartPosition())&&e.containsPosition(t[i].getEndPosition())),e[i].unshift(t[i]);this._state=e.map(e=>new x(0,e)),null===(i=this._selectionListener)||void 0===i||i.dispose(),this._selectionListener=this._editor.onDidChangeCursorPosition(()=>{var e;this._ignoreSelection||(null===(e=this._selectionListener)||void 0===e||e.dispose(),this._state=void 0)})}})),!this._state)return;this._state=this._state.map(t=>t.mov(e));const o=this._state.map(e=>c["a"].fromPositions(e.ranges[e.index].getStartPosition(),e.ranges[e.index].getEndPosition()));this._ignoreSelection=!0;try{this._editor.setSelections(o)}finally{this._ignoreSelection=!1}}))}};T.ID="editor.contrib.smartSelectController",T=C([w(1,m["a"])],T);class R extends r["b"]{constructor(e,t){super(t),this._forward=e}run(e,t){return N(this,void 0,void 0,(function*(){let e=T.get(t);e&&(yield e.run(this._forward))}))}}class E extends R{constructor(){super(!0,{id:"editor.action.smartSelect.expand",label:u["a"]("smartSelect.expand","Expand Selection"),alias:"Expand Selection",precondition:void 0,kbOpts:{kbExpr:l["a"].editorTextFocus,primary:1553,mac:{primary:3345,secondary:[1297]},weight:100},menuOpts:{menuId:f["b"].MenubarSelectionMenu,group:"1_basic",title:u["a"]({key:"miSmartSelectGrow",comment:["&& denotes a mnemonic"]},"&&Expand Selection"),order:2}})}}g["a"].registerCommandAlias("editor.action.smartSelect.grow","editor.action.smartSelect.expand");class L extends R{constructor(){super(!1,{id:"editor.action.smartSelect.shrink",label:u["a"]("smartSelect.shrink","Shrink Selection"),alias:"Shrink Selection",precondition:void 0,kbOpts:{kbExpr:l["a"].editorTextFocus,primary:1551,mac:{primary:3343,secondary:[1295]},weight:100},menuOpts:{menuId:f["b"].MenubarSelectionMenu,group:"1_basic",title:u["a"]({key:"miSmartSelectShrink",comment:["&& denotes a mnemonic"]},"&&Shrink Selection"),order:3}})}}function M(e,t,i,n,r){return N(this,void 0,void 0,(function*(){const c=e.all(t).concat(new _);1===c.length&&c.unshift(new d["a"]);let l=[],p=[];for(const e of c)l.push(Promise.resolve(e.provideSelectionRanges(t,i,r)).then(e=>{if(s["r"](e)&&e.length===i.length)for(let t=0;t<i.length;t++){p[t]||(p[t]=[]);for(const s of e[t])h["a"].isIRange(s.range)&&h["a"].containsPosition(s.range,i[t])&&p[t].push(h["a"].lift(s.range))}},o["h"]));return yield Promise.all(l),p.map(e=>{if(0===e.length)return[];e.sort((e,t)=>a["a"].isBefore(e.getStartPosition(),t.getStartPosition())?1:a["a"].isBefore(t.getStartPosition(),e.getStartPosition())||a["a"].isBefore(e.getEndPosition(),t.getEndPosition())?-1:a["a"].isBefore(t.getEndPosition(),e.getEndPosition())?1:0);let i,s=[];for(const t of e)(!i||h["a"].containsRange(t,i)&&!h["a"].equalsRange(t,i))&&(s.push(t),i=t);if(!n.selectLeadingAndTrailingWhitespace)return s;let o=[s[0]];for(let n=1;n<s.length;n++){const e=s[n-1],i=s[n];if(i.startLineNumber!==e.startLineNumber||i.endLineNumber!==e.endLineNumber){const s=new h["a"](e.startLineNumber,t.getLineFirstNonWhitespaceColumn(e.startLineNumber),e.endLineNumber,t.getLineLastNonWhitespaceColumn(e.endLineNumber));s.containsRange(e)&&!s.equalsRange(e)&&i.containsRange(s)&&!i.equalsRange(s)&&o.push(s);const n=new h["a"](e.startLineNumber,1,e.endLineNumber,t.getLineMaxColumn(e.endLineNumber));n.containsRange(e)&&!n.equalsRange(s)&&i.containsRange(n)&&!i.equalsRange(n)&&o.push(n)}o.push(i)}return o})}))}Object(r["l"])(T.ID,T),Object(r["j"])(E),Object(r["j"])(L),g["a"].registerCommand("_executeSelectionRangeProvider",(function(e,...t){return N(this,void 0,void 0,(function*(){const[i,s]=t;Object(b["c"])(v["a"].isUri(i));const o=e.get(m["a"]).selectionRangeProvider,r=yield e.get(S["a"]).createModelReference(i);try{return M(o,r.object.textEditorModel,s,{selectLeadingAndTrailingWhitespace:!0},n["a"].None)}finally{r.dispose()}}))}))},"41e7":function(e,t,i){"use strict";i.d(t,"a",(function(){return r}));var s=i("e8e3"),n=i("7e93"),o=i("3742");class r{constructor(e,t,i,s,n,o,a){this.clipboardText=a,this._snippetCompareFn=r._compareCompletionItems,this._items=e,this._column=t,this._wordDistance=s,this._options=n,this._refilterKind=1,this._lineContext=i,"top"===o?this._snippetCompareFn=r._compareCompletionItemsSnippetsUp:"bottom"===o&&(this._snippetCompareFn=r._compareCompletionItemsSnippetsDown)}get lineContext(){return this._lineContext}set lineContext(e){this._lineContext.leadingLineContent===e.leadingLineContent&&this._lineContext.characterCountDelta===e.characterCountDelta||(this._refilterKind=this._lineContext.characterCountDelta<e.characterCountDelta&&this._filteredItems?2:1,this._lineContext=e)}get items(){return this._ensureCachedState(),this._filteredItems}get allProvider(){return this._ensureCachedState(),this._providerInfo.keys()}get incomplete(){this._ensureCachedState();const e=new Set;for(let[t,i]of this._providerInfo)i&&e.add(t);return e}adopt(e){let t=[];for(let i=0;i<this._items.length;)e.has(this._items[i].provider)?i++:(t.push(this._items[i]),this._items[i]=this._items[this._items.length-1],this._items.pop());return this._refilterKind=1,t}get stats(){return this._ensureCachedState(),this._stats}_ensureCachedState(){0!==this._refilterKind&&this._createCachedState()}_createCachedState(){this._providerInfo=new Map;const e=[],{leadingLineContent:t,characterCountDelta:i}=this._lineContext;let r="",a="";const h=1===this._refilterKind?this._items:this._filteredItems,c=[],l=!this._options.filterGraceful||h.length>2e3?n["d"]:n["e"];for(let s=0;s<h.length;s++){const d=h[s];if(d.isInvalid)continue;this._providerInfo.set(d.provider,Boolean(d.container.incomplete));const p=d.position.column-d.editStart.column,_=p+i-(d.position.column-this._column);if(r.length!==_&&(r=0===_?"":t.slice(-_),a=r.toLowerCase()),d.word=r,0===_)d.score=n["a"].Default;else{let e=0;while(e<p){const t=r.charCodeAt(e);if(32!==t&&9!==t)break;e+=1}if(e>=_)d.score=n["a"].Default;else if("string"===typeof d.completion.filterText){let t=l(r,a,e,d.completion.filterText,d.filterTextLow,0,!1);if(!t)continue;0===Object(o["i"])(d.completion.filterText,d.textLabel)?d.score=t:(d.score=Object(n["b"])(r,a,e,d.textLabel,d.labelLow,0),d.score[0]=t[0])}else{let t=l(r,a,e,d.textLabel,d.labelLow,0,!1);if(!t)continue;d.score=t}}d.idx=s,d.distance=this._wordDistance.distance(d.position,d.completion),c.push(d),e.push(d.textLabel.length)}this._filteredItems=c.sort(this._snippetCompareFn),this._refilterKind=0,this._stats={pLabelLen:e.length?Object(s["v"])(e.length-.85,e,(e,t)=>e-t):0}}static _compareCompletionItems(e,t){return e.score[0]>t.score[0]?-1:e.score[0]<t.score[0]?1:e.distance<t.distance?-1:e.distance>t.distance?1:e.idx<t.idx?-1:e.idx>t.idx?1:0}static _compareCompletionItemsSnippetsDown(e,t){if(e.completion.kind!==t.completion.kind){if(27===e.completion.kind)return 1;if(27===t.completion.kind)return-1}return r._compareCompletionItems(e,t)}static _compareCompletionItemsSnippetsUp(e,t){if(e.completion.kind!==t.completion.kind){if(27===e.completion.kind)return-1;if(27===t.completion.kind)return 1}return r._compareCompletionItems(e,t)}}},"6d42":function(e,t,i){"use strict";i.d(t,"a",(function(){return M}));var s=i("e8e3"),n=i("a666"),o=i("3742"),r=(i("d670"),i("d3f4")),a=i("6a89"),h=i("8025"),c=i("b57f"),l=i("47cb"),d=i("1165"),p=i("7ef3"),_=i("debc"),u=i("32b8"),f=i("82c9"),g=i("e919"),m=i("0184"),S=i("dff7");Object.freeze({CURRENT_YEAR:!0,CURRENT_YEAR_SHORT:!0,CURRENT_MONTH:!0,CURRENT_DATE:!0,CURRENT_HOUR:!0,CURRENT_MINUTE:!0,CURRENT_SECOND:!0,CURRENT_DAY_NAME:!0,CURRENT_DAY_NAME_SHORT:!0,CURRENT_MONTH_NAME:!0,CURRENT_MONTH_NAME_SHORT:!0,CURRENT_SECONDS_UNIX:!0,SELECTION:!0,CLIPBOARD:!0,TM_SELECTED_TEXT:!0,TM_CURRENT_LINE:!0,TM_CURRENT_WORD:!0,TM_LINE_INDEX:!0,TM_LINE_NUMBER:!0,TM_FILENAME:!0,TM_FILENAME_BASE:!0,TM_DIRECTORY:!0,TM_FILEPATH:!0,RELATIVE_FILEPATH:!0,BLOCK_COMMENT_START:!0,BLOCK_COMMENT_END:!0,LINE_COMMENT:!0,WORKSPACE_NAME:!0,WORKSPACE_FOLDER:!0,RANDOM:!0,RANDOM_HEX:!0,UUID:!0});class b{constructor(e){this._delegates=e}resolve(e){for(const t of this._delegates){let i=t.resolve(e);if(void 0!==i)return i}}}class v{constructor(e,t,i,s){this._model=e,this._selection=t,this._selectionIdx=i,this._overtypingCapturer=s}resolve(e){const{name:t}=e;if("SELECTION"===t||"TM_SELECTED_TEXT"===t){let t=this._model.getValueInRange(this._selection)||void 0,i=this._selection.startLineNumber!==this._selection.endLineNumber;if(!t&&this._overtypingCapturer){const e=this._overtypingCapturer.getLastOvertypedInfo(this._selectionIdx);e&&(t=e.value,i=e.multiline)}if(t&&i&&e.snippet){const i=this._model.getLineContent(this._selection.startLineNumber),s=Object(o["x"])(i,0,this._selection.startColumn-1);let n=s;e.snippet.walk(t=>t!==e&&(t instanceof p["d"]&&(n=Object(o["x"])(Object(o["R"])(t.value).pop())),!0));const r=Object(o["f"])(n,s);t=t.replace(/(\r\n|\r|\n)(.*)/g,(e,t,i)=>`${t}${n.substr(r)}${i}`)}return t}if("TM_CURRENT_LINE"===t)return this._model.getLineContent(this._selection.positionLineNumber);if("TM_CURRENT_WORD"===t){const e=this._model.getWordAtPosition({lineNumber:this._selection.positionLineNumber,column:this._selection.positionColumn});return e&&e.word||void 0}return"TM_LINE_INDEX"===t?String(this._selection.positionLineNumber-1):"TM_LINE_NUMBER"===t?String(this._selection.positionLineNumber):void 0}}class C{constructor(e,t){this._labelService=e,this._model=t}resolve(e){const{name:t}=e;if("TM_FILENAME"===t)return u["a"](this._model.uri.fsPath);if("TM_FILENAME_BASE"===t){const e=u["a"](this._model.uri.fsPath),t=e.lastIndexOf(".");return t<=0?e:e.slice(0,t)}return"TM_DIRECTORY"===t?"."===u["b"](this._model.uri.fsPath)?"":this._labelService.getUriLabel(Object(f["d"])(this._model.uri)):"TM_FILEPATH"===t?this._labelService.getUriLabel(this._model.uri):"RELATIVE_FILEPATH"===t?this._labelService.getUriLabel(this._model.uri,{relative:!0,noPrefix:!0}):void 0}}class w{constructor(e,t,i,s){this._readClipboardText=e,this._selectionIdx=t,this._selectionCount=i,this._spread=s}resolve(e){if("CLIPBOARD"!==e.name)return;const t=this._readClipboardText();if(t){if(this._spread){const e=t.split(/\r\n|\n|\r/).filter(e=>!Object(o["C"])(e));if(e.length===this._selectionCount)return e[this._selectionIdx]}return t}}}class N{constructor(e,t){this._model=e,this._selection=t}resolve(e){const{name:t}=e,i=this._model.getLanguageIdAtPosition(this._selection.selectionStartLineNumber,this._selection.selectionStartColumn),s=m["b"].getComments(i);if(s)return"LINE_COMMENT"===t?s.lineCommentToken||void 0:"BLOCK_COMMENT_START"===t?s.blockCommentStartToken||void 0:"BLOCK_COMMENT_END"===t&&s.blockCommentEndToken||void 0}}class x{constructor(){this._date=new Date}resolve(e){const{name:t}=e;return"CURRENT_YEAR"===t?String(this._date.getFullYear()):"CURRENT_YEAR_SHORT"===t?String(this._date.getFullYear()).slice(-2):"CURRENT_MONTH"===t?String(this._date.getMonth().valueOf()+1).padStart(2,"0"):"CURRENT_DATE"===t?String(this._date.getDate().valueOf()).padStart(2,"0"):"CURRENT_HOUR"===t?String(this._date.getHours().valueOf()).padStart(2,"0"):"CURRENT_MINUTE"===t?String(this._date.getMinutes().valueOf()).padStart(2,"0"):"CURRENT_SECOND"===t?String(this._date.getSeconds().valueOf()).padStart(2,"0"):"CURRENT_DAY_NAME"===t?x.dayNames[this._date.getDay()]:"CURRENT_DAY_NAME_SHORT"===t?x.dayNamesShort[this._date.getDay()]:"CURRENT_MONTH_NAME"===t?x.monthNames[this._date.getMonth()]:"CURRENT_MONTH_NAME_SHORT"===t?x.monthNamesShort[this._date.getMonth()]:"CURRENT_SECONDS_UNIX"===t?String(Math.floor(this._date.getTime()/1e3)):void 0}}x.dayNames=[S["a"]("Sunday","Sunday"),S["a"]("Monday","Monday"),S["a"]("Tuesday","Tuesday"),S["a"]("Wednesday","Wednesday"),S["a"]("Thursday","Thursday"),S["a"]("Friday","Friday"),S["a"]("Saturday","Saturday")],x.dayNamesShort=[S["a"]("SundayShort","Sun"),S["a"]("MondayShort","Mon"),S["a"]("TuesdayShort","Tue"),S["a"]("WednesdayShort","Wed"),S["a"]("ThursdayShort","Thu"),S["a"]("FridayShort","Fri"),S["a"]("SaturdayShort","Sat")],x.monthNames=[S["a"]("January","January"),S["a"]("February","February"),S["a"]("March","March"),S["a"]("April","April"),S["a"]("May","May"),S["a"]("June","June"),S["a"]("July","July"),S["a"]("August","August"),S["a"]("September","September"),S["a"]("October","October"),S["a"]("November","November"),S["a"]("December","December")],x.monthNamesShort=[S["a"]("JanuaryShort","Jan"),S["a"]("FebruaryShort","Feb"),S["a"]("MarchShort","Mar"),S["a"]("AprilShort","Apr"),S["a"]("MayShort","May"),S["a"]("JuneShort","Jun"),S["a"]("JulyShort","Jul"),S["a"]("AugustShort","Aug"),S["a"]("SeptemberShort","Sep"),S["a"]("OctoberShort","Oct"),S["a"]("NovemberShort","Nov"),S["a"]("DecemberShort","Dec")];class T{constructor(e){this._workspaceService=e}resolve(e){if(!this._workspaceService)return;const t=Object(d["e"])(this._workspaceService.getWorkspace());return t?"WORKSPACE_NAME"===e.name?this._resolveWorkspaceName(t):"WORKSPACE_FOLDER"===e.name?this._resoveWorkspacePath(t):void 0:void 0}_resolveWorkspaceName(e){if(Object(d["d"])(e))return u["a"](e.uri.path);let t=u["a"](e.configPath.path);return t.endsWith(d["b"])&&(t=t.substr(0,t.length-d["b"].length-1)),t}_resoveWorkspacePath(e){if(Object(d["d"])(e))return Object(_["b"])(e.uri.fsPath);let t=u["a"](e.configPath.path),i=e.configPath.fsPath;return i.endsWith(t)&&(i=i.substr(0,i.length-t.length-1)),i?Object(_["b"])(i):"/"}}class R{resolve(e){const{name:t}=e;return"RANDOM"===t?Math.random().toString().slice(-6):"RANDOM_HEX"===t?Math.random().toString(16).slice(-6):"UUID"===t?Object(g["a"])():void 0}}class E{constructor(e,t,i,n){this._editor=e,this._snippet=t,this._offset=i,this._snippetLineLeadingWhitespace=n,this._nestingLevel=1,this._placeholderGroups=Object(s["p"])(t.placeholders,p["b"].compareByIndex),this._placeholderGroupsIdx=-1}dispose(){this._placeholderDecorations&&this._editor.deltaDecorations([...this._placeholderDecorations.values()],[]),this._placeholderGroups.length=0}_initDecorations(){if(this._placeholderDecorations)return;this._placeholderDecorations=new Map;const e=this._editor.getModel();this._editor.changeDecorations(t=>{for(const i of this._snippet.placeholders){const s=this._snippet.offset(i),n=this._snippet.fullLen(i),o=a["a"].fromPositions(e.getPositionAt(this._offset+s),e.getPositionAt(this._offset+s+n)),r=i.isFinalTabstop?E._decor.inactiveFinal:E._decor.inactive,h=t.addDecoration(o,r);this._placeholderDecorations.set(i,h)}})}move(e){if(!this._editor.hasModel())return[];if(this._initDecorations(),this._placeholderGroupsIdx>=0){let e=[];for(const t of this._placeholderGroups[this._placeholderGroupsIdx])if(t.transform){const i=this._placeholderDecorations.get(t),s=this._editor.getModel().getDecorationRange(i),n=this._editor.getModel().getValueInRange(s),o=t.transform.resolve(n).split(/\r\n|\r|\n/);for(let e=1;e<o.length;e++)o[e]=this._editor.getModel().normalizeIndentation(this._snippetLineLeadingWhitespace+o[e]);e.push(r["a"].replace(s,o.join(this._editor.getModel().getEOL())))}e.length>0&&this._editor.executeEdits("snippet.placeholderTransform",e)}let t=!1;!0===e&&this._placeholderGroupsIdx<this._placeholderGroups.length-1?(this._placeholderGroupsIdx+=1,t=!0):!1===e&&this._placeholderGroupsIdx>0&&(this._placeholderGroupsIdx-=1,t=!0);const i=this._editor.getModel().changeDecorations(e=>{const i=new Set,s=[];for(const n of this._placeholderGroups[this._placeholderGroupsIdx]){const o=this._placeholderDecorations.get(n),r=this._editor.getModel().getDecorationRange(o);s.push(new h["a"](r.startLineNumber,r.startColumn,r.endLineNumber,r.endColumn)),t=t&&this._hasPlaceholderBeenCollapsed(n),e.changeDecorationOptions(o,n.isFinalTabstop?E._decor.activeFinal:E._decor.active),i.add(n);for(const t of this._snippet.enclosingPlaceholders(n)){const s=this._placeholderDecorations.get(t);e.changeDecorationOptions(s,t.isFinalTabstop?E._decor.activeFinal:E._decor.active),i.add(t)}}for(const[t,n]of this._placeholderDecorations)i.has(t)||e.changeDecorationOptions(n,t.isFinalTabstop?E._decor.inactiveFinal:E._decor.inactive);return s});return t?this.move(e):null!==i&&void 0!==i?i:[]}_hasPlaceholderBeenCollapsed(e){let t=e;while(t){if(t instanceof p["b"]){const e=this._placeholderDecorations.get(t),i=this._editor.getModel().getDecorationRange(e);if(i.isEmpty()&&t.toString().length>0)return!0}t=t.parent}return!1}get isAtFirstPlaceholder(){return this._placeholderGroupsIdx<=0||0===this._placeholderGroups.length}get isAtLastPlaceholder(){return this._placeholderGroupsIdx===this._placeholderGroups.length-1}get hasPlaceholder(){return this._snippet.placeholders.length>0}computePossibleSelections(){const e=new Map;for(const t of this._placeholderGroups){let i;for(const s of t){if(s.isFinalTabstop)break;i||(i=[],e.set(s.index,i));const t=this._placeholderDecorations.get(s),n=this._editor.getModel().getDecorationRange(t);if(!n){e.delete(s.index);break}i.push(n)}}return e}get choice(){return this._placeholderGroups[this._placeholderGroupsIdx][0].choice}merge(e){const t=this._editor.getModel();this._nestingLevel*=10,this._editor.changeDecorations(i=>{for(const s of this._placeholderGroups[this._placeholderGroupsIdx]){const n=e.shift();console.assert(!n._placeholderDecorations);const o=n._snippet.placeholderInfo.last.index;for(const e of n._snippet.placeholderInfo.all)e.isFinalTabstop?e.index=s.index+(o+1)/this._nestingLevel:e.index=s.index+e.index/this._nestingLevel;this._snippet.replace(s,n._snippet.children);const r=this._placeholderDecorations.get(s);i.removeDecoration(r),this._placeholderDecorations.delete(s);for(const e of n._snippet.placeholders){const s=n._snippet.offset(e),o=n._snippet.fullLen(e),r=a["a"].fromPositions(t.getPositionAt(n._offset+s),t.getPositionAt(n._offset+s+o)),h=i.addDecoration(r,E._decor.inactive);this._placeholderDecorations.set(e,h)}}this._placeholderGroups=Object(s["p"])(this._snippet.placeholders,p["b"].compareByIndex)})}}E._decor={active:c["b"].register({description:"snippet-placeholder-1",stickiness:0,className:"snippet-placeholder"}),inactive:c["b"].register({description:"snippet-placeholder-2",stickiness:1,className:"snippet-placeholder"}),activeFinal:c["b"].register({description:"snippet-placeholder-3",stickiness:1,className:"finish-snippet-placeholder"}),inactiveFinal:c["b"].register({description:"snippet-placeholder-4",stickiness:1,className:"finish-snippet-placeholder"})};const L={overwriteBefore:0,overwriteAfter:0,adjustWhitespace:!0,clipboardText:void 0,overtypingCapturer:void 0};class M{constructor(e,t,i=L){this._templateMerges=[],this._snippets=[],this._editor=e,this._template=t,this._options=i}static adjustWhitespace(e,t,i,s,n){const r=e.getLineContent(t.lineNumber),a=Object(o["x"])(r,0,t.column-1);let h;return i.walk(t=>{if(!(t instanceof p["d"])||t.parent instanceof p["a"])return!0;const n=t.value.split(/\r\n|\r|\n/);if(s){const s=i.offset(t);if(0===s)n[0]=e.normalizeIndentation(n[0]);else{h=null!==h&&void 0!==h?h:i.toString();let t=h.charCodeAt(s-1);10!==t&&13!==t||(n[0]=e.normalizeIndentation(a+n[0]))}for(let t=1;t<n.length;t++)n[t]=e.normalizeIndentation(a+n[t])}const o=n.join(e.getEOL());return o!==t.value&&(t.parent.replace(t,[new p["d"](o)]),h=void 0),!0}),a}static adjustSelection(e,t,i,s){if(0!==i||0!==s){const{positionLineNumber:n,positionColumn:o}=t,r=o-i,a=o+s,c=e.validateRange({startLineNumber:n,startColumn:r,endLineNumber:n,endColumn:a});t=h["a"].createWithDirection(c.startLineNumber,c.startColumn,c.endLineNumber,c.endColumn,t.getDirection())}return t}static createEditsAndSnippets(e,t,i,s,n,o,h,c){const _=[],u=[];if(!e.hasModel())return{edits:_,snippets:u};const f=e.getModel(),g=e.invokeWithinContext(e=>e.get(d["a"])),m=e.invokeWithinContext(e=>new C(e.get(l["a"]),f)),S=()=>h;let L=0,k=f.getValueInRange(M.adjustSelection(f,e.getSelection(),i,0)),D=f.getValueInRange(M.adjustSelection(f,e.getSelection(),0,s)),P=f.getLineFirstNonWhitespaceColumn(e.getSelection().positionLineNumber);const y=e.getSelections().map((e,t)=>({selection:e,idx:t})).sort((e,t)=>a["a"].compareRangesUsingStarts(e.selection,t.selection));for(const{selection:a,idx:l}of y){let h=M.adjustSelection(f,a,i,0),d=M.adjustSelection(f,a,0,s);k!==f.getValueInRange(h)&&(h=a),D!==f.getValueInRange(d)&&(d=a);const C=a.setStartPosition(h.startLineNumber,h.startColumn).setEndPosition(d.endLineNumber,d.endColumn),O=(new p["c"]).parse(t,!0,n),I=C.getStartPosition(),A=M.adjustWhitespace(f,I,O,o||l>0&&P!==f.getLineFirstNonWhitespaceColumn(a.positionLineNumber),!0);O.resolveVariables(new b([m,new w(S,l,y.length,"spread"===e.getOption(71)),new v(f,a,l,c),new N(f,a),new x,new T(g),new R]));const z=f.getOffsetAt(I)+L;L+=O.toString().length-f.getValueLengthInRange(C),_[l]=r["a"].replace(C,O.toString()),_[l].identifier={major:l,minor:0},u[l]=new E(e,O,z,A)}return{edits:_,snippets:u}}dispose(){Object(n["g"])(this._snippets)}_logInfo(){return`template="${this._template}", merged_templates="${this._templateMerges.join(" -> ")}"`}insert(){if(!this._editor.hasModel())return;const{edits:e,snippets:t}=M.createEditsAndSnippets(this._editor,this._template,this._options.overwriteBefore,this._options.overwriteAfter,!1,this._options.adjustWhitespace,this._options.clipboardText,this._options.overtypingCapturer);this._snippets=t,this._editor.executeEdits("snippet",e,e=>this._snippets[0].hasPlaceholder?this._move(!0):e.filter(e=>!!e.identifier).map(e=>h["a"].fromPositions(e.range.getEndPosition()))),this._editor.revealRange(this._editor.getSelections()[0])}merge(e,t=L){if(!this._editor.hasModel())return;this._templateMerges.push([this._snippets[0]._nestingLevel,this._snippets[0]._placeholderGroupsIdx,e]);const{edits:i,snippets:s}=M.createEditsAndSnippets(this._editor,e,t.overwriteBefore,t.overwriteAfter,!0,t.adjustWhitespace,t.clipboardText,t.overtypingCapturer);this._editor.executeEdits("snippet",i,e=>{for(const t of this._snippets)t.merge(s);return console.assert(0===s.length),this._snippets[0].hasPlaceholder?this._move(void 0):e.filter(e=>!!e.identifier).map(e=>h["a"].fromPositions(e.range.getEndPosition()))})}next(){const e=this._move(!0);this._editor.setSelections(e),this._editor.revealPositionInCenterIfOutsideViewport(e[0].getPosition())}prev(){const e=this._move(!1);this._editor.setSelections(e),this._editor.revealPositionInCenterIfOutsideViewport(e[0].getPosition())}_move(e){const t=[];for(const i of this._snippets){const s=i.move(e);t.push(...s)}return t}get isAtFirstPlaceholder(){return this._snippets[0].isAtFirstPlaceholder}get isAtLastPlaceholder(){return this._snippets[0].isAtLastPlaceholder}get hasPlaceholder(){return this._snippets[0].hasPlaceholder}get choice(){return this._snippets[0].choice}isSelectionWithinPlaceholders(){if(!this.hasPlaceholder)return!1;const e=this._editor.getSelections();if(e.length<this._snippets.length)return!1;let t=new Map;for(const i of this._snippets){const s=i.computePossibleSelections();if(0===t.size)for(const[i,n]of s){n.sort(a["a"].compareRangesUsingStarts);for(const s of e)if(n[0].containsRange(s)){t.set(i,[]);break}}if(0===t.size)return!1;t.forEach((e,t)=>{e.push(...s.get(t))})}e.sort(a["a"].compareRangesUsingStarts);for(let[i,s]of t)if(s.length===e.length){s.sort(a["a"].compareRangesUsingStarts);for(let n=0;n<s.length;n++)s[n].containsRange(e[n])||t.delete(i)}else t.delete(i);return t.size>0}}},"7ef3":function(e,t,i){"use strict";i.d(t,"d",(function(){return o})),i.d(t,"b",(function(){return a})),i.d(t,"a",(function(){return h})),i.d(t,"c",(function(){return u}));class s{constructor(){this.value="",this.pos=0}static isDigitCharacter(e){return e>=48&&e<=57}static isVariableCharacter(e){return 95===e||e>=97&&e<=122||e>=65&&e<=90}text(e){this.value=e,this.pos=0}tokenText(e){return this.value.substr(e.pos,e.len)}next(){if(this.pos>=this.value.length)return{type:14,pos:this.pos,len:0};let e,t=this.pos,i=0,n=this.value.charCodeAt(t);if(e=s._table[n],"number"===typeof e)return this.pos+=1,{type:e,pos:t,len:1};if(s.isDigitCharacter(n)){e=8;do{i+=1,n=this.value.charCodeAt(t+i)}while(s.isDigitCharacter(n));return this.pos+=i,{type:e,pos:t,len:i}}if(s.isVariableCharacter(n)){e=9;do{n=this.value.charCodeAt(t+ ++i)}while(s.isVariableCharacter(n)||s.isDigitCharacter(n));return this.pos+=i,{type:e,pos:t,len:i}}e=10;do{i+=1,n=this.value.charCodeAt(t+i)}while(!isNaN(n)&&"undefined"===typeof s._table[n]&&!s.isDigitCharacter(n)&&!s.isVariableCharacter(n));return this.pos+=i,{type:e,pos:t,len:i}}}s._table={[36]:0,[58]:1,[44]:2,[123]:3,[125]:4,[92]:5,[47]:6,[124]:7,[43]:11,[45]:12,[63]:13};class n{constructor(){this._children=[]}appendChild(e){return e instanceof o&&this._children[this._children.length-1]instanceof o?this._children[this._children.length-1].value+=e.value:(e.parent=this,this._children.push(e)),this}replace(e,t){const{parent:i}=e,s=i.children.indexOf(e),n=i.children.slice(0);n.splice(s,1,...t),i._children=n,function e(t,i){for(const s of t)s.parent=i,e(s.children,s)}(t,i)}get children(){return this._children}get snippet(){let e=this;while(1){if(!e)return;if(e instanceof _)return e;e=e.parent}}toString(){return this.children.reduce((e,t)=>e+t.toString(),"")}len(){return 0}}class o extends n{constructor(e){super(),this.value=e}toString(){return this.value}len(){return this.value.length}clone(){return new o(this.value)}}class r extends n{}class a extends r{constructor(e){super(),this.index=e}static compareByIndex(e,t){return e.index===t.index?0:e.isFinalTabstop?1:t.isFinalTabstop||e.index<t.index?-1:e.index>t.index?1:0}get isFinalTabstop(){return 0===this.index}get choice(){return 1===this._children.length&&this._children[0]instanceof h?this._children[0]:void 0}clone(){let e=new a(this.index);return this.transform&&(e.transform=this.transform.clone()),e._children=this.children.map(e=>e.clone()),e}}class h extends n{constructor(){super(...arguments),this.options=[]}appendChild(e){return e instanceof o&&(e.parent=this,this.options.push(e)),this}toString(){return this.options[0].value}len(){return this.options[0].len()}clone(){let e=new h;return this.options.forEach(e.appendChild,e),e}}class c extends n{constructor(){super(...arguments),this.regexp=new RegExp("")}resolve(e){const t=this;let i=!1,s=e.replace(this.regexp,(function(){return i=!0,t._replace(Array.prototype.slice.call(arguments,0,-2))}));return!i&&this._children.some(e=>e instanceof l&&Boolean(e.elseValue))&&(s=this._replace([])),s}_replace(e){let t="";for(const i of this._children)if(i instanceof l){let s=e[i.index]||"";s=i.resolve(s),t+=s}else t+=i.toString();return t}toString(){return""}clone(){let e=new c;return e.regexp=new RegExp(this.regexp.source,(this.regexp.ignoreCase?"i":"")+(this.regexp.global?"g":"")),e._children=this.children.map(e=>e.clone()),e}}class l extends n{constructor(e,t,i,s){super(),this.index=e,this.shorthandName=t,this.ifValue=i,this.elseValue=s}resolve(e){return"upcase"===this.shorthandName?e?e.toLocaleUpperCase():"":"downcase"===this.shorthandName?e?e.toLocaleLowerCase():"":"capitalize"===this.shorthandName?e?e[0].toLocaleUpperCase()+e.substr(1):"":"pascalcase"===this.shorthandName?e?this._toPascalCase(e):"":"camelcase"===this.shorthandName?e?this._toCamelCase(e):"":Boolean(e)&&"string"===typeof this.ifValue?this.ifValue:Boolean(e)||"string"!==typeof this.elseValue?e||"":this.elseValue}_toPascalCase(e){const t=e.match(/[a-z0-9]+/gi);return t?t.map(e=>e.charAt(0).toUpperCase()+e.substr(1).toLowerCase()).join(""):e}_toCamelCase(e){const t=e.match(/[a-z0-9]+/gi);return t?t.map((e,t)=>0===t?e.toLowerCase():e.charAt(0).toUpperCase()+e.substr(1).toLowerCase()).join(""):e}clone(){let e=new l(this.index,this.shorthandName,this.ifValue,this.elseValue);return e}}class d extends r{constructor(e){super(),this.name=e}resolve(e){let t=e.resolve(this);return this.transform&&(t=this.transform.resolve(t||"")),void 0!==t&&(this._children=[new o(t)],!0)}clone(){const e=new d(this.name);return this.transform&&(e.transform=this.transform.clone()),e._children=this.children.map(e=>e.clone()),e}}function p(e,t){const i=[...e];while(i.length>0){const e=i.shift(),s=t(e);if(!s)break;i.unshift(...e.children)}}class _ extends n{get placeholderInfo(){if(!this._placeholders){let e,t=[];this.walk((function(i){return i instanceof a&&(t.push(i),e=!e||e.index<i.index?i:e),!0})),this._placeholders={all:t,last:e}}return this._placeholders}get placeholders(){const{all:e}=this.placeholderInfo;return e}offset(e){let t=0,i=!1;return this.walk(s=>s===e?(i=!0,!1):(t+=s.len(),!0)),i?t:-1}fullLen(e){let t=0;return p([e],e=>(t+=e.len(),!0)),t}enclosingPlaceholders(e){let t=[],{parent:i}=e;while(i)i instanceof a&&t.push(i),i=i.parent;return t}resolveVariables(e){return this.walk(t=>(t instanceof d&&t.resolve(e)&&(this._placeholders=void 0),!0)),this}appendChild(e){return this._placeholders=void 0,super.appendChild(e)}replace(e,t){return this._placeholders=void 0,super.replace(e,t)}clone(){let e=new _;return this._children=this.children.map(e=>e.clone()),e}walk(e){p(this.children,e)}}class u{constructor(){this._scanner=new s,this._token={type:14,pos:0,len:0}}static escape(e){return e.replace(/\$|}|\\/g,"\\$&")}static guessNeedsClipboard(e){return/\${?CLIPBOARD/.test(e)}parse(e,t,i){this._scanner.text(e),this._token=this._scanner.next();const s=new _;while(this._parse(s));const n=new Map,o=[];let r=0;s.walk(e=>(e instanceof a&&(r+=1,e.isFinalTabstop?n.set(0,void 0):!n.has(e.index)&&e.children.length>0?n.set(e.index,e.children):o.push(e)),!0));for(const h of o){const e=n.get(h.index);if(e){const t=new a(h.index);t.transform=h.transform;for(const i of e)t.appendChild(i.clone());s.replace(h,[t])}}return i||(i=r>0&&t),!n.has(0)&&i&&s.appendChild(new a(0)),s}_accept(e,t){if(void 0===e||this._token.type===e){let e=!t||this._scanner.tokenText(this._token);return this._token=this._scanner.next(),e}return!1}_backTo(e){return this._scanner.pos=e.pos+e.len,this._token=e,!1}_until(e){const t=this._token;while(this._token.type!==e){if(14===this._token.type)return!1;if(5===this._token.type){const e=this._scanner.next();if(0!==e.type&&4!==e.type&&5!==e.type)return!1}this._token=this._scanner.next()}const i=this._scanner.value.substring(t.pos,this._token.pos).replace(/\\(\$|}|\\)/g,"$1");return this._token=this._scanner.next(),i}_parse(e){return this._parseEscaped(e)||this._parseTabstopOrVariableName(e)||this._parseComplexPlaceholder(e)||this._parseComplexVariable(e)||this._parseAnything(e)}_parseEscaped(e){let t;return!!(t=this._accept(5,!0))&&(t=this._accept(0,!0)||this._accept(4,!0)||this._accept(5,!0)||t,e.appendChild(new o(t)),!0)}_parseTabstopOrVariableName(e){let t;const i=this._token,s=this._accept(0)&&(t=this._accept(9,!0)||this._accept(8,!0));return s?(e.appendChild(/^\d+$/.test(t)?new a(Number(t)):new d(t)),!0):this._backTo(i)}_parseComplexPlaceholder(e){let t;const i=this._token,s=this._accept(0)&&this._accept(3)&&(t=this._accept(8,!0));if(!s)return this._backTo(i);const n=new a(Number(t));if(this._accept(1))while(1){if(this._accept(4))return e.appendChild(n),!0;if(!this._parse(n))return e.appendChild(new o("${"+t+":")),n.children.forEach(e.appendChild,e),!0}else{if(!(n.index>0&&this._accept(7)))return this._accept(6)?this._parseTransform(n)?(e.appendChild(n),!0):(this._backTo(i),!1):this._accept(4)?(e.appendChild(n),!0):this._backTo(i);{const t=new h;while(1){if(this._parseChoiceElement(t)){if(this._accept(2))continue;if(this._accept(7)&&(n.appendChild(t),this._accept(4)))return e.appendChild(n),!0}return this._backTo(i),!1}}}}_parseChoiceElement(e){const t=this._token,i=[];while(1){if(2===this._token.type||7===this._token.type)break;let e;if(e=(e=this._accept(5,!0))?this._accept(2,!0)||this._accept(7,!0)||this._accept(5,!0)||e:this._accept(void 0,!0),!e)return this._backTo(t),!1;i.push(e)}return 0===i.length?(this._backTo(t),!1):(e.appendChild(new o(i.join(""))),!0)}_parseComplexVariable(e){let t;const i=this._token,s=this._accept(0)&&this._accept(3)&&(t=this._accept(9,!0));if(!s)return this._backTo(i);const n=new d(t);if(!this._accept(1))return this._accept(6)?this._parseTransform(n)?(e.appendChild(n),!0):(this._backTo(i),!1):this._accept(4)?(e.appendChild(n),!0):this._backTo(i);while(1){if(this._accept(4))return e.appendChild(n),!0;if(!this._parse(n))return e.appendChild(new o("${"+t+":")),n.children.forEach(e.appendChild,e),!0}}_parseTransform(e){let t=new c,i="",s="";while(1){if(this._accept(6))break;let e;if(e=this._accept(5,!0))e=this._accept(6,!0)||e,i+=e;else{if(14===this._token.type)return!1;i+=this._accept(void 0,!0)}}while(1){if(this._accept(6))break;let e;if(e=this._accept(5,!0))e=this._accept(5,!0)||this._accept(6,!0)||e,t.appendChild(new o(e));else if(!this._parseFormatString(t)&&!this._parseAnything(t))return!1}while(1){if(this._accept(4))break;if(14===this._token.type)return!1;s+=this._accept(void 0,!0)}try{t.regexp=new RegExp(i,s)}catch(n){return!1}return e.transform=t,!0}_parseFormatString(e){const t=this._token;if(!this._accept(0))return!1;let i=!1;this._accept(3)&&(i=!0);let s=this._accept(8,!0);if(!s)return this._backTo(t),!1;if(!i)return e.appendChild(new l(Number(s))),!0;if(this._accept(4))return e.appendChild(new l(Number(s))),!0;if(!this._accept(1))return this._backTo(t),!1;if(this._accept(6)){let i=this._accept(9,!0);return i&&this._accept(4)?(e.appendChild(new l(Number(s),i)),!0):(this._backTo(t),!1)}if(this._accept(11)){let t=this._until(4);if(t)return e.appendChild(new l(Number(s),void 0,t,void 0)),!0}else if(this._accept(12)){let t=this._until(4);if(t)return e.appendChild(new l(Number(s),void 0,void 0,t)),!0}else if(this._accept(13)){let t=this._until(1);if(t){let i=this._until(4);if(i)return e.appendChild(new l(Number(s),void 0,t,i)),!0}}else{let t=this._until(4);if(t)return e.appendChild(new l(Number(s),void 0,void 0,t)),!0}return this._backTo(t),!1}_parseAnything(e){return 14!==this._token.type&&(e.appendChild(new o(this._scanner.tokenText(this._token))),this._accept(void 0),!0)}}},"89ff":function(e,t,i){"use strict";i.d(t,"a",(function(){return a}));var s=i("11f7"),n=i("70c3"),o=i("308f"),r=i("a666");class a{constructor(){let e;this._onDidWillResize=new o["b"],this.onDidWillResize=this._onDidWillResize.event,this._onDidResize=new o["b"],this.onDidResize=this._onDidResize.event,this._sashListener=new r["b"],this._size=new s["b"](0,0),this._minSize=new s["b"](0,0),this._maxSize=new s["b"](Number.MAX_SAFE_INTEGER,Number.MAX_SAFE_INTEGER),this.domNode=document.createElement("div"),this._eastSash=new n["b"](this.domNode,{getVerticalSashLeft:()=>this._size.width},{orientation:0}),this._westSash=new n["b"](this.domNode,{getVerticalSashLeft:()=>0},{orientation:0}),this._northSash=new n["b"](this.domNode,{getHorizontalSashTop:()=>0},{orientation:1,orthogonalEdge:n["a"].North}),this._southSash=new n["b"](this.domNode,{getHorizontalSashTop:()=>this._size.height},{orientation:1,orthogonalEdge:n["a"].South}),this._northSash.orthogonalStartSash=this._westSash,this._northSash.orthogonalEndSash=this._eastSash,this._southSash.orthogonalStartSash=this._westSash,this._southSash.orthogonalEndSash=this._eastSash;let t=0,i=0;this._sashListener.add(o["c"].any(this._northSash.onDidStart,this._eastSash.onDidStart,this._southSash.onDidStart,this._westSash.onDidStart)(()=>{void 0===e&&(this._onDidWillResize.fire(),e=this._size,t=0,i=0)})),this._sashListener.add(o["c"].any(this._northSash.onDidEnd,this._eastSash.onDidEnd,this._southSash.onDidEnd,this._westSash.onDidEnd)(()=>{void 0!==e&&(e=void 0,t=0,i=0,this._onDidResize.fire({dimension:this._size,done:!0}))})),this._sashListener.add(this._eastSash.onDidChange(s=>{e&&(i=s.currentX-s.startX,this.layout(e.height+t,e.width+i),this._onDidResize.fire({dimension:this._size,done:!1,east:!0}))})),this._sashListener.add(this._westSash.onDidChange(s=>{e&&(i=-(s.currentX-s.startX),this.layout(e.height+t,e.width+i),this._onDidResize.fire({dimension:this._size,done:!1,west:!0}))})),this._sashListener.add(this._northSash.onDidChange(s=>{e&&(t=-(s.currentY-s.startY),this.layout(e.height+t,e.width+i),this._onDidResize.fire({dimension:this._size,done:!1,north:!0}))})),this._sashListener.add(this._southSash.onDidChange(s=>{e&&(t=s.currentY-s.startY,this.layout(e.height+t,e.width+i),this._onDidResize.fire({dimension:this._size,done:!1,south:!0}))})),this._sashListener.add(o["c"].any(this._eastSash.onDidReset,this._westSash.onDidReset)(e=>{this._preferredSize&&(this.layout(this._size.height,this._preferredSize.width),this._onDidResize.fire({dimension:this._size,done:!0}))})),this._sashListener.add(o["c"].any(this._northSash.onDidReset,this._southSash.onDidReset)(e=>{this._preferredSize&&(this.layout(this._preferredSize.height,this._size.width),this._onDidResize.fire({dimension:this._size,done:!0}))}))}dispose(){this._northSash.dispose(),this._southSash.dispose(),this._eastSash.dispose(),this._westSash.dispose(),this._sashListener.dispose(),this._onDidResize.dispose(),this._onDidWillResize.dispose(),this.domNode.remove()}enableSashes(e,t,i,s){this._northSash.state=e?3:0,this._eastSash.state=t?3:0,this._southSash.state=i?3:0,this._westSash.state=s?3:0}layout(e=this.size.height,t=this.size.width){const{height:i,width:n}=this._minSize,{height:o,width:r}=this._maxSize;e=Math.max(i,Math.min(o,e)),t=Math.max(n,Math.min(r,t));const a=new s["b"](t,e);s["b"].equals(a,this._size)||(this.domNode.style.height=e+"px",this.domNode.style.width=t+"px",this._size=a,this._northSash.layout(),this._eastSash.layout(),this._southSash.layout(),this._westSash.layout())}clearSashHoverState(){this._eastSash.clearSashHoverState(),this._westSash.clearSashHoverState(),this._northSash.clearSashHoverState(),this._southSash.clearSashHoverState()}get size(){return this._size}set maxSize(e){this._maxSize=e}get maxSize(){return this._maxSize}set minSize(e){this._minSize=e}get minSize(){return this._minSize}set preferredSize(e){this._preferredSize=e}get preferredSize(){return this._preferredSize}}},a582:function(e,t,i){},b6c7:function(e,t,i){"use strict";i.r(t),i.d(t,"SnippetController2",(function(){return m}));var s=i("a666"),n=i("b2cc"),o=i("6a89"),r=i("8025"),a=i("c101"),h=i("4ef0"),c=i("dff7"),l=i("4fc3"),d=i("0a0f"),p=i("d3d7"),_=i("6d42"),u=function(e,t,i,s){var n,o=arguments.length,r=o<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(r=(o<3?n(r):o>3?n(t,i,r):n(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r},f=function(e,t){return function(i,s){t(i,s,e)}};const g={overwriteBefore:0,overwriteAfter:0,undoStopBefore:!0,undoStopAfter:!0,adjustWhitespace:!0,clipboardText:void 0,overtypingCapturer:void 0};let m=class e{constructor(t,i,n,o){this._editor=t,this._instantiationService=i,this._logService=n,this._snippetListener=new s["b"],this._modelVersionId=-1,this._inSnippet=e.InSnippetMode.bindTo(o),this._hasNextTabstop=e.HasNextTabstop.bindTo(o),this._hasPrevTabstop=e.HasPrevTabstop.bindTo(o)}static get(t){return t.getContribution(e.ID)}dispose(){var e;this._inSnippet.reset(),this._hasPrevTabstop.reset(),this._hasNextTabstop.reset(),null===(e=this._session)||void 0===e||e.dispose(),this._snippetListener.dispose()}insert(e,t){try{this._doInsert(e,"undefined"===typeof t?g:Object.assign(Object.assign({},g),t))}catch(i){this.cancel(),this._logService.error(i),this._logService.error("snippet_error"),this._logService.error("insert_template=",e),this._logService.error("existing_template=",this._session?this._session._logInfo():"<no_session>")}}_doInsert(e,t){this._editor.hasModel()&&(this._snippetListener.clear(),t.undoStopBefore&&this._editor.getModel().pushStackElement(),this._session?this._session.merge(e,t):(this._modelVersionId=this._editor.getModel().getAlternativeVersionId(),this._session=new _["a"](this._editor,e,t),this._session.insert()),t.undoStopAfter&&this._editor.getModel().pushStackElement(),this._updateState(),this._snippetListener.add(this._editor.onDidChangeModelContent(e=>e.isFlush&&this.cancel())),this._snippetListener.add(this._editor.onDidChangeModel(()=>this.cancel())),this._snippetListener.add(this._editor.onDidChangeCursorSelection(()=>this._updateState())))}_updateState(){if(this._session&&this._editor.hasModel()){if(this._modelVersionId===this._editor.getModel().getAlternativeVersionId())return this.cancel();if(!this._session.hasPlaceholder)return this.cancel();if(this._session.isAtLastPlaceholder||!this._session.isSelectionWithinPlaceholders())return this._editor.getModel().pushStackElement(),this.cancel();this._inSnippet.set(!0),this._hasPrevTabstop.set(!this._session.isAtFirstPlaceholder),this._hasNextTabstop.set(!this._session.isAtLastPlaceholder),this._handleChoice()}}_handleChoice(){if(!this._session||!this._editor.hasModel())return void(this._currentChoice=void 0);const{choice:e}=this._session;if(e){if(this._currentChoice!==e){this._currentChoice=e,this._editor.setSelections(this._editor.getSelections().map(e=>r["a"].fromPositions(e.getStartPosition())));const[t]=e.options;this._instantiationService.invokeFunction(h["f"],this._editor,e.options.map((e,i)=>({kind:13,label:e.value,insertText:e.value,sortText:"a".repeat(i+1),range:o["a"].fromPositions(this._editor.getPosition(),this._editor.getPosition().delta(0,t.value.length))})))}}else this._currentChoice=void 0}finish(){while(this._inSnippet.get())this.next()}cancel(e=!1){var t;this._inSnippet.reset(),this._hasPrevTabstop.reset(),this._hasNextTabstop.reset(),this._snippetListener.clear(),null===(t=this._session)||void 0===t||t.dispose(),this._session=void 0,this._modelVersionId=-1,e&&this._editor.setSelections([this._editor.getSelection()])}prev(){this._session&&this._session.prev(),this._updateState()}next(){this._session&&this._session.next(),this._updateState()}isInSnippet(){return Boolean(this._inSnippet.get())}};m.ID="snippetController2",m.InSnippetMode=new l["c"]("inSnippetMode",!1,Object(c["a"])("inSnippetMode","Whether the editor in current in snippet mode")),m.HasNextTabstop=new l["c"]("hasNextTabstop",!1,Object(c["a"])("hasNextTabstop","Whether there is a next tab stop when in snippet mode")),m.HasPrevTabstop=new l["c"]("hasPrevTabstop",!1,Object(c["a"])("hasPrevTabstop","Whether there is a previous tab stop when in snippet mode")),m=u([f(1,d["a"]),f(2,p["b"]),f(3,l["b"])],m),Object(n["l"])(m.ID,m);const S=n["c"].bindToContribution(m.get);Object(n["k"])(new S({id:"jumpToNextSnippetPlaceholder",precondition:l["a"].and(m.InSnippetMode,m.HasNextTabstop),handler:e=>e.next(),kbOpts:{weight:130,kbExpr:a["a"].editorTextFocus,primary:2}})),Object(n["k"])(new S({id:"jumpToPrevSnippetPlaceholder",precondition:l["a"].and(m.InSnippetMode,m.HasPrevTabstop),handler:e=>e.prev(),kbOpts:{weight:130,kbExpr:a["a"].editorTextFocus,primary:1026}})),Object(n["k"])(new S({id:"leaveSnippet",precondition:m.InSnippetMode,handler:e=>e.cancel(!0),kbOpts:{weight:130,kbExpr:a["a"].editorTextFocus,primary:9,secondary:[1033]}})),Object(n["k"])(new S({id:"acceptSnippet",precondition:m.InSnippetMode,handler:e=>e.finish()}))},d670:function(e,t,i){}}]);
Coded by KALI :v Greetz to DR HARD ../ kali.zbi@hotmail.com