"use strict";(self.webpackChunk_journeyapps_labs_reactor_mod_editor=self.webpackChunk_journeyapps_labs_reactor_mod_editor||[]).push([[560],{18560(e,t,r){r.r(t),r.d(t,{CompletionAdapter:()=>s.gg,DefinitionAdapter:()=>s.FX,DiagnosticsAdapter:()=>s.E6,DocumentColorAdapter:()=>s.Qc,DocumentFormattingEditProvider:()=>s._x,DocumentHighlightAdapter:()=>s.Ts,DocumentLinkAdapter:()=>s.Jf,DocumentRangeFormattingEditProvider:()=>s.NJ,DocumentSymbolAdapter:()=>s.xv,FoldingRangeAdapter:()=>s.Gn,HoverAdapter:()=>s.QV,ReferenceAdapter:()=>s.LH,RenameAdapter:()=>s.Y6,SelectionRangeAdapter:()=>s.xs,WorkerManager:()=>WorkerManager,fromPosition:()=>s.K3,fromRange:()=>s.yT,setupMode:()=>o,toRange:()=>s.Xp,toTextEdit:()=>s.Fv});var n=r(36591);class WorkerManager{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(){if(!this._worker)return;Date.now()-this._lastUsedTime>12e4&&this._stopWorker()}_getClient(){return this._lastUsedTime=Date.now(),this._client||(this._worker=(0,n.V)({moduleId:"vs/language/css/cssWorker",createWorker:()=>new Worker(new URL(r.p+r.u(725),r.b),{type:void 0}),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)}}var s=r(62690),i=(r(13279),r(37793),r(69803),r(80700),r(45128),r(18748),r(23876),r(71365),r(36298),r(53370),r(4804),r(59517),r(60646),r(44858),r(4276),r(46389),r(54720),r(67796),r(32805),r(32769),r(70321),r(60334),r(76726),r(34723),r(45461),r(2103),r(82086),r(22675),r(10884),r(90638),r(25386),r(98146),r(21624),r(18222),r(89331),r(9066),r(55007),r(77766),r(27575),r(80630),r(28060),r(77941),r(75956),r(95452),r(63131),r(50044),r(1902),r(48566),r(97508),r(90264),r(1012),r(88932),r(1198),r(58753),r(89088),r(47104),r(81046),r(52436),r(12625),r(5702),r(61920),r(24479),r(70362),r(34139),r(54797),r(36601),r(12938),r(57224),r(51803),r(70283),r(23383),r(35560),r(1876));function o(e){const t=[],r=[],n=new WorkerManager(e);t.push(n);const o=(...e)=>n.getLanguageServiceWorker(...e);return function(){const{languageId:t,modeConfiguration:n}=e;g(r),n.completionItems&&r.push(i.languages.registerCompletionItemProvider(t,new s.gg(o,["/","-",":"]))),n.hovers&&r.push(i.languages.registerHoverProvider(t,new s.QV(o))),n.documentHighlights&&r.push(i.languages.registerDocumentHighlightProvider(t,new s.Ts(o))),n.definitions&&r.push(i.languages.registerDefinitionProvider(t,new s.FX(o))),n.references&&r.push(i.languages.registerReferenceProvider(t,new s.LH(o))),n.documentSymbols&&r.push(i.languages.registerDocumentSymbolProvider(t,new s.xv(o))),n.rename&&r.push(i.languages.registerRenameProvider(t,new s.Y6(o))),n.colors&&r.push(i.languages.registerColorProvider(t,new s.Qc(o))),n.foldingRanges&&r.push(i.languages.registerFoldingRangeProvider(t,new s.Gn(o))),n.diagnostics&&r.push(new s.E6(t,o,e.onDidChange)),n.selectionRanges&&r.push(i.languages.registerSelectionRangeProvider(t,new s.xs(o))),n.documentFormattingEdits&&r.push(i.languages.registerDocumentFormattingEditProvider(t,new s._x(o))),n.documentRangeFormattingEdits&&r.push(i.languages.registerDocumentRangeFormattingEditProvider(t,new s.NJ(o)))}(),t.push(a(r)),a(t)}function a(e){return{dispose:()=>g(e)}}function g(e){for(;e.length;)e.pop().dispose()}}}]);
//# sourceMappingURL=560.bundle.js.map
window.reactorModuleLoaded('module-editor')