import{e as y,R as He,l as b,a as F}from"./editor.main.b1d89298.js";import"./index.26fbcb91.js";var Ge=2*60*1e3,Qe=function(){function e(r){var i=this;this._defaults=r,this._worker=null,this._idleCheckInterval=window.setInterval(function(){return i._checkIfIdle()},30*1e3),this._lastUsedTime=0,this._configChangeListener=this._defaults.onDidChange(function(){return i._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 r=Date.now()-this._lastUsedTime;r>Ge&&this._stopWorker()}},e.prototype._getClient=function(){return this._lastUsedTime=Date.now(),this._client||(this._worker=y.createWebWorker({moduleId:"vs/language/json/jsonWorker",label:this._defaults.languageId,createData:{languageSettings:this._defaults.diagnosticsOptions,languageId:this._defaults.languageId,enableSchemaRequest:this._defaults.diagnosticsOptions.enableSchemaRequest}}),this._client=this._worker.getProxy()),this._client},e.prototype.getLanguageServiceWorker=function(){for(var r=this,i=[],t=0;t0&&(u.arguments=a),u}e.create=r;function i(t){var n=t;return s.defined(n)&&s.string(n.title)&&s.string(n.command)}e.is=i})(U||(U={}));var M;(function(e){function r(a,o){return{range:a,newText:o}}e.replace=r;function i(a,o){return{range:{start:a,end:a},newText:o}}e.insert=i;function t(a){return{range:a,newText:""}}e.del=t;function n(a){var o=a;return s.objectLiteral(o)&&s.string(o.newText)&&_.is(o.range)}e.is=n})(M||(M={}));var x;(function(e){function r(t,n,a){var o={label:t};return n!==void 0&&(o.needsConfirmation=n),a!==void 0&&(o.description=a),o}e.create=r;function i(t){var n=t;return n!==void 0&&s.objectLiteral(n)&&s.string(n.label)&&(s.boolean(n.needsConfirmation)||n.needsConfirmation===void 0)&&(s.string(n.description)||n.description===void 0)}e.is=i})(x||(x={}));var w;(function(e){function r(i){var t=i;return typeof t=="string"}e.is=r})(w||(w={}));var L;(function(e){function r(a,o,u){return{range:a,newText:o,annotationId:u}}e.replace=r;function i(a,o,u){return{range:{start:a,end:a},newText:o,annotationId:u}}e.insert=i;function t(a,o){return{range:a,newText:"",annotationId:o}}e.del=t;function n(a){var o=a;return M.is(o)&&(x.is(o.annotationId)||w.is(o.annotationId))}e.is=n})(L||(L={}));var Y;(function(e){function r(t,n){return{textDocument:t,edits:n}}e.create=r;function i(t){var n=t;return s.defined(n)&&G.is(n.textDocument)&&Array.isArray(n.edits)}e.is=i})(Y||(Y={}));var V;(function(e){function r(t,n,a){var o={kind:"create",uri:t};return n!==void 0&&(n.overwrite!==void 0||n.ignoreIfExists!==void 0)&&(o.options=n),a!==void 0&&(o.annotationId=a),o}e.create=r;function i(t){var n=t;return n&&n.kind==="create"&&s.string(n.uri)&&(n.options===void 0||(n.options.overwrite===void 0||s.boolean(n.options.overwrite))&&(n.options.ignoreIfExists===void 0||s.boolean(n.options.ignoreIfExists)))&&(n.annotationId===void 0||w.is(n.annotationId))}e.is=i})(V||(V={}));var z;(function(e){function r(t,n,a,o){var u={kind:"rename",oldUri:t,newUri:n};return a!==void 0&&(a.overwrite!==void 0||a.ignoreIfExists!==void 0)&&(u.options=a),o!==void 0&&(u.annotationId=o),u}e.create=r;function i(t){var n=t;return n&&n.kind==="rename"&&s.string(n.oldUri)&&s.string(n.newUri)&&(n.options===void 0||(n.options.overwrite===void 0||s.boolean(n.options.overwrite))&&(n.options.ignoreIfExists===void 0||s.boolean(n.options.ignoreIfExists)))&&(n.annotationId===void 0||w.is(n.annotationId))}e.is=i})(z||(z={}));var H;(function(e){function r(t,n,a){var o={kind:"delete",uri:t};return n!==void 0&&(n.recursive!==void 0||n.ignoreIfNotExists!==void 0)&&(o.options=n),a!==void 0&&(o.annotationId=a),o}e.create=r;function i(t){var n=t;return n&&n.kind==="delete"&&s.string(n.uri)&&(n.options===void 0||(n.options.recursive===void 0||s.boolean(n.options.recursive))&&(n.options.ignoreIfNotExists===void 0||s.boolean(n.options.ignoreIfNotExists)))&&(n.annotationId===void 0||w.is(n.annotationId))}e.is=i})(H||(H={}));var te;(function(e){function r(i){var t=i;return t&&(t.changes!==void 0||t.documentChanges!==void 0)&&(t.documentChanges===void 0||t.documentChanges.every(function(n){return s.string(n.kind)?V.is(n)||z.is(n)||H.is(n):Y.is(n)}))}e.is=r})(te||(te={}));var X=function(){function e(r,i){this.edits=r,this.changeAnnotations=i}return e.prototype.insert=function(r,i,t){var n,a;if(t===void 0?n=M.insert(r,i):w.is(t)?(a=t,n=L.insert(r,i,t)):(this.assertChangeAnnotations(this.changeAnnotations),a=this.changeAnnotations.manage(t),n=L.insert(r,i,a)),this.edits.push(n),a!==void 0)return a},e.prototype.replace=function(r,i,t){var n,a;if(t===void 0?n=M.replace(r,i):w.is(t)?(a=t,n=L.replace(r,i,t)):(this.assertChangeAnnotations(this.changeAnnotations),a=this.changeAnnotations.manage(t),n=L.replace(r,i,a)),this.edits.push(n),a!==void 0)return a},e.prototype.delete=function(r,i){var t,n;if(i===void 0?t=M.del(r):w.is(i)?(n=i,t=L.del(r,i)):(this.assertChangeAnnotations(this.changeAnnotations),n=this.changeAnnotations.manage(i),t=L.del(r,n)),this.edits.push(t),n!==void 0)return n},e.prototype.add=function(r){this.edits.push(r)},e.prototype.all=function(){return this.edits},e.prototype.clear=function(){this.edits.splice(0,this.edits.length)},e.prototype.assertChangeAnnotations=function(r){if(r===void 0)throw new Error("Text edit change is not configured to manage change annotations.")},e}(),ge=function(){function e(r){this._annotations=r===void 0?Object.create(null):r,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(r,i){var t;if(w.is(r)?t=r:(t=this.nextId(),i=r),this._annotations[t]!==void 0)throw new Error("Id "+t+" is already in use.");if(i===void 0)throw new Error("No annotation provided for id "+t);return this._annotations[t]=i,this._size++,t},e.prototype.nextId=function(){return this._counter++,this._counter.toString()},e}();(function(){function e(r){var i=this;this._textEditChanges=Object.create(null),r!==void 0?(this._workspaceEdit=r,r.documentChanges?(this._changeAnnotations=new ge(r.changeAnnotations),r.changeAnnotations=this._changeAnnotations.all(),r.documentChanges.forEach(function(t){if(Y.is(t)){var n=new X(t.edits,i._changeAnnotations);i._textEditChanges[t.textDocument.uri]=n}})):r.changes&&Object.keys(r.changes).forEach(function(t){var n=new X(r.changes[t]);i._textEditChanges[t]=n})):this._workspaceEdit={}}return Object.defineProperty(e.prototype,"edit",{get:function(){return this.initDocumentChanges(),this._changeAnnotations!==void 0&&(this._changeAnnotations.size===0?this._workspaceEdit.changeAnnotations=void 0:this._workspaceEdit.changeAnnotations=this._changeAnnotations.all()),this._workspaceEdit},enumerable:!1,configurable:!0}),e.prototype.getTextEditChange=function(r){if(G.is(r)){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var i={uri:r.uri,version:r.version},t=this._textEditChanges[i.uri];if(!t){var n=[],a={textDocument:i,edits:n};this._workspaceEdit.documentChanges.push(a),t=new X(n,this._changeAnnotations),this._textEditChanges[i.uri]=t}return t}else{if(this.initChanges(),this._workspaceEdit.changes===void 0)throw new Error("Workspace edit is not configured for normal text edit changes.");var t=this._textEditChanges[r];if(!t){var n=[];this._workspaceEdit.changes[r]=n,t=new X(n),this._textEditChanges[r]=t}return t}},e.prototype.initDocumentChanges=function(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._changeAnnotations=new ge,this._workspaceEdit.documentChanges=[],this._workspaceEdit.changeAnnotations=this._changeAnnotations.all())},e.prototype.initChanges=function(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._workspaceEdit.changes=Object.create(null))},e.prototype.createFile=function(r,i,t){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var n;x.is(i)||w.is(i)?n=i:t=i;var a,o;if(n===void 0?a=V.create(r,t):(o=w.is(n)?n:this._changeAnnotations.manage(n),a=V.create(r,t,o)),this._workspaceEdit.documentChanges.push(a),o!==void 0)return o},e.prototype.renameFile=function(r,i,t,n){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var a;x.is(t)||w.is(t)?a=t:n=t;var o,u;if(a===void 0?o=z.create(r,i,n):(u=w.is(a)?a:this._changeAnnotations.manage(a),o=z.create(r,i,n,u)),this._workspaceEdit.documentChanges.push(o),u!==void 0)return u},e.prototype.deleteFile=function(r,i,t){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var n;x.is(i)||w.is(i)?n=i:t=i;var a,o;if(n===void 0?a=H.create(r,t):(o=w.is(n)?n:this._changeAnnotations.manage(n),a=H.create(r,t,o)),this._workspaceEdit.documentChanges.push(a),o!==void 0)return o},e})();var he;(function(e){function r(t){return{uri:t}}e.create=r;function i(t){var n=t;return s.defined(n)&&s.string(n.uri)}e.is=i})(he||(he={}));var ve;(function(e){function r(t,n){return{uri:t,version:n}}e.create=r;function i(t){var n=t;return s.defined(n)&&s.string(n.uri)&&s.integer(n.version)}e.is=i})(ve||(ve={}));var G;(function(e){function r(t,n){return{uri:t,version:n}}e.create=r;function i(t){var n=t;return s.defined(n)&&s.string(n.uri)&&(n.version===null||s.integer(n.version))}e.is=i})(G||(G={}));var pe;(function(e){function r(t,n,a,o){return{uri:t,languageId:n,version:a,text:o}}e.create=r;function i(t){var n=t;return s.defined(n)&&s.string(n.uri)&&s.string(n.languageId)&&s.integer(n.version)&&s.string(n.text)}e.is=i})(pe||(pe={}));var B;(function(e){e.PlainText="plaintext",e.Markdown="markdown"})(B||(B={}));(function(e){function r(i){var t=i;return t===e.PlainText||t===e.Markdown}e.is=r})(B||(B={}));var re;(function(e){function r(i){var t=i;return s.objectLiteral(i)&&B.is(t.kind)&&s.string(t.value)}e.is=r})(re||(re={}));var p;(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})(p||(p={}));var ie;(function(e){e.PlainText=1,e.Snippet=2})(ie||(ie={}));var me;(function(e){e.Deprecated=1})(me||(me={}));var _e;(function(e){function r(t,n,a){return{newText:t,insert:n,replace:a}}e.create=r;function i(t){var n=t;return n&&s.string(n.newText)&&_.is(n.insert)&&_.is(n.replace)}e.is=i})(_e||(_e={}));var ke;(function(e){e.asIs=1,e.adjustIndentation=2})(ke||(ke={}));var be;(function(e){function r(i){return{label:i}}e.create=r})(be||(be={}));var we;(function(e){function r(i,t){return{items:i||[],isIncomplete:!!t}}e.create=r})(we||(we={}));var Q;(function(e){function r(t){return t.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}e.fromPlainText=r;function i(t){var n=t;return s.string(n)||s.objectLiteral(n)&&s.string(n.language)&&s.string(n.value)}e.is=i})(Q||(Q={}));var Ce;(function(e){function r(i){var t=i;return!!t&&s.objectLiteral(t)&&(re.is(t.contents)||Q.is(t.contents)||s.typedArray(t.contents,Q.is))&&(i.range===void 0||_.is(i.range))}e.is=r})(Ce||(Ce={}));var Ee;(function(e){function r(i,t){return t?{label:i,documentation:t}:{label:i}}e.create=r})(Ee||(Ee={}));var Ae;(function(e){function r(i,t){for(var n=[],a=2;a=0;g--){var h=c[g],v=a.offsetAt(h.range.start),l=a.offsetAt(h.range.end);if(l<=d)u=u.substring(0,v)+h.newText+u.substring(l,u.length);else throw new Error("Overlapping edit");d=v}return u}e.applyEdits=t;function n(a,o){if(a.length<=1)return a;var u=a.length/2|0,c=a.slice(0,u),d=a.slice(u);n(c,o),n(d,o);for(var g=0,h=0,v=0;g0&&r.push(i.length),this._lineOffsets=r}return this._lineOffsets},e.prototype.positionAt=function(r){r=Math.max(Math.min(r,this._content.length),0);var i=this.getLineOffsets(),t=0,n=i.length;if(n===0)return S.create(0,r);for(;tr?n=a:t=a+1}var o=t-1;return S.create(o,r-i[o])},e.prototype.offsetAt=function(r){var i=this.getLineOffsets();if(r.line>=i.length)return this._content.length;if(r.line<0)return 0;var t=i[r.line],n=r.line+1=48&&k<=57)E=E*16+k-48;else if(k>=65&&k<=70)E=E*16+k-65+10;else if(k>=97&&k<=102)E=E*16+k-97+10;else break;t++,A++}return A=i){f+=e.substring(C,t),h=2;break}var A=e.charCodeAt(t);if(A===34){f+=e.substring(C,t),t++;break}if(A===92){if(f+=e.substring(C,t),t++,t>=i){h=2;break}var E=e.charCodeAt(t++);switch(E){case 34:f+='"';break;case 92:f+="\\";break;case 47:f+="/";break;case 98:f+="\b";break;case 102:f+="\f";break;case 110:f+=` `;break;case 114:f+="\r";break;case 116:f+=" ";break;case 117:var k=v(4,!0);k>=0?f+=String.fromCharCode(k):h=4;break;default:h=5}C=t;continue}if(A>=0&&A<=31)if(O(A)){f+=e.substring(C,t),h=2;break}else h=6;t++}return f}function D(){if(n="",h=0,a=t,c=u,g=d,t>=i)return a=i,o=17;var f=e.charCodeAt(t);if(Z(f)){do t++,n+=String.fromCharCode(f),f=e.charCodeAt(t);while(Z(f));return o=15}if(O(f))return t++,n+=String.fromCharCode(f),f===13&&e.charCodeAt(t)===10&&(t++,n+=` `),u++,d=t,o=14;switch(f){case 123:return t++,o=1;case 125:return t++,o=2;case 91:return t++,o=3;case 93:return t++,o=4;case 58:return t++,o=6;case 44:return t++,o=5;case 34:return t++,n=R(),o=10;case 47:var C=t-1;if(e.charCodeAt(t+1)===47){for(t+=2;t=12&&f<=15);return f}return{setPosition:l,getPosition:function(){return t},scan:r?Ye:D,getToken:function(){return o},getTokenValue:function(){return n},getTokenOffset:function(){return a},getTokenLength:function(){return t-a},getTokenStartLine:function(){return c},getTokenStartCharacter:function(){return a-g},getTokenError:function(){return h}}}function Z(e){return e===32||e===9||e===11||e===12||e===160||e===5760||e>=8192&&e<=8203||e===8239||e===8287||e===12288||e===65279}function O(e){return e===10||e===13||e===8232||e===8233}function P(e){return e>=48&&e<=57}var We;(function(e){e.DEFAULT={allowTrailingComma:!1}})(We||(We={}));var kn=_n;function bn(e){return{getInitialState:function(){return new Xe(null,null,!1,null)},tokenize:function(r,i,t,n){return Ln(e,r,i,t)}}}var Ue="delimiter.bracket.json",Ve="delimiter.array.json",wn="delimiter.colon.json",Cn="delimiter.comma.json",En="keyword.json",An="keyword.json",In="string.value.json",yn="number.json",Sn="string.key.json",Tn="comment.block.json",Rn="comment.line.json",j=function(){function e(r,i){this.parent=r,this.type=i}return e.pop=function(r){return r?r.parent:null},e.push=function(r,i){return new e(r,i)},e.equals=function(r,i){if(!r&&!i)return!0;if(!r||!i)return!1;for(;r&&i;){if(r===i)return!0;if(r.type!==i.type)return!1;r=r.parent,i=i.parent}return!0},e}(),Xe=function(){function e(r,i,t,n){this._state=r,this.scanError=i,this.lastWasColon=t,this.parents=n}return e.prototype.clone=function(){return new e(this._state,this.scanError,this.lastWasColon,this.parents)},e.prototype.equals=function(r){return r===this?!0:!r||!(r instanceof e)?!1:this.scanError===r.scanError&&this.lastWasColon===r.lastWasColon&&j.equals(this.parents,r.parents)},e.prototype.getStateData=function(){return this._state},e.prototype.setStateData=function(r){this._state=r},e}();function Ln(e,r,i,t,n){t===void 0&&(t=0);var a=0,o=!1;switch(i.scanError){case 2:r='"'+r,a=1;break;case 1:r="/*"+r,a=2;break}for(var u=kn(r),c=i.lastWasColon,d=i.parents,g={tokens:[],endState:i.clone()};;){var h=t+u.getPosition(),v="",l=u.scan();if(l===17)break;if(h===t+u.getPosition())throw new Error("Scanner did not advance, next 3 characters are: "+r.substr(u.getPosition(),3));switch(o&&(h-=a),o=a>0,l){case 1:d=j.push(d,0),v=Ue,c=!1;break;case 2:d=j.pop(d),v=Ue,c=!1;break;case 3:d=j.push(d,1),v=Ve,c=!1;break;case 4:d=j.pop(d),v=Ve,c=!1;break;case 6:v=wn,c=!0;break;case 5:v=Cn,c=!1;break;case 8:case 9:v=En,c=!1;break;case 7:v=An,c=!1;break;case 10:var I=d?d.type:0,R=I===1;v=c||R?In:Sn,c=!1;break;case 11:v=yn,c=!1;break}if(e)switch(l){case 12:v=Rn;break;case 13:v=Tn;break}g.endState=new Xe(i.getStateData(),u.getTokenError(),c,d),g.tokens.push({startIndex:h,scopes:v})}return g}function xn(e){var r=[],i=[],t=new Qe(e);r.push(t);var n=function(){for(var u=[],c=0;c