UNPKG

code-server

Version:

Run VS Code on a remote server.

5 lines • 233 kB
"use strict";var Rf=Object.create;var en=Object.defineProperty;var _f=Object.getOwnPropertyDescriptor;var Lf=Object.getOwnPropertyNames;var jf=Object.getPrototypeOf,Ff=Object.prototype.hasOwnProperty;var J=(e,t)=>()=>(e&&(t=e(e=0)),t);var X=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),_r=(e,t)=>{for(var n in t)en(e,n,{get:t[n],enumerable:!0})},Ho=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of Lf(t))!Ff.call(e,i)&&i!==n&&en(e,i,{get:()=>t[i],enumerable:!(r=_f(t,i))||r.enumerable});return e};var G=(e,t,n)=>(n=e!=null?Rf(jf(e)):{},Ho(t||!e||!e.__esModule?en(n,"default",{value:e,enumerable:!0}):n,e)),Go=e=>Ho(en({},"__esModule",{value:!0}),e);var Lr,Je,jr=J(()=>{Lr=class{constructor(t,n,r){r==null&&typeof t=="string"&&(r=t.length),this.string=t,this.pos=this.start=n||0,this.end=r}eof(){return this.pos>=this.end}limit(t,n){return new this.constructor(this.string,t,n)}peek(){return this.string.charCodeAt(this.pos)}next(){if(this.pos<this.string.length)return this.string.charCodeAt(this.pos++)}eat(t){let n=this.peek(),r=typeof t=="function"?t(n):n===t;return r&&this.next(),r}eatWhile(t){let n=this.pos;for(;!this.eof()&&this.eat(t););return this.pos!==n}backUp(t){this.pos-=t||1}current(){return this.substring(this.start,this.pos)}substring(t,n){return this.string.slice(t,n)}error(t){let n=new Error(`${t} at char ${this.pos+1}`);return n.originalMessage=t,n.pos=this.pos,n.string=this.string,n}},Je=Lr});function Xe(e){return e===39||e===34}function ze(e){return e>47&&e<58}function tn(e,t,n){return t=t||65,n=n||90,e&=-33,e>=t&&e<=n}function Jo(e){return ze(e)||tn(e)}function zf(e){return e===32||e===9||e===160}function Re(e){return zf(e)||e===10||e===13}function _e(e,t,n,r){r=r?Object.assign({},Yo,r):Yo;let i=e.pos;if(e.eat(t)){let o=1,s;for(;!e.eof();)if(!Fr(e,r))if(s=e.next(),s===t)o++;else if(s===n){if(o--,!o)return e.start=i,!0}else s===r.escape&&e.next();if(e.pos=i,r.throws)throw e.error(`Unable to find matching pair for ${String.fromCharCode(t)}`)}return!1}var Qo,Fr,Yo,zr=J(()=>{Qo={escape:92,throws:!1},Fr=function(e,t){t=t?Object.assign({},Qo,t):Qo;let n=e.pos,r=e.peek();if(e.eat(Xe)){for(;!e.eof();)switch(e.next()){case r:return e.start=n,!0;case t.escape:e.next();break}if(e.pos=n,t.throws)throw e.error("Unable to consume quoted string")}return!1};Yo={escape:92,throws:!1}});function Df(e,t){let n=e.pos;if(e.eatWhile(t))return new rn(e,n,e.pos);e.pos=n}function Xf(e){return Ko(e)||Le(e,Kf)}function Zf(e){let t=e.pos;if(Fr(e)){let n=e.pos,r,i;e.pos=t,e.next(),r=e.start=e.pos,e.pos=n,e.backUp(1),i=e.pos;let o=Le(e,r,i);return e.pos=n,o}return Ko(e)||ed(e)}function Kf(e){return e!==es&&!Ur(e)&&!Re(e)}function Ur(e){return e===Yf||e===Qf}function ed(e){return Le(e,td)}function td(e){return!isNaN(e)&&!Xe(e)&&!Re(e)&&!Ur(e)}function ld(e){return Le(e,ud)}function ud(e){return Jo(e)||e===id||e===rd||e===nd||e===ad}function Dr(e,t){let n=e.pos;for(let r=0;r<t.length;r++)if(!e.eat(t[r]))return e.pos=n,!1;return e.start=n,!0}function ns(e,t,n,r){let i=e.pos;if(Dr(e,t)){for(;!e.eof();){if(Dr(e,n))return!0;e.next()}return r?!0:(e.pos=i,!1)}return e.pos=i,null}function Tt(e){return e.split("").map(t=>t.charCodeAt(0))}function bd(e,t){t=Object.assign({},gd,t);let n=typeof e=="string"?new Je(e):e,r=new St(n,"root"),i=new Set(t.empty),o=t.special.reduce((f,h)=>f.set(h,Tt(`</${h}>`)),new Map),s=(f,h)=>f.selfClosing||!t.xml&&i.has(h),a,l,u,c=[r];for(;!n.eof();)if(a=vd(n))if(u=yd(a),a.type==="open")l=new St(n,"tag",a),Zo(c).addChild(l),o.has(u)?l.close=xd(n,o.get(u)):s(a,u)||c.push(l);else if(a.type==="close"){for(let f=c.length-1;f>0;f--)if(c[f].name.toLowerCase()===u){c[f].close=a,c=c.slice(0,f);break}}else Zo(c).addChild(new St(n,a.type,a));else n.next();return r}function vd(e){if(e.peek()===60)return dd(e)||md(e)||ts(e)}function xd(e,t){let n=e.pos,r;for(;!e.eof();){if(Dr(e,t))return e.pos=e.start,ts(e);e.next()}return e.pos=n,null}function yd(e){return e.name?e.name.value.toLowerCase():`#${e.type}`}function Zo(e){return e[e.length-1]}var St,Le,rn,Uf,Bf,Mf,qf,Vf,Wf,Hf,Gf,nn,Ko,Qf,es,Yf,Jf,nd,rd,Xo,id,od,sd,ad,ts,cd,fd,dd,pd,hd,md,gd,Et,Br=J(()=>{jr();zr();St=class{constructor(t,n,r,i){this.stream=t,this.type=n,this.open=r,this.close=i,this.children=[],this.parent=null}get name(){return this.type==="tag"&&this.open?this.open&&this.open.name&&this.open.name.value:"#"+this.type}get attributes(){return this.open&&this.open.attributes}get start(){return this.open&&this.open.start}get end(){return this.close?this.close.end:this.open&&this.open.end}get firstChild(){return this.children[0]}get nextSibling(){let t=this.getIndex();return t!==-1?this.parent.children[t+1]:null}get previousSibling(){let t=this.getIndex();return t!==-1?this.parent.children[t-1]:null}getIndex(){return this.parent?this.parent.children.indexOf(this):-1}addChild(t){return this.removeChild(t),this.children.push(t),t.parent=this,this}removeChild(t){let n=this.children.indexOf(t);return n!==-1&&(this.children.splice(n,1),t.parent=null),this}},Le=function(e,t,n){return typeof t=="function"?Df(e,t):new rn(e,t,n)};rn=class{constructor(t,n,r){this.stream=t,this.start=n??t.start,this.end=r??t.pos,this._value=null}get value(){if(this._value===null){let t=this.stream.start,n=this.stream.pos;this.stream.start=this.start,this.stream.pos=this.end,this._value=this.stream.current(),this.stream.start=t,this.stream.pos=n}return this._value}toString(){return this.value}valueOf(){return`${this.value} [${this.start}; ${this.end}]`}},Uf=60,Bf=62,Mf=91,qf=93,Vf=40,Wf=41,Hf=123,Gf=125,nn={throws:!0},Ko=function(e){let t=e.pos;if(_e(e,Uf,Bf,nn)||_e(e,Mf,qf,nn)||_e(e,Vf,Wf,nn)||_e(e,Hf,Gf,nn))return Le(e,t)},Qf=47,es=61,Yf=62,Jf=function(e){let t=[],n,r,i;for(;!e.eof();)if(e.eatWhile(Re),i={start:e.pos},i.name=Xf(e))e.eat(es)?i.value=Zf(e):i.boolean=!0,i.end=e.pos,t.push(i);else{if(Ur(e.peek()))break;e.next()}return t};nd=45,rd=46,Xo=47,id=58,od=60,sd=62,ad=95,ts=function(e){let t=e.pos;if(e.eat(od)){let n={type:e.eat(Xo)?"close":"open"};if((n.name=ld(e))&&(n.type!=="close"&&(n.attributes=Jf(e),e.eatWhile(Re),n.selfClosing=e.eat(Xo)),e.eat(sd)))return Object.assign(Le(e,t),n)}return e.pos=t,null};cd=Tt("<!--"),fd=Tt("-->"),dd=function(e){let t=e.pos;if(ns(e,cd,fd,!0)){let n=Le(e,t);return n.type="comment",n}return null},pd=Tt("<![CDATA["),hd=Tt("]]>"),md=function(e){let t=e.pos;if(ns(e,pd,hd,!0)){let n=Le(e,t);return n.type="cdata",n}return null},gd={xml:!1,special:["script","style"],empty:["img","meta","link","br","base","hr","area","wbr","col","embed","input","param","source","track"]};Et=bd});function wd(e){e=e.slice();let t;for(;t!==e.length;)t=e.length,Vr(e[0])&&e.shift(),Vr(et(e))&&e.pop();return e}function cs(e){return wd(e,Vr)}function Vr(e){let t=e&&e.type;return t==="whitespace"||t==="comment"}function fs(e,t){let n=e.pos;for(let r=0,i=t.length;r<i;r++)if(!e.eat(t.charCodeAt(r)))return e.pos=n,!1;return!0}function Wr(e,t){let n=e.pos;return e.eat(t)?(e.start=n,!0):!1}function At(e,t){let n=e.pos;return e.eatWhile(t)?(e.start=n,!0):!1}function et(e){return e[e.length-1]}function De(e){return e&&e.valueOf()}function Sd(e){if(Td(e.peek())){let t=e.pos,n=kd.get(e.next()),r=new j(e,"separator",t);return r.property("type",n),r}}function Td(e){return e===ds||e===ps||e===hs||e===Ke||e===tt}function Cd(e){return e===Ke||e===tt}function Nd(e,t,n){let r=new j(e,"arguments"),i=n?ms:Pd,o=[];for(let s=0,a=t.length,l;s<a;s++)l=t[s],i(l)?(r.add(is(e,o)||Id(e,l.start)),o.length=0):o.push(l);return o.length&&r.add(is(e,o)),r}function is(e,t){if(t=cs(t),t.length){let n=new j(e,"argument",t[0].start,et(t).end);for(let r=0;r<t.length;r++)n.add(t[r]);return n}}function Id(e,t){let n=new j(e,"argument",t,t);return n.property("empty",!0),n}function Pd(e){return e.property("type")==="comma"}function ms(e){return e.property("type")==="propertyTerminator"}function Ee(e){return bs(e)&&new j(e,"ident")}function bs(e){let t=e.pos;return e.eat(gs),e.eat(vs)?(e.eatWhile(xs),e.start=t,!0):(e.pos=t,!1)}function vs(e){return e===Od||e===gs||tn(e)||e>=128}function xs(e){return ze(e)||vs(e)}function nt(e,t,n,r,i){let o=e.pos;if(e.eat(n)){let s=r(e,o);if(s||i)return e.start=o,new j(e,t,o).add(s)}e.pos=o}function Yr(e){return nt(e,"at-keyword",$d,Ee)}function Jr(e,t){let n=e.pos;if(t=t||_d,(e.eat(ys)||e.eat(ws))&&e.eat(Ke)){let r=new j(e,"interpolation",n),i=1,o;for(;!e.eof();)if(e.eat(Ke))i++;else if(e.eat(tt)){if(i--,!i)return r.end=e.pos,r}else if(o=t(e))r.add(o);else break}e.pos=n}function Rd(e){let t=e.pos;return(e.eat(ys)||e.eat(ws))&&_e(e,Ke,tt)?(e.start=t,!0):(e.pos=t,!1)}function _d(e){let t=e.pos;for(;!e.eof()&&e.peek()!==tt;)Ct(e)||e.next();if(t!==e.pos)return new j(e,"expression",t)}function Xr(e){return Ct(e,!0)}function Ct(e,t){let n=e.peek(),r,i,o;if(Xe(n)){e.start=e.pos,e.next();let s=n,a=e.pos;for(;!e.eof()&&(r=e.pos,!(e.eat(s)||e.eat(os)));)e.eat(92)?e.eat(os):t&&(o=Jr(e))&&(i?i.push(o):i=[o]),e.next();if(t){let l=new j(e,"string"),u=new j(e,"unquoted",a,r);return u.add(i),l.add(u),l.property("quote",s),l}return!0}return!1}function os(e){return e===10||e===13}function Ld(e){if(ks(e)){let t=new j(e,"comment");return t.property("type","single-line"),t}}function jd(e){if(Ss(e)){let t=new j(e,"comment");return t.property("type","multiline"),t}}function Fd(e){return ks(e)||Ss(e)}function ks(e){let t=e.pos;if(e.eat(sn)&&e.eat(sn)){for(e.start=t;!e.eof()&&!zd(e.next()););return!0}return e.pos=t,!1}function Ss(e){let t=e.pos;if(e.eat(sn)&&e.eat(ss)){for(;!e.eof()&&!(e.next()===ss&&e.eat(sn)););return e.start=t,!0}return e.pos=t,!1}function zd(e){return e===10||e===13}function Dd(e){return Ue(e)&&new j(e,"whitespace")}function Ue(e){return At(e,Re)}function Md(e){let t=e.pos;if(e.eat(Ud)){on(e);let n=Ee(e);on(e);let r=qd(e);on(e);let i=Xr(e)||Ee(e);return on(e),e.eat(Bd),new j(e,"attribute",t).add(n).add(r).add(i)}}function on(e){for(;!e.eof();)if(!Ue(e)&&!Fd(e))return!0}function qd(e){return At(e,Vd)&&new j(e,"operator")}function Vd(e){return e===126||e===124||e===94||e===36||e===42||e===61}function Kr(e){if(Ts(e))return new j(e,"backtick")}function Ts(e){let t=e.pos;return _e(e,as,as)?(e.start=t,!0):!1}function Hd(e){return nt(e,"class",Wd,Ee)}function Yd(e){return e===Es||e===As||e===Ns||e===Cs}function Xd(e){return nt(e,"hash",Jd,Zd,!0)}function Zd(e){if(Kd(e))return new j(e,"hash-value")}function Kd(e){return At(e,ep)}function ep(e){return ze(e)||tn(e,65,70)||e===95||e===45||e>128}function np(e){return nt(e,"id",tp,Ee)}function ip(e){return nt(e,"important",rp,Ee)}function op(e){if(sp(e)){let t=e.start,n=new j(e,"value"),r=ap(e)?new j(e,"unit"):null;return new j(e,"number",t).add(n).add(r)}}function sp(e){let t=e.pos;if(e.eat(up),e.eatWhile(ze)){e.start=t;let n=e.pos;return e.eat(ls)&&e.eatWhile(ze)||(e.pos=n),!0}else if(e.eat(ls)&&e.eatWhile(ze))return e.start=t,!0;return e.pos=t,!1}function ap(e){return bs(e)||lp(e)}function lp(e){return Wr(e,37)}function up(e){return e===45||e===43}function bp(e){return vp(e)&&new j(e,"operator")}function vp(e){return Wr(e,Ps)?(e.eatWhile(Is),!0):!!Wr(e,xp)}function Ps(e){return e===cp||e===mp||e===Is||e===gp}function xp(e){return e===fp||e===dp||e===pp||e===hp||Ps(e)}function Os(e){return At(e,Sp)}function Sp(e){return!isNaN(e)&&!Xe(e)&&!Re(e)&&e!==40&&e!==41&&e!==92&&!Tp(e)}function Tp(e){return e>=0&&e<=8||e===11||e>=14&&e<=31||e===127}function $s(e){let t=e.pos;if(fs(e,"url(")){Ue(e);let n=Xr(e)||kp(e);return Ue(e),e.eat(41),new j(e,"url",t).add(n)}e.pos=t}function Rs(e){let t=e.pos;return fs(e,"url(")?(Ue(e),Ct(e)||Os(e),Ue(e),e.eat(41),e.start=t,!0):(e.pos=t,!1)}function Ep(e){return nt(e,"variable",_s,Ap)}function Ap(e){if(Cp(e))return new j(e,"name")}function Cp(e){return At(e,Np)}function Np(e){return e===_s||xs(e)}function an(e){let t=Ip(e)||rs(e,an);if(t&&t.type==="ident"){let n=rs(e,an);if(n)return new j(e,"function",t.start,n.end).add(t).add(n)}return t||_p(e)}function Ip(e){return Rp(e)||$s(e)||Pp(e)||Op(e)||Sd(e)}function Pp(e){return Jr(e)||Kr(e)||Ee(e)||Yr(e)||Hd(e)||np(e)||wp(e)||Md(e)||Qd(e)}function Op(e){return $s(e)||Xr(e)||Jr(e)||Kr(e)||op(e)||Xd(e)||$p(e)||ip(e)||bp(e)}function $p(e){return Kr(e)||Ep(e)||Yr(e)||Ee(e)}function Rp(e){return Zr(e)||Dd(e)}function _p(e){if(e.start=e.pos,e.next()!=null)return new j(e,"unknown")}function Lp(e){return ei(e,"selector")}function jp(e){let t=typeof e=="string"?new Je(e):e,n=[];for(;!t.eof();)n.push(an(t));let r;if(n.length===1)r=n[0];else{r=new j(t,"property-name",t.start,t.end);for(let i=0,o=n.length;i<o;i++)r.add(n[i])}return r}function Fp(e){return ei(e)}function zp(e){return ei(e)}function ei(e,t){t=t||"item";let n=typeof e=="string"?new Je(e):e,r=[],i=[],o=()=>{let a=cs(i);if(a.length){let l=new j(n,t,a[0].start,et(a).end);for(let u=0;u<a.length;u++)l.add(a[u]);r.push(l)}i.length=0},s;for(;!n.eof();)if(n.eat(44))o();else if(s=an(n))s.type!=="comment"&&i.push(s);else throw n.error("Unexpected character");return o(),r}function Dp(e,t,n,r){if(!t.length)return null;let i=t[0];return i.end=et(t).end,new Hr(e,i,n,r)}function Up(e,t,n,r){if(!t.length)return null;let i=0,o,s=t[i++];return i<t.length?(o=t[i++],o.type="expression",o.end=et(t).end):o=new j(e,"expression",s.end,s.end),new Gr(e,s,o,n,r)}function Mr(e,t,n){if(!t.length)return null;let r,i,o=0,s=t[o++];return o<t.length&&(i=t[o++],i.type="value",i.end=et(t).end),s&&i&&(r=new j(e,"separator",s.end,i.start)),new Qr(e,s,i,r,n)}function Hp(e){let t=typeof e=="string"?new Je(e):e,n=new qr,r=n,i,o,s,a=[],l=()=>{o&&(a.push(o),o=null)};for(;!t.eof();)if(!Ue(t)){if(s=Zr(t)){n.addComment(s);continue}if(t.start=t.pos,t.eatWhile(Mp))a.length||(o?l():o=new j(t,"preparse"));else if(t.eat(qp))l(),r.add(Mr(t,a,new j(t,"termintator"))),a.length=0;else if(t.eat(Vp))l(),a.length>0&&(i=a[0].type==="at-keyword"?Up(t,a,new j(t,"body-start")):Dp(t,a,new j(t,"body-start")),r.add(i),r=i,a.length=0);else if(t.eat(Wp))l(),r.add(Mr(t,a)),r.type!=="stylesheet"&&(r.contentEndToken=new j(t,"body-end"),r=r.parent),a.length=0;else if(s=Yr(t))l(),a.push(s);else if(Rs(t)||Rd(t)||Ts(t)||Gp(t,n)||Ct(t)||t.next())o=o||new j(t,"preparse"),o.end=t.pos;else throw new Error(`Unexpected end-of-stream at ${t.pos}`)}for(o&&a.push(o),r.add(Mr(t,a)),t.start=t.pos;r&&r!==n;)r.contentEndToken=new j(t,"body-end"),r=r.parent;return n}function Gp(e,t){if(e.eat(us)){let n=1,r;for(;!e.eof();)if(e.eat(Bp)){if(n--,!n)break}else if(e.eat(us))n++;else{if(Rs(e)||Ct(e))continue;if(r=Zr(e)){t.addComment(r);continue}else e.next()}return!0}return!1}var Ze,qr,j,ds,ps,hs,Ke,tt,kd,Ed,Ad,rs,gs,Od,$d,ys,ws,ss,sn,Zr,Ud,Bd,as,Wd,Es,As,Cs,Ns,Gd,Qd,Jd,tp,rp,ls,cp,fp,dp,pp,hp,mp,Is,gp,yp,wp,kp,_s,Hr,Gr,Qr,us,Bp,Mp,qp,Vp,Wp,we,Nt=J(()=>{jr();zr();Ze=class{constructor(t){this.type=t,this.children=[],this.parent=null}get firstChild(){return this.children[0]}get nextSibling(){let t=this.index();return t!==-1?this.parent.children[t+1]:null}get previousSibling(){let t=this.index();return t!==-1?this.parent.children[t-1]:null}index(){return this.parent?this.parent.children.indexOf(this):-1}add(t){return t&&(t.remove(),this.children.push(t),t.parent=this),this}remove(){if(this.parent){let t=this.index();t!==-1&&(this.parent.children.splice(t,1),this.parent=null)}return this}},qr=class extends Ze{constructor(){super("stylesheet"),this.comments=[]}get start(){let t=this.firstChild;return t&&t.start}get end(){let t=this.children[this.children.length-1];return t&&t.end}addComment(t){this.comments.push(t)}};j=class{constructor(t,n,r,i){this.stream=t,this.start=r??t.start,this.end=i??t.pos,this.type=n,this._props=null,this._value=null,this._items=null}get size(){return this._items?this._items.length:0}get items(){return this._items}clone(t,n){return new this.constructor(this.stream,this.type,t??this.start,n??this.end)}add(t){if(Array.isArray(t))for(let n=0,r=t.length;n<r;n++)this.add(t[n]);else t&&(this._items?this._items.push(t):this._items=[t]);return this}remove(t){if(this._items){let n=this._items.indexOf(t);n!==-1&&this._items.splice(n,1)}return this}item(t){let n=this.size;return this._items&&this._items[(n+t)%n]}limit(){return this.stream.limit(this.start,this.end)}slice(t,n){let r=this.clone(),i=this._items&&this._items.slice(t,n);return i&&i.length?(r.start=i[0].start,r.end=i[i.length-1].end,r.add(i)):i&&(r.start=r.end),r}property(t,n){return typeof n<"u"&&(this._props||(this._props={}),this._props[t]=n),this._props&&this._props[t]}toString(){return`${this.valueOf()} [${this.start}, ${this.end}] (${this.type})`}valueOf(){return this._value===null&&(this._value=this.stream.substring(this.start,this.end)),this._value}},ds=44,ps=58,hs=59,Ke=123,tt=125,kd=new Map().set(ds,"comma").set(ps,"propertyDelimiter").set(hs,"propertyTerminator").set(Ke,"ruleStart").set(tt,"ruleEnd");Ed=40,Ad=41,rs=function(e,t){if(e.peek()===Ed){let n=e.pos;e.next();let r=[],i,o=!1;for(;!e.eof()&&!(Cd(e.peek())||e.eat(Ad)||(i=t(e),!i));)ms(i)&&(o=!0),r.push(i);return e.start=n,Nd(e,r,o)}};gs=45,Od=95;$d=64;ys=35,ws=64;ss=42,sn=47,Zr=function(e){return Ld(e)||jd(e)};Ud=91,Bd=93;as=96;Wd=46;Es=43,As=126,Cs=62,Ns=38,Gd={[Es]:"adjacentSibling",[As]:"generalSibling",[Cs]:"child",[Ns]:"nesting"},Qd=function(e){if(Yd(e.peek())){let t=e.pos,n=Gd[e.next()],r=new j(e,"combinator",t);return r.property("type",n),r}};Jd=35;tp=35;rp=33;ls=46;cp=33,fp=42,dp=43,pp=45,hp=47,mp=60,Is=61,gp=62;yp=58,wp=function(e){let t=e.pos;if(e.eatWhile(yp)){let n=Ee(e);if(n)return new j(e,"pseudo",t).add(n)}e.pos=t},kp=function(e){return Os(e)&&new j(e,"unquoted")};_s=36;Hr=class extends Ze{constructor(t,n,r,i){super("rule"),this.stream=t,this.selectorToken=n,this.contentStartToken=r,this.contentEndToken=i||r,this._parsedSelector=null}get selector(){return De(this.selectorToken)}get parsedSelector(){return this._parsedSelector||(this._parsedSelector=Lp(this.selectorToken.limit())),this._parsedSelector}get start(){return this.selectorToken&&this.selectorToken.start}get end(){let t=this.contentEndToken||this.contentStartToken||this.nameToken;return t&&t.end}};Gr=class extends Ze{constructor(t,n,r,i,o){super("at-rule"),this.stream=t,this.nameToken=n,this.expressionToken=r,this.contentStartToken=i,this.contentEndToken=o||i,this._parsedExpression=null}get name(){return De(this.nameToken&&this.nameToken.item(0))}get expression(){return De(this.expressionToken)}get parsedExpression(){return this._parsedExpression||(this._parsedExpression=zp(this.expressionToken.limit())),this._parsedExpression}get start(){return this.nameToken&&this.nameToken.start}get end(){let t=this.contentEndToken||this.contentStartToken||this.nameToken;return t&&t.end}};Qr=class extends Ze{constructor(t,n,r,i,o){super("property"),this.stream=t,this.nameToken=n,this.valueToken=r,this._parsedName=null,this._parsedValue=null,this.separatorToken=i,this.terminatorToken=o}get name(){return De(this.nameToken)}get parsedName(){return this._parsedName||(this._parsedName=jp(this.nameToken.limit())),this._parsedName}get value(){return De(this.valueToken)}get parsedValue(){return this._parsedValue||(this._parsedValue=Fp(this.valueToken.limit())),this._parsedValue}get separator(){return De(this.separatorToken)}get terminator(){return De(this.terminatorToken)}get start(){let t=this.nameToken||this.separatorToken||this.valueToken||this.terminatorToken;return t&&t.start}get end(){let t=this.terminatorToken||this.valueToken||this.separatorToken||this.nameToken;return t&&t.end}},us=40,Bp=41,Mp=58,qp=59,Vp=123,Wp=125;we=Hp});var ln,Ls=J(()=>{"use strict";ln=class e{document;start;_eof;_sof;pos;constructor(t,n,r){this.document=t,this.start=this.pos=n||0,this._sof=r?r[0]:0,this._eof=r?r[1]:t.getText().length}sof(){return this.pos<=this._sof}eof(){return this.pos>=this._eof}limit(t,n){return new e(this.document,t,[t,n])}peek(){return this.eof()?NaN:this.document.getText().charCodeAt(this.pos)}next(){if(this.eof())return NaN;let t=this.document.getText().charCodeAt(this.pos);return this.pos++,this.eof()&&(this.pos=this._eof),t}backUp(t){return this.pos-=t,this.pos<0&&(this.pos=0),this.peek()}current(){return this.substring(this.start,this.pos)}substring(t,n){return this.document.getText().substring(t,n)}error(t){return new Error(`${t} at offset ${this.pos}`)}eat(t){let n=this.peek(),r=typeof t=="function"?t(n):n===t;return r&&this.next(),r}eatWhile(t){let n=this.pos;for(;!this.eof()&&this.eat(t););return this.pos!==n}}});function ti(e,t){if(e.length<=1)return e;let n=e.length/2|0,r=e.slice(0,n),i=e.slice(n);ti(r,t),ti(i,t);let o=0,s=0,a=0;for(;o<r.length&&s<i.length;)t(r[o],i[s])<=0?e[a++]=r[o++]:e[a++]=i[s++];for(;o<r.length;)e[a++]=r[o++];for(;s<i.length;)e[a++]=i[s++];return e}function js(e,t,n=0){let r=t?[n]:[];for(let i=0;i<e.length;i++){let o=e.charCodeAt(i);Fs(o)&&(o===13&&i+1<e.length&&e.charCodeAt(i+1)===10&&i++,r.push(n+i+1))}return r}function Fs(e){return e===13||e===10}function zs(e){let t=e.start,n=e.end;return t.line>n.line||t.line===n.line&&t.character>n.character?{start:n,end:t}:e}function Qp(e){let t=zs(e.range);return t!==e.range?{newText:e.newText,range:t}:e}var un,cn,Ds=J(()=>{"use strict";un=class e{constructor(t,n,r,i){this._uri=t,this._languageId=n,this._version=r,this._content=i,this._lineOffsets=void 0}get uri(){return this._uri}get languageId(){return this._languageId}get version(){return this._version}getText(t){if(t){let n=this.offsetAt(t.start),r=this.offsetAt(t.end);return this._content.substring(n,r)}return this._content}update(t,n){for(let r of t)if(e.isIncremental(r)){let i=zs(r.range),o=this.offsetAt(i.start),s=this.offsetAt(i.end);this._content=this._content.substring(0,o)+r.text+this._content.substring(s,this._content.length);let a=Math.max(i.start.line,0),l=Math.max(i.end.line,0),u=this._lineOffsets,c=js(r.text,!1,o);if(l-a===c.length)for(let h=0,d=c.length;h<d;h++)u[h+a+1]=c[h];else c.length<1e4?u.splice(a+1,l-a,...c):this._lineOffsets=u=u.slice(0,a+1).concat(c,u.slice(l+1));let f=r.text.length-(s-o);if(f!==0)for(let h=a+1+c.length,d=u.length;h<d;h++)u[h]=u[h]+f}else if(e.isFull(r))this._content=r.text,this._lineOffsets=void 0;else throw new Error("Unknown change event received");this._version=n}getLineOffsets(){return this._lineOffsets===void 0&&(this._lineOffsets=js(this._content,!0)),this._lineOffsets}positionAt(t){t=Math.max(Math.min(t,this._content.length),0);let n=this.getLineOffsets(),r=0,i=n.length;if(i===0)return{line:0,character:t};for(;r<i;){let s=Math.floor((r+i)/2);n[s]>t?i=s:r=s+1}let o=r-1;return t=this.ensureBeforeEOL(t,n[o]),{line:o,character:t-n[o]}}offsetAt(t){let n=this.getLineOffsets();if(t.line>=n.length)return this._content.length;if(t.line<0)return 0;let r=n[t.line];if(t.character<=0)return r;let i=t.line+1<n.length?n[t.line+1]:this._content.length,o=Math.min(r+t.character,i);return this.ensureBeforeEOL(o,r)}ensureBeforeEOL(t,n){for(;t>n&&Fs(this._content.charCodeAt(t-1));)t--;return t}get lineCount(){return this.getLineOffsets().length}static isIncremental(t){let n=t;return n!=null&&typeof n.text=="string"&&n.range!==void 0&&(n.rangeLength===void 0||typeof n.rangeLength=="number")}static isFull(t){let n=t;return n!=null&&typeof n.text=="string"&&n.range===void 0&&n.rangeLength===void 0}};(function(e){function t(i,o,s,a){return new un(i,o,s,a)}e.create=t;function n(i,o,s){if(i instanceof un)return i.update(o,s),i;throw new Error("TextDocument.update: document must be created by TextDocument.create")}e.update=n;function r(i,o){let s=i.getText(),a=ti(o.map(Qp),(c,f)=>{let h=c.range.start.line-f.range.start.line;return h===0?c.range.start.character-f.range.start.character:h}),l=0,u=[];for(let c of a){let f=i.offsetAt(c.range.start);if(f<l)throw new Error("Overlapping edit");f>l&&u.push(s.substring(l,f)),c.newText.length&&u.push(c.newText),l=i.offsetAt(c.range.end)}return u.push(s.substr(l)),u.join("")}e.applyEdits=r})(cn||(cn={}))});function U(e,t){let n=e.uri.toString(),r=fn.get(n),i=e.version;if(t&&r&&i===r.key)return r.value;let s=(te(e.languageId)?we:Et)(e.getText());return t&&fn.set(n,{key:i,value:s}),s}function Us(e){let t=e.uri.toString();fn.set(t,void 0)}function Bs(e){let t=e.uri.toString();fn.delete(t)}var fn,ce=J(()=>{"use strict";Br();Nt();re();fn=new Map});function dn(e,t){t===void 0&&(t=!1);var n=e.length,r=0,i="",o=0,s=16,a=0,l=0,u=0,c=0,f=0;function h(g,S){for(var k=0,y=0;k<g||!S;){var C=e.charCodeAt(r);if(C>=48&&C<=57)y=y*16+C-48;else if(C>=65&&C<=70)y=y*16+C-65+10;else if(C>=97&&C<=102)y=y*16+C-97+10;else break;r++,k++}return k<g&&(y=-1),y}function d(g){r=g,i="",o=0,s=16,f=0}function v(){var g=r;if(e.charCodeAt(r)===48)r++;else for(r++;r<e.length&&rt(e.charCodeAt(r));)r++;if(r<e.length&&e.charCodeAt(r)===46)if(r++,r<e.length&&rt(e.charCodeAt(r)))for(r++;r<e.length&&rt(e.charCodeAt(r));)r++;else return f=3,e.substring(g,r);var S=r;if(r<e.length&&(e.charCodeAt(r)===69||e.charCodeAt(r)===101))if(r++,(r<e.length&&e.charCodeAt(r)===43||e.charCodeAt(r)===45)&&r++,r<e.length&&rt(e.charCodeAt(r))){for(r++;r<e.length&&rt(e.charCodeAt(r));)r++;S=r}else f=3;return e.substring(g,S)}function b(){for(var g="",S=r;;){if(r>=n){g+=e.substring(S,r),f=2;break}var k=e.charCodeAt(r);if(k===34){g+=e.substring(S,r),r++;break}if(k===92){if(g+=e.substring(S,r),r++,r>=n){f=2;break}var y=e.charCodeAt(r++);switch(y){case 34:g+='"';break;case 92:g+="\\";break;case 47:g+="/";break;case 98:g+="\b";break;case 102:g+="\f";break;case 110:g+=` `;break;case 114:g+="\r";break;case 116:g+=" ";break;case 117:var C=h(4,!0);C>=0?g+=String.fromCharCode(C):f=4;break;default:f=5}S=r;continue}if(k>=0&&k<=31)if(It(k)){g+=e.substring(S,r),f=2;break}else f=6;r++}return g}function w(){if(i="",f=0,o=r,l=a,c=u,r>=n)return o=n,s=17;var g=e.charCodeAt(r);if(ni(g)){do r++,i+=String.fromCharCode(g),g=e.charCodeAt(r);while(ni(g));return s=15}if(It(g))return r++,i+=String.fromCharCode(g),g===13&&e.charCodeAt(r)===10&&(r++,i+=` `),a++,u=r,s=14;switch(g){case 123:return r++,s=1;case 125:return r++,s=2;case 91:return r++,s=3;case 93:return r++,s=4;case 58:return r++,s=6;case 44:return r++,s=5;case 34:return r++,i=b(),s=10;case 47:var S=r-1;if(e.charCodeAt(r+1)===47){for(r+=2;r<n&&!It(e.charCodeAt(r));)r++;return i=e.substring(S,r),s=12}if(e.charCodeAt(r+1)===42){r+=2;for(var k=n-1,y=!1;r<k;){var C=e.charCodeAt(r);if(C===42&&e.charCodeAt(r+1)===47){r+=2,y=!0;break}r++,It(C)&&(C===13&&e.charCodeAt(r)===10&&r++,a++,u=r)}return y||(r++,f=1),i=e.substring(S,r),s=13}return i+=String.fromCharCode(g),r++,s=16;case 45:if(i+=String.fromCharCode(g),r++,r===n||!rt(e.charCodeAt(r)))return s=16;case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return i+=v(),s=11;default:for(;r<n&&x(g);)r++,g=e.charCodeAt(r);if(o!==r){switch(i=e.substring(o,r),i){case"true":return s=8;case"false":return s=9;case"null":return s=7}return s=16}return i+=String.fromCharCode(g),r++,s=16}}function x(g){if(ni(g)||It(g))return!1;switch(g){case 125:case 93:case 123:case 91:case 34:case 58:case 44:case 47:return!1}return!0}function T(){var g;do g=w();while(g>=12&&g<=15);return g}return{setPosition:d,getPosition:function(){return r},scan:t?T:w,getToken:function(){return s},getTokenValue:function(){return i},getTokenOffset:function(){return o},getTokenLength:function(){return r-o},getTokenStartLine:function(){return l},getTokenStartCharacter:function(){return o-c},getTokenError:function(){return f}}}function ni(e){return e===32||e===9||e===11||e===12||e===160||e===5760||e>=8192&&e<=8203||e===8239||e===8287||e===12288||e===65279}function It(e){return e===10||e===13||e===8232||e===8233}function rt(e){return e>=48&&e<=57}var pn=J(()=>{"use strict"});var ri=J(()=>{"use strict";pn()});function Ms(e,t,n){t===void 0&&(t=[]),n===void 0&&(n=hn.DEFAULT);var r=null,i=[],o=[];function s(l){Array.isArray(i)?i.push(l):r!==null&&(i[r]=l)}var a={onObjectBegin:function(){var l={};s(l),o.push(i),i=l,r=null},onObjectProperty:function(l){r=l},onObjectEnd:function(){i=o.pop()},onArrayBegin:function(){var l=[];s(l),o.push(i),i=l,r=null},onArrayEnd:function(){i=o.pop()},onLiteralValue:s,onError:function(l,u,c){t.push({error:l,offset:u,length:c})}};return qs(e,a,n),i[0]}function qs(e,t,n){n===void 0&&(n=hn.DEFAULT);var r=dn(e,!1);function i(I){return I?function(){return I(r.getTokenOffset(),r.getTokenLength(),r.getTokenStartLine(),r.getTokenStartCharacter())}:function(){return!0}}function o(I){return I?function($){return I($,r.getTokenOffset(),r.getTokenLength(),r.getTokenStartLine(),r.getTokenStartCharacter())}:function(){return!0}}var s=i(t.onObjectBegin),a=o(t.onObjectProperty),l=i(t.onObjectEnd),u=i(t.onArrayBegin),c=i(t.onArrayEnd),f=o(t.onLiteralValue),h=o(t.onSeparator),d=i(t.onComment),v=o(t.onError),b=n&&n.disallowComments,w=n&&n.allowTrailingComma;function x(){for(;;){var I=r.scan();switch(r.getTokenError()){case 4:T(14);break;case 5:T(15);break;case 3:T(13);break;case 1:b||T(11);break;case 2:T(12);break;case 6:T(16);break}switch(I){case 12:case 13:b?T(10):d();break;case 16:T(1);break;case 15:case 14:break;default:return I}}}function T(I,$,E){if($===void 0&&($=[]),E===void 0&&(E=[]),v(I),$.length+E.length>0)for(var m=r.getToken();m!==17;){if($.indexOf(m)!==-1){x();break}else if(E.indexOf(m)!==-1)break;m=x()}}function g(I){var $=r.getTokenValue();return I?f($):a($),x(),!0}function S(){switch(r.getToken()){case 11:var I=r.getTokenValue(),$=Number(I);isNaN($)&&(T(2),$=0),f($);break;case 7:f(null);break;case 8:f(!0);break;case 9:f(!1);break;default:return!1}return x(),!0}function k(){return r.getToken()!==10?(T(3,[],[2,5]),!1):(g(!1),r.getToken()===6?(h(":"),x(),P()||T(4,[],[2,5])):T(5,[],[2,5]),!0)}function y(){s(),x();for(var I=!1;r.getToken()!==2&&r.getToken()!==17;){if(r.getToken()===5){if(I||T(4,[],[]),h(","),x(),r.getToken()===2&&w)break}else I&&T(6,[],[]);k()||T(4,[],[2,5]),I=!0}return l(),r.getToken()!==2?T(7,[2],[]):x(),!0}function C(){u(),x();for(var I=!1;r.getToken()!==4&&r.getToken()!==17;){if(r.getToken()===5){if(I||T(4,[],[]),h(","),x(),r.getToken()===4&&w)break}else I&&T(6,[],[]);P()||T(4,[],[4,5]),I=!0}return c(),r.getToken()!==4?T(8,[4],[]):x(),!0}function P(){switch(r.getToken()){case 3:return C();case 1:return y();case 10:return g(!0);default:return S()}}return x(),r.getToken()===17?n.allowEmptyContent?!0:(T(4,[],[]),!1):P()?(r.getToken()!==17&&T(9,[],[]),!0):(T(4,[],[]),!1)}var hn,ii=J(()=>{"use strict";pn();(function(e){e.DEFAULT={allowTrailingComma:!1}})(hn||(hn={}))});var Vs=J(()=>{"use strict";ri();ii()});function Hs(e){switch(e){case 1:return"InvalidSymbol";case 2:return"InvalidNumberFormat";case 3:return"PropertyNameExpected";case 4:return"ValueExpected";case 5:return"ColonExpected";case 6:return"CommaExpected";case 7:return"CloseBraceExpected";case 8:return"CloseBracketExpected";case 9:return"EndOfFileExpected";case 10:return"InvalidCommentToken";case 11:return"UnexpectedEndOfComment";case 12:return"UnexpectedEndOfString";case 13:return"UnexpectedEndOfNumber";case 14:return"InvalidUnicode";case 15:return"InvalidEscapeCharacter";case 16:return"InvalidCharacter"}return"<unknown ParseErrorCode>"}var Ws,Gs=J(()=>{"use strict";ri();Vs();pn();ii();Ws=Ms});var Qs,oi,Ys,mn,be,Z,gn,Js,si,Xs,Zs,Ks,ea,ai,ta,na,ra,bn,it,ke,li,ot,ia,ui,ci,fi,di,pi,oa,sa,hi,aa,mi,Pt,vn,Ot,la,ua,ca,fa,$t,Rt,xn,da,pa,ha,ma,ga,ba,va,xa,ya,wa,ka,yn,Sa,Ta,Ea,Aa,Ca,Na,Ia,Pa,Oa,$a,Ra,_a,La,gi,bi,ja,Fa,za,Da,Ua,Ba,Ma,qa,Va,vi,p,Wa=J(()=>{"use strict";(function(e){function t(n){return typeof n=="string"}e.is=t})(Qs||(Qs={}));(function(e){function t(n){return typeof n=="string"}e.is=t})(oi||(oi={}));(function(e){e.MIN_VALUE=-2147483648,e.MAX_VALUE=2147483647;function t(n){return typeof n=="number"&&e.MIN_VALUE<=n&&n<=e.MAX_VALUE}e.is=t})(Ys||(Ys={}));(function(e){e.MIN_VALUE=0,e.MAX_VALUE=2147483647;function t(n){return typeof n=="number"&&e.MIN_VALUE<=n&&n<=e.MAX_VALUE}e.is=t})(mn||(mn={}));(function(e){function t(r,i){return r===Number.MAX_VALUE&&(r=mn.MAX_VALUE),i===Number.MAX_VALUE&&(i=mn.MAX_VALUE),{line:r,character:i}}e.create=t;function n(r){let i=r;return p.objectLiteral(i)&&p.uinteger(i.line)&&p.uinteger(i.character)}e.is=n})(be||(be={}));(function(e){function t(r,i,o,s){if(p.uinteger(r)&&p.uinteger(i)&&p.uinteger(o)&&p.uinteger(s))return{start:be.create(r,i),end:be.create(o,s)};if(be.is(r)&&be.is(i))return{start:r,end:i};throw new Error(`Range#create called with invalid arguments[${r}, ${i}, ${o}, ${s}]`)}e.create=t;function n(r){let i=r;return p.objectLiteral(i)&&be.is(i.start)&&be.is(i.end)}e.is=n})(Z||(Z={}));(function(e){function t(r,i){return{uri:r,range:i}}e.create=t;function n(r){let i=r;return p.objectLiteral(i)&&Z.is(i.range)&&(p.string(i.uri)||p.undefined(i.uri))}e.is=n})(gn||(gn={}));(function(e){function t(r,i,o,s){return{targetUri:r,targetRange:i,targetSelectionRange:o,originSelectionRange:s}}e.create=t;function n(r){let i=r;return p.objectLiteral(i)&&Z.is(i.targetRange)&&p.string(i.targetUri)&&Z.is(i.targetSelectionRange)&&(Z.is(i.originSelectionRange)||p.undefined(i.originSelectionRange))}e.is=n})(Js||(Js={}));(function(e){function t(r,i,o,s){return{red:r,green:i,blue:o,alpha:s}}e.create=t;function n(r){let i=r;return p.objectLiteral(i)&&p.numberRange(i.red,0,1)&&p.numberRange(i.green,0,1)&&p.numberRange(i.blue,0,1)&&p.numberRange(i.alpha,0,1)}e.is=n})(si||(si={}));(function(e){function t(r,i){return{range:r,color:i}}e.create=t;function n(r){let i=r;return p.objectLiteral(i)&&Z.is(i.range)&&si.is(i.color)}e.is=n})(Xs||(Xs={}));(function(e){function t(r,i,o){return{label:r,textEdit:i,additionalTextEdits:o}}e.create=t;function n(r){let i=r;return p.objectLiteral(i)&&p.string(i.label)&&(p.undefined(i.textEdit)||ke.is(i))&&(p.undefined(i.additionalTextEdits)||p.typedArray(i.additionalTextEdits,ke.is))}e.is=n})(Zs||(Zs={}));(function(e){e.Comment="comment",e.Imports="imports",e.Region="region"})(Ks||(Ks={}));(function(e){function t(r,i,o,s,a,l){let u={startLine:r,endLine:i};return p.defined(o)&&(u.startCharacter=o),p.defined(s)&&(u.endCharacter=s),p.defined(a)&&(u.kind=a),p.defined(l)&&(u.collapsedText=l),u}e.create=t;function n(r){let i=r;return p.objectLiteral(i)&&p.uinteger(i.startLine)&&p.uinteger(i.startLine)&&(p.undefined(i.startCharacter)||p.uinteger(i.startCharacter))&&(p.undefined(i.endCharacter)||p.uinteger(i.endCharacter))&&(p.undefined(i.kind)||p.string(i.kind))}e.is=n})(ea||(ea={}));(function(e){function t(r,i){return{location:r,message:i}}e.create=t;function n(r){let i=r;return p.defined(i)&&gn.is(i.location)&&p.string(i.message)}e.is=n})(ai||(ai={}));(function(e){e.Error=1,e.Warning=2,e.Information=3,e.Hint=4})(ta||(ta={}));(function(e){e.Unnecessary=1,e.Deprecated=2})(na||(na={}));(function(e){function t(n){let r=n;return p.objectLiteral(r)&&p.string(r.href)}e.is=t})(ra||(ra={}));(function(e){function t(r,i,o,s,a,l){let u={range:r,message:i};return p.defined(o)&&(u.severity=o),p.defined(s)&&(u.code=s),p.defined(a)&&(u.source=a),p.defined(l)&&(u.relatedInformation=l),u}e.create=t;function n(r){var i;let o=r;return p.defined(o)&&Z.is(o.range)&&p.string(o.message)&&(p.number(o.severity)||p.undefined(o.severity))&&(p.integer(o.code)||p.string(o.code)||p.undefined(o.code))&&(p.undefined(o.codeDescription)||p.string((i=o.codeDescription)===null||i===void 0?void 0:i.href))&&(p.string(o.source)||p.undefined(o.source))&&(p.undefined(o.relatedInformation)||p.typedArray(o.relatedInformation,ai.is))}e.is=n})(bn||(bn={}));(function(e){function t(r,i,...o){let s={title:r,command:i};return p.defined(o)&&o.length>0&&(s.arguments=o),s}e.create=t;function n(r){let i=r;return p.defined(i)&&p.string(i.title)&&p.string(i.command)}e.is=n})(it||(it={}));(function(e){function t(o,s){return{range:o,newText:s}}e.replace=t;function n(o,s){return{range:{start:o,end:o},newText:s}}e.insert=n;function r(o){return{range:o,newText:""}}e.del=r;function i(o){let s=o;return p.objectLiteral(s)&&p.string(s.newText)&&Z.is(s.range)}e.is=i})(ke||(ke={}));(function(e){function t(r,i,o){let s={label:r};return i!==void 0&&(s.needsConfirmation=i),o!==void 0&&(s.description=o),s}e.create=t;function n(r){let i=r;return p.objectLiteral(i)&&p.string(i.label)&&(p.boolean(i.needsConfirmation)||i.needsConfirmation===void 0)&&(p.string(i.description)||i.description===void 0)}e.is=n})(li||(li={}));(function(e){function t(n){let r=n;return p.string(r)}e.is=t})(ot||(ot={}));(function(e){function t(o,s,a){return{range:o,newText:s,annotationId:a}}e.replace=t;function n(o,s,a){return{range:{start:o,end:o},newText:s,annotationId:a}}e.insert=n;function r(o,s){return{range:o,newText:"",annotationId:s}}e.del=r;function i(o){let s=o;return ke.is(s)&&(li.is(s.annotationId)||ot.is(s.annotationId))}e.is=i})(ia||(ia={}));(function(e){function t(r,i){return{textDocument:r,edits:i}}e.create=t;function n(r){let i=r;return p.defined(i)&&hi.is(i.textDocument)&&Array.isArray(i.edits)}e.is=n})(ui||(ui={}));(function(e){function t(r,i,o){let s={kind:"create",uri:r};return i!==void 0&&(i.overwrite!==void 0||i.ignoreIfExists!==void 0)&&(s.options=i),o!==void 0&&(s.annotationId=o),s}e.create=t;function n(r){let i=r;return i&&i.kind==="create"&&p.string(i.uri)&&(i.options===void 0||(i.options.overwrite===void 0||p.boolean(i.options.overwrite))&&(i.options.ignoreIfExists===void 0||p.boolean(i.options.ignoreIfExists)))&&(i.annotationId===void 0||ot.is(i.annotationId))}e.is=n})(ci||(ci={}));(function(e){function t(r,i,o,s){let a={kind:"rename",oldUri:r,newUri:i};return o!==void 0&&(o.overwrite!==void 0||o.ignoreIfExists!==void 0)&&(a.options=o),s!==void 0&&(a.annotationId=s),a}e.create=t;function n(r){let i=r;return i&&i.kind==="rename"&&p.string(i.oldUri)&&p.string(i.newUri)&&(i.options===void 0||(i.options.overwrite===void 0||p.boolean(i.options.overwrite))&&(i.options.ignoreIfExists===void 0||p.boolean(i.options.ignoreIfExists)))&&(i.annotationId===void 0||ot.is(i.annotationId))}e.is=n})(fi||(fi={}));(function(e){function t(r,i,o){let s={kind:"delete",uri:r};return i!==void 0&&(i.recursive!==void 0||i.ignoreIfNotExists!==void 0)&&(s.options=i),o!==void 0&&(s.annotationId=o),s}e.create=t;function n(r){let i=r;return i&&i.kind==="delete"&&p.string(i.uri)&&(i.options===void 0||(i.options.recursive===void 0||p.boolean(i.options.recursive))&&(i.options.ignoreIfNotExists===void 0||p.boolean(i.options.ignoreIfNotExists)))&&(i.annotationId===void 0||ot.is(i.annotationId))}e.is=n})(di||(di={}));(function(e){function t(n){let r=n;return r&&(r.changes!==void 0||r.documentChanges!==void 0)&&(r.documentChanges===void 0||r.documentChanges.every(i=>p.string(i.kind)?ci.is(i)||fi.is(i)||di.is(i):ui.is(i)))}e.is=t})(pi||(pi={}));(function(e){function t(r){return{uri:r}}e.create=t;function n(r){let i=r;return p.defined(i)&&p.string(i.uri)}e.is=n})(oa||(oa={}));(function(e){function t(r,i){return{uri:r,version:i}}e.create=t;function n(r){let i=r;return p.defined(i)&&p.string(i.uri)&&p.integer(i.version)}e.is=n})(sa||(sa={}));(function(e){function t(r,i){return{uri:r,version:i}}e.create=t;function n(r){let i=r;return p.defined(i)&&p.string(i.uri)&&(i.version===null||p.integer(i.version))}e.is=n})(hi||(hi={}));(function(e){function t(r,i,o,s){return{uri:r,languageId:i,version:o,text:s}}e.create=t;function n(r){let i=r;return p.defined(i)&&p.string(i.uri)&&p.string(i.languageId)&&p.integer(i.version)&&p.string(i.text)}e.is=n})(aa||(aa={}));(function(e){e.PlainText="plaintext",e.Markdown="markdown";function t(n){let r=n;return r===e.PlainText||r===e.Markdown}e.is=t})(mi||(mi={}));(function(e){function t(n){let r=n;return p.objectLiteral(n)&&mi.is(r.kind)&&p.string(r.value)}e.is=t})(Pt||(Pt={}));(function(e){e.Text=1,e.Method=2,e.Function=3,e.Constructor=4,e.Field=5,e.Variable=6,e.Class=7,e.Interface=8,e.Module=9,e.Property=10,e.Unit=11,e.Value=12,e.Enum=13,e.Keyword=14,e.Snippet=15,e.Color=16,e.File=17,e.Reference=18,e.Folder=19,e.EnumMember=20,e.Constant=21,e.Struct=22,e.Event=23,e.Operator=24,e.TypeParameter=25})(vn||(vn={}));(function(e){e.PlainText=1,e.Snippet=2})(Ot||(Ot={}));(function(e){e.Deprecated=1})(la||(la={}));(function(e){function t(r,i,o){return{newText:r,insert:i,replace:o}}e.create=t;function n(r){let i=r;return i&&p.string(i.newText)&&Z.is(i.insert)&&Z.is(i.replace)}e.is=n})(ua||(ua={}));(function(e){e.asIs=1,e.adjustIndentation=2})(ca||(ca={}));(function(e){function t(n){let r=n;return r&&(p.string(r.detail)||r.detail===void 0)&&(p.string(r.description)||r.description===void 0)}e.is=t})(fa||(fa={}));(function(e){function t(n){return{label:n}}e.create=t})($t||($t={}));(function(e){function t(n,r){return{items:n||[],isIncomplete:!!r}}e.create=t})(Rt||(Rt={}));(function(e){function t(r){return r.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}e.fromPlainText=t;function n(r){let i=r;return p.string(i)||p.objectLiteral(i)&&p.string(i.language)&&p.string(i.value)}e.is=n})(xn||(xn={}));(function(e){function t(n){let r=n;return!!r&&p.objectLiteral(r)&&(Pt.is(r.contents)||xn.is(r.contents)||p.typedArray(r.contents,xn.is))&&(n.range===void 0||Z.is(n.range))}e.is=t})(da||(da={}));(function(e){function t(n,r){return r?{label:n,documentation:r}:{label:n}}e.create=t})(pa||(pa={}));(function(e){function t(n,r,...i){let o={label:n};return p.defined(r)&&(o.documentation=r),p.defined(i)?o.parameters=i:o.parameters=[],o}e.create=t})(ha||(ha={}));(function(e){e.Text=1,e.Read=2,e.Write=3})(ma||(ma={}));(function(e){function t(n,r){let i={range:n};return p.number(r)&&(i.kind=r),i}e.create=t})(ga||(ga={}));(function(e){e.File=1,e.Module=2,e.Namespace=3,e.Package=4,e.Class=5,e.Method=6,e.Property=7,e.Field=8,e.Constructor=9,e.Enum=10,e.Interface=11,e.Function=12,e.Variable=13,e.Constant=14,e.String=15,e.Number=16,e.Boolean=17,e.Array=18,e.Object=19,e.Key=20,e.Null=21,e.EnumMember=22,e.Struct=23,e.Event=24,e.Operator=25,e.TypeParameter=26})(ba||(ba={}));(function(e){e.Deprecated=1})(va||(va={}));(function(e){function t(n,r,i,o,s){let a={name:n,kind:r,location:{uri:o,range:i}};return s&&(a.containerName=s),a}e.create=t})(xa||(xa={}));(function(e){function t(n,r,i,o){return o!==void 0?{name:n,kind:r,location:{uri:i,range:o}}:{name:n,kind:r,location:{uri:i}}}e.create=t})(ya||(ya={}));(function(e){function t(r,i,o,s,a,l){let u={name:r,detail:i,kind:o,range:s,selectionRange:a};return l!==void 0&&(u.children=l),u}e.create=t;function n(r){let i=r;return i&&p.string(i.name)&&p.number(i.kind)&&Z.is(i.range)&&Z.is(i.selectionRange)&&(i.detail===void 0||p.string(i.detail))&&(i.deprecated===void 0||p.boolean(i.deprecated))&&(i.children===void 0||Array.isArray(i.children))&&(i.tags===void 0||Array.isArray(i.tags))}e.is=n})(wa||(wa={}));(function(e){e.Empty="",e.QuickFix="quickfix",e.Refactor="refactor",e.RefactorExtract="refactor.extract",e.RefactorInline="refactor.inline",e.RefactorRewrite="refactor.rewrite",e.Source="source",e.SourceOrganizeImports="source.organizeImports",e.SourceFixAll="source.fixAll"})(ka||(ka={}));(function(e){e.Invoked=1,e.Automatic=2})(yn||(yn={}));(function(e){function t(r,i,o){let s={diagnostics:r};return i!=null&&(s.only=i),o!=null&&(s.triggerKind=o),s}e.create=t;function n(r){let i=r;return p.defined(i)&&p.typedArray(i.diagnostics,bn.is)&&(i.only===void 0||p.typedArray(i.only,p.string))&&(i.triggerKind===void 0||i.triggerKind===yn.Invoked||i.triggerKind===yn.Automatic)}e.is=n})(Sa||(Sa={}));(function(e){function t(r,i,o){let s={title:r},a=!0;return typeof i=="string"?(a=!1,s.kind=i):it.is(i)?s.command=i:s.edit=i,a&&o!==void 0&&(s.kind=o),s}e.create=t;function n(r){let i=r;return i&&p.string(i.title)&&(i.diagnostics===void 0||p.typedArray(i.diagnostics,bn.is))&&(i.kind===void 0||p.string(i.kind))&&(i.edit!==void 0||i.command!==void 0)&&(i.command===void 0||it.is(i.command))&&(i.isPreferred===void 0||p.boolean(i.isPreferred))&&(i.edit===void 0||pi.is(i.edit))}e.is=n})(Ta||(Ta={}));(function(e){function t(r,i){let o={range:r};return p.defined(i)&&(o.data=i),o}e.create=t;function n(r){let i=r;return p.defined(i)&&Z.is(i.range)&&(p.undefined(i.command)||it.is(i.command))}e.is=n})(Ea||(Ea={}));(function(e){function t(r,i){return{tabSize:r,insertSpaces:i}}e.create=t;function n(r){let i=r;return p.defined(i)&&p.uinteger(i.tabSize)&&p.boolean(i.insertSpaces)}e.is=n})(Aa||(Aa={}));(function(e){function t(r,i,o){return{range:r,target:i,data:o}}e.create=t;function n(r){let i=r;return p.defined(i)&&Z.is(i.range)&&(p.undefined(i.target)||p.string(i.target))}e.is=n})(Ca||(Ca={}));(function(e){function t(r,i){return{range:r,parent:i}}e.create=t;function n(r){let i=r;return p.objectLiteral(i)&&Z.is(i.range)&&(i.parent===void 0||e.is(i.parent))}e.is=n})(Na||(Na={}));(function(e){e.namespace="namespace",e.type="type",e.class="class",e.enum="enum",e.interface="interface",e.struct="struct",e.typeParameter="typeParameter",e.parameter="parameter",e.variable="variable",e.property="property",e.enumMember="enumMember",e.event="event",e.function="function",e.method="method",e.macro="macro",e.keyword="keyword",e.modifier="modifier",e.comment="comment",e.string="string",e.number="number",e.regexp="regexp",e.operator="operator",e.decorator="decorator"})(Ia||(Ia={}));(function(e){e.declaration="declaration",e.definition="definition",e.readonly="readonly",e.static="static",e.deprecated="deprecated",e.abstract="abstract",e.async="async",e.modification="modification",e.documentation="documentation",e.defaultLibrary="defaultLibrary"})(Pa||(Pa={}));(function(e){function t(n){let r=n;return p.objectLiteral(r)&&(r.resultId===void 0||typeof r.resultId=="string")&&Array.isArray(r.data)&&(r.data.length===0||typeof r.data[0]=="number")}e.is=t})(Oa||(Oa={}));(function(e){function t(r,i){return{range:r,text:i}}e.create=t;function n(r){let i=r;return i!=null&&Z.is(i.range)&&p.string(i.text)}e.is=n})($a||($a={}));(function(e){function t(r,i,o){return{range:r,variableName:i,caseSensitiveLookup:o}}e.create=t;function n(r){let i=r;return i!=null&&Z.is(i.range)&&p.boolean(i.caseSensitiveLookup)&&(p.string(i.variableName)||i.variableName===void 0)}e.is=n})(Ra||(Ra={}));(function(e){function t(r,i){return{range:r,expression:i}}e.create=t;function n(r){let i=r;return i!=null&&Z.is(i.range)&&(p.string(i.expression)||i.expression===void 0)}e.is=n})(_a||(_a={}));(function(e){function t(r,i){return{frameId:r,stoppedLocation:i}}e.create=t;function n(r){let i=r;return p.defined(i)&&Z.is(r.stoppedLocation)}e.is=n})(La||(La={}));(function(e){e.Type=1,e.Parameter=2;function t(n){return n===1||n===2}e.is=t})(gi||(gi={}));(function(e){function t(r){return{value:r}}e.create=t;function n(r){let i=r;return p.objectLiteral(i)&&(i.tooltip===void 0||p.string(i.tooltip)||Pt.is(i.tooltip))&&(i.location===void 0||gn.is(i.location))&&(i.command===void 0||it.is(i.command))}e.is=n})(bi||(bi={}));(function(e){function t(r,i,o){let s={position:r,label:i};return o!==void 0&&(s.kind=o),s}e.create=t;function n(r){let i=r;return p.objectLiteral(i)&&be.is(i.position)&&(p.string(i.label)||p.typedArray(i.label,bi.is))&&(i.kind===void 0||gi.is(i.kind))&&i.textEdits===void 0||p.typedArray(i.textEdits,ke.is)&&(i.tooltip===void 0||p.string(i.tooltip)||Pt.is(i.tooltip))&&(i.paddingLeft===void 0||p.boolean(i.paddingLeft))&&(i.paddingRight===void 0||p.boolean(i.paddingRight))}e.is=n})(ja||(ja={}));(function(e){function t(n){return{kind:"snippet",value:n}}e.createSnippet=t})(Fa||(Fa={}));(function(e){function t(n,r,i,o){return{insertText:n,filterText:r,range:i,command:o}}e.create=t})(za||(za={}));(function(e){function t(n){return{items:n}}e.create=t})(Da||(Da={}));(function(e){e.Invoked=0,e.Automatic=1})(Ua||(Ua={}));(function(e){function t(n,r){return{range:n,text:r}}e.create=t})(Ba||(Ba={}));(function(e){function t(n,r){return{triggerKind:n,selectedCompletionInfo:r}}e.create=t})(Ma||(Ma={}));(function(e){function t(n){let r=n;return p.objectLiteral(r)&&oi.is(r.uri)&&p.string(r.name)}e.is=t})(qa||(qa={}));(function(e){function t(o,s,a,l){return new vi(o,s,a,l)}e.create=t;function n(o){let s=o;return!!(p.defined(s)&&p.string(s.uri)&&(p.undefined(s.languageId)||p.string(s.languageId))&&p.uinteger(s.lineCount)&&p.func(s.getText)&&p.func(s.positionAt)&&p.func(s.offsetAt))}e.is=n;function r(o,s){let a=o.getText(),l=i(s,(c,f)=>{let h=c.range.start.line-f.range.start.line;return h===0?c.range.start.character-f.range.start.character:h}),u=a.length;for(let c=l.length-1;c>=0;c--){let f=l[c],h=o.offsetAt(f.range.start),d=o.offsetAt(f.range.end);if(d<=u)a=a.substring(0,h)+f.newText+a.substring(d,a.length);else throw new Error("Overlapping edit");u=h}return a}e.applyEdits=r;function i(o,s){if(o.length<=1)return o;let a=o.length/2|0,l=o.slice(0,a),u=o.slice(a);i(l,s),i(u,s);let c=0,f=0,h=0;for(;c<l.length&&f<u.length;)s(l[c],u[f])<=0?o[h++]=l[c++]:o[h++]=u[f++];for(;c<l.length;)o[h++]=l[c++];for(;f<u.length;)o[h++]=u[f++];return o}})(Va||(Va={}));vi=class{constructor(t,n,r,i){this._uri=t,this._languageId=n,this._version=r,this._content=i,this._lineOffsets=void 0}get uri(){return this._uri}get languageId(){return this._languageId}get version(){return this._version}getText(t){if(t){let n=this.offsetAt(t.start),r=this.offsetAt(t.end);return this._content.substring(n,r)}return this._content}update(t,n){this._content=t.text,this._version=n,this._lineOffsets=void 0}getLineOffsets(){if(this._lineOffsets===void 0){let t=[],n=this._content,r=!0;for(let i=0;i<n.length;i++){r&&(t.push(i),r=!1);let o=n.charAt(i);r=o==="\r"||o===` `,o==="\r"&&i+1<n.length&&n.charAt(i+1)===` `&&i++}r&&n.length>0&&t.push(n.length),this._lineOffsets=t}return this._lineOffsets}positionAt(t){t=Math.max(Math.min(t,this._content.length),0);let n=this.getLineOffsets(),r=0,i=n.length;if(i===0)return be.create(0,t);for(;r<i;){let s=Math.floor((r+i)/2);n[s]>t?i=s:r=s+1}let o=r-1;return be.create(o,t-n[o])}offsetAt(t){let n=this.getLineOffsets();if(t.line>=n.length)return this._content.length;if(t.line<0)return 0;let r=n[t.line],i=t.line+1<n.length?n[t.line+1]:this._content.length;return Math.max(Math.min(r+t.character,i),r)}get lineCount(){return this.getLineOffsets().length}};(function(e){let t=Object.prototype.toString;function n(d){return typeof d<"u"}e.defined=n;function r(d){return typeof d>"u"}e.undefined=r;function i(d){return d===!0||d===!1}e.boolean=i;function o(d){return t.call(d)==="[object String]"}e.string=o;function s(d){return t.call(d)==="[o