define("vs/cssMode-CV6Ay48H",["exports","./css.worker-CyhWkhHo","./workers-BBttULjf","./lspLanguageFeatures-BIkJOWLw","./editor-KLE6jdfb"],function(e,t,r,n,o){"use strict";class i{constructor(e){this._defaults=e,this._worker=null,this._client=null,this._idleCheckInterval=window.setInterval(()=>this._checkIfIdle(),3e4),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(){this._worker&&Date.now()-this._lastUsedTime>12e4&&this._stopWorker()}_getClient(){return this._lastUsedTime=Date.now(),this._client||(this._worker=r.createWebWorker({moduleId:"vs/language/css/cssWorker",createWorker:()=>new Worker(t.__worker_url_0__,{type:"module"}),label:this._defaults.languageId,createData:{options:this._defaults.options,languageId:this._defaults.languageId}}),this._client=this._worker.getProxy()),this._client}getLanguageServiceWorker(...e){let t;return this._getClient().then(e=>{t=e}).then(t=>{if(this._worker)return this._worker.withSyncedResources(e)}).then(e=>t)}}function s(e){return{dispose:()=>a(e)}}function a(e){for(;e.length;)e.pop().dispose()}e.CompletionAdapter=n.CompletionAdapter,e.DefinitionAdapter=n.DefinitionAdapter,e.DiagnosticsAdapter=n.DiagnosticsAdapter,e.DocumentColorAdapter=n.DocumentColorAdapter,e.DocumentFormattingEditProvider=n.DocumentFormattingEditProvider,e.DocumentHighlightAdapter=n.DocumentHighlightAdapter,e.DocumentLinkAdapter=n.DocumentLinkAdapter,e.DocumentRangeFormattingEditProvider=n.DocumentRangeFormattingEditProvider,e.DocumentSymbolAdapter=n.DocumentSymbolAdapter,e.FoldingRangeAdapter=n.FoldingRangeAdapter,e.HoverAdapter=n.HoverAdapter,e.ReferenceAdapter=n.ReferenceAdapter,e.RenameAdapter=n.RenameAdapter,e.SelectionRangeAdapter=n.SelectionRangeAdapter,e.fromPosition=n.fromPosition,e.fromRange=n.fromRange,e.toRange=n.toRange,e.toTextEdit=n.toTextEdit,e.WorkerManager=i,e.setupMode=function(e){const t=[],r=[],g=new i(e);t.push(g);const d=(...e)=>g.getLanguageServiceWorker(...e);return function(){const{languageId:t,modeConfiguration:i}=e;a(r),i.completionItems&&r.push(o.languages.registerCompletionItemProvider(t,new n.CompletionAdapter(d,["/","-",":"]))),i.hovers&&r.push(o.languages.registerHoverProvider(t,new n.HoverAdapter(d))),i.documentHighlights&&r.push(o.languages.registerDocumentHighlightProvider(t,new n.DocumentHighlightAdapter(d))),i.definitions&&r.push(o.languages.registerDefinitionProvider(t,new n.DefinitionAdapter(d))),i.references&&r.push(o.languages.registerReferenceProvider(t,new n.ReferenceAdapter(d))),i.documentSymbols&&r.push(o.languages.registerDocumentSymbolProvider(t,new n.DocumentSymbolAdapter(d))),i.rename&&r.push(o.languages.registerRenameProvider(t,new n.RenameAdapter(d))),i.colors&&r.push(o.languages.registerColorProvider(t,new n.DocumentColorAdapter(d))),i.foldingRanges&&r.push(o.languages.registerFoldingRangeProvider(t,new n.FoldingRangeAdapter(d))),i.diagnostics&&r.push(new n.DiagnosticsAdapter(t,d,e.onDidChange)),i.selectionRanges&&r.push(o.languages.registerSelectionRangeProvider(t,new n.SelectionRangeAdapter(d))),i.documentFormattingEdits&&r.push(o.languages.registerDocumentFormattingEditProvider(t,new n.DocumentFormattingEditProvider(d))),i.documentRangeFormattingEdits&&r.push(o.languages.registerDocumentRangeFormattingEditProvider(t,new n.DocumentRangeFormattingEditProvider(d)))}(),t.push(s(r)),s(t)},Object.defineProperty(e,Symbol.toStringTag,{value:"Module"})});