From 8fad9a5ecddc88d57a531e4b0084544984f23d25 Mon Sep 17 00:00:00 2001 From: Jacob McDonnell Date: Sat, 16 Jul 2022 18:13:16 -0400 Subject: Added profile and other missing configs --- .../extensions/node_modules/coc-html/lib/index.js | 2 + .../extensions/node_modules/coc-html/lib/server.js | 538 +++++++++++++++++++++ 2 files changed, 540 insertions(+) create mode 100644 .config/coc/extensions/node_modules/coc-html/lib/index.js create mode 100644 .config/coc/extensions/node_modules/coc-html/lib/server.js (limited to '.config/coc/extensions/node_modules/coc-html/lib') diff --git a/.config/coc/extensions/node_modules/coc-html/lib/index.js b/.config/coc/extensions/node_modules/coc-html/lib/index.js new file mode 100644 index 0000000..51e957e --- /dev/null +++ b/.config/coc/extensions/node_modules/coc-html/lib/index.js @@ -0,0 +1,2 @@ +var me=Object.create;var N=Object.defineProperty;var de=Object.getOwnPropertyDescriptor;var ve=Object.getOwnPropertyNames;var ye=Object.getPrototypeOf,be=Object.prototype.hasOwnProperty;var ne=l=>N(l,"__esModule",{value:!0});var Ce=(l,p)=>{for(var C in p)N(l,C,{get:p[C],enumerable:!0})},re=(l,p,C,d)=>{if(p&&typeof p=="object"||typeof p=="function")for(let f of ve(p))!be.call(l,f)&&(C||f!=="default")&&N(l,f,{get:()=>p[f],enumerable:!(d=de(p,f))||d.enumerable});return l},q=(l,p)=>re(ne(N(l!=null?me(ye(l)):{},"default",!p&&l&&l.__esModule?{get:()=>l.default,enumerable:!0}:{value:l,enumerable:!0})),l),xe=(l=>(p,C)=>l&&l.get(p)||(C=re(ne({}),p,1),l&&l.set(p,C),C))(typeof WeakMap!="undefined"?new WeakMap:0);var we={};Ce(we,{activate:()=>ge});var P=q(require("coc.nvim"));var O=q(require("coc.nvim"));function oe(l,p,C){let d,f=!1,v,b={autoQuote:!1,autoClose:!1};O.workspace.document.then(n=>{d=n.bufnr,t(n.bufnr)});function t(n){var u,h;f=!1;let i=O.workspace.getDocument(n);if(!i||!i.attached||!p[i.textDocument.languageId])return;let c=O.workspace.getConfiguration("html",i.uri);b.autoQuote=(u=c.get("autoCreateQuotes"))!=null?u:!1,b.autoClose=(h=c.get("autoClosingTags"))!=null?h:!1,f=b.autoQuote||b.autoClose}O.events.on("BufEnter",async n=>{d=n,v&&clearTimeout(v);let i=O.workspace.getDocument(d);i||(i=await O.workspace.document),t(i?i.bufnr:-1)},null,C),O.events.on("TextInsert",(n,i,c)=>{if(!f)return;let u=O.workspace.getDocument(n);if(!u||!u.attached||!p[u.textDocument.languageId])return;v&&clearTimeout(v);let h={line:i.lnum-1,character:i.pre.length};b.autoQuote&&c==="="?a("autoQuote",u,h,c):b.autoClose&&(c===">"||c==="/")&&a("autoClose",u,h,c)},null,C);function a(n,i,c,u){let h=i.changedtick;i.patchChange(!0),v=setTimeout(()=>{l(n,i.textDocument,c).then(m=>{if(m&&b[n]&&d==i.bufnr&&i.changedtick==h){let g={character:c.character,line:c.line};u==="/"&&i.getline(c.line)[c.character]==">"&&(g.character=c.character+1),O.workspace.nvim.call("coc#_cancel",[],!0),O.snippetManager.insertSnippet(m,!0,{start:c,end:g})}}),v=void 0},100)}}var S=q(require("coc.nvim")),ae=q(require("fs"));var ie;ie=(()=>{"use strict";var l={470:d=>{function f(t){if(typeof t!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(t))}function v(t,a){for(var n,i="",c=0,u=-1,h=0,m=0;m<=t.length;++m){if(m2){var g=i.lastIndexOf("/");if(g!==i.length-1){g===-1?(i="",c=0):c=(i=i.slice(0,g)).length-1-i.lastIndexOf("/"),u=m,h=0;continue}}else if(i.length===2||i.length===1){i="",c=0,u=m,h=0;continue}}a&&(i.length>0?i+="/..":i="..",c=2)}else i.length>0?i+="/"+t.slice(u+1,m):i=t.slice(u+1,m),c=m-u-1;u=m,h=0}else n===46&&h!==-1?++h:h=-1}return i}var b={resolve:function(){for(var t,a="",n=!1,i=arguments.length-1;i>=-1&&!n;i--){var c;i>=0?c=arguments[i]:(t===void 0&&(t=process.cwd()),c=t),f(c),c.length!==0&&(a=c+"/"+a,n=c.charCodeAt(0)===47)}return a=v(a,!n),n?a.length>0?"/"+a:"/":a.length>0?a:"."},normalize:function(t){if(f(t),t.length===0)return".";var a=t.charCodeAt(0)===47,n=t.charCodeAt(t.length-1)===47;return(t=v(t,!a)).length!==0||a||(t="."),t.length>0&&n&&(t+="/"),a?"/"+t:t},isAbsolute:function(t){return f(t),t.length>0&&t.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var t,a=0;a0&&(t===void 0?t=n:t+="/"+n)}return t===void 0?".":b.normalize(t)},relative:function(t,a){if(f(t),f(a),t===a||(t=b.resolve(t))===(a=b.resolve(a)))return"";for(var n=1;nm){if(a.charCodeAt(u+y)===47)return a.slice(u+y+1);if(y===0)return a.slice(u+y)}else c>m&&(t.charCodeAt(n+y)===47?g=y:y===0&&(g=0));break}var D=t.charCodeAt(n+y);if(D!==a.charCodeAt(u+y))break;D===47&&(g=y)}var T="";for(y=n+g+1;y<=i;++y)y!==i&&t.charCodeAt(y)!==47||(T.length===0?T+="..":T+="/..");return T.length>0?T+a.slice(u+g):(u+=g,a.charCodeAt(u)===47&&++u,a.slice(u))},_makeLong:function(t){return t},dirname:function(t){if(f(t),t.length===0)return".";for(var a=t.charCodeAt(0),n=a===47,i=-1,c=!0,u=t.length-1;u>=1;--u)if((a=t.charCodeAt(u))===47){if(!c){i=u;break}}else c=!1;return i===-1?n?"/":".":n&&i===1?"//":t.slice(0,i)},basename:function(t,a){if(a!==void 0&&typeof a!="string")throw new TypeError('"ext" argument must be a string');f(t);var n,i=0,c=-1,u=!0;if(a!==void 0&&a.length>0&&a.length<=t.length){if(a.length===t.length&&a===t)return"";var h=a.length-1,m=-1;for(n=t.length-1;n>=0;--n){var g=t.charCodeAt(n);if(g===47){if(!u){i=n+1;break}}else m===-1&&(u=!1,m=n+1),h>=0&&(g===a.charCodeAt(h)?--h==-1&&(c=n):(h=-1,c=m))}return i===c?c=m:c===-1&&(c=t.length),t.slice(i,c)}for(n=t.length-1;n>=0;--n)if(t.charCodeAt(n)===47){if(!u){i=n+1;break}}else c===-1&&(u=!1,c=n+1);return c===-1?"":t.slice(i,c)},extname:function(t){f(t);for(var a=-1,n=0,i=-1,c=!0,u=0,h=t.length-1;h>=0;--h){var m=t.charCodeAt(h);if(m!==47)i===-1&&(c=!1,i=h+1),m===46?a===-1?a=h:u!==1&&(u=1):a!==-1&&(u=-1);else if(!c){n=h+1;break}}return a===-1||i===-1||u===0||u===1&&a===i-1&&a===n+1?"":t.slice(a,i)},format:function(t){if(t===null||typeof t!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof t);return function(a,n){var i=n.dir||n.root,c=n.base||(n.name||"")+(n.ext||"");return i?i===n.root?i+c:i+"/"+c:c}(0,t)},parse:function(t){f(t);var a={root:"",dir:"",base:"",ext:"",name:""};if(t.length===0)return a;var n,i=t.charCodeAt(0),c=i===47;c?(a.root="/",n=1):n=0;for(var u=-1,h=0,m=-1,g=!0,y=t.length-1,D=0;y>=n;--y)if((i=t.charCodeAt(y))!==47)m===-1&&(g=!1,m=y+1),i===46?u===-1?u=y:D!==1&&(D=1):u!==-1&&(D=-1);else if(!g){h=y+1;break}return u===-1||m===-1||D===0||D===1&&u===m-1&&u===h+1?m!==-1&&(a.base=a.name=h===0&&c?t.slice(1,m):t.slice(h,m)):(h===0&&c?(a.name=t.slice(1,u),a.base=t.slice(1,m)):(a.name=t.slice(h,u),a.base=t.slice(h,m)),a.ext=t.slice(u,m)),h>0?a.dir=t.slice(0,h-1):c&&(a.dir="/"),a},sep:"/",delimiter:":",win32:null,posix:null};b.posix=b,d.exports=b},447:(d,f,v)=>{var b;if(v.r(f),v.d(f,{URI:()=>T,Utils:()=>M}),typeof process=="object")b=process.platform==="win32";else if(typeof navigator=="object"){var t=navigator.userAgent;b=t.indexOf("Windows")>=0}var a,n,i=(a=function(o,e){return(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,s){r.__proto__=s}||function(r,s){for(var w in s)Object.prototype.hasOwnProperty.call(s,w)&&(r[w]=s[w])})(o,e)},function(o,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=o}a(o,e),o.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}),c=/^\w[\w\d+.-]*$/,u=/^\//,h=/^\/\//;function m(o,e){if(!o.scheme&&e)throw new Error('[UriError]: Scheme is missing: {scheme: "", authority: "'.concat(o.authority,'", path: "').concat(o.path,'", query: "').concat(o.query,'", fragment: "').concat(o.fragment,'"}'));if(o.scheme&&!c.test(o.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(o.path){if(o.authority){if(!u.test(o.path))throw new Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character')}else if(h.test(o.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}}var g="",y="/",D=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/,T=function(){function o(e,r,s,w,x,A){A===void 0&&(A=!1),typeof e=="object"?(this.scheme=e.scheme||g,this.authority=e.authority||g,this.path=e.path||g,this.query=e.query||g,this.fragment=e.fragment||g):(this.scheme=function(_,I){return _||I?_:"file"}(e,A),this.authority=r||g,this.path=function(_,I){switch(_){case"https":case"http":case"file":I?I[0]!==y&&(I=y+I):I=y}return I}(this.scheme,s||g),this.query=w||g,this.fragment=x||g,m(this,A))}return o.isUri=function(e){return e instanceof o||!!e&&typeof e.authority=="string"&&typeof e.fragment=="string"&&typeof e.path=="string"&&typeof e.query=="string"&&typeof e.scheme=="string"&&typeof e.fsPath=="string"&&typeof e.with=="function"&&typeof e.toString=="function"},Object.defineProperty(o.prototype,"fsPath",{get:function(){return G(this,!1)},enumerable:!1,configurable:!0}),o.prototype.with=function(e){if(!e)return this;var r=e.scheme,s=e.authority,w=e.path,x=e.query,A=e.fragment;return r===void 0?r=this.scheme:r===null&&(r=g),s===void 0?s=this.authority:s===null&&(s=g),w===void 0?w=this.path:w===null&&(w=g),x===void 0?x=this.query:x===null&&(x=g),A===void 0?A=this.fragment:A===null&&(A=g),r===this.scheme&&s===this.authority&&w===this.path&&x===this.query&&A===this.fragment?this:new E(r,s,w,x,A)},o.parse=function(e,r){r===void 0&&(r=!1);var s=D.exec(e);return s?new E(s[2]||g,Q(s[4]||g),Q(s[5]||g),Q(s[7]||g),Q(s[9]||g),r):new E(g,g,g,g,g)},o.file=function(e){var r=g;if(b&&(e=e.replace(/\\/g,y)),e[0]===y&&e[1]===y){var s=e.indexOf(y,2);s===-1?(r=e.substring(2),e=y):(r=e.substring(2,s),e=e.substring(s)||y)}return new E("file",r,e,g,g)},o.from=function(e){var r=new E(e.scheme,e.authority,e.path,e.query,e.fragment);return m(r,!0),r},o.prototype.toString=function(e){return e===void 0&&(e=!1),J(this,e)},o.prototype.toJSON=function(){return this},o.revive=function(e){if(e){if(e instanceof o)return e;var r=new E(e);return r._formatted=e.external,r._fsPath=e._sep===U?e.fsPath:null,r}return e},o}(),U=b?1:void 0,E=function(o){function e(){var r=o!==null&&o.apply(this,arguments)||this;return r._formatted=null,r._fsPath=null,r}return i(e,o),Object.defineProperty(e.prototype,"fsPath",{get:function(){return this._fsPath||(this._fsPath=G(this,!1)),this._fsPath},enumerable:!1,configurable:!0}),e.prototype.toString=function(r){return r===void 0&&(r=!1),r?J(this,!0):(this._formatted||(this._formatted=J(this,!1)),this._formatted)},e.prototype.toJSON=function(){var r={$mid:1};return this._fsPath&&(r.fsPath=this._fsPath,r._sep=U),this._formatted&&(r.external=this._formatted),this.path&&(r.path=this.path),this.scheme&&(r.scheme=this.scheme),this.authority&&(r.authority=this.authority),this.query&&(r.query=this.query),this.fragment&&(r.fragment=this.fragment),r},e}(T),Z=((n={})[58]="%3A",n[47]="%2F",n[63]="%3F",n[35]="%23",n[91]="%5B",n[93]="%5D",n[64]="%40",n[33]="%21",n[36]="%24",n[38]="%26",n[39]="%27",n[40]="%28",n[41]="%29",n[42]="%2A",n[43]="%2B",n[44]="%2C",n[59]="%3B",n[61]="%3D",n[32]="%20",n);function K(o,e){for(var r=void 0,s=-1,w=0;w=97&&x<=122||x>=65&&x<=90||x>=48&&x<=57||x===45||x===46||x===95||x===126||e&&x===47)s!==-1&&(r+=encodeURIComponent(o.substring(s,w)),s=-1),r!==void 0&&(r+=o.charAt(w));else{r===void 0&&(r=o.substr(0,w));var A=Z[x];A!==void 0?(s!==-1&&(r+=encodeURIComponent(o.substring(s,w)),s=-1),r+=A):s===-1&&(s=w)}}return s!==-1&&(r+=encodeURIComponent(o.substring(s))),r!==void 0?r:o}function pe(o){for(var e=void 0,r=0;r1&&o.scheme==="file"?"//".concat(o.authority).concat(o.path):o.path.charCodeAt(0)===47&&(o.path.charCodeAt(1)>=65&&o.path.charCodeAt(1)<=90||o.path.charCodeAt(1)>=97&&o.path.charCodeAt(1)<=122)&&o.path.charCodeAt(2)===58?e?o.path.substr(1):o.path[1].toLowerCase()+o.path.substr(2):o.path,b&&(r=r.replace(/\//g,"\\")),r}function J(o,e){var r=e?pe:K,s="",w=o.scheme,x=o.authority,A=o.path,_=o.query,I=o.fragment;if(w&&(s+=w,s+=":"),(x||w==="file")&&(s+=y,s+=y),x){var k=x.indexOf("@");if(k!==-1){var z=x.substr(0,k);x=x.substr(k+1),(k=z.indexOf(":"))===-1?s+=r(z,!1):(s+=r(z.substr(0,k),!1),s+=":",s+=r(z.substr(k+1),!1)),s+="@"}(k=(x=x.toLowerCase()).indexOf(":"))===-1?s+=r(x,!1):(s+=r(x.substr(0,k),!1),s+=x.substr(k))}if(A){if(A.length>=3&&A.charCodeAt(0)===47&&A.charCodeAt(2)===58)(j=A.charCodeAt(1))>=65&&j<=90&&(A="/".concat(String.fromCharCode(j+32),":").concat(A.substr(3)));else if(A.length>=2&&A.charCodeAt(1)===58){var j;(j=A.charCodeAt(0))>=65&&j<=90&&(A="".concat(String.fromCharCode(j+32),":").concat(A.substr(2)))}s+=r(A,!0)}return _&&(s+="?",s+=r(_,!1)),I&&(s+="#",s+=e?I:K(I,!1)),s}function X(o){try{return decodeURIComponent(o)}catch{return o.length>3?o.substr(0,3)+X(o.substr(3)):o}}var Y=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function Q(o){return o.match(Y)?o.replace(Y,function(e){return X(e)}):o}var M,ee=v(470),te=function(o,e,r){if(r||arguments.length===2)for(var s,w=0,x=e.length;w{for(var v in f)C.o(f,v)&&!C.o(d,v)&&Object.defineProperty(d,v,{enumerable:!0,get:f[v]})},C.o=(d,f)=>Object.prototype.hasOwnProperty.call(d,f),C.r=d=>{typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(d,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(d,"__esModule",{value:!0})},C(447)})();var{URI:Re,Utils:H}=ie;var L=q(require("util"));function se(l){let p=new Set,C=new Set,d=new Set;le(d),fe(p,C);let f=new S.Emitter;return l.push(S.extensions.onDidActiveExtension(v=>{let b=new Set,t=new Set;fe(b,t),(ce(b,p)||ce(t,C))&&(p=b,C=t,f.fire())})),l.push(S.workspace.onDidChangeConfiguration(v=>{v.affectsConfiguration("html.customData")&&(d.clear(),le(d),f.fire())})),l.push(S.workspace.onDidChangeTextDocument(v=>{let b=v.textDocument.uri;(C.has(b)||d.has(b))&&f.fire()})),{get uris(){return[...p].concat([...C],[...d])},get onDidChange(){return f.event},getContent(v){let b=S.Uri.parse(v);return b.scheme==="file"?(0,L.promisify)(ae.default.readFile)(b.fsPath).then(t=>new L.TextDecoder().decode(t)):(0,S.fetch)(v,{timeout:5e3,buffer:!0}).then(t=>new L.TextDecoder().decode(t))}}}function ce(l,p){if(l.size!==p.size)return!0;for(let C of l)if(!p.has(C))return!0;return!1}function ue(l){return/^(?\w[\w\d+.-]*):/.test(l)}function le(l){let p=S.workspace.workspaceFolders;if(!p)return;let C=(d,f)=>{if(Array.isArray(d))for(let v of d)typeof v=="string"&&(ue(v)?l.add(v):l.add(H.resolvePath(S.Uri.parse(f),v).toString()))};for(let d=0;d{p.type=new P.RequestType0("html/semanticTokenLegend")})($||($={}));var B;(p=>{p.type=new P.RequestType("html/semanticTokens")})(B||(B={}));var F;(p=>{p.type=new P.NotificationType("html/customDataChanged")})(F||(F={}));var V;(p=>{p.type=new P.RequestType("html/customDataContent")})(V||(V={}));var W;(p=>{p.type=new P.RequestType("html/autoInsert")})(W||(W={}));function he(l,p){let{subscriptions:C}=l,d=P.workspace.getConfiguration().get("html",{}),f=l.asAbsolutePath("lib/server.js"),v=p.map(i=>({language:i})),b={css:!0,javascript:!0},t={module:f,args:["--node-ipc"],transport:P.TransportKind.ipc,options:{cwd:P.workspace.root,execArgv:d.execArgv||[]}},a={documentSelector:v,synchronize:{configurationSection:["html","css","javascript"]},outputChannelName:"html",initializationOptions:{embeddedLanguages:b,handledSchemas:["file"]}},n=new P.LanguageClient("html","HTML language server",t,a);n.onReady().then(()=>{let i=se(l.subscriptions);n.sendNotification(F.type,i.uris),i.onDidChange(()=>{n.sendNotification(F.type,i.uris)}),n.onRequest(V.type,i.getContent),l.subscriptions.push(P.languages.registerSelectionRangeProvider(v,{async provideSelectionRanges(h,m){let g={uri:h.uri};return await Promise.resolve(n.sendRequest("$/textDocument/selectionRanges",{textDocument:g,positions:m}))}}));let c=(h,m,g)=>{let y={kind:h,textDocument:{uri:m.uri},position:g};return n.sendRequest(W.type,y)},u=Object.assign({},...p.map(h=>({[h]:!0})));oe(c,u,l.subscriptions),typeof P.languages.registerDocumentSemanticTokensProvider=="function"&&n.sendRequest($.type).then(h=>{if(h){let m={provideDocumentSemanticTokens(y){let D={textDocument:{uri:y.uri}};return n.sendRequest(B.type,D).then(T=>T&&{data:T})},provideDocumentRangeSemanticTokens(y,D){let T={textDocument:{uri:y.uri},ranges:[D]};return n.sendRequest(B.type,T).then(U=>U&&{data:U})}},g={tokenTypes:h.types,tokenModifiers:h.modifiers};l.subscriptions.push(P.languages.registerDocumentSemanticTokensProvider(v,m,g)),l.subscriptions.push(P.languages.registerDocumentRangeSemanticTokensProvider(v,m,g))}})},i=>{}),C.push(P.services.registLanguageClient(n))}async function ge(l){let p=P.workspace.getConfiguration("html");if(p.get("enable",!0)===!1)return;let d=p.get("filetypes",["html","handlebars","htmldjango","blade"]),f=!1;for(let v of P.workspace.textDocuments)d.includes(v.languageId)&&!f&&(f=!0,he(l,d));if(!f){let v=P.workspace.onDidOpenTextDocument(b=>{f||!d.includes(b.languageId)||(v.dispose(),f=!0,he(l,d))},null,l.subscriptions)}}module.exports=xe(we);0&&(module.exports={activate}); +//# sourceMappingURL=index.js.map diff --git a/.config/coc/extensions/node_modules/coc-html/lib/server.js b/.config/coc/extensions/node_modules/coc-html/lib/server.js new file mode 100644 index 0000000..04df1bb --- /dev/null +++ b/.config/coc/extensions/node_modules/coc-html/lib/server.js @@ -0,0 +1,538 @@ +var ry=Object.create;var qo=Object.defineProperty;var iy=Object.getOwnPropertyDescriptor;var oy=Object.getOwnPropertyNames;var ay=Object.getPrototypeOf,sy=Object.prototype.hasOwnProperty;var ku=t=>qo(t,"__esModule",{value:!0});var X=(t,e)=>()=>(t&&(e=t(t=0)),e);var se=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),Cu=(t,e)=>{for(var n in e)qo(t,n,{get:e[n],enumerable:!0})},Tu=(t,e,n,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of oy(e))!sy.call(t,i)&&(n||i!=="default")&&qo(t,i,{get:()=>e[i],enumerable:!(r=iy(e,i))||r.enumerable});return t},Oe=(t,e)=>Tu(ku(qo(t!=null?ry(ay(t)):{},"default",!e&&t&&t.__esModule?{get:()=>t.default,enumerable:!0}:{value:t,enumerable:!0})),t),Du=(t=>(e,n)=>t&&t.get(e)||(n=Tu(ku({}),e,1),t&&t.set(e,n),n))(typeof WeakMap!="undefined"?new WeakMap:0);var Uo=se(Qe=>{"use strict";Object.defineProperty(Qe,"__esModule",{value:!0});Qe.thenable=Qe.typedArray=Qe.stringArray=Qe.array=Qe.func=Qe.error=Qe.number=Qe.string=Qe.boolean=void 0;function ly(t){return t===!0||t===!1}Qe.boolean=ly;function Ru(t){return typeof t=="string"||t instanceof String}Qe.string=Ru;function cy(t){return typeof t=="number"||t instanceof Number}Qe.number=cy;function dy(t){return t instanceof Error}Qe.error=dy;function Eu(t){return typeof t=="function"}Qe.func=Eu;function Au(t){return Array.isArray(t)}Qe.array=Au;function uy(t){return Au(t)&&t.every(e=>Ru(e))}Qe.stringArray=uy;function hy(t,e){return Array.isArray(t)&&t.every(e)}Qe.typedArray=hy;function py(t){return t&&Eu(t.then)}Qe.thenable=py});var kn=se(Fs=>{"use strict";Object.defineProperty(Fs,"__esModule",{value:!0});var Es;function As(){if(Es===void 0)throw new Error("No runtime abstraction layer installed");return Es}(function(t){function e(n){if(n===void 0)throw new Error("No runtime abstraction layer provided");Es=n}t.install=e})(As||(As={}));Fs.default=As});var Ms=se(Pi=>{"use strict";Object.defineProperty(Pi,"__esModule",{value:!0});Pi.Disposable=void 0;var my;(function(t){function e(n){return{dispose:n}}t.create=e})(my=Pi.Disposable||(Pi.Disposable={}))});var Mu=se(Ho=>{"use strict";Object.defineProperty(Ho,"__esModule",{value:!0});Ho.AbstractMessageBuffer=void 0;var fy=13,gy=10,by=`\r +`,Fu=class{constructor(e="utf-8"){this._encoding=e,this._chunks=[],this._totalLength=0}get encoding(){return this._encoding}append(e){let n=typeof e=="string"?this.fromString(e,this._encoding):e;this._chunks.push(n),this._totalLength+=n.byteLength}tryReadHeaders(){if(this._chunks.length===0)return;let e=0,n=0,r=0,i=0;e:for(;nthis._totalLength)throw new Error("Cannot read so many bytes!");if(this._chunks[0].byteLength===e){let o=this._chunks[0];return this._chunks.shift(),this._totalLength-=e,this.asNative(o)}if(this._chunks[0].byteLength>e){let o=this._chunks[0],a=this.asNative(o,e);return this._chunks[0]=o.slice(e),this._totalLength-=e,a}let n=this.allocNative(e),r=0,i=0;for(;e>0;){let o=this._chunks[i];if(o.byteLength>e){let a=o.slice(0,e);n.set(a,r),r+=e,this._chunks[i]=o.slice(e),this._totalLength-=e,e-=e}else n.set(o,r),r+=o.byteLength,this._chunks.shift(),this._totalLength-=o.byteLength,e-=o.byteLength}return n}};Ho.AbstractMessageBuffer=Fu});var Nu=se(zs=>{"use strict";Object.defineProperty(zs,"__esModule",{value:!0});var vy=kn(),Pu=require("util"),mr=Ms(),yy=Mu(),zi=class extends yy.AbstractMessageBuffer{constructor(e="utf-8"){super(e)}emptyBuffer(){return zi.emptyBuffer}fromString(e,n){return Buffer.from(e,n)}toString(e,n){return e instanceof Buffer?e.toString(n):new Pu.TextDecoder(n).decode(e)}asNative(e,n){return n===void 0?e instanceof Buffer?e:Buffer.from(e):e instanceof Buffer?e.slice(0,n):Buffer.from(e,0,n)}allocNative(e){return Buffer.allocUnsafe(e)}};zi.emptyBuffer=Buffer.allocUnsafe(0);var zu=class{constructor(e){this.stream=e}onClose(e){return this.stream.on("close",e),mr.Disposable.create(()=>this.stream.off("close",e))}onError(e){return this.stream.on("error",e),mr.Disposable.create(()=>this.stream.off("error",e))}onEnd(e){return this.stream.on("end",e),mr.Disposable.create(()=>this.stream.off("end",e))}onData(e){return this.stream.on("data",e),mr.Disposable.create(()=>this.stream.off("data",e))}},Iu=class{constructor(e){this.stream=e}onClose(e){return this.stream.on("close",e),mr.Disposable.create(()=>this.stream.off("close",e))}onError(e){return this.stream.on("error",e),mr.Disposable.create(()=>this.stream.off("error",e))}onEnd(e){return this.stream.on("end",e),mr.Disposable.create(()=>this.stream.off("end",e))}write(e,n){return new Promise((r,i)=>{let o=a=>{a==null?r():i(a)};typeof e=="string"?this.stream.write(e,n,o):this.stream.write(e,o)})}end(){this.stream.end()}},Lu=Object.freeze({messageBuffer:Object.freeze({create:t=>new zi(t)}),applicationJson:Object.freeze({encoder:Object.freeze({name:"application/json",encode:(t,e)=>{try{return Promise.resolve(Buffer.from(JSON.stringify(t,void 0,0),e.charset))}catch(n){return Promise.reject(n)}}}),decoder:Object.freeze({name:"application/json",decode:(t,e)=>{try{return t instanceof Buffer?Promise.resolve(JSON.parse(t.toString(e.charset))):Promise.resolve(JSON.parse(new Pu.TextDecoder(e.charset).decode(t)))}catch(n){return Promise.reject(n)}}})}),stream:Object.freeze({asReadableStream:t=>new zu(t),asWritableStream:t=>new Iu(t)}),console,timer:Object.freeze({setTimeout(t,e,...n){return setTimeout(t,e,...n)},clearTimeout(t){clearTimeout(t)},setImmediate(t,...e){return setImmediate(t,...e)},clearImmediate(t){clearImmediate(t)}})});function Ps(){return Lu}(function(t){function e(){vy.default.install(Lu)}t.install=e})(Ps||(Ps={}));zs.default=Ps});var zr=se(xt=>{"use strict";Object.defineProperty(xt,"__esModule",{value:!0});xt.stringArray=xt.array=xt.func=xt.error=xt.number=xt.string=xt.boolean=void 0;function wy(t){return t===!0||t===!1}xt.boolean=wy;function Wu(t){return typeof t=="string"||t instanceof String}xt.string=Wu;function xy(t){return typeof t=="number"||t instanceof Number}xt.number=xy;function Sy(t){return t instanceof Error}xt.error=Sy;function _y(t){return typeof t=="function"}xt.func=_y;function Ou(t){return Array.isArray(t)}xt.array=Ou;function ky(t){return Ou(t)&&t.every(e=>Wu(e))}xt.stringArray=ky});var Is=se(ie=>{"use strict";Object.defineProperty(ie,"__esModule",{value:!0});ie.isResponseMessage=ie.isNotificationMessage=ie.isRequestMessage=ie.NotificationType9=ie.NotificationType8=ie.NotificationType7=ie.NotificationType6=ie.NotificationType5=ie.NotificationType4=ie.NotificationType3=ie.NotificationType2=ie.NotificationType1=ie.NotificationType0=ie.NotificationType=ie.RequestType9=ie.RequestType8=ie.RequestType7=ie.RequestType6=ie.RequestType5=ie.RequestType4=ie.RequestType3=ie.RequestType2=ie.RequestType1=ie.RequestType=ie.RequestType0=ie.AbstractMessageSignature=ie.ParameterStructures=ie.ResponseError=ie.ErrorCodes=void 0;var fr=zr(),qu;(function(t){t.ParseError=-32700,t.InvalidRequest=-32600,t.MethodNotFound=-32601,t.InvalidParams=-32602,t.InternalError=-32603,t.jsonrpcReservedErrorRangeStart=-32099,t.serverErrorStart=t.jsonrpcReservedErrorRangeStart,t.MessageWriteError=-32099,t.MessageReadError=-32098,t.ServerNotInitialized=-32002,t.UnknownErrorCode=-32001,t.jsonrpcReservedErrorRangeEnd=-32e3,t.serverErrorEnd=t.jsonrpcReservedErrorRangeEnd})(qu=ie.ErrorCodes||(ie.ErrorCodes={}));var jo=class extends Error{constructor(e,n,r){super(n);this.code=fr.number(e)?e:qu.UnknownErrorCode,this.data=r,Object.setPrototypeOf(this,jo.prototype)}toJson(){return{code:this.code,message:this.message,data:this.data}}};ie.ResponseError=jo;var ht=class{constructor(e){this.kind=e}static is(e){return e===ht.auto||e===ht.byName||e===ht.byPosition}toString(){return this.kind}};ie.ParameterStructures=ht;ht.auto=new ht("auto");ht.byPosition=new ht("byPosition");ht.byName=new ht("byName");var qe=class{constructor(e,n){this.method=e,this.numberOfParams=n}get parameterStructures(){return ht.auto}};ie.AbstractMessageSignature=qe;var Uu=class extends qe{constructor(e){super(e,0)}};ie.RequestType0=Uu;var Hu=class extends qe{constructor(e,n=ht.auto){super(e,1);this._parameterStructures=n}get parameterStructures(){return this._parameterStructures}};ie.RequestType=Hu;var ju=class extends qe{constructor(e,n=ht.auto){super(e,1);this._parameterStructures=n}get parameterStructures(){return this._parameterStructures}};ie.RequestType1=ju;var Bu=class extends qe{constructor(e){super(e,2)}};ie.RequestType2=Bu;var Vu=class extends qe{constructor(e){super(e,3)}};ie.RequestType3=Vu;var $u=class extends qe{constructor(e){super(e,4)}};ie.RequestType4=$u;var Gu=class extends qe{constructor(e){super(e,5)}};ie.RequestType5=Gu;var Ku=class extends qe{constructor(e){super(e,6)}};ie.RequestType6=Ku;var Ju=class extends qe{constructor(e){super(e,7)}};ie.RequestType7=Ju;var Xu=class extends qe{constructor(e){super(e,8)}};ie.RequestType8=Xu;var Yu=class extends qe{constructor(e){super(e,9)}};ie.RequestType9=Yu;var Qu=class extends qe{constructor(e,n=ht.auto){super(e,1);this._parameterStructures=n}get parameterStructures(){return this._parameterStructures}};ie.NotificationType=Qu;var Zu=class extends qe{constructor(e){super(e,0)}};ie.NotificationType0=Zu;var eh=class extends qe{constructor(e,n=ht.auto){super(e,1);this._parameterStructures=n}get parameterStructures(){return this._parameterStructures}};ie.NotificationType1=eh;var th=class extends qe{constructor(e){super(e,2)}};ie.NotificationType2=th;var nh=class extends qe{constructor(e){super(e,3)}};ie.NotificationType3=nh;var rh=class extends qe{constructor(e){super(e,4)}};ie.NotificationType4=rh;var ih=class extends qe{constructor(e){super(e,5)}};ie.NotificationType5=ih;var oh=class extends qe{constructor(e){super(e,6)}};ie.NotificationType6=oh;var ah=class extends qe{constructor(e){super(e,7)}};ie.NotificationType7=ah;var sh=class extends qe{constructor(e){super(e,8)}};ie.NotificationType8=sh;var lh=class extends qe{constructor(e){super(e,9)}};ie.NotificationType9=lh;function Cy(t){let e=t;return e&&fr.string(e.method)&&(fr.string(e.id)||fr.number(e.id))}ie.isRequestMessage=Cy;function Ty(t){let e=t;return e&&fr.string(e.method)&&t.id===void 0}ie.isNotificationMessage=Ty;function Dy(t){let e=t;return e&&(e.result!==void 0||!!e.error)&&(fr.string(e.id)||fr.number(e.id)||e.id===null)}ie.isResponseMessage=Dy});var Ir=se(gr=>{"use strict";Object.defineProperty(gr,"__esModule",{value:!0});gr.Emitter=gr.Event=void 0;var Ry=kn(),Ey;(function(t){let e={dispose(){}};t.None=function(){return e}})(Ey=gr.Event||(gr.Event={}));var ch=class{add(e,n=null,r){this._callbacks||(this._callbacks=[],this._contexts=[]),this._callbacks.push(e),this._contexts.push(n),Array.isArray(r)&&r.push({dispose:()=>this.remove(e,n)})}remove(e,n=null){if(!this._callbacks)return;let r=!1;for(let i=0,o=this._callbacks.length;i{this._callbacks||(this._callbacks=new ch),this._options&&this._options.onFirstListenerAdd&&this._callbacks.isEmpty()&&this._options.onFirstListenerAdd(this),this._callbacks.add(e,n);let i={dispose:()=>{!this._callbacks||(this._callbacks.remove(e,n),i.dispose=Ii._noop,this._options&&this._options.onLastListenerRemove&&this._callbacks.isEmpty()&&this._options.onLastListenerRemove(this))}};return Array.isArray(r)&&r.push(i),i}),this._event}fire(e){this._callbacks&&this._callbacks.invoke.call(this._callbacks,e)}dispose(){this._callbacks&&(this._callbacks.dispose(),this._callbacks=void 0)}};gr.Emitter=Ii;Ii._noop=function(){}});var Os=se(br=>{"use strict";Object.defineProperty(br,"__esModule",{value:!0});br.CancellationTokenSource=br.CancellationToken=void 0;var dh=kn(),Ay=zr(),Ls=Ir(),Ns;(function(t){t.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:Ls.Event.None}),t.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:Ls.Event.None});function e(n){let r=n;return r&&(r===t.None||r===t.Cancelled||Ay.boolean(r.isCancellationRequested)&&!!r.onCancellationRequested)}t.is=e})(Ns=br.CancellationToken||(br.CancellationToken={}));var Fy=Object.freeze(function(t,e){let n=dh.default().timer.setTimeout(t.bind(e),0);return{dispose(){dh.default().timer.clearTimeout(n)}}}),Ws=class{constructor(){this._isCancelled=!1}cancel(){this._isCancelled||(this._isCancelled=!0,this._emitter&&(this._emitter.fire(void 0),this.dispose()))}get isCancellationRequested(){return this._isCancelled}get onCancellationRequested(){return this._isCancelled?Fy:(this._emitter||(this._emitter=new Ls.Emitter),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=void 0)}},uh=class{get token(){return this._token||(this._token=new Ws),this._token}cancel(){this._token?this._token.cancel():this._token=Ns.Cancelled}dispose(){this._token?this._token instanceof Ws&&this._token.dispose():this._token=Ns.None}};br.CancellationTokenSource=uh});var ph=se(Cn=>{"use strict";Object.defineProperty(Cn,"__esModule",{value:!0});Cn.ReadableStreamMessageReader=Cn.AbstractMessageReader=Cn.MessageReader=void 0;var Bo=kn(),Lr=zr(),qs=Ir(),My;(function(t){function e(n){let r=n;return r&&Lr.func(r.listen)&&Lr.func(r.dispose)&&Lr.func(r.onError)&&Lr.func(r.onClose)&&Lr.func(r.onPartialMessage)}t.is=e})(My=Cn.MessageReader||(Cn.MessageReader={}));var Us=class{constructor(){this.errorEmitter=new qs.Emitter,this.closeEmitter=new qs.Emitter,this.partialMessageEmitter=new qs.Emitter}dispose(){this.errorEmitter.dispose(),this.closeEmitter.dispose()}get onError(){return this.errorEmitter.event}fireError(e){this.errorEmitter.fire(this.asError(e))}get onClose(){return this.closeEmitter.event}fireClose(){this.closeEmitter.fire(void 0)}get onPartialMessage(){return this.partialMessageEmitter.event}firePartialMessage(e){this.partialMessageEmitter.fire(e)}asError(e){return e instanceof Error?e:new Error(`Reader received error. Reason: ${Lr.string(e.message)?e.message:"unknown"}`)}};Cn.AbstractMessageReader=Us;var Hs;(function(t){function e(n){var r;let i,o,a,s=new Map,l,c=new Map;if(n===void 0||typeof n=="string")i=n!=null?n:"utf-8";else{if(i=(r=n.charset)!==null&&r!==void 0?r:"utf-8",n.contentDecoder!==void 0&&(a=n.contentDecoder,s.set(a.name,a)),n.contentDecoders!==void 0)for(let d of n.contentDecoders)s.set(d.name,d);if(n.contentTypeDecoder!==void 0&&(l=n.contentTypeDecoder,c.set(l.name,l)),n.contentTypeDecoders!==void 0)for(let d of n.contentTypeDecoders)c.set(d.name,d)}return l===void 0&&(l=Bo.default().applicationJson.decoder,c.set(l.name,l)),{charset:i,contentDecoder:a,contentDecoders:s,contentTypeDecoder:l,contentTypeDecoders:c}}t.fromOptions=e})(Hs||(Hs={}));var hh=class extends Us{constructor(e,n){super();this.readable=e,this.options=Hs.fromOptions(n),this.buffer=Bo.default().messageBuffer.create(this.options.charset),this._partialMessageTimeout=1e4,this.nextMessageLength=-1,this.messageToken=0}set partialMessageTimeout(e){this._partialMessageTimeout=e}get partialMessageTimeout(){return this._partialMessageTimeout}listen(e){this.nextMessageLength=-1,this.messageToken=0,this.partialMessageTimer=void 0,this.callback=e;let n=this.readable.onData(r=>{this.onData(r)});return this.readable.onError(r=>this.fireError(r)),this.readable.onClose(()=>this.fireClose()),n}onData(e){for(this.buffer.append(e);;){if(this.nextMessageLength===-1){let i=this.buffer.tryReadHeaders();if(!i)return;let o=i.get("Content-Length");if(!o)throw new Error("Header must provide a Content-Length property.");let a=parseInt(o);if(isNaN(a))throw new Error("Content-Length value must be a number.");this.nextMessageLength=a}let n=this.buffer.tryReadBody(this.nextMessageLength);if(n===void 0){this.setPartialMessageTimer();return}this.clearPartialMessageTimer(),this.nextMessageLength=-1;let r;this.options.contentDecoder!==void 0?r=this.options.contentDecoder.decode(n):r=Promise.resolve(n),r.then(i=>{this.options.contentTypeDecoder.decode(i,this.options).then(o=>{this.callback(o)},o=>{this.fireError(o)})},i=>{this.fireError(i)})}}clearPartialMessageTimer(){this.partialMessageTimer&&(Bo.default().timer.clearTimeout(this.partialMessageTimer),this.partialMessageTimer=void 0)}setPartialMessageTimer(){this.clearPartialMessageTimer(),!(this._partialMessageTimeout<=0)&&(this.partialMessageTimer=Bo.default().timer.setTimeout((e,n)=>{this.partialMessageTimer=void 0,e===this.messageToken&&(this.firePartialMessage({messageToken:e,waitingTime:n}),this.setPartialMessageTimer())},this._partialMessageTimeout,this.messageToken,this._partialMessageTimeout))}};Cn.ReadableStreamMessageReader=hh});var fh=se(Vo=>{"use strict";Object.defineProperty(Vo,"__esModule",{value:!0});Vo.Semaphore=void 0;var Py=kn(),mh=class{constructor(e=1){if(e<=0)throw new Error("Capacity must be greater than 0");this._capacity=e,this._active=0,this._waiting=[]}lock(e){return new Promise((n,r)=>{this._waiting.push({thunk:e,resolve:n,reject:r}),this.runNext()})}get active(){return this._active}runNext(){this._waiting.length===0||this._active===this._capacity||Py.default().timer.setImmediate(()=>this.doRunNext())}doRunNext(){if(this._waiting.length===0||this._active===this._capacity)return;let e=this._waiting.shift();if(this._active++,this._active>this._capacity)throw new Error("To many thunks active");try{let n=e.thunk();n instanceof Promise?n.then(r=>{this._active--,e.resolve(r),this.runNext()},r=>{this._active--,e.reject(r),this.runNext()}):(this._active--,e.resolve(n),this.runNext())}catch(n){this._active--,e.reject(n),this.runNext()}}};Vo.Semaphore=mh});var wh=se(Tn=>{"use strict";Object.defineProperty(Tn,"__esModule",{value:!0});Tn.WriteableStreamMessageWriter=Tn.AbstractMessageWriter=Tn.MessageWriter=void 0;var gh=kn(),Li=zr(),zy=fh(),bh=Ir(),Iy="Content-Length: ",vh=`\r +`,Ly;(function(t){function e(n){let r=n;return r&&Li.func(r.dispose)&&Li.func(r.onClose)&&Li.func(r.onError)&&Li.func(r.write)}t.is=e})(Ly=Tn.MessageWriter||(Tn.MessageWriter={}));var js=class{constructor(){this.errorEmitter=new bh.Emitter,this.closeEmitter=new bh.Emitter}dispose(){this.errorEmitter.dispose(),this.closeEmitter.dispose()}get onError(){return this.errorEmitter.event}fireError(e,n,r){this.errorEmitter.fire([this.asError(e),n,r])}get onClose(){return this.closeEmitter.event}fireClose(){this.closeEmitter.fire(void 0)}asError(e){return e instanceof Error?e:new Error(`Writer received error. Reason: ${Li.string(e.message)?e.message:"unknown"}`)}};Tn.AbstractMessageWriter=js;var Bs;(function(t){function e(n){var r,i;return n===void 0||typeof n=="string"?{charset:n!=null?n:"utf-8",contentTypeEncoder:gh.default().applicationJson.encoder}:{charset:(r=n.charset)!==null&&r!==void 0?r:"utf-8",contentEncoder:n.contentEncoder,contentTypeEncoder:(i=n.contentTypeEncoder)!==null&&i!==void 0?i:gh.default().applicationJson.encoder}}t.fromOptions=e})(Bs||(Bs={}));var yh=class extends js{constructor(e,n){super();this.writable=e,this.options=Bs.fromOptions(n),this.errorCount=0,this.writeSemaphore=new zy.Semaphore(1),this.writable.onError(r=>this.fireError(r)),this.writable.onClose(()=>this.fireClose())}async write(e){return this.writeSemaphore.lock(async()=>this.options.contentTypeEncoder.encode(e,this.options).then(r=>this.options.contentEncoder!==void 0?this.options.contentEncoder.encode(r):r).then(r=>{let i=[];return i.push(Iy,r.byteLength.toString(),vh),i.push(vh),this.doWrite(e,i,r)},r=>{throw this.fireError(r),r}))}async doWrite(e,n,r){try{return await this.writable.write(n.join(""),"ascii"),this.writable.write(r)}catch(i){return this.handleError(i,e),Promise.reject(i)}}handleError(e,n){this.errorCount++,this.fireError(e,n,this.errorCount)}end(){this.writable.end()}};Tn.WriteableStreamMessageWriter=yh});var Sh=se(Dn=>{"use strict";Object.defineProperty(Dn,"__esModule",{value:!0});Dn.LRUCache=Dn.LinkedMap=Dn.Touch=void 0;var Rt;(function(t){t.None=0,t.First=1,t.AsOld=t.First,t.Last=2,t.AsNew=t.Last})(Rt=Dn.Touch||(Dn.Touch={}));var Vs=class{constructor(){this[Symbol.toStringTag]="LinkedMap",this._map=new Map,this._head=void 0,this._tail=void 0,this._size=0,this._state=0}clear(){this._map.clear(),this._head=void 0,this._tail=void 0,this._size=0,this._state++}isEmpty(){return!this._head&&!this._tail}get size(){return this._size}get first(){var e;return(e=this._head)===null||e===void 0?void 0:e.value}get last(){var e;return(e=this._tail)===null||e===void 0?void 0:e.value}has(e){return this._map.has(e)}get(e,n=Rt.None){let r=this._map.get(e);if(!!r)return n!==Rt.None&&this.touch(r,n),r.value}set(e,n,r=Rt.None){let i=this._map.get(e);if(i)i.value=n,r!==Rt.None&&this.touch(i,r);else{switch(i={key:e,value:n,next:void 0,previous:void 0},r){case Rt.None:this.addItemLast(i);break;case Rt.First:this.addItemFirst(i);break;case Rt.Last:this.addItemLast(i);break;default:this.addItemLast(i);break}this._map.set(e,i),this._size++}return this}delete(e){return!!this.remove(e)}remove(e){let n=this._map.get(e);if(!!n)return this._map.delete(e),this.removeItem(n),this._size--,n.value}shift(){if(!this._head&&!this._tail)return;if(!this._head||!this._tail)throw new Error("Invalid list");let e=this._head;return this._map.delete(e.key),this.removeItem(e),this._size--,e.value}forEach(e,n){let r=this._state,i=this._head;for(;i;){if(n?e.bind(n)(i.value,i.key,this):e(i.value,i.key,this),this._state!==r)throw new Error("LinkedMap got modified during iteration.");i=i.next}}keys(){let e=this,n=this._state,r=this._head,i={[Symbol.iterator](){return i},next(){if(e._state!==n)throw new Error("LinkedMap got modified during iteration.");if(r){let o={value:r.key,done:!1};return r=r.next,o}else return{value:void 0,done:!0}}};return i}values(){let e=this,n=this._state,r=this._head,i={[Symbol.iterator](){return i},next(){if(e._state!==n)throw new Error("LinkedMap got modified during iteration.");if(r){let o={value:r.value,done:!1};return r=r.next,o}else return{value:void 0,done:!0}}};return i}entries(){let e=this,n=this._state,r=this._head,i={[Symbol.iterator](){return i},next(){if(e._state!==n)throw new Error("LinkedMap got modified during iteration.");if(r){let o={value:[r.key,r.value],done:!1};return r=r.next,o}else return{value:void 0,done:!0}}};return i}[Symbol.iterator](){return this.entries()}trimOld(e){if(e>=this.size)return;if(e===0){this.clear();return}let n=this._head,r=this.size;for(;n&&r>e;)this._map.delete(n.key),n=n.next,r--;this._head=n,this._size=r,n&&(n.previous=void 0),this._state++}addItemFirst(e){if(!this._head&&!this._tail)this._tail=e;else if(this._head)e.next=this._head,this._head.previous=e;else throw new Error("Invalid list");this._head=e,this._state++}addItemLast(e){if(!this._head&&!this._tail)this._head=e;else if(this._tail)e.previous=this._tail,this._tail.next=e;else throw new Error("Invalid list");this._tail=e,this._state++}removeItem(e){if(e===this._head&&e===this._tail)this._head=void 0,this._tail=void 0;else if(e===this._head){if(!e.next)throw new Error("Invalid list");e.next.previous=void 0,this._head=e.next}else if(e===this._tail){if(!e.previous)throw new Error("Invalid list");e.previous.next=void 0,this._tail=e.previous}else{let n=e.next,r=e.previous;if(!n||!r)throw new Error("Invalid list");n.previous=r,r.next=n}e.next=void 0,e.previous=void 0,this._state++}touch(e,n){if(!this._head||!this._tail)throw new Error("Invalid list");if(!(n!==Rt.First&&n!==Rt.Last)){if(n===Rt.First){if(e===this._head)return;let r=e.next,i=e.previous;e===this._tail?(i.next=void 0,this._tail=i):(r.previous=i,i.next=r),e.previous=void 0,e.next=this._head,this._head.previous=e,this._head=e,this._state++}else if(n===Rt.Last){if(e===this._tail)return;let r=e.next,i=e.previous;e===this._head?(r.previous=void 0,this._head=r):(r.previous=i,i.next=r),e.next=void 0,e.previous=this._tail,this._tail.next=e,this._tail=e,this._state++}}}toJSON(){let e=[];return this.forEach((n,r)=>{e.push([r,n])}),e}fromJSON(e){this.clear();for(let[n,r]of e)this.set(n,r)}};Dn.LinkedMap=Vs;var xh=class extends Vs{constructor(e,n=1){super();this._limit=e,this._ratio=Math.min(Math.max(0,n),1)}get limit(){return this._limit}set limit(e){this._limit=e,this.checkTrim()}get ratio(){return this._ratio}set ratio(e){this._ratio=Math.min(Math.max(0,e),1),this.checkTrim()}get(e,n=Rt.AsNew){return super.get(e,n)}peek(e){return super.get(e,Rt.None)}set(e,n){return super.set(e,n,Rt.Last),this.checkTrim(),this}checkTrim(){this.size>this._limit&&this.trimOld(Math.round(this._limit*this._ratio))}};Dn.LRUCache=xh});var Rh=se(ge=>{"use strict";Object.defineProperty(ge,"__esModule",{value:!0});ge.createMessageConnection=ge.ConnectionOptions=ge.CancellationStrategy=ge.CancellationSenderStrategy=ge.CancellationReceiverStrategy=ge.ConnectionStrategy=ge.ConnectionError=ge.ConnectionErrors=ge.LogTraceNotification=ge.SetTraceNotification=ge.TraceFormat=ge.Trace=ge.NullLogger=ge.ProgressType=void 0;var _h=kn(),st=zr(),fe=Is(),kh=Sh(),Ni=Ir(),$s=Os(),Wi;(function(t){t.type=new fe.NotificationType("$/cancelRequest")})(Wi||(Wi={}));var $o;(function(t){t.type=new fe.NotificationType("$/progress")})($o||($o={}));var Ch=class{constructor(){}};ge.ProgressType=Ch;var Gs;(function(t){function e(n){return st.func(n)}t.is=e})(Gs||(Gs={}));ge.NullLogger=Object.freeze({error:()=>{},warn:()=>{},info:()=>{},log:()=>{}});var Ze;(function(t){t[t.Off=0]="Off",t[t.Messages=1]="Messages",t[t.Verbose=2]="Verbose"})(Ze=ge.Trace||(ge.Trace={}));(function(t){function e(r){if(!st.string(r))return t.Off;switch(r=r.toLowerCase(),r){case"off":return t.Off;case"messages":return t.Messages;case"verbose":return t.Verbose;default:return t.Off}}t.fromString=e;function n(r){switch(r){case t.Off:return"off";case t.Messages:return"messages";case t.Verbose:return"verbose";default:return"off"}}t.toString=n})(Ze=ge.Trace||(ge.Trace={}));var en;(function(t){t.Text="text",t.JSON="json"})(en=ge.TraceFormat||(ge.TraceFormat={}));(function(t){function e(n){return n=n.toLowerCase(),n==="json"?t.JSON:t.Text}t.fromString=e})(en=ge.TraceFormat||(ge.TraceFormat={}));var Th;(function(t){t.type=new fe.NotificationType("$/setTrace")})(Th=ge.SetTraceNotification||(ge.SetTraceNotification={}));var Ks;(function(t){t.type=new fe.NotificationType("$/logTrace")})(Ks=ge.LogTraceNotification||(ge.LogTraceNotification={}));var Go;(function(t){t[t.Closed=1]="Closed",t[t.Disposed=2]="Disposed",t[t.AlreadyListening=3]="AlreadyListening"})(Go=ge.ConnectionErrors||(ge.ConnectionErrors={}));var vr=class extends Error{constructor(e,n){super(n);this.code=e,Object.setPrototypeOf(this,vr.prototype)}};ge.ConnectionError=vr;var Dh;(function(t){function e(n){let r=n;return r&&st.func(r.cancelUndispatched)}t.is=e})(Dh=ge.ConnectionStrategy||(ge.ConnectionStrategy={}));var Js;(function(t){t.Message=Object.freeze({createCancellationTokenSource(n){return new $s.CancellationTokenSource}});function e(n){let r=n;return r&&st.func(r.createCancellationTokenSource)}t.is=e})(Js=ge.CancellationReceiverStrategy||(ge.CancellationReceiverStrategy={}));var Xs;(function(t){t.Message=Object.freeze({sendCancellation(n,r){n.sendNotification(Wi.type,{id:r})},cleanup(n){}});function e(n){let r=n;return r&&st.func(r.sendCancellation)&&st.func(r.cleanup)}t.is=e})(Xs=ge.CancellationSenderStrategy||(ge.CancellationSenderStrategy={}));var Ys;(function(t){t.Message=Object.freeze({receiver:Js.Message,sender:Xs.Message});function e(n){let r=n;return r&&Js.is(r.receiver)&&Xs.is(r.sender)}t.is=e})(Ys=ge.CancellationStrategy||(ge.CancellationStrategy={}));var Ny;(function(t){function e(n){let r=n;return r&&(Ys.is(r.cancellationStrategy)||Dh.is(r.connectionStrategy))}t.is=e})(Ny=ge.ConnectionOptions||(ge.ConnectionOptions={}));var tn;(function(t){t[t.New=1]="New",t[t.Listening=2]="Listening",t[t.Closed=3]="Closed",t[t.Disposed=4]="Disposed"})(tn||(tn={}));function Wy(t,e,n,r){let i=n!==void 0?n:ge.NullLogger,o=0,a=0,s=0,l="2.0",c,d=Object.create(null),u,h=Object.create(null),p=new Map,g,y=new kh.LinkedMap,_=Object.create(null),x=Object.create(null),v=Ze.Off,F=en.Text,B,Y=tn.New,ce=new Ni.Emitter,A=new Ni.Emitter,f=new Ni.Emitter,C=new Ni.Emitter,L=new Ni.Emitter,P=r&&r.cancellationStrategy?r.cancellationStrategy:Ys.Message;function V(R){if(R===null)throw new Error("Can't send requests with id null since the response can't be correlated.");return"req-"+R.toString()}function K(R){return R===null?"res-unknown-"+(++s).toString():"res-"+R.toString()}function q(){return"not-"+(++a).toString()}function ee(R,$){fe.isRequestMessage($)?R.set(V($.id),$):fe.isResponseMessage($)?R.set(K($.id),$):R.set(q(),$)}function D(R){}function b(){return Y===tn.Listening}function w(){return Y===tn.Closed}function S(){return Y===tn.Disposed}function z(){(Y===tn.New||Y===tn.Listening)&&(Y=tn.Closed,A.fire(void 0))}function E(R){ce.fire([R,void 0,void 0])}function M(R){ce.fire(R)}t.onClose(z),t.onError(E),e.onClose(z),e.onError(M);function U(){g||y.size===0||(g=_h.default().timer.setImmediate(()=>{g=void 0,te()}))}function te(){if(y.size===0)return;let R=y.shift();try{fe.isRequestMessage(R)?he(R):fe.isNotificationMessage(R)?Ye(R):fe.isResponseMessage(R)?me(R):wt(R)}finally{U()}}let oe=R=>{try{if(fe.isNotificationMessage(R)&&R.method===Wi.type.method){let $=V(R.params.id),Q=y.get($);if(fe.isRequestMessage(Q)){let ue=r==null?void 0:r.connectionStrategy,Re=ue&&ue.cancelUndispatched?ue.cancelUndispatched(Q,D):D(Q);if(Re&&(Re.error!==void 0||Re.result!==void 0)){y.delete($),Re.id=Q.id,Gt(Re,R.method,Date.now()),e.write(Re);return}}}ee(y,R)}finally{U()}};function he(R){if(S())return;function $(Fe,Ge,Me){let it={jsonrpc:l,id:R.id};Fe instanceof fe.ResponseError?it.error=Fe.toJson():it.result=Fe===void 0?null:Fe,Gt(it,Ge,Me),e.write(it)}function Q(Fe,Ge,Me){let it={jsonrpc:l,id:R.id,error:Fe.toJson()};Gt(it,Ge,Me),e.write(it)}function ue(Fe,Ge,Me){Fe===void 0&&(Fe=null);let it={jsonrpc:l,id:R.id,result:Fe};Gt(it,Ge,Me),e.write(it)}qt(R);let Re=d[R.method],$e,rt;Re&&($e=Re.type,rt=Re.handler);let at=Date.now();if(rt||c){let Fe=String(R.id),Ge=P.receiver.createCancellationTokenSource(Fe);x[Fe]=Ge;try{let Me;if(rt)if(R.params===void 0){if($e!==void 0&&$e.numberOfParams!==0){Q(new fe.ResponseError(fe.ErrorCodes.InvalidParams,`Request ${R.method} defines ${$e.numberOfParams} params but recevied none.`),R.method,at);return}Me=rt(Ge.token)}else if(Array.isArray(R.params)){if($e!==void 0&&$e.parameterStructures===fe.ParameterStructures.byName){Q(new fe.ResponseError(fe.ErrorCodes.InvalidParams,`Request ${R.method} defines parameters by name but received parameters by position`),R.method,at);return}Me=rt(...R.params,Ge.token)}else{if($e!==void 0&&$e.parameterStructures===fe.ParameterStructures.byPosition){Q(new fe.ResponseError(fe.ErrorCodes.InvalidParams,`Request ${R.method} defines parameters by position but received parameters by name`),R.method,at);return}Me=rt(R.params,Ge.token)}else c&&(Me=c(R.method,R.params,Ge.token));let it=Me;Me?it.then?it.then(It=>{delete x[Fe],$(It,R.method,at)},It=>{delete x[Fe],It instanceof fe.ResponseError?Q(It,R.method,at):It&&st.string(It.message)?Q(new fe.ResponseError(fe.ErrorCodes.InternalError,`Request ${R.method} failed with message: ${It.message}`),R.method,at):Q(new fe.ResponseError(fe.ErrorCodes.InternalError,`Request ${R.method} failed unexpectedly without providing any details.`),R.method,at)}):(delete x[Fe],$(Me,R.method,at)):(delete x[Fe],ue(Me,R.method,at))}catch(Me){delete x[Fe],Me instanceof fe.ResponseError?$(Me,R.method,at):Me&&st.string(Me.message)?Q(new fe.ResponseError(fe.ErrorCodes.InternalError,`Request ${R.method} failed with message: ${Me.message}`),R.method,at):Q(new fe.ResponseError(fe.ErrorCodes.InternalError,`Request ${R.method} failed unexpectedly without providing any details.`),R.method,at)}}else Q(new fe.ResponseError(fe.ErrorCodes.MethodNotFound,`Unhandled method ${R.method}`),R.method,at)}function me(R){if(!S())if(R.id===null)R.error?i.error(`Received response message without id: Error is: +${JSON.stringify(R.error,void 0,4)}`):i.error("Received response message without id. No further error information provided.");else{let $=String(R.id),Q=_[$];if(Wo(R,Q),Q){delete _[$];try{if(R.error){let ue=R.error;Q.reject(new fe.ResponseError(ue.code,ue.message,ue.data))}else if(R.result!==void 0)Q.resolve(R.result);else throw new Error("Should never happen.")}catch(ue){ue.message?i.error(`Response handler '${Q.method}' failed with message: ${ue.message}`):i.error(`Response handler '${Q.method}' failed unexpectedly.`)}}}}function Ye(R){if(S())return;let $,Q;if(R.method===Wi.type.method)Q=ue=>{let Re=ue.id,$e=x[String(Re)];$e&&$e.cancel()};else{let ue=h[R.method];ue&&(Q=ue.handler,$=ue.type)}if(Q||u)try{No(R),Q?R.params===void 0?($!==void 0&&$.numberOfParams!==0&&$.parameterStructures!==fe.ParameterStructures.byName&&i.error(`Notification ${R.method} defines ${$.numberOfParams} params but recevied none.`),Q()):Array.isArray(R.params)?($!==void 0&&($.parameterStructures===fe.ParameterStructures.byName&&i.error(`Notification ${R.method} defines parameters by name but received parameters by position`),$.numberOfParams!==R.params.length&&i.error(`Notification ${R.method} defines ${$.numberOfParams} params but received ${R.params.length} argumennts`)),Q(...R.params)):($!==void 0&&$.parameterStructures===fe.ParameterStructures.byPosition&&i.error(`Notification ${R.method} defines parameters by position but received parameters by name`),Q(R.params)):u&&u(R.method,R.params)}catch(ue){ue.message?i.error(`Notification handler '${R.method}' failed with message: ${ue.message}`):i.error(`Notification handler '${R.method}' failed unexpectedly.`)}else f.fire(R)}function wt(R){if(!R){i.error("Received empty message.");return}i.error(`Received message which is neither a response nor a notification message: +${JSON.stringify(R,null,4)}`);let $=R;if(st.string($.id)||st.number($.id)){let Q=String($.id),ue=_[Q];ue&&ue.reject(new Error("The received response has neither a result nor an error property."))}}function pn(R){if(!(v===Ze.Off||!B))if(F===en.Text){let $;v===Ze.Verbose&&R.params&&($=`Params: ${JSON.stringify(R.params,null,4)} + +`),B.log(`Sending request '${R.method} - (${R.id})'.`,$)}else $n("send-request",R)}function Dt(R){if(!(v===Ze.Off||!B))if(F===en.Text){let $;v===Ze.Verbose&&(R.params?$=`Params: ${JSON.stringify(R.params,null,4)} + +`:$=`No parameters provided. + +`),B.log(`Sending notification '${R.method}'.`,$)}else $n("send-notification",R)}function Gt(R,$,Q){if(!(v===Ze.Off||!B))if(F===en.Text){let ue;v===Ze.Verbose&&(R.error&&R.error.data?ue=`Error data: ${JSON.stringify(R.error.data,null,4)} + +`:R.result?ue=`Result: ${JSON.stringify(R.result,null,4)} + +`:R.error===void 0&&(ue=`No result returned. + +`)),B.log(`Sending response '${$} - (${R.id})'. Processing request took ${Date.now()-Q}ms`,ue)}else $n("send-response",R)}function qt(R){if(!(v===Ze.Off||!B))if(F===en.Text){let $;v===Ze.Verbose&&R.params&&($=`Params: ${JSON.stringify(R.params,null,4)} + +`),B.log(`Received request '${R.method} - (${R.id})'.`,$)}else $n("receive-request",R)}function No(R){if(!(v===Ze.Off||!B||R.method===Ks.type.method))if(F===en.Text){let $;v===Ze.Verbose&&(R.params?$=`Params: ${JSON.stringify(R.params,null,4)} + +`:$=`No parameters provided. + +`),B.log(`Received notification '${R.method}'.`,$)}else $n("receive-notification",R)}function Wo(R,$){if(!(v===Ze.Off||!B))if(F===en.Text){let Q;if(v===Ze.Verbose&&(R.error&&R.error.data?Q=`Error data: ${JSON.stringify(R.error.data,null,4)} + +`:R.result?Q=`Result: ${JSON.stringify(R.result,null,4)} + +`:R.error===void 0&&(Q=`No result returned. + +`)),$){let ue=R.error?` Request failed: ${R.error.message} (${R.error.code}).`:"";B.log(`Received response '${$.method} - (${R.id})' in ${Date.now()-$.timerStart}ms.${ue}`,Q)}else B.log(`Received response ${R.id} without active response promise.`,Q)}else $n("receive-response",R)}function $n(R,$){if(!B||v===Ze.Off)return;let Q={isLSPMessage:!0,type:R,message:$,timestamp:Date.now()};B.log(Q)}function mn(){if(w())throw new vr(Go.Closed,"Connection is closed.");if(S())throw new vr(Go.Disposed,"Connection is disposed.")}function Oo(){if(b())throw new vr(Go.AlreadyListening,"Connection is already listening")}function ny(){if(!b())throw new Error("Call listen() first.")}function Mi(R){return R===void 0?null:R}function xu(R){if(R!==null)return R}function Su(R){return R!=null&&!Array.isArray(R)&&typeof R=="object"}function Rs(R,$){switch(R){case fe.ParameterStructures.auto:return Su($)?xu($):[Mi($)];case fe.ParameterStructures.byName:if(!Su($))throw new Error("Recevied parameters by name but param is not an object literal.");return xu($);case fe.ParameterStructures.byPosition:return[Mi($)];default:throw new Error(`Unknown parameter structure ${R.toString()}`)}}function _u(R,$){let Q,ue=R.numberOfParams;switch(ue){case 0:Q=void 0;break;case 1:Q=Rs(R.parameterStructures,$[0]);break;default:Q=[];for(let Re=0;Re<$.length&&Re{mn();let Q,ue;if(st.string(R)){Q=R;let $e=$[0],rt=0,at=fe.ParameterStructures.auto;fe.ParameterStructures.is($e)&&(rt=1,at=$e);let Fe=$.length,Ge=Fe-rt;switch(Ge){case 0:ue=void 0;break;case 1:ue=Rs(at,$[rt]);break;default:if(at===fe.ParameterStructures.byName)throw new Error(`Recevied ${Ge} parameters for 'by Name' notification parameter structure.`);ue=$.slice(rt,Fe).map(Me=>Mi(Me));break}}else{let $e=$;Q=R.method,ue=_u(R,$e)}let Re={jsonrpc:l,method:Q,params:ue};Dt(Re),e.write(Re)},onNotification:(R,$)=>{mn();let Q;return st.func(R)?u=R:$&&(st.string(R)?(Q=R,h[R]={type:void 0,handler:$}):(Q=R.method,h[R.method]={type:R,handler:$})),{dispose:()=>{Q!==void 0?delete h[Q]:u=void 0}}},onProgress:(R,$,Q)=>{if(p.has($))throw new Error(`Progress handler for token ${$} already registered`);return p.set($,Q),{dispose:()=>{p.delete($)}}},sendProgress:(R,$,Q)=>{Pr.sendNotification($o.type,{token:$,value:Q})},onUnhandledProgress:C.event,sendRequest:(R,...$)=>{mn(),ny();let Q,ue,Re;if(st.string(R)){Q=R;let Fe=$[0],Ge=$[$.length-1],Me=0,it=fe.ParameterStructures.auto;fe.ParameterStructures.is(Fe)&&(Me=1,it=Fe);let It=$.length;$s.CancellationToken.is(Ge)&&(It=It-1,Re=Ge);let pr=It-Me;switch(pr){case 0:ue=void 0;break;case 1:ue=Rs(it,$[Me]);break;default:if(it===fe.ParameterStructures.byName)throw new Error(`Recevied ${pr} parameters for 'by Name' request parameter structure.`);ue=$.slice(Me,It).map(Gn=>Mi(Gn));break}}else{let Fe=$;Q=R.method,ue=_u(R,Fe);let Ge=R.numberOfParams;Re=$s.CancellationToken.is(Fe[Ge])?Fe[Ge]:void 0}let $e=o++,rt;return Re&&(rt=Re.onCancellationRequested(()=>{P.sender.sendCancellation(Pr,$e)})),new Promise((Fe,Ge)=>{let Me={jsonrpc:l,id:$e,method:Q,params:ue},it=Gn=>{Fe(Gn),P.sender.cleanup($e),rt==null||rt.dispose()},It=Gn=>{Ge(Gn),P.sender.cleanup($e),rt==null||rt.dispose()},pr={method:Q,timerStart:Date.now(),resolve:it,reject:It};pn(Me);try{e.write(Me)}catch(Gn){pr.reject(new fe.ResponseError(fe.ErrorCodes.MessageWriteError,Gn.message?Gn.message:"Unknown reason")),pr=null}pr&&(_[String($e)]=pr)})},onRequest:(R,$)=>{mn();let Q=null;return Gs.is(R)?(Q=void 0,c=R):st.string(R)?(Q=null,$!==void 0&&(Q=R,d[R]={handler:$,type:void 0})):$!==void 0&&(Q=R.method,d[R.method]={type:R,handler:$}),{dispose:()=>{Q!==null&&(Q!==void 0?delete d[Q]:c=void 0)}}},trace:(R,$,Q)=>{let ue=!1,Re=en.Text;Q!==void 0&&(st.boolean(Q)?ue=Q:(ue=Q.sendNotification||!1,Re=Q.traceFormat||en.Text)),v=R,F=Re,v===Ze.Off?B=void 0:B=$,ue&&!w()&&!S()&&Pr.sendNotification(Th.type,{value:Ze.toString(R)})},onError:ce.event,onClose:A.event,onUnhandledNotification:f.event,onDispose:L.event,end:()=>{e.end()},dispose:()=>{if(S())return;Y=tn.Disposed,L.fire(void 0);let R=new Error("Connection got disposed.");Object.keys(_).forEach($=>{_[$].reject(R)}),_=Object.create(null),x=Object.create(null),y=new kh.LinkedMap,st.func(e.dispose)&&e.dispose(),st.func(t.dispose)&&t.dispose()},listen:()=>{mn(),Oo(),Y=tn.Listening,t.listen(oe)},inspect:()=>{_h.default().console.log("inspect")}};return Pr.onNotification(Ks.type,R=>{v===Ze.Off||!B||B.log(R.message,v===Ze.Verbose?R.verbose:void 0)}),Pr.onNotification($o.type,R=>{let $=p.get(R.token);$?$(R.value):C.fire(R)}),Pr}ge.createMessageConnection=Wy});var el=se(G=>{"use strict";Object.defineProperty(G,"__esModule",{value:!0});G.CancellationSenderStrategy=G.CancellationReceiverStrategy=G.ConnectionError=G.ConnectionErrors=G.LogTraceNotification=G.SetTraceNotification=G.TraceFormat=G.Trace=G.ProgressType=G.createMessageConnection=G.NullLogger=G.ConnectionOptions=G.ConnectionStrategy=G.WriteableStreamMessageWriter=G.AbstractMessageWriter=G.MessageWriter=G.ReadableStreamMessageReader=G.AbstractMessageReader=G.MessageReader=G.CancellationToken=G.CancellationTokenSource=G.Emitter=G.Event=G.Disposable=G.ParameterStructures=G.NotificationType9=G.NotificationType8=G.NotificationType7=G.NotificationType6=G.NotificationType5=G.NotificationType4=G.NotificationType3=G.NotificationType2=G.NotificationType1=G.NotificationType0=G.NotificationType=G.ErrorCodes=G.ResponseError=G.RequestType9=G.RequestType8=G.RequestType7=G.RequestType6=G.RequestType5=G.RequestType4=G.RequestType3=G.RequestType2=G.RequestType1=G.RequestType0=G.RequestType=G.RAL=void 0;G.CancellationStrategy=void 0;var Ie=Is();Object.defineProperty(G,"RequestType",{enumerable:!0,get:function(){return Ie.RequestType}});Object.defineProperty(G,"RequestType0",{enumerable:!0,get:function(){return Ie.RequestType0}});Object.defineProperty(G,"RequestType1",{enumerable:!0,get:function(){return Ie.RequestType1}});Object.defineProperty(G,"RequestType2",{enumerable:!0,get:function(){return Ie.RequestType2}});Object.defineProperty(G,"RequestType3",{enumerable:!0,get:function(){return Ie.RequestType3}});Object.defineProperty(G,"RequestType4",{enumerable:!0,get:function(){return Ie.RequestType4}});Object.defineProperty(G,"RequestType5",{enumerable:!0,get:function(){return Ie.RequestType5}});Object.defineProperty(G,"RequestType6",{enumerable:!0,get:function(){return Ie.RequestType6}});Object.defineProperty(G,"RequestType7",{enumerable:!0,get:function(){return Ie.RequestType7}});Object.defineProperty(G,"RequestType8",{enumerable:!0,get:function(){return Ie.RequestType8}});Object.defineProperty(G,"RequestType9",{enumerable:!0,get:function(){return Ie.RequestType9}});Object.defineProperty(G,"ResponseError",{enumerable:!0,get:function(){return Ie.ResponseError}});Object.defineProperty(G,"ErrorCodes",{enumerable:!0,get:function(){return Ie.ErrorCodes}});Object.defineProperty(G,"NotificationType",{enumerable:!0,get:function(){return Ie.NotificationType}});Object.defineProperty(G,"NotificationType0",{enumerable:!0,get:function(){return Ie.NotificationType0}});Object.defineProperty(G,"NotificationType1",{enumerable:!0,get:function(){return Ie.NotificationType1}});Object.defineProperty(G,"NotificationType2",{enumerable:!0,get:function(){return Ie.NotificationType2}});Object.defineProperty(G,"NotificationType3",{enumerable:!0,get:function(){return Ie.NotificationType3}});Object.defineProperty(G,"NotificationType4",{enumerable:!0,get:function(){return Ie.NotificationType4}});Object.defineProperty(G,"NotificationType5",{enumerable:!0,get:function(){return Ie.NotificationType5}});Object.defineProperty(G,"NotificationType6",{enumerable:!0,get:function(){return Ie.NotificationType6}});Object.defineProperty(G,"NotificationType7",{enumerable:!0,get:function(){return Ie.NotificationType7}});Object.defineProperty(G,"NotificationType8",{enumerable:!0,get:function(){return Ie.NotificationType8}});Object.defineProperty(G,"NotificationType9",{enumerable:!0,get:function(){return Ie.NotificationType9}});Object.defineProperty(G,"ParameterStructures",{enumerable:!0,get:function(){return Ie.ParameterStructures}});var Oy=Ms();Object.defineProperty(G,"Disposable",{enumerable:!0,get:function(){return Oy.Disposable}});var Eh=Ir();Object.defineProperty(G,"Event",{enumerable:!0,get:function(){return Eh.Event}});Object.defineProperty(G,"Emitter",{enumerable:!0,get:function(){return Eh.Emitter}});var Ah=Os();Object.defineProperty(G,"CancellationTokenSource",{enumerable:!0,get:function(){return Ah.CancellationTokenSource}});Object.defineProperty(G,"CancellationToken",{enumerable:!0,get:function(){return Ah.CancellationToken}});var Qs=ph();Object.defineProperty(G,"MessageReader",{enumerable:!0,get:function(){return Qs.MessageReader}});Object.defineProperty(G,"AbstractMessageReader",{enumerable:!0,get:function(){return Qs.AbstractMessageReader}});Object.defineProperty(G,"ReadableStreamMessageReader",{enumerable:!0,get:function(){return Qs.ReadableStreamMessageReader}});var Zs=wh();Object.defineProperty(G,"MessageWriter",{enumerable:!0,get:function(){return Zs.MessageWriter}});Object.defineProperty(G,"AbstractMessageWriter",{enumerable:!0,get:function(){return Zs.AbstractMessageWriter}});Object.defineProperty(G,"WriteableStreamMessageWriter",{enumerable:!0,get:function(){return Zs.WriteableStreamMessageWriter}});var Lt=Rh();Object.defineProperty(G,"ConnectionStrategy",{enumerable:!0,get:function(){return Lt.ConnectionStrategy}});Object.defineProperty(G,"ConnectionOptions",{enumerable:!0,get:function(){return Lt.ConnectionOptions}});Object.defineProperty(G,"NullLogger",{enumerable:!0,get:function(){return Lt.NullLogger}});Object.defineProperty(G,"createMessageConnection",{enumerable:!0,get:function(){return Lt.createMessageConnection}});Object.defineProperty(G,"ProgressType",{enumerable:!0,get:function(){return Lt.ProgressType}});Object.defineProperty(G,"Trace",{enumerable:!0,get:function(){return Lt.Trace}});Object.defineProperty(G,"TraceFormat",{enumerable:!0,get:function(){return Lt.TraceFormat}});Object.defineProperty(G,"SetTraceNotification",{enumerable:!0,get:function(){return Lt.SetTraceNotification}});Object.defineProperty(G,"LogTraceNotification",{enumerable:!0,get:function(){return Lt.LogTraceNotification}});Object.defineProperty(G,"ConnectionErrors",{enumerable:!0,get:function(){return Lt.ConnectionErrors}});Object.defineProperty(G,"ConnectionError",{enumerable:!0,get:function(){return Lt.ConnectionError}});Object.defineProperty(G,"CancellationReceiverStrategy",{enumerable:!0,get:function(){return Lt.CancellationReceiverStrategy}});Object.defineProperty(G,"CancellationSenderStrategy",{enumerable:!0,get:function(){return Lt.CancellationSenderStrategy}});Object.defineProperty(G,"CancellationStrategy",{enumerable:!0,get:function(){return Lt.CancellationStrategy}});var qy=kn();G.RAL=qy.default});var qr=se(Ee=>{"use strict";var Uy=Ee&&Ee.__createBinding||(Object.create?function(t,e,n,r){r===void 0&&(r=n),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,r){r===void 0&&(r=n),t[r]=e[n]}),Hy=Ee&&Ee.__exportStar||function(t,e){for(var n in t)n!=="default"&&!Object.prototype.hasOwnProperty.call(e,n)&&Uy(e,t,n)};Object.defineProperty(Ee,"__esModule",{value:!0});Ee.createMessageConnection=Ee.createServerSocketTransport=Ee.createClientSocketTransport=Ee.createServerPipeTransport=Ee.createClientPipeTransport=Ee.generateRandomPipeName=Ee.StreamMessageWriter=Ee.StreamMessageReader=Ee.SocketMessageWriter=Ee.SocketMessageReader=Ee.IPCMessageWriter=Ee.IPCMessageReader=void 0;var Nr=Nu();Nr.default.install();var fn=el(),Fh=require("path"),jy=require("os"),By=require("crypto"),Ko=require("net");Hy(el(),Ee);var Mh=class extends fn.AbstractMessageReader{constructor(e){super();this.process=e;let n=this.process;n.on("error",r=>this.fireError(r)),n.on("close",()=>this.fireClose())}listen(e){return this.process.on("message",e),fn.Disposable.create(()=>this.process.off("message",e))}};Ee.IPCMessageReader=Mh;var Ph=class extends fn.AbstractMessageWriter{constructor(e){super();this.process=e,this.errorCount=0;let n=this.process;n.on("error",r=>this.fireError(r)),n.on("close",()=>this.fireClose)}write(e){try{return typeof this.process.send=="function"&&this.process.send(e,void 0,void 0,n=>{n?(this.errorCount++,this.handleError(n,e)):this.errorCount=0}),Promise.resolve()}catch(n){return this.handleError(n,e),Promise.reject(n)}}handleError(e,n){this.errorCount++,this.fireError(e,n,this.errorCount)}end(){}};Ee.IPCMessageWriter=Ph;var Wr=class extends fn.ReadableStreamMessageReader{constructor(e,n="utf-8"){super(Nr.default().stream.asReadableStream(e),n)}};Ee.SocketMessageReader=Wr;var Or=class extends fn.WriteableStreamMessageWriter{constructor(e,n){super(Nr.default().stream.asWritableStream(e),n);this.socket=e}dispose(){super.dispose(),this.socket.destroy()}};Ee.SocketMessageWriter=Or;var tl=class extends fn.ReadableStreamMessageReader{constructor(e,n){super(Nr.default().stream.asReadableStream(e),n)}};Ee.StreamMessageReader=tl;var nl=class extends fn.WriteableStreamMessageWriter{constructor(e,n){super(Nr.default().stream.asWritableStream(e),n)}};Ee.StreamMessageWriter=nl;var zh=process.env.XDG_RUNTIME_DIR,Vy=new Map([["linux",107],["darwin",103]]);function $y(){let t=By.randomBytes(21).toString("hex");if(process.platform==="win32")return`\\\\.\\pipe\\vscode-jsonrpc-${t}-sock`;let e;zh?e=Fh.join(zh,`vscode-ipc-${t}.sock`):e=Fh.join(jy.tmpdir(),`vscode-${t}.sock`);let n=Vy.get(process.platform);return n!==void 0&&e.length>=n&&Nr.default().console.warn(`WARNING: IPC handle "${e}" is longer than ${n} characters.`),e}Ee.generateRandomPipeName=$y;function Gy(t,e="utf-8"){let n,r=new Promise((i,o)=>{n=i});return new Promise((i,o)=>{let a=Ko.createServer(s=>{a.close(),n([new Wr(s,e),new Or(s,e)])});a.on("error",o),a.listen(t,()=>{a.removeListener("error",o),i({onConnected:()=>r})})})}Ee.createClientPipeTransport=Gy;function Ky(t,e="utf-8"){let n=Ko.createConnection(t);return[new Wr(n,e),new Or(n,e)]}Ee.createServerPipeTransport=Ky;function Jy(t,e="utf-8"){let n,r=new Promise((i,o)=>{n=i});return new Promise((i,o)=>{let a=Ko.createServer(s=>{a.close(),n([new Wr(s,e),new Or(s,e)])});a.on("error",o),a.listen(t,"127.0.0.1",()=>{a.removeListener("error",o),i({onConnected:()=>r})})})}Ee.createClientSocketTransport=Jy;function Xy(t,e="utf-8"){let n=Ko.createConnection(t,"127.0.0.1");return[new Wr(n,e),new Or(n,e)]}Ee.createServerSocketTransport=Xy;function Yy(t){let e=t;return e.read!==void 0&&e.addListener!==void 0}function Qy(t){let e=t;return e.write!==void 0&&e.addListener!==void 0}function Zy(t,e,n,r){n||(n=fn.NullLogger);let i=Yy(t)?new tl(t):t,o=Qy(e)?new nl(e):e;return fn.ConnectionStrategy.is(r)&&(r={connectionStrategy:r}),fn.createMessageConnection(i,o,n,r)}Ee.createMessageConnection=Zy});var rl=se((bT,Ih)=>{"use strict";Ih.exports=qr()});var Nh={};Cu(Nh,{AnnotatedTextEdit:()=>En,ChangeAnnotation:()=>yr,ChangeAnnotationIdentifier:()=>pt,CodeAction:()=>zl,CodeActionContext:()=>Pl,CodeActionKind:()=>Ml,CodeDescription:()=>hl,CodeLens:()=>Il,Color:()=>Xo,ColorInformation:()=>al,ColorPresentation:()=>sl,Command:()=>Ur,CompletionItem:()=>xl,CompletionItemKind:()=>gl,CompletionItemTag:()=>vl,CompletionList:()=>Sl,CreateFile:()=>Hr,DeleteFile:()=>Br,Diagnostic:()=>qi,DiagnosticRelatedInformation:()=>Yo,DiagnosticSeverity:()=>dl,DiagnosticTag:()=>ul,DocumentHighlight:()=>Dl,DocumentHighlightKind:()=>Tl,DocumentLink:()=>Nl,DocumentSymbol:()=>Fl,EOL:()=>tw,FoldingRange:()=>cl,FoldingRangeKind:()=>ll,FormattingOptions:()=>Ll,Hover:()=>_l,InsertReplaceEdit:()=>yl,InsertTextFormat:()=>bl,InsertTextMode:()=>wl,Location:()=>Jo,LocationLink:()=>ol,MarkedString:()=>ji,MarkupContent:()=>ea,MarkupKind:()=>Vr,OptionalVersionedTextDocumentIdentifier:()=>Hi,ParameterInformation:()=>kl,Position:()=>nn,Range:()=>lt,RenameFile:()=>jr,SelectionRange:()=>Wl,SignatureInformation:()=>Cl,SymbolInformation:()=>Al,SymbolKind:()=>Rl,SymbolTag:()=>El,TextDocument:()=>Ol,TextDocumentEdit:()=>Ui,TextDocumentIdentifier:()=>pl,TextDocumentItem:()=>fl,TextEdit:()=>Rn,VersionedTextDocumentIdentifier:()=>ml,WorkspaceChange:()=>ew,WorkspaceEdit:()=>Qo,integer:()=>il,uinteger:()=>Oi});var il,Oi,nn,lt,Jo,ol,Xo,al,sl,ll,cl,Yo,dl,ul,hl,qi,Ur,Rn,yr,pt,En,Ui,Hr,jr,Br,Qo,Zo,Lh,ew,pl,ml,Hi,fl,Vr,ea,gl,bl,vl,yl,wl,xl,Sl,ji,_l,kl,Cl,Tl,Dl,Rl,El,Al,Fl,Ml,Pl,zl,Il,Ll,Nl,Wl,tw,Ol,nw,N,Wh=X(()=>{"use strict";(function(t){t.MIN_VALUE=-2147483648,t.MAX_VALUE=2147483647})(il||(il={}));(function(t){t.MIN_VALUE=0,t.MAX_VALUE=2147483647})(Oi||(Oi={}));(function(t){function e(r,i){return r===Number.MAX_VALUE&&(r=Oi.MAX_VALUE),i===Number.MAX_VALUE&&(i=Oi.MAX_VALUE),{line:r,character:i}}t.create=e;function n(r){var i=r;return N.objectLiteral(i)&&N.uinteger(i.line)&&N.uinteger(i.character)}t.is=n})(nn||(nn={}));(function(t){function e(r,i,o,a){if(N.uinteger(r)&&N.uinteger(i)&&N.uinteger(o)&&N.uinteger(a))return{start:nn.create(r,i),end:nn.create(o,a)};if(nn.is(r)&&nn.is(i))return{start:r,end:i};throw new Error("Range#create called with invalid arguments["+r+", "+i+", "+o+", "+a+"]")}t.create=e;function n(r){var i=r;return N.objectLiteral(i)&&nn.is(i.start)&&nn.is(i.end)}t.is=n})(lt||(lt={}));(function(t){function e(r,i){return{uri:r,range:i}}t.create=e;function n(r){var i=r;return N.defined(i)&<.is(i.range)&&(N.string(i.uri)||N.undefined(i.uri))}t.is=n})(Jo||(Jo={}));(function(t){function e(r,i,o,a){return{targetUri:r,targetRange:i,targetSelectionRange:o,originSelectionRange:a}}t.create=e;function n(r){var i=r;return N.defined(i)&<.is(i.targetRange)&&N.string(i.targetUri)&&(lt.is(i.targetSelectionRange)||N.undefined(i.targetSelectionRange))&&(lt.is(i.originSelectionRange)||N.undefined(i.originSelectionRange))}t.is=n})(ol||(ol={}));(function(t){function e(r,i,o,a){return{red:r,green:i,blue:o,alpha:a}}t.create=e;function n(r){var i=r;return N.numberRange(i.red,0,1)&&N.numberRange(i.green,0,1)&&N.numberRange(i.blue,0,1)&&N.numberRange(i.alpha,0,1)}t.is=n})(Xo||(Xo={}));(function(t){function e(r,i){return{range:r,color:i}}t.create=e;function n(r){var i=r;return lt.is(i.range)&&Xo.is(i.color)}t.is=n})(al||(al={}));(function(t){function e(r,i,o){return{label:r,textEdit:i,additionalTextEdits:o}}t.create=e;function n(r){var i=r;return N.string(i.label)&&(N.undefined(i.textEdit)||Rn.is(i))&&(N.undefined(i.additionalTextEdits)||N.typedArray(i.additionalTextEdits,Rn.is))}t.is=n})(sl||(sl={}));(function(t){t.Comment="comment",t.Imports="imports",t.Region="region"})(ll||(ll={}));(function(t){function e(r,i,o,a,s){var l={startLine:r,endLine:i};return N.defined(o)&&(l.startCharacter=o),N.defined(a)&&(l.endCharacter=a),N.defined(s)&&(l.kind=s),l}t.create=e;function n(r){var i=r;return N.uinteger(i.startLine)&&N.uinteger(i.startLine)&&(N.undefined(i.startCharacter)||N.uinteger(i.startCharacter))&&(N.undefined(i.endCharacter)||N.uinteger(i.endCharacter))&&(N.undefined(i.kind)||N.string(i.kind))}t.is=n})(cl||(cl={}));(function(t){function e(r,i){return{location:r,message:i}}t.create=e;function n(r){var i=r;return N.defined(i)&&Jo.is(i.location)&&N.string(i.message)}t.is=n})(Yo||(Yo={}));(function(t){t.Error=1,t.Warning=2,t.Information=3,t.Hint=4})(dl||(dl={}));(function(t){t.Unnecessary=1,t.Deprecated=2})(ul||(ul={}));(function(t){function e(n){var r=n;return r!=null&&N.string(r.href)}t.is=e})(hl||(hl={}));(function(t){function e(r,i,o,a,s,l){var c={range:r,message:i};return N.defined(o)&&(c.severity=o),N.defined(a)&&(c.code=a),N.defined(s)&&(c.source=s),N.defined(l)&&(c.relatedInformation=l),c}t.create=e;function n(r){var i,o=r;return N.defined(o)&<.is(o.range)&&N.string(o.message)&&(N.number(o.severity)||N.undefined(o.severity))&&(N.integer(o.code)||N.string(o.code)||N.undefined(o.code))&&(N.undefined(o.codeDescription)||N.string((i=o.codeDescription)===null||i===void 0?void 0:i.href))&&(N.string(o.source)||N.undefined(o.source))&&(N.undefined(o.relatedInformation)||N.typedArray(o.relatedInformation,Yo.is))}t.is=n})(qi||(qi={}));(function(t){function e(r,i){for(var o=[],a=2;a0&&(s.arguments=o),s}t.create=e;function n(r){var i=r;return N.defined(i)&&N.string(i.title)&&N.string(i.command)}t.is=n})(Ur||(Ur={}));(function(t){function e(o,a){return{range:o,newText:a}}t.replace=e;function n(o,a){return{range:{start:o,end:o},newText:a}}t.insert=n;function r(o){return{range:o,newText:""}}t.del=r;function i(o){var a=o;return N.objectLiteral(a)&&N.string(a.newText)&<.is(a.range)}t.is=i})(Rn||(Rn={}));(function(t){function e(r,i,o){var a={label:r};return i!==void 0&&(a.needsConfirmation=i),o!==void 0&&(a.description=o),a}t.create=e;function n(r){var i=r;return i!==void 0&&N.objectLiteral(i)&&N.string(i.label)&&(N.boolean(i.needsConfirmation)||i.needsConfirmation===void 0)&&(N.string(i.description)||i.description===void 0)}t.is=n})(yr||(yr={}));(function(t){function e(n){var r=n;return typeof r=="string"}t.is=e})(pt||(pt={}));(function(t){function e(o,a,s){return{range:o,newText:a,annotationId:s}}t.replace=e;function n(o,a,s){return{range:{start:o,end:o},newText:a,annotationId:s}}t.insert=n;function r(o,a){return{range:o,newText:"",annotationId:a}}t.del=r;function i(o){var a=o;return Rn.is(a)&&(yr.is(a.annotationId)||pt.is(a.annotationId))}t.is=i})(En||(En={}));(function(t){function e(r,i){return{textDocument:r,edits:i}}t.create=e;function n(r){var i=r;return N.defined(i)&&Hi.is(i.textDocument)&&Array.isArray(i.edits)}t.is=n})(Ui||(Ui={}));(function(t){function e(r,i,o){var a={kind:"create",uri:r};return i!==void 0&&(i.overwrite!==void 0||i.ignoreIfExists!==void 0)&&(a.options=i),o!==void 0&&(a.annotationId=o),a}t.create=e;function n(r){var i=r;return i&&i.kind==="create"&&N.string(i.uri)&&(i.options===void 0||(i.options.overwrite===void 0||N.boolean(i.options.overwrite))&&(i.options.ignoreIfExists===void 0||N.boolean(i.options.ignoreIfExists)))&&(i.annotationId===void 0||pt.is(i.annotationId))}t.is=n})(Hr||(Hr={}));(function(t){function e(r,i,o,a){var s={kind:"rename",oldUri:r,newUri:i};return o!==void 0&&(o.overwrite!==void 0||o.ignoreIfExists!==void 0)&&(s.options=o),a!==void 0&&(s.annotationId=a),s}t.create=e;function n(r){var i=r;return i&&i.kind==="rename"&&N.string(i.oldUri)&&N.string(i.newUri)&&(i.options===void 0||(i.options.overwrite===void 0||N.boolean(i.options.overwrite))&&(i.options.ignoreIfExists===void 0||N.boolean(i.options.ignoreIfExists)))&&(i.annotationId===void 0||pt.is(i.annotationId))}t.is=n})(jr||(jr={}));(function(t){function e(r,i,o){var a={kind:"delete",uri:r};return i!==void 0&&(i.recursive!==void 0||i.ignoreIfNotExists!==void 0)&&(a.options=i),o!==void 0&&(a.annotationId=o),a}t.create=e;function n(r){var i=r;return i&&i.kind==="delete"&&N.string(i.uri)&&(i.options===void 0||(i.options.recursive===void 0||N.boolean(i.options.recursive))&&(i.options.ignoreIfNotExists===void 0||N.boolean(i.options.ignoreIfNotExists)))&&(i.annotationId===void 0||pt.is(i.annotationId))}t.is=n})(Br||(Br={}));(function(t){function e(n){var r=n;return r&&(r.changes!==void 0||r.documentChanges!==void 0)&&(r.documentChanges===void 0||r.documentChanges.every(function(i){return N.string(i.kind)?Hr.is(i)||jr.is(i)||Br.is(i):Ui.is(i)}))}t.is=e})(Qo||(Qo={}));Zo=function(){function t(e,n){this.edits=e,this.changeAnnotations=n}return t.prototype.insert=function(e,n,r){var i,o;if(r===void 0?i=Rn.insert(e,n):pt.is(r)?(o=r,i=En.insert(e,n,r)):(this.assertChangeAnnotations(this.changeAnnotations),o=this.changeAnnotations.manage(r),i=En.insert(e,n,o)),this.edits.push(i),o!==void 0)return o},t.prototype.replace=function(e,n,r){var i,o;if(r===void 0?i=Rn.replace(e,n):pt.is(r)?(o=r,i=En.replace(e,n,r)):(this.assertChangeAnnotations(this.changeAnnotations),o=this.changeAnnotations.manage(r),i=En.replace(e,n,o)),this.edits.push(i),o!==void 0)return o},t.prototype.delete=function(e,n){var r,i;if(n===void 0?r=Rn.del(e):pt.is(n)?(i=n,r=En.del(e,n)):(this.assertChangeAnnotations(this.changeAnnotations),i=this.changeAnnotations.manage(n),r=En.del(e,i)),this.edits.push(r),i!==void 0)return i},t.prototype.add=function(e){this.edits.push(e)},t.prototype.all=function(){return this.edits},t.prototype.clear=function(){this.edits.splice(0,this.edits.length)},t.prototype.assertChangeAnnotations=function(e){if(e===void 0)throw new Error("Text edit change is not configured to manage change annotations.")},t}(),Lh=function(){function t(e){this._annotations=e===void 0?Object.create(null):e,this._counter=0,this._size=0}return t.prototype.all=function(){return this._annotations},Object.defineProperty(t.prototype,"size",{get:function(){return this._size},enumerable:!1,configurable:!0}),t.prototype.manage=function(e,n){var r;if(pt.is(e)?r=e:(r=this.nextId(),n=e),this._annotations[r]!==void 0)throw new Error("Id "+r+" is already in use.");if(n===void 0)throw new Error("No annotation provided for id "+r);return this._annotations[r]=n,this._size++,r},t.prototype.nextId=function(){return this._counter++,this._counter.toString()},t}(),ew=function(){function t(e){var n=this;this._textEditChanges=Object.create(null),e!==void 0?(this._workspaceEdit=e,e.documentChanges?(this._changeAnnotations=new Lh(e.changeAnnotations),e.changeAnnotations=this._changeAnnotations.all(),e.documentChanges.forEach(function(r){if(Ui.is(r)){var i=new Zo(r.edits,n._changeAnnotations);n._textEditChanges[r.textDocument.uri]=i}})):e.changes&&Object.keys(e.changes).forEach(function(r){var i=new Zo(e.changes[r]);n._textEditChanges[r]=i})):this._workspaceEdit={}}return Object.defineProperty(t.prototype,"edit",{get:function(){return this.initDocumentChanges(),this._changeAnnotations!==void 0&&(this._changeAnnotations.size===0?this._workspaceEdit.changeAnnotations=void 0:this._workspaceEdit.changeAnnotations=this._changeAnnotations.all()),this._workspaceEdit},enumerable:!1,configurable:!0}),t.prototype.getTextEditChange=function(e){if(Hi.is(e)){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var n={uri:e.uri,version:e.version},r=this._textEditChanges[n.uri];if(!r){var i=[],o={textDocument:n,edits:i};this._workspaceEdit.documentChanges.push(o),r=new Zo(i,this._changeAnnotations),this._textEditChanges[n.uri]=r}return r}else{if(this.initChanges(),this._workspaceEdit.changes===void 0)throw new Error("Workspace edit is not configured for normal text edit changes.");var r=this._textEditChanges[e];if(!r){var i=[];this._workspaceEdit.changes[e]=i,r=new Zo(i),this._textEditChanges[e]=r}return r}},t.prototype.initDocumentChanges=function(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._changeAnnotations=new Lh,this._workspaceEdit.documentChanges=[],this._workspaceEdit.changeAnnotations=this._changeAnnotations.all())},t.prototype.initChanges=function(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._workspaceEdit.changes=Object.create(null))},t.prototype.createFile=function(e,n,r){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var i;yr.is(n)||pt.is(n)?i=n:r=n;var o,a;if(i===void 0?o=Hr.create(e,r):(a=pt.is(i)?i:this._changeAnnotations.manage(i),o=Hr.create(e,r,a)),this._workspaceEdit.documentChanges.push(o),a!==void 0)return a},t.prototype.renameFile=function(e,n,r,i){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var o;yr.is(r)||pt.is(r)?o=r:i=r;var a,s;if(o===void 0?a=jr.create(e,n,i):(s=pt.is(o)?o:this._changeAnnotations.manage(o),a=jr.create(e,n,i,s)),this._workspaceEdit.documentChanges.push(a),s!==void 0)return s},t.prototype.deleteFile=function(e,n,r){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var i;yr.is(n)||pt.is(n)?i=n:r=n;var o,a;if(i===void 0?o=Br.create(e,r):(a=pt.is(i)?i:this._changeAnnotations.manage(i),o=Br.create(e,r,a)),this._workspaceEdit.documentChanges.push(o),a!==void 0)return a},t}();(function(t){function e(r){return{uri:r}}t.create=e;function n(r){var i=r;return N.defined(i)&&N.string(i.uri)}t.is=n})(pl||(pl={}));(function(t){function e(r,i){return{uri:r,version:i}}t.create=e;function n(r){var i=r;return N.defined(i)&&N.string(i.uri)&&N.integer(i.version)}t.is=n})(ml||(ml={}));(function(t){function e(r,i){return{uri:r,version:i}}t.create=e;function n(r){var i=r;return N.defined(i)&&N.string(i.uri)&&(i.version===null||N.integer(i.version))}t.is=n})(Hi||(Hi={}));(function(t){function e(r,i,o,a){return{uri:r,languageId:i,version:o,text:a}}t.create=e;function n(r){var i=r;return N.defined(i)&&N.string(i.uri)&&N.string(i.languageId)&&N.integer(i.version)&&N.string(i.text)}t.is=n})(fl||(fl={}));(function(t){t.PlainText="plaintext",t.Markdown="markdown"})(Vr||(Vr={}));(function(t){function e(n){var r=n;return r===t.PlainText||r===t.Markdown}t.is=e})(Vr||(Vr={}));(function(t){function e(n){var r=n;return N.objectLiteral(n)&&Vr.is(r.kind)&&N.string(r.value)}t.is=e})(ea||(ea={}));(function(t){t.Text=1,t.Method=2,t.Function=3,t.Constructor=4,t.Field=5,t.Variable=6,t.Class=7,t.Interface=8,t.Module=9,t.Property=10,t.Unit=11,t.Value=12,t.Enum=13,t.Keyword=14,t.Snippet=15,t.Color=16,t.File=17,t.Reference=18,t.Folder=19,t.EnumMember=20,t.Constant=21,t.Struct=22,t.Event=23,t.Operator=24,t.TypeParameter=25})(gl||(gl={}));(function(t){t.PlainText=1,t.Snippet=2})(bl||(bl={}));(function(t){t.Deprecated=1})(vl||(vl={}));(function(t){function e(r,i,o){return{newText:r,insert:i,replace:o}}t.create=e;function n(r){var i=r;return i&&N.string(i.newText)&<.is(i.insert)&<.is(i.replace)}t.is=n})(yl||(yl={}));(function(t){t.asIs=1,t.adjustIndentation=2})(wl||(wl={}));(function(t){function e(n){return{label:n}}t.create=e})(xl||(xl={}));(function(t){function e(n,r){return{items:n||[],isIncomplete:!!r}}t.create=e})(Sl||(Sl={}));(function(t){function e(r){return r.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}t.fromPlainText=e;function n(r){var i=r;return N.string(i)||N.objectLiteral(i)&&N.string(i.language)&&N.string(i.value)}t.is=n})(ji||(ji={}));(function(t){function e(n){var r=n;return!!r&&N.objectLiteral(r)&&(ea.is(r.contents)||ji.is(r.contents)||N.typedArray(r.contents,ji.is))&&(n.range===void 0||lt.is(n.range))}t.is=e})(_l||(_l={}));(function(t){function e(n,r){return r?{label:n,documentation:r}:{label:n}}t.create=e})(kl||(kl={}));(function(t){function e(n,r){for(var i=[],o=2;o=0;d--){var u=l[d],h=o.offsetAt(u.range.start),p=o.offsetAt(u.range.end);if(p<=c)s=s.substring(0,h)+u.newText+s.substring(p,s.length);else throw new Error("Overlapping edit");c=h}return s}t.applyEdits=r;function i(o,a){if(o.length<=1)return o;var s=o.length/2|0,l=o.slice(0,s),c=o.slice(s);i(l,a),i(c,a);for(var d=0,u=0,h=0;d0&&e.push(n.length),this._lineOffsets=e}return this._lineOffsets},t.prototype.positionAt=function(e){e=Math.max(Math.min(e,this._content.length),0);var n=this.getLineOffsets(),r=0,i=n.length;if(i===0)return nn.create(0,e);for(;re?i=o:r=o+1}var a=r-1;return nn.create(a,e-n[a])},t.prototype.offsetAt=function(e){var n=this.getLineOffsets();if(e.line>=n.length)return this._content.length;if(e.line<0)return 0;var r=n[e.line],i=e.line+1{"use strict";Object.defineProperty(Kt,"__esModule",{value:!0});Kt.ProtocolNotificationType=Kt.ProtocolNotificationType0=Kt.ProtocolRequestType=Kt.ProtocolRequestType0=Kt.RegistrationType=void 0;var $r=qr(),Oh=class{constructor(e){this.method=e}};Kt.RegistrationType=Oh;var qh=class extends $r.RequestType0{constructor(e){super(e)}};Kt.ProtocolRequestType0=qh;var Uh=class extends $r.RequestType{constructor(e){super(e,$r.ParameterStructures.byName)}};Kt.ProtocolRequestType=Uh;var Hh=class extends $r.NotificationType0{constructor(e){super(e)}};Kt.ProtocolNotificationType0=Hh;var jh=class extends $r.NotificationType{constructor(e){super(e,$r.ParameterStructures.byName)}};Kt.ProtocolNotificationType=jh});var $h=se(et=>{"use strict";Object.defineProperty(et,"__esModule",{value:!0});et.objectLiteral=et.typedArray=et.stringArray=et.array=et.func=et.error=et.number=et.string=et.boolean=void 0;function rw(t){return t===!0||t===!1}et.boolean=rw;function Bh(t){return typeof t=="string"||t instanceof String}et.string=Bh;function iw(t){return typeof t=="number"||t instanceof Number}et.number=iw;function ow(t){return t instanceof Error}et.error=ow;function aw(t){return typeof t=="function"}et.func=aw;function Vh(t){return Array.isArray(t)}et.array=Vh;function sw(t){return Vh(t)&&t.every(e=>Bh(e))}et.stringArray=sw;function lw(t,e){return Array.isArray(t)&&t.every(e)}et.typedArray=lw;function cw(t){return t!==null&&typeof t=="object"}et.objectLiteral=cw});var Gh=se(Bi=>{"use strict";Object.defineProperty(Bi,"__esModule",{value:!0});Bi.ImplementationRequest=void 0;var dw=ct(),uw;(function(t){t.method="textDocument/implementation",t.type=new dw.ProtocolRequestType(t.method)})(uw=Bi.ImplementationRequest||(Bi.ImplementationRequest={}))});var Kh=se(Vi=>{"use strict";Object.defineProperty(Vi,"__esModule",{value:!0});Vi.TypeDefinitionRequest=void 0;var hw=ct(),pw;(function(t){t.method="textDocument/typeDefinition",t.type=new hw.ProtocolRequestType(t.method)})(pw=Vi.TypeDefinitionRequest||(Vi.TypeDefinitionRequest={}))});var Xh=se(Kn=>{"use strict";Object.defineProperty(Kn,"__esModule",{value:!0});Kn.DidChangeWorkspaceFoldersNotification=Kn.WorkspaceFoldersRequest=void 0;var Jh=ct(),mw;(function(t){t.type=new Jh.ProtocolRequestType0("workspace/workspaceFolders")})(mw=Kn.WorkspaceFoldersRequest||(Kn.WorkspaceFoldersRequest={}));var fw;(function(t){t.type=new Jh.ProtocolNotificationType("workspace/didChangeWorkspaceFolders")})(fw=Kn.DidChangeWorkspaceFoldersNotification||(Kn.DidChangeWorkspaceFoldersNotification={}))});var Yh=se($i=>{"use strict";Object.defineProperty($i,"__esModule",{value:!0});$i.ConfigurationRequest=void 0;var gw=ct(),bw;(function(t){t.type=new gw.ProtocolRequestType("workspace/configuration")})(bw=$i.ConfigurationRequest||($i.ConfigurationRequest={}))});var Zh=se(Jn=>{"use strict";Object.defineProperty(Jn,"__esModule",{value:!0});Jn.ColorPresentationRequest=Jn.DocumentColorRequest=void 0;var Qh=ct(),vw;(function(t){t.method="textDocument/documentColor",t.type=new Qh.ProtocolRequestType(t.method)})(vw=Jn.DocumentColorRequest||(Jn.DocumentColorRequest={}));var yw;(function(t){t.type=new Qh.ProtocolRequestType("textDocument/colorPresentation")})(yw=Jn.ColorPresentationRequest||(Jn.ColorPresentationRequest={}))});var ep=se(Xn=>{"use strict";Object.defineProperty(Xn,"__esModule",{value:!0});Xn.FoldingRangeRequest=Xn.FoldingRangeKind=void 0;var ww=ct(),xw;(function(t){t.Comment="comment",t.Imports="imports",t.Region="region"})(xw=Xn.FoldingRangeKind||(Xn.FoldingRangeKind={}));var Sw;(function(t){t.method="textDocument/foldingRange",t.type=new ww.ProtocolRequestType(t.method)})(Sw=Xn.FoldingRangeRequest||(Xn.FoldingRangeRequest={}))});var tp=se(Gi=>{"use strict";Object.defineProperty(Gi,"__esModule",{value:!0});Gi.DeclarationRequest=void 0;var _w=ct(),kw;(function(t){t.method="textDocument/declaration",t.type=new _w.ProtocolRequestType(t.method)})(kw=Gi.DeclarationRequest||(Gi.DeclarationRequest={}))});var np=se(Ki=>{"use strict";Object.defineProperty(Ki,"__esModule",{value:!0});Ki.SelectionRangeRequest=void 0;var Cw=ct(),Tw;(function(t){t.method="textDocument/selectionRange",t.type=new Cw.ProtocolRequestType(t.method)})(Tw=Ki.SelectionRangeRequest||(Ki.SelectionRangeRequest={}))});var ip=se(rn=>{"use strict";Object.defineProperty(rn,"__esModule",{value:!0});rn.WorkDoneProgressCancelNotification=rn.WorkDoneProgressCreateRequest=rn.WorkDoneProgress=void 0;var Dw=qr(),rp=ct(),Rw;(function(t){t.type=new Dw.ProgressType;function e(n){return n===t.type}t.is=e})(Rw=rn.WorkDoneProgress||(rn.WorkDoneProgress={}));var Ew;(function(t){t.type=new rp.ProtocolRequestType("window/workDoneProgress/create")})(Ew=rn.WorkDoneProgressCreateRequest||(rn.WorkDoneProgressCreateRequest={}));var Aw;(function(t){t.type=new rp.ProtocolNotificationType("window/workDoneProgress/cancel")})(Aw=rn.WorkDoneProgressCancelNotification||(rn.WorkDoneProgressCancelNotification={}))});var op=se(on=>{"use strict";Object.defineProperty(on,"__esModule",{value:!0});on.CallHierarchyOutgoingCallsRequest=on.CallHierarchyIncomingCallsRequest=on.CallHierarchyPrepareRequest=void 0;var ql=ct(),Fw;(function(t){t.method="textDocument/prepareCallHierarchy",t.type=new ql.ProtocolRequestType(t.method)})(Fw=on.CallHierarchyPrepareRequest||(on.CallHierarchyPrepareRequest={}));var Mw;(function(t){t.method="callHierarchy/incomingCalls",t.type=new ql.ProtocolRequestType(t.method)})(Mw=on.CallHierarchyIncomingCallsRequest||(on.CallHierarchyIncomingCallsRequest={}));var Pw;(function(t){t.method="callHierarchy/outgoingCalls",t.type=new ql.ProtocolRequestType(t.method)})(Pw=on.CallHierarchyOutgoingCallsRequest||(on.CallHierarchyOutgoingCallsRequest={}))});var ap=se(Pe=>{"use strict";Object.defineProperty(Pe,"__esModule",{value:!0});Pe.SemanticTokensRefreshRequest=Pe.SemanticTokensRangeRequest=Pe.SemanticTokensDeltaRequest=Pe.SemanticTokensRequest=Pe.SemanticTokensRegistrationType=Pe.TokenFormat=Pe.SemanticTokens=Pe.SemanticTokenModifiers=Pe.SemanticTokenTypes=void 0;var Ji=ct(),zw;(function(t){t.namespace="namespace",t.type="type",t.class="class",t.enum="enum",t.interface="interface",t.struct="struct",t.typeParameter="typeParameter",t.parameter="parameter",t.variable="variable",t.property="property",t.enumMember="enumMember",t.event="event",t.function="function",t.method="method",t.macro="macro",t.keyword="keyword",t.modifier="modifier",t.comment="comment",t.string="string",t.number="number",t.regexp="regexp",t.operator="operator"})(zw=Pe.SemanticTokenTypes||(Pe.SemanticTokenTypes={}));var Iw;(function(t){t.declaration="declaration",t.definition="definition",t.readonly="readonly",t.static="static",t.deprecated="deprecated",t.abstract="abstract",t.async="async",t.modification="modification",t.documentation="documentation",t.defaultLibrary="defaultLibrary"})(Iw=Pe.SemanticTokenModifiers||(Pe.SemanticTokenModifiers={}));var Lw;(function(t){function e(n){let r=n;return r!==void 0&&(r.resultId===void 0||typeof r.resultId=="string")&&Array.isArray(r.data)&&(r.data.length===0||typeof r.data[0]=="number")}t.is=e})(Lw=Pe.SemanticTokens||(Pe.SemanticTokens={}));var Nw;(function(t){t.Relative="relative"})(Nw=Pe.TokenFormat||(Pe.TokenFormat={}));var Ww;(function(t){t.method="textDocument/semanticTokens",t.type=new Ji.RegistrationType(t.method)})(Ww=Pe.SemanticTokensRegistrationType||(Pe.SemanticTokensRegistrationType={}));var Ow;(function(t){t.method="textDocument/semanticTokens/full",t.type=new Ji.ProtocolRequestType(t.method)})(Ow=Pe.SemanticTokensRequest||(Pe.SemanticTokensRequest={}));var qw;(function(t){t.method="textDocument/semanticTokens/full/delta",t.type=new Ji.ProtocolRequestType(t.method)})(qw=Pe.SemanticTokensDeltaRequest||(Pe.SemanticTokensDeltaRequest={}));var Uw;(function(t){t.method="textDocument/semanticTokens/range",t.type=new Ji.ProtocolRequestType(t.method)})(Uw=Pe.SemanticTokensRangeRequest||(Pe.SemanticTokensRangeRequest={}));var Hw;(function(t){t.method="workspace/semanticTokens/refresh",t.type=new Ji.ProtocolRequestType0(t.method)})(Hw=Pe.SemanticTokensRefreshRequest||(Pe.SemanticTokensRefreshRequest={}))});var sp=se(Xi=>{"use strict";Object.defineProperty(Xi,"__esModule",{value:!0});Xi.ShowDocumentRequest=void 0;var jw=ct(),Bw;(function(t){t.method="window/showDocument",t.type=new jw.ProtocolRequestType(t.method)})(Bw=Xi.ShowDocumentRequest||(Xi.ShowDocumentRequest={}))});var lp=se(Yi=>{"use strict";Object.defineProperty(Yi,"__esModule",{value:!0});Yi.LinkedEditingRangeRequest=void 0;var Vw=ct(),$w;(function(t){t.method="textDocument/linkedEditingRange",t.type=new Vw.ProtocolRequestType(t.method)})($w=Yi.LinkedEditingRangeRequest||(Yi.LinkedEditingRangeRequest={}))});var cp=se(je=>{"use strict";Object.defineProperty(je,"__esModule",{value:!0});je.WillDeleteFilesRequest=je.DidDeleteFilesNotification=je.DidRenameFilesNotification=je.WillRenameFilesRequest=je.DidCreateFilesNotification=je.WillCreateFilesRequest=je.FileOperationPatternKind=void 0;var Gr=ct(),Gw;(function(t){t.file="file",t.folder="folder"})(Gw=je.FileOperationPatternKind||(je.FileOperationPatternKind={}));var Kw;(function(t){t.method="workspace/willCreateFiles",t.type=new Gr.ProtocolRequestType(t.method)})(Kw=je.WillCreateFilesRequest||(je.WillCreateFilesRequest={}));var Jw;(function(t){t.method="workspace/didCreateFiles",t.type=new Gr.ProtocolNotificationType(t.method)})(Jw=je.DidCreateFilesNotification||(je.DidCreateFilesNotification={}));var Xw;(function(t){t.method="workspace/willRenameFiles",t.type=new Gr.ProtocolRequestType(t.method)})(Xw=je.WillRenameFilesRequest||(je.WillRenameFilesRequest={}));var Yw;(function(t){t.method="workspace/didRenameFiles",t.type=new Gr.ProtocolNotificationType(t.method)})(Yw=je.DidRenameFilesNotification||(je.DidRenameFilesNotification={}));var Qw;(function(t){t.method="workspace/didDeleteFiles",t.type=new Gr.ProtocolNotificationType(t.method)})(Qw=je.DidDeleteFilesNotification||(je.DidDeleteFilesNotification={}));var Zw;(function(t){t.method="workspace/willDeleteFiles",t.type=new Gr.ProtocolRequestType(t.method)})(Zw=je.WillDeleteFilesRequest||(je.WillDeleteFilesRequest={}))});var dp=se(an=>{"use strict";Object.defineProperty(an,"__esModule",{value:!0});an.MonikerRequest=an.MonikerKind=an.UniquenessLevel=void 0;var ex=ct(),tx;(function(t){t.document="document",t.project="project",t.group="group",t.scheme="scheme",t.global="global"})(tx=an.UniquenessLevel||(an.UniquenessLevel={}));var nx;(function(t){t.import="import",t.export="export",t.local="local"})(nx=an.MonikerKind||(an.MonikerKind={}));var rx;(function(t){t.method="textDocument/moniker",t.type=new ex.ProtocolRequestType(t.method)})(rx=an.MonikerRequest||(an.MonikerRequest={}))});var fp=se(k=>{"use strict";Object.defineProperty(k,"__esModule",{value:!0});k.DocumentLinkRequest=k.CodeLensRefreshRequest=k.CodeLensResolveRequest=k.CodeLensRequest=k.WorkspaceSymbolRequest=k.CodeActionResolveRequest=k.CodeActionRequest=k.DocumentSymbolRequest=k.DocumentHighlightRequest=k.ReferencesRequest=k.DefinitionRequest=k.SignatureHelpRequest=k.SignatureHelpTriggerKind=k.HoverRequest=k.CompletionResolveRequest=k.CompletionRequest=k.CompletionTriggerKind=k.PublishDiagnosticsNotification=k.WatchKind=k.FileChangeType=k.DidChangeWatchedFilesNotification=k.WillSaveTextDocumentWaitUntilRequest=k.WillSaveTextDocumentNotification=k.TextDocumentSaveReason=k.DidSaveTextDocumentNotification=k.DidCloseTextDocumentNotification=k.DidChangeTextDocumentNotification=k.TextDocumentContentChangeEvent=k.DidOpenTextDocumentNotification=k.TextDocumentSyncKind=k.TelemetryEventNotification=k.LogMessageNotification=k.ShowMessageRequest=k.ShowMessageNotification=k.MessageType=k.DidChangeConfigurationNotification=k.ExitNotification=k.ShutdownRequest=k.InitializedNotification=k.InitializeError=k.InitializeRequest=k.WorkDoneProgressOptions=k.TextDocumentRegistrationOptions=k.StaticRegistrationOptions=k.FailureHandlingKind=k.ResourceOperationKind=k.UnregistrationRequest=k.RegistrationRequest=k.DocumentSelector=k.DocumentFilter=void 0;k.MonikerRequest=k.MonikerKind=k.UniquenessLevel=k.WillDeleteFilesRequest=k.DidDeleteFilesNotification=k.WillRenameFilesRequest=k.DidRenameFilesNotification=k.WillCreateFilesRequest=k.DidCreateFilesNotification=k.FileOperationPatternKind=k.LinkedEditingRangeRequest=k.ShowDocumentRequest=k.SemanticTokensRegistrationType=k.SemanticTokensRefreshRequest=k.SemanticTokensRangeRequest=k.SemanticTokensDeltaRequest=k.SemanticTokensRequest=k.TokenFormat=k.SemanticTokens=k.SemanticTokenModifiers=k.SemanticTokenTypes=k.CallHierarchyPrepareRequest=k.CallHierarchyOutgoingCallsRequest=k.CallHierarchyIncomingCallsRequest=k.WorkDoneProgressCancelNotification=k.WorkDoneProgressCreateRequest=k.WorkDoneProgress=k.SelectionRangeRequest=k.DeclarationRequest=k.FoldingRangeRequest=k.ColorPresentationRequest=k.DocumentColorRequest=k.ConfigurationRequest=k.DidChangeWorkspaceFoldersNotification=k.WorkspaceFoldersRequest=k.TypeDefinitionRequest=k.ImplementationRequest=k.ApplyWorkspaceEditRequest=k.ExecuteCommandRequest=k.PrepareRenameRequest=k.RenameRequest=k.PrepareSupportDefaultBehavior=k.DocumentOnTypeFormattingRequest=k.DocumentRangeFormattingRequest=k.DocumentFormattingRequest=k.DocumentLinkResolveRequest=void 0;var Yn=$h(),ve=ct(),ix=Gh();Object.defineProperty(k,"ImplementationRequest",{enumerable:!0,get:function(){return ix.ImplementationRequest}});var ox=Kh();Object.defineProperty(k,"TypeDefinitionRequest",{enumerable:!0,get:function(){return ox.TypeDefinitionRequest}});var up=Xh();Object.defineProperty(k,"WorkspaceFoldersRequest",{enumerable:!0,get:function(){return up.WorkspaceFoldersRequest}});Object.defineProperty(k,"DidChangeWorkspaceFoldersNotification",{enumerable:!0,get:function(){return up.DidChangeWorkspaceFoldersNotification}});var ax=Yh();Object.defineProperty(k,"ConfigurationRequest",{enumerable:!0,get:function(){return ax.ConfigurationRequest}});var hp=Zh();Object.defineProperty(k,"DocumentColorRequest",{enumerable:!0,get:function(){return hp.DocumentColorRequest}});Object.defineProperty(k,"ColorPresentationRequest",{enumerable:!0,get:function(){return hp.ColorPresentationRequest}});var sx=ep();Object.defineProperty(k,"FoldingRangeRequest",{enumerable:!0,get:function(){return sx.FoldingRangeRequest}});var lx=tp();Object.defineProperty(k,"DeclarationRequest",{enumerable:!0,get:function(){return lx.DeclarationRequest}});var cx=np();Object.defineProperty(k,"SelectionRangeRequest",{enumerable:!0,get:function(){return cx.SelectionRangeRequest}});var Ul=ip();Object.defineProperty(k,"WorkDoneProgress",{enumerable:!0,get:function(){return Ul.WorkDoneProgress}});Object.defineProperty(k,"WorkDoneProgressCreateRequest",{enumerable:!0,get:function(){return Ul.WorkDoneProgressCreateRequest}});Object.defineProperty(k,"WorkDoneProgressCancelNotification",{enumerable:!0,get:function(){return Ul.WorkDoneProgressCancelNotification}});var Hl=op();Object.defineProperty(k,"CallHierarchyIncomingCallsRequest",{enumerable:!0,get:function(){return Hl.CallHierarchyIncomingCallsRequest}});Object.defineProperty(k,"CallHierarchyOutgoingCallsRequest",{enumerable:!0,get:function(){return Hl.CallHierarchyOutgoingCallsRequest}});Object.defineProperty(k,"CallHierarchyPrepareRequest",{enumerable:!0,get:function(){return Hl.CallHierarchyPrepareRequest}});var An=ap();Object.defineProperty(k,"SemanticTokenTypes",{enumerable:!0,get:function(){return An.SemanticTokenTypes}});Object.defineProperty(k,"SemanticTokenModifiers",{enumerable:!0,get:function(){return An.SemanticTokenModifiers}});Object.defineProperty(k,"SemanticTokens",{enumerable:!0,get:function(){return An.SemanticTokens}});Object.defineProperty(k,"TokenFormat",{enumerable:!0,get:function(){return An.TokenFormat}});Object.defineProperty(k,"SemanticTokensRequest",{enumerable:!0,get:function(){return An.SemanticTokensRequest}});Object.defineProperty(k,"SemanticTokensDeltaRequest",{enumerable:!0,get:function(){return An.SemanticTokensDeltaRequest}});Object.defineProperty(k,"SemanticTokensRangeRequest",{enumerable:!0,get:function(){return An.SemanticTokensRangeRequest}});Object.defineProperty(k,"SemanticTokensRefreshRequest",{enumerable:!0,get:function(){return An.SemanticTokensRefreshRequest}});Object.defineProperty(k,"SemanticTokensRegistrationType",{enumerable:!0,get:function(){return An.SemanticTokensRegistrationType}});var dx=sp();Object.defineProperty(k,"ShowDocumentRequest",{enumerable:!0,get:function(){return dx.ShowDocumentRequest}});var ux=lp();Object.defineProperty(k,"LinkedEditingRangeRequest",{enumerable:!0,get:function(){return ux.LinkedEditingRangeRequest}});var wr=cp();Object.defineProperty(k,"FileOperationPatternKind",{enumerable:!0,get:function(){return wr.FileOperationPatternKind}});Object.defineProperty(k,"DidCreateFilesNotification",{enumerable:!0,get:function(){return wr.DidCreateFilesNotification}});Object.defineProperty(k,"WillCreateFilesRequest",{enumerable:!0,get:function(){return wr.WillCreateFilesRequest}});Object.defineProperty(k,"DidRenameFilesNotification",{enumerable:!0,get:function(){return wr.DidRenameFilesNotification}});Object.defineProperty(k,"WillRenameFilesRequest",{enumerable:!0,get:function(){return wr.WillRenameFilesRequest}});Object.defineProperty(k,"DidDeleteFilesNotification",{enumerable:!0,get:function(){return wr.DidDeleteFilesNotification}});Object.defineProperty(k,"WillDeleteFilesRequest",{enumerable:!0,get:function(){return wr.WillDeleteFilesRequest}});var jl=dp();Object.defineProperty(k,"UniquenessLevel",{enumerable:!0,get:function(){return jl.UniquenessLevel}});Object.defineProperty(k,"MonikerKind",{enumerable:!0,get:function(){return jl.MonikerKind}});Object.defineProperty(k,"MonikerRequest",{enumerable:!0,get:function(){return jl.MonikerRequest}});var pp;(function(t){function e(n){let r=n;return Yn.string(r.language)||Yn.string(r.scheme)||Yn.string(r.pattern)}t.is=e})(pp=k.DocumentFilter||(k.DocumentFilter={}));var mp;(function(t){function e(n){if(!Array.isArray(n))return!1;for(let r of n)if(!Yn.string(r)&&!pp.is(r))return!1;return!0}t.is=e})(mp=k.DocumentSelector||(k.DocumentSelector={}));var hx;(function(t){t.type=new ve.ProtocolRequestType("client/registerCapability")})(hx=k.RegistrationRequest||(k.RegistrationRequest={}));var px;(function(t){t.type=new ve.ProtocolRequestType("client/unregisterCapability")})(px=k.UnregistrationRequest||(k.UnregistrationRequest={}));var mx;(function(t){t.Create="create",t.Rename="rename",t.Delete="delete"})(mx=k.ResourceOperationKind||(k.ResourceOperationKind={}));var fx;(function(t){t.Abort="abort",t.Transactional="transactional",t.TextOnlyTransactional="textOnlyTransactional",t.Undo="undo"})(fx=k.FailureHandlingKind||(k.FailureHandlingKind={}));var gx;(function(t){function e(n){let r=n;return r&&Yn.string(r.id)&&r.id.length>0}t.hasId=e})(gx=k.StaticRegistrationOptions||(k.StaticRegistrationOptions={}));var bx;(function(t){function e(n){let r=n;return r&&(r.documentSelector===null||mp.is(r.documentSelector))}t.is=e})(bx=k.TextDocumentRegistrationOptions||(k.TextDocumentRegistrationOptions={}));var vx;(function(t){function e(r){let i=r;return Yn.objectLiteral(i)&&(i.workDoneProgress===void 0||Yn.boolean(i.workDoneProgress))}t.is=e;function n(r){let i=r;return i&&Yn.boolean(i.workDoneProgress)}t.hasWorkDoneProgress=n})(vx=k.WorkDoneProgressOptions||(k.WorkDoneProgressOptions={}));var yx;(function(t){t.type=new ve.ProtocolRequestType("initialize")})(yx=k.InitializeRequest||(k.InitializeRequest={}));var wx;(function(t){t.unknownProtocolVersion=1})(wx=k.InitializeError||(k.InitializeError={}));var xx;(function(t){t.type=new ve.ProtocolNotificationType("initialized")})(xx=k.InitializedNotification||(k.InitializedNotification={}));var Sx;(function(t){t.type=new ve.ProtocolRequestType0("shutdown")})(Sx=k.ShutdownRequest||(k.ShutdownRequest={}));var _x;(function(t){t.type=new ve.ProtocolNotificationType0("exit")})(_x=k.ExitNotification||(k.ExitNotification={}));var kx;(function(t){t.type=new ve.ProtocolNotificationType("workspace/didChangeConfiguration")})(kx=k.DidChangeConfigurationNotification||(k.DidChangeConfigurationNotification={}));var Cx;(function(t){t.Error=1,t.Warning=2,t.Info=3,t.Log=4})(Cx=k.MessageType||(k.MessageType={}));var Tx;(function(t){t.type=new ve.ProtocolNotificationType("window/showMessage")})(Tx=k.ShowMessageNotification||(k.ShowMessageNotification={}));var Dx;(function(t){t.type=new ve.ProtocolRequestType("window/showMessageRequest")})(Dx=k.ShowMessageRequest||(k.ShowMessageRequest={}));var Rx;(function(t){t.type=new ve.ProtocolNotificationType("window/logMessage")})(Rx=k.LogMessageNotification||(k.LogMessageNotification={}));var Ex;(function(t){t.type=new ve.ProtocolNotificationType("telemetry/event")})(Ex=k.TelemetryEventNotification||(k.TelemetryEventNotification={}));var Ax;(function(t){t.None=0,t.Full=1,t.Incremental=2})(Ax=k.TextDocumentSyncKind||(k.TextDocumentSyncKind={}));var Fx;(function(t){t.method="textDocument/didOpen",t.type=new ve.ProtocolNotificationType(t.method)})(Fx=k.DidOpenTextDocumentNotification||(k.DidOpenTextDocumentNotification={}));var Mx;(function(t){function e(r){let i=r;return i!=null&&typeof i.text=="string"&&i.range!==void 0&&(i.rangeLength===void 0||typeof i.rangeLength=="number")}t.isIncremental=e;function n(r){let i=r;return i!=null&&typeof i.text=="string"&&i.range===void 0&&i.rangeLength===void 0}t.isFull=n})(Mx=k.TextDocumentContentChangeEvent||(k.TextDocumentContentChangeEvent={}));var Px;(function(t){t.method="textDocument/didChange",t.type=new ve.ProtocolNotificationType(t.method)})(Px=k.DidChangeTextDocumentNotification||(k.DidChangeTextDocumentNotification={}));var zx;(function(t){t.method="textDocument/didClose",t.type=new ve.ProtocolNotificationType(t.method)})(zx=k.DidCloseTextDocumentNotification||(k.DidCloseTextDocumentNotification={}));var Ix;(function(t){t.method="textDocument/didSave",t.type=new ve.ProtocolNotificationType(t.method)})(Ix=k.DidSaveTextDocumentNotification||(k.DidSaveTextDocumentNotification={}));var Lx;(function(t){t.Manual=1,t.AfterDelay=2,t.FocusOut=3})(Lx=k.TextDocumentSaveReason||(k.TextDocumentSaveReason={}));var Nx;(function(t){t.method="textDocument/willSave",t.type=new ve.ProtocolNotificationType(t.method)})(Nx=k.WillSaveTextDocumentNotification||(k.WillSaveTextDocumentNotification={}));var Wx;(function(t){t.method="textDocument/willSaveWaitUntil",t.type=new ve.ProtocolRequestType(t.method)})(Wx=k.WillSaveTextDocumentWaitUntilRequest||(k.WillSaveTextDocumentWaitUntilRequest={}));var Ox;(function(t){t.type=new ve.ProtocolNotificationType("workspace/didChangeWatchedFiles")})(Ox=k.DidChangeWatchedFilesNotification||(k.DidChangeWatchedFilesNotification={}));var qx;(function(t){t.Created=1,t.Changed=2,t.Deleted=3})(qx=k.FileChangeType||(k.FileChangeType={}));var Ux;(function(t){t.Create=1,t.Change=2,t.Delete=4})(Ux=k.WatchKind||(k.WatchKind={}));var Hx;(function(t){t.type=new ve.ProtocolNotificationType("textDocument/publishDiagnostics")})(Hx=k.PublishDiagnosticsNotification||(k.PublishDiagnosticsNotification={}));var jx;(function(t){t.Invoked=1,t.TriggerCharacter=2,t.TriggerForIncompleteCompletions=3})(jx=k.CompletionTriggerKind||(k.CompletionTriggerKind={}));var Bx;(function(t){t.method="textDocument/completion",t.type=new ve.ProtocolRequestType(t.method)})(Bx=k.CompletionRequest||(k.CompletionRequest={}));var Vx;(function(t){t.method="completionItem/resolve",t.type=new ve.ProtocolRequestType(t.method)})(Vx=k.CompletionResolveRequest||(k.CompletionResolveRequest={}));var $x;(function(t){t.method="textDocument/hover",t.type=new ve.ProtocolRequestType(t.method)})($x=k.HoverRequest||(k.HoverRequest={}));var Gx;(function(t){t.Invoked=1,t.TriggerCharacter=2,t.ContentChange=3})(Gx=k.SignatureHelpTriggerKind||(k.SignatureHelpTriggerKind={}));var Kx;(function(t){t.method="textDocument/signatureHelp",t.type=new ve.ProtocolRequestType(t.method)})(Kx=k.SignatureHelpRequest||(k.SignatureHelpRequest={}));var Jx;(function(t){t.method="textDocument/definition",t.type=new ve.ProtocolRequestType(t.method)})(Jx=k.DefinitionRequest||(k.DefinitionRequest={}));var Xx;(function(t){t.method="textDocument/references",t.type=new ve.ProtocolRequestType(t.method)})(Xx=k.ReferencesRequest||(k.ReferencesRequest={}));var Yx;(function(t){t.method="textDocument/documentHighlight",t.type=new ve.ProtocolRequestType(t.method)})(Yx=k.DocumentHighlightRequest||(k.DocumentHighlightRequest={}));var Qx;(function(t){t.method="textDocument/documentSymbol",t.type=new ve.ProtocolRequestType(t.method)})(Qx=k.DocumentSymbolRequest||(k.DocumentSymbolRequest={}));var Zx;(function(t){t.method="textDocument/codeAction",t.type=new ve.ProtocolRequestType(t.method)})(Zx=k.CodeActionRequest||(k.CodeActionRequest={}));var eS;(function(t){t.method="codeAction/resolve",t.type=new ve.ProtocolRequestType(t.method)})(eS=k.CodeActionResolveRequest||(k.CodeActionResolveRequest={}));var tS;(function(t){t.method="workspace/symbol",t.type=new ve.ProtocolRequestType(t.method)})(tS=k.WorkspaceSymbolRequest||(k.WorkspaceSymbolRequest={}));var nS;(function(t){t.method="textDocument/codeLens",t.type=new ve.ProtocolRequestType(t.method)})(nS=k.CodeLensRequest||(k.CodeLensRequest={}));var rS;(function(t){t.method="codeLens/resolve",t.type=new ve.ProtocolRequestType(t.method)})(rS=k.CodeLensResolveRequest||(k.CodeLensResolveRequest={}));var iS;(function(t){t.method="workspace/codeLens/refresh",t.type=new ve.ProtocolRequestType0(t.method)})(iS=k.CodeLensRefreshRequest||(k.CodeLensRefreshRequest={}));var oS;(function(t){t.method="textDocument/documentLink",t.type=new ve.ProtocolRequestType(t.method)})(oS=k.DocumentLinkRequest||(k.DocumentLinkRequest={}));var aS;(function(t){t.method="documentLink/resolve",t.type=new ve.ProtocolRequestType(t.method)})(aS=k.DocumentLinkResolveRequest||(k.DocumentLinkResolveRequest={}));var sS;(function(t){t.method="textDocument/formatting",t.type=new ve.ProtocolRequestType(t.method)})(sS=k.DocumentFormattingRequest||(k.DocumentFormattingRequest={}));var lS;(function(t){t.method="textDocument/rangeFormatting",t.type=new ve.ProtocolRequestType(t.method)})(lS=k.DocumentRangeFormattingRequest||(k.DocumentRangeFormattingRequest={}));var cS;(function(t){t.method="textDocument/onTypeFormatting",t.type=new ve.ProtocolRequestType(t.method)})(cS=k.DocumentOnTypeFormattingRequest||(k.DocumentOnTypeFormattingRequest={}));var dS;(function(t){t.Identifier=1})(dS=k.PrepareSupportDefaultBehavior||(k.PrepareSupportDefaultBehavior={}));var uS;(function(t){t.method="textDocument/rename",t.type=new ve.ProtocolRequestType(t.method)})(uS=k.RenameRequest||(k.RenameRequest={}));var hS;(function(t){t.method="textDocument/prepareRename",t.type=new ve.ProtocolRequestType(t.method)})(hS=k.PrepareRenameRequest||(k.PrepareRenameRequest={}));var pS;(function(t){t.type=new ve.ProtocolRequestType("workspace/executeCommand")})(pS=k.ExecuteCommandRequest||(k.ExecuteCommandRequest={}));var mS;(function(t){t.type=new ve.ProtocolRequestType("workspace/applyEdit")})(mS=k.ApplyWorkspaceEditRequest||(k.ApplyWorkspaceEditRequest={}))});var bp=se(ta=>{"use strict";Object.defineProperty(ta,"__esModule",{value:!0});ta.createProtocolConnection=void 0;var gp=qr();function fS(t,e,n,r){return gp.ConnectionStrategy.is(r)&&(r={connectionStrategy:r}),gp.createMessageConnection(t,e,n,r)}ta.createProtocolConnection=fS});var vp=se(Et=>{"use strict";var gS=Et&&Et.__createBinding||(Object.create?function(t,e,n,r){r===void 0&&(r=n),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,r){r===void 0&&(r=n),t[r]=e[n]}),na=Et&&Et.__exportStar||function(t,e){for(var n in t)n!=="default"&&!Object.prototype.hasOwnProperty.call(e,n)&&gS(e,t,n)};Object.defineProperty(Et,"__esModule",{value:!0});Et.LSPErrorCodes=Et.createProtocolConnection=void 0;na(qr(),Et);na((Wh(),Du(Nh)),Et);na(ct(),Et);na(fp(),Et);var bS=bp();Object.defineProperty(Et,"createProtocolConnection",{enumerable:!0,get:function(){return bS.createProtocolConnection}});var vS;(function(t){t.lspReservedErrorRangeStart=-32899,t.ContentModified=-32801,t.RequestCancelled=-32800,t.lspReservedErrorRangeEnd=-32800})(vS=Et.LSPErrorCodes||(Et.LSPErrorCodes={}))});var Ut=se(gn=>{"use strict";var yS=gn&&gn.__createBinding||(Object.create?function(t,e,n,r){r===void 0&&(r=n),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,r){r===void 0&&(r=n),t[r]=e[n]}),yp=gn&&gn.__exportStar||function(t,e){for(var n in t)n!=="default"&&!Object.prototype.hasOwnProperty.call(e,n)&&yS(e,t,n)};Object.defineProperty(gn,"__esModule",{value:!0});gn.createProtocolConnection=void 0;var wS=rl();yp(rl(),gn);yp(vp(),gn);function xS(t,e,n,r){return wS.createMessageConnection(t,e,n,r)}gn.createProtocolConnection=xS});var Bl=se(Jt=>{"use strict";Object.defineProperty(Jt,"__esModule",{value:!0});Jt.generateUuid=Jt.parse=Jt.isUUID=Jt.v4=Jt.empty=void 0;var ra=class{constructor(e){this._value=e}asHex(){return this._value}equals(e){return this.asHex()===e.asHex()}},Se=class extends ra{constructor(){super([Se._randomHex(),Se._randomHex(),Se._randomHex(),Se._randomHex(),Se._randomHex(),Se._randomHex(),Se._randomHex(),Se._randomHex(),"-",Se._randomHex(),Se._randomHex(),Se._randomHex(),Se._randomHex(),"-","4",Se._randomHex(),Se._randomHex(),Se._randomHex(),"-",Se._oneOf(Se._timeHighBits),Se._randomHex(),Se._randomHex(),Se._randomHex(),"-",Se._randomHex(),Se._randomHex(),Se._randomHex(),Se._randomHex(),Se._randomHex(),Se._randomHex(),Se._randomHex(),Se._randomHex(),Se._randomHex(),Se._randomHex(),Se._randomHex(),Se._randomHex()].join(""))}static _oneOf(e){return e[Math.floor(e.length*Math.random())]}static _randomHex(){return Se._oneOf(Se._chars)}};Se._chars=["0","1","2","3","4","5","6","6","7","8","9","a","b","c","d","e","f"];Se._timeHighBits=["8","9","a","b"];Jt.empty=new ra("00000000-0000-0000-0000-000000000000");function wp(){return new Se}Jt.v4=wp;var SS=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;function xp(t){return SS.test(t)}Jt.isUUID=xp;function _S(t){if(!xp(t))throw new Error("invalid uuid");return new ra(t)}Jt.parse=_S;function kS(){return wp().asHex()}Jt.generateUuid=kS});var _p=se(Zn=>{"use strict";Object.defineProperty(Zn,"__esModule",{value:!0});Zn.attachPartialResult=Zn.ProgressFeature=Zn.attachWorkDone=void 0;var Qn=Ut(),CS=Bl(),Fn=class{constructor(e,n){this._connection=e,this._token=n,Fn.Instances.set(this._token,this)}begin(e,n,r,i){let o={kind:"begin",title:e,percentage:n,message:r,cancellable:i};this._connection.sendProgress(Qn.WorkDoneProgress.type,this._token,o)}report(e,n){let r={kind:"report"};typeof e=="number"?(r.percentage=e,n!==void 0&&(r.message=n)):r.message=e,this._connection.sendProgress(Qn.WorkDoneProgress.type,this._token,r)}done(){Fn.Instances.delete(this._token),this._connection.sendProgress(Qn.WorkDoneProgress.type,this._token,{kind:"end"})}};Fn.Instances=new Map;var Vl=class extends Fn{constructor(e,n){super(e,n);this._source=new Qn.CancellationTokenSource}get token(){return this._source.token}done(){this._source.dispose(),super.done()}cancel(){this._source.cancel()}},ia=class{constructor(){}begin(){}report(){}done(){}},$l=class extends ia{constructor(){super();this._source=new Qn.CancellationTokenSource}get token(){return this._source.token}done(){this._source.dispose()}cancel(){this._source.cancel()}};function TS(t,e){if(e===void 0||e.workDoneToken===void 0)return new ia;let n=e.workDoneToken;return delete e.workDoneToken,new Fn(t,n)}Zn.attachWorkDone=TS;var DS=t=>class extends t{constructor(){super();this._progressSupported=!1}initialize(e){var n;((n=e==null?void 0:e.window)===null||n===void 0?void 0:n.workDoneProgress)===!0&&(this._progressSupported=!0,this.connection.onNotification(Qn.WorkDoneProgressCancelNotification.type,r=>{let i=Fn.Instances.get(r.token);(i instanceof Vl||i instanceof $l)&&i.cancel()}))}attachWorkDoneProgress(e){return e===void 0?new ia:new Fn(this.connection,e)}createWorkDoneProgress(){if(this._progressSupported){let e=CS.generateUuid();return this.connection.sendRequest(Qn.WorkDoneProgressCreateRequest.type,{token:e}).then(()=>new Vl(this.connection,e))}else return Promise.resolve(new $l)}};Zn.ProgressFeature=DS;var Gl;(function(t){t.type=new Qn.ProgressType})(Gl||(Gl={}));var Sp=class{constructor(e,n){this._connection=e,this._token=n}report(e){this._connection.sendProgress(Gl.type,this._token,e)}};function RS(t,e){if(e===void 0||e.partialResultToken===void 0)return;let n=e.partialResultToken;return delete e.partialResultToken,new Sp(t,n)}Zn.attachPartialResult=RS});var kp=se(oa=>{"use strict";Object.defineProperty(oa,"__esModule",{value:!0});oa.ConfigurationFeature=void 0;var ES=Ut(),AS=Uo(),FS=t=>class extends t{getConfiguration(e){return e?AS.string(e)?this._getConfiguration({section:e}):this._getConfiguration(e):this._getConfiguration({})}_getConfiguration(e){let n={items:Array.isArray(e)?e:[e]};return this.connection.sendRequest(ES.ConfigurationRequest.type,n).then(r=>Array.isArray(e)?r:r[0])}};oa.ConfigurationFeature=FS});var Cp=se(sa=>{"use strict";Object.defineProperty(sa,"__esModule",{value:!0});sa.WorkspaceFoldersFeature=void 0;var aa=Ut(),MS=t=>class extends t{initialize(e){let n=e.workspace;n&&n.workspaceFolders&&(this._onDidChangeWorkspaceFolders=new aa.Emitter,this.connection.onNotification(aa.DidChangeWorkspaceFoldersNotification.type,r=>{this._onDidChangeWorkspaceFolders.fire(r.event)}))}getWorkspaceFolders(){return this.connection.sendRequest(aa.WorkspaceFoldersRequest.type)}get onDidChangeWorkspaceFolders(){if(!this._onDidChangeWorkspaceFolders)throw new Error("Client doesn't support sending workspace folder change events.");return this._unregistration||(this._unregistration=this.connection.client.register(aa.DidChangeWorkspaceFoldersNotification.type)),this._onDidChangeWorkspaceFolders.event}};sa.WorkspaceFoldersFeature=MS});var Tp=se(la=>{"use strict";Object.defineProperty(la,"__esModule",{value:!0});la.CallHierarchyFeature=void 0;var Kl=Ut(),PS=t=>class extends t{get callHierarchy(){return{onPrepare:e=>{this.connection.onRequest(Kl.CallHierarchyPrepareRequest.type,(n,r)=>e(n,r,this.attachWorkDoneProgress(n),void 0))},onIncomingCalls:e=>{let n=Kl.CallHierarchyIncomingCallsRequest.type;this.connection.onRequest(n,(r,i)=>e(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))},onOutgoingCalls:e=>{let n=Kl.CallHierarchyOutgoingCallsRequest.type;this.connection.onRequest(n,(r,i)=>e(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))}}}};la.CallHierarchyFeature=PS});var Xl=se(Kr=>{"use strict";Object.defineProperty(Kr,"__esModule",{value:!0});Kr.SemanticTokensBuilder=Kr.SemanticTokensFeature=void 0;var Jl=Ut(),zS=t=>class extends t{get semanticTokens(){return{on:e=>{let n=Jl.SemanticTokensRequest.type;this.connection.onRequest(n,(r,i)=>e(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))},onDelta:e=>{let n=Jl.SemanticTokensDeltaRequest.type;this.connection.onRequest(n,(r,i)=>e(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))},onRange:e=>{let n=Jl.SemanticTokensRangeRequest.type;this.connection.onRequest(n,(r,i)=>e(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))}}}};Kr.SemanticTokensFeature=zS;var Dp=class{constructor(){this._prevData=void 0,this.initialize()}initialize(){this._id=Date.now(),this._prevLine=0,this._prevChar=0,this._data=[],this._dataLen=0}push(e,n,r,i,o){let a=e,s=n;this._dataLen>0&&(a-=this._prevLine,a===0&&(s-=this._prevChar)),this._data[this._dataLen++]=a,this._data[this._dataLen++]=s,this._data[this._dataLen++]=r,this._data[this._dataLen++]=i,this._data[this._dataLen++]=o,this._prevLine=e,this._prevChar=n}get id(){return this._id.toString()}previousResult(e){this.id===e&&(this._prevData=this._data),this.initialize()}build(){return this._prevData=void 0,{resultId:this.id,data:this._data}}canBuildEdits(){return this._prevData!==void 0}buildEdits(){if(this._prevData!==void 0){let e=this._prevData.length,n=this._data.length,r=0;for(;r{"use strict";Object.defineProperty(ca,"__esModule",{value:!0});ca.ShowDocumentFeature=void 0;var IS=Ut(),LS=t=>class extends t{showDocument(e){return this.connection.sendRequest(IS.ShowDocumentRequest.type,e)}};ca.ShowDocumentFeature=LS});var Ep=se(da=>{"use strict";Object.defineProperty(da,"__esModule",{value:!0});da.FileOperationsFeature=void 0;var Jr=Ut(),NS=t=>class extends t{onDidCreateFiles(e){this.connection.onNotification(Jr.DidCreateFilesNotification.type,n=>{e(n)})}onDidRenameFiles(e){this.connection.onNotification(Jr.DidRenameFilesNotification.type,n=>{e(n)})}onDidDeleteFiles(e){this.connection.onNotification(Jr.DidDeleteFilesNotification.type,n=>{e(n)})}onWillCreateFiles(e){return this.connection.onRequest(Jr.WillCreateFilesRequest.type,(n,r)=>e(n,r))}onWillRenameFiles(e){return this.connection.onRequest(Jr.WillRenameFilesRequest.type,(n,r)=>e(n,r))}onWillDeleteFiles(e){return this.connection.onRequest(Jr.WillDeleteFilesRequest.type,(n,r)=>e(n,r))}};da.FileOperationsFeature=NS});var Ap=se(ua=>{"use strict";Object.defineProperty(ua,"__esModule",{value:!0});ua.LinkedEditingRangeFeature=void 0;var WS=Ut(),OS=t=>class extends t{onLinkedEditingRange(e){this.connection.onRequest(WS.LinkedEditingRangeRequest.type,(n,r)=>e(n,r,this.attachWorkDoneProgress(n),void 0))}};ua.LinkedEditingRangeFeature=OS});var Fp=se(ha=>{"use strict";Object.defineProperty(ha,"__esModule",{value:!0});ha.MonikerFeature=void 0;var qS=Ut(),US=t=>class extends t{get moniker(){return{on:e=>{let n=qS.MonikerRequest.type;this.connection.onRequest(n,(r,i)=>e(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))}}}};ha.MonikerFeature=US});var oc=se(De=>{"use strict";Object.defineProperty(De,"__esModule",{value:!0});De.createConnection=De.combineFeatures=De.combineLanguagesFeatures=De.combineWorkspaceFeatures=De.combineWindowFeatures=De.combineClientFeatures=De.combineTracerFeatures=De.combineTelemetryFeatures=De.combineConsoleFeatures=De._LanguagesImpl=De.BulkUnregistration=De.BulkRegistration=De.ErrorMessageTracker=De.TextDocuments=void 0;var Z=Ut(),Xt=Uo(),Yl=Bl(),ye=_p(),HS=kp(),jS=Cp(),BS=Tp(),VS=Xl(),$S=Rp(),GS=Ep(),KS=Ap(),JS=Fp();function Ql(t){if(t!==null)return t}var Mp=class{constructor(e){this._documents=Object.create(null),this._configuration=e,this._onDidChangeContent=new Z.Emitter,this._onDidOpen=new Z.Emitter,this._onDidClose=new Z.Emitter,this._onDidSave=new Z.Emitter,this._onWillSave=new Z.Emitter}get onDidChangeContent(){return this._onDidChangeContent.event}get onDidOpen(){return this._onDidOpen.event}get onWillSave(){return this._onWillSave.event}onWillSaveWaitUntil(e){this._willSaveWaitUntil=e}get onDidSave(){return this._onDidSave.event}get onDidClose(){return this._onDidClose.event}get(e){return this._documents[e]}all(){return Object.keys(this._documents).map(e=>this._documents[e])}keys(){return Object.keys(this._documents)}listen(e){e.__textDocumentSync=Z.TextDocumentSyncKind.Full,e.onDidOpenTextDocument(n=>{let r=n.textDocument,i=this._configuration.create(r.uri,r.languageId,r.version,r.text);this._documents[r.uri]=i;let o=Object.freeze({document:i});this._onDidOpen.fire(o),this._onDidChangeContent.fire(o)}),e.onDidChangeTextDocument(n=>{let r=n.textDocument,i=n.contentChanges;if(i.length===0)return;let o=this._documents[r.uri],{version:a}=r;if(a==null)throw new Error(`Received document change event for ${r.uri} without valid version identifier`);o=this._configuration.update(o,i,a),this._documents[r.uri]=o,this._onDidChangeContent.fire(Object.freeze({document:o}))}),e.onDidCloseTextDocument(n=>{let r=this._documents[n.textDocument.uri];r&&(delete this._documents[n.textDocument.uri],this._onDidClose.fire(Object.freeze({document:r})))}),e.onWillSaveTextDocument(n=>{let r=this._documents[n.textDocument.uri];r&&this._onWillSave.fire(Object.freeze({document:r,reason:n.reason}))}),e.onWillSaveTextDocumentWaitUntil((n,r)=>{let i=this._documents[n.textDocument.uri];return i&&this._willSaveWaitUntil?this._willSaveWaitUntil(Object.freeze({document:i,reason:n.reason}),r):[]}),e.onDidSaveTextDocument(n=>{let r=this._documents[n.textDocument.uri];r&&this._onDidSave.fire(Object.freeze({document:r}))})}};De.TextDocuments=Mp;var Pp=class{constructor(){this._messages=Object.create(null)}add(e){let n=this._messages[e];n||(n=0),n++,this._messages[e]=n}sendErrors(e){Object.keys(this._messages).forEach(n=>{e.window.showErrorMessage(n)})}};De.ErrorMessageTracker=Pp;var Zl=class{constructor(){}rawAttach(e){this._rawConnection=e}attach(e){this._connection=e}get connection(){if(!this._connection)throw new Error("Remote is not attached to a connection yet.");return this._connection}fillServerCapabilities(e){}initialize(e){}error(e){this.send(Z.MessageType.Error,e)}warn(e){this.send(Z.MessageType.Warning,e)}info(e){this.send(Z.MessageType.Info,e)}log(e){this.send(Z.MessageType.Log,e)}send(e,n){this._rawConnection&&this._rawConnection.sendNotification(Z.LogMessageNotification.type,{type:e,message:n})}},zp=class{constructor(){}attach(e){this._connection=e}get connection(){if(!this._connection)throw new Error("Remote is not attached to a connection yet.");return this._connection}initialize(e){}fillServerCapabilities(e){}showErrorMessage(e,...n){let r={type:Z.MessageType.Error,message:e,actions:n};return this.connection.sendRequest(Z.ShowMessageRequest.type,r).then(Ql)}showWarningMessage(e,...n){let r={type:Z.MessageType.Warning,message:e,actions:n};return this.connection.sendRequest(Z.ShowMessageRequest.type,r).then(Ql)}showInformationMessage(e,...n){let r={type:Z.MessageType.Info,message:e,actions:n};return this.connection.sendRequest(Z.ShowMessageRequest.type,r).then(Ql)}},Ip=$S.ShowDocumentFeature(ye.ProgressFeature(zp)),XS;(function(t){function e(){return new ec}t.create=e})(XS=De.BulkRegistration||(De.BulkRegistration={}));var ec=class{constructor(){this._registrations=[],this._registered=new Set}add(e,n){let r=Xt.string(e)?e:e.method;if(this._registered.has(r))throw new Error(`${r} is already added to this registration`);let i=Yl.generateUuid();this._registrations.push({id:i,method:r,registerOptions:n||{}}),this._registered.add(r)}asRegistrationParams(){return{registrations:this._registrations}}},YS;(function(t){function e(){return new pa(void 0,[])}t.create=e})(YS=De.BulkUnregistration||(De.BulkUnregistration={}));var pa=class{constructor(e,n){this._connection=e,this._unregistrations=new Map,n.forEach(r=>{this._unregistrations.set(r.method,r)})}get isAttached(){return!!this._connection}attach(e){this._connection=e}add(e){this._unregistrations.set(e.method,e)}dispose(){let e=[];for(let r of this._unregistrations.values())e.push(r);let n={unregisterations:e};this._connection.sendRequest(Z.UnregistrationRequest.type,n).then(void 0,r=>{this._connection.console.info("Bulk unregistration failed.")})}disposeSingle(e){let n=Xt.string(e)?e:e.method,r=this._unregistrations.get(n);if(!r)return!1;let i={unregisterations:[r]};return this._connection.sendRequest(Z.UnregistrationRequest.type,i).then(()=>{this._unregistrations.delete(n)},o=>{this._connection.console.info(`Un-registering request handler for ${r.id} failed.`)}),!0}},tc=class{attach(e){this._connection=e}get connection(){if(!this._connection)throw new Error("Remote is not attached to a connection yet.");return this._connection}initialize(e){}fillServerCapabilities(e){}register(e,n,r){return e instanceof ec?this.registerMany(e):e instanceof pa?this.registerSingle1(e,n,r):this.registerSingle2(e,n)}registerSingle1(e,n,r){let i=Xt.string(n)?n:n.method,o=Yl.generateUuid(),a={registrations:[{id:o,method:i,registerOptions:r||{}}]};return e.isAttached||e.attach(this.connection),this.connection.sendRequest(Z.RegistrationRequest.type,a).then(s=>(e.add({id:o,method:i}),e),s=>(this.connection.console.info(`Registering request handler for ${i} failed.`),Promise.reject(s)))}registerSingle2(e,n){let r=Xt.string(e)?e:e.method,i=Yl.generateUuid(),o={registrations:[{id:i,method:r,registerOptions:n||{}}]};return this.connection.sendRequest(Z.RegistrationRequest.type,o).then(a=>Z.Disposable.create(()=>{this.unregisterSingle(i,r)}),a=>(this.connection.console.info(`Registering request handler for ${r} failed.`),Promise.reject(a)))}unregisterSingle(e,n){let r={unregisterations:[{id:e,method:n}]};return this.connection.sendRequest(Z.UnregistrationRequest.type,r).then(void 0,i=>{this.connection.console.info(`Un-registering request handler for ${e} failed.`)})}registerMany(e){let n=e.asRegistrationParams();return this.connection.sendRequest(Z.RegistrationRequest.type,n).then(()=>new pa(this._connection,n.registrations.map(r=>({id:r.id,method:r.method}))),r=>(this.connection.console.info("Bulk registration failed."),Promise.reject(r)))}},Lp=class{constructor(){}attach(e){this._connection=e}get connection(){if(!this._connection)throw new Error("Remote is not attached to a connection yet.");return this._connection}initialize(e){}fillServerCapabilities(e){}applyEdit(e){function n(i){return i&&!!i.edit}let r=n(e)?e:{edit:e};return this.connection.sendRequest(Z.ApplyWorkspaceEditRequest.type,r)}},Np=GS.FileOperationsFeature(jS.WorkspaceFoldersFeature(HS.ConfigurationFeature(Lp))),nc=class{constructor(){this._trace=Z.Trace.Off}attach(e){this._connection=e}get connection(){if(!this._connection)throw new Error("Remote is not attached to a connection yet.");return this._connection}initialize(e){}fillServerCapabilities(e){}set trace(e){this._trace=e}log(e,n){this._trace!==Z.Trace.Off&&this.connection.sendNotification(Z.LogTraceNotification.type,{message:e,verbose:this._trace===Z.Trace.Verbose?n:void 0})}},rc=class{constructor(){}attach(e){this._connection=e}get connection(){if(!this._connection)throw new Error("Remote is not attached to a connection yet.");return this._connection}initialize(e){}fillServerCapabilities(e){}logEvent(e){this.connection.sendNotification(Z.TelemetryEventNotification.type,e)}},ic=class{constructor(){}attach(e){this._connection=e}get connection(){if(!this._connection)throw new Error("Remote is not attached to a connection yet.");return this._connection}initialize(e){}fillServerCapabilities(e){}attachWorkDoneProgress(e){return ye.attachWorkDone(this.connection,e)}attachPartialResultProgress(e,n){return ye.attachPartialResult(this.connection,n)}};De._LanguagesImpl=ic;var Wp=JS.MonikerFeature(KS.LinkedEditingRangeFeature(VS.SemanticTokensFeature(BS.CallHierarchyFeature(ic))));function Op(t,e){return function(n){return e(t(n))}}De.combineConsoleFeatures=Op;function qp(t,e){return function(n){return e(t(n))}}De.combineTelemetryFeatures=qp;function Up(t,e){return function(n){return e(t(n))}}De.combineTracerFeatures=Up;function Hp(t,e){return function(n){return e(t(n))}}De.combineClientFeatures=Hp;function jp(t,e){return function(n){return e(t(n))}}De.combineWindowFeatures=jp;function Bp(t,e){return function(n){return e(t(n))}}De.combineWorkspaceFeatures=Bp;function QS(t,e){return function(n){return e(t(n))}}De.combineLanguagesFeatures=QS;function ZS(t,e){function n(i,o,a){return i&&o?a(i,o):i||o}return{__brand:"features",console:n(t.console,e.console,Op),tracer:n(t.tracer,e.tracer,Up),telemetry:n(t.telemetry,e.telemetry,qp),client:n(t.client,e.client,Hp),window:n(t.window,e.window,jp),workspace:n(t.workspace,e.workspace,Bp)}}De.combineFeatures=ZS;function e_(t,e,n){let r=n&&n.console?new(n.console(Zl)):new Zl,i=t(r);r.rawAttach(i);let o=n&&n.tracer?new(n.tracer(nc)):new nc,a=n&&n.telemetry?new(n.telemetry(rc)):new rc,s=n&&n.client?new(n.client(tc)):new tc,l=n&&n.window?new(n.window(Ip)):new Ip,c=n&&n.workspace?new(n.workspace(Np)):new Np,d=n&&n.languages?new(n.languages(Wp)):new Wp,u=[r,o,a,s,l,c,d];function h(x){return x instanceof Promise?x:Xt.thenable(x)?new Promise((v,F)=>{x.then(B=>v(B),B=>F(B))}):Promise.resolve(x)}let p,g,y,_={listen:()=>i.listen(),sendRequest:(x,...v)=>i.sendRequest(Xt.string(x)?x:x.method,...v),onRequest:(x,v)=>i.onRequest(x,v),sendNotification:(x,v)=>{let F=Xt.string(x)?x:x.method;arguments.length===1?i.sendNotification(F):i.sendNotification(F,v)},onNotification:(x,v)=>i.onNotification(x,v),onProgress:i.onProgress,sendProgress:i.sendProgress,onInitialize:x=>g=x,onInitialized:x=>i.onNotification(Z.InitializedNotification.type,x),onShutdown:x=>p=x,onExit:x=>y=x,get console(){return r},get telemetry(){return a},get tracer(){return o},get client(){return s},get window(){return l},get workspace(){return c},get languages(){return d},onDidChangeConfiguration:x=>i.onNotification(Z.DidChangeConfigurationNotification.type,x),onDidChangeWatchedFiles:x=>i.onNotification(Z.DidChangeWatchedFilesNotification.type,x),__textDocumentSync:void 0,onDidOpenTextDocument:x=>i.onNotification(Z.DidOpenTextDocumentNotification.type,x),onDidChangeTextDocument:x=>i.onNotification(Z.DidChangeTextDocumentNotification.type,x),onDidCloseTextDocument:x=>i.onNotification(Z.DidCloseTextDocumentNotification.type,x),onWillSaveTextDocument:x=>i.onNotification(Z.WillSaveTextDocumentNotification.type,x),onWillSaveTextDocumentWaitUntil:x=>i.onRequest(Z.WillSaveTextDocumentWaitUntilRequest.type,x),onDidSaveTextDocument:x=>i.onNotification(Z.DidSaveTextDocumentNotification.type,x),sendDiagnostics:x=>i.sendNotification(Z.PublishDiagnosticsNotification.type,x),onHover:x=>i.onRequest(Z.HoverRequest.type,(v,F)=>x(v,F,ye.attachWorkDone(i,v),void 0)),onCompletion:x=>i.onRequest(Z.CompletionRequest.type,(v,F)=>x(v,F,ye.attachWorkDone(i,v),ye.attachPartialResult(i,v))),onCompletionResolve:x=>i.onRequest(Z.CompletionResolveRequest.type,x),onSignatureHelp:x=>i.onRequest(Z.SignatureHelpRequest.type,(v,F)=>x(v,F,ye.attachWorkDone(i,v),void 0)),onDeclaration:x=>i.onRequest(Z.DeclarationRequest.type,(v,F)=>x(v,F,ye.attachWorkDone(i,v),ye.attachPartialResult(i,v))),onDefinition:x=>i.onRequest(Z.DefinitionRequest.type,(v,F)=>x(v,F,ye.attachWorkDone(i,v),ye.attachPartialResult(i,v))),onTypeDefinition:x=>i.onRequest(Z.TypeDefinitionRequest.type,(v,F)=>x(v,F,ye.attachWorkDone(i,v),ye.attachPartialResult(i,v))),onImplementation:x=>i.onRequest(Z.ImplementationRequest.type,(v,F)=>x(v,F,ye.attachWorkDone(i,v),ye.attachPartialResult(i,v))),onReferences:x=>i.onRequest(Z.ReferencesRequest.type,(v,F)=>x(v,F,ye.attachWorkDone(i,v),ye.attachPartialResult(i,v))),onDocumentHighlight:x=>i.onRequest(Z.DocumentHighlightRequest.type,(v,F)=>x(v,F,ye.attachWorkDone(i,v),ye.attachPartialResult(i,v))),onDocumentSymbol:x=>i.onRequest(Z.DocumentSymbolRequest.type,(v,F)=>x(v,F,ye.attachWorkDone(i,v),ye.attachPartialResult(i,v))),onWorkspaceSymbol:x=>i.onRequest(Z.WorkspaceSymbolRequest.type,(v,F)=>x(v,F,ye.attachWorkDone(i,v),ye.attachPartialResult(i,v))),onCodeAction:x=>i.onRequest(Z.CodeActionRequest.type,(v,F)=>x(v,F,ye.attachWorkDone(i,v),ye.attachPartialResult(i,v))),onCodeActionResolve:x=>i.onRequest(Z.CodeActionResolveRequest.type,(v,F)=>x(v,F)),onCodeLens:x=>i.onRequest(Z.CodeLensRequest.type,(v,F)=>x(v,F,ye.attachWorkDone(i,v),ye.attachPartialResult(i,v))),onCodeLensResolve:x=>i.onRequest(Z.CodeLensResolveRequest.type,(v,F)=>x(v,F)),onDocumentFormatting:x=>i.onRequest(Z.DocumentFormattingRequest.type,(v,F)=>x(v,F,ye.attachWorkDone(i,v),void 0)),onDocumentRangeFormatting:x=>i.onRequest(Z.DocumentRangeFormattingRequest.type,(v,F)=>x(v,F,ye.attachWorkDone(i,v),void 0)),onDocumentOnTypeFormatting:x=>i.onRequest(Z.DocumentOnTypeFormattingRequest.type,(v,F)=>x(v,F)),onRenameRequest:x=>i.onRequest(Z.RenameRequest.type,(v,F)=>x(v,F,ye.attachWorkDone(i,v),void 0)),onPrepareRename:x=>i.onRequest(Z.PrepareRenameRequest.type,(v,F)=>x(v,F)),onDocumentLinks:x=>i.onRequest(Z.DocumentLinkRequest.type,(v,F)=>x(v,F,ye.attachWorkDone(i,v),ye.attachPartialResult(i,v))),onDocumentLinkResolve:x=>i.onRequest(Z.DocumentLinkResolveRequest.type,(v,F)=>x(v,F)),onDocumentColor:x=>i.onRequest(Z.DocumentColorRequest.type,(v,F)=>x(v,F,ye.attachWorkDone(i,v),ye.attachPartialResult(i,v))),onColorPresentation:x=>i.onRequest(Z.ColorPresentationRequest.type,(v,F)=>x(v,F,ye.attachWorkDone(i,v),ye.attachPartialResult(i,v))),onFoldingRanges:x=>i.onRequest(Z.FoldingRangeRequest.type,(v,F)=>x(v,F,ye.attachWorkDone(i,v),ye.attachPartialResult(i,v))),onSelectionRanges:x=>i.onRequest(Z.SelectionRangeRequest.type,(v,F)=>x(v,F,ye.attachWorkDone(i,v),ye.attachPartialResult(i,v))),onExecuteCommand:x=>i.onRequest(Z.ExecuteCommandRequest.type,(v,F)=>x(v,F,ye.attachWorkDone(i,v),void 0)),dispose:()=>i.dispose()};for(let x of u)x.attach(_);return i.onRequest(Z.InitializeRequest.type,x=>{e.initialize(x),Xt.string(x.trace)&&(o.trace=Z.Trace.fromString(x.trace));for(let v of u)v.initialize(x.capabilities);if(g){let v=g(x,new Z.CancellationTokenSource().token,ye.attachWorkDone(i,x),void 0);return h(v).then(F=>{if(F instanceof Z.ResponseError)return F;let B=F;B||(B={capabilities:{}});let Y=B.capabilities;Y||(Y={},B.capabilities=Y),Y.textDocumentSync===void 0||Y.textDocumentSync===null?Y.textDocumentSync=Xt.number(_.__textDocumentSync)?_.__textDocumentSync:Z.TextDocumentSyncKind.None:!Xt.number(Y.textDocumentSync)&&!Xt.number(Y.textDocumentSync.change)&&(Y.textDocumentSync.change=Xt.number(_.__textDocumentSync)?_.__textDocumentSync:Z.TextDocumentSyncKind.None);for(let ce of u)ce.fillServerCapabilities(Y);return B})}else{let v={capabilities:{textDocumentSync:Z.TextDocumentSyncKind.None}};for(let F of u)F.fillServerCapabilities(v.capabilities);return v}}),i.onRequest(Z.ShutdownRequest.type,()=>{if(e.shutdownReceived=!0,p)return p(new Z.CancellationTokenSource().token)}),i.onNotification(Z.ExitNotification.type,()=>{try{y&&y()}finally{e.shutdownReceived?e.exit(0):e.exit(1)}}),i.onNotification(Z.SetTraceNotification.type,x=>{o.trace=Z.Trace.fromString(x.value)}),_}De.createConnection=e_});var $p=se(At=>{"use strict";Object.defineProperty(At,"__esModule",{value:!0});At.resolveModulePath=At.FileSystem=At.resolveGlobalYarnPath=At.resolveGlobalNodePath=At.resolve=At.uriToFilePath=void 0;var t_=require("url"),sn=require("path"),ac=require("fs"),sc=require("child_process");function n_(t){let e=t_.parse(t);if(e.protocol!=="file:"||!e.path)return;let n=e.path.split("/");for(var r=0,i=n.length;r1){let o=n[0],a=n[1];o.length===0&&a.length>1&&a[1]===":"&&n.shift()}return sn.normalize(n.join("/"))}At.uriToFilePath=n_;function lc(){return process.platform==="win32"}function ma(t,e,n,r){let i="NODE_PATH",o=["var p = process;","p.on('message',function(m){","if(m.c==='e'){","p.exit(0);","}","else if(m.c==='rs'){","try{","var r=require.resolve(m.a);","p.send({c:'r',s:true,r:r});","}","catch(err){","p.send({c:'r',s:false});","}","}","});"].join("");return new Promise((a,s)=>{let l=process.env,c=Object.create(null);Object.keys(l).forEach(d=>c[d]=l[d]),e&&ac.existsSync(e)&&(c[i]?c[i]=e+sn.delimiter+c[i]:c[i]=e,r&&r(`NODE_PATH value is: ${c[i]}`)),c.ELECTRON_RUN_AS_NODE="1";try{let d=sc.fork("",[],{cwd:n,env:c,execArgv:["-e",o]});if(d.pid===void 0){s(new Error(`Starting process to resolve node module ${t} failed`));return}d.on("error",h=>{s(h)}),d.on("message",h=>{h.c==="r"&&(d.send({c:"e"}),h.s?a(h.r):s(new Error(`Failed to resolve module: ${t}`)))});let u={c:"rs",a:t};d.send(u)}catch(d){s(d)}})}At.resolve=ma;function cc(t){let e="npm",n=Object.create(null);Object.keys(process.env).forEach(o=>n[o]=process.env[o]),n.NO_UPDATE_NOTIFIER="true";let r={encoding:"utf8",env:n};lc()&&(e="npm.cmd",r.shell=!0);let i=()=>{};try{process.on("SIGPIPE",i);let o=sc.spawnSync(e,["config","get","prefix"],r).stdout;if(!o){t&&t("'npm config get prefix' didn't return a value.");return}let a=o.trim();return t&&t(`'npm config get prefix' value is: ${a}`),a.length>0?lc()?sn.join(a,"node_modules"):sn.join(a,"lib","node_modules"):void 0}catch{return}finally{process.removeListener("SIGPIPE",i)}}At.resolveGlobalNodePath=cc;function r_(t){let e="yarn",n={encoding:"utf8"};lc()&&(e="yarn.cmd",n.shell=!0);let r=()=>{};try{process.on("SIGPIPE",r);let i=sc.spawnSync(e,["global","dir","--json"],n),o=i.stdout;if(!o){t&&(t("'yarn global dir' didn't return a value."),i.stderr&&t(i.stderr));return}let a=o.trim().split(/\r?\n/);for(let s of a)try{let l=JSON.parse(s);if(l.type==="log")return sn.join(l.data,"node_modules")}catch{}return}catch{return}finally{process.removeListener("SIGPIPE",r)}}At.resolveGlobalYarnPath=r_;var Vp;(function(t){let e;function n(){return e!==void 0||(process.platform==="win32"?e=!1:e=!ac.existsSync(__filename.toUpperCase())||!ac.existsSync(__filename.toLowerCase())),e}t.isCaseSensitive=n;function r(i,o){return n()?sn.normalize(o).indexOf(sn.normalize(i))===0:sn.normalize(o).toLowerCase().indexOf(sn.normalize(i).toLowerCase())===0}t.isParent=r})(Vp=At.FileSystem||(At.FileSystem={}));function i_(t,e,n,r){return n?(sn.isAbsolute(n)||(n=sn.join(t,n)),ma(e,n,n,r).then(i=>Vp.isParent(n,i)?i:Promise.reject(new Error(`Failed to load ${e} from node path location.`))).then(void 0,i=>ma(e,cc(r),t,r))):ma(e,cc(r),t,r)}At.resolveModulePath=i_});var dc=se((YT,Gp)=>{"use strict";Gp.exports=Ut()});var Jp=se(Ht=>{"use strict";var o_=Ht&&Ht.__createBinding||(Object.create?function(t,e,n,r){r===void 0&&(r=n),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,r){r===void 0&&(r=n),t[r]=e[n]}),Kp=Ht&&Ht.__exportStar||function(t,e){for(var n in t)n!=="default"&&!Object.prototype.hasOwnProperty.call(e,n)&&o_(e,t,n)};Object.defineProperty(Ht,"__esModule",{value:!0});Ht.ProposedFeatures=Ht.SemanticTokensBuilder=void 0;var a_=Xl();Object.defineProperty(Ht,"SemanticTokensBuilder",{enumerable:!0,get:function(){return a_.SemanticTokensBuilder}});Kp(Ut(),Ht);Kp(oc(),Ht);var s_;(function(t){t.all={__brand:"features"}})(s_=Ht.ProposedFeatures||(Ht.ProposedFeatures={}))});var Yr=se(jt=>{"use strict";var l_=jt&&jt.__createBinding||(Object.create?function(t,e,n,r){r===void 0&&(r=n),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,r){r===void 0&&(r=n),t[r]=e[n]}),Xp=jt&&jt.__exportStar||function(t,e){for(var n in t)n!=="default"&&!Object.prototype.hasOwnProperty.call(e,n)&&l_(e,t,n)};Object.defineProperty(jt,"__esModule",{value:!0});jt.createConnection=jt.Files=void 0;var uc=Uo(),c_=oc(),Qi=$p(),xr=dc();Xp(dc(),jt);Xp(Jp(),jt);var d_;(function(t){t.uriToFilePath=Qi.uriToFilePath,t.resolveGlobalNodePath=Qi.resolveGlobalNodePath,t.resolveGlobalYarnPath=Qi.resolveGlobalYarnPath,t.resolve=Qi.resolve,t.resolveModulePath=Qi.resolveModulePath})(d_=jt.Files||(jt.Files={}));var Yp;function fa(){if(Yp!==void 0)try{Yp.end()}catch{}}var Xr=!1,Qp;function u_(){let t="--clientProcessId";function e(n){try{let r=parseInt(n);isNaN(r)||(Qp=setInterval(()=>{try{process.kill(r,0)}catch{fa(),process.exit(Xr?0:1)}},3e3))}catch{}}for(let n=2;n{let e=t.processId;uc.number(e)&&Qp===void 0&&setInterval(()=>{try{process.kill(e,0)}catch{process.exit(Xr?0:1)}},3e3)},get shutdownReceived(){return Xr},set shutdownReceived(t){Xr=t},exit:t=>{fa(),process.exit(t)}};function p_(t,e,n,r){let i,o,a,s;return t!==void 0&&t.__brand==="features"&&(i=t,t=e,e=n,n=r),xr.ConnectionStrategy.is(t)||xr.ConnectionOptions.is(t)?s=t:(o=t,a=e,s=n),m_(o,a,s,i)}jt.createConnection=p_;function m_(t,e,n,r){if(!t&&!e&&process.argv.length>2){let s,l,c=process.argv.slice(2);for(let d=0;d{fa(),process.exit(Xr?0:1)}),s.on("close",()=>{fa(),process.exit(Xr?0:1)})}let a=s=>xr.createProtocolConnection(t,e,s,n);return c_.createConnection(a,h_,r)}});var em=se((e1,Zp)=>{"use strict";Zp.exports=Yr()});function Zi(t,e){if(e instanceof Error){let n=e;return`${t}: ${n.message} +${n.stack}`}else{if(typeof e=="string")return`${t}: ${e}`;if(e)return`${t}: ${e.toString()}`}return t}function Ke(t,e,n,r,i){return new Promise(o=>{t.timer.setImmediate(()=>{if(i.isCancellationRequested){o(tm());return}return e().then(a=>{if(i.isCancellationRequested){o(tm());return}else o(a)},a=>{console.error(Zi(r,a)),o(n)})})})}function tm(){return new ga.ResponseError(ga.LSPErrorCodes.RequestCancelled,"Request cancelled")}var ga,hc=X(()=>{ga=Oe(Yr())});var m,nm,pc,f_,rm,mc,g_,im,ba,va,b_,v_,eo,y_,Qr,om,w_,fc,am,sm,x_,S_,__,k_,C_,gc,lm,Zr,ei,to,cm,dm,bc,vc,T_,D_,R_,E_,A_,F_,M_,um,hm,bn,tt,vn,er=X(()=>{"use strict";(function(t){t[t.Ident=0]="Ident",t[t.AtKeyword=1]="AtKeyword",t[t.String=2]="String",t[t.BadString=3]="BadString",t[t.UnquotedString=4]="UnquotedString",t[t.Hash=5]="Hash",t[t.Num=6]="Num",t[t.Percentage=7]="Percentage",t[t.Dimension=8]="Dimension",t[t.UnicodeRange=9]="UnicodeRange",t[t.CDO=10]="CDO",t[t.CDC=11]="CDC",t[t.Colon=12]="Colon",t[t.SemiColon=13]="SemiColon",t[t.CurlyL=14]="CurlyL",t[t.CurlyR=15]="CurlyR",t[t.ParenthesisL=16]="ParenthesisL",t[t.ParenthesisR=17]="ParenthesisR",t[t.BracketL=18]="BracketL",t[t.BracketR=19]="BracketR",t[t.Whitespace=20]="Whitespace",t[t.Includes=21]="Includes",t[t.Dashmatch=22]="Dashmatch",t[t.SubstringOperator=23]="SubstringOperator",t[t.PrefixOperator=24]="PrefixOperator",t[t.SuffixOperator=25]="SuffixOperator",t[t.Delim=26]="Delim",t[t.EMS=27]="EMS",t[t.EXS=28]="EXS",t[t.Length=29]="Length",t[t.Angle=30]="Angle",t[t.Time=31]="Time",t[t.Freq=32]="Freq",t[t.Exclamation=33]="Exclamation",t[t.Resolution=34]="Resolution",t[t.Comma=35]="Comma",t[t.Charset=36]="Charset",t[t.EscapedJavaScript=37]="EscapedJavaScript",t[t.BadEscapedJavaScript=38]="BadEscapedJavaScript",t[t.Comment=39]="Comment",t[t.SingleLineComment=40]="SingleLineComment",t[t.EOF=41]="EOF",t[t.CustomToken=42]="CustomToken"})(m||(m={}));nm=function(){function t(e){this.source=e,this.len=e.length,this.position=0}return t.prototype.substring=function(e,n){return n===void 0&&(n=this.position),this.source.substring(e,n)},t.prototype.eos=function(){return this.len<=this.position},t.prototype.pos=function(){return this.position},t.prototype.goBackTo=function(e){this.position=e},t.prototype.goBack=function(e){this.position-=e},t.prototype.advance=function(e){this.position+=e},t.prototype.nextChar=function(){return this.source.charCodeAt(this.position++)||0},t.prototype.peekChar=function(e){return e===void 0&&(e=0),this.source.charCodeAt(this.position+e)||0},t.prototype.lookbackChar=function(e){return e===void 0&&(e=0),this.source.charCodeAt(this.position-e)||0},t.prototype.advanceIfChar=function(e){return e===this.source.charCodeAt(this.position)?(this.position++,!0):!1},t.prototype.advanceIfChars=function(e){if(this.position+e.length>this.source.length)return!1;for(var n=0;n=ba&&n<=va?(this.stream.advance(e+1),this.stream.advanceWhileChar(function(r){return r>=ba&&r<=va||e===0&&r===um}),!0):!1},t.prototype._newline=function(e){var n=this.stream.peekChar();switch(n){case ei:case to:case Zr:return this.stream.advance(1),e.push(String.fromCharCode(n)),n===ei&&this.stream.advanceIfChar(Zr)&&e.push(` +`),!0}return!1},t.prototype._escape=function(e,n){var r=this.stream.peekChar();if(r===gc){this.stream.advance(1),r=this.stream.peekChar();for(var i=0;i<6&&(r>=ba&&r<=va||r>=pc&&r<=f_||r>=mc&&r<=g_);)this.stream.advance(1),r=this.stream.peekChar(),i++;if(i>0){try{var o=parseInt(this.stream.substring(this.stream.pos()-i),16);o&&e.push(String.fromCharCode(o))}catch{}return r===bc||r===vc?this.stream.advance(1):this._newline([]),!0}if(r!==ei&&r!==to&&r!==Zr)return this.stream.advance(1),e.push(String.fromCharCode(r)),!0;if(n)return this._newline(e)}return!1},t.prototype._stringChar=function(e,n){var r=this.stream.peekChar();return r!==0&&r!==e&&r!==gc&&r!==ei&&r!==to&&r!==Zr?(this.stream.advance(1),n.push(String.fromCharCode(r)),!0):!1},t.prototype._string=function(e){if(this.stream.peekChar()===dm||this.stream.peekChar()===cm){var n=this.stream.nextChar();for(e.push(String.fromCharCode(n));this._stringChar(n,e)||this._escape(e,!0););return this.stream.peekChar()===n?(this.stream.nextChar(),e.push(String.fromCharCode(n)),m.String):m.BadString}return null},t.prototype._unquotedChar=function(e){var n=this.stream.peekChar();return n!==0&&n!==gc&&n!==dm&&n!==cm&&n!==am&&n!==sm&&n!==bc&&n!==vc&&n!==Zr&&n!==to&&n!==ei?(this.stream.advance(1),e.push(String.fromCharCode(n)),!0):!1},t.prototype._unquotedString=function(e){for(var n=!1;this._unquotedChar(e)||this._escape(e);)n=!0;return n},t.prototype._whitespace=function(){var e=this.stream.advanceWhileChar(function(n){return n===bc||n===vc||n===Zr||n===to||n===ei});return e>0},t.prototype._name=function(e){for(var n=!1;this._identChar(e)||this._escape(e);)n=!0;return n},t.prototype.ident=function(e){var n=this.stream.pos(),r=this._minus(e);if(r){if(this._minus(e)||this._identFirstChar(e)||this._escape(e)){for(;this._identChar(e)||this._escape(e););return!0}}else if(this._identFirstChar(e)||this._escape(e)){for(;this._identChar(e)||this._escape(e););return!0}return this.stream.goBackTo(n),!1},t.prototype._identFirstChar=function(e){var n=this.stream.peekChar();return n===om||n>=pc&&n<=rm||n>=mc&&n<=im||n>=128&&n<=65535?(this.stream.advance(1),e.push(String.fromCharCode(n)),!0):!1},t.prototype._minus=function(e){var n=this.stream.peekChar();return n===Qr?(this.stream.advance(1),e.push(String.fromCharCode(n)),!0):!1},t.prototype._identChar=function(e){var n=this.stream.peekChar();return n===om||n===Qr||n>=pc&&n<=rm||n>=mc&&n<=im||n>=ba&&n<=va||n>=128&&n<=65535?(this.stream.advance(1),e.push(String.fromCharCode(n)),!0):!1},t}()});function Le(t,e){if(t.length0?t.lastIndexOf(e)===n:n===0?t===e:!1}function pm(t,e,n){n===void 0&&(n=4);var r=Math.abs(t.length-e.length);if(r>n)return 0;var i=[],o=[],a,s;for(a=0;a{"use strict"});function wa(t,e){var n=null;return!t||et.end?null:(t.accept(function(r){return r.offset===-1&&r.length===-1?!0:r.offset<=e&&r.end>=e?(n?r.length<=n.length&&(n=r):n=r,!0):!1}),n)}function ti(t,e){for(var n=wa(t,e),r=[];n;)r.unshift(n),n=n.parent;return r}function fm(t){var e=t.findParent(T.Declaration),n=e&&e.getValue();return n&&n.encloses(t)?e:null}var re,T,be,ne,dt,ut,gm,no,Ne,Mn,yn,wn,i1,xa,bm,St,vm,ni,I_,Pn,nr,ln,ym,wm,xm,Sm,_m,Sr,km,Sa,wc,_a,xc,ri,Cm,Tm,Dm,Rm,Em,ka,ro,Am,Ca,Ta,Fm,Mm,_r,Pm,zm,Da,ii,Im,Lm,o1,io,Nm,L_,N_,W_,oo,rr,ao,oi,ir,Wm,Om,kr,zn,Ra,qm,Um,Hm,Sc,mt,Ea,jm,ft=X(()=>{"use strict";tr();re=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}();(function(t){t[t.Undefined=0]="Undefined",t[t.Identifier=1]="Identifier",t[t.Stylesheet=2]="Stylesheet",t[t.Ruleset=3]="Ruleset",t[t.Selector=4]="Selector",t[t.SimpleSelector=5]="SimpleSelector",t[t.SelectorInterpolation=6]="SelectorInterpolation",t[t.SelectorCombinator=7]="SelectorCombinator",t[t.SelectorCombinatorParent=8]="SelectorCombinatorParent",t[t.SelectorCombinatorSibling=9]="SelectorCombinatorSibling",t[t.SelectorCombinatorAllSiblings=10]="SelectorCombinatorAllSiblings",t[t.SelectorCombinatorShadowPiercingDescendant=11]="SelectorCombinatorShadowPiercingDescendant",t[t.Page=12]="Page",t[t.PageBoxMarginBox=13]="PageBoxMarginBox",t[t.ClassSelector=14]="ClassSelector",t[t.IdentifierSelector=15]="IdentifierSelector",t[t.ElementNameSelector=16]="ElementNameSelector",t[t.PseudoSelector=17]="PseudoSelector",t[t.AttributeSelector=18]="AttributeSelector",t[t.Declaration=19]="Declaration",t[t.Declarations=20]="Declarations",t[t.Property=21]="Property",t[t.Expression=22]="Expression",t[t.BinaryExpression=23]="BinaryExpression",t[t.Term=24]="Term",t[t.Operator=25]="Operator",t[t.Value=26]="Value",t[t.StringLiteral=27]="StringLiteral",t[t.URILiteral=28]="URILiteral",t[t.EscapedValue=29]="EscapedValue",t[t.Function=30]="Function",t[t.NumericValue=31]="NumericValue",t[t.HexColorValue=32]="HexColorValue",t[t.RatioValue=33]="RatioValue",t[t.MixinDeclaration=34]="MixinDeclaration",t[t.MixinReference=35]="MixinReference",t[t.VariableName=36]="VariableName",t[t.VariableDeclaration=37]="VariableDeclaration",t[t.Prio=38]="Prio",t[t.Interpolation=39]="Interpolation",t[t.NestedProperties=40]="NestedProperties",t[t.ExtendsReference=41]="ExtendsReference",t[t.SelectorPlaceholder=42]="SelectorPlaceholder",t[t.Debug=43]="Debug",t[t.If=44]="If",t[t.Else=45]="Else",t[t.For=46]="For",t[t.Each=47]="Each",t[t.While=48]="While",t[t.MixinContentReference=49]="MixinContentReference",t[t.MixinContentDeclaration=50]="MixinContentDeclaration",t[t.Media=51]="Media",t[t.Keyframe=52]="Keyframe",t[t.FontFace=53]="FontFace",t[t.Import=54]="Import",t[t.Namespace=55]="Namespace",t[t.Invocation=56]="Invocation",t[t.FunctionDeclaration=57]="FunctionDeclaration",t[t.ReturnStatement=58]="ReturnStatement",t[t.MediaQuery=59]="MediaQuery",t[t.MediaCondition=60]="MediaCondition",t[t.MediaFeature=61]="MediaFeature",t[t.FunctionParameter=62]="FunctionParameter",t[t.FunctionArgument=63]="FunctionArgument",t[t.KeyframeSelector=64]="KeyframeSelector",t[t.ViewPort=65]="ViewPort",t[t.Document=66]="Document",t[t.AtApplyRule=67]="AtApplyRule",t[t.CustomPropertyDeclaration=68]="CustomPropertyDeclaration",t[t.CustomPropertySet=69]="CustomPropertySet",t[t.ListEntry=70]="ListEntry",t[t.Supports=71]="Supports",t[t.SupportsCondition=72]="SupportsCondition",t[t.NamespacePrefix=73]="NamespacePrefix",t[t.GridLine=74]="GridLine",t[t.Plugin=75]="Plugin",t[t.UnknownAtRule=76]="UnknownAtRule",t[t.Use=77]="Use",t[t.ModuleConfiguration=78]="ModuleConfiguration",t[t.Forward=79]="Forward",t[t.ForwardVisibility=80]="ForwardVisibility",t[t.Module=81]="Module"})(T||(T={}));(function(t){t[t.Mixin=0]="Mixin",t[t.Rule=1]="Rule",t[t.Variable=2]="Variable",t[t.Function=3]="Function",t[t.Keyframe=4]="Keyframe",t[t.Unknown=5]="Unknown",t[t.Module=6]="Module",t[t.Forward=7]="Forward",t[t.ForwardVisibility=8]="ForwardVisibility"})(be||(be={}));ne=function(){function t(e,n,r){e===void 0&&(e=-1),n===void 0&&(n=-1),this.parent=null,this.offset=e,this.length=n,r&&(this.nodeType=r)}return Object.defineProperty(t.prototype,"end",{get:function(){return this.offset+this.length},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"type",{get:function(){return this.nodeType||T.Undefined},set:function(e){this.nodeType=e},enumerable:!1,configurable:!0}),t.prototype.getTextProvider=function(){for(var e=this;e&&!e.textProvider;)e=e.parent;return e?e.textProvider:function(){return"unknown"}},t.prototype.getText=function(){return this.getTextProvider()(this.offset,this.length)},t.prototype.matches=function(e){return this.length===e.length&&this.getTextProvider()(this.offset,this.length)===e},t.prototype.startsWith=function(e){return this.length>=e.length&&this.getTextProvider()(this.offset,e.length)===e},t.prototype.endsWith=function(e){return this.length>=e.length&&this.getTextProvider()(this.end-e.length,e.length)===e},t.prototype.accept=function(e){if(e(this)&&this.children)for(var n=0,r=this.children;n=0&&e.parent.children.splice(r,1)}e.parent=this;var i=this.children;return i||(i=this.children=[]),n!==-1?i.splice(n,0,e):i.push(e),e},t.prototype.attachTo=function(e,n){return n===void 0&&(n=-1),e&&e.adoptChild(this,n),this},t.prototype.collectIssues=function(e){this.issues&&e.push.apply(e,this.issues)},t.prototype.addIssue=function(e){this.issues||(this.issues=[]),this.issues.push(e)},t.prototype.hasIssue=function(e){return Array.isArray(this.issues)&&this.issues.some(function(n){return n.getRule()===e})},t.prototype.isErroneous=function(e){return e===void 0&&(e=!1),this.issues&&this.issues.length>0?!0:e&&Array.isArray(this.children)&&this.children.some(function(n){return n.isErroneous(!0)})},t.prototype.setNode=function(e,n,r){return r===void 0&&(r=-1),n?(n.attachTo(this,r),this[e]=n,!0):!1},t.prototype.addChild=function(e){return e?(this.children||(this.children=[]),e.attachTo(this),this.updateOffsetAndLength(e),!0):!1},t.prototype.updateOffsetAndLength=function(e){(e.offsetthis.end||this.length===-1)&&(this.length=n-this.offset)},t.prototype.hasChildren=function(){return!!this.children&&this.children.length>0},t.prototype.getChildren=function(){return this.children?this.children.slice(0):[]},t.prototype.getChild=function(e){return this.children&&e=0;r--)if(n=this.children[r],n.offset<=e)return n}return null},t.prototype.findChildAtOffset=function(e,n){var r=this.findFirstChildBeforeOffset(e);return r&&r.end>=e?n&&r.findChildAtOffset(e,!0)||r:null},t.prototype.encloses=function(e){return this.offset<=e.offset&&this.offset+this.length>=e.offset+e.length},t.prototype.getParent=function(){for(var e=this.parent;e instanceof dt;)e=e.parent;return e},t.prototype.findParent=function(e){for(var n=this;n&&n.type!==e;)n=n.parent;return n},t.prototype.findAParent=function(){for(var e=[],n=0;n{"use strict";Object.defineProperty(Cc,"__esModule",{value:!0});var _c;function kc(){if(_c===void 0)throw new Error("No runtime abstraction layer installed");return _c}(function(t){function e(n){if(n===void 0)throw new Error("No runtime abstraction layer provided");_c=n}t.install=e})(kc||(kc={}));Cc.default=kc});var Rc=se(Ue=>{"use strict";Object.defineProperty(Ue,"__esModule",{value:!0});Ue.config=Ue.loadMessageBundle=Ue.localize=Ue.format=Ue.setPseudo=Ue.isPseudo=Ue.isDefined=Ue.BundleFormat=Ue.MessageFormat=void 0;var Bm=Tc(),O_;(function(t){t.file="file",t.bundle="bundle",t.both="both"})(O_=Ue.MessageFormat||(Ue.MessageFormat={}));var q_;(function(t){t.standalone="standalone",t.languagePack="languagePack"})(q_=Ue.BundleFormat||(Ue.BundleFormat={}));var Vm;(function(t){function e(n){var r=n;return r&&Dc(r.key)&&Dc(r.comment)}t.is=e})(Vm||(Vm={}));function Dc(t){return typeof t!="undefined"}Ue.isDefined=Dc;Ue.isPseudo=!1;function U_(t){Ue.isPseudo=t}Ue.setPseudo=U_;function $m(t,e){var n;return Ue.isPseudo&&(t="\uFF3B"+t.replace(/[aouei]/g,"$&$&")+"\uFF3D"),e.length===0?n=t:n=t.replace(/\{(\d+)\}/g,function(r,i){var o=i[0],a=e[o],s=r;return typeof a=="string"?s=a:(typeof a=="number"||typeof a=="boolean"||a===void 0||a===null)&&(s=String(a)),s}),n}Ue.format=$m;function H_(t,e){for(var n=[],r=2;r{"use strict";Object.defineProperty(or,"__esModule",{value:!0});or.config=or.loadMessageBundle=void 0;var cn=require("path"),Yt=require("fs"),V_=Tc(),Nt=Rc(),Gm=Rc();Object.defineProperty(or,"MessageFormat",{enumerable:!0,get:function(){return Gm.MessageFormat}});Object.defineProperty(or,"BundleFormat",{enumerable:!0,get:function(){return Gm.BundleFormat}});var Km=Object.prototype.toString;function $_(t){return Km.call(t)==="[object Number]"}function In(t){return Km.call(t)==="[object String]"}function G_(t){return t===!0||t===!1}function ai(t){return JSON.parse(Yt.readFileSync(t,"utf8"))}var Aa,_e;function K_(){if(_e={locale:void 0,language:void 0,languagePackSupport:!1,cacheLanguageResolution:!0,messageFormat:Nt.MessageFormat.bundle},In(process.env.VSCODE_NLS_CONFIG))try{var t=JSON.parse(process.env.VSCODE_NLS_CONFIG),e=void 0;if(t.availableLanguages){var n=t.availableLanguages["*"];In(n)&&(e=n)}if(In(t.locale)&&(_e.locale=t.locale.toLowerCase()),e===void 0?_e.language=_e.locale:e!=="en"&&(_e.language=e),G_(t._languagePackSupport)&&(_e.languagePackSupport=t._languagePackSupport),In(t._cacheRoot)&&(_e.cacheRoot=t._cacheRoot),In(t._languagePackId)&&(_e.languagePackId=t._languagePackId),In(t._translationsConfigFile)){_e.translationsConfigFile=t._translationsConfigFile;try{_e.translationsConfig=ai(_e.translationsConfigFile)}catch{if(t._corruptedFile){var r=cn.dirname(t._corruptedFile);Yt.exists(r,function(o){o&&Yt.writeFile(t._corruptedFile,"corrupted","utf8",function(a){console.error(a)})})}}}}catch{}Nt.setPseudo(_e.locale==="pseudo"),Aa=Object.create(null)}K_();function J_(){return _e.languagePackSupport===!0&&_e.cacheRoot!==void 0&&_e.languagePackId!==void 0&&_e.translationsConfigFile!==void 0&&_e.translationsConfig!==void 0}function Ec(t){return function(e,n){for(var r=[],i=2;i=t.length){console.error(`Broken localize call found. Index out of bounds. Stacktrace is +: `+new Error("").stack);return}return Nt.format(t[e],r)}else{if(In(n))return console.warn("Message "+n+" didn't get externalized correctly."),Nt.format(n,r);console.error(`Broken localize call found. Stacktrace is +: `+new Error("").stack)}}}function X_(t){var e;if(_e.cacheLanguageResolution&&e)e=e;else{if(Nt.isPseudo||!_e.language)e=".nls.json";else for(var n=_e.language;n;){var r=".nls."+n+".json";if(Yt.existsSync(t+r)){e=r;break}else{var i=n.lastIndexOf("-");i>0?n=n.substring(0,i):(e=".nls.json",n=null)}}_e.cacheLanguageResolution&&(e=e)}return t+e}function Y_(t){for(var e=_e.language;e;){var n=cn.join(t,"nls.bundle."+e+".json");if(Yt.existsSync(n))return n;var r=e.lastIndexOf("-");r>0?e=e.substring(0,r):e=void 0}if(e===void 0){var n=cn.join(t,"nls.bundle.json");if(Yt.existsSync(n))return n}}function Q_(t){var e=ai(cn.join(t,"nls.metadata.json")),n=Object.create(null);for(var r in e){var i=e[r];n[r]=i.messages}return n}function Z_(t,e){var n=_e.translationsConfig[t.id];if(!!n){var r=ai(n).contents,i=ai(cn.join(e,"nls.metadata.json")),o=Object.create(null);for(var a in i){var s=i[a],l=r[t.outDir+"/"+a];if(l){for(var c=[],d=0;d{"use strict";Ym=Oe(Mt()),Ce=Ym.loadMessageBundle(),Te=function(){function t(e,n){this.id=e,this.message=n}return t}(),I={NumberExpected:new Te("css-numberexpected",Ce("expected.number","number expected")),ConditionExpected:new Te("css-conditionexpected",Ce("expected.condt","condition expected")),RuleOrSelectorExpected:new Te("css-ruleorselectorexpected",Ce("expected.ruleorselector","at-rule or selector expected")),DotExpected:new Te("css-dotexpected",Ce("expected.dot","dot expected")),ColonExpected:new Te("css-colonexpected",Ce("expected.colon","colon expected")),SemiColonExpected:new Te("css-semicolonexpected",Ce("expected.semicolon","semi-colon expected")),TermExpected:new Te("css-termexpected",Ce("expected.term","term expected")),ExpressionExpected:new Te("css-expressionexpected",Ce("expected.expression","expression expected")),OperatorExpected:new Te("css-operatorexpected",Ce("expected.operator","operator expected")),IdentifierExpected:new Te("css-identifierexpected",Ce("expected.ident","identifier expected")),PercentageExpected:new Te("css-percentageexpected",Ce("expected.percentage","percentage expected")),URIOrStringExpected:new Te("css-uriorstringexpected",Ce("expected.uriorstring","uri or string expected")),URIExpected:new Te("css-uriexpected",Ce("expected.uri","URI expected")),VariableNameExpected:new Te("css-varnameexpected",Ce("expected.varname","variable name expected")),VariableValueExpected:new Te("css-varvalueexpected",Ce("expected.varvalue","variable value expected")),PropertyValueExpected:new Te("css-propertyvalueexpected",Ce("expected.propvalue","property value expected")),LeftCurlyExpected:new Te("css-lcurlyexpected",Ce("expected.lcurly","{ expected")),RightCurlyExpected:new Te("css-rcurlyexpected",Ce("expected.rcurly","} expected")),LeftSquareBracketExpected:new Te("css-rbracketexpected",Ce("expected.lsquare","[ expected")),RightSquareBracketExpected:new Te("css-lbracketexpected",Ce("expected.rsquare","] expected")),LeftParenthesisExpected:new Te("css-lparentexpected",Ce("expected.lparen","( expected")),RightParenthesisExpected:new Te("css-rparentexpected",Ce("expected.rparent",") expected")),CommaExpected:new Te("css-commaexpected",Ce("expected.comma","comma expected")),PageDirectiveOrDeclarationExpected:new Te("css-pagedirordeclexpected",Ce("expected.pagedirordecl","page directive or declaraton expected")),UnknownAtRule:new Te("css-unknownatrule",Ce("unknown.atrule","at-rule unknown")),UnknownKeyword:new Te("css-unknownkeyword",Ce("unknown.keyword","unknown keyword")),SelectorExpected:new Te("css-selectorexpected",Ce("expected.selector","selector expected")),StringLiteralExpected:new Te("css-stringliteralexpected",Ce("expected.stringliteral","string literal expected")),WhitespaceExpected:new Te("css-whitespaceexpected",Ce("expected.whitespace","whitespace expected")),MediaQueryExpected:new Te("css-mediaqueryexpected",Ce("expected.mediaquery","media query expected")),IdentifierOrWildcardExpected:new Te("css-idorwildcardexpected",Ce("expected.idorwildcard","identifier or wildcard expected")),WildcardExpected:new Te("css-wildcardexpected",Ce("expected.wildcard","wildcard expected")),IdentifierOrVariableExpected:new Te("css-idorvarexpected",Ce("expected.idorvar","identifier or variable expected"))}});var Qm,Ma,_t,ke,Cr,Zm,Pa,Mc,Pc,zc,Ic,Lc,si,ef,tf,so,ar,de,li,kt,sr,Tr,lo,co,uo,za,Ia,nf,d1,rf,ho,La,of,Ct,Na,ae,gt,Ln,af,sf,Nc,Wc,po,Oc,lf,cf,lr,qc,Nn,df,Uc,Hc,mo,jc,fo,uf,hf,Bc,ci,pf,ik,W,mf=X(()=>{"use strict";(function(t){t.MIN_VALUE=-2147483648,t.MAX_VALUE=2147483647})(Qm||(Qm={}));(function(t){t.MIN_VALUE=0,t.MAX_VALUE=2147483647})(Ma||(Ma={}));(function(t){function e(r,i){return r===Number.MAX_VALUE&&(r=Ma.MAX_VALUE),i===Number.MAX_VALUE&&(i=Ma.MAX_VALUE),{line:r,character:i}}t.create=e;function n(r){var i=r;return W.objectLiteral(i)&&W.uinteger(i.line)&&W.uinteger(i.character)}t.is=n})(_t||(_t={}));(function(t){function e(r,i,o,a){if(W.uinteger(r)&&W.uinteger(i)&&W.uinteger(o)&&W.uinteger(a))return{start:_t.create(r,i),end:_t.create(o,a)};if(_t.is(r)&&_t.is(i))return{start:r,end:i};throw new Error("Range#create called with invalid arguments["+r+", "+i+", "+o+", "+a+"]")}t.create=e;function n(r){var i=r;return W.objectLiteral(i)&&_t.is(i.start)&&_t.is(i.end)}t.is=n})(ke||(ke={}));(function(t){function e(r,i){return{uri:r,range:i}}t.create=e;function n(r){var i=r;return W.defined(i)&&ke.is(i.range)&&(W.string(i.uri)||W.undefined(i.uri))}t.is=n})(Cr||(Cr={}));(function(t){function e(r,i,o,a){return{targetUri:r,targetRange:i,targetSelectionRange:o,originSelectionRange:a}}t.create=e;function n(r){var i=r;return W.defined(i)&&ke.is(i.targetRange)&&W.string(i.targetUri)&&(ke.is(i.targetSelectionRange)||W.undefined(i.targetSelectionRange))&&(ke.is(i.originSelectionRange)||W.undefined(i.originSelectionRange))}t.is=n})(Zm||(Zm={}));(function(t){function e(r,i,o,a){return{red:r,green:i,blue:o,alpha:a}}t.create=e;function n(r){var i=r;return W.numberRange(i.red,0,1)&&W.numberRange(i.green,0,1)&&W.numberRange(i.blue,0,1)&&W.numberRange(i.alpha,0,1)}t.is=n})(Pa||(Pa={}));(function(t){function e(r,i){return{range:r,color:i}}t.create=e;function n(r){var i=r;return ke.is(i.range)&&Pa.is(i.color)}t.is=n})(Mc||(Mc={}));(function(t){function e(r,i,o){return{label:r,textEdit:i,additionalTextEdits:o}}t.create=e;function n(r){var i=r;return W.string(i.label)&&(W.undefined(i.textEdit)||de.is(i))&&(W.undefined(i.additionalTextEdits)||W.typedArray(i.additionalTextEdits,de.is))}t.is=n})(Pc||(Pc={}));(function(t){t.Comment="comment",t.Imports="imports",t.Region="region"})(zc||(zc={}));(function(t){function e(r,i,o,a,s){var l={startLine:r,endLine:i};return W.defined(o)&&(l.startCharacter=o),W.defined(a)&&(l.endCharacter=a),W.defined(s)&&(l.kind=s),l}t.create=e;function n(r){var i=r;return W.uinteger(i.startLine)&&W.uinteger(i.startLine)&&(W.undefined(i.startCharacter)||W.uinteger(i.startCharacter))&&(W.undefined(i.endCharacter)||W.uinteger(i.endCharacter))&&(W.undefined(i.kind)||W.string(i.kind))}t.is=n})(Ic||(Ic={}));(function(t){function e(r,i){return{location:r,message:i}}t.create=e;function n(r){var i=r;return W.defined(i)&&Cr.is(i.location)&&W.string(i.message)}t.is=n})(Lc||(Lc={}));(function(t){t.Error=1,t.Warning=2,t.Information=3,t.Hint=4})(si||(si={}));(function(t){t.Unnecessary=1,t.Deprecated=2})(ef||(ef={}));(function(t){function e(n){var r=n;return r!=null&&W.string(r.href)}t.is=e})(tf||(tf={}));(function(t){function e(r,i,o,a,s,l){var c={range:r,message:i};return W.defined(o)&&(c.severity=o),W.defined(a)&&(c.code=a),W.defined(s)&&(c.source=s),W.defined(l)&&(c.relatedInformation=l),c}t.create=e;function n(r){var i,o=r;return W.defined(o)&&ke.is(o.range)&&W.string(o.message)&&(W.number(o.severity)||W.undefined(o.severity))&&(W.integer(o.code)||W.string(o.code)||W.undefined(o.code))&&(W.undefined(o.codeDescription)||W.string((i=o.codeDescription)===null||i===void 0?void 0:i.href))&&(W.string(o.source)||W.undefined(o.source))&&(W.undefined(o.relatedInformation)||W.typedArray(o.relatedInformation,Lc.is))}t.is=n})(so||(so={}));(function(t){function e(r,i){for(var o=[],a=2;a0&&(s.arguments=o),s}t.create=e;function n(r){var i=r;return W.defined(i)&&W.string(i.title)&&W.string(i.command)}t.is=n})(ar||(ar={}));(function(t){function e(o,a){return{range:o,newText:a}}t.replace=e;function n(o,a){return{range:{start:o,end:o},newText:a}}t.insert=n;function r(o){return{range:o,newText:""}}t.del=r;function i(o){var a=o;return W.objectLiteral(a)&&W.string(a.newText)&&ke.is(a.range)}t.is=i})(de||(de={}));(function(t){function e(r,i,o){var a={label:r};return i!==void 0&&(a.needsConfirmation=i),o!==void 0&&(a.description=o),a}t.create=e;function n(r){var i=r;return i!==void 0&&W.objectLiteral(i)&&W.string(i.label)&&(W.boolean(i.needsConfirmation)||i.needsConfirmation===void 0)&&(W.string(i.description)||i.description===void 0)}t.is=n})(li||(li={}));(function(t){function e(n){var r=n;return typeof r=="string"}t.is=e})(kt||(kt={}));(function(t){function e(o,a,s){return{range:o,newText:a,annotationId:s}}t.replace=e;function n(o,a,s){return{range:{start:o,end:o},newText:a,annotationId:s}}t.insert=n;function r(o,a){return{range:o,newText:"",annotationId:a}}t.del=r;function i(o){var a=o;return de.is(a)&&(li.is(a.annotationId)||kt.is(a.annotationId))}t.is=i})(sr||(sr={}));(function(t){function e(r,i){return{textDocument:r,edits:i}}t.create=e;function n(r){var i=r;return W.defined(i)&&La.is(i.textDocument)&&Array.isArray(i.edits)}t.is=n})(Tr||(Tr={}));(function(t){function e(r,i,o){var a={kind:"create",uri:r};return i!==void 0&&(i.overwrite!==void 0||i.ignoreIfExists!==void 0)&&(a.options=i),o!==void 0&&(a.annotationId=o),a}t.create=e;function n(r){var i=r;return i&&i.kind==="create"&&W.string(i.uri)&&(i.options===void 0||(i.options.overwrite===void 0||W.boolean(i.options.overwrite))&&(i.options.ignoreIfExists===void 0||W.boolean(i.options.ignoreIfExists)))&&(i.annotationId===void 0||kt.is(i.annotationId))}t.is=n})(lo||(lo={}));(function(t){function e(r,i,o,a){var s={kind:"rename",oldUri:r,newUri:i};return o!==void 0&&(o.overwrite!==void 0||o.ignoreIfExists!==void 0)&&(s.options=o),a!==void 0&&(s.annotationId=a),s}t.create=e;function n(r){var i=r;return i&&i.kind==="rename"&&W.string(i.oldUri)&&W.string(i.newUri)&&(i.options===void 0||(i.options.overwrite===void 0||W.boolean(i.options.overwrite))&&(i.options.ignoreIfExists===void 0||W.boolean(i.options.ignoreIfExists)))&&(i.annotationId===void 0||kt.is(i.annotationId))}t.is=n})(co||(co={}));(function(t){function e(r,i,o){var a={kind:"delete",uri:r};return i!==void 0&&(i.recursive!==void 0||i.ignoreIfNotExists!==void 0)&&(a.options=i),o!==void 0&&(a.annotationId=o),a}t.create=e;function n(r){var i=r;return i&&i.kind==="delete"&&W.string(i.uri)&&(i.options===void 0||(i.options.recursive===void 0||W.boolean(i.options.recursive))&&(i.options.ignoreIfNotExists===void 0||W.boolean(i.options.ignoreIfNotExists)))&&(i.annotationId===void 0||kt.is(i.annotationId))}t.is=n})(uo||(uo={}));(function(t){function e(n){var r=n;return r&&(r.changes!==void 0||r.documentChanges!==void 0)&&(r.documentChanges===void 0||r.documentChanges.every(function(i){return W.string(i.kind)?lo.is(i)||co.is(i)||uo.is(i):Tr.is(i)}))}t.is=e})(za||(za={}));Ia=function(){function t(e,n){this.edits=e,this.changeAnnotations=n}return t.prototype.insert=function(e,n,r){var i,o;if(r===void 0?i=de.insert(e,n):kt.is(r)?(o=r,i=sr.insert(e,n,r)):(this.assertChangeAnnotations(this.changeAnnotations),o=this.changeAnnotations.manage(r),i=sr.insert(e,n,o)),this.edits.push(i),o!==void 0)return o},t.prototype.replace=function(e,n,r){var i,o;if(r===void 0?i=de.replace(e,n):kt.is(r)?(o=r,i=sr.replace(e,n,r)):(this.assertChangeAnnotations(this.changeAnnotations),o=this.changeAnnotations.manage(r),i=sr.replace(e,n,o)),this.edits.push(i),o!==void 0)return o},t.prototype.delete=function(e,n){var r,i;if(n===void 0?r=de.del(e):kt.is(n)?(i=n,r=sr.del(e,n)):(this.assertChangeAnnotations(this.changeAnnotations),i=this.changeAnnotations.manage(n),r=sr.del(e,i)),this.edits.push(r),i!==void 0)return i},t.prototype.add=function(e){this.edits.push(e)},t.prototype.all=function(){return this.edits},t.prototype.clear=function(){this.edits.splice(0,this.edits.length)},t.prototype.assertChangeAnnotations=function(e){if(e===void 0)throw new Error("Text edit change is not configured to manage change annotations.")},t}(),nf=function(){function t(e){this._annotations=e===void 0?Object.create(null):e,this._counter=0,this._size=0}return t.prototype.all=function(){return this._annotations},Object.defineProperty(t.prototype,"size",{get:function(){return this._size},enumerable:!1,configurable:!0}),t.prototype.manage=function(e,n){var r;if(kt.is(e)?r=e:(r=this.nextId(),n=e),this._annotations[r]!==void 0)throw new Error("Id "+r+" is already in use.");if(n===void 0)throw new Error("No annotation provided for id "+r);return this._annotations[r]=n,this._size++,r},t.prototype.nextId=function(){return this._counter++,this._counter.toString()},t}(),d1=function(){function t(e){var n=this;this._textEditChanges=Object.create(null),e!==void 0?(this._workspaceEdit=e,e.documentChanges?(this._changeAnnotations=new nf(e.changeAnnotations),e.changeAnnotations=this._changeAnnotations.all(),e.documentChanges.forEach(function(r){if(Tr.is(r)){var i=new Ia(r.edits,n._changeAnnotations);n._textEditChanges[r.textDocument.uri]=i}})):e.changes&&Object.keys(e.changes).forEach(function(r){var i=new Ia(e.changes[r]);n._textEditChanges[r]=i})):this._workspaceEdit={}}return Object.defineProperty(t.prototype,"edit",{get:function(){return this.initDocumentChanges(),this._changeAnnotations!==void 0&&(this._changeAnnotations.size===0?this._workspaceEdit.changeAnnotations=void 0:this._workspaceEdit.changeAnnotations=this._changeAnnotations.all()),this._workspaceEdit},enumerable:!1,configurable:!0}),t.prototype.getTextEditChange=function(e){if(La.is(e)){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var n={uri:e.uri,version:e.version},r=this._textEditChanges[n.uri];if(!r){var i=[],o={textDocument:n,edits:i};this._workspaceEdit.documentChanges.push(o),r=new Ia(i,this._changeAnnotations),this._textEditChanges[n.uri]=r}return r}else{if(this.initChanges(),this._workspaceEdit.changes===void 0)throw new Error("Workspace edit is not configured for normal text edit changes.");var r=this._textEditChanges[e];if(!r){var i=[];this._workspaceEdit.changes[e]=i,r=new Ia(i),this._textEditChanges[e]=r}return r}},t.prototype.initDocumentChanges=function(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._changeAnnotations=new nf,this._workspaceEdit.documentChanges=[],this._workspaceEdit.changeAnnotations=this._changeAnnotations.all())},t.prototype.initChanges=function(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._workspaceEdit.changes=Object.create(null))},t.prototype.createFile=function(e,n,r){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var i;li.is(n)||kt.is(n)?i=n:r=n;var o,a;if(i===void 0?o=lo.create(e,r):(a=kt.is(i)?i:this._changeAnnotations.manage(i),o=lo.create(e,r,a)),this._workspaceEdit.documentChanges.push(o),a!==void 0)return a},t.prototype.renameFile=function(e,n,r,i){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var o;li.is(r)||kt.is(r)?o=r:i=r;var a,s;if(o===void 0?a=co.create(e,n,i):(s=kt.is(o)?o:this._changeAnnotations.manage(o),a=co.create(e,n,i,s)),this._workspaceEdit.documentChanges.push(a),s!==void 0)return s},t.prototype.deleteFile=function(e,n,r){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var i;li.is(n)||kt.is(n)?i=n:r=n;var o,a;if(i===void 0?o=uo.create(e,r):(a=kt.is(i)?i:this._changeAnnotations.manage(i),o=uo.create(e,r,a)),this._workspaceEdit.documentChanges.push(o),a!==void 0)return a},t}();(function(t){function e(r){return{uri:r}}t.create=e;function n(r){var i=r;return W.defined(i)&&W.string(i.uri)}t.is=n})(rf||(rf={}));(function(t){function e(r,i){return{uri:r,version:i}}t.create=e;function n(r){var i=r;return W.defined(i)&&W.string(i.uri)&&W.integer(i.version)}t.is=n})(ho||(ho={}));(function(t){function e(r,i){return{uri:r,version:i}}t.create=e;function n(r){var i=r;return W.defined(i)&&W.string(i.uri)&&(i.version===null||W.integer(i.version))}t.is=n})(La||(La={}));(function(t){function e(r,i,o,a){return{uri:r,languageId:i,version:o,text:a}}t.create=e;function n(r){var i=r;return W.defined(i)&&W.string(i.uri)&&W.string(i.languageId)&&W.integer(i.version)&&W.string(i.text)}t.is=n})(of||(of={}));(function(t){t.PlainText="plaintext",t.Markdown="markdown"})(Ct||(Ct={}));(function(t){function e(n){var r=n;return r===t.PlainText||r===t.Markdown}t.is=e})(Ct||(Ct={}));(function(t){function e(n){var r=n;return W.objectLiteral(n)&&Ct.is(r.kind)&&W.string(r.value)}t.is=e})(Na||(Na={}));(function(t){t.Text=1,t.Method=2,t.Function=3,t.Constructor=4,t.Field=5,t.Variable=6,t.Class=7,t.Interface=8,t.Module=9,t.Property=10,t.Unit=11,t.Value=12,t.Enum=13,t.Keyword=14,t.Snippet=15,t.Color=16,t.File=17,t.Reference=18,t.Folder=19,t.EnumMember=20,t.Constant=21,t.Struct=22,t.Event=23,t.Operator=24,t.TypeParameter=25})(ae||(ae={}));(function(t){t.PlainText=1,t.Snippet=2})(gt||(gt={}));(function(t){t.Deprecated=1})(Ln||(Ln={}));(function(t){function e(r,i,o){return{newText:r,insert:i,replace:o}}t.create=e;function n(r){var i=r;return i&&W.string(i.newText)&&ke.is(i.insert)&&ke.is(i.replace)}t.is=n})(af||(af={}));(function(t){t.asIs=1,t.adjustIndentation=2})(sf||(sf={}));(function(t){function e(n){return{label:n}}t.create=e})(Nc||(Nc={}));(function(t){function e(n,r){return{items:n||[],isIncomplete:!!r}}t.create=e})(Wc||(Wc={}));(function(t){function e(r){return r.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}t.fromPlainText=e;function n(r){var i=r;return W.string(i)||W.objectLiteral(i)&&W.string(i.language)&&W.string(i.value)}t.is=n})(po||(po={}));(function(t){function e(n){var r=n;return!!r&&W.objectLiteral(r)&&(Na.is(r.contents)||po.is(r.contents)||W.typedArray(r.contents,po.is))&&(n.range===void 0||ke.is(n.range))}t.is=e})(Oc||(Oc={}));(function(t){function e(n,r){return r?{label:n,documentation:r}:{label:n}}t.create=e})(lf||(lf={}));(function(t){function e(n,r){for(var i=[],o=2;o=0;d--){var u=l[d],h=o.offsetAt(u.range.start),p=o.offsetAt(u.range.end);if(p<=c)s=s.substring(0,h)+u.newText+s.substring(p,s.length);else throw new Error("Overlapping edit");c=h}return s}t.applyEdits=r;function i(o,a){if(o.length<=1)return o;var s=o.length/2|0,l=o.slice(0,s),c=o.slice(s);i(l,a),i(c,a);for(var d=0,u=0,h=0;d0&&e.push(n.length),this._lineOffsets=e}return this._lineOffsets},t.prototype.positionAt=function(e){e=Math.max(Math.min(e,this._content.length),0);var n=this.getLineOffsets(),r=0,i=n.length;if(i===0)return _t.create(0,e);for(;re?i=o:r=o+1}var a=r-1;return _t.create(a,e-n[a])},t.prototype.offsetAt=function(e){var n=this.getLineOffsets();if(e.line>=n.length)return this._content.length;if(e.line<0)return 0;var r=n[e.line],i=e.line+1n.line||e.line===n.line&&e.character>n.character?{start:n,end:e}:t}function ok(t){var e=bf(t.range);return e!==t.range?{newText:t.newText,range:e}:t}var ff,Pt,Wa=X(()=>{"use strict";ff=function(){function t(e,n,r,i){this._uri=e,this._languageId=n,this._version=r,this._content=i,this._lineOffsets=void 0}return Object.defineProperty(t.prototype,"uri",{get:function(){return this._uri},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"languageId",{get:function(){return this._languageId},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"version",{get:function(){return this._version},enumerable:!0,configurable:!0}),t.prototype.getText=function(e){if(e){var n=this.offsetAt(e.start),r=this.offsetAt(e.end);return this._content.substring(n,r)}return this._content},t.prototype.update=function(e,n){for(var r=0,i=e;re?i=o:r=o+1}var a=r-1;return{line:a,character:e-n[a]}},t.prototype.offsetAt=function(e){var n=this.getLineOffsets();if(e.line>=n.length)return this._content.length;if(e.line<0)return 0;var r=n[e.line],i=e.line+1l&&c.push(a.substring(l,p)),h.newText.length&&c.push(h.newText),l=i.offsetAt(h.range.end)}return c.push(a.substr(l)),c.join("")}t.applyEdits=r})(Pt||(Pt={}))});var vf,bt,Qt=X(()=>{"use strict";mf();Wa();(function(t){t.LATEST={textDocument:{completion:{completionItem:{documentationFormat:[Ct.Markdown,Ct.PlainText]}},hover:{contentFormat:[Ct.Markdown,Ct.PlainText]}}}})(vf||(vf={}));(function(t){t[t.Unknown=0]="Unknown",t[t.File=1]="File",t[t.Directory=2]="Directory",t[t.SymbolicLink=64]="SymbolicLink"})(bt||(bt={}))});function wf(t){switch(t){case"experimental":return`\u26A0\uFE0F Property is experimental. Be cautious when using it.\uFE0F + +`;case"nonstandard":return`\u{1F6A8}\uFE0F Property is nonstandard. Avoid using it. + +`;case"obsolete":return`\u{1F6A8}\uFE0F\uFE0F\uFE0F Property is obsolete. Avoid using it. + +`;default:return""}}function xn(t,e,n){var r;if(e?r={kind:"markdown",value:sk(t,n)}:r={kind:"plaintext",value:ak(t,n)},r.value!=="")return r}function Oa(t){return t=t.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&"),t.replace(//g,">")}function ak(t,e){if(!t.description||t.description==="")return"";if(typeof t.description!="string")return t.description.value;var n="";if((e==null?void 0:e.documentation)!==!1){t.status&&(n+=wf(t.status)),n+=t.description;var r=xf(t.browsers);r&&(n+=` +(`+r+")"),"syntax"in t&&(n+=` + +Syntax: `+t.syntax)}return t.references&&t.references.length>0&&(e==null?void 0:e.references)!==!1&&(n.length>0&&(n+=` + +`),n+=t.references.map(function(i){return i.name+": "+i.url}).join(" | ")),n}function sk(t,e){if(!t.description||t.description==="")return"";var n="";if((e==null?void 0:e.documentation)!==!1){t.status&&(n+=wf(t.status)),typeof t.description=="string"?n+=Oa(t.description):n+=t.description.kind===Ct.Markdown?t.description.value:Oa(t.description.value);var r=xf(t.browsers);r&&(n+=` + +(`+Oa(r)+")"),"syntax"in t&&t.syntax&&(n+=` + +Syntax: `+Oa(t.syntax))}return t.references&&t.references.length>0&&(e==null?void 0:e.references)!==!1&&(n.length>0&&(n+=` + +`),n+=t.references.map(function(i){return"["+i.name+"]("+i.url+")"}).join(" | ")),n}function xf(t){return t===void 0&&(t=[]),t.length===0?null:t.map(function(e){var n="",r=e.match(/([A-Z]+)(\d+)?/),i=r[1],o=r[2];return i in yf&&(n+=yf[i]),o&&(n+=" "+o),n}).join(", ")}var yf,Sf=X(()=>{"use strict";Qt();yf={E:"Edge",FF:"Firefox",S:"Safari",C:"Chrome",IE:"IE",O:"Opera"}});function di(t,e){var n=t.getText(),r=n.match(/^([-+]?[0-9]*\.?[0-9]+)(%?)$/);if(r){r[2]&&(e=100);var i=parseFloat(r[1])/e;if(i>=0&&i<=1)return i}throw new Error}function lk(t){var e=t.getText(),n=e.match(/^([-+]?[0-9]*\.?[0-9]+)(deg)?$/);if(n)return parseFloat(e)%360;throw new Error}function Cf(t){var e=t.getName();return e?/^(rgb|rgba|hsl|hsla)$/gi.test(e):!1}function Je(t){return t=Ua&&t<=uk?t-Ua+10:0)}function Df(t){if(t[0]!=="#")return null;switch(t.length){case 4:return{red:Je(t.charCodeAt(1))*17/255,green:Je(t.charCodeAt(2))*17/255,blue:Je(t.charCodeAt(3))*17/255,alpha:1};case 5:return{red:Je(t.charCodeAt(1))*17/255,green:Je(t.charCodeAt(2))*17/255,blue:Je(t.charCodeAt(3))*17/255,alpha:Je(t.charCodeAt(4))*17/255};case 7:return{red:(Je(t.charCodeAt(1))*16+Je(t.charCodeAt(2)))/255,green:(Je(t.charCodeAt(3))*16+Je(t.charCodeAt(4)))/255,blue:(Je(t.charCodeAt(5))*16+Je(t.charCodeAt(6)))/255,alpha:1};case 9:return{red:(Je(t.charCodeAt(1))*16+Je(t.charCodeAt(2)))/255,green:(Je(t.charCodeAt(3))*16+Je(t.charCodeAt(4)))/255,blue:(Je(t.charCodeAt(5))*16+Je(t.charCodeAt(6)))/255,alpha:(Je(t.charCodeAt(7))*16+Je(t.charCodeAt(8)))/255}}return null}function hk(t,e,n,r){if(r===void 0&&(r=1),t=t/60,e===0)return{red:n,green:n,blue:n,alpha:r};var i=function(s,l,c){for(;c<0;)c+=6;for(;c>=6;)c-=6;return c<1?(l-s)*c+s:c<3?l:c<4?(l-s)*(4-c)+s:s},o=n<=.5?n*(e+1):n+e-n*e,a=n*2-o;return{red:i(a,o,t+2),green:i(a,o,t),blue:i(a,o,t-2),alpha:r}}function Rf(t){var e=t.red,n=t.green,r=t.blue,i=t.alpha,o=Math.max(e,n,r),a=Math.min(e,n,r),s=0,l=0,c=(a+o)/2,d=o-a;if(d>0){switch(l=Math.min(c<=.5?d/(2*c):d/(2-2*c),1),o){case e:s=(n-r)/d+(n4)return null;try{var d=i.length===4?di(i[3],1):1;if(r==="rgb"||r==="rgba")return{red:di(i[0],255),green:di(i[1],255),blue:di(i[2],255),alpha:d};if(r==="hsl"||r==="hsla"){var u=lk(i[0]),h=di(i[1],100),p=di(i[2],100);return hk(u,h,p,d)}}catch{return null}}else if(t.type===T.Identifier){if(t.parent&&t.parent.type!==T.Term)return null;var g=t.parent;if(g&&g.parent&&g.parent.type===T.BinaryExpression){var y=g.parent;if(y.parent&&y.parent.type===T.ListEntry&&y.parent.key===y)return null}var _=t.getText().toLowerCase();if(_==="none")return null;var x=go[_];if(x)return Df(x)}return null}var _f,qa,kf,go,$c,Tf,ck,dk,Ua,uk,Af=X(()=>{ft();_f=Oe(Mt()),qa=_f.loadMessageBundle(),kf=[{func:"rgb($red, $green, $blue)",desc:qa("css.builtin.rgb","Creates a Color from red, green, and blue values.")},{func:"rgba($red, $green, $blue, $alpha)",desc:qa("css.builtin.rgba","Creates a Color from red, green, blue, and alpha values.")},{func:"hsl($hue, $saturation, $lightness)",desc:qa("css.builtin.hsl","Creates a Color from hue, saturation, and lightness values.")},{func:"hsla($hue, $saturation, $lightness, $alpha)",desc:qa("css.builtin.hsla","Creates a Color from hue, saturation, lightness, and alpha values.")}],go={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgrey:"#a9a9a9",darkgreen:"#006400",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",grey:"#808080",green:"#008000",greenyellow:"#adff2f",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgrey:"#d3d3d3",lightgreen:"#90ee90",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370d8",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#d87093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",red:"#ff0000",rebeccapurple:"#663399",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"},$c={currentColor:"The value of the 'color' property. The computed value of the 'currentColor' keyword is the computed value of the 'color' property. If the 'currentColor' keyword is set on the 'color' property itself, it is treated as 'color:inherit' at parse time.",transparent:"Fully transparent. This keyword can be considered a shorthand for rgba(0,0,0,0) which is its computed value."};Tf=48,ck=57,dk=65,Ua=97,uk=102});var Gc,Kc,Jc,Ff,Xc,Yc,Qc,Zc,ed,td,nd,Ha,Mf,Pf,zf,If=X(()=>{"use strict";Gc={bottom:"Computes to \u2018100%\u2019 for the vertical position if one or two values are given, otherwise specifies the bottom edge as the origin for the next offset.",center:"Computes to \u201850%\u2019 (\u2018left 50%\u2019) for the horizontal position if the horizontal position is not otherwise specified, or \u201850%\u2019 (\u2018top 50%\u2019) for the vertical position if it is.",left:"Computes to \u20180%\u2019 for the horizontal position if one or two values are given, otherwise specifies the left edge as the origin for the next offset.",right:"Computes to \u2018100%\u2019 for the horizontal position if one or two values are given, otherwise specifies the right edge as the origin for the next offset.",top:"Computes to \u20180%\u2019 for the vertical position if one or two values are given, otherwise specifies the top edge as the origin for the next offset."},Kc={"no-repeat":"Placed once and not repeated in this direction.",repeat:"Repeated in this direction as often as needed to cover the background painting area.","repeat-x":"Computes to \u2018repeat no-repeat\u2019.","repeat-y":"Computes to \u2018no-repeat repeat\u2019.",round:"Repeated as often as will fit within the background positioning area. If it doesn\u2019t fit a whole number of times, it is rescaled so that it does.",space:"Repeated as often as will fit within the background positioning area without being clipped and then the images are spaced out to fill the area."},Jc={dashed:"A series of square-ended dashes.",dotted:"A series of round dots.",double:"Two parallel solid lines with some space between them.",groove:"Looks as if it were carved in the canvas.",hidden:"Same as \u2018none\u2019, but has different behavior in the border conflict resolution rules for border-collapsed tables.",inset:"Looks as if the content on the inside of the border is sunken into the canvas.",none:"No border. Color and width are ignored.",outset:"Looks as if the content on the inside of the border is coming out of the canvas.",ridge:"Looks as if it were coming out of the canvas.",solid:"A single line segment."},Ff=["medium","thick","thin"],Xc={"border-box":"The background is painted within (clipped to) the border box.","content-box":"The background is painted within (clipped to) the content box.","padding-box":"The background is painted within (clipped to) the padding box."},Yc={"margin-box":"Uses the margin box as reference box.","fill-box":"Uses the object bounding box as reference box.","stroke-box":"Uses the stroke bounding box as reference box.","view-box":"Uses the nearest SVG viewport as reference box."},Qc={initial:"Represents the value specified as the property\u2019s initial value.",inherit:"Represents the computed value of the property on the element\u2019s parent.",unset:"Acts as either `inherit` or `initial`, depending on whether the property is inherited or not."},Zc={"var()":"Evaluates the value of a custom variable.","calc()":"Evaluates an mathematical expression. The following operators can be used: + - * /."},ed={"url()":"Reference an image file by URL","image()":"Provide image fallbacks and annotations.","-webkit-image-set()":"Provide multiple resolutions. Remember to use unprefixed image-set() in addition.","image-set()":"Provide multiple resolutions of an image and const the UA decide which is most appropriate in a given situation.","-moz-element()":"Use an element in the document as an image. Remember to use unprefixed element() in addition.","element()":"Use an element in the document as an image.","cross-fade()":"Indicates the two images to be combined and how far along in the transition the combination is.","-webkit-gradient()":"Deprecated. Use modern linear-gradient() or radial-gradient() instead.","-webkit-linear-gradient()":"Linear gradient. Remember to use unprefixed version in addition.","-moz-linear-gradient()":"Linear gradient. Remember to use unprefixed version in addition.","-o-linear-gradient()":"Linear gradient. Remember to use unprefixed version in addition.","linear-gradient()":"A linear gradient is created by specifying a straight gradient line, and then several colors placed along that line.","-webkit-repeating-linear-gradient()":"Repeating Linear gradient. Remember to use unprefixed version in addition.","-moz-repeating-linear-gradient()":"Repeating Linear gradient. Remember to use unprefixed version in addition.","-o-repeating-linear-gradient()":"Repeating Linear gradient. Remember to use unprefixed version in addition.","repeating-linear-gradient()":"Same as linear-gradient, except the color-stops are repeated infinitely in both directions, with their positions shifted by multiples of the difference between the last specified color-stop\u2019s position and the first specified color-stop\u2019s position.","-webkit-radial-gradient()":"Radial gradient. Remember to use unprefixed version in addition.","-moz-radial-gradient()":"Radial gradient. Remember to use unprefixed version in addition.","radial-gradient()":"Colors emerge from a single point and smoothly spread outward in a circular or elliptical shape.","-webkit-repeating-radial-gradient()":"Repeating radial gradient. Remember to use unprefixed version in addition.","-moz-repeating-radial-gradient()":"Repeating radial gradient. Remember to use unprefixed version in addition.","repeating-radial-gradient()":"Same as radial-gradient, except the color-stops are repeated infinitely in both directions, with their positions shifted by multiples of the difference between the last specified color-stop\u2019s position and the first specified color-stop\u2019s position."},td={ease:"Equivalent to cubic-bezier(0.25, 0.1, 0.25, 1.0).","ease-in":"Equivalent to cubic-bezier(0.42, 0, 1.0, 1.0).","ease-in-out":"Equivalent to cubic-bezier(0.42, 0, 0.58, 1.0).","ease-out":"Equivalent to cubic-bezier(0, 0, 0.58, 1.0).",linear:"Equivalent to cubic-bezier(0.0, 0.0, 1.0, 1.0).","step-end":"Equivalent to steps(1, end).","step-start":"Equivalent to steps(1, start).","steps()":"The first parameter specifies the number of intervals in the function. The second parameter, which is optional, is either the value \u201Cstart\u201D or \u201Cend\u201D.","cubic-bezier()":"Specifies a cubic-bezier curve. The four values specify points P1 and P2 of the curve as (x1, y1, x2, y2).","cubic-bezier(0.6, -0.28, 0.735, 0.045)":"Ease-in Back. Overshoots.","cubic-bezier(0.68, -0.55, 0.265, 1.55)":"Ease-in-out Back. Overshoots.","cubic-bezier(0.175, 0.885, 0.32, 1.275)":"Ease-out Back. Overshoots.","cubic-bezier(0.6, 0.04, 0.98, 0.335)":"Ease-in Circular. Based on half circle.","cubic-bezier(0.785, 0.135, 0.15, 0.86)":"Ease-in-out Circular. Based on half circle.","cubic-bezier(0.075, 0.82, 0.165, 1)":"Ease-out Circular. Based on half circle.","cubic-bezier(0.55, 0.055, 0.675, 0.19)":"Ease-in Cubic. Based on power of three.","cubic-bezier(0.645, 0.045, 0.355, 1)":"Ease-in-out Cubic. Based on power of three.","cubic-bezier(0.215, 0.610, 0.355, 1)":"Ease-out Cubic. Based on power of three.","cubic-bezier(0.95, 0.05, 0.795, 0.035)":"Ease-in Exponential. Based on two to the power ten.","cubic-bezier(1, 0, 0, 1)":"Ease-in-out Exponential. Based on two to the power ten.","cubic-bezier(0.19, 1, 0.22, 1)":"Ease-out Exponential. Based on two to the power ten.","cubic-bezier(0.47, 0, 0.745, 0.715)":"Ease-in Sine.","cubic-bezier(0.445, 0.05, 0.55, 0.95)":"Ease-in-out Sine.","cubic-bezier(0.39, 0.575, 0.565, 1)":"Ease-out Sine.","cubic-bezier(0.55, 0.085, 0.68, 0.53)":"Ease-in Quadratic. Based on power of two.","cubic-bezier(0.455, 0.03, 0.515, 0.955)":"Ease-in-out Quadratic. Based on power of two.","cubic-bezier(0.25, 0.46, 0.45, 0.94)":"Ease-out Quadratic. Based on power of two.","cubic-bezier(0.895, 0.03, 0.685, 0.22)":"Ease-in Quartic. Based on power of four.","cubic-bezier(0.77, 0, 0.175, 1)":"Ease-in-out Quartic. Based on power of four.","cubic-bezier(0.165, 0.84, 0.44, 1)":"Ease-out Quartic. Based on power of four.","cubic-bezier(0.755, 0.05, 0.855, 0.06)":"Ease-in Quintic. Based on power of five.","cubic-bezier(0.86, 0, 0.07, 1)":"Ease-in-out Quintic. Based on power of five.","cubic-bezier(0.23, 1, 0.320, 1)":"Ease-out Quintic. Based on power of five."},nd={"circle()":"Defines a circle.","ellipse()":"Defines an ellipse.","inset()":"Defines an inset rectangle.","polygon()":"Defines a polygon."},Ha={length:["em","rem","ex","px","cm","mm","in","pt","pc","ch","vw","vh","vmin","vmax"],angle:["deg","rad","grad","turn"],time:["ms","s"],frequency:["Hz","kHz"],resolution:["dpi","dpcm","dppx"],percentage:["%","fr"]},Mf=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rb","rp","rt","rtc","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","title","tr","track","u","ul","const","video","wbr"],Pf=["circle","clipPath","cursor","defs","desc","ellipse","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","foreignObject","g","hatch","hatchpath","image","line","linearGradient","marker","mask","mesh","meshpatch","meshrow","metadata","mpath","path","pattern","polygon","polyline","radialGradient","rect","set","solidcolor","stop","svg","switch","symbol","text","textPath","tspan","use","view"],zf=["@bottom-center","@bottom-left","@bottom-left-corner","@bottom-right","@bottom-right-corner","@left-bottom","@left-middle","@left-top","@right-bottom","@right-middle","@right-top","@top-center","@top-left","@top-left-corner","@top-right","@top-right-corner"]});var ui=X(()=>{"use strict";Sf();Af();If()});function bo(t){return Object.keys(t).map(function(e){return t[e]})}function zt(t){return typeof t!="undefined"}var vo=X(()=>{"use strict"});var Lf,hi,Ba=X(()=>{"use strict";er();ft();Fa();ui();vo();Lf=function(t,e,n){if(n||arguments.length===2)for(var r=0,i=e.length,o;re.offset?o-e.offset:0}return e},t.prototype.markError=function(e,n,r,i){this.token!==this.lastErrorToken&&(e.addIssue(new Ea(e,n,mt.Error,void 0,this.token.offset,this.token.len)),this.lastErrorToken=this.token),(r||i)&&this.resync(r,i)},t.prototype.parseStylesheet=function(e){var n=e.version,r=e.getText(),i=function(o,a){if(e.version!==n)throw new Error("Underlying model has changed, AST is no longer valid");return r.substr(o,a)};return this.internalParse(r,this._parseStylesheet,i)},t.prototype.internalParse=function(e,n,r){this.scanner.setSource(e),this.token=this.scanner.scan();var i=n.bind(this)();return i&&(r?i.textProvider=r:i.textProvider=function(o,a){return e.substr(o,a)}),i},t.prototype._parseStylesheet=function(){for(var e=this.create(gm);e.addChild(this._parseStylesheetStart()););var n=!1;do{var r=!1;do{r=!1;var i=this._parseStylesheetStatement();for(i&&(e.addChild(i),r=!0,n=!1,!this.peek(m.EOF)&&this._needsSemicolonAfter(i)&&!this.accept(m.SemiColon)&&this.markError(e,I.SemiColonExpected));this.accept(m.SemiColon)||this.accept(m.CDO)||this.accept(m.CDC);)r=!0,n=!1}while(r);if(this.peek(m.EOF))break;n||(this.peek(m.AtKeyword)?this.markError(e,I.UnknownAtRule):this.markError(e,I.RuleOrSelectorExpected),n=!0),this.consumeToken()}while(!this.peek(m.EOF));return this.finish(e)},t.prototype._parseStylesheetStart=function(){return this._parseCharset()},t.prototype._parseStylesheetStatement=function(e){return e===void 0&&(e=!1),this.peek(m.AtKeyword)?this._parseStylesheetAtStatement(e):this._parseRuleset(e)},t.prototype._parseStylesheetAtStatement=function(e){return e===void 0&&(e=!1),this._parseImport()||this._parseMedia(e)||this._parsePage()||this._parseFontFace()||this._parseKeyframe()||this._parseSupports(e)||this._parseViewPort()||this._parseNamespace()||this._parseDocument()||this._parseUnknownAtRule()},t.prototype._tryParseRuleset=function(e){var n=this.mark();if(this._parseSelector(e)){for(;this.accept(m.Comma)&&this._parseSelector(e););if(this.accept(m.CurlyL))return this.restoreAtMark(n),this._parseRuleset(e)}return this.restoreAtMark(n),null},t.prototype._parseRuleset=function(e){e===void 0&&(e=!1);var n=this.create(Mn),r=n.getSelectors();if(!r.addChild(this._parseSelector(e)))return null;for(;this.accept(m.Comma);)if(!r.addChild(this._parseSelector(e)))return this.finish(n,I.SelectorExpected);return this._parseBody(n,this._parseRuleSetDeclaration.bind(this))},t.prototype._parseRuleSetDeclarationAtStatement=function(){return this._parseUnknownAtRule()},t.prototype._parseRuleSetDeclaration=function(){return this.peek(m.AtKeyword)?this._parseRuleSetDeclarationAtStatement():this._parseDeclaration()},t.prototype._needsSemicolonAfter=function(e){switch(e.type){case T.Keyframe:case T.ViewPort:case T.Media:case T.Ruleset:case T.Namespace:case T.If:case T.For:case T.Each:case T.While:case T.MixinDeclaration:case T.FunctionDeclaration:case T.MixinContentDeclaration:return!1;case T.ExtendsReference:case T.MixinContentReference:case T.ReturnStatement:case T.MediaQuery:case T.Debug:case T.Import:case T.AtApplyRule:case T.CustomPropertyDeclaration:return!0;case T.VariableDeclaration:return e.needsSemicolon;case T.MixinReference:return!e.getContent();case T.Declaration:return!e.getNestedProperties()}return!1},t.prototype._parseDeclarations=function(e){var n=this.create(no);if(!this.accept(m.CurlyL))return null;for(var r=e();n.addChild(r)&&!this.peek(m.CurlyR);){if(this._needsSemicolonAfter(r)&&!this.accept(m.SemiColon))return this.finish(n,I.SemiColonExpected,[m.SemiColon,m.CurlyR]);for(r&&this.prevToken&&this.prevToken.type===m.SemiColon&&(r.semicolonPosition=this.prevToken.offset);this.accept(m.SemiColon););r=e()}return this.accept(m.CurlyR)?this.finish(n):this.finish(n,I.RightCurlyExpected,[m.CurlyR,m.SemiColon])},t.prototype._parseBody=function(e,n){return e.setDeclarations(this._parseDeclarations(n))?this.finish(e):this.finish(e,I.LeftCurlyExpected,[m.CurlyR,m.SemiColon])},t.prototype._parseSelector=function(e){var n=this.create(yn),r=!1;for(e&&(r=n.addChild(this._parseCombinator()));n.addChild(this._parseSimpleSelector());)r=!0,n.addChild(this._parseCombinator());return r?this.finish(n):null},t.prototype._parseDeclaration=function(e){var n=this._tryParseCustomPropertyDeclaration(e);if(n)return n;var r=this.create(St);return r.setProperty(this._parseProperty())?this.accept(m.Colon)?(this.prevToken&&(r.colonPosition=this.prevToken.offset),r.setValue(this._parseExpr())?(r.addChild(this._parsePrio()),this.peek(m.SemiColon)&&(r.semicolonPosition=this.token.offset),this.finish(r)):this.finish(r,I.PropertyValueExpected)):this.finish(r,I.ColonExpected,[m.Colon],e||[m.SemiColon]):null},t.prototype._tryParseCustomPropertyDeclaration=function(e){if(!this.peekRegExp(m.Ident,/^--/))return null;var n=this.create(vm);if(!n.setProperty(this._parseProperty()))return null;if(!this.accept(m.Colon))return this.finish(n,I.ColonExpected,[m.Colon]);this.prevToken&&(n.colonPosition=this.prevToken.offset);var r=this.mark();if(this.peek(m.CurlyL)){var i=this.create(bm),o=this._parseDeclarations(this._parseRuleSetDeclaration.bind(this));if(i.setDeclarations(o)&&!o.isErroneous(!0)&&(i.addChild(this._parsePrio()),this.peek(m.SemiColon)))return this.finish(i),n.setPropertySet(i),n.semicolonPosition=this.token.offset,this.finish(n);this.restoreAtMark(r)}var a=this._parseExpr();return a&&!a.isErroneous(!0)&&(this._parsePrio(),this.peekOne.apply(this,Lf(Lf([],e||[],!1),[m.SemiColon,m.EOF],!1)))?(n.setValue(a),this.peek(m.SemiColon)&&(n.semicolonPosition=this.token.offset),this.finish(n)):(this.restoreAtMark(r),n.addChild(this._parseCustomPropertyValue(e)),n.addChild(this._parsePrio()),zt(n.colonPosition)&&this.token.offset===n.colonPosition+1?this.finish(n,I.PropertyValueExpected):this.finish(n))},t.prototype._parseCustomPropertyValue=function(e){var n=this;e===void 0&&(e=[m.CurlyR]);var r=this.create(ne),i=function(){return a===0&&s===0&&l===0},o=function(){return e.indexOf(n.token.type)!==-1},a=0,s=0,l=0;e:for(;;){switch(this.token.type){case m.SemiColon:if(i())break e;break;case m.Exclamation:if(i())break e;break;case m.CurlyL:a++;break;case m.CurlyR:if(a--,a<0){if(o()&&s===0&&l===0)break e;return this.finish(r,I.LeftCurlyExpected)}break;case m.ParenthesisL:s++;break;case m.ParenthesisR:if(s--,s<0){if(o()&&l===0&&a===0)break e;return this.finish(r,I.LeftParenthesisExpected)}break;case m.BracketL:l++;break;case m.BracketR:if(l--,l<0)return this.finish(r,I.LeftSquareBracketExpected);break;case m.BadString:break e;case m.EOF:var c=I.RightCurlyExpected;return l>0?c=I.RightSquareBracketExpected:s>0&&(c=I.RightParenthesisExpected),this.finish(r,c)}this.consumeToken()}return this.finish(r)},t.prototype._tryToParseDeclaration=function(e){var n=this.mark();return this._parseProperty()&&this.accept(m.Colon)?(this.restoreAtMark(n),this._parseDeclaration(e)):(this.restoreAtMark(n),null)},t.prototype._parseProperty=function(){var e=this.create(ni),n=this.mark();return(this.acceptDelim("*")||this.acceptDelim("_"))&&this.hasWhitespace()?(this.restoreAtMark(n),null):e.setIdentifier(this._parsePropertyIdentifier())?this.finish(e):null},t.prototype._parsePropertyIdentifier=function(){return this._parseIdent()},t.prototype._parseCharset=function(){if(!this.peek(m.Charset))return null;var e=this.create(ne);return this.consumeToken(),this.accept(m.String)?this.accept(m.SemiColon)?this.finish(e):this.finish(e,I.SemiColonExpected):this.finish(e,I.IdentifierExpected)},t.prototype._parseImport=function(){if(!this.peekKeyword("@import"))return null;var e=this.create(ri);return this.consumeToken(),!e.addChild(this._parseURILiteral())&&!e.addChild(this._parseStringLiteral())?this.finish(e,I.URIOrStringExpected):(!this.peek(m.SemiColon)&&!this.peek(m.EOF)&&e.setMedialist(this._parseMediaQueryList()),this.finish(e))},t.prototype._parseNamespace=function(){if(!this.peekKeyword("@namespace"))return null;var e=this.create(Em);return this.consumeToken(),!e.addChild(this._parseURILiteral())&&(e.addChild(this._parseIdent()),!e.addChild(this._parseURILiteral())&&!e.addChild(this._parseStringLiteral()))?this.finish(e,I.URIExpected,[m.SemiColon]):this.accept(m.SemiColon)?this.finish(e):this.finish(e,I.SemiColonExpected)},t.prototype._parseFontFace=function(){if(!this.peekKeyword("@font-face"))return null;var e=this.create(Sa);return this.consumeToken(),this._parseBody(e,this._parseRuleSetDeclaration.bind(this))},t.prototype._parseViewPort=function(){if(!this.peekKeyword("@-ms-viewport")&&!this.peekKeyword("@-o-viewport")&&!this.peekKeyword("@viewport"))return null;var e=this.create(km);return this.consumeToken(),this._parseBody(e,this._parseRuleSetDeclaration.bind(this))},t.prototype._parseKeyframe=function(){if(!this.peekRegExp(m.AtKeyword,this.keyframeRegex))return null;var e=this.create(_a),n=this.create(ne);return this.consumeToken(),e.setKeyword(this.finish(n)),n.matches("@-ms-keyframes")&&this.markError(n,I.UnknownKeyword),e.setIdentifier(this._parseKeyframeIdent())?this._parseBody(e,this._parseKeyframeSelector.bind(this)):this.finish(e,I.IdentifierExpected,[m.CurlyR])},t.prototype._parseKeyframeIdent=function(){return this._parseIdent([be.Keyframe])},t.prototype._parseKeyframeSelector=function(){var e=this.create(xc);if(!e.addChild(this._parseIdent())&&!this.accept(m.Percentage))return null;for(;this.accept(m.Comma);)if(!e.addChild(this._parseIdent())&&!this.accept(m.Percentage))return this.finish(e,I.PercentageExpected);return this._parseBody(e,this._parseRuleSetDeclaration.bind(this))},t.prototype._tryParseKeyframeSelector=function(){var e=this.create(xc),n=this.mark();if(!e.addChild(this._parseIdent())&&!this.accept(m.Percentage))return null;for(;this.accept(m.Comma);)if(!e.addChild(this._parseIdent())&&!this.accept(m.Percentage))return this.restoreAtMark(n),null;return this.peek(m.CurlyL)?this._parseBody(e,this._parseRuleSetDeclaration.bind(this)):(this.restoreAtMark(n),null)},t.prototype._parseSupports=function(e){if(e===void 0&&(e=!1),!this.peekKeyword("@supports"))return null;var n=this.create(ro);return this.consumeToken(),n.addChild(this._parseSupportsCondition()),this._parseBody(n,this._parseSupportsDeclaration.bind(this,e))},t.prototype._parseSupportsDeclaration=function(e){return e===void 0&&(e=!1),e?this._tryParseRuleset(!0)||this._tryToParseDeclaration()||this._parseStylesheetStatement(!0):this._parseStylesheetStatement(!1)},t.prototype._parseSupportsCondition=function(){var e=this.create(_r);if(this.acceptIdent("not"))e.addChild(this._parseSupportsConditionInParens());else if(e.addChild(this._parseSupportsConditionInParens()),this.peekRegExp(m.Ident,/^(and|or)$/i))for(var n=this.token.text.toLowerCase();this.acceptIdent(n);)e.addChild(this._parseSupportsConditionInParens());return this.finish(e)},t.prototype._parseSupportsConditionInParens=function(){var e=this.create(_r);if(this.accept(m.ParenthesisL))return this.prevToken&&(e.lParent=this.prevToken.offset),!e.addChild(this._tryToParseDeclaration([m.ParenthesisR]))&&!this._parseSupportsCondition()?this.finish(e,I.ConditionExpected):this.accept(m.ParenthesisR)?(this.prevToken&&(e.rParent=this.prevToken.offset),this.finish(e)):this.finish(e,I.RightParenthesisExpected,[m.ParenthesisR],[]);if(this.peek(m.Ident)){var n=this.mark();if(this.consumeToken(),!this.hasWhitespace()&&this.accept(m.ParenthesisL)){for(var r=1;this.token.type!==m.EOF&&r!==0;)this.token.type===m.ParenthesisL?r++:this.token.type===m.ParenthesisR&&r--,this.consumeToken();return this.finish(e)}else this.restoreAtMark(n)}return this.finish(e,I.LeftParenthesisExpected,[],[m.ParenthesisL])},t.prototype._parseMediaDeclaration=function(e){return e===void 0&&(e=!1),e?this._tryParseRuleset(!0)||this._tryToParseDeclaration()||this._parseStylesheetStatement(!0):this._parseStylesheetStatement(!1)},t.prototype._parseMedia=function(e){if(e===void 0&&(e=!1),!this.peekKeyword("@media"))return null;var n=this.create(ka);return this.consumeToken(),n.addChild(this._parseMediaQueryList())?this._parseBody(n,this._parseMediaDeclaration.bind(this,e)):this.finish(n,I.MediaQueryExpected)},t.prototype._parseMediaQueryList=function(){var e=this.create(Ca);if(!e.addChild(this._parseMediaQuery()))return this.finish(e,I.MediaQueryExpected);for(;this.accept(m.Comma);)if(!e.addChild(this._parseMediaQuery()))return this.finish(e,I.MediaQueryExpected);return this.finish(e)},t.prototype._parseMediaQuery=function(){var e=this.create(Ta),n=this.mark();if(this.acceptIdent("not"),this.peek(m.ParenthesisL))this.restoreAtMark(n),e.addChild(this._parseMediaCondition());else{if(this.acceptIdent("only"),!e.addChild(this._parseIdent()))return null;this.acceptIdent("and")&&e.addChild(this._parseMediaCondition())}return this.finish(e)},t.prototype._parseRatio=function(){var e=this.mark(),n=this.create(Nm);return this._parseNumeric()?this.acceptDelim("/")?this._parseNumeric()?this.finish(n):this.finish(n,I.NumberExpected):(this.restoreAtMark(e),null):null},t.prototype._parseMediaCondition=function(){var e=this.create(Fm);this.acceptIdent("not");for(var n=!0;n;){if(!this.accept(m.ParenthesisL))return this.finish(e,I.LeftParenthesisExpected,[],[m.CurlyL]);if(this.peek(m.ParenthesisL)||this.peekIdent("not")?e.addChild(this._parseMediaCondition()):e.addChild(this._parseMediaFeature()),!this.accept(m.ParenthesisR))return this.finish(e,I.RightParenthesisExpected,[],[m.CurlyL]);n=this.acceptIdent("and")||this.acceptIdent("or")}return this.finish(e)},t.prototype._parseMediaFeature=function(){var e=this,n=[m.ParenthesisR],r=this.create(Mm),i=function(){return e.acceptDelim("<")||e.acceptDelim(">")?(e.hasWhitespace()||e.acceptDelim("="),!0):!!e.acceptDelim("=")};if(r.addChild(this._parseMediaFeatureName())){if(this.accept(m.Colon)){if(!r.addChild(this._parseMediaFeatureValue()))return this.finish(r,I.TermExpected,[],n)}else if(i()){if(!r.addChild(this._parseMediaFeatureValue()))return this.finish(r,I.TermExpected,[],n);if(i()&&!r.addChild(this._parseMediaFeatureValue()))return this.finish(r,I.TermExpected,[],n)}}else if(r.addChild(this._parseMediaFeatureValue())){if(!i())return this.finish(r,I.OperatorExpected,[],n);if(!r.addChild(this._parseMediaFeatureName()))return this.finish(r,I.IdentifierExpected,[],n);if(i()&&!r.addChild(this._parseMediaFeatureValue()))return this.finish(r,I.TermExpected,[],n)}else return this.finish(r,I.IdentifierExpected,[],n);return this.finish(r)},t.prototype._parseMediaFeatureName=function(){return this._parseIdent()},t.prototype._parseMediaFeatureValue=function(){return this._parseRatio()||this._parseTermExpression()},t.prototype._parseMedium=function(){var e=this.create(ne);return e.addChild(this._parseIdent())?this.finish(e):null},t.prototype._parsePageDeclaration=function(){return this._parsePageMarginBox()||this._parseRuleSetDeclaration()},t.prototype._parsePage=function(){if(!this.peekKeyword("@page"))return null;var e=this.create(Pm);if(this.consumeToken(),e.addChild(this._parsePageSelector())){for(;this.accept(m.Comma);)if(!e.addChild(this._parsePageSelector()))return this.finish(e,I.IdentifierExpected)}return this._parseBody(e,this._parsePageDeclaration.bind(this))},t.prototype._parsePageMarginBox=function(){if(!this.peek(m.AtKeyword))return null;var e=this.create(zm);return this.acceptOneKeyword(zf)||this.markError(e,I.UnknownAtRule,[],[m.CurlyL]),this._parseBody(e,this._parseRuleSetDeclaration.bind(this))},t.prototype._parsePageSelector=function(){if(!this.peek(m.Ident)&&!this.peek(m.Colon))return null;var e=this.create(ne);return e.addChild(this._parseIdent()),this.accept(m.Colon)&&!e.addChild(this._parseIdent())?this.finish(e,I.IdentifierExpected):this.finish(e)},t.prototype._parseDocument=function(){if(!this.peekKeyword("@-moz-document"))return null;var e=this.create(Am);return this.consumeToken(),this.resync([],[m.CurlyL]),this._parseBody(e,this._parseStylesheetStatement.bind(this))},t.prototype._parseUnknownAtRule=function(){if(!this.peek(m.AtKeyword))return null;var e=this.create(Ra);e.addChild(this._parseUnknownAtRuleName());var n=function(){return i===0&&o===0&&a===0},r=0,i=0,o=0,a=0;e:for(;;){switch(this.token.type){case m.SemiColon:if(n())break e;break;case m.EOF:return i>0?this.finish(e,I.RightCurlyExpected):a>0?this.finish(e,I.RightSquareBracketExpected):o>0?this.finish(e,I.RightParenthesisExpected):this.finish(e);case m.CurlyL:r++,i++;break;case m.CurlyR:if(i--,r>0&&i===0){if(this.consumeToken(),a>0)return this.finish(e,I.RightSquareBracketExpected);if(o>0)return this.finish(e,I.RightParenthesisExpected);break e}if(i<0){if(o===0&&a===0)break e;return this.finish(e,I.LeftCurlyExpected)}break;case m.ParenthesisL:o++;break;case m.ParenthesisR:if(o--,o<0)return this.finish(e,I.LeftParenthesisExpected);break;case m.BracketL:a++;break;case m.BracketR:if(a--,a<0)return this.finish(e,I.LeftSquareBracketExpected);break}this.consumeToken()}return e},t.prototype._parseUnknownAtRuleName=function(){var e=this.create(ne);return this.accept(m.AtKeyword)?this.finish(e):e},t.prototype._parseOperator=function(){if(this.peekDelim("/")||this.peekDelim("*")||this.peekDelim("+")||this.peekDelim("-")||this.peek(m.Dashmatch)||this.peek(m.Includes)||this.peek(m.SubstringOperator)||this.peek(m.PrefixOperator)||this.peek(m.SuffixOperator)||this.peekDelim("=")){var e=this.createNode(T.Operator);return this.consumeToken(),this.finish(e)}else return null},t.prototype._parseUnaryOperator=function(){if(!this.peekDelim("+")&&!this.peekDelim("-"))return null;var e=this.create(ne);return this.consumeToken(),this.finish(e)},t.prototype._parseCombinator=function(){if(this.peekDelim(">")){var e=this.create(ne);this.consumeToken();var n=this.mark();if(!this.hasWhitespace()&&this.acceptDelim(">")){if(!this.hasWhitespace()&&this.acceptDelim(">"))return e.type=T.SelectorCombinatorShadowPiercingDescendant,this.finish(e);this.restoreAtMark(n)}return e.type=T.SelectorCombinatorParent,this.finish(e)}else if(this.peekDelim("+")){var e=this.create(ne);return this.consumeToken(),e.type=T.SelectorCombinatorSibling,this.finish(e)}else if(this.peekDelim("~")){var e=this.create(ne);return this.consumeToken(),e.type=T.SelectorCombinatorAllSiblings,this.finish(e)}else if(this.peekDelim("/")){var e=this.create(ne);this.consumeToken();var n=this.mark();if(!this.hasWhitespace()&&this.acceptIdent("deep")&&!this.hasWhitespace()&&this.acceptDelim("/"))return e.type=T.SelectorCombinatorShadowPiercingDescendant,this.finish(e);this.restoreAtMark(n)}return null},t.prototype._parseSimpleSelector=function(){var e=this.create(wn),n=0;for(e.addChild(this._parseElementName())&&n++;(n===0||!this.hasWhitespace())&&e.addChild(this._parseSimpleSelectorBody());)n++;return n>0?this.finish(e):null},t.prototype._parseSimpleSelectorBody=function(){return this._parsePseudo()||this._parseHash()||this._parseClass()||this._parseAttrib()},t.prototype._parseSelectorIdent=function(){return this._parseIdent()},t.prototype._parseHash=function(){if(!this.peek(m.Hash)&&!this.peekDelim("#"))return null;var e=this.createNode(T.IdentifierSelector);if(this.acceptDelim("#")){if(this.hasWhitespace()||!e.addChild(this._parseSelectorIdent()))return this.finish(e,I.IdentifierExpected)}else this.consumeToken();return this.finish(e)},t.prototype._parseClass=function(){if(!this.peekDelim("."))return null;var e=this.createNode(T.ClassSelector);return this.consumeToken(),this.hasWhitespace()||!e.addChild(this._parseSelectorIdent())?this.finish(e,I.IdentifierExpected):this.finish(e)},t.prototype._parseElementName=function(){var e=this.mark(),n=this.createNode(T.ElementNameSelector);return n.addChild(this._parseNamespacePrefix()),!n.addChild(this._parseSelectorIdent())&&!this.acceptDelim("*")?(this.restoreAtMark(e),null):this.finish(n)},t.prototype._parseNamespacePrefix=function(){var e=this.mark(),n=this.createNode(T.NamespacePrefix);return!n.addChild(this._parseIdent())&&!this.acceptDelim("*"),this.acceptDelim("|")?this.finish(n):(this.restoreAtMark(e),null)},t.prototype._parseAttrib=function(){if(!this.peek(m.BracketL))return null;var e=this.create(Lm);return this.consumeToken(),e.setNamespacePrefix(this._parseNamespacePrefix()),e.setIdentifier(this._parseIdent())?(e.setOperator(this._parseOperator())&&(e.setValue(this._parseBinaryExpr()),this.acceptIdent("i")),this.accept(m.BracketR)?this.finish(e):this.finish(e,I.RightSquareBracketExpected)):this.finish(e,I.IdentifierExpected)},t.prototype._parsePseudo=function(){var e=this,n=this._tryParsePseudoIdentifier();if(n){if(!this.hasWhitespace()&&this.accept(m.ParenthesisL)){var r=function(){var i=e.create(ne);if(!i.addChild(e._parseSelector(!1)))return null;for(;e.accept(m.Comma)&&i.addChild(e._parseSelector(!1)););return e.peek(m.ParenthesisR)?e.finish(i):null};if(n.addChild(this.try(r)||this._parseBinaryExpr()),!this.accept(m.ParenthesisR))return this.finish(n,I.RightParenthesisExpected)}return this.finish(n)}return null},t.prototype._tryParsePseudoIdentifier=function(){if(!this.peek(m.Colon))return null;var e=this.mark(),n=this.createNode(T.PseudoSelector);return this.consumeToken(),this.hasWhitespace()?(this.restoreAtMark(e),null):(this.accept(m.Colon),this.hasWhitespace()||!n.addChild(this._parseIdent())?this.finish(n,I.IdentifierExpected):this.finish(n))},t.prototype._tryParsePrio=function(){var e=this.mark(),n=this._parsePrio();return n||(this.restoreAtMark(e),null)},t.prototype._parsePrio=function(){if(!this.peek(m.Exclamation))return null;var e=this.createNode(T.Prio);return this.accept(m.Exclamation)&&this.acceptIdent("important")?this.finish(e):null},t.prototype._parseExpr=function(e){e===void 0&&(e=!1);var n=this.create(Da);if(!n.addChild(this._parseBinaryExpr()))return null;for(;;){if(this.peek(m.Comma)){if(e)return this.finish(n);this.consumeToken()}if(!n.addChild(this._parseBinaryExpr()))break}return this.finish(n)},t.prototype._parseNamedLine=function(){if(!this.peek(m.BracketL))return null;var e=this.createNode(T.GridLine);for(this.consumeToken();e.addChild(this._parseIdent()););return this.accept(m.BracketR)?this.finish(e):this.finish(e,I.RightSquareBracketExpected)},t.prototype._parseBinaryExpr=function(e,n){var r=this.create(ii);if(!r.setLeft(e||this._parseTerm()))return null;if(!r.setOperator(n||this._parseOperator()))return this.finish(r);if(!r.setRight(this._parseTerm()))return this.finish(r,I.TermExpected);r=this.finish(r);var i=this._parseOperator();return i&&(r=this._parseBinaryExpr(r,i)),this.finish(r)},t.prototype._parseTerm=function(){var e=this.create(Im);return e.setOperator(this._parseUnaryOperator()),e.setExpression(this._parseTermExpression())?this.finish(e):null},t.prototype._parseTermExpression=function(){return this._parseURILiteral()||this._parseFunction()||this._parseIdent()||this._parseStringLiteral()||this._parseNumeric()||this._parseHexColor()||this._parseOperation()||this._parseNamedLine()},t.prototype._parseOperation=function(){if(!this.peek(m.ParenthesisL))return null;var e=this.create(ne);return this.consumeToken(),e.addChild(this._parseExpr()),this.accept(m.ParenthesisR)?this.finish(e):this.finish(e,I.RightParenthesisExpected)},t.prototype._parseNumeric=function(){if(this.peek(m.Num)||this.peek(m.Percentage)||this.peek(m.Resolution)||this.peek(m.Length)||this.peek(m.EMS)||this.peek(m.EXS)||this.peek(m.Angle)||this.peek(m.Time)||this.peek(m.Dimension)||this.peek(m.Freq)){var e=this.create(oo);return this.consumeToken(),this.finish(e)}return null},t.prototype._parseStringLiteral=function(){if(!this.peek(m.String)&&!this.peek(m.BadString))return null;var e=this.createNode(T.StringLiteral);return this.consumeToken(),this.finish(e)},t.prototype._parseURILiteral=function(){if(!this.peekRegExp(m.Ident,/^url(-prefix)?$/i))return null;var e=this.mark(),n=this.createNode(T.URILiteral);return this.accept(m.Ident),this.hasWhitespace()||!this.peek(m.ParenthesisL)?(this.restoreAtMark(e),null):(this.scanner.inURL=!0,this.consumeToken(),n.addChild(this._parseURLArgument()),this.scanner.inURL=!1,this.accept(m.ParenthesisR)?this.finish(n):this.finish(n,I.RightParenthesisExpected))},t.prototype._parseURLArgument=function(){var e=this.create(ne);return!this.accept(m.String)&&!this.accept(m.BadString)&&!this.acceptUnquotedString()?null:this.finish(e)},t.prototype._parseIdent=function(e){if(!this.peek(m.Ident))return null;var n=this.create(ut);return e&&(n.referenceTypes=e),n.isCustomProperty=this.peekRegExp(m.Ident,/^--/),this.consumeToken(),this.finish(n)},t.prototype._parseFunction=function(){var e=this.mark(),n=this.create(Pn);if(!n.setIdentifier(this._parseFunctionIdentifier()))return null;if(this.hasWhitespace()||!this.accept(m.ParenthesisL))return this.restoreAtMark(e),null;if(n.getArguments().addChild(this._parseFunctionArgument()))for(;this.accept(m.Comma)&&!this.peek(m.ParenthesisR);)n.getArguments().addChild(this._parseFunctionArgument())||this.markError(n,I.ExpressionExpected);return this.accept(m.ParenthesisR)?this.finish(n):this.finish(n,I.RightParenthesisExpected)},t.prototype._parseFunctionIdentifier=function(){if(!this.peek(m.Ident))return null;var e=this.create(ut);if(e.referenceTypes=[be.Function],this.acceptIdent("progid")){if(this.accept(m.Colon))for(;this.accept(m.Ident)&&this.acceptDelim("."););return this.finish(e)}return this.consumeToken(),this.finish(e)},t.prototype._parseFunctionArgument=function(){var e=this.create(ln);return e.setValue(this._parseExpr(!0))?this.finish(e):null},t.prototype._parseHexColor=function(){if(this.peekRegExp(m.Hash,/^#([A-Fa-f0-9]{3}|[A-Fa-f0-9]{4}|[A-Fa-f0-9]{6}|[A-Fa-f0-9]{8})$/g)){var e=this.create(io);return this.consumeToken(),this.finish(e)}else return null},t}()});function Wf(t,e){var n=0,r=t.length;if(r===0)return 0;for(;n{"use strict"});var mk,Of,fk,$a,gk,wo,id=X(()=>{"use strict";ft();Va();mk=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),Of=function(){function t(e,n){this.offset=e,this.length=n,this.symbols=[],this.parent=null,this.children=[]}return t.prototype.addChild=function(e){this.children.push(e),e.setParent(this)},t.prototype.setParent=function(e){this.parent=e},t.prototype.findScope=function(e,n){return n===void 0&&(n=0),this.offset<=e&&this.offset+this.length>e+n||this.offset===e&&this.length===n?this.findInScope(e,n):null},t.prototype.findInScope=function(e,n){n===void 0&&(n=0);var r=e+n,i=Wf(this.children,function(a){return a.offset>r});if(i===0)return this;var o=this.children[i-1];return o.offset<=e&&o.offset+o.length>=e+n?o.findInScope(e,n):this},t.prototype.addSymbol=function(e){this.symbols.push(e)},t.prototype.getSymbol=function(e,n){for(var r=0;r{qf=(()=>{"use strict";var t={470:r=>{function i(s){if(typeof s!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(s))}function o(s,l){for(var c,d="",u=0,h=-1,p=0,g=0;g<=s.length;++g){if(g2){var y=d.lastIndexOf("/");if(y!==d.length-1){y===-1?(d="",u=0):u=(d=d.slice(0,y)).length-1-d.lastIndexOf("/"),h=g,p=0;continue}}else if(d.length===2||d.length===1){d="",u=0,h=g,p=0;continue}}l&&(d.length>0?d+="/..":d="..",u=2)}else d.length>0?d+="/"+s.slice(h+1,g):d=s.slice(h+1,g),u=g-h-1;h=g,p=0}else c===46&&p!==-1?++p:p=-1}return d}var a={resolve:function(){for(var s,l="",c=!1,d=arguments.length-1;d>=-1&&!c;d--){var u;d>=0?u=arguments[d]:(s===void 0&&(s=process.cwd()),u=s),i(u),u.length!==0&&(l=u+"/"+l,c=u.charCodeAt(0)===47)}return l=o(l,!c),c?l.length>0?"/"+l:"/":l.length>0?l:"."},normalize:function(s){if(i(s),s.length===0)return".";var l=s.charCodeAt(0)===47,c=s.charCodeAt(s.length-1)===47;return(s=o(s,!l)).length!==0||l||(s="."),s.length>0&&c&&(s+="/"),l?"/"+s:s},isAbsolute:function(s){return i(s),s.length>0&&s.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var s,l=0;l0&&(s===void 0?s=c:s+="/"+c)}return s===void 0?".":a.normalize(s)},relative:function(s,l){if(i(s),i(l),s===l||(s=a.resolve(s))===(l=a.resolve(l)))return"";for(var c=1;cg){if(l.charCodeAt(h+_)===47)return l.slice(h+_+1);if(_===0)return l.slice(h+_)}else u>g&&(s.charCodeAt(c+_)===47?y=_:_===0&&(y=0));break}var x=s.charCodeAt(c+_);if(x!==l.charCodeAt(h+_))break;x===47&&(y=_)}var v="";for(_=c+y+1;_<=d;++_)_!==d&&s.charCodeAt(_)!==47||(v.length===0?v+="..":v+="/..");return v.length>0?v+l.slice(h+y):(h+=y,l.charCodeAt(h)===47&&++h,l.slice(h))},_makeLong:function(s){return s},dirname:function(s){if(i(s),s.length===0)return".";for(var l=s.charCodeAt(0),c=l===47,d=-1,u=!0,h=s.length-1;h>=1;--h)if((l=s.charCodeAt(h))===47){if(!u){d=h;break}}else u=!1;return d===-1?c?"/":".":c&&d===1?"//":s.slice(0,d)},basename:function(s,l){if(l!==void 0&&typeof l!="string")throw new TypeError('"ext" argument must be a string');i(s);var c,d=0,u=-1,h=!0;if(l!==void 0&&l.length>0&&l.length<=s.length){if(l.length===s.length&&l===s)return"";var p=l.length-1,g=-1;for(c=s.length-1;c>=0;--c){var y=s.charCodeAt(c);if(y===47){if(!h){d=c+1;break}}else g===-1&&(h=!1,g=c+1),p>=0&&(y===l.charCodeAt(p)?--p==-1&&(u=c):(p=-1,u=g))}return d===u?u=g:u===-1&&(u=s.length),s.slice(d,u)}for(c=s.length-1;c>=0;--c)if(s.charCodeAt(c)===47){if(!h){d=c+1;break}}else u===-1&&(h=!1,u=c+1);return u===-1?"":s.slice(d,u)},extname:function(s){i(s);for(var l=-1,c=0,d=-1,u=!0,h=0,p=s.length-1;p>=0;--p){var g=s.charCodeAt(p);if(g!==47)d===-1&&(u=!1,d=p+1),g===46?l===-1?l=p:h!==1&&(h=1):l!==-1&&(h=-1);else if(!u){c=p+1;break}}return l===-1||d===-1||h===0||h===1&&l===d-1&&l===c+1?"":s.slice(l,d)},format:function(s){if(s===null||typeof s!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof s);return function(l,c){var d=c.dir||c.root,u=c.base||(c.name||"")+(c.ext||"");return d?d===c.root?d+u:d+"/"+u:u}(0,s)},parse:function(s){i(s);var l={root:"",dir:"",base:"",ext:"",name:""};if(s.length===0)return l;var c,d=s.charCodeAt(0),u=d===47;u?(l.root="/",c=1):c=0;for(var h=-1,p=0,g=-1,y=!0,_=s.length-1,x=0;_>=c;--_)if((d=s.charCodeAt(_))!==47)g===-1&&(y=!1,g=_+1),d===46?h===-1?h=_:x!==1&&(x=1):h!==-1&&(x=-1);else if(!y){p=_+1;break}return h===-1||g===-1||x===0||x===1&&h===g-1&&h===p+1?g!==-1&&(l.base=l.name=p===0&&u?s.slice(1,g):s.slice(p,g)):(p===0&&u?(l.name=s.slice(1,h),l.base=s.slice(1,g)):(l.name=s.slice(p,h),l.base=s.slice(p,g)),l.ext=s.slice(h,g)),p>0?l.dir=s.slice(0,p-1):u&&(l.dir="/"),l},sep:"/",delimiter:":",win32:null,posix:null};a.posix=a,r.exports=a},447:(r,i,o)=>{var a;if(o.r(i),o.d(i,{URI:()=>x,Utils:()=>V}),typeof process=="object")a=process.platform==="win32";else if(typeof navigator=="object"){var s=navigator.userAgent;a=s.indexOf("Windows")>=0}var l,c,d=(l=function(D,b){return(l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(w,S){w.__proto__=S}||function(w,S){for(var z in S)Object.prototype.hasOwnProperty.call(S,z)&&(w[z]=S[z])})(D,b)},function(D,b){function w(){this.constructor=D}l(D,b),D.prototype=b===null?Object.create(b):(w.prototype=b.prototype,new w)}),u=/^\w[\w\d+.-]*$/,h=/^\//,p=/^\/\//,g="",y="/",_=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/,x=function(){function D(b,w,S,z,E,M){M===void 0&&(M=!1),typeof b=="object"?(this.scheme=b.scheme||g,this.authority=b.authority||g,this.path=b.path||g,this.query=b.query||g,this.fragment=b.fragment||g):(this.scheme=function(U,te){return U||te?U:"file"}(b,M),this.authority=w||g,this.path=function(U,te){switch(U){case"https":case"http":case"file":te?te[0]!==y&&(te=y+te):te=y}return te}(this.scheme,S||g),this.query=z||g,this.fragment=E||g,function(U,te){if(!U.scheme&&te)throw new Error('[UriError]: Scheme is missing: {scheme: "", authority: "'+U.authority+'", path: "'+U.path+'", query: "'+U.query+'", fragment: "'+U.fragment+'"}');if(U.scheme&&!u.test(U.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(U.path){if(U.authority){if(!h.test(U.path))throw new Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character')}else if(p.test(U.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}}(this,M))}return D.isUri=function(b){return b instanceof D||!!b&&typeof b.authority=="string"&&typeof b.fragment=="string"&&typeof b.path=="string"&&typeof b.query=="string"&&typeof b.scheme=="string"&&typeof b.fsPath=="function"&&typeof b.with=="function"&&typeof b.toString=="function"},Object.defineProperty(D.prototype,"fsPath",{get:function(){return A(this,!1)},enumerable:!1,configurable:!0}),D.prototype.with=function(b){if(!b)return this;var w=b.scheme,S=b.authority,z=b.path,E=b.query,M=b.fragment;return w===void 0?w=this.scheme:w===null&&(w=g),S===void 0?S=this.authority:S===null&&(S=g),z===void 0?z=this.path:z===null&&(z=g),E===void 0?E=this.query:E===null&&(E=g),M===void 0?M=this.fragment:M===null&&(M=g),w===this.scheme&&S===this.authority&&z===this.path&&E===this.query&&M===this.fragment?this:new F(w,S,z,E,M)},D.parse=function(b,w){w===void 0&&(w=!1);var S=_.exec(b);return S?new F(S[2]||g,P(S[4]||g),P(S[5]||g),P(S[7]||g),P(S[9]||g),w):new F(g,g,g,g,g)},D.file=function(b){var w=g;if(a&&(b=b.replace(/\\/g,y)),b[0]===y&&b[1]===y){var S=b.indexOf(y,2);S===-1?(w=b.substring(2),b=y):(w=b.substring(2,S),b=b.substring(S)||y)}return new F("file",w,b,g,g)},D.from=function(b){return new F(b.scheme,b.authority,b.path,b.query,b.fragment)},D.prototype.toString=function(b){return b===void 0&&(b=!1),f(this,b)},D.prototype.toJSON=function(){return this},D.revive=function(b){if(b){if(b instanceof D)return b;var w=new F(b);return w._formatted=b.external,w._fsPath=b._sep===v?b.fsPath:null,w}return b},D}(),v=a?1:void 0,F=function(D){function b(){var w=D!==null&&D.apply(this,arguments)||this;return w._formatted=null,w._fsPath=null,w}return d(b,D),Object.defineProperty(b.prototype,"fsPath",{get:function(){return this._fsPath||(this._fsPath=A(this,!1)),this._fsPath},enumerable:!1,configurable:!0}),b.prototype.toString=function(w){return w===void 0&&(w=!1),w?f(this,!0):(this._formatted||(this._formatted=f(this,!1)),this._formatted)},b.prototype.toJSON=function(){var w={$mid:1};return this._fsPath&&(w.fsPath=this._fsPath,w._sep=v),this._formatted&&(w.external=this._formatted),this.path&&(w.path=this.path),this.scheme&&(w.scheme=this.scheme),this.authority&&(w.authority=this.authority),this.query&&(w.query=this.query),this.fragment&&(w.fragment=this.fragment),w},b}(x),B=((c={})[58]="%3A",c[47]="%2F",c[63]="%3F",c[35]="%23",c[91]="%5B",c[93]="%5D",c[64]="%40",c[33]="%21",c[36]="%24",c[38]="%26",c[39]="%27",c[40]="%28",c[41]="%29",c[42]="%2A",c[43]="%2B",c[44]="%2C",c[59]="%3B",c[61]="%3D",c[32]="%20",c);function Y(D,b){for(var w=void 0,S=-1,z=0;z=97&&E<=122||E>=65&&E<=90||E>=48&&E<=57||E===45||E===46||E===95||E===126||b&&E===47)S!==-1&&(w+=encodeURIComponent(D.substring(S,z)),S=-1),w!==void 0&&(w+=D.charAt(z));else{w===void 0&&(w=D.substr(0,z));var M=B[E];M!==void 0?(S!==-1&&(w+=encodeURIComponent(D.substring(S,z)),S=-1),w+=M):S===-1&&(S=z)}}return S!==-1&&(w+=encodeURIComponent(D.substring(S))),w!==void 0?w:D}function ce(D){for(var b=void 0,w=0;w1&&D.scheme==="file"?"//"+D.authority+D.path:D.path.charCodeAt(0)===47&&(D.path.charCodeAt(1)>=65&&D.path.charCodeAt(1)<=90||D.path.charCodeAt(1)>=97&&D.path.charCodeAt(1)<=122)&&D.path.charCodeAt(2)===58?b?D.path.substr(1):D.path[1].toLowerCase()+D.path.substr(2):D.path,a&&(w=w.replace(/\//g,"\\")),w}function f(D,b){var w=b?ce:Y,S="",z=D.scheme,E=D.authority,M=D.path,U=D.query,te=D.fragment;if(z&&(S+=z,S+=":"),(E||z==="file")&&(S+=y,S+=y),E){var oe=E.indexOf("@");if(oe!==-1){var he=E.substr(0,oe);E=E.substr(oe+1),(oe=he.indexOf(":"))===-1?S+=w(he,!1):(S+=w(he.substr(0,oe),!1),S+=":",S+=w(he.substr(oe+1),!1)),S+="@"}(oe=(E=E.toLowerCase()).indexOf(":"))===-1?S+=w(E,!1):(S+=w(E.substr(0,oe),!1),S+=E.substr(oe))}if(M){if(M.length>=3&&M.charCodeAt(0)===47&&M.charCodeAt(2)===58)(me=M.charCodeAt(1))>=65&&me<=90&&(M="/"+String.fromCharCode(me+32)+":"+M.substr(3));else if(M.length>=2&&M.charCodeAt(1)===58){var me;(me=M.charCodeAt(0))>=65&&me<=90&&(M=String.fromCharCode(me+32)+":"+M.substr(2))}S+=w(M,!0)}return U&&(S+="?",S+=w(U,!1)),te&&(S+="#",S+=b?te:Y(te,!1)),S}function C(D){try{return decodeURIComponent(D)}catch{return D.length>3?D.substr(0,3)+C(D.substr(3)):D}}var L=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function P(D){return D.match(L)?D.replace(L,function(b){return C(b)}):D}var V,K=o(470),q=function(){for(var D=0,b=0,w=arguments.length;b{for(var o in i)n.o(i,o)&&!n.o(r,o)&&Object.defineProperty(r,o,{enumerable:!0,get:i[o]})},n.o=(r,i)=>Object.prototype.hasOwnProperty.call(r,i),n.r=r=>{typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(r,"__esModule",{value:!0})},n(447)})();({URI:xo,Utils:Ga}=qf)});function Ka(t){return Ga.dirname(xo.parse(t)).toString()}function So(t){for(var e=[],n=1;n{od();bk=function(t,e,n){if(n||arguments.length===2)for(var r=0,i=e.length,o;r{Qt();tr();ad();Uf=function(t,e,n,r){function i(o){return o instanceof n?o:new n(function(a){a(o)})}return new(n||(n=Promise))(function(o,a){function s(d){try{c(r.next(d))}catch(u){a(u)}}function l(d){try{c(r.throw(d))}catch(u){a(u)}}function c(d){d.done?o(d.value):i(d.value).then(s,l)}c((r=r.apply(t,e||[])).next())})},Hf=function(t,e){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},r,i,o,a;return a={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(c){return function(d){return l([c,d])}}function l(c){if(r)throw new TypeError("Generator is already executing.");for(;n;)try{if(r=1,i&&(o=c[0]&2?i.return:c[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,c[1])).done)return o;switch(i=0,o&&(c=[c[0]&2,o.value]),c[0]){case 0:case 1:o=c;break;case 4:return n.label++,{value:c[1],done:!1};case 5:n.label++,i=c[1],c=[0];continue;case 7:c=n.ops.pop(),n.trys.pop();continue;default:if(o=n.trys,!(o=o.length>0&&o[o.length-1])&&(c[0]===6||c[0]===2)){n=0;continue}if(c[0]===3&&(!o||c[1]>o[0]&&c[1]=0&&` +\r":{[()]},*>+`.indexOf(r.charAt(n))===-1;)n--;return r.substring(n+1,e)}function Gf(t){return t.toLowerCase()in go||/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i.test(t)}var Vf,Sk,_k,kk,Wn,$f,Sn,pi,ld,Tk,Dk,Ya=X(()=>{"use strict";ft();id();ui();tr();Qt();Vf=Oe(Mt());vo();Bf();Sk=function(t,e,n,r){function i(o){return o instanceof n?o:new n(function(a){a(o)})}return new(n||(n=Promise))(function(o,a){function s(d){try{c(r.next(d))}catch(u){a(u)}}function l(d){try{c(r.throw(d))}catch(u){a(u)}}function c(d){d.done?o(d.value):i(d.value).then(s,l)}c((r=r.apply(t,e||[])).next())})},_k=function(t,e){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},r,i,o,a;return a={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(c){return function(d){return l([c,d])}}function l(c){if(r)throw new TypeError("Generator is already executing.");for(;n;)try{if(r=1,i&&(o=c[0]&2?i.return:c[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,c[1])).done)return o;switch(i=0,o&&(c=[c[0]&2,o.value]),c[0]){case 0:case 1:o=c;break;case 4:return n.label++,{value:c[1],done:!1};case 5:n.label++,i=c[1],c=[0];continue;case 7:c=n.ops.pop(),n.trys.pop();continue;default:if(o=n.trys,!(o=o.length>0&&o[o.length-1])&&(c[0]===6||c[0]===2)){n=0;continue}if(c[0]===3&&(!o||c[1]>o[0]&&c[1]=0;a--){var s=this.nodePath[a];if(s instanceof ni)this.getCompletionsForDeclarationProperty(s.getParent(),o);else if(s instanceof Da)s.parent instanceof ao?this.getVariableProposals(null,o):this.getCompletionsForExpression(s,o);else if(s instanceof wn){var l=s.findAParent(T.ExtendsReference,T.Ruleset);if(l)if(l.type===T.ExtendsReference)this.getCompletionsForExtendsReference(l,s,o);else{var c=l;this.getCompletionsForSelector(c,c&&c.isNested(),o)}}else if(s instanceof ln)this.getCompletionsForFunctionArgument(s,s.getParent(),o);else if(s instanceof no)this.getCompletionsForDeclarations(s,o);else if(s instanceof rr)this.getCompletionsForVariableDeclaration(s,o);else if(s instanceof Mn)this.getCompletionsForRuleSet(s,o);else if(s instanceof ao)this.getCompletionsForInterpolation(s,o);else if(s instanceof Sr)this.getCompletionsForFunctionDeclaration(s,o);else if(s instanceof kr)this.getCompletionsForMixinReference(s,o);else if(s instanceof Pn)this.getCompletionsForFunctionArgument(null,s,o);else if(s instanceof ro)this.getCompletionsForSupports(s,o);else if(s instanceof _r)this.getCompletionsForSupportsCondition(s,o);else if(s instanceof ir)this.getCompletionsForExtendsReference(s,null,o);else if(s.type===T.URILiteral)this.getCompletionForUriLiteralValue(s,o);else if(s.parent===null)this.getCompletionForTopLevel(o);else if(s.type===T.StringLiteral&&this.isImportPathParent(s.parent.type))this.getCompletionForImportPath(s,o);else continue;if(o.items.length>0||this.offset>s.offset)return this.finalize(o)}return this.getCompletionsForStylesheet(o),o.items.length===0&&this.variablePrefix&&this.currentWord.indexOf(this.variablePrefix)===0&&this.getVariableProposals(null,o),this.finalize(o)}finally{this.position=null,this.currentWord=null,this.textDocument=null,this.styleSheet=null,this.symbolContext=null,this.defaultReplaceRange=null,this.nodePath=null}},t.prototype.isImportPathParent=function(e){return e===T.Import},t.prototype.finalize=function(e){return e},t.prototype.findInNodePath=function(){for(var e=[],n=0;n=0;r--){var i=this.nodePath[r];if(e.indexOf(i.type)!==-1)return i}return null},t.prototype.getCompletionsForDeclarationProperty=function(e,n){return this.getPropertyProposals(e,n)},t.prototype.getPropertyProposals=function(e,n){var r=this,i=this.isTriggerPropertyValueCompletionEnabled,o=this.isCompletePropertyWithSemicolonEnabled,a=this.cssDataManager.getProperties();return a.forEach(function(s){var l,c,d=!1;e?(l=r.getCompletionRange(e.getProperty()),c=s.name,zt(e.colonPosition)||(c+=": ",d=!0)):(l=r.getCompletionRange(null),c=s.name+": ",d=!0),!e&&o&&(c+="$0;"),e&&!e.semicolonPosition&&o&&r.offset>=r.textDocument.offsetAt(l.end)&&(c+="$0;");var u={label:s.name,documentation:xn(s,r.doesSupportMarkdown()),tags:_o(s)?[Ln.Deprecated]:[],textEdit:de.replace(l,c),insertTextFormat:gt.Snippet,kind:ae.Property};s.restrictions||(d=!1),i&&d&&(u.command=$f);var h=typeof s.relevance=="number"?Math.min(Math.max(s.relevance,0),99):50,p=(255-h).toString(16),g=Le(s.name,"-")?Sn.VendorPrefixed:Sn.Normal;u.sortText=g+"_"+p,n.items.push(u)}),this.completionParticipants.forEach(function(s){s.onCssProperty&&s.onCssProperty({propertyName:r.currentWord,range:r.defaultReplaceRange})}),n},Object.defineProperty(t.prototype,"isTriggerPropertyValueCompletionEnabled",{get:function(){var e,n;return(n=(e=this.documentSettings)===null||e===void 0?void 0:e.triggerPropertyValueCompletion)!==null&&n!==void 0?n:!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isCompletePropertyWithSemicolonEnabled",{get:function(){var e,n;return(n=(e=this.documentSettings)===null||e===void 0?void 0:e.completePropertyWithSemicolon)!==null&&n!==void 0?n:!0},enumerable:!1,configurable:!0}),t.prototype.getCompletionsForDeclarationValue=function(e,n){for(var r=this,i=e.getFullPropertyName(),o=this.cssDataManager.getProperty(i),a=e.getValue()||null;a&&a.hasChildren();)a=a.findChildAtOffset(this.offset,!1);if(this.completionParticipants.forEach(function(g){g.onCssPropertyValue&&g.onCssPropertyValue({propertyName:i,propertyValue:r.currentWord,range:r.getCompletionRange(a)})}),o){if(o.restrictions)for(var s=0,l=o.restrictions;s=e.offset+2&&this.getVariableProposals(null,n),n},t.prototype.getVariableProposals=function(e,n){for(var r=this.getSymbolContext().findSymbolsAtOffset(this.offset,be.Variable),i=0,o=r;i0){var o=this.currentWord.match(/^-?\d[\.\d+]*/);o&&(i=o[0],r.isIncomplete=i.length===this.currentWord.length)}else this.currentWord.length===0&&(r.isIncomplete=!0);if(n&&n.parent&&n.parent.type===T.Term&&(n=n.getParent()),e.restrictions)for(var a=0,s=e.restrictions;a=r.end;if(i)return this.getCompletionForTopLevel(n);var o=!r||this.offset<=r.offset;return o?this.getCompletionsForSelector(e,e.isNested(),n):this.getCompletionsForDeclarations(e.getDeclarations(),n)},t.prototype.getCompletionsForSelector=function(e,n,r){var i=this,o=this.findInNodePath(T.PseudoSelector,T.IdentifierSelector,T.ClassSelector,T.ElementNameSelector);!o&&this.hasCharacterAtPosition(this.offset-this.currentWord.length-1,":")&&(this.currentWord=":"+this.currentWord,this.hasCharacterAtPosition(this.offset-this.currentWord.length-1,":")&&(this.currentWord=":"+this.currentWord),this.defaultReplaceRange=ke.create(_t.create(this.position.line,this.position.character-this.currentWord.length),this.position));var a=this.cssDataManager.getPseudoClasses();a.forEach(function(_){var x=mi(_.name),v={label:_.name,textEdit:de.replace(i.getCompletionRange(o),x),documentation:xn(_,i.doesSupportMarkdown()),tags:_o(_)?[Ln.Deprecated]:[],kind:ae.Function,insertTextFormat:_.name!==x?Wn:void 0};Le(_.name,":-")&&(v.sortText=Sn.VendorPrefixed),r.items.push(v)});var s=this.cssDataManager.getPseudoElements();if(s.forEach(function(_){var x=mi(_.name),v={label:_.name,textEdit:de.replace(i.getCompletionRange(o),x),documentation:xn(_,i.doesSupportMarkdown()),tags:_o(_)?[Ln.Deprecated]:[],kind:ae.Function,insertTextFormat:_.name!==x?Wn:void 0};Le(_.name,"::-")&&(v.sortText=Sn.VendorPrefixed),r.items.push(v)}),!n){for(var l=0,c=Mf;l0){var x=g.substr(_.offset,_.length);return x.charAt(0)==="."&&!p[x]&&(p[x]=!0,r.items.push({label:x,textEdit:de.replace(i.getCompletionRange(o),x),kind:ae.Keyword})),!1}return!0}),e&&e.isNested()){var y=e.getSelectors().findFirstChildBeforeOffset(this.offset);y&&e.getSelectors().getChildren().indexOf(y)===0&&this.getPropertyProposals(null,r)}return r},t.prototype.getCompletionsForDeclarations=function(e,n){if(!e||this.offset===e.offset)return n;var r=e.findFirstChildBeforeOffset(this.offset);if(!r)return this.getCompletionsForDeclarationProperty(null,n);if(r instanceof xa){var i=r;if(!zt(i.colonPosition)||this.offset<=i.colonPosition)return this.getCompletionsForDeclarationProperty(i,n);if(zt(i.semicolonPosition)&&i.semicolonPositione.colonPosition&&this.getVariableProposals(e.getValue(),n),n},t.prototype.getCompletionsForExpression=function(e,n){var r=e.getParent();if(r instanceof ln)return this.getCompletionsForFunctionArgument(r,r.getParent(),n),n;var i=e.findParent(T.Declaration);if(!i)return this.getTermProposals(void 0,null,n),n;var o=e.findChildAtOffset(this.offset,!0);return o?o instanceof oo||o instanceof ut?this.getCompletionsForDeclarationValue(i,n):n:this.getCompletionsForDeclarationValue(i,n)},t.prototype.getCompletionsForFunctionArgument=function(e,n,r){var i=n.getIdentifier();return i&&i.matches("var")&&(!n.getArguments().hasChildren()||n.getArguments().getChild(0)===e)&&this.getVariableProposalsForCSSVarFunction(r),r},t.prototype.getCompletionsForFunctionDeclaration=function(e,n){var r=e.getDeclarations();return r&&this.offset>r.offset&&this.offsete.lParent&&(!zt(e.rParent)||this.offset<=e.rParent)?this.getCompletionsForDeclarationProperty(null,n):n},t.prototype.getCompletionsForSupports=function(e,n){var r=e.getDeclarations(),i=!r||this.offset<=r.offset;if(i){var o=e.findFirstChildBeforeOffset(this.offset);return o instanceof _r?this.getCompletionsForSupportsCondition(o,n):n}return this.getCompletionForTopLevel(n)},t.prototype.getCompletionsForExtendsReference=function(e,n,r){return r},t.prototype.getCompletionForUriLiteralValue=function(e,n){var r,i,o;if(e.hasChildren()){var s=e.getChild(0);r=s.getText(),i=this.position,o=this.getCompletionRange(s)}else{r="",i=this.position;var a=this.textDocument.positionAt(e.offset+"url(".length);o=ke.create(a,a)}return this.completionParticipants.forEach(function(l){l.onCssURILiteralValue&&l.onCssURILiteralValue({uriValue:r,position:i,range:o})}),n},t.prototype.getCompletionForImportPath=function(e,n){var r=this;return this.completionParticipants.forEach(function(i){i.onCssImportPath&&i.onCssImportPath({pathValue:e.getText(),position:r.position,range:r.getCompletionRange(e)})}),n},t.prototype.hasCharacterAtPosition=function(e,n){var r=this.textDocument.getText();return e>=0&&e1){var c=e.cloneWithParent();n.addChild(c.findRoot()),n=c}n.append(a[l])}}break;case T.SelectorPlaceholder:if(o.matches("@at-root"))return n;case T.ElementNameSelector:var d=o.getText();n.addAttr("name",d==="*"?"element":Zt(d));break;case T.ClassSelector:n.addAttr("class",Zt(o.getText().substring(1)));break;case T.IdentifierSelector:n.addAttr("id",Zt(o.getText().substring(1)));break;case T.MixinDeclaration:n.addAttr("class",o.getName());break;case T.PseudoSelector:n.addAttr(Zt(o.getText()),"");break;case T.AttributeSelector:var u=o,h=u.getIdentifier();if(h){var p=u.getValue(),g=u.getOperator(),y=void 0;if(p&&g)switch(Zt(g.getText())){case"|=":y=On.remove(Zt(p.getText()))+"-\u2026";break;case"^=":y=On.remove(Zt(p.getText()))+"\u2026";break;case"$=":y="\u2026"+On.remove(Zt(p.getText()));break;case"~=":y=" \u2026 "+On.remove(Zt(p.getText()))+" \u2026 ";break;case"*=":y="\u2026"+On.remove(Zt(p.getText()))+"\u2026";break;default:y=On.remove(Zt(p.getText()));break}n.addAttr(Zt(h.getText()),y)}break}}return n}function Zt(t){var e=new vn;e.setSource(t);var n=e.scanUnquotedString();return n?n.text:t}function Mk(t){switch(t.type){case T.MixinDeclaration:case T.Stylesheet:return!0}return!1}function Pk(t){if(t.matches("@at-root"))return null;var e=new fi,n=[],r=t.getParent();if(r instanceof Mn)for(var i=r.getParent();i&&!Mk(i);){if(i instanceof Mn){if(i.getSelectors().matches("@at-root"))break;n.push(i)}i=i.getParent()}for(var o=new Fk(e),a=n.length-1;a>=0;a--){var s=n[a].getSelectors().getChild(0);s&&o.processSelector(s)}return o.processSelector(t),e}var Jf,Kf,Ek,cd,fi,dd,Xf,On,Ak,Qf,Fk,Zf=X(()=>{"use strict";ft();er();Jf=Oe(Mt()),Kf=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ek=Jf.loadMessageBundle(),cd=function(){function t(){this.parent=null,this.children=null,this.attributes=null}return t.prototype.findAttribute=function(e){if(this.attributes)for(var n=0,r=this.attributes;n"),this.writeLine(n,i.join(""))},t}();(function(t){function e(r,i){return i+n(r)+i}t.ensure=e;function n(r){var i=r.match(/^['"](.*)["']$/);return i?i[1]:r}t.remove=n})(On||(On={}));Ak=function(){function t(){this.id=0,this.attr=0,this.tag=0}return t}();Qf=function(){function t(e){this.cssDataManager=e}return t.prototype.selectorToMarkedString=function(e){var n=Pk(e);if(n){var r=new Xf('"').print(n);return r.push(this.selectorToSpecificityMarkedString(e)),r}else return[]},t.prototype.simpleSelectorToMarkedString=function(e){var n=Yf(e),r=new Xf('"').print(n);return r.push(this.selectorToSpecificityMarkedString(e)),r},t.prototype.isPseudoElementIdentifier=function(e){var n=e.match(/^::?([\w-]+)/);return n?!!this.cssDataManager.getPseudoElement("::"+n[1]):!1},t.prototype.selectorToSpecificityMarkedString=function(e){var n=this,r=function(o){for(var a=0,s=o.getChildren();a0&&r(l)}},i=new Ak;return r(e),Ek("specificity","[Selector Specificity](https://developer.mozilla.org/en-US/docs/Web/CSS/Specificity): ({0}, {1}, {2})",i.id,i.attr,i.tag)},t}(),Fk=function(){function t(e){this.prev=null,this.element=e}return t.prototype.processSelector=function(e){var n=null;if(!(this.element instanceof fi)&&e.getChildren().some(function(d){return d.hasChildren()&&d.getChild(0).type===T.SelectorCombinator})){var r=this.element.findRoot();r.parent instanceof fi&&(n=this.element,this.element=r.parent,this.element.removeChild(r),this.prev=null)}for(var i=0,o=e.getChildren();i{"use strict";ft();ui();Zf();tr();Qt();vo();eg=function(){function t(e,n){this.clientCapabilities=e,this.cssDataManager=n,this.selectorPrinting=new Qf(n)}return t.prototype.configure=function(e){this.defaultSettings=e},t.prototype.doHover=function(e,n,r,i){i===void 0&&(i=this.defaultSettings);function o(_){return ke.create(e.positionAt(_.offset),e.positionAt(_.end))}for(var a=e.offsetAt(n),s=ti(r,a),l=null,c=0;c{"use strict";Qt();ng=Oe(Mt());ft();id();ui();tr();ad();Qa=function(t,e,n,r){function i(o){return o instanceof n?o:new n(function(a){a(o)})}return new(n||(n=Promise))(function(o,a){function s(d){try{c(r.next(d))}catch(u){a(u)}}function l(d){try{c(r.throw(d))}catch(u){a(u)}}function c(d){d.done?o(d.value):i(d.value).then(s,l)}c((r=r.apply(t,e||[])).next())})},Za=function(t,e){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},r,i,o,a;return a={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(c){return function(d){return l([c,d])}}function l(c){if(r)throw new TypeError("Generator is already executing.");for(;n;)try{if(r=1,i&&(o=c[0]&2?i.return:c[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,c[1])).done)return o;switch(i=0,o&&(c=[c[0]&2,o.value]),c[0]){case 0:case 1:o=c;break;case 4:return n.label++,{value:c[1],done:!1};case 5:n.label++,i=c[1],c=[0];continue;case 7:c=n.ops.pop(),n.trys.pop();continue;default:if(o=n.trys,!(o=o.length>0&&o[o.length-1])&&(c[0]===6||c[0]===2)){n=0;continue}if(c[0]===3&&(!o||c[1]>o[0]&&c[1]{"use strict";ft();sg=Oe(Mt()),nt=sg.loadMessageBundle(),gi=mt.Warning,lg=mt.Error,dn=mt.Ignore,ot=function(){function t(e,n,r){this.id=e,this.message=n,this.defaultValue=r}return t}(),Lk=function(){function t(e,n,r){this.id=e,this.message=n,this.defaultValue=r}return t}(),Ae={AllVendorPrefixes:new ot("compatibleVendorPrefixes",nt("rule.vendorprefixes.all","When using a vendor-specific prefix make sure to also include all other vendor-specific properties"),dn),IncludeStandardPropertyWhenUsingVendorPrefix:new ot("vendorPrefix",nt("rule.standardvendorprefix.all","When using a vendor-specific prefix also include the standard property"),gi),DuplicateDeclarations:new ot("duplicateProperties",nt("rule.duplicateDeclarations","Do not use duplicate style definitions"),dn),EmptyRuleSet:new ot("emptyRules",nt("rule.emptyRuleSets","Do not use empty rulesets"),gi),ImportStatemement:new ot("importStatement",nt("rule.importDirective","Import statements do not load in parallel"),dn),BewareOfBoxModelSize:new ot("boxModel",nt("rule.bewareOfBoxModelSize","Do not use width or height when using padding or border"),dn),UniversalSelector:new ot("universalSelector",nt("rule.universalSelector","The universal selector (*) is known to be slow"),dn),ZeroWithUnit:new ot("zeroUnits",nt("rule.zeroWidthUnit","No unit for zero needed"),dn),RequiredPropertiesForFontFace:new ot("fontFaceProperties",nt("rule.fontFaceProperties","@font-face rule must define 'src' and 'font-family' properties"),gi),HexColorLength:new ot("hexColorLength",nt("rule.hexColor","Hex colors must consist of three, four, six or eight hex numbers"),lg),ArgsInColorFunction:new ot("argumentsInColorFunction",nt("rule.colorFunction","Invalid number of parameters"),lg),UnknownProperty:new ot("unknownProperties",nt("rule.unknownProperty","Unknown property."),gi),UnknownAtRules:new ot("unknownAtRules",nt("rule.unknownAtRules","Unknown at-rule."),gi),IEStarHack:new ot("ieHack",nt("rule.ieHack","IE hacks are only necessary when supporting IE7 and older"),dn),UnknownVendorSpecificProperty:new ot("unknownVendorSpecificProperties",nt("rule.unknownVendorSpecificProperty","Unknown vendor specific property."),dn),PropertyIgnoredDueToDisplay:new ot("propertyIgnoredDueToDisplay",nt("rule.propertyIgnoredDueToDisplay","Property is ignored due to the display."),gi),AvoidImportant:new ot("important",nt("rule.avoidImportant","Avoid using !important. It is an indication that the specificity of the entire CSS has gotten out of control and needs to be refactored."),dn),AvoidFloat:new ot("float",nt("rule.avoidFloat","Avoid using 'float'. Floats lead to fragile CSS that is easy to break if one aspect of the layout changes."),dn),AvoidIdSelector:new ot("idSelector",nt("rule.avoidIdSelector","Selectors should not contain IDs because these rules are too tightly coupled with the HTML."),dn)},cg={ValidProperties:new Lk("validProperties",nt("rule.validProperties","A list of properties that are not validated against the `unknownProperties` rule."),[])},dg=function(){function t(e){e===void 0&&(e={}),this.conf=e}return t.prototype.getRule=function(e){if(this.conf.hasOwnProperty(e.id)){var n=Nk(this.conf[e.id]);if(n)return n}return e.defaultValue},t.prototype.getSetting=function(e){return this.conf[e.id]},t}()});var ug,Wk,hg,pg=X(()=>{"use strict";ft();tr();ts();Qt();ug=Oe(Mt()),Wk=ug.loadMessageBundle(),hg=function(){function t(e){this.cssDataManager=e}return t.prototype.doCodeActions=function(e,n,r,i){return this.doCodeActions2(e,n,r,i).map(function(o){var a=o.edit&&o.edit.documentChanges&&o.edit.documentChanges[0];return ar.create(o.title,"_css.applyCodeAction",e.uri,e.version,a&&a.edits)})},t.prototype.doCodeActions2=function(e,n,r,i){var o=[];if(r.diagnostics)for(var a=0,s=r.diagnostics;a=o.length/2&&a.push({property:x.name,score:v})}),a.sort(function(x,v){return v.score-x.score||x.property.localeCompare(v.property)});for(var s=3,l=0,c=a;l=0;l--){var c=s[l];if(c instanceof St){var d=c.getProperty();if(d&&d.offset===o&&d.end===a){this.getFixesForUnknownProperty(e,d,r,i);return}}}},t}()});function ko(t,e,n,r){var i=t[e];i.value=n,n&&(rd(i.properties,r)||i.properties.push(r))}function Ok(t,e,n){ko(t,"top",e,n),ko(t,"right",e,n),ko(t,"bottom",e,n),ko(t,"left",e,n)}function vt(t,e,n,r){e==="top"||e==="right"||e==="bottom"||e==="left"?ko(t,e,n,r):Ok(t,n,r)}function hd(t,e,n){switch(e.length){case 1:vt(t,void 0,e[0],n);break;case 2:vt(t,"top",e[0],n),vt(t,"bottom",e[0],n),vt(t,"right",e[1],n),vt(t,"left",e[1],n);break;case 3:vt(t,"top",e[0],n),vt(t,"right",e[1],n),vt(t,"left",e[1],n),vt(t,"bottom",e[2],n);break;case 4:vt(t,"top",e[0],n),vt(t,"right",e[1],n),vt(t,"bottom",e[2],n),vt(t,"left",e[3],n);break}}function pd(t,e){for(var n=0,r=e;n{"use strict";Va();mg=function(){function t(e){this.fullPropertyName=e.getFullPropertyName().toLowerCase(),this.node=e}return t}()});var bg,qn,vg,yg,wg=X(()=>{"use strict";bg=Oe(Mt());ui();ft();Va();ts();gg();qn=bg.loadMessageBundle(),vg=function(){function t(){this.data={}}return t.prototype.add=function(e,n,r){var i=this.data[e];i||(i={nodes:[],names:[]},this.data[e]=i),i.names.push(n),r&&i.nodes.push(r)},t}(),yg=function(){function t(e,n,r){var i=this;this.cssDataManager=r,this.warnings=[],this.settings=n,this.documentText=e.getText(),this.keyframes=new vg,this.validProperties={};var o=n.getSetting(cg.ValidProperties);Array.isArray(o)&&o.forEach(function(a){if(typeof a=="string"){var s=a.trim().toLowerCase();s.length&&(i.validProperties[s]=!0)}})}return t.entries=function(e,n,r,i,o){var a=new t(n,r,i);return e.acceptVisitor(a),a.completeValidations(),a.getEntries(o)},t.prototype.isValidPropertyDeclaration=function(e){var n=e.fullPropertyName;return this.validProperties[n]},t.prototype.fetch=function(e,n){for(var r=[],i=0,o=e;i0)for(var y=this.fetch(r,"float"),_=0;_0)for(var y=this.fetch(r,"vertical-align"),_=0;_1)for(var ce=0;ce{"use strict";ft();ts();wg();Qt();xg=function(){function t(e){this.cssDataManager=e}return t.prototype.configure=function(e){this.settings=e},t.prototype.doValidation=function(e,n,r){if(r===void 0&&(r=this.settings),r&&r.validate===!1)return[];var i=[];i.push.apply(i,jm.entries(n)),i.push.apply(i,yg.entries(n,e,new dg(r&&r.lint),this.cssDataManager));var o=[];for(var a in Ae)o.push(Ae[a].id);function s(l){var c=ke.create(e.positionAt(l.getOffset()),e.positionAt(l.getOffset()+l.getLength())),d=e.languageId;return{code:l.getRule().id,source:d,message:l.getMessage(),severity:l.getLevel()===mt.Warning?si.Warning:si.Error,range:c}}return i.filter(function(l){return l.getLevel()!==mt.Ignore}).map(s)},t}()});var Hk,_g,jk,Bk,Vk,$k,Gk,Kk,To,Jk,Xk,Yk,fd,g2,Un,rs,bi,b2,gd,bd,vd,yd,Do,v2,is,wd=X(()=>{"use strict";er();Hk=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),_g="/".charCodeAt(0),jk=` +`.charCodeAt(0),Bk="\r".charCodeAt(0),Vk="\f".charCodeAt(0),$k="$".charCodeAt(0),Gk="#".charCodeAt(0),Kk="{".charCodeAt(0),To="=".charCodeAt(0),Jk="!".charCodeAt(0),Xk="<".charCodeAt(0),Yk=">".charCodeAt(0),fd=".".charCodeAt(0),g2="@".charCodeAt(0),Un=m.CustomToken,rs=Un++,bi=Un++,b2=Un++,gd=Un++,bd=Un++,vd=Un++,yd=Un++,Do=Un++,v2=Un++,is=function(t){Hk(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.scanNext=function(n){if(this.stream.advanceIfChar($k)){var r=["$"];if(this.ident(r))return this.finishToken(n,rs,r.join(""));this.stream.goBackTo(n)}return this.stream.advanceIfChars([Gk,Kk])?this.finishToken(n,bi):this.stream.advanceIfChars([To,To])?this.finishToken(n,gd):this.stream.advanceIfChars([Jk,To])?this.finishToken(n,bd):this.stream.advanceIfChar(Xk)?this.stream.advanceIfChar(To)?this.finishToken(n,yd):this.finishToken(n,m.Delim):this.stream.advanceIfChar(Yk)?this.stream.advanceIfChar(To)?this.finishToken(n,vd):this.finishToken(n,m.Delim):this.stream.advanceIfChars([fd,fd,fd])?this.finishToken(n,Do):t.prototype.scanNext.call(this,n)},e.prototype.comment=function(){return t.prototype.comment.call(this)?!0:!this.inURL&&this.stream.advanceIfChars([_g,_g])?(this.stream.advanceWhileChar(function(n){switch(n){case jk:case Bk:case Vk:return!1;default:return!0}}),!0):!1},e}(vn)});var kg,xd,Sd,os,Cg=X(()=>{"use strict";kg=Oe(Mt()),xd=kg.loadMessageBundle(),Sd=function(){function t(e,n){this.id=e,this.message=n}return t}(),os={FromExpected:new Sd("scss-fromexpected",xd("expected.from","'from' expected")),ThroughOrToExpected:new Sd("scss-throughexpected",xd("expected.through","'through' or 'to' expected")),InExpected:new Sd("scss-fromexpected",xd("expected.in","'in' expected"))}});var Zk,e0,Tg=X(()=>{"use strict";wd();er();Ba();ft();Cg();Fa();Zk=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),e0=function(t){Zk(e,t);function e(){return t.call(this,new is)||this}return e.prototype._parseStylesheetStatement=function(n){return n===void 0&&(n=!1),this.peek(m.AtKeyword)?this._parseWarnAndDebug()||this._parseControlStatement()||this._parseMixinDeclaration()||this._parseMixinContent()||this._parseMixinReference()||this._parseFunctionDeclaration()||this._parseForward()||this._parseUse()||this._parseRuleset(n)||t.prototype._parseStylesheetAtStatement.call(this,n):this._parseRuleset(!0)||this._parseVariableDeclaration()},e.prototype._parseImport=function(){if(!this.peekKeyword("@import"))return null;var n=this.create(ri);if(this.consumeToken(),!n.addChild(this._parseURILiteral())&&!n.addChild(this._parseStringLiteral()))return this.finish(n,I.URIOrStringExpected);for(;this.accept(m.Comma);)if(!n.addChild(this._parseURILiteral())&&!n.addChild(this._parseStringLiteral()))return this.finish(n,I.URIOrStringExpected);return!this.peek(m.SemiColon)&&!this.peek(m.EOF)&&n.setMedialist(this._parseMediaQueryList()),this.finish(n)},e.prototype._parseVariableDeclaration=function(n){if(n===void 0&&(n=[]),!this.peek(rs))return null;var r=this.create(rr);if(!r.setVariable(this._parseVariable()))return null;if(!this.accept(m.Colon))return this.finish(r,I.ColonExpected);if(this.prevToken&&(r.colonPosition=this.prevToken.offset),!r.setValue(this._parseExpr()))return this.finish(r,I.VariableValueExpected,[],n);for(;this.peek(m.Exclamation);)if(!r.addChild(this._tryParsePrio())){if(this.consumeToken(),!this.peekRegExp(m.Ident,/^(default|global)$/))return this.finish(r,I.UnknownKeyword);this.consumeToken()}return this.peek(m.SemiColon)&&(r.semicolonPosition=this.token.offset),this.finish(r)},e.prototype._parseMediaCondition=function(){return this._parseInterpolation()||t.prototype._parseMediaCondition.call(this)},e.prototype._parseMediaFeatureName=function(){return this._parseModuleMember()||this._parseFunction()||this._parseIdent()||this._parseVariable()},e.prototype._parseKeyframeSelector=function(){return this._tryParseKeyframeSelector()||this._parseControlStatement(this._parseKeyframeSelector.bind(this))||this._parseVariableDeclaration()||this._parseMixinContent()},e.prototype._parseVariable=function(){if(!this.peek(rs))return null;var n=this.create(oi);return this.consumeToken(),n},e.prototype._parseModuleMember=function(){var n=this.mark(),r=this.create(Sc);return r.setIdentifier(this._parseIdent([be.Module]))?this.hasWhitespace()||!this.acceptDelim(".")||this.hasWhitespace()?(this.restoreAtMark(n),null):r.addChild(this._parseVariable()||this._parseFunction())?r:this.finish(r,I.IdentifierOrVariableExpected):null},e.prototype._parseIdent=function(n){var r=this;if(!this.peek(m.Ident)&&!this.peek(bi)&&!this.peekDelim("-"))return null;var i=this.create(ut);i.referenceTypes=n,i.isCustomProperty=this.peekRegExp(m.Ident,/^--/);for(var o=!1,a=function(){var s=r.mark();return r.acceptDelim("-")&&(r.hasWhitespace()||r.acceptDelim("-"),r.hasWhitespace())?(r.restoreAtMark(s),null):r._parseInterpolation()};(this.accept(m.Ident)||i.addChild(a())||o&&this.acceptRegexp(/^[\w-]/))&&(o=!0,!this.hasWhitespace()););return o?this.finish(i):null},e.prototype._parseTermExpression=function(){return this._parseModuleMember()||this._parseVariable()||this._parseSelectorCombinator()||t.prototype._parseTermExpression.call(this)},e.prototype._parseInterpolation=function(){if(this.peek(bi)){var n=this.create(ao);return this.consumeToken(),!n.addChild(this._parseExpr())&&!this._parseSelectorCombinator()?this.accept(m.CurlyR)?this.finish(n):this.finish(n,I.ExpressionExpected):this.accept(m.CurlyR)?this.finish(n):this.finish(n,I.RightCurlyExpected)}return null},e.prototype._parseOperator=function(){if(this.peek(gd)||this.peek(bd)||this.peek(vd)||this.peek(yd)||this.peekDelim(">")||this.peekDelim("<")||this.peekIdent("and")||this.peekIdent("or")||this.peekDelim("%")){var n=this.createNode(T.Operator);return this.consumeToken(),this.finish(n)}return t.prototype._parseOperator.call(this)},e.prototype._parseUnaryOperator=function(){if(this.peekIdent("not")){var n=this.create(ne);return this.consumeToken(),this.finish(n)}return t.prototype._parseUnaryOperator.call(this)},e.prototype._parseRuleSetDeclaration=function(){return this.peek(m.AtKeyword)?this._parseKeyframe()||this._parseImport()||this._parseMedia(!0)||this._parseFontFace()||this._parseWarnAndDebug()||this._parseControlStatement()||this._parseFunctionDeclaration()||this._parseExtends()||this._parseMixinReference()||this._parseMixinContent()||this._parseMixinDeclaration()||this._parseRuleset(!0)||this._parseSupports(!0)||t.prototype._parseRuleSetDeclarationAtStatement.call(this):this._parseVariableDeclaration()||this._tryParseRuleset(!0)||t.prototype._parseRuleSetDeclaration.call(this)},e.prototype._parseDeclaration=function(n){var r=this._tryParseCustomPropertyDeclaration(n);if(r)return r;var i=this.create(St);if(!i.setProperty(this._parseProperty()))return null;if(!this.accept(m.Colon))return this.finish(i,I.ColonExpected,[m.Colon],n||[m.SemiColon]);this.prevToken&&(i.colonPosition=this.prevToken.offset);var o=!1;if(i.setValue(this._parseExpr())&&(o=!0,i.addChild(this._parsePrio())),this.peek(m.CurlyL))i.setNestedProperties(this._parseNestedProperties());else if(!o)return this.finish(i,I.PropertyValueExpected);return this.peek(m.SemiColon)&&(i.semicolonPosition=this.token.offset),this.finish(i)},e.prototype._parseNestedProperties=function(){var n=this.create(wc);return this._parseBody(n,this._parseDeclaration.bind(this))},e.prototype._parseExtends=function(){if(this.peekKeyword("@extend")){var n=this.create(ir);if(this.consumeToken(),!n.getSelectors().addChild(this._parseSimpleSelector()))return this.finish(n,I.SelectorExpected);for(;this.accept(m.Comma);)n.getSelectors().addChild(this._parseSimpleSelector());return this.accept(m.Exclamation)&&!this.acceptIdent("optional")?this.finish(n,I.UnknownKeyword):this.finish(n)}return null},e.prototype._parseSimpleSelectorBody=function(){return this._parseSelectorCombinator()||this._parseSelectorPlaceholder()||t.prototype._parseSimpleSelectorBody.call(this)},e.prototype._parseSelectorCombinator=function(){if(this.peekDelim("&")){var n=this.createNode(T.SelectorCombinator);for(this.consumeToken();!this.hasWhitespace()&&(this.acceptDelim("-")||this.accept(m.Num)||this.accept(m.Dimension)||n.addChild(this._parseIdent())||this.acceptDelim("&")););return this.finish(n)}return null},e.prototype._parseSelectorPlaceholder=function(){if(this.peekDelim("%")){var n=this.createNode(T.SelectorPlaceholder);return this.consumeToken(),this._parseIdent(),this.finish(n)}else if(this.peekKeyword("@at-root")){var n=this.createNode(T.SelectorPlaceholder);return this.consumeToken(),this.finish(n)}return null},e.prototype._parseElementName=function(){var n=this.mark(),r=t.prototype._parseElementName.call(this);return r&&!this.hasWhitespace()&&this.peek(m.ParenthesisL)?(this.restoreAtMark(n),null):r},e.prototype._tryParsePseudoIdentifier=function(){return this._parseInterpolation()||t.prototype._tryParsePseudoIdentifier.call(this)},e.prototype._parseWarnAndDebug=function(){if(!this.peekKeyword("@debug")&&!this.peekKeyword("@warn")&&!this.peekKeyword("@error"))return null;var n=this.createNode(T.Debug);return this.consumeToken(),n.addChild(this._parseExpr()),this.finish(n)},e.prototype._parseControlStatement=function(n){return n===void 0&&(n=this._parseRuleSetDeclaration.bind(this)),this.peek(m.AtKeyword)?this._parseIfStatement(n)||this._parseForStatement(n)||this._parseEachStatement(n)||this._parseWhileStatement(n):null},e.prototype._parseIfStatement=function(n){return this.peekKeyword("@if")?this._internalParseIfStatement(n):null},e.prototype._internalParseIfStatement=function(n){var r=this.create(ym);if(this.consumeToken(),!r.setExpression(this._parseExpr(!0)))return this.finish(r,I.ExpressionExpected);if(this._parseBody(r,n),this.acceptKeyword("@else")){if(this.peekIdent("if"))r.setElseClause(this._internalParseIfStatement(n));else if(this.peek(m.CurlyL)){var i=this.create(_m);this._parseBody(i,n),r.setElseClause(i)}}return this.finish(r)},e.prototype._parseForStatement=function(n){if(!this.peekKeyword("@for"))return null;var r=this.create(wm);return this.consumeToken(),r.setVariable(this._parseVariable())?this.acceptIdent("from")?r.addChild(this._parseBinaryExpr())?!this.acceptIdent("to")&&!this.acceptIdent("through")?this.finish(r,os.ThroughOrToExpected,[m.CurlyR]):r.addChild(this._parseBinaryExpr())?this._parseBody(r,n):this.finish(r,I.ExpressionExpected,[m.CurlyR]):this.finish(r,I.ExpressionExpected,[m.CurlyR]):this.finish(r,os.FromExpected,[m.CurlyR]):this.finish(r,I.VariableNameExpected,[m.CurlyR])},e.prototype._parseEachStatement=function(n){if(!this.peekKeyword("@each"))return null;var r=this.create(xm);this.consumeToken();var i=r.getVariables();if(!i.addChild(this._parseVariable()))return this.finish(r,I.VariableNameExpected,[m.CurlyR]);for(;this.accept(m.Comma);)if(!i.addChild(this._parseVariable()))return this.finish(r,I.VariableNameExpected,[m.CurlyR]);return this.finish(i),this.acceptIdent("in")?r.addChild(this._parseExpr())?this._parseBody(r,n):this.finish(r,I.ExpressionExpected,[m.CurlyR]):this.finish(r,os.InExpected,[m.CurlyR])},e.prototype._parseWhileStatement=function(n){if(!this.peekKeyword("@while"))return null;var r=this.create(Sm);return this.consumeToken(),r.addChild(this._parseBinaryExpr())?this._parseBody(r,n):this.finish(r,I.ExpressionExpected,[m.CurlyR])},e.prototype._parseFunctionBodyDeclaration=function(){return this._parseVariableDeclaration()||this._parseReturnStatement()||this._parseWarnAndDebug()||this._parseControlStatement(this._parseFunctionBodyDeclaration.bind(this))},e.prototype._parseFunctionDeclaration=function(){if(!this.peekKeyword("@function"))return null;var n=this.create(Sr);if(this.consumeToken(),!n.setIdentifier(this._parseIdent([be.Function])))return this.finish(n,I.IdentifierExpected,[m.CurlyR]);if(!this.accept(m.ParenthesisL))return this.finish(n,I.LeftParenthesisExpected,[m.CurlyR]);if(n.getParameters().addChild(this._parseParameterDeclaration())){for(;this.accept(m.Comma)&&!this.peek(m.ParenthesisR);)if(!n.getParameters().addChild(this._parseParameterDeclaration()))return this.finish(n,I.VariableNameExpected)}return this.accept(m.ParenthesisR)?this._parseBody(n,this._parseFunctionBodyDeclaration.bind(this)):this.finish(n,I.RightParenthesisExpected,[m.CurlyR])},e.prototype._parseReturnStatement=function(){if(!this.peekKeyword("@return"))return null;var n=this.createNode(T.ReturnStatement);return this.consumeToken(),n.addChild(this._parseExpr())?this.finish(n):this.finish(n,I.ExpressionExpected)},e.prototype._parseMixinDeclaration=function(){if(!this.peekKeyword("@mixin"))return null;var n=this.create(zn);if(this.consumeToken(),!n.setIdentifier(this._parseIdent([be.Mixin])))return this.finish(n,I.IdentifierExpected,[m.CurlyR]);if(this.accept(m.ParenthesisL)){if(n.getParameters().addChild(this._parseParameterDeclaration())){for(;this.accept(m.Comma)&&!this.peek(m.ParenthesisR);)if(!n.getParameters().addChild(this._parseParameterDeclaration()))return this.finish(n,I.VariableNameExpected)}if(!this.accept(m.ParenthesisR))return this.finish(n,I.RightParenthesisExpected,[m.CurlyR])}return this._parseBody(n,this._parseRuleSetDeclaration.bind(this))},e.prototype._parseParameterDeclaration=function(){var n=this.create(nr);return n.setIdentifier(this._parseVariable())?(this.accept(Do),this.accept(m.Colon)&&!n.setDefaultValue(this._parseExpr(!0))?this.finish(n,I.VariableValueExpected,[],[m.Comma,m.ParenthesisR]):this.finish(n)):null},e.prototype._parseMixinContent=function(){if(!this.peekKeyword("@content"))return null;var n=this.create(Wm);if(this.consumeToken(),this.accept(m.ParenthesisL)){if(n.getArguments().addChild(this._parseFunctionArgument())){for(;this.accept(m.Comma)&&!this.peek(m.ParenthesisR);)if(!n.getArguments().addChild(this._parseFunctionArgument()))return this.finish(n,I.ExpressionExpected)}if(!this.accept(m.ParenthesisR))return this.finish(n,I.RightParenthesisExpected)}return this.finish(n)},e.prototype._parseMixinReference=function(){if(!this.peekKeyword("@include"))return null;var n=this.create(kr);this.consumeToken();var r=this._parseIdent([be.Mixin]);if(!n.setIdentifier(r))return this.finish(n,I.IdentifierExpected,[m.CurlyR]);if(!this.hasWhitespace()&&this.acceptDelim(".")&&!this.hasWhitespace()){var i=this._parseIdent([be.Mixin]);if(!i)return this.finish(n,I.IdentifierExpected,[m.CurlyR]);var o=this.create(Sc);r.referenceTypes=[be.Module],o.setIdentifier(r),n.setIdentifier(i),n.addChild(o)}if(this.accept(m.ParenthesisL)){if(n.getArguments().addChild(this._parseFunctionArgument())){for(;this.accept(m.Comma)&&!this.peek(m.ParenthesisR);)if(!n.getArguments().addChild(this._parseFunctionArgument()))return this.finish(n,I.ExpressionExpected)}if(!this.accept(m.ParenthesisR))return this.finish(n,I.RightParenthesisExpected)}return(this.peekIdent("using")||this.peek(m.CurlyL))&&n.setContent(this._parseMixinContentDeclaration()),this.finish(n)},e.prototype._parseMixinContentDeclaration=function(){var n=this.create(Om);if(this.acceptIdent("using")){if(!this.accept(m.ParenthesisL))return this.finish(n,I.LeftParenthesisExpected,[m.CurlyL]);if(n.getParameters().addChild(this._parseParameterDeclaration())){for(;this.accept(m.Comma)&&!this.peek(m.ParenthesisR);)if(!n.getParameters().addChild(this._parseParameterDeclaration()))return this.finish(n,I.VariableNameExpected)}if(!this.accept(m.ParenthesisR))return this.finish(n,I.RightParenthesisExpected,[m.CurlyL])}return this.peek(m.CurlyL)&&this._parseBody(n,this._parseMixinReferenceBodyStatement.bind(this)),this.finish(n)},e.prototype._parseMixinReferenceBodyStatement=function(){return this._tryParseKeyframeSelector()||this._parseRuleSetDeclaration()},e.prototype._parseFunctionArgument=function(){var n=this.create(ln),r=this.mark(),i=this._parseVariable();if(i)if(this.accept(m.Colon))n.setIdentifier(i);else{if(this.accept(Do))return n.setValue(i),this.finish(n);this.restoreAtMark(r)}return n.setValue(this._parseExpr(!0))?(this.accept(Do),n.addChild(this._parsePrio()),this.finish(n)):n.setValue(this._tryParsePrio())?this.finish(n):null},e.prototype._parseURLArgument=function(){var n=this.mark(),r=t.prototype._parseURLArgument.call(this);if(!r||!this.peek(m.ParenthesisR)){this.restoreAtMark(n);var i=this.create(ne);return i.addChild(this._parseBinaryExpr()),this.finish(i)}return r},e.prototype._parseOperation=function(){if(!this.peek(m.ParenthesisL))return null;var n=this.create(ne);for(this.consumeToken();n.addChild(this._parseListElement());)this.accept(m.Comma);return this.accept(m.ParenthesisR)?this.finish(n):this.finish(n,I.RightParenthesisExpected)},e.prototype._parseListElement=function(){var n=this.create(qm),r=this._parseBinaryExpr();if(!r)return null;if(this.accept(m.Colon)){if(n.setKey(r),!n.setValue(this._parseBinaryExpr()))return this.finish(n,I.ExpressionExpected)}else n.setValue(r);return this.finish(n)},e.prototype._parseUse=function(){if(!this.peekKeyword("@use"))return null;var n=this.create(Cm);if(this.consumeToken(),!n.addChild(this._parseStringLiteral()))return this.finish(n,I.StringLiteralExpected);if(!this.peek(m.SemiColon)&&!this.peek(m.EOF)){if(!this.peekRegExp(m.Ident,/as|with/))return this.finish(n,I.UnknownKeyword);if(this.acceptIdent("as")&&!n.setIdentifier(this._parseIdent([be.Module]))&&!this.acceptDelim("*"))return this.finish(n,I.IdentifierOrWildcardExpected);if(this.acceptIdent("with")){if(!this.accept(m.ParenthesisL))return this.finish(n,I.LeftParenthesisExpected,[m.ParenthesisR]);if(!n.getParameters().addChild(this._parseModuleConfigDeclaration()))return this.finish(n,I.VariableNameExpected);for(;this.accept(m.Comma)&&!this.peek(m.ParenthesisR);)if(!n.getParameters().addChild(this._parseModuleConfigDeclaration()))return this.finish(n,I.VariableNameExpected);if(!this.accept(m.ParenthesisR))return this.finish(n,I.RightParenthesisExpected)}}return!this.accept(m.SemiColon)&&!this.accept(m.EOF)?this.finish(n,I.SemiColonExpected):this.finish(n)},e.prototype._parseModuleConfigDeclaration=function(){var n=this.create(Tm);return n.setIdentifier(this._parseVariable())?!this.accept(m.Colon)||!n.setValue(this._parseExpr(!0))?this.finish(n,I.VariableValueExpected,[],[m.Comma,m.ParenthesisR]):this.accept(m.Exclamation)&&(this.hasWhitespace()||!this.acceptIdent("default"))?this.finish(n,I.UnknownKeyword):this.finish(n):null},e.prototype._parseForward=function(){if(!this.peekKeyword("@forward"))return null;var n=this.create(Dm);if(this.consumeToken(),!n.addChild(this._parseStringLiteral()))return this.finish(n,I.StringLiteralExpected);if(this.acceptIdent("with")){if(!this.accept(m.ParenthesisL))return this.finish(n,I.LeftParenthesisExpected,[m.ParenthesisR]);if(!n.getParameters().addChild(this._parseModuleConfigDeclaration()))return this.finish(n,I.VariableNameExpected);for(;this.accept(m.Comma)&&!this.peek(m.ParenthesisR);)if(!n.getParameters().addChild(this._parseModuleConfigDeclaration()))return this.finish(n,I.VariableNameExpected);if(!this.accept(m.ParenthesisR))return this.finish(n,I.RightParenthesisExpected)}if(!this.peek(m.SemiColon)&&!this.peek(m.EOF)){if(!this.peekRegExp(m.Ident,/as|hide|show/))return this.finish(n,I.UnknownKeyword);if(this.acceptIdent("as")){var r=this._parseIdent([be.Forward]);if(!n.setIdentifier(r))return this.finish(n,I.IdentifierExpected);if(this.hasWhitespace()||!this.acceptDelim("*"))return this.finish(n,I.WildcardExpected)}if((this.peekIdent("hide")||this.peekIdent("show"))&&!n.addChild(this._parseForwardVisibility()))return this.finish(n,I.IdentifierOrVariableExpected)}return!this.accept(m.SemiColon)&&!this.accept(m.EOF)?this.finish(n,I.SemiColonExpected):this.finish(n)},e.prototype._parseForwardVisibility=function(){var n=this.create(Rm);for(n.setIdentifier(this._parseIdent());n.addChild(this._parseVariable()||this._parseIdent());)this.accept(m.Comma);return n.getChildren().length>1?n:null},e.prototype._parseSupportsCondition=function(){return this._parseInterpolation()||t.prototype._parseSupportsCondition.call(this)},e}(hi)});function Rg(t){t.forEach(function(e){if(e.documentation&&e.references&&e.references.length>0){var n=typeof e.documentation=="string"?{kind:"markdown",value:e.documentation}:{kind:"markdown",value:e.documentation.value};n.value+=` + +`,n.value+=e.references.map(function(r){return"["+r.name+"]("+r.url+")"}).join(" | "),e.documentation=n}})}var Dg,t0,J,n0,Eg=X(()=>{"use strict";Ya();ft();Qt();Dg=Oe(Mt()),t0=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),J=Dg.loadMessageBundle(),n0=function(t){t0(e,t);function e(n,r){var i=t.call(this,"$",n,r)||this;return Rg(e.scssModuleLoaders),Rg(e.scssModuleBuiltIns),i}return e.prototype.isImportPathParent=function(n){return n===T.Forward||n===T.Use||t.prototype.isImportPathParent.call(this,n)},e.prototype.getCompletionForImportPath=function(n,r){var i=n.getParent().type;if(i===T.Forward||i===T.Use)for(var o=0,a=e.scssModuleBuiltIns;o{"use strict";er();r0=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ag="/".charCodeAt(0),i0=` +`.charCodeAt(0),o0="\r".charCodeAt(0),a0="\f".charCodeAt(0),_d="`".charCodeAt(0),kd=".".charCodeAt(0),s0=m.CustomToken,as=s0++,ss=function(t){r0(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.scanNext=function(n){var r=this.escapedJavaScript();return r!==null?this.finishToken(n,r):this.stream.advanceIfChars([kd,kd,kd])?this.finishToken(n,as):t.prototype.scanNext.call(this,n)},e.prototype.comment=function(){return t.prototype.comment.call(this)?!0:!this.inURL&&this.stream.advanceIfChars([Ag,Ag])?(this.stream.advanceWhileChar(function(n){switch(n){case i0:case o0:case a0:return!1;default:return!0}}),!0):!1},e.prototype.escapedJavaScript=function(){var n=this.stream.peekChar();return n===_d?(this.stream.advance(1),this.stream.advanceWhileChar(function(r){return r!==_d}),this.stream.advanceIfChar(_d)?m.EscapedJavaScript:m.BadEscapedJavaScript):null},e}(vn)});var c0,d0,Fg=X(()=>{"use strict";Cd();er();Ba();ft();Fa();c0=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),d0=function(t){c0(e,t);function e(){return t.call(this,new ss)||this}return e.prototype._parseStylesheetStatement=function(n){return n===void 0&&(n=!1),this.peek(m.AtKeyword)?this._parseVariableDeclaration()||this._parsePlugin()||t.prototype._parseStylesheetAtStatement.call(this,n):this._tryParseMixinDeclaration()||this._tryParseMixinReference()||this._parseFunction()||this._parseRuleset(!0)},e.prototype._parseImport=function(){if(!this.peekKeyword("@import")&&!this.peekKeyword("@import-once"))return null;var n=this.create(ri);if(this.consumeToken(),this.accept(m.ParenthesisL)){if(!this.accept(m.Ident))return this.finish(n,I.IdentifierExpected,[m.SemiColon]);do if(!this.accept(m.Comma))break;while(this.accept(m.Ident));if(!this.accept(m.ParenthesisR))return this.finish(n,I.RightParenthesisExpected,[m.SemiColon])}return!n.addChild(this._parseURILiteral())&&!n.addChild(this._parseStringLiteral())?this.finish(n,I.URIOrStringExpected,[m.SemiColon]):(!this.peek(m.SemiColon)&&!this.peek(m.EOF)&&n.setMedialist(this._parseMediaQueryList()),this.finish(n))},e.prototype._parsePlugin=function(){if(!this.peekKeyword("@plugin"))return null;var n=this.createNode(T.Plugin);return this.consumeToken(),n.addChild(this._parseStringLiteral())?this.accept(m.SemiColon)?this.finish(n):this.finish(n,I.SemiColonExpected):this.finish(n,I.StringLiteralExpected)},e.prototype._parseMediaQuery=function(){var n=t.prototype._parseMediaQuery.call(this);if(!n){var r=this.create(Ta);return r.addChild(this._parseVariable())?this.finish(r):null}return n},e.prototype._parseMediaDeclaration=function(n){return n===void 0&&(n=!1),this._tryParseRuleset(n)||this._tryToParseDeclaration()||this._tryParseMixinDeclaration()||this._tryParseMixinReference()||this._parseDetachedRuleSetMixin()||this._parseStylesheetStatement(n)},e.prototype._parseMediaFeatureName=function(){return this._parseIdent()||this._parseVariable()},e.prototype._parseVariableDeclaration=function(n){n===void 0&&(n=[]);var r=this.create(rr),i=this.mark();if(!r.setVariable(this._parseVariable(!0)))return null;if(this.accept(m.Colon)){if(this.prevToken&&(r.colonPosition=this.prevToken.offset),r.setValue(this._parseDetachedRuleSet()))r.needsSemicolon=!1;else if(!r.setValue(this._parseExpr()))return this.finish(r,I.VariableValueExpected,[],n);r.addChild(this._parsePrio())}else return this.restoreAtMark(i),null;return this.peek(m.SemiColon)&&(r.semicolonPosition=this.token.offset),this.finish(r)},e.prototype._parseDetachedRuleSet=function(){var n=this.mark();if(this.peekDelim("#")||this.peekDelim("."))if(this.consumeToken(),!this.hasWhitespace()&&this.accept(m.ParenthesisL)){var r=this.create(zn);if(r.getParameters().addChild(this._parseMixinParameter()))for(;(this.accept(m.Comma)||this.accept(m.SemiColon))&&!this.peek(m.ParenthesisR);)r.getParameters().addChild(this._parseMixinParameter())||this.markError(r,I.IdentifierExpected,[],[m.ParenthesisR]);if(!this.accept(m.ParenthesisR))return this.restoreAtMark(n),null}else return this.restoreAtMark(n),null;if(!this.peek(m.CurlyL))return null;var i=this.create(Ne);return this._parseBody(i,this._parseDetachedRuleSetBody.bind(this)),this.finish(i)},e.prototype._parseDetachedRuleSetBody=function(){return this._tryParseKeyframeSelector()||this._parseRuleSetDeclaration()},e.prototype._addLookupChildren=function(n){if(!n.addChild(this._parseLookupValue()))return!1;for(var r=!1;this.peek(m.BracketL)&&(r=!0),!!n.addChild(this._parseLookupValue());)r=!1;return!r},e.prototype._parseLookupValue=function(){var n=this.create(ne),r=this.mark();return this.accept(m.BracketL)?(n.addChild(this._parseVariable(!1,!0))||n.addChild(this._parsePropertyIdentifier()))&&this.accept(m.BracketR)||this.accept(m.BracketR)?n:(this.restoreAtMark(r),null):(this.restoreAtMark(r),null)},e.prototype._parseVariable=function(n,r){n===void 0&&(n=!1),r===void 0&&(r=!1);var i=!n&&this.peekDelim("$");if(!this.peekDelim("@")&&!i&&!this.peek(m.AtKeyword))return null;for(var o=this.create(oi),a=this.mark();this.acceptDelim("@")||!n&&this.acceptDelim("$");)if(this.hasWhitespace())return this.restoreAtMark(a),null;return!this.accept(m.AtKeyword)&&!this.accept(m.Ident)?(this.restoreAtMark(a),null):!r&&this.peek(m.BracketL)&&!this._addLookupChildren(o)?(this.restoreAtMark(a),null):o},e.prototype._parseTermExpression=function(){return this._parseVariable()||this._parseEscaped()||t.prototype._parseTermExpression.call(this)||this._tryParseMixinReference(!1)},e.prototype._parseEscaped=function(){if(this.peek(m.EscapedJavaScript)||this.peek(m.BadEscapedJavaScript)){var n=this.createNode(T.EscapedValue);return this.consumeToken(),this.finish(n)}if(this.peekDelim("~")){var n=this.createNode(T.EscapedValue);return this.consumeToken(),this.accept(m.String)||this.accept(m.EscapedJavaScript)?this.finish(n):this.finish(n,I.TermExpected)}return null},e.prototype._parseOperator=function(){var n=this._parseGuardOperator();return n||t.prototype._parseOperator.call(this)},e.prototype._parseGuardOperator=function(){if(this.peekDelim(">")){var n=this.createNode(T.Operator);return this.consumeToken(),this.acceptDelim("="),n}else if(this.peekDelim("=")){var n=this.createNode(T.Operator);return this.consumeToken(),this.acceptDelim("<"),n}else if(this.peekDelim("<")){var n=this.createNode(T.Operator);return this.consumeToken(),this.acceptDelim("="),n}return null},e.prototype._parseRuleSetDeclaration=function(){return this.peek(m.AtKeyword)?this._parseKeyframe()||this._parseMedia(!0)||this._parseImport()||this._parseSupports(!0)||this._parseDetachedRuleSetMixin()||this._parseVariableDeclaration()||t.prototype._parseRuleSetDeclarationAtStatement.call(this):this._tryParseMixinDeclaration()||this._tryParseRuleset(!0)||this._tryParseMixinReference()||this._parseFunction()||this._parseExtend()||t.prototype._parseRuleSetDeclaration.call(this)},e.prototype._parseKeyframeIdent=function(){return this._parseIdent([be.Keyframe])||this._parseVariable()},e.prototype._parseKeyframeSelector=function(){return this._parseDetachedRuleSetMixin()||t.prototype._parseKeyframeSelector.call(this)},e.prototype._parseSimpleSelectorBody=function(){return this._parseSelectorCombinator()||t.prototype._parseSimpleSelectorBody.call(this)},e.prototype._parseSelector=function(n){var r=this.create(yn),i=!1;for(n&&(i=r.addChild(this._parseCombinator()));r.addChild(this._parseSimpleSelector());){i=!0;var o=this.mark();if(r.addChild(this._parseGuard())&&this.peek(m.CurlyL))break;this.restoreAtMark(o),r.addChild(this._parseCombinator())}return i?this.finish(r):null},e.prototype._parseSelectorCombinator=function(){if(this.peekDelim("&")){var n=this.createNode(T.SelectorCombinator);for(this.consumeToken();!this.hasWhitespace()&&(this.acceptDelim("-")||this.accept(m.Num)||this.accept(m.Dimension)||n.addChild(this._parseIdent())||this.acceptDelim("&")););return this.finish(n)}return null},e.prototype._parseSelectorIdent=function(){if(!this.peekInterpolatedIdent())return null;var n=this.createNode(T.SelectorInterpolation),r=this._acceptInterpolatedIdent(n);return r?this.finish(n):null},e.prototype._parsePropertyIdentifier=function(n){n===void 0&&(n=!1);var r=/^[\w-]+/;if(!this.peekInterpolatedIdent()&&!this.peekRegExp(this.token.type,r))return null;var i=this.mark(),o=this.create(ut);o.isCustomProperty=this.acceptDelim("-")&&this.acceptDelim("-");var a=!1;return n?o.isCustomProperty?a=o.addChild(this._parseIdent()):a=o.addChild(this._parseRegexp(r)):o.isCustomProperty?a=this._acceptInterpolatedIdent(o):a=this._acceptInterpolatedIdent(o,r),a?(!n&&!this.hasWhitespace()&&(this.acceptDelim("+"),this.hasWhitespace()||this.acceptIdent("_")),this.finish(o)):(this.restoreAtMark(i),null)},e.prototype.peekInterpolatedIdent=function(){return this.peek(m.Ident)||this.peekDelim("@")||this.peekDelim("$")||this.peekDelim("-")},e.prototype._acceptInterpolatedIdent=function(n,r){for(var i=this,o=!1,a=function(){var l=i.mark();return i.acceptDelim("-")&&(i.hasWhitespace()||i.acceptDelim("-"),i.hasWhitespace())?(i.restoreAtMark(l),null):i._parseInterpolation()},s=r?function(){return i.acceptRegexp(r)}:function(){return i.accept(m.Ident)};(s()||n.addChild(this._parseInterpolation()||this.try(a)))&&(o=!0,!this.hasWhitespace()););return o},e.prototype._parseInterpolation=function(){var n=this.mark();if(this.peekDelim("@")||this.peekDelim("$")){var r=this.createNode(T.Interpolation);return this.consumeToken(),this.hasWhitespace()||!this.accept(m.CurlyL)?(this.restoreAtMark(n),null):r.addChild(this._parseIdent())?this.accept(m.CurlyR)?this.finish(r):this.finish(r,I.RightCurlyExpected):this.finish(r,I.IdentifierExpected)}return null},e.prototype._tryParseMixinDeclaration=function(){var n=this.mark(),r=this.create(zn);if(!r.setIdentifier(this._parseMixinDeclarationIdentifier())||!this.accept(m.ParenthesisL))return this.restoreAtMark(n),null;if(r.getParameters().addChild(this._parseMixinParameter()))for(;(this.accept(m.Comma)||this.accept(m.SemiColon))&&!this.peek(m.ParenthesisR);)r.getParameters().addChild(this._parseMixinParameter())||this.markError(r,I.IdentifierExpected,[],[m.ParenthesisR]);return this.accept(m.ParenthesisR)?(r.setGuard(this._parseGuard()),this.peek(m.CurlyL)?this._parseBody(r,this._parseMixInBodyDeclaration.bind(this)):(this.restoreAtMark(n),null)):(this.restoreAtMark(n),null)},e.prototype._parseMixInBodyDeclaration=function(){return this._parseFontFace()||this._parseRuleSetDeclaration()},e.prototype._parseMixinDeclarationIdentifier=function(){var n;if(this.peekDelim("#")||this.peekDelim(".")){if(n=this.create(ut),this.consumeToken(),this.hasWhitespace()||!n.addChild(this._parseIdent()))return null}else if(this.peek(m.Hash))n=this.create(ut),this.consumeToken();else return null;return n.referenceTypes=[be.Mixin],this.finish(n)},e.prototype._parsePseudo=function(){if(!this.peek(m.Colon))return null;var n=this.mark(),r=this.create(ir);return this.consumeToken(),this.acceptIdent("extend")?this._completeExtends(r):(this.restoreAtMark(n),t.prototype._parsePseudo.call(this))},e.prototype._parseExtend=function(){if(!this.peekDelim("&"))return null;var n=this.mark(),r=this.create(ir);return this.consumeToken(),this.hasWhitespace()||!this.accept(m.Colon)||!this.acceptIdent("extend")?(this.restoreAtMark(n),null):this._completeExtends(r)},e.prototype._completeExtends=function(n){if(!this.accept(m.ParenthesisL))return this.finish(n,I.LeftParenthesisExpected);var r=n.getSelectors();if(!r.addChild(this._parseSelector(!0)))return this.finish(n,I.SelectorExpected);for(;this.accept(m.Comma);)if(!r.addChild(this._parseSelector(!0)))return this.finish(n,I.SelectorExpected);return this.accept(m.ParenthesisR)?this.finish(n):this.finish(n,I.RightParenthesisExpected)},e.prototype._parseDetachedRuleSetMixin=function(){if(!this.peek(m.AtKeyword))return null;var n=this.mark(),r=this.create(kr);return r.addChild(this._parseVariable(!0))&&(this.hasWhitespace()||!this.accept(m.ParenthesisL))?(this.restoreAtMark(n),null):this.accept(m.ParenthesisR)?this.finish(r):this.finish(r,I.RightParenthesisExpected)},e.prototype._tryParseMixinReference=function(n){n===void 0&&(n=!0);for(var r=this.mark(),i=this.create(kr),o=this._parseMixinDeclarationIdentifier();o;){this.acceptDelim(">");var a=this._parseMixinDeclarationIdentifier();if(a)i.getNamespaces().addChild(o),o=a;else break}if(!i.setIdentifier(o))return this.restoreAtMark(r),null;var s=!1;if(this.accept(m.ParenthesisL)){if(s=!0,i.getArguments().addChild(this._parseMixinArgument())){for(;(this.accept(m.Comma)||this.accept(m.SemiColon))&&!this.peek(m.ParenthesisR);)if(!i.getArguments().addChild(this._parseMixinArgument()))return this.finish(i,I.ExpressionExpected)}if(!this.accept(m.ParenthesisR))return this.finish(i,I.RightParenthesisExpected);o.referenceTypes=[be.Mixin]}else o.referenceTypes=[be.Mixin,be.Rule];return this.peek(m.BracketL)?n||this._addLookupChildren(i):i.addChild(this._parsePrio()),!s&&!this.peek(m.SemiColon)&&!this.peek(m.CurlyR)&&!this.peek(m.EOF)?(this.restoreAtMark(r),null):this.finish(i)},e.prototype._parseMixinArgument=function(){var n=this.create(ln),r=this.mark(),i=this._parseVariable();return i&&(this.accept(m.Colon)?n.setIdentifier(i):this.restoreAtMark(r)),n.setValue(this._parseDetachedRuleSet()||this._parseExpr(!0))?this.finish(n):(this.restoreAtMark(r),null)},e.prototype._parseMixinParameter=function(){var n=this.create(nr);if(this.peekKeyword("@rest")){var r=this.create(ne);return this.consumeToken(),this.accept(as)?(n.setIdentifier(this.finish(r)),this.finish(n)):this.finish(n,I.DotExpected,[],[m.Comma,m.ParenthesisR])}if(this.peek(as)){var i=this.create(ne);return this.consumeToken(),n.setIdentifier(this.finish(i)),this.finish(n)}var o=!1;return n.setIdentifier(this._parseVariable())&&(this.accept(m.Colon),o=!0),!n.setDefaultValue(this._parseDetachedRuleSet()||this._parseExpr(!0))&&!o?null:this.finish(n)},e.prototype._parseGuard=function(){if(!this.peekIdent("when"))return null;var n=this.create(Um);if(this.consumeToken(),n.isNegated=this.acceptIdent("not"),!n.getConditions().addChild(this._parseGuardCondition()))return this.finish(n,I.ConditionExpected);for(;this.acceptIdent("and")||this.accept(m.Comma);)if(!n.getConditions().addChild(this._parseGuardCondition()))return this.finish(n,I.ConditionExpected);return this.finish(n)},e.prototype._parseGuardCondition=function(){if(!this.peek(m.ParenthesisL))return null;var n=this.create(Hm);return this.consumeToken(),!n.addChild(this._parseExpr()),this.accept(m.ParenthesisR)?this.finish(n):this.finish(n,I.RightParenthesisExpected)},e.prototype._parseFunction=function(){var n=this.mark(),r=this.create(Pn);if(!r.setIdentifier(this._parseFunctionIdentifier()))return null;if(this.hasWhitespace()||!this.accept(m.ParenthesisL))return this.restoreAtMark(n),null;if(r.getArguments().addChild(this._parseMixinArgument())){for(;(this.accept(m.Comma)||this.accept(m.SemiColon))&&!this.peek(m.ParenthesisR);)if(!r.getArguments().addChild(this._parseMixinArgument()))return this.finish(r,I.ExpressionExpected)}return this.accept(m.ParenthesisR)?this.finish(r):this.finish(r,I.RightParenthesisExpected)},e.prototype._parseFunctionIdentifier=function(){if(this.peekDelim("%")){var n=this.create(ut);return n.referenceTypes=[be.Function],this.consumeToken(),this.finish(n)}return t.prototype._parseFunctionIdentifier.call(this)},e.prototype._parseURLArgument=function(){var n=this.mark(),r=t.prototype._parseURLArgument.call(this);if(!r||!this.peek(m.ParenthesisR)){this.restoreAtMark(n);var i=this.create(ne);return i.addChild(this._parseBinaryExpr()),this.finish(i)}return r},e}(hi)});var Mg,u0,le,h0,Pg=X(()=>{"use strict";Ya();Qt();Mg=Oe(Mt()),u0=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),le=Mg.loadMessageBundle(),h0=function(t){u0(e,t);function e(n,r){return t.call(this,"@",n,r)||this}return e.prototype.createFunctionProposals=function(n,r,i,o){for(var a=0,s=n;a 50%"),example:"percentage(@number);",type:"percentage"},{name:"round",description:le("less.builtin.round","rounds a number to a number of places"),example:"round(number, [places: 0]);"},{name:"sqrt",description:le("less.builtin.sqrt","calculates square root of a number"),example:"sqrt(number);"},{name:"sin",description:le("less.builtin.sin","sine function"),example:"sin(number);"},{name:"tan",description:le("less.builtin.tan","tangent function"),example:"tan(number);"},{name:"atan",description:le("less.builtin.atan","arctangent - inverse of tangent function"),example:"atan(number);"},{name:"pi",description:le("less.builtin.pi","returns pi"),example:"pi();"},{name:"pow",description:le("less.builtin.pow","first argument raised to the power of the second argument"),example:"pow(@base, @exponent);"},{name:"mod",description:le("less.builtin.mod","first argument modulus second argument"),example:"mod(number, number);"},{name:"min",description:le("less.builtin.min","returns the lowest of one or more values"),example:"min(@x, @y);"},{name:"max",description:le("less.builtin.max","returns the lowest of one or more values"),example:"max(@x, @y);"}],e.colorProposals=[{name:"argb",example:"argb(@color);",description:le("less.builtin.argb","creates a #AARRGGBB")},{name:"hsl",example:"hsl(@hue, @saturation, @lightness);",description:le("less.builtin.hsl","creates a color")},{name:"hsla",example:"hsla(@hue, @saturation, @lightness, @alpha);",description:le("less.builtin.hsla","creates a color")},{name:"hsv",example:"hsv(@hue, @saturation, @value);",description:le("less.builtin.hsv","creates a color")},{name:"hsva",example:"hsva(@hue, @saturation, @value, @alpha);",description:le("less.builtin.hsva","creates a color")},{name:"hue",example:"hue(@color);",description:le("less.builtin.hue","returns the `hue` channel of `@color` in the HSL space")},{name:"saturation",example:"saturation(@color);",description:le("less.builtin.saturation","returns the `saturation` channel of `@color` in the HSL space")},{name:"lightness",example:"lightness(@color);",description:le("less.builtin.lightness","returns the `lightness` channel of `@color` in the HSL space")},{name:"hsvhue",example:"hsvhue(@color);",description:le("less.builtin.hsvhue","returns the `hue` channel of `@color` in the HSV space")},{name:"hsvsaturation",example:"hsvsaturation(@color);",description:le("less.builtin.hsvsaturation","returns the `saturation` channel of `@color` in the HSV space")},{name:"hsvvalue",example:"hsvvalue(@color);",description:le("less.builtin.hsvvalue","returns the `value` channel of `@color` in the HSV space")},{name:"red",example:"red(@color);",description:le("less.builtin.red","returns the `red` channel of `@color`")},{name:"green",example:"green(@color);",description:le("less.builtin.green","returns the `green` channel of `@color`")},{name:"blue",example:"blue(@color);",description:le("less.builtin.blue","returns the `blue` channel of `@color`")},{name:"alpha",example:"alpha(@color);",description:le("less.builtin.alpha","returns the `alpha` channel of `@color`")},{name:"luma",example:"luma(@color);",description:le("less.builtin.luma","returns the `luma` value (perceptual brightness) of `@color`")},{name:"saturate",example:"saturate(@color, 10%);",description:le("less.builtin.saturate","return `@color` 10% points more saturated")},{name:"desaturate",example:"desaturate(@color, 10%);",description:le("less.builtin.desaturate","return `@color` 10% points less saturated")},{name:"lighten",example:"lighten(@color, 10%);",description:le("less.builtin.lighten","return `@color` 10% points lighter")},{name:"darken",example:"darken(@color, 10%);",description:le("less.builtin.darken","return `@color` 10% points darker")},{name:"fadein",example:"fadein(@color, 10%);",description:le("less.builtin.fadein","return `@color` 10% points less transparent")},{name:"fadeout",example:"fadeout(@color, 10%);",description:le("less.builtin.fadeout","return `@color` 10% points more transparent")},{name:"fade",example:"fade(@color, 50%);",description:le("less.builtin.fade","return `@color` with 50% transparency")},{name:"spin",example:"spin(@color, 10);",description:le("less.builtin.spin","return `@color` with a 10 degree larger in hue")},{name:"mix",example:"mix(@color1, @color2, [@weight: 50%]);",description:le("less.builtin.mix","return a mix of `@color1` and `@color2`")},{name:"greyscale",example:"greyscale(@color);",description:le("less.builtin.greyscale","returns a grey, 100% desaturated color")},{name:"contrast",example:"contrast(@color1, [@darkcolor: black], [@lightcolor: white], [@threshold: 43%]);",description:le("less.builtin.contrast","return `@darkcolor` if `@color1 is> 43% luma` otherwise return `@lightcolor`, see notes")},{name:"multiply",example:"multiply(@color1, @color2);"},{name:"screen",example:"screen(@color1, @color2);"},{name:"overlay",example:"overlay(@color1, @color2);"},{name:"softlight",example:"softlight(@color1, @color2);"},{name:"hardlight",example:"hardlight(@color1, @color2);"},{name:"difference",example:"difference(@color1, @color2);"},{name:"exclusion",example:"exclusion(@color1, @color2);"},{name:"average",example:"average(@color1, @color2);"},{name:"negation",example:"negation(@color1, @color2);"}],e}(pi)});function zg(t,e){var n=p0(t);return m0(n,e)}function p0(t){function e(u){return t.positionAt(u.offset).line}function n(u){return t.positionAt(u.offset+u.len).line}function r(){switch(t.languageId){case"scss":return new is;case"less":return new ss;default:return new vn}}function i(u,h){var p=e(u),g=n(u);return p!==g?{startLine:p,endLine:g,kind:h}:null}var o=[],a=[],s=r();s.ignoreComment=!1,s.setSource(t.getText());for(var l=s.scan(),c=null,d=function(){switch(l.type){case m.CurlyL:case bi:{a.push({line:e(l),type:"brace",isStart:!0});break}case m.CurlyR:{if(a.length!==0){var u=Ig(a,"brace");if(!u)break;var h=n(l);u.type==="brace"&&(c&&n(c)!==h&&h--,u.line!==h&&o.push({startLine:u.line,endLine:h,kind:void 0}))}break}case m.Comment:{var p=function(x){return x==="#region"?{line:e(l),type:"comment",isStart:!0}:{line:n(l),type:"comment",isStart:!1}},g=function(x){var v=x.text.match(/^\s*\/\*\s*(#region|#endregion)\b\s*(.*?)\s*\*\//);if(v)return p(v[1]);if(t.languageId==="scss"||t.languageId==="less"){var F=x.text.match(/^\s*\/\/\s*(#region|#endregion)\b\s*(.*?)\s*/);if(F)return p(F[1])}return null},y=g(l);if(y)if(y.isStart)a.push(y);else{var u=Ig(a,"comment");if(!u)break;u.type==="comment"&&u.line!==y.line&&o.push({startLine:u.line,endLine:y.line,kind:"region"})}else{var _=i(l,"comment");_&&o.push(_)}break}}c=l,l=s.scan()};l.type!==m.EOF;)d();return o}function Ig(t,e){if(t.length===0)return null;for(var n=t.length-1;n>=0;n--)if(t[n].type===e&&t[n].isStart)return t.splice(n,1)[0];return null}function m0(t,e){var n=e&&e.rangeLimit||Number.MAX_VALUE,r=t.sort(function(a,s){var l=a.startLine-s.startLine;return l===0&&(l=a.endLine-s.endLine),l}),i=[],o=-1;return r.forEach(function(a){a.startLine{"use strict";er();wd();Cd()});var Td,Dd=X(()=>{Td={version:1.1,properties:[{name:"additive-symbols",browsers:["FF33"],syntax:"[ && ]#",relevance:50,description:"@counter-style descriptor. Specifies the symbols used by the marker-construction algorithm specified by the system descriptor. Needs to be specified if the counter system is 'additive'.",restrictions:["integer","string","image","identifier"]},{name:"align-content",values:[{name:"center",description:"Lines are packed toward the center of the flex container."},{name:"flex-end",description:"Lines are packed toward the end of the flex container."},{name:"flex-start",description:"Lines are packed toward the start of the flex container."},{name:"space-around",description:"Lines are evenly distributed in the flex container, with half-size spaces on either end."},{name:"space-between",description:"Lines are evenly distributed in the flex container."},{name:"stretch",description:"Lines stretch to take up the remaining space."}],syntax:"normal | | | ? ",relevance:61,description:"Aligns a flex container\u2019s lines within the flex container when there is extra space in the cross-axis, similar to how 'justify-content' aligns individual items within the main-axis.",restrictions:["enum"]},{name:"align-items",values:[{name:"baseline",description:"If the flex item\u2019s inline axis is the same as the cross axis, this value is identical to 'flex-start'. Otherwise, it participates in baseline alignment."},{name:"center",description:"The flex item\u2019s margin box is centered in the cross axis within the line."},{name:"flex-end",description:"The cross-end margin edge of the flex item is placed flush with the cross-end edge of the line."},{name:"flex-start",description:"The cross-start margin edge of the flex item is placed flush with the cross-start edge of the line."},{name:"stretch",description:"If the cross size property of the flex item computes to auto, and neither of the cross-axis margins are auto, the flex item is stretched."}],syntax:"normal | stretch | | [ ? ]",relevance:85,description:"Aligns flex items along the cross axis of the current line of the flex container.",restrictions:["enum"]},{name:"justify-items",values:[{name:"auto"},{name:"normal"},{name:"end"},{name:"start"},{name:"flex-end",description:'"Flex items are packed toward the end of the line."'},{name:"flex-start",description:'"Flex items are packed toward the start of the line."'},{name:"self-end",description:"The item is packed flush to the edge of the alignment container of the end side of the item, in the appropriate axis."},{name:"self-start",description:"The item is packed flush to the edge of the alignment container of the start side of the item, in the appropriate axis.."},{name:"center",description:"The items are packed flush to each other toward the center of the of the alignment container."},{name:"left"},{name:"right"},{name:"baseline"},{name:"first baseline"},{name:"last baseline"},{name:"stretch",description:"If the cross size property of the flex item computes to auto, and neither of the cross-axis margins are auto, the flex item is stretched."},{name:"save"},{name:"unsave"},{name:"legacy"}],syntax:"normal | stretch | | ? [ | left | right ] | legacy | legacy && [ left | right | center ]",relevance:51,description:"Defines the default justify-self for all items of the box, giving them the default way of justifying each box along the appropriate axis",restrictions:["enum"]},{name:"justify-self",values:[{name:"auto"},{name:"normal"},{name:"end"},{name:"start"},{name:"flex-end",description:'"Flex items are packed toward the end of the line."'},{name:"flex-start",description:'"Flex items are packed toward the start of the line."'},{name:"self-end",description:"The item is packed flush to the edge of the alignment container of the end side of the item, in the appropriate axis."},{name:"self-start",description:"The item is packed flush to the edge of the alignment container of the start side of the item, in the appropriate axis.."},{name:"center",description:"The items are packed flush to each other toward the center of the of the alignment container."},{name:"left"},{name:"right"},{name:"baseline"},{name:"first baseline"},{name:"last baseline"},{name:"stretch",description:"If the cross size property of the flex item computes to auto, and neither of the cross-axis margins are auto, the flex item is stretched."},{name:"save"},{name:"unsave"}],syntax:"auto | normal | stretch | | ? [ | left | right ]",relevance:52,description:"Defines the way of justifying a box inside its container along the appropriate axis.",restrictions:["enum"]},{name:"align-self",values:[{name:"auto",description:"Computes to the value of 'align-items' on the element\u2019s parent, or 'stretch' if the element has no parent. On absolutely positioned elements, it computes to itself."},{name:"baseline",description:"If the flex item\u2019s inline axis is the same as the cross axis, this value is identical to 'flex-start'. Otherwise, it participates in baseline alignment."},{name:"center",description:"The flex item\u2019s margin box is centered in the cross axis within the line."},{name:"flex-end",description:"The cross-end margin edge of the flex item is placed flush with the cross-end edge of the line."},{name:"flex-start",description:"The cross-start margin edge of the flex item is placed flush with the cross-start edge of the line."},{name:"stretch",description:"If the cross size property of the flex item computes to auto, and neither of the cross-axis margins are auto, the flex item is stretched."}],syntax:"auto | normal | stretch | | ? ",relevance:70,description:"Allows the default alignment along the cross axis to be overridden for individual flex items.",restrictions:["enum"]},{name:"all",browsers:["E79","FF27","S9.1","C37","O24"],values:[],syntax:"initial | inherit | unset | revert",relevance:52,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/all"}],description:"Shorthand that resets all properties except 'direction' and 'unicode-bidi'.",restrictions:["enum"]},{name:"alt",browsers:["S9"],values:[],relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/alt"}],description:"Provides alternative text for assistive technology to replace the generated content of a ::before or ::after element.",restrictions:["string","enum"]},{name:"animation",values:[{name:"alternate",description:"The animation cycle iterations that are odd counts are played in the normal direction, and the animation cycle iterations that are even counts are played in a reverse direction."},{name:"alternate-reverse",description:"The animation cycle iterations that are odd counts are played in the reverse direction, and the animation cycle iterations that are even counts are played in a normal direction."},{name:"backwards",description:"The beginning property value (as defined in the first @keyframes at-rule) is applied before the animation is displayed, during the period defined by 'animation-delay'."},{name:"both",description:"Both forwards and backwards fill modes are applied."},{name:"forwards",description:"The final property value (as defined in the last @keyframes at-rule) is maintained after the animation completes."},{name:"infinite",description:"Causes the animation to repeat forever."},{name:"none",description:"No animation is performed"},{name:"normal",description:"Normal playback."},{name:"reverse",description:"All iterations of the animation are played in the reverse direction from the way they were specified."}],syntax:"#",relevance:82,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/animation"}],description:"Shorthand property combines six of the animation properties into a single property.",restrictions:["time","timing-function","enum","identifier","number"]},{name:"animation-delay",syntax:"