(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d228ca6"],{db4f:function(e,n,t){"use strict";t.r(n),t.d(n,"setupMode",(function(){return Ve}));var r,i,o,a,s,u,c,d,f,g,l,h,p,v,m,_,w,y,b,k,C,E,x,I,A,S,T=t("0b3c"),R=12e4,M=function(){function e(e){var n=this;this._defaults=e,this._worker=null,this._idleCheckInterval=window.setInterval((function(){return n._checkIfIdle()}),3e4),this._lastUsedTime=0,this._configChangeListener=this._defaults.onDidChange((function(){return n._stopWorker()}))}return e.prototype._stopWorker=function(){this._worker&&(this._worker.dispose(),this._worker=null),this._client=null},e.prototype.dispose=function(){clearInterval(this._idleCheckInterval),this._configChangeListener.dispose(),this._stopWorker()},e.prototype._checkIfIdle=function(){if(this._worker){var e=Date.now()-this._lastUsedTime;e>R&&this._stopWorker()}},e.prototype._getClient=function(){return this._lastUsedTime=Date.now(),this._client||(this._worker=T["editor"].createWebWorker({moduleId:"vs/language/css/cssWorker",label:this._defaults.languageId,createData:{options:this._defaults.options,languageId:this._defaults.languageId}}),this._client=this._worker.getProxy()),this._client},e.prototype.getLanguageServiceWorker=function(){for(var e,n=this,t=[],r=0;r0&&(i.arguments=t),i}function t(e){var n=e;return fe.defined(n)&&fe.string(n.title)&&fe.string(n.command)}e.create=n,e.is=t}(w||(w={})),function(e){function n(e,n){return{range:e,newText:n}}function t(e,n){return{range:{start:e,end:e},newText:n}}function r(e){return{range:e,newText:""}}function i(e){var n=e;return fe.objectLiteral(n)&&fe.string(n.newText)&&a.is(n.range)}e.replace=n,e.insert=t,e.del=r,e.is=i}(y||(y={})),function(e){function n(e,n,t){var r={label:e};return void 0!==n&&(r.needsConfirmation=n),void 0!==t&&(r.description=t),r}function t(e){var n=e;return void 0!==n&&fe.objectLiteral(n)&&fe.string(n.label)&&(fe.boolean(n.needsConfirmation)||void 0===n.needsConfirmation)&&(fe.string(n.description)||void 0===n.description)}e.create=n,e.is=t}(b||(b={})),function(e){function n(e){var n=e;return"string"===typeof n}e.is=n}(k||(k={})),function(e){function n(e,n,t){return{range:e,newText:n,annotationId:t}}function t(e,n,t){return{range:{start:e,end:e},newText:n,annotationId:t}}function r(e,n){return{range:e,newText:"",annotationId:n}}function i(e){var n=e;return y.is(n)&&(b.is(n.annotationId)||k.is(n.annotationId))}e.replace=n,e.insert=t,e.del=r,e.is=i}(C||(C={})),function(e){function n(e,n){return{textDocument:e,edits:n}}function t(e){var n=e;return fe.defined(n)&&L.is(n.textDocument)&&Array.isArray(n.edits)}e.create=n,e.is=t}(E||(E={})),function(e){function n(e,n,t){var r={kind:"create",uri:e};return void 0===n||void 0===n.overwrite&&void 0===n.ignoreIfExists||(r.options=n),void 0!==t&&(r.annotationId=t),r}function t(e){var n=e;return n&&"create"===n.kind&&fe.string(n.uri)&&(void 0===n.options||(void 0===n.options.overwrite||fe.boolean(n.options.overwrite))&&(void 0===n.options.ignoreIfExists||fe.boolean(n.options.ignoreIfExists)))&&(void 0===n.annotationId||k.is(n.annotationId))}e.create=n,e.is=t}(x||(x={})),function(e){function n(e,n,t,r){var i={kind:"rename",oldUri:e,newUri:n};return void 0===t||void 0===t.overwrite&&void 0===t.ignoreIfExists||(i.options=t),void 0!==r&&(i.annotationId=r),i}function t(e){var n=e;return n&&"rename"===n.kind&&fe.string(n.oldUri)&&fe.string(n.newUri)&&(void 0===n.options||(void 0===n.options.overwrite||fe.boolean(n.options.overwrite))&&(void 0===n.options.ignoreIfExists||fe.boolean(n.options.ignoreIfExists)))&&(void 0===n.annotationId||k.is(n.annotationId))}e.create=n,e.is=t}(I||(I={})),function(e){function n(e,n,t){var r={kind:"delete",uri:e};return void 0===n||void 0===n.recursive&&void 0===n.ignoreIfNotExists||(r.options=n),void 0!==t&&(r.annotationId=t),r}function t(e){var n=e;return n&&"delete"===n.kind&&fe.string(n.uri)&&(void 0===n.options||(void 0===n.options.recursive||fe.boolean(n.options.recursive))&&(void 0===n.options.ignoreIfNotExists||fe.boolean(n.options.ignoreIfNotExists)))&&(void 0===n.annotationId||k.is(n.annotationId))}e.create=n,e.is=t}(A||(A={})),function(e){function n(e){var n=e;return n&&(void 0!==n.changes||void 0!==n.documentChanges)&&(void 0===n.documentChanges||n.documentChanges.every((function(e){return fe.string(e.kind)?x.is(e)||I.is(e)||A.is(e):E.is(e)})))}e.is=n}(S||(S={}));var D,P,L,F,j,N,O,U,W,V,H,K,z,X,B,J,$,q,Q,G,Y,Z,ee,ne,te,re,ie,oe,ae,se,ue=function(){function e(e,n){this.edits=e,this.changeAnnotations=n}return e.prototype.insert=function(e,n,t){var r,i;if(void 0===t?r=y.insert(e,n):k.is(t)?(i=t,r=C.insert(e,n,t)):(this.assertChangeAnnotations(this.changeAnnotations),i=this.changeAnnotations.manage(t),r=C.insert(e,n,i)),this.edits.push(r),void 0!==i)return i},e.prototype.replace=function(e,n,t){var r,i;if(void 0===t?r=y.replace(e,n):k.is(t)?(i=t,r=C.replace(e,n,t)):(this.assertChangeAnnotations(this.changeAnnotations),i=this.changeAnnotations.manage(t),r=C.replace(e,n,i)),this.edits.push(r),void 0!==i)return i},e.prototype.delete=function(e,n){var t,r;if(void 0===n?t=y.del(e):k.is(n)?(r=n,t=C.del(e,n)):(this.assertChangeAnnotations(this.changeAnnotations),r=this.changeAnnotations.manage(n),t=C.del(e,r)),this.edits.push(t),void 0!==r)return r},e.prototype.add=function(e){this.edits.push(e)},e.prototype.all=function(){return this.edits},e.prototype.clear=function(){this.edits.splice(0,this.edits.length)},e.prototype.assertChangeAnnotations=function(e){if(void 0===e)throw new Error("Text edit change is not configured to manage change annotations.")},e}(),ce=function(){function e(e){this._annotations=void 0===e?Object.create(null):e,this._counter=0,this._size=0}return e.prototype.all=function(){return this._annotations},Object.defineProperty(e.prototype,"size",{get:function(){return this._size},enumerable:!1,configurable:!0}),e.prototype.manage=function(e,n){var t;if(k.is(e)?t=e:(t=this.nextId(),n=e),void 0!==this._annotations[t])throw new Error("Id "+t+" is already in use.");if(void 0===n)throw new Error("No annotation provided for id "+t);return this._annotations[t]=n,this._size++,t},e.prototype.nextId=function(){return this._counter++,this._counter.toString()},e}();(function(){function e(e){var n=this;this._textEditChanges=Object.create(null),void 0!==e?(this._workspaceEdit=e,e.documentChanges?(this._changeAnnotations=new ce(e.changeAnnotations),e.changeAnnotations=this._changeAnnotations.all(),e.documentChanges.forEach((function(e){if(E.is(e)){var t=new ue(e.edits,n._changeAnnotations);n._textEditChanges[e.textDocument.uri]=t}}))):e.changes&&Object.keys(e.changes).forEach((function(t){var r=new ue(e.changes[t]);n._textEditChanges[t]=r}))):this._workspaceEdit={}}Object.defineProperty(e.prototype,"edit",{get:function(){return this.initDocumentChanges(),void 0!==this._changeAnnotations&&(0===this._changeAnnotations.size?this._workspaceEdit.changeAnnotations=void 0:this._workspaceEdit.changeAnnotations=this._changeAnnotations.all()),this._workspaceEdit},enumerable:!1,configurable:!0}),e.prototype.getTextEditChange=function(e){if(L.is(e)){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");var n={uri:e.uri,version:e.version},t=this._textEditChanges[n.uri];if(!t){var r=[],i={textDocument:n,edits:r};this._workspaceEdit.documentChanges.push(i),t=new ue(r,this._changeAnnotations),this._textEditChanges[n.uri]=t}return t}if(this.initChanges(),void 0===this._workspaceEdit.changes)throw new Error("Workspace edit is not configured for normal text edit changes.");t=this._textEditChanges[e];if(!t){r=[];this._workspaceEdit.changes[e]=r,t=new ue(r),this._textEditChanges[e]=t}return t},e.prototype.initDocumentChanges=function(){void 0===this._workspaceEdit.documentChanges&&void 0===this._workspaceEdit.changes&&(this._changeAnnotations=new ce,this._workspaceEdit.documentChanges=[],this._workspaceEdit.changeAnnotations=this._changeAnnotations.all())},e.prototype.initChanges=function(){void 0===this._workspaceEdit.documentChanges&&void 0===this._workspaceEdit.changes&&(this._workspaceEdit.changes=Object.create(null))},e.prototype.createFile=function(e,n,t){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");var r,i,o;if(b.is(n)||k.is(n)?r=n:t=n,void 0===r?i=x.create(e,t):(o=k.is(r)?r:this._changeAnnotations.manage(r),i=x.create(e,t,o)),this._workspaceEdit.documentChanges.push(i),void 0!==o)return o},e.prototype.renameFile=function(e,n,t,r){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");var i,o,a;if(b.is(t)||k.is(t)?i=t:r=t,void 0===i?o=I.create(e,n,r):(a=k.is(i)?i:this._changeAnnotations.manage(i),o=I.create(e,n,r,a)),this._workspaceEdit.documentChanges.push(o),void 0!==a)return a},e.prototype.deleteFile=function(e,n,t){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");var r,i,o;if(b.is(n)||k.is(n)?r=n:t=n,void 0===r?i=A.create(e,t):(o=k.is(r)?r:this._changeAnnotations.manage(r),i=A.create(e,t,o)),this._workspaceEdit.documentChanges.push(i),void 0!==o)return o}})();(function(e){function n(e){return{uri:e}}function t(e){var n=e;return fe.defined(n)&&fe.string(n.uri)}e.create=n,e.is=t})(D||(D={})),function(e){function n(e,n){return{uri:e,version:n}}function t(e){var n=e;return fe.defined(n)&&fe.string(n.uri)&&fe.integer(n.version)}e.create=n,e.is=t}(P||(P={})),function(e){function n(e,n){return{uri:e,version:n}}function t(e){var n=e;return fe.defined(n)&&fe.string(n.uri)&&(null===n.version||fe.integer(n.version))}e.create=n,e.is=t}(L||(L={})),function(e){function n(e,n,t,r){return{uri:e,languageId:n,version:t,text:r}}function t(e){var n=e;return fe.defined(n)&&fe.string(n.uri)&&fe.string(n.languageId)&&fe.integer(n.version)&&fe.string(n.text)}e.create=n,e.is=t}(F||(F={})),function(e){e.PlainText="plaintext",e.Markdown="markdown"}(j||(j={})),function(e){function n(n){var t=n;return t===e.PlainText||t===e.Markdown}e.is=n}(j||(j={})),function(e){function n(e){var n=e;return fe.objectLiteral(e)&&j.is(n.kind)&&fe.string(n.value)}e.is=n}(N||(N={})),function(e){e.Text=1,e.Method=2,e.Function=3,e.Constructor=4,e.Field=5,e.Variable=6,e.Class=7,e.Interface=8,e.Module=9,e.Property=10,e.Unit=11,e.Value=12,e.Enum=13,e.Keyword=14,e.Snippet=15,e.Color=16,e.File=17,e.Reference=18,e.Folder=19,e.EnumMember=20,e.Constant=21,e.Struct=22,e.Event=23,e.Operator=24,e.TypeParameter=25}(O||(O={})),function(e){e.PlainText=1,e.Snippet=2}(U||(U={})),function(e){e.Deprecated=1}(W||(W={})),function(e){function n(e,n,t){return{newText:e,insert:n,replace:t}}function t(e){var n=e;return n&&fe.string(n.newText)&&a.is(n.insert)&&a.is(n.replace)}e.create=n,e.is=t}(V||(V={})),function(e){e.asIs=1,e.adjustIndentation=2}(H||(H={})),function(e){function n(e){return{label:e}}e.create=n}(K||(K={})),function(e){function n(e,n){return{items:e||[],isIncomplete:!!n}}e.create=n}(z||(z={})),function(e){function n(e){return e.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}function t(e){var n=e;return fe.string(n)||fe.objectLiteral(n)&&fe.string(n.language)&&fe.string(n.value)}e.fromPlainText=n,e.is=t}(X||(X={})),function(e){function n(e){var n=e;return!!n&&fe.objectLiteral(n)&&(N.is(n.contents)||X.is(n.contents)||fe.typedArray(n.contents,X.is))&&(void 0===e.range||a.is(e.range))}e.is=n}(B||(B={})),function(e){function n(e,n){return n?{label:e,documentation:n}:{label:e}}e.create=n}(J||(J={})),function(e){function n(e,n){for(var t=[],r=2;r=0;a--){var s=r[a],u=e.offsetAt(s.range.start),c=e.offsetAt(s.range.end);if(!(c<=o))throw new Error("Overlapping edit");t=t.substring(0,u)+s.newText+t.substring(c,t.length),o=u}return t}function i(e,n){if(e.length<=1)return e;var t=e.length/2|0,r=e.slice(0,t),o=e.slice(t);i(r,n),i(o,n);var a=0,s=0,u=0;while(a0&&e.push(n.length),this._lineOffsets=e}return this._lineOffsets},e.prototype.positionAt=function(e){e=Math.max(Math.min(e,this._content.length),0);var n=this.getLineOffsets(),t=0,r=n.length;if(0===r)return o.create(0,e);while(te?r=i:t=i+1}var a=t-1;return o.create(a,e-n[a])},e.prototype.offsetAt=function(e){var n=this.getLineOffsets();if(e.line>=n.length)return this._content.length;if(e.line<0)return 0;var t=n[e.line],r=e.line+1