(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-e13e4362"],{"47b9":function(e,t,n){n.r(t),n.d(t,"setupMode",(function(){return Bt}));var r,i=n("0ab8"),o=(a.prototype._stopWorker=function(){this._worker&&(this._worker.dispose(),this._worker=null),this._client=null},a.prototype.dispose=function(){clearInterval(this._idleCheckInterval),this._configChangeListener.dispose(),this._stopWorker()},a.prototype._checkIfIdle=function(){this._worker&&12e4{for(var i=0,o=0;i{var t=r;if(48===e.charCodeAt(r))r++;else for(r++;r{if(!c(e)&&!u(e)){switch(e){case 125:case 93:case 123:case 91:case 34:case 58:case 44:case 47:return}return 1}})(t);)r++,t=e.charCodeAt(r);if(o!==r)switch(i=e.substring(o,r)){case"true":return a=8;case"false":return a=9;case"null":return a=7}else i+=String.fromCharCode(t),r++;return a=16}}return{setPosition:function(e){r=e,i="",a=16,p=o=0},getPosition:function(){return r},scan:(t=void 0!==t&&t)?function(){for(var e;12<=(e=g())&&e<=15;);return e}:g,getToken:function(){return a},getTokenValue:function(){return i},getTokenOffset:function(){return o},getTokenLength:function(){return r-o},getTokenStartLine:function(){return l},getTokenStartCharacter:function(){return o-d},getTokenError:function(){return p}}}function c(e){return 32===e||9===e||11===e||12===e||160===e||5760===e||8192<=e&&e<=8203||8239===e||8287===e||12288===e||65279===e}function u(e){return 10===e||13===e||8232===e||8233===e}function h(e){return 48<=e&&e<=57}function l(e,t,n){void 0===n&&(n=r.DEFAULT);var i=s(e,!1);function o(e){return e?function(){return e(i.getTokenOffset(),i.getTokenLength(),i.getTokenStartLine(),i.getTokenStartCharacter())}:function(){return!0}}function a(e){return e?function(t){return e(t,i.getTokenOffset(),i.getTokenLength(),i.getTokenStartLine(),i.getTokenStartCharacter())}:function(){return!0}}var c=o(t.onObjectBegin),u=a(t.onObjectProperty),h=o(t.onObjectEnd),l=o(t.onArrayBegin),f=o(t.onArrayEnd),d=a(t.onLiteralValue),p=a(t.onSeparator),m=o(t.onComment),g=a(t.onError),v=n&&n.disallowComments,y=n&&n.allowTrailingComma;function b(){for(;;){var e=i.scan();switch(i.getTokenError()){case 4:w(14);break;case 5:w(15);break;case 3:w(13);break;case 1:v||w(11);break;case 2:w(12);break;case 6:w(16)}switch(e){case 12:case 13:v?w(10):m();break;case 16:w(1);break;case 15:case 14:break;default:return e}}}function w(e,t,n){if(void 0===t&&(t=[]),void 0===n&&(n=[]),g(e),0{if(10===i.getToken())return C(!1),6===i.getToken()?(p(":"),b(),_()||w(4,[],[2,5])):w(5,[],[2,5]),1;w(3,[],[2,5])})()||w(4,[],[2,5]),e=!0}return h(),2!==i.getToken()?w(7,[2],[]):b(),!0}function _(){switch(i.getToken()){case 3:l(),b();for(var e=!1;4!==i.getToken()&&17!==i.getToken();){if(5===i.getToken()){if(e||w(4,[],[]),p(","),b(),4===i.getToken()&&y)break}else e&&w(6,[],[]);_()||w(4,[],[4,5]),e=!0}return f(),4!==i.getToken()?w(8,[4],[]):b(),1;case 1:return k();case 10:return C(!0);default:switch(i.getToken()){case 11:var t=i.getTokenValue();t=Number(t);isNaN(t)&&(w(2),t=0),d(t);break;case 7:d(null);break;case 8:d(!0);break;case 9:d(!1);break;default:return}return b(),1}}return b(),17===i.getToken()?!!n.allowEmptyContent||(w(4,[],[]),!1):_()?(17!==i.getToken()&&w(9,[],[]),!0):(w(4,[],[]),!1)}(r=r||{}).DEFAULT={allowTrailingComma:!1};var f,d,p,m,g,v,y,b,w,C,k,_,A,x,S,I,j=s,O=function(e,t,n){void 0===t&&(t=[]),void 0===n&&(n=r.DEFAULT);var i=null,o=[],a=[];function s(e){Array.isArray(o)?o.push(e):null!==i&&(o[i]=e)}return l(e,{onObjectBegin:function(){var e={};s(e),a.push(o),o=e,i=null},onObjectProperty:function(e){i=e},onObjectEnd:function(){o=a.pop()},onArrayBegin:function(){var e=[];s(e),a.push(o),o=e,i=null},onArrayEnd:function(){o=a.pop()},onLiteralValue:s,onError:function(e,n,r){t.push({error:e,offset:n,length:r})}},n),o[0]},E=function e(t){switch(t.type){case"array":return t.children.map(e);case"object":for(var n=Object.create(null),r=0,i=t.children;rn.line||t.line===n.line&&t.character>n.character?{start:n,end:t}:e}function le(e,t){for(var n,r=[],i=2;ie?r=i:n=i+1}var o=n-1;return d.create(o,e-t[o])},se.prototype.offsetAt=function(e){var t,n=this.getLineOffsets();return e.line>=n.length?this._content.length:e.line<0?0:(t=n[e.line],n=e.line+1e?r=i:n=i+1}var o=n-1;return{line:o,character:e-t[o]}},ce.prototype.offsetAt=function(e){var t,n=this.getLineOffsets();return e.line>=n.length?this._content.length:e.line<0?0:(t=n[e.line],n=e.line+1=e.offset&&t{if("string"!=typeof e)throw new TypeError("Expected a string");for(var n,r=String(e),i="",o=!!t&&!!t.extended,a=!!t&&!!t.globstar,s=!1,c=(e=t&&"string"==typeof t.flags?t.flags:"",0),u=r.length;c{try{return Fe.a.parse(t).with({fragment:null,query:null}).toString()}catch(e){return t}})(e),o=0,a=this.filePatternAssociations;o{switch(e){case y.Error:return i.MarkerSeverity.Error;case y.Warning:return i.MarkerSeverity.Warning;case y.Information:return i.MarkerSeverity.Info;case y.Hint:return i.MarkerSeverity.Hint;default:return i.MarkerSeverity.Info}})(e.severity),startLineNumber:e.range.start.line+1,startColumn:e.range.start.character+1,endLineNumber:e.range.end.line+1,endColumn:e.range.end.character+1,message:e.message,code:t,source:e.source};var t}));var r=i.editor.getModel(e);r&&r.getModeId()===t&&i.editor.setModelMarkers(r,t,n)}))})).then(void 0,(function(e){}))};var it=ot;function ot(e,t,n){function r(e){var t,n=e.getModeId();n===a._languageId&&(a._listener[e.uri.toString()]=e.onDidChangeContent((function(){clearTimeout(t),t=setTimeout((function(){return a._doValidate(e.uri,n)}),500)})),a._doValidate(e.uri,n))}function o(e){i.editor.setModelMarkers(e,a._languageId,[]);e=e.uri.toString();var t=a._listener[e];t&&(t.dispose(),delete a._listener[e])}var a=this;this._languageId=e,this._worker=t,this._disposables=[],this._listener=Object.create(null),this._disposables.push(i.editor.onDidCreateModel(r)),this._disposables.push(i.editor.onWillDisposeModel((function(e){o(e),a._resetSchema(e.uri)}))),this._disposables.push(i.editor.onDidChangeModelLanguage((function(e){o(e.model),r(e.model),a._resetSchema(e.model.uri)}))),this._disposables.push(n.onDidChange((function(e){i.editor.getModels().forEach((function(e){e.getModeId()===a._languageId&&(o(e),r(e))}))}))),this._disposables.push({dispose:function(){for(var e in i.editor.getModels().forEach(o),a._listener)a._listener[e].dispose()}}),i.editor.getModels().forEach(r)}function at(e){if(e)return{character:e.column-1,line:e.lineNumber-1}}function st(e){if(e)return{start:{line:e.startLineNumber-1,character:e.startColumn-1},end:{line:e.endLineNumber-1,character:e.endColumn-1}}}function ct(e){if(e)return new i.Range(e.start.line+1,e.start.character+1,e.end.line+1,e.end.character+1)}function ut(e){if(e)return{range:ct(e.range),text:e.newText}}Object.defineProperty(lt.prototype,"triggerCharacters",{get:function(){return[" ",":",'"']},enumerable:!1,configurable:!0}),lt.prototype.provideCompletionItems=function(e,t,n,r){var o=e.uri;return this._worker(o).then((function(e){return e.doComplete(o.toString(),at(t))})).then((function(n){var r,o;if(n)return o=e.getWordUntilPosition(t),r=new i.Range(t.lineNumber,o.startColumn,t.lineNumber,o.endColumn),o=n.items.map((function(e){var t,n={label:e.label,insertText:e.insertText||e.label,sortText:e.sortText,filterText:e.filterText,documentation:e.documentation,detail:e.detail,command:(n=e.command)&&"editor.action.triggerSuggest"===n.command?{id:n.command,title:n.title,arguments:n.arguments}:void 0,range:r,kind:(e=>{var t=i.languages.CompletionItemKind;switch(e){case U.Text:return t.Text;case U.Method:return t.Method;case U.Function:return t.Function;case U.Constructor:return t.Constructor;case U.Field:return t.Field;case U.Variable:return t.Variable;case U.Class:return t.Class;case U.Interface:return t.Interface;case U.Module:return t.Module;case U.Property:return t.Property;case U.Unit:return t.Unit;case U.Value:return t.Value;case U.Enum:return t.Enum;case U.Keyword:return t.Keyword;case U.Snippet:return t.Snippet;case U.Color:return t.Color;case U.File:return t.File;case U.Reference:return t.Reference}return t.Property})(e.kind)};return e.textEdit&&(void 0!==(t=e.textEdit).insert&&void 0!==t.replace?n.range={insert:ct(e.textEdit.insert),replace:ct(e.textEdit.replace)}:n.range=ct(e.textEdit.range),n.insertText=e.textEdit.newText),e.additionalTextEdits&&(n.additionalTextEdits=e.additionalTextEdits.map(ut)),e.insertTextFormat===q.Snippet&&(n.insertTextRules=i.languages.CompletionItemInsertTextRule.InsertAsSnippet),n})),{isIncomplete:n.isIncomplete,suggestions:o}}))};var ht=lt;function lt(e){this._worker=e}function ft(e){var t;return"string"==typeof e?{value:e}:(t=e)&&"object"==typeof t&&"string"==typeof t.kind?"plaintext"===e.kind?{value:e.value.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}:{value:e.value}:{value:"```"+e.language+"\n"+e.value+"\n```\n"}}pt.prototype.provideHover=function(e,t,n){var r=e.uri;return this._worker(r).then((function(e){return e.doHover(r.toString(),at(t))})).then((function(e){if(e)return{range:ct(e.range),contents:(e=>{if(e)return Array.isArray(e)?e.map(ft):[ft(e)]})(e.contents)}}))};var dt=pt;function pt(e){this._worker=e}gt.prototype.provideDocumentSymbols=function(e,t){var n=e.uri;return this._worker(n).then((function(e){return e.findDocumentSymbols(n.toString())})).then((function(e){if(e)return e.map((function(e){return{name:e.name,detail:"",containerName:e.containerName,kind:(e=>{var t=i.languages.SymbolKind;switch(e){case G.File:return t.Array;case G.Module:return t.Module;case G.Namespace:return t.Namespace;case G.Package:return t.Package;case G.Class:return t.Class;case G.Method:return t.Method;case G.Property:return t.Property;case G.Field:return t.Field;case G.Constructor:return t.Constructor;case G.Enum:return t.Enum;case G.Interface:return t.Interface;case G.Function:return t.Function;case G.Variable:return t.Variable;case G.Constant:return t.Constant;case G.String:return t.String;case G.Number:return t.Number;case G.Boolean:return t.Boolean;case G.Array:return t.Array}return t.Function})(e.kind),range:ct(e.location.range),selectionRange:ct(e.location.range),tags:[]}}))}))};var mt=gt;function gt(e){this._worker=e}function vt(e){return{tabSize:e.tabSize,insertSpaces:e.insertSpaces}}bt.prototype.provideDocumentFormattingEdits=function(e,t,n){var r=e.uri;return this._worker(r).then((function(e){return e.format(r.toString(),null,vt(t)).then((function(e){if(e&&0!==e.length)return e.map(ut)}))}))};var yt=bt;function bt(e){this._worker=e}Ct.prototype.provideDocumentRangeFormattingEdits=function(e,t,n,r){var i=e.uri;return this._worker(i).then((function(e){return e.format(i.toString(),st(t),vt(n)).then((function(e){if(e&&0!==e.length)return e.map(ut)}))}))};var wt=Ct;function Ct(e){this._worker=e}_t.prototype.provideDocumentColors=function(e,t){var n=e.uri;return this._worker(n).then((function(e){return e.findDocumentColors(n.toString())})).then((function(e){if(e)return e.map((function(e){return{color:e.color,range:ct(e.range)}}))}))},_t.prototype.provideColorPresentations=function(e,t,n){var r=e.uri;return this._worker(r).then((function(e){return e.getColorPresentations(r.toString(),t.color,st(t.range))})).then((function(e){if(e)return e.map((function(e){var t={label:e.label};return e.textEdit&&(t.textEdit=ut(e.textEdit)),e.additionalTextEdits&&(t.additionalTextEdits=e.additionalTextEdits.map(ut)),t}))}))};var kt=_t;function _t(e){this._worker=e}xt.prototype.provideFoldingRanges=function(e,t,n){var r=e.uri;return this._worker(r).then((function(e){return e.getFoldingRanges(r.toString(),t)})).then((function(e){if(e)return e.map((function(e){var t={start:e.startLine+1,end:e.endLine+1};return void 0!==e.kind&&(t.kind=(e=>{switch(e){case g.Comment:return i.languages.FoldingRangeKind.Comment;case g.Imports:return i.languages.FoldingRangeKind.Imports;case g.Region:return i.languages.FoldingRangeKind.Region}})(e.kind)),t}))}))};var At=xt;function xt(e){this._worker=e}It.prototype.provideSelectionRanges=function(e,t,n){var r=e.uri;return this._worker(r).then((function(e){return e.getSelectionRanges(r.toString(),t.map(at))})).then((function(e){if(e)return e.map((function(e){for(var t=[];e;)t.push({range:ct(e.range)}),e=e.parent;return t}))}))};var St=It;function It(e){this._worker=e}function jt(e){return{getInitialState:function(){return new qt(null,null,!1,null)},tokenize:function(t,n,r,i){var o=e,a=t,s=n,c=r,u=(void 0===c&&(c=0),0),h=!1;switch(s.scanError){case 2:a='"'+a,u=1;break;case 1:a="/*"+a,u=2}for(var l=j(a),f=s.lastWasColon,d=s.parents,p={tokens:[],endState:s.clone()};;){var m=c+l.getPosition(),g="",v=l.scan();if(17===v)break;if(m===c+l.getPosition())throw new Error("Scanner did not advance, next 3 characters are: "+a.substr(l.getPosition(),3));switch(h&&(m-=u),h=0{function n(e){if("string"!=typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}function r(e,t){for(var n,r="",i=0,o=-1,a=0,s=0;s<=e.length;++s){if(s{var i;r.r(n),r.d(n,{URI:()=>d,Utils:()=>I}),"object"==typeof e?i="win32"===e.platform:"object"==typeof navigator&&(i=0<=navigator.userAgent.indexOf("Windows")),o=function(e,t){return(o=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}))(e,t)};var o,a,s,c=/^\w[\w\d+.-]*$/,u=/^\//,h=/^\/\//,l="/",f=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/,d=(b.isUri=function(e){return e instanceof b||!!e&&"string"==typeof e.authority&&"string"==typeof e.fragment&&"string"==typeof e.path&&"string"==typeof e.query&&"string"==typeof e.scheme&&"function"==typeof e.fsPath&&"function"==typeof e.with&&"function"==typeof e.toString},Object.defineProperty(b.prototype,"fsPath",{get:function(){return k(this,!1)},enumerable:!1,configurable:!0}),b.prototype.with=function(e){var t,n,r,i;return e&&(void 0===(t=e.scheme)?t=this.scheme:null===t&&(t=""),void 0===(n=e.authority)?n=this.authority:null===n&&(n=""),void 0===(r=e.path)?r=this.path:null===r&&(r=""),void 0===(i=e.query)?i=this.query:null===i&&(i=""),void 0===(e=e.fragment)?e=this.fragment:null===e&&(e=""),t!==this.scheme||n!==this.authority||r!==this.path||i!==this.query||e!==this.fragment)?new m(t,n,r,i,e):this},b.parse=function(e,t){return void 0===t&&(t=!1),e=f.exec(e),e?new m(e[2]||"",x(e[4]||""),x(e[5]||""),x(e[7]||""),x(e[9]||""),t):new m("","","","","")},b.file=function(e){var t,n="";return(e=i?e.replace(/\\/g,l):e)[0]===l&&e[1]===l&&(e=-1===(t=e.indexOf(l,2))?(n=e.substring(2),l):(n=e.substring(2,t),e.substring(t)||l)),new m("file",n,e,"","")},b.from=function(e){return new m(e.scheme,e.authority,e.path,e.query,e.fragment)},b.prototype.toString=function(e){return _(this,e=void 0!==e&&e)},b.prototype.toJSON=function(){return this},b.revive=function(e){var t;return e&&(e instanceof b?e:((t=new m(e))._formatted=e.external,t._fsPath=e._sep===p?e.fsPath:null,t))},b),p=i?1:void 0,m=(o(s=v,n=a=d),s.prototype=null===n?Object.create(n):(y.prototype=n.prototype,new y),Object.defineProperty(v.prototype,"fsPath",{get:function(){return this._fsPath||(this._fsPath=k(this,!1)),this._fsPath},enumerable:!1,configurable:!0}),v.prototype.toString=function(e){return(e=void 0!==e&&e)?_(this,!0):(this._formatted||(this._formatted=_(this,!1)),this._formatted)},v.prototype.toJSON=function(){var e={$mid:1};return this._fsPath&&(e.fsPath=this._fsPath,e._sep=p),this._formatted&&(e.external=this._formatted),this.path&&(e.path=this.path),this.scheme&&(e.scheme=this.scheme),this.authority&&(e.authority=this.authority),this.query&&(e.query=this.query),this.fragment&&(e.fragment=this.fragment),e},v),g=((n={})[58]="%3A",n[47]="%2F",n[63]="%3F",n[35]="%23",n[91]="%5B",n[93]="%5D",n[64]="%40",n[33]="%21",n[36]="%24",n[38]="%26",n[39]="%27",n[40]="%28",n[41]="%29",n[42]="%2A",n[43]="%2B",n[44]="%2C",n[59]="%3B",n[61]="%3D",n[32]="%20",n);function v(){var e=null!==a&&a.apply(this,arguments)||this;return e._formatted=null,e._fsPath=null,e}function y(){this.constructor=s}function b(e,t,n,r,i,o){if(void 0===o&&(o=!1),"object"==typeof e)this.scheme=e.scheme||"",this.authority=e.authority||"",this.path=e.path||"",this.query=e.query||"",this.fragment=e.fragment||"";else{if(this.scheme=e||o?e:"file",this.authority=t||"",this.path=((e,t)=>{switch(e){case"https":case"http":case"file":t?t[0]!==l&&(t=l+t):t=l}return t})(this.scheme,n||""),this.query=r||"",this.fragment=i||"",e=this,t=o,!e.scheme&&t)throw new Error('[UriError]: Scheme is missing: {scheme: "", authority: "'+e.authority+'", path: "'+e.path+'", query: "'+e.query+'", fragment: "'+e.fragment+'"}');if(e.scheme&&!c.test(e.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(e.path)if(e.authority){if(!u.test(e.path))throw new Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character')}else if(h.test(e.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}}function w(e,t){for(var n=void 0,r=-1,i=0;i{for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};let a=o(447).URI}).call(this,n("f28c"))}}]);