"use strict";varmoduleExports=(()=>{varrn=Object.create;varQ=Object.defineProperty;varon=Object.getOwnPropertyDescriptor;varsn=Object.getOwnPropertyNames;varan=Object.getPrototypeOf,un=Object.prototype.hasOwnProperty;vardn=(n=>typeofrequire<"u"?require:typeofProxy<"u"?newProxy(n,{get:(t,i)=>(typeofrequire<"u"?require:t)[i]}):n)(function(n){if(typeofrequire<"u")returnrequire.apply(this,arguments);throwError('Dynamic require of "'+n+'" is not supported')});varcn=(n,t)=>()=>(t||n((t={exports:{}}).exports,t),t.exports),ln=(n,t)=>{for(variint)Q(n,i,{get:t[i],enumerable:!0})},q=(n,t,i,r)=>{if(t&&typeoft=="object"||typeoft=="function")for(leteofsn(t))!un.call(n,e)&&e!==i&&Q(n,e,{get:()=>t[e],enumerable:!(r=on(t,e))||r.enumerable});returnn},me=(n,t,i)=>(q(n,t,"default"),i&&q(i,t,"default")),he=(n,t,i)=>(i=n!=null?rn(an(n)):{},q(t||!n||!n.__esModule?Q(i,"default",{value:n,enumerable:!0}):i,n)),gn=n=>q(Q({},"__esModule",{value:!0}),n);varTe=cn((Sn,ve)=>{varfn=he(dn("vs/editor/editor.api"));ve.exports=fn});varDn={};ln(Dn,{CompletionAdapter:()=>B,DefinitionAdapter:()=>ce,DiagnosticsAdapter:()=>de,DocumentColorAdapter:()=>ge,DocumentFormattingEditProvider:()=>H,DocumentHighlightAdapter:()=>S,DocumentLinkAdapter:()=>A,DocumentRangeFormattingEditProvider:()=>K,DocumentSymbolAdapter:()=>M,FoldingRangeAdapter:()=>U,HoverAdapter:()=>L,ReferenceAdapter:()=>le,RenameAdapter:()=>F,SelectionRangeAdapter:()=>j,WorkerManager:()=>b,fromPosition:()=>C,fromRange:()=>fe,setupMode:()=>Wn,setupMode1:()=>Pn,toRange:()=>y,toTextEdit:()=>D});vard={};me(d,he(Te()));varpn=2*60*1e3,b=class{constructor(t){this._defaults=t,this._worker=null,this._client=null,this._idleCheckInterval=window.setInterval(()=>this._checkIfIdle(),30*1e3),this._lastUsedTime=0,this._configChangeListener=this._defaults.onDidChange(()=>this._stopWorker())}_stopWorker(){this._worker&&(this._worker.dispose(),this._worker=null),this._client=null}dispose(){clearInterval(this._idleCheckInterval),this._configChangeListener.dispose(),this._stopWorker()}_checkIfIdle(){if(!this._worker)return;Date.now()-this._lastUsedTime>pn&&this._stopWorker()}_getClient(){returnthis._lastUsedTime=Date.now(),this._client||(this._worker=d.editor.createWebWorker({moduleId:"vs/language/html/htmlWorker",createData:{languageSettings:this._defaults.options,languageId:this._defaults.languageId},label:this._defaults.languageId}),this._client=this._worker.getProxy()),this._client}getLanguageServiceWorker(...t){leti;returnthis._getClient().then(r=>{i=r}).then(r=>{if(this._worker)returnthis._worker.withSyncedResources(t)}).then(r=>i)}};varye;(function(n){n.MIN_VALUE=-2147483648,n.MAX_VALUE=2147483647})(ye||(ye={}));varJ;(function(n){n.MIN_VALUE=0,n.MAX_VALUE=2147483647})(J||(J={}));varx;(function(n){functiont(r,e){returnr===Number.MAX_VALUE&&(r=J.MAX_VALUE),e===Number.MAX_VALUE&&(e=J.MAX_VALUE),{line:r,character:e}}n.create=t;functioni(r){vare=r;returna.objectLiteral(e)&&a.uinteger(e.line)&&a.uinteger(e.character)}n.is=i})(x||(x={}));varv;(function(n){functiont(r,e,o,s){if(a.uinteger(r)&&a.uinteger(e)&&a.uinteger(o)&&a.uinteger(s))return{start:x.create(r,e),end:x.create(o,s)};if(x.is(r)&&x.is(e))return{start:r,end:e};thrownewError("Range#create called with invalid arguments["+r+", "+e+", "+o+", "+s+"]")}n.create=t;functioni(r){vare=r;returna.objectLiteral(e)&&x.is(e.start)&&x.is(e.end)}n.is=i})(v||(v={}));varie;(function(n){functiont(r,e){return{uri:r,range:e}}n.create=t;functioni(r){vare=r;returna.defined(e)&&v.is(e.range)&&(a.string(e.uri)||a.undefined(e.uri))}n.is=i})(ie||(ie={}));varxe;(function(n){functiont(r,e,o,s){return{targetUri:r,targetRange:e,targetSelectionRange:o,originSelectionRange:s}}n.create=t;functioni(r){vare=r;returna.defined(e)&&v.is(e.targetRange)&&a.string(e.targetUri)&&(v.is(e.targetSelectionRange)||a.undefined(e.targetSelectionRange))&&(v.is(e.originSelectionRange)||a.undefined(e.originSelectionRange))}n.is=i})(xe||(xe={}));varoe;(function(n){functiont(r,e,o,s){return{red:r,green:e,blue:o,alpha:s}}n.create=t;functioni(r){vare=r;retur