@vtj/designer 0.9.24 → 0.9.26

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2,20 +2,20 @@ const i = `var Of=Object.defineProperty;var Wf=(_t,Xe,We)=>Xe in _t?Of(_t,Xe,{en
2
2
 
3
3
  \`+t.stack):new Error(t.message+\`
4
4
 
5
- \`+t.stack):t},0)}}emit(t){this.listeners.forEach(n=>{n(t)})}onUnexpectedError(t){this.unexpectedErrorHandler(t),this.emit(t)}onUnexpectedExternalError(t){this.unexpectedErrorHandler(t)}}const Xe=new _t;function We(e){wh(e)||Xe.onUnexpectedError(e)}function Vs(e){if(e instanceof Error){const{name:t,message:n}=e,r=e.stacktrace||e.stack;return{$isError:!0,name:t,message:n,stack:r,noTelemetry:Lt.isErrorNoTelemetry(e)}}return e}const Ur="Canceled";function wh(e){return e instanceof yh?!0:e instanceof Error&&e.name===Ur&&e.message===Ur}class yh extends Error{constructor(){super(Ur),this.name=this.message}}class Lt extends Error{constructor(t){super(t),this.name="CodeExpectedError"}static fromError(t){if(t instanceof Lt)return t;const n=new Lt;return n.message=t.message,n.stack=t.stack,n}static isErrorNoTelemetry(t){return t.name==="CodeExpectedError"}}class ke extends Error{constructor(t){super(t||"An unexpected bug occurred."),Object.setPrototypeOf(this,ke.prototype)}}function xh(e,t){const n=this;let r=!1,i;return function(){return r||(r=!0,i=e.apply(n,arguments)),i}}var On;(function(e){function t(E){return E&&typeof E=="object"&&typeof E[Symbol.iterator]=="function"}e.is=t;const n=Object.freeze([]);function r(){return n}e.empty=r;function*i(E){yield E}e.single=i;function s(E){return t(E)?E:i(E)}e.wrap=s;function a(E){return E||n}e.from=a;function*l(E){for(let F=E.length-1;F>=0;F--)yield E[F]}e.reverse=l;function o(E){return!E||E[Symbol.iterator]().next().done===!0}e.isEmpty=o;function c(E){return E[Symbol.iterator]().next().value}e.first=c;function d(E,F){let M=0;for(const T of E)if(F(T,M++))return!0;return!1}e.some=d;function u(E,F){for(const M of E)if(F(M))return M}e.find=u;function*f(E,F){for(const M of E)F(M)&&(yield M)}e.filter=f;function*m(E,F){let M=0;for(const T of E)yield F(T,M++)}e.map=m;function*v(E,F){let M=0;for(const T of E)yield*F(T,M++)}e.flatMap=v;function*w(...E){for(const F of E)yield*F}e.concat=w;function k(E,F,M){let T=M;for(const P of E)T=F(T,P);return T}e.reduce=k;function*R(E,F,M=E.length){for(F<0&&(F+=E.length),M<0?M+=E.length:M>E.length&&(M=E.length);F<M;F++)yield E[F]}e.slice=R;function I(E,F=Number.POSITIVE_INFINITY){const M=[];if(F===0)return[M,E];const T=E[Symbol.iterator]();for(let P=0;P<F;P++){const j=T.next();if(j.done)return[M,e.empty()];M.push(j.value)}return[M,{[Symbol.iterator](){return T}}]}e.consume=I;async function N(E){const F=[];for await(const M of E)F.push(M);return Promise.resolve(F)}e.asyncToArray=N})(On||(On={}));function Uf(e){return e}function Vf(e,t){}function $s(e){if(On.is(e)){const t=[];for(const n of e)if(n)try{n.dispose()}catch(r){t.push(r)}if(t.length===1)throw t[0];if(t.length>1)throw new AggregateError(t,"Encountered errors while disposing of store");return Array.isArray(e)?[]:e}else if(e)return e.dispose(),e}function Sh(...e){return Wn(()=>$s(e))}function Wn(e){return{dispose:xh(()=>{e()})}}const Dr=class Dr{constructor(){this._toDispose=new Set,this._isDisposed=!1}dispose(){this._isDisposed||(this._isDisposed=!0,this.clear())}get isDisposed(){return this._isDisposed}clear(){if(this._toDispose.size!==0)try{$s(this._toDispose)}finally{this._toDispose.clear()}}add(t){if(!t)return t;if(t===this)throw new Error("Cannot register a disposable on itself!");return this._isDisposed?Dr.DISABLE_DISPOSED_WARNING||console.warn(new Error("Trying to add a disposable to a DisposableStore that has already been disposed of. The added object will be leaked!").stack):this._toDispose.add(t),t}deleteAndLeak(t){t&&this._toDispose.has(t)&&this._toDispose.delete(t)}};Dr.DISABLE_DISPOSED_WARNING=!1;let on=Dr;const Ps=class Ps{constructor(){this._store=new on,this._store}dispose(){this._store.dispose()}_register(t){if(t===this)throw new Error("Cannot register a disposable on itself!");return this._store.add(t)}};Ps.None=Object.freeze({dispose(){}});let zt=Ps,oe=(ct=class{constructor(t){this.element=t,this.next=ct.Undefined,this.prev=ct.Undefined}},ct.Undefined=new ct(void 0),ct);class Ch{constructor(){this._first=oe.Undefined,this._last=oe.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===oe.Undefined}clear(){let t=this._first;for(;t!==oe.Undefined;){const n=t.next;t.prev=oe.Undefined,t.next=oe.Undefined,t=n}this._first=oe.Undefined,this._last=oe.Undefined,this._size=0}unshift(t){return this._insert(t,!1)}push(t){return this._insert(t,!0)}_insert(t,n){const r=new oe(t);if(this._first===oe.Undefined)this._first=r,this._last=r;else if(n){const s=this._last;this._last=r,r.prev=s,s.next=r}else{const s=this._first;this._first=r,r.next=s,s.prev=r}this._size+=1;let i=!1;return()=>{i||(i=!0,this._remove(r))}}shift(){if(this._first!==oe.Undefined){const t=this._first.element;return this._remove(this._first),t}}pop(){if(this._last!==oe.Undefined){const t=this._last.element;return this._remove(this._last),t}}_remove(t){if(t.prev!==oe.Undefined&&t.next!==oe.Undefined){const n=t.prev;n.next=t.next,t.next.prev=n}else t.prev===oe.Undefined&&t.next===oe.Undefined?(this._first=oe.Undefined,this._last=oe.Undefined):t.next===oe.Undefined?(this._last=this._last.prev,this._last.next=oe.Undefined):t.prev===oe.Undefined&&(this._first=this._first.next,this._first.prev=oe.Undefined);this._size-=1}*[Symbol.iterator](){let t=this._first;for(;t!==oe.Undefined;)yield t.element,t=t.next}}const _h=globalThis.performance&&typeof globalThis.performance.now=="function";class Un{static create(t){return new Un(t)}constructor(t){this._now=_h&&t===!1?Date.now:globalThis.performance.now.bind(globalThis.performance),this._startTime=this._now(),this._stopTime=-1}stop(){this._stopTime=this._now()}reset(){this._startTime=this._now(),this._stopTime=-1}elapsed(){return this._stopTime!==-1?this._stopTime-this._startTime:this._now()-this._startTime}}var Vn;(function(e){e.None=()=>zt.None;function t(C,S){return f(C,()=>{},0,void 0,!0,void 0,S)}e.defer=t;function n(C){return(S,z=null,D)=>{let L=!1,U;return U=C(B=>{if(!L)return U?U.dispose():L=!0,S.call(z,B)},null,D),L&&U.dispose(),U}}e.once=n;function r(C,S){return e.once(e.filter(C,S))}e.onceIf=r;function i(C,S,z){return d((D,L=null,U)=>C(B=>D.call(L,S(B)),null,U),z)}e.map=i;function s(C,S,z){return d((D,L=null,U)=>C(B=>{S(B),D.call(L,B)},null,U),z)}e.forEach=s;function a(C,S,z){return d((D,L=null,U)=>C(B=>S(B)&&D.call(L,B),null,U),z)}e.filter=a;function l(C){return C}e.signal=l;function o(...C){return(S,z=null,D)=>{const L=Sh(...C.map(U=>U(B=>S.call(z,B))));return u(L,D)}}e.any=o;function c(C,S,z,D){let L=z;return i(C,U=>(L=S(L,U),L),D)}e.reduce=c;function d(C,S){let z;const D={onWillAddFirstListener(){z=C(L.fire,L)},onDidRemoveLastListener(){z?.dispose()}},L=new De(D);return S?.add(L),L.event}function u(C,S){return S instanceof Array?S.push(C):S&&S.add(C),C}function f(C,S,z=100,D=!1,L=!1,U,B){let q,ae,St,It=0,At;const Ts={leakWarningThreshold:U,onWillAddFirstListener(){q=C(Pf=>{It++,ae=S(ae,Pf),D&&!St&&(Tr.fire(ae),ae=void 0),At=()=>{const Tf=ae;ae=void 0,St=void 0,(!D||It>1)&&Tr.fire(Tf),It=0},typeof z=="number"?(clearTimeout(St),St=setTimeout(At,z)):St===void 0&&(St=0,queueMicrotask(At))})},onWillRemoveListener(){L&&It>0&&At?.()},onDidRemoveLastListener(){At=void 0,q.dispose()}},Tr=new De(Ts);return B?.add(Tr),Tr.event}e.debounce=f;function m(C,S=0,z){return e.debounce(C,(D,L)=>D?(D.push(L),D):[L],S,void 0,!0,void 0,z)}e.accumulate=m;function v(C,S=(D,L)=>D===L,z){let D=!0,L;return a(C,U=>{const B=D||!S(U,L);return D=!1,L=U,B},z)}e.latch=v;function w(C,S,z){return[e.filter(C,S,z),e.filter(C,D=>!S(D),z)]}e.split=w;function k(C,S=!1,z=[],D){let L=z.slice(),U=C(ae=>{L?L.push(ae):q.fire(ae)});D&&D.add(U);const B=()=>{L?.forEach(ae=>q.fire(ae)),L=null},q=new De({onWillAddFirstListener(){U||(U=C(ae=>q.fire(ae)),D&&D.add(U))},onDidAddFirstListener(){L&&(S?setTimeout(B):B())},onDidRemoveLastListener(){U&&U.dispose(),U=null}});return D&&D.add(q),q.event}e.buffer=k;function R(C,S){return(D,L,U)=>{const B=S(new N);return C(function(q){const ae=B.evaluate(q);ae!==I&&D.call(L,ae)},void 0,U)}}e.chain=R;const I=Symbol("HaltChainable");class N{constructor(){this.steps=[]}map(S){return this.steps.push(S),this}forEach(S){return this.steps.push(z=>(S(z),z)),this}filter(S){return this.steps.push(z=>S(z)?z:I),this}reduce(S,z){let D=z;return this.steps.push(L=>(D=S(D,L),D)),this}latch(S=(z,D)=>z===D){let z=!0,D;return this.steps.push(L=>{const U=z||!S(L,D);return z=!1,D=L,U?L:I}),this}evaluate(S){for(const z of this.steps)if(S=z(S),S===I)break;return S}}function E(C,S,z=D=>D){const D=(...q)=>B.fire(z(...q)),L=()=>C.on(S,D),U=()=>C.removeListener(S,D),B=new De({onWillAddFirstListener:L,onDidRemoveLastListener:U});return B.event}e.fromNodeEventEmitter=E;function F(C,S,z=D=>D){const D=(...q)=>B.fire(z(...q)),L=()=>C.addEventListener(S,D),U=()=>C.removeEventListener(S,D),B=new De({onWillAddFirstListener:L,onDidRemoveLastListener:U});return B.event}e.fromDOMEventEmitter=F;function M(C){return new Promise(S=>n(C)(S))}e.toPromise=M;function T(C){const S=new De;return C.then(z=>{S.fire(z)},()=>{S.fire(void 0)}).finally(()=>{S.dispose()}),S.event}e.fromPromise=T;function P(C,S){return C(z=>S.fire(z))}e.forward=P;function j(C,S,z){return S(z),C(D=>S(D))}e.runAndSubscribe=j;class ee{constructor(S,z){this._observable=S,this._counter=0,this._hasChanged=!1;const D={onWillAddFirstListener:()=>{S.addObserver(this),this._observable.reportChanges()},onDidRemoveLastListener:()=>{S.removeObserver(this)}};this.emitter=new De(D),z&&z.add(this.emitter)}beginUpdate(S){this._counter++}handlePossibleChange(S){}handleChange(S,z){this._hasChanged=!0}endUpdate(S){this._counter--,this._counter===0&&(this._observable.reportChanges(),this._hasChanged&&(this._hasChanged=!1,this.emitter.fire(this._observable.get())))}}function A(C,S){return new ee(C,S).emitter.event}e.fromObservable=A;function _(C){return(S,z,D)=>{let L=0,U=!1;const B={beginUpdate(){L++},endUpdate(){L--,L===0&&(C.reportChanges(),U&&(U=!1,S.call(z)))},handlePossibleChange(){},handleChange(){U=!0}};C.addObserver(B),C.reportChanges();const q={dispose(){C.removeObserver(B)}};return D instanceof on?D.add(q):Array.isArray(D)&&D.push(q),q}}e.fromObservableLight=_})(Vn||(Vn={}));const nn=class nn{constructor(t){this.listenerCount=0,this.invocationCount=0,this.elapsedOverall=0,this.durations=[],this.name=\`\${t}_\${nn._idPool++}\`,nn.all.add(this)}start(t){this._stopWatch=new Un,this.listenerCount=t}stop(){if(this._stopWatch){const t=this._stopWatch.elapsed();this.durations.push(t),this.elapsedOverall+=t,this.invocationCount+=1,this._stopWatch=void 0}}};nn.all=new Set,nn._idPool=0;let Vr=nn,kh=-1;const Ir=class Ir{constructor(t,n,r=(Ir._idPool++).toString(16).padStart(3,"0")){this._errorHandler=t,this.threshold=n,this.name=r,this._warnCountdown=0}dispose(){this._stacks?.clear()}check(t,n){const r=this.threshold;if(r<=0||n<r)return;this._stacks||(this._stacks=new Map);const i=this._stacks.get(t.value)||0;if(this._stacks.set(t.value,i+1),this._warnCountdown-=1,this._warnCountdown<=0){this._warnCountdown=r*.5;const[s,a]=this.getMostFrequentStack(),l=\`[\${this.name}] potential listener LEAK detected, having \${n} listeners already. MOST frequent listener (\${a}):\`;console.warn(l),console.warn(s);const o=new Eh(l,s);this._errorHandler(o)}return()=>{const s=this._stacks.get(t.value)||0;this._stacks.set(t.value,s-1)}}getMostFrequentStack(){if(!this._stacks)return;let t,n=0;for(const[r,i]of this._stacks)(!t||n<i)&&(t=[r,i],n=i);return t}};Ir._idPool=1;let $r=Ir;class Br{static create(){const t=new Error;return new Br(t.stack??"")}constructor(t){this.value=t}print(){console.warn(this.value.split(\`
5
+ \`+t.stack):t},0)}}emit(t){this.listeners.forEach(n=>{n(t)})}onUnexpectedError(t){this.unexpectedErrorHandler(t),this.emit(t)}onUnexpectedExternalError(t){this.unexpectedErrorHandler(t)}}const Xe=new _t;function We(e){wh(e)||Xe.onUnexpectedError(e)}function Vs(e){if(e instanceof Error){const{name:t,message:n}=e,r=e.stacktrace||e.stack;return{$isError:!0,name:t,message:n,stack:r,noTelemetry:Lt.isErrorNoTelemetry(e)}}return e}const Vr="Canceled";function wh(e){return e instanceof yh?!0:e instanceof Error&&e.name===Vr&&e.message===Vr}class yh extends Error{constructor(){super(Vr),this.name=this.message}}class Lt extends Error{constructor(t){super(t),this.name="CodeExpectedError"}static fromError(t){if(t instanceof Lt)return t;const n=new Lt;return n.message=t.message,n.stack=t.stack,n}static isErrorNoTelemetry(t){return t.name==="CodeExpectedError"}}class ke extends Error{constructor(t){super(t||"An unexpected bug occurred."),Object.setPrototypeOf(this,ke.prototype)}}function xh(e,t){const n=this;let r=!1,i;return function(){return r||(r=!0,i=e.apply(n,arguments)),i}}var On;(function(e){function t(E){return E&&typeof E=="object"&&typeof E[Symbol.iterator]=="function"}e.is=t;const n=Object.freeze([]);function r(){return n}e.empty=r;function*i(E){yield E}e.single=i;function s(E){return t(E)?E:i(E)}e.wrap=s;function a(E){return E||n}e.from=a;function*l(E){for(let F=E.length-1;F>=0;F--)yield E[F]}e.reverse=l;function o(E){return!E||E[Symbol.iterator]().next().done===!0}e.isEmpty=o;function c(E){return E[Symbol.iterator]().next().value}e.first=c;function d(E,F){let M=0;for(const T of E)if(F(T,M++))return!0;return!1}e.some=d;function u(E,F){for(const M of E)if(F(M))return M}e.find=u;function*f(E,F){for(const M of E)F(M)&&(yield M)}e.filter=f;function*m(E,F){let M=0;for(const T of E)yield F(T,M++)}e.map=m;function*v(E,F){let M=0;for(const T of E)yield*F(T,M++)}e.flatMap=v;function*w(...E){for(const F of E)yield*F}e.concat=w;function k(E,F,M){let T=M;for(const P of E)T=F(T,P);return T}e.reduce=k;function*R(E,F,M=E.length){for(F<0&&(F+=E.length),M<0?M+=E.length:M>E.length&&(M=E.length);F<M;F++)yield E[F]}e.slice=R;function I(E,F=Number.POSITIVE_INFINITY){const M=[];if(F===0)return[M,E];const T=E[Symbol.iterator]();for(let P=0;P<F;P++){const j=T.next();if(j.done)return[M,e.empty()];M.push(j.value)}return[M,{[Symbol.iterator](){return T}}]}e.consume=I;async function N(E){const F=[];for await(const M of E)F.push(M);return Promise.resolve(F)}e.asyncToArray=N})(On||(On={}));function Uf(e){return e}function Vf(e,t){}function $s(e){if(On.is(e)){const t=[];for(const n of e)if(n)try{n.dispose()}catch(r){t.push(r)}if(t.length===1)throw t[0];if(t.length>1)throw new AggregateError(t,"Encountered errors while disposing of store");return Array.isArray(e)?[]:e}else if(e)return e.dispose(),e}function Sh(...e){return Wn(()=>$s(e))}function Wn(e){return{dispose:xh(()=>{e()})}}const Ir=class Ir{constructor(){this._toDispose=new Set,this._isDisposed=!1}dispose(){this._isDisposed||(this._isDisposed=!0,this.clear())}get isDisposed(){return this._isDisposed}clear(){if(this._toDispose.size!==0)try{$s(this._toDispose)}finally{this._toDispose.clear()}}add(t){if(!t)return t;if(t===this)throw new Error("Cannot register a disposable on itself!");return this._isDisposed?Ir.DISABLE_DISPOSED_WARNING||console.warn(new Error("Trying to add a disposable to a DisposableStore that has already been disposed of. The added object will be leaked!").stack):this._toDispose.add(t),t}deleteAndLeak(t){t&&this._toDispose.has(t)&&this._toDispose.delete(t)}};Ir.DISABLE_DISPOSED_WARNING=!1;let on=Ir;const Ps=class Ps{constructor(){this._store=new on,this._store}dispose(){this._store.dispose()}_register(t){if(t===this)throw new Error("Cannot register a disposable on itself!");return this._store.add(t)}};Ps.None=Object.freeze({dispose(){}});let zt=Ps,oe=(ct=class{constructor(t){this.element=t,this.next=ct.Undefined,this.prev=ct.Undefined}},ct.Undefined=new ct(void 0),ct);class Ch{constructor(){this._first=oe.Undefined,this._last=oe.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===oe.Undefined}clear(){let t=this._first;for(;t!==oe.Undefined;){const n=t.next;t.prev=oe.Undefined,t.next=oe.Undefined,t=n}this._first=oe.Undefined,this._last=oe.Undefined,this._size=0}unshift(t){return this._insert(t,!1)}push(t){return this._insert(t,!0)}_insert(t,n){const r=new oe(t);if(this._first===oe.Undefined)this._first=r,this._last=r;else if(n){const s=this._last;this._last=r,r.prev=s,s.next=r}else{const s=this._first;this._first=r,r.next=s,s.prev=r}this._size+=1;let i=!1;return()=>{i||(i=!0,this._remove(r))}}shift(){if(this._first!==oe.Undefined){const t=this._first.element;return this._remove(this._first),t}}pop(){if(this._last!==oe.Undefined){const t=this._last.element;return this._remove(this._last),t}}_remove(t){if(t.prev!==oe.Undefined&&t.next!==oe.Undefined){const n=t.prev;n.next=t.next,t.next.prev=n}else t.prev===oe.Undefined&&t.next===oe.Undefined?(this._first=oe.Undefined,this._last=oe.Undefined):t.next===oe.Undefined?(this._last=this._last.prev,this._last.next=oe.Undefined):t.prev===oe.Undefined&&(this._first=this._first.next,this._first.prev=oe.Undefined);this._size-=1}*[Symbol.iterator](){let t=this._first;for(;t!==oe.Undefined;)yield t.element,t=t.next}}const _h=globalThis.performance&&typeof globalThis.performance.now=="function";class Un{static create(t){return new Un(t)}constructor(t){this._now=_h&&t===!1?Date.now:globalThis.performance.now.bind(globalThis.performance),this._startTime=this._now(),this._stopTime=-1}stop(){this._stopTime=this._now()}reset(){this._startTime=this._now(),this._stopTime=-1}elapsed(){return this._stopTime!==-1?this._stopTime-this._startTime:this._now()-this._startTime}}var Vn;(function(e){e.None=()=>zt.None;function t(C,S){return f(C,()=>{},0,void 0,!0,void 0,S)}e.defer=t;function n(C){return(S,z=null,D)=>{let L=!1,U;return U=C(B=>{if(!L)return U?U.dispose():L=!0,S.call(z,B)},null,D),L&&U.dispose(),U}}e.once=n;function r(C,S){return e.once(e.filter(C,S))}e.onceIf=r;function i(C,S,z){return d((D,L=null,U)=>C(B=>D.call(L,S(B)),null,U),z)}e.map=i;function s(C,S,z){return d((D,L=null,U)=>C(B=>{S(B),D.call(L,B)},null,U),z)}e.forEach=s;function a(C,S,z){return d((D,L=null,U)=>C(B=>S(B)&&D.call(L,B),null,U),z)}e.filter=a;function l(C){return C}e.signal=l;function o(...C){return(S,z=null,D)=>{const L=Sh(...C.map(U=>U(B=>S.call(z,B))));return u(L,D)}}e.any=o;function c(C,S,z,D){let L=z;return i(C,U=>(L=S(L,U),L),D)}e.reduce=c;function d(C,S){let z;const D={onWillAddFirstListener(){z=C(L.fire,L)},onDidRemoveLastListener(){z?.dispose()}},L=new De(D);return S?.add(L),L.event}function u(C,S){return S instanceof Array?S.push(C):S&&S.add(C),C}function f(C,S,z=100,D=!1,L=!1,U,B){let q,ae,St,It=0,At;const Ts={leakWarningThreshold:U,onWillAddFirstListener(){q=C(Pf=>{It++,ae=S(ae,Pf),D&&!St&&(Or.fire(ae),ae=void 0),At=()=>{const Tf=ae;ae=void 0,St=void 0,(!D||It>1)&&Or.fire(Tf),It=0},typeof z=="number"?(clearTimeout(St),St=setTimeout(At,z)):St===void 0&&(St=0,queueMicrotask(At))})},onWillRemoveListener(){L&&It>0&&At?.()},onDidRemoveLastListener(){At=void 0,q.dispose()}},Or=new De(Ts);return B?.add(Or),Or.event}e.debounce=f;function m(C,S=0,z){return e.debounce(C,(D,L)=>D?(D.push(L),D):[L],S,void 0,!0,void 0,z)}e.accumulate=m;function v(C,S=(D,L)=>D===L,z){let D=!0,L;return a(C,U=>{const B=D||!S(U,L);return D=!1,L=U,B},z)}e.latch=v;function w(C,S,z){return[e.filter(C,S,z),e.filter(C,D=>!S(D),z)]}e.split=w;function k(C,S=!1,z=[],D){let L=z.slice(),U=C(ae=>{L?L.push(ae):q.fire(ae)});D&&D.add(U);const B=()=>{L?.forEach(ae=>q.fire(ae)),L=null},q=new De({onWillAddFirstListener(){U||(U=C(ae=>q.fire(ae)),D&&D.add(U))},onDidAddFirstListener(){L&&(S?setTimeout(B):B())},onDidRemoveLastListener(){U&&U.dispose(),U=null}});return D&&D.add(q),q.event}e.buffer=k;function R(C,S){return(D,L,U)=>{const B=S(new N);return C(function(q){const ae=B.evaluate(q);ae!==I&&D.call(L,ae)},void 0,U)}}e.chain=R;const I=Symbol("HaltChainable");class N{constructor(){this.steps=[]}map(S){return this.steps.push(S),this}forEach(S){return this.steps.push(z=>(S(z),z)),this}filter(S){return this.steps.push(z=>S(z)?z:I),this}reduce(S,z){let D=z;return this.steps.push(L=>(D=S(D,L),D)),this}latch(S=(z,D)=>z===D){let z=!0,D;return this.steps.push(L=>{const U=z||!S(L,D);return z=!1,D=L,U?L:I}),this}evaluate(S){for(const z of this.steps)if(S=z(S),S===I)break;return S}}function E(C,S,z=D=>D){const D=(...q)=>B.fire(z(...q)),L=()=>C.on(S,D),U=()=>C.removeListener(S,D),B=new De({onWillAddFirstListener:L,onDidRemoveLastListener:U});return B.event}e.fromNodeEventEmitter=E;function F(C,S,z=D=>D){const D=(...q)=>B.fire(z(...q)),L=()=>C.addEventListener(S,D),U=()=>C.removeEventListener(S,D),B=new De({onWillAddFirstListener:L,onDidRemoveLastListener:U});return B.event}e.fromDOMEventEmitter=F;function M(C){return new Promise(S=>n(C)(S))}e.toPromise=M;function T(C){const S=new De;return C.then(z=>{S.fire(z)},()=>{S.fire(void 0)}).finally(()=>{S.dispose()}),S.event}e.fromPromise=T;function P(C,S){return C(z=>S.fire(z))}e.forward=P;function j(C,S,z){return S(z),C(D=>S(D))}e.runAndSubscribe=j;class ee{constructor(S,z){this._observable=S,this._counter=0,this._hasChanged=!1;const D={onWillAddFirstListener:()=>{S.addObserver(this),this._observable.reportChanges()},onDidRemoveLastListener:()=>{S.removeObserver(this)}};this.emitter=new De(D),z&&z.add(this.emitter)}beginUpdate(S){this._counter++}handlePossibleChange(S){}handleChange(S,z){this._hasChanged=!0}endUpdate(S){this._counter--,this._counter===0&&(this._observable.reportChanges(),this._hasChanged&&(this._hasChanged=!1,this.emitter.fire(this._observable.get())))}}function A(C,S){return new ee(C,S).emitter.event}e.fromObservable=A;function _(C){return(S,z,D)=>{let L=0,U=!1;const B={beginUpdate(){L++},endUpdate(){L--,L===0&&(C.reportChanges(),U&&(U=!1,S.call(z)))},handlePossibleChange(){},handleChange(){U=!0}};C.addObserver(B),C.reportChanges();const q={dispose(){C.removeObserver(B)}};return D instanceof on?D.add(q):Array.isArray(D)&&D.push(q),q}}e.fromObservableLight=_})(Vn||(Vn={}));const nn=class nn{constructor(t){this.listenerCount=0,this.invocationCount=0,this.elapsedOverall=0,this.durations=[],this.name=\`\${t}_\${nn._idPool++}\`,nn.all.add(this)}start(t){this._stopWatch=new Un,this.listenerCount=t}stop(){if(this._stopWatch){const t=this._stopWatch.elapsed();this.durations.push(t),this.elapsedOverall+=t,this.invocationCount+=1,this._stopWatch=void 0}}};nn.all=new Set,nn._idPool=0;let $r=nn,kh=-1;const Ar=class Ar{constructor(t,n,r=(Ar._idPool++).toString(16).padStart(3,"0")){this._errorHandler=t,this.threshold=n,this.name=r,this._warnCountdown=0}dispose(){this._stacks?.clear()}check(t,n){const r=this.threshold;if(r<=0||n<r)return;this._stacks||(this._stacks=new Map);const i=this._stacks.get(t.value)||0;if(this._stacks.set(t.value,i+1),this._warnCountdown-=1,this._warnCountdown<=0){this._warnCountdown=r*.5;const[s,a]=this.getMostFrequentStack(),l=\`[\${this.name}] potential listener LEAK detected, having \${n} listeners already. MOST frequent listener (\${a}):\`;console.warn(l),console.warn(s);const o=new Eh(l,s);this._errorHandler(o)}return()=>{const s=this._stacks.get(t.value)||0;this._stacks.set(t.value,s-1)}}getMostFrequentStack(){if(!this._stacks)return;let t,n=0;for(const[r,i]of this._stacks)(!t||n<i)&&(t=[r,i],n=i);return t}};Ar._idPool=1;let Br=Ar;class qr{static create(){const t=new Error;return new qr(t.stack??"")}constructor(t){this.value=t}print(){console.warn(this.value.split(\`
6
6
  \`).slice(2).join(\`
7
- \`))}}class Eh extends Error{constructor(t,n){super(t),this.name="ListenerLeakError",this.stack=n}}class Fh extends Error{constructor(t,n){super(t),this.name="ListenerRefusalError",this.stack=n}}class qr{constructor(t){this.value=t}}const Rh=2;class De{constructor(t){this._size=0,this._options=t,this._leakageMon=this._options?.leakWarningThreshold?new $r(t?.onListenerError??We,this._options?.leakWarningThreshold??kh):void 0,this._perfMon=this._options?._profName?new Vr(this._options._profName):void 0,this._deliveryQueue=this._options?.deliveryQueue}dispose(){this._disposed||(this._disposed=!0,this._deliveryQueue?.current===this&&this._deliveryQueue.reset(),this._listeners&&(this._listeners=void 0,this._size=0),this._options?.onDidRemoveLastListener?.(),this._leakageMon?.dispose())}get event(){return this._event??(this._event=(t,n,r)=>{if(this._leakageMon&&this._size>this._leakageMon.threshold**2){const l=\`[\${this._leakageMon.name}] REFUSES to accept new listeners because it exceeded its threshold by far (\${this._size} vs \${this._leakageMon.threshold})\`;console.warn(l);const o=this._leakageMon.getMostFrequentStack()??["UNKNOWN stack",-1],c=new Fh(\`\${l}. HINT: Stack shows most frequent listener (\${o[1]}-times)\`,o[0]);return(this._options?.onListenerError||We)(c),zt.None}if(this._disposed)return zt.None;n&&(t=t.bind(n));const i=new qr(t);let s;this._leakageMon&&this._size>=Math.ceil(this._leakageMon.threshold*.2)&&(i.stack=Br.create(),s=this._leakageMon.check(i.stack,this._size+1)),this._listeners?this._listeners instanceof qr?(this._deliveryQueue??(this._deliveryQueue=new Nh),this._listeners=[this._listeners,i]):this._listeners.push(i):(this._options?.onWillAddFirstListener?.(this),this._listeners=i,this._options?.onDidAddFirstListener?.(this)),this._size++;const a=Wn(()=>{s?.(),this._removeListener(i)});return r instanceof on?r.add(a):Array.isArray(r)&&r.push(a),a}),this._event}_removeListener(t){if(this._options?.onWillRemoveListener?.(this),!this._listeners)return;if(this._size===1){this._listeners=void 0,this._options?.onDidRemoveLastListener?.(this),this._size=0;return}const n=this._listeners,r=n.indexOf(t);if(r===-1)throw console.log("disposed?",this._disposed),console.log("size?",this._size),console.log("arr?",JSON.stringify(this._listeners)),new Error("Attempted to dispose unknown listener");this._size--,n[r]=void 0;const i=this._deliveryQueue.current===this;if(this._size*Rh<=n.length){let s=0;for(let a=0;a<n.length;a++)n[a]?n[s++]=n[a]:i&&(this._deliveryQueue.end--,s<this._deliveryQueue.i&&this._deliveryQueue.i--);n.length=s}}_deliver(t,n){if(!t)return;const r=this._options?.onListenerError||We;if(!r){t.value(n);return}try{t.value(n)}catch(i){r(i)}}_deliverQueue(t){const n=t.current._listeners;for(;t.i<t.end;)this._deliver(n[t.i++],t.value);t.reset()}fire(t){if(this._deliveryQueue?.current&&(this._deliverQueue(this._deliveryQueue),this._perfMon?.stop()),this._perfMon?.start(this._size),this._listeners)if(this._listeners instanceof qr)this._deliver(this._listeners,t);else{const n=this._deliveryQueue;n.enqueue(this,t,this._listeners.length),this._deliverQueue(n)}this._perfMon?.stop()}hasListeners(){return this._size>0}}class Nh{constructor(){this.i=-1,this.end=0}enqueue(t,n,r){this.i=0,this.end=r,this.current=t,this.value=n}reset(){this.i=this.end,this.current=void 0,this.value=void 0}}function Dh(){return globalThis._VSCODE_NLS_MESSAGES}function Bs(){return globalThis._VSCODE_NLS_LANGUAGE}const Ih=Bs()==="pseudo"||typeof document<"u"&&document.location&&document.location.hash.indexOf("pseudo=true")>=0;function qs(e,t){let n;return t.length===0?n=e:n=e.replace(/\\{(\\d+)\\}/g,(r,i)=>{const s=i[0],a=t[s];let l=r;return typeof a=="string"?l=a:(typeof a=="number"||typeof a=="boolean"||a===void 0||a===null)&&(l=String(a)),l}),Ih&&(n="["+n.replace(/[aouei]/g,"$&$&")+"]"),n}function re(e,t,...n){return qs(typeof e=="number"?Ah(e,t):t,n)}function Ah(e,t){const n=Dh()?.[e];if(typeof n!="string"){if(typeof t=="string")return t;throw new Error(\`!!! NLS MISSING: \${e} !!!\`)}return n}const Pt="en";let jr=!1,Hr=!1,Gr=!1,js=!1,Jr=!1,$n,Xr=Pt,Hs=Pt,Mh,Ye;const Qe=globalThis;let Ee;typeof Qe.vscode<"u"&&typeof Qe.vscode.process<"u"?Ee=Qe.vscode.process:typeof process<"u"&&typeof process?.versions?.node=="string"&&(Ee=process);const Lh=typeof Ee?.versions?.electron=="string"&&Ee?.type==="renderer";if(typeof Ee=="object"){jr=Ee.platform==="win32",Hr=Ee.platform==="darwin",Gr=Ee.platform==="linux",Gr&&Ee.env.SNAP&&Ee.env.SNAP_REVISION,Ee.env.CI||Ee.env.BUILD_ARTIFACTSTAGINGDIRECTORY,$n=Pt,Xr=Pt;const e=Ee.env.VSCODE_NLS_CONFIG;if(e)try{const t=JSON.parse(e);$n=t.userLocale,Hs=t.osLocale,Xr=t.resolvedLanguage||Pt,Mh=t.languagePack?.translationsConfigFile}catch{}js=!0}else typeof navigator=="object"&&!Lh?(Ye=navigator.userAgent,jr=Ye.indexOf("Windows")>=0,Hr=Ye.indexOf("Macintosh")>=0,(Ye.indexOf("Macintosh")>=0||Ye.indexOf("iPad")>=0||Ye.indexOf("iPhone")>=0)&&navigator.maxTouchPoints&&navigator.maxTouchPoints>0,Gr=Ye.indexOf("Linux")>=0,Ye?.indexOf("Mobi")>=0,Jr=!0,Xr=Bs()||Pt,$n=navigator.language.toLowerCase(),Hs=$n):console.error("Unable to resolve platform.");const ln=jr,zh=Hr,Ph=js,Th=Jr,Oh=Jr&&typeof Qe.importScripts=="function"?Qe.origin:void 0,Ue=Ye,Wh=typeof Qe.postMessage=="function"&&!Qe.importScripts;(()=>{if(Wh){const e=[];Qe.addEventListener("message",n=>{if(n.data&&n.data.vscodeScheduleAsyncWork)for(let r=0,i=e.length;r<i;r++){const s=e[r];if(s.id===n.data.vscodeScheduleAsyncWork){e.splice(r,1),s.callback();return}}});let t=0;return n=>{const r=++t;e.push({id:r,callback:n}),Qe.postMessage({vscodeScheduleAsyncWork:r},"*")}}return e=>setTimeout(e)})();const Uh=!!(Ue&&Ue.indexOf("Chrome")>=0);Ue&&Ue.indexOf("Firefox")>=0,!Uh&&Ue&&Ue.indexOf("Safari")>=0,Ue&&Ue.indexOf("Edg/")>=0,Ue&&Ue.indexOf("Android")>=0;function Vh(e){return e}class $h{constructor(t,n){this.lastCache=void 0,this.lastArgKey=void 0,typeof t=="function"?(this._fn=t,this._computeKey=Vh):(this._fn=n,this._computeKey=t.getCacheKey)}get(t){const n=this._computeKey(t);return this.lastArgKey!==n&&(this.lastArgKey=n,this.lastCache=this._fn(t)),this.lastCache}}class Gs{constructor(t){this.executor=t,this._didRun=!1}get value(){if(!this._didRun)try{this._value=this.executor()}catch(t){this._error=t}finally{this._didRun=!0}if(this._error)throw this._error;return this._value}get rawValue(){return this._value}}function Bh(e){return e.replace(/[\\\\\\{\\}\\*\\+\\?\\|\\^\\$\\.\\[\\]\\(\\)]/g,"\\\\$&")}function qh(e){return e.split(/\\r\\n|\\r|\\n/)}function jh(e){for(let t=0,n=e.length;t<n;t++){const r=e.charCodeAt(t);if(r!==32&&r!==9)return t}return-1}function Hh(e,t=e.length-1){for(let n=t;n>=0;n--){const r=e.charCodeAt(n);if(r!==32&&r!==9)return n}return-1}function Js(e){return e>=65&&e<=90}function Bn(e){return 55296<=e&&e<=56319}function Yr(e){return 56320<=e&&e<=57343}function Xs(e,t){return(e-55296<<10)+(t-56320)+65536}function Gh(e,t,n){const r=e.charCodeAt(n);if(Bn(r)&&n+1<t){const i=e.charCodeAt(n+1);if(Yr(i))return Xs(r,i)}return r}const Jh=/^[\\t\\n\\r\\x20-\\x7E]*$/;function Xh(e){return Jh.test(e)}const Ge=class Ge{static getInstance(t){return Ge.cache.get(Array.from(t))}static getLocales(){return Ge._locales.value}constructor(t){this.confusableDictionary=t}isAmbiguous(t){return this.confusableDictionary.has(t)}getPrimaryConfusable(t){return this.confusableDictionary.get(t)}getConfusableCodePoints(){return new Set(this.confusableDictionary.keys())}};Ge.ambiguousCharacterData=new Gs(()=>JSON.parse('{"_common":[8232,32,8233,32,5760,32,8192,32,8193,32,8194,32,8195,32,8196,32,8197,32,8198,32,8200,32,8201,32,8202,32,8287,32,8199,32,8239,32,2042,95,65101,95,65102,95,65103,95,8208,45,8209,45,8210,45,65112,45,1748,45,8259,45,727,45,8722,45,10134,45,11450,45,1549,44,1643,44,8218,44,184,44,42233,44,894,59,2307,58,2691,58,1417,58,1795,58,1796,58,5868,58,65072,58,6147,58,6153,58,8282,58,1475,58,760,58,42889,58,8758,58,720,58,42237,58,451,33,11601,33,660,63,577,63,2429,63,5038,63,42731,63,119149,46,8228,46,1793,46,1794,46,42510,46,68176,46,1632,46,1776,46,42232,46,1373,96,65287,96,8219,96,8242,96,1370,96,1523,96,8175,96,65344,96,900,96,8189,96,8125,96,8127,96,8190,96,697,96,884,96,712,96,714,96,715,96,756,96,699,96,701,96,700,96,702,96,42892,96,1497,96,2036,96,2037,96,5194,96,5836,96,94033,96,94034,96,65339,91,10088,40,10098,40,12308,40,64830,40,65341,93,10089,41,10099,41,12309,41,64831,41,10100,123,119060,123,10101,125,65342,94,8270,42,1645,42,8727,42,66335,42,5941,47,8257,47,8725,47,8260,47,9585,47,10187,47,10744,47,119354,47,12755,47,12339,47,11462,47,20031,47,12035,47,65340,92,65128,92,8726,92,10189,92,10741,92,10745,92,119311,92,119355,92,12756,92,20022,92,12034,92,42872,38,708,94,710,94,5869,43,10133,43,66203,43,8249,60,10094,60,706,60,119350,60,5176,60,5810,60,5120,61,11840,61,12448,61,42239,61,8250,62,10095,62,707,62,119351,62,5171,62,94015,62,8275,126,732,126,8128,126,8764,126,65372,124,65293,45,120784,50,120794,50,120804,50,120814,50,120824,50,130034,50,42842,50,423,50,1000,50,42564,50,5311,50,42735,50,119302,51,120785,51,120795,51,120805,51,120815,51,120825,51,130035,51,42923,51,540,51,439,51,42858,51,11468,51,1248,51,94011,51,71882,51,120786,52,120796,52,120806,52,120816,52,120826,52,130036,52,5070,52,71855,52,120787,53,120797,53,120807,53,120817,53,120827,53,130037,53,444,53,71867,53,120788,54,120798,54,120808,54,120818,54,120828,54,130038,54,11474,54,5102,54,71893,54,119314,55,120789,55,120799,55,120809,55,120819,55,120829,55,130039,55,66770,55,71878,55,2819,56,2538,56,2666,56,125131,56,120790,56,120800,56,120810,56,120820,56,120830,56,130040,56,547,56,546,56,66330,56,2663,57,2920,57,2541,57,3437,57,120791,57,120801,57,120811,57,120821,57,120831,57,130041,57,42862,57,11466,57,71884,57,71852,57,71894,57,9082,97,65345,97,119834,97,119886,97,119938,97,119990,97,120042,97,120094,97,120146,97,120198,97,120250,97,120302,97,120354,97,120406,97,120458,97,593,97,945,97,120514,97,120572,97,120630,97,120688,97,120746,97,65313,65,119808,65,119860,65,119912,65,119964,65,120016,65,120068,65,120120,65,120172,65,120224,65,120276,65,120328,65,120380,65,120432,65,913,65,120488,65,120546,65,120604,65,120662,65,120720,65,5034,65,5573,65,42222,65,94016,65,66208,65,119835,98,119887,98,119939,98,119991,98,120043,98,120095,98,120147,98,120199,98,120251,98,120303,98,120355,98,120407,98,120459,98,388,98,5071,98,5234,98,5551,98,65314,66,8492,66,119809,66,119861,66,119913,66,120017,66,120069,66,120121,66,120173,66,120225,66,120277,66,120329,66,120381,66,120433,66,42932,66,914,66,120489,66,120547,66,120605,66,120663,66,120721,66,5108,66,5623,66,42192,66,66178,66,66209,66,66305,66,65347,99,8573,99,119836,99,119888,99,119940,99,119992,99,120044,99,120096,99,120148,99,120200,99,120252,99,120304,99,120356,99,120408,99,120460,99,7428,99,1010,99,11429,99,43951,99,66621,99,128844,67,71922,67,71913,67,65315,67,8557,67,8450,67,8493,67,119810,67,119862,67,119914,67,119966,67,120018,67,120174,67,120226,67,120278,67,120330,67,120382,67,120434,67,1017,67,11428,67,5087,67,42202,67,66210,67,66306,67,66581,67,66844,67,8574,100,8518,100,119837,100,119889,100,119941,100,119993,100,120045,100,120097,100,120149,100,120201,100,120253,100,120305,100,120357,100,120409,100,120461,100,1281,100,5095,100,5231,100,42194,100,8558,68,8517,68,119811,68,119863,68,119915,68,119967,68,120019,68,120071,68,120123,68,120175,68,120227,68,120279,68,120331,68,120383,68,120435,68,5024,68,5598,68,5610,68,42195,68,8494,101,65349,101,8495,101,8519,101,119838,101,119890,101,119942,101,120046,101,120098,101,120150,101,120202,101,120254,101,120306,101,120358,101,120410,101,120462,101,43826,101,1213,101,8959,69,65317,69,8496,69,119812,69,119864,69,119916,69,120020,69,120072,69,120124,69,120176,69,120228,69,120280,69,120332,69,120384,69,120436,69,917,69,120492,69,120550,69,120608,69,120666,69,120724,69,11577,69,5036,69,42224,69,71846,69,71854,69,66182,69,119839,102,119891,102,119943,102,119995,102,120047,102,120099,102,120151,102,120203,102,120255,102,120307,102,120359,102,120411,102,120463,102,43829,102,42905,102,383,102,7837,102,1412,102,119315,70,8497,70,119813,70,119865,70,119917,70,120021,70,120073,70,120125,70,120177,70,120229,70,120281,70,120333,70,120385,70,120437,70,42904,70,988,70,120778,70,5556,70,42205,70,71874,70,71842,70,66183,70,66213,70,66853,70,65351,103,8458,103,119840,103,119892,103,119944,103,120048,103,120100,103,120152,103,120204,103,120256,103,120308,103,120360,103,120412,103,120464,103,609,103,7555,103,397,103,1409,103,119814,71,119866,71,119918,71,119970,71,120022,71,120074,71,120126,71,120178,71,120230,71,120282,71,120334,71,120386,71,120438,71,1292,71,5056,71,5107,71,42198,71,65352,104,8462,104,119841,104,119945,104,119997,104,120049,104,120101,104,120153,104,120205,104,120257,104,120309,104,120361,104,120413,104,120465,104,1211,104,1392,104,5058,104,65320,72,8459,72,8460,72,8461,72,119815,72,119867,72,119919,72,120023,72,120179,72,120231,72,120283,72,120335,72,120387,72,120439,72,919,72,120494,72,120552,72,120610,72,120668,72,120726,72,11406,72,5051,72,5500,72,42215,72,66255,72,731,105,9075,105,65353,105,8560,105,8505,105,8520,105,119842,105,119894,105,119946,105,119998,105,120050,105,120102,105,120154,105,120206,105,120258,105,120310,105,120362,105,120414,105,120466,105,120484,105,618,105,617,105,953,105,8126,105,890,105,120522,105,120580,105,120638,105,120696,105,120754,105,1110,105,42567,105,1231,105,43893,105,5029,105,71875,105,65354,106,8521,106,119843,106,119895,106,119947,106,119999,106,120051,106,120103,106,120155,106,120207,106,120259,106,120311,106,120363,106,120415,106,120467,106,1011,106,1112,106,65322,74,119817,74,119869,74,119921,74,119973,74,120025,74,120077,74,120129,74,120181,74,120233,74,120285,74,120337,74,120389,74,120441,74,42930,74,895,74,1032,74,5035,74,5261,74,42201,74,119844,107,119896,107,119948,107,120000,107,120052,107,120104,107,120156,107,120208,107,120260,107,120312,107,120364,107,120416,107,120468,107,8490,75,65323,75,119818,75,119870,75,119922,75,119974,75,120026,75,120078,75,120130,75,120182,75,120234,75,120286,75,120338,75,120390,75,120442,75,922,75,120497,75,120555,75,120613,75,120671,75,120729,75,11412,75,5094,75,5845,75,42199,75,66840,75,1472,108,8739,73,9213,73,65512,73,1633,108,1777,73,66336,108,125127,108,120783,73,120793,73,120803,73,120813,73,120823,73,130033,73,65321,73,8544,73,8464,73,8465,73,119816,73,119868,73,119920,73,120024,73,120128,73,120180,73,120232,73,120284,73,120336,73,120388,73,120440,73,65356,108,8572,73,8467,108,119845,108,119897,108,119949,108,120001,108,120053,108,120105,73,120157,73,120209,73,120261,73,120313,73,120365,73,120417,73,120469,73,448,73,120496,73,120554,73,120612,73,120670,73,120728,73,11410,73,1030,73,1216,73,1493,108,1503,108,1575,108,126464,108,126592,108,65166,108,65165,108,1994,108,11599,73,5825,73,42226,73,93992,73,66186,124,66313,124,119338,76,8556,76,8466,76,119819,76,119871,76,119923,76,120027,76,120079,76,120131,76,120183,76,120235,76,120287,76,120339,76,120391,76,120443,76,11472,76,5086,76,5290,76,42209,76,93974,76,71843,76,71858,76,66587,76,66854,76,65325,77,8559,77,8499,77,119820,77,119872,77,119924,77,120028,77,120080,77,120132,77,120184,77,120236,77,120288,77,120340,77,120392,77,120444,77,924,77,120499,77,120557,77,120615,77,120673,77,120731,77,1018,77,11416,77,5047,77,5616,77,5846,77,42207,77,66224,77,66321,77,119847,110,119899,110,119951,110,120003,110,120055,110,120107,110,120159,110,120211,110,120263,110,120315,110,120367,110,120419,110,120471,110,1400,110,1404,110,65326,78,8469,78,119821,78,119873,78,119925,78,119977,78,120029,78,120081,78,120185,78,120237,78,120289,78,120341,78,120393,78,120445,78,925,78,120500,78,120558,78,120616,78,120674,78,120732,78,11418,78,42208,78,66835,78,3074,111,3202,111,3330,111,3458,111,2406,111,2662,111,2790,111,3046,111,3174,111,3302,111,3430,111,3664,111,3792,111,4160,111,1637,111,1781,111,65359,111,8500,111,119848,111,119900,111,119952,111,120056,111,120108,111,120160,111,120212,111,120264,111,120316,111,120368,111,120420,111,120472,111,7439,111,7441,111,43837,111,959,111,120528,111,120586,111,120644,111,120702,111,120760,111,963,111,120532,111,120590,111,120648,111,120706,111,120764,111,11423,111,4351,111,1413,111,1505,111,1607,111,126500,111,126564,111,126596,111,65259,111,65260,111,65258,111,65257,111,1726,111,64428,111,64429,111,64427,111,64426,111,1729,111,64424,111,64425,111,64423,111,64422,111,1749,111,3360,111,4125,111,66794,111,71880,111,71895,111,66604,111,1984,79,2534,79,2918,79,12295,79,70864,79,71904,79,120782,79,120792,79,120802,79,120812,79,120822,79,130032,79,65327,79,119822,79,119874,79,119926,79,119978,79,120030,79,120082,79,120134,79,120186,79,120238,79,120290,79,120342,79,120394,79,120446,79,927,79,120502,79,120560,79,120618,79,120676,79,120734,79,11422,79,1365,79,11604,79,4816,79,2848,79,66754,79,42227,79,71861,79,66194,79,66219,79,66564,79,66838,79,9076,112,65360,112,119849,112,119901,112,119953,112,120005,112,120057,112,120109,112,120161,112,120213,112,120265,112,120317,112,120369,112,120421,112,120473,112,961,112,120530,112,120544,112,120588,112,120602,112,120646,112,120660,112,120704,112,120718,112,120762,112,120776,112,11427,112,65328,80,8473,80,119823,80,119875,80,119927,80,119979,80,120031,80,120083,80,120187,80,120239,80,120291,80,120343,80,120395,80,120447,80,929,80,120504,80,120562,80,120620,80,120678,80,120736,80,11426,80,5090,80,5229,80,42193,80,66197,80,119850,113,119902,113,119954,113,120006,113,120058,113,120110,113,120162,113,120214,113,120266,113,120318,113,120370,113,120422,113,120474,113,1307,113,1379,113,1382,113,8474,81,119824,81,119876,81,119928,81,119980,81,120032,81,120084,81,120188,81,120240,81,120292,81,120344,81,120396,81,120448,81,11605,81,119851,114,119903,114,119955,114,120007,114,120059,114,120111,114,120163,114,120215,114,120267,114,120319,114,120371,114,120423,114,120475,114,43847,114,43848,114,7462,114,11397,114,43905,114,119318,82,8475,82,8476,82,8477,82,119825,82,119877,82,119929,82,120033,82,120189,82,120241,82,120293,82,120345,82,120397,82,120449,82,422,82,5025,82,5074,82,66740,82,5511,82,42211,82,94005,82,65363,115,119852,115,119904,115,119956,115,120008,115,120060,115,120112,115,120164,115,120216,115,120268,115,120320,115,120372,115,120424,115,120476,115,42801,115,445,115,1109,115,43946,115,71873,115,66632,115,65331,83,119826,83,119878,83,119930,83,119982,83,120034,83,120086,83,120138,83,120190,83,120242,83,120294,83,120346,83,120398,83,120450,83,1029,83,1359,83,5077,83,5082,83,42210,83,94010,83,66198,83,66592,83,119853,116,119905,116,119957,116,120009,116,120061,116,120113,116,120165,116,120217,116,120269,116,120321,116,120373,116,120425,116,120477,116,8868,84,10201,84,128872,84,65332,84,119827,84,119879,84,119931,84,119983,84,120035,84,120087,84,120139,84,120191,84,120243,84,120295,84,120347,84,120399,84,120451,84,932,84,120507,84,120565,84,120623,84,120681,84,120739,84,11430,84,5026,84,42196,84,93962,84,71868,84,66199,84,66225,84,66325,84,119854,117,119906,117,119958,117,120010,117,120062,117,120114,117,120166,117,120218,117,120270,117,120322,117,120374,117,120426,117,120478,117,42911,117,7452,117,43854,117,43858,117,651,117,965,117,120534,117,120592,117,120650,117,120708,117,120766,117,1405,117,66806,117,71896,117,8746,85,8899,85,119828,85,119880,85,119932,85,119984,85,120036,85,120088,85,120140,85,120192,85,120244,85,120296,85,120348,85,120400,85,120452,85,1357,85,4608,85,66766,85,5196,85,42228,85,94018,85,71864,85,8744,118,8897,118,65366,118,8564,118,119855,118,119907,118,119959,118,120011,118,120063,118,120115,118,120167,118,120219,118,120271,118,120323,118,120375,118,120427,118,120479,118,7456,118,957,118,120526,118,120584,118,120642,118,120700,118,120758,118,1141,118,1496,118,71430,118,43945,118,71872,118,119309,86,1639,86,1783,86,8548,86,119829,86,119881,86,119933,86,119985,86,120037,86,120089,86,120141,86,120193,86,120245,86,120297,86,120349,86,120401,86,120453,86,1140,86,11576,86,5081,86,5167,86,42719,86,42214,86,93960,86,71840,86,66845,86,623,119,119856,119,119908,119,119960,119,120012,119,120064,119,120116,119,120168,119,120220,119,120272,119,120324,119,120376,119,120428,119,120480,119,7457,119,1121,119,1309,119,1377,119,71434,119,71438,119,71439,119,43907,119,71919,87,71910,87,119830,87,119882,87,119934,87,119986,87,120038,87,120090,87,120142,87,120194,87,120246,87,120298,87,120350,87,120402,87,120454,87,1308,87,5043,87,5076,87,42218,87,5742,120,10539,120,10540,120,10799,120,65368,120,8569,120,119857,120,119909,120,119961,120,120013,120,120065,120,120117,120,120169,120,120221,120,120273,120,120325,120,120377,120,120429,120,120481,120,5441,120,5501,120,5741,88,9587,88,66338,88,71916,88,65336,88,8553,88,119831,88,119883,88,119935,88,119987,88,120039,88,120091,88,120143,88,120195,88,120247,88,120299,88,120351,88,120403,88,120455,88,42931,88,935,88,120510,88,120568,88,120626,88,120684,88,120742,88,11436,88,11613,88,5815,88,42219,88,66192,88,66228,88,66327,88,66855,88,611,121,7564,121,65369,121,119858,121,119910,121,119962,121,120014,121,120066,121,120118,121,120170,121,120222,121,120274,121,120326,121,120378,121,120430,121,120482,121,655,121,7935,121,43866,121,947,121,8509,121,120516,121,120574,121,120632,121,120690,121,120748,121,1199,121,4327,121,71900,121,65337,89,119832,89,119884,89,119936,89,119988,89,120040,89,120092,89,120144,89,120196,89,120248,89,120300,89,120352,89,120404,89,120456,89,933,89,978,89,120508,89,120566,89,120624,89,120682,89,120740,89,11432,89,1198,89,5033,89,5053,89,42220,89,94019,89,71844,89,66226,89,119859,122,119911,122,119963,122,120015,122,120067,122,120119,122,120171,122,120223,122,120275,122,120327,122,120379,122,120431,122,120483,122,7458,122,43923,122,71876,122,66293,90,71909,90,65338,90,8484,90,8488,90,119833,90,119885,90,119937,90,119989,90,120041,90,120197,90,120249,90,120301,90,120353,90,120405,90,120457,90,918,90,120493,90,120551,90,120609,90,120667,90,120725,90,5059,90,42204,90,71849,90,65282,34,65284,36,65285,37,65286,38,65290,42,65291,43,65294,46,65295,47,65296,48,65297,49,65298,50,65299,51,65300,52,65301,53,65302,54,65303,55,65304,56,65305,57,65308,60,65309,61,65310,62,65312,64,65316,68,65318,70,65319,71,65324,76,65329,81,65330,82,65333,85,65334,86,65335,87,65343,95,65346,98,65348,100,65350,102,65355,107,65357,109,65358,110,65361,113,65362,114,65364,116,65365,117,65367,119,65370,122,65371,123,65373,125,119846,109],"_default":[160,32,8211,45,65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"cs":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"de":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"es":[8211,45,65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"fr":[65374,126,65306,58,65281,33,8216,96,8245,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"it":[160,32,8211,45,65374,126,65306,58,65281,33,8216,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"ja":[8211,45,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65292,44,65307,59],"ko":[8211,45,65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"pl":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"pt-BR":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"qps-ploc":[160,32,8211,45,65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"ru":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,305,105,921,73,1009,112,215,120,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"tr":[160,32,8211,45,65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"zh-hans":[65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41],"zh-hant":[8211,45,65374,126,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65307,59]}')),Ge.cache=new $h({getCacheKey:JSON.stringify},t=>{function n(d){const u=new Map;for(let f=0;f<d.length;f+=2)u.set(d[f],d[f+1]);return u}function r(d,u){const f=new Map(d);for(const[m,v]of u)f.set(m,v);return f}function i(d,u){if(!d)return u;const f=new Map;for(const[m,v]of d)u.has(m)&&f.set(m,v);return f}const s=Ge.ambiguousCharacterData.value;let a=t.filter(d=>!d.startsWith("_")&&d in s);a.length===0&&(a=["_default"]);let l;for(const d of a){const u=n(s[d]);l=i(l,u)}const o=n(s._common),c=r(o,l);return new Ge(c)}),Ge._locales=new Gs(()=>Object.keys(Ge.ambiguousCharacterData.value).filter(t=>!t.startsWith("_")));let cn=Ge;const rn=class rn{static getRawData(){return JSON.parse("[9,10,11,12,13,32,127,160,173,847,1564,4447,4448,6068,6069,6155,6156,6157,6158,7355,7356,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8203,8204,8205,8206,8207,8234,8235,8236,8237,8238,8239,8287,8288,8289,8290,8291,8292,8293,8294,8295,8296,8297,8298,8299,8300,8301,8302,8303,10240,12288,12644,65024,65025,65026,65027,65028,65029,65030,65031,65032,65033,65034,65035,65036,65037,65038,65039,65279,65440,65520,65521,65522,65523,65524,65525,65526,65527,65528,65532,78844,119155,119156,119157,119158,119159,119160,119161,119162,917504,917505,917506,917507,917508,917509,917510,917511,917512,917513,917514,917515,917516,917517,917518,917519,917520,917521,917522,917523,917524,917525,917526,917527,917528,917529,917530,917531,917532,917533,917534,917535,917536,917537,917538,917539,917540,917541,917542,917543,917544,917545,917546,917547,917548,917549,917550,917551,917552,917553,917554,917555,917556,917557,917558,917559,917560,917561,917562,917563,917564,917565,917566,917567,917568,917569,917570,917571,917572,917573,917574,917575,917576,917577,917578,917579,917580,917581,917582,917583,917584,917585,917586,917587,917588,917589,917590,917591,917592,917593,917594,917595,917596,917597,917598,917599,917600,917601,917602,917603,917604,917605,917606,917607,917608,917609,917610,917611,917612,917613,917614,917615,917616,917617,917618,917619,917620,917621,917622,917623,917624,917625,917626,917627,917628,917629,917630,917631,917760,917761,917762,917763,917764,917765,917766,917767,917768,917769,917770,917771,917772,917773,917774,917775,917776,917777,917778,917779,917780,917781,917782,917783,917784,917785,917786,917787,917788,917789,917790,917791,917792,917793,917794,917795,917796,917797,917798,917799,917800,917801,917802,917803,917804,917805,917806,917807,917808,917809,917810,917811,917812,917813,917814,917815,917816,917817,917818,917819,917820,917821,917822,917823,917824,917825,917826,917827,917828,917829,917830,917831,917832,917833,917834,917835,917836,917837,917838,917839,917840,917841,917842,917843,917844,917845,917846,917847,917848,917849,917850,917851,917852,917853,917854,917855,917856,917857,917858,917859,917860,917861,917862,917863,917864,917865,917866,917867,917868,917869,917870,917871,917872,917873,917874,917875,917876,917877,917878,917879,917880,917881,917882,917883,917884,917885,917886,917887,917888,917889,917890,917891,917892,917893,917894,917895,917896,917897,917898,917899,917900,917901,917902,917903,917904,917905,917906,917907,917908,917909,917910,917911,917912,917913,917914,917915,917916,917917,917918,917919,917920,917921,917922,917923,917924,917925,917926,917927,917928,917929,917930,917931,917932,917933,917934,917935,917936,917937,917938,917939,917940,917941,917942,917943,917944,917945,917946,917947,917948,917949,917950,917951,917952,917953,917954,917955,917956,917957,917958,917959,917960,917961,917962,917963,917964,917965,917966,917967,917968,917969,917970,917971,917972,917973,917974,917975,917976,917977,917978,917979,917980,917981,917982,917983,917984,917985,917986,917987,917988,917989,917990,917991,917992,917993,917994,917995,917996,917997,917998,917999]")}static getData(){return this._data||(this._data=new Set(rn.getRawData())),this._data}static isInvisibleCharacter(t){return rn.getData().has(t)}static get codePoints(){return rn.getData()}};rn._data=void 0;let hn=rn;var Ys={ENV_TYPE:"local",NODE_ENV:"production"};let Tt;const Qr=globalThis.vscode;if(typeof Qr<"u"&&typeof Qr.process<"u"){const e=Qr.process;Tt={get platform(){return e.platform},get arch(){return e.arch},get env(){return e.env},cwd(){return e.cwd()}}}else typeof process<"u"&&typeof process?.versions?.node=="string"?Tt={get platform(){return process.platform},get arch(){return process.arch},get env(){return Ys},cwd(){return Ys.VSCODE_CWD||process.cwd()}}:Tt={get platform(){return ln?"win32":zh?"darwin":"linux"},get arch(){},get env(){return{}},cwd(){return"/"}};const qn=Tt.cwd,Yh=Tt.env,Qh=Tt.platform,Kh=65,Zh=97,ed=90,td=122,ht=46,ge=47,_e=92,dt=58,nd=63;class Qs extends Error{constructor(t,n,r){let i;typeof n=="string"&&n.indexOf("not ")===0?(i="must not be",n=n.replace(/^not /,"")):i="must be";const s=t.indexOf(".")!==-1?"property":"argument";let a=\`The "\${t}" \${s} \${i} of type \${n}\`;a+=\`. Received type \${typeof r}\`,super(a),this.code="ERR_INVALID_ARG_TYPE"}}function rd(e,t){if(e===null||typeof e!="object")throw new Qs(t,"Object",e)}function ce(e,t){if(typeof e!="string")throw new Qs(t,"string",e)}const Ke=Qh==="win32";function G(e){return e===ge||e===_e}function Kr(e){return e===ge}function ut(e){return e>=Kh&&e<=ed||e>=Zh&&e<=td}function jn(e,t,n,r){let i="",s=0,a=-1,l=0,o=0;for(let c=0;c<=e.length;++c){if(c<e.length)o=e.charCodeAt(c);else{if(r(o))break;o=ge}if(r(o)){if(!(a===c-1||l===1))if(l===2){if(i.length<2||s!==2||i.charCodeAt(i.length-1)!==ht||i.charCodeAt(i.length-2)!==ht){if(i.length>2){const d=i.lastIndexOf(n);d===-1?(i="",s=0):(i=i.slice(0,d),s=i.length-1-i.lastIndexOf(n)),a=c,l=0;continue}else if(i.length!==0){i="",s=0,a=c,l=0;continue}}t&&(i+=i.length>0?\`\${n}..\`:"..",s=2)}else i.length>0?i+=\`\${n}\${e.slice(a+1,c)}\`:i=e.slice(a+1,c),s=c-a-1;a=c,l=0}else o===ht&&l!==-1?++l:l=-1}return i}function id(e){return e?\`\${e[0]==="."?"":"."}\${e}\`:""}function Ks(e,t){rd(t,"pathObject");const n=t.dir||t.root,r=t.base||\`\${t.name||""}\${id(t.ext)}\`;return n?n===t.root?\`\${n}\${r}\`:\`\${n}\${e}\${r}\`:r}const ve={resolve(...e){let t="",n="",r=!1;for(let i=e.length-1;i>=-1;i--){let s;if(i>=0){if(s=e[i],ce(s,\`paths[\${i}]\`),s.length===0)continue}else t.length===0?s=qn():(s=Yh[\`=\${t}\`]||qn(),(s===void 0||s.slice(0,2).toLowerCase()!==t.toLowerCase()&&s.charCodeAt(2)===_e)&&(s=\`\${t}\\\\\`));const a=s.length;let l=0,o="",c=!1;const d=s.charCodeAt(0);if(a===1)G(d)&&(l=1,c=!0);else if(G(d))if(c=!0,G(s.charCodeAt(1))){let u=2,f=u;for(;u<a&&!G(s.charCodeAt(u));)u++;if(u<a&&u!==f){const m=s.slice(f,u);for(f=u;u<a&&G(s.charCodeAt(u));)u++;if(u<a&&u!==f){for(f=u;u<a&&!G(s.charCodeAt(u));)u++;(u===a||u!==f)&&(o=\`\\\\\\\\\${m}\\\\\${s.slice(f,u)}\`,l=u)}}}else l=1;else ut(d)&&s.charCodeAt(1)===dt&&(o=s.slice(0,2),l=2,a>2&&G(s.charCodeAt(2))&&(c=!0,l=3));if(o.length>0)if(t.length>0){if(o.toLowerCase()!==t.toLowerCase())continue}else t=o;if(r){if(t.length>0)break}else if(n=\`\${s.slice(l)}\\\\\${n}\`,r=c,c&&t.length>0)break}return n=jn(n,!r,"\\\\",G),r?\`\${t}\\\\\${n}\`:\`\${t}\${n}\`||"."},normalize(e){ce(e,"path");const t=e.length;if(t===0)return".";let n=0,r,i=!1;const s=e.charCodeAt(0);if(t===1)return Kr(s)?"\\\\":e;if(G(s))if(i=!0,G(e.charCodeAt(1))){let l=2,o=l;for(;l<t&&!G(e.charCodeAt(l));)l++;if(l<t&&l!==o){const c=e.slice(o,l);for(o=l;l<t&&G(e.charCodeAt(l));)l++;if(l<t&&l!==o){for(o=l;l<t&&!G(e.charCodeAt(l));)l++;if(l===t)return\`\\\\\\\\\${c}\\\\\${e.slice(o)}\\\\\`;l!==o&&(r=\`\\\\\\\\\${c}\\\\\${e.slice(o,l)}\`,n=l)}}}else n=1;else ut(s)&&e.charCodeAt(1)===dt&&(r=e.slice(0,2),n=2,t>2&&G(e.charCodeAt(2))&&(i=!0,n=3));let a=n<t?jn(e.slice(n),!i,"\\\\",G):"";return a.length===0&&!i&&(a="."),a.length>0&&G(e.charCodeAt(t-1))&&(a+="\\\\"),r===void 0?i?\`\\\\\${a}\`:a:i?\`\${r}\\\\\${a}\`:\`\${r}\${a}\`},isAbsolute(e){ce(e,"path");const t=e.length;if(t===0)return!1;const n=e.charCodeAt(0);return G(n)||t>2&&ut(n)&&e.charCodeAt(1)===dt&&G(e.charCodeAt(2))},join(...e){if(e.length===0)return".";let t,n;for(let s=0;s<e.length;++s){const a=e[s];ce(a,"path"),a.length>0&&(t===void 0?t=n=a:t+=\`\\\\\${a}\`)}if(t===void 0)return".";let r=!0,i=0;if(typeof n=="string"&&G(n.charCodeAt(0))){++i;const s=n.length;s>1&&G(n.charCodeAt(1))&&(++i,s>2&&(G(n.charCodeAt(2))?++i:r=!1))}if(r){for(;i<t.length&&G(t.charCodeAt(i));)i++;i>=2&&(t=\`\\\\\${t.slice(i)}\`)}return ve.normalize(t)},relative(e,t){if(ce(e,"from"),ce(t,"to"),e===t)return"";const n=ve.resolve(e),r=ve.resolve(t);if(n===r||(e=n.toLowerCase(),t=r.toLowerCase(),e===t))return"";let i=0;for(;i<e.length&&e.charCodeAt(i)===_e;)i++;let s=e.length;for(;s-1>i&&e.charCodeAt(s-1)===_e;)s--;const a=s-i;let l=0;for(;l<t.length&&t.charCodeAt(l)===_e;)l++;let o=t.length;for(;o-1>l&&t.charCodeAt(o-1)===_e;)o--;const c=o-l,d=a<c?a:c;let u=-1,f=0;for(;f<d;f++){const v=e.charCodeAt(i+f);if(v!==t.charCodeAt(l+f))break;v===_e&&(u=f)}if(f!==d){if(u===-1)return r}else{if(c>d){if(t.charCodeAt(l+f)===_e)return r.slice(l+f+1);if(f===2)return r.slice(l+f)}a>d&&(e.charCodeAt(i+f)===_e?u=f:f===2&&(u=3)),u===-1&&(u=0)}let m="";for(f=i+u+1;f<=s;++f)(f===s||e.charCodeAt(f)===_e)&&(m+=m.length===0?"..":"\\\\..");return l+=u,m.length>0?\`\${m}\${r.slice(l,o)}\`:(r.charCodeAt(l)===_e&&++l,r.slice(l,o))},toNamespacedPath(e){if(typeof e!="string"||e.length===0)return e;const t=ve.resolve(e);if(t.length<=2)return e;if(t.charCodeAt(0)===_e){if(t.charCodeAt(1)===_e){const n=t.charCodeAt(2);if(n!==nd&&n!==ht)return\`\\\\\\\\?\\\\UNC\\\\\${t.slice(2)}\`}}else if(ut(t.charCodeAt(0))&&t.charCodeAt(1)===dt&&t.charCodeAt(2)===_e)return\`\\\\\\\\?\\\\\${t}\`;return e},dirname(e){ce(e,"path");const t=e.length;if(t===0)return".";let n=-1,r=0;const i=e.charCodeAt(0);if(t===1)return G(i)?e:".";if(G(i)){if(n=r=1,G(e.charCodeAt(1))){let l=2,o=l;for(;l<t&&!G(e.charCodeAt(l));)l++;if(l<t&&l!==o){for(o=l;l<t&&G(e.charCodeAt(l));)l++;if(l<t&&l!==o){for(o=l;l<t&&!G(e.charCodeAt(l));)l++;if(l===t)return e;l!==o&&(n=r=l+1)}}}}else ut(i)&&e.charCodeAt(1)===dt&&(n=t>2&&G(e.charCodeAt(2))?3:2,r=n);let s=-1,a=!0;for(let l=t-1;l>=r;--l)if(G(e.charCodeAt(l))){if(!a){s=l;break}}else a=!1;if(s===-1){if(n===-1)return".";s=n}return e.slice(0,s)},basename(e,t){t!==void 0&&ce(t,"suffix"),ce(e,"path");let n=0,r=-1,i=!0,s;if(e.length>=2&&ut(e.charCodeAt(0))&&e.charCodeAt(1)===dt&&(n=2),t!==void 0&&t.length>0&&t.length<=e.length){if(t===e)return"";let a=t.length-1,l=-1;for(s=e.length-1;s>=n;--s){const o=e.charCodeAt(s);if(G(o)){if(!i){n=s+1;break}}else l===-1&&(i=!1,l=s+1),a>=0&&(o===t.charCodeAt(a)?--a===-1&&(r=s):(a=-1,r=l))}return n===r?r=l:r===-1&&(r=e.length),e.slice(n,r)}for(s=e.length-1;s>=n;--s)if(G(e.charCodeAt(s))){if(!i){n=s+1;break}}else r===-1&&(i=!1,r=s+1);return r===-1?"":e.slice(n,r)},extname(e){ce(e,"path");let t=0,n=-1,r=0,i=-1,s=!0,a=0;e.length>=2&&e.charCodeAt(1)===dt&&ut(e.charCodeAt(0))&&(t=r=2);for(let l=e.length-1;l>=t;--l){const o=e.charCodeAt(l);if(G(o)){if(!s){r=l+1;break}continue}i===-1&&(s=!1,i=l+1),o===ht?n===-1?n=l:a!==1&&(a=1):n!==-1&&(a=-1)}return n===-1||i===-1||a===0||a===1&&n===i-1&&n===r+1?"":e.slice(n,i)},format:Ks.bind(null,"\\\\"),parse(e){ce(e,"path");const t={root:"",dir:"",base:"",ext:"",name:""};if(e.length===0)return t;const n=e.length;let r=0,i=e.charCodeAt(0);if(n===1)return G(i)?(t.root=t.dir=e,t):(t.base=t.name=e,t);if(G(i)){if(r=1,G(e.charCodeAt(1))){let u=2,f=u;for(;u<n&&!G(e.charCodeAt(u));)u++;if(u<n&&u!==f){for(f=u;u<n&&G(e.charCodeAt(u));)u++;if(u<n&&u!==f){for(f=u;u<n&&!G(e.charCodeAt(u));)u++;u===n?r=u:u!==f&&(r=u+1)}}}}else if(ut(i)&&e.charCodeAt(1)===dt){if(n<=2)return t.root=t.dir=e,t;if(r=2,G(e.charCodeAt(2))){if(n===3)return t.root=t.dir=e,t;r=3}}r>0&&(t.root=e.slice(0,r));let s=-1,a=r,l=-1,o=!0,c=e.length-1,d=0;for(;c>=r;--c){if(i=e.charCodeAt(c),G(i)){if(!o){a=c+1;break}continue}l===-1&&(o=!1,l=c+1),i===ht?s===-1?s=c:d!==1&&(d=1):s!==-1&&(d=-1)}return l!==-1&&(s===-1||d===0||d===1&&s===l-1&&s===a+1?t.base=t.name=e.slice(a,l):(t.name=e.slice(a,s),t.base=e.slice(a,l),t.ext=e.slice(s,l))),a>0&&a!==r?t.dir=e.slice(0,a-1):t.dir=t.root,t},sep:"\\\\",delimiter:";",win32:null,posix:null},sd=(()=>{if(Ke){const e=/\\\\/g;return()=>{const t=qn().replace(e,"/");return t.slice(t.indexOf("/"))}}return()=>qn()})(),we={resolve(...e){let t="",n=!1;for(let r=e.length-1;r>=-1&&!n;r--){const i=r>=0?e[r]:sd();ce(i,\`paths[\${r}]\`),i.length!==0&&(t=\`\${i}/\${t}\`,n=i.charCodeAt(0)===ge)}return t=jn(t,!n,"/",Kr),n?\`/\${t}\`:t.length>0?t:"."},normalize(e){if(ce(e,"path"),e.length===0)return".";const t=e.charCodeAt(0)===ge,n=e.charCodeAt(e.length-1)===ge;return e=jn(e,!t,"/",Kr),e.length===0?t?"/":n?"./":".":(n&&(e+="/"),t?\`/\${e}\`:e)},isAbsolute(e){return ce(e,"path"),e.length>0&&e.charCodeAt(0)===ge},join(...e){if(e.length===0)return".";let t;for(let n=0;n<e.length;++n){const r=e[n];ce(r,"path"),r.length>0&&(t===void 0?t=r:t+=\`/\${r}\`)}return t===void 0?".":we.normalize(t)},relative(e,t){if(ce(e,"from"),ce(t,"to"),e===t||(e=we.resolve(e),t=we.resolve(t),e===t))return"";const n=1,r=e.length,i=r-n,s=1,a=t.length-s,l=i<a?i:a;let o=-1,c=0;for(;c<l;c++){const u=e.charCodeAt(n+c);if(u!==t.charCodeAt(s+c))break;u===ge&&(o=c)}if(c===l)if(a>l){if(t.charCodeAt(s+c)===ge)return t.slice(s+c+1);if(c===0)return t.slice(s+c)}else i>l&&(e.charCodeAt(n+c)===ge?o=c:c===0&&(o=0));let d="";for(c=n+o+1;c<=r;++c)(c===r||e.charCodeAt(c)===ge)&&(d+=d.length===0?"..":"/..");return\`\${d}\${t.slice(s+o)}\`},toNamespacedPath(e){return e},dirname(e){if(ce(e,"path"),e.length===0)return".";const t=e.charCodeAt(0)===ge;let n=-1,r=!0;for(let i=e.length-1;i>=1;--i)if(e.charCodeAt(i)===ge){if(!r){n=i;break}}else r=!1;return n===-1?t?"/":".":t&&n===1?"//":e.slice(0,n)},basename(e,t){t!==void 0&&ce(t,"ext"),ce(e,"path");let n=0,r=-1,i=!0,s;if(t!==void 0&&t.length>0&&t.length<=e.length){if(t===e)return"";let a=t.length-1,l=-1;for(s=e.length-1;s>=0;--s){const o=e.charCodeAt(s);if(o===ge){if(!i){n=s+1;break}}else l===-1&&(i=!1,l=s+1),a>=0&&(o===t.charCodeAt(a)?--a===-1&&(r=s):(a=-1,r=l))}return n===r?r=l:r===-1&&(r=e.length),e.slice(n,r)}for(s=e.length-1;s>=0;--s)if(e.charCodeAt(s)===ge){if(!i){n=s+1;break}}else r===-1&&(i=!1,r=s+1);return r===-1?"":e.slice(n,r)},extname(e){ce(e,"path");let t=-1,n=0,r=-1,i=!0,s=0;for(let a=e.length-1;a>=0;--a){const l=e.charCodeAt(a);if(l===ge){if(!i){n=a+1;break}continue}r===-1&&(i=!1,r=a+1),l===ht?t===-1?t=a:s!==1&&(s=1):t!==-1&&(s=-1)}return t===-1||r===-1||s===0||s===1&&t===r-1&&t===n+1?"":e.slice(t,r)},format:Ks.bind(null,"/"),parse(e){ce(e,"path");const t={root:"",dir:"",base:"",ext:"",name:""};if(e.length===0)return t;const n=e.charCodeAt(0)===ge;let r;n?(t.root="/",r=1):r=0;let i=-1,s=0,a=-1,l=!0,o=e.length-1,c=0;for(;o>=r;--o){const d=e.charCodeAt(o);if(d===ge){if(!l){s=o+1;break}continue}a===-1&&(l=!1,a=o+1),d===ht?i===-1?i=o:c!==1&&(c=1):i!==-1&&(c=-1)}if(a!==-1){const d=s===0&&n?1:s;i===-1||c===0||c===1&&i===a-1&&i===s+1?t.base=t.name=e.slice(d,a):(t.name=e.slice(d,i),t.base=e.slice(d,a),t.ext=e.slice(i,a))}return s>0?t.dir=e.slice(0,s-1):n&&(t.dir="/"),t},sep:"/",delimiter:":",win32:null,posix:null};we.win32=ve.win32=ve,we.posix=ve.posix=we,Ke?ve.normalize:we.normalize;const ad=Ke?ve.join:we.join;Ke?ve.resolve:we.resolve,Ke?ve.relative:we.relative,Ke?ve.dirname:we.dirname,Ke?ve.basename:we.basename,Ke?ve.extname:we.extname,Ke?ve.sep:we.sep;const od=/^\\w[\\w\\d+.-]*$/,ld=/^\\//,cd=/^\\/\\//;function hd(e,t){if(!e.scheme&&t)throw new Error(\`[UriError]: Scheme is missing: {scheme: "", authority: "\${e.authority}", path: "\${e.path}", query: "\${e.query}", fragment: "\${e.fragment}"}\`);if(e.scheme&&!od.test(e.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(e.path){if(e.authority){if(!ld.test(e.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(cd.test(e.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}}function dd(e,t){return!e&&!t?"file":e}function ud(e,t){switch(e){case"https":case"http":case"file":t?t[0]!==Pe&&(t=Pe+t):t=Pe;break}return t}const ne="",Pe="/",pd=/^(([^:/?#]+?):)?(\\/\\/([^/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?/;let Ve=class Or{static isUri(t){return t instanceof Or?!0:t?typeof t.authority=="string"&&typeof t.fragment=="string"&&typeof t.path=="string"&&typeof t.query=="string"&&typeof t.scheme=="string"&&typeof t.fsPath=="string"&&typeof t.with=="function"&&typeof t.toString=="function":!1}constructor(t,n,r,i,s,a=!1){typeof t=="object"?(this.scheme=t.scheme||ne,this.authority=t.authority||ne,this.path=t.path||ne,this.query=t.query||ne,this.fragment=t.fragment||ne):(this.scheme=dd(t,a),this.authority=n||ne,this.path=ud(this.scheme,r||ne),this.query=i||ne,this.fragment=s||ne,hd(this,a))}get fsPath(){return Zr(this,!1)}with(t){if(!t)return this;let{scheme:n,authority:r,path:i,query:s,fragment:a}=t;return n===void 0?n=this.scheme:n===null&&(n=ne),r===void 0?r=this.authority:r===null&&(r=ne),i===void 0?i=this.path:i===null&&(i=ne),s===void 0?s=this.query:s===null&&(s=ne),a===void 0?a=this.fragment:a===null&&(a=ne),n===this.scheme&&r===this.authority&&i===this.path&&s===this.query&&a===this.fragment?this:new Ot(n,r,i,s,a)}static parse(t,n=!1){const r=pd.exec(t);return r?new Ot(r[2]||ne,Hn(r[4]||ne),Hn(r[5]||ne),Hn(r[7]||ne),Hn(r[9]||ne),n):new Ot(ne,ne,ne,ne,ne)}static file(t){let n=ne;if(ln&&(t=t.replace(/\\\\/g,Pe)),t[0]===Pe&&t[1]===Pe){const r=t.indexOf(Pe,2);r===-1?(n=t.substring(2),t=Pe):(n=t.substring(2,r),t=t.substring(r)||Pe)}return new Ot("file",n,t,ne,ne)}static from(t,n){return new Ot(t.scheme,t.authority,t.path,t.query,t.fragment,n)}static joinPath(t,...n){if(!t.path)throw new Error("[UriError]: cannot call joinPath on URI without path");let r;return ln&&t.scheme==="file"?r=Or.file(ve.join(Zr(t,!0),...n)).path:r=we.join(t.path,...n),t.with({path:r})}toString(t=!1){return ei(this,t)}toJSON(){return this}static revive(t){if(t){if(t instanceof Or)return t;{const n=new Ot(t);return n._formatted=t.external??null,n._fsPath=t._sep===Zs?t.fsPath??null:null,n}}else return t}};const Zs=ln?1:void 0;class Ot extends Ve{constructor(){super(...arguments),this._formatted=null,this._fsPath=null}get fsPath(){return this._fsPath||(this._fsPath=Zr(this,!1)),this._fsPath}toString(t=!1){return t?ei(this,!0):(this._formatted||(this._formatted=ei(this,!1)),this._formatted)}toJSON(){const t={$mid:1};return this._fsPath&&(t.fsPath=this._fsPath,t._sep=Zs),this._formatted&&(t.external=this._formatted),this.path&&(t.path=this.path),this.scheme&&(t.scheme=this.scheme),this.authority&&(t.authority=this.authority),this.query&&(t.query=this.query),this.fragment&&(t.fragment=this.fragment),t}}const ea={58:"%3A",47:"%2F",63:"%3F",35:"%23",91:"%5B",93:"%5D",64:"%40",33:"%21",36:"%24",38:"%26",39:"%27",40:"%28",41:"%29",42:"%2A",43:"%2B",44:"%2C",59:"%3B",61:"%3D",32:"%20"};function ta(e,t,n){let r,i=-1;for(let s=0;s<e.length;s++){const a=e.charCodeAt(s);if(a>=97&&a<=122||a>=65&&a<=90||a>=48&&a<=57||a===45||a===46||a===95||a===126||t&&a===47||n&&a===91||n&&a===93||n&&a===58)i!==-1&&(r+=encodeURIComponent(e.substring(i,s)),i=-1),r!==void 0&&(r+=e.charAt(s));else{r===void 0&&(r=e.substr(0,s));const l=ea[a];l!==void 0?(i!==-1&&(r+=encodeURIComponent(e.substring(i,s)),i=-1),r+=l):i===-1&&(i=s)}}return i!==-1&&(r+=encodeURIComponent(e.substring(i))),r!==void 0?r:e}function md(e){let t;for(let n=0;n<e.length;n++){const r=e.charCodeAt(n);r===35||r===63?(t===void 0&&(t=e.substr(0,n)),t+=ea[r]):t!==void 0&&(t+=e[n])}return t!==void 0?t:e}function Zr(e,t){let n;return e.authority&&e.path.length>1&&e.scheme==="file"?n=\`//\${e.authority}\${e.path}\`:e.path.charCodeAt(0)===47&&(e.path.charCodeAt(1)>=65&&e.path.charCodeAt(1)<=90||e.path.charCodeAt(1)>=97&&e.path.charCodeAt(1)<=122)&&e.path.charCodeAt(2)===58?t?n=e.path.substr(1):n=e.path[1].toLowerCase()+e.path.substr(2):n=e.path,ln&&(n=n.replace(/\\//g,"\\\\")),n}function ei(e,t){const n=t?md:ta;let r="",{scheme:i,authority:s,path:a,query:l,fragment:o}=e;if(i&&(r+=i,r+=":"),(s||i==="file")&&(r+=Pe,r+=Pe),s){let c=s.indexOf("@");if(c!==-1){const d=s.substr(0,c);s=s.substr(c+1),c=d.lastIndexOf(":"),c===-1?r+=n(d,!1,!1):(r+=n(d.substr(0,c),!1,!1),r+=":",r+=n(d.substr(c+1),!1,!0)),r+="@"}s=s.toLowerCase(),c=s.lastIndexOf(":"),c===-1?r+=n(s,!1,!0):(r+=n(s.substr(0,c),!1,!0),r+=s.substr(c))}if(a){if(a.length>=3&&a.charCodeAt(0)===47&&a.charCodeAt(2)===58){const c=a.charCodeAt(1);c>=65&&c<=90&&(a=\`/\${String.fromCharCode(c+32)}:\${a.substr(3)}\`)}else if(a.length>=2&&a.charCodeAt(1)===58){const c=a.charCodeAt(0);c>=65&&c<=90&&(a=\`\${String.fromCharCode(c+32)}:\${a.substr(2)}\`)}r+=n(a,!0,!1)}return l&&(r+="?",r+=n(l,!1,!1)),o&&(r+="#",r+=t?o:ta(o,!1,!1)),r}function na(e){try{return decodeURIComponent(e)}catch{return e.length>3?e.substr(0,3)+na(e.substr(3)):e}}const ra=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function Hn(e){return e.match(ra)?e.replace(ra,t=>na(t)):e}var pt;(function(e){e.inMemory="inmemory",e.vscode="vscode",e.internal="private",e.walkThrough="walkThrough",e.walkThroughSnippet="walkThroughSnippet",e.http="http",e.https="https",e.file="file",e.mailto="mailto",e.untitled="untitled",e.data="data",e.command="command",e.vscodeRemote="vscode-remote",e.vscodeRemoteResource="vscode-remote-resource",e.vscodeManagedRemoteResource="vscode-managed-remote-resource",e.vscodeUserData="vscode-userdata",e.vscodeCustomEditor="vscode-custom-editor",e.vscodeNotebookCell="vscode-notebook-cell",e.vscodeNotebookCellMetadata="vscode-notebook-cell-metadata",e.vscodeNotebookCellMetadataDiff="vscode-notebook-cell-metadata-diff",e.vscodeNotebookCellOutput="vscode-notebook-cell-output",e.vscodeNotebookCellOutputDiff="vscode-notebook-cell-output-diff",e.vscodeNotebookMetadata="vscode-notebook-metadata",e.vscodeInteractiveInput="vscode-interactive-input",e.vscodeSettings="vscode-settings",e.vscodeWorkspaceTrust="vscode-workspace-trust",e.vscodeTerminal="vscode-terminal",e.vscodeChatCodeBlock="vscode-chat-code-block",e.vscodeChatCodeCompareBlock="vscode-chat-code-compare-block",e.vscodeChatSesssion="vscode-chat-editor",e.webviewPanel="webview-panel",e.vscodeWebview="vscode-webview",e.extension="extension",e.vscodeFileResource="vscode-file",e.tmp="tmp",e.vsls="vsls",e.vscodeSourceControl="vscode-scm",e.commentsInput="comment",e.codeSetting="code-setting",e.outputChannel="output"})(pt||(pt={}));const fd="tkn";class gd{constructor(){this._hosts=Object.create(null),this._ports=Object.create(null),this._connectionTokens=Object.create(null),this._preferredWebSchema="http",this._delegate=null,this._serverRootPath="/"}setPreferredWebSchema(t){this._preferredWebSchema=t}get _remoteResourcesPath(){return we.join(this._serverRootPath,pt.vscodeRemoteResource)}rewrite(t){if(this._delegate)try{return this._delegate(t)}catch(l){return We(l),t}const n=t.authority;let r=this._hosts[n];r&&r.indexOf(":")!==-1&&r.indexOf("[")===-1&&(r=\`[\${r}]\`);const i=this._ports[n],s=this._connectionTokens[n];let a=\`path=\${encodeURIComponent(t.path)}\`;return typeof s=="string"&&(a+=\`&\${fd}=\${encodeURIComponent(s)}\`),Ve.from({scheme:Th?this._preferredWebSchema:pt.vscodeRemoteResource,authority:\`\${r}:\${i}\`,path:this._remoteResourcesPath,query:a})}}const bd=new gd,vd="vscode-app",zn=class zn{asBrowserUri(t){const n=this.toUri(t);return this.uriToBrowserUri(n)}uriToBrowserUri(t){return t.scheme===pt.vscodeRemote?bd.rewrite(t):t.scheme===pt.file&&(Ph||Oh===\`\${pt.vscodeFileResource}://\${zn.FALLBACK_AUTHORITY}\`)?t.with({scheme:pt.vscodeFileResource,authority:t.authority||zn.FALLBACK_AUTHORITY,query:null,fragment:null}):t}toUri(t,n){if(Ve.isUri(t))return t;if(globalThis._VSCODE_FILE_ROOT){const r=globalThis._VSCODE_FILE_ROOT;if(/^\\w[\\w\\d+.-]*:\\/\\//.test(r))return Ve.joinPath(Ve.parse(r,!0),t);const i=ad(r,t);return Ve.file(i)}return Ve.parse(n.toUrl(t))}};zn.FALLBACK_AUTHORITY=vd;let ti=zn;const ia=new ti;var sa;(function(e){const t=new Map([["1",{"Cross-Origin-Opener-Policy":"same-origin"}],["2",{"Cross-Origin-Embedder-Policy":"require-corp"}],["3",{"Cross-Origin-Opener-Policy":"same-origin","Cross-Origin-Embedder-Policy":"require-corp"}]]);e.CoopAndCoep=Object.freeze(t.get("3"));const n="vscode-coi";function r(s){let a;typeof s=="string"?a=new URL(s).searchParams:s instanceof URL?a=s.searchParams:Ve.isUri(s)&&(a=new URL(s.toString(!0)).searchParams);const l=a?.get(n);if(l)return t.get(l)}e.getHeadersFromQuery=r;function i(s,a,l){if(!globalThis.crossOriginIsolated)return;const o=a&&l?"3":l?"2":"1";s instanceof URLSearchParams?s.set(n,o):s[n]=o}e.addSearchParam=i})(sa||(sa={}));const ni="default",wd="$initialize";class yd{constructor(t,n,r,i,s){this.vsWorker=t,this.req=n,this.channel=r,this.method=i,this.args=s,this.type=0}}class aa{constructor(t,n,r,i){this.vsWorker=t,this.seq=n,this.res=r,this.err=i,this.type=1}}class xd{constructor(t,n,r,i,s){this.vsWorker=t,this.req=n,this.channel=r,this.eventName=i,this.arg=s,this.type=2}}class Sd{constructor(t,n,r){this.vsWorker=t,this.req=n,this.event=r,this.type=3}}class Cd{constructor(t,n){this.vsWorker=t,this.req=n,this.type=4}}class _d{constructor(t){this._workerId=-1,this._handler=t,this._lastSentReq=0,this._pendingReplies=Object.create(null),this._pendingEmitters=new Map,this._pendingEvents=new Map}setWorkerId(t){this._workerId=t}sendMessage(t,n,r){const i=String(++this._lastSentReq);return new Promise((s,a)=>{this._pendingReplies[i]={resolve:s,reject:a},this._send(new yd(this._workerId,i,t,n,r))})}listen(t,n,r){let i=null;const s=new De({onWillAddFirstListener:()=>{i=String(++this._lastSentReq),this._pendingEmitters.set(i,s),this._send(new xd(this._workerId,i,t,n,r))},onDidRemoveLastListener:()=>{this._pendingEmitters.delete(i),this._send(new Cd(this._workerId,i)),i=null}});return s.event}handleMessage(t){!t||!t.vsWorker||this._workerId!==-1&&t.vsWorker!==this._workerId||this._handleMessage(t)}createProxyToRemoteChannel(t,n){const r={get:(i,s)=>(typeof s=="string"&&!i[s]&&(la(s)?i[s]=a=>this.listen(t,s,a):oa(s)?i[s]=this.listen(t,s,void 0):s.charCodeAt(0)===36&&(i[s]=async(...a)=>(await n?.(),this.sendMessage(t,s,a)))),i[s])};return new Proxy(Object.create(null),r)}_handleMessage(t){switch(t.type){case 1:return this._handleReplyMessage(t);case 0:return this._handleRequestMessage(t);case 2:return this._handleSubscribeEventMessage(t);case 3:return this._handleEventMessage(t);case 4:return this._handleUnsubscribeEventMessage(t)}}_handleReplyMessage(t){if(!this._pendingReplies[t.seq]){console.warn("Got reply to unknown seq");return}const n=this._pendingReplies[t.seq];if(delete this._pendingReplies[t.seq],t.err){let r=t.err;t.err.$isError&&(r=new Error,r.name=t.err.name,r.message=t.err.message,r.stack=t.err.stack),n.reject(r);return}n.resolve(t.res)}_handleRequestMessage(t){const n=t.req;this._handler.handleMessage(t.channel,t.method,t.args).then(i=>{this._send(new aa(this._workerId,n,i,void 0))},i=>{i.detail instanceof Error&&(i.detail=Vs(i.detail)),this._send(new aa(this._workerId,n,void 0,Vs(i)))})}_handleSubscribeEventMessage(t){const n=t.req,r=this._handler.handleEvent(t.channel,t.eventName,t.arg)(i=>{this._send(new Sd(this._workerId,n,i))});this._pendingEvents.set(n,r)}_handleEventMessage(t){if(!this._pendingEmitters.has(t.req)){console.warn("Got event for unknown req");return}this._pendingEmitters.get(t.req).fire(t.event)}_handleUnsubscribeEventMessage(t){if(!this._pendingEvents.has(t.req)){console.warn("Got unsubscribe for unknown req");return}this._pendingEvents.get(t.req).dispose(),this._pendingEvents.delete(t.req)}_send(t){const n=[];if(t.type===0)for(let r=0;r<t.args.length;r++)t.args[r]instanceof ArrayBuffer&&n.push(t.args[r]);else t.type===1&&t.res instanceof ArrayBuffer&&n.push(t.res);this._handler.sendMessage(t,n)}}function oa(e){return e[0]==="o"&&e[1]==="n"&&Js(e.charCodeAt(2))}function la(e){return/^onDynamic/.test(e)&&Js(e.charCodeAt(9))}class kd{constructor(t,n){this._localChannels=new Map,this._remoteChannels=new Map,this._requestHandlerFactory=n,this._requestHandler=null,this._protocol=new _d({sendMessage:(r,i)=>{t(r,i)},handleMessage:(r,i,s)=>this._handleMessage(r,i,s),handleEvent:(r,i,s)=>this._handleEvent(r,i,s)})}onmessage(t){this._protocol.handleMessage(t)}_handleMessage(t,n,r){if(t===ni&&n===wd)return this.initialize(r[0],r[1],r[2]);const i=t===ni?this._requestHandler:this._localChannels.get(t);if(!i)return Promise.reject(new Error(\`Missing channel \${t} on worker thread\`));if(typeof i[n]!="function")return Promise.reject(new Error(\`Missing method \${n} on worker thread channel \${t}\`));try{return Promise.resolve(i[n].apply(i,r))}catch(s){return Promise.reject(s)}}_handleEvent(t,n,r){const i=t===ni?this._requestHandler:this._localChannels.get(t);if(!i)throw new Error(\`Missing channel \${t} on worker thread\`);if(la(n)){const s=i[n].call(i,r);if(typeof s!="function")throw new Error(\`Missing dynamic event \${n} on request handler.\`);return s}if(oa(n)){const s=i[n];if(typeof s!="function")throw new Error(\`Missing event \${n} on request handler.\`);return s}throw new Error(\`Malformed event name \${n}\`)}getChannel(t){if(!this._remoteChannels.has(t)){const n=this._protocol.createProxyToRemoteChannel(t);this._remoteChannels.set(t,n)}return this._remoteChannels.get(t)}async initialize(t,n,r){if(this._protocol.setWorkerId(t),this._requestHandlerFactory){this._requestHandler=this._requestHandlerFactory(this);return}return n&&(typeof n.baseUrl<"u"&&delete n.baseUrl,typeof n.paths<"u"&&typeof n.paths.vs<"u"&&delete n.paths.vs,typeof n.trustedTypesPolicy<"u"&&delete n.trustedTypesPolicy,n.catchError=!0,globalThis.require.config(n)),import(\`\${ia.asBrowserUri(\`\${r}.js\`).toString(!0)}\`).then(s=>{if(this._requestHandler=s.create(this),!this._requestHandler)throw new Error("No RequestHandler!")})}}class mt{constructor(t,n,r,i){this.originalStart=t,this.originalLength=n,this.modifiedStart=r,this.modifiedLength=i}getOriginalEnd(){return this.originalStart+this.originalLength}getModifiedEnd(){return this.modifiedStart+this.modifiedLength}}function ca(e,t){return(t<<5)-t+e|0}function Ed(e,t){t=ca(149417,t);for(let n=0,r=e.length;n<r;n++)t=ca(e.charCodeAt(n),t);return t}function ri(e,t,n=32){const r=n-t,i=~((1<<r)-1);return(e<<t|(i&e)>>>r)>>>0}function ha(e,t=0,n=e.byteLength,r=0){for(let i=0;i<n;i++)e[t+i]=r}function Fd(e,t,n="0"){for(;e.length<t;)e=n+e;return e}function dn(e,t=32){return e instanceof ArrayBuffer?Array.from(new Uint8Array(e)).map(n=>n.toString(16).padStart(2,"0")).join(""):Fd((e>>>0).toString(16),t/4)}const Ar=class Ar{constructor(){this._h0=1732584193,this._h1=4023233417,this._h2=2562383102,this._h3=271733878,this._h4=3285377520,this._buff=new Uint8Array(67),this._buffDV=new DataView(this._buff.buffer),this._buffLen=0,this._totalLen=0,this._leftoverHighSurrogate=0,this._finished=!1}update(t){const n=t.length;if(n===0)return;const r=this._buff;let i=this._buffLen,s=this._leftoverHighSurrogate,a,l;for(s!==0?(a=s,l=-1,s=0):(a=t.charCodeAt(0),l=0);;){let o=a;if(Bn(a))if(l+1<n){const c=t.charCodeAt(l+1);Yr(c)?(l++,o=Xs(a,c)):o=65533}else{s=a;break}else Yr(a)&&(o=65533);if(i=this._push(r,i,o),l++,l<n)a=t.charCodeAt(l);else break}this._buffLen=i,this._leftoverHighSurrogate=s}_push(t,n,r){return r<128?t[n++]=r:r<2048?(t[n++]=192|(r&1984)>>>6,t[n++]=128|(r&63)>>>0):r<65536?(t[n++]=224|(r&61440)>>>12,t[n++]=128|(r&4032)>>>6,t[n++]=128|(r&63)>>>0):(t[n++]=240|(r&1835008)>>>18,t[n++]=128|(r&258048)>>>12,t[n++]=128|(r&4032)>>>6,t[n++]=128|(r&63)>>>0),n>=64&&(this._step(),n-=64,this._totalLen+=64,t[0]=t[64],t[1]=t[65],t[2]=t[66]),n}digest(){return this._finished||(this._finished=!0,this._leftoverHighSurrogate&&(this._leftoverHighSurrogate=0,this._buffLen=this._push(this._buff,this._buffLen,65533)),this._totalLen+=this._buffLen,this._wrapUp()),dn(this._h0)+dn(this._h1)+dn(this._h2)+dn(this._h3)+dn(this._h4)}_wrapUp(){this._buff[this._buffLen++]=128,ha(this._buff,this._buffLen),this._buffLen>56&&(this._step(),ha(this._buff));const t=8*this._totalLen;this._buffDV.setUint32(56,Math.floor(t/4294967296),!1),this._buffDV.setUint32(60,t%4294967296,!1),this._step()}_step(){const t=Ar._bigBlock32,n=this._buffDV;for(let u=0;u<64;u+=4)t.setUint32(u,n.getUint32(u,!1),!1);for(let u=64;u<320;u+=4)t.setUint32(u,ri(t.getUint32(u-12,!1)^t.getUint32(u-32,!1)^t.getUint32(u-56,!1)^t.getUint32(u-64,!1),1),!1);let r=this._h0,i=this._h1,s=this._h2,a=this._h3,l=this._h4,o,c,d;for(let u=0;u<80;u++)u<20?(o=i&s|~i&a,c=1518500249):u<40?(o=i^s^a,c=1859775393):u<60?(o=i&s|i&a|s&a,c=2400959708):(o=i^s^a,c=3395469782),d=ri(r,5)+o+l+c+t.getUint32(u*4,!1)&4294967295,l=a,a=s,s=ri(i,30),i=r,r=d;this._h0=this._h0+r&4294967295,this._h1=this._h1+i&4294967295,this._h2=this._h2+s&4294967295,this._h3=this._h3+a&4294967295,this._h4=this._h4+l&4294967295}};Ar._bigBlock32=new DataView(new ArrayBuffer(320));let da=Ar;class ua{constructor(t){this.source=t}getElements(){const t=this.source,n=new Int32Array(t.length);for(let r=0,i=t.length;r<i;r++)n[r]=t.charCodeAt(r);return n}}function Rd(e,t,n){return new ft(new ua(e),new ua(t)).ComputeDiff(n).changes}class Wt{static Assert(t,n){if(!t)throw new Error(n)}}class Ut{static Copy(t,n,r,i,s){for(let a=0;a<s;a++)r[i+a]=t[n+a]}static Copy2(t,n,r,i,s){for(let a=0;a<s;a++)r[i+a]=t[n+a]}}class pa{constructor(){this.m_changes=[],this.m_originalStart=1073741824,this.m_modifiedStart=1073741824,this.m_originalCount=0,this.m_modifiedCount=0}MarkNextChange(){(this.m_originalCount>0||this.m_modifiedCount>0)&&this.m_changes.push(new mt(this.m_originalStart,this.m_originalCount,this.m_modifiedStart,this.m_modifiedCount)),this.m_originalCount=0,this.m_modifiedCount=0,this.m_originalStart=1073741824,this.m_modifiedStart=1073741824}AddOriginalElement(t,n){this.m_originalStart=Math.min(this.m_originalStart,t),this.m_modifiedStart=Math.min(this.m_modifiedStart,n),this.m_originalCount++}AddModifiedElement(t,n){this.m_originalStart=Math.min(this.m_originalStart,t),this.m_modifiedStart=Math.min(this.m_modifiedStart,n),this.m_modifiedCount++}getChanges(){return(this.m_originalCount>0||this.m_modifiedCount>0)&&this.MarkNextChange(),this.m_changes}getReverseChanges(){return(this.m_originalCount>0||this.m_modifiedCount>0)&&this.MarkNextChange(),this.m_changes.reverse(),this.m_changes}}class ft{constructor(t,n,r=null){this.ContinueProcessingPredicate=r,this._originalSequence=t,this._modifiedSequence=n;const[i,s,a]=ft._getElements(t),[l,o,c]=ft._getElements(n);this._hasStrings=a&&c,this._originalStringElements=i,this._originalElementsOrHash=s,this._modifiedStringElements=l,this._modifiedElementsOrHash=o,this.m_forwardHistory=[],this.m_reverseHistory=[]}static _isStringArray(t){return t.length>0&&typeof t[0]=="string"}static _getElements(t){const n=t.getElements();if(ft._isStringArray(n)){const r=new Int32Array(n.length);for(let i=0,s=n.length;i<s;i++)r[i]=Ed(n[i],0);return[n,r,!0]}return n instanceof Int32Array?[[],n,!1]:[[],new Int32Array(n),!1]}ElementsAreEqual(t,n){return this._originalElementsOrHash[t]!==this._modifiedElementsOrHash[n]?!1:this._hasStrings?this._originalStringElements[t]===this._modifiedStringElements[n]:!0}ElementsAreStrictEqual(t,n){if(!this.ElementsAreEqual(t,n))return!1;const r=ft._getStrictElement(this._originalSequence,t),i=ft._getStrictElement(this._modifiedSequence,n);return r===i}static _getStrictElement(t,n){return typeof t.getStrictElement=="function"?t.getStrictElement(n):null}OriginalElementsAreEqual(t,n){return this._originalElementsOrHash[t]!==this._originalElementsOrHash[n]?!1:this._hasStrings?this._originalStringElements[t]===this._originalStringElements[n]:!0}ModifiedElementsAreEqual(t,n){return this._modifiedElementsOrHash[t]!==this._modifiedElementsOrHash[n]?!1:this._hasStrings?this._modifiedStringElements[t]===this._modifiedStringElements[n]:!0}ComputeDiff(t){return this._ComputeDiff(0,this._originalElementsOrHash.length-1,0,this._modifiedElementsOrHash.length-1,t)}_ComputeDiff(t,n,r,i,s){const a=[!1];let l=this.ComputeDiffRecursive(t,n,r,i,a);return s&&(l=this.PrettifyChanges(l)),{quitEarly:a[0],changes:l}}ComputeDiffRecursive(t,n,r,i,s){for(s[0]=!1;t<=n&&r<=i&&this.ElementsAreEqual(t,r);)t++,r++;for(;n>=t&&i>=r&&this.ElementsAreEqual(n,i);)n--,i--;if(t>n||r>i){let u;return r<=i?(Wt.Assert(t===n+1,"originalStart should only be one more than originalEnd"),u=[new mt(t,0,r,i-r+1)]):t<=n?(Wt.Assert(r===i+1,"modifiedStart should only be one more than modifiedEnd"),u=[new mt(t,n-t+1,r,0)]):(Wt.Assert(t===n+1,"originalStart should only be one more than originalEnd"),Wt.Assert(r===i+1,"modifiedStart should only be one more than modifiedEnd"),u=[]),u}const a=[0],l=[0],o=this.ComputeRecursionPoint(t,n,r,i,a,l,s),c=a[0],d=l[0];if(o!==null)return o;if(!s[0]){const u=this.ComputeDiffRecursive(t,c,r,d,s);let f=[];return s[0]?f=[new mt(c+1,n-(c+1)+1,d+1,i-(d+1)+1)]:f=this.ComputeDiffRecursive(c+1,n,d+1,i,s),this.ConcatenateChanges(u,f)}return[new mt(t,n-t+1,r,i-r+1)]}WALKTRACE(t,n,r,i,s,a,l,o,c,d,u,f,m,v,w,k,R,I){let N=null,E=null,F=new pa,M=n,T=r,P=m[0]-k[0]-i,j=-1073741824,ee=this.m_forwardHistory.length-1;do{const A=P+t;A===M||A<T&&c[A-1]<c[A+1]?(u=c[A+1],v=u-P-i,u<j&&F.MarkNextChange(),j=u,F.AddModifiedElement(u+1,v),P=A+1-t):(u=c[A-1]+1,v=u-P-i,u<j&&F.MarkNextChange(),j=u-1,F.AddOriginalElement(u,v+1),P=A-1-t),ee>=0&&(c=this.m_forwardHistory[ee],t=c[0],M=1,T=c.length-1)}while(--ee>=-1);if(N=F.getReverseChanges(),I[0]){let A=m[0]+1,_=k[0]+1;if(N!==null&&N.length>0){const C=N[N.length-1];A=Math.max(A,C.getOriginalEnd()),_=Math.max(_,C.getModifiedEnd())}E=[new mt(A,f-A+1,_,w-_+1)]}else{F=new pa,M=a,T=l,P=m[0]-k[0]-o,j=1073741824,ee=R?this.m_reverseHistory.length-1:this.m_reverseHistory.length-2;do{const A=P+s;A===M||A<T&&d[A-1]>=d[A+1]?(u=d[A+1]-1,v=u-P-o,u>j&&F.MarkNextChange(),j=u+1,F.AddOriginalElement(u+1,v+1),P=A+1-s):(u=d[A-1],v=u-P-o,u>j&&F.MarkNextChange(),j=u,F.AddModifiedElement(u+1,v+1),P=A-1-s),ee>=0&&(d=this.m_reverseHistory[ee],s=d[0],M=1,T=d.length-1)}while(--ee>=-1);E=F.getChanges()}return this.ConcatenateChanges(N,E)}ComputeRecursionPoint(t,n,r,i,s,a,l){let o=0,c=0,d=0,u=0,f=0,m=0;t--,r--,s[0]=0,a[0]=0,this.m_forwardHistory=[],this.m_reverseHistory=[];const v=n-t+(i-r),w=v+1,k=new Int32Array(w),R=new Int32Array(w),I=i-r,N=n-t,E=t-r,F=n-i,T=(N-I)%2===0;k[I]=t,R[N]=n,l[0]=!1;for(let P=1;P<=v/2+1;P++){let j=0,ee=0;d=this.ClipDiagonalBound(I-P,P,I,w),u=this.ClipDiagonalBound(I+P,P,I,w);for(let _=d;_<=u;_+=2){_===d||_<u&&k[_-1]<k[_+1]?o=k[_+1]:o=k[_-1]+1,c=o-(_-I)-E;const C=o;for(;o<n&&c<i&&this.ElementsAreEqual(o+1,c+1);)o++,c++;if(k[_]=o,o+c>j+ee&&(j=o,ee=c),!T&&Math.abs(_-N)<=P-1&&o>=R[_])return s[0]=o,a[0]=c,C<=R[_]&&P<=1448?this.WALKTRACE(I,d,u,E,N,f,m,F,k,R,o,n,s,c,i,a,T,l):null}const A=(j-t+(ee-r)-P)/2;if(this.ContinueProcessingPredicate!==null&&!this.ContinueProcessingPredicate(j,A))return l[0]=!0,s[0]=j,a[0]=ee,A>0&&P<=1448?this.WALKTRACE(I,d,u,E,N,f,m,F,k,R,o,n,s,c,i,a,T,l):(t++,r++,[new mt(t,n-t+1,r,i-r+1)]);f=this.ClipDiagonalBound(N-P,P,N,w),m=this.ClipDiagonalBound(N+P,P,N,w);for(let _=f;_<=m;_+=2){_===f||_<m&&R[_-1]>=R[_+1]?o=R[_+1]-1:o=R[_-1],c=o-(_-N)-F;const C=o;for(;o>t&&c>r&&this.ElementsAreEqual(o,c);)o--,c--;if(R[_]=o,T&&Math.abs(_-I)<=P&&o<=k[_])return s[0]=o,a[0]=c,C>=k[_]&&P<=1448?this.WALKTRACE(I,d,u,E,N,f,m,F,k,R,o,n,s,c,i,a,T,l):null}if(P<=1447){let _=new Int32Array(u-d+2);_[0]=I-d+1,Ut.Copy2(k,d,_,1,u-d+1),this.m_forwardHistory.push(_),_=new Int32Array(m-f+2),_[0]=N-f+1,Ut.Copy2(R,f,_,1,m-f+1),this.m_reverseHistory.push(_)}}return this.WALKTRACE(I,d,u,E,N,f,m,F,k,R,o,n,s,c,i,a,T,l)}PrettifyChanges(t){for(let n=0;n<t.length;n++){const r=t[n],i=n<t.length-1?t[n+1].originalStart:this._originalElementsOrHash.length,s=n<t.length-1?t[n+1].modifiedStart:this._modifiedElementsOrHash.length,a=r.originalLength>0,l=r.modifiedLength>0;for(;r.originalStart+r.originalLength<i&&r.modifiedStart+r.modifiedLength<s&&(!a||this.OriginalElementsAreEqual(r.originalStart,r.originalStart+r.originalLength))&&(!l||this.ModifiedElementsAreEqual(r.modifiedStart,r.modifiedStart+r.modifiedLength));){const c=this.ElementsAreStrictEqual(r.originalStart,r.modifiedStart);if(this.ElementsAreStrictEqual(r.originalStart+r.originalLength,r.modifiedStart+r.modifiedLength)&&!c)break;r.originalStart++,r.modifiedStart++}const o=[null];if(n<t.length-1&&this.ChangesOverlap(t[n],t[n+1],o)){t[n]=o[0],t.splice(n+1,1),n--;continue}}for(let n=t.length-1;n>=0;n--){const r=t[n];let i=0,s=0;if(n>0){const u=t[n-1];i=u.originalStart+u.originalLength,s=u.modifiedStart+u.modifiedLength}const a=r.originalLength>0,l=r.modifiedLength>0;let o=0,c=this._boundaryScore(r.originalStart,r.originalLength,r.modifiedStart,r.modifiedLength);for(let u=1;;u++){const f=r.originalStart-u,m=r.modifiedStart-u;if(f<i||m<s||a&&!this.OriginalElementsAreEqual(f,f+r.originalLength)||l&&!this.ModifiedElementsAreEqual(m,m+r.modifiedLength))break;const w=(f===i&&m===s?5:0)+this._boundaryScore(f,r.originalLength,m,r.modifiedLength);w>c&&(c=w,o=u)}r.originalStart-=o,r.modifiedStart-=o;const d=[null];if(n>0&&this.ChangesOverlap(t[n-1],t[n],d)){t[n-1]=d[0],t.splice(n,1),n++;continue}}if(this._hasStrings)for(let n=1,r=t.length;n<r;n++){const i=t[n-1],s=t[n],a=s.originalStart-i.originalStart-i.originalLength,l=i.originalStart,o=s.originalStart+s.originalLength,c=o-l,d=i.modifiedStart,u=s.modifiedStart+s.modifiedLength,f=u-d;if(a<5&&c<20&&f<20){const m=this._findBetterContiguousSequence(l,c,d,f,a);if(m){const[v,w]=m;(v!==i.originalStart+i.originalLength||w!==i.modifiedStart+i.modifiedLength)&&(i.originalLength=v-i.originalStart,i.modifiedLength=w-i.modifiedStart,s.originalStart=v+a,s.modifiedStart=w+a,s.originalLength=o-s.originalStart,s.modifiedLength=u-s.modifiedStart)}}}return t}_findBetterContiguousSequence(t,n,r,i,s){if(n<s||i<s)return null;const a=t+n-s+1,l=r+i-s+1;let o=0,c=0,d=0;for(let u=t;u<a;u++)for(let f=r;f<l;f++){const m=this._contiguousSequenceScore(u,f,s);m>0&&m>o&&(o=m,c=u,d=f)}return o>0?[c,d]:null}_contiguousSequenceScore(t,n,r){let i=0;for(let s=0;s<r;s++){if(!this.ElementsAreEqual(t+s,n+s))return 0;i+=this._originalStringElements[t+s].length}return i}_OriginalIsBoundary(t){return t<=0||t>=this._originalElementsOrHash.length-1?!0:this._hasStrings&&/^\\s*$/.test(this._originalStringElements[t])}_OriginalRegionIsBoundary(t,n){if(this._OriginalIsBoundary(t)||this._OriginalIsBoundary(t-1))return!0;if(n>0){const r=t+n;if(this._OriginalIsBoundary(r-1)||this._OriginalIsBoundary(r))return!0}return!1}_ModifiedIsBoundary(t){return t<=0||t>=this._modifiedElementsOrHash.length-1?!0:this._hasStrings&&/^\\s*$/.test(this._modifiedStringElements[t])}_ModifiedRegionIsBoundary(t,n){if(this._ModifiedIsBoundary(t)||this._ModifiedIsBoundary(t-1))return!0;if(n>0){const r=t+n;if(this._ModifiedIsBoundary(r-1)||this._ModifiedIsBoundary(r))return!0}return!1}_boundaryScore(t,n,r,i){const s=this._OriginalRegionIsBoundary(t,n)?1:0,a=this._ModifiedRegionIsBoundary(r,i)?1:0;return s+a}ConcatenateChanges(t,n){const r=[];if(t.length===0||n.length===0)return n.length>0?n:t;if(this.ChangesOverlap(t[t.length-1],n[0],r)){const i=new Array(t.length+n.length-1);return Ut.Copy(t,0,i,0,t.length-1),i[t.length-1]=r[0],Ut.Copy(n,1,i,t.length,n.length-1),i}else{const i=new Array(t.length+n.length);return Ut.Copy(t,0,i,0,t.length),Ut.Copy(n,0,i,t.length,n.length),i}}ChangesOverlap(t,n,r){if(Wt.Assert(t.originalStart<=n.originalStart,"Left change is not less than or equal to right change"),Wt.Assert(t.modifiedStart<=n.modifiedStart,"Left change is not less than or equal to right change"),t.originalStart+t.originalLength>=n.originalStart||t.modifiedStart+t.modifiedLength>=n.modifiedStart){const i=t.originalStart;let s=t.originalLength;const a=t.modifiedStart;let l=t.modifiedLength;return t.originalStart+t.originalLength>=n.originalStart&&(s=n.originalStart+n.originalLength-t.originalStart),t.modifiedStart+t.modifiedLength>=n.modifiedStart&&(l=n.modifiedStart+n.modifiedLength-t.modifiedStart),r[0]=new mt(i,s,a,l),!0}else return r[0]=null,!1}ClipDiagonalBound(t,n,r,i){if(t>=0&&t<i)return t;const s=r,a=i-r-1,l=n%2===0;if(t<0){const o=s%2===0;return l===o?0:1}else{const o=a%2===0;return l===o?i-1:i-2}}}let he=class Mt{constructor(t,n){this.lineNumber=t,this.column=n}with(t=this.lineNumber,n=this.column){return t===this.lineNumber&&n===this.column?this:new Mt(t,n)}delta(t=0,n=0){return this.with(this.lineNumber+t,this.column+n)}equals(t){return Mt.equals(this,t)}static equals(t,n){return!t&&!n?!0:!!t&&!!n&&t.lineNumber===n.lineNumber&&t.column===n.column}isBefore(t){return Mt.isBefore(this,t)}static isBefore(t,n){return t.lineNumber<n.lineNumber?!0:n.lineNumber<t.lineNumber?!1:t.column<n.column}isBeforeOrEqual(t){return Mt.isBeforeOrEqual(this,t)}static isBeforeOrEqual(t,n){return t.lineNumber<n.lineNumber?!0:n.lineNumber<t.lineNumber?!1:t.column<=n.column}static compare(t,n){const r=t.lineNumber|0,i=n.lineNumber|0;if(r===i){const s=t.column|0,a=n.column|0;return s-a}return r-i}clone(){return new Mt(this.lineNumber,this.column)}toString(){return"("+this.lineNumber+","+this.column+")"}static lift(t){return new Mt(t.lineNumber,t.column)}static isIPosition(t){return t&&typeof t.lineNumber=="number"&&typeof t.column=="number"}toJSON(){return{lineNumber:this.lineNumber,column:this.column}}},Q=class ue{constructor(t,n,r,i){t>r||t===r&&n>i?(this.startLineNumber=r,this.startColumn=i,this.endLineNumber=t,this.endColumn=n):(this.startLineNumber=t,this.startColumn=n,this.endLineNumber=r,this.endColumn=i)}isEmpty(){return ue.isEmpty(this)}static isEmpty(t){return t.startLineNumber===t.endLineNumber&&t.startColumn===t.endColumn}containsPosition(t){return ue.containsPosition(this,t)}static containsPosition(t,n){return!(n.lineNumber<t.startLineNumber||n.lineNumber>t.endLineNumber||n.lineNumber===t.startLineNumber&&n.column<t.startColumn||n.lineNumber===t.endLineNumber&&n.column>t.endColumn)}static strictContainsPosition(t,n){return!(n.lineNumber<t.startLineNumber||n.lineNumber>t.endLineNumber||n.lineNumber===t.startLineNumber&&n.column<=t.startColumn||n.lineNumber===t.endLineNumber&&n.column>=t.endColumn)}containsRange(t){return ue.containsRange(this,t)}static containsRange(t,n){return!(n.startLineNumber<t.startLineNumber||n.endLineNumber<t.startLineNumber||n.startLineNumber>t.endLineNumber||n.endLineNumber>t.endLineNumber||n.startLineNumber===t.startLineNumber&&n.startColumn<t.startColumn||n.endLineNumber===t.endLineNumber&&n.endColumn>t.endColumn)}strictContainsRange(t){return ue.strictContainsRange(this,t)}static strictContainsRange(t,n){return!(n.startLineNumber<t.startLineNumber||n.endLineNumber<t.startLineNumber||n.startLineNumber>t.endLineNumber||n.endLineNumber>t.endLineNumber||n.startLineNumber===t.startLineNumber&&n.startColumn<=t.startColumn||n.endLineNumber===t.endLineNumber&&n.endColumn>=t.endColumn)}plusRange(t){return ue.plusRange(this,t)}static plusRange(t,n){let r,i,s,a;return n.startLineNumber<t.startLineNumber?(r=n.startLineNumber,i=n.startColumn):n.startLineNumber===t.startLineNumber?(r=n.startLineNumber,i=Math.min(n.startColumn,t.startColumn)):(r=t.startLineNumber,i=t.startColumn),n.endLineNumber>t.endLineNumber?(s=n.endLineNumber,a=n.endColumn):n.endLineNumber===t.endLineNumber?(s=n.endLineNumber,a=Math.max(n.endColumn,t.endColumn)):(s=t.endLineNumber,a=t.endColumn),new ue(r,i,s,a)}intersectRanges(t){return ue.intersectRanges(this,t)}static intersectRanges(t,n){let r=t.startLineNumber,i=t.startColumn,s=t.endLineNumber,a=t.endColumn;const l=n.startLineNumber,o=n.startColumn,c=n.endLineNumber,d=n.endColumn;return r<l?(r=l,i=o):r===l&&(i=Math.max(i,o)),s>c?(s=c,a=d):s===c&&(a=Math.min(a,d)),r>s||r===s&&i>a?null:new ue(r,i,s,a)}equalsRange(t){return ue.equalsRange(this,t)}static equalsRange(t,n){return!t&&!n?!0:!!t&&!!n&&t.startLineNumber===n.startLineNumber&&t.startColumn===n.startColumn&&t.endLineNumber===n.endLineNumber&&t.endColumn===n.endColumn}getEndPosition(){return ue.getEndPosition(this)}static getEndPosition(t){return new he(t.endLineNumber,t.endColumn)}getStartPosition(){return ue.getStartPosition(this)}static getStartPosition(t){return new he(t.startLineNumber,t.startColumn)}toString(){return"["+this.startLineNumber+","+this.startColumn+" -> "+this.endLineNumber+","+this.endColumn+"]"}setEndPosition(t,n){return new ue(this.startLineNumber,this.startColumn,t,n)}setStartPosition(t,n){return new ue(t,n,this.endLineNumber,this.endColumn)}collapseToStart(){return ue.collapseToStart(this)}static collapseToStart(t){return new ue(t.startLineNumber,t.startColumn,t.startLineNumber,t.startColumn)}collapseToEnd(){return ue.collapseToEnd(this)}static collapseToEnd(t){return new ue(t.endLineNumber,t.endColumn,t.endLineNumber,t.endColumn)}delta(t){return new ue(this.startLineNumber+t,this.startColumn,this.endLineNumber+t,this.endColumn)}static fromPositions(t,n=t){return new ue(t.lineNumber,t.column,n.lineNumber,n.column)}static lift(t){return t?new ue(t.startLineNumber,t.startColumn,t.endLineNumber,t.endColumn):null}static isIRange(t){return t&&typeof t.startLineNumber=="number"&&typeof t.startColumn=="number"&&typeof t.endLineNumber=="number"&&typeof t.endColumn=="number"}static areIntersectingOrTouching(t,n){return!(t.endLineNumber<n.startLineNumber||t.endLineNumber===n.startLineNumber&&t.endColumn<n.startColumn||n.endLineNumber<t.startLineNumber||n.endLineNumber===t.startLineNumber&&n.endColumn<t.startColumn)}static areIntersecting(t,n){return!(t.endLineNumber<n.startLineNumber||t.endLineNumber===n.startLineNumber&&t.endColumn<=n.startColumn||n.endLineNumber<t.startLineNumber||n.endLineNumber===t.startLineNumber&&n.endColumn<=t.startColumn)}static compareRangesUsingStarts(t,n){if(t&&n){const s=t.startLineNumber|0,a=n.startLineNumber|0;if(s===a){const l=t.startColumn|0,o=n.startColumn|0;if(l===o){const c=t.endLineNumber|0,d=n.endLineNumber|0;if(c===d){const u=t.endColumn|0,f=n.endColumn|0;return u-f}return c-d}return l-o}return s-a}return(t?1:0)-(n?1:0)}static compareRangesUsingEnds(t,n){return t.endLineNumber===n.endLineNumber?t.endColumn===n.endColumn?t.startLineNumber===n.startLineNumber?t.startColumn-n.startColumn:t.startLineNumber-n.startLineNumber:t.endColumn-n.endColumn:t.endLineNumber-n.endLineNumber}static spansMultipleLines(t){return t.endLineNumber>t.startLineNumber}toJSON(){return this}};function ma(e){return e<0?0:e>255?255:e|0}function Vt(e){return e<0?0:e>4294967295?4294967295:e|0}class ii{constructor(t){const n=ma(t);this._defaultValue=n,this._asciiMap=ii._createAsciiMap(n),this._map=new Map}static _createAsciiMap(t){const n=new Uint8Array(256);return n.fill(t),n}set(t,n){const r=ma(n);t>=0&&t<256?this._asciiMap[t]=r:this._map.set(t,r)}get(t){return t>=0&&t<256?this._asciiMap[t]:this._map.get(t)||this._defaultValue}clear(){this._asciiMap.fill(this._defaultValue),this._map.clear()}}class Nd{constructor(t,n,r){const i=new Uint8Array(t*n);for(let s=0,a=t*n;s<a;s++)i[s]=r;this._data=i,this.rows=t,this.cols=n}get(t,n){return this._data[t*this.cols+n]}set(t,n,r){this._data[t*this.cols+n]=r}}class Dd{constructor(t){let n=0,r=0;for(let s=0,a=t.length;s<a;s++){const[l,o,c]=t[s];o>n&&(n=o),l>r&&(r=l),c>r&&(r=c)}n++,r++;const i=new Nd(r,n,0);for(let s=0,a=t.length;s<a;s++){const[l,o,c]=t[s];i.set(l,o,c)}this._states=i,this._maxCharCode=n}nextState(t,n){return n<0||n>=this._maxCharCode?0:this._states.get(t,n)}}let si=null;function Id(){return si===null&&(si=new Dd([[1,104,2],[1,72,2],[1,102,6],[1,70,6],[2,116,3],[2,84,3],[3,116,4],[3,84,4],[4,112,5],[4,80,5],[5,115,9],[5,83,9],[5,58,10],[6,105,7],[6,73,7],[7,108,8],[7,76,8],[8,101,9],[8,69,9],[9,58,10],[10,47,11],[11,47,12]])),si}let un=null;function Ad(){if(un===null){un=new ii(0);const e=\` <>'"、。。、,.:;‘〈「『〔([{「」}])〕』」〉’`~…\`;for(let n=0;n<e.length;n++)un.set(e.charCodeAt(n),1);const t=".,;:";for(let n=0;n<t.length;n++)un.set(t.charCodeAt(n),2)}return un}class Gn{static _createLink(t,n,r,i,s){let a=s-1;do{const l=n.charCodeAt(a);if(t.get(l)!==2)break;a--}while(a>i);if(i>0){const l=n.charCodeAt(i-1),o=n.charCodeAt(a);(l===40&&o===41||l===91&&o===93||l===123&&o===125)&&a--}return{range:{startLineNumber:r,startColumn:i+1,endLineNumber:r,endColumn:a+2},url:n.substring(i,a+1)}}static computeLinks(t,n=Id()){const r=Ad(),i=[];for(let s=1,a=t.getLineCount();s<=a;s++){const l=t.getLineContent(s),o=l.length;let c=0,d=0,u=0,f=1,m=!1,v=!1,w=!1,k=!1;for(;c<o;){let R=!1;const I=l.charCodeAt(c);if(f===13){let N;switch(I){case 40:m=!0,N=0;break;case 41:N=m?0:1;break;case 91:w=!0,v=!0,N=0;break;case 93:w=!1,N=v?0:1;break;case 123:k=!0,N=0;break;case 125:N=k?0:1;break;case 39:case 34:case 96:u===I?N=1:u===39||u===34||u===96?N=0:N=1;break;case 42:N=u===42?1:0;break;case 124:N=u===124?1:0;break;case 32:N=w?0:1;break;default:N=r.get(I)}N===1&&(i.push(Gn._createLink(r,l,s,d,c)),R=!0)}else if(f===12){let N;I===91?(v=!0,N=0):N=r.get(I),N===1?R=!0:f=13}else f=n.nextState(f,I),f===0&&(R=!0);R&&(f=1,m=!1,v=!1,k=!1,d=c+1,u=I),c++}f===13&&i.push(Gn._createLink(r,l,s,d,o))}return i}}function Md(e){return!e||typeof e.getLineCount!="function"||typeof e.getLineContent!="function"?[]:Gn.computeLinks(e)}const Mr=class Mr{constructor(){this._defaultValueSet=[["true","false"],["True","False"],["Private","Public","Friend","ReadOnly","Partial","Protected","WriteOnly"],["public","protected","private"]]}navigateValueSet(t,n,r,i,s){if(t&&n){const a=this.doNavigateValueSet(n,s);if(a)return{range:t,value:a}}if(r&&i){const a=this.doNavigateValueSet(i,s);if(a)return{range:r,value:a}}return null}doNavigateValueSet(t,n){const r=this.numberReplace(t,n);return r!==null?r:this.textReplace(t,n)}numberReplace(t,n){const r=Math.pow(10,t.length-(t.lastIndexOf(".")+1));let i=Number(t);const s=parseFloat(t);return!isNaN(i)&&!isNaN(s)&&i===s?i===0&&!n?null:(i=Math.floor(i*r),i+=n?r:-r,String(i/r)):null}textReplace(t,n){return this.valueSetsReplace(this._defaultValueSet,t,n)}valueSetsReplace(t,n,r){let i=null;for(let s=0,a=t.length;i===null&&s<a;s++)i=this.valueSetReplace(t[s],n,r);return i}valueSetReplace(t,n,r){let i=t.indexOf(n);return i>=0?(i+=r?1:-1,i<0?i=t.length-1:i%=t.length,t[i]):null}};Mr.INSTANCE=new Mr;let ai=Mr;const fa=Object.freeze(function(e,t){const n=setTimeout(e.bind(t),0);return{dispose(){clearTimeout(n)}}});var Jn;(function(e){function t(n){return n===e.None||n===e.Cancelled||n instanceof Xn?!0:!n||typeof n!="object"?!1:typeof n.isCancellationRequested=="boolean"&&typeof n.onCancellationRequested=="function"}e.isCancellationToken=t,e.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:Vn.None}),e.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:fa})})(Jn||(Jn={}));class Xn{constructor(){this._isCancelled=!1,this._emitter=null}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?fa:(this._emitter||(this._emitter=new De),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=null)}}class Ld{constructor(t){this._token=void 0,this._parentListener=void 0,this._parentListener=t&&t.onCancellationRequested(this.cancel,this)}get token(){return this._token||(this._token=new Xn),this._token}cancel(){this._token?this._token instanceof Xn&&this._token.cancel():this._token=Jn.Cancelled}dispose(t=!1){t&&this.cancel(),this._parentListener?.dispose(),this._token?this._token instanceof Xn&&this._token.dispose():this._token=Jn.None}}class oi{constructor(){this._keyCodeToStr=[],this._strToKeyCode=Object.create(null)}define(t,n){this._keyCodeToStr[t]=n,this._strToKeyCode[n.toLowerCase()]=t}keyCodeToStr(t){return this._keyCodeToStr[t]}strToKeyCode(t){return this._strToKeyCode[t.toLowerCase()]||0}}const Yn=new oi,li=new oi,ci=new oi,zd=new Array(230),Pd=Object.create(null),Td=Object.create(null);(function(){const e="",t=[[1,0,"None",0,"unknown",0,"VK_UNKNOWN",e,e],[1,1,"Hyper",0,e,0,e,e,e],[1,2,"Super",0,e,0,e,e,e],[1,3,"Fn",0,e,0,e,e,e],[1,4,"FnLock",0,e,0,e,e,e],[1,5,"Suspend",0,e,0,e,e,e],[1,6,"Resume",0,e,0,e,e,e],[1,7,"Turbo",0,e,0,e,e,e],[1,8,"Sleep",0,e,0,"VK_SLEEP",e,e],[1,9,"WakeUp",0,e,0,e,e,e],[0,10,"KeyA",31,"A",65,"VK_A",e,e],[0,11,"KeyB",32,"B",66,"VK_B",e,e],[0,12,"KeyC",33,"C",67,"VK_C",e,e],[0,13,"KeyD",34,"D",68,"VK_D",e,e],[0,14,"KeyE",35,"E",69,"VK_E",e,e],[0,15,"KeyF",36,"F",70,"VK_F",e,e],[0,16,"KeyG",37,"G",71,"VK_G",e,e],[0,17,"KeyH",38,"H",72,"VK_H",e,e],[0,18,"KeyI",39,"I",73,"VK_I",e,e],[0,19,"KeyJ",40,"J",74,"VK_J",e,e],[0,20,"KeyK",41,"K",75,"VK_K",e,e],[0,21,"KeyL",42,"L",76,"VK_L",e,e],[0,22,"KeyM",43,"M",77,"VK_M",e,e],[0,23,"KeyN",44,"N",78,"VK_N",e,e],[0,24,"KeyO",45,"O",79,"VK_O",e,e],[0,25,"KeyP",46,"P",80,"VK_P",e,e],[0,26,"KeyQ",47,"Q",81,"VK_Q",e,e],[0,27,"KeyR",48,"R",82,"VK_R",e,e],[0,28,"KeyS",49,"S",83,"VK_S",e,e],[0,29,"KeyT",50,"T",84,"VK_T",e,e],[0,30,"KeyU",51,"U",85,"VK_U",e,e],[0,31,"KeyV",52,"V",86,"VK_V",e,e],[0,32,"KeyW",53,"W",87,"VK_W",e,e],[0,33,"KeyX",54,"X",88,"VK_X",e,e],[0,34,"KeyY",55,"Y",89,"VK_Y",e,e],[0,35,"KeyZ",56,"Z",90,"VK_Z",e,e],[0,36,"Digit1",22,"1",49,"VK_1",e,e],[0,37,"Digit2",23,"2",50,"VK_2",e,e],[0,38,"Digit3",24,"3",51,"VK_3",e,e],[0,39,"Digit4",25,"4",52,"VK_4",e,e],[0,40,"Digit5",26,"5",53,"VK_5",e,e],[0,41,"Digit6",27,"6",54,"VK_6",e,e],[0,42,"Digit7",28,"7",55,"VK_7",e,e],[0,43,"Digit8",29,"8",56,"VK_8",e,e],[0,44,"Digit9",30,"9",57,"VK_9",e,e],[0,45,"Digit0",21,"0",48,"VK_0",e,e],[1,46,"Enter",3,"Enter",13,"VK_RETURN",e,e],[1,47,"Escape",9,"Escape",27,"VK_ESCAPE",e,e],[1,48,"Backspace",1,"Backspace",8,"VK_BACK",e,e],[1,49,"Tab",2,"Tab",9,"VK_TAB",e,e],[1,50,"Space",10,"Space",32,"VK_SPACE",e,e],[0,51,"Minus",88,"-",189,"VK_OEM_MINUS","-","OEM_MINUS"],[0,52,"Equal",86,"=",187,"VK_OEM_PLUS","=","OEM_PLUS"],[0,53,"BracketLeft",92,"[",219,"VK_OEM_4","[","OEM_4"],[0,54,"BracketRight",94,"]",221,"VK_OEM_6","]","OEM_6"],[0,55,"Backslash",93,"\\\\",220,"VK_OEM_5","\\\\","OEM_5"],[0,56,"IntlHash",0,e,0,e,e,e],[0,57,"Semicolon",85,";",186,"VK_OEM_1",";","OEM_1"],[0,58,"Quote",95,"'",222,"VK_OEM_7","'","OEM_7"],[0,59,"Backquote",91,"\`",192,"VK_OEM_3","\`","OEM_3"],[0,60,"Comma",87,",",188,"VK_OEM_COMMA",",","OEM_COMMA"],[0,61,"Period",89,".",190,"VK_OEM_PERIOD",".","OEM_PERIOD"],[0,62,"Slash",90,"/",191,"VK_OEM_2","/","OEM_2"],[1,63,"CapsLock",8,"CapsLock",20,"VK_CAPITAL",e,e],[1,64,"F1",59,"F1",112,"VK_F1",e,e],[1,65,"F2",60,"F2",113,"VK_F2",e,e],[1,66,"F3",61,"F3",114,"VK_F3",e,e],[1,67,"F4",62,"F4",115,"VK_F4",e,e],[1,68,"F5",63,"F5",116,"VK_F5",e,e],[1,69,"F6",64,"F6",117,"VK_F6",e,e],[1,70,"F7",65,"F7",118,"VK_F7",e,e],[1,71,"F8",66,"F8",119,"VK_F8",e,e],[1,72,"F9",67,"F9",120,"VK_F9",e,e],[1,73,"F10",68,"F10",121,"VK_F10",e,e],[1,74,"F11",69,"F11",122,"VK_F11",e,e],[1,75,"F12",70,"F12",123,"VK_F12",e,e],[1,76,"PrintScreen",0,e,0,e,e,e],[1,77,"ScrollLock",84,"ScrollLock",145,"VK_SCROLL",e,e],[1,78,"Pause",7,"PauseBreak",19,"VK_PAUSE",e,e],[1,79,"Insert",19,"Insert",45,"VK_INSERT",e,e],[1,80,"Home",14,"Home",36,"VK_HOME",e,e],[1,81,"PageUp",11,"PageUp",33,"VK_PRIOR",e,e],[1,82,"Delete",20,"Delete",46,"VK_DELETE",e,e],[1,83,"End",13,"End",35,"VK_END",e,e],[1,84,"PageDown",12,"PageDown",34,"VK_NEXT",e,e],[1,85,"ArrowRight",17,"RightArrow",39,"VK_RIGHT","Right",e],[1,86,"ArrowLeft",15,"LeftArrow",37,"VK_LEFT","Left",e],[1,87,"ArrowDown",18,"DownArrow",40,"VK_DOWN","Down",e],[1,88,"ArrowUp",16,"UpArrow",38,"VK_UP","Up",e],[1,89,"NumLock",83,"NumLock",144,"VK_NUMLOCK",e,e],[1,90,"NumpadDivide",113,"NumPad_Divide",111,"VK_DIVIDE",e,e],[1,91,"NumpadMultiply",108,"NumPad_Multiply",106,"VK_MULTIPLY",e,e],[1,92,"NumpadSubtract",111,"NumPad_Subtract",109,"VK_SUBTRACT",e,e],[1,93,"NumpadAdd",109,"NumPad_Add",107,"VK_ADD",e,e],[1,94,"NumpadEnter",3,e,0,e,e,e],[1,95,"Numpad1",99,"NumPad1",97,"VK_NUMPAD1",e,e],[1,96,"Numpad2",100,"NumPad2",98,"VK_NUMPAD2",e,e],[1,97,"Numpad3",101,"NumPad3",99,"VK_NUMPAD3",e,e],[1,98,"Numpad4",102,"NumPad4",100,"VK_NUMPAD4",e,e],[1,99,"Numpad5",103,"NumPad5",101,"VK_NUMPAD5",e,e],[1,100,"Numpad6",104,"NumPad6",102,"VK_NUMPAD6",e,e],[1,101,"Numpad7",105,"NumPad7",103,"VK_NUMPAD7",e,e],[1,102,"Numpad8",106,"NumPad8",104,"VK_NUMPAD8",e,e],[1,103,"Numpad9",107,"NumPad9",105,"VK_NUMPAD9",e,e],[1,104,"Numpad0",98,"NumPad0",96,"VK_NUMPAD0",e,e],[1,105,"NumpadDecimal",112,"NumPad_Decimal",110,"VK_DECIMAL",e,e],[0,106,"IntlBackslash",97,"OEM_102",226,"VK_OEM_102",e,e],[1,107,"ContextMenu",58,"ContextMenu",93,e,e,e],[1,108,"Power",0,e,0,e,e,e],[1,109,"NumpadEqual",0,e,0,e,e,e],[1,110,"F13",71,"F13",124,"VK_F13",e,e],[1,111,"F14",72,"F14",125,"VK_F14",e,e],[1,112,"F15",73,"F15",126,"VK_F15",e,e],[1,113,"F16",74,"F16",127,"VK_F16",e,e],[1,114,"F17",75,"F17",128,"VK_F17",e,e],[1,115,"F18",76,"F18",129,"VK_F18",e,e],[1,116,"F19",77,"F19",130,"VK_F19",e,e],[1,117,"F20",78,"F20",131,"VK_F20",e,e],[1,118,"F21",79,"F21",132,"VK_F21",e,e],[1,119,"F22",80,"F22",133,"VK_F22",e,e],[1,120,"F23",81,"F23",134,"VK_F23",e,e],[1,121,"F24",82,"F24",135,"VK_F24",e,e],[1,122,"Open",0,e,0,e,e,e],[1,123,"Help",0,e,0,e,e,e],[1,124,"Select",0,e,0,e,e,e],[1,125,"Again",0,e,0,e,e,e],[1,126,"Undo",0,e,0,e,e,e],[1,127,"Cut",0,e,0,e,e,e],[1,128,"Copy",0,e,0,e,e,e],[1,129,"Paste",0,e,0,e,e,e],[1,130,"Find",0,e,0,e,e,e],[1,131,"AudioVolumeMute",117,"AudioVolumeMute",173,"VK_VOLUME_MUTE",e,e],[1,132,"AudioVolumeUp",118,"AudioVolumeUp",175,"VK_VOLUME_UP",e,e],[1,133,"AudioVolumeDown",119,"AudioVolumeDown",174,"VK_VOLUME_DOWN",e,e],[1,134,"NumpadComma",110,"NumPad_Separator",108,"VK_SEPARATOR",e,e],[0,135,"IntlRo",115,"ABNT_C1",193,"VK_ABNT_C1",e,e],[1,136,"KanaMode",0,e,0,e,e,e],[0,137,"IntlYen",0,e,0,e,e,e],[1,138,"Convert",0,e,0,e,e,e],[1,139,"NonConvert",0,e,0,e,e,e],[1,140,"Lang1",0,e,0,e,e,e],[1,141,"Lang2",0,e,0,e,e,e],[1,142,"Lang3",0,e,0,e,e,e],[1,143,"Lang4",0,e,0,e,e,e],[1,144,"Lang5",0,e,0,e,e,e],[1,145,"Abort",0,e,0,e,e,e],[1,146,"Props",0,e,0,e,e,e],[1,147,"NumpadParenLeft",0,e,0,e,e,e],[1,148,"NumpadParenRight",0,e,0,e,e,e],[1,149,"NumpadBackspace",0,e,0,e,e,e],[1,150,"NumpadMemoryStore",0,e,0,e,e,e],[1,151,"NumpadMemoryRecall",0,e,0,e,e,e],[1,152,"NumpadMemoryClear",0,e,0,e,e,e],[1,153,"NumpadMemoryAdd",0,e,0,e,e,e],[1,154,"NumpadMemorySubtract",0,e,0,e,e,e],[1,155,"NumpadClear",131,"Clear",12,"VK_CLEAR",e,e],[1,156,"NumpadClearEntry",0,e,0,e,e,e],[1,0,e,5,"Ctrl",17,"VK_CONTROL",e,e],[1,0,e,4,"Shift",16,"VK_SHIFT",e,e],[1,0,e,6,"Alt",18,"VK_MENU",e,e],[1,0,e,57,"Meta",91,"VK_COMMAND",e,e],[1,157,"ControlLeft",5,e,0,"VK_LCONTROL",e,e],[1,158,"ShiftLeft",4,e,0,"VK_LSHIFT",e,e],[1,159,"AltLeft",6,e,0,"VK_LMENU",e,e],[1,160,"MetaLeft",57,e,0,"VK_LWIN",e,e],[1,161,"ControlRight",5,e,0,"VK_RCONTROL",e,e],[1,162,"ShiftRight",4,e,0,"VK_RSHIFT",e,e],[1,163,"AltRight",6,e,0,"VK_RMENU",e,e],[1,164,"MetaRight",57,e,0,"VK_RWIN",e,e],[1,165,"BrightnessUp",0,e,0,e,e,e],[1,166,"BrightnessDown",0,e,0,e,e,e],[1,167,"MediaPlay",0,e,0,e,e,e],[1,168,"MediaRecord",0,e,0,e,e,e],[1,169,"MediaFastForward",0,e,0,e,e,e],[1,170,"MediaRewind",0,e,0,e,e,e],[1,171,"MediaTrackNext",124,"MediaTrackNext",176,"VK_MEDIA_NEXT_TRACK",e,e],[1,172,"MediaTrackPrevious",125,"MediaTrackPrevious",177,"VK_MEDIA_PREV_TRACK",e,e],[1,173,"MediaStop",126,"MediaStop",178,"VK_MEDIA_STOP",e,e],[1,174,"Eject",0,e,0,e,e,e],[1,175,"MediaPlayPause",127,"MediaPlayPause",179,"VK_MEDIA_PLAY_PAUSE",e,e],[1,176,"MediaSelect",128,"LaunchMediaPlayer",181,"VK_MEDIA_LAUNCH_MEDIA_SELECT",e,e],[1,177,"LaunchMail",129,"LaunchMail",180,"VK_MEDIA_LAUNCH_MAIL",e,e],[1,178,"LaunchApp2",130,"LaunchApp2",183,"VK_MEDIA_LAUNCH_APP2",e,e],[1,179,"LaunchApp1",0,e,0,"VK_MEDIA_LAUNCH_APP1",e,e],[1,180,"SelectTask",0,e,0,e,e,e],[1,181,"LaunchScreenSaver",0,e,0,e,e,e],[1,182,"BrowserSearch",120,"BrowserSearch",170,"VK_BROWSER_SEARCH",e,e],[1,183,"BrowserHome",121,"BrowserHome",172,"VK_BROWSER_HOME",e,e],[1,184,"BrowserBack",122,"BrowserBack",166,"VK_BROWSER_BACK",e,e],[1,185,"BrowserForward",123,"BrowserForward",167,"VK_BROWSER_FORWARD",e,e],[1,186,"BrowserStop",0,e,0,"VK_BROWSER_STOP",e,e],[1,187,"BrowserRefresh",0,e,0,"VK_BROWSER_REFRESH",e,e],[1,188,"BrowserFavorites",0,e,0,"VK_BROWSER_FAVORITES",e,e],[1,189,"ZoomToggle",0,e,0,e,e,e],[1,190,"MailReply",0,e,0,e,e,e],[1,191,"MailForward",0,e,0,e,e,e],[1,192,"MailSend",0,e,0,e,e,e],[1,0,e,114,"KeyInComposition",229,e,e,e],[1,0,e,116,"ABNT_C2",194,"VK_ABNT_C2",e,e],[1,0,e,96,"OEM_8",223,"VK_OEM_8",e,e],[1,0,e,0,e,0,"VK_KANA",e,e],[1,0,e,0,e,0,"VK_HANGUL",e,e],[1,0,e,0,e,0,"VK_JUNJA",e,e],[1,0,e,0,e,0,"VK_FINAL",e,e],[1,0,e,0,e,0,"VK_HANJA",e,e],[1,0,e,0,e,0,"VK_KANJI",e,e],[1,0,e,0,e,0,"VK_CONVERT",e,e],[1,0,e,0,e,0,"VK_NONCONVERT",e,e],[1,0,e,0,e,0,"VK_ACCEPT",e,e],[1,0,e,0,e,0,"VK_MODECHANGE",e,e],[1,0,e,0,e,0,"VK_SELECT",e,e],[1,0,e,0,e,0,"VK_PRINT",e,e],[1,0,e,0,e,0,"VK_EXECUTE",e,e],[1,0,e,0,e,0,"VK_SNAPSHOT",e,e],[1,0,e,0,e,0,"VK_HELP",e,e],[1,0,e,0,e,0,"VK_APPS",e,e],[1,0,e,0,e,0,"VK_PROCESSKEY",e,e],[1,0,e,0,e,0,"VK_PACKET",e,e],[1,0,e,0,e,0,"VK_DBE_SBCSCHAR",e,e],[1,0,e,0,e,0,"VK_DBE_DBCSCHAR",e,e],[1,0,e,0,e,0,"VK_ATTN",e,e],[1,0,e,0,e,0,"VK_CRSEL",e,e],[1,0,e,0,e,0,"VK_EXSEL",e,e],[1,0,e,0,e,0,"VK_EREOF",e,e],[1,0,e,0,e,0,"VK_PLAY",e,e],[1,0,e,0,e,0,"VK_ZOOM",e,e],[1,0,e,0,e,0,"VK_NONAME",e,e],[1,0,e,0,e,0,"VK_PA1",e,e],[1,0,e,0,e,0,"VK_OEM_CLEAR",e,e]],n=[],r=[];for(const i of t){const[s,a,l,o,c,d,u,f,m]=i;if(r[a]||(r[a]=!0,Pd[l]=a,Td[l.toLowerCase()]=a),!n[o]){if(n[o]=!0,!c)throw new Error(\`String representation missing for key code \${o} around scan code \${l}\`);Yn.define(o,c),li.define(o,f||c),ci.define(o,m||f||c)}d&&(zd[d]=o)}})();var ga;(function(e){function t(l){return Yn.keyCodeToStr(l)}e.toString=t;function n(l){return Yn.strToKeyCode(l)}e.fromString=n;function r(l){return li.keyCodeToStr(l)}e.toUserSettingsUS=r;function i(l){return ci.keyCodeToStr(l)}e.toUserSettingsGeneral=i;function s(l){return li.strToKeyCode(l)||ci.strToKeyCode(l)}e.fromUserSettings=s;function a(l){if(l>=98&&l<=113)return null;switch(l){case 16:return"Up";case 18:return"Down";case 15:return"Left";case 17:return"Right"}return Yn.keyCodeToStr(l)}e.toElectronAccelerator=a})(ga||(ga={}));function Od(e,t){const n=(t&65535)<<16>>>0;return(e|n)>>>0}class Fe extends Q{constructor(t,n,r,i){super(t,n,r,i),this.selectionStartLineNumber=t,this.selectionStartColumn=n,this.positionLineNumber=r,this.positionColumn=i}toString(){return"["+this.selectionStartLineNumber+","+this.selectionStartColumn+" -> "+this.positionLineNumber+","+this.positionColumn+"]"}equalsSelection(t){return Fe.selectionsEqual(this,t)}static selectionsEqual(t,n){return t.selectionStartLineNumber===n.selectionStartLineNumber&&t.selectionStartColumn===n.selectionStartColumn&&t.positionLineNumber===n.positionLineNumber&&t.positionColumn===n.positionColumn}getDirection(){return this.selectionStartLineNumber===this.startLineNumber&&this.selectionStartColumn===this.startColumn?0:1}setEndPosition(t,n){return this.getDirection()===0?new Fe(this.startLineNumber,this.startColumn,t,n):new Fe(t,n,this.startLineNumber,this.startColumn)}getPosition(){return new he(this.positionLineNumber,this.positionColumn)}getSelectionStart(){return new he(this.selectionStartLineNumber,this.selectionStartColumn)}setStartPosition(t,n){return this.getDirection()===0?new Fe(t,n,this.endLineNumber,this.endColumn):new Fe(this.endLineNumber,this.endColumn,t,n)}static fromPositions(t,n=t){return new Fe(t.lineNumber,t.column,n.lineNumber,n.column)}static fromRange(t,n){return n===0?new Fe(t.startLineNumber,t.startColumn,t.endLineNumber,t.endColumn):new Fe(t.endLineNumber,t.endColumn,t.startLineNumber,t.startColumn)}static liftSelection(t){return new Fe(t.selectionStartLineNumber,t.selectionStartColumn,t.positionLineNumber,t.positionColumn)}static selectionsArrEqual(t,n){if(t&&!n||!t&&n)return!1;if(!t&&!n)return!0;if(t.length!==n.length)return!1;for(let r=0,i=t.length;r<i;r++)if(!this.selectionsEqual(t[r],n[r]))return!1;return!0}static isISelection(t){return t&&typeof t.selectionStartLineNumber=="number"&&typeof t.selectionStartColumn=="number"&&typeof t.positionLineNumber=="number"&&typeof t.positionColumn=="number"}static createWithDirection(t,n,r,i,s){return s===0?new Fe(t,n,r,i):new Fe(r,i,t,n)}}function Wd(e){return typeof e=="string"}const ba=Object.create(null);function h(e,t){if(Wd(t)){const n=ba[t];if(n===void 0)throw new Error(\`\${e} references an unknown codicon: \${t}\`);t=n}return ba[e]=t,{id:e}}const Ud={add:h("add",6e4),plus:h("plus",6e4),gistNew:h("gist-new",6e4),repoCreate:h("repo-create",6e4),lightbulb:h("lightbulb",60001),lightBulb:h("light-bulb",60001),repo:h("repo",60002),repoDelete:h("repo-delete",60002),gistFork:h("gist-fork",60003),repoForked:h("repo-forked",60003),gitPullRequest:h("git-pull-request",60004),gitPullRequestAbandoned:h("git-pull-request-abandoned",60004),recordKeys:h("record-keys",60005),keyboard:h("keyboard",60005),tag:h("tag",60006),gitPullRequestLabel:h("git-pull-request-label",60006),tagAdd:h("tag-add",60006),tagRemove:h("tag-remove",60006),person:h("person",60007),personFollow:h("person-follow",60007),personOutline:h("person-outline",60007),personFilled:h("person-filled",60007),gitBranch:h("git-branch",60008),gitBranchCreate:h("git-branch-create",60008),gitBranchDelete:h("git-branch-delete",60008),sourceControl:h("source-control",60008),mirror:h("mirror",60009),mirrorPublic:h("mirror-public",60009),star:h("star",60010),starAdd:h("star-add",60010),starDelete:h("star-delete",60010),starEmpty:h("star-empty",60010),comment:h("comment",60011),commentAdd:h("comment-add",60011),alert:h("alert",60012),warning:h("warning",60012),search:h("search",60013),searchSave:h("search-save",60013),logOut:h("log-out",60014),signOut:h("sign-out",60014),logIn:h("log-in",60015),signIn:h("sign-in",60015),eye:h("eye",60016),eyeUnwatch:h("eye-unwatch",60016),eyeWatch:h("eye-watch",60016),circleFilled:h("circle-filled",60017),primitiveDot:h("primitive-dot",60017),closeDirty:h("close-dirty",60017),debugBreakpoint:h("debug-breakpoint",60017),debugBreakpointDisabled:h("debug-breakpoint-disabled",60017),debugHint:h("debug-hint",60017),terminalDecorationSuccess:h("terminal-decoration-success",60017),primitiveSquare:h("primitive-square",60018),edit:h("edit",60019),pencil:h("pencil",60019),info:h("info",60020),issueOpened:h("issue-opened",60020),gistPrivate:h("gist-private",60021),gitForkPrivate:h("git-fork-private",60021),lock:h("lock",60021),mirrorPrivate:h("mirror-private",60021),close:h("close",60022),removeClose:h("remove-close",60022),x:h("x",60022),repoSync:h("repo-sync",60023),sync:h("sync",60023),clone:h("clone",60024),desktopDownload:h("desktop-download",60024),beaker:h("beaker",60025),microscope:h("microscope",60025),vm:h("vm",60026),deviceDesktop:h("device-desktop",60026),file:h("file",60027),fileText:h("file-text",60027),more:h("more",60028),ellipsis:h("ellipsis",60028),kebabHorizontal:h("kebab-horizontal",60028),mailReply:h("mail-reply",60029),reply:h("reply",60029),organization:h("organization",60030),organizationFilled:h("organization-filled",60030),organizationOutline:h("organization-outline",60030),newFile:h("new-file",60031),fileAdd:h("file-add",60031),newFolder:h("new-folder",60032),fileDirectoryCreate:h("file-directory-create",60032),trash:h("trash",60033),trashcan:h("trashcan",60033),history:h("history",60034),clock:h("clock",60034),folder:h("folder",60035),fileDirectory:h("file-directory",60035),symbolFolder:h("symbol-folder",60035),logoGithub:h("logo-github",60036),markGithub:h("mark-github",60036),github:h("github",60036),terminal:h("terminal",60037),console:h("console",60037),repl:h("repl",60037),zap:h("zap",60038),symbolEvent:h("symbol-event",60038),error:h("error",60039),stop:h("stop",60039),variable:h("variable",60040),symbolVariable:h("symbol-variable",60040),array:h("array",60042),symbolArray:h("symbol-array",60042),symbolModule:h("symbol-module",60043),symbolPackage:h("symbol-package",60043),symbolNamespace:h("symbol-namespace",60043),symbolObject:h("symbol-object",60043),symbolMethod:h("symbol-method",60044),symbolFunction:h("symbol-function",60044),symbolConstructor:h("symbol-constructor",60044),symbolBoolean:h("symbol-boolean",60047),symbolNull:h("symbol-null",60047),symbolNumeric:h("symbol-numeric",60048),symbolNumber:h("symbol-number",60048),symbolStructure:h("symbol-structure",60049),symbolStruct:h("symbol-struct",60049),symbolParameter:h("symbol-parameter",60050),symbolTypeParameter:h("symbol-type-parameter",60050),symbolKey:h("symbol-key",60051),symbolText:h("symbol-text",60051),symbolReference:h("symbol-reference",60052),goToFile:h("go-to-file",60052),symbolEnum:h("symbol-enum",60053),symbolValue:h("symbol-value",60053),symbolRuler:h("symbol-ruler",60054),symbolUnit:h("symbol-unit",60054),activateBreakpoints:h("activate-breakpoints",60055),archive:h("archive",60056),arrowBoth:h("arrow-both",60057),arrowDown:h("arrow-down",60058),arrowLeft:h("arrow-left",60059),arrowRight:h("arrow-right",60060),arrowSmallDown:h("arrow-small-down",60061),arrowSmallLeft:h("arrow-small-left",60062),arrowSmallRight:h("arrow-small-right",60063),arrowSmallUp:h("arrow-small-up",60064),arrowUp:h("arrow-up",60065),bell:h("bell",60066),bold:h("bold",60067),book:h("book",60068),bookmark:h("bookmark",60069),debugBreakpointConditionalUnverified:h("debug-breakpoint-conditional-unverified",60070),debugBreakpointConditional:h("debug-breakpoint-conditional",60071),debugBreakpointConditionalDisabled:h("debug-breakpoint-conditional-disabled",60071),debugBreakpointDataUnverified:h("debug-breakpoint-data-unverified",60072),debugBreakpointData:h("debug-breakpoint-data",60073),debugBreakpointDataDisabled:h("debug-breakpoint-data-disabled",60073),debugBreakpointLogUnverified:h("debug-breakpoint-log-unverified",60074),debugBreakpointLog:h("debug-breakpoint-log",60075),debugBreakpointLogDisabled:h("debug-breakpoint-log-disabled",60075),briefcase:h("briefcase",60076),broadcast:h("broadcast",60077),browser:h("browser",60078),bug:h("bug",60079),calendar:h("calendar",60080),caseSensitive:h("case-sensitive",60081),check:h("check",60082),checklist:h("checklist",60083),chevronDown:h("chevron-down",60084),chevronLeft:h("chevron-left",60085),chevronRight:h("chevron-right",60086),chevronUp:h("chevron-up",60087),chromeClose:h("chrome-close",60088),chromeMaximize:h("chrome-maximize",60089),chromeMinimize:h("chrome-minimize",60090),chromeRestore:h("chrome-restore",60091),circleOutline:h("circle-outline",60092),circle:h("circle",60092),debugBreakpointUnverified:h("debug-breakpoint-unverified",60092),terminalDecorationIncomplete:h("terminal-decoration-incomplete",60092),circleSlash:h("circle-slash",60093),circuitBoard:h("circuit-board",60094),clearAll:h("clear-all",60095),clippy:h("clippy",60096),closeAll:h("close-all",60097),cloudDownload:h("cloud-download",60098),cloudUpload:h("cloud-upload",60099),code:h("code",60100),collapseAll:h("collapse-all",60101),colorMode:h("color-mode",60102),commentDiscussion:h("comment-discussion",60103),creditCard:h("credit-card",60105),dash:h("dash",60108),dashboard:h("dashboard",60109),database:h("database",60110),debugContinue:h("debug-continue",60111),debugDisconnect:h("debug-disconnect",60112),debugPause:h("debug-pause",60113),debugRestart:h("debug-restart",60114),debugStart:h("debug-start",60115),debugStepInto:h("debug-step-into",60116),debugStepOut:h("debug-step-out",60117),debugStepOver:h("debug-step-over",60118),debugStop:h("debug-stop",60119),debug:h("debug",60120),deviceCameraVideo:h("device-camera-video",60121),deviceCamera:h("device-camera",60122),deviceMobile:h("device-mobile",60123),diffAdded:h("diff-added",60124),diffIgnored:h("diff-ignored",60125),diffModified:h("diff-modified",60126),diffRemoved:h("diff-removed",60127),diffRenamed:h("diff-renamed",60128),diff:h("diff",60129),diffSidebyside:h("diff-sidebyside",60129),discard:h("discard",60130),editorLayout:h("editor-layout",60131),emptyWindow:h("empty-window",60132),exclude:h("exclude",60133),extensions:h("extensions",60134),eyeClosed:h("eye-closed",60135),fileBinary:h("file-binary",60136),fileCode:h("file-code",60137),fileMedia:h("file-media",60138),filePdf:h("file-pdf",60139),fileSubmodule:h("file-submodule",60140),fileSymlinkDirectory:h("file-symlink-directory",60141),fileSymlinkFile:h("file-symlink-file",60142),fileZip:h("file-zip",60143),files:h("files",60144),filter:h("filter",60145),flame:h("flame",60146),foldDown:h("fold-down",60147),foldUp:h("fold-up",60148),fold:h("fold",60149),folderActive:h("folder-active",60150),folderOpened:h("folder-opened",60151),gear:h("gear",60152),gift:h("gift",60153),gistSecret:h("gist-secret",60154),gist:h("gist",60155),gitCommit:h("git-commit",60156),gitCompare:h("git-compare",60157),compareChanges:h("compare-changes",60157),gitMerge:h("git-merge",60158),githubAction:h("github-action",60159),githubAlt:h("github-alt",60160),globe:h("globe",60161),grabber:h("grabber",60162),graph:h("graph",60163),gripper:h("gripper",60164),heart:h("heart",60165),home:h("home",60166),horizontalRule:h("horizontal-rule",60167),hubot:h("hubot",60168),inbox:h("inbox",60169),issueReopened:h("issue-reopened",60171),issues:h("issues",60172),italic:h("italic",60173),jersey:h("jersey",60174),json:h("json",60175),kebabVertical:h("kebab-vertical",60176),key:h("key",60177),law:h("law",60178),lightbulbAutofix:h("lightbulb-autofix",60179),linkExternal:h("link-external",60180),link:h("link",60181),listOrdered:h("list-ordered",60182),listUnordered:h("list-unordered",60183),liveShare:h("live-share",60184),loading:h("loading",60185),location:h("location",60186),mailRead:h("mail-read",60187),mail:h("mail",60188),markdown:h("markdown",60189),megaphone:h("megaphone",60190),mention:h("mention",60191),milestone:h("milestone",60192),gitPullRequestMilestone:h("git-pull-request-milestone",60192),mortarBoard:h("mortar-board",60193),move:h("move",60194),multipleWindows:h("multiple-windows",60195),mute:h("mute",60196),noNewline:h("no-newline",60197),note:h("note",60198),octoface:h("octoface",60199),openPreview:h("open-preview",60200),package:h("package",60201),paintcan:h("paintcan",60202),pin:h("pin",60203),play:h("play",60204),run:h("run",60204),plug:h("plug",60205),preserveCase:h("preserve-case",60206),preview:h("preview",60207),project:h("project",60208),pulse:h("pulse",60209),question:h("question",60210),quote:h("quote",60211),radioTower:h("radio-tower",60212),reactions:h("reactions",60213),references:h("references",60214),refresh:h("refresh",60215),regex:h("regex",60216),remoteExplorer:h("remote-explorer",60217),remote:h("remote",60218),remove:h("remove",60219),replaceAll:h("replace-all",60220),replace:h("replace",60221),repoClone:h("repo-clone",60222),repoForcePush:h("repo-force-push",60223),repoPull:h("repo-pull",60224),repoPush:h("repo-push",60225),report:h("report",60226),requestChanges:h("request-changes",60227),rocket:h("rocket",60228),rootFolderOpened:h("root-folder-opened",60229),rootFolder:h("root-folder",60230),rss:h("rss",60231),ruby:h("ruby",60232),saveAll:h("save-all",60233),saveAs:h("save-as",60234),save:h("save",60235),screenFull:h("screen-full",60236),screenNormal:h("screen-normal",60237),searchStop:h("search-stop",60238),server:h("server",60240),settingsGear:h("settings-gear",60241),settings:h("settings",60242),shield:h("shield",60243),smiley:h("smiley",60244),sortPrecedence:h("sort-precedence",60245),splitHorizontal:h("split-horizontal",60246),splitVertical:h("split-vertical",60247),squirrel:h("squirrel",60248),starFull:h("star-full",60249),starHalf:h("star-half",60250),symbolClass:h("symbol-class",60251),symbolColor:h("symbol-color",60252),symbolConstant:h("symbol-constant",60253),symbolEnumMember:h("symbol-enum-member",60254),symbolField:h("symbol-field",60255),symbolFile:h("symbol-file",60256),symbolInterface:h("symbol-interface",60257),symbolKeyword:h("symbol-keyword",60258),symbolMisc:h("symbol-misc",60259),symbolOperator:h("symbol-operator",60260),symbolProperty:h("symbol-property",60261),wrench:h("wrench",60261),wrenchSubaction:h("wrench-subaction",60261),symbolSnippet:h("symbol-snippet",60262),tasklist:h("tasklist",60263),telescope:h("telescope",60264),textSize:h("text-size",60265),threeBars:h("three-bars",60266),thumbsdown:h("thumbsdown",60267),thumbsup:h("thumbsup",60268),tools:h("tools",60269),triangleDown:h("triangle-down",60270),triangleLeft:h("triangle-left",60271),triangleRight:h("triangle-right",60272),triangleUp:h("triangle-up",60273),twitter:h("twitter",60274),unfold:h("unfold",60275),unlock:h("unlock",60276),unmute:h("unmute",60277),unverified:h("unverified",60278),verified:h("verified",60279),versions:h("versions",60280),vmActive:h("vm-active",60281),vmOutline:h("vm-outline",60282),vmRunning:h("vm-running",60283),watch:h("watch",60284),whitespace:h("whitespace",60285),wholeWord:h("whole-word",60286),window:h("window",60287),wordWrap:h("word-wrap",60288),zoomIn:h("zoom-in",60289),zoomOut:h("zoom-out",60290),listFilter:h("list-filter",60291),listFlat:h("list-flat",60292),listSelection:h("list-selection",60293),selection:h("selection",60293),listTree:h("list-tree",60294),debugBreakpointFunctionUnverified:h("debug-breakpoint-function-unverified",60295),debugBreakpointFunction:h("debug-breakpoint-function",60296),debugBreakpointFunctionDisabled:h("debug-breakpoint-function-disabled",60296),debugStackframeActive:h("debug-stackframe-active",60297),circleSmallFilled:h("circle-small-filled",60298),debugStackframeDot:h("debug-stackframe-dot",60298),terminalDecorationMark:h("terminal-decoration-mark",60298),debugStackframe:h("debug-stackframe",60299),debugStackframeFocused:h("debug-stackframe-focused",60299),debugBreakpointUnsupported:h("debug-breakpoint-unsupported",60300),symbolString:h("symbol-string",60301),debugReverseContinue:h("debug-reverse-continue",60302),debugStepBack:h("debug-step-back",60303),debugRestartFrame:h("debug-restart-frame",60304),debugAlt:h("debug-alt",60305),callIncoming:h("call-incoming",60306),callOutgoing:h("call-outgoing",60307),menu:h("menu",60308),expandAll:h("expand-all",60309),feedback:h("feedback",60310),gitPullRequestReviewer:h("git-pull-request-reviewer",60310),groupByRefType:h("group-by-ref-type",60311),ungroupByRefType:h("ungroup-by-ref-type",60312),account:h("account",60313),gitPullRequestAssignee:h("git-pull-request-assignee",60313),bellDot:h("bell-dot",60314),debugConsole:h("debug-console",60315),library:h("library",60316),output:h("output",60317),runAll:h("run-all",60318),syncIgnored:h("sync-ignored",60319),pinned:h("pinned",60320),githubInverted:h("github-inverted",60321),serverProcess:h("server-process",60322),serverEnvironment:h("server-environment",60323),pass:h("pass",60324),issueClosed:h("issue-closed",60324),stopCircle:h("stop-circle",60325),playCircle:h("play-circle",60326),record:h("record",60327),debugAltSmall:h("debug-alt-small",60328),vmConnect:h("vm-connect",60329),cloud:h("cloud",60330),merge:h("merge",60331),export:h("export",60332),graphLeft:h("graph-left",60333),magnet:h("magnet",60334),notebook:h("notebook",60335),redo:h("redo",60336),checkAll:h("check-all",60337),pinnedDirty:h("pinned-dirty",60338),passFilled:h("pass-filled",60339),circleLargeFilled:h("circle-large-filled",60340),circleLarge:h("circle-large",60341),circleLargeOutline:h("circle-large-outline",60341),combine:h("combine",60342),gather:h("gather",60342),table:h("table",60343),variableGroup:h("variable-group",60344),typeHierarchy:h("type-hierarchy",60345),typeHierarchySub:h("type-hierarchy-sub",60346),typeHierarchySuper:h("type-hierarchy-super",60347),gitPullRequestCreate:h("git-pull-request-create",60348),runAbove:h("run-above",60349),runBelow:h("run-below",60350),notebookTemplate:h("notebook-template",60351),debugRerun:h("debug-rerun",60352),workspaceTrusted:h("workspace-trusted",60353),workspaceUntrusted:h("workspace-untrusted",60354),workspaceUnknown:h("workspace-unknown",60355),terminalCmd:h("terminal-cmd",60356),terminalDebian:h("terminal-debian",60357),terminalLinux:h("terminal-linux",60358),terminalPowershell:h("terminal-powershell",60359),terminalTmux:h("terminal-tmux",60360),terminalUbuntu:h("terminal-ubuntu",60361),terminalBash:h("terminal-bash",60362),arrowSwap:h("arrow-swap",60363),copy:h("copy",60364),personAdd:h("person-add",60365),filterFilled:h("filter-filled",60366),wand:h("wand",60367),debugLineByLine:h("debug-line-by-line",60368),inspect:h("inspect",60369),layers:h("layers",60370),layersDot:h("layers-dot",60371),layersActive:h("layers-active",60372),compass:h("compass",60373),compassDot:h("compass-dot",60374),compassActive:h("compass-active",60375),azure:h("azure",60376),issueDraft:h("issue-draft",60377),gitPullRequestClosed:h("git-pull-request-closed",60378),gitPullRequestDraft:h("git-pull-request-draft",60379),debugAll:h("debug-all",60380),debugCoverage:h("debug-coverage",60381),runErrors:h("run-errors",60382),folderLibrary:h("folder-library",60383),debugContinueSmall:h("debug-continue-small",60384),beakerStop:h("beaker-stop",60385),graphLine:h("graph-line",60386),graphScatter:h("graph-scatter",60387),pieChart:h("pie-chart",60388),bracket:h("bracket",60175),bracketDot:h("bracket-dot",60389),bracketError:h("bracket-error",60390),lockSmall:h("lock-small",60391),azureDevops:h("azure-devops",60392),verifiedFilled:h("verified-filled",60393),newline:h("newline",60394),layout:h("layout",60395),layoutActivitybarLeft:h("layout-activitybar-left",60396),layoutActivitybarRight:h("layout-activitybar-right",60397),layoutPanelLeft:h("layout-panel-left",60398),layoutPanelCenter:h("layout-panel-center",60399),layoutPanelJustify:h("layout-panel-justify",60400),layoutPanelRight:h("layout-panel-right",60401),layoutPanel:h("layout-panel",60402),layoutSidebarLeft:h("layout-sidebar-left",60403),layoutSidebarRight:h("layout-sidebar-right",60404),layoutStatusbar:h("layout-statusbar",60405),layoutMenubar:h("layout-menubar",60406),layoutCentered:h("layout-centered",60407),target:h("target",60408),indent:h("indent",60409),recordSmall:h("record-small",60410),errorSmall:h("error-small",60411),terminalDecorationError:h("terminal-decoration-error",60411),arrowCircleDown:h("arrow-circle-down",60412),arrowCircleLeft:h("arrow-circle-left",60413),arrowCircleRight:h("arrow-circle-right",60414),arrowCircleUp:h("arrow-circle-up",60415),layoutSidebarRightOff:h("layout-sidebar-right-off",60416),layoutPanelOff:h("layout-panel-off",60417),layoutSidebarLeftOff:h("layout-sidebar-left-off",60418),blank:h("blank",60419),heartFilled:h("heart-filled",60420),map:h("map",60421),mapHorizontal:h("map-horizontal",60421),foldHorizontal:h("fold-horizontal",60421),mapFilled:h("map-filled",60422),mapHorizontalFilled:h("map-horizontal-filled",60422),foldHorizontalFilled:h("fold-horizontal-filled",60422),circleSmall:h("circle-small",60423),bellSlash:h("bell-slash",60424),bellSlashDot:h("bell-slash-dot",60425),commentUnresolved:h("comment-unresolved",60426),gitPullRequestGoToChanges:h("git-pull-request-go-to-changes",60427),gitPullRequestNewChanges:h("git-pull-request-new-changes",60428),searchFuzzy:h("search-fuzzy",60429),commentDraft:h("comment-draft",60430),send:h("send",60431),sparkle:h("sparkle",60432),insert:h("insert",60433),mic:h("mic",60434),thumbsdownFilled:h("thumbsdown-filled",60435),thumbsupFilled:h("thumbsup-filled",60436),coffee:h("coffee",60437),snake:h("snake",60438),game:h("game",60439),vr:h("vr",60440),chip:h("chip",60441),piano:h("piano",60442),music:h("music",60443),micFilled:h("mic-filled",60444),repoFetch:h("repo-fetch",60445),copilot:h("copilot",60446),lightbulbSparkle:h("lightbulb-sparkle",60447),robot:h("robot",60448),sparkleFilled:h("sparkle-filled",60449),diffSingle:h("diff-single",60450),diffMultiple:h("diff-multiple",60451),surroundWith:h("surround-with",60452),share:h("share",60453),gitStash:h("git-stash",60454),gitStashApply:h("git-stash-apply",60455),gitStashPop:h("git-stash-pop",60456),vscode:h("vscode",60457),vscodeInsiders:h("vscode-insiders",60458),codeOss:h("code-oss",60459),runCoverage:h("run-coverage",60460),runAllCoverage:h("run-all-coverage",60461),coverage:h("coverage",60462),githubProject:h("github-project",60463),mapVertical:h("map-vertical",60464),foldVertical:h("fold-vertical",60464),mapVerticalFilled:h("map-vertical-filled",60465),foldVerticalFilled:h("fold-vertical-filled",60465),goToSearch:h("go-to-search",60466),percentage:h("percentage",60467),sortPercentage:h("sort-percentage",60467),attach:h("attach",60468)},Vd={dialogError:h("dialog-error","error"),dialogWarning:h("dialog-warning","warning"),dialogInfo:h("dialog-info","info"),dialogClose:h("dialog-close","close"),treeItemExpanded:h("tree-item-expanded","chevron-down"),treeFilterOnTypeOn:h("tree-filter-on-type-on","list-filter"),treeFilterOnTypeOff:h("tree-filter-on-type-off","list-selection"),treeFilterClear:h("tree-filter-clear","close"),treeItemLoading:h("tree-item-loading","loading"),menuSelection:h("menu-selection","check"),menuSubmenu:h("menu-submenu","chevron-right"),menuBarMore:h("menubar-more","more"),scrollbarButtonLeft:h("scrollbar-button-left","triangle-left"),scrollbarButtonRight:h("scrollbar-button-right","triangle-right"),scrollbarButtonUp:h("scrollbar-button-up","triangle-up"),scrollbarButtonDown:h("scrollbar-button-down","triangle-down"),toolBarMore:h("toolbar-more","more"),quickInputBack:h("quick-input-back","arrow-left"),dropDownButton:h("drop-down-button",60084),symbolCustomColor:h("symbol-customcolor",60252),exportIcon:h("export",60332),workspaceUnspecified:h("workspace-unspecified",60355),newLine:h("newline",60394),thumbsDownFilled:h("thumbsdown-filled",60435),thumbsUpFilled:h("thumbsup-filled",60436),gitFetch:h("git-fetch",60445),lightbulbSparkleAutofix:h("lightbulb-sparkle-autofix",60447),debugBreakpointPending:h("debug-breakpoint-pending",60377)},W={...Ud,...Vd};class va{constructor(){this._tokenizationSupports=new Map,this._factories=new Map,this._onDidChange=new De,this.onDidChange=this._onDidChange.event,this._colorMap=null}handleChange(t){this._onDidChange.fire({changedLanguages:t,changedColorMap:!1})}register(t,n){return this._tokenizationSupports.set(t,n),this.handleChange([t]),Wn(()=>{this._tokenizationSupports.get(t)===n&&(this._tokenizationSupports.delete(t),this.handleChange([t]))})}get(t){return this._tokenizationSupports.get(t)||null}registerFactory(t,n){this._factories.get(t)?.dispose();const r=new $d(this,t,n);return this._factories.set(t,r),Wn(()=>{const i=this._factories.get(t);!i||i!==r||(this._factories.delete(t),i.dispose())})}async getOrCreate(t){const n=this.get(t);if(n)return n;const r=this._factories.get(t);return!r||r.isResolved?null:(await r.resolve(),this.get(t))}isResolved(t){if(this.get(t))return!0;const r=this._factories.get(t);return!!(!r||r.isResolved)}setColorMap(t){this._colorMap=t,this._onDidChange.fire({changedLanguages:Array.from(this._tokenizationSupports.keys()),changedColorMap:!0})}getColorMap(){return this._colorMap}getDefaultBackground(){return this._colorMap&&this._colorMap.length>2?this._colorMap[2]:null}}class $d extends zt{get isResolved(){return this._isResolved}constructor(t,n,r){super(),this._registry=t,this._languageId=n,this._factory=r,this._isDisposed=!1,this._resolvePromise=null,this._isResolved=!1}dispose(){this._isDisposed=!0,super.dispose()}async resolve(){return this._resolvePromise||(this._resolvePromise=this._create()),this._resolvePromise}async _create(){const t=await this._factory.tokenizationSupport;this._isResolved=!0,t&&!this._isDisposed&&this._register(this._registry.register(this._languageId,t))}}class Bd{constructor(t,n,r){this.offset=t,this.type=n,this.language=r,this._tokenBrand=void 0}toString(){return"("+this.offset+", "+this.type+")"}}var wa;(function(e){e[e.Increase=0]="Increase",e[e.Decrease=1]="Decrease"})(wa||(wa={}));var ya;(function(e){const t=new Map;t.set(0,W.symbolMethod),t.set(1,W.symbolFunction),t.set(2,W.symbolConstructor),t.set(3,W.symbolField),t.set(4,W.symbolVariable),t.set(5,W.symbolClass),t.set(6,W.symbolStruct),t.set(7,W.symbolInterface),t.set(8,W.symbolModule),t.set(9,W.symbolProperty),t.set(10,W.symbolEvent),t.set(11,W.symbolOperator),t.set(12,W.symbolUnit),t.set(13,W.symbolValue),t.set(15,W.symbolEnum),t.set(14,W.symbolConstant),t.set(15,W.symbolEnum),t.set(16,W.symbolEnumMember),t.set(17,W.symbolKeyword),t.set(27,W.symbolSnippet),t.set(18,W.symbolText),t.set(19,W.symbolColor),t.set(20,W.symbolFile),t.set(21,W.symbolReference),t.set(22,W.symbolCustomColor),t.set(23,W.symbolFolder),t.set(24,W.symbolTypeParameter),t.set(25,W.account),t.set(26,W.issues);function n(s){let a=t.get(s);return a||(console.info("No codicon found for CompletionItemKind "+s),a=W.symbolProperty),a}e.toIcon=n;const r=new Map;r.set("method",0),r.set("function",1),r.set("constructor",2),r.set("field",3),r.set("variable",4),r.set("class",5),r.set("struct",6),r.set("interface",7),r.set("module",8),r.set("property",9),r.set("event",10),r.set("operator",11),r.set("unit",12),r.set("value",13),r.set("constant",14),r.set("enum",15),r.set("enum-member",16),r.set("enumMember",16),r.set("keyword",17),r.set("snippet",27),r.set("text",18),r.set("color",19),r.set("file",20),r.set("reference",21),r.set("customcolor",22),r.set("folder",23),r.set("type-parameter",24),r.set("typeParameter",24),r.set("account",25),r.set("issue",26);function i(s,a){let l=r.get(s);return typeof l>"u"&&!a&&(l=9),l}e.fromString=i})(ya||(ya={}));var xa;(function(e){e[e.Automatic=0]="Automatic",e[e.Explicit=1]="Explicit"})(xa||(xa={}));var Sa;(function(e){e[e.Automatic=0]="Automatic",e[e.PasteAs=1]="PasteAs"})(Sa||(Sa={}));var Ca;(function(e){e[e.Invoke=1]="Invoke",e[e.TriggerCharacter=2]="TriggerCharacter",e[e.ContentChange=3]="ContentChange"})(Ca||(Ca={}));var _a;(function(e){e[e.Text=0]="Text",e[e.Read=1]="Read",e[e.Write=2]="Write"})(_a||(_a={})),re("Array","array"),re("Boolean","boolean"),re("Class","class"),re("Constant","constant"),re("Constructor","constructor"),re("Enum","enumeration"),re("EnumMember","enumeration member"),re("Event","event"),re("Field","field"),re("File","file"),re("Function","function"),re("Interface","interface"),re("Key","key"),re("Method","method"),re("Module","module"),re("Namespace","namespace"),re("Null","null"),re("Number","number"),re("Object","object"),re("Operator","operator"),re("Package","package"),re("Property","property"),re("String","string"),re("Struct","struct"),re("TypeParameter","type parameter"),re("Variable","variable");var ka;(function(e){const t=new Map;t.set(0,W.symbolFile),t.set(1,W.symbolModule),t.set(2,W.symbolNamespace),t.set(3,W.symbolPackage),t.set(4,W.symbolClass),t.set(5,W.symbolMethod),t.set(6,W.symbolProperty),t.set(7,W.symbolField),t.set(8,W.symbolConstructor),t.set(9,W.symbolEnum),t.set(10,W.symbolInterface),t.set(11,W.symbolFunction),t.set(12,W.symbolVariable),t.set(13,W.symbolConstant),t.set(14,W.symbolString),t.set(15,W.symbolNumber),t.set(16,W.symbolBoolean),t.set(17,W.symbolArray),t.set(18,W.symbolObject),t.set(19,W.symbolKey),t.set(20,W.symbolNull),t.set(21,W.symbolEnumMember),t.set(22,W.symbolStruct),t.set(23,W.symbolEvent),t.set(24,W.symbolOperator),t.set(25,W.symbolTypeParameter);function n(r){let i=t.get(r);return i||(console.info("No codicon found for SymbolKind "+r),i=W.symbolProperty),i}e.toIcon=n})(ka||(ka={}));let qf=(Se=class{static fromValue(t){switch(t){case"comment":return Se.Comment;case"imports":return Se.Imports;case"region":return Se.Region}return new Se(t)}constructor(t){this.value=t}},Se.Comment=new Se("comment"),Se.Imports=new Se("imports"),Se.Region=new Se("region"),Se);var Ea;(function(e){e[e.AIGenerated=1]="AIGenerated"})(Ea||(Ea={}));var Fa;(function(e){e[e.Invoke=0]="Invoke",e[e.Automatic=1]="Automatic"})(Fa||(Fa={}));var Ra;(function(e){function t(n){return!n||typeof n!="object"?!1:typeof n.id=="string"&&typeof n.title=="string"}e.is=t})(Ra||(Ra={}));var Na;(function(e){e[e.Type=1]="Type",e[e.Parameter=2]="Parameter"})(Na||(Na={})),new va,new va;var Da;(function(e){e[e.Invoke=0]="Invoke",e[e.Automatic=1]="Automatic"})(Da||(Da={}));var Ia;(function(e){e[e.Unknown=0]="Unknown",e[e.Disabled=1]="Disabled",e[e.Enabled=2]="Enabled"})(Ia||(Ia={}));var Aa;(function(e){e[e.Invoke=1]="Invoke",e[e.Auto=2]="Auto"})(Aa||(Aa={}));var Ma;(function(e){e[e.None=0]="None",e[e.KeepWhitespace=1]="KeepWhitespace",e[e.InsertAsSnippet=4]="InsertAsSnippet"})(Ma||(Ma={}));var La;(function(e){e[e.Method=0]="Method",e[e.Function=1]="Function",e[e.Constructor=2]="Constructor",e[e.Field=3]="Field",e[e.Variable=4]="Variable",e[e.Class=5]="Class",e[e.Struct=6]="Struct",e[e.Interface=7]="Interface",e[e.Module=8]="Module",e[e.Property=9]="Property",e[e.Event=10]="Event",e[e.Operator=11]="Operator",e[e.Unit=12]="Unit",e[e.Value=13]="Value",e[e.Constant=14]="Constant",e[e.Enum=15]="Enum",e[e.EnumMember=16]="EnumMember",e[e.Keyword=17]="Keyword",e[e.Text=18]="Text",e[e.Color=19]="Color",e[e.File=20]="File",e[e.Reference=21]="Reference",e[e.Customcolor=22]="Customcolor",e[e.Folder=23]="Folder",e[e.TypeParameter=24]="TypeParameter",e[e.User=25]="User",e[e.Issue=26]="Issue",e[e.Snippet=27]="Snippet"})(La||(La={}));var za;(function(e){e[e.Deprecated=1]="Deprecated"})(za||(za={}));var Pa;(function(e){e[e.Invoke=0]="Invoke",e[e.TriggerCharacter=1]="TriggerCharacter",e[e.TriggerForIncompleteCompletions=2]="TriggerForIncompleteCompletions"})(Pa||(Pa={}));var Ta;(function(e){e[e.EXACT=0]="EXACT",e[e.ABOVE=1]="ABOVE",e[e.BELOW=2]="BELOW"})(Ta||(Ta={}));var Oa;(function(e){e[e.NotSet=0]="NotSet",e[e.ContentFlush=1]="ContentFlush",e[e.RecoverFromMarkers=2]="RecoverFromMarkers",e[e.Explicit=3]="Explicit",e[e.Paste=4]="Paste",e[e.Undo=5]="Undo",e[e.Redo=6]="Redo"})(Oa||(Oa={}));var Wa;(function(e){e[e.LF=1]="LF",e[e.CRLF=2]="CRLF"})(Wa||(Wa={}));var Ua;(function(e){e[e.Text=0]="Text",e[e.Read=1]="Read",e[e.Write=2]="Write"})(Ua||(Ua={}));var Va;(function(e){e[e.None=0]="None",e[e.Keep=1]="Keep",e[e.Brackets=2]="Brackets",e[e.Advanced=3]="Advanced",e[e.Full=4]="Full"})(Va||(Va={}));var $a;(function(e){e[e.acceptSuggestionOnCommitCharacter=0]="acceptSuggestionOnCommitCharacter",e[e.acceptSuggestionOnEnter=1]="acceptSuggestionOnEnter",e[e.accessibilitySupport=2]="accessibilitySupport",e[e.accessibilityPageSize=3]="accessibilityPageSize",e[e.ariaLabel=4]="ariaLabel",e[e.ariaRequired=5]="ariaRequired",e[e.autoClosingBrackets=6]="autoClosingBrackets",e[e.autoClosingComments=7]="autoClosingComments",e[e.screenReaderAnnounceInlineSuggestion=8]="screenReaderAnnounceInlineSuggestion",e[e.autoClosingDelete=9]="autoClosingDelete",e[e.autoClosingOvertype=10]="autoClosingOvertype",e[e.autoClosingQuotes=11]="autoClosingQuotes",e[e.autoIndent=12]="autoIndent",e[e.automaticLayout=13]="automaticLayout",e[e.autoSurround=14]="autoSurround",e[e.bracketPairColorization=15]="bracketPairColorization",e[e.guides=16]="guides",e[e.codeLens=17]="codeLens",e[e.codeLensFontFamily=18]="codeLensFontFamily",e[e.codeLensFontSize=19]="codeLensFontSize",e[e.colorDecorators=20]="colorDecorators",e[e.colorDecoratorsLimit=21]="colorDecoratorsLimit",e[e.columnSelection=22]="columnSelection",e[e.comments=23]="comments",e[e.contextmenu=24]="contextmenu",e[e.copyWithSyntaxHighlighting=25]="copyWithSyntaxHighlighting",e[e.cursorBlinking=26]="cursorBlinking",e[e.cursorSmoothCaretAnimation=27]="cursorSmoothCaretAnimation",e[e.cursorStyle=28]="cursorStyle",e[e.cursorSurroundingLines=29]="cursorSurroundingLines",e[e.cursorSurroundingLinesStyle=30]="cursorSurroundingLinesStyle",e[e.cursorWidth=31]="cursorWidth",e[e.disableLayerHinting=32]="disableLayerHinting",e[e.disableMonospaceOptimizations=33]="disableMonospaceOptimizations",e[e.domReadOnly=34]="domReadOnly",e[e.dragAndDrop=35]="dragAndDrop",e[e.dropIntoEditor=36]="dropIntoEditor",e[e.emptySelectionClipboard=37]="emptySelectionClipboard",e[e.experimentalWhitespaceRendering=38]="experimentalWhitespaceRendering",e[e.extraEditorClassName=39]="extraEditorClassName",e[e.fastScrollSensitivity=40]="fastScrollSensitivity",e[e.find=41]="find",e[e.fixedOverflowWidgets=42]="fixedOverflowWidgets",e[e.folding=43]="folding",e[e.foldingStrategy=44]="foldingStrategy",e[e.foldingHighlight=45]="foldingHighlight",e[e.foldingImportsByDefault=46]="foldingImportsByDefault",e[e.foldingMaximumRegions=47]="foldingMaximumRegions",e[e.unfoldOnClickAfterEndOfLine=48]="unfoldOnClickAfterEndOfLine",e[e.fontFamily=49]="fontFamily",e[e.fontInfo=50]="fontInfo",e[e.fontLigatures=51]="fontLigatures",e[e.fontSize=52]="fontSize",e[e.fontWeight=53]="fontWeight",e[e.fontVariations=54]="fontVariations",e[e.formatOnPaste=55]="formatOnPaste",e[e.formatOnType=56]="formatOnType",e[e.glyphMargin=57]="glyphMargin",e[e.gotoLocation=58]="gotoLocation",e[e.hideCursorInOverviewRuler=59]="hideCursorInOverviewRuler",e[e.hover=60]="hover",e[e.inDiffEditor=61]="inDiffEditor",e[e.inlineSuggest=62]="inlineSuggest",e[e.inlineEdit=63]="inlineEdit",e[e.letterSpacing=64]="letterSpacing",e[e.lightbulb=65]="lightbulb",e[e.lineDecorationsWidth=66]="lineDecorationsWidth",e[e.lineHeight=67]="lineHeight",e[e.lineNumbers=68]="lineNumbers",e[e.lineNumbersMinChars=69]="lineNumbersMinChars",e[e.linkedEditing=70]="linkedEditing",e[e.links=71]="links",e[e.matchBrackets=72]="matchBrackets",e[e.minimap=73]="minimap",e[e.mouseStyle=74]="mouseStyle",e[e.mouseWheelScrollSensitivity=75]="mouseWheelScrollSensitivity",e[e.mouseWheelZoom=76]="mouseWheelZoom",e[e.multiCursorMergeOverlapping=77]="multiCursorMergeOverlapping",e[e.multiCursorModifier=78]="multiCursorModifier",e[e.multiCursorPaste=79]="multiCursorPaste",e[e.multiCursorLimit=80]="multiCursorLimit",e[e.occurrencesHighlight=81]="occurrencesHighlight",e[e.overviewRulerBorder=82]="overviewRulerBorder",e[e.overviewRulerLanes=83]="overviewRulerLanes",e[e.padding=84]="padding",e[e.pasteAs=85]="pasteAs",e[e.parameterHints=86]="parameterHints",e[e.peekWidgetDefaultFocus=87]="peekWidgetDefaultFocus",e[e.placeholder=88]="placeholder",e[e.definitionLinkOpensInPeek=89]="definitionLinkOpensInPeek",e[e.quickSuggestions=90]="quickSuggestions",e[e.quickSuggestionsDelay=91]="quickSuggestionsDelay",e[e.readOnly=92]="readOnly",e[e.readOnlyMessage=93]="readOnlyMessage",e[e.renameOnType=94]="renameOnType",e[e.renderControlCharacters=95]="renderControlCharacters",e[e.renderFinalNewline=96]="renderFinalNewline",e[e.renderLineHighlight=97]="renderLineHighlight",e[e.renderLineHighlightOnlyWhenFocus=98]="renderLineHighlightOnlyWhenFocus",e[e.renderValidationDecorations=99]="renderValidationDecorations",e[e.renderWhitespace=100]="renderWhitespace",e[e.revealHorizontalRightPadding=101]="revealHorizontalRightPadding",e[e.roundedSelection=102]="roundedSelection",e[e.rulers=103]="rulers",e[e.scrollbar=104]="scrollbar",e[e.scrollBeyondLastColumn=105]="scrollBeyondLastColumn",e[e.scrollBeyondLastLine=106]="scrollBeyondLastLine",e[e.scrollPredominantAxis=107]="scrollPredominantAxis",e[e.selectionClipboard=108]="selectionClipboard",e[e.selectionHighlight=109]="selectionHighlight",e[e.selectOnLineNumbers=110]="selectOnLineNumbers",e[e.showFoldingControls=111]="showFoldingControls",e[e.showUnused=112]="showUnused",e[e.snippetSuggestions=113]="snippetSuggestions",e[e.smartSelect=114]="smartSelect",e[e.smoothScrolling=115]="smoothScrolling",e[e.stickyScroll=116]="stickyScroll",e[e.stickyTabStops=117]="stickyTabStops",e[e.stopRenderingLineAfter=118]="stopRenderingLineAfter",e[e.suggest=119]="suggest",e[e.suggestFontSize=120]="suggestFontSize",e[e.suggestLineHeight=121]="suggestLineHeight",e[e.suggestOnTriggerCharacters=122]="suggestOnTriggerCharacters",e[e.suggestSelection=123]="suggestSelection",e[e.tabCompletion=124]="tabCompletion",e[e.tabIndex=125]="tabIndex",e[e.unicodeHighlighting=126]="unicodeHighlighting",e[e.unusualLineTerminators=127]="unusualLineTerminators",e[e.useShadowDOM=128]="useShadowDOM",e[e.useTabStops=129]="useTabStops",e[e.wordBreak=130]="wordBreak",e[e.wordSegmenterLocales=131]="wordSegmenterLocales",e[e.wordSeparators=132]="wordSeparators",e[e.wordWrap=133]="wordWrap",e[e.wordWrapBreakAfterCharacters=134]="wordWrapBreakAfterCharacters",e[e.wordWrapBreakBeforeCharacters=135]="wordWrapBreakBeforeCharacters",e[e.wordWrapColumn=136]="wordWrapColumn",e[e.wordWrapOverride1=137]="wordWrapOverride1",e[e.wordWrapOverride2=138]="wordWrapOverride2",e[e.wrappingIndent=139]="wrappingIndent",e[e.wrappingStrategy=140]="wrappingStrategy",e[e.showDeprecated=141]="showDeprecated",e[e.inlayHints=142]="inlayHints",e[e.editorClassName=143]="editorClassName",e[e.pixelRatio=144]="pixelRatio",e[e.tabFocusMode=145]="tabFocusMode",e[e.layoutInfo=146]="layoutInfo",e[e.wrappingInfo=147]="wrappingInfo",e[e.defaultColorDecorators=148]="defaultColorDecorators",e[e.colorDecoratorsActivatedOn=149]="colorDecoratorsActivatedOn",e[e.inlineCompletionsAccessibilityVerbose=150]="inlineCompletionsAccessibilityVerbose"})($a||($a={}));var Ba;(function(e){e[e.TextDefined=0]="TextDefined",e[e.LF=1]="LF",e[e.CRLF=2]="CRLF"})(Ba||(Ba={}));var qa;(function(e){e[e.LF=0]="LF",e[e.CRLF=1]="CRLF"})(qa||(qa={}));var ja;(function(e){e[e.Left=1]="Left",e[e.Center=2]="Center",e[e.Right=3]="Right"})(ja||(ja={}));var Ha;(function(e){e[e.Increase=0]="Increase",e[e.Decrease=1]="Decrease"})(Ha||(Ha={}));var Ga;(function(e){e[e.None=0]="None",e[e.Indent=1]="Indent",e[e.IndentOutdent=2]="IndentOutdent",e[e.Outdent=3]="Outdent"})(Ga||(Ga={}));var Ja;(function(e){e[e.Both=0]="Both",e[e.Right=1]="Right",e[e.Left=2]="Left",e[e.None=3]="None"})(Ja||(Ja={}));var Xa;(function(e){e[e.Type=1]="Type",e[e.Parameter=2]="Parameter"})(Xa||(Xa={}));var Ya;(function(e){e[e.Automatic=0]="Automatic",e[e.Explicit=1]="Explicit"})(Ya||(Ya={}));var Qa;(function(e){e[e.Invoke=0]="Invoke",e[e.Automatic=1]="Automatic"})(Qa||(Qa={}));var hi;(function(e){e[e.DependsOnKbLayout=-1]="DependsOnKbLayout",e[e.Unknown=0]="Unknown",e[e.Backspace=1]="Backspace",e[e.Tab=2]="Tab",e[e.Enter=3]="Enter",e[e.Shift=4]="Shift",e[e.Ctrl=5]="Ctrl",e[e.Alt=6]="Alt",e[e.PauseBreak=7]="PauseBreak",e[e.CapsLock=8]="CapsLock",e[e.Escape=9]="Escape",e[e.Space=10]="Space",e[e.PageUp=11]="PageUp",e[e.PageDown=12]="PageDown",e[e.End=13]="End",e[e.Home=14]="Home",e[e.LeftArrow=15]="LeftArrow",e[e.UpArrow=16]="UpArrow",e[e.RightArrow=17]="RightArrow",e[e.DownArrow=18]="DownArrow",e[e.Insert=19]="Insert",e[e.Delete=20]="Delete",e[e.Digit0=21]="Digit0",e[e.Digit1=22]="Digit1",e[e.Digit2=23]="Digit2",e[e.Digit3=24]="Digit3",e[e.Digit4=25]="Digit4",e[e.Digit5=26]="Digit5",e[e.Digit6=27]="Digit6",e[e.Digit7=28]="Digit7",e[e.Digit8=29]="Digit8",e[e.Digit9=30]="Digit9",e[e.KeyA=31]="KeyA",e[e.KeyB=32]="KeyB",e[e.KeyC=33]="KeyC",e[e.KeyD=34]="KeyD",e[e.KeyE=35]="KeyE",e[e.KeyF=36]="KeyF",e[e.KeyG=37]="KeyG",e[e.KeyH=38]="KeyH",e[e.KeyI=39]="KeyI",e[e.KeyJ=40]="KeyJ",e[e.KeyK=41]="KeyK",e[e.KeyL=42]="KeyL",e[e.KeyM=43]="KeyM",e[e.KeyN=44]="KeyN",e[e.KeyO=45]="KeyO",e[e.KeyP=46]="KeyP",e[e.KeyQ=47]="KeyQ",e[e.KeyR=48]="KeyR",e[e.KeyS=49]="KeyS",e[e.KeyT=50]="KeyT",e[e.KeyU=51]="KeyU",e[e.KeyV=52]="KeyV",e[e.KeyW=53]="KeyW",e[e.KeyX=54]="KeyX",e[e.KeyY=55]="KeyY",e[e.KeyZ=56]="KeyZ",e[e.Meta=57]="Meta",e[e.ContextMenu=58]="ContextMenu",e[e.F1=59]="F1",e[e.F2=60]="F2",e[e.F3=61]="F3",e[e.F4=62]="F4",e[e.F5=63]="F5",e[e.F6=64]="F6",e[e.F7=65]="F7",e[e.F8=66]="F8",e[e.F9=67]="F9",e[e.F10=68]="F10",e[e.F11=69]="F11",e[e.F12=70]="F12",e[e.F13=71]="F13",e[e.F14=72]="F14",e[e.F15=73]="F15",e[e.F16=74]="F16",e[e.F17=75]="F17",e[e.F18=76]="F18",e[e.F19=77]="F19",e[e.F20=78]="F20",e[e.F21=79]="F21",e[e.F22=80]="F22",e[e.F23=81]="F23",e[e.F24=82]="F24",e[e.NumLock=83]="NumLock",e[e.ScrollLock=84]="ScrollLock",e[e.Semicolon=85]="Semicolon",e[e.Equal=86]="Equal",e[e.Comma=87]="Comma",e[e.Minus=88]="Minus",e[e.Period=89]="Period",e[e.Slash=90]="Slash",e[e.Backquote=91]="Backquote",e[e.BracketLeft=92]="BracketLeft",e[e.Backslash=93]="Backslash",e[e.BracketRight=94]="BracketRight",e[e.Quote=95]="Quote",e[e.OEM_8=96]="OEM_8",e[e.IntlBackslash=97]="IntlBackslash",e[e.Numpad0=98]="Numpad0",e[e.Numpad1=99]="Numpad1",e[e.Numpad2=100]="Numpad2",e[e.Numpad3=101]="Numpad3",e[e.Numpad4=102]="Numpad4",e[e.Numpad5=103]="Numpad5",e[e.Numpad6=104]="Numpad6",e[e.Numpad7=105]="Numpad7",e[e.Numpad8=106]="Numpad8",e[e.Numpad9=107]="Numpad9",e[e.NumpadMultiply=108]="NumpadMultiply",e[e.NumpadAdd=109]="NumpadAdd",e[e.NUMPAD_SEPARATOR=110]="NUMPAD_SEPARATOR",e[e.NumpadSubtract=111]="NumpadSubtract",e[e.NumpadDecimal=112]="NumpadDecimal",e[e.NumpadDivide=113]="NumpadDivide",e[e.KEY_IN_COMPOSITION=114]="KEY_IN_COMPOSITION",e[e.ABNT_C1=115]="ABNT_C1",e[e.ABNT_C2=116]="ABNT_C2",e[e.AudioVolumeMute=117]="AudioVolumeMute",e[e.AudioVolumeUp=118]="AudioVolumeUp",e[e.AudioVolumeDown=119]="AudioVolumeDown",e[e.BrowserSearch=120]="BrowserSearch",e[e.BrowserHome=121]="BrowserHome",e[e.BrowserBack=122]="BrowserBack",e[e.BrowserForward=123]="BrowserForward",e[e.MediaTrackNext=124]="MediaTrackNext",e[e.MediaTrackPrevious=125]="MediaTrackPrevious",e[e.MediaStop=126]="MediaStop",e[e.MediaPlayPause=127]="MediaPlayPause",e[e.LaunchMediaPlayer=128]="LaunchMediaPlayer",e[e.LaunchMail=129]="LaunchMail",e[e.LaunchApp2=130]="LaunchApp2",e[e.Clear=131]="Clear",e[e.MAX_VALUE=132]="MAX_VALUE"})(hi||(hi={}));var di;(function(e){e[e.Hint=1]="Hint",e[e.Info=2]="Info",e[e.Warning=4]="Warning",e[e.Error=8]="Error"})(di||(di={}));var ui;(function(e){e[e.Unnecessary=1]="Unnecessary",e[e.Deprecated=2]="Deprecated"})(ui||(ui={}));var Ka;(function(e){e[e.Inline=1]="Inline",e[e.Gutter=2]="Gutter"})(Ka||(Ka={}));var Za;(function(e){e[e.Normal=1]="Normal",e[e.Underlined=2]="Underlined"})(Za||(Za={}));var eo;(function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.TEXTAREA=1]="TEXTAREA",e[e.GUTTER_GLYPH_MARGIN=2]="GUTTER_GLYPH_MARGIN",e[e.GUTTER_LINE_NUMBERS=3]="GUTTER_LINE_NUMBERS",e[e.GUTTER_LINE_DECORATIONS=4]="GUTTER_LINE_DECORATIONS",e[e.GUTTER_VIEW_ZONE=5]="GUTTER_VIEW_ZONE",e[e.CONTENT_TEXT=6]="CONTENT_TEXT",e[e.CONTENT_EMPTY=7]="CONTENT_EMPTY",e[e.CONTENT_VIEW_ZONE=8]="CONTENT_VIEW_ZONE",e[e.CONTENT_WIDGET=9]="CONTENT_WIDGET",e[e.OVERVIEW_RULER=10]="OVERVIEW_RULER",e[e.SCROLLBAR=11]="SCROLLBAR",e[e.OVERLAY_WIDGET=12]="OVERLAY_WIDGET",e[e.OUTSIDE_EDITOR=13]="OUTSIDE_EDITOR"})(eo||(eo={}));var to;(function(e){e[e.AIGenerated=1]="AIGenerated"})(to||(to={}));var no;(function(e){e[e.Invoke=0]="Invoke",e[e.Automatic=1]="Automatic"})(no||(no={}));var ro;(function(e){e[e.TOP_RIGHT_CORNER=0]="TOP_RIGHT_CORNER",e[e.BOTTOM_RIGHT_CORNER=1]="BOTTOM_RIGHT_CORNER",e[e.TOP_CENTER=2]="TOP_CENTER"})(ro||(ro={}));var io;(function(e){e[e.Left=1]="Left",e[e.Center=2]="Center",e[e.Right=4]="Right",e[e.Full=7]="Full"})(io||(io={}));var so;(function(e){e[e.Word=0]="Word",e[e.Line=1]="Line",e[e.Suggest=2]="Suggest"})(so||(so={}));var ao;(function(e){e[e.Left=0]="Left",e[e.Right=1]="Right",e[e.None=2]="None",e[e.LeftOfInjectedText=3]="LeftOfInjectedText",e[e.RightOfInjectedText=4]="RightOfInjectedText"})(ao||(ao={}));var oo;(function(e){e[e.Off=0]="Off",e[e.On=1]="On",e[e.Relative=2]="Relative",e[e.Interval=3]="Interval",e[e.Custom=4]="Custom"})(oo||(oo={}));var lo;(function(e){e[e.None=0]="None",e[e.Text=1]="Text",e[e.Blocks=2]="Blocks"})(lo||(lo={}));var co;(function(e){e[e.Smooth=0]="Smooth",e[e.Immediate=1]="Immediate"})(co||(co={}));var ho;(function(e){e[e.Auto=1]="Auto",e[e.Hidden=2]="Hidden",e[e.Visible=3]="Visible"})(ho||(ho={}));var pi;(function(e){e[e.LTR=0]="LTR",e[e.RTL=1]="RTL"})(pi||(pi={}));var uo;(function(e){e.Off="off",e.OnCode="onCode",e.On="on"})(uo||(uo={}));var po;(function(e){e[e.Invoke=1]="Invoke",e[e.TriggerCharacter=2]="TriggerCharacter",e[e.ContentChange=3]="ContentChange"})(po||(po={}));var mo;(function(e){e[e.File=0]="File",e[e.Module=1]="Module",e[e.Namespace=2]="Namespace",e[e.Package=3]="Package",e[e.Class=4]="Class",e[e.Method=5]="Method",e[e.Property=6]="Property",e[e.Field=7]="Field",e[e.Constructor=8]="Constructor",e[e.Enum=9]="Enum",e[e.Interface=10]="Interface",e[e.Function=11]="Function",e[e.Variable=12]="Variable",e[e.Constant=13]="Constant",e[e.String=14]="String",e[e.Number=15]="Number",e[e.Boolean=16]="Boolean",e[e.Array=17]="Array",e[e.Object=18]="Object",e[e.Key=19]="Key",e[e.Null=20]="Null",e[e.EnumMember=21]="EnumMember",e[e.Struct=22]="Struct",e[e.Event=23]="Event",e[e.Operator=24]="Operator",e[e.TypeParameter=25]="TypeParameter"})(mo||(mo={}));var fo;(function(e){e[e.Deprecated=1]="Deprecated"})(fo||(fo={}));var go;(function(e){e[e.Hidden=0]="Hidden",e[e.Blink=1]="Blink",e[e.Smooth=2]="Smooth",e[e.Phase=3]="Phase",e[e.Expand=4]="Expand",e[e.Solid=5]="Solid"})(go||(go={}));var bo;(function(e){e[e.Line=1]="Line",e[e.Block=2]="Block",e[e.Underline=3]="Underline",e[e.LineThin=4]="LineThin",e[e.BlockOutline=5]="BlockOutline",e[e.UnderlineThin=6]="UnderlineThin"})(bo||(bo={}));var vo;(function(e){e[e.AlwaysGrowsWhenTypingAtEdges=0]="AlwaysGrowsWhenTypingAtEdges",e[e.NeverGrowsWhenTypingAtEdges=1]="NeverGrowsWhenTypingAtEdges",e[e.GrowsOnlyWhenTypingBefore=2]="GrowsOnlyWhenTypingBefore",e[e.GrowsOnlyWhenTypingAfter=3]="GrowsOnlyWhenTypingAfter"})(vo||(vo={}));var wo;(function(e){e[e.None=0]="None",e[e.Same=1]="Same",e[e.Indent=2]="Indent",e[e.DeepIndent=3]="DeepIndent"})(wo||(wo={}));const sn=class sn{static chord(t,n){return Od(t,n)}};sn.CtrlCmd=2048,sn.Shift=1024,sn.Alt=512,sn.WinCtrl=256;let mi=sn;function qd(){return{editor:void 0,languages:void 0,CancellationTokenSource:Ld,Emitter:De,KeyCode:hi,KeyMod:mi,Position:he,Range:Q,Selection:Fe,SelectionDirection:pi,MarkerSeverity:di,MarkerTag:ui,Uri:Ve,Token:Bd}}const Pn=class Pn{static getChannel(t){return t.getChannel(Pn.CHANNEL_NAME)}static setChannel(t,n){t.setChannel(Pn.CHANNEL_NAME,n)}};Pn.CHANNEL_NAME="editorWorkerHost";let fi=Pn;var yo;class jd{constructor(){this[yo]="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(){return this._head?.value}get last(){return this._tail?.value}has(t){return this._map.has(t)}get(t,n=0){const r=this._map.get(t);if(r)return n!==0&&this.touch(r,n),r.value}set(t,n,r=0){let i=this._map.get(t);if(i)i.value=n,r!==0&&this.touch(i,r);else{switch(i={key:t,value:n,next:void 0,previous:void 0},r){case 0:this.addItemLast(i);break;case 1:this.addItemFirst(i);break;case 2:this.addItemLast(i);break;default:this.addItemLast(i);break}this._map.set(t,i),this._size++}return this}delete(t){return!!this.remove(t)}remove(t){const n=this._map.get(t);if(n)return this._map.delete(t),this.removeItem(n),this._size--,n.value}shift(){if(!this._head&&!this._tail)return;if(!this._head||!this._tail)throw new Error("Invalid list");const t=this._head;return this._map.delete(t.key),this.removeItem(t),this._size--,t.value}forEach(t,n){const r=this._state;let i=this._head;for(;i;){if(n?t.bind(n)(i.value,i.key,this):t(i.value,i.key,this),this._state!==r)throw new Error("LinkedMap got modified during iteration.");i=i.next}}keys(){const t=this,n=this._state;let r=this._head;const i={[Symbol.iterator](){return i},next(){if(t._state!==n)throw new Error("LinkedMap got modified during iteration.");if(r){const s={value:r.key,done:!1};return r=r.next,s}else return{value:void 0,done:!0}}};return i}values(){const t=this,n=this._state;let r=this._head;const i={[Symbol.iterator](){return i},next(){if(t._state!==n)throw new Error("LinkedMap got modified during iteration.");if(r){const s={value:r.value,done:!1};return r=r.next,s}else return{value:void 0,done:!0}}};return i}entries(){const t=this,n=this._state;let r=this._head;const i={[Symbol.iterator](){return i},next(){if(t._state!==n)throw new Error("LinkedMap got modified during iteration.");if(r){const s={value:[r.key,r.value],done:!1};return r=r.next,s}else return{value:void 0,done:!0}}};return i}[(yo=Symbol.toStringTag,Symbol.iterator)](){return this.entries()}trimOld(t){if(t>=this.size)return;if(t===0){this.clear();return}let n=this._head,r=this.size;for(;n&&r>t;)this._map.delete(n.key),n=n.next,r--;this._head=n,this._size=r,n&&(n.previous=void 0),this._state++}trimNew(t){if(t>=this.size)return;if(t===0){this.clear();return}let n=this._tail,r=this.size;for(;n&&r>t;)this._map.delete(n.key),n=n.previous,r--;this._tail=n,this._size=r,n&&(n.next=void 0),this._state++}addItemFirst(t){if(!this._head&&!this._tail)this._tail=t;else if(this._head)t.next=this._head,this._head.previous=t;else throw new Error("Invalid list");this._head=t,this._state++}addItemLast(t){if(!this._head&&!this._tail)this._head=t;else if(this._tail)t.previous=this._tail,this._tail.next=t;else throw new Error("Invalid list");this._tail=t,this._state++}removeItem(t){if(t===this._head&&t===this._tail)this._head=void 0,this._tail=void 0;else if(t===this._head){if(!t.next)throw new Error("Invalid list");t.next.previous=void 0,this._head=t.next}else if(t===this._tail){if(!t.previous)throw new Error("Invalid list");t.previous.next=void 0,this._tail=t.previous}else{const n=t.next,r=t.previous;if(!n||!r)throw new Error("Invalid list");n.previous=r,r.next=n}t.next=void 0,t.previous=void 0,this._state++}touch(t,n){if(!this._head||!this._tail)throw new Error("Invalid list");if(!(n!==1&&n!==2)){if(n===1){if(t===this._head)return;const r=t.next,i=t.previous;t===this._tail?(i.next=void 0,this._tail=i):(r.previous=i,i.next=r),t.previous=void 0,t.next=this._head,this._head.previous=t,this._head=t,this._state++}else if(n===2){if(t===this._tail)return;const r=t.next,i=t.previous;t===this._head?(r.previous=void 0,this._head=r):(r.previous=i,i.next=r),t.next=void 0,t.previous=this._tail,this._tail.next=t,this._tail=t,this._state++}}}toJSON(){const t=[];return this.forEach((n,r)=>{t.push([r,n])}),t}fromJSON(t){this.clear();for(const[n,r]of t)this.set(n,r)}}class Hd extends jd{constructor(t,n=1){super(),this._limit=t,this._ratio=Math.min(Math.max(0,n),1)}get limit(){return this._limit}set limit(t){this._limit=t,this.checkTrim()}get(t,n=2){return super.get(t,n)}peek(t){return super.get(t,0)}set(t,n){return super.set(t,n,2),this}checkTrim(){this.size>this._limit&&this.trim(Math.round(this._limit*this._ratio))}}class Gd extends Hd{constructor(t,n=1){super(t,n)}trim(t){this.trimOld(t)}set(t,n){return super.set(t,n),this.checkTrim(),this}}class Jd{constructor(){this.map=new Map}add(t,n){let r=this.map.get(t);r||(r=new Set,this.map.set(t,r)),r.add(n)}delete(t,n){const r=this.map.get(t);r&&(r.delete(n),r.size===0&&this.map.delete(t))}forEach(t,n){const r=this.map.get(t);r&&r.forEach(n)}get(t){const n=this.map.get(t);return n||new Set}}new Gd(10);function Xd(e){let t=[];for(;Object.prototype!==e;)t=t.concat(Object.getOwnPropertyNames(e)),e=Object.getPrototypeOf(e);return t}function xo(e){const t=[];for(const n of Xd(e))typeof e[n]=="function"&&t.push(n);return t}function Yd(e,t){const n=i=>function(){const s=Array.prototype.slice.call(arguments,0);return t(i,s)},r={};for(const i of e)r[i]=n(i);return r}var So;(function(e){e[e.Left=1]="Left",e[e.Center=2]="Center",e[e.Right=4]="Right",e[e.Full=7]="Full"})(So||(So={}));var Co;(function(e){e[e.Left=1]="Left",e[e.Center=2]="Center",e[e.Right=3]="Right"})(Co||(Co={}));var _o;(function(e){e[e.Both=0]="Both",e[e.Right=1]="Right",e[e.Left=2]="Left",e[e.None=3]="None"})(_o||(_o={}));function Qd(e,t,n,r,i){if(r===0)return!0;const s=t.charCodeAt(r-1);if(e.get(s)!==0||s===13||s===10)return!0;if(i>0){const a=t.charCodeAt(r);if(e.get(a)!==0)return!0}return!1}function Kd(e,t,n,r,i){if(r+i===n)return!0;const s=t.charCodeAt(r+i);if(e.get(s)!==0||s===13||s===10)return!0;if(i>0){const a=t.charCodeAt(r+i-1);if(e.get(a)!==0)return!0}return!1}function Zd(e,t,n,r,i){return Qd(e,t,n,r,i)&&Kd(e,t,n,r,i)}class eu{constructor(t,n){this._wordSeparators=t,this._searchRegex=n,this._prevMatchStartIndex=-1,this._prevMatchLength=0}reset(t){this._searchRegex.lastIndex=t,this._prevMatchStartIndex=-1,this._prevMatchLength=0}next(t){const n=t.length;let r;do{if(this._prevMatchStartIndex+this._prevMatchLength===n||(r=this._searchRegex.exec(t),!r))return null;const i=r.index,s=r[0].length;if(i===this._prevMatchStartIndex&&s===this._prevMatchLength){if(s===0){Gh(t,n,this._searchRegex.lastIndex)>65535?this._searchRegex.lastIndex+=2:this._searchRegex.lastIndex+=1;continue}return null}if(this._prevMatchStartIndex=i,this._prevMatchLength=s,!this._wordSeparators||Zd(this._wordSeparators,t,n,i,s))return r}while(r);return null}}function tu(e,t="Unreachable"){throw new Error(t)}function Qn(e){if(!e()){debugger;e(),We(new ke("Assertion Failed"))}}function ko(e,t){let n=0;for(;n<e.length-1;){const r=e[n],i=e[n+1];if(!t(r,i))return!1;n++}return!0}const nu="\`~!@#$%^&*()-=+[{]}\\\\|;:'\\",.<>/?";function ru(e=""){let t="(-?\\\\d*\\\\.\\\\d\\\\w*)|([^";for(const n of nu)e.indexOf(n)>=0||(t+="\\\\"+n);return t+="\\\\s]+)",new RegExp(t,"g")}const Eo=ru();function Fo(e){let t=Eo;if(e&&e instanceof RegExp)if(e.global)t=e;else{let n="g";e.ignoreCase&&(n+="i"),e.multiline&&(n+="m"),e.unicode&&(n+="u"),t=new RegExp(e.source,n)}return t.lastIndex=0,t}const Ro=new Ch;Ro.unshift({maxLen:1e3,windowSize:15,timeBudget:150});function gi(e,t,n,r,i){if(t=Fo(t),i||(i=On.first(Ro)),n.length>i.maxLen){let c=e-i.maxLen/2;return c<0?c=0:r+=c,n=n.substring(c,e+i.maxLen/2),gi(e,t,n,r,i)}const s=Date.now(),a=e-1-r;let l=-1,o=null;for(let c=1;!(Date.now()-s>=i.timeBudget);c++){const d=a-i.windowSize*c;t.lastIndex=Math.max(0,d);const u=iu(t,n,a,l);if(!u&&o||(o=u,d<=0))break;l=d}if(o){const c={word:o[0],startColumn:r+1+o.index,endColumn:r+1+o.index+o[0].length};return t.lastIndex=0,c}return null}function iu(e,t,n,r){let i;for(;i=e.exec(t);){const s=i.index||0;if(s<=n&&e.lastIndex>=n)return i;if(r>0&&s>r)return null}return null}class su{static computeUnicodeHighlights(t,n,r){const i=r?r.startLineNumber:1,s=r?r.endLineNumber:t.getLineCount(),a=new No(n),l=a.getCandidateCodePoints();let o;l==="allNonBasicAscii"?o=new RegExp("[^\\\\t\\\\n\\\\r\\\\x20-\\\\x7E]","g"):o=new RegExp(\`\${au(Array.from(l))}\`,"g");const c=new eu(null,o),d=[];let u=!1,f,m=0,v=0,w=0;e:for(let k=i,R=s;k<=R;k++){const I=t.getLineContent(k),N=I.length;c.reset(0);do if(f=c.next(I),f){let E=f.index,F=f.index+f[0].length;if(E>0){const j=I.charCodeAt(E-1);Bn(j)&&E--}if(F+1<N){const j=I.charCodeAt(F-1);Bn(j)&&F++}const M=I.substring(E,F);let T=gi(E+1,Eo,I,0);T&&T.endColumn<=E+1&&(T=null);const P=a.shouldHighlightNonBasicASCII(M,T?T.word:null);if(P!==0){if(P===3?m++:P===2?v++:P===1?w++:tu(),d.length>=1e3){u=!0;break e}d.push(new Q(k,E+1,k,F+1))}}while(f)}return{ranges:d,hasMore:u,ambiguousCharacterCount:m,invisibleCharacterCount:v,nonBasicAsciiCharacterCount:w}}static computeUnicodeHighlightReason(t,n){const r=new No(n);switch(r.shouldHighlightNonBasicASCII(t,null)){case 0:return null;case 2:return{kind:1};case 3:{const s=t.codePointAt(0),a=r.ambiguousCharacters.getPrimaryConfusable(s),l=cn.getLocales().filter(o=>!cn.getInstance(new Set([...n.allowedLocales,o])).isAmbiguous(s));return{kind:0,confusableWith:String.fromCodePoint(a),notAmbiguousInLocales:l}}case 1:return{kind:2}}}}function au(e,t){return\`[\${Bh(e.map(r=>String.fromCodePoint(r)).join(""))}]\`}class No{constructor(t){this.options=t,this.allowedCodePoints=new Set(t.allowedCodePoints),this.ambiguousCharacters=cn.getInstance(new Set(t.allowedLocales))}getCandidateCodePoints(){if(this.options.nonBasicASCII)return"allNonBasicAscii";const t=new Set;if(this.options.invisibleCharacters)for(const n of hn.codePoints)Do(String.fromCodePoint(n))||t.add(n);if(this.options.ambiguousCharacters)for(const n of this.ambiguousCharacters.getConfusableCodePoints())t.add(n);for(const n of this.allowedCodePoints)t.delete(n);return t}shouldHighlightNonBasicASCII(t,n){const r=t.codePointAt(0);if(this.allowedCodePoints.has(r))return 0;if(this.options.nonBasicASCII)return 1;let i=!1,s=!1;if(n)for(const a of n){const l=a.codePointAt(0),o=Xh(a);i=i||o,!o&&!this.ambiguousCharacters.isAmbiguous(l)&&!hn.isInvisibleCharacter(l)&&(s=!0)}return!i&&s?0:this.options.invisibleCharacters&&!Do(t)&&hn.isInvisibleCharacter(r)?2:this.options.ambiguousCharacters&&this.ambiguousCharacters.isAmbiguous(r)?3:0}}function Do(e){return e===" "||e===\`
8
- \`||e===" "}class Kn{constructor(t,n,r){this.changes=t,this.moves=n,this.hitTimeout=r}}class ou{constructor(t,n){this.lineRangeMapping=t,this.changes=n}}class Y{static addRange(t,n){let r=0;for(;r<n.length&&n[r].endExclusive<t.start;)r++;let i=r;for(;i<n.length&&n[i].start<=t.endExclusive;)i++;if(r===i)n.splice(r,0,t);else{const s=Math.min(t.start,n[r].start),a=Math.max(t.endExclusive,n[i-1].endExclusive);n.splice(r,i-r,new Y(s,a))}}static tryCreate(t,n){if(!(t>n))return new Y(t,n)}static ofLength(t){return new Y(0,t)}static ofStartAndLength(t,n){return new Y(t,t+n)}constructor(t,n){if(this.start=t,this.endExclusive=n,t>n)throw new ke(\`Invalid range: \${this.toString()}\`)}get isEmpty(){return this.start===this.endExclusive}delta(t){return new Y(this.start+t,this.endExclusive+t)}deltaStart(t){return new Y(this.start+t,this.endExclusive)}deltaEnd(t){return new Y(this.start,this.endExclusive+t)}get length(){return this.endExclusive-this.start}toString(){return\`[\${this.start}, \${this.endExclusive})\`}contains(t){return this.start<=t&&t<this.endExclusive}join(t){return new Y(Math.min(this.start,t.start),Math.max(this.endExclusive,t.endExclusive))}intersect(t){const n=Math.max(this.start,t.start),r=Math.min(this.endExclusive,t.endExclusive);if(n<=r)return new Y(n,r)}intersects(t){const n=Math.max(this.start,t.start),r=Math.min(this.endExclusive,t.endExclusive);return n<r}isBefore(t){return this.endExclusive<=t.start}isAfter(t){return this.start>=t.endExclusive}slice(t){return t.slice(this.start,this.endExclusive)}substring(t){return t.substring(this.start,this.endExclusive)}clip(t){if(this.isEmpty)throw new ke(\`Invalid clipping range: \${this.toString()}\`);return Math.max(this.start,Math.min(this.endExclusive-1,t))}clipCyclic(t){if(this.isEmpty)throw new ke(\`Invalid clipping range: \${this.toString()}\`);return t<this.start?this.endExclusive-(this.start-t)%this.length:t>=this.endExclusive?this.start+(t-this.start)%this.length:t}forEach(t){for(let n=this.start;n<this.endExclusive;n++)t(n)}}function $t(e,t){const n=pn(e,t);return n===-1?void 0:e[n]}function pn(e,t,n=0,r=e.length){let i=n,s=r;for(;i<s;){const a=Math.floor((i+s)/2);t(e[a])?i=a+1:s=a}return i-1}function lu(e,t){const n=bi(e,t);return n===e.length?void 0:e[n]}function bi(e,t,n=0,r=e.length){let i=n,s=r;for(;i<s;){const a=Math.floor((i+s)/2);t(e[a])?s=a:i=a+1}return i}const Lr=class Lr{constructor(t){this._array=t,this._findLastMonotonousLastIdx=0}findLastMonotonous(t){if(Lr.assertInvariants){if(this._prevFindLastPredicate){for(const r of this._array)if(this._prevFindLastPredicate(r)&&!t(r))throw new Error("MonotonousArray: current predicate must be weaker than (or equal to) the previous predicate.")}this._prevFindLastPredicate=t}const n=pn(this._array,t,this._findLastMonotonousLastIdx);return this._findLastMonotonousLastIdx=n+1,n===-1?void 0:this._array[n]}};Lr.assertInvariants=!1;let Zn=Lr;class H{static fromRangeInclusive(t){return new H(t.startLineNumber,t.endLineNumber+1)}static joinMany(t){if(t.length===0)return[];let n=new $e(t[0].slice());for(let r=1;r<t.length;r++)n=n.getUnion(new $e(t[r].slice()));return n.ranges}static join(t){if(t.length===0)throw new ke("lineRanges cannot be empty");let n=t[0].startLineNumber,r=t[0].endLineNumberExclusive;for(let i=1;i<t.length;i++)n=Math.min(n,t[i].startLineNumber),r=Math.max(r,t[i].endLineNumberExclusive);return new H(n,r)}static ofLength(t,n){return new H(t,t+n)}static deserialize(t){return new H(t[0],t[1])}constructor(t,n){if(t>n)throw new ke(\`startLineNumber \${t} cannot be after endLineNumberExclusive \${n}\`);this.startLineNumber=t,this.endLineNumberExclusive=n}contains(t){return this.startLineNumber<=t&&t<this.endLineNumberExclusive}get isEmpty(){return this.startLineNumber===this.endLineNumberExclusive}delta(t){return new H(this.startLineNumber+t,this.endLineNumberExclusive+t)}deltaLength(t){return new H(this.startLineNumber,this.endLineNumberExclusive+t)}get length(){return this.endLineNumberExclusive-this.startLineNumber}join(t){return new H(Math.min(this.startLineNumber,t.startLineNumber),Math.max(this.endLineNumberExclusive,t.endLineNumberExclusive))}toString(){return\`[\${this.startLineNumber},\${this.endLineNumberExclusive})\`}intersect(t){const n=Math.max(this.startLineNumber,t.startLineNumber),r=Math.min(this.endLineNumberExclusive,t.endLineNumberExclusive);if(n<=r)return new H(n,r)}intersectsStrict(t){return this.startLineNumber<t.endLineNumberExclusive&&t.startLineNumber<this.endLineNumberExclusive}overlapOrTouch(t){return this.startLineNumber<=t.endLineNumberExclusive&&t.startLineNumber<=this.endLineNumberExclusive}equals(t){return this.startLineNumber===t.startLineNumber&&this.endLineNumberExclusive===t.endLineNumberExclusive}toInclusiveRange(){return this.isEmpty?null:new Q(this.startLineNumber,1,this.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER)}toExclusiveRange(){return new Q(this.startLineNumber,1,this.endLineNumberExclusive,1)}mapToLineArray(t){const n=[];for(let r=this.startLineNumber;r<this.endLineNumberExclusive;r++)n.push(t(r));return n}forEach(t){for(let n=this.startLineNumber;n<this.endLineNumberExclusive;n++)t(n)}serialize(){return[this.startLineNumber,this.endLineNumberExclusive]}includes(t){return this.startLineNumber<=t&&t<this.endLineNumberExclusive}toOffsetRange(){return new Y(this.startLineNumber-1,this.endLineNumberExclusive-1)}}class $e{constructor(t=[]){this._normalizedRanges=t}get ranges(){return this._normalizedRanges}addRange(t){if(t.length===0)return;const n=bi(this._normalizedRanges,i=>i.endLineNumberExclusive>=t.startLineNumber),r=pn(this._normalizedRanges,i=>i.startLineNumber<=t.endLineNumberExclusive)+1;if(n===r)this._normalizedRanges.splice(n,0,t);else if(n===r-1){const i=this._normalizedRanges[n];this._normalizedRanges[n]=i.join(t)}else{const i=this._normalizedRanges[n].join(this._normalizedRanges[r-1]).join(t);this._normalizedRanges.splice(n,r-n,i)}}contains(t){const n=$t(this._normalizedRanges,r=>r.startLineNumber<=t);return!!n&&n.endLineNumberExclusive>t}intersects(t){const n=$t(this._normalizedRanges,r=>r.startLineNumber<t.endLineNumberExclusive);return!!n&&n.endLineNumberExclusive>t.startLineNumber}getUnion(t){if(this._normalizedRanges.length===0)return t;if(t._normalizedRanges.length===0)return this;const n=[];let r=0,i=0,s=null;for(;r<this._normalizedRanges.length||i<t._normalizedRanges.length;){let a=null;if(r<this._normalizedRanges.length&&i<t._normalizedRanges.length){const l=this._normalizedRanges[r],o=t._normalizedRanges[i];l.startLineNumber<o.startLineNumber?(a=l,r++):(a=o,i++)}else r<this._normalizedRanges.length?(a=this._normalizedRanges[r],r++):(a=t._normalizedRanges[i],i++);s===null?s=a:s.endLineNumberExclusive>=a.startLineNumber?s=new H(s.startLineNumber,Math.max(s.endLineNumberExclusive,a.endLineNumberExclusive)):(n.push(s),s=a)}return s!==null&&n.push(s),new $e(n)}subtractFrom(t){const n=bi(this._normalizedRanges,a=>a.endLineNumberExclusive>=t.startLineNumber),r=pn(this._normalizedRanges,a=>a.startLineNumber<=t.endLineNumberExclusive)+1;if(n===r)return new $e([t]);const i=[];let s=t.startLineNumber;for(let a=n;a<r;a++){const l=this._normalizedRanges[a];l.startLineNumber>s&&i.push(new H(s,l.startLineNumber)),s=l.endLineNumberExclusive}return s<t.endLineNumberExclusive&&i.push(new H(s,t.endLineNumberExclusive)),new $e(i)}toString(){return this._normalizedRanges.map(t=>t.toString()).join(", ")}getIntersection(t){const n=[];let r=0,i=0;for(;r<this._normalizedRanges.length&&i<t._normalizedRanges.length;){const s=this._normalizedRanges[r],a=t._normalizedRanges[i],l=s.intersect(a);l&&!l.isEmpty&&n.push(l),s.endLineNumberExclusive<a.endLineNumberExclusive?r++:i++}return new $e(n)}getWithDelta(t){return new $e(this._normalizedRanges.map(n=>n.delta(t)))}}const xt=class xt{static betweenPositions(t,n){return t.lineNumber===n.lineNumber?new xt(0,n.column-t.column):new xt(n.lineNumber-t.lineNumber,n.column-1)}static ofRange(t){return xt.betweenPositions(t.getStartPosition(),t.getEndPosition())}static ofText(t){let n=0,r=0;for(const i of t)i===\`
9
- \`?(n++,r=0):r++;return new xt(n,r)}constructor(t,n){this.lineCount=t,this.columnCount=n}isGreaterThanOrEqualTo(t){return this.lineCount!==t.lineCount?this.lineCount>t.lineCount:this.columnCount>=t.columnCount}createRange(t){return this.lineCount===0?new Q(t.lineNumber,t.column,t.lineNumber,t.column+this.columnCount):new Q(t.lineNumber,t.column,t.lineNumber+this.lineCount,this.columnCount+1)}addToPosition(t){return this.lineCount===0?new he(t.lineNumber,t.column+this.columnCount):new he(t.lineNumber+this.lineCount,this.columnCount+1)}toString(){return\`\${this.lineCount},\${this.columnCount}\`}};xt.zero=new xt(0,0);let Io=xt;class cu{constructor(t,n){this.range=t,this.text=n}toSingleEditOperation(){return{range:this.range,text:this.text}}}class Ie{static inverse(t,n,r){const i=[];let s=1,a=1;for(const o of t){const c=new Ie(new H(s,o.original.startLineNumber),new H(a,o.modified.startLineNumber));c.modified.isEmpty||i.push(c),s=o.original.endLineNumberExclusive,a=o.modified.endLineNumberExclusive}const l=new Ie(new H(s,n+1),new H(a,r+1));return l.modified.isEmpty||i.push(l),i}static clip(t,n,r){const i=[];for(const s of t){const a=s.original.intersect(n),l=s.modified.intersect(r);a&&!a.isEmpty&&l&&!l.isEmpty&&i.push(new Ie(a,l))}return i}constructor(t,n){this.original=t,this.modified=n}toString(){return\`{\${this.original.toString()}->\${this.modified.toString()}}\`}flip(){return new Ie(this.modified,this.original)}join(t){return new Ie(this.original.join(t.original),this.modified.join(t.modified))}toRangeMapping(){const t=this.original.toInclusiveRange(),n=this.modified.toInclusiveRange();if(t&&n)return new Te(t,n);if(this.original.startLineNumber===1||this.modified.startLineNumber===1){if(!(this.modified.startLineNumber===1&&this.original.startLineNumber===1))throw new ke("not a valid diff");return new Te(new Q(this.original.startLineNumber,1,this.original.endLineNumberExclusive,1),new Q(this.modified.startLineNumber,1,this.modified.endLineNumberExclusive,1))}else return new Te(new Q(this.original.startLineNumber-1,Number.MAX_SAFE_INTEGER,this.original.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER),new Q(this.modified.startLineNumber-1,Number.MAX_SAFE_INTEGER,this.modified.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER))}toRangeMapping2(t,n){if(Ao(this.original.endLineNumberExclusive,t)&&Ao(this.modified.endLineNumberExclusive,n))return new Te(new Q(this.original.startLineNumber,1,this.original.endLineNumberExclusive,1),new Q(this.modified.startLineNumber,1,this.modified.endLineNumberExclusive,1));if(!this.original.isEmpty&&!this.modified.isEmpty)return new Te(Q.fromPositions(new he(this.original.startLineNumber,1),Bt(new he(this.original.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER),t)),Q.fromPositions(new he(this.modified.startLineNumber,1),Bt(new he(this.modified.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER),n)));if(this.original.startLineNumber>1&&this.modified.startLineNumber>1)return new Te(Q.fromPositions(Bt(new he(this.original.startLineNumber-1,Number.MAX_SAFE_INTEGER),t),Bt(new he(this.original.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER),t)),Q.fromPositions(Bt(new he(this.modified.startLineNumber-1,Number.MAX_SAFE_INTEGER),n),Bt(new he(this.modified.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER),n)));throw new ke}}function Bt(e,t){if(e.lineNumber<1)return new he(1,1);if(e.lineNumber>t.length)return new he(t.length,t[t.length-1].length+1);const n=t[e.lineNumber-1];return e.column>n.length+1?new he(e.lineNumber,n.length+1):e}function Ao(e,t){return e>=1&&e<=t.length}class Ze extends Ie{static fromRangeMappings(t){const n=H.join(t.map(i=>H.fromRangeInclusive(i.originalRange))),r=H.join(t.map(i=>H.fromRangeInclusive(i.modifiedRange)));return new Ze(n,r,t)}constructor(t,n,r){super(t,n),this.innerChanges=r}flip(){return new Ze(this.modified,this.original,this.innerChanges?.map(t=>t.flip()))}withInnerChangesFromLineRanges(){return new Ze(this.original,this.modified,[this.toRangeMapping()])}}class Te{static assertSorted(t){for(let n=1;n<t.length;n++){const r=t[n-1],i=t[n];if(!(r.originalRange.getEndPosition().isBeforeOrEqual(i.originalRange.getStartPosition())&&r.modifiedRange.getEndPosition().isBeforeOrEqual(i.modifiedRange.getStartPosition())))throw new ke("Range mappings must be sorted")}}constructor(t,n){this.originalRange=t,this.modifiedRange=n}toString(){return\`{\${this.originalRange.toString()}->\${this.modifiedRange.toString()}}\`}flip(){return new Te(this.modifiedRange,this.originalRange)}toTextEdit(t){const n=t.getValueOfRange(this.modifiedRange);return new cu(this.originalRange,n)}}const hu=3;class du{computeDiff(t,n,r){const s=new mu(t,n,{maxComputationTime:r.maxComputationTimeMs,shouldIgnoreTrimWhitespace:r.ignoreTrimWhitespace,shouldComputeCharChanges:!0,shouldMakePrettyDiff:!0,shouldPostProcessCharChanges:!0}).computeDiff(),a=[];let l=null;for(const o of s.changes){let c;o.originalEndLineNumber===0?c=new H(o.originalStartLineNumber+1,o.originalStartLineNumber+1):c=new H(o.originalStartLineNumber,o.originalEndLineNumber+1);let d;o.modifiedEndLineNumber===0?d=new H(o.modifiedStartLineNumber+1,o.modifiedStartLineNumber+1):d=new H(o.modifiedStartLineNumber,o.modifiedEndLineNumber+1);let u=new Ze(c,d,o.charChanges?.map(f=>new Te(new Q(f.originalStartLineNumber,f.originalStartColumn,f.originalEndLineNumber,f.originalEndColumn),new Q(f.modifiedStartLineNumber,f.modifiedStartColumn,f.modifiedEndLineNumber,f.modifiedEndColumn))));l&&(l.modified.endLineNumberExclusive===u.modified.startLineNumber||l.original.endLineNumberExclusive===u.original.startLineNumber)&&(u=new Ze(l.original.join(u.original),l.modified.join(u.modified),l.innerChanges&&u.innerChanges?l.innerChanges.concat(u.innerChanges):void 0),a.pop()),a.push(u),l=u}return Qn(()=>ko(a,(o,c)=>c.original.startLineNumber-o.original.endLineNumberExclusive===c.modified.startLineNumber-o.modified.endLineNumberExclusive&&o.original.endLineNumberExclusive<c.original.startLineNumber&&o.modified.endLineNumberExclusive<c.modified.startLineNumber)),new Kn(a,[],s.quitEarly)}}function Mo(e,t,n,r){return new ft(e,t,n).ComputeDiff(r)}let Lo=class{constructor(t){const n=[],r=[];for(let i=0,s=t.length;i<s;i++)n[i]=vi(t[i],1),r[i]=wi(t[i],1);this.lines=t,this._startColumns=n,this._endColumns=r}getElements(){const t=[];for(let n=0,r=this.lines.length;n<r;n++)t[n]=this.lines[n].substring(this._startColumns[n]-1,this._endColumns[n]-1);return t}getStrictElement(t){return this.lines[t]}getStartLineNumber(t){return t+1}getEndLineNumber(t){return t+1}createCharSequence(t,n,r){const i=[],s=[],a=[];let l=0;for(let o=n;o<=r;o++){const c=this.lines[o],d=t?this._startColumns[o]:1,u=t?this._endColumns[o]:c.length+1;for(let f=d;f<u;f++)i[l]=c.charCodeAt(f-1),s[l]=o+1,a[l]=f,l++;!t&&o<r&&(i[l]=10,s[l]=o+1,a[l]=c.length+1,l++)}return new uu(i,s,a)}};class uu{constructor(t,n,r){this._charCodes=t,this._lineNumbers=n,this._columns=r}toString(){return"["+this._charCodes.map((t,n)=>(t===10?"\\\\n":String.fromCharCode(t))+\`-(\${this._lineNumbers[n]},\${this._columns[n]})\`).join(", ")+"]"}_assertIndex(t,n){if(t<0||t>=n.length)throw new Error("Illegal index")}getElements(){return this._charCodes}getStartLineNumber(t){return t>0&&t===this._lineNumbers.length?this.getEndLineNumber(t-1):(this._assertIndex(t,this._lineNumbers),this._lineNumbers[t])}getEndLineNumber(t){return t===-1?this.getStartLineNumber(t+1):(this._assertIndex(t,this._lineNumbers),this._charCodes[t]===10?this._lineNumbers[t]+1:this._lineNumbers[t])}getStartColumn(t){return t>0&&t===this._columns.length?this.getEndColumn(t-1):(this._assertIndex(t,this._columns),this._columns[t])}getEndColumn(t){return t===-1?this.getStartColumn(t+1):(this._assertIndex(t,this._columns),this._charCodes[t]===10?1:this._columns[t]+1)}}class qt{constructor(t,n,r,i,s,a,l,o){this.originalStartLineNumber=t,this.originalStartColumn=n,this.originalEndLineNumber=r,this.originalEndColumn=i,this.modifiedStartLineNumber=s,this.modifiedStartColumn=a,this.modifiedEndLineNumber=l,this.modifiedEndColumn=o}static createFromDiffChange(t,n,r){const i=n.getStartLineNumber(t.originalStart),s=n.getStartColumn(t.originalStart),a=n.getEndLineNumber(t.originalStart+t.originalLength-1),l=n.getEndColumn(t.originalStart+t.originalLength-1),o=r.getStartLineNumber(t.modifiedStart),c=r.getStartColumn(t.modifiedStart),d=r.getEndLineNumber(t.modifiedStart+t.modifiedLength-1),u=r.getEndColumn(t.modifiedStart+t.modifiedLength-1);return new qt(i,s,a,l,o,c,d,u)}}function pu(e){if(e.length<=1)return e;const t=[e[0]];let n=t[0];for(let r=1,i=e.length;r<i;r++){const s=e[r],a=s.originalStart-(n.originalStart+n.originalLength),l=s.modifiedStart-(n.modifiedStart+n.modifiedLength);Math.min(a,l)<hu?(n.originalLength=s.originalStart+s.originalLength-n.originalStart,n.modifiedLength=s.modifiedStart+s.modifiedLength-n.modifiedStart):(t.push(s),n=s)}return t}class mn{constructor(t,n,r,i,s){this.originalStartLineNumber=t,this.originalEndLineNumber=n,this.modifiedStartLineNumber=r,this.modifiedEndLineNumber=i,this.charChanges=s}static createFromDiffResult(t,n,r,i,s,a,l){let o,c,d,u,f;if(n.originalLength===0?(o=r.getStartLineNumber(n.originalStart)-1,c=0):(o=r.getStartLineNumber(n.originalStart),c=r.getEndLineNumber(n.originalStart+n.originalLength-1)),n.modifiedLength===0?(d=i.getStartLineNumber(n.modifiedStart)-1,u=0):(d=i.getStartLineNumber(n.modifiedStart),u=i.getEndLineNumber(n.modifiedStart+n.modifiedLength-1)),a&&n.originalLength>0&&n.originalLength<20&&n.modifiedLength>0&&n.modifiedLength<20&&s()){const m=r.createCharSequence(t,n.originalStart,n.originalStart+n.originalLength-1),v=i.createCharSequence(t,n.modifiedStart,n.modifiedStart+n.modifiedLength-1);if(m.getElements().length>0&&v.getElements().length>0){let w=Mo(m,v,s,!0).changes;l&&(w=pu(w)),f=[];for(let k=0,R=w.length;k<R;k++)f.push(qt.createFromDiffChange(w[k],m,v))}}return new mn(o,c,d,u,f)}}class mu{constructor(t,n,r){this.shouldComputeCharChanges=r.shouldComputeCharChanges,this.shouldPostProcessCharChanges=r.shouldPostProcessCharChanges,this.shouldIgnoreTrimWhitespace=r.shouldIgnoreTrimWhitespace,this.shouldMakePrettyDiff=r.shouldMakePrettyDiff,this.originalLines=t,this.modifiedLines=n,this.original=new Lo(t),this.modified=new Lo(n),this.continueLineDiff=zo(r.maxComputationTime),this.continueCharDiff=zo(r.maxComputationTime===0?0:Math.min(r.maxComputationTime,5e3))}computeDiff(){if(this.original.lines.length===1&&this.original.lines[0].length===0)return this.modified.lines.length===1&&this.modified.lines[0].length===0?{quitEarly:!1,changes:[]}:{quitEarly:!1,changes:[{originalStartLineNumber:1,originalEndLineNumber:1,modifiedStartLineNumber:1,modifiedEndLineNumber:this.modified.lines.length,charChanges:void 0}]};if(this.modified.lines.length===1&&this.modified.lines[0].length===0)return{quitEarly:!1,changes:[{originalStartLineNumber:1,originalEndLineNumber:this.original.lines.length,modifiedStartLineNumber:1,modifiedEndLineNumber:1,charChanges:void 0}]};const t=Mo(this.original,this.modified,this.continueLineDiff,this.shouldMakePrettyDiff),n=t.changes,r=t.quitEarly;if(this.shouldIgnoreTrimWhitespace){const l=[];for(let o=0,c=n.length;o<c;o++)l.push(mn.createFromDiffResult(this.shouldIgnoreTrimWhitespace,n[o],this.original,this.modified,this.continueCharDiff,this.shouldComputeCharChanges,this.shouldPostProcessCharChanges));return{quitEarly:r,changes:l}}const i=[];let s=0,a=0;for(let l=-1,o=n.length;l<o;l++){const c=l+1<o?n[l+1]:null,d=c?c.originalStart:this.originalLines.length,u=c?c.modifiedStart:this.modifiedLines.length;for(;s<d&&a<u;){const f=this.originalLines[s],m=this.modifiedLines[a];if(f!==m){{let v=vi(f,1),w=vi(m,1);for(;v>1&&w>1;){const k=f.charCodeAt(v-2),R=m.charCodeAt(w-2);if(k!==R)break;v--,w--}(v>1||w>1)&&this._pushTrimWhitespaceCharChange(i,s+1,1,v,a+1,1,w)}{let v=wi(f,1),w=wi(m,1);const k=f.length+1,R=m.length+1;for(;v<k&&w<R;){const I=f.charCodeAt(v-1),N=f.charCodeAt(w-1);if(I!==N)break;v++,w++}(v<k||w<R)&&this._pushTrimWhitespaceCharChange(i,s+1,v,k,a+1,w,R)}}s++,a++}c&&(i.push(mn.createFromDiffResult(this.shouldIgnoreTrimWhitespace,c,this.original,this.modified,this.continueCharDiff,this.shouldComputeCharChanges,this.shouldPostProcessCharChanges)),s+=c.originalLength,a+=c.modifiedLength)}return{quitEarly:r,changes:i}}_pushTrimWhitespaceCharChange(t,n,r,i,s,a,l){if(this._mergeTrimWhitespaceCharChange(t,n,r,i,s,a,l))return;let o;this.shouldComputeCharChanges&&(o=[new qt(n,r,n,i,s,a,s,l)]),t.push(new mn(n,n,s,s,o))}_mergeTrimWhitespaceCharChange(t,n,r,i,s,a,l){const o=t.length;if(o===0)return!1;const c=t[o-1];return c.originalEndLineNumber===0||c.modifiedEndLineNumber===0?!1:c.originalEndLineNumber===n&&c.modifiedEndLineNumber===s?(this.shouldComputeCharChanges&&c.charChanges&&c.charChanges.push(new qt(n,r,n,i,s,a,s,l)),!0):c.originalEndLineNumber+1===n&&c.modifiedEndLineNumber+1===s?(c.originalEndLineNumber=n,c.modifiedEndLineNumber=s,this.shouldComputeCharChanges&&c.charChanges&&c.charChanges.push(new qt(n,r,n,i,s,a,s,l)),!0):!1}}function vi(e,t){const n=jh(e);return n===-1?t:n+1}function wi(e,t){const n=Hh(e);return n===-1?t:n+2}function zo(e){if(e===0)return()=>!0;const t=Date.now();return()=>Date.now()-t<e}function fu(e,t,n=(r,i)=>r===i){if(e===t)return!0;if(!e||!t||e.length!==t.length)return!1;for(let r=0,i=e.length;r<i;r++)if(!n(e[r],t[r]))return!1;return!0}function*gu(e,t){let n,r;for(const i of e)r!==void 0&&t(r,i)?n.push(i):(n&&(yield n),n=[i]),r=i;n&&(yield n)}function bu(e,t){for(let n=0;n<=e.length;n++)t(n===0?void 0:e[n-1],n===e.length?void 0:e[n])}function vu(e,t){for(let n=0;n<e.length;n++)t(n===0?void 0:e[n-1],e[n],n+1===e.length?void 0:e[n+1])}function wu(e,t){for(const n of t)e.push(n)}var yi;(function(e){function t(s){return s<0}e.isLessThan=t;function n(s){return s<=0}e.isLessThanOrEqual=n;function r(s){return s>0}e.isGreaterThan=r;function i(s){return s===0}e.isNeitherLessOrGreaterThan=i,e.greaterThan=1,e.lessThan=-1,e.neitherLessOrGreaterThan=0})(yi||(yi={}));function er(e,t){return(n,r)=>t(e(n),e(r))}const tr=(e,t)=>e-t;function yu(e){return(t,n)=>-e(t,n)}const an=class an{constructor(t){this.iterate=t}toArray(){const t=[];return this.iterate(n=>(t.push(n),!0)),t}filter(t){return new an(n=>this.iterate(r=>t(r)?n(r):!0))}map(t){return new an(n=>this.iterate(r=>n(t(r))))}findLast(t){let n;return this.iterate(r=>(t(r)&&(n=r),!0)),n}findLastMaxBy(t){let n,r=!0;return this.iterate(i=>((r||yi.isGreaterThan(t(i,n)))&&(r=!1,n=i),!0)),n}};an.empty=new an(t=>{});let Po=an;class et{static trivial(t,n){return new et([new le(Y.ofLength(t.length),Y.ofLength(n.length))],!1)}static trivialTimedOut(t,n){return new et([new le(Y.ofLength(t.length),Y.ofLength(n.length))],!0)}constructor(t,n){this.diffs=t,this.hitTimeout=n}}class le{static invert(t,n){const r=[];return bu(t,(i,s)=>{r.push(le.fromOffsetPairs(i?i.getEndExclusives():tt.zero,s?s.getStarts():new tt(n,(i?i.seq2Range.endExclusive-i.seq1Range.endExclusive:0)+n)))}),r}static fromOffsetPairs(t,n){return new le(new Y(t.offset1,n.offset1),new Y(t.offset2,n.offset2))}static assertSorted(t){let n;for(const r of t){if(n&&!(n.seq1Range.endExclusive<=r.seq1Range.start&&n.seq2Range.endExclusive<=r.seq2Range.start))throw new ke("Sequence diffs must be sorted");n=r}}constructor(t,n){this.seq1Range=t,this.seq2Range=n}swap(){return new le(this.seq2Range,this.seq1Range)}toString(){return\`\${this.seq1Range} <-> \${this.seq2Range}\`}join(t){return new le(this.seq1Range.join(t.seq1Range),this.seq2Range.join(t.seq2Range))}delta(t){return t===0?this:new le(this.seq1Range.delta(t),this.seq2Range.delta(t))}deltaStart(t){return t===0?this:new le(this.seq1Range.deltaStart(t),this.seq2Range.deltaStart(t))}deltaEnd(t){return t===0?this:new le(this.seq1Range.deltaEnd(t),this.seq2Range.deltaEnd(t))}intersect(t){const n=this.seq1Range.intersect(t.seq1Range),r=this.seq2Range.intersect(t.seq2Range);if(!(!n||!r))return new le(n,r)}getStarts(){return new tt(this.seq1Range.start,this.seq2Range.start)}getEndExclusives(){return new tt(this.seq1Range.endExclusive,this.seq2Range.endExclusive)}}const Dt=class Dt{constructor(t,n){this.offset1=t,this.offset2=n}toString(){return\`\${this.offset1} <-> \${this.offset2}\`}delta(t){return t===0?this:new Dt(this.offset1+t,this.offset2+t)}equals(t){return this.offset1===t.offset1&&this.offset2===t.offset2}};Dt.zero=new Dt(0,0),Dt.max=new Dt(Number.MAX_SAFE_INTEGER,Number.MAX_SAFE_INTEGER);let tt=Dt;const zr=class zr{isValid(){return!0}};zr.instance=new zr;let fn=zr;class xu{constructor(t){if(this.timeout=t,this.startTime=Date.now(),this.valid=!0,t<=0)throw new ke("timeout must be positive")}isValid(){if(!(Date.now()-this.startTime<this.timeout)&&this.valid){this.valid=!1;debugger}return this.valid}}class xi{constructor(t,n){this.width=t,this.height=n,this.array=[],this.array=new Array(t*n)}get(t,n){return this.array[t+n*this.width]}set(t,n,r){this.array[t+n*this.width]=r}}function Si(e){return e===32||e===9}const Tn=class Tn{static getKey(t){let n=this.chrKeys.get(t);return n===void 0&&(n=this.chrKeys.size,this.chrKeys.set(t,n)),n}constructor(t,n,r){this.range=t,this.lines=n,this.source=r,this.histogram=[];let i=0;for(let s=t.startLineNumber-1;s<t.endLineNumberExclusive-1;s++){const a=n[s];for(let o=0;o<a.length;o++){i++;const c=a[o],d=Tn.getKey(c);this.histogram[d]=(this.histogram[d]||0)+1}i++;const l=Tn.getKey(\`
10
- \`);this.histogram[l]=(this.histogram[l]||0)+1}this.totalCount=i}computeSimilarity(t){let n=0;const r=Math.max(this.histogram.length,t.histogram.length);for(let i=0;i<r;i++)n+=Math.abs((this.histogram[i]??0)-(t.histogram[i]??0));return 1-n/(this.totalCount+t.totalCount)}};Tn.chrKeys=new Map;let nr=Tn;class Su{compute(t,n,r=fn.instance,i){if(t.length===0||n.length===0)return et.trivial(t,n);const s=new xi(t.length,n.length),a=new xi(t.length,n.length),l=new xi(t.length,n.length);for(let v=0;v<t.length;v++)for(let w=0;w<n.length;w++){if(!r.isValid())return et.trivialTimedOut(t,n);const k=v===0?0:s.get(v-1,w),R=w===0?0:s.get(v,w-1);let I;t.getElement(v)===n.getElement(w)?(v===0||w===0?I=0:I=s.get(v-1,w-1),v>0&&w>0&&a.get(v-1,w-1)===3&&(I+=l.get(v-1,w-1)),I+=i?i(v,w):1):I=-1;const N=Math.max(k,R,I);if(N===I){const E=v>0&&w>0?l.get(v-1,w-1):0;l.set(v,w,E+1),a.set(v,w,3)}else N===k?(l.set(v,w,0),a.set(v,w,1)):N===R&&(l.set(v,w,0),a.set(v,w,2));s.set(v,w,N)}const o=[];let c=t.length,d=n.length;function u(v,w){(v+1!==c||w+1!==d)&&o.push(new le(new Y(v+1,c),new Y(w+1,d))),c=v,d=w}let f=t.length-1,m=n.length-1;for(;f>=0&&m>=0;)a.get(f,m)===3?(u(f,m),f--,m--):a.get(f,m)===1?f--:m--;return u(-1,-1),o.reverse(),new et(o,!1)}}class To{compute(t,n,r=fn.instance){if(t.length===0||n.length===0)return et.trivial(t,n);const i=t,s=n;function a(w,k){for(;w<i.length&&k<s.length&&i.getElement(w)===s.getElement(k);)w++,k++;return w}let l=0;const o=new Cu;o.set(0,a(0,0));const c=new _u;c.set(0,o.get(0)===0?null:new Oo(null,0,0,o.get(0)));let d=0;e:for(;;){if(l++,!r.isValid())return et.trivialTimedOut(i,s);const w=-Math.min(l,s.length+l%2),k=Math.min(l,i.length+l%2);for(d=w;d<=k;d+=2){const R=d===k?-1:o.get(d+1),I=d===w?-1:o.get(d-1)+1,N=Math.min(Math.max(R,I),i.length),E=N-d;if(N>i.length||E>s.length)continue;const F=a(N,E);o.set(d,F);const M=N===R?c.get(d+1):c.get(d-1);if(c.set(d,F!==N?new Oo(M,N,E,F-N):M),o.get(d)===i.length&&o.get(d)-d===s.length)break e}}let u=c.get(d);const f=[];let m=i.length,v=s.length;for(;;){const w=u?u.x+u.length:0,k=u?u.y+u.length:0;if((w!==m||k!==v)&&f.push(new le(new Y(w,m),new Y(k,v))),!u)break;m=u.x,v=u.y,u=u.prev}return f.reverse(),new et(f,!1)}}class Oo{constructor(t,n,r,i){this.prev=t,this.x=n,this.y=r,this.length=i}}class Cu{constructor(){this.positiveArr=new Int32Array(10),this.negativeArr=new Int32Array(10)}get(t){return t<0?(t=-t-1,this.negativeArr[t]):this.positiveArr[t]}set(t,n){if(t<0){if(t=-t-1,t>=this.negativeArr.length){const r=this.negativeArr;this.negativeArr=new Int32Array(r.length*2),this.negativeArr.set(r)}this.negativeArr[t]=n}else{if(t>=this.positiveArr.length){const r=this.positiveArr;this.positiveArr=new Int32Array(r.length*2),this.positiveArr.set(r)}this.positiveArr[t]=n}}}class _u{constructor(){this.positiveArr=[],this.negativeArr=[]}get(t){return t<0?(t=-t-1,this.negativeArr[t]):this.positiveArr[t]}set(t,n){t<0?(t=-t-1,this.negativeArr[t]=n):this.positiveArr[t]=n}}class rr{constructor(t,n,r){this.lines=t,this.range=n,this.considerWhitespaceChanges=r,this.elements=[],this.firstElementOffsetByLineIdx=[],this.lineStartOffsets=[],this.trimmedWsLengthsByLineIdx=[],this.firstElementOffsetByLineIdx.push(0);for(let i=this.range.startLineNumber;i<=this.range.endLineNumber;i++){let s=t[i-1],a=0;i===this.range.startLineNumber&&this.range.startColumn>1&&(a=this.range.startColumn-1,s=s.substring(a)),this.lineStartOffsets.push(a);let l=0;if(!r){const c=s.trimStart();l=s.length-c.length,s=c.trimEnd()}this.trimmedWsLengthsByLineIdx.push(l);const o=i===this.range.endLineNumber?Math.min(this.range.endColumn-1-a-l,s.length):s.length;for(let c=0;c<o;c++)this.elements.push(s.charCodeAt(c));i<this.range.endLineNumber&&(this.elements.push(10),this.firstElementOffsetByLineIdx.push(this.elements.length))}}toString(){return\`Slice: "\${this.text}"\`}get text(){return this.getText(new Y(0,this.length))}getText(t){return this.elements.slice(t.start,t.endExclusive).map(n=>String.fromCharCode(n)).join("")}getElement(t){return this.elements[t]}get length(){return this.elements.length}getBoundaryScore(t){const n=Uo(t>0?this.elements[t-1]:-1),r=Uo(t<this.elements.length?this.elements[t]:-1);if(n===7&&r===8)return 0;if(n===8)return 150;let i=0;return n!==r&&(i+=10,n===0&&r===1&&(i+=1)),i+=Wo(n),i+=Wo(r),i}translateOffset(t,n="right"){const r=pn(this.firstElementOffsetByLineIdx,s=>s<=t),i=t-this.firstElementOffsetByLineIdx[r];return new he(this.range.startLineNumber+r,1+this.lineStartOffsets[r]+i+(i===0&&n==="left"?0:this.trimmedWsLengthsByLineIdx[r]))}translateRange(t){const n=this.translateOffset(t.start,"right"),r=this.translateOffset(t.endExclusive,"left");return r.isBefore(n)?Q.fromPositions(r,r):Q.fromPositions(n,r)}findWordContaining(t){if(t<0||t>=this.elements.length||!Ci(this.elements[t]))return;let n=t;for(;n>0&&Ci(this.elements[n-1]);)n--;let r=t;for(;r<this.elements.length&&Ci(this.elements[r]);)r++;return new Y(n,r)}countLinesIn(t){return this.translateOffset(t.endExclusive).lineNumber-this.translateOffset(t.start).lineNumber}isStronglyEqual(t,n){return this.elements[t]===this.elements[n]}extendToFullLines(t){const n=$t(this.firstElementOffsetByLineIdx,i=>i<=t.start)??0,r=lu(this.firstElementOffsetByLineIdx,i=>t.endExclusive<=i)??this.elements.length;return new Y(n,r)}}function Ci(e){return e>=97&&e<=122||e>=65&&e<=90||e>=48&&e<=57}const ku={0:0,1:0,2:0,3:10,4:2,5:30,6:3,7:10,8:10};function Wo(e){return ku[e]}function Uo(e){return e===10?8:e===13?7:Si(e)?6:e>=97&&e<=122?0:e>=65&&e<=90?1:e>=48&&e<=57?2:e===-1?3:e===44||e===59?5:4}function Eu(e,t,n,r,i,s){let{moves:a,excludedChanges:l}=Ru(e,t,n,s);if(!s.isValid())return[];const o=e.filter(d=>!l.has(d)),c=Nu(o,r,i,t,n,s);return wu(a,c),a=Du(a),a=a.filter(d=>{const u=d.original.toOffsetRange().slice(t).map(m=>m.trim());return u.join(\`
11
- \`).length>=15&&Fu(u,m=>m.length>=2)>=2}),a=Iu(e,a),a}function Fu(e,t){let n=0;for(const r of e)t(r)&&n++;return n}function Ru(e,t,n,r){const i=[],s=e.filter(o=>o.modified.isEmpty&&o.original.length>=3).map(o=>new nr(o.original,t,o)),a=new Set(e.filter(o=>o.original.isEmpty&&o.modified.length>=3).map(o=>new nr(o.modified,n,o))),l=new Set;for(const o of s){let c=-1,d;for(const u of a){const f=o.computeSimilarity(u);f>c&&(c=f,d=u)}if(c>.9&&d&&(a.delete(d),i.push(new Ie(o.range,d.range)),l.add(o.source),l.add(d.source)),!r.isValid())return{moves:i,excludedChanges:l}}return{moves:i,excludedChanges:l}}function Nu(e,t,n,r,i,s){const a=[],l=new Jd;for(const f of e)for(let m=f.original.startLineNumber;m<f.original.endLineNumberExclusive-2;m++){const v=\`\${t[m-1]}:\${t[m+1-1]}:\${t[m+2-1]}\`;l.add(v,{range:new H(m,m+3)})}const o=[];e.sort(er(f=>f.modified.startLineNumber,tr));for(const f of e){let m=[];for(let v=f.modified.startLineNumber;v<f.modified.endLineNumberExclusive-2;v++){const w=\`\${n[v-1]}:\${n[v+1-1]}:\${n[v+2-1]}\`,k=new H(v,v+3),R=[];l.forEach(w,({range:I})=>{for(const E of m)if(E.originalLineRange.endLineNumberExclusive+1===I.endLineNumberExclusive&&E.modifiedLineRange.endLineNumberExclusive+1===k.endLineNumberExclusive){E.originalLineRange=new H(E.originalLineRange.startLineNumber,I.endLineNumberExclusive),E.modifiedLineRange=new H(E.modifiedLineRange.startLineNumber,k.endLineNumberExclusive),R.push(E);return}const N={modifiedLineRange:k,originalLineRange:I};o.push(N),R.push(N)}),m=R}if(!s.isValid())return[]}o.sort(yu(er(f=>f.modifiedLineRange.length,tr)));const c=new $e,d=new $e;for(const f of o){const m=f.modifiedLineRange.startLineNumber-f.originalLineRange.startLineNumber,v=c.subtractFrom(f.modifiedLineRange),w=d.subtractFrom(f.originalLineRange).getWithDelta(m),k=v.getIntersection(w);for(const R of k.ranges){if(R.length<3)continue;const I=R,N=R.delta(-m);a.push(new Ie(N,I)),c.addRange(I),d.addRange(N)}}a.sort(er(f=>f.original.startLineNumber,tr));const u=new Zn(e);for(let f=0;f<a.length;f++){const m=a[f],v=u.findLastMonotonous(M=>M.original.startLineNumber<=m.original.startLineNumber),w=$t(e,M=>M.modified.startLineNumber<=m.modified.startLineNumber),k=Math.max(m.original.startLineNumber-v.original.startLineNumber,m.modified.startLineNumber-w.modified.startLineNumber),R=u.findLastMonotonous(M=>M.original.startLineNumber<m.original.endLineNumberExclusive),I=$t(e,M=>M.modified.startLineNumber<m.modified.endLineNumberExclusive),N=Math.max(R.original.endLineNumberExclusive-m.original.endLineNumberExclusive,I.modified.endLineNumberExclusive-m.modified.endLineNumberExclusive);let E;for(E=0;E<k;E++){const M=m.original.startLineNumber-E-1,T=m.modified.startLineNumber-E-1;if(M>r.length||T>i.length||c.contains(T)||d.contains(M)||!Vo(r[M-1],i[T-1],s))break}E>0&&(d.addRange(new H(m.original.startLineNumber-E,m.original.startLineNumber)),c.addRange(new H(m.modified.startLineNumber-E,m.modified.startLineNumber)));let F;for(F=0;F<N;F++){const M=m.original.endLineNumberExclusive+F,T=m.modified.endLineNumberExclusive+F;if(M>r.length||T>i.length||c.contains(T)||d.contains(M)||!Vo(r[M-1],i[T-1],s))break}F>0&&(d.addRange(new H(m.original.endLineNumberExclusive,m.original.endLineNumberExclusive+F)),c.addRange(new H(m.modified.endLineNumberExclusive,m.modified.endLineNumberExclusive+F))),(E>0||F>0)&&(a[f]=new Ie(new H(m.original.startLineNumber-E,m.original.endLineNumberExclusive+F),new H(m.modified.startLineNumber-E,m.modified.endLineNumberExclusive+F)))}return a}function Vo(e,t,n){if(e.trim()===t.trim())return!0;if(e.length>300&&t.length>300)return!1;const i=new To().compute(new rr([e],new Q(1,1,1,e.length),!1),new rr([t],new Q(1,1,1,t.length),!1),n);let s=0;const a=le.invert(i.diffs,e.length);for(const d of a)d.seq1Range.forEach(u=>{Si(e.charCodeAt(u))||s++});function l(d){let u=0;for(let f=0;f<e.length;f++)Si(d.charCodeAt(f))||u++;return u}const o=l(e.length>t.length?e:t);return s/o>.6&&o>10}function Du(e){if(e.length===0)return e;e.sort(er(n=>n.original.startLineNumber,tr));const t=[e[0]];for(let n=1;n<e.length;n++){const r=t[t.length-1],i=e[n],s=i.original.startLineNumber-r.original.endLineNumberExclusive,a=i.modified.startLineNumber-r.modified.endLineNumberExclusive;if(s>=0&&a>=0&&s+a<=2){t[t.length-1]=r.join(i);continue}t.push(i)}return t}function Iu(e,t){const n=new Zn(e);return t=t.filter(r=>{const i=n.findLastMonotonous(l=>l.original.startLineNumber<r.original.endLineNumberExclusive)||new Ie(new H(1,1),new H(1,1)),s=$t(e,l=>l.modified.startLineNumber<r.modified.endLineNumberExclusive);return i!==s}),t}function $o(e,t,n){let r=n;return r=Bo(e,t,r),r=Bo(e,t,r),r=Au(e,t,r),r}function Bo(e,t,n){if(n.length===0)return n;const r=[];r.push(n[0]);for(let s=1;s<n.length;s++){const a=r[r.length-1];let l=n[s];if(l.seq1Range.isEmpty||l.seq2Range.isEmpty){const o=l.seq1Range.start-a.seq1Range.endExclusive;let c;for(c=1;c<=o&&!(e.getElement(l.seq1Range.start-c)!==e.getElement(l.seq1Range.endExclusive-c)||t.getElement(l.seq2Range.start-c)!==t.getElement(l.seq2Range.endExclusive-c));c++);if(c--,c===o){r[r.length-1]=new le(new Y(a.seq1Range.start,l.seq1Range.endExclusive-o),new Y(a.seq2Range.start,l.seq2Range.endExclusive-o));continue}l=l.delta(-c)}r.push(l)}const i=[];for(let s=0;s<r.length-1;s++){const a=r[s+1];let l=r[s];if(l.seq1Range.isEmpty||l.seq2Range.isEmpty){const o=a.seq1Range.start-l.seq1Range.endExclusive;let c;for(c=0;c<o&&!(!e.isStronglyEqual(l.seq1Range.start+c,l.seq1Range.endExclusive+c)||!t.isStronglyEqual(l.seq2Range.start+c,l.seq2Range.endExclusive+c));c++);if(c===o){r[s+1]=new le(new Y(l.seq1Range.start+o,a.seq1Range.endExclusive),new Y(l.seq2Range.start+o,a.seq2Range.endExclusive));continue}c>0&&(l=l.delta(c))}i.push(l)}return r.length>0&&i.push(r[r.length-1]),i}function Au(e,t,n){if(!e.getBoundaryScore||!t.getBoundaryScore)return n;for(let r=0;r<n.length;r++){const i=r>0?n[r-1]:void 0,s=n[r],a=r+1<n.length?n[r+1]:void 0,l=new Y(i?i.seq1Range.endExclusive+1:0,a?a.seq1Range.start-1:e.length),o=new Y(i?i.seq2Range.endExclusive+1:0,a?a.seq2Range.start-1:t.length);s.seq1Range.isEmpty?n[r]=qo(s,e,t,l,o):s.seq2Range.isEmpty&&(n[r]=qo(s.swap(),t,e,o,l).swap())}return n}function qo(e,t,n,r,i){let a=1;for(;e.seq1Range.start-a>=r.start&&e.seq2Range.start-a>=i.start&&n.isStronglyEqual(e.seq2Range.start-a,e.seq2Range.endExclusive-a)&&a<100;)a++;a--;let l=0;for(;e.seq1Range.start+l<r.endExclusive&&e.seq2Range.endExclusive+l<i.endExclusive&&n.isStronglyEqual(e.seq2Range.start+l,e.seq2Range.endExclusive+l)&&l<100;)l++;if(a===0&&l===0)return e;let o=0,c=-1;for(let d=-a;d<=l;d++){const u=e.seq2Range.start+d,f=e.seq2Range.endExclusive+d,m=e.seq1Range.start+d,v=t.getBoundaryScore(m)+n.getBoundaryScore(u)+n.getBoundaryScore(f);v>c&&(c=v,o=d)}return e.delta(o)}function Mu(e,t,n){const r=[];for(const i of n){const s=r[r.length-1];if(!s){r.push(i);continue}i.seq1Range.start-s.seq1Range.endExclusive<=2||i.seq2Range.start-s.seq2Range.endExclusive<=2?r[r.length-1]=new le(s.seq1Range.join(i.seq1Range),s.seq2Range.join(i.seq2Range)):r.push(i)}return r}function Lu(e,t,n){const r=le.invert(n,e.length),i=[];let s=new tt(0,0);function a(o,c){if(o.offset1<s.offset1||o.offset2<s.offset2)return;const d=e.findWordContaining(o.offset1),u=t.findWordContaining(o.offset2);if(!d||!u)return;let f=new le(d,u);const m=f.intersect(c);let v=m.seq1Range.length,w=m.seq2Range.length;for(;r.length>0;){const k=r[0];if(!(k.seq1Range.intersects(f.seq1Range)||k.seq2Range.intersects(f.seq2Range)))break;const I=e.findWordContaining(k.seq1Range.start),N=t.findWordContaining(k.seq2Range.start),E=new le(I,N),F=E.intersect(k);if(v+=F.seq1Range.length,w+=F.seq2Range.length,f=f.join(E),f.seq1Range.endExclusive>=k.seq1Range.endExclusive)r.shift();else break}v+w<(f.seq1Range.length+f.seq2Range.length)*2/3&&i.push(f),s=f.getEndExclusives()}for(;r.length>0;){const o=r.shift();o.seq1Range.isEmpty||(a(o.getStarts(),o),a(o.getEndExclusives().delta(-1),o))}return zu(n,i)}function zu(e,t){const n=[];for(;e.length>0||t.length>0;){const r=e[0],i=t[0];let s;r&&(!i||r.seq1Range.start<i.seq1Range.start)?s=e.shift():s=t.shift(),n.length>0&&n[n.length-1].seq1Range.endExclusive>=s.seq1Range.start?n[n.length-1]=n[n.length-1].join(s):n.push(s)}return n}function Pu(e,t,n){let r=n;if(r.length===0)return r;let i=0,s;do{s=!1;const a=[r[0]];for(let l=1;l<r.length;l++){let d=function(f,m){const v=new Y(c.seq1Range.endExclusive,o.seq1Range.start);return e.getText(v).replace(/\\s/g,"").length<=4&&(f.seq1Range.length+f.seq2Range.length>5||m.seq1Range.length+m.seq2Range.length>5)};const o=r[l],c=a[a.length-1];d(c,o)?(s=!0,a[a.length-1]=a[a.length-1].join(o)):a.push(o)}r=a}while(i++<10&&s);return r}function Tu(e,t,n){let r=n;if(r.length===0)return r;let i=0,s;do{s=!1;const l=[r[0]];for(let o=1;o<r.length;o++){let u=function(m,v){const w=new Y(d.seq1Range.endExclusive,c.seq1Range.start);if(e.countLinesIn(w)>5||w.length>500)return!1;const R=e.getText(w).trim();if(R.length>20||R.split(/\\r\\n|\\r|\\n/).length>1)return!1;const I=e.countLinesIn(m.seq1Range),N=m.seq1Range.length,E=t.countLinesIn(m.seq2Range),F=m.seq2Range.length,M=e.countLinesIn(v.seq1Range),T=v.seq1Range.length,P=t.countLinesIn(v.seq2Range),j=v.seq2Range.length,ee=2*40+50;function A(_){return Math.min(_,ee)}return Math.pow(Math.pow(A(I*40+N),1.5)+Math.pow(A(E*40+F),1.5),1.5)+Math.pow(Math.pow(A(M*40+T),1.5)+Math.pow(A(P*40+j),1.5),1.5)>(ee**1.5)**1.5*1.3};const c=r[o],d=l[l.length-1];u(d,c)?(s=!0,l[l.length-1]=l[l.length-1].join(c)):l.push(c)}r=l}while(i++<10&&s);const a=[];return vu(r,(l,o,c)=>{let d=o;function u(R){return R.length>0&&R.trim().length<=3&&o.seq1Range.length+o.seq2Range.length>100}const f=e.extendToFullLines(o.seq1Range),m=e.getText(new Y(f.start,o.seq1Range.start));u(m)&&(d=d.deltaStart(-m.length));const v=e.getText(new Y(o.seq1Range.endExclusive,f.endExclusive));u(v)&&(d=d.deltaEnd(v.length));const w=le.fromOffsetPairs(l?l.getEndExclusives():tt.zero,c?c.getStarts():tt.max),k=d.intersect(w);a.length>0&&k.getStarts().equals(a[a.length-1].getEndExclusives())?a[a.length-1]=a[a.length-1].join(k):a.push(k)}),a}class jo{constructor(t,n){this.trimmedHash=t,this.lines=n}getElement(t){return this.trimmedHash[t]}get length(){return this.trimmedHash.length}getBoundaryScore(t){const n=t===0?0:Ho(this.lines[t-1]),r=t===this.lines.length?0:Ho(this.lines[t]);return 1e3-(n+r)}getText(t){return this.lines.slice(t.start,t.endExclusive).join(\`
12
- \`)}isStronglyEqual(t,n){return this.lines[t]===this.lines[n]}}function Ho(e){let t=0;for(;t<e.length&&(e.charCodeAt(t)===32||e.charCodeAt(t)===9);)t++;return t}class Ou{constructor(){this.dynamicProgrammingDiffing=new Su,this.myersDiffingAlgorithm=new To}computeDiff(t,n,r){if(t.length<=1&&fu(t,n,(F,M)=>F===M))return new Kn([],[],!1);if(t.length===1&&t[0].length===0||n.length===1&&n[0].length===0)return new Kn([new Ze(new H(1,t.length+1),new H(1,n.length+1),[new Te(new Q(1,1,t.length,t[t.length-1].length+1),new Q(1,1,n.length,n[n.length-1].length+1))])],[],!1);const i=r.maxComputationTimeMs===0?fn.instance:new xu(r.maxComputationTimeMs),s=!r.ignoreTrimWhitespace,a=new Map;function l(F){let M=a.get(F);return M===void 0&&(M=a.size,a.set(F,M)),M}const o=t.map(F=>l(F.trim())),c=n.map(F=>l(F.trim())),d=new jo(o,t),u=new jo(c,n),f=d.length+u.length<1700?this.dynamicProgrammingDiffing.compute(d,u,i,(F,M)=>t[F]===n[M]?n[M].length===0?.1:1+Math.log(1+n[M].length):.99):this.myersDiffingAlgorithm.compute(d,u,i);let m=f.diffs,v=f.hitTimeout;m=$o(d,u,m),m=Pu(d,u,m);const w=[],k=F=>{if(s)for(let M=0;M<F;M++){const T=R+M,P=I+M;if(t[T]!==n[P]){const j=this.refineDiff(t,n,new le(new Y(T,T+1),new Y(P,P+1)),i,s);for(const ee of j.mappings)w.push(ee);j.hitTimeout&&(v=!0)}}};let R=0,I=0;for(const F of m){Qn(()=>F.seq1Range.start-R===F.seq2Range.start-I);const M=F.seq1Range.start-R;k(M),R=F.seq1Range.endExclusive,I=F.seq2Range.endExclusive;const T=this.refineDiff(t,n,F,i,s);T.hitTimeout&&(v=!0);for(const P of T.mappings)w.push(P)}k(t.length-R);const N=Go(w,t,n);let E=[];return r.computeMoves&&(E=this.computeMoves(N,t,n,o,c,i,s)),Qn(()=>{function F(T,P){if(T.lineNumber<1||T.lineNumber>P.length)return!1;const j=P[T.lineNumber-1];return!(T.column<1||T.column>j.length+1)}function M(T,P){return!(T.startLineNumber<1||T.startLineNumber>P.length+1||T.endLineNumberExclusive<1||T.endLineNumberExclusive>P.length+1)}for(const T of N){if(!T.innerChanges)return!1;for(const P of T.innerChanges)if(!(F(P.modifiedRange.getStartPosition(),n)&&F(P.modifiedRange.getEndPosition(),n)&&F(P.originalRange.getStartPosition(),t)&&F(P.originalRange.getEndPosition(),t)))return!1;if(!M(T.modified,n)||!M(T.original,t))return!1}return!0}),new Kn(N,E,v)}computeMoves(t,n,r,i,s,a,l){return Eu(t,n,r,i,s,a).map(d=>{const u=this.refineDiff(n,r,new le(d.original.toOffsetRange(),d.modified.toOffsetRange()),a,l),f=Go(u.mappings,n,r,!0);return new ou(d,f)})}refineDiff(t,n,r,i,s){const l=Uu(r).toRangeMapping2(t,n),o=new rr(t,l.originalRange,s),c=new rr(n,l.modifiedRange,s),d=o.length+c.length<500?this.dynamicProgrammingDiffing.compute(o,c,i):this.myersDiffingAlgorithm.compute(o,c,i);let u=d.diffs;return u=$o(o,c,u),u=Lu(o,c,u),u=Mu(o,c,u),u=Tu(o,c,u),{mappings:u.map(m=>new Te(o.translateRange(m.seq1Range),c.translateRange(m.seq2Range))),hitTimeout:d.hitTimeout}}}function Go(e,t,n,r=!1){const i=[];for(const s of gu(e.map(a=>Wu(a,t,n)),(a,l)=>a.original.overlapOrTouch(l.original)||a.modified.overlapOrTouch(l.modified))){const a=s[0],l=s[s.length-1];i.push(new Ze(a.original.join(l.original),a.modified.join(l.modified),s.map(o=>o.innerChanges[0])))}return Qn(()=>!r&&i.length>0&&(i[0].modified.startLineNumber!==i[0].original.startLineNumber||n.length-i[i.length-1].modified.endLineNumberExclusive!==t.length-i[i.length-1].original.endLineNumberExclusive)?!1:ko(i,(s,a)=>a.original.startLineNumber-s.original.endLineNumberExclusive===a.modified.startLineNumber-s.modified.endLineNumberExclusive&&s.original.endLineNumberExclusive<a.original.startLineNumber&&s.modified.endLineNumberExclusive<a.modified.startLineNumber)),i}function Wu(e,t,n){let r=0,i=0;e.modifiedRange.endColumn===1&&e.originalRange.endColumn===1&&e.originalRange.startLineNumber+r<=e.originalRange.endLineNumber&&e.modifiedRange.startLineNumber+r<=e.modifiedRange.endLineNumber&&(i=-1),e.modifiedRange.startColumn-1>=n[e.modifiedRange.startLineNumber-1].length&&e.originalRange.startColumn-1>=t[e.originalRange.startLineNumber-1].length&&e.originalRange.startLineNumber<=e.originalRange.endLineNumber+i&&e.modifiedRange.startLineNumber<=e.modifiedRange.endLineNumber+i&&(r=1);const s=new H(e.originalRange.startLineNumber+r,e.originalRange.endLineNumber+1+i),a=new H(e.modifiedRange.startLineNumber+r,e.modifiedRange.endLineNumber+1+i);return new Ze(s,a,[e])}function Uu(e){return new Ie(new H(e.seq1Range.start+1,e.seq1Range.endExclusive+1),new H(e.seq2Range.start+1,e.seq2Range.endExclusive+1))}const Jo={getLegacy:()=>new du,getDefault:()=>new Ou};function gt(e,t){const n=Math.pow(10,t);return Math.round(e*n)/n}class me{constructor(t,n,r,i=1){this._rgbaBrand=void 0,this.r=Math.min(255,Math.max(0,t))|0,this.g=Math.min(255,Math.max(0,n))|0,this.b=Math.min(255,Math.max(0,r))|0,this.a=gt(Math.max(Math.min(1,i),0),3)}static equals(t,n){return t.r===n.r&&t.g===n.g&&t.b===n.b&&t.a===n.a}}class Ae{constructor(t,n,r,i){this._hslaBrand=void 0,this.h=Math.max(Math.min(360,t),0)|0,this.s=gt(Math.max(Math.min(1,n),0),3),this.l=gt(Math.max(Math.min(1,r),0),3),this.a=gt(Math.max(Math.min(1,i),0),3)}static equals(t,n){return t.h===n.h&&t.s===n.s&&t.l===n.l&&t.a===n.a}static fromRGBA(t){const n=t.r/255,r=t.g/255,i=t.b/255,s=t.a,a=Math.max(n,r,i),l=Math.min(n,r,i);let o=0,c=0;const d=(l+a)/2,u=a-l;if(u>0){switch(c=Math.min(d<=.5?u/(2*d):u/(2-2*d),1),a){case n:o=(r-i)/u+(r<i?6:0);break;case r:o=(i-n)/u+2;break;case i:o=(n-r)/u+4;break}o*=60,o=Math.round(o)}return new Ae(o,c,d,s)}static _hue2rgb(t,n,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?t+(n-t)*6*r:r<1/2?n:r<2/3?t+(n-t)*(2/3-r)*6:t}static toRGBA(t){const n=t.h/360,{s:r,l:i,a:s}=t;let a,l,o;if(r===0)a=l=o=i;else{const c=i<.5?i*(1+r):i+r-i*r,d=2*i-c;a=Ae._hue2rgb(d,c,n+1/3),l=Ae._hue2rgb(d,c,n),o=Ae._hue2rgb(d,c,n-1/3)}return new me(Math.round(a*255),Math.round(l*255),Math.round(o*255),s)}}class jt{constructor(t,n,r,i){this._hsvaBrand=void 0,this.h=Math.max(Math.min(360,t),0)|0,this.s=gt(Math.max(Math.min(1,n),0),3),this.v=gt(Math.max(Math.min(1,r),0),3),this.a=gt(Math.max(Math.min(1,i),0),3)}static equals(t,n){return t.h===n.h&&t.s===n.s&&t.v===n.v&&t.a===n.a}static fromRGBA(t){const n=t.r/255,r=t.g/255,i=t.b/255,s=Math.max(n,r,i),a=Math.min(n,r,i),l=s-a,o=s===0?0:l/s;let c;return l===0?c=0:s===n?c=((r-i)/l%6+6)%6:s===r?c=(i-n)/l+2:c=(n-r)/l+4,new jt(Math.round(c*60),o,s,t.a)}static toRGBA(t){const{h:n,s:r,v:i,a:s}=t,a=i*r,l=a*(1-Math.abs(n/60%2-1)),o=i-a;let[c,d,u]=[0,0,0];return n<60?(c=a,d=l):n<120?(c=l,d=a):n<180?(d=a,u=l):n<240?(d=l,u=a):n<300?(c=l,u=a):n<=360&&(c=a,u=l),c=Math.round((c+o)*255),d=Math.round((d+o)*255),u=Math.round((u+o)*255),new me(c,d,u,s)}}let _i=(Z=class{static fromHex(t){return Z.Format.CSS.parseHex(t)||Z.red}static equals(t,n){return!t&&!n?!0:!t||!n?!1:t.equals(n)}get hsla(){return this._hsla?this._hsla:Ae.fromRGBA(this.rgba)}get hsva(){return this._hsva?this._hsva:jt.fromRGBA(this.rgba)}constructor(t){if(t)if(t instanceof me)this.rgba=t;else if(t instanceof Ae)this._hsla=t,this.rgba=Ae.toRGBA(t);else if(t instanceof jt)this._hsva=t,this.rgba=jt.toRGBA(t);else throw new Error("Invalid color ctor argument");else throw new Error("Color needs a value")}equals(t){return!!t&&me.equals(this.rgba,t.rgba)&&Ae.equals(this.hsla,t.hsla)&&jt.equals(this.hsva,t.hsva)}getRelativeLuminance(){const t=Z._relativeLuminanceForComponent(this.rgba.r),n=Z._relativeLuminanceForComponent(this.rgba.g),r=Z._relativeLuminanceForComponent(this.rgba.b),i=.2126*t+.7152*n+.0722*r;return gt(i,4)}static _relativeLuminanceForComponent(t){const n=t/255;return n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4)}isLighter(){return(this.rgba.r*299+this.rgba.g*587+this.rgba.b*114)/1e3>=128}isLighterThan(t){const n=this.getRelativeLuminance(),r=t.getRelativeLuminance();return n>r}isDarkerThan(t){const n=this.getRelativeLuminance(),r=t.getRelativeLuminance();return n<r}lighten(t){return new Z(new Ae(this.hsla.h,this.hsla.s,this.hsla.l+this.hsla.l*t,this.hsla.a))}darken(t){return new Z(new Ae(this.hsla.h,this.hsla.s,this.hsla.l-this.hsla.l*t,this.hsla.a))}transparent(t){const{r:n,g:r,b:i,a:s}=this.rgba;return new Z(new me(n,r,i,s*t))}isTransparent(){return this.rgba.a===0}isOpaque(){return this.rgba.a===1}opposite(){return new Z(new me(255-this.rgba.r,255-this.rgba.g,255-this.rgba.b,this.rgba.a))}makeOpaque(t){if(this.isOpaque()||t.rgba.a!==1)return this;const{r:n,g:r,b:i,a:s}=this.rgba;return new Z(new me(t.rgba.r-s*(t.rgba.r-n),t.rgba.g-s*(t.rgba.g-r),t.rgba.b-s*(t.rgba.b-i),1))}toString(){return this._toString||(this._toString=Z.Format.CSS.format(this)),this._toString}static getLighterColor(t,n,r){if(t.isLighterThan(n))return t;r=r||.5;const i=t.getRelativeLuminance(),s=n.getRelativeLuminance();return r=r*(s-i)/s,t.lighten(r)}static getDarkerColor(t,n,r){if(t.isDarkerThan(n))return t;r=r||.5;const i=t.getRelativeLuminance(),s=n.getRelativeLuminance();return r=r*(i-s)/i,t.darken(r)}},Z.white=new Z(new me(255,255,255,1)),Z.black=new Z(new me(0,0,0,1)),Z.red=new Z(new me(255,0,0,1)),Z.blue=new Z(new me(0,0,255,1)),Z.green=new Z(new me(0,255,0,1)),Z.cyan=new Z(new me(0,255,255,1)),Z.lightgrey=new Z(new me(211,211,211,1)),Z.transparent=new Z(new me(0,0,0,0)),Z);(function(e){(function(t){(function(n){function r(m){return m.rgba.a===1?\`rgb(\${m.rgba.r}, \${m.rgba.g}, \${m.rgba.b})\`:e.Format.CSS.formatRGBA(m)}n.formatRGB=r;function i(m){return\`rgba(\${m.rgba.r}, \${m.rgba.g}, \${m.rgba.b}, \${+m.rgba.a.toFixed(2)})\`}n.formatRGBA=i;function s(m){return m.hsla.a===1?\`hsl(\${m.hsla.h}, \${(m.hsla.s*100).toFixed(2)}%, \${(m.hsla.l*100).toFixed(2)}%)\`:e.Format.CSS.formatHSLA(m)}n.formatHSL=s;function a(m){return\`hsla(\${m.hsla.h}, \${(m.hsla.s*100).toFixed(2)}%, \${(m.hsla.l*100).toFixed(2)}%, \${m.hsla.a.toFixed(2)})\`}n.formatHSLA=a;function l(m){const v=m.toString(16);return v.length!==2?"0"+v:v}function o(m){return\`#\${l(m.rgba.r)}\${l(m.rgba.g)}\${l(m.rgba.b)}\`}n.formatHex=o;function c(m,v=!1){return v&&m.rgba.a===1?e.Format.CSS.formatHex(m):\`#\${l(m.rgba.r)}\${l(m.rgba.g)}\${l(m.rgba.b)}\${l(Math.round(m.rgba.a*255))}\`}n.formatHexA=c;function d(m){return m.isOpaque()?e.Format.CSS.formatHex(m):e.Format.CSS.formatRGBA(m)}n.format=d;function u(m){const v=m.length;if(v===0||m.charCodeAt(0)!==35)return null;if(v===7){const w=16*f(m.charCodeAt(1))+f(m.charCodeAt(2)),k=16*f(m.charCodeAt(3))+f(m.charCodeAt(4)),R=16*f(m.charCodeAt(5))+f(m.charCodeAt(6));return new e(new me(w,k,R,1))}if(v===9){const w=16*f(m.charCodeAt(1))+f(m.charCodeAt(2)),k=16*f(m.charCodeAt(3))+f(m.charCodeAt(4)),R=16*f(m.charCodeAt(5))+f(m.charCodeAt(6)),I=16*f(m.charCodeAt(7))+f(m.charCodeAt(8));return new e(new me(w,k,R,I/255))}if(v===4){const w=f(m.charCodeAt(1)),k=f(m.charCodeAt(2)),R=f(m.charCodeAt(3));return new e(new me(16*w+w,16*k+k,16*R+R))}if(v===5){const w=f(m.charCodeAt(1)),k=f(m.charCodeAt(2)),R=f(m.charCodeAt(3)),I=f(m.charCodeAt(4));return new e(new me(16*w+w,16*k+k,16*R+R,(16*I+I)/255))}return null}n.parseHex=u;function f(m){switch(m){case 48:return 0;case 49:return 1;case 50:return 2;case 51:return 3;case 52:return 4;case 53:return 5;case 54:return 6;case 55:return 7;case 56:return 8;case 57:return 9;case 97:return 10;case 65:return 10;case 98:return 11;case 66:return 11;case 99:return 12;case 67:return 12;case 100:return 13;case 68:return 13;case 101:return 14;case 69:return 14;case 102:return 15;case 70:return 15}return 0}})(t.CSS||(t.CSS={}))})(e.Format||(e.Format={}))})(_i);function Xo(e){const t=[];for(const n of e){const r=Number(n);(r||r===0&&n.replace(/\\s/g,"")!=="")&&t.push(r)}return t}function ki(e,t,n,r){return{red:e/255,blue:n/255,green:t/255,alpha:r}}function gn(e,t){const n=t.index,r=t[0].length;if(!n)return;const i=e.positionAt(n);return{startLineNumber:i.lineNumber,startColumn:i.column,endLineNumber:i.lineNumber,endColumn:i.column+r}}function Vu(e,t){if(!e)return;const n=_i.Format.CSS.parseHex(t);if(n)return{range:e,color:ki(n.rgba.r,n.rgba.g,n.rgba.b,n.rgba.a)}}function Yo(e,t,n){if(!e||t.length!==1)return;const i=t[0].values(),s=Xo(i);return{range:e,color:ki(s[0],s[1],s[2],n?s[3]:1)}}function Qo(e,t,n){if(!e||t.length!==1)return;const i=t[0].values(),s=Xo(i),a=new _i(new Ae(s[0],s[1]/100,s[2]/100,n?s[3]:1));return{range:e,color:ki(a.rgba.r,a.rgba.g,a.rgba.b,a.rgba.a)}}function bn(e,t){return typeof e=="string"?[...e.matchAll(t)]:e.findMatches(t)}function $u(e){const t=[],r=bn(e,/\\b(rgb|rgba|hsl|hsla)(\\([0-9\\s,.\\%]*\\))|(#)([A-Fa-f0-9]{3})\\b|(#)([A-Fa-f0-9]{4})\\b|(#)([A-Fa-f0-9]{6})\\b|(#)([A-Fa-f0-9]{8})\\b/gm);if(r.length>0)for(const i of r){const s=i.filter(c=>c!==void 0),a=s[1],l=s[2];if(!l)continue;let o;if(a==="rgb"){const c=/^\\(\\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\\s*,\\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\\s*,\\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\\s*\\)$/gm;o=Yo(gn(e,i),bn(l,c),!1)}else if(a==="rgba"){const c=/^\\(\\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\\s*,\\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\\s*,\\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\\s*,\\s*(0[.][0-9]+|[.][0-9]+|[01][.]|[01])\\s*\\)$/gm;o=Yo(gn(e,i),bn(l,c),!0)}else if(a==="hsl"){const c=/^\\(\\s*(36[0]|3[0-5][0-9]|[12][0-9][0-9]|[1-9]?[0-9])\\s*,\\s*(100|\\d{1,2}[.]\\d*|\\d{1,2})%\\s*,\\s*(100|\\d{1,2}[.]\\d*|\\d{1,2})%\\s*\\)$/gm;o=Qo(gn(e,i),bn(l,c),!1)}else if(a==="hsla"){const c=/^\\(\\s*(36[0]|3[0-5][0-9]|[12][0-9][0-9]|[1-9]?[0-9])\\s*,\\s*(100|\\d{1,2}[.]\\d*|\\d{1,2})%\\s*,\\s*(100|\\d{1,2}[.]\\d*|\\d{1,2})%\\s*,\\s*(0[.][0-9]+|[.][0-9]+|[01][.]|[01])\\s*\\)$/gm;o=Qo(gn(e,i),bn(l,c),!0)}else a==="#"&&(o=Vu(gn(e,i),a+l));o&&t.push(o)}return t}function Bu(e){return!e||typeof e.getValue!="function"||typeof e.positionAt!="function"?[]:$u(e)}const Ko=new RegExp("\\\\bMARK:\\\\s*(.*)$","d"),qu=/^-+|-+$/g;function ju(e,t){let n=[];if(t.findRegionSectionHeaders&&t.foldingRules?.markers){const r=Hu(e,t);n=n.concat(r)}if(t.findMarkSectionHeaders){const r=Gu(e);n=n.concat(r)}return n}function Hu(e,t){const n=[],r=e.getLineCount();for(let i=1;i<=r;i++){const s=e.getLineContent(i),a=s.match(t.foldingRules.markers.start);if(a){const l={startLineNumber:i,startColumn:a[0].length+1,endLineNumber:i,endColumn:s.length+1};if(l.endColumn>l.startColumn){const o={range:l,...Zo(s.substring(a[0].length)),shouldBeInComments:!1};(o.text||o.hasSeparatorLine)&&n.push(o)}}}return n}function Gu(e){const t=[],n=e.getLineCount();for(let r=1;r<=n;r++){const i=e.getLineContent(r);Ju(i,r,t)}return t}function Ju(e,t,n){Ko.lastIndex=0;const r=Ko.exec(e);if(r){const i=r.indices[1][0]+1,s=r.indices[1][1]+1,a={startLineNumber:t,startColumn:i,endLineNumber:t,endColumn:s};if(a.endColumn>a.startColumn){const l={range:a,...Zo(r[1]),shouldBeInComments:!0};(l.text||l.hasSeparatorLine)&&n.push(l)}}}function Zo(e){e=e.trim();const t=e.startsWith("-");return e=e.replace(qu,""),{text:e,hasSeparatorLine:t}}var el;(function(e){async function t(r){let i;const s=await Promise.all(r.map(a=>a.then(l=>l,l=>{i||(i=l)})));if(typeof i<"u")throw i;return s}e.settled=t;function n(r){return new Promise(async(i,s)=>{try{await r(i,s)}catch(a){s(a)}})}e.withAsyncBody=n})(el||(el={}));const Ce=class Ce{static fromArray(t){return new Ce(n=>{n.emitMany(t)})}static fromPromise(t){return new Ce(async n=>{n.emitMany(await t)})}static fromPromises(t){return new Ce(async n=>{await Promise.all(t.map(async r=>n.emitOne(await r)))})}static merge(t){return new Ce(async n=>{await Promise.all(t.map(async r=>{for await(const i of r)n.emitOne(i)}))})}constructor(t,n){this._state=0,this._results=[],this._error=null,this._onReturn=n,this._onStateChanged=new De,queueMicrotask(async()=>{const r={emitOne:i=>this.emitOne(i),emitMany:i=>this.emitMany(i),reject:i=>this.reject(i)};try{await Promise.resolve(t(r)),this.resolve()}catch(i){this.reject(i)}finally{r.emitOne=void 0,r.emitMany=void 0,r.reject=void 0}})}[Symbol.asyncIterator](){let t=0;return{next:async()=>{do{if(this._state===2)throw this._error;if(t<this._results.length)return{done:!1,value:this._results[t++]};if(this._state===1)return{done:!0,value:void 0};await Vn.toPromise(this._onStateChanged.event)}while(!0)},return:async()=>(this._onReturn?.(),{done:!0,value:void 0})}}static map(t,n){return new Ce(async r=>{for await(const i of t)r.emitOne(n(i))})}map(t){return Ce.map(this,t)}static filter(t,n){return new Ce(async r=>{for await(const i of t)n(i)&&r.emitOne(i)})}filter(t){return Ce.filter(this,t)}static coalesce(t){return Ce.filter(t,n=>!!n)}coalesce(){return Ce.coalesce(this)}static async toPromise(t){const n=[];for await(const r of t)n.push(r);return n}toPromise(){return Ce.toPromise(this)}emitOne(t){this._state===0&&(this._results.push(t),this._onStateChanged.fire())}emitMany(t){this._state===0&&(this._results=this._results.concat(t),this._onStateChanged.fire())}resolve(){this._state===0&&(this._state=1,this._onStateChanged.fire())}reject(t){this._state===0&&(this._state=2,this._error=t,this._onStateChanged.fire())}};Ce.EMPTY=Ce.fromArray([]);let tl=Ce;class Xu{constructor(t){this.values=t,this.prefixSum=new Uint32Array(t.length),this.prefixSumValidIndex=new Int32Array(1),this.prefixSumValidIndex[0]=-1}insertValues(t,n){t=Vt(t);const r=this.values,i=this.prefixSum,s=n.length;return s===0?!1:(this.values=new Uint32Array(r.length+s),this.values.set(r.subarray(0,t),0),this.values.set(r.subarray(t),t+s),this.values.set(n,t),t-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=t-1),this.prefixSum=new Uint32Array(this.values.length),this.prefixSumValidIndex[0]>=0&&this.prefixSum.set(i.subarray(0,this.prefixSumValidIndex[0]+1)),!0)}setValue(t,n){return t=Vt(t),n=Vt(n),this.values[t]===n?!1:(this.values[t]=n,t-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=t-1),!0)}removeValues(t,n){t=Vt(t),n=Vt(n);const r=this.values,i=this.prefixSum;if(t>=r.length)return!1;const s=r.length-t;return n>=s&&(n=s),n===0?!1:(this.values=new Uint32Array(r.length-n),this.values.set(r.subarray(0,t),0),this.values.set(r.subarray(t+n),t),this.prefixSum=new Uint32Array(this.values.length),t-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=t-1),this.prefixSumValidIndex[0]>=0&&this.prefixSum.set(i.subarray(0,this.prefixSumValidIndex[0]+1)),!0)}getTotalSum(){return this.values.length===0?0:this._getPrefixSum(this.values.length-1)}getPrefixSum(t){return t<0?0:(t=Vt(t),this._getPrefixSum(t))}_getPrefixSum(t){if(t<=this.prefixSumValidIndex[0])return this.prefixSum[t];let n=this.prefixSumValidIndex[0]+1;n===0&&(this.prefixSum[0]=this.values[0],n++),t>=this.values.length&&(t=this.values.length-1);for(let r=n;r<=t;r++)this.prefixSum[r]=this.prefixSum[r-1]+this.values[r];return this.prefixSumValidIndex[0]=Math.max(this.prefixSumValidIndex[0],t),this.prefixSum[t]}getIndexOf(t){t=Math.floor(t),this.getTotalSum();let n=0,r=this.values.length-1,i=0,s=0,a=0;for(;n<=r;)if(i=n+(r-n)/2|0,s=this.prefixSum[i],a=s-this.values[i],t<a)r=i-1;else if(t>=s)n=i+1;else break;return new Yu(i,t-a)}}class Yu{constructor(t,n){this.index=t,this.remainder=n,this._prefixSumIndexOfResultBrand=void 0,this.index=t,this.remainder=n}}class Qu{constructor(t,n,r,i){this._uri=t,this._lines=n,this._eol=r,this._versionId=i,this._lineStarts=null,this._cachedTextValue=null}dispose(){this._lines.length=0}get version(){return this._versionId}getText(){return this._cachedTextValue===null&&(this._cachedTextValue=this._lines.join(this._eol)),this._cachedTextValue}onEvents(t){t.eol&&t.eol!==this._eol&&(this._eol=t.eol,this._lineStarts=null);const n=t.changes;for(const r of n)this._acceptDeleteRange(r.range),this._acceptInsertText(new he(r.range.startLineNumber,r.range.startColumn),r.text);this._versionId=t.versionId,this._cachedTextValue=null}_ensureLineStarts(){if(!this._lineStarts){const t=this._eol.length,n=this._lines.length,r=new Uint32Array(n);for(let i=0;i<n;i++)r[i]=this._lines[i].length+t;this._lineStarts=new Xu(r)}}_setLineText(t,n){this._lines[t]=n,this._lineStarts&&this._lineStarts.setValue(t,this._lines[t].length+this._eol.length)}_acceptDeleteRange(t){if(t.startLineNumber===t.endLineNumber){if(t.startColumn===t.endColumn)return;this._setLineText(t.startLineNumber-1,this._lines[t.startLineNumber-1].substring(0,t.startColumn-1)+this._lines[t.startLineNumber-1].substring(t.endColumn-1));return}this._setLineText(t.startLineNumber-1,this._lines[t.startLineNumber-1].substring(0,t.startColumn-1)+this._lines[t.endLineNumber-1].substring(t.endColumn-1)),this._lines.splice(t.startLineNumber,t.endLineNumber-t.startLineNumber),this._lineStarts&&this._lineStarts.removeValues(t.startLineNumber,t.endLineNumber-t.startLineNumber)}_acceptInsertText(t,n){if(n.length===0)return;const r=qh(n);if(r.length===1){this._setLineText(t.lineNumber-1,this._lines[t.lineNumber-1].substring(0,t.column-1)+r[0]+this._lines[t.lineNumber-1].substring(t.column-1));return}r[r.length-1]+=this._lines[t.lineNumber-1].substring(t.column-1),this._setLineText(t.lineNumber-1,this._lines[t.lineNumber-1].substring(0,t.column-1)+r[0]);const i=new Uint32Array(r.length-1);for(let s=1;s<r.length;s++)this._lines.splice(t.lineNumber+s-1,0,r[s]),i[s-1]=r[s].length+this._eol.length;this._lineStarts&&this._lineStarts.insertValues(t.lineNumber,i)}}class Ku{constructor(){this._models=Object.create(null)}getModel(t){return this._models[t]}getModels(){const t=[];return Object.keys(this._models).forEach(n=>t.push(this._models[n])),t}$acceptNewModel(t){this._models[t.url]=new Zu(Ve.parse(t.url),t.lines,t.EOL,t.versionId)}$acceptModelChanged(t,n){if(!this._models[t])return;this._models[t].onEvents(n)}$acceptRemovedModel(t){this._models[t]&&delete this._models[t]}}class Zu extends Qu{get uri(){return this._uri}get eol(){return this._eol}getValue(){return this.getText()}findMatches(t){const n=[];for(let r=0;r<this._lines.length;r++){const i=this._lines[r],s=this.offsetAt(new he(r+1,1)),a=i.matchAll(t);for(const l of a)(l.index||l.index===0)&&(l.index=l.index+s),n.push(l)}return n}getLinesContent(){return this._lines.slice(0)}getLineCount(){return this._lines.length}getLineContent(t){return this._lines[t-1]}getWordAtPosition(t,n){const r=gi(t.column,Fo(n),this._lines[t.lineNumber-1],0);return r?new Q(t.lineNumber,r.startColumn,t.lineNumber,r.endColumn):null}words(t){const n=this._lines,r=this._wordenize.bind(this);let i=0,s="",a=0,l=[];return{*[Symbol.iterator](){for(;;)if(a<l.length){const o=s.substring(l[a].start,l[a].end);a+=1,yield o}else if(i<n.length)s=n[i],l=r(s,t),a=0,i+=1;else break}}}getLineWords(t,n){const r=this._lines[t-1],i=this._wordenize(r,n),s=[];for(const a of i)s.push({word:r.substring(a.start,a.end),startColumn:a.start+1,endColumn:a.end+1});return s}_wordenize(t,n){const r=[];let i;for(n.lastIndex=0;(i=n.exec(t))&&i[0].length!==0;)r.push({start:i.index,end:i.index+i[0].length});return r}getValueInRange(t){if(t=this._validateRange(t),t.startLineNumber===t.endLineNumber)return this._lines[t.startLineNumber-1].substring(t.startColumn-1,t.endColumn-1);const n=this._eol,r=t.startLineNumber-1,i=t.endLineNumber-1,s=[];s.push(this._lines[r].substring(t.startColumn-1));for(let a=r+1;a<i;a++)s.push(this._lines[a]);return s.push(this._lines[i].substring(0,t.endColumn-1)),s.join(n)}offsetAt(t){return t=this._validatePosition(t),this._ensureLineStarts(),this._lineStarts.getPrefixSum(t.lineNumber-2)+(t.column-1)}positionAt(t){t=Math.floor(t),t=Math.max(0,t),this._ensureLineStarts();const n=this._lineStarts.getIndexOf(t),r=this._lines[n.index].length;return{lineNumber:1+n.index,column:1+Math.min(n.remainder,r)}}_validateRange(t){const n=this._validatePosition({lineNumber:t.startLineNumber,column:t.startColumn}),r=this._validatePosition({lineNumber:t.endLineNumber,column:t.endColumn});return n.lineNumber!==t.startLineNumber||n.column!==t.startColumn||r.lineNumber!==t.endLineNumber||r.column!==t.endColumn?{startLineNumber:n.lineNumber,startColumn:n.column,endLineNumber:r.lineNumber,endColumn:r.column}:t}_validatePosition(t){if(!he.isIPosition(t))throw new Error("bad position");let{lineNumber:n,column:r}=t,i=!1;if(n<1)n=1,r=1,i=!0;else if(n>this._lines.length)n=this._lines.length,r=this._lines[n-1].length+1,i=!0;else{const s=this._lines[n-1].length+1;r<1?(r=1,i=!0):r>s&&(r=s,i=!0)}return i?{lineNumber:n,column:r}:t}}const Pr=class Pr{constructor(){this._workerTextModelSyncServer=new Ku}dispose(){}_getModel(t){return this._workerTextModelSyncServer.getModel(t)}_getModels(){return this._workerTextModelSyncServer.getModels()}$acceptNewModel(t){this._workerTextModelSyncServer.$acceptNewModel(t)}$acceptModelChanged(t,n){this._workerTextModelSyncServer.$acceptModelChanged(t,n)}$acceptRemovedModel(t){this._workerTextModelSyncServer.$acceptRemovedModel(t)}async $computeUnicodeHighlights(t,n,r){const i=this._getModel(t);return i?su.computeUnicodeHighlights(i,n,r):{ranges:[],hasMore:!1,ambiguousCharacterCount:0,invisibleCharacterCount:0,nonBasicAsciiCharacterCount:0}}async $findSectionHeaders(t,n){const r=this._getModel(t);return r?ju(r,n):[]}async $computeDiff(t,n,r,i){const s=this._getModel(t),a=this._getModel(n);return!s||!a?null:ir.computeDiff(s,a,r,i)}static computeDiff(t,n,r,i){const s=i==="advanced"?Jo.getDefault():Jo.getLegacy(),a=t.getLinesContent(),l=n.getLinesContent(),o=s.computeDiff(a,l,r),c=o.changes.length>0?!1:this._modelsAreIdentical(t,n);function d(u){return u.map(f=>[f.original.startLineNumber,f.original.endLineNumberExclusive,f.modified.startLineNumber,f.modified.endLineNumberExclusive,f.innerChanges?.map(m=>[m.originalRange.startLineNumber,m.originalRange.startColumn,m.originalRange.endLineNumber,m.originalRange.endColumn,m.modifiedRange.startLineNumber,m.modifiedRange.startColumn,m.modifiedRange.endLineNumber,m.modifiedRange.endColumn])])}return{identical:c,quitEarly:o.hitTimeout,changes:d(o.changes),moves:o.moves.map(u=>[u.lineRangeMapping.original.startLineNumber,u.lineRangeMapping.original.endLineNumberExclusive,u.lineRangeMapping.modified.startLineNumber,u.lineRangeMapping.modified.endLineNumberExclusive,d(u.changes)])}}static _modelsAreIdentical(t,n){const r=t.getLineCount(),i=n.getLineCount();if(r!==i)return!1;for(let s=1;s<=r;s++){const a=t.getLineContent(s),l=n.getLineContent(s);if(a!==l)return!1}return!0}async $computeMoreMinimalEdits(t,n,r){const i=this._getModel(t);if(!i)return n;const s=[];let a;n=n.slice(0).sort((o,c)=>{if(o.range&&c.range)return Q.compareRangesUsingStarts(o.range,c.range);const d=o.range?0:1,u=c.range?0:1;return d-u});let l=0;for(let o=1;o<n.length;o++)Q.getEndPosition(n[l].range).equals(Q.getStartPosition(n[o].range))?(n[l].range=Q.fromPositions(Q.getStartPosition(n[l].range),Q.getEndPosition(n[o].range)),n[l].text+=n[o].text):(l++,n[l]=n[o]);n.length=l+1;for(let{range:o,text:c,eol:d}of n){if(typeof d=="number"&&(a=d),Q.isEmpty(o)&&!c)continue;const u=i.getValueInRange(o);if(c=c.replace(/\\r\\n|\\n|\\r/g,i.eol),u===c)continue;if(Math.max(c.length,u.length)>ir._diffLimit){s.push({range:o,text:c});continue}const f=Rd(u,c,r),m=i.offsetAt(Q.lift(o).getStartPosition());for(const v of f){const w=i.positionAt(m+v.originalStart),k=i.positionAt(m+v.originalStart+v.originalLength),R={text:c.substr(v.modifiedStart,v.modifiedLength),range:{startLineNumber:w.lineNumber,startColumn:w.column,endLineNumber:k.lineNumber,endColumn:k.column}};i.getValueInRange(R.range)!==R.text&&s.push(R)}}return typeof a=="number"&&s.push({eol:a,text:"",range:{startLineNumber:0,startColumn:0,endLineNumber:0,endColumn:0}}),s}async $computeLinks(t){const n=this._getModel(t);return n?Md(n):null}async $computeDefaultDocumentColors(t){const n=this._getModel(t);return n?Bu(n):null}async $textualSuggest(t,n,r,i){const s=new Un,a=new RegExp(r,i),l=new Set;e:for(const o of t){const c=this._getModel(o);if(c){for(const d of c.words(a))if(!(d===n||!isNaN(Number(d)))&&(l.add(d),l.size>ir._suggestionsLimit))break e}}return{words:Array.from(l),duration:s.elapsed()}}async $computeWordRanges(t,n,r,i){const s=this._getModel(t);if(!s)return Object.create(null);const a=new RegExp(r,i),l=Object.create(null);for(let o=n.startLineNumber;o<n.endLineNumber;o++){const c=s.getLineWords(o,a);for(const d of c){if(!isNaN(Number(d.word)))continue;let u=l[d.word];u||(u=[],l[d.word]=u),u.push({startLineNumber:o,startColumn:d.startColumn,endLineNumber:o,endColumn:d.endColumn})}}return l}async $navigateValueSet(t,n,r,i,s){const a=this._getModel(t);if(!a)return null;const l=new RegExp(i,s);n.startColumn===n.endColumn&&(n={startLineNumber:n.startLineNumber,startColumn:n.startColumn,endLineNumber:n.endLineNumber,endColumn:n.endColumn+1});const o=a.getValueInRange(n),c=a.getWordAtPosition({lineNumber:n.startLineNumber,column:n.startColumn},l);if(!c)return null;const d=a.getValueInRange(c);return ai.INSTANCE.navigateValueSet(n,o,c,d,r)}};Pr._diffLimit=1e5,Pr._suggestionsLimit=1e4;let Ei=Pr;class ir extends Ei{constructor(t,n){super(),this._host=t,this._foreignModuleFactory=n,this._foreignModule=null}async $ping(){return"pong"}$loadForeignModule(t,n,r){const a={host:Yd(r,(l,o)=>this._host.$fhr(l,o)),getMirrorModels:()=>this._getModels()};return this._foreignModuleFactory?(this._foreignModule=this._foreignModuleFactory(a,n),Promise.resolve(xo(this._foreignModule))):new Promise((l,o)=>{const c=d=>{this._foreignModule=d.create(a,n),l(xo(this._foreignModule))};import(\`\${ia.asBrowserUri(\`\${t}.js\`).toString(!0)}\`).then(c).catch(o)})}$fmr(t,n){if(!this._foreignModule||typeof this._foreignModule[t]!="function")return Promise.reject(new Error("Missing requestHandler or method: "+t));try{return Promise.resolve(this._foreignModule[t].apply(this._foreignModule,n))}catch(r){return Promise.reject(r)}}}typeof importScripts=="function"&&(globalThis.monaco=qd());let Fi=!1;function nl(e){if(Fi)return;Fi=!0;const t=new kd(n=>{globalThis.postMessage(n)},n=>new ir(fi.getChannel(n),e));globalThis.onmessage=n=>{t.onmessage(n.data)}}globalThis.onmessage=e=>{Fi||nl(null)};/*!-----------------------------------------------------------------------------
7
+ \`))}}class Eh extends Error{constructor(t,n){super(t),this.name="ListenerLeakError",this.stack=n}}class Fh extends Error{constructor(t,n){super(t),this.name="ListenerRefusalError",this.stack=n}}class jr{constructor(t){this.value=t}}const Rh=2;class De{constructor(t){this._size=0,this._options=t,this._leakageMon=this._options?.leakWarningThreshold?new Br(t?.onListenerError??We,this._options?.leakWarningThreshold??kh):void 0,this._perfMon=this._options?._profName?new $r(this._options._profName):void 0,this._deliveryQueue=this._options?.deliveryQueue}dispose(){this._disposed||(this._disposed=!0,this._deliveryQueue?.current===this&&this._deliveryQueue.reset(),this._listeners&&(this._listeners=void 0,this._size=0),this._options?.onDidRemoveLastListener?.(),this._leakageMon?.dispose())}get event(){return this._event??(this._event=(t,n,r)=>{if(this._leakageMon&&this._size>this._leakageMon.threshold**2){const l=\`[\${this._leakageMon.name}] REFUSES to accept new listeners because it exceeded its threshold by far (\${this._size} vs \${this._leakageMon.threshold})\`;console.warn(l);const o=this._leakageMon.getMostFrequentStack()??["UNKNOWN stack",-1],c=new Fh(\`\${l}. HINT: Stack shows most frequent listener (\${o[1]}-times)\`,o[0]);return(this._options?.onListenerError||We)(c),zt.None}if(this._disposed)return zt.None;n&&(t=t.bind(n));const i=new jr(t);let s;this._leakageMon&&this._size>=Math.ceil(this._leakageMon.threshold*.2)&&(i.stack=qr.create(),s=this._leakageMon.check(i.stack,this._size+1)),this._listeners?this._listeners instanceof jr?(this._deliveryQueue??(this._deliveryQueue=new Nh),this._listeners=[this._listeners,i]):this._listeners.push(i):(this._options?.onWillAddFirstListener?.(this),this._listeners=i,this._options?.onDidAddFirstListener?.(this)),this._size++;const a=Wn(()=>{s?.(),this._removeListener(i)});return r instanceof on?r.add(a):Array.isArray(r)&&r.push(a),a}),this._event}_removeListener(t){if(this._options?.onWillRemoveListener?.(this),!this._listeners)return;if(this._size===1){this._listeners=void 0,this._options?.onDidRemoveLastListener?.(this),this._size=0;return}const n=this._listeners,r=n.indexOf(t);if(r===-1)throw console.log("disposed?",this._disposed),console.log("size?",this._size),console.log("arr?",JSON.stringify(this._listeners)),new Error("Attempted to dispose unknown listener");this._size--,n[r]=void 0;const i=this._deliveryQueue.current===this;if(this._size*Rh<=n.length){let s=0;for(let a=0;a<n.length;a++)n[a]?n[s++]=n[a]:i&&(this._deliveryQueue.end--,s<this._deliveryQueue.i&&this._deliveryQueue.i--);n.length=s}}_deliver(t,n){if(!t)return;const r=this._options?.onListenerError||We;if(!r){t.value(n);return}try{t.value(n)}catch(i){r(i)}}_deliverQueue(t){const n=t.current._listeners;for(;t.i<t.end;)this._deliver(n[t.i++],t.value);t.reset()}fire(t){if(this._deliveryQueue?.current&&(this._deliverQueue(this._deliveryQueue),this._perfMon?.stop()),this._perfMon?.start(this._size),this._listeners)if(this._listeners instanceof jr)this._deliver(this._listeners,t);else{const n=this._deliveryQueue;n.enqueue(this,t,this._listeners.length),this._deliverQueue(n)}this._perfMon?.stop()}hasListeners(){return this._size>0}}class Nh{constructor(){this.i=-1,this.end=0}enqueue(t,n,r){this.i=0,this.end=r,this.current=t,this.value=n}reset(){this.i=this.end,this.current=void 0,this.value=void 0}}function Dh(){return globalThis._VSCODE_NLS_MESSAGES}function Bs(){return globalThis._VSCODE_NLS_LANGUAGE}const Ih=Bs()==="pseudo"||typeof document<"u"&&document.location&&document.location.hash.indexOf("pseudo=true")>=0;function qs(e,t){let n;return t.length===0?n=e:n=e.replace(/\\{(\\d+)\\}/g,(r,i)=>{const s=i[0],a=t[s];let l=r;return typeof a=="string"?l=a:(typeof a=="number"||typeof a=="boolean"||a===void 0||a===null)&&(l=String(a)),l}),Ih&&(n="["+n.replace(/[aouei]/g,"$&$&")+"]"),n}function re(e,t,...n){return qs(typeof e=="number"?Ah(e,t):t,n)}function Ah(e,t){const n=Dh()?.[e];if(typeof n!="string"){if(typeof t=="string")return t;throw new Error(\`!!! NLS MISSING: \${e} !!!\`)}return n}const Pt="en";let Hr=!1,Gr=!1,Jr=!1,js=!1,Xr=!1,$n,Yr=Pt,Hs=Pt,Mh,Ye;const Qe=globalThis;let Ee;typeof Qe.vscode<"u"&&typeof Qe.vscode.process<"u"?Ee=Qe.vscode.process:typeof process<"u"&&typeof process?.versions?.node=="string"&&(Ee=process);const Lh=typeof Ee?.versions?.electron=="string"&&Ee?.type==="renderer";if(typeof Ee=="object"){Hr=Ee.platform==="win32",Gr=Ee.platform==="darwin",Jr=Ee.platform==="linux",Jr&&Ee.env.SNAP&&Ee.env.SNAP_REVISION,Ee.env.CI||Ee.env.BUILD_ARTIFACTSTAGINGDIRECTORY,$n=Pt,Yr=Pt;const e=Ee.env.VSCODE_NLS_CONFIG;if(e)try{const t=JSON.parse(e);$n=t.userLocale,Hs=t.osLocale,Yr=t.resolvedLanguage||Pt,Mh=t.languagePack?.translationsConfigFile}catch{}js=!0}else typeof navigator=="object"&&!Lh?(Ye=navigator.userAgent,Hr=Ye.indexOf("Windows")>=0,Gr=Ye.indexOf("Macintosh")>=0,(Ye.indexOf("Macintosh")>=0||Ye.indexOf("iPad")>=0||Ye.indexOf("iPhone")>=0)&&navigator.maxTouchPoints&&navigator.maxTouchPoints>0,Jr=Ye.indexOf("Linux")>=0,Ye?.indexOf("Mobi")>=0,Xr=!0,Yr=Bs()||Pt,$n=navigator.language.toLowerCase(),Hs=$n):console.error("Unable to resolve platform.");const ln=Hr,zh=Gr,Ph=js,Th=Xr,Oh=Xr&&typeof Qe.importScripts=="function"?Qe.origin:void 0,Ue=Ye,Wh=typeof Qe.postMessage=="function"&&!Qe.importScripts;(()=>{if(Wh){const e=[];Qe.addEventListener("message",n=>{if(n.data&&n.data.vscodeScheduleAsyncWork)for(let r=0,i=e.length;r<i;r++){const s=e[r];if(s.id===n.data.vscodeScheduleAsyncWork){e.splice(r,1),s.callback();return}}});let t=0;return n=>{const r=++t;e.push({id:r,callback:n}),Qe.postMessage({vscodeScheduleAsyncWork:r},"*")}}return e=>setTimeout(e)})();const Uh=!!(Ue&&Ue.indexOf("Chrome")>=0);Ue&&Ue.indexOf("Firefox")>=0,!Uh&&Ue&&Ue.indexOf("Safari")>=0,Ue&&Ue.indexOf("Edg/")>=0,Ue&&Ue.indexOf("Android")>=0;function Vh(e){return e}class $h{constructor(t,n){this.lastCache=void 0,this.lastArgKey=void 0,typeof t=="function"?(this._fn=t,this._computeKey=Vh):(this._fn=n,this._computeKey=t.getCacheKey)}get(t){const n=this._computeKey(t);return this.lastArgKey!==n&&(this.lastArgKey=n,this.lastCache=this._fn(t)),this.lastCache}}class Gs{constructor(t){this.executor=t,this._didRun=!1}get value(){if(!this._didRun)try{this._value=this.executor()}catch(t){this._error=t}finally{this._didRun=!0}if(this._error)throw this._error;return this._value}get rawValue(){return this._value}}function Bh(e){return e.replace(/[\\\\\\{\\}\\*\\+\\?\\|\\^\\$\\.\\[\\]\\(\\)]/g,"\\\\$&")}function qh(e){return e.split(/\\r\\n|\\r|\\n/)}function jh(e){for(let t=0,n=e.length;t<n;t++){const r=e.charCodeAt(t);if(r!==32&&r!==9)return t}return-1}function Hh(e,t=e.length-1){for(let n=t;n>=0;n--){const r=e.charCodeAt(n);if(r!==32&&r!==9)return n}return-1}function Js(e){return e>=65&&e<=90}function Bn(e){return 55296<=e&&e<=56319}function Qr(e){return 56320<=e&&e<=57343}function Xs(e,t){return(e-55296<<10)+(t-56320)+65536}function Gh(e,t,n){const r=e.charCodeAt(n);if(Bn(r)&&n+1<t){const i=e.charCodeAt(n+1);if(Qr(i))return Xs(r,i)}return r}const Jh=/^[\\t\\n\\r\\x20-\\x7E]*$/;function Xh(e){return Jh.test(e)}const Ge=class Ge{static getInstance(t){return Ge.cache.get(Array.from(t))}static getLocales(){return Ge._locales.value}constructor(t){this.confusableDictionary=t}isAmbiguous(t){return this.confusableDictionary.has(t)}getPrimaryConfusable(t){return this.confusableDictionary.get(t)}getConfusableCodePoints(){return new Set(this.confusableDictionary.keys())}};Ge.ambiguousCharacterData=new Gs(()=>JSON.parse('{"_common":[8232,32,8233,32,5760,32,8192,32,8193,32,8194,32,8195,32,8196,32,8197,32,8198,32,8200,32,8201,32,8202,32,8287,32,8199,32,8239,32,2042,95,65101,95,65102,95,65103,95,8208,45,8209,45,8210,45,65112,45,1748,45,8259,45,727,45,8722,45,10134,45,11450,45,1549,44,1643,44,8218,44,184,44,42233,44,894,59,2307,58,2691,58,1417,58,1795,58,1796,58,5868,58,65072,58,6147,58,6153,58,8282,58,1475,58,760,58,42889,58,8758,58,720,58,42237,58,451,33,11601,33,660,63,577,63,2429,63,5038,63,42731,63,119149,46,8228,46,1793,46,1794,46,42510,46,68176,46,1632,46,1776,46,42232,46,1373,96,65287,96,8219,96,8242,96,1370,96,1523,96,8175,96,65344,96,900,96,8189,96,8125,96,8127,96,8190,96,697,96,884,96,712,96,714,96,715,96,756,96,699,96,701,96,700,96,702,96,42892,96,1497,96,2036,96,2037,96,5194,96,5836,96,94033,96,94034,96,65339,91,10088,40,10098,40,12308,40,64830,40,65341,93,10089,41,10099,41,12309,41,64831,41,10100,123,119060,123,10101,125,65342,94,8270,42,1645,42,8727,42,66335,42,5941,47,8257,47,8725,47,8260,47,9585,47,10187,47,10744,47,119354,47,12755,47,12339,47,11462,47,20031,47,12035,47,65340,92,65128,92,8726,92,10189,92,10741,92,10745,92,119311,92,119355,92,12756,92,20022,92,12034,92,42872,38,708,94,710,94,5869,43,10133,43,66203,43,8249,60,10094,60,706,60,119350,60,5176,60,5810,60,5120,61,11840,61,12448,61,42239,61,8250,62,10095,62,707,62,119351,62,5171,62,94015,62,8275,126,732,126,8128,126,8764,126,65372,124,65293,45,120784,50,120794,50,120804,50,120814,50,120824,50,130034,50,42842,50,423,50,1000,50,42564,50,5311,50,42735,50,119302,51,120785,51,120795,51,120805,51,120815,51,120825,51,130035,51,42923,51,540,51,439,51,42858,51,11468,51,1248,51,94011,51,71882,51,120786,52,120796,52,120806,52,120816,52,120826,52,130036,52,5070,52,71855,52,120787,53,120797,53,120807,53,120817,53,120827,53,130037,53,444,53,71867,53,120788,54,120798,54,120808,54,120818,54,120828,54,130038,54,11474,54,5102,54,71893,54,119314,55,120789,55,120799,55,120809,55,120819,55,120829,55,130039,55,66770,55,71878,55,2819,56,2538,56,2666,56,125131,56,120790,56,120800,56,120810,56,120820,56,120830,56,130040,56,547,56,546,56,66330,56,2663,57,2920,57,2541,57,3437,57,120791,57,120801,57,120811,57,120821,57,120831,57,130041,57,42862,57,11466,57,71884,57,71852,57,71894,57,9082,97,65345,97,119834,97,119886,97,119938,97,119990,97,120042,97,120094,97,120146,97,120198,97,120250,97,120302,97,120354,97,120406,97,120458,97,593,97,945,97,120514,97,120572,97,120630,97,120688,97,120746,97,65313,65,119808,65,119860,65,119912,65,119964,65,120016,65,120068,65,120120,65,120172,65,120224,65,120276,65,120328,65,120380,65,120432,65,913,65,120488,65,120546,65,120604,65,120662,65,120720,65,5034,65,5573,65,42222,65,94016,65,66208,65,119835,98,119887,98,119939,98,119991,98,120043,98,120095,98,120147,98,120199,98,120251,98,120303,98,120355,98,120407,98,120459,98,388,98,5071,98,5234,98,5551,98,65314,66,8492,66,119809,66,119861,66,119913,66,120017,66,120069,66,120121,66,120173,66,120225,66,120277,66,120329,66,120381,66,120433,66,42932,66,914,66,120489,66,120547,66,120605,66,120663,66,120721,66,5108,66,5623,66,42192,66,66178,66,66209,66,66305,66,65347,99,8573,99,119836,99,119888,99,119940,99,119992,99,120044,99,120096,99,120148,99,120200,99,120252,99,120304,99,120356,99,120408,99,120460,99,7428,99,1010,99,11429,99,43951,99,66621,99,128844,67,71922,67,71913,67,65315,67,8557,67,8450,67,8493,67,119810,67,119862,67,119914,67,119966,67,120018,67,120174,67,120226,67,120278,67,120330,67,120382,67,120434,67,1017,67,11428,67,5087,67,42202,67,66210,67,66306,67,66581,67,66844,67,8574,100,8518,100,119837,100,119889,100,119941,100,119993,100,120045,100,120097,100,120149,100,120201,100,120253,100,120305,100,120357,100,120409,100,120461,100,1281,100,5095,100,5231,100,42194,100,8558,68,8517,68,119811,68,119863,68,119915,68,119967,68,120019,68,120071,68,120123,68,120175,68,120227,68,120279,68,120331,68,120383,68,120435,68,5024,68,5598,68,5610,68,42195,68,8494,101,65349,101,8495,101,8519,101,119838,101,119890,101,119942,101,120046,101,120098,101,120150,101,120202,101,120254,101,120306,101,120358,101,120410,101,120462,101,43826,101,1213,101,8959,69,65317,69,8496,69,119812,69,119864,69,119916,69,120020,69,120072,69,120124,69,120176,69,120228,69,120280,69,120332,69,120384,69,120436,69,917,69,120492,69,120550,69,120608,69,120666,69,120724,69,11577,69,5036,69,42224,69,71846,69,71854,69,66182,69,119839,102,119891,102,119943,102,119995,102,120047,102,120099,102,120151,102,120203,102,120255,102,120307,102,120359,102,120411,102,120463,102,43829,102,42905,102,383,102,7837,102,1412,102,119315,70,8497,70,119813,70,119865,70,119917,70,120021,70,120073,70,120125,70,120177,70,120229,70,120281,70,120333,70,120385,70,120437,70,42904,70,988,70,120778,70,5556,70,42205,70,71874,70,71842,70,66183,70,66213,70,66853,70,65351,103,8458,103,119840,103,119892,103,119944,103,120048,103,120100,103,120152,103,120204,103,120256,103,120308,103,120360,103,120412,103,120464,103,609,103,7555,103,397,103,1409,103,119814,71,119866,71,119918,71,119970,71,120022,71,120074,71,120126,71,120178,71,120230,71,120282,71,120334,71,120386,71,120438,71,1292,71,5056,71,5107,71,42198,71,65352,104,8462,104,119841,104,119945,104,119997,104,120049,104,120101,104,120153,104,120205,104,120257,104,120309,104,120361,104,120413,104,120465,104,1211,104,1392,104,5058,104,65320,72,8459,72,8460,72,8461,72,119815,72,119867,72,119919,72,120023,72,120179,72,120231,72,120283,72,120335,72,120387,72,120439,72,919,72,120494,72,120552,72,120610,72,120668,72,120726,72,11406,72,5051,72,5500,72,42215,72,66255,72,731,105,9075,105,65353,105,8560,105,8505,105,8520,105,119842,105,119894,105,119946,105,119998,105,120050,105,120102,105,120154,105,120206,105,120258,105,120310,105,120362,105,120414,105,120466,105,120484,105,618,105,617,105,953,105,8126,105,890,105,120522,105,120580,105,120638,105,120696,105,120754,105,1110,105,42567,105,1231,105,43893,105,5029,105,71875,105,65354,106,8521,106,119843,106,119895,106,119947,106,119999,106,120051,106,120103,106,120155,106,120207,106,120259,106,120311,106,120363,106,120415,106,120467,106,1011,106,1112,106,65322,74,119817,74,119869,74,119921,74,119973,74,120025,74,120077,74,120129,74,120181,74,120233,74,120285,74,120337,74,120389,74,120441,74,42930,74,895,74,1032,74,5035,74,5261,74,42201,74,119844,107,119896,107,119948,107,120000,107,120052,107,120104,107,120156,107,120208,107,120260,107,120312,107,120364,107,120416,107,120468,107,8490,75,65323,75,119818,75,119870,75,119922,75,119974,75,120026,75,120078,75,120130,75,120182,75,120234,75,120286,75,120338,75,120390,75,120442,75,922,75,120497,75,120555,75,120613,75,120671,75,120729,75,11412,75,5094,75,5845,75,42199,75,66840,75,1472,108,8739,73,9213,73,65512,73,1633,108,1777,73,66336,108,125127,108,120783,73,120793,73,120803,73,120813,73,120823,73,130033,73,65321,73,8544,73,8464,73,8465,73,119816,73,119868,73,119920,73,120024,73,120128,73,120180,73,120232,73,120284,73,120336,73,120388,73,120440,73,65356,108,8572,73,8467,108,119845,108,119897,108,119949,108,120001,108,120053,108,120105,73,120157,73,120209,73,120261,73,120313,73,120365,73,120417,73,120469,73,448,73,120496,73,120554,73,120612,73,120670,73,120728,73,11410,73,1030,73,1216,73,1493,108,1503,108,1575,108,126464,108,126592,108,65166,108,65165,108,1994,108,11599,73,5825,73,42226,73,93992,73,66186,124,66313,124,119338,76,8556,76,8466,76,119819,76,119871,76,119923,76,120027,76,120079,76,120131,76,120183,76,120235,76,120287,76,120339,76,120391,76,120443,76,11472,76,5086,76,5290,76,42209,76,93974,76,71843,76,71858,76,66587,76,66854,76,65325,77,8559,77,8499,77,119820,77,119872,77,119924,77,120028,77,120080,77,120132,77,120184,77,120236,77,120288,77,120340,77,120392,77,120444,77,924,77,120499,77,120557,77,120615,77,120673,77,120731,77,1018,77,11416,77,5047,77,5616,77,5846,77,42207,77,66224,77,66321,77,119847,110,119899,110,119951,110,120003,110,120055,110,120107,110,120159,110,120211,110,120263,110,120315,110,120367,110,120419,110,120471,110,1400,110,1404,110,65326,78,8469,78,119821,78,119873,78,119925,78,119977,78,120029,78,120081,78,120185,78,120237,78,120289,78,120341,78,120393,78,120445,78,925,78,120500,78,120558,78,120616,78,120674,78,120732,78,11418,78,42208,78,66835,78,3074,111,3202,111,3330,111,3458,111,2406,111,2662,111,2790,111,3046,111,3174,111,3302,111,3430,111,3664,111,3792,111,4160,111,1637,111,1781,111,65359,111,8500,111,119848,111,119900,111,119952,111,120056,111,120108,111,120160,111,120212,111,120264,111,120316,111,120368,111,120420,111,120472,111,7439,111,7441,111,43837,111,959,111,120528,111,120586,111,120644,111,120702,111,120760,111,963,111,120532,111,120590,111,120648,111,120706,111,120764,111,11423,111,4351,111,1413,111,1505,111,1607,111,126500,111,126564,111,126596,111,65259,111,65260,111,65258,111,65257,111,1726,111,64428,111,64429,111,64427,111,64426,111,1729,111,64424,111,64425,111,64423,111,64422,111,1749,111,3360,111,4125,111,66794,111,71880,111,71895,111,66604,111,1984,79,2534,79,2918,79,12295,79,70864,79,71904,79,120782,79,120792,79,120802,79,120812,79,120822,79,130032,79,65327,79,119822,79,119874,79,119926,79,119978,79,120030,79,120082,79,120134,79,120186,79,120238,79,120290,79,120342,79,120394,79,120446,79,927,79,120502,79,120560,79,120618,79,120676,79,120734,79,11422,79,1365,79,11604,79,4816,79,2848,79,66754,79,42227,79,71861,79,66194,79,66219,79,66564,79,66838,79,9076,112,65360,112,119849,112,119901,112,119953,112,120005,112,120057,112,120109,112,120161,112,120213,112,120265,112,120317,112,120369,112,120421,112,120473,112,961,112,120530,112,120544,112,120588,112,120602,112,120646,112,120660,112,120704,112,120718,112,120762,112,120776,112,11427,112,65328,80,8473,80,119823,80,119875,80,119927,80,119979,80,120031,80,120083,80,120187,80,120239,80,120291,80,120343,80,120395,80,120447,80,929,80,120504,80,120562,80,120620,80,120678,80,120736,80,11426,80,5090,80,5229,80,42193,80,66197,80,119850,113,119902,113,119954,113,120006,113,120058,113,120110,113,120162,113,120214,113,120266,113,120318,113,120370,113,120422,113,120474,113,1307,113,1379,113,1382,113,8474,81,119824,81,119876,81,119928,81,119980,81,120032,81,120084,81,120188,81,120240,81,120292,81,120344,81,120396,81,120448,81,11605,81,119851,114,119903,114,119955,114,120007,114,120059,114,120111,114,120163,114,120215,114,120267,114,120319,114,120371,114,120423,114,120475,114,43847,114,43848,114,7462,114,11397,114,43905,114,119318,82,8475,82,8476,82,8477,82,119825,82,119877,82,119929,82,120033,82,120189,82,120241,82,120293,82,120345,82,120397,82,120449,82,422,82,5025,82,5074,82,66740,82,5511,82,42211,82,94005,82,65363,115,119852,115,119904,115,119956,115,120008,115,120060,115,120112,115,120164,115,120216,115,120268,115,120320,115,120372,115,120424,115,120476,115,42801,115,445,115,1109,115,43946,115,71873,115,66632,115,65331,83,119826,83,119878,83,119930,83,119982,83,120034,83,120086,83,120138,83,120190,83,120242,83,120294,83,120346,83,120398,83,120450,83,1029,83,1359,83,5077,83,5082,83,42210,83,94010,83,66198,83,66592,83,119853,116,119905,116,119957,116,120009,116,120061,116,120113,116,120165,116,120217,116,120269,116,120321,116,120373,116,120425,116,120477,116,8868,84,10201,84,128872,84,65332,84,119827,84,119879,84,119931,84,119983,84,120035,84,120087,84,120139,84,120191,84,120243,84,120295,84,120347,84,120399,84,120451,84,932,84,120507,84,120565,84,120623,84,120681,84,120739,84,11430,84,5026,84,42196,84,93962,84,71868,84,66199,84,66225,84,66325,84,119854,117,119906,117,119958,117,120010,117,120062,117,120114,117,120166,117,120218,117,120270,117,120322,117,120374,117,120426,117,120478,117,42911,117,7452,117,43854,117,43858,117,651,117,965,117,120534,117,120592,117,120650,117,120708,117,120766,117,1405,117,66806,117,71896,117,8746,85,8899,85,119828,85,119880,85,119932,85,119984,85,120036,85,120088,85,120140,85,120192,85,120244,85,120296,85,120348,85,120400,85,120452,85,1357,85,4608,85,66766,85,5196,85,42228,85,94018,85,71864,85,8744,118,8897,118,65366,118,8564,118,119855,118,119907,118,119959,118,120011,118,120063,118,120115,118,120167,118,120219,118,120271,118,120323,118,120375,118,120427,118,120479,118,7456,118,957,118,120526,118,120584,118,120642,118,120700,118,120758,118,1141,118,1496,118,71430,118,43945,118,71872,118,119309,86,1639,86,1783,86,8548,86,119829,86,119881,86,119933,86,119985,86,120037,86,120089,86,120141,86,120193,86,120245,86,120297,86,120349,86,120401,86,120453,86,1140,86,11576,86,5081,86,5167,86,42719,86,42214,86,93960,86,71840,86,66845,86,623,119,119856,119,119908,119,119960,119,120012,119,120064,119,120116,119,120168,119,120220,119,120272,119,120324,119,120376,119,120428,119,120480,119,7457,119,1121,119,1309,119,1377,119,71434,119,71438,119,71439,119,43907,119,71919,87,71910,87,119830,87,119882,87,119934,87,119986,87,120038,87,120090,87,120142,87,120194,87,120246,87,120298,87,120350,87,120402,87,120454,87,1308,87,5043,87,5076,87,42218,87,5742,120,10539,120,10540,120,10799,120,65368,120,8569,120,119857,120,119909,120,119961,120,120013,120,120065,120,120117,120,120169,120,120221,120,120273,120,120325,120,120377,120,120429,120,120481,120,5441,120,5501,120,5741,88,9587,88,66338,88,71916,88,65336,88,8553,88,119831,88,119883,88,119935,88,119987,88,120039,88,120091,88,120143,88,120195,88,120247,88,120299,88,120351,88,120403,88,120455,88,42931,88,935,88,120510,88,120568,88,120626,88,120684,88,120742,88,11436,88,11613,88,5815,88,42219,88,66192,88,66228,88,66327,88,66855,88,611,121,7564,121,65369,121,119858,121,119910,121,119962,121,120014,121,120066,121,120118,121,120170,121,120222,121,120274,121,120326,121,120378,121,120430,121,120482,121,655,121,7935,121,43866,121,947,121,8509,121,120516,121,120574,121,120632,121,120690,121,120748,121,1199,121,4327,121,71900,121,65337,89,119832,89,119884,89,119936,89,119988,89,120040,89,120092,89,120144,89,120196,89,120248,89,120300,89,120352,89,120404,89,120456,89,933,89,978,89,120508,89,120566,89,120624,89,120682,89,120740,89,11432,89,1198,89,5033,89,5053,89,42220,89,94019,89,71844,89,66226,89,119859,122,119911,122,119963,122,120015,122,120067,122,120119,122,120171,122,120223,122,120275,122,120327,122,120379,122,120431,122,120483,122,7458,122,43923,122,71876,122,66293,90,71909,90,65338,90,8484,90,8488,90,119833,90,119885,90,119937,90,119989,90,120041,90,120197,90,120249,90,120301,90,120353,90,120405,90,120457,90,918,90,120493,90,120551,90,120609,90,120667,90,120725,90,5059,90,42204,90,71849,90,65282,34,65284,36,65285,37,65286,38,65290,42,65291,43,65294,46,65295,47,65296,48,65297,49,65298,50,65299,51,65300,52,65301,53,65302,54,65303,55,65304,56,65305,57,65308,60,65309,61,65310,62,65312,64,65316,68,65318,70,65319,71,65324,76,65329,81,65330,82,65333,85,65334,86,65335,87,65343,95,65346,98,65348,100,65350,102,65355,107,65357,109,65358,110,65361,113,65362,114,65364,116,65365,117,65367,119,65370,122,65371,123,65373,125,119846,109],"_default":[160,32,8211,45,65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"cs":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"de":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"es":[8211,45,65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"fr":[65374,126,65306,58,65281,33,8216,96,8245,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"it":[160,32,8211,45,65374,126,65306,58,65281,33,8216,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"ja":[8211,45,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65292,44,65307,59],"ko":[8211,45,65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"pl":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"pt-BR":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"qps-ploc":[160,32,8211,45,65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"ru":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,305,105,921,73,1009,112,215,120,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"tr":[160,32,8211,45,65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"zh-hans":[65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41],"zh-hant":[8211,45,65374,126,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65307,59]}')),Ge.cache=new $h({getCacheKey:JSON.stringify},t=>{function n(d){const u=new Map;for(let f=0;f<d.length;f+=2)u.set(d[f],d[f+1]);return u}function r(d,u){const f=new Map(d);for(const[m,v]of u)f.set(m,v);return f}function i(d,u){if(!d)return u;const f=new Map;for(const[m,v]of d)u.has(m)&&f.set(m,v);return f}const s=Ge.ambiguousCharacterData.value;let a=t.filter(d=>!d.startsWith("_")&&d in s);a.length===0&&(a=["_default"]);let l;for(const d of a){const u=n(s[d]);l=i(l,u)}const o=n(s._common),c=r(o,l);return new Ge(c)}),Ge._locales=new Gs(()=>Object.keys(Ge.ambiguousCharacterData.value).filter(t=>!t.startsWith("_")));let cn=Ge;const rn=class rn{static getRawData(){return JSON.parse("[9,10,11,12,13,32,127,160,173,847,1564,4447,4448,6068,6069,6155,6156,6157,6158,7355,7356,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8203,8204,8205,8206,8207,8234,8235,8236,8237,8238,8239,8287,8288,8289,8290,8291,8292,8293,8294,8295,8296,8297,8298,8299,8300,8301,8302,8303,10240,12288,12644,65024,65025,65026,65027,65028,65029,65030,65031,65032,65033,65034,65035,65036,65037,65038,65039,65279,65440,65520,65521,65522,65523,65524,65525,65526,65527,65528,65532,78844,119155,119156,119157,119158,119159,119160,119161,119162,917504,917505,917506,917507,917508,917509,917510,917511,917512,917513,917514,917515,917516,917517,917518,917519,917520,917521,917522,917523,917524,917525,917526,917527,917528,917529,917530,917531,917532,917533,917534,917535,917536,917537,917538,917539,917540,917541,917542,917543,917544,917545,917546,917547,917548,917549,917550,917551,917552,917553,917554,917555,917556,917557,917558,917559,917560,917561,917562,917563,917564,917565,917566,917567,917568,917569,917570,917571,917572,917573,917574,917575,917576,917577,917578,917579,917580,917581,917582,917583,917584,917585,917586,917587,917588,917589,917590,917591,917592,917593,917594,917595,917596,917597,917598,917599,917600,917601,917602,917603,917604,917605,917606,917607,917608,917609,917610,917611,917612,917613,917614,917615,917616,917617,917618,917619,917620,917621,917622,917623,917624,917625,917626,917627,917628,917629,917630,917631,917760,917761,917762,917763,917764,917765,917766,917767,917768,917769,917770,917771,917772,917773,917774,917775,917776,917777,917778,917779,917780,917781,917782,917783,917784,917785,917786,917787,917788,917789,917790,917791,917792,917793,917794,917795,917796,917797,917798,917799,917800,917801,917802,917803,917804,917805,917806,917807,917808,917809,917810,917811,917812,917813,917814,917815,917816,917817,917818,917819,917820,917821,917822,917823,917824,917825,917826,917827,917828,917829,917830,917831,917832,917833,917834,917835,917836,917837,917838,917839,917840,917841,917842,917843,917844,917845,917846,917847,917848,917849,917850,917851,917852,917853,917854,917855,917856,917857,917858,917859,917860,917861,917862,917863,917864,917865,917866,917867,917868,917869,917870,917871,917872,917873,917874,917875,917876,917877,917878,917879,917880,917881,917882,917883,917884,917885,917886,917887,917888,917889,917890,917891,917892,917893,917894,917895,917896,917897,917898,917899,917900,917901,917902,917903,917904,917905,917906,917907,917908,917909,917910,917911,917912,917913,917914,917915,917916,917917,917918,917919,917920,917921,917922,917923,917924,917925,917926,917927,917928,917929,917930,917931,917932,917933,917934,917935,917936,917937,917938,917939,917940,917941,917942,917943,917944,917945,917946,917947,917948,917949,917950,917951,917952,917953,917954,917955,917956,917957,917958,917959,917960,917961,917962,917963,917964,917965,917966,917967,917968,917969,917970,917971,917972,917973,917974,917975,917976,917977,917978,917979,917980,917981,917982,917983,917984,917985,917986,917987,917988,917989,917990,917991,917992,917993,917994,917995,917996,917997,917998,917999]")}static getData(){return this._data||(this._data=new Set(rn.getRawData())),this._data}static isInvisibleCharacter(t){return rn.getData().has(t)}static get codePoints(){return rn.getData()}};rn._data=void 0;let hn=rn;var Ys={ENV_TYPE:"local",NODE_ENV:"production"};let Tt;const Kr=globalThis.vscode;if(typeof Kr<"u"&&typeof Kr.process<"u"){const e=Kr.process;Tt={get platform(){return e.platform},get arch(){return e.arch},get env(){return e.env},cwd(){return e.cwd()}}}else typeof process<"u"&&typeof process?.versions?.node=="string"?Tt={get platform(){return process.platform},get arch(){return process.arch},get env(){return Ys},cwd(){return Ys.VSCODE_CWD||process.cwd()}}:Tt={get platform(){return ln?"win32":zh?"darwin":"linux"},get arch(){},get env(){return{}},cwd(){return"/"}};const qn=Tt.cwd,Yh=Tt.env,Qh=Tt.platform,Kh=65,Zh=97,ed=90,td=122,ht=46,ge=47,_e=92,dt=58,nd=63;class Qs extends Error{constructor(t,n,r){let i;typeof n=="string"&&n.indexOf("not ")===0?(i="must not be",n=n.replace(/^not /,"")):i="must be";const s=t.indexOf(".")!==-1?"property":"argument";let a=\`The "\${t}" \${s} \${i} of type \${n}\`;a+=\`. Received type \${typeof r}\`,super(a),this.code="ERR_INVALID_ARG_TYPE"}}function rd(e,t){if(e===null||typeof e!="object")throw new Qs(t,"Object",e)}function ce(e,t){if(typeof e!="string")throw new Qs(t,"string",e)}const Ke=Qh==="win32";function G(e){return e===ge||e===_e}function Zr(e){return e===ge}function ut(e){return e>=Kh&&e<=ed||e>=Zh&&e<=td}function jn(e,t,n,r){let i="",s=0,a=-1,l=0,o=0;for(let c=0;c<=e.length;++c){if(c<e.length)o=e.charCodeAt(c);else{if(r(o))break;o=ge}if(r(o)){if(!(a===c-1||l===1))if(l===2){if(i.length<2||s!==2||i.charCodeAt(i.length-1)!==ht||i.charCodeAt(i.length-2)!==ht){if(i.length>2){const d=i.lastIndexOf(n);d===-1?(i="",s=0):(i=i.slice(0,d),s=i.length-1-i.lastIndexOf(n)),a=c,l=0;continue}else if(i.length!==0){i="",s=0,a=c,l=0;continue}}t&&(i+=i.length>0?\`\${n}..\`:"..",s=2)}else i.length>0?i+=\`\${n}\${e.slice(a+1,c)}\`:i=e.slice(a+1,c),s=c-a-1;a=c,l=0}else o===ht&&l!==-1?++l:l=-1}return i}function id(e){return e?\`\${e[0]==="."?"":"."}\${e}\`:""}function Ks(e,t){rd(t,"pathObject");const n=t.dir||t.root,r=t.base||\`\${t.name||""}\${id(t.ext)}\`;return n?n===t.root?\`\${n}\${r}\`:\`\${n}\${e}\${r}\`:r}const ve={resolve(...e){let t="",n="",r=!1;for(let i=e.length-1;i>=-1;i--){let s;if(i>=0){if(s=e[i],ce(s,\`paths[\${i}]\`),s.length===0)continue}else t.length===0?s=qn():(s=Yh[\`=\${t}\`]||qn(),(s===void 0||s.slice(0,2).toLowerCase()!==t.toLowerCase()&&s.charCodeAt(2)===_e)&&(s=\`\${t}\\\\\`));const a=s.length;let l=0,o="",c=!1;const d=s.charCodeAt(0);if(a===1)G(d)&&(l=1,c=!0);else if(G(d))if(c=!0,G(s.charCodeAt(1))){let u=2,f=u;for(;u<a&&!G(s.charCodeAt(u));)u++;if(u<a&&u!==f){const m=s.slice(f,u);for(f=u;u<a&&G(s.charCodeAt(u));)u++;if(u<a&&u!==f){for(f=u;u<a&&!G(s.charCodeAt(u));)u++;(u===a||u!==f)&&(o=\`\\\\\\\\\${m}\\\\\${s.slice(f,u)}\`,l=u)}}}else l=1;else ut(d)&&s.charCodeAt(1)===dt&&(o=s.slice(0,2),l=2,a>2&&G(s.charCodeAt(2))&&(c=!0,l=3));if(o.length>0)if(t.length>0){if(o.toLowerCase()!==t.toLowerCase())continue}else t=o;if(r){if(t.length>0)break}else if(n=\`\${s.slice(l)}\\\\\${n}\`,r=c,c&&t.length>0)break}return n=jn(n,!r,"\\\\",G),r?\`\${t}\\\\\${n}\`:\`\${t}\${n}\`||"."},normalize(e){ce(e,"path");const t=e.length;if(t===0)return".";let n=0,r,i=!1;const s=e.charCodeAt(0);if(t===1)return Zr(s)?"\\\\":e;if(G(s))if(i=!0,G(e.charCodeAt(1))){let l=2,o=l;for(;l<t&&!G(e.charCodeAt(l));)l++;if(l<t&&l!==o){const c=e.slice(o,l);for(o=l;l<t&&G(e.charCodeAt(l));)l++;if(l<t&&l!==o){for(o=l;l<t&&!G(e.charCodeAt(l));)l++;if(l===t)return\`\\\\\\\\\${c}\\\\\${e.slice(o)}\\\\\`;l!==o&&(r=\`\\\\\\\\\${c}\\\\\${e.slice(o,l)}\`,n=l)}}}else n=1;else ut(s)&&e.charCodeAt(1)===dt&&(r=e.slice(0,2),n=2,t>2&&G(e.charCodeAt(2))&&(i=!0,n=3));let a=n<t?jn(e.slice(n),!i,"\\\\",G):"";return a.length===0&&!i&&(a="."),a.length>0&&G(e.charCodeAt(t-1))&&(a+="\\\\"),r===void 0?i?\`\\\\\${a}\`:a:i?\`\${r}\\\\\${a}\`:\`\${r}\${a}\`},isAbsolute(e){ce(e,"path");const t=e.length;if(t===0)return!1;const n=e.charCodeAt(0);return G(n)||t>2&&ut(n)&&e.charCodeAt(1)===dt&&G(e.charCodeAt(2))},join(...e){if(e.length===0)return".";let t,n;for(let s=0;s<e.length;++s){const a=e[s];ce(a,"path"),a.length>0&&(t===void 0?t=n=a:t+=\`\\\\\${a}\`)}if(t===void 0)return".";let r=!0,i=0;if(typeof n=="string"&&G(n.charCodeAt(0))){++i;const s=n.length;s>1&&G(n.charCodeAt(1))&&(++i,s>2&&(G(n.charCodeAt(2))?++i:r=!1))}if(r){for(;i<t.length&&G(t.charCodeAt(i));)i++;i>=2&&(t=\`\\\\\${t.slice(i)}\`)}return ve.normalize(t)},relative(e,t){if(ce(e,"from"),ce(t,"to"),e===t)return"";const n=ve.resolve(e),r=ve.resolve(t);if(n===r||(e=n.toLowerCase(),t=r.toLowerCase(),e===t))return"";let i=0;for(;i<e.length&&e.charCodeAt(i)===_e;)i++;let s=e.length;for(;s-1>i&&e.charCodeAt(s-1)===_e;)s--;const a=s-i;let l=0;for(;l<t.length&&t.charCodeAt(l)===_e;)l++;let o=t.length;for(;o-1>l&&t.charCodeAt(o-1)===_e;)o--;const c=o-l,d=a<c?a:c;let u=-1,f=0;for(;f<d;f++){const v=e.charCodeAt(i+f);if(v!==t.charCodeAt(l+f))break;v===_e&&(u=f)}if(f!==d){if(u===-1)return r}else{if(c>d){if(t.charCodeAt(l+f)===_e)return r.slice(l+f+1);if(f===2)return r.slice(l+f)}a>d&&(e.charCodeAt(i+f)===_e?u=f:f===2&&(u=3)),u===-1&&(u=0)}let m="";for(f=i+u+1;f<=s;++f)(f===s||e.charCodeAt(f)===_e)&&(m+=m.length===0?"..":"\\\\..");return l+=u,m.length>0?\`\${m}\${r.slice(l,o)}\`:(r.charCodeAt(l)===_e&&++l,r.slice(l,o))},toNamespacedPath(e){if(typeof e!="string"||e.length===0)return e;const t=ve.resolve(e);if(t.length<=2)return e;if(t.charCodeAt(0)===_e){if(t.charCodeAt(1)===_e){const n=t.charCodeAt(2);if(n!==nd&&n!==ht)return\`\\\\\\\\?\\\\UNC\\\\\${t.slice(2)}\`}}else if(ut(t.charCodeAt(0))&&t.charCodeAt(1)===dt&&t.charCodeAt(2)===_e)return\`\\\\\\\\?\\\\\${t}\`;return e},dirname(e){ce(e,"path");const t=e.length;if(t===0)return".";let n=-1,r=0;const i=e.charCodeAt(0);if(t===1)return G(i)?e:".";if(G(i)){if(n=r=1,G(e.charCodeAt(1))){let l=2,o=l;for(;l<t&&!G(e.charCodeAt(l));)l++;if(l<t&&l!==o){for(o=l;l<t&&G(e.charCodeAt(l));)l++;if(l<t&&l!==o){for(o=l;l<t&&!G(e.charCodeAt(l));)l++;if(l===t)return e;l!==o&&(n=r=l+1)}}}}else ut(i)&&e.charCodeAt(1)===dt&&(n=t>2&&G(e.charCodeAt(2))?3:2,r=n);let s=-1,a=!0;for(let l=t-1;l>=r;--l)if(G(e.charCodeAt(l))){if(!a){s=l;break}}else a=!1;if(s===-1){if(n===-1)return".";s=n}return e.slice(0,s)},basename(e,t){t!==void 0&&ce(t,"suffix"),ce(e,"path");let n=0,r=-1,i=!0,s;if(e.length>=2&&ut(e.charCodeAt(0))&&e.charCodeAt(1)===dt&&(n=2),t!==void 0&&t.length>0&&t.length<=e.length){if(t===e)return"";let a=t.length-1,l=-1;for(s=e.length-1;s>=n;--s){const o=e.charCodeAt(s);if(G(o)){if(!i){n=s+1;break}}else l===-1&&(i=!1,l=s+1),a>=0&&(o===t.charCodeAt(a)?--a===-1&&(r=s):(a=-1,r=l))}return n===r?r=l:r===-1&&(r=e.length),e.slice(n,r)}for(s=e.length-1;s>=n;--s)if(G(e.charCodeAt(s))){if(!i){n=s+1;break}}else r===-1&&(i=!1,r=s+1);return r===-1?"":e.slice(n,r)},extname(e){ce(e,"path");let t=0,n=-1,r=0,i=-1,s=!0,a=0;e.length>=2&&e.charCodeAt(1)===dt&&ut(e.charCodeAt(0))&&(t=r=2);for(let l=e.length-1;l>=t;--l){const o=e.charCodeAt(l);if(G(o)){if(!s){r=l+1;break}continue}i===-1&&(s=!1,i=l+1),o===ht?n===-1?n=l:a!==1&&(a=1):n!==-1&&(a=-1)}return n===-1||i===-1||a===0||a===1&&n===i-1&&n===r+1?"":e.slice(n,i)},format:Ks.bind(null,"\\\\"),parse(e){ce(e,"path");const t={root:"",dir:"",base:"",ext:"",name:""};if(e.length===0)return t;const n=e.length;let r=0,i=e.charCodeAt(0);if(n===1)return G(i)?(t.root=t.dir=e,t):(t.base=t.name=e,t);if(G(i)){if(r=1,G(e.charCodeAt(1))){let u=2,f=u;for(;u<n&&!G(e.charCodeAt(u));)u++;if(u<n&&u!==f){for(f=u;u<n&&G(e.charCodeAt(u));)u++;if(u<n&&u!==f){for(f=u;u<n&&!G(e.charCodeAt(u));)u++;u===n?r=u:u!==f&&(r=u+1)}}}}else if(ut(i)&&e.charCodeAt(1)===dt){if(n<=2)return t.root=t.dir=e,t;if(r=2,G(e.charCodeAt(2))){if(n===3)return t.root=t.dir=e,t;r=3}}r>0&&(t.root=e.slice(0,r));let s=-1,a=r,l=-1,o=!0,c=e.length-1,d=0;for(;c>=r;--c){if(i=e.charCodeAt(c),G(i)){if(!o){a=c+1;break}continue}l===-1&&(o=!1,l=c+1),i===ht?s===-1?s=c:d!==1&&(d=1):s!==-1&&(d=-1)}return l!==-1&&(s===-1||d===0||d===1&&s===l-1&&s===a+1?t.base=t.name=e.slice(a,l):(t.name=e.slice(a,s),t.base=e.slice(a,l),t.ext=e.slice(s,l))),a>0&&a!==r?t.dir=e.slice(0,a-1):t.dir=t.root,t},sep:"\\\\",delimiter:";",win32:null,posix:null},sd=(()=>{if(Ke){const e=/\\\\/g;return()=>{const t=qn().replace(e,"/");return t.slice(t.indexOf("/"))}}return()=>qn()})(),we={resolve(...e){let t="",n=!1;for(let r=e.length-1;r>=-1&&!n;r--){const i=r>=0?e[r]:sd();ce(i,\`paths[\${r}]\`),i.length!==0&&(t=\`\${i}/\${t}\`,n=i.charCodeAt(0)===ge)}return t=jn(t,!n,"/",Zr),n?\`/\${t}\`:t.length>0?t:"."},normalize(e){if(ce(e,"path"),e.length===0)return".";const t=e.charCodeAt(0)===ge,n=e.charCodeAt(e.length-1)===ge;return e=jn(e,!t,"/",Zr),e.length===0?t?"/":n?"./":".":(n&&(e+="/"),t?\`/\${e}\`:e)},isAbsolute(e){return ce(e,"path"),e.length>0&&e.charCodeAt(0)===ge},join(...e){if(e.length===0)return".";let t;for(let n=0;n<e.length;++n){const r=e[n];ce(r,"path"),r.length>0&&(t===void 0?t=r:t+=\`/\${r}\`)}return t===void 0?".":we.normalize(t)},relative(e,t){if(ce(e,"from"),ce(t,"to"),e===t||(e=we.resolve(e),t=we.resolve(t),e===t))return"";const n=1,r=e.length,i=r-n,s=1,a=t.length-s,l=i<a?i:a;let o=-1,c=0;for(;c<l;c++){const u=e.charCodeAt(n+c);if(u!==t.charCodeAt(s+c))break;u===ge&&(o=c)}if(c===l)if(a>l){if(t.charCodeAt(s+c)===ge)return t.slice(s+c+1);if(c===0)return t.slice(s+c)}else i>l&&(e.charCodeAt(n+c)===ge?o=c:c===0&&(o=0));let d="";for(c=n+o+1;c<=r;++c)(c===r||e.charCodeAt(c)===ge)&&(d+=d.length===0?"..":"/..");return\`\${d}\${t.slice(s+o)}\`},toNamespacedPath(e){return e},dirname(e){if(ce(e,"path"),e.length===0)return".";const t=e.charCodeAt(0)===ge;let n=-1,r=!0;for(let i=e.length-1;i>=1;--i)if(e.charCodeAt(i)===ge){if(!r){n=i;break}}else r=!1;return n===-1?t?"/":".":t&&n===1?"//":e.slice(0,n)},basename(e,t){t!==void 0&&ce(t,"ext"),ce(e,"path");let n=0,r=-1,i=!0,s;if(t!==void 0&&t.length>0&&t.length<=e.length){if(t===e)return"";let a=t.length-1,l=-1;for(s=e.length-1;s>=0;--s){const o=e.charCodeAt(s);if(o===ge){if(!i){n=s+1;break}}else l===-1&&(i=!1,l=s+1),a>=0&&(o===t.charCodeAt(a)?--a===-1&&(r=s):(a=-1,r=l))}return n===r?r=l:r===-1&&(r=e.length),e.slice(n,r)}for(s=e.length-1;s>=0;--s)if(e.charCodeAt(s)===ge){if(!i){n=s+1;break}}else r===-1&&(i=!1,r=s+1);return r===-1?"":e.slice(n,r)},extname(e){ce(e,"path");let t=-1,n=0,r=-1,i=!0,s=0;for(let a=e.length-1;a>=0;--a){const l=e.charCodeAt(a);if(l===ge){if(!i){n=a+1;break}continue}r===-1&&(i=!1,r=a+1),l===ht?t===-1?t=a:s!==1&&(s=1):t!==-1&&(s=-1)}return t===-1||r===-1||s===0||s===1&&t===r-1&&t===n+1?"":e.slice(t,r)},format:Ks.bind(null,"/"),parse(e){ce(e,"path");const t={root:"",dir:"",base:"",ext:"",name:""};if(e.length===0)return t;const n=e.charCodeAt(0)===ge;let r;n?(t.root="/",r=1):r=0;let i=-1,s=0,a=-1,l=!0,o=e.length-1,c=0;for(;o>=r;--o){const d=e.charCodeAt(o);if(d===ge){if(!l){s=o+1;break}continue}a===-1&&(l=!1,a=o+1),d===ht?i===-1?i=o:c!==1&&(c=1):i!==-1&&(c=-1)}if(a!==-1){const d=s===0&&n?1:s;i===-1||c===0||c===1&&i===a-1&&i===s+1?t.base=t.name=e.slice(d,a):(t.name=e.slice(d,i),t.base=e.slice(d,a),t.ext=e.slice(i,a))}return s>0?t.dir=e.slice(0,s-1):n&&(t.dir="/"),t},sep:"/",delimiter:":",win32:null,posix:null};we.win32=ve.win32=ve,we.posix=ve.posix=we,Ke?ve.normalize:we.normalize;const ad=Ke?ve.join:we.join;Ke?ve.resolve:we.resolve,Ke?ve.relative:we.relative,Ke?ve.dirname:we.dirname,Ke?ve.basename:we.basename,Ke?ve.extname:we.extname,Ke?ve.sep:we.sep;const od=/^\\w[\\w\\d+.-]*$/,ld=/^\\//,cd=/^\\/\\//;function hd(e,t){if(!e.scheme&&t)throw new Error(\`[UriError]: Scheme is missing: {scheme: "", authority: "\${e.authority}", path: "\${e.path}", query: "\${e.query}", fragment: "\${e.fragment}"}\`);if(e.scheme&&!od.test(e.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(e.path){if(e.authority){if(!ld.test(e.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(cd.test(e.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}}function dd(e,t){return!e&&!t?"file":e}function ud(e,t){switch(e){case"https":case"http":case"file":t?t[0]!==Pe&&(t=Pe+t):t=Pe;break}return t}const ne="",Pe="/",pd=/^(([^:/?#]+?):)?(\\/\\/([^/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?/;let Ve=class Wr{static isUri(t){return t instanceof Wr?!0:t?typeof t.authority=="string"&&typeof t.fragment=="string"&&typeof t.path=="string"&&typeof t.query=="string"&&typeof t.scheme=="string"&&typeof t.fsPath=="string"&&typeof t.with=="function"&&typeof t.toString=="function":!1}constructor(t,n,r,i,s,a=!1){typeof t=="object"?(this.scheme=t.scheme||ne,this.authority=t.authority||ne,this.path=t.path||ne,this.query=t.query||ne,this.fragment=t.fragment||ne):(this.scheme=dd(t,a),this.authority=n||ne,this.path=ud(this.scheme,r||ne),this.query=i||ne,this.fragment=s||ne,hd(this,a))}get fsPath(){return ei(this,!1)}with(t){if(!t)return this;let{scheme:n,authority:r,path:i,query:s,fragment:a}=t;return n===void 0?n=this.scheme:n===null&&(n=ne),r===void 0?r=this.authority:r===null&&(r=ne),i===void 0?i=this.path:i===null&&(i=ne),s===void 0?s=this.query:s===null&&(s=ne),a===void 0?a=this.fragment:a===null&&(a=ne),n===this.scheme&&r===this.authority&&i===this.path&&s===this.query&&a===this.fragment?this:new Ot(n,r,i,s,a)}static parse(t,n=!1){const r=pd.exec(t);return r?new Ot(r[2]||ne,Hn(r[4]||ne),Hn(r[5]||ne),Hn(r[7]||ne),Hn(r[9]||ne),n):new Ot(ne,ne,ne,ne,ne)}static file(t){let n=ne;if(ln&&(t=t.replace(/\\\\/g,Pe)),t[0]===Pe&&t[1]===Pe){const r=t.indexOf(Pe,2);r===-1?(n=t.substring(2),t=Pe):(n=t.substring(2,r),t=t.substring(r)||Pe)}return new Ot("file",n,t,ne,ne)}static from(t,n){return new Ot(t.scheme,t.authority,t.path,t.query,t.fragment,n)}static joinPath(t,...n){if(!t.path)throw new Error("[UriError]: cannot call joinPath on URI without path");let r;return ln&&t.scheme==="file"?r=Wr.file(ve.join(ei(t,!0),...n)).path:r=we.join(t.path,...n),t.with({path:r})}toString(t=!1){return ti(this,t)}toJSON(){return this}static revive(t){if(t){if(t instanceof Wr)return t;{const n=new Ot(t);return n._formatted=t.external??null,n._fsPath=t._sep===Zs?t.fsPath??null:null,n}}else return t}};const Zs=ln?1:void 0;class Ot extends Ve{constructor(){super(...arguments),this._formatted=null,this._fsPath=null}get fsPath(){return this._fsPath||(this._fsPath=ei(this,!1)),this._fsPath}toString(t=!1){return t?ti(this,!0):(this._formatted||(this._formatted=ti(this,!1)),this._formatted)}toJSON(){const t={$mid:1};return this._fsPath&&(t.fsPath=this._fsPath,t._sep=Zs),this._formatted&&(t.external=this._formatted),this.path&&(t.path=this.path),this.scheme&&(t.scheme=this.scheme),this.authority&&(t.authority=this.authority),this.query&&(t.query=this.query),this.fragment&&(t.fragment=this.fragment),t}}const ea={58:"%3A",47:"%2F",63:"%3F",35:"%23",91:"%5B",93:"%5D",64:"%40",33:"%21",36:"%24",38:"%26",39:"%27",40:"%28",41:"%29",42:"%2A",43:"%2B",44:"%2C",59:"%3B",61:"%3D",32:"%20"};function ta(e,t,n){let r,i=-1;for(let s=0;s<e.length;s++){const a=e.charCodeAt(s);if(a>=97&&a<=122||a>=65&&a<=90||a>=48&&a<=57||a===45||a===46||a===95||a===126||t&&a===47||n&&a===91||n&&a===93||n&&a===58)i!==-1&&(r+=encodeURIComponent(e.substring(i,s)),i=-1),r!==void 0&&(r+=e.charAt(s));else{r===void 0&&(r=e.substr(0,s));const l=ea[a];l!==void 0?(i!==-1&&(r+=encodeURIComponent(e.substring(i,s)),i=-1),r+=l):i===-1&&(i=s)}}return i!==-1&&(r+=encodeURIComponent(e.substring(i))),r!==void 0?r:e}function md(e){let t;for(let n=0;n<e.length;n++){const r=e.charCodeAt(n);r===35||r===63?(t===void 0&&(t=e.substr(0,n)),t+=ea[r]):t!==void 0&&(t+=e[n])}return t!==void 0?t:e}function ei(e,t){let n;return e.authority&&e.path.length>1&&e.scheme==="file"?n=\`//\${e.authority}\${e.path}\`:e.path.charCodeAt(0)===47&&(e.path.charCodeAt(1)>=65&&e.path.charCodeAt(1)<=90||e.path.charCodeAt(1)>=97&&e.path.charCodeAt(1)<=122)&&e.path.charCodeAt(2)===58?t?n=e.path.substr(1):n=e.path[1].toLowerCase()+e.path.substr(2):n=e.path,ln&&(n=n.replace(/\\//g,"\\\\")),n}function ti(e,t){const n=t?md:ta;let r="",{scheme:i,authority:s,path:a,query:l,fragment:o}=e;if(i&&(r+=i,r+=":"),(s||i==="file")&&(r+=Pe,r+=Pe),s){let c=s.indexOf("@");if(c!==-1){const d=s.substr(0,c);s=s.substr(c+1),c=d.lastIndexOf(":"),c===-1?r+=n(d,!1,!1):(r+=n(d.substr(0,c),!1,!1),r+=":",r+=n(d.substr(c+1),!1,!0)),r+="@"}s=s.toLowerCase(),c=s.lastIndexOf(":"),c===-1?r+=n(s,!1,!0):(r+=n(s.substr(0,c),!1,!0),r+=s.substr(c))}if(a){if(a.length>=3&&a.charCodeAt(0)===47&&a.charCodeAt(2)===58){const c=a.charCodeAt(1);c>=65&&c<=90&&(a=\`/\${String.fromCharCode(c+32)}:\${a.substr(3)}\`)}else if(a.length>=2&&a.charCodeAt(1)===58){const c=a.charCodeAt(0);c>=65&&c<=90&&(a=\`\${String.fromCharCode(c+32)}:\${a.substr(2)}\`)}r+=n(a,!0,!1)}return l&&(r+="?",r+=n(l,!1,!1)),o&&(r+="#",r+=t?o:ta(o,!1,!1)),r}function na(e){try{return decodeURIComponent(e)}catch{return e.length>3?e.substr(0,3)+na(e.substr(3)):e}}const ra=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function Hn(e){return e.match(ra)?e.replace(ra,t=>na(t)):e}var pt;(function(e){e.inMemory="inmemory",e.vscode="vscode",e.internal="private",e.walkThrough="walkThrough",e.walkThroughSnippet="walkThroughSnippet",e.http="http",e.https="https",e.file="file",e.mailto="mailto",e.untitled="untitled",e.data="data",e.command="command",e.vscodeRemote="vscode-remote",e.vscodeRemoteResource="vscode-remote-resource",e.vscodeManagedRemoteResource="vscode-managed-remote-resource",e.vscodeUserData="vscode-userdata",e.vscodeCustomEditor="vscode-custom-editor",e.vscodeNotebookCell="vscode-notebook-cell",e.vscodeNotebookCellMetadata="vscode-notebook-cell-metadata",e.vscodeNotebookCellMetadataDiff="vscode-notebook-cell-metadata-diff",e.vscodeNotebookCellOutput="vscode-notebook-cell-output",e.vscodeNotebookCellOutputDiff="vscode-notebook-cell-output-diff",e.vscodeNotebookMetadata="vscode-notebook-metadata",e.vscodeInteractiveInput="vscode-interactive-input",e.vscodeSettings="vscode-settings",e.vscodeWorkspaceTrust="vscode-workspace-trust",e.vscodeTerminal="vscode-terminal",e.vscodeChatCodeBlock="vscode-chat-code-block",e.vscodeChatCodeCompareBlock="vscode-chat-code-compare-block",e.vscodeChatSesssion="vscode-chat-editor",e.webviewPanel="webview-panel",e.vscodeWebview="vscode-webview",e.extension="extension",e.vscodeFileResource="vscode-file",e.tmp="tmp",e.vsls="vsls",e.vscodeSourceControl="vscode-scm",e.commentsInput="comment",e.codeSetting="code-setting",e.outputChannel="output"})(pt||(pt={}));const fd="tkn";class gd{constructor(){this._hosts=Object.create(null),this._ports=Object.create(null),this._connectionTokens=Object.create(null),this._preferredWebSchema="http",this._delegate=null,this._serverRootPath="/"}setPreferredWebSchema(t){this._preferredWebSchema=t}get _remoteResourcesPath(){return we.join(this._serverRootPath,pt.vscodeRemoteResource)}rewrite(t){if(this._delegate)try{return this._delegate(t)}catch(l){return We(l),t}const n=t.authority;let r=this._hosts[n];r&&r.indexOf(":")!==-1&&r.indexOf("[")===-1&&(r=\`[\${r}]\`);const i=this._ports[n],s=this._connectionTokens[n];let a=\`path=\${encodeURIComponent(t.path)}\`;return typeof s=="string"&&(a+=\`&\${fd}=\${encodeURIComponent(s)}\`),Ve.from({scheme:Th?this._preferredWebSchema:pt.vscodeRemoteResource,authority:\`\${r}:\${i}\`,path:this._remoteResourcesPath,query:a})}}const bd=new gd,vd="vscode-app",zn=class zn{asBrowserUri(t){const n=this.toUri(t);return this.uriToBrowserUri(n)}uriToBrowserUri(t){return t.scheme===pt.vscodeRemote?bd.rewrite(t):t.scheme===pt.file&&(Ph||Oh===\`\${pt.vscodeFileResource}://\${zn.FALLBACK_AUTHORITY}\`)?t.with({scheme:pt.vscodeFileResource,authority:t.authority||zn.FALLBACK_AUTHORITY,query:null,fragment:null}):t}toUri(t,n){if(Ve.isUri(t))return t;if(globalThis._VSCODE_FILE_ROOT){const r=globalThis._VSCODE_FILE_ROOT;if(/^\\w[\\w\\d+.-]*:\\/\\//.test(r))return Ve.joinPath(Ve.parse(r,!0),t);const i=ad(r,t);return Ve.file(i)}return Ve.parse(n.toUrl(t))}};zn.FALLBACK_AUTHORITY=vd;let ni=zn;const ia=new ni;var sa;(function(e){const t=new Map([["1",{"Cross-Origin-Opener-Policy":"same-origin"}],["2",{"Cross-Origin-Embedder-Policy":"require-corp"}],["3",{"Cross-Origin-Opener-Policy":"same-origin","Cross-Origin-Embedder-Policy":"require-corp"}]]);e.CoopAndCoep=Object.freeze(t.get("3"));const n="vscode-coi";function r(s){let a;typeof s=="string"?a=new URL(s).searchParams:s instanceof URL?a=s.searchParams:Ve.isUri(s)&&(a=new URL(s.toString(!0)).searchParams);const l=a?.get(n);if(l)return t.get(l)}e.getHeadersFromQuery=r;function i(s,a,l){if(!globalThis.crossOriginIsolated)return;const o=a&&l?"3":l?"2":"1";s instanceof URLSearchParams?s.set(n,o):s[n]=o}e.addSearchParam=i})(sa||(sa={}));const ri="default",wd="$initialize";class yd{constructor(t,n,r,i,s){this.vsWorker=t,this.req=n,this.channel=r,this.method=i,this.args=s,this.type=0}}class aa{constructor(t,n,r,i){this.vsWorker=t,this.seq=n,this.res=r,this.err=i,this.type=1}}class xd{constructor(t,n,r,i,s){this.vsWorker=t,this.req=n,this.channel=r,this.eventName=i,this.arg=s,this.type=2}}class Sd{constructor(t,n,r){this.vsWorker=t,this.req=n,this.event=r,this.type=3}}class Cd{constructor(t,n){this.vsWorker=t,this.req=n,this.type=4}}class _d{constructor(t){this._workerId=-1,this._handler=t,this._lastSentReq=0,this._pendingReplies=Object.create(null),this._pendingEmitters=new Map,this._pendingEvents=new Map}setWorkerId(t){this._workerId=t}sendMessage(t,n,r){const i=String(++this._lastSentReq);return new Promise((s,a)=>{this._pendingReplies[i]={resolve:s,reject:a},this._send(new yd(this._workerId,i,t,n,r))})}listen(t,n,r){let i=null;const s=new De({onWillAddFirstListener:()=>{i=String(++this._lastSentReq),this._pendingEmitters.set(i,s),this._send(new xd(this._workerId,i,t,n,r))},onDidRemoveLastListener:()=>{this._pendingEmitters.delete(i),this._send(new Cd(this._workerId,i)),i=null}});return s.event}handleMessage(t){!t||!t.vsWorker||this._workerId!==-1&&t.vsWorker!==this._workerId||this._handleMessage(t)}createProxyToRemoteChannel(t,n){const r={get:(i,s)=>(typeof s=="string"&&!i[s]&&(la(s)?i[s]=a=>this.listen(t,s,a):oa(s)?i[s]=this.listen(t,s,void 0):s.charCodeAt(0)===36&&(i[s]=async(...a)=>(await n?.(),this.sendMessage(t,s,a)))),i[s])};return new Proxy(Object.create(null),r)}_handleMessage(t){switch(t.type){case 1:return this._handleReplyMessage(t);case 0:return this._handleRequestMessage(t);case 2:return this._handleSubscribeEventMessage(t);case 3:return this._handleEventMessage(t);case 4:return this._handleUnsubscribeEventMessage(t)}}_handleReplyMessage(t){if(!this._pendingReplies[t.seq]){console.warn("Got reply to unknown seq");return}const n=this._pendingReplies[t.seq];if(delete this._pendingReplies[t.seq],t.err){let r=t.err;t.err.$isError&&(r=new Error,r.name=t.err.name,r.message=t.err.message,r.stack=t.err.stack),n.reject(r);return}n.resolve(t.res)}_handleRequestMessage(t){const n=t.req;this._handler.handleMessage(t.channel,t.method,t.args).then(i=>{this._send(new aa(this._workerId,n,i,void 0))},i=>{i.detail instanceof Error&&(i.detail=Vs(i.detail)),this._send(new aa(this._workerId,n,void 0,Vs(i)))})}_handleSubscribeEventMessage(t){const n=t.req,r=this._handler.handleEvent(t.channel,t.eventName,t.arg)(i=>{this._send(new Sd(this._workerId,n,i))});this._pendingEvents.set(n,r)}_handleEventMessage(t){if(!this._pendingEmitters.has(t.req)){console.warn("Got event for unknown req");return}this._pendingEmitters.get(t.req).fire(t.event)}_handleUnsubscribeEventMessage(t){if(!this._pendingEvents.has(t.req)){console.warn("Got unsubscribe for unknown req");return}this._pendingEvents.get(t.req).dispose(),this._pendingEvents.delete(t.req)}_send(t){const n=[];if(t.type===0)for(let r=0;r<t.args.length;r++)t.args[r]instanceof ArrayBuffer&&n.push(t.args[r]);else t.type===1&&t.res instanceof ArrayBuffer&&n.push(t.res);this._handler.sendMessage(t,n)}}function oa(e){return e[0]==="o"&&e[1]==="n"&&Js(e.charCodeAt(2))}function la(e){return/^onDynamic/.test(e)&&Js(e.charCodeAt(9))}class kd{constructor(t,n){this._localChannels=new Map,this._remoteChannels=new Map,this._requestHandlerFactory=n,this._requestHandler=null,this._protocol=new _d({sendMessage:(r,i)=>{t(r,i)},handleMessage:(r,i,s)=>this._handleMessage(r,i,s),handleEvent:(r,i,s)=>this._handleEvent(r,i,s)})}onmessage(t){this._protocol.handleMessage(t)}_handleMessage(t,n,r){if(t===ri&&n===wd)return this.initialize(r[0],r[1],r[2]);const i=t===ri?this._requestHandler:this._localChannels.get(t);if(!i)return Promise.reject(new Error(\`Missing channel \${t} on worker thread\`));if(typeof i[n]!="function")return Promise.reject(new Error(\`Missing method \${n} on worker thread channel \${t}\`));try{return Promise.resolve(i[n].apply(i,r))}catch(s){return Promise.reject(s)}}_handleEvent(t,n,r){const i=t===ri?this._requestHandler:this._localChannels.get(t);if(!i)throw new Error(\`Missing channel \${t} on worker thread\`);if(la(n)){const s=i[n].call(i,r);if(typeof s!="function")throw new Error(\`Missing dynamic event \${n} on request handler.\`);return s}if(oa(n)){const s=i[n];if(typeof s!="function")throw new Error(\`Missing event \${n} on request handler.\`);return s}throw new Error(\`Malformed event name \${n}\`)}getChannel(t){if(!this._remoteChannels.has(t)){const n=this._protocol.createProxyToRemoteChannel(t);this._remoteChannels.set(t,n)}return this._remoteChannels.get(t)}async initialize(t,n,r){if(this._protocol.setWorkerId(t),this._requestHandlerFactory){this._requestHandler=this._requestHandlerFactory(this);return}return n&&(typeof n.baseUrl<"u"&&delete n.baseUrl,typeof n.paths<"u"&&typeof n.paths.vs<"u"&&delete n.paths.vs,typeof n.trustedTypesPolicy<"u"&&delete n.trustedTypesPolicy,n.catchError=!0,globalThis.require.config(n)),import(\`\${ia.asBrowserUri(\`\${r}.js\`).toString(!0)}\`).then(s=>{if(this._requestHandler=s.create(this),!this._requestHandler)throw new Error("No RequestHandler!")})}}class mt{constructor(t,n,r,i){this.originalStart=t,this.originalLength=n,this.modifiedStart=r,this.modifiedLength=i}getOriginalEnd(){return this.originalStart+this.originalLength}getModifiedEnd(){return this.modifiedStart+this.modifiedLength}}function ca(e,t){return(t<<5)-t+e|0}function Ed(e,t){t=ca(149417,t);for(let n=0,r=e.length;n<r;n++)t=ca(e.charCodeAt(n),t);return t}function ii(e,t,n=32){const r=n-t,i=~((1<<r)-1);return(e<<t|(i&e)>>>r)>>>0}function ha(e,t=0,n=e.byteLength,r=0){for(let i=0;i<n;i++)e[t+i]=r}function Fd(e,t,n="0"){for(;e.length<t;)e=n+e;return e}function dn(e,t=32){return e instanceof ArrayBuffer?Array.from(new Uint8Array(e)).map(n=>n.toString(16).padStart(2,"0")).join(""):Fd((e>>>0).toString(16),t/4)}const Mr=class Mr{constructor(){this._h0=1732584193,this._h1=4023233417,this._h2=2562383102,this._h3=271733878,this._h4=3285377520,this._buff=new Uint8Array(67),this._buffDV=new DataView(this._buff.buffer),this._buffLen=0,this._totalLen=0,this._leftoverHighSurrogate=0,this._finished=!1}update(t){const n=t.length;if(n===0)return;const r=this._buff;let i=this._buffLen,s=this._leftoverHighSurrogate,a,l;for(s!==0?(a=s,l=-1,s=0):(a=t.charCodeAt(0),l=0);;){let o=a;if(Bn(a))if(l+1<n){const c=t.charCodeAt(l+1);Qr(c)?(l++,o=Xs(a,c)):o=65533}else{s=a;break}else Qr(a)&&(o=65533);if(i=this._push(r,i,o),l++,l<n)a=t.charCodeAt(l);else break}this._buffLen=i,this._leftoverHighSurrogate=s}_push(t,n,r){return r<128?t[n++]=r:r<2048?(t[n++]=192|(r&1984)>>>6,t[n++]=128|(r&63)>>>0):r<65536?(t[n++]=224|(r&61440)>>>12,t[n++]=128|(r&4032)>>>6,t[n++]=128|(r&63)>>>0):(t[n++]=240|(r&1835008)>>>18,t[n++]=128|(r&258048)>>>12,t[n++]=128|(r&4032)>>>6,t[n++]=128|(r&63)>>>0),n>=64&&(this._step(),n-=64,this._totalLen+=64,t[0]=t[64],t[1]=t[65],t[2]=t[66]),n}digest(){return this._finished||(this._finished=!0,this._leftoverHighSurrogate&&(this._leftoverHighSurrogate=0,this._buffLen=this._push(this._buff,this._buffLen,65533)),this._totalLen+=this._buffLen,this._wrapUp()),dn(this._h0)+dn(this._h1)+dn(this._h2)+dn(this._h3)+dn(this._h4)}_wrapUp(){this._buff[this._buffLen++]=128,ha(this._buff,this._buffLen),this._buffLen>56&&(this._step(),ha(this._buff));const t=8*this._totalLen;this._buffDV.setUint32(56,Math.floor(t/4294967296),!1),this._buffDV.setUint32(60,t%4294967296,!1),this._step()}_step(){const t=Mr._bigBlock32,n=this._buffDV;for(let u=0;u<64;u+=4)t.setUint32(u,n.getUint32(u,!1),!1);for(let u=64;u<320;u+=4)t.setUint32(u,ii(t.getUint32(u-12,!1)^t.getUint32(u-32,!1)^t.getUint32(u-56,!1)^t.getUint32(u-64,!1),1),!1);let r=this._h0,i=this._h1,s=this._h2,a=this._h3,l=this._h4,o,c,d;for(let u=0;u<80;u++)u<20?(o=i&s|~i&a,c=1518500249):u<40?(o=i^s^a,c=1859775393):u<60?(o=i&s|i&a|s&a,c=2400959708):(o=i^s^a,c=3395469782),d=ii(r,5)+o+l+c+t.getUint32(u*4,!1)&4294967295,l=a,a=s,s=ii(i,30),i=r,r=d;this._h0=this._h0+r&4294967295,this._h1=this._h1+i&4294967295,this._h2=this._h2+s&4294967295,this._h3=this._h3+a&4294967295,this._h4=this._h4+l&4294967295}};Mr._bigBlock32=new DataView(new ArrayBuffer(320));let da=Mr;class ua{constructor(t){this.source=t}getElements(){const t=this.source,n=new Int32Array(t.length);for(let r=0,i=t.length;r<i;r++)n[r]=t.charCodeAt(r);return n}}function Rd(e,t,n){return new ft(new ua(e),new ua(t)).ComputeDiff(n).changes}class Wt{static Assert(t,n){if(!t)throw new Error(n)}}class Ut{static Copy(t,n,r,i,s){for(let a=0;a<s;a++)r[i+a]=t[n+a]}static Copy2(t,n,r,i,s){for(let a=0;a<s;a++)r[i+a]=t[n+a]}}class pa{constructor(){this.m_changes=[],this.m_originalStart=1073741824,this.m_modifiedStart=1073741824,this.m_originalCount=0,this.m_modifiedCount=0}MarkNextChange(){(this.m_originalCount>0||this.m_modifiedCount>0)&&this.m_changes.push(new mt(this.m_originalStart,this.m_originalCount,this.m_modifiedStart,this.m_modifiedCount)),this.m_originalCount=0,this.m_modifiedCount=0,this.m_originalStart=1073741824,this.m_modifiedStart=1073741824}AddOriginalElement(t,n){this.m_originalStart=Math.min(this.m_originalStart,t),this.m_modifiedStart=Math.min(this.m_modifiedStart,n),this.m_originalCount++}AddModifiedElement(t,n){this.m_originalStart=Math.min(this.m_originalStart,t),this.m_modifiedStart=Math.min(this.m_modifiedStart,n),this.m_modifiedCount++}getChanges(){return(this.m_originalCount>0||this.m_modifiedCount>0)&&this.MarkNextChange(),this.m_changes}getReverseChanges(){return(this.m_originalCount>0||this.m_modifiedCount>0)&&this.MarkNextChange(),this.m_changes.reverse(),this.m_changes}}class ft{constructor(t,n,r=null){this.ContinueProcessingPredicate=r,this._originalSequence=t,this._modifiedSequence=n;const[i,s,a]=ft._getElements(t),[l,o,c]=ft._getElements(n);this._hasStrings=a&&c,this._originalStringElements=i,this._originalElementsOrHash=s,this._modifiedStringElements=l,this._modifiedElementsOrHash=o,this.m_forwardHistory=[],this.m_reverseHistory=[]}static _isStringArray(t){return t.length>0&&typeof t[0]=="string"}static _getElements(t){const n=t.getElements();if(ft._isStringArray(n)){const r=new Int32Array(n.length);for(let i=0,s=n.length;i<s;i++)r[i]=Ed(n[i],0);return[n,r,!0]}return n instanceof Int32Array?[[],n,!1]:[[],new Int32Array(n),!1]}ElementsAreEqual(t,n){return this._originalElementsOrHash[t]!==this._modifiedElementsOrHash[n]?!1:this._hasStrings?this._originalStringElements[t]===this._modifiedStringElements[n]:!0}ElementsAreStrictEqual(t,n){if(!this.ElementsAreEqual(t,n))return!1;const r=ft._getStrictElement(this._originalSequence,t),i=ft._getStrictElement(this._modifiedSequence,n);return r===i}static _getStrictElement(t,n){return typeof t.getStrictElement=="function"?t.getStrictElement(n):null}OriginalElementsAreEqual(t,n){return this._originalElementsOrHash[t]!==this._originalElementsOrHash[n]?!1:this._hasStrings?this._originalStringElements[t]===this._originalStringElements[n]:!0}ModifiedElementsAreEqual(t,n){return this._modifiedElementsOrHash[t]!==this._modifiedElementsOrHash[n]?!1:this._hasStrings?this._modifiedStringElements[t]===this._modifiedStringElements[n]:!0}ComputeDiff(t){return this._ComputeDiff(0,this._originalElementsOrHash.length-1,0,this._modifiedElementsOrHash.length-1,t)}_ComputeDiff(t,n,r,i,s){const a=[!1];let l=this.ComputeDiffRecursive(t,n,r,i,a);return s&&(l=this.PrettifyChanges(l)),{quitEarly:a[0],changes:l}}ComputeDiffRecursive(t,n,r,i,s){for(s[0]=!1;t<=n&&r<=i&&this.ElementsAreEqual(t,r);)t++,r++;for(;n>=t&&i>=r&&this.ElementsAreEqual(n,i);)n--,i--;if(t>n||r>i){let u;return r<=i?(Wt.Assert(t===n+1,"originalStart should only be one more than originalEnd"),u=[new mt(t,0,r,i-r+1)]):t<=n?(Wt.Assert(r===i+1,"modifiedStart should only be one more than modifiedEnd"),u=[new mt(t,n-t+1,r,0)]):(Wt.Assert(t===n+1,"originalStart should only be one more than originalEnd"),Wt.Assert(r===i+1,"modifiedStart should only be one more than modifiedEnd"),u=[]),u}const a=[0],l=[0],o=this.ComputeRecursionPoint(t,n,r,i,a,l,s),c=a[0],d=l[0];if(o!==null)return o;if(!s[0]){const u=this.ComputeDiffRecursive(t,c,r,d,s);let f=[];return s[0]?f=[new mt(c+1,n-(c+1)+1,d+1,i-(d+1)+1)]:f=this.ComputeDiffRecursive(c+1,n,d+1,i,s),this.ConcatenateChanges(u,f)}return[new mt(t,n-t+1,r,i-r+1)]}WALKTRACE(t,n,r,i,s,a,l,o,c,d,u,f,m,v,w,k,R,I){let N=null,E=null,F=new pa,M=n,T=r,P=m[0]-k[0]-i,j=-1073741824,ee=this.m_forwardHistory.length-1;do{const A=P+t;A===M||A<T&&c[A-1]<c[A+1]?(u=c[A+1],v=u-P-i,u<j&&F.MarkNextChange(),j=u,F.AddModifiedElement(u+1,v),P=A+1-t):(u=c[A-1]+1,v=u-P-i,u<j&&F.MarkNextChange(),j=u-1,F.AddOriginalElement(u,v+1),P=A-1-t),ee>=0&&(c=this.m_forwardHistory[ee],t=c[0],M=1,T=c.length-1)}while(--ee>=-1);if(N=F.getReverseChanges(),I[0]){let A=m[0]+1,_=k[0]+1;if(N!==null&&N.length>0){const C=N[N.length-1];A=Math.max(A,C.getOriginalEnd()),_=Math.max(_,C.getModifiedEnd())}E=[new mt(A,f-A+1,_,w-_+1)]}else{F=new pa,M=a,T=l,P=m[0]-k[0]-o,j=1073741824,ee=R?this.m_reverseHistory.length-1:this.m_reverseHistory.length-2;do{const A=P+s;A===M||A<T&&d[A-1]>=d[A+1]?(u=d[A+1]-1,v=u-P-o,u>j&&F.MarkNextChange(),j=u+1,F.AddOriginalElement(u+1,v+1),P=A+1-s):(u=d[A-1],v=u-P-o,u>j&&F.MarkNextChange(),j=u,F.AddModifiedElement(u+1,v+1),P=A-1-s),ee>=0&&(d=this.m_reverseHistory[ee],s=d[0],M=1,T=d.length-1)}while(--ee>=-1);E=F.getChanges()}return this.ConcatenateChanges(N,E)}ComputeRecursionPoint(t,n,r,i,s,a,l){let o=0,c=0,d=0,u=0,f=0,m=0;t--,r--,s[0]=0,a[0]=0,this.m_forwardHistory=[],this.m_reverseHistory=[];const v=n-t+(i-r),w=v+1,k=new Int32Array(w),R=new Int32Array(w),I=i-r,N=n-t,E=t-r,F=n-i,T=(N-I)%2===0;k[I]=t,R[N]=n,l[0]=!1;for(let P=1;P<=v/2+1;P++){let j=0,ee=0;d=this.ClipDiagonalBound(I-P,P,I,w),u=this.ClipDiagonalBound(I+P,P,I,w);for(let _=d;_<=u;_+=2){_===d||_<u&&k[_-1]<k[_+1]?o=k[_+1]:o=k[_-1]+1,c=o-(_-I)-E;const C=o;for(;o<n&&c<i&&this.ElementsAreEqual(o+1,c+1);)o++,c++;if(k[_]=o,o+c>j+ee&&(j=o,ee=c),!T&&Math.abs(_-N)<=P-1&&o>=R[_])return s[0]=o,a[0]=c,C<=R[_]&&P<=1448?this.WALKTRACE(I,d,u,E,N,f,m,F,k,R,o,n,s,c,i,a,T,l):null}const A=(j-t+(ee-r)-P)/2;if(this.ContinueProcessingPredicate!==null&&!this.ContinueProcessingPredicate(j,A))return l[0]=!0,s[0]=j,a[0]=ee,A>0&&P<=1448?this.WALKTRACE(I,d,u,E,N,f,m,F,k,R,o,n,s,c,i,a,T,l):(t++,r++,[new mt(t,n-t+1,r,i-r+1)]);f=this.ClipDiagonalBound(N-P,P,N,w),m=this.ClipDiagonalBound(N+P,P,N,w);for(let _=f;_<=m;_+=2){_===f||_<m&&R[_-1]>=R[_+1]?o=R[_+1]-1:o=R[_-1],c=o-(_-N)-F;const C=o;for(;o>t&&c>r&&this.ElementsAreEqual(o,c);)o--,c--;if(R[_]=o,T&&Math.abs(_-I)<=P&&o<=k[_])return s[0]=o,a[0]=c,C>=k[_]&&P<=1448?this.WALKTRACE(I,d,u,E,N,f,m,F,k,R,o,n,s,c,i,a,T,l):null}if(P<=1447){let _=new Int32Array(u-d+2);_[0]=I-d+1,Ut.Copy2(k,d,_,1,u-d+1),this.m_forwardHistory.push(_),_=new Int32Array(m-f+2),_[0]=N-f+1,Ut.Copy2(R,f,_,1,m-f+1),this.m_reverseHistory.push(_)}}return this.WALKTRACE(I,d,u,E,N,f,m,F,k,R,o,n,s,c,i,a,T,l)}PrettifyChanges(t){for(let n=0;n<t.length;n++){const r=t[n],i=n<t.length-1?t[n+1].originalStart:this._originalElementsOrHash.length,s=n<t.length-1?t[n+1].modifiedStart:this._modifiedElementsOrHash.length,a=r.originalLength>0,l=r.modifiedLength>0;for(;r.originalStart+r.originalLength<i&&r.modifiedStart+r.modifiedLength<s&&(!a||this.OriginalElementsAreEqual(r.originalStart,r.originalStart+r.originalLength))&&(!l||this.ModifiedElementsAreEqual(r.modifiedStart,r.modifiedStart+r.modifiedLength));){const c=this.ElementsAreStrictEqual(r.originalStart,r.modifiedStart);if(this.ElementsAreStrictEqual(r.originalStart+r.originalLength,r.modifiedStart+r.modifiedLength)&&!c)break;r.originalStart++,r.modifiedStart++}const o=[null];if(n<t.length-1&&this.ChangesOverlap(t[n],t[n+1],o)){t[n]=o[0],t.splice(n+1,1),n--;continue}}for(let n=t.length-1;n>=0;n--){const r=t[n];let i=0,s=0;if(n>0){const u=t[n-1];i=u.originalStart+u.originalLength,s=u.modifiedStart+u.modifiedLength}const a=r.originalLength>0,l=r.modifiedLength>0;let o=0,c=this._boundaryScore(r.originalStart,r.originalLength,r.modifiedStart,r.modifiedLength);for(let u=1;;u++){const f=r.originalStart-u,m=r.modifiedStart-u;if(f<i||m<s||a&&!this.OriginalElementsAreEqual(f,f+r.originalLength)||l&&!this.ModifiedElementsAreEqual(m,m+r.modifiedLength))break;const w=(f===i&&m===s?5:0)+this._boundaryScore(f,r.originalLength,m,r.modifiedLength);w>c&&(c=w,o=u)}r.originalStart-=o,r.modifiedStart-=o;const d=[null];if(n>0&&this.ChangesOverlap(t[n-1],t[n],d)){t[n-1]=d[0],t.splice(n,1),n++;continue}}if(this._hasStrings)for(let n=1,r=t.length;n<r;n++){const i=t[n-1],s=t[n],a=s.originalStart-i.originalStart-i.originalLength,l=i.originalStart,o=s.originalStart+s.originalLength,c=o-l,d=i.modifiedStart,u=s.modifiedStart+s.modifiedLength,f=u-d;if(a<5&&c<20&&f<20){const m=this._findBetterContiguousSequence(l,c,d,f,a);if(m){const[v,w]=m;(v!==i.originalStart+i.originalLength||w!==i.modifiedStart+i.modifiedLength)&&(i.originalLength=v-i.originalStart,i.modifiedLength=w-i.modifiedStart,s.originalStart=v+a,s.modifiedStart=w+a,s.originalLength=o-s.originalStart,s.modifiedLength=u-s.modifiedStart)}}}return t}_findBetterContiguousSequence(t,n,r,i,s){if(n<s||i<s)return null;const a=t+n-s+1,l=r+i-s+1;let o=0,c=0,d=0;for(let u=t;u<a;u++)for(let f=r;f<l;f++){const m=this._contiguousSequenceScore(u,f,s);m>0&&m>o&&(o=m,c=u,d=f)}return o>0?[c,d]:null}_contiguousSequenceScore(t,n,r){let i=0;for(let s=0;s<r;s++){if(!this.ElementsAreEqual(t+s,n+s))return 0;i+=this._originalStringElements[t+s].length}return i}_OriginalIsBoundary(t){return t<=0||t>=this._originalElementsOrHash.length-1?!0:this._hasStrings&&/^\\s*$/.test(this._originalStringElements[t])}_OriginalRegionIsBoundary(t,n){if(this._OriginalIsBoundary(t)||this._OriginalIsBoundary(t-1))return!0;if(n>0){const r=t+n;if(this._OriginalIsBoundary(r-1)||this._OriginalIsBoundary(r))return!0}return!1}_ModifiedIsBoundary(t){return t<=0||t>=this._modifiedElementsOrHash.length-1?!0:this._hasStrings&&/^\\s*$/.test(this._modifiedStringElements[t])}_ModifiedRegionIsBoundary(t,n){if(this._ModifiedIsBoundary(t)||this._ModifiedIsBoundary(t-1))return!0;if(n>0){const r=t+n;if(this._ModifiedIsBoundary(r-1)||this._ModifiedIsBoundary(r))return!0}return!1}_boundaryScore(t,n,r,i){const s=this._OriginalRegionIsBoundary(t,n)?1:0,a=this._ModifiedRegionIsBoundary(r,i)?1:0;return s+a}ConcatenateChanges(t,n){const r=[];if(t.length===0||n.length===0)return n.length>0?n:t;if(this.ChangesOverlap(t[t.length-1],n[0],r)){const i=new Array(t.length+n.length-1);return Ut.Copy(t,0,i,0,t.length-1),i[t.length-1]=r[0],Ut.Copy(n,1,i,t.length,n.length-1),i}else{const i=new Array(t.length+n.length);return Ut.Copy(t,0,i,0,t.length),Ut.Copy(n,0,i,t.length,n.length),i}}ChangesOverlap(t,n,r){if(Wt.Assert(t.originalStart<=n.originalStart,"Left change is not less than or equal to right change"),Wt.Assert(t.modifiedStart<=n.modifiedStart,"Left change is not less than or equal to right change"),t.originalStart+t.originalLength>=n.originalStart||t.modifiedStart+t.modifiedLength>=n.modifiedStart){const i=t.originalStart;let s=t.originalLength;const a=t.modifiedStart;let l=t.modifiedLength;return t.originalStart+t.originalLength>=n.originalStart&&(s=n.originalStart+n.originalLength-t.originalStart),t.modifiedStart+t.modifiedLength>=n.modifiedStart&&(l=n.modifiedStart+n.modifiedLength-t.modifiedStart),r[0]=new mt(i,s,a,l),!0}else return r[0]=null,!1}ClipDiagonalBound(t,n,r,i){if(t>=0&&t<i)return t;const s=r,a=i-r-1,l=n%2===0;if(t<0){const o=s%2===0;return l===o?0:1}else{const o=a%2===0;return l===o?i-1:i-2}}}let he=class Mt{constructor(t,n){this.lineNumber=t,this.column=n}with(t=this.lineNumber,n=this.column){return t===this.lineNumber&&n===this.column?this:new Mt(t,n)}delta(t=0,n=0){return this.with(this.lineNumber+t,this.column+n)}equals(t){return Mt.equals(this,t)}static equals(t,n){return!t&&!n?!0:!!t&&!!n&&t.lineNumber===n.lineNumber&&t.column===n.column}isBefore(t){return Mt.isBefore(this,t)}static isBefore(t,n){return t.lineNumber<n.lineNumber?!0:n.lineNumber<t.lineNumber?!1:t.column<n.column}isBeforeOrEqual(t){return Mt.isBeforeOrEqual(this,t)}static isBeforeOrEqual(t,n){return t.lineNumber<n.lineNumber?!0:n.lineNumber<t.lineNumber?!1:t.column<=n.column}static compare(t,n){const r=t.lineNumber|0,i=n.lineNumber|0;if(r===i){const s=t.column|0,a=n.column|0;return s-a}return r-i}clone(){return new Mt(this.lineNumber,this.column)}toString(){return"("+this.lineNumber+","+this.column+")"}static lift(t){return new Mt(t.lineNumber,t.column)}static isIPosition(t){return t&&typeof t.lineNumber=="number"&&typeof t.column=="number"}toJSON(){return{lineNumber:this.lineNumber,column:this.column}}},Q=class ue{constructor(t,n,r,i){t>r||t===r&&n>i?(this.startLineNumber=r,this.startColumn=i,this.endLineNumber=t,this.endColumn=n):(this.startLineNumber=t,this.startColumn=n,this.endLineNumber=r,this.endColumn=i)}isEmpty(){return ue.isEmpty(this)}static isEmpty(t){return t.startLineNumber===t.endLineNumber&&t.startColumn===t.endColumn}containsPosition(t){return ue.containsPosition(this,t)}static containsPosition(t,n){return!(n.lineNumber<t.startLineNumber||n.lineNumber>t.endLineNumber||n.lineNumber===t.startLineNumber&&n.column<t.startColumn||n.lineNumber===t.endLineNumber&&n.column>t.endColumn)}static strictContainsPosition(t,n){return!(n.lineNumber<t.startLineNumber||n.lineNumber>t.endLineNumber||n.lineNumber===t.startLineNumber&&n.column<=t.startColumn||n.lineNumber===t.endLineNumber&&n.column>=t.endColumn)}containsRange(t){return ue.containsRange(this,t)}static containsRange(t,n){return!(n.startLineNumber<t.startLineNumber||n.endLineNumber<t.startLineNumber||n.startLineNumber>t.endLineNumber||n.endLineNumber>t.endLineNumber||n.startLineNumber===t.startLineNumber&&n.startColumn<t.startColumn||n.endLineNumber===t.endLineNumber&&n.endColumn>t.endColumn)}strictContainsRange(t){return ue.strictContainsRange(this,t)}static strictContainsRange(t,n){return!(n.startLineNumber<t.startLineNumber||n.endLineNumber<t.startLineNumber||n.startLineNumber>t.endLineNumber||n.endLineNumber>t.endLineNumber||n.startLineNumber===t.startLineNumber&&n.startColumn<=t.startColumn||n.endLineNumber===t.endLineNumber&&n.endColumn>=t.endColumn)}plusRange(t){return ue.plusRange(this,t)}static plusRange(t,n){let r,i,s,a;return n.startLineNumber<t.startLineNumber?(r=n.startLineNumber,i=n.startColumn):n.startLineNumber===t.startLineNumber?(r=n.startLineNumber,i=Math.min(n.startColumn,t.startColumn)):(r=t.startLineNumber,i=t.startColumn),n.endLineNumber>t.endLineNumber?(s=n.endLineNumber,a=n.endColumn):n.endLineNumber===t.endLineNumber?(s=n.endLineNumber,a=Math.max(n.endColumn,t.endColumn)):(s=t.endLineNumber,a=t.endColumn),new ue(r,i,s,a)}intersectRanges(t){return ue.intersectRanges(this,t)}static intersectRanges(t,n){let r=t.startLineNumber,i=t.startColumn,s=t.endLineNumber,a=t.endColumn;const l=n.startLineNumber,o=n.startColumn,c=n.endLineNumber,d=n.endColumn;return r<l?(r=l,i=o):r===l&&(i=Math.max(i,o)),s>c?(s=c,a=d):s===c&&(a=Math.min(a,d)),r>s||r===s&&i>a?null:new ue(r,i,s,a)}equalsRange(t){return ue.equalsRange(this,t)}static equalsRange(t,n){return!t&&!n?!0:!!t&&!!n&&t.startLineNumber===n.startLineNumber&&t.startColumn===n.startColumn&&t.endLineNumber===n.endLineNumber&&t.endColumn===n.endColumn}getEndPosition(){return ue.getEndPosition(this)}static getEndPosition(t){return new he(t.endLineNumber,t.endColumn)}getStartPosition(){return ue.getStartPosition(this)}static getStartPosition(t){return new he(t.startLineNumber,t.startColumn)}toString(){return"["+this.startLineNumber+","+this.startColumn+" -> "+this.endLineNumber+","+this.endColumn+"]"}setEndPosition(t,n){return new ue(this.startLineNumber,this.startColumn,t,n)}setStartPosition(t,n){return new ue(t,n,this.endLineNumber,this.endColumn)}collapseToStart(){return ue.collapseToStart(this)}static collapseToStart(t){return new ue(t.startLineNumber,t.startColumn,t.startLineNumber,t.startColumn)}collapseToEnd(){return ue.collapseToEnd(this)}static collapseToEnd(t){return new ue(t.endLineNumber,t.endColumn,t.endLineNumber,t.endColumn)}delta(t){return new ue(this.startLineNumber+t,this.startColumn,this.endLineNumber+t,this.endColumn)}static fromPositions(t,n=t){return new ue(t.lineNumber,t.column,n.lineNumber,n.column)}static lift(t){return t?new ue(t.startLineNumber,t.startColumn,t.endLineNumber,t.endColumn):null}static isIRange(t){return t&&typeof t.startLineNumber=="number"&&typeof t.startColumn=="number"&&typeof t.endLineNumber=="number"&&typeof t.endColumn=="number"}static areIntersectingOrTouching(t,n){return!(t.endLineNumber<n.startLineNumber||t.endLineNumber===n.startLineNumber&&t.endColumn<n.startColumn||n.endLineNumber<t.startLineNumber||n.endLineNumber===t.startLineNumber&&n.endColumn<t.startColumn)}static areIntersecting(t,n){return!(t.endLineNumber<n.startLineNumber||t.endLineNumber===n.startLineNumber&&t.endColumn<=n.startColumn||n.endLineNumber<t.startLineNumber||n.endLineNumber===t.startLineNumber&&n.endColumn<=t.startColumn)}static compareRangesUsingStarts(t,n){if(t&&n){const s=t.startLineNumber|0,a=n.startLineNumber|0;if(s===a){const l=t.startColumn|0,o=n.startColumn|0;if(l===o){const c=t.endLineNumber|0,d=n.endLineNumber|0;if(c===d){const u=t.endColumn|0,f=n.endColumn|0;return u-f}return c-d}return l-o}return s-a}return(t?1:0)-(n?1:0)}static compareRangesUsingEnds(t,n){return t.endLineNumber===n.endLineNumber?t.endColumn===n.endColumn?t.startLineNumber===n.startLineNumber?t.startColumn-n.startColumn:t.startLineNumber-n.startLineNumber:t.endColumn-n.endColumn:t.endLineNumber-n.endLineNumber}static spansMultipleLines(t){return t.endLineNumber>t.startLineNumber}toJSON(){return this}};function ma(e){return e<0?0:e>255?255:e|0}function Vt(e){return e<0?0:e>4294967295?4294967295:e|0}class si{constructor(t){const n=ma(t);this._defaultValue=n,this._asciiMap=si._createAsciiMap(n),this._map=new Map}static _createAsciiMap(t){const n=new Uint8Array(256);return n.fill(t),n}set(t,n){const r=ma(n);t>=0&&t<256?this._asciiMap[t]=r:this._map.set(t,r)}get(t){return t>=0&&t<256?this._asciiMap[t]:this._map.get(t)||this._defaultValue}clear(){this._asciiMap.fill(this._defaultValue),this._map.clear()}}class Nd{constructor(t,n,r){const i=new Uint8Array(t*n);for(let s=0,a=t*n;s<a;s++)i[s]=r;this._data=i,this.rows=t,this.cols=n}get(t,n){return this._data[t*this.cols+n]}set(t,n,r){this._data[t*this.cols+n]=r}}class Dd{constructor(t){let n=0,r=0;for(let s=0,a=t.length;s<a;s++){const[l,o,c]=t[s];o>n&&(n=o),l>r&&(r=l),c>r&&(r=c)}n++,r++;const i=new Nd(r,n,0);for(let s=0,a=t.length;s<a;s++){const[l,o,c]=t[s];i.set(l,o,c)}this._states=i,this._maxCharCode=n}nextState(t,n){return n<0||n>=this._maxCharCode?0:this._states.get(t,n)}}let ai=null;function Id(){return ai===null&&(ai=new Dd([[1,104,2],[1,72,2],[1,102,6],[1,70,6],[2,116,3],[2,84,3],[3,116,4],[3,84,4],[4,112,5],[4,80,5],[5,115,9],[5,83,9],[5,58,10],[6,105,7],[6,73,7],[7,108,8],[7,76,8],[8,101,9],[8,69,9],[9,58,10],[10,47,11],[11,47,12]])),ai}let un=null;function Ad(){if(un===null){un=new si(0);const e=\` <>'"、。。、,.:;‘〈「『〔([{「」}])〕』」〉’`~…\`;for(let n=0;n<e.length;n++)un.set(e.charCodeAt(n),1);const t=".,;:";for(let n=0;n<t.length;n++)un.set(t.charCodeAt(n),2)}return un}class Gn{static _createLink(t,n,r,i,s){let a=s-1;do{const l=n.charCodeAt(a);if(t.get(l)!==2)break;a--}while(a>i);if(i>0){const l=n.charCodeAt(i-1),o=n.charCodeAt(a);(l===40&&o===41||l===91&&o===93||l===123&&o===125)&&a--}return{range:{startLineNumber:r,startColumn:i+1,endLineNumber:r,endColumn:a+2},url:n.substring(i,a+1)}}static computeLinks(t,n=Id()){const r=Ad(),i=[];for(let s=1,a=t.getLineCount();s<=a;s++){const l=t.getLineContent(s),o=l.length;let c=0,d=0,u=0,f=1,m=!1,v=!1,w=!1,k=!1;for(;c<o;){let R=!1;const I=l.charCodeAt(c);if(f===13){let N;switch(I){case 40:m=!0,N=0;break;case 41:N=m?0:1;break;case 91:w=!0,v=!0,N=0;break;case 93:w=!1,N=v?0:1;break;case 123:k=!0,N=0;break;case 125:N=k?0:1;break;case 39:case 34:case 96:u===I?N=1:u===39||u===34||u===96?N=0:N=1;break;case 42:N=u===42?1:0;break;case 124:N=u===124?1:0;break;case 32:N=w?0:1;break;default:N=r.get(I)}N===1&&(i.push(Gn._createLink(r,l,s,d,c)),R=!0)}else if(f===12){let N;I===91?(v=!0,N=0):N=r.get(I),N===1?R=!0:f=13}else f=n.nextState(f,I),f===0&&(R=!0);R&&(f=1,m=!1,v=!1,k=!1,d=c+1,u=I),c++}f===13&&i.push(Gn._createLink(r,l,s,d,o))}return i}}function Md(e){return!e||typeof e.getLineCount!="function"||typeof e.getLineContent!="function"?[]:Gn.computeLinks(e)}const Lr=class Lr{constructor(){this._defaultValueSet=[["true","false"],["True","False"],["Private","Public","Friend","ReadOnly","Partial","Protected","WriteOnly"],["public","protected","private"]]}navigateValueSet(t,n,r,i,s){if(t&&n){const a=this.doNavigateValueSet(n,s);if(a)return{range:t,value:a}}if(r&&i){const a=this.doNavigateValueSet(i,s);if(a)return{range:r,value:a}}return null}doNavigateValueSet(t,n){const r=this.numberReplace(t,n);return r!==null?r:this.textReplace(t,n)}numberReplace(t,n){const r=Math.pow(10,t.length-(t.lastIndexOf(".")+1));let i=Number(t);const s=parseFloat(t);return!isNaN(i)&&!isNaN(s)&&i===s?i===0&&!n?null:(i=Math.floor(i*r),i+=n?r:-r,String(i/r)):null}textReplace(t,n){return this.valueSetsReplace(this._defaultValueSet,t,n)}valueSetsReplace(t,n,r){let i=null;for(let s=0,a=t.length;i===null&&s<a;s++)i=this.valueSetReplace(t[s],n,r);return i}valueSetReplace(t,n,r){let i=t.indexOf(n);return i>=0?(i+=r?1:-1,i<0?i=t.length-1:i%=t.length,t[i]):null}};Lr.INSTANCE=new Lr;let oi=Lr;const fa=Object.freeze(function(e,t){const n=setTimeout(e.bind(t),0);return{dispose(){clearTimeout(n)}}});var Jn;(function(e){function t(n){return n===e.None||n===e.Cancelled||n instanceof Xn?!0:!n||typeof n!="object"?!1:typeof n.isCancellationRequested=="boolean"&&typeof n.onCancellationRequested=="function"}e.isCancellationToken=t,e.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:Vn.None}),e.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:fa})})(Jn||(Jn={}));class Xn{constructor(){this._isCancelled=!1,this._emitter=null}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?fa:(this._emitter||(this._emitter=new De),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=null)}}class Ld{constructor(t){this._token=void 0,this._parentListener=void 0,this._parentListener=t&&t.onCancellationRequested(this.cancel,this)}get token(){return this._token||(this._token=new Xn),this._token}cancel(){this._token?this._token instanceof Xn&&this._token.cancel():this._token=Jn.Cancelled}dispose(t=!1){t&&this.cancel(),this._parentListener?.dispose(),this._token?this._token instanceof Xn&&this._token.dispose():this._token=Jn.None}}class li{constructor(){this._keyCodeToStr=[],this._strToKeyCode=Object.create(null)}define(t,n){this._keyCodeToStr[t]=n,this._strToKeyCode[n.toLowerCase()]=t}keyCodeToStr(t){return this._keyCodeToStr[t]}strToKeyCode(t){return this._strToKeyCode[t.toLowerCase()]||0}}const Yn=new li,ci=new li,hi=new li,zd=new Array(230),Pd=Object.create(null),Td=Object.create(null);(function(){const e="",t=[[1,0,"None",0,"unknown",0,"VK_UNKNOWN",e,e],[1,1,"Hyper",0,e,0,e,e,e],[1,2,"Super",0,e,0,e,e,e],[1,3,"Fn",0,e,0,e,e,e],[1,4,"FnLock",0,e,0,e,e,e],[1,5,"Suspend",0,e,0,e,e,e],[1,6,"Resume",0,e,0,e,e,e],[1,7,"Turbo",0,e,0,e,e,e],[1,8,"Sleep",0,e,0,"VK_SLEEP",e,e],[1,9,"WakeUp",0,e,0,e,e,e],[0,10,"KeyA",31,"A",65,"VK_A",e,e],[0,11,"KeyB",32,"B",66,"VK_B",e,e],[0,12,"KeyC",33,"C",67,"VK_C",e,e],[0,13,"KeyD",34,"D",68,"VK_D",e,e],[0,14,"KeyE",35,"E",69,"VK_E",e,e],[0,15,"KeyF",36,"F",70,"VK_F",e,e],[0,16,"KeyG",37,"G",71,"VK_G",e,e],[0,17,"KeyH",38,"H",72,"VK_H",e,e],[0,18,"KeyI",39,"I",73,"VK_I",e,e],[0,19,"KeyJ",40,"J",74,"VK_J",e,e],[0,20,"KeyK",41,"K",75,"VK_K",e,e],[0,21,"KeyL",42,"L",76,"VK_L",e,e],[0,22,"KeyM",43,"M",77,"VK_M",e,e],[0,23,"KeyN",44,"N",78,"VK_N",e,e],[0,24,"KeyO",45,"O",79,"VK_O",e,e],[0,25,"KeyP",46,"P",80,"VK_P",e,e],[0,26,"KeyQ",47,"Q",81,"VK_Q",e,e],[0,27,"KeyR",48,"R",82,"VK_R",e,e],[0,28,"KeyS",49,"S",83,"VK_S",e,e],[0,29,"KeyT",50,"T",84,"VK_T",e,e],[0,30,"KeyU",51,"U",85,"VK_U",e,e],[0,31,"KeyV",52,"V",86,"VK_V",e,e],[0,32,"KeyW",53,"W",87,"VK_W",e,e],[0,33,"KeyX",54,"X",88,"VK_X",e,e],[0,34,"KeyY",55,"Y",89,"VK_Y",e,e],[0,35,"KeyZ",56,"Z",90,"VK_Z",e,e],[0,36,"Digit1",22,"1",49,"VK_1",e,e],[0,37,"Digit2",23,"2",50,"VK_2",e,e],[0,38,"Digit3",24,"3",51,"VK_3",e,e],[0,39,"Digit4",25,"4",52,"VK_4",e,e],[0,40,"Digit5",26,"5",53,"VK_5",e,e],[0,41,"Digit6",27,"6",54,"VK_6",e,e],[0,42,"Digit7",28,"7",55,"VK_7",e,e],[0,43,"Digit8",29,"8",56,"VK_8",e,e],[0,44,"Digit9",30,"9",57,"VK_9",e,e],[0,45,"Digit0",21,"0",48,"VK_0",e,e],[1,46,"Enter",3,"Enter",13,"VK_RETURN",e,e],[1,47,"Escape",9,"Escape",27,"VK_ESCAPE",e,e],[1,48,"Backspace",1,"Backspace",8,"VK_BACK",e,e],[1,49,"Tab",2,"Tab",9,"VK_TAB",e,e],[1,50,"Space",10,"Space",32,"VK_SPACE",e,e],[0,51,"Minus",88,"-",189,"VK_OEM_MINUS","-","OEM_MINUS"],[0,52,"Equal",86,"=",187,"VK_OEM_PLUS","=","OEM_PLUS"],[0,53,"BracketLeft",92,"[",219,"VK_OEM_4","[","OEM_4"],[0,54,"BracketRight",94,"]",221,"VK_OEM_6","]","OEM_6"],[0,55,"Backslash",93,"\\\\",220,"VK_OEM_5","\\\\","OEM_5"],[0,56,"IntlHash",0,e,0,e,e,e],[0,57,"Semicolon",85,";",186,"VK_OEM_1",";","OEM_1"],[0,58,"Quote",95,"'",222,"VK_OEM_7","'","OEM_7"],[0,59,"Backquote",91,"\`",192,"VK_OEM_3","\`","OEM_3"],[0,60,"Comma",87,",",188,"VK_OEM_COMMA",",","OEM_COMMA"],[0,61,"Period",89,".",190,"VK_OEM_PERIOD",".","OEM_PERIOD"],[0,62,"Slash",90,"/",191,"VK_OEM_2","/","OEM_2"],[1,63,"CapsLock",8,"CapsLock",20,"VK_CAPITAL",e,e],[1,64,"F1",59,"F1",112,"VK_F1",e,e],[1,65,"F2",60,"F2",113,"VK_F2",e,e],[1,66,"F3",61,"F3",114,"VK_F3",e,e],[1,67,"F4",62,"F4",115,"VK_F4",e,e],[1,68,"F5",63,"F5",116,"VK_F5",e,e],[1,69,"F6",64,"F6",117,"VK_F6",e,e],[1,70,"F7",65,"F7",118,"VK_F7",e,e],[1,71,"F8",66,"F8",119,"VK_F8",e,e],[1,72,"F9",67,"F9",120,"VK_F9",e,e],[1,73,"F10",68,"F10",121,"VK_F10",e,e],[1,74,"F11",69,"F11",122,"VK_F11",e,e],[1,75,"F12",70,"F12",123,"VK_F12",e,e],[1,76,"PrintScreen",0,e,0,e,e,e],[1,77,"ScrollLock",84,"ScrollLock",145,"VK_SCROLL",e,e],[1,78,"Pause",7,"PauseBreak",19,"VK_PAUSE",e,e],[1,79,"Insert",19,"Insert",45,"VK_INSERT",e,e],[1,80,"Home",14,"Home",36,"VK_HOME",e,e],[1,81,"PageUp",11,"PageUp",33,"VK_PRIOR",e,e],[1,82,"Delete",20,"Delete",46,"VK_DELETE",e,e],[1,83,"End",13,"End",35,"VK_END",e,e],[1,84,"PageDown",12,"PageDown",34,"VK_NEXT",e,e],[1,85,"ArrowRight",17,"RightArrow",39,"VK_RIGHT","Right",e],[1,86,"ArrowLeft",15,"LeftArrow",37,"VK_LEFT","Left",e],[1,87,"ArrowDown",18,"DownArrow",40,"VK_DOWN","Down",e],[1,88,"ArrowUp",16,"UpArrow",38,"VK_UP","Up",e],[1,89,"NumLock",83,"NumLock",144,"VK_NUMLOCK",e,e],[1,90,"NumpadDivide",113,"NumPad_Divide",111,"VK_DIVIDE",e,e],[1,91,"NumpadMultiply",108,"NumPad_Multiply",106,"VK_MULTIPLY",e,e],[1,92,"NumpadSubtract",111,"NumPad_Subtract",109,"VK_SUBTRACT",e,e],[1,93,"NumpadAdd",109,"NumPad_Add",107,"VK_ADD",e,e],[1,94,"NumpadEnter",3,e,0,e,e,e],[1,95,"Numpad1",99,"NumPad1",97,"VK_NUMPAD1",e,e],[1,96,"Numpad2",100,"NumPad2",98,"VK_NUMPAD2",e,e],[1,97,"Numpad3",101,"NumPad3",99,"VK_NUMPAD3",e,e],[1,98,"Numpad4",102,"NumPad4",100,"VK_NUMPAD4",e,e],[1,99,"Numpad5",103,"NumPad5",101,"VK_NUMPAD5",e,e],[1,100,"Numpad6",104,"NumPad6",102,"VK_NUMPAD6",e,e],[1,101,"Numpad7",105,"NumPad7",103,"VK_NUMPAD7",e,e],[1,102,"Numpad8",106,"NumPad8",104,"VK_NUMPAD8",e,e],[1,103,"Numpad9",107,"NumPad9",105,"VK_NUMPAD9",e,e],[1,104,"Numpad0",98,"NumPad0",96,"VK_NUMPAD0",e,e],[1,105,"NumpadDecimal",112,"NumPad_Decimal",110,"VK_DECIMAL",e,e],[0,106,"IntlBackslash",97,"OEM_102",226,"VK_OEM_102",e,e],[1,107,"ContextMenu",58,"ContextMenu",93,e,e,e],[1,108,"Power",0,e,0,e,e,e],[1,109,"NumpadEqual",0,e,0,e,e,e],[1,110,"F13",71,"F13",124,"VK_F13",e,e],[1,111,"F14",72,"F14",125,"VK_F14",e,e],[1,112,"F15",73,"F15",126,"VK_F15",e,e],[1,113,"F16",74,"F16",127,"VK_F16",e,e],[1,114,"F17",75,"F17",128,"VK_F17",e,e],[1,115,"F18",76,"F18",129,"VK_F18",e,e],[1,116,"F19",77,"F19",130,"VK_F19",e,e],[1,117,"F20",78,"F20",131,"VK_F20",e,e],[1,118,"F21",79,"F21",132,"VK_F21",e,e],[1,119,"F22",80,"F22",133,"VK_F22",e,e],[1,120,"F23",81,"F23",134,"VK_F23",e,e],[1,121,"F24",82,"F24",135,"VK_F24",e,e],[1,122,"Open",0,e,0,e,e,e],[1,123,"Help",0,e,0,e,e,e],[1,124,"Select",0,e,0,e,e,e],[1,125,"Again",0,e,0,e,e,e],[1,126,"Undo",0,e,0,e,e,e],[1,127,"Cut",0,e,0,e,e,e],[1,128,"Copy",0,e,0,e,e,e],[1,129,"Paste",0,e,0,e,e,e],[1,130,"Find",0,e,0,e,e,e],[1,131,"AudioVolumeMute",117,"AudioVolumeMute",173,"VK_VOLUME_MUTE",e,e],[1,132,"AudioVolumeUp",118,"AudioVolumeUp",175,"VK_VOLUME_UP",e,e],[1,133,"AudioVolumeDown",119,"AudioVolumeDown",174,"VK_VOLUME_DOWN",e,e],[1,134,"NumpadComma",110,"NumPad_Separator",108,"VK_SEPARATOR",e,e],[0,135,"IntlRo",115,"ABNT_C1",193,"VK_ABNT_C1",e,e],[1,136,"KanaMode",0,e,0,e,e,e],[0,137,"IntlYen",0,e,0,e,e,e],[1,138,"Convert",0,e,0,e,e,e],[1,139,"NonConvert",0,e,0,e,e,e],[1,140,"Lang1",0,e,0,e,e,e],[1,141,"Lang2",0,e,0,e,e,e],[1,142,"Lang3",0,e,0,e,e,e],[1,143,"Lang4",0,e,0,e,e,e],[1,144,"Lang5",0,e,0,e,e,e],[1,145,"Abort",0,e,0,e,e,e],[1,146,"Props",0,e,0,e,e,e],[1,147,"NumpadParenLeft",0,e,0,e,e,e],[1,148,"NumpadParenRight",0,e,0,e,e,e],[1,149,"NumpadBackspace",0,e,0,e,e,e],[1,150,"NumpadMemoryStore",0,e,0,e,e,e],[1,151,"NumpadMemoryRecall",0,e,0,e,e,e],[1,152,"NumpadMemoryClear",0,e,0,e,e,e],[1,153,"NumpadMemoryAdd",0,e,0,e,e,e],[1,154,"NumpadMemorySubtract",0,e,0,e,e,e],[1,155,"NumpadClear",131,"Clear",12,"VK_CLEAR",e,e],[1,156,"NumpadClearEntry",0,e,0,e,e,e],[1,0,e,5,"Ctrl",17,"VK_CONTROL",e,e],[1,0,e,4,"Shift",16,"VK_SHIFT",e,e],[1,0,e,6,"Alt",18,"VK_MENU",e,e],[1,0,e,57,"Meta",91,"VK_COMMAND",e,e],[1,157,"ControlLeft",5,e,0,"VK_LCONTROL",e,e],[1,158,"ShiftLeft",4,e,0,"VK_LSHIFT",e,e],[1,159,"AltLeft",6,e,0,"VK_LMENU",e,e],[1,160,"MetaLeft",57,e,0,"VK_LWIN",e,e],[1,161,"ControlRight",5,e,0,"VK_RCONTROL",e,e],[1,162,"ShiftRight",4,e,0,"VK_RSHIFT",e,e],[1,163,"AltRight",6,e,0,"VK_RMENU",e,e],[1,164,"MetaRight",57,e,0,"VK_RWIN",e,e],[1,165,"BrightnessUp",0,e,0,e,e,e],[1,166,"BrightnessDown",0,e,0,e,e,e],[1,167,"MediaPlay",0,e,0,e,e,e],[1,168,"MediaRecord",0,e,0,e,e,e],[1,169,"MediaFastForward",0,e,0,e,e,e],[1,170,"MediaRewind",0,e,0,e,e,e],[1,171,"MediaTrackNext",124,"MediaTrackNext",176,"VK_MEDIA_NEXT_TRACK",e,e],[1,172,"MediaTrackPrevious",125,"MediaTrackPrevious",177,"VK_MEDIA_PREV_TRACK",e,e],[1,173,"MediaStop",126,"MediaStop",178,"VK_MEDIA_STOP",e,e],[1,174,"Eject",0,e,0,e,e,e],[1,175,"MediaPlayPause",127,"MediaPlayPause",179,"VK_MEDIA_PLAY_PAUSE",e,e],[1,176,"MediaSelect",128,"LaunchMediaPlayer",181,"VK_MEDIA_LAUNCH_MEDIA_SELECT",e,e],[1,177,"LaunchMail",129,"LaunchMail",180,"VK_MEDIA_LAUNCH_MAIL",e,e],[1,178,"LaunchApp2",130,"LaunchApp2",183,"VK_MEDIA_LAUNCH_APP2",e,e],[1,179,"LaunchApp1",0,e,0,"VK_MEDIA_LAUNCH_APP1",e,e],[1,180,"SelectTask",0,e,0,e,e,e],[1,181,"LaunchScreenSaver",0,e,0,e,e,e],[1,182,"BrowserSearch",120,"BrowserSearch",170,"VK_BROWSER_SEARCH",e,e],[1,183,"BrowserHome",121,"BrowserHome",172,"VK_BROWSER_HOME",e,e],[1,184,"BrowserBack",122,"BrowserBack",166,"VK_BROWSER_BACK",e,e],[1,185,"BrowserForward",123,"BrowserForward",167,"VK_BROWSER_FORWARD",e,e],[1,186,"BrowserStop",0,e,0,"VK_BROWSER_STOP",e,e],[1,187,"BrowserRefresh",0,e,0,"VK_BROWSER_REFRESH",e,e],[1,188,"BrowserFavorites",0,e,0,"VK_BROWSER_FAVORITES",e,e],[1,189,"ZoomToggle",0,e,0,e,e,e],[1,190,"MailReply",0,e,0,e,e,e],[1,191,"MailForward",0,e,0,e,e,e],[1,192,"MailSend",0,e,0,e,e,e],[1,0,e,114,"KeyInComposition",229,e,e,e],[1,0,e,116,"ABNT_C2",194,"VK_ABNT_C2",e,e],[1,0,e,96,"OEM_8",223,"VK_OEM_8",e,e],[1,0,e,0,e,0,"VK_KANA",e,e],[1,0,e,0,e,0,"VK_HANGUL",e,e],[1,0,e,0,e,0,"VK_JUNJA",e,e],[1,0,e,0,e,0,"VK_FINAL",e,e],[1,0,e,0,e,0,"VK_HANJA",e,e],[1,0,e,0,e,0,"VK_KANJI",e,e],[1,0,e,0,e,0,"VK_CONVERT",e,e],[1,0,e,0,e,0,"VK_NONCONVERT",e,e],[1,0,e,0,e,0,"VK_ACCEPT",e,e],[1,0,e,0,e,0,"VK_MODECHANGE",e,e],[1,0,e,0,e,0,"VK_SELECT",e,e],[1,0,e,0,e,0,"VK_PRINT",e,e],[1,0,e,0,e,0,"VK_EXECUTE",e,e],[1,0,e,0,e,0,"VK_SNAPSHOT",e,e],[1,0,e,0,e,0,"VK_HELP",e,e],[1,0,e,0,e,0,"VK_APPS",e,e],[1,0,e,0,e,0,"VK_PROCESSKEY",e,e],[1,0,e,0,e,0,"VK_PACKET",e,e],[1,0,e,0,e,0,"VK_DBE_SBCSCHAR",e,e],[1,0,e,0,e,0,"VK_DBE_DBCSCHAR",e,e],[1,0,e,0,e,0,"VK_ATTN",e,e],[1,0,e,0,e,0,"VK_CRSEL",e,e],[1,0,e,0,e,0,"VK_EXSEL",e,e],[1,0,e,0,e,0,"VK_EREOF",e,e],[1,0,e,0,e,0,"VK_PLAY",e,e],[1,0,e,0,e,0,"VK_ZOOM",e,e],[1,0,e,0,e,0,"VK_NONAME",e,e],[1,0,e,0,e,0,"VK_PA1",e,e],[1,0,e,0,e,0,"VK_OEM_CLEAR",e,e]],n=[],r=[];for(const i of t){const[s,a,l,o,c,d,u,f,m]=i;if(r[a]||(r[a]=!0,Pd[l]=a,Td[l.toLowerCase()]=a),!n[o]){if(n[o]=!0,!c)throw new Error(\`String representation missing for key code \${o} around scan code \${l}\`);Yn.define(o,c),ci.define(o,f||c),hi.define(o,m||f||c)}d&&(zd[d]=o)}})();var ga;(function(e){function t(l){return Yn.keyCodeToStr(l)}e.toString=t;function n(l){return Yn.strToKeyCode(l)}e.fromString=n;function r(l){return ci.keyCodeToStr(l)}e.toUserSettingsUS=r;function i(l){return hi.keyCodeToStr(l)}e.toUserSettingsGeneral=i;function s(l){return ci.strToKeyCode(l)||hi.strToKeyCode(l)}e.fromUserSettings=s;function a(l){if(l>=98&&l<=113)return null;switch(l){case 16:return"Up";case 18:return"Down";case 15:return"Left";case 17:return"Right"}return Yn.keyCodeToStr(l)}e.toElectronAccelerator=a})(ga||(ga={}));function Od(e,t){const n=(t&65535)<<16>>>0;return(e|n)>>>0}class Fe extends Q{constructor(t,n,r,i){super(t,n,r,i),this.selectionStartLineNumber=t,this.selectionStartColumn=n,this.positionLineNumber=r,this.positionColumn=i}toString(){return"["+this.selectionStartLineNumber+","+this.selectionStartColumn+" -> "+this.positionLineNumber+","+this.positionColumn+"]"}equalsSelection(t){return Fe.selectionsEqual(this,t)}static selectionsEqual(t,n){return t.selectionStartLineNumber===n.selectionStartLineNumber&&t.selectionStartColumn===n.selectionStartColumn&&t.positionLineNumber===n.positionLineNumber&&t.positionColumn===n.positionColumn}getDirection(){return this.selectionStartLineNumber===this.startLineNumber&&this.selectionStartColumn===this.startColumn?0:1}setEndPosition(t,n){return this.getDirection()===0?new Fe(this.startLineNumber,this.startColumn,t,n):new Fe(t,n,this.startLineNumber,this.startColumn)}getPosition(){return new he(this.positionLineNumber,this.positionColumn)}getSelectionStart(){return new he(this.selectionStartLineNumber,this.selectionStartColumn)}setStartPosition(t,n){return this.getDirection()===0?new Fe(t,n,this.endLineNumber,this.endColumn):new Fe(this.endLineNumber,this.endColumn,t,n)}static fromPositions(t,n=t){return new Fe(t.lineNumber,t.column,n.lineNumber,n.column)}static fromRange(t,n){return n===0?new Fe(t.startLineNumber,t.startColumn,t.endLineNumber,t.endColumn):new Fe(t.endLineNumber,t.endColumn,t.startLineNumber,t.startColumn)}static liftSelection(t){return new Fe(t.selectionStartLineNumber,t.selectionStartColumn,t.positionLineNumber,t.positionColumn)}static selectionsArrEqual(t,n){if(t&&!n||!t&&n)return!1;if(!t&&!n)return!0;if(t.length!==n.length)return!1;for(let r=0,i=t.length;r<i;r++)if(!this.selectionsEqual(t[r],n[r]))return!1;return!0}static isISelection(t){return t&&typeof t.selectionStartLineNumber=="number"&&typeof t.selectionStartColumn=="number"&&typeof t.positionLineNumber=="number"&&typeof t.positionColumn=="number"}static createWithDirection(t,n,r,i,s){return s===0?new Fe(t,n,r,i):new Fe(r,i,t,n)}}function Wd(e){return typeof e=="string"}const ba=Object.create(null);function h(e,t){if(Wd(t)){const n=ba[t];if(n===void 0)throw new Error(\`\${e} references an unknown codicon: \${t}\`);t=n}return ba[e]=t,{id:e}}const Ud={add:h("add",6e4),plus:h("plus",6e4),gistNew:h("gist-new",6e4),repoCreate:h("repo-create",6e4),lightbulb:h("lightbulb",60001),lightBulb:h("light-bulb",60001),repo:h("repo",60002),repoDelete:h("repo-delete",60002),gistFork:h("gist-fork",60003),repoForked:h("repo-forked",60003),gitPullRequest:h("git-pull-request",60004),gitPullRequestAbandoned:h("git-pull-request-abandoned",60004),recordKeys:h("record-keys",60005),keyboard:h("keyboard",60005),tag:h("tag",60006),gitPullRequestLabel:h("git-pull-request-label",60006),tagAdd:h("tag-add",60006),tagRemove:h("tag-remove",60006),person:h("person",60007),personFollow:h("person-follow",60007),personOutline:h("person-outline",60007),personFilled:h("person-filled",60007),gitBranch:h("git-branch",60008),gitBranchCreate:h("git-branch-create",60008),gitBranchDelete:h("git-branch-delete",60008),sourceControl:h("source-control",60008),mirror:h("mirror",60009),mirrorPublic:h("mirror-public",60009),star:h("star",60010),starAdd:h("star-add",60010),starDelete:h("star-delete",60010),starEmpty:h("star-empty",60010),comment:h("comment",60011),commentAdd:h("comment-add",60011),alert:h("alert",60012),warning:h("warning",60012),search:h("search",60013),searchSave:h("search-save",60013),logOut:h("log-out",60014),signOut:h("sign-out",60014),logIn:h("log-in",60015),signIn:h("sign-in",60015),eye:h("eye",60016),eyeUnwatch:h("eye-unwatch",60016),eyeWatch:h("eye-watch",60016),circleFilled:h("circle-filled",60017),primitiveDot:h("primitive-dot",60017),closeDirty:h("close-dirty",60017),debugBreakpoint:h("debug-breakpoint",60017),debugBreakpointDisabled:h("debug-breakpoint-disabled",60017),debugHint:h("debug-hint",60017),terminalDecorationSuccess:h("terminal-decoration-success",60017),primitiveSquare:h("primitive-square",60018),edit:h("edit",60019),pencil:h("pencil",60019),info:h("info",60020),issueOpened:h("issue-opened",60020),gistPrivate:h("gist-private",60021),gitForkPrivate:h("git-fork-private",60021),lock:h("lock",60021),mirrorPrivate:h("mirror-private",60021),close:h("close",60022),removeClose:h("remove-close",60022),x:h("x",60022),repoSync:h("repo-sync",60023),sync:h("sync",60023),clone:h("clone",60024),desktopDownload:h("desktop-download",60024),beaker:h("beaker",60025),microscope:h("microscope",60025),vm:h("vm",60026),deviceDesktop:h("device-desktop",60026),file:h("file",60027),fileText:h("file-text",60027),more:h("more",60028),ellipsis:h("ellipsis",60028),kebabHorizontal:h("kebab-horizontal",60028),mailReply:h("mail-reply",60029),reply:h("reply",60029),organization:h("organization",60030),organizationFilled:h("organization-filled",60030),organizationOutline:h("organization-outline",60030),newFile:h("new-file",60031),fileAdd:h("file-add",60031),newFolder:h("new-folder",60032),fileDirectoryCreate:h("file-directory-create",60032),trash:h("trash",60033),trashcan:h("trashcan",60033),history:h("history",60034),clock:h("clock",60034),folder:h("folder",60035),fileDirectory:h("file-directory",60035),symbolFolder:h("symbol-folder",60035),logoGithub:h("logo-github",60036),markGithub:h("mark-github",60036),github:h("github",60036),terminal:h("terminal",60037),console:h("console",60037),repl:h("repl",60037),zap:h("zap",60038),symbolEvent:h("symbol-event",60038),error:h("error",60039),stop:h("stop",60039),variable:h("variable",60040),symbolVariable:h("symbol-variable",60040),array:h("array",60042),symbolArray:h("symbol-array",60042),symbolModule:h("symbol-module",60043),symbolPackage:h("symbol-package",60043),symbolNamespace:h("symbol-namespace",60043),symbolObject:h("symbol-object",60043),symbolMethod:h("symbol-method",60044),symbolFunction:h("symbol-function",60044),symbolConstructor:h("symbol-constructor",60044),symbolBoolean:h("symbol-boolean",60047),symbolNull:h("symbol-null",60047),symbolNumeric:h("symbol-numeric",60048),symbolNumber:h("symbol-number",60048),symbolStructure:h("symbol-structure",60049),symbolStruct:h("symbol-struct",60049),symbolParameter:h("symbol-parameter",60050),symbolTypeParameter:h("symbol-type-parameter",60050),symbolKey:h("symbol-key",60051),symbolText:h("symbol-text",60051),symbolReference:h("symbol-reference",60052),goToFile:h("go-to-file",60052),symbolEnum:h("symbol-enum",60053),symbolValue:h("symbol-value",60053),symbolRuler:h("symbol-ruler",60054),symbolUnit:h("symbol-unit",60054),activateBreakpoints:h("activate-breakpoints",60055),archive:h("archive",60056),arrowBoth:h("arrow-both",60057),arrowDown:h("arrow-down",60058),arrowLeft:h("arrow-left",60059),arrowRight:h("arrow-right",60060),arrowSmallDown:h("arrow-small-down",60061),arrowSmallLeft:h("arrow-small-left",60062),arrowSmallRight:h("arrow-small-right",60063),arrowSmallUp:h("arrow-small-up",60064),arrowUp:h("arrow-up",60065),bell:h("bell",60066),bold:h("bold",60067),book:h("book",60068),bookmark:h("bookmark",60069),debugBreakpointConditionalUnverified:h("debug-breakpoint-conditional-unverified",60070),debugBreakpointConditional:h("debug-breakpoint-conditional",60071),debugBreakpointConditionalDisabled:h("debug-breakpoint-conditional-disabled",60071),debugBreakpointDataUnverified:h("debug-breakpoint-data-unverified",60072),debugBreakpointData:h("debug-breakpoint-data",60073),debugBreakpointDataDisabled:h("debug-breakpoint-data-disabled",60073),debugBreakpointLogUnverified:h("debug-breakpoint-log-unverified",60074),debugBreakpointLog:h("debug-breakpoint-log",60075),debugBreakpointLogDisabled:h("debug-breakpoint-log-disabled",60075),briefcase:h("briefcase",60076),broadcast:h("broadcast",60077),browser:h("browser",60078),bug:h("bug",60079),calendar:h("calendar",60080),caseSensitive:h("case-sensitive",60081),check:h("check",60082),checklist:h("checklist",60083),chevronDown:h("chevron-down",60084),chevronLeft:h("chevron-left",60085),chevronRight:h("chevron-right",60086),chevronUp:h("chevron-up",60087),chromeClose:h("chrome-close",60088),chromeMaximize:h("chrome-maximize",60089),chromeMinimize:h("chrome-minimize",60090),chromeRestore:h("chrome-restore",60091),circleOutline:h("circle-outline",60092),circle:h("circle",60092),debugBreakpointUnverified:h("debug-breakpoint-unverified",60092),terminalDecorationIncomplete:h("terminal-decoration-incomplete",60092),circleSlash:h("circle-slash",60093),circuitBoard:h("circuit-board",60094),clearAll:h("clear-all",60095),clippy:h("clippy",60096),closeAll:h("close-all",60097),cloudDownload:h("cloud-download",60098),cloudUpload:h("cloud-upload",60099),code:h("code",60100),collapseAll:h("collapse-all",60101),colorMode:h("color-mode",60102),commentDiscussion:h("comment-discussion",60103),creditCard:h("credit-card",60105),dash:h("dash",60108),dashboard:h("dashboard",60109),database:h("database",60110),debugContinue:h("debug-continue",60111),debugDisconnect:h("debug-disconnect",60112),debugPause:h("debug-pause",60113),debugRestart:h("debug-restart",60114),debugStart:h("debug-start",60115),debugStepInto:h("debug-step-into",60116),debugStepOut:h("debug-step-out",60117),debugStepOver:h("debug-step-over",60118),debugStop:h("debug-stop",60119),debug:h("debug",60120),deviceCameraVideo:h("device-camera-video",60121),deviceCamera:h("device-camera",60122),deviceMobile:h("device-mobile",60123),diffAdded:h("diff-added",60124),diffIgnored:h("diff-ignored",60125),diffModified:h("diff-modified",60126),diffRemoved:h("diff-removed",60127),diffRenamed:h("diff-renamed",60128),diff:h("diff",60129),diffSidebyside:h("diff-sidebyside",60129),discard:h("discard",60130),editorLayout:h("editor-layout",60131),emptyWindow:h("empty-window",60132),exclude:h("exclude",60133),extensions:h("extensions",60134),eyeClosed:h("eye-closed",60135),fileBinary:h("file-binary",60136),fileCode:h("file-code",60137),fileMedia:h("file-media",60138),filePdf:h("file-pdf",60139),fileSubmodule:h("file-submodule",60140),fileSymlinkDirectory:h("file-symlink-directory",60141),fileSymlinkFile:h("file-symlink-file",60142),fileZip:h("file-zip",60143),files:h("files",60144),filter:h("filter",60145),flame:h("flame",60146),foldDown:h("fold-down",60147),foldUp:h("fold-up",60148),fold:h("fold",60149),folderActive:h("folder-active",60150),folderOpened:h("folder-opened",60151),gear:h("gear",60152),gift:h("gift",60153),gistSecret:h("gist-secret",60154),gist:h("gist",60155),gitCommit:h("git-commit",60156),gitCompare:h("git-compare",60157),compareChanges:h("compare-changes",60157),gitMerge:h("git-merge",60158),githubAction:h("github-action",60159),githubAlt:h("github-alt",60160),globe:h("globe",60161),grabber:h("grabber",60162),graph:h("graph",60163),gripper:h("gripper",60164),heart:h("heart",60165),home:h("home",60166),horizontalRule:h("horizontal-rule",60167),hubot:h("hubot",60168),inbox:h("inbox",60169),issueReopened:h("issue-reopened",60171),issues:h("issues",60172),italic:h("italic",60173),jersey:h("jersey",60174),json:h("json",60175),kebabVertical:h("kebab-vertical",60176),key:h("key",60177),law:h("law",60178),lightbulbAutofix:h("lightbulb-autofix",60179),linkExternal:h("link-external",60180),link:h("link",60181),listOrdered:h("list-ordered",60182),listUnordered:h("list-unordered",60183),liveShare:h("live-share",60184),loading:h("loading",60185),location:h("location",60186),mailRead:h("mail-read",60187),mail:h("mail",60188),markdown:h("markdown",60189),megaphone:h("megaphone",60190),mention:h("mention",60191),milestone:h("milestone",60192),gitPullRequestMilestone:h("git-pull-request-milestone",60192),mortarBoard:h("mortar-board",60193),move:h("move",60194),multipleWindows:h("multiple-windows",60195),mute:h("mute",60196),noNewline:h("no-newline",60197),note:h("note",60198),octoface:h("octoface",60199),openPreview:h("open-preview",60200),package:h("package",60201),paintcan:h("paintcan",60202),pin:h("pin",60203),play:h("play",60204),run:h("run",60204),plug:h("plug",60205),preserveCase:h("preserve-case",60206),preview:h("preview",60207),project:h("project",60208),pulse:h("pulse",60209),question:h("question",60210),quote:h("quote",60211),radioTower:h("radio-tower",60212),reactions:h("reactions",60213),references:h("references",60214),refresh:h("refresh",60215),regex:h("regex",60216),remoteExplorer:h("remote-explorer",60217),remote:h("remote",60218),remove:h("remove",60219),replaceAll:h("replace-all",60220),replace:h("replace",60221),repoClone:h("repo-clone",60222),repoForcePush:h("repo-force-push",60223),repoPull:h("repo-pull",60224),repoPush:h("repo-push",60225),report:h("report",60226),requestChanges:h("request-changes",60227),rocket:h("rocket",60228),rootFolderOpened:h("root-folder-opened",60229),rootFolder:h("root-folder",60230),rss:h("rss",60231),ruby:h("ruby",60232),saveAll:h("save-all",60233),saveAs:h("save-as",60234),save:h("save",60235),screenFull:h("screen-full",60236),screenNormal:h("screen-normal",60237),searchStop:h("search-stop",60238),server:h("server",60240),settingsGear:h("settings-gear",60241),settings:h("settings",60242),shield:h("shield",60243),smiley:h("smiley",60244),sortPrecedence:h("sort-precedence",60245),splitHorizontal:h("split-horizontal",60246),splitVertical:h("split-vertical",60247),squirrel:h("squirrel",60248),starFull:h("star-full",60249),starHalf:h("star-half",60250),symbolClass:h("symbol-class",60251),symbolColor:h("symbol-color",60252),symbolConstant:h("symbol-constant",60253),symbolEnumMember:h("symbol-enum-member",60254),symbolField:h("symbol-field",60255),symbolFile:h("symbol-file",60256),symbolInterface:h("symbol-interface",60257),symbolKeyword:h("symbol-keyword",60258),symbolMisc:h("symbol-misc",60259),symbolOperator:h("symbol-operator",60260),symbolProperty:h("symbol-property",60261),wrench:h("wrench",60261),wrenchSubaction:h("wrench-subaction",60261),symbolSnippet:h("symbol-snippet",60262),tasklist:h("tasklist",60263),telescope:h("telescope",60264),textSize:h("text-size",60265),threeBars:h("three-bars",60266),thumbsdown:h("thumbsdown",60267),thumbsup:h("thumbsup",60268),tools:h("tools",60269),triangleDown:h("triangle-down",60270),triangleLeft:h("triangle-left",60271),triangleRight:h("triangle-right",60272),triangleUp:h("triangle-up",60273),twitter:h("twitter",60274),unfold:h("unfold",60275),unlock:h("unlock",60276),unmute:h("unmute",60277),unverified:h("unverified",60278),verified:h("verified",60279),versions:h("versions",60280),vmActive:h("vm-active",60281),vmOutline:h("vm-outline",60282),vmRunning:h("vm-running",60283),watch:h("watch",60284),whitespace:h("whitespace",60285),wholeWord:h("whole-word",60286),window:h("window",60287),wordWrap:h("word-wrap",60288),zoomIn:h("zoom-in",60289),zoomOut:h("zoom-out",60290),listFilter:h("list-filter",60291),listFlat:h("list-flat",60292),listSelection:h("list-selection",60293),selection:h("selection",60293),listTree:h("list-tree",60294),debugBreakpointFunctionUnverified:h("debug-breakpoint-function-unverified",60295),debugBreakpointFunction:h("debug-breakpoint-function",60296),debugBreakpointFunctionDisabled:h("debug-breakpoint-function-disabled",60296),debugStackframeActive:h("debug-stackframe-active",60297),circleSmallFilled:h("circle-small-filled",60298),debugStackframeDot:h("debug-stackframe-dot",60298),terminalDecorationMark:h("terminal-decoration-mark",60298),debugStackframe:h("debug-stackframe",60299),debugStackframeFocused:h("debug-stackframe-focused",60299),debugBreakpointUnsupported:h("debug-breakpoint-unsupported",60300),symbolString:h("symbol-string",60301),debugReverseContinue:h("debug-reverse-continue",60302),debugStepBack:h("debug-step-back",60303),debugRestartFrame:h("debug-restart-frame",60304),debugAlt:h("debug-alt",60305),callIncoming:h("call-incoming",60306),callOutgoing:h("call-outgoing",60307),menu:h("menu",60308),expandAll:h("expand-all",60309),feedback:h("feedback",60310),gitPullRequestReviewer:h("git-pull-request-reviewer",60310),groupByRefType:h("group-by-ref-type",60311),ungroupByRefType:h("ungroup-by-ref-type",60312),account:h("account",60313),gitPullRequestAssignee:h("git-pull-request-assignee",60313),bellDot:h("bell-dot",60314),debugConsole:h("debug-console",60315),library:h("library",60316),output:h("output",60317),runAll:h("run-all",60318),syncIgnored:h("sync-ignored",60319),pinned:h("pinned",60320),githubInverted:h("github-inverted",60321),serverProcess:h("server-process",60322),serverEnvironment:h("server-environment",60323),pass:h("pass",60324),issueClosed:h("issue-closed",60324),stopCircle:h("stop-circle",60325),playCircle:h("play-circle",60326),record:h("record",60327),debugAltSmall:h("debug-alt-small",60328),vmConnect:h("vm-connect",60329),cloud:h("cloud",60330),merge:h("merge",60331),export:h("export",60332),graphLeft:h("graph-left",60333),magnet:h("magnet",60334),notebook:h("notebook",60335),redo:h("redo",60336),checkAll:h("check-all",60337),pinnedDirty:h("pinned-dirty",60338),passFilled:h("pass-filled",60339),circleLargeFilled:h("circle-large-filled",60340),circleLarge:h("circle-large",60341),circleLargeOutline:h("circle-large-outline",60341),combine:h("combine",60342),gather:h("gather",60342),table:h("table",60343),variableGroup:h("variable-group",60344),typeHierarchy:h("type-hierarchy",60345),typeHierarchySub:h("type-hierarchy-sub",60346),typeHierarchySuper:h("type-hierarchy-super",60347),gitPullRequestCreate:h("git-pull-request-create",60348),runAbove:h("run-above",60349),runBelow:h("run-below",60350),notebookTemplate:h("notebook-template",60351),debugRerun:h("debug-rerun",60352),workspaceTrusted:h("workspace-trusted",60353),workspaceUntrusted:h("workspace-untrusted",60354),workspaceUnknown:h("workspace-unknown",60355),terminalCmd:h("terminal-cmd",60356),terminalDebian:h("terminal-debian",60357),terminalLinux:h("terminal-linux",60358),terminalPowershell:h("terminal-powershell",60359),terminalTmux:h("terminal-tmux",60360),terminalUbuntu:h("terminal-ubuntu",60361),terminalBash:h("terminal-bash",60362),arrowSwap:h("arrow-swap",60363),copy:h("copy",60364),personAdd:h("person-add",60365),filterFilled:h("filter-filled",60366),wand:h("wand",60367),debugLineByLine:h("debug-line-by-line",60368),inspect:h("inspect",60369),layers:h("layers",60370),layersDot:h("layers-dot",60371),layersActive:h("layers-active",60372),compass:h("compass",60373),compassDot:h("compass-dot",60374),compassActive:h("compass-active",60375),azure:h("azure",60376),issueDraft:h("issue-draft",60377),gitPullRequestClosed:h("git-pull-request-closed",60378),gitPullRequestDraft:h("git-pull-request-draft",60379),debugAll:h("debug-all",60380),debugCoverage:h("debug-coverage",60381),runErrors:h("run-errors",60382),folderLibrary:h("folder-library",60383),debugContinueSmall:h("debug-continue-small",60384),beakerStop:h("beaker-stop",60385),graphLine:h("graph-line",60386),graphScatter:h("graph-scatter",60387),pieChart:h("pie-chart",60388),bracket:h("bracket",60175),bracketDot:h("bracket-dot",60389),bracketError:h("bracket-error",60390),lockSmall:h("lock-small",60391),azureDevops:h("azure-devops",60392),verifiedFilled:h("verified-filled",60393),newline:h("newline",60394),layout:h("layout",60395),layoutActivitybarLeft:h("layout-activitybar-left",60396),layoutActivitybarRight:h("layout-activitybar-right",60397),layoutPanelLeft:h("layout-panel-left",60398),layoutPanelCenter:h("layout-panel-center",60399),layoutPanelJustify:h("layout-panel-justify",60400),layoutPanelRight:h("layout-panel-right",60401),layoutPanel:h("layout-panel",60402),layoutSidebarLeft:h("layout-sidebar-left",60403),layoutSidebarRight:h("layout-sidebar-right",60404),layoutStatusbar:h("layout-statusbar",60405),layoutMenubar:h("layout-menubar",60406),layoutCentered:h("layout-centered",60407),target:h("target",60408),indent:h("indent",60409),recordSmall:h("record-small",60410),errorSmall:h("error-small",60411),terminalDecorationError:h("terminal-decoration-error",60411),arrowCircleDown:h("arrow-circle-down",60412),arrowCircleLeft:h("arrow-circle-left",60413),arrowCircleRight:h("arrow-circle-right",60414),arrowCircleUp:h("arrow-circle-up",60415),layoutSidebarRightOff:h("layout-sidebar-right-off",60416),layoutPanelOff:h("layout-panel-off",60417),layoutSidebarLeftOff:h("layout-sidebar-left-off",60418),blank:h("blank",60419),heartFilled:h("heart-filled",60420),map:h("map",60421),mapHorizontal:h("map-horizontal",60421),foldHorizontal:h("fold-horizontal",60421),mapFilled:h("map-filled",60422),mapHorizontalFilled:h("map-horizontal-filled",60422),foldHorizontalFilled:h("fold-horizontal-filled",60422),circleSmall:h("circle-small",60423),bellSlash:h("bell-slash",60424),bellSlashDot:h("bell-slash-dot",60425),commentUnresolved:h("comment-unresolved",60426),gitPullRequestGoToChanges:h("git-pull-request-go-to-changes",60427),gitPullRequestNewChanges:h("git-pull-request-new-changes",60428),searchFuzzy:h("search-fuzzy",60429),commentDraft:h("comment-draft",60430),send:h("send",60431),sparkle:h("sparkle",60432),insert:h("insert",60433),mic:h("mic",60434),thumbsdownFilled:h("thumbsdown-filled",60435),thumbsupFilled:h("thumbsup-filled",60436),coffee:h("coffee",60437),snake:h("snake",60438),game:h("game",60439),vr:h("vr",60440),chip:h("chip",60441),piano:h("piano",60442),music:h("music",60443),micFilled:h("mic-filled",60444),repoFetch:h("repo-fetch",60445),copilot:h("copilot",60446),lightbulbSparkle:h("lightbulb-sparkle",60447),robot:h("robot",60448),sparkleFilled:h("sparkle-filled",60449),diffSingle:h("diff-single",60450),diffMultiple:h("diff-multiple",60451),surroundWith:h("surround-with",60452),share:h("share",60453),gitStash:h("git-stash",60454),gitStashApply:h("git-stash-apply",60455),gitStashPop:h("git-stash-pop",60456),vscode:h("vscode",60457),vscodeInsiders:h("vscode-insiders",60458),codeOss:h("code-oss",60459),runCoverage:h("run-coverage",60460),runAllCoverage:h("run-all-coverage",60461),coverage:h("coverage",60462),githubProject:h("github-project",60463),mapVertical:h("map-vertical",60464),foldVertical:h("fold-vertical",60464),mapVerticalFilled:h("map-vertical-filled",60465),foldVerticalFilled:h("fold-vertical-filled",60465),goToSearch:h("go-to-search",60466),percentage:h("percentage",60467),sortPercentage:h("sort-percentage",60467),attach:h("attach",60468)},Vd={dialogError:h("dialog-error","error"),dialogWarning:h("dialog-warning","warning"),dialogInfo:h("dialog-info","info"),dialogClose:h("dialog-close","close"),treeItemExpanded:h("tree-item-expanded","chevron-down"),treeFilterOnTypeOn:h("tree-filter-on-type-on","list-filter"),treeFilterOnTypeOff:h("tree-filter-on-type-off","list-selection"),treeFilterClear:h("tree-filter-clear","close"),treeItemLoading:h("tree-item-loading","loading"),menuSelection:h("menu-selection","check"),menuSubmenu:h("menu-submenu","chevron-right"),menuBarMore:h("menubar-more","more"),scrollbarButtonLeft:h("scrollbar-button-left","triangle-left"),scrollbarButtonRight:h("scrollbar-button-right","triangle-right"),scrollbarButtonUp:h("scrollbar-button-up","triangle-up"),scrollbarButtonDown:h("scrollbar-button-down","triangle-down"),toolBarMore:h("toolbar-more","more"),quickInputBack:h("quick-input-back","arrow-left"),dropDownButton:h("drop-down-button",60084),symbolCustomColor:h("symbol-customcolor",60252),exportIcon:h("export",60332),workspaceUnspecified:h("workspace-unspecified",60355),newLine:h("newline",60394),thumbsDownFilled:h("thumbsdown-filled",60435),thumbsUpFilled:h("thumbsup-filled",60436),gitFetch:h("git-fetch",60445),lightbulbSparkleAutofix:h("lightbulb-sparkle-autofix",60447),debugBreakpointPending:h("debug-breakpoint-pending",60377)},W={...Ud,...Vd};class va{constructor(){this._tokenizationSupports=new Map,this._factories=new Map,this._onDidChange=new De,this.onDidChange=this._onDidChange.event,this._colorMap=null}handleChange(t){this._onDidChange.fire({changedLanguages:t,changedColorMap:!1})}register(t,n){return this._tokenizationSupports.set(t,n),this.handleChange([t]),Wn(()=>{this._tokenizationSupports.get(t)===n&&(this._tokenizationSupports.delete(t),this.handleChange([t]))})}get(t){return this._tokenizationSupports.get(t)||null}registerFactory(t,n){this._factories.get(t)?.dispose();const r=new $d(this,t,n);return this._factories.set(t,r),Wn(()=>{const i=this._factories.get(t);!i||i!==r||(this._factories.delete(t),i.dispose())})}async getOrCreate(t){const n=this.get(t);if(n)return n;const r=this._factories.get(t);return!r||r.isResolved?null:(await r.resolve(),this.get(t))}isResolved(t){if(this.get(t))return!0;const r=this._factories.get(t);return!!(!r||r.isResolved)}setColorMap(t){this._colorMap=t,this._onDidChange.fire({changedLanguages:Array.from(this._tokenizationSupports.keys()),changedColorMap:!0})}getColorMap(){return this._colorMap}getDefaultBackground(){return this._colorMap&&this._colorMap.length>2?this._colorMap[2]:null}}class $d extends zt{get isResolved(){return this._isResolved}constructor(t,n,r){super(),this._registry=t,this._languageId=n,this._factory=r,this._isDisposed=!1,this._resolvePromise=null,this._isResolved=!1}dispose(){this._isDisposed=!0,super.dispose()}async resolve(){return this._resolvePromise||(this._resolvePromise=this._create()),this._resolvePromise}async _create(){const t=await this._factory.tokenizationSupport;this._isResolved=!0,t&&!this._isDisposed&&this._register(this._registry.register(this._languageId,t))}}class Bd{constructor(t,n,r){this.offset=t,this.type=n,this.language=r,this._tokenBrand=void 0}toString(){return"("+this.offset+", "+this.type+")"}}var wa;(function(e){e[e.Increase=0]="Increase",e[e.Decrease=1]="Decrease"})(wa||(wa={}));var ya;(function(e){const t=new Map;t.set(0,W.symbolMethod),t.set(1,W.symbolFunction),t.set(2,W.symbolConstructor),t.set(3,W.symbolField),t.set(4,W.symbolVariable),t.set(5,W.symbolClass),t.set(6,W.symbolStruct),t.set(7,W.symbolInterface),t.set(8,W.symbolModule),t.set(9,W.symbolProperty),t.set(10,W.symbolEvent),t.set(11,W.symbolOperator),t.set(12,W.symbolUnit),t.set(13,W.symbolValue),t.set(15,W.symbolEnum),t.set(14,W.symbolConstant),t.set(15,W.symbolEnum),t.set(16,W.symbolEnumMember),t.set(17,W.symbolKeyword),t.set(27,W.symbolSnippet),t.set(18,W.symbolText),t.set(19,W.symbolColor),t.set(20,W.symbolFile),t.set(21,W.symbolReference),t.set(22,W.symbolCustomColor),t.set(23,W.symbolFolder),t.set(24,W.symbolTypeParameter),t.set(25,W.account),t.set(26,W.issues);function n(s){let a=t.get(s);return a||(console.info("No codicon found for CompletionItemKind "+s),a=W.symbolProperty),a}e.toIcon=n;const r=new Map;r.set("method",0),r.set("function",1),r.set("constructor",2),r.set("field",3),r.set("variable",4),r.set("class",5),r.set("struct",6),r.set("interface",7),r.set("module",8),r.set("property",9),r.set("event",10),r.set("operator",11),r.set("unit",12),r.set("value",13),r.set("constant",14),r.set("enum",15),r.set("enum-member",16),r.set("enumMember",16),r.set("keyword",17),r.set("snippet",27),r.set("text",18),r.set("color",19),r.set("file",20),r.set("reference",21),r.set("customcolor",22),r.set("folder",23),r.set("type-parameter",24),r.set("typeParameter",24),r.set("account",25),r.set("issue",26);function i(s,a){let l=r.get(s);return typeof l>"u"&&!a&&(l=9),l}e.fromString=i})(ya||(ya={}));var xa;(function(e){e[e.Automatic=0]="Automatic",e[e.Explicit=1]="Explicit"})(xa||(xa={}));var Sa;(function(e){e[e.Automatic=0]="Automatic",e[e.PasteAs=1]="PasteAs"})(Sa||(Sa={}));var Ca;(function(e){e[e.Invoke=1]="Invoke",e[e.TriggerCharacter=2]="TriggerCharacter",e[e.ContentChange=3]="ContentChange"})(Ca||(Ca={}));var _a;(function(e){e[e.Text=0]="Text",e[e.Read=1]="Read",e[e.Write=2]="Write"})(_a||(_a={})),re("Array","array"),re("Boolean","boolean"),re("Class","class"),re("Constant","constant"),re("Constructor","constructor"),re("Enum","enumeration"),re("EnumMember","enumeration member"),re("Event","event"),re("Field","field"),re("File","file"),re("Function","function"),re("Interface","interface"),re("Key","key"),re("Method","method"),re("Module","module"),re("Namespace","namespace"),re("Null","null"),re("Number","number"),re("Object","object"),re("Operator","operator"),re("Package","package"),re("Property","property"),re("String","string"),re("Struct","struct"),re("TypeParameter","type parameter"),re("Variable","variable");var ka;(function(e){const t=new Map;t.set(0,W.symbolFile),t.set(1,W.symbolModule),t.set(2,W.symbolNamespace),t.set(3,W.symbolPackage),t.set(4,W.symbolClass),t.set(5,W.symbolMethod),t.set(6,W.symbolProperty),t.set(7,W.symbolField),t.set(8,W.symbolConstructor),t.set(9,W.symbolEnum),t.set(10,W.symbolInterface),t.set(11,W.symbolFunction),t.set(12,W.symbolVariable),t.set(13,W.symbolConstant),t.set(14,W.symbolString),t.set(15,W.symbolNumber),t.set(16,W.symbolBoolean),t.set(17,W.symbolArray),t.set(18,W.symbolObject),t.set(19,W.symbolKey),t.set(20,W.symbolNull),t.set(21,W.symbolEnumMember),t.set(22,W.symbolStruct),t.set(23,W.symbolEvent),t.set(24,W.symbolOperator),t.set(25,W.symbolTypeParameter);function n(r){let i=t.get(r);return i||(console.info("No codicon found for SymbolKind "+r),i=W.symbolProperty),i}e.toIcon=n})(ka||(ka={}));let qf=(Se=class{static fromValue(t){switch(t){case"comment":return Se.Comment;case"imports":return Se.Imports;case"region":return Se.Region}return new Se(t)}constructor(t){this.value=t}},Se.Comment=new Se("comment"),Se.Imports=new Se("imports"),Se.Region=new Se("region"),Se);var Ea;(function(e){e[e.AIGenerated=1]="AIGenerated"})(Ea||(Ea={}));var Fa;(function(e){e[e.Invoke=0]="Invoke",e[e.Automatic=1]="Automatic"})(Fa||(Fa={}));var Ra;(function(e){function t(n){return!n||typeof n!="object"?!1:typeof n.id=="string"&&typeof n.title=="string"}e.is=t})(Ra||(Ra={}));var Na;(function(e){e[e.Type=1]="Type",e[e.Parameter=2]="Parameter"})(Na||(Na={})),new va,new va;var Da;(function(e){e[e.Invoke=0]="Invoke",e[e.Automatic=1]="Automatic"})(Da||(Da={}));var Ia;(function(e){e[e.Unknown=0]="Unknown",e[e.Disabled=1]="Disabled",e[e.Enabled=2]="Enabled"})(Ia||(Ia={}));var Aa;(function(e){e[e.Invoke=1]="Invoke",e[e.Auto=2]="Auto"})(Aa||(Aa={}));var Ma;(function(e){e[e.None=0]="None",e[e.KeepWhitespace=1]="KeepWhitespace",e[e.InsertAsSnippet=4]="InsertAsSnippet"})(Ma||(Ma={}));var La;(function(e){e[e.Method=0]="Method",e[e.Function=1]="Function",e[e.Constructor=2]="Constructor",e[e.Field=3]="Field",e[e.Variable=4]="Variable",e[e.Class=5]="Class",e[e.Struct=6]="Struct",e[e.Interface=7]="Interface",e[e.Module=8]="Module",e[e.Property=9]="Property",e[e.Event=10]="Event",e[e.Operator=11]="Operator",e[e.Unit=12]="Unit",e[e.Value=13]="Value",e[e.Constant=14]="Constant",e[e.Enum=15]="Enum",e[e.EnumMember=16]="EnumMember",e[e.Keyword=17]="Keyword",e[e.Text=18]="Text",e[e.Color=19]="Color",e[e.File=20]="File",e[e.Reference=21]="Reference",e[e.Customcolor=22]="Customcolor",e[e.Folder=23]="Folder",e[e.TypeParameter=24]="TypeParameter",e[e.User=25]="User",e[e.Issue=26]="Issue",e[e.Snippet=27]="Snippet"})(La||(La={}));var za;(function(e){e[e.Deprecated=1]="Deprecated"})(za||(za={}));var Pa;(function(e){e[e.Invoke=0]="Invoke",e[e.TriggerCharacter=1]="TriggerCharacter",e[e.TriggerForIncompleteCompletions=2]="TriggerForIncompleteCompletions"})(Pa||(Pa={}));var Ta;(function(e){e[e.EXACT=0]="EXACT",e[e.ABOVE=1]="ABOVE",e[e.BELOW=2]="BELOW"})(Ta||(Ta={}));var Oa;(function(e){e[e.NotSet=0]="NotSet",e[e.ContentFlush=1]="ContentFlush",e[e.RecoverFromMarkers=2]="RecoverFromMarkers",e[e.Explicit=3]="Explicit",e[e.Paste=4]="Paste",e[e.Undo=5]="Undo",e[e.Redo=6]="Redo"})(Oa||(Oa={}));var Wa;(function(e){e[e.LF=1]="LF",e[e.CRLF=2]="CRLF"})(Wa||(Wa={}));var Ua;(function(e){e[e.Text=0]="Text",e[e.Read=1]="Read",e[e.Write=2]="Write"})(Ua||(Ua={}));var Va;(function(e){e[e.None=0]="None",e[e.Keep=1]="Keep",e[e.Brackets=2]="Brackets",e[e.Advanced=3]="Advanced",e[e.Full=4]="Full"})(Va||(Va={}));var $a;(function(e){e[e.acceptSuggestionOnCommitCharacter=0]="acceptSuggestionOnCommitCharacter",e[e.acceptSuggestionOnEnter=1]="acceptSuggestionOnEnter",e[e.accessibilitySupport=2]="accessibilitySupport",e[e.accessibilityPageSize=3]="accessibilityPageSize",e[e.ariaLabel=4]="ariaLabel",e[e.ariaRequired=5]="ariaRequired",e[e.autoClosingBrackets=6]="autoClosingBrackets",e[e.autoClosingComments=7]="autoClosingComments",e[e.screenReaderAnnounceInlineSuggestion=8]="screenReaderAnnounceInlineSuggestion",e[e.autoClosingDelete=9]="autoClosingDelete",e[e.autoClosingOvertype=10]="autoClosingOvertype",e[e.autoClosingQuotes=11]="autoClosingQuotes",e[e.autoIndent=12]="autoIndent",e[e.automaticLayout=13]="automaticLayout",e[e.autoSurround=14]="autoSurround",e[e.bracketPairColorization=15]="bracketPairColorization",e[e.guides=16]="guides",e[e.codeLens=17]="codeLens",e[e.codeLensFontFamily=18]="codeLensFontFamily",e[e.codeLensFontSize=19]="codeLensFontSize",e[e.colorDecorators=20]="colorDecorators",e[e.colorDecoratorsLimit=21]="colorDecoratorsLimit",e[e.columnSelection=22]="columnSelection",e[e.comments=23]="comments",e[e.contextmenu=24]="contextmenu",e[e.copyWithSyntaxHighlighting=25]="copyWithSyntaxHighlighting",e[e.cursorBlinking=26]="cursorBlinking",e[e.cursorSmoothCaretAnimation=27]="cursorSmoothCaretAnimation",e[e.cursorStyle=28]="cursorStyle",e[e.cursorSurroundingLines=29]="cursorSurroundingLines",e[e.cursorSurroundingLinesStyle=30]="cursorSurroundingLinesStyle",e[e.cursorWidth=31]="cursorWidth",e[e.disableLayerHinting=32]="disableLayerHinting",e[e.disableMonospaceOptimizations=33]="disableMonospaceOptimizations",e[e.domReadOnly=34]="domReadOnly",e[e.dragAndDrop=35]="dragAndDrop",e[e.dropIntoEditor=36]="dropIntoEditor",e[e.emptySelectionClipboard=37]="emptySelectionClipboard",e[e.experimentalWhitespaceRendering=38]="experimentalWhitespaceRendering",e[e.extraEditorClassName=39]="extraEditorClassName",e[e.fastScrollSensitivity=40]="fastScrollSensitivity",e[e.find=41]="find",e[e.fixedOverflowWidgets=42]="fixedOverflowWidgets",e[e.folding=43]="folding",e[e.foldingStrategy=44]="foldingStrategy",e[e.foldingHighlight=45]="foldingHighlight",e[e.foldingImportsByDefault=46]="foldingImportsByDefault",e[e.foldingMaximumRegions=47]="foldingMaximumRegions",e[e.unfoldOnClickAfterEndOfLine=48]="unfoldOnClickAfterEndOfLine",e[e.fontFamily=49]="fontFamily",e[e.fontInfo=50]="fontInfo",e[e.fontLigatures=51]="fontLigatures",e[e.fontSize=52]="fontSize",e[e.fontWeight=53]="fontWeight",e[e.fontVariations=54]="fontVariations",e[e.formatOnPaste=55]="formatOnPaste",e[e.formatOnType=56]="formatOnType",e[e.glyphMargin=57]="glyphMargin",e[e.gotoLocation=58]="gotoLocation",e[e.hideCursorInOverviewRuler=59]="hideCursorInOverviewRuler",e[e.hover=60]="hover",e[e.inDiffEditor=61]="inDiffEditor",e[e.inlineSuggest=62]="inlineSuggest",e[e.inlineEdit=63]="inlineEdit",e[e.letterSpacing=64]="letterSpacing",e[e.lightbulb=65]="lightbulb",e[e.lineDecorationsWidth=66]="lineDecorationsWidth",e[e.lineHeight=67]="lineHeight",e[e.lineNumbers=68]="lineNumbers",e[e.lineNumbersMinChars=69]="lineNumbersMinChars",e[e.linkedEditing=70]="linkedEditing",e[e.links=71]="links",e[e.matchBrackets=72]="matchBrackets",e[e.minimap=73]="minimap",e[e.mouseStyle=74]="mouseStyle",e[e.mouseWheelScrollSensitivity=75]="mouseWheelScrollSensitivity",e[e.mouseWheelZoom=76]="mouseWheelZoom",e[e.multiCursorMergeOverlapping=77]="multiCursorMergeOverlapping",e[e.multiCursorModifier=78]="multiCursorModifier",e[e.multiCursorPaste=79]="multiCursorPaste",e[e.multiCursorLimit=80]="multiCursorLimit",e[e.occurrencesHighlight=81]="occurrencesHighlight",e[e.overviewRulerBorder=82]="overviewRulerBorder",e[e.overviewRulerLanes=83]="overviewRulerLanes",e[e.padding=84]="padding",e[e.pasteAs=85]="pasteAs",e[e.parameterHints=86]="parameterHints",e[e.peekWidgetDefaultFocus=87]="peekWidgetDefaultFocus",e[e.placeholder=88]="placeholder",e[e.definitionLinkOpensInPeek=89]="definitionLinkOpensInPeek",e[e.quickSuggestions=90]="quickSuggestions",e[e.quickSuggestionsDelay=91]="quickSuggestionsDelay",e[e.readOnly=92]="readOnly",e[e.readOnlyMessage=93]="readOnlyMessage",e[e.renameOnType=94]="renameOnType",e[e.renderControlCharacters=95]="renderControlCharacters",e[e.renderFinalNewline=96]="renderFinalNewline",e[e.renderLineHighlight=97]="renderLineHighlight",e[e.renderLineHighlightOnlyWhenFocus=98]="renderLineHighlightOnlyWhenFocus",e[e.renderValidationDecorations=99]="renderValidationDecorations",e[e.renderWhitespace=100]="renderWhitespace",e[e.revealHorizontalRightPadding=101]="revealHorizontalRightPadding",e[e.roundedSelection=102]="roundedSelection",e[e.rulers=103]="rulers",e[e.scrollbar=104]="scrollbar",e[e.scrollBeyondLastColumn=105]="scrollBeyondLastColumn",e[e.scrollBeyondLastLine=106]="scrollBeyondLastLine",e[e.scrollPredominantAxis=107]="scrollPredominantAxis",e[e.selectionClipboard=108]="selectionClipboard",e[e.selectionHighlight=109]="selectionHighlight",e[e.selectOnLineNumbers=110]="selectOnLineNumbers",e[e.showFoldingControls=111]="showFoldingControls",e[e.showUnused=112]="showUnused",e[e.snippetSuggestions=113]="snippetSuggestions",e[e.smartSelect=114]="smartSelect",e[e.smoothScrolling=115]="smoothScrolling",e[e.stickyScroll=116]="stickyScroll",e[e.stickyTabStops=117]="stickyTabStops",e[e.stopRenderingLineAfter=118]="stopRenderingLineAfter",e[e.suggest=119]="suggest",e[e.suggestFontSize=120]="suggestFontSize",e[e.suggestLineHeight=121]="suggestLineHeight",e[e.suggestOnTriggerCharacters=122]="suggestOnTriggerCharacters",e[e.suggestSelection=123]="suggestSelection",e[e.tabCompletion=124]="tabCompletion",e[e.tabIndex=125]="tabIndex",e[e.unicodeHighlighting=126]="unicodeHighlighting",e[e.unusualLineTerminators=127]="unusualLineTerminators",e[e.useShadowDOM=128]="useShadowDOM",e[e.useTabStops=129]="useTabStops",e[e.wordBreak=130]="wordBreak",e[e.wordSegmenterLocales=131]="wordSegmenterLocales",e[e.wordSeparators=132]="wordSeparators",e[e.wordWrap=133]="wordWrap",e[e.wordWrapBreakAfterCharacters=134]="wordWrapBreakAfterCharacters",e[e.wordWrapBreakBeforeCharacters=135]="wordWrapBreakBeforeCharacters",e[e.wordWrapColumn=136]="wordWrapColumn",e[e.wordWrapOverride1=137]="wordWrapOverride1",e[e.wordWrapOverride2=138]="wordWrapOverride2",e[e.wrappingIndent=139]="wrappingIndent",e[e.wrappingStrategy=140]="wrappingStrategy",e[e.showDeprecated=141]="showDeprecated",e[e.inlayHints=142]="inlayHints",e[e.editorClassName=143]="editorClassName",e[e.pixelRatio=144]="pixelRatio",e[e.tabFocusMode=145]="tabFocusMode",e[e.layoutInfo=146]="layoutInfo",e[e.wrappingInfo=147]="wrappingInfo",e[e.defaultColorDecorators=148]="defaultColorDecorators",e[e.colorDecoratorsActivatedOn=149]="colorDecoratorsActivatedOn",e[e.inlineCompletionsAccessibilityVerbose=150]="inlineCompletionsAccessibilityVerbose"})($a||($a={}));var Ba;(function(e){e[e.TextDefined=0]="TextDefined",e[e.LF=1]="LF",e[e.CRLF=2]="CRLF"})(Ba||(Ba={}));var qa;(function(e){e[e.LF=0]="LF",e[e.CRLF=1]="CRLF"})(qa||(qa={}));var ja;(function(e){e[e.Left=1]="Left",e[e.Center=2]="Center",e[e.Right=3]="Right"})(ja||(ja={}));var Ha;(function(e){e[e.Increase=0]="Increase",e[e.Decrease=1]="Decrease"})(Ha||(Ha={}));var Ga;(function(e){e[e.None=0]="None",e[e.Indent=1]="Indent",e[e.IndentOutdent=2]="IndentOutdent",e[e.Outdent=3]="Outdent"})(Ga||(Ga={}));var Ja;(function(e){e[e.Both=0]="Both",e[e.Right=1]="Right",e[e.Left=2]="Left",e[e.None=3]="None"})(Ja||(Ja={}));var Xa;(function(e){e[e.Type=1]="Type",e[e.Parameter=2]="Parameter"})(Xa||(Xa={}));var Ya;(function(e){e[e.Automatic=0]="Automatic",e[e.Explicit=1]="Explicit"})(Ya||(Ya={}));var Qa;(function(e){e[e.Invoke=0]="Invoke",e[e.Automatic=1]="Automatic"})(Qa||(Qa={}));var di;(function(e){e[e.DependsOnKbLayout=-1]="DependsOnKbLayout",e[e.Unknown=0]="Unknown",e[e.Backspace=1]="Backspace",e[e.Tab=2]="Tab",e[e.Enter=3]="Enter",e[e.Shift=4]="Shift",e[e.Ctrl=5]="Ctrl",e[e.Alt=6]="Alt",e[e.PauseBreak=7]="PauseBreak",e[e.CapsLock=8]="CapsLock",e[e.Escape=9]="Escape",e[e.Space=10]="Space",e[e.PageUp=11]="PageUp",e[e.PageDown=12]="PageDown",e[e.End=13]="End",e[e.Home=14]="Home",e[e.LeftArrow=15]="LeftArrow",e[e.UpArrow=16]="UpArrow",e[e.RightArrow=17]="RightArrow",e[e.DownArrow=18]="DownArrow",e[e.Insert=19]="Insert",e[e.Delete=20]="Delete",e[e.Digit0=21]="Digit0",e[e.Digit1=22]="Digit1",e[e.Digit2=23]="Digit2",e[e.Digit3=24]="Digit3",e[e.Digit4=25]="Digit4",e[e.Digit5=26]="Digit5",e[e.Digit6=27]="Digit6",e[e.Digit7=28]="Digit7",e[e.Digit8=29]="Digit8",e[e.Digit9=30]="Digit9",e[e.KeyA=31]="KeyA",e[e.KeyB=32]="KeyB",e[e.KeyC=33]="KeyC",e[e.KeyD=34]="KeyD",e[e.KeyE=35]="KeyE",e[e.KeyF=36]="KeyF",e[e.KeyG=37]="KeyG",e[e.KeyH=38]="KeyH",e[e.KeyI=39]="KeyI",e[e.KeyJ=40]="KeyJ",e[e.KeyK=41]="KeyK",e[e.KeyL=42]="KeyL",e[e.KeyM=43]="KeyM",e[e.KeyN=44]="KeyN",e[e.KeyO=45]="KeyO",e[e.KeyP=46]="KeyP",e[e.KeyQ=47]="KeyQ",e[e.KeyR=48]="KeyR",e[e.KeyS=49]="KeyS",e[e.KeyT=50]="KeyT",e[e.KeyU=51]="KeyU",e[e.KeyV=52]="KeyV",e[e.KeyW=53]="KeyW",e[e.KeyX=54]="KeyX",e[e.KeyY=55]="KeyY",e[e.KeyZ=56]="KeyZ",e[e.Meta=57]="Meta",e[e.ContextMenu=58]="ContextMenu",e[e.F1=59]="F1",e[e.F2=60]="F2",e[e.F3=61]="F3",e[e.F4=62]="F4",e[e.F5=63]="F5",e[e.F6=64]="F6",e[e.F7=65]="F7",e[e.F8=66]="F8",e[e.F9=67]="F9",e[e.F10=68]="F10",e[e.F11=69]="F11",e[e.F12=70]="F12",e[e.F13=71]="F13",e[e.F14=72]="F14",e[e.F15=73]="F15",e[e.F16=74]="F16",e[e.F17=75]="F17",e[e.F18=76]="F18",e[e.F19=77]="F19",e[e.F20=78]="F20",e[e.F21=79]="F21",e[e.F22=80]="F22",e[e.F23=81]="F23",e[e.F24=82]="F24",e[e.NumLock=83]="NumLock",e[e.ScrollLock=84]="ScrollLock",e[e.Semicolon=85]="Semicolon",e[e.Equal=86]="Equal",e[e.Comma=87]="Comma",e[e.Minus=88]="Minus",e[e.Period=89]="Period",e[e.Slash=90]="Slash",e[e.Backquote=91]="Backquote",e[e.BracketLeft=92]="BracketLeft",e[e.Backslash=93]="Backslash",e[e.BracketRight=94]="BracketRight",e[e.Quote=95]="Quote",e[e.OEM_8=96]="OEM_8",e[e.IntlBackslash=97]="IntlBackslash",e[e.Numpad0=98]="Numpad0",e[e.Numpad1=99]="Numpad1",e[e.Numpad2=100]="Numpad2",e[e.Numpad3=101]="Numpad3",e[e.Numpad4=102]="Numpad4",e[e.Numpad5=103]="Numpad5",e[e.Numpad6=104]="Numpad6",e[e.Numpad7=105]="Numpad7",e[e.Numpad8=106]="Numpad8",e[e.Numpad9=107]="Numpad9",e[e.NumpadMultiply=108]="NumpadMultiply",e[e.NumpadAdd=109]="NumpadAdd",e[e.NUMPAD_SEPARATOR=110]="NUMPAD_SEPARATOR",e[e.NumpadSubtract=111]="NumpadSubtract",e[e.NumpadDecimal=112]="NumpadDecimal",e[e.NumpadDivide=113]="NumpadDivide",e[e.KEY_IN_COMPOSITION=114]="KEY_IN_COMPOSITION",e[e.ABNT_C1=115]="ABNT_C1",e[e.ABNT_C2=116]="ABNT_C2",e[e.AudioVolumeMute=117]="AudioVolumeMute",e[e.AudioVolumeUp=118]="AudioVolumeUp",e[e.AudioVolumeDown=119]="AudioVolumeDown",e[e.BrowserSearch=120]="BrowserSearch",e[e.BrowserHome=121]="BrowserHome",e[e.BrowserBack=122]="BrowserBack",e[e.BrowserForward=123]="BrowserForward",e[e.MediaTrackNext=124]="MediaTrackNext",e[e.MediaTrackPrevious=125]="MediaTrackPrevious",e[e.MediaStop=126]="MediaStop",e[e.MediaPlayPause=127]="MediaPlayPause",e[e.LaunchMediaPlayer=128]="LaunchMediaPlayer",e[e.LaunchMail=129]="LaunchMail",e[e.LaunchApp2=130]="LaunchApp2",e[e.Clear=131]="Clear",e[e.MAX_VALUE=132]="MAX_VALUE"})(di||(di={}));var ui;(function(e){e[e.Hint=1]="Hint",e[e.Info=2]="Info",e[e.Warning=4]="Warning",e[e.Error=8]="Error"})(ui||(ui={}));var pi;(function(e){e[e.Unnecessary=1]="Unnecessary",e[e.Deprecated=2]="Deprecated"})(pi||(pi={}));var Ka;(function(e){e[e.Inline=1]="Inline",e[e.Gutter=2]="Gutter"})(Ka||(Ka={}));var Za;(function(e){e[e.Normal=1]="Normal",e[e.Underlined=2]="Underlined"})(Za||(Za={}));var eo;(function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.TEXTAREA=1]="TEXTAREA",e[e.GUTTER_GLYPH_MARGIN=2]="GUTTER_GLYPH_MARGIN",e[e.GUTTER_LINE_NUMBERS=3]="GUTTER_LINE_NUMBERS",e[e.GUTTER_LINE_DECORATIONS=4]="GUTTER_LINE_DECORATIONS",e[e.GUTTER_VIEW_ZONE=5]="GUTTER_VIEW_ZONE",e[e.CONTENT_TEXT=6]="CONTENT_TEXT",e[e.CONTENT_EMPTY=7]="CONTENT_EMPTY",e[e.CONTENT_VIEW_ZONE=8]="CONTENT_VIEW_ZONE",e[e.CONTENT_WIDGET=9]="CONTENT_WIDGET",e[e.OVERVIEW_RULER=10]="OVERVIEW_RULER",e[e.SCROLLBAR=11]="SCROLLBAR",e[e.OVERLAY_WIDGET=12]="OVERLAY_WIDGET",e[e.OUTSIDE_EDITOR=13]="OUTSIDE_EDITOR"})(eo||(eo={}));var to;(function(e){e[e.AIGenerated=1]="AIGenerated"})(to||(to={}));var no;(function(e){e[e.Invoke=0]="Invoke",e[e.Automatic=1]="Automatic"})(no||(no={}));var ro;(function(e){e[e.TOP_RIGHT_CORNER=0]="TOP_RIGHT_CORNER",e[e.BOTTOM_RIGHT_CORNER=1]="BOTTOM_RIGHT_CORNER",e[e.TOP_CENTER=2]="TOP_CENTER"})(ro||(ro={}));var io;(function(e){e[e.Left=1]="Left",e[e.Center=2]="Center",e[e.Right=4]="Right",e[e.Full=7]="Full"})(io||(io={}));var so;(function(e){e[e.Word=0]="Word",e[e.Line=1]="Line",e[e.Suggest=2]="Suggest"})(so||(so={}));var ao;(function(e){e[e.Left=0]="Left",e[e.Right=1]="Right",e[e.None=2]="None",e[e.LeftOfInjectedText=3]="LeftOfInjectedText",e[e.RightOfInjectedText=4]="RightOfInjectedText"})(ao||(ao={}));var oo;(function(e){e[e.Off=0]="Off",e[e.On=1]="On",e[e.Relative=2]="Relative",e[e.Interval=3]="Interval",e[e.Custom=4]="Custom"})(oo||(oo={}));var lo;(function(e){e[e.None=0]="None",e[e.Text=1]="Text",e[e.Blocks=2]="Blocks"})(lo||(lo={}));var co;(function(e){e[e.Smooth=0]="Smooth",e[e.Immediate=1]="Immediate"})(co||(co={}));var ho;(function(e){e[e.Auto=1]="Auto",e[e.Hidden=2]="Hidden",e[e.Visible=3]="Visible"})(ho||(ho={}));var mi;(function(e){e[e.LTR=0]="LTR",e[e.RTL=1]="RTL"})(mi||(mi={}));var uo;(function(e){e.Off="off",e.OnCode="onCode",e.On="on"})(uo||(uo={}));var po;(function(e){e[e.Invoke=1]="Invoke",e[e.TriggerCharacter=2]="TriggerCharacter",e[e.ContentChange=3]="ContentChange"})(po||(po={}));var mo;(function(e){e[e.File=0]="File",e[e.Module=1]="Module",e[e.Namespace=2]="Namespace",e[e.Package=3]="Package",e[e.Class=4]="Class",e[e.Method=5]="Method",e[e.Property=6]="Property",e[e.Field=7]="Field",e[e.Constructor=8]="Constructor",e[e.Enum=9]="Enum",e[e.Interface=10]="Interface",e[e.Function=11]="Function",e[e.Variable=12]="Variable",e[e.Constant=13]="Constant",e[e.String=14]="String",e[e.Number=15]="Number",e[e.Boolean=16]="Boolean",e[e.Array=17]="Array",e[e.Object=18]="Object",e[e.Key=19]="Key",e[e.Null=20]="Null",e[e.EnumMember=21]="EnumMember",e[e.Struct=22]="Struct",e[e.Event=23]="Event",e[e.Operator=24]="Operator",e[e.TypeParameter=25]="TypeParameter"})(mo||(mo={}));var fo;(function(e){e[e.Deprecated=1]="Deprecated"})(fo||(fo={}));var go;(function(e){e[e.Hidden=0]="Hidden",e[e.Blink=1]="Blink",e[e.Smooth=2]="Smooth",e[e.Phase=3]="Phase",e[e.Expand=4]="Expand",e[e.Solid=5]="Solid"})(go||(go={}));var bo;(function(e){e[e.Line=1]="Line",e[e.Block=2]="Block",e[e.Underline=3]="Underline",e[e.LineThin=4]="LineThin",e[e.BlockOutline=5]="BlockOutline",e[e.UnderlineThin=6]="UnderlineThin"})(bo||(bo={}));var vo;(function(e){e[e.AlwaysGrowsWhenTypingAtEdges=0]="AlwaysGrowsWhenTypingAtEdges",e[e.NeverGrowsWhenTypingAtEdges=1]="NeverGrowsWhenTypingAtEdges",e[e.GrowsOnlyWhenTypingBefore=2]="GrowsOnlyWhenTypingBefore",e[e.GrowsOnlyWhenTypingAfter=3]="GrowsOnlyWhenTypingAfter"})(vo||(vo={}));var wo;(function(e){e[e.None=0]="None",e[e.Same=1]="Same",e[e.Indent=2]="Indent",e[e.DeepIndent=3]="DeepIndent"})(wo||(wo={}));const sn=class sn{static chord(t,n){return Od(t,n)}};sn.CtrlCmd=2048,sn.Shift=1024,sn.Alt=512,sn.WinCtrl=256;let fi=sn;function qd(){return{editor:void 0,languages:void 0,CancellationTokenSource:Ld,Emitter:De,KeyCode:di,KeyMod:fi,Position:he,Range:Q,Selection:Fe,SelectionDirection:mi,MarkerSeverity:ui,MarkerTag:pi,Uri:Ve,Token:Bd}}const Pn=class Pn{static getChannel(t){return t.getChannel(Pn.CHANNEL_NAME)}static setChannel(t,n){t.setChannel(Pn.CHANNEL_NAME,n)}};Pn.CHANNEL_NAME="editorWorkerHost";let gi=Pn;var yo;class jd{constructor(){this[yo]="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(){return this._head?.value}get last(){return this._tail?.value}has(t){return this._map.has(t)}get(t,n=0){const r=this._map.get(t);if(r)return n!==0&&this.touch(r,n),r.value}set(t,n,r=0){let i=this._map.get(t);if(i)i.value=n,r!==0&&this.touch(i,r);else{switch(i={key:t,value:n,next:void 0,previous:void 0},r){case 0:this.addItemLast(i);break;case 1:this.addItemFirst(i);break;case 2:this.addItemLast(i);break;default:this.addItemLast(i);break}this._map.set(t,i),this._size++}return this}delete(t){return!!this.remove(t)}remove(t){const n=this._map.get(t);if(n)return this._map.delete(t),this.removeItem(n),this._size--,n.value}shift(){if(!this._head&&!this._tail)return;if(!this._head||!this._tail)throw new Error("Invalid list");const t=this._head;return this._map.delete(t.key),this.removeItem(t),this._size--,t.value}forEach(t,n){const r=this._state;let i=this._head;for(;i;){if(n?t.bind(n)(i.value,i.key,this):t(i.value,i.key,this),this._state!==r)throw new Error("LinkedMap got modified during iteration.");i=i.next}}keys(){const t=this,n=this._state;let r=this._head;const i={[Symbol.iterator](){return i},next(){if(t._state!==n)throw new Error("LinkedMap got modified during iteration.");if(r){const s={value:r.key,done:!1};return r=r.next,s}else return{value:void 0,done:!0}}};return i}values(){const t=this,n=this._state;let r=this._head;const i={[Symbol.iterator](){return i},next(){if(t._state!==n)throw new Error("LinkedMap got modified during iteration.");if(r){const s={value:r.value,done:!1};return r=r.next,s}else return{value:void 0,done:!0}}};return i}entries(){const t=this,n=this._state;let r=this._head;const i={[Symbol.iterator](){return i},next(){if(t._state!==n)throw new Error("LinkedMap got modified during iteration.");if(r){const s={value:[r.key,r.value],done:!1};return r=r.next,s}else return{value:void 0,done:!0}}};return i}[(yo=Symbol.toStringTag,Symbol.iterator)](){return this.entries()}trimOld(t){if(t>=this.size)return;if(t===0){this.clear();return}let n=this._head,r=this.size;for(;n&&r>t;)this._map.delete(n.key),n=n.next,r--;this._head=n,this._size=r,n&&(n.previous=void 0),this._state++}trimNew(t){if(t>=this.size)return;if(t===0){this.clear();return}let n=this._tail,r=this.size;for(;n&&r>t;)this._map.delete(n.key),n=n.previous,r--;this._tail=n,this._size=r,n&&(n.next=void 0),this._state++}addItemFirst(t){if(!this._head&&!this._tail)this._tail=t;else if(this._head)t.next=this._head,this._head.previous=t;else throw new Error("Invalid list");this._head=t,this._state++}addItemLast(t){if(!this._head&&!this._tail)this._head=t;else if(this._tail)t.previous=this._tail,this._tail.next=t;else throw new Error("Invalid list");this._tail=t,this._state++}removeItem(t){if(t===this._head&&t===this._tail)this._head=void 0,this._tail=void 0;else if(t===this._head){if(!t.next)throw new Error("Invalid list");t.next.previous=void 0,this._head=t.next}else if(t===this._tail){if(!t.previous)throw new Error("Invalid list");t.previous.next=void 0,this._tail=t.previous}else{const n=t.next,r=t.previous;if(!n||!r)throw new Error("Invalid list");n.previous=r,r.next=n}t.next=void 0,t.previous=void 0,this._state++}touch(t,n){if(!this._head||!this._tail)throw new Error("Invalid list");if(!(n!==1&&n!==2)){if(n===1){if(t===this._head)return;const r=t.next,i=t.previous;t===this._tail?(i.next=void 0,this._tail=i):(r.previous=i,i.next=r),t.previous=void 0,t.next=this._head,this._head.previous=t,this._head=t,this._state++}else if(n===2){if(t===this._tail)return;const r=t.next,i=t.previous;t===this._head?(r.previous=void 0,this._head=r):(r.previous=i,i.next=r),t.next=void 0,t.previous=this._tail,this._tail.next=t,this._tail=t,this._state++}}}toJSON(){const t=[];return this.forEach((n,r)=>{t.push([r,n])}),t}fromJSON(t){this.clear();for(const[n,r]of t)this.set(n,r)}}class Hd extends jd{constructor(t,n=1){super(),this._limit=t,this._ratio=Math.min(Math.max(0,n),1)}get limit(){return this._limit}set limit(t){this._limit=t,this.checkTrim()}get(t,n=2){return super.get(t,n)}peek(t){return super.get(t,0)}set(t,n){return super.set(t,n,2),this}checkTrim(){this.size>this._limit&&this.trim(Math.round(this._limit*this._ratio))}}class Gd extends Hd{constructor(t,n=1){super(t,n)}trim(t){this.trimOld(t)}set(t,n){return super.set(t,n),this.checkTrim(),this}}class Jd{constructor(){this.map=new Map}add(t,n){let r=this.map.get(t);r||(r=new Set,this.map.set(t,r)),r.add(n)}delete(t,n){const r=this.map.get(t);r&&(r.delete(n),r.size===0&&this.map.delete(t))}forEach(t,n){const r=this.map.get(t);r&&r.forEach(n)}get(t){const n=this.map.get(t);return n||new Set}}new Gd(10);function Xd(e){let t=[];for(;Object.prototype!==e;)t=t.concat(Object.getOwnPropertyNames(e)),e=Object.getPrototypeOf(e);return t}function xo(e){const t=[];for(const n of Xd(e))typeof e[n]=="function"&&t.push(n);return t}function Yd(e,t){const n=i=>function(){const s=Array.prototype.slice.call(arguments,0);return t(i,s)},r={};for(const i of e)r[i]=n(i);return r}var So;(function(e){e[e.Left=1]="Left",e[e.Center=2]="Center",e[e.Right=4]="Right",e[e.Full=7]="Full"})(So||(So={}));var Co;(function(e){e[e.Left=1]="Left",e[e.Center=2]="Center",e[e.Right=3]="Right"})(Co||(Co={}));var _o;(function(e){e[e.Both=0]="Both",e[e.Right=1]="Right",e[e.Left=2]="Left",e[e.None=3]="None"})(_o||(_o={}));function Qd(e,t,n,r,i){if(r===0)return!0;const s=t.charCodeAt(r-1);if(e.get(s)!==0||s===13||s===10)return!0;if(i>0){const a=t.charCodeAt(r);if(e.get(a)!==0)return!0}return!1}function Kd(e,t,n,r,i){if(r+i===n)return!0;const s=t.charCodeAt(r+i);if(e.get(s)!==0||s===13||s===10)return!0;if(i>0){const a=t.charCodeAt(r+i-1);if(e.get(a)!==0)return!0}return!1}function Zd(e,t,n,r,i){return Qd(e,t,n,r,i)&&Kd(e,t,n,r,i)}class eu{constructor(t,n){this._wordSeparators=t,this._searchRegex=n,this._prevMatchStartIndex=-1,this._prevMatchLength=0}reset(t){this._searchRegex.lastIndex=t,this._prevMatchStartIndex=-1,this._prevMatchLength=0}next(t){const n=t.length;let r;do{if(this._prevMatchStartIndex+this._prevMatchLength===n||(r=this._searchRegex.exec(t),!r))return null;const i=r.index,s=r[0].length;if(i===this._prevMatchStartIndex&&s===this._prevMatchLength){if(s===0){Gh(t,n,this._searchRegex.lastIndex)>65535?this._searchRegex.lastIndex+=2:this._searchRegex.lastIndex+=1;continue}return null}if(this._prevMatchStartIndex=i,this._prevMatchLength=s,!this._wordSeparators||Zd(this._wordSeparators,t,n,i,s))return r}while(r);return null}}function tu(e,t="Unreachable"){throw new Error(t)}function Qn(e){if(!e()){debugger;e(),We(new ke("Assertion Failed"))}}function ko(e,t){let n=0;for(;n<e.length-1;){const r=e[n],i=e[n+1];if(!t(r,i))return!1;n++}return!0}const nu="\`~!@#$%^&*()-=+[{]}\\\\|;:'\\",.<>/?";function ru(e=""){let t="(-?\\\\d*\\\\.\\\\d\\\\w*)|([^";for(const n of nu)e.indexOf(n)>=0||(t+="\\\\"+n);return t+="\\\\s]+)",new RegExp(t,"g")}const Eo=ru();function Fo(e){let t=Eo;if(e&&e instanceof RegExp)if(e.global)t=e;else{let n="g";e.ignoreCase&&(n+="i"),e.multiline&&(n+="m"),e.unicode&&(n+="u"),t=new RegExp(e.source,n)}return t.lastIndex=0,t}const Ro=new Ch;Ro.unshift({maxLen:1e3,windowSize:15,timeBudget:150});function bi(e,t,n,r,i){if(t=Fo(t),i||(i=On.first(Ro)),n.length>i.maxLen){let c=e-i.maxLen/2;return c<0?c=0:r+=c,n=n.substring(c,e+i.maxLen/2),bi(e,t,n,r,i)}const s=Date.now(),a=e-1-r;let l=-1,o=null;for(let c=1;!(Date.now()-s>=i.timeBudget);c++){const d=a-i.windowSize*c;t.lastIndex=Math.max(0,d);const u=iu(t,n,a,l);if(!u&&o||(o=u,d<=0))break;l=d}if(o){const c={word:o[0],startColumn:r+1+o.index,endColumn:r+1+o.index+o[0].length};return t.lastIndex=0,c}return null}function iu(e,t,n,r){let i;for(;i=e.exec(t);){const s=i.index||0;if(s<=n&&e.lastIndex>=n)return i;if(r>0&&s>r)return null}return null}class su{static computeUnicodeHighlights(t,n,r){const i=r?r.startLineNumber:1,s=r?r.endLineNumber:t.getLineCount(),a=new No(n),l=a.getCandidateCodePoints();let o;l==="allNonBasicAscii"?o=new RegExp("[^\\\\t\\\\n\\\\r\\\\x20-\\\\x7E]","g"):o=new RegExp(\`\${au(Array.from(l))}\`,"g");const c=new eu(null,o),d=[];let u=!1,f,m=0,v=0,w=0;e:for(let k=i,R=s;k<=R;k++){const I=t.getLineContent(k),N=I.length;c.reset(0);do if(f=c.next(I),f){let E=f.index,F=f.index+f[0].length;if(E>0){const j=I.charCodeAt(E-1);Bn(j)&&E--}if(F+1<N){const j=I.charCodeAt(F-1);Bn(j)&&F++}const M=I.substring(E,F);let T=bi(E+1,Eo,I,0);T&&T.endColumn<=E+1&&(T=null);const P=a.shouldHighlightNonBasicASCII(M,T?T.word:null);if(P!==0){if(P===3?m++:P===2?v++:P===1?w++:tu(),d.length>=1e3){u=!0;break e}d.push(new Q(k,E+1,k,F+1))}}while(f)}return{ranges:d,hasMore:u,ambiguousCharacterCount:m,invisibleCharacterCount:v,nonBasicAsciiCharacterCount:w}}static computeUnicodeHighlightReason(t,n){const r=new No(n);switch(r.shouldHighlightNonBasicASCII(t,null)){case 0:return null;case 2:return{kind:1};case 3:{const s=t.codePointAt(0),a=r.ambiguousCharacters.getPrimaryConfusable(s),l=cn.getLocales().filter(o=>!cn.getInstance(new Set([...n.allowedLocales,o])).isAmbiguous(s));return{kind:0,confusableWith:String.fromCodePoint(a),notAmbiguousInLocales:l}}case 1:return{kind:2}}}}function au(e,t){return\`[\${Bh(e.map(r=>String.fromCodePoint(r)).join(""))}]\`}class No{constructor(t){this.options=t,this.allowedCodePoints=new Set(t.allowedCodePoints),this.ambiguousCharacters=cn.getInstance(new Set(t.allowedLocales))}getCandidateCodePoints(){if(this.options.nonBasicASCII)return"allNonBasicAscii";const t=new Set;if(this.options.invisibleCharacters)for(const n of hn.codePoints)Do(String.fromCodePoint(n))||t.add(n);if(this.options.ambiguousCharacters)for(const n of this.ambiguousCharacters.getConfusableCodePoints())t.add(n);for(const n of this.allowedCodePoints)t.delete(n);return t}shouldHighlightNonBasicASCII(t,n){const r=t.codePointAt(0);if(this.allowedCodePoints.has(r))return 0;if(this.options.nonBasicASCII)return 1;let i=!1,s=!1;if(n)for(const a of n){const l=a.codePointAt(0),o=Xh(a);i=i||o,!o&&!this.ambiguousCharacters.isAmbiguous(l)&&!hn.isInvisibleCharacter(l)&&(s=!0)}return!i&&s?0:this.options.invisibleCharacters&&!Do(t)&&hn.isInvisibleCharacter(r)?2:this.options.ambiguousCharacters&&this.ambiguousCharacters.isAmbiguous(r)?3:0}}function Do(e){return e===" "||e===\`
8
+ \`||e===" "}class Kn{constructor(t,n,r){this.changes=t,this.moves=n,this.hitTimeout=r}}class ou{constructor(t,n){this.lineRangeMapping=t,this.changes=n}}class Y{static addRange(t,n){let r=0;for(;r<n.length&&n[r].endExclusive<t.start;)r++;let i=r;for(;i<n.length&&n[i].start<=t.endExclusive;)i++;if(r===i)n.splice(r,0,t);else{const s=Math.min(t.start,n[r].start),a=Math.max(t.endExclusive,n[i-1].endExclusive);n.splice(r,i-r,new Y(s,a))}}static tryCreate(t,n){if(!(t>n))return new Y(t,n)}static ofLength(t){return new Y(0,t)}static ofStartAndLength(t,n){return new Y(t,t+n)}constructor(t,n){if(this.start=t,this.endExclusive=n,t>n)throw new ke(\`Invalid range: \${this.toString()}\`)}get isEmpty(){return this.start===this.endExclusive}delta(t){return new Y(this.start+t,this.endExclusive+t)}deltaStart(t){return new Y(this.start+t,this.endExclusive)}deltaEnd(t){return new Y(this.start,this.endExclusive+t)}get length(){return this.endExclusive-this.start}toString(){return\`[\${this.start}, \${this.endExclusive})\`}contains(t){return this.start<=t&&t<this.endExclusive}join(t){return new Y(Math.min(this.start,t.start),Math.max(this.endExclusive,t.endExclusive))}intersect(t){const n=Math.max(this.start,t.start),r=Math.min(this.endExclusive,t.endExclusive);if(n<=r)return new Y(n,r)}intersects(t){const n=Math.max(this.start,t.start),r=Math.min(this.endExclusive,t.endExclusive);return n<r}isBefore(t){return this.endExclusive<=t.start}isAfter(t){return this.start>=t.endExclusive}slice(t){return t.slice(this.start,this.endExclusive)}substring(t){return t.substring(this.start,this.endExclusive)}clip(t){if(this.isEmpty)throw new ke(\`Invalid clipping range: \${this.toString()}\`);return Math.max(this.start,Math.min(this.endExclusive-1,t))}clipCyclic(t){if(this.isEmpty)throw new ke(\`Invalid clipping range: \${this.toString()}\`);return t<this.start?this.endExclusive-(this.start-t)%this.length:t>=this.endExclusive?this.start+(t-this.start)%this.length:t}forEach(t){for(let n=this.start;n<this.endExclusive;n++)t(n)}}function $t(e,t){const n=pn(e,t);return n===-1?void 0:e[n]}function pn(e,t,n=0,r=e.length){let i=n,s=r;for(;i<s;){const a=Math.floor((i+s)/2);t(e[a])?i=a+1:s=a}return i-1}function lu(e,t){const n=vi(e,t);return n===e.length?void 0:e[n]}function vi(e,t,n=0,r=e.length){let i=n,s=r;for(;i<s;){const a=Math.floor((i+s)/2);t(e[a])?s=a:i=a+1}return i}const zr=class zr{constructor(t){this._array=t,this._findLastMonotonousLastIdx=0}findLastMonotonous(t){if(zr.assertInvariants){if(this._prevFindLastPredicate){for(const r of this._array)if(this._prevFindLastPredicate(r)&&!t(r))throw new Error("MonotonousArray: current predicate must be weaker than (or equal to) the previous predicate.")}this._prevFindLastPredicate=t}const n=pn(this._array,t,this._findLastMonotonousLastIdx);return this._findLastMonotonousLastIdx=n+1,n===-1?void 0:this._array[n]}};zr.assertInvariants=!1;let Zn=zr;class H{static fromRangeInclusive(t){return new H(t.startLineNumber,t.endLineNumber+1)}static joinMany(t){if(t.length===0)return[];let n=new $e(t[0].slice());for(let r=1;r<t.length;r++)n=n.getUnion(new $e(t[r].slice()));return n.ranges}static join(t){if(t.length===0)throw new ke("lineRanges cannot be empty");let n=t[0].startLineNumber,r=t[0].endLineNumberExclusive;for(let i=1;i<t.length;i++)n=Math.min(n,t[i].startLineNumber),r=Math.max(r,t[i].endLineNumberExclusive);return new H(n,r)}static ofLength(t,n){return new H(t,t+n)}static deserialize(t){return new H(t[0],t[1])}constructor(t,n){if(t>n)throw new ke(\`startLineNumber \${t} cannot be after endLineNumberExclusive \${n}\`);this.startLineNumber=t,this.endLineNumberExclusive=n}contains(t){return this.startLineNumber<=t&&t<this.endLineNumberExclusive}get isEmpty(){return this.startLineNumber===this.endLineNumberExclusive}delta(t){return new H(this.startLineNumber+t,this.endLineNumberExclusive+t)}deltaLength(t){return new H(this.startLineNumber,this.endLineNumberExclusive+t)}get length(){return this.endLineNumberExclusive-this.startLineNumber}join(t){return new H(Math.min(this.startLineNumber,t.startLineNumber),Math.max(this.endLineNumberExclusive,t.endLineNumberExclusive))}toString(){return\`[\${this.startLineNumber},\${this.endLineNumberExclusive})\`}intersect(t){const n=Math.max(this.startLineNumber,t.startLineNumber),r=Math.min(this.endLineNumberExclusive,t.endLineNumberExclusive);if(n<=r)return new H(n,r)}intersectsStrict(t){return this.startLineNumber<t.endLineNumberExclusive&&t.startLineNumber<this.endLineNumberExclusive}overlapOrTouch(t){return this.startLineNumber<=t.endLineNumberExclusive&&t.startLineNumber<=this.endLineNumberExclusive}equals(t){return this.startLineNumber===t.startLineNumber&&this.endLineNumberExclusive===t.endLineNumberExclusive}toInclusiveRange(){return this.isEmpty?null:new Q(this.startLineNumber,1,this.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER)}toExclusiveRange(){return new Q(this.startLineNumber,1,this.endLineNumberExclusive,1)}mapToLineArray(t){const n=[];for(let r=this.startLineNumber;r<this.endLineNumberExclusive;r++)n.push(t(r));return n}forEach(t){for(let n=this.startLineNumber;n<this.endLineNumberExclusive;n++)t(n)}serialize(){return[this.startLineNumber,this.endLineNumberExclusive]}includes(t){return this.startLineNumber<=t&&t<this.endLineNumberExclusive}toOffsetRange(){return new Y(this.startLineNumber-1,this.endLineNumberExclusive-1)}}class $e{constructor(t=[]){this._normalizedRanges=t}get ranges(){return this._normalizedRanges}addRange(t){if(t.length===0)return;const n=vi(this._normalizedRanges,i=>i.endLineNumberExclusive>=t.startLineNumber),r=pn(this._normalizedRanges,i=>i.startLineNumber<=t.endLineNumberExclusive)+1;if(n===r)this._normalizedRanges.splice(n,0,t);else if(n===r-1){const i=this._normalizedRanges[n];this._normalizedRanges[n]=i.join(t)}else{const i=this._normalizedRanges[n].join(this._normalizedRanges[r-1]).join(t);this._normalizedRanges.splice(n,r-n,i)}}contains(t){const n=$t(this._normalizedRanges,r=>r.startLineNumber<=t);return!!n&&n.endLineNumberExclusive>t}intersects(t){const n=$t(this._normalizedRanges,r=>r.startLineNumber<t.endLineNumberExclusive);return!!n&&n.endLineNumberExclusive>t.startLineNumber}getUnion(t){if(this._normalizedRanges.length===0)return t;if(t._normalizedRanges.length===0)return this;const n=[];let r=0,i=0,s=null;for(;r<this._normalizedRanges.length||i<t._normalizedRanges.length;){let a=null;if(r<this._normalizedRanges.length&&i<t._normalizedRanges.length){const l=this._normalizedRanges[r],o=t._normalizedRanges[i];l.startLineNumber<o.startLineNumber?(a=l,r++):(a=o,i++)}else r<this._normalizedRanges.length?(a=this._normalizedRanges[r],r++):(a=t._normalizedRanges[i],i++);s===null?s=a:s.endLineNumberExclusive>=a.startLineNumber?s=new H(s.startLineNumber,Math.max(s.endLineNumberExclusive,a.endLineNumberExclusive)):(n.push(s),s=a)}return s!==null&&n.push(s),new $e(n)}subtractFrom(t){const n=vi(this._normalizedRanges,a=>a.endLineNumberExclusive>=t.startLineNumber),r=pn(this._normalizedRanges,a=>a.startLineNumber<=t.endLineNumberExclusive)+1;if(n===r)return new $e([t]);const i=[];let s=t.startLineNumber;for(let a=n;a<r;a++){const l=this._normalizedRanges[a];l.startLineNumber>s&&i.push(new H(s,l.startLineNumber)),s=l.endLineNumberExclusive}return s<t.endLineNumberExclusive&&i.push(new H(s,t.endLineNumberExclusive)),new $e(i)}toString(){return this._normalizedRanges.map(t=>t.toString()).join(", ")}getIntersection(t){const n=[];let r=0,i=0;for(;r<this._normalizedRanges.length&&i<t._normalizedRanges.length;){const s=this._normalizedRanges[r],a=t._normalizedRanges[i],l=s.intersect(a);l&&!l.isEmpty&&n.push(l),s.endLineNumberExclusive<a.endLineNumberExclusive?r++:i++}return new $e(n)}getWithDelta(t){return new $e(this._normalizedRanges.map(n=>n.delta(t)))}}const xt=class xt{static betweenPositions(t,n){return t.lineNumber===n.lineNumber?new xt(0,n.column-t.column):new xt(n.lineNumber-t.lineNumber,n.column-1)}static ofRange(t){return xt.betweenPositions(t.getStartPosition(),t.getEndPosition())}static ofText(t){let n=0,r=0;for(const i of t)i===\`
9
+ \`?(n++,r=0):r++;return new xt(n,r)}constructor(t,n){this.lineCount=t,this.columnCount=n}isGreaterThanOrEqualTo(t){return this.lineCount!==t.lineCount?this.lineCount>t.lineCount:this.columnCount>=t.columnCount}createRange(t){return this.lineCount===0?new Q(t.lineNumber,t.column,t.lineNumber,t.column+this.columnCount):new Q(t.lineNumber,t.column,t.lineNumber+this.lineCount,this.columnCount+1)}addToPosition(t){return this.lineCount===0?new he(t.lineNumber,t.column+this.columnCount):new he(t.lineNumber+this.lineCount,this.columnCount+1)}toString(){return\`\${this.lineCount},\${this.columnCount}\`}};xt.zero=new xt(0,0);let Io=xt;class cu{constructor(t,n){this.range=t,this.text=n}toSingleEditOperation(){return{range:this.range,text:this.text}}}class Ie{static inverse(t,n,r){const i=[];let s=1,a=1;for(const o of t){const c=new Ie(new H(s,o.original.startLineNumber),new H(a,o.modified.startLineNumber));c.modified.isEmpty||i.push(c),s=o.original.endLineNumberExclusive,a=o.modified.endLineNumberExclusive}const l=new Ie(new H(s,n+1),new H(a,r+1));return l.modified.isEmpty||i.push(l),i}static clip(t,n,r){const i=[];for(const s of t){const a=s.original.intersect(n),l=s.modified.intersect(r);a&&!a.isEmpty&&l&&!l.isEmpty&&i.push(new Ie(a,l))}return i}constructor(t,n){this.original=t,this.modified=n}toString(){return\`{\${this.original.toString()}->\${this.modified.toString()}}\`}flip(){return new Ie(this.modified,this.original)}join(t){return new Ie(this.original.join(t.original),this.modified.join(t.modified))}toRangeMapping(){const t=this.original.toInclusiveRange(),n=this.modified.toInclusiveRange();if(t&&n)return new Te(t,n);if(this.original.startLineNumber===1||this.modified.startLineNumber===1){if(!(this.modified.startLineNumber===1&&this.original.startLineNumber===1))throw new ke("not a valid diff");return new Te(new Q(this.original.startLineNumber,1,this.original.endLineNumberExclusive,1),new Q(this.modified.startLineNumber,1,this.modified.endLineNumberExclusive,1))}else return new Te(new Q(this.original.startLineNumber-1,Number.MAX_SAFE_INTEGER,this.original.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER),new Q(this.modified.startLineNumber-1,Number.MAX_SAFE_INTEGER,this.modified.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER))}toRangeMapping2(t,n){if(Ao(this.original.endLineNumberExclusive,t)&&Ao(this.modified.endLineNumberExclusive,n))return new Te(new Q(this.original.startLineNumber,1,this.original.endLineNumberExclusive,1),new Q(this.modified.startLineNumber,1,this.modified.endLineNumberExclusive,1));if(!this.original.isEmpty&&!this.modified.isEmpty)return new Te(Q.fromPositions(new he(this.original.startLineNumber,1),Bt(new he(this.original.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER),t)),Q.fromPositions(new he(this.modified.startLineNumber,1),Bt(new he(this.modified.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER),n)));if(this.original.startLineNumber>1&&this.modified.startLineNumber>1)return new Te(Q.fromPositions(Bt(new he(this.original.startLineNumber-1,Number.MAX_SAFE_INTEGER),t),Bt(new he(this.original.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER),t)),Q.fromPositions(Bt(new he(this.modified.startLineNumber-1,Number.MAX_SAFE_INTEGER),n),Bt(new he(this.modified.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER),n)));throw new ke}}function Bt(e,t){if(e.lineNumber<1)return new he(1,1);if(e.lineNumber>t.length)return new he(t.length,t[t.length-1].length+1);const n=t[e.lineNumber-1];return e.column>n.length+1?new he(e.lineNumber,n.length+1):e}function Ao(e,t){return e>=1&&e<=t.length}class Ze extends Ie{static fromRangeMappings(t){const n=H.join(t.map(i=>H.fromRangeInclusive(i.originalRange))),r=H.join(t.map(i=>H.fromRangeInclusive(i.modifiedRange)));return new Ze(n,r,t)}constructor(t,n,r){super(t,n),this.innerChanges=r}flip(){return new Ze(this.modified,this.original,this.innerChanges?.map(t=>t.flip()))}withInnerChangesFromLineRanges(){return new Ze(this.original,this.modified,[this.toRangeMapping()])}}class Te{static assertSorted(t){for(let n=1;n<t.length;n++){const r=t[n-1],i=t[n];if(!(r.originalRange.getEndPosition().isBeforeOrEqual(i.originalRange.getStartPosition())&&r.modifiedRange.getEndPosition().isBeforeOrEqual(i.modifiedRange.getStartPosition())))throw new ke("Range mappings must be sorted")}}constructor(t,n){this.originalRange=t,this.modifiedRange=n}toString(){return\`{\${this.originalRange.toString()}->\${this.modifiedRange.toString()}}\`}flip(){return new Te(this.modifiedRange,this.originalRange)}toTextEdit(t){const n=t.getValueOfRange(this.modifiedRange);return new cu(this.originalRange,n)}}const hu=3;class du{computeDiff(t,n,r){const s=new mu(t,n,{maxComputationTime:r.maxComputationTimeMs,shouldIgnoreTrimWhitespace:r.ignoreTrimWhitespace,shouldComputeCharChanges:!0,shouldMakePrettyDiff:!0,shouldPostProcessCharChanges:!0}).computeDiff(),a=[];let l=null;for(const o of s.changes){let c;o.originalEndLineNumber===0?c=new H(o.originalStartLineNumber+1,o.originalStartLineNumber+1):c=new H(o.originalStartLineNumber,o.originalEndLineNumber+1);let d;o.modifiedEndLineNumber===0?d=new H(o.modifiedStartLineNumber+1,o.modifiedStartLineNumber+1):d=new H(o.modifiedStartLineNumber,o.modifiedEndLineNumber+1);let u=new Ze(c,d,o.charChanges?.map(f=>new Te(new Q(f.originalStartLineNumber,f.originalStartColumn,f.originalEndLineNumber,f.originalEndColumn),new Q(f.modifiedStartLineNumber,f.modifiedStartColumn,f.modifiedEndLineNumber,f.modifiedEndColumn))));l&&(l.modified.endLineNumberExclusive===u.modified.startLineNumber||l.original.endLineNumberExclusive===u.original.startLineNumber)&&(u=new Ze(l.original.join(u.original),l.modified.join(u.modified),l.innerChanges&&u.innerChanges?l.innerChanges.concat(u.innerChanges):void 0),a.pop()),a.push(u),l=u}return Qn(()=>ko(a,(o,c)=>c.original.startLineNumber-o.original.endLineNumberExclusive===c.modified.startLineNumber-o.modified.endLineNumberExclusive&&o.original.endLineNumberExclusive<c.original.startLineNumber&&o.modified.endLineNumberExclusive<c.modified.startLineNumber)),new Kn(a,[],s.quitEarly)}}function Mo(e,t,n,r){return new ft(e,t,n).ComputeDiff(r)}let Lo=class{constructor(t){const n=[],r=[];for(let i=0,s=t.length;i<s;i++)n[i]=wi(t[i],1),r[i]=yi(t[i],1);this.lines=t,this._startColumns=n,this._endColumns=r}getElements(){const t=[];for(let n=0,r=this.lines.length;n<r;n++)t[n]=this.lines[n].substring(this._startColumns[n]-1,this._endColumns[n]-1);return t}getStrictElement(t){return this.lines[t]}getStartLineNumber(t){return t+1}getEndLineNumber(t){return t+1}createCharSequence(t,n,r){const i=[],s=[],a=[];let l=0;for(let o=n;o<=r;o++){const c=this.lines[o],d=t?this._startColumns[o]:1,u=t?this._endColumns[o]:c.length+1;for(let f=d;f<u;f++)i[l]=c.charCodeAt(f-1),s[l]=o+1,a[l]=f,l++;!t&&o<r&&(i[l]=10,s[l]=o+1,a[l]=c.length+1,l++)}return new uu(i,s,a)}};class uu{constructor(t,n,r){this._charCodes=t,this._lineNumbers=n,this._columns=r}toString(){return"["+this._charCodes.map((t,n)=>(t===10?"\\\\n":String.fromCharCode(t))+\`-(\${this._lineNumbers[n]},\${this._columns[n]})\`).join(", ")+"]"}_assertIndex(t,n){if(t<0||t>=n.length)throw new Error("Illegal index")}getElements(){return this._charCodes}getStartLineNumber(t){return t>0&&t===this._lineNumbers.length?this.getEndLineNumber(t-1):(this._assertIndex(t,this._lineNumbers),this._lineNumbers[t])}getEndLineNumber(t){return t===-1?this.getStartLineNumber(t+1):(this._assertIndex(t,this._lineNumbers),this._charCodes[t]===10?this._lineNumbers[t]+1:this._lineNumbers[t])}getStartColumn(t){return t>0&&t===this._columns.length?this.getEndColumn(t-1):(this._assertIndex(t,this._columns),this._columns[t])}getEndColumn(t){return t===-1?this.getStartColumn(t+1):(this._assertIndex(t,this._columns),this._charCodes[t]===10?1:this._columns[t]+1)}}class qt{constructor(t,n,r,i,s,a,l,o){this.originalStartLineNumber=t,this.originalStartColumn=n,this.originalEndLineNumber=r,this.originalEndColumn=i,this.modifiedStartLineNumber=s,this.modifiedStartColumn=a,this.modifiedEndLineNumber=l,this.modifiedEndColumn=o}static createFromDiffChange(t,n,r){const i=n.getStartLineNumber(t.originalStart),s=n.getStartColumn(t.originalStart),a=n.getEndLineNumber(t.originalStart+t.originalLength-1),l=n.getEndColumn(t.originalStart+t.originalLength-1),o=r.getStartLineNumber(t.modifiedStart),c=r.getStartColumn(t.modifiedStart),d=r.getEndLineNumber(t.modifiedStart+t.modifiedLength-1),u=r.getEndColumn(t.modifiedStart+t.modifiedLength-1);return new qt(i,s,a,l,o,c,d,u)}}function pu(e){if(e.length<=1)return e;const t=[e[0]];let n=t[0];for(let r=1,i=e.length;r<i;r++){const s=e[r],a=s.originalStart-(n.originalStart+n.originalLength),l=s.modifiedStart-(n.modifiedStart+n.modifiedLength);Math.min(a,l)<hu?(n.originalLength=s.originalStart+s.originalLength-n.originalStart,n.modifiedLength=s.modifiedStart+s.modifiedLength-n.modifiedStart):(t.push(s),n=s)}return t}class mn{constructor(t,n,r,i,s){this.originalStartLineNumber=t,this.originalEndLineNumber=n,this.modifiedStartLineNumber=r,this.modifiedEndLineNumber=i,this.charChanges=s}static createFromDiffResult(t,n,r,i,s,a,l){let o,c,d,u,f;if(n.originalLength===0?(o=r.getStartLineNumber(n.originalStart)-1,c=0):(o=r.getStartLineNumber(n.originalStart),c=r.getEndLineNumber(n.originalStart+n.originalLength-1)),n.modifiedLength===0?(d=i.getStartLineNumber(n.modifiedStart)-1,u=0):(d=i.getStartLineNumber(n.modifiedStart),u=i.getEndLineNumber(n.modifiedStart+n.modifiedLength-1)),a&&n.originalLength>0&&n.originalLength<20&&n.modifiedLength>0&&n.modifiedLength<20&&s()){const m=r.createCharSequence(t,n.originalStart,n.originalStart+n.originalLength-1),v=i.createCharSequence(t,n.modifiedStart,n.modifiedStart+n.modifiedLength-1);if(m.getElements().length>0&&v.getElements().length>0){let w=Mo(m,v,s,!0).changes;l&&(w=pu(w)),f=[];for(let k=0,R=w.length;k<R;k++)f.push(qt.createFromDiffChange(w[k],m,v))}}return new mn(o,c,d,u,f)}}class mu{constructor(t,n,r){this.shouldComputeCharChanges=r.shouldComputeCharChanges,this.shouldPostProcessCharChanges=r.shouldPostProcessCharChanges,this.shouldIgnoreTrimWhitespace=r.shouldIgnoreTrimWhitespace,this.shouldMakePrettyDiff=r.shouldMakePrettyDiff,this.originalLines=t,this.modifiedLines=n,this.original=new Lo(t),this.modified=new Lo(n),this.continueLineDiff=zo(r.maxComputationTime),this.continueCharDiff=zo(r.maxComputationTime===0?0:Math.min(r.maxComputationTime,5e3))}computeDiff(){if(this.original.lines.length===1&&this.original.lines[0].length===0)return this.modified.lines.length===1&&this.modified.lines[0].length===0?{quitEarly:!1,changes:[]}:{quitEarly:!1,changes:[{originalStartLineNumber:1,originalEndLineNumber:1,modifiedStartLineNumber:1,modifiedEndLineNumber:this.modified.lines.length,charChanges:void 0}]};if(this.modified.lines.length===1&&this.modified.lines[0].length===0)return{quitEarly:!1,changes:[{originalStartLineNumber:1,originalEndLineNumber:this.original.lines.length,modifiedStartLineNumber:1,modifiedEndLineNumber:1,charChanges:void 0}]};const t=Mo(this.original,this.modified,this.continueLineDiff,this.shouldMakePrettyDiff),n=t.changes,r=t.quitEarly;if(this.shouldIgnoreTrimWhitespace){const l=[];for(let o=0,c=n.length;o<c;o++)l.push(mn.createFromDiffResult(this.shouldIgnoreTrimWhitespace,n[o],this.original,this.modified,this.continueCharDiff,this.shouldComputeCharChanges,this.shouldPostProcessCharChanges));return{quitEarly:r,changes:l}}const i=[];let s=0,a=0;for(let l=-1,o=n.length;l<o;l++){const c=l+1<o?n[l+1]:null,d=c?c.originalStart:this.originalLines.length,u=c?c.modifiedStart:this.modifiedLines.length;for(;s<d&&a<u;){const f=this.originalLines[s],m=this.modifiedLines[a];if(f!==m){{let v=wi(f,1),w=wi(m,1);for(;v>1&&w>1;){const k=f.charCodeAt(v-2),R=m.charCodeAt(w-2);if(k!==R)break;v--,w--}(v>1||w>1)&&this._pushTrimWhitespaceCharChange(i,s+1,1,v,a+1,1,w)}{let v=yi(f,1),w=yi(m,1);const k=f.length+1,R=m.length+1;for(;v<k&&w<R;){const I=f.charCodeAt(v-1),N=f.charCodeAt(w-1);if(I!==N)break;v++,w++}(v<k||w<R)&&this._pushTrimWhitespaceCharChange(i,s+1,v,k,a+1,w,R)}}s++,a++}c&&(i.push(mn.createFromDiffResult(this.shouldIgnoreTrimWhitespace,c,this.original,this.modified,this.continueCharDiff,this.shouldComputeCharChanges,this.shouldPostProcessCharChanges)),s+=c.originalLength,a+=c.modifiedLength)}return{quitEarly:r,changes:i}}_pushTrimWhitespaceCharChange(t,n,r,i,s,a,l){if(this._mergeTrimWhitespaceCharChange(t,n,r,i,s,a,l))return;let o;this.shouldComputeCharChanges&&(o=[new qt(n,r,n,i,s,a,s,l)]),t.push(new mn(n,n,s,s,o))}_mergeTrimWhitespaceCharChange(t,n,r,i,s,a,l){const o=t.length;if(o===0)return!1;const c=t[o-1];return c.originalEndLineNumber===0||c.modifiedEndLineNumber===0?!1:c.originalEndLineNumber===n&&c.modifiedEndLineNumber===s?(this.shouldComputeCharChanges&&c.charChanges&&c.charChanges.push(new qt(n,r,n,i,s,a,s,l)),!0):c.originalEndLineNumber+1===n&&c.modifiedEndLineNumber+1===s?(c.originalEndLineNumber=n,c.modifiedEndLineNumber=s,this.shouldComputeCharChanges&&c.charChanges&&c.charChanges.push(new qt(n,r,n,i,s,a,s,l)),!0):!1}}function wi(e,t){const n=jh(e);return n===-1?t:n+1}function yi(e,t){const n=Hh(e);return n===-1?t:n+2}function zo(e){if(e===0)return()=>!0;const t=Date.now();return()=>Date.now()-t<e}function fu(e,t,n=(r,i)=>r===i){if(e===t)return!0;if(!e||!t||e.length!==t.length)return!1;for(let r=0,i=e.length;r<i;r++)if(!n(e[r],t[r]))return!1;return!0}function*gu(e,t){let n,r;for(const i of e)r!==void 0&&t(r,i)?n.push(i):(n&&(yield n),n=[i]),r=i;n&&(yield n)}function bu(e,t){for(let n=0;n<=e.length;n++)t(n===0?void 0:e[n-1],n===e.length?void 0:e[n])}function vu(e,t){for(let n=0;n<e.length;n++)t(n===0?void 0:e[n-1],e[n],n+1===e.length?void 0:e[n+1])}function wu(e,t){for(const n of t)e.push(n)}var xi;(function(e){function t(s){return s<0}e.isLessThan=t;function n(s){return s<=0}e.isLessThanOrEqual=n;function r(s){return s>0}e.isGreaterThan=r;function i(s){return s===0}e.isNeitherLessOrGreaterThan=i,e.greaterThan=1,e.lessThan=-1,e.neitherLessOrGreaterThan=0})(xi||(xi={}));function er(e,t){return(n,r)=>t(e(n),e(r))}const tr=(e,t)=>e-t;function yu(e){return(t,n)=>-e(t,n)}const an=class an{constructor(t){this.iterate=t}toArray(){const t=[];return this.iterate(n=>(t.push(n),!0)),t}filter(t){return new an(n=>this.iterate(r=>t(r)?n(r):!0))}map(t){return new an(n=>this.iterate(r=>n(t(r))))}findLast(t){let n;return this.iterate(r=>(t(r)&&(n=r),!0)),n}findLastMaxBy(t){let n,r=!0;return this.iterate(i=>((r||xi.isGreaterThan(t(i,n)))&&(r=!1,n=i),!0)),n}};an.empty=new an(t=>{});let Po=an;class et{static trivial(t,n){return new et([new le(Y.ofLength(t.length),Y.ofLength(n.length))],!1)}static trivialTimedOut(t,n){return new et([new le(Y.ofLength(t.length),Y.ofLength(n.length))],!0)}constructor(t,n){this.diffs=t,this.hitTimeout=n}}class le{static invert(t,n){const r=[];return bu(t,(i,s)=>{r.push(le.fromOffsetPairs(i?i.getEndExclusives():tt.zero,s?s.getStarts():new tt(n,(i?i.seq2Range.endExclusive-i.seq1Range.endExclusive:0)+n)))}),r}static fromOffsetPairs(t,n){return new le(new Y(t.offset1,n.offset1),new Y(t.offset2,n.offset2))}static assertSorted(t){let n;for(const r of t){if(n&&!(n.seq1Range.endExclusive<=r.seq1Range.start&&n.seq2Range.endExclusive<=r.seq2Range.start))throw new ke("Sequence diffs must be sorted");n=r}}constructor(t,n){this.seq1Range=t,this.seq2Range=n}swap(){return new le(this.seq2Range,this.seq1Range)}toString(){return\`\${this.seq1Range} <-> \${this.seq2Range}\`}join(t){return new le(this.seq1Range.join(t.seq1Range),this.seq2Range.join(t.seq2Range))}delta(t){return t===0?this:new le(this.seq1Range.delta(t),this.seq2Range.delta(t))}deltaStart(t){return t===0?this:new le(this.seq1Range.deltaStart(t),this.seq2Range.deltaStart(t))}deltaEnd(t){return t===0?this:new le(this.seq1Range.deltaEnd(t),this.seq2Range.deltaEnd(t))}intersect(t){const n=this.seq1Range.intersect(t.seq1Range),r=this.seq2Range.intersect(t.seq2Range);if(!(!n||!r))return new le(n,r)}getStarts(){return new tt(this.seq1Range.start,this.seq2Range.start)}getEndExclusives(){return new tt(this.seq1Range.endExclusive,this.seq2Range.endExclusive)}}const Dt=class Dt{constructor(t,n){this.offset1=t,this.offset2=n}toString(){return\`\${this.offset1} <-> \${this.offset2}\`}delta(t){return t===0?this:new Dt(this.offset1+t,this.offset2+t)}equals(t){return this.offset1===t.offset1&&this.offset2===t.offset2}};Dt.zero=new Dt(0,0),Dt.max=new Dt(Number.MAX_SAFE_INTEGER,Number.MAX_SAFE_INTEGER);let tt=Dt;const Pr=class Pr{isValid(){return!0}};Pr.instance=new Pr;let fn=Pr;class xu{constructor(t){if(this.timeout=t,this.startTime=Date.now(),this.valid=!0,t<=0)throw new ke("timeout must be positive")}isValid(){if(!(Date.now()-this.startTime<this.timeout)&&this.valid){this.valid=!1;debugger}return this.valid}}class Si{constructor(t,n){this.width=t,this.height=n,this.array=[],this.array=new Array(t*n)}get(t,n){return this.array[t+n*this.width]}set(t,n,r){this.array[t+n*this.width]=r}}function Ci(e){return e===32||e===9}const Tn=class Tn{static getKey(t){let n=this.chrKeys.get(t);return n===void 0&&(n=this.chrKeys.size,this.chrKeys.set(t,n)),n}constructor(t,n,r){this.range=t,this.lines=n,this.source=r,this.histogram=[];let i=0;for(let s=t.startLineNumber-1;s<t.endLineNumberExclusive-1;s++){const a=n[s];for(let o=0;o<a.length;o++){i++;const c=a[o],d=Tn.getKey(c);this.histogram[d]=(this.histogram[d]||0)+1}i++;const l=Tn.getKey(\`
10
+ \`);this.histogram[l]=(this.histogram[l]||0)+1}this.totalCount=i}computeSimilarity(t){let n=0;const r=Math.max(this.histogram.length,t.histogram.length);for(let i=0;i<r;i++)n+=Math.abs((this.histogram[i]??0)-(t.histogram[i]??0));return 1-n/(this.totalCount+t.totalCount)}};Tn.chrKeys=new Map;let nr=Tn;class Su{compute(t,n,r=fn.instance,i){if(t.length===0||n.length===0)return et.trivial(t,n);const s=new Si(t.length,n.length),a=new Si(t.length,n.length),l=new Si(t.length,n.length);for(let v=0;v<t.length;v++)for(let w=0;w<n.length;w++){if(!r.isValid())return et.trivialTimedOut(t,n);const k=v===0?0:s.get(v-1,w),R=w===0?0:s.get(v,w-1);let I;t.getElement(v)===n.getElement(w)?(v===0||w===0?I=0:I=s.get(v-1,w-1),v>0&&w>0&&a.get(v-1,w-1)===3&&(I+=l.get(v-1,w-1)),I+=i?i(v,w):1):I=-1;const N=Math.max(k,R,I);if(N===I){const E=v>0&&w>0?l.get(v-1,w-1):0;l.set(v,w,E+1),a.set(v,w,3)}else N===k?(l.set(v,w,0),a.set(v,w,1)):N===R&&(l.set(v,w,0),a.set(v,w,2));s.set(v,w,N)}const o=[];let c=t.length,d=n.length;function u(v,w){(v+1!==c||w+1!==d)&&o.push(new le(new Y(v+1,c),new Y(w+1,d))),c=v,d=w}let f=t.length-1,m=n.length-1;for(;f>=0&&m>=0;)a.get(f,m)===3?(u(f,m),f--,m--):a.get(f,m)===1?f--:m--;return u(-1,-1),o.reverse(),new et(o,!1)}}class To{compute(t,n,r=fn.instance){if(t.length===0||n.length===0)return et.trivial(t,n);const i=t,s=n;function a(w,k){for(;w<i.length&&k<s.length&&i.getElement(w)===s.getElement(k);)w++,k++;return w}let l=0;const o=new Cu;o.set(0,a(0,0));const c=new _u;c.set(0,o.get(0)===0?null:new Oo(null,0,0,o.get(0)));let d=0;e:for(;;){if(l++,!r.isValid())return et.trivialTimedOut(i,s);const w=-Math.min(l,s.length+l%2),k=Math.min(l,i.length+l%2);for(d=w;d<=k;d+=2){const R=d===k?-1:o.get(d+1),I=d===w?-1:o.get(d-1)+1,N=Math.min(Math.max(R,I),i.length),E=N-d;if(N>i.length||E>s.length)continue;const F=a(N,E);o.set(d,F);const M=N===R?c.get(d+1):c.get(d-1);if(c.set(d,F!==N?new Oo(M,N,E,F-N):M),o.get(d)===i.length&&o.get(d)-d===s.length)break e}}let u=c.get(d);const f=[];let m=i.length,v=s.length;for(;;){const w=u?u.x+u.length:0,k=u?u.y+u.length:0;if((w!==m||k!==v)&&f.push(new le(new Y(w,m),new Y(k,v))),!u)break;m=u.x,v=u.y,u=u.prev}return f.reverse(),new et(f,!1)}}class Oo{constructor(t,n,r,i){this.prev=t,this.x=n,this.y=r,this.length=i}}class Cu{constructor(){this.positiveArr=new Int32Array(10),this.negativeArr=new Int32Array(10)}get(t){return t<0?(t=-t-1,this.negativeArr[t]):this.positiveArr[t]}set(t,n){if(t<0){if(t=-t-1,t>=this.negativeArr.length){const r=this.negativeArr;this.negativeArr=new Int32Array(r.length*2),this.negativeArr.set(r)}this.negativeArr[t]=n}else{if(t>=this.positiveArr.length){const r=this.positiveArr;this.positiveArr=new Int32Array(r.length*2),this.positiveArr.set(r)}this.positiveArr[t]=n}}}class _u{constructor(){this.positiveArr=[],this.negativeArr=[]}get(t){return t<0?(t=-t-1,this.negativeArr[t]):this.positiveArr[t]}set(t,n){t<0?(t=-t-1,this.negativeArr[t]=n):this.positiveArr[t]=n}}class rr{constructor(t,n,r){this.lines=t,this.range=n,this.considerWhitespaceChanges=r,this.elements=[],this.firstElementOffsetByLineIdx=[],this.lineStartOffsets=[],this.trimmedWsLengthsByLineIdx=[],this.firstElementOffsetByLineIdx.push(0);for(let i=this.range.startLineNumber;i<=this.range.endLineNumber;i++){let s=t[i-1],a=0;i===this.range.startLineNumber&&this.range.startColumn>1&&(a=this.range.startColumn-1,s=s.substring(a)),this.lineStartOffsets.push(a);let l=0;if(!r){const c=s.trimStart();l=s.length-c.length,s=c.trimEnd()}this.trimmedWsLengthsByLineIdx.push(l);const o=i===this.range.endLineNumber?Math.min(this.range.endColumn-1-a-l,s.length):s.length;for(let c=0;c<o;c++)this.elements.push(s.charCodeAt(c));i<this.range.endLineNumber&&(this.elements.push(10),this.firstElementOffsetByLineIdx.push(this.elements.length))}}toString(){return\`Slice: "\${this.text}"\`}get text(){return this.getText(new Y(0,this.length))}getText(t){return this.elements.slice(t.start,t.endExclusive).map(n=>String.fromCharCode(n)).join("")}getElement(t){return this.elements[t]}get length(){return this.elements.length}getBoundaryScore(t){const n=Uo(t>0?this.elements[t-1]:-1),r=Uo(t<this.elements.length?this.elements[t]:-1);if(n===7&&r===8)return 0;if(n===8)return 150;let i=0;return n!==r&&(i+=10,n===0&&r===1&&(i+=1)),i+=Wo(n),i+=Wo(r),i}translateOffset(t,n="right"){const r=pn(this.firstElementOffsetByLineIdx,s=>s<=t),i=t-this.firstElementOffsetByLineIdx[r];return new he(this.range.startLineNumber+r,1+this.lineStartOffsets[r]+i+(i===0&&n==="left"?0:this.trimmedWsLengthsByLineIdx[r]))}translateRange(t){const n=this.translateOffset(t.start,"right"),r=this.translateOffset(t.endExclusive,"left");return r.isBefore(n)?Q.fromPositions(r,r):Q.fromPositions(n,r)}findWordContaining(t){if(t<0||t>=this.elements.length||!_i(this.elements[t]))return;let n=t;for(;n>0&&_i(this.elements[n-1]);)n--;let r=t;for(;r<this.elements.length&&_i(this.elements[r]);)r++;return new Y(n,r)}countLinesIn(t){return this.translateOffset(t.endExclusive).lineNumber-this.translateOffset(t.start).lineNumber}isStronglyEqual(t,n){return this.elements[t]===this.elements[n]}extendToFullLines(t){const n=$t(this.firstElementOffsetByLineIdx,i=>i<=t.start)??0,r=lu(this.firstElementOffsetByLineIdx,i=>t.endExclusive<=i)??this.elements.length;return new Y(n,r)}}function _i(e){return e>=97&&e<=122||e>=65&&e<=90||e>=48&&e<=57}const ku={0:0,1:0,2:0,3:10,4:2,5:30,6:3,7:10,8:10};function Wo(e){return ku[e]}function Uo(e){return e===10?8:e===13?7:Ci(e)?6:e>=97&&e<=122?0:e>=65&&e<=90?1:e>=48&&e<=57?2:e===-1?3:e===44||e===59?5:4}function Eu(e,t,n,r,i,s){let{moves:a,excludedChanges:l}=Ru(e,t,n,s);if(!s.isValid())return[];const o=e.filter(d=>!l.has(d)),c=Nu(o,r,i,t,n,s);return wu(a,c),a=Du(a),a=a.filter(d=>{const u=d.original.toOffsetRange().slice(t).map(m=>m.trim());return u.join(\`
11
+ \`).length>=15&&Fu(u,m=>m.length>=2)>=2}),a=Iu(e,a),a}function Fu(e,t){let n=0;for(const r of e)t(r)&&n++;return n}function Ru(e,t,n,r){const i=[],s=e.filter(o=>o.modified.isEmpty&&o.original.length>=3).map(o=>new nr(o.original,t,o)),a=new Set(e.filter(o=>o.original.isEmpty&&o.modified.length>=3).map(o=>new nr(o.modified,n,o))),l=new Set;for(const o of s){let c=-1,d;for(const u of a){const f=o.computeSimilarity(u);f>c&&(c=f,d=u)}if(c>.9&&d&&(a.delete(d),i.push(new Ie(o.range,d.range)),l.add(o.source),l.add(d.source)),!r.isValid())return{moves:i,excludedChanges:l}}return{moves:i,excludedChanges:l}}function Nu(e,t,n,r,i,s){const a=[],l=new Jd;for(const f of e)for(let m=f.original.startLineNumber;m<f.original.endLineNumberExclusive-2;m++){const v=\`\${t[m-1]}:\${t[m+1-1]}:\${t[m+2-1]}\`;l.add(v,{range:new H(m,m+3)})}const o=[];e.sort(er(f=>f.modified.startLineNumber,tr));for(const f of e){let m=[];for(let v=f.modified.startLineNumber;v<f.modified.endLineNumberExclusive-2;v++){const w=\`\${n[v-1]}:\${n[v+1-1]}:\${n[v+2-1]}\`,k=new H(v,v+3),R=[];l.forEach(w,({range:I})=>{for(const E of m)if(E.originalLineRange.endLineNumberExclusive+1===I.endLineNumberExclusive&&E.modifiedLineRange.endLineNumberExclusive+1===k.endLineNumberExclusive){E.originalLineRange=new H(E.originalLineRange.startLineNumber,I.endLineNumberExclusive),E.modifiedLineRange=new H(E.modifiedLineRange.startLineNumber,k.endLineNumberExclusive),R.push(E);return}const N={modifiedLineRange:k,originalLineRange:I};o.push(N),R.push(N)}),m=R}if(!s.isValid())return[]}o.sort(yu(er(f=>f.modifiedLineRange.length,tr)));const c=new $e,d=new $e;for(const f of o){const m=f.modifiedLineRange.startLineNumber-f.originalLineRange.startLineNumber,v=c.subtractFrom(f.modifiedLineRange),w=d.subtractFrom(f.originalLineRange).getWithDelta(m),k=v.getIntersection(w);for(const R of k.ranges){if(R.length<3)continue;const I=R,N=R.delta(-m);a.push(new Ie(N,I)),c.addRange(I),d.addRange(N)}}a.sort(er(f=>f.original.startLineNumber,tr));const u=new Zn(e);for(let f=0;f<a.length;f++){const m=a[f],v=u.findLastMonotonous(M=>M.original.startLineNumber<=m.original.startLineNumber),w=$t(e,M=>M.modified.startLineNumber<=m.modified.startLineNumber),k=Math.max(m.original.startLineNumber-v.original.startLineNumber,m.modified.startLineNumber-w.modified.startLineNumber),R=u.findLastMonotonous(M=>M.original.startLineNumber<m.original.endLineNumberExclusive),I=$t(e,M=>M.modified.startLineNumber<m.modified.endLineNumberExclusive),N=Math.max(R.original.endLineNumberExclusive-m.original.endLineNumberExclusive,I.modified.endLineNumberExclusive-m.modified.endLineNumberExclusive);let E;for(E=0;E<k;E++){const M=m.original.startLineNumber-E-1,T=m.modified.startLineNumber-E-1;if(M>r.length||T>i.length||c.contains(T)||d.contains(M)||!Vo(r[M-1],i[T-1],s))break}E>0&&(d.addRange(new H(m.original.startLineNumber-E,m.original.startLineNumber)),c.addRange(new H(m.modified.startLineNumber-E,m.modified.startLineNumber)));let F;for(F=0;F<N;F++){const M=m.original.endLineNumberExclusive+F,T=m.modified.endLineNumberExclusive+F;if(M>r.length||T>i.length||c.contains(T)||d.contains(M)||!Vo(r[M-1],i[T-1],s))break}F>0&&(d.addRange(new H(m.original.endLineNumberExclusive,m.original.endLineNumberExclusive+F)),c.addRange(new H(m.modified.endLineNumberExclusive,m.modified.endLineNumberExclusive+F))),(E>0||F>0)&&(a[f]=new Ie(new H(m.original.startLineNumber-E,m.original.endLineNumberExclusive+F),new H(m.modified.startLineNumber-E,m.modified.endLineNumberExclusive+F)))}return a}function Vo(e,t,n){if(e.trim()===t.trim())return!0;if(e.length>300&&t.length>300)return!1;const i=new To().compute(new rr([e],new Q(1,1,1,e.length),!1),new rr([t],new Q(1,1,1,t.length),!1),n);let s=0;const a=le.invert(i.diffs,e.length);for(const d of a)d.seq1Range.forEach(u=>{Ci(e.charCodeAt(u))||s++});function l(d){let u=0;for(let f=0;f<e.length;f++)Ci(d.charCodeAt(f))||u++;return u}const o=l(e.length>t.length?e:t);return s/o>.6&&o>10}function Du(e){if(e.length===0)return e;e.sort(er(n=>n.original.startLineNumber,tr));const t=[e[0]];for(let n=1;n<e.length;n++){const r=t[t.length-1],i=e[n],s=i.original.startLineNumber-r.original.endLineNumberExclusive,a=i.modified.startLineNumber-r.modified.endLineNumberExclusive;if(s>=0&&a>=0&&s+a<=2){t[t.length-1]=r.join(i);continue}t.push(i)}return t}function Iu(e,t){const n=new Zn(e);return t=t.filter(r=>{const i=n.findLastMonotonous(l=>l.original.startLineNumber<r.original.endLineNumberExclusive)||new Ie(new H(1,1),new H(1,1)),s=$t(e,l=>l.modified.startLineNumber<r.modified.endLineNumberExclusive);return i!==s}),t}function $o(e,t,n){let r=n;return r=Bo(e,t,r),r=Bo(e,t,r),r=Au(e,t,r),r}function Bo(e,t,n){if(n.length===0)return n;const r=[];r.push(n[0]);for(let s=1;s<n.length;s++){const a=r[r.length-1];let l=n[s];if(l.seq1Range.isEmpty||l.seq2Range.isEmpty){const o=l.seq1Range.start-a.seq1Range.endExclusive;let c;for(c=1;c<=o&&!(e.getElement(l.seq1Range.start-c)!==e.getElement(l.seq1Range.endExclusive-c)||t.getElement(l.seq2Range.start-c)!==t.getElement(l.seq2Range.endExclusive-c));c++);if(c--,c===o){r[r.length-1]=new le(new Y(a.seq1Range.start,l.seq1Range.endExclusive-o),new Y(a.seq2Range.start,l.seq2Range.endExclusive-o));continue}l=l.delta(-c)}r.push(l)}const i=[];for(let s=0;s<r.length-1;s++){const a=r[s+1];let l=r[s];if(l.seq1Range.isEmpty||l.seq2Range.isEmpty){const o=a.seq1Range.start-l.seq1Range.endExclusive;let c;for(c=0;c<o&&!(!e.isStronglyEqual(l.seq1Range.start+c,l.seq1Range.endExclusive+c)||!t.isStronglyEqual(l.seq2Range.start+c,l.seq2Range.endExclusive+c));c++);if(c===o){r[s+1]=new le(new Y(l.seq1Range.start+o,a.seq1Range.endExclusive),new Y(l.seq2Range.start+o,a.seq2Range.endExclusive));continue}c>0&&(l=l.delta(c))}i.push(l)}return r.length>0&&i.push(r[r.length-1]),i}function Au(e,t,n){if(!e.getBoundaryScore||!t.getBoundaryScore)return n;for(let r=0;r<n.length;r++){const i=r>0?n[r-1]:void 0,s=n[r],a=r+1<n.length?n[r+1]:void 0,l=new Y(i?i.seq1Range.endExclusive+1:0,a?a.seq1Range.start-1:e.length),o=new Y(i?i.seq2Range.endExclusive+1:0,a?a.seq2Range.start-1:t.length);s.seq1Range.isEmpty?n[r]=qo(s,e,t,l,o):s.seq2Range.isEmpty&&(n[r]=qo(s.swap(),t,e,o,l).swap())}return n}function qo(e,t,n,r,i){let a=1;for(;e.seq1Range.start-a>=r.start&&e.seq2Range.start-a>=i.start&&n.isStronglyEqual(e.seq2Range.start-a,e.seq2Range.endExclusive-a)&&a<100;)a++;a--;let l=0;for(;e.seq1Range.start+l<r.endExclusive&&e.seq2Range.endExclusive+l<i.endExclusive&&n.isStronglyEqual(e.seq2Range.start+l,e.seq2Range.endExclusive+l)&&l<100;)l++;if(a===0&&l===0)return e;let o=0,c=-1;for(let d=-a;d<=l;d++){const u=e.seq2Range.start+d,f=e.seq2Range.endExclusive+d,m=e.seq1Range.start+d,v=t.getBoundaryScore(m)+n.getBoundaryScore(u)+n.getBoundaryScore(f);v>c&&(c=v,o=d)}return e.delta(o)}function Mu(e,t,n){const r=[];for(const i of n){const s=r[r.length-1];if(!s){r.push(i);continue}i.seq1Range.start-s.seq1Range.endExclusive<=2||i.seq2Range.start-s.seq2Range.endExclusive<=2?r[r.length-1]=new le(s.seq1Range.join(i.seq1Range),s.seq2Range.join(i.seq2Range)):r.push(i)}return r}function Lu(e,t,n){const r=le.invert(n,e.length),i=[];let s=new tt(0,0);function a(o,c){if(o.offset1<s.offset1||o.offset2<s.offset2)return;const d=e.findWordContaining(o.offset1),u=t.findWordContaining(o.offset2);if(!d||!u)return;let f=new le(d,u);const m=f.intersect(c);let v=m.seq1Range.length,w=m.seq2Range.length;for(;r.length>0;){const k=r[0];if(!(k.seq1Range.intersects(f.seq1Range)||k.seq2Range.intersects(f.seq2Range)))break;const I=e.findWordContaining(k.seq1Range.start),N=t.findWordContaining(k.seq2Range.start),E=new le(I,N),F=E.intersect(k);if(v+=F.seq1Range.length,w+=F.seq2Range.length,f=f.join(E),f.seq1Range.endExclusive>=k.seq1Range.endExclusive)r.shift();else break}v+w<(f.seq1Range.length+f.seq2Range.length)*2/3&&i.push(f),s=f.getEndExclusives()}for(;r.length>0;){const o=r.shift();o.seq1Range.isEmpty||(a(o.getStarts(),o),a(o.getEndExclusives().delta(-1),o))}return zu(n,i)}function zu(e,t){const n=[];for(;e.length>0||t.length>0;){const r=e[0],i=t[0];let s;r&&(!i||r.seq1Range.start<i.seq1Range.start)?s=e.shift():s=t.shift(),n.length>0&&n[n.length-1].seq1Range.endExclusive>=s.seq1Range.start?n[n.length-1]=n[n.length-1].join(s):n.push(s)}return n}function Pu(e,t,n){let r=n;if(r.length===0)return r;let i=0,s;do{s=!1;const a=[r[0]];for(let l=1;l<r.length;l++){let d=function(f,m){const v=new Y(c.seq1Range.endExclusive,o.seq1Range.start);return e.getText(v).replace(/\\s/g,"").length<=4&&(f.seq1Range.length+f.seq2Range.length>5||m.seq1Range.length+m.seq2Range.length>5)};const o=r[l],c=a[a.length-1];d(c,o)?(s=!0,a[a.length-1]=a[a.length-1].join(o)):a.push(o)}r=a}while(i++<10&&s);return r}function Tu(e,t,n){let r=n;if(r.length===0)return r;let i=0,s;do{s=!1;const l=[r[0]];for(let o=1;o<r.length;o++){let u=function(m,v){const w=new Y(d.seq1Range.endExclusive,c.seq1Range.start);if(e.countLinesIn(w)>5||w.length>500)return!1;const R=e.getText(w).trim();if(R.length>20||R.split(/\\r\\n|\\r|\\n/).length>1)return!1;const I=e.countLinesIn(m.seq1Range),N=m.seq1Range.length,E=t.countLinesIn(m.seq2Range),F=m.seq2Range.length,M=e.countLinesIn(v.seq1Range),T=v.seq1Range.length,P=t.countLinesIn(v.seq2Range),j=v.seq2Range.length,ee=2*40+50;function A(_){return Math.min(_,ee)}return Math.pow(Math.pow(A(I*40+N),1.5)+Math.pow(A(E*40+F),1.5),1.5)+Math.pow(Math.pow(A(M*40+T),1.5)+Math.pow(A(P*40+j),1.5),1.5)>(ee**1.5)**1.5*1.3};const c=r[o],d=l[l.length-1];u(d,c)?(s=!0,l[l.length-1]=l[l.length-1].join(c)):l.push(c)}r=l}while(i++<10&&s);const a=[];return vu(r,(l,o,c)=>{let d=o;function u(R){return R.length>0&&R.trim().length<=3&&o.seq1Range.length+o.seq2Range.length>100}const f=e.extendToFullLines(o.seq1Range),m=e.getText(new Y(f.start,o.seq1Range.start));u(m)&&(d=d.deltaStart(-m.length));const v=e.getText(new Y(o.seq1Range.endExclusive,f.endExclusive));u(v)&&(d=d.deltaEnd(v.length));const w=le.fromOffsetPairs(l?l.getEndExclusives():tt.zero,c?c.getStarts():tt.max),k=d.intersect(w);a.length>0&&k.getStarts().equals(a[a.length-1].getEndExclusives())?a[a.length-1]=a[a.length-1].join(k):a.push(k)}),a}class jo{constructor(t,n){this.trimmedHash=t,this.lines=n}getElement(t){return this.trimmedHash[t]}get length(){return this.trimmedHash.length}getBoundaryScore(t){const n=t===0?0:Ho(this.lines[t-1]),r=t===this.lines.length?0:Ho(this.lines[t]);return 1e3-(n+r)}getText(t){return this.lines.slice(t.start,t.endExclusive).join(\`
12
+ \`)}isStronglyEqual(t,n){return this.lines[t]===this.lines[n]}}function Ho(e){let t=0;for(;t<e.length&&(e.charCodeAt(t)===32||e.charCodeAt(t)===9);)t++;return t}class Ou{constructor(){this.dynamicProgrammingDiffing=new Su,this.myersDiffingAlgorithm=new To}computeDiff(t,n,r){if(t.length<=1&&fu(t,n,(F,M)=>F===M))return new Kn([],[],!1);if(t.length===1&&t[0].length===0||n.length===1&&n[0].length===0)return new Kn([new Ze(new H(1,t.length+1),new H(1,n.length+1),[new Te(new Q(1,1,t.length,t[t.length-1].length+1),new Q(1,1,n.length,n[n.length-1].length+1))])],[],!1);const i=r.maxComputationTimeMs===0?fn.instance:new xu(r.maxComputationTimeMs),s=!r.ignoreTrimWhitespace,a=new Map;function l(F){let M=a.get(F);return M===void 0&&(M=a.size,a.set(F,M)),M}const o=t.map(F=>l(F.trim())),c=n.map(F=>l(F.trim())),d=new jo(o,t),u=new jo(c,n),f=d.length+u.length<1700?this.dynamicProgrammingDiffing.compute(d,u,i,(F,M)=>t[F]===n[M]?n[M].length===0?.1:1+Math.log(1+n[M].length):.99):this.myersDiffingAlgorithm.compute(d,u,i);let m=f.diffs,v=f.hitTimeout;m=$o(d,u,m),m=Pu(d,u,m);const w=[],k=F=>{if(s)for(let M=0;M<F;M++){const T=R+M,P=I+M;if(t[T]!==n[P]){const j=this.refineDiff(t,n,new le(new Y(T,T+1),new Y(P,P+1)),i,s);for(const ee of j.mappings)w.push(ee);j.hitTimeout&&(v=!0)}}};let R=0,I=0;for(const F of m){Qn(()=>F.seq1Range.start-R===F.seq2Range.start-I);const M=F.seq1Range.start-R;k(M),R=F.seq1Range.endExclusive,I=F.seq2Range.endExclusive;const T=this.refineDiff(t,n,F,i,s);T.hitTimeout&&(v=!0);for(const P of T.mappings)w.push(P)}k(t.length-R);const N=Go(w,t,n);let E=[];return r.computeMoves&&(E=this.computeMoves(N,t,n,o,c,i,s)),Qn(()=>{function F(T,P){if(T.lineNumber<1||T.lineNumber>P.length)return!1;const j=P[T.lineNumber-1];return!(T.column<1||T.column>j.length+1)}function M(T,P){return!(T.startLineNumber<1||T.startLineNumber>P.length+1||T.endLineNumberExclusive<1||T.endLineNumberExclusive>P.length+1)}for(const T of N){if(!T.innerChanges)return!1;for(const P of T.innerChanges)if(!(F(P.modifiedRange.getStartPosition(),n)&&F(P.modifiedRange.getEndPosition(),n)&&F(P.originalRange.getStartPosition(),t)&&F(P.originalRange.getEndPosition(),t)))return!1;if(!M(T.modified,n)||!M(T.original,t))return!1}return!0}),new Kn(N,E,v)}computeMoves(t,n,r,i,s,a,l){return Eu(t,n,r,i,s,a).map(d=>{const u=this.refineDiff(n,r,new le(d.original.toOffsetRange(),d.modified.toOffsetRange()),a,l),f=Go(u.mappings,n,r,!0);return new ou(d,f)})}refineDiff(t,n,r,i,s){const l=Uu(r).toRangeMapping2(t,n),o=new rr(t,l.originalRange,s),c=new rr(n,l.modifiedRange,s),d=o.length+c.length<500?this.dynamicProgrammingDiffing.compute(o,c,i):this.myersDiffingAlgorithm.compute(o,c,i);let u=d.diffs;return u=$o(o,c,u),u=Lu(o,c,u),u=Mu(o,c,u),u=Tu(o,c,u),{mappings:u.map(m=>new Te(o.translateRange(m.seq1Range),c.translateRange(m.seq2Range))),hitTimeout:d.hitTimeout}}}function Go(e,t,n,r=!1){const i=[];for(const s of gu(e.map(a=>Wu(a,t,n)),(a,l)=>a.original.overlapOrTouch(l.original)||a.modified.overlapOrTouch(l.modified))){const a=s[0],l=s[s.length-1];i.push(new Ze(a.original.join(l.original),a.modified.join(l.modified),s.map(o=>o.innerChanges[0])))}return Qn(()=>!r&&i.length>0&&(i[0].modified.startLineNumber!==i[0].original.startLineNumber||n.length-i[i.length-1].modified.endLineNumberExclusive!==t.length-i[i.length-1].original.endLineNumberExclusive)?!1:ko(i,(s,a)=>a.original.startLineNumber-s.original.endLineNumberExclusive===a.modified.startLineNumber-s.modified.endLineNumberExclusive&&s.original.endLineNumberExclusive<a.original.startLineNumber&&s.modified.endLineNumberExclusive<a.modified.startLineNumber)),i}function Wu(e,t,n){let r=0,i=0;e.modifiedRange.endColumn===1&&e.originalRange.endColumn===1&&e.originalRange.startLineNumber+r<=e.originalRange.endLineNumber&&e.modifiedRange.startLineNumber+r<=e.modifiedRange.endLineNumber&&(i=-1),e.modifiedRange.startColumn-1>=n[e.modifiedRange.startLineNumber-1].length&&e.originalRange.startColumn-1>=t[e.originalRange.startLineNumber-1].length&&e.originalRange.startLineNumber<=e.originalRange.endLineNumber+i&&e.modifiedRange.startLineNumber<=e.modifiedRange.endLineNumber+i&&(r=1);const s=new H(e.originalRange.startLineNumber+r,e.originalRange.endLineNumber+1+i),a=new H(e.modifiedRange.startLineNumber+r,e.modifiedRange.endLineNumber+1+i);return new Ze(s,a,[e])}function Uu(e){return new Ie(new H(e.seq1Range.start+1,e.seq1Range.endExclusive+1),new H(e.seq2Range.start+1,e.seq2Range.endExclusive+1))}const Jo={getLegacy:()=>new du,getDefault:()=>new Ou};function gt(e,t){const n=Math.pow(10,t);return Math.round(e*n)/n}class me{constructor(t,n,r,i=1){this._rgbaBrand=void 0,this.r=Math.min(255,Math.max(0,t))|0,this.g=Math.min(255,Math.max(0,n))|0,this.b=Math.min(255,Math.max(0,r))|0,this.a=gt(Math.max(Math.min(1,i),0),3)}static equals(t,n){return t.r===n.r&&t.g===n.g&&t.b===n.b&&t.a===n.a}}class Ae{constructor(t,n,r,i){this._hslaBrand=void 0,this.h=Math.max(Math.min(360,t),0)|0,this.s=gt(Math.max(Math.min(1,n),0),3),this.l=gt(Math.max(Math.min(1,r),0),3),this.a=gt(Math.max(Math.min(1,i),0),3)}static equals(t,n){return t.h===n.h&&t.s===n.s&&t.l===n.l&&t.a===n.a}static fromRGBA(t){const n=t.r/255,r=t.g/255,i=t.b/255,s=t.a,a=Math.max(n,r,i),l=Math.min(n,r,i);let o=0,c=0;const d=(l+a)/2,u=a-l;if(u>0){switch(c=Math.min(d<=.5?u/(2*d):u/(2-2*d),1),a){case n:o=(r-i)/u+(r<i?6:0);break;case r:o=(i-n)/u+2;break;case i:o=(n-r)/u+4;break}o*=60,o=Math.round(o)}return new Ae(o,c,d,s)}static _hue2rgb(t,n,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?t+(n-t)*6*r:r<1/2?n:r<2/3?t+(n-t)*(2/3-r)*6:t}static toRGBA(t){const n=t.h/360,{s:r,l:i,a:s}=t;let a,l,o;if(r===0)a=l=o=i;else{const c=i<.5?i*(1+r):i+r-i*r,d=2*i-c;a=Ae._hue2rgb(d,c,n+1/3),l=Ae._hue2rgb(d,c,n),o=Ae._hue2rgb(d,c,n-1/3)}return new me(Math.round(a*255),Math.round(l*255),Math.round(o*255),s)}}class jt{constructor(t,n,r,i){this._hsvaBrand=void 0,this.h=Math.max(Math.min(360,t),0)|0,this.s=gt(Math.max(Math.min(1,n),0),3),this.v=gt(Math.max(Math.min(1,r),0),3),this.a=gt(Math.max(Math.min(1,i),0),3)}static equals(t,n){return t.h===n.h&&t.s===n.s&&t.v===n.v&&t.a===n.a}static fromRGBA(t){const n=t.r/255,r=t.g/255,i=t.b/255,s=Math.max(n,r,i),a=Math.min(n,r,i),l=s-a,o=s===0?0:l/s;let c;return l===0?c=0:s===n?c=((r-i)/l%6+6)%6:s===r?c=(i-n)/l+2:c=(n-r)/l+4,new jt(Math.round(c*60),o,s,t.a)}static toRGBA(t){const{h:n,s:r,v:i,a:s}=t,a=i*r,l=a*(1-Math.abs(n/60%2-1)),o=i-a;let[c,d,u]=[0,0,0];return n<60?(c=a,d=l):n<120?(c=l,d=a):n<180?(d=a,u=l):n<240?(d=l,u=a):n<300?(c=l,u=a):n<=360&&(c=a,u=l),c=Math.round((c+o)*255),d=Math.round((d+o)*255),u=Math.round((u+o)*255),new me(c,d,u,s)}}let ir=(Z=class{static fromHex(t){return Z.Format.CSS.parseHex(t)||Z.red}static equals(t,n){return!t&&!n?!0:!t||!n?!1:t.equals(n)}get hsla(){return this._hsla?this._hsla:Ae.fromRGBA(this.rgba)}get hsva(){return this._hsva?this._hsva:jt.fromRGBA(this.rgba)}constructor(t){if(t)if(t instanceof me)this.rgba=t;else if(t instanceof Ae)this._hsla=t,this.rgba=Ae.toRGBA(t);else if(t instanceof jt)this._hsva=t,this.rgba=jt.toRGBA(t);else throw new Error("Invalid color ctor argument");else throw new Error("Color needs a value")}equals(t){return!!t&&me.equals(this.rgba,t.rgba)&&Ae.equals(this.hsla,t.hsla)&&jt.equals(this.hsva,t.hsva)}getRelativeLuminance(){const t=Z._relativeLuminanceForComponent(this.rgba.r),n=Z._relativeLuminanceForComponent(this.rgba.g),r=Z._relativeLuminanceForComponent(this.rgba.b),i=.2126*t+.7152*n+.0722*r;return gt(i,4)}static _relativeLuminanceForComponent(t){const n=t/255;return n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4)}isLighter(){return(this.rgba.r*299+this.rgba.g*587+this.rgba.b*114)/1e3>=128}isLighterThan(t){const n=this.getRelativeLuminance(),r=t.getRelativeLuminance();return n>r}isDarkerThan(t){const n=this.getRelativeLuminance(),r=t.getRelativeLuminance();return n<r}lighten(t){return new Z(new Ae(this.hsla.h,this.hsla.s,this.hsla.l+this.hsla.l*t,this.hsla.a))}darken(t){return new Z(new Ae(this.hsla.h,this.hsla.s,this.hsla.l-this.hsla.l*t,this.hsla.a))}transparent(t){const{r:n,g:r,b:i,a:s}=this.rgba;return new Z(new me(n,r,i,s*t))}isTransparent(){return this.rgba.a===0}isOpaque(){return this.rgba.a===1}opposite(){return new Z(new me(255-this.rgba.r,255-this.rgba.g,255-this.rgba.b,this.rgba.a))}makeOpaque(t){if(this.isOpaque()||t.rgba.a!==1)return this;const{r:n,g:r,b:i,a:s}=this.rgba;return new Z(new me(t.rgba.r-s*(t.rgba.r-n),t.rgba.g-s*(t.rgba.g-r),t.rgba.b-s*(t.rgba.b-i),1))}toString(){return this._toString||(this._toString=Z.Format.CSS.format(this)),this._toString}static getLighterColor(t,n,r){if(t.isLighterThan(n))return t;r=r||.5;const i=t.getRelativeLuminance(),s=n.getRelativeLuminance();return r=r*(s-i)/s,t.lighten(r)}static getDarkerColor(t,n,r){if(t.isDarkerThan(n))return t;r=r||.5;const i=t.getRelativeLuminance(),s=n.getRelativeLuminance();return r=r*(i-s)/i,t.darken(r)}},Z.white=new Z(new me(255,255,255,1)),Z.black=new Z(new me(0,0,0,1)),Z.red=new Z(new me(255,0,0,1)),Z.blue=new Z(new me(0,0,255,1)),Z.green=new Z(new me(0,255,0,1)),Z.cyan=new Z(new me(0,255,255,1)),Z.lightgrey=new Z(new me(211,211,211,1)),Z.transparent=new Z(new me(0,0,0,0)),Z);(function(e){(function(t){(function(n){function r(m){return m.rgba.a===1?\`rgb(\${m.rgba.r}, \${m.rgba.g}, \${m.rgba.b})\`:e.Format.CSS.formatRGBA(m)}n.formatRGB=r;function i(m){return\`rgba(\${m.rgba.r}, \${m.rgba.g}, \${m.rgba.b}, \${+m.rgba.a.toFixed(2)})\`}n.formatRGBA=i;function s(m){return m.hsla.a===1?\`hsl(\${m.hsla.h}, \${(m.hsla.s*100).toFixed(2)}%, \${(m.hsla.l*100).toFixed(2)}%)\`:e.Format.CSS.formatHSLA(m)}n.formatHSL=s;function a(m){return\`hsla(\${m.hsla.h}, \${(m.hsla.s*100).toFixed(2)}%, \${(m.hsla.l*100).toFixed(2)}%, \${m.hsla.a.toFixed(2)})\`}n.formatHSLA=a;function l(m){const v=m.toString(16);return v.length!==2?"0"+v:v}function o(m){return\`#\${l(m.rgba.r)}\${l(m.rgba.g)}\${l(m.rgba.b)}\`}n.formatHex=o;function c(m,v=!1){return v&&m.rgba.a===1?e.Format.CSS.formatHex(m):\`#\${l(m.rgba.r)}\${l(m.rgba.g)}\${l(m.rgba.b)}\${l(Math.round(m.rgba.a*255))}\`}n.formatHexA=c;function d(m){return m.isOpaque()?e.Format.CSS.formatHex(m):e.Format.CSS.formatRGBA(m)}n.format=d;function u(m){const v=m.length;if(v===0||m.charCodeAt(0)!==35)return null;if(v===7){const w=16*f(m.charCodeAt(1))+f(m.charCodeAt(2)),k=16*f(m.charCodeAt(3))+f(m.charCodeAt(4)),R=16*f(m.charCodeAt(5))+f(m.charCodeAt(6));return new e(new me(w,k,R,1))}if(v===9){const w=16*f(m.charCodeAt(1))+f(m.charCodeAt(2)),k=16*f(m.charCodeAt(3))+f(m.charCodeAt(4)),R=16*f(m.charCodeAt(5))+f(m.charCodeAt(6)),I=16*f(m.charCodeAt(7))+f(m.charCodeAt(8));return new e(new me(w,k,R,I/255))}if(v===4){const w=f(m.charCodeAt(1)),k=f(m.charCodeAt(2)),R=f(m.charCodeAt(3));return new e(new me(16*w+w,16*k+k,16*R+R))}if(v===5){const w=f(m.charCodeAt(1)),k=f(m.charCodeAt(2)),R=f(m.charCodeAt(3)),I=f(m.charCodeAt(4));return new e(new me(16*w+w,16*k+k,16*R+R,(16*I+I)/255))}return null}n.parseHex=u;function f(m){switch(m){case 48:return 0;case 49:return 1;case 50:return 2;case 51:return 3;case 52:return 4;case 53:return 5;case 54:return 6;case 55:return 7;case 56:return 8;case 57:return 9;case 97:return 10;case 65:return 10;case 98:return 11;case 66:return 11;case 99:return 12;case 67:return 12;case 100:return 13;case 68:return 13;case 101:return 14;case 69:return 14;case 102:return 15;case 70:return 15}return 0}})(t.CSS||(t.CSS={}))})(e.Format||(e.Format={}))})(ir||(ir={}));function Xo(e){const t=[];for(const n of e){const r=Number(n);(r||r===0&&n.replace(/\\s/g,"")!=="")&&t.push(r)}return t}function ki(e,t,n,r){return{red:e/255,blue:n/255,green:t/255,alpha:r}}function gn(e,t){const n=t.index,r=t[0].length;if(!n)return;const i=e.positionAt(n);return{startLineNumber:i.lineNumber,startColumn:i.column,endLineNumber:i.lineNumber,endColumn:i.column+r}}function Vu(e,t){if(!e)return;const n=ir.Format.CSS.parseHex(t);if(n)return{range:e,color:ki(n.rgba.r,n.rgba.g,n.rgba.b,n.rgba.a)}}function Yo(e,t,n){if(!e||t.length!==1)return;const i=t[0].values(),s=Xo(i);return{range:e,color:ki(s[0],s[1],s[2],n?s[3]:1)}}function Qo(e,t,n){if(!e||t.length!==1)return;const i=t[0].values(),s=Xo(i),a=new ir(new Ae(s[0],s[1]/100,s[2]/100,n?s[3]:1));return{range:e,color:ki(a.rgba.r,a.rgba.g,a.rgba.b,a.rgba.a)}}function bn(e,t){return typeof e=="string"?[...e.matchAll(t)]:e.findMatches(t)}function $u(e){const t=[],r=bn(e,/\\b(rgb|rgba|hsl|hsla)(\\([0-9\\s,.\\%]*\\))|(#)([A-Fa-f0-9]{3})\\b|(#)([A-Fa-f0-9]{4})\\b|(#)([A-Fa-f0-9]{6})\\b|(#)([A-Fa-f0-9]{8})\\b/gm);if(r.length>0)for(const i of r){const s=i.filter(c=>c!==void 0),a=s[1],l=s[2];if(!l)continue;let o;if(a==="rgb"){const c=/^\\(\\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\\s*,\\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\\s*,\\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\\s*\\)$/gm;o=Yo(gn(e,i),bn(l,c),!1)}else if(a==="rgba"){const c=/^\\(\\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\\s*,\\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\\s*,\\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\\s*,\\s*(0[.][0-9]+|[.][0-9]+|[01][.]|[01])\\s*\\)$/gm;o=Yo(gn(e,i),bn(l,c),!0)}else if(a==="hsl"){const c=/^\\(\\s*(36[0]|3[0-5][0-9]|[12][0-9][0-9]|[1-9]?[0-9])\\s*,\\s*(100|\\d{1,2}[.]\\d*|\\d{1,2})%\\s*,\\s*(100|\\d{1,2}[.]\\d*|\\d{1,2})%\\s*\\)$/gm;o=Qo(gn(e,i),bn(l,c),!1)}else if(a==="hsla"){const c=/^\\(\\s*(36[0]|3[0-5][0-9]|[12][0-9][0-9]|[1-9]?[0-9])\\s*,\\s*(100|\\d{1,2}[.]\\d*|\\d{1,2})%\\s*,\\s*(100|\\d{1,2}[.]\\d*|\\d{1,2})%\\s*,\\s*(0[.][0-9]+|[.][0-9]+|[01][.]|[01])\\s*\\)$/gm;o=Qo(gn(e,i),bn(l,c),!0)}else a==="#"&&(o=Vu(gn(e,i),a+l));o&&t.push(o)}return t}function Bu(e){return!e||typeof e.getValue!="function"||typeof e.positionAt!="function"?[]:$u(e)}const Ko=new RegExp("\\\\bMARK:\\\\s*(.*)$","d"),qu=/^-+|-+$/g;function ju(e,t){let n=[];if(t.findRegionSectionHeaders&&t.foldingRules?.markers){const r=Hu(e,t);n=n.concat(r)}if(t.findMarkSectionHeaders){const r=Gu(e);n=n.concat(r)}return n}function Hu(e,t){const n=[],r=e.getLineCount();for(let i=1;i<=r;i++){const s=e.getLineContent(i),a=s.match(t.foldingRules.markers.start);if(a){const l={startLineNumber:i,startColumn:a[0].length+1,endLineNumber:i,endColumn:s.length+1};if(l.endColumn>l.startColumn){const o={range:l,...Zo(s.substring(a[0].length)),shouldBeInComments:!1};(o.text||o.hasSeparatorLine)&&n.push(o)}}}return n}function Gu(e){const t=[],n=e.getLineCount();for(let r=1;r<=n;r++){const i=e.getLineContent(r);Ju(i,r,t)}return t}function Ju(e,t,n){Ko.lastIndex=0;const r=Ko.exec(e);if(r){const i=r.indices[1][0]+1,s=r.indices[1][1]+1,a={startLineNumber:t,startColumn:i,endLineNumber:t,endColumn:s};if(a.endColumn>a.startColumn){const l={range:a,...Zo(r[1]),shouldBeInComments:!0};(l.text||l.hasSeparatorLine)&&n.push(l)}}}function Zo(e){e=e.trim();const t=e.startsWith("-");return e=e.replace(qu,""),{text:e,hasSeparatorLine:t}}var el;(function(e){async function t(r){let i;const s=await Promise.all(r.map(a=>a.then(l=>l,l=>{i||(i=l)})));if(typeof i<"u")throw i;return s}e.settled=t;function n(r){return new Promise(async(i,s)=>{try{await r(i,s)}catch(a){s(a)}})}e.withAsyncBody=n})(el||(el={}));const Ce=class Ce{static fromArray(t){return new Ce(n=>{n.emitMany(t)})}static fromPromise(t){return new Ce(async n=>{n.emitMany(await t)})}static fromPromises(t){return new Ce(async n=>{await Promise.all(t.map(async r=>n.emitOne(await r)))})}static merge(t){return new Ce(async n=>{await Promise.all(t.map(async r=>{for await(const i of r)n.emitOne(i)}))})}constructor(t,n){this._state=0,this._results=[],this._error=null,this._onReturn=n,this._onStateChanged=new De,queueMicrotask(async()=>{const r={emitOne:i=>this.emitOne(i),emitMany:i=>this.emitMany(i),reject:i=>this.reject(i)};try{await Promise.resolve(t(r)),this.resolve()}catch(i){this.reject(i)}finally{r.emitOne=void 0,r.emitMany=void 0,r.reject=void 0}})}[Symbol.asyncIterator](){let t=0;return{next:async()=>{do{if(this._state===2)throw this._error;if(t<this._results.length)return{done:!1,value:this._results[t++]};if(this._state===1)return{done:!0,value:void 0};await Vn.toPromise(this._onStateChanged.event)}while(!0)},return:async()=>(this._onReturn?.(),{done:!0,value:void 0})}}static map(t,n){return new Ce(async r=>{for await(const i of t)r.emitOne(n(i))})}map(t){return Ce.map(this,t)}static filter(t,n){return new Ce(async r=>{for await(const i of t)n(i)&&r.emitOne(i)})}filter(t){return Ce.filter(this,t)}static coalesce(t){return Ce.filter(t,n=>!!n)}coalesce(){return Ce.coalesce(this)}static async toPromise(t){const n=[];for await(const r of t)n.push(r);return n}toPromise(){return Ce.toPromise(this)}emitOne(t){this._state===0&&(this._results.push(t),this._onStateChanged.fire())}emitMany(t){this._state===0&&(this._results=this._results.concat(t),this._onStateChanged.fire())}resolve(){this._state===0&&(this._state=1,this._onStateChanged.fire())}reject(t){this._state===0&&(this._state=2,this._error=t,this._onStateChanged.fire())}};Ce.EMPTY=Ce.fromArray([]);let tl=Ce;class Xu{constructor(t){this.values=t,this.prefixSum=new Uint32Array(t.length),this.prefixSumValidIndex=new Int32Array(1),this.prefixSumValidIndex[0]=-1}insertValues(t,n){t=Vt(t);const r=this.values,i=this.prefixSum,s=n.length;return s===0?!1:(this.values=new Uint32Array(r.length+s),this.values.set(r.subarray(0,t),0),this.values.set(r.subarray(t),t+s),this.values.set(n,t),t-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=t-1),this.prefixSum=new Uint32Array(this.values.length),this.prefixSumValidIndex[0]>=0&&this.prefixSum.set(i.subarray(0,this.prefixSumValidIndex[0]+1)),!0)}setValue(t,n){return t=Vt(t),n=Vt(n),this.values[t]===n?!1:(this.values[t]=n,t-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=t-1),!0)}removeValues(t,n){t=Vt(t),n=Vt(n);const r=this.values,i=this.prefixSum;if(t>=r.length)return!1;const s=r.length-t;return n>=s&&(n=s),n===0?!1:(this.values=new Uint32Array(r.length-n),this.values.set(r.subarray(0,t),0),this.values.set(r.subarray(t+n),t),this.prefixSum=new Uint32Array(this.values.length),t-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=t-1),this.prefixSumValidIndex[0]>=0&&this.prefixSum.set(i.subarray(0,this.prefixSumValidIndex[0]+1)),!0)}getTotalSum(){return this.values.length===0?0:this._getPrefixSum(this.values.length-1)}getPrefixSum(t){return t<0?0:(t=Vt(t),this._getPrefixSum(t))}_getPrefixSum(t){if(t<=this.prefixSumValidIndex[0])return this.prefixSum[t];let n=this.prefixSumValidIndex[0]+1;n===0&&(this.prefixSum[0]=this.values[0],n++),t>=this.values.length&&(t=this.values.length-1);for(let r=n;r<=t;r++)this.prefixSum[r]=this.prefixSum[r-1]+this.values[r];return this.prefixSumValidIndex[0]=Math.max(this.prefixSumValidIndex[0],t),this.prefixSum[t]}getIndexOf(t){t=Math.floor(t),this.getTotalSum();let n=0,r=this.values.length-1,i=0,s=0,a=0;for(;n<=r;)if(i=n+(r-n)/2|0,s=this.prefixSum[i],a=s-this.values[i],t<a)r=i-1;else if(t>=s)n=i+1;else break;return new Yu(i,t-a)}}class Yu{constructor(t,n){this.index=t,this.remainder=n,this._prefixSumIndexOfResultBrand=void 0,this.index=t,this.remainder=n}}class Qu{constructor(t,n,r,i){this._uri=t,this._lines=n,this._eol=r,this._versionId=i,this._lineStarts=null,this._cachedTextValue=null}dispose(){this._lines.length=0}get version(){return this._versionId}getText(){return this._cachedTextValue===null&&(this._cachedTextValue=this._lines.join(this._eol)),this._cachedTextValue}onEvents(t){t.eol&&t.eol!==this._eol&&(this._eol=t.eol,this._lineStarts=null);const n=t.changes;for(const r of n)this._acceptDeleteRange(r.range),this._acceptInsertText(new he(r.range.startLineNumber,r.range.startColumn),r.text);this._versionId=t.versionId,this._cachedTextValue=null}_ensureLineStarts(){if(!this._lineStarts){const t=this._eol.length,n=this._lines.length,r=new Uint32Array(n);for(let i=0;i<n;i++)r[i]=this._lines[i].length+t;this._lineStarts=new Xu(r)}}_setLineText(t,n){this._lines[t]=n,this._lineStarts&&this._lineStarts.setValue(t,this._lines[t].length+this._eol.length)}_acceptDeleteRange(t){if(t.startLineNumber===t.endLineNumber){if(t.startColumn===t.endColumn)return;this._setLineText(t.startLineNumber-1,this._lines[t.startLineNumber-1].substring(0,t.startColumn-1)+this._lines[t.startLineNumber-1].substring(t.endColumn-1));return}this._setLineText(t.startLineNumber-1,this._lines[t.startLineNumber-1].substring(0,t.startColumn-1)+this._lines[t.endLineNumber-1].substring(t.endColumn-1)),this._lines.splice(t.startLineNumber,t.endLineNumber-t.startLineNumber),this._lineStarts&&this._lineStarts.removeValues(t.startLineNumber,t.endLineNumber-t.startLineNumber)}_acceptInsertText(t,n){if(n.length===0)return;const r=qh(n);if(r.length===1){this._setLineText(t.lineNumber-1,this._lines[t.lineNumber-1].substring(0,t.column-1)+r[0]+this._lines[t.lineNumber-1].substring(t.column-1));return}r[r.length-1]+=this._lines[t.lineNumber-1].substring(t.column-1),this._setLineText(t.lineNumber-1,this._lines[t.lineNumber-1].substring(0,t.column-1)+r[0]);const i=new Uint32Array(r.length-1);for(let s=1;s<r.length;s++)this._lines.splice(t.lineNumber+s-1,0,r[s]),i[s-1]=r[s].length+this._eol.length;this._lineStarts&&this._lineStarts.insertValues(t.lineNumber,i)}}class Ku{constructor(){this._models=Object.create(null)}getModel(t){return this._models[t]}getModels(){const t=[];return Object.keys(this._models).forEach(n=>t.push(this._models[n])),t}$acceptNewModel(t){this._models[t.url]=new Zu(Ve.parse(t.url),t.lines,t.EOL,t.versionId)}$acceptModelChanged(t,n){if(!this._models[t])return;this._models[t].onEvents(n)}$acceptRemovedModel(t){this._models[t]&&delete this._models[t]}}class Zu extends Qu{get uri(){return this._uri}get eol(){return this._eol}getValue(){return this.getText()}findMatches(t){const n=[];for(let r=0;r<this._lines.length;r++){const i=this._lines[r],s=this.offsetAt(new he(r+1,1)),a=i.matchAll(t);for(const l of a)(l.index||l.index===0)&&(l.index=l.index+s),n.push(l)}return n}getLinesContent(){return this._lines.slice(0)}getLineCount(){return this._lines.length}getLineContent(t){return this._lines[t-1]}getWordAtPosition(t,n){const r=bi(t.column,Fo(n),this._lines[t.lineNumber-1],0);return r?new Q(t.lineNumber,r.startColumn,t.lineNumber,r.endColumn):null}words(t){const n=this._lines,r=this._wordenize.bind(this);let i=0,s="",a=0,l=[];return{*[Symbol.iterator](){for(;;)if(a<l.length){const o=s.substring(l[a].start,l[a].end);a+=1,yield o}else if(i<n.length)s=n[i],l=r(s,t),a=0,i+=1;else break}}}getLineWords(t,n){const r=this._lines[t-1],i=this._wordenize(r,n),s=[];for(const a of i)s.push({word:r.substring(a.start,a.end),startColumn:a.start+1,endColumn:a.end+1});return s}_wordenize(t,n){const r=[];let i;for(n.lastIndex=0;(i=n.exec(t))&&i[0].length!==0;)r.push({start:i.index,end:i.index+i[0].length});return r}getValueInRange(t){if(t=this._validateRange(t),t.startLineNumber===t.endLineNumber)return this._lines[t.startLineNumber-1].substring(t.startColumn-1,t.endColumn-1);const n=this._eol,r=t.startLineNumber-1,i=t.endLineNumber-1,s=[];s.push(this._lines[r].substring(t.startColumn-1));for(let a=r+1;a<i;a++)s.push(this._lines[a]);return s.push(this._lines[i].substring(0,t.endColumn-1)),s.join(n)}offsetAt(t){return t=this._validatePosition(t),this._ensureLineStarts(),this._lineStarts.getPrefixSum(t.lineNumber-2)+(t.column-1)}positionAt(t){t=Math.floor(t),t=Math.max(0,t),this._ensureLineStarts();const n=this._lineStarts.getIndexOf(t),r=this._lines[n.index].length;return{lineNumber:1+n.index,column:1+Math.min(n.remainder,r)}}_validateRange(t){const n=this._validatePosition({lineNumber:t.startLineNumber,column:t.startColumn}),r=this._validatePosition({lineNumber:t.endLineNumber,column:t.endColumn});return n.lineNumber!==t.startLineNumber||n.column!==t.startColumn||r.lineNumber!==t.endLineNumber||r.column!==t.endColumn?{startLineNumber:n.lineNumber,startColumn:n.column,endLineNumber:r.lineNumber,endColumn:r.column}:t}_validatePosition(t){if(!he.isIPosition(t))throw new Error("bad position");let{lineNumber:n,column:r}=t,i=!1;if(n<1)n=1,r=1,i=!0;else if(n>this._lines.length)n=this._lines.length,r=this._lines[n-1].length+1,i=!0;else{const s=this._lines[n-1].length+1;r<1?(r=1,i=!0):r>s&&(r=s,i=!0)}return i?{lineNumber:n,column:r}:t}}const Tr=class Tr{constructor(){this._workerTextModelSyncServer=new Ku}dispose(){}_getModel(t){return this._workerTextModelSyncServer.getModel(t)}_getModels(){return this._workerTextModelSyncServer.getModels()}$acceptNewModel(t){this._workerTextModelSyncServer.$acceptNewModel(t)}$acceptModelChanged(t,n){this._workerTextModelSyncServer.$acceptModelChanged(t,n)}$acceptRemovedModel(t){this._workerTextModelSyncServer.$acceptRemovedModel(t)}async $computeUnicodeHighlights(t,n,r){const i=this._getModel(t);return i?su.computeUnicodeHighlights(i,n,r):{ranges:[],hasMore:!1,ambiguousCharacterCount:0,invisibleCharacterCount:0,nonBasicAsciiCharacterCount:0}}async $findSectionHeaders(t,n){const r=this._getModel(t);return r?ju(r,n):[]}async $computeDiff(t,n,r,i){const s=this._getModel(t),a=this._getModel(n);return!s||!a?null:sr.computeDiff(s,a,r,i)}static computeDiff(t,n,r,i){const s=i==="advanced"?Jo.getDefault():Jo.getLegacy(),a=t.getLinesContent(),l=n.getLinesContent(),o=s.computeDiff(a,l,r),c=o.changes.length>0?!1:this._modelsAreIdentical(t,n);function d(u){return u.map(f=>[f.original.startLineNumber,f.original.endLineNumberExclusive,f.modified.startLineNumber,f.modified.endLineNumberExclusive,f.innerChanges?.map(m=>[m.originalRange.startLineNumber,m.originalRange.startColumn,m.originalRange.endLineNumber,m.originalRange.endColumn,m.modifiedRange.startLineNumber,m.modifiedRange.startColumn,m.modifiedRange.endLineNumber,m.modifiedRange.endColumn])])}return{identical:c,quitEarly:o.hitTimeout,changes:d(o.changes),moves:o.moves.map(u=>[u.lineRangeMapping.original.startLineNumber,u.lineRangeMapping.original.endLineNumberExclusive,u.lineRangeMapping.modified.startLineNumber,u.lineRangeMapping.modified.endLineNumberExclusive,d(u.changes)])}}static _modelsAreIdentical(t,n){const r=t.getLineCount(),i=n.getLineCount();if(r!==i)return!1;for(let s=1;s<=r;s++){const a=t.getLineContent(s),l=n.getLineContent(s);if(a!==l)return!1}return!0}async $computeMoreMinimalEdits(t,n,r){const i=this._getModel(t);if(!i)return n;const s=[];let a;n=n.slice(0).sort((o,c)=>{if(o.range&&c.range)return Q.compareRangesUsingStarts(o.range,c.range);const d=o.range?0:1,u=c.range?0:1;return d-u});let l=0;for(let o=1;o<n.length;o++)Q.getEndPosition(n[l].range).equals(Q.getStartPosition(n[o].range))?(n[l].range=Q.fromPositions(Q.getStartPosition(n[l].range),Q.getEndPosition(n[o].range)),n[l].text+=n[o].text):(l++,n[l]=n[o]);n.length=l+1;for(let{range:o,text:c,eol:d}of n){if(typeof d=="number"&&(a=d),Q.isEmpty(o)&&!c)continue;const u=i.getValueInRange(o);if(c=c.replace(/\\r\\n|\\n|\\r/g,i.eol),u===c)continue;if(Math.max(c.length,u.length)>sr._diffLimit){s.push({range:o,text:c});continue}const f=Rd(u,c,r),m=i.offsetAt(Q.lift(o).getStartPosition());for(const v of f){const w=i.positionAt(m+v.originalStart),k=i.positionAt(m+v.originalStart+v.originalLength),R={text:c.substr(v.modifiedStart,v.modifiedLength),range:{startLineNumber:w.lineNumber,startColumn:w.column,endLineNumber:k.lineNumber,endColumn:k.column}};i.getValueInRange(R.range)!==R.text&&s.push(R)}}return typeof a=="number"&&s.push({eol:a,text:"",range:{startLineNumber:0,startColumn:0,endLineNumber:0,endColumn:0}}),s}async $computeLinks(t){const n=this._getModel(t);return n?Md(n):null}async $computeDefaultDocumentColors(t){const n=this._getModel(t);return n?Bu(n):null}async $textualSuggest(t,n,r,i){const s=new Un,a=new RegExp(r,i),l=new Set;e:for(const o of t){const c=this._getModel(o);if(c){for(const d of c.words(a))if(!(d===n||!isNaN(Number(d)))&&(l.add(d),l.size>sr._suggestionsLimit))break e}}return{words:Array.from(l),duration:s.elapsed()}}async $computeWordRanges(t,n,r,i){const s=this._getModel(t);if(!s)return Object.create(null);const a=new RegExp(r,i),l=Object.create(null);for(let o=n.startLineNumber;o<n.endLineNumber;o++){const c=s.getLineWords(o,a);for(const d of c){if(!isNaN(Number(d.word)))continue;let u=l[d.word];u||(u=[],l[d.word]=u),u.push({startLineNumber:o,startColumn:d.startColumn,endLineNumber:o,endColumn:d.endColumn})}}return l}async $navigateValueSet(t,n,r,i,s){const a=this._getModel(t);if(!a)return null;const l=new RegExp(i,s);n.startColumn===n.endColumn&&(n={startLineNumber:n.startLineNumber,startColumn:n.startColumn,endLineNumber:n.endLineNumber,endColumn:n.endColumn+1});const o=a.getValueInRange(n),c=a.getWordAtPosition({lineNumber:n.startLineNumber,column:n.startColumn},l);if(!c)return null;const d=a.getValueInRange(c);return oi.INSTANCE.navigateValueSet(n,o,c,d,r)}};Tr._diffLimit=1e5,Tr._suggestionsLimit=1e4;let Ei=Tr;class sr extends Ei{constructor(t,n){super(),this._host=t,this._foreignModuleFactory=n,this._foreignModule=null}async $ping(){return"pong"}$loadForeignModule(t,n,r){const a={host:Yd(r,(l,o)=>this._host.$fhr(l,o)),getMirrorModels:()=>this._getModels()};return this._foreignModuleFactory?(this._foreignModule=this._foreignModuleFactory(a,n),Promise.resolve(xo(this._foreignModule))):new Promise((l,o)=>{const c=d=>{this._foreignModule=d.create(a,n),l(xo(this._foreignModule))};import(\`\${ia.asBrowserUri(\`\${t}.js\`).toString(!0)}\`).then(c).catch(o)})}$fmr(t,n){if(!this._foreignModule||typeof this._foreignModule[t]!="function")return Promise.reject(new Error("Missing requestHandler or method: "+t));try{return Promise.resolve(this._foreignModule[t].apply(this._foreignModule,n))}catch(r){return Promise.reject(r)}}}typeof importScripts=="function"&&(globalThis.monaco=qd());let Fi=!1;function nl(e){if(Fi)return;Fi=!0;const t=new kd(n=>{globalThis.postMessage(n)},n=>new sr(gi.getChannel(n),e));globalThis.onmessage=n=>{t.onmessage(n.data)}}globalThis.onmessage=e=>{Fi||nl(null)};/*!-----------------------------------------------------------------------------
13
13
  * Copyright (c) Microsoft Corporation. All rights reserved.
14
14
  * Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1)
15
15
  * Released under the MIT license
16
16
  * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
17
- *-----------------------------------------------------------------------------*/var p;(function(e){e[e.Ident=0]="Ident",e[e.AtKeyword=1]="AtKeyword",e[e.String=2]="String",e[e.BadString=3]="BadString",e[e.UnquotedString=4]="UnquotedString",e[e.Hash=5]="Hash",e[e.Num=6]="Num",e[e.Percentage=7]="Percentage",e[e.Dimension=8]="Dimension",e[e.UnicodeRange=9]="UnicodeRange",e[e.CDO=10]="CDO",e[e.CDC=11]="CDC",e[e.Colon=12]="Colon",e[e.SemiColon=13]="SemiColon",e[e.CurlyL=14]="CurlyL",e[e.CurlyR=15]="CurlyR",e[e.ParenthesisL=16]="ParenthesisL",e[e.ParenthesisR=17]="ParenthesisR",e[e.BracketL=18]="BracketL",e[e.BracketR=19]="BracketR",e[e.Whitespace=20]="Whitespace",e[e.Includes=21]="Includes",e[e.Dashmatch=22]="Dashmatch",e[e.SubstringOperator=23]="SubstringOperator",e[e.PrefixOperator=24]="PrefixOperator",e[e.SuffixOperator=25]="SuffixOperator",e[e.Delim=26]="Delim",e[e.EMS=27]="EMS",e[e.EXS=28]="EXS",e[e.Length=29]="Length",e[e.Angle=30]="Angle",e[e.Time=31]="Time",e[e.Freq=32]="Freq",e[e.Exclamation=33]="Exclamation",e[e.Resolution=34]="Resolution",e[e.Comma=35]="Comma",e[e.Charset=36]="Charset",e[e.EscapedJavaScript=37]="EscapedJavaScript",e[e.BadEscapedJavaScript=38]="BadEscapedJavaScript",e[e.Comment=39]="Comment",e[e.SingleLineComment=40]="SingleLineComment",e[e.EOF=41]="EOF",e[e.ContainerQueryLength=42]="ContainerQueryLength",e[e.CustomToken=43]="CustomToken"})(p||(p={}));var rl=class{constructor(e){this.source=e,this.len=e.length,this.position=0}substring(e,t=this.position){return this.source.substring(e,t)}eos(){return this.len<=this.position}pos(){return this.position}goBackTo(e){this.position=e}goBack(e){this.position-=e}advance(e){this.position+=e}nextChar(){return this.source.charCodeAt(this.position++)||0}peekChar(e=0){return this.source.charCodeAt(this.position+e)||0}lookbackChar(e=0){return this.source.charCodeAt(this.position-e)||0}advanceIfChar(e){return e===this.source.charCodeAt(this.position)?(this.position++,!0):!1}advanceIfChars(e){if(this.position+e.length>this.source.length)return!1;let t=0;for(;t<e.length;t++)if(this.source.charCodeAt(this.position+t)!==e[t])return!1;return this.advance(t),!0}advanceWhileChar(e){const t=this.position;for(;this.position<this.len&&e(this.source.charCodeAt(this.position));)this.position++;return this.position-t}},sr=97,il=102,sl=122,ar=65,al=70,ol=90,vn=48,wn=57,ep=126,tp=94,yn=61,np=124,kt=45,ll=95,rp=37,Ri=42,cl=40,hl=41,ip=60,sp=62,ap=64,op=35,lp=36,Ni=92,dl=47,Ht=10,Gt=13,xn=12,ul=34,pl=39,Di=32,Ii=9,cp=59,hp=58,dp=123,up=125,pp=91,mp=93,fp=44,ml=46,fl=33,gp=63,bp=43,Be={};Be[cp]=p.SemiColon,Be[hp]=p.Colon,Be[dp]=p.CurlyL,Be[up]=p.CurlyR,Be[mp]=p.BracketR,Be[pp]=p.BracketL,Be[cl]=p.ParenthesisL,Be[hl]=p.ParenthesisR,Be[fp]=p.Comma;var ie={};ie.em=p.EMS,ie.ex=p.EXS,ie.px=p.Length,ie.cm=p.Length,ie.mm=p.Length,ie.in=p.Length,ie.pt=p.Length,ie.pc=p.Length,ie.deg=p.Angle,ie.rad=p.Angle,ie.grad=p.Angle,ie.ms=p.Time,ie.s=p.Time,ie.hz=p.Freq,ie.khz=p.Freq,ie["%"]=p.Percentage,ie.fr=p.Percentage,ie.dpi=p.Resolution,ie.dpcm=p.Resolution,ie.cqw=p.ContainerQueryLength,ie.cqh=p.ContainerQueryLength,ie.cqi=p.ContainerQueryLength,ie.cqb=p.ContainerQueryLength,ie.cqmin=p.ContainerQueryLength,ie.cqmax=p.ContainerQueryLength;var Sn=class{constructor(){this.stream=new rl(""),this.ignoreComment=!0,this.ignoreWhitespace=!0,this.inURL=!1}setSource(e){this.stream=new rl(e)}finishToken(e,t,n){return{offset:e,len:this.stream.pos()-e,type:t,text:n||this.stream.substring(e)}}substring(e,t){return this.stream.substring(e,e+t)}pos(){return this.stream.pos()}goBackTo(e){this.stream.goBackTo(e)}scanUnquotedString(){const e=this.stream.pos(),t=[];return this._unquotedString(t)?this.finishToken(e,p.UnquotedString,t.join("")):null}scan(){const e=this.trivia();if(e!==null)return e;const t=this.stream.pos();return this.stream.eos()?this.finishToken(t,p.EOF):this.scanNext(t)}tryScanUnicode(){const e=this.stream.pos();if(!this.stream.eos()&&this._unicodeRange())return this.finishToken(e,p.UnicodeRange);this.stream.goBackTo(e)}scanNext(e){if(this.stream.advanceIfChars([ip,fl,kt,kt]))return this.finishToken(e,p.CDO);if(this.stream.advanceIfChars([kt,kt,sp]))return this.finishToken(e,p.CDC);let t=[];if(this.ident(t))return this.finishToken(e,p.Ident,t.join(""));if(this.stream.advanceIfChar(ap))if(t=["@"],this._name(t)){const r=t.join("");return r==="@charset"?this.finishToken(e,p.Charset,r):this.finishToken(e,p.AtKeyword,r)}else return this.finishToken(e,p.Delim);if(this.stream.advanceIfChar(op))return t=["#"],this._name(t)?this.finishToken(e,p.Hash,t.join("")):this.finishToken(e,p.Delim);if(this.stream.advanceIfChar(fl))return this.finishToken(e,p.Exclamation);if(this._number()){const r=this.stream.pos();if(t=[this.stream.substring(e,r)],this.stream.advanceIfChar(rp))return this.finishToken(e,p.Percentage);if(this.ident(t)){const i=this.stream.substring(r).toLowerCase(),s=ie[i];return typeof s<"u"?this.finishToken(e,s,t.join("")):this.finishToken(e,p.Dimension,t.join(""))}return this.finishToken(e,p.Num)}t=[];let n=this._string(t);return n!==null?this.finishToken(e,n,t.join("")):(n=Be[this.stream.peekChar()],typeof n<"u"?(this.stream.advance(1),this.finishToken(e,n)):this.stream.peekChar(0)===ep&&this.stream.peekChar(1)===yn?(this.stream.advance(2),this.finishToken(e,p.Includes)):this.stream.peekChar(0)===np&&this.stream.peekChar(1)===yn?(this.stream.advance(2),this.finishToken(e,p.Dashmatch)):this.stream.peekChar(0)===Ri&&this.stream.peekChar(1)===yn?(this.stream.advance(2),this.finishToken(e,p.SubstringOperator)):this.stream.peekChar(0)===tp&&this.stream.peekChar(1)===yn?(this.stream.advance(2),this.finishToken(e,p.PrefixOperator)):this.stream.peekChar(0)===lp&&this.stream.peekChar(1)===yn?(this.stream.advance(2),this.finishToken(e,p.SuffixOperator)):(this.stream.nextChar(),this.finishToken(e,p.Delim)))}trivia(){for(;;){const e=this.stream.pos();if(this._whitespace()){if(!this.ignoreWhitespace)return this.finishToken(e,p.Whitespace)}else if(this.comment()){if(!this.ignoreComment)return this.finishToken(e,p.Comment)}else return null}}comment(){if(this.stream.advanceIfChars([dl,Ri])){let e=!1,t=!1;return this.stream.advanceWhileChar(n=>t&&n===dl?(e=!0,!1):(t=n===Ri,!0)),e&&this.stream.advance(1),!0}return!1}_number(){let e=0,t;return this.stream.peekChar()===ml&&(e=1),t=this.stream.peekChar(e),t>=vn&&t<=wn?(this.stream.advance(e+1),this.stream.advanceWhileChar(n=>n>=vn&&n<=wn||e===0&&n===ml),!0):!1}_newline(e){const t=this.stream.peekChar();switch(t){case Gt:case xn:case Ht:return this.stream.advance(1),e.push(String.fromCharCode(t)),t===Gt&&this.stream.advanceIfChar(Ht)&&e.push(\`
18
- \`),!0}return!1}_escape(e,t){let n=this.stream.peekChar();if(n===Ni){this.stream.advance(1),n=this.stream.peekChar();let r=0;for(;r<6&&(n>=vn&&n<=wn||n>=sr&&n<=il||n>=ar&&n<=al);)this.stream.advance(1),n=this.stream.peekChar(),r++;if(r>0){try{const i=parseInt(this.stream.substring(this.stream.pos()-r),16);i&&e.push(String.fromCharCode(i))}catch{}return n===Di||n===Ii?this.stream.advance(1):this._newline([]),!0}if(n!==Gt&&n!==xn&&n!==Ht)return this.stream.advance(1),e.push(String.fromCharCode(n)),!0;if(t)return this._newline(e)}return!1}_stringChar(e,t){const n=this.stream.peekChar();return n!==0&&n!==e&&n!==Ni&&n!==Gt&&n!==xn&&n!==Ht?(this.stream.advance(1),t.push(String.fromCharCode(n)),!0):!1}_string(e){if(this.stream.peekChar()===pl||this.stream.peekChar()===ul){const t=this.stream.nextChar();for(e.push(String.fromCharCode(t));this._stringChar(t,e)||this._escape(e,!0););return this.stream.peekChar()===t?(this.stream.nextChar(),e.push(String.fromCharCode(t)),p.String):p.BadString}return null}_unquotedChar(e){const t=this.stream.peekChar();return t!==0&&t!==Ni&&t!==pl&&t!==ul&&t!==cl&&t!==hl&&t!==Di&&t!==Ii&&t!==Ht&&t!==xn&&t!==Gt?(this.stream.advance(1),e.push(String.fromCharCode(t)),!0):!1}_unquotedString(e){let t=!1;for(;this._unquotedChar(e)||this._escape(e);)t=!0;return t}_whitespace(){return this.stream.advanceWhileChar(t=>t===Di||t===Ii||t===Ht||t===xn||t===Gt)>0}_name(e){let t=!1;for(;this._identChar(e)||this._escape(e);)t=!0;return t}ident(e){const t=this.stream.pos();if(this._minus(e)){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(t),!1}_identFirstChar(e){const t=this.stream.peekChar();return t===ll||t>=sr&&t<=sl||t>=ar&&t<=ol||t>=128&&t<=65535?(this.stream.advance(1),e.push(String.fromCharCode(t)),!0):!1}_minus(e){const t=this.stream.peekChar();return t===kt?(this.stream.advance(1),e.push(String.fromCharCode(t)),!0):!1}_identChar(e){const t=this.stream.peekChar();return t===ll||t===kt||t>=sr&&t<=sl||t>=ar&&t<=ol||t>=vn&&t<=wn||t>=128&&t<=65535?(this.stream.advance(1),e.push(String.fromCharCode(t)),!0):!1}_unicodeRange(){if(this.stream.advanceIfChar(bp)){const e=n=>n>=vn&&n<=wn||n>=sr&&n<=il||n>=ar&&n<=al,t=this.stream.advanceWhileChar(e)+this.stream.advanceWhileChar(n=>n===gp);if(t>=1&&t<=6)if(this.stream.advanceIfChar(kt)){const n=this.stream.advanceWhileChar(e);if(n>=1&&n<=6)return!0}else return!0}return!1}};function pe(e,t){if(e.length<t.length)return!1;for(let n=0;n<t.length;n++)if(e[n]!==t[n])return!1;return!0}function gl(e,t){let n=e.length-t.length;return n>0?e.lastIndexOf(t)===n:n===0?e===t:!1}function vp(e,t,n=4){let r=Math.abs(e.length-t.length);if(r>n)return 0;let i=[],s=[],a,l;for(a=0;a<t.length+1;++a)s.push(0);for(a=0;a<e.length+1;++a)i.push(s);for(a=1;a<e.length+1;++a)for(l=1;l<t.length+1;++l)e[a-1]===t[l-1]?i[a][l]=i[a-1][l-1]+1:i[a][l]=Math.max(i[a-1][l],i[a][l-1]);return i[e.length][t.length]-Math.sqrt(r)}function bl(e,t=!0){return e?e.length<140?e:e.slice(0,140)+(t?"…":""):""}function wp(e,t){const n=t.exec(e);return n&&n[0].length?e.substr(0,e.length-n[0].length):e}function vl(e,t){let n="";for(;t>0;)(t&1)===1&&(n+=e),e+=e,t=t>>>1;return n}var b;(function(e){e[e.Undefined=0]="Undefined",e[e.Identifier=1]="Identifier",e[e.Stylesheet=2]="Stylesheet",e[e.Ruleset=3]="Ruleset",e[e.Selector=4]="Selector",e[e.SimpleSelector=5]="SimpleSelector",e[e.SelectorInterpolation=6]="SelectorInterpolation",e[e.SelectorCombinator=7]="SelectorCombinator",e[e.SelectorCombinatorParent=8]="SelectorCombinatorParent",e[e.SelectorCombinatorSibling=9]="SelectorCombinatorSibling",e[e.SelectorCombinatorAllSiblings=10]="SelectorCombinatorAllSiblings",e[e.SelectorCombinatorShadowPiercingDescendant=11]="SelectorCombinatorShadowPiercingDescendant",e[e.Page=12]="Page",e[e.PageBoxMarginBox=13]="PageBoxMarginBox",e[e.ClassSelector=14]="ClassSelector",e[e.IdentifierSelector=15]="IdentifierSelector",e[e.ElementNameSelector=16]="ElementNameSelector",e[e.PseudoSelector=17]="PseudoSelector",e[e.AttributeSelector=18]="AttributeSelector",e[e.Declaration=19]="Declaration",e[e.Declarations=20]="Declarations",e[e.Property=21]="Property",e[e.Expression=22]="Expression",e[e.BinaryExpression=23]="BinaryExpression",e[e.Term=24]="Term",e[e.Operator=25]="Operator",e[e.Value=26]="Value",e[e.StringLiteral=27]="StringLiteral",e[e.URILiteral=28]="URILiteral",e[e.EscapedValue=29]="EscapedValue",e[e.Function=30]="Function",e[e.NumericValue=31]="NumericValue",e[e.HexColorValue=32]="HexColorValue",e[e.RatioValue=33]="RatioValue",e[e.MixinDeclaration=34]="MixinDeclaration",e[e.MixinReference=35]="MixinReference",e[e.VariableName=36]="VariableName",e[e.VariableDeclaration=37]="VariableDeclaration",e[e.Prio=38]="Prio",e[e.Interpolation=39]="Interpolation",e[e.NestedProperties=40]="NestedProperties",e[e.ExtendsReference=41]="ExtendsReference",e[e.SelectorPlaceholder=42]="SelectorPlaceholder",e[e.Debug=43]="Debug",e[e.If=44]="If",e[e.Else=45]="Else",e[e.For=46]="For",e[e.Each=47]="Each",e[e.While=48]="While",e[e.MixinContentReference=49]="MixinContentReference",e[e.MixinContentDeclaration=50]="MixinContentDeclaration",e[e.Media=51]="Media",e[e.Keyframe=52]="Keyframe",e[e.FontFace=53]="FontFace",e[e.Import=54]="Import",e[e.Namespace=55]="Namespace",e[e.Invocation=56]="Invocation",e[e.FunctionDeclaration=57]="FunctionDeclaration",e[e.ReturnStatement=58]="ReturnStatement",e[e.MediaQuery=59]="MediaQuery",e[e.MediaCondition=60]="MediaCondition",e[e.MediaFeature=61]="MediaFeature",e[e.FunctionParameter=62]="FunctionParameter",e[e.FunctionArgument=63]="FunctionArgument",e[e.KeyframeSelector=64]="KeyframeSelector",e[e.ViewPort=65]="ViewPort",e[e.Document=66]="Document",e[e.AtApplyRule=67]="AtApplyRule",e[e.CustomPropertyDeclaration=68]="CustomPropertyDeclaration",e[e.CustomPropertySet=69]="CustomPropertySet",e[e.ListEntry=70]="ListEntry",e[e.Supports=71]="Supports",e[e.SupportsCondition=72]="SupportsCondition",e[e.NamespacePrefix=73]="NamespacePrefix",e[e.GridLine=74]="GridLine",e[e.Plugin=75]="Plugin",e[e.UnknownAtRule=76]="UnknownAtRule",e[e.Use=77]="Use",e[e.ModuleConfiguration=78]="ModuleConfiguration",e[e.Forward=79]="Forward",e[e.ForwardVisibility=80]="ForwardVisibility",e[e.Module=81]="Module",e[e.UnicodeRange=82]="UnicodeRange",e[e.Layer=83]="Layer",e[e.LayerNameList=84]="LayerNameList",e[e.LayerName=85]="LayerName",e[e.PropertyAtRule=86]="PropertyAtRule",e[e.Container=87]="Container"})(b||(b={}));var J;(function(e){e[e.Mixin=0]="Mixin",e[e.Rule=1]="Rule",e[e.Variable=2]="Variable",e[e.Function=3]="Function",e[e.Keyframe=4]="Keyframe",e[e.Unknown=5]="Unknown",e[e.Module=6]="Module",e[e.Forward=7]="Forward",e[e.ForwardVisibility=8]="ForwardVisibility",e[e.Property=9]="Property"})(J||(J={}));function Ai(e,t){let n=null;return!e||t<e.offset||t>e.end?null:(e.accept(r=>r.offset===-1&&r.length===-1?!0:r.offset<=t&&r.end>=t?(n?r.length<=n.length&&(n=r):n=r,!0):!1),n)}function Mi(e,t){let n=Ai(e,t);const r=[];for(;n;)r.unshift(n),n=n.parent;return r}function yp(e){const t=e.findParent(b.Declaration),n=t&&t.getValue();return n&&n.encloses(e)?t:null}var O=class{get end(){return this.offset+this.length}constructor(e=-1,t=-1,n){this.parent=null,this.offset=e,this.length=t,n&&(this.nodeType=n)}set type(e){this.nodeType=e}get type(){return this.nodeType||b.Undefined}getTextProvider(){let e=this;for(;e&&!e.textProvider;)e=e.parent;return e?e.textProvider:()=>"unknown"}getText(){return this.getTextProvider()(this.offset,this.length)}matches(e){return this.length===e.length&&this.getTextProvider()(this.offset,this.length)===e}startsWith(e){return this.length>=e.length&&this.getTextProvider()(this.offset,e.length)===e}endsWith(e){return this.length>=e.length&&this.getTextProvider()(this.end-e.length,e.length)===e}accept(e){if(e(this)&&this.children)for(const t of this.children)t.accept(e)}acceptVisitor(e){this.accept(e.visitNode.bind(e))}adoptChild(e,t=-1){if(e.parent&&e.parent.children){const r=e.parent.children.indexOf(e);r>=0&&e.parent.children.splice(r,1)}e.parent=this;let n=this.children;return n||(n=this.children=[]),t!==-1?n.splice(t,0,e):n.push(e),e}attachTo(e,t=-1){return e&&e.adoptChild(this,t),this}collectIssues(e){this.issues&&e.push.apply(e,this.issues)}addIssue(e){this.issues||(this.issues=[]),this.issues.push(e)}hasIssue(e){return Array.isArray(this.issues)&&this.issues.some(t=>t.getRule()===e)}isErroneous(e=!1){return this.issues&&this.issues.length>0?!0:e&&Array.isArray(this.children)&&this.children.some(t=>t.isErroneous(!0))}setNode(e,t,n=-1){return t?(t.attachTo(this,n),this[e]=t,!0):!1}addChild(e){return e?(this.children||(this.children=[]),e.attachTo(this),this.updateOffsetAndLength(e),!0):!1}updateOffsetAndLength(e){(e.offset<this.offset||this.offset===-1)&&(this.offset=e.offset);const t=e.end;(t>this.end||this.length===-1)&&(this.length=t-this.offset)}hasChildren(){return!!this.children&&this.children.length>0}getChildren(){return this.children?this.children.slice(0):[]}getChild(e){return this.children&&e<this.children.length?this.children[e]:null}addChildren(e){for(const t of e)this.addChild(t)}findFirstChildBeforeOffset(e){if(this.children){let t=null;for(let n=this.children.length-1;n>=0;n--)if(t=this.children[n],t.offset<=e)return t}return null}findChildAtOffset(e,t){const n=this.findFirstChildBeforeOffset(e);return n&&n.end>=e?t&&n.findChildAtOffset(e,!0)||n:null}encloses(e){return this.offset<=e.offset&&this.offset+this.length>=e.offset+e.length}getParent(){let e=this.parent;for(;e instanceof ye;)e=e.parent;return e}findParent(e){let t=this;for(;t&&t.type!==e;)t=t.parent;return t}findAParent(...e){let t=this;for(;t&&!e.some(n=>t.type===n);)t=t.parent;return t}setData(e,t){this.options||(this.options={}),this.options[e]=t}getData(e){return!this.options||!this.options.hasOwnProperty(e)?null:this.options[e]}},ye=class extends O{constructor(e,t=-1){super(-1,-1),this.attachTo(e,t),this.offset=-1,this.length=-1}},xp=class extends O{constructor(e,t){super(e,t)}get type(){return b.UnicodeRange}setRangeStart(e){return this.setNode("rangeStart",e)}getRangeStart(){return this.rangeStart}setRangeEnd(e){return this.setNode("rangeEnd",e)}getRangeEnd(){return this.rangeEnd}},Me=class extends O{constructor(e,t){super(e,t),this.isCustomProperty=!1}get type(){return b.Identifier}containsInterpolation(){return this.hasChildren()}},Sp=class extends O{constructor(e,t){super(e,t)}get type(){return b.Stylesheet}},Li=class extends O{constructor(e,t){super(e,t)}get type(){return b.Declarations}},se=class extends O{constructor(e,t){super(e,t)}getDeclarations(){return this.declarations}setDeclarations(e){return this.setNode("declarations",e)}},Et=class extends se{constructor(e,t){super(e,t)}get type(){return b.Ruleset}getSelectors(){return this.selectors||(this.selectors=new ye(this)),this.selectors}isNested(){return!!this.parent&&this.parent.findParent(b.Declarations)!==null}},Cn=class extends O{constructor(e,t){super(e,t)}get type(){return b.Selector}},Jt=class extends O{constructor(e,t){super(e,t)}get type(){return b.SimpleSelector}},zi=class extends O{constructor(e,t){super(e,t)}},Cp=class extends se{constructor(e,t){super(e,t)}get type(){return b.CustomPropertySet}},qe=class bh extends zi{constructor(t,n){super(t,n),this.property=null}get type(){return b.Declaration}setProperty(t){return this.setNode("property",t)}getProperty(){return this.property}getFullPropertyName(){const t=this.property?this.property.getName():"unknown";if(this.parent instanceof Li&&this.parent.getParent()instanceof yl){const n=this.parent.getParent().getParent();if(n instanceof bh)return n.getFullPropertyName()+t}return t}getNonPrefixedPropertyName(){const t=this.getFullPropertyName();if(t&&t.charAt(0)==="-"){const n=t.indexOf("-",1);if(n!==-1)return t.substring(n+1)}return t}setValue(t){return this.setNode("value",t)}getValue(){return this.value}setNestedProperties(t){return this.setNode("nestedProperties",t)}getNestedProperties(){return this.nestedProperties}},_p=class extends qe{constructor(e,t){super(e,t)}get type(){return b.CustomPropertyDeclaration}setPropertySet(e){return this.setNode("propertySet",e)}getPropertySet(){return this.propertySet}},Pi=class extends O{constructor(e,t){super(e,t)}get type(){return b.Property}setIdentifier(e){return this.setNode("identifier",e)}getIdentifier(){return this.identifier}getName(){return wp(this.getText(),/[_\\+]+$/)}isCustomProperty(){return!!this.identifier&&this.identifier.isCustomProperty}},kp=class extends O{constructor(e,t){super(e,t)}get type(){return b.Invocation}getArguments(){return this.arguments||(this.arguments=new ye(this)),this.arguments}},_n=class extends kp{constructor(e,t){super(e,t)}get type(){return b.Function}setIdentifier(e){return this.setNode("identifier",e,0)}getIdentifier(){return this.identifier}getName(){return this.identifier?this.identifier.getText():""}},or=class extends O{constructor(e,t){super(e,t)}get type(){return b.FunctionParameter}setIdentifier(e){return this.setNode("identifier",e,0)}getIdentifier(){return this.identifier}getName(){return this.identifier?this.identifier.getText():""}setDefaultValue(e){return this.setNode("defaultValue",e,0)}getDefaultValue(){return this.defaultValue}},Xt=class extends O{constructor(e,t){super(e,t)}get type(){return b.FunctionArgument}setIdentifier(e){return this.setNode("identifier",e,0)}getIdentifier(){return this.identifier}getName(){return this.identifier?this.identifier.getText():""}setValue(e){return this.setNode("value",e,0)}getValue(){return this.value}},Ep=class extends se{constructor(e,t){super(e,t)}get type(){return b.If}setExpression(e){return this.setNode("expression",e,0)}setElseClause(e){return this.setNode("elseClause",e)}},Fp=class extends se{constructor(e,t){super(e,t)}get type(){return b.For}setVariable(e){return this.setNode("variable",e,0)}},Rp=class extends se{constructor(e,t){super(e,t)}get type(){return b.Each}getVariables(){return this.variables||(this.variables=new ye(this)),this.variables}},Np=class extends se{constructor(e,t){super(e,t)}get type(){return b.While}},Dp=class extends se{constructor(e,t){super(e,t)}get type(){return b.Else}},lr=class extends se{constructor(e,t){super(e,t)}get type(){return b.FunctionDeclaration}setIdentifier(e){return this.setNode("identifier",e,0)}getIdentifier(){return this.identifier}getName(){return this.identifier?this.identifier.getText():""}getParameters(){return this.parameters||(this.parameters=new ye(this)),this.parameters}},Ip=class extends se{constructor(e,t){super(e,t)}get type(){return b.ViewPort}},wl=class extends se{constructor(e,t){super(e,t)}get type(){return b.FontFace}},yl=class extends se{constructor(e,t){super(e,t)}get type(){return b.NestedProperties}},xl=class extends se{constructor(e,t){super(e,t)}get type(){return b.Keyframe}setKeyword(e){return this.setNode("keyword",e,0)}getKeyword(){return this.keyword}setIdentifier(e){return this.setNode("identifier",e,0)}getIdentifier(){return this.identifier}getName(){return this.identifier?this.identifier.getText():""}},Sl=class extends se{constructor(e,t){super(e,t)}get type(){return b.KeyframeSelector}},Ti=class extends O{constructor(e,t){super(e,t)}get type(){return b.Import}setMedialist(e){return e?(e.attachTo(this),!0):!1}},Ap=class extends O{get type(){return b.Use}getParameters(){return this.parameters||(this.parameters=new ye(this)),this.parameters}setIdentifier(e){return this.setNode("identifier",e,0)}getIdentifier(){return this.identifier}},Mp=class extends O{get type(){return b.ModuleConfiguration}setIdentifier(e){return this.setNode("identifier",e,0)}getIdentifier(){return this.identifier}getName(){return this.identifier?this.identifier.getText():""}setValue(e){return this.setNode("value",e,0)}getValue(){return this.value}},Lp=class extends O{get type(){return b.Forward}setIdentifier(e){return this.setNode("identifier",e,0)}getIdentifier(){return this.identifier}getMembers(){return this.members||(this.members=new ye(this)),this.members}getParameters(){return this.parameters||(this.parameters=new ye(this)),this.parameters}},zp=class extends O{get type(){return b.ForwardVisibility}setIdentifier(e){return this.setNode("identifier",e,0)}getIdentifier(){return this.identifier}},Pp=class extends O{constructor(e,t){super(e,t)}get type(){return b.Namespace}},Oi=class extends se{constructor(e,t){super(e,t)}get type(){return b.Media}},Wi=class extends se{constructor(e,t){super(e,t)}get type(){return b.Supports}},Tp=class extends se{constructor(e,t){super(e,t)}get type(){return b.Layer}setNames(e){return this.setNode("names",e)}getNames(){return this.names}},Op=class extends se{constructor(e,t){super(e,t)}get type(){return b.PropertyAtRule}setName(e){return e?(e.attachTo(this),this.name=e,!0):!1}getName(){return this.name}},Wp=class extends se{constructor(e,t){super(e,t)}get type(){return b.Document}},Up=class extends se{constructor(e,t){super(e,t)}get type(){return b.Container}},Cl=class extends O{constructor(e,t){super(e,t)}},_l=class extends O{constructor(e,t){super(e,t)}get type(){return b.MediaQuery}},Vp=class extends O{constructor(e,t){super(e,t)}get type(){return b.MediaCondition}},$p=class extends O{constructor(e,t){super(e,t)}get type(){return b.MediaFeature}},kn=class extends O{constructor(e,t){super(e,t)}get type(){return b.SupportsCondition}},Bp=class extends se{constructor(e,t){super(e,t)}get type(){return b.Page}},qp=class extends se{constructor(e,t){super(e,t)}get type(){return b.PageBoxMarginBox}},kl=class extends O{constructor(e,t){super(e,t)}get type(){return b.Expression}},Ui=class extends O{constructor(e,t){super(e,t)}get type(){return b.BinaryExpression}setLeft(e){return this.setNode("left",e)}getLeft(){return this.left}setRight(e){return this.setNode("right",e)}getRight(){return this.right}setOperator(e){return this.setNode("operator",e)}getOperator(){return this.operator}},jp=class extends O{constructor(e,t){super(e,t)}get type(){return b.Term}setOperator(e){return this.setNode("operator",e)}getOperator(){return this.operator}setExpression(e){return this.setNode("expression",e)}getExpression(){return this.expression}},Hp=class extends O{constructor(e,t){super(e,t)}get type(){return b.AttributeSelector}setNamespacePrefix(e){return this.setNode("namespacePrefix",e)}getNamespacePrefix(){return this.namespacePrefix}setIdentifier(e){return this.setNode("identifier",e)}getIdentifier(){return this.identifier}setOperator(e){return this.setNode("operator",e)}getOperator(){return this.operator}setValue(e){return this.setNode("value",e)}getValue(){return this.value}},Vi=class extends O{constructor(e,t){super(e,t)}get type(){return b.HexColorValue}},Gp=class extends O{constructor(e,t){super(e,t)}get type(){return b.RatioValue}},Jp=46,Xp=48,Yp=57,$i=class extends O{constructor(e,t){super(e,t)}get type(){return b.NumericValue}getValue(){const e=this.getText();let t=0,n;for(let r=0,i=e.length;r<i&&(n=e.charCodeAt(r),Xp<=n&&n<=Yp||n===Jp);r++)t+=1;return{value:e.substring(0,t),unit:t<e.length?e.substring(t):void 0}}},cr=class extends zi{constructor(e,t){super(e,t),this.needsSemicolon=!0}get type(){return b.VariableDeclaration}setVariable(e){return e?(e.attachTo(this),this.variable=e,!0):!1}getVariable(){return this.variable}getName(){return this.variable?this.variable.getName():""}setValue(e){return e?(e.attachTo(this),this.value=e,!0):!1}getValue(){return this.value}},Bi=class extends O{constructor(e,t){super(e,t)}get type(){return b.Interpolation}},qi=class extends O{constructor(e,t){super(e,t)}get type(){return b.VariableName}getName(){return this.getText()}},En=class extends O{constructor(e,t){super(e,t)}get type(){return b.ExtendsReference}getSelectors(){return this.selectors||(this.selectors=new ye(this)),this.selectors}},Qp=class extends O{constructor(e,t){super(e,t)}get type(){return b.MixinContentReference}getArguments(){return this.arguments||(this.arguments=new ye(this)),this.arguments}},Kp=class extends se{constructor(e,t){super(e,t)}get type(){return b.MixinContentDeclaration}getParameters(){return this.parameters||(this.parameters=new ye(this)),this.parameters}},hr=class extends O{constructor(e,t){super(e,t)}get type(){return b.MixinReference}getNamespaces(){return this.namespaces||(this.namespaces=new ye(this)),this.namespaces}setIdentifier(e){return this.setNode("identifier",e,0)}getIdentifier(){return this.identifier}getName(){return this.identifier?this.identifier.getText():""}getArguments(){return this.arguments||(this.arguments=new ye(this)),this.arguments}setContent(e){return this.setNode("content",e)}getContent(){return this.content}},Fn=class extends se{constructor(e,t){super(e,t)}get type(){return b.MixinDeclaration}setIdentifier(e){return this.setNode("identifier",e,0)}getIdentifier(){return this.identifier}getName(){return this.identifier?this.identifier.getText():""}getParameters(){return this.parameters||(this.parameters=new ye(this)),this.parameters}setGuard(e){return e&&(e.attachTo(this),this.guard=e),!1}},El=class extends se{constructor(e,t){super(e,t)}get type(){return b.UnknownAtRule}setAtRuleName(e){this.atRuleName=e}getAtRuleName(){return this.atRuleName}},Zp=class extends O{get type(){return b.ListEntry}setKey(e){return this.setNode("key",e,0)}setValue(e){return this.setNode("value",e,1)}},em=class extends O{getConditions(){return this.conditions||(this.conditions=new ye(this)),this.conditions}},tm=class extends O{setVariable(e){return this.setNode("variable",e)}},Fl=class extends O{get type(){return b.Module}setIdentifier(e){return this.setNode("identifier",e,0)}getIdentifier(){return this.identifier}},Re;(function(e){e[e.Ignore=1]="Ignore",e[e.Warning=2]="Warning",e[e.Error=4]="Error"})(Re||(Re={}));var Rl=class{constructor(e,t,n,r,i=e.offset,s=e.length){this.node=e,this.rule=t,this.level=n,this.message=r||t.message,this.offset=i,this.length=s}getRule(){return this.rule}getLevel(){return this.level}getOffset(){return this.offset}getLength(){return this.length}getNode(){return this.node}getMessage(){return this.message}},nm=class vh{static entries(t){const n=new vh;return t.acceptVisitor(n),n.entries}constructor(){this.entries=[]}visitNode(t){return t.isErroneous()&&t.collectIssues(this.entries),!0}};function g(...e){const t=e[0];let n,r,i;if(typeof t=="string")n=t,r=t,e.splice(0,1),i=!e||typeof e[0]!="object"?e:e[0];else if(t instanceof Array){const s=e.slice(1);if(t.length!==s.length+1)throw new Error("expected a string as the first argument to l10n.t");let a=t[0];for(let l=1;l<t.length;l++)a+=\`{\${l-1}}\`+t[l];return g(a,...s)}else r=t.message,n=r,t.comment&&t.comment.length>0&&(n+=\`/\${Array.isArray(t.comment)?t.comment.join(""):t.comment}\`),i=t.args??{};return im(r,i)}var rm=/{([^}]+)}/g;function im(e,t){return Object.keys(t).length===0?e:e.replace(rm,(n,r)=>t[r]??n)}var K=class{constructor(e,t){this.id=e,this.message=t}},y={NumberExpected:new K("css-numberexpected",g("number expected")),ConditionExpected:new K("css-conditionexpected",g("condition expected")),RuleOrSelectorExpected:new K("css-ruleorselectorexpected",g("at-rule or selector expected")),DotExpected:new K("css-dotexpected",g("dot expected")),ColonExpected:new K("css-colonexpected",g("colon expected")),SemiColonExpected:new K("css-semicolonexpected",g("semi-colon expected")),TermExpected:new K("css-termexpected",g("term expected")),ExpressionExpected:new K("css-expressionexpected",g("expression expected")),OperatorExpected:new K("css-operatorexpected",g("operator expected")),IdentifierExpected:new K("css-identifierexpected",g("identifier expected")),PercentageExpected:new K("css-percentageexpected",g("percentage expected")),URIOrStringExpected:new K("css-uriorstringexpected",g("uri or string expected")),URIExpected:new K("css-uriexpected",g("URI expected")),VariableNameExpected:new K("css-varnameexpected",g("variable name expected")),VariableValueExpected:new K("css-varvalueexpected",g("variable value expected")),PropertyValueExpected:new K("css-propertyvalueexpected",g("property value expected")),LeftCurlyExpected:new K("css-lcurlyexpected",g("{ expected")),RightCurlyExpected:new K("css-rcurlyexpected",g("} expected")),LeftSquareBracketExpected:new K("css-rbracketexpected",g("[ expected")),RightSquareBracketExpected:new K("css-lbracketexpected",g("] expected")),LeftParenthesisExpected:new K("css-lparentexpected",g("( expected")),RightParenthesisExpected:new K("css-rparentexpected",g(") expected")),CommaExpected:new K("css-commaexpected",g("comma expected")),PageDirectiveOrDeclarationExpected:new K("css-pagedirordeclexpected",g("page directive or declaraton expected")),UnknownAtRule:new K("css-unknownatrule",g("at-rule unknown")),UnknownKeyword:new K("css-unknownkeyword",g("unknown keyword")),SelectorExpected:new K("css-selectorexpected",g("selector expected")),StringLiteralExpected:new K("css-stringliteralexpected",g("string literal expected")),WhitespaceExpected:new K("css-whitespaceexpected",g("whitespace expected")),MediaQueryExpected:new K("css-mediaqueryexpected",g("media query expected")),IdentifierOrWildcardExpected:new K("css-idorwildcardexpected",g("identifier or wildcard expected")),WildcardExpected:new K("css-wildcardexpected",g("wildcard expected")),IdentifierOrVariableExpected:new K("css-idorvarexpected",g("identifier or variable expected"))},Nl;(function(e){function t(n){return typeof n=="string"}e.is=t})(Nl||(Nl={}));var ji;(function(e){function t(n){return typeof n=="string"}e.is=t})(ji||(ji={}));var Dl;(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})(Dl||(Dl={}));var dr;(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})(dr||(dr={}));var xe;(function(e){function t(r,i){return r===Number.MAX_VALUE&&(r=dr.MAX_VALUE),i===Number.MAX_VALUE&&(i=dr.MAX_VALUE),{line:r,character:i}}e.create=t;function n(r){let i=r;return x.objectLiteral(i)&&x.uinteger(i.line)&&x.uinteger(i.character)}e.is=n})(xe||(xe={}));var X;(function(e){function t(r,i,s,a){if(x.uinteger(r)&&x.uinteger(i)&&x.uinteger(s)&&x.uinteger(a))return{start:xe.create(r,i),end:xe.create(s,a)};if(xe.is(r)&&xe.is(i))return{start:r,end:i};throw new Error(\`Range#create called with invalid arguments[\${r}, \${i}, \${s}, \${a}]\`)}e.create=t;function n(r){let i=r;return x.objectLiteral(i)&&xe.is(i.start)&&xe.is(i.end)}e.is=n})(X||(X={}));var Rn;(function(e){function t(r,i){return{uri:r,range:i}}e.create=t;function n(r){let i=r;return x.objectLiteral(i)&&X.is(i.range)&&(x.string(i.uri)||x.undefined(i.uri))}e.is=n})(Rn||(Rn={}));var Il;(function(e){function t(r,i,s,a){return{targetUri:r,targetRange:i,targetSelectionRange:s,originSelectionRange:a}}e.create=t;function n(r){let i=r;return x.objectLiteral(i)&&X.is(i.targetRange)&&x.string(i.targetUri)&&X.is(i.targetSelectionRange)&&(X.is(i.originSelectionRange)||x.undefined(i.originSelectionRange))}e.is=n})(Il||(Il={}));var Hi;(function(e){function t(r,i,s,a){return{red:r,green:i,blue:s,alpha:a}}e.create=t;function n(r){const i=r;return x.objectLiteral(i)&&x.numberRange(i.red,0,1)&&x.numberRange(i.green,0,1)&&x.numberRange(i.blue,0,1)&&x.numberRange(i.alpha,0,1)}e.is=n})(Hi||(Hi={}));var Al;(function(e){function t(r,i){return{range:r,color:i}}e.create=t;function n(r){const i=r;return x.objectLiteral(i)&&X.is(i.range)&&Hi.is(i.color)}e.is=n})(Al||(Al={}));var Ml;(function(e){function t(r,i,s){return{label:r,textEdit:i,additionalTextEdits:s}}e.create=t;function n(r){const i=r;return x.objectLiteral(i)&&x.string(i.label)&&(x.undefined(i.textEdit)||$.is(i))&&(x.undefined(i.additionalTextEdits)||x.typedArray(i.additionalTextEdits,$.is))}e.is=n})(Ml||(Ml={}));var Ll;(function(e){e.Comment="comment",e.Imports="imports",e.Region="region"})(Ll||(Ll={}));var zl;(function(e){function t(r,i,s,a,l,o){const c={startLine:r,endLine:i};return x.defined(s)&&(c.startCharacter=s),x.defined(a)&&(c.endCharacter=a),x.defined(l)&&(c.kind=l),x.defined(o)&&(c.collapsedText=o),c}e.create=t;function n(r){const i=r;return x.objectLiteral(i)&&x.uinteger(i.startLine)&&x.uinteger(i.startLine)&&(x.undefined(i.startCharacter)||x.uinteger(i.startCharacter))&&(x.undefined(i.endCharacter)||x.uinteger(i.endCharacter))&&(x.undefined(i.kind)||x.string(i.kind))}e.is=n})(zl||(zl={}));var Gi;(function(e){function t(r,i){return{location:r,message:i}}e.create=t;function n(r){let i=r;return x.defined(i)&&Rn.is(i.location)&&x.string(i.message)}e.is=n})(Gi||(Gi={}));var ur;(function(e){e.Error=1,e.Warning=2,e.Information=3,e.Hint=4})(ur||(ur={}));var Pl;(function(e){e.Unnecessary=1,e.Deprecated=2})(Pl||(Pl={}));var Tl;(function(e){function t(n){const r=n;return x.objectLiteral(r)&&x.string(r.href)}e.is=t})(Tl||(Tl={}));var pr;(function(e){function t(r,i,s,a,l,o){let c={range:r,message:i};return x.defined(s)&&(c.severity=s),x.defined(a)&&(c.code=a),x.defined(l)&&(c.source=l),x.defined(o)&&(c.relatedInformation=o),c}e.create=t;function n(r){var i;let s=r;return x.defined(s)&&X.is(s.range)&&x.string(s.message)&&(x.number(s.severity)||x.undefined(s.severity))&&(x.integer(s.code)||x.string(s.code)||x.undefined(s.code))&&(x.undefined(s.codeDescription)||x.string((i=s.codeDescription)===null||i===void 0?void 0:i.href))&&(x.string(s.source)||x.undefined(s.source))&&(x.undefined(s.relatedInformation)||x.typedArray(s.relatedInformation,Gi.is))}e.is=n})(pr||(pr={}));var Ft;(function(e){function t(r,i,...s){let a={title:r,command:i};return x.defined(s)&&s.length>0&&(a.arguments=s),a}e.create=t;function n(r){let i=r;return x.defined(i)&&x.string(i.title)&&x.string(i.command)}e.is=n})(Ft||(Ft={}));var $;(function(e){function t(s,a){return{range:s,newText:a}}e.replace=t;function n(s,a){return{range:{start:s,end:s},newText:a}}e.insert=n;function r(s){return{range:s,newText:""}}e.del=r;function i(s){const a=s;return x.objectLiteral(a)&&x.string(a.newText)&&X.is(a.range)}e.is=i})($||($={}));var Ji;(function(e){function t(r,i,s){const a={label:r};return i!==void 0&&(a.needsConfirmation=i),s!==void 0&&(a.description=s),a}e.create=t;function n(r){const i=r;return x.objectLiteral(i)&&x.string(i.label)&&(x.boolean(i.needsConfirmation)||i.needsConfirmation===void 0)&&(x.string(i.description)||i.description===void 0)}e.is=n})(Ji||(Ji={}));var Yt;(function(e){function t(n){const r=n;return x.string(r)}e.is=t})(Yt||(Yt={}));var Ol;(function(e){function t(s,a,l){return{range:s,newText:a,annotationId:l}}e.replace=t;function n(s,a,l){return{range:{start:s,end:s},newText:a,annotationId:l}}e.insert=n;function r(s,a){return{range:s,newText:"",annotationId:a}}e.del=r;function i(s){const a=s;return $.is(a)&&(Ji.is(a.annotationId)||Yt.is(a.annotationId))}e.is=i})(Ol||(Ol={}));var mr;(function(e){function t(r,i){return{textDocument:r,edits:i}}e.create=t;function n(r){let i=r;return x.defined(i)&&es.is(i.textDocument)&&Array.isArray(i.edits)}e.is=n})(mr||(mr={}));var Xi;(function(e){function t(r,i,s){let a={kind:"create",uri:r};return i!==void 0&&(i.overwrite!==void 0||i.ignoreIfExists!==void 0)&&(a.options=i),s!==void 0&&(a.annotationId=s),a}e.create=t;function n(r){let i=r;return i&&i.kind==="create"&&x.string(i.uri)&&(i.options===void 0||(i.options.overwrite===void 0||x.boolean(i.options.overwrite))&&(i.options.ignoreIfExists===void 0||x.boolean(i.options.ignoreIfExists)))&&(i.annotationId===void 0||Yt.is(i.annotationId))}e.is=n})(Xi||(Xi={}));var Yi;(function(e){function t(r,i,s,a){let l={kind:"rename",oldUri:r,newUri:i};return s!==void 0&&(s.overwrite!==void 0||s.ignoreIfExists!==void 0)&&(l.options=s),a!==void 0&&(l.annotationId=a),l}e.create=t;function n(r){let i=r;return i&&i.kind==="rename"&&x.string(i.oldUri)&&x.string(i.newUri)&&(i.options===void 0||(i.options.overwrite===void 0||x.boolean(i.options.overwrite))&&(i.options.ignoreIfExists===void 0||x.boolean(i.options.ignoreIfExists)))&&(i.annotationId===void 0||Yt.is(i.annotationId))}e.is=n})(Yi||(Yi={}));var Qi;(function(e){function t(r,i,s){let a={kind:"delete",uri:r};return i!==void 0&&(i.recursive!==void 0||i.ignoreIfNotExists!==void 0)&&(a.options=i),s!==void 0&&(a.annotationId=s),a}e.create=t;function n(r){let i=r;return i&&i.kind==="delete"&&x.string(i.uri)&&(i.options===void 0||(i.options.recursive===void 0||x.boolean(i.options.recursive))&&(i.options.ignoreIfNotExists===void 0||x.boolean(i.options.ignoreIfNotExists)))&&(i.annotationId===void 0||Yt.is(i.annotationId))}e.is=n})(Qi||(Qi={}));var Ki;(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=>x.string(i.kind)?Xi.is(i)||Yi.is(i)||Qi.is(i):mr.is(i)))}e.is=t})(Ki||(Ki={}));var Wl;(function(e){function t(r){return{uri:r}}e.create=t;function n(r){let i=r;return x.defined(i)&&x.string(i.uri)}e.is=n})(Wl||(Wl={}));var Zi;(function(e){function t(r,i){return{uri:r,version:i}}e.create=t;function n(r){let i=r;return x.defined(i)&&x.string(i.uri)&&x.integer(i.version)}e.is=n})(Zi||(Zi={}));var es;(function(e){function t(r,i){return{uri:r,version:i}}e.create=t;function n(r){let i=r;return x.defined(i)&&x.string(i.uri)&&(i.version===null||x.integer(i.version))}e.is=n})(es||(es={}));var Ul;(function(e){function t(r,i,s,a){return{uri:r,languageId:i,version:s,text:a}}e.create=t;function n(r){let i=r;return x.defined(i)&&x.string(i.uri)&&x.string(i.languageId)&&x.integer(i.version)&&x.string(i.text)}e.is=n})(Ul||(Ul={}));var je;(function(e){e.PlainText="plaintext",e.Markdown="markdown";function t(n){const r=n;return r===e.PlainText||r===e.Markdown}e.is=t})(je||(je={}));var Nn;(function(e){function t(n){const r=n;return x.objectLiteral(n)&&je.is(r.kind)&&x.string(r.value)}e.is=t})(Nn||(Nn={}));var V;(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})(V||(V={}));var Ne;(function(e){e.PlainText=1,e.Snippet=2})(Ne||(Ne={}));var Rt;(function(e){e.Deprecated=1})(Rt||(Rt={}));var Vl;(function(e){function t(r,i,s){return{newText:r,insert:i,replace:s}}e.create=t;function n(r){const i=r;return i&&x.string(i.newText)&&X.is(i.insert)&&X.is(i.replace)}e.is=n})(Vl||(Vl={}));var $l;(function(e){e.asIs=1,e.adjustIndentation=2})($l||($l={}));var Bl;(function(e){function t(n){const r=n;return r&&(x.string(r.detail)||r.detail===void 0)&&(x.string(r.description)||r.description===void 0)}e.is=t})(Bl||(Bl={}));var ql;(function(e){function t(n){return{label:n}}e.create=t})(ql||(ql={}));var jl;(function(e){function t(n,r){return{items:n||[],isIncomplete:!!r}}e.create=t})(jl||(jl={}));var fr;(function(e){function t(r){return r.replace(/[\\\\\`*_{}[\\]()#+\\-.!]/g,"\\\\$&")}e.fromPlainText=t;function n(r){const i=r;return x.string(i)||x.objectLiteral(i)&&x.string(i.language)&&x.string(i.value)}e.is=n})(fr||(fr={}));var Hl;(function(e){function t(n){let r=n;return!!r&&x.objectLiteral(r)&&(Nn.is(r.contents)||fr.is(r.contents)||x.typedArray(r.contents,fr.is))&&(n.range===void 0||X.is(n.range))}e.is=t})(Hl||(Hl={}));var Gl;(function(e){function t(n,r){return r?{label:n,documentation:r}:{label:n}}e.create=t})(Gl||(Gl={}));var Jl;(function(e){function t(n,r,...i){let s={label:n};return x.defined(r)&&(s.documentation=r),x.defined(i)?s.parameters=i:s.parameters=[],s}e.create=t})(Jl||(Jl={}));var Qt;(function(e){e.Text=1,e.Read=2,e.Write=3})(Qt||(Qt={}));var Xl;(function(e){function t(n,r){let i={range:n};return x.number(r)&&(i.kind=r),i}e.create=t})(Xl||(Xl={}));var nt;(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})(nt||(nt={}));var Yl;(function(e){e.Deprecated=1})(Yl||(Yl={}));var Ql;(function(e){function t(n,r,i,s,a){let l={name:n,kind:r,location:{uri:s,range:i}};return a&&(l.containerName=a),l}e.create=t})(Ql||(Ql={}));var Kl;(function(e){function t(n,r,i,s){return s!==void 0?{name:n,kind:r,location:{uri:i,range:s}}:{name:n,kind:r,location:{uri:i}}}e.create=t})(Kl||(Kl={}));var Zl;(function(e){function t(r,i,s,a,l,o){let c={name:r,detail:i,kind:s,range:a,selectionRange:l};return o!==void 0&&(c.children=o),c}e.create=t;function n(r){let i=r;return i&&x.string(i.name)&&x.number(i.kind)&&X.is(i.range)&&X.is(i.selectionRange)&&(i.detail===void 0||x.string(i.detail))&&(i.deprecated===void 0||x.boolean(i.deprecated))&&(i.children===void 0||Array.isArray(i.children))&&(i.tags===void 0||Array.isArray(i.tags))}e.is=n})(Zl||(Zl={}));var ts;(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"})(ts||(ts={}));var gr;(function(e){e.Invoked=1,e.Automatic=2})(gr||(gr={}));var ec;(function(e){function t(r,i,s){let a={diagnostics:r};return i!=null&&(a.only=i),s!=null&&(a.triggerKind=s),a}e.create=t;function n(r){let i=r;return x.defined(i)&&x.typedArray(i.diagnostics,pr.is)&&(i.only===void 0||x.typedArray(i.only,x.string))&&(i.triggerKind===void 0||i.triggerKind===gr.Invoked||i.triggerKind===gr.Automatic)}e.is=n})(ec||(ec={}));var ns;(function(e){function t(r,i,s){let a={title:r},l=!0;return typeof i=="string"?(l=!1,a.kind=i):Ft.is(i)?a.command=i:a.edit=i,l&&s!==void 0&&(a.kind=s),a}e.create=t;function n(r){let i=r;return i&&x.string(i.title)&&(i.diagnostics===void 0||x.typedArray(i.diagnostics,pr.is))&&(i.kind===void 0||x.string(i.kind))&&(i.edit!==void 0||i.command!==void 0)&&(i.command===void 0||Ft.is(i.command))&&(i.isPreferred===void 0||x.boolean(i.isPreferred))&&(i.edit===void 0||Ki.is(i.edit))}e.is=n})(ns||(ns={}));var tc;(function(e){function t(r,i){let s={range:r};return x.defined(i)&&(s.data=i),s}e.create=t;function n(r){let i=r;return x.defined(i)&&X.is(i.range)&&(x.undefined(i.command)||Ft.is(i.command))}e.is=n})(tc||(tc={}));var nc;(function(e){function t(r,i){return{tabSize:r,insertSpaces:i}}e.create=t;function n(r){let i=r;return x.defined(i)&&x.uinteger(i.tabSize)&&x.boolean(i.insertSpaces)}e.is=n})(nc||(nc={}));var rc;(function(e){function t(r,i,s){return{range:r,target:i,data:s}}e.create=t;function n(r){let i=r;return x.defined(i)&&X.is(i.range)&&(x.undefined(i.target)||x.string(i.target))}e.is=n})(rc||(rc={}));var br;(function(e){function t(r,i){return{range:r,parent:i}}e.create=t;function n(r){let i=r;return x.objectLiteral(i)&&X.is(i.range)&&(i.parent===void 0||e.is(i.parent))}e.is=n})(br||(br={}));var ic;(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"})(ic||(ic={}));var sc;(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"})(sc||(sc={}));var ac;(function(e){function t(n){const r=n;return x.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})(ac||(ac={}));var oc;(function(e){function t(r,i){return{range:r,text:i}}e.create=t;function n(r){const i=r;return i!=null&&X.is(i.range)&&x.string(i.text)}e.is=n})(oc||(oc={}));var lc;(function(e){function t(r,i,s){return{range:r,variableName:i,caseSensitiveLookup:s}}e.create=t;function n(r){const i=r;return i!=null&&X.is(i.range)&&x.boolean(i.caseSensitiveLookup)&&(x.string(i.variableName)||i.variableName===void 0)}e.is=n})(lc||(lc={}));var cc;(function(e){function t(r,i){return{range:r,expression:i}}e.create=t;function n(r){const i=r;return i!=null&&X.is(i.range)&&(x.string(i.expression)||i.expression===void 0)}e.is=n})(cc||(cc={}));var hc;(function(e){function t(r,i){return{frameId:r,stoppedLocation:i}}e.create=t;function n(r){const i=r;return x.defined(i)&&X.is(r.stoppedLocation)}e.is=n})(hc||(hc={}));var rs;(function(e){e.Type=1,e.Parameter=2;function t(n){return n===1||n===2}e.is=t})(rs||(rs={}));var is;(function(e){function t(r){return{value:r}}e.create=t;function n(r){const i=r;return x.objectLiteral(i)&&(i.tooltip===void 0||x.string(i.tooltip)||Nn.is(i.tooltip))&&(i.location===void 0||Rn.is(i.location))&&(i.command===void 0||Ft.is(i.command))}e.is=n})(is||(is={}));var dc;(function(e){function t(r,i,s){const a={position:r,label:i};return s!==void 0&&(a.kind=s),a}e.create=t;function n(r){const i=r;return x.objectLiteral(i)&&xe.is(i.position)&&(x.string(i.label)||x.typedArray(i.label,is.is))&&(i.kind===void 0||rs.is(i.kind))&&i.textEdits===void 0||x.typedArray(i.textEdits,$.is)&&(i.tooltip===void 0||x.string(i.tooltip)||Nn.is(i.tooltip))&&(i.paddingLeft===void 0||x.boolean(i.paddingLeft))&&(i.paddingRight===void 0||x.boolean(i.paddingRight))}e.is=n})(dc||(dc={}));var uc;(function(e){function t(n){return{kind:"snippet",value:n}}e.createSnippet=t})(uc||(uc={}));var pc;(function(e){function t(n,r,i,s){return{insertText:n,filterText:r,range:i,command:s}}e.create=t})(pc||(pc={}));var mc;(function(e){function t(n){return{items:n}}e.create=t})(mc||(mc={}));var fc;(function(e){e.Invoked=0,e.Automatic=1})(fc||(fc={}));var gc;(function(e){function t(n,r){return{range:n,text:r}}e.create=t})(gc||(gc={}));var bc;(function(e){function t(n,r){return{triggerKind:n,selectedCompletionInfo:r}}e.create=t})(bc||(bc={}));var vc;(function(e){function t(n){const r=n;return x.objectLiteral(r)&&ji.is(r.uri)&&x.string(r.name)}e.is=t})(vc||(vc={}));var wc;(function(e){function t(s,a,l,o){return new sm(s,a,l,o)}e.create=t;function n(s){let a=s;return!!(x.defined(a)&&x.string(a.uri)&&(x.undefined(a.languageId)||x.string(a.languageId))&&x.uinteger(a.lineCount)&&x.func(a.getText)&&x.func(a.positionAt)&&x.func(a.offsetAt))}e.is=n;function r(s,a){let l=s.getText(),o=i(a,(d,u)=>{let f=d.range.start.line-u.range.start.line;return f===0?d.range.start.character-u.range.start.character:f}),c=l.length;for(let d=o.length-1;d>=0;d--){let u=o[d],f=s.offsetAt(u.range.start),m=s.offsetAt(u.range.end);if(m<=c)l=l.substring(0,f)+u.newText+l.substring(m,l.length);else throw new Error("Overlapping edit");c=f}return l}e.applyEdits=r;function i(s,a){if(s.length<=1)return s;const l=s.length/2|0,o=s.slice(0,l),c=s.slice(l);i(o,a),i(c,a);let d=0,u=0,f=0;for(;d<o.length&&u<c.length;)a(o[d],c[u])<=0?s[f++]=o[d++]:s[f++]=c[u++];for(;d<o.length;)s[f++]=o[d++];for(;u<c.length;)s[f++]=c[u++];return s}})(wc||(wc={}));var sm=class{constructor(e,t,n,r){this._uri=e,this._languageId=t,this._version=n,this._content=r,this._lineOffsets=void 0}get uri(){return this._uri}get languageId(){return this._languageId}get version(){return this._version}getText(e){if(e){let t=this.offsetAt(e.start),n=this.offsetAt(e.end);return this._content.substring(t,n)}return this._content}update(e,t){this._content=e.text,this._version=t,this._lineOffsets=void 0}getLineOffsets(){if(this._lineOffsets===void 0){let e=[],t=this._content,n=!0;for(let r=0;r<t.length;r++){n&&(e.push(r),n=!1);let i=t.charAt(r);n=i==="\\r"||i===\`
17
+ *-----------------------------------------------------------------------------*/var p;(function(e){e[e.Ident=0]="Ident",e[e.AtKeyword=1]="AtKeyword",e[e.String=2]="String",e[e.BadString=3]="BadString",e[e.UnquotedString=4]="UnquotedString",e[e.Hash=5]="Hash",e[e.Num=6]="Num",e[e.Percentage=7]="Percentage",e[e.Dimension=8]="Dimension",e[e.UnicodeRange=9]="UnicodeRange",e[e.CDO=10]="CDO",e[e.CDC=11]="CDC",e[e.Colon=12]="Colon",e[e.SemiColon=13]="SemiColon",e[e.CurlyL=14]="CurlyL",e[e.CurlyR=15]="CurlyR",e[e.ParenthesisL=16]="ParenthesisL",e[e.ParenthesisR=17]="ParenthesisR",e[e.BracketL=18]="BracketL",e[e.BracketR=19]="BracketR",e[e.Whitespace=20]="Whitespace",e[e.Includes=21]="Includes",e[e.Dashmatch=22]="Dashmatch",e[e.SubstringOperator=23]="SubstringOperator",e[e.PrefixOperator=24]="PrefixOperator",e[e.SuffixOperator=25]="SuffixOperator",e[e.Delim=26]="Delim",e[e.EMS=27]="EMS",e[e.EXS=28]="EXS",e[e.Length=29]="Length",e[e.Angle=30]="Angle",e[e.Time=31]="Time",e[e.Freq=32]="Freq",e[e.Exclamation=33]="Exclamation",e[e.Resolution=34]="Resolution",e[e.Comma=35]="Comma",e[e.Charset=36]="Charset",e[e.EscapedJavaScript=37]="EscapedJavaScript",e[e.BadEscapedJavaScript=38]="BadEscapedJavaScript",e[e.Comment=39]="Comment",e[e.SingleLineComment=40]="SingleLineComment",e[e.EOF=41]="EOF",e[e.ContainerQueryLength=42]="ContainerQueryLength",e[e.CustomToken=43]="CustomToken"})(p||(p={}));var rl=class{constructor(e){this.source=e,this.len=e.length,this.position=0}substring(e,t=this.position){return this.source.substring(e,t)}eos(){return this.len<=this.position}pos(){return this.position}goBackTo(e){this.position=e}goBack(e){this.position-=e}advance(e){this.position+=e}nextChar(){return this.source.charCodeAt(this.position++)||0}peekChar(e=0){return this.source.charCodeAt(this.position+e)||0}lookbackChar(e=0){return this.source.charCodeAt(this.position-e)||0}advanceIfChar(e){return e===this.source.charCodeAt(this.position)?(this.position++,!0):!1}advanceIfChars(e){if(this.position+e.length>this.source.length)return!1;let t=0;for(;t<e.length;t++)if(this.source.charCodeAt(this.position+t)!==e[t])return!1;return this.advance(t),!0}advanceWhileChar(e){const t=this.position;for(;this.position<this.len&&e(this.source.charCodeAt(this.position));)this.position++;return this.position-t}},ar=97,il=102,sl=122,or=65,al=70,ol=90,vn=48,wn=57,ep=126,tp=94,yn=61,np=124,kt=45,ll=95,rp=37,Ri=42,cl=40,hl=41,ip=60,sp=62,ap=64,op=35,lp=36,Ni=92,dl=47,Ht=10,Gt=13,xn=12,ul=34,pl=39,Di=32,Ii=9,cp=59,hp=58,dp=123,up=125,pp=91,mp=93,fp=44,ml=46,fl=33,gp=63,bp=43,Be={};Be[cp]=p.SemiColon,Be[hp]=p.Colon,Be[dp]=p.CurlyL,Be[up]=p.CurlyR,Be[mp]=p.BracketR,Be[pp]=p.BracketL,Be[cl]=p.ParenthesisL,Be[hl]=p.ParenthesisR,Be[fp]=p.Comma;var ie={};ie.em=p.EMS,ie.ex=p.EXS,ie.px=p.Length,ie.cm=p.Length,ie.mm=p.Length,ie.in=p.Length,ie.pt=p.Length,ie.pc=p.Length,ie.deg=p.Angle,ie.rad=p.Angle,ie.grad=p.Angle,ie.ms=p.Time,ie.s=p.Time,ie.hz=p.Freq,ie.khz=p.Freq,ie["%"]=p.Percentage,ie.fr=p.Percentage,ie.dpi=p.Resolution,ie.dpcm=p.Resolution,ie.cqw=p.ContainerQueryLength,ie.cqh=p.ContainerQueryLength,ie.cqi=p.ContainerQueryLength,ie.cqb=p.ContainerQueryLength,ie.cqmin=p.ContainerQueryLength,ie.cqmax=p.ContainerQueryLength;var Sn=class{constructor(){this.stream=new rl(""),this.ignoreComment=!0,this.ignoreWhitespace=!0,this.inURL=!1}setSource(e){this.stream=new rl(e)}finishToken(e,t,n){return{offset:e,len:this.stream.pos()-e,type:t,text:n||this.stream.substring(e)}}substring(e,t){return this.stream.substring(e,e+t)}pos(){return this.stream.pos()}goBackTo(e){this.stream.goBackTo(e)}scanUnquotedString(){const e=this.stream.pos(),t=[];return this._unquotedString(t)?this.finishToken(e,p.UnquotedString,t.join("")):null}scan(){const e=this.trivia();if(e!==null)return e;const t=this.stream.pos();return this.stream.eos()?this.finishToken(t,p.EOF):this.scanNext(t)}tryScanUnicode(){const e=this.stream.pos();if(!this.stream.eos()&&this._unicodeRange())return this.finishToken(e,p.UnicodeRange);this.stream.goBackTo(e)}scanNext(e){if(this.stream.advanceIfChars([ip,fl,kt,kt]))return this.finishToken(e,p.CDO);if(this.stream.advanceIfChars([kt,kt,sp]))return this.finishToken(e,p.CDC);let t=[];if(this.ident(t))return this.finishToken(e,p.Ident,t.join(""));if(this.stream.advanceIfChar(ap))if(t=["@"],this._name(t)){const r=t.join("");return r==="@charset"?this.finishToken(e,p.Charset,r):this.finishToken(e,p.AtKeyword,r)}else return this.finishToken(e,p.Delim);if(this.stream.advanceIfChar(op))return t=["#"],this._name(t)?this.finishToken(e,p.Hash,t.join("")):this.finishToken(e,p.Delim);if(this.stream.advanceIfChar(fl))return this.finishToken(e,p.Exclamation);if(this._number()){const r=this.stream.pos();if(t=[this.stream.substring(e,r)],this.stream.advanceIfChar(rp))return this.finishToken(e,p.Percentage);if(this.ident(t)){const i=this.stream.substring(r).toLowerCase(),s=ie[i];return typeof s<"u"?this.finishToken(e,s,t.join("")):this.finishToken(e,p.Dimension,t.join(""))}return this.finishToken(e,p.Num)}t=[];let n=this._string(t);return n!==null?this.finishToken(e,n,t.join("")):(n=Be[this.stream.peekChar()],typeof n<"u"?(this.stream.advance(1),this.finishToken(e,n)):this.stream.peekChar(0)===ep&&this.stream.peekChar(1)===yn?(this.stream.advance(2),this.finishToken(e,p.Includes)):this.stream.peekChar(0)===np&&this.stream.peekChar(1)===yn?(this.stream.advance(2),this.finishToken(e,p.Dashmatch)):this.stream.peekChar(0)===Ri&&this.stream.peekChar(1)===yn?(this.stream.advance(2),this.finishToken(e,p.SubstringOperator)):this.stream.peekChar(0)===tp&&this.stream.peekChar(1)===yn?(this.stream.advance(2),this.finishToken(e,p.PrefixOperator)):this.stream.peekChar(0)===lp&&this.stream.peekChar(1)===yn?(this.stream.advance(2),this.finishToken(e,p.SuffixOperator)):(this.stream.nextChar(),this.finishToken(e,p.Delim)))}trivia(){for(;;){const e=this.stream.pos();if(this._whitespace()){if(!this.ignoreWhitespace)return this.finishToken(e,p.Whitespace)}else if(this.comment()){if(!this.ignoreComment)return this.finishToken(e,p.Comment)}else return null}}comment(){if(this.stream.advanceIfChars([dl,Ri])){let e=!1,t=!1;return this.stream.advanceWhileChar(n=>t&&n===dl?(e=!0,!1):(t=n===Ri,!0)),e&&this.stream.advance(1),!0}return!1}_number(){let e=0,t;return this.stream.peekChar()===ml&&(e=1),t=this.stream.peekChar(e),t>=vn&&t<=wn?(this.stream.advance(e+1),this.stream.advanceWhileChar(n=>n>=vn&&n<=wn||e===0&&n===ml),!0):!1}_newline(e){const t=this.stream.peekChar();switch(t){case Gt:case xn:case Ht:return this.stream.advance(1),e.push(String.fromCharCode(t)),t===Gt&&this.stream.advanceIfChar(Ht)&&e.push(\`
18
+ \`),!0}return!1}_escape(e,t){let n=this.stream.peekChar();if(n===Ni){this.stream.advance(1),n=this.stream.peekChar();let r=0;for(;r<6&&(n>=vn&&n<=wn||n>=ar&&n<=il||n>=or&&n<=al);)this.stream.advance(1),n=this.stream.peekChar(),r++;if(r>0){try{const i=parseInt(this.stream.substring(this.stream.pos()-r),16);i&&e.push(String.fromCharCode(i))}catch{}return n===Di||n===Ii?this.stream.advance(1):this._newline([]),!0}if(n!==Gt&&n!==xn&&n!==Ht)return this.stream.advance(1),e.push(String.fromCharCode(n)),!0;if(t)return this._newline(e)}return!1}_stringChar(e,t){const n=this.stream.peekChar();return n!==0&&n!==e&&n!==Ni&&n!==Gt&&n!==xn&&n!==Ht?(this.stream.advance(1),t.push(String.fromCharCode(n)),!0):!1}_string(e){if(this.stream.peekChar()===pl||this.stream.peekChar()===ul){const t=this.stream.nextChar();for(e.push(String.fromCharCode(t));this._stringChar(t,e)||this._escape(e,!0););return this.stream.peekChar()===t?(this.stream.nextChar(),e.push(String.fromCharCode(t)),p.String):p.BadString}return null}_unquotedChar(e){const t=this.stream.peekChar();return t!==0&&t!==Ni&&t!==pl&&t!==ul&&t!==cl&&t!==hl&&t!==Di&&t!==Ii&&t!==Ht&&t!==xn&&t!==Gt?(this.stream.advance(1),e.push(String.fromCharCode(t)),!0):!1}_unquotedString(e){let t=!1;for(;this._unquotedChar(e)||this._escape(e);)t=!0;return t}_whitespace(){return this.stream.advanceWhileChar(t=>t===Di||t===Ii||t===Ht||t===xn||t===Gt)>0}_name(e){let t=!1;for(;this._identChar(e)||this._escape(e);)t=!0;return t}ident(e){const t=this.stream.pos();if(this._minus(e)){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(t),!1}_identFirstChar(e){const t=this.stream.peekChar();return t===ll||t>=ar&&t<=sl||t>=or&&t<=ol||t>=128&&t<=65535?(this.stream.advance(1),e.push(String.fromCharCode(t)),!0):!1}_minus(e){const t=this.stream.peekChar();return t===kt?(this.stream.advance(1),e.push(String.fromCharCode(t)),!0):!1}_identChar(e){const t=this.stream.peekChar();return t===ll||t===kt||t>=ar&&t<=sl||t>=or&&t<=ol||t>=vn&&t<=wn||t>=128&&t<=65535?(this.stream.advance(1),e.push(String.fromCharCode(t)),!0):!1}_unicodeRange(){if(this.stream.advanceIfChar(bp)){const e=n=>n>=vn&&n<=wn||n>=ar&&n<=il||n>=or&&n<=al,t=this.stream.advanceWhileChar(e)+this.stream.advanceWhileChar(n=>n===gp);if(t>=1&&t<=6)if(this.stream.advanceIfChar(kt)){const n=this.stream.advanceWhileChar(e);if(n>=1&&n<=6)return!0}else return!0}return!1}};function pe(e,t){if(e.length<t.length)return!1;for(let n=0;n<t.length;n++)if(e[n]!==t[n])return!1;return!0}function gl(e,t){let n=e.length-t.length;return n>0?e.lastIndexOf(t)===n:n===0?e===t:!1}function vp(e,t,n=4){let r=Math.abs(e.length-t.length);if(r>n)return 0;let i=[],s=[],a,l;for(a=0;a<t.length+1;++a)s.push(0);for(a=0;a<e.length+1;++a)i.push(s);for(a=1;a<e.length+1;++a)for(l=1;l<t.length+1;++l)e[a-1]===t[l-1]?i[a][l]=i[a-1][l-1]+1:i[a][l]=Math.max(i[a-1][l],i[a][l-1]);return i[e.length][t.length]-Math.sqrt(r)}function bl(e,t=!0){return e?e.length<140?e:e.slice(0,140)+(t?"…":""):""}function wp(e,t){const n=t.exec(e);return n&&n[0].length?e.substr(0,e.length-n[0].length):e}function vl(e,t){let n="";for(;t>0;)(t&1)===1&&(n+=e),e+=e,t=t>>>1;return n}var b;(function(e){e[e.Undefined=0]="Undefined",e[e.Identifier=1]="Identifier",e[e.Stylesheet=2]="Stylesheet",e[e.Ruleset=3]="Ruleset",e[e.Selector=4]="Selector",e[e.SimpleSelector=5]="SimpleSelector",e[e.SelectorInterpolation=6]="SelectorInterpolation",e[e.SelectorCombinator=7]="SelectorCombinator",e[e.SelectorCombinatorParent=8]="SelectorCombinatorParent",e[e.SelectorCombinatorSibling=9]="SelectorCombinatorSibling",e[e.SelectorCombinatorAllSiblings=10]="SelectorCombinatorAllSiblings",e[e.SelectorCombinatorShadowPiercingDescendant=11]="SelectorCombinatorShadowPiercingDescendant",e[e.Page=12]="Page",e[e.PageBoxMarginBox=13]="PageBoxMarginBox",e[e.ClassSelector=14]="ClassSelector",e[e.IdentifierSelector=15]="IdentifierSelector",e[e.ElementNameSelector=16]="ElementNameSelector",e[e.PseudoSelector=17]="PseudoSelector",e[e.AttributeSelector=18]="AttributeSelector",e[e.Declaration=19]="Declaration",e[e.Declarations=20]="Declarations",e[e.Property=21]="Property",e[e.Expression=22]="Expression",e[e.BinaryExpression=23]="BinaryExpression",e[e.Term=24]="Term",e[e.Operator=25]="Operator",e[e.Value=26]="Value",e[e.StringLiteral=27]="StringLiteral",e[e.URILiteral=28]="URILiteral",e[e.EscapedValue=29]="EscapedValue",e[e.Function=30]="Function",e[e.NumericValue=31]="NumericValue",e[e.HexColorValue=32]="HexColorValue",e[e.RatioValue=33]="RatioValue",e[e.MixinDeclaration=34]="MixinDeclaration",e[e.MixinReference=35]="MixinReference",e[e.VariableName=36]="VariableName",e[e.VariableDeclaration=37]="VariableDeclaration",e[e.Prio=38]="Prio",e[e.Interpolation=39]="Interpolation",e[e.NestedProperties=40]="NestedProperties",e[e.ExtendsReference=41]="ExtendsReference",e[e.SelectorPlaceholder=42]="SelectorPlaceholder",e[e.Debug=43]="Debug",e[e.If=44]="If",e[e.Else=45]="Else",e[e.For=46]="For",e[e.Each=47]="Each",e[e.While=48]="While",e[e.MixinContentReference=49]="MixinContentReference",e[e.MixinContentDeclaration=50]="MixinContentDeclaration",e[e.Media=51]="Media",e[e.Keyframe=52]="Keyframe",e[e.FontFace=53]="FontFace",e[e.Import=54]="Import",e[e.Namespace=55]="Namespace",e[e.Invocation=56]="Invocation",e[e.FunctionDeclaration=57]="FunctionDeclaration",e[e.ReturnStatement=58]="ReturnStatement",e[e.MediaQuery=59]="MediaQuery",e[e.MediaCondition=60]="MediaCondition",e[e.MediaFeature=61]="MediaFeature",e[e.FunctionParameter=62]="FunctionParameter",e[e.FunctionArgument=63]="FunctionArgument",e[e.KeyframeSelector=64]="KeyframeSelector",e[e.ViewPort=65]="ViewPort",e[e.Document=66]="Document",e[e.AtApplyRule=67]="AtApplyRule",e[e.CustomPropertyDeclaration=68]="CustomPropertyDeclaration",e[e.CustomPropertySet=69]="CustomPropertySet",e[e.ListEntry=70]="ListEntry",e[e.Supports=71]="Supports",e[e.SupportsCondition=72]="SupportsCondition",e[e.NamespacePrefix=73]="NamespacePrefix",e[e.GridLine=74]="GridLine",e[e.Plugin=75]="Plugin",e[e.UnknownAtRule=76]="UnknownAtRule",e[e.Use=77]="Use",e[e.ModuleConfiguration=78]="ModuleConfiguration",e[e.Forward=79]="Forward",e[e.ForwardVisibility=80]="ForwardVisibility",e[e.Module=81]="Module",e[e.UnicodeRange=82]="UnicodeRange",e[e.Layer=83]="Layer",e[e.LayerNameList=84]="LayerNameList",e[e.LayerName=85]="LayerName",e[e.PropertyAtRule=86]="PropertyAtRule",e[e.Container=87]="Container"})(b||(b={}));var J;(function(e){e[e.Mixin=0]="Mixin",e[e.Rule=1]="Rule",e[e.Variable=2]="Variable",e[e.Function=3]="Function",e[e.Keyframe=4]="Keyframe",e[e.Unknown=5]="Unknown",e[e.Module=6]="Module",e[e.Forward=7]="Forward",e[e.ForwardVisibility=8]="ForwardVisibility",e[e.Property=9]="Property"})(J||(J={}));function Ai(e,t){let n=null;return!e||t<e.offset||t>e.end?null:(e.accept(r=>r.offset===-1&&r.length===-1?!0:r.offset<=t&&r.end>=t?(n?r.length<=n.length&&(n=r):n=r,!0):!1),n)}function Mi(e,t){let n=Ai(e,t);const r=[];for(;n;)r.unshift(n),n=n.parent;return r}function yp(e){const t=e.findParent(b.Declaration),n=t&&t.getValue();return n&&n.encloses(e)?t:null}var O=class{get end(){return this.offset+this.length}constructor(e=-1,t=-1,n){this.parent=null,this.offset=e,this.length=t,n&&(this.nodeType=n)}set type(e){this.nodeType=e}get type(){return this.nodeType||b.Undefined}getTextProvider(){let e=this;for(;e&&!e.textProvider;)e=e.parent;return e?e.textProvider:()=>"unknown"}getText(){return this.getTextProvider()(this.offset,this.length)}matches(e){return this.length===e.length&&this.getTextProvider()(this.offset,this.length)===e}startsWith(e){return this.length>=e.length&&this.getTextProvider()(this.offset,e.length)===e}endsWith(e){return this.length>=e.length&&this.getTextProvider()(this.end-e.length,e.length)===e}accept(e){if(e(this)&&this.children)for(const t of this.children)t.accept(e)}acceptVisitor(e){this.accept(e.visitNode.bind(e))}adoptChild(e,t=-1){if(e.parent&&e.parent.children){const r=e.parent.children.indexOf(e);r>=0&&e.parent.children.splice(r,1)}e.parent=this;let n=this.children;return n||(n=this.children=[]),t!==-1?n.splice(t,0,e):n.push(e),e}attachTo(e,t=-1){return e&&e.adoptChild(this,t),this}collectIssues(e){this.issues&&e.push.apply(e,this.issues)}addIssue(e){this.issues||(this.issues=[]),this.issues.push(e)}hasIssue(e){return Array.isArray(this.issues)&&this.issues.some(t=>t.getRule()===e)}isErroneous(e=!1){return this.issues&&this.issues.length>0?!0:e&&Array.isArray(this.children)&&this.children.some(t=>t.isErroneous(!0))}setNode(e,t,n=-1){return t?(t.attachTo(this,n),this[e]=t,!0):!1}addChild(e){return e?(this.children||(this.children=[]),e.attachTo(this),this.updateOffsetAndLength(e),!0):!1}updateOffsetAndLength(e){(e.offset<this.offset||this.offset===-1)&&(this.offset=e.offset);const t=e.end;(t>this.end||this.length===-1)&&(this.length=t-this.offset)}hasChildren(){return!!this.children&&this.children.length>0}getChildren(){return this.children?this.children.slice(0):[]}getChild(e){return this.children&&e<this.children.length?this.children[e]:null}addChildren(e){for(const t of e)this.addChild(t)}findFirstChildBeforeOffset(e){if(this.children){let t=null;for(let n=this.children.length-1;n>=0;n--)if(t=this.children[n],t.offset<=e)return t}return null}findChildAtOffset(e,t){const n=this.findFirstChildBeforeOffset(e);return n&&n.end>=e?t&&n.findChildAtOffset(e,!0)||n:null}encloses(e){return this.offset<=e.offset&&this.offset+this.length>=e.offset+e.length}getParent(){let e=this.parent;for(;e instanceof ye;)e=e.parent;return e}findParent(e){let t=this;for(;t&&t.type!==e;)t=t.parent;return t}findAParent(...e){let t=this;for(;t&&!e.some(n=>t.type===n);)t=t.parent;return t}setData(e,t){this.options||(this.options={}),this.options[e]=t}getData(e){return!this.options||!this.options.hasOwnProperty(e)?null:this.options[e]}},ye=class extends O{constructor(e,t=-1){super(-1,-1),this.attachTo(e,t),this.offset=-1,this.length=-1}},xp=class extends O{constructor(e,t){super(e,t)}get type(){return b.UnicodeRange}setRangeStart(e){return this.setNode("rangeStart",e)}getRangeStart(){return this.rangeStart}setRangeEnd(e){return this.setNode("rangeEnd",e)}getRangeEnd(){return this.rangeEnd}},Me=class extends O{constructor(e,t){super(e,t),this.isCustomProperty=!1}get type(){return b.Identifier}containsInterpolation(){return this.hasChildren()}},Sp=class extends O{constructor(e,t){super(e,t)}get type(){return b.Stylesheet}},Li=class extends O{constructor(e,t){super(e,t)}get type(){return b.Declarations}},se=class extends O{constructor(e,t){super(e,t)}getDeclarations(){return this.declarations}setDeclarations(e){return this.setNode("declarations",e)}},Et=class extends se{constructor(e,t){super(e,t)}get type(){return b.Ruleset}getSelectors(){return this.selectors||(this.selectors=new ye(this)),this.selectors}isNested(){return!!this.parent&&this.parent.findParent(b.Declarations)!==null}},Cn=class extends O{constructor(e,t){super(e,t)}get type(){return b.Selector}},Jt=class extends O{constructor(e,t){super(e,t)}get type(){return b.SimpleSelector}},zi=class extends O{constructor(e,t){super(e,t)}},Cp=class extends se{constructor(e,t){super(e,t)}get type(){return b.CustomPropertySet}},qe=class bh extends zi{constructor(t,n){super(t,n),this.property=null}get type(){return b.Declaration}setProperty(t){return this.setNode("property",t)}getProperty(){return this.property}getFullPropertyName(){const t=this.property?this.property.getName():"unknown";if(this.parent instanceof Li&&this.parent.getParent()instanceof yl){const n=this.parent.getParent().getParent();if(n instanceof bh)return n.getFullPropertyName()+t}return t}getNonPrefixedPropertyName(){const t=this.getFullPropertyName();if(t&&t.charAt(0)==="-"){const n=t.indexOf("-",1);if(n!==-1)return t.substring(n+1)}return t}setValue(t){return this.setNode("value",t)}getValue(){return this.value}setNestedProperties(t){return this.setNode("nestedProperties",t)}getNestedProperties(){return this.nestedProperties}},_p=class extends qe{constructor(e,t){super(e,t)}get type(){return b.CustomPropertyDeclaration}setPropertySet(e){return this.setNode("propertySet",e)}getPropertySet(){return this.propertySet}},Pi=class extends O{constructor(e,t){super(e,t)}get type(){return b.Property}setIdentifier(e){return this.setNode("identifier",e)}getIdentifier(){return this.identifier}getName(){return wp(this.getText(),/[_\\+]+$/)}isCustomProperty(){return!!this.identifier&&this.identifier.isCustomProperty}},kp=class extends O{constructor(e,t){super(e,t)}get type(){return b.Invocation}getArguments(){return this.arguments||(this.arguments=new ye(this)),this.arguments}},_n=class extends kp{constructor(e,t){super(e,t)}get type(){return b.Function}setIdentifier(e){return this.setNode("identifier",e,0)}getIdentifier(){return this.identifier}getName(){return this.identifier?this.identifier.getText():""}},lr=class extends O{constructor(e,t){super(e,t)}get type(){return b.FunctionParameter}setIdentifier(e){return this.setNode("identifier",e,0)}getIdentifier(){return this.identifier}getName(){return this.identifier?this.identifier.getText():""}setDefaultValue(e){return this.setNode("defaultValue",e,0)}getDefaultValue(){return this.defaultValue}},Xt=class extends O{constructor(e,t){super(e,t)}get type(){return b.FunctionArgument}setIdentifier(e){return this.setNode("identifier",e,0)}getIdentifier(){return this.identifier}getName(){return this.identifier?this.identifier.getText():""}setValue(e){return this.setNode("value",e,0)}getValue(){return this.value}},Ep=class extends se{constructor(e,t){super(e,t)}get type(){return b.If}setExpression(e){return this.setNode("expression",e,0)}setElseClause(e){return this.setNode("elseClause",e)}},Fp=class extends se{constructor(e,t){super(e,t)}get type(){return b.For}setVariable(e){return this.setNode("variable",e,0)}},Rp=class extends se{constructor(e,t){super(e,t)}get type(){return b.Each}getVariables(){return this.variables||(this.variables=new ye(this)),this.variables}},Np=class extends se{constructor(e,t){super(e,t)}get type(){return b.While}},Dp=class extends se{constructor(e,t){super(e,t)}get type(){return b.Else}},cr=class extends se{constructor(e,t){super(e,t)}get type(){return b.FunctionDeclaration}setIdentifier(e){return this.setNode("identifier",e,0)}getIdentifier(){return this.identifier}getName(){return this.identifier?this.identifier.getText():""}getParameters(){return this.parameters||(this.parameters=new ye(this)),this.parameters}},Ip=class extends se{constructor(e,t){super(e,t)}get type(){return b.ViewPort}},wl=class extends se{constructor(e,t){super(e,t)}get type(){return b.FontFace}},yl=class extends se{constructor(e,t){super(e,t)}get type(){return b.NestedProperties}},xl=class extends se{constructor(e,t){super(e,t)}get type(){return b.Keyframe}setKeyword(e){return this.setNode("keyword",e,0)}getKeyword(){return this.keyword}setIdentifier(e){return this.setNode("identifier",e,0)}getIdentifier(){return this.identifier}getName(){return this.identifier?this.identifier.getText():""}},Sl=class extends se{constructor(e,t){super(e,t)}get type(){return b.KeyframeSelector}},Ti=class extends O{constructor(e,t){super(e,t)}get type(){return b.Import}setMedialist(e){return e?(e.attachTo(this),!0):!1}},Ap=class extends O{get type(){return b.Use}getParameters(){return this.parameters||(this.parameters=new ye(this)),this.parameters}setIdentifier(e){return this.setNode("identifier",e,0)}getIdentifier(){return this.identifier}},Mp=class extends O{get type(){return b.ModuleConfiguration}setIdentifier(e){return this.setNode("identifier",e,0)}getIdentifier(){return this.identifier}getName(){return this.identifier?this.identifier.getText():""}setValue(e){return this.setNode("value",e,0)}getValue(){return this.value}},Lp=class extends O{get type(){return b.Forward}setIdentifier(e){return this.setNode("identifier",e,0)}getIdentifier(){return this.identifier}getMembers(){return this.members||(this.members=new ye(this)),this.members}getParameters(){return this.parameters||(this.parameters=new ye(this)),this.parameters}},zp=class extends O{get type(){return b.ForwardVisibility}setIdentifier(e){return this.setNode("identifier",e,0)}getIdentifier(){return this.identifier}},Pp=class extends O{constructor(e,t){super(e,t)}get type(){return b.Namespace}},Oi=class extends se{constructor(e,t){super(e,t)}get type(){return b.Media}},Wi=class extends se{constructor(e,t){super(e,t)}get type(){return b.Supports}},Tp=class extends se{constructor(e,t){super(e,t)}get type(){return b.Layer}setNames(e){return this.setNode("names",e)}getNames(){return this.names}},Op=class extends se{constructor(e,t){super(e,t)}get type(){return b.PropertyAtRule}setName(e){return e?(e.attachTo(this),this.name=e,!0):!1}getName(){return this.name}},Wp=class extends se{constructor(e,t){super(e,t)}get type(){return b.Document}},Up=class extends se{constructor(e,t){super(e,t)}get type(){return b.Container}},Cl=class extends O{constructor(e,t){super(e,t)}},_l=class extends O{constructor(e,t){super(e,t)}get type(){return b.MediaQuery}},Vp=class extends O{constructor(e,t){super(e,t)}get type(){return b.MediaCondition}},$p=class extends O{constructor(e,t){super(e,t)}get type(){return b.MediaFeature}},kn=class extends O{constructor(e,t){super(e,t)}get type(){return b.SupportsCondition}},Bp=class extends se{constructor(e,t){super(e,t)}get type(){return b.Page}},qp=class extends se{constructor(e,t){super(e,t)}get type(){return b.PageBoxMarginBox}},kl=class extends O{constructor(e,t){super(e,t)}get type(){return b.Expression}},Ui=class extends O{constructor(e,t){super(e,t)}get type(){return b.BinaryExpression}setLeft(e){return this.setNode("left",e)}getLeft(){return this.left}setRight(e){return this.setNode("right",e)}getRight(){return this.right}setOperator(e){return this.setNode("operator",e)}getOperator(){return this.operator}},jp=class extends O{constructor(e,t){super(e,t)}get type(){return b.Term}setOperator(e){return this.setNode("operator",e)}getOperator(){return this.operator}setExpression(e){return this.setNode("expression",e)}getExpression(){return this.expression}},Hp=class extends O{constructor(e,t){super(e,t)}get type(){return b.AttributeSelector}setNamespacePrefix(e){return this.setNode("namespacePrefix",e)}getNamespacePrefix(){return this.namespacePrefix}setIdentifier(e){return this.setNode("identifier",e)}getIdentifier(){return this.identifier}setOperator(e){return this.setNode("operator",e)}getOperator(){return this.operator}setValue(e){return this.setNode("value",e)}getValue(){return this.value}},Vi=class extends O{constructor(e,t){super(e,t)}get type(){return b.HexColorValue}},Gp=class extends O{constructor(e,t){super(e,t)}get type(){return b.RatioValue}},Jp=46,Xp=48,Yp=57,$i=class extends O{constructor(e,t){super(e,t)}get type(){return b.NumericValue}getValue(){const e=this.getText();let t=0,n;for(let r=0,i=e.length;r<i&&(n=e.charCodeAt(r),Xp<=n&&n<=Yp||n===Jp);r++)t+=1;return{value:e.substring(0,t),unit:t<e.length?e.substring(t):void 0}}},hr=class extends zi{constructor(e,t){super(e,t),this.needsSemicolon=!0}get type(){return b.VariableDeclaration}setVariable(e){return e?(e.attachTo(this),this.variable=e,!0):!1}getVariable(){return this.variable}getName(){return this.variable?this.variable.getName():""}setValue(e){return e?(e.attachTo(this),this.value=e,!0):!1}getValue(){return this.value}},Bi=class extends O{constructor(e,t){super(e,t)}get type(){return b.Interpolation}},qi=class extends O{constructor(e,t){super(e,t)}get type(){return b.VariableName}getName(){return this.getText()}},En=class extends O{constructor(e,t){super(e,t)}get type(){return b.ExtendsReference}getSelectors(){return this.selectors||(this.selectors=new ye(this)),this.selectors}},Qp=class extends O{constructor(e,t){super(e,t)}get type(){return b.MixinContentReference}getArguments(){return this.arguments||(this.arguments=new ye(this)),this.arguments}},Kp=class extends se{constructor(e,t){super(e,t)}get type(){return b.MixinContentDeclaration}getParameters(){return this.parameters||(this.parameters=new ye(this)),this.parameters}},dr=class extends O{constructor(e,t){super(e,t)}get type(){return b.MixinReference}getNamespaces(){return this.namespaces||(this.namespaces=new ye(this)),this.namespaces}setIdentifier(e){return this.setNode("identifier",e,0)}getIdentifier(){return this.identifier}getName(){return this.identifier?this.identifier.getText():""}getArguments(){return this.arguments||(this.arguments=new ye(this)),this.arguments}setContent(e){return this.setNode("content",e)}getContent(){return this.content}},Fn=class extends se{constructor(e,t){super(e,t)}get type(){return b.MixinDeclaration}setIdentifier(e){return this.setNode("identifier",e,0)}getIdentifier(){return this.identifier}getName(){return this.identifier?this.identifier.getText():""}getParameters(){return this.parameters||(this.parameters=new ye(this)),this.parameters}setGuard(e){return e&&(e.attachTo(this),this.guard=e),!1}},El=class extends se{constructor(e,t){super(e,t)}get type(){return b.UnknownAtRule}setAtRuleName(e){this.atRuleName=e}getAtRuleName(){return this.atRuleName}},Zp=class extends O{get type(){return b.ListEntry}setKey(e){return this.setNode("key",e,0)}setValue(e){return this.setNode("value",e,1)}},em=class extends O{getConditions(){return this.conditions||(this.conditions=new ye(this)),this.conditions}},tm=class extends O{setVariable(e){return this.setNode("variable",e)}},Fl=class extends O{get type(){return b.Module}setIdentifier(e){return this.setNode("identifier",e,0)}getIdentifier(){return this.identifier}},Re;(function(e){e[e.Ignore=1]="Ignore",e[e.Warning=2]="Warning",e[e.Error=4]="Error"})(Re||(Re={}));var Rl=class{constructor(e,t,n,r,i=e.offset,s=e.length){this.node=e,this.rule=t,this.level=n,this.message=r||t.message,this.offset=i,this.length=s}getRule(){return this.rule}getLevel(){return this.level}getOffset(){return this.offset}getLength(){return this.length}getNode(){return this.node}getMessage(){return this.message}},nm=class vh{static entries(t){const n=new vh;return t.acceptVisitor(n),n.entries}constructor(){this.entries=[]}visitNode(t){return t.isErroneous()&&t.collectIssues(this.entries),!0}};function g(...e){const t=e[0];let n,r,i;if(typeof t=="string")n=t,r=t,e.splice(0,1),i=!e||typeof e[0]!="object"?e:e[0];else if(t instanceof Array){const s=e.slice(1);if(t.length!==s.length+1)throw new Error("expected a string as the first argument to l10n.t");let a=t[0];for(let l=1;l<t.length;l++)a+=\`{\${l-1}}\`+t[l];return g(a,...s)}else r=t.message,n=r,t.comment&&t.comment.length>0&&(n+=\`/\${Array.isArray(t.comment)?t.comment.join(""):t.comment}\`),i=t.args??{};return im(r,i)}var rm=/{([^}]+)}/g;function im(e,t){return Object.keys(t).length===0?e:e.replace(rm,(n,r)=>t[r]??n)}var K=class{constructor(e,t){this.id=e,this.message=t}},y={NumberExpected:new K("css-numberexpected",g("number expected")),ConditionExpected:new K("css-conditionexpected",g("condition expected")),RuleOrSelectorExpected:new K("css-ruleorselectorexpected",g("at-rule or selector expected")),DotExpected:new K("css-dotexpected",g("dot expected")),ColonExpected:new K("css-colonexpected",g("colon expected")),SemiColonExpected:new K("css-semicolonexpected",g("semi-colon expected")),TermExpected:new K("css-termexpected",g("term expected")),ExpressionExpected:new K("css-expressionexpected",g("expression expected")),OperatorExpected:new K("css-operatorexpected",g("operator expected")),IdentifierExpected:new K("css-identifierexpected",g("identifier expected")),PercentageExpected:new K("css-percentageexpected",g("percentage expected")),URIOrStringExpected:new K("css-uriorstringexpected",g("uri or string expected")),URIExpected:new K("css-uriexpected",g("URI expected")),VariableNameExpected:new K("css-varnameexpected",g("variable name expected")),VariableValueExpected:new K("css-varvalueexpected",g("variable value expected")),PropertyValueExpected:new K("css-propertyvalueexpected",g("property value expected")),LeftCurlyExpected:new K("css-lcurlyexpected",g("{ expected")),RightCurlyExpected:new K("css-rcurlyexpected",g("} expected")),LeftSquareBracketExpected:new K("css-rbracketexpected",g("[ expected")),RightSquareBracketExpected:new K("css-lbracketexpected",g("] expected")),LeftParenthesisExpected:new K("css-lparentexpected",g("( expected")),RightParenthesisExpected:new K("css-rparentexpected",g(") expected")),CommaExpected:new K("css-commaexpected",g("comma expected")),PageDirectiveOrDeclarationExpected:new K("css-pagedirordeclexpected",g("page directive or declaraton expected")),UnknownAtRule:new K("css-unknownatrule",g("at-rule unknown")),UnknownKeyword:new K("css-unknownkeyword",g("unknown keyword")),SelectorExpected:new K("css-selectorexpected",g("selector expected")),StringLiteralExpected:new K("css-stringliteralexpected",g("string literal expected")),WhitespaceExpected:new K("css-whitespaceexpected",g("whitespace expected")),MediaQueryExpected:new K("css-mediaqueryexpected",g("media query expected")),IdentifierOrWildcardExpected:new K("css-idorwildcardexpected",g("identifier or wildcard expected")),WildcardExpected:new K("css-wildcardexpected",g("wildcard expected")),IdentifierOrVariableExpected:new K("css-idorvarexpected",g("identifier or variable expected"))},Nl;(function(e){function t(n){return typeof n=="string"}e.is=t})(Nl||(Nl={}));var ji;(function(e){function t(n){return typeof n=="string"}e.is=t})(ji||(ji={}));var Dl;(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})(Dl||(Dl={}));var ur;(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})(ur||(ur={}));var xe;(function(e){function t(r,i){return r===Number.MAX_VALUE&&(r=ur.MAX_VALUE),i===Number.MAX_VALUE&&(i=ur.MAX_VALUE),{line:r,character:i}}e.create=t;function n(r){let i=r;return x.objectLiteral(i)&&x.uinteger(i.line)&&x.uinteger(i.character)}e.is=n})(xe||(xe={}));var X;(function(e){function t(r,i,s,a){if(x.uinteger(r)&&x.uinteger(i)&&x.uinteger(s)&&x.uinteger(a))return{start:xe.create(r,i),end:xe.create(s,a)};if(xe.is(r)&&xe.is(i))return{start:r,end:i};throw new Error(\`Range#create called with invalid arguments[\${r}, \${i}, \${s}, \${a}]\`)}e.create=t;function n(r){let i=r;return x.objectLiteral(i)&&xe.is(i.start)&&xe.is(i.end)}e.is=n})(X||(X={}));var Rn;(function(e){function t(r,i){return{uri:r,range:i}}e.create=t;function n(r){let i=r;return x.objectLiteral(i)&&X.is(i.range)&&(x.string(i.uri)||x.undefined(i.uri))}e.is=n})(Rn||(Rn={}));var Il;(function(e){function t(r,i,s,a){return{targetUri:r,targetRange:i,targetSelectionRange:s,originSelectionRange:a}}e.create=t;function n(r){let i=r;return x.objectLiteral(i)&&X.is(i.targetRange)&&x.string(i.targetUri)&&X.is(i.targetSelectionRange)&&(X.is(i.originSelectionRange)||x.undefined(i.originSelectionRange))}e.is=n})(Il||(Il={}));var Hi;(function(e){function t(r,i,s,a){return{red:r,green:i,blue:s,alpha:a}}e.create=t;function n(r){const i=r;return x.objectLiteral(i)&&x.numberRange(i.red,0,1)&&x.numberRange(i.green,0,1)&&x.numberRange(i.blue,0,1)&&x.numberRange(i.alpha,0,1)}e.is=n})(Hi||(Hi={}));var Al;(function(e){function t(r,i){return{range:r,color:i}}e.create=t;function n(r){const i=r;return x.objectLiteral(i)&&X.is(i.range)&&Hi.is(i.color)}e.is=n})(Al||(Al={}));var Ml;(function(e){function t(r,i,s){return{label:r,textEdit:i,additionalTextEdits:s}}e.create=t;function n(r){const i=r;return x.objectLiteral(i)&&x.string(i.label)&&(x.undefined(i.textEdit)||$.is(i))&&(x.undefined(i.additionalTextEdits)||x.typedArray(i.additionalTextEdits,$.is))}e.is=n})(Ml||(Ml={}));var Ll;(function(e){e.Comment="comment",e.Imports="imports",e.Region="region"})(Ll||(Ll={}));var zl;(function(e){function t(r,i,s,a,l,o){const c={startLine:r,endLine:i};return x.defined(s)&&(c.startCharacter=s),x.defined(a)&&(c.endCharacter=a),x.defined(l)&&(c.kind=l),x.defined(o)&&(c.collapsedText=o),c}e.create=t;function n(r){const i=r;return x.objectLiteral(i)&&x.uinteger(i.startLine)&&x.uinteger(i.startLine)&&(x.undefined(i.startCharacter)||x.uinteger(i.startCharacter))&&(x.undefined(i.endCharacter)||x.uinteger(i.endCharacter))&&(x.undefined(i.kind)||x.string(i.kind))}e.is=n})(zl||(zl={}));var Gi;(function(e){function t(r,i){return{location:r,message:i}}e.create=t;function n(r){let i=r;return x.defined(i)&&Rn.is(i.location)&&x.string(i.message)}e.is=n})(Gi||(Gi={}));var pr;(function(e){e.Error=1,e.Warning=2,e.Information=3,e.Hint=4})(pr||(pr={}));var Pl;(function(e){e.Unnecessary=1,e.Deprecated=2})(Pl||(Pl={}));var Tl;(function(e){function t(n){const r=n;return x.objectLiteral(r)&&x.string(r.href)}e.is=t})(Tl||(Tl={}));var mr;(function(e){function t(r,i,s,a,l,o){let c={range:r,message:i};return x.defined(s)&&(c.severity=s),x.defined(a)&&(c.code=a),x.defined(l)&&(c.source=l),x.defined(o)&&(c.relatedInformation=o),c}e.create=t;function n(r){var i;let s=r;return x.defined(s)&&X.is(s.range)&&x.string(s.message)&&(x.number(s.severity)||x.undefined(s.severity))&&(x.integer(s.code)||x.string(s.code)||x.undefined(s.code))&&(x.undefined(s.codeDescription)||x.string((i=s.codeDescription)===null||i===void 0?void 0:i.href))&&(x.string(s.source)||x.undefined(s.source))&&(x.undefined(s.relatedInformation)||x.typedArray(s.relatedInformation,Gi.is))}e.is=n})(mr||(mr={}));var Ft;(function(e){function t(r,i,...s){let a={title:r,command:i};return x.defined(s)&&s.length>0&&(a.arguments=s),a}e.create=t;function n(r){let i=r;return x.defined(i)&&x.string(i.title)&&x.string(i.command)}e.is=n})(Ft||(Ft={}));var $;(function(e){function t(s,a){return{range:s,newText:a}}e.replace=t;function n(s,a){return{range:{start:s,end:s},newText:a}}e.insert=n;function r(s){return{range:s,newText:""}}e.del=r;function i(s){const a=s;return x.objectLiteral(a)&&x.string(a.newText)&&X.is(a.range)}e.is=i})($||($={}));var Ji;(function(e){function t(r,i,s){const a={label:r};return i!==void 0&&(a.needsConfirmation=i),s!==void 0&&(a.description=s),a}e.create=t;function n(r){const i=r;return x.objectLiteral(i)&&x.string(i.label)&&(x.boolean(i.needsConfirmation)||i.needsConfirmation===void 0)&&(x.string(i.description)||i.description===void 0)}e.is=n})(Ji||(Ji={}));var Yt;(function(e){function t(n){const r=n;return x.string(r)}e.is=t})(Yt||(Yt={}));var Ol;(function(e){function t(s,a,l){return{range:s,newText:a,annotationId:l}}e.replace=t;function n(s,a,l){return{range:{start:s,end:s},newText:a,annotationId:l}}e.insert=n;function r(s,a){return{range:s,newText:"",annotationId:a}}e.del=r;function i(s){const a=s;return $.is(a)&&(Ji.is(a.annotationId)||Yt.is(a.annotationId))}e.is=i})(Ol||(Ol={}));var fr;(function(e){function t(r,i){return{textDocument:r,edits:i}}e.create=t;function n(r){let i=r;return x.defined(i)&&es.is(i.textDocument)&&Array.isArray(i.edits)}e.is=n})(fr||(fr={}));var Xi;(function(e){function t(r,i,s){let a={kind:"create",uri:r};return i!==void 0&&(i.overwrite!==void 0||i.ignoreIfExists!==void 0)&&(a.options=i),s!==void 0&&(a.annotationId=s),a}e.create=t;function n(r){let i=r;return i&&i.kind==="create"&&x.string(i.uri)&&(i.options===void 0||(i.options.overwrite===void 0||x.boolean(i.options.overwrite))&&(i.options.ignoreIfExists===void 0||x.boolean(i.options.ignoreIfExists)))&&(i.annotationId===void 0||Yt.is(i.annotationId))}e.is=n})(Xi||(Xi={}));var Yi;(function(e){function t(r,i,s,a){let l={kind:"rename",oldUri:r,newUri:i};return s!==void 0&&(s.overwrite!==void 0||s.ignoreIfExists!==void 0)&&(l.options=s),a!==void 0&&(l.annotationId=a),l}e.create=t;function n(r){let i=r;return i&&i.kind==="rename"&&x.string(i.oldUri)&&x.string(i.newUri)&&(i.options===void 0||(i.options.overwrite===void 0||x.boolean(i.options.overwrite))&&(i.options.ignoreIfExists===void 0||x.boolean(i.options.ignoreIfExists)))&&(i.annotationId===void 0||Yt.is(i.annotationId))}e.is=n})(Yi||(Yi={}));var Qi;(function(e){function t(r,i,s){let a={kind:"delete",uri:r};return i!==void 0&&(i.recursive!==void 0||i.ignoreIfNotExists!==void 0)&&(a.options=i),s!==void 0&&(a.annotationId=s),a}e.create=t;function n(r){let i=r;return i&&i.kind==="delete"&&x.string(i.uri)&&(i.options===void 0||(i.options.recursive===void 0||x.boolean(i.options.recursive))&&(i.options.ignoreIfNotExists===void 0||x.boolean(i.options.ignoreIfNotExists)))&&(i.annotationId===void 0||Yt.is(i.annotationId))}e.is=n})(Qi||(Qi={}));var Ki;(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=>x.string(i.kind)?Xi.is(i)||Yi.is(i)||Qi.is(i):fr.is(i)))}e.is=t})(Ki||(Ki={}));var Wl;(function(e){function t(r){return{uri:r}}e.create=t;function n(r){let i=r;return x.defined(i)&&x.string(i.uri)}e.is=n})(Wl||(Wl={}));var Zi;(function(e){function t(r,i){return{uri:r,version:i}}e.create=t;function n(r){let i=r;return x.defined(i)&&x.string(i.uri)&&x.integer(i.version)}e.is=n})(Zi||(Zi={}));var es;(function(e){function t(r,i){return{uri:r,version:i}}e.create=t;function n(r){let i=r;return x.defined(i)&&x.string(i.uri)&&(i.version===null||x.integer(i.version))}e.is=n})(es||(es={}));var Ul;(function(e){function t(r,i,s,a){return{uri:r,languageId:i,version:s,text:a}}e.create=t;function n(r){let i=r;return x.defined(i)&&x.string(i.uri)&&x.string(i.languageId)&&x.integer(i.version)&&x.string(i.text)}e.is=n})(Ul||(Ul={}));var je;(function(e){e.PlainText="plaintext",e.Markdown="markdown";function t(n){const r=n;return r===e.PlainText||r===e.Markdown}e.is=t})(je||(je={}));var Nn;(function(e){function t(n){const r=n;return x.objectLiteral(n)&&je.is(r.kind)&&x.string(r.value)}e.is=t})(Nn||(Nn={}));var V;(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})(V||(V={}));var Ne;(function(e){e.PlainText=1,e.Snippet=2})(Ne||(Ne={}));var Rt;(function(e){e.Deprecated=1})(Rt||(Rt={}));var Vl;(function(e){function t(r,i,s){return{newText:r,insert:i,replace:s}}e.create=t;function n(r){const i=r;return i&&x.string(i.newText)&&X.is(i.insert)&&X.is(i.replace)}e.is=n})(Vl||(Vl={}));var $l;(function(e){e.asIs=1,e.adjustIndentation=2})($l||($l={}));var Bl;(function(e){function t(n){const r=n;return r&&(x.string(r.detail)||r.detail===void 0)&&(x.string(r.description)||r.description===void 0)}e.is=t})(Bl||(Bl={}));var ql;(function(e){function t(n){return{label:n}}e.create=t})(ql||(ql={}));var jl;(function(e){function t(n,r){return{items:n||[],isIncomplete:!!r}}e.create=t})(jl||(jl={}));var gr;(function(e){function t(r){return r.replace(/[\\\\\`*_{}[\\]()#+\\-.!]/g,"\\\\$&")}e.fromPlainText=t;function n(r){const i=r;return x.string(i)||x.objectLiteral(i)&&x.string(i.language)&&x.string(i.value)}e.is=n})(gr||(gr={}));var Hl;(function(e){function t(n){let r=n;return!!r&&x.objectLiteral(r)&&(Nn.is(r.contents)||gr.is(r.contents)||x.typedArray(r.contents,gr.is))&&(n.range===void 0||X.is(n.range))}e.is=t})(Hl||(Hl={}));var Gl;(function(e){function t(n,r){return r?{label:n,documentation:r}:{label:n}}e.create=t})(Gl||(Gl={}));var Jl;(function(e){function t(n,r,...i){let s={label:n};return x.defined(r)&&(s.documentation=r),x.defined(i)?s.parameters=i:s.parameters=[],s}e.create=t})(Jl||(Jl={}));var Qt;(function(e){e.Text=1,e.Read=2,e.Write=3})(Qt||(Qt={}));var Xl;(function(e){function t(n,r){let i={range:n};return x.number(r)&&(i.kind=r),i}e.create=t})(Xl||(Xl={}));var nt;(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})(nt||(nt={}));var Yl;(function(e){e.Deprecated=1})(Yl||(Yl={}));var Ql;(function(e){function t(n,r,i,s,a){let l={name:n,kind:r,location:{uri:s,range:i}};return a&&(l.containerName=a),l}e.create=t})(Ql||(Ql={}));var Kl;(function(e){function t(n,r,i,s){return s!==void 0?{name:n,kind:r,location:{uri:i,range:s}}:{name:n,kind:r,location:{uri:i}}}e.create=t})(Kl||(Kl={}));var Zl;(function(e){function t(r,i,s,a,l,o){let c={name:r,detail:i,kind:s,range:a,selectionRange:l};return o!==void 0&&(c.children=o),c}e.create=t;function n(r){let i=r;return i&&x.string(i.name)&&x.number(i.kind)&&X.is(i.range)&&X.is(i.selectionRange)&&(i.detail===void 0||x.string(i.detail))&&(i.deprecated===void 0||x.boolean(i.deprecated))&&(i.children===void 0||Array.isArray(i.children))&&(i.tags===void 0||Array.isArray(i.tags))}e.is=n})(Zl||(Zl={}));var ts;(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"})(ts||(ts={}));var br;(function(e){e.Invoked=1,e.Automatic=2})(br||(br={}));var ec;(function(e){function t(r,i,s){let a={diagnostics:r};return i!=null&&(a.only=i),s!=null&&(a.triggerKind=s),a}e.create=t;function n(r){let i=r;return x.defined(i)&&x.typedArray(i.diagnostics,mr.is)&&(i.only===void 0||x.typedArray(i.only,x.string))&&(i.triggerKind===void 0||i.triggerKind===br.Invoked||i.triggerKind===br.Automatic)}e.is=n})(ec||(ec={}));var ns;(function(e){function t(r,i,s){let a={title:r},l=!0;return typeof i=="string"?(l=!1,a.kind=i):Ft.is(i)?a.command=i:a.edit=i,l&&s!==void 0&&(a.kind=s),a}e.create=t;function n(r){let i=r;return i&&x.string(i.title)&&(i.diagnostics===void 0||x.typedArray(i.diagnostics,mr.is))&&(i.kind===void 0||x.string(i.kind))&&(i.edit!==void 0||i.command!==void 0)&&(i.command===void 0||Ft.is(i.command))&&(i.isPreferred===void 0||x.boolean(i.isPreferred))&&(i.edit===void 0||Ki.is(i.edit))}e.is=n})(ns||(ns={}));var tc;(function(e){function t(r,i){let s={range:r};return x.defined(i)&&(s.data=i),s}e.create=t;function n(r){let i=r;return x.defined(i)&&X.is(i.range)&&(x.undefined(i.command)||Ft.is(i.command))}e.is=n})(tc||(tc={}));var nc;(function(e){function t(r,i){return{tabSize:r,insertSpaces:i}}e.create=t;function n(r){let i=r;return x.defined(i)&&x.uinteger(i.tabSize)&&x.boolean(i.insertSpaces)}e.is=n})(nc||(nc={}));var rc;(function(e){function t(r,i,s){return{range:r,target:i,data:s}}e.create=t;function n(r){let i=r;return x.defined(i)&&X.is(i.range)&&(x.undefined(i.target)||x.string(i.target))}e.is=n})(rc||(rc={}));var vr;(function(e){function t(r,i){return{range:r,parent:i}}e.create=t;function n(r){let i=r;return x.objectLiteral(i)&&X.is(i.range)&&(i.parent===void 0||e.is(i.parent))}e.is=n})(vr||(vr={}));var ic;(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"})(ic||(ic={}));var sc;(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"})(sc||(sc={}));var ac;(function(e){function t(n){const r=n;return x.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})(ac||(ac={}));var oc;(function(e){function t(r,i){return{range:r,text:i}}e.create=t;function n(r){const i=r;return i!=null&&X.is(i.range)&&x.string(i.text)}e.is=n})(oc||(oc={}));var lc;(function(e){function t(r,i,s){return{range:r,variableName:i,caseSensitiveLookup:s}}e.create=t;function n(r){const i=r;return i!=null&&X.is(i.range)&&x.boolean(i.caseSensitiveLookup)&&(x.string(i.variableName)||i.variableName===void 0)}e.is=n})(lc||(lc={}));var cc;(function(e){function t(r,i){return{range:r,expression:i}}e.create=t;function n(r){const i=r;return i!=null&&X.is(i.range)&&(x.string(i.expression)||i.expression===void 0)}e.is=n})(cc||(cc={}));var hc;(function(e){function t(r,i){return{frameId:r,stoppedLocation:i}}e.create=t;function n(r){const i=r;return x.defined(i)&&X.is(r.stoppedLocation)}e.is=n})(hc||(hc={}));var rs;(function(e){e.Type=1,e.Parameter=2;function t(n){return n===1||n===2}e.is=t})(rs||(rs={}));var is;(function(e){function t(r){return{value:r}}e.create=t;function n(r){const i=r;return x.objectLiteral(i)&&(i.tooltip===void 0||x.string(i.tooltip)||Nn.is(i.tooltip))&&(i.location===void 0||Rn.is(i.location))&&(i.command===void 0||Ft.is(i.command))}e.is=n})(is||(is={}));var dc;(function(e){function t(r,i,s){const a={position:r,label:i};return s!==void 0&&(a.kind=s),a}e.create=t;function n(r){const i=r;return x.objectLiteral(i)&&xe.is(i.position)&&(x.string(i.label)||x.typedArray(i.label,is.is))&&(i.kind===void 0||rs.is(i.kind))&&i.textEdits===void 0||x.typedArray(i.textEdits,$.is)&&(i.tooltip===void 0||x.string(i.tooltip)||Nn.is(i.tooltip))&&(i.paddingLeft===void 0||x.boolean(i.paddingLeft))&&(i.paddingRight===void 0||x.boolean(i.paddingRight))}e.is=n})(dc||(dc={}));var uc;(function(e){function t(n){return{kind:"snippet",value:n}}e.createSnippet=t})(uc||(uc={}));var pc;(function(e){function t(n,r,i,s){return{insertText:n,filterText:r,range:i,command:s}}e.create=t})(pc||(pc={}));var mc;(function(e){function t(n){return{items:n}}e.create=t})(mc||(mc={}));var fc;(function(e){e.Invoked=0,e.Automatic=1})(fc||(fc={}));var gc;(function(e){function t(n,r){return{range:n,text:r}}e.create=t})(gc||(gc={}));var bc;(function(e){function t(n,r){return{triggerKind:n,selectedCompletionInfo:r}}e.create=t})(bc||(bc={}));var vc;(function(e){function t(n){const r=n;return x.objectLiteral(r)&&ji.is(r.uri)&&x.string(r.name)}e.is=t})(vc||(vc={}));var wc;(function(e){function t(s,a,l,o){return new sm(s,a,l,o)}e.create=t;function n(s){let a=s;return!!(x.defined(a)&&x.string(a.uri)&&(x.undefined(a.languageId)||x.string(a.languageId))&&x.uinteger(a.lineCount)&&x.func(a.getText)&&x.func(a.positionAt)&&x.func(a.offsetAt))}e.is=n;function r(s,a){let l=s.getText(),o=i(a,(d,u)=>{let f=d.range.start.line-u.range.start.line;return f===0?d.range.start.character-u.range.start.character:f}),c=l.length;for(let d=o.length-1;d>=0;d--){let u=o[d],f=s.offsetAt(u.range.start),m=s.offsetAt(u.range.end);if(m<=c)l=l.substring(0,f)+u.newText+l.substring(m,l.length);else throw new Error("Overlapping edit");c=f}return l}e.applyEdits=r;function i(s,a){if(s.length<=1)return s;const l=s.length/2|0,o=s.slice(0,l),c=s.slice(l);i(o,a),i(c,a);let d=0,u=0,f=0;for(;d<o.length&&u<c.length;)a(o[d],c[u])<=0?s[f++]=o[d++]:s[f++]=c[u++];for(;d<o.length;)s[f++]=o[d++];for(;u<c.length;)s[f++]=c[u++];return s}})(wc||(wc={}));var sm=class{constructor(e,t,n,r){this._uri=e,this._languageId=t,this._version=n,this._content=r,this._lineOffsets=void 0}get uri(){return this._uri}get languageId(){return this._languageId}get version(){return this._version}getText(e){if(e){let t=this.offsetAt(e.start),n=this.offsetAt(e.end);return this._content.substring(t,n)}return this._content}update(e,t){this._content=e.text,this._version=t,this._lineOffsets=void 0}getLineOffsets(){if(this._lineOffsets===void 0){let e=[],t=this._content,n=!0;for(let r=0;r<t.length;r++){n&&(e.push(r),n=!1);let i=t.charAt(r);n=i==="\\r"||i===\`
19
19
  \`,i==="\\r"&&r+1<t.length&&t.charAt(r+1)===\`
20
20
  \`&&r++}n&&t.length>0&&e.push(t.length),this._lineOffsets=e}return this._lineOffsets}positionAt(e){e=Math.max(Math.min(e,this._content.length),0);let t=this.getLineOffsets(),n=0,r=t.length;if(r===0)return xe.create(0,e);for(;n<r;){let s=Math.floor((n+r)/2);t[s]>e?r=s:n=s+1}let i=n-1;return xe.create(i,e-t[i])}offsetAt(e){let t=this.getLineOffsets();if(e.line>=t.length)return this._content.length;if(e.line<0)return 0;let n=t[e.line],r=e.line+1<t.length?t[e.line+1]:this._content.length;return Math.max(Math.min(n+e.character,r),n)}get lineCount(){return this.getLineOffsets().length}},x;(function(e){const t=Object.prototype.toString;function n(m){return typeof m<"u"}e.defined=n;function r(m){return typeof m>"u"}e.undefined=r;function i(m){return m===!0||m===!1}e.boolean=i;function s(m){return t.call(m)==="[object String]"}e.string=s;function a(m){return t.call(m)==="[object Number]"}e.number=a;function l(m,v,w){return t.call(m)==="[object Number]"&&v<=m&&m<=w}e.numberRange=l;function o(m){return t.call(m)==="[object Number]"&&-2147483648<=m&&m<=2147483647}e.integer=o;function c(m){return t.call(m)==="[object Number]"&&0<=m&&m<=2147483647}e.uinteger=c;function d(m){return t.call(m)==="[object Function]"}e.func=d;function u(m){return m!==null&&typeof m=="object"}e.objectLiteral=u;function f(m,v){return Array.isArray(m)&&m.every(v)}e.typedArray=f})(x||(x={}));var yc=class Os{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){const 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(Os.isIncremental(r)){const i=Sc(r.range),s=this.offsetAt(i.start),a=this.offsetAt(i.end);this._content=this._content.substring(0,s)+r.text+this._content.substring(a,this._content.length);const l=Math.max(i.start.line,0),o=Math.max(i.end.line,0);let c=this._lineOffsets;const d=xc(r.text,!1,s);if(o-l===d.length)for(let f=0,m=d.length;f<m;f++)c[f+l+1]=d[f];else d.length<1e4?c.splice(l+1,o-l,...d):this._lineOffsets=c=c.slice(0,l+1).concat(d,c.slice(o+1));const u=r.text.length-(a-s);if(u!==0)for(let f=l+1+d.length,m=c.length;f<m;f++)c[f]=c[f]+u}else if(Os.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=xc(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 a=Math.floor((r+i)/2);n[a]>t?i=a:r=a+1}let s=r-1;return{line:s,character:t-n[s]}}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}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}},ss;(function(e){function t(i,s,a,l){return new yc(i,s,a,l)}e.create=t;function n(i,s,a){if(i instanceof yc)return i.update(s,a),i;throw new Error("TextDocument.update: document must be created by TextDocument.create")}e.update=n;function r(i,s){let a=i.getText(),l=as(s.map(am),(d,u)=>{let f=d.range.start.line-u.range.start.line;return f===0?d.range.start.character-u.range.start.character:f}),o=0;const c=[];for(const d of l){let u=i.offsetAt(d.range.start);if(u<o)throw new Error("Overlapping edit");u>o&&c.push(a.substring(o,u)),d.newText.length&&c.push(d.newText),o=i.offsetAt(d.range.end)}return c.push(a.substr(o)),c.join("")}e.applyEdits=r})(ss||(ss={}));function as(e,t){if(e.length<=1)return e;const n=e.length/2|0,r=e.slice(0,n),i=e.slice(n);as(r,t),as(i,t);let s=0,a=0,l=0;for(;s<r.length&&a<i.length;)t(r[s],i[a])<=0?e[l++]=r[s++]:e[l++]=i[a++];for(;s<r.length;)e[l++]=r[s++];for(;a<i.length;)e[l++]=i[a++];return e}function xc(e,t,n=0){const r=t?[n]:[];for(let i=0;i<e.length;i++){let s=e.charCodeAt(i);(s===13||s===10)&&(s===13&&i+1<e.length&&e.charCodeAt(i+1)===10&&i++,r.push(n+i+1))}return r}function Sc(e){const 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 am(e){const t=Sc(e.range);return t!==e.range?{newText:e.newText,range:t}:e}var Cc;(function(e){e.LATEST={textDocument:{completion:{completionItem:{documentationFormat:[je.Markdown,je.PlainText]}},hover:{contentFormat:[je.Markdown,je.PlainText]}}}})(Cc||(Cc={}));var Dn;(function(e){e[e.Unknown=0]="Unknown",e[e.File=1]="File",e[e.Directory=2]="Directory",e[e.SymbolicLink=64]="SymbolicLink"})(Dn||(Dn={}));var _c={E:"Edge",FF:"Firefox",S:"Safari",C:"Chrome",IE:"IE",O:"Opera"};function kc(e){switch(e){case"experimental":return\`⚠️ Property is experimental. Be cautious when using it.️
21
21
 
@@ -23,22 +23,22 @@ const i = `var Of=Object.defineProperty;var Wf=(_t,Xe,We)=>Xe in _t?Of(_t,Xe,{en
23
23
 
24
24
  \`;case"obsolete":return\`🚨️️️ Property is obsolete. Avoid using it.
25
25
 
26
- \`;default:return""}}function bt(e,t,n){let r;if(t?r={kind:"markdown",value:lm(e,n)}:r={kind:"plaintext",value:om(e,n)},r.value!=="")return r}function vr(e){return e=e.replace(/[\\\\\`*_{}[\\]()#+\\-.!]/g,"\\\\$&"),e.replace(/</g,"&lt;").replace(/>/g,"&gt;")}function om(e,t){if(!e.description||e.description==="")return"";if(typeof e.description!="string")return e.description.value;let n="";if(t?.documentation!==!1){e.status&&(n+=kc(e.status)),n+=e.description;const r=Ec(e.browsers);r&&(n+=\`
26
+ \`;default:return""}}function bt(e,t,n){let r;if(t?r={kind:"markdown",value:lm(e,n)}:r={kind:"plaintext",value:om(e,n)},r.value!=="")return r}function wr(e){return e=e.replace(/[\\\\\`*_{}[\\]()#+\\-.!]/g,"\\\\$&"),e.replace(/</g,"&lt;").replace(/>/g,"&gt;")}function om(e,t){if(!e.description||e.description==="")return"";if(typeof e.description!="string")return e.description.value;let n="";if(t?.documentation!==!1){e.status&&(n+=kc(e.status)),n+=e.description;const r=Ec(e.browsers);r&&(n+=\`
27
27
  (\`+r+")"),"syntax"in e&&(n+=\`
28
28
 
29
29
  Syntax: \${e.syntax}\`)}return e.references&&e.references.length>0&&t?.references!==!1&&(n.length>0&&(n+=\`
30
30
 
31
- \`),n+=e.references.map(r=>\`\${r.name}: \${r.url}\`).join(" | ")),n}function lm(e,t){if(!e.description||e.description==="")return"";let n="";if(t?.documentation!==!1){e.status&&(n+=kc(e.status)),typeof e.description=="string"?n+=vr(e.description):n+=e.description.kind===je.Markdown?e.description.value:vr(e.description.value);const r=Ec(e.browsers);r&&(n+=\`
31
+ \`),n+=e.references.map(r=>\`\${r.name}: \${r.url}\`).join(" | ")),n}function lm(e,t){if(!e.description||e.description==="")return"";let n="";if(t?.documentation!==!1){e.status&&(n+=kc(e.status)),typeof e.description=="string"?n+=wr(e.description):n+=e.description.kind===je.Markdown?e.description.value:wr(e.description.value);const r=Ec(e.browsers);r&&(n+=\`
32
32
 
33
- (\`+vr(r)+")"),"syntax"in e&&e.syntax&&(n+=\`
33
+ (\`+wr(r)+")"),"syntax"in e&&e.syntax&&(n+=\`
34
34
 
35
- Syntax: \${vr(e.syntax)}\`)}return e.references&&e.references.length>0&&t?.references!==!1&&(n.length>0&&(n+=\`
35
+ Syntax: \${wr(e.syntax)}\`)}return e.references&&e.references.length>0&&t?.references!==!1&&(n.length>0&&(n+=\`
36
36
 
37
- \`),n+=e.references.map(r=>\`[\${r.name}](\${r.url})\`).join(" | ")),n}function Ec(e=[]){return e.length===0?null:e.map(t=>{let n="";const r=t.match(/([A-Z]+)(\\d+)?/),i=r[1],s=r[2];return i in _c&&(n+=_c[i]),s&&(n+=" "+s),n}).join(", ")}var cm=/(^#([0-9A-F]{3}){1,2}$)|(^#([0-9A-F]{4}){1,2}$)/i,hm=[{label:"rgb",func:"rgb($red, $green, $blue)",insertText:"rgb(\${1:red}, \${2:green}, \${3:blue})",desc:g("Creates a Color from red, green, and blue values.")},{label:"rgba",func:"rgba($red, $green, $blue, $alpha)",insertText:"rgba(\${1:red}, \${2:green}, \${3:blue}, \${4:alpha})",desc:g("Creates a Color from red, green, blue, and alpha values.")},{label:"rgb relative",func:"rgb(from $color $red $green $blue)",insertText:"rgb(from \${1:color} \${2:r} \${3:g} \${4:b})",desc:g("Creates a Color from the red, green, and blue values of another Color.")},{label:"hsl",func:"hsl($hue, $saturation, $lightness)",insertText:"hsl(\${1:hue}, \${2:saturation}, \${3:lightness})",desc:g("Creates a Color from hue, saturation, and lightness values.")},{label:"hsla",func:"hsla($hue, $saturation, $lightness, $alpha)",insertText:"hsla(\${1:hue}, \${2:saturation}, \${3:lightness}, \${4:alpha})",desc:g("Creates a Color from hue, saturation, lightness, and alpha values.")},{label:"hsl relative",func:"hsl(from $color $hue $saturation $lightness)",insertText:"hsl(from \${1:color} \${2:h} \${3:s} \${4:l})",desc:g("Creates a Color from the hue, saturation, and lightness values of another Color.")},{label:"hwb",func:"hwb($hue $white $black)",insertText:"hwb(\${1:hue} \${2:white} \${3:black})",desc:g("Creates a Color from hue, white, and black values.")},{label:"hwb relative",func:"hwb(from $color $hue $white $black)",insertText:"hwb(from \${1:color} \${2:h} \${3:w} \${4:b})",desc:g("Creates a Color from the hue, white, and black values of another Color.")},{label:"lab",func:"lab($lightness $a $b)",insertText:"lab(\${1:lightness} \${2:a} \${3:b})",desc:g("Creates a Color from lightness, a, and b values.")},{label:"lab relative",func:"lab(from $color $lightness $a $b)",insertText:"lab(from \${1:color} \${2:l} \${3:a} \${4:b})",desc:g("Creates a Color from the lightness, a, and b values of another Color.")},{label:"oklab",func:"oklab($lightness $a $b)",insertText:"oklab(\${1:lightness} \${2:a} \${3:b})",desc:g("Creates a Color from lightness, a, and b values.")},{label:"oklab relative",func:"oklab(from $color $lightness $a $b)",insertText:"oklab(from \${1:color} \${2:l} \${3:a} \${4:b})",desc:g("Creates a Color from the lightness, a, and b values of another Color.")},{label:"lch",func:"lch($lightness $chroma $hue)",insertText:"lch(\${1:lightness} \${2:chroma} \${3:hue})",desc:g("Creates a Color from lightness, chroma, and hue values.")},{label:"lch relative",func:"lch(from $color $lightness $chroma $hue)",insertText:"lch(from \${1:color} \${2:l} \${3:c} \${4:h})",desc:g("Creates a Color from the lightness, chroma, and hue values of another Color.")},{label:"oklch",func:"oklch($lightness $chroma $hue)",insertText:"oklch(\${1:lightness} \${2:chroma} \${3:hue})",desc:g("Creates a Color from lightness, chroma, and hue values.")},{label:"oklch relative",func:"oklch(from $color $lightness $chroma $hue)",insertText:"oklch(from \${1:color} \${2:l} \${3:c} \${4:h})",desc:g("Creates a Color from the lightness, chroma, and hue values of another Color.")},{label:"color",func:"color($color-space $red $green $blue)",insertText:"color(\${1|srgb,srgb-linear,display-p3,a98-rgb,prophoto-rgb,rec2020,xyx,xyz-d50,xyz-d65|} \${2:red} \${3:green} \${4:blue})",desc:g("Creates a Color in a specific color space from red, green, and blue values.")},{label:"color relative",func:"color(from $color $color-space $red $green $blue)",insertText:"color(from \${1:color} \${2|srgb,srgb-linear,display-p3,a98-rgb,prophoto-rgb,rec2020,xyx,xyz-d50,xyz-d65|} \${3:r} \${4:g} \${5:b})",desc:g("Creates a Color in a specific color space from the red, green, and blue values of another Color.")},{label:"color-mix",func:"color-mix(in $color-space, $color $percentage, $color $percentage)",insertText:"color-mix(in \${1|srgb,srgb-linear,lab,oklab,xyz,xyz-d50,xyz-d65|}, \${3:color} \${4:percentage}, \${5:color} \${6:percentage})",desc:g("Mix two colors together in a rectangular color space.")},{label:"color-mix hue",func:"color-mix(in $color-space $interpolation-method hue, $color $percentage, $color $percentage)",insertText:"color-mix(in \${1|hsl,hwb,lch,oklch|} \${2|shorter hue,longer hue,increasing hue,decreasing hue|}, \${3:color} \${4:percentage}, \${5:color} \${6:percentage})",desc:g("Mix two colors together in a polar color space.")}],dm=/^(rgb|rgba|hsl|hsla|hwb)$/i,wr={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"},um=new RegExp(\`^(\${Object.keys(wr).join("|")})$\`,"i"),os={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."},pm=new RegExp(\`^(\${Object.keys(os).join("|")})$\`,"i");function vt(e,t){const r=e.getText().match(/^([-+]?[0-9]*\\.?[0-9]+)(%?)$/);if(r){r[2]&&(t=100);const i=parseFloat(r[1])/t;if(i>=0&&i<=1)return i}throw new Error}function Fc(e){const t=e.getText(),n=t.match(/^([-+]?[0-9]*\\.?[0-9]+)(deg|rad|grad|turn)?$/);if(n)switch(n[2]){case"deg":return parseFloat(t)%360;case"rad":return parseFloat(t)*180/Math.PI%360;case"grad":return parseFloat(t)*.9%360;case"turn":return parseFloat(t)*360%360;default:if(typeof n[2]>"u")return parseFloat(t)%360}throw new Error}function mm(e){const t=e.getName();return t?dm.test(t):!1}function Rc(e){return cm.test(e)||um.test(e)||pm.test(e)}var Nc=48,fm=57,gm=65,yr=97,bm=102;function de(e){return e<Nc?0:e<=fm?e-Nc:(e<yr&&(e+=yr-gm),e>=yr&&e<=bm?e-yr+10:0)}function Dc(e){if(e[0]!=="#")return null;switch(e.length){case 4:return{red:de(e.charCodeAt(1))*17/255,green:de(e.charCodeAt(2))*17/255,blue:de(e.charCodeAt(3))*17/255,alpha:1};case 5:return{red:de(e.charCodeAt(1))*17/255,green:de(e.charCodeAt(2))*17/255,blue:de(e.charCodeAt(3))*17/255,alpha:de(e.charCodeAt(4))*17/255};case 7:return{red:(de(e.charCodeAt(1))*16+de(e.charCodeAt(2)))/255,green:(de(e.charCodeAt(3))*16+de(e.charCodeAt(4)))/255,blue:(de(e.charCodeAt(5))*16+de(e.charCodeAt(6)))/255,alpha:1};case 9:return{red:(de(e.charCodeAt(1))*16+de(e.charCodeAt(2)))/255,green:(de(e.charCodeAt(3))*16+de(e.charCodeAt(4)))/255,blue:(de(e.charCodeAt(5))*16+de(e.charCodeAt(6)))/255,alpha:(de(e.charCodeAt(7))*16+de(e.charCodeAt(8)))/255}}return null}function Ic(e,t,n,r=1){if(e=e/60,t===0)return{red:n,green:n,blue:n,alpha:r};{const i=(l,o,c)=>{for(;c<0;)c+=6;for(;c>=6;)c-=6;return c<1?(o-l)*c+l:c<3?o:c<4?(o-l)*(4-c)+l:l},s=n<=.5?n*(t+1):n+t-n*t,a=n*2-s;return{red:i(a,s,e+2),green:i(a,s,e),blue:i(a,s,e-2),alpha:r}}}function Ac(e){const t=e.red,n=e.green,r=e.blue,i=e.alpha,s=Math.max(t,n,r),a=Math.min(t,n,r);let l=0,o=0;const c=(a+s)/2,d=s-a;if(d>0){switch(o=Math.min(c<=.5?d/(2*c):d/(2-2*c),1),s){case t:l=(n-r)/d+(n<r?6:0);break;case n:l=(r-t)/d+2;break;case r:l=(t-n)/d+4;break}l*=60,l=Math.round(l)}return{h:l,s:o,l:c,a:i}}function vm(e,t,n,r=1){if(t+n>=1){const o=t/(t+n);return{red:o,green:o,blue:o,alpha:r}}const i=Ic(e,1,.5,r);let s=i.red;s*=1-t-n,s+=t;let a=i.green;a*=1-t-n,a+=t;let l=i.blue;return l*=1-t-n,l+=t,{red:s,green:a,blue:l,alpha:r}}function wm(e){const t=Ac(e),n=Math.min(e.red,e.green,e.blue),r=1-Math.max(e.red,e.green,e.blue);return{h:t.h,w:n,b:r,a:t.a}}function ym(e){if(e.type===b.HexColorValue){const t=e.getText();return Dc(t)}else if(e.type===b.Function){const t=e,n=t.getName();let r=t.getArguments().getChildren();if(r.length===1){const i=r[0].getChildren();if(i.length===1&&i[0].type===b.Expression&&(r=i[0].getChildren(),r.length===3)){const s=r[2];if(s instanceof Ui){const a=s.getLeft(),l=s.getRight(),o=s.getOperator();a&&l&&o&&o.matches("/")&&(r=[r[0],r[1],a,l])}}}if(!n||r.length<3||r.length>4)return null;try{const i=r.length===4?vt(r[3],1):1;if(n==="rgb"||n==="rgba")return{red:vt(r[0],255),green:vt(r[1],255),blue:vt(r[2],255),alpha:i};if(n==="hsl"||n==="hsla"){const s=Fc(r[0]),a=vt(r[1],100),l=vt(r[2],100);return Ic(s,a,l,i)}else if(n==="hwb"){const s=Fc(r[0]),a=vt(r[1],100),l=vt(r[2],100);return vm(s,a,l,i)}}catch{return null}}else if(e.type===b.Identifier){if(e.parent&&e.parent.type!==b.Term)return null;const t=e.parent;if(t&&t.parent&&t.parent.type===b.BinaryExpression){const i=t.parent;if(i.parent&&i.parent.type===b.ListEntry&&i.parent.key===i)return null}const n=e.getText().toLowerCase();if(n==="none")return null;const r=wr[n];if(r)return Dc(r)}return null}var Mc={bottom:"Computes to ‘100%’ 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 ‘50%’ (‘left 50%’) for the horizontal position if the horizontal position is not otherwise specified, or ‘50%’ (‘top 50%’) for the vertical position if it is.",left:"Computes to ‘0%’ 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 ‘100%’ 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 ‘0%’ for the vertical position if one or two values are given, otherwise specifies the top edge as the origin for the next offset."},Lc={"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 ‘repeat no-repeat’.","repeat-y":"Computes to ‘no-repeat repeat’.",round:"Repeated as often as will fit within the background positioning area. If it doesn’t 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."},zc={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 ‘none’, 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."},xm=["medium","thick","thin"],Pc={"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."},Tc={"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."},Oc={initial:"Represents the value specified as the property’s initial value.",inherit:"Represents the computed value of the property on the element’s parent.",unset:"Acts as either \`inherit\` or \`initial\`, depending on whether the property is inherited or not."},Wc={"var()":"Evaluates the value of a custom variable.","calc()":"Evaluates an mathematical expression. The following operators can be used: + - * /."},Uc={"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’s position and the first specified color-stop’s 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’s position and the first specified color-stop’s position."},Vc={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 “start” or “end”.","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."},$c={"circle()":"Defines a circle.","ellipse()":"Defines an ellipse.","inset()":"Defines an inset rectangle.","polygon()":"Defines a polygon."},Bc={length:["cap","ch","cm","cqb","cqh","cqi","cqmax","cqmin","cqw","dvb","dvh","dvi","dvw","em","ex","ic","in","lh","lvb","lvh","lvi","lvw","mm","pc","pt","px","q","rcap","rch","rem","rex","ric","rlh","svb","svh","svi","svw","vb","vh","vi","vmax","vmin","vw"],angle:["deg","rad","grad","turn"],time:["ms","s"],frequency:["Hz","kHz"],resolution:["dpi","dpcm","dppx"],percentage:["%","fr"]},Sm=["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"],Cm=["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"],_m=["@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"];function xr(e){return Object.keys(e).map(t=>e[t])}function Le(e){return typeof e<"u"}var Sr=class{constructor(e=new Sn){this.keyframeRegex=/^@(\\-(webkit|ms|moz|o)\\-)?keyframes$/i,this.scanner=e,this.token={type:p.EOF,offset:-1,len:0,text:""},this.prevToken=void 0}peekIdent(e){return p.Ident===this.token.type&&e.length===this.token.text.length&&e===this.token.text.toLowerCase()}peekKeyword(e){return p.AtKeyword===this.token.type&&e.length===this.token.text.length&&e===this.token.text.toLowerCase()}peekDelim(e){return p.Delim===this.token.type&&e===this.token.text}peek(e){return e===this.token.type}peekOne(...e){return e.indexOf(this.token.type)!==-1}peekRegExp(e,t){return e!==this.token.type?!1:t.test(this.token.text)}hasWhitespace(){return!!this.prevToken&&this.prevToken.offset+this.prevToken.len!==this.token.offset}consumeToken(){this.prevToken=this.token,this.token=this.scanner.scan()}acceptUnicodeRange(){const e=this.scanner.tryScanUnicode();return e?(this.prevToken=e,this.token=this.scanner.scan(),!0):!1}mark(){return{prev:this.prevToken,curr:this.token,pos:this.scanner.pos()}}restoreAtMark(e){this.prevToken=e.prev,this.token=e.curr,this.scanner.goBackTo(e.pos)}try(e){const t=this.mark(),n=e();return n||(this.restoreAtMark(t),null)}acceptOneKeyword(e){if(p.AtKeyword===this.token.type){for(const t of e)if(t.length===this.token.text.length&&t===this.token.text.toLowerCase())return this.consumeToken(),!0}return!1}accept(e){return e===this.token.type?(this.consumeToken(),!0):!1}acceptIdent(e){return this.peekIdent(e)?(this.consumeToken(),!0):!1}acceptKeyword(e){return this.peekKeyword(e)?(this.consumeToken(),!0):!1}acceptDelim(e){return this.peekDelim(e)?(this.consumeToken(),!0):!1}acceptRegexp(e){return e.test(this.token.text)?(this.consumeToken(),!0):!1}_parseRegexp(e){let t=this.createNode(b.Identifier);do;while(this.acceptRegexp(e));return this.finish(t)}acceptUnquotedString(){const e=this.scanner.pos();this.scanner.goBackTo(this.token.offset);const t=this.scanner.scanUnquotedString();return t?(this.token=t,this.consumeToken(),!0):(this.scanner.goBackTo(e),!1)}resync(e,t){for(;;){if(e&&e.indexOf(this.token.type)!==-1)return this.consumeToken(),!0;if(t&&t.indexOf(this.token.type)!==-1)return!0;if(this.token.type===p.EOF)return!1;this.token=this.scanner.scan()}}createNode(e){return new O(this.token.offset,this.token.len,e)}create(e){return new e(this.token.offset,this.token.len)}finish(e,t,n,r){if(!(e instanceof ye)&&(t&&this.markError(e,t,n,r),this.prevToken)){const i=this.prevToken.offset+this.prevToken.len;e.length=i>e.offset?i-e.offset:0}return e}markError(e,t,n,r){this.token!==this.lastErrorToken&&(e.addIssue(new Rl(e,t,Re.Error,void 0,this.token.offset,this.token.len)),this.lastErrorToken=this.token),(n||r)&&this.resync(n,r)}parseStylesheet(e){const t=e.version,n=e.getText(),r=(i,s)=>{if(e.version!==t)throw new Error("Underlying model has changed, AST is no longer valid");return n.substr(i,s)};return this.internalParse(n,this._parseStylesheet,r)}internalParse(e,t,n){this.scanner.setSource(e),this.token=this.scanner.scan();const r=t.bind(this)();return r&&(n?r.textProvider=n:r.textProvider=(i,s)=>e.substr(i,s)),r}_parseStylesheet(){const e=this.create(Sp);for(;e.addChild(this._parseStylesheetStart()););let t=!1;do{let n=!1;do{n=!1;const r=this._parseStylesheetStatement();for(r&&(e.addChild(r),n=!0,t=!1,!this.peek(p.EOF)&&this._needsSemicolonAfter(r)&&!this.accept(p.SemiColon)&&this.markError(e,y.SemiColonExpected));this.accept(p.SemiColon)||this.accept(p.CDO)||this.accept(p.CDC);)n=!0,t=!1}while(n);if(this.peek(p.EOF))break;t||(this.peek(p.AtKeyword)?this.markError(e,y.UnknownAtRule):this.markError(e,y.RuleOrSelectorExpected),t=!0),this.consumeToken()}while(!this.peek(p.EOF));return this.finish(e)}_parseStylesheetStart(){return this._parseCharset()}_parseStylesheetStatement(e=!1){return this.peek(p.AtKeyword)?this._parseStylesheetAtStatement(e):this._parseRuleset(e)}_parseStylesheetAtStatement(e=!1){return this._parseImport()||this._parseMedia(e)||this._parsePage()||this._parseFontFace()||this._parseKeyframe()||this._parseSupports(e)||this._parseLayer(e)||this._parsePropertyAtRule()||this._parseViewPort()||this._parseNamespace()||this._parseDocument()||this._parseContainer(e)||this._parseUnknownAtRule()}_tryParseRuleset(e){const t=this.mark();if(this._parseSelector(e)){for(;this.accept(p.Comma)&&this._parseSelector(e););if(this.accept(p.CurlyL))return this.restoreAtMark(t),this._parseRuleset(e)}return this.restoreAtMark(t),null}_parseRuleset(e=!1){const t=this.create(Et),n=t.getSelectors();if(!n.addChild(this._parseSelector(e)))return null;for(;this.accept(p.Comma);)if(!n.addChild(this._parseSelector(e)))return this.finish(t,y.SelectorExpected);return this._parseBody(t,this._parseRuleSetDeclaration.bind(this))}_parseRuleSetDeclarationAtStatement(){return this._parseMedia(!0)||this._parseSupports(!0)||this._parseLayer(!0)||this._parseContainer(!0)||this._parseUnknownAtRule()}_parseRuleSetDeclaration(){return this.peek(p.AtKeyword)?this._parseRuleSetDeclarationAtStatement():this.peek(p.Ident)?this._tryParseRuleset(!0)||this._parseDeclaration():this._parseRuleset(!0)}_needsSemicolonAfter(e){switch(e.type){case b.Keyframe:case b.ViewPort:case b.Media:case b.Ruleset:case b.Namespace:case b.If:case b.For:case b.Each:case b.While:case b.MixinDeclaration:case b.FunctionDeclaration:case b.MixinContentDeclaration:return!1;case b.ExtendsReference:case b.MixinContentReference:case b.ReturnStatement:case b.MediaQuery:case b.Debug:case b.Import:case b.AtApplyRule:case b.CustomPropertyDeclaration:return!0;case b.VariableDeclaration:return e.needsSemicolon;case b.MixinReference:return!e.getContent();case b.Declaration:return!e.getNestedProperties()}return!1}_parseDeclarations(e){const t=this.create(Li);if(!this.accept(p.CurlyL))return null;let n=e();for(;t.addChild(n)&&!this.peek(p.CurlyR);){if(this._needsSemicolonAfter(n)&&!this.accept(p.SemiColon))return this.finish(t,y.SemiColonExpected,[p.SemiColon,p.CurlyR]);for(n&&this.prevToken&&this.prevToken.type===p.SemiColon&&(n.semicolonPosition=this.prevToken.offset);this.accept(p.SemiColon););n=e()}return this.accept(p.CurlyR)?this.finish(t):this.finish(t,y.RightCurlyExpected,[p.CurlyR,p.SemiColon])}_parseBody(e,t){return e.setDeclarations(this._parseDeclarations(t))?this.finish(e):this.finish(e,y.LeftCurlyExpected,[p.CurlyR,p.SemiColon])}_parseSelector(e){const t=this.create(Cn);let n=!1;for(e&&(n=t.addChild(this._parseCombinator()));t.addChild(this._parseSimpleSelector());)n=!0,t.addChild(this._parseCombinator());return n?this.finish(t):null}_parseDeclaration(e){const t=this._tryParseCustomPropertyDeclaration(e);if(t)return t;const n=this.create(qe);return n.setProperty(this._parseProperty())?this.accept(p.Colon)?(this.prevToken&&(n.colonPosition=this.prevToken.offset),n.setValue(this._parseExpr())?(n.addChild(this._parsePrio()),this.peek(p.SemiColon)&&(n.semicolonPosition=this.token.offset),this.finish(n)):this.finish(n,y.PropertyValueExpected)):this.finish(n,y.ColonExpected,[p.Colon],e||[p.SemiColon]):null}_tryParseCustomPropertyDeclaration(e){if(!this.peekRegExp(p.Ident,/^--/))return null;const t=this.create(_p);if(!t.setProperty(this._parseProperty()))return null;if(!this.accept(p.Colon))return this.finish(t,y.ColonExpected,[p.Colon]);this.prevToken&&(t.colonPosition=this.prevToken.offset);const n=this.mark();if(this.peek(p.CurlyL)){const i=this.create(Cp),s=this._parseDeclarations(this._parseRuleSetDeclaration.bind(this));if(i.setDeclarations(s)&&!s.isErroneous(!0)&&(i.addChild(this._parsePrio()),this.peek(p.SemiColon)))return this.finish(i),t.setPropertySet(i),t.semicolonPosition=this.token.offset,this.finish(t);this.restoreAtMark(n)}const r=this._parseExpr();return r&&!r.isErroneous(!0)&&(this._parsePrio(),this.peekOne(...e||[],p.SemiColon,p.EOF))?(t.setValue(r),this.peek(p.SemiColon)&&(t.semicolonPosition=this.token.offset),this.finish(t)):(this.restoreAtMark(n),t.addChild(this._parseCustomPropertyValue(e)),t.addChild(this._parsePrio()),Le(t.colonPosition)&&this.token.offset===t.colonPosition+1?this.finish(t,y.PropertyValueExpected):this.finish(t))}_parseCustomPropertyValue(e=[p.CurlyR]){const t=this.create(O),n=()=>i===0&&s===0&&a===0,r=()=>e.indexOf(this.token.type)!==-1;let i=0,s=0,a=0;e:for(;;){switch(this.token.type){case p.SemiColon:if(n())break e;break;case p.Exclamation:if(n())break e;break;case p.CurlyL:i++;break;case p.CurlyR:if(i--,i<0){if(r()&&s===0&&a===0)break e;return this.finish(t,y.LeftCurlyExpected)}break;case p.ParenthesisL:s++;break;case p.ParenthesisR:if(s--,s<0){if(r()&&a===0&&i===0)break e;return this.finish(t,y.LeftParenthesisExpected)}break;case p.BracketL:a++;break;case p.BracketR:if(a--,a<0)return this.finish(t,y.LeftSquareBracketExpected);break;case p.BadString:break e;case p.EOF:let l=y.RightCurlyExpected;return a>0?l=y.RightSquareBracketExpected:s>0&&(l=y.RightParenthesisExpected),this.finish(t,l)}this.consumeToken()}return this.finish(t)}_tryToParseDeclaration(e){const t=this.mark();return this._parseProperty()&&this.accept(p.Colon)?(this.restoreAtMark(t),this._parseDeclaration(e)):(this.restoreAtMark(t),null)}_parseProperty(){const e=this.create(Pi),t=this.mark();return(this.acceptDelim("*")||this.acceptDelim("_"))&&this.hasWhitespace()?(this.restoreAtMark(t),null):e.setIdentifier(this._parsePropertyIdentifier())?this.finish(e):null}_parsePropertyIdentifier(){return this._parseIdent()}_parseCharset(){if(!this.peek(p.Charset))return null;const e=this.create(O);return this.consumeToken(),this.accept(p.String)?this.accept(p.SemiColon)?this.finish(e):this.finish(e,y.SemiColonExpected):this.finish(e,y.IdentifierExpected)}_parseImport(){if(!this.peekKeyword("@import"))return null;const e=this.create(Ti);return this.consumeToken(),!e.addChild(this._parseURILiteral())&&!e.addChild(this._parseStringLiteral())?this.finish(e,y.URIOrStringExpected):this._completeParseImport(e)}_completeParseImport(e){if(this.acceptIdent("layer")&&this.accept(p.ParenthesisL)){if(!e.addChild(this._parseLayerName()))return this.finish(e,y.IdentifierExpected,[p.SemiColon]);if(!this.accept(p.ParenthesisR))return this.finish(e,y.RightParenthesisExpected,[p.ParenthesisR],[])}return this.acceptIdent("supports")&&this.accept(p.ParenthesisL)&&(e.addChild(this._tryToParseDeclaration()||this._parseSupportsCondition()),!this.accept(p.ParenthesisR))?this.finish(e,y.RightParenthesisExpected,[p.ParenthesisR],[]):(!this.peek(p.SemiColon)&&!this.peek(p.EOF)&&e.setMedialist(this._parseMediaQueryList()),this.finish(e))}_parseNamespace(){if(!this.peekKeyword("@namespace"))return null;const e=this.create(Pp);return this.consumeToken(),!e.addChild(this._parseURILiteral())&&(e.addChild(this._parseIdent()),!e.addChild(this._parseURILiteral())&&!e.addChild(this._parseStringLiteral()))?this.finish(e,y.URIExpected,[p.SemiColon]):this.accept(p.SemiColon)?this.finish(e):this.finish(e,y.SemiColonExpected)}_parseFontFace(){if(!this.peekKeyword("@font-face"))return null;const e=this.create(wl);return this.consumeToken(),this._parseBody(e,this._parseRuleSetDeclaration.bind(this))}_parseViewPort(){if(!this.peekKeyword("@-ms-viewport")&&!this.peekKeyword("@-o-viewport")&&!this.peekKeyword("@viewport"))return null;const e=this.create(Ip);return this.consumeToken(),this._parseBody(e,this._parseRuleSetDeclaration.bind(this))}_parseKeyframe(){if(!this.peekRegExp(p.AtKeyword,this.keyframeRegex))return null;const e=this.create(xl),t=this.create(O);return this.consumeToken(),e.setKeyword(this.finish(t)),t.matches("@-ms-keyframes")&&this.markError(t,y.UnknownKeyword),e.setIdentifier(this._parseKeyframeIdent())?this._parseBody(e,this._parseKeyframeSelector.bind(this)):this.finish(e,y.IdentifierExpected,[p.CurlyR])}_parseKeyframeIdent(){return this._parseIdent([J.Keyframe])}_parseKeyframeSelector(){const e=this.create(Sl);let t=!1;if(e.addChild(this._parseIdent())&&(t=!0),this.accept(p.Percentage)&&(t=!0),!t)return null;for(;this.accept(p.Comma);)if(t=!1,e.addChild(this._parseIdent())&&(t=!0),this.accept(p.Percentage)&&(t=!0),!t)return this.finish(e,y.PercentageExpected);return this._parseBody(e,this._parseRuleSetDeclaration.bind(this))}_tryParseKeyframeSelector(){const e=this.create(Sl),t=this.mark();let n=!1;if(e.addChild(this._parseIdent())&&(n=!0),this.accept(p.Percentage)&&(n=!0),!n)return null;for(;this.accept(p.Comma);)if(n=!1,e.addChild(this._parseIdent())&&(n=!0),this.accept(p.Percentage)&&(n=!0),!n)return this.restoreAtMark(t),null;return this.peek(p.CurlyL)?this._parseBody(e,this._parseRuleSetDeclaration.bind(this)):(this.restoreAtMark(t),null)}_parsePropertyAtRule(){if(!this.peekKeyword("@property"))return null;const e=this.create(Op);return this.consumeToken(),!this.peekRegExp(p.Ident,/^--/)||!e.setName(this._parseIdent([J.Property]))?this.finish(e,y.IdentifierExpected):this._parseBody(e,this._parseDeclaration.bind(this))}_parseLayer(e=!1){if(!this.peekKeyword("@layer"))return null;const t=this.create(Tp);this.consumeToken();const n=this._parseLayerNameList();return n&&t.setNames(n),(!n||n.getChildren().length===1)&&this.peek(p.CurlyL)?this._parseBody(t,this._parseLayerDeclaration.bind(this,e)):this.accept(p.SemiColon)?this.finish(t):this.finish(t,y.SemiColonExpected)}_parseLayerDeclaration(e=!1){return e?this._tryParseRuleset(!0)||this._tryToParseDeclaration()||this._parseStylesheetStatement(!0):this._parseStylesheetStatement(!1)}_parseLayerNameList(){const e=this.createNode(b.LayerNameList);if(!e.addChild(this._parseLayerName()))return null;for(;this.accept(p.Comma);)if(!e.addChild(this._parseLayerName()))return this.finish(e,y.IdentifierExpected);return this.finish(e)}_parseLayerName(){const e=this.createNode(b.LayerName);if(!e.addChild(this._parseIdent()))return null;for(;!this.hasWhitespace()&&this.acceptDelim(".");)if(this.hasWhitespace()||!e.addChild(this._parseIdent()))return this.finish(e,y.IdentifierExpected);return this.finish(e)}_parseSupports(e=!1){if(!this.peekKeyword("@supports"))return null;const t=this.create(Wi);return this.consumeToken(),t.addChild(this._parseSupportsCondition()),this._parseBody(t,this._parseSupportsDeclaration.bind(this,e))}_parseSupportsDeclaration(e=!1){return e?this._tryParseRuleset(!0)||this._tryToParseDeclaration()||this._parseStylesheetStatement(!0):this._parseStylesheetStatement(!1)}_parseSupportsCondition(){const e=this.create(kn);if(this.acceptIdent("not"))e.addChild(this._parseSupportsConditionInParens());else if(e.addChild(this._parseSupportsConditionInParens()),this.peekRegExp(p.Ident,/^(and|or)$/i)){const t=this.token.text.toLowerCase();for(;this.acceptIdent(t);)e.addChild(this._parseSupportsConditionInParens())}return this.finish(e)}_parseSupportsConditionInParens(){const e=this.create(kn);if(this.accept(p.ParenthesisL))return this.prevToken&&(e.lParent=this.prevToken.offset),!e.addChild(this._tryToParseDeclaration([p.ParenthesisR]))&&!this._parseSupportsCondition()?this.finish(e,y.ConditionExpected):this.accept(p.ParenthesisR)?(this.prevToken&&(e.rParent=this.prevToken.offset),this.finish(e)):this.finish(e,y.RightParenthesisExpected,[p.ParenthesisR],[]);if(this.peek(p.Ident)){const t=this.mark();if(this.consumeToken(),!this.hasWhitespace()&&this.accept(p.ParenthesisL)){let n=1;for(;this.token.type!==p.EOF&&n!==0;)this.token.type===p.ParenthesisL?n++:this.token.type===p.ParenthesisR&&n--,this.consumeToken();return this.finish(e)}else this.restoreAtMark(t)}return this.finish(e,y.LeftParenthesisExpected,[],[p.ParenthesisL])}_parseMediaDeclaration(e=!1){return e?this._tryParseRuleset(!0)||this._tryToParseDeclaration()||this._parseStylesheetStatement(!0):this._parseStylesheetStatement(!1)}_parseMedia(e=!1){if(!this.peekKeyword("@media"))return null;const t=this.create(Oi);return this.consumeToken(),t.addChild(this._parseMediaQueryList())?this._parseBody(t,this._parseMediaDeclaration.bind(this,e)):this.finish(t,y.MediaQueryExpected)}_parseMediaQueryList(){const e=this.create(Cl);if(!e.addChild(this._parseMediaQuery()))return this.finish(e,y.MediaQueryExpected);for(;this.accept(p.Comma);)if(!e.addChild(this._parseMediaQuery()))return this.finish(e,y.MediaQueryExpected);return this.finish(e)}_parseMediaQuery(){const e=this.create(_l),t=this.mark();if(this.acceptIdent("not"),this.peek(p.ParenthesisL))this.restoreAtMark(t),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)}_parseRatio(){const e=this.mark(),t=this.create(Gp);return this._parseNumeric()?this.acceptDelim("/")?this._parseNumeric()?this.finish(t):this.finish(t,y.NumberExpected):(this.restoreAtMark(e),null):null}_parseMediaCondition(){const e=this.create(Vp);this.acceptIdent("not");let t=!0;for(;t;){if(!this.accept(p.ParenthesisL))return this.finish(e,y.LeftParenthesisExpected,[],[p.CurlyL]);if(this.peek(p.ParenthesisL)||this.peekIdent("not")?e.addChild(this._parseMediaCondition()):e.addChild(this._parseMediaFeature()),!this.accept(p.ParenthesisR))return this.finish(e,y.RightParenthesisExpected,[],[p.CurlyL]);t=this.acceptIdent("and")||this.acceptIdent("or")}return this.finish(e)}_parseMediaFeature(){const e=[p.ParenthesisR],t=this.create($p);if(t.addChild(this._parseMediaFeatureName())){if(this.accept(p.Colon)){if(!t.addChild(this._parseMediaFeatureValue()))return this.finish(t,y.TermExpected,[],e)}else if(this._parseMediaFeatureRangeOperator()){if(!t.addChild(this._parseMediaFeatureValue()))return this.finish(t,y.TermExpected,[],e);if(this._parseMediaFeatureRangeOperator()&&!t.addChild(this._parseMediaFeatureValue()))return this.finish(t,y.TermExpected,[],e)}}else if(t.addChild(this._parseMediaFeatureValue())){if(!this._parseMediaFeatureRangeOperator())return this.finish(t,y.OperatorExpected,[],e);if(!t.addChild(this._parseMediaFeatureName()))return this.finish(t,y.IdentifierExpected,[],e);if(this._parseMediaFeatureRangeOperator()&&!t.addChild(this._parseMediaFeatureValue()))return this.finish(t,y.TermExpected,[],e)}else return this.finish(t,y.IdentifierExpected,[],e);return this.finish(t)}_parseMediaFeatureRangeOperator(){return this.acceptDelim("<")||this.acceptDelim(">")?(this.hasWhitespace()||this.acceptDelim("="),!0):!!this.acceptDelim("=")}_parseMediaFeatureName(){return this._parseIdent()}_parseMediaFeatureValue(){return this._parseRatio()||this._parseTermExpression()}_parseMedium(){const e=this.create(O);return e.addChild(this._parseIdent())?this.finish(e):null}_parsePageDeclaration(){return this._parsePageMarginBox()||this._parseRuleSetDeclaration()}_parsePage(){if(!this.peekKeyword("@page"))return null;const e=this.create(Bp);if(this.consumeToken(),e.addChild(this._parsePageSelector())){for(;this.accept(p.Comma);)if(!e.addChild(this._parsePageSelector()))return this.finish(e,y.IdentifierExpected)}return this._parseBody(e,this._parsePageDeclaration.bind(this))}_parsePageMarginBox(){if(!this.peek(p.AtKeyword))return null;const e=this.create(qp);return this.acceptOneKeyword(_m)||this.markError(e,y.UnknownAtRule,[],[p.CurlyL]),this._parseBody(e,this._parseRuleSetDeclaration.bind(this))}_parsePageSelector(){if(!this.peek(p.Ident)&&!this.peek(p.Colon))return null;const e=this.create(O);return e.addChild(this._parseIdent()),this.accept(p.Colon)&&!e.addChild(this._parseIdent())?this.finish(e,y.IdentifierExpected):this.finish(e)}_parseDocument(){if(!this.peekKeyword("@-moz-document"))return null;const e=this.create(Wp);return this.consumeToken(),this.resync([],[p.CurlyL]),this._parseBody(e,this._parseStylesheetStatement.bind(this))}_parseContainerDeclaration(e=!1){return e?this._tryParseRuleset(!0)||this._tryToParseDeclaration()||this._parseStylesheetStatement(!0):this._parseStylesheetStatement(!1)}_parseContainer(e=!1){if(!this.peekKeyword("@container"))return null;const t=this.create(Up);return this.consumeToken(),t.addChild(this._parseIdent()),t.addChild(this._parseContainerQuery()),this._parseBody(t,this._parseContainerDeclaration.bind(this,e))}_parseContainerQuery(){const e=this.create(O);if(this.acceptIdent("not"))e.addChild(this._parseContainerQueryInParens());else if(e.addChild(this._parseContainerQueryInParens()),this.peekIdent("and"))for(;this.acceptIdent("and");)e.addChild(this._parseContainerQueryInParens());else if(this.peekIdent("or"))for(;this.acceptIdent("or");)e.addChild(this._parseContainerQueryInParens());return this.finish(e)}_parseContainerQueryInParens(){const e=this.create(O);if(this.accept(p.ParenthesisL)){if(this.peekIdent("not")||this.peek(p.ParenthesisL)?e.addChild(this._parseContainerQuery()):e.addChild(this._parseMediaFeature()),!this.accept(p.ParenthesisR))return this.finish(e,y.RightParenthesisExpected,[],[p.CurlyL])}else if(this.acceptIdent("style")){if(this.hasWhitespace()||!this.accept(p.ParenthesisL))return this.finish(e,y.LeftParenthesisExpected,[],[p.CurlyL]);if(e.addChild(this._parseStyleQuery()),!this.accept(p.ParenthesisR))return this.finish(e,y.RightParenthesisExpected,[],[p.CurlyL])}else return this.finish(e,y.LeftParenthesisExpected,[],[p.CurlyL]);return this.finish(e)}_parseStyleQuery(){const e=this.create(O);if(this.acceptIdent("not"))e.addChild(this._parseStyleInParens());else if(this.peek(p.ParenthesisL)){if(e.addChild(this._parseStyleInParens()),this.peekIdent("and"))for(;this.acceptIdent("and");)e.addChild(this._parseStyleInParens());else if(this.peekIdent("or"))for(;this.acceptIdent("or");)e.addChild(this._parseStyleInParens())}else e.addChild(this._parseDeclaration([p.ParenthesisR]));return this.finish(e)}_parseStyleInParens(){const e=this.create(O);if(this.accept(p.ParenthesisL)){if(e.addChild(this._parseStyleQuery()),!this.accept(p.ParenthesisR))return this.finish(e,y.RightParenthesisExpected,[],[p.CurlyL])}else return this.finish(e,y.LeftParenthesisExpected,[],[p.CurlyL]);return this.finish(e)}_parseUnknownAtRule(){if(!this.peek(p.AtKeyword))return null;const e=this.create(El);e.addChild(this._parseUnknownAtRuleName());const t=()=>r===0&&i===0&&s===0;let n=0,r=0,i=0,s=0;e:for(;;){switch(this.token.type){case p.SemiColon:if(t())break e;break;case p.EOF:return r>0?this.finish(e,y.RightCurlyExpected):s>0?this.finish(e,y.RightSquareBracketExpected):i>0?this.finish(e,y.RightParenthesisExpected):this.finish(e);case p.CurlyL:n++,r++;break;case p.CurlyR:if(r--,n>0&&r===0){if(this.consumeToken(),s>0)return this.finish(e,y.RightSquareBracketExpected);if(i>0)return this.finish(e,y.RightParenthesisExpected);break e}if(r<0){if(i===0&&s===0)break e;return this.finish(e,y.LeftCurlyExpected)}break;case p.ParenthesisL:i++;break;case p.ParenthesisR:if(i--,i<0)return this.finish(e,y.LeftParenthesisExpected);break;case p.BracketL:s++;break;case p.BracketR:if(s--,s<0)return this.finish(e,y.LeftSquareBracketExpected);break}this.consumeToken()}return e}_parseUnknownAtRuleName(){const e=this.create(O);return this.accept(p.AtKeyword)?this.finish(e):e}_parseOperator(){if(this.peekDelim("/")||this.peekDelim("*")||this.peekDelim("+")||this.peekDelim("-")||this.peek(p.Dashmatch)||this.peek(p.Includes)||this.peek(p.SubstringOperator)||this.peek(p.PrefixOperator)||this.peek(p.SuffixOperator)||this.peekDelim("=")){const e=this.createNode(b.Operator);return this.consumeToken(),this.finish(e)}else return null}_parseUnaryOperator(){if(!this.peekDelim("+")&&!this.peekDelim("-"))return null;const e=this.create(O);return this.consumeToken(),this.finish(e)}_parseCombinator(){if(this.peekDelim(">")){const e=this.create(O);this.consumeToken();const t=this.mark();if(!this.hasWhitespace()&&this.acceptDelim(">")){if(!this.hasWhitespace()&&this.acceptDelim(">"))return e.type=b.SelectorCombinatorShadowPiercingDescendant,this.finish(e);this.restoreAtMark(t)}return e.type=b.SelectorCombinatorParent,this.finish(e)}else if(this.peekDelim("+")){const e=this.create(O);return this.consumeToken(),e.type=b.SelectorCombinatorSibling,this.finish(e)}else if(this.peekDelim("~")){const e=this.create(O);return this.consumeToken(),e.type=b.SelectorCombinatorAllSiblings,this.finish(e)}else if(this.peekDelim("/")){const e=this.create(O);this.consumeToken();const t=this.mark();if(!this.hasWhitespace()&&this.acceptIdent("deep")&&!this.hasWhitespace()&&this.acceptDelim("/"))return e.type=b.SelectorCombinatorShadowPiercingDescendant,this.finish(e);this.restoreAtMark(t)}return null}_parseSimpleSelector(){const e=this.create(Jt);let t=0;for(e.addChild(this._parseElementName()||this._parseNestingSelector())&&t++;(t===0||!this.hasWhitespace())&&e.addChild(this._parseSimpleSelectorBody());)t++;return t>0?this.finish(e):null}_parseNestingSelector(){if(this.peekDelim("&")){const e=this.createNode(b.SelectorCombinator);return this.consumeToken(),this.finish(e)}return null}_parseSimpleSelectorBody(){return this._parsePseudo()||this._parseHash()||this._parseClass()||this._parseAttrib()}_parseSelectorIdent(){return this._parseIdent()}_parseHash(){if(!this.peek(p.Hash)&&!this.peekDelim("#"))return null;const e=this.createNode(b.IdentifierSelector);if(this.acceptDelim("#")){if(this.hasWhitespace()||!e.addChild(this._parseSelectorIdent()))return this.finish(e,y.IdentifierExpected)}else this.consumeToken();return this.finish(e)}_parseClass(){if(!this.peekDelim("."))return null;const e=this.createNode(b.ClassSelector);return this.consumeToken(),this.hasWhitespace()||!e.addChild(this._parseSelectorIdent())?this.finish(e,y.IdentifierExpected):this.finish(e)}_parseElementName(){const e=this.mark(),t=this.createNode(b.ElementNameSelector);return t.addChild(this._parseNamespacePrefix()),!t.addChild(this._parseSelectorIdent())&&!this.acceptDelim("*")?(this.restoreAtMark(e),null):this.finish(t)}_parseNamespacePrefix(){const e=this.mark(),t=this.createNode(b.NamespacePrefix);return!t.addChild(this._parseIdent())&&this.acceptDelim("*"),this.acceptDelim("|")?this.finish(t):(this.restoreAtMark(e),null)}_parseAttrib(){if(!this.peek(p.BracketL))return null;const e=this.create(Hp);return this.consumeToken(),e.setNamespacePrefix(this._parseNamespacePrefix()),e.setIdentifier(this._parseIdent())?(e.setOperator(this._parseOperator())&&(e.setValue(this._parseBinaryExpr()),this.acceptIdent("i"),this.acceptIdent("s")),this.accept(p.BracketR)?this.finish(e):this.finish(e,y.RightSquareBracketExpected)):this.finish(e,y.IdentifierExpected)}_parsePseudo(){const e=this._tryParsePseudoIdentifier();if(e){if(!this.hasWhitespace()&&this.accept(p.ParenthesisL)){const t=()=>{const r=this.create(O);if(!r.addChild(this._parseSelector(!0)))return null;for(;this.accept(p.Comma)&&r.addChild(this._parseSelector(!0)););return this.peek(p.ParenthesisR)?this.finish(r):null};if(!e.addChild(this.try(t))&&e.addChild(this._parseBinaryExpr())&&this.acceptIdent("of")&&!e.addChild(this.try(t)))return this.finish(e,y.SelectorExpected);if(!this.accept(p.ParenthesisR))return this.finish(e,y.RightParenthesisExpected)}return this.finish(e)}return null}_tryParsePseudoIdentifier(){if(!this.peek(p.Colon))return null;const e=this.mark(),t=this.createNode(b.PseudoSelector);return this.consumeToken(),this.hasWhitespace()?(this.restoreAtMark(e),null):(this.accept(p.Colon),this.hasWhitespace()||!t.addChild(this._parseIdent())?this.finish(t,y.IdentifierExpected):this.finish(t))}_tryParsePrio(){const e=this.mark(),t=this._parsePrio();return t||(this.restoreAtMark(e),null)}_parsePrio(){if(!this.peek(p.Exclamation))return null;const e=this.createNode(b.Prio);return this.accept(p.Exclamation)&&this.acceptIdent("important")?this.finish(e):null}_parseExpr(e=!1){const t=this.create(kl);if(!t.addChild(this._parseBinaryExpr()))return null;for(;;){if(this.peek(p.Comma)){if(e)return this.finish(t);this.consumeToken()}if(!t.addChild(this._parseBinaryExpr()))break}return this.finish(t)}_parseUnicodeRange(){if(!this.peekIdent("u"))return null;const e=this.create(xp);return this.acceptUnicodeRange()?this.finish(e):null}_parseNamedLine(){if(!this.peek(p.BracketL))return null;const e=this.createNode(b.GridLine);for(this.consumeToken();e.addChild(this._parseIdent()););return this.accept(p.BracketR)?this.finish(e):this.finish(e,y.RightSquareBracketExpected)}_parseBinaryExpr(e,t){let n=this.create(Ui);if(!n.setLeft(e||this._parseTerm()))return null;if(!n.setOperator(t||this._parseOperator()))return this.finish(n);if(!n.setRight(this._parseTerm()))return this.finish(n,y.TermExpected);n=this.finish(n);const r=this._parseOperator();return r&&(n=this._parseBinaryExpr(n,r)),this.finish(n)}_parseTerm(){let e=this.create(jp);return e.setOperator(this._parseUnaryOperator()),e.setExpression(this._parseTermExpression())?this.finish(e):null}_parseTermExpression(){return this._parseURILiteral()||this._parseUnicodeRange()||this._parseFunction()||this._parseIdent()||this._parseStringLiteral()||this._parseNumeric()||this._parseHexColor()||this._parseOperation()||this._parseNamedLine()}_parseOperation(){if(!this.peek(p.ParenthesisL))return null;const e=this.create(O);return this.consumeToken(),e.addChild(this._parseExpr()),this.accept(p.ParenthesisR)?this.finish(e):this.finish(e,y.RightParenthesisExpected)}_parseNumeric(){if(this.peek(p.Num)||this.peek(p.Percentage)||this.peek(p.Resolution)||this.peek(p.Length)||this.peek(p.EMS)||this.peek(p.EXS)||this.peek(p.Angle)||this.peek(p.Time)||this.peek(p.Dimension)||this.peek(p.ContainerQueryLength)||this.peek(p.Freq)){const e=this.create($i);return this.consumeToken(),this.finish(e)}return null}_parseStringLiteral(){if(!this.peek(p.String)&&!this.peek(p.BadString))return null;const e=this.createNode(b.StringLiteral);return this.consumeToken(),this.finish(e)}_parseURILiteral(){if(!this.peekRegExp(p.Ident,/^url(-prefix)?$/i))return null;const e=this.mark(),t=this.createNode(b.URILiteral);return this.accept(p.Ident),this.hasWhitespace()||!this.peek(p.ParenthesisL)?(this.restoreAtMark(e),null):(this.scanner.inURL=!0,this.consumeToken(),t.addChild(this._parseURLArgument()),this.scanner.inURL=!1,this.accept(p.ParenthesisR)?this.finish(t):this.finish(t,y.RightParenthesisExpected))}_parseURLArgument(){const e=this.create(O);return!this.accept(p.String)&&!this.accept(p.BadString)&&!this.acceptUnquotedString()?null:this.finish(e)}_parseIdent(e){if(!this.peek(p.Ident))return null;const t=this.create(Me);return e&&(t.referenceTypes=e),t.isCustomProperty=this.peekRegExp(p.Ident,/^--/),this.consumeToken(),this.finish(t)}_parseFunction(){const e=this.mark(),t=this.create(_n);if(!t.setIdentifier(this._parseFunctionIdentifier()))return null;if(this.hasWhitespace()||!this.accept(p.ParenthesisL))return this.restoreAtMark(e),null;if(t.getArguments().addChild(this._parseFunctionArgument()))for(;this.accept(p.Comma)&&!this.peek(p.ParenthesisR);)t.getArguments().addChild(this._parseFunctionArgument())||this.markError(t,y.ExpressionExpected);return this.accept(p.ParenthesisR)?this.finish(t):this.finish(t,y.RightParenthesisExpected)}_parseFunctionIdentifier(){if(!this.peek(p.Ident))return null;const e=this.create(Me);if(e.referenceTypes=[J.Function],this.acceptIdent("progid")){if(this.accept(p.Colon))for(;this.accept(p.Ident)&&this.acceptDelim("."););return this.finish(e)}return this.consumeToken(),this.finish(e)}_parseFunctionArgument(){const e=this.create(Xt);return e.setValue(this._parseExpr(!0))?this.finish(e):null}_parseHexColor(){if(this.peekRegExp(p.Hash,/^#([A-Fa-f0-9]{3}|[A-Fa-f0-9]{4}|[A-Fa-f0-9]{6}|[A-Fa-f0-9]{8})$/g)){const e=this.create(Vi);return this.consumeToken(),this.finish(e)}else return null}};function km(e,t){let n=0,r=e.length;if(r===0)return 0;for(;n<r;){let i=Math.floor((n+r)/2);t(e[i])?r=i:n=i+1}return n}function qc(e,t){return e.indexOf(t)!==-1}function Cr(...e){const t=[];for(const n of e)for(const r of n)qc(t,r)||t.push(r);return t}var jc=class{constructor(e,t){this.offset=e,this.length=t,this.symbols=[],this.parent=null,this.children=[]}addChild(e){this.children.push(e),e.setParent(this)}setParent(e){this.parent=e}findScope(e,t=0){return this.offset<=e&&this.offset+this.length>e+t||this.offset===e&&this.length===t?this.findInScope(e,t):null}findInScope(e,t=0){const n=e+t,r=km(this.children,s=>s.offset>n);if(r===0)return this;const i=this.children[r-1];return i.offset<=e&&i.offset+i.length>=e+t?i.findInScope(e,t):this}addSymbol(e){this.symbols.push(e)}getSymbol(e,t){for(let n=0;n<this.symbols.length;n++){const r=this.symbols[n];if(r.name===e&&r.type===t)return r}return null}getSymbols(){return this.symbols}},Em=class extends jc{constructor(){super(0,Number.MAX_VALUE)}},_r=class{constructor(e,t,n,r){this.name=e,this.value=t,this.node=n,this.type=r}},Fm=class{constructor(e){this.scope=e}addSymbol(e,t,n,r){if(e.offset!==-1){const i=this.scope.findScope(e.offset,e.length);i&&i.addSymbol(new _r(t,n,e,r))}}addScope(e){if(e.offset!==-1){const t=this.scope.findScope(e.offset,e.length);if(t&&(t.offset!==e.offset||t.length!==e.length)){const n=new jc(e.offset,e.length);return t.addChild(n),n}return t}return null}addSymbolToChildScope(e,t,n,r,i){if(e&&e.offset!==-1){const s=this.addScope(e);s&&s.addSymbol(new _r(n,r,t,i))}}visitNode(e){switch(e.type){case b.Keyframe:return this.addSymbol(e,e.getName(),void 0,J.Keyframe),!0;case b.CustomPropertyDeclaration:return this.visitCustomPropertyDeclarationNode(e);case b.VariableDeclaration:return this.visitVariableDeclarationNode(e);case b.Ruleset:return this.visitRuleSet(e);case b.MixinDeclaration:return this.addSymbol(e,e.getName(),void 0,J.Mixin),!0;case b.FunctionDeclaration:return this.addSymbol(e,e.getName(),void 0,J.Function),!0;case b.FunctionParameter:return this.visitFunctionParameterNode(e);case b.Declarations:return this.addScope(e),!0;case b.For:const t=e,n=t.getDeclarations();return n&&t.variable&&this.addSymbolToChildScope(n,t.variable,t.variable.getName(),void 0,J.Variable),!0;case b.Each:{const r=e,i=r.getDeclarations();if(i){const s=r.getVariables().getChildren();for(const a of s)this.addSymbolToChildScope(i,a,a.getName(),void 0,J.Variable)}return!0}}return!0}visitRuleSet(e){const t=this.scope.findScope(e.offset,e.length);if(t)for(const n of e.getSelectors().getChildren())n instanceof Cn&&n.getChildren().length===1&&t.addSymbol(new _r(n.getChild(0).getText(),void 0,n,J.Rule));return!0}visitVariableDeclarationNode(e){const t=e.getValue()?e.getValue().getText():void 0;return this.addSymbol(e,e.getName(),t,J.Variable),!0}visitFunctionParameterNode(e){const t=e.getParent().getDeclarations();if(t){const n=e.getDefaultValue(),r=n?n.getText():void 0;this.addSymbolToChildScope(t,e,e.getName(),r,J.Variable)}return!0}visitCustomPropertyDeclarationNode(e){const t=e.getValue()?e.getValue().getText():"";return this.addCSSVariable(e.getProperty(),e.getProperty().getName(),t,J.Variable),!0}addCSSVariable(e,t,n,r){e.offset!==-1&&this.scope.addSymbol(new _r(t,n,e,r))}},ls=class{constructor(e){this.global=new Em,e.acceptVisitor(new Fm(this.global))}findSymbolsAtOffset(e,t){let n=this.global.findScope(e,0);const r=[],i={};for(;n;){const s=n.getSymbols();for(let a=0;a<s.length;a++){const l=s[a];l.type===t&&!i[l.name]&&(r.push(l),i[l.name]=!0)}n=n.parent}return r}internalFindSymbol(e,t){let n=e;if(e.parent instanceof or&&e.parent.getParent()instanceof se&&(n=e.parent.getParent().getDeclarations()),e.parent instanceof Xt&&e.parent.getParent()instanceof _n){const s=e.parent.getParent().getIdentifier();if(s){const a=this.internalFindSymbol(s,[J.Function]);a&&(n=a.node.getDeclarations())}}if(!n)return null;const r=e.getText();let i=this.global.findScope(n.offset,n.length);for(;i;){for(let s=0;s<t.length;s++){const a=t[s],l=i.getSymbol(r,a);if(l)return l}i=i.parent}return null}evaluateReferenceTypes(e){if(e instanceof Me){const n=e.referenceTypes;if(n)return n;{if(e.isCustomProperty)return[J.Variable];const r=yp(e);if(r){const i=r.getNonPrefixedPropertyName();if((i==="animation"||i==="animation-name")&&r.getValue()&&r.getValue().offset===e.offset)return[J.Keyframe]}}}else if(e instanceof qi)return[J.Variable];return e.findAParent(b.Selector,b.ExtendsReference)?[J.Rule]:null}findSymbolFromNode(e){if(!e)return null;for(;e.type===b.Interpolation;)e=e.getParent();const t=this.evaluateReferenceTypes(e);return t?this.internalFindSymbol(e,t):null}matchesSymbol(e,t){if(!e)return!1;for(;e.type===b.Interpolation;)e=e.getParent();if(!e.matches(t.name))return!1;const n=this.evaluateReferenceTypes(e);return!n||n.indexOf(t.type)===-1?!1:this.internalFindSymbol(e,n)===t}findSymbol(e,t,n){let r=this.global.findScope(n);for(;r;){const i=r.getSymbol(e,t);if(i)return i;r=r.parent}return null}},Hc;(()=>{var e={470:i=>{function s(o){if(typeof o!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(o))}function a(o,c){for(var d,u="",f=0,m=-1,v=0,w=0;w<=o.length;++w){if(w<o.length)d=o.charCodeAt(w);else{if(d===47)break;d=47}if(d===47){if(!(m===w-1||v===1))if(m!==w-1&&v===2){if(u.length<2||f!==2||u.charCodeAt(u.length-1)!==46||u.charCodeAt(u.length-2)!==46){if(u.length>2){var k=u.lastIndexOf("/");if(k!==u.length-1){k===-1?(u="",f=0):f=(u=u.slice(0,k)).length-1-u.lastIndexOf("/"),m=w,v=0;continue}}else if(u.length===2||u.length===1){u="",f=0,m=w,v=0;continue}}c&&(u.length>0?u+="/..":u="..",f=2)}else u.length>0?u+="/"+o.slice(m+1,w):u=o.slice(m+1,w),f=w-m-1;m=w,v=0}else d===46&&v!==-1?++v:v=-1}return u}var l={resolve:function(){for(var o,c="",d=!1,u=arguments.length-1;u>=-1&&!d;u--){var f;u>=0?f=arguments[u]:(o===void 0&&(o=process.cwd()),f=o),s(f),f.length!==0&&(c=f+"/"+c,d=f.charCodeAt(0)===47)}return c=a(c,!d),d?c.length>0?"/"+c:"/":c.length>0?c:"."},normalize:function(o){if(s(o),o.length===0)return".";var c=o.charCodeAt(0)===47,d=o.charCodeAt(o.length-1)===47;return(o=a(o,!c)).length!==0||c||(o="."),o.length>0&&d&&(o+="/"),c?"/"+o:o},isAbsolute:function(o){return s(o),o.length>0&&o.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var o,c=0;c<arguments.length;++c){var d=arguments[c];s(d),d.length>0&&(o===void 0?o=d:o+="/"+d)}return o===void 0?".":l.normalize(o)},relative:function(o,c){if(s(o),s(c),o===c||(o=l.resolve(o))===(c=l.resolve(c)))return"";for(var d=1;d<o.length&&o.charCodeAt(d)===47;++d);for(var u=o.length,f=u-d,m=1;m<c.length&&c.charCodeAt(m)===47;++m);for(var v=c.length-m,w=f<v?f:v,k=-1,R=0;R<=w;++R){if(R===w){if(v>w){if(c.charCodeAt(m+R)===47)return c.slice(m+R+1);if(R===0)return c.slice(m+R)}else f>w&&(o.charCodeAt(d+R)===47?k=R:R===0&&(k=0));break}var I=o.charCodeAt(d+R);if(I!==c.charCodeAt(m+R))break;I===47&&(k=R)}var N="";for(R=d+k+1;R<=u;++R)R!==u&&o.charCodeAt(R)!==47||(N.length===0?N+="..":N+="/..");return N.length>0?N+c.slice(m+k):(m+=k,c.charCodeAt(m)===47&&++m,c.slice(m))},_makeLong:function(o){return o},dirname:function(o){if(s(o),o.length===0)return".";for(var c=o.charCodeAt(0),d=c===47,u=-1,f=!0,m=o.length-1;m>=1;--m)if((c=o.charCodeAt(m))===47){if(!f){u=m;break}}else f=!1;return u===-1?d?"/":".":d&&u===1?"//":o.slice(0,u)},basename:function(o,c){if(c!==void 0&&typeof c!="string")throw new TypeError('"ext" argument must be a string');s(o);var d,u=0,f=-1,m=!0;if(c!==void 0&&c.length>0&&c.length<=o.length){if(c.length===o.length&&c===o)return"";var v=c.length-1,w=-1;for(d=o.length-1;d>=0;--d){var k=o.charCodeAt(d);if(k===47){if(!m){u=d+1;break}}else w===-1&&(m=!1,w=d+1),v>=0&&(k===c.charCodeAt(v)?--v==-1&&(f=d):(v=-1,f=w))}return u===f?f=w:f===-1&&(f=o.length),o.slice(u,f)}for(d=o.length-1;d>=0;--d)if(o.charCodeAt(d)===47){if(!m){u=d+1;break}}else f===-1&&(m=!1,f=d+1);return f===-1?"":o.slice(u,f)},extname:function(o){s(o);for(var c=-1,d=0,u=-1,f=!0,m=0,v=o.length-1;v>=0;--v){var w=o.charCodeAt(v);if(w!==47)u===-1&&(f=!1,u=v+1),w===46?c===-1?c=v:m!==1&&(m=1):c!==-1&&(m=-1);else if(!f){d=v+1;break}}return c===-1||u===-1||m===0||m===1&&c===u-1&&c===d+1?"":o.slice(c,u)},format:function(o){if(o===null||typeof o!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof o);return function(c,d){var u=d.dir||d.root,f=d.base||(d.name||"")+(d.ext||"");return u?u===d.root?u+f:u+"/"+f:f}(0,o)},parse:function(o){s(o);var c={root:"",dir:"",base:"",ext:"",name:""};if(o.length===0)return c;var d,u=o.charCodeAt(0),f=u===47;f?(c.root="/",d=1):d=0;for(var m=-1,v=0,w=-1,k=!0,R=o.length-1,I=0;R>=d;--R)if((u=o.charCodeAt(R))!==47)w===-1&&(k=!1,w=R+1),u===46?m===-1?m=R:I!==1&&(I=1):m!==-1&&(I=-1);else if(!k){v=R+1;break}return m===-1||w===-1||I===0||I===1&&m===w-1&&m===v+1?w!==-1&&(c.base=c.name=v===0&&f?o.slice(1,w):o.slice(v,w)):(v===0&&f?(c.name=o.slice(1,m),c.base=o.slice(1,w)):(c.name=o.slice(v,m),c.base=o.slice(v,w)),c.ext=o.slice(m,w)),v>0?c.dir=o.slice(0,v-1):f&&(c.dir="/"),c},sep:"/",delimiter:":",win32:null,posix:null};l.posix=l,i.exports=l}},t={};function n(i){var s=t[i];if(s!==void 0)return s.exports;var a=t[i]={exports:{}};return e[i](a,a.exports,n),a.exports}n.d=(i,s)=>{for(var a in s)n.o(s,a)&&!n.o(i,a)&&Object.defineProperty(i,a,{enumerable:!0,get:s[a]})},n.o=(i,s)=>Object.prototype.hasOwnProperty.call(i,s),n.r=i=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(i,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(i,"__esModule",{value:!0})};var r={};(()=>{let i;n.r(r),n.d(r,{URI:()=>f,Utils:()=>ee}),typeof process=="object"?i=process.platform==="win32":typeof navigator=="object"&&(i=navigator.userAgent.indexOf("Windows")>=0);const s=/^\\w[\\w\\d+.-]*$/,a=/^\\//,l=/^\\/\\//;function o(A,_){if(!A.scheme&&_)throw new Error(\`[UriError]: Scheme is missing: {scheme: "", authority: "\${A.authority}", path: "\${A.path}", query: "\${A.query}", fragment: "\${A.fragment}"}\`);if(A.scheme&&!s.test(A.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(A.path){if(A.authority){if(!a.test(A.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(l.test(A.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}}const c="",d="/",u=/^(([^:/?#]+?):)?(\\/\\/([^/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?/;class f{constructor(_,C,S,z,D,L=!1){Ct(this,"scheme");Ct(this,"authority");Ct(this,"path");Ct(this,"query");Ct(this,"fragment");typeof _=="object"?(this.scheme=_.scheme||c,this.authority=_.authority||c,this.path=_.path||c,this.query=_.query||c,this.fragment=_.fragment||c):(this.scheme=function(U,B){return U||B?U:"file"}(_,L),this.authority=C||c,this.path=function(U,B){switch(U){case"https":case"http":case"file":B?B[0]!==d&&(B=d+B):B=d}return B}(this.scheme,S||c),this.query=z||c,this.fragment=D||c,o(this,L))}static isUri(_){return _ instanceof f||!!_&&typeof _.authority=="string"&&typeof _.fragment=="string"&&typeof _.path=="string"&&typeof _.query=="string"&&typeof _.scheme=="string"&&typeof _.fsPath=="string"&&typeof _.with=="function"&&typeof _.toString=="function"}get fsPath(){return I(this)}with(_){if(!_)return this;let{scheme:C,authority:S,path:z,query:D,fragment:L}=_;return C===void 0?C=this.scheme:C===null&&(C=c),S===void 0?S=this.authority:S===null&&(S=c),z===void 0?z=this.path:z===null&&(z=c),D===void 0?D=this.query:D===null&&(D=c),L===void 0?L=this.fragment:L===null&&(L=c),C===this.scheme&&S===this.authority&&z===this.path&&D===this.query&&L===this.fragment?this:new v(C,S,z,D,L)}static parse(_,C=!1){const S=u.exec(_);return S?new v(S[2]||c,M(S[4]||c),M(S[5]||c),M(S[7]||c),M(S[9]||c),C):new v(c,c,c,c,c)}static file(_){let C=c;if(i&&(_=_.replace(/\\\\/g,d)),_[0]===d&&_[1]===d){const S=_.indexOf(d,2);S===-1?(C=_.substring(2),_=d):(C=_.substring(2,S),_=_.substring(S)||d)}return new v("file",C,_,c,c)}static from(_){const C=new v(_.scheme,_.authority,_.path,_.query,_.fragment);return o(C,!0),C}toString(_=!1){return N(this,_)}toJSON(){return this}static revive(_){if(_){if(_ instanceof f)return _;{const C=new v(_);return C._formatted=_.external,C._fsPath=_._sep===m?_.fsPath:null,C}}return _}}const m=i?1:void 0;class v extends f{constructor(){super(...arguments);Ct(this,"_formatted",null);Ct(this,"_fsPath",null)}get fsPath(){return this._fsPath||(this._fsPath=I(this)),this._fsPath}toString(C=!1){return C?N(this,!0):(this._formatted||(this._formatted=N(this,!1)),this._formatted)}toJSON(){const C={$mid:1};return this._fsPath&&(C.fsPath=this._fsPath,C._sep=m),this._formatted&&(C.external=this._formatted),this.path&&(C.path=this.path),this.scheme&&(C.scheme=this.scheme),this.authority&&(C.authority=this.authority),this.query&&(C.query=this.query),this.fragment&&(C.fragment=this.fragment),C}}const w={58:"%3A",47:"%2F",63:"%3F",35:"%23",91:"%5B",93:"%5D",64:"%40",33:"%21",36:"%24",38:"%26",39:"%27",40:"%28",41:"%29",42:"%2A",43:"%2B",44:"%2C",59:"%3B",61:"%3D",32:"%20"};function k(A,_,C){let S,z=-1;for(let D=0;D<A.length;D++){const L=A.charCodeAt(D);if(L>=97&&L<=122||L>=65&&L<=90||L>=48&&L<=57||L===45||L===46||L===95||L===126||_&&L===47||C&&L===91||C&&L===93||C&&L===58)z!==-1&&(S+=encodeURIComponent(A.substring(z,D)),z=-1),S!==void 0&&(S+=A.charAt(D));else{S===void 0&&(S=A.substr(0,D));const U=w[L];U!==void 0?(z!==-1&&(S+=encodeURIComponent(A.substring(z,D)),z=-1),S+=U):z===-1&&(z=D)}}return z!==-1&&(S+=encodeURIComponent(A.substring(z))),S!==void 0?S:A}function R(A){let _;for(let C=0;C<A.length;C++){const S=A.charCodeAt(C);S===35||S===63?(_===void 0&&(_=A.substr(0,C)),_+=w[S]):_!==void 0&&(_+=A[C])}return _!==void 0?_:A}function I(A,_){let C;return C=A.authority&&A.path.length>1&&A.scheme==="file"?\`//\${A.authority}\${A.path}\`:A.path.charCodeAt(0)===47&&(A.path.charCodeAt(1)>=65&&A.path.charCodeAt(1)<=90||A.path.charCodeAt(1)>=97&&A.path.charCodeAt(1)<=122)&&A.path.charCodeAt(2)===58?A.path[1].toLowerCase()+A.path.substr(2):A.path,i&&(C=C.replace(/\\//g,"\\\\")),C}function N(A,_){const C=_?R:k;let S="",{scheme:z,authority:D,path:L,query:U,fragment:B}=A;if(z&&(S+=z,S+=":"),(D||z==="file")&&(S+=d,S+=d),D){let q=D.indexOf("@");if(q!==-1){const ae=D.substr(0,q);D=D.substr(q+1),q=ae.lastIndexOf(":"),q===-1?S+=C(ae,!1,!1):(S+=C(ae.substr(0,q),!1,!1),S+=":",S+=C(ae.substr(q+1),!1,!0)),S+="@"}D=D.toLowerCase(),q=D.lastIndexOf(":"),q===-1?S+=C(D,!1,!0):(S+=C(D.substr(0,q),!1,!0),S+=D.substr(q))}if(L){if(L.length>=3&&L.charCodeAt(0)===47&&L.charCodeAt(2)===58){const q=L.charCodeAt(1);q>=65&&q<=90&&(L=\`/\${String.fromCharCode(q+32)}:\${L.substr(3)}\`)}else if(L.length>=2&&L.charCodeAt(1)===58){const q=L.charCodeAt(0);q>=65&&q<=90&&(L=\`\${String.fromCharCode(q+32)}:\${L.substr(2)}\`)}S+=C(L,!0,!1)}return U&&(S+="?",S+=C(U,!1,!1)),B&&(S+="#",S+=_?B:k(B,!1,!1)),S}function E(A){try{return decodeURIComponent(A)}catch{return A.length>3?A.substr(0,3)+E(A.substr(3)):A}}const F=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function M(A){return A.match(F)?A.replace(F,_=>E(_)):A}var T=n(470);const P=T.posix||T,j="/";var ee;(function(A){A.joinPath=function(_,...C){return _.with({path:P.join(_.path,...C)})},A.resolvePath=function(_,...C){let S=_.path,z=!1;S[0]!==j&&(S=j+S,z=!0);let D=P.resolve(S,...C);return z&&D[0]===j&&!_.authority&&(D=D.substring(1)),_.with({path:D})},A.dirname=function(_){if(_.path.length===0||_.path===j)return _;let C=P.dirname(_.path);return C.length===1&&C.charCodeAt(0)===46&&(C=""),_.with({path:C})},A.basename=function(_){return P.basename(_.path)},A.extname=function(_){return P.extname(_.path)}})(ee||(ee={}))})(),Hc=r})();var{URI:cs,Utils:wt}=Hc;function hs(e){return wt.dirname(cs.parse(e)).toString(!0)}function Kt(e,...t){return wt.joinPath(cs.parse(e),...t).toString(!0)}var Rm=class{constructor(e){this.readDirectory=e,this.literalCompletions=[],this.importCompletions=[]}onCssURILiteralValue(e){this.literalCompletions.push(e)}onCssImportPath(e){this.importCompletions.push(e)}async computeCompletions(e,t){const n={items:[],isIncomplete:!1};for(const r of this.literalCompletions){const i=r.uriValue,s=ds(i);if(s==="."||s==="..")n.isIncomplete=!0;else{const a=await this.providePathSuggestions(i,r.position,r.range,e,t);for(let l of a)n.items.push(l)}}for(const r of this.importCompletions){const i=r.pathValue,s=ds(i);if(s==="."||s==="..")n.isIncomplete=!0;else{let a=await this.providePathSuggestions(i,r.position,r.range,e,t);e.languageId==="scss"&&a.forEach(l=>{pe(l.label,"_")&&gl(l.label,".scss")&&(l.textEdit?l.textEdit.newText=l.label.slice(1,-5):l.label=l.label.slice(1,-5))});for(let l of a)n.items.push(l)}}return n}async providePathSuggestions(e,t,n,r,i){const s=ds(e),a=pe(e,"'")||pe(e,'"'),l=a?s.slice(0,t.character-(n.start.character+1)):s.slice(0,t.character-n.start.character),o=r.uri,c=a?Am(n,1,-1):n,d=Dm(l,s,c),u=l.substring(0,l.lastIndexOf("/")+1);let f=i.resolveReference(u||".",o);if(f)try{const m=[],v=await this.readDirectory(f);for(const[w,k]of v)w.charCodeAt(0)!==Nm&&(k===Dn.Directory||Kt(f,w)!==o)&&m.push(Im(w,k===Dn.Directory,d));return m}catch{}return[]}},Nm=46;function ds(e){return pe(e,"'")||pe(e,'"')?e.slice(1,-1):e}function Dm(e,t,n){let r;const i=e.lastIndexOf("/");if(i===-1)r=n;else{const s=t.slice(i+1),a=Er(n.end,-s.length),l=s.indexOf(" ");let o;l!==-1?o=Er(a,l):o=n.end,r=X.create(a,o)}return r}function Im(e,t,n){return t?(e=e+"/",{label:kr(e),kind:V.Folder,textEdit:$.replace(n,kr(e)),command:{title:"Suggest",command:"editor.action.triggerSuggest"}}):{label:kr(e),kind:V.File,textEdit:$.replace(n,kr(e))}}function kr(e){return e.replace(/(\\s|\\(|\\)|,|"|')/g,"\\\\$1")}function Er(e,t){return xe.create(e.line,e.character+t)}function Am(e,t,n){const r=Er(e.start,t),i=Er(e.end,n);return X.create(r,i)}var rt=Ne.Snippet,Gc={title:"Suggest",command:"editor.action.triggerSuggest"},He;(function(e){e.Enums=" ",e.Normal="d",e.VendorPrefixed="x",e.Term="y",e.Variable="z"})(He||(He={}));var us=class{constructor(e=null,t,n){this.variablePrefix=e,this.lsOptions=t,this.cssDataManager=n,this.completionParticipants=[]}configure(e){this.defaultSettings=e}getSymbolContext(){return this.symbolContext||(this.symbolContext=new ls(this.styleSheet)),this.symbolContext}setCompletionParticipants(e){this.completionParticipants=e||[]}async doComplete2(e,t,n,r,i=this.defaultSettings){if(!this.lsOptions.fileSystemProvider||!this.lsOptions.fileSystemProvider.readDirectory)return this.doComplete(e,t,n,i);const s=new Rm(this.lsOptions.fileSystemProvider.readDirectory),a=this.completionParticipants;this.completionParticipants=[s].concat(a);const l=this.doComplete(e,t,n,i);try{const o=await s.computeCompletions(e,r);return{isIncomplete:l.isIncomplete||o.isIncomplete,itemDefaults:l.itemDefaults,items:o.items.concat(l.items)}}finally{this.completionParticipants=a}}doComplete(e,t,n,r){this.offset=e.offsetAt(t),this.position=t,this.currentWord=Pm(e,this.offset),this.defaultReplaceRange=X.create(xe.create(this.position.line,this.position.character-this.currentWord.length),this.position),this.textDocument=e,this.styleSheet=n,this.documentSettings=r;try{const i={isIncomplete:!1,itemDefaults:{editRange:{start:{line:t.line,character:t.character-this.currentWord.length},end:t}},items:[]};this.nodePath=Mi(this.styleSheet,this.offset);for(let s=this.nodePath.length-1;s>=0;s--){const a=this.nodePath[s];if(a instanceof Pi)this.getCompletionsForDeclarationProperty(a.getParent(),i);else if(a instanceof kl)a.parent instanceof Bi?this.getVariableProposals(null,i):this.getCompletionsForExpression(a,i);else if(a instanceof Jt){const l=a.findAParent(b.ExtendsReference,b.Ruleset);if(l)if(l.type===b.ExtendsReference)this.getCompletionsForExtendsReference(l,a,i);else{const o=l;this.getCompletionsForSelector(o,o&&o.isNested(),i)}}else if(a instanceof Xt)this.getCompletionsForFunctionArgument(a,a.getParent(),i);else if(a instanceof Li)this.getCompletionsForDeclarations(a,i);else if(a instanceof cr)this.getCompletionsForVariableDeclaration(a,i);else if(a instanceof Et)this.getCompletionsForRuleSet(a,i);else if(a instanceof Bi)this.getCompletionsForInterpolation(a,i);else if(a instanceof lr)this.getCompletionsForFunctionDeclaration(a,i);else if(a instanceof hr)this.getCompletionsForMixinReference(a,i);else if(a instanceof _n)this.getCompletionsForFunctionArgument(null,a,i);else if(a instanceof Wi)this.getCompletionsForSupports(a,i);else if(a instanceof kn)this.getCompletionsForSupportsCondition(a,i);else if(a instanceof En)this.getCompletionsForExtendsReference(a,null,i);else if(a.type===b.URILiteral)this.getCompletionForUriLiteralValue(a,i);else if(a.parent===null)this.getCompletionForTopLevel(i);else if(a.type===b.StringLiteral&&this.isImportPathParent(a.parent.type))this.getCompletionForImportPath(a,i);else continue;if(i.items.length>0||this.offset>a.offset)return this.finalize(i)}return this.getCompletionsForStylesheet(i),i.items.length===0&&this.variablePrefix&&this.currentWord.indexOf(this.variablePrefix)===0&&this.getVariableProposals(null,i),this.finalize(i)}finally{this.position=null,this.currentWord=null,this.textDocument=null,this.styleSheet=null,this.symbolContext=null,this.defaultReplaceRange=null,this.nodePath=null}}isImportPathParent(e){return e===b.Import}finalize(e){return e}findInNodePath(...e){for(let t=this.nodePath.length-1;t>=0;t--){const n=this.nodePath[t];if(e.indexOf(n.type)!==-1)return n}return null}getCompletionsForDeclarationProperty(e,t){return this.getPropertyProposals(e,t)}getPropertyProposals(e,t){const n=this.isTriggerPropertyValueCompletionEnabled,r=this.isCompletePropertyWithSemicolonEnabled;return this.cssDataManager.getProperties().forEach(s=>{let a,l,o=!1;e?(a=this.getCompletionRange(e.getProperty()),l=s.name,Le(e.colonPosition)||(l+=": ",o=!0)):(a=this.getCompletionRange(null),l=s.name+": ",o=!0),!e&&r&&(l+="$0;"),e&&!e.semicolonPosition&&r&&this.offset>=this.textDocument.offsetAt(a.end)&&(l+="$0;");const c={label:s.name,documentation:bt(s,this.doesSupportMarkdown()),tags:In(s)?[Rt.Deprecated]:[],textEdit:$.replace(a,l),insertTextFormat:Ne.Snippet,kind:V.Property};s.restrictions||(o=!1),n&&o&&(c.command=Gc);const u=(255-(typeof s.relevance=="number"?Math.min(Math.max(s.relevance,0),99):50)).toString(16),f=pe(s.name,"-")?He.VendorPrefixed:He.Normal;c.sortText=f+"_"+u,t.items.push(c)}),this.completionParticipants.forEach(s=>{s.onCssProperty&&s.onCssProperty({propertyName:this.currentWord,range:this.defaultReplaceRange})}),t}get isTriggerPropertyValueCompletionEnabled(){return this.documentSettings?.triggerPropertyValueCompletion??!0}get isCompletePropertyWithSemicolonEnabled(){return this.documentSettings?.completePropertyWithSemicolon??!0}getCompletionsForDeclarationValue(e,t){const n=e.getFullPropertyName(),r=this.cssDataManager.getProperty(n);let i=e.getValue()||null;for(;i&&i.hasChildren();)i=i.findChildAtOffset(this.offset,!1);if(this.completionParticipants.forEach(s=>{s.onCssPropertyValue&&s.onCssPropertyValue({propertyName:n,propertyValue:this.currentWord,range:this.getCompletionRange(i)})}),r){if(r.restrictions)for(const s of r.restrictions)switch(s){case"color":this.getColorProposals(r,i,t);break;case"position":this.getPositionProposals(r,i,t);break;case"repeat":this.getRepeatStyleProposals(r,i,t);break;case"line-style":this.getLineStyleProposals(r,i,t);break;case"line-width":this.getLineWidthProposals(r,i,t);break;case"geometry-box":this.getGeometryBoxProposals(r,i,t);break;case"box":this.getBoxProposals(r,i,t);break;case"image":this.getImageProposals(r,i,t);break;case"timing-function":this.getTimingFunctionProposals(r,i,t);break;case"shape":this.getBasicShapeProposals(r,i,t);break}this.getValueEnumProposals(r,i,t),this.getCSSWideKeywordProposals(r,i,t),this.getUnitProposals(r,i,t)}else{const s=Mm(this.styleSheet,e);for(const a of s.getEntries())t.items.push({label:a,textEdit:$.replace(this.getCompletionRange(i),a),kind:V.Value})}return this.getVariableProposals(i,t),this.getTermProposals(r,i,t),t}getValueEnumProposals(e,t,n){if(e.values)for(const r of e.values){let i=r.name,s;if(gl(i,")")){const o=i.lastIndexOf("(");o!==-1&&(i=i.substring(0,o+1)+"$1"+i.substring(o+1),s=rt)}let a=He.Enums;pe(r.name,"-")&&(a+=He.VendorPrefixed);const l={label:r.name,documentation:bt(r,this.doesSupportMarkdown()),tags:In(e)?[Rt.Deprecated]:[],textEdit:$.replace(this.getCompletionRange(t),i),sortText:a,kind:V.Value,insertTextFormat:s};n.items.push(l)}return n}getCSSWideKeywordProposals(e,t,n){for(const r in Oc)n.items.push({label:r,documentation:Oc[r],textEdit:$.replace(this.getCompletionRange(t),r),kind:V.Value});for(const r in Wc){const i=Zt(r);n.items.push({label:r,documentation:Wc[r],textEdit:$.replace(this.getCompletionRange(t),i),kind:V.Function,insertTextFormat:rt,command:pe(r,"var")?Gc:void 0})}return n}getCompletionsForInterpolation(e,t){return this.offset>=e.offset+2&&this.getVariableProposals(null,t),t}getVariableProposals(e,t){const n=this.getSymbolContext().findSymbolsAtOffset(this.offset,J.Variable);for(const r of n){const i=pe(r.name,"--")?\`var(\${r.name})\`:r.name,s={label:r.name,documentation:r.value?bl(r.value):r.value,textEdit:$.replace(this.getCompletionRange(e),i),kind:V.Variable,sortText:He.Variable};if(typeof s.documentation=="string"&&Rc(s.documentation)&&(s.kind=V.Color),r.node.type===b.FunctionParameter){const a=r.node.getParent();a.type===b.MixinDeclaration&&(s.detail=g("argument from '{0}'",a.getName()))}t.items.push(s)}return t}getVariableProposalsForCSSVarFunction(e){const t=new ps;this.styleSheet.acceptVisitor(new zm(t,this.offset));let n=this.getSymbolContext().findSymbolsAtOffset(this.offset,J.Variable);for(const r of n){if(pe(r.name,"--")){const i={label:r.name,documentation:r.value?bl(r.value):r.value,textEdit:$.replace(this.getCompletionRange(null),r.name),kind:V.Variable};typeof i.documentation=="string"&&Rc(i.documentation)&&(i.kind=V.Color),e.items.push(i)}t.remove(r.name)}for(const r of t.getEntries())if(pe(r,"--")){const i={label:r,textEdit:$.replace(this.getCompletionRange(null),r),kind:V.Variable};e.items.push(i)}return e}getUnitProposals(e,t,n){let r="0";if(this.currentWord.length>0){const i=this.currentWord.match(/^-?\\d[\\.\\d+]*/);i&&(r=i[0],n.isIncomplete=r.length===this.currentWord.length)}else this.currentWord.length===0&&(n.isIncomplete=!0);if(t&&t.parent&&t.parent.type===b.Term&&(t=t.getParent()),e.restrictions)for(const i of e.restrictions){const s=Bc[i];if(s)for(const a of s){const l=r+a;n.items.push({label:l,textEdit:$.replace(this.getCompletionRange(t),l),kind:V.Unit})}}return n}getCompletionRange(e){if(e&&e.offset<=this.offset&&this.offset<=e.end){const t=e.end!==-1?this.textDocument.positionAt(e.end):this.position,n=this.textDocument.positionAt(e.offset);if(n.line===t.line)return X.create(n,t)}return this.defaultReplaceRange}getColorProposals(e,t,n){for(const i in wr)n.items.push({label:i,documentation:wr[i],textEdit:$.replace(this.getCompletionRange(t),i),kind:V.Color});for(const i in os)n.items.push({label:i,documentation:os[i],textEdit:$.replace(this.getCompletionRange(t),i),kind:V.Value});const r=new ps;this.styleSheet.acceptVisitor(new Lm(r,this.offset));for(const i of r.getEntries())n.items.push({label:i,textEdit:$.replace(this.getCompletionRange(t),i),kind:V.Color});for(const i of hm)n.items.push({label:i.label,detail:i.func,documentation:i.desc,textEdit:$.replace(this.getCompletionRange(t),i.insertText),insertTextFormat:rt,kind:V.Function});return n}getPositionProposals(e,t,n){for(const r in Mc)n.items.push({label:r,documentation:Mc[r],textEdit:$.replace(this.getCompletionRange(t),r),kind:V.Value});return n}getRepeatStyleProposals(e,t,n){for(const r in Lc)n.items.push({label:r,documentation:Lc[r],textEdit:$.replace(this.getCompletionRange(t),r),kind:V.Value});return n}getLineStyleProposals(e,t,n){for(const r in zc)n.items.push({label:r,documentation:zc[r],textEdit:$.replace(this.getCompletionRange(t),r),kind:V.Value});return n}getLineWidthProposals(e,t,n){for(const r of xm)n.items.push({label:r,textEdit:$.replace(this.getCompletionRange(t),r),kind:V.Value});return n}getGeometryBoxProposals(e,t,n){for(const r in Tc)n.items.push({label:r,documentation:Tc[r],textEdit:$.replace(this.getCompletionRange(t),r),kind:V.Value});return n}getBoxProposals(e,t,n){for(const r in Pc)n.items.push({label:r,documentation:Pc[r],textEdit:$.replace(this.getCompletionRange(t),r),kind:V.Value});return n}getImageProposals(e,t,n){for(const r in Uc){const i=Zt(r);n.items.push({label:r,documentation:Uc[r],textEdit:$.replace(this.getCompletionRange(t),i),kind:V.Function,insertTextFormat:r!==i?rt:void 0})}return n}getTimingFunctionProposals(e,t,n){for(const r in Vc){const i=Zt(r);n.items.push({label:r,documentation:Vc[r],textEdit:$.replace(this.getCompletionRange(t),i),kind:V.Function,insertTextFormat:r!==i?rt:void 0})}return n}getBasicShapeProposals(e,t,n){for(const r in $c){const i=Zt(r);n.items.push({label:r,documentation:$c[r],textEdit:$.replace(this.getCompletionRange(t),i),kind:V.Function,insertTextFormat:r!==i?rt:void 0})}return n}getCompletionsForStylesheet(e){const t=this.styleSheet.findFirstChildBeforeOffset(this.offset);return t?t instanceof Et?this.getCompletionsForRuleSet(t,e):t instanceof Wi?this.getCompletionsForSupports(t,e):e:this.getCompletionForTopLevel(e)}getCompletionForTopLevel(e){return this.cssDataManager.getAtDirectives().forEach(t=>{e.items.push({label:t.name,textEdit:$.replace(this.getCompletionRange(null),t.name),documentation:bt(t,this.doesSupportMarkdown()),tags:In(t)?[Rt.Deprecated]:[],kind:V.Keyword})}),this.getCompletionsForSelector(null,!1,e),e}getCompletionsForRuleSet(e,t){const n=e.getDeclarations();return n&&n.endsWith("}")&&this.offset>=n.end?this.getCompletionForTopLevel(t):!n||this.offset<=n.offset?this.getCompletionsForSelector(e,e.isNested(),t):this.getCompletionsForDeclarations(e.getDeclarations(),t)}getCompletionsForSelector(e,t,n){const r=this.findInNodePath(b.PseudoSelector,b.IdentifierSelector,b.ClassSelector,b.ElementNameSelector);if(!r&&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=X.create(xe.create(this.position.line,this.position.character-this.currentWord.length),this.position)),this.cssDataManager.getPseudoClasses().forEach(o=>{const c=Zt(o.name),d={label:o.name,textEdit:$.replace(this.getCompletionRange(r),c),documentation:bt(o,this.doesSupportMarkdown()),tags:In(o)?[Rt.Deprecated]:[],kind:V.Function,insertTextFormat:o.name!==c?rt:void 0};pe(o.name,":-")&&(d.sortText=He.VendorPrefixed),n.items.push(d)}),this.cssDataManager.getPseudoElements().forEach(o=>{const c=Zt(o.name),d={label:o.name,textEdit:$.replace(this.getCompletionRange(r),c),documentation:bt(o,this.doesSupportMarkdown()),tags:In(o)?[Rt.Deprecated]:[],kind:V.Function,insertTextFormat:o.name!==c?rt:void 0};pe(o.name,"::-")&&(d.sortText=He.VendorPrefixed),n.items.push(d)}),!t){for(const o of Sm)n.items.push({label:o,textEdit:$.replace(this.getCompletionRange(r),o),kind:V.Keyword});for(const o of Cm)n.items.push({label:o,textEdit:$.replace(this.getCompletionRange(r),o),kind:V.Keyword})}const a={};a[this.currentWord]=!0;const l=this.textDocument.getText();if(this.styleSheet.accept(o=>{if(o.type===b.SimpleSelector&&o.length>0){const c=l.substr(o.offset,o.length);return c.charAt(0)==="."&&!a[c]&&(a[c]=!0,n.items.push({label:c,textEdit:$.replace(this.getCompletionRange(r),c),kind:V.Keyword})),!1}return!0}),e&&e.isNested()){const o=e.getSelectors().findFirstChildBeforeOffset(this.offset);o&&e.getSelectors().getChildren().indexOf(o)===0&&this.getPropertyProposals(null,n)}return n}getCompletionsForDeclarations(e,t){if(!e||this.offset===e.offset)return t;const n=e.findFirstChildBeforeOffset(this.offset);if(!n)return this.getCompletionsForDeclarationProperty(null,t);if(n instanceof zi){const r=n;if(!Le(r.colonPosition)||this.offset<=r.colonPosition)return this.getCompletionsForDeclarationProperty(r,t);if(Le(r.semicolonPosition)&&r.semicolonPosition<this.offset)return this.offset===r.semicolonPosition+1?t:this.getCompletionsForDeclarationProperty(null,t);if(r instanceof qe)return this.getCompletionsForDeclarationValue(r,t)}else n instanceof En?this.getCompletionsForExtendsReference(n,null,t):this.currentWord&&this.currentWord[0]==="@"?this.getCompletionsForDeclarationProperty(null,t):n instanceof Et&&this.getCompletionsForDeclarationProperty(null,t);return t}getCompletionsForVariableDeclaration(e,t){return this.offset&&Le(e.colonPosition)&&this.offset>e.colonPosition&&this.getVariableProposals(e.getValue()||null,t),t}getCompletionsForExpression(e,t){const n=e.getParent();if(n instanceof Xt)return this.getCompletionsForFunctionArgument(n,n.getParent(),t),t;const r=e.findParent(b.Declaration);if(!r)return this.getTermProposals(void 0,null,t),t;const i=e.findChildAtOffset(this.offset,!0);return i?i instanceof $i||i instanceof Me?this.getCompletionsForDeclarationValue(r,t):t:this.getCompletionsForDeclarationValue(r,t)}getCompletionsForFunctionArgument(e,t,n){const r=t.getIdentifier();return r&&r.matches("var")&&(!t.getArguments().hasChildren()||t.getArguments().getChild(0)===e)&&this.getVariableProposalsForCSSVarFunction(n),n}getCompletionsForFunctionDeclaration(e,t){const n=e.getDeclarations();return n&&this.offset>n.offset&&this.offset<n.end&&this.getTermProposals(void 0,null,t),t}getCompletionsForMixinReference(e,t){const n=this.getSymbolContext().findSymbolsAtOffset(this.offset,J.Mixin);for(const i of n)i.node instanceof Fn&&t.items.push(this.makeTermProposal(i,i.node.getParameters(),null));const r=e.getIdentifier()||null;return this.completionParticipants.forEach(i=>{i.onCssMixinReference&&i.onCssMixinReference({mixinName:this.currentWord,range:this.getCompletionRange(r)})}),t}getTermProposals(e,t,n){const r=this.getSymbolContext().findSymbolsAtOffset(this.offset,J.Function);for(const i of r)i.node instanceof lr&&n.items.push(this.makeTermProposal(i,i.node.getParameters(),t));return n}makeTermProposal(e,t,n){e.node;const r=t.getChildren().map(s=>s instanceof or?s.getName():s.getText()),i=e.name+"("+r.map((s,a)=>"\${"+(a+1)+":"+s+"}").join(", ")+")";return{label:e.name,detail:e.name+"("+r.join(", ")+")",textEdit:$.replace(this.getCompletionRange(n),i),insertTextFormat:rt,kind:V.Function,sortText:He.Term}}getCompletionsForSupportsCondition(e,t){const n=e.findFirstChildBeforeOffset(this.offset);if(n){if(n instanceof qe)return!Le(n.colonPosition)||this.offset<=n.colonPosition?this.getCompletionsForDeclarationProperty(n,t):this.getCompletionsForDeclarationValue(n,t);if(n instanceof kn)return this.getCompletionsForSupportsCondition(n,t)}return Le(e.lParent)&&this.offset>e.lParent&&(!Le(e.rParent)||this.offset<=e.rParent)?this.getCompletionsForDeclarationProperty(null,t):t}getCompletionsForSupports(e,t){const n=e.getDeclarations();if(!n||this.offset<=n.offset){const i=e.findFirstChildBeforeOffset(this.offset);return i instanceof kn?this.getCompletionsForSupportsCondition(i,t):t}return this.getCompletionForTopLevel(t)}getCompletionsForExtendsReference(e,t,n){return n}getCompletionForUriLiteralValue(e,t){let n,r,i;if(e.hasChildren()){const s=e.getChild(0);n=s.getText(),r=this.position,i=this.getCompletionRange(s)}else{n="",r=this.position;const s=this.textDocument.positionAt(e.offset+4);i=X.create(s,s)}return this.completionParticipants.forEach(s=>{s.onCssURILiteralValue&&s.onCssURILiteralValue({uriValue:n,position:r,range:i})}),t}getCompletionForImportPath(e,t){return this.completionParticipants.forEach(n=>{n.onCssImportPath&&n.onCssImportPath({pathValue:e.getText(),position:this.position,range:this.getCompletionRange(e)})}),t}hasCharacterAtPosition(e,t){const n=this.textDocument.getText();return e>=0&&e<n.length&&n.charAt(e)===t}doesSupportMarkdown(){if(!Le(this.supportsMarkdown)){if(!Le(this.lsOptions.clientCapabilities))return this.supportsMarkdown=!0,this.supportsMarkdown;const e=this.lsOptions.clientCapabilities.textDocument?.completion?.completionItem?.documentationFormat;this.supportsMarkdown=Array.isArray(e)&&e.indexOf(je.Markdown)!==-1}return this.supportsMarkdown}};function In(e){return!!(e.status&&(e.status==="nonstandard"||e.status==="obsolete"))}var ps=class{constructor(){this.entries={}}add(e){this.entries[e]=!0}remove(e){delete this.entries[e]}getEntries(){return Object.keys(this.entries)}};function Zt(e){return e.replace(/\\(\\)$/,"($1)")}function Mm(e,t){const n=t.getFullPropertyName(),r=new ps;function i(l){return(l instanceof Me||l instanceof $i||l instanceof Vi)&&r.add(l.getText()),!0}function s(l){const o=l.getFullPropertyName();return n===o}function a(l){if(l instanceof qe&&l!==t&&s(l)){const o=l.getValue();o&&o.accept(i)}return!0}return e.accept(a),r}var Lm=class{constructor(e,t){this.entries=e,this.currentOffset=t}visitNode(e){return(e instanceof Vi||e instanceof _n&&mm(e))&&(this.currentOffset<e.offset||e.end<this.currentOffset)&&this.entries.add(e.getText()),!0}},zm=class{constructor(e,t){this.entries=e,this.currentOffset=t}visitNode(e){return e instanceof Me&&e.isCustomProperty&&(this.currentOffset<e.offset||e.end<this.currentOffset)&&this.entries.add(e.getText()),!0}};function Pm(e,t){let n=t-1;const r=e.getText();for(;n>=0&&\`
37
+ \`),n+=e.references.map(r=>\`[\${r.name}](\${r.url})\`).join(" | ")),n}function Ec(e=[]){return e.length===0?null:e.map(t=>{let n="";const r=t.match(/([A-Z]+)(\\d+)?/),i=r[1],s=r[2];return i in _c&&(n+=_c[i]),s&&(n+=" "+s),n}).join(", ")}var cm=/(^#([0-9A-F]{3}){1,2}$)|(^#([0-9A-F]{4}){1,2}$)/i,hm=[{label:"rgb",func:"rgb($red, $green, $blue)",insertText:"rgb(\${1:red}, \${2:green}, \${3:blue})",desc:g("Creates a Color from red, green, and blue values.")},{label:"rgba",func:"rgba($red, $green, $blue, $alpha)",insertText:"rgba(\${1:red}, \${2:green}, \${3:blue}, \${4:alpha})",desc:g("Creates a Color from red, green, blue, and alpha values.")},{label:"rgb relative",func:"rgb(from $color $red $green $blue)",insertText:"rgb(from \${1:color} \${2:r} \${3:g} \${4:b})",desc:g("Creates a Color from the red, green, and blue values of another Color.")},{label:"hsl",func:"hsl($hue, $saturation, $lightness)",insertText:"hsl(\${1:hue}, \${2:saturation}, \${3:lightness})",desc:g("Creates a Color from hue, saturation, and lightness values.")},{label:"hsla",func:"hsla($hue, $saturation, $lightness, $alpha)",insertText:"hsla(\${1:hue}, \${2:saturation}, \${3:lightness}, \${4:alpha})",desc:g("Creates a Color from hue, saturation, lightness, and alpha values.")},{label:"hsl relative",func:"hsl(from $color $hue $saturation $lightness)",insertText:"hsl(from \${1:color} \${2:h} \${3:s} \${4:l})",desc:g("Creates a Color from the hue, saturation, and lightness values of another Color.")},{label:"hwb",func:"hwb($hue $white $black)",insertText:"hwb(\${1:hue} \${2:white} \${3:black})",desc:g("Creates a Color from hue, white, and black values.")},{label:"hwb relative",func:"hwb(from $color $hue $white $black)",insertText:"hwb(from \${1:color} \${2:h} \${3:w} \${4:b})",desc:g("Creates a Color from the hue, white, and black values of another Color.")},{label:"lab",func:"lab($lightness $a $b)",insertText:"lab(\${1:lightness} \${2:a} \${3:b})",desc:g("Creates a Color from lightness, a, and b values.")},{label:"lab relative",func:"lab(from $color $lightness $a $b)",insertText:"lab(from \${1:color} \${2:l} \${3:a} \${4:b})",desc:g("Creates a Color from the lightness, a, and b values of another Color.")},{label:"oklab",func:"oklab($lightness $a $b)",insertText:"oklab(\${1:lightness} \${2:a} \${3:b})",desc:g("Creates a Color from lightness, a, and b values.")},{label:"oklab relative",func:"oklab(from $color $lightness $a $b)",insertText:"oklab(from \${1:color} \${2:l} \${3:a} \${4:b})",desc:g("Creates a Color from the lightness, a, and b values of another Color.")},{label:"lch",func:"lch($lightness $chroma $hue)",insertText:"lch(\${1:lightness} \${2:chroma} \${3:hue})",desc:g("Creates a Color from lightness, chroma, and hue values.")},{label:"lch relative",func:"lch(from $color $lightness $chroma $hue)",insertText:"lch(from \${1:color} \${2:l} \${3:c} \${4:h})",desc:g("Creates a Color from the lightness, chroma, and hue values of another Color.")},{label:"oklch",func:"oklch($lightness $chroma $hue)",insertText:"oklch(\${1:lightness} \${2:chroma} \${3:hue})",desc:g("Creates a Color from lightness, chroma, and hue values.")},{label:"oklch relative",func:"oklch(from $color $lightness $chroma $hue)",insertText:"oklch(from \${1:color} \${2:l} \${3:c} \${4:h})",desc:g("Creates a Color from the lightness, chroma, and hue values of another Color.")},{label:"color",func:"color($color-space $red $green $blue)",insertText:"color(\${1|srgb,srgb-linear,display-p3,a98-rgb,prophoto-rgb,rec2020,xyx,xyz-d50,xyz-d65|} \${2:red} \${3:green} \${4:blue})",desc:g("Creates a Color in a specific color space from red, green, and blue values.")},{label:"color relative",func:"color(from $color $color-space $red $green $blue)",insertText:"color(from \${1:color} \${2|srgb,srgb-linear,display-p3,a98-rgb,prophoto-rgb,rec2020,xyx,xyz-d50,xyz-d65|} \${3:r} \${4:g} \${5:b})",desc:g("Creates a Color in a specific color space from the red, green, and blue values of another Color.")},{label:"color-mix",func:"color-mix(in $color-space, $color $percentage, $color $percentage)",insertText:"color-mix(in \${1|srgb,srgb-linear,lab,oklab,xyz,xyz-d50,xyz-d65|}, \${3:color} \${4:percentage}, \${5:color} \${6:percentage})",desc:g("Mix two colors together in a rectangular color space.")},{label:"color-mix hue",func:"color-mix(in $color-space $interpolation-method hue, $color $percentage, $color $percentage)",insertText:"color-mix(in \${1|hsl,hwb,lch,oklch|} \${2|shorter hue,longer hue,increasing hue,decreasing hue|}, \${3:color} \${4:percentage}, \${5:color} \${6:percentage})",desc:g("Mix two colors together in a polar color space.")}],dm=/^(rgb|rgba|hsl|hsla|hwb)$/i,yr={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"},um=new RegExp(\`^(\${Object.keys(yr).join("|")})$\`,"i"),os={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."},pm=new RegExp(\`^(\${Object.keys(os).join("|")})$\`,"i");function vt(e,t){const r=e.getText().match(/^([-+]?[0-9]*\\.?[0-9]+)(%?)$/);if(r){r[2]&&(t=100);const i=parseFloat(r[1])/t;if(i>=0&&i<=1)return i}throw new Error}function Fc(e){const t=e.getText(),n=t.match(/^([-+]?[0-9]*\\.?[0-9]+)(deg|rad|grad|turn)?$/);if(n)switch(n[2]){case"deg":return parseFloat(t)%360;case"rad":return parseFloat(t)*180/Math.PI%360;case"grad":return parseFloat(t)*.9%360;case"turn":return parseFloat(t)*360%360;default:if(typeof n[2]>"u")return parseFloat(t)%360}throw new Error}function mm(e){const t=e.getName();return t?dm.test(t):!1}function Rc(e){return cm.test(e)||um.test(e)||pm.test(e)}var Nc=48,fm=57,gm=65,xr=97,bm=102;function de(e){return e<Nc?0:e<=fm?e-Nc:(e<xr&&(e+=xr-gm),e>=xr&&e<=bm?e-xr+10:0)}function Dc(e){if(e[0]!=="#")return null;switch(e.length){case 4:return{red:de(e.charCodeAt(1))*17/255,green:de(e.charCodeAt(2))*17/255,blue:de(e.charCodeAt(3))*17/255,alpha:1};case 5:return{red:de(e.charCodeAt(1))*17/255,green:de(e.charCodeAt(2))*17/255,blue:de(e.charCodeAt(3))*17/255,alpha:de(e.charCodeAt(4))*17/255};case 7:return{red:(de(e.charCodeAt(1))*16+de(e.charCodeAt(2)))/255,green:(de(e.charCodeAt(3))*16+de(e.charCodeAt(4)))/255,blue:(de(e.charCodeAt(5))*16+de(e.charCodeAt(6)))/255,alpha:1};case 9:return{red:(de(e.charCodeAt(1))*16+de(e.charCodeAt(2)))/255,green:(de(e.charCodeAt(3))*16+de(e.charCodeAt(4)))/255,blue:(de(e.charCodeAt(5))*16+de(e.charCodeAt(6)))/255,alpha:(de(e.charCodeAt(7))*16+de(e.charCodeAt(8)))/255}}return null}function Ic(e,t,n,r=1){if(e=e/60,t===0)return{red:n,green:n,blue:n,alpha:r};{const i=(l,o,c)=>{for(;c<0;)c+=6;for(;c>=6;)c-=6;return c<1?(o-l)*c+l:c<3?o:c<4?(o-l)*(4-c)+l:l},s=n<=.5?n*(t+1):n+t-n*t,a=n*2-s;return{red:i(a,s,e+2),green:i(a,s,e),blue:i(a,s,e-2),alpha:r}}}function Ac(e){const t=e.red,n=e.green,r=e.blue,i=e.alpha,s=Math.max(t,n,r),a=Math.min(t,n,r);let l=0,o=0;const c=(a+s)/2,d=s-a;if(d>0){switch(o=Math.min(c<=.5?d/(2*c):d/(2-2*c),1),s){case t:l=(n-r)/d+(n<r?6:0);break;case n:l=(r-t)/d+2;break;case r:l=(t-n)/d+4;break}l*=60,l=Math.round(l)}return{h:l,s:o,l:c,a:i}}function vm(e,t,n,r=1){if(t+n>=1){const o=t/(t+n);return{red:o,green:o,blue:o,alpha:r}}const i=Ic(e,1,.5,r);let s=i.red;s*=1-t-n,s+=t;let a=i.green;a*=1-t-n,a+=t;let l=i.blue;return l*=1-t-n,l+=t,{red:s,green:a,blue:l,alpha:r}}function wm(e){const t=Ac(e),n=Math.min(e.red,e.green,e.blue),r=1-Math.max(e.red,e.green,e.blue);return{h:t.h,w:n,b:r,a:t.a}}function ym(e){if(e.type===b.HexColorValue){const t=e.getText();return Dc(t)}else if(e.type===b.Function){const t=e,n=t.getName();let r=t.getArguments().getChildren();if(r.length===1){const i=r[0].getChildren();if(i.length===1&&i[0].type===b.Expression&&(r=i[0].getChildren(),r.length===3)){const s=r[2];if(s instanceof Ui){const a=s.getLeft(),l=s.getRight(),o=s.getOperator();a&&l&&o&&o.matches("/")&&(r=[r[0],r[1],a,l])}}}if(!n||r.length<3||r.length>4)return null;try{const i=r.length===4?vt(r[3],1):1;if(n==="rgb"||n==="rgba")return{red:vt(r[0],255),green:vt(r[1],255),blue:vt(r[2],255),alpha:i};if(n==="hsl"||n==="hsla"){const s=Fc(r[0]),a=vt(r[1],100),l=vt(r[2],100);return Ic(s,a,l,i)}else if(n==="hwb"){const s=Fc(r[0]),a=vt(r[1],100),l=vt(r[2],100);return vm(s,a,l,i)}}catch{return null}}else if(e.type===b.Identifier){if(e.parent&&e.parent.type!==b.Term)return null;const t=e.parent;if(t&&t.parent&&t.parent.type===b.BinaryExpression){const i=t.parent;if(i.parent&&i.parent.type===b.ListEntry&&i.parent.key===i)return null}const n=e.getText().toLowerCase();if(n==="none")return null;const r=yr[n];if(r)return Dc(r)}return null}var Mc={bottom:"Computes to ‘100%’ 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 ‘50%’ (‘left 50%’) for the horizontal position if the horizontal position is not otherwise specified, or ‘50%’ (‘top 50%’) for the vertical position if it is.",left:"Computes to ‘0%’ 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 ‘100%’ 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 ‘0%’ for the vertical position if one or two values are given, otherwise specifies the top edge as the origin for the next offset."},Lc={"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 ‘repeat no-repeat’.","repeat-y":"Computes to ‘no-repeat repeat’.",round:"Repeated as often as will fit within the background positioning area. If it doesn’t 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."},zc={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 ‘none’, 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."},xm=["medium","thick","thin"],Pc={"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."},Tc={"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."},Oc={initial:"Represents the value specified as the property’s initial value.",inherit:"Represents the computed value of the property on the element’s parent.",unset:"Acts as either \`inherit\` or \`initial\`, depending on whether the property is inherited or not."},Wc={"var()":"Evaluates the value of a custom variable.","calc()":"Evaluates an mathematical expression. The following operators can be used: + - * /."},Uc={"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’s position and the first specified color-stop’s 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’s position and the first specified color-stop’s position."},Vc={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 “start” or “end”.","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."},$c={"circle()":"Defines a circle.","ellipse()":"Defines an ellipse.","inset()":"Defines an inset rectangle.","polygon()":"Defines a polygon."},Bc={length:["cap","ch","cm","cqb","cqh","cqi","cqmax","cqmin","cqw","dvb","dvh","dvi","dvw","em","ex","ic","in","lh","lvb","lvh","lvi","lvw","mm","pc","pt","px","q","rcap","rch","rem","rex","ric","rlh","svb","svh","svi","svw","vb","vh","vi","vmax","vmin","vw"],angle:["deg","rad","grad","turn"],time:["ms","s"],frequency:["Hz","kHz"],resolution:["dpi","dpcm","dppx"],percentage:["%","fr"]},Sm=["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"],Cm=["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"],_m=["@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"];function Sr(e){return Object.keys(e).map(t=>e[t])}function Le(e){return typeof e<"u"}var Cr=class{constructor(e=new Sn){this.keyframeRegex=/^@(\\-(webkit|ms|moz|o)\\-)?keyframes$/i,this.scanner=e,this.token={type:p.EOF,offset:-1,len:0,text:""},this.prevToken=void 0}peekIdent(e){return p.Ident===this.token.type&&e.length===this.token.text.length&&e===this.token.text.toLowerCase()}peekKeyword(e){return p.AtKeyword===this.token.type&&e.length===this.token.text.length&&e===this.token.text.toLowerCase()}peekDelim(e){return p.Delim===this.token.type&&e===this.token.text}peek(e){return e===this.token.type}peekOne(...e){return e.indexOf(this.token.type)!==-1}peekRegExp(e,t){return e!==this.token.type?!1:t.test(this.token.text)}hasWhitespace(){return!!this.prevToken&&this.prevToken.offset+this.prevToken.len!==this.token.offset}consumeToken(){this.prevToken=this.token,this.token=this.scanner.scan()}acceptUnicodeRange(){const e=this.scanner.tryScanUnicode();return e?(this.prevToken=e,this.token=this.scanner.scan(),!0):!1}mark(){return{prev:this.prevToken,curr:this.token,pos:this.scanner.pos()}}restoreAtMark(e){this.prevToken=e.prev,this.token=e.curr,this.scanner.goBackTo(e.pos)}try(e){const t=this.mark(),n=e();return n||(this.restoreAtMark(t),null)}acceptOneKeyword(e){if(p.AtKeyword===this.token.type){for(const t of e)if(t.length===this.token.text.length&&t===this.token.text.toLowerCase())return this.consumeToken(),!0}return!1}accept(e){return e===this.token.type?(this.consumeToken(),!0):!1}acceptIdent(e){return this.peekIdent(e)?(this.consumeToken(),!0):!1}acceptKeyword(e){return this.peekKeyword(e)?(this.consumeToken(),!0):!1}acceptDelim(e){return this.peekDelim(e)?(this.consumeToken(),!0):!1}acceptRegexp(e){return e.test(this.token.text)?(this.consumeToken(),!0):!1}_parseRegexp(e){let t=this.createNode(b.Identifier);do;while(this.acceptRegexp(e));return this.finish(t)}acceptUnquotedString(){const e=this.scanner.pos();this.scanner.goBackTo(this.token.offset);const t=this.scanner.scanUnquotedString();return t?(this.token=t,this.consumeToken(),!0):(this.scanner.goBackTo(e),!1)}resync(e,t){for(;;){if(e&&e.indexOf(this.token.type)!==-1)return this.consumeToken(),!0;if(t&&t.indexOf(this.token.type)!==-1)return!0;if(this.token.type===p.EOF)return!1;this.token=this.scanner.scan()}}createNode(e){return new O(this.token.offset,this.token.len,e)}create(e){return new e(this.token.offset,this.token.len)}finish(e,t,n,r){if(!(e instanceof ye)&&(t&&this.markError(e,t,n,r),this.prevToken)){const i=this.prevToken.offset+this.prevToken.len;e.length=i>e.offset?i-e.offset:0}return e}markError(e,t,n,r){this.token!==this.lastErrorToken&&(e.addIssue(new Rl(e,t,Re.Error,void 0,this.token.offset,this.token.len)),this.lastErrorToken=this.token),(n||r)&&this.resync(n,r)}parseStylesheet(e){const t=e.version,n=e.getText(),r=(i,s)=>{if(e.version!==t)throw new Error("Underlying model has changed, AST is no longer valid");return n.substr(i,s)};return this.internalParse(n,this._parseStylesheet,r)}internalParse(e,t,n){this.scanner.setSource(e),this.token=this.scanner.scan();const r=t.bind(this)();return r&&(n?r.textProvider=n:r.textProvider=(i,s)=>e.substr(i,s)),r}_parseStylesheet(){const e=this.create(Sp);for(;e.addChild(this._parseStylesheetStart()););let t=!1;do{let n=!1;do{n=!1;const r=this._parseStylesheetStatement();for(r&&(e.addChild(r),n=!0,t=!1,!this.peek(p.EOF)&&this._needsSemicolonAfter(r)&&!this.accept(p.SemiColon)&&this.markError(e,y.SemiColonExpected));this.accept(p.SemiColon)||this.accept(p.CDO)||this.accept(p.CDC);)n=!0,t=!1}while(n);if(this.peek(p.EOF))break;t||(this.peek(p.AtKeyword)?this.markError(e,y.UnknownAtRule):this.markError(e,y.RuleOrSelectorExpected),t=!0),this.consumeToken()}while(!this.peek(p.EOF));return this.finish(e)}_parseStylesheetStart(){return this._parseCharset()}_parseStylesheetStatement(e=!1){return this.peek(p.AtKeyword)?this._parseStylesheetAtStatement(e):this._parseRuleset(e)}_parseStylesheetAtStatement(e=!1){return this._parseImport()||this._parseMedia(e)||this._parsePage()||this._parseFontFace()||this._parseKeyframe()||this._parseSupports(e)||this._parseLayer(e)||this._parsePropertyAtRule()||this._parseViewPort()||this._parseNamespace()||this._parseDocument()||this._parseContainer(e)||this._parseUnknownAtRule()}_tryParseRuleset(e){const t=this.mark();if(this._parseSelector(e)){for(;this.accept(p.Comma)&&this._parseSelector(e););if(this.accept(p.CurlyL))return this.restoreAtMark(t),this._parseRuleset(e)}return this.restoreAtMark(t),null}_parseRuleset(e=!1){const t=this.create(Et),n=t.getSelectors();if(!n.addChild(this._parseSelector(e)))return null;for(;this.accept(p.Comma);)if(!n.addChild(this._parseSelector(e)))return this.finish(t,y.SelectorExpected);return this._parseBody(t,this._parseRuleSetDeclaration.bind(this))}_parseRuleSetDeclarationAtStatement(){return this._parseMedia(!0)||this._parseSupports(!0)||this._parseLayer(!0)||this._parseContainer(!0)||this._parseUnknownAtRule()}_parseRuleSetDeclaration(){return this.peek(p.AtKeyword)?this._parseRuleSetDeclarationAtStatement():this.peek(p.Ident)?this._tryParseRuleset(!0)||this._parseDeclaration():this._parseRuleset(!0)}_needsSemicolonAfter(e){switch(e.type){case b.Keyframe:case b.ViewPort:case b.Media:case b.Ruleset:case b.Namespace:case b.If:case b.For:case b.Each:case b.While:case b.MixinDeclaration:case b.FunctionDeclaration:case b.MixinContentDeclaration:return!1;case b.ExtendsReference:case b.MixinContentReference:case b.ReturnStatement:case b.MediaQuery:case b.Debug:case b.Import:case b.AtApplyRule:case b.CustomPropertyDeclaration:return!0;case b.VariableDeclaration:return e.needsSemicolon;case b.MixinReference:return!e.getContent();case b.Declaration:return!e.getNestedProperties()}return!1}_parseDeclarations(e){const t=this.create(Li);if(!this.accept(p.CurlyL))return null;let n=e();for(;t.addChild(n)&&!this.peek(p.CurlyR);){if(this._needsSemicolonAfter(n)&&!this.accept(p.SemiColon))return this.finish(t,y.SemiColonExpected,[p.SemiColon,p.CurlyR]);for(n&&this.prevToken&&this.prevToken.type===p.SemiColon&&(n.semicolonPosition=this.prevToken.offset);this.accept(p.SemiColon););n=e()}return this.accept(p.CurlyR)?this.finish(t):this.finish(t,y.RightCurlyExpected,[p.CurlyR,p.SemiColon])}_parseBody(e,t){return e.setDeclarations(this._parseDeclarations(t))?this.finish(e):this.finish(e,y.LeftCurlyExpected,[p.CurlyR,p.SemiColon])}_parseSelector(e){const t=this.create(Cn);let n=!1;for(e&&(n=t.addChild(this._parseCombinator()));t.addChild(this._parseSimpleSelector());)n=!0,t.addChild(this._parseCombinator());return n?this.finish(t):null}_parseDeclaration(e){const t=this._tryParseCustomPropertyDeclaration(e);if(t)return t;const n=this.create(qe);return n.setProperty(this._parseProperty())?this.accept(p.Colon)?(this.prevToken&&(n.colonPosition=this.prevToken.offset),n.setValue(this._parseExpr())?(n.addChild(this._parsePrio()),this.peek(p.SemiColon)&&(n.semicolonPosition=this.token.offset),this.finish(n)):this.finish(n,y.PropertyValueExpected)):this.finish(n,y.ColonExpected,[p.Colon],e||[p.SemiColon]):null}_tryParseCustomPropertyDeclaration(e){if(!this.peekRegExp(p.Ident,/^--/))return null;const t=this.create(_p);if(!t.setProperty(this._parseProperty()))return null;if(!this.accept(p.Colon))return this.finish(t,y.ColonExpected,[p.Colon]);this.prevToken&&(t.colonPosition=this.prevToken.offset);const n=this.mark();if(this.peek(p.CurlyL)){const i=this.create(Cp),s=this._parseDeclarations(this._parseRuleSetDeclaration.bind(this));if(i.setDeclarations(s)&&!s.isErroneous(!0)&&(i.addChild(this._parsePrio()),this.peek(p.SemiColon)))return this.finish(i),t.setPropertySet(i),t.semicolonPosition=this.token.offset,this.finish(t);this.restoreAtMark(n)}const r=this._parseExpr();return r&&!r.isErroneous(!0)&&(this._parsePrio(),this.peekOne(...e||[],p.SemiColon,p.EOF))?(t.setValue(r),this.peek(p.SemiColon)&&(t.semicolonPosition=this.token.offset),this.finish(t)):(this.restoreAtMark(n),t.addChild(this._parseCustomPropertyValue(e)),t.addChild(this._parsePrio()),Le(t.colonPosition)&&this.token.offset===t.colonPosition+1?this.finish(t,y.PropertyValueExpected):this.finish(t))}_parseCustomPropertyValue(e=[p.CurlyR]){const t=this.create(O),n=()=>i===0&&s===0&&a===0,r=()=>e.indexOf(this.token.type)!==-1;let i=0,s=0,a=0;e:for(;;){switch(this.token.type){case p.SemiColon:if(n())break e;break;case p.Exclamation:if(n())break e;break;case p.CurlyL:i++;break;case p.CurlyR:if(i--,i<0){if(r()&&s===0&&a===0)break e;return this.finish(t,y.LeftCurlyExpected)}break;case p.ParenthesisL:s++;break;case p.ParenthesisR:if(s--,s<0){if(r()&&a===0&&i===0)break e;return this.finish(t,y.LeftParenthesisExpected)}break;case p.BracketL:a++;break;case p.BracketR:if(a--,a<0)return this.finish(t,y.LeftSquareBracketExpected);break;case p.BadString:break e;case p.EOF:let l=y.RightCurlyExpected;return a>0?l=y.RightSquareBracketExpected:s>0&&(l=y.RightParenthesisExpected),this.finish(t,l)}this.consumeToken()}return this.finish(t)}_tryToParseDeclaration(e){const t=this.mark();return this._parseProperty()&&this.accept(p.Colon)?(this.restoreAtMark(t),this._parseDeclaration(e)):(this.restoreAtMark(t),null)}_parseProperty(){const e=this.create(Pi),t=this.mark();return(this.acceptDelim("*")||this.acceptDelim("_"))&&this.hasWhitespace()?(this.restoreAtMark(t),null):e.setIdentifier(this._parsePropertyIdentifier())?this.finish(e):null}_parsePropertyIdentifier(){return this._parseIdent()}_parseCharset(){if(!this.peek(p.Charset))return null;const e=this.create(O);return this.consumeToken(),this.accept(p.String)?this.accept(p.SemiColon)?this.finish(e):this.finish(e,y.SemiColonExpected):this.finish(e,y.IdentifierExpected)}_parseImport(){if(!this.peekKeyword("@import"))return null;const e=this.create(Ti);return this.consumeToken(),!e.addChild(this._parseURILiteral())&&!e.addChild(this._parseStringLiteral())?this.finish(e,y.URIOrStringExpected):this._completeParseImport(e)}_completeParseImport(e){if(this.acceptIdent("layer")&&this.accept(p.ParenthesisL)){if(!e.addChild(this._parseLayerName()))return this.finish(e,y.IdentifierExpected,[p.SemiColon]);if(!this.accept(p.ParenthesisR))return this.finish(e,y.RightParenthesisExpected,[p.ParenthesisR],[])}return this.acceptIdent("supports")&&this.accept(p.ParenthesisL)&&(e.addChild(this._tryToParseDeclaration()||this._parseSupportsCondition()),!this.accept(p.ParenthesisR))?this.finish(e,y.RightParenthesisExpected,[p.ParenthesisR],[]):(!this.peek(p.SemiColon)&&!this.peek(p.EOF)&&e.setMedialist(this._parseMediaQueryList()),this.finish(e))}_parseNamespace(){if(!this.peekKeyword("@namespace"))return null;const e=this.create(Pp);return this.consumeToken(),!e.addChild(this._parseURILiteral())&&(e.addChild(this._parseIdent()),!e.addChild(this._parseURILiteral())&&!e.addChild(this._parseStringLiteral()))?this.finish(e,y.URIExpected,[p.SemiColon]):this.accept(p.SemiColon)?this.finish(e):this.finish(e,y.SemiColonExpected)}_parseFontFace(){if(!this.peekKeyword("@font-face"))return null;const e=this.create(wl);return this.consumeToken(),this._parseBody(e,this._parseRuleSetDeclaration.bind(this))}_parseViewPort(){if(!this.peekKeyword("@-ms-viewport")&&!this.peekKeyword("@-o-viewport")&&!this.peekKeyword("@viewport"))return null;const e=this.create(Ip);return this.consumeToken(),this._parseBody(e,this._parseRuleSetDeclaration.bind(this))}_parseKeyframe(){if(!this.peekRegExp(p.AtKeyword,this.keyframeRegex))return null;const e=this.create(xl),t=this.create(O);return this.consumeToken(),e.setKeyword(this.finish(t)),t.matches("@-ms-keyframes")&&this.markError(t,y.UnknownKeyword),e.setIdentifier(this._parseKeyframeIdent())?this._parseBody(e,this._parseKeyframeSelector.bind(this)):this.finish(e,y.IdentifierExpected,[p.CurlyR])}_parseKeyframeIdent(){return this._parseIdent([J.Keyframe])}_parseKeyframeSelector(){const e=this.create(Sl);let t=!1;if(e.addChild(this._parseIdent())&&(t=!0),this.accept(p.Percentage)&&(t=!0),!t)return null;for(;this.accept(p.Comma);)if(t=!1,e.addChild(this._parseIdent())&&(t=!0),this.accept(p.Percentage)&&(t=!0),!t)return this.finish(e,y.PercentageExpected);return this._parseBody(e,this._parseRuleSetDeclaration.bind(this))}_tryParseKeyframeSelector(){const e=this.create(Sl),t=this.mark();let n=!1;if(e.addChild(this._parseIdent())&&(n=!0),this.accept(p.Percentage)&&(n=!0),!n)return null;for(;this.accept(p.Comma);)if(n=!1,e.addChild(this._parseIdent())&&(n=!0),this.accept(p.Percentage)&&(n=!0),!n)return this.restoreAtMark(t),null;return this.peek(p.CurlyL)?this._parseBody(e,this._parseRuleSetDeclaration.bind(this)):(this.restoreAtMark(t),null)}_parsePropertyAtRule(){if(!this.peekKeyword("@property"))return null;const e=this.create(Op);return this.consumeToken(),!this.peekRegExp(p.Ident,/^--/)||!e.setName(this._parseIdent([J.Property]))?this.finish(e,y.IdentifierExpected):this._parseBody(e,this._parseDeclaration.bind(this))}_parseLayer(e=!1){if(!this.peekKeyword("@layer"))return null;const t=this.create(Tp);this.consumeToken();const n=this._parseLayerNameList();return n&&t.setNames(n),(!n||n.getChildren().length===1)&&this.peek(p.CurlyL)?this._parseBody(t,this._parseLayerDeclaration.bind(this,e)):this.accept(p.SemiColon)?this.finish(t):this.finish(t,y.SemiColonExpected)}_parseLayerDeclaration(e=!1){return e?this._tryParseRuleset(!0)||this._tryToParseDeclaration()||this._parseStylesheetStatement(!0):this._parseStylesheetStatement(!1)}_parseLayerNameList(){const e=this.createNode(b.LayerNameList);if(!e.addChild(this._parseLayerName()))return null;for(;this.accept(p.Comma);)if(!e.addChild(this._parseLayerName()))return this.finish(e,y.IdentifierExpected);return this.finish(e)}_parseLayerName(){const e=this.createNode(b.LayerName);if(!e.addChild(this._parseIdent()))return null;for(;!this.hasWhitespace()&&this.acceptDelim(".");)if(this.hasWhitespace()||!e.addChild(this._parseIdent()))return this.finish(e,y.IdentifierExpected);return this.finish(e)}_parseSupports(e=!1){if(!this.peekKeyword("@supports"))return null;const t=this.create(Wi);return this.consumeToken(),t.addChild(this._parseSupportsCondition()),this._parseBody(t,this._parseSupportsDeclaration.bind(this,e))}_parseSupportsDeclaration(e=!1){return e?this._tryParseRuleset(!0)||this._tryToParseDeclaration()||this._parseStylesheetStatement(!0):this._parseStylesheetStatement(!1)}_parseSupportsCondition(){const e=this.create(kn);if(this.acceptIdent("not"))e.addChild(this._parseSupportsConditionInParens());else if(e.addChild(this._parseSupportsConditionInParens()),this.peekRegExp(p.Ident,/^(and|or)$/i)){const t=this.token.text.toLowerCase();for(;this.acceptIdent(t);)e.addChild(this._parseSupportsConditionInParens())}return this.finish(e)}_parseSupportsConditionInParens(){const e=this.create(kn);if(this.accept(p.ParenthesisL))return this.prevToken&&(e.lParent=this.prevToken.offset),!e.addChild(this._tryToParseDeclaration([p.ParenthesisR]))&&!this._parseSupportsCondition()?this.finish(e,y.ConditionExpected):this.accept(p.ParenthesisR)?(this.prevToken&&(e.rParent=this.prevToken.offset),this.finish(e)):this.finish(e,y.RightParenthesisExpected,[p.ParenthesisR],[]);if(this.peek(p.Ident)){const t=this.mark();if(this.consumeToken(),!this.hasWhitespace()&&this.accept(p.ParenthesisL)){let n=1;for(;this.token.type!==p.EOF&&n!==0;)this.token.type===p.ParenthesisL?n++:this.token.type===p.ParenthesisR&&n--,this.consumeToken();return this.finish(e)}else this.restoreAtMark(t)}return this.finish(e,y.LeftParenthesisExpected,[],[p.ParenthesisL])}_parseMediaDeclaration(e=!1){return e?this._tryParseRuleset(!0)||this._tryToParseDeclaration()||this._parseStylesheetStatement(!0):this._parseStylesheetStatement(!1)}_parseMedia(e=!1){if(!this.peekKeyword("@media"))return null;const t=this.create(Oi);return this.consumeToken(),t.addChild(this._parseMediaQueryList())?this._parseBody(t,this._parseMediaDeclaration.bind(this,e)):this.finish(t,y.MediaQueryExpected)}_parseMediaQueryList(){const e=this.create(Cl);if(!e.addChild(this._parseMediaQuery()))return this.finish(e,y.MediaQueryExpected);for(;this.accept(p.Comma);)if(!e.addChild(this._parseMediaQuery()))return this.finish(e,y.MediaQueryExpected);return this.finish(e)}_parseMediaQuery(){const e=this.create(_l),t=this.mark();if(this.acceptIdent("not"),this.peek(p.ParenthesisL))this.restoreAtMark(t),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)}_parseRatio(){const e=this.mark(),t=this.create(Gp);return this._parseNumeric()?this.acceptDelim("/")?this._parseNumeric()?this.finish(t):this.finish(t,y.NumberExpected):(this.restoreAtMark(e),null):null}_parseMediaCondition(){const e=this.create(Vp);this.acceptIdent("not");let t=!0;for(;t;){if(!this.accept(p.ParenthesisL))return this.finish(e,y.LeftParenthesisExpected,[],[p.CurlyL]);if(this.peek(p.ParenthesisL)||this.peekIdent("not")?e.addChild(this._parseMediaCondition()):e.addChild(this._parseMediaFeature()),!this.accept(p.ParenthesisR))return this.finish(e,y.RightParenthesisExpected,[],[p.CurlyL]);t=this.acceptIdent("and")||this.acceptIdent("or")}return this.finish(e)}_parseMediaFeature(){const e=[p.ParenthesisR],t=this.create($p);if(t.addChild(this._parseMediaFeatureName())){if(this.accept(p.Colon)){if(!t.addChild(this._parseMediaFeatureValue()))return this.finish(t,y.TermExpected,[],e)}else if(this._parseMediaFeatureRangeOperator()){if(!t.addChild(this._parseMediaFeatureValue()))return this.finish(t,y.TermExpected,[],e);if(this._parseMediaFeatureRangeOperator()&&!t.addChild(this._parseMediaFeatureValue()))return this.finish(t,y.TermExpected,[],e)}}else if(t.addChild(this._parseMediaFeatureValue())){if(!this._parseMediaFeatureRangeOperator())return this.finish(t,y.OperatorExpected,[],e);if(!t.addChild(this._parseMediaFeatureName()))return this.finish(t,y.IdentifierExpected,[],e);if(this._parseMediaFeatureRangeOperator()&&!t.addChild(this._parseMediaFeatureValue()))return this.finish(t,y.TermExpected,[],e)}else return this.finish(t,y.IdentifierExpected,[],e);return this.finish(t)}_parseMediaFeatureRangeOperator(){return this.acceptDelim("<")||this.acceptDelim(">")?(this.hasWhitespace()||this.acceptDelim("="),!0):!!this.acceptDelim("=")}_parseMediaFeatureName(){return this._parseIdent()}_parseMediaFeatureValue(){return this._parseRatio()||this._parseTermExpression()}_parseMedium(){const e=this.create(O);return e.addChild(this._parseIdent())?this.finish(e):null}_parsePageDeclaration(){return this._parsePageMarginBox()||this._parseRuleSetDeclaration()}_parsePage(){if(!this.peekKeyword("@page"))return null;const e=this.create(Bp);if(this.consumeToken(),e.addChild(this._parsePageSelector())){for(;this.accept(p.Comma);)if(!e.addChild(this._parsePageSelector()))return this.finish(e,y.IdentifierExpected)}return this._parseBody(e,this._parsePageDeclaration.bind(this))}_parsePageMarginBox(){if(!this.peek(p.AtKeyword))return null;const e=this.create(qp);return this.acceptOneKeyword(_m)||this.markError(e,y.UnknownAtRule,[],[p.CurlyL]),this._parseBody(e,this._parseRuleSetDeclaration.bind(this))}_parsePageSelector(){if(!this.peek(p.Ident)&&!this.peek(p.Colon))return null;const e=this.create(O);return e.addChild(this._parseIdent()),this.accept(p.Colon)&&!e.addChild(this._parseIdent())?this.finish(e,y.IdentifierExpected):this.finish(e)}_parseDocument(){if(!this.peekKeyword("@-moz-document"))return null;const e=this.create(Wp);return this.consumeToken(),this.resync([],[p.CurlyL]),this._parseBody(e,this._parseStylesheetStatement.bind(this))}_parseContainerDeclaration(e=!1){return e?this._tryParseRuleset(!0)||this._tryToParseDeclaration()||this._parseStylesheetStatement(!0):this._parseStylesheetStatement(!1)}_parseContainer(e=!1){if(!this.peekKeyword("@container"))return null;const t=this.create(Up);return this.consumeToken(),t.addChild(this._parseIdent()),t.addChild(this._parseContainerQuery()),this._parseBody(t,this._parseContainerDeclaration.bind(this,e))}_parseContainerQuery(){const e=this.create(O);if(this.acceptIdent("not"))e.addChild(this._parseContainerQueryInParens());else if(e.addChild(this._parseContainerQueryInParens()),this.peekIdent("and"))for(;this.acceptIdent("and");)e.addChild(this._parseContainerQueryInParens());else if(this.peekIdent("or"))for(;this.acceptIdent("or");)e.addChild(this._parseContainerQueryInParens());return this.finish(e)}_parseContainerQueryInParens(){const e=this.create(O);if(this.accept(p.ParenthesisL)){if(this.peekIdent("not")||this.peek(p.ParenthesisL)?e.addChild(this._parseContainerQuery()):e.addChild(this._parseMediaFeature()),!this.accept(p.ParenthesisR))return this.finish(e,y.RightParenthesisExpected,[],[p.CurlyL])}else if(this.acceptIdent("style")){if(this.hasWhitespace()||!this.accept(p.ParenthesisL))return this.finish(e,y.LeftParenthesisExpected,[],[p.CurlyL]);if(e.addChild(this._parseStyleQuery()),!this.accept(p.ParenthesisR))return this.finish(e,y.RightParenthesisExpected,[],[p.CurlyL])}else return this.finish(e,y.LeftParenthesisExpected,[],[p.CurlyL]);return this.finish(e)}_parseStyleQuery(){const e=this.create(O);if(this.acceptIdent("not"))e.addChild(this._parseStyleInParens());else if(this.peek(p.ParenthesisL)){if(e.addChild(this._parseStyleInParens()),this.peekIdent("and"))for(;this.acceptIdent("and");)e.addChild(this._parseStyleInParens());else if(this.peekIdent("or"))for(;this.acceptIdent("or");)e.addChild(this._parseStyleInParens())}else e.addChild(this._parseDeclaration([p.ParenthesisR]));return this.finish(e)}_parseStyleInParens(){const e=this.create(O);if(this.accept(p.ParenthesisL)){if(e.addChild(this._parseStyleQuery()),!this.accept(p.ParenthesisR))return this.finish(e,y.RightParenthesisExpected,[],[p.CurlyL])}else return this.finish(e,y.LeftParenthesisExpected,[],[p.CurlyL]);return this.finish(e)}_parseUnknownAtRule(){if(!this.peek(p.AtKeyword))return null;const e=this.create(El);e.addChild(this._parseUnknownAtRuleName());const t=()=>r===0&&i===0&&s===0;let n=0,r=0,i=0,s=0;e:for(;;){switch(this.token.type){case p.SemiColon:if(t())break e;break;case p.EOF:return r>0?this.finish(e,y.RightCurlyExpected):s>0?this.finish(e,y.RightSquareBracketExpected):i>0?this.finish(e,y.RightParenthesisExpected):this.finish(e);case p.CurlyL:n++,r++;break;case p.CurlyR:if(r--,n>0&&r===0){if(this.consumeToken(),s>0)return this.finish(e,y.RightSquareBracketExpected);if(i>0)return this.finish(e,y.RightParenthesisExpected);break e}if(r<0){if(i===0&&s===0)break e;return this.finish(e,y.LeftCurlyExpected)}break;case p.ParenthesisL:i++;break;case p.ParenthesisR:if(i--,i<0)return this.finish(e,y.LeftParenthesisExpected);break;case p.BracketL:s++;break;case p.BracketR:if(s--,s<0)return this.finish(e,y.LeftSquareBracketExpected);break}this.consumeToken()}return e}_parseUnknownAtRuleName(){const e=this.create(O);return this.accept(p.AtKeyword)?this.finish(e):e}_parseOperator(){if(this.peekDelim("/")||this.peekDelim("*")||this.peekDelim("+")||this.peekDelim("-")||this.peek(p.Dashmatch)||this.peek(p.Includes)||this.peek(p.SubstringOperator)||this.peek(p.PrefixOperator)||this.peek(p.SuffixOperator)||this.peekDelim("=")){const e=this.createNode(b.Operator);return this.consumeToken(),this.finish(e)}else return null}_parseUnaryOperator(){if(!this.peekDelim("+")&&!this.peekDelim("-"))return null;const e=this.create(O);return this.consumeToken(),this.finish(e)}_parseCombinator(){if(this.peekDelim(">")){const e=this.create(O);this.consumeToken();const t=this.mark();if(!this.hasWhitespace()&&this.acceptDelim(">")){if(!this.hasWhitespace()&&this.acceptDelim(">"))return e.type=b.SelectorCombinatorShadowPiercingDescendant,this.finish(e);this.restoreAtMark(t)}return e.type=b.SelectorCombinatorParent,this.finish(e)}else if(this.peekDelim("+")){const e=this.create(O);return this.consumeToken(),e.type=b.SelectorCombinatorSibling,this.finish(e)}else if(this.peekDelim("~")){const e=this.create(O);return this.consumeToken(),e.type=b.SelectorCombinatorAllSiblings,this.finish(e)}else if(this.peekDelim("/")){const e=this.create(O);this.consumeToken();const t=this.mark();if(!this.hasWhitespace()&&this.acceptIdent("deep")&&!this.hasWhitespace()&&this.acceptDelim("/"))return e.type=b.SelectorCombinatorShadowPiercingDescendant,this.finish(e);this.restoreAtMark(t)}return null}_parseSimpleSelector(){const e=this.create(Jt);let t=0;for(e.addChild(this._parseElementName()||this._parseNestingSelector())&&t++;(t===0||!this.hasWhitespace())&&e.addChild(this._parseSimpleSelectorBody());)t++;return t>0?this.finish(e):null}_parseNestingSelector(){if(this.peekDelim("&")){const e=this.createNode(b.SelectorCombinator);return this.consumeToken(),this.finish(e)}return null}_parseSimpleSelectorBody(){return this._parsePseudo()||this._parseHash()||this._parseClass()||this._parseAttrib()}_parseSelectorIdent(){return this._parseIdent()}_parseHash(){if(!this.peek(p.Hash)&&!this.peekDelim("#"))return null;const e=this.createNode(b.IdentifierSelector);if(this.acceptDelim("#")){if(this.hasWhitespace()||!e.addChild(this._parseSelectorIdent()))return this.finish(e,y.IdentifierExpected)}else this.consumeToken();return this.finish(e)}_parseClass(){if(!this.peekDelim("."))return null;const e=this.createNode(b.ClassSelector);return this.consumeToken(),this.hasWhitespace()||!e.addChild(this._parseSelectorIdent())?this.finish(e,y.IdentifierExpected):this.finish(e)}_parseElementName(){const e=this.mark(),t=this.createNode(b.ElementNameSelector);return t.addChild(this._parseNamespacePrefix()),!t.addChild(this._parseSelectorIdent())&&!this.acceptDelim("*")?(this.restoreAtMark(e),null):this.finish(t)}_parseNamespacePrefix(){const e=this.mark(),t=this.createNode(b.NamespacePrefix);return!t.addChild(this._parseIdent())&&this.acceptDelim("*"),this.acceptDelim("|")?this.finish(t):(this.restoreAtMark(e),null)}_parseAttrib(){if(!this.peek(p.BracketL))return null;const e=this.create(Hp);return this.consumeToken(),e.setNamespacePrefix(this._parseNamespacePrefix()),e.setIdentifier(this._parseIdent())?(e.setOperator(this._parseOperator())&&(e.setValue(this._parseBinaryExpr()),this.acceptIdent("i"),this.acceptIdent("s")),this.accept(p.BracketR)?this.finish(e):this.finish(e,y.RightSquareBracketExpected)):this.finish(e,y.IdentifierExpected)}_parsePseudo(){const e=this._tryParsePseudoIdentifier();if(e){if(!this.hasWhitespace()&&this.accept(p.ParenthesisL)){const t=()=>{const r=this.create(O);if(!r.addChild(this._parseSelector(!0)))return null;for(;this.accept(p.Comma)&&r.addChild(this._parseSelector(!0)););return this.peek(p.ParenthesisR)?this.finish(r):null};if(!e.addChild(this.try(t))&&e.addChild(this._parseBinaryExpr())&&this.acceptIdent("of")&&!e.addChild(this.try(t)))return this.finish(e,y.SelectorExpected);if(!this.accept(p.ParenthesisR))return this.finish(e,y.RightParenthesisExpected)}return this.finish(e)}return null}_tryParsePseudoIdentifier(){if(!this.peek(p.Colon))return null;const e=this.mark(),t=this.createNode(b.PseudoSelector);return this.consumeToken(),this.hasWhitespace()?(this.restoreAtMark(e),null):(this.accept(p.Colon),this.hasWhitespace()||!t.addChild(this._parseIdent())?this.finish(t,y.IdentifierExpected):this.finish(t))}_tryParsePrio(){const e=this.mark(),t=this._parsePrio();return t||(this.restoreAtMark(e),null)}_parsePrio(){if(!this.peek(p.Exclamation))return null;const e=this.createNode(b.Prio);return this.accept(p.Exclamation)&&this.acceptIdent("important")?this.finish(e):null}_parseExpr(e=!1){const t=this.create(kl);if(!t.addChild(this._parseBinaryExpr()))return null;for(;;){if(this.peek(p.Comma)){if(e)return this.finish(t);this.consumeToken()}if(!t.addChild(this._parseBinaryExpr()))break}return this.finish(t)}_parseUnicodeRange(){if(!this.peekIdent("u"))return null;const e=this.create(xp);return this.acceptUnicodeRange()?this.finish(e):null}_parseNamedLine(){if(!this.peek(p.BracketL))return null;const e=this.createNode(b.GridLine);for(this.consumeToken();e.addChild(this._parseIdent()););return this.accept(p.BracketR)?this.finish(e):this.finish(e,y.RightSquareBracketExpected)}_parseBinaryExpr(e,t){let n=this.create(Ui);if(!n.setLeft(e||this._parseTerm()))return null;if(!n.setOperator(t||this._parseOperator()))return this.finish(n);if(!n.setRight(this._parseTerm()))return this.finish(n,y.TermExpected);n=this.finish(n);const r=this._parseOperator();return r&&(n=this._parseBinaryExpr(n,r)),this.finish(n)}_parseTerm(){let e=this.create(jp);return e.setOperator(this._parseUnaryOperator()),e.setExpression(this._parseTermExpression())?this.finish(e):null}_parseTermExpression(){return this._parseURILiteral()||this._parseUnicodeRange()||this._parseFunction()||this._parseIdent()||this._parseStringLiteral()||this._parseNumeric()||this._parseHexColor()||this._parseOperation()||this._parseNamedLine()}_parseOperation(){if(!this.peek(p.ParenthesisL))return null;const e=this.create(O);return this.consumeToken(),e.addChild(this._parseExpr()),this.accept(p.ParenthesisR)?this.finish(e):this.finish(e,y.RightParenthesisExpected)}_parseNumeric(){if(this.peek(p.Num)||this.peek(p.Percentage)||this.peek(p.Resolution)||this.peek(p.Length)||this.peek(p.EMS)||this.peek(p.EXS)||this.peek(p.Angle)||this.peek(p.Time)||this.peek(p.Dimension)||this.peek(p.ContainerQueryLength)||this.peek(p.Freq)){const e=this.create($i);return this.consumeToken(),this.finish(e)}return null}_parseStringLiteral(){if(!this.peek(p.String)&&!this.peek(p.BadString))return null;const e=this.createNode(b.StringLiteral);return this.consumeToken(),this.finish(e)}_parseURILiteral(){if(!this.peekRegExp(p.Ident,/^url(-prefix)?$/i))return null;const e=this.mark(),t=this.createNode(b.URILiteral);return this.accept(p.Ident),this.hasWhitespace()||!this.peek(p.ParenthesisL)?(this.restoreAtMark(e),null):(this.scanner.inURL=!0,this.consumeToken(),t.addChild(this._parseURLArgument()),this.scanner.inURL=!1,this.accept(p.ParenthesisR)?this.finish(t):this.finish(t,y.RightParenthesisExpected))}_parseURLArgument(){const e=this.create(O);return!this.accept(p.String)&&!this.accept(p.BadString)&&!this.acceptUnquotedString()?null:this.finish(e)}_parseIdent(e){if(!this.peek(p.Ident))return null;const t=this.create(Me);return e&&(t.referenceTypes=e),t.isCustomProperty=this.peekRegExp(p.Ident,/^--/),this.consumeToken(),this.finish(t)}_parseFunction(){const e=this.mark(),t=this.create(_n);if(!t.setIdentifier(this._parseFunctionIdentifier()))return null;if(this.hasWhitespace()||!this.accept(p.ParenthesisL))return this.restoreAtMark(e),null;if(t.getArguments().addChild(this._parseFunctionArgument()))for(;this.accept(p.Comma)&&!this.peek(p.ParenthesisR);)t.getArguments().addChild(this._parseFunctionArgument())||this.markError(t,y.ExpressionExpected);return this.accept(p.ParenthesisR)?this.finish(t):this.finish(t,y.RightParenthesisExpected)}_parseFunctionIdentifier(){if(!this.peek(p.Ident))return null;const e=this.create(Me);if(e.referenceTypes=[J.Function],this.acceptIdent("progid")){if(this.accept(p.Colon))for(;this.accept(p.Ident)&&this.acceptDelim("."););return this.finish(e)}return this.consumeToken(),this.finish(e)}_parseFunctionArgument(){const e=this.create(Xt);return e.setValue(this._parseExpr(!0))?this.finish(e):null}_parseHexColor(){if(this.peekRegExp(p.Hash,/^#([A-Fa-f0-9]{3}|[A-Fa-f0-9]{4}|[A-Fa-f0-9]{6}|[A-Fa-f0-9]{8})$/g)){const e=this.create(Vi);return this.consumeToken(),this.finish(e)}else return null}};function km(e,t){let n=0,r=e.length;if(r===0)return 0;for(;n<r;){let i=Math.floor((n+r)/2);t(e[i])?r=i:n=i+1}return n}function qc(e,t){return e.indexOf(t)!==-1}function _r(...e){const t=[];for(const n of e)for(const r of n)qc(t,r)||t.push(r);return t}var jc=class{constructor(e,t){this.offset=e,this.length=t,this.symbols=[],this.parent=null,this.children=[]}addChild(e){this.children.push(e),e.setParent(this)}setParent(e){this.parent=e}findScope(e,t=0){return this.offset<=e&&this.offset+this.length>e+t||this.offset===e&&this.length===t?this.findInScope(e,t):null}findInScope(e,t=0){const n=e+t,r=km(this.children,s=>s.offset>n);if(r===0)return this;const i=this.children[r-1];return i.offset<=e&&i.offset+i.length>=e+t?i.findInScope(e,t):this}addSymbol(e){this.symbols.push(e)}getSymbol(e,t){for(let n=0;n<this.symbols.length;n++){const r=this.symbols[n];if(r.name===e&&r.type===t)return r}return null}getSymbols(){return this.symbols}},Em=class extends jc{constructor(){super(0,Number.MAX_VALUE)}},kr=class{constructor(e,t,n,r){this.name=e,this.value=t,this.node=n,this.type=r}},Fm=class{constructor(e){this.scope=e}addSymbol(e,t,n,r){if(e.offset!==-1){const i=this.scope.findScope(e.offset,e.length);i&&i.addSymbol(new kr(t,n,e,r))}}addScope(e){if(e.offset!==-1){const t=this.scope.findScope(e.offset,e.length);if(t&&(t.offset!==e.offset||t.length!==e.length)){const n=new jc(e.offset,e.length);return t.addChild(n),n}return t}return null}addSymbolToChildScope(e,t,n,r,i){if(e&&e.offset!==-1){const s=this.addScope(e);s&&s.addSymbol(new kr(n,r,t,i))}}visitNode(e){switch(e.type){case b.Keyframe:return this.addSymbol(e,e.getName(),void 0,J.Keyframe),!0;case b.CustomPropertyDeclaration:return this.visitCustomPropertyDeclarationNode(e);case b.VariableDeclaration:return this.visitVariableDeclarationNode(e);case b.Ruleset:return this.visitRuleSet(e);case b.MixinDeclaration:return this.addSymbol(e,e.getName(),void 0,J.Mixin),!0;case b.FunctionDeclaration:return this.addSymbol(e,e.getName(),void 0,J.Function),!0;case b.FunctionParameter:return this.visitFunctionParameterNode(e);case b.Declarations:return this.addScope(e),!0;case b.For:const t=e,n=t.getDeclarations();return n&&t.variable&&this.addSymbolToChildScope(n,t.variable,t.variable.getName(),void 0,J.Variable),!0;case b.Each:{const r=e,i=r.getDeclarations();if(i){const s=r.getVariables().getChildren();for(const a of s)this.addSymbolToChildScope(i,a,a.getName(),void 0,J.Variable)}return!0}}return!0}visitRuleSet(e){const t=this.scope.findScope(e.offset,e.length);if(t)for(const n of e.getSelectors().getChildren())n instanceof Cn&&n.getChildren().length===1&&t.addSymbol(new kr(n.getChild(0).getText(),void 0,n,J.Rule));return!0}visitVariableDeclarationNode(e){const t=e.getValue()?e.getValue().getText():void 0;return this.addSymbol(e,e.getName(),t,J.Variable),!0}visitFunctionParameterNode(e){const t=e.getParent().getDeclarations();if(t){const n=e.getDefaultValue(),r=n?n.getText():void 0;this.addSymbolToChildScope(t,e,e.getName(),r,J.Variable)}return!0}visitCustomPropertyDeclarationNode(e){const t=e.getValue()?e.getValue().getText():"";return this.addCSSVariable(e.getProperty(),e.getProperty().getName(),t,J.Variable),!0}addCSSVariable(e,t,n,r){e.offset!==-1&&this.scope.addSymbol(new kr(t,n,e,r))}},ls=class{constructor(e){this.global=new Em,e.acceptVisitor(new Fm(this.global))}findSymbolsAtOffset(e,t){let n=this.global.findScope(e,0);const r=[],i={};for(;n;){const s=n.getSymbols();for(let a=0;a<s.length;a++){const l=s[a];l.type===t&&!i[l.name]&&(r.push(l),i[l.name]=!0)}n=n.parent}return r}internalFindSymbol(e,t){let n=e;if(e.parent instanceof lr&&e.parent.getParent()instanceof se&&(n=e.parent.getParent().getDeclarations()),e.parent instanceof Xt&&e.parent.getParent()instanceof _n){const s=e.parent.getParent().getIdentifier();if(s){const a=this.internalFindSymbol(s,[J.Function]);a&&(n=a.node.getDeclarations())}}if(!n)return null;const r=e.getText();let i=this.global.findScope(n.offset,n.length);for(;i;){for(let s=0;s<t.length;s++){const a=t[s],l=i.getSymbol(r,a);if(l)return l}i=i.parent}return null}evaluateReferenceTypes(e){if(e instanceof Me){const n=e.referenceTypes;if(n)return n;{if(e.isCustomProperty)return[J.Variable];const r=yp(e);if(r){const i=r.getNonPrefixedPropertyName();if((i==="animation"||i==="animation-name")&&r.getValue()&&r.getValue().offset===e.offset)return[J.Keyframe]}}}else if(e instanceof qi)return[J.Variable];return e.findAParent(b.Selector,b.ExtendsReference)?[J.Rule]:null}findSymbolFromNode(e){if(!e)return null;for(;e.type===b.Interpolation;)e=e.getParent();const t=this.evaluateReferenceTypes(e);return t?this.internalFindSymbol(e,t):null}matchesSymbol(e,t){if(!e)return!1;for(;e.type===b.Interpolation;)e=e.getParent();if(!e.matches(t.name))return!1;const n=this.evaluateReferenceTypes(e);return!n||n.indexOf(t.type)===-1?!1:this.internalFindSymbol(e,n)===t}findSymbol(e,t,n){let r=this.global.findScope(n);for(;r;){const i=r.getSymbol(e,t);if(i)return i;r=r.parent}return null}},Hc;(()=>{var e={470:i=>{function s(o){if(typeof o!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(o))}function a(o,c){for(var d,u="",f=0,m=-1,v=0,w=0;w<=o.length;++w){if(w<o.length)d=o.charCodeAt(w);else{if(d===47)break;d=47}if(d===47){if(!(m===w-1||v===1))if(m!==w-1&&v===2){if(u.length<2||f!==2||u.charCodeAt(u.length-1)!==46||u.charCodeAt(u.length-2)!==46){if(u.length>2){var k=u.lastIndexOf("/");if(k!==u.length-1){k===-1?(u="",f=0):f=(u=u.slice(0,k)).length-1-u.lastIndexOf("/"),m=w,v=0;continue}}else if(u.length===2||u.length===1){u="",f=0,m=w,v=0;continue}}c&&(u.length>0?u+="/..":u="..",f=2)}else u.length>0?u+="/"+o.slice(m+1,w):u=o.slice(m+1,w),f=w-m-1;m=w,v=0}else d===46&&v!==-1?++v:v=-1}return u}var l={resolve:function(){for(var o,c="",d=!1,u=arguments.length-1;u>=-1&&!d;u--){var f;u>=0?f=arguments[u]:(o===void 0&&(o=process.cwd()),f=o),s(f),f.length!==0&&(c=f+"/"+c,d=f.charCodeAt(0)===47)}return c=a(c,!d),d?c.length>0?"/"+c:"/":c.length>0?c:"."},normalize:function(o){if(s(o),o.length===0)return".";var c=o.charCodeAt(0)===47,d=o.charCodeAt(o.length-1)===47;return(o=a(o,!c)).length!==0||c||(o="."),o.length>0&&d&&(o+="/"),c?"/"+o:o},isAbsolute:function(o){return s(o),o.length>0&&o.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var o,c=0;c<arguments.length;++c){var d=arguments[c];s(d),d.length>0&&(o===void 0?o=d:o+="/"+d)}return o===void 0?".":l.normalize(o)},relative:function(o,c){if(s(o),s(c),o===c||(o=l.resolve(o))===(c=l.resolve(c)))return"";for(var d=1;d<o.length&&o.charCodeAt(d)===47;++d);for(var u=o.length,f=u-d,m=1;m<c.length&&c.charCodeAt(m)===47;++m);for(var v=c.length-m,w=f<v?f:v,k=-1,R=0;R<=w;++R){if(R===w){if(v>w){if(c.charCodeAt(m+R)===47)return c.slice(m+R+1);if(R===0)return c.slice(m+R)}else f>w&&(o.charCodeAt(d+R)===47?k=R:R===0&&(k=0));break}var I=o.charCodeAt(d+R);if(I!==c.charCodeAt(m+R))break;I===47&&(k=R)}var N="";for(R=d+k+1;R<=u;++R)R!==u&&o.charCodeAt(R)!==47||(N.length===0?N+="..":N+="/..");return N.length>0?N+c.slice(m+k):(m+=k,c.charCodeAt(m)===47&&++m,c.slice(m))},_makeLong:function(o){return o},dirname:function(o){if(s(o),o.length===0)return".";for(var c=o.charCodeAt(0),d=c===47,u=-1,f=!0,m=o.length-1;m>=1;--m)if((c=o.charCodeAt(m))===47){if(!f){u=m;break}}else f=!1;return u===-1?d?"/":".":d&&u===1?"//":o.slice(0,u)},basename:function(o,c){if(c!==void 0&&typeof c!="string")throw new TypeError('"ext" argument must be a string');s(o);var d,u=0,f=-1,m=!0;if(c!==void 0&&c.length>0&&c.length<=o.length){if(c.length===o.length&&c===o)return"";var v=c.length-1,w=-1;for(d=o.length-1;d>=0;--d){var k=o.charCodeAt(d);if(k===47){if(!m){u=d+1;break}}else w===-1&&(m=!1,w=d+1),v>=0&&(k===c.charCodeAt(v)?--v==-1&&(f=d):(v=-1,f=w))}return u===f?f=w:f===-1&&(f=o.length),o.slice(u,f)}for(d=o.length-1;d>=0;--d)if(o.charCodeAt(d)===47){if(!m){u=d+1;break}}else f===-1&&(m=!1,f=d+1);return f===-1?"":o.slice(u,f)},extname:function(o){s(o);for(var c=-1,d=0,u=-1,f=!0,m=0,v=o.length-1;v>=0;--v){var w=o.charCodeAt(v);if(w!==47)u===-1&&(f=!1,u=v+1),w===46?c===-1?c=v:m!==1&&(m=1):c!==-1&&(m=-1);else if(!f){d=v+1;break}}return c===-1||u===-1||m===0||m===1&&c===u-1&&c===d+1?"":o.slice(c,u)},format:function(o){if(o===null||typeof o!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof o);return function(c,d){var u=d.dir||d.root,f=d.base||(d.name||"")+(d.ext||"");return u?u===d.root?u+f:u+"/"+f:f}(0,o)},parse:function(o){s(o);var c={root:"",dir:"",base:"",ext:"",name:""};if(o.length===0)return c;var d,u=o.charCodeAt(0),f=u===47;f?(c.root="/",d=1):d=0;for(var m=-1,v=0,w=-1,k=!0,R=o.length-1,I=0;R>=d;--R)if((u=o.charCodeAt(R))!==47)w===-1&&(k=!1,w=R+1),u===46?m===-1?m=R:I!==1&&(I=1):m!==-1&&(I=-1);else if(!k){v=R+1;break}return m===-1||w===-1||I===0||I===1&&m===w-1&&m===v+1?w!==-1&&(c.base=c.name=v===0&&f?o.slice(1,w):o.slice(v,w)):(v===0&&f?(c.name=o.slice(1,m),c.base=o.slice(1,w)):(c.name=o.slice(v,m),c.base=o.slice(v,w)),c.ext=o.slice(m,w)),v>0?c.dir=o.slice(0,v-1):f&&(c.dir="/"),c},sep:"/",delimiter:":",win32:null,posix:null};l.posix=l,i.exports=l}},t={};function n(i){var s=t[i];if(s!==void 0)return s.exports;var a=t[i]={exports:{}};return e[i](a,a.exports,n),a.exports}n.d=(i,s)=>{for(var a in s)n.o(s,a)&&!n.o(i,a)&&Object.defineProperty(i,a,{enumerable:!0,get:s[a]})},n.o=(i,s)=>Object.prototype.hasOwnProperty.call(i,s),n.r=i=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(i,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(i,"__esModule",{value:!0})};var r={};(()=>{let i;n.r(r),n.d(r,{URI:()=>f,Utils:()=>ee}),typeof process=="object"?i=process.platform==="win32":typeof navigator=="object"&&(i=navigator.userAgent.indexOf("Windows")>=0);const s=/^\\w[\\w\\d+.-]*$/,a=/^\\//,l=/^\\/\\//;function o(A,_){if(!A.scheme&&_)throw new Error(\`[UriError]: Scheme is missing: {scheme: "", authority: "\${A.authority}", path: "\${A.path}", query: "\${A.query}", fragment: "\${A.fragment}"}\`);if(A.scheme&&!s.test(A.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(A.path){if(A.authority){if(!a.test(A.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(l.test(A.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}}const c="",d="/",u=/^(([^:/?#]+?):)?(\\/\\/([^/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?/;class f{constructor(_,C,S,z,D,L=!1){Ct(this,"scheme");Ct(this,"authority");Ct(this,"path");Ct(this,"query");Ct(this,"fragment");typeof _=="object"?(this.scheme=_.scheme||c,this.authority=_.authority||c,this.path=_.path||c,this.query=_.query||c,this.fragment=_.fragment||c):(this.scheme=function(U,B){return U||B?U:"file"}(_,L),this.authority=C||c,this.path=function(U,B){switch(U){case"https":case"http":case"file":B?B[0]!==d&&(B=d+B):B=d}return B}(this.scheme,S||c),this.query=z||c,this.fragment=D||c,o(this,L))}static isUri(_){return _ instanceof f||!!_&&typeof _.authority=="string"&&typeof _.fragment=="string"&&typeof _.path=="string"&&typeof _.query=="string"&&typeof _.scheme=="string"&&typeof _.fsPath=="string"&&typeof _.with=="function"&&typeof _.toString=="function"}get fsPath(){return I(this)}with(_){if(!_)return this;let{scheme:C,authority:S,path:z,query:D,fragment:L}=_;return C===void 0?C=this.scheme:C===null&&(C=c),S===void 0?S=this.authority:S===null&&(S=c),z===void 0?z=this.path:z===null&&(z=c),D===void 0?D=this.query:D===null&&(D=c),L===void 0?L=this.fragment:L===null&&(L=c),C===this.scheme&&S===this.authority&&z===this.path&&D===this.query&&L===this.fragment?this:new v(C,S,z,D,L)}static parse(_,C=!1){const S=u.exec(_);return S?new v(S[2]||c,M(S[4]||c),M(S[5]||c),M(S[7]||c),M(S[9]||c),C):new v(c,c,c,c,c)}static file(_){let C=c;if(i&&(_=_.replace(/\\\\/g,d)),_[0]===d&&_[1]===d){const S=_.indexOf(d,2);S===-1?(C=_.substring(2),_=d):(C=_.substring(2,S),_=_.substring(S)||d)}return new v("file",C,_,c,c)}static from(_){const C=new v(_.scheme,_.authority,_.path,_.query,_.fragment);return o(C,!0),C}toString(_=!1){return N(this,_)}toJSON(){return this}static revive(_){if(_){if(_ instanceof f)return _;{const C=new v(_);return C._formatted=_.external,C._fsPath=_._sep===m?_.fsPath:null,C}}return _}}const m=i?1:void 0;class v extends f{constructor(){super(...arguments);Ct(this,"_formatted",null);Ct(this,"_fsPath",null)}get fsPath(){return this._fsPath||(this._fsPath=I(this)),this._fsPath}toString(C=!1){return C?N(this,!0):(this._formatted||(this._formatted=N(this,!1)),this._formatted)}toJSON(){const C={$mid:1};return this._fsPath&&(C.fsPath=this._fsPath,C._sep=m),this._formatted&&(C.external=this._formatted),this.path&&(C.path=this.path),this.scheme&&(C.scheme=this.scheme),this.authority&&(C.authority=this.authority),this.query&&(C.query=this.query),this.fragment&&(C.fragment=this.fragment),C}}const w={58:"%3A",47:"%2F",63:"%3F",35:"%23",91:"%5B",93:"%5D",64:"%40",33:"%21",36:"%24",38:"%26",39:"%27",40:"%28",41:"%29",42:"%2A",43:"%2B",44:"%2C",59:"%3B",61:"%3D",32:"%20"};function k(A,_,C){let S,z=-1;for(let D=0;D<A.length;D++){const L=A.charCodeAt(D);if(L>=97&&L<=122||L>=65&&L<=90||L>=48&&L<=57||L===45||L===46||L===95||L===126||_&&L===47||C&&L===91||C&&L===93||C&&L===58)z!==-1&&(S+=encodeURIComponent(A.substring(z,D)),z=-1),S!==void 0&&(S+=A.charAt(D));else{S===void 0&&(S=A.substr(0,D));const U=w[L];U!==void 0?(z!==-1&&(S+=encodeURIComponent(A.substring(z,D)),z=-1),S+=U):z===-1&&(z=D)}}return z!==-1&&(S+=encodeURIComponent(A.substring(z))),S!==void 0?S:A}function R(A){let _;for(let C=0;C<A.length;C++){const S=A.charCodeAt(C);S===35||S===63?(_===void 0&&(_=A.substr(0,C)),_+=w[S]):_!==void 0&&(_+=A[C])}return _!==void 0?_:A}function I(A,_){let C;return C=A.authority&&A.path.length>1&&A.scheme==="file"?\`//\${A.authority}\${A.path}\`:A.path.charCodeAt(0)===47&&(A.path.charCodeAt(1)>=65&&A.path.charCodeAt(1)<=90||A.path.charCodeAt(1)>=97&&A.path.charCodeAt(1)<=122)&&A.path.charCodeAt(2)===58?A.path[1].toLowerCase()+A.path.substr(2):A.path,i&&(C=C.replace(/\\//g,"\\\\")),C}function N(A,_){const C=_?R:k;let S="",{scheme:z,authority:D,path:L,query:U,fragment:B}=A;if(z&&(S+=z,S+=":"),(D||z==="file")&&(S+=d,S+=d),D){let q=D.indexOf("@");if(q!==-1){const ae=D.substr(0,q);D=D.substr(q+1),q=ae.lastIndexOf(":"),q===-1?S+=C(ae,!1,!1):(S+=C(ae.substr(0,q),!1,!1),S+=":",S+=C(ae.substr(q+1),!1,!0)),S+="@"}D=D.toLowerCase(),q=D.lastIndexOf(":"),q===-1?S+=C(D,!1,!0):(S+=C(D.substr(0,q),!1,!0),S+=D.substr(q))}if(L){if(L.length>=3&&L.charCodeAt(0)===47&&L.charCodeAt(2)===58){const q=L.charCodeAt(1);q>=65&&q<=90&&(L=\`/\${String.fromCharCode(q+32)}:\${L.substr(3)}\`)}else if(L.length>=2&&L.charCodeAt(1)===58){const q=L.charCodeAt(0);q>=65&&q<=90&&(L=\`\${String.fromCharCode(q+32)}:\${L.substr(2)}\`)}S+=C(L,!0,!1)}return U&&(S+="?",S+=C(U,!1,!1)),B&&(S+="#",S+=_?B:k(B,!1,!1)),S}function E(A){try{return decodeURIComponent(A)}catch{return A.length>3?A.substr(0,3)+E(A.substr(3)):A}}const F=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function M(A){return A.match(F)?A.replace(F,_=>E(_)):A}var T=n(470);const P=T.posix||T,j="/";var ee;(function(A){A.joinPath=function(_,...C){return _.with({path:P.join(_.path,...C)})},A.resolvePath=function(_,...C){let S=_.path,z=!1;S[0]!==j&&(S=j+S,z=!0);let D=P.resolve(S,...C);return z&&D[0]===j&&!_.authority&&(D=D.substring(1)),_.with({path:D})},A.dirname=function(_){if(_.path.length===0||_.path===j)return _;let C=P.dirname(_.path);return C.length===1&&C.charCodeAt(0)===46&&(C=""),_.with({path:C})},A.basename=function(_){return P.basename(_.path)},A.extname=function(_){return P.extname(_.path)}})(ee||(ee={}))})(),Hc=r})();var{URI:cs,Utils:wt}=Hc;function hs(e){return wt.dirname(cs.parse(e)).toString(!0)}function Kt(e,...t){return wt.joinPath(cs.parse(e),...t).toString(!0)}var Rm=class{constructor(e){this.readDirectory=e,this.literalCompletions=[],this.importCompletions=[]}onCssURILiteralValue(e){this.literalCompletions.push(e)}onCssImportPath(e){this.importCompletions.push(e)}async computeCompletions(e,t){const n={items:[],isIncomplete:!1};for(const r of this.literalCompletions){const i=r.uriValue,s=ds(i);if(s==="."||s==="..")n.isIncomplete=!0;else{const a=await this.providePathSuggestions(i,r.position,r.range,e,t);for(let l of a)n.items.push(l)}}for(const r of this.importCompletions){const i=r.pathValue,s=ds(i);if(s==="."||s==="..")n.isIncomplete=!0;else{let a=await this.providePathSuggestions(i,r.position,r.range,e,t);e.languageId==="scss"&&a.forEach(l=>{pe(l.label,"_")&&gl(l.label,".scss")&&(l.textEdit?l.textEdit.newText=l.label.slice(1,-5):l.label=l.label.slice(1,-5))});for(let l of a)n.items.push(l)}}return n}async providePathSuggestions(e,t,n,r,i){const s=ds(e),a=pe(e,"'")||pe(e,'"'),l=a?s.slice(0,t.character-(n.start.character+1)):s.slice(0,t.character-n.start.character),o=r.uri,c=a?Am(n,1,-1):n,d=Dm(l,s,c),u=l.substring(0,l.lastIndexOf("/")+1);let f=i.resolveReference(u||".",o);if(f)try{const m=[],v=await this.readDirectory(f);for(const[w,k]of v)w.charCodeAt(0)!==Nm&&(k===Dn.Directory||Kt(f,w)!==o)&&m.push(Im(w,k===Dn.Directory,d));return m}catch{}return[]}},Nm=46;function ds(e){return pe(e,"'")||pe(e,'"')?e.slice(1,-1):e}function Dm(e,t,n){let r;const i=e.lastIndexOf("/");if(i===-1)r=n;else{const s=t.slice(i+1),a=Fr(n.end,-s.length),l=s.indexOf(" ");let o;l!==-1?o=Fr(a,l):o=n.end,r=X.create(a,o)}return r}function Im(e,t,n){return t?(e=e+"/",{label:Er(e),kind:V.Folder,textEdit:$.replace(n,Er(e)),command:{title:"Suggest",command:"editor.action.triggerSuggest"}}):{label:Er(e),kind:V.File,textEdit:$.replace(n,Er(e))}}function Er(e){return e.replace(/(\\s|\\(|\\)|,|"|')/g,"\\\\$1")}function Fr(e,t){return xe.create(e.line,e.character+t)}function Am(e,t,n){const r=Fr(e.start,t),i=Fr(e.end,n);return X.create(r,i)}var rt=Ne.Snippet,Gc={title:"Suggest",command:"editor.action.triggerSuggest"},He;(function(e){e.Enums=" ",e.Normal="d",e.VendorPrefixed="x",e.Term="y",e.Variable="z"})(He||(He={}));var us=class{constructor(e=null,t,n){this.variablePrefix=e,this.lsOptions=t,this.cssDataManager=n,this.completionParticipants=[]}configure(e){this.defaultSettings=e}getSymbolContext(){return this.symbolContext||(this.symbolContext=new ls(this.styleSheet)),this.symbolContext}setCompletionParticipants(e){this.completionParticipants=e||[]}async doComplete2(e,t,n,r,i=this.defaultSettings){if(!this.lsOptions.fileSystemProvider||!this.lsOptions.fileSystemProvider.readDirectory)return this.doComplete(e,t,n,i);const s=new Rm(this.lsOptions.fileSystemProvider.readDirectory),a=this.completionParticipants;this.completionParticipants=[s].concat(a);const l=this.doComplete(e,t,n,i);try{const o=await s.computeCompletions(e,r);return{isIncomplete:l.isIncomplete||o.isIncomplete,itemDefaults:l.itemDefaults,items:o.items.concat(l.items)}}finally{this.completionParticipants=a}}doComplete(e,t,n,r){this.offset=e.offsetAt(t),this.position=t,this.currentWord=Pm(e,this.offset),this.defaultReplaceRange=X.create(xe.create(this.position.line,this.position.character-this.currentWord.length),this.position),this.textDocument=e,this.styleSheet=n,this.documentSettings=r;try{const i={isIncomplete:!1,itemDefaults:{editRange:{start:{line:t.line,character:t.character-this.currentWord.length},end:t}},items:[]};this.nodePath=Mi(this.styleSheet,this.offset);for(let s=this.nodePath.length-1;s>=0;s--){const a=this.nodePath[s];if(a instanceof Pi)this.getCompletionsForDeclarationProperty(a.getParent(),i);else if(a instanceof kl)a.parent instanceof Bi?this.getVariableProposals(null,i):this.getCompletionsForExpression(a,i);else if(a instanceof Jt){const l=a.findAParent(b.ExtendsReference,b.Ruleset);if(l)if(l.type===b.ExtendsReference)this.getCompletionsForExtendsReference(l,a,i);else{const o=l;this.getCompletionsForSelector(o,o&&o.isNested(),i)}}else if(a instanceof Xt)this.getCompletionsForFunctionArgument(a,a.getParent(),i);else if(a instanceof Li)this.getCompletionsForDeclarations(a,i);else if(a instanceof hr)this.getCompletionsForVariableDeclaration(a,i);else if(a instanceof Et)this.getCompletionsForRuleSet(a,i);else if(a instanceof Bi)this.getCompletionsForInterpolation(a,i);else if(a instanceof cr)this.getCompletionsForFunctionDeclaration(a,i);else if(a instanceof dr)this.getCompletionsForMixinReference(a,i);else if(a instanceof _n)this.getCompletionsForFunctionArgument(null,a,i);else if(a instanceof Wi)this.getCompletionsForSupports(a,i);else if(a instanceof kn)this.getCompletionsForSupportsCondition(a,i);else if(a instanceof En)this.getCompletionsForExtendsReference(a,null,i);else if(a.type===b.URILiteral)this.getCompletionForUriLiteralValue(a,i);else if(a.parent===null)this.getCompletionForTopLevel(i);else if(a.type===b.StringLiteral&&this.isImportPathParent(a.parent.type))this.getCompletionForImportPath(a,i);else continue;if(i.items.length>0||this.offset>a.offset)return this.finalize(i)}return this.getCompletionsForStylesheet(i),i.items.length===0&&this.variablePrefix&&this.currentWord.indexOf(this.variablePrefix)===0&&this.getVariableProposals(null,i),this.finalize(i)}finally{this.position=null,this.currentWord=null,this.textDocument=null,this.styleSheet=null,this.symbolContext=null,this.defaultReplaceRange=null,this.nodePath=null}}isImportPathParent(e){return e===b.Import}finalize(e){return e}findInNodePath(...e){for(let t=this.nodePath.length-1;t>=0;t--){const n=this.nodePath[t];if(e.indexOf(n.type)!==-1)return n}return null}getCompletionsForDeclarationProperty(e,t){return this.getPropertyProposals(e,t)}getPropertyProposals(e,t){const n=this.isTriggerPropertyValueCompletionEnabled,r=this.isCompletePropertyWithSemicolonEnabled;return this.cssDataManager.getProperties().forEach(s=>{let a,l,o=!1;e?(a=this.getCompletionRange(e.getProperty()),l=s.name,Le(e.colonPosition)||(l+=": ",o=!0)):(a=this.getCompletionRange(null),l=s.name+": ",o=!0),!e&&r&&(l+="$0;"),e&&!e.semicolonPosition&&r&&this.offset>=this.textDocument.offsetAt(a.end)&&(l+="$0;");const c={label:s.name,documentation:bt(s,this.doesSupportMarkdown()),tags:In(s)?[Rt.Deprecated]:[],textEdit:$.replace(a,l),insertTextFormat:Ne.Snippet,kind:V.Property};s.restrictions||(o=!1),n&&o&&(c.command=Gc);const u=(255-(typeof s.relevance=="number"?Math.min(Math.max(s.relevance,0),99):50)).toString(16),f=pe(s.name,"-")?He.VendorPrefixed:He.Normal;c.sortText=f+"_"+u,t.items.push(c)}),this.completionParticipants.forEach(s=>{s.onCssProperty&&s.onCssProperty({propertyName:this.currentWord,range:this.defaultReplaceRange})}),t}get isTriggerPropertyValueCompletionEnabled(){return this.documentSettings?.triggerPropertyValueCompletion??!0}get isCompletePropertyWithSemicolonEnabled(){return this.documentSettings?.completePropertyWithSemicolon??!0}getCompletionsForDeclarationValue(e,t){const n=e.getFullPropertyName(),r=this.cssDataManager.getProperty(n);let i=e.getValue()||null;for(;i&&i.hasChildren();)i=i.findChildAtOffset(this.offset,!1);if(this.completionParticipants.forEach(s=>{s.onCssPropertyValue&&s.onCssPropertyValue({propertyName:n,propertyValue:this.currentWord,range:this.getCompletionRange(i)})}),r){if(r.restrictions)for(const s of r.restrictions)switch(s){case"color":this.getColorProposals(r,i,t);break;case"position":this.getPositionProposals(r,i,t);break;case"repeat":this.getRepeatStyleProposals(r,i,t);break;case"line-style":this.getLineStyleProposals(r,i,t);break;case"line-width":this.getLineWidthProposals(r,i,t);break;case"geometry-box":this.getGeometryBoxProposals(r,i,t);break;case"box":this.getBoxProposals(r,i,t);break;case"image":this.getImageProposals(r,i,t);break;case"timing-function":this.getTimingFunctionProposals(r,i,t);break;case"shape":this.getBasicShapeProposals(r,i,t);break}this.getValueEnumProposals(r,i,t),this.getCSSWideKeywordProposals(r,i,t),this.getUnitProposals(r,i,t)}else{const s=Mm(this.styleSheet,e);for(const a of s.getEntries())t.items.push({label:a,textEdit:$.replace(this.getCompletionRange(i),a),kind:V.Value})}return this.getVariableProposals(i,t),this.getTermProposals(r,i,t),t}getValueEnumProposals(e,t,n){if(e.values)for(const r of e.values){let i=r.name,s;if(gl(i,")")){const o=i.lastIndexOf("(");o!==-1&&(i=i.substring(0,o+1)+"$1"+i.substring(o+1),s=rt)}let a=He.Enums;pe(r.name,"-")&&(a+=He.VendorPrefixed);const l={label:r.name,documentation:bt(r,this.doesSupportMarkdown()),tags:In(e)?[Rt.Deprecated]:[],textEdit:$.replace(this.getCompletionRange(t),i),sortText:a,kind:V.Value,insertTextFormat:s};n.items.push(l)}return n}getCSSWideKeywordProposals(e,t,n){for(const r in Oc)n.items.push({label:r,documentation:Oc[r],textEdit:$.replace(this.getCompletionRange(t),r),kind:V.Value});for(const r in Wc){const i=Zt(r);n.items.push({label:r,documentation:Wc[r],textEdit:$.replace(this.getCompletionRange(t),i),kind:V.Function,insertTextFormat:rt,command:pe(r,"var")?Gc:void 0})}return n}getCompletionsForInterpolation(e,t){return this.offset>=e.offset+2&&this.getVariableProposals(null,t),t}getVariableProposals(e,t){const n=this.getSymbolContext().findSymbolsAtOffset(this.offset,J.Variable);for(const r of n){const i=pe(r.name,"--")?\`var(\${r.name})\`:r.name,s={label:r.name,documentation:r.value?bl(r.value):r.value,textEdit:$.replace(this.getCompletionRange(e),i),kind:V.Variable,sortText:He.Variable};if(typeof s.documentation=="string"&&Rc(s.documentation)&&(s.kind=V.Color),r.node.type===b.FunctionParameter){const a=r.node.getParent();a.type===b.MixinDeclaration&&(s.detail=g("argument from '{0}'",a.getName()))}t.items.push(s)}return t}getVariableProposalsForCSSVarFunction(e){const t=new ps;this.styleSheet.acceptVisitor(new zm(t,this.offset));let n=this.getSymbolContext().findSymbolsAtOffset(this.offset,J.Variable);for(const r of n){if(pe(r.name,"--")){const i={label:r.name,documentation:r.value?bl(r.value):r.value,textEdit:$.replace(this.getCompletionRange(null),r.name),kind:V.Variable};typeof i.documentation=="string"&&Rc(i.documentation)&&(i.kind=V.Color),e.items.push(i)}t.remove(r.name)}for(const r of t.getEntries())if(pe(r,"--")){const i={label:r,textEdit:$.replace(this.getCompletionRange(null),r),kind:V.Variable};e.items.push(i)}return e}getUnitProposals(e,t,n){let r="0";if(this.currentWord.length>0){const i=this.currentWord.match(/^-?\\d[\\.\\d+]*/);i&&(r=i[0],n.isIncomplete=r.length===this.currentWord.length)}else this.currentWord.length===0&&(n.isIncomplete=!0);if(t&&t.parent&&t.parent.type===b.Term&&(t=t.getParent()),e.restrictions)for(const i of e.restrictions){const s=Bc[i];if(s)for(const a of s){const l=r+a;n.items.push({label:l,textEdit:$.replace(this.getCompletionRange(t),l),kind:V.Unit})}}return n}getCompletionRange(e){if(e&&e.offset<=this.offset&&this.offset<=e.end){const t=e.end!==-1?this.textDocument.positionAt(e.end):this.position,n=this.textDocument.positionAt(e.offset);if(n.line===t.line)return X.create(n,t)}return this.defaultReplaceRange}getColorProposals(e,t,n){for(const i in yr)n.items.push({label:i,documentation:yr[i],textEdit:$.replace(this.getCompletionRange(t),i),kind:V.Color});for(const i in os)n.items.push({label:i,documentation:os[i],textEdit:$.replace(this.getCompletionRange(t),i),kind:V.Value});const r=new ps;this.styleSheet.acceptVisitor(new Lm(r,this.offset));for(const i of r.getEntries())n.items.push({label:i,textEdit:$.replace(this.getCompletionRange(t),i),kind:V.Color});for(const i of hm)n.items.push({label:i.label,detail:i.func,documentation:i.desc,textEdit:$.replace(this.getCompletionRange(t),i.insertText),insertTextFormat:rt,kind:V.Function});return n}getPositionProposals(e,t,n){for(const r in Mc)n.items.push({label:r,documentation:Mc[r],textEdit:$.replace(this.getCompletionRange(t),r),kind:V.Value});return n}getRepeatStyleProposals(e,t,n){for(const r in Lc)n.items.push({label:r,documentation:Lc[r],textEdit:$.replace(this.getCompletionRange(t),r),kind:V.Value});return n}getLineStyleProposals(e,t,n){for(const r in zc)n.items.push({label:r,documentation:zc[r],textEdit:$.replace(this.getCompletionRange(t),r),kind:V.Value});return n}getLineWidthProposals(e,t,n){for(const r of xm)n.items.push({label:r,textEdit:$.replace(this.getCompletionRange(t),r),kind:V.Value});return n}getGeometryBoxProposals(e,t,n){for(const r in Tc)n.items.push({label:r,documentation:Tc[r],textEdit:$.replace(this.getCompletionRange(t),r),kind:V.Value});return n}getBoxProposals(e,t,n){for(const r in Pc)n.items.push({label:r,documentation:Pc[r],textEdit:$.replace(this.getCompletionRange(t),r),kind:V.Value});return n}getImageProposals(e,t,n){for(const r in Uc){const i=Zt(r);n.items.push({label:r,documentation:Uc[r],textEdit:$.replace(this.getCompletionRange(t),i),kind:V.Function,insertTextFormat:r!==i?rt:void 0})}return n}getTimingFunctionProposals(e,t,n){for(const r in Vc){const i=Zt(r);n.items.push({label:r,documentation:Vc[r],textEdit:$.replace(this.getCompletionRange(t),i),kind:V.Function,insertTextFormat:r!==i?rt:void 0})}return n}getBasicShapeProposals(e,t,n){for(const r in $c){const i=Zt(r);n.items.push({label:r,documentation:$c[r],textEdit:$.replace(this.getCompletionRange(t),i),kind:V.Function,insertTextFormat:r!==i?rt:void 0})}return n}getCompletionsForStylesheet(e){const t=this.styleSheet.findFirstChildBeforeOffset(this.offset);return t?t instanceof Et?this.getCompletionsForRuleSet(t,e):t instanceof Wi?this.getCompletionsForSupports(t,e):e:this.getCompletionForTopLevel(e)}getCompletionForTopLevel(e){return this.cssDataManager.getAtDirectives().forEach(t=>{e.items.push({label:t.name,textEdit:$.replace(this.getCompletionRange(null),t.name),documentation:bt(t,this.doesSupportMarkdown()),tags:In(t)?[Rt.Deprecated]:[],kind:V.Keyword})}),this.getCompletionsForSelector(null,!1,e),e}getCompletionsForRuleSet(e,t){const n=e.getDeclarations();return n&&n.endsWith("}")&&this.offset>=n.end?this.getCompletionForTopLevel(t):!n||this.offset<=n.offset?this.getCompletionsForSelector(e,e.isNested(),t):this.getCompletionsForDeclarations(e.getDeclarations(),t)}getCompletionsForSelector(e,t,n){const r=this.findInNodePath(b.PseudoSelector,b.IdentifierSelector,b.ClassSelector,b.ElementNameSelector);if(!r&&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=X.create(xe.create(this.position.line,this.position.character-this.currentWord.length),this.position)),this.cssDataManager.getPseudoClasses().forEach(o=>{const c=Zt(o.name),d={label:o.name,textEdit:$.replace(this.getCompletionRange(r),c),documentation:bt(o,this.doesSupportMarkdown()),tags:In(o)?[Rt.Deprecated]:[],kind:V.Function,insertTextFormat:o.name!==c?rt:void 0};pe(o.name,":-")&&(d.sortText=He.VendorPrefixed),n.items.push(d)}),this.cssDataManager.getPseudoElements().forEach(o=>{const c=Zt(o.name),d={label:o.name,textEdit:$.replace(this.getCompletionRange(r),c),documentation:bt(o,this.doesSupportMarkdown()),tags:In(o)?[Rt.Deprecated]:[],kind:V.Function,insertTextFormat:o.name!==c?rt:void 0};pe(o.name,"::-")&&(d.sortText=He.VendorPrefixed),n.items.push(d)}),!t){for(const o of Sm)n.items.push({label:o,textEdit:$.replace(this.getCompletionRange(r),o),kind:V.Keyword});for(const o of Cm)n.items.push({label:o,textEdit:$.replace(this.getCompletionRange(r),o),kind:V.Keyword})}const a={};a[this.currentWord]=!0;const l=this.textDocument.getText();if(this.styleSheet.accept(o=>{if(o.type===b.SimpleSelector&&o.length>0){const c=l.substr(o.offset,o.length);return c.charAt(0)==="."&&!a[c]&&(a[c]=!0,n.items.push({label:c,textEdit:$.replace(this.getCompletionRange(r),c),kind:V.Keyword})),!1}return!0}),e&&e.isNested()){const o=e.getSelectors().findFirstChildBeforeOffset(this.offset);o&&e.getSelectors().getChildren().indexOf(o)===0&&this.getPropertyProposals(null,n)}return n}getCompletionsForDeclarations(e,t){if(!e||this.offset===e.offset)return t;const n=e.findFirstChildBeforeOffset(this.offset);if(!n)return this.getCompletionsForDeclarationProperty(null,t);if(n instanceof zi){const r=n;if(!Le(r.colonPosition)||this.offset<=r.colonPosition)return this.getCompletionsForDeclarationProperty(r,t);if(Le(r.semicolonPosition)&&r.semicolonPosition<this.offset)return this.offset===r.semicolonPosition+1?t:this.getCompletionsForDeclarationProperty(null,t);if(r instanceof qe)return this.getCompletionsForDeclarationValue(r,t)}else n instanceof En?this.getCompletionsForExtendsReference(n,null,t):this.currentWord&&this.currentWord[0]==="@"?this.getCompletionsForDeclarationProperty(null,t):n instanceof Et&&this.getCompletionsForDeclarationProperty(null,t);return t}getCompletionsForVariableDeclaration(e,t){return this.offset&&Le(e.colonPosition)&&this.offset>e.colonPosition&&this.getVariableProposals(e.getValue()||null,t),t}getCompletionsForExpression(e,t){const n=e.getParent();if(n instanceof Xt)return this.getCompletionsForFunctionArgument(n,n.getParent(),t),t;const r=e.findParent(b.Declaration);if(!r)return this.getTermProposals(void 0,null,t),t;const i=e.findChildAtOffset(this.offset,!0);return i?i instanceof $i||i instanceof Me?this.getCompletionsForDeclarationValue(r,t):t:this.getCompletionsForDeclarationValue(r,t)}getCompletionsForFunctionArgument(e,t,n){const r=t.getIdentifier();return r&&r.matches("var")&&(!t.getArguments().hasChildren()||t.getArguments().getChild(0)===e)&&this.getVariableProposalsForCSSVarFunction(n),n}getCompletionsForFunctionDeclaration(e,t){const n=e.getDeclarations();return n&&this.offset>n.offset&&this.offset<n.end&&this.getTermProposals(void 0,null,t),t}getCompletionsForMixinReference(e,t){const n=this.getSymbolContext().findSymbolsAtOffset(this.offset,J.Mixin);for(const i of n)i.node instanceof Fn&&t.items.push(this.makeTermProposal(i,i.node.getParameters(),null));const r=e.getIdentifier()||null;return this.completionParticipants.forEach(i=>{i.onCssMixinReference&&i.onCssMixinReference({mixinName:this.currentWord,range:this.getCompletionRange(r)})}),t}getTermProposals(e,t,n){const r=this.getSymbolContext().findSymbolsAtOffset(this.offset,J.Function);for(const i of r)i.node instanceof cr&&n.items.push(this.makeTermProposal(i,i.node.getParameters(),t));return n}makeTermProposal(e,t,n){e.node;const r=t.getChildren().map(s=>s instanceof lr?s.getName():s.getText()),i=e.name+"("+r.map((s,a)=>"\${"+(a+1)+":"+s+"}").join(", ")+")";return{label:e.name,detail:e.name+"("+r.join(", ")+")",textEdit:$.replace(this.getCompletionRange(n),i),insertTextFormat:rt,kind:V.Function,sortText:He.Term}}getCompletionsForSupportsCondition(e,t){const n=e.findFirstChildBeforeOffset(this.offset);if(n){if(n instanceof qe)return!Le(n.colonPosition)||this.offset<=n.colonPosition?this.getCompletionsForDeclarationProperty(n,t):this.getCompletionsForDeclarationValue(n,t);if(n instanceof kn)return this.getCompletionsForSupportsCondition(n,t)}return Le(e.lParent)&&this.offset>e.lParent&&(!Le(e.rParent)||this.offset<=e.rParent)?this.getCompletionsForDeclarationProperty(null,t):t}getCompletionsForSupports(e,t){const n=e.getDeclarations();if(!n||this.offset<=n.offset){const i=e.findFirstChildBeforeOffset(this.offset);return i instanceof kn?this.getCompletionsForSupportsCondition(i,t):t}return this.getCompletionForTopLevel(t)}getCompletionsForExtendsReference(e,t,n){return n}getCompletionForUriLiteralValue(e,t){let n,r,i;if(e.hasChildren()){const s=e.getChild(0);n=s.getText(),r=this.position,i=this.getCompletionRange(s)}else{n="",r=this.position;const s=this.textDocument.positionAt(e.offset+4);i=X.create(s,s)}return this.completionParticipants.forEach(s=>{s.onCssURILiteralValue&&s.onCssURILiteralValue({uriValue:n,position:r,range:i})}),t}getCompletionForImportPath(e,t){return this.completionParticipants.forEach(n=>{n.onCssImportPath&&n.onCssImportPath({pathValue:e.getText(),position:this.position,range:this.getCompletionRange(e)})}),t}hasCharacterAtPosition(e,t){const n=this.textDocument.getText();return e>=0&&e<n.length&&n.charAt(e)===t}doesSupportMarkdown(){if(!Le(this.supportsMarkdown)){if(!Le(this.lsOptions.clientCapabilities))return this.supportsMarkdown=!0,this.supportsMarkdown;const e=this.lsOptions.clientCapabilities.textDocument?.completion?.completionItem?.documentationFormat;this.supportsMarkdown=Array.isArray(e)&&e.indexOf(je.Markdown)!==-1}return this.supportsMarkdown}};function In(e){return!!(e.status&&(e.status==="nonstandard"||e.status==="obsolete"))}var ps=class{constructor(){this.entries={}}add(e){this.entries[e]=!0}remove(e){delete this.entries[e]}getEntries(){return Object.keys(this.entries)}};function Zt(e){return e.replace(/\\(\\)$/,"($1)")}function Mm(e,t){const n=t.getFullPropertyName(),r=new ps;function i(l){return(l instanceof Me||l instanceof $i||l instanceof Vi)&&r.add(l.getText()),!0}function s(l){const o=l.getFullPropertyName();return n===o}function a(l){if(l instanceof qe&&l!==t&&s(l)){const o=l.getValue();o&&o.accept(i)}return!0}return e.accept(a),r}var Lm=class{constructor(e,t){this.entries=e,this.currentOffset=t}visitNode(e){return(e instanceof Vi||e instanceof _n&&mm(e))&&(this.currentOffset<e.offset||e.end<this.currentOffset)&&this.entries.add(e.getText()),!0}},zm=class{constructor(e,t){this.entries=e,this.currentOffset=t}visitNode(e){return e instanceof Me&&e.isCustomProperty&&(this.currentOffset<e.offset||e.end<this.currentOffset)&&this.entries.add(e.getText()),!0}};function Pm(e,t){let n=t-1;const r=e.getText();for(;n>=0&&\`
38
38
  \\r":{[()]},*>+\`.indexOf(r.charAt(n))===-1;)n--;return r.substring(n+1,t)}var ms=class Ws{constructor(){this.parent=null,this.children=null,this.attributes=null}findAttribute(t){if(this.attributes){for(const n of this.attributes)if(n.name===t)return n.value}return null}addChild(t){t instanceof Ws&&(t.parent=this),this.children||(this.children=[]),this.children.push(t)}append(t){if(this.attributes){const n=this.attributes[this.attributes.length-1];n.value=n.value+t}}prepend(t){if(this.attributes){const n=this.attributes[0];n.value=t+n.value}}findRoot(){let t=this;for(;t.parent&&!(t.parent instanceof en);)t=t.parent;return t}removeChild(t){if(this.children){const n=this.children.indexOf(t);if(n!==-1)return this.children.splice(n,1),!0}return!1}addAttr(t,n){this.attributes||(this.attributes=[]);for(const r of this.attributes)if(r.name===t){r.value+=" "+n;return}this.attributes.push({name:t,value:n})}clone(t=!0){const n=new Ws;if(this.attributes){n.attributes=[];for(const r of this.attributes)n.addAttr(r.name,r.value)}if(t&&this.children){n.children=[];for(let r=0;r<this.children.length;r++)n.addChild(this.children[r].clone())}return n}cloneWithParent(){const t=this.clone(!1);return this.parent&&!(this.parent instanceof en)&&this.parent.cloneWithParent().addChild(t),t}},en=class extends ms{},fs=class extends ms{constructor(e){super(),this.addAttr("name",e)}},Jc=class{constructor(e){this.quote=e,this.result=[]}print(e,t){this.result=[],e instanceof en?e.children&&this.doPrint(e.children,0):this.doPrint([e],0);let n;return t?n=\`\${t.text}
39
39
  … \`+this.result.join(\`
40
40
  \`):n=this.result.join(\`
41
- \`),[{language:"html",value:n}]}doPrint(e,t){for(const n of e)this.doPrintElement(n,t),n.children&&this.doPrint(n.children,t+1)}writeLine(e,t){const n=new Array(e+1).join(" ");this.result.push(n+t)}doPrintElement(e,t){const n=e.findAttribute("name");if(e instanceof fs||n==="…"){this.writeLine(t,n);return}const r=["<"];if(n?r.push(n):r.push("element"),e.attributes){for(const i of e.attributes)if(i.name!=="name"){r.push(" "),r.push(i.name);const s=i.value;s&&(r.push("="),r.push(it.ensure(s,this.quote)))}}r.push(">"),this.writeLine(t,r.join(""))}},it;(function(e){function t(r,i){return i+n(r)+i}e.ensure=t;function n(r){const i=r.match(/^['"](.*)["']$/);return i?i[1]:r}e.remove=n})(it||(it={}));var gs=class{constructor(){this.id=0,this.attr=0,this.tag=0}};function Xc(e,t){let n=new ms;for(const r of e.getChildren())switch(r.type){case b.SelectorCombinator:if(t){const l=r.getText().split("&");if(l.length===1){n.addAttr("name",l[0]);break}n=t.cloneWithParent(),l[0]&&n.findRoot().prepend(l[0]);for(let o=1;o<l.length;o++){if(o>1){const c=t.cloneWithParent();n.addChild(c.findRoot()),n=c}n.append(l[o])}}break;case b.SelectorPlaceholder:if(r.matches("@at-root"))return n;case b.ElementNameSelector:const i=r.getText();n.addAttr("name",i==="*"?"element":ze(i));break;case b.ClassSelector:n.addAttr("class",ze(r.getText().substring(1)));break;case b.IdentifierSelector:n.addAttr("id",ze(r.getText().substring(1)));break;case b.MixinDeclaration:n.addAttr("class",r.getName());break;case b.PseudoSelector:n.addAttr(ze(r.getText()),"");break;case b.AttributeSelector:const s=r,a=s.getIdentifier();if(a){const l=s.getValue(),o=s.getOperator();let c;if(l&&o)switch(ze(o.getText())){case"|=":c=\`\${it.remove(ze(l.getText()))}-…\`;break;case"^=":c=\`\${it.remove(ze(l.getText()))}…\`;break;case"$=":c=\`…\${it.remove(ze(l.getText()))}\`;break;case"~=":c=\` … \${it.remove(ze(l.getText()))} … \`;break;case"*=":c=\`…\${it.remove(ze(l.getText()))}…\`;break;default:c=it.remove(ze(l.getText()));break}n.addAttr(ze(a.getText()),c)}break}return n}function ze(e){const t=new Sn;t.setSource(e);const n=t.scanUnquotedString();return n?n.text:e}var Tm=class{constructor(e){this.cssDataManager=e}selectorToMarkedString(e,t){const n=Um(e);if(n){const r=new Jc('"').print(n,t);return r.push(this.selectorToSpecificityMarkedString(e)),r}else return[]}simpleSelectorToMarkedString(e){const t=Xc(e),n=new Jc('"').print(t);return n.push(this.selectorToSpecificityMarkedString(e)),n}isPseudoElementIdentifier(e){const t=e.match(/^::?([\\w-]+)/);return t?!!this.cssDataManager.getPseudoElement("::"+t[1]):!1}selectorToSpecificityMarkedString(e){const t=i=>{const s=new gs;let a=new gs;for(const l of i)for(const o of l.getChildren()){const c=n(o);if(c.id>a.id){a=c;continue}else if(c.id<a.id)continue;if(c.attr>a.attr){a=c;continue}else if(c.attr<a.attr)continue;if(c.tag>a.tag){a=c;continue}}return s.id+=a.id,s.attr+=a.attr,s.tag+=a.tag,s},n=i=>{const s=new gs;e:for(const a of i.getChildren()){switch(a.type){case b.IdentifierSelector:s.id++;break;case b.ClassSelector:case b.AttributeSelector:s.attr++;break;case b.ElementNameSelector:if(a.matches("*"))break;s.tag++;break;case b.PseudoSelector:const l=a.getText(),o=a.getChildren();if(this.isPseudoElementIdentifier(l)){if(l.match(/^::slotted/i)&&o.length>0){s.tag++;let c=t(o);s.id+=c.id,s.attr+=c.attr,s.tag+=c.tag;continue e}s.tag++;continue e}if(l.match(/^:where/i))continue e;if(l.match(/^:(?:not|has|is)/i)&&o.length>0){let c=t(o);s.id+=c.id,s.attr+=c.attr,s.tag+=c.tag;continue e}if(l.match(/^:(?:host|host-context)/i)&&o.length>0){s.attr++;let c=t(o);s.id+=c.id,s.attr+=c.attr,s.tag+=c.tag;continue e}if(l.match(/^:(?:nth-child|nth-last-child)/i)&&o.length>0){if(s.attr++,o.length===3&&o[1].type===23){let m=t(o[2].getChildren());s.id+=m.id,s.attr+=m.attr,s.tag+=m.tag;continue e}const c=new Sr,d=o[1].getText();c.scanner.setSource(d);const u=c.scanner.scan(),f=c.scanner.scan();if(u.text==="n"||u.text==="-n"&&f.text==="of"){const m=[],w=d.slice(f.offset+2).split(",");for(const R of w){const I=c.internalParse(R,c._parseSelector);I&&m.push(I)}let k=t(m);s.id+=k.id,s.attr+=k.attr,s.tag+=k.tag;continue e}continue e}s.attr++;continue e}if(a.getChildren().length>0){const l=n(a);s.id+=l.id,s.attr+=l.attr,s.tag+=l.tag}}return s},r=n(e);return\`[\${g("Selector Specificity")}](https://developer.mozilla.org/docs/Web/CSS/Specificity): (\${r.id}, \${r.attr}, \${r.tag})\`}},Om=class{constructor(e){this.prev=null,this.element=e}processSelector(e){let t=null;if(!(this.element instanceof en)&&e.getChildren().some(n=>n.hasChildren()&&n.getChild(0).type===b.SelectorCombinator)){const n=this.element.findRoot();n.parent instanceof en&&(t=this.element,this.element=n.parent,this.element.removeChild(n),this.prev=null)}for(const n of e.getChildren()){if(n instanceof Jt){if(this.prev instanceof Jt){const s=new fs("…");this.element.addChild(s),this.element=s}else this.prev&&(this.prev.matches("+")||this.prev.matches("~"))&&this.element.parent&&(this.element=this.element.parent);this.prev&&this.prev.matches("~")&&this.element.addChild(new fs("⋮"));const r=Xc(n,t),i=r.findRoot();this.element.addChild(i),this.element=r}(n instanceof Jt||n.type===b.SelectorCombinatorParent||n.type===b.SelectorCombinatorShadowPiercingDescendant||n.type===b.SelectorCombinatorSibling||n.type===b.SelectorCombinatorAllSiblings)&&(this.prev=n)}}};function Wm(e){switch(e.type){case b.MixinDeclaration:case b.Stylesheet:return!0}return!1}function Um(e){if(e.matches("@at-root"))return null;const t=new en,n=[],r=e.getParent();if(r instanceof Et){let s=r.getParent();for(;s&&!Wm(s);){if(s instanceof Et){if(s.getSelectors().matches("@at-root"))break;n.push(s)}s=s.getParent()}}const i=new Om(t);for(let s=n.length-1;s>=0;s--){const a=n[s].getSelectors().getChild(0);a&&i.processSelector(a)}return i.processSelector(e),t}var bs=class{constructor(e,t){this.clientCapabilities=e,this.cssDataManager=t,this.selectorPrinting=new Tm(t)}configure(e){this.defaultSettings=e}doHover(e,t,n,r=this.defaultSettings){function i(c){return X.create(e.positionAt(c.offset),e.positionAt(c.end))}const s=e.offsetAt(t),a=Mi(n,s);let l=null,o;for(let c=0;c<a.length;c++){const d=a[c];if(d instanceof Oi){const u=/@media[^\\{]+/g;o={isMedia:!0,text:d.getText().match(u)?.[0]}}if(d instanceof Cn){l={contents:this.selectorPrinting.selectorToMarkedString(d,o),range:i(d)};break}if(d instanceof Jt){pe(d.getText(),"@")||(l={contents:this.selectorPrinting.simpleSelectorToMarkedString(d),range:i(d)});break}if(d instanceof qe){const u=d.getFullPropertyName(),f=this.cssDataManager.getProperty(u);if(f){const m=bt(f,this.doesSupportMarkdown(),r);m?l={contents:m,range:i(d)}:l=null}continue}if(d instanceof El){const u=d.getText(),f=this.cssDataManager.getAtDirective(u);if(f){const m=bt(f,this.doesSupportMarkdown(),r);m?l={contents:m,range:i(d)}:l=null}continue}if(d instanceof O&&d.type===b.PseudoSelector){const u=d.getText(),f=u.slice(0,2)==="::"?this.cssDataManager.getPseudoElement(u):this.cssDataManager.getPseudoClass(u);if(f){const m=bt(f,this.doesSupportMarkdown(),r);m?l={contents:m,range:i(d)}:l=null}continue}}return l&&(l.contents=this.convertContents(l.contents)),l}convertContents(e){return this.doesSupportMarkdown()||typeof e=="string"?e:"kind"in e?{kind:"plaintext",value:e.value}:Array.isArray(e)?e.map(t=>typeof t=="string"?t:t.value):e.value}doesSupportMarkdown(){if(!Le(this.supportsMarkdown)){if(!Le(this.clientCapabilities))return this.supportsMarkdown=!0,this.supportsMarkdown;const e=this.clientCapabilities.textDocument&&this.clientCapabilities.textDocument.hover;this.supportsMarkdown=e&&e.contentFormat&&Array.isArray(e.contentFormat)&&e.contentFormat.indexOf(je.Markdown)!==-1}return this.supportsMarkdown}},Yc=/^\\w+:\\/\\//,Qc=/^data:/,vs=class{constructor(e,t){this.fileSystemProvider=e,this.resolveModuleReferences=t}configure(e){this.defaultSettings=e}findDefinition(e,t,n){const r=new ls(n),i=e.offsetAt(t),s=Ai(n,i);if(!s)return null;const a=r.findSymbolFromNode(s);return a?{uri:e.uri,range:st(a.node,e)}:null}findReferences(e,t,n){return this.findDocumentHighlights(e,t,n).map(i=>({uri:e.uri,range:i.range}))}getHighlightNode(e,t,n){const r=e.offsetAt(t);let i=Ai(n,r);if(!(!i||i.type===b.Stylesheet||i.type===b.Declarations))return i.type===b.Identifier&&i.parent&&i.parent.type===b.ClassSelector&&(i=i.parent),i}findDocumentHighlights(e,t,n){const r=[],i=this.getHighlightNode(e,t,n);if(!i)return r;const s=new ls(n),a=s.findSymbolFromNode(i),l=i.getText();return n.accept(o=>{if(a){if(s.matchesSymbol(o,a))return r.push({kind:Zc(o),range:st(o,e)}),!1}else i&&i.type===o.type&&o.matches(l)&&r.push({kind:Zc(o),range:st(o,e)});return!0}),r}isRawStringDocumentLinkNode(e){return e.type===b.Import}findDocumentLinks(e,t,n){const r=this.findUnresolvedLinks(e,t),i=[];for(let s of r){const a=s.link,l=a.target;if(!(!l||Qc.test(l)))if(Yc.test(l))i.push(a);else{const o=n.resolveReference(l,e.uri);o&&(a.target=o),i.push(a)}}return i}async findDocumentLinks2(e,t,n){const r=this.findUnresolvedLinks(e,t),i=[];for(let s of r){const a=s.link,l=a.target;if(!(!l||Qc.test(l)))if(Yc.test(l))i.push(a);else{const o=await this.resolveReference(l,e.uri,n,s.isRawLink);o!==void 0&&(a.target=o,i.push(a))}}return i}findUnresolvedLinks(e,t){const n=[],r=i=>{let s=i.getText();const a=st(i,e);if(a.start.line===a.end.line&&a.start.character===a.end.character)return;(pe(s,"'")||pe(s,'"'))&&(s=s.slice(1,-1));const l=i.parent?this.isRawStringDocumentLinkNode(i.parent):!1;n.push({link:{target:s,range:a},isRawLink:l})};return t.accept(i=>{if(i.type===b.URILiteral){const s=i.getChild(0);return s&&r(s),!1}if(i.parent&&this.isRawStringDocumentLinkNode(i.parent)){const s=i.getText();return(pe(s,"'")||pe(s,'"'))&&r(i),!1}return!0}),n}findSymbolInformations(e,t){const n=[],r=(i,s,a)=>{const l=a instanceof O?st(a,e):a,o={name:i||g("<undefined>"),kind:s,location:Rn.create(e.uri,l)};n.push(o)};return this.collectDocumentSymbols(e,t,r),n}findDocumentSymbols(e,t){const n=[],r=[],i=(s,a,l,o,c)=>{const d=l instanceof O?st(l,e):l;let u=o instanceof O?st(o,e):o;(!u||!Kc(d,u))&&(u=X.create(d.start,d.start));const f={name:s||g("<undefined>"),kind:a,range:d,selectionRange:u};let m=r.pop();for(;m&&!Kc(m[1],d);)m=r.pop();if(m){const v=m[0];v.children||(v.children=[]),v.children.push(f),r.push(m)}else n.push(f);c&&r.push([f,st(c,e)])};return this.collectDocumentSymbols(e,t,i),n}collectDocumentSymbols(e,t,n){t.accept(r=>{if(r instanceof Et){for(const i of r.getSelectors().getChildren())if(i instanceof Cn){const s=X.create(e.positionAt(i.offset),e.positionAt(r.end));n(i.getText(),nt.Class,s,i,r.getDeclarations())}}else if(r instanceof cr)n(r.getName(),nt.Variable,r,r.getVariable(),void 0);else if(r instanceof Fn)n(r.getName(),nt.Method,r,r.getIdentifier(),r.getDeclarations());else if(r instanceof lr)n(r.getName(),nt.Function,r,r.getIdentifier(),r.getDeclarations());else if(r instanceof xl){const i=g("@keyframes {0}",r.getName());n(i,nt.Class,r,r.getIdentifier(),r.getDeclarations())}else if(r instanceof wl){const i=g("@font-face");n(i,nt.Class,r,void 0,r.getDeclarations())}else if(r instanceof Oi){const i=r.getChild(0);if(i instanceof Cl){const s="@media "+i.getText();n(s,nt.Module,r,i,r.getDeclarations())}}return!0})}findDocumentColors(e,t){const n=[];return t.accept(r=>{const i=Vm(r,e);return i&&n.push(i),!0}),n}getColorPresentations(e,t,n,r){const i=[],s=Math.round(n.red*255),a=Math.round(n.green*255),l=Math.round(n.blue*255);let o;n.alpha===1?o=\`rgb(\${s}, \${a}, \${l})\`:o=\`rgba(\${s}, \${a}, \${l}, \${n.alpha})\`,i.push({label:o,textEdit:$.replace(r,o)}),n.alpha===1?o=\`#\${Nt(s)}\${Nt(a)}\${Nt(l)}\`:o=\`#\${Nt(s)}\${Nt(a)}\${Nt(l)}\${Nt(Math.round(n.alpha*255))}\`,i.push({label:o,textEdit:$.replace(r,o)});const c=Ac(n);c.a===1?o=\`hsl(\${c.h}, \${Math.round(c.s*100)}%, \${Math.round(c.l*100)}%)\`:o=\`hsla(\${c.h}, \${Math.round(c.s*100)}%, \${Math.round(c.l*100)}%, \${c.a})\`,i.push({label:o,textEdit:$.replace(r,o)});const d=wm(n);return d.a===1?o=\`hwb(\${d.h} \${Math.round(d.w*100)}% \${Math.round(d.b*100)}%)\`:o=\`hwb(\${d.h} \${Math.round(d.w*100)}% \${Math.round(d.b*100)}% / \${d.a})\`,i.push({label:o,textEdit:$.replace(r,o)}),i}prepareRename(e,t,n){const r=this.getHighlightNode(e,t,n);if(r)return X.create(e.positionAt(r.offset),e.positionAt(r.end))}doRename(e,t,n,r){const s=this.findDocumentHighlights(e,t,r).map(a=>$.replace(a.range,n));return{changes:{[e.uri]:s}}}async resolveModuleReference(e,t,n){if(pe(t,"file://")){const r=$m(e);if(r&&r!=="."&&r!==".."){const i=n.resolveReference("/",t),s=hs(t),a=await this.resolvePathToModule(r,s,i);if(a){const l=e.substring(r.length+1);return Kt(a,l)}}}}async mapReference(e,t){return e}async resolveReference(e,t,n,r=!1,i=this.defaultSettings){if(e[0]==="~"&&e[1]!=="/"&&this.fileSystemProvider)return e=e.substring(1),this.mapReference(await this.resolveModuleReference(e,t,n),r);const s=await this.mapReference(n.resolveReference(e,t),r);if(this.resolveModuleReferences){if(s&&await this.fileExists(s))return s;const a=await this.mapReference(await this.resolveModuleReference(e,t,n),r);if(a)return a}if(s&&!await this.fileExists(s)){const a=n.resolveReference("/",t);if(i&&a){if(e in i)return this.mapReference(Kt(a,i[e]),r);const l=e.indexOf("/"),o=\`\${e.substring(0,l)}/\`;if(o in i){const c=i[o].slice(0,-1);let d=Kt(a,c);return this.mapReference(d=Kt(d,e.substring(o.length-1)),r)}}}return s}async resolvePathToModule(e,t,n){const r=Kt(t,"node_modules",e,"package.json");if(await this.fileExists(r))return hs(r);if(n&&t.startsWith(n)&&t.length!==n.length)return this.resolvePathToModule(e,hs(t),n)}async fileExists(e){if(!this.fileSystemProvider)return!1;try{const t=await this.fileSystemProvider.stat(e);return!(t.type===Dn.Unknown&&t.size===-1)}catch{return!1}}};function Vm(e,t){const n=ym(e);if(n){const r=st(e,t);return{color:n,range:r}}return null}function st(e,t){return X.create(t.positionAt(e.offset),t.positionAt(e.end))}function Kc(e,t){const n=t.start.line,r=t.end.line,i=e.start.line,s=e.end.line;return!(n<i||r<i||n>s||r>s||n===i&&t.start.character<e.start.character||r===s&&t.end.character>e.end.character)}function Zc(e){if(e.type===b.Selector||e instanceof Me&&e.parent&&e.parent instanceof Pi&&e.isCustomProperty)return Qt.Write;if(e.parent)switch(e.parent.type){case b.FunctionDeclaration:case b.MixinDeclaration:case b.Keyframe:case b.VariableDeclaration:case b.FunctionParameter:return Qt.Write}return Qt.Read}function Nt(e){const t=e.toString(16);return t.length!==2?"0"+t:t}function $m(e){const t=e.indexOf("/");if(t===-1)return"";if(e[0]==="@"){const n=e.indexOf("/",t+1);return n===-1?e:e.substring(0,n)}return e.substring(0,t)}var tn=Re.Warning,eh=Re.Error,Oe=Re.Ignore,fe=class{constructor(e,t,n){this.id=e,this.message=t,this.defaultValue=n}},Bm=class{constructor(e,t,n){this.id=e,this.message=t,this.defaultValue=n}},te={AllVendorPrefixes:new fe("compatibleVendorPrefixes",g("When using a vendor-specific prefix make sure to also include all other vendor-specific properties"),Oe),IncludeStandardPropertyWhenUsingVendorPrefix:new fe("vendorPrefix",g("When using a vendor-specific prefix also include the standard property"),tn),DuplicateDeclarations:new fe("duplicateProperties",g("Do not use duplicate style definitions"),Oe),EmptyRuleSet:new fe("emptyRules",g("Do not use empty rulesets"),tn),ImportStatemement:new fe("importStatement",g("Import statements do not load in parallel"),Oe),BewareOfBoxModelSize:new fe("boxModel",g("Do not use width or height when using padding or border"),Oe),UniversalSelector:new fe("universalSelector",g("The universal selector (*) is known to be slow"),Oe),ZeroWithUnit:new fe("zeroUnits",g("No unit for zero needed"),Oe),RequiredPropertiesForFontFace:new fe("fontFaceProperties",g("@font-face rule must define 'src' and 'font-family' properties"),tn),HexColorLength:new fe("hexColorLength",g("Hex colors must consist of three, four, six or eight hex numbers"),eh),ArgsInColorFunction:new fe("argumentsInColorFunction",g("Invalid number of parameters"),eh),UnknownProperty:new fe("unknownProperties",g("Unknown property."),tn),UnknownAtRules:new fe("unknownAtRules",g("Unknown at-rule."),tn),IEStarHack:new fe("ieHack",g("IE hacks are only necessary when supporting IE7 and older"),Oe),UnknownVendorSpecificProperty:new fe("unknownVendorSpecificProperties",g("Unknown vendor specific property."),Oe),PropertyIgnoredDueToDisplay:new fe("propertyIgnoredDueToDisplay",g("Property is ignored due to the display."),tn),AvoidImportant:new fe("important",g("Avoid using !important. It is an indication that the specificity of the entire CSS has gotten out of control and needs to be refactored."),Oe),AvoidFloat:new fe("float",g("Avoid using 'float'. Floats lead to fragile CSS that is easy to break if one aspect of the layout changes."),Oe),AvoidIdSelector:new fe("idSelector",g("Selectors should not contain IDs because these rules are too tightly coupled with the HTML."),Oe)},qm={ValidProperties:new Bm("validProperties",g("A list of properties that are not validated against the \`unknownProperties\` rule."),[])},jm=class{constructor(e={}){this.conf=e}getRule(e){if(this.conf.hasOwnProperty(e.id)){const t=Hm(this.conf[e.id]);if(t)return t}return e.defaultValue}getSetting(e){return this.conf[e.id]}};function Hm(e){switch(e){case"ignore":return Re.Ignore;case"warning":return Re.Warning;case"error":return Re.Error}return null}var ws=class{constructor(e){this.cssDataManager=e}doCodeActions(e,t,n,r){return this.doCodeActions2(e,t,n,r).map(i=>{const s=i.edit&&i.edit.documentChanges&&i.edit.documentChanges[0];return Ft.create(i.title,"_css.applyCodeAction",e.uri,e.version,s&&s.edits)})}doCodeActions2(e,t,n,r){const i=[];if(n.diagnostics)for(const s of n.diagnostics)this.appendFixesForMarker(e,r,s,i);return i}getFixesForUnknownProperty(e,t,n,r){const i=t.getName(),s=[];this.cssDataManager.getProperties().forEach(l=>{const o=vp(i,l.name);o>=i.length/2&&s.push({property:l.name,score:o})}),s.sort((l,o)=>o.score-l.score||l.property.localeCompare(o.property));let a=3;for(const l of s){const o=l.property,c=g("Rename to '{0}'",o),d=$.replace(n.range,o),u=Zi.create(e.uri,e.version),f={documentChanges:[mr.create(u,[d])]},m=ns.create(c,f,ts.QuickFix);if(m.diagnostics=[n],r.push(m),--a<=0)return}}appendFixesForMarker(e,t,n,r){if(n.code!==te.UnknownProperty.id)return;const i=e.offsetAt(n.range.start),s=e.offsetAt(n.range.end),a=Mi(t,i);for(let l=a.length-1;l>=0;l--){const o=a[l];if(o instanceof qe){const c=o.getProperty();if(c&&c.offset===i&&c.end===s){this.getFixesForUnknownProperty(e,c,n,r);return}}}}},Gm=class{constructor(e){this.fullPropertyName=e.getFullPropertyName().toLowerCase(),this.node=e}};function An(e,t,n,r){const i=e[t];i.value=n,n&&(qc(i.properties,r)||i.properties.push(r))}function Jm(e,t,n){An(e,"top",t,n),An(e,"right",t,n),An(e,"bottom",t,n),An(e,"left",t,n)}function be(e,t,n,r){t==="top"||t==="right"||t==="bottom"||t==="left"?An(e,t,n,r):Jm(e,n,r)}function ys(e,t,n){switch(t.length){case 1:be(e,void 0,t[0],n);break;case 2:be(e,"top",t[0],n),be(e,"bottom",t[0],n),be(e,"right",t[1],n),be(e,"left",t[1],n);break;case 3:be(e,"top",t[0],n),be(e,"right",t[1],n),be(e,"left",t[1],n),be(e,"bottom",t[2],n);break;case 4:be(e,"top",t[0],n),be(e,"right",t[1],n),be(e,"bottom",t[2],n),be(e,"left",t[3],n);break}}function xs(e,t){for(let n of t)if(e.matches(n))return!0;return!1}function Mn(e,t=!0){return t&&xs(e,["initial","unset"])?!1:parseFloat(e.getText())!==0}function th(e,t=!0){return e.map(n=>Mn(n,t))}function Fr(e,t=!0){return!(xs(e,["none","hidden"])||t&&xs(e,["initial","unset"]))}function Xm(e,t=!0){return e.map(n=>Fr(n,t))}function Ym(e){const t=e.getChildren();if(t.length===1){const n=t[0];return Mn(n)&&Fr(n)}for(const n of t){const r=n;if(!Mn(r,!1)||!Fr(r,!1))return!1}return!0}function Qm(e){const t={top:{value:!1,properties:[]},right:{value:!1,properties:[]},bottom:{value:!1,properties:[]},left:{value:!1,properties:[]}};for(const n of e){const r=n.node.value;if(!(typeof r>"u"))switch(n.fullPropertyName){case"box-sizing":return{top:{value:!1,properties:[]},right:{value:!1,properties:[]},bottom:{value:!1,properties:[]},left:{value:!1,properties:[]}};case"width":t.width=n;break;case"height":t.height=n;break;default:const i=n.fullPropertyName.split("-");switch(i[0]){case"border":switch(i[1]){case void 0:case"top":case"right":case"bottom":case"left":switch(i[2]){case void 0:be(t,i[1],Ym(r),n);break;case"width":be(t,i[1],Mn(r,!1),n);break;case"style":be(t,i[1],Fr(r,!0),n);break}break;case"width":ys(t,th(r.getChildren(),!1),n);break;case"style":ys(t,Xm(r.getChildren(),!0),n);break}break;case"padding":i.length===1?ys(t,th(r.getChildren(),!0),n):be(t,i[1],Mn(r,!0),n);break}break}}return t}var nh=class{constructor(){this.data={}}add(e,t,n){let r=this.data[e];r||(r={nodes:[],names:[]},this.data[e]=r),r.names.push(t),n&&r.nodes.push(n)}},rh=class Wr{static entries(t,n,r,i,s){const a=new Wr(n,r,i);return t.acceptVisitor(a),a.completeValidations(),a.getEntries(s)}constructor(t,n,r){this.cssDataManager=r,this.warnings=[],this.settings=n,this.documentText=t.getText(),this.keyframes=new nh,this.validProperties={};const i=n.getSetting(qm.ValidProperties);Array.isArray(i)&&i.forEach(s=>{if(typeof s=="string"){const a=s.trim().toLowerCase();a.length&&(this.validProperties[a]=!0)}})}isValidPropertyDeclaration(t){const n=t.fullPropertyName;return this.validProperties[n]}fetch(t,n){const r=[];for(const i of t)i.fullPropertyName===n&&r.push(i);return r}fetchWithValue(t,n,r){const i=[];for(const s of t)if(s.fullPropertyName===n){const a=s.node.getValue();a&&this.findValueInExpression(a,r)&&i.push(s)}return i}findValueInExpression(t,n){let r=!1;return t.accept(i=>(i.type===b.Identifier&&i.matches(n)&&(r=!0),!r)),r}getEntries(t=Re.Warning|Re.Error){return this.warnings.filter(n=>(n.getLevel()&t)!==0)}addEntry(t,n,r){const i=new Rl(t,n,this.settings.getRule(n),r);this.warnings.push(i)}getMissingNames(t,n){const r=t.slice(0);for(let s=0;s<n.length;s++){const a=r.indexOf(n[s]);a!==-1&&(r[a]=null)}let i=null;for(let s=0;s<r.length;s++){const a=r[s];a&&(i===null?i=g("'{0}'",a):i=g("{0}, '{1}'",i,a))}return i}visitNode(t){switch(t.type){case b.UnknownAtRule:return this.visitUnknownAtRule(t);case b.Keyframe:return this.visitKeyframe(t);case b.FontFace:return this.visitFontFace(t);case b.Ruleset:return this.visitRuleSet(t);case b.SimpleSelector:return this.visitSimpleSelector(t);case b.Function:return this.visitFunction(t);case b.NumericValue:return this.visitNumericValue(t);case b.Import:return this.visitImport(t);case b.HexColorValue:return this.visitHexColorValue(t);case b.Prio:return this.visitPrio(t);case b.IdentifierSelector:return this.visitIdentifierSelector(t)}return!0}completeValidations(){this.validateKeyframes()}visitUnknownAtRule(t){const n=t.getChild(0);return!n||this.cssDataManager.getAtDirective(n.getText())?!1:(this.addEntry(n,te.UnknownAtRules,\`Unknown at rule \${n.getText()}\`),!0)}visitKeyframe(t){const n=t.getKeyword();if(!n)return!1;const r=n.getText();return this.keyframes.add(t.getName(),r,r!=="@keyframes"?n:null),!0}validateKeyframes(){const t=["@-webkit-keyframes","@-moz-keyframes","@-o-keyframes"];for(const n in this.keyframes.data){const r=this.keyframes.data[n].names,i=r.indexOf("@keyframes")===-1;if(!i&&r.length===1)continue;const s=this.getMissingNames(t,r);if(s||i)for(const a of this.keyframes.data[n].nodes){if(i){const l=g("Always define standard rule '@keyframes' when defining keyframes.");this.addEntry(a,te.IncludeStandardPropertyWhenUsingVendorPrefix,l)}if(s){const l=g("Always include all vendor specific rules: Missing: {0}",s);this.addEntry(a,te.AllVendorPrefixes,l)}}}return!0}visitSimpleSelector(t){const n=this.documentText.charAt(t.offset);return t.length===1&&n==="*"&&this.addEntry(t,te.UniversalSelector),!0}visitIdentifierSelector(t){return this.addEntry(t,te.AvoidIdSelector),!0}visitImport(t){return this.addEntry(t,te.ImportStatemement),!0}visitRuleSet(t){const n=t.getDeclarations();if(!n)return!1;n.hasChildren()||this.addEntry(t.getSelectors(),te.EmptyRuleSet);const r=[];for(const o of n.getChildren())o instanceof qe&&r.push(new Gm(o));const i=Qm(r);if(i.width){let o=[];if(i.right.value&&(o=Cr(o,i.right.properties)),i.left.value&&(o=Cr(o,i.left.properties)),o.length!==0){for(const c of o)this.addEntry(c.node,te.BewareOfBoxModelSize);this.addEntry(i.width.node,te.BewareOfBoxModelSize)}}if(i.height){let o=[];if(i.top.value&&(o=Cr(o,i.top.properties)),i.bottom.value&&(o=Cr(o,i.bottom.properties)),o.length!==0){for(const c of o)this.addEntry(c.node,te.BewareOfBoxModelSize);this.addEntry(i.height.node,te.BewareOfBoxModelSize)}}let s=this.fetchWithValue(r,"display","inline-block");if(s.length>0){const o=this.fetch(r,"float");for(let c=0;c<o.length;c++){const d=o[c].node,u=d.getValue();u&&!u.matches("none")&&this.addEntry(d,te.PropertyIgnoredDueToDisplay,g("inline-block is ignored due to the float. If 'float' has a value other than 'none', the box is floated and 'display' is treated as 'block'"))}}if(s=this.fetchWithValue(r,"display","block"),s.length>0){const o=this.fetch(r,"vertical-align");for(let c=0;c<o.length;c++)this.addEntry(o[c].node,te.PropertyIgnoredDueToDisplay,g("Property is ignored due to the display. With 'display: block', vertical-align should not be used."))}const a=this.fetch(r,"float");for(let o=0;o<a.length;o++){const c=a[o];this.isValidPropertyDeclaration(c)||this.addEntry(c.node,te.AvoidFloat)}for(let o=0;o<r.length;o++){const c=r[o];if(c.fullPropertyName!=="background"&&!this.validProperties[c.fullPropertyName]){const d=c.node.getValue();if(d&&this.documentText.charAt(d.offset)!=="-"){const u=this.fetch(r,c.fullPropertyName);if(u.length>1)for(let f=0;f<u.length;f++){const m=u[f].node.getValue();m&&this.documentText.charAt(m.offset)!=="-"&&u[f]!==c&&this.addEntry(c.node,te.DuplicateDeclarations)}}}}if(!t.getSelectors().matches(":export")){const o=new nh;let c=!1;for(const d of r){const u=d.node;if(this.isCSSDeclaration(u)){let f=d.fullPropertyName;const m=f.charAt(0);if(m==="-"){if(f.charAt(1)!=="-"){!this.cssDataManager.isKnownProperty(f)&&!this.validProperties[f]&&this.addEntry(u.getProperty(),te.UnknownVendorSpecificProperty);const v=u.getNonPrefixedPropertyName();o.add(v,f,u.getProperty())}}else{const v=f;(m==="*"||m==="_")&&(this.addEntry(u.getProperty(),te.IEStarHack),f=f.substr(1)),!this.cssDataManager.isKnownProperty(v)&&!this.cssDataManager.isKnownProperty(f)&&(this.validProperties[f]||this.addEntry(u.getProperty(),te.UnknownProperty,g("Unknown property: '{0}'",u.getFullPropertyName()))),o.add(f,f,null)}}else c=!0}if(!c)for(const d in o.data){const u=o.data[d],f=u.names,m=this.cssDataManager.isStandardProperty(d)&&f.indexOf(d)===-1;if(!m&&f.length===1)continue;const v=new Set(m?u.nodes:[]);if(m){const R=this.getContextualVendorSpecificPseudoElements(t);for(const I of u.nodes){const N=I.getName(),E=N.substring(0,N.length-d.length);R.some(F=>F.startsWith(E))&&v.delete(I)}}const w=[];for(let R=0,I=Wr.prefixes.length;R<I;R++){const N=Wr.prefixes[R];this.cssDataManager.isStandardProperty(N+d)&&w.push(N+d)}const k=this.getMissingNames(w,f);if(k||m)for(const R of u.nodes){if(m&&v.has(R)){const I=g("Also define the standard property '{0}' for compatibility",d);this.addEntry(R,te.IncludeStandardPropertyWhenUsingVendorPrefix,I)}if(k){const I=g("Always include all vendor specific properties: Missing: {0}",k);this.addEntry(R,te.AllVendorPrefixes,I)}}}}return!0}getContextualVendorSpecificPseudoElements(t){function n(s,a){for(const l of a.getChildren()){if(l.type===b.PseudoSelector){const o=l.getChildren()[0]?.getText();o&&s.add(o)}n(s,l)}}function r(s,a){if(a.type===b.Ruleset)for(const l of a.getSelectors().getChildren())n(s,l);return a.parent?r(s,a.parent):void 0}const i=new Set;return r(i,t),Array.from(i)}visitPrio(t){return this.addEntry(t,te.AvoidImportant),!0}visitNumericValue(t){const n=t.findParent(b.Function);if(n&&n.getName()==="calc")return!0;const r=t.findParent(b.Declaration);if(r&&r.getValue()){const s=t.getValue();if(!s.unit||Bc.length.indexOf(s.unit.toLowerCase())===-1)return!0;parseFloat(s.value)===0&&s.unit&&!this.validProperties[r.getFullPropertyName()]&&this.addEntry(t,te.ZeroWithUnit)}return!0}visitFontFace(t){const n=t.getDeclarations();if(!n)return!1;let r=!1,i=!1,s=!1;for(const a of n.getChildren())if(this.isCSSDeclaration(a)){const l=a.getProperty().getName().toLowerCase();l==="src"&&(r=!0),l==="font-family"&&(i=!0)}else s=!0;return!s&&(!r||!i)&&this.addEntry(t,te.RequiredPropertiesForFontFace),!0}isCSSDeclaration(t){if(t instanceof qe){if(!t.getValue())return!1;const n=t.getProperty();if(!n)return!1;const r=n.getIdentifier();return!(!r||r.containsInterpolation())}return!1}visitHexColorValue(t){const n=t.length;return n!==9&&n!==7&&n!==5&&n!==4&&this.addEntry(t,te.HexColorLength),!1}visitFunction(t){const n=t.getName().toLowerCase();let r=-1,i=0;switch(n){case"rgb(":case"hsl(":r=3;break;case"rgba(":case"hsla(":r=4;break}return r!==-1&&(t.getArguments().accept(s=>s instanceof Ui?(i+=1,!1):!0),i!==r&&this.addEntry(t,te.ArgsInColorFunction)),!0}};rh.prefixes=["-ms-","-moz-","-o-","-webkit-"];var Ss=class{constructor(e){this.cssDataManager=e}configure(e){this.settings=e}doValidation(e,t,n=this.settings){if(n&&n.validate===!1)return[];const r=[];r.push.apply(r,nm.entries(t)),r.push.apply(r,rh.entries(t,e,new jm(n&&n.lint),this.cssDataManager));const i=[];for(const a in te)i.push(te[a].id);function s(a){const l=X.create(e.positionAt(a.getOffset()),e.positionAt(a.getOffset()+a.getLength())),o=e.languageId;return{code:a.getRule().id,source:o,message:a.getMessage(),severity:a.getLevel()===Re.Warning?ur.Warning:ur.Error,range:l}}return r.filter(a=>a.getLevel()!==Re.Ignore).map(s)}},ih=47,Km=10,Zm=13,ef=12,tf=36,nf=35,rf=123,Ln=61,sf=33,af=60,of=62,Cs=46,at=p.CustomToken,_s=at++,Rr=at++;at++;var sh=at++,ah=at++,ks=at++,Es=at++,Nr=at++;at++;var oh=class extends Sn{scanNext(e){if(this.stream.advanceIfChar(tf)){const t=["$"];if(this.ident(t))return this.finishToken(e,_s,t.join(""));this.stream.goBackTo(e)}return this.stream.advanceIfChars([nf,rf])?this.finishToken(e,Rr):this.stream.advanceIfChars([Ln,Ln])?this.finishToken(e,sh):this.stream.advanceIfChars([sf,Ln])?this.finishToken(e,ah):this.stream.advanceIfChar(af)?this.stream.advanceIfChar(Ln)?this.finishToken(e,Es):this.finishToken(e,p.Delim):this.stream.advanceIfChar(of)?this.stream.advanceIfChar(Ln)?this.finishToken(e,ks):this.finishToken(e,p.Delim):this.stream.advanceIfChars([Cs,Cs,Cs])?this.finishToken(e,Nr):super.scanNext(e)}comment(){return super.comment()?!0:!this.inURL&&this.stream.advanceIfChars([ih,ih])?(this.stream.advanceWhileChar(e=>{switch(e){case Km:case Zm:case ef:return!1;default:return!0}}),!0):!1}},Fs=class{constructor(e,t){this.id=e,this.message=t}},Rs={FromExpected:new Fs("scss-fromexpected",g("'from' expected")),ThroughOrToExpected:new Fs("scss-throughexpected",g("'through' or 'to' expected")),InExpected:new Fs("scss-fromexpected",g("'in' expected"))},lf=class extends Sr{constructor(){super(new oh)}_parseStylesheetStatement(e=!1){return this.peek(p.AtKeyword)?this._parseWarnAndDebug()||this._parseControlStatement()||this._parseMixinDeclaration()||this._parseMixinContent()||this._parseMixinReference()||this._parseFunctionDeclaration()||this._parseForward()||this._parseUse()||this._parseRuleset(e)||super._parseStylesheetAtStatement(e):this._parseRuleset(!0)||this._parseVariableDeclaration()}_parseImport(){if(!this.peekKeyword("@import"))return null;const e=this.create(Ti);if(this.consumeToken(),!e.addChild(this._parseURILiteral())&&!e.addChild(this._parseStringLiteral()))return this.finish(e,y.URIOrStringExpected);for(;this.accept(p.Comma);)if(!e.addChild(this._parseURILiteral())&&!e.addChild(this._parseStringLiteral()))return this.finish(e,y.URIOrStringExpected);return this._completeParseImport(e)}_parseVariableDeclaration(e=[]){if(!this.peek(_s))return null;const t=this.create(cr);if(!t.setVariable(this._parseVariable()))return null;if(!this.accept(p.Colon))return this.finish(t,y.ColonExpected);if(this.prevToken&&(t.colonPosition=this.prevToken.offset),!t.setValue(this._parseExpr()))return this.finish(t,y.VariableValueExpected,[],e);for(;this.peek(p.Exclamation);)if(!t.addChild(this._tryParsePrio())){if(this.consumeToken(),!this.peekRegExp(p.Ident,/^(default|global)$/))return this.finish(t,y.UnknownKeyword);this.consumeToken()}return this.peek(p.SemiColon)&&(t.semicolonPosition=this.token.offset),this.finish(t)}_parseMediaCondition(){return this._parseInterpolation()||super._parseMediaCondition()}_parseMediaFeatureRangeOperator(){return this.accept(Es)||this.accept(ks)||super._parseMediaFeatureRangeOperator()}_parseMediaFeatureName(){return this._parseModuleMember()||this._parseFunction()||this._parseIdent()||this._parseVariable()}_parseKeyframeSelector(){return this._tryParseKeyframeSelector()||this._parseControlStatement(this._parseKeyframeSelector.bind(this))||this._parseWarnAndDebug()||this._parseMixinReference()||this._parseFunctionDeclaration()||this._parseVariableDeclaration()||this._parseMixinContent()}_parseVariable(){if(!this.peek(_s))return null;const e=this.create(qi);return this.consumeToken(),e}_parseModuleMember(){const e=this.mark(),t=this.create(Fl);return t.setIdentifier(this._parseIdent([J.Module]))?this.hasWhitespace()||!this.acceptDelim(".")||this.hasWhitespace()?(this.restoreAtMark(e),null):t.addChild(this._parseVariable()||this._parseFunction())?t:this.finish(t,y.IdentifierOrVariableExpected):null}_parseIdent(e){if(!this.peek(p.Ident)&&!this.peek(Rr)&&!this.peekDelim("-"))return null;const t=this.create(Me);t.referenceTypes=e,t.isCustomProperty=this.peekRegExp(p.Ident,/^--/);let n=!1;const r=()=>{const i=this.mark();return this.acceptDelim("-")&&(this.hasWhitespace()||this.acceptDelim("-"),this.hasWhitespace())?(this.restoreAtMark(i),null):this._parseInterpolation()};for(;(this.accept(p.Ident)||t.addChild(r())||n&&this.acceptRegexp(/^[\\w-]/))&&(n=!0,!this.hasWhitespace()););return n?this.finish(t):null}_parseTermExpression(){return this._parseModuleMember()||this._parseVariable()||this._parseNestingSelector()||super._parseTermExpression()}_parseInterpolation(){if(this.peek(Rr)){const e=this.create(Bi);return this.consumeToken(),!e.addChild(this._parseExpr())&&!this._parseNestingSelector()?this.accept(p.CurlyR)?this.finish(e):this.finish(e,y.ExpressionExpected):this.accept(p.CurlyR)?this.finish(e):this.finish(e,y.RightCurlyExpected)}return null}_parseOperator(){if(this.peek(sh)||this.peek(ah)||this.peek(ks)||this.peek(Es)||this.peekDelim(">")||this.peekDelim("<")||this.peekIdent("and")||this.peekIdent("or")||this.peekDelim("%")){const e=this.createNode(b.Operator);return this.consumeToken(),this.finish(e)}return super._parseOperator()}_parseUnaryOperator(){if(this.peekIdent("not")){const e=this.create(O);return this.consumeToken(),this.finish(e)}return super._parseUnaryOperator()}_parseRuleSetDeclaration(){return this.peek(p.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)||this._parseLayer()||this._parsePropertyAtRule()||this._parseContainer(!0)||this._parseRuleSetDeclarationAtStatement():this._parseVariableDeclaration()||this._tryParseRuleset(!0)||this._parseDeclaration()}_parseDeclaration(e){const t=this._tryParseCustomPropertyDeclaration(e);if(t)return t;const n=this.create(qe);if(!n.setProperty(this._parseProperty()))return null;if(!this.accept(p.Colon))return this.finish(n,y.ColonExpected,[p.Colon],e||[p.SemiColon]);this.prevToken&&(n.colonPosition=this.prevToken.offset);let r=!1;if(n.setValue(this._parseExpr())&&(r=!0,n.addChild(this._parsePrio())),this.peek(p.CurlyL))n.setNestedProperties(this._parseNestedProperties());else if(!r)return this.finish(n,y.PropertyValueExpected);return this.peek(p.SemiColon)&&(n.semicolonPosition=this.token.offset),this.finish(n)}_parseNestedProperties(){const e=this.create(yl);return this._parseBody(e,this._parseDeclaration.bind(this))}_parseExtends(){if(this.peekKeyword("@extend")){const e=this.create(En);if(this.consumeToken(),!e.getSelectors().addChild(this._parseSimpleSelector()))return this.finish(e,y.SelectorExpected);for(;this.accept(p.Comma);)e.getSelectors().addChild(this._parseSimpleSelector());return this.accept(p.Exclamation)&&!this.acceptIdent("optional")?this.finish(e,y.UnknownKeyword):this.finish(e)}return null}_parseSimpleSelectorBody(){return this._parseSelectorPlaceholder()||super._parseSimpleSelectorBody()}_parseNestingSelector(){if(this.peekDelim("&")){const e=this.createNode(b.SelectorCombinator);for(this.consumeToken();!this.hasWhitespace()&&(this.acceptDelim("-")||this.accept(p.Num)||this.accept(p.Dimension)||e.addChild(this._parseIdent())||this.acceptDelim("&")););return this.finish(e)}return null}_parseSelectorPlaceholder(){if(this.peekDelim("%")){const e=this.createNode(b.SelectorPlaceholder);return this.consumeToken(),this._parseIdent(),this.finish(e)}else if(this.peekKeyword("@at-root")){const e=this.createNode(b.SelectorPlaceholder);if(this.consumeToken(),this.accept(p.ParenthesisL)){if(!this.acceptIdent("with")&&!this.acceptIdent("without"))return this.finish(e,y.IdentifierExpected);if(!this.accept(p.Colon))return this.finish(e,y.ColonExpected);if(!e.addChild(this._parseIdent()))return this.finish(e,y.IdentifierExpected);if(!this.accept(p.ParenthesisR))return this.finish(e,y.RightParenthesisExpected,[p.CurlyR])}return this.finish(e)}return null}_parseElementName(){const e=this.mark(),t=super._parseElementName();return t&&!this.hasWhitespace()&&this.peek(p.ParenthesisL)?(this.restoreAtMark(e),null):t}_tryParsePseudoIdentifier(){return this._parseInterpolation()||super._tryParsePseudoIdentifier()}_parseWarnAndDebug(){if(!this.peekKeyword("@debug")&&!this.peekKeyword("@warn")&&!this.peekKeyword("@error"))return null;const e=this.createNode(b.Debug);return this.consumeToken(),e.addChild(this._parseExpr()),this.finish(e)}_parseControlStatement(e=this._parseRuleSetDeclaration.bind(this)){return this.peek(p.AtKeyword)?this._parseIfStatement(e)||this._parseForStatement(e)||this._parseEachStatement(e)||this._parseWhileStatement(e):null}_parseIfStatement(e){return this.peekKeyword("@if")?this._internalParseIfStatement(e):null}_internalParseIfStatement(e){const t=this.create(Ep);if(this.consumeToken(),!t.setExpression(this._parseExpr(!0)))return this.finish(t,y.ExpressionExpected);if(this._parseBody(t,e),this.acceptKeyword("@else")){if(this.peekIdent("if"))t.setElseClause(this._internalParseIfStatement(e));else if(this.peek(p.CurlyL)){const n=this.create(Dp);this._parseBody(n,e),t.setElseClause(n)}}return this.finish(t)}_parseForStatement(e){if(!this.peekKeyword("@for"))return null;const t=this.create(Fp);return this.consumeToken(),t.setVariable(this._parseVariable())?this.acceptIdent("from")?t.addChild(this._parseBinaryExpr())?!this.acceptIdent("to")&&!this.acceptIdent("through")?this.finish(t,Rs.ThroughOrToExpected,[p.CurlyR]):t.addChild(this._parseBinaryExpr())?this._parseBody(t,e):this.finish(t,y.ExpressionExpected,[p.CurlyR]):this.finish(t,y.ExpressionExpected,[p.CurlyR]):this.finish(t,Rs.FromExpected,[p.CurlyR]):this.finish(t,y.VariableNameExpected,[p.CurlyR])}_parseEachStatement(e){if(!this.peekKeyword("@each"))return null;const t=this.create(Rp);this.consumeToken();const n=t.getVariables();if(!n.addChild(this._parseVariable()))return this.finish(t,y.VariableNameExpected,[p.CurlyR]);for(;this.accept(p.Comma);)if(!n.addChild(this._parseVariable()))return this.finish(t,y.VariableNameExpected,[p.CurlyR]);return this.finish(n),this.acceptIdent("in")?t.addChild(this._parseExpr())?this._parseBody(t,e):this.finish(t,y.ExpressionExpected,[p.CurlyR]):this.finish(t,Rs.InExpected,[p.CurlyR])}_parseWhileStatement(e){if(!this.peekKeyword("@while"))return null;const t=this.create(Np);return this.consumeToken(),t.addChild(this._parseBinaryExpr())?this._parseBody(t,e):this.finish(t,y.ExpressionExpected,[p.CurlyR])}_parseFunctionBodyDeclaration(){return this._parseVariableDeclaration()||this._parseReturnStatement()||this._parseWarnAndDebug()||this._parseControlStatement(this._parseFunctionBodyDeclaration.bind(this))}_parseFunctionDeclaration(){if(!this.peekKeyword("@function"))return null;const e=this.create(lr);if(this.consumeToken(),!e.setIdentifier(this._parseIdent([J.Function])))return this.finish(e,y.IdentifierExpected,[p.CurlyR]);if(!this.accept(p.ParenthesisL))return this.finish(e,y.LeftParenthesisExpected,[p.CurlyR]);if(e.getParameters().addChild(this._parseParameterDeclaration())){for(;this.accept(p.Comma)&&!this.peek(p.ParenthesisR);)if(!e.getParameters().addChild(this._parseParameterDeclaration()))return this.finish(e,y.VariableNameExpected)}return this.accept(p.ParenthesisR)?this._parseBody(e,this._parseFunctionBodyDeclaration.bind(this)):this.finish(e,y.RightParenthesisExpected,[p.CurlyR])}_parseReturnStatement(){if(!this.peekKeyword("@return"))return null;const e=this.createNode(b.ReturnStatement);return this.consumeToken(),e.addChild(this._parseExpr())?this.finish(e):this.finish(e,y.ExpressionExpected)}_parseMixinDeclaration(){if(!this.peekKeyword("@mixin"))return null;const e=this.create(Fn);if(this.consumeToken(),!e.setIdentifier(this._parseIdent([J.Mixin])))return this.finish(e,y.IdentifierExpected,[p.CurlyR]);if(this.accept(p.ParenthesisL)){if(e.getParameters().addChild(this._parseParameterDeclaration())){for(;this.accept(p.Comma)&&!this.peek(p.ParenthesisR);)if(!e.getParameters().addChild(this._parseParameterDeclaration()))return this.finish(e,y.VariableNameExpected)}if(!this.accept(p.ParenthesisR))return this.finish(e,y.RightParenthesisExpected,[p.CurlyR])}return this._parseBody(e,this._parseRuleSetDeclaration.bind(this))}_parseParameterDeclaration(){const e=this.create(or);return e.setIdentifier(this._parseVariable())?(this.accept(Nr),this.accept(p.Colon)&&!e.setDefaultValue(this._parseExpr(!0))?this.finish(e,y.VariableValueExpected,[],[p.Comma,p.ParenthesisR]):this.finish(e)):null}_parseMixinContent(){if(!this.peekKeyword("@content"))return null;const e=this.create(Qp);if(this.consumeToken(),this.accept(p.ParenthesisL)){if(e.getArguments().addChild(this._parseFunctionArgument())){for(;this.accept(p.Comma)&&!this.peek(p.ParenthesisR);)if(!e.getArguments().addChild(this._parseFunctionArgument()))return this.finish(e,y.ExpressionExpected)}if(!this.accept(p.ParenthesisR))return this.finish(e,y.RightParenthesisExpected)}return this.finish(e)}_parseMixinReference(){if(!this.peekKeyword("@include"))return null;const e=this.create(hr);this.consumeToken();const t=this._parseIdent([J.Mixin]);if(!e.setIdentifier(t))return this.finish(e,y.IdentifierExpected,[p.CurlyR]);if(!this.hasWhitespace()&&this.acceptDelim(".")&&!this.hasWhitespace()){const n=this._parseIdent([J.Mixin]);if(!n)return this.finish(e,y.IdentifierExpected,[p.CurlyR]);const r=this.create(Fl);t.referenceTypes=[J.Module],r.setIdentifier(t),e.setIdentifier(n),e.addChild(r)}if(this.accept(p.ParenthesisL)){if(e.getArguments().addChild(this._parseFunctionArgument())){for(;this.accept(p.Comma)&&!this.peek(p.ParenthesisR);)if(!e.getArguments().addChild(this._parseFunctionArgument()))return this.finish(e,y.ExpressionExpected)}if(!this.accept(p.ParenthesisR))return this.finish(e,y.RightParenthesisExpected)}return(this.peekIdent("using")||this.peek(p.CurlyL))&&e.setContent(this._parseMixinContentDeclaration()),this.finish(e)}_parseMixinContentDeclaration(){const e=this.create(Kp);if(this.acceptIdent("using")){if(!this.accept(p.ParenthesisL))return this.finish(e,y.LeftParenthesisExpected,[p.CurlyL]);if(e.getParameters().addChild(this._parseParameterDeclaration())){for(;this.accept(p.Comma)&&!this.peek(p.ParenthesisR);)if(!e.getParameters().addChild(this._parseParameterDeclaration()))return this.finish(e,y.VariableNameExpected)}if(!this.accept(p.ParenthesisR))return this.finish(e,y.RightParenthesisExpected,[p.CurlyL])}return this.peek(p.CurlyL)&&this._parseBody(e,this._parseMixinReferenceBodyStatement.bind(this)),this.finish(e)}_parseMixinReferenceBodyStatement(){return this._tryParseKeyframeSelector()||this._parseRuleSetDeclaration()}_parseFunctionArgument(){const e=this.create(Xt),t=this.mark(),n=this._parseVariable();if(n)if(this.accept(p.Colon))e.setIdentifier(n);else{if(this.accept(Nr))return e.setValue(n),this.finish(e);this.restoreAtMark(t)}return e.setValue(this._parseExpr(!0))?(this.accept(Nr),e.addChild(this._parsePrio()),this.finish(e)):e.setValue(this._tryParsePrio())?this.finish(e):null}_parseURLArgument(){const e=this.mark(),t=super._parseURLArgument();if(!t||!this.peek(p.ParenthesisR)){this.restoreAtMark(e);const n=this.create(O);return n.addChild(this._parseBinaryExpr()),this.finish(n)}return t}_parseOperation(){if(!this.peek(p.ParenthesisL))return null;const e=this.create(O);for(this.consumeToken();e.addChild(this._parseListElement());)this.accept(p.Comma);return this.accept(p.ParenthesisR)?this.finish(e):this.finish(e,y.RightParenthesisExpected)}_parseListElement(){const e=this.create(Zp),t=this._parseBinaryExpr();if(!t)return null;if(this.accept(p.Colon)){if(e.setKey(t),!e.setValue(this._parseBinaryExpr()))return this.finish(e,y.ExpressionExpected)}else e.setValue(t);return this.finish(e)}_parseUse(){if(!this.peekKeyword("@use"))return null;const e=this.create(Ap);if(this.consumeToken(),!e.addChild(this._parseStringLiteral()))return this.finish(e,y.StringLiteralExpected);if(!this.peek(p.SemiColon)&&!this.peek(p.EOF)){if(!this.peekRegExp(p.Ident,/as|with/))return this.finish(e,y.UnknownKeyword);if(this.acceptIdent("as")&&!e.setIdentifier(this._parseIdent([J.Module]))&&!this.acceptDelim("*"))return this.finish(e,y.IdentifierOrWildcardExpected);if(this.acceptIdent("with")){if(!this.accept(p.ParenthesisL))return this.finish(e,y.LeftParenthesisExpected,[p.ParenthesisR]);if(!e.getParameters().addChild(this._parseModuleConfigDeclaration()))return this.finish(e,y.VariableNameExpected);for(;this.accept(p.Comma)&&!this.peek(p.ParenthesisR);)if(!e.getParameters().addChild(this._parseModuleConfigDeclaration()))return this.finish(e,y.VariableNameExpected);if(!this.accept(p.ParenthesisR))return this.finish(e,y.RightParenthesisExpected)}}return!this.accept(p.SemiColon)&&!this.accept(p.EOF)?this.finish(e,y.SemiColonExpected):this.finish(e)}_parseModuleConfigDeclaration(){const e=this.create(Mp);return e.setIdentifier(this._parseVariable())?!this.accept(p.Colon)||!e.setValue(this._parseExpr(!0))?this.finish(e,y.VariableValueExpected,[],[p.Comma,p.ParenthesisR]):this.accept(p.Exclamation)&&(this.hasWhitespace()||!this.acceptIdent("default"))?this.finish(e,y.UnknownKeyword):this.finish(e):null}_parseForward(){if(!this.peekKeyword("@forward"))return null;const e=this.create(Lp);if(this.consumeToken(),!e.addChild(this._parseStringLiteral()))return this.finish(e,y.StringLiteralExpected);if(this.acceptIdent("as")){const t=this._parseIdent([J.Forward]);if(!e.setIdentifier(t))return this.finish(e,y.IdentifierExpected);if(this.hasWhitespace()||!this.acceptDelim("*"))return this.finish(e,y.WildcardExpected)}if(this.acceptIdent("with")){if(!this.accept(p.ParenthesisL))return this.finish(e,y.LeftParenthesisExpected,[p.ParenthesisR]);if(!e.getParameters().addChild(this._parseModuleConfigDeclaration()))return this.finish(e,y.VariableNameExpected);for(;this.accept(p.Comma)&&!this.peek(p.ParenthesisR);)if(!e.getParameters().addChild(this._parseModuleConfigDeclaration()))return this.finish(e,y.VariableNameExpected);if(!this.accept(p.ParenthesisR))return this.finish(e,y.RightParenthesisExpected)}else if((this.peekIdent("hide")||this.peekIdent("show"))&&!e.addChild(this._parseForwardVisibility()))return this.finish(e,y.IdentifierOrVariableExpected);return!this.accept(p.SemiColon)&&!this.accept(p.EOF)?this.finish(e,y.SemiColonExpected):this.finish(e)}_parseForwardVisibility(){const e=this.create(zp);for(e.setIdentifier(this._parseIdent());e.addChild(this._parseVariable()||this._parseIdent());)this.accept(p.Comma);return e.getChildren().length>1?e:null}_parseSupportsCondition(){return this._parseInterpolation()||super._parseSupportsCondition()}},ot=g("Sass documentation"),yt=class Je extends us{constructor(t,n){super("$",t,n),lh(Je.scssModuleLoaders),lh(Je.scssModuleBuiltIns)}isImportPathParent(t){return t===b.Forward||t===b.Use||super.isImportPathParent(t)}getCompletionForImportPath(t,n){const r=t.getParent().type;if(r===b.Forward||r===b.Use)for(let i of Je.scssModuleBuiltIns){const s={label:i.label,documentation:i.documentation,textEdit:$.replace(this.getCompletionRange(t),\`'\${i.label}'\`),kind:V.Module};n.items.push(s)}return super.getCompletionForImportPath(t,n)}createReplaceFunction(){let t=1;return(n,r)=>"\\\\"+r+": \${"+t+++":"+(Je.variableDefaults[r]||"")+"}"}createFunctionProposals(t,n,r,i){for(const s of t){const a=s.func.replace(/\\[?(\\$\\w+)\\]?/g,this.createReplaceFunction()),o={label:s.func.substr(0,s.func.indexOf("(")),detail:s.func,documentation:s.desc,textEdit:$.replace(this.getCompletionRange(n),a),insertTextFormat:Ne.Snippet,kind:V.Function};r&&(o.sortText="z"),i.items.push(o)}return i}getCompletionsForSelector(t,n,r){return this.createFunctionProposals(Je.selectorFuncs,null,!0,r),super.getCompletionsForSelector(t,n,r)}getTermProposals(t,n,r){let i=Je.builtInFuncs;return t&&(i=i.filter(s=>!s.type||!t.restrictions||t.restrictions.indexOf(s.type)!==-1)),this.createFunctionProposals(i,n,!0,r),super.getTermProposals(t,n,r)}getColorProposals(t,n,r){return this.createFunctionProposals(Je.colorProposals,n,!1,r),super.getColorProposals(t,n,r)}getCompletionsForDeclarationProperty(t,n){return this.getCompletionForAtDirectives(n),this.getCompletionsForSelector(null,!0,n),super.getCompletionsForDeclarationProperty(t,n)}getCompletionsForExtendsReference(t,n,r){const i=this.getSymbolContext().findSymbolsAtOffset(this.offset,J.Rule);for(const s of i){const a={label:s.name,textEdit:$.replace(this.getCompletionRange(n),s.name),kind:V.Function};r.items.push(a)}return r}getCompletionForAtDirectives(t){return t.items.push(...Je.scssAtDirectives),t}getCompletionForTopLevel(t){return this.getCompletionForAtDirectives(t),this.getCompletionForModuleLoaders(t),super.getCompletionForTopLevel(t),t}getCompletionForModuleLoaders(t){return t.items.push(...Je.scssModuleLoaders),t}};yt.variableDefaults={$red:"1",$green:"2",$blue:"3",$alpha:"1.0",$color:"#000000",$weight:"0.5",$hue:"0",$saturation:"0%",$lightness:"0%",$degrees:"0",$amount:"0",$string:'""',$substring:'"s"',$number:"0",$limit:"1"},yt.colorProposals=[{func:"red($color)",desc:g("Gets the red component of a color.")},{func:"green($color)",desc:g("Gets the green component of a color.")},{func:"blue($color)",desc:g("Gets the blue component of a color.")},{func:"mix($color, $color, [$weight])",desc:g("Mixes two colors together.")},{func:"hue($color)",desc:g("Gets the hue component of a color.")},{func:"saturation($color)",desc:g("Gets the saturation component of a color.")},{func:"lightness($color)",desc:g("Gets the lightness component of a color.")},{func:"adjust-hue($color, $degrees)",desc:g("Changes the hue of a color.")},{func:"lighten($color, $amount)",desc:g("Makes a color lighter.")},{func:"darken($color, $amount)",desc:g("Makes a color darker.")},{func:"saturate($color, $amount)",desc:g("Makes a color more saturated.")},{func:"desaturate($color, $amount)",desc:g("Makes a color less saturated.")},{func:"grayscale($color)",desc:g("Converts a color to grayscale.")},{func:"complement($color)",desc:g("Returns the complement of a color.")},{func:"invert($color)",desc:g("Returns the inverse of a color.")},{func:"alpha($color)",desc:g("Gets the opacity component of a color.")},{func:"opacity($color)",desc:"Gets the alpha component (opacity) of a color."},{func:"rgba($color, $alpha)",desc:g("Changes the alpha component for a color.")},{func:"opacify($color, $amount)",desc:g("Makes a color more opaque.")},{func:"fade-in($color, $amount)",desc:g("Makes a color more opaque.")},{func:"transparentize($color, $amount)",desc:g("Makes a color more transparent.")},{func:"fade-out($color, $amount)",desc:g("Makes a color more transparent.")},{func:"adjust-color($color, [$red], [$green], [$blue], [$hue], [$saturation], [$lightness], [$alpha])",desc:g("Increases or decreases one or more components of a color.")},{func:"scale-color($color, [$red], [$green], [$blue], [$saturation], [$lightness], [$alpha])",desc:g("Fluidly scales one or more properties of a color.")},{func:"change-color($color, [$red], [$green], [$blue], [$hue], [$saturation], [$lightness], [$alpha])",desc:g("Changes one or more properties of a color.")},{func:"ie-hex-str($color)",desc:g("Converts a color into the format understood by IE filters.")}],yt.selectorFuncs=[{func:"selector-nest($selectors…)",desc:g("Nests selector beneath one another like they would be nested in the stylesheet.")},{func:"selector-append($selectors…)",desc:g("Appends selectors to one another without spaces in between.")},{func:"selector-extend($selector, $extendee, $extender)",desc:g("Extends $extendee with $extender within $selector.")},{func:"selector-replace($selector, $original, $replacement)",desc:g("Replaces $original with $replacement within $selector.")},{func:"selector-unify($selector1, $selector2)",desc:g("Unifies two selectors to produce a selector that matches elements matched by both.")},{func:"is-superselector($super, $sub)",desc:g("Returns whether $super matches all the elements $sub does, and possibly more.")},{func:"simple-selectors($selector)",desc:g("Returns the simple selectors that comprise a compound selector.")},{func:"selector-parse($selector)",desc:g("Parses a selector into the format returned by &.")}],yt.builtInFuncs=[{func:"unquote($string)",desc:g("Removes quotes from a string.")},{func:"quote($string)",desc:g("Adds quotes to a string.")},{func:"str-length($string)",desc:g("Returns the number of characters in a string.")},{func:"str-insert($string, $insert, $index)",desc:g("Inserts $insert into $string at $index.")},{func:"str-index($string, $substring)",desc:g("Returns the index of the first occurance of $substring in $string.")},{func:"str-slice($string, $start-at, [$end-at])",desc:g("Extracts a substring from $string.")},{func:"to-upper-case($string)",desc:g("Converts a string to upper case.")},{func:"to-lower-case($string)",desc:g("Converts a string to lower case.")},{func:"percentage($number)",desc:g("Converts a unitless number to a percentage."),type:"percentage"},{func:"round($number)",desc:g("Rounds a number to the nearest whole number.")},{func:"ceil($number)",desc:g("Rounds a number up to the next whole number.")},{func:"floor($number)",desc:g("Rounds a number down to the previous whole number.")},{func:"abs($number)",desc:g("Returns the absolute value of a number.")},{func:"min($numbers)",desc:g("Finds the minimum of several numbers.")},{func:"max($numbers)",desc:g("Finds the maximum of several numbers.")},{func:"random([$limit])",desc:g("Returns a random number.")},{func:"length($list)",desc:g("Returns the length of a list.")},{func:"nth($list, $n)",desc:g("Returns a specific item in a list.")},{func:"set-nth($list, $n, $value)",desc:g("Replaces the nth item in a list.")},{func:"join($list1, $list2, [$separator])",desc:g("Joins together two lists into one.")},{func:"append($list1, $val, [$separator])",desc:g("Appends a single value onto the end of a list.")},{func:"zip($lists)",desc:g("Combines several lists into a single multidimensional list.")},{func:"index($list, $value)",desc:g("Returns the position of a value within a list.")},{func:"list-separator(#list)",desc:g("Returns the separator of a list.")},{func:"map-get($map, $key)",desc:g("Returns the value in a map associated with a given key.")},{func:"map-merge($map1, $map2)",desc:g("Merges two maps together into a new map.")},{func:"map-remove($map, $keys)",desc:g("Returns a new map with keys removed.")},{func:"map-keys($map)",desc:g("Returns a list of all keys in a map.")},{func:"map-values($map)",desc:g("Returns a list of all values in a map.")},{func:"map-has-key($map, $key)",desc:g("Returns whether a map has a value associated with a given key.")},{func:"keywords($args)",desc:g("Returns the keywords passed to a function that takes variable arguments.")},{func:"feature-exists($feature)",desc:g("Returns whether a feature exists in the current Sass runtime.")},{func:"variable-exists($name)",desc:g("Returns whether a variable with the given name exists in the current scope.")},{func:"global-variable-exists($name)",desc:g("Returns whether a variable with the given name exists in the global scope.")},{func:"function-exists($name)",desc:g("Returns whether a function with the given name exists.")},{func:"mixin-exists($name)",desc:g("Returns whether a mixin with the given name exists.")},{func:"inspect($value)",desc:g("Returns the string representation of a value as it would be represented in Sass.")},{func:"type-of($value)",desc:g("Returns the type of a value.")},{func:"unit($number)",desc:g("Returns the unit(s) associated with a number.")},{func:"unitless($number)",desc:g("Returns whether a number has units.")},{func:"comparable($number1, $number2)",desc:g("Returns whether two numbers can be added, subtracted, or compared.")},{func:"call($name, $args…)",desc:g("Dynamically calls a Sass function.")}],yt.scssAtDirectives=[{label:"@extend",documentation:g("Inherits the styles of another selector."),kind:V.Keyword},{label:"@at-root",documentation:g("Causes one or more rules to be emitted at the root of the document."),kind:V.Keyword},{label:"@debug",documentation:g("Prints the value of an expression to the standard error output stream. Useful for debugging complicated Sass files."),kind:V.Keyword},{label:"@warn",documentation:g("Prints the value of an expression to the standard error output stream. Useful for libraries that need to warn users of deprecations or recovering from minor mixin usage mistakes. Warnings can be turned off with the \`--quiet\` command-line option or the \`:quiet\` Sass option."),kind:V.Keyword},{label:"@error",documentation:g("Throws the value of an expression as a fatal error with stack trace. Useful for validating arguments to mixins and functions."),kind:V.Keyword},{label:"@if",documentation:g("Includes the body if the expression does not evaluate to \`false\` or \`null\`."),insertText:\`@if \\\${1:expr} {
41
+ \`),[{language:"html",value:n}]}doPrint(e,t){for(const n of e)this.doPrintElement(n,t),n.children&&this.doPrint(n.children,t+1)}writeLine(e,t){const n=new Array(e+1).join(" ");this.result.push(n+t)}doPrintElement(e,t){const n=e.findAttribute("name");if(e instanceof fs||n==="…"){this.writeLine(t,n);return}const r=["<"];if(n?r.push(n):r.push("element"),e.attributes){for(const i of e.attributes)if(i.name!=="name"){r.push(" "),r.push(i.name);const s=i.value;s&&(r.push("="),r.push(it.ensure(s,this.quote)))}}r.push(">"),this.writeLine(t,r.join(""))}},it;(function(e){function t(r,i){return i+n(r)+i}e.ensure=t;function n(r){const i=r.match(/^['"](.*)["']$/);return i?i[1]:r}e.remove=n})(it||(it={}));var gs=class{constructor(){this.id=0,this.attr=0,this.tag=0}};function Xc(e,t){let n=new ms;for(const r of e.getChildren())switch(r.type){case b.SelectorCombinator:if(t){const l=r.getText().split("&");if(l.length===1){n.addAttr("name",l[0]);break}n=t.cloneWithParent(),l[0]&&n.findRoot().prepend(l[0]);for(let o=1;o<l.length;o++){if(o>1){const c=t.cloneWithParent();n.addChild(c.findRoot()),n=c}n.append(l[o])}}break;case b.SelectorPlaceholder:if(r.matches("@at-root"))return n;case b.ElementNameSelector:const i=r.getText();n.addAttr("name",i==="*"?"element":ze(i));break;case b.ClassSelector:n.addAttr("class",ze(r.getText().substring(1)));break;case b.IdentifierSelector:n.addAttr("id",ze(r.getText().substring(1)));break;case b.MixinDeclaration:n.addAttr("class",r.getName());break;case b.PseudoSelector:n.addAttr(ze(r.getText()),"");break;case b.AttributeSelector:const s=r,a=s.getIdentifier();if(a){const l=s.getValue(),o=s.getOperator();let c;if(l&&o)switch(ze(o.getText())){case"|=":c=\`\${it.remove(ze(l.getText()))}-…\`;break;case"^=":c=\`\${it.remove(ze(l.getText()))}…\`;break;case"$=":c=\`…\${it.remove(ze(l.getText()))}\`;break;case"~=":c=\` … \${it.remove(ze(l.getText()))} … \`;break;case"*=":c=\`…\${it.remove(ze(l.getText()))}…\`;break;default:c=it.remove(ze(l.getText()));break}n.addAttr(ze(a.getText()),c)}break}return n}function ze(e){const t=new Sn;t.setSource(e);const n=t.scanUnquotedString();return n?n.text:e}var Tm=class{constructor(e){this.cssDataManager=e}selectorToMarkedString(e,t){const n=Um(e);if(n){const r=new Jc('"').print(n,t);return r.push(this.selectorToSpecificityMarkedString(e)),r}else return[]}simpleSelectorToMarkedString(e){const t=Xc(e),n=new Jc('"').print(t);return n.push(this.selectorToSpecificityMarkedString(e)),n}isPseudoElementIdentifier(e){const t=e.match(/^::?([\\w-]+)/);return t?!!this.cssDataManager.getPseudoElement("::"+t[1]):!1}selectorToSpecificityMarkedString(e){const t=i=>{const s=new gs;let a=new gs;for(const l of i)for(const o of l.getChildren()){const c=n(o);if(c.id>a.id){a=c;continue}else if(c.id<a.id)continue;if(c.attr>a.attr){a=c;continue}else if(c.attr<a.attr)continue;if(c.tag>a.tag){a=c;continue}}return s.id+=a.id,s.attr+=a.attr,s.tag+=a.tag,s},n=i=>{const s=new gs;e:for(const a of i.getChildren()){switch(a.type){case b.IdentifierSelector:s.id++;break;case b.ClassSelector:case b.AttributeSelector:s.attr++;break;case b.ElementNameSelector:if(a.matches("*"))break;s.tag++;break;case b.PseudoSelector:const l=a.getText(),o=a.getChildren();if(this.isPseudoElementIdentifier(l)){if(l.match(/^::slotted/i)&&o.length>0){s.tag++;let c=t(o);s.id+=c.id,s.attr+=c.attr,s.tag+=c.tag;continue e}s.tag++;continue e}if(l.match(/^:where/i))continue e;if(l.match(/^:(?:not|has|is)/i)&&o.length>0){let c=t(o);s.id+=c.id,s.attr+=c.attr,s.tag+=c.tag;continue e}if(l.match(/^:(?:host|host-context)/i)&&o.length>0){s.attr++;let c=t(o);s.id+=c.id,s.attr+=c.attr,s.tag+=c.tag;continue e}if(l.match(/^:(?:nth-child|nth-last-child)/i)&&o.length>0){if(s.attr++,o.length===3&&o[1].type===23){let m=t(o[2].getChildren());s.id+=m.id,s.attr+=m.attr,s.tag+=m.tag;continue e}const c=new Cr,d=o[1].getText();c.scanner.setSource(d);const u=c.scanner.scan(),f=c.scanner.scan();if(u.text==="n"||u.text==="-n"&&f.text==="of"){const m=[],w=d.slice(f.offset+2).split(",");for(const R of w){const I=c.internalParse(R,c._parseSelector);I&&m.push(I)}let k=t(m);s.id+=k.id,s.attr+=k.attr,s.tag+=k.tag;continue e}continue e}s.attr++;continue e}if(a.getChildren().length>0){const l=n(a);s.id+=l.id,s.attr+=l.attr,s.tag+=l.tag}}return s},r=n(e);return\`[\${g("Selector Specificity")}](https://developer.mozilla.org/docs/Web/CSS/Specificity): (\${r.id}, \${r.attr}, \${r.tag})\`}},Om=class{constructor(e){this.prev=null,this.element=e}processSelector(e){let t=null;if(!(this.element instanceof en)&&e.getChildren().some(n=>n.hasChildren()&&n.getChild(0).type===b.SelectorCombinator)){const n=this.element.findRoot();n.parent instanceof en&&(t=this.element,this.element=n.parent,this.element.removeChild(n),this.prev=null)}for(const n of e.getChildren()){if(n instanceof Jt){if(this.prev instanceof Jt){const s=new fs("…");this.element.addChild(s),this.element=s}else this.prev&&(this.prev.matches("+")||this.prev.matches("~"))&&this.element.parent&&(this.element=this.element.parent);this.prev&&this.prev.matches("~")&&this.element.addChild(new fs("⋮"));const r=Xc(n,t),i=r.findRoot();this.element.addChild(i),this.element=r}(n instanceof Jt||n.type===b.SelectorCombinatorParent||n.type===b.SelectorCombinatorShadowPiercingDescendant||n.type===b.SelectorCombinatorSibling||n.type===b.SelectorCombinatorAllSiblings)&&(this.prev=n)}}};function Wm(e){switch(e.type){case b.MixinDeclaration:case b.Stylesheet:return!0}return!1}function Um(e){if(e.matches("@at-root"))return null;const t=new en,n=[],r=e.getParent();if(r instanceof Et){let s=r.getParent();for(;s&&!Wm(s);){if(s instanceof Et){if(s.getSelectors().matches("@at-root"))break;n.push(s)}s=s.getParent()}}const i=new Om(t);for(let s=n.length-1;s>=0;s--){const a=n[s].getSelectors().getChild(0);a&&i.processSelector(a)}return i.processSelector(e),t}var bs=class{constructor(e,t){this.clientCapabilities=e,this.cssDataManager=t,this.selectorPrinting=new Tm(t)}configure(e){this.defaultSettings=e}doHover(e,t,n,r=this.defaultSettings){function i(c){return X.create(e.positionAt(c.offset),e.positionAt(c.end))}const s=e.offsetAt(t),a=Mi(n,s);let l=null,o;for(let c=0;c<a.length;c++){const d=a[c];if(d instanceof Oi){const u=/@media[^\\{]+/g;o={isMedia:!0,text:d.getText().match(u)?.[0]}}if(d instanceof Cn){l={contents:this.selectorPrinting.selectorToMarkedString(d,o),range:i(d)};break}if(d instanceof Jt){pe(d.getText(),"@")||(l={contents:this.selectorPrinting.simpleSelectorToMarkedString(d),range:i(d)});break}if(d instanceof qe){const u=d.getFullPropertyName(),f=this.cssDataManager.getProperty(u);if(f){const m=bt(f,this.doesSupportMarkdown(),r);m?l={contents:m,range:i(d)}:l=null}continue}if(d instanceof El){const u=d.getText(),f=this.cssDataManager.getAtDirective(u);if(f){const m=bt(f,this.doesSupportMarkdown(),r);m?l={contents:m,range:i(d)}:l=null}continue}if(d instanceof O&&d.type===b.PseudoSelector){const u=d.getText(),f=u.slice(0,2)==="::"?this.cssDataManager.getPseudoElement(u):this.cssDataManager.getPseudoClass(u);if(f){const m=bt(f,this.doesSupportMarkdown(),r);m?l={contents:m,range:i(d)}:l=null}continue}}return l&&(l.contents=this.convertContents(l.contents)),l}convertContents(e){return this.doesSupportMarkdown()||typeof e=="string"?e:"kind"in e?{kind:"plaintext",value:e.value}:Array.isArray(e)?e.map(t=>typeof t=="string"?t:t.value):e.value}doesSupportMarkdown(){if(!Le(this.supportsMarkdown)){if(!Le(this.clientCapabilities))return this.supportsMarkdown=!0,this.supportsMarkdown;const e=this.clientCapabilities.textDocument&&this.clientCapabilities.textDocument.hover;this.supportsMarkdown=e&&e.contentFormat&&Array.isArray(e.contentFormat)&&e.contentFormat.indexOf(je.Markdown)!==-1}return this.supportsMarkdown}},Yc=/^\\w+:\\/\\//,Qc=/^data:/,vs=class{constructor(e,t){this.fileSystemProvider=e,this.resolveModuleReferences=t}configure(e){this.defaultSettings=e}findDefinition(e,t,n){const r=new ls(n),i=e.offsetAt(t),s=Ai(n,i);if(!s)return null;const a=r.findSymbolFromNode(s);return a?{uri:e.uri,range:st(a.node,e)}:null}findReferences(e,t,n){return this.findDocumentHighlights(e,t,n).map(i=>({uri:e.uri,range:i.range}))}getHighlightNode(e,t,n){const r=e.offsetAt(t);let i=Ai(n,r);if(!(!i||i.type===b.Stylesheet||i.type===b.Declarations))return i.type===b.Identifier&&i.parent&&i.parent.type===b.ClassSelector&&(i=i.parent),i}findDocumentHighlights(e,t,n){const r=[],i=this.getHighlightNode(e,t,n);if(!i)return r;const s=new ls(n),a=s.findSymbolFromNode(i),l=i.getText();return n.accept(o=>{if(a){if(s.matchesSymbol(o,a))return r.push({kind:Zc(o),range:st(o,e)}),!1}else i&&i.type===o.type&&o.matches(l)&&r.push({kind:Zc(o),range:st(o,e)});return!0}),r}isRawStringDocumentLinkNode(e){return e.type===b.Import}findDocumentLinks(e,t,n){const r=this.findUnresolvedLinks(e,t),i=[];for(let s of r){const a=s.link,l=a.target;if(!(!l||Qc.test(l)))if(Yc.test(l))i.push(a);else{const o=n.resolveReference(l,e.uri);o&&(a.target=o),i.push(a)}}return i}async findDocumentLinks2(e,t,n){const r=this.findUnresolvedLinks(e,t),i=[];for(let s of r){const a=s.link,l=a.target;if(!(!l||Qc.test(l)))if(Yc.test(l))i.push(a);else{const o=await this.resolveReference(l,e.uri,n,s.isRawLink);o!==void 0&&(a.target=o,i.push(a))}}return i}findUnresolvedLinks(e,t){const n=[],r=i=>{let s=i.getText();const a=st(i,e);if(a.start.line===a.end.line&&a.start.character===a.end.character)return;(pe(s,"'")||pe(s,'"'))&&(s=s.slice(1,-1));const l=i.parent?this.isRawStringDocumentLinkNode(i.parent):!1;n.push({link:{target:s,range:a},isRawLink:l})};return t.accept(i=>{if(i.type===b.URILiteral){const s=i.getChild(0);return s&&r(s),!1}if(i.parent&&this.isRawStringDocumentLinkNode(i.parent)){const s=i.getText();return(pe(s,"'")||pe(s,'"'))&&r(i),!1}return!0}),n}findSymbolInformations(e,t){const n=[],r=(i,s,a)=>{const l=a instanceof O?st(a,e):a,o={name:i||g("<undefined>"),kind:s,location:Rn.create(e.uri,l)};n.push(o)};return this.collectDocumentSymbols(e,t,r),n}findDocumentSymbols(e,t){const n=[],r=[],i=(s,a,l,o,c)=>{const d=l instanceof O?st(l,e):l;let u=o instanceof O?st(o,e):o;(!u||!Kc(d,u))&&(u=X.create(d.start,d.start));const f={name:s||g("<undefined>"),kind:a,range:d,selectionRange:u};let m=r.pop();for(;m&&!Kc(m[1],d);)m=r.pop();if(m){const v=m[0];v.children||(v.children=[]),v.children.push(f),r.push(m)}else n.push(f);c&&r.push([f,st(c,e)])};return this.collectDocumentSymbols(e,t,i),n}collectDocumentSymbols(e,t,n){t.accept(r=>{if(r instanceof Et){for(const i of r.getSelectors().getChildren())if(i instanceof Cn){const s=X.create(e.positionAt(i.offset),e.positionAt(r.end));n(i.getText(),nt.Class,s,i,r.getDeclarations())}}else if(r instanceof hr)n(r.getName(),nt.Variable,r,r.getVariable(),void 0);else if(r instanceof Fn)n(r.getName(),nt.Method,r,r.getIdentifier(),r.getDeclarations());else if(r instanceof cr)n(r.getName(),nt.Function,r,r.getIdentifier(),r.getDeclarations());else if(r instanceof xl){const i=g("@keyframes {0}",r.getName());n(i,nt.Class,r,r.getIdentifier(),r.getDeclarations())}else if(r instanceof wl){const i=g("@font-face");n(i,nt.Class,r,void 0,r.getDeclarations())}else if(r instanceof Oi){const i=r.getChild(0);if(i instanceof Cl){const s="@media "+i.getText();n(s,nt.Module,r,i,r.getDeclarations())}}return!0})}findDocumentColors(e,t){const n=[];return t.accept(r=>{const i=Vm(r,e);return i&&n.push(i),!0}),n}getColorPresentations(e,t,n,r){const i=[],s=Math.round(n.red*255),a=Math.round(n.green*255),l=Math.round(n.blue*255);let o;n.alpha===1?o=\`rgb(\${s}, \${a}, \${l})\`:o=\`rgba(\${s}, \${a}, \${l}, \${n.alpha})\`,i.push({label:o,textEdit:$.replace(r,o)}),n.alpha===1?o=\`#\${Nt(s)}\${Nt(a)}\${Nt(l)}\`:o=\`#\${Nt(s)}\${Nt(a)}\${Nt(l)}\${Nt(Math.round(n.alpha*255))}\`,i.push({label:o,textEdit:$.replace(r,o)});const c=Ac(n);c.a===1?o=\`hsl(\${c.h}, \${Math.round(c.s*100)}%, \${Math.round(c.l*100)}%)\`:o=\`hsla(\${c.h}, \${Math.round(c.s*100)}%, \${Math.round(c.l*100)}%, \${c.a})\`,i.push({label:o,textEdit:$.replace(r,o)});const d=wm(n);return d.a===1?o=\`hwb(\${d.h} \${Math.round(d.w*100)}% \${Math.round(d.b*100)}%)\`:o=\`hwb(\${d.h} \${Math.round(d.w*100)}% \${Math.round(d.b*100)}% / \${d.a})\`,i.push({label:o,textEdit:$.replace(r,o)}),i}prepareRename(e,t,n){const r=this.getHighlightNode(e,t,n);if(r)return X.create(e.positionAt(r.offset),e.positionAt(r.end))}doRename(e,t,n,r){const s=this.findDocumentHighlights(e,t,r).map(a=>$.replace(a.range,n));return{changes:{[e.uri]:s}}}async resolveModuleReference(e,t,n){if(pe(t,"file://")){const r=$m(e);if(r&&r!=="."&&r!==".."){const i=n.resolveReference("/",t),s=hs(t),a=await this.resolvePathToModule(r,s,i);if(a){const l=e.substring(r.length+1);return Kt(a,l)}}}}async mapReference(e,t){return e}async resolveReference(e,t,n,r=!1,i=this.defaultSettings){if(e[0]==="~"&&e[1]!=="/"&&this.fileSystemProvider)return e=e.substring(1),this.mapReference(await this.resolveModuleReference(e,t,n),r);const s=await this.mapReference(n.resolveReference(e,t),r);if(this.resolveModuleReferences){if(s&&await this.fileExists(s))return s;const a=await this.mapReference(await this.resolveModuleReference(e,t,n),r);if(a)return a}if(s&&!await this.fileExists(s)){const a=n.resolveReference("/",t);if(i&&a){if(e in i)return this.mapReference(Kt(a,i[e]),r);const l=e.indexOf("/"),o=\`\${e.substring(0,l)}/\`;if(o in i){const c=i[o].slice(0,-1);let d=Kt(a,c);return this.mapReference(d=Kt(d,e.substring(o.length-1)),r)}}}return s}async resolvePathToModule(e,t,n){const r=Kt(t,"node_modules",e,"package.json");if(await this.fileExists(r))return hs(r);if(n&&t.startsWith(n)&&t.length!==n.length)return this.resolvePathToModule(e,hs(t),n)}async fileExists(e){if(!this.fileSystemProvider)return!1;try{const t=await this.fileSystemProvider.stat(e);return!(t.type===Dn.Unknown&&t.size===-1)}catch{return!1}}};function Vm(e,t){const n=ym(e);if(n){const r=st(e,t);return{color:n,range:r}}return null}function st(e,t){return X.create(t.positionAt(e.offset),t.positionAt(e.end))}function Kc(e,t){const n=t.start.line,r=t.end.line,i=e.start.line,s=e.end.line;return!(n<i||r<i||n>s||r>s||n===i&&t.start.character<e.start.character||r===s&&t.end.character>e.end.character)}function Zc(e){if(e.type===b.Selector||e instanceof Me&&e.parent&&e.parent instanceof Pi&&e.isCustomProperty)return Qt.Write;if(e.parent)switch(e.parent.type){case b.FunctionDeclaration:case b.MixinDeclaration:case b.Keyframe:case b.VariableDeclaration:case b.FunctionParameter:return Qt.Write}return Qt.Read}function Nt(e){const t=e.toString(16);return t.length!==2?"0"+t:t}function $m(e){const t=e.indexOf("/");if(t===-1)return"";if(e[0]==="@"){const n=e.indexOf("/",t+1);return n===-1?e:e.substring(0,n)}return e.substring(0,t)}var tn=Re.Warning,eh=Re.Error,Oe=Re.Ignore,fe=class{constructor(e,t,n){this.id=e,this.message=t,this.defaultValue=n}},Bm=class{constructor(e,t,n){this.id=e,this.message=t,this.defaultValue=n}},te={AllVendorPrefixes:new fe("compatibleVendorPrefixes",g("When using a vendor-specific prefix make sure to also include all other vendor-specific properties"),Oe),IncludeStandardPropertyWhenUsingVendorPrefix:new fe("vendorPrefix",g("When using a vendor-specific prefix also include the standard property"),tn),DuplicateDeclarations:new fe("duplicateProperties",g("Do not use duplicate style definitions"),Oe),EmptyRuleSet:new fe("emptyRules",g("Do not use empty rulesets"),tn),ImportStatemement:new fe("importStatement",g("Import statements do not load in parallel"),Oe),BewareOfBoxModelSize:new fe("boxModel",g("Do not use width or height when using padding or border"),Oe),UniversalSelector:new fe("universalSelector",g("The universal selector (*) is known to be slow"),Oe),ZeroWithUnit:new fe("zeroUnits",g("No unit for zero needed"),Oe),RequiredPropertiesForFontFace:new fe("fontFaceProperties",g("@font-face rule must define 'src' and 'font-family' properties"),tn),HexColorLength:new fe("hexColorLength",g("Hex colors must consist of three, four, six or eight hex numbers"),eh),ArgsInColorFunction:new fe("argumentsInColorFunction",g("Invalid number of parameters"),eh),UnknownProperty:new fe("unknownProperties",g("Unknown property."),tn),UnknownAtRules:new fe("unknownAtRules",g("Unknown at-rule."),tn),IEStarHack:new fe("ieHack",g("IE hacks are only necessary when supporting IE7 and older"),Oe),UnknownVendorSpecificProperty:new fe("unknownVendorSpecificProperties",g("Unknown vendor specific property."),Oe),PropertyIgnoredDueToDisplay:new fe("propertyIgnoredDueToDisplay",g("Property is ignored due to the display."),tn),AvoidImportant:new fe("important",g("Avoid using !important. It is an indication that the specificity of the entire CSS has gotten out of control and needs to be refactored."),Oe),AvoidFloat:new fe("float",g("Avoid using 'float'. Floats lead to fragile CSS that is easy to break if one aspect of the layout changes."),Oe),AvoidIdSelector:new fe("idSelector",g("Selectors should not contain IDs because these rules are too tightly coupled with the HTML."),Oe)},qm={ValidProperties:new Bm("validProperties",g("A list of properties that are not validated against the \`unknownProperties\` rule."),[])},jm=class{constructor(e={}){this.conf=e}getRule(e){if(this.conf.hasOwnProperty(e.id)){const t=Hm(this.conf[e.id]);if(t)return t}return e.defaultValue}getSetting(e){return this.conf[e.id]}};function Hm(e){switch(e){case"ignore":return Re.Ignore;case"warning":return Re.Warning;case"error":return Re.Error}return null}var ws=class{constructor(e){this.cssDataManager=e}doCodeActions(e,t,n,r){return this.doCodeActions2(e,t,n,r).map(i=>{const s=i.edit&&i.edit.documentChanges&&i.edit.documentChanges[0];return Ft.create(i.title,"_css.applyCodeAction",e.uri,e.version,s&&s.edits)})}doCodeActions2(e,t,n,r){const i=[];if(n.diagnostics)for(const s of n.diagnostics)this.appendFixesForMarker(e,r,s,i);return i}getFixesForUnknownProperty(e,t,n,r){const i=t.getName(),s=[];this.cssDataManager.getProperties().forEach(l=>{const o=vp(i,l.name);o>=i.length/2&&s.push({property:l.name,score:o})}),s.sort((l,o)=>o.score-l.score||l.property.localeCompare(o.property));let a=3;for(const l of s){const o=l.property,c=g("Rename to '{0}'",o),d=$.replace(n.range,o),u=Zi.create(e.uri,e.version),f={documentChanges:[fr.create(u,[d])]},m=ns.create(c,f,ts.QuickFix);if(m.diagnostics=[n],r.push(m),--a<=0)return}}appendFixesForMarker(e,t,n,r){if(n.code!==te.UnknownProperty.id)return;const i=e.offsetAt(n.range.start),s=e.offsetAt(n.range.end),a=Mi(t,i);for(let l=a.length-1;l>=0;l--){const o=a[l];if(o instanceof qe){const c=o.getProperty();if(c&&c.offset===i&&c.end===s){this.getFixesForUnknownProperty(e,c,n,r);return}}}}},Gm=class{constructor(e){this.fullPropertyName=e.getFullPropertyName().toLowerCase(),this.node=e}};function An(e,t,n,r){const i=e[t];i.value=n,n&&(qc(i.properties,r)||i.properties.push(r))}function Jm(e,t,n){An(e,"top",t,n),An(e,"right",t,n),An(e,"bottom",t,n),An(e,"left",t,n)}function be(e,t,n,r){t==="top"||t==="right"||t==="bottom"||t==="left"?An(e,t,n,r):Jm(e,n,r)}function ys(e,t,n){switch(t.length){case 1:be(e,void 0,t[0],n);break;case 2:be(e,"top",t[0],n),be(e,"bottom",t[0],n),be(e,"right",t[1],n),be(e,"left",t[1],n);break;case 3:be(e,"top",t[0],n),be(e,"right",t[1],n),be(e,"left",t[1],n),be(e,"bottom",t[2],n);break;case 4:be(e,"top",t[0],n),be(e,"right",t[1],n),be(e,"bottom",t[2],n),be(e,"left",t[3],n);break}}function xs(e,t){for(let n of t)if(e.matches(n))return!0;return!1}function Mn(e,t=!0){return t&&xs(e,["initial","unset"])?!1:parseFloat(e.getText())!==0}function th(e,t=!0){return e.map(n=>Mn(n,t))}function Rr(e,t=!0){return!(xs(e,["none","hidden"])||t&&xs(e,["initial","unset"]))}function Xm(e,t=!0){return e.map(n=>Rr(n,t))}function Ym(e){const t=e.getChildren();if(t.length===1){const n=t[0];return Mn(n)&&Rr(n)}for(const n of t){const r=n;if(!Mn(r,!1)||!Rr(r,!1))return!1}return!0}function Qm(e){const t={top:{value:!1,properties:[]},right:{value:!1,properties:[]},bottom:{value:!1,properties:[]},left:{value:!1,properties:[]}};for(const n of e){const r=n.node.value;if(!(typeof r>"u"))switch(n.fullPropertyName){case"box-sizing":return{top:{value:!1,properties:[]},right:{value:!1,properties:[]},bottom:{value:!1,properties:[]},left:{value:!1,properties:[]}};case"width":t.width=n;break;case"height":t.height=n;break;default:const i=n.fullPropertyName.split("-");switch(i[0]){case"border":switch(i[1]){case void 0:case"top":case"right":case"bottom":case"left":switch(i[2]){case void 0:be(t,i[1],Ym(r),n);break;case"width":be(t,i[1],Mn(r,!1),n);break;case"style":be(t,i[1],Rr(r,!0),n);break}break;case"width":ys(t,th(r.getChildren(),!1),n);break;case"style":ys(t,Xm(r.getChildren(),!0),n);break}break;case"padding":i.length===1?ys(t,th(r.getChildren(),!0),n):be(t,i[1],Mn(r,!0),n);break}break}}return t}var nh=class{constructor(){this.data={}}add(e,t,n){let r=this.data[e];r||(r={nodes:[],names:[]},this.data[e]=r),r.names.push(t),n&&r.nodes.push(n)}},rh=class Ur{static entries(t,n,r,i,s){const a=new Ur(n,r,i);return t.acceptVisitor(a),a.completeValidations(),a.getEntries(s)}constructor(t,n,r){this.cssDataManager=r,this.warnings=[],this.settings=n,this.documentText=t.getText(),this.keyframes=new nh,this.validProperties={};const i=n.getSetting(qm.ValidProperties);Array.isArray(i)&&i.forEach(s=>{if(typeof s=="string"){const a=s.trim().toLowerCase();a.length&&(this.validProperties[a]=!0)}})}isValidPropertyDeclaration(t){const n=t.fullPropertyName;return this.validProperties[n]}fetch(t,n){const r=[];for(const i of t)i.fullPropertyName===n&&r.push(i);return r}fetchWithValue(t,n,r){const i=[];for(const s of t)if(s.fullPropertyName===n){const a=s.node.getValue();a&&this.findValueInExpression(a,r)&&i.push(s)}return i}findValueInExpression(t,n){let r=!1;return t.accept(i=>(i.type===b.Identifier&&i.matches(n)&&(r=!0),!r)),r}getEntries(t=Re.Warning|Re.Error){return this.warnings.filter(n=>(n.getLevel()&t)!==0)}addEntry(t,n,r){const i=new Rl(t,n,this.settings.getRule(n),r);this.warnings.push(i)}getMissingNames(t,n){const r=t.slice(0);for(let s=0;s<n.length;s++){const a=r.indexOf(n[s]);a!==-1&&(r[a]=null)}let i=null;for(let s=0;s<r.length;s++){const a=r[s];a&&(i===null?i=g("'{0}'",a):i=g("{0}, '{1}'",i,a))}return i}visitNode(t){switch(t.type){case b.UnknownAtRule:return this.visitUnknownAtRule(t);case b.Keyframe:return this.visitKeyframe(t);case b.FontFace:return this.visitFontFace(t);case b.Ruleset:return this.visitRuleSet(t);case b.SimpleSelector:return this.visitSimpleSelector(t);case b.Function:return this.visitFunction(t);case b.NumericValue:return this.visitNumericValue(t);case b.Import:return this.visitImport(t);case b.HexColorValue:return this.visitHexColorValue(t);case b.Prio:return this.visitPrio(t);case b.IdentifierSelector:return this.visitIdentifierSelector(t)}return!0}completeValidations(){this.validateKeyframes()}visitUnknownAtRule(t){const n=t.getChild(0);return!n||this.cssDataManager.getAtDirective(n.getText())?!1:(this.addEntry(n,te.UnknownAtRules,\`Unknown at rule \${n.getText()}\`),!0)}visitKeyframe(t){const n=t.getKeyword();if(!n)return!1;const r=n.getText();return this.keyframes.add(t.getName(),r,r!=="@keyframes"?n:null),!0}validateKeyframes(){const t=["@-webkit-keyframes","@-moz-keyframes","@-o-keyframes"];for(const n in this.keyframes.data){const r=this.keyframes.data[n].names,i=r.indexOf("@keyframes")===-1;if(!i&&r.length===1)continue;const s=this.getMissingNames(t,r);if(s||i)for(const a of this.keyframes.data[n].nodes){if(i){const l=g("Always define standard rule '@keyframes' when defining keyframes.");this.addEntry(a,te.IncludeStandardPropertyWhenUsingVendorPrefix,l)}if(s){const l=g("Always include all vendor specific rules: Missing: {0}",s);this.addEntry(a,te.AllVendorPrefixes,l)}}}return!0}visitSimpleSelector(t){const n=this.documentText.charAt(t.offset);return t.length===1&&n==="*"&&this.addEntry(t,te.UniversalSelector),!0}visitIdentifierSelector(t){return this.addEntry(t,te.AvoidIdSelector),!0}visitImport(t){return this.addEntry(t,te.ImportStatemement),!0}visitRuleSet(t){const n=t.getDeclarations();if(!n)return!1;n.hasChildren()||this.addEntry(t.getSelectors(),te.EmptyRuleSet);const r=[];for(const o of n.getChildren())o instanceof qe&&r.push(new Gm(o));const i=Qm(r);if(i.width){let o=[];if(i.right.value&&(o=_r(o,i.right.properties)),i.left.value&&(o=_r(o,i.left.properties)),o.length!==0){for(const c of o)this.addEntry(c.node,te.BewareOfBoxModelSize);this.addEntry(i.width.node,te.BewareOfBoxModelSize)}}if(i.height){let o=[];if(i.top.value&&(o=_r(o,i.top.properties)),i.bottom.value&&(o=_r(o,i.bottom.properties)),o.length!==0){for(const c of o)this.addEntry(c.node,te.BewareOfBoxModelSize);this.addEntry(i.height.node,te.BewareOfBoxModelSize)}}let s=this.fetchWithValue(r,"display","inline-block");if(s.length>0){const o=this.fetch(r,"float");for(let c=0;c<o.length;c++){const d=o[c].node,u=d.getValue();u&&!u.matches("none")&&this.addEntry(d,te.PropertyIgnoredDueToDisplay,g("inline-block is ignored due to the float. If 'float' has a value other than 'none', the box is floated and 'display' is treated as 'block'"))}}if(s=this.fetchWithValue(r,"display","block"),s.length>0){const o=this.fetch(r,"vertical-align");for(let c=0;c<o.length;c++)this.addEntry(o[c].node,te.PropertyIgnoredDueToDisplay,g("Property is ignored due to the display. With 'display: block', vertical-align should not be used."))}const a=this.fetch(r,"float");for(let o=0;o<a.length;o++){const c=a[o];this.isValidPropertyDeclaration(c)||this.addEntry(c.node,te.AvoidFloat)}for(let o=0;o<r.length;o++){const c=r[o];if(c.fullPropertyName!=="background"&&!this.validProperties[c.fullPropertyName]){const d=c.node.getValue();if(d&&this.documentText.charAt(d.offset)!=="-"){const u=this.fetch(r,c.fullPropertyName);if(u.length>1)for(let f=0;f<u.length;f++){const m=u[f].node.getValue();m&&this.documentText.charAt(m.offset)!=="-"&&u[f]!==c&&this.addEntry(c.node,te.DuplicateDeclarations)}}}}if(!t.getSelectors().matches(":export")){const o=new nh;let c=!1;for(const d of r){const u=d.node;if(this.isCSSDeclaration(u)){let f=d.fullPropertyName;const m=f.charAt(0);if(m==="-"){if(f.charAt(1)!=="-"){!this.cssDataManager.isKnownProperty(f)&&!this.validProperties[f]&&this.addEntry(u.getProperty(),te.UnknownVendorSpecificProperty);const v=u.getNonPrefixedPropertyName();o.add(v,f,u.getProperty())}}else{const v=f;(m==="*"||m==="_")&&(this.addEntry(u.getProperty(),te.IEStarHack),f=f.substr(1)),!this.cssDataManager.isKnownProperty(v)&&!this.cssDataManager.isKnownProperty(f)&&(this.validProperties[f]||this.addEntry(u.getProperty(),te.UnknownProperty,g("Unknown property: '{0}'",u.getFullPropertyName()))),o.add(f,f,null)}}else c=!0}if(!c)for(const d in o.data){const u=o.data[d],f=u.names,m=this.cssDataManager.isStandardProperty(d)&&f.indexOf(d)===-1;if(!m&&f.length===1)continue;const v=new Set(m?u.nodes:[]);if(m){const R=this.getContextualVendorSpecificPseudoElements(t);for(const I of u.nodes){const N=I.getName(),E=N.substring(0,N.length-d.length);R.some(F=>F.startsWith(E))&&v.delete(I)}}const w=[];for(let R=0,I=Ur.prefixes.length;R<I;R++){const N=Ur.prefixes[R];this.cssDataManager.isStandardProperty(N+d)&&w.push(N+d)}const k=this.getMissingNames(w,f);if(k||m)for(const R of u.nodes){if(m&&v.has(R)){const I=g("Also define the standard property '{0}' for compatibility",d);this.addEntry(R,te.IncludeStandardPropertyWhenUsingVendorPrefix,I)}if(k){const I=g("Always include all vendor specific properties: Missing: {0}",k);this.addEntry(R,te.AllVendorPrefixes,I)}}}}return!0}getContextualVendorSpecificPseudoElements(t){function n(s,a){for(const l of a.getChildren()){if(l.type===b.PseudoSelector){const o=l.getChildren()[0]?.getText();o&&s.add(o)}n(s,l)}}function r(s,a){if(a.type===b.Ruleset)for(const l of a.getSelectors().getChildren())n(s,l);return a.parent?r(s,a.parent):void 0}const i=new Set;return r(i,t),Array.from(i)}visitPrio(t){return this.addEntry(t,te.AvoidImportant),!0}visitNumericValue(t){const n=t.findParent(b.Function);if(n&&n.getName()==="calc")return!0;const r=t.findParent(b.Declaration);if(r&&r.getValue()){const s=t.getValue();if(!s.unit||Bc.length.indexOf(s.unit.toLowerCase())===-1)return!0;parseFloat(s.value)===0&&s.unit&&!this.validProperties[r.getFullPropertyName()]&&this.addEntry(t,te.ZeroWithUnit)}return!0}visitFontFace(t){const n=t.getDeclarations();if(!n)return!1;let r=!1,i=!1,s=!1;for(const a of n.getChildren())if(this.isCSSDeclaration(a)){const l=a.getProperty().getName().toLowerCase();l==="src"&&(r=!0),l==="font-family"&&(i=!0)}else s=!0;return!s&&(!r||!i)&&this.addEntry(t,te.RequiredPropertiesForFontFace),!0}isCSSDeclaration(t){if(t instanceof qe){if(!t.getValue())return!1;const n=t.getProperty();if(!n)return!1;const r=n.getIdentifier();return!(!r||r.containsInterpolation())}return!1}visitHexColorValue(t){const n=t.length;return n!==9&&n!==7&&n!==5&&n!==4&&this.addEntry(t,te.HexColorLength),!1}visitFunction(t){const n=t.getName().toLowerCase();let r=-1,i=0;switch(n){case"rgb(":case"hsl(":r=3;break;case"rgba(":case"hsla(":r=4;break}return r!==-1&&(t.getArguments().accept(s=>s instanceof Ui?(i+=1,!1):!0),i!==r&&this.addEntry(t,te.ArgsInColorFunction)),!0}};rh.prefixes=["-ms-","-moz-","-o-","-webkit-"];var Ss=class{constructor(e){this.cssDataManager=e}configure(e){this.settings=e}doValidation(e,t,n=this.settings){if(n&&n.validate===!1)return[];const r=[];r.push.apply(r,nm.entries(t)),r.push.apply(r,rh.entries(t,e,new jm(n&&n.lint),this.cssDataManager));const i=[];for(const a in te)i.push(te[a].id);function s(a){const l=X.create(e.positionAt(a.getOffset()),e.positionAt(a.getOffset()+a.getLength())),o=e.languageId;return{code:a.getRule().id,source:o,message:a.getMessage(),severity:a.getLevel()===Re.Warning?pr.Warning:pr.Error,range:l}}return r.filter(a=>a.getLevel()!==Re.Ignore).map(s)}},ih=47,Km=10,Zm=13,ef=12,tf=36,nf=35,rf=123,Ln=61,sf=33,af=60,of=62,Cs=46,at=p.CustomToken,_s=at++,Nr=at++;at++;var sh=at++,ah=at++,ks=at++,Es=at++,Dr=at++;at++;var oh=class extends Sn{scanNext(e){if(this.stream.advanceIfChar(tf)){const t=["$"];if(this.ident(t))return this.finishToken(e,_s,t.join(""));this.stream.goBackTo(e)}return this.stream.advanceIfChars([nf,rf])?this.finishToken(e,Nr):this.stream.advanceIfChars([Ln,Ln])?this.finishToken(e,sh):this.stream.advanceIfChars([sf,Ln])?this.finishToken(e,ah):this.stream.advanceIfChar(af)?this.stream.advanceIfChar(Ln)?this.finishToken(e,Es):this.finishToken(e,p.Delim):this.stream.advanceIfChar(of)?this.stream.advanceIfChar(Ln)?this.finishToken(e,ks):this.finishToken(e,p.Delim):this.stream.advanceIfChars([Cs,Cs,Cs])?this.finishToken(e,Dr):super.scanNext(e)}comment(){return super.comment()?!0:!this.inURL&&this.stream.advanceIfChars([ih,ih])?(this.stream.advanceWhileChar(e=>{switch(e){case Km:case Zm:case ef:return!1;default:return!0}}),!0):!1}},Fs=class{constructor(e,t){this.id=e,this.message=t}},Rs={FromExpected:new Fs("scss-fromexpected",g("'from' expected")),ThroughOrToExpected:new Fs("scss-throughexpected",g("'through' or 'to' expected")),InExpected:new Fs("scss-fromexpected",g("'in' expected"))},lf=class extends Cr{constructor(){super(new oh)}_parseStylesheetStatement(e=!1){return this.peek(p.AtKeyword)?this._parseWarnAndDebug()||this._parseControlStatement()||this._parseMixinDeclaration()||this._parseMixinContent()||this._parseMixinReference()||this._parseFunctionDeclaration()||this._parseForward()||this._parseUse()||this._parseRuleset(e)||super._parseStylesheetAtStatement(e):this._parseRuleset(!0)||this._parseVariableDeclaration()}_parseImport(){if(!this.peekKeyword("@import"))return null;const e=this.create(Ti);if(this.consumeToken(),!e.addChild(this._parseURILiteral())&&!e.addChild(this._parseStringLiteral()))return this.finish(e,y.URIOrStringExpected);for(;this.accept(p.Comma);)if(!e.addChild(this._parseURILiteral())&&!e.addChild(this._parseStringLiteral()))return this.finish(e,y.URIOrStringExpected);return this._completeParseImport(e)}_parseVariableDeclaration(e=[]){if(!this.peek(_s))return null;const t=this.create(hr);if(!t.setVariable(this._parseVariable()))return null;if(!this.accept(p.Colon))return this.finish(t,y.ColonExpected);if(this.prevToken&&(t.colonPosition=this.prevToken.offset),!t.setValue(this._parseExpr()))return this.finish(t,y.VariableValueExpected,[],e);for(;this.peek(p.Exclamation);)if(!t.addChild(this._tryParsePrio())){if(this.consumeToken(),!this.peekRegExp(p.Ident,/^(default|global)$/))return this.finish(t,y.UnknownKeyword);this.consumeToken()}return this.peek(p.SemiColon)&&(t.semicolonPosition=this.token.offset),this.finish(t)}_parseMediaCondition(){return this._parseInterpolation()||super._parseMediaCondition()}_parseMediaFeatureRangeOperator(){return this.accept(Es)||this.accept(ks)||super._parseMediaFeatureRangeOperator()}_parseMediaFeatureName(){return this._parseModuleMember()||this._parseFunction()||this._parseIdent()||this._parseVariable()}_parseKeyframeSelector(){return this._tryParseKeyframeSelector()||this._parseControlStatement(this._parseKeyframeSelector.bind(this))||this._parseWarnAndDebug()||this._parseMixinReference()||this._parseFunctionDeclaration()||this._parseVariableDeclaration()||this._parseMixinContent()}_parseVariable(){if(!this.peek(_s))return null;const e=this.create(qi);return this.consumeToken(),e}_parseModuleMember(){const e=this.mark(),t=this.create(Fl);return t.setIdentifier(this._parseIdent([J.Module]))?this.hasWhitespace()||!this.acceptDelim(".")||this.hasWhitespace()?(this.restoreAtMark(e),null):t.addChild(this._parseVariable()||this._parseFunction())?t:this.finish(t,y.IdentifierOrVariableExpected):null}_parseIdent(e){if(!this.peek(p.Ident)&&!this.peek(Nr)&&!this.peekDelim("-"))return null;const t=this.create(Me);t.referenceTypes=e,t.isCustomProperty=this.peekRegExp(p.Ident,/^--/);let n=!1;const r=()=>{const i=this.mark();return this.acceptDelim("-")&&(this.hasWhitespace()||this.acceptDelim("-"),this.hasWhitespace())?(this.restoreAtMark(i),null):this._parseInterpolation()};for(;(this.accept(p.Ident)||t.addChild(r())||n&&this.acceptRegexp(/^[\\w-]/))&&(n=!0,!this.hasWhitespace()););return n?this.finish(t):null}_parseTermExpression(){return this._parseModuleMember()||this._parseVariable()||this._parseNestingSelector()||super._parseTermExpression()}_parseInterpolation(){if(this.peek(Nr)){const e=this.create(Bi);return this.consumeToken(),!e.addChild(this._parseExpr())&&!this._parseNestingSelector()?this.accept(p.CurlyR)?this.finish(e):this.finish(e,y.ExpressionExpected):this.accept(p.CurlyR)?this.finish(e):this.finish(e,y.RightCurlyExpected)}return null}_parseOperator(){if(this.peek(sh)||this.peek(ah)||this.peek(ks)||this.peek(Es)||this.peekDelim(">")||this.peekDelim("<")||this.peekIdent("and")||this.peekIdent("or")||this.peekDelim("%")){const e=this.createNode(b.Operator);return this.consumeToken(),this.finish(e)}return super._parseOperator()}_parseUnaryOperator(){if(this.peekIdent("not")){const e=this.create(O);return this.consumeToken(),this.finish(e)}return super._parseUnaryOperator()}_parseRuleSetDeclaration(){return this.peek(p.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)||this._parseLayer()||this._parsePropertyAtRule()||this._parseContainer(!0)||this._parseRuleSetDeclarationAtStatement():this._parseVariableDeclaration()||this._tryParseRuleset(!0)||this._parseDeclaration()}_parseDeclaration(e){const t=this._tryParseCustomPropertyDeclaration(e);if(t)return t;const n=this.create(qe);if(!n.setProperty(this._parseProperty()))return null;if(!this.accept(p.Colon))return this.finish(n,y.ColonExpected,[p.Colon],e||[p.SemiColon]);this.prevToken&&(n.colonPosition=this.prevToken.offset);let r=!1;if(n.setValue(this._parseExpr())&&(r=!0,n.addChild(this._parsePrio())),this.peek(p.CurlyL))n.setNestedProperties(this._parseNestedProperties());else if(!r)return this.finish(n,y.PropertyValueExpected);return this.peek(p.SemiColon)&&(n.semicolonPosition=this.token.offset),this.finish(n)}_parseNestedProperties(){const e=this.create(yl);return this._parseBody(e,this._parseDeclaration.bind(this))}_parseExtends(){if(this.peekKeyword("@extend")){const e=this.create(En);if(this.consumeToken(),!e.getSelectors().addChild(this._parseSimpleSelector()))return this.finish(e,y.SelectorExpected);for(;this.accept(p.Comma);)e.getSelectors().addChild(this._parseSimpleSelector());return this.accept(p.Exclamation)&&!this.acceptIdent("optional")?this.finish(e,y.UnknownKeyword):this.finish(e)}return null}_parseSimpleSelectorBody(){return this._parseSelectorPlaceholder()||super._parseSimpleSelectorBody()}_parseNestingSelector(){if(this.peekDelim("&")){const e=this.createNode(b.SelectorCombinator);for(this.consumeToken();!this.hasWhitespace()&&(this.acceptDelim("-")||this.accept(p.Num)||this.accept(p.Dimension)||e.addChild(this._parseIdent())||this.acceptDelim("&")););return this.finish(e)}return null}_parseSelectorPlaceholder(){if(this.peekDelim("%")){const e=this.createNode(b.SelectorPlaceholder);return this.consumeToken(),this._parseIdent(),this.finish(e)}else if(this.peekKeyword("@at-root")){const e=this.createNode(b.SelectorPlaceholder);if(this.consumeToken(),this.accept(p.ParenthesisL)){if(!this.acceptIdent("with")&&!this.acceptIdent("without"))return this.finish(e,y.IdentifierExpected);if(!this.accept(p.Colon))return this.finish(e,y.ColonExpected);if(!e.addChild(this._parseIdent()))return this.finish(e,y.IdentifierExpected);if(!this.accept(p.ParenthesisR))return this.finish(e,y.RightParenthesisExpected,[p.CurlyR])}return this.finish(e)}return null}_parseElementName(){const e=this.mark(),t=super._parseElementName();return t&&!this.hasWhitespace()&&this.peek(p.ParenthesisL)?(this.restoreAtMark(e),null):t}_tryParsePseudoIdentifier(){return this._parseInterpolation()||super._tryParsePseudoIdentifier()}_parseWarnAndDebug(){if(!this.peekKeyword("@debug")&&!this.peekKeyword("@warn")&&!this.peekKeyword("@error"))return null;const e=this.createNode(b.Debug);return this.consumeToken(),e.addChild(this._parseExpr()),this.finish(e)}_parseControlStatement(e=this._parseRuleSetDeclaration.bind(this)){return this.peek(p.AtKeyword)?this._parseIfStatement(e)||this._parseForStatement(e)||this._parseEachStatement(e)||this._parseWhileStatement(e):null}_parseIfStatement(e){return this.peekKeyword("@if")?this._internalParseIfStatement(e):null}_internalParseIfStatement(e){const t=this.create(Ep);if(this.consumeToken(),!t.setExpression(this._parseExpr(!0)))return this.finish(t,y.ExpressionExpected);if(this._parseBody(t,e),this.acceptKeyword("@else")){if(this.peekIdent("if"))t.setElseClause(this._internalParseIfStatement(e));else if(this.peek(p.CurlyL)){const n=this.create(Dp);this._parseBody(n,e),t.setElseClause(n)}}return this.finish(t)}_parseForStatement(e){if(!this.peekKeyword("@for"))return null;const t=this.create(Fp);return this.consumeToken(),t.setVariable(this._parseVariable())?this.acceptIdent("from")?t.addChild(this._parseBinaryExpr())?!this.acceptIdent("to")&&!this.acceptIdent("through")?this.finish(t,Rs.ThroughOrToExpected,[p.CurlyR]):t.addChild(this._parseBinaryExpr())?this._parseBody(t,e):this.finish(t,y.ExpressionExpected,[p.CurlyR]):this.finish(t,y.ExpressionExpected,[p.CurlyR]):this.finish(t,Rs.FromExpected,[p.CurlyR]):this.finish(t,y.VariableNameExpected,[p.CurlyR])}_parseEachStatement(e){if(!this.peekKeyword("@each"))return null;const t=this.create(Rp);this.consumeToken();const n=t.getVariables();if(!n.addChild(this._parseVariable()))return this.finish(t,y.VariableNameExpected,[p.CurlyR]);for(;this.accept(p.Comma);)if(!n.addChild(this._parseVariable()))return this.finish(t,y.VariableNameExpected,[p.CurlyR]);return this.finish(n),this.acceptIdent("in")?t.addChild(this._parseExpr())?this._parseBody(t,e):this.finish(t,y.ExpressionExpected,[p.CurlyR]):this.finish(t,Rs.InExpected,[p.CurlyR])}_parseWhileStatement(e){if(!this.peekKeyword("@while"))return null;const t=this.create(Np);return this.consumeToken(),t.addChild(this._parseBinaryExpr())?this._parseBody(t,e):this.finish(t,y.ExpressionExpected,[p.CurlyR])}_parseFunctionBodyDeclaration(){return this._parseVariableDeclaration()||this._parseReturnStatement()||this._parseWarnAndDebug()||this._parseControlStatement(this._parseFunctionBodyDeclaration.bind(this))}_parseFunctionDeclaration(){if(!this.peekKeyword("@function"))return null;const e=this.create(cr);if(this.consumeToken(),!e.setIdentifier(this._parseIdent([J.Function])))return this.finish(e,y.IdentifierExpected,[p.CurlyR]);if(!this.accept(p.ParenthesisL))return this.finish(e,y.LeftParenthesisExpected,[p.CurlyR]);if(e.getParameters().addChild(this._parseParameterDeclaration())){for(;this.accept(p.Comma)&&!this.peek(p.ParenthesisR);)if(!e.getParameters().addChild(this._parseParameterDeclaration()))return this.finish(e,y.VariableNameExpected)}return this.accept(p.ParenthesisR)?this._parseBody(e,this._parseFunctionBodyDeclaration.bind(this)):this.finish(e,y.RightParenthesisExpected,[p.CurlyR])}_parseReturnStatement(){if(!this.peekKeyword("@return"))return null;const e=this.createNode(b.ReturnStatement);return this.consumeToken(),e.addChild(this._parseExpr())?this.finish(e):this.finish(e,y.ExpressionExpected)}_parseMixinDeclaration(){if(!this.peekKeyword("@mixin"))return null;const e=this.create(Fn);if(this.consumeToken(),!e.setIdentifier(this._parseIdent([J.Mixin])))return this.finish(e,y.IdentifierExpected,[p.CurlyR]);if(this.accept(p.ParenthesisL)){if(e.getParameters().addChild(this._parseParameterDeclaration())){for(;this.accept(p.Comma)&&!this.peek(p.ParenthesisR);)if(!e.getParameters().addChild(this._parseParameterDeclaration()))return this.finish(e,y.VariableNameExpected)}if(!this.accept(p.ParenthesisR))return this.finish(e,y.RightParenthesisExpected,[p.CurlyR])}return this._parseBody(e,this._parseRuleSetDeclaration.bind(this))}_parseParameterDeclaration(){const e=this.create(lr);return e.setIdentifier(this._parseVariable())?(this.accept(Dr),this.accept(p.Colon)&&!e.setDefaultValue(this._parseExpr(!0))?this.finish(e,y.VariableValueExpected,[],[p.Comma,p.ParenthesisR]):this.finish(e)):null}_parseMixinContent(){if(!this.peekKeyword("@content"))return null;const e=this.create(Qp);if(this.consumeToken(),this.accept(p.ParenthesisL)){if(e.getArguments().addChild(this._parseFunctionArgument())){for(;this.accept(p.Comma)&&!this.peek(p.ParenthesisR);)if(!e.getArguments().addChild(this._parseFunctionArgument()))return this.finish(e,y.ExpressionExpected)}if(!this.accept(p.ParenthesisR))return this.finish(e,y.RightParenthesisExpected)}return this.finish(e)}_parseMixinReference(){if(!this.peekKeyword("@include"))return null;const e=this.create(dr);this.consumeToken();const t=this._parseIdent([J.Mixin]);if(!e.setIdentifier(t))return this.finish(e,y.IdentifierExpected,[p.CurlyR]);if(!this.hasWhitespace()&&this.acceptDelim(".")&&!this.hasWhitespace()){const n=this._parseIdent([J.Mixin]);if(!n)return this.finish(e,y.IdentifierExpected,[p.CurlyR]);const r=this.create(Fl);t.referenceTypes=[J.Module],r.setIdentifier(t),e.setIdentifier(n),e.addChild(r)}if(this.accept(p.ParenthesisL)){if(e.getArguments().addChild(this._parseFunctionArgument())){for(;this.accept(p.Comma)&&!this.peek(p.ParenthesisR);)if(!e.getArguments().addChild(this._parseFunctionArgument()))return this.finish(e,y.ExpressionExpected)}if(!this.accept(p.ParenthesisR))return this.finish(e,y.RightParenthesisExpected)}return(this.peekIdent("using")||this.peek(p.CurlyL))&&e.setContent(this._parseMixinContentDeclaration()),this.finish(e)}_parseMixinContentDeclaration(){const e=this.create(Kp);if(this.acceptIdent("using")){if(!this.accept(p.ParenthesisL))return this.finish(e,y.LeftParenthesisExpected,[p.CurlyL]);if(e.getParameters().addChild(this._parseParameterDeclaration())){for(;this.accept(p.Comma)&&!this.peek(p.ParenthesisR);)if(!e.getParameters().addChild(this._parseParameterDeclaration()))return this.finish(e,y.VariableNameExpected)}if(!this.accept(p.ParenthesisR))return this.finish(e,y.RightParenthesisExpected,[p.CurlyL])}return this.peek(p.CurlyL)&&this._parseBody(e,this._parseMixinReferenceBodyStatement.bind(this)),this.finish(e)}_parseMixinReferenceBodyStatement(){return this._tryParseKeyframeSelector()||this._parseRuleSetDeclaration()}_parseFunctionArgument(){const e=this.create(Xt),t=this.mark(),n=this._parseVariable();if(n)if(this.accept(p.Colon))e.setIdentifier(n);else{if(this.accept(Dr))return e.setValue(n),this.finish(e);this.restoreAtMark(t)}return e.setValue(this._parseExpr(!0))?(this.accept(Dr),e.addChild(this._parsePrio()),this.finish(e)):e.setValue(this._tryParsePrio())?this.finish(e):null}_parseURLArgument(){const e=this.mark(),t=super._parseURLArgument();if(!t||!this.peek(p.ParenthesisR)){this.restoreAtMark(e);const n=this.create(O);return n.addChild(this._parseBinaryExpr()),this.finish(n)}return t}_parseOperation(){if(!this.peek(p.ParenthesisL))return null;const e=this.create(O);for(this.consumeToken();e.addChild(this._parseListElement());)this.accept(p.Comma);return this.accept(p.ParenthesisR)?this.finish(e):this.finish(e,y.RightParenthesisExpected)}_parseListElement(){const e=this.create(Zp),t=this._parseBinaryExpr();if(!t)return null;if(this.accept(p.Colon)){if(e.setKey(t),!e.setValue(this._parseBinaryExpr()))return this.finish(e,y.ExpressionExpected)}else e.setValue(t);return this.finish(e)}_parseUse(){if(!this.peekKeyword("@use"))return null;const e=this.create(Ap);if(this.consumeToken(),!e.addChild(this._parseStringLiteral()))return this.finish(e,y.StringLiteralExpected);if(!this.peek(p.SemiColon)&&!this.peek(p.EOF)){if(!this.peekRegExp(p.Ident,/as|with/))return this.finish(e,y.UnknownKeyword);if(this.acceptIdent("as")&&!e.setIdentifier(this._parseIdent([J.Module]))&&!this.acceptDelim("*"))return this.finish(e,y.IdentifierOrWildcardExpected);if(this.acceptIdent("with")){if(!this.accept(p.ParenthesisL))return this.finish(e,y.LeftParenthesisExpected,[p.ParenthesisR]);if(!e.getParameters().addChild(this._parseModuleConfigDeclaration()))return this.finish(e,y.VariableNameExpected);for(;this.accept(p.Comma)&&!this.peek(p.ParenthesisR);)if(!e.getParameters().addChild(this._parseModuleConfigDeclaration()))return this.finish(e,y.VariableNameExpected);if(!this.accept(p.ParenthesisR))return this.finish(e,y.RightParenthesisExpected)}}return!this.accept(p.SemiColon)&&!this.accept(p.EOF)?this.finish(e,y.SemiColonExpected):this.finish(e)}_parseModuleConfigDeclaration(){const e=this.create(Mp);return e.setIdentifier(this._parseVariable())?!this.accept(p.Colon)||!e.setValue(this._parseExpr(!0))?this.finish(e,y.VariableValueExpected,[],[p.Comma,p.ParenthesisR]):this.accept(p.Exclamation)&&(this.hasWhitespace()||!this.acceptIdent("default"))?this.finish(e,y.UnknownKeyword):this.finish(e):null}_parseForward(){if(!this.peekKeyword("@forward"))return null;const e=this.create(Lp);if(this.consumeToken(),!e.addChild(this._parseStringLiteral()))return this.finish(e,y.StringLiteralExpected);if(this.acceptIdent("as")){const t=this._parseIdent([J.Forward]);if(!e.setIdentifier(t))return this.finish(e,y.IdentifierExpected);if(this.hasWhitespace()||!this.acceptDelim("*"))return this.finish(e,y.WildcardExpected)}if(this.acceptIdent("with")){if(!this.accept(p.ParenthesisL))return this.finish(e,y.LeftParenthesisExpected,[p.ParenthesisR]);if(!e.getParameters().addChild(this._parseModuleConfigDeclaration()))return this.finish(e,y.VariableNameExpected);for(;this.accept(p.Comma)&&!this.peek(p.ParenthesisR);)if(!e.getParameters().addChild(this._parseModuleConfigDeclaration()))return this.finish(e,y.VariableNameExpected);if(!this.accept(p.ParenthesisR))return this.finish(e,y.RightParenthesisExpected)}else if((this.peekIdent("hide")||this.peekIdent("show"))&&!e.addChild(this._parseForwardVisibility()))return this.finish(e,y.IdentifierOrVariableExpected);return!this.accept(p.SemiColon)&&!this.accept(p.EOF)?this.finish(e,y.SemiColonExpected):this.finish(e)}_parseForwardVisibility(){const e=this.create(zp);for(e.setIdentifier(this._parseIdent());e.addChild(this._parseVariable()||this._parseIdent());)this.accept(p.Comma);return e.getChildren().length>1?e:null}_parseSupportsCondition(){return this._parseInterpolation()||super._parseSupportsCondition()}},ot=g("Sass documentation"),yt=class Je extends us{constructor(t,n){super("$",t,n),lh(Je.scssModuleLoaders),lh(Je.scssModuleBuiltIns)}isImportPathParent(t){return t===b.Forward||t===b.Use||super.isImportPathParent(t)}getCompletionForImportPath(t,n){const r=t.getParent().type;if(r===b.Forward||r===b.Use)for(let i of Je.scssModuleBuiltIns){const s={label:i.label,documentation:i.documentation,textEdit:$.replace(this.getCompletionRange(t),\`'\${i.label}'\`),kind:V.Module};n.items.push(s)}return super.getCompletionForImportPath(t,n)}createReplaceFunction(){let t=1;return(n,r)=>"\\\\"+r+": \${"+t+++":"+(Je.variableDefaults[r]||"")+"}"}createFunctionProposals(t,n,r,i){for(const s of t){const a=s.func.replace(/\\[?(\\$\\w+)\\]?/g,this.createReplaceFunction()),o={label:s.func.substr(0,s.func.indexOf("(")),detail:s.func,documentation:s.desc,textEdit:$.replace(this.getCompletionRange(n),a),insertTextFormat:Ne.Snippet,kind:V.Function};r&&(o.sortText="z"),i.items.push(o)}return i}getCompletionsForSelector(t,n,r){return this.createFunctionProposals(Je.selectorFuncs,null,!0,r),super.getCompletionsForSelector(t,n,r)}getTermProposals(t,n,r){let i=Je.builtInFuncs;return t&&(i=i.filter(s=>!s.type||!t.restrictions||t.restrictions.indexOf(s.type)!==-1)),this.createFunctionProposals(i,n,!0,r),super.getTermProposals(t,n,r)}getColorProposals(t,n,r){return this.createFunctionProposals(Je.colorProposals,n,!1,r),super.getColorProposals(t,n,r)}getCompletionsForDeclarationProperty(t,n){return this.getCompletionForAtDirectives(n),this.getCompletionsForSelector(null,!0,n),super.getCompletionsForDeclarationProperty(t,n)}getCompletionsForExtendsReference(t,n,r){const i=this.getSymbolContext().findSymbolsAtOffset(this.offset,J.Rule);for(const s of i){const a={label:s.name,textEdit:$.replace(this.getCompletionRange(n),s.name),kind:V.Function};r.items.push(a)}return r}getCompletionForAtDirectives(t){return t.items.push(...Je.scssAtDirectives),t}getCompletionForTopLevel(t){return this.getCompletionForAtDirectives(t),this.getCompletionForModuleLoaders(t),super.getCompletionForTopLevel(t),t}getCompletionForModuleLoaders(t){return t.items.push(...Je.scssModuleLoaders),t}};yt.variableDefaults={$red:"1",$green:"2",$blue:"3",$alpha:"1.0",$color:"#000000",$weight:"0.5",$hue:"0",$saturation:"0%",$lightness:"0%",$degrees:"0",$amount:"0",$string:'""',$substring:'"s"',$number:"0",$limit:"1"},yt.colorProposals=[{func:"red($color)",desc:g("Gets the red component of a color.")},{func:"green($color)",desc:g("Gets the green component of a color.")},{func:"blue($color)",desc:g("Gets the blue component of a color.")},{func:"mix($color, $color, [$weight])",desc:g("Mixes two colors together.")},{func:"hue($color)",desc:g("Gets the hue component of a color.")},{func:"saturation($color)",desc:g("Gets the saturation component of a color.")},{func:"lightness($color)",desc:g("Gets the lightness component of a color.")},{func:"adjust-hue($color, $degrees)",desc:g("Changes the hue of a color.")},{func:"lighten($color, $amount)",desc:g("Makes a color lighter.")},{func:"darken($color, $amount)",desc:g("Makes a color darker.")},{func:"saturate($color, $amount)",desc:g("Makes a color more saturated.")},{func:"desaturate($color, $amount)",desc:g("Makes a color less saturated.")},{func:"grayscale($color)",desc:g("Converts a color to grayscale.")},{func:"complement($color)",desc:g("Returns the complement of a color.")},{func:"invert($color)",desc:g("Returns the inverse of a color.")},{func:"alpha($color)",desc:g("Gets the opacity component of a color.")},{func:"opacity($color)",desc:"Gets the alpha component (opacity) of a color."},{func:"rgba($color, $alpha)",desc:g("Changes the alpha component for a color.")},{func:"opacify($color, $amount)",desc:g("Makes a color more opaque.")},{func:"fade-in($color, $amount)",desc:g("Makes a color more opaque.")},{func:"transparentize($color, $amount)",desc:g("Makes a color more transparent.")},{func:"fade-out($color, $amount)",desc:g("Makes a color more transparent.")},{func:"adjust-color($color, [$red], [$green], [$blue], [$hue], [$saturation], [$lightness], [$alpha])",desc:g("Increases or decreases one or more components of a color.")},{func:"scale-color($color, [$red], [$green], [$blue], [$saturation], [$lightness], [$alpha])",desc:g("Fluidly scales one or more properties of a color.")},{func:"change-color($color, [$red], [$green], [$blue], [$hue], [$saturation], [$lightness], [$alpha])",desc:g("Changes one or more properties of a color.")},{func:"ie-hex-str($color)",desc:g("Converts a color into the format understood by IE filters.")}],yt.selectorFuncs=[{func:"selector-nest($selectors…)",desc:g("Nests selector beneath one another like they would be nested in the stylesheet.")},{func:"selector-append($selectors…)",desc:g("Appends selectors to one another without spaces in between.")},{func:"selector-extend($selector, $extendee, $extender)",desc:g("Extends $extendee with $extender within $selector.")},{func:"selector-replace($selector, $original, $replacement)",desc:g("Replaces $original with $replacement within $selector.")},{func:"selector-unify($selector1, $selector2)",desc:g("Unifies two selectors to produce a selector that matches elements matched by both.")},{func:"is-superselector($super, $sub)",desc:g("Returns whether $super matches all the elements $sub does, and possibly more.")},{func:"simple-selectors($selector)",desc:g("Returns the simple selectors that comprise a compound selector.")},{func:"selector-parse($selector)",desc:g("Parses a selector into the format returned by &.")}],yt.builtInFuncs=[{func:"unquote($string)",desc:g("Removes quotes from a string.")},{func:"quote($string)",desc:g("Adds quotes to a string.")},{func:"str-length($string)",desc:g("Returns the number of characters in a string.")},{func:"str-insert($string, $insert, $index)",desc:g("Inserts $insert into $string at $index.")},{func:"str-index($string, $substring)",desc:g("Returns the index of the first occurance of $substring in $string.")},{func:"str-slice($string, $start-at, [$end-at])",desc:g("Extracts a substring from $string.")},{func:"to-upper-case($string)",desc:g("Converts a string to upper case.")},{func:"to-lower-case($string)",desc:g("Converts a string to lower case.")},{func:"percentage($number)",desc:g("Converts a unitless number to a percentage."),type:"percentage"},{func:"round($number)",desc:g("Rounds a number to the nearest whole number.")},{func:"ceil($number)",desc:g("Rounds a number up to the next whole number.")},{func:"floor($number)",desc:g("Rounds a number down to the previous whole number.")},{func:"abs($number)",desc:g("Returns the absolute value of a number.")},{func:"min($numbers)",desc:g("Finds the minimum of several numbers.")},{func:"max($numbers)",desc:g("Finds the maximum of several numbers.")},{func:"random([$limit])",desc:g("Returns a random number.")},{func:"length($list)",desc:g("Returns the length of a list.")},{func:"nth($list, $n)",desc:g("Returns a specific item in a list.")},{func:"set-nth($list, $n, $value)",desc:g("Replaces the nth item in a list.")},{func:"join($list1, $list2, [$separator])",desc:g("Joins together two lists into one.")},{func:"append($list1, $val, [$separator])",desc:g("Appends a single value onto the end of a list.")},{func:"zip($lists)",desc:g("Combines several lists into a single multidimensional list.")},{func:"index($list, $value)",desc:g("Returns the position of a value within a list.")},{func:"list-separator(#list)",desc:g("Returns the separator of a list.")},{func:"map-get($map, $key)",desc:g("Returns the value in a map associated with a given key.")},{func:"map-merge($map1, $map2)",desc:g("Merges two maps together into a new map.")},{func:"map-remove($map, $keys)",desc:g("Returns a new map with keys removed.")},{func:"map-keys($map)",desc:g("Returns a list of all keys in a map.")},{func:"map-values($map)",desc:g("Returns a list of all values in a map.")},{func:"map-has-key($map, $key)",desc:g("Returns whether a map has a value associated with a given key.")},{func:"keywords($args)",desc:g("Returns the keywords passed to a function that takes variable arguments.")},{func:"feature-exists($feature)",desc:g("Returns whether a feature exists in the current Sass runtime.")},{func:"variable-exists($name)",desc:g("Returns whether a variable with the given name exists in the current scope.")},{func:"global-variable-exists($name)",desc:g("Returns whether a variable with the given name exists in the global scope.")},{func:"function-exists($name)",desc:g("Returns whether a function with the given name exists.")},{func:"mixin-exists($name)",desc:g("Returns whether a mixin with the given name exists.")},{func:"inspect($value)",desc:g("Returns the string representation of a value as it would be represented in Sass.")},{func:"type-of($value)",desc:g("Returns the type of a value.")},{func:"unit($number)",desc:g("Returns the unit(s) associated with a number.")},{func:"unitless($number)",desc:g("Returns whether a number has units.")},{func:"comparable($number1, $number2)",desc:g("Returns whether two numbers can be added, subtracted, or compared.")},{func:"call($name, $args…)",desc:g("Dynamically calls a Sass function.")}],yt.scssAtDirectives=[{label:"@extend",documentation:g("Inherits the styles of another selector."),kind:V.Keyword},{label:"@at-root",documentation:g("Causes one or more rules to be emitted at the root of the document."),kind:V.Keyword},{label:"@debug",documentation:g("Prints the value of an expression to the standard error output stream. Useful for debugging complicated Sass files."),kind:V.Keyword},{label:"@warn",documentation:g("Prints the value of an expression to the standard error output stream. Useful for libraries that need to warn users of deprecations or recovering from minor mixin usage mistakes. Warnings can be turned off with the \`--quiet\` command-line option or the \`:quiet\` Sass option."),kind:V.Keyword},{label:"@error",documentation:g("Throws the value of an expression as a fatal error with stack trace. Useful for validating arguments to mixins and functions."),kind:V.Keyword},{label:"@if",documentation:g("Includes the body if the expression does not evaluate to \`false\` or \`null\`."),insertText:\`@if \\\${1:expr} {
42
42
  $0
43
43
  }\`,insertTextFormat:Ne.Snippet,kind:V.Keyword},{label:"@for",documentation:g("For loop that repeatedly outputs a set of styles for each \`$var\` in the \`from/through\` or \`from/to\` clause."),insertText:"@for \\\\$\${1:var} from \${2:start} \${3|to,through|} \${4:end} {\\n $0\\n}",insertTextFormat:Ne.Snippet,kind:V.Keyword},{label:"@each",documentation:g("Each loop that sets \`$var\` to each item in the list or map, then outputs the styles it contains using that value of \`$var\`."),insertText:"@each \\\\$\${1:var} in \${2:list} {\\n $0\\n}",insertTextFormat:Ne.Snippet,kind:V.Keyword},{label:"@while",documentation:g("While loop that takes an expression and repeatedly outputs the nested styles until the statement evaluates to \`false\`."),insertText:\`@while \\\${1:condition} {
44
44
  $0
@@ -46,7 +46,7 @@ Syntax: \${vr(e.syntax)}\`)}return e.references&&e.references.length>0&&t?.refer
46
46
  $0
47
47
  }\`,insertTextFormat:Ne.Snippet,kind:V.Keyword},{label:"@include",documentation:g("Includes the styles defined by another mixin into the current rule."),kind:V.Keyword},{label:"@function",documentation:g("Defines complex operations that can be re-used throughout stylesheets."),kind:V.Keyword}],yt.scssModuleLoaders=[{label:"@use",documentation:g("Loads mixins, functions, and variables from other Sass stylesheets as 'modules', and combines CSS from multiple stylesheets together."),references:[{name:ot,url:"https://sass-lang.com/documentation/at-rules/use"}],insertText:"@use $0;",insertTextFormat:Ne.Snippet,kind:V.Keyword},{label:"@forward",documentation:g("Loads a Sass stylesheet and makes its mixins, functions, and variables available when this stylesheet is loaded with the @use rule."),references:[{name:ot,url:"https://sass-lang.com/documentation/at-rules/forward"}],insertText:"@forward $0;",insertTextFormat:Ne.Snippet,kind:V.Keyword}],yt.scssModuleBuiltIns=[{label:"sass:math",documentation:g("Provides functions that operate on numbers."),references:[{name:ot,url:"https://sass-lang.com/documentation/modules/math"}]},{label:"sass:string",documentation:g("Makes it easy to combine, search, or split apart strings."),references:[{name:ot,url:"https://sass-lang.com/documentation/modules/string"}]},{label:"sass:color",documentation:g("Generates new colors based on existing ones, making it easy to build color themes."),references:[{name:ot,url:"https://sass-lang.com/documentation/modules/color"}]},{label:"sass:list",documentation:g("Lets you access and modify values in lists."),references:[{name:ot,url:"https://sass-lang.com/documentation/modules/list"}]},{label:"sass:map",documentation:g("Makes it possible to look up the value associated with a key in a map, and much more."),references:[{name:ot,url:"https://sass-lang.com/documentation/modules/map"}]},{label:"sass:selector",documentation:g("Provides access to Sass’s powerful selector engine."),references:[{name:ot,url:"https://sass-lang.com/documentation/modules/selector"}]},{label:"sass:meta",documentation:g("Exposes the details of Sass’s inner workings."),references:[{name:ot,url:"https://sass-lang.com/documentation/modules/meta"}]}];function lh(e){e.forEach(t=>{if(t.documentation&&t.references&&t.references.length>0){const n=typeof t.documentation=="string"?{kind:"markdown",value:t.documentation}:{kind:"markdown",value:t.documentation.value};n.value+=\`
48
48
 
49
- \`,n.value+=t.references.map(r=>\`[\${r.name}](\${r.url})\`).join(" | "),t.documentation=n}})}var ch=47,cf=10,hf=13,df=12,Ns=96,Ds=46,uf=p.CustomToken,Is=uf++,hh=class extends Sn{scanNext(e){const t=this.escapedJavaScript();return t!==null?this.finishToken(e,t):this.stream.advanceIfChars([Ds,Ds,Ds])?this.finishToken(e,Is):super.scanNext(e)}comment(){return super.comment()?!0:!this.inURL&&this.stream.advanceIfChars([ch,ch])?(this.stream.advanceWhileChar(e=>{switch(e){case cf:case hf:case df:return!1;default:return!0}}),!0):!1}escapedJavaScript(){return this.stream.peekChar()===Ns?(this.stream.advance(1),this.stream.advanceWhileChar(t=>t!==Ns),this.stream.advanceIfChar(Ns)?p.EscapedJavaScript:p.BadEscapedJavaScript):null}},pf=class extends Sr{constructor(){super(new hh)}_parseStylesheetStatement(e=!1){return this.peek(p.AtKeyword)?this._parseVariableDeclaration()||this._parsePlugin()||super._parseStylesheetAtStatement(e):this._tryParseMixinDeclaration()||this._tryParseMixinReference()||this._parseFunction()||this._parseRuleset(!0)}_parseImport(){if(!this.peekKeyword("@import")&&!this.peekKeyword("@import-once"))return null;const e=this.create(Ti);if(this.consumeToken(),this.accept(p.ParenthesisL)){if(!this.accept(p.Ident))return this.finish(e,y.IdentifierExpected,[p.SemiColon]);do if(!this.accept(p.Comma))break;while(this.accept(p.Ident));if(!this.accept(p.ParenthesisR))return this.finish(e,y.RightParenthesisExpected,[p.SemiColon])}return!e.addChild(this._parseURILiteral())&&!e.addChild(this._parseStringLiteral())?this.finish(e,y.URIOrStringExpected,[p.SemiColon]):(!this.peek(p.SemiColon)&&!this.peek(p.EOF)&&e.setMedialist(this._parseMediaQueryList()),this._completeParseImport(e))}_parsePlugin(){if(!this.peekKeyword("@plugin"))return null;const e=this.createNode(b.Plugin);return this.consumeToken(),e.addChild(this._parseStringLiteral())?this.accept(p.SemiColon)?this.finish(e):this.finish(e,y.SemiColonExpected):this.finish(e,y.StringLiteralExpected)}_parseMediaQuery(){const e=super._parseMediaQuery();if(!e){const t=this.create(_l);return t.addChild(this._parseVariable())?this.finish(t):null}return e}_parseMediaDeclaration(e=!1){return this._tryParseRuleset(e)||this._tryToParseDeclaration()||this._tryParseMixinDeclaration()||this._tryParseMixinReference()||this._parseDetachedRuleSetMixin()||this._parseStylesheetStatement(e)}_parseMediaFeatureName(){return this._parseIdent()||this._parseVariable()}_parseVariableDeclaration(e=[]){const t=this.create(cr),n=this.mark();if(!t.setVariable(this._parseVariable(!0)))return null;if(this.accept(p.Colon)){if(this.prevToken&&(t.colonPosition=this.prevToken.offset),t.setValue(this._parseDetachedRuleSet()))t.needsSemicolon=!1;else if(!t.setValue(this._parseExpr()))return this.finish(t,y.VariableValueExpected,[],e);t.addChild(this._parsePrio())}else return this.restoreAtMark(n),null;return this.peek(p.SemiColon)&&(t.semicolonPosition=this.token.offset),this.finish(t)}_parseDetachedRuleSet(){let e=this.mark();if(this.peekDelim("#")||this.peekDelim("."))if(this.consumeToken(),!this.hasWhitespace()&&this.accept(p.ParenthesisL)){let n=this.create(Fn);if(n.getParameters().addChild(this._parseMixinParameter()))for(;(this.accept(p.Comma)||this.accept(p.SemiColon))&&!this.peek(p.ParenthesisR);)n.getParameters().addChild(this._parseMixinParameter())||this.markError(n,y.IdentifierExpected,[],[p.ParenthesisR]);if(!this.accept(p.ParenthesisR))return this.restoreAtMark(e),null}else return this.restoreAtMark(e),null;if(!this.peek(p.CurlyL))return null;const t=this.create(se);return this._parseBody(t,this._parseDetachedRuleSetBody.bind(this)),this.finish(t)}_parseDetachedRuleSetBody(){return this._tryParseKeyframeSelector()||this._parseRuleSetDeclaration()}_addLookupChildren(e){if(!e.addChild(this._parseLookupValue()))return!1;let t=!1;for(;this.peek(p.BracketL)&&(t=!0),!!e.addChild(this._parseLookupValue());)t=!1;return!t}_parseLookupValue(){const e=this.create(O),t=this.mark();return this.accept(p.BracketL)?(e.addChild(this._parseVariable(!1,!0))||e.addChild(this._parsePropertyIdentifier()))&&this.accept(p.BracketR)||this.accept(p.BracketR)?e:(this.restoreAtMark(t),null):(this.restoreAtMark(t),null)}_parseVariable(e=!1,t=!1){const n=!e&&this.peekDelim("$");if(!this.peekDelim("@")&&!n&&!this.peek(p.AtKeyword))return null;const r=this.create(qi),i=this.mark();for(;this.acceptDelim("@")||!e&&this.acceptDelim("$");)if(this.hasWhitespace())return this.restoreAtMark(i),null;return!this.accept(p.AtKeyword)&&!this.accept(p.Ident)?(this.restoreAtMark(i),null):!t&&this.peek(p.BracketL)&&!this._addLookupChildren(r)?(this.restoreAtMark(i),null):r}_parseTermExpression(){return this._parseVariable()||this._parseEscaped()||super._parseTermExpression()||this._tryParseMixinReference(!1)}_parseEscaped(){if(this.peek(p.EscapedJavaScript)||this.peek(p.BadEscapedJavaScript)){const e=this.createNode(b.EscapedValue);return this.consumeToken(),this.finish(e)}if(this.peekDelim("~")){const e=this.createNode(b.EscapedValue);return this.consumeToken(),this.accept(p.String)||this.accept(p.EscapedJavaScript)?this.finish(e):this.finish(e,y.TermExpected)}return null}_parseOperator(){const e=this._parseGuardOperator();return e||super._parseOperator()}_parseGuardOperator(){if(this.peekDelim(">")){const e=this.createNode(b.Operator);return this.consumeToken(),this.acceptDelim("="),e}else if(this.peekDelim("=")){const e=this.createNode(b.Operator);return this.consumeToken(),this.acceptDelim("<"),e}else if(this.peekDelim("<")){const e=this.createNode(b.Operator);return this.consumeToken(),this.acceptDelim("="),e}return null}_parseRuleSetDeclaration(){return this.peek(p.AtKeyword)?this._parseKeyframe()||this._parseMedia(!0)||this._parseImport()||this._parseSupports(!0)||this._parseLayer()||this._parsePropertyAtRule()||this._parseContainer(!0)||this._parseDetachedRuleSetMixin()||this._parseVariableDeclaration()||this._parseRuleSetDeclarationAtStatement():this._tryParseMixinDeclaration()||this._tryParseRuleset(!0)||this._tryParseMixinReference()||this._parseFunction()||this._parseExtend()||this._parseDeclaration()}_parseKeyframeIdent(){return this._parseIdent([J.Keyframe])||this._parseVariable()}_parseKeyframeSelector(){return this._parseDetachedRuleSetMixin()||super._parseKeyframeSelector()}_parseSelector(e){const t=this.create(Cn);let n=!1;for(e&&(n=t.addChild(this._parseCombinator()));t.addChild(this._parseSimpleSelector());){n=!0;const r=this.mark();if(t.addChild(this._parseGuard())&&this.peek(p.CurlyL))break;this.restoreAtMark(r),t.addChild(this._parseCombinator())}return n?this.finish(t):null}_parseNestingSelector(){if(this.peekDelim("&")){const e=this.createNode(b.SelectorCombinator);for(this.consumeToken();!this.hasWhitespace()&&(this.acceptDelim("-")||this.accept(p.Num)||this.accept(p.Dimension)||e.addChild(this._parseIdent())||this.acceptDelim("&")););return this.finish(e)}return null}_parseSelectorIdent(){if(!this.peekInterpolatedIdent())return null;const e=this.createNode(b.SelectorInterpolation);return this._acceptInterpolatedIdent(e)?this.finish(e):null}_parsePropertyIdentifier(e=!1){const t=/^[\\w-]+/;if(!this.peekInterpolatedIdent()&&!this.peekRegExp(this.token.type,t))return null;const n=this.mark(),r=this.create(Me);r.isCustomProperty=this.acceptDelim("-")&&this.acceptDelim("-");let i=!1;return e?r.isCustomProperty?i=r.addChild(this._parseIdent()):i=r.addChild(this._parseRegexp(t)):r.isCustomProperty?i=this._acceptInterpolatedIdent(r):i=this._acceptInterpolatedIdent(r,t),i?(!e&&!this.hasWhitespace()&&(this.acceptDelim("+"),this.hasWhitespace()||this.acceptIdent("_")),this.finish(r)):(this.restoreAtMark(n),null)}peekInterpolatedIdent(){return this.peek(p.Ident)||this.peekDelim("@")||this.peekDelim("$")||this.peekDelim("-")}_acceptInterpolatedIdent(e,t){let n=!1;const r=()=>{const s=this.mark();return this.acceptDelim("-")&&(this.hasWhitespace()||this.acceptDelim("-"),this.hasWhitespace())?(this.restoreAtMark(s),null):this._parseInterpolation()},i=t?()=>this.acceptRegexp(t):()=>this.accept(p.Ident);for(;(i()||e.addChild(this._parseInterpolation()||this.try(r)))&&(n=!0,!this.hasWhitespace()););return n}_parseInterpolation(){const e=this.mark();if(this.peekDelim("@")||this.peekDelim("$")){const t=this.createNode(b.Interpolation);return this.consumeToken(),this.hasWhitespace()||!this.accept(p.CurlyL)?(this.restoreAtMark(e),null):t.addChild(this._parseIdent())?this.accept(p.CurlyR)?this.finish(t):this.finish(t,y.RightCurlyExpected):this.finish(t,y.IdentifierExpected)}return null}_tryParseMixinDeclaration(){const e=this.mark(),t=this.create(Fn);if(!t.setIdentifier(this._parseMixinDeclarationIdentifier())||!this.accept(p.ParenthesisL))return this.restoreAtMark(e),null;if(t.getParameters().addChild(this._parseMixinParameter()))for(;(this.accept(p.Comma)||this.accept(p.SemiColon))&&!this.peek(p.ParenthesisR);)t.getParameters().addChild(this._parseMixinParameter())||this.markError(t,y.IdentifierExpected,[],[p.ParenthesisR]);return this.accept(p.ParenthesisR)?(t.setGuard(this._parseGuard()),this.peek(p.CurlyL)?this._parseBody(t,this._parseMixInBodyDeclaration.bind(this)):(this.restoreAtMark(e),null)):(this.restoreAtMark(e),null)}_parseMixInBodyDeclaration(){return this._parseFontFace()||this._parseRuleSetDeclaration()}_parseMixinDeclarationIdentifier(){let e;if(this.peekDelim("#")||this.peekDelim(".")){if(e=this.create(Me),this.consumeToken(),this.hasWhitespace()||!e.addChild(this._parseIdent()))return null}else if(this.peek(p.Hash))e=this.create(Me),this.consumeToken();else return null;return e.referenceTypes=[J.Mixin],this.finish(e)}_parsePseudo(){if(!this.peek(p.Colon))return null;const e=this.mark(),t=this.create(En);return this.consumeToken(),this.acceptIdent("extend")?this._completeExtends(t):(this.restoreAtMark(e),super._parsePseudo())}_parseExtend(){if(!this.peekDelim("&"))return null;const e=this.mark(),t=this.create(En);return this.consumeToken(),this.hasWhitespace()||!this.accept(p.Colon)||!this.acceptIdent("extend")?(this.restoreAtMark(e),null):this._completeExtends(t)}_completeExtends(e){if(!this.accept(p.ParenthesisL))return this.finish(e,y.LeftParenthesisExpected);const t=e.getSelectors();if(!t.addChild(this._parseSelector(!0)))return this.finish(e,y.SelectorExpected);for(;this.accept(p.Comma);)if(!t.addChild(this._parseSelector(!0)))return this.finish(e,y.SelectorExpected);return this.accept(p.ParenthesisR)?this.finish(e):this.finish(e,y.RightParenthesisExpected)}_parseDetachedRuleSetMixin(){if(!this.peek(p.AtKeyword))return null;const e=this.mark(),t=this.create(hr);return t.addChild(this._parseVariable(!0))&&(this.hasWhitespace()||!this.accept(p.ParenthesisL))?(this.restoreAtMark(e),null):this.accept(p.ParenthesisR)?this.finish(t):this.finish(t,y.RightParenthesisExpected)}_tryParseMixinReference(e=!0){const t=this.mark(),n=this.create(hr);let r=this._parseMixinDeclarationIdentifier();for(;r;){this.acceptDelim(">");const s=this._parseMixinDeclarationIdentifier();if(s)n.getNamespaces().addChild(r),r=s;else break}if(!n.setIdentifier(r))return this.restoreAtMark(t),null;let i=!1;if(this.accept(p.ParenthesisL)){if(i=!0,n.getArguments().addChild(this._parseMixinArgument())){for(;(this.accept(p.Comma)||this.accept(p.SemiColon))&&!this.peek(p.ParenthesisR);)if(!n.getArguments().addChild(this._parseMixinArgument()))return this.finish(n,y.ExpressionExpected)}if(!this.accept(p.ParenthesisR))return this.finish(n,y.RightParenthesisExpected);r.referenceTypes=[J.Mixin]}else r.referenceTypes=[J.Mixin,J.Rule];return this.peek(p.BracketL)?e||this._addLookupChildren(n):n.addChild(this._parsePrio()),!i&&!this.peek(p.SemiColon)&&!this.peek(p.CurlyR)&&!this.peek(p.EOF)?(this.restoreAtMark(t),null):this.finish(n)}_parseMixinArgument(){const e=this.create(Xt),t=this.mark(),n=this._parseVariable();return n&&(this.accept(p.Colon)?e.setIdentifier(n):this.restoreAtMark(t)),e.setValue(this._parseDetachedRuleSet()||this._parseExpr(!0))?this.finish(e):(this.restoreAtMark(t),null)}_parseMixinParameter(){const e=this.create(or);if(this.peekKeyword("@rest")){const n=this.create(O);return this.consumeToken(),this.accept(Is)?(e.setIdentifier(this.finish(n)),this.finish(e)):this.finish(e,y.DotExpected,[],[p.Comma,p.ParenthesisR])}if(this.peek(Is)){const n=this.create(O);return this.consumeToken(),e.setIdentifier(this.finish(n)),this.finish(e)}let t=!1;return e.setIdentifier(this._parseVariable())&&(this.accept(p.Colon),t=!0),!e.setDefaultValue(this._parseDetachedRuleSet()||this._parseExpr(!0))&&!t?null:this.finish(e)}_parseGuard(){if(!this.peekIdent("when"))return null;const e=this.create(em);if(this.consumeToken(),!e.getConditions().addChild(this._parseGuardCondition()))return this.finish(e,y.ConditionExpected);for(;this.acceptIdent("and")||this.accept(p.Comma);)if(!e.getConditions().addChild(this._parseGuardCondition()))return this.finish(e,y.ConditionExpected);return this.finish(e)}_parseGuardCondition(){const e=this.create(tm);return e.isNegated=this.acceptIdent("not"),this.accept(p.ParenthesisL)?(e.addChild(this._parseExpr()),this.accept(p.ParenthesisR)?this.finish(e):this.finish(e,y.RightParenthesisExpected)):e.isNegated?this.finish(e,y.LeftParenthesisExpected):null}_parseFunction(){const e=this.mark(),t=this.create(_n);if(!t.setIdentifier(this._parseFunctionIdentifier()))return null;if(this.hasWhitespace()||!this.accept(p.ParenthesisL))return this.restoreAtMark(e),null;if(t.getArguments().addChild(this._parseMixinArgument())){for(;(this.accept(p.Comma)||this.accept(p.SemiColon))&&!this.peek(p.ParenthesisR);)if(!t.getArguments().addChild(this._parseMixinArgument()))return this.finish(t,y.ExpressionExpected)}return this.accept(p.ParenthesisR)?this.finish(t):this.finish(t,y.RightParenthesisExpected)}_parseFunctionIdentifier(){if(this.peekDelim("%")){const e=this.create(Me);return e.referenceTypes=[J.Function],this.consumeToken(),this.finish(e)}return super._parseFunctionIdentifier()}_parseURLArgument(){const e=this.mark(),t=super._parseURLArgument();if(!t||!this.peek(p.ParenthesisR)){this.restoreAtMark(e);const n=this.create(O);return n.addChild(this._parseBinaryExpr()),this.finish(n)}return t}},As=class Us extends us{constructor(t,n){super("@",t,n)}createFunctionProposals(t,n,r,i){for(const s of t){const a={label:s.name,detail:s.example,documentation:s.description,textEdit:$.replace(this.getCompletionRange(n),s.name+"($0)"),insertTextFormat:Ne.Snippet,kind:V.Function};r&&(a.sortText="z"),i.items.push(a)}return i}getTermProposals(t,n,r){let i=Us.builtInProposals;return t&&(i=i.filter(s=>!s.type||!t.restrictions||t.restrictions.indexOf(s.type)!==-1)),this.createFunctionProposals(i,n,!0,r),super.getTermProposals(t,n,r)}getColorProposals(t,n,r){return this.createFunctionProposals(Us.colorProposals,n,!1,r),super.getColorProposals(t,n,r)}getCompletionsForDeclarationProperty(t,n){return this.getCompletionsForSelector(null,!0,n),super.getCompletionsForDeclarationProperty(t,n)}};As.builtInProposals=[{name:"if",example:"if(condition, trueValue [, falseValue]);",description:g("returns one of two values depending on a condition.")},{name:"boolean",example:"boolean(condition);",description:g('"store" a boolean test for later evaluation in a guard or if().')},{name:"length",example:"length(@list);",description:g("returns the number of elements in a value list")},{name:"extract",example:"extract(@list, index);",description:g("returns a value at the specified position in the list")},{name:"range",example:"range([start, ] end [, step]);",description:g("generate a list spanning a range of values")},{name:"each",example:"each(@list, ruleset);",description:g("bind the evaluation of a ruleset to each member of a list.")},{name:"escape",example:"escape(@string);",description:g("URL encodes a string")},{name:"e",example:"e(@string);",description:g("escape string content")},{name:"replace",example:"replace(@string, @pattern, @replacement[, @flags]);",description:g("string replace")},{name:"unit",example:"unit(@dimension, [@unit: '']);",description:g("remove or change the unit of a dimension")},{name:"color",example:"color(@string);",description:g("parses a string to a color"),type:"color"},{name:"convert",example:"convert(@value, unit);",description:g("converts numbers from one type into another")},{name:"data-uri",example:"data-uri([mimetype,] url);",description:g("inlines a resource and falls back to \`url()\`"),type:"url"},{name:"abs",description:g("absolute value of a number"),example:"abs(number);"},{name:"acos",description:g("arccosine - inverse of cosine function"),example:"acos(number);"},{name:"asin",description:g("arcsine - inverse of sine function"),example:"asin(number);"},{name:"ceil",example:"ceil(@number);",description:g("rounds up to an integer")},{name:"cos",description:g("cosine function"),example:"cos(number);"},{name:"floor",description:g("rounds down to an integer"),example:"floor(@number);"},{name:"percentage",description:g("converts to a %, e.g. 0.5 > 50%"),example:"percentage(@number);",type:"percentage"},{name:"round",description:g("rounds a number to a number of places"),example:"round(number, [places: 0]);"},{name:"sqrt",description:g("calculates square root of a number"),example:"sqrt(number);"},{name:"sin",description:g("sine function"),example:"sin(number);"},{name:"tan",description:g("tangent function"),example:"tan(number);"},{name:"atan",description:g("arctangent - inverse of tangent function"),example:"atan(number);"},{name:"pi",description:g("returns pi"),example:"pi();"},{name:"pow",description:g("first argument raised to the power of the second argument"),example:"pow(@base, @exponent);"},{name:"mod",description:g("first argument modulus second argument"),example:"mod(number, number);"},{name:"min",description:g("returns the lowest of one or more values"),example:"min(@x, @y);"},{name:"max",description:g("returns the lowest of one or more values"),example:"max(@x, @y);"}],As.colorProposals=[{name:"argb",example:"argb(@color);",description:g("creates a #AARRGGBB")},{name:"hsl",example:"hsl(@hue, @saturation, @lightness);",description:g("creates a color")},{name:"hsla",example:"hsla(@hue, @saturation, @lightness, @alpha);",description:g("creates a color")},{name:"hsv",example:"hsv(@hue, @saturation, @value);",description:g("creates a color")},{name:"hsva",example:"hsva(@hue, @saturation, @value, @alpha);",description:g("creates a color")},{name:"hue",example:"hue(@color);",description:g("returns the \`hue\` channel of \`@color\` in the HSL space")},{name:"saturation",example:"saturation(@color);",description:g("returns the \`saturation\` channel of \`@color\` in the HSL space")},{name:"lightness",example:"lightness(@color);",description:g("returns the \`lightness\` channel of \`@color\` in the HSL space")},{name:"hsvhue",example:"hsvhue(@color);",description:g("returns the \`hue\` channel of \`@color\` in the HSV space")},{name:"hsvsaturation",example:"hsvsaturation(@color);",description:g("returns the \`saturation\` channel of \`@color\` in the HSV space")},{name:"hsvvalue",example:"hsvvalue(@color);",description:g("returns the \`value\` channel of \`@color\` in the HSV space")},{name:"red",example:"red(@color);",description:g("returns the \`red\` channel of \`@color\`")},{name:"green",example:"green(@color);",description:g("returns the \`green\` channel of \`@color\`")},{name:"blue",example:"blue(@color);",description:g("returns the \`blue\` channel of \`@color\`")},{name:"alpha",example:"alpha(@color);",description:g("returns the \`alpha\` channel of \`@color\`")},{name:"luma",example:"luma(@color);",description:g("returns the \`luma\` value (perceptual brightness) of \`@color\`")},{name:"saturate",example:"saturate(@color, 10%);",description:g("return \`@color\` 10% points more saturated")},{name:"desaturate",example:"desaturate(@color, 10%);",description:g("return \`@color\` 10% points less saturated")},{name:"lighten",example:"lighten(@color, 10%);",description:g("return \`@color\` 10% points lighter")},{name:"darken",example:"darken(@color, 10%);",description:g("return \`@color\` 10% points darker")},{name:"fadein",example:"fadein(@color, 10%);",description:g("return \`@color\` 10% points less transparent")},{name:"fadeout",example:"fadeout(@color, 10%);",description:g("return \`@color\` 10% points more transparent")},{name:"fade",example:"fade(@color, 50%);",description:g("return \`@color\` with 50% transparency")},{name:"spin",example:"spin(@color, 10);",description:g("return \`@color\` with a 10 degree larger in hue")},{name:"mix",example:"mix(@color1, @color2, [@weight: 50%]);",description:g("return a mix of \`@color1\` and \`@color2\`")},{name:"greyscale",example:"greyscale(@color);",description:g("returns a grey, 100% desaturated color")},{name:"contrast",example:"contrast(@color1, [@darkcolor: black], [@lightcolor: white], [@threshold: 43%]);",description:g("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);"}];function mf(e,t){const n=ff(e);return gf(n,t)}function ff(e){function t(d){return e.positionAt(d.offset).line}function n(d){return e.positionAt(d.offset+d.len).line}function r(){switch(e.languageId){case"scss":return new oh;case"less":return new hh;default:return new Sn}}function i(d,u){const f=t(d),m=n(d);return f!==m?{startLine:f,endLine:m,kind:u}:null}const s=[],a=[],l=r();l.ignoreComment=!1,l.setSource(e.getText());let o=l.scan(),c=null;for(;o.type!==p.EOF;){switch(o.type){case p.CurlyL:case Rr:{a.push({line:t(o),type:"brace",isStart:!0});break}case p.CurlyR:{if(a.length!==0){const d=dh(a,"brace");if(!d)break;let u=n(o);d.type==="brace"&&(c&&n(c)!==u&&u--,d.line!==u&&s.push({startLine:d.line,endLine:u,kind:void 0}))}break}case p.Comment:{const d=m=>m==="#region"?{line:t(o),type:"comment",isStart:!0}:{line:n(o),type:"comment",isStart:!1},f=(m=>{const v=m.text.match(/^\\s*\\/\\*\\s*(#region|#endregion)\\b\\s*(.*?)\\s*\\*\\//);if(v)return d(v[1]);if(e.languageId==="scss"||e.languageId==="less"){const w=m.text.match(/^\\s*\\/\\/\\s*(#region|#endregion)\\b\\s*(.*?)\\s*/);if(w)return d(w[1])}return null})(o);if(f)if(f.isStart)a.push(f);else{const m=dh(a,"comment");if(!m)break;m.type==="comment"&&m.line!==f.line&&s.push({startLine:m.line,endLine:f.line,kind:"region"})}else{const m=i(o,"comment");m&&s.push(m)}break}}c=o,o=l.scan()}return s}function dh(e,t){if(e.length===0)return null;for(let n=e.length-1;n>=0;n--)if(e[n].type===t&&e[n].isStart)return e.splice(n,1)[0];return null}function gf(e,t){const n=t&&t.rangeLimit||Number.MAX_VALUE,r=e.sort((a,l)=>{let o=a.startLine-l.startLine;return o===0&&(o=a.endLine-l.endLine),o}),i=[];let s=-1;return r.forEach(a=>{a.startLine<s&&s<a.endLine||(i.push(a),s=a.endLine)}),i.length<n?i:i.slice(0,n)}var uh;(function(){var e=[,,function(i){function s(o){this.__parent=o,this.__character_count=0,this.__indent_count=-1,this.__alignment_count=0,this.__wrap_point_index=0,this.__wrap_point_character_count=0,this.__wrap_point_indent_count=-1,this.__wrap_point_alignment_count=0,this.__items=[]}s.prototype.clone_empty=function(){var o=new s(this.__parent);return o.set_indent(this.__indent_count,this.__alignment_count),o},s.prototype.item=function(o){return o<0?this.__items[this.__items.length+o]:this.__items[o]},s.prototype.has_match=function(o){for(var c=this.__items.length-1;c>=0;c--)if(this.__items[c].match(o))return!0;return!1},s.prototype.set_indent=function(o,c){this.is_empty()&&(this.__indent_count=o||0,this.__alignment_count=c||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},s.prototype._set_wrap_point=function(){this.__parent.wrap_line_length&&(this.__wrap_point_index=this.__items.length,this.__wrap_point_character_count=this.__character_count,this.__wrap_point_indent_count=this.__parent.next_line.__indent_count,this.__wrap_point_alignment_count=this.__parent.next_line.__alignment_count)},s.prototype._should_wrap=function(){return this.__wrap_point_index&&this.__character_count>this.__parent.wrap_line_length&&this.__wrap_point_character_count>this.__parent.next_line.__character_count},s.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var o=this.__parent.current_line;return o.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),o.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),o.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count,o.__items[0]===" "&&(o.__items.splice(0,1),o.__character_count-=1),!0}return!1},s.prototype.is_empty=function(){return this.__items.length===0},s.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},s.prototype.push=function(o){this.__items.push(o);var c=o.lastIndexOf(\`
49
+ \`,n.value+=t.references.map(r=>\`[\${r.name}](\${r.url})\`).join(" | "),t.documentation=n}})}var ch=47,cf=10,hf=13,df=12,Ns=96,Ds=46,uf=p.CustomToken,Is=uf++,hh=class extends Sn{scanNext(e){const t=this.escapedJavaScript();return t!==null?this.finishToken(e,t):this.stream.advanceIfChars([Ds,Ds,Ds])?this.finishToken(e,Is):super.scanNext(e)}comment(){return super.comment()?!0:!this.inURL&&this.stream.advanceIfChars([ch,ch])?(this.stream.advanceWhileChar(e=>{switch(e){case cf:case hf:case df:return!1;default:return!0}}),!0):!1}escapedJavaScript(){return this.stream.peekChar()===Ns?(this.stream.advance(1),this.stream.advanceWhileChar(t=>t!==Ns),this.stream.advanceIfChar(Ns)?p.EscapedJavaScript:p.BadEscapedJavaScript):null}},pf=class extends Cr{constructor(){super(new hh)}_parseStylesheetStatement(e=!1){return this.peek(p.AtKeyword)?this._parseVariableDeclaration()||this._parsePlugin()||super._parseStylesheetAtStatement(e):this._tryParseMixinDeclaration()||this._tryParseMixinReference()||this._parseFunction()||this._parseRuleset(!0)}_parseImport(){if(!this.peekKeyword("@import")&&!this.peekKeyword("@import-once"))return null;const e=this.create(Ti);if(this.consumeToken(),this.accept(p.ParenthesisL)){if(!this.accept(p.Ident))return this.finish(e,y.IdentifierExpected,[p.SemiColon]);do if(!this.accept(p.Comma))break;while(this.accept(p.Ident));if(!this.accept(p.ParenthesisR))return this.finish(e,y.RightParenthesisExpected,[p.SemiColon])}return!e.addChild(this._parseURILiteral())&&!e.addChild(this._parseStringLiteral())?this.finish(e,y.URIOrStringExpected,[p.SemiColon]):(!this.peek(p.SemiColon)&&!this.peek(p.EOF)&&e.setMedialist(this._parseMediaQueryList()),this._completeParseImport(e))}_parsePlugin(){if(!this.peekKeyword("@plugin"))return null;const e=this.createNode(b.Plugin);return this.consumeToken(),e.addChild(this._parseStringLiteral())?this.accept(p.SemiColon)?this.finish(e):this.finish(e,y.SemiColonExpected):this.finish(e,y.StringLiteralExpected)}_parseMediaQuery(){const e=super._parseMediaQuery();if(!e){const t=this.create(_l);return t.addChild(this._parseVariable())?this.finish(t):null}return e}_parseMediaDeclaration(e=!1){return this._tryParseRuleset(e)||this._tryToParseDeclaration()||this._tryParseMixinDeclaration()||this._tryParseMixinReference()||this._parseDetachedRuleSetMixin()||this._parseStylesheetStatement(e)}_parseMediaFeatureName(){return this._parseIdent()||this._parseVariable()}_parseVariableDeclaration(e=[]){const t=this.create(hr),n=this.mark();if(!t.setVariable(this._parseVariable(!0)))return null;if(this.accept(p.Colon)){if(this.prevToken&&(t.colonPosition=this.prevToken.offset),t.setValue(this._parseDetachedRuleSet()))t.needsSemicolon=!1;else if(!t.setValue(this._parseExpr()))return this.finish(t,y.VariableValueExpected,[],e);t.addChild(this._parsePrio())}else return this.restoreAtMark(n),null;return this.peek(p.SemiColon)&&(t.semicolonPosition=this.token.offset),this.finish(t)}_parseDetachedRuleSet(){let e=this.mark();if(this.peekDelim("#")||this.peekDelim("."))if(this.consumeToken(),!this.hasWhitespace()&&this.accept(p.ParenthesisL)){let n=this.create(Fn);if(n.getParameters().addChild(this._parseMixinParameter()))for(;(this.accept(p.Comma)||this.accept(p.SemiColon))&&!this.peek(p.ParenthesisR);)n.getParameters().addChild(this._parseMixinParameter())||this.markError(n,y.IdentifierExpected,[],[p.ParenthesisR]);if(!this.accept(p.ParenthesisR))return this.restoreAtMark(e),null}else return this.restoreAtMark(e),null;if(!this.peek(p.CurlyL))return null;const t=this.create(se);return this._parseBody(t,this._parseDetachedRuleSetBody.bind(this)),this.finish(t)}_parseDetachedRuleSetBody(){return this._tryParseKeyframeSelector()||this._parseRuleSetDeclaration()}_addLookupChildren(e){if(!e.addChild(this._parseLookupValue()))return!1;let t=!1;for(;this.peek(p.BracketL)&&(t=!0),!!e.addChild(this._parseLookupValue());)t=!1;return!t}_parseLookupValue(){const e=this.create(O),t=this.mark();return this.accept(p.BracketL)?(e.addChild(this._parseVariable(!1,!0))||e.addChild(this._parsePropertyIdentifier()))&&this.accept(p.BracketR)||this.accept(p.BracketR)?e:(this.restoreAtMark(t),null):(this.restoreAtMark(t),null)}_parseVariable(e=!1,t=!1){const n=!e&&this.peekDelim("$");if(!this.peekDelim("@")&&!n&&!this.peek(p.AtKeyword))return null;const r=this.create(qi),i=this.mark();for(;this.acceptDelim("@")||!e&&this.acceptDelim("$");)if(this.hasWhitespace())return this.restoreAtMark(i),null;return!this.accept(p.AtKeyword)&&!this.accept(p.Ident)?(this.restoreAtMark(i),null):!t&&this.peek(p.BracketL)&&!this._addLookupChildren(r)?(this.restoreAtMark(i),null):r}_parseTermExpression(){return this._parseVariable()||this._parseEscaped()||super._parseTermExpression()||this._tryParseMixinReference(!1)}_parseEscaped(){if(this.peek(p.EscapedJavaScript)||this.peek(p.BadEscapedJavaScript)){const e=this.createNode(b.EscapedValue);return this.consumeToken(),this.finish(e)}if(this.peekDelim("~")){const e=this.createNode(b.EscapedValue);return this.consumeToken(),this.accept(p.String)||this.accept(p.EscapedJavaScript)?this.finish(e):this.finish(e,y.TermExpected)}return null}_parseOperator(){const e=this._parseGuardOperator();return e||super._parseOperator()}_parseGuardOperator(){if(this.peekDelim(">")){const e=this.createNode(b.Operator);return this.consumeToken(),this.acceptDelim("="),e}else if(this.peekDelim("=")){const e=this.createNode(b.Operator);return this.consumeToken(),this.acceptDelim("<"),e}else if(this.peekDelim("<")){const e=this.createNode(b.Operator);return this.consumeToken(),this.acceptDelim("="),e}return null}_parseRuleSetDeclaration(){return this.peek(p.AtKeyword)?this._parseKeyframe()||this._parseMedia(!0)||this._parseImport()||this._parseSupports(!0)||this._parseLayer()||this._parsePropertyAtRule()||this._parseContainer(!0)||this._parseDetachedRuleSetMixin()||this._parseVariableDeclaration()||this._parseRuleSetDeclarationAtStatement():this._tryParseMixinDeclaration()||this._tryParseRuleset(!0)||this._tryParseMixinReference()||this._parseFunction()||this._parseExtend()||this._parseDeclaration()}_parseKeyframeIdent(){return this._parseIdent([J.Keyframe])||this._parseVariable()}_parseKeyframeSelector(){return this._parseDetachedRuleSetMixin()||super._parseKeyframeSelector()}_parseSelector(e){const t=this.create(Cn);let n=!1;for(e&&(n=t.addChild(this._parseCombinator()));t.addChild(this._parseSimpleSelector());){n=!0;const r=this.mark();if(t.addChild(this._parseGuard())&&this.peek(p.CurlyL))break;this.restoreAtMark(r),t.addChild(this._parseCombinator())}return n?this.finish(t):null}_parseNestingSelector(){if(this.peekDelim("&")){const e=this.createNode(b.SelectorCombinator);for(this.consumeToken();!this.hasWhitespace()&&(this.acceptDelim("-")||this.accept(p.Num)||this.accept(p.Dimension)||e.addChild(this._parseIdent())||this.acceptDelim("&")););return this.finish(e)}return null}_parseSelectorIdent(){if(!this.peekInterpolatedIdent())return null;const e=this.createNode(b.SelectorInterpolation);return this._acceptInterpolatedIdent(e)?this.finish(e):null}_parsePropertyIdentifier(e=!1){const t=/^[\\w-]+/;if(!this.peekInterpolatedIdent()&&!this.peekRegExp(this.token.type,t))return null;const n=this.mark(),r=this.create(Me);r.isCustomProperty=this.acceptDelim("-")&&this.acceptDelim("-");let i=!1;return e?r.isCustomProperty?i=r.addChild(this._parseIdent()):i=r.addChild(this._parseRegexp(t)):r.isCustomProperty?i=this._acceptInterpolatedIdent(r):i=this._acceptInterpolatedIdent(r,t),i?(!e&&!this.hasWhitespace()&&(this.acceptDelim("+"),this.hasWhitespace()||this.acceptIdent("_")),this.finish(r)):(this.restoreAtMark(n),null)}peekInterpolatedIdent(){return this.peek(p.Ident)||this.peekDelim("@")||this.peekDelim("$")||this.peekDelim("-")}_acceptInterpolatedIdent(e,t){let n=!1;const r=()=>{const s=this.mark();return this.acceptDelim("-")&&(this.hasWhitespace()||this.acceptDelim("-"),this.hasWhitespace())?(this.restoreAtMark(s),null):this._parseInterpolation()},i=t?()=>this.acceptRegexp(t):()=>this.accept(p.Ident);for(;(i()||e.addChild(this._parseInterpolation()||this.try(r)))&&(n=!0,!this.hasWhitespace()););return n}_parseInterpolation(){const e=this.mark();if(this.peekDelim("@")||this.peekDelim("$")){const t=this.createNode(b.Interpolation);return this.consumeToken(),this.hasWhitespace()||!this.accept(p.CurlyL)?(this.restoreAtMark(e),null):t.addChild(this._parseIdent())?this.accept(p.CurlyR)?this.finish(t):this.finish(t,y.RightCurlyExpected):this.finish(t,y.IdentifierExpected)}return null}_tryParseMixinDeclaration(){const e=this.mark(),t=this.create(Fn);if(!t.setIdentifier(this._parseMixinDeclarationIdentifier())||!this.accept(p.ParenthesisL))return this.restoreAtMark(e),null;if(t.getParameters().addChild(this._parseMixinParameter()))for(;(this.accept(p.Comma)||this.accept(p.SemiColon))&&!this.peek(p.ParenthesisR);)t.getParameters().addChild(this._parseMixinParameter())||this.markError(t,y.IdentifierExpected,[],[p.ParenthesisR]);return this.accept(p.ParenthesisR)?(t.setGuard(this._parseGuard()),this.peek(p.CurlyL)?this._parseBody(t,this._parseMixInBodyDeclaration.bind(this)):(this.restoreAtMark(e),null)):(this.restoreAtMark(e),null)}_parseMixInBodyDeclaration(){return this._parseFontFace()||this._parseRuleSetDeclaration()}_parseMixinDeclarationIdentifier(){let e;if(this.peekDelim("#")||this.peekDelim(".")){if(e=this.create(Me),this.consumeToken(),this.hasWhitespace()||!e.addChild(this._parseIdent()))return null}else if(this.peek(p.Hash))e=this.create(Me),this.consumeToken();else return null;return e.referenceTypes=[J.Mixin],this.finish(e)}_parsePseudo(){if(!this.peek(p.Colon))return null;const e=this.mark(),t=this.create(En);return this.consumeToken(),this.acceptIdent("extend")?this._completeExtends(t):(this.restoreAtMark(e),super._parsePseudo())}_parseExtend(){if(!this.peekDelim("&"))return null;const e=this.mark(),t=this.create(En);return this.consumeToken(),this.hasWhitespace()||!this.accept(p.Colon)||!this.acceptIdent("extend")?(this.restoreAtMark(e),null):this._completeExtends(t)}_completeExtends(e){if(!this.accept(p.ParenthesisL))return this.finish(e,y.LeftParenthesisExpected);const t=e.getSelectors();if(!t.addChild(this._parseSelector(!0)))return this.finish(e,y.SelectorExpected);for(;this.accept(p.Comma);)if(!t.addChild(this._parseSelector(!0)))return this.finish(e,y.SelectorExpected);return this.accept(p.ParenthesisR)?this.finish(e):this.finish(e,y.RightParenthesisExpected)}_parseDetachedRuleSetMixin(){if(!this.peek(p.AtKeyword))return null;const e=this.mark(),t=this.create(dr);return t.addChild(this._parseVariable(!0))&&(this.hasWhitespace()||!this.accept(p.ParenthesisL))?(this.restoreAtMark(e),null):this.accept(p.ParenthesisR)?this.finish(t):this.finish(t,y.RightParenthesisExpected)}_tryParseMixinReference(e=!0){const t=this.mark(),n=this.create(dr);let r=this._parseMixinDeclarationIdentifier();for(;r;){this.acceptDelim(">");const s=this._parseMixinDeclarationIdentifier();if(s)n.getNamespaces().addChild(r),r=s;else break}if(!n.setIdentifier(r))return this.restoreAtMark(t),null;let i=!1;if(this.accept(p.ParenthesisL)){if(i=!0,n.getArguments().addChild(this._parseMixinArgument())){for(;(this.accept(p.Comma)||this.accept(p.SemiColon))&&!this.peek(p.ParenthesisR);)if(!n.getArguments().addChild(this._parseMixinArgument()))return this.finish(n,y.ExpressionExpected)}if(!this.accept(p.ParenthesisR))return this.finish(n,y.RightParenthesisExpected);r.referenceTypes=[J.Mixin]}else r.referenceTypes=[J.Mixin,J.Rule];return this.peek(p.BracketL)?e||this._addLookupChildren(n):n.addChild(this._parsePrio()),!i&&!this.peek(p.SemiColon)&&!this.peek(p.CurlyR)&&!this.peek(p.EOF)?(this.restoreAtMark(t),null):this.finish(n)}_parseMixinArgument(){const e=this.create(Xt),t=this.mark(),n=this._parseVariable();return n&&(this.accept(p.Colon)?e.setIdentifier(n):this.restoreAtMark(t)),e.setValue(this._parseDetachedRuleSet()||this._parseExpr(!0))?this.finish(e):(this.restoreAtMark(t),null)}_parseMixinParameter(){const e=this.create(lr);if(this.peekKeyword("@rest")){const n=this.create(O);return this.consumeToken(),this.accept(Is)?(e.setIdentifier(this.finish(n)),this.finish(e)):this.finish(e,y.DotExpected,[],[p.Comma,p.ParenthesisR])}if(this.peek(Is)){const n=this.create(O);return this.consumeToken(),e.setIdentifier(this.finish(n)),this.finish(e)}let t=!1;return e.setIdentifier(this._parseVariable())&&(this.accept(p.Colon),t=!0),!e.setDefaultValue(this._parseDetachedRuleSet()||this._parseExpr(!0))&&!t?null:this.finish(e)}_parseGuard(){if(!this.peekIdent("when"))return null;const e=this.create(em);if(this.consumeToken(),!e.getConditions().addChild(this._parseGuardCondition()))return this.finish(e,y.ConditionExpected);for(;this.acceptIdent("and")||this.accept(p.Comma);)if(!e.getConditions().addChild(this._parseGuardCondition()))return this.finish(e,y.ConditionExpected);return this.finish(e)}_parseGuardCondition(){const e=this.create(tm);return e.isNegated=this.acceptIdent("not"),this.accept(p.ParenthesisL)?(e.addChild(this._parseExpr()),this.accept(p.ParenthesisR)?this.finish(e):this.finish(e,y.RightParenthesisExpected)):e.isNegated?this.finish(e,y.LeftParenthesisExpected):null}_parseFunction(){const e=this.mark(),t=this.create(_n);if(!t.setIdentifier(this._parseFunctionIdentifier()))return null;if(this.hasWhitespace()||!this.accept(p.ParenthesisL))return this.restoreAtMark(e),null;if(t.getArguments().addChild(this._parseMixinArgument())){for(;(this.accept(p.Comma)||this.accept(p.SemiColon))&&!this.peek(p.ParenthesisR);)if(!t.getArguments().addChild(this._parseMixinArgument()))return this.finish(t,y.ExpressionExpected)}return this.accept(p.ParenthesisR)?this.finish(t):this.finish(t,y.RightParenthesisExpected)}_parseFunctionIdentifier(){if(this.peekDelim("%")){const e=this.create(Me);return e.referenceTypes=[J.Function],this.consumeToken(),this.finish(e)}return super._parseFunctionIdentifier()}_parseURLArgument(){const e=this.mark(),t=super._parseURLArgument();if(!t||!this.peek(p.ParenthesisR)){this.restoreAtMark(e);const n=this.create(O);return n.addChild(this._parseBinaryExpr()),this.finish(n)}return t}},As=class Us extends us{constructor(t,n){super("@",t,n)}createFunctionProposals(t,n,r,i){for(const s of t){const a={label:s.name,detail:s.example,documentation:s.description,textEdit:$.replace(this.getCompletionRange(n),s.name+"($0)"),insertTextFormat:Ne.Snippet,kind:V.Function};r&&(a.sortText="z"),i.items.push(a)}return i}getTermProposals(t,n,r){let i=Us.builtInProposals;return t&&(i=i.filter(s=>!s.type||!t.restrictions||t.restrictions.indexOf(s.type)!==-1)),this.createFunctionProposals(i,n,!0,r),super.getTermProposals(t,n,r)}getColorProposals(t,n,r){return this.createFunctionProposals(Us.colorProposals,n,!1,r),super.getColorProposals(t,n,r)}getCompletionsForDeclarationProperty(t,n){return this.getCompletionsForSelector(null,!0,n),super.getCompletionsForDeclarationProperty(t,n)}};As.builtInProposals=[{name:"if",example:"if(condition, trueValue [, falseValue]);",description:g("returns one of two values depending on a condition.")},{name:"boolean",example:"boolean(condition);",description:g('"store" a boolean test for later evaluation in a guard or if().')},{name:"length",example:"length(@list);",description:g("returns the number of elements in a value list")},{name:"extract",example:"extract(@list, index);",description:g("returns a value at the specified position in the list")},{name:"range",example:"range([start, ] end [, step]);",description:g("generate a list spanning a range of values")},{name:"each",example:"each(@list, ruleset);",description:g("bind the evaluation of a ruleset to each member of a list.")},{name:"escape",example:"escape(@string);",description:g("URL encodes a string")},{name:"e",example:"e(@string);",description:g("escape string content")},{name:"replace",example:"replace(@string, @pattern, @replacement[, @flags]);",description:g("string replace")},{name:"unit",example:"unit(@dimension, [@unit: '']);",description:g("remove or change the unit of a dimension")},{name:"color",example:"color(@string);",description:g("parses a string to a color"),type:"color"},{name:"convert",example:"convert(@value, unit);",description:g("converts numbers from one type into another")},{name:"data-uri",example:"data-uri([mimetype,] url);",description:g("inlines a resource and falls back to \`url()\`"),type:"url"},{name:"abs",description:g("absolute value of a number"),example:"abs(number);"},{name:"acos",description:g("arccosine - inverse of cosine function"),example:"acos(number);"},{name:"asin",description:g("arcsine - inverse of sine function"),example:"asin(number);"},{name:"ceil",example:"ceil(@number);",description:g("rounds up to an integer")},{name:"cos",description:g("cosine function"),example:"cos(number);"},{name:"floor",description:g("rounds down to an integer"),example:"floor(@number);"},{name:"percentage",description:g("converts to a %, e.g. 0.5 > 50%"),example:"percentage(@number);",type:"percentage"},{name:"round",description:g("rounds a number to a number of places"),example:"round(number, [places: 0]);"},{name:"sqrt",description:g("calculates square root of a number"),example:"sqrt(number);"},{name:"sin",description:g("sine function"),example:"sin(number);"},{name:"tan",description:g("tangent function"),example:"tan(number);"},{name:"atan",description:g("arctangent - inverse of tangent function"),example:"atan(number);"},{name:"pi",description:g("returns pi"),example:"pi();"},{name:"pow",description:g("first argument raised to the power of the second argument"),example:"pow(@base, @exponent);"},{name:"mod",description:g("first argument modulus second argument"),example:"mod(number, number);"},{name:"min",description:g("returns the lowest of one or more values"),example:"min(@x, @y);"},{name:"max",description:g("returns the lowest of one or more values"),example:"max(@x, @y);"}],As.colorProposals=[{name:"argb",example:"argb(@color);",description:g("creates a #AARRGGBB")},{name:"hsl",example:"hsl(@hue, @saturation, @lightness);",description:g("creates a color")},{name:"hsla",example:"hsla(@hue, @saturation, @lightness, @alpha);",description:g("creates a color")},{name:"hsv",example:"hsv(@hue, @saturation, @value);",description:g("creates a color")},{name:"hsva",example:"hsva(@hue, @saturation, @value, @alpha);",description:g("creates a color")},{name:"hue",example:"hue(@color);",description:g("returns the \`hue\` channel of \`@color\` in the HSL space")},{name:"saturation",example:"saturation(@color);",description:g("returns the \`saturation\` channel of \`@color\` in the HSL space")},{name:"lightness",example:"lightness(@color);",description:g("returns the \`lightness\` channel of \`@color\` in the HSL space")},{name:"hsvhue",example:"hsvhue(@color);",description:g("returns the \`hue\` channel of \`@color\` in the HSV space")},{name:"hsvsaturation",example:"hsvsaturation(@color);",description:g("returns the \`saturation\` channel of \`@color\` in the HSV space")},{name:"hsvvalue",example:"hsvvalue(@color);",description:g("returns the \`value\` channel of \`@color\` in the HSV space")},{name:"red",example:"red(@color);",description:g("returns the \`red\` channel of \`@color\`")},{name:"green",example:"green(@color);",description:g("returns the \`green\` channel of \`@color\`")},{name:"blue",example:"blue(@color);",description:g("returns the \`blue\` channel of \`@color\`")},{name:"alpha",example:"alpha(@color);",description:g("returns the \`alpha\` channel of \`@color\`")},{name:"luma",example:"luma(@color);",description:g("returns the \`luma\` value (perceptual brightness) of \`@color\`")},{name:"saturate",example:"saturate(@color, 10%);",description:g("return \`@color\` 10% points more saturated")},{name:"desaturate",example:"desaturate(@color, 10%);",description:g("return \`@color\` 10% points less saturated")},{name:"lighten",example:"lighten(@color, 10%);",description:g("return \`@color\` 10% points lighter")},{name:"darken",example:"darken(@color, 10%);",description:g("return \`@color\` 10% points darker")},{name:"fadein",example:"fadein(@color, 10%);",description:g("return \`@color\` 10% points less transparent")},{name:"fadeout",example:"fadeout(@color, 10%);",description:g("return \`@color\` 10% points more transparent")},{name:"fade",example:"fade(@color, 50%);",description:g("return \`@color\` with 50% transparency")},{name:"spin",example:"spin(@color, 10);",description:g("return \`@color\` with a 10 degree larger in hue")},{name:"mix",example:"mix(@color1, @color2, [@weight: 50%]);",description:g("return a mix of \`@color1\` and \`@color2\`")},{name:"greyscale",example:"greyscale(@color);",description:g("returns a grey, 100% desaturated color")},{name:"contrast",example:"contrast(@color1, [@darkcolor: black], [@lightcolor: white], [@threshold: 43%]);",description:g("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);"}];function mf(e,t){const n=ff(e);return gf(n,t)}function ff(e){function t(d){return e.positionAt(d.offset).line}function n(d){return e.positionAt(d.offset+d.len).line}function r(){switch(e.languageId){case"scss":return new oh;case"less":return new hh;default:return new Sn}}function i(d,u){const f=t(d),m=n(d);return f!==m?{startLine:f,endLine:m,kind:u}:null}const s=[],a=[],l=r();l.ignoreComment=!1,l.setSource(e.getText());let o=l.scan(),c=null;for(;o.type!==p.EOF;){switch(o.type){case p.CurlyL:case Nr:{a.push({line:t(o),type:"brace",isStart:!0});break}case p.CurlyR:{if(a.length!==0){const d=dh(a,"brace");if(!d)break;let u=n(o);d.type==="brace"&&(c&&n(c)!==u&&u--,d.line!==u&&s.push({startLine:d.line,endLine:u,kind:void 0}))}break}case p.Comment:{const d=m=>m==="#region"?{line:t(o),type:"comment",isStart:!0}:{line:n(o),type:"comment",isStart:!1},f=(m=>{const v=m.text.match(/^\\s*\\/\\*\\s*(#region|#endregion)\\b\\s*(.*?)\\s*\\*\\//);if(v)return d(v[1]);if(e.languageId==="scss"||e.languageId==="less"){const w=m.text.match(/^\\s*\\/\\/\\s*(#region|#endregion)\\b\\s*(.*?)\\s*/);if(w)return d(w[1])}return null})(o);if(f)if(f.isStart)a.push(f);else{const m=dh(a,"comment");if(!m)break;m.type==="comment"&&m.line!==f.line&&s.push({startLine:m.line,endLine:f.line,kind:"region"})}else{const m=i(o,"comment");m&&s.push(m)}break}}c=o,o=l.scan()}return s}function dh(e,t){if(e.length===0)return null;for(let n=e.length-1;n>=0;n--)if(e[n].type===t&&e[n].isStart)return e.splice(n,1)[0];return null}function gf(e,t){const n=t&&t.rangeLimit||Number.MAX_VALUE,r=e.sort((a,l)=>{let o=a.startLine-l.startLine;return o===0&&(o=a.endLine-l.endLine),o}),i=[];let s=-1;return r.forEach(a=>{a.startLine<s&&s<a.endLine||(i.push(a),s=a.endLine)}),i.length<n?i:i.slice(0,n)}var uh;(function(){var e=[,,function(i){function s(o){this.__parent=o,this.__character_count=0,this.__indent_count=-1,this.__alignment_count=0,this.__wrap_point_index=0,this.__wrap_point_character_count=0,this.__wrap_point_indent_count=-1,this.__wrap_point_alignment_count=0,this.__items=[]}s.prototype.clone_empty=function(){var o=new s(this.__parent);return o.set_indent(this.__indent_count,this.__alignment_count),o},s.prototype.item=function(o){return o<0?this.__items[this.__items.length+o]:this.__items[o]},s.prototype.has_match=function(o){for(var c=this.__items.length-1;c>=0;c--)if(this.__items[c].match(o))return!0;return!1},s.prototype.set_indent=function(o,c){this.is_empty()&&(this.__indent_count=o||0,this.__alignment_count=c||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},s.prototype._set_wrap_point=function(){this.__parent.wrap_line_length&&(this.__wrap_point_index=this.__items.length,this.__wrap_point_character_count=this.__character_count,this.__wrap_point_indent_count=this.__parent.next_line.__indent_count,this.__wrap_point_alignment_count=this.__parent.next_line.__alignment_count)},s.prototype._should_wrap=function(){return this.__wrap_point_index&&this.__character_count>this.__parent.wrap_line_length&&this.__wrap_point_character_count>this.__parent.next_line.__character_count},s.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var o=this.__parent.current_line;return o.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),o.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),o.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count,o.__items[0]===" "&&(o.__items.splice(0,1),o.__character_count-=1),!0}return!1},s.prototype.is_empty=function(){return this.__items.length===0},s.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},s.prototype.push=function(o){this.__items.push(o);var c=o.lastIndexOf(\`
50
50
  \`);c!==-1?this.__character_count=o.length-c:this.__character_count+=o.length},s.prototype.pop=function(){var o=null;return this.is_empty()||(o=this.__items.pop(),this.__character_count-=o.length),o},s.prototype._remove_indent=function(){this.__indent_count>0&&(this.__indent_count-=1,this.__character_count-=this.__parent.indent_size)},s.prototype._remove_wrap_indent=function(){this.__wrap_point_indent_count>0&&(this.__wrap_point_indent_count-=1)},s.prototype.trim=function(){for(;this.last()===" ";)this.__items.pop(),this.__character_count-=1},s.prototype.toString=function(){var o="";return this.is_empty()?this.__parent.indent_empty_lines&&(o=this.__parent.get_indent_string(this.__indent_count)):(o=this.__parent.get_indent_string(this.__indent_count,this.__alignment_count),o+=this.__items.join("")),o};function a(o,c){this.__cache=[""],this.__indent_size=o.indent_size,this.__indent_string=o.indent_char,o.indent_with_tabs||(this.__indent_string=new Array(o.indent_size+1).join(o.indent_char)),c=c||"",o.indent_level>0&&(c=new Array(o.indent_level+1).join(this.__indent_string)),this.__base_string=c,this.__base_string_length=c.length}a.prototype.get_indent_size=function(o,c){var d=this.__base_string_length;return c=c||0,o<0&&(d=0),d+=o*this.__indent_size,d+=c,d},a.prototype.get_indent_string=function(o,c){var d=this.__base_string;return c=c||0,o<0&&(o=0,d=""),c+=o*this.__indent_size,this.__ensure_cache(c),d+=this.__cache[c],d},a.prototype.__ensure_cache=function(o){for(;o>=this.__cache.length;)this.__add_column()},a.prototype.__add_column=function(){var o=this.__cache.length,c=0,d="";this.__indent_size&&o>=this.__indent_size&&(c=Math.floor(o/this.__indent_size),o-=c*this.__indent_size,d=new Array(c+1).join(this.__indent_string)),o&&(d+=new Array(o+1).join(" ")),this.__cache.push(d)};function l(o,c){this.__indent_cache=new a(o,c),this.raw=!1,this._end_with_newline=o.end_with_newline,this.indent_size=o.indent_size,this.wrap_line_length=o.wrap_line_length,this.indent_empty_lines=o.indent_empty_lines,this.__lines=[],this.previous_line=null,this.current_line=null,this.next_line=new s(this),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1,this.__add_outputline()}l.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},l.prototype.get_line_number=function(){return this.__lines.length},l.prototype.get_indent_string=function(o,c){return this.__indent_cache.get_indent_string(o,c)},l.prototype.get_indent_size=function(o,c){return this.__indent_cache.get_indent_size(o,c)},l.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},l.prototype.add_new_line=function(o){return this.is_empty()||!o&&this.just_added_newline()?!1:(this.raw||this.__add_outputline(),!0)},l.prototype.get_code=function(o){this.trim(!0);var c=this.current_line.pop();c&&(c[c.length-1]===\`
51
51
  \`&&(c=c.replace(/\\n+$/g,"")),this.current_line.push(c)),this._end_with_newline&&this.__add_outputline();var d=this.__lines.join(\`
52
52
  \`);return o!==\`
@@ -81,7 +81,7 @@ Specifying any precise animations or physics used to enforce those snap points i
81
81
 
82
82
  This is used to produce an effect that is known as tate-chū-yoko (縦中横) in Japanese, or as 直書橫向 in Chinese.\`},{name:"text-decoration-skip",status:"experimental",syntax:"none | [ objects || [ spaces | [ leading-spaces || trailing-spaces ] ] || edges || box-decoration ]",relevance:52,browsers:["S12.1","C57","O44"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/text-decoration-skip"}],description:"The text-decoration-skip CSS property specifies what parts of the element’s content any text decoration affecting the element must skip over. It controls all text decoration lines drawn by the element and also any text decoration lines drawn by its ancestors."},{name:"text-decoration-skip-ink",syntax:"auto | all | none",values:[{name:"auto"},{name:"all"},{name:"none"}],relevance:51,browsers:["E79","FF70","S15.4","C64","O50"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/text-decoration-skip-ink"}],description:"The text-decoration-skip-ink CSS property specifies how overlines and underlines are drawn when they pass over glyph ascenders and descenders."},{name:"text-decoration-thickness",syntax:"auto | from-font | <length> | <percentage> ",relevance:50,browsers:["E89","FF70","S12.1","C89","O75"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/text-decoration-thickness"}],description:"The text-decoration-thickness CSS property sets the thickness, or width, of the decoration line that is used on text in an element, such as a line-through, underline, or overline."},{name:"text-emphasis",syntax:"<'text-emphasis-style'> || <'text-emphasis-color'>",relevance:50,browsers:["E99","FF46","S7","C99","O85"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/text-emphasis"}],description:"The text-emphasis CSS property is a shorthand property for setting text-emphasis-style and text-emphasis-color in one declaration. This property will apply the specified emphasis mark to each character of the element's text, except separator characters, like spaces, and control characters."},{name:"text-emphasis-color",syntax:"<color>",relevance:50,browsers:["E99","FF46","S7","C99","O85"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/text-emphasis-color"}],description:"The text-emphasis-color CSS property defines the color used to draw emphasis marks on text being rendered in the HTML document. This value can also be set and reset using the text-emphasis shorthand."},{name:"text-emphasis-position",syntax:"[ over | under ] && [ right | left ]",relevance:50,browsers:["E99","FF46","S7","C99","O85"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/text-emphasis-position"}],description:"The text-emphasis-position CSS property describes where emphasis marks are drawn at. The effect of emphasis marks on the line height is the same as for ruby text: if there isn't enough place, the line height is increased."},{name:"text-emphasis-style",syntax:"none | [ [ filled | open ] || [ dot | circle | double-circle | triangle | sesame ] ] | <string>",relevance:50,browsers:["E99","FF46","S7","C99","O85"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/text-emphasis-style"}],description:"The text-emphasis-style CSS property defines the type of emphasis used. It can also be set, and reset, using the text-emphasis shorthand."},{name:"text-size-adjust",status:"experimental",syntax:"none | auto | <percentage>",relevance:57,browsers:["E79","C54","O41"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/text-size-adjust"}],description:"The text-size-adjust CSS property controls the text inflation algorithm used on some smartphones and tablets. Other browsers will ignore this property."},{name:"text-underline-offset",syntax:"auto | <length> | <percentage> ",relevance:51,browsers:["E87","FF70","S12.1","C87","O73"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/text-underline-offset"}],description:"The text-underline-offset CSS property sets the offset distance of an underline text decoration line (applied using text-decoration) from its original position."},{name:"text-wrap",syntax:"wrap | nowrap | balance | stable | pretty",values:[{name:"wrap"},{name:"nowrap"},{name:"balance"},{name:"stable"},{name:"pretty"}],relevance:54,browsers:["E114","FF121","Spreview","C114","O100"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/text-wrap"}],description:"The text-wrap CSS property controls how text inside an element is wrapped."},{name:"timeline-scope",status:"experimental",syntax:"none | <dashed-ident>#",relevance:50,browsers:["E116","C116","O102"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/timeline-scope"}],description:"The timeline-scope CSS property modifies the scope of a named animation timeline."},{name:"transform-box",syntax:"content-box | border-box | fill-box | stroke-box | view-box",values:[{name:"content-box"},{name:"border-box"},{name:"fill-box"},{name:"stroke-box"},{name:"view-box"}],relevance:50,browsers:["E79","FF55","S11","C64","O51"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/transform-box"}],description:"The transform-box CSS property defines the layout box to which the transform and transform-origin properties relate."},{name:"transition-behavior",status:"experimental",syntax:"<transition-behavior-value>#",relevance:50,browsers:["E117","C117","O103"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/transition-behavior"}],description:"The transition-behavior CSS property specifies whether transitions will be started for properties whose animation behavior is discrete."},{name:"translate",syntax:"none | <length-percentage> [ <length-percentage> <length>? ]?",relevance:50,browsers:["E104","FF72","S14.1","C104","O90"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/translate"}],description:"The translate CSS property allows you to specify translation transforms individually and independently of the transform property. This maps better to typical user interface usage, and saves having to remember the exact order of transform functions to specify in the transform value."},{name:"view-timeline",status:"experimental",syntax:"[ <'view-timeline-name'> <'view-timeline-axis'>? ]#",relevance:50,browsers:["E115","FF114","C115","O101"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/view-timeline"}],description:"The view-timeline CSS shorthand property is used to define a named view progress timeline, which is progressed through based on the change in visibility of an element (known as the subject) inside a scrollable element (scroller). view-timeline is set on the subject."},{name:"view-timeline-axis",status:"experimental",syntax:"[ block | inline | x | y ]#",relevance:50,browsers:["E115","FF114","C115","O101"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/view-timeline-axis"}],description:"The view-timeline-axis CSS property is used to specify the scrollbar direction that will be used to provide the timeline for a named view progress timeline animation, which is progressed through based on the change in visibility of an element (known as the subject) inside a scrollable element (scroller). view-timeline-axis is set on the subject. See CSS scroll-driven animations for more details."},{name:"view-timeline-inset",status:"experimental",syntax:"[ [ auto | <length-percentage> ]{1,2} ]#",relevance:50,browsers:["E115","C115","O101"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/view-timeline-inset"}],description:"The view-timeline-inset CSS property is used to specify one or two values representing an adjustment to the position of the scrollport (see Scroll container for more details) in which the subject element of a named view progress timeline animation is deemed to be visible. Put another way, this allows you to specify start and/or end inset (or outset) values that offset the position of the timeline."},{name:"view-timeline-name",status:"experimental",syntax:"none | <dashed-ident>#",relevance:50,browsers:["E115","FF111","C115","O101"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/view-timeline-name"}],description:"The view-timeline-name CSS property is used to define the name of a named view progress timeline, which is progressed through based on the change in visibility of an element (known as the subject) inside a scrollable element (scroller). view-timeline is set on the subject."},{name:"view-transition-name",status:"experimental",syntax:"none | <custom-ident>",relevance:50,browsers:["E111","C111","O97"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/view-transition-name"}],description:"The view-transition-name CSS property provides the selected element with a distinct identifying name (a custom-ident) and causes it to participate in a separate view transition from the root view transition — or no view transition if the none value is specified."},{name:"white-space",syntax:"normal | pre | nowrap | pre-wrap | pre-line | break-spaces | [ <'white-space-collapse'> || <'text-wrap'> || <'white-space-trim'> ]",relevance:89,browsers:["E12","FF1","S1","C1","IE5.5","O4"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/white-space"}],description:"Specifies how whitespace is handled in an element."},{name:"white-space-collapse",syntax:"collapse | discard | preserve | preserve-breaks | preserve-spaces | break-spaces",values:[{name:"collapse"},{name:"discard"},{name:"preserve"},{name:"preserve-breaks"},{name:"preserve-spaces"},{name:"break-spaces"}],relevance:50,browsers:["E114","Spreview","C114","O100"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/white-space-collapse"}],description:"The white-space-collapse CSS property controls how white space inside an element is collapsed."},{name:"speak-as",atRule:"@counter-style",syntax:"auto | bullets | numbers | words | spell-out | <counter-style-name>",relevance:50,browsers:["S11.1"],description:"The speak-as descriptor specifies how a counter symbol constructed with a given @counter-style will be represented in the spoken form. For example, an author can specify a counter symbol to be either spoken as its numerical value or just represented with an audio cue."},{name:"base-palette",atRule:"@font-palette-values",syntax:"light | dark | <integer [0,∞]>",relevance:50,description:"The base-palette CSS descriptor is used to specify the name or index of a pre-defined palette to be used for creating a new palette. If the specified base-palette does not exist, then the palette defined at index 0 will be used."},{name:"override-colors",atRule:"@font-palette-values",syntax:"[ <integer [0,∞]> <absolute-color-base> ]#",relevance:50,description:"The override-colors CSS descriptor is used to override colors in the chosen base-palette for a color font."},{name:"ascent-override",atRule:"@font-face",status:"experimental",syntax:"normal | <percentage>",relevance:50,description:"Describes the ascent metric of a font."},{name:"descent-override",atRule:"@font-face",status:"experimental",syntax:"normal | <percentage>",relevance:50,description:"Describes the descent metric of a font."},{name:"font-display",atRule:"@font-face",status:"experimental",syntax:"[ auto | block | swap | fallback | optional ]",relevance:74,description:"The font-display descriptor determines how a font face is displayed based on whether and when it is downloaded and ready to use."},{name:"line-gap-override",atRule:"@font-face",status:"experimental",syntax:"normal | <percentage>",relevance:50,description:"Describes the line-gap metric of a font."},{name:"size-adjust",atRule:"@font-face",status:"experimental",syntax:"<percentage>",relevance:50,description:"A multiplier for glyph outlines and metrics of a font."},{name:"bleed",atRule:"@page",syntax:"auto | <length>",relevance:50,description:"The bleed CSS at-rule descriptor, used with the @page at-rule, specifies the extent of the page bleed area outside the page box. This property only has effect if crop marks are enabled using the marks property."},{name:"marks",atRule:"@page",syntax:"none | [ crop || cross ]",relevance:50,description:"The marks CSS at-rule descriptor, used with the @page at-rule, adds crop and/or cross marks to the presentation of the document. Crop marks indicate where the page should be cut. Cross marks are used to align sheets."},{name:"page-orientation",atRule:"@page",syntax:"upright | rotate-left | rotate-right ",relevance:50,description:"The page-orientation CSS descriptor for the @page at-rule controls the rotation of a printed page. It handles the flow of content across pages when the orientation of a page is changed. This behavior differs from the size descriptor in that a user can define the direction in which to rotate the page."},{name:"syntax",atRule:"@property",status:"experimental",syntax:"<string>",relevance:50,description:"Specifies the syntax of the custom property registration represented by the @property rule, controlling how the property’s value is parsed at computed value time."},{name:"inherits",atRule:"@property",status:"experimental",syntax:"true | false",values:[{name:"true"},{name:"false"}],relevance:50,description:"Specifies the inherit flag of the custom property registration represented by the @property rule, controlling whether or not the property inherits by default."},{name:"initial-value",atRule:"@property",status:"experimental",syntax:"<declaration-value>?",relevance:50,description:"Specifies the initial value of the custom property registration represented by the @property rule, controlling the property’s initial value."}],atDirectives:[{name:"@charset",browsers:["E12","FF1.5","S4","C2","IE5.5","O9"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/@charset"}],description:"Defines character set of the document."},{name:"@counter-style",browsers:["E91","FF33","S17","C91","O77"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/@counter-style"}],description:"Defines a custom counter style."},{name:"@font-face",browsers:["E12","FF3.5","S3.1","C1","IE4","O10"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/@font-face"}],description:"Allows for linking to fonts that are automatically activated when needed. This permits authors to work around the limitation of 'web-safe' fonts, allowing for consistent rendering independent of the fonts available in a given user's environment."},{name:"@font-feature-values",browsers:["E111","FF34","S9.1","C111","O97"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/@font-feature-values"}],description:"Defines named values for the indices used to select alternate glyphs for a given font family."},{name:"@import",browsers:["E12","FF1","S1","C1","IE5.5","O3.5"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/@import"}],description:"Includes content of another file."},{name:"@keyframes",browsers:["E12","FF16","S9","C43","IE10","O30"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/@keyframes"}],description:"Defines set of animation key frames."},{name:"@layer",browsers:["E99","FF97","S15.4","C99","O85"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/@layer"}],description:"Declare a cascade layer and the order of precedence in case of multiple cascade layers."},{name:"@media",browsers:["E12","FF1","S3","C1","IE6","O9.2"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/@media"}],description:"Defines a stylesheet for a particular media type."},{name:"@-moz-document",browsers:["FF1.8"],description:"Gecko-specific at-rule that restricts the style rules contained within it based on the URL of the document."},{name:"@-moz-keyframes",browsers:["FF5"],description:"Defines set of animation key frames."},{name:"@-ms-viewport",browsers:["E","IE10"],description:"Specifies the size, zoom factor, and orientation of the viewport."},{name:"@namespace",browsers:["E12","FF1","S1","C1","IE9","O8"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/@namespace"}],description:"Declares a prefix and associates it with a namespace name."},{name:"@-o-keyframes",browsers:["O12"],description:"Defines set of animation key frames."},{name:"@-o-viewport",browsers:["O11"],description:"Specifies the size, zoom factor, and orientation of the viewport."},{name:"@page",browsers:["E12","FF19","S13.1","C2","IE8","O6"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/@page"}],description:"Directive defines various page parameters."},{name:"@property",browsers:["E85","FFpreview","S16.4","C85","O71"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/@property"}],description:"Describes the aspect of custom properties and variables."},{name:"@supports",browsers:["E12","FF22","S9","C28","O12.1"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/@supports"}],description:"A conditional group rule whose condition tests whether the user agent supports CSS property:value pairs."},{name:"@-webkit-keyframes",browsers:["C","S4"],description:"Defines set of animation key frames."}],pseudoClasses:[{name:":active",browsers:["E12","FF1","S1","C1","IE4","O5"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:active"}],description:"Applies while an element is being activated by the user. For example, between the times the user presses the mouse button and releases it."},{name:":any-link",browsers:["E79","FF50","S9","C65","O52"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:any-link"}],description:"Represents an element that acts as the source anchor of a hyperlink. Applies to both visited and unvisited links."},{name:":checked",browsers:["E12","FF1","S3.1","C1","IE9","O9"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:checked"}],description:"Radio and checkbox elements can be toggled by the user. Some menu items are 'checked' when the user selects them. When such elements are toggled 'on' the :checked pseudo-class applies."},{name:":corner-present",browsers:["C","S5"],description:"Non-standard. Indicates whether or not a scrollbar corner is present."},{name:":decrement",browsers:["C","S5"],description:"Non-standard. Applies to buttons and track pieces. Indicates whether or not the button or track piece will decrement the view's position when used."},{name:":default",browsers:["E79","FF4","S5","C10","O10"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:default"}],description:"Applies to the one or more UI elements that are the default among a set of similar elements. Typically applies to context menu items, buttons, and select lists/menus."},{name:":disabled",browsers:["E12","FF1","S3.1","C1","IE9","O9"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:disabled"}],description:"Represents user interface elements that are in a disabled state; such elements have a corresponding enabled state."},{name:":double-button",browsers:["C","S5"],description:"Non-standard. Applies to buttons and track pieces. Applies when both buttons are displayed together at the same end of the scrollbar."},{name:":empty",browsers:["E12","FF1","S3.1","C1","IE9","O9.5"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:empty"}],description:"Represents an element that has no children at all."},{name:":enabled",browsers:["E12","FF1","S3.1","C1","IE9","O9"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:enabled"}],description:"Represents user interface elements that are in an enabled state; such elements have a corresponding disabled state."},{name:":end",browsers:["C","S5"],description:"Non-standard. Applies to buttons and track pieces. Indicates whether the object is placed after the thumb."},{name:":first",browsers:["E12","FF116","S6","C18","IE8","O9.2"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:first"}],description:"When printing double-sided documents, the page boxes on left and right pages may be different. This can be expressed through CSS pseudo-classes defined in the page context."},{name:":first-child",browsers:["E12","FF3","S3.1","C4","IE7","O9.5"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:first-child"}],description:"Same as :nth-child(1). Represents an element that is the first child of some other element."},{name:":first-of-type",browsers:["E12","FF3.5","S3.1","C1","IE9","O9.5"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:first-of-type"}],description:"Same as :nth-of-type(1). Represents an element that is the first sibling of its type in the list of children of its parent element."},{name:":focus",browsers:["E12","FF1","S1","C1","IE8","O7"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:focus"}],description:"Applies while an element has the focus (accepts keyboard or mouse events, or other forms of input)."},{name:":fullscreen",browsers:["E12","FF64","S16.4","C71","IE11","O58"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:fullscreen"}],description:"Matches any element that has its fullscreen flag set."},{name:":future",browsers:["E79","S7","C23","O15"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:future"}],description:"Represents any element that is defined to occur entirely after a :current element."},{name:":horizontal",browsers:["C","S5"],description:"Non-standard. Applies to any scrollbar pieces that have a horizontal orientation."},{name:":host",browsers:["E79","FF63","S10","C54","O41"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:host"}],description:"When evaluated in the context of a shadow tree, matches the shadow tree's host element."},{name:":host()",browsers:["C35","O22"],description:"When evaluated in the context of a shadow tree, it matches the shadow tree's host element if the host element, in its normal context, matches the selector argument."},{name:":host-context()",browsers:["C35","O22"],description:"Tests whether there is an ancestor, outside the shadow tree, which matches a particular selector."},{name:":hover",browsers:["E12","FF1","S2","C1","IE4","O4"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:hover"}],description:"Applies while the user designates an element with a pointing device, but does not necessarily activate it. For example, a visual user agent could apply this pseudo-class when the cursor (mouse pointer) hovers over a box generated by the element."},{name:":increment",browsers:["C","S5"],description:"Non-standard. Applies to buttons and track pieces. Indicates whether or not the button or track piece will increment the view's position when used."},{name:":indeterminate",browsers:["E12","FF2","S3","C1","IE10","O9"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:indeterminate"}],description:"Applies to UI elements whose value is in an indeterminate state."},{name:":in-range",browsers:["E13","FF29","S5.1","C10","O11"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:in-range"}],description:"Used in conjunction with the min and max attributes, whether on a range input, a number field, or any other types that accept those attributes."},{name:":invalid",browsers:["E12","FF4","S5","C10","IE10","O10"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:invalid"}],description:"An element is :valid or :invalid when it is, respectively, valid or invalid with respect to data validity semantics defined by a different specification."},{name:":lang()",browsers:["E","C","FF1","IE8","O8","S3"],description:"Represents an element that is in language specified."},{name:":last-child",browsers:["E12","FF1","S3.1","C1","IE9","O9.5"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:last-child"}],description:"Same as :nth-last-child(1). Represents an element that is the last child of some other element."},{name:":last-of-type",browsers:["E12","FF3.5","S3.1","C1","IE9","O9.5"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:last-of-type"}],description:"Same as :nth-last-of-type(1). Represents an element that is the last sibling of its type in the list of children of its parent element."},{name:":left",browsers:["E12","S5","C6","IE8","O9.2"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:left"}],description:"When printing double-sided documents, the page boxes on left and right pages may be different. This can be expressed through CSS pseudo-classes defined in the page context."},{name:":link",browsers:["E12","FF1","S1","C1","IE3","O3.5"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:link"}],description:"Applies to links that have not yet been visited."},{name:":matches()",browsers:["S9"],description:"Takes a selector list as its argument. It represents an element that is represented by its argument."},{name:":-moz-any()",browsers:["FF4"],description:"Represents an element that is represented by the selector list passed as its argument. Standardized as :matches()."},{name:":-moz-any-link",browsers:["FF1"],description:"Represents an element that acts as the source anchor of a hyperlink. Applies to both visited and unvisited links."},{name:":-moz-broken",browsers:["FF3"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:-moz-broken"}],description:"Non-standard. Matches elements representing broken images."},{name:":-moz-drag-over",browsers:["FF1"],description:"Non-standard. Matches elements when a drag-over event applies to it."},{name:":-moz-first-node",browsers:["FF72"],description:"Non-standard. Represents an element that is the first child node of some other element."},{name:":-moz-focusring",browsers:["FF4"],description:"Non-standard. Matches an element that has focus and focus ring drawing is enabled in the browser."},{name:":-moz-full-screen",browsers:["FF9"],description:"Matches any element that has its fullscreen flag set. Standardized as :fullscreen."},{name:":-moz-last-node",browsers:["FF72"],description:"Non-standard. Represents an element that is the last child node of some other element."},{name:":-moz-loading",browsers:["FF3"],description:"Non-standard. Matches elements, such as images, that haven't started loading yet."},{name:":-moz-only-whitespace",browsers:["FF1"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:-moz-only-whitespace"}],description:"The same as :empty, except that it additionally matches elements that only contain code points affected by whitespace processing. Standardized as :blank."},{name:":-moz-placeholder",browsers:["FF4"],description:"Deprecated. Represents placeholder text in an input field. Use ::-moz-placeholder for Firefox 19+."},{name:":-moz-submit-invalid",browsers:["FF88"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:-moz-submit-invalid"}],description:"Non-standard. Represents any submit button when the contents of the associated form are not valid."},{name:":-moz-suppressed",browsers:["FF3"],description:"Non-standard. Matches elements representing images that have been blocked from loading."},{name:":-moz-ui-invalid",browsers:["FF4"],description:"Non-standard. Represents any validated form element whose value isn't valid "},{name:":-moz-ui-valid",browsers:["FF4"],description:"Non-standard. Represents any validated form element whose value is valid "},{name:":-moz-user-disabled",browsers:["FF3"],description:"Non-standard. Matches elements representing images that have been disabled due to the user's preferences."},{name:":-moz-window-inactive",browsers:["FF4"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:-moz-window-inactive"}],description:"Non-standard. Matches elements in an inactive window."},{name:":-ms-fullscreen",browsers:["IE11"],description:"Matches any element that has its fullscreen flag set."},{name:":-ms-input-placeholder",browsers:["IE10"],description:"Represents placeholder text in an input field. Note: for Edge use the pseudo-element ::-ms-input-placeholder. Standardized as ::placeholder."},{name:":-ms-keyboard-active",browsers:["IE10"],description:"Windows Store apps only. Applies one or more styles to an element when it has focus and the user presses the space bar."},{name:":-ms-lang()",browsers:["E","IE10"],description:"Represents an element that is in the language specified. Accepts a comma separated list of language tokens."},{name:":no-button",browsers:["C","S5"],description:"Non-standard. Applies to track pieces. Applies when there is no button at that end of the track."},{name:":not()",browsers:["E","C","FF1","IE9","O9.5","S2"],description:"The negation pseudo-class, :not(X), is a functional notation taking a simple selector (excluding the negation pseudo-class itself) as an argument. It represents an element that is not represented by its argument."},{name:":nth-child()",browsers:["E","C","FF3.5","IE9","O9.5","S3.1"],description:"Represents an element that has an+b-1 siblings before it in the document tree, for any positive integer or zero value of n, and has a parent element."},{name:":nth-last-child()",browsers:["E","C","FF3.5","IE9","O9.5","S3.1"],description:"Represents an element that has an+b-1 siblings after it in the document tree, for any positive integer or zero value of n, and has a parent element."},{name:":nth-last-of-type()",browsers:["E","C","FF3.5","IE9","O9.5","S3.1"],description:"Represents an element that has an+b-1 siblings with the same expanded element name after it in the document tree, for any zero or positive integer value of n, and has a parent element."},{name:":nth-of-type()",browsers:["E","C","FF3.5","IE9","O9.5","S3.1"],description:"Represents an element that has an+b-1 siblings with the same expanded element name before it in the document tree, for any zero or positive integer value of n, and has a parent element."},{name:":only-child",browsers:["E12","FF1.5","S3.1","C2","IE9","O9.5"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:only-child"}],description:"Represents an element that has a parent element and whose parent element has no other element children. Same as :first-child:last-child or :nth-child(1):nth-last-child(1), but with a lower specificity."},{name:":only-of-type",browsers:["E12","FF3.5","S3.1","C1","IE9","O9.5"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:only-of-type"}],description:"Matches every element that is the only child of its type, of its parent. Same as :first-of-type:last-of-type or :nth-of-type(1):nth-last-of-type(1), but with a lower specificity."},{name:":optional",browsers:["E12","FF4","S5","C10","IE10","O10"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:optional"}],description:"A form element is :required or :optional if a value for it is, respectively, required or optional before the form it belongs to is submitted. Elements that are not form elements are neither required nor optional."},{name:":out-of-range",browsers:["E13","FF29","S5.1","C10","O11"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:out-of-range"}],description:"Used in conjunction with the min and max attributes, whether on a range input, a number field, or any other types that accept those attributes."},{name:":past",browsers:["E79","S7","C23","O15"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:past"}],description:"Represents any element that is defined to occur entirely prior to a :current element."},{name:":read-only",browsers:["E13","FF78","S4","C1","O9"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:read-only"}],description:"An element whose contents are not user-alterable is :read-only. However, elements whose contents are user-alterable (such as text input fields) are considered to be in a :read-write state. In typical documents, most elements are :read-only."},{name:":read-write",browsers:["E13","FF78","S4","C1","O9"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:read-write"}],description:"An element whose contents are not user-alterable is :read-only. However, elements whose contents are user-alterable (such as text input fields) are considered to be in a :read-write state. In typical documents, most elements are :read-only."},{name:":required",browsers:["E12","FF4","S5","C10","IE10","O10"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:required"}],description:"A form element is :required or :optional if a value for it is, respectively, required or optional before the form it belongs to is submitted. Elements that are not form elements are neither required nor optional."},{name:":right",browsers:["E12","S5","C6","IE8","O9.2"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:right"}],description:"When printing double-sided documents, the page boxes on left and right pages may be different. This can be expressed through CSS pseudo-classes defined in the page context."},{name:":root",browsers:["E12","FF1","S1","C1","IE9","O9.5"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:root"}],description:"Represents an element that is the root of the document. In HTML 4, this is always the HTML element."},{name:":scope",browsers:["E79","FF32","S7","C27","O15"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:scope"}],description:"Represents any element that is in the contextual reference element set."},{name:":single-button",browsers:["C","S5"],description:"Non-standard. Applies to buttons and track pieces. Applies when both buttons are displayed separately at either end of the scrollbar."},{name:":start",browsers:["C","S5"],description:"Non-standard. Applies to buttons and track pieces. Indicates whether the object is placed before the thumb."},{name:":target",browsers:["E12","FF1","S1.3","C1","IE9","O9.5"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:target"}],description:"Some URIs refer to a location within a resource. This kind of URI ends with a 'number sign' (#) followed by an anchor identifier (called the fragment identifier)."},{name:":valid",browsers:["E12","FF4","S5","C10","IE10","O10"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:valid"}],description:"An element is :valid or :invalid when it is, respectively, valid or invalid with respect to data validity semantics defined by a different specification."},{name:":vertical",browsers:["C","S5"],description:"Non-standard. Applies to any scrollbar pieces that have a vertical orientation."},{name:":visited",browsers:["E12","FF1","S1","C1","IE4","O3.5"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:visited"}],description:"Applies once the link has been visited by the user."},{name:":-webkit-any()",browsers:["C","S5"],description:"Represents an element that is represented by the selector list passed as its argument. Standardized as :matches()."},{name:":-webkit-full-screen",browsers:["C","S6"],description:"Matches any element that has its fullscreen flag set. Standardized as :fullscreen."},{name:":window-inactive",browsers:["C","S3"],description:"Non-standard. Applies to all scrollbar pieces. Indicates whether or not the window containing the scrollbar is currently active."},{name:":current",status:"experimental",description:"The :current CSS pseudo-class selector is a time-dimensional pseudo-class that represents the element, or an ancestor of the element, that is currently being displayed"},{name:":blank",status:"experimental",references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:blank"}],description:"The :blank CSS pseudo-class selects empty user input elements (eg. <input> or <textarea>)."},{name:":defined",status:"experimental",browsers:["E79","FF63","S10","C54","O41"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:defined"}],description:"The :defined CSS pseudo-class represents any element that has been defined. This includes any standard element built in to the browser, and custom elements that have been successfully defined (i.e. with the CustomElementRegistry.define() method)."},{name:":dir",browsers:["E120","FF49","S16.4","C120","O106"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:dir"}],description:"The :dir() CSS pseudo-class matches elements based on the directionality of the text contained in them."},{name:":focus-visible",browsers:["E86","FF85","S15.4","C86","O72"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:focus-visible"}],description:"The :focus-visible pseudo-class applies while an element matches the :focus pseudo-class and the UA determines via heuristics that the focus should be made evident on the element."},{name:":focus-within",browsers:["E79","FF52","S10.1","C60","O47"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:focus-within"}],description:"The :focus-within pseudo-class applies to any element for which the :focus pseudo class applies as well as to an element whose descendant in the flat tree (including non-element nodes, such as text nodes) matches the conditions for matching :focus."},{name:":has",status:"experimental",browsers:["E105","FF121","S15.4","C105","O91"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:has"}],description:":The :has() CSS pseudo-class represents an element if any of the selectors passed as parameters (relative to the :scope of the given element), match at least one element."},{name:":is",status:"experimental",browsers:["E88","FF78","S14","C88","O74"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:is"}],description:"The :is() CSS pseudo-class function takes a selector list as its argument, and selects any element that can be selected by one of the selectors in that list. This is useful for writing large selectors in a more compact form."},{name:":local-link",status:"experimental",description:"The :local-link CSS pseudo-class represents an link to the same document"},{name:":paused",status:"experimental",browsers:["S15.4"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:paused"}],description:"The :paused CSS pseudo-class selector is a resource state pseudo-class that will match an audio, video, or similar resource that is capable of being “played” or “paused”, when that element is “paused”."},{name:":placeholder-shown",status:"experimental",browsers:["E79","FF51","S9","C47","IE10","O34"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:placeholder-shown"}],description:"The :placeholder-shown CSS pseudo-class represents any <input> or <textarea> element that is currently displaying placeholder text."},{name:":playing",status:"experimental",browsers:["S15.4"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:playing"}],description:"The :playing CSS pseudo-class selector is a resource state pseudo-class that will match an audio, video, or similar resource that is capable of being “played” or “paused”, when that element is “playing”. "},{name:":target-within",status:"experimental",references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:target-within"}],description:"The :target-within CSS pseudo-class represents an element that is a target element or contains an element that is a target. A target element is a unique element with an id matching the URL's fragment."},{name:":user-invalid",status:"experimental",browsers:["E119","FF88","S16.5","C119","O105"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:user-invalid"}],description:"The :user-invalid CSS pseudo-class represents any validated form element whose value isn't valid based on their validation constraints, after the user has interacted with it."},{name:":user-valid",status:"experimental",browsers:["E119","FF88","S16.5","C119","O105"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:user-valid"}],description:"The :user-valid CSS pseudo-class represents any validated form element whose value validates correctly based on its validation constraints. However, unlike :valid it only matches once the user has interacted with it."},{name:":where",status:"experimental",browsers:["E88","FF78","S14","C88","O74"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:where"}],description:"The :where() CSS pseudo-class function takes a selector list as its argument, and selects any element that can be selected by one of the selectors in that list."},{name:":picture-in-picture",status:"experimental",browsers:["E110","S13.1","C110","O96"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:picture-in-picture"}],description:"The :picture-in-picture CSS pseudo-class matches the element which is currently in picture-in-picture mode."}],pseudoElements:[{name:"::after",browsers:["E12","FF1.5","S4","C1","IE9","O7"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/::after"}],description:"Represents a styleable child pseudo-element immediately after the originating element's actual content."},{name:"::backdrop",browsers:["E79","FF47","S15.4","C37","IE11","O24"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/::backdrop"}],description:"Used to create a backdrop that hides the underlying document for an element in a top layer (such as an element that is displayed fullscreen)."},{name:"::before",browsers:["E12","FF1.5","S4","C1","IE9","O7"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/::before"}],description:"Represents a styleable child pseudo-element immediately before the originating element's actual content."},{name:"::content",browsers:["C35","O22"],description:"Deprecated. Matches the distribution list itself, on elements that have one. Use ::slotted for forward compatibility."},{name:"::cue",browsers:["E79","FF55","S7","C26","O15"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/::cue"}]},{name:"::cue()",browsers:["C","O16","S6"]},{name:"::cue-region",browsers:["C","O16","S6"]},{name:"::cue-region()",browsers:["C","O16","S6"]},{name:"::first-letter",browsers:["E12","FF1","S1","C1","IE9","O7"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/::first-letter"}],description:"Represents the first letter of an element, if it is not preceded by any other content (such as images or inline tables) on its line."},{name:"::first-line",browsers:["E12","FF1","S1","C1","IE9","O7"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/::first-line"}],description:"Describes the contents of the first formatted line of its originating element."},{name:"::-moz-focus-inner",browsers:["FF72"]},{name:"::-moz-focus-outer",browsers:["FF4"]},{name:"::-moz-list-bullet",browsers:["FF72"],description:"Used to style the bullet of a list element. Similar to the standardized ::marker."},{name:"::-moz-list-number",browsers:["FF72"],description:"Used to style the numbers of a list element. Similar to the standardized ::marker."},{name:"::-moz-placeholder",browsers:["FF19"],description:"Represents placeholder text in an input field"},{name:"::-moz-progress-bar",browsers:["FF72"],description:"Represents the bar portion of a progress bar."},{name:"::-moz-selection",browsers:["FF1"],description:"Represents the portion of a document that has been highlighted by the user."},{name:"::-ms-backdrop",browsers:["IE11"],description:"Used to create a backdrop that hides the underlying document for an element in a top layer (such as an element that is displayed fullscreen)."},{name:"::-ms-browse",browsers:["E","IE10"],description:"Represents the browse button of an input type=file control."},{name:"::-ms-check",browsers:["E","IE10"],description:"Represents the check of a checkbox or radio button input control."},{name:"::-ms-clear",browsers:["E","IE10"],description:"Represents the clear button of a text input control"},{name:"::-ms-expand",browsers:["E","IE10"],description:"Represents the drop-down button of a select control."},{name:"::-ms-fill",browsers:["E","IE10"],description:"Represents the bar portion of a progress bar."},{name:"::-ms-fill-lower",browsers:["E","IE10"],description:"Represents the portion of the slider track from its smallest value up to the value currently selected by the thumb. In a left-to-right layout, this is the portion of the slider track to the left of the thumb."},{name:"::-ms-fill-upper",browsers:["E","IE10"],description:"Represents the portion of the slider track from the value currently selected by the thumb up to the slider's largest value. In a left-to-right layout, this is the portion of the slider track to the right of the thumb."},{name:"::-ms-reveal",browsers:["E","IE10"],description:"Represents the password reveal button of an input type=password control."},{name:"::-ms-thumb",browsers:["E","IE10"],description:"Represents the portion of range input control (also known as a slider control) that the user drags."},{name:"::-ms-ticks-after",browsers:["E","IE10"],description:"Represents the tick marks of a slider that begin just after the thumb and continue up to the slider's largest value. In a left-to-right layout, these are the ticks to the right of the thumb."},{name:"::-ms-ticks-before",browsers:["E","IE10"],description:"Represents the tick marks of a slider that represent its smallest values up to the value currently selected by the thumb. In a left-to-right layout, these are the ticks to the left of the thumb."},{name:"::-ms-tooltip",browsers:["E","IE10"],description:"Represents the tooltip of a slider (input type=range)."},{name:"::-ms-track",browsers:["E","IE10"],description:"Represents the track of a slider."},{name:"::-ms-value",browsers:["E","IE10"],description:"Represents the content of a text or password input control, or a select control."},{name:"::selection",browsers:["E12","FF62","S1.1","C1","IE9","O9.5"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/::selection"}],description:"Represents the portion of a document that has been highlighted by the user."},{name:"::shadow",browsers:["C35","O22"],description:"Matches the shadow root if an element has a shadow tree."},{name:"::-webkit-file-upload-button",browsers:["C","O","S6"]},{name:"::-webkit-inner-spin-button",browsers:["E79","S5","C6","O15"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/::-webkit-inner-spin-button"}]},{name:"::-webkit-input-placeholder",browsers:["C","S4"]},{name:"::-webkit-keygen-select",browsers:["C","O","S6"]},{name:"::-webkit-meter-bar",browsers:["E79","S5.1","C12","O15"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/::-webkit-meter-bar"}]},{name:"::-webkit-meter-even-less-good-value",browsers:["E79","S5.1","C12","O15"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/::-webkit-meter-even-less-good-value"}]},{name:"::-webkit-meter-optimum-value",browsers:["E79","S5.1","C12","O15"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/::-webkit-meter-optimum-value"}]},{name:"::-webkit-meter-suboptimum-value",browsers:["E79","S5.1","C12","O15"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/::-webkit-meter-suboptimum-value"}]},{name:"::-webkit-outer-spin-button",browsers:["C","O","S6"]},{name:"::-webkit-progress-bar",browsers:["E79","S7","C25","O15"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/::-webkit-progress-bar"}]},{name:"::-webkit-progress-inner-element",browsers:["E79","S7","C23","O15"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/::-webkit-progress-inner-element"}]},{name:"::-webkit-progress-value",browsers:["E79","S7","C25","O15"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/::-webkit-progress-value"}]},{name:"::-webkit-resizer",browsers:["E79","S4","C2","O15"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/::-webkit-scrollbar"}]},{name:"::-webkit-scrollbar",browsers:["E79","S4","C2","O15"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/::-webkit-scrollbar"}]},{name:"::-webkit-scrollbar-button",browsers:["E79","S4","C2","O15"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/::-webkit-scrollbar"}]},{name:"::-webkit-scrollbar-corner",browsers:["E79","S4","C2","O15"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/::-webkit-scrollbar"}]},{name:"::-webkit-scrollbar-thumb",browsers:["E79","S4","C2","O15"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/::-webkit-scrollbar"}]},{name:"::-webkit-scrollbar-track",browsers:["E79","S4","C2","O15"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/::-webkit-scrollbar"}]},{name:"::-webkit-scrollbar-track-piece",browsers:["E79","S4","C2","O15"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/::-webkit-scrollbar"}]},{name:"::-webkit-search-cancel-button",browsers:["E79","S3","C1","O15"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/::-webkit-search-cancel-button"}]},{name:"::-webkit-search-decoration",browsers:["C","S4"]},{name:"::-webkit-search-results-button",browsers:["E79","S3","C1","O15"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/::-webkit-search-results-button"}]},{name:"::-webkit-search-results-decoration",browsers:["C","S4"]},{name:"::-webkit-slider-runnable-track",browsers:["E83","C83","O69"]},{name:"::-webkit-slider-thumb",browsers:["E83","C83","O69"]},{name:"::-webkit-textfield-decoration-container",browsers:["C","O","S6"]},{name:"::-webkit-validation-bubble",browsers:["C","O","S6"]},{name:"::-webkit-validation-bubble-arrow",browsers:["C","O","S6"]},{name:"::-webkit-validation-bubble-arrow-clipper",browsers:["C","O","S6"]},{name:"::-webkit-validation-bubble-heading",browsers:["C","O","S6"]},{name:"::-webkit-validation-bubble-message",browsers:["C","O","S6"]},{name:"::-webkit-validation-bubble-text-block",browsers:["C","O","S6"]},{name:"::target-text",status:"experimental",browsers:["E89","C89","O75"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/::target-text"}],description:"The ::target-text CSS pseudo-element represents the text that has been scrolled to if the browser supports scroll-to-text fragments. It allows authors to choose how to highlight that section of text."},{name:"::-moz-range-progress",status:"nonstandard",browsers:["FF22"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/::-moz-range-progress"}],description:'The ::-moz-range-progress CSS pseudo-element is a Mozilla extension that represents the lower portion of the track (i.e., groove) in which the indicator slides in an <input> of type="range". This portion corresponds to values lower than the value currently selected by the thumb (i.e., virtual knob).'},{name:"::-moz-range-thumb",status:"nonstandard",browsers:["FF21"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/::-moz-range-thumb"}],description:\`The ::-moz-range-thumb CSS pseudo-element is a Mozilla extension that represents the thumb (i.e., virtual knob) of an <input> of type="range". The user can move the thumb along the input's track to alter its numerical value.\`},{name:"::-moz-range-track",status:"nonstandard",browsers:["FF21"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/::-moz-range-track"}],description:'The ::-moz-range-track CSS pseudo-element is a Mozilla extension that represents the track (i.e., groove) in which the indicator slides in an <input> of type="range".'},{name:"::-webkit-progress-inner-value",status:"nonstandard",description:\`The ::-webkit-progress-value CSS pseudo-element represents the filled-in portion of the bar of a <progress> element. It is a child of the ::-webkit-progress-bar pseudo-element.
83
83
 
84
- In order to let ::-webkit-progress-value take effect, -webkit-appearance needs to be set to none on the <progress> element.\`},{name:"::grammar-error",status:"experimental",browsers:["E121","Spreview","C121"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/::grammar-error"}],description:"The ::grammar-error CSS pseudo-element represents a text segment which the user agent has flagged as grammatically incorrect."},{name:"::marker",browsers:["E86","FF68","S11.1","C86","O72"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/::marker"}],description:"The ::marker CSS pseudo-element selects the marker box of a list item, which typically contains a bullet or number. It works on any element or pseudo-element set to display: list-item, such as the <li> and <summary> elements."},{name:"::part",status:"experimental",browsers:["E79","FF72","S13.1","C73","O60"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/::part"}],description:"The ::part CSS pseudo-element represents any element within a shadow tree that has a matching part attribute."},{name:"::placeholder",browsers:["E79","FF51","S10.1","C57","O44"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/::placeholder"}],description:"The ::placeholder CSS pseudo-element represents the placeholder text of a form element."},{name:"::slotted",browsers:["E79","FF63","S10","C50","O37"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/::slotted"}],description:"The :slotted() CSS pseudo-element represents any element that has been placed into a slot inside an HTML template."},{name:"::spelling-error",status:"experimental",browsers:["E121","Spreview","C121"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/::spelling-error"}],description:"The ::spelling-error CSS pseudo-element represents a text segment which the user agent has flagged as incorrectly spelled."},{name:"::view-transition",status:"experimental",browsers:["E109","C109","O95"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/::view-transition"}],description:"The ::view-transition CSS pseudo-element represents the root of the view transitions overlay, which contains all view transitions and sits over the top of all other page content."},{name:"::view-transition-group",status:"experimental",browsers:["E109","C109","O95"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/::view-transition-group"}],description:"The ::view-transition-group CSS pseudo-element represents a single view transition group."},{name:"::view-transition-image-pair",status:"experimental",browsers:["E109","C109","O95"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/::view-transition-image-pair"}],description:\`The ::view-transition-image-pair CSS pseudo-element represents a container for a view transition's "old" and "new" view states — before and after the transition.\`},{name:"::view-transition-new",status:"experimental",browsers:["E109","C109","O95"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/::view-transition-new"}],description:'The ::view-transition-new CSS pseudo-element represents the "new" view state of a view transition — a live representation of the new view, after the transition.'},{name:"::view-transition-old",status:"experimental",browsers:["E109","C109","O95"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/::view-transition-old"}],description:'The ::view-transition-old CSS pseudo-element represents the "old" view state of a view transition — a static screenshot of the old view, before the transition.'}]},gh=class{constructor(e){this._properties=[],this._atDirectives=[],this._pseudoClasses=[],this._pseudoElements=[],this.addData(e)}provideProperties(){return this._properties}provideAtDirectives(){return this._atDirectives}providePseudoClasses(){return this._pseudoClasses}providePseudoElements(){return this._pseudoElements}addData(e){if(Array.isArray(e.properties))for(const t of e.properties)_f(t)&&this._properties.push(t);if(Array.isArray(e.atDirectives))for(const t of e.atDirectives)kf(t)&&this._atDirectives.push(t);if(Array.isArray(e.pseudoClasses))for(const t of e.pseudoClasses)Ef(t)&&this._pseudoClasses.push(t);if(Array.isArray(e.pseudoElements))for(const t of e.pseudoElements)Ff(t)&&this._pseudoElements.push(t)}};function _f(e){return typeof e.name=="string"}function kf(e){return typeof e.name=="string"}function Ef(e){return typeof e.name=="string"}function Ff(e){return typeof e.name=="string"}var Ms=class{constructor(e){this.dataProviders=[],this._propertySet={},this._atDirectiveSet={},this._pseudoClassSet={},this._pseudoElementSet={},this._properties=[],this._atDirectives=[],this._pseudoClasses=[],this._pseudoElements=[],this.setDataProviders(e?.useDefaultDataProvider!==!1,e?.customDataProviders||[])}setDataProviders(e,t){this.dataProviders=[],e&&this.dataProviders.push(new gh(Cf)),this.dataProviders.push(...t),this.collectData()}collectData(){this._propertySet={},this._atDirectiveSet={},this._pseudoClassSet={},this._pseudoElementSet={},this.dataProviders.forEach(e=>{e.provideProperties().forEach(t=>{this._propertySet[t.name]||(this._propertySet[t.name]=t)}),e.provideAtDirectives().forEach(t=>{this._atDirectiveSet[t.name]||(this._atDirectiveSet[t.name]=t)}),e.providePseudoClasses().forEach(t=>{this._pseudoClassSet[t.name]||(this._pseudoClassSet[t.name]=t)}),e.providePseudoElements().forEach(t=>{this._pseudoElementSet[t.name]||(this._pseudoElementSet[t.name]=t)})}),this._properties=xr(this._propertySet),this._atDirectives=xr(this._atDirectiveSet),this._pseudoClasses=xr(this._pseudoClassSet),this._pseudoElements=xr(this._pseudoElementSet)}getProperty(e){return this._propertySet[e]}getAtDirective(e){return this._atDirectiveSet[e]}getPseudoClass(e){return this._pseudoClassSet[e]}getPseudoElement(e){return this._pseudoElementSet[e]}getProperties(){return this._properties}getAtDirectives(){return this._atDirectives}getPseudoClasses(){return this._pseudoClasses}getPseudoElements(){return this._pseudoElements}isKnownProperty(e){return e.toLowerCase()in this._propertySet}isStandardProperty(e){return this.isKnownProperty(e)&&(!this._propertySet[e.toLowerCase()].status||this._propertySet[e.toLowerCase()].status==="standard")}};function Rf(e,t,n){function r(s){const a=i(s);let l;for(let o=a.length-1;o>=0;o--)l=br.create(X.create(e.positionAt(a[o][0]),e.positionAt(a[o][1])),l);return l||(l=br.create(X.create(s,s))),l}return t.map(r);function i(s){const a=e.offsetAt(s);let l=n.findChildAtOffset(a,!0);if(!l)return[];const o=[];for(;l;){if(l.parent&&l.offset===l.parent.offset&&l.end===l.parent.end){l=l.parent;continue}l.type===b.Declarations&&a>l.offset&&a<l.end&&o.push([l.offset+1,l.end-1]),o.push([l.offset,l.end]),l=l.parent}return o}}var Nf=class extends vs{constructor(e){super(e,!0)}isRawStringDocumentLinkNode(e){return super.isRawStringDocumentLinkNode(e)||e.type===b.Use||e.type===b.Forward}async mapReference(e,t){if(this.fileSystemProvider&&e&&t){const n=Df(e);for(const r of n)if(await this.fileExists(r))return r}return e}async resolveReference(e,t,n,r=!1){if(!pe(e,"sass:"))return super.resolveReference(e,t,n,r)}};function Df(e){if(e.endsWith(".css"))return[e];if(e.endsWith("/"))return[e+"index.scss",e+"_index.scss"];const t=cs.parse(e.replace(/\\.scss$/,"")),n=wt.basename(t),r=wt.dirname(t);return n.startsWith("_")?[wt.joinPath(r,n+".scss").toString(!0)]:[wt.joinPath(r,n+".scss").toString(!0),wt.joinPath(r,"_"+n+".scss").toString(!0),e+"/index.scss",e+"/_index.scss",wt.joinPath(r,n+".css").toString(!0)]}function If(e){return new gh(e)}function Ls(e,t,n,r,i,s,a){return{configure:l=>{s.configure(l),t.configure(l?.completion),n.configure(l?.hover),r.configure(l?.importAliases)},setDataProviders:a.setDataProviders.bind(a),doValidation:s.doValidation.bind(s),parseStylesheet:e.parseStylesheet.bind(e),doComplete:t.doComplete.bind(t),doComplete2:t.doComplete2.bind(t),setCompletionParticipants:t.setCompletionParticipants.bind(t),doHover:n.doHover.bind(n),format:vf,findDefinition:r.findDefinition.bind(r),findReferences:r.findReferences.bind(r),findDocumentHighlights:r.findDocumentHighlights.bind(r),findDocumentLinks:r.findDocumentLinks.bind(r),findDocumentLinks2:r.findDocumentLinks2.bind(r),findDocumentSymbols:r.findSymbolInformations.bind(r),findDocumentSymbols2:r.findDocumentSymbols.bind(r),doCodeActions:i.doCodeActions.bind(i),doCodeActions2:i.doCodeActions2.bind(i),findDocumentColors:r.findDocumentColors.bind(r),getColorPresentations:r.getColorPresentations.bind(r),prepareRename:r.prepareRename.bind(r),doRename:r.doRename.bind(r),getFoldingRanges:mf,getSelectionRanges:Rf}}var zs={};function Af(e=zs){const t=new Ms(e);return Ls(new Sr,new us(null,e,t),new bs(e&&e.clientCapabilities,t),new vs(e&&e.fileSystemProvider,!1),new ws(t),new Ss(t),t)}function Mf(e=zs){const t=new Ms(e);return Ls(new lf,new yt(e,t),new bs(e&&e.clientCapabilities,t),new Nf(e&&e.fileSystemProvider),new ws(t),new Ss(t),t)}function Lf(e=zs){const t=new Ms(e);return Ls(new pf,new As(e,t),new bs(e&&e.clientCapabilities,t),new vs(e&&e.fileSystemProvider,!0),new ws(t),new Ss(t),t)}var zf=class{constructor(e,t){this._ctx=e,this._languageSettings=t.options,this._languageId=t.languageId;const n=t.options.data,r=n?.useDefaultDataProvider,i=[];if(n?.dataProviders)for(const a in n.dataProviders)i.push(If(n.dataProviders[a]));const s={customDataProviders:i,useDefaultDataProvider:r};switch(this._languageId){case"css":this._languageService=Af(s);break;case"less":this._languageService=Lf(s);break;case"scss":this._languageService=Mf(s);break;default:throw new Error("Invalid language id: "+this._languageId)}this._languageService.configure(this._languageSettings)}async doValidation(e){const t=this._getTextDocument(e);if(t){const n=this._languageService.parseStylesheet(t),r=this._languageService.doValidation(t,n);return Promise.resolve(r)}return Promise.resolve([])}async doComplete(e,t){const n=this._getTextDocument(e);if(!n)return null;const r=this._languageService.parseStylesheet(n),i=this._languageService.doComplete(n,t,r);return Promise.resolve(i)}async doHover(e,t){const n=this._getTextDocument(e);if(!n)return null;const r=this._languageService.parseStylesheet(n),i=this._languageService.doHover(n,t,r);return Promise.resolve(i)}async findDefinition(e,t){const n=this._getTextDocument(e);if(!n)return null;const r=this._languageService.parseStylesheet(n),i=this._languageService.findDefinition(n,t,r);return Promise.resolve(i)}async findReferences(e,t){const n=this._getTextDocument(e);if(!n)return[];const r=this._languageService.parseStylesheet(n),i=this._languageService.findReferences(n,t,r);return Promise.resolve(i)}async findDocumentHighlights(e,t){const n=this._getTextDocument(e);if(!n)return[];const r=this._languageService.parseStylesheet(n),i=this._languageService.findDocumentHighlights(n,t,r);return Promise.resolve(i)}async findDocumentSymbols(e){const t=this._getTextDocument(e);if(!t)return[];const n=this._languageService.parseStylesheet(t),r=this._languageService.findDocumentSymbols(t,n);return Promise.resolve(r)}async doCodeActions(e,t,n){const r=this._getTextDocument(e);if(!r)return[];const i=this._languageService.parseStylesheet(r),s=this._languageService.doCodeActions(r,t,n,i);return Promise.resolve(s)}async findDocumentColors(e){const t=this._getTextDocument(e);if(!t)return[];const n=this._languageService.parseStylesheet(t),r=this._languageService.findDocumentColors(t,n);return Promise.resolve(r)}async getColorPresentations(e,t,n){const r=this._getTextDocument(e);if(!r)return[];const i=this._languageService.parseStylesheet(r),s=this._languageService.getColorPresentations(r,i,t,n);return Promise.resolve(s)}async getFoldingRanges(e,t){const n=this._getTextDocument(e);if(!n)return[];const r=this._languageService.getFoldingRanges(n,t);return Promise.resolve(r)}async getSelectionRanges(e,t){const n=this._getTextDocument(e);if(!n)return[];const r=this._languageService.parseStylesheet(n),i=this._languageService.getSelectionRanges(n,t,r);return Promise.resolve(i)}async doRename(e,t,n){const r=this._getTextDocument(e);if(!r)return null;const i=this._languageService.parseStylesheet(r),s=this._languageService.doRename(r,t,n,i);return Promise.resolve(s)}async format(e,t,n){const r=this._getTextDocument(e);if(!r)return[];const i={...this._languageSettings.format,...n},s=this._languageService.format(r,t,i);return Promise.resolve(s)}_getTextDocument(e){const t=this._ctx.getMirrorModels();for(const n of t)if(n.uri.toString()===e)return ss.create(e,this._languageId,n.version,n.getValue());return null}};self.onmessage=()=>{nl((e,t)=>new zf(e,t))}})();
84
+ In order to let ::-webkit-progress-value take effect, -webkit-appearance needs to be set to none on the <progress> element.\`},{name:"::grammar-error",status:"experimental",browsers:["E121","Spreview","C121"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/::grammar-error"}],description:"The ::grammar-error CSS pseudo-element represents a text segment which the user agent has flagged as grammatically incorrect."},{name:"::marker",browsers:["E86","FF68","S11.1","C86","O72"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/::marker"}],description:"The ::marker CSS pseudo-element selects the marker box of a list item, which typically contains a bullet or number. It works on any element or pseudo-element set to display: list-item, such as the <li> and <summary> elements."},{name:"::part",status:"experimental",browsers:["E79","FF72","S13.1","C73","O60"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/::part"}],description:"The ::part CSS pseudo-element represents any element within a shadow tree that has a matching part attribute."},{name:"::placeholder",browsers:["E79","FF51","S10.1","C57","O44"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/::placeholder"}],description:"The ::placeholder CSS pseudo-element represents the placeholder text of a form element."},{name:"::slotted",browsers:["E79","FF63","S10","C50","O37"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/::slotted"}],description:"The :slotted() CSS pseudo-element represents any element that has been placed into a slot inside an HTML template."},{name:"::spelling-error",status:"experimental",browsers:["E121","Spreview","C121"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/::spelling-error"}],description:"The ::spelling-error CSS pseudo-element represents a text segment which the user agent has flagged as incorrectly spelled."},{name:"::view-transition",status:"experimental",browsers:["E109","C109","O95"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/::view-transition"}],description:"The ::view-transition CSS pseudo-element represents the root of the view transitions overlay, which contains all view transitions and sits over the top of all other page content."},{name:"::view-transition-group",status:"experimental",browsers:["E109","C109","O95"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/::view-transition-group"}],description:"The ::view-transition-group CSS pseudo-element represents a single view transition group."},{name:"::view-transition-image-pair",status:"experimental",browsers:["E109","C109","O95"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/::view-transition-image-pair"}],description:\`The ::view-transition-image-pair CSS pseudo-element represents a container for a view transition's "old" and "new" view states — before and after the transition.\`},{name:"::view-transition-new",status:"experimental",browsers:["E109","C109","O95"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/::view-transition-new"}],description:'The ::view-transition-new CSS pseudo-element represents the "new" view state of a view transition — a live representation of the new view, after the transition.'},{name:"::view-transition-old",status:"experimental",browsers:["E109","C109","O95"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/::view-transition-old"}],description:'The ::view-transition-old CSS pseudo-element represents the "old" view state of a view transition — a static screenshot of the old view, before the transition.'}]},gh=class{constructor(e){this._properties=[],this._atDirectives=[],this._pseudoClasses=[],this._pseudoElements=[],this.addData(e)}provideProperties(){return this._properties}provideAtDirectives(){return this._atDirectives}providePseudoClasses(){return this._pseudoClasses}providePseudoElements(){return this._pseudoElements}addData(e){if(Array.isArray(e.properties))for(const t of e.properties)_f(t)&&this._properties.push(t);if(Array.isArray(e.atDirectives))for(const t of e.atDirectives)kf(t)&&this._atDirectives.push(t);if(Array.isArray(e.pseudoClasses))for(const t of e.pseudoClasses)Ef(t)&&this._pseudoClasses.push(t);if(Array.isArray(e.pseudoElements))for(const t of e.pseudoElements)Ff(t)&&this._pseudoElements.push(t)}};function _f(e){return typeof e.name=="string"}function kf(e){return typeof e.name=="string"}function Ef(e){return typeof e.name=="string"}function Ff(e){return typeof e.name=="string"}var Ms=class{constructor(e){this.dataProviders=[],this._propertySet={},this._atDirectiveSet={},this._pseudoClassSet={},this._pseudoElementSet={},this._properties=[],this._atDirectives=[],this._pseudoClasses=[],this._pseudoElements=[],this.setDataProviders(e?.useDefaultDataProvider!==!1,e?.customDataProviders||[])}setDataProviders(e,t){this.dataProviders=[],e&&this.dataProviders.push(new gh(Cf)),this.dataProviders.push(...t),this.collectData()}collectData(){this._propertySet={},this._atDirectiveSet={},this._pseudoClassSet={},this._pseudoElementSet={},this.dataProviders.forEach(e=>{e.provideProperties().forEach(t=>{this._propertySet[t.name]||(this._propertySet[t.name]=t)}),e.provideAtDirectives().forEach(t=>{this._atDirectiveSet[t.name]||(this._atDirectiveSet[t.name]=t)}),e.providePseudoClasses().forEach(t=>{this._pseudoClassSet[t.name]||(this._pseudoClassSet[t.name]=t)}),e.providePseudoElements().forEach(t=>{this._pseudoElementSet[t.name]||(this._pseudoElementSet[t.name]=t)})}),this._properties=Sr(this._propertySet),this._atDirectives=Sr(this._atDirectiveSet),this._pseudoClasses=Sr(this._pseudoClassSet),this._pseudoElements=Sr(this._pseudoElementSet)}getProperty(e){return this._propertySet[e]}getAtDirective(e){return this._atDirectiveSet[e]}getPseudoClass(e){return this._pseudoClassSet[e]}getPseudoElement(e){return this._pseudoElementSet[e]}getProperties(){return this._properties}getAtDirectives(){return this._atDirectives}getPseudoClasses(){return this._pseudoClasses}getPseudoElements(){return this._pseudoElements}isKnownProperty(e){return e.toLowerCase()in this._propertySet}isStandardProperty(e){return this.isKnownProperty(e)&&(!this._propertySet[e.toLowerCase()].status||this._propertySet[e.toLowerCase()].status==="standard")}};function Rf(e,t,n){function r(s){const a=i(s);let l;for(let o=a.length-1;o>=0;o--)l=vr.create(X.create(e.positionAt(a[o][0]),e.positionAt(a[o][1])),l);return l||(l=vr.create(X.create(s,s))),l}return t.map(r);function i(s){const a=e.offsetAt(s);let l=n.findChildAtOffset(a,!0);if(!l)return[];const o=[];for(;l;){if(l.parent&&l.offset===l.parent.offset&&l.end===l.parent.end){l=l.parent;continue}l.type===b.Declarations&&a>l.offset&&a<l.end&&o.push([l.offset+1,l.end-1]),o.push([l.offset,l.end]),l=l.parent}return o}}var Nf=class extends vs{constructor(e){super(e,!0)}isRawStringDocumentLinkNode(e){return super.isRawStringDocumentLinkNode(e)||e.type===b.Use||e.type===b.Forward}async mapReference(e,t){if(this.fileSystemProvider&&e&&t){const n=Df(e);for(const r of n)if(await this.fileExists(r))return r}return e}async resolveReference(e,t,n,r=!1){if(!pe(e,"sass:"))return super.resolveReference(e,t,n,r)}};function Df(e){if(e.endsWith(".css"))return[e];if(e.endsWith("/"))return[e+"index.scss",e+"_index.scss"];const t=cs.parse(e.replace(/\\.scss$/,"")),n=wt.basename(t),r=wt.dirname(t);return n.startsWith("_")?[wt.joinPath(r,n+".scss").toString(!0)]:[wt.joinPath(r,n+".scss").toString(!0),wt.joinPath(r,"_"+n+".scss").toString(!0),e+"/index.scss",e+"/_index.scss",wt.joinPath(r,n+".css").toString(!0)]}function If(e){return new gh(e)}function Ls(e,t,n,r,i,s,a){return{configure:l=>{s.configure(l),t.configure(l?.completion),n.configure(l?.hover),r.configure(l?.importAliases)},setDataProviders:a.setDataProviders.bind(a),doValidation:s.doValidation.bind(s),parseStylesheet:e.parseStylesheet.bind(e),doComplete:t.doComplete.bind(t),doComplete2:t.doComplete2.bind(t),setCompletionParticipants:t.setCompletionParticipants.bind(t),doHover:n.doHover.bind(n),format:vf,findDefinition:r.findDefinition.bind(r),findReferences:r.findReferences.bind(r),findDocumentHighlights:r.findDocumentHighlights.bind(r),findDocumentLinks:r.findDocumentLinks.bind(r),findDocumentLinks2:r.findDocumentLinks2.bind(r),findDocumentSymbols:r.findSymbolInformations.bind(r),findDocumentSymbols2:r.findDocumentSymbols.bind(r),doCodeActions:i.doCodeActions.bind(i),doCodeActions2:i.doCodeActions2.bind(i),findDocumentColors:r.findDocumentColors.bind(r),getColorPresentations:r.getColorPresentations.bind(r),prepareRename:r.prepareRename.bind(r),doRename:r.doRename.bind(r),getFoldingRanges:mf,getSelectionRanges:Rf}}var zs={};function Af(e=zs){const t=new Ms(e);return Ls(new Cr,new us(null,e,t),new bs(e&&e.clientCapabilities,t),new vs(e&&e.fileSystemProvider,!1),new ws(t),new Ss(t),t)}function Mf(e=zs){const t=new Ms(e);return Ls(new lf,new yt(e,t),new bs(e&&e.clientCapabilities,t),new Nf(e&&e.fileSystemProvider),new ws(t),new Ss(t),t)}function Lf(e=zs){const t=new Ms(e);return Ls(new pf,new As(e,t),new bs(e&&e.clientCapabilities,t),new vs(e&&e.fileSystemProvider,!0),new ws(t),new Ss(t),t)}var zf=class{constructor(e,t){this._ctx=e,this._languageSettings=t.options,this._languageId=t.languageId;const n=t.options.data,r=n?.useDefaultDataProvider,i=[];if(n?.dataProviders)for(const a in n.dataProviders)i.push(If(n.dataProviders[a]));const s={customDataProviders:i,useDefaultDataProvider:r};switch(this._languageId){case"css":this._languageService=Af(s);break;case"less":this._languageService=Lf(s);break;case"scss":this._languageService=Mf(s);break;default:throw new Error("Invalid language id: "+this._languageId)}this._languageService.configure(this._languageSettings)}async doValidation(e){const t=this._getTextDocument(e);if(t){const n=this._languageService.parseStylesheet(t),r=this._languageService.doValidation(t,n);return Promise.resolve(r)}return Promise.resolve([])}async doComplete(e,t){const n=this._getTextDocument(e);if(!n)return null;const r=this._languageService.parseStylesheet(n),i=this._languageService.doComplete(n,t,r);return Promise.resolve(i)}async doHover(e,t){const n=this._getTextDocument(e);if(!n)return null;const r=this._languageService.parseStylesheet(n),i=this._languageService.doHover(n,t,r);return Promise.resolve(i)}async findDefinition(e,t){const n=this._getTextDocument(e);if(!n)return null;const r=this._languageService.parseStylesheet(n),i=this._languageService.findDefinition(n,t,r);return Promise.resolve(i)}async findReferences(e,t){const n=this._getTextDocument(e);if(!n)return[];const r=this._languageService.parseStylesheet(n),i=this._languageService.findReferences(n,t,r);return Promise.resolve(i)}async findDocumentHighlights(e,t){const n=this._getTextDocument(e);if(!n)return[];const r=this._languageService.parseStylesheet(n),i=this._languageService.findDocumentHighlights(n,t,r);return Promise.resolve(i)}async findDocumentSymbols(e){const t=this._getTextDocument(e);if(!t)return[];const n=this._languageService.parseStylesheet(t),r=this._languageService.findDocumentSymbols(t,n);return Promise.resolve(r)}async doCodeActions(e,t,n){const r=this._getTextDocument(e);if(!r)return[];const i=this._languageService.parseStylesheet(r),s=this._languageService.doCodeActions(r,t,n,i);return Promise.resolve(s)}async findDocumentColors(e){const t=this._getTextDocument(e);if(!t)return[];const n=this._languageService.parseStylesheet(t),r=this._languageService.findDocumentColors(t,n);return Promise.resolve(r)}async getColorPresentations(e,t,n){const r=this._getTextDocument(e);if(!r)return[];const i=this._languageService.parseStylesheet(r),s=this._languageService.getColorPresentations(r,i,t,n);return Promise.resolve(s)}async getFoldingRanges(e,t){const n=this._getTextDocument(e);if(!n)return[];const r=this._languageService.getFoldingRanges(n,t);return Promise.resolve(r)}async getSelectionRanges(e,t){const n=this._getTextDocument(e);if(!n)return[];const r=this._languageService.parseStylesheet(n),i=this._languageService.getSelectionRanges(n,t,r);return Promise.resolve(i)}async doRename(e,t,n){const r=this._getTextDocument(e);if(!r)return null;const i=this._languageService.parseStylesheet(r),s=this._languageService.doRename(r,t,n,i);return Promise.resolve(s)}async format(e,t,n){const r=this._getTextDocument(e);if(!r)return[];const i={...this._languageSettings.format,...n},s=this._languageService.format(r,t,i);return Promise.resolve(s)}_getTextDocument(e){const t=this._ctx.getMirrorModels();for(const n of t)if(n.uri.toString()===e)return ss.create(e,this._languageId,n.version,n.getValue());return null}};self.onmessage=()=>{nl((e,t)=>new zf(e,t))}})();
85
85
  `, r = typeof self < "u" && self.Blob && new Blob([i], { type: "text/javascript;charset=utf-8" });
86
86
  function s(n) {
87
87
  let e;