"use strict";(self.webpackChunkxxqg=self.webpackChunkxxqg||[]).push([[6965],{56965:function(e,n,t){t.r(n),t.d(n,{CompletionAdapter:function(){return _n},DefinitionAdapter:function(){return Rn},DiagnosticsAdapter:function(){return pn},DocumentColorAdapter:function(){return Nn},DocumentFormattingEditProvider:function(){return Zn},DocumentHighlightAdapter:function(){return An},DocumentLinkAdapter:function(){return Fn},DocumentRangeFormattingEditProvider:function(){return jn},DocumentSymbolAdapter:function(){return Mn},FoldingRangeAdapter:function(){return Un},HoverAdapter:function(){return Cn},ReferenceAdapter:function(){return Dn},RenameAdapter:function(){return Pn},SelectionRangeAdapter:function(){return Wn},WorkerManager:function(){return le},fromPosition:function(){return wn},fromRange:function(){return kn},setupMode:function(){return Kn},setupMode1:function(){return Hn},toRange:function(){return yn},toTextEdit:function(){return En}});var r,i,o=t(60136),a=t(27277),s=t(15671),u=t(43144),c=t(4942),d=t(37762),g=t(94389),f=Object.defineProperty,l=Object.getOwnPropertyDescriptor,h=Object.getOwnPropertyNames,v=Object.prototype.hasOwnProperty,p=function(e,n,t,r){if(n&&"object"===typeof n||"function"===typeof n){var i,o=(0,d.Z)(h(n));try{var a=function(){var o=i.value;v.call(e,o)||o===t||f(e,o,{get:function(){return n[o]},enumerable:!(r=l(n,o))||r.enumerable})};for(o.s();!(i=o.n()).done;)a()}catch(s){o.e(s)}finally{o.f()}}return e},m={};p(m,r=g,"default"),i&&p(i,r,"default");var _,w,k,y,b,E,C,x,I,A,S,R,T,D,P,M,L,F,Z,j,O,N,U,W,V,H,K,z,X,q,B,$,Q,G,J,Y,ee,ne,te,re,ie,oe,ae,se,ue,ce,de,ge,fe,le=function(){function e(n){var t=this;(0,s.Z)(this,e),(0,c.Z)(this,"_defaults",void 0),(0,c.Z)(this,"_idleCheckInterval",void 0),(0,c.Z)(this,"_lastUsedTime",void 0),(0,c.Z)(this,"_configChangeListener",void 0),(0,c.Z)(this,"_worker",void 0),(0,c.Z)(this,"_client",void 0),this._defaults=n,this._worker=null,this._client=null,this._idleCheckInterval=window.setInterval((function(){return t._checkIfIdle()}),3e4),this._lastUsedTime=0,this._configChangeListener=this._defaults.onDidChange((function(){return t._stopWorker()}))}return(0,u.Z)(e,[{key:"_stopWorker",value:function(){this._worker&&(this._worker.dispose(),this._worker=null),this._client=null}},{key:"dispose",value:function(){clearInterval(this._idleCheckInterval),this._configChangeListener.dispose(),this._stopWorker()}},{key:"_checkIfIdle",value:function(){this._worker&&(Date.now()-this._lastUsedTime>12e4&&this._stopWorker())}},{key:"_getClient",value:function(){return this._lastUsedTime=Date.now(),this._client||(this._worker=m.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}},{key:"getLanguageServiceWorker",value:function(){for(var e,n=this,t=arguments.length,r=new Array(t),i=0;i0&&(i.arguments=t),i},Q.is=function(e){var n=e;return hn.defined(n)&&hn.string(n.title)&&hn.string(n.command)},(J=G||(G={})).replace=function(e,n){return{range:e,newText:n}},J.insert=function(e,n){return{range:{start:e,end:e},newText:n}},J.del=function(e){return{range:e,newText:""}},J.is=function(e){var n=e;return hn.objectLiteral(n)&&hn.string(n.newText)&&C.is(n.range)},(ee=Y||(Y={})).create=function(e,n,t){var r={label:e};return void 0!==n&&(r.needsConfirmation=n),void 0!==t&&(r.description=t),r},ee.is=function(e){var n=e;return void 0!==n&&hn.objectLiteral(n)&&hn.string(n.label)&&(hn.boolean(n.needsConfirmation)||void 0===n.needsConfirmation)&&(hn.string(n.description)||void 0===n.description)},(ne||(ne={})).is=function(e){return"string"===typeof e},(re=te||(te={})).replace=function(e,n,t){return{range:e,newText:n,annotationId:t}},re.insert=function(e,n,t){return{range:{start:e,end:e},newText:n,annotationId:t}},re.del=function(e,n){return{range:e,newText:"",annotationId:n}},re.is=function(e){var n=e;return G.is(n)&&(Y.is(n.annotationId)||ne.is(n.annotationId))},(oe=ie||(ie={})).create=function(e,n){return{textDocument:e,edits:n}},oe.is=function(e){var n=e;return hn.defined(n)&&_e.is(n.textDocument)&&Array.isArray(n.edits)},(se=ae||(ae={})).create=function(e,n,t){var r={kind:"create",uri:e};return void 0===n||void 0===n.overwrite&&void 0===n.ignoreIfExists||(r.options=n),void 0!==t&&(r.annotationId=t),r},se.is=function(e){var n=e;return n&&"create"===n.kind&&hn.string(n.uri)&&(void 0===n.options||(void 0===n.options.overwrite||hn.boolean(n.options.overwrite))&&(void 0===n.options.ignoreIfExists||hn.boolean(n.options.ignoreIfExists)))&&(void 0===n.annotationId||ne.is(n.annotationId))},(ce=ue||(ue={})).create=function(e,n,t,r){var i={kind:"rename",oldUri:e,newUri:n};return void 0===t||void 0===t.overwrite&&void 0===t.ignoreIfExists||(i.options=t),void 0!==r&&(i.annotationId=r),i},ce.is=function(e){var n=e;return n&&"rename"===n.kind&&hn.string(n.oldUri)&&hn.string(n.newUri)&&(void 0===n.options||(void 0===n.options.overwrite||hn.boolean(n.options.overwrite))&&(void 0===n.options.ignoreIfExists||hn.boolean(n.options.ignoreIfExists)))&&(void 0===n.annotationId||ne.is(n.annotationId))},(ge=de||(de={})).create=function(e,n,t){var r={kind:"delete",uri:e};return void 0===n||void 0===n.recursive&&void 0===n.ignoreIfNotExists||(r.options=n),void 0!==t&&(r.annotationId=t),r},ge.is=function(e){var n=e;return n&&"delete"===n.kind&&hn.string(n.uri)&&(void 0===n.options||(void 0===n.options.recursive||hn.boolean(n.options.recursive))&&(void 0===n.options.ignoreIfNotExists||hn.boolean(n.options.ignoreIfNotExists)))&&(void 0===n.annotationId||ne.is(n.annotationId))},(fe||(fe={})).is=function(e){var n=e;return n&&(void 0!==n.changes||void 0!==n.documentChanges)&&(void 0===n.documentChanges||n.documentChanges.every((function(e){return hn.string(e.kind)?ae.is(e)||ue.is(e)||de.is(e):ie.is(e)})))};var he,ve,pe,me,_e,we,ke,ye,be,Ee,Ce,xe,Ie,Ae,Se,Re,Te,De,Pe,Me,Le,Fe,Ze,je,Oe,Ne,Ue,We,Ve,He,Ke,ze,Xe,qe,Be,$e,Qe,Ge,Je,Ye,en,nn,tn,rn,on,an,sn,un,cn,dn,gn,fn=function(){function e(e,n){this.edits=e,this.changeAnnotations=n}return e.prototype.insert=function(e,n,t){var r,i;if(void 0===t?r=G.insert(e,n):ne.is(t)?(i=t,r=te.insert(e,n,t)):(this.assertChangeAnnotations(this.changeAnnotations),i=this.changeAnnotations.manage(t),r=te.insert(e,n,i)),this.edits.push(r),void 0!==i)return i},e.prototype.replace=function(e,n,t){var r,i;if(void 0===t?r=G.replace(e,n):ne.is(t)?(i=t,r=te.replace(e,n,t)):(this.assertChangeAnnotations(this.changeAnnotations),i=this.changeAnnotations.manage(t),r=te.replace(e,n,i)),this.edits.push(r),void 0!==i)return i},e.prototype.delete=function(e,n){var t,r;if(void 0===n?t=G.del(e):ne.is(n)?(r=n,t=te.del(e,n)):(this.assertChangeAnnotations(this.changeAnnotations),r=this.changeAnnotations.manage(n),t=te.del(e,r)),this.edits.push(t),void 0!==r)return r},e.prototype.add=function(e){this.edits.push(e)},e.prototype.all=function(){return this.edits},e.prototype.clear=function(){this.edits.splice(0,this.edits.length)},e.prototype.assertChangeAnnotations=function(e){if(void 0===e)throw new Error("Text edit change is not configured to manage change annotations.")},e}(),ln=function(){function e(e){this._annotations=void 0===e?Object.create(null):e,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(e,n){var t;if(ne.is(e)?t=e:(t=this.nextId(),n=e),void 0!==this._annotations[t])throw new Error("Id "+t+" is already in use.");if(void 0===n)throw new Error("No annotation provided for id "+t);return this._annotations[t]=n,this._size++,t},e.prototype.nextId=function(){return this._counter++,this._counter.toString()},e}();!function(){function e(e){var n=this;this._textEditChanges=Object.create(null),void 0!==e?(this._workspaceEdit=e,e.documentChanges?(this._changeAnnotations=new ln(e.changeAnnotations),e.changeAnnotations=this._changeAnnotations.all(),e.documentChanges.forEach((function(e){if(ie.is(e)){var t=new fn(e.edits,n._changeAnnotations);n._textEditChanges[e.textDocument.uri]=t}}))):e.changes&&Object.keys(e.changes).forEach((function(t){var r=new fn(e.changes[t]);n._textEditChanges[t]=r}))):this._workspaceEdit={}}Object.defineProperty(e.prototype,"edit",{get:function(){return this.initDocumentChanges(),void 0!==this._changeAnnotations&&(0===this._changeAnnotations.size?this._workspaceEdit.changeAnnotations=void 0:this._workspaceEdit.changeAnnotations=this._changeAnnotations.all()),this._workspaceEdit},enumerable:!1,configurable:!0}),e.prototype.getTextEditChange=function(e){if(_e.is(e)){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");var n={uri:e.uri,version:e.version};if(!(r=this._textEditChanges[n.uri])){var t={textDocument:n,edits:i=[]};this._workspaceEdit.documentChanges.push(t),r=new fn(i,this._changeAnnotations),this._textEditChanges[n.uri]=r}return r}if(this.initChanges(),void 0===this._workspaceEdit.changes)throw new Error("Workspace edit is not configured for normal text edit changes.");var r;if(!(r=this._textEditChanges[e])){var i=[];this._workspaceEdit.changes[e]=i,r=new fn(i),this._textEditChanges[e]=r}return r},e.prototype.initDocumentChanges=function(){void 0===this._workspaceEdit.documentChanges&&void 0===this._workspaceEdit.changes&&(this._changeAnnotations=new ln,this._workspaceEdit.documentChanges=[],this._workspaceEdit.changeAnnotations=this._changeAnnotations.all())},e.prototype.initChanges=function(){void 0===this._workspaceEdit.documentChanges&&void 0===this._workspaceEdit.changes&&(this._workspaceEdit.changes=Object.create(null))},e.prototype.createFile=function(e,n,t){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");var r,i,o;if(Y.is(n)||ne.is(n)?r=n:t=n,void 0===r?i=ae.create(e,t):(o=ne.is(r)?r:this._changeAnnotations.manage(r),i=ae.create(e,t,o)),this._workspaceEdit.documentChanges.push(i),void 0!==o)return o},e.prototype.renameFile=function(e,n,t,r){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");var i,o,a;if(Y.is(t)||ne.is(t)?i=t:r=t,void 0===i?o=ue.create(e,n,r):(a=ne.is(i)?i:this._changeAnnotations.manage(i),o=ue.create(e,n,r,a)),this._workspaceEdit.documentChanges.push(o),void 0!==a)return a},e.prototype.deleteFile=function(e,n,t){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");var r,i,o;if(Y.is(n)||ne.is(n)?r=n:t=n,void 0===r?i=de.create(e,t):(o=ne.is(r)?r:this._changeAnnotations.manage(r),i=de.create(e,t,o)),this._workspaceEdit.documentChanges.push(i),void 0!==o)return o}}();(ve=he||(he={})).create=function(e){return{uri:e}},ve.is=function(e){var n=e;return hn.defined(n)&&hn.string(n.uri)},(me=pe||(pe={})).create=function(e,n){return{uri:e,version:n}},me.is=function(e){var n=e;return hn.defined(n)&&hn.string(n.uri)&&hn.integer(n.version)},(we=_e||(_e={})).create=function(e,n){return{uri:e,version:n}},we.is=function(e){var n=e;return hn.defined(n)&&hn.string(n.uri)&&(null===n.version||hn.integer(n.version))},(ye=ke||(ke={})).create=function(e,n,t,r){return{uri:e,languageId:n,version:t,text:r}},ye.is=function(e){var n=e;return hn.defined(n)&&hn.string(n.uri)&&hn.string(n.languageId)&&hn.integer(n.version)&&hn.string(n.text)},(Ee=be||(be={})).PlainText="plaintext",Ee.Markdown="markdown",function(e){e.is=function(n){var t=n;return t===e.PlainText||t===e.Markdown}}(be||(be={})),(Ce||(Ce={})).is=function(e){var n=e;return hn.objectLiteral(e)&&be.is(n.kind)&&hn.string(n.value)},(Ie=xe||(xe={})).Text=1,Ie.Method=2,Ie.Function=3,Ie.Constructor=4,Ie.Field=5,Ie.Variable=6,Ie.Class=7,Ie.Interface=8,Ie.Module=9,Ie.Property=10,Ie.Unit=11,Ie.Value=12,Ie.Enum=13,Ie.Keyword=14,Ie.Snippet=15,Ie.Color=16,Ie.File=17,Ie.Reference=18,Ie.Folder=19,Ie.EnumMember=20,Ie.Constant=21,Ie.Struct=22,Ie.Event=23,Ie.Operator=24,Ie.TypeParameter=25,(Se=Ae||(Ae={})).PlainText=1,Se.Snippet=2,(Re||(Re={})).Deprecated=1,(De=Te||(Te={})).create=function(e,n,t){return{newText:e,insert:n,replace:t}},De.is=function(e){var n=e;return n&&hn.string(n.newText)&&C.is(n.insert)&&C.is(n.replace)},(Me=Pe||(Pe={})).asIs=1,Me.adjustIndentation=2,(Le||(Le={})).create=function(e){return{label:e}},(Fe||(Fe={})).create=function(e,n){return{items:e||[],isIncomplete:!!n}},(je=Ze||(Ze={})).fromPlainText=function(e){return e.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")},je.is=function(e){var n=e;return hn.string(n)||hn.objectLiteral(n)&&hn.string(n.language)&&hn.string(n.value)},(Oe||(Oe={})).is=function(e){var n=e;return!!n&&hn.objectLiteral(n)&&(Ce.is(n.contents)||Ze.is(n.contents)||hn.typedArray(n.contents,Ze.is))&&(void 0===e.range||C.is(e.range))},(Ne||(Ne={})).create=function(e,n){return n?{label:e,documentation:n}:{label:e}},(Ue||(Ue={})).create=function(e,n){for(var t=[],r=2;r=0;a--){var s=i[a],u=e.offsetAt(s.range.start),c=e.offsetAt(s.range.end);if(!(c<=o))throw new Error("Overlapping edit");r=r.substring(0,u)+s.newText+r.substring(c,r.length),o=u}return r}}(gn||(gn={}));var hn,vn=function(){function e(e,n,t,r){this._uri=e,this._languageId=n,this._version=t,this._content=r,this._lineOffsets=void 0}return Object.defineProperty(e.prototype,"uri",{get:function(){return this._uri},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"languageId",{get:function(){return this._languageId},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"version",{get:function(){return this._version},enumerable:!1,configurable:!0}),e.prototype.getText=function(e){if(e){var n=this.offsetAt(e.start),t=this.offsetAt(e.end);return this._content.substring(n,t)}return this._content},e.prototype.update=function(e,n){this._content=e.text,this._version=n,this._lineOffsets=void 0},e.prototype.getLineOffsets=function(){if(void 0===this._lineOffsets){for(var e=[],n=this._content,t=!0,r=0;r0&&e.push(n.length),this._lineOffsets=e}return this._lineOffsets},e.prototype.positionAt=function(e){e=Math.max(Math.min(e,this._content.length),0);var n=this.getLineOffsets(),t=0,r=n.length;if(0===r)return b.create(0,e);for(;te?r=i:t=i+1}var o=t-1;return b.create(o,e-n[o])},e.prototype.offsetAt=function(e){var n=this.getLineOffsets();if(e.line>=n.length)return this._content.length;if(e.line<0)return 0;var t=n[e.line],r=e.line+1