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