astro-vscode 0.29.4 → 0.29.5
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.
- package/dist/browser/server.js +32 -32
- package/dist/node/server.js +29 -29
- package/package.json +21 -3
package/dist/browser/server.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
"use strict";(()=>{var Xk=Object.create;var Ha=Object.defineProperty;var Qk=Object.getOwnPropertyDescriptor;var Yk=Object.getOwnPropertyNames;var Zk=Object.getPrototypeOf,e1=Object.prototype.hasOwnProperty;var Lt=(t=>typeof require!="undefined"?require:typeof Proxy!="undefined"?new Proxy(t,{get:(e,n)=>(typeof require!="undefined"?require:e)[n]}):t)(function(t){if(typeof require!="undefined")return require.apply(this,arguments);throw new Error('Dynamic require of "'+t+'" is not supported')});var ue=(t,e)=>()=>(t&&(e=t(t=0)),e);var X=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),xd=(t,e)=>{for(var n in e)Ha(t,n,{get:e[n],enumerable:!0})},Hg=(t,e,n,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of Yk(e))!e1.call(t,i)&&i!==n&&Ha(t,i,{get:()=>e[i],enumerable:!(r=Qk(e,i))||r.enumerable});return t};var
|
|
1
|
+
"use strict";(()=>{var Xk=Object.create;var Ha=Object.defineProperty;var Qk=Object.getOwnPropertyDescriptor;var Yk=Object.getOwnPropertyNames;var Zk=Object.getPrototypeOf,e1=Object.prototype.hasOwnProperty;var Lt=(t=>typeof require!="undefined"?require:typeof Proxy!="undefined"?new Proxy(t,{get:(e,n)=>(typeof require!="undefined"?require:e)[n]}):t)(function(t){if(typeof require!="undefined")return require.apply(this,arguments);throw new Error('Dynamic require of "'+t+'" is not supported')});var ue=(t,e)=>()=>(t&&(e=t(t=0)),e);var X=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),xd=(t,e)=>{for(var n in e)Ha(t,n,{get:e[n],enumerable:!0})},Hg=(t,e,n,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of Yk(e))!e1.call(t,i)&&i!==n&&Ha(t,i,{get:()=>e[i],enumerable:!(r=Qk(e,i))||r.enumerable});return t};var ti=(t,e,n)=>(n=t!=null?Xk(Zk(t)):{},Hg(e||!t||!t.__esModule?Ha(n,"default",{value:t,enumerable:!0}):n,t)),Mi=t=>Hg(Ha({},"__esModule",{value:!0}),t);var Fr=X(Td=>{"use strict";Object.defineProperty(Td,"__esModule",{value:!0});var kd;function Cd(){if(kd===void 0)throw new Error("No runtime abstraction layer installed");return kd}(function(t){function e(n){if(n===void 0)throw new Error("No runtime abstraction layer provided");kd=n}t.install=e})(Cd||(Cd={}));Td.default=Cd});var Ed=X(Ss=>{"use strict";Object.defineProperty(Ss,"__esModule",{value:!0});Ss.Disposable=void 0;var t1;(function(t){function e(n){return{dispose:n}}t.create=e})(t1=Ss.Disposable||(Ss.Disposable={}))});var zi=X(Pi=>{"use strict";Object.defineProperty(Pi,"__esModule",{value:!0});Pi.Emitter=Pi.Event=void 0;var n1=Fr(),r1;(function(t){let e={dispose(){}};t.None=function(){return e}})(r1=Pi.Event||(Pi.Event={}));var Dd=class{add(e,n=null,r){this._callbacks||(this._callbacks=[],this._contexts=[]),this._callbacks.push(e),this._contexts.push(n),Array.isArray(r)&&r.push({dispose:()=>this.remove(e,n)})}remove(e,n=null){if(!this._callbacks)return;let r=!1;for(let i=0,o=this._callbacks.length;i<o;i++)if(this._callbacks[i]===e)if(this._contexts[i]===n){this._callbacks.splice(i,1),this._contexts.splice(i,1);return}else r=!0;if(r)throw new Error("When adding a listener with a context, you should remove it with the same context")}invoke(...e){if(!this._callbacks)return[];let n=[],r=this._callbacks.slice(0),i=this._contexts.slice(0);for(let o=0,s=r.length;o<s;o++)try{n.push(r[o].apply(i[o],e))}catch(l){(0,n1.default)().console.error(l)}return n}isEmpty(){return!this._callbacks||this._callbacks.length===0}dispose(){this._callbacks=void 0,this._contexts=void 0}},po=class{constructor(e){this._options=e}get event(){return this._event||(this._event=(e,n,r)=>{this._callbacks||(this._callbacks=new Dd),this._options&&this._options.onFirstListenerAdd&&this._callbacks.isEmpty()&&this._options.onFirstListenerAdd(this),this._callbacks.add(e,n);let i={dispose:()=>{!this._callbacks||(this._callbacks.remove(e,n),i.dispose=po._noop,this._options&&this._options.onLastListenerRemove&&this._callbacks.isEmpty()&&this._options.onLastListenerRemove(this))}};return Array.isArray(r)&&r.push(i),i}),this._event}fire(e){this._callbacks&&this._callbacks.invoke.call(this._callbacks,e)}dispose(){this._callbacks&&(this._callbacks.dispose(),this._callbacks=void 0)}};Pi.Emitter=po;po._noop=function(){}});var Bg=X(Ba=>{"use strict";Object.defineProperty(Ba,"__esModule",{value:!0});Ba.AbstractMessageBuffer=void 0;var i1=13,o1=10,s1=`\r
|
|
2
2
|
`,Fd=class{constructor(e="utf-8"){this._encoding=e,this._chunks=[],this._totalLength=0}get encoding(){return this._encoding}append(e){let n=typeof e=="string"?this.fromString(e,this._encoding):e;this._chunks.push(n),this._totalLength+=n.byteLength}tryReadHeaders(){if(this._chunks.length===0)return;let e=0,n=0,r=0,i=0;e:for(;n<this._chunks.length;){let a=this._chunks[n];r=0;t:for(;r<a.length;){switch(a[r]){case i1:switch(e){case 0:e=1;break;case 2:e=3;break;default:e=0}break;case o1:switch(e){case 1:e=2;break;case 3:e=4,r++;break e;default:e=0}break;default:e=0}r++}i+=a.byteLength,n++}if(e!==4)return;let o=this._read(i+r),s=new Map,l=this.toString(o,"ascii").split(s1);if(l.length<2)return s;for(let a=0;a<l.length-2;a++){let c=l[a],u=c.indexOf(":");if(u===-1)throw new Error("Message header must separate key and value using :");let d=c.substr(0,u),h=c.substr(u+1).trim();s.set(d,h)}return s}tryReadBody(e){if(!(this._totalLength<e))return this._read(e)}get numberOfBytes(){return this._totalLength}_read(e){if(e===0)return this.emptyBuffer();if(e>this._totalLength)throw new Error("Cannot read so many bytes!");if(this._chunks[0].byteLength===e){let o=this._chunks[0];return this._chunks.shift(),this._totalLength-=e,this.asNative(o)}if(this._chunks[0].byteLength>e){let o=this._chunks[0],s=this.asNative(o,e);return this._chunks[0]=o.slice(e),this._totalLength-=e,s}let n=this.allocNative(e),r=0,i=0;for(;e>0;){let o=this._chunks[i];if(o.byteLength>e){let s=o.slice(0,e);n.set(s,r),r+=e,this._chunks[i]=o.slice(e),this._totalLength-=e,e-=e}else n.set(o,r),r+=o.byteLength,this._chunks.shift(),this._totalLength-=o.byteLength,e-=o.byteLength}return n}};Ba.AbstractMessageBuffer=Fd});var Kg=X(Md=>{"use strict";Object.defineProperty(Md,"__esModule",{value:!0});var $g=Fr(),mo=Ed(),a1=zi(),l1=Bg(),fo=class extends l1.AbstractMessageBuffer{constructor(e="utf-8"){super(e),this.asciiDecoder=new TextDecoder("ascii")}emptyBuffer(){return fo.emptyBuffer}fromString(e,n){return new TextEncoder().encode(e)}toString(e,n){return n==="ascii"?this.asciiDecoder.decode(e):new TextDecoder(n).decode(e)}asNative(e,n){return n===void 0?e:e.slice(0,n)}allocNative(e){return new Uint8Array(e)}};fo.emptyBuffer=new Uint8Array(0);var Ad=class{constructor(e){this.socket=e,this._onData=new a1.Emitter,this._messageListener=n=>{n.data.arrayBuffer().then(i=>{this._onData.fire(new Uint8Array(i))},()=>{(0,$g.default)().console.error("Converting blob to array buffer failed.")})},this.socket.addEventListener("message",this._messageListener)}onClose(e){return this.socket.addEventListener("close",e),mo.Disposable.create(()=>this.socket.removeEventListener("close",e))}onError(e){return this.socket.addEventListener("error",e),mo.Disposable.create(()=>this.socket.removeEventListener("error",e))}onEnd(e){return this.socket.addEventListener("end",e),mo.Disposable.create(()=>this.socket.removeEventListener("end",e))}onData(e){return this._onData.event(e)}},Rd=class{constructor(e){this.socket=e}onClose(e){return this.socket.addEventListener("close",e),mo.Disposable.create(()=>this.socket.removeEventListener("close",e))}onError(e){return this.socket.addEventListener("error",e),mo.Disposable.create(()=>this.socket.removeEventListener("error",e))}onEnd(e){return this.socket.addEventListener("end",e),mo.Disposable.create(()=>this.socket.removeEventListener("end",e))}write(e,n){if(typeof e=="string"){if(n!==void 0&&n!=="utf-8")throw new Error(`In a Browser environments only utf-8 text encoding is supported. But got encoding: ${n}`);this.socket.send(e)}else this.socket.send(e);return Promise.resolve()}end(){this.socket.close()}},c1=new TextEncoder,Vg=Object.freeze({messageBuffer:Object.freeze({create:t=>new fo(t)}),applicationJson:Object.freeze({encoder:Object.freeze({name:"application/json",encode:(t,e)=>{if(e.charset!=="utf-8")throw new Error(`In a Browser environments only utf-8 text encoding is supported. But got encoding: ${e.charset}`);return Promise.resolve(c1.encode(JSON.stringify(t,void 0,0)))}}),decoder:Object.freeze({name:"application/json",decode:(t,e)=>{if(!(t instanceof Uint8Array))throw new Error("In a Browser environments only Uint8Arrays are supported.");return Promise.resolve(JSON.parse(new TextDecoder(e.charset).decode(t)))}})}),stream:Object.freeze({asReadableStream:t=>new Ad(t),asWritableStream:t=>new Rd(t)}),console,timer:Object.freeze({setTimeout(t,e,...n){let r=setTimeout(t,e,...n);return{dispose:()=>clearTimeout(r)}},setImmediate(t,...e){let n=setTimeout(t,0,...e);return{dispose:()=>clearTimeout(n)}},setInterval(t,e,...n){let r=setInterval(t,e,...n);return{dispose:()=>clearInterval(r)}}})});function Id(){return Vg}(function(t){function e(){$g.default.install(Vg)}t.install=e})(Id||(Id={}));Md.default=Id});var go=X(Kt=>{"use strict";Object.defineProperty(Kt,"__esModule",{value:!0});Kt.stringArray=Kt.array=Kt.func=Kt.error=Kt.number=Kt.string=Kt.boolean=void 0;function u1(t){return t===!0||t===!1}Kt.boolean=u1;function Gg(t){return typeof t=="string"||t instanceof String}Kt.string=Gg;function d1(t){return typeof t=="number"||t instanceof Number}Kt.number=d1;function h1(t){return t instanceof Error}Kt.error=h1;function p1(t){return typeof t=="function"}Kt.func=p1;function Jg(t){return Array.isArray(t)}Kt.array=Jg;function m1(t){return Jg(t)&&t.every(e=>Gg(e))}Kt.stringArray=m1});var nh=X(we=>{"use strict";Object.defineProperty(we,"__esModule",{value:!0});we.Message=we.NotificationType9=we.NotificationType8=we.NotificationType7=we.NotificationType6=we.NotificationType5=we.NotificationType4=we.NotificationType3=we.NotificationType2=we.NotificationType1=we.NotificationType0=we.NotificationType=we.RequestType9=we.RequestType8=we.RequestType7=we.RequestType6=we.RequestType5=we.RequestType4=we.RequestType3=we.RequestType2=we.RequestType1=we.RequestType=we.RequestType0=we.AbstractMessageSignature=we.ParameterStructures=we.ResponseError=we.ErrorCodes=void 0;var Oi=go(),Xg;(function(t){t.ParseError=-32700,t.InvalidRequest=-32600,t.MethodNotFound=-32601,t.InvalidParams=-32602,t.InternalError=-32603,t.jsonrpcReservedErrorRangeStart=-32099,t.serverErrorStart=-32099,t.MessageWriteError=-32099,t.MessageReadError=-32098,t.PendingResponseRejected=-32097,t.ConnectionInactive=-32096,t.ServerNotInitialized=-32002,t.UnknownErrorCode=-32001,t.jsonrpcReservedErrorRangeEnd=-32e3,t.serverErrorEnd=-32e3})(Xg=we.ErrorCodes||(we.ErrorCodes={}));var xs=class extends Error{constructor(e,n,r){super(n),this.code=Oi.number(e)?e:Xg.UnknownErrorCode,this.data=r,Object.setPrototypeOf(this,xs.prototype)}toJson(){let e={code:this.code,message:this.message};return this.data!==void 0&&(e.data=this.data),e}};we.ResponseError=xs;var Mt=class{constructor(e){this.kind=e}static is(e){return e===Mt.auto||e===Mt.byName||e===Mt.byPosition}toString(){return this.kind}};we.ParameterStructures=Mt;Mt.auto=new Mt("auto");Mt.byPosition=new Mt("byPosition");Mt.byName=new Mt("byName");var it=class{constructor(e,n){this.method=e,this.numberOfParams=n}get parameterStructures(){return Mt.auto}};we.AbstractMessageSignature=it;var Pd=class extends it{constructor(e){super(e,0)}};we.RequestType0=Pd;var zd=class extends it{constructor(e,n=Mt.auto){super(e,1),this._parameterStructures=n}get parameterStructures(){return this._parameterStructures}};we.RequestType=zd;var Od=class extends it{constructor(e,n=Mt.auto){super(e,1),this._parameterStructures=n}get parameterStructures(){return this._parameterStructures}};we.RequestType1=Od;var Ld=class extends it{constructor(e){super(e,2)}};we.RequestType2=Ld;var Nd=class extends it{constructor(e){super(e,3)}};we.RequestType3=Nd;var Wd=class extends it{constructor(e){super(e,4)}};we.RequestType4=Wd;var qd=class extends it{constructor(e){super(e,5)}};we.RequestType5=qd;var Ud=class extends it{constructor(e){super(e,6)}};we.RequestType6=Ud;var jd=class extends it{constructor(e){super(e,7)}};we.RequestType7=jd;var Hd=class extends it{constructor(e){super(e,8)}};we.RequestType8=Hd;var Bd=class extends it{constructor(e){super(e,9)}};we.RequestType9=Bd;var $d=class extends it{constructor(e,n=Mt.auto){super(e,1),this._parameterStructures=n}get parameterStructures(){return this._parameterStructures}};we.NotificationType=$d;var Vd=class extends it{constructor(e){super(e,0)}};we.NotificationType0=Vd;var Kd=class extends it{constructor(e,n=Mt.auto){super(e,1),this._parameterStructures=n}get parameterStructures(){return this._parameterStructures}};we.NotificationType1=Kd;var Gd=class extends it{constructor(e){super(e,2)}};we.NotificationType2=Gd;var Jd=class extends it{constructor(e){super(e,3)}};we.NotificationType3=Jd;var Xd=class extends it{constructor(e){super(e,4)}};we.NotificationType4=Xd;var Qd=class extends it{constructor(e){super(e,5)}};we.NotificationType5=Qd;var Yd=class extends it{constructor(e){super(e,6)}};we.NotificationType6=Yd;var Zd=class extends it{constructor(e){super(e,7)}};we.NotificationType7=Zd;var eh=class extends it{constructor(e){super(e,8)}};we.NotificationType8=eh;var th=class extends it{constructor(e){super(e,9)}};we.NotificationType9=th;var f1;(function(t){function e(i){let o=i;return o&&Oi.string(o.method)&&(Oi.string(o.id)||Oi.number(o.id))}t.isRequest=e;function n(i){let o=i;return o&&Oi.string(o.method)&&i.id===void 0}t.isNotification=n;function r(i){let o=i;return o&&(o.result!==void 0||!!o.error)&&(Oi.string(o.id)||Oi.number(o.id)||o.id===null)}t.isResponse=r})(f1=we.Message||(we.Message={}))});var ih=X(Ar=>{"use strict";var Qg;Object.defineProperty(Ar,"__esModule",{value:!0});Ar.LRUCache=Ar.LinkedMap=Ar.Touch=void 0;var Jt;(function(t){t.None=0,t.First=1,t.AsOld=t.First,t.Last=2,t.AsNew=t.Last})(Jt=Ar.Touch||(Ar.Touch={}));var $a=class{constructor(){this[Qg]="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(e){return this._map.has(e)}get(e,n=Jt.None){let r=this._map.get(e);if(!!r)return n!==Jt.None&&this.touch(r,n),r.value}set(e,n,r=Jt.None){let i=this._map.get(e);if(i)i.value=n,r!==Jt.None&&this.touch(i,r);else{switch(i={key:e,value:n,next:void 0,previous:void 0},r){case Jt.None:this.addItemLast(i);break;case Jt.First:this.addItemFirst(i);break;case Jt.Last:this.addItemLast(i);break;default:this.addItemLast(i);break}this._map.set(e,i),this._size++}return this}delete(e){return!!this.remove(e)}remove(e){let n=this._map.get(e);if(!!n)return this._map.delete(e),this.removeItem(n),this._size--,n.value}shift(){if(!this._head&&!this._tail)return;if(!this._head||!this._tail)throw new Error("Invalid list");let e=this._head;return this._map.delete(e.key),this.removeItem(e),this._size--,e.value}forEach(e,n){let r=this._state,i=this._head;for(;i;){if(n?e.bind(n)(i.value,i.key,this):e(i.value,i.key,this),this._state!==r)throw new Error("LinkedMap got modified during iteration.");i=i.next}}keys(){let e=this._state,n=this._head,r={[Symbol.iterator]:()=>r,next:()=>{if(this._state!==e)throw new Error("LinkedMap got modified during iteration.");if(n){let i={value:n.key,done:!1};return n=n.next,i}else return{value:void 0,done:!0}}};return r}values(){let e=this._state,n=this._head,r={[Symbol.iterator]:()=>r,next:()=>{if(this._state!==e)throw new Error("LinkedMap got modified during iteration.");if(n){let i={value:n.value,done:!1};return n=n.next,i}else return{value:void 0,done:!0}}};return r}entries(){let e=this._state,n=this._head,r={[Symbol.iterator]:()=>r,next:()=>{if(this._state!==e)throw new Error("LinkedMap got modified during iteration.");if(n){let i={value:[n.key,n.value],done:!1};return n=n.next,i}else return{value:void 0,done:!0}}};return r}[(Qg=Symbol.toStringTag,Symbol.iterator)](){return this.entries()}trimOld(e){if(e>=this.size)return;if(e===0){this.clear();return}let n=this._head,r=this.size;for(;n&&r>e;)this._map.delete(n.key),n=n.next,r--;this._head=n,this._size=r,n&&(n.previous=void 0),this._state++}addItemFirst(e){if(!this._head&&!this._tail)this._tail=e;else if(this._head)e.next=this._head,this._head.previous=e;else throw new Error("Invalid list");this._head=e,this._state++}addItemLast(e){if(!this._head&&!this._tail)this._head=e;else if(this._tail)e.previous=this._tail,this._tail.next=e;else throw new Error("Invalid list");this._tail=e,this._state++}removeItem(e){if(e===this._head&&e===this._tail)this._head=void 0,this._tail=void 0;else if(e===this._head){if(!e.next)throw new Error("Invalid list");e.next.previous=void 0,this._head=e.next}else if(e===this._tail){if(!e.previous)throw new Error("Invalid list");e.previous.next=void 0,this._tail=e.previous}else{let n=e.next,r=e.previous;if(!n||!r)throw new Error("Invalid list");n.previous=r,r.next=n}e.next=void 0,e.previous=void 0,this._state++}touch(e,n){if(!this._head||!this._tail)throw new Error("Invalid list");if(!(n!==Jt.First&&n!==Jt.Last)){if(n===Jt.First){if(e===this._head)return;let r=e.next,i=e.previous;e===this._tail?(i.next=void 0,this._tail=i):(r.previous=i,i.next=r),e.previous=void 0,e.next=this._head,this._head.previous=e,this._head=e,this._state++}else if(n===Jt.Last){if(e===this._tail)return;let r=e.next,i=e.previous;e===this._head?(r.previous=void 0,this._head=r):(r.previous=i,i.next=r),e.next=void 0,e.previous=this._tail,this._tail.next=e,this._tail=e,this._state++}}}toJSON(){let e=[];return this.forEach((n,r)=>{e.push([r,n])}),e}fromJSON(e){this.clear();for(let[n,r]of e)this.set(n,r)}};Ar.LinkedMap=$a;var rh=class extends $a{constructor(e,n=1){super(),this._limit=e,this._ratio=Math.min(Math.max(0,n),1)}get limit(){return this._limit}set limit(e){this._limit=e,this.checkTrim()}get ratio(){return this._ratio}set ratio(e){this._ratio=Math.min(Math.max(0,e),1),this.checkTrim()}get(e,n=Jt.AsNew){return super.get(e,n)}peek(e){return super.get(e,Jt.None)}set(e,n){return super.set(e,n,Jt.Last),this.checkTrim(),this}checkTrim(){this.size>this._limit&&this.trimOld(Math.round(this._limit*this._ratio))}};Ar.LRUCache=rh});var lh=X(Li=>{"use strict";Object.defineProperty(Li,"__esModule",{value:!0});Li.CancellationTokenSource=Li.CancellationToken=void 0;var g1=Fr(),b1=go(),oh=zi(),sh;(function(t){t.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:oh.Event.None}),t.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:oh.Event.None});function e(n){let r=n;return r&&(r===t.None||r===t.Cancelled||b1.boolean(r.isCancellationRequested)&&!!r.onCancellationRequested)}t.is=e})(sh=Li.CancellationToken||(Li.CancellationToken={}));var v1=Object.freeze(function(t,e){let n=(0,g1.default)().timer.setTimeout(t.bind(e),0);return{dispose(){n.dispose()}}}),Va=class{constructor(){this._isCancelled=!1}cancel(){this._isCancelled||(this._isCancelled=!0,this._emitter&&(this._emitter.fire(void 0),this.dispose()))}get isCancellationRequested(){return this._isCancelled}get onCancellationRequested(){return this._isCancelled?v1:(this._emitter||(this._emitter=new oh.Emitter),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=void 0)}},ah=class{get token(){return this._token||(this._token=new Va),this._token}cancel(){this._token?this._token.cancel():this._token=sh.Cancelled}dispose(){this._token?this._token instanceof Va&&this._token.dispose():this._token=sh.None}};Li.CancellationTokenSource=ah});var Yg=X(Rr=>{"use strict";Object.defineProperty(Rr,"__esModule",{value:!0});Rr.ReadableStreamMessageReader=Rr.AbstractMessageReader=Rr.MessageReader=void 0;var uh=Fr(),bo=go(),ch=zi(),w1;(function(t){function e(n){let r=n;return r&&bo.func(r.listen)&&bo.func(r.dispose)&&bo.func(r.onError)&&bo.func(r.onClose)&&bo.func(r.onPartialMessage)}t.is=e})(w1=Rr.MessageReader||(Rr.MessageReader={}));var Ka=class{constructor(){this.errorEmitter=new ch.Emitter,this.closeEmitter=new ch.Emitter,this.partialMessageEmitter=new ch.Emitter}dispose(){this.errorEmitter.dispose(),this.closeEmitter.dispose()}get onError(){return this.errorEmitter.event}fireError(e){this.errorEmitter.fire(this.asError(e))}get onClose(){return this.closeEmitter.event}fireClose(){this.closeEmitter.fire(void 0)}get onPartialMessage(){return this.partialMessageEmitter.event}firePartialMessage(e){this.partialMessageEmitter.fire(e)}asError(e){return e instanceof Error?e:new Error(`Reader received error. Reason: ${bo.string(e.message)?e.message:"unknown"}`)}};Rr.AbstractMessageReader=Ka;var dh;(function(t){function e(n){let r,i,o,s=new Map,l,a=new Map;if(n===void 0||typeof n=="string")r=n??"utf-8";else{if(r=n.charset??"utf-8",n.contentDecoder!==void 0&&(o=n.contentDecoder,s.set(o.name,o)),n.contentDecoders!==void 0)for(let c of n.contentDecoders)s.set(c.name,c);if(n.contentTypeDecoder!==void 0&&(l=n.contentTypeDecoder,a.set(l.name,l)),n.contentTypeDecoders!==void 0)for(let c of n.contentTypeDecoders)a.set(c.name,c)}return l===void 0&&(l=(0,uh.default)().applicationJson.decoder,a.set(l.name,l)),{charset:r,contentDecoder:o,contentDecoders:s,contentTypeDecoder:l,contentTypeDecoders:a}}t.fromOptions=e})(dh||(dh={}));var hh=class extends Ka{constructor(e,n){super(),this.readable=e,this.options=dh.fromOptions(n),this.buffer=(0,uh.default)().messageBuffer.create(this.options.charset),this._partialMessageTimeout=1e4,this.nextMessageLength=-1,this.messageToken=0}set partialMessageTimeout(e){this._partialMessageTimeout=e}get partialMessageTimeout(){return this._partialMessageTimeout}listen(e){this.nextMessageLength=-1,this.messageToken=0,this.partialMessageTimer=void 0,this.callback=e;let n=this.readable.onData(r=>{this.onData(r)});return this.readable.onError(r=>this.fireError(r)),this.readable.onClose(()=>this.fireClose()),n}onData(e){for(this.buffer.append(e);;){if(this.nextMessageLength===-1){let i=this.buffer.tryReadHeaders();if(!i)return;let o=i.get("Content-Length");if(!o)throw new Error("Header must provide a Content-Length property.");let s=parseInt(o);if(isNaN(s))throw new Error("Content-Length value must be a number.");this.nextMessageLength=s}let n=this.buffer.tryReadBody(this.nextMessageLength);if(n===void 0){this.setPartialMessageTimer();return}this.clearPartialMessageTimer(),this.nextMessageLength=-1;let r;this.options.contentDecoder!==void 0?r=this.options.contentDecoder.decode(n):r=Promise.resolve(n),r.then(i=>{this.options.contentTypeDecoder.decode(i,this.options).then(o=>{this.callback(o)},o=>{this.fireError(o)})},i=>{this.fireError(i)})}}clearPartialMessageTimer(){this.partialMessageTimer&&(this.partialMessageTimer.dispose(),this.partialMessageTimer=void 0)}setPartialMessageTimer(){this.clearPartialMessageTimer(),!(this._partialMessageTimeout<=0)&&(this.partialMessageTimer=(0,uh.default)().timer.setTimeout((e,n)=>{this.partialMessageTimer=void 0,e===this.messageToken&&(this.firePartialMessage({messageToken:e,waitingTime:n}),this.setPartialMessageTimer())},this._partialMessageTimeout,this.messageToken,this._partialMessageTimeout))}};Rr.ReadableStreamMessageReader=hh});var Zg=X(Ga=>{"use strict";Object.defineProperty(Ga,"__esModule",{value:!0});Ga.Semaphore=void 0;var y1=Fr(),ph=class{constructor(e=1){if(e<=0)throw new Error("Capacity must be greater than 0");this._capacity=e,this._active=0,this._waiting=[]}lock(e){return new Promise((n,r)=>{this._waiting.push({thunk:e,resolve:n,reject:r}),this.runNext()})}get active(){return this._active}runNext(){this._waiting.length===0||this._active===this._capacity||(0,y1.default)().timer.setImmediate(()=>this.doRunNext())}doRunNext(){if(this._waiting.length===0||this._active===this._capacity)return;let e=this._waiting.shift();if(this._active++,this._active>this._capacity)throw new Error("To many thunks active");try{let n=e.thunk();n instanceof Promise?n.then(r=>{this._active--,e.resolve(r),this.runNext()},r=>{this._active--,e.reject(r),this.runNext()}):(this._active--,e.resolve(n),this.runNext())}catch(n){this._active--,e.reject(n),this.runNext()}}};Ga.Semaphore=ph});var rb=X(Ir=>{"use strict";Object.defineProperty(Ir,"__esModule",{value:!0});Ir.WriteableStreamMessageWriter=Ir.AbstractMessageWriter=Ir.MessageWriter=void 0;var eb=Fr(),ks=go(),_1=Zg(),tb=zi(),S1="Content-Length: ",nb=`\r
|
|
3
|
-
`,x1;(function(t){function e(n){let r=n;return r&&ks.func(r.dispose)&&ks.func(r.onClose)&&ks.func(r.onError)&&ks.func(r.write)}t.is=e})(x1=Ir.MessageWriter||(Ir.MessageWriter={}));var Ja=class{constructor(){this.errorEmitter=new tb.Emitter,this.closeEmitter=new tb.Emitter}dispose(){this.errorEmitter.dispose(),this.closeEmitter.dispose()}get onError(){return this.errorEmitter.event}fireError(e,n,r){this.errorEmitter.fire([this.asError(e),n,r])}get onClose(){return this.closeEmitter.event}fireClose(){this.closeEmitter.fire(void 0)}asError(e){return e instanceof Error?e:new Error(`Writer received error. Reason: ${ks.string(e.message)?e.message:"unknown"}`)}};Ir.AbstractMessageWriter=Ja;var mh;(function(t){function e(n){return n===void 0||typeof n=="string"?{charset:n??"utf-8",contentTypeEncoder:(0,eb.default)().applicationJson.encoder}:{charset:n.charset??"utf-8",contentEncoder:n.contentEncoder,contentTypeEncoder:n.contentTypeEncoder??(0,eb.default)().applicationJson.encoder}}t.fromOptions=e})(mh||(mh={}));var fh=class extends Ja{constructor(e,n){super(),this.writable=e,this.options=mh.fromOptions(n),this.errorCount=0,this.writeSemaphore=new _1.Semaphore(1),this.writable.onError(r=>this.fireError(r)),this.writable.onClose(()=>this.fireClose())}async write(e){return this.writeSemaphore.lock(async()=>this.options.contentTypeEncoder.encode(e,this.options).then(r=>this.options.contentEncoder!==void 0?this.options.contentEncoder.encode(r):r).then(r=>{let i=[];return i.push(S1,r.byteLength.toString(),nb),i.push(nb),this.doWrite(e,i,r)},r=>{throw this.fireError(r),r}))}async doWrite(e,n,r){try{return await this.writable.write(n.join(""),"ascii"),this.writable.write(r)}catch(i){return this.handleError(i,e),Promise.reject(i)}}handleError(e,n){this.errorCount++,this.fireError(e,n,this.errorCount)}end(){this.writable.end()}};Ir.WriteableStreamMessageWriter=fh});var cb=X(Se=>{"use strict";Object.defineProperty(Se,"__esModule",{value:!0});Se.createMessageConnection=Se.ConnectionOptions=Se.CancellationStrategy=Se.CancellationSenderStrategy=Se.CancellationReceiverStrategy=Se.ConnectionStrategy=Se.ConnectionError=Se.ConnectionErrors=Se.LogTraceNotification=Se.SetTraceNotification=Se.TraceFormat=Se.TraceValues=Se.Trace=Se.NullLogger=Se.ProgressType=Se.ProgressToken=void 0;var ib=Fr(),Rt=go(),ke=nh(),ob=ih(),Cs=zi(),gh=lh(),Es;(function(t){t.type=new ke.NotificationType("$/cancelRequest")})(Es||(Es={}));var sb;(function(t){function e(n){return typeof n=="string"||typeof n=="number"}t.is=e})(sb=Se.ProgressToken||(Se.ProgressToken={}));var Ts;(function(t){t.type=new ke.NotificationType("$/progress")})(Ts||(Ts={}));var bh=class{constructor(){}};Se.ProgressType=bh;var vh;(function(t){function e(n){return Rt.func(n)}t.is=e})(vh||(vh={}));Se.NullLogger=Object.freeze({error:()=>{},warn:()=>{},info:()=>{},log:()=>{}});var $e;(function(t){t[t.Off=0]="Off",t[t.Messages=1]="Messages",t[t.Compact=2]="Compact",t[t.Verbose=3]="Verbose"})($e=Se.Trace||(Se.Trace={}));var k1;(function(t){t.Off="off",t.Messages="messages",t.Compact="compact",t.Verbose="verbose"})(k1=Se.TraceValues||(Se.TraceValues={}));(function(t){function e(r){if(!Rt.string(r))return t.Off;switch(r=r.toLowerCase(),r){case"off":return t.Off;case"messages":return t.Messages;case"compact":return t.Compact;case"verbose":return t.Verbose;default:return t.Off}}t.fromString=e;function n(r){switch(r){case t.Off:return"off";case t.Messages:return"messages";case t.Compact:return"compact";case t.Verbose:return"verbose";default:return"off"}}t.toString=n})($e=Se.Trace||(Se.Trace={}));var Mn;(function(t){t.Text="text",t.JSON="json"})(Mn=Se.TraceFormat||(Se.TraceFormat={}));(function(t){function e(n){return Rt.string(n)?(n=n.toLowerCase(),n==="json"?t.JSON:t.Text):t.Text}t.fromString=e})(Mn=Se.TraceFormat||(Se.TraceFormat={}));var ab;(function(t){t.type=new ke.NotificationType("$/setTrace")})(ab=Se.SetTraceNotification||(Se.SetTraceNotification={}));var wh;(function(t){t.type=new ke.NotificationType("$/logTrace")})(wh=Se.LogTraceNotification||(Se.LogTraceNotification={}));var Xa;(function(t){t[t.Closed=1]="Closed",t[t.Disposed=2]="Disposed",t[t.AlreadyListening=3]="AlreadyListening"})(Xa=Se.ConnectionErrors||(Se.ConnectionErrors={}));var ti=class extends Error{constructor(e,n){super(n),this.code=e,Object.setPrototypeOf(this,ti.prototype)}};Se.ConnectionError=ti;var lb;(function(t){function e(n){let r=n;return r&&Rt.func(r.cancelUndispatched)}t.is=e})(lb=Se.ConnectionStrategy||(Se.ConnectionStrategy={}));var yh;(function(t){t.Message=Object.freeze({createCancellationTokenSource(n){return new gh.CancellationTokenSource}});function e(n){let r=n;return r&&Rt.func(r.createCancellationTokenSource)}t.is=e})(yh=Se.CancellationReceiverStrategy||(Se.CancellationReceiverStrategy={}));var _h;(function(t){t.Message=Object.freeze({sendCancellation(n,r){return n.sendNotification(Es.type,{id:r})},cleanup(n){}});function e(n){let r=n;return r&&Rt.func(r.sendCancellation)&&Rt.func(r.cleanup)}t.is=e})(_h=Se.CancellationSenderStrategy||(Se.CancellationSenderStrategy={}));var Sh;(function(t){t.Message=Object.freeze({receiver:yh.Message,sender:_h.Message});function e(n){let r=n;return r&&yh.is(r.receiver)&&_h.is(r.sender)}t.is=e})(Sh=Se.CancellationStrategy||(Se.CancellationStrategy={}));var C1;(function(t){function e(n){let r=n;return r&&(Sh.is(r.cancellationStrategy)||lb.is(r.connectionStrategy))}t.is=e})(C1=Se.ConnectionOptions||(Se.ConnectionOptions={}));var Pn;(function(t){t[t.New=1]="New",t[t.Listening=2]="Listening",t[t.Closed=3]="Closed",t[t.Disposed=4]="Disposed"})(Pn||(Pn={}));function T1(t,e,n,r){let i=n!==void 0?n:Se.NullLogger,o=0,s=0,l=0,a="2.0",c,u=new Map,d,h=new Map,p=new Map,w,v=new ob.LinkedMap,x=new Map,_=new Set,f=new Map,g=$e.Off,D=Mn.Text,L,K=Pn.New,C=new Cs.Emitter,T=new Cs.Emitter,M=new Cs.Emitter,oe=new Cs.Emitter,N=new Cs.Emitter,W=r&&r.cancellationStrategy?r.cancellationStrategy:Sh.Message;function V(I){if(I===null)throw new Error("Can't send requests with id null since the response can't be correlated.");return"req-"+I.toString()}function G(I){return I===null?"res-unknown-"+(++l).toString():"res-"+I.toString()}function U(){return"not-"+(++s).toString()}function P(I,Z){ke.Message.isRequest(Z)?I.set(V(Z.id),Z):ke.Message.isResponse(Z)?I.set(G(Z.id),Z):I.set(U(),Z)}function R(I){}function J(){return K===Pn.Listening}function Q(){return K===Pn.Closed}function re(){return K===Pn.Disposed}function de(){(K===Pn.New||K===Pn.Listening)&&(K=Pn.Closed,T.fire(void 0))}function se(I){C.fire([I,void 0,void 0])}function ae(I){C.fire(I)}t.onClose(de),t.onError(se),e.onClose(de),e.onError(ae);function pe(){w||v.size===0||(w=(0,ib.default)().timer.setImmediate(()=>{w=void 0,xe()}))}function xe(){if(v.size===0)return;let I=v.shift();try{ke.Message.isRequest(I)?Y(I):ke.Message.isNotification(I)?le(I):ke.Message.isResponse(I)?ie(I):Ce(I)}finally{pe()}}let B=I=>{try{if(ke.Message.isNotification(I)&&I.method===Es.type.method){let Z=I.params.id,he=V(Z),be=v.get(he);if(ke.Message.isRequest(be)){let Qe=r?.connectionStrategy,at=Qe&&Qe.cancelUndispatched?Qe.cancelUndispatched(be,R):void 0;if(at&&(at.error!==void 0||at.result!==void 0)){v.delete(he),f.delete(Z),at.id=be.id,Re(at,I.method,Date.now()),e.write(at).catch(()=>i.error("Sending response for canceled message failed."));return}}let He=f.get(Z);if(He!==void 0){He.cancel(),Je(I);return}else _.add(Z)}P(v,I)}finally{pe()}};function Y(I){if(re())return;function Z(ze,Ze,We){let mt={jsonrpc:a,id:I.id};ze instanceof ke.ResponseError?mt.error=ze.toJson():mt.result=ze===void 0?null:ze,Re(mt,Ze,We),e.write(mt).catch(()=>i.error("Sending response failed."))}function he(ze,Ze,We){let mt={jsonrpc:a,id:I.id,error:ze.toJson()};Re(mt,Ze,We),e.write(mt).catch(()=>i.error("Sending response failed."))}function be(ze,Ze,We){ze===void 0&&(ze=null);let mt={jsonrpc:a,id:I.id,result:ze};Re(mt,Ze,We),e.write(mt).catch(()=>i.error("Sending response failed."))}Ue(I);let He=u.get(I.method),Qe,at;He&&(Qe=He.type,at=He.handler);let xt=Date.now();if(at||c){let ze=I.id??String(Date.now()),Ze=W.receiver.createCancellationTokenSource(ze);I.id!==null&&_.has(I.id)&&Ze.cancel(),I.id!==null&&f.set(ze,Ze);try{let We;if(at)if(I.params===void 0){if(Qe!==void 0&&Qe.numberOfParams!==0){he(new ke.ResponseError(ke.ErrorCodes.InvalidParams,`Request ${I.method} defines ${Qe.numberOfParams} params but received none.`),I.method,xt);return}We=at(Ze.token)}else if(Array.isArray(I.params)){if(Qe!==void 0&&Qe.parameterStructures===ke.ParameterStructures.byName){he(new ke.ResponseError(ke.ErrorCodes.InvalidParams,`Request ${I.method} defines parameters by name but received parameters by position`),I.method,xt);return}We=at(...I.params,Ze.token)}else{if(Qe!==void 0&&Qe.parameterStructures===ke.ParameterStructures.byPosition){he(new ke.ResponseError(ke.ErrorCodes.InvalidParams,`Request ${I.method} defines parameters by position but received parameters by name`),I.method,xt);return}We=at(I.params,Ze.token)}else c&&(We=c(I.method,I.params,Ze.token));let mt=We;We?mt.then?mt.then(Vt=>{f.delete(ze),Z(Vt,I.method,xt)},Vt=>{f.delete(ze),Vt instanceof ke.ResponseError?he(Vt,I.method,xt):Vt&&Rt.string(Vt.message)?he(new ke.ResponseError(ke.ErrorCodes.InternalError,`Request ${I.method} failed with message: ${Vt.message}`),I.method,xt):he(new ke.ResponseError(ke.ErrorCodes.InternalError,`Request ${I.method} failed unexpectedly without providing any details.`),I.method,xt)}):(f.delete(ze),Z(We,I.method,xt)):(f.delete(ze),be(We,I.method,xt))}catch(We){f.delete(ze),We instanceof ke.ResponseError?Z(We,I.method,xt):We&&Rt.string(We.message)?he(new ke.ResponseError(ke.ErrorCodes.InternalError,`Request ${I.method} failed with message: ${We.message}`),I.method,xt):he(new ke.ResponseError(ke.ErrorCodes.InternalError,`Request ${I.method} failed unexpectedly without providing any details.`),I.method,xt)}}else he(new ke.ResponseError(ke.ErrorCodes.MethodNotFound,`Unhandled method ${I.method}`),I.method,xt)}function ie(I){if(!re())if(I.id===null)I.error?i.error(`Received response message without id: Error is:
|
|
3
|
+
`,x1;(function(t){function e(n){let r=n;return r&&ks.func(r.dispose)&&ks.func(r.onClose)&&ks.func(r.onError)&&ks.func(r.write)}t.is=e})(x1=Ir.MessageWriter||(Ir.MessageWriter={}));var Ja=class{constructor(){this.errorEmitter=new tb.Emitter,this.closeEmitter=new tb.Emitter}dispose(){this.errorEmitter.dispose(),this.closeEmitter.dispose()}get onError(){return this.errorEmitter.event}fireError(e,n,r){this.errorEmitter.fire([this.asError(e),n,r])}get onClose(){return this.closeEmitter.event}fireClose(){this.closeEmitter.fire(void 0)}asError(e){return e instanceof Error?e:new Error(`Writer received error. Reason: ${ks.string(e.message)?e.message:"unknown"}`)}};Ir.AbstractMessageWriter=Ja;var mh;(function(t){function e(n){return n===void 0||typeof n=="string"?{charset:n??"utf-8",contentTypeEncoder:(0,eb.default)().applicationJson.encoder}:{charset:n.charset??"utf-8",contentEncoder:n.contentEncoder,contentTypeEncoder:n.contentTypeEncoder??(0,eb.default)().applicationJson.encoder}}t.fromOptions=e})(mh||(mh={}));var fh=class extends Ja{constructor(e,n){super(),this.writable=e,this.options=mh.fromOptions(n),this.errorCount=0,this.writeSemaphore=new _1.Semaphore(1),this.writable.onError(r=>this.fireError(r)),this.writable.onClose(()=>this.fireClose())}async write(e){return this.writeSemaphore.lock(async()=>this.options.contentTypeEncoder.encode(e,this.options).then(r=>this.options.contentEncoder!==void 0?this.options.contentEncoder.encode(r):r).then(r=>{let i=[];return i.push(S1,r.byteLength.toString(),nb),i.push(nb),this.doWrite(e,i,r)},r=>{throw this.fireError(r),r}))}async doWrite(e,n,r){try{return await this.writable.write(n.join(""),"ascii"),this.writable.write(r)}catch(i){return this.handleError(i,e),Promise.reject(i)}}handleError(e,n){this.errorCount++,this.fireError(e,n,this.errorCount)}end(){this.writable.end()}};Ir.WriteableStreamMessageWriter=fh});var cb=X(Se=>{"use strict";Object.defineProperty(Se,"__esModule",{value:!0});Se.createMessageConnection=Se.ConnectionOptions=Se.CancellationStrategy=Se.CancellationSenderStrategy=Se.CancellationReceiverStrategy=Se.ConnectionStrategy=Se.ConnectionError=Se.ConnectionErrors=Se.LogTraceNotification=Se.SetTraceNotification=Se.TraceFormat=Se.TraceValues=Se.Trace=Se.NullLogger=Se.ProgressType=Se.ProgressToken=void 0;var ib=Fr(),Rt=go(),ke=nh(),ob=ih(),Cs=zi(),gh=lh(),Es;(function(t){t.type=new ke.NotificationType("$/cancelRequest")})(Es||(Es={}));var sb;(function(t){function e(n){return typeof n=="string"||typeof n=="number"}t.is=e})(sb=Se.ProgressToken||(Se.ProgressToken={}));var Ts;(function(t){t.type=new ke.NotificationType("$/progress")})(Ts||(Ts={}));var bh=class{constructor(){}};Se.ProgressType=bh;var vh;(function(t){function e(n){return Rt.func(n)}t.is=e})(vh||(vh={}));Se.NullLogger=Object.freeze({error:()=>{},warn:()=>{},info:()=>{},log:()=>{}});var $e;(function(t){t[t.Off=0]="Off",t[t.Messages=1]="Messages",t[t.Compact=2]="Compact",t[t.Verbose=3]="Verbose"})($e=Se.Trace||(Se.Trace={}));var k1;(function(t){t.Off="off",t.Messages="messages",t.Compact="compact",t.Verbose="verbose"})(k1=Se.TraceValues||(Se.TraceValues={}));(function(t){function e(r){if(!Rt.string(r))return t.Off;switch(r=r.toLowerCase(),r){case"off":return t.Off;case"messages":return t.Messages;case"compact":return t.Compact;case"verbose":return t.Verbose;default:return t.Off}}t.fromString=e;function n(r){switch(r){case t.Off:return"off";case t.Messages:return"messages";case t.Compact:return"compact";case t.Verbose:return"verbose";default:return"off"}}t.toString=n})($e=Se.Trace||(Se.Trace={}));var Mn;(function(t){t.Text="text",t.JSON="json"})(Mn=Se.TraceFormat||(Se.TraceFormat={}));(function(t){function e(n){return Rt.string(n)?(n=n.toLowerCase(),n==="json"?t.JSON:t.Text):t.Text}t.fromString=e})(Mn=Se.TraceFormat||(Se.TraceFormat={}));var ab;(function(t){t.type=new ke.NotificationType("$/setTrace")})(ab=Se.SetTraceNotification||(Se.SetTraceNotification={}));var wh;(function(t){t.type=new ke.NotificationType("$/logTrace")})(wh=Se.LogTraceNotification||(Se.LogTraceNotification={}));var Xa;(function(t){t[t.Closed=1]="Closed",t[t.Disposed=2]="Disposed",t[t.AlreadyListening=3]="AlreadyListening"})(Xa=Se.ConnectionErrors||(Se.ConnectionErrors={}));var ni=class extends Error{constructor(e,n){super(n),this.code=e,Object.setPrototypeOf(this,ni.prototype)}};Se.ConnectionError=ni;var lb;(function(t){function e(n){let r=n;return r&&Rt.func(r.cancelUndispatched)}t.is=e})(lb=Se.ConnectionStrategy||(Se.ConnectionStrategy={}));var yh;(function(t){t.Message=Object.freeze({createCancellationTokenSource(n){return new gh.CancellationTokenSource}});function e(n){let r=n;return r&&Rt.func(r.createCancellationTokenSource)}t.is=e})(yh=Se.CancellationReceiverStrategy||(Se.CancellationReceiverStrategy={}));var _h;(function(t){t.Message=Object.freeze({sendCancellation(n,r){return n.sendNotification(Es.type,{id:r})},cleanup(n){}});function e(n){let r=n;return r&&Rt.func(r.sendCancellation)&&Rt.func(r.cleanup)}t.is=e})(_h=Se.CancellationSenderStrategy||(Se.CancellationSenderStrategy={}));var Sh;(function(t){t.Message=Object.freeze({receiver:yh.Message,sender:_h.Message});function e(n){let r=n;return r&&yh.is(r.receiver)&&_h.is(r.sender)}t.is=e})(Sh=Se.CancellationStrategy||(Se.CancellationStrategy={}));var C1;(function(t){function e(n){let r=n;return r&&(Sh.is(r.cancellationStrategy)||lb.is(r.connectionStrategy))}t.is=e})(C1=Se.ConnectionOptions||(Se.ConnectionOptions={}));var Pn;(function(t){t[t.New=1]="New",t[t.Listening=2]="Listening",t[t.Closed=3]="Closed",t[t.Disposed=4]="Disposed"})(Pn||(Pn={}));function T1(t,e,n,r){let i=n!==void 0?n:Se.NullLogger,o=0,s=0,l=0,a="2.0",c,u=new Map,d,h=new Map,p=new Map,w,v=new ob.LinkedMap,x=new Map,_=new Set,f=new Map,g=$e.Off,D=Mn.Text,L,K=Pn.New,C=new Cs.Emitter,T=new Cs.Emitter,M=new Cs.Emitter,oe=new Cs.Emitter,N=new Cs.Emitter,W=r&&r.cancellationStrategy?r.cancellationStrategy:Sh.Message;function V(I){if(I===null)throw new Error("Can't send requests with id null since the response can't be correlated.");return"req-"+I.toString()}function G(I){return I===null?"res-unknown-"+(++l).toString():"res-"+I.toString()}function U(){return"not-"+(++s).toString()}function P(I,Z){ke.Message.isRequest(Z)?I.set(V(Z.id),Z):ke.Message.isResponse(Z)?I.set(G(Z.id),Z):I.set(U(),Z)}function R(I){}function J(){return K===Pn.Listening}function Q(){return K===Pn.Closed}function re(){return K===Pn.Disposed}function de(){(K===Pn.New||K===Pn.Listening)&&(K=Pn.Closed,T.fire(void 0))}function se(I){C.fire([I,void 0,void 0])}function ae(I){C.fire(I)}t.onClose(de),t.onError(se),e.onClose(de),e.onError(ae);function pe(){w||v.size===0||(w=(0,ib.default)().timer.setImmediate(()=>{w=void 0,xe()}))}function xe(){if(v.size===0)return;let I=v.shift();try{ke.Message.isRequest(I)?Y(I):ke.Message.isNotification(I)?le(I):ke.Message.isResponse(I)?ie(I):Ce(I)}finally{pe()}}let B=I=>{try{if(ke.Message.isNotification(I)&&I.method===Es.type.method){let Z=I.params.id,he=V(Z),be=v.get(he);if(ke.Message.isRequest(be)){let Qe=r?.connectionStrategy,at=Qe&&Qe.cancelUndispatched?Qe.cancelUndispatched(be,R):void 0;if(at&&(at.error!==void 0||at.result!==void 0)){v.delete(he),f.delete(Z),at.id=be.id,Re(at,I.method,Date.now()),e.write(at).catch(()=>i.error("Sending response for canceled message failed."));return}}let He=f.get(Z);if(He!==void 0){He.cancel(),Je(I);return}else _.add(Z)}P(v,I)}finally{pe()}};function Y(I){if(re())return;function Z(ze,Ze,We){let mt={jsonrpc:a,id:I.id};ze instanceof ke.ResponseError?mt.error=ze.toJson():mt.result=ze===void 0?null:ze,Re(mt,Ze,We),e.write(mt).catch(()=>i.error("Sending response failed."))}function he(ze,Ze,We){let mt={jsonrpc:a,id:I.id,error:ze.toJson()};Re(mt,Ze,We),e.write(mt).catch(()=>i.error("Sending response failed."))}function be(ze,Ze,We){ze===void 0&&(ze=null);let mt={jsonrpc:a,id:I.id,result:ze};Re(mt,Ze,We),e.write(mt).catch(()=>i.error("Sending response failed."))}Ue(I);let He=u.get(I.method),Qe,at;He&&(Qe=He.type,at=He.handler);let xt=Date.now();if(at||c){let ze=I.id??String(Date.now()),Ze=W.receiver.createCancellationTokenSource(ze);I.id!==null&&_.has(I.id)&&Ze.cancel(),I.id!==null&&f.set(ze,Ze);try{let We;if(at)if(I.params===void 0){if(Qe!==void 0&&Qe.numberOfParams!==0){he(new ke.ResponseError(ke.ErrorCodes.InvalidParams,`Request ${I.method} defines ${Qe.numberOfParams} params but received none.`),I.method,xt);return}We=at(Ze.token)}else if(Array.isArray(I.params)){if(Qe!==void 0&&Qe.parameterStructures===ke.ParameterStructures.byName){he(new ke.ResponseError(ke.ErrorCodes.InvalidParams,`Request ${I.method} defines parameters by name but received parameters by position`),I.method,xt);return}We=at(...I.params,Ze.token)}else{if(Qe!==void 0&&Qe.parameterStructures===ke.ParameterStructures.byPosition){he(new ke.ResponseError(ke.ErrorCodes.InvalidParams,`Request ${I.method} defines parameters by position but received parameters by name`),I.method,xt);return}We=at(I.params,Ze.token)}else c&&(We=c(I.method,I.params,Ze.token));let mt=We;We?mt.then?mt.then(Vt=>{f.delete(ze),Z(Vt,I.method,xt)},Vt=>{f.delete(ze),Vt instanceof ke.ResponseError?he(Vt,I.method,xt):Vt&&Rt.string(Vt.message)?he(new ke.ResponseError(ke.ErrorCodes.InternalError,`Request ${I.method} failed with message: ${Vt.message}`),I.method,xt):he(new ke.ResponseError(ke.ErrorCodes.InternalError,`Request ${I.method} failed unexpectedly without providing any details.`),I.method,xt)}):(f.delete(ze),Z(We,I.method,xt)):(f.delete(ze),be(We,I.method,xt))}catch(We){f.delete(ze),We instanceof ke.ResponseError?Z(We,I.method,xt):We&&Rt.string(We.message)?he(new ke.ResponseError(ke.ErrorCodes.InternalError,`Request ${I.method} failed with message: ${We.message}`),I.method,xt):he(new ke.ResponseError(ke.ErrorCodes.InternalError,`Request ${I.method} failed unexpectedly without providing any details.`),I.method,xt)}}else he(new ke.ResponseError(ke.ErrorCodes.MethodNotFound,`Unhandled method ${I.method}`),I.method,xt)}function ie(I){if(!re())if(I.id===null)I.error?i.error(`Received response message without id: Error is:
|
|
4
4
|
${JSON.stringify(I.error,void 0,4)}`):i.error("Received response message without id. No further error information provided.");else{let Z=I.id,he=x.get(Z);if(Xe(I,he),he!==void 0){x.delete(Z);try{if(I.error){let be=I.error;he.reject(new ke.ResponseError(be.code,be.message,be.data))}else if(I.result!==void 0)he.resolve(I.result);else throw new Error("Should never happen.")}catch(be){be.message?i.error(`Response handler '${he.method}' failed with message: ${be.message}`):i.error(`Response handler '${he.method}' failed unexpectedly.`)}}}}function le(I){if(re())return;let Z,he;if(I.method===Es.type.method){let be=I.params.id;_.delete(be),Je(I);return}else{let be=h.get(I.method);be&&(he=be.handler,Z=be.type)}if(he||d)try{if(Je(I),he)if(I.params===void 0)Z!==void 0&&Z.numberOfParams!==0&&Z.parameterStructures!==ke.ParameterStructures.byName&&i.error(`Notification ${I.method} defines ${Z.numberOfParams} params but received none.`),he();else if(Array.isArray(I.params)){let be=I.params;I.method===Ts.type.method&&be.length===2&&sb.is(be[0])?he({token:be[0],value:be[1]}):(Z!==void 0&&(Z.parameterStructures===ke.ParameterStructures.byName&&i.error(`Notification ${I.method} defines parameters by name but received parameters by position`),Z.numberOfParams!==I.params.length&&i.error(`Notification ${I.method} defines ${Z.numberOfParams} params but received ${be.length} arguments`)),he(...be))}else Z!==void 0&&Z.parameterStructures===ke.ParameterStructures.byPosition&&i.error(`Notification ${I.method} defines parameters by position but received parameters by name`),he(I.params);else d&&d(I.method,I.params)}catch(be){be.message?i.error(`Notification handler '${I.method}' failed with message: ${be.message}`):i.error(`Notification handler '${I.method}' failed unexpectedly.`)}else M.fire(I)}function Ce(I){if(!I){i.error("Received empty message.");return}i.error(`Received message which is neither a response nor a notification message:
|
|
5
5
|
${JSON.stringify(I,null,4)}`);let Z=I;if(Rt.string(Z.id)||Rt.number(Z.id)){let he=Z.id,be=x.get(he);be&&be.reject(new Error("The received response has neither a result nor an error property."))}}function ge(I){if(I!=null)switch(g){case $e.Verbose:return JSON.stringify(I,null,4);case $e.Compact:return JSON.stringify(I);default:return}}function Ae(I){if(!(g===$e.Off||!L))if(D===Mn.Text){let Z;(g===$e.Verbose||g===$e.Compact)&&I.params&&(Z=`Params: ${ge(I.params)}
|
|
6
6
|
|
|
@@ -26,24 +26,24 @@ ${JSON.stringify(I,null,4)}`);let Z=I;if(Rt.string(Z.id)||Rt.number(Z.id)){let h
|
|
|
26
26
|
|
|
27
27
|
`:I.error===void 0&&(he=`No result returned.
|
|
28
28
|
|
|
29
|
-
`)),Z){let be=I.error?` Request failed: ${I.error.message} (${I.error.code}).`:"";L.log(`Received response '${Z.method} - (${I.id})' in ${Date.now()-Z.timerStart}ms.${be}`,he)}else L.log(`Received response ${I.id} without active response promise.`,he)}else st("receive-response",I)}function st(I,Z){if(!L||g===$e.Off)return;let he={isLSPMessage:!0,type:I,message:Z,timestamp:Date.now()};L.log(he)}function rt(){if(Q())throw new ti(Xa.Closed,"Connection is closed.");if(re())throw new ti(Xa.Disposed,"Connection is disposed.")}function Ot(){if(J())throw new ti(Xa.AlreadyListening,"Connection is already listening")}function Yn(){if(!J())throw new Error("Call listen() first.")}function St(I){return I===void 0?null:I}function Zn(I){if(I!==null)return I}function Ai(I){return I!=null&&!Array.isArray(I)&&typeof I=="object"}function Ri(I,Z){switch(I){case ke.ParameterStructures.auto:return Ai(Z)?Zn(Z):[St(Z)];case ke.ParameterStructures.byName:if(!Ai(Z))throw new Error("Received parameters by name but param is not an object literal.");return Zn(Z);case ke.ParameterStructures.byPosition:return[St(Z)];default:throw new Error(`Unknown parameter structure ${I.toString()}`)}}function Ii(I,Z){let he,be=I.numberOfParams;switch(be){case 0:he=void 0;break;case 1:he=Ri(I.parameterStructures,Z[0]);break;default:he=[];for(let He=0;He<Z.length&&He<be;He++)he.push(St(Z[He]));if(Z.length<be)for(let He=Z.length;He<be;He++)he.push(null);break}return he}let pn={sendNotification:(I,...Z)=>{rt();let he,be;if(Rt.string(I)){he=I;let Qe=Z[0],at=0,xt=ke.ParameterStructures.auto;ke.ParameterStructures.is(Qe)&&(at=1,xt=Qe);let ze=Z.length,Ze=ze-at;switch(Ze){case 0:be=void 0;break;case 1:be=Ri(xt,Z[at]);break;default:if(xt===ke.ParameterStructures.byName)throw new Error(`Received ${Ze} parameters for 'by Name' notification parameter structure.`);be=Z.slice(at,ze).map(We=>St(We));break}}else{let Qe=Z;he=I.method,be=Ii(I,Qe)}let He={jsonrpc:a,method:he,params:be};return Te(He),e.write(He).catch(()=>i.error("Sending notification failed."))},onNotification:(I,Z)=>{rt();let he;return Rt.func(I)?d=I:Z&&(Rt.string(I)?(he=I,h.set(I,{type:void 0,handler:Z})):(he=I.method,h.set(I.method,{type:I,handler:Z}))),{dispose:()=>{he!==void 0?h.delete(he):d=void 0}}},onProgress:(I,Z,he)=>{if(p.has(Z))throw new Error(`Progress handler for token ${Z} already registered`);return p.set(Z,he),{dispose:()=>{p.delete(Z)}}},sendProgress:(I,Z,he)=>pn.sendNotification(Ts.type,{token:Z,value:he}),onUnhandledProgress:oe.event,sendRequest:(I,...Z)=>{rt(),Yn();let he,be,He;if(Rt.string(I)){he=I;let ze=Z[0],Ze=Z[Z.length-1],We=0,mt=ke.ParameterStructures.auto;ke.ParameterStructures.is(ze)&&(We=1,mt=ze);let Vt=Z.length;gh.CancellationToken.is(Ze)&&(Vt=Vt-1,He=Ze);let Er=Vt-We;switch(Er){case 0:be=void 0;break;case 1:be=Ri(mt,Z[We]);break;default:if(mt===ke.ParameterStructures.byName)throw new Error(`Received ${Er} parameters for 'by Name' request parameter structure.`);be=Z.slice(We,Vt).map(er=>St(er));break}}else{let ze=Z;he=I.method,be=Ii(I,ze);let Ze=I.numberOfParams;He=gh.CancellationToken.is(ze[Ze])?ze[Ze]:void 0}let Qe=o++,at;return He&&(at=He.onCancellationRequested(()=>{let ze=W.sender.sendCancellation(pn,Qe);return ze===void 0?(i.log(`Received no promise from cancellation strategy when cancelling id ${Qe}`),Promise.resolve()):ze.catch(()=>{i.log(`Sending cancellation messages for id ${Qe} failed`)})})),new Promise((ze,Ze)=>{let We={jsonrpc:a,id:Qe,method:he,params:be},mt=er=>{ze(er),W.sender.cleanup(Qe),at?.dispose()},Vt=er=>{Ze(er),W.sender.cleanup(Qe),at?.dispose()},Er={method:he,timerStart:Date.now(),resolve:mt,reject:Vt};Ae(We);try{e.write(We).catch(()=>i.error("Sending request failed."))}catch(er){Er.reject(new ke.ResponseError(ke.ErrorCodes.MessageWriteError,er.message?er.message:"Unknown reason")),Er=null}Er&&x.set(Qe,Er)})},onRequest:(I,Z)=>{rt();let he=null;return vh.is(I)?(he=void 0,c=I):Rt.string(I)?(he=null,Z!==void 0&&(he=I,u.set(I,{handler:Z,type:void 0}))):Z!==void 0&&(he=I.method,u.set(I.method,{type:I,handler:Z})),{dispose:()=>{he!==null&&(he!==void 0?u.delete(he):c=void 0)}}},hasPendingResponse:()=>x.size>0,trace:async(I,Z,he)=>{let be=!1,He=Mn.Text;he!==void 0&&(Rt.boolean(he)?be=he:(be=he.sendNotification||!1,He=he.traceFormat||Mn.Text)),g=I,D=He,g===$e.Off?L=void 0:L=Z,be&&!Q()&&!re()&&await pn.sendNotification(ab.type,{value:$e.toString(I)})},onError:C.event,onClose:T.event,onUnhandledNotification:M.event,onDispose:N.event,end:()=>{e.end()},dispose:()=>{if(re())return;K=Pn.Disposed,N.fire(void 0);let I=new ke.ResponseError(ke.ErrorCodes.PendingResponseRejected,"Pending response rejected since connection got disposed");for(let Z of x.values())Z.reject(I);x=new Map,f=new Map,_=new Set,v=new ob.LinkedMap,Rt.func(e.dispose)&&e.dispose(),Rt.func(t.dispose)&&t.dispose()},listen:()=>{rt(),Ot(),K=Pn.Listening,t.listen(B)},inspect:()=>{(0,ib.default)().console.log("inspect")}};return pn.onNotification(wh.type,I=>{if(g===$e.Off||!L)return;let Z=g===$e.Verbose||g===$e.Compact;L.log(I.message,Z?I.verbose:void 0)}),pn.onNotification(Ts.type,I=>{let Z=p.get(I.token);Z?Z(I.value):oe.fire(I)}),pn}Se.createMessageConnection=T1});var Th=X(ee=>{"use strict";Object.defineProperty(ee,"__esModule",{value:!0});ee.TraceFormat=ee.TraceValues=ee.Trace=ee.ProgressType=ee.ProgressToken=ee.createMessageConnection=ee.NullLogger=ee.ConnectionOptions=ee.ConnectionStrategy=ee.WriteableStreamMessageWriter=ee.AbstractMessageWriter=ee.MessageWriter=ee.ReadableStreamMessageReader=ee.AbstractMessageReader=ee.MessageReader=ee.CancellationToken=ee.CancellationTokenSource=ee.Emitter=ee.Event=ee.Disposable=ee.LRUCache=ee.Touch=ee.LinkedMap=ee.ParameterStructures=ee.NotificationType9=ee.NotificationType8=ee.NotificationType7=ee.NotificationType6=ee.NotificationType5=ee.NotificationType4=ee.NotificationType3=ee.NotificationType2=ee.NotificationType1=ee.NotificationType0=ee.NotificationType=ee.ErrorCodes=ee.ResponseError=ee.RequestType9=ee.RequestType8=ee.RequestType7=ee.RequestType6=ee.RequestType5=ee.RequestType4=ee.RequestType3=ee.RequestType2=ee.RequestType1=ee.RequestType0=ee.RequestType=ee.Message=ee.RAL=void 0;ee.CancellationStrategy=ee.CancellationSenderStrategy=ee.CancellationReceiverStrategy=ee.ConnectionError=ee.ConnectionErrors=ee.LogTraceNotification=ee.SetTraceNotification=void 0;var tt=nh();Object.defineProperty(ee,"Message",{enumerable:!0,get:function(){return tt.Message}});Object.defineProperty(ee,"RequestType",{enumerable:!0,get:function(){return tt.RequestType}});Object.defineProperty(ee,"RequestType0",{enumerable:!0,get:function(){return tt.RequestType0}});Object.defineProperty(ee,"RequestType1",{enumerable:!0,get:function(){return tt.RequestType1}});Object.defineProperty(ee,"RequestType2",{enumerable:!0,get:function(){return tt.RequestType2}});Object.defineProperty(ee,"RequestType3",{enumerable:!0,get:function(){return tt.RequestType3}});Object.defineProperty(ee,"RequestType4",{enumerable:!0,get:function(){return tt.RequestType4}});Object.defineProperty(ee,"RequestType5",{enumerable:!0,get:function(){return tt.RequestType5}});Object.defineProperty(ee,"RequestType6",{enumerable:!0,get:function(){return tt.RequestType6}});Object.defineProperty(ee,"RequestType7",{enumerable:!0,get:function(){return tt.RequestType7}});Object.defineProperty(ee,"RequestType8",{enumerable:!0,get:function(){return tt.RequestType8}});Object.defineProperty(ee,"RequestType9",{enumerable:!0,get:function(){return tt.RequestType9}});Object.defineProperty(ee,"ResponseError",{enumerable:!0,get:function(){return tt.ResponseError}});Object.defineProperty(ee,"ErrorCodes",{enumerable:!0,get:function(){return tt.ErrorCodes}});Object.defineProperty(ee,"NotificationType",{enumerable:!0,get:function(){return tt.NotificationType}});Object.defineProperty(ee,"NotificationType0",{enumerable:!0,get:function(){return tt.NotificationType0}});Object.defineProperty(ee,"NotificationType1",{enumerable:!0,get:function(){return tt.NotificationType1}});Object.defineProperty(ee,"NotificationType2",{enumerable:!0,get:function(){return tt.NotificationType2}});Object.defineProperty(ee,"NotificationType3",{enumerable:!0,get:function(){return tt.NotificationType3}});Object.defineProperty(ee,"NotificationType4",{enumerable:!0,get:function(){return tt.NotificationType4}});Object.defineProperty(ee,"NotificationType5",{enumerable:!0,get:function(){return tt.NotificationType5}});Object.defineProperty(ee,"NotificationType6",{enumerable:!0,get:function(){return tt.NotificationType6}});Object.defineProperty(ee,"NotificationType7",{enumerable:!0,get:function(){return tt.NotificationType7}});Object.defineProperty(ee,"NotificationType8",{enumerable:!0,get:function(){return tt.NotificationType8}});Object.defineProperty(ee,"NotificationType9",{enumerable:!0,get:function(){return tt.NotificationType9}});Object.defineProperty(ee,"ParameterStructures",{enumerable:!0,get:function(){return tt.ParameterStructures}});var xh=ih();Object.defineProperty(ee,"LinkedMap",{enumerable:!0,get:function(){return xh.LinkedMap}});Object.defineProperty(ee,"LRUCache",{enumerable:!0,get:function(){return xh.LRUCache}});Object.defineProperty(ee,"Touch",{enumerable:!0,get:function(){return xh.Touch}});var E1=Ed();Object.defineProperty(ee,"Disposable",{enumerable:!0,get:function(){return E1.Disposable}});var ub=zi();Object.defineProperty(ee,"Event",{enumerable:!0,get:function(){return ub.Event}});Object.defineProperty(ee,"Emitter",{enumerable:!0,get:function(){return ub.Emitter}});var db=lh();Object.defineProperty(ee,"CancellationTokenSource",{enumerable:!0,get:function(){return db.CancellationTokenSource}});Object.defineProperty(ee,"CancellationToken",{enumerable:!0,get:function(){return db.CancellationToken}});var kh=Yg();Object.defineProperty(ee,"MessageReader",{enumerable:!0,get:function(){return kh.MessageReader}});Object.defineProperty(ee,"AbstractMessageReader",{enumerable:!0,get:function(){return kh.AbstractMessageReader}});Object.defineProperty(ee,"ReadableStreamMessageReader",{enumerable:!0,get:function(){return kh.ReadableStreamMessageReader}});var Ch=rb();Object.defineProperty(ee,"MessageWriter",{enumerable:!0,get:function(){return Ch.MessageWriter}});Object.defineProperty(ee,"AbstractMessageWriter",{enumerable:!0,get:function(){return Ch.AbstractMessageWriter}});Object.defineProperty(ee,"WriteableStreamMessageWriter",{enumerable:!0,get:function(){return Ch.WriteableStreamMessageWriter}});var Gt=cb();Object.defineProperty(ee,"ConnectionStrategy",{enumerable:!0,get:function(){return Gt.ConnectionStrategy}});Object.defineProperty(ee,"ConnectionOptions",{enumerable:!0,get:function(){return Gt.ConnectionOptions}});Object.defineProperty(ee,"NullLogger",{enumerable:!0,get:function(){return Gt.NullLogger}});Object.defineProperty(ee,"createMessageConnection",{enumerable:!0,get:function(){return Gt.createMessageConnection}});Object.defineProperty(ee,"ProgressToken",{enumerable:!0,get:function(){return Gt.ProgressToken}});Object.defineProperty(ee,"ProgressType",{enumerable:!0,get:function(){return Gt.ProgressType}});Object.defineProperty(ee,"Trace",{enumerable:!0,get:function(){return Gt.Trace}});Object.defineProperty(ee,"TraceValues",{enumerable:!0,get:function(){return Gt.TraceValues}});Object.defineProperty(ee,"TraceFormat",{enumerable:!0,get:function(){return Gt.TraceFormat}});Object.defineProperty(ee,"SetTraceNotification",{enumerable:!0,get:function(){return Gt.SetTraceNotification}});Object.defineProperty(ee,"LogTraceNotification",{enumerable:!0,get:function(){return Gt.LogTraceNotification}});Object.defineProperty(ee,"ConnectionErrors",{enumerable:!0,get:function(){return Gt.ConnectionErrors}});Object.defineProperty(ee,"ConnectionError",{enumerable:!0,get:function(){return Gt.ConnectionError}});Object.defineProperty(ee,"CancellationReceiverStrategy",{enumerable:!0,get:function(){return Gt.CancellationReceiverStrategy}});Object.defineProperty(ee,"CancellationSenderStrategy",{enumerable:!0,get:function(){return Gt.CancellationSenderStrategy}});Object.defineProperty(ee,"CancellationStrategy",{enumerable:!0,get:function(){return Gt.CancellationStrategy}});var D1=Fr();ee.RAL=D1.default});var Ni=X(an=>{"use strict";var F1=an&&an.__createBinding||(Object.create?function(t,e,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(e,n);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,i)}:function(t,e,n,r){r===void 0&&(r=n),t[r]=e[n]}),A1=an&&an.__exportStar||function(t,e){for(var n in t)n!=="default"&&!Object.prototype.hasOwnProperty.call(e,n)&&F1(e,t,n)};Object.defineProperty(an,"__esModule",{value:!0});an.createMessageConnection=an.BrowserMessageWriter=an.BrowserMessageReader=void 0;var R1=Kg();R1.default.install();var vo=Th();A1(Th(),an);var Eh=class extends vo.AbstractMessageReader{constructor(e){super(),this._onData=new vo.Emitter,this._messageListener=n=>{this._onData.fire(n.data)},e.addEventListener("error",n=>this.fireError(n)),e.onmessage=this._messageListener}listen(e){return this._onData.event(e)}};an.BrowserMessageReader=Eh;var Dh=class extends vo.AbstractMessageWriter{constructor(e){super(),this.context=e,this.errorCount=0,e.addEventListener("error",n=>this.fireError(n))}write(e){try{return this.context.postMessage(e),Promise.resolve()}catch(n){return this.handleError(n,e),Promise.reject(n)}}handleError(e,n){this.errorCount++,this.fireError(e,n,this.errorCount)}end(){}};an.BrowserMessageWriter=Dh;function I1(t,e,n,r){return n===void 0&&(n=vo.NullLogger),vo.ConnectionStrategy.is(r)&&(r={connectionStrategy:r}),(0,vo.createMessageConnection)(t,e,n,r)}an.createMessageConnection=I1});var Fh=X((SN,hb)=>{"use strict";hb.exports=Ni()});var Xt=X((pb,Qa)=>{(function(t){if(typeof Qa=="object"&&typeof Qa.exports=="object"){var e=t(Lt,pb);e!==void 0&&(Qa.exports=e)}else typeof define=="function"&&define.amd&&define(["require","exports"],t)})(function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.TextDocument=e.EOL=e.WorkspaceFolder=e.InlayHint=e.InlayHintLabelPart=e.InlayHintKind=e.InlineValueContext=e.InlineValueEvaluatableExpression=e.InlineValueVariableLookup=e.InlineValueText=e.SemanticTokens=e.SemanticTokenModifiers=e.SemanticTokenTypes=e.SelectionRange=e.DocumentLink=e.FormattingOptions=e.CodeLens=e.CodeAction=e.CodeActionContext=e.CodeActionTriggerKind=e.CodeActionKind=e.DocumentSymbol=e.WorkspaceSymbol=e.SymbolInformation=e.SymbolTag=e.SymbolKind=e.DocumentHighlight=e.DocumentHighlightKind=e.SignatureInformation=e.ParameterInformation=e.Hover=e.MarkedString=e.CompletionList=e.CompletionItem=e.CompletionItemLabelDetails=e.InsertTextMode=e.InsertReplaceEdit=e.CompletionItemTag=e.InsertTextFormat=e.CompletionItemKind=e.MarkupContent=e.MarkupKind=e.TextDocumentItem=e.OptionalVersionedTextDocumentIdentifier=e.VersionedTextDocumentIdentifier=e.TextDocumentIdentifier=e.WorkspaceChange=e.WorkspaceEdit=e.DeleteFile=e.RenameFile=e.CreateFile=e.TextDocumentEdit=e.AnnotatedTextEdit=e.ChangeAnnotationIdentifier=e.ChangeAnnotation=e.TextEdit=e.Command=e.Diagnostic=e.CodeDescription=e.DiagnosticTag=e.DiagnosticSeverity=e.DiagnosticRelatedInformation=e.FoldingRange=e.FoldingRangeKind=e.ColorPresentation=e.ColorInformation=e.Color=e.LocationLink=e.Location=e.Range=e.Position=e.uinteger=e.integer=e.URI=e.DocumentUri=void 0;var n;(function(y){function z(O){return typeof O=="string"}y.is=z})(n=e.DocumentUri||(e.DocumentUri={}));var r;(function(y){function z(O){return typeof O=="string"}y.is=z})(r=e.URI||(e.URI={}));var i;(function(y){y.MIN_VALUE=-2147483648,y.MAX_VALUE=2147483647;function z(O){return typeof O=="number"&&y.MIN_VALUE<=O&&O<=y.MAX_VALUE}y.is=z})(i=e.integer||(e.integer={}));var o;(function(y){y.MIN_VALUE=0,y.MAX_VALUE=2147483647;function z(O){return typeof O=="number"&&y.MIN_VALUE<=O&&O<=y.MAX_VALUE}y.is=z})(o=e.uinteger||(e.uinteger={}));var s;(function(y){function z(k,b){return k===Number.MAX_VALUE&&(k=o.MAX_VALUE),b===Number.MAX_VALUE&&(b=o.MAX_VALUE),{line:k,character:b}}y.create=z;function O(k){var b=k;return j.objectLiteral(b)&&j.uinteger(b.line)&&j.uinteger(b.character)}y.is=O})(s=e.Position||(e.Position={}));var l;(function(y){function z(k,b,H,te){if(j.uinteger(k)&&j.uinteger(b)&&j.uinteger(H)&&j.uinteger(te))return{start:s.create(k,b),end:s.create(H,te)};if(s.is(k)&&s.is(b))return{start:k,end:b};throw new Error("Range#create called with invalid arguments[".concat(k,", ").concat(b,", ").concat(H,", ").concat(te,"]"))}y.create=z;function O(k){var b=k;return j.objectLiteral(b)&&s.is(b.start)&&s.is(b.end)}y.is=O})(l=e.Range||(e.Range={}));var a;(function(y){function z(k,b){return{uri:k,range:b}}y.create=z;function O(k){var b=k;return j.objectLiteral(b)&&l.is(b.range)&&(j.string(b.uri)||j.undefined(b.uri))}y.is=O})(a=e.Location||(e.Location={}));var c;(function(y){function z(k,b,H,te){return{targetUri:k,targetRange:b,targetSelectionRange:H,originSelectionRange:te}}y.create=z;function O(k){var b=k;return j.objectLiteral(b)&&l.is(b.targetRange)&&j.string(b.targetUri)&&l.is(b.targetSelectionRange)&&(l.is(b.originSelectionRange)||j.undefined(b.originSelectionRange))}y.is=O})(c=e.LocationLink||(e.LocationLink={}));var u;(function(y){function z(k,b,H,te){return{red:k,green:b,blue:H,alpha:te}}y.create=z;function O(k){var b=k;return j.objectLiteral(b)&&j.numberRange(b.red,0,1)&&j.numberRange(b.green,0,1)&&j.numberRange(b.blue,0,1)&&j.numberRange(b.alpha,0,1)}y.is=O})(u=e.Color||(e.Color={}));var d;(function(y){function z(k,b){return{range:k,color:b}}y.create=z;function O(k){var b=k;return j.objectLiteral(b)&&l.is(b.range)&&u.is(b.color)}y.is=O})(d=e.ColorInformation||(e.ColorInformation={}));var h;(function(y){function z(k,b,H){return{label:k,textEdit:b,additionalTextEdits:H}}y.create=z;function O(k){var b=k;return j.objectLiteral(b)&&j.string(b.label)&&(j.undefined(b.textEdit)||L.is(b))&&(j.undefined(b.additionalTextEdits)||j.typedArray(b.additionalTextEdits,L.is))}y.is=O})(h=e.ColorPresentation||(e.ColorPresentation={}));var p;(function(y){y.Comment="comment",y.Imports="imports",y.Region="region"})(p=e.FoldingRangeKind||(e.FoldingRangeKind={}));var w;(function(y){function z(k,b,H,te,Fe,ht){var et={startLine:k,endLine:b};return j.defined(H)&&(et.startCharacter=H),j.defined(te)&&(et.endCharacter=te),j.defined(Fe)&&(et.kind=Fe),j.defined(ht)&&(et.collapsedText=ht),et}y.create=z;function O(k){var b=k;return j.objectLiteral(b)&&j.uinteger(b.startLine)&&j.uinteger(b.startLine)&&(j.undefined(b.startCharacter)||j.uinteger(b.startCharacter))&&(j.undefined(b.endCharacter)||j.uinteger(b.endCharacter))&&(j.undefined(b.kind)||j.string(b.kind))}y.is=O})(w=e.FoldingRange||(e.FoldingRange={}));var v;(function(y){function z(k,b){return{location:k,message:b}}y.create=z;function O(k){var b=k;return j.defined(b)&&a.is(b.location)&&j.string(b.message)}y.is=O})(v=e.DiagnosticRelatedInformation||(e.DiagnosticRelatedInformation={}));var x;(function(y){y.Error=1,y.Warning=2,y.Information=3,y.Hint=4})(x=e.DiagnosticSeverity||(e.DiagnosticSeverity={}));var _;(function(y){y.Unnecessary=1,y.Deprecated=2})(_=e.DiagnosticTag||(e.DiagnosticTag={}));var f;(function(y){function z(O){var k=O;return j.objectLiteral(k)&&j.string(k.href)}y.is=z})(f=e.CodeDescription||(e.CodeDescription={}));var g;(function(y){function z(k,b,H,te,Fe,ht){var et={range:k,message:b};return j.defined(H)&&(et.severity=H),j.defined(te)&&(et.code=te),j.defined(Fe)&&(et.source=Fe),j.defined(ht)&&(et.relatedInformation=ht),et}y.create=z;function O(k){var b,H=k;return j.defined(H)&&l.is(H.range)&&j.string(H.message)&&(j.number(H.severity)||j.undefined(H.severity))&&(j.integer(H.code)||j.string(H.code)||j.undefined(H.code))&&(j.undefined(H.codeDescription)||j.string((b=H.codeDescription)===null||b===void 0?void 0:b.href))&&(j.string(H.source)||j.undefined(H.source))&&(j.undefined(H.relatedInformation)||j.typedArray(H.relatedInformation,v.is))}y.is=O})(g=e.Diagnostic||(e.Diagnostic={}));var D;(function(y){function z(k,b){for(var H=[],te=2;te<arguments.length;te++)H[te-2]=arguments[te];var Fe={title:k,command:b};return j.defined(H)&&H.length>0&&(Fe.arguments=H),Fe}y.create=z;function O(k){var b=k;return j.defined(b)&&j.string(b.title)&&j.string(b.command)}y.is=O})(D=e.Command||(e.Command={}));var L;(function(y){function z(H,te){return{range:H,newText:te}}y.replace=z;function O(H,te){return{range:{start:H,end:H},newText:te}}y.insert=O;function k(H){return{range:H,newText:""}}y.del=k;function b(H){var te=H;return j.objectLiteral(te)&&j.string(te.newText)&&l.is(te.range)}y.is=b})(L=e.TextEdit||(e.TextEdit={}));var K;(function(y){function z(k,b,H){var te={label:k};return b!==void 0&&(te.needsConfirmation=b),H!==void 0&&(te.description=H),te}y.create=z;function O(k){var b=k;return j.objectLiteral(b)&&j.string(b.label)&&(j.boolean(b.needsConfirmation)||b.needsConfirmation===void 0)&&(j.string(b.description)||b.description===void 0)}y.is=O})(K=e.ChangeAnnotation||(e.ChangeAnnotation={}));var C;(function(y){function z(O){var k=O;return j.string(k)}y.is=z})(C=e.ChangeAnnotationIdentifier||(e.ChangeAnnotationIdentifier={}));var T;(function(y){function z(H,te,Fe){return{range:H,newText:te,annotationId:Fe}}y.replace=z;function O(H,te,Fe){return{range:{start:H,end:H},newText:te,annotationId:Fe}}y.insert=O;function k(H,te){return{range:H,newText:"",annotationId:te}}y.del=k;function b(H){var te=H;return L.is(te)&&(K.is(te.annotationId)||C.is(te.annotationId))}y.is=b})(T=e.AnnotatedTextEdit||(e.AnnotatedTextEdit={}));var M;(function(y){function z(k,b){return{textDocument:k,edits:b}}y.create=z;function O(k){var b=k;return j.defined(b)&&Q.is(b.textDocument)&&Array.isArray(b.edits)}y.is=O})(M=e.TextDocumentEdit||(e.TextDocumentEdit={}));var oe;(function(y){function z(k,b,H){var te={kind:"create",uri:k};return b!==void 0&&(b.overwrite!==void 0||b.ignoreIfExists!==void 0)&&(te.options=b),H!==void 0&&(te.annotationId=H),te}y.create=z;function O(k){var b=k;return b&&b.kind==="create"&&j.string(b.uri)&&(b.options===void 0||(b.options.overwrite===void 0||j.boolean(b.options.overwrite))&&(b.options.ignoreIfExists===void 0||j.boolean(b.options.ignoreIfExists)))&&(b.annotationId===void 0||C.is(b.annotationId))}y.is=O})(oe=e.CreateFile||(e.CreateFile={}));var N;(function(y){function z(k,b,H,te){var Fe={kind:"rename",oldUri:k,newUri:b};return H!==void 0&&(H.overwrite!==void 0||H.ignoreIfExists!==void 0)&&(Fe.options=H),te!==void 0&&(Fe.annotationId=te),Fe}y.create=z;function O(k){var b=k;return b&&b.kind==="rename"&&j.string(b.oldUri)&&j.string(b.newUri)&&(b.options===void 0||(b.options.overwrite===void 0||j.boolean(b.options.overwrite))&&(b.options.ignoreIfExists===void 0||j.boolean(b.options.ignoreIfExists)))&&(b.annotationId===void 0||C.is(b.annotationId))}y.is=O})(N=e.RenameFile||(e.RenameFile={}));var W;(function(y){function z(k,b,H){var te={kind:"delete",uri:k};return b!==void 0&&(b.recursive!==void 0||b.ignoreIfNotExists!==void 0)&&(te.options=b),H!==void 0&&(te.annotationId=H),te}y.create=z;function O(k){var b=k;return b&&b.kind==="delete"&&j.string(b.uri)&&(b.options===void 0||(b.options.recursive===void 0||j.boolean(b.options.recursive))&&(b.options.ignoreIfNotExists===void 0||j.boolean(b.options.ignoreIfNotExists)))&&(b.annotationId===void 0||C.is(b.annotationId))}y.is=O})(W=e.DeleteFile||(e.DeleteFile={}));var V;(function(y){function z(O){var k=O;return k&&(k.changes!==void 0||k.documentChanges!==void 0)&&(k.documentChanges===void 0||k.documentChanges.every(function(b){return j.string(b.kind)?oe.is(b)||N.is(b)||W.is(b):M.is(b)}))}y.is=z})(V=e.WorkspaceEdit||(e.WorkspaceEdit={}));var G=function(){function y(z,O){this.edits=z,this.changeAnnotations=O}return y.prototype.insert=function(z,O,k){var b,H;if(k===void 0?b=L.insert(z,O):C.is(k)?(H=k,b=T.insert(z,O,k)):(this.assertChangeAnnotations(this.changeAnnotations),H=this.changeAnnotations.manage(k),b=T.insert(z,O,H)),this.edits.push(b),H!==void 0)return H},y.prototype.replace=function(z,O,k){var b,H;if(k===void 0?b=L.replace(z,O):C.is(k)?(H=k,b=T.replace(z,O,k)):(this.assertChangeAnnotations(this.changeAnnotations),H=this.changeAnnotations.manage(k),b=T.replace(z,O,H)),this.edits.push(b),H!==void 0)return H},y.prototype.delete=function(z,O){var k,b;if(O===void 0?k=L.del(z):C.is(O)?(b=O,k=T.del(z,O)):(this.assertChangeAnnotations(this.changeAnnotations),b=this.changeAnnotations.manage(O),k=T.del(z,b)),this.edits.push(k),b!==void 0)return b},y.prototype.add=function(z){this.edits.push(z)},y.prototype.all=function(){return this.edits},y.prototype.clear=function(){this.edits.splice(0,this.edits.length)},y.prototype.assertChangeAnnotations=function(z){if(z===void 0)throw new Error("Text edit change is not configured to manage change annotations.")},y}(),U=function(){function y(z){this._annotations=z===void 0?Object.create(null):z,this._counter=0,this._size=0}return y.prototype.all=function(){return this._annotations},Object.defineProperty(y.prototype,"size",{get:function(){return this._size},enumerable:!1,configurable:!0}),y.prototype.manage=function(z,O){var k;if(C.is(z)?k=z:(k=this.nextId(),O=z),this._annotations[k]!==void 0)throw new Error("Id ".concat(k," is already in use."));if(O===void 0)throw new Error("No annotation provided for id ".concat(k));return this._annotations[k]=O,this._size++,k},y.prototype.nextId=function(){return this._counter++,this._counter.toString()},y}(),P=function(){function y(z){var O=this;this._textEditChanges=Object.create(null),z!==void 0?(this._workspaceEdit=z,z.documentChanges?(this._changeAnnotations=new U(z.changeAnnotations),z.changeAnnotations=this._changeAnnotations.all(),z.documentChanges.forEach(function(k){if(M.is(k)){var b=new G(k.edits,O._changeAnnotations);O._textEditChanges[k.textDocument.uri]=b}})):z.changes&&Object.keys(z.changes).forEach(function(k){var b=new G(z.changes[k]);O._textEditChanges[k]=b})):this._workspaceEdit={}}return Object.defineProperty(y.prototype,"edit",{get:function(){return this.initDocumentChanges(),this._changeAnnotations!==void 0&&(this._changeAnnotations.size===0?this._workspaceEdit.changeAnnotations=void 0:this._workspaceEdit.changeAnnotations=this._changeAnnotations.all()),this._workspaceEdit},enumerable:!1,configurable:!0}),y.prototype.getTextEditChange=function(z){if(Q.is(z)){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var O={uri:z.uri,version:z.version},k=this._textEditChanges[O.uri];if(!k){var b=[],H={textDocument:O,edits:b};this._workspaceEdit.documentChanges.push(H),k=new G(b,this._changeAnnotations),this._textEditChanges[O.uri]=k}return k}else{if(this.initChanges(),this._workspaceEdit.changes===void 0)throw new Error("Workspace edit is not configured for normal text edit changes.");var k=this._textEditChanges[z];if(!k){var b=[];this._workspaceEdit.changes[z]=b,k=new G(b),this._textEditChanges[z]=k}return k}},y.prototype.initDocumentChanges=function(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._changeAnnotations=new U,this._workspaceEdit.documentChanges=[],this._workspaceEdit.changeAnnotations=this._changeAnnotations.all())},y.prototype.initChanges=function(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._workspaceEdit.changes=Object.create(null))},y.prototype.createFile=function(z,O,k){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var b;K.is(O)||C.is(O)?b=O:k=O;var H,te;if(b===void 0?H=oe.create(z,k):(te=C.is(b)?b:this._changeAnnotations.manage(b),H=oe.create(z,k,te)),this._workspaceEdit.documentChanges.push(H),te!==void 0)return te},y.prototype.renameFile=function(z,O,k,b){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var H;K.is(k)||C.is(k)?H=k:b=k;var te,Fe;if(H===void 0?te=N.create(z,O,b):(Fe=C.is(H)?H:this._changeAnnotations.manage(H),te=N.create(z,O,b,Fe)),this._workspaceEdit.documentChanges.push(te),Fe!==void 0)return Fe},y.prototype.deleteFile=function(z,O,k){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var b;K.is(O)||C.is(O)?b=O:k=O;var H,te;if(b===void 0?H=W.create(z,k):(te=C.is(b)?b:this._changeAnnotations.manage(b),H=W.create(z,k,te)),this._workspaceEdit.documentChanges.push(H),te!==void 0)return te},y}();e.WorkspaceChange=P;var R;(function(y){function z(k){return{uri:k}}y.create=z;function O(k){var b=k;return j.defined(b)&&j.string(b.uri)}y.is=O})(R=e.TextDocumentIdentifier||(e.TextDocumentIdentifier={}));var J;(function(y){function z(k,b){return{uri:k,version:b}}y.create=z;function O(k){var b=k;return j.defined(b)&&j.string(b.uri)&&j.integer(b.version)}y.is=O})(J=e.VersionedTextDocumentIdentifier||(e.VersionedTextDocumentIdentifier={}));var Q;(function(y){function z(k,b){return{uri:k,version:b}}y.create=z;function O(k){var b=k;return j.defined(b)&&j.string(b.uri)&&(b.version===null||j.integer(b.version))}y.is=O})(Q=e.OptionalVersionedTextDocumentIdentifier||(e.OptionalVersionedTextDocumentIdentifier={}));var re;(function(y){function z(k,b,H,te){return{uri:k,languageId:b,version:H,text:te}}y.create=z;function O(k){var b=k;return j.defined(b)&&j.string(b.uri)&&j.string(b.languageId)&&j.integer(b.version)&&j.string(b.text)}y.is=O})(re=e.TextDocumentItem||(e.TextDocumentItem={}));var de;(function(y){y.PlainText="plaintext",y.Markdown="markdown";function z(O){var k=O;return k===y.PlainText||k===y.Markdown}y.is=z})(de=e.MarkupKind||(e.MarkupKind={}));var se;(function(y){function z(O){var k=O;return j.objectLiteral(O)&&de.is(k.kind)&&j.string(k.value)}y.is=z})(se=e.MarkupContent||(e.MarkupContent={}));var ae;(function(y){y.Text=1,y.Method=2,y.Function=3,y.Constructor=4,y.Field=5,y.Variable=6,y.Class=7,y.Interface=8,y.Module=9,y.Property=10,y.Unit=11,y.Value=12,y.Enum=13,y.Keyword=14,y.Snippet=15,y.Color=16,y.File=17,y.Reference=18,y.Folder=19,y.EnumMember=20,y.Constant=21,y.Struct=22,y.Event=23,y.Operator=24,y.TypeParameter=25})(ae=e.CompletionItemKind||(e.CompletionItemKind={}));var pe;(function(y){y.PlainText=1,y.Snippet=2})(pe=e.InsertTextFormat||(e.InsertTextFormat={}));var xe;(function(y){y.Deprecated=1})(xe=e.CompletionItemTag||(e.CompletionItemTag={}));var B;(function(y){function z(k,b,H){return{newText:k,insert:b,replace:H}}y.create=z;function O(k){var b=k;return b&&j.string(b.newText)&&l.is(b.insert)&&l.is(b.replace)}y.is=O})(B=e.InsertReplaceEdit||(e.InsertReplaceEdit={}));var Y;(function(y){y.asIs=1,y.adjustIndentation=2})(Y=e.InsertTextMode||(e.InsertTextMode={}));var ie;(function(y){function z(O){var k=O;return k&&(j.string(k.detail)||k.detail===void 0)&&(j.string(k.description)||k.description===void 0)}y.is=z})(ie=e.CompletionItemLabelDetails||(e.CompletionItemLabelDetails={}));var le;(function(y){function z(O){return{label:O}}y.create=z})(le=e.CompletionItem||(e.CompletionItem={}));var Ce;(function(y){function z(O,k){return{items:O||[],isIncomplete:!!k}}y.create=z})(Ce=e.CompletionList||(e.CompletionList={}));var ge;(function(y){function z(k){return k.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}y.fromPlainText=z;function O(k){var b=k;return j.string(b)||j.objectLiteral(b)&&j.string(b.language)&&j.string(b.value)}y.is=O})(ge=e.MarkedString||(e.MarkedString={}));var Ae;(function(y){function z(O){var k=O;return!!k&&j.objectLiteral(k)&&(se.is(k.contents)||ge.is(k.contents)||j.typedArray(k.contents,ge.is))&&(O.range===void 0||l.is(O.range))}y.is=z})(Ae=e.Hover||(e.Hover={}));var Te;(function(y){function z(O,k){return k?{label:O,documentation:k}:{label:O}}y.create=z})(Te=e.ParameterInformation||(e.ParameterInformation={}));var Re;(function(y){function z(O,k){for(var b=[],H=2;H<arguments.length;H++)b[H-2]=arguments[H];var te={label:O};return j.defined(k)&&(te.documentation=k),j.defined(b)?te.parameters=b:te.parameters=[],te}y.create=z})(Re=e.SignatureInformation||(e.SignatureInformation={}));var Ue;(function(y){y.Text=1,y.Read=2,y.Write=3})(Ue=e.DocumentHighlightKind||(e.DocumentHighlightKind={}));var Je;(function(y){function z(O,k){var b={range:O};return j.number(k)&&(b.kind=k),b}y.create=z})(Je=e.DocumentHighlight||(e.DocumentHighlight={}));var Xe;(function(y){y.File=1,y.Module=2,y.Namespace=3,y.Package=4,y.Class=5,y.Method=6,y.Property=7,y.Field=8,y.Constructor=9,y.Enum=10,y.Interface=11,y.Function=12,y.Variable=13,y.Constant=14,y.String=15,y.Number=16,y.Boolean=17,y.Array=18,y.Object=19,y.Key=20,y.Null=21,y.EnumMember=22,y.Struct=23,y.Event=24,y.Operator=25,y.TypeParameter=26})(Xe=e.SymbolKind||(e.SymbolKind={}));var st;(function(y){y.Deprecated=1})(st=e.SymbolTag||(e.SymbolTag={}));var rt;(function(y){function z(O,k,b,H,te){var Fe={name:O,kind:k,location:{uri:H,range:b}};return te&&(Fe.containerName=te),Fe}y.create=z})(rt=e.SymbolInformation||(e.SymbolInformation={}));var Ot;(function(y){function z(O,k,b,H){return H!==void 0?{name:O,kind:k,location:{uri:b,range:H}}:{name:O,kind:k,location:{uri:b}}}y.create=z})(Ot=e.WorkspaceSymbol||(e.WorkspaceSymbol={}));var Yn;(function(y){function z(k,b,H,te,Fe,ht){var et={name:k,detail:b,kind:H,range:te,selectionRange:Fe};return ht!==void 0&&(et.children=ht),et}y.create=z;function O(k){var b=k;return b&&j.string(b.name)&&j.number(b.kind)&&l.is(b.range)&&l.is(b.selectionRange)&&(b.detail===void 0||j.string(b.detail))&&(b.deprecated===void 0||j.boolean(b.deprecated))&&(b.children===void 0||Array.isArray(b.children))&&(b.tags===void 0||Array.isArray(b.tags))}y.is=O})(Yn=e.DocumentSymbol||(e.DocumentSymbol={}));var St;(function(y){y.Empty="",y.QuickFix="quickfix",y.Refactor="refactor",y.RefactorExtract="refactor.extract",y.RefactorInline="refactor.inline",y.RefactorRewrite="refactor.rewrite",y.Source="source",y.SourceOrganizeImports="source.organizeImports",y.SourceFixAll="source.fixAll"})(St=e.CodeActionKind||(e.CodeActionKind={}));var Zn;(function(y){y.Invoked=1,y.Automatic=2})(Zn=e.CodeActionTriggerKind||(e.CodeActionTriggerKind={}));var Ai;(function(y){function z(k,b,H){var te={diagnostics:k};return b!=null&&(te.only=b),H!=null&&(te.triggerKind=H),te}y.create=z;function O(k){var b=k;return j.defined(b)&&j.typedArray(b.diagnostics,g.is)&&(b.only===void 0||j.typedArray(b.only,j.string))&&(b.triggerKind===void 0||b.triggerKind===Zn.Invoked||b.triggerKind===Zn.Automatic)}y.is=O})(Ai=e.CodeActionContext||(e.CodeActionContext={}));var Ri;(function(y){function z(k,b,H){var te={title:k},Fe=!0;return typeof b=="string"?(Fe=!1,te.kind=b):D.is(b)?te.command=b:te.edit=b,Fe&&H!==void 0&&(te.kind=H),te}y.create=z;function O(k){var b=k;return b&&j.string(b.title)&&(b.diagnostics===void 0||j.typedArray(b.diagnostics,g.is))&&(b.kind===void 0||j.string(b.kind))&&(b.edit!==void 0||b.command!==void 0)&&(b.command===void 0||D.is(b.command))&&(b.isPreferred===void 0||j.boolean(b.isPreferred))&&(b.edit===void 0||V.is(b.edit))}y.is=O})(Ri=e.CodeAction||(e.CodeAction={}));var Ii;(function(y){function z(k,b){var H={range:k};return j.defined(b)&&(H.data=b),H}y.create=z;function O(k){var b=k;return j.defined(b)&&l.is(b.range)&&(j.undefined(b.command)||D.is(b.command))}y.is=O})(Ii=e.CodeLens||(e.CodeLens={}));var pn;(function(y){function z(k,b){return{tabSize:k,insertSpaces:b}}y.create=z;function O(k){var b=k;return j.defined(b)&&j.uinteger(b.tabSize)&&j.boolean(b.insertSpaces)}y.is=O})(pn=e.FormattingOptions||(e.FormattingOptions={}));var I;(function(y){function z(k,b,H){return{range:k,target:b,data:H}}y.create=z;function O(k){var b=k;return j.defined(b)&&l.is(b.range)&&(j.undefined(b.target)||j.string(b.target))}y.is=O})(I=e.DocumentLink||(e.DocumentLink={}));var Z;(function(y){function z(k,b){return{range:k,parent:b}}y.create=z;function O(k){var b=k;return j.objectLiteral(b)&&l.is(b.range)&&(b.parent===void 0||y.is(b.parent))}y.is=O})(Z=e.SelectionRange||(e.SelectionRange={}));var he;(function(y){y.namespace="namespace",y.type="type",y.class="class",y.enum="enum",y.interface="interface",y.struct="struct",y.typeParameter="typeParameter",y.parameter="parameter",y.variable="variable",y.property="property",y.enumMember="enumMember",y.event="event",y.function="function",y.method="method",y.macro="macro",y.keyword="keyword",y.modifier="modifier",y.comment="comment",y.string="string",y.number="number",y.regexp="regexp",y.operator="operator",y.decorator="decorator"})(he=e.SemanticTokenTypes||(e.SemanticTokenTypes={}));var be;(function(y){y.declaration="declaration",y.definition="definition",y.readonly="readonly",y.static="static",y.deprecated="deprecated",y.abstract="abstract",y.async="async",y.modification="modification",y.documentation="documentation",y.defaultLibrary="defaultLibrary"})(be=e.SemanticTokenModifiers||(e.SemanticTokenModifiers={}));var He;(function(y){function z(O){var k=O;return j.objectLiteral(k)&&(k.resultId===void 0||typeof k.resultId=="string")&&Array.isArray(k.data)&&(k.data.length===0||typeof k.data[0]=="number")}y.is=z})(He=e.SemanticTokens||(e.SemanticTokens={}));var Qe;(function(y){function z(k,b){return{range:k,text:b}}y.create=z;function O(k){var b=k;return b!=null&&l.is(b.range)&&j.string(b.text)}y.is=O})(Qe=e.InlineValueText||(e.InlineValueText={}));var at;(function(y){function z(k,b,H){return{range:k,variableName:b,caseSensitiveLookup:H}}y.create=z;function O(k){var b=k;return b!=null&&l.is(b.range)&&j.boolean(b.caseSensitiveLookup)&&(j.string(b.variableName)||b.variableName===void 0)}y.is=O})(at=e.InlineValueVariableLookup||(e.InlineValueVariableLookup={}));var xt;(function(y){function z(k,b){return{range:k,expression:b}}y.create=z;function O(k){var b=k;return b!=null&&l.is(b.range)&&(j.string(b.expression)||b.expression===void 0)}y.is=O})(xt=e.InlineValueEvaluatableExpression||(e.InlineValueEvaluatableExpression={}));var ze;(function(y){function z(k,b){return{frameId:k,stoppedLocation:b}}y.create=z;function O(k){var b=k;return j.defined(b)&&l.is(k.stoppedLocation)}y.is=O})(ze=e.InlineValueContext||(e.InlineValueContext={}));var Ze;(function(y){y.Type=1,y.Parameter=2;function z(O){return O===1||O===2}y.is=z})(Ze=e.InlayHintKind||(e.InlayHintKind={}));var We;(function(y){function z(k){return{value:k}}y.create=z;function O(k){var b=k;return j.objectLiteral(b)&&(b.tooltip===void 0||j.string(b.tooltip)||se.is(b.tooltip))&&(b.location===void 0||a.is(b.location))&&(b.command===void 0||D.is(b.command))}y.is=O})(We=e.InlayHintLabelPart||(e.InlayHintLabelPart={}));var mt;(function(y){function z(k,b,H){var te={position:k,label:b};return H!==void 0&&(te.kind=H),te}y.create=z;function O(k){var b=k;return j.objectLiteral(b)&&s.is(b.position)&&(j.string(b.label)||j.typedArray(b.label,We.is))&&(b.kind===void 0||Ze.is(b.kind))&&b.textEdits===void 0||j.typedArray(b.textEdits,L.is)&&(b.tooltip===void 0||j.string(b.tooltip)||se.is(b.tooltip))&&(b.paddingLeft===void 0||j.boolean(b.paddingLeft))&&(b.paddingRight===void 0||j.boolean(b.paddingRight))}y.is=O})(mt=e.InlayHint||(e.InlayHint={}));var Vt;(function(y){function z(O){var k=O;return j.objectLiteral(k)&&r.is(k.uri)&&j.string(k.name)}y.is=z})(Vt=e.WorkspaceFolder||(e.WorkspaceFolder={})),e.EOL=[`
|
|
29
|
+
`)),Z){let be=I.error?` Request failed: ${I.error.message} (${I.error.code}).`:"";L.log(`Received response '${Z.method} - (${I.id})' in ${Date.now()-Z.timerStart}ms.${be}`,he)}else L.log(`Received response ${I.id} without active response promise.`,he)}else st("receive-response",I)}function st(I,Z){if(!L||g===$e.Off)return;let he={isLSPMessage:!0,type:I,message:Z,timestamp:Date.now()};L.log(he)}function rt(){if(Q())throw new ni(Xa.Closed,"Connection is closed.");if(re())throw new ni(Xa.Disposed,"Connection is disposed.")}function Ot(){if(J())throw new ni(Xa.AlreadyListening,"Connection is already listening")}function Yn(){if(!J())throw new Error("Call listen() first.")}function St(I){return I===void 0?null:I}function Zn(I){if(I!==null)return I}function Ai(I){return I!=null&&!Array.isArray(I)&&typeof I=="object"}function Ri(I,Z){switch(I){case ke.ParameterStructures.auto:return Ai(Z)?Zn(Z):[St(Z)];case ke.ParameterStructures.byName:if(!Ai(Z))throw new Error("Received parameters by name but param is not an object literal.");return Zn(Z);case ke.ParameterStructures.byPosition:return[St(Z)];default:throw new Error(`Unknown parameter structure ${I.toString()}`)}}function Ii(I,Z){let he,be=I.numberOfParams;switch(be){case 0:he=void 0;break;case 1:he=Ri(I.parameterStructures,Z[0]);break;default:he=[];for(let He=0;He<Z.length&&He<be;He++)he.push(St(Z[He]));if(Z.length<be)for(let He=Z.length;He<be;He++)he.push(null);break}return he}let pn={sendNotification:(I,...Z)=>{rt();let he,be;if(Rt.string(I)){he=I;let Qe=Z[0],at=0,xt=ke.ParameterStructures.auto;ke.ParameterStructures.is(Qe)&&(at=1,xt=Qe);let ze=Z.length,Ze=ze-at;switch(Ze){case 0:be=void 0;break;case 1:be=Ri(xt,Z[at]);break;default:if(xt===ke.ParameterStructures.byName)throw new Error(`Received ${Ze} parameters for 'by Name' notification parameter structure.`);be=Z.slice(at,ze).map(We=>St(We));break}}else{let Qe=Z;he=I.method,be=Ii(I,Qe)}let He={jsonrpc:a,method:he,params:be};return Te(He),e.write(He).catch(()=>i.error("Sending notification failed."))},onNotification:(I,Z)=>{rt();let he;return Rt.func(I)?d=I:Z&&(Rt.string(I)?(he=I,h.set(I,{type:void 0,handler:Z})):(he=I.method,h.set(I.method,{type:I,handler:Z}))),{dispose:()=>{he!==void 0?h.delete(he):d=void 0}}},onProgress:(I,Z,he)=>{if(p.has(Z))throw new Error(`Progress handler for token ${Z} already registered`);return p.set(Z,he),{dispose:()=>{p.delete(Z)}}},sendProgress:(I,Z,he)=>pn.sendNotification(Ts.type,{token:Z,value:he}),onUnhandledProgress:oe.event,sendRequest:(I,...Z)=>{rt(),Yn();let he,be,He;if(Rt.string(I)){he=I;let ze=Z[0],Ze=Z[Z.length-1],We=0,mt=ke.ParameterStructures.auto;ke.ParameterStructures.is(ze)&&(We=1,mt=ze);let Vt=Z.length;gh.CancellationToken.is(Ze)&&(Vt=Vt-1,He=Ze);let Er=Vt-We;switch(Er){case 0:be=void 0;break;case 1:be=Ri(mt,Z[We]);break;default:if(mt===ke.ParameterStructures.byName)throw new Error(`Received ${Er} parameters for 'by Name' request parameter structure.`);be=Z.slice(We,Vt).map(er=>St(er));break}}else{let ze=Z;he=I.method,be=Ii(I,ze);let Ze=I.numberOfParams;He=gh.CancellationToken.is(ze[Ze])?ze[Ze]:void 0}let Qe=o++,at;return He&&(at=He.onCancellationRequested(()=>{let ze=W.sender.sendCancellation(pn,Qe);return ze===void 0?(i.log(`Received no promise from cancellation strategy when cancelling id ${Qe}`),Promise.resolve()):ze.catch(()=>{i.log(`Sending cancellation messages for id ${Qe} failed`)})})),new Promise((ze,Ze)=>{let We={jsonrpc:a,id:Qe,method:he,params:be},mt=er=>{ze(er),W.sender.cleanup(Qe),at?.dispose()},Vt=er=>{Ze(er),W.sender.cleanup(Qe),at?.dispose()},Er={method:he,timerStart:Date.now(),resolve:mt,reject:Vt};Ae(We);try{e.write(We).catch(()=>i.error("Sending request failed."))}catch(er){Er.reject(new ke.ResponseError(ke.ErrorCodes.MessageWriteError,er.message?er.message:"Unknown reason")),Er=null}Er&&x.set(Qe,Er)})},onRequest:(I,Z)=>{rt();let he=null;return vh.is(I)?(he=void 0,c=I):Rt.string(I)?(he=null,Z!==void 0&&(he=I,u.set(I,{handler:Z,type:void 0}))):Z!==void 0&&(he=I.method,u.set(I.method,{type:I,handler:Z})),{dispose:()=>{he!==null&&(he!==void 0?u.delete(he):c=void 0)}}},hasPendingResponse:()=>x.size>0,trace:async(I,Z,he)=>{let be=!1,He=Mn.Text;he!==void 0&&(Rt.boolean(he)?be=he:(be=he.sendNotification||!1,He=he.traceFormat||Mn.Text)),g=I,D=He,g===$e.Off?L=void 0:L=Z,be&&!Q()&&!re()&&await pn.sendNotification(ab.type,{value:$e.toString(I)})},onError:C.event,onClose:T.event,onUnhandledNotification:M.event,onDispose:N.event,end:()=>{e.end()},dispose:()=>{if(re())return;K=Pn.Disposed,N.fire(void 0);let I=new ke.ResponseError(ke.ErrorCodes.PendingResponseRejected,"Pending response rejected since connection got disposed");for(let Z of x.values())Z.reject(I);x=new Map,f=new Map,_=new Set,v=new ob.LinkedMap,Rt.func(e.dispose)&&e.dispose(),Rt.func(t.dispose)&&t.dispose()},listen:()=>{rt(),Ot(),K=Pn.Listening,t.listen(B)},inspect:()=>{(0,ib.default)().console.log("inspect")}};return pn.onNotification(wh.type,I=>{if(g===$e.Off||!L)return;let Z=g===$e.Verbose||g===$e.Compact;L.log(I.message,Z?I.verbose:void 0)}),pn.onNotification(Ts.type,I=>{let Z=p.get(I.token);Z?Z(I.value):oe.fire(I)}),pn}Se.createMessageConnection=T1});var Th=X(ee=>{"use strict";Object.defineProperty(ee,"__esModule",{value:!0});ee.TraceFormat=ee.TraceValues=ee.Trace=ee.ProgressType=ee.ProgressToken=ee.createMessageConnection=ee.NullLogger=ee.ConnectionOptions=ee.ConnectionStrategy=ee.WriteableStreamMessageWriter=ee.AbstractMessageWriter=ee.MessageWriter=ee.ReadableStreamMessageReader=ee.AbstractMessageReader=ee.MessageReader=ee.CancellationToken=ee.CancellationTokenSource=ee.Emitter=ee.Event=ee.Disposable=ee.LRUCache=ee.Touch=ee.LinkedMap=ee.ParameterStructures=ee.NotificationType9=ee.NotificationType8=ee.NotificationType7=ee.NotificationType6=ee.NotificationType5=ee.NotificationType4=ee.NotificationType3=ee.NotificationType2=ee.NotificationType1=ee.NotificationType0=ee.NotificationType=ee.ErrorCodes=ee.ResponseError=ee.RequestType9=ee.RequestType8=ee.RequestType7=ee.RequestType6=ee.RequestType5=ee.RequestType4=ee.RequestType3=ee.RequestType2=ee.RequestType1=ee.RequestType0=ee.RequestType=ee.Message=ee.RAL=void 0;ee.CancellationStrategy=ee.CancellationSenderStrategy=ee.CancellationReceiverStrategy=ee.ConnectionError=ee.ConnectionErrors=ee.LogTraceNotification=ee.SetTraceNotification=void 0;var tt=nh();Object.defineProperty(ee,"Message",{enumerable:!0,get:function(){return tt.Message}});Object.defineProperty(ee,"RequestType",{enumerable:!0,get:function(){return tt.RequestType}});Object.defineProperty(ee,"RequestType0",{enumerable:!0,get:function(){return tt.RequestType0}});Object.defineProperty(ee,"RequestType1",{enumerable:!0,get:function(){return tt.RequestType1}});Object.defineProperty(ee,"RequestType2",{enumerable:!0,get:function(){return tt.RequestType2}});Object.defineProperty(ee,"RequestType3",{enumerable:!0,get:function(){return tt.RequestType3}});Object.defineProperty(ee,"RequestType4",{enumerable:!0,get:function(){return tt.RequestType4}});Object.defineProperty(ee,"RequestType5",{enumerable:!0,get:function(){return tt.RequestType5}});Object.defineProperty(ee,"RequestType6",{enumerable:!0,get:function(){return tt.RequestType6}});Object.defineProperty(ee,"RequestType7",{enumerable:!0,get:function(){return tt.RequestType7}});Object.defineProperty(ee,"RequestType8",{enumerable:!0,get:function(){return tt.RequestType8}});Object.defineProperty(ee,"RequestType9",{enumerable:!0,get:function(){return tt.RequestType9}});Object.defineProperty(ee,"ResponseError",{enumerable:!0,get:function(){return tt.ResponseError}});Object.defineProperty(ee,"ErrorCodes",{enumerable:!0,get:function(){return tt.ErrorCodes}});Object.defineProperty(ee,"NotificationType",{enumerable:!0,get:function(){return tt.NotificationType}});Object.defineProperty(ee,"NotificationType0",{enumerable:!0,get:function(){return tt.NotificationType0}});Object.defineProperty(ee,"NotificationType1",{enumerable:!0,get:function(){return tt.NotificationType1}});Object.defineProperty(ee,"NotificationType2",{enumerable:!0,get:function(){return tt.NotificationType2}});Object.defineProperty(ee,"NotificationType3",{enumerable:!0,get:function(){return tt.NotificationType3}});Object.defineProperty(ee,"NotificationType4",{enumerable:!0,get:function(){return tt.NotificationType4}});Object.defineProperty(ee,"NotificationType5",{enumerable:!0,get:function(){return tt.NotificationType5}});Object.defineProperty(ee,"NotificationType6",{enumerable:!0,get:function(){return tt.NotificationType6}});Object.defineProperty(ee,"NotificationType7",{enumerable:!0,get:function(){return tt.NotificationType7}});Object.defineProperty(ee,"NotificationType8",{enumerable:!0,get:function(){return tt.NotificationType8}});Object.defineProperty(ee,"NotificationType9",{enumerable:!0,get:function(){return tt.NotificationType9}});Object.defineProperty(ee,"ParameterStructures",{enumerable:!0,get:function(){return tt.ParameterStructures}});var xh=ih();Object.defineProperty(ee,"LinkedMap",{enumerable:!0,get:function(){return xh.LinkedMap}});Object.defineProperty(ee,"LRUCache",{enumerable:!0,get:function(){return xh.LRUCache}});Object.defineProperty(ee,"Touch",{enumerable:!0,get:function(){return xh.Touch}});var E1=Ed();Object.defineProperty(ee,"Disposable",{enumerable:!0,get:function(){return E1.Disposable}});var ub=zi();Object.defineProperty(ee,"Event",{enumerable:!0,get:function(){return ub.Event}});Object.defineProperty(ee,"Emitter",{enumerable:!0,get:function(){return ub.Emitter}});var db=lh();Object.defineProperty(ee,"CancellationTokenSource",{enumerable:!0,get:function(){return db.CancellationTokenSource}});Object.defineProperty(ee,"CancellationToken",{enumerable:!0,get:function(){return db.CancellationToken}});var kh=Yg();Object.defineProperty(ee,"MessageReader",{enumerable:!0,get:function(){return kh.MessageReader}});Object.defineProperty(ee,"AbstractMessageReader",{enumerable:!0,get:function(){return kh.AbstractMessageReader}});Object.defineProperty(ee,"ReadableStreamMessageReader",{enumerable:!0,get:function(){return kh.ReadableStreamMessageReader}});var Ch=rb();Object.defineProperty(ee,"MessageWriter",{enumerable:!0,get:function(){return Ch.MessageWriter}});Object.defineProperty(ee,"AbstractMessageWriter",{enumerable:!0,get:function(){return Ch.AbstractMessageWriter}});Object.defineProperty(ee,"WriteableStreamMessageWriter",{enumerable:!0,get:function(){return Ch.WriteableStreamMessageWriter}});var Gt=cb();Object.defineProperty(ee,"ConnectionStrategy",{enumerable:!0,get:function(){return Gt.ConnectionStrategy}});Object.defineProperty(ee,"ConnectionOptions",{enumerable:!0,get:function(){return Gt.ConnectionOptions}});Object.defineProperty(ee,"NullLogger",{enumerable:!0,get:function(){return Gt.NullLogger}});Object.defineProperty(ee,"createMessageConnection",{enumerable:!0,get:function(){return Gt.createMessageConnection}});Object.defineProperty(ee,"ProgressToken",{enumerable:!0,get:function(){return Gt.ProgressToken}});Object.defineProperty(ee,"ProgressType",{enumerable:!0,get:function(){return Gt.ProgressType}});Object.defineProperty(ee,"Trace",{enumerable:!0,get:function(){return Gt.Trace}});Object.defineProperty(ee,"TraceValues",{enumerable:!0,get:function(){return Gt.TraceValues}});Object.defineProperty(ee,"TraceFormat",{enumerable:!0,get:function(){return Gt.TraceFormat}});Object.defineProperty(ee,"SetTraceNotification",{enumerable:!0,get:function(){return Gt.SetTraceNotification}});Object.defineProperty(ee,"LogTraceNotification",{enumerable:!0,get:function(){return Gt.LogTraceNotification}});Object.defineProperty(ee,"ConnectionErrors",{enumerable:!0,get:function(){return Gt.ConnectionErrors}});Object.defineProperty(ee,"ConnectionError",{enumerable:!0,get:function(){return Gt.ConnectionError}});Object.defineProperty(ee,"CancellationReceiverStrategy",{enumerable:!0,get:function(){return Gt.CancellationReceiverStrategy}});Object.defineProperty(ee,"CancellationSenderStrategy",{enumerable:!0,get:function(){return Gt.CancellationSenderStrategy}});Object.defineProperty(ee,"CancellationStrategy",{enumerable:!0,get:function(){return Gt.CancellationStrategy}});var D1=Fr();ee.RAL=D1.default});var Ni=X(an=>{"use strict";var F1=an&&an.__createBinding||(Object.create?function(t,e,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(e,n);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,i)}:function(t,e,n,r){r===void 0&&(r=n),t[r]=e[n]}),A1=an&&an.__exportStar||function(t,e){for(var n in t)n!=="default"&&!Object.prototype.hasOwnProperty.call(e,n)&&F1(e,t,n)};Object.defineProperty(an,"__esModule",{value:!0});an.createMessageConnection=an.BrowserMessageWriter=an.BrowserMessageReader=void 0;var R1=Kg();R1.default.install();var vo=Th();A1(Th(),an);var Eh=class extends vo.AbstractMessageReader{constructor(e){super(),this._onData=new vo.Emitter,this._messageListener=n=>{this._onData.fire(n.data)},e.addEventListener("error",n=>this.fireError(n)),e.onmessage=this._messageListener}listen(e){return this._onData.event(e)}};an.BrowserMessageReader=Eh;var Dh=class extends vo.AbstractMessageWriter{constructor(e){super(),this.context=e,this.errorCount=0,e.addEventListener("error",n=>this.fireError(n))}write(e){try{return this.context.postMessage(e),Promise.resolve()}catch(n){return this.handleError(n,e),Promise.reject(n)}}handleError(e,n){this.errorCount++,this.fireError(e,n,this.errorCount)}end(){}};an.BrowserMessageWriter=Dh;function I1(t,e,n,r){return n===void 0&&(n=vo.NullLogger),vo.ConnectionStrategy.is(r)&&(r={connectionStrategy:r}),(0,vo.createMessageConnection)(t,e,n,r)}an.createMessageConnection=I1});var Fh=X((SN,hb)=>{"use strict";hb.exports=Ni()});var Xt=X((pb,Qa)=>{(function(t){if(typeof Qa=="object"&&typeof Qa.exports=="object"){var e=t(Lt,pb);e!==void 0&&(Qa.exports=e)}else typeof define=="function"&&define.amd&&define(["require","exports"],t)})(function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.TextDocument=e.EOL=e.WorkspaceFolder=e.InlayHint=e.InlayHintLabelPart=e.InlayHintKind=e.InlineValueContext=e.InlineValueEvaluatableExpression=e.InlineValueVariableLookup=e.InlineValueText=e.SemanticTokens=e.SemanticTokenModifiers=e.SemanticTokenTypes=e.SelectionRange=e.DocumentLink=e.FormattingOptions=e.CodeLens=e.CodeAction=e.CodeActionContext=e.CodeActionTriggerKind=e.CodeActionKind=e.DocumentSymbol=e.WorkspaceSymbol=e.SymbolInformation=e.SymbolTag=e.SymbolKind=e.DocumentHighlight=e.DocumentHighlightKind=e.SignatureInformation=e.ParameterInformation=e.Hover=e.MarkedString=e.CompletionList=e.CompletionItem=e.CompletionItemLabelDetails=e.InsertTextMode=e.InsertReplaceEdit=e.CompletionItemTag=e.InsertTextFormat=e.CompletionItemKind=e.MarkupContent=e.MarkupKind=e.TextDocumentItem=e.OptionalVersionedTextDocumentIdentifier=e.VersionedTextDocumentIdentifier=e.TextDocumentIdentifier=e.WorkspaceChange=e.WorkspaceEdit=e.DeleteFile=e.RenameFile=e.CreateFile=e.TextDocumentEdit=e.AnnotatedTextEdit=e.ChangeAnnotationIdentifier=e.ChangeAnnotation=e.TextEdit=e.Command=e.Diagnostic=e.CodeDescription=e.DiagnosticTag=e.DiagnosticSeverity=e.DiagnosticRelatedInformation=e.FoldingRange=e.FoldingRangeKind=e.ColorPresentation=e.ColorInformation=e.Color=e.LocationLink=e.Location=e.Range=e.Position=e.uinteger=e.integer=e.URI=e.DocumentUri=void 0;var n;(function(y){function z(O){return typeof O=="string"}y.is=z})(n=e.DocumentUri||(e.DocumentUri={}));var r;(function(y){function z(O){return typeof O=="string"}y.is=z})(r=e.URI||(e.URI={}));var i;(function(y){y.MIN_VALUE=-2147483648,y.MAX_VALUE=2147483647;function z(O){return typeof O=="number"&&y.MIN_VALUE<=O&&O<=y.MAX_VALUE}y.is=z})(i=e.integer||(e.integer={}));var o;(function(y){y.MIN_VALUE=0,y.MAX_VALUE=2147483647;function z(O){return typeof O=="number"&&y.MIN_VALUE<=O&&O<=y.MAX_VALUE}y.is=z})(o=e.uinteger||(e.uinteger={}));var s;(function(y){function z(k,b){return k===Number.MAX_VALUE&&(k=o.MAX_VALUE),b===Number.MAX_VALUE&&(b=o.MAX_VALUE),{line:k,character:b}}y.create=z;function O(k){var b=k;return j.objectLiteral(b)&&j.uinteger(b.line)&&j.uinteger(b.character)}y.is=O})(s=e.Position||(e.Position={}));var l;(function(y){function z(k,b,H,te){if(j.uinteger(k)&&j.uinteger(b)&&j.uinteger(H)&&j.uinteger(te))return{start:s.create(k,b),end:s.create(H,te)};if(s.is(k)&&s.is(b))return{start:k,end:b};throw new Error("Range#create called with invalid arguments[".concat(k,", ").concat(b,", ").concat(H,", ").concat(te,"]"))}y.create=z;function O(k){var b=k;return j.objectLiteral(b)&&s.is(b.start)&&s.is(b.end)}y.is=O})(l=e.Range||(e.Range={}));var a;(function(y){function z(k,b){return{uri:k,range:b}}y.create=z;function O(k){var b=k;return j.objectLiteral(b)&&l.is(b.range)&&(j.string(b.uri)||j.undefined(b.uri))}y.is=O})(a=e.Location||(e.Location={}));var c;(function(y){function z(k,b,H,te){return{targetUri:k,targetRange:b,targetSelectionRange:H,originSelectionRange:te}}y.create=z;function O(k){var b=k;return j.objectLiteral(b)&&l.is(b.targetRange)&&j.string(b.targetUri)&&l.is(b.targetSelectionRange)&&(l.is(b.originSelectionRange)||j.undefined(b.originSelectionRange))}y.is=O})(c=e.LocationLink||(e.LocationLink={}));var u;(function(y){function z(k,b,H,te){return{red:k,green:b,blue:H,alpha:te}}y.create=z;function O(k){var b=k;return j.objectLiteral(b)&&j.numberRange(b.red,0,1)&&j.numberRange(b.green,0,1)&&j.numberRange(b.blue,0,1)&&j.numberRange(b.alpha,0,1)}y.is=O})(u=e.Color||(e.Color={}));var d;(function(y){function z(k,b){return{range:k,color:b}}y.create=z;function O(k){var b=k;return j.objectLiteral(b)&&l.is(b.range)&&u.is(b.color)}y.is=O})(d=e.ColorInformation||(e.ColorInformation={}));var h;(function(y){function z(k,b,H){return{label:k,textEdit:b,additionalTextEdits:H}}y.create=z;function O(k){var b=k;return j.objectLiteral(b)&&j.string(b.label)&&(j.undefined(b.textEdit)||L.is(b))&&(j.undefined(b.additionalTextEdits)||j.typedArray(b.additionalTextEdits,L.is))}y.is=O})(h=e.ColorPresentation||(e.ColorPresentation={}));var p;(function(y){y.Comment="comment",y.Imports="imports",y.Region="region"})(p=e.FoldingRangeKind||(e.FoldingRangeKind={}));var w;(function(y){function z(k,b,H,te,Fe,ht){var et={startLine:k,endLine:b};return j.defined(H)&&(et.startCharacter=H),j.defined(te)&&(et.endCharacter=te),j.defined(Fe)&&(et.kind=Fe),j.defined(ht)&&(et.collapsedText=ht),et}y.create=z;function O(k){var b=k;return j.objectLiteral(b)&&j.uinteger(b.startLine)&&j.uinteger(b.startLine)&&(j.undefined(b.startCharacter)||j.uinteger(b.startCharacter))&&(j.undefined(b.endCharacter)||j.uinteger(b.endCharacter))&&(j.undefined(b.kind)||j.string(b.kind))}y.is=O})(w=e.FoldingRange||(e.FoldingRange={}));var v;(function(y){function z(k,b){return{location:k,message:b}}y.create=z;function O(k){var b=k;return j.defined(b)&&a.is(b.location)&&j.string(b.message)}y.is=O})(v=e.DiagnosticRelatedInformation||(e.DiagnosticRelatedInformation={}));var x;(function(y){y.Error=1,y.Warning=2,y.Information=3,y.Hint=4})(x=e.DiagnosticSeverity||(e.DiagnosticSeverity={}));var _;(function(y){y.Unnecessary=1,y.Deprecated=2})(_=e.DiagnosticTag||(e.DiagnosticTag={}));var f;(function(y){function z(O){var k=O;return j.objectLiteral(k)&&j.string(k.href)}y.is=z})(f=e.CodeDescription||(e.CodeDescription={}));var g;(function(y){function z(k,b,H,te,Fe,ht){var et={range:k,message:b};return j.defined(H)&&(et.severity=H),j.defined(te)&&(et.code=te),j.defined(Fe)&&(et.source=Fe),j.defined(ht)&&(et.relatedInformation=ht),et}y.create=z;function O(k){var b,H=k;return j.defined(H)&&l.is(H.range)&&j.string(H.message)&&(j.number(H.severity)||j.undefined(H.severity))&&(j.integer(H.code)||j.string(H.code)||j.undefined(H.code))&&(j.undefined(H.codeDescription)||j.string((b=H.codeDescription)===null||b===void 0?void 0:b.href))&&(j.string(H.source)||j.undefined(H.source))&&(j.undefined(H.relatedInformation)||j.typedArray(H.relatedInformation,v.is))}y.is=O})(g=e.Diagnostic||(e.Diagnostic={}));var D;(function(y){function z(k,b){for(var H=[],te=2;te<arguments.length;te++)H[te-2]=arguments[te];var Fe={title:k,command:b};return j.defined(H)&&H.length>0&&(Fe.arguments=H),Fe}y.create=z;function O(k){var b=k;return j.defined(b)&&j.string(b.title)&&j.string(b.command)}y.is=O})(D=e.Command||(e.Command={}));var L;(function(y){function z(H,te){return{range:H,newText:te}}y.replace=z;function O(H,te){return{range:{start:H,end:H},newText:te}}y.insert=O;function k(H){return{range:H,newText:""}}y.del=k;function b(H){var te=H;return j.objectLiteral(te)&&j.string(te.newText)&&l.is(te.range)}y.is=b})(L=e.TextEdit||(e.TextEdit={}));var K;(function(y){function z(k,b,H){var te={label:k};return b!==void 0&&(te.needsConfirmation=b),H!==void 0&&(te.description=H),te}y.create=z;function O(k){var b=k;return j.objectLiteral(b)&&j.string(b.label)&&(j.boolean(b.needsConfirmation)||b.needsConfirmation===void 0)&&(j.string(b.description)||b.description===void 0)}y.is=O})(K=e.ChangeAnnotation||(e.ChangeAnnotation={}));var C;(function(y){function z(O){var k=O;return j.string(k)}y.is=z})(C=e.ChangeAnnotationIdentifier||(e.ChangeAnnotationIdentifier={}));var T;(function(y){function z(H,te,Fe){return{range:H,newText:te,annotationId:Fe}}y.replace=z;function O(H,te,Fe){return{range:{start:H,end:H},newText:te,annotationId:Fe}}y.insert=O;function k(H,te){return{range:H,newText:"",annotationId:te}}y.del=k;function b(H){var te=H;return L.is(te)&&(K.is(te.annotationId)||C.is(te.annotationId))}y.is=b})(T=e.AnnotatedTextEdit||(e.AnnotatedTextEdit={}));var M;(function(y){function z(k,b){return{textDocument:k,edits:b}}y.create=z;function O(k){var b=k;return j.defined(b)&&Q.is(b.textDocument)&&Array.isArray(b.edits)}y.is=O})(M=e.TextDocumentEdit||(e.TextDocumentEdit={}));var oe;(function(y){function z(k,b,H){var te={kind:"create",uri:k};return b!==void 0&&(b.overwrite!==void 0||b.ignoreIfExists!==void 0)&&(te.options=b),H!==void 0&&(te.annotationId=H),te}y.create=z;function O(k){var b=k;return b&&b.kind==="create"&&j.string(b.uri)&&(b.options===void 0||(b.options.overwrite===void 0||j.boolean(b.options.overwrite))&&(b.options.ignoreIfExists===void 0||j.boolean(b.options.ignoreIfExists)))&&(b.annotationId===void 0||C.is(b.annotationId))}y.is=O})(oe=e.CreateFile||(e.CreateFile={}));var N;(function(y){function z(k,b,H,te){var Fe={kind:"rename",oldUri:k,newUri:b};return H!==void 0&&(H.overwrite!==void 0||H.ignoreIfExists!==void 0)&&(Fe.options=H),te!==void 0&&(Fe.annotationId=te),Fe}y.create=z;function O(k){var b=k;return b&&b.kind==="rename"&&j.string(b.oldUri)&&j.string(b.newUri)&&(b.options===void 0||(b.options.overwrite===void 0||j.boolean(b.options.overwrite))&&(b.options.ignoreIfExists===void 0||j.boolean(b.options.ignoreIfExists)))&&(b.annotationId===void 0||C.is(b.annotationId))}y.is=O})(N=e.RenameFile||(e.RenameFile={}));var W;(function(y){function z(k,b,H){var te={kind:"delete",uri:k};return b!==void 0&&(b.recursive!==void 0||b.ignoreIfNotExists!==void 0)&&(te.options=b),H!==void 0&&(te.annotationId=H),te}y.create=z;function O(k){var b=k;return b&&b.kind==="delete"&&j.string(b.uri)&&(b.options===void 0||(b.options.recursive===void 0||j.boolean(b.options.recursive))&&(b.options.ignoreIfNotExists===void 0||j.boolean(b.options.ignoreIfNotExists)))&&(b.annotationId===void 0||C.is(b.annotationId))}y.is=O})(W=e.DeleteFile||(e.DeleteFile={}));var V;(function(y){function z(O){var k=O;return k&&(k.changes!==void 0||k.documentChanges!==void 0)&&(k.documentChanges===void 0||k.documentChanges.every(function(b){return j.string(b.kind)?oe.is(b)||N.is(b)||W.is(b):M.is(b)}))}y.is=z})(V=e.WorkspaceEdit||(e.WorkspaceEdit={}));var G=function(){function y(z,O){this.edits=z,this.changeAnnotations=O}return y.prototype.insert=function(z,O,k){var b,H;if(k===void 0?b=L.insert(z,O):C.is(k)?(H=k,b=T.insert(z,O,k)):(this.assertChangeAnnotations(this.changeAnnotations),H=this.changeAnnotations.manage(k),b=T.insert(z,O,H)),this.edits.push(b),H!==void 0)return H},y.prototype.replace=function(z,O,k){var b,H;if(k===void 0?b=L.replace(z,O):C.is(k)?(H=k,b=T.replace(z,O,k)):(this.assertChangeAnnotations(this.changeAnnotations),H=this.changeAnnotations.manage(k),b=T.replace(z,O,H)),this.edits.push(b),H!==void 0)return H},y.prototype.delete=function(z,O){var k,b;if(O===void 0?k=L.del(z):C.is(O)?(b=O,k=T.del(z,O)):(this.assertChangeAnnotations(this.changeAnnotations),b=this.changeAnnotations.manage(O),k=T.del(z,b)),this.edits.push(k),b!==void 0)return b},y.prototype.add=function(z){this.edits.push(z)},y.prototype.all=function(){return this.edits},y.prototype.clear=function(){this.edits.splice(0,this.edits.length)},y.prototype.assertChangeAnnotations=function(z){if(z===void 0)throw new Error("Text edit change is not configured to manage change annotations.")},y}(),U=function(){function y(z){this._annotations=z===void 0?Object.create(null):z,this._counter=0,this._size=0}return y.prototype.all=function(){return this._annotations},Object.defineProperty(y.prototype,"size",{get:function(){return this._size},enumerable:!1,configurable:!0}),y.prototype.manage=function(z,O){var k;if(C.is(z)?k=z:(k=this.nextId(),O=z),this._annotations[k]!==void 0)throw new Error("Id ".concat(k," is already in use."));if(O===void 0)throw new Error("No annotation provided for id ".concat(k));return this._annotations[k]=O,this._size++,k},y.prototype.nextId=function(){return this._counter++,this._counter.toString()},y}(),P=function(){function y(z){var O=this;this._textEditChanges=Object.create(null),z!==void 0?(this._workspaceEdit=z,z.documentChanges?(this._changeAnnotations=new U(z.changeAnnotations),z.changeAnnotations=this._changeAnnotations.all(),z.documentChanges.forEach(function(k){if(M.is(k)){var b=new G(k.edits,O._changeAnnotations);O._textEditChanges[k.textDocument.uri]=b}})):z.changes&&Object.keys(z.changes).forEach(function(k){var b=new G(z.changes[k]);O._textEditChanges[k]=b})):this._workspaceEdit={}}return Object.defineProperty(y.prototype,"edit",{get:function(){return this.initDocumentChanges(),this._changeAnnotations!==void 0&&(this._changeAnnotations.size===0?this._workspaceEdit.changeAnnotations=void 0:this._workspaceEdit.changeAnnotations=this._changeAnnotations.all()),this._workspaceEdit},enumerable:!1,configurable:!0}),y.prototype.getTextEditChange=function(z){if(Q.is(z)){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var O={uri:z.uri,version:z.version},k=this._textEditChanges[O.uri];if(!k){var b=[],H={textDocument:O,edits:b};this._workspaceEdit.documentChanges.push(H),k=new G(b,this._changeAnnotations),this._textEditChanges[O.uri]=k}return k}else{if(this.initChanges(),this._workspaceEdit.changes===void 0)throw new Error("Workspace edit is not configured for normal text edit changes.");var k=this._textEditChanges[z];if(!k){var b=[];this._workspaceEdit.changes[z]=b,k=new G(b),this._textEditChanges[z]=k}return k}},y.prototype.initDocumentChanges=function(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._changeAnnotations=new U,this._workspaceEdit.documentChanges=[],this._workspaceEdit.changeAnnotations=this._changeAnnotations.all())},y.prototype.initChanges=function(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._workspaceEdit.changes=Object.create(null))},y.prototype.createFile=function(z,O,k){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var b;K.is(O)||C.is(O)?b=O:k=O;var H,te;if(b===void 0?H=oe.create(z,k):(te=C.is(b)?b:this._changeAnnotations.manage(b),H=oe.create(z,k,te)),this._workspaceEdit.documentChanges.push(H),te!==void 0)return te},y.prototype.renameFile=function(z,O,k,b){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var H;K.is(k)||C.is(k)?H=k:b=k;var te,Fe;if(H===void 0?te=N.create(z,O,b):(Fe=C.is(H)?H:this._changeAnnotations.manage(H),te=N.create(z,O,b,Fe)),this._workspaceEdit.documentChanges.push(te),Fe!==void 0)return Fe},y.prototype.deleteFile=function(z,O,k){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var b;K.is(O)||C.is(O)?b=O:k=O;var H,te;if(b===void 0?H=W.create(z,k):(te=C.is(b)?b:this._changeAnnotations.manage(b),H=W.create(z,k,te)),this._workspaceEdit.documentChanges.push(H),te!==void 0)return te},y}();e.WorkspaceChange=P;var R;(function(y){function z(k){return{uri:k}}y.create=z;function O(k){var b=k;return j.defined(b)&&j.string(b.uri)}y.is=O})(R=e.TextDocumentIdentifier||(e.TextDocumentIdentifier={}));var J;(function(y){function z(k,b){return{uri:k,version:b}}y.create=z;function O(k){var b=k;return j.defined(b)&&j.string(b.uri)&&j.integer(b.version)}y.is=O})(J=e.VersionedTextDocumentIdentifier||(e.VersionedTextDocumentIdentifier={}));var Q;(function(y){function z(k,b){return{uri:k,version:b}}y.create=z;function O(k){var b=k;return j.defined(b)&&j.string(b.uri)&&(b.version===null||j.integer(b.version))}y.is=O})(Q=e.OptionalVersionedTextDocumentIdentifier||(e.OptionalVersionedTextDocumentIdentifier={}));var re;(function(y){function z(k,b,H,te){return{uri:k,languageId:b,version:H,text:te}}y.create=z;function O(k){var b=k;return j.defined(b)&&j.string(b.uri)&&j.string(b.languageId)&&j.integer(b.version)&&j.string(b.text)}y.is=O})(re=e.TextDocumentItem||(e.TextDocumentItem={}));var de;(function(y){y.PlainText="plaintext",y.Markdown="markdown";function z(O){var k=O;return k===y.PlainText||k===y.Markdown}y.is=z})(de=e.MarkupKind||(e.MarkupKind={}));var se;(function(y){function z(O){var k=O;return j.objectLiteral(O)&&de.is(k.kind)&&j.string(k.value)}y.is=z})(se=e.MarkupContent||(e.MarkupContent={}));var ae;(function(y){y.Text=1,y.Method=2,y.Function=3,y.Constructor=4,y.Field=5,y.Variable=6,y.Class=7,y.Interface=8,y.Module=9,y.Property=10,y.Unit=11,y.Value=12,y.Enum=13,y.Keyword=14,y.Snippet=15,y.Color=16,y.File=17,y.Reference=18,y.Folder=19,y.EnumMember=20,y.Constant=21,y.Struct=22,y.Event=23,y.Operator=24,y.TypeParameter=25})(ae=e.CompletionItemKind||(e.CompletionItemKind={}));var pe;(function(y){y.PlainText=1,y.Snippet=2})(pe=e.InsertTextFormat||(e.InsertTextFormat={}));var xe;(function(y){y.Deprecated=1})(xe=e.CompletionItemTag||(e.CompletionItemTag={}));var B;(function(y){function z(k,b,H){return{newText:k,insert:b,replace:H}}y.create=z;function O(k){var b=k;return b&&j.string(b.newText)&&l.is(b.insert)&&l.is(b.replace)}y.is=O})(B=e.InsertReplaceEdit||(e.InsertReplaceEdit={}));var Y;(function(y){y.asIs=1,y.adjustIndentation=2})(Y=e.InsertTextMode||(e.InsertTextMode={}));var ie;(function(y){function z(O){var k=O;return k&&(j.string(k.detail)||k.detail===void 0)&&(j.string(k.description)||k.description===void 0)}y.is=z})(ie=e.CompletionItemLabelDetails||(e.CompletionItemLabelDetails={}));var le;(function(y){function z(O){return{label:O}}y.create=z})(le=e.CompletionItem||(e.CompletionItem={}));var Ce;(function(y){function z(O,k){return{items:O||[],isIncomplete:!!k}}y.create=z})(Ce=e.CompletionList||(e.CompletionList={}));var ge;(function(y){function z(k){return k.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}y.fromPlainText=z;function O(k){var b=k;return j.string(b)||j.objectLiteral(b)&&j.string(b.language)&&j.string(b.value)}y.is=O})(ge=e.MarkedString||(e.MarkedString={}));var Ae;(function(y){function z(O){var k=O;return!!k&&j.objectLiteral(k)&&(se.is(k.contents)||ge.is(k.contents)||j.typedArray(k.contents,ge.is))&&(O.range===void 0||l.is(O.range))}y.is=z})(Ae=e.Hover||(e.Hover={}));var Te;(function(y){function z(O,k){return k?{label:O,documentation:k}:{label:O}}y.create=z})(Te=e.ParameterInformation||(e.ParameterInformation={}));var Re;(function(y){function z(O,k){for(var b=[],H=2;H<arguments.length;H++)b[H-2]=arguments[H];var te={label:O};return j.defined(k)&&(te.documentation=k),j.defined(b)?te.parameters=b:te.parameters=[],te}y.create=z})(Re=e.SignatureInformation||(e.SignatureInformation={}));var Ue;(function(y){y.Text=1,y.Read=2,y.Write=3})(Ue=e.DocumentHighlightKind||(e.DocumentHighlightKind={}));var Je;(function(y){function z(O,k){var b={range:O};return j.number(k)&&(b.kind=k),b}y.create=z})(Je=e.DocumentHighlight||(e.DocumentHighlight={}));var Xe;(function(y){y.File=1,y.Module=2,y.Namespace=3,y.Package=4,y.Class=5,y.Method=6,y.Property=7,y.Field=8,y.Constructor=9,y.Enum=10,y.Interface=11,y.Function=12,y.Variable=13,y.Constant=14,y.String=15,y.Number=16,y.Boolean=17,y.Array=18,y.Object=19,y.Key=20,y.Null=21,y.EnumMember=22,y.Struct=23,y.Event=24,y.Operator=25,y.TypeParameter=26})(Xe=e.SymbolKind||(e.SymbolKind={}));var st;(function(y){y.Deprecated=1})(st=e.SymbolTag||(e.SymbolTag={}));var rt;(function(y){function z(O,k,b,H,te){var Fe={name:O,kind:k,location:{uri:H,range:b}};return te&&(Fe.containerName=te),Fe}y.create=z})(rt=e.SymbolInformation||(e.SymbolInformation={}));var Ot;(function(y){function z(O,k,b,H){return H!==void 0?{name:O,kind:k,location:{uri:b,range:H}}:{name:O,kind:k,location:{uri:b}}}y.create=z})(Ot=e.WorkspaceSymbol||(e.WorkspaceSymbol={}));var Yn;(function(y){function z(k,b,H,te,Fe,ht){var et={name:k,detail:b,kind:H,range:te,selectionRange:Fe};return ht!==void 0&&(et.children=ht),et}y.create=z;function O(k){var b=k;return b&&j.string(b.name)&&j.number(b.kind)&&l.is(b.range)&&l.is(b.selectionRange)&&(b.detail===void 0||j.string(b.detail))&&(b.deprecated===void 0||j.boolean(b.deprecated))&&(b.children===void 0||Array.isArray(b.children))&&(b.tags===void 0||Array.isArray(b.tags))}y.is=O})(Yn=e.DocumentSymbol||(e.DocumentSymbol={}));var St;(function(y){y.Empty="",y.QuickFix="quickfix",y.Refactor="refactor",y.RefactorExtract="refactor.extract",y.RefactorInline="refactor.inline",y.RefactorRewrite="refactor.rewrite",y.Source="source",y.SourceOrganizeImports="source.organizeImports",y.SourceFixAll="source.fixAll"})(St=e.CodeActionKind||(e.CodeActionKind={}));var Zn;(function(y){y.Invoked=1,y.Automatic=2})(Zn=e.CodeActionTriggerKind||(e.CodeActionTriggerKind={}));var Ai;(function(y){function z(k,b,H){var te={diagnostics:k};return b!=null&&(te.only=b),H!=null&&(te.triggerKind=H),te}y.create=z;function O(k){var b=k;return j.defined(b)&&j.typedArray(b.diagnostics,g.is)&&(b.only===void 0||j.typedArray(b.only,j.string))&&(b.triggerKind===void 0||b.triggerKind===Zn.Invoked||b.triggerKind===Zn.Automatic)}y.is=O})(Ai=e.CodeActionContext||(e.CodeActionContext={}));var Ri;(function(y){function z(k,b,H){var te={title:k},Fe=!0;return typeof b=="string"?(Fe=!1,te.kind=b):D.is(b)?te.command=b:te.edit=b,Fe&&H!==void 0&&(te.kind=H),te}y.create=z;function O(k){var b=k;return b&&j.string(b.title)&&(b.diagnostics===void 0||j.typedArray(b.diagnostics,g.is))&&(b.kind===void 0||j.string(b.kind))&&(b.edit!==void 0||b.command!==void 0)&&(b.command===void 0||D.is(b.command))&&(b.isPreferred===void 0||j.boolean(b.isPreferred))&&(b.edit===void 0||V.is(b.edit))}y.is=O})(Ri=e.CodeAction||(e.CodeAction={}));var Ii;(function(y){function z(k,b){var H={range:k};return j.defined(b)&&(H.data=b),H}y.create=z;function O(k){var b=k;return j.defined(b)&&l.is(b.range)&&(j.undefined(b.command)||D.is(b.command))}y.is=O})(Ii=e.CodeLens||(e.CodeLens={}));var pn;(function(y){function z(k,b){return{tabSize:k,insertSpaces:b}}y.create=z;function O(k){var b=k;return j.defined(b)&&j.uinteger(b.tabSize)&&j.boolean(b.insertSpaces)}y.is=O})(pn=e.FormattingOptions||(e.FormattingOptions={}));var I;(function(y){function z(k,b,H){return{range:k,target:b,data:H}}y.create=z;function O(k){var b=k;return j.defined(b)&&l.is(b.range)&&(j.undefined(b.target)||j.string(b.target))}y.is=O})(I=e.DocumentLink||(e.DocumentLink={}));var Z;(function(y){function z(k,b){return{range:k,parent:b}}y.create=z;function O(k){var b=k;return j.objectLiteral(b)&&l.is(b.range)&&(b.parent===void 0||y.is(b.parent))}y.is=O})(Z=e.SelectionRange||(e.SelectionRange={}));var he;(function(y){y.namespace="namespace",y.type="type",y.class="class",y.enum="enum",y.interface="interface",y.struct="struct",y.typeParameter="typeParameter",y.parameter="parameter",y.variable="variable",y.property="property",y.enumMember="enumMember",y.event="event",y.function="function",y.method="method",y.macro="macro",y.keyword="keyword",y.modifier="modifier",y.comment="comment",y.string="string",y.number="number",y.regexp="regexp",y.operator="operator",y.decorator="decorator"})(he=e.SemanticTokenTypes||(e.SemanticTokenTypes={}));var be;(function(y){y.declaration="declaration",y.definition="definition",y.readonly="readonly",y.static="static",y.deprecated="deprecated",y.abstract="abstract",y.async="async",y.modification="modification",y.documentation="documentation",y.defaultLibrary="defaultLibrary"})(be=e.SemanticTokenModifiers||(e.SemanticTokenModifiers={}));var He;(function(y){function z(O){var k=O;return j.objectLiteral(k)&&(k.resultId===void 0||typeof k.resultId=="string")&&Array.isArray(k.data)&&(k.data.length===0||typeof k.data[0]=="number")}y.is=z})(He=e.SemanticTokens||(e.SemanticTokens={}));var Qe;(function(y){function z(k,b){return{range:k,text:b}}y.create=z;function O(k){var b=k;return b!=null&&l.is(b.range)&&j.string(b.text)}y.is=O})(Qe=e.InlineValueText||(e.InlineValueText={}));var at;(function(y){function z(k,b,H){return{range:k,variableName:b,caseSensitiveLookup:H}}y.create=z;function O(k){var b=k;return b!=null&&l.is(b.range)&&j.boolean(b.caseSensitiveLookup)&&(j.string(b.variableName)||b.variableName===void 0)}y.is=O})(at=e.InlineValueVariableLookup||(e.InlineValueVariableLookup={}));var xt;(function(y){function z(k,b){return{range:k,expression:b}}y.create=z;function O(k){var b=k;return b!=null&&l.is(b.range)&&(j.string(b.expression)||b.expression===void 0)}y.is=O})(xt=e.InlineValueEvaluatableExpression||(e.InlineValueEvaluatableExpression={}));var ze;(function(y){function z(k,b){return{frameId:k,stoppedLocation:b}}y.create=z;function O(k){var b=k;return j.defined(b)&&l.is(k.stoppedLocation)}y.is=O})(ze=e.InlineValueContext||(e.InlineValueContext={}));var Ze;(function(y){y.Type=1,y.Parameter=2;function z(O){return O===1||O===2}y.is=z})(Ze=e.InlayHintKind||(e.InlayHintKind={}));var We;(function(y){function z(k){return{value:k}}y.create=z;function O(k){var b=k;return j.objectLiteral(b)&&(b.tooltip===void 0||j.string(b.tooltip)||se.is(b.tooltip))&&(b.location===void 0||a.is(b.location))&&(b.command===void 0||D.is(b.command))}y.is=O})(We=e.InlayHintLabelPart||(e.InlayHintLabelPart={}));var mt;(function(y){function z(k,b,H){var te={position:k,label:b};return H!==void 0&&(te.kind=H),te}y.create=z;function O(k){var b=k;return j.objectLiteral(b)&&s.is(b.position)&&(j.string(b.label)||j.typedArray(b.label,We.is))&&(b.kind===void 0||Ze.is(b.kind))&&b.textEdits===void 0||j.typedArray(b.textEdits,L.is)&&(b.tooltip===void 0||j.string(b.tooltip)||se.is(b.tooltip))&&(b.paddingLeft===void 0||j.boolean(b.paddingLeft))&&(b.paddingRight===void 0||j.boolean(b.paddingRight))}y.is=O})(mt=e.InlayHint||(e.InlayHint={}));var Vt;(function(y){function z(O){var k=O;return j.objectLiteral(k)&&r.is(k.uri)&&j.string(k.name)}y.is=z})(Vt=e.WorkspaceFolder||(e.WorkspaceFolder={})),e.EOL=[`
|
|
30
30
|
`,`\r
|
|
31
31
|
`,"\r"];var Er;(function(y){function z(H,te,Fe,ht){return new er(H,te,Fe,ht)}y.create=z;function O(H){var te=H;return!!(j.defined(te)&&j.string(te.uri)&&(j.undefined(te.languageId)||j.string(te.languageId))&&j.uinteger(te.lineCount)&&j.func(te.getText)&&j.func(te.positionAt)&&j.func(te.offsetAt))}y.is=O;function k(H,te){for(var Fe=H.getText(),ht=b(te,function(ho,ja){var jg=ho.range.start.line-ja.range.start.line;return jg===0?ho.range.start.character-ja.range.start.character:jg}),et=Fe.length,Rn=ht.length-1;Rn>=0;Rn--){var In=ht[Rn],Dr=H.offsetAt(In.range.start),Oe=H.offsetAt(In.range.end);if(Oe<=et)Fe=Fe.substring(0,Dr)+In.newText+Fe.substring(Oe,Fe.length);else throw new Error("Overlapping edit");et=Dr}return Fe}y.applyEdits=k;function b(H,te){if(H.length<=1)return H;var Fe=H.length/2|0,ht=H.slice(0,Fe),et=H.slice(Fe);b(ht,te),b(et,te);for(var Rn=0,In=0,Dr=0;Rn<ht.length&&In<et.length;){var Oe=te(ht[Rn],et[In]);Oe<=0?H[Dr++]=ht[Rn++]:H[Dr++]=et[In++]}for(;Rn<ht.length;)H[Dr++]=ht[Rn++];for(;In<et.length;)H[Dr++]=et[In++];return H}})(Er=e.TextDocument||(e.TextDocument={}));var er=function(){function y(z,O,k,b){this._uri=z,this._languageId=O,this._version=k,this._content=b,this._lineOffsets=void 0}return Object.defineProperty(y.prototype,"uri",{get:function(){return this._uri},enumerable:!1,configurable:!0}),Object.defineProperty(y.prototype,"languageId",{get:function(){return this._languageId},enumerable:!1,configurable:!0}),Object.defineProperty(y.prototype,"version",{get:function(){return this._version},enumerable:!1,configurable:!0}),y.prototype.getText=function(z){if(z){var O=this.offsetAt(z.start),k=this.offsetAt(z.end);return this._content.substring(O,k)}return this._content},y.prototype.update=function(z,O){this._content=z.text,this._version=O,this._lineOffsets=void 0},y.prototype.getLineOffsets=function(){if(this._lineOffsets===void 0){for(var z=[],O=this._content,k=!0,b=0;b<O.length;b++){k&&(z.push(b),k=!1);var H=O.charAt(b);k=H==="\r"||H===`
|
|
32
32
|
`,H==="\r"&&b+1<O.length&&O.charAt(b+1)===`
|
|
33
|
-
`&&b++}k&&O.length>0&&z.push(O.length),this._lineOffsets=z}return this._lineOffsets},y.prototype.positionAt=function(z){z=Math.max(Math.min(z,this._content.length),0);var O=this.getLineOffsets(),k=0,b=O.length;if(b===0)return s.create(0,z);for(;k<b;){var H=Math.floor((k+b)/2);O[H]>z?b=H:k=H+1}var te=k-1;return s.create(te,z-O[te])},y.prototype.offsetAt=function(z){var O=this.getLineOffsets();if(z.line>=O.length)return this._content.length;if(z.line<0)return 0;var k=O[z.line],b=z.line+1<O.length?O[z.line+1]:this._content.length;return Math.max(Math.min(k+z.character,b),k)},Object.defineProperty(y.prototype,"lineCount",{get:function(){return this.getLineOffsets().length},enumerable:!1,configurable:!0}),y}(),j;(function(y){var z=Object.prototype.toString;function O(Oe){return typeof Oe<"u"}y.defined=O;function k(Oe){return typeof Oe>"u"}y.undefined=k;function b(Oe){return Oe===!0||Oe===!1}y.boolean=b;function H(Oe){return z.call(Oe)==="[object String]"}y.string=H;function te(Oe){return z.call(Oe)==="[object Number]"}y.number=te;function Fe(Oe,ho,ja){return z.call(Oe)==="[object Number]"&&ho<=Oe&&Oe<=ja}y.numberRange=Fe;function ht(Oe){return z.call(Oe)==="[object Number]"&&-2147483648<=Oe&&Oe<=2147483647}y.integer=ht;function et(Oe){return z.call(Oe)==="[object Number]"&&0<=Oe&&Oe<=2147483647}y.uinteger=et;function Rn(Oe){return z.call(Oe)==="[object Function]"}y.func=Rn;function In(Oe){return Oe!==null&&typeof Oe=="object"}y.objectLiteral=In;function Dr(Oe,ho){return Array.isArray(Oe)&&Oe.every(ho)}y.typedArray=Dr})(j||(j={}))})});var ct=X(Qt=>{"use strict";Object.defineProperty(Qt,"__esModule",{value:!0});Qt.ProtocolNotificationType=Qt.ProtocolNotificationType0=Qt.ProtocolRequestType=Qt.ProtocolRequestType0=Qt.RegistrationType=Qt.MessageDirection=void 0;var wo=Ni(),M1;(function(t){t.clientToServer="clientToServer",t.serverToClient="serverToClient",t.both="both"})(M1=Qt.MessageDirection||(Qt.MessageDirection={}));var Ah=class{constructor(e){this.method=e}};Qt.RegistrationType=Ah;var Rh=class extends wo.RequestType0{constructor(e){super(e)}};Qt.ProtocolRequestType0=Rh;var Ih=class extends wo.RequestType{constructor(e){super(e,wo.ParameterStructures.byName)}};Qt.ProtocolRequestType=Ih;var Mh=class extends wo.NotificationType0{constructor(e){super(e)}};Qt.ProtocolNotificationType0=Mh;var Ph=class extends wo.NotificationType{constructor(e){super(e,wo.ParameterStructures.byName)}};Qt.ProtocolNotificationType=Ph});var Ya=X(kt=>{"use strict";Object.defineProperty(kt,"__esModule",{value:!0});kt.objectLiteral=kt.typedArray=kt.stringArray=kt.array=kt.func=kt.error=kt.number=kt.string=kt.boolean=void 0;function P1(t){return t===!0||t===!1}kt.boolean=P1;function mb(t){return typeof t=="string"||t instanceof String}kt.string=mb;function z1(t){return typeof t=="number"||t instanceof Number}kt.number=z1;function O1(t){return t instanceof Error}kt.error=O1;function L1(t){return typeof t=="function"}kt.func=L1;function fb(t){return Array.isArray(t)}kt.array=fb;function N1(t){return fb(t)&&t.every(e=>mb(e))}kt.stringArray=N1;function W1(t,e){return Array.isArray(t)&&t.every(e)}kt.typedArray=W1;function q1(t){return t!==null&&typeof t=="object"}kt.objectLiteral=q1});var bb=X(Ds=>{"use strict";Object.defineProperty(Ds,"__esModule",{value:!0});Ds.ImplementationRequest=void 0;var gb=ct(),U1;(function(t){t.method="textDocument/implementation",t.messageDirection=gb.MessageDirection.clientToServer,t.type=new gb.ProtocolRequestType(t.method)})(U1=Ds.ImplementationRequest||(Ds.ImplementationRequest={}))});var wb=X(Fs=>{"use strict";Object.defineProperty(Fs,"__esModule",{value:!0});Fs.TypeDefinitionRequest=void 0;var vb=ct(),j1;(function(t){t.method="textDocument/typeDefinition",t.messageDirection=vb.MessageDirection.clientToServer,t.type=new vb.ProtocolRequestType(t.method)})(j1=Fs.TypeDefinitionRequest||(Fs.TypeDefinitionRequest={}))});var yb=X(ni=>{"use strict";Object.defineProperty(ni,"__esModule",{value:!0});ni.DidChangeWorkspaceFoldersNotification=ni.WorkspaceFoldersRequest=void 0;var Za=ct(),H1;(function(t){t.method="workspace/workspaceFolders",t.messageDirection=Za.MessageDirection.serverToClient,t.type=new Za.ProtocolRequestType0(t.method)})(H1=ni.WorkspaceFoldersRequest||(ni.WorkspaceFoldersRequest={}));var B1;(function(t){t.method="workspace/didChangeWorkspaceFolders",t.messageDirection=Za.MessageDirection.clientToServer,t.type=new Za.ProtocolNotificationType(t.method)})(B1=ni.DidChangeWorkspaceFoldersNotification||(ni.DidChangeWorkspaceFoldersNotification={}))});var Sb=X(As=>{"use strict";Object.defineProperty(As,"__esModule",{value:!0});As.ConfigurationRequest=void 0;var _b=ct(),$1;(function(t){t.method="workspace/configuration",t.messageDirection=_b.MessageDirection.serverToClient,t.type=new _b.ProtocolRequestType(t.method)})($1=As.ConfigurationRequest||(As.ConfigurationRequest={}))});var xb=X(ri=>{"use strict";Object.defineProperty(ri,"__esModule",{value:!0});ri.ColorPresentationRequest=ri.DocumentColorRequest=void 0;var el=ct(),V1;(function(t){t.method="textDocument/documentColor",t.messageDirection=el.MessageDirection.clientToServer,t.type=new el.ProtocolRequestType(t.method)})(V1=ri.DocumentColorRequest||(ri.DocumentColorRequest={}));var K1;(function(t){t.method="textDocument/colorPresentation",t.messageDirection=el.MessageDirection.clientToServer,t.type=new el.ProtocolRequestType(t.method)})(K1=ri.ColorPresentationRequest||(ri.ColorPresentationRequest={}))});var Cb=X(Rs=>{"use strict";Object.defineProperty(Rs,"__esModule",{value:!0});Rs.FoldingRangeRequest=void 0;var kb=ct(),G1;(function(t){t.method="textDocument/foldingRange",t.messageDirection=kb.MessageDirection.clientToServer,t.type=new kb.ProtocolRequestType(t.method)})(G1=Rs.FoldingRangeRequest||(Rs.FoldingRangeRequest={}))});var Eb=X(Is=>{"use strict";Object.defineProperty(Is,"__esModule",{value:!0});Is.DeclarationRequest=void 0;var Tb=ct(),J1;(function(t){t.method="textDocument/declaration",t.messageDirection=Tb.MessageDirection.clientToServer,t.type=new Tb.ProtocolRequestType(t.method)})(J1=Is.DeclarationRequest||(Is.DeclarationRequest={}))});var Fb=X(Ms=>{"use strict";Object.defineProperty(Ms,"__esModule",{value:!0});Ms.SelectionRangeRequest=void 0;var Db=ct(),X1;(function(t){t.method="textDocument/selectionRange",t.messageDirection=Db.MessageDirection.clientToServer,t.type=new Db.ProtocolRequestType(t.method)})(X1=Ms.SelectionRangeRequest||(Ms.SelectionRangeRequest={}))});var Ab=X(zn=>{"use strict";Object.defineProperty(zn,"__esModule",{value:!0});zn.WorkDoneProgressCancelNotification=zn.WorkDoneProgressCreateRequest=zn.WorkDoneProgress=void 0;var Q1=Ni(),tl=ct(),Y1;(function(t){t.type=new Q1.ProgressType;function e(n){return n===t.type}t.is=e})(Y1=zn.WorkDoneProgress||(zn.WorkDoneProgress={}));var Z1;(function(t){t.method="window/workDoneProgress/create",t.messageDirection=tl.MessageDirection.serverToClient,t.type=new tl.ProtocolRequestType(t.method)})(Z1=zn.WorkDoneProgressCreateRequest||(zn.WorkDoneProgressCreateRequest={}));var eC;(function(t){t.method="window/workDoneProgress/cancel",t.messageDirection=tl.MessageDirection.clientToServer,t.type=new tl.ProtocolNotificationType(t.method)})(eC=zn.WorkDoneProgressCancelNotification||(zn.WorkDoneProgressCancelNotification={}))});var Rb=X(On=>{"use strict";Object.defineProperty(On,"__esModule",{value:!0});On.CallHierarchyOutgoingCallsRequest=On.CallHierarchyIncomingCallsRequest=On.CallHierarchyPrepareRequest=void 0;var yo=ct(),tC;(function(t){t.method="textDocument/prepareCallHierarchy",t.messageDirection=yo.MessageDirection.clientToServer,t.type=new yo.ProtocolRequestType(t.method)})(tC=On.CallHierarchyPrepareRequest||(On.CallHierarchyPrepareRequest={}));var nC;(function(t){t.method="callHierarchy/incomingCalls",t.messageDirection=yo.MessageDirection.clientToServer,t.type=new yo.ProtocolRequestType(t.method)})(nC=On.CallHierarchyIncomingCallsRequest||(On.CallHierarchyIncomingCallsRequest={}));var rC;(function(t){t.method="callHierarchy/outgoingCalls",t.messageDirection=yo.MessageDirection.clientToServer,t.type=new yo.ProtocolRequestType(t.method)})(rC=On.CallHierarchyOutgoingCallsRequest||(On.CallHierarchyOutgoingCallsRequest={}))});var Ib=X(Ct=>{"use strict";Object.defineProperty(Ct,"__esModule",{value:!0});Ct.SemanticTokensRefreshRequest=Ct.SemanticTokensRangeRequest=Ct.SemanticTokensDeltaRequest=Ct.SemanticTokensRequest=Ct.SemanticTokensRegistrationType=Ct.TokenFormat=void 0;var Mr=ct(),iC;(function(t){t.Relative="relative"})(iC=Ct.TokenFormat||(Ct.TokenFormat={}));var nl;(function(t){t.method="textDocument/semanticTokens",t.type=new Mr.RegistrationType(t.method)})(nl=Ct.SemanticTokensRegistrationType||(Ct.SemanticTokensRegistrationType={}));var oC;(function(t){t.method="textDocument/semanticTokens/full",t.messageDirection=Mr.MessageDirection.clientToServer,t.type=new Mr.ProtocolRequestType(t.method),t.registrationMethod=nl.method})(oC=Ct.SemanticTokensRequest||(Ct.SemanticTokensRequest={}));var sC;(function(t){t.method="textDocument/semanticTokens/full/delta",t.messageDirection=Mr.MessageDirection.clientToServer,t.type=new Mr.ProtocolRequestType(t.method),t.registrationMethod=nl.method})(sC=Ct.SemanticTokensDeltaRequest||(Ct.SemanticTokensDeltaRequest={}));var aC;(function(t){t.method="textDocument/semanticTokens/range",t.messageDirection=Mr.MessageDirection.clientToServer,t.type=new Mr.ProtocolRequestType(t.method),t.registrationMethod=nl.method})(aC=Ct.SemanticTokensRangeRequest||(Ct.SemanticTokensRangeRequest={}));var lC;(function(t){t.method="workspace/semanticTokens/refresh",t.messageDirection=Mr.MessageDirection.clientToServer,t.type=new Mr.ProtocolRequestType0(t.method)})(lC=Ct.SemanticTokensRefreshRequest||(Ct.SemanticTokensRefreshRequest={}))});var Pb=X(Ps=>{"use strict";Object.defineProperty(Ps,"__esModule",{value:!0});Ps.ShowDocumentRequest=void 0;var Mb=ct(),cC;(function(t){t.method="window/showDocument",t.messageDirection=Mb.MessageDirection.serverToClient,t.type=new Mb.ProtocolRequestType(t.method)})(cC=Ps.ShowDocumentRequest||(Ps.ShowDocumentRequest={}))});var Ob=X(zs=>{"use strict";Object.defineProperty(zs,"__esModule",{value:!0});zs.LinkedEditingRangeRequest=void 0;var zb=ct(),uC;(function(t){t.method="textDocument/linkedEditingRange",t.messageDirection=zb.MessageDirection.clientToServer,t.type=new zb.ProtocolRequestType(t.method)})(uC=zs.LinkedEditingRangeRequest||(zs.LinkedEditingRangeRequest={}))});var Lb=X(ut=>{"use strict";Object.defineProperty(ut,"__esModule",{value:!0});ut.WillDeleteFilesRequest=ut.DidDeleteFilesNotification=ut.DidRenameFilesNotification=ut.WillRenameFilesRequest=ut.DidCreateFilesNotification=ut.WillCreateFilesRequest=ut.FileOperationPatternKind=void 0;var mn=ct(),dC;(function(t){t.file="file",t.folder="folder"})(dC=ut.FileOperationPatternKind||(ut.FileOperationPatternKind={}));var hC;(function(t){t.method="workspace/willCreateFiles",t.messageDirection=mn.MessageDirection.clientToServer,t.type=new mn.ProtocolRequestType(t.method)})(hC=ut.WillCreateFilesRequest||(ut.WillCreateFilesRequest={}));var pC;(function(t){t.method="workspace/didCreateFiles",t.messageDirection=mn.MessageDirection.clientToServer,t.type=new mn.ProtocolNotificationType(t.method)})(pC=ut.DidCreateFilesNotification||(ut.DidCreateFilesNotification={}));var mC;(function(t){t.method="workspace/willRenameFiles",t.messageDirection=mn.MessageDirection.clientToServer,t.type=new mn.ProtocolRequestType(t.method)})(mC=ut.WillRenameFilesRequest||(ut.WillRenameFilesRequest={}));var fC;(function(t){t.method="workspace/didRenameFiles",t.messageDirection=mn.MessageDirection.clientToServer,t.type=new mn.ProtocolNotificationType(t.method)})(fC=ut.DidRenameFilesNotification||(ut.DidRenameFilesNotification={}));var gC;(function(t){t.method="workspace/didDeleteFiles",t.messageDirection=mn.MessageDirection.clientToServer,t.type=new mn.ProtocolNotificationType(t.method)})(gC=ut.DidDeleteFilesNotification||(ut.DidDeleteFilesNotification={}));var bC;(function(t){t.method="workspace/willDeleteFiles",t.messageDirection=mn.MessageDirection.clientToServer,t.type=new mn.ProtocolRequestType(t.method)})(bC=ut.WillDeleteFilesRequest||(ut.WillDeleteFilesRequest={}))});var Wb=X(Ln=>{"use strict";Object.defineProperty(Ln,"__esModule",{value:!0});Ln.MonikerRequest=Ln.MonikerKind=Ln.UniquenessLevel=void 0;var Nb=ct(),vC;(function(t){t.document="document",t.project="project",t.group="group",t.scheme="scheme",t.global="global"})(vC=Ln.UniquenessLevel||(Ln.UniquenessLevel={}));var wC;(function(t){t.$import="import",t.$export="export",t.local="local"})(wC=Ln.MonikerKind||(Ln.MonikerKind={}));var yC;(function(t){t.method="textDocument/moniker",t.messageDirection=Nb.MessageDirection.clientToServer,t.type=new Nb.ProtocolRequestType(t.method)})(yC=Ln.MonikerRequest||(Ln.MonikerRequest={}))});var qb=X(Nn=>{"use strict";Object.defineProperty(Nn,"__esModule",{value:!0});Nn.TypeHierarchySubtypesRequest=Nn.TypeHierarchySupertypesRequest=Nn.TypeHierarchyPrepareRequest=void 0;var _o=ct(),_C;(function(t){t.method="textDocument/prepareTypeHierarchy",t.messageDirection=_o.MessageDirection.clientToServer,t.type=new _o.ProtocolRequestType(t.method)})(_C=Nn.TypeHierarchyPrepareRequest||(Nn.TypeHierarchyPrepareRequest={}));var SC;(function(t){t.method="typeHierarchy/supertypes",t.messageDirection=_o.MessageDirection.clientToServer,t.type=new _o.ProtocolRequestType(t.method)})(SC=Nn.TypeHierarchySupertypesRequest||(Nn.TypeHierarchySupertypesRequest={}));var xC;(function(t){t.method="typeHierarchy/subtypes",t.messageDirection=_o.MessageDirection.clientToServer,t.type=new _o.ProtocolRequestType(t.method)})(xC=Nn.TypeHierarchySubtypesRequest||(Nn.TypeHierarchySubtypesRequest={}))});var Ub=X(ii=>{"use strict";Object.defineProperty(ii,"__esModule",{value:!0});ii.InlineValueRefreshRequest=ii.InlineValueRequest=void 0;var rl=ct(),kC;(function(t){t.method="textDocument/inlineValue",t.messageDirection=rl.MessageDirection.clientToServer,t.type=new rl.ProtocolRequestType(t.method)})(kC=ii.InlineValueRequest||(ii.InlineValueRequest={}));var CC;(function(t){t.method="workspace/inlineValue/refresh",t.messageDirection=rl.MessageDirection.clientToServer,t.type=new rl.ProtocolRequestType0(t.method)})(CC=ii.InlineValueRefreshRequest||(ii.InlineValueRefreshRequest={}))});var jb=X(Wn=>{"use strict";Object.defineProperty(Wn,"__esModule",{value:!0});Wn.InlayHintRefreshRequest=Wn.InlayHintResolveRequest=Wn.InlayHintRequest=void 0;var So=ct(),TC;(function(t){t.method="textDocument/inlayHint",t.messageDirection=So.MessageDirection.clientToServer,t.type=new So.ProtocolRequestType(t.method)})(TC=Wn.InlayHintRequest||(Wn.InlayHintRequest={}));var EC;(function(t){t.method="inlayHint/resolve",t.messageDirection=So.MessageDirection.clientToServer,t.type=new So.ProtocolRequestType(t.method)})(EC=Wn.InlayHintResolveRequest||(Wn.InlayHintResolveRequest={}));var DC;(function(t){t.method="workspace/inlayHint/refresh",t.messageDirection=So.MessageDirection.clientToServer,t.type=new So.ProtocolRequestType0(t.method)})(DC=Wn.InlayHintRefreshRequest||(Wn.InlayHintRefreshRequest={}))});var Bb=X(Nt=>{"use strict";Object.defineProperty(Nt,"__esModule",{value:!0});Nt.DiagnosticRefreshRequest=Nt.WorkspaceDiagnosticRequest=Nt.DocumentDiagnosticRequest=Nt.DocumentDiagnosticReportKind=Nt.DiagnosticServerCancellationData=void 0;var Hb=Ni(),FC=Ya(),xo=ct(),AC;(function(t){function e(n){let r=n;return r&&FC.boolean(r.retriggerRequest)}t.is=e})(AC=Nt.DiagnosticServerCancellationData||(Nt.DiagnosticServerCancellationData={}));var RC;(function(t){t.Full="full",t.Unchanged="unchanged"})(RC=Nt.DocumentDiagnosticReportKind||(Nt.DocumentDiagnosticReportKind={}));var IC;(function(t){t.method="textDocument/diagnostic",t.messageDirection=xo.MessageDirection.clientToServer,t.type=new xo.ProtocolRequestType(t.method),t.partialResult=new Hb.ProgressType})(IC=Nt.DocumentDiagnosticRequest||(Nt.DocumentDiagnosticRequest={}));var MC;(function(t){t.method="workspace/diagnostic",t.messageDirection=xo.MessageDirection.clientToServer,t.type=new xo.ProtocolRequestType(t.method),t.partialResult=new Hb.ProgressType})(MC=Nt.WorkspaceDiagnosticRequest||(Nt.WorkspaceDiagnosticRequest={}));var PC;(function(t){t.method="workspace/diagnostic/refresh",t.messageDirection=xo.MessageDirection.clientToServer,t.type=new xo.ProtocolRequestType0(t.method)})(PC=Nt.DiagnosticRefreshRequest||(Nt.DiagnosticRefreshRequest={}))});var Kb=X(qe=>{"use strict";Object.defineProperty(qe,"__esModule",{value:!0});qe.DidCloseNotebookDocumentNotification=qe.DidSaveNotebookDocumentNotification=qe.DidChangeNotebookDocumentNotification=qe.NotebookCellArrayChange=qe.DidOpenNotebookDocumentNotification=qe.NotebookDocumentSyncRegistrationType=qe.NotebookDocument=qe.NotebookCell=qe.ExecutionSummary=qe.NotebookCellKind=void 0;var Os=Xt(),qn=Ya(),tr=ct(),$b;(function(t){t.Markup=1,t.Code=2;function e(n){return n===1||n===2}t.is=e})($b=qe.NotebookCellKind||(qe.NotebookCellKind={}));var Vb;(function(t){function e(i,o){let s={executionOrder:i};return(o===!0||o===!1)&&(s.success=o),s}t.create=e;function n(i){let o=i;return qn.objectLiteral(o)&&Os.uinteger.is(o.executionOrder)&&(o.success===void 0||qn.boolean(o.success))}t.is=n;function r(i,o){return i===o?!0:i==null||o===null||o===void 0?!1:i.executionOrder===o.executionOrder&&i.success===o.success}t.equals=r})(Vb=qe.ExecutionSummary||(qe.ExecutionSummary={}));var zh;(function(t){function e(o,s){return{kind:o,document:s}}t.create=e;function n(o){let s=o;return qn.objectLiteral(s)&&$b.is(s.kind)&&Os.DocumentUri.is(s.document)&&(s.metadata===void 0||qn.objectLiteral(s.metadata))}t.is=n;function r(o,s){let l=new Set;return o.document!==s.document&&l.add("document"),o.kind!==s.kind&&l.add("kind"),o.executionSummary!==s.executionSummary&&l.add("executionSummary"),(o.metadata!==void 0||s.metadata!==void 0)&&!i(o.metadata,s.metadata)&&l.add("metadata"),(o.executionSummary!==void 0||s.executionSummary!==void 0)&&!Vb.equals(o.executionSummary,s.executionSummary)&&l.add("executionSummary"),l}t.diff=r;function i(o,s){if(o===s)return!0;if(o==null||s===null||s===void 0||typeof o!=typeof s||typeof o!="object")return!1;let l=Array.isArray(o),a=Array.isArray(s);if(l!==a)return!1;if(l&&a){if(o.length!==s.length)return!1;for(let c=0;c<o.length;c++)if(!i(o[c],s[c]))return!1}if(qn.objectLiteral(o)&&qn.objectLiteral(s)){let c=Object.keys(o),u=Object.keys(s);if(c.length!==u.length||(c.sort(),u.sort(),!i(c,u)))return!1;for(let d=0;d<c.length;d++){let h=c[d];if(!i(o[h],s[h]))return!1}}return!0}})(zh=qe.NotebookCell||(qe.NotebookCell={}));var zC;(function(t){function e(r,i,o,s){return{uri:r,notebookType:i,version:o,cells:s}}t.create=e;function n(r){let i=r;return qn.objectLiteral(i)&&qn.string(i.uri)&&Os.integer.is(i.version)&&qn.typedArray(i.cells,zh.is)}t.is=n})(zC=qe.NotebookDocument||(qe.NotebookDocument={}));var Ls;(function(t){t.method="notebookDocument/sync",t.messageDirection=tr.MessageDirection.clientToServer,t.type=new tr.RegistrationType(t.method)})(Ls=qe.NotebookDocumentSyncRegistrationType||(qe.NotebookDocumentSyncRegistrationType={}));var OC;(function(t){t.method="notebookDocument/didOpen",t.messageDirection=tr.MessageDirection.clientToServer,t.type=new tr.ProtocolNotificationType(t.method),t.registrationMethod=Ls.method})(OC=qe.DidOpenNotebookDocumentNotification||(qe.DidOpenNotebookDocumentNotification={}));var LC;(function(t){function e(r){let i=r;return qn.objectLiteral(i)&&Os.uinteger.is(i.start)&&Os.uinteger.is(i.deleteCount)&&(i.cells===void 0||qn.typedArray(i.cells,zh.is))}t.is=e;function n(r,i,o){let s={start:r,deleteCount:i};return o!==void 0&&(s.cells=o),s}t.create=n})(LC=qe.NotebookCellArrayChange||(qe.NotebookCellArrayChange={}));var NC;(function(t){t.method="notebookDocument/didChange",t.messageDirection=tr.MessageDirection.clientToServer,t.type=new tr.ProtocolNotificationType(t.method),t.registrationMethod=Ls.method})(NC=qe.DidChangeNotebookDocumentNotification||(qe.DidChangeNotebookDocumentNotification={}));var WC;(function(t){t.method="notebookDocument/didSave",t.messageDirection=tr.MessageDirection.clientToServer,t.type=new tr.ProtocolNotificationType(t.method),t.registrationMethod=Ls.method})(WC=qe.DidSaveNotebookDocumentNotification||(qe.DidSaveNotebookDocumentNotification={}));var qC;(function(t){t.method="notebookDocument/didClose",t.messageDirection=tr.MessageDirection.clientToServer,t.type=new tr.ProtocolNotificationType(t.method),t.registrationMethod=Ls.method})(qC=qe.DidCloseNotebookDocumentNotification||(qe.DidCloseNotebookDocumentNotification={}))});var nv=X(S=>{"use strict";Object.defineProperty(S,"__esModule",{value:!0});S.WorkspaceSymbolRequest=S.CodeActionResolveRequest=S.CodeActionRequest=S.DocumentSymbolRequest=S.DocumentHighlightRequest=S.ReferencesRequest=S.DefinitionRequest=S.SignatureHelpRequest=S.SignatureHelpTriggerKind=S.HoverRequest=S.CompletionResolveRequest=S.CompletionRequest=S.CompletionTriggerKind=S.PublishDiagnosticsNotification=S.WatchKind=S.RelativePattern=S.FileChangeType=S.DidChangeWatchedFilesNotification=S.WillSaveTextDocumentWaitUntilRequest=S.WillSaveTextDocumentNotification=S.TextDocumentSaveReason=S.DidSaveTextDocumentNotification=S.DidCloseTextDocumentNotification=S.DidChangeTextDocumentNotification=S.TextDocumentContentChangeEvent=S.DidOpenTextDocumentNotification=S.TextDocumentSyncKind=S.TelemetryEventNotification=S.LogMessageNotification=S.ShowMessageRequest=S.ShowMessageNotification=S.MessageType=S.DidChangeConfigurationNotification=S.ExitNotification=S.ShutdownRequest=S.InitializedNotification=S.InitializeErrorCodes=S.InitializeRequest=S.WorkDoneProgressOptions=S.TextDocumentRegistrationOptions=S.StaticRegistrationOptions=S.PositionEncodingKind=S.FailureHandlingKind=S.ResourceOperationKind=S.UnregistrationRequest=S.RegistrationRequest=S.DocumentSelector=S.NotebookCellTextDocumentFilter=S.NotebookDocumentFilter=S.TextDocumentFilter=void 0;S.TypeHierarchySubtypesRequest=S.TypeHierarchyPrepareRequest=S.MonikerRequest=S.MonikerKind=S.UniquenessLevel=S.WillDeleteFilesRequest=S.DidDeleteFilesNotification=S.WillRenameFilesRequest=S.DidRenameFilesNotification=S.WillCreateFilesRequest=S.DidCreateFilesNotification=S.FileOperationPatternKind=S.LinkedEditingRangeRequest=S.ShowDocumentRequest=S.SemanticTokensRegistrationType=S.SemanticTokensRefreshRequest=S.SemanticTokensRangeRequest=S.SemanticTokensDeltaRequest=S.SemanticTokensRequest=S.TokenFormat=S.CallHierarchyPrepareRequest=S.CallHierarchyOutgoingCallsRequest=S.CallHierarchyIncomingCallsRequest=S.WorkDoneProgressCancelNotification=S.WorkDoneProgressCreateRequest=S.WorkDoneProgress=S.SelectionRangeRequest=S.DeclarationRequest=S.FoldingRangeRequest=S.ColorPresentationRequest=S.DocumentColorRequest=S.ConfigurationRequest=S.DidChangeWorkspaceFoldersNotification=S.WorkspaceFoldersRequest=S.TypeDefinitionRequest=S.ImplementationRequest=S.ApplyWorkspaceEditRequest=S.ExecuteCommandRequest=S.PrepareRenameRequest=S.RenameRequest=S.PrepareSupportDefaultBehavior=S.DocumentOnTypeFormattingRequest=S.DocumentRangeFormattingRequest=S.DocumentFormattingRequest=S.DocumentLinkResolveRequest=S.DocumentLinkRequest=S.CodeLensRefreshRequest=S.CodeLensResolveRequest=S.CodeLensRequest=S.WorkspaceSymbolResolveRequest=void 0;S.DidCloseNotebookDocumentNotification=S.DidSaveNotebookDocumentNotification=S.DidChangeNotebookDocumentNotification=S.NotebookCellArrayChange=S.DidOpenNotebookDocumentNotification=S.NotebookDocumentSyncRegistrationType=S.NotebookDocument=S.NotebookCell=S.ExecutionSummary=S.NotebookCellKind=S.DiagnosticRefreshRequest=S.WorkspaceDiagnosticRequest=S.DocumentDiagnosticRequest=S.DocumentDiagnosticReportKind=S.DiagnosticServerCancellationData=S.InlayHintRefreshRequest=S.InlayHintResolveRequest=S.InlayHintRequest=S.InlineValueRefreshRequest=S.InlineValueRequest=S.TypeHierarchySupertypesRequest=void 0;var ce=ct(),Gb=Xt(),Wt=Ya(),UC=bb();Object.defineProperty(S,"ImplementationRequest",{enumerable:!0,get:function(){return UC.ImplementationRequest}});var jC=wb();Object.defineProperty(S,"TypeDefinitionRequest",{enumerable:!0,get:function(){return jC.TypeDefinitionRequest}});var Jb=yb();Object.defineProperty(S,"WorkspaceFoldersRequest",{enumerable:!0,get:function(){return Jb.WorkspaceFoldersRequest}});Object.defineProperty(S,"DidChangeWorkspaceFoldersNotification",{enumerable:!0,get:function(){return Jb.DidChangeWorkspaceFoldersNotification}});var HC=Sb();Object.defineProperty(S,"ConfigurationRequest",{enumerable:!0,get:function(){return HC.ConfigurationRequest}});var Xb=xb();Object.defineProperty(S,"DocumentColorRequest",{enumerable:!0,get:function(){return Xb.DocumentColorRequest}});Object.defineProperty(S,"ColorPresentationRequest",{enumerable:!0,get:function(){return Xb.ColorPresentationRequest}});var BC=Cb();Object.defineProperty(S,"FoldingRangeRequest",{enumerable:!0,get:function(){return BC.FoldingRangeRequest}});var $C=Eb();Object.defineProperty(S,"DeclarationRequest",{enumerable:!0,get:function(){return $C.DeclarationRequest}});var VC=Fb();Object.defineProperty(S,"SelectionRangeRequest",{enumerable:!0,get:function(){return VC.SelectionRangeRequest}});var Oh=Ab();Object.defineProperty(S,"WorkDoneProgress",{enumerable:!0,get:function(){return Oh.WorkDoneProgress}});Object.defineProperty(S,"WorkDoneProgressCreateRequest",{enumerable:!0,get:function(){return Oh.WorkDoneProgressCreateRequest}});Object.defineProperty(S,"WorkDoneProgressCancelNotification",{enumerable:!0,get:function(){return Oh.WorkDoneProgressCancelNotification}});var Lh=Rb();Object.defineProperty(S,"CallHierarchyIncomingCallsRequest",{enumerable:!0,get:function(){return Lh.CallHierarchyIncomingCallsRequest}});Object.defineProperty(S,"CallHierarchyOutgoingCallsRequest",{enumerable:!0,get:function(){return Lh.CallHierarchyOutgoingCallsRequest}});Object.defineProperty(S,"CallHierarchyPrepareRequest",{enumerable:!0,get:function(){return Lh.CallHierarchyPrepareRequest}});var ko=Ib();Object.defineProperty(S,"TokenFormat",{enumerable:!0,get:function(){return ko.TokenFormat}});Object.defineProperty(S,"SemanticTokensRequest",{enumerable:!0,get:function(){return ko.SemanticTokensRequest}});Object.defineProperty(S,"SemanticTokensDeltaRequest",{enumerable:!0,get:function(){return ko.SemanticTokensDeltaRequest}});Object.defineProperty(S,"SemanticTokensRangeRequest",{enumerable:!0,get:function(){return ko.SemanticTokensRangeRequest}});Object.defineProperty(S,"SemanticTokensRefreshRequest",{enumerable:!0,get:function(){return ko.SemanticTokensRefreshRequest}});Object.defineProperty(S,"SemanticTokensRegistrationType",{enumerable:!0,get:function(){return ko.SemanticTokensRegistrationType}});var KC=Pb();Object.defineProperty(S,"ShowDocumentRequest",{enumerable:!0,get:function(){return KC.ShowDocumentRequest}});var GC=Ob();Object.defineProperty(S,"LinkedEditingRangeRequest",{enumerable:!0,get:function(){return GC.LinkedEditingRangeRequest}});var Wi=Lb();Object.defineProperty(S,"FileOperationPatternKind",{enumerable:!0,get:function(){return Wi.FileOperationPatternKind}});Object.defineProperty(S,"DidCreateFilesNotification",{enumerable:!0,get:function(){return Wi.DidCreateFilesNotification}});Object.defineProperty(S,"WillCreateFilesRequest",{enumerable:!0,get:function(){return Wi.WillCreateFilesRequest}});Object.defineProperty(S,"DidRenameFilesNotification",{enumerable:!0,get:function(){return Wi.DidRenameFilesNotification}});Object.defineProperty(S,"WillRenameFilesRequest",{enumerable:!0,get:function(){return Wi.WillRenameFilesRequest}});Object.defineProperty(S,"DidDeleteFilesNotification",{enumerable:!0,get:function(){return Wi.DidDeleteFilesNotification}});Object.defineProperty(S,"WillDeleteFilesRequest",{enumerable:!0,get:function(){return Wi.WillDeleteFilesRequest}});var Nh=Wb();Object.defineProperty(S,"UniquenessLevel",{enumerable:!0,get:function(){return Nh.UniquenessLevel}});Object.defineProperty(S,"MonikerKind",{enumerable:!0,get:function(){return Nh.MonikerKind}});Object.defineProperty(S,"MonikerRequest",{enumerable:!0,get:function(){return Nh.MonikerRequest}});var Wh=qb();Object.defineProperty(S,"TypeHierarchyPrepareRequest",{enumerable:!0,get:function(){return Wh.TypeHierarchyPrepareRequest}});Object.defineProperty(S,"TypeHierarchySubtypesRequest",{enumerable:!0,get:function(){return Wh.TypeHierarchySubtypesRequest}});Object.defineProperty(S,"TypeHierarchySupertypesRequest",{enumerable:!0,get:function(){return Wh.TypeHierarchySupertypesRequest}});var Qb=Ub();Object.defineProperty(S,"InlineValueRequest",{enumerable:!0,get:function(){return Qb.InlineValueRequest}});Object.defineProperty(S,"InlineValueRefreshRequest",{enumerable:!0,get:function(){return Qb.InlineValueRefreshRequest}});var qh=jb();Object.defineProperty(S,"InlayHintRequest",{enumerable:!0,get:function(){return qh.InlayHintRequest}});Object.defineProperty(S,"InlayHintResolveRequest",{enumerable:!0,get:function(){return qh.InlayHintResolveRequest}});Object.defineProperty(S,"InlayHintRefreshRequest",{enumerable:!0,get:function(){return qh.InlayHintRefreshRequest}});var Ns=Bb();Object.defineProperty(S,"DiagnosticServerCancellationData",{enumerable:!0,get:function(){return Ns.DiagnosticServerCancellationData}});Object.defineProperty(S,"DocumentDiagnosticReportKind",{enumerable:!0,get:function(){return Ns.DocumentDiagnosticReportKind}});Object.defineProperty(S,"DocumentDiagnosticRequest",{enumerable:!0,get:function(){return Ns.DocumentDiagnosticRequest}});Object.defineProperty(S,"WorkspaceDiagnosticRequest",{enumerable:!0,get:function(){return Ns.WorkspaceDiagnosticRequest}});Object.defineProperty(S,"DiagnosticRefreshRequest",{enumerable:!0,get:function(){return Ns.DiagnosticRefreshRequest}});var nr=Kb();Object.defineProperty(S,"NotebookCellKind",{enumerable:!0,get:function(){return nr.NotebookCellKind}});Object.defineProperty(S,"ExecutionSummary",{enumerable:!0,get:function(){return nr.ExecutionSummary}});Object.defineProperty(S,"NotebookCell",{enumerable:!0,get:function(){return nr.NotebookCell}});Object.defineProperty(S,"NotebookDocument",{enumerable:!0,get:function(){return nr.NotebookDocument}});Object.defineProperty(S,"NotebookDocumentSyncRegistrationType",{enumerable:!0,get:function(){return nr.NotebookDocumentSyncRegistrationType}});Object.defineProperty(S,"DidOpenNotebookDocumentNotification",{enumerable:!0,get:function(){return nr.DidOpenNotebookDocumentNotification}});Object.defineProperty(S,"NotebookCellArrayChange",{enumerable:!0,get:function(){return nr.NotebookCellArrayChange}});Object.defineProperty(S,"DidChangeNotebookDocumentNotification",{enumerable:!0,get:function(){return nr.DidChangeNotebookDocumentNotification}});Object.defineProperty(S,"DidSaveNotebookDocumentNotification",{enumerable:!0,get:function(){return nr.DidSaveNotebookDocumentNotification}});Object.defineProperty(S,"DidCloseNotebookDocumentNotification",{enumerable:!0,get:function(){return nr.DidCloseNotebookDocumentNotification}});var Yb;(function(t){function e(n){let r=n;return Wt.string(r.language)||Wt.string(r.scheme)||Wt.string(r.pattern)}t.is=e})(Yb=S.TextDocumentFilter||(S.TextDocumentFilter={}));var Zb;(function(t){function e(n){let r=n;return Wt.objectLiteral(r)&&(Wt.string(r.notebookType)||Wt.string(r.scheme)||Wt.string(r.pattern))}t.is=e})(Zb=S.NotebookDocumentFilter||(S.NotebookDocumentFilter={}));var ev;(function(t){function e(n){let r=n;return Wt.objectLiteral(r)&&(Wt.string(r.notebook)||Zb.is(r.notebook))&&(r.language===void 0||Wt.string(r.language))}t.is=e})(ev=S.NotebookCellTextDocumentFilter||(S.NotebookCellTextDocumentFilter={}));var tv;(function(t){function e(n){if(!Array.isArray(n))return!1;for(let r of n)if(!Wt.string(r)&&!Yb.is(r)&&!ev.is(r))return!1;return!0}t.is=e})(tv=S.DocumentSelector||(S.DocumentSelector={}));var JC;(function(t){t.method="client/registerCapability",t.messageDirection=ce.MessageDirection.serverToClient,t.type=new ce.ProtocolRequestType(t.method)})(JC=S.RegistrationRequest||(S.RegistrationRequest={}));var XC;(function(t){t.method="client/unregisterCapability",t.messageDirection=ce.MessageDirection.serverToClient,t.type=new ce.ProtocolRequestType(t.method)})(XC=S.UnregistrationRequest||(S.UnregistrationRequest={}));var QC;(function(t){t.Create="create",t.Rename="rename",t.Delete="delete"})(QC=S.ResourceOperationKind||(S.ResourceOperationKind={}));var YC;(function(t){t.Abort="abort",t.Transactional="transactional",t.TextOnlyTransactional="textOnlyTransactional",t.Undo="undo"})(YC=S.FailureHandlingKind||(S.FailureHandlingKind={}));var ZC;(function(t){t.UTF8="utf-8",t.UTF16="utf-16",t.UTF32="utf-32"})(ZC=S.PositionEncodingKind||(S.PositionEncodingKind={}));var eT;(function(t){function e(n){let r=n;return r&&Wt.string(r.id)&&r.id.length>0}t.hasId=e})(eT=S.StaticRegistrationOptions||(S.StaticRegistrationOptions={}));var tT;(function(t){function e(n){let r=n;return r&&(r.documentSelector===null||tv.is(r.documentSelector))}t.is=e})(tT=S.TextDocumentRegistrationOptions||(S.TextDocumentRegistrationOptions={}));var nT;(function(t){function e(r){let i=r;return Wt.objectLiteral(i)&&(i.workDoneProgress===void 0||Wt.boolean(i.workDoneProgress))}t.is=e;function n(r){let i=r;return i&&Wt.boolean(i.workDoneProgress)}t.hasWorkDoneProgress=n})(nT=S.WorkDoneProgressOptions||(S.WorkDoneProgressOptions={}));var rT;(function(t){t.method="initialize",t.messageDirection=ce.MessageDirection.clientToServer,t.type=new ce.ProtocolRequestType(t.method)})(rT=S.InitializeRequest||(S.InitializeRequest={}));var iT;(function(t){t.unknownProtocolVersion=1})(iT=S.InitializeErrorCodes||(S.InitializeErrorCodes={}));var oT;(function(t){t.method="initialized",t.messageDirection=ce.MessageDirection.clientToServer,t.type=new ce.ProtocolNotificationType(t.method)})(oT=S.InitializedNotification||(S.InitializedNotification={}));var sT;(function(t){t.method="shutdown",t.messageDirection=ce.MessageDirection.clientToServer,t.type=new ce.ProtocolRequestType0(t.method)})(sT=S.ShutdownRequest||(S.ShutdownRequest={}));var aT;(function(t){t.method="exit",t.messageDirection=ce.MessageDirection.clientToServer,t.type=new ce.ProtocolNotificationType0(t.method)})(aT=S.ExitNotification||(S.ExitNotification={}));var lT;(function(t){t.method="workspace/didChangeConfiguration",t.messageDirection=ce.MessageDirection.clientToServer,t.type=new ce.ProtocolNotificationType(t.method)})(lT=S.DidChangeConfigurationNotification||(S.DidChangeConfigurationNotification={}));var cT;(function(t){t.Error=1,t.Warning=2,t.Info=3,t.Log=4})(cT=S.MessageType||(S.MessageType={}));var uT;(function(t){t.method="window/showMessage",t.messageDirection=ce.MessageDirection.serverToClient,t.type=new ce.ProtocolNotificationType(t.method)})(uT=S.ShowMessageNotification||(S.ShowMessageNotification={}));var dT;(function(t){t.method="window/showMessageRequest",t.messageDirection=ce.MessageDirection.serverToClient,t.type=new ce.ProtocolRequestType(t.method)})(dT=S.ShowMessageRequest||(S.ShowMessageRequest={}));var hT;(function(t){t.method="window/logMessage",t.messageDirection=ce.MessageDirection.serverToClient,t.type=new ce.ProtocolNotificationType(t.method)})(hT=S.LogMessageNotification||(S.LogMessageNotification={}));var pT;(function(t){t.method="telemetry/event",t.messageDirection=ce.MessageDirection.serverToClient,t.type=new ce.ProtocolNotificationType(t.method)})(pT=S.TelemetryEventNotification||(S.TelemetryEventNotification={}));var mT;(function(t){t.None=0,t.Full=1,t.Incremental=2})(mT=S.TextDocumentSyncKind||(S.TextDocumentSyncKind={}));var fT;(function(t){t.method="textDocument/didOpen",t.messageDirection=ce.MessageDirection.clientToServer,t.type=new ce.ProtocolNotificationType(t.method)})(fT=S.DidOpenTextDocumentNotification||(S.DidOpenTextDocumentNotification={}));var gT;(function(t){function e(r){let i=r;return i!=null&&typeof i.text=="string"&&i.range!==void 0&&(i.rangeLength===void 0||typeof i.rangeLength=="number")}t.isIncremental=e;function n(r){let i=r;return i!=null&&typeof i.text=="string"&&i.range===void 0&&i.rangeLength===void 0}t.isFull=n})(gT=S.TextDocumentContentChangeEvent||(S.TextDocumentContentChangeEvent={}));var bT;(function(t){t.method="textDocument/didChange",t.messageDirection=ce.MessageDirection.clientToServer,t.type=new ce.ProtocolNotificationType(t.method)})(bT=S.DidChangeTextDocumentNotification||(S.DidChangeTextDocumentNotification={}));var vT;(function(t){t.method="textDocument/didClose",t.messageDirection=ce.MessageDirection.clientToServer,t.type=new ce.ProtocolNotificationType(t.method)})(vT=S.DidCloseTextDocumentNotification||(S.DidCloseTextDocumentNotification={}));var wT;(function(t){t.method="textDocument/didSave",t.messageDirection=ce.MessageDirection.clientToServer,t.type=new ce.ProtocolNotificationType(t.method)})(wT=S.DidSaveTextDocumentNotification||(S.DidSaveTextDocumentNotification={}));var yT;(function(t){t.Manual=1,t.AfterDelay=2,t.FocusOut=3})(yT=S.TextDocumentSaveReason||(S.TextDocumentSaveReason={}));var _T;(function(t){t.method="textDocument/willSave",t.messageDirection=ce.MessageDirection.clientToServer,t.type=new ce.ProtocolNotificationType(t.method)})(_T=S.WillSaveTextDocumentNotification||(S.WillSaveTextDocumentNotification={}));var ST;(function(t){t.method="textDocument/willSaveWaitUntil",t.messageDirection=ce.MessageDirection.clientToServer,t.type=new ce.ProtocolRequestType(t.method)})(ST=S.WillSaveTextDocumentWaitUntilRequest||(S.WillSaveTextDocumentWaitUntilRequest={}));var xT;(function(t){t.method="workspace/didChangeWatchedFiles",t.messageDirection=ce.MessageDirection.clientToServer,t.type=new ce.ProtocolNotificationType(t.method)})(xT=S.DidChangeWatchedFilesNotification||(S.DidChangeWatchedFilesNotification={}));var kT;(function(t){t.Created=1,t.Changed=2,t.Deleted=3})(kT=S.FileChangeType||(S.FileChangeType={}));var CT;(function(t){function e(n){let r=n;return Wt.objectLiteral(r)&&(Gb.URI.is(r.baseUri)||Gb.WorkspaceFolder.is(r.baseUri))&&Wt.string(r.pattern)}t.is=e})(CT=S.RelativePattern||(S.RelativePattern={}));var TT;(function(t){t.Create=1,t.Change=2,t.Delete=4})(TT=S.WatchKind||(S.WatchKind={}));var ET;(function(t){t.method="textDocument/publishDiagnostics",t.messageDirection=ce.MessageDirection.serverToClient,t.type=new ce.ProtocolNotificationType(t.method)})(ET=S.PublishDiagnosticsNotification||(S.PublishDiagnosticsNotification={}));var DT;(function(t){t.Invoked=1,t.TriggerCharacter=2,t.TriggerForIncompleteCompletions=3})(DT=S.CompletionTriggerKind||(S.CompletionTriggerKind={}));var FT;(function(t){t.method="textDocument/completion",t.messageDirection=ce.MessageDirection.clientToServer,t.type=new ce.ProtocolRequestType(t.method)})(FT=S.CompletionRequest||(S.CompletionRequest={}));var AT;(function(t){t.method="completionItem/resolve",t.messageDirection=ce.MessageDirection.clientToServer,t.type=new ce.ProtocolRequestType(t.method)})(AT=S.CompletionResolveRequest||(S.CompletionResolveRequest={}));var RT;(function(t){t.method="textDocument/hover",t.messageDirection=ce.MessageDirection.clientToServer,t.type=new ce.ProtocolRequestType(t.method)})(RT=S.HoverRequest||(S.HoverRequest={}));var IT;(function(t){t.Invoked=1,t.TriggerCharacter=2,t.ContentChange=3})(IT=S.SignatureHelpTriggerKind||(S.SignatureHelpTriggerKind={}));var MT;(function(t){t.method="textDocument/signatureHelp",t.messageDirection=ce.MessageDirection.clientToServer,t.type=new ce.ProtocolRequestType(t.method)})(MT=S.SignatureHelpRequest||(S.SignatureHelpRequest={}));var PT;(function(t){t.method="textDocument/definition",t.messageDirection=ce.MessageDirection.clientToServer,t.type=new ce.ProtocolRequestType(t.method)})(PT=S.DefinitionRequest||(S.DefinitionRequest={}));var zT;(function(t){t.method="textDocument/references",t.messageDirection=ce.MessageDirection.clientToServer,t.type=new ce.ProtocolRequestType(t.method)})(zT=S.ReferencesRequest||(S.ReferencesRequest={}));var OT;(function(t){t.method="textDocument/documentHighlight",t.messageDirection=ce.MessageDirection.clientToServer,t.type=new ce.ProtocolRequestType(t.method)})(OT=S.DocumentHighlightRequest||(S.DocumentHighlightRequest={}));var LT;(function(t){t.method="textDocument/documentSymbol",t.messageDirection=ce.MessageDirection.clientToServer,t.type=new ce.ProtocolRequestType(t.method)})(LT=S.DocumentSymbolRequest||(S.DocumentSymbolRequest={}));var NT;(function(t){t.method="textDocument/codeAction",t.messageDirection=ce.MessageDirection.clientToServer,t.type=new ce.ProtocolRequestType(t.method)})(NT=S.CodeActionRequest||(S.CodeActionRequest={}));var WT;(function(t){t.method="codeAction/resolve",t.messageDirection=ce.MessageDirection.clientToServer,t.type=new ce.ProtocolRequestType(t.method)})(WT=S.CodeActionResolveRequest||(S.CodeActionResolveRequest={}));var qT;(function(t){t.method="workspace/symbol",t.messageDirection=ce.MessageDirection.clientToServer,t.type=new ce.ProtocolRequestType(t.method)})(qT=S.WorkspaceSymbolRequest||(S.WorkspaceSymbolRequest={}));var UT;(function(t){t.method="workspaceSymbol/resolve",t.messageDirection=ce.MessageDirection.clientToServer,t.type=new ce.ProtocolRequestType(t.method)})(UT=S.WorkspaceSymbolResolveRequest||(S.WorkspaceSymbolResolveRequest={}));var jT;(function(t){t.method="textDocument/codeLens",t.messageDirection=ce.MessageDirection.clientToServer,t.type=new ce.ProtocolRequestType(t.method)})(jT=S.CodeLensRequest||(S.CodeLensRequest={}));var HT;(function(t){t.method="codeLens/resolve",t.messageDirection=ce.MessageDirection.clientToServer,t.type=new ce.ProtocolRequestType(t.method)})(HT=S.CodeLensResolveRequest||(S.CodeLensResolveRequest={}));var BT;(function(t){t.method="workspace/codeLens/refresh",t.messageDirection=ce.MessageDirection.serverToClient,t.type=new ce.ProtocolRequestType0(t.method)})(BT=S.CodeLensRefreshRequest||(S.CodeLensRefreshRequest={}));var $T;(function(t){t.method="textDocument/documentLink",t.messageDirection=ce.MessageDirection.clientToServer,t.type=new ce.ProtocolRequestType(t.method)})($T=S.DocumentLinkRequest||(S.DocumentLinkRequest={}));var VT;(function(t){t.method="documentLink/resolve",t.messageDirection=ce.MessageDirection.clientToServer,t.type=new ce.ProtocolRequestType(t.method)})(VT=S.DocumentLinkResolveRequest||(S.DocumentLinkResolveRequest={}));var KT;(function(t){t.method="textDocument/formatting",t.messageDirection=ce.MessageDirection.clientToServer,t.type=new ce.ProtocolRequestType(t.method)})(KT=S.DocumentFormattingRequest||(S.DocumentFormattingRequest={}));var GT;(function(t){t.method="textDocument/rangeFormatting",t.messageDirection=ce.MessageDirection.clientToServer,t.type=new ce.ProtocolRequestType(t.method)})(GT=S.DocumentRangeFormattingRequest||(S.DocumentRangeFormattingRequest={}));var JT;(function(t){t.method="textDocument/onTypeFormatting",t.messageDirection=ce.MessageDirection.clientToServer,t.type=new ce.ProtocolRequestType(t.method)})(JT=S.DocumentOnTypeFormattingRequest||(S.DocumentOnTypeFormattingRequest={}));var XT;(function(t){t.Identifier=1})(XT=S.PrepareSupportDefaultBehavior||(S.PrepareSupportDefaultBehavior={}));var QT;(function(t){t.method="textDocument/rename",t.messageDirection=ce.MessageDirection.clientToServer,t.type=new ce.ProtocolRequestType(t.method)})(QT=S.RenameRequest||(S.RenameRequest={}));var YT;(function(t){t.method="textDocument/prepareRename",t.messageDirection=ce.MessageDirection.clientToServer,t.type=new ce.ProtocolRequestType(t.method)})(YT=S.PrepareRenameRequest||(S.PrepareRenameRequest={}));var ZT;(function(t){t.method="workspace/executeCommand",t.messageDirection=ce.MessageDirection.clientToServer,t.type=new ce.ProtocolRequestType(t.method)})(ZT=S.ExecuteCommandRequest||(S.ExecuteCommandRequest={}));var eE;(function(t){t.method="workspace/applyEdit",t.messageDirection=ce.MessageDirection.serverToClient,t.type=new ce.ProtocolRequestType("workspace/applyEdit")})(eE=S.ApplyWorkspaceEditRequest||(S.ApplyWorkspaceEditRequest={}))});var iv=X(il=>{"use strict";Object.defineProperty(il,"__esModule",{value:!0});il.createProtocolConnection=void 0;var rv=Ni();function tE(t,e,n,r){return rv.ConnectionStrategy.is(r)&&(r={connectionStrategy:r}),(0,rv.createMessageConnection)(t,e,n,r)}il.createProtocolConnection=tE});var ov=X(Yt=>{"use strict";var nE=Yt&&Yt.__createBinding||(Object.create?function(t,e,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(e,n);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,i)}:function(t,e,n,r){r===void 0&&(r=n),t[r]=e[n]}),ol=Yt&&Yt.__exportStar||function(t,e){for(var n in t)n!=="default"&&!Object.prototype.hasOwnProperty.call(e,n)&&nE(e,t,n)};Object.defineProperty(Yt,"__esModule",{value:!0});Yt.LSPErrorCodes=Yt.createProtocolConnection=void 0;ol(Ni(),Yt);ol(Xt(),Yt);ol(ct(),Yt);ol(nv(),Yt);var rE=iv();Object.defineProperty(Yt,"createProtocolConnection",{enumerable:!0,get:function(){return rE.createProtocolConnection}});var iE;(function(t){t.lspReservedErrorRangeStart=-32899,t.RequestFailed=-32803,t.ServerCancelled=-32802,t.ContentModified=-32801,t.RequestCancelled=-32800,t.lspReservedErrorRangeEnd=-32800})(iE=Yt.LSPErrorCodes||(Yt.LSPErrorCodes={}))});var ft=X(rr=>{"use strict";var oE=rr&&rr.__createBinding||(Object.create?function(t,e,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(e,n);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,i)}:function(t,e,n,r){r===void 0&&(r=n),t[r]=e[n]}),sv=rr&&rr.__exportStar||function(t,e){for(var n in t)n!=="default"&&!Object.prototype.hasOwnProperty.call(e,n)&&oE(e,t,n)};Object.defineProperty(rr,"__esModule",{value:!0});rr.createProtocolConnection=void 0;var sE=Fh();sv(Fh(),rr);sv(ov(),rr);function aE(t,e,n,r){return(0,sE.createMessageConnection)(t,e,n,r)}rr.createProtocolConnection=aE});var jh=X(oi=>{"use strict";Object.defineProperty(oi,"__esModule",{value:!0});oi.SemanticTokensBuilder=oi.SemanticTokensDiff=oi.SemanticTokensFeature=void 0;var sl=ft(),lE=t=>class extends t{get semanticTokens(){return{refresh:()=>this.connection.sendRequest(sl.SemanticTokensRefreshRequest.type),on:e=>{let n=sl.SemanticTokensRequest.type;return this.connection.onRequest(n,(r,i)=>e(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))},onDelta:e=>{let n=sl.SemanticTokensDeltaRequest.type;return this.connection.onRequest(n,(r,i)=>e(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))},onRange:e=>{let n=sl.SemanticTokensRangeRequest.type;return this.connection.onRequest(n,(r,i)=>e(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))}}}};oi.SemanticTokensFeature=lE;var al=class{constructor(e,n){this.originalSequence=e,this.modifiedSequence=n}computeDiff(){let e=this.originalSequence.length,n=this.modifiedSequence.length,r=0;for(;r<n&&r<e&&this.originalSequence[r]===this.modifiedSequence[r];)r++;if(r<n&&r<e){let i=e-1,o=n-1;for(;i>=r&&o>=r&&this.originalSequence[i]===this.modifiedSequence[o];)i--,o--;(i<r||o<r)&&(i++,o++);let s=i-r+1,l=this.modifiedSequence.slice(r,o+1);return l.length===1&&l[0]===this.originalSequence[i]?[{start:r,deleteCount:s-1}]:[{start:r,deleteCount:s,data:l}]}else return r<n?[{start:r,deleteCount:0,data:this.modifiedSequence.slice(r)}]:r<e?[{start:r,deleteCount:e-r}]:[]}};oi.SemanticTokensDiff=al;var Uh=class{constructor(){this._prevData=void 0,this.initialize()}initialize(){this._id=Date.now(),this._prevLine=0,this._prevChar=0,this._data=[],this._dataLen=0}push(e,n,r,i,o){let s=e,l=n;this._dataLen>0&&(s-=this._prevLine,s===0&&(l-=this._prevChar)),this._data[this._dataLen++]=s,this._data[this._dataLen++]=l,this._data[this._dataLen++]=r,this._data[this._dataLen++]=i,this._data[this._dataLen++]=o,this._prevLine=e,this._prevChar=n}get id(){return this._id.toString()}previousResult(e){this.id===e&&(this._prevData=this._data),this.initialize()}build(){return this._prevData=void 0,{resultId:this.id,data:this._data}}canBuildEdits(){return this._prevData!==void 0}buildEdits(){return this._prevData!==void 0?{resultId:this.id,edits:new al(this._prevData,this._data).computeDiff()}:this.build()}};oi.SemanticTokensBuilder=Uh});var Bh=X(ll=>{"use strict";Object.defineProperty(ll,"__esModule",{value:!0});ll.TextDocuments=void 0;var qi=ft(),Hh=class{constructor(e){this._configuration=e,this._syncedDocuments=new Map,this._onDidChangeContent=new qi.Emitter,this._onDidOpen=new qi.Emitter,this._onDidClose=new qi.Emitter,this._onDidSave=new qi.Emitter,this._onWillSave=new qi.Emitter}get onDidOpen(){return this._onDidOpen.event}get onDidChangeContent(){return this._onDidChangeContent.event}get onWillSave(){return this._onWillSave.event}onWillSaveWaitUntil(e){this._willSaveWaitUntil=e}get onDidSave(){return this._onDidSave.event}get onDidClose(){return this._onDidClose.event}get(e){return this._syncedDocuments.get(e)}all(){return Array.from(this._syncedDocuments.values())}keys(){return Array.from(this._syncedDocuments.keys())}listen(e){e.__textDocumentSync=qi.TextDocumentSyncKind.Incremental;let n=[];return n.push(e.onDidOpenTextDocument(r=>{let i=r.textDocument,o=this._configuration.create(i.uri,i.languageId,i.version,i.text);this._syncedDocuments.set(i.uri,o);let s=Object.freeze({document:o});this._onDidOpen.fire(s),this._onDidChangeContent.fire(s)})),n.push(e.onDidChangeTextDocument(r=>{let i=r.textDocument,o=r.contentChanges;if(o.length===0)return;let{version:s}=i;if(s==null)throw new Error(`Received document change event for ${i.uri} without valid version identifier`);let l=this._syncedDocuments.get(i.uri);l!==void 0&&(l=this._configuration.update(l,o,s),this._syncedDocuments.set(i.uri,l),this._onDidChangeContent.fire(Object.freeze({document:l})))})),n.push(e.onDidCloseTextDocument(r=>{let i=this._syncedDocuments.get(r.textDocument.uri);i!==void 0&&(this._syncedDocuments.delete(r.textDocument.uri),this._onDidClose.fire(Object.freeze({document:i})))})),n.push(e.onWillSaveTextDocument(r=>{let i=this._syncedDocuments.get(r.textDocument.uri);i!==void 0&&this._onWillSave.fire(Object.freeze({document:i,reason:r.reason}))})),n.push(e.onWillSaveTextDocumentWaitUntil((r,i)=>{let o=this._syncedDocuments.get(r.textDocument.uri);return o!==void 0&&this._willSaveWaitUntil?this._willSaveWaitUntil(Object.freeze({document:o,reason:r.reason}),i):[]})),n.push(e.onDidSaveTextDocument(r=>{let i=this._syncedDocuments.get(r.textDocument.uri);i!==void 0&&this._onDidSave.fire(Object.freeze({document:i}))})),qi.Disposable.create(()=>{n.forEach(r=>r.dispose())})}};ll.TextDocuments=Hh});var Vh=X(Co=>{"use strict";Object.defineProperty(Co,"__esModule",{value:!0});Co.NotebookDocuments=Co.NotebookSyncFeature=void 0;var fn=ft(),av=Bh(),cE=t=>class extends t{get synchronization(){return{onDidOpenNotebookDocument:e=>this.connection.onNotification(fn.DidOpenNotebookDocumentNotification.type,n=>{e(n)}),onDidChangeNotebookDocument:e=>this.connection.onNotification(fn.DidChangeNotebookDocumentNotification.type,n=>{e(n)}),onDidSaveNotebookDocument:e=>this.connection.onNotification(fn.DidSaveNotebookDocumentNotification.type,n=>{e(n)}),onDidCloseNotebookDocument:e=>this.connection.onNotification(fn.DidCloseNotebookDocumentNotification.type,n=>{e(n)})}}};Co.NotebookSyncFeature=cE;var si=class{onDidOpenTextDocument(e){return this.openHandler=e,fn.Disposable.create(()=>{this.openHandler=void 0})}openTextDocument(e){this.openHandler&&this.openHandler(e)}onDidChangeTextDocument(e){return this.changeHandler=e,fn.Disposable.create(()=>{this.changeHandler=e})}changeTextDocument(e){this.changeHandler&&this.changeHandler(e)}onDidCloseTextDocument(e){return this.closeHandler=e,fn.Disposable.create(()=>{this.closeHandler=void 0})}closeTextDocument(e){this.closeHandler&&this.closeHandler(e)}onWillSaveTextDocument(){return si.NULL_DISPOSE}onWillSaveTextDocumentWaitUntil(){return si.NULL_DISPOSE}onDidSaveTextDocument(){return si.NULL_DISPOSE}};si.NULL_DISPOSE=Object.freeze({dispose:()=>{}});var $h=class{constructor(e){e instanceof av.TextDocuments?this._cellTextDocuments=e:this._cellTextDocuments=new av.TextDocuments(e),this.notebookDocuments=new Map,this.notebookCellMap=new Map,this._onDidOpen=new fn.Emitter,this._onDidChange=new fn.Emitter,this._onDidSave=new fn.Emitter,this._onDidClose=new fn.Emitter}get cellTextDocuments(){return this._cellTextDocuments}getCellTextDocument(e){return this._cellTextDocuments.get(e.document)}getNotebookDocument(e){return this.notebookDocuments.get(e)}getNotebookCell(e){let n=this.notebookCellMap.get(e);return n&&n[0]}findNotebookDocumentForCell(e){let n=typeof e=="string"?e:e.document,r=this.notebookCellMap.get(n);return r&&r[1]}get onDidOpen(){return this._onDidOpen.event}get onDidSave(){return this._onDidSave.event}get onDidChange(){return this._onDidChange.event}get onDidClose(){return this._onDidClose.event}listen(e){let n=new si,r=[];return r.push(this.cellTextDocuments.listen(n)),r.push(e.notebooks.synchronization.onDidOpenNotebookDocument(i=>{this.notebookDocuments.set(i.notebookDocument.uri,i.notebookDocument);for(let o of i.cellTextDocuments)n.openTextDocument({textDocument:o});this.updateCellMap(i.notebookDocument),this._onDidOpen.fire(i.notebookDocument)})),r.push(e.notebooks.synchronization.onDidChangeNotebookDocument(i=>{let o=this.notebookDocuments.get(i.notebookDocument.uri);if(o===void 0)return;o.version=i.notebookDocument.version;let s=o.metadata,l=!1,a=i.change;a.metadata!==void 0&&(l=!0,o.metadata=a.metadata);let c=[],u=[],d=[],h=[];if(a.cells!==void 0){let _=a.cells;if(_.structure!==void 0){let f=_.structure.array;if(o.cells.splice(f.start,f.deleteCount,...f.cells!==void 0?f.cells:[]),_.structure.didOpen!==void 0)for(let g of _.structure.didOpen)n.openTextDocument({textDocument:g}),c.push(g.uri);if(_.structure.didClose)for(let g of _.structure.didClose)n.closeTextDocument({textDocument:g}),u.push(g.uri)}if(_.data!==void 0){let f=new Map(_.data.map(g=>[g.document,g]));for(let g=0;g<=o.cells.length;g++){let D=f.get(o.cells[g].document);if(D!==void 0){let L=o.cells.splice(g,1,D);if(d.push({old:L[0],new:D}),f.delete(D.document),f.size===0)break}}}if(_.textContent!==void 0)for(let f of _.textContent)n.changeTextDocument({textDocument:f.document,contentChanges:f.changes}),h.push(f.document.uri)}this.updateCellMap(o);let p={notebookDocument:o};l&&(p.metadata={old:s,new:o.metadata});let w=[];for(let _ of c)w.push(this.getNotebookCell(_));let v=[];for(let _ of u)v.push(this.getNotebookCell(_));let x=[];for(let _ of h)x.push(this.getNotebookCell(_));(w.length>0||v.length>0||d.length>0||x.length>0)&&(p.cells={added:w,removed:v,changed:{data:d,textContent:x}}),(p.metadata!==void 0||p.cells!==void 0)&&this._onDidChange.fire(p)})),r.push(e.notebooks.synchronization.onDidSaveNotebookDocument(i=>{let o=this.notebookDocuments.get(i.notebookDocument.uri);o!==void 0&&this._onDidSave.fire(o)})),r.push(e.notebooks.synchronization.onDidCloseNotebookDocument(i=>{let o=this.notebookDocuments.get(i.notebookDocument.uri);if(o!==void 0){this._onDidClose.fire(o);for(let s of i.cellTextDocuments)n.closeTextDocument({textDocument:s});this.notebookDocuments.delete(i.notebookDocument.uri);for(let s of o.cells)this.notebookCellMap.delete(s.document)}})),fn.Disposable.create(()=>{r.forEach(i=>i.dispose())})}updateCellMap(e){for(let n of e.cells)this.notebookCellMap.set(n.document,[n,e])}};Co.NotebookDocuments=$h});var Kh=X(Tt=>{"use strict";Object.defineProperty(Tt,"__esModule",{value:!0});Tt.thenable=Tt.typedArray=Tt.stringArray=Tt.array=Tt.func=Tt.error=Tt.number=Tt.string=Tt.boolean=void 0;function uE(t){return t===!0||t===!1}Tt.boolean=uE;function lv(t){return typeof t=="string"||t instanceof String}Tt.string=lv;function dE(t){return typeof t=="number"||t instanceof Number}Tt.number=dE;function hE(t){return t instanceof Error}Tt.error=hE;function cv(t){return typeof t=="function"}Tt.func=cv;function uv(t){return Array.isArray(t)}Tt.array=uv;function pE(t){return uv(t)&&t.every(e=>lv(e))}Tt.stringArray=pE;function mE(t,e){return Array.isArray(t)&&t.every(e)}Tt.typedArray=mE;function fE(t){return t&&cv(t.then)}Tt.thenable=fE});var Gh=X(gn=>{"use strict";Object.defineProperty(gn,"__esModule",{value:!0});gn.generateUuid=gn.parse=gn.isUUID=gn.v4=gn.empty=void 0;var Ws=class{constructor(e){this._value=e}asHex(){return this._value}equals(e){return this.asHex()===e.asHex()}},Me=class extends Ws{constructor(){super([Me._randomHex(),Me._randomHex(),Me._randomHex(),Me._randomHex(),Me._randomHex(),Me._randomHex(),Me._randomHex(),Me._randomHex(),"-",Me._randomHex(),Me._randomHex(),Me._randomHex(),Me._randomHex(),"-","4",Me._randomHex(),Me._randomHex(),Me._randomHex(),"-",Me._oneOf(Me._timeHighBits),Me._randomHex(),Me._randomHex(),Me._randomHex(),"-",Me._randomHex(),Me._randomHex(),Me._randomHex(),Me._randomHex(),Me._randomHex(),Me._randomHex(),Me._randomHex(),Me._randomHex(),Me._randomHex(),Me._randomHex(),Me._randomHex(),Me._randomHex()].join(""))}static _oneOf(e){return e[Math.floor(e.length*Math.random())]}static _randomHex(){return Me._oneOf(Me._chars)}};Me._chars=["0","1","2","3","4","5","6","6","7","8","9","a","b","c","d","e","f"];Me._timeHighBits=["8","9","a","b"];gn.empty=new Ws("00000000-0000-0000-0000-000000000000");function dv(){return new Me}gn.v4=dv;var gE=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;function hv(t){return gE.test(t)}gn.isUUID=hv;function bE(t){if(!hv(t))throw new Error("invalid uuid");return new Ws(t)}gn.parse=bE;function vE(){return dv().asHex()}gn.generateUuid=vE});var pv=X(li=>{"use strict";Object.defineProperty(li,"__esModule",{value:!0});li.attachPartialResult=li.ProgressFeature=li.attachWorkDone=void 0;var ai=ft(),wE=Gh(),ir=class{constructor(e,n){this._connection=e,this._token=n,ir.Instances.set(this._token,this)}begin(e,n,r,i){let o={kind:"begin",title:e,percentage:n,message:r,cancellable:i};this._connection.sendProgress(ai.WorkDoneProgress.type,this._token,o)}report(e,n){let r={kind:"report"};typeof e=="number"?(r.percentage=e,n!==void 0&&(r.message=n)):r.message=e,this._connection.sendProgress(ai.WorkDoneProgress.type,this._token,r)}done(){ir.Instances.delete(this._token),this._connection.sendProgress(ai.WorkDoneProgress.type,this._token,{kind:"end"})}};ir.Instances=new Map;var cl=class extends ir{constructor(e,n){super(e,n),this._source=new ai.CancellationTokenSource}get token(){return this._source.token}done(){this._source.dispose(),super.done()}cancel(){this._source.cancel()}},qs=class{constructor(){}begin(){}report(){}done(){}},ul=class extends qs{constructor(){super(),this._source=new ai.CancellationTokenSource}get token(){return this._source.token}done(){this._source.dispose()}cancel(){this._source.cancel()}};function yE(t,e){if(e===void 0||e.workDoneToken===void 0)return new qs;let n=e.workDoneToken;return delete e.workDoneToken,new ir(t,n)}li.attachWorkDone=yE;var _E=t=>class extends t{constructor(){super(),this._progressSupported=!1}initialize(e){super.initialize(e),e?.window?.workDoneProgress===!0&&(this._progressSupported=!0,this.connection.onNotification(ai.WorkDoneProgressCancelNotification.type,n=>{let r=ir.Instances.get(n.token);(r instanceof cl||r instanceof ul)&&r.cancel()}))}attachWorkDoneProgress(e){return e===void 0?new qs:new ir(this.connection,e)}createWorkDoneProgress(){if(this._progressSupported){let e=(0,wE.generateUuid)();return this.connection.sendRequest(ai.WorkDoneProgressCreateRequest.type,{token:e}).then(()=>new cl(this.connection,e))}else return Promise.resolve(new ul)}};li.ProgressFeature=_E;var Jh;(function(t){t.type=new ai.ProgressType})(Jh||(Jh={}));var Xh=class{constructor(e,n){this._connection=e,this._token=n}report(e){this._connection.sendProgress(Jh.type,this._token,e)}};function SE(t,e){if(e===void 0||e.partialResultToken===void 0)return;let n=e.partialResultToken;return delete e.partialResultToken,new Xh(t,n)}li.attachPartialResult=SE});var mv=X(dl=>{"use strict";Object.defineProperty(dl,"__esModule",{value:!0});dl.ConfigurationFeature=void 0;var xE=ft(),kE=Kh(),CE=t=>class extends t{getConfiguration(e){return e?kE.string(e)?this._getConfiguration({section:e}):this._getConfiguration(e):this._getConfiguration({})}_getConfiguration(e){let n={items:Array.isArray(e)?e:[e]};return this.connection.sendRequest(xE.ConfigurationRequest.type,n).then(r=>Array.isArray(r)?Array.isArray(e)?r:r[0]:Array.isArray(e)?[]:null)}};dl.ConfigurationFeature=CE});var fv=X(pl=>{"use strict";Object.defineProperty(pl,"__esModule",{value:!0});pl.WorkspaceFoldersFeature=void 0;var hl=ft(),TE=t=>class extends t{constructor(){super(),this._notificationIsAutoRegistered=!1}initialize(e){super.initialize(e);let n=e.workspace;n&&n.workspaceFolders&&(this._onDidChangeWorkspaceFolders=new hl.Emitter,this.connection.onNotification(hl.DidChangeWorkspaceFoldersNotification.type,r=>{this._onDidChangeWorkspaceFolders.fire(r.event)}))}fillServerCapabilities(e){super.fillServerCapabilities(e);let n=e.workspace?.workspaceFolders?.changeNotifications;this._notificationIsAutoRegistered=n===!0||typeof n=="string"}getWorkspaceFolders(){return this.connection.sendRequest(hl.WorkspaceFoldersRequest.type)}get onDidChangeWorkspaceFolders(){if(!this._onDidChangeWorkspaceFolders)throw new Error("Client doesn't support sending workspace folder change events.");return!this._notificationIsAutoRegistered&&!this._unregistration&&(this._unregistration=this.connection.client.register(hl.DidChangeWorkspaceFoldersNotification.type)),this._onDidChangeWorkspaceFolders.event}};pl.WorkspaceFoldersFeature=TE});var gv=X(ml=>{"use strict";Object.defineProperty(ml,"__esModule",{value:!0});ml.CallHierarchyFeature=void 0;var Qh=ft(),EE=t=>class extends t{get callHierarchy(){return{onPrepare:e=>this.connection.onRequest(Qh.CallHierarchyPrepareRequest.type,(n,r)=>e(n,r,this.attachWorkDoneProgress(n),void 0)),onIncomingCalls:e=>{let n=Qh.CallHierarchyIncomingCallsRequest.type;return this.connection.onRequest(n,(r,i)=>e(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))},onOutgoingCalls:e=>{let n=Qh.CallHierarchyOutgoingCallsRequest.type;return this.connection.onRequest(n,(r,i)=>e(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))}}}};ml.CallHierarchyFeature=EE});var bv=X(fl=>{"use strict";Object.defineProperty(fl,"__esModule",{value:!0});fl.ShowDocumentFeature=void 0;var DE=ft(),FE=t=>class extends t{showDocument(e){return this.connection.sendRequest(DE.ShowDocumentRequest.type,e)}};fl.ShowDocumentFeature=FE});var vv=X(gl=>{"use strict";Object.defineProperty(gl,"__esModule",{value:!0});gl.FileOperationsFeature=void 0;var To=ft(),AE=t=>class extends t{onDidCreateFiles(e){return this.connection.onNotification(To.DidCreateFilesNotification.type,n=>{e(n)})}onDidRenameFiles(e){return this.connection.onNotification(To.DidRenameFilesNotification.type,n=>{e(n)})}onDidDeleteFiles(e){return this.connection.onNotification(To.DidDeleteFilesNotification.type,n=>{e(n)})}onWillCreateFiles(e){return this.connection.onRequest(To.WillCreateFilesRequest.type,(n,r)=>e(n,r))}onWillRenameFiles(e){return this.connection.onRequest(To.WillRenameFilesRequest.type,(n,r)=>e(n,r))}onWillDeleteFiles(e){return this.connection.onRequest(To.WillDeleteFilesRequest.type,(n,r)=>e(n,r))}};gl.FileOperationsFeature=AE});var wv=X(bl=>{"use strict";Object.defineProperty(bl,"__esModule",{value:!0});bl.LinkedEditingRangeFeature=void 0;var RE=ft(),IE=t=>class extends t{onLinkedEditingRange(e){return this.connection.onRequest(RE.LinkedEditingRangeRequest.type,(n,r)=>e(n,r,this.attachWorkDoneProgress(n),void 0))}};bl.LinkedEditingRangeFeature=IE});var yv=X(vl=>{"use strict";Object.defineProperty(vl,"__esModule",{value:!0});vl.TypeHierarchyFeature=void 0;var Yh=ft(),ME=t=>class extends t{get typeHierarchy(){return{onPrepare:e=>this.connection.onRequest(Yh.TypeHierarchyPrepareRequest.type,(n,r)=>e(n,r,this.attachWorkDoneProgress(n),void 0)),onSupertypes:e=>{let n=Yh.TypeHierarchySupertypesRequest.type;return this.connection.onRequest(n,(r,i)=>e(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))},onSubtypes:e=>{let n=Yh.TypeHierarchySubtypesRequest.type;return this.connection.onRequest(n,(r,i)=>e(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))}}}};vl.TypeHierarchyFeature=ME});var Sv=X(wl=>{"use strict";Object.defineProperty(wl,"__esModule",{value:!0});wl.InlineValueFeature=void 0;var _v=ft(),PE=t=>class extends t{get inlineValue(){return{refresh:()=>this.connection.sendRequest(_v.InlineValueRefreshRequest.type),on:e=>this.connection.onRequest(_v.InlineValueRequest.type,(n,r)=>e(n,r,this.attachWorkDoneProgress(n)))}}};wl.InlineValueFeature=PE});var xv=X(yl=>{"use strict";Object.defineProperty(yl,"__esModule",{value:!0});yl.InlayHintFeature=void 0;var Zh=ft(),zE=t=>class extends t{get inlayHint(){return{refresh:()=>this.connection.sendRequest(Zh.InlayHintRefreshRequest.type),on:e=>this.connection.onRequest(Zh.InlayHintRequest.type,(n,r)=>e(n,r,this.attachWorkDoneProgress(n))),resolve:e=>this.connection.onRequest(Zh.InlayHintResolveRequest.type,(n,r)=>e(n,r))}}};yl.InlayHintFeature=zE});var kv=X(_l=>{"use strict";Object.defineProperty(_l,"__esModule",{value:!0});_l.DiagnosticFeature=void 0;var Us=ft(),OE=t=>class extends t{get diagnostics(){return{refresh:()=>this.connection.sendRequest(Us.DiagnosticRefreshRequest.type),on:e=>this.connection.onRequest(Us.DocumentDiagnosticRequest.type,(n,r)=>e(n,r,this.attachWorkDoneProgress(n),this.attachPartialResultProgress(Us.DocumentDiagnosticRequest.partialResult,n))),onWorkspace:e=>this.connection.onRequest(Us.WorkspaceDiagnosticRequest.type,(n,r)=>e(n,r,this.attachWorkDoneProgress(n),this.attachPartialResultProgress(Us.WorkspaceDiagnosticRequest.partialResult,n)))}}};_l.DiagnosticFeature=OE});var Cv=X(Sl=>{"use strict";Object.defineProperty(Sl,"__esModule",{value:!0});Sl.MonikerFeature=void 0;var LE=ft(),NE=t=>class extends t{get moniker(){return{on:e=>{let n=LE.MonikerRequest.type;return this.connection.onRequest(n,(r,i)=>e(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))}}}};Sl.MonikerFeature=NE});var Nv=X(Ne=>{"use strict";Object.defineProperty(Ne,"__esModule",{value:!0});Ne.createConnection=Ne.combineFeatures=Ne.combineNotebooksFeatures=Ne.combineLanguagesFeatures=Ne.combineWorkspaceFeatures=Ne.combineWindowFeatures=Ne.combineClientFeatures=Ne.combineTracerFeatures=Ne.combineTelemetryFeatures=Ne.combineConsoleFeatures=Ne._NotebooksImpl=Ne._LanguagesImpl=Ne.BulkUnregistration=Ne.BulkRegistration=Ne.ErrorMessageTracker=void 0;var me=ft(),bn=Kh(),tp=Gh(),Ee=pv(),WE=mv(),qE=fv(),UE=gv(),jE=jh(),HE=bv(),BE=vv(),$E=wv(),VE=yv(),KE=Sv(),GE=xv(),JE=kv(),XE=Vh(),QE=Cv();function ep(t){if(t!==null)return t}var np=class{constructor(){this._messages=Object.create(null)}add(e){let n=this._messages[e];n||(n=0),n++,this._messages[e]=n}sendErrors(e){Object.keys(this._messages).forEach(n=>{e.window.showErrorMessage(n)})}};Ne.ErrorMessageTracker=np;var xl=class{constructor(){}rawAttach(e){this._rawConnection=e}attach(e){this._connection=e}get connection(){if(!this._connection)throw new Error("Remote is not attached to a connection yet.");return this._connection}fillServerCapabilities(e){}initialize(e){}error(e){this.send(me.MessageType.Error,e)}warn(e){this.send(me.MessageType.Warning,e)}info(e){this.send(me.MessageType.Info,e)}log(e){this.send(me.MessageType.Log,e)}send(e,n){this._rawConnection&&this._rawConnection.sendNotification(me.LogMessageNotification.type,{type:e,message:n}).catch(()=>{(0,me.RAL)().console.error("Sending log message failed")})}},rp=class{constructor(){}attach(e){this._connection=e}get connection(){if(!this._connection)throw new Error("Remote is not attached to a connection yet.");return this._connection}initialize(e){}fillServerCapabilities(e){}showErrorMessage(e,...n){let r={type:me.MessageType.Error,message:e,actions:n};return this.connection.sendRequest(me.ShowMessageRequest.type,r).then(ep)}showWarningMessage(e,...n){let r={type:me.MessageType.Warning,message:e,actions:n};return this.connection.sendRequest(me.ShowMessageRequest.type,r).then(ep)}showInformationMessage(e,...n){let r={type:me.MessageType.Info,message:e,actions:n};return this.connection.sendRequest(me.ShowMessageRequest.type,r).then(ep)}},Tv=(0,HE.ShowDocumentFeature)((0,Ee.ProgressFeature)(rp)),YE;(function(t){function e(){return new kl}t.create=e})(YE=Ne.BulkRegistration||(Ne.BulkRegistration={}));var kl=class{constructor(){this._registrations=[],this._registered=new Set}add(e,n){let r=bn.string(e)?e:e.method;if(this._registered.has(r))throw new Error(`${r} is already added to this registration`);let i=tp.generateUuid();this._registrations.push({id:i,method:r,registerOptions:n||{}}),this._registered.add(r)}asRegistrationParams(){return{registrations:this._registrations}}},ZE;(function(t){function e(){return new js(void 0,[])}t.create=e})(ZE=Ne.BulkUnregistration||(Ne.BulkUnregistration={}));var js=class{constructor(e,n){this._connection=e,this._unregistrations=new Map,n.forEach(r=>{this._unregistrations.set(r.method,r)})}get isAttached(){return!!this._connection}attach(e){this._connection=e}add(e){this._unregistrations.set(e.method,e)}dispose(){let e=[];for(let r of this._unregistrations.values())e.push(r);let n={unregisterations:e};this._connection.sendRequest(me.UnregistrationRequest.type,n).catch(()=>{this._connection.console.info("Bulk unregistration failed.")})}disposeSingle(e){let n=bn.string(e)?e:e.method,r=this._unregistrations.get(n);if(!r)return!1;let i={unregisterations:[r]};return this._connection.sendRequest(me.UnregistrationRequest.type,i).then(()=>{this._unregistrations.delete(n)},o=>{this._connection.console.info(`Un-registering request handler for ${r.id} failed.`)}),!0}},Cl=class{attach(e){this._connection=e}get connection(){if(!this._connection)throw new Error("Remote is not attached to a connection yet.");return this._connection}initialize(e){}fillServerCapabilities(e){}register(e,n,r){return e instanceof kl?this.registerMany(e):e instanceof js?this.registerSingle1(e,n,r):this.registerSingle2(e,n)}registerSingle1(e,n,r){let i=bn.string(n)?n:n.method,o=tp.generateUuid(),s={registrations:[{id:o,method:i,registerOptions:r||{}}]};return e.isAttached||e.attach(this.connection),this.connection.sendRequest(me.RegistrationRequest.type,s).then(l=>(e.add({id:o,method:i}),e),l=>(this.connection.console.info(`Registering request handler for ${i} failed.`),Promise.reject(l)))}registerSingle2(e,n){let r=bn.string(e)?e:e.method,i=tp.generateUuid(),o={registrations:[{id:i,method:r,registerOptions:n||{}}]};return this.connection.sendRequest(me.RegistrationRequest.type,o).then(s=>me.Disposable.create(()=>{this.unregisterSingle(i,r).catch(()=>{this.connection.console.info(`Un-registering capability with id ${i} failed.`)})}),s=>(this.connection.console.info(`Registering request handler for ${r} failed.`),Promise.reject(s)))}unregisterSingle(e,n){let r={unregisterations:[{id:e,method:n}]};return this.connection.sendRequest(me.UnregistrationRequest.type,r).catch(()=>{this.connection.console.info(`Un-registering request handler for ${e} failed.`)})}registerMany(e){let n=e.asRegistrationParams();return this.connection.sendRequest(me.RegistrationRequest.type,n).then(()=>new js(this._connection,n.registrations.map(r=>({id:r.id,method:r.method}))),r=>(this.connection.console.info("Bulk registration failed."),Promise.reject(r)))}},ip=class{constructor(){}attach(e){this._connection=e}get connection(){if(!this._connection)throw new Error("Remote is not attached to a connection yet.");return this._connection}initialize(e){}fillServerCapabilities(e){}applyEdit(e){function n(i){return i&&!!i.edit}let r=n(e)?e:{edit:e};return this.connection.sendRequest(me.ApplyWorkspaceEditRequest.type,r)}},Ev=(0,BE.FileOperationsFeature)((0,qE.WorkspaceFoldersFeature)((0,WE.ConfigurationFeature)(ip))),Tl=class{constructor(){this._trace=me.Trace.Off}attach(e){this._connection=e}get connection(){if(!this._connection)throw new Error("Remote is not attached to a connection yet.");return this._connection}initialize(e){}fillServerCapabilities(e){}set trace(e){this._trace=e}log(e,n){this._trace!==me.Trace.Off&&this.connection.sendNotification(me.LogTraceNotification.type,{message:e,verbose:this._trace===me.Trace.Verbose?n:void 0}).catch(()=>{})}},El=class{constructor(){}attach(e){this._connection=e}get connection(){if(!this._connection)throw new Error("Remote is not attached to a connection yet.");return this._connection}initialize(e){}fillServerCapabilities(e){}logEvent(e){this.connection.sendNotification(me.TelemetryEventNotification.type,e).catch(()=>{this.connection.console.log("Sending TelemetryEventNotification failed")})}},Dl=class{constructor(){}attach(e){this._connection=e}get connection(){if(!this._connection)throw new Error("Remote is not attached to a connection yet.");return this._connection}initialize(e){}fillServerCapabilities(e){}attachWorkDoneProgress(e){return(0,Ee.attachWorkDone)(this.connection,e)}attachPartialResultProgress(e,n){return(0,Ee.attachPartialResult)(this.connection,n)}};Ne._LanguagesImpl=Dl;var Dv=(0,QE.MonikerFeature)((0,JE.DiagnosticFeature)((0,GE.InlayHintFeature)((0,KE.InlineValueFeature)((0,VE.TypeHierarchyFeature)((0,$E.LinkedEditingRangeFeature)((0,jE.SemanticTokensFeature)((0,UE.CallHierarchyFeature)(Dl)))))))),Fl=class{constructor(){}attach(e){this._connection=e}get connection(){if(!this._connection)throw new Error("Remote is not attached to a connection yet.");return this._connection}initialize(e){}fillServerCapabilities(e){}attachWorkDoneProgress(e){return(0,Ee.attachWorkDone)(this.connection,e)}attachPartialResultProgress(e,n){return(0,Ee.attachPartialResult)(this.connection,n)}};Ne._NotebooksImpl=Fl;var Fv=(0,XE.NotebookSyncFeature)(Fl);function Av(t,e){return function(n){return e(t(n))}}Ne.combineConsoleFeatures=Av;function Rv(t,e){return function(n){return e(t(n))}}Ne.combineTelemetryFeatures=Rv;function Iv(t,e){return function(n){return e(t(n))}}Ne.combineTracerFeatures=Iv;function Mv(t,e){return function(n){return e(t(n))}}Ne.combineClientFeatures=Mv;function Pv(t,e){return function(n){return e(t(n))}}Ne.combineWindowFeatures=Pv;function zv(t,e){return function(n){return e(t(n))}}Ne.combineWorkspaceFeatures=zv;function Ov(t,e){return function(n){return e(t(n))}}Ne.combineLanguagesFeatures=Ov;function Lv(t,e){return function(n){return e(t(n))}}Ne.combineNotebooksFeatures=Lv;function e2(t,e){function n(i,o,s){return i&&o?s(i,o):i||o}return{__brand:"features",console:n(t.console,e.console,Av),tracer:n(t.tracer,e.tracer,Iv),telemetry:n(t.telemetry,e.telemetry,Rv),client:n(t.client,e.client,Mv),window:n(t.window,e.window,Pv),workspace:n(t.workspace,e.workspace,zv),languages:n(t.languages,e.languages,Ov),notebooks:n(t.notebooks,e.notebooks,Lv)}}Ne.combineFeatures=e2;function t2(t,e,n){let r=n&&n.console?new(n.console(xl)):new xl,i=t(r);r.rawAttach(i);let o=n&&n.tracer?new(n.tracer(Tl)):new Tl,s=n&&n.telemetry?new(n.telemetry(El)):new El,l=n&&n.client?new(n.client(Cl)):new Cl,a=n&&n.window?new(n.window(Tv)):new Tv,c=n&&n.workspace?new(n.workspace(Ev)):new Ev,u=n&&n.languages?new(n.languages(Dv)):new Dv,d=n&&n.notebooks?new(n.notebooks(Fv)):new Fv,h=[r,o,s,l,a,c,u,d];function p(f){return f instanceof Promise?f:bn.thenable(f)?new Promise((g,D)=>{f.then(L=>g(L),L=>D(L))}):Promise.resolve(f)}let w,v,x,_={listen:()=>i.listen(),sendRequest:(f,...g)=>i.sendRequest(bn.string(f)?f:f.method,...g),onRequest:(f,g)=>i.onRequest(f,g),sendNotification:(f,g)=>{let D=bn.string(f)?f:f.method;return arguments.length===1?i.sendNotification(D):i.sendNotification(D,g)},onNotification:(f,g)=>i.onNotification(f,g),onProgress:i.onProgress,sendProgress:i.sendProgress,onInitialize:f=>(v=f,{dispose:()=>{v=void 0}}),onInitialized:f=>i.onNotification(me.InitializedNotification.type,f),onShutdown:f=>(w=f,{dispose:()=>{w=void 0}}),onExit:f=>(x=f,{dispose:()=>{x=void 0}}),get console(){return r},get telemetry(){return s},get tracer(){return o},get client(){return l},get window(){return a},get workspace(){return c},get languages(){return u},get notebooks(){return d},onDidChangeConfiguration:f=>i.onNotification(me.DidChangeConfigurationNotification.type,f),onDidChangeWatchedFiles:f=>i.onNotification(me.DidChangeWatchedFilesNotification.type,f),__textDocumentSync:void 0,onDidOpenTextDocument:f=>i.onNotification(me.DidOpenTextDocumentNotification.type,f),onDidChangeTextDocument:f=>i.onNotification(me.DidChangeTextDocumentNotification.type,f),onDidCloseTextDocument:f=>i.onNotification(me.DidCloseTextDocumentNotification.type,f),onWillSaveTextDocument:f=>i.onNotification(me.WillSaveTextDocumentNotification.type,f),onWillSaveTextDocumentWaitUntil:f=>i.onRequest(me.WillSaveTextDocumentWaitUntilRequest.type,f),onDidSaveTextDocument:f=>i.onNotification(me.DidSaveTextDocumentNotification.type,f),sendDiagnostics:f=>i.sendNotification(me.PublishDiagnosticsNotification.type,f),onHover:f=>i.onRequest(me.HoverRequest.type,(g,D)=>f(g,D,(0,Ee.attachWorkDone)(i,g),void 0)),onCompletion:f=>i.onRequest(me.CompletionRequest.type,(g,D)=>f(g,D,(0,Ee.attachWorkDone)(i,g),(0,Ee.attachPartialResult)(i,g))),onCompletionResolve:f=>i.onRequest(me.CompletionResolveRequest.type,f),onSignatureHelp:f=>i.onRequest(me.SignatureHelpRequest.type,(g,D)=>f(g,D,(0,Ee.attachWorkDone)(i,g),void 0)),onDeclaration:f=>i.onRequest(me.DeclarationRequest.type,(g,D)=>f(g,D,(0,Ee.attachWorkDone)(i,g),(0,Ee.attachPartialResult)(i,g))),onDefinition:f=>i.onRequest(me.DefinitionRequest.type,(g,D)=>f(g,D,(0,Ee.attachWorkDone)(i,g),(0,Ee.attachPartialResult)(i,g))),onTypeDefinition:f=>i.onRequest(me.TypeDefinitionRequest.type,(g,D)=>f(g,D,(0,Ee.attachWorkDone)(i,g),(0,Ee.attachPartialResult)(i,g))),onImplementation:f=>i.onRequest(me.ImplementationRequest.type,(g,D)=>f(g,D,(0,Ee.attachWorkDone)(i,g),(0,Ee.attachPartialResult)(i,g))),onReferences:f=>i.onRequest(me.ReferencesRequest.type,(g,D)=>f(g,D,(0,Ee.attachWorkDone)(i,g),(0,Ee.attachPartialResult)(i,g))),onDocumentHighlight:f=>i.onRequest(me.DocumentHighlightRequest.type,(g,D)=>f(g,D,(0,Ee.attachWorkDone)(i,g),(0,Ee.attachPartialResult)(i,g))),onDocumentSymbol:f=>i.onRequest(me.DocumentSymbolRequest.type,(g,D)=>f(g,D,(0,Ee.attachWorkDone)(i,g),(0,Ee.attachPartialResult)(i,g))),onWorkspaceSymbol:f=>i.onRequest(me.WorkspaceSymbolRequest.type,(g,D)=>f(g,D,(0,Ee.attachWorkDone)(i,g),(0,Ee.attachPartialResult)(i,g))),onWorkspaceSymbolResolve:f=>i.onRequest(me.WorkspaceSymbolResolveRequest.type,f),onCodeAction:f=>i.onRequest(me.CodeActionRequest.type,(g,D)=>f(g,D,(0,Ee.attachWorkDone)(i,g),(0,Ee.attachPartialResult)(i,g))),onCodeActionResolve:f=>i.onRequest(me.CodeActionResolveRequest.type,(g,D)=>f(g,D)),onCodeLens:f=>i.onRequest(me.CodeLensRequest.type,(g,D)=>f(g,D,(0,Ee.attachWorkDone)(i,g),(0,Ee.attachPartialResult)(i,g))),onCodeLensResolve:f=>i.onRequest(me.CodeLensResolveRequest.type,(g,D)=>f(g,D)),onDocumentFormatting:f=>i.onRequest(me.DocumentFormattingRequest.type,(g,D)=>f(g,D,(0,Ee.attachWorkDone)(i,g),void 0)),onDocumentRangeFormatting:f=>i.onRequest(me.DocumentRangeFormattingRequest.type,(g,D)=>f(g,D,(0,Ee.attachWorkDone)(i,g),void 0)),onDocumentOnTypeFormatting:f=>i.onRequest(me.DocumentOnTypeFormattingRequest.type,(g,D)=>f(g,D)),onRenameRequest:f=>i.onRequest(me.RenameRequest.type,(g,D)=>f(g,D,(0,Ee.attachWorkDone)(i,g),void 0)),onPrepareRename:f=>i.onRequest(me.PrepareRenameRequest.type,(g,D)=>f(g,D)),onDocumentLinks:f=>i.onRequest(me.DocumentLinkRequest.type,(g,D)=>f(g,D,(0,Ee.attachWorkDone)(i,g),(0,Ee.attachPartialResult)(i,g))),onDocumentLinkResolve:f=>i.onRequest(me.DocumentLinkResolveRequest.type,(g,D)=>f(g,D)),onDocumentColor:f=>i.onRequest(me.DocumentColorRequest.type,(g,D)=>f(g,D,(0,Ee.attachWorkDone)(i,g),(0,Ee.attachPartialResult)(i,g))),onColorPresentation:f=>i.onRequest(me.ColorPresentationRequest.type,(g,D)=>f(g,D,(0,Ee.attachWorkDone)(i,g),(0,Ee.attachPartialResult)(i,g))),onFoldingRanges:f=>i.onRequest(me.FoldingRangeRequest.type,(g,D)=>f(g,D,(0,Ee.attachWorkDone)(i,g),(0,Ee.attachPartialResult)(i,g))),onSelectionRanges:f=>i.onRequest(me.SelectionRangeRequest.type,(g,D)=>f(g,D,(0,Ee.attachWorkDone)(i,g),(0,Ee.attachPartialResult)(i,g))),onExecuteCommand:f=>i.onRequest(me.ExecuteCommandRequest.type,(g,D)=>f(g,D,(0,Ee.attachWorkDone)(i,g),void 0)),dispose:()=>i.dispose()};for(let f of h)f.attach(_);return i.onRequest(me.InitializeRequest.type,f=>{e.initialize(f),bn.string(f.trace)&&(o.trace=me.Trace.fromString(f.trace));for(let g of h)g.initialize(f.capabilities);if(v){let g=v(f,new me.CancellationTokenSource().token,(0,Ee.attachWorkDone)(i,f),void 0);return p(g).then(D=>{if(D instanceof me.ResponseError)return D;let L=D;L||(L={capabilities:{}});let K=L.capabilities;K||(K={},L.capabilities=K),K.textDocumentSync===void 0||K.textDocumentSync===null?K.textDocumentSync=bn.number(_.__textDocumentSync)?_.__textDocumentSync:me.TextDocumentSyncKind.None:!bn.number(K.textDocumentSync)&&!bn.number(K.textDocumentSync.change)&&(K.textDocumentSync.change=bn.number(_.__textDocumentSync)?_.__textDocumentSync:me.TextDocumentSyncKind.None);for(let C of h)C.fillServerCapabilities(K);return L})}else{let g={capabilities:{textDocumentSync:me.TextDocumentSyncKind.None}};for(let D of h)D.fillServerCapabilities(g.capabilities);return g}}),i.onRequest(me.ShutdownRequest.type,()=>{if(e.shutdownReceived=!0,w)return w(new me.CancellationTokenSource().token)}),i.onNotification(me.ExitNotification.type,()=>{try{x&&x()}finally{e.shutdownReceived?e.exit(0):e.exit(1)}}),i.onNotification(me.SetTraceNotification.type,f=>{o.trace=me.Trace.fromString(f.value)}),_}Ne.createConnection=t2});var op=X(qt=>{"use strict";var n2=qt&&qt.__createBinding||(Object.create?function(t,e,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(e,n);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,i)}:function(t,e,n,r){r===void 0&&(r=n),t[r]=e[n]}),Wv=qt&&qt.__exportStar||function(t,e){for(var n in t)n!=="default"&&!Object.prototype.hasOwnProperty.call(e,n)&&n2(e,t,n)};Object.defineProperty(qt,"__esModule",{value:!0});qt.ProposedFeatures=qt.NotebookDocuments=qt.TextDocuments=qt.SemanticTokensBuilder=void 0;var r2=jh();Object.defineProperty(qt,"SemanticTokensBuilder",{enumerable:!0,get:function(){return r2.SemanticTokensBuilder}});Wv(ft(),qt);var i2=Bh();Object.defineProperty(qt,"TextDocuments",{enumerable:!0,get:function(){return i2.TextDocuments}});var o2=Vh();Object.defineProperty(qt,"NotebookDocuments",{enumerable:!0,get:function(){return o2.NotebookDocuments}});Wv(Nv(),qt);var s2;(function(t){t.all={__brand:"features"}})(s2=qt.ProposedFeatures||(qt.ProposedFeatures={}))});var Uv=X((D5,qv)=>{"use strict";qv.exports=ft()});var pt=X(or=>{"use strict";var a2=or&&or.__createBinding||(Object.create?function(t,e,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(e,n);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,i)}:function(t,e,n,r){r===void 0&&(r=n),t[r]=e[n]}),Hv=or&&or.__exportStar||function(t,e){for(var n in t)n!=="default"&&!Object.prototype.hasOwnProperty.call(e,n)&&a2(e,t,n)};Object.defineProperty(or,"__esModule",{value:!0});or.createConnection=void 0;var Al=op();Hv(Uv(),or);Hv(op(),or);var jv=!1,l2={initialize:t=>{},get shutdownReceived(){return jv},set shutdownReceived(t){jv=t},exit:t=>{}};function c2(t,e,n,r){let i,o,s,l;t!==void 0&&t.__brand==="features"&&(i=t,t=e,e=n,n=r),Al.ConnectionStrategy.is(t)||Al.ConnectionOptions.is(t)?l=t:(o=t,s=e,l=n);let a=c=>(0,Al.createProtocolConnection)(o,s,c,l);return(0,Al.createConnection)(a,l2,i)}or.createConnection=c2});var $v=X((A5,Bv)=>{"use strict";Bv.exports=pt()});var Hs=X((R5,Kv)=>{"use strict";function sr(t){if(typeof t!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(t))}function Vv(t,e){for(var n="",r=0,i=-1,o=0,s,l=0;l<=t.length;++l){if(l<t.length)s=t.charCodeAt(l);else{if(s===47)break;s=47}if(s===47){if(!(i===l-1||o===1))if(i!==l-1&&o===2){if(n.length<2||r!==2||n.charCodeAt(n.length-1)!==46||n.charCodeAt(n.length-2)!==46){if(n.length>2){var a=n.lastIndexOf("/");if(a!==n.length-1){a===-1?(n="",r=0):(n=n.slice(0,a),r=n.length-1-n.lastIndexOf("/")),i=l,o=0;continue}}else if(n.length===2||n.length===1){n="",r=0,i=l,o=0;continue}}e&&(n.length>0?n+="/..":n="..",r=2)}else n.length>0?n+="/"+t.slice(i+1,l):n=t.slice(i+1,l),r=l-i-1;i=l,o=0}else s===46&&o!==-1?++o:o=-1}return n}function u2(t,e){var n=e.dir||e.root,r=e.base||(e.name||"")+(e.ext||"");return n?n===e.root?n+r:n+t+r:r}var Eo={resolve:function(){for(var e="",n=!1,r,i=arguments.length-1;i>=-1&&!n;i--){var o;i>=0?o=arguments[i]:(r===void 0&&(r=process.cwd()),o=r),sr(o),o.length!==0&&(e=o+"/"+e,n=o.charCodeAt(0)===47)}return e=Vv(e,!n),n?e.length>0?"/"+e:"/":e.length>0?e:"."},normalize:function(e){if(sr(e),e.length===0)return".";var n=e.charCodeAt(0)===47,r=e.charCodeAt(e.length-1)===47;return e=Vv(e,!n),e.length===0&&!n&&(e="."),e.length>0&&r&&(e+="/"),n?"/"+e:e},isAbsolute:function(e){return sr(e),e.length>0&&e.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var e,n=0;n<arguments.length;++n){var r=arguments[n];sr(r),r.length>0&&(e===void 0?e=r:e+="/"+r)}return e===void 0?".":Eo.normalize(e)},relative:function(e,n){if(sr(e),sr(n),e===n||(e=Eo.resolve(e),n=Eo.resolve(n),e===n))return"";for(var r=1;r<e.length&&e.charCodeAt(r)===47;++r);for(var i=e.length,o=i-r,s=1;s<n.length&&n.charCodeAt(s)===47;++s);for(var l=n.length,a=l-s,c=o<a?o:a,u=-1,d=0;d<=c;++d){if(d===c){if(a>c){if(n.charCodeAt(s+d)===47)return n.slice(s+d+1);if(d===0)return n.slice(s+d)}else o>c&&(e.charCodeAt(r+d)===47?u=d:d===0&&(u=0));break}var h=e.charCodeAt(r+d),p=n.charCodeAt(s+d);if(h!==p)break;h===47&&(u=d)}var w="";for(d=r+u+1;d<=i;++d)(d===i||e.charCodeAt(d)===47)&&(w.length===0?w+="..":w+="/..");return w.length>0?w+n.slice(s+u):(s+=u,n.charCodeAt(s)===47&&++s,n.slice(s))},_makeLong:function(e){return e},dirname:function(e){if(sr(e),e.length===0)return".";for(var n=e.charCodeAt(0),r=n===47,i=-1,o=!0,s=e.length-1;s>=1;--s)if(n=e.charCodeAt(s),n===47){if(!o){i=s;break}}else o=!1;return i===-1?r?"/":".":r&&i===1?"//":e.slice(0,i)},basename:function(e,n){if(n!==void 0&&typeof n!="string")throw new TypeError('"ext" argument must be a string');sr(e);var r=0,i=-1,o=!0,s;if(n!==void 0&&n.length>0&&n.length<=e.length){if(n.length===e.length&&n===e)return"";var l=n.length-1,a=-1;for(s=e.length-1;s>=0;--s){var c=e.charCodeAt(s);if(c===47){if(!o){r=s+1;break}}else a===-1&&(o=!1,a=s+1),l>=0&&(c===n.charCodeAt(l)?--l===-1&&(i=s):(l=-1,i=a))}return r===i?i=a:i===-1&&(i=e.length),e.slice(r,i)}else{for(s=e.length-1;s>=0;--s)if(e.charCodeAt(s)===47){if(!o){r=s+1;break}}else i===-1&&(o=!1,i=s+1);return i===-1?"":e.slice(r,i)}},extname:function(e){sr(e);for(var n=-1,r=0,i=-1,o=!0,s=0,l=e.length-1;l>=0;--l){var a=e.charCodeAt(l);if(a===47){if(!o){r=l+1;break}continue}i===-1&&(o=!1,i=l+1),a===46?n===-1?n=l:s!==1&&(s=1):n!==-1&&(s=-1)}return n===-1||i===-1||s===0||s===1&&n===i-1&&n===r+1?"":e.slice(n,i)},format:function(e){if(e===null||typeof e!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof e);return u2("/",e)},parse:function(e){sr(e);var n={root:"",dir:"",base:"",ext:"",name:""};if(e.length===0)return n;var r=e.charCodeAt(0),i=r===47,o;i?(n.root="/",o=1):o=0;for(var s=-1,l=0,a=-1,c=!0,u=e.length-1,d=0;u>=o;--u){if(r=e.charCodeAt(u),r===47){if(!c){l=u+1;break}continue}a===-1&&(c=!1,a=u+1),r===46?s===-1?s=u:d!==1&&(d=1):s!==-1&&(d=-1)}return s===-1||a===-1||d===0||d===1&&s===a-1&&s===l+1?a!==-1&&(l===0&&i?n.base=n.name=e.slice(1,a):n.base=n.name=e.slice(l,a)):(l===0&&i?(n.name=e.slice(1,s),n.base=e.slice(1,a)):(n.name=e.slice(l,s),n.base=e.slice(l,a)),n.ext=e.slice(s,a)),l>0?n.dir=e.slice(0,l-1):i&&(n.dir="/"),n},sep:"/",delimiter:":",win32:null,posix:null};Eo.posix=Eo;Kv.exports=Eo});var Rl=X((Bs,sp)=>{(function(t,e){if(typeof Bs=="object"&&typeof sp=="object")sp.exports=e();else if(typeof define=="function"&&define.amd)define([],e);else{var n=e();for(var r in n)(typeof Bs=="object"?Bs:t)[r]=n[r]}})(Bs,function(){return(()=>{"use strict";var t={470:n=>{function r(s){if(typeof s!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(s))}function i(s,l){for(var a,c="",u=0,d=-1,h=0,p=0;p<=s.length;++p){if(p<s.length)a=s.charCodeAt(p);else{if(a===47)break;a=47}if(a===47){if(!(d===p-1||h===1))if(d!==p-1&&h===2){if(c.length<2||u!==2||c.charCodeAt(c.length-1)!==46||c.charCodeAt(c.length-2)!==46){if(c.length>2){var w=c.lastIndexOf("/");if(w!==c.length-1){w===-1?(c="",u=0):u=(c=c.slice(0,w)).length-1-c.lastIndexOf("/"),d=p,h=0;continue}}else if(c.length===2||c.length===1){c="",u=0,d=p,h=0;continue}}l&&(c.length>0?c+="/..":c="..",u=2)}else c.length>0?c+="/"+s.slice(d+1,p):c=s.slice(d+1,p),u=p-d-1;d=p,h=0}else a===46&&h!==-1?++h:h=-1}return c}var o={resolve:function(){for(var s,l="",a=!1,c=arguments.length-1;c>=-1&&!a;c--){var u;c>=0?u=arguments[c]:(s===void 0&&(s=process.cwd()),u=s),r(u),u.length!==0&&(l=u+"/"+l,a=u.charCodeAt(0)===47)}return l=i(l,!a),a?l.length>0?"/"+l:"/":l.length>0?l:"."},normalize:function(s){if(r(s),s.length===0)return".";var l=s.charCodeAt(0)===47,a=s.charCodeAt(s.length-1)===47;return(s=i(s,!l)).length!==0||l||(s="."),s.length>0&&a&&(s+="/"),l?"/"+s:s},isAbsolute:function(s){return r(s),s.length>0&&s.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var s,l=0;l<arguments.length;++l){var a=arguments[l];r(a),a.length>0&&(s===void 0?s=a:s+="/"+a)}return s===void 0?".":o.normalize(s)},relative:function(s,l){if(r(s),r(l),s===l||(s=o.resolve(s))===(l=o.resolve(l)))return"";for(var a=1;a<s.length&&s.charCodeAt(a)===47;++a);for(var c=s.length,u=c-a,d=1;d<l.length&&l.charCodeAt(d)===47;++d);for(var h=l.length-d,p=u<h?u:h,w=-1,v=0;v<=p;++v){if(v===p){if(h>p){if(l.charCodeAt(d+v)===47)return l.slice(d+v+1);if(v===0)return l.slice(d+v)}else u>p&&(s.charCodeAt(a+v)===47?w=v:v===0&&(w=0));break}var x=s.charCodeAt(a+v);if(x!==l.charCodeAt(d+v))break;x===47&&(w=v)}var _="";for(v=a+w+1;v<=c;++v)v!==c&&s.charCodeAt(v)!==47||(_.length===0?_+="..":_+="/..");return _.length>0?_+l.slice(d+w):(d+=w,l.charCodeAt(d)===47&&++d,l.slice(d))},_makeLong:function(s){return s},dirname:function(s){if(r(s),s.length===0)return".";for(var l=s.charCodeAt(0),a=l===47,c=-1,u=!0,d=s.length-1;d>=1;--d)if((l=s.charCodeAt(d))===47){if(!u){c=d;break}}else u=!1;return c===-1?a?"/":".":a&&c===1?"//":s.slice(0,c)},basename:function(s,l){if(l!==void 0&&typeof l!="string")throw new TypeError('"ext" argument must be a string');r(s);var a,c=0,u=-1,d=!0;if(l!==void 0&&l.length>0&&l.length<=s.length){if(l.length===s.length&&l===s)return"";var h=l.length-1,p=-1;for(a=s.length-1;a>=0;--a){var w=s.charCodeAt(a);if(w===47){if(!d){c=a+1;break}}else p===-1&&(d=!1,p=a+1),h>=0&&(w===l.charCodeAt(h)?--h==-1&&(u=a):(h=-1,u=p))}return c===u?u=p:u===-1&&(u=s.length),s.slice(c,u)}for(a=s.length-1;a>=0;--a)if(s.charCodeAt(a)===47){if(!d){c=a+1;break}}else u===-1&&(d=!1,u=a+1);return u===-1?"":s.slice(c,u)},extname:function(s){r(s);for(var l=-1,a=0,c=-1,u=!0,d=0,h=s.length-1;h>=0;--h){var p=s.charCodeAt(h);if(p!==47)c===-1&&(u=!1,c=h+1),p===46?l===-1?l=h:d!==1&&(d=1):l!==-1&&(d=-1);else if(!u){a=h+1;break}}return l===-1||c===-1||d===0||d===1&&l===c-1&&l===a+1?"":s.slice(l,c)},format:function(s){if(s===null||typeof s!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof s);return function(l,a){var c=a.dir||a.root,u=a.base||(a.name||"")+(a.ext||"");return c?c===a.root?c+u:c+"/"+u:u}(0,s)},parse:function(s){r(s);var l={root:"",dir:"",base:"",ext:"",name:""};if(s.length===0)return l;var a,c=s.charCodeAt(0),u=c===47;u?(l.root="/",a=1):a=0;for(var d=-1,h=0,p=-1,w=!0,v=s.length-1,x=0;v>=a;--v)if((c=s.charCodeAt(v))!==47)p===-1&&(w=!1,p=v+1),c===46?d===-1?d=v:x!==1&&(x=1):d!==-1&&(x=-1);else if(!w){h=v+1;break}return d===-1||p===-1||x===0||x===1&&d===p-1&&d===h+1?p!==-1&&(l.base=l.name=h===0&&u?s.slice(1,p):s.slice(h,p)):(h===0&&u?(l.name=s.slice(1,d),l.base=s.slice(1,p)):(l.name=s.slice(h,d),l.base=s.slice(h,p)),l.ext=s.slice(d,p)),h>0?l.dir=s.slice(0,h-1):u&&(l.dir="/"),l},sep:"/",delimiter:":",win32:null,posix:null};o.posix=o,n.exports=o},465:(n,r,i)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.Utils=r.URI=void 0;var o=i(796);Object.defineProperty(r,"URI",{enumerable:!0,get:function(){return o.URI}});var s=i(679);Object.defineProperty(r,"Utils",{enumerable:!0,get:function(){return s.Utils}})},674:(n,r)=>{if(Object.defineProperty(r,"__esModule",{value:!0}),r.isWindows=void 0,typeof process=="object")r.isWindows=process.platform==="win32";else if(typeof navigator=="object"){var i=navigator.userAgent;r.isWindows=i.indexOf("Windows")>=0}},796:function(n,r,i){var o,s,l=this&&this.__extends||(o=function(N,W){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(V,G){V.__proto__=G}||function(V,G){for(var U in G)Object.prototype.hasOwnProperty.call(G,U)&&(V[U]=G[U])})(N,W)},function(N,W){if(typeof W!="function"&&W!==null)throw new TypeError("Class extends value "+String(W)+" is not a constructor or null");function V(){this.constructor=N}o(N,W),N.prototype=W===null?Object.create(W):(V.prototype=W.prototype,new V)});Object.defineProperty(r,"__esModule",{value:!0}),r.uriToFsPath=r.URI=void 0;var a=i(674),c=/^\w[\w\d+.-]*$/,u=/^\//,d=/^\/\//;function h(N,W){if(!N.scheme&&W)throw new Error('[UriError]: Scheme is missing: {scheme: "", authority: "'.concat(N.authority,'", path: "').concat(N.path,'", query: "').concat(N.query,'", fragment: "').concat(N.fragment,'"}'));if(N.scheme&&!c.test(N.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(N.path){if(N.authority){if(!u.test(N.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(d.test(N.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}}var p="",w="/",v=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/,x=function(){function N(W,V,G,U,P,R){R===void 0&&(R=!1),typeof W=="object"?(this.scheme=W.scheme||p,this.authority=W.authority||p,this.path=W.path||p,this.query=W.query||p,this.fragment=W.fragment||p):(this.scheme=function(J,Q){return J||Q?J:"file"}(W,R),this.authority=V||p,this.path=function(J,Q){switch(J){case"https":case"http":case"file":Q?Q[0]!==w&&(Q=w+Q):Q=w}return Q}(this.scheme,G||p),this.query=U||p,this.fragment=P||p,h(this,R))}return N.isUri=function(W){return W instanceof N||!!W&&typeof W.authority=="string"&&typeof W.fragment=="string"&&typeof W.path=="string"&&typeof W.query=="string"&&typeof W.scheme=="string"&&typeof W.fsPath=="string"&&typeof W.with=="function"&&typeof W.toString=="function"},Object.defineProperty(N.prototype,"fsPath",{get:function(){return K(this,!1)},enumerable:!1,configurable:!0}),N.prototype.with=function(W){if(!W)return this;var V=W.scheme,G=W.authority,U=W.path,P=W.query,R=W.fragment;return V===void 0?V=this.scheme:V===null&&(V=p),G===void 0?G=this.authority:G===null&&(G=p),U===void 0?U=this.path:U===null&&(U=p),P===void 0?P=this.query:P===null&&(P=p),R===void 0?R=this.fragment:R===null&&(R=p),V===this.scheme&&G===this.authority&&U===this.path&&P===this.query&&R===this.fragment?this:new f(V,G,U,P,R)},N.parse=function(W,V){V===void 0&&(V=!1);var G=v.exec(W);return G?new f(G[2]||p,oe(G[4]||p),oe(G[5]||p),oe(G[7]||p),oe(G[9]||p),V):new f(p,p,p,p,p)},N.file=function(W){var V=p;if(a.isWindows&&(W=W.replace(/\\/g,w)),W[0]===w&&W[1]===w){var G=W.indexOf(w,2);G===-1?(V=W.substring(2),W=w):(V=W.substring(2,G),W=W.substring(G)||w)}return new f("file",V,W,p,p)},N.from=function(W){var V=new f(W.scheme,W.authority,W.path,W.query,W.fragment);return h(V,!0),V},N.prototype.toString=function(W){return W===void 0&&(W=!1),C(this,W)},N.prototype.toJSON=function(){return this},N.revive=function(W){if(W){if(W instanceof N)return W;var V=new f(W);return V._formatted=W.external,V._fsPath=W._sep===_?W.fsPath:null,V}return W},N}();r.URI=x;var _=a.isWindows?1:void 0,f=function(N){function W(){var V=N!==null&&N.apply(this,arguments)||this;return V._formatted=null,V._fsPath=null,V}return l(W,N),Object.defineProperty(W.prototype,"fsPath",{get:function(){return this._fsPath||(this._fsPath=K(this,!1)),this._fsPath},enumerable:!1,configurable:!0}),W.prototype.toString=function(V){return V===void 0&&(V=!1),V?C(this,!0):(this._formatted||(this._formatted=C(this,!1)),this._formatted)},W.prototype.toJSON=function(){var V={$mid:1};return this._fsPath&&(V.fsPath=this._fsPath,V._sep=_),this._formatted&&(V.external=this._formatted),this.path&&(V.path=this.path),this.scheme&&(V.scheme=this.scheme),this.authority&&(V.authority=this.authority),this.query&&(V.query=this.query),this.fragment&&(V.fragment=this.fragment),V},W}(x),g=((s={})[58]="%3A",s[47]="%2F",s[63]="%3F",s[35]="%23",s[91]="%5B",s[93]="%5D",s[64]="%40",s[33]="%21",s[36]="%24",s[38]="%26",s[39]="%27",s[40]="%28",s[41]="%29",s[42]="%2A",s[43]="%2B",s[44]="%2C",s[59]="%3B",s[61]="%3D",s[32]="%20",s);function D(N,W){for(var V=void 0,G=-1,U=0;U<N.length;U++){var P=N.charCodeAt(U);if(P>=97&&P<=122||P>=65&&P<=90||P>=48&&P<=57||P===45||P===46||P===95||P===126||W&&P===47)G!==-1&&(V+=encodeURIComponent(N.substring(G,U)),G=-1),V!==void 0&&(V+=N.charAt(U));else{V===void 0&&(V=N.substr(0,U));var R=g[P];R!==void 0?(G!==-1&&(V+=encodeURIComponent(N.substring(G,U)),G=-1),V+=R):G===-1&&(G=U)}}return G!==-1&&(V+=encodeURIComponent(N.substring(G))),V!==void 0?V:N}function L(N){for(var W=void 0,V=0;V<N.length;V++){var G=N.charCodeAt(V);G===35||G===63?(W===void 0&&(W=N.substr(0,V)),W+=g[G]):W!==void 0&&(W+=N[V])}return W!==void 0?W:N}function K(N,W){var V;return V=N.authority&&N.path.length>1&&N.scheme==="file"?"//".concat(N.authority).concat(N.path):N.path.charCodeAt(0)===47&&(N.path.charCodeAt(1)>=65&&N.path.charCodeAt(1)<=90||N.path.charCodeAt(1)>=97&&N.path.charCodeAt(1)<=122)&&N.path.charCodeAt(2)===58?W?N.path.substr(1):N.path[1].toLowerCase()+N.path.substr(2):N.path,a.isWindows&&(V=V.replace(/\//g,"\\")),V}function C(N,W){var V=W?L:D,G="",U=N.scheme,P=N.authority,R=N.path,J=N.query,Q=N.fragment;if(U&&(G+=U,G+=":"),(P||U==="file")&&(G+=w,G+=w),P){var re=P.indexOf("@");if(re!==-1){var de=P.substr(0,re);P=P.substr(re+1),(re=de.indexOf(":"))===-1?G+=V(de,!1):(G+=V(de.substr(0,re),!1),G+=":",G+=V(de.substr(re+1),!1)),G+="@"}(re=(P=P.toLowerCase()).indexOf(":"))===-1?G+=V(P,!1):(G+=V(P.substr(0,re),!1),G+=P.substr(re))}if(R){if(R.length>=3&&R.charCodeAt(0)===47&&R.charCodeAt(2)===58)(se=R.charCodeAt(1))>=65&&se<=90&&(R="/".concat(String.fromCharCode(se+32),":").concat(R.substr(3)));else if(R.length>=2&&R.charCodeAt(1)===58){var se;(se=R.charCodeAt(0))>=65&&se<=90&&(R="".concat(String.fromCharCode(se+32),":").concat(R.substr(2)))}G+=V(R,!0)}return J&&(G+="?",G+=V(J,!1)),Q&&(G+="#",G+=W?Q:D(Q,!1)),G}function T(N){try{return decodeURIComponent(N)}catch{return N.length>3?N.substr(0,3)+T(N.substr(3)):N}}r.uriToFsPath=K;var M=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function oe(N){return N.match(M)?N.replace(M,function(W){return T(W)}):N}},679:function(n,r,i){var o=this&&this.__spreadArray||function(c,u,d){if(d||arguments.length===2)for(var h,p=0,w=u.length;p<w;p++)!h&&p in u||(h||(h=Array.prototype.slice.call(u,0,p)),h[p]=u[p]);return c.concat(h||Array.prototype.slice.call(u))};Object.defineProperty(r,"__esModule",{value:!0}),r.Utils=void 0;var s,l=i(470),a=l.posix||l;(s=r.Utils||(r.Utils={})).joinPath=function(c){for(var u=[],d=1;d<arguments.length;d++)u[d-1]=arguments[d];return c.with({path:a.join.apply(a,o([c.path],u,!1))})},s.resolvePath=function(c){for(var u=[],d=1;d<arguments.length;d++)u[d-1]=arguments[d];var h=c.path||"/";return c.with({path:a.resolve.apply(a,o([h],u,!1))})},s.dirname=function(c){var u=a.dirname(c.path);return u.length===1&&u.charCodeAt(0)===46?c:c.with({path:u})},s.basename=function(c){return a.basename(c.path)},s.extname=function(c){return a.extname(c.path)}}},e={};return function n(r){if(e[r])return e[r].exports;var i=e[r]={exports:{}};return t[r].call(i.exports,i,i.exports,n),i.exports}(465)})()})});var Ml=X(nn=>{"use strict";Object.defineProperty(nn,"__esModule",{value:!0});nn.getPrettierPluginPath=nn.importPrettier=nn.importVueIntegration=nn.importSvelteIntegration=nn.getPackagePath=nn.setIsTrusted=void 0;var Gv=Hs(),Jv=!0;function d2(t){Jv=t}nn.setIsTrusted=d2;function Il(t,e){let n=[];Jv&&n.unshift(...e);try{return(0,Gv.dirname)(Lt.resolve(t+"/package.json",{paths:n}))}catch{return}}nn.getPackagePath=Il;function Xv(t,e){let n=Il(t,[e]);if(n)try{let r=(0,Gv.resolve)(n,"dist","editor.cjs");return Lt(r)}catch{console.error(`Couldn't load editor module from ${n}. Make sure you're using at least version v0.2.1 of the corresponding integration`);return}}function h2(t){return Xv("@astrojs/svelte",t)}nn.importSvelteIntegration=h2;function p2(t){return Xv("@astrojs/vue",t)}nn.importVueIntegration=p2;function m2(t){let e=Il("prettier",[t,__dirname]);return Lt(e)}nn.importPrettier=m2;function f2(t){return Il("prettier-plugin-astro",[t,__dirname])}nn.getPrettierPluginPath=f2});var dt=X(Pe=>{"use strict";Object.defineProperty(Pe,"__esModule",{value:!0});Pe.getAstroInstall=Pe.isAstroWorkspace=Pe.debounceThrottle=Pe.debounceSameArg=Pe.getRegExpMatches=Pe.regexLastIndexOf=Pe.isBeforeOrEqualToPosition=Pe.isInRange=Pe.isNotNullOrUndefined=Pe.clamp=Pe.modifyLines=Pe.toPascalCase=Pe.mergeDeep=Pe.get=Pe.getLastPartOfPath=Pe.pathToUrl=Pe.urlToPath=Pe.normalizePath=Pe.normalizeUri=void 0;var Qv=Hs(),Pl=Rl(),Yv=Ml();function g2(t){return Pl.URI.parse(t).toString()}Pe.normalizeUri=g2;function b2(t){return Pl.URI.file(t).fsPath.replace(/\\/g,"/")}Pe.normalizePath=b2;function v2(t){let e=Pl.URI.parse(t);return e.scheme!=="file"?null:e.fsPath.replace(/\\/g,"/")}Pe.urlToPath=v2;function w2(t){return Pl.URI.file(t).toString()}Pe.pathToUrl=w2;function y2(t){return t.replace(/\\/g,"/").split("/").pop()||""}Pe.getLastPartOfPath=y2;function _2(t,e){let n=i=>String.prototype.split.call(e,i).filter(Boolean).reduce((o,s)=>o!=null?o[s]:o,t),r=n(/[,[\]]+?/)||n(/[,[\].]+?/);return r===void 0?void 0:r}Pe.get=_2;function Zv(...t){let e=n=>n&&typeof n=="object";return t.reduce((n,r)=>(Object.keys(r).forEach(i=>{let o=n[i],s=r[i];Array.isArray(o)&&Array.isArray(s)?n[i]=o.concat(...s):e(o)&&e(s)?n[i]=Zv(o,s):n[i]=s}),n),{})}Pe.mergeDeep=Zv;function S2(t){return`${t}`.replace(new RegExp(/[-_]+/,"g")," ").replace(new RegExp(/[^\w\s]/,"g"),"").replace(new RegExp(/\s+(.)(\w*)/,"g"),(e,n,r)=>`${n.toUpperCase()+r.toLowerCase()}`).replace(new RegExp(/\w/),e=>e.toUpperCase())}Pe.toPascalCase=S2;function x2(t,e){let n=0;return t.split(`\r
|
|
33
|
+
`&&b++}k&&O.length>0&&z.push(O.length),this._lineOffsets=z}return this._lineOffsets},y.prototype.positionAt=function(z){z=Math.max(Math.min(z,this._content.length),0);var O=this.getLineOffsets(),k=0,b=O.length;if(b===0)return s.create(0,z);for(;k<b;){var H=Math.floor((k+b)/2);O[H]>z?b=H:k=H+1}var te=k-1;return s.create(te,z-O[te])},y.prototype.offsetAt=function(z){var O=this.getLineOffsets();if(z.line>=O.length)return this._content.length;if(z.line<0)return 0;var k=O[z.line],b=z.line+1<O.length?O[z.line+1]:this._content.length;return Math.max(Math.min(k+z.character,b),k)},Object.defineProperty(y.prototype,"lineCount",{get:function(){return this.getLineOffsets().length},enumerable:!1,configurable:!0}),y}(),j;(function(y){var z=Object.prototype.toString;function O(Oe){return typeof Oe<"u"}y.defined=O;function k(Oe){return typeof Oe>"u"}y.undefined=k;function b(Oe){return Oe===!0||Oe===!1}y.boolean=b;function H(Oe){return z.call(Oe)==="[object String]"}y.string=H;function te(Oe){return z.call(Oe)==="[object Number]"}y.number=te;function Fe(Oe,ho,ja){return z.call(Oe)==="[object Number]"&&ho<=Oe&&Oe<=ja}y.numberRange=Fe;function ht(Oe){return z.call(Oe)==="[object Number]"&&-2147483648<=Oe&&Oe<=2147483647}y.integer=ht;function et(Oe){return z.call(Oe)==="[object Number]"&&0<=Oe&&Oe<=2147483647}y.uinteger=et;function Rn(Oe){return z.call(Oe)==="[object Function]"}y.func=Rn;function In(Oe){return Oe!==null&&typeof Oe=="object"}y.objectLiteral=In;function Dr(Oe,ho){return Array.isArray(Oe)&&Oe.every(ho)}y.typedArray=Dr})(j||(j={}))})});var ct=X(Qt=>{"use strict";Object.defineProperty(Qt,"__esModule",{value:!0});Qt.ProtocolNotificationType=Qt.ProtocolNotificationType0=Qt.ProtocolRequestType=Qt.ProtocolRequestType0=Qt.RegistrationType=Qt.MessageDirection=void 0;var wo=Ni(),M1;(function(t){t.clientToServer="clientToServer",t.serverToClient="serverToClient",t.both="both"})(M1=Qt.MessageDirection||(Qt.MessageDirection={}));var Ah=class{constructor(e){this.method=e}};Qt.RegistrationType=Ah;var Rh=class extends wo.RequestType0{constructor(e){super(e)}};Qt.ProtocolRequestType0=Rh;var Ih=class extends wo.RequestType{constructor(e){super(e,wo.ParameterStructures.byName)}};Qt.ProtocolRequestType=Ih;var Mh=class extends wo.NotificationType0{constructor(e){super(e)}};Qt.ProtocolNotificationType0=Mh;var Ph=class extends wo.NotificationType{constructor(e){super(e,wo.ParameterStructures.byName)}};Qt.ProtocolNotificationType=Ph});var Ya=X(kt=>{"use strict";Object.defineProperty(kt,"__esModule",{value:!0});kt.objectLiteral=kt.typedArray=kt.stringArray=kt.array=kt.func=kt.error=kt.number=kt.string=kt.boolean=void 0;function P1(t){return t===!0||t===!1}kt.boolean=P1;function mb(t){return typeof t=="string"||t instanceof String}kt.string=mb;function z1(t){return typeof t=="number"||t instanceof Number}kt.number=z1;function O1(t){return t instanceof Error}kt.error=O1;function L1(t){return typeof t=="function"}kt.func=L1;function fb(t){return Array.isArray(t)}kt.array=fb;function N1(t){return fb(t)&&t.every(e=>mb(e))}kt.stringArray=N1;function W1(t,e){return Array.isArray(t)&&t.every(e)}kt.typedArray=W1;function q1(t){return t!==null&&typeof t=="object"}kt.objectLiteral=q1});var bb=X(Ds=>{"use strict";Object.defineProperty(Ds,"__esModule",{value:!0});Ds.ImplementationRequest=void 0;var gb=ct(),U1;(function(t){t.method="textDocument/implementation",t.messageDirection=gb.MessageDirection.clientToServer,t.type=new gb.ProtocolRequestType(t.method)})(U1=Ds.ImplementationRequest||(Ds.ImplementationRequest={}))});var wb=X(Fs=>{"use strict";Object.defineProperty(Fs,"__esModule",{value:!0});Fs.TypeDefinitionRequest=void 0;var vb=ct(),j1;(function(t){t.method="textDocument/typeDefinition",t.messageDirection=vb.MessageDirection.clientToServer,t.type=new vb.ProtocolRequestType(t.method)})(j1=Fs.TypeDefinitionRequest||(Fs.TypeDefinitionRequest={}))});var yb=X(ri=>{"use strict";Object.defineProperty(ri,"__esModule",{value:!0});ri.DidChangeWorkspaceFoldersNotification=ri.WorkspaceFoldersRequest=void 0;var Za=ct(),H1;(function(t){t.method="workspace/workspaceFolders",t.messageDirection=Za.MessageDirection.serverToClient,t.type=new Za.ProtocolRequestType0(t.method)})(H1=ri.WorkspaceFoldersRequest||(ri.WorkspaceFoldersRequest={}));var B1;(function(t){t.method="workspace/didChangeWorkspaceFolders",t.messageDirection=Za.MessageDirection.clientToServer,t.type=new Za.ProtocolNotificationType(t.method)})(B1=ri.DidChangeWorkspaceFoldersNotification||(ri.DidChangeWorkspaceFoldersNotification={}))});var Sb=X(As=>{"use strict";Object.defineProperty(As,"__esModule",{value:!0});As.ConfigurationRequest=void 0;var _b=ct(),$1;(function(t){t.method="workspace/configuration",t.messageDirection=_b.MessageDirection.serverToClient,t.type=new _b.ProtocolRequestType(t.method)})($1=As.ConfigurationRequest||(As.ConfigurationRequest={}))});var xb=X(ii=>{"use strict";Object.defineProperty(ii,"__esModule",{value:!0});ii.ColorPresentationRequest=ii.DocumentColorRequest=void 0;var el=ct(),V1;(function(t){t.method="textDocument/documentColor",t.messageDirection=el.MessageDirection.clientToServer,t.type=new el.ProtocolRequestType(t.method)})(V1=ii.DocumentColorRequest||(ii.DocumentColorRequest={}));var K1;(function(t){t.method="textDocument/colorPresentation",t.messageDirection=el.MessageDirection.clientToServer,t.type=new el.ProtocolRequestType(t.method)})(K1=ii.ColorPresentationRequest||(ii.ColorPresentationRequest={}))});var Cb=X(Rs=>{"use strict";Object.defineProperty(Rs,"__esModule",{value:!0});Rs.FoldingRangeRequest=void 0;var kb=ct(),G1;(function(t){t.method="textDocument/foldingRange",t.messageDirection=kb.MessageDirection.clientToServer,t.type=new kb.ProtocolRequestType(t.method)})(G1=Rs.FoldingRangeRequest||(Rs.FoldingRangeRequest={}))});var Eb=X(Is=>{"use strict";Object.defineProperty(Is,"__esModule",{value:!0});Is.DeclarationRequest=void 0;var Tb=ct(),J1;(function(t){t.method="textDocument/declaration",t.messageDirection=Tb.MessageDirection.clientToServer,t.type=new Tb.ProtocolRequestType(t.method)})(J1=Is.DeclarationRequest||(Is.DeclarationRequest={}))});var Fb=X(Ms=>{"use strict";Object.defineProperty(Ms,"__esModule",{value:!0});Ms.SelectionRangeRequest=void 0;var Db=ct(),X1;(function(t){t.method="textDocument/selectionRange",t.messageDirection=Db.MessageDirection.clientToServer,t.type=new Db.ProtocolRequestType(t.method)})(X1=Ms.SelectionRangeRequest||(Ms.SelectionRangeRequest={}))});var Ab=X(zn=>{"use strict";Object.defineProperty(zn,"__esModule",{value:!0});zn.WorkDoneProgressCancelNotification=zn.WorkDoneProgressCreateRequest=zn.WorkDoneProgress=void 0;var Q1=Ni(),tl=ct(),Y1;(function(t){t.type=new Q1.ProgressType;function e(n){return n===t.type}t.is=e})(Y1=zn.WorkDoneProgress||(zn.WorkDoneProgress={}));var Z1;(function(t){t.method="window/workDoneProgress/create",t.messageDirection=tl.MessageDirection.serverToClient,t.type=new tl.ProtocolRequestType(t.method)})(Z1=zn.WorkDoneProgressCreateRequest||(zn.WorkDoneProgressCreateRequest={}));var eC;(function(t){t.method="window/workDoneProgress/cancel",t.messageDirection=tl.MessageDirection.clientToServer,t.type=new tl.ProtocolNotificationType(t.method)})(eC=zn.WorkDoneProgressCancelNotification||(zn.WorkDoneProgressCancelNotification={}))});var Rb=X(On=>{"use strict";Object.defineProperty(On,"__esModule",{value:!0});On.CallHierarchyOutgoingCallsRequest=On.CallHierarchyIncomingCallsRequest=On.CallHierarchyPrepareRequest=void 0;var yo=ct(),tC;(function(t){t.method="textDocument/prepareCallHierarchy",t.messageDirection=yo.MessageDirection.clientToServer,t.type=new yo.ProtocolRequestType(t.method)})(tC=On.CallHierarchyPrepareRequest||(On.CallHierarchyPrepareRequest={}));var nC;(function(t){t.method="callHierarchy/incomingCalls",t.messageDirection=yo.MessageDirection.clientToServer,t.type=new yo.ProtocolRequestType(t.method)})(nC=On.CallHierarchyIncomingCallsRequest||(On.CallHierarchyIncomingCallsRequest={}));var rC;(function(t){t.method="callHierarchy/outgoingCalls",t.messageDirection=yo.MessageDirection.clientToServer,t.type=new yo.ProtocolRequestType(t.method)})(rC=On.CallHierarchyOutgoingCallsRequest||(On.CallHierarchyOutgoingCallsRequest={}))});var Ib=X(Ct=>{"use strict";Object.defineProperty(Ct,"__esModule",{value:!0});Ct.SemanticTokensRefreshRequest=Ct.SemanticTokensRangeRequest=Ct.SemanticTokensDeltaRequest=Ct.SemanticTokensRequest=Ct.SemanticTokensRegistrationType=Ct.TokenFormat=void 0;var Mr=ct(),iC;(function(t){t.Relative="relative"})(iC=Ct.TokenFormat||(Ct.TokenFormat={}));var nl;(function(t){t.method="textDocument/semanticTokens",t.type=new Mr.RegistrationType(t.method)})(nl=Ct.SemanticTokensRegistrationType||(Ct.SemanticTokensRegistrationType={}));var oC;(function(t){t.method="textDocument/semanticTokens/full",t.messageDirection=Mr.MessageDirection.clientToServer,t.type=new Mr.ProtocolRequestType(t.method),t.registrationMethod=nl.method})(oC=Ct.SemanticTokensRequest||(Ct.SemanticTokensRequest={}));var sC;(function(t){t.method="textDocument/semanticTokens/full/delta",t.messageDirection=Mr.MessageDirection.clientToServer,t.type=new Mr.ProtocolRequestType(t.method),t.registrationMethod=nl.method})(sC=Ct.SemanticTokensDeltaRequest||(Ct.SemanticTokensDeltaRequest={}));var aC;(function(t){t.method="textDocument/semanticTokens/range",t.messageDirection=Mr.MessageDirection.clientToServer,t.type=new Mr.ProtocolRequestType(t.method),t.registrationMethod=nl.method})(aC=Ct.SemanticTokensRangeRequest||(Ct.SemanticTokensRangeRequest={}));var lC;(function(t){t.method="workspace/semanticTokens/refresh",t.messageDirection=Mr.MessageDirection.clientToServer,t.type=new Mr.ProtocolRequestType0(t.method)})(lC=Ct.SemanticTokensRefreshRequest||(Ct.SemanticTokensRefreshRequest={}))});var Pb=X(Ps=>{"use strict";Object.defineProperty(Ps,"__esModule",{value:!0});Ps.ShowDocumentRequest=void 0;var Mb=ct(),cC;(function(t){t.method="window/showDocument",t.messageDirection=Mb.MessageDirection.serverToClient,t.type=new Mb.ProtocolRequestType(t.method)})(cC=Ps.ShowDocumentRequest||(Ps.ShowDocumentRequest={}))});var Ob=X(zs=>{"use strict";Object.defineProperty(zs,"__esModule",{value:!0});zs.LinkedEditingRangeRequest=void 0;var zb=ct(),uC;(function(t){t.method="textDocument/linkedEditingRange",t.messageDirection=zb.MessageDirection.clientToServer,t.type=new zb.ProtocolRequestType(t.method)})(uC=zs.LinkedEditingRangeRequest||(zs.LinkedEditingRangeRequest={}))});var Lb=X(ut=>{"use strict";Object.defineProperty(ut,"__esModule",{value:!0});ut.WillDeleteFilesRequest=ut.DidDeleteFilesNotification=ut.DidRenameFilesNotification=ut.WillRenameFilesRequest=ut.DidCreateFilesNotification=ut.WillCreateFilesRequest=ut.FileOperationPatternKind=void 0;var mn=ct(),dC;(function(t){t.file="file",t.folder="folder"})(dC=ut.FileOperationPatternKind||(ut.FileOperationPatternKind={}));var hC;(function(t){t.method="workspace/willCreateFiles",t.messageDirection=mn.MessageDirection.clientToServer,t.type=new mn.ProtocolRequestType(t.method)})(hC=ut.WillCreateFilesRequest||(ut.WillCreateFilesRequest={}));var pC;(function(t){t.method="workspace/didCreateFiles",t.messageDirection=mn.MessageDirection.clientToServer,t.type=new mn.ProtocolNotificationType(t.method)})(pC=ut.DidCreateFilesNotification||(ut.DidCreateFilesNotification={}));var mC;(function(t){t.method="workspace/willRenameFiles",t.messageDirection=mn.MessageDirection.clientToServer,t.type=new mn.ProtocolRequestType(t.method)})(mC=ut.WillRenameFilesRequest||(ut.WillRenameFilesRequest={}));var fC;(function(t){t.method="workspace/didRenameFiles",t.messageDirection=mn.MessageDirection.clientToServer,t.type=new mn.ProtocolNotificationType(t.method)})(fC=ut.DidRenameFilesNotification||(ut.DidRenameFilesNotification={}));var gC;(function(t){t.method="workspace/didDeleteFiles",t.messageDirection=mn.MessageDirection.clientToServer,t.type=new mn.ProtocolNotificationType(t.method)})(gC=ut.DidDeleteFilesNotification||(ut.DidDeleteFilesNotification={}));var bC;(function(t){t.method="workspace/willDeleteFiles",t.messageDirection=mn.MessageDirection.clientToServer,t.type=new mn.ProtocolRequestType(t.method)})(bC=ut.WillDeleteFilesRequest||(ut.WillDeleteFilesRequest={}))});var Wb=X(Ln=>{"use strict";Object.defineProperty(Ln,"__esModule",{value:!0});Ln.MonikerRequest=Ln.MonikerKind=Ln.UniquenessLevel=void 0;var Nb=ct(),vC;(function(t){t.document="document",t.project="project",t.group="group",t.scheme="scheme",t.global="global"})(vC=Ln.UniquenessLevel||(Ln.UniquenessLevel={}));var wC;(function(t){t.$import="import",t.$export="export",t.local="local"})(wC=Ln.MonikerKind||(Ln.MonikerKind={}));var yC;(function(t){t.method="textDocument/moniker",t.messageDirection=Nb.MessageDirection.clientToServer,t.type=new Nb.ProtocolRequestType(t.method)})(yC=Ln.MonikerRequest||(Ln.MonikerRequest={}))});var qb=X(Nn=>{"use strict";Object.defineProperty(Nn,"__esModule",{value:!0});Nn.TypeHierarchySubtypesRequest=Nn.TypeHierarchySupertypesRequest=Nn.TypeHierarchyPrepareRequest=void 0;var _o=ct(),_C;(function(t){t.method="textDocument/prepareTypeHierarchy",t.messageDirection=_o.MessageDirection.clientToServer,t.type=new _o.ProtocolRequestType(t.method)})(_C=Nn.TypeHierarchyPrepareRequest||(Nn.TypeHierarchyPrepareRequest={}));var SC;(function(t){t.method="typeHierarchy/supertypes",t.messageDirection=_o.MessageDirection.clientToServer,t.type=new _o.ProtocolRequestType(t.method)})(SC=Nn.TypeHierarchySupertypesRequest||(Nn.TypeHierarchySupertypesRequest={}));var xC;(function(t){t.method="typeHierarchy/subtypes",t.messageDirection=_o.MessageDirection.clientToServer,t.type=new _o.ProtocolRequestType(t.method)})(xC=Nn.TypeHierarchySubtypesRequest||(Nn.TypeHierarchySubtypesRequest={}))});var Ub=X(oi=>{"use strict";Object.defineProperty(oi,"__esModule",{value:!0});oi.InlineValueRefreshRequest=oi.InlineValueRequest=void 0;var rl=ct(),kC;(function(t){t.method="textDocument/inlineValue",t.messageDirection=rl.MessageDirection.clientToServer,t.type=new rl.ProtocolRequestType(t.method)})(kC=oi.InlineValueRequest||(oi.InlineValueRequest={}));var CC;(function(t){t.method="workspace/inlineValue/refresh",t.messageDirection=rl.MessageDirection.clientToServer,t.type=new rl.ProtocolRequestType0(t.method)})(CC=oi.InlineValueRefreshRequest||(oi.InlineValueRefreshRequest={}))});var jb=X(Wn=>{"use strict";Object.defineProperty(Wn,"__esModule",{value:!0});Wn.InlayHintRefreshRequest=Wn.InlayHintResolveRequest=Wn.InlayHintRequest=void 0;var So=ct(),TC;(function(t){t.method="textDocument/inlayHint",t.messageDirection=So.MessageDirection.clientToServer,t.type=new So.ProtocolRequestType(t.method)})(TC=Wn.InlayHintRequest||(Wn.InlayHintRequest={}));var EC;(function(t){t.method="inlayHint/resolve",t.messageDirection=So.MessageDirection.clientToServer,t.type=new So.ProtocolRequestType(t.method)})(EC=Wn.InlayHintResolveRequest||(Wn.InlayHintResolveRequest={}));var DC;(function(t){t.method="workspace/inlayHint/refresh",t.messageDirection=So.MessageDirection.clientToServer,t.type=new So.ProtocolRequestType0(t.method)})(DC=Wn.InlayHintRefreshRequest||(Wn.InlayHintRefreshRequest={}))});var Bb=X(Nt=>{"use strict";Object.defineProperty(Nt,"__esModule",{value:!0});Nt.DiagnosticRefreshRequest=Nt.WorkspaceDiagnosticRequest=Nt.DocumentDiagnosticRequest=Nt.DocumentDiagnosticReportKind=Nt.DiagnosticServerCancellationData=void 0;var Hb=Ni(),FC=Ya(),xo=ct(),AC;(function(t){function e(n){let r=n;return r&&FC.boolean(r.retriggerRequest)}t.is=e})(AC=Nt.DiagnosticServerCancellationData||(Nt.DiagnosticServerCancellationData={}));var RC;(function(t){t.Full="full",t.Unchanged="unchanged"})(RC=Nt.DocumentDiagnosticReportKind||(Nt.DocumentDiagnosticReportKind={}));var IC;(function(t){t.method="textDocument/diagnostic",t.messageDirection=xo.MessageDirection.clientToServer,t.type=new xo.ProtocolRequestType(t.method),t.partialResult=new Hb.ProgressType})(IC=Nt.DocumentDiagnosticRequest||(Nt.DocumentDiagnosticRequest={}));var MC;(function(t){t.method="workspace/diagnostic",t.messageDirection=xo.MessageDirection.clientToServer,t.type=new xo.ProtocolRequestType(t.method),t.partialResult=new Hb.ProgressType})(MC=Nt.WorkspaceDiagnosticRequest||(Nt.WorkspaceDiagnosticRequest={}));var PC;(function(t){t.method="workspace/diagnostic/refresh",t.messageDirection=xo.MessageDirection.clientToServer,t.type=new xo.ProtocolRequestType0(t.method)})(PC=Nt.DiagnosticRefreshRequest||(Nt.DiagnosticRefreshRequest={}))});var Kb=X(qe=>{"use strict";Object.defineProperty(qe,"__esModule",{value:!0});qe.DidCloseNotebookDocumentNotification=qe.DidSaveNotebookDocumentNotification=qe.DidChangeNotebookDocumentNotification=qe.NotebookCellArrayChange=qe.DidOpenNotebookDocumentNotification=qe.NotebookDocumentSyncRegistrationType=qe.NotebookDocument=qe.NotebookCell=qe.ExecutionSummary=qe.NotebookCellKind=void 0;var Os=Xt(),qn=Ya(),tr=ct(),$b;(function(t){t.Markup=1,t.Code=2;function e(n){return n===1||n===2}t.is=e})($b=qe.NotebookCellKind||(qe.NotebookCellKind={}));var Vb;(function(t){function e(i,o){let s={executionOrder:i};return(o===!0||o===!1)&&(s.success=o),s}t.create=e;function n(i){let o=i;return qn.objectLiteral(o)&&Os.uinteger.is(o.executionOrder)&&(o.success===void 0||qn.boolean(o.success))}t.is=n;function r(i,o){return i===o?!0:i==null||o===null||o===void 0?!1:i.executionOrder===o.executionOrder&&i.success===o.success}t.equals=r})(Vb=qe.ExecutionSummary||(qe.ExecutionSummary={}));var zh;(function(t){function e(o,s){return{kind:o,document:s}}t.create=e;function n(o){let s=o;return qn.objectLiteral(s)&&$b.is(s.kind)&&Os.DocumentUri.is(s.document)&&(s.metadata===void 0||qn.objectLiteral(s.metadata))}t.is=n;function r(o,s){let l=new Set;return o.document!==s.document&&l.add("document"),o.kind!==s.kind&&l.add("kind"),o.executionSummary!==s.executionSummary&&l.add("executionSummary"),(o.metadata!==void 0||s.metadata!==void 0)&&!i(o.metadata,s.metadata)&&l.add("metadata"),(o.executionSummary!==void 0||s.executionSummary!==void 0)&&!Vb.equals(o.executionSummary,s.executionSummary)&&l.add("executionSummary"),l}t.diff=r;function i(o,s){if(o===s)return!0;if(o==null||s===null||s===void 0||typeof o!=typeof s||typeof o!="object")return!1;let l=Array.isArray(o),a=Array.isArray(s);if(l!==a)return!1;if(l&&a){if(o.length!==s.length)return!1;for(let c=0;c<o.length;c++)if(!i(o[c],s[c]))return!1}if(qn.objectLiteral(o)&&qn.objectLiteral(s)){let c=Object.keys(o),u=Object.keys(s);if(c.length!==u.length||(c.sort(),u.sort(),!i(c,u)))return!1;for(let d=0;d<c.length;d++){let h=c[d];if(!i(o[h],s[h]))return!1}}return!0}})(zh=qe.NotebookCell||(qe.NotebookCell={}));var zC;(function(t){function e(r,i,o,s){return{uri:r,notebookType:i,version:o,cells:s}}t.create=e;function n(r){let i=r;return qn.objectLiteral(i)&&qn.string(i.uri)&&Os.integer.is(i.version)&&qn.typedArray(i.cells,zh.is)}t.is=n})(zC=qe.NotebookDocument||(qe.NotebookDocument={}));var Ls;(function(t){t.method="notebookDocument/sync",t.messageDirection=tr.MessageDirection.clientToServer,t.type=new tr.RegistrationType(t.method)})(Ls=qe.NotebookDocumentSyncRegistrationType||(qe.NotebookDocumentSyncRegistrationType={}));var OC;(function(t){t.method="notebookDocument/didOpen",t.messageDirection=tr.MessageDirection.clientToServer,t.type=new tr.ProtocolNotificationType(t.method),t.registrationMethod=Ls.method})(OC=qe.DidOpenNotebookDocumentNotification||(qe.DidOpenNotebookDocumentNotification={}));var LC;(function(t){function e(r){let i=r;return qn.objectLiteral(i)&&Os.uinteger.is(i.start)&&Os.uinteger.is(i.deleteCount)&&(i.cells===void 0||qn.typedArray(i.cells,zh.is))}t.is=e;function n(r,i,o){let s={start:r,deleteCount:i};return o!==void 0&&(s.cells=o),s}t.create=n})(LC=qe.NotebookCellArrayChange||(qe.NotebookCellArrayChange={}));var NC;(function(t){t.method="notebookDocument/didChange",t.messageDirection=tr.MessageDirection.clientToServer,t.type=new tr.ProtocolNotificationType(t.method),t.registrationMethod=Ls.method})(NC=qe.DidChangeNotebookDocumentNotification||(qe.DidChangeNotebookDocumentNotification={}));var WC;(function(t){t.method="notebookDocument/didSave",t.messageDirection=tr.MessageDirection.clientToServer,t.type=new tr.ProtocolNotificationType(t.method),t.registrationMethod=Ls.method})(WC=qe.DidSaveNotebookDocumentNotification||(qe.DidSaveNotebookDocumentNotification={}));var qC;(function(t){t.method="notebookDocument/didClose",t.messageDirection=tr.MessageDirection.clientToServer,t.type=new tr.ProtocolNotificationType(t.method),t.registrationMethod=Ls.method})(qC=qe.DidCloseNotebookDocumentNotification||(qe.DidCloseNotebookDocumentNotification={}))});var nv=X(S=>{"use strict";Object.defineProperty(S,"__esModule",{value:!0});S.WorkspaceSymbolRequest=S.CodeActionResolveRequest=S.CodeActionRequest=S.DocumentSymbolRequest=S.DocumentHighlightRequest=S.ReferencesRequest=S.DefinitionRequest=S.SignatureHelpRequest=S.SignatureHelpTriggerKind=S.HoverRequest=S.CompletionResolveRequest=S.CompletionRequest=S.CompletionTriggerKind=S.PublishDiagnosticsNotification=S.WatchKind=S.RelativePattern=S.FileChangeType=S.DidChangeWatchedFilesNotification=S.WillSaveTextDocumentWaitUntilRequest=S.WillSaveTextDocumentNotification=S.TextDocumentSaveReason=S.DidSaveTextDocumentNotification=S.DidCloseTextDocumentNotification=S.DidChangeTextDocumentNotification=S.TextDocumentContentChangeEvent=S.DidOpenTextDocumentNotification=S.TextDocumentSyncKind=S.TelemetryEventNotification=S.LogMessageNotification=S.ShowMessageRequest=S.ShowMessageNotification=S.MessageType=S.DidChangeConfigurationNotification=S.ExitNotification=S.ShutdownRequest=S.InitializedNotification=S.InitializeErrorCodes=S.InitializeRequest=S.WorkDoneProgressOptions=S.TextDocumentRegistrationOptions=S.StaticRegistrationOptions=S.PositionEncodingKind=S.FailureHandlingKind=S.ResourceOperationKind=S.UnregistrationRequest=S.RegistrationRequest=S.DocumentSelector=S.NotebookCellTextDocumentFilter=S.NotebookDocumentFilter=S.TextDocumentFilter=void 0;S.TypeHierarchySubtypesRequest=S.TypeHierarchyPrepareRequest=S.MonikerRequest=S.MonikerKind=S.UniquenessLevel=S.WillDeleteFilesRequest=S.DidDeleteFilesNotification=S.WillRenameFilesRequest=S.DidRenameFilesNotification=S.WillCreateFilesRequest=S.DidCreateFilesNotification=S.FileOperationPatternKind=S.LinkedEditingRangeRequest=S.ShowDocumentRequest=S.SemanticTokensRegistrationType=S.SemanticTokensRefreshRequest=S.SemanticTokensRangeRequest=S.SemanticTokensDeltaRequest=S.SemanticTokensRequest=S.TokenFormat=S.CallHierarchyPrepareRequest=S.CallHierarchyOutgoingCallsRequest=S.CallHierarchyIncomingCallsRequest=S.WorkDoneProgressCancelNotification=S.WorkDoneProgressCreateRequest=S.WorkDoneProgress=S.SelectionRangeRequest=S.DeclarationRequest=S.FoldingRangeRequest=S.ColorPresentationRequest=S.DocumentColorRequest=S.ConfigurationRequest=S.DidChangeWorkspaceFoldersNotification=S.WorkspaceFoldersRequest=S.TypeDefinitionRequest=S.ImplementationRequest=S.ApplyWorkspaceEditRequest=S.ExecuteCommandRequest=S.PrepareRenameRequest=S.RenameRequest=S.PrepareSupportDefaultBehavior=S.DocumentOnTypeFormattingRequest=S.DocumentRangeFormattingRequest=S.DocumentFormattingRequest=S.DocumentLinkResolveRequest=S.DocumentLinkRequest=S.CodeLensRefreshRequest=S.CodeLensResolveRequest=S.CodeLensRequest=S.WorkspaceSymbolResolveRequest=void 0;S.DidCloseNotebookDocumentNotification=S.DidSaveNotebookDocumentNotification=S.DidChangeNotebookDocumentNotification=S.NotebookCellArrayChange=S.DidOpenNotebookDocumentNotification=S.NotebookDocumentSyncRegistrationType=S.NotebookDocument=S.NotebookCell=S.ExecutionSummary=S.NotebookCellKind=S.DiagnosticRefreshRequest=S.WorkspaceDiagnosticRequest=S.DocumentDiagnosticRequest=S.DocumentDiagnosticReportKind=S.DiagnosticServerCancellationData=S.InlayHintRefreshRequest=S.InlayHintResolveRequest=S.InlayHintRequest=S.InlineValueRefreshRequest=S.InlineValueRequest=S.TypeHierarchySupertypesRequest=void 0;var ce=ct(),Gb=Xt(),Wt=Ya(),UC=bb();Object.defineProperty(S,"ImplementationRequest",{enumerable:!0,get:function(){return UC.ImplementationRequest}});var jC=wb();Object.defineProperty(S,"TypeDefinitionRequest",{enumerable:!0,get:function(){return jC.TypeDefinitionRequest}});var Jb=yb();Object.defineProperty(S,"WorkspaceFoldersRequest",{enumerable:!0,get:function(){return Jb.WorkspaceFoldersRequest}});Object.defineProperty(S,"DidChangeWorkspaceFoldersNotification",{enumerable:!0,get:function(){return Jb.DidChangeWorkspaceFoldersNotification}});var HC=Sb();Object.defineProperty(S,"ConfigurationRequest",{enumerable:!0,get:function(){return HC.ConfigurationRequest}});var Xb=xb();Object.defineProperty(S,"DocumentColorRequest",{enumerable:!0,get:function(){return Xb.DocumentColorRequest}});Object.defineProperty(S,"ColorPresentationRequest",{enumerable:!0,get:function(){return Xb.ColorPresentationRequest}});var BC=Cb();Object.defineProperty(S,"FoldingRangeRequest",{enumerable:!0,get:function(){return BC.FoldingRangeRequest}});var $C=Eb();Object.defineProperty(S,"DeclarationRequest",{enumerable:!0,get:function(){return $C.DeclarationRequest}});var VC=Fb();Object.defineProperty(S,"SelectionRangeRequest",{enumerable:!0,get:function(){return VC.SelectionRangeRequest}});var Oh=Ab();Object.defineProperty(S,"WorkDoneProgress",{enumerable:!0,get:function(){return Oh.WorkDoneProgress}});Object.defineProperty(S,"WorkDoneProgressCreateRequest",{enumerable:!0,get:function(){return Oh.WorkDoneProgressCreateRequest}});Object.defineProperty(S,"WorkDoneProgressCancelNotification",{enumerable:!0,get:function(){return Oh.WorkDoneProgressCancelNotification}});var Lh=Rb();Object.defineProperty(S,"CallHierarchyIncomingCallsRequest",{enumerable:!0,get:function(){return Lh.CallHierarchyIncomingCallsRequest}});Object.defineProperty(S,"CallHierarchyOutgoingCallsRequest",{enumerable:!0,get:function(){return Lh.CallHierarchyOutgoingCallsRequest}});Object.defineProperty(S,"CallHierarchyPrepareRequest",{enumerable:!0,get:function(){return Lh.CallHierarchyPrepareRequest}});var ko=Ib();Object.defineProperty(S,"TokenFormat",{enumerable:!0,get:function(){return ko.TokenFormat}});Object.defineProperty(S,"SemanticTokensRequest",{enumerable:!0,get:function(){return ko.SemanticTokensRequest}});Object.defineProperty(S,"SemanticTokensDeltaRequest",{enumerable:!0,get:function(){return ko.SemanticTokensDeltaRequest}});Object.defineProperty(S,"SemanticTokensRangeRequest",{enumerable:!0,get:function(){return ko.SemanticTokensRangeRequest}});Object.defineProperty(S,"SemanticTokensRefreshRequest",{enumerable:!0,get:function(){return ko.SemanticTokensRefreshRequest}});Object.defineProperty(S,"SemanticTokensRegistrationType",{enumerable:!0,get:function(){return ko.SemanticTokensRegistrationType}});var KC=Pb();Object.defineProperty(S,"ShowDocumentRequest",{enumerable:!0,get:function(){return KC.ShowDocumentRequest}});var GC=Ob();Object.defineProperty(S,"LinkedEditingRangeRequest",{enumerable:!0,get:function(){return GC.LinkedEditingRangeRequest}});var Wi=Lb();Object.defineProperty(S,"FileOperationPatternKind",{enumerable:!0,get:function(){return Wi.FileOperationPatternKind}});Object.defineProperty(S,"DidCreateFilesNotification",{enumerable:!0,get:function(){return Wi.DidCreateFilesNotification}});Object.defineProperty(S,"WillCreateFilesRequest",{enumerable:!0,get:function(){return Wi.WillCreateFilesRequest}});Object.defineProperty(S,"DidRenameFilesNotification",{enumerable:!0,get:function(){return Wi.DidRenameFilesNotification}});Object.defineProperty(S,"WillRenameFilesRequest",{enumerable:!0,get:function(){return Wi.WillRenameFilesRequest}});Object.defineProperty(S,"DidDeleteFilesNotification",{enumerable:!0,get:function(){return Wi.DidDeleteFilesNotification}});Object.defineProperty(S,"WillDeleteFilesRequest",{enumerable:!0,get:function(){return Wi.WillDeleteFilesRequest}});var Nh=Wb();Object.defineProperty(S,"UniquenessLevel",{enumerable:!0,get:function(){return Nh.UniquenessLevel}});Object.defineProperty(S,"MonikerKind",{enumerable:!0,get:function(){return Nh.MonikerKind}});Object.defineProperty(S,"MonikerRequest",{enumerable:!0,get:function(){return Nh.MonikerRequest}});var Wh=qb();Object.defineProperty(S,"TypeHierarchyPrepareRequest",{enumerable:!0,get:function(){return Wh.TypeHierarchyPrepareRequest}});Object.defineProperty(S,"TypeHierarchySubtypesRequest",{enumerable:!0,get:function(){return Wh.TypeHierarchySubtypesRequest}});Object.defineProperty(S,"TypeHierarchySupertypesRequest",{enumerable:!0,get:function(){return Wh.TypeHierarchySupertypesRequest}});var Qb=Ub();Object.defineProperty(S,"InlineValueRequest",{enumerable:!0,get:function(){return Qb.InlineValueRequest}});Object.defineProperty(S,"InlineValueRefreshRequest",{enumerable:!0,get:function(){return Qb.InlineValueRefreshRequest}});var qh=jb();Object.defineProperty(S,"InlayHintRequest",{enumerable:!0,get:function(){return qh.InlayHintRequest}});Object.defineProperty(S,"InlayHintResolveRequest",{enumerable:!0,get:function(){return qh.InlayHintResolveRequest}});Object.defineProperty(S,"InlayHintRefreshRequest",{enumerable:!0,get:function(){return qh.InlayHintRefreshRequest}});var Ns=Bb();Object.defineProperty(S,"DiagnosticServerCancellationData",{enumerable:!0,get:function(){return Ns.DiagnosticServerCancellationData}});Object.defineProperty(S,"DocumentDiagnosticReportKind",{enumerable:!0,get:function(){return Ns.DocumentDiagnosticReportKind}});Object.defineProperty(S,"DocumentDiagnosticRequest",{enumerable:!0,get:function(){return Ns.DocumentDiagnosticRequest}});Object.defineProperty(S,"WorkspaceDiagnosticRequest",{enumerable:!0,get:function(){return Ns.WorkspaceDiagnosticRequest}});Object.defineProperty(S,"DiagnosticRefreshRequest",{enumerable:!0,get:function(){return Ns.DiagnosticRefreshRequest}});var nr=Kb();Object.defineProperty(S,"NotebookCellKind",{enumerable:!0,get:function(){return nr.NotebookCellKind}});Object.defineProperty(S,"ExecutionSummary",{enumerable:!0,get:function(){return nr.ExecutionSummary}});Object.defineProperty(S,"NotebookCell",{enumerable:!0,get:function(){return nr.NotebookCell}});Object.defineProperty(S,"NotebookDocument",{enumerable:!0,get:function(){return nr.NotebookDocument}});Object.defineProperty(S,"NotebookDocumentSyncRegistrationType",{enumerable:!0,get:function(){return nr.NotebookDocumentSyncRegistrationType}});Object.defineProperty(S,"DidOpenNotebookDocumentNotification",{enumerable:!0,get:function(){return nr.DidOpenNotebookDocumentNotification}});Object.defineProperty(S,"NotebookCellArrayChange",{enumerable:!0,get:function(){return nr.NotebookCellArrayChange}});Object.defineProperty(S,"DidChangeNotebookDocumentNotification",{enumerable:!0,get:function(){return nr.DidChangeNotebookDocumentNotification}});Object.defineProperty(S,"DidSaveNotebookDocumentNotification",{enumerable:!0,get:function(){return nr.DidSaveNotebookDocumentNotification}});Object.defineProperty(S,"DidCloseNotebookDocumentNotification",{enumerable:!0,get:function(){return nr.DidCloseNotebookDocumentNotification}});var Yb;(function(t){function e(n){let r=n;return Wt.string(r.language)||Wt.string(r.scheme)||Wt.string(r.pattern)}t.is=e})(Yb=S.TextDocumentFilter||(S.TextDocumentFilter={}));var Zb;(function(t){function e(n){let r=n;return Wt.objectLiteral(r)&&(Wt.string(r.notebookType)||Wt.string(r.scheme)||Wt.string(r.pattern))}t.is=e})(Zb=S.NotebookDocumentFilter||(S.NotebookDocumentFilter={}));var ev;(function(t){function e(n){let r=n;return Wt.objectLiteral(r)&&(Wt.string(r.notebook)||Zb.is(r.notebook))&&(r.language===void 0||Wt.string(r.language))}t.is=e})(ev=S.NotebookCellTextDocumentFilter||(S.NotebookCellTextDocumentFilter={}));var tv;(function(t){function e(n){if(!Array.isArray(n))return!1;for(let r of n)if(!Wt.string(r)&&!Yb.is(r)&&!ev.is(r))return!1;return!0}t.is=e})(tv=S.DocumentSelector||(S.DocumentSelector={}));var JC;(function(t){t.method="client/registerCapability",t.messageDirection=ce.MessageDirection.serverToClient,t.type=new ce.ProtocolRequestType(t.method)})(JC=S.RegistrationRequest||(S.RegistrationRequest={}));var XC;(function(t){t.method="client/unregisterCapability",t.messageDirection=ce.MessageDirection.serverToClient,t.type=new ce.ProtocolRequestType(t.method)})(XC=S.UnregistrationRequest||(S.UnregistrationRequest={}));var QC;(function(t){t.Create="create",t.Rename="rename",t.Delete="delete"})(QC=S.ResourceOperationKind||(S.ResourceOperationKind={}));var YC;(function(t){t.Abort="abort",t.Transactional="transactional",t.TextOnlyTransactional="textOnlyTransactional",t.Undo="undo"})(YC=S.FailureHandlingKind||(S.FailureHandlingKind={}));var ZC;(function(t){t.UTF8="utf-8",t.UTF16="utf-16",t.UTF32="utf-32"})(ZC=S.PositionEncodingKind||(S.PositionEncodingKind={}));var eT;(function(t){function e(n){let r=n;return r&&Wt.string(r.id)&&r.id.length>0}t.hasId=e})(eT=S.StaticRegistrationOptions||(S.StaticRegistrationOptions={}));var tT;(function(t){function e(n){let r=n;return r&&(r.documentSelector===null||tv.is(r.documentSelector))}t.is=e})(tT=S.TextDocumentRegistrationOptions||(S.TextDocumentRegistrationOptions={}));var nT;(function(t){function e(r){let i=r;return Wt.objectLiteral(i)&&(i.workDoneProgress===void 0||Wt.boolean(i.workDoneProgress))}t.is=e;function n(r){let i=r;return i&&Wt.boolean(i.workDoneProgress)}t.hasWorkDoneProgress=n})(nT=S.WorkDoneProgressOptions||(S.WorkDoneProgressOptions={}));var rT;(function(t){t.method="initialize",t.messageDirection=ce.MessageDirection.clientToServer,t.type=new ce.ProtocolRequestType(t.method)})(rT=S.InitializeRequest||(S.InitializeRequest={}));var iT;(function(t){t.unknownProtocolVersion=1})(iT=S.InitializeErrorCodes||(S.InitializeErrorCodes={}));var oT;(function(t){t.method="initialized",t.messageDirection=ce.MessageDirection.clientToServer,t.type=new ce.ProtocolNotificationType(t.method)})(oT=S.InitializedNotification||(S.InitializedNotification={}));var sT;(function(t){t.method="shutdown",t.messageDirection=ce.MessageDirection.clientToServer,t.type=new ce.ProtocolRequestType0(t.method)})(sT=S.ShutdownRequest||(S.ShutdownRequest={}));var aT;(function(t){t.method="exit",t.messageDirection=ce.MessageDirection.clientToServer,t.type=new ce.ProtocolNotificationType0(t.method)})(aT=S.ExitNotification||(S.ExitNotification={}));var lT;(function(t){t.method="workspace/didChangeConfiguration",t.messageDirection=ce.MessageDirection.clientToServer,t.type=new ce.ProtocolNotificationType(t.method)})(lT=S.DidChangeConfigurationNotification||(S.DidChangeConfigurationNotification={}));var cT;(function(t){t.Error=1,t.Warning=2,t.Info=3,t.Log=4})(cT=S.MessageType||(S.MessageType={}));var uT;(function(t){t.method="window/showMessage",t.messageDirection=ce.MessageDirection.serverToClient,t.type=new ce.ProtocolNotificationType(t.method)})(uT=S.ShowMessageNotification||(S.ShowMessageNotification={}));var dT;(function(t){t.method="window/showMessageRequest",t.messageDirection=ce.MessageDirection.serverToClient,t.type=new ce.ProtocolRequestType(t.method)})(dT=S.ShowMessageRequest||(S.ShowMessageRequest={}));var hT;(function(t){t.method="window/logMessage",t.messageDirection=ce.MessageDirection.serverToClient,t.type=new ce.ProtocolNotificationType(t.method)})(hT=S.LogMessageNotification||(S.LogMessageNotification={}));var pT;(function(t){t.method="telemetry/event",t.messageDirection=ce.MessageDirection.serverToClient,t.type=new ce.ProtocolNotificationType(t.method)})(pT=S.TelemetryEventNotification||(S.TelemetryEventNotification={}));var mT;(function(t){t.None=0,t.Full=1,t.Incremental=2})(mT=S.TextDocumentSyncKind||(S.TextDocumentSyncKind={}));var fT;(function(t){t.method="textDocument/didOpen",t.messageDirection=ce.MessageDirection.clientToServer,t.type=new ce.ProtocolNotificationType(t.method)})(fT=S.DidOpenTextDocumentNotification||(S.DidOpenTextDocumentNotification={}));var gT;(function(t){function e(r){let i=r;return i!=null&&typeof i.text=="string"&&i.range!==void 0&&(i.rangeLength===void 0||typeof i.rangeLength=="number")}t.isIncremental=e;function n(r){let i=r;return i!=null&&typeof i.text=="string"&&i.range===void 0&&i.rangeLength===void 0}t.isFull=n})(gT=S.TextDocumentContentChangeEvent||(S.TextDocumentContentChangeEvent={}));var bT;(function(t){t.method="textDocument/didChange",t.messageDirection=ce.MessageDirection.clientToServer,t.type=new ce.ProtocolNotificationType(t.method)})(bT=S.DidChangeTextDocumentNotification||(S.DidChangeTextDocumentNotification={}));var vT;(function(t){t.method="textDocument/didClose",t.messageDirection=ce.MessageDirection.clientToServer,t.type=new ce.ProtocolNotificationType(t.method)})(vT=S.DidCloseTextDocumentNotification||(S.DidCloseTextDocumentNotification={}));var wT;(function(t){t.method="textDocument/didSave",t.messageDirection=ce.MessageDirection.clientToServer,t.type=new ce.ProtocolNotificationType(t.method)})(wT=S.DidSaveTextDocumentNotification||(S.DidSaveTextDocumentNotification={}));var yT;(function(t){t.Manual=1,t.AfterDelay=2,t.FocusOut=3})(yT=S.TextDocumentSaveReason||(S.TextDocumentSaveReason={}));var _T;(function(t){t.method="textDocument/willSave",t.messageDirection=ce.MessageDirection.clientToServer,t.type=new ce.ProtocolNotificationType(t.method)})(_T=S.WillSaveTextDocumentNotification||(S.WillSaveTextDocumentNotification={}));var ST;(function(t){t.method="textDocument/willSaveWaitUntil",t.messageDirection=ce.MessageDirection.clientToServer,t.type=new ce.ProtocolRequestType(t.method)})(ST=S.WillSaveTextDocumentWaitUntilRequest||(S.WillSaveTextDocumentWaitUntilRequest={}));var xT;(function(t){t.method="workspace/didChangeWatchedFiles",t.messageDirection=ce.MessageDirection.clientToServer,t.type=new ce.ProtocolNotificationType(t.method)})(xT=S.DidChangeWatchedFilesNotification||(S.DidChangeWatchedFilesNotification={}));var kT;(function(t){t.Created=1,t.Changed=2,t.Deleted=3})(kT=S.FileChangeType||(S.FileChangeType={}));var CT;(function(t){function e(n){let r=n;return Wt.objectLiteral(r)&&(Gb.URI.is(r.baseUri)||Gb.WorkspaceFolder.is(r.baseUri))&&Wt.string(r.pattern)}t.is=e})(CT=S.RelativePattern||(S.RelativePattern={}));var TT;(function(t){t.Create=1,t.Change=2,t.Delete=4})(TT=S.WatchKind||(S.WatchKind={}));var ET;(function(t){t.method="textDocument/publishDiagnostics",t.messageDirection=ce.MessageDirection.serverToClient,t.type=new ce.ProtocolNotificationType(t.method)})(ET=S.PublishDiagnosticsNotification||(S.PublishDiagnosticsNotification={}));var DT;(function(t){t.Invoked=1,t.TriggerCharacter=2,t.TriggerForIncompleteCompletions=3})(DT=S.CompletionTriggerKind||(S.CompletionTriggerKind={}));var FT;(function(t){t.method="textDocument/completion",t.messageDirection=ce.MessageDirection.clientToServer,t.type=new ce.ProtocolRequestType(t.method)})(FT=S.CompletionRequest||(S.CompletionRequest={}));var AT;(function(t){t.method="completionItem/resolve",t.messageDirection=ce.MessageDirection.clientToServer,t.type=new ce.ProtocolRequestType(t.method)})(AT=S.CompletionResolveRequest||(S.CompletionResolveRequest={}));var RT;(function(t){t.method="textDocument/hover",t.messageDirection=ce.MessageDirection.clientToServer,t.type=new ce.ProtocolRequestType(t.method)})(RT=S.HoverRequest||(S.HoverRequest={}));var IT;(function(t){t.Invoked=1,t.TriggerCharacter=2,t.ContentChange=3})(IT=S.SignatureHelpTriggerKind||(S.SignatureHelpTriggerKind={}));var MT;(function(t){t.method="textDocument/signatureHelp",t.messageDirection=ce.MessageDirection.clientToServer,t.type=new ce.ProtocolRequestType(t.method)})(MT=S.SignatureHelpRequest||(S.SignatureHelpRequest={}));var PT;(function(t){t.method="textDocument/definition",t.messageDirection=ce.MessageDirection.clientToServer,t.type=new ce.ProtocolRequestType(t.method)})(PT=S.DefinitionRequest||(S.DefinitionRequest={}));var zT;(function(t){t.method="textDocument/references",t.messageDirection=ce.MessageDirection.clientToServer,t.type=new ce.ProtocolRequestType(t.method)})(zT=S.ReferencesRequest||(S.ReferencesRequest={}));var OT;(function(t){t.method="textDocument/documentHighlight",t.messageDirection=ce.MessageDirection.clientToServer,t.type=new ce.ProtocolRequestType(t.method)})(OT=S.DocumentHighlightRequest||(S.DocumentHighlightRequest={}));var LT;(function(t){t.method="textDocument/documentSymbol",t.messageDirection=ce.MessageDirection.clientToServer,t.type=new ce.ProtocolRequestType(t.method)})(LT=S.DocumentSymbolRequest||(S.DocumentSymbolRequest={}));var NT;(function(t){t.method="textDocument/codeAction",t.messageDirection=ce.MessageDirection.clientToServer,t.type=new ce.ProtocolRequestType(t.method)})(NT=S.CodeActionRequest||(S.CodeActionRequest={}));var WT;(function(t){t.method="codeAction/resolve",t.messageDirection=ce.MessageDirection.clientToServer,t.type=new ce.ProtocolRequestType(t.method)})(WT=S.CodeActionResolveRequest||(S.CodeActionResolveRequest={}));var qT;(function(t){t.method="workspace/symbol",t.messageDirection=ce.MessageDirection.clientToServer,t.type=new ce.ProtocolRequestType(t.method)})(qT=S.WorkspaceSymbolRequest||(S.WorkspaceSymbolRequest={}));var UT;(function(t){t.method="workspaceSymbol/resolve",t.messageDirection=ce.MessageDirection.clientToServer,t.type=new ce.ProtocolRequestType(t.method)})(UT=S.WorkspaceSymbolResolveRequest||(S.WorkspaceSymbolResolveRequest={}));var jT;(function(t){t.method="textDocument/codeLens",t.messageDirection=ce.MessageDirection.clientToServer,t.type=new ce.ProtocolRequestType(t.method)})(jT=S.CodeLensRequest||(S.CodeLensRequest={}));var HT;(function(t){t.method="codeLens/resolve",t.messageDirection=ce.MessageDirection.clientToServer,t.type=new ce.ProtocolRequestType(t.method)})(HT=S.CodeLensResolveRequest||(S.CodeLensResolveRequest={}));var BT;(function(t){t.method="workspace/codeLens/refresh",t.messageDirection=ce.MessageDirection.serverToClient,t.type=new ce.ProtocolRequestType0(t.method)})(BT=S.CodeLensRefreshRequest||(S.CodeLensRefreshRequest={}));var $T;(function(t){t.method="textDocument/documentLink",t.messageDirection=ce.MessageDirection.clientToServer,t.type=new ce.ProtocolRequestType(t.method)})($T=S.DocumentLinkRequest||(S.DocumentLinkRequest={}));var VT;(function(t){t.method="documentLink/resolve",t.messageDirection=ce.MessageDirection.clientToServer,t.type=new ce.ProtocolRequestType(t.method)})(VT=S.DocumentLinkResolveRequest||(S.DocumentLinkResolveRequest={}));var KT;(function(t){t.method="textDocument/formatting",t.messageDirection=ce.MessageDirection.clientToServer,t.type=new ce.ProtocolRequestType(t.method)})(KT=S.DocumentFormattingRequest||(S.DocumentFormattingRequest={}));var GT;(function(t){t.method="textDocument/rangeFormatting",t.messageDirection=ce.MessageDirection.clientToServer,t.type=new ce.ProtocolRequestType(t.method)})(GT=S.DocumentRangeFormattingRequest||(S.DocumentRangeFormattingRequest={}));var JT;(function(t){t.method="textDocument/onTypeFormatting",t.messageDirection=ce.MessageDirection.clientToServer,t.type=new ce.ProtocolRequestType(t.method)})(JT=S.DocumentOnTypeFormattingRequest||(S.DocumentOnTypeFormattingRequest={}));var XT;(function(t){t.Identifier=1})(XT=S.PrepareSupportDefaultBehavior||(S.PrepareSupportDefaultBehavior={}));var QT;(function(t){t.method="textDocument/rename",t.messageDirection=ce.MessageDirection.clientToServer,t.type=new ce.ProtocolRequestType(t.method)})(QT=S.RenameRequest||(S.RenameRequest={}));var YT;(function(t){t.method="textDocument/prepareRename",t.messageDirection=ce.MessageDirection.clientToServer,t.type=new ce.ProtocolRequestType(t.method)})(YT=S.PrepareRenameRequest||(S.PrepareRenameRequest={}));var ZT;(function(t){t.method="workspace/executeCommand",t.messageDirection=ce.MessageDirection.clientToServer,t.type=new ce.ProtocolRequestType(t.method)})(ZT=S.ExecuteCommandRequest||(S.ExecuteCommandRequest={}));var eE;(function(t){t.method="workspace/applyEdit",t.messageDirection=ce.MessageDirection.serverToClient,t.type=new ce.ProtocolRequestType("workspace/applyEdit")})(eE=S.ApplyWorkspaceEditRequest||(S.ApplyWorkspaceEditRequest={}))});var iv=X(il=>{"use strict";Object.defineProperty(il,"__esModule",{value:!0});il.createProtocolConnection=void 0;var rv=Ni();function tE(t,e,n,r){return rv.ConnectionStrategy.is(r)&&(r={connectionStrategy:r}),(0,rv.createMessageConnection)(t,e,n,r)}il.createProtocolConnection=tE});var ov=X(Yt=>{"use strict";var nE=Yt&&Yt.__createBinding||(Object.create?function(t,e,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(e,n);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,i)}:function(t,e,n,r){r===void 0&&(r=n),t[r]=e[n]}),ol=Yt&&Yt.__exportStar||function(t,e){for(var n in t)n!=="default"&&!Object.prototype.hasOwnProperty.call(e,n)&&nE(e,t,n)};Object.defineProperty(Yt,"__esModule",{value:!0});Yt.LSPErrorCodes=Yt.createProtocolConnection=void 0;ol(Ni(),Yt);ol(Xt(),Yt);ol(ct(),Yt);ol(nv(),Yt);var rE=iv();Object.defineProperty(Yt,"createProtocolConnection",{enumerable:!0,get:function(){return rE.createProtocolConnection}});var iE;(function(t){t.lspReservedErrorRangeStart=-32899,t.RequestFailed=-32803,t.ServerCancelled=-32802,t.ContentModified=-32801,t.RequestCancelled=-32800,t.lspReservedErrorRangeEnd=-32800})(iE=Yt.LSPErrorCodes||(Yt.LSPErrorCodes={}))});var ft=X(rr=>{"use strict";var oE=rr&&rr.__createBinding||(Object.create?function(t,e,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(e,n);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,i)}:function(t,e,n,r){r===void 0&&(r=n),t[r]=e[n]}),sv=rr&&rr.__exportStar||function(t,e){for(var n in t)n!=="default"&&!Object.prototype.hasOwnProperty.call(e,n)&&oE(e,t,n)};Object.defineProperty(rr,"__esModule",{value:!0});rr.createProtocolConnection=void 0;var sE=Fh();sv(Fh(),rr);sv(ov(),rr);function aE(t,e,n,r){return(0,sE.createMessageConnection)(t,e,n,r)}rr.createProtocolConnection=aE});var jh=X(si=>{"use strict";Object.defineProperty(si,"__esModule",{value:!0});si.SemanticTokensBuilder=si.SemanticTokensDiff=si.SemanticTokensFeature=void 0;var sl=ft(),lE=t=>class extends t{get semanticTokens(){return{refresh:()=>this.connection.sendRequest(sl.SemanticTokensRefreshRequest.type),on:e=>{let n=sl.SemanticTokensRequest.type;return this.connection.onRequest(n,(r,i)=>e(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))},onDelta:e=>{let n=sl.SemanticTokensDeltaRequest.type;return this.connection.onRequest(n,(r,i)=>e(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))},onRange:e=>{let n=sl.SemanticTokensRangeRequest.type;return this.connection.onRequest(n,(r,i)=>e(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))}}}};si.SemanticTokensFeature=lE;var al=class{constructor(e,n){this.originalSequence=e,this.modifiedSequence=n}computeDiff(){let e=this.originalSequence.length,n=this.modifiedSequence.length,r=0;for(;r<n&&r<e&&this.originalSequence[r]===this.modifiedSequence[r];)r++;if(r<n&&r<e){let i=e-1,o=n-1;for(;i>=r&&o>=r&&this.originalSequence[i]===this.modifiedSequence[o];)i--,o--;(i<r||o<r)&&(i++,o++);let s=i-r+1,l=this.modifiedSequence.slice(r,o+1);return l.length===1&&l[0]===this.originalSequence[i]?[{start:r,deleteCount:s-1}]:[{start:r,deleteCount:s,data:l}]}else return r<n?[{start:r,deleteCount:0,data:this.modifiedSequence.slice(r)}]:r<e?[{start:r,deleteCount:e-r}]:[]}};si.SemanticTokensDiff=al;var Uh=class{constructor(){this._prevData=void 0,this.initialize()}initialize(){this._id=Date.now(),this._prevLine=0,this._prevChar=0,this._data=[],this._dataLen=0}push(e,n,r,i,o){let s=e,l=n;this._dataLen>0&&(s-=this._prevLine,s===0&&(l-=this._prevChar)),this._data[this._dataLen++]=s,this._data[this._dataLen++]=l,this._data[this._dataLen++]=r,this._data[this._dataLen++]=i,this._data[this._dataLen++]=o,this._prevLine=e,this._prevChar=n}get id(){return this._id.toString()}previousResult(e){this.id===e&&(this._prevData=this._data),this.initialize()}build(){return this._prevData=void 0,{resultId:this.id,data:this._data}}canBuildEdits(){return this._prevData!==void 0}buildEdits(){return this._prevData!==void 0?{resultId:this.id,edits:new al(this._prevData,this._data).computeDiff()}:this.build()}};si.SemanticTokensBuilder=Uh});var Bh=X(ll=>{"use strict";Object.defineProperty(ll,"__esModule",{value:!0});ll.TextDocuments=void 0;var qi=ft(),Hh=class{constructor(e){this._configuration=e,this._syncedDocuments=new Map,this._onDidChangeContent=new qi.Emitter,this._onDidOpen=new qi.Emitter,this._onDidClose=new qi.Emitter,this._onDidSave=new qi.Emitter,this._onWillSave=new qi.Emitter}get onDidOpen(){return this._onDidOpen.event}get onDidChangeContent(){return this._onDidChangeContent.event}get onWillSave(){return this._onWillSave.event}onWillSaveWaitUntil(e){this._willSaveWaitUntil=e}get onDidSave(){return this._onDidSave.event}get onDidClose(){return this._onDidClose.event}get(e){return this._syncedDocuments.get(e)}all(){return Array.from(this._syncedDocuments.values())}keys(){return Array.from(this._syncedDocuments.keys())}listen(e){e.__textDocumentSync=qi.TextDocumentSyncKind.Incremental;let n=[];return n.push(e.onDidOpenTextDocument(r=>{let i=r.textDocument,o=this._configuration.create(i.uri,i.languageId,i.version,i.text);this._syncedDocuments.set(i.uri,o);let s=Object.freeze({document:o});this._onDidOpen.fire(s),this._onDidChangeContent.fire(s)})),n.push(e.onDidChangeTextDocument(r=>{let i=r.textDocument,o=r.contentChanges;if(o.length===0)return;let{version:s}=i;if(s==null)throw new Error(`Received document change event for ${i.uri} without valid version identifier`);let l=this._syncedDocuments.get(i.uri);l!==void 0&&(l=this._configuration.update(l,o,s),this._syncedDocuments.set(i.uri,l),this._onDidChangeContent.fire(Object.freeze({document:l})))})),n.push(e.onDidCloseTextDocument(r=>{let i=this._syncedDocuments.get(r.textDocument.uri);i!==void 0&&(this._syncedDocuments.delete(r.textDocument.uri),this._onDidClose.fire(Object.freeze({document:i})))})),n.push(e.onWillSaveTextDocument(r=>{let i=this._syncedDocuments.get(r.textDocument.uri);i!==void 0&&this._onWillSave.fire(Object.freeze({document:i,reason:r.reason}))})),n.push(e.onWillSaveTextDocumentWaitUntil((r,i)=>{let o=this._syncedDocuments.get(r.textDocument.uri);return o!==void 0&&this._willSaveWaitUntil?this._willSaveWaitUntil(Object.freeze({document:o,reason:r.reason}),i):[]})),n.push(e.onDidSaveTextDocument(r=>{let i=this._syncedDocuments.get(r.textDocument.uri);i!==void 0&&this._onDidSave.fire(Object.freeze({document:i}))})),qi.Disposable.create(()=>{n.forEach(r=>r.dispose())})}};ll.TextDocuments=Hh});var Vh=X(Co=>{"use strict";Object.defineProperty(Co,"__esModule",{value:!0});Co.NotebookDocuments=Co.NotebookSyncFeature=void 0;var fn=ft(),av=Bh(),cE=t=>class extends t{get synchronization(){return{onDidOpenNotebookDocument:e=>this.connection.onNotification(fn.DidOpenNotebookDocumentNotification.type,n=>{e(n)}),onDidChangeNotebookDocument:e=>this.connection.onNotification(fn.DidChangeNotebookDocumentNotification.type,n=>{e(n)}),onDidSaveNotebookDocument:e=>this.connection.onNotification(fn.DidSaveNotebookDocumentNotification.type,n=>{e(n)}),onDidCloseNotebookDocument:e=>this.connection.onNotification(fn.DidCloseNotebookDocumentNotification.type,n=>{e(n)})}}};Co.NotebookSyncFeature=cE;var ai=class{onDidOpenTextDocument(e){return this.openHandler=e,fn.Disposable.create(()=>{this.openHandler=void 0})}openTextDocument(e){this.openHandler&&this.openHandler(e)}onDidChangeTextDocument(e){return this.changeHandler=e,fn.Disposable.create(()=>{this.changeHandler=e})}changeTextDocument(e){this.changeHandler&&this.changeHandler(e)}onDidCloseTextDocument(e){return this.closeHandler=e,fn.Disposable.create(()=>{this.closeHandler=void 0})}closeTextDocument(e){this.closeHandler&&this.closeHandler(e)}onWillSaveTextDocument(){return ai.NULL_DISPOSE}onWillSaveTextDocumentWaitUntil(){return ai.NULL_DISPOSE}onDidSaveTextDocument(){return ai.NULL_DISPOSE}};ai.NULL_DISPOSE=Object.freeze({dispose:()=>{}});var $h=class{constructor(e){e instanceof av.TextDocuments?this._cellTextDocuments=e:this._cellTextDocuments=new av.TextDocuments(e),this.notebookDocuments=new Map,this.notebookCellMap=new Map,this._onDidOpen=new fn.Emitter,this._onDidChange=new fn.Emitter,this._onDidSave=new fn.Emitter,this._onDidClose=new fn.Emitter}get cellTextDocuments(){return this._cellTextDocuments}getCellTextDocument(e){return this._cellTextDocuments.get(e.document)}getNotebookDocument(e){return this.notebookDocuments.get(e)}getNotebookCell(e){let n=this.notebookCellMap.get(e);return n&&n[0]}findNotebookDocumentForCell(e){let n=typeof e=="string"?e:e.document,r=this.notebookCellMap.get(n);return r&&r[1]}get onDidOpen(){return this._onDidOpen.event}get onDidSave(){return this._onDidSave.event}get onDidChange(){return this._onDidChange.event}get onDidClose(){return this._onDidClose.event}listen(e){let n=new ai,r=[];return r.push(this.cellTextDocuments.listen(n)),r.push(e.notebooks.synchronization.onDidOpenNotebookDocument(i=>{this.notebookDocuments.set(i.notebookDocument.uri,i.notebookDocument);for(let o of i.cellTextDocuments)n.openTextDocument({textDocument:o});this.updateCellMap(i.notebookDocument),this._onDidOpen.fire(i.notebookDocument)})),r.push(e.notebooks.synchronization.onDidChangeNotebookDocument(i=>{let o=this.notebookDocuments.get(i.notebookDocument.uri);if(o===void 0)return;o.version=i.notebookDocument.version;let s=o.metadata,l=!1,a=i.change;a.metadata!==void 0&&(l=!0,o.metadata=a.metadata);let c=[],u=[],d=[],h=[];if(a.cells!==void 0){let _=a.cells;if(_.structure!==void 0){let f=_.structure.array;if(o.cells.splice(f.start,f.deleteCount,...f.cells!==void 0?f.cells:[]),_.structure.didOpen!==void 0)for(let g of _.structure.didOpen)n.openTextDocument({textDocument:g}),c.push(g.uri);if(_.structure.didClose)for(let g of _.structure.didClose)n.closeTextDocument({textDocument:g}),u.push(g.uri)}if(_.data!==void 0){let f=new Map(_.data.map(g=>[g.document,g]));for(let g=0;g<=o.cells.length;g++){let D=f.get(o.cells[g].document);if(D!==void 0){let L=o.cells.splice(g,1,D);if(d.push({old:L[0],new:D}),f.delete(D.document),f.size===0)break}}}if(_.textContent!==void 0)for(let f of _.textContent)n.changeTextDocument({textDocument:f.document,contentChanges:f.changes}),h.push(f.document.uri)}this.updateCellMap(o);let p={notebookDocument:o};l&&(p.metadata={old:s,new:o.metadata});let w=[];for(let _ of c)w.push(this.getNotebookCell(_));let v=[];for(let _ of u)v.push(this.getNotebookCell(_));let x=[];for(let _ of h)x.push(this.getNotebookCell(_));(w.length>0||v.length>0||d.length>0||x.length>0)&&(p.cells={added:w,removed:v,changed:{data:d,textContent:x}}),(p.metadata!==void 0||p.cells!==void 0)&&this._onDidChange.fire(p)})),r.push(e.notebooks.synchronization.onDidSaveNotebookDocument(i=>{let o=this.notebookDocuments.get(i.notebookDocument.uri);o!==void 0&&this._onDidSave.fire(o)})),r.push(e.notebooks.synchronization.onDidCloseNotebookDocument(i=>{let o=this.notebookDocuments.get(i.notebookDocument.uri);if(o!==void 0){this._onDidClose.fire(o);for(let s of i.cellTextDocuments)n.closeTextDocument({textDocument:s});this.notebookDocuments.delete(i.notebookDocument.uri);for(let s of o.cells)this.notebookCellMap.delete(s.document)}})),fn.Disposable.create(()=>{r.forEach(i=>i.dispose())})}updateCellMap(e){for(let n of e.cells)this.notebookCellMap.set(n.document,[n,e])}};Co.NotebookDocuments=$h});var Kh=X(Tt=>{"use strict";Object.defineProperty(Tt,"__esModule",{value:!0});Tt.thenable=Tt.typedArray=Tt.stringArray=Tt.array=Tt.func=Tt.error=Tt.number=Tt.string=Tt.boolean=void 0;function uE(t){return t===!0||t===!1}Tt.boolean=uE;function lv(t){return typeof t=="string"||t instanceof String}Tt.string=lv;function dE(t){return typeof t=="number"||t instanceof Number}Tt.number=dE;function hE(t){return t instanceof Error}Tt.error=hE;function cv(t){return typeof t=="function"}Tt.func=cv;function uv(t){return Array.isArray(t)}Tt.array=uv;function pE(t){return uv(t)&&t.every(e=>lv(e))}Tt.stringArray=pE;function mE(t,e){return Array.isArray(t)&&t.every(e)}Tt.typedArray=mE;function fE(t){return t&&cv(t.then)}Tt.thenable=fE});var Gh=X(gn=>{"use strict";Object.defineProperty(gn,"__esModule",{value:!0});gn.generateUuid=gn.parse=gn.isUUID=gn.v4=gn.empty=void 0;var Ws=class{constructor(e){this._value=e}asHex(){return this._value}equals(e){return this.asHex()===e.asHex()}},Me=class extends Ws{constructor(){super([Me._randomHex(),Me._randomHex(),Me._randomHex(),Me._randomHex(),Me._randomHex(),Me._randomHex(),Me._randomHex(),Me._randomHex(),"-",Me._randomHex(),Me._randomHex(),Me._randomHex(),Me._randomHex(),"-","4",Me._randomHex(),Me._randomHex(),Me._randomHex(),"-",Me._oneOf(Me._timeHighBits),Me._randomHex(),Me._randomHex(),Me._randomHex(),"-",Me._randomHex(),Me._randomHex(),Me._randomHex(),Me._randomHex(),Me._randomHex(),Me._randomHex(),Me._randomHex(),Me._randomHex(),Me._randomHex(),Me._randomHex(),Me._randomHex(),Me._randomHex()].join(""))}static _oneOf(e){return e[Math.floor(e.length*Math.random())]}static _randomHex(){return Me._oneOf(Me._chars)}};Me._chars=["0","1","2","3","4","5","6","6","7","8","9","a","b","c","d","e","f"];Me._timeHighBits=["8","9","a","b"];gn.empty=new Ws("00000000-0000-0000-0000-000000000000");function dv(){return new Me}gn.v4=dv;var gE=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;function hv(t){return gE.test(t)}gn.isUUID=hv;function bE(t){if(!hv(t))throw new Error("invalid uuid");return new Ws(t)}gn.parse=bE;function vE(){return dv().asHex()}gn.generateUuid=vE});var pv=X(ci=>{"use strict";Object.defineProperty(ci,"__esModule",{value:!0});ci.attachPartialResult=ci.ProgressFeature=ci.attachWorkDone=void 0;var li=ft(),wE=Gh(),ir=class{constructor(e,n){this._connection=e,this._token=n,ir.Instances.set(this._token,this)}begin(e,n,r,i){let o={kind:"begin",title:e,percentage:n,message:r,cancellable:i};this._connection.sendProgress(li.WorkDoneProgress.type,this._token,o)}report(e,n){let r={kind:"report"};typeof e=="number"?(r.percentage=e,n!==void 0&&(r.message=n)):r.message=e,this._connection.sendProgress(li.WorkDoneProgress.type,this._token,r)}done(){ir.Instances.delete(this._token),this._connection.sendProgress(li.WorkDoneProgress.type,this._token,{kind:"end"})}};ir.Instances=new Map;var cl=class extends ir{constructor(e,n){super(e,n),this._source=new li.CancellationTokenSource}get token(){return this._source.token}done(){this._source.dispose(),super.done()}cancel(){this._source.cancel()}},qs=class{constructor(){}begin(){}report(){}done(){}},ul=class extends qs{constructor(){super(),this._source=new li.CancellationTokenSource}get token(){return this._source.token}done(){this._source.dispose()}cancel(){this._source.cancel()}};function yE(t,e){if(e===void 0||e.workDoneToken===void 0)return new qs;let n=e.workDoneToken;return delete e.workDoneToken,new ir(t,n)}ci.attachWorkDone=yE;var _E=t=>class extends t{constructor(){super(),this._progressSupported=!1}initialize(e){super.initialize(e),e?.window?.workDoneProgress===!0&&(this._progressSupported=!0,this.connection.onNotification(li.WorkDoneProgressCancelNotification.type,n=>{let r=ir.Instances.get(n.token);(r instanceof cl||r instanceof ul)&&r.cancel()}))}attachWorkDoneProgress(e){return e===void 0?new qs:new ir(this.connection,e)}createWorkDoneProgress(){if(this._progressSupported){let e=(0,wE.generateUuid)();return this.connection.sendRequest(li.WorkDoneProgressCreateRequest.type,{token:e}).then(()=>new cl(this.connection,e))}else return Promise.resolve(new ul)}};ci.ProgressFeature=_E;var Jh;(function(t){t.type=new li.ProgressType})(Jh||(Jh={}));var Xh=class{constructor(e,n){this._connection=e,this._token=n}report(e){this._connection.sendProgress(Jh.type,this._token,e)}};function SE(t,e){if(e===void 0||e.partialResultToken===void 0)return;let n=e.partialResultToken;return delete e.partialResultToken,new Xh(t,n)}ci.attachPartialResult=SE});var mv=X(dl=>{"use strict";Object.defineProperty(dl,"__esModule",{value:!0});dl.ConfigurationFeature=void 0;var xE=ft(),kE=Kh(),CE=t=>class extends t{getConfiguration(e){return e?kE.string(e)?this._getConfiguration({section:e}):this._getConfiguration(e):this._getConfiguration({})}_getConfiguration(e){let n={items:Array.isArray(e)?e:[e]};return this.connection.sendRequest(xE.ConfigurationRequest.type,n).then(r=>Array.isArray(r)?Array.isArray(e)?r:r[0]:Array.isArray(e)?[]:null)}};dl.ConfigurationFeature=CE});var fv=X(pl=>{"use strict";Object.defineProperty(pl,"__esModule",{value:!0});pl.WorkspaceFoldersFeature=void 0;var hl=ft(),TE=t=>class extends t{constructor(){super(),this._notificationIsAutoRegistered=!1}initialize(e){super.initialize(e);let n=e.workspace;n&&n.workspaceFolders&&(this._onDidChangeWorkspaceFolders=new hl.Emitter,this.connection.onNotification(hl.DidChangeWorkspaceFoldersNotification.type,r=>{this._onDidChangeWorkspaceFolders.fire(r.event)}))}fillServerCapabilities(e){super.fillServerCapabilities(e);let n=e.workspace?.workspaceFolders?.changeNotifications;this._notificationIsAutoRegistered=n===!0||typeof n=="string"}getWorkspaceFolders(){return this.connection.sendRequest(hl.WorkspaceFoldersRequest.type)}get onDidChangeWorkspaceFolders(){if(!this._onDidChangeWorkspaceFolders)throw new Error("Client doesn't support sending workspace folder change events.");return!this._notificationIsAutoRegistered&&!this._unregistration&&(this._unregistration=this.connection.client.register(hl.DidChangeWorkspaceFoldersNotification.type)),this._onDidChangeWorkspaceFolders.event}};pl.WorkspaceFoldersFeature=TE});var gv=X(ml=>{"use strict";Object.defineProperty(ml,"__esModule",{value:!0});ml.CallHierarchyFeature=void 0;var Qh=ft(),EE=t=>class extends t{get callHierarchy(){return{onPrepare:e=>this.connection.onRequest(Qh.CallHierarchyPrepareRequest.type,(n,r)=>e(n,r,this.attachWorkDoneProgress(n),void 0)),onIncomingCalls:e=>{let n=Qh.CallHierarchyIncomingCallsRequest.type;return this.connection.onRequest(n,(r,i)=>e(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))},onOutgoingCalls:e=>{let n=Qh.CallHierarchyOutgoingCallsRequest.type;return this.connection.onRequest(n,(r,i)=>e(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))}}}};ml.CallHierarchyFeature=EE});var bv=X(fl=>{"use strict";Object.defineProperty(fl,"__esModule",{value:!0});fl.ShowDocumentFeature=void 0;var DE=ft(),FE=t=>class extends t{showDocument(e){return this.connection.sendRequest(DE.ShowDocumentRequest.type,e)}};fl.ShowDocumentFeature=FE});var vv=X(gl=>{"use strict";Object.defineProperty(gl,"__esModule",{value:!0});gl.FileOperationsFeature=void 0;var To=ft(),AE=t=>class extends t{onDidCreateFiles(e){return this.connection.onNotification(To.DidCreateFilesNotification.type,n=>{e(n)})}onDidRenameFiles(e){return this.connection.onNotification(To.DidRenameFilesNotification.type,n=>{e(n)})}onDidDeleteFiles(e){return this.connection.onNotification(To.DidDeleteFilesNotification.type,n=>{e(n)})}onWillCreateFiles(e){return this.connection.onRequest(To.WillCreateFilesRequest.type,(n,r)=>e(n,r))}onWillRenameFiles(e){return this.connection.onRequest(To.WillRenameFilesRequest.type,(n,r)=>e(n,r))}onWillDeleteFiles(e){return this.connection.onRequest(To.WillDeleteFilesRequest.type,(n,r)=>e(n,r))}};gl.FileOperationsFeature=AE});var wv=X(bl=>{"use strict";Object.defineProperty(bl,"__esModule",{value:!0});bl.LinkedEditingRangeFeature=void 0;var RE=ft(),IE=t=>class extends t{onLinkedEditingRange(e){return this.connection.onRequest(RE.LinkedEditingRangeRequest.type,(n,r)=>e(n,r,this.attachWorkDoneProgress(n),void 0))}};bl.LinkedEditingRangeFeature=IE});var yv=X(vl=>{"use strict";Object.defineProperty(vl,"__esModule",{value:!0});vl.TypeHierarchyFeature=void 0;var Yh=ft(),ME=t=>class extends t{get typeHierarchy(){return{onPrepare:e=>this.connection.onRequest(Yh.TypeHierarchyPrepareRequest.type,(n,r)=>e(n,r,this.attachWorkDoneProgress(n),void 0)),onSupertypes:e=>{let n=Yh.TypeHierarchySupertypesRequest.type;return this.connection.onRequest(n,(r,i)=>e(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))},onSubtypes:e=>{let n=Yh.TypeHierarchySubtypesRequest.type;return this.connection.onRequest(n,(r,i)=>e(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))}}}};vl.TypeHierarchyFeature=ME});var Sv=X(wl=>{"use strict";Object.defineProperty(wl,"__esModule",{value:!0});wl.InlineValueFeature=void 0;var _v=ft(),PE=t=>class extends t{get inlineValue(){return{refresh:()=>this.connection.sendRequest(_v.InlineValueRefreshRequest.type),on:e=>this.connection.onRequest(_v.InlineValueRequest.type,(n,r)=>e(n,r,this.attachWorkDoneProgress(n)))}}};wl.InlineValueFeature=PE});var xv=X(yl=>{"use strict";Object.defineProperty(yl,"__esModule",{value:!0});yl.InlayHintFeature=void 0;var Zh=ft(),zE=t=>class extends t{get inlayHint(){return{refresh:()=>this.connection.sendRequest(Zh.InlayHintRefreshRequest.type),on:e=>this.connection.onRequest(Zh.InlayHintRequest.type,(n,r)=>e(n,r,this.attachWorkDoneProgress(n))),resolve:e=>this.connection.onRequest(Zh.InlayHintResolveRequest.type,(n,r)=>e(n,r))}}};yl.InlayHintFeature=zE});var kv=X(_l=>{"use strict";Object.defineProperty(_l,"__esModule",{value:!0});_l.DiagnosticFeature=void 0;var Us=ft(),OE=t=>class extends t{get diagnostics(){return{refresh:()=>this.connection.sendRequest(Us.DiagnosticRefreshRequest.type),on:e=>this.connection.onRequest(Us.DocumentDiagnosticRequest.type,(n,r)=>e(n,r,this.attachWorkDoneProgress(n),this.attachPartialResultProgress(Us.DocumentDiagnosticRequest.partialResult,n))),onWorkspace:e=>this.connection.onRequest(Us.WorkspaceDiagnosticRequest.type,(n,r)=>e(n,r,this.attachWorkDoneProgress(n),this.attachPartialResultProgress(Us.WorkspaceDiagnosticRequest.partialResult,n)))}}};_l.DiagnosticFeature=OE});var Cv=X(Sl=>{"use strict";Object.defineProperty(Sl,"__esModule",{value:!0});Sl.MonikerFeature=void 0;var LE=ft(),NE=t=>class extends t{get moniker(){return{on:e=>{let n=LE.MonikerRequest.type;return this.connection.onRequest(n,(r,i)=>e(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))}}}};Sl.MonikerFeature=NE});var Nv=X(Ne=>{"use strict";Object.defineProperty(Ne,"__esModule",{value:!0});Ne.createConnection=Ne.combineFeatures=Ne.combineNotebooksFeatures=Ne.combineLanguagesFeatures=Ne.combineWorkspaceFeatures=Ne.combineWindowFeatures=Ne.combineClientFeatures=Ne.combineTracerFeatures=Ne.combineTelemetryFeatures=Ne.combineConsoleFeatures=Ne._NotebooksImpl=Ne._LanguagesImpl=Ne.BulkUnregistration=Ne.BulkRegistration=Ne.ErrorMessageTracker=void 0;var me=ft(),bn=Kh(),tp=Gh(),Ee=pv(),WE=mv(),qE=fv(),UE=gv(),jE=jh(),HE=bv(),BE=vv(),$E=wv(),VE=yv(),KE=Sv(),GE=xv(),JE=kv(),XE=Vh(),QE=Cv();function ep(t){if(t!==null)return t}var np=class{constructor(){this._messages=Object.create(null)}add(e){let n=this._messages[e];n||(n=0),n++,this._messages[e]=n}sendErrors(e){Object.keys(this._messages).forEach(n=>{e.window.showErrorMessage(n)})}};Ne.ErrorMessageTracker=np;var xl=class{constructor(){}rawAttach(e){this._rawConnection=e}attach(e){this._connection=e}get connection(){if(!this._connection)throw new Error("Remote is not attached to a connection yet.");return this._connection}fillServerCapabilities(e){}initialize(e){}error(e){this.send(me.MessageType.Error,e)}warn(e){this.send(me.MessageType.Warning,e)}info(e){this.send(me.MessageType.Info,e)}log(e){this.send(me.MessageType.Log,e)}send(e,n){this._rawConnection&&this._rawConnection.sendNotification(me.LogMessageNotification.type,{type:e,message:n}).catch(()=>{(0,me.RAL)().console.error("Sending log message failed")})}},rp=class{constructor(){}attach(e){this._connection=e}get connection(){if(!this._connection)throw new Error("Remote is not attached to a connection yet.");return this._connection}initialize(e){}fillServerCapabilities(e){}showErrorMessage(e,...n){let r={type:me.MessageType.Error,message:e,actions:n};return this.connection.sendRequest(me.ShowMessageRequest.type,r).then(ep)}showWarningMessage(e,...n){let r={type:me.MessageType.Warning,message:e,actions:n};return this.connection.sendRequest(me.ShowMessageRequest.type,r).then(ep)}showInformationMessage(e,...n){let r={type:me.MessageType.Info,message:e,actions:n};return this.connection.sendRequest(me.ShowMessageRequest.type,r).then(ep)}},Tv=(0,HE.ShowDocumentFeature)((0,Ee.ProgressFeature)(rp)),YE;(function(t){function e(){return new kl}t.create=e})(YE=Ne.BulkRegistration||(Ne.BulkRegistration={}));var kl=class{constructor(){this._registrations=[],this._registered=new Set}add(e,n){let r=bn.string(e)?e:e.method;if(this._registered.has(r))throw new Error(`${r} is already added to this registration`);let i=tp.generateUuid();this._registrations.push({id:i,method:r,registerOptions:n||{}}),this._registered.add(r)}asRegistrationParams(){return{registrations:this._registrations}}},ZE;(function(t){function e(){return new js(void 0,[])}t.create=e})(ZE=Ne.BulkUnregistration||(Ne.BulkUnregistration={}));var js=class{constructor(e,n){this._connection=e,this._unregistrations=new Map,n.forEach(r=>{this._unregistrations.set(r.method,r)})}get isAttached(){return!!this._connection}attach(e){this._connection=e}add(e){this._unregistrations.set(e.method,e)}dispose(){let e=[];for(let r of this._unregistrations.values())e.push(r);let n={unregisterations:e};this._connection.sendRequest(me.UnregistrationRequest.type,n).catch(()=>{this._connection.console.info("Bulk unregistration failed.")})}disposeSingle(e){let n=bn.string(e)?e:e.method,r=this._unregistrations.get(n);if(!r)return!1;let i={unregisterations:[r]};return this._connection.sendRequest(me.UnregistrationRequest.type,i).then(()=>{this._unregistrations.delete(n)},o=>{this._connection.console.info(`Un-registering request handler for ${r.id} failed.`)}),!0}},Cl=class{attach(e){this._connection=e}get connection(){if(!this._connection)throw new Error("Remote is not attached to a connection yet.");return this._connection}initialize(e){}fillServerCapabilities(e){}register(e,n,r){return e instanceof kl?this.registerMany(e):e instanceof js?this.registerSingle1(e,n,r):this.registerSingle2(e,n)}registerSingle1(e,n,r){let i=bn.string(n)?n:n.method,o=tp.generateUuid(),s={registrations:[{id:o,method:i,registerOptions:r||{}}]};return e.isAttached||e.attach(this.connection),this.connection.sendRequest(me.RegistrationRequest.type,s).then(l=>(e.add({id:o,method:i}),e),l=>(this.connection.console.info(`Registering request handler for ${i} failed.`),Promise.reject(l)))}registerSingle2(e,n){let r=bn.string(e)?e:e.method,i=tp.generateUuid(),o={registrations:[{id:i,method:r,registerOptions:n||{}}]};return this.connection.sendRequest(me.RegistrationRequest.type,o).then(s=>me.Disposable.create(()=>{this.unregisterSingle(i,r).catch(()=>{this.connection.console.info(`Un-registering capability with id ${i} failed.`)})}),s=>(this.connection.console.info(`Registering request handler for ${r} failed.`),Promise.reject(s)))}unregisterSingle(e,n){let r={unregisterations:[{id:e,method:n}]};return this.connection.sendRequest(me.UnregistrationRequest.type,r).catch(()=>{this.connection.console.info(`Un-registering request handler for ${e} failed.`)})}registerMany(e){let n=e.asRegistrationParams();return this.connection.sendRequest(me.RegistrationRequest.type,n).then(()=>new js(this._connection,n.registrations.map(r=>({id:r.id,method:r.method}))),r=>(this.connection.console.info("Bulk registration failed."),Promise.reject(r)))}},ip=class{constructor(){}attach(e){this._connection=e}get connection(){if(!this._connection)throw new Error("Remote is not attached to a connection yet.");return this._connection}initialize(e){}fillServerCapabilities(e){}applyEdit(e){function n(i){return i&&!!i.edit}let r=n(e)?e:{edit:e};return this.connection.sendRequest(me.ApplyWorkspaceEditRequest.type,r)}},Ev=(0,BE.FileOperationsFeature)((0,qE.WorkspaceFoldersFeature)((0,WE.ConfigurationFeature)(ip))),Tl=class{constructor(){this._trace=me.Trace.Off}attach(e){this._connection=e}get connection(){if(!this._connection)throw new Error("Remote is not attached to a connection yet.");return this._connection}initialize(e){}fillServerCapabilities(e){}set trace(e){this._trace=e}log(e,n){this._trace!==me.Trace.Off&&this.connection.sendNotification(me.LogTraceNotification.type,{message:e,verbose:this._trace===me.Trace.Verbose?n:void 0}).catch(()=>{})}},El=class{constructor(){}attach(e){this._connection=e}get connection(){if(!this._connection)throw new Error("Remote is not attached to a connection yet.");return this._connection}initialize(e){}fillServerCapabilities(e){}logEvent(e){this.connection.sendNotification(me.TelemetryEventNotification.type,e).catch(()=>{this.connection.console.log("Sending TelemetryEventNotification failed")})}},Dl=class{constructor(){}attach(e){this._connection=e}get connection(){if(!this._connection)throw new Error("Remote is not attached to a connection yet.");return this._connection}initialize(e){}fillServerCapabilities(e){}attachWorkDoneProgress(e){return(0,Ee.attachWorkDone)(this.connection,e)}attachPartialResultProgress(e,n){return(0,Ee.attachPartialResult)(this.connection,n)}};Ne._LanguagesImpl=Dl;var Dv=(0,QE.MonikerFeature)((0,JE.DiagnosticFeature)((0,GE.InlayHintFeature)((0,KE.InlineValueFeature)((0,VE.TypeHierarchyFeature)((0,$E.LinkedEditingRangeFeature)((0,jE.SemanticTokensFeature)((0,UE.CallHierarchyFeature)(Dl)))))))),Fl=class{constructor(){}attach(e){this._connection=e}get connection(){if(!this._connection)throw new Error("Remote is not attached to a connection yet.");return this._connection}initialize(e){}fillServerCapabilities(e){}attachWorkDoneProgress(e){return(0,Ee.attachWorkDone)(this.connection,e)}attachPartialResultProgress(e,n){return(0,Ee.attachPartialResult)(this.connection,n)}};Ne._NotebooksImpl=Fl;var Fv=(0,XE.NotebookSyncFeature)(Fl);function Av(t,e){return function(n){return e(t(n))}}Ne.combineConsoleFeatures=Av;function Rv(t,e){return function(n){return e(t(n))}}Ne.combineTelemetryFeatures=Rv;function Iv(t,e){return function(n){return e(t(n))}}Ne.combineTracerFeatures=Iv;function Mv(t,e){return function(n){return e(t(n))}}Ne.combineClientFeatures=Mv;function Pv(t,e){return function(n){return e(t(n))}}Ne.combineWindowFeatures=Pv;function zv(t,e){return function(n){return e(t(n))}}Ne.combineWorkspaceFeatures=zv;function Ov(t,e){return function(n){return e(t(n))}}Ne.combineLanguagesFeatures=Ov;function Lv(t,e){return function(n){return e(t(n))}}Ne.combineNotebooksFeatures=Lv;function e2(t,e){function n(i,o,s){return i&&o?s(i,o):i||o}return{__brand:"features",console:n(t.console,e.console,Av),tracer:n(t.tracer,e.tracer,Iv),telemetry:n(t.telemetry,e.telemetry,Rv),client:n(t.client,e.client,Mv),window:n(t.window,e.window,Pv),workspace:n(t.workspace,e.workspace,zv),languages:n(t.languages,e.languages,Ov),notebooks:n(t.notebooks,e.notebooks,Lv)}}Ne.combineFeatures=e2;function t2(t,e,n){let r=n&&n.console?new(n.console(xl)):new xl,i=t(r);r.rawAttach(i);let o=n&&n.tracer?new(n.tracer(Tl)):new Tl,s=n&&n.telemetry?new(n.telemetry(El)):new El,l=n&&n.client?new(n.client(Cl)):new Cl,a=n&&n.window?new(n.window(Tv)):new Tv,c=n&&n.workspace?new(n.workspace(Ev)):new Ev,u=n&&n.languages?new(n.languages(Dv)):new Dv,d=n&&n.notebooks?new(n.notebooks(Fv)):new Fv,h=[r,o,s,l,a,c,u,d];function p(f){return f instanceof Promise?f:bn.thenable(f)?new Promise((g,D)=>{f.then(L=>g(L),L=>D(L))}):Promise.resolve(f)}let w,v,x,_={listen:()=>i.listen(),sendRequest:(f,...g)=>i.sendRequest(bn.string(f)?f:f.method,...g),onRequest:(f,g)=>i.onRequest(f,g),sendNotification:(f,g)=>{let D=bn.string(f)?f:f.method;return arguments.length===1?i.sendNotification(D):i.sendNotification(D,g)},onNotification:(f,g)=>i.onNotification(f,g),onProgress:i.onProgress,sendProgress:i.sendProgress,onInitialize:f=>(v=f,{dispose:()=>{v=void 0}}),onInitialized:f=>i.onNotification(me.InitializedNotification.type,f),onShutdown:f=>(w=f,{dispose:()=>{w=void 0}}),onExit:f=>(x=f,{dispose:()=>{x=void 0}}),get console(){return r},get telemetry(){return s},get tracer(){return o},get client(){return l},get window(){return a},get workspace(){return c},get languages(){return u},get notebooks(){return d},onDidChangeConfiguration:f=>i.onNotification(me.DidChangeConfigurationNotification.type,f),onDidChangeWatchedFiles:f=>i.onNotification(me.DidChangeWatchedFilesNotification.type,f),__textDocumentSync:void 0,onDidOpenTextDocument:f=>i.onNotification(me.DidOpenTextDocumentNotification.type,f),onDidChangeTextDocument:f=>i.onNotification(me.DidChangeTextDocumentNotification.type,f),onDidCloseTextDocument:f=>i.onNotification(me.DidCloseTextDocumentNotification.type,f),onWillSaveTextDocument:f=>i.onNotification(me.WillSaveTextDocumentNotification.type,f),onWillSaveTextDocumentWaitUntil:f=>i.onRequest(me.WillSaveTextDocumentWaitUntilRequest.type,f),onDidSaveTextDocument:f=>i.onNotification(me.DidSaveTextDocumentNotification.type,f),sendDiagnostics:f=>i.sendNotification(me.PublishDiagnosticsNotification.type,f),onHover:f=>i.onRequest(me.HoverRequest.type,(g,D)=>f(g,D,(0,Ee.attachWorkDone)(i,g),void 0)),onCompletion:f=>i.onRequest(me.CompletionRequest.type,(g,D)=>f(g,D,(0,Ee.attachWorkDone)(i,g),(0,Ee.attachPartialResult)(i,g))),onCompletionResolve:f=>i.onRequest(me.CompletionResolveRequest.type,f),onSignatureHelp:f=>i.onRequest(me.SignatureHelpRequest.type,(g,D)=>f(g,D,(0,Ee.attachWorkDone)(i,g),void 0)),onDeclaration:f=>i.onRequest(me.DeclarationRequest.type,(g,D)=>f(g,D,(0,Ee.attachWorkDone)(i,g),(0,Ee.attachPartialResult)(i,g))),onDefinition:f=>i.onRequest(me.DefinitionRequest.type,(g,D)=>f(g,D,(0,Ee.attachWorkDone)(i,g),(0,Ee.attachPartialResult)(i,g))),onTypeDefinition:f=>i.onRequest(me.TypeDefinitionRequest.type,(g,D)=>f(g,D,(0,Ee.attachWorkDone)(i,g),(0,Ee.attachPartialResult)(i,g))),onImplementation:f=>i.onRequest(me.ImplementationRequest.type,(g,D)=>f(g,D,(0,Ee.attachWorkDone)(i,g),(0,Ee.attachPartialResult)(i,g))),onReferences:f=>i.onRequest(me.ReferencesRequest.type,(g,D)=>f(g,D,(0,Ee.attachWorkDone)(i,g),(0,Ee.attachPartialResult)(i,g))),onDocumentHighlight:f=>i.onRequest(me.DocumentHighlightRequest.type,(g,D)=>f(g,D,(0,Ee.attachWorkDone)(i,g),(0,Ee.attachPartialResult)(i,g))),onDocumentSymbol:f=>i.onRequest(me.DocumentSymbolRequest.type,(g,D)=>f(g,D,(0,Ee.attachWorkDone)(i,g),(0,Ee.attachPartialResult)(i,g))),onWorkspaceSymbol:f=>i.onRequest(me.WorkspaceSymbolRequest.type,(g,D)=>f(g,D,(0,Ee.attachWorkDone)(i,g),(0,Ee.attachPartialResult)(i,g))),onWorkspaceSymbolResolve:f=>i.onRequest(me.WorkspaceSymbolResolveRequest.type,f),onCodeAction:f=>i.onRequest(me.CodeActionRequest.type,(g,D)=>f(g,D,(0,Ee.attachWorkDone)(i,g),(0,Ee.attachPartialResult)(i,g))),onCodeActionResolve:f=>i.onRequest(me.CodeActionResolveRequest.type,(g,D)=>f(g,D)),onCodeLens:f=>i.onRequest(me.CodeLensRequest.type,(g,D)=>f(g,D,(0,Ee.attachWorkDone)(i,g),(0,Ee.attachPartialResult)(i,g))),onCodeLensResolve:f=>i.onRequest(me.CodeLensResolveRequest.type,(g,D)=>f(g,D)),onDocumentFormatting:f=>i.onRequest(me.DocumentFormattingRequest.type,(g,D)=>f(g,D,(0,Ee.attachWorkDone)(i,g),void 0)),onDocumentRangeFormatting:f=>i.onRequest(me.DocumentRangeFormattingRequest.type,(g,D)=>f(g,D,(0,Ee.attachWorkDone)(i,g),void 0)),onDocumentOnTypeFormatting:f=>i.onRequest(me.DocumentOnTypeFormattingRequest.type,(g,D)=>f(g,D)),onRenameRequest:f=>i.onRequest(me.RenameRequest.type,(g,D)=>f(g,D,(0,Ee.attachWorkDone)(i,g),void 0)),onPrepareRename:f=>i.onRequest(me.PrepareRenameRequest.type,(g,D)=>f(g,D)),onDocumentLinks:f=>i.onRequest(me.DocumentLinkRequest.type,(g,D)=>f(g,D,(0,Ee.attachWorkDone)(i,g),(0,Ee.attachPartialResult)(i,g))),onDocumentLinkResolve:f=>i.onRequest(me.DocumentLinkResolveRequest.type,(g,D)=>f(g,D)),onDocumentColor:f=>i.onRequest(me.DocumentColorRequest.type,(g,D)=>f(g,D,(0,Ee.attachWorkDone)(i,g),(0,Ee.attachPartialResult)(i,g))),onColorPresentation:f=>i.onRequest(me.ColorPresentationRequest.type,(g,D)=>f(g,D,(0,Ee.attachWorkDone)(i,g),(0,Ee.attachPartialResult)(i,g))),onFoldingRanges:f=>i.onRequest(me.FoldingRangeRequest.type,(g,D)=>f(g,D,(0,Ee.attachWorkDone)(i,g),(0,Ee.attachPartialResult)(i,g))),onSelectionRanges:f=>i.onRequest(me.SelectionRangeRequest.type,(g,D)=>f(g,D,(0,Ee.attachWorkDone)(i,g),(0,Ee.attachPartialResult)(i,g))),onExecuteCommand:f=>i.onRequest(me.ExecuteCommandRequest.type,(g,D)=>f(g,D,(0,Ee.attachWorkDone)(i,g),void 0)),dispose:()=>i.dispose()};for(let f of h)f.attach(_);return i.onRequest(me.InitializeRequest.type,f=>{e.initialize(f),bn.string(f.trace)&&(o.trace=me.Trace.fromString(f.trace));for(let g of h)g.initialize(f.capabilities);if(v){let g=v(f,new me.CancellationTokenSource().token,(0,Ee.attachWorkDone)(i,f),void 0);return p(g).then(D=>{if(D instanceof me.ResponseError)return D;let L=D;L||(L={capabilities:{}});let K=L.capabilities;K||(K={},L.capabilities=K),K.textDocumentSync===void 0||K.textDocumentSync===null?K.textDocumentSync=bn.number(_.__textDocumentSync)?_.__textDocumentSync:me.TextDocumentSyncKind.None:!bn.number(K.textDocumentSync)&&!bn.number(K.textDocumentSync.change)&&(K.textDocumentSync.change=bn.number(_.__textDocumentSync)?_.__textDocumentSync:me.TextDocumentSyncKind.None);for(let C of h)C.fillServerCapabilities(K);return L})}else{let g={capabilities:{textDocumentSync:me.TextDocumentSyncKind.None}};for(let D of h)D.fillServerCapabilities(g.capabilities);return g}}),i.onRequest(me.ShutdownRequest.type,()=>{if(e.shutdownReceived=!0,w)return w(new me.CancellationTokenSource().token)}),i.onNotification(me.ExitNotification.type,()=>{try{x&&x()}finally{e.shutdownReceived?e.exit(0):e.exit(1)}}),i.onNotification(me.SetTraceNotification.type,f=>{o.trace=me.Trace.fromString(f.value)}),_}Ne.createConnection=t2});var op=X(qt=>{"use strict";var n2=qt&&qt.__createBinding||(Object.create?function(t,e,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(e,n);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,i)}:function(t,e,n,r){r===void 0&&(r=n),t[r]=e[n]}),Wv=qt&&qt.__exportStar||function(t,e){for(var n in t)n!=="default"&&!Object.prototype.hasOwnProperty.call(e,n)&&n2(e,t,n)};Object.defineProperty(qt,"__esModule",{value:!0});qt.ProposedFeatures=qt.NotebookDocuments=qt.TextDocuments=qt.SemanticTokensBuilder=void 0;var r2=jh();Object.defineProperty(qt,"SemanticTokensBuilder",{enumerable:!0,get:function(){return r2.SemanticTokensBuilder}});Wv(ft(),qt);var i2=Bh();Object.defineProperty(qt,"TextDocuments",{enumerable:!0,get:function(){return i2.TextDocuments}});var o2=Vh();Object.defineProperty(qt,"NotebookDocuments",{enumerable:!0,get:function(){return o2.NotebookDocuments}});Wv(Nv(),qt);var s2;(function(t){t.all={__brand:"features"}})(s2=qt.ProposedFeatures||(qt.ProposedFeatures={}))});var Uv=X((D5,qv)=>{"use strict";qv.exports=ft()});var pt=X(or=>{"use strict";var a2=or&&or.__createBinding||(Object.create?function(t,e,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(e,n);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,i)}:function(t,e,n,r){r===void 0&&(r=n),t[r]=e[n]}),Hv=or&&or.__exportStar||function(t,e){for(var n in t)n!=="default"&&!Object.prototype.hasOwnProperty.call(e,n)&&a2(e,t,n)};Object.defineProperty(or,"__esModule",{value:!0});or.createConnection=void 0;var Al=op();Hv(Uv(),or);Hv(op(),or);var jv=!1,l2={initialize:t=>{},get shutdownReceived(){return jv},set shutdownReceived(t){jv=t},exit:t=>{}};function c2(t,e,n,r){let i,o,s,l;t!==void 0&&t.__brand==="features"&&(i=t,t=e,e=n,n=r),Al.ConnectionStrategy.is(t)||Al.ConnectionOptions.is(t)?l=t:(o=t,s=e,l=n);let a=c=>(0,Al.createProtocolConnection)(o,s,c,l);return(0,Al.createConnection)(a,l2,i)}or.createConnection=c2});var $v=X((A5,Bv)=>{"use strict";Bv.exports=pt()});var Hs=X((R5,Kv)=>{"use strict";function sr(t){if(typeof t!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(t))}function Vv(t,e){for(var n="",r=0,i=-1,o=0,s,l=0;l<=t.length;++l){if(l<t.length)s=t.charCodeAt(l);else{if(s===47)break;s=47}if(s===47){if(!(i===l-1||o===1))if(i!==l-1&&o===2){if(n.length<2||r!==2||n.charCodeAt(n.length-1)!==46||n.charCodeAt(n.length-2)!==46){if(n.length>2){var a=n.lastIndexOf("/");if(a!==n.length-1){a===-1?(n="",r=0):(n=n.slice(0,a),r=n.length-1-n.lastIndexOf("/")),i=l,o=0;continue}}else if(n.length===2||n.length===1){n="",r=0,i=l,o=0;continue}}e&&(n.length>0?n+="/..":n="..",r=2)}else n.length>0?n+="/"+t.slice(i+1,l):n=t.slice(i+1,l),r=l-i-1;i=l,o=0}else s===46&&o!==-1?++o:o=-1}return n}function u2(t,e){var n=e.dir||e.root,r=e.base||(e.name||"")+(e.ext||"");return n?n===e.root?n+r:n+t+r:r}var Eo={resolve:function(){for(var e="",n=!1,r,i=arguments.length-1;i>=-1&&!n;i--){var o;i>=0?o=arguments[i]:(r===void 0&&(r=process.cwd()),o=r),sr(o),o.length!==0&&(e=o+"/"+e,n=o.charCodeAt(0)===47)}return e=Vv(e,!n),n?e.length>0?"/"+e:"/":e.length>0?e:"."},normalize:function(e){if(sr(e),e.length===0)return".";var n=e.charCodeAt(0)===47,r=e.charCodeAt(e.length-1)===47;return e=Vv(e,!n),e.length===0&&!n&&(e="."),e.length>0&&r&&(e+="/"),n?"/"+e:e},isAbsolute:function(e){return sr(e),e.length>0&&e.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var e,n=0;n<arguments.length;++n){var r=arguments[n];sr(r),r.length>0&&(e===void 0?e=r:e+="/"+r)}return e===void 0?".":Eo.normalize(e)},relative:function(e,n){if(sr(e),sr(n),e===n||(e=Eo.resolve(e),n=Eo.resolve(n),e===n))return"";for(var r=1;r<e.length&&e.charCodeAt(r)===47;++r);for(var i=e.length,o=i-r,s=1;s<n.length&&n.charCodeAt(s)===47;++s);for(var l=n.length,a=l-s,c=o<a?o:a,u=-1,d=0;d<=c;++d){if(d===c){if(a>c){if(n.charCodeAt(s+d)===47)return n.slice(s+d+1);if(d===0)return n.slice(s+d)}else o>c&&(e.charCodeAt(r+d)===47?u=d:d===0&&(u=0));break}var h=e.charCodeAt(r+d),p=n.charCodeAt(s+d);if(h!==p)break;h===47&&(u=d)}var w="";for(d=r+u+1;d<=i;++d)(d===i||e.charCodeAt(d)===47)&&(w.length===0?w+="..":w+="/..");return w.length>0?w+n.slice(s+u):(s+=u,n.charCodeAt(s)===47&&++s,n.slice(s))},_makeLong:function(e){return e},dirname:function(e){if(sr(e),e.length===0)return".";for(var n=e.charCodeAt(0),r=n===47,i=-1,o=!0,s=e.length-1;s>=1;--s)if(n=e.charCodeAt(s),n===47){if(!o){i=s;break}}else o=!1;return i===-1?r?"/":".":r&&i===1?"//":e.slice(0,i)},basename:function(e,n){if(n!==void 0&&typeof n!="string")throw new TypeError('"ext" argument must be a string');sr(e);var r=0,i=-1,o=!0,s;if(n!==void 0&&n.length>0&&n.length<=e.length){if(n.length===e.length&&n===e)return"";var l=n.length-1,a=-1;for(s=e.length-1;s>=0;--s){var c=e.charCodeAt(s);if(c===47){if(!o){r=s+1;break}}else a===-1&&(o=!1,a=s+1),l>=0&&(c===n.charCodeAt(l)?--l===-1&&(i=s):(l=-1,i=a))}return r===i?i=a:i===-1&&(i=e.length),e.slice(r,i)}else{for(s=e.length-1;s>=0;--s)if(e.charCodeAt(s)===47){if(!o){r=s+1;break}}else i===-1&&(o=!1,i=s+1);return i===-1?"":e.slice(r,i)}},extname:function(e){sr(e);for(var n=-1,r=0,i=-1,o=!0,s=0,l=e.length-1;l>=0;--l){var a=e.charCodeAt(l);if(a===47){if(!o){r=l+1;break}continue}i===-1&&(o=!1,i=l+1),a===46?n===-1?n=l:s!==1&&(s=1):n!==-1&&(s=-1)}return n===-1||i===-1||s===0||s===1&&n===i-1&&n===r+1?"":e.slice(n,i)},format:function(e){if(e===null||typeof e!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof e);return u2("/",e)},parse:function(e){sr(e);var n={root:"",dir:"",base:"",ext:"",name:""};if(e.length===0)return n;var r=e.charCodeAt(0),i=r===47,o;i?(n.root="/",o=1):o=0;for(var s=-1,l=0,a=-1,c=!0,u=e.length-1,d=0;u>=o;--u){if(r=e.charCodeAt(u),r===47){if(!c){l=u+1;break}continue}a===-1&&(c=!1,a=u+1),r===46?s===-1?s=u:d!==1&&(d=1):s!==-1&&(d=-1)}return s===-1||a===-1||d===0||d===1&&s===a-1&&s===l+1?a!==-1&&(l===0&&i?n.base=n.name=e.slice(1,a):n.base=n.name=e.slice(l,a)):(l===0&&i?(n.name=e.slice(1,s),n.base=e.slice(1,a)):(n.name=e.slice(l,s),n.base=e.slice(l,a)),n.ext=e.slice(s,a)),l>0?n.dir=e.slice(0,l-1):i&&(n.dir="/"),n},sep:"/",delimiter:":",win32:null,posix:null};Eo.posix=Eo;Kv.exports=Eo});var Rl=X((Bs,sp)=>{(function(t,e){if(typeof Bs=="object"&&typeof sp=="object")sp.exports=e();else if(typeof define=="function"&&define.amd)define([],e);else{var n=e();for(var r in n)(typeof Bs=="object"?Bs:t)[r]=n[r]}})(Bs,function(){return(()=>{"use strict";var t={470:n=>{function r(s){if(typeof s!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(s))}function i(s,l){for(var a,c="",u=0,d=-1,h=0,p=0;p<=s.length;++p){if(p<s.length)a=s.charCodeAt(p);else{if(a===47)break;a=47}if(a===47){if(!(d===p-1||h===1))if(d!==p-1&&h===2){if(c.length<2||u!==2||c.charCodeAt(c.length-1)!==46||c.charCodeAt(c.length-2)!==46){if(c.length>2){var w=c.lastIndexOf("/");if(w!==c.length-1){w===-1?(c="",u=0):u=(c=c.slice(0,w)).length-1-c.lastIndexOf("/"),d=p,h=0;continue}}else if(c.length===2||c.length===1){c="",u=0,d=p,h=0;continue}}l&&(c.length>0?c+="/..":c="..",u=2)}else c.length>0?c+="/"+s.slice(d+1,p):c=s.slice(d+1,p),u=p-d-1;d=p,h=0}else a===46&&h!==-1?++h:h=-1}return c}var o={resolve:function(){for(var s,l="",a=!1,c=arguments.length-1;c>=-1&&!a;c--){var u;c>=0?u=arguments[c]:(s===void 0&&(s=process.cwd()),u=s),r(u),u.length!==0&&(l=u+"/"+l,a=u.charCodeAt(0)===47)}return l=i(l,!a),a?l.length>0?"/"+l:"/":l.length>0?l:"."},normalize:function(s){if(r(s),s.length===0)return".";var l=s.charCodeAt(0)===47,a=s.charCodeAt(s.length-1)===47;return(s=i(s,!l)).length!==0||l||(s="."),s.length>0&&a&&(s+="/"),l?"/"+s:s},isAbsolute:function(s){return r(s),s.length>0&&s.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var s,l=0;l<arguments.length;++l){var a=arguments[l];r(a),a.length>0&&(s===void 0?s=a:s+="/"+a)}return s===void 0?".":o.normalize(s)},relative:function(s,l){if(r(s),r(l),s===l||(s=o.resolve(s))===(l=o.resolve(l)))return"";for(var a=1;a<s.length&&s.charCodeAt(a)===47;++a);for(var c=s.length,u=c-a,d=1;d<l.length&&l.charCodeAt(d)===47;++d);for(var h=l.length-d,p=u<h?u:h,w=-1,v=0;v<=p;++v){if(v===p){if(h>p){if(l.charCodeAt(d+v)===47)return l.slice(d+v+1);if(v===0)return l.slice(d+v)}else u>p&&(s.charCodeAt(a+v)===47?w=v:v===0&&(w=0));break}var x=s.charCodeAt(a+v);if(x!==l.charCodeAt(d+v))break;x===47&&(w=v)}var _="";for(v=a+w+1;v<=c;++v)v!==c&&s.charCodeAt(v)!==47||(_.length===0?_+="..":_+="/..");return _.length>0?_+l.slice(d+w):(d+=w,l.charCodeAt(d)===47&&++d,l.slice(d))},_makeLong:function(s){return s},dirname:function(s){if(r(s),s.length===0)return".";for(var l=s.charCodeAt(0),a=l===47,c=-1,u=!0,d=s.length-1;d>=1;--d)if((l=s.charCodeAt(d))===47){if(!u){c=d;break}}else u=!1;return c===-1?a?"/":".":a&&c===1?"//":s.slice(0,c)},basename:function(s,l){if(l!==void 0&&typeof l!="string")throw new TypeError('"ext" argument must be a string');r(s);var a,c=0,u=-1,d=!0;if(l!==void 0&&l.length>0&&l.length<=s.length){if(l.length===s.length&&l===s)return"";var h=l.length-1,p=-1;for(a=s.length-1;a>=0;--a){var w=s.charCodeAt(a);if(w===47){if(!d){c=a+1;break}}else p===-1&&(d=!1,p=a+1),h>=0&&(w===l.charCodeAt(h)?--h==-1&&(u=a):(h=-1,u=p))}return c===u?u=p:u===-1&&(u=s.length),s.slice(c,u)}for(a=s.length-1;a>=0;--a)if(s.charCodeAt(a)===47){if(!d){c=a+1;break}}else u===-1&&(d=!1,u=a+1);return u===-1?"":s.slice(c,u)},extname:function(s){r(s);for(var l=-1,a=0,c=-1,u=!0,d=0,h=s.length-1;h>=0;--h){var p=s.charCodeAt(h);if(p!==47)c===-1&&(u=!1,c=h+1),p===46?l===-1?l=h:d!==1&&(d=1):l!==-1&&(d=-1);else if(!u){a=h+1;break}}return l===-1||c===-1||d===0||d===1&&l===c-1&&l===a+1?"":s.slice(l,c)},format:function(s){if(s===null||typeof s!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof s);return function(l,a){var c=a.dir||a.root,u=a.base||(a.name||"")+(a.ext||"");return c?c===a.root?c+u:c+"/"+u:u}(0,s)},parse:function(s){r(s);var l={root:"",dir:"",base:"",ext:"",name:""};if(s.length===0)return l;var a,c=s.charCodeAt(0),u=c===47;u?(l.root="/",a=1):a=0;for(var d=-1,h=0,p=-1,w=!0,v=s.length-1,x=0;v>=a;--v)if((c=s.charCodeAt(v))!==47)p===-1&&(w=!1,p=v+1),c===46?d===-1?d=v:x!==1&&(x=1):d!==-1&&(x=-1);else if(!w){h=v+1;break}return d===-1||p===-1||x===0||x===1&&d===p-1&&d===h+1?p!==-1&&(l.base=l.name=h===0&&u?s.slice(1,p):s.slice(h,p)):(h===0&&u?(l.name=s.slice(1,d),l.base=s.slice(1,p)):(l.name=s.slice(h,d),l.base=s.slice(h,p)),l.ext=s.slice(d,p)),h>0?l.dir=s.slice(0,h-1):u&&(l.dir="/"),l},sep:"/",delimiter:":",win32:null,posix:null};o.posix=o,n.exports=o},465:(n,r,i)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.Utils=r.URI=void 0;var o=i(796);Object.defineProperty(r,"URI",{enumerable:!0,get:function(){return o.URI}});var s=i(679);Object.defineProperty(r,"Utils",{enumerable:!0,get:function(){return s.Utils}})},674:(n,r)=>{if(Object.defineProperty(r,"__esModule",{value:!0}),r.isWindows=void 0,typeof process=="object")r.isWindows=process.platform==="win32";else if(typeof navigator=="object"){var i=navigator.userAgent;r.isWindows=i.indexOf("Windows")>=0}},796:function(n,r,i){var o,s,l=this&&this.__extends||(o=function(N,W){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(V,G){V.__proto__=G}||function(V,G){for(var U in G)Object.prototype.hasOwnProperty.call(G,U)&&(V[U]=G[U])})(N,W)},function(N,W){if(typeof W!="function"&&W!==null)throw new TypeError("Class extends value "+String(W)+" is not a constructor or null");function V(){this.constructor=N}o(N,W),N.prototype=W===null?Object.create(W):(V.prototype=W.prototype,new V)});Object.defineProperty(r,"__esModule",{value:!0}),r.uriToFsPath=r.URI=void 0;var a=i(674),c=/^\w[\w\d+.-]*$/,u=/^\//,d=/^\/\//;function h(N,W){if(!N.scheme&&W)throw new Error('[UriError]: Scheme is missing: {scheme: "", authority: "'.concat(N.authority,'", path: "').concat(N.path,'", query: "').concat(N.query,'", fragment: "').concat(N.fragment,'"}'));if(N.scheme&&!c.test(N.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(N.path){if(N.authority){if(!u.test(N.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(d.test(N.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}}var p="",w="/",v=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/,x=function(){function N(W,V,G,U,P,R){R===void 0&&(R=!1),typeof W=="object"?(this.scheme=W.scheme||p,this.authority=W.authority||p,this.path=W.path||p,this.query=W.query||p,this.fragment=W.fragment||p):(this.scheme=function(J,Q){return J||Q?J:"file"}(W,R),this.authority=V||p,this.path=function(J,Q){switch(J){case"https":case"http":case"file":Q?Q[0]!==w&&(Q=w+Q):Q=w}return Q}(this.scheme,G||p),this.query=U||p,this.fragment=P||p,h(this,R))}return N.isUri=function(W){return W instanceof N||!!W&&typeof W.authority=="string"&&typeof W.fragment=="string"&&typeof W.path=="string"&&typeof W.query=="string"&&typeof W.scheme=="string"&&typeof W.fsPath=="string"&&typeof W.with=="function"&&typeof W.toString=="function"},Object.defineProperty(N.prototype,"fsPath",{get:function(){return K(this,!1)},enumerable:!1,configurable:!0}),N.prototype.with=function(W){if(!W)return this;var V=W.scheme,G=W.authority,U=W.path,P=W.query,R=W.fragment;return V===void 0?V=this.scheme:V===null&&(V=p),G===void 0?G=this.authority:G===null&&(G=p),U===void 0?U=this.path:U===null&&(U=p),P===void 0?P=this.query:P===null&&(P=p),R===void 0?R=this.fragment:R===null&&(R=p),V===this.scheme&&G===this.authority&&U===this.path&&P===this.query&&R===this.fragment?this:new f(V,G,U,P,R)},N.parse=function(W,V){V===void 0&&(V=!1);var G=v.exec(W);return G?new f(G[2]||p,oe(G[4]||p),oe(G[5]||p),oe(G[7]||p),oe(G[9]||p),V):new f(p,p,p,p,p)},N.file=function(W){var V=p;if(a.isWindows&&(W=W.replace(/\\/g,w)),W[0]===w&&W[1]===w){var G=W.indexOf(w,2);G===-1?(V=W.substring(2),W=w):(V=W.substring(2,G),W=W.substring(G)||w)}return new f("file",V,W,p,p)},N.from=function(W){var V=new f(W.scheme,W.authority,W.path,W.query,W.fragment);return h(V,!0),V},N.prototype.toString=function(W){return W===void 0&&(W=!1),C(this,W)},N.prototype.toJSON=function(){return this},N.revive=function(W){if(W){if(W instanceof N)return W;var V=new f(W);return V._formatted=W.external,V._fsPath=W._sep===_?W.fsPath:null,V}return W},N}();r.URI=x;var _=a.isWindows?1:void 0,f=function(N){function W(){var V=N!==null&&N.apply(this,arguments)||this;return V._formatted=null,V._fsPath=null,V}return l(W,N),Object.defineProperty(W.prototype,"fsPath",{get:function(){return this._fsPath||(this._fsPath=K(this,!1)),this._fsPath},enumerable:!1,configurable:!0}),W.prototype.toString=function(V){return V===void 0&&(V=!1),V?C(this,!0):(this._formatted||(this._formatted=C(this,!1)),this._formatted)},W.prototype.toJSON=function(){var V={$mid:1};return this._fsPath&&(V.fsPath=this._fsPath,V._sep=_),this._formatted&&(V.external=this._formatted),this.path&&(V.path=this.path),this.scheme&&(V.scheme=this.scheme),this.authority&&(V.authority=this.authority),this.query&&(V.query=this.query),this.fragment&&(V.fragment=this.fragment),V},W}(x),g=((s={})[58]="%3A",s[47]="%2F",s[63]="%3F",s[35]="%23",s[91]="%5B",s[93]="%5D",s[64]="%40",s[33]="%21",s[36]="%24",s[38]="%26",s[39]="%27",s[40]="%28",s[41]="%29",s[42]="%2A",s[43]="%2B",s[44]="%2C",s[59]="%3B",s[61]="%3D",s[32]="%20",s);function D(N,W){for(var V=void 0,G=-1,U=0;U<N.length;U++){var P=N.charCodeAt(U);if(P>=97&&P<=122||P>=65&&P<=90||P>=48&&P<=57||P===45||P===46||P===95||P===126||W&&P===47)G!==-1&&(V+=encodeURIComponent(N.substring(G,U)),G=-1),V!==void 0&&(V+=N.charAt(U));else{V===void 0&&(V=N.substr(0,U));var R=g[P];R!==void 0?(G!==-1&&(V+=encodeURIComponent(N.substring(G,U)),G=-1),V+=R):G===-1&&(G=U)}}return G!==-1&&(V+=encodeURIComponent(N.substring(G))),V!==void 0?V:N}function L(N){for(var W=void 0,V=0;V<N.length;V++){var G=N.charCodeAt(V);G===35||G===63?(W===void 0&&(W=N.substr(0,V)),W+=g[G]):W!==void 0&&(W+=N[V])}return W!==void 0?W:N}function K(N,W){var V;return V=N.authority&&N.path.length>1&&N.scheme==="file"?"//".concat(N.authority).concat(N.path):N.path.charCodeAt(0)===47&&(N.path.charCodeAt(1)>=65&&N.path.charCodeAt(1)<=90||N.path.charCodeAt(1)>=97&&N.path.charCodeAt(1)<=122)&&N.path.charCodeAt(2)===58?W?N.path.substr(1):N.path[1].toLowerCase()+N.path.substr(2):N.path,a.isWindows&&(V=V.replace(/\//g,"\\")),V}function C(N,W){var V=W?L:D,G="",U=N.scheme,P=N.authority,R=N.path,J=N.query,Q=N.fragment;if(U&&(G+=U,G+=":"),(P||U==="file")&&(G+=w,G+=w),P){var re=P.indexOf("@");if(re!==-1){var de=P.substr(0,re);P=P.substr(re+1),(re=de.indexOf(":"))===-1?G+=V(de,!1):(G+=V(de.substr(0,re),!1),G+=":",G+=V(de.substr(re+1),!1)),G+="@"}(re=(P=P.toLowerCase()).indexOf(":"))===-1?G+=V(P,!1):(G+=V(P.substr(0,re),!1),G+=P.substr(re))}if(R){if(R.length>=3&&R.charCodeAt(0)===47&&R.charCodeAt(2)===58)(se=R.charCodeAt(1))>=65&&se<=90&&(R="/".concat(String.fromCharCode(se+32),":").concat(R.substr(3)));else if(R.length>=2&&R.charCodeAt(1)===58){var se;(se=R.charCodeAt(0))>=65&&se<=90&&(R="".concat(String.fromCharCode(se+32),":").concat(R.substr(2)))}G+=V(R,!0)}return J&&(G+="?",G+=V(J,!1)),Q&&(G+="#",G+=W?Q:D(Q,!1)),G}function T(N){try{return decodeURIComponent(N)}catch{return N.length>3?N.substr(0,3)+T(N.substr(3)):N}}r.uriToFsPath=K;var M=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function oe(N){return N.match(M)?N.replace(M,function(W){return T(W)}):N}},679:function(n,r,i){var o=this&&this.__spreadArray||function(c,u,d){if(d||arguments.length===2)for(var h,p=0,w=u.length;p<w;p++)!h&&p in u||(h||(h=Array.prototype.slice.call(u,0,p)),h[p]=u[p]);return c.concat(h||Array.prototype.slice.call(u))};Object.defineProperty(r,"__esModule",{value:!0}),r.Utils=void 0;var s,l=i(470),a=l.posix||l;(s=r.Utils||(r.Utils={})).joinPath=function(c){for(var u=[],d=1;d<arguments.length;d++)u[d-1]=arguments[d];return c.with({path:a.join.apply(a,o([c.path],u,!1))})},s.resolvePath=function(c){for(var u=[],d=1;d<arguments.length;d++)u[d-1]=arguments[d];var h=c.path||"/";return c.with({path:a.resolve.apply(a,o([h],u,!1))})},s.dirname=function(c){var u=a.dirname(c.path);return u.length===1&&u.charCodeAt(0)===46?c:c.with({path:u})},s.basename=function(c){return a.basename(c.path)},s.extname=function(c){return a.extname(c.path)}}},e={};return function n(r){if(e[r])return e[r].exports;var i=e[r]={exports:{}};return t[r].call(i.exports,i,i.exports,n),i.exports}(465)})()})});var Ml=X(nn=>{"use strict";Object.defineProperty(nn,"__esModule",{value:!0});nn.getPrettierPluginPath=nn.importPrettier=nn.importVueIntegration=nn.importSvelteIntegration=nn.getPackagePath=nn.setIsTrusted=void 0;var Gv=Hs(),Jv=!0;function d2(t){Jv=t}nn.setIsTrusted=d2;function Il(t,e){let n=[];Jv&&n.unshift(...e);try{return(0,Gv.dirname)(Lt.resolve(t+"/package.json",{paths:n}))}catch{return}}nn.getPackagePath=Il;function Xv(t,e){let n=Il(t,[e]);if(n)try{let r=(0,Gv.resolve)(n,"dist","editor.cjs");return Lt(r)}catch{console.error(`Couldn't load editor module from ${n}. Make sure you're using at least version v0.2.1 of the corresponding integration`);return}}function h2(t){return Xv("@astrojs/svelte",t)}nn.importSvelteIntegration=h2;function p2(t){return Xv("@astrojs/vue",t)}nn.importVueIntegration=p2;function m2(t){let e=Il("prettier",[t,__dirname]);return Lt(e)}nn.importPrettier=m2;function f2(t){return Il("prettier-plugin-astro",[t,__dirname])}nn.getPrettierPluginPath=f2});var dt=X(Pe=>{"use strict";Object.defineProperty(Pe,"__esModule",{value:!0});Pe.getAstroInstall=Pe.isAstroWorkspace=Pe.debounceThrottle=Pe.debounceSameArg=Pe.getRegExpMatches=Pe.regexLastIndexOf=Pe.isBeforeOrEqualToPosition=Pe.isInRange=Pe.isNotNullOrUndefined=Pe.clamp=Pe.modifyLines=Pe.toPascalCase=Pe.mergeDeep=Pe.get=Pe.getLastPartOfPath=Pe.pathToUrl=Pe.urlToPath=Pe.normalizePath=Pe.normalizeUri=void 0;var Qv=Hs(),Pl=Rl(),Yv=Ml();function g2(t){return Pl.URI.parse(t).toString()}Pe.normalizeUri=g2;function b2(t){return Pl.URI.file(t).fsPath.replace(/\\/g,"/")}Pe.normalizePath=b2;function v2(t){let e=Pl.URI.parse(t);return e.scheme!=="file"?null:e.fsPath.replace(/\\/g,"/")}Pe.urlToPath=v2;function w2(t){return Pl.URI.file(t).toString()}Pe.pathToUrl=w2;function y2(t){return t.replace(/\\/g,"/").split("/").pop()||""}Pe.getLastPartOfPath=y2;function _2(t,e){let n=i=>String.prototype.split.call(e,i).filter(Boolean).reduce((o,s)=>o!=null?o[s]:o,t),r=n(/[,[\]]+?/)||n(/[,[\].]+?/);return r===void 0?void 0:r}Pe.get=_2;function Zv(...t){let e=n=>n&&typeof n=="object";return t.reduce((n,r)=>(Object.keys(r).forEach(i=>{let o=n[i],s=r[i];Array.isArray(o)&&Array.isArray(s)?n[i]=o.concat(...s):e(o)&&e(s)?n[i]=Zv(o,s):n[i]=s}),n),{})}Pe.mergeDeep=Zv;function S2(t){return`${t}`.replace(new RegExp(/[-_]+/,"g")," ").replace(new RegExp(/[^\w\s]/,"g"),"").replace(new RegExp(/\s+(.)(\w*)/,"g"),(e,n,r)=>`${n.toUpperCase()+r.toLowerCase()}`).replace(new RegExp(/\w/),e=>e.toUpperCase())}Pe.toPascalCase=S2;function x2(t,e){let n=0;return t.split(`\r
|
|
34
34
|
`).map(r=>r.split(`
|
|
35
35
|
`).map(i=>e(i,n++)).join(`
|
|
36
36
|
`)).join(`\r
|
|
37
|
-
`)}Pe.modifyLines=x2;function k2(t,e,n){return Math.max(e,Math.min(n,t))}Pe.clamp=k2;function C2(t){return t!=null}Pe.isNotNullOrUndefined=C2;function T2(t,e){return ap(t.end,e)&&ap(e,t.start)}Pe.isInRange=T2;function ap(t,e){return e.line<t.line||e.line===t.line&&e.character<=t.character}Pe.isBeforeOrEqualToPosition=ap;function E2(t,e,n){n===void 0?n=t.length:n<0&&(n=0);let r=t.substring(0,n+1),i=-1,o=null;for(;(o=e.exec(r))!==null;)i=o.index;return i}Pe.regexLastIndexOf=E2;function D2(t,e){let n=[],r;for(;r=t.exec(e);)n.push(r);return n}Pe.getRegExpMatches=D2;function F2(t,e,n){let r,i;return o=>{e(o,i)&&clearTimeout(r),i=o,r=setTimeout(()=>{t(o),i=void 0},n)}}Pe.debounceSameArg=F2;function A2(t,e){let n,r=Date.now()-e;function i(...o){clearTimeout(n),n=setTimeout(()=>{if(Date.now()-r<e){i(...o);return}t(...o),r=Date.now()},e)}return i}Pe.debounceThrottle=A2;function R2(t){try{let e=Lt.resolve("./package.json",{paths:[t]}),n=Object.assign(Lt(e).dependencies??{},Lt(e).devDependencies??{});if(Object.keys(n).includes("astro"))return!0}catch{return!1}return!1}Pe.isAstroWorkspace=R2;function I2(t){let e,n;try{if(e=(0,Yv.getPackagePath)("astro",t),!e)throw Error;n=Lt((0,Qv.resolve)(e,"package.json")).version}catch{try{if(e=(0,Yv.getPackagePath)("./packages/astro",t),!e)throw Error;n=Lt((0,Qv.resolve)(e,"package.json")).version}catch{console.error(`${t[0]} seems to be an Astro project, but we couldn't find Astro or Astro is not installed`);return}}let[r,i,o]=n.split(".");return o.includes("-")&&(o=o.split("-")[0]),{path:e,version:{full:n,major:Number(r),minor:Number(i),patch:Number(o)}}}Pe.getAstroInstall=I2});var ew=X(
|
|
38
|
-
`,insertSpaceAfterCommaDelimiter:r.insertSpaceAfterCommaDelimiter??!0,insertSpaceAfterConstructor:r.insertSpaceAfterConstructor??!1,insertSpaceAfterSemicolonInForStatements:r.insertSpaceAfterSemicolonInForStatements??!0,insertSpaceBeforeAndAfterBinaryOperators:r.insertSpaceBeforeAndAfterBinaryOperators??!0,insertSpaceAfterKeywordsInControlFlowStatements:r.insertSpaceAfterKeywordsInControlFlowStatements??!0,insertSpaceAfterFunctionKeywordForAnonymousFunctions:r.insertSpaceAfterFunctionKeywordForAnonymousFunctions??!0,insertSpaceBeforeFunctionParenthesis:r.insertSpaceBeforeFunctionParenthesis??!1,insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis:r.insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis??!1,insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets:r.insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets??!1,insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces:r.insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces??!0,insertSpaceAfterOpeningAndBeforeClosingEmptyBraces:r.insertSpaceAfterOpeningAndBeforeClosingEmptyBraces??!0,insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces:r.insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces??!1,insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces:r.insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces??!1,insertSpaceAfterTypeAssertion:r.insertSpaceAfterTypeAssertion??!1,placeOpenBraceOnNewLineForFunctions:r.placeOpenBraceOnNewLineForFunctions??!1,placeOpenBraceOnNewLineForControlBlocks:r.placeOpenBraceOnNewLineForControlBlocks??!1,semicolons:r.semicolons??"ignore"}}async getTSPreferences(e){let n=await this.getConfig("typescript",e.uri)??{},r=await this.getConfig("typescript.preferences",e.uri)??{};return{quotePreference:M2(r),importModuleSpecifierPreference:P2(r),importModuleSpecifierEnding:z2(r),allowTextChangesInNewFiles:e.uri.startsWith("file://"),providePrefixAndSuffixTextForRename:(r.renameShorthandProperties??!0)===!1?!1:r.useAliasesForRenames??!0,includeAutomaticOptionalChainCompletions:n.suggest?.includeAutomaticOptionalChainCompletions??!0,includeCompletionsForImportStatements:n.suggest?.includeCompletionsForImportStatements??!0,includeCompletionsWithSnippetText:n.suggest?.includeCompletionsWithSnippetText??!0,includeCompletionsForModuleExports:n.suggest?.autoImports??!0,allowIncompleteCompletions:!0,includeCompletionsWithInsertText:!0,includeInlayParameterNameHints:O2(n),includeInlayParameterNameHintsWhenArgumentMatchesName:!(n.inlayHints?.parameterNames?.suppressWhenArgumentMatchesName??!0),includeInlayFunctionParameterTypeHints:n.inlayHints?.parameterTypes?.enabled??!1,includeInlayVariableTypeHints:n.inlayHints?.variableTypes?.enabled??!1,includeInlayPropertyDeclarationTypeHints:n.inlayHints?.propertyDeclarationTypes?.enabled??!1,includeInlayFunctionLikeReturnTypeHints:n.inlayHints?.functionLikeReturnTypes?.enabled??!1,includeInlayEnumMemberValueHints:n.inlayHints?.enumMemberValues?.enabled??!1}}async isEnabled(e,n,r){let i=await this.getConfig("astro",e.uri)??{};if(i[n]){let o=i[n].enabled??!0;return r&&i[n][r]&&(o=(o&&i[n][r].enabled)??!0),o}return!0}updateGlobalConfig(e,n){n?this.globalConfig=(0,lp.mergeDeep)({},this.globalConfig,e):this.globalConfig.astro=(0,lp.mergeDeep)({},ci.defaultLSConfig,this.globalConfig.astro,e),this.shouldRefreshTSServices=!0}};ci.ConfigManager=cp;function M2(t){switch(t.quoteStyle){case"single":return"single";case"double":return"double";default:return"auto"}}function P2(t){switch(t.importModuleSpecifier){case"project-relative":return"project-relative";case"relative":return"relative";case"non-relative":return"non-relative";default:return}}function z2(t){switch(t.importModuleSpecifierEnding){case"minimal":return"minimal";case"index":return"index";case"js":return"js";default:return"auto"}}function O2(t){switch(t.inlayHints?.parameterNames?.enabled){case"none":return"none";case"literals":return"literals";case"all":return"all";default:return}}});var tw=X(zl=>{"use strict";Object.defineProperty(zl,"__esModule",{value:!0});zl.DiagnosticsManager=void 0;var up=class{constructor(e,n,r){this.sendDiagnostics=e,this.docManager=n,this.getDiagnostics=r}updateAll(){this.docManager.getAllOpenedByClient().forEach(e=>{this.update(e[1])})}async update(e){let n=await this.getDiagnostics({uri:e.getURL()});this.sendDiagnostics({uri:e.getURL(),diagnostics:n})}removeDiagnostics(e){this.sendDiagnostics({uri:e.getURL(),diagnostics:[]})}};zl.DiagnosticsManager=up});var hp=X((O5,dp)=>{"use strict";var Do=typeof Reflect=="object"?Reflect:null,nw=Do&&typeof Do.apply=="function"?Do.apply:function(e,n,r){return Function.prototype.apply.call(e,n,r)},Ol;Do&&typeof Do.ownKeys=="function"?Ol=Do.ownKeys:Object.getOwnPropertySymbols?Ol=function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Ol=function(e){return Object.getOwnPropertyNames(e)};function L2(t){console&&console.warn&&console.warn(t)}var iw=Number.isNaN||function(e){return e!==e};function Ke(){Ke.init.call(this)}dp.exports=Ke;dp.exports.once=U2;Ke.EventEmitter=Ke;Ke.prototype._events=void 0;Ke.prototype._eventsCount=0;Ke.prototype._maxListeners=void 0;var rw=10;function Ll(t){if(typeof t!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof t)}Object.defineProperty(Ke,"defaultMaxListeners",{enumerable:!0,get:function(){return rw},set:function(t){if(typeof t!="number"||t<0||iw(t))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+t+".");rw=t}});Ke.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0};Ke.prototype.setMaxListeners=function(e){if(typeof e!="number"||e<0||iw(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this};function ow(t){return t._maxListeners===void 0?Ke.defaultMaxListeners:t._maxListeners}Ke.prototype.getMaxListeners=function(){return ow(this)};Ke.prototype.emit=function(e){for(var n=[],r=1;r<arguments.length;r++)n.push(arguments[r]);var i=e==="error",o=this._events;if(o!==void 0)i=i&&o.error===void 0;else if(!i)return!1;if(i){var s;if(n.length>0&&(s=n[0]),s instanceof Error)throw s;var l=new Error("Unhandled error."+(s?" ("+s.message+")":""));throw l.context=s,l}var a=o[e];if(a===void 0)return!1;if(typeof a=="function")nw(a,this,n);else for(var c=a.length,u=uw(a,c),r=0;r<c;++r)nw(u[r],this,n);return!0};function sw(t,e,n,r){var i,o,s;if(Ll(n),o=t._events,o===void 0?(o=t._events=Object.create(null),t._eventsCount=0):(o.newListener!==void 0&&(t.emit("newListener",e,n.listener?n.listener:n),o=t._events),s=o[e]),s===void 0)s=o[e]=n,++t._eventsCount;else if(typeof s=="function"?s=o[e]=r?[n,s]:[s,n]:r?s.unshift(n):s.push(n),i=ow(t),i>0&&s.length>i&&!s.warned){s.warned=!0;var l=new Error("Possible EventEmitter memory leak detected. "+s.length+" "+String(e)+" listeners added. Use emitter.setMaxListeners() to increase limit");l.name="MaxListenersExceededWarning",l.emitter=t,l.type=e,l.count=s.length,L2(l)}return t}Ke.prototype.addListener=function(e,n){return sw(this,e,n,!1)};Ke.prototype.on=Ke.prototype.addListener;Ke.prototype.prependListener=function(e,n){return sw(this,e,n,!0)};function N2(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function aw(t,e,n){var r={fired:!1,wrapFn:void 0,target:t,type:e,listener:n},i=N2.bind(r);return i.listener=n,r.wrapFn=i,i}Ke.prototype.once=function(e,n){return Ll(n),this.on(e,aw(this,e,n)),this};Ke.prototype.prependOnceListener=function(e,n){return Ll(n),this.prependListener(e,aw(this,e,n)),this};Ke.prototype.removeListener=function(e,n){var r,i,o,s,l;if(Ll(n),i=this._events,i===void 0)return this;if(r=i[e],r===void 0)return this;if(r===n||r.listener===n)--this._eventsCount===0?this._events=Object.create(null):(delete i[e],i.removeListener&&this.emit("removeListener",e,r.listener||n));else if(typeof r!="function"){for(o=-1,s=r.length-1;s>=0;s--)if(r[s]===n||r[s].listener===n){l=r[s].listener,o=s;break}if(o<0)return this;o===0?r.shift():W2(r,o),r.length===1&&(i[e]=r[0]),i.removeListener!==void 0&&this.emit("removeListener",e,l||n)}return this};Ke.prototype.off=Ke.prototype.removeListener;Ke.prototype.removeAllListeners=function(e){var n,r,i;if(r=this._events,r===void 0)return this;if(r.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):r[e]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete r[e]),this;if(arguments.length===0){var o=Object.keys(r),s;for(i=0;i<o.length;++i)s=o[i],s!=="removeListener"&&this.removeAllListeners(s);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(n=r[e],typeof n=="function")this.removeListener(e,n);else if(n!==void 0)for(i=n.length-1;i>=0;i--)this.removeListener(e,n[i]);return this};function lw(t,e,n){var r=t._events;if(r===void 0)return[];var i=r[e];return i===void 0?[]:typeof i=="function"?n?[i.listener||i]:[i]:n?q2(i):uw(i,i.length)}Ke.prototype.listeners=function(e){return lw(this,e,!0)};Ke.prototype.rawListeners=function(e){return lw(this,e,!1)};Ke.listenerCount=function(t,e){return typeof t.listenerCount=="function"?t.listenerCount(e):cw.call(t,e)};Ke.prototype.listenerCount=cw;function cw(t){var e=this._events;if(e!==void 0){var n=e[t];if(typeof n=="function")return 1;if(n!==void 0)return n.length}return 0}Ke.prototype.eventNames=function(){return this._eventsCount>0?Ol(this._events):[]};function uw(t,e){for(var n=new Array(e),r=0;r<e;++r)n[r]=t[r];return n}function W2(t,e){for(;e+1<t.length;e++)t[e]=t[e+1];t.pop()}function q2(t){for(var e=new Array(t.length),n=0;n<e.length;++n)e[n]=t[n].listener||t[n];return e}function U2(t,e){return new Promise(function(n,r){function i(s){t.removeListener(e,o),r(s)}function o(){typeof t.removeListener=="function"&&t.removeListener("error",i),n([].slice.call(arguments))}dw(t,e,o,{once:!0}),e!=="error"&&j2(t,i,{once:!0})})}function j2(t,e,n){typeof t.on=="function"&&dw(t,"error",e,n)}function dw(t,e,n,r){if(typeof t.on=="function")r.once?t.once(e,n):t.on(e,n);else if(typeof t.addEventListener=="function")t.addEventListener(e,function i(o){r.once&&t.removeEventListener(e,i),n(o)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof t)}});var ar=X(Be=>{"use strict";Object.defineProperty(Be,"__esModule",{value:!0});Be.getFirstNonWhitespaceIndex=Be.getLineOffsets=Be.offsetAt=Be.positionAt=Be.isInsideFrontmatter=Be.isInsideExpression=Be.isInTag=Be.isPossibleComponent=Be.isInTagName=Be.isInComponentStartTag=Be.getLineAtPosition=Be.extractScriptTags=Be.extractStyleTags=Be.walk=void 0;var Nl=pt(),fp=dt();function*Wl(t){for(let e of t.children)yield*Wl(e);yield t}Be.walk=Wl;function hw(t,e,n){let r=n.roots,i=r.filter(s=>s.tag===e);if(e==="style"&&!i.length&&r.length)for(let s of Wl(r[0]))s.tag==="style"&&i.push(s);if(e==="script"&&!i.length&&r.length)for(let s of Wl(r[0]))s.tag==="script"&&i.push(s);return i.map(o);function o(s){let l=s.startTagEnd??s.start,a=s.endTagStart??s.end,c=pp(l,t),u=pp(a,t),d={start:s.start,end:s.end};return{content:t.substring(l,a),attributes:$2(s.attributes),start:l,end:a,startPos:c,endPos:u,container:d,closed:s.closed}}}function H2(t,e){let n=hw(t,"style",e);return n.length?n:[]}Be.extractStyleTags=H2;function B2(t,e){let n=hw(t,"script",e);return n.length?n:[]}Be.extractScriptTags=B2;function $2(t){let e={};if(!t)return e;return Object.keys(t).forEach(r=>{let i=t[r];e[r]=i===null?r:n(i)}),e;function n(r){return r.startsWith('"')&&r.endsWith('"')||r.startsWith("'")&&r.endsWith("'")?r.slice(1,r.length-1):r}}function V2(t,e){return e.substring(mp({line:t.line,character:0},e),mp({line:t.line,character:Number.MAX_VALUE},e))}Be.getLineAtPosition=V2;function K2(t,e){let n=t.findNodeAt(e);return pw(n)&&(!n.startTagEnd||e<n.startTagEnd)}Be.isInComponentStartTag=K2;function G2(t,e){let n=t.findNodeAt(e);return e>n.start&&e<n.start+(n.tag?.length??0)}Be.isInTagName=G2;function pw(t){return!!t.tag?.[0].match(/[A-Z]/)||!!t.tag?.match(/.+[.][A-Z]?/)}Be.isPossibleComponent=pw;function J2(t,e){return!!e&&(0,fp.isInRange)(Nl.Range.create(e.startPos,e.endPos),t)}Be.isInTag=J2;function X2(t,e,n){let r=t.substring(e,n);return r.lastIndexOf("{")>r.lastIndexOf("}")}Be.isInsideExpression=X2;function Q2(t,e){let n=t.slice(0,e).trim().split("---").length,r=t.slice(e).trim().split("---").length;return n>1&&n<3&&r>=1}Be.isInsideFrontmatter=Q2;function pp(t,e,n=gp(e)){t=(0,fp.clamp)(t,0,e.length);let r=0,i=n.length;if(i===0)return Nl.Position.create(0,t);for(;r<=i;){let s=Math.floor((r+i)/2),l=n[s];if(l===t)return Nl.Position.create(s,0);t>l?r=s+1:i=s-1}let o=r-1;return Nl.Position.create(o,t-n[o])}Be.positionAt=pp;function mp(t,e,n=gp(e)){if(t.line>=n.length)return e.length;if(t.line<0)return 0;let r=n[t.line],i=t.line+1<n.length?n[t.line+1]:e.length;return(0,fp.clamp)(i,r,r+t.character)}Be.offsetAt=mp;function gp(t){let e=[],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===`
|
|
37
|
+
`)}Pe.modifyLines=x2;function k2(t,e,n){return Math.max(e,Math.min(n,t))}Pe.clamp=k2;function C2(t){return t!=null}Pe.isNotNullOrUndefined=C2;function T2(t,e){return ap(t.end,e)&&ap(e,t.start)}Pe.isInRange=T2;function ap(t,e){return e.line<t.line||e.line===t.line&&e.character<=t.character}Pe.isBeforeOrEqualToPosition=ap;function E2(t,e,n){n===void 0?n=t.length:n<0&&(n=0);let r=t.substring(0,n+1),i=-1,o=null;for(;(o=e.exec(r))!==null;)i=o.index;return i}Pe.regexLastIndexOf=E2;function D2(t,e){let n=[],r;for(;r=t.exec(e);)n.push(r);return n}Pe.getRegExpMatches=D2;function F2(t,e,n){let r,i;return o=>{e(o,i)&&clearTimeout(r),i=o,r=setTimeout(()=>{t(o),i=void 0},n)}}Pe.debounceSameArg=F2;function A2(t,e){let n,r=Date.now()-e;function i(...o){clearTimeout(n),n=setTimeout(()=>{if(Date.now()-r<e){i(...o);return}t(...o),r=Date.now()},e)}return i}Pe.debounceThrottle=A2;function R2(t){try{let e=Lt.resolve("./package.json",{paths:[t]}),n=Object.assign(Lt(e).dependencies??{},Lt(e).devDependencies??{});if(Object.keys(n).includes("astro"))return!0}catch{return!1}return!1}Pe.isAstroWorkspace=R2;function I2(t){let e,n;try{if(e=(0,Yv.getPackagePath)("astro",t),!e)throw Error;n=Lt((0,Qv.resolve)(e,"package.json")).version}catch{try{if(e=(0,Yv.getPackagePath)("./packages/astro",t),!e)throw Error;n=Lt((0,Qv.resolve)(e,"package.json")).version}catch{console.error(`${t[0]} seems to be an Astro project, but we couldn't find Astro or Astro is not installed`);return}}let[r,i,o]=n.split(".");return o.includes("-")&&(o=o.split("-")[0]),{path:e,version:{full:n,major:Number(r),minor:Number(i),patch:Number(o)}}}Pe.getAstroInstall=I2});var ew=X(ui=>{"use strict";Object.defineProperty(ui,"__esModule",{value:!0});ui.ConfigManager=ui.defaultLSConfig=void 0;var lp=dt();ui.defaultLSConfig={typescript:{enabled:!0,allowArbitraryAttributes:!1,diagnostics:{enabled:!0},hover:{enabled:!0},completions:{enabled:!0},definitions:{enabled:!0},documentSymbols:{enabled:!0},codeActions:{enabled:!0},rename:{enabled:!0},signatureHelp:{enabled:!0},semanticTokens:{enabled:!0}},css:{enabled:!0,hover:{enabled:!0},completions:{enabled:!0,emmet:!0},documentColors:{enabled:!0},documentSymbols:{enabled:!0}},html:{enabled:!0,hover:{enabled:!0},completions:{enabled:!0,emmet:!0},tagComplete:{enabled:!0},documentSymbols:{enabled:!0}},format:{indentFrontmatter:!1,newLineAfterFrontmatter:!0}};var cp=class{constructor(e,n){this.connection=e,this.hasConfigurationCapability=n,this.globalConfig={astro:ui.defaultLSConfig},this.documentSettings={},this.shouldRefreshTSServices=!1,this.isTrusted=!0}updateConfig(){this.documentSettings={},this.shouldRefreshTSServices=!0}removeDocument(e){delete this.documentSettings[e]}async getConfig(e,n){return!this.connection||!this.hasConfigurationCapability?(0,lp.get)(this.globalConfig,e)??{}:(this.documentSettings[n]||(this.documentSettings[n]={}),this.documentSettings[n][e]||(this.documentSettings[n][e]=await this.connection.workspace.getConfiguration({scopeUri:n,section:e})),this.documentSettings[n][e])}async getEmmetConfig(e){let n=await this.getConfig("emmet",e.uri)??{};return{...n,preferences:n.preferences??{},showExpandedAbbreviation:n.showExpandedAbbreviation??"always",showAbbreviationSuggestions:n.showAbbreviationSuggestions??!0,syntaxProfiles:n.syntaxProfiles??{},variables:n.variables??{},excludeLanguages:n.excludeLanguages??[],showSuggestionsAsSnippets:n.showSuggestionsAsSnippets??!1}}async getPrettierVSConfig(e){return await this.getConfig("prettier",e.uri)??{}}async getTSFormatConfig(e,n){let r=await this.getConfig("typescript.format",e.uri)??{};return{tabSize:n?.tabSize,indentSize:n?.tabSize,convertTabsToSpaces:n?.insertSpaces,newLineCharacter:`
|
|
38
|
+
`,insertSpaceAfterCommaDelimiter:r.insertSpaceAfterCommaDelimiter??!0,insertSpaceAfterConstructor:r.insertSpaceAfterConstructor??!1,insertSpaceAfterSemicolonInForStatements:r.insertSpaceAfterSemicolonInForStatements??!0,insertSpaceBeforeAndAfterBinaryOperators:r.insertSpaceBeforeAndAfterBinaryOperators??!0,insertSpaceAfterKeywordsInControlFlowStatements:r.insertSpaceAfterKeywordsInControlFlowStatements??!0,insertSpaceAfterFunctionKeywordForAnonymousFunctions:r.insertSpaceAfterFunctionKeywordForAnonymousFunctions??!0,insertSpaceBeforeFunctionParenthesis:r.insertSpaceBeforeFunctionParenthesis??!1,insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis:r.insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis??!1,insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets:r.insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets??!1,insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces:r.insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces??!0,insertSpaceAfterOpeningAndBeforeClosingEmptyBraces:r.insertSpaceAfterOpeningAndBeforeClosingEmptyBraces??!0,insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces:r.insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces??!1,insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces:r.insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces??!1,insertSpaceAfterTypeAssertion:r.insertSpaceAfterTypeAssertion??!1,placeOpenBraceOnNewLineForFunctions:r.placeOpenBraceOnNewLineForFunctions??!1,placeOpenBraceOnNewLineForControlBlocks:r.placeOpenBraceOnNewLineForControlBlocks??!1,semicolons:r.semicolons??"ignore"}}async getTSPreferences(e){let n=await this.getConfig("typescript",e.uri)??{},r=await this.getConfig("typescript.preferences",e.uri)??{};return{quotePreference:M2(r),importModuleSpecifierPreference:P2(r),importModuleSpecifierEnding:z2(r),allowTextChangesInNewFiles:e.uri.startsWith("file://"),providePrefixAndSuffixTextForRename:(r.renameShorthandProperties??!0)===!1?!1:r.useAliasesForRenames??!0,includeAutomaticOptionalChainCompletions:n.suggest?.includeAutomaticOptionalChainCompletions??!0,includeCompletionsForImportStatements:n.suggest?.includeCompletionsForImportStatements??!0,includeCompletionsWithSnippetText:n.suggest?.includeCompletionsWithSnippetText??!0,includeCompletionsForModuleExports:n.suggest?.autoImports??!0,allowIncompleteCompletions:!0,includeCompletionsWithInsertText:!0,includeInlayParameterNameHints:O2(n),includeInlayParameterNameHintsWhenArgumentMatchesName:!(n.inlayHints?.parameterNames?.suppressWhenArgumentMatchesName??!0),includeInlayFunctionParameterTypeHints:n.inlayHints?.parameterTypes?.enabled??!1,includeInlayVariableTypeHints:n.inlayHints?.variableTypes?.enabled??!1,includeInlayPropertyDeclarationTypeHints:n.inlayHints?.propertyDeclarationTypes?.enabled??!1,includeInlayFunctionLikeReturnTypeHints:n.inlayHints?.functionLikeReturnTypes?.enabled??!1,includeInlayEnumMemberValueHints:n.inlayHints?.enumMemberValues?.enabled??!1}}async isEnabled(e,n,r){let i=await this.getConfig("astro",e.uri)??{};if(i[n]){let o=i[n].enabled??!0;return r&&i[n][r]&&(o=(o&&i[n][r].enabled)??!0),o}return!0}updateGlobalConfig(e,n){n?this.globalConfig=(0,lp.mergeDeep)({},this.globalConfig,e):this.globalConfig.astro=(0,lp.mergeDeep)({},ui.defaultLSConfig,this.globalConfig.astro,e),this.shouldRefreshTSServices=!0}};ui.ConfigManager=cp;function M2(t){switch(t.quoteStyle){case"single":return"single";case"double":return"double";default:return"auto"}}function P2(t){switch(t.importModuleSpecifier){case"project-relative":return"project-relative";case"relative":return"relative";case"non-relative":return"non-relative";default:return}}function z2(t){switch(t.importModuleSpecifierEnding){case"minimal":return"minimal";case"index":return"index";case"js":return"js";default:return"auto"}}function O2(t){switch(t.inlayHints?.parameterNames?.enabled){case"none":return"none";case"literals":return"literals";case"all":return"all";default:return}}});var tw=X(zl=>{"use strict";Object.defineProperty(zl,"__esModule",{value:!0});zl.DiagnosticsManager=void 0;var up=class{constructor(e,n,r){this.sendDiagnostics=e,this.docManager=n,this.getDiagnostics=r}updateAll(){this.docManager.getAllOpenedByClient().forEach(e=>{this.update(e[1])})}async update(e){let n=await this.getDiagnostics({uri:e.getURL()});this.sendDiagnostics({uri:e.getURL(),diagnostics:n})}removeDiagnostics(e){this.sendDiagnostics({uri:e.getURL(),diagnostics:[]})}};zl.DiagnosticsManager=up});var hp=X((O5,dp)=>{"use strict";var Do=typeof Reflect=="object"?Reflect:null,nw=Do&&typeof Do.apply=="function"?Do.apply:function(e,n,r){return Function.prototype.apply.call(e,n,r)},Ol;Do&&typeof Do.ownKeys=="function"?Ol=Do.ownKeys:Object.getOwnPropertySymbols?Ol=function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Ol=function(e){return Object.getOwnPropertyNames(e)};function L2(t){console&&console.warn&&console.warn(t)}var iw=Number.isNaN||function(e){return e!==e};function Ke(){Ke.init.call(this)}dp.exports=Ke;dp.exports.once=U2;Ke.EventEmitter=Ke;Ke.prototype._events=void 0;Ke.prototype._eventsCount=0;Ke.prototype._maxListeners=void 0;var rw=10;function Ll(t){if(typeof t!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof t)}Object.defineProperty(Ke,"defaultMaxListeners",{enumerable:!0,get:function(){return rw},set:function(t){if(typeof t!="number"||t<0||iw(t))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+t+".");rw=t}});Ke.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0};Ke.prototype.setMaxListeners=function(e){if(typeof e!="number"||e<0||iw(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this};function ow(t){return t._maxListeners===void 0?Ke.defaultMaxListeners:t._maxListeners}Ke.prototype.getMaxListeners=function(){return ow(this)};Ke.prototype.emit=function(e){for(var n=[],r=1;r<arguments.length;r++)n.push(arguments[r]);var i=e==="error",o=this._events;if(o!==void 0)i=i&&o.error===void 0;else if(!i)return!1;if(i){var s;if(n.length>0&&(s=n[0]),s instanceof Error)throw s;var l=new Error("Unhandled error."+(s?" ("+s.message+")":""));throw l.context=s,l}var a=o[e];if(a===void 0)return!1;if(typeof a=="function")nw(a,this,n);else for(var c=a.length,u=uw(a,c),r=0;r<c;++r)nw(u[r],this,n);return!0};function sw(t,e,n,r){var i,o,s;if(Ll(n),o=t._events,o===void 0?(o=t._events=Object.create(null),t._eventsCount=0):(o.newListener!==void 0&&(t.emit("newListener",e,n.listener?n.listener:n),o=t._events),s=o[e]),s===void 0)s=o[e]=n,++t._eventsCount;else if(typeof s=="function"?s=o[e]=r?[n,s]:[s,n]:r?s.unshift(n):s.push(n),i=ow(t),i>0&&s.length>i&&!s.warned){s.warned=!0;var l=new Error("Possible EventEmitter memory leak detected. "+s.length+" "+String(e)+" listeners added. Use emitter.setMaxListeners() to increase limit");l.name="MaxListenersExceededWarning",l.emitter=t,l.type=e,l.count=s.length,L2(l)}return t}Ke.prototype.addListener=function(e,n){return sw(this,e,n,!1)};Ke.prototype.on=Ke.prototype.addListener;Ke.prototype.prependListener=function(e,n){return sw(this,e,n,!0)};function N2(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function aw(t,e,n){var r={fired:!1,wrapFn:void 0,target:t,type:e,listener:n},i=N2.bind(r);return i.listener=n,r.wrapFn=i,i}Ke.prototype.once=function(e,n){return Ll(n),this.on(e,aw(this,e,n)),this};Ke.prototype.prependOnceListener=function(e,n){return Ll(n),this.prependListener(e,aw(this,e,n)),this};Ke.prototype.removeListener=function(e,n){var r,i,o,s,l;if(Ll(n),i=this._events,i===void 0)return this;if(r=i[e],r===void 0)return this;if(r===n||r.listener===n)--this._eventsCount===0?this._events=Object.create(null):(delete i[e],i.removeListener&&this.emit("removeListener",e,r.listener||n));else if(typeof r!="function"){for(o=-1,s=r.length-1;s>=0;s--)if(r[s]===n||r[s].listener===n){l=r[s].listener,o=s;break}if(o<0)return this;o===0?r.shift():W2(r,o),r.length===1&&(i[e]=r[0]),i.removeListener!==void 0&&this.emit("removeListener",e,l||n)}return this};Ke.prototype.off=Ke.prototype.removeListener;Ke.prototype.removeAllListeners=function(e){var n,r,i;if(r=this._events,r===void 0)return this;if(r.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):r[e]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete r[e]),this;if(arguments.length===0){var o=Object.keys(r),s;for(i=0;i<o.length;++i)s=o[i],s!=="removeListener"&&this.removeAllListeners(s);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(n=r[e],typeof n=="function")this.removeListener(e,n);else if(n!==void 0)for(i=n.length-1;i>=0;i--)this.removeListener(e,n[i]);return this};function lw(t,e,n){var r=t._events;if(r===void 0)return[];var i=r[e];return i===void 0?[]:typeof i=="function"?n?[i.listener||i]:[i]:n?q2(i):uw(i,i.length)}Ke.prototype.listeners=function(e){return lw(this,e,!0)};Ke.prototype.rawListeners=function(e){return lw(this,e,!1)};Ke.listenerCount=function(t,e){return typeof t.listenerCount=="function"?t.listenerCount(e):cw.call(t,e)};Ke.prototype.listenerCount=cw;function cw(t){var e=this._events;if(e!==void 0){var n=e[t];if(typeof n=="function")return 1;if(n!==void 0)return n.length}return 0}Ke.prototype.eventNames=function(){return this._eventsCount>0?Ol(this._events):[]};function uw(t,e){for(var n=new Array(e),r=0;r<e;++r)n[r]=t[r];return n}function W2(t,e){for(;e+1<t.length;e++)t[e]=t[e+1];t.pop()}function q2(t){for(var e=new Array(t.length),n=0;n<e.length;++n)e[n]=t[n].listener||t[n];return e}function U2(t,e){return new Promise(function(n,r){function i(s){t.removeListener(e,o),r(s)}function o(){typeof t.removeListener=="function"&&t.removeListener("error",i),n([].slice.call(arguments))}dw(t,e,o,{once:!0}),e!=="error"&&j2(t,i,{once:!0})})}function j2(t,e,n){typeof t.on=="function"&&dw(t,"error",e,n)}function dw(t,e,n,r){if(typeof t.on=="function")r.once?t.once(e,n):t.on(e,n);else if(typeof t.addEventListener=="function")t.addEventListener(e,function i(o){r.once&&t.removeEventListener(e,i),n(o)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof t)}});var ar=X(Be=>{"use strict";Object.defineProperty(Be,"__esModule",{value:!0});Be.getFirstNonWhitespaceIndex=Be.getLineOffsets=Be.offsetAt=Be.positionAt=Be.isInsideFrontmatter=Be.isInsideExpression=Be.isInTag=Be.isPossibleComponent=Be.isInTagName=Be.isInComponentStartTag=Be.getLineAtPosition=Be.extractScriptTags=Be.extractStyleTags=Be.walk=void 0;var Nl=pt(),fp=dt();function*Wl(t){for(let e of t.children)yield*Wl(e);yield t}Be.walk=Wl;function hw(t,e,n){let r=n.roots,i=r.filter(s=>s.tag===e);if(e==="style"&&!i.length&&r.length)for(let s of Wl(r[0]))s.tag==="style"&&i.push(s);if(e==="script"&&!i.length&&r.length)for(let s of Wl(r[0]))s.tag==="script"&&i.push(s);return i.map(o);function o(s){let l=s.startTagEnd??s.start,a=s.endTagStart??s.end,c=pp(l,t),u=pp(a,t),d={start:s.start,end:s.end};return{content:t.substring(l,a),attributes:$2(s.attributes),start:l,end:a,startPos:c,endPos:u,container:d,closed:s.closed}}}function H2(t,e){let n=hw(t,"style",e);return n.length?n:[]}Be.extractStyleTags=H2;function B2(t,e){let n=hw(t,"script",e);return n.length?n:[]}Be.extractScriptTags=B2;function $2(t){let e={};if(!t)return e;return Object.keys(t).forEach(r=>{let i=t[r];e[r]=i===null?r:n(i)}),e;function n(r){return r.startsWith('"')&&r.endsWith('"')||r.startsWith("'")&&r.endsWith("'")?r.slice(1,r.length-1):r}}function V2(t,e){return e.substring(mp({line:t.line,character:0},e),mp({line:t.line,character:Number.MAX_VALUE},e))}Be.getLineAtPosition=V2;function K2(t,e){let n=t.findNodeAt(e);return pw(n)&&(!n.startTagEnd||e<n.startTagEnd)}Be.isInComponentStartTag=K2;function G2(t,e){let n=t.findNodeAt(e);return e>n.start&&e<n.start+(n.tag?.length??0)}Be.isInTagName=G2;function pw(t){return!!t.tag?.[0].match(/[A-Z]/)||!!t.tag?.match(/.+[.][A-Z]?/)}Be.isPossibleComponent=pw;function J2(t,e){return!!e&&(0,fp.isInRange)(Nl.Range.create(e.startPos,e.endPos),t)}Be.isInTag=J2;function X2(t,e,n){let r=t.substring(e,n);return r.lastIndexOf("{")>r.lastIndexOf("}")}Be.isInsideExpression=X2;function Q2(t,e){let n=t.slice(0,e).trim().split("---").length,r=t.slice(e).trim().split("---").length;return n>1&&n<3&&r>=1}Be.isInsideFrontmatter=Q2;function pp(t,e,n=gp(e)){t=(0,fp.clamp)(t,0,e.length);let r=0,i=n.length;if(i===0)return Nl.Position.create(0,t);for(;r<=i;){let s=Math.floor((r+i)/2),l=n[s];if(l===t)return Nl.Position.create(s,0);t>l?r=s+1:i=s-1}let o=r-1;return Nl.Position.create(o,t-n[o])}Be.positionAt=pp;function mp(t,e,n=gp(e)){if(t.line>=n.length)return e.length;if(t.line<0)return 0;let r=n[t.line],i=t.line+1<n.length?n[t.line+1]:e.length;return(0,fp.clamp)(i,r,r+t.character)}Be.offsetAt=mp;function gp(t){let e=[],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===`
|
|
39
39
|
`,i==="\r"&&r+1<t.length&&t.charAt(r+1)===`
|
|
40
|
-
`&&r++}return n&&t.length>0&&e.push(t.length),e}Be.getLineOffsets=gp;function Y2(t){return t.length-t.trimStart().length}Be.getFirstNonWhitespaceIndex=Y2});var wp=X(Fo=>{"use strict";Object.defineProperty(Fo,"__esModule",{value:!0});Fo.WritableDocument=Fo.ReadableDocument=void 0;var bp=ar(),ql=class{constructor(){this.version=0}getTextLength(){return this.getText().length}positionAt(e){return(0,bp.positionAt)(e,this.getText(),this.getLineOffsets())}offsetAt(e){return(0,bp.offsetAt)(e,this.getText(),this.getLineOffsets())}getLineUntilOffset(e){let{line:n,character:r}=this.positionAt(e);return this.lines[n].slice(0,r)}getLineOffsets(){return this.lineOffsets||(this.lineOffsets=(0,bp.getLineOffsets)(this.getText())),this.lineOffsets}get uri(){return this.getURL()}get lines(){return this.getText().split(/\r?\n/)}get lineCount(){return this.lines.length}};Fo.ReadableDocument=ql;var vp=class extends ql{update(e,n,r){this.lineOffsets=void 0;let i=this.getText();this.setText(i.slice(0,n)+e+i.slice(r))}};Fo.WritableDocument=vp});var fw=X(Ul=>{"use strict";Object.defineProperty(Ul,"__esModule",{value:!0});Ul.parseAstro=void 0;var mw=ar();function Z2(t){let e=eD(t);return{frontmatter:e,content:tD(t,e)}}Ul.parseAstro=Z2;function eD(t){function e(){switch(t.trim().split("---").length){case 1:return null;case 2:return"open";default:return"closed"}}let n=e();function r(){let s=t.indexOf("---");if(s===-1)return[null,null];let l=t.slice(s+3).indexOf("---")+3;return l===-1?[s,null]:[s,l]}let[i,o]=r();return{state:n,startOffset:i,endOffset:o}}function tD(t,e){switch(e.state){case null:{let n=(0,mw.getFirstNonWhitespaceIndex)(t);return{firstNonWhitespaceOffset:n===-1?null:n}}case"open":return{firstNonWhitespaceOffset:null};case"closed":{let{endOffset:n}=e,r=(n??0)+3,i=(0,mw.getFirstNonWhitespaceIndex)(t.slice(r));return{firstNonWhitespaceOffset:r+i}}}}});var xp=X(Sp=>{"use strict";Object.defineProperty(Sp,"__esModule",{value:!0});var yp;function _p(){if(yp===void 0)throw new Error("No runtime abstraction layer installed");return yp}(function(t){function e(n){if(n===void 0)throw new Error("No runtime abstraction layer provided");yp=n}t.install=e})(_p||(_p={}));Sp.default=_p});var Cp=X(lt=>{"use strict";Object.defineProperty(lt,"__esModule",{value:!0});lt.config=lt.loadMessageBundle=lt.localize=lt.format=lt.setPseudo=lt.isPseudo=lt.isDefined=lt.BundleFormat=lt.MessageFormat=void 0;var bw=xp(),nD;(function(t){t.file="file",t.bundle="bundle",t.both="both"})(nD=lt.MessageFormat||(lt.MessageFormat={}));var rD;(function(t){t.standalone="standalone",t.languagePack="languagePack"})(rD=lt.BundleFormat||(lt.BundleFormat={}));var gw;(function(t){function e(n){var r=n;return r&&kp(r.key)&&kp(r.comment)}t.is=e})(gw||(gw={}));function kp(t){return typeof t<"u"}lt.isDefined=kp;lt.isPseudo=!1;function iD(t){lt.isPseudo=t}lt.setPseudo=iD;function vw(t,e){var n;return lt.isPseudo&&(t="\uFF3B"+t.replace(/[aouei]/g,"$&$&")+"\uFF3D"),e.length===0?n=t:n=t.replace(/\{(\d+)\}/g,function(r,i){var o=i[0],s=e[o],l=r;return typeof s=="string"?l=s:(typeof s=="number"||typeof s=="boolean"||s===void 0||s===null)&&(l=String(s)),l}),n}lt.format=vw;function oD(t,e){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return vw(e,n)}lt.localize=oD;function sD(t){return(0,bw.default)().loadMessageBundle(t)}lt.loadMessageBundle=sD;function aD(t){return(0,bw.default)().config(t)}lt.config=aD});var $s=X(vn=>{"use strict";var lD=vn&&vn.__spreadArray||function(t,e,n){if(n||arguments.length===2)for(var r=0,i=e.length,o;r<i;r++)(o||!(r in e))&&(o||(o=Array.prototype.slice.call(e,0,r)),o[r]=e[r]);return t.concat(o||Array.prototype.slice.call(e))};Object.defineProperty(vn,"__esModule",{value:!0});vn.config=vn.loadMessageBundle=vn.BundleFormat=vn.MessageFormat=void 0;var cD=xp(),ww=Cp(),yw=Cp();Object.defineProperty(vn,"MessageFormat",{enumerable:!0,get:function(){return yw.MessageFormat}});Object.defineProperty(vn,"BundleFormat",{enumerable:!0,get:function(){return yw.BundleFormat}});function Tp(t){return function(e,n){for(var r=[],i=2;i<arguments.length;i++)r[i-2]=arguments[i];if(typeof e=="number")throw new Error("Browser implementation does currently not support externalized strings.");return ww.localize.apply(void 0,lD([e,n],r,!1))}}vn.loadMessageBundle=Tp;function _w(t){var e;return(0,ww.setPseudo)(((e=t?.locale)===null||e===void 0?void 0:e.toLowerCase())==="pseudo"),Tp}vn.config=_w;cD.default.install(Object.freeze({loadMessageBundle:Tp,config:_w}))});function Ep(t,e){if(t.length<=1)return t;let n=t.length/2|0,r=t.slice(0,n),i=t.slice(n);Ep(r,e),Ep(i,e);let o=0,s=0,l=0;for(;o<r.length&&s<i.length;)e(r[o],i[s])<=0?t[l++]=r[o++]:t[l++]=i[s++];for(;o<r.length;)t[l++]=r[o++];for(;s<i.length;)t[l++]=i[s++];return t}function Sw(t,e,n=0){let r=e?[n]:[];for(let i=0;i<t.length;i++){let o=t.charCodeAt(i);(o===13||o===10)&&(o===13&&i+1<t.length&&t.charCodeAt(i+1)===10&&i++,r.push(n+i+1))}return r}function xw(t){let e=t.start,n=t.end;return e.line>n.line||e.line===n.line&&e.character>n.character?{start:n,end:e}:t}function uD(t){let e=xw(t.range);return e!==t.range?{newText:t.newText,range:e}:t}var Ui,Ao,Dp=ue(()=>{"use strict";Ui=class{constructor(e,n,r,i){this._uri=e,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(e){if(e){let n=this.offsetAt(e.start),r=this.offsetAt(e.end);return this._content.substring(n,r)}return this._content}update(e,n){for(let r of e)if(Ui.isIncremental(r)){let i=xw(r.range),o=this.offsetAt(i.start),s=this.offsetAt(i.end);this._content=this._content.substring(0,o)+r.text+this._content.substring(s,this._content.length);let l=Math.max(i.start.line,0),a=Math.max(i.end.line,0),c=this._lineOffsets,u=Sw(r.text,!1,o);if(a-l===u.length)for(let h=0,p=u.length;h<p;h++)c[h+l+1]=u[h];else u.length<1e4?c.splice(l+1,a-l,...u):this._lineOffsets=c=c.slice(0,l+1).concat(u,c.slice(a+1));let d=r.text.length-(s-o);if(d!==0)for(let h=l+1+u.length,p=c.length;h<p;h++)c[h]=c[h]+d}else if(Ui.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=Sw(this._content,!0)),this._lineOffsets}positionAt(e){e=Math.max(Math.min(e,this._content.length),0);let n=this.getLineOffsets(),r=0,i=n.length;if(i===0)return{line:0,character:e};for(;r<i;){let s=Math.floor((r+i)/2);n[s]>e?i=s:r=s+1}let o=r-1;return{line:o,character:e-n[o]}}offsetAt(e){let n=this.getLineOffsets();if(e.line>=n.length)return this._content.length;if(e.line<0)return 0;let r=n[e.line],i=e.line+1<n.length?n[e.line+1]:this._content.length;return Math.max(Math.min(r+e.character,i),r)}get lineCount(){return this.getLineOffsets().length}static isIncremental(e){let n=e;return n!=null&&typeof n.text=="string"&&n.range!==void 0&&(n.rangeLength===void 0||typeof n.rangeLength=="number")}static isFull(e){let n=e;return n!=null&&typeof n.text=="string"&&n.range===void 0&&n.rangeLength===void 0}};(function(t){function e(i,o,s,l){return new Ui(i,o,s,l)}t.create=e;function n(i,o,s){if(i instanceof Ui)return i.update(o,s),i;throw new Error("TextDocument.update: document must be created by TextDocument.create")}t.update=n;function r(i,o){let s=i.getText(),l=Ep(o.map(uD),(u,d)=>{let h=u.range.start.line-d.range.start.line;return h===0?u.range.start.character-d.range.start.character:h}),a=0,c=[];for(let u of l){let d=i.offsetAt(u.range.start);if(d<a)throw new Error("Overlapping edit");d>a&&c.push(s.substring(a,d)),u.newText.length&&c.push(u.newText),a=i.offsetAt(u.range.end)}return c.push(s.substr(a)),c.join("")}t.applyEdits=r})(Ao||(Ao={}))});var $,ne,_e,Fp,Vs,rn=ue(()=>{$=ei(Xt());Dp();(function(t){t[t.StartCommentTag=0]="StartCommentTag",t[t.Comment=1]="Comment",t[t.EndCommentTag=2]="EndCommentTag",t[t.StartTagOpen=3]="StartTagOpen",t[t.StartTagClose=4]="StartTagClose",t[t.StartTagSelfClose=5]="StartTagSelfClose",t[t.StartTag=6]="StartTag",t[t.EndTagOpen=7]="EndTagOpen",t[t.EndTagClose=8]="EndTagClose",t[t.EndTag=9]="EndTag",t[t.DelimiterAssign=10]="DelimiterAssign",t[t.AttributeName=11]="AttributeName",t[t.AttributeValue=12]="AttributeValue",t[t.StartDoctypeTag=13]="StartDoctypeTag",t[t.Doctype=14]="Doctype",t[t.EndDoctypeTag=15]="EndDoctypeTag",t[t.Content=16]="Content",t[t.Whitespace=17]="Whitespace",t[t.Unknown=18]="Unknown",t[t.Script=19]="Script",t[t.Styles=20]="Styles",t[t.EOS=21]="EOS"})(ne||(ne={}));(function(t){t[t.WithinContent=0]="WithinContent",t[t.AfterOpeningStartTag=1]="AfterOpeningStartTag",t[t.AfterOpeningEndTag=2]="AfterOpeningEndTag",t[t.WithinDoctype=3]="WithinDoctype",t[t.WithinTag=4]="WithinTag",t[t.WithinEndTag=5]="WithinEndTag",t[t.WithinComment=6]="WithinComment",t[t.WithinScriptContent=7]="WithinScriptContent",t[t.WithinStyleContent=8]="WithinStyleContent",t[t.AfterAttributeName=9]="AfterAttributeName",t[t.BeforeAttributeValue=10]="BeforeAttributeValue"})(_e||(_e={}));(function(t){t.LATEST={textDocument:{completion:{completionItem:{documentationFormat:[$.MarkupKind.Markdown,$.MarkupKind.PlainText]}},hover:{contentFormat:[$.MarkupKind.Markdown,$.MarkupKind.PlainText]}}}})(Fp||(Fp={}));(function(t){t[t.Unknown=0]="Unknown",t[t.File=1]="File",t[t.Directory=2]="Directory",t[t.SymbolicLink=64]="SymbolicLink"})(Vs||(Vs={}))});function gt(t,e,n,r){e===void 0&&(e=0),n===void 0&&(n=_e.WithinContent),r===void 0&&(r=!1);var i=new dD(t,e),o=n,s=0,l=ne.Unknown,a,c,u,d,h;function p(){return i.advanceIfRegExp(/^[_:\w][_:\w-.\d]*/).toLowerCase()}function w(){return i.advanceIfRegExp(/^[^\s"'></=\x00-\x0F\x7F\x80-\x9F]*/).toLowerCase()}function v(f,g,D){return l=g,s=f,a=D,g}function x(){var f=i.pos(),g=o,D=_();return D!==ne.EOS&&f===i.pos()&&!(r&&(D===ne.StartTagClose||D===ne.EndTagClose))?(console.log("Scanner.scan has not advanced at offset "+f+", state before: "+g+" after: "+o),i.advance(1),v(f,ne.Unknown)):D}function _(){var f=i.pos();if(i.eos())return v(f,ne.EOS);var g;switch(o){case _e.WithinComment:return i.advanceIfChars([Ro,Ro,lr])?(o=_e.WithinContent,v(f,ne.EndCommentTag)):(i.advanceUntilChars([Ro,Ro,lr]),v(f,ne.Comment));case _e.WithinDoctype:return i.advanceIfChar(lr)?(o=_e.WithinContent,v(f,ne.EndDoctypeTag)):(i.advanceUntilChar(lr),v(f,ne.Doctype));case _e.WithinContent:if(i.advanceIfChar(jl)){if(!i.eos()&&i.peekChar()===kw){if(i.advanceIfChars([kw,Ro,Ro]))return o=_e.WithinComment,v(f,ne.StartCommentTag);if(i.advanceIfRegExp(/^!doctype/i))return o=_e.WithinDoctype,v(f,ne.StartDoctypeTag)}return i.advanceIfChar(Ap)?(o=_e.AfterOpeningEndTag,v(f,ne.EndTagOpen)):(o=_e.AfterOpeningStartTag,v(f,ne.StartTagOpen))}return i.advanceUntilChar(jl),v(f,ne.Content);case _e.AfterOpeningEndTag:var D=p();return D.length>0?(o=_e.WithinEndTag,v(f,ne.EndTag)):i.skipWhitespace()?v(f,ne.Whitespace,ui("error.unexpectedWhitespace","Tag name must directly follow the open bracket.")):(o=_e.WithinEndTag,i.advanceUntilChar(lr),f<i.pos()?v(f,ne.Unknown,ui("error.endTagNameExpected","End tag name expected.")):_());case _e.WithinEndTag:if(i.skipWhitespace())return v(f,ne.Whitespace);if(i.advanceIfChar(lr))return o=_e.WithinContent,v(f,ne.EndTagClose);if(r&&i.peekChar()===jl)return o=_e.WithinContent,v(f,ne.EndTagClose,ui("error.closingBracketMissing","Closing bracket missing."));g=ui("error.closingBracketExpected","Closing bracket expected.");break;case _e.AfterOpeningStartTag:return u=p(),h=void 0,d=void 0,u.length>0?(c=!1,o=_e.WithinTag,v(f,ne.StartTag)):i.skipWhitespace()?v(f,ne.Whitespace,ui("error.unexpectedWhitespace","Tag name must directly follow the open bracket.")):(o=_e.WithinTag,i.advanceUntilChar(lr),f<i.pos()?v(f,ne.Unknown,ui("error.startTagNameExpected","Start tag name expected.")):_());case _e.WithinTag:return i.skipWhitespace()?(c=!0,v(f,ne.Whitespace)):c&&(d=w(),d.length>0)?(o=_e.AfterAttributeName,c=!1,v(f,ne.AttributeName)):i.advanceIfChars([Ap,lr])?(o=_e.WithinContent,v(f,ne.StartTagSelfClose)):i.advanceIfChar(lr)?(u==="script"?h&&yD[h]?o=_e.WithinContent:o=_e.WithinScriptContent:u==="style"?o=_e.WithinStyleContent:o=_e.WithinContent,v(f,ne.StartTagClose)):r&&i.peekChar()===jl?(o=_e.WithinContent,v(f,ne.StartTagClose,ui("error.closingBracketMissing","Closing bracket missing."))):(i.advance(1),v(f,ne.Unknown,ui("error.unexpectedCharacterInTag","Unexpected character in tag.")));case _e.AfterAttributeName:return i.skipWhitespace()?(c=!0,v(f,ne.Whitespace)):i.advanceIfChar(hD)?(o=_e.BeforeAttributeValue,v(f,ne.DelimiterAssign)):(o=_e.WithinTag,_());case _e.BeforeAttributeValue:if(i.skipWhitespace())return v(f,ne.Whitespace);var L=i.advanceIfRegExp(/^[^\s"'`=<>]+/);if(L.length>0)return i.peekChar()===lr&&i.peekChar(-1)===Ap&&(i.goBack(1),L=L.substr(0,L.length-1)),d==="type"&&(h=L),o=_e.WithinTag,c=!1,v(f,ne.AttributeValue);var K=i.peekChar();return K===mD||K===pD?(i.advance(1),i.advanceUntilChar(K)&&i.advance(1),d==="type"&&(h=i.getSource().substring(f+1,i.pos()-1)),o=_e.WithinTag,c=!1,v(f,ne.AttributeValue)):(o=_e.WithinTag,c=!1,_());case _e.WithinScriptContent:for(var C=1;!i.eos();){var T=i.advanceIfRegExp(/<!--|-->|<\/?script\s*\/?>?/i);if(T.length===0)return i.goToEnd(),v(f,ne.Script);if(T==="<!--")C===1&&(C=2);else if(T==="-->")C=1;else if(T[1]!=="/")C===2&&(C=3);else if(C===3)C=2;else{i.goBack(T.length);break}}return o=_e.WithinContent,f<i.pos()?v(f,ne.Script):_();case _e.WithinStyleContent:return i.advanceUntilRegExp(/<\/style/i),o=_e.WithinContent,f<i.pos()?v(f,ne.Styles):_()}return i.advance(1),o=_e.WithinContent,v(f,ne.Unknown,g)}return{scan:x,getTokenType:function(){return l},getTokenOffset:function(){return s},getTokenLength:function(){return i.pos()-s},getTokenEnd:function(){return i.pos()},getTokenText:function(){return i.getSource().substring(s,i.pos())},getScannerState:function(){return o},getTokenError:function(){return a}}}var Cw,ui,dD,kw,Ro,jl,lr,Ap,hD,pD,mD,fD,gD,bD,vD,wD,yD,Pr=ue(()=>{Cw=ei($s());rn();ui=Cw.loadMessageBundle(),dD=function(){function t(e,n){this.source=e,this.len=e.length,this.position=n}return t.prototype.eos=function(){return this.len<=this.position},t.prototype.getSource=function(){return this.source},t.prototype.pos=function(){return this.position},t.prototype.goBackTo=function(e){this.position=e},t.prototype.goBack=function(e){this.position-=e},t.prototype.advance=function(e){this.position+=e},t.prototype.goToEnd=function(){this.position=this.source.length},t.prototype.nextChar=function(){return this.source.charCodeAt(this.position++)||0},t.prototype.peekChar=function(e){return e===void 0&&(e=0),this.source.charCodeAt(this.position+e)||0},t.prototype.advanceIfChar=function(e){return e===this.source.charCodeAt(this.position)?(this.position++,!0):!1},t.prototype.advanceIfChars=function(e){var n;if(this.position+e.length>this.source.length)return!1;for(n=0;n<e.length;n++)if(this.source.charCodeAt(this.position+n)!==e[n])return!1;return this.advance(n),!0},t.prototype.advanceIfRegExp=function(e){var n=this.source.substr(this.position),r=n.match(e);return r?(this.position=this.position+r.index+r[0].length,r[0]):""},t.prototype.advanceUntilRegExp=function(e){var n=this.source.substr(this.position),r=n.match(e);return r?(this.position=this.position+r.index,r[0]):(this.goToEnd(),"")},t.prototype.advanceUntilChar=function(e){for(;this.position<this.source.length;){if(this.source.charCodeAt(this.position)===e)return!0;this.advance(1)}return!1},t.prototype.advanceUntilChars=function(e){for(;this.position+e.length<=this.source.length;){for(var n=0;n<e.length&&this.source.charCodeAt(this.position+n)===e[n];n++);if(n===e.length)return!0;this.advance(1)}return this.goToEnd(),!1},t.prototype.skipWhitespace=function(){var e=this.advanceWhileChar(function(n){return n===vD||n===wD||n===fD||n===bD||n===gD});return e>0},t.prototype.advanceWhileChar=function(e){for(var n=this.position;this.position<this.len&&e(this.source.charCodeAt(this.position));)this.position++;return this.position-n},t}(),kw="!".charCodeAt(0),Ro="-".charCodeAt(0),jl="<".charCodeAt(0),lr=">".charCodeAt(0),Ap="/".charCodeAt(0),hD="=".charCodeAt(0),pD='"'.charCodeAt(0),mD="'".charCodeAt(0),fD=`
|
|
40
|
+
`&&r++}return n&&t.length>0&&e.push(t.length),e}Be.getLineOffsets=gp;function Y2(t){return t.length-t.trimStart().length}Be.getFirstNonWhitespaceIndex=Y2});var wp=X(Fo=>{"use strict";Object.defineProperty(Fo,"__esModule",{value:!0});Fo.WritableDocument=Fo.ReadableDocument=void 0;var bp=ar(),ql=class{constructor(){this.version=0}getTextLength(){return this.getText().length}positionAt(e){return(0,bp.positionAt)(e,this.getText(),this.getLineOffsets())}offsetAt(e){return(0,bp.offsetAt)(e,this.getText(),this.getLineOffsets())}getLineUntilOffset(e){let{line:n,character:r}=this.positionAt(e);return this.lines[n].slice(0,r)}getLineOffsets(){return this.lineOffsets||(this.lineOffsets=(0,bp.getLineOffsets)(this.getText())),this.lineOffsets}get uri(){return this.getURL()}get lines(){return this.getText().split(/\r?\n/)}get lineCount(){return this.lines.length}};Fo.ReadableDocument=ql;var vp=class extends ql{update(e,n,r){this.lineOffsets=void 0;let i=this.getText();this.setText(i.slice(0,n)+e+i.slice(r))}};Fo.WritableDocument=vp});var fw=X(Ul=>{"use strict";Object.defineProperty(Ul,"__esModule",{value:!0});Ul.parseAstro=void 0;var mw=ar();function Z2(t){let e=eD(t);return{frontmatter:e,content:tD(t,e)}}Ul.parseAstro=Z2;function eD(t){function e(){switch(t.trim().split("---").length){case 1:return null;case 2:return"open";default:return"closed"}}let n=e();function r(){let s=t.indexOf("---");if(s===-1)return[null,null];let l=t.slice(s+3).indexOf("---")+3;return l===-1?[s,null]:[s,l]}let[i,o]=r();return{state:n,startOffset:i,endOffset:o}}function tD(t,e){switch(e.state){case null:{let n=(0,mw.getFirstNonWhitespaceIndex)(t);return{firstNonWhitespaceOffset:n===-1?null:n}}case"open":return{firstNonWhitespaceOffset:null};case"closed":{let{endOffset:n}=e,r=(n??0)+3,i=(0,mw.getFirstNonWhitespaceIndex)(t.slice(r));return{firstNonWhitespaceOffset:r+i}}}}});var xp=X(Sp=>{"use strict";Object.defineProperty(Sp,"__esModule",{value:!0});var yp;function _p(){if(yp===void 0)throw new Error("No runtime abstraction layer installed");return yp}(function(t){function e(n){if(n===void 0)throw new Error("No runtime abstraction layer provided");yp=n}t.install=e})(_p||(_p={}));Sp.default=_p});var Cp=X(lt=>{"use strict";Object.defineProperty(lt,"__esModule",{value:!0});lt.config=lt.loadMessageBundle=lt.localize=lt.format=lt.setPseudo=lt.isPseudo=lt.isDefined=lt.BundleFormat=lt.MessageFormat=void 0;var bw=xp(),nD;(function(t){t.file="file",t.bundle="bundle",t.both="both"})(nD=lt.MessageFormat||(lt.MessageFormat={}));var rD;(function(t){t.standalone="standalone",t.languagePack="languagePack"})(rD=lt.BundleFormat||(lt.BundleFormat={}));var gw;(function(t){function e(n){var r=n;return r&&kp(r.key)&&kp(r.comment)}t.is=e})(gw||(gw={}));function kp(t){return typeof t<"u"}lt.isDefined=kp;lt.isPseudo=!1;function iD(t){lt.isPseudo=t}lt.setPseudo=iD;function vw(t,e){var n;return lt.isPseudo&&(t="\uFF3B"+t.replace(/[aouei]/g,"$&$&")+"\uFF3D"),e.length===0?n=t:n=t.replace(/\{(\d+)\}/g,function(r,i){var o=i[0],s=e[o],l=r;return typeof s=="string"?l=s:(typeof s=="number"||typeof s=="boolean"||s===void 0||s===null)&&(l=String(s)),l}),n}lt.format=vw;function oD(t,e){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return vw(e,n)}lt.localize=oD;function sD(t){return(0,bw.default)().loadMessageBundle(t)}lt.loadMessageBundle=sD;function aD(t){return(0,bw.default)().config(t)}lt.config=aD});var $s=X(vn=>{"use strict";var lD=vn&&vn.__spreadArray||function(t,e,n){if(n||arguments.length===2)for(var r=0,i=e.length,o;r<i;r++)(o||!(r in e))&&(o||(o=Array.prototype.slice.call(e,0,r)),o[r]=e[r]);return t.concat(o||Array.prototype.slice.call(e))};Object.defineProperty(vn,"__esModule",{value:!0});vn.config=vn.loadMessageBundle=vn.BundleFormat=vn.MessageFormat=void 0;var cD=xp(),ww=Cp(),yw=Cp();Object.defineProperty(vn,"MessageFormat",{enumerable:!0,get:function(){return yw.MessageFormat}});Object.defineProperty(vn,"BundleFormat",{enumerable:!0,get:function(){return yw.BundleFormat}});function Tp(t){return function(e,n){for(var r=[],i=2;i<arguments.length;i++)r[i-2]=arguments[i];if(typeof e=="number")throw new Error("Browser implementation does currently not support externalized strings.");return ww.localize.apply(void 0,lD([e,n],r,!1))}}vn.loadMessageBundle=Tp;function _w(t){var e;return(0,ww.setPseudo)(((e=t?.locale)===null||e===void 0?void 0:e.toLowerCase())==="pseudo"),Tp}vn.config=_w;cD.default.install(Object.freeze({loadMessageBundle:Tp,config:_w}))});function Ep(t,e){if(t.length<=1)return t;let n=t.length/2|0,r=t.slice(0,n),i=t.slice(n);Ep(r,e),Ep(i,e);let o=0,s=0,l=0;for(;o<r.length&&s<i.length;)e(r[o],i[s])<=0?t[l++]=r[o++]:t[l++]=i[s++];for(;o<r.length;)t[l++]=r[o++];for(;s<i.length;)t[l++]=i[s++];return t}function Sw(t,e,n=0){let r=e?[n]:[];for(let i=0;i<t.length;i++){let o=t.charCodeAt(i);(o===13||o===10)&&(o===13&&i+1<t.length&&t.charCodeAt(i+1)===10&&i++,r.push(n+i+1))}return r}function xw(t){let e=t.start,n=t.end;return e.line>n.line||e.line===n.line&&e.character>n.character?{start:n,end:e}:t}function uD(t){let e=xw(t.range);return e!==t.range?{newText:t.newText,range:e}:t}var Ui,Ao,Dp=ue(()=>{"use strict";Ui=class{constructor(e,n,r,i){this._uri=e,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(e){if(e){let n=this.offsetAt(e.start),r=this.offsetAt(e.end);return this._content.substring(n,r)}return this._content}update(e,n){for(let r of e)if(Ui.isIncremental(r)){let i=xw(r.range),o=this.offsetAt(i.start),s=this.offsetAt(i.end);this._content=this._content.substring(0,o)+r.text+this._content.substring(s,this._content.length);let l=Math.max(i.start.line,0),a=Math.max(i.end.line,0),c=this._lineOffsets,u=Sw(r.text,!1,o);if(a-l===u.length)for(let h=0,p=u.length;h<p;h++)c[h+l+1]=u[h];else u.length<1e4?c.splice(l+1,a-l,...u):this._lineOffsets=c=c.slice(0,l+1).concat(u,c.slice(a+1));let d=r.text.length-(s-o);if(d!==0)for(let h=l+1+u.length,p=c.length;h<p;h++)c[h]=c[h]+d}else if(Ui.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=Sw(this._content,!0)),this._lineOffsets}positionAt(e){e=Math.max(Math.min(e,this._content.length),0);let n=this.getLineOffsets(),r=0,i=n.length;if(i===0)return{line:0,character:e};for(;r<i;){let s=Math.floor((r+i)/2);n[s]>e?i=s:r=s+1}let o=r-1;return{line:o,character:e-n[o]}}offsetAt(e){let n=this.getLineOffsets();if(e.line>=n.length)return this._content.length;if(e.line<0)return 0;let r=n[e.line],i=e.line+1<n.length?n[e.line+1]:this._content.length;return Math.max(Math.min(r+e.character,i),r)}get lineCount(){return this.getLineOffsets().length}static isIncremental(e){let n=e;return n!=null&&typeof n.text=="string"&&n.range!==void 0&&(n.rangeLength===void 0||typeof n.rangeLength=="number")}static isFull(e){let n=e;return n!=null&&typeof n.text=="string"&&n.range===void 0&&n.rangeLength===void 0}};(function(t){function e(i,o,s,l){return new Ui(i,o,s,l)}t.create=e;function n(i,o,s){if(i instanceof Ui)return i.update(o,s),i;throw new Error("TextDocument.update: document must be created by TextDocument.create")}t.update=n;function r(i,o){let s=i.getText(),l=Ep(o.map(uD),(u,d)=>{let h=u.range.start.line-d.range.start.line;return h===0?u.range.start.character-d.range.start.character:h}),a=0,c=[];for(let u of l){let d=i.offsetAt(u.range.start);if(d<a)throw new Error("Overlapping edit");d>a&&c.push(s.substring(a,d)),u.newText.length&&c.push(u.newText),a=i.offsetAt(u.range.end)}return c.push(s.substr(a)),c.join("")}t.applyEdits=r})(Ao||(Ao={}))});var $,ne,_e,Fp,Vs,rn=ue(()=>{$=ti(Xt());Dp();(function(t){t[t.StartCommentTag=0]="StartCommentTag",t[t.Comment=1]="Comment",t[t.EndCommentTag=2]="EndCommentTag",t[t.StartTagOpen=3]="StartTagOpen",t[t.StartTagClose=4]="StartTagClose",t[t.StartTagSelfClose=5]="StartTagSelfClose",t[t.StartTag=6]="StartTag",t[t.EndTagOpen=7]="EndTagOpen",t[t.EndTagClose=8]="EndTagClose",t[t.EndTag=9]="EndTag",t[t.DelimiterAssign=10]="DelimiterAssign",t[t.AttributeName=11]="AttributeName",t[t.AttributeValue=12]="AttributeValue",t[t.StartDoctypeTag=13]="StartDoctypeTag",t[t.Doctype=14]="Doctype",t[t.EndDoctypeTag=15]="EndDoctypeTag",t[t.Content=16]="Content",t[t.Whitespace=17]="Whitespace",t[t.Unknown=18]="Unknown",t[t.Script=19]="Script",t[t.Styles=20]="Styles",t[t.EOS=21]="EOS"})(ne||(ne={}));(function(t){t[t.WithinContent=0]="WithinContent",t[t.AfterOpeningStartTag=1]="AfterOpeningStartTag",t[t.AfterOpeningEndTag=2]="AfterOpeningEndTag",t[t.WithinDoctype=3]="WithinDoctype",t[t.WithinTag=4]="WithinTag",t[t.WithinEndTag=5]="WithinEndTag",t[t.WithinComment=6]="WithinComment",t[t.WithinScriptContent=7]="WithinScriptContent",t[t.WithinStyleContent=8]="WithinStyleContent",t[t.AfterAttributeName=9]="AfterAttributeName",t[t.BeforeAttributeValue=10]="BeforeAttributeValue"})(_e||(_e={}));(function(t){t.LATEST={textDocument:{completion:{completionItem:{documentationFormat:[$.MarkupKind.Markdown,$.MarkupKind.PlainText]}},hover:{contentFormat:[$.MarkupKind.Markdown,$.MarkupKind.PlainText]}}}})(Fp||(Fp={}));(function(t){t[t.Unknown=0]="Unknown",t[t.File=1]="File",t[t.Directory=2]="Directory",t[t.SymbolicLink=64]="SymbolicLink"})(Vs||(Vs={}))});function gt(t,e,n,r){e===void 0&&(e=0),n===void 0&&(n=_e.WithinContent),r===void 0&&(r=!1);var i=new dD(t,e),o=n,s=0,l=ne.Unknown,a,c,u,d,h;function p(){return i.advanceIfRegExp(/^[_:\w][_:\w-.\d]*/).toLowerCase()}function w(){return i.advanceIfRegExp(/^[^\s"'></=\x00-\x0F\x7F\x80-\x9F]*/).toLowerCase()}function v(f,g,D){return l=g,s=f,a=D,g}function x(){var f=i.pos(),g=o,D=_();return D!==ne.EOS&&f===i.pos()&&!(r&&(D===ne.StartTagClose||D===ne.EndTagClose))?(console.log("Scanner.scan has not advanced at offset "+f+", state before: "+g+" after: "+o),i.advance(1),v(f,ne.Unknown)):D}function _(){var f=i.pos();if(i.eos())return v(f,ne.EOS);var g;switch(o){case _e.WithinComment:return i.advanceIfChars([Ro,Ro,lr])?(o=_e.WithinContent,v(f,ne.EndCommentTag)):(i.advanceUntilChars([Ro,Ro,lr]),v(f,ne.Comment));case _e.WithinDoctype:return i.advanceIfChar(lr)?(o=_e.WithinContent,v(f,ne.EndDoctypeTag)):(i.advanceUntilChar(lr),v(f,ne.Doctype));case _e.WithinContent:if(i.advanceIfChar(jl)){if(!i.eos()&&i.peekChar()===kw){if(i.advanceIfChars([kw,Ro,Ro]))return o=_e.WithinComment,v(f,ne.StartCommentTag);if(i.advanceIfRegExp(/^!doctype/i))return o=_e.WithinDoctype,v(f,ne.StartDoctypeTag)}return i.advanceIfChar(Ap)?(o=_e.AfterOpeningEndTag,v(f,ne.EndTagOpen)):(o=_e.AfterOpeningStartTag,v(f,ne.StartTagOpen))}return i.advanceUntilChar(jl),v(f,ne.Content);case _e.AfterOpeningEndTag:var D=p();return D.length>0?(o=_e.WithinEndTag,v(f,ne.EndTag)):i.skipWhitespace()?v(f,ne.Whitespace,di("error.unexpectedWhitespace","Tag name must directly follow the open bracket.")):(o=_e.WithinEndTag,i.advanceUntilChar(lr),f<i.pos()?v(f,ne.Unknown,di("error.endTagNameExpected","End tag name expected.")):_());case _e.WithinEndTag:if(i.skipWhitespace())return v(f,ne.Whitespace);if(i.advanceIfChar(lr))return o=_e.WithinContent,v(f,ne.EndTagClose);if(r&&i.peekChar()===jl)return o=_e.WithinContent,v(f,ne.EndTagClose,di("error.closingBracketMissing","Closing bracket missing."));g=di("error.closingBracketExpected","Closing bracket expected.");break;case _e.AfterOpeningStartTag:return u=p(),h=void 0,d=void 0,u.length>0?(c=!1,o=_e.WithinTag,v(f,ne.StartTag)):i.skipWhitespace()?v(f,ne.Whitespace,di("error.unexpectedWhitespace","Tag name must directly follow the open bracket.")):(o=_e.WithinTag,i.advanceUntilChar(lr),f<i.pos()?v(f,ne.Unknown,di("error.startTagNameExpected","Start tag name expected.")):_());case _e.WithinTag:return i.skipWhitespace()?(c=!0,v(f,ne.Whitespace)):c&&(d=w(),d.length>0)?(o=_e.AfterAttributeName,c=!1,v(f,ne.AttributeName)):i.advanceIfChars([Ap,lr])?(o=_e.WithinContent,v(f,ne.StartTagSelfClose)):i.advanceIfChar(lr)?(u==="script"?h&&yD[h]?o=_e.WithinContent:o=_e.WithinScriptContent:u==="style"?o=_e.WithinStyleContent:o=_e.WithinContent,v(f,ne.StartTagClose)):r&&i.peekChar()===jl?(o=_e.WithinContent,v(f,ne.StartTagClose,di("error.closingBracketMissing","Closing bracket missing."))):(i.advance(1),v(f,ne.Unknown,di("error.unexpectedCharacterInTag","Unexpected character in tag.")));case _e.AfterAttributeName:return i.skipWhitespace()?(c=!0,v(f,ne.Whitespace)):i.advanceIfChar(hD)?(o=_e.BeforeAttributeValue,v(f,ne.DelimiterAssign)):(o=_e.WithinTag,_());case _e.BeforeAttributeValue:if(i.skipWhitespace())return v(f,ne.Whitespace);var L=i.advanceIfRegExp(/^[^\s"'`=<>]+/);if(L.length>0)return i.peekChar()===lr&&i.peekChar(-1)===Ap&&(i.goBack(1),L=L.substr(0,L.length-1)),d==="type"&&(h=L),o=_e.WithinTag,c=!1,v(f,ne.AttributeValue);var K=i.peekChar();return K===mD||K===pD?(i.advance(1),i.advanceUntilChar(K)&&i.advance(1),d==="type"&&(h=i.getSource().substring(f+1,i.pos()-1)),o=_e.WithinTag,c=!1,v(f,ne.AttributeValue)):(o=_e.WithinTag,c=!1,_());case _e.WithinScriptContent:for(var C=1;!i.eos();){var T=i.advanceIfRegExp(/<!--|-->|<\/?script\s*\/?>?/i);if(T.length===0)return i.goToEnd(),v(f,ne.Script);if(T==="<!--")C===1&&(C=2);else if(T==="-->")C=1;else if(T[1]!=="/")C===2&&(C=3);else if(C===3)C=2;else{i.goBack(T.length);break}}return o=_e.WithinContent,f<i.pos()?v(f,ne.Script):_();case _e.WithinStyleContent:return i.advanceUntilRegExp(/<\/style/i),o=_e.WithinContent,f<i.pos()?v(f,ne.Styles):_()}return i.advance(1),o=_e.WithinContent,v(f,ne.Unknown,g)}return{scan:x,getTokenType:function(){return l},getTokenOffset:function(){return s},getTokenLength:function(){return i.pos()-s},getTokenEnd:function(){return i.pos()},getTokenText:function(){return i.getSource().substring(s,i.pos())},getScannerState:function(){return o},getTokenError:function(){return a}}}var Cw,di,dD,kw,Ro,jl,lr,Ap,hD,pD,mD,fD,gD,bD,vD,wD,yD,Pr=ue(()=>{Cw=ti($s());rn();di=Cw.loadMessageBundle(),dD=function(){function t(e,n){this.source=e,this.len=e.length,this.position=n}return t.prototype.eos=function(){return this.len<=this.position},t.prototype.getSource=function(){return this.source},t.prototype.pos=function(){return this.position},t.prototype.goBackTo=function(e){this.position=e},t.prototype.goBack=function(e){this.position-=e},t.prototype.advance=function(e){this.position+=e},t.prototype.goToEnd=function(){this.position=this.source.length},t.prototype.nextChar=function(){return this.source.charCodeAt(this.position++)||0},t.prototype.peekChar=function(e){return e===void 0&&(e=0),this.source.charCodeAt(this.position+e)||0},t.prototype.advanceIfChar=function(e){return e===this.source.charCodeAt(this.position)?(this.position++,!0):!1},t.prototype.advanceIfChars=function(e){var n;if(this.position+e.length>this.source.length)return!1;for(n=0;n<e.length;n++)if(this.source.charCodeAt(this.position+n)!==e[n])return!1;return this.advance(n),!0},t.prototype.advanceIfRegExp=function(e){var n=this.source.substr(this.position),r=n.match(e);return r?(this.position=this.position+r.index+r[0].length,r[0]):""},t.prototype.advanceUntilRegExp=function(e){var n=this.source.substr(this.position),r=n.match(e);return r?(this.position=this.position+r.index,r[0]):(this.goToEnd(),"")},t.prototype.advanceUntilChar=function(e){for(;this.position<this.source.length;){if(this.source.charCodeAt(this.position)===e)return!0;this.advance(1)}return!1},t.prototype.advanceUntilChars=function(e){for(;this.position+e.length<=this.source.length;){for(var n=0;n<e.length&&this.source.charCodeAt(this.position+n)===e[n];n++);if(n===e.length)return!0;this.advance(1)}return this.goToEnd(),!1},t.prototype.skipWhitespace=function(){var e=this.advanceWhileChar(function(n){return n===vD||n===wD||n===fD||n===bD||n===gD});return e>0},t.prototype.advanceWhileChar=function(e){for(var n=this.position;this.position<this.len&&e(this.source.charCodeAt(this.position));)this.position++;return this.position-n},t}(),kw="!".charCodeAt(0),Ro="-".charCodeAt(0),jl="<".charCodeAt(0),lr=">".charCodeAt(0),Ap="/".charCodeAt(0),hD="=".charCodeAt(0),pD='"'.charCodeAt(0),mD="'".charCodeAt(0),fD=`
|
|
41
41
|
`.charCodeAt(0),gD="\r".charCodeAt(0),bD="\f".charCodeAt(0),vD=" ".charCodeAt(0),wD=" ".charCodeAt(0),yD={"text/x-handlebars-template":!0,"text/html":!0}});function Rp(t,e){var n=0,r=t.length;if(r===0)return 0;for(;n<r;){var i=Math.floor((n+r)/2);e(t[i])?r=i:n=i+1}return n}function Tw(t,e,n){for(var r=0,i=t.length-1;r<=i;){var o=(r+i)/2|0,s=n(t[o],e);if(s<0)r=o+1;else if(s>0)i=o-1;else return o}return-(r+1)}var Ip=ue(()=>{});var Ew,Dw,Fw=ue(()=>{Pr();Ip();rn();Ew=function(){function t(e,n,r,i){this.start=e,this.end=n,this.children=r,this.parent=i,this.closed=!1}return Object.defineProperty(t.prototype,"attributeNames",{get:function(){return this.attributes?Object.keys(this.attributes):[]},enumerable:!1,configurable:!0}),t.prototype.isSameTag=function(e){return this.tag===void 0?e===void 0:e!==void 0&&this.tag.length===e.length&&this.tag.toLowerCase()===e},Object.defineProperty(t.prototype,"firstChild",{get:function(){return this.children[0]},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lastChild",{get:function(){return this.children.length?this.children[this.children.length-1]:void 0},enumerable:!1,configurable:!0}),t.prototype.findNodeBefore=function(e){var n=Rp(this.children,function(o){return e<=o.start})-1;if(n>=0){var r=this.children[n];if(e>r.start){if(e<r.end)return r.findNodeBefore(e);var i=r.lastChild;return i&&i.end===r.end?r.findNodeBefore(e):r}}return this},t.prototype.findNodeAt=function(e){var n=Rp(this.children,function(i){return e<=i.start})-1;if(n>=0){var r=this.children[n];if(e>r.start&&e<=r.end)return r.findNodeAt(e)}return this},t}(),Dw=function(){function t(e){this.dataManager=e}return t.prototype.parseDocument=function(e){return this.parse(e.getText(),this.dataManager.getVoidElements(e.languageId))},t.prototype.parse=function(e,n){for(var r=gt(e,void 0,void 0,!0),i=new Ew(0,e.length,[],void 0),o=i,s=-1,l=void 0,a=null,c=r.scan();c!==ne.EOS;){switch(c){case ne.StartTagOpen:var u=new Ew(r.getTokenOffset(),e.length,[],o);o.children.push(u),o=u;break;case ne.StartTag:o.tag=r.getTokenText();break;case ne.StartTagClose:o.parent&&(o.end=r.getTokenEnd(),r.getTokenLength()?(o.startTagEnd=r.getTokenEnd(),o.tag&&this.dataManager.isVoidElement(o.tag,n)&&(o.closed=!0,o=o.parent)):o=o.parent);break;case ne.StartTagSelfClose:o.parent&&(o.closed=!0,o.end=r.getTokenEnd(),o.startTagEnd=r.getTokenEnd(),o=o.parent);break;case ne.EndTagOpen:s=r.getTokenOffset(),l=void 0;break;case ne.EndTag:l=r.getTokenText().toLowerCase();break;case ne.EndTagClose:for(var d=o;!d.isSameTag(l)&&d.parent;)d=d.parent;if(d.parent){for(;o!==d;)o.end=s,o.closed=!1,o=o.parent;o.closed=!0,o.endTagStart=s,o.end=r.getTokenEnd(),o=o.parent}break;case ne.AttributeName:{a=r.getTokenText();var h=o.attributes;h||(o.attributes=h={}),h[a]=null;break}case ne.AttributeValue:{var p=r.getTokenText(),h=o.attributes;h&&a&&(h[a]=p,a=null);break}}c=r.scan()}for(;o.parent;)o.end=e.length,o.closed=!1,o=o.parent;return{roots:i.children,findNodeBefore:i.findNodeBefore.bind(i),findNodeAt:i.findNodeAt.bind(i)}},t}()});var ji,Mp=ue(()=>{ji={"Aacute;":"\xC1",Aacute:"\xC1","aacute;":"\xE1",aacute:"\xE1","Abreve;":"\u0102","abreve;":"\u0103","ac;":"\u223E","acd;":"\u223F","acE;":"\u223E\u0333","Acirc;":"\xC2",Acirc:"\xC2","acirc;":"\xE2",acirc:"\xE2","acute;":"\xB4",acute:"\xB4","Acy;":"\u0410","acy;":"\u0430","AElig;":"\xC6",AElig:"\xC6","aelig;":"\xE6",aelig:"\xE6","af;":"\u2061","Afr;":"\u{1D504}","afr;":"\u{1D51E}","Agrave;":"\xC0",Agrave:"\xC0","agrave;":"\xE0",agrave:"\xE0","alefsym;":"\u2135","aleph;":"\u2135","Alpha;":"\u0391","alpha;":"\u03B1","Amacr;":"\u0100","amacr;":"\u0101","amalg;":"\u2A3F","AMP;":"&",AMP:"&","amp;":"&",amp:"&","And;":"\u2A53","and;":"\u2227","andand;":"\u2A55","andd;":"\u2A5C","andslope;":"\u2A58","andv;":"\u2A5A","ang;":"\u2220","ange;":"\u29A4","angle;":"\u2220","angmsd;":"\u2221","angmsdaa;":"\u29A8","angmsdab;":"\u29A9","angmsdac;":"\u29AA","angmsdad;":"\u29AB","angmsdae;":"\u29AC","angmsdaf;":"\u29AD","angmsdag;":"\u29AE","angmsdah;":"\u29AF","angrt;":"\u221F","angrtvb;":"\u22BE","angrtvbd;":"\u299D","angsph;":"\u2222","angst;":"\xC5","angzarr;":"\u237C","Aogon;":"\u0104","aogon;":"\u0105","Aopf;":"\u{1D538}","aopf;":"\u{1D552}","ap;":"\u2248","apacir;":"\u2A6F","apE;":"\u2A70","ape;":"\u224A","apid;":"\u224B","apos;":"'","ApplyFunction;":"\u2061","approx;":"\u2248","approxeq;":"\u224A","Aring;":"\xC5",Aring:"\xC5","aring;":"\xE5",aring:"\xE5","Ascr;":"\u{1D49C}","ascr;":"\u{1D4B6}","Assign;":"\u2254","ast;":"*","asymp;":"\u2248","asympeq;":"\u224D","Atilde;":"\xC3",Atilde:"\xC3","atilde;":"\xE3",atilde:"\xE3","Auml;":"\xC4",Auml:"\xC4","auml;":"\xE4",auml:"\xE4","awconint;":"\u2233","awint;":"\u2A11","backcong;":"\u224C","backepsilon;":"\u03F6","backprime;":"\u2035","backsim;":"\u223D","backsimeq;":"\u22CD","Backslash;":"\u2216","Barv;":"\u2AE7","barvee;":"\u22BD","Barwed;":"\u2306","barwed;":"\u2305","barwedge;":"\u2305","bbrk;":"\u23B5","bbrktbrk;":"\u23B6","bcong;":"\u224C","Bcy;":"\u0411","bcy;":"\u0431","bdquo;":"\u201E","becaus;":"\u2235","Because;":"\u2235","because;":"\u2235","bemptyv;":"\u29B0","bepsi;":"\u03F6","bernou;":"\u212C","Bernoullis;":"\u212C","Beta;":"\u0392","beta;":"\u03B2","beth;":"\u2136","between;":"\u226C","Bfr;":"\u{1D505}","bfr;":"\u{1D51F}","bigcap;":"\u22C2","bigcirc;":"\u25EF","bigcup;":"\u22C3","bigodot;":"\u2A00","bigoplus;":"\u2A01","bigotimes;":"\u2A02","bigsqcup;":"\u2A06","bigstar;":"\u2605","bigtriangledown;":"\u25BD","bigtriangleup;":"\u25B3","biguplus;":"\u2A04","bigvee;":"\u22C1","bigwedge;":"\u22C0","bkarow;":"\u290D","blacklozenge;":"\u29EB","blacksquare;":"\u25AA","blacktriangle;":"\u25B4","blacktriangledown;":"\u25BE","blacktriangleleft;":"\u25C2","blacktriangleright;":"\u25B8","blank;":"\u2423","blk12;":"\u2592","blk14;":"\u2591","blk34;":"\u2593","block;":"\u2588","bne;":"=\u20E5","bnequiv;":"\u2261\u20E5","bNot;":"\u2AED","bnot;":"\u2310","Bopf;":"\u{1D539}","bopf;":"\u{1D553}","bot;":"\u22A5","bottom;":"\u22A5","bowtie;":"\u22C8","boxbox;":"\u29C9","boxDL;":"\u2557","boxDl;":"\u2556","boxdL;":"\u2555","boxdl;":"\u2510","boxDR;":"\u2554","boxDr;":"\u2553","boxdR;":"\u2552","boxdr;":"\u250C","boxH;":"\u2550","boxh;":"\u2500","boxHD;":"\u2566","boxHd;":"\u2564","boxhD;":"\u2565","boxhd;":"\u252C","boxHU;":"\u2569","boxHu;":"\u2567","boxhU;":"\u2568","boxhu;":"\u2534","boxminus;":"\u229F","boxplus;":"\u229E","boxtimes;":"\u22A0","boxUL;":"\u255D","boxUl;":"\u255C","boxuL;":"\u255B","boxul;":"\u2518","boxUR;":"\u255A","boxUr;":"\u2559","boxuR;":"\u2558","boxur;":"\u2514","boxV;":"\u2551","boxv;":"\u2502","boxVH;":"\u256C","boxVh;":"\u256B","boxvH;":"\u256A","boxvh;":"\u253C","boxVL;":"\u2563","boxVl;":"\u2562","boxvL;":"\u2561","boxvl;":"\u2524","boxVR;":"\u2560","boxVr;":"\u255F","boxvR;":"\u255E","boxvr;":"\u251C","bprime;":"\u2035","Breve;":"\u02D8","breve;":"\u02D8","brvbar;":"\xA6",brvbar:"\xA6","Bscr;":"\u212C","bscr;":"\u{1D4B7}","bsemi;":"\u204F","bsim;":"\u223D","bsime;":"\u22CD","bsol;":"\\","bsolb;":"\u29C5","bsolhsub;":"\u27C8","bull;":"\u2022","bullet;":"\u2022","bump;":"\u224E","bumpE;":"\u2AAE","bumpe;":"\u224F","Bumpeq;":"\u224E","bumpeq;":"\u224F","Cacute;":"\u0106","cacute;":"\u0107","Cap;":"\u22D2","cap;":"\u2229","capand;":"\u2A44","capbrcup;":"\u2A49","capcap;":"\u2A4B","capcup;":"\u2A47","capdot;":"\u2A40","CapitalDifferentialD;":"\u2145","caps;":"\u2229\uFE00","caret;":"\u2041","caron;":"\u02C7","Cayleys;":"\u212D","ccaps;":"\u2A4D","Ccaron;":"\u010C","ccaron;":"\u010D","Ccedil;":"\xC7",Ccedil:"\xC7","ccedil;":"\xE7",ccedil:"\xE7","Ccirc;":"\u0108","ccirc;":"\u0109","Cconint;":"\u2230","ccups;":"\u2A4C","ccupssm;":"\u2A50","Cdot;":"\u010A","cdot;":"\u010B","cedil;":"\xB8",cedil:"\xB8","Cedilla;":"\xB8","cemptyv;":"\u29B2","cent;":"\xA2",cent:"\xA2","CenterDot;":"\xB7","centerdot;":"\xB7","Cfr;":"\u212D","cfr;":"\u{1D520}","CHcy;":"\u0427","chcy;":"\u0447","check;":"\u2713","checkmark;":"\u2713","Chi;":"\u03A7","chi;":"\u03C7","cir;":"\u25CB","circ;":"\u02C6","circeq;":"\u2257","circlearrowleft;":"\u21BA","circlearrowright;":"\u21BB","circledast;":"\u229B","circledcirc;":"\u229A","circleddash;":"\u229D","CircleDot;":"\u2299","circledR;":"\xAE","circledS;":"\u24C8","CircleMinus;":"\u2296","CirclePlus;":"\u2295","CircleTimes;":"\u2297","cirE;":"\u29C3","cire;":"\u2257","cirfnint;":"\u2A10","cirmid;":"\u2AEF","cirscir;":"\u29C2","ClockwiseContourIntegral;":"\u2232","CloseCurlyDoubleQuote;":"\u201D","CloseCurlyQuote;":"\u2019","clubs;":"\u2663","clubsuit;":"\u2663","Colon;":"\u2237","colon;":":","Colone;":"\u2A74","colone;":"\u2254","coloneq;":"\u2254","comma;":",","commat;":"@","comp;":"\u2201","compfn;":"\u2218","complement;":"\u2201","complexes;":"\u2102","cong;":"\u2245","congdot;":"\u2A6D","Congruent;":"\u2261","Conint;":"\u222F","conint;":"\u222E","ContourIntegral;":"\u222E","Copf;":"\u2102","copf;":"\u{1D554}","coprod;":"\u2210","Coproduct;":"\u2210","COPY;":"\xA9",COPY:"\xA9","copy;":"\xA9",copy:"\xA9","copysr;":"\u2117","CounterClockwiseContourIntegral;":"\u2233","crarr;":"\u21B5","Cross;":"\u2A2F","cross;":"\u2717","Cscr;":"\u{1D49E}","cscr;":"\u{1D4B8}","csub;":"\u2ACF","csube;":"\u2AD1","csup;":"\u2AD0","csupe;":"\u2AD2","ctdot;":"\u22EF","cudarrl;":"\u2938","cudarrr;":"\u2935","cuepr;":"\u22DE","cuesc;":"\u22DF","cularr;":"\u21B6","cularrp;":"\u293D","Cup;":"\u22D3","cup;":"\u222A","cupbrcap;":"\u2A48","CupCap;":"\u224D","cupcap;":"\u2A46","cupcup;":"\u2A4A","cupdot;":"\u228D","cupor;":"\u2A45","cups;":"\u222A\uFE00","curarr;":"\u21B7","curarrm;":"\u293C","curlyeqprec;":"\u22DE","curlyeqsucc;":"\u22DF","curlyvee;":"\u22CE","curlywedge;":"\u22CF","curren;":"\xA4",curren:"\xA4","curvearrowleft;":"\u21B6","curvearrowright;":"\u21B7","cuvee;":"\u22CE","cuwed;":"\u22CF","cwconint;":"\u2232","cwint;":"\u2231","cylcty;":"\u232D","Dagger;":"\u2021","dagger;":"\u2020","daleth;":"\u2138","Darr;":"\u21A1","dArr;":"\u21D3","darr;":"\u2193","dash;":"\u2010","Dashv;":"\u2AE4","dashv;":"\u22A3","dbkarow;":"\u290F","dblac;":"\u02DD","Dcaron;":"\u010E","dcaron;":"\u010F","Dcy;":"\u0414","dcy;":"\u0434","DD;":"\u2145","dd;":"\u2146","ddagger;":"\u2021","ddarr;":"\u21CA","DDotrahd;":"\u2911","ddotseq;":"\u2A77","deg;":"\xB0",deg:"\xB0","Del;":"\u2207","Delta;":"\u0394","delta;":"\u03B4","demptyv;":"\u29B1","dfisht;":"\u297F","Dfr;":"\u{1D507}","dfr;":"\u{1D521}","dHar;":"\u2965","dharl;":"\u21C3","dharr;":"\u21C2","DiacriticalAcute;":"\xB4","DiacriticalDot;":"\u02D9","DiacriticalDoubleAcute;":"\u02DD","DiacriticalGrave;":"`","DiacriticalTilde;":"\u02DC","diam;":"\u22C4","Diamond;":"\u22C4","diamond;":"\u22C4","diamondsuit;":"\u2666","diams;":"\u2666","die;":"\xA8","DifferentialD;":"\u2146","digamma;":"\u03DD","disin;":"\u22F2","div;":"\xF7","divide;":"\xF7",divide:"\xF7","divideontimes;":"\u22C7","divonx;":"\u22C7","DJcy;":"\u0402","djcy;":"\u0452","dlcorn;":"\u231E","dlcrop;":"\u230D","dollar;":"$","Dopf;":"\u{1D53B}","dopf;":"\u{1D555}","Dot;":"\xA8","dot;":"\u02D9","DotDot;":"\u20DC","doteq;":"\u2250","doteqdot;":"\u2251","DotEqual;":"\u2250","dotminus;":"\u2238","dotplus;":"\u2214","dotsquare;":"\u22A1","doublebarwedge;":"\u2306","DoubleContourIntegral;":"\u222F","DoubleDot;":"\xA8","DoubleDownArrow;":"\u21D3","DoubleLeftArrow;":"\u21D0","DoubleLeftRightArrow;":"\u21D4","DoubleLeftTee;":"\u2AE4","DoubleLongLeftArrow;":"\u27F8","DoubleLongLeftRightArrow;":"\u27FA","DoubleLongRightArrow;":"\u27F9","DoubleRightArrow;":"\u21D2","DoubleRightTee;":"\u22A8","DoubleUpArrow;":"\u21D1","DoubleUpDownArrow;":"\u21D5","DoubleVerticalBar;":"\u2225","DownArrow;":"\u2193","Downarrow;":"\u21D3","downarrow;":"\u2193","DownArrowBar;":"\u2913","DownArrowUpArrow;":"\u21F5","DownBreve;":"\u0311","downdownarrows;":"\u21CA","downharpoonleft;":"\u21C3","downharpoonright;":"\u21C2","DownLeftRightVector;":"\u2950","DownLeftTeeVector;":"\u295E","DownLeftVector;":"\u21BD","DownLeftVectorBar;":"\u2956","DownRightTeeVector;":"\u295F","DownRightVector;":"\u21C1","DownRightVectorBar;":"\u2957","DownTee;":"\u22A4","DownTeeArrow;":"\u21A7","drbkarow;":"\u2910","drcorn;":"\u231F","drcrop;":"\u230C","Dscr;":"\u{1D49F}","dscr;":"\u{1D4B9}","DScy;":"\u0405","dscy;":"\u0455","dsol;":"\u29F6","Dstrok;":"\u0110","dstrok;":"\u0111","dtdot;":"\u22F1","dtri;":"\u25BF","dtrif;":"\u25BE","duarr;":"\u21F5","duhar;":"\u296F","dwangle;":"\u29A6","DZcy;":"\u040F","dzcy;":"\u045F","dzigrarr;":"\u27FF","Eacute;":"\xC9",Eacute:"\xC9","eacute;":"\xE9",eacute:"\xE9","easter;":"\u2A6E","Ecaron;":"\u011A","ecaron;":"\u011B","ecir;":"\u2256","Ecirc;":"\xCA",Ecirc:"\xCA","ecirc;":"\xEA",ecirc:"\xEA","ecolon;":"\u2255","Ecy;":"\u042D","ecy;":"\u044D","eDDot;":"\u2A77","Edot;":"\u0116","eDot;":"\u2251","edot;":"\u0117","ee;":"\u2147","efDot;":"\u2252","Efr;":"\u{1D508}","efr;":"\u{1D522}","eg;":"\u2A9A","Egrave;":"\xC8",Egrave:"\xC8","egrave;":"\xE8",egrave:"\xE8","egs;":"\u2A96","egsdot;":"\u2A98","el;":"\u2A99","Element;":"\u2208","elinters;":"\u23E7","ell;":"\u2113","els;":"\u2A95","elsdot;":"\u2A97","Emacr;":"\u0112","emacr;":"\u0113","empty;":"\u2205","emptyset;":"\u2205","EmptySmallSquare;":"\u25FB","emptyv;":"\u2205","EmptyVerySmallSquare;":"\u25AB","emsp;":"\u2003","emsp13;":"\u2004","emsp14;":"\u2005","ENG;":"\u014A","eng;":"\u014B","ensp;":"\u2002","Eogon;":"\u0118","eogon;":"\u0119","Eopf;":"\u{1D53C}","eopf;":"\u{1D556}","epar;":"\u22D5","eparsl;":"\u29E3","eplus;":"\u2A71","epsi;":"\u03B5","Epsilon;":"\u0395","epsilon;":"\u03B5","epsiv;":"\u03F5","eqcirc;":"\u2256","eqcolon;":"\u2255","eqsim;":"\u2242","eqslantgtr;":"\u2A96","eqslantless;":"\u2A95","Equal;":"\u2A75","equals;":"=","EqualTilde;":"\u2242","equest;":"\u225F","Equilibrium;":"\u21CC","equiv;":"\u2261","equivDD;":"\u2A78","eqvparsl;":"\u29E5","erarr;":"\u2971","erDot;":"\u2253","Escr;":"\u2130","escr;":"\u212F","esdot;":"\u2250","Esim;":"\u2A73","esim;":"\u2242","Eta;":"\u0397","eta;":"\u03B7","ETH;":"\xD0",ETH:"\xD0","eth;":"\xF0",eth:"\xF0","Euml;":"\xCB",Euml:"\xCB","euml;":"\xEB",euml:"\xEB","euro;":"\u20AC","excl;":"!","exist;":"\u2203","Exists;":"\u2203","expectation;":"\u2130","ExponentialE;":"\u2147","exponentiale;":"\u2147","fallingdotseq;":"\u2252","Fcy;":"\u0424","fcy;":"\u0444","female;":"\u2640","ffilig;":"\uFB03","fflig;":"\uFB00","ffllig;":"\uFB04","Ffr;":"\u{1D509}","ffr;":"\u{1D523}","filig;":"\uFB01","FilledSmallSquare;":"\u25FC","FilledVerySmallSquare;":"\u25AA","fjlig;":"fj","flat;":"\u266D","fllig;":"\uFB02","fltns;":"\u25B1","fnof;":"\u0192","Fopf;":"\u{1D53D}","fopf;":"\u{1D557}","ForAll;":"\u2200","forall;":"\u2200","fork;":"\u22D4","forkv;":"\u2AD9","Fouriertrf;":"\u2131","fpartint;":"\u2A0D","frac12;":"\xBD",frac12:"\xBD","frac13;":"\u2153","frac14;":"\xBC",frac14:"\xBC","frac15;":"\u2155","frac16;":"\u2159","frac18;":"\u215B","frac23;":"\u2154","frac25;":"\u2156","frac34;":"\xBE",frac34:"\xBE","frac35;":"\u2157","frac38;":"\u215C","frac45;":"\u2158","frac56;":"\u215A","frac58;":"\u215D","frac78;":"\u215E","frasl;":"\u2044","frown;":"\u2322","Fscr;":"\u2131","fscr;":"\u{1D4BB}","gacute;":"\u01F5","Gamma;":"\u0393","gamma;":"\u03B3","Gammad;":"\u03DC","gammad;":"\u03DD","gap;":"\u2A86","Gbreve;":"\u011E","gbreve;":"\u011F","Gcedil;":"\u0122","Gcirc;":"\u011C","gcirc;":"\u011D","Gcy;":"\u0413","gcy;":"\u0433","Gdot;":"\u0120","gdot;":"\u0121","gE;":"\u2267","ge;":"\u2265","gEl;":"\u2A8C","gel;":"\u22DB","geq;":"\u2265","geqq;":"\u2267","geqslant;":"\u2A7E","ges;":"\u2A7E","gescc;":"\u2AA9","gesdot;":"\u2A80","gesdoto;":"\u2A82","gesdotol;":"\u2A84","gesl;":"\u22DB\uFE00","gesles;":"\u2A94","Gfr;":"\u{1D50A}","gfr;":"\u{1D524}","Gg;":"\u22D9","gg;":"\u226B","ggg;":"\u22D9","gimel;":"\u2137","GJcy;":"\u0403","gjcy;":"\u0453","gl;":"\u2277","gla;":"\u2AA5","glE;":"\u2A92","glj;":"\u2AA4","gnap;":"\u2A8A","gnapprox;":"\u2A8A","gnE;":"\u2269","gne;":"\u2A88","gneq;":"\u2A88","gneqq;":"\u2269","gnsim;":"\u22E7","Gopf;":"\u{1D53E}","gopf;":"\u{1D558}","grave;":"`","GreaterEqual;":"\u2265","GreaterEqualLess;":"\u22DB","GreaterFullEqual;":"\u2267","GreaterGreater;":"\u2AA2","GreaterLess;":"\u2277","GreaterSlantEqual;":"\u2A7E","GreaterTilde;":"\u2273","Gscr;":"\u{1D4A2}","gscr;":"\u210A","gsim;":"\u2273","gsime;":"\u2A8E","gsiml;":"\u2A90","GT;":">",GT:">","Gt;":"\u226B","gt;":">",gt:">","gtcc;":"\u2AA7","gtcir;":"\u2A7A","gtdot;":"\u22D7","gtlPar;":"\u2995","gtquest;":"\u2A7C","gtrapprox;":"\u2A86","gtrarr;":"\u2978","gtrdot;":"\u22D7","gtreqless;":"\u22DB","gtreqqless;":"\u2A8C","gtrless;":"\u2277","gtrsim;":"\u2273","gvertneqq;":"\u2269\uFE00","gvnE;":"\u2269\uFE00","Hacek;":"\u02C7","hairsp;":"\u200A","half;":"\xBD","hamilt;":"\u210B","HARDcy;":"\u042A","hardcy;":"\u044A","hArr;":"\u21D4","harr;":"\u2194","harrcir;":"\u2948","harrw;":"\u21AD","Hat;":"^","hbar;":"\u210F","Hcirc;":"\u0124","hcirc;":"\u0125","hearts;":"\u2665","heartsuit;":"\u2665","hellip;":"\u2026","hercon;":"\u22B9","Hfr;":"\u210C","hfr;":"\u{1D525}","HilbertSpace;":"\u210B","hksearow;":"\u2925","hkswarow;":"\u2926","hoarr;":"\u21FF","homtht;":"\u223B","hookleftarrow;":"\u21A9","hookrightarrow;":"\u21AA","Hopf;":"\u210D","hopf;":"\u{1D559}","horbar;":"\u2015","HorizontalLine;":"\u2500","Hscr;":"\u210B","hscr;":"\u{1D4BD}","hslash;":"\u210F","Hstrok;":"\u0126","hstrok;":"\u0127","HumpDownHump;":"\u224E","HumpEqual;":"\u224F","hybull;":"\u2043","hyphen;":"\u2010","Iacute;":"\xCD",Iacute:"\xCD","iacute;":"\xED",iacute:"\xED","ic;":"\u2063","Icirc;":"\xCE",Icirc:"\xCE","icirc;":"\xEE",icirc:"\xEE","Icy;":"\u0418","icy;":"\u0438","Idot;":"\u0130","IEcy;":"\u0415","iecy;":"\u0435","iexcl;":"\xA1",iexcl:"\xA1","iff;":"\u21D4","Ifr;":"\u2111","ifr;":"\u{1D526}","Igrave;":"\xCC",Igrave:"\xCC","igrave;":"\xEC",igrave:"\xEC","ii;":"\u2148","iiiint;":"\u2A0C","iiint;":"\u222D","iinfin;":"\u29DC","iiota;":"\u2129","IJlig;":"\u0132","ijlig;":"\u0133","Im;":"\u2111","Imacr;":"\u012A","imacr;":"\u012B","image;":"\u2111","ImaginaryI;":"\u2148","imagline;":"\u2110","imagpart;":"\u2111","imath;":"\u0131","imof;":"\u22B7","imped;":"\u01B5","Implies;":"\u21D2","in;":"\u2208","incare;":"\u2105","infin;":"\u221E","infintie;":"\u29DD","inodot;":"\u0131","Int;":"\u222C","int;":"\u222B","intcal;":"\u22BA","integers;":"\u2124","Integral;":"\u222B","intercal;":"\u22BA","Intersection;":"\u22C2","intlarhk;":"\u2A17","intprod;":"\u2A3C","InvisibleComma;":"\u2063","InvisibleTimes;":"\u2062","IOcy;":"\u0401","iocy;":"\u0451","Iogon;":"\u012E","iogon;":"\u012F","Iopf;":"\u{1D540}","iopf;":"\u{1D55A}","Iota;":"\u0399","iota;":"\u03B9","iprod;":"\u2A3C","iquest;":"\xBF",iquest:"\xBF","Iscr;":"\u2110","iscr;":"\u{1D4BE}","isin;":"\u2208","isindot;":"\u22F5","isinE;":"\u22F9","isins;":"\u22F4","isinsv;":"\u22F3","isinv;":"\u2208","it;":"\u2062","Itilde;":"\u0128","itilde;":"\u0129","Iukcy;":"\u0406","iukcy;":"\u0456","Iuml;":"\xCF",Iuml:"\xCF","iuml;":"\xEF",iuml:"\xEF","Jcirc;":"\u0134","jcirc;":"\u0135","Jcy;":"\u0419","jcy;":"\u0439","Jfr;":"\u{1D50D}","jfr;":"\u{1D527}","jmath;":"\u0237","Jopf;":"\u{1D541}","jopf;":"\u{1D55B}","Jscr;":"\u{1D4A5}","jscr;":"\u{1D4BF}","Jsercy;":"\u0408","jsercy;":"\u0458","Jukcy;":"\u0404","jukcy;":"\u0454","Kappa;":"\u039A","kappa;":"\u03BA","kappav;":"\u03F0","Kcedil;":"\u0136","kcedil;":"\u0137","Kcy;":"\u041A","kcy;":"\u043A","Kfr;":"\u{1D50E}","kfr;":"\u{1D528}","kgreen;":"\u0138","KHcy;":"\u0425","khcy;":"\u0445","KJcy;":"\u040C","kjcy;":"\u045C","Kopf;":"\u{1D542}","kopf;":"\u{1D55C}","Kscr;":"\u{1D4A6}","kscr;":"\u{1D4C0}","lAarr;":"\u21DA","Lacute;":"\u0139","lacute;":"\u013A","laemptyv;":"\u29B4","lagran;":"\u2112","Lambda;":"\u039B","lambda;":"\u03BB","Lang;":"\u27EA","lang;":"\u27E8","langd;":"\u2991","langle;":"\u27E8","lap;":"\u2A85","Laplacetrf;":"\u2112","laquo;":"\xAB",laquo:"\xAB","Larr;":"\u219E","lArr;":"\u21D0","larr;":"\u2190","larrb;":"\u21E4","larrbfs;":"\u291F","larrfs;":"\u291D","larrhk;":"\u21A9","larrlp;":"\u21AB","larrpl;":"\u2939","larrsim;":"\u2973","larrtl;":"\u21A2","lat;":"\u2AAB","lAtail;":"\u291B","latail;":"\u2919","late;":"\u2AAD","lates;":"\u2AAD\uFE00","lBarr;":"\u290E","lbarr;":"\u290C","lbbrk;":"\u2772","lbrace;":"{","lbrack;":"[","lbrke;":"\u298B","lbrksld;":"\u298F","lbrkslu;":"\u298D","Lcaron;":"\u013D","lcaron;":"\u013E","Lcedil;":"\u013B","lcedil;":"\u013C","lceil;":"\u2308","lcub;":"{","Lcy;":"\u041B","lcy;":"\u043B","ldca;":"\u2936","ldquo;":"\u201C","ldquor;":"\u201E","ldrdhar;":"\u2967","ldrushar;":"\u294B","ldsh;":"\u21B2","lE;":"\u2266","le;":"\u2264","LeftAngleBracket;":"\u27E8","LeftArrow;":"\u2190","Leftarrow;":"\u21D0","leftarrow;":"\u2190","LeftArrowBar;":"\u21E4","LeftArrowRightArrow;":"\u21C6","leftarrowtail;":"\u21A2","LeftCeiling;":"\u2308","LeftDoubleBracket;":"\u27E6","LeftDownTeeVector;":"\u2961","LeftDownVector;":"\u21C3","LeftDownVectorBar;":"\u2959","LeftFloor;":"\u230A","leftharpoondown;":"\u21BD","leftharpoonup;":"\u21BC","leftleftarrows;":"\u21C7","LeftRightArrow;":"\u2194","Leftrightarrow;":"\u21D4","leftrightarrow;":"\u2194","leftrightarrows;":"\u21C6","leftrightharpoons;":"\u21CB","leftrightsquigarrow;":"\u21AD","LeftRightVector;":"\u294E","LeftTee;":"\u22A3","LeftTeeArrow;":"\u21A4","LeftTeeVector;":"\u295A","leftthreetimes;":"\u22CB","LeftTriangle;":"\u22B2","LeftTriangleBar;":"\u29CF","LeftTriangleEqual;":"\u22B4","LeftUpDownVector;":"\u2951","LeftUpTeeVector;":"\u2960","LeftUpVector;":"\u21BF","LeftUpVectorBar;":"\u2958","LeftVector;":"\u21BC","LeftVectorBar;":"\u2952","lEg;":"\u2A8B","leg;":"\u22DA","leq;":"\u2264","leqq;":"\u2266","leqslant;":"\u2A7D","les;":"\u2A7D","lescc;":"\u2AA8","lesdot;":"\u2A7F","lesdoto;":"\u2A81","lesdotor;":"\u2A83","lesg;":"\u22DA\uFE00","lesges;":"\u2A93","lessapprox;":"\u2A85","lessdot;":"\u22D6","lesseqgtr;":"\u22DA","lesseqqgtr;":"\u2A8B","LessEqualGreater;":"\u22DA","LessFullEqual;":"\u2266","LessGreater;":"\u2276","lessgtr;":"\u2276","LessLess;":"\u2AA1","lesssim;":"\u2272","LessSlantEqual;":"\u2A7D","LessTilde;":"\u2272","lfisht;":"\u297C","lfloor;":"\u230A","Lfr;":"\u{1D50F}","lfr;":"\u{1D529}","lg;":"\u2276","lgE;":"\u2A91","lHar;":"\u2962","lhard;":"\u21BD","lharu;":"\u21BC","lharul;":"\u296A","lhblk;":"\u2584","LJcy;":"\u0409","ljcy;":"\u0459","Ll;":"\u22D8","ll;":"\u226A","llarr;":"\u21C7","llcorner;":"\u231E","Lleftarrow;":"\u21DA","llhard;":"\u296B","lltri;":"\u25FA","Lmidot;":"\u013F","lmidot;":"\u0140","lmoust;":"\u23B0","lmoustache;":"\u23B0","lnap;":"\u2A89","lnapprox;":"\u2A89","lnE;":"\u2268","lne;":"\u2A87","lneq;":"\u2A87","lneqq;":"\u2268","lnsim;":"\u22E6","loang;":"\u27EC","loarr;":"\u21FD","lobrk;":"\u27E6","LongLeftArrow;":"\u27F5","Longleftarrow;":"\u27F8","longleftarrow;":"\u27F5","LongLeftRightArrow;":"\u27F7","Longleftrightarrow;":"\u27FA","longleftrightarrow;":"\u27F7","longmapsto;":"\u27FC","LongRightArrow;":"\u27F6","Longrightarrow;":"\u27F9","longrightarrow;":"\u27F6","looparrowleft;":"\u21AB","looparrowright;":"\u21AC","lopar;":"\u2985","Lopf;":"\u{1D543}","lopf;":"\u{1D55D}","loplus;":"\u2A2D","lotimes;":"\u2A34","lowast;":"\u2217","lowbar;":"_","LowerLeftArrow;":"\u2199","LowerRightArrow;":"\u2198","loz;":"\u25CA","lozenge;":"\u25CA","lozf;":"\u29EB","lpar;":"(","lparlt;":"\u2993","lrarr;":"\u21C6","lrcorner;":"\u231F","lrhar;":"\u21CB","lrhard;":"\u296D","lrm;":"\u200E","lrtri;":"\u22BF","lsaquo;":"\u2039","Lscr;":"\u2112","lscr;":"\u{1D4C1}","Lsh;":"\u21B0","lsh;":"\u21B0","lsim;":"\u2272","lsime;":"\u2A8D","lsimg;":"\u2A8F","lsqb;":"[","lsquo;":"\u2018","lsquor;":"\u201A","Lstrok;":"\u0141","lstrok;":"\u0142","LT;":"<",LT:"<","Lt;":"\u226A","lt;":"<",lt:"<","ltcc;":"\u2AA6","ltcir;":"\u2A79","ltdot;":"\u22D6","lthree;":"\u22CB","ltimes;":"\u22C9","ltlarr;":"\u2976","ltquest;":"\u2A7B","ltri;":"\u25C3","ltrie;":"\u22B4","ltrif;":"\u25C2","ltrPar;":"\u2996","lurdshar;":"\u294A","luruhar;":"\u2966","lvertneqq;":"\u2268\uFE00","lvnE;":"\u2268\uFE00","macr;":"\xAF",macr:"\xAF","male;":"\u2642","malt;":"\u2720","maltese;":"\u2720","Map;":"\u2905","map;":"\u21A6","mapsto;":"\u21A6","mapstodown;":"\u21A7","mapstoleft;":"\u21A4","mapstoup;":"\u21A5","marker;":"\u25AE","mcomma;":"\u2A29","Mcy;":"\u041C","mcy;":"\u043C","mdash;":"\u2014","mDDot;":"\u223A","measuredangle;":"\u2221","MediumSpace;":"\u205F","Mellintrf;":"\u2133","Mfr;":"\u{1D510}","mfr;":"\u{1D52A}","mho;":"\u2127","micro;":"\xB5",micro:"\xB5","mid;":"\u2223","midast;":"*","midcir;":"\u2AF0","middot;":"\xB7",middot:"\xB7","minus;":"\u2212","minusb;":"\u229F","minusd;":"\u2238","minusdu;":"\u2A2A","MinusPlus;":"\u2213","mlcp;":"\u2ADB","mldr;":"\u2026","mnplus;":"\u2213","models;":"\u22A7","Mopf;":"\u{1D544}","mopf;":"\u{1D55E}","mp;":"\u2213","Mscr;":"\u2133","mscr;":"\u{1D4C2}","mstpos;":"\u223E","Mu;":"\u039C","mu;":"\u03BC","multimap;":"\u22B8","mumap;":"\u22B8","nabla;":"\u2207","Nacute;":"\u0143","nacute;":"\u0144","nang;":"\u2220\u20D2","nap;":"\u2249","napE;":"\u2A70\u0338","napid;":"\u224B\u0338","napos;":"\u0149","napprox;":"\u2249","natur;":"\u266E","natural;":"\u266E","naturals;":"\u2115","nbsp;":"\xA0",nbsp:"\xA0","nbump;":"\u224E\u0338","nbumpe;":"\u224F\u0338","ncap;":"\u2A43","Ncaron;":"\u0147","ncaron;":"\u0148","Ncedil;":"\u0145","ncedil;":"\u0146","ncong;":"\u2247","ncongdot;":"\u2A6D\u0338","ncup;":"\u2A42","Ncy;":"\u041D","ncy;":"\u043D","ndash;":"\u2013","ne;":"\u2260","nearhk;":"\u2924","neArr;":"\u21D7","nearr;":"\u2197","nearrow;":"\u2197","nedot;":"\u2250\u0338","NegativeMediumSpace;":"\u200B","NegativeThickSpace;":"\u200B","NegativeThinSpace;":"\u200B","NegativeVeryThinSpace;":"\u200B","nequiv;":"\u2262","nesear;":"\u2928","nesim;":"\u2242\u0338","NestedGreaterGreater;":"\u226B","NestedLessLess;":"\u226A","NewLine;":`
|
|
42
42
|
`,"nexist;":"\u2204","nexists;":"\u2204","Nfr;":"\u{1D511}","nfr;":"\u{1D52B}","ngE;":"\u2267\u0338","nge;":"\u2271","ngeq;":"\u2271","ngeqq;":"\u2267\u0338","ngeqslant;":"\u2A7E\u0338","nges;":"\u2A7E\u0338","nGg;":"\u22D9\u0338","ngsim;":"\u2275","nGt;":"\u226B\u20D2","ngt;":"\u226F","ngtr;":"\u226F","nGtv;":"\u226B\u0338","nhArr;":"\u21CE","nharr;":"\u21AE","nhpar;":"\u2AF2","ni;":"\u220B","nis;":"\u22FC","nisd;":"\u22FA","niv;":"\u220B","NJcy;":"\u040A","njcy;":"\u045A","nlArr;":"\u21CD","nlarr;":"\u219A","nldr;":"\u2025","nlE;":"\u2266\u0338","nle;":"\u2270","nLeftarrow;":"\u21CD","nleftarrow;":"\u219A","nLeftrightarrow;":"\u21CE","nleftrightarrow;":"\u21AE","nleq;":"\u2270","nleqq;":"\u2266\u0338","nleqslant;":"\u2A7D\u0338","nles;":"\u2A7D\u0338","nless;":"\u226E","nLl;":"\u22D8\u0338","nlsim;":"\u2274","nLt;":"\u226A\u20D2","nlt;":"\u226E","nltri;":"\u22EA","nltrie;":"\u22EC","nLtv;":"\u226A\u0338","nmid;":"\u2224","NoBreak;":"\u2060","NonBreakingSpace;":"\xA0","Nopf;":"\u2115","nopf;":"\u{1D55F}","Not;":"\u2AEC","not;":"\xAC",not:"\xAC","NotCongruent;":"\u2262","NotCupCap;":"\u226D","NotDoubleVerticalBar;":"\u2226","NotElement;":"\u2209","NotEqual;":"\u2260","NotEqualTilde;":"\u2242\u0338","NotExists;":"\u2204","NotGreater;":"\u226F","NotGreaterEqual;":"\u2271","NotGreaterFullEqual;":"\u2267\u0338","NotGreaterGreater;":"\u226B\u0338","NotGreaterLess;":"\u2279","NotGreaterSlantEqual;":"\u2A7E\u0338","NotGreaterTilde;":"\u2275","NotHumpDownHump;":"\u224E\u0338","NotHumpEqual;":"\u224F\u0338","notin;":"\u2209","notindot;":"\u22F5\u0338","notinE;":"\u22F9\u0338","notinva;":"\u2209","notinvb;":"\u22F7","notinvc;":"\u22F6","NotLeftTriangle;":"\u22EA","NotLeftTriangleBar;":"\u29CF\u0338","NotLeftTriangleEqual;":"\u22EC","NotLess;":"\u226E","NotLessEqual;":"\u2270","NotLessGreater;":"\u2278","NotLessLess;":"\u226A\u0338","NotLessSlantEqual;":"\u2A7D\u0338","NotLessTilde;":"\u2274","NotNestedGreaterGreater;":"\u2AA2\u0338","NotNestedLessLess;":"\u2AA1\u0338","notni;":"\u220C","notniva;":"\u220C","notnivb;":"\u22FE","notnivc;":"\u22FD","NotPrecedes;":"\u2280","NotPrecedesEqual;":"\u2AAF\u0338","NotPrecedesSlantEqual;":"\u22E0","NotReverseElement;":"\u220C","NotRightTriangle;":"\u22EB","NotRightTriangleBar;":"\u29D0\u0338","NotRightTriangleEqual;":"\u22ED","NotSquareSubset;":"\u228F\u0338","NotSquareSubsetEqual;":"\u22E2","NotSquareSuperset;":"\u2290\u0338","NotSquareSupersetEqual;":"\u22E3","NotSubset;":"\u2282\u20D2","NotSubsetEqual;":"\u2288","NotSucceeds;":"\u2281","NotSucceedsEqual;":"\u2AB0\u0338","NotSucceedsSlantEqual;":"\u22E1","NotSucceedsTilde;":"\u227F\u0338","NotSuperset;":"\u2283\u20D2","NotSupersetEqual;":"\u2289","NotTilde;":"\u2241","NotTildeEqual;":"\u2244","NotTildeFullEqual;":"\u2247","NotTildeTilde;":"\u2249","NotVerticalBar;":"\u2224","npar;":"\u2226","nparallel;":"\u2226","nparsl;":"\u2AFD\u20E5","npart;":"\u2202\u0338","npolint;":"\u2A14","npr;":"\u2280","nprcue;":"\u22E0","npre;":"\u2AAF\u0338","nprec;":"\u2280","npreceq;":"\u2AAF\u0338","nrArr;":"\u21CF","nrarr;":"\u219B","nrarrc;":"\u2933\u0338","nrarrw;":"\u219D\u0338","nRightarrow;":"\u21CF","nrightarrow;":"\u219B","nrtri;":"\u22EB","nrtrie;":"\u22ED","nsc;":"\u2281","nsccue;":"\u22E1","nsce;":"\u2AB0\u0338","Nscr;":"\u{1D4A9}","nscr;":"\u{1D4C3}","nshortmid;":"\u2224","nshortparallel;":"\u2226","nsim;":"\u2241","nsime;":"\u2244","nsimeq;":"\u2244","nsmid;":"\u2224","nspar;":"\u2226","nsqsube;":"\u22E2","nsqsupe;":"\u22E3","nsub;":"\u2284","nsubE;":"\u2AC5\u0338","nsube;":"\u2288","nsubset;":"\u2282\u20D2","nsubseteq;":"\u2288","nsubseteqq;":"\u2AC5\u0338","nsucc;":"\u2281","nsucceq;":"\u2AB0\u0338","nsup;":"\u2285","nsupE;":"\u2AC6\u0338","nsupe;":"\u2289","nsupset;":"\u2283\u20D2","nsupseteq;":"\u2289","nsupseteqq;":"\u2AC6\u0338","ntgl;":"\u2279","Ntilde;":"\xD1",Ntilde:"\xD1","ntilde;":"\xF1",ntilde:"\xF1","ntlg;":"\u2278","ntriangleleft;":"\u22EA","ntrianglelefteq;":"\u22EC","ntriangleright;":"\u22EB","ntrianglerighteq;":"\u22ED","Nu;":"\u039D","nu;":"\u03BD","num;":"#","numero;":"\u2116","numsp;":"\u2007","nvap;":"\u224D\u20D2","nVDash;":"\u22AF","nVdash;":"\u22AE","nvDash;":"\u22AD","nvdash;":"\u22AC","nvge;":"\u2265\u20D2","nvgt;":">\u20D2","nvHarr;":"\u2904","nvinfin;":"\u29DE","nvlArr;":"\u2902","nvle;":"\u2264\u20D2","nvlt;":"<\u20D2","nvltrie;":"\u22B4\u20D2","nvrArr;":"\u2903","nvrtrie;":"\u22B5\u20D2","nvsim;":"\u223C\u20D2","nwarhk;":"\u2923","nwArr;":"\u21D6","nwarr;":"\u2196","nwarrow;":"\u2196","nwnear;":"\u2927","Oacute;":"\xD3",Oacute:"\xD3","oacute;":"\xF3",oacute:"\xF3","oast;":"\u229B","ocir;":"\u229A","Ocirc;":"\xD4",Ocirc:"\xD4","ocirc;":"\xF4",ocirc:"\xF4","Ocy;":"\u041E","ocy;":"\u043E","odash;":"\u229D","Odblac;":"\u0150","odblac;":"\u0151","odiv;":"\u2A38","odot;":"\u2299","odsold;":"\u29BC","OElig;":"\u0152","oelig;":"\u0153","ofcir;":"\u29BF","Ofr;":"\u{1D512}","ofr;":"\u{1D52C}","ogon;":"\u02DB","Ograve;":"\xD2",Ograve:"\xD2","ograve;":"\xF2",ograve:"\xF2","ogt;":"\u29C1","ohbar;":"\u29B5","ohm;":"\u03A9","oint;":"\u222E","olarr;":"\u21BA","olcir;":"\u29BE","olcross;":"\u29BB","oline;":"\u203E","olt;":"\u29C0","Omacr;":"\u014C","omacr;":"\u014D","Omega;":"\u03A9","omega;":"\u03C9","Omicron;":"\u039F","omicron;":"\u03BF","omid;":"\u29B6","ominus;":"\u2296","Oopf;":"\u{1D546}","oopf;":"\u{1D560}","opar;":"\u29B7","OpenCurlyDoubleQuote;":"\u201C","OpenCurlyQuote;":"\u2018","operp;":"\u29B9","oplus;":"\u2295","Or;":"\u2A54","or;":"\u2228","orarr;":"\u21BB","ord;":"\u2A5D","order;":"\u2134","orderof;":"\u2134","ordf;":"\xAA",ordf:"\xAA","ordm;":"\xBA",ordm:"\xBA","origof;":"\u22B6","oror;":"\u2A56","orslope;":"\u2A57","orv;":"\u2A5B","oS;":"\u24C8","Oscr;":"\u{1D4AA}","oscr;":"\u2134","Oslash;":"\xD8",Oslash:"\xD8","oslash;":"\xF8",oslash:"\xF8","osol;":"\u2298","Otilde;":"\xD5",Otilde:"\xD5","otilde;":"\xF5",otilde:"\xF5","Otimes;":"\u2A37","otimes;":"\u2297","otimesas;":"\u2A36","Ouml;":"\xD6",Ouml:"\xD6","ouml;":"\xF6",ouml:"\xF6","ovbar;":"\u233D","OverBar;":"\u203E","OverBrace;":"\u23DE","OverBracket;":"\u23B4","OverParenthesis;":"\u23DC","par;":"\u2225","para;":"\xB6",para:"\xB6","parallel;":"\u2225","parsim;":"\u2AF3","parsl;":"\u2AFD","part;":"\u2202","PartialD;":"\u2202","Pcy;":"\u041F","pcy;":"\u043F","percnt;":"%","period;":".","permil;":"\u2030","perp;":"\u22A5","pertenk;":"\u2031","Pfr;":"\u{1D513}","pfr;":"\u{1D52D}","Phi;":"\u03A6","phi;":"\u03C6","phiv;":"\u03D5","phmmat;":"\u2133","phone;":"\u260E","Pi;":"\u03A0","pi;":"\u03C0","pitchfork;":"\u22D4","piv;":"\u03D6","planck;":"\u210F","planckh;":"\u210E","plankv;":"\u210F","plus;":"+","plusacir;":"\u2A23","plusb;":"\u229E","pluscir;":"\u2A22","plusdo;":"\u2214","plusdu;":"\u2A25","pluse;":"\u2A72","PlusMinus;":"\xB1","plusmn;":"\xB1",plusmn:"\xB1","plussim;":"\u2A26","plustwo;":"\u2A27","pm;":"\xB1","Poincareplane;":"\u210C","pointint;":"\u2A15","Popf;":"\u2119","popf;":"\u{1D561}","pound;":"\xA3",pound:"\xA3","Pr;":"\u2ABB","pr;":"\u227A","prap;":"\u2AB7","prcue;":"\u227C","prE;":"\u2AB3","pre;":"\u2AAF","prec;":"\u227A","precapprox;":"\u2AB7","preccurlyeq;":"\u227C","Precedes;":"\u227A","PrecedesEqual;":"\u2AAF","PrecedesSlantEqual;":"\u227C","PrecedesTilde;":"\u227E","preceq;":"\u2AAF","precnapprox;":"\u2AB9","precneqq;":"\u2AB5","precnsim;":"\u22E8","precsim;":"\u227E","Prime;":"\u2033","prime;":"\u2032","primes;":"\u2119","prnap;":"\u2AB9","prnE;":"\u2AB5","prnsim;":"\u22E8","prod;":"\u220F","Product;":"\u220F","profalar;":"\u232E","profline;":"\u2312","profsurf;":"\u2313","prop;":"\u221D","Proportion;":"\u2237","Proportional;":"\u221D","propto;":"\u221D","prsim;":"\u227E","prurel;":"\u22B0","Pscr;":"\u{1D4AB}","pscr;":"\u{1D4C5}","Psi;":"\u03A8","psi;":"\u03C8","puncsp;":"\u2008","Qfr;":"\u{1D514}","qfr;":"\u{1D52E}","qint;":"\u2A0C","Qopf;":"\u211A","qopf;":"\u{1D562}","qprime;":"\u2057","Qscr;":"\u{1D4AC}","qscr;":"\u{1D4C6}","quaternions;":"\u210D","quatint;":"\u2A16","quest;":"?","questeq;":"\u225F","QUOT;":'"',QUOT:'"',"quot;":'"',quot:'"',"rAarr;":"\u21DB","race;":"\u223D\u0331","Racute;":"\u0154","racute;":"\u0155","radic;":"\u221A","raemptyv;":"\u29B3","Rang;":"\u27EB","rang;":"\u27E9","rangd;":"\u2992","range;":"\u29A5","rangle;":"\u27E9","raquo;":"\xBB",raquo:"\xBB","Rarr;":"\u21A0","rArr;":"\u21D2","rarr;":"\u2192","rarrap;":"\u2975","rarrb;":"\u21E5","rarrbfs;":"\u2920","rarrc;":"\u2933","rarrfs;":"\u291E","rarrhk;":"\u21AA","rarrlp;":"\u21AC","rarrpl;":"\u2945","rarrsim;":"\u2974","Rarrtl;":"\u2916","rarrtl;":"\u21A3","rarrw;":"\u219D","rAtail;":"\u291C","ratail;":"\u291A","ratio;":"\u2236","rationals;":"\u211A","RBarr;":"\u2910","rBarr;":"\u290F","rbarr;":"\u290D","rbbrk;":"\u2773","rbrace;":"}","rbrack;":"]","rbrke;":"\u298C","rbrksld;":"\u298E","rbrkslu;":"\u2990","Rcaron;":"\u0158","rcaron;":"\u0159","Rcedil;":"\u0156","rcedil;":"\u0157","rceil;":"\u2309","rcub;":"}","Rcy;":"\u0420","rcy;":"\u0440","rdca;":"\u2937","rdldhar;":"\u2969","rdquo;":"\u201D","rdquor;":"\u201D","rdsh;":"\u21B3","Re;":"\u211C","real;":"\u211C","realine;":"\u211B","realpart;":"\u211C","reals;":"\u211D","rect;":"\u25AD","REG;":"\xAE",REG:"\xAE","reg;":"\xAE",reg:"\xAE","ReverseElement;":"\u220B","ReverseEquilibrium;":"\u21CB","ReverseUpEquilibrium;":"\u296F","rfisht;":"\u297D","rfloor;":"\u230B","Rfr;":"\u211C","rfr;":"\u{1D52F}","rHar;":"\u2964","rhard;":"\u21C1","rharu;":"\u21C0","rharul;":"\u296C","Rho;":"\u03A1","rho;":"\u03C1","rhov;":"\u03F1","RightAngleBracket;":"\u27E9","RightArrow;":"\u2192","Rightarrow;":"\u21D2","rightarrow;":"\u2192","RightArrowBar;":"\u21E5","RightArrowLeftArrow;":"\u21C4","rightarrowtail;":"\u21A3","RightCeiling;":"\u2309","RightDoubleBracket;":"\u27E7","RightDownTeeVector;":"\u295D","RightDownVector;":"\u21C2","RightDownVectorBar;":"\u2955","RightFloor;":"\u230B","rightharpoondown;":"\u21C1","rightharpoonup;":"\u21C0","rightleftarrows;":"\u21C4","rightleftharpoons;":"\u21CC","rightrightarrows;":"\u21C9","rightsquigarrow;":"\u219D","RightTee;":"\u22A2","RightTeeArrow;":"\u21A6","RightTeeVector;":"\u295B","rightthreetimes;":"\u22CC","RightTriangle;":"\u22B3","RightTriangleBar;":"\u29D0","RightTriangleEqual;":"\u22B5","RightUpDownVector;":"\u294F","RightUpTeeVector;":"\u295C","RightUpVector;":"\u21BE","RightUpVectorBar;":"\u2954","RightVector;":"\u21C0","RightVectorBar;":"\u2953","ring;":"\u02DA","risingdotseq;":"\u2253","rlarr;":"\u21C4","rlhar;":"\u21CC","rlm;":"\u200F","rmoust;":"\u23B1","rmoustache;":"\u23B1","rnmid;":"\u2AEE","roang;":"\u27ED","roarr;":"\u21FE","robrk;":"\u27E7","ropar;":"\u2986","Ropf;":"\u211D","ropf;":"\u{1D563}","roplus;":"\u2A2E","rotimes;":"\u2A35","RoundImplies;":"\u2970","rpar;":")","rpargt;":"\u2994","rppolint;":"\u2A12","rrarr;":"\u21C9","Rrightarrow;":"\u21DB","rsaquo;":"\u203A","Rscr;":"\u211B","rscr;":"\u{1D4C7}","Rsh;":"\u21B1","rsh;":"\u21B1","rsqb;":"]","rsquo;":"\u2019","rsquor;":"\u2019","rthree;":"\u22CC","rtimes;":"\u22CA","rtri;":"\u25B9","rtrie;":"\u22B5","rtrif;":"\u25B8","rtriltri;":"\u29CE","RuleDelayed;":"\u29F4","ruluhar;":"\u2968","rx;":"\u211E","Sacute;":"\u015A","sacute;":"\u015B","sbquo;":"\u201A","Sc;":"\u2ABC","sc;":"\u227B","scap;":"\u2AB8","Scaron;":"\u0160","scaron;":"\u0161","sccue;":"\u227D","scE;":"\u2AB4","sce;":"\u2AB0","Scedil;":"\u015E","scedil;":"\u015F","Scirc;":"\u015C","scirc;":"\u015D","scnap;":"\u2ABA","scnE;":"\u2AB6","scnsim;":"\u22E9","scpolint;":"\u2A13","scsim;":"\u227F","Scy;":"\u0421","scy;":"\u0441","sdot;":"\u22C5","sdotb;":"\u22A1","sdote;":"\u2A66","searhk;":"\u2925","seArr;":"\u21D8","searr;":"\u2198","searrow;":"\u2198","sect;":"\xA7",sect:"\xA7","semi;":";","seswar;":"\u2929","setminus;":"\u2216","setmn;":"\u2216","sext;":"\u2736","Sfr;":"\u{1D516}","sfr;":"\u{1D530}","sfrown;":"\u2322","sharp;":"\u266F","SHCHcy;":"\u0429","shchcy;":"\u0449","SHcy;":"\u0428","shcy;":"\u0448","ShortDownArrow;":"\u2193","ShortLeftArrow;":"\u2190","shortmid;":"\u2223","shortparallel;":"\u2225","ShortRightArrow;":"\u2192","ShortUpArrow;":"\u2191","shy;":"\xAD",shy:"\xAD","Sigma;":"\u03A3","sigma;":"\u03C3","sigmaf;":"\u03C2","sigmav;":"\u03C2","sim;":"\u223C","simdot;":"\u2A6A","sime;":"\u2243","simeq;":"\u2243","simg;":"\u2A9E","simgE;":"\u2AA0","siml;":"\u2A9D","simlE;":"\u2A9F","simne;":"\u2246","simplus;":"\u2A24","simrarr;":"\u2972","slarr;":"\u2190","SmallCircle;":"\u2218","smallsetminus;":"\u2216","smashp;":"\u2A33","smeparsl;":"\u29E4","smid;":"\u2223","smile;":"\u2323","smt;":"\u2AAA","smte;":"\u2AAC","smtes;":"\u2AAC\uFE00","SOFTcy;":"\u042C","softcy;":"\u044C","sol;":"/","solb;":"\u29C4","solbar;":"\u233F","Sopf;":"\u{1D54A}","sopf;":"\u{1D564}","spades;":"\u2660","spadesuit;":"\u2660","spar;":"\u2225","sqcap;":"\u2293","sqcaps;":"\u2293\uFE00","sqcup;":"\u2294","sqcups;":"\u2294\uFE00","Sqrt;":"\u221A","sqsub;":"\u228F","sqsube;":"\u2291","sqsubset;":"\u228F","sqsubseteq;":"\u2291","sqsup;":"\u2290","sqsupe;":"\u2292","sqsupset;":"\u2290","sqsupseteq;":"\u2292","squ;":"\u25A1","Square;":"\u25A1","square;":"\u25A1","SquareIntersection;":"\u2293","SquareSubset;":"\u228F","SquareSubsetEqual;":"\u2291","SquareSuperset;":"\u2290","SquareSupersetEqual;":"\u2292","SquareUnion;":"\u2294","squarf;":"\u25AA","squf;":"\u25AA","srarr;":"\u2192","Sscr;":"\u{1D4AE}","sscr;":"\u{1D4C8}","ssetmn;":"\u2216","ssmile;":"\u2323","sstarf;":"\u22C6","Star;":"\u22C6","star;":"\u2606","starf;":"\u2605","straightepsilon;":"\u03F5","straightphi;":"\u03D5","strns;":"\xAF","Sub;":"\u22D0","sub;":"\u2282","subdot;":"\u2ABD","subE;":"\u2AC5","sube;":"\u2286","subedot;":"\u2AC3","submult;":"\u2AC1","subnE;":"\u2ACB","subne;":"\u228A","subplus;":"\u2ABF","subrarr;":"\u2979","Subset;":"\u22D0","subset;":"\u2282","subseteq;":"\u2286","subseteqq;":"\u2AC5","SubsetEqual;":"\u2286","subsetneq;":"\u228A","subsetneqq;":"\u2ACB","subsim;":"\u2AC7","subsub;":"\u2AD5","subsup;":"\u2AD3","succ;":"\u227B","succapprox;":"\u2AB8","succcurlyeq;":"\u227D","Succeeds;":"\u227B","SucceedsEqual;":"\u2AB0","SucceedsSlantEqual;":"\u227D","SucceedsTilde;":"\u227F","succeq;":"\u2AB0","succnapprox;":"\u2ABA","succneqq;":"\u2AB6","succnsim;":"\u22E9","succsim;":"\u227F","SuchThat;":"\u220B","Sum;":"\u2211","sum;":"\u2211","sung;":"\u266A","Sup;":"\u22D1","sup;":"\u2283","sup1;":"\xB9",sup1:"\xB9","sup2;":"\xB2",sup2:"\xB2","sup3;":"\xB3",sup3:"\xB3","supdot;":"\u2ABE","supdsub;":"\u2AD8","supE;":"\u2AC6","supe;":"\u2287","supedot;":"\u2AC4","Superset;":"\u2283","SupersetEqual;":"\u2287","suphsol;":"\u27C9","suphsub;":"\u2AD7","suplarr;":"\u297B","supmult;":"\u2AC2","supnE;":"\u2ACC","supne;":"\u228B","supplus;":"\u2AC0","Supset;":"\u22D1","supset;":"\u2283","supseteq;":"\u2287","supseteqq;":"\u2AC6","supsetneq;":"\u228B","supsetneqq;":"\u2ACC","supsim;":"\u2AC8","supsub;":"\u2AD4","supsup;":"\u2AD6","swarhk;":"\u2926","swArr;":"\u21D9","swarr;":"\u2199","swarrow;":"\u2199","swnwar;":"\u292A","szlig;":"\xDF",szlig:"\xDF","Tab;":" ","target;":"\u2316","Tau;":"\u03A4","tau;":"\u03C4","tbrk;":"\u23B4","Tcaron;":"\u0164","tcaron;":"\u0165","Tcedil;":"\u0162","tcedil;":"\u0163","Tcy;":"\u0422","tcy;":"\u0442","tdot;":"\u20DB","telrec;":"\u2315","Tfr;":"\u{1D517}","tfr;":"\u{1D531}","there4;":"\u2234","Therefore;":"\u2234","therefore;":"\u2234","Theta;":"\u0398","theta;":"\u03B8","thetasym;":"\u03D1","thetav;":"\u03D1","thickapprox;":"\u2248","thicksim;":"\u223C","ThickSpace;":"\u205F\u200A","thinsp;":"\u2009","ThinSpace;":"\u2009","thkap;":"\u2248","thksim;":"\u223C","THORN;":"\xDE",THORN:"\xDE","thorn;":"\xFE",thorn:"\xFE","Tilde;":"\u223C","tilde;":"\u02DC","TildeEqual;":"\u2243","TildeFullEqual;":"\u2245","TildeTilde;":"\u2248","times;":"\xD7",times:"\xD7","timesb;":"\u22A0","timesbar;":"\u2A31","timesd;":"\u2A30","tint;":"\u222D","toea;":"\u2928","top;":"\u22A4","topbot;":"\u2336","topcir;":"\u2AF1","Topf;":"\u{1D54B}","topf;":"\u{1D565}","topfork;":"\u2ADA","tosa;":"\u2929","tprime;":"\u2034","TRADE;":"\u2122","trade;":"\u2122","triangle;":"\u25B5","triangledown;":"\u25BF","triangleleft;":"\u25C3","trianglelefteq;":"\u22B4","triangleq;":"\u225C","triangleright;":"\u25B9","trianglerighteq;":"\u22B5","tridot;":"\u25EC","trie;":"\u225C","triminus;":"\u2A3A","TripleDot;":"\u20DB","triplus;":"\u2A39","trisb;":"\u29CD","tritime;":"\u2A3B","trpezium;":"\u23E2","Tscr;":"\u{1D4AF}","tscr;":"\u{1D4C9}","TScy;":"\u0426","tscy;":"\u0446","TSHcy;":"\u040B","tshcy;":"\u045B","Tstrok;":"\u0166","tstrok;":"\u0167","twixt;":"\u226C","twoheadleftarrow;":"\u219E","twoheadrightarrow;":"\u21A0","Uacute;":"\xDA",Uacute:"\xDA","uacute;":"\xFA",uacute:"\xFA","Uarr;":"\u219F","uArr;":"\u21D1","uarr;":"\u2191","Uarrocir;":"\u2949","Ubrcy;":"\u040E","ubrcy;":"\u045E","Ubreve;":"\u016C","ubreve;":"\u016D","Ucirc;":"\xDB",Ucirc:"\xDB","ucirc;":"\xFB",ucirc:"\xFB","Ucy;":"\u0423","ucy;":"\u0443","udarr;":"\u21C5","Udblac;":"\u0170","udblac;":"\u0171","udhar;":"\u296E","ufisht;":"\u297E","Ufr;":"\u{1D518}","ufr;":"\u{1D532}","Ugrave;":"\xD9",Ugrave:"\xD9","ugrave;":"\xF9",ugrave:"\xF9","uHar;":"\u2963","uharl;":"\u21BF","uharr;":"\u21BE","uhblk;":"\u2580","ulcorn;":"\u231C","ulcorner;":"\u231C","ulcrop;":"\u230F","ultri;":"\u25F8","Umacr;":"\u016A","umacr;":"\u016B","uml;":"\xA8",uml:"\xA8","UnderBar;":"_","UnderBrace;":"\u23DF","UnderBracket;":"\u23B5","UnderParenthesis;":"\u23DD","Union;":"\u22C3","UnionPlus;":"\u228E","Uogon;":"\u0172","uogon;":"\u0173","Uopf;":"\u{1D54C}","uopf;":"\u{1D566}","UpArrow;":"\u2191","Uparrow;":"\u21D1","uparrow;":"\u2191","UpArrowBar;":"\u2912","UpArrowDownArrow;":"\u21C5","UpDownArrow;":"\u2195","Updownarrow;":"\u21D5","updownarrow;":"\u2195","UpEquilibrium;":"\u296E","upharpoonleft;":"\u21BF","upharpoonright;":"\u21BE","uplus;":"\u228E","UpperLeftArrow;":"\u2196","UpperRightArrow;":"\u2197","Upsi;":"\u03D2","upsi;":"\u03C5","upsih;":"\u03D2","Upsilon;":"\u03A5","upsilon;":"\u03C5","UpTee;":"\u22A5","UpTeeArrow;":"\u21A5","upuparrows;":"\u21C8","urcorn;":"\u231D","urcorner;":"\u231D","urcrop;":"\u230E","Uring;":"\u016E","uring;":"\u016F","urtri;":"\u25F9","Uscr;":"\u{1D4B0}","uscr;":"\u{1D4CA}","utdot;":"\u22F0","Utilde;":"\u0168","utilde;":"\u0169","utri;":"\u25B5","utrif;":"\u25B4","uuarr;":"\u21C8","Uuml;":"\xDC",Uuml:"\xDC","uuml;":"\xFC",uuml:"\xFC","uwangle;":"\u29A7","vangrt;":"\u299C","varepsilon;":"\u03F5","varkappa;":"\u03F0","varnothing;":"\u2205","varphi;":"\u03D5","varpi;":"\u03D6","varpropto;":"\u221D","vArr;":"\u21D5","varr;":"\u2195","varrho;":"\u03F1","varsigma;":"\u03C2","varsubsetneq;":"\u228A\uFE00","varsubsetneqq;":"\u2ACB\uFE00","varsupsetneq;":"\u228B\uFE00","varsupsetneqq;":"\u2ACC\uFE00","vartheta;":"\u03D1","vartriangleleft;":"\u22B2","vartriangleright;":"\u22B3","Vbar;":"\u2AEB","vBar;":"\u2AE8","vBarv;":"\u2AE9","Vcy;":"\u0412","vcy;":"\u0432","VDash;":"\u22AB","Vdash;":"\u22A9","vDash;":"\u22A8","vdash;":"\u22A2","Vdashl;":"\u2AE6","Vee;":"\u22C1","vee;":"\u2228","veebar;":"\u22BB","veeeq;":"\u225A","vellip;":"\u22EE","Verbar;":"\u2016","verbar;":"|","Vert;":"\u2016","vert;":"|","VerticalBar;":"\u2223","VerticalLine;":"|","VerticalSeparator;":"\u2758","VerticalTilde;":"\u2240","VeryThinSpace;":"\u200A","Vfr;":"\u{1D519}","vfr;":"\u{1D533}","vltri;":"\u22B2","vnsub;":"\u2282\u20D2","vnsup;":"\u2283\u20D2","Vopf;":"\u{1D54D}","vopf;":"\u{1D567}","vprop;":"\u221D","vrtri;":"\u22B3","Vscr;":"\u{1D4B1}","vscr;":"\u{1D4CB}","vsubnE;":"\u2ACB\uFE00","vsubne;":"\u228A\uFE00","vsupnE;":"\u2ACC\uFE00","vsupne;":"\u228B\uFE00","Vvdash;":"\u22AA","vzigzag;":"\u299A","Wcirc;":"\u0174","wcirc;":"\u0175","wedbar;":"\u2A5F","Wedge;":"\u22C0","wedge;":"\u2227","wedgeq;":"\u2259","weierp;":"\u2118","Wfr;":"\u{1D51A}","wfr;":"\u{1D534}","Wopf;":"\u{1D54E}","wopf;":"\u{1D568}","wp;":"\u2118","wr;":"\u2240","wreath;":"\u2240","Wscr;":"\u{1D4B2}","wscr;":"\u{1D4CC}","xcap;":"\u22C2","xcirc;":"\u25EF","xcup;":"\u22C3","xdtri;":"\u25BD","Xfr;":"\u{1D51B}","xfr;":"\u{1D535}","xhArr;":"\u27FA","xharr;":"\u27F7","Xi;":"\u039E","xi;":"\u03BE","xlArr;":"\u27F8","xlarr;":"\u27F5","xmap;":"\u27FC","xnis;":"\u22FB","xodot;":"\u2A00","Xopf;":"\u{1D54F}","xopf;":"\u{1D569}","xoplus;":"\u2A01","xotime;":"\u2A02","xrArr;":"\u27F9","xrarr;":"\u27F6","Xscr;":"\u{1D4B3}","xscr;":"\u{1D4CD}","xsqcup;":"\u2A06","xuplus;":"\u2A04","xutri;":"\u25B3","xvee;":"\u22C1","xwedge;":"\u22C0","Yacute;":"\xDD",Yacute:"\xDD","yacute;":"\xFD",yacute:"\xFD","YAcy;":"\u042F","yacy;":"\u044F","Ycirc;":"\u0176","ycirc;":"\u0177","Ycy;":"\u042B","ycy;":"\u044B","yen;":"\xA5",yen:"\xA5","Yfr;":"\u{1D51C}","yfr;":"\u{1D536}","YIcy;":"\u0407","yicy;":"\u0457","Yopf;":"\u{1D550}","yopf;":"\u{1D56A}","Yscr;":"\u{1D4B4}","yscr;":"\u{1D4CE}","YUcy;":"\u042E","yucy;":"\u044E","Yuml;":"\u0178","yuml;":"\xFF",yuml:"\xFF","Zacute;":"\u0179","zacute;":"\u017A","Zcaron;":"\u017D","zcaron;":"\u017E","Zcy;":"\u0417","zcy;":"\u0437","Zdot;":"\u017B","zdot;":"\u017C","zeetrf;":"\u2128","ZeroWidthSpace;":"\u200B","Zeta;":"\u0396","zeta;":"\u03B6","Zfr;":"\u2128","zfr;":"\u{1D537}","ZHcy;":"\u0416","zhcy;":"\u0436","zigrarr;":"\u21DD","Zopf;":"\u2124","zopf;":"\u{1D56B}","Zscr;":"\u{1D4B5}","zscr;":"\u{1D4CF}","zwj;":"\u200D","zwnj;":"\u200C"}});function Un(t,e){if(t.length<e.length)return!1;for(var n=0;n<e.length;n++)if(t[n]!==e[n])return!1;return!0}function Aw(t,e){var n=t.length-e.length;return n>0?t.lastIndexOf(e)===n:n===0?t===e:!1}function Pp(t,e){for(var n="";e>0;)(e&1)===1&&(n+=t),t+=t,e=e>>>1;return n}function Hi(t,e){var n=t.charCodeAt(e);return SD<=n&&n<=xD||kD<=n&&n<=CD||TD<=n&&n<=ED}var SD,xD,kD,CD,TD,ED,Io=ue(()=>{SD="a".charCodeAt(0),xD="z".charCodeAt(0),kD="A".charCodeAt(0),CD="Z".charCodeAt(0),TD="0".charCodeAt(0),ED="9".charCodeAt(0)});function Mo(t){return typeof t<"u"}var zp=ue(()=>{});function Rw(t){if(!!t)return typeof t=="string"?{kind:"markdown",value:t}:{kind:"markdown",value:t.value}}var Iw=ue(()=>{});function zr(t,e,n){e===void 0&&(e={});var r={kind:n?"markdown":"plaintext",value:""};if(t.description&&e.documentation!==!1){var i=Rw(t.description);i&&(r.value+=i.value)}if(t.references&&t.references.length>0&&e.references!==!1&&(r.value.length&&(r.value+=`
|
|
43
43
|
|
|
44
44
|
`),n?r.value+=t.references.map(function(o){return"[".concat(o.name,"](").concat(o.url,")")}).join(" | "):r.value+=t.references.map(function(o){return"".concat(o.name,": ").concat(o.url)}).join(`
|
|
45
|
-
`)),r.value!=="")return r}var Hl,Ks=ue(()=>{Iw();Hl=function(){function t(e,n){var r=this;this.id=e,this._tags=[],this._tagMap={},this._valueSetMap={},this._tags=n.tags||[],this._globalAttributes=n.globalAttributes||[],this._tags.forEach(function(i){r._tagMap[i.name.toLowerCase()]=i}),n.valueSets&&n.valueSets.forEach(function(i){r._valueSetMap[i.name]=i.values})}return t.prototype.isApplicable=function(){return!0},t.prototype.getId=function(){return this.id},t.prototype.provideTags=function(){return this._tags},t.prototype.provideAttributes=function(e){var n=[],r=function(o){n.push(o)},i=this._tagMap[e.toLowerCase()];return i&&i.attributes.forEach(r),this._globalAttributes.forEach(r),n},t.prototype.provideValues=function(e,n){var r=this,i=[];n=n.toLowerCase();var o=function(l){l.forEach(function(a){a.name.toLowerCase()===n&&(a.values&&a.values.forEach(function(c){i.push(c)}),a.valueSet&&r._valueSetMap[a.valueSet]&&r._valueSetMap[a.valueSet].forEach(function(c){i.push(c)}))})},s=this._tagMap[e.toLowerCase()];return s&&o(s.attributes),o(this._globalAttributes),i},t}()});function AD(t){return Un(t,"'")||Un(t,'"')?t.slice(1,-1):t}function RD(t){return!(Un(t,"http")||Un(t,"https")||Un(t,"//"))}function ID(t,e){if(e==="src"||e==="href")return!0;var n=OD[t];return n?typeof n=="string"?n===e:n.indexOf(e)!==-1:!1}function MD(t,e,n){var r,i=t.lastIndexOf("/");if(i===-1)r=zD(n,1,-1);else{var o=e.slice(i+1),s=Gs(n.end,-1-o.length),l=o.indexOf(" "),a=void 0;l!==-1?a=Gs(s,l):a=Gs(n.end,-1),r=$.Range.create(s,a)}return r}function PD(t,e,n){return e?(t=t+"/",{label:t,kind:$.CompletionItemKind.Folder,textEdit:$.TextEdit.replace(n,t),command:{title:"Suggest",command:"editor.action.triggerSuggest"}}):{label:t,kind:$.CompletionItemKind.File,textEdit:$.TextEdit.replace(n,t)}}function Gs(t,e){return $.Position.create(t.line,t.character+e)}function zD(t,e,n){var r=Gs(t.start,e),i=Gs(t.end,n);return $.Range.create(r,i)}var Mw,Pw,zw,FD,OD,Ow=ue(()=>{rn();Io();Mw=function(t,e,n,r){function i(o){return o instanceof n?o:new n(function(s){s(o)})}return new(n||(n=Promise))(function(o,s){function l(u){try{c(r.next(u))}catch(d){s(d)}}function a(u){try{c(r.throw(u))}catch(d){s(d)}}function c(u){u.done?o(u.value):i(u.value).then(l,a)}c((r=r.apply(t,e||[])).next())})},Pw=function(t,e){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},r,i,o,s;return s={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function l(c){return function(u){return a([c,u])}}function a(c){if(r)throw new TypeError("Generator is already executing.");for(;n;)try{if(r=1,i&&(o=c[0]&2?i.return:c[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,c[1])).done)return o;switch(i=0,o&&(c=[c[0]&2,o.value]),c[0]){case 0:case 1:o=c;break;case 4:return n.label++,{value:c[1],done:!1};case 5:n.label++,i=c[1],c=[0];continue;case 7:c=n.ops.pop(),n.trys.pop();continue;default:if(o=n.trys,!(o=o.length>0&&o[o.length-1])&&(c[0]===6||c[0]===2)){n=0;continue}if(c[0]===3&&(!o||c[1]>o[0]&&c[1]<o[3])){n.label=c[1];break}if(c[0]===6&&n.label<o[1]){n.label=o[1],o=c;break}if(o&&n.label<o[2]){n.label=o[2],n.ops.push(c);break}o[2]&&n.ops.pop(),n.trys.pop();continue}c=e.call(t,n)}catch(u){c=[6,u],i=0}finally{r=o=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}},zw=function(){function t(e){this.readDirectory=e,this.atributeCompletions=[]}return t.prototype.onHtmlAttributeValue=function(e){ID(e.tag,e.attribute)&&this.atributeCompletions.push(e)},t.prototype.computeCompletions=function(e,n){return Mw(this,void 0,void 0,function(){var r,i,o,s,l,a,c,u,d,h;return Pw(this,function(p){switch(p.label){case 0:r={items:[],isIncomplete:!1},i=0,o=this.atributeCompletions,p.label=1;case 1:return i<o.length?(s=o[i],l=AD(e.getText(s.range)),RD(l)?l==="."||l===".."?(r.isIncomplete=!0,[3,4]):[3,2]:[3,4]):[3,5];case 2:return a=MD(s.value,l,s.range),[4,this.providePathSuggestions(s.value,a,e,n)];case 3:for(c=p.sent(),u=0,d=c;u<d.length;u++)h=d[u],r.items.push(h);p.label=4;case 4:return i++,[3,1];case 5:return[2,r]}})})},t.prototype.providePathSuggestions=function(e,n,r,i){return Mw(this,void 0,void 0,function(){var o,s,l,a,c,u,d,h,p,w;return Pw(this,function(v){switch(v.label){case 0:if(o=e.substring(0,e.lastIndexOf("/")+1),s=i.resolveReference(o||".",r.uri),!s)return[3,4];v.label=1;case 1:return v.trys.push([1,3,,4]),l=[],[4,this.readDirectory(s)];case 2:for(a=v.sent(),c=0,u=a;c<u.length;c++)d=u[c],h=d[0],p=d[1],h.charCodeAt(0)!==FD&&l.push(PD(h,p===Vs.Directory,n));return[2,l];case 3:return w=v.sent(),[3,4];case 4:return[2,[]]}})})},t}(),FD=".".charCodeAt(0);OD={a:"href",area:"href",body:"background",del:"cite",form:"action",frame:["src","longdesc"],img:["src","longdesc"],ins:"cite",link:"href",object:"data",q:"cite",script:"src",audio:"src",button:"formaction",command:"icon",embed:"src",html:"manifest",input:["src","formaction"],source:"src",track:"src",video:["src","poster"]}});function qD(t){return/^["']*$/.test(t)}function Bl(t){return/^\s*$/.test(t)}function Lw(t,e,n,r){for(var i=gt(t,e,n),o=i.scan();o===ne.Whitespace;)o=i.scan();return o===r}function UD(t,e,n){for(;e>n&&!Bl(t[e-1]);)e--;return e}function jD(t,e,n){for(;e<n&&!Bl(t[e]);)e++;return e}var Nw,LD,ND,WD,Ww,qw=ue(()=>{Pr();rn();Mp();Nw=
|
|
46
|
-
\r`.indexOf(xe)>=0)return d.substring(pe,ae);if(!Bl(xe))return null;pe--}return d.substring(0,ae)}function D(ae,pe,xe){xe===void 0&&(xe=h);var B=_(ae,xe),Y=Lw(d,xe,_e.WithinEndTag,ne.EndTagClose)?"":">",ie=p;for(pe&&(ie=ie.parent);ie;){var le=ie.tag;if(le&&(!ie.closed||ie.endTagStart&&ie.endTagStart>h)){var Ce={label:"/"+le,kind:$.CompletionItemKind.Property,filterText:"/"+le,textEdit:$.TextEdit.replace(B,"/"+le+Y),insertTextFormat:$.InsertTextFormat.PlainText},ge=g(ie.start),Ae=g(ae-1);if(ge!==null&&Ae!==null&&ge!==Ae){var Te=ge+"</"+le+Y;Ce.textEdit=$.TextEdit.replace(_(ae-1-Ae.length),Te),Ce.filterText=Ae+"</"+le}return s.items.push(Ce),s}ie=ie.parent}return pe||a.forEach(function(Re){Re.provideTags().forEach(function(Ue){s.items.push({label:"/"+Ue.name,kind:$.CompletionItemKind.Property,documentation:zr(Ue,void 0,u),filterText:"/"+Ue.name+Y,textEdit:$.TextEdit.replace(B,"/"+Ue.name+Y),insertTextFormat:$.InsertTextFormat.PlainText})})}),s}var L=function(ae,pe){if(i&&i.hideAutoCompleteProposals)return s;if(!o.dataManager.isVoidElement(pe,c)){var xe=e.positionAt(ae);s.items.push({label:"</"+pe+">",kind:$.CompletionItemKind.Property,filterText:"</"+pe+">",textEdit:$.TextEdit.insert(xe,"$0</"+pe+">"),insertTextFormat:$.InsertTextFormat.Snippet})}return s};function K(ae,pe){return f(ae,pe),D(ae,!0,pe),s}function C(){var ae=Object.create(null);return p.attributeNames.forEach(function(pe){ae[pe]=!0}),ae}function T(ae,pe){var xe;pe===void 0&&(pe=h);for(var B=h;B<pe&&d[B]!=="<";)B++;var Y=d.substring(ae,pe),ie=_(ae,B),le="";if(!Lw(d,pe,_e.AfterAttributeName,ne.DelimiterAssign)){var Ce=(xe=i?.attributeDefaultValue)!==null&&xe!==void 0?xe:"doublequotes";Ce==="empty"?le="=$1":Ce==="singlequotes"?le="='$1'":le='="$1"'}var ge=C();return ge[Y]=!1,a.forEach(function(Ae){Ae.provideAttributes(v).forEach(function(Te){if(!ge[Te.name]){ge[Te.name]=!0;var Re=Te.name,Ue;Te.valueSet!=="v"&&le.length&&(Re=Re+le,(Te.valueSet||Te.name==="style")&&(Ue={title:"Suggest",command:"editor.action.triggerSuggest"})),s.items.push({label:Te.name,kind:Te.valueSet==="handler"?$.CompletionItemKind.Function:$.CompletionItemKind.Value,documentation:zr(Te,void 0,u),textEdit:$.TextEdit.replace(ie,Re),insertTextFormat:$.InsertTextFormat.Snippet,command:Ue})}})}),M(ie,ge),s}function M(ae,pe){var xe="data-",B={};B[xe]="".concat(xe,'$1="$2"');function Y(ie){ie.attributeNames.forEach(function(le){Un(le,xe)&&!B[le]&&!pe[le]&&(B[le]=le+'="$1"')}),ie.children.forEach(function(le){return Y(le)})}r&&r.roots.forEach(function(ie){return Y(ie)}),Object.keys(B).forEach(function(ie){return s.items.push({label:ie,kind:$.CompletionItemKind.Value,textEdit:$.TextEdit.replace(ae,B[ie]),insertTextFormat:$.InsertTextFormat.Snippet})})}function oe(ae,pe){pe===void 0&&(pe=h);var xe,B,Y;if(h>ae&&h<=pe&&qD(d[ae])){var ie=ae+1,le=pe;pe>ae&&d[pe-1]===d[ae]&&le--;var Ce=UD(d,h,ie),ge=jD(d,h,le);xe=_(Ce,ge),Y=h>=ie&&h<=le?d.substring(ie,h):"",B=!1}else xe=_(ae,pe),Y=d.substring(ae,h),B=!0;if(l.length>0)for(var Ae=v.toLowerCase(),Te=x.toLowerCase(),Re=_(ae,pe),Ue=0,Je=l;Ue<Je.length;Ue++){var Xe=Je[Ue];Xe.onHtmlAttributeValue&&Xe.onHtmlAttributeValue({document:e,position:n,tag:Ae,attribute:Te,value:Y,range:Re})}return a.forEach(function(st){st.provideValues(v,x).forEach(function(rt){var Ot=B?'"'+rt.name+'"':rt.name;s.items.push({label:rt.name,filterText:Ot,kind:$.CompletionItemKind.Unit,documentation:zr(rt,void 0,u),textEdit:$.TextEdit.replace(xe,Ot),insertTextFormat:$.InsertTextFormat.PlainText})})}),V(),s}function N(ae){return h===w.getTokenEnd()&&(U=w.scan(),U===ae&&w.getTokenOffset()===h)?w.getTokenEnd():h}function W(){for(var ae=0,pe=l;ae<pe.length;ae++){var xe=pe[ae];xe.onHtmlContent&&xe.onHtmlContent({document:e,position:n})}return V()}function V(){for(var ae=h-1,pe=n.character;ae>=0&&Hi(d,ae);)ae--,pe--;if(ae>=0&&d[ae]==="&"){var xe=$.Range.create($.Position.create(n.line,pe-1),n);for(var B in ji)if(Aw(B,";")){var Y="&"+B;s.items.push({label:Y,kind:$.CompletionItemKind.Keyword,documentation:WD("entity.propose","Character entity representing '".concat(ji[B],"'")),textEdit:$.TextEdit.replace(xe,Y),insertTextFormat:$.InsertTextFormat.PlainText})}}return s}function G(ae,pe){var xe=_(ae,pe);s.items.push({label:"!DOCTYPE",kind:$.CompletionItemKind.Property,documentation:"A preamble for an HTML document.",textEdit:$.TextEdit.replace(xe,"!DOCTYPE html>"),insertTextFormat:$.InsertTextFormat.PlainText})}for(var U=w.scan();U!==ne.EOS&&w.getTokenOffset()<=h;){switch(U){case ne.StartTagOpen:if(w.getTokenEnd()===h){var P=N(ne.StartTag);return n.line===0&&G(h,P),K(h,P)}break;case ne.StartTag:if(w.getTokenOffset()<=h&&h<=w.getTokenEnd())return f(w.getTokenOffset(),w.getTokenEnd());v=w.getTokenText();break;case ne.AttributeName:if(w.getTokenOffset()<=h&&h<=w.getTokenEnd())return T(w.getTokenOffset(),w.getTokenEnd());x=w.getTokenText();break;case ne.DelimiterAssign:if(w.getTokenEnd()===h){var P=N(ne.AttributeValue);return oe(h,P)}break;case ne.AttributeValue:if(w.getTokenOffset()<=h&&h<=w.getTokenEnd())return oe(w.getTokenOffset(),w.getTokenEnd());break;case ne.Whitespace:if(h<=w.getTokenEnd())switch(w.getScannerState()){case _e.AfterOpeningStartTag:var R=w.getTokenOffset(),J=N(ne.StartTag);return K(R,J);case _e.WithinTag:case _e.AfterAttributeName:return T(w.getTokenEnd());case _e.BeforeAttributeValue:return oe(w.getTokenEnd());case _e.AfterOpeningEndTag:return D(w.getTokenOffset()-1,!1);case _e.WithinContent:return W()}break;case ne.EndTagOpen:if(h<=w.getTokenEnd()){var Q=w.getTokenOffset()+1,re=N(ne.EndTag);return D(Q,!1,re)}break;case ne.EndTag:if(h<=w.getTokenEnd())for(var de=w.getTokenOffset()-1;de>=0;){var se=d.charAt(de);if(se==="/")return D(de,!1,w.getTokenEnd());if(!Bl(se))break;de--}break;case ne.StartTagClose:if(h<=w.getTokenEnd()&&v)return L(w.getTokenEnd(),v);break;case ne.Content:if(h<=w.getTokenEnd())return W();break;default:if(h<=w.getTokenEnd())return s;break}U=w.scan()}return s},t.prototype.doQuoteComplete=function(e,n,r,i){var o,s=e.offsetAt(n);if(s<=0)return null;var l=(o=i?.attributeDefaultValue)!==null&&o!==void 0?o:"doublequotes";if(l==="empty")return null;var a=e.getText().charAt(s-1);if(a!=="=")return null;var c=l==="doublequotes"?'"$1"':"'$1'",u=r.findNodeBefore(s);if(u&&u.attributes&&u.start<s&&(!u.endTagStart||u.endTagStart>s))for(var d=gt(e.getText(),u.start),h=d.scan();h!==ne.EOS&&d.getTokenEnd()<=s;){if(h===ne.AttributeName&&d.getTokenEnd()===s-1)return h=d.scan(),h!==ne.DelimiterAssign||(h=d.scan(),h===ne.Unknown||h===ne.AttributeValue)?null:c;h=d.scan()}return null},t.prototype.doTagComplete=function(e,n,r){var i=e.offsetAt(n);if(i<=0)return null;var o=e.getText().charAt(i-1);if(o===">"){var s=this.dataManager.getVoidElements(e.languageId),l=r.findNodeBefore(i);if(l&&l.tag&&!this.dataManager.isVoidElement(l.tag,s)&&l.start<i&&(!l.endTagStart||l.endTagStart>i))for(var a=gt(e.getText(),l.start),c=a.scan();c!==ne.EOS&&a.getTokenEnd()<=i;){if(c===ne.StartTagClose&&a.getTokenEnd()===i)return"$0</".concat(l.tag,">");c=a.scan()}}else if(o==="/"){for(var l=r.findNodeBefore(i);l&&l.closed&&!(l.endTagStart&&l.endTagStart>i);)l=l.parent;if(l&&l.tag)for(var a=gt(e.getText(),l.start),c=a.scan();c!==ne.EOS&&a.getTokenEnd()<=i;){if(c===ne.EndTagOpen&&a.getTokenEnd()===i)return"".concat(l.tag,">");c=a.scan()}}return null},t.prototype.convertCompletionList=function(e){return this.doesSupportMarkdown()||e.items.forEach(function(n){n.documentation&&typeof n.documentation!="string"&&(n.documentation={kind:"plaintext",value:n.documentation.value})}),e},t.prototype.doesSupportMarkdown=function(){var e,n,r;if(!Mo(this.supportsMarkdown)){if(!Mo(this.lsOptions.clientCapabilities))return this.supportsMarkdown=!0,this.supportsMarkdown;var i=(r=(n=(e=this.lsOptions.clientCapabilities.textDocument)===null||e===void 0?void 0:e.completion)===null||n===void 0?void 0:n.completionItem)===null||r===void 0?void 0:r.documentationFormat;this.supportsMarkdown=Array.isArray(i)&&i.indexOf($.MarkupKind.Markdown)!==-1}return this.supportsMarkdown},t}()});function BD(t){return t.length<=1?t.replace(/['"]/,""):((t[0]==="'"||t[0]==='"')&&(t=t.slice(1)),(t[t.length-1]==="'"||t[t.length-1]==='"')&&(t=t.slice(0,-1)),t)}var Uw,HD,jw,Hw=ue(()=>{Pr();rn();zp();Ks();Mp();Io();Uw=ei($s()),HD=Uw.loadMessageBundle(),jw=function(){function t(e,n){this.lsOptions=e,this.dataManager=n}return t.prototype.doHover=function(e,n,r,i){var o=this.convertContents.bind(this),s=this.doesSupportMarkdown(),l=e.offsetAt(n),a=r.findNodeAt(l),c=e.getText();if(!a||!a.tag)return null;var u=this.dataManager.getDataProviders().filter(function(W){return W.isApplicable(e.languageId)});function d(W,V,G){for(var U=function(re){var de=null;if(re.provideTags().forEach(function(se){if(se.name.toLowerCase()===W.toLowerCase()){var ae=zr(se,i,s);ae||(ae={kind:s?"markdown":"plaintext",value:""}),de={contents:ae,range:V}}}),de)return de.contents=o(de.contents),{value:de}},P=0,R=u;P<R.length;P++){var J=R[P],Q=U(J);if(typeof Q=="object")return Q.value}return null}function h(W,V,G){for(var U=function(re){var de=null;if(re.provideAttributes(W).forEach(function(se){if(V===se.name&&se.description){var ae=zr(se,i,s);ae?de={contents:ae,range:G}:de=null}}),de)return de.contents=o(de.contents),{value:de}},P=0,R=u;P<R.length;P++){var J=R[P],Q=U(J);if(typeof Q=="object")return Q.value}return null}function p(W,V,G,U){for(var P=function(de){var se=null;if(de.provideValues(W,V).forEach(function(ae){if(G===ae.name&&ae.description){var pe=zr(ae,i,s);pe?se={contents:pe,range:U}:se=null}}),se)return se.contents=o(se.contents),{value:se}},R=0,J=u;R<J.length;R++){var Q=J[R],re=P(Q);if(typeof re=="object")return re.value}return null}function w(W,V){var G=_(W);for(var U in ji){var P=null,R="&"+U;if(G===R){var J=ji[U].charCodeAt(0).toString(16).toUpperCase(),Q="U+";if(J.length<4)for(var re=4-J.length,de=0;de<re;)Q+="0",de+=1;Q+=J;var se=HD("entity.propose","Character entity representing '".concat(ji[U],"', unicode equivalent '").concat(Q,"'"));se?P={contents:se,range:V}:P=null}if(P)return P.contents=o(P.contents),P}return null}function v(W,V){for(var G=gt(e.getText(),V),U=G.scan();U!==ne.EOS&&(G.getTokenEnd()<l||G.getTokenEnd()===l&&U!==W);)U=G.scan();return U===W&&l<=G.getTokenEnd()?{start:e.positionAt(G.getTokenOffset()),end:e.positionAt(G.getTokenEnd())}:null}function x(){for(var W=l-1,V=n.character;W>=0&&Hi(c,W);)W--,V--;for(var G=W+1,U=V;Hi(c,G);)G++,U++;if(W>=0&&c[W]==="&"){var P=null;return c[G]===";"?P=$.Range.create($.Position.create(n.line,V),$.Position.create(n.line,U+1)):P=$.Range.create($.Position.create(n.line,V),$.Position.create(n.line,U)),P}return null}function _(W){for(var V=l-1,G="&";V>=0&&Hi(W,V);)V--;for(V=V+1;Hi(W,V);)G+=W[V],V+=1;return G+=";",G}if(a.endTagStart&&l>=a.endTagStart){var f=v(ne.EndTag,a.endTagStart);return f?d(a.tag,f,!1):null}var g=v(ne.StartTag,a.start);if(g)return d(a.tag,g,!0);var D=v(ne.AttributeName,a.start);if(D){var L=a.tag,K=e.getText(D);return h(L,K,D)}var C=x();if(C)return w(c,C);function T(W,V){for(var G=gt(e.getText(),W),U=G.scan(),P=void 0;U!==ne.EOS&&G.getTokenEnd()<=V;)U=G.scan(),U===ne.AttributeName&&(P=G.getTokenText());return P}var M=v(ne.AttributeValue,a.start);if(M){var L=a.tag,oe=BD(e.getText(M)),N=T(a.start,e.offsetAt(M.start));if(N)return p(L,N,oe,M)}return null},t.prototype.convertContents=function(e){if(!this.doesSupportMarkdown()){if(typeof e=="string")return e;if("kind"in e)return{kind:"plaintext",value:e.value};if(Array.isArray(e))e.map(function(n){return typeof n=="string"?n:n.value});else return e.value}return e},t.prototype.doesSupportMarkdown=function(){var e,n,r;if(!Mo(this.supportsMarkdown)){if(!Mo(this.lsOptions.clientCapabilities))return this.supportsMarkdown=!0,this.supportsMarkdown;var i=(r=(n=(e=this.lsOptions.clientCapabilities)===null||e===void 0?void 0:e.textDocument)===null||n===void 0?void 0:n.hover)===null||r===void 0?void 0:r.contentFormat;this.supportsMarkdown=Array.isArray(i)&&i.indexOf($.MarkupKind.Markdown)!==-1}return this.supportsMarkdown},t}()});function Bw(t,e){return t}var $w=ue(()=>{});var Vw,Kw,Gw=ue(()=>{(function(){"use strict";var t=[,,function(i){function o(a){this.__parent=a,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=[]}o.prototype.clone_empty=function(){var a=new o(this.__parent);return a.set_indent(this.__indent_count,this.__alignment_count),a},o.prototype.item=function(a){return a<0?this.__items[this.__items.length+a]:this.__items[a]},o.prototype.has_match=function(a){for(var c=this.__items.length-1;c>=0;c--)if(this.__items[c].match(a))return!0;return!1},o.prototype.set_indent=function(a,c){this.is_empty()&&(this.__indent_count=a||0,this.__alignment_count=c||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},o.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)},o.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},o.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var a=this.__parent.current_line;return a.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),a.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),a.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count,a.__items[0]===" "&&(a.__items.splice(0,1),a.__character_count-=1),!0}return!1},o.prototype.is_empty=function(){return this.__items.length===0},o.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},o.prototype.push=function(a){this.__items.push(a);var c=a.lastIndexOf(`
|
|
45
|
+
`)),r.value!=="")return r}var Hl,Ks=ue(()=>{Iw();Hl=function(){function t(e,n){var r=this;this.id=e,this._tags=[],this._tagMap={},this._valueSetMap={},this._tags=n.tags||[],this._globalAttributes=n.globalAttributes||[],this._tags.forEach(function(i){r._tagMap[i.name.toLowerCase()]=i}),n.valueSets&&n.valueSets.forEach(function(i){r._valueSetMap[i.name]=i.values})}return t.prototype.isApplicable=function(){return!0},t.prototype.getId=function(){return this.id},t.prototype.provideTags=function(){return this._tags},t.prototype.provideAttributes=function(e){var n=[],r=function(o){n.push(o)},i=this._tagMap[e.toLowerCase()];return i&&i.attributes.forEach(r),this._globalAttributes.forEach(r),n},t.prototype.provideValues=function(e,n){var r=this,i=[];n=n.toLowerCase();var o=function(l){l.forEach(function(a){a.name.toLowerCase()===n&&(a.values&&a.values.forEach(function(c){i.push(c)}),a.valueSet&&r._valueSetMap[a.valueSet]&&r._valueSetMap[a.valueSet].forEach(function(c){i.push(c)}))})},s=this._tagMap[e.toLowerCase()];return s&&o(s.attributes),o(this._globalAttributes),i},t}()});function AD(t){return Un(t,"'")||Un(t,'"')?t.slice(1,-1):t}function RD(t){return!(Un(t,"http")||Un(t,"https")||Un(t,"//"))}function ID(t,e){if(e==="src"||e==="href")return!0;var n=OD[t];return n?typeof n=="string"?n===e:n.indexOf(e)!==-1:!1}function MD(t,e,n){var r,i=t.lastIndexOf("/");if(i===-1)r=zD(n,1,-1);else{var o=e.slice(i+1),s=Gs(n.end,-1-o.length),l=o.indexOf(" "),a=void 0;l!==-1?a=Gs(s,l):a=Gs(n.end,-1),r=$.Range.create(s,a)}return r}function PD(t,e,n){return e?(t=t+"/",{label:t,kind:$.CompletionItemKind.Folder,textEdit:$.TextEdit.replace(n,t),command:{title:"Suggest",command:"editor.action.triggerSuggest"}}):{label:t,kind:$.CompletionItemKind.File,textEdit:$.TextEdit.replace(n,t)}}function Gs(t,e){return $.Position.create(t.line,t.character+e)}function zD(t,e,n){var r=Gs(t.start,e),i=Gs(t.end,n);return $.Range.create(r,i)}var Mw,Pw,zw,FD,OD,Ow=ue(()=>{rn();Io();Mw=function(t,e,n,r){function i(o){return o instanceof n?o:new n(function(s){s(o)})}return new(n||(n=Promise))(function(o,s){function l(u){try{c(r.next(u))}catch(d){s(d)}}function a(u){try{c(r.throw(u))}catch(d){s(d)}}function c(u){u.done?o(u.value):i(u.value).then(l,a)}c((r=r.apply(t,e||[])).next())})},Pw=function(t,e){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},r,i,o,s;return s={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function l(c){return function(u){return a([c,u])}}function a(c){if(r)throw new TypeError("Generator is already executing.");for(;n;)try{if(r=1,i&&(o=c[0]&2?i.return:c[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,c[1])).done)return o;switch(i=0,o&&(c=[c[0]&2,o.value]),c[0]){case 0:case 1:o=c;break;case 4:return n.label++,{value:c[1],done:!1};case 5:n.label++,i=c[1],c=[0];continue;case 7:c=n.ops.pop(),n.trys.pop();continue;default:if(o=n.trys,!(o=o.length>0&&o[o.length-1])&&(c[0]===6||c[0]===2)){n=0;continue}if(c[0]===3&&(!o||c[1]>o[0]&&c[1]<o[3])){n.label=c[1];break}if(c[0]===6&&n.label<o[1]){n.label=o[1],o=c;break}if(o&&n.label<o[2]){n.label=o[2],n.ops.push(c);break}o[2]&&n.ops.pop(),n.trys.pop();continue}c=e.call(t,n)}catch(u){c=[6,u],i=0}finally{r=o=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}},zw=function(){function t(e){this.readDirectory=e,this.atributeCompletions=[]}return t.prototype.onHtmlAttributeValue=function(e){ID(e.tag,e.attribute)&&this.atributeCompletions.push(e)},t.prototype.computeCompletions=function(e,n){return Mw(this,void 0,void 0,function(){var r,i,o,s,l,a,c,u,d,h;return Pw(this,function(p){switch(p.label){case 0:r={items:[],isIncomplete:!1},i=0,o=this.atributeCompletions,p.label=1;case 1:return i<o.length?(s=o[i],l=AD(e.getText(s.range)),RD(l)?l==="."||l===".."?(r.isIncomplete=!0,[3,4]):[3,2]:[3,4]):[3,5];case 2:return a=MD(s.value,l,s.range),[4,this.providePathSuggestions(s.value,a,e,n)];case 3:for(c=p.sent(),u=0,d=c;u<d.length;u++)h=d[u],r.items.push(h);p.label=4;case 4:return i++,[3,1];case 5:return[2,r]}})})},t.prototype.providePathSuggestions=function(e,n,r,i){return Mw(this,void 0,void 0,function(){var o,s,l,a,c,u,d,h,p,w;return Pw(this,function(v){switch(v.label){case 0:if(o=e.substring(0,e.lastIndexOf("/")+1),s=i.resolveReference(o||".",r.uri),!s)return[3,4];v.label=1;case 1:return v.trys.push([1,3,,4]),l=[],[4,this.readDirectory(s)];case 2:for(a=v.sent(),c=0,u=a;c<u.length;c++)d=u[c],h=d[0],p=d[1],h.charCodeAt(0)!==FD&&l.push(PD(h,p===Vs.Directory,n));return[2,l];case 3:return w=v.sent(),[3,4];case 4:return[2,[]]}})})},t}(),FD=".".charCodeAt(0);OD={a:"href",area:"href",body:"background",del:"cite",form:"action",frame:["src","longdesc"],img:["src","longdesc"],ins:"cite",link:"href",object:"data",q:"cite",script:"src",audio:"src",button:"formaction",command:"icon",embed:"src",html:"manifest",input:["src","formaction"],source:"src",track:"src",video:["src","poster"]}});function qD(t){return/^["']*$/.test(t)}function Bl(t){return/^\s*$/.test(t)}function Lw(t,e,n,r){for(var i=gt(t,e,n),o=i.scan();o===ne.Whitespace;)o=i.scan();return o===r}function UD(t,e,n){for(;e>n&&!Bl(t[e-1]);)e--;return e}function jD(t,e,n){for(;e<n&&!Bl(t[e]);)e++;return e}var Nw,LD,ND,WD,Ww,qw=ue(()=>{Pr();rn();Mp();Nw=ti($s());Io();zp();Ks();Ow();LD=function(t,e,n,r){function i(o){return o instanceof n?o:new n(function(s){s(o)})}return new(n||(n=Promise))(function(o,s){function l(u){try{c(r.next(u))}catch(d){s(d)}}function a(u){try{c(r.throw(u))}catch(d){s(d)}}function c(u){u.done?o(u.value):i(u.value).then(l,a)}c((r=r.apply(t,e||[])).next())})},ND=function(t,e){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},r,i,o,s;return s={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function l(c){return function(u){return a([c,u])}}function a(c){if(r)throw new TypeError("Generator is already executing.");for(;n;)try{if(r=1,i&&(o=c[0]&2?i.return:c[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,c[1])).done)return o;switch(i=0,o&&(c=[c[0]&2,o.value]),c[0]){case 0:case 1:o=c;break;case 4:return n.label++,{value:c[1],done:!1};case 5:n.label++,i=c[1],c=[0];continue;case 7:c=n.ops.pop(),n.trys.pop();continue;default:if(o=n.trys,!(o=o.length>0&&o[o.length-1])&&(c[0]===6||c[0]===2)){n=0;continue}if(c[0]===3&&(!o||c[1]>o[0]&&c[1]<o[3])){n.label=c[1];break}if(c[0]===6&&n.label<o[1]){n.label=o[1],o=c;break}if(o&&n.label<o[2]){n.label=o[2],n.ops.push(c);break}o[2]&&n.ops.pop(),n.trys.pop();continue}c=e.call(t,n)}catch(u){c=[6,u],i=0}finally{r=o=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}},WD=Nw.loadMessageBundle(),Ww=function(){function t(e,n){this.lsOptions=e,this.dataManager=n,this.completionParticipants=[]}return t.prototype.setCompletionParticipants=function(e){this.completionParticipants=e||[]},t.prototype.doComplete2=function(e,n,r,i,o){return LD(this,void 0,void 0,function(){var s,l,a,c;return ND(this,function(u){switch(u.label){case 0:if(!this.lsOptions.fileSystemProvider||!this.lsOptions.fileSystemProvider.readDirectory)return[2,this.doComplete(e,n,r,o)];s=new zw(this.lsOptions.fileSystemProvider.readDirectory),l=this.completionParticipants,this.completionParticipants=[s].concat(l),a=this.doComplete(e,n,r,o),u.label=1;case 1:return u.trys.push([1,,3,4]),[4,s.computeCompletions(e,i)];case 2:return c=u.sent(),[2,{isIncomplete:a.isIncomplete||c.isIncomplete,items:c.items.concat(a.items)}];case 3:return this.completionParticipants=l,[7];case 4:return[2]}})})},t.prototype.doComplete=function(e,n,r,i){var o=this._doComplete(e,n,r,i);return this.convertCompletionList(o)},t.prototype._doComplete=function(e,n,r,i){var o=this,s={isIncomplete:!1,items:[]},l=this.completionParticipants,a=this.dataManager.getDataProviders().filter(function(ae){return ae.isApplicable(e.languageId)&&(!i||i[ae.getId()]!==!1)}),c=this.dataManager.getVoidElements(a),u=this.doesSupportMarkdown(),d=e.getText(),h=e.offsetAt(n),p=r.findNodeBefore(h);if(!p)return s;var w=gt(d,p.start),v="",x;function _(ae,pe){return pe===void 0&&(pe=h),ae>h&&(ae=h),{start:e.positionAt(ae),end:e.positionAt(pe)}}function f(ae,pe){var xe=_(ae,pe);return a.forEach(function(B){B.provideTags().forEach(function(Y){s.items.push({label:Y.name,kind:$.CompletionItemKind.Property,documentation:zr(Y,void 0,u),textEdit:$.TextEdit.replace(xe,Y.name),insertTextFormat:$.InsertTextFormat.PlainText})})}),s}function g(ae){for(var pe=ae;pe>0;){var xe=d.charAt(pe-1);if(`
|
|
46
|
+
\r`.indexOf(xe)>=0)return d.substring(pe,ae);if(!Bl(xe))return null;pe--}return d.substring(0,ae)}function D(ae,pe,xe){xe===void 0&&(xe=h);var B=_(ae,xe),Y=Lw(d,xe,_e.WithinEndTag,ne.EndTagClose)?"":">",ie=p;for(pe&&(ie=ie.parent);ie;){var le=ie.tag;if(le&&(!ie.closed||ie.endTagStart&&ie.endTagStart>h)){var Ce={label:"/"+le,kind:$.CompletionItemKind.Property,filterText:"/"+le,textEdit:$.TextEdit.replace(B,"/"+le+Y),insertTextFormat:$.InsertTextFormat.PlainText},ge=g(ie.start),Ae=g(ae-1);if(ge!==null&&Ae!==null&&ge!==Ae){var Te=ge+"</"+le+Y;Ce.textEdit=$.TextEdit.replace(_(ae-1-Ae.length),Te),Ce.filterText=Ae+"</"+le}return s.items.push(Ce),s}ie=ie.parent}return pe||a.forEach(function(Re){Re.provideTags().forEach(function(Ue){s.items.push({label:"/"+Ue.name,kind:$.CompletionItemKind.Property,documentation:zr(Ue,void 0,u),filterText:"/"+Ue.name+Y,textEdit:$.TextEdit.replace(B,"/"+Ue.name+Y),insertTextFormat:$.InsertTextFormat.PlainText})})}),s}var L=function(ae,pe){if(i&&i.hideAutoCompleteProposals)return s;if(!o.dataManager.isVoidElement(pe,c)){var xe=e.positionAt(ae);s.items.push({label:"</"+pe+">",kind:$.CompletionItemKind.Property,filterText:"</"+pe+">",textEdit:$.TextEdit.insert(xe,"$0</"+pe+">"),insertTextFormat:$.InsertTextFormat.Snippet})}return s};function K(ae,pe){return f(ae,pe),D(ae,!0,pe),s}function C(){var ae=Object.create(null);return p.attributeNames.forEach(function(pe){ae[pe]=!0}),ae}function T(ae,pe){var xe;pe===void 0&&(pe=h);for(var B=h;B<pe&&d[B]!=="<";)B++;var Y=d.substring(ae,pe),ie=_(ae,B),le="";if(!Lw(d,pe,_e.AfterAttributeName,ne.DelimiterAssign)){var Ce=(xe=i?.attributeDefaultValue)!==null&&xe!==void 0?xe:"doublequotes";Ce==="empty"?le="=$1":Ce==="singlequotes"?le="='$1'":le='="$1"'}var ge=C();return ge[Y]=!1,a.forEach(function(Ae){Ae.provideAttributes(v).forEach(function(Te){if(!ge[Te.name]){ge[Te.name]=!0;var Re=Te.name,Ue;Te.valueSet!=="v"&&le.length&&(Re=Re+le,(Te.valueSet||Te.name==="style")&&(Ue={title:"Suggest",command:"editor.action.triggerSuggest"})),s.items.push({label:Te.name,kind:Te.valueSet==="handler"?$.CompletionItemKind.Function:$.CompletionItemKind.Value,documentation:zr(Te,void 0,u),textEdit:$.TextEdit.replace(ie,Re),insertTextFormat:$.InsertTextFormat.Snippet,command:Ue})}})}),M(ie,ge),s}function M(ae,pe){var xe="data-",B={};B[xe]="".concat(xe,'$1="$2"');function Y(ie){ie.attributeNames.forEach(function(le){Un(le,xe)&&!B[le]&&!pe[le]&&(B[le]=le+'="$1"')}),ie.children.forEach(function(le){return Y(le)})}r&&r.roots.forEach(function(ie){return Y(ie)}),Object.keys(B).forEach(function(ie){return s.items.push({label:ie,kind:$.CompletionItemKind.Value,textEdit:$.TextEdit.replace(ae,B[ie]),insertTextFormat:$.InsertTextFormat.Snippet})})}function oe(ae,pe){pe===void 0&&(pe=h);var xe,B,Y;if(h>ae&&h<=pe&&qD(d[ae])){var ie=ae+1,le=pe;pe>ae&&d[pe-1]===d[ae]&&le--;var Ce=UD(d,h,ie),ge=jD(d,h,le);xe=_(Ce,ge),Y=h>=ie&&h<=le?d.substring(ie,h):"",B=!1}else xe=_(ae,pe),Y=d.substring(ae,h),B=!0;if(l.length>0)for(var Ae=v.toLowerCase(),Te=x.toLowerCase(),Re=_(ae,pe),Ue=0,Je=l;Ue<Je.length;Ue++){var Xe=Je[Ue];Xe.onHtmlAttributeValue&&Xe.onHtmlAttributeValue({document:e,position:n,tag:Ae,attribute:Te,value:Y,range:Re})}return a.forEach(function(st){st.provideValues(v,x).forEach(function(rt){var Ot=B?'"'+rt.name+'"':rt.name;s.items.push({label:rt.name,filterText:Ot,kind:$.CompletionItemKind.Unit,documentation:zr(rt,void 0,u),textEdit:$.TextEdit.replace(xe,Ot),insertTextFormat:$.InsertTextFormat.PlainText})})}),V(),s}function N(ae){return h===w.getTokenEnd()&&(U=w.scan(),U===ae&&w.getTokenOffset()===h)?w.getTokenEnd():h}function W(){for(var ae=0,pe=l;ae<pe.length;ae++){var xe=pe[ae];xe.onHtmlContent&&xe.onHtmlContent({document:e,position:n})}return V()}function V(){for(var ae=h-1,pe=n.character;ae>=0&&Hi(d,ae);)ae--,pe--;if(ae>=0&&d[ae]==="&"){var xe=$.Range.create($.Position.create(n.line,pe-1),n);for(var B in ji)if(Aw(B,";")){var Y="&"+B;s.items.push({label:Y,kind:$.CompletionItemKind.Keyword,documentation:WD("entity.propose","Character entity representing '".concat(ji[B],"'")),textEdit:$.TextEdit.replace(xe,Y),insertTextFormat:$.InsertTextFormat.PlainText})}}return s}function G(ae,pe){var xe=_(ae,pe);s.items.push({label:"!DOCTYPE",kind:$.CompletionItemKind.Property,documentation:"A preamble for an HTML document.",textEdit:$.TextEdit.replace(xe,"!DOCTYPE html>"),insertTextFormat:$.InsertTextFormat.PlainText})}for(var U=w.scan();U!==ne.EOS&&w.getTokenOffset()<=h;){switch(U){case ne.StartTagOpen:if(w.getTokenEnd()===h){var P=N(ne.StartTag);return n.line===0&&G(h,P),K(h,P)}break;case ne.StartTag:if(w.getTokenOffset()<=h&&h<=w.getTokenEnd())return f(w.getTokenOffset(),w.getTokenEnd());v=w.getTokenText();break;case ne.AttributeName:if(w.getTokenOffset()<=h&&h<=w.getTokenEnd())return T(w.getTokenOffset(),w.getTokenEnd());x=w.getTokenText();break;case ne.DelimiterAssign:if(w.getTokenEnd()===h){var P=N(ne.AttributeValue);return oe(h,P)}break;case ne.AttributeValue:if(w.getTokenOffset()<=h&&h<=w.getTokenEnd())return oe(w.getTokenOffset(),w.getTokenEnd());break;case ne.Whitespace:if(h<=w.getTokenEnd())switch(w.getScannerState()){case _e.AfterOpeningStartTag:var R=w.getTokenOffset(),J=N(ne.StartTag);return K(R,J);case _e.WithinTag:case _e.AfterAttributeName:return T(w.getTokenEnd());case _e.BeforeAttributeValue:return oe(w.getTokenEnd());case _e.AfterOpeningEndTag:return D(w.getTokenOffset()-1,!1);case _e.WithinContent:return W()}break;case ne.EndTagOpen:if(h<=w.getTokenEnd()){var Q=w.getTokenOffset()+1,re=N(ne.EndTag);return D(Q,!1,re)}break;case ne.EndTag:if(h<=w.getTokenEnd())for(var de=w.getTokenOffset()-1;de>=0;){var se=d.charAt(de);if(se==="/")return D(de,!1,w.getTokenEnd());if(!Bl(se))break;de--}break;case ne.StartTagClose:if(h<=w.getTokenEnd()&&v)return L(w.getTokenEnd(),v);break;case ne.Content:if(h<=w.getTokenEnd())return W();break;default:if(h<=w.getTokenEnd())return s;break}U=w.scan()}return s},t.prototype.doQuoteComplete=function(e,n,r,i){var o,s=e.offsetAt(n);if(s<=0)return null;var l=(o=i?.attributeDefaultValue)!==null&&o!==void 0?o:"doublequotes";if(l==="empty")return null;var a=e.getText().charAt(s-1);if(a!=="=")return null;var c=l==="doublequotes"?'"$1"':"'$1'",u=r.findNodeBefore(s);if(u&&u.attributes&&u.start<s&&(!u.endTagStart||u.endTagStart>s))for(var d=gt(e.getText(),u.start),h=d.scan();h!==ne.EOS&&d.getTokenEnd()<=s;){if(h===ne.AttributeName&&d.getTokenEnd()===s-1)return h=d.scan(),h!==ne.DelimiterAssign||(h=d.scan(),h===ne.Unknown||h===ne.AttributeValue)?null:c;h=d.scan()}return null},t.prototype.doTagComplete=function(e,n,r){var i=e.offsetAt(n);if(i<=0)return null;var o=e.getText().charAt(i-1);if(o===">"){var s=this.dataManager.getVoidElements(e.languageId),l=r.findNodeBefore(i);if(l&&l.tag&&!this.dataManager.isVoidElement(l.tag,s)&&l.start<i&&(!l.endTagStart||l.endTagStart>i))for(var a=gt(e.getText(),l.start),c=a.scan();c!==ne.EOS&&a.getTokenEnd()<=i;){if(c===ne.StartTagClose&&a.getTokenEnd()===i)return"$0</".concat(l.tag,">");c=a.scan()}}else if(o==="/"){for(var l=r.findNodeBefore(i);l&&l.closed&&!(l.endTagStart&&l.endTagStart>i);)l=l.parent;if(l&&l.tag)for(var a=gt(e.getText(),l.start),c=a.scan();c!==ne.EOS&&a.getTokenEnd()<=i;){if(c===ne.EndTagOpen&&a.getTokenEnd()===i)return"".concat(l.tag,">");c=a.scan()}}return null},t.prototype.convertCompletionList=function(e){return this.doesSupportMarkdown()||e.items.forEach(function(n){n.documentation&&typeof n.documentation!="string"&&(n.documentation={kind:"plaintext",value:n.documentation.value})}),e},t.prototype.doesSupportMarkdown=function(){var e,n,r;if(!Mo(this.supportsMarkdown)){if(!Mo(this.lsOptions.clientCapabilities))return this.supportsMarkdown=!0,this.supportsMarkdown;var i=(r=(n=(e=this.lsOptions.clientCapabilities.textDocument)===null||e===void 0?void 0:e.completion)===null||n===void 0?void 0:n.completionItem)===null||r===void 0?void 0:r.documentationFormat;this.supportsMarkdown=Array.isArray(i)&&i.indexOf($.MarkupKind.Markdown)!==-1}return this.supportsMarkdown},t}()});function BD(t){return t.length<=1?t.replace(/['"]/,""):((t[0]==="'"||t[0]==='"')&&(t=t.slice(1)),(t[t.length-1]==="'"||t[t.length-1]==='"')&&(t=t.slice(0,-1)),t)}var Uw,HD,jw,Hw=ue(()=>{Pr();rn();zp();Ks();Mp();Io();Uw=ti($s()),HD=Uw.loadMessageBundle(),jw=function(){function t(e,n){this.lsOptions=e,this.dataManager=n}return t.prototype.doHover=function(e,n,r,i){var o=this.convertContents.bind(this),s=this.doesSupportMarkdown(),l=e.offsetAt(n),a=r.findNodeAt(l),c=e.getText();if(!a||!a.tag)return null;var u=this.dataManager.getDataProviders().filter(function(W){return W.isApplicable(e.languageId)});function d(W,V,G){for(var U=function(re){var de=null;if(re.provideTags().forEach(function(se){if(se.name.toLowerCase()===W.toLowerCase()){var ae=zr(se,i,s);ae||(ae={kind:s?"markdown":"plaintext",value:""}),de={contents:ae,range:V}}}),de)return de.contents=o(de.contents),{value:de}},P=0,R=u;P<R.length;P++){var J=R[P],Q=U(J);if(typeof Q=="object")return Q.value}return null}function h(W,V,G){for(var U=function(re){var de=null;if(re.provideAttributes(W).forEach(function(se){if(V===se.name&&se.description){var ae=zr(se,i,s);ae?de={contents:ae,range:G}:de=null}}),de)return de.contents=o(de.contents),{value:de}},P=0,R=u;P<R.length;P++){var J=R[P],Q=U(J);if(typeof Q=="object")return Q.value}return null}function p(W,V,G,U){for(var P=function(de){var se=null;if(de.provideValues(W,V).forEach(function(ae){if(G===ae.name&&ae.description){var pe=zr(ae,i,s);pe?se={contents:pe,range:U}:se=null}}),se)return se.contents=o(se.contents),{value:se}},R=0,J=u;R<J.length;R++){var Q=J[R],re=P(Q);if(typeof re=="object")return re.value}return null}function w(W,V){var G=_(W);for(var U in ji){var P=null,R="&"+U;if(G===R){var J=ji[U].charCodeAt(0).toString(16).toUpperCase(),Q="U+";if(J.length<4)for(var re=4-J.length,de=0;de<re;)Q+="0",de+=1;Q+=J;var se=HD("entity.propose","Character entity representing '".concat(ji[U],"', unicode equivalent '").concat(Q,"'"));se?P={contents:se,range:V}:P=null}if(P)return P.contents=o(P.contents),P}return null}function v(W,V){for(var G=gt(e.getText(),V),U=G.scan();U!==ne.EOS&&(G.getTokenEnd()<l||G.getTokenEnd()===l&&U!==W);)U=G.scan();return U===W&&l<=G.getTokenEnd()?{start:e.positionAt(G.getTokenOffset()),end:e.positionAt(G.getTokenEnd())}:null}function x(){for(var W=l-1,V=n.character;W>=0&&Hi(c,W);)W--,V--;for(var G=W+1,U=V;Hi(c,G);)G++,U++;if(W>=0&&c[W]==="&"){var P=null;return c[G]===";"?P=$.Range.create($.Position.create(n.line,V),$.Position.create(n.line,U+1)):P=$.Range.create($.Position.create(n.line,V),$.Position.create(n.line,U)),P}return null}function _(W){for(var V=l-1,G="&";V>=0&&Hi(W,V);)V--;for(V=V+1;Hi(W,V);)G+=W[V],V+=1;return G+=";",G}if(a.endTagStart&&l>=a.endTagStart){var f=v(ne.EndTag,a.endTagStart);return f?d(a.tag,f,!1):null}var g=v(ne.StartTag,a.start);if(g)return d(a.tag,g,!0);var D=v(ne.AttributeName,a.start);if(D){var L=a.tag,K=e.getText(D);return h(L,K,D)}var C=x();if(C)return w(c,C);function T(W,V){for(var G=gt(e.getText(),W),U=G.scan(),P=void 0;U!==ne.EOS&&G.getTokenEnd()<=V;)U=G.scan(),U===ne.AttributeName&&(P=G.getTokenText());return P}var M=v(ne.AttributeValue,a.start);if(M){var L=a.tag,oe=BD(e.getText(M)),N=T(a.start,e.offsetAt(M.start));if(N)return p(L,N,oe,M)}return null},t.prototype.convertContents=function(e){if(!this.doesSupportMarkdown()){if(typeof e=="string")return e;if("kind"in e)return{kind:"plaintext",value:e.value};if(Array.isArray(e))e.map(function(n){return typeof n=="string"?n:n.value});else return e.value}return e},t.prototype.doesSupportMarkdown=function(){var e,n,r;if(!Mo(this.supportsMarkdown)){if(!Mo(this.lsOptions.clientCapabilities))return this.supportsMarkdown=!0,this.supportsMarkdown;var i=(r=(n=(e=this.lsOptions.clientCapabilities)===null||e===void 0?void 0:e.textDocument)===null||n===void 0?void 0:n.hover)===null||r===void 0?void 0:r.contentFormat;this.supportsMarkdown=Array.isArray(i)&&i.indexOf($.MarkupKind.Markdown)!==-1}return this.supportsMarkdown},t}()});function Bw(t,e){return t}var $w=ue(()=>{});var Vw,Kw,Gw=ue(()=>{(function(){"use strict";var t=[,,function(i){function o(a){this.__parent=a,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=[]}o.prototype.clone_empty=function(){var a=new o(this.__parent);return a.set_indent(this.__indent_count,this.__alignment_count),a},o.prototype.item=function(a){return a<0?this.__items[this.__items.length+a]:this.__items[a]},o.prototype.has_match=function(a){for(var c=this.__items.length-1;c>=0;c--)if(this.__items[c].match(a))return!0;return!1},o.prototype.set_indent=function(a,c){this.is_empty()&&(this.__indent_count=a||0,this.__alignment_count=c||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},o.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)},o.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},o.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var a=this.__parent.current_line;return a.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),a.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),a.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count,a.__items[0]===" "&&(a.__items.splice(0,1),a.__character_count-=1),!0}return!1},o.prototype.is_empty=function(){return this.__items.length===0},o.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},o.prototype.push=function(a){this.__items.push(a);var c=a.lastIndexOf(`
|
|
47
47
|
`);c!==-1?this.__character_count=a.length-c:this.__character_count+=a.length},o.prototype.pop=function(){var a=null;return this.is_empty()||(a=this.__items.pop(),this.__character_count-=a.length),a},o.prototype._remove_indent=function(){this.__indent_count>0&&(this.__indent_count-=1,this.__character_count-=this.__parent.indent_size)},o.prototype._remove_wrap_indent=function(){this.__wrap_point_indent_count>0&&(this.__wrap_point_indent_count-=1)},o.prototype.trim=function(){for(;this.last()===" ";)this.__items.pop(),this.__character_count-=1},o.prototype.toString=function(){var a="";return this.is_empty()?this.__parent.indent_empty_lines&&(a=this.__parent.get_indent_string(this.__indent_count)):(a=this.__parent.get_indent_string(this.__indent_count,this.__alignment_count),a+=this.__items.join("")),a};function s(a,c){this.__cache=[""],this.__indent_size=a.indent_size,this.__indent_string=a.indent_char,a.indent_with_tabs||(this.__indent_string=new Array(a.indent_size+1).join(a.indent_char)),c=c||"",a.indent_level>0&&(c=new Array(a.indent_level+1).join(this.__indent_string)),this.__base_string=c,this.__base_string_length=c.length}s.prototype.get_indent_size=function(a,c){var u=this.__base_string_length;return c=c||0,a<0&&(u=0),u+=a*this.__indent_size,u+=c,u},s.prototype.get_indent_string=function(a,c){var u=this.__base_string;return c=c||0,a<0&&(a=0,u=""),c+=a*this.__indent_size,this.__ensure_cache(c),u+=this.__cache[c],u},s.prototype.__ensure_cache=function(a){for(;a>=this.__cache.length;)this.__add_column()},s.prototype.__add_column=function(){var a=this.__cache.length,c=0,u="";this.__indent_size&&a>=this.__indent_size&&(c=Math.floor(a/this.__indent_size),a-=c*this.__indent_size,u=new Array(c+1).join(this.__indent_string)),a&&(u+=new Array(a+1).join(" ")),this.__cache.push(u)};function l(a,c){this.__indent_cache=new s(a,c),this.raw=!1,this._end_with_newline=a.end_with_newline,this.indent_size=a.indent_size,this.wrap_line_length=a.wrap_line_length,this.indent_empty_lines=a.indent_empty_lines,this.__lines=[],this.previous_line=null,this.current_line=null,this.next_line=new o(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(a,c){return this.__indent_cache.get_indent_string(a,c)},l.prototype.get_indent_size=function(a,c){return this.__indent_cache.get_indent_size(a,c)},l.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},l.prototype.add_new_line=function(a){return this.is_empty()||!a&&this.just_added_newline()?!1:(this.raw||this.__add_outputline(),!0)},l.prototype.get_code=function(a){this.trim(!0);var c=this.current_line.pop();c&&(c[c.length-1]===`
|
|
48
48
|
`&&(c=c.replace(/\n+$/g,"")),this.current_line.push(c)),this._end_with_newline&&this.__add_outputline();var u=this.__lines.join(`
|
|
49
49
|
`);return a!==`
|
|
@@ -80,7 +80,7 @@ You passed in: '`+this.raw_options[a]+"'");return d},o.prototype._is_valid_selec
|
|
|
80
80
|
`,indent_scripts:ln(n,"indentScripts","normal"),templating:VD(n,"all"),unformatted_content_delimiter:ln(n,"unformattedContentDelimiter","")},w=Xw($D(r),p);if(o>0){var v=n.insertSpaces?Pp(" ",s*o):Pp(" ",o);w=w.split(`
|
|
81
81
|
`).join(`
|
|
82
82
|
`+v),e.start.character===0&&(w=v+w)}return[{range:e,newText:w}]}function $D(t){return t.replace(/^\s+/,"")}function ln(t,e,n){if(t&&t.hasOwnProperty(e)){var r=t[e];if(r!==null)return r}return n}function Op(t,e,n){var r=ln(t,e,null);return typeof r=="string"?r.length>0?r.split(",").map(function(i){return i.trim().toLowerCase()}):[]:n}function VD(t,e){var n=ln(t,"templating",e);return n===!0?["auto"]:["none"]}function KD(t,e,n){for(var r=e,i=0,o=n.tabSize||4;r<t.length;){var s=t.charAt(r);if(s===" ")i++;else if(s===" ")i+=o;else break;r++}return Math.floor(i/o)}function Yw(t,e){return`\r
|
|
83
|
-
`.indexOf(t.charAt(e))!==-1}function Zw(t,e){return" ".indexOf(t.charAt(e))!==-1}var ty=ue(()=>{rn();Qw();Io()});function Lp(t){var e=t[0],n=t[t.length-1];return e===n&&(e==="'"||e==='"')&&(t=t.substr(1,t.length-2)),t}function GD(t,e){return!t.length||e==="handlebars"&&/{{|}}/.test(t)?!1:/\b(w[\w\d+.-]*:\/\/)?[^\s()<>]+(?:\([\w\d]+\)|([^[:punct:]\s]|\/?))/.test(t)}function JD(t,e,n,r){if(!(/^\s*javascript\:/i.test(e)||/[\n\r]/.test(e))){e=e.replace(/^\s*/g,"");var i=e.match(/^(\w[\w\d+.-]*):/);if(i){var o=i[1].toLowerCase();return o==="http"||o==="https"||o==="file"?e:void 0}if(/^\#/i.test(e))return t+e;if(/^\/\//i.test(e)){var s=Un(t,"https://")?"https":"http";return s+":"+e.replace(/^\s*/g,"")}return n?n.resolveReference(e,r||t):e}}function XD(t,e,n,r,i,o){var s=Lp(n);if(!!GD(s,t.languageId)){s.length<n.length&&(r++,i--);var l=JD(t.uri,s,e,o);if(!(!l||!QD(l)))return{range:$.Range.create(t.positionAt(r),t.positionAt(i)),target:l}}}function QD(t){try{return ny.URI.parse(t),!0}catch{return!1}}function ry(t,e){for(var n=[],r=gt(t.getText(),0),i=r.scan(),o=void 0,s=!1,l=void 0,a={};i!==ne.EOS;){switch(i){case ne.StartTag:if(!l){var c=r.getTokenText().toLowerCase();s=c==="base"}break;case ne.AttributeName:o=r.getTokenText().toLowerCase();break;case ne.AttributeValue:if(o==="src"||o==="href"){var u=r.getTokenText();if(!s){var d=XD(t,e,u,r.getTokenOffset(),r.getTokenEnd(),l);d&&n.push(d)}s&&typeof l>"u"&&(l=Lp(u),l&&e&&(l=e.resolveReference(l,t.uri))),s=!1,o=void 0}else if(o==="id"){var h=Lp(r.getTokenText());a[h]=r.getTokenOffset()}break}i=r.scan()}for(var p=0,w=n;p<w.length;p++){var d=w[p],v=t.uri+"#";if(d.target&&Un(d.target,v)){var x=d.target.substr(v.length),_=a[x];if(_!==void 0){var f=t.positionAt(_);d.target="".concat(v).concat(f.line+1,",").concat(f.character+1)}}}return n}var ny,iy=ue(()=>{Pr();Io();ny=ei(Rl());rn()});function ly(t,e,n){var r=t.offsetAt(e),i=n.findNodeAt(r);if(!i.tag)return[];var o=[],s=ay(ne.StartTag,t,i.start),l=typeof i.endTagStart=="number"&&ay(ne.EndTag,t,i.endTagStart);return(s&&sy(s,e)||l&&sy(l,e))&&(s&&o.push({kind:$.DocumentHighlightKind.Read,range:s}),l&&o.push({kind:$.DocumentHighlightKind.Read,range:l})),o}function oy(t,e){return t.line<e.line||t.line===e.line&&t.character<=e.character}function sy(t,e){return oy(t.start,e)&&oy(e,t.end)}function ay(t,e,n){for(var r=gt(e.getText(),n),i=r.scan();i!==ne.EOS&&i!==t;)i=r.scan();return i!==ne.EOS?{start:e.positionAt(r.getTokenOffset()),end:e.positionAt(r.getTokenEnd())}:null}var cy=ue(()=>{Pr();rn()});function uy(t,e){var n=[];return e.roots.forEach(function(r){dy(t,r,"",n)}),n}function dy(t,e,n,r){var i=YD(e),o=$.Location.create(t.uri,$.Range.create(t.positionAt(e.start),t.positionAt(e.end))),s={name:i,location:o,containerName:n,kind:$.SymbolKind.Field};r.push(s),e.children.forEach(function(l){dy(t,l,i,r)})}function YD(t){var e=t.tag;if(t.attributes){var n=t.attributes.id,r=t.attributes.class;n&&(e+="#".concat(n.replace(/[\"\']/g,""))),r&&(e+=r.replace(/[\"\']/g,"").split(/\s+/).map(function(i){return".".concat(i)}).join(""))}return e||"?"}var hy=ue(()=>{rn()});function py(t,e,n,r){var i,o=t.offsetAt(e),s=r.findNodeAt(o);if(!s.tag||!ZD(s,o,s.tag))return null;var l=[],a={start:t.positionAt(s.start+1),end:t.positionAt(s.start+1+s.tag.length)};if(l.push({range:a,newText:n}),s.endTagStart){var c={start:t.positionAt(s.endTagStart+2),end:t.positionAt(s.endTagStart+2+s.tag.length)};l.push({range:c,newText:n})}var u=(i={},i[t.uri.toString()]=l,i);return{changes:u}}function ZD(t,e,n){return t.endTagStart&&t.endTagStart+2<=e&&e<=t.endTagStart+2+n.length?!0:t.start+1<=e&&e<=t.start+1+n.length}var my=ue(()=>{});function fy(t,e,n){var r=t.offsetAt(e),i=n.findNodeAt(r);if(!i.tag||!i.endTagStart)return null;if(i.start+1<=r&&r<=i.start+1+i.tag.length){var o=r-1-i.start+i.endTagStart+2;return t.positionAt(o)}if(i.endTagStart+2<=r&&r<=i.endTagStart+2+i.tag.length){var o=r-2-i.endTagStart+i.start+1;return t.positionAt(o)}return null}var gy=ue(()=>{});function Np(t,e,n){var r=t.offsetAt(e),i=n.findNodeAt(r),o=i.tag?i.tag.length:0;return i.endTagStart&&(i.start+1<=r&&r<=i.start+1+o||i.endTagStart+2<=r&&r<=i.endTagStart+2+o)?[$.Range.create(t.positionAt(i.start+1),t.positionAt(i.start+1+o)),$.Range.create(t.positionAt(i.endTagStart+2),t.positionAt(i.endTagStart+2+o))]:null}var by=ue(()=>{rn()});var vy,wy=ue(()=>{rn();Pr();vy=function(){function t(e){this.dataManager=e}return t.prototype.limitRanges=function(e,n){e=e.sort(function(v,x){var _=v.startLine-x.startLine;return _===0&&(_=v.endLine-x.endLine),_});for(var r=void 0,i=[],o=[],s=[],l=function(v,x){o[v]=x,x<30&&(s[x]=(s[x]||0)+1)},a=0;a<e.length;a++){var c=e[a];if(!r)r=c,l(a,0);else if(c.startLine>r.startLine){if(c.endLine<=r.endLine)i.push(r),r=c,l(a,i.length);else if(c.startLine>r.endLine){do r=i.pop();while(r&&c.startLine>r.endLine);r&&i.push(r),r=c,l(a,i.length)}}}for(var u=0,d=0,a=0;a<s.length;a++){var h=s[a];if(h){if(h+u>n){d=a;break}u+=h}}for(var p=[],a=0;a<e.length;a++){var w=o[a];typeof w=="number"&&(w<d||w===d&&u++<n)&&p.push(e[a])}return p},t.prototype.getFoldingRanges=function(e,n){var r=this.dataManager.getVoidElements(e.languageId),i=gt(e.getText()),o=i.scan(),s=[],l=[],a=null,c=-1;function u(D){s.push(D),c=D.startLine}for(;o!==ne.EOS;){switch(o){case ne.StartTag:{var d=i.getTokenText(),h=e.positionAt(i.getTokenOffset()).line;l.push({startLine:h,tagName:d}),a=d;break}case ne.EndTag:{a=i.getTokenText();break}case ne.StartTagClose:if(!a||!this.dataManager.isVoidElement(a,r))break;case ne.EndTagClose:case ne.StartTagSelfClose:{for(var p=l.length-1;p>=0&&l[p].tagName!==a;)p--;if(p>=0){var w=l[p];l.length=p;var v=e.positionAt(i.getTokenOffset()).line,h=w.startLine,x=v-1;x>h&&c!==h&&u({startLine:h,endLine:x})}break}case ne.Comment:{var h=e.positionAt(i.getTokenOffset()).line,_=i.getTokenText(),f=_.match(/^\s*#(region\b)|(endregion\b)/);if(f)if(f[1])l.push({startLine:h,tagName:""});else{for(var p=l.length-1;p>=0&&l[p].tagName.length;)p--;if(p>=0){var w=l[p];l.length=p;var x=h;h=w.startLine,x>h&&c!==h&&u({startLine:h,endLine:x,kind:$.FoldingRangeKind.Region})}}else{var x=e.positionAt(i.getTokenOffset()+i.getTokenLength()).line;h<x&&u({startLine:h,endLine:x,kind:$.FoldingRangeKind.Comment})}break}}o=i.scan()}var g=n&&n.rangeLimit||Number.MAX_VALUE;return s.length>g?this.limitRanges(s,g):s},t}()});var yy,_y=ue(()=>{Pr();rn();yy=function(){function t(e){this.htmlParser=e}return t.prototype.getSelectionRanges=function(e,n){var r=this,i=this.htmlParser.parseDocument(e);return n.map(function(o){return r.getSelectionRange(o,e,i)})},t.prototype.getSelectionRange=function(e,n,r){for(var i=this.getApplicableRanges(n,e,r),o=void 0,s=void 0,l=i.length-1;l>=0;l--){var a=i[l];(!o||a[0]!==o[0]||a[1]!==o[1])&&(s=$.SelectionRange.create($.Range.create(n.positionAt(i[l][0]),n.positionAt(i[l][1])),s)),o=a}return s||(s=$.SelectionRange.create($.Range.create(e,e))),s},t.prototype.getApplicableRanges=function(e,n,r){var i=e.offsetAt(n),o=r.findNodeAt(i),s=this.getAllParentTagRanges(o);if(o.startTagEnd&&!o.endTagStart){if(o.startTagEnd!==o.end)return[[o.start,o.end]];var l=$.Range.create(e.positionAt(o.startTagEnd-2),e.positionAt(o.startTagEnd)),a=e.getText(l);a==="/>"?s.unshift([o.start+1,o.startTagEnd-2]):s.unshift([o.start+1,o.startTagEnd-1]);var c=this.getAttributeLevelRanges(e,o,i);return s=c.concat(s),s}if(!o.startTagEnd||!o.endTagStart)return s;if(s.unshift([o.start,o.end]),o.start<i&&i<o.startTagEnd){s.unshift([o.start+1,o.startTagEnd-1]);var c=this.getAttributeLevelRanges(e,o,i);return s=c.concat(s),s}else return o.startTagEnd<=i&&i<=o.endTagStart?(s.unshift([o.startTagEnd,o.endTagStart]),s):(i>=o.endTagStart+2&&s.unshift([o.endTagStart+2,o.end-1]),s)},t.prototype.getAllParentTagRanges=function(e){for(var n=e,r=[];n.parent;)n=n.parent,this.getNodeRanges(n).forEach(function(i){return r.push(i)});return r},t.prototype.getNodeRanges=function(e){return e.startTagEnd&&e.endTagStart&&e.startTagEnd<e.endTagStart?[[e.startTagEnd,e.endTagStart],[e.start,e.end]]:[[e.start,e.end]]},t.prototype.getAttributeLevelRanges=function(e,n,r){for(var i=$.Range.create(e.positionAt(n.start),e.positionAt(n.end)),o=e.getText(i),s=r-n.start,l=gt(o),a=l.scan(),c=n.start,u=[],d=!1,h=-1;a!==ne.EOS;){switch(a){case ne.AttributeName:{if(s<l.getTokenOffset()){d=!1;break}s<=l.getTokenEnd()&&u.unshift([l.getTokenOffset(),l.getTokenEnd()]),d=!0,h=l.getTokenOffset();break}case ne.AttributeValue:{if(!d)break;var p=l.getTokenText();if(s<l.getTokenOffset()){u.push([h,l.getTokenEnd()]);break}s>=l.getTokenOffset()&&s<=l.getTokenEnd()&&(u.unshift([l.getTokenOffset(),l.getTokenEnd()]),(p[0]==='"'&&p[p.length-1]==='"'||p[0]==="'"&&p[p.length-1]==="'")&&s>=l.getTokenOffset()+1&&s<=l.getTokenEnd()-1&&u.unshift([l.getTokenOffset()+1,l.getTokenEnd()-1]),u.push([h,l.getTokenEnd()]));break}}a=l.scan()}return u.map(function(w){return[w[0]+c,w[1]+c]})},t}()});var $l,Wp=ue(()=>{$l={version:1.1,tags:[{name:"html",description:{kind:"markdown",value:"The html element represents the root of an HTML document."},attributes:[{name:"manifest",description:{kind:"markdown",value:"Specifies the URI of a resource manifest indicating resources that should be cached locally. See [Using the application cache](https://developer.mozilla.org/en-US/docs/Web/HTML/Using_the_application_cache) for details."}},{name:"version",description:'Specifies the version of the HTML [Document Type Definition](https://developer.mozilla.org/en-US/docs/Glossary/DTD "Document Type Definition: In HTML, the doctype is the required "<!DOCTYPE html>" preamble found at the top of all documents. Its sole purpose is to prevent a browser from switching into so-called \u201Cquirks mode\u201D when rendering a document; that is, the "<!DOCTYPE html>" doctype ensures that the browser makes a best-effort attempt at following the relevant specifications, rather than using a different rendering mode that is incompatible with some specifications.") that governs the current document. This attribute is not needed, because it is redundant with the version information in the document type declaration.'},{name:"xmlns",description:'Specifies the XML Namespace of the document. Default value is `"http://www.w3.org/1999/xhtml"`. This is required in documents parsed with XML parsers, and optional in text/html documents.'}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/html"}]},{name:"head",description:{kind:"markdown",value:"The head element represents a collection of metadata for the Document."},attributes:[{name:"profile",description:"The URIs of one or more metadata profiles, separated by white space."}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/head"}]},{name:"title",description:{kind:"markdown",value:"The title element represents the document's title or name. Authors should use titles that identify their documents even when they are used out of context, for example in a user's history or bookmarks, or in search results. The document's title is often different from its first heading, since the first heading does not have to stand alone when taken out of context."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/title"}]},{name:"base",description:{kind:"markdown",value:"The base element allows authors to specify the document base URL for the purposes of resolving relative URLs, and the name of the default browsing context for the purposes of following hyperlinks. The element does not represent any content beyond this information."},void:!0,attributes:[{name:"href",description:{kind:"markdown",value:"The base URL to be used throughout the document for relative URL addresses. If this attribute is specified, this element must come before any other elements with attributes whose values are URLs. Absolute and relative URLs are allowed."}},{name:"target",valueSet:"target",description:{kind:"markdown",value:"A name or keyword indicating the default location to display the result when hyperlinks or forms cause navigation, for elements that do not have an explicit target reference. It is a name of, or keyword for, a _browsing context_ (for example: tab, window, or inline frame). The following keywords have special meanings:\n\n* `_self`: Load the result into the same browsing context as the current one. This value is the default if the attribute is not specified.\n* `_blank`: Load the result into a new unnamed browsing context.\n* `_parent`: Load the result into the parent browsing context of the current one. If there is no parent, this option behaves the same way as `_self`.\n* `_top`: Load the result into the top-level browsing context (that is, the browsing context that is an ancestor of the current one, and has no parent). If there is no parent, this option behaves the same way as `_self`.\n\nIf this attribute is specified, this element must come before any other elements with attributes whose values are URLs."}}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/base"}]},{name:"link",description:{kind:"markdown",value:"The link element allows authors to link their document to other resources."},void:!0,attributes:[{name:"href",description:{kind:"markdown",value:'This attribute specifies the [URL](https://developer.mozilla.org/en-US/docs/Glossary/URL "URL: Uniform Resource Locator (URL) is a text string specifying where a resource can be found on the Internet.") of the linked resource. A URL can be absolute or relative.'}},{name:"crossorigin",valueSet:"xo",description:{kind:"markdown",value:'This enumerated attribute indicates whether [CORS](https://developer.mozilla.org/en-US/docs/Glossary/CORS "CORS: CORS (Cross-Origin Resource Sharing) is a system, consisting of transmitting HTTP headers, that determines whether browsers block frontend JavaScript code from accessing responses for cross-origin requests.") must be used when fetching the resource. [CORS-enabled images](https://developer.mozilla.org/en-US/docs/Web/HTML/CORS_Enabled_Image) can be reused in the [`<canvas>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/canvas "Use the HTML <canvas> element with either the canvas scripting API or the WebGL API to draw graphics and animations.") element without being _tainted_. The allowed values are:\n\n`anonymous`\n\nA cross-origin request (i.e. with an [`Origin`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Origin "The Origin request header indicates where a fetch originates from. It doesn\'t include any path information, but only the server name. It is sent with CORS requests, as well as with POST requests. It is similar to the Referer header, but, unlike this header, it doesn\'t disclose the whole path.") HTTP header) is performed, but no credential is sent (i.e. no cookie, X.509 certificate, or HTTP Basic authentication). If the server does not give credentials to the origin site (by not setting the [`Access-Control-Allow-Origin`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Allow-Origin "The Access-Control-Allow-Origin response header indicates whether the response can be shared with requesting code from the given origin.") HTTP header) the image will be tainted and its usage restricted.\n\n`use-credentials`\n\nA cross-origin request (i.e. with an `Origin` HTTP header) is performed along with a credential sent (i.e. a cookie, certificate, and/or HTTP Basic authentication is performed). If the server does not give credentials to the origin site (through [`Access-Control-Allow-Credentials`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Allow-Credentials "The Access-Control-Allow-Credentials response header tells browsers whether to expose the response to frontend JavaScript code when the request\'s credentials mode (Request.credentials) is "include".") HTTP header), the resource will be _tainted_ and its usage restricted.\n\nIf the attribute is not present, the resource is fetched without a [CORS](https://developer.mozilla.org/en-US/docs/Glossary/CORS "CORS: CORS (Cross-Origin Resource Sharing) is a system, consisting of transmitting HTTP headers, that determines whether browsers block frontend JavaScript code from accessing responses for cross-origin requests.") request (i.e. without sending the `Origin` HTTP header), preventing its non-tainted usage. If invalid, it is handled as if the enumerated keyword **anonymous** was used. See [CORS settings attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/CORS_settings_attributes) for additional information.'}},{name:"rel",description:{kind:"markdown",value:"This attribute names a relationship of the linked document to the current document. The attribute must be a space-separated list of the [link types values](https://developer.mozilla.org/en-US/docs/Web/HTML/Link_types)."}},{name:"media",description:{kind:"markdown",value:"This attribute specifies the media that the linked resource applies to. Its value must be a media type / [media query](https://developer.mozilla.org/en-US/docs/Web/CSS/Media_queries). This attribute is mainly useful when linking to external stylesheets \u2014 it allows the user agent to pick the best adapted one for the device it runs on.\n\n**Notes:**\n\n* In HTML 4, this can only be a simple white-space-separated list of media description literals, i.e., [media types and groups](https://developer.mozilla.org/en-US/docs/Web/CSS/@media), where defined and allowed as values for this attribute, such as `print`, `screen`, `aural`, `braille`. HTML5 extended this to any kind of [media queries](https://developer.mozilla.org/en-US/docs/Web/CSS/Media_queries), which are a superset of the allowed values of HTML 4.\n* Browsers not supporting [CSS3 Media Queries](https://developer.mozilla.org/en-US/docs/Web/CSS/Media_queries) won't necessarily recognize the adequate link; do not forget to set fallback links, the restricted set of media queries defined in HTML 4."}},{name:"hreflang",description:{kind:"markdown",value:"This attribute indicates the language of the linked resource. It is purely advisory. Allowed values are determined by [BCP47](https://www.ietf.org/rfc/bcp/bcp47.txt). Use this attribute only if the [`href`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#attr-href) attribute is present."}},{name:"type",description:{kind:"markdown",value:'This attribute is used to define the type of the content linked to. The value of the attribute should be a MIME type such as **text/html**, **text/css**, and so on. The common use of this attribute is to define the type of stylesheet being referenced (such as **text/css**), but given that CSS is the only stylesheet language used on the web, not only is it possible to omit the `type` attribute, but is actually now recommended practice. It is also used on `rel="preload"` link types, to make sure the browser only downloads file types that it supports.'}},{name:"sizes",description:{kind:"markdown",value:"This attribute defines the sizes of the icons for visual media contained in the resource. It must be present only if the [`rel`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/link#attr-rel) contains a value of `icon` or a non-standard type such as Apple's `apple-touch-icon`. It may have the following values:\n\n* `any`, meaning that the icon can be scaled to any size as it is in a vector format, like `image/svg+xml`.\n* a white-space separated list of sizes, each in the format `_<width in pixels>_x_<height in pixels>_` or `_<width in pixels>_X_<height in pixels>_`. Each of these sizes must be contained in the resource.\n\n**Note:** Most icon formats are only able to store one single icon; therefore most of the time the [`sizes`](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes#attr-sizes) contains only one entry. MS's ICO format does, as well as Apple's ICNS. ICO is more ubiquitous; you should definitely use it."}},{name:"as",description:'This attribute is only used when `rel="preload"` or `rel="prefetch"` has been set on the `<link>` element. It specifies the type of content being loaded by the `<link>`, which is necessary for content prioritization, request matching, application of correct [content security policy](https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP), and setting of correct [`Accept`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Accept "The Accept request HTTP header advertises which content types, expressed as MIME types, the client is able to understand. Using content negotiation, the server then selects one of the proposals, uses it and informs the client of its choice with the Content-Type response header. Browsers set adequate values for this header depending on\xA0the context where the request is done: when fetching a CSS stylesheet a different value is set for the request than when fetching an image,\xA0video or a script.") request header.'},{name:"importance",description:"Indicates the relative importance of the resource. Priority hints are delegated using the values:"},{name:"importance",description:'**`auto`**: Indicates\xA0**no\xA0preference**. The browser may use its own heuristics to decide the priority of the resource.\n\n**`high`**: Indicates to the\xA0browser\xA0that the resource is of\xA0**high** priority.\n\n**`low`**:\xA0Indicates to the\xA0browser\xA0that the resource is of\xA0**low** priority.\n\n**Note:** The `importance` attribute may only be used for the `<link>` element if `rel="preload"` or `rel="prefetch"` is present.'},{name:"integrity",description:"Contains inline metadata \u2014 a base64-encoded cryptographic hash of the resource (file) you\u2019re telling the browser to fetch. The browser can use this to verify that the fetched resource has been delivered free of unexpected manipulation. See [Subresource Integrity](https://developer.mozilla.org/en-US/docs/Web/Security/Subresource_Integrity)."},{name:"referrerpolicy",description:'A string indicating which referrer to use when fetching the resource:\n\n* `no-referrer` means that the [`Referer`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Referer "The Referer request header contains the address of the previous web page from which a link to the currently requested page was followed. The Referer header allows servers to identify where people are visiting them from and may use that data for analytics, logging, or optimized caching, for example.") header will not be sent.\n* `no-referrer-when-downgrade` means that no [`Referer`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Referer "The Referer request header contains the address of the previous web page from which a link to the currently requested page was followed. The Referer header allows servers to identify where people are visiting them from and may use that data for analytics, logging, or optimized caching, for example.") header will be sent when navigating to an origin without TLS (HTTPS). This is a user agent\u2019s default behavior, if no policy is otherwise specified.\n* `origin` means that the referrer will be the origin of the page, which is roughly the scheme, the host, and the port.\n* `origin-when-cross-origin` means that navigating to other origins will be limited to the scheme, the host, and the port, while navigating on the same origin will include the referrer\'s path.\n* `unsafe-url` means that the referrer will include the origin and the path (but not the fragment, password, or username). This case is unsafe because it can leak origins and paths from TLS-protected resources to insecure origins.'},{name:"title",description:'The `title` attribute has special semantics on the `<link>` element. When used on a `<link rel="stylesheet">` it defines a [preferred or an alternate stylesheet](https://developer.mozilla.org/en-US/docs/Web/CSS/Alternative_style_sheets). Incorrectly using it may [cause the stylesheet to be ignored](https://developer.mozilla.org/en-US/docs/Correctly_Using_Titles_With_External_Stylesheets).'}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/link"}]},{name:"meta",description:{kind:"markdown",value:"The meta element represents various kinds of metadata that cannot be expressed using the title, base, link, style, and script elements."},void:!0,attributes:[{name:"name",description:{kind:"markdown",value:`This attribute defines the name of a piece of document-level metadata. It should not be set if one of the attributes [\`itemprop\`](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes#attr-itemprop), [\`http-equiv\`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/meta#attr-http-equiv) or [\`charset\`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/meta#attr-charset) is also set.
|
|
83
|
+
`.indexOf(t.charAt(e))!==-1}function Zw(t,e){return" ".indexOf(t.charAt(e))!==-1}var ty=ue(()=>{rn();Qw();Io()});function Lp(t){var e=t[0],n=t[t.length-1];return e===n&&(e==="'"||e==='"')&&(t=t.substr(1,t.length-2)),t}function GD(t,e){return!t.length||e==="handlebars"&&/{{|}}/.test(t)?!1:/\b(w[\w\d+.-]*:\/\/)?[^\s()<>]+(?:\([\w\d]+\)|([^[:punct:]\s]|\/?))/.test(t)}function JD(t,e,n,r){if(!(/^\s*javascript\:/i.test(e)||/[\n\r]/.test(e))){e=e.replace(/^\s*/g,"");var i=e.match(/^(\w[\w\d+.-]*):/);if(i){var o=i[1].toLowerCase();return o==="http"||o==="https"||o==="file"?e:void 0}if(/^\#/i.test(e))return t+e;if(/^\/\//i.test(e)){var s=Un(t,"https://")?"https":"http";return s+":"+e.replace(/^\s*/g,"")}return n?n.resolveReference(e,r||t):e}}function XD(t,e,n,r,i,o){var s=Lp(n);if(!!GD(s,t.languageId)){s.length<n.length&&(r++,i--);var l=JD(t.uri,s,e,o);if(!(!l||!QD(l)))return{range:$.Range.create(t.positionAt(r),t.positionAt(i)),target:l}}}function QD(t){try{return ny.URI.parse(t),!0}catch{return!1}}function ry(t,e){for(var n=[],r=gt(t.getText(),0),i=r.scan(),o=void 0,s=!1,l=void 0,a={};i!==ne.EOS;){switch(i){case ne.StartTag:if(!l){var c=r.getTokenText().toLowerCase();s=c==="base"}break;case ne.AttributeName:o=r.getTokenText().toLowerCase();break;case ne.AttributeValue:if(o==="src"||o==="href"){var u=r.getTokenText();if(!s){var d=XD(t,e,u,r.getTokenOffset(),r.getTokenEnd(),l);d&&n.push(d)}s&&typeof l>"u"&&(l=Lp(u),l&&e&&(l=e.resolveReference(l,t.uri))),s=!1,o=void 0}else if(o==="id"){var h=Lp(r.getTokenText());a[h]=r.getTokenOffset()}break}i=r.scan()}for(var p=0,w=n;p<w.length;p++){var d=w[p],v=t.uri+"#";if(d.target&&Un(d.target,v)){var x=d.target.substr(v.length),_=a[x];if(_!==void 0){var f=t.positionAt(_);d.target="".concat(v).concat(f.line+1,",").concat(f.character+1)}}}return n}var ny,iy=ue(()=>{Pr();Io();ny=ti(Rl());rn()});function ly(t,e,n){var r=t.offsetAt(e),i=n.findNodeAt(r);if(!i.tag)return[];var o=[],s=ay(ne.StartTag,t,i.start),l=typeof i.endTagStart=="number"&&ay(ne.EndTag,t,i.endTagStart);return(s&&sy(s,e)||l&&sy(l,e))&&(s&&o.push({kind:$.DocumentHighlightKind.Read,range:s}),l&&o.push({kind:$.DocumentHighlightKind.Read,range:l})),o}function oy(t,e){return t.line<e.line||t.line===e.line&&t.character<=e.character}function sy(t,e){return oy(t.start,e)&&oy(e,t.end)}function ay(t,e,n){for(var r=gt(e.getText(),n),i=r.scan();i!==ne.EOS&&i!==t;)i=r.scan();return i!==ne.EOS?{start:e.positionAt(r.getTokenOffset()),end:e.positionAt(r.getTokenEnd())}:null}var cy=ue(()=>{Pr();rn()});function uy(t,e){var n=[];return e.roots.forEach(function(r){dy(t,r,"",n)}),n}function dy(t,e,n,r){var i=YD(e),o=$.Location.create(t.uri,$.Range.create(t.positionAt(e.start),t.positionAt(e.end))),s={name:i,location:o,containerName:n,kind:$.SymbolKind.Field};r.push(s),e.children.forEach(function(l){dy(t,l,i,r)})}function YD(t){var e=t.tag;if(t.attributes){var n=t.attributes.id,r=t.attributes.class;n&&(e+="#".concat(n.replace(/[\"\']/g,""))),r&&(e+=r.replace(/[\"\']/g,"").split(/\s+/).map(function(i){return".".concat(i)}).join(""))}return e||"?"}var hy=ue(()=>{rn()});function py(t,e,n,r){var i,o=t.offsetAt(e),s=r.findNodeAt(o);if(!s.tag||!ZD(s,o,s.tag))return null;var l=[],a={start:t.positionAt(s.start+1),end:t.positionAt(s.start+1+s.tag.length)};if(l.push({range:a,newText:n}),s.endTagStart){var c={start:t.positionAt(s.endTagStart+2),end:t.positionAt(s.endTagStart+2+s.tag.length)};l.push({range:c,newText:n})}var u=(i={},i[t.uri.toString()]=l,i);return{changes:u}}function ZD(t,e,n){return t.endTagStart&&t.endTagStart+2<=e&&e<=t.endTagStart+2+n.length?!0:t.start+1<=e&&e<=t.start+1+n.length}var my=ue(()=>{});function fy(t,e,n){var r=t.offsetAt(e),i=n.findNodeAt(r);if(!i.tag||!i.endTagStart)return null;if(i.start+1<=r&&r<=i.start+1+i.tag.length){var o=r-1-i.start+i.endTagStart+2;return t.positionAt(o)}if(i.endTagStart+2<=r&&r<=i.endTagStart+2+i.tag.length){var o=r-2-i.endTagStart+i.start+1;return t.positionAt(o)}return null}var gy=ue(()=>{});function Np(t,e,n){var r=t.offsetAt(e),i=n.findNodeAt(r),o=i.tag?i.tag.length:0;return i.endTagStart&&(i.start+1<=r&&r<=i.start+1+o||i.endTagStart+2<=r&&r<=i.endTagStart+2+o)?[$.Range.create(t.positionAt(i.start+1),t.positionAt(i.start+1+o)),$.Range.create(t.positionAt(i.endTagStart+2),t.positionAt(i.endTagStart+2+o))]:null}var by=ue(()=>{rn()});var vy,wy=ue(()=>{rn();Pr();vy=function(){function t(e){this.dataManager=e}return t.prototype.limitRanges=function(e,n){e=e.sort(function(v,x){var _=v.startLine-x.startLine;return _===0&&(_=v.endLine-x.endLine),_});for(var r=void 0,i=[],o=[],s=[],l=function(v,x){o[v]=x,x<30&&(s[x]=(s[x]||0)+1)},a=0;a<e.length;a++){var c=e[a];if(!r)r=c,l(a,0);else if(c.startLine>r.startLine){if(c.endLine<=r.endLine)i.push(r),r=c,l(a,i.length);else if(c.startLine>r.endLine){do r=i.pop();while(r&&c.startLine>r.endLine);r&&i.push(r),r=c,l(a,i.length)}}}for(var u=0,d=0,a=0;a<s.length;a++){var h=s[a];if(h){if(h+u>n){d=a;break}u+=h}}for(var p=[],a=0;a<e.length;a++){var w=o[a];typeof w=="number"&&(w<d||w===d&&u++<n)&&p.push(e[a])}return p},t.prototype.getFoldingRanges=function(e,n){var r=this.dataManager.getVoidElements(e.languageId),i=gt(e.getText()),o=i.scan(),s=[],l=[],a=null,c=-1;function u(D){s.push(D),c=D.startLine}for(;o!==ne.EOS;){switch(o){case ne.StartTag:{var d=i.getTokenText(),h=e.positionAt(i.getTokenOffset()).line;l.push({startLine:h,tagName:d}),a=d;break}case ne.EndTag:{a=i.getTokenText();break}case ne.StartTagClose:if(!a||!this.dataManager.isVoidElement(a,r))break;case ne.EndTagClose:case ne.StartTagSelfClose:{for(var p=l.length-1;p>=0&&l[p].tagName!==a;)p--;if(p>=0){var w=l[p];l.length=p;var v=e.positionAt(i.getTokenOffset()).line,h=w.startLine,x=v-1;x>h&&c!==h&&u({startLine:h,endLine:x})}break}case ne.Comment:{var h=e.positionAt(i.getTokenOffset()).line,_=i.getTokenText(),f=_.match(/^\s*#(region\b)|(endregion\b)/);if(f)if(f[1])l.push({startLine:h,tagName:""});else{for(var p=l.length-1;p>=0&&l[p].tagName.length;)p--;if(p>=0){var w=l[p];l.length=p;var x=h;h=w.startLine,x>h&&c!==h&&u({startLine:h,endLine:x,kind:$.FoldingRangeKind.Region})}}else{var x=e.positionAt(i.getTokenOffset()+i.getTokenLength()).line;h<x&&u({startLine:h,endLine:x,kind:$.FoldingRangeKind.Comment})}break}}o=i.scan()}var g=n&&n.rangeLimit||Number.MAX_VALUE;return s.length>g?this.limitRanges(s,g):s},t}()});var yy,_y=ue(()=>{Pr();rn();yy=function(){function t(e){this.htmlParser=e}return t.prototype.getSelectionRanges=function(e,n){var r=this,i=this.htmlParser.parseDocument(e);return n.map(function(o){return r.getSelectionRange(o,e,i)})},t.prototype.getSelectionRange=function(e,n,r){for(var i=this.getApplicableRanges(n,e,r),o=void 0,s=void 0,l=i.length-1;l>=0;l--){var a=i[l];(!o||a[0]!==o[0]||a[1]!==o[1])&&(s=$.SelectionRange.create($.Range.create(n.positionAt(i[l][0]),n.positionAt(i[l][1])),s)),o=a}return s||(s=$.SelectionRange.create($.Range.create(e,e))),s},t.prototype.getApplicableRanges=function(e,n,r){var i=e.offsetAt(n),o=r.findNodeAt(i),s=this.getAllParentTagRanges(o);if(o.startTagEnd&&!o.endTagStart){if(o.startTagEnd!==o.end)return[[o.start,o.end]];var l=$.Range.create(e.positionAt(o.startTagEnd-2),e.positionAt(o.startTagEnd)),a=e.getText(l);a==="/>"?s.unshift([o.start+1,o.startTagEnd-2]):s.unshift([o.start+1,o.startTagEnd-1]);var c=this.getAttributeLevelRanges(e,o,i);return s=c.concat(s),s}if(!o.startTagEnd||!o.endTagStart)return s;if(s.unshift([o.start,o.end]),o.start<i&&i<o.startTagEnd){s.unshift([o.start+1,o.startTagEnd-1]);var c=this.getAttributeLevelRanges(e,o,i);return s=c.concat(s),s}else return o.startTagEnd<=i&&i<=o.endTagStart?(s.unshift([o.startTagEnd,o.endTagStart]),s):(i>=o.endTagStart+2&&s.unshift([o.endTagStart+2,o.end-1]),s)},t.prototype.getAllParentTagRanges=function(e){for(var n=e,r=[];n.parent;)n=n.parent,this.getNodeRanges(n).forEach(function(i){return r.push(i)});return r},t.prototype.getNodeRanges=function(e){return e.startTagEnd&&e.endTagStart&&e.startTagEnd<e.endTagStart?[[e.startTagEnd,e.endTagStart],[e.start,e.end]]:[[e.start,e.end]]},t.prototype.getAttributeLevelRanges=function(e,n,r){for(var i=$.Range.create(e.positionAt(n.start),e.positionAt(n.end)),o=e.getText(i),s=r-n.start,l=gt(o),a=l.scan(),c=n.start,u=[],d=!1,h=-1;a!==ne.EOS;){switch(a){case ne.AttributeName:{if(s<l.getTokenOffset()){d=!1;break}s<=l.getTokenEnd()&&u.unshift([l.getTokenOffset(),l.getTokenEnd()]),d=!0,h=l.getTokenOffset();break}case ne.AttributeValue:{if(!d)break;var p=l.getTokenText();if(s<l.getTokenOffset()){u.push([h,l.getTokenEnd()]);break}s>=l.getTokenOffset()&&s<=l.getTokenEnd()&&(u.unshift([l.getTokenOffset(),l.getTokenEnd()]),(p[0]==='"'&&p[p.length-1]==='"'||p[0]==="'"&&p[p.length-1]==="'")&&s>=l.getTokenOffset()+1&&s<=l.getTokenEnd()-1&&u.unshift([l.getTokenOffset()+1,l.getTokenEnd()-1]),u.push([h,l.getTokenEnd()]));break}}a=l.scan()}return u.map(function(w){return[w[0]+c,w[1]+c]})},t}()});var $l,Wp=ue(()=>{$l={version:1.1,tags:[{name:"html",description:{kind:"markdown",value:"The html element represents the root of an HTML document."},attributes:[{name:"manifest",description:{kind:"markdown",value:"Specifies the URI of a resource manifest indicating resources that should be cached locally. See [Using the application cache](https://developer.mozilla.org/en-US/docs/Web/HTML/Using_the_application_cache) for details."}},{name:"version",description:'Specifies the version of the HTML [Document Type Definition](https://developer.mozilla.org/en-US/docs/Glossary/DTD "Document Type Definition: In HTML, the doctype is the required "<!DOCTYPE html>" preamble found at the top of all documents. Its sole purpose is to prevent a browser from switching into so-called \u201Cquirks mode\u201D when rendering a document; that is, the "<!DOCTYPE html>" doctype ensures that the browser makes a best-effort attempt at following the relevant specifications, rather than using a different rendering mode that is incompatible with some specifications.") that governs the current document. This attribute is not needed, because it is redundant with the version information in the document type declaration.'},{name:"xmlns",description:'Specifies the XML Namespace of the document. Default value is `"http://www.w3.org/1999/xhtml"`. This is required in documents parsed with XML parsers, and optional in text/html documents.'}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/html"}]},{name:"head",description:{kind:"markdown",value:"The head element represents a collection of metadata for the Document."},attributes:[{name:"profile",description:"The URIs of one or more metadata profiles, separated by white space."}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/head"}]},{name:"title",description:{kind:"markdown",value:"The title element represents the document's title or name. Authors should use titles that identify their documents even when they are used out of context, for example in a user's history or bookmarks, or in search results. The document's title is often different from its first heading, since the first heading does not have to stand alone when taken out of context."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/title"}]},{name:"base",description:{kind:"markdown",value:"The base element allows authors to specify the document base URL for the purposes of resolving relative URLs, and the name of the default browsing context for the purposes of following hyperlinks. The element does not represent any content beyond this information."},void:!0,attributes:[{name:"href",description:{kind:"markdown",value:"The base URL to be used throughout the document for relative URL addresses. If this attribute is specified, this element must come before any other elements with attributes whose values are URLs. Absolute and relative URLs are allowed."}},{name:"target",valueSet:"target",description:{kind:"markdown",value:"A name or keyword indicating the default location to display the result when hyperlinks or forms cause navigation, for elements that do not have an explicit target reference. It is a name of, or keyword for, a _browsing context_ (for example: tab, window, or inline frame). The following keywords have special meanings:\n\n* `_self`: Load the result into the same browsing context as the current one. This value is the default if the attribute is not specified.\n* `_blank`: Load the result into a new unnamed browsing context.\n* `_parent`: Load the result into the parent browsing context of the current one. If there is no parent, this option behaves the same way as `_self`.\n* `_top`: Load the result into the top-level browsing context (that is, the browsing context that is an ancestor of the current one, and has no parent). If there is no parent, this option behaves the same way as `_self`.\n\nIf this attribute is specified, this element must come before any other elements with attributes whose values are URLs."}}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/base"}]},{name:"link",description:{kind:"markdown",value:"The link element allows authors to link their document to other resources."},void:!0,attributes:[{name:"href",description:{kind:"markdown",value:'This attribute specifies the [URL](https://developer.mozilla.org/en-US/docs/Glossary/URL "URL: Uniform Resource Locator (URL) is a text string specifying where a resource can be found on the Internet.") of the linked resource. A URL can be absolute or relative.'}},{name:"crossorigin",valueSet:"xo",description:{kind:"markdown",value:'This enumerated attribute indicates whether [CORS](https://developer.mozilla.org/en-US/docs/Glossary/CORS "CORS: CORS (Cross-Origin Resource Sharing) is a system, consisting of transmitting HTTP headers, that determines whether browsers block frontend JavaScript code from accessing responses for cross-origin requests.") must be used when fetching the resource. [CORS-enabled images](https://developer.mozilla.org/en-US/docs/Web/HTML/CORS_Enabled_Image) can be reused in the [`<canvas>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/canvas "Use the HTML <canvas> element with either the canvas scripting API or the WebGL API to draw graphics and animations.") element without being _tainted_. The allowed values are:\n\n`anonymous`\n\nA cross-origin request (i.e. with an [`Origin`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Origin "The Origin request header indicates where a fetch originates from. It doesn\'t include any path information, but only the server name. It is sent with CORS requests, as well as with POST requests. It is similar to the Referer header, but, unlike this header, it doesn\'t disclose the whole path.") HTTP header) is performed, but no credential is sent (i.e. no cookie, X.509 certificate, or HTTP Basic authentication). If the server does not give credentials to the origin site (by not setting the [`Access-Control-Allow-Origin`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Allow-Origin "The Access-Control-Allow-Origin response header indicates whether the response can be shared with requesting code from the given origin.") HTTP header) the image will be tainted and its usage restricted.\n\n`use-credentials`\n\nA cross-origin request (i.e. with an `Origin` HTTP header) is performed along with a credential sent (i.e. a cookie, certificate, and/or HTTP Basic authentication is performed). If the server does not give credentials to the origin site (through [`Access-Control-Allow-Credentials`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Allow-Credentials "The Access-Control-Allow-Credentials response header tells browsers whether to expose the response to frontend JavaScript code when the request\'s credentials mode (Request.credentials) is "include".") HTTP header), the resource will be _tainted_ and its usage restricted.\n\nIf the attribute is not present, the resource is fetched without a [CORS](https://developer.mozilla.org/en-US/docs/Glossary/CORS "CORS: CORS (Cross-Origin Resource Sharing) is a system, consisting of transmitting HTTP headers, that determines whether browsers block frontend JavaScript code from accessing responses for cross-origin requests.") request (i.e. without sending the `Origin` HTTP header), preventing its non-tainted usage. If invalid, it is handled as if the enumerated keyword **anonymous** was used. See [CORS settings attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/CORS_settings_attributes) for additional information.'}},{name:"rel",description:{kind:"markdown",value:"This attribute names a relationship of the linked document to the current document. The attribute must be a space-separated list of the [link types values](https://developer.mozilla.org/en-US/docs/Web/HTML/Link_types)."}},{name:"media",description:{kind:"markdown",value:"This attribute specifies the media that the linked resource applies to. Its value must be a media type / [media query](https://developer.mozilla.org/en-US/docs/Web/CSS/Media_queries). This attribute is mainly useful when linking to external stylesheets \u2014 it allows the user agent to pick the best adapted one for the device it runs on.\n\n**Notes:**\n\n* In HTML 4, this can only be a simple white-space-separated list of media description literals, i.e., [media types and groups](https://developer.mozilla.org/en-US/docs/Web/CSS/@media), where defined and allowed as values for this attribute, such as `print`, `screen`, `aural`, `braille`. HTML5 extended this to any kind of [media queries](https://developer.mozilla.org/en-US/docs/Web/CSS/Media_queries), which are a superset of the allowed values of HTML 4.\n* Browsers not supporting [CSS3 Media Queries](https://developer.mozilla.org/en-US/docs/Web/CSS/Media_queries) won't necessarily recognize the adequate link; do not forget to set fallback links, the restricted set of media queries defined in HTML 4."}},{name:"hreflang",description:{kind:"markdown",value:"This attribute indicates the language of the linked resource. It is purely advisory. Allowed values are determined by [BCP47](https://www.ietf.org/rfc/bcp/bcp47.txt). Use this attribute only if the [`href`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#attr-href) attribute is present."}},{name:"type",description:{kind:"markdown",value:'This attribute is used to define the type of the content linked to. The value of the attribute should be a MIME type such as **text/html**, **text/css**, and so on. The common use of this attribute is to define the type of stylesheet being referenced (such as **text/css**), but given that CSS is the only stylesheet language used on the web, not only is it possible to omit the `type` attribute, but is actually now recommended practice. It is also used on `rel="preload"` link types, to make sure the browser only downloads file types that it supports.'}},{name:"sizes",description:{kind:"markdown",value:"This attribute defines the sizes of the icons for visual media contained in the resource. It must be present only if the [`rel`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/link#attr-rel) contains a value of `icon` or a non-standard type such as Apple's `apple-touch-icon`. It may have the following values:\n\n* `any`, meaning that the icon can be scaled to any size as it is in a vector format, like `image/svg+xml`.\n* a white-space separated list of sizes, each in the format `_<width in pixels>_x_<height in pixels>_` or `_<width in pixels>_X_<height in pixels>_`. Each of these sizes must be contained in the resource.\n\n**Note:** Most icon formats are only able to store one single icon; therefore most of the time the [`sizes`](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes#attr-sizes) contains only one entry. MS's ICO format does, as well as Apple's ICNS. ICO is more ubiquitous; you should definitely use it."}},{name:"as",description:'This attribute is only used when `rel="preload"` or `rel="prefetch"` has been set on the `<link>` element. It specifies the type of content being loaded by the `<link>`, which is necessary for content prioritization, request matching, application of correct [content security policy](https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP), and setting of correct [`Accept`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Accept "The Accept request HTTP header advertises which content types, expressed as MIME types, the client is able to understand. Using content negotiation, the server then selects one of the proposals, uses it and informs the client of its choice with the Content-Type response header. Browsers set adequate values for this header depending on\xA0the context where the request is done: when fetching a CSS stylesheet a different value is set for the request than when fetching an image,\xA0video or a script.") request header.'},{name:"importance",description:"Indicates the relative importance of the resource. Priority hints are delegated using the values:"},{name:"importance",description:'**`auto`**: Indicates\xA0**no\xA0preference**. The browser may use its own heuristics to decide the priority of the resource.\n\n**`high`**: Indicates to the\xA0browser\xA0that the resource is of\xA0**high** priority.\n\n**`low`**:\xA0Indicates to the\xA0browser\xA0that the resource is of\xA0**low** priority.\n\n**Note:** The `importance` attribute may only be used for the `<link>` element if `rel="preload"` or `rel="prefetch"` is present.'},{name:"integrity",description:"Contains inline metadata \u2014 a base64-encoded cryptographic hash of the resource (file) you\u2019re telling the browser to fetch. The browser can use this to verify that the fetched resource has been delivered free of unexpected manipulation. See [Subresource Integrity](https://developer.mozilla.org/en-US/docs/Web/Security/Subresource_Integrity)."},{name:"referrerpolicy",description:'A string indicating which referrer to use when fetching the resource:\n\n* `no-referrer` means that the [`Referer`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Referer "The Referer request header contains the address of the previous web page from which a link to the currently requested page was followed. The Referer header allows servers to identify where people are visiting them from and may use that data for analytics, logging, or optimized caching, for example.") header will not be sent.\n* `no-referrer-when-downgrade` means that no [`Referer`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Referer "The Referer request header contains the address of the previous web page from which a link to the currently requested page was followed. The Referer header allows servers to identify where people are visiting them from and may use that data for analytics, logging, or optimized caching, for example.") header will be sent when navigating to an origin without TLS (HTTPS). This is a user agent\u2019s default behavior, if no policy is otherwise specified.\n* `origin` means that the referrer will be the origin of the page, which is roughly the scheme, the host, and the port.\n* `origin-when-cross-origin` means that navigating to other origins will be limited to the scheme, the host, and the port, while navigating on the same origin will include the referrer\'s path.\n* `unsafe-url` means that the referrer will include the origin and the path (but not the fragment, password, or username). This case is unsafe because it can leak origins and paths from TLS-protected resources to insecure origins.'},{name:"title",description:'The `title` attribute has special semantics on the `<link>` element. When used on a `<link rel="stylesheet">` it defines a [preferred or an alternate stylesheet](https://developer.mozilla.org/en-US/docs/Web/CSS/Alternative_style_sheets). Incorrectly using it may [cause the stylesheet to be ignored](https://developer.mozilla.org/en-US/docs/Correctly_Using_Titles_With_External_Stylesheets).'}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/link"}]},{name:"meta",description:{kind:"markdown",value:"The meta element represents various kinds of metadata that cannot be expressed using the title, base, link, style, and script elements."},void:!0,attributes:[{name:"name",description:{kind:"markdown",value:`This attribute defines the name of a piece of document-level metadata. It should not be set if one of the attributes [\`itemprop\`](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes#attr-itemprop), [\`http-equiv\`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/meta#attr-http-equiv) or [\`charset\`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/meta#attr-charset) is also set.
|
|
84
84
|
|
|
85
85
|
This metadata name is associated with the value contained by the [\`content\`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/meta#attr-content) attribute. The possible values for the name attribute are:
|
|
86
86
|
|
|
@@ -483,24 +483,24 @@ See [Browser compatibility](#Browser_compatibility) for notes on browser support
|
|
|
483
483
|
|
|
484
484
|
It's unnecessary to specify the charset attribute, because documents must use UTF-8, and the script element inherits its character encoding from the document.`},{name:"define:vars",description:"Passes serializable server-side variables into a client-side script element",references:[{name:"Astro reference",url:"https://docs.astro.build/en/reference/directives-reference/#definevars"}]},{name:"hoist",description:`**Deprecated in Astro >= 0.26.0**
|
|
485
485
|
|
|
486
|
-
Builds, optimizes, and bundles your script with the other JavaScript on the page`,valueSet:"v",references:[{name:"Astro reference",url:"https://docs.astro.build/en/core-concepts/astro-components/#using-hoisted-scripts"}]},{name:"is:inline",description:"Leave a script tag inline in the page template. No processing will be done on its content",valueSet:"v",references:[{name:"Astro reference",url:"https://docs.astro.build/en/reference/directives-reference/#isinline"}]}]},{name:"style",attributes:[{name:"define:vars",description:"Passes serializable server-side variables into a client-side style element",references:[{name:"Astro reference",url:"https://docs.astro.build/en/reference/directives-reference/#definevars"}]},{name:"global",description:"**Deprecated in favor of `is:global` in >= Astro 0.26.0**\n\nOpts-out of automatic CSS scoping, all contents will be available globally",valueSet:"v",references:[{name:"Astro reference",url:"https://docs.astro.build/en/reference/directives-reference/#isglobal"}]},{name:"is:global",description:"Opts-out of automatic CSS scoping, all contents will be available globally",valueSet:"v",references:[{name:"Astro reference",url:"https://docs.astro.build/en/reference/directives-reference/#isglobal"}]},{name:"is:inline",description:"Leave a style tag inline in the page template. No processing will be done on its content",valueSet:"v",references:[{name:"Astro reference",url:"https://docs.astro.build/en/reference/directives-reference/#isinline"}]}]}]});cr.astroAttributes=(0,Ys.newHTMLDataProvider)("astro-attributes",{version:1,globalAttributes:[{name:"set:html",description:"Inject unescaped HTML into this tag",references:[{name:"Astro reference",url:"https://docs.astro.build/en/reference/directives-reference/#sethtml"}]},{name:"set:text",description:"Inject escaped text into this tag",references:[{name:"Astro reference",url:"https://docs.astro.build/en/reference/directives-reference/#settext"}]},{name:"is:raw",description:"Instructs the Astro compiler to treat any children of this element as text",valueSet:"v",references:[{name:"Astro reference",url:"https://docs.astro.build/en/reference/directives-reference/#israw"}]},pF]});cr.astroDirectives=(0,Ys.newHTMLDataProvider)("astro-directives",{version:1,globalAttributes:[{name:"client:load",description:"Start importing the component JS at page load. Hydrate the component when import completes.",valueSet:"v",references:[{name:"Astro reference",url:"https://docs.astro.build/en/reference/directives-reference/#clientload"}]},{name:"client:idle",description:"Start importing the component JS as soon as main thread is free (uses requestIdleCallback()). Hydrate the component when import completes.",valueSet:"v",references:[{name:"Astro reference",url:"https://docs.astro.build/en/reference/directives-reference/#clientidle"}]},{name:"client:visible",description:"Start importing the component JS as soon as the element enters the viewport (uses IntersectionObserver). Hydrate the component when import completes. Useful for content lower down on the page.",valueSet:"v",references:[{name:"Astro reference",url:"https://docs.astro.build/en/reference/directives-reference/#clientvisible"}]},{name:"client:media",description:"Start importing the component JS as soon as the browser matches the given media query (uses matchMedia). Hydrate the component when import completes. Useful for sidebar toggles, or other elements that should only display on mobile or desktop devices.",references:[{name:"Astro reference",url:"https://docs.astro.build/en/reference/directives-reference/#clientmedia"}]},{name:"client:only",description:"Start importing the component JS at page load and hydrate when the import completes, similar to client:load. The component will be skipped at build time, useful for components that are entirely dependent on client-side APIs. This is best avoided unless absolutely needed, in most cases it is best to render placeholder content on the server and delay any browser API calls until the component hydrates in the browser.",valueSet:"v",references:[{name:"Astro reference",url:"https://docs.astro.build/en/reference/directives-reference/#clientonly"}]}]})});var Vp=X(Gl=>{"use strict";Object.defineProperty(Gl,"__esModule",{value:!0});Gl.removeDataAttrCompletion=void 0;function mF(t){return t.filter(e=>!e.label.startsWith("data-"))}Gl.removeDataAttrCompletion=mF});var Ay=X((Jl,Fy)=>{(function(t,e){typeof Jl=="object"&&typeof Fy<"u"?e(Jl):typeof define=="function"&&define.amd?define(["exports"],e):(t=typeof globalThis<"u"?globalThis:t||self,e(t.sourcemapCodec={}))})(Jl,function(t){"use strict";let e=",".charCodeAt(0),n=";".charCodeAt(0),r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",i=new Uint8Array(64),o=new Uint8Array(128);for(let v=0;v<r.length;v++){let x=r.charCodeAt(v);i[v]=x,o[x]=v}let s=typeof TextDecoder<"u"?new TextDecoder:typeof Buffer<"u"?{decode(v){return Buffer.from(v.buffer,v.byteOffset,v.byteLength).toString()}}:{decode(v){let x="";for(let _=0;_<v.length;_++)x+=String.fromCharCode(v[_]);return x}};function l(v){let x=new Int32Array(5),_=[],f=0;do{let g=a(v,f),D=[],L=!0,K=0;x[0]=0;for(let C=f;C<g;C++){let T;C=c(v,C,x,0);let M=x[0];M<K&&(L=!1),K=M,u(v,C,g)?(C=c(v,C,x,1),C=c(v,C,x,2),C=c(v,C,x,3),u(v,C,g)?(C=c(v,C,x,4),T=[M,x[1],x[2],x[3],x[4]]):T=[M,x[1],x[2],x[3]]):T=[M],D.push(T)}L||d(D),_.push(D),f=g+1}while(f<=v.length);return _}function a(v,x){let _=v.indexOf(";",x);return _===-1?v.length:_}function c(v,x,_,f){let g=0,D=0,L=0;do{let C=v.charCodeAt(x++);L=o[C],g|=(L&31)<<D,D+=5}while(L&32);let K=g&1;return g>>>=1,K&&(g=-2147483648|-g),_[f]+=g,x}function u(v,x,_){return x>=_?!1:v.charCodeAt(x)!==e}function d(v){v.sort(h)}function h(v,x){return v[0]-x[0]}function p(v){let x=new Int32Array(5),_=1024*16,f=_-36,g=new Uint8Array(_),D=g.subarray(0,f),L=0,K="";for(let C=0;C<v.length;C++){let T=v[C];if(C>0&&(L===_&&(K+=s.decode(g),L=0),g[L++]=n),T.length!==0){x[0]=0;for(let M=0;M<T.length;M++){let oe=T[M];L>f&&(K+=s.decode(D),g.copyWithin(0,f,L),L-=f),M>0&&(g[L++]=e),L=w(g,L,x,oe,0),oe.length!==1&&(L=w(g,L,x,oe,1),L=w(g,L,x,oe,2),L=w(g,L,x,oe,3),oe.length!==4&&(L=w(g,L,x,oe,4)))}}}return K+s.decode(g.subarray(0,L))}function w(v,x,_,f,g){let D=f[g],L=D-_[g];_[g]=D,L=L<0?-L<<1|1:L<<1;do{let K=L&31;L>>>=5,L>0&&(K|=32),v[x++]=i[K]}while(L>0);return x}t.decode=l,t.encode=p,Object.defineProperty(t,"__esModule",{value:!0})})});var Ry=X((Kp,Gp)=>{(function(t,e){typeof Kp=="object"&&typeof Gp<"u"?Gp.exports=e():typeof define=="function"&&define.amd?define(e):(t=typeof globalThis<"u"?globalThis:t||self,t.resolveURI=e())})(Kp,function(){"use strict";let t=/^[\w+.-]+:\/\//,e=/^([\w+.-]+:)\/\/([^@/#?]*@)?([^:/#?]*)(:\d+)?(\/[^#?]*)?(\?[^#]*)?(#.*)?/,n=/^file:(?:\/\/((?![a-z]:)[^/#?]*)?)?(\/?[^#?]*)(\?[^#]*)?(#.*)?/i;var r;(function(_){_[_.Empty=1]="Empty",_[_.Hash=2]="Hash",_[_.Query=3]="Query",_[_.RelativePath=4]="RelativePath",_[_.AbsolutePath=5]="AbsolutePath",_[_.SchemeRelative=6]="SchemeRelative",_[_.Absolute=7]="Absolute"})(r||(r={}));function i(_){return t.test(_)}function o(_){return _.startsWith("//")}function s(_){return _.startsWith("/")}function l(_){return _.startsWith("file:")}function a(_){return/^[.?#]/.test(_)}function c(_){let f=e.exec(_);return d(f[1],f[2]||"",f[3],f[4]||"",f[5]||"/",f[6]||"",f[7]||"")}function u(_){let f=n.exec(_),g=f[2];return d("file:","",f[1]||"","",s(g)?g:"/"+g,f[3]||"",f[4]||"")}function d(_,f,g,D,L,K,C){return{scheme:_,user:f,host:g,port:D,path:L,query:K,hash:C,type:r.Absolute}}function h(_){if(o(_)){let g=c("http:"+_);return g.scheme="",g.type=r.SchemeRelative,g}if(s(_)){let g=c("http://foo.com"+_);return g.scheme="",g.host="",g.type=r.AbsolutePath,g}if(l(_))return u(_);if(i(_))return c(_);let f=c("http://foo.com/"+_);return f.scheme="",f.host="",f.type=_?_.startsWith("?")?r.Query:_.startsWith("#")?r.Hash:r.RelativePath:r.Empty,f}function p(_){if(_.endsWith("/.."))return _;let f=_.lastIndexOf("/");return _.slice(0,f+1)}function w(_,f){v(f,f.type),_.path==="/"?_.path=f.path:_.path=p(f.path)+_.path}function v(_,f){let g=f<=r.RelativePath,D=_.path.split("/"),L=1,K=0,C=!1;for(let M=1;M<D.length;M++){let oe=D[M];if(!oe){C=!0;continue}if(C=!1,oe!=="."){if(oe===".."){K?(C=!0,K--,L--):g&&(D[L++]=oe);continue}D[L++]=oe,K++}}let T="";for(let M=1;M<L;M++)T+="/"+D[M];(!T||C&&!T.endsWith("/.."))&&(T+="/"),_.path=T}function x(_,f){if(!_&&!f)return"";let g=h(_),D=g.type;if(f&&D!==r.Absolute){let K=h(f),C=K.type;switch(D){case r.Empty:g.hash=K.hash;case r.Hash:g.query=K.query;case r.Query:case r.RelativePath:w(g,K);case r.AbsolutePath:g.user=K.user,g.host=K.host,g.port=K.port;case r.SchemeRelative:g.scheme=K.scheme}C>D&&(D=C)}v(g,D);let L=g.query+g.hash;switch(D){case r.Hash:case r.Query:return L;case r.RelativePath:{let K=g.path.slice(1);return K?a(f||_)&&!a(K)?"./"+K+L:K+L:L||"."}case r.AbsolutePath:return g.path+L;default:return g.scheme+"//"+g.user+g.host+g.port+g.path+L}}return x})});var Jp=X((Xl,Iy)=>{(function(t,e){typeof Xl=="object"&&typeof Iy<"u"?e(Xl,Ay(),Ry()):typeof define=="function"&&define.amd?define(["exports","@jridgewell/sourcemap-codec","@jridgewell/resolve-uri"],e):(t=typeof globalThis<"u"?globalThis:t||self,e(t.traceMapping={},t.sourcemapCodec,t.resolveURI))})(Xl,function(t,e,n){"use strict";function r(B){return B&&typeof B=="object"&&"default"in B?B:{default:B}}var i=r(n);function o(B,Y){return Y&&!Y.endsWith("/")&&(Y+="/"),i.default(B,Y)}function s(B){if(!B)return"";let Y=B.lastIndexOf("/");return B.slice(0,Y+1)}let l=0,a=1,c=2,u=3,d=4,h=1,p=2;function w(B,Y){let ie=v(B,0);if(ie===B.length)return B;Y||(B=B.slice());for(let le=ie;le<B.length;le=v(B,le+1))B[le]=_(B[le],Y);return B}function v(B,Y){for(let ie=Y;ie<B.length;ie++)if(!x(B[ie]))return ie;return B.length}function x(B){for(let Y=1;Y<B.length;Y++)if(B[Y][l]<B[Y-1][l])return!1;return!0}function _(B,Y){return Y||(B=B.slice()),B.sort(f)}function f(B,Y){return B[l]-Y[l]}let g=!1;function D(B,Y,ie,le){for(;ie<=le;){let Ce=ie+(le-ie>>1),ge=B[Ce][l]-Y;if(ge===0)return g=!0,Ce;ge<0?ie=Ce+1:le=Ce-1}return g=!1,ie-1}function L(B,Y,ie){for(let le=ie+1;le<B.length&&B[le][l]===Y;ie=le++);return ie}function K(B,Y,ie){for(let le=ie-1;le>=0&&B[le][l]===Y;ie=le--);return ie}function C(){return{lastKey:-1,lastNeedle:-1,lastIndex:-1}}function T(B,Y,ie,le){let{lastKey:Ce,lastNeedle:ge,lastIndex:Ae}=ie,Te=0,Re=B.length-1;if(le===Ce){if(Y===ge)return g=Ae!==-1&&B[Ae][l]===Y,Ae;Y>=ge?Te=Ae===-1?0:Ae:Re=Ae}return ie.lastKey=le,ie.lastNeedle=Y,ie.lastIndex=D(B,Y,Te,Re)}function M(B,Y){let ie=Y.map(N);for(let le=0;le<B.length;le++){let Ce=B[le];for(let ge=0;ge<Ce.length;ge++){let Ae=Ce[ge];if(Ae.length===1)continue;let Te=Ae[a],Re=Ae[c],Ue=Ae[u],Je=ie[Te],Xe=Je[Re]||(Je[Re]=[]),st=Y[Te],rt=L(Xe,Ue,T(Xe,Ue,st,Re));oe(Xe,st.lastIndex=rt+1,[Ue,le,Ae[l]])}}return ie}function oe(B,Y,ie){for(let le=B.length;le>Y;le--)B[le]=B[le-1];B[Y]=ie}function N(){return{__proto__:null}}let W=function(B,Y){let ie=typeof B=="string"?JSON.parse(B):B;if(!("sections"in ie))return new de(ie,Y);let le=[],Ce=[],ge=[],Ae=[];V(ie,Y,le,Ce,ge,Ae,0,0,1/0,1/0);let Te={version:3,file:ie.file,names:Ae,sources:Ce,sourcesContent:ge,mappings:le};return t.presortedDecodedMap(Te)};function V(B,Y,ie,le,Ce,ge,Ae,Te,Re,Ue){let{sections:Je}=B;for(let Xe=0;Xe<Je.length;Xe++){let{map:st,offset:rt}=Je[Xe],Ot=Re,Yn=Ue;if(Xe+1<Je.length){let St=Je[Xe+1].offset;Ot=Math.min(Re,Ae+St.line),Ot===Re?Yn=Math.min(Ue,Te+St.column):Ot<Re&&(Yn=Te+St.column)}G(st,Y,ie,le,Ce,ge,Ae+rt.line,Te+rt.column,Ot,Yn)}}function G(B,Y,ie,le,Ce,ge,Ae,Te,Re,Ue){if("sections"in B)return V(...arguments);let Je=new de(B,Y),Xe=le.length,st=ge.length,rt=t.decodedMappings(Je),{resolvedSources:Ot,sourcesContent:Yn}=Je;if(U(le,Ot),U(ge,Je.names),Yn)U(Ce,Yn);else for(let St=0;St<Ot.length;St++)Ce.push(null);for(let St=0;St<rt.length;St++){let Zn=Ae+St;if(Zn>Re)return;let Ai=P(ie,Zn),Ri=St===0?Te:0,Ii=rt[St];for(let pn=0;pn<Ii.length;pn++){let I=Ii[pn],Z=Ri+I[l];if(Zn===Re&&Z>=Ue)return;if(I.length===1){Ai.push([Z]);continue}let he=Xe+I[a],be=I[c],He=I[u];Ai.push(I.length===4?[Z,he,be,He]:[Z,he,be,He,st+I[d]])}}}function U(B,Y){for(let ie=0;ie<Y.length;ie++)B.push(Y[ie])}function P(B,Y){for(let ie=B.length;ie<=Y;ie++)B[ie]=[];return B[Y]}let R="`line` must be greater than 0 (lines start at line 1)",J="`column` must be greater than or equal to 0 (columns start at column 0)",Q=-1,re=1;t.encodedMappings=void 0,t.decodedMappings=void 0,t.traceSegment=void 0,t.originalPositionFor=void 0,t.generatedPositionFor=void 0,t.eachMapping=void 0,t.sourceContentFor=void 0,t.presortedDecodedMap=void 0,t.decodedMap=void 0,t.encodedMap=void 0;class de{constructor(Y,ie){let le=typeof Y=="string";if(!le&&Y._decodedMemo)return Y;let Ce=le?JSON.parse(Y):Y,{version:ge,file:Ae,names:Te,sourceRoot:Re,sources:Ue,sourcesContent:Je}=Ce;this.version=ge,this.file=Ae,this.names=Te,this.sourceRoot=Re,this.sources=Ue,this.sourcesContent=Je;let Xe=o(Re||"",s(ie));this.resolvedSources=Ue.map(rt=>o(rt||"",Xe));let{mappings:st}=Ce;typeof st=="string"?(this._encoded=st,this._decoded=void 0):(this._encoded=void 0,this._decoded=w(st,le)),this._decodedMemo=C(),this._bySources=void 0,this._bySourceMemos=void 0}}t.encodedMappings=B=>{var Y;return(Y=B._encoded)!==null&&Y!==void 0?Y:B._encoded=e.encode(B._decoded)},t.decodedMappings=B=>B._decoded||(B._decoded=e.decode(B._encoded)),t.traceSegment=(B,Y,ie)=>{let le=t.decodedMappings(B);return Y>=le.length?null:xe(le[Y],B._decodedMemo,Y,ie,re)},t.originalPositionFor=(B,{line:Y,column:ie,bias:le})=>{if(Y--,Y<0)throw new Error(R);if(ie<0)throw new Error(J);let Ce=t.decodedMappings(B);if(Y>=Ce.length)return ae(null,null,null,null);let ge=xe(Ce[Y],B._decodedMemo,Y,ie,le||re);if(ge==null||ge.length==1)return ae(null,null,null,null);let{names:Ae,resolvedSources:Te}=B;return ae(Te[ge[a]],ge[c]+1,ge[u],ge.length===5?Ae[ge[d]]:null)},t.generatedPositionFor=(B,{source:Y,line:ie,column:le,bias:Ce})=>{if(ie--,ie<0)throw new Error(R);if(le<0)throw new Error(J);let{sources:ge,resolvedSources:Ae}=B,Te=ge.indexOf(Y);if(Te===-1&&(Te=Ae.indexOf(Y)),Te===-1)return pe(null,null);let Re=B._bySources||(B._bySources=M(t.decodedMappings(B),B._bySourceMemos=ge.map(C))),Ue=B._bySourceMemos,Je=Re[Te][ie];if(Je==null)return pe(null,null);let Xe=xe(Je,Ue[Te],ie,le,Ce||re);return Xe==null?pe(null,null):pe(Xe[h]+1,Xe[p])},t.eachMapping=(B,Y)=>{let ie=t.decodedMappings(B),{names:le,resolvedSources:Ce}=B;for(let ge=0;ge<ie.length;ge++){let Ae=ie[ge];for(let Te=0;Te<Ae.length;Te++){let Re=Ae[Te],Ue=ge+1,Je=Re[0],Xe=null,st=null,rt=null,Ot=null;Re.length!==1&&(Xe=Ce[Re[1]],st=Re[2]+1,rt=Re[3]),Re.length===5&&(Ot=le[Re[4]]),Y({generatedLine:Ue,generatedColumn:Je,source:Xe,originalLine:st,originalColumn:rt,name:Ot})}}},t.sourceContentFor=(B,Y)=>{let{sources:ie,resolvedSources:le,sourcesContent:Ce}=B;if(Ce==null)return null;let ge=ie.indexOf(Y);return ge===-1&&(ge=le.indexOf(Y)),ge===-1?null:Ce[ge]},t.presortedDecodedMap=(B,Y)=>{let ie=new de(se(B,[]),Y);return ie._decoded=B.mappings,ie},t.decodedMap=B=>se(B,t.decodedMappings(B)),t.encodedMap=B=>se(B,t.encodedMappings(B));function se(B,Y){return{version:B.version,file:B.file,names:B.names,sourceRoot:B.sourceRoot,sources:B.sources,sourcesContent:B.sourcesContent,mappings:Y}}function ae(B,Y,ie,le){return{source:B,line:Y,column:ie,name:le}}function pe(B,Y){return{line:B,column:Y}}function xe(B,Y,ie,le,Ce){let ge=T(B,le,Y,ie);return g?ge=(Ce===Q?L:K)(B,le,ge):Ce===Q&&ge++,ge===-1||ge===B.length?null:B[ge]}t.AnyMap=W,t.GREATEST_LOWER_BOUND=re,t.LEAST_UPPER_BOUND=Q,t.TraceMap=de,Object.defineProperty(t,"__esModule",{value:!0})})});var Wy=X(Ie=>{"use strict";Object.defineProperty(Ie,"__esModule",{value:!0});Ie.mapSelectionRangeToParent=Ie.mapFoldingRangeToParent=Ie.mapScriptSpanStartToSnapshot=Ie.mapCodeActionToOriginal=Ie.mapTextDocumentEditToOriginal=Ie.mapLocationLinkToOriginal=Ie.mapSymbolInformationToOriginal=Ie.mapColorPresentationToOriginal=Ie.mapDiagnosticToGenerated=Ie.mapEditToOriginal=Ie.mapInsertReplaceEditToOriginal=Ie.mapObjWithRangeToOriginal=Ie.mapHoverToParent=Ie.mapCompletionItemToOriginal=Ie.mapRangeToGenerated=Ie.mapRangeToOriginal=Ie.ConsumerDocumentMapper=Ie.SourceMapDocumentMapper=Ie.FragmentMapper=Ie.IdentityMapper=void 0;var My=Jp(),Or=pt(),$i=ar(),Xp=class{constructor(e,n){this.url=e,this.parent=n}getOriginalPosition(e){return this.parent&&(e=this.getOriginalPosition(e)),e}getGeneratedPosition(e){return this.parent&&(e=this.getGeneratedPosition(e)),e}isInGenerated(e){return!(this.parent&&!this.parent.isInGenerated(e))}getURL(){return this.url}destroy(){this.parent?.destroy?.()}};Ie.IdentityMapper=Xp;var Qp=class{constructor(e,n,r){this.originalText=e,this.tagInfo=n,this.url=r,this.lineOffsetsOriginal=(0,$i.getLineOffsets)(this.originalText),this.lineOffsetsGenerated=(0,$i.getLineOffsets)(this.tagInfo.content)}getOriginalPosition(e){let n=this.offsetInParent((0,$i.offsetAt)(e,this.tagInfo.content,this.lineOffsetsGenerated));return(0,$i.positionAt)(n,this.originalText,this.lineOffsetsOriginal)}offsetInParent(e){return this.tagInfo.start+e}getGeneratedPosition(e){let n=(0,$i.offsetAt)(e,this.originalText,this.lineOffsetsOriginal)-this.tagInfo.start;return(0,$i.positionAt)(n,this.tagInfo.content,this.lineOffsetsGenerated)}isInGenerated(e){let n=(0,$i.offsetAt)(e,this.originalText,this.lineOffsetsOriginal);return n>=this.tagInfo.start&&n<=this.tagInfo.end}getURL(){return this.url}};Ie.FragmentMapper=Qp;var Ql=class{constructor(e,n,r){this.traceMap=e,this.sourceUri=n,this.parent=r}getOriginalPosition(e){if(this.parent&&(e=this.parent.getOriginalPosition(e)),e.line<0)return{line:-1,character:-1};let n=(0,My.originalPositionFor)(this.traceMap,{line:e.line+1,column:e.character});return n?(n.line===0&&console.log("Got 0 mapped line from",e,"col was",n.column),{line:(n.line||0)-1,character:n.column||0}):{line:-1,character:-1}}getGeneratedPosition(e){this.parent&&(e=this.parent.getGeneratedPosition(e));let n=(0,My.generatedPositionFor)(this.traceMap,{line:e.line+1,column:e.character,source:this.sourceUri});if(!n)return{line:-1,character:-1};let r={line:(n.line||0)-1,character:n.column||0};return r.line<0,r}isInGenerated(e){return this.parent&&!this.isInGenerated(e)?!1:this.getGeneratedPosition(e).line>=0}getURL(){return this.sourceUri}};Ie.SourceMapDocumentMapper=Ql;var Yp=class extends Ql{constructor(e,n,r){super(e,n),this.nrPrependesLines=r}getOriginalPosition(e){return super.getOriginalPosition(Or.Position.create(e.line-this.nrPrependesLines,e.character))}getGeneratedPosition(e){let n=super.getGeneratedPosition(e);return n.line+=this.nrPrependesLines,n}isInGenerated(){return!0}};Ie.ConsumerDocumentMapper=Yp;function ur(t,e){let n={start:t.getOriginalPosition(e.start),end:t.getOriginalPosition(e.end)};return n.start.line===n.end.line&&e.start.line===e.end.line&&n.end.character-n.start.character===e.end.character-e.start.character-1&&(n.end.character+=1),n}Ie.mapRangeToOriginal=ur;function Py(t,e){return Or.Range.create(t.getGeneratedPosition(e.start),t.getGeneratedPosition(e.end))}Ie.mapRangeToGenerated=Py;function fF(t,e){return e.textEdit?{...e,textEdit:Oy(t,e.textEdit)}:e}Ie.mapCompletionItemToOriginal=fF;function gF(t,e){return e.range?{...e,range:ur(t,e.range)}:e}Ie.mapHoverToParent=gF;function zo(t,e){return{...e,range:ur(t,e.range)}}Ie.mapObjWithRangeToOriginal=zo;function zy(t,e){return{...e,insert:ur(t,e.insert),replace:ur(t,e.replace)}}Ie.mapInsertReplaceEditToOriginal=zy;function Oy(t,e){return Or.TextEdit.is(e)?zo(t,e):zy(t,e)}Ie.mapEditToOriginal=Oy;function bF(t,e){return{...e,range:Py(t,e.range)}}Ie.mapDiagnosticToGenerated=bF;function vF(t,e){let n={...e};return n.textEdit&&(n.textEdit=zo(t,n.textEdit)),n.additionalTextEdits&&(n.additionalTextEdits=n.additionalTextEdits.map(r=>zo(t,r))),n}Ie.mapColorPresentationToOriginal=vF;function wF(t,e){return{...e,location:zo(t,e.location)}}Ie.mapSymbolInformationToOriginal=wF;function yF(t,e){return Or.LocationLink.create(e.targetUri,t.getURL()===e.targetUri?ur(t,e.targetRange):e.targetRange,t.getURL()===e.targetUri?ur(t,e.targetSelectionRange):e.targetSelectionRange,e.originSelectionRange?ur(t,e.originSelectionRange):void 0)}Ie.mapLocationLinkToOriginal=yF;function Ly(t,e){return e.textDocument.uri!==t.getURL()?e:Or.TextDocumentEdit.create(e.textDocument,e.edits.map(n=>zo(t,n)))}Ie.mapTextDocumentEditToOriginal=Ly;function _F(t,e){return Or.CodeAction.create(e.title,{documentChanges:e.edit.documentChanges.map(n=>Ly(t,n))},e.kind)}Ie.mapCodeActionToOriginal=_F;function SF(t,e,n){let r=e.getOriginalPosition(e.positionAt(t.start));return n.offsetAt(n.getGeneratedPosition(r))}Ie.mapScriptSpanStartToSnapshot=SF;function xF(t,e){let n=ur(t,Or.Range.create(e.startLine,e.startCharacter||0,e.endLine,e.endCharacter||0));return Or.FoldingRange.create(n.start.line,n.end.line,e.startCharacter?n.start.character:void 0,e.endCharacter?n.end.character:void 0,e.kind)}Ie.mapFoldingRangeToParent=xF;function Ny(t,e){let{range:n,parent:r}=e;return Or.SelectionRange.create(ur(t,n),r&&Ny(t,r))}Ie.mapSelectionRangeToParent=Ny});var Pt=X(jn=>{"use strict";var kF=jn&&jn.__createBinding||(Object.create?function(t,e,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(e,n);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,i)}:function(t,e,n,r){r===void 0&&(r=n),t[r]=e[n]}),Zs=jn&&jn.__exportStar||function(t,e){for(var n in t)n!=="default"&&!Object.prototype.hasOwnProperty.call(e,n)&&kF(e,t,n)};Object.defineProperty(jn,"__esModule",{value:!0});Zs(Hp(),jn);Zs(wp(),jn);Zs(Bp(),jn);Zs(Wy(),jn);Zs(ar(),jn)});var bt=X(ve=>{"use strict";Object.defineProperty(ve,"__esModule",{value:!0});ve.getScriptTagSnapshot=ve.getScriptTagLanguage=ve.isDocumentSymbolsPath=ve.ensureRealFilePath=ve.ensureRealAstroFilePath=ve.toRealAstroFilePath=ve.toVirtualFilePath=ve.toVirtualAstroFilePath=ve.isVirtualFilePath=ve.isVirtualSvelteFilePath=ve.isVirtualVueFilePath=ve.isVirtualAstroFilePath=ve.isFrameworkFilePath=ve.isAstroFilePath=ve.isVirtualFrameworkFilePath=ve.getFrameworkFromFilePath=ve.removeAstroComponentSuffix=ve.checkEndOfFileCodeInsert=ve.ensureFrontmatterInsert=ve.convertToLocationRange=ve.convertRange=ve.getScriptKindFromFileName=ve.isSubPath=ve.findTsConfigPath=ve.getExtensionFromScriptKind=ve.getCommitCharactersForScriptElement=ve.scriptElementKindToCompletionItemKind=ve.symbolKindFromString=ve.getSemanticTokenLegend=void 0;var qy=Hs(),ye=pt(),CF=Pt(),TF=dt();function EF(){let t=[];[[0,ye.SemanticTokenModifiers.declaration],[1,ye.SemanticTokenModifiers.static],[2,ye.SemanticTokenModifiers.async],[3,ye.SemanticTokenModifiers.readonly],[4,ye.SemanticTokenModifiers.defaultLibrary],[5,"local"]].forEach(([n,r])=>t[n]=r);let e=[];return[[0,ye.SemanticTokenTypes.class],[1,ye.SemanticTokenTypes.enum],[2,ye.SemanticTokenTypes.interface],[3,ye.SemanticTokenTypes.namespace],[4,ye.SemanticTokenTypes.typeParameter],[5,ye.SemanticTokenTypes.type],[6,ye.SemanticTokenTypes.parameter],[7,ye.SemanticTokenTypes.variable],[8,ye.SemanticTokenTypes.enumMember],[9,ye.SemanticTokenTypes.property],[10,ye.SemanticTokenTypes.function],[11,ye.SemanticTokenTypes.method]].forEach(([n,r])=>e[n]=r),{tokenModifiers:t,tokenTypes:e}}ve.getSemanticTokenLegend=EF;function DF(t){switch(t){case"module":return ye.SymbolKind.Module;case"class":return ye.SymbolKind.Class;case"local class":return ye.SymbolKind.Class;case"interface":return ye.SymbolKind.Interface;case"enum":return ye.SymbolKind.Enum;case"enum member":return ye.SymbolKind.Constant;case"var":return ye.SymbolKind.Variable;case"local var":return ye.SymbolKind.Variable;case"function":return ye.SymbolKind.Function;case"local function":return ye.SymbolKind.Function;case"method":return ye.SymbolKind.Method;case"getter":return ye.SymbolKind.Method;case"setter":return ye.SymbolKind.Method;case"property":return ye.SymbolKind.Property;case"constructor":return ye.SymbolKind.Constructor;case"parameter":return ye.SymbolKind.Variable;case"type parameter":return ye.SymbolKind.Variable;case"alias":return ye.SymbolKind.Variable;case"let":return ye.SymbolKind.Variable;case"const":return ye.SymbolKind.Constant;case"JSX attribute":return ye.SymbolKind.Property;default:return ye.SymbolKind.Variable}}ve.symbolKindFromString=DF;function FF(t,e){switch(t){case e.ScriptElementKind.primitiveType:case e.ScriptElementKind.keyword:return ye.CompletionItemKind.Keyword;case e.ScriptElementKind.constElement:return ye.CompletionItemKind.Constant;case e.ScriptElementKind.letElement:case e.ScriptElementKind.variableElement:case e.ScriptElementKind.localVariableElement:case e.ScriptElementKind.alias:return ye.CompletionItemKind.Variable;case e.ScriptElementKind.memberVariableElement:case e.ScriptElementKind.memberGetAccessorElement:case e.ScriptElementKind.memberSetAccessorElement:return ye.CompletionItemKind.Field;case e.ScriptElementKind.functionElement:return ye.CompletionItemKind.Function;case e.ScriptElementKind.memberFunctionElement:case e.ScriptElementKind.constructSignatureElement:case e.ScriptElementKind.callSignatureElement:case e.ScriptElementKind.indexSignatureElement:return ye.CompletionItemKind.Method;case e.ScriptElementKind.enumElement:return ye.CompletionItemKind.Enum;case e.ScriptElementKind.moduleElement:case e.ScriptElementKind.externalModuleName:return ye.CompletionItemKind.Module;case e.ScriptElementKind.classElement:case e.ScriptElementKind.typeElement:return ye.CompletionItemKind.Class;case e.ScriptElementKind.interfaceElement:return ye.CompletionItemKind.Interface;case e.ScriptElementKind.warning:case e.ScriptElementKind.scriptElement:return ye.CompletionItemKind.File;case e.ScriptElementKind.directory:return ye.CompletionItemKind.Folder;case e.ScriptElementKind.string:return ye.CompletionItemKind.Constant}return ye.CompletionItemKind.Property}ve.scriptElementKindToCompletionItemKind=FF;function AF(t,e){let n=[];switch(t){case e.ScriptElementKind.memberGetAccessorElement:case e.ScriptElementKind.memberSetAccessorElement:case e.ScriptElementKind.constructSignatureElement:case e.ScriptElementKind.callSignatureElement:case e.ScriptElementKind.indexSignatureElement:case e.ScriptElementKind.enumElement:case e.ScriptElementKind.interfaceElement:n.push(".");break;case e.ScriptElementKind.moduleElement:case e.ScriptElementKind.alias:case e.ScriptElementKind.constElement:case e.ScriptElementKind.letElement:case e.ScriptElementKind.variableElement:case e.ScriptElementKind.localVariableElement:case e.ScriptElementKind.memberVariableElement:case e.ScriptElementKind.classElement:case e.ScriptElementKind.functionElement:case e.ScriptElementKind.memberFunctionElement:n.push(".",","),n.push("(");break}return n.length===0?void 0:n}ve.getCommitCharactersForScriptElement=AF;function RF(t,e){switch(t){case e.ScriptKind.JSX:return e.Extension.Jsx;case e.ScriptKind.TS:return e.Extension.Ts;case e.ScriptKind.TSX:return e.Extension.Tsx;case e.ScriptKind.JSON:return e.Extension.Json;case e.ScriptKind.JS:default:return e.Extension.Js}}ve.getExtensionFromScriptKind=RF;function IF(t,e,n){let r=(0,qy.dirname)(t),i=n.findConfigFile(r,n.sys.fileExists,"tsconfig.json")||n.findConfigFile(r,n.sys.fileExists,"jsconfig.json")||"";return!!i&&e.some(o=>Uy(o,i))?i:""}ve.findTsConfigPath=IF;function Uy(t,e){return(0,TF.pathToUrl)(e).startsWith(t)}ve.isSubPath=Uy;function MF(t,e){switch(t.substring(t.lastIndexOf(".")).toLowerCase()){case e.Extension.Js:return e.ScriptKind.JS;case e.Extension.Jsx:return e.ScriptKind.JSX;case e.Extension.Ts:return e.ScriptKind.TS;case e.Extension.Tsx:return e.ScriptKind.TSX;case e.Extension.Json:return e.ScriptKind.JSON;default:return e.ScriptKind.Unknown}}ve.getScriptKindFromFileName=MF;function jy(t,e){return ye.Range.create(t.positionAt(e.start||0),t.positionAt((e.start||0)+(e.length||0)))}ve.convertRange=jy;function PF(t,e){let n=(0,CF.mapRangeToOriginal)(t,jy(t,e));return n.start.line<0&&(n.start.line=0,n.start.character=1),n.end.line<0&&(n.end=n.start),n}ve.convertToLocationRange=PF;function zF(t,e){if(e.astroMeta.frontmatter.state==="closed"){let n=e.positionAt(e.astroMeta.frontmatter.startOffset);return n.line+=1,n.character=t.start.character,ye.Range.create(n,n)}return t}ve.ensureFrontmatterInsert=zF;function OF(t,e){if(t.start.line>e.lineCount&&e.astroMeta.frontmatter.state==="closed"){let n=e.positionAt(e.astroMeta.frontmatter.endOffset);return ye.Range.create(n,n)}return t}ve.checkEndOfFileCodeInsert=OF;function LF(t){return t.replace(/(\w+)__AstroComponent_/,"$1")}ve.removeAstroComponentSuffix=LF;var Zp={ts:"ts",tsx:"tsx"};function NF(t){return t=Ky(t),(0,qy.extname)(t).substring(1)}ve.getFrameworkFromFilePath=NF;function Yl(t,e,n){return n.endsWith("."+t+"."+e)}ve.isVirtualFrameworkFilePath=Yl;function em(t){return t.endsWith(".astro")}ve.isAstroFilePath=em;function Hy(t){return t.endsWith(".svelte")||t.endsWith(".vue")}ve.isFrameworkFilePath=Hy;function Zl(t){return Yl("astro",Zp.tsx,t)}ve.isVirtualAstroFilePath=Zl;function By(t){return Yl("vue",Zp.tsx,t)}ve.isVirtualVueFilePath=By;function $y(t){return Yl("svelte",Zp.tsx,t)}ve.isVirtualSvelteFilePath=$y;function tm(t){return Zl(t)||By(t)||$y(t)}ve.isVirtualFilePath=tm;function WF(t){return Zl(t)?t:em(t)?`${t}.tsx`:t}ve.toVirtualAstroFilePath=WF;function qF(t){return tm(t)?t:Hy(t)||em(t)?`${t}.tsx`:t}ve.toVirtualFilePath=qF;function Vy(t){return t.slice(0,-4)}ve.toRealAstroFilePath=Vy;function UF(t){return Zl(t)?Vy(t):t}ve.ensureRealAstroFilePath=UF;function Ky(t){if(t=t.replace("?documentSymbols",""),tm(t)){let e=t.endsWith(".tsx")?4:3;return t.slice(0,t.length-e)}else return t}ve.ensureRealFilePath=Ky;function jF(t){return t.endsWith("?documentSymbols")}ve.isDocumentSymbolsPath=jF;function Gy(t){return Object.entries(t.attributes).length===0?"ts":"js"}ve.getScriptTagLanguage=Gy;function HF(t,e,n,r){let i=e.scriptTags.findIndex(c=>c.container.start==n.start),o=Gy(e.scriptTags[i]),s=t.filePath+`.__script${i}.${o}`,l=t.scriptTagSnapshots[i],a=0;return r&&(a=l.offsetAt(l.getGeneratedPosition(r))),{snapshot:l,filePath:s,index:i,offset:a}}ve.getScriptTagSnapshot=HF});var Jy=X(ec=>{"use strict";Object.defineProperty(ec,"__esModule",{value:!0});ec.CompletionsProviderImpl=void 0;var BF=(Xs(),Mi(Js)),di=pt(),nm=ar(),$F=$p(),VF=Vp(),KF=bt(),rm=class{constructor(e){this.lastCompletion=null,this.directivesHTMLLang=(0,BF.getLanguageService)({customDataProviders:[$F.astroDirectives],useDefaultDataProvider:!1}),this.languageServiceManager=e,this.ts=e.docContext.ts}async getCompletions(e,n,r){let i=[],o=e.html,s=e.offsetAt(n),l=o.findNodeAt(s),a=(0,nm.isInsideExpression)(e.getText(),l.start,s);if(r?.triggerCharacter==="-"&&l.parent===void 0&&!a){let c=this.getComponentScriptCompletion(e,n);c&&i.push(c)}if((0,nm.isInComponentStartTag)(o,s)&&!a){let{completions:c,componentFilePath:u}=await this.getPropCompletionsAndFilePath(e,n,r);if(c.length&&i.push(...c),!u?.endsWith(".astro")&&l.tag!=="Fragment"){let h=(0,VF.removeDataAttrCompletion)(this.directivesHTMLLang.doComplete(e,n,o).items);i.push(...h)}}return di.CompletionList.create(i,!0)}getComponentScriptCompletion(e,n){let r={kind:di.CompletionItemKind.Snippet,label:"---",sortText:"\0",preselect:!0,detail:"Create component script block",insertTextFormat:di.InsertTextFormat.Snippet,commitCharacters:[]},i=e.getLineUntilOffset(e.offsetAt(n));if(e.astroMeta.frontmatter.state===null)return{...r,insertText:`---
|
|
486
|
+
Builds, optimizes, and bundles your script with the other JavaScript on the page`,valueSet:"v",references:[{name:"Astro reference",url:"https://docs.astro.build/en/core-concepts/astro-components/#using-hoisted-scripts"}]},{name:"is:inline",description:"Leave a script tag inline in the page template. No processing will be done on its content",valueSet:"v",references:[{name:"Astro reference",url:"https://docs.astro.build/en/reference/directives-reference/#isinline"}]}]},{name:"style",attributes:[{name:"define:vars",description:"Passes serializable server-side variables into a client-side style element",references:[{name:"Astro reference",url:"https://docs.astro.build/en/reference/directives-reference/#definevars"}]},{name:"global",description:"**Deprecated in favor of `is:global` in >= Astro 0.26.0**\n\nOpts-out of automatic CSS scoping, all contents will be available globally",valueSet:"v",references:[{name:"Astro reference",url:"https://docs.astro.build/en/reference/directives-reference/#isglobal"}]},{name:"is:global",description:"Opts-out of automatic CSS scoping, all contents will be available globally",valueSet:"v",references:[{name:"Astro reference",url:"https://docs.astro.build/en/reference/directives-reference/#isglobal"}]},{name:"is:inline",description:"Leave a style tag inline in the page template. No processing will be done on its content",valueSet:"v",references:[{name:"Astro reference",url:"https://docs.astro.build/en/reference/directives-reference/#isinline"}]}]}]});cr.astroAttributes=(0,Ys.newHTMLDataProvider)("astro-attributes",{version:1,globalAttributes:[{name:"set:html",description:"Inject unescaped HTML into this tag",references:[{name:"Astro reference",url:"https://docs.astro.build/en/reference/directives-reference/#sethtml"}]},{name:"set:text",description:"Inject escaped text into this tag",references:[{name:"Astro reference",url:"https://docs.astro.build/en/reference/directives-reference/#settext"}]},{name:"is:raw",description:"Instructs the Astro compiler to treat any children of this element as text",valueSet:"v",references:[{name:"Astro reference",url:"https://docs.astro.build/en/reference/directives-reference/#israw"}]},pF]});cr.astroDirectives=(0,Ys.newHTMLDataProvider)("astro-directives",{version:1,globalAttributes:[{name:"client:load",description:"Start importing the component JS at page load. Hydrate the component when import completes.",valueSet:"v",references:[{name:"Astro reference",url:"https://docs.astro.build/en/reference/directives-reference/#clientload"}]},{name:"client:idle",description:"Start importing the component JS as soon as main thread is free (uses requestIdleCallback()). Hydrate the component when import completes.",valueSet:"v",references:[{name:"Astro reference",url:"https://docs.astro.build/en/reference/directives-reference/#clientidle"}]},{name:"client:visible",description:"Start importing the component JS as soon as the element enters the viewport (uses IntersectionObserver). Hydrate the component when import completes. Useful for content lower down on the page.",valueSet:"v",references:[{name:"Astro reference",url:"https://docs.astro.build/en/reference/directives-reference/#clientvisible"}]},{name:"client:media",description:"Start importing the component JS as soon as the browser matches the given media query (uses matchMedia). Hydrate the component when import completes. Useful for sidebar toggles, or other elements that should only display on mobile or desktop devices.",references:[{name:"Astro reference",url:"https://docs.astro.build/en/reference/directives-reference/#clientmedia"}]},{name:"client:only",description:"Start importing the component JS at page load and hydrate when the import completes, similar to client:load. The component will be skipped at build time, useful for components that are entirely dependent on client-side APIs. This is best avoided unless absolutely needed, in most cases it is best to render placeholder content on the server and delay any browser API calls until the component hydrates in the browser.",valueSet:"v",references:[{name:"Astro reference",url:"https://docs.astro.build/en/reference/directives-reference/#clientonly"}]}]})});var Vp=X(Gl=>{"use strict";Object.defineProperty(Gl,"__esModule",{value:!0});Gl.removeDataAttrCompletion=void 0;function mF(t){return t.filter(e=>!e.label.startsWith("data-"))}Gl.removeDataAttrCompletion=mF});var Ay=X((Jl,Fy)=>{(function(t,e){typeof Jl=="object"&&typeof Fy<"u"?e(Jl):typeof define=="function"&&define.amd?define(["exports"],e):(t=typeof globalThis<"u"?globalThis:t||self,e(t.sourcemapCodec={}))})(Jl,function(t){"use strict";let e=",".charCodeAt(0),n=";".charCodeAt(0),r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",i=new Uint8Array(64),o=new Uint8Array(128);for(let v=0;v<r.length;v++){let x=r.charCodeAt(v);i[v]=x,o[x]=v}let s=typeof TextDecoder<"u"?new TextDecoder:typeof Buffer<"u"?{decode(v){return Buffer.from(v.buffer,v.byteOffset,v.byteLength).toString()}}:{decode(v){let x="";for(let _=0;_<v.length;_++)x+=String.fromCharCode(v[_]);return x}};function l(v){let x=new Int32Array(5),_=[],f=0;do{let g=a(v,f),D=[],L=!0,K=0;x[0]=0;for(let C=f;C<g;C++){let T;C=c(v,C,x,0);let M=x[0];M<K&&(L=!1),K=M,u(v,C,g)?(C=c(v,C,x,1),C=c(v,C,x,2),C=c(v,C,x,3),u(v,C,g)?(C=c(v,C,x,4),T=[M,x[1],x[2],x[3],x[4]]):T=[M,x[1],x[2],x[3]]):T=[M],D.push(T)}L||d(D),_.push(D),f=g+1}while(f<=v.length);return _}function a(v,x){let _=v.indexOf(";",x);return _===-1?v.length:_}function c(v,x,_,f){let g=0,D=0,L=0;do{let C=v.charCodeAt(x++);L=o[C],g|=(L&31)<<D,D+=5}while(L&32);let K=g&1;return g>>>=1,K&&(g=-2147483648|-g),_[f]+=g,x}function u(v,x,_){return x>=_?!1:v.charCodeAt(x)!==e}function d(v){v.sort(h)}function h(v,x){return v[0]-x[0]}function p(v){let x=new Int32Array(5),_=1024*16,f=_-36,g=new Uint8Array(_),D=g.subarray(0,f),L=0,K="";for(let C=0;C<v.length;C++){let T=v[C];if(C>0&&(L===_&&(K+=s.decode(g),L=0),g[L++]=n),T.length!==0){x[0]=0;for(let M=0;M<T.length;M++){let oe=T[M];L>f&&(K+=s.decode(D),g.copyWithin(0,f,L),L-=f),M>0&&(g[L++]=e),L=w(g,L,x,oe,0),oe.length!==1&&(L=w(g,L,x,oe,1),L=w(g,L,x,oe,2),L=w(g,L,x,oe,3),oe.length!==4&&(L=w(g,L,x,oe,4)))}}}return K+s.decode(g.subarray(0,L))}function w(v,x,_,f,g){let D=f[g],L=D-_[g];_[g]=D,L=L<0?-L<<1|1:L<<1;do{let K=L&31;L>>>=5,L>0&&(K|=32),v[x++]=i[K]}while(L>0);return x}t.decode=l,t.encode=p,Object.defineProperty(t,"__esModule",{value:!0})})});var Ry=X((Kp,Gp)=>{(function(t,e){typeof Kp=="object"&&typeof Gp<"u"?Gp.exports=e():typeof define=="function"&&define.amd?define(e):(t=typeof globalThis<"u"?globalThis:t||self,t.resolveURI=e())})(Kp,function(){"use strict";let t=/^[\w+.-]+:\/\//,e=/^([\w+.-]+:)\/\/([^@/#?]*@)?([^:/#?]*)(:\d+)?(\/[^#?]*)?(\?[^#]*)?(#.*)?/,n=/^file:(?:\/\/((?![a-z]:)[^/#?]*)?)?(\/?[^#?]*)(\?[^#]*)?(#.*)?/i;var r;(function(_){_[_.Empty=1]="Empty",_[_.Hash=2]="Hash",_[_.Query=3]="Query",_[_.RelativePath=4]="RelativePath",_[_.AbsolutePath=5]="AbsolutePath",_[_.SchemeRelative=6]="SchemeRelative",_[_.Absolute=7]="Absolute"})(r||(r={}));function i(_){return t.test(_)}function o(_){return _.startsWith("//")}function s(_){return _.startsWith("/")}function l(_){return _.startsWith("file:")}function a(_){return/^[.?#]/.test(_)}function c(_){let f=e.exec(_);return d(f[1],f[2]||"",f[3],f[4]||"",f[5]||"/",f[6]||"",f[7]||"")}function u(_){let f=n.exec(_),g=f[2];return d("file:","",f[1]||"","",s(g)?g:"/"+g,f[3]||"",f[4]||"")}function d(_,f,g,D,L,K,C){return{scheme:_,user:f,host:g,port:D,path:L,query:K,hash:C,type:r.Absolute}}function h(_){if(o(_)){let g=c("http:"+_);return g.scheme="",g.type=r.SchemeRelative,g}if(s(_)){let g=c("http://foo.com"+_);return g.scheme="",g.host="",g.type=r.AbsolutePath,g}if(l(_))return u(_);if(i(_))return c(_);let f=c("http://foo.com/"+_);return f.scheme="",f.host="",f.type=_?_.startsWith("?")?r.Query:_.startsWith("#")?r.Hash:r.RelativePath:r.Empty,f}function p(_){if(_.endsWith("/.."))return _;let f=_.lastIndexOf("/");return _.slice(0,f+1)}function w(_,f){v(f,f.type),_.path==="/"?_.path=f.path:_.path=p(f.path)+_.path}function v(_,f){let g=f<=r.RelativePath,D=_.path.split("/"),L=1,K=0,C=!1;for(let M=1;M<D.length;M++){let oe=D[M];if(!oe){C=!0;continue}if(C=!1,oe!=="."){if(oe===".."){K?(C=!0,K--,L--):g&&(D[L++]=oe);continue}D[L++]=oe,K++}}let T="";for(let M=1;M<L;M++)T+="/"+D[M];(!T||C&&!T.endsWith("/.."))&&(T+="/"),_.path=T}function x(_,f){if(!_&&!f)return"";let g=h(_),D=g.type;if(f&&D!==r.Absolute){let K=h(f),C=K.type;switch(D){case r.Empty:g.hash=K.hash;case r.Hash:g.query=K.query;case r.Query:case r.RelativePath:w(g,K);case r.AbsolutePath:g.user=K.user,g.host=K.host,g.port=K.port;case r.SchemeRelative:g.scheme=K.scheme}C>D&&(D=C)}v(g,D);let L=g.query+g.hash;switch(D){case r.Hash:case r.Query:return L;case r.RelativePath:{let K=g.path.slice(1);return K?a(f||_)&&!a(K)?"./"+K+L:K+L:L||"."}case r.AbsolutePath:return g.path+L;default:return g.scheme+"//"+g.user+g.host+g.port+g.path+L}}return x})});var Jp=X((Xl,Iy)=>{(function(t,e){typeof Xl=="object"&&typeof Iy<"u"?e(Xl,Ay(),Ry()):typeof define=="function"&&define.amd?define(["exports","@jridgewell/sourcemap-codec","@jridgewell/resolve-uri"],e):(t=typeof globalThis<"u"?globalThis:t||self,e(t.traceMapping={},t.sourcemapCodec,t.resolveURI))})(Xl,function(t,e,n){"use strict";function r(B){return B&&typeof B=="object"&&"default"in B?B:{default:B}}var i=r(n);function o(B,Y){return Y&&!Y.endsWith("/")&&(Y+="/"),i.default(B,Y)}function s(B){if(!B)return"";let Y=B.lastIndexOf("/");return B.slice(0,Y+1)}let l=0,a=1,c=2,u=3,d=4,h=1,p=2;function w(B,Y){let ie=v(B,0);if(ie===B.length)return B;Y||(B=B.slice());for(let le=ie;le<B.length;le=v(B,le+1))B[le]=_(B[le],Y);return B}function v(B,Y){for(let ie=Y;ie<B.length;ie++)if(!x(B[ie]))return ie;return B.length}function x(B){for(let Y=1;Y<B.length;Y++)if(B[Y][l]<B[Y-1][l])return!1;return!0}function _(B,Y){return Y||(B=B.slice()),B.sort(f)}function f(B,Y){return B[l]-Y[l]}let g=!1;function D(B,Y,ie,le){for(;ie<=le;){let Ce=ie+(le-ie>>1),ge=B[Ce][l]-Y;if(ge===0)return g=!0,Ce;ge<0?ie=Ce+1:le=Ce-1}return g=!1,ie-1}function L(B,Y,ie){for(let le=ie+1;le<B.length&&B[le][l]===Y;ie=le++);return ie}function K(B,Y,ie){for(let le=ie-1;le>=0&&B[le][l]===Y;ie=le--);return ie}function C(){return{lastKey:-1,lastNeedle:-1,lastIndex:-1}}function T(B,Y,ie,le){let{lastKey:Ce,lastNeedle:ge,lastIndex:Ae}=ie,Te=0,Re=B.length-1;if(le===Ce){if(Y===ge)return g=Ae!==-1&&B[Ae][l]===Y,Ae;Y>=ge?Te=Ae===-1?0:Ae:Re=Ae}return ie.lastKey=le,ie.lastNeedle=Y,ie.lastIndex=D(B,Y,Te,Re)}function M(B,Y){let ie=Y.map(N);for(let le=0;le<B.length;le++){let Ce=B[le];for(let ge=0;ge<Ce.length;ge++){let Ae=Ce[ge];if(Ae.length===1)continue;let Te=Ae[a],Re=Ae[c],Ue=Ae[u],Je=ie[Te],Xe=Je[Re]||(Je[Re]=[]),st=Y[Te],rt=L(Xe,Ue,T(Xe,Ue,st,Re));oe(Xe,st.lastIndex=rt+1,[Ue,le,Ae[l]])}}return ie}function oe(B,Y,ie){for(let le=B.length;le>Y;le--)B[le]=B[le-1];B[Y]=ie}function N(){return{__proto__:null}}let W=function(B,Y){let ie=typeof B=="string"?JSON.parse(B):B;if(!("sections"in ie))return new de(ie,Y);let le=[],Ce=[],ge=[],Ae=[];V(ie,Y,le,Ce,ge,Ae,0,0,1/0,1/0);let Te={version:3,file:ie.file,names:Ae,sources:Ce,sourcesContent:ge,mappings:le};return t.presortedDecodedMap(Te)};function V(B,Y,ie,le,Ce,ge,Ae,Te,Re,Ue){let{sections:Je}=B;for(let Xe=0;Xe<Je.length;Xe++){let{map:st,offset:rt}=Je[Xe],Ot=Re,Yn=Ue;if(Xe+1<Je.length){let St=Je[Xe+1].offset;Ot=Math.min(Re,Ae+St.line),Ot===Re?Yn=Math.min(Ue,Te+St.column):Ot<Re&&(Yn=Te+St.column)}G(st,Y,ie,le,Ce,ge,Ae+rt.line,Te+rt.column,Ot,Yn)}}function G(B,Y,ie,le,Ce,ge,Ae,Te,Re,Ue){if("sections"in B)return V(...arguments);let Je=new de(B,Y),Xe=le.length,st=ge.length,rt=t.decodedMappings(Je),{resolvedSources:Ot,sourcesContent:Yn}=Je;if(U(le,Ot),U(ge,Je.names),Yn)U(Ce,Yn);else for(let St=0;St<Ot.length;St++)Ce.push(null);for(let St=0;St<rt.length;St++){let Zn=Ae+St;if(Zn>Re)return;let Ai=P(ie,Zn),Ri=St===0?Te:0,Ii=rt[St];for(let pn=0;pn<Ii.length;pn++){let I=Ii[pn],Z=Ri+I[l];if(Zn===Re&&Z>=Ue)return;if(I.length===1){Ai.push([Z]);continue}let he=Xe+I[a],be=I[c],He=I[u];Ai.push(I.length===4?[Z,he,be,He]:[Z,he,be,He,st+I[d]])}}}function U(B,Y){for(let ie=0;ie<Y.length;ie++)B.push(Y[ie])}function P(B,Y){for(let ie=B.length;ie<=Y;ie++)B[ie]=[];return B[Y]}let R="`line` must be greater than 0 (lines start at line 1)",J="`column` must be greater than or equal to 0 (columns start at column 0)",Q=-1,re=1;t.encodedMappings=void 0,t.decodedMappings=void 0,t.traceSegment=void 0,t.originalPositionFor=void 0,t.generatedPositionFor=void 0,t.eachMapping=void 0,t.sourceContentFor=void 0,t.presortedDecodedMap=void 0,t.decodedMap=void 0,t.encodedMap=void 0;class de{constructor(Y,ie){let le=typeof Y=="string";if(!le&&Y._decodedMemo)return Y;let Ce=le?JSON.parse(Y):Y,{version:ge,file:Ae,names:Te,sourceRoot:Re,sources:Ue,sourcesContent:Je}=Ce;this.version=ge,this.file=Ae,this.names=Te,this.sourceRoot=Re,this.sources=Ue,this.sourcesContent=Je;let Xe=o(Re||"",s(ie));this.resolvedSources=Ue.map(rt=>o(rt||"",Xe));let{mappings:st}=Ce;typeof st=="string"?(this._encoded=st,this._decoded=void 0):(this._encoded=void 0,this._decoded=w(st,le)),this._decodedMemo=C(),this._bySources=void 0,this._bySourceMemos=void 0}}t.encodedMappings=B=>{var Y;return(Y=B._encoded)!==null&&Y!==void 0?Y:B._encoded=e.encode(B._decoded)},t.decodedMappings=B=>B._decoded||(B._decoded=e.decode(B._encoded)),t.traceSegment=(B,Y,ie)=>{let le=t.decodedMappings(B);return Y>=le.length?null:xe(le[Y],B._decodedMemo,Y,ie,re)},t.originalPositionFor=(B,{line:Y,column:ie,bias:le})=>{if(Y--,Y<0)throw new Error(R);if(ie<0)throw new Error(J);let Ce=t.decodedMappings(B);if(Y>=Ce.length)return ae(null,null,null,null);let ge=xe(Ce[Y],B._decodedMemo,Y,ie,le||re);if(ge==null||ge.length==1)return ae(null,null,null,null);let{names:Ae,resolvedSources:Te}=B;return ae(Te[ge[a]],ge[c]+1,ge[u],ge.length===5?Ae[ge[d]]:null)},t.generatedPositionFor=(B,{source:Y,line:ie,column:le,bias:Ce})=>{if(ie--,ie<0)throw new Error(R);if(le<0)throw new Error(J);let{sources:ge,resolvedSources:Ae}=B,Te=ge.indexOf(Y);if(Te===-1&&(Te=Ae.indexOf(Y)),Te===-1)return pe(null,null);let Re=B._bySources||(B._bySources=M(t.decodedMappings(B),B._bySourceMemos=ge.map(C))),Ue=B._bySourceMemos,Je=Re[Te][ie];if(Je==null)return pe(null,null);let Xe=xe(Je,Ue[Te],ie,le,Ce||re);return Xe==null?pe(null,null):pe(Xe[h]+1,Xe[p])},t.eachMapping=(B,Y)=>{let ie=t.decodedMappings(B),{names:le,resolvedSources:Ce}=B;for(let ge=0;ge<ie.length;ge++){let Ae=ie[ge];for(let Te=0;Te<Ae.length;Te++){let Re=Ae[Te],Ue=ge+1,Je=Re[0],Xe=null,st=null,rt=null,Ot=null;Re.length!==1&&(Xe=Ce[Re[1]],st=Re[2]+1,rt=Re[3]),Re.length===5&&(Ot=le[Re[4]]),Y({generatedLine:Ue,generatedColumn:Je,source:Xe,originalLine:st,originalColumn:rt,name:Ot})}}},t.sourceContentFor=(B,Y)=>{let{sources:ie,resolvedSources:le,sourcesContent:Ce}=B;if(Ce==null)return null;let ge=ie.indexOf(Y);return ge===-1&&(ge=le.indexOf(Y)),ge===-1?null:Ce[ge]},t.presortedDecodedMap=(B,Y)=>{let ie=new de(se(B,[]),Y);return ie._decoded=B.mappings,ie},t.decodedMap=B=>se(B,t.decodedMappings(B)),t.encodedMap=B=>se(B,t.encodedMappings(B));function se(B,Y){return{version:B.version,file:B.file,names:B.names,sourceRoot:B.sourceRoot,sources:B.sources,sourcesContent:B.sourcesContent,mappings:Y}}function ae(B,Y,ie,le){return{source:B,line:Y,column:ie,name:le}}function pe(B,Y){return{line:B,column:Y}}function xe(B,Y,ie,le,Ce){let ge=T(B,le,Y,ie);return g?ge=(Ce===Q?L:K)(B,le,ge):Ce===Q&&ge++,ge===-1||ge===B.length?null:B[ge]}t.AnyMap=W,t.GREATEST_LOWER_BOUND=re,t.LEAST_UPPER_BOUND=Q,t.TraceMap=de,Object.defineProperty(t,"__esModule",{value:!0})})});var Wy=X(Ie=>{"use strict";Object.defineProperty(Ie,"__esModule",{value:!0});Ie.mapSelectionRangeToParent=Ie.mapFoldingRangeToParent=Ie.mapScriptSpanStartToSnapshot=Ie.mapCodeActionToOriginal=Ie.mapTextDocumentEditToOriginal=Ie.mapLocationLinkToOriginal=Ie.mapSymbolInformationToOriginal=Ie.mapColorPresentationToOriginal=Ie.mapDiagnosticToGenerated=Ie.mapEditToOriginal=Ie.mapInsertReplaceEditToOriginal=Ie.mapObjWithRangeToOriginal=Ie.mapHoverToParent=Ie.mapCompletionItemToOriginal=Ie.mapRangeToGenerated=Ie.mapRangeToOriginal=Ie.ConsumerDocumentMapper=Ie.SourceMapDocumentMapper=Ie.FragmentMapper=Ie.IdentityMapper=void 0;var My=Jp(),Or=pt(),$i=ar(),Xp=class{constructor(e,n){this.url=e,this.parent=n}getOriginalPosition(e){return this.parent&&(e=this.getOriginalPosition(e)),e}getGeneratedPosition(e){return this.parent&&(e=this.getGeneratedPosition(e)),e}isInGenerated(e){return!(this.parent&&!this.parent.isInGenerated(e))}getURL(){return this.url}destroy(){this.parent?.destroy?.()}};Ie.IdentityMapper=Xp;var Qp=class{constructor(e,n,r){this.originalText=e,this.tagInfo=n,this.url=r,this.lineOffsetsOriginal=(0,$i.getLineOffsets)(this.originalText),this.lineOffsetsGenerated=(0,$i.getLineOffsets)(this.tagInfo.content)}getOriginalPosition(e){let n=this.offsetInParent((0,$i.offsetAt)(e,this.tagInfo.content,this.lineOffsetsGenerated));return(0,$i.positionAt)(n,this.originalText,this.lineOffsetsOriginal)}offsetInParent(e){return this.tagInfo.start+e}getGeneratedPosition(e){let n=(0,$i.offsetAt)(e,this.originalText,this.lineOffsetsOriginal)-this.tagInfo.start;return(0,$i.positionAt)(n,this.tagInfo.content,this.lineOffsetsGenerated)}isInGenerated(e){let n=(0,$i.offsetAt)(e,this.originalText,this.lineOffsetsOriginal);return n>=this.tagInfo.start&&n<=this.tagInfo.end}getURL(){return this.url}};Ie.FragmentMapper=Qp;var Ql=class{constructor(e,n,r){this.traceMap=e,this.sourceUri=n,this.parent=r}getOriginalPosition(e){if(this.parent&&(e=this.parent.getOriginalPosition(e)),e.line<0)return{line:-1,character:-1};let n=(0,My.originalPositionFor)(this.traceMap,{line:e.line+1,column:e.character});return n?(n.line===0&&console.log("Got 0 mapped line from",e,"col was",n.column),{line:(n.line||0)-1,character:n.column||0}):{line:-1,character:-1}}getGeneratedPosition(e){this.parent&&(e=this.parent.getGeneratedPosition(e));let n=(0,My.generatedPositionFor)(this.traceMap,{line:e.line+1,column:e.character,source:this.sourceUri});if(!n)return{line:-1,character:-1};let r={line:(n.line||0)-1,character:n.column||0};return r.line<0,r}isInGenerated(e){return this.parent&&!this.isInGenerated(e)?!1:this.getGeneratedPosition(e).line>=0}getURL(){return this.sourceUri}};Ie.SourceMapDocumentMapper=Ql;var Yp=class extends Ql{constructor(e,n,r){super(e,n),this.nrPrependesLines=r}getOriginalPosition(e){return super.getOriginalPosition(Or.Position.create(e.line-this.nrPrependesLines,e.character))}getGeneratedPosition(e){let n=super.getGeneratedPosition(e);return n.line+=this.nrPrependesLines,n}isInGenerated(){return!0}};Ie.ConsumerDocumentMapper=Yp;function ur(t,e){let n={start:t.getOriginalPosition(e.start),end:t.getOriginalPosition(e.end)};return n.start.line===n.end.line&&e.start.line===e.end.line&&n.end.character-n.start.character===e.end.character-e.start.character-1&&(n.end.character+=1),n}Ie.mapRangeToOriginal=ur;function Py(t,e){return Or.Range.create(t.getGeneratedPosition(e.start),t.getGeneratedPosition(e.end))}Ie.mapRangeToGenerated=Py;function fF(t,e){return e.textEdit?{...e,textEdit:Oy(t,e.textEdit)}:e}Ie.mapCompletionItemToOriginal=fF;function gF(t,e){return e.range?{...e,range:ur(t,e.range)}:e}Ie.mapHoverToParent=gF;function zo(t,e){return{...e,range:ur(t,e.range)}}Ie.mapObjWithRangeToOriginal=zo;function zy(t,e){return{...e,insert:ur(t,e.insert),replace:ur(t,e.replace)}}Ie.mapInsertReplaceEditToOriginal=zy;function Oy(t,e){return Or.TextEdit.is(e)?zo(t,e):zy(t,e)}Ie.mapEditToOriginal=Oy;function bF(t,e){return{...e,range:Py(t,e.range)}}Ie.mapDiagnosticToGenerated=bF;function vF(t,e){let n={...e};return n.textEdit&&(n.textEdit=zo(t,n.textEdit)),n.additionalTextEdits&&(n.additionalTextEdits=n.additionalTextEdits.map(r=>zo(t,r))),n}Ie.mapColorPresentationToOriginal=vF;function wF(t,e){return{...e,location:zo(t,e.location)}}Ie.mapSymbolInformationToOriginal=wF;function yF(t,e){return Or.LocationLink.create(e.targetUri,t.getURL()===e.targetUri?ur(t,e.targetRange):e.targetRange,t.getURL()===e.targetUri?ur(t,e.targetSelectionRange):e.targetSelectionRange,e.originSelectionRange?ur(t,e.originSelectionRange):void 0)}Ie.mapLocationLinkToOriginal=yF;function Ly(t,e){return e.textDocument.uri!==t.getURL()?e:Or.TextDocumentEdit.create(e.textDocument,e.edits.map(n=>zo(t,n)))}Ie.mapTextDocumentEditToOriginal=Ly;function _F(t,e){return Or.CodeAction.create(e.title,{documentChanges:e.edit.documentChanges.map(n=>Ly(t,n))},e.kind)}Ie.mapCodeActionToOriginal=_F;function SF(t,e,n){let r=e.getOriginalPosition(e.positionAt(t.start));return n.offsetAt(n.getGeneratedPosition(r))}Ie.mapScriptSpanStartToSnapshot=SF;function xF(t,e){let n=ur(t,Or.Range.create(e.startLine,e.startCharacter||0,e.endLine,e.endCharacter||0));return Or.FoldingRange.create(n.start.line,n.end.line,e.startCharacter?n.start.character:void 0,e.endCharacter?n.end.character:void 0,e.kind)}Ie.mapFoldingRangeToParent=xF;function Ny(t,e){let{range:n,parent:r}=e;return Or.SelectionRange.create(ur(t,n),r&&Ny(t,r))}Ie.mapSelectionRangeToParent=Ny});var Pt=X(jn=>{"use strict";var kF=jn&&jn.__createBinding||(Object.create?function(t,e,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(e,n);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,i)}:function(t,e,n,r){r===void 0&&(r=n),t[r]=e[n]}),Zs=jn&&jn.__exportStar||function(t,e){for(var n in t)n!=="default"&&!Object.prototype.hasOwnProperty.call(e,n)&&kF(e,t,n)};Object.defineProperty(jn,"__esModule",{value:!0});Zs(Hp(),jn);Zs(wp(),jn);Zs(Bp(),jn);Zs(Wy(),jn);Zs(ar(),jn)});var bt=X(ve=>{"use strict";Object.defineProperty(ve,"__esModule",{value:!0});ve.getScriptTagSnapshot=ve.getScriptTagLanguage=ve.isDocumentSymbolsPath=ve.ensureRealFilePath=ve.ensureRealAstroFilePath=ve.toRealAstroFilePath=ve.toVirtualFilePath=ve.toVirtualAstroFilePath=ve.isVirtualFilePath=ve.isVirtualSvelteFilePath=ve.isVirtualVueFilePath=ve.isVirtualAstroFilePath=ve.isFrameworkFilePath=ve.isAstroFilePath=ve.isVirtualFrameworkFilePath=ve.getFrameworkFromFilePath=ve.removeAstroComponentSuffix=ve.checkEndOfFileCodeInsert=ve.ensureFrontmatterInsert=ve.convertToLocationRange=ve.convertRange=ve.getScriptKindFromFileName=ve.isSubPath=ve.findTsConfigPath=ve.getExtensionFromScriptKind=ve.getCommitCharactersForScriptElement=ve.scriptElementKindToCompletionItemKind=ve.symbolKindFromString=ve.getSemanticTokenLegend=void 0;var qy=Hs(),ye=pt(),CF=Pt(),TF=dt();function EF(){let t=[];[[0,ye.SemanticTokenModifiers.declaration],[1,ye.SemanticTokenModifiers.static],[2,ye.SemanticTokenModifiers.async],[3,ye.SemanticTokenModifiers.readonly],[4,ye.SemanticTokenModifiers.defaultLibrary],[5,"local"]].forEach(([n,r])=>t[n]=r);let e=[];return[[0,ye.SemanticTokenTypes.class],[1,ye.SemanticTokenTypes.enum],[2,ye.SemanticTokenTypes.interface],[3,ye.SemanticTokenTypes.namespace],[4,ye.SemanticTokenTypes.typeParameter],[5,ye.SemanticTokenTypes.type],[6,ye.SemanticTokenTypes.parameter],[7,ye.SemanticTokenTypes.variable],[8,ye.SemanticTokenTypes.enumMember],[9,ye.SemanticTokenTypes.property],[10,ye.SemanticTokenTypes.function],[11,ye.SemanticTokenTypes.method]].forEach(([n,r])=>e[n]=r),{tokenModifiers:t,tokenTypes:e}}ve.getSemanticTokenLegend=EF;function DF(t){switch(t){case"module":return ye.SymbolKind.Module;case"class":return ye.SymbolKind.Class;case"local class":return ye.SymbolKind.Class;case"interface":return ye.SymbolKind.Interface;case"enum":return ye.SymbolKind.Enum;case"enum member":return ye.SymbolKind.Constant;case"var":return ye.SymbolKind.Variable;case"local var":return ye.SymbolKind.Variable;case"function":return ye.SymbolKind.Function;case"local function":return ye.SymbolKind.Function;case"method":return ye.SymbolKind.Method;case"getter":return ye.SymbolKind.Method;case"setter":return ye.SymbolKind.Method;case"property":return ye.SymbolKind.Property;case"constructor":return ye.SymbolKind.Constructor;case"parameter":return ye.SymbolKind.Variable;case"type parameter":return ye.SymbolKind.Variable;case"alias":return ye.SymbolKind.Variable;case"let":return ye.SymbolKind.Variable;case"const":return ye.SymbolKind.Constant;case"JSX attribute":return ye.SymbolKind.Property;default:return ye.SymbolKind.Variable}}ve.symbolKindFromString=DF;function FF(t,e){switch(t){case e.ScriptElementKind.primitiveType:case e.ScriptElementKind.keyword:return ye.CompletionItemKind.Keyword;case e.ScriptElementKind.constElement:return ye.CompletionItemKind.Constant;case e.ScriptElementKind.letElement:case e.ScriptElementKind.variableElement:case e.ScriptElementKind.localVariableElement:case e.ScriptElementKind.alias:return ye.CompletionItemKind.Variable;case e.ScriptElementKind.memberVariableElement:case e.ScriptElementKind.memberGetAccessorElement:case e.ScriptElementKind.memberSetAccessorElement:return ye.CompletionItemKind.Field;case e.ScriptElementKind.functionElement:return ye.CompletionItemKind.Function;case e.ScriptElementKind.memberFunctionElement:case e.ScriptElementKind.constructSignatureElement:case e.ScriptElementKind.callSignatureElement:case e.ScriptElementKind.indexSignatureElement:return ye.CompletionItemKind.Method;case e.ScriptElementKind.enumElement:return ye.CompletionItemKind.Enum;case e.ScriptElementKind.moduleElement:case e.ScriptElementKind.externalModuleName:return ye.CompletionItemKind.Module;case e.ScriptElementKind.classElement:case e.ScriptElementKind.typeElement:return ye.CompletionItemKind.Class;case e.ScriptElementKind.interfaceElement:return ye.CompletionItemKind.Interface;case e.ScriptElementKind.warning:case e.ScriptElementKind.scriptElement:return ye.CompletionItemKind.File;case e.ScriptElementKind.directory:return ye.CompletionItemKind.Folder;case e.ScriptElementKind.string:return ye.CompletionItemKind.Constant}return ye.CompletionItemKind.Property}ve.scriptElementKindToCompletionItemKind=FF;function AF(t,e){let n=[];switch(t){case e.ScriptElementKind.memberGetAccessorElement:case e.ScriptElementKind.memberSetAccessorElement:case e.ScriptElementKind.constructSignatureElement:case e.ScriptElementKind.callSignatureElement:case e.ScriptElementKind.indexSignatureElement:case e.ScriptElementKind.enumElement:case e.ScriptElementKind.interfaceElement:n.push(".");break;case e.ScriptElementKind.moduleElement:case e.ScriptElementKind.alias:case e.ScriptElementKind.constElement:case e.ScriptElementKind.letElement:case e.ScriptElementKind.variableElement:case e.ScriptElementKind.localVariableElement:case e.ScriptElementKind.memberVariableElement:case e.ScriptElementKind.classElement:case e.ScriptElementKind.functionElement:case e.ScriptElementKind.memberFunctionElement:n.push(".",","),n.push("(");break}return n.length===0?void 0:n}ve.getCommitCharactersForScriptElement=AF;function RF(t,e){switch(t){case e.ScriptKind.JSX:return e.Extension.Jsx;case e.ScriptKind.TS:return e.Extension.Ts;case e.ScriptKind.TSX:return e.Extension.Tsx;case e.ScriptKind.JSON:return e.Extension.Json;case e.ScriptKind.JS:default:return e.Extension.Js}}ve.getExtensionFromScriptKind=RF;function IF(t,e,n){let r=(0,qy.dirname)(t),i=n.findConfigFile(r,n.sys.fileExists,"tsconfig.json")||n.findConfigFile(r,n.sys.fileExists,"jsconfig.json")||"";return!!i&&e.some(o=>Uy(o,i))?i:""}ve.findTsConfigPath=IF;function Uy(t,e){return(0,TF.pathToUrl)(e).startsWith(t)}ve.isSubPath=Uy;function MF(t,e){switch(t.substring(t.lastIndexOf(".")).toLowerCase()){case e.Extension.Js:return e.ScriptKind.JS;case e.Extension.Jsx:return e.ScriptKind.JSX;case e.Extension.Ts:return e.ScriptKind.TS;case e.Extension.Tsx:return e.ScriptKind.TSX;case e.Extension.Json:return e.ScriptKind.JSON;default:return e.ScriptKind.Unknown}}ve.getScriptKindFromFileName=MF;function jy(t,e){return ye.Range.create(t.positionAt(e.start||0),t.positionAt((e.start||0)+(e.length||0)))}ve.convertRange=jy;function PF(t,e){let n=(0,CF.mapRangeToOriginal)(t,jy(t,e));return n.start.line<0&&(n.start.line=0,n.start.character=1),n.end.line<0&&(n.end=n.start),n}ve.convertToLocationRange=PF;function zF(t,e){if(e.astroMeta.frontmatter.state==="closed"){let n=e.positionAt(e.astroMeta.frontmatter.startOffset);return n.line+=1,n.character=t.start.character,ye.Range.create(n,n)}return t}ve.ensureFrontmatterInsert=zF;function OF(t,e){if(t.start.line>e.lineCount&&e.astroMeta.frontmatter.state==="closed"){let n=e.positionAt(e.astroMeta.frontmatter.endOffset);return ye.Range.create(n,n)}return t}ve.checkEndOfFileCodeInsert=OF;function LF(t){return t.replace(/(\w+)__AstroComponent_/,"$1")}ve.removeAstroComponentSuffix=LF;var Zp={ts:"ts",tsx:"tsx"};function NF(t){return t=Ky(t),(0,qy.extname)(t).substring(1)}ve.getFrameworkFromFilePath=NF;function Yl(t,e,n){return n.endsWith("."+t+"."+e)}ve.isVirtualFrameworkFilePath=Yl;function em(t){return t.endsWith(".astro")}ve.isAstroFilePath=em;function Hy(t){return t.endsWith(".svelte")||t.endsWith(".vue")}ve.isFrameworkFilePath=Hy;function Zl(t){return Yl("astro",Zp.tsx,t)}ve.isVirtualAstroFilePath=Zl;function By(t){return Yl("vue",Zp.tsx,t)}ve.isVirtualVueFilePath=By;function $y(t){return Yl("svelte",Zp.tsx,t)}ve.isVirtualSvelteFilePath=$y;function tm(t){return Zl(t)||By(t)||$y(t)}ve.isVirtualFilePath=tm;function WF(t){return Zl(t)?t:em(t)?`${t}.tsx`:t}ve.toVirtualAstroFilePath=WF;function qF(t){return tm(t)?t:Hy(t)||em(t)?`${t}.tsx`:t}ve.toVirtualFilePath=qF;function Vy(t){return t.slice(0,-4)}ve.toRealAstroFilePath=Vy;function UF(t){return Zl(t)?Vy(t):t}ve.ensureRealAstroFilePath=UF;function Ky(t){if(t=t.replace("?documentSymbols",""),tm(t)){let e=t.endsWith(".tsx")?4:3;return t.slice(0,t.length-e)}else return t}ve.ensureRealFilePath=Ky;function jF(t){return t.endsWith("?documentSymbols")}ve.isDocumentSymbolsPath=jF;function Gy(t){return Object.entries(t.attributes).length===0?"ts":"js"}ve.getScriptTagLanguage=Gy;function HF(t,e,n,r){let i=e.scriptTags.findIndex(c=>c.container.start==n.start),o=Gy(e.scriptTags[i]),s=t.filePath+`.__script${i}.${o}`,l=t.scriptTagSnapshots[i],a=0;return r&&(a=l.offsetAt(l.getGeneratedPosition(r))),{snapshot:l,filePath:s,index:i,offset:a}}ve.getScriptTagSnapshot=HF});var Jy=X(ec=>{"use strict";Object.defineProperty(ec,"__esModule",{value:!0});ec.CompletionsProviderImpl=void 0;var BF=(Xs(),Mi(Js)),hi=pt(),nm=ar(),$F=$p(),VF=Vp(),KF=bt(),rm=class{constructor(e){this.lastCompletion=null,this.directivesHTMLLang=(0,BF.getLanguageService)({customDataProviders:[$F.astroDirectives],useDefaultDataProvider:!1}),this.languageServiceManager=e,this.ts=e.docContext.ts}async getCompletions(e,n,r){let i=[],o=e.html,s=e.offsetAt(n),l=o.findNodeAt(s),a=(0,nm.isInsideExpression)(e.getText(),l.start,s);if(r?.triggerCharacter==="-"&&l.parent===void 0&&!a){let c=this.getComponentScriptCompletion(e,n);c&&i.push(c)}if((0,nm.isInComponentStartTag)(o,s)&&!a){let{completions:c,componentFilePath:u}=await this.getPropCompletionsAndFilePath(e,n,r);if(c.length&&i.push(...c),!u?.endsWith(".astro")&&l.tag!=="Fragment"){let h=(0,VF.removeDataAttrCompletion)(this.directivesHTMLLang.doComplete(e,n,o).items);i.push(...h)}}return hi.CompletionList.create(i,!0)}getComponentScriptCompletion(e,n){let r={kind:hi.CompletionItemKind.Snippet,label:"---",sortText:"\0",preselect:!0,detail:"Create component script block",insertTextFormat:hi.InsertTextFormat.Snippet,commitCharacters:[]},i=e.getLineUntilOffset(e.offsetAt(n));if(e.astroMeta.frontmatter.state===null)return{...r,insertText:`---
|
|
487
487
|
$0
|
|
488
|
-
---`,textEdit:i.match(/^\s*\-+/)?
|
|
488
|
+
---`,textEdit:i.match(/^\s*\-+/)?hi.TextEdit.replace({start:{...n,character:0},end:n},`---
|
|
489
489
|
$0
|
|
490
490
|
---`):void 0};if(e.astroMeta.frontmatter.state==="open"){let o="---";return i==="---"&&(o=`---
|
|
491
491
|
$0
|
|
492
|
-
---`),{...r,insertText:o,detail:o==="---"?"Close component script block":"Create component script block",textEdit:i.match(/^\s*\-+/)?
|
|
493
|
-
`);if(l){let a={kind:
|
|
492
|
+
---`),{...r,insertText:o,detail:o==="---"?"Close component script block":"Create component script block",textEdit:i.match(/^\s*\-+/)?hi.TextEdit.replace({start:{...n,character:0},end:n},o):void 0}}return null}async getPropCompletionsAndFilePath(e,n,r){let i=e.offsetAt(n),s=e.html.findNodeAt(i);if(!(0,nm.isPossibleComponent)(s))return{completions:[],componentFilePath:null};if(!(s.start+s.tag.length<i))return{completions:[],componentFilePath:null};if(r?.triggerCharacter==="/"||r?.triggerCharacter===">")return{completions:[],componentFilePath:null};if(r&&r.triggerKind===hi.CompletionTriggerKind.TriggerCharacter&&r.triggerCharacter==='"')return{completions:[],componentFilePath:null};let a=s.tag,{lang:c,tsDoc:u}=await this.languageServiceManager.getLSAndTSDoc(e),d=u.filePath,h=c.getProgram(),p=h?.getSourceFile(d),w=h?.getTypeChecker();if(!p||!w)return{completions:[],componentFilePath:null};let v=this.getImportedSymbol(p,a),x=v&&w.getTypeAtLocation(v);if(!x)return{completions:[],componentFilePath:null};let _=x.getSymbol();if(!_)return{completions:[],componentFilePath:null};let f=_.declarations;if(!f)return{completions:[],componentFilePath:null};let g=f[0].getSourceFile().fileName,D=await this.languageServiceManager.getSnapshot(g);if(this.lastCompletion&&this.lastCompletion.tag===a&&this.lastCompletion.documentVersion==D.version)return{completions:this.lastCompletion.completions,componentFilePath:g};let L=this.getPropType(f,w);if(!L)return{completions:[],componentFilePath:null};let K=[];return(L.getProperties().filter(T=>T.name!=="children")||[]).forEach(T=>{let M=w.getTypeOfSymbolAtLocation(T,v),oe=this.getCompletionItemForProperty(T,w,M);K.push(oe)}),this.lastCompletion={tag:a,documentVersion:D.version,completions:K},{completions:K,componentFilePath:g}}getImportedSymbol(e,n){for(let r of e.getChildren())for(let i of r.getChildren())if(this.ts.isImportDeclaration(i)){let o=i.importClause;if(!o)continue;let s=o.getChildAt(0);if(this.ts.isNamedImports(s)){for(let l of s.elements)if(l.name.getText()===n)return l}else if(this.ts.isIdentifier(s)&&s.getText()===n)return s}return null}getPropType(e,n){for(let r of e){let i=(0,KF.toVirtualFilePath)(r.getSourceFile().fileName);if(i.endsWith(".tsx")||i.endsWith(".jsx")||i.endsWith(".d.ts")){if(!this.ts.isFunctionDeclaration(r)&&!this.ts.isFunctionTypeNode(r)){console.error("We only support functions declarations at the moment");continue}let o=r;if(!o.parameters.length)continue;let s=o.parameters[0];return n.getTypeAtLocation(s)}}return null}getCompletionItemForProperty(e,n,r){let i=n.typeToString(r),o=e.name;switch(i){case"string":o=`${e.name}="$1"`;break;case"boolean":o=e.name;break;default:o=`${e.name}={$1}`;break}let s={label:e.name,detail:i,insertText:o,insertTextFormat:hi.InsertTextFormat.Snippet,commitCharacters:[],sortText:"\0"};e.flags&this.ts.SymbolFlags.Optional&&(s.filterText=s.label,s.label+="?",s.sortText="_"),e.getDocumentationComment(n);let l=e.getDocumentationComment(n).map(a=>a.text).join(`
|
|
493
|
+
`);if(l){let a={kind:hi.MarkupKind.Markdown,value:l};s.documentation=a}return s}};ec.CompletionsProviderImpl=rm});var Xy=X(tc=>{"use strict";Object.defineProperty(tc,"__esModule",{value:!0});tc.DiagnosticsProviderImpl=void 0;var GF=Xt(),im=class{constructor(e){this.languageServiceManager=e}async getDiagnostics(e){let{tsDoc:n}=await this.languageServiceManager.getLSAndTSDoc(e);return n.compilerDiagnostics.map(this.compilerMessageToDiagnostic)}compilerMessageToDiagnostic(e){return{message:e.text+`
|
|
494
494
|
|
|
495
495
|
`+e.hint,range:GF.Range.create(e.location.line-1,e.location.column-1,e.location.line,e.location.length),code:e.code,severity:e.severity,source:"astro"}}};tc.DiagnosticsProviderImpl=im});var am=X(nc=>{"use strict";Object.defineProperty(nc,"__esModule",{value:!0});nc.AstroPlugin=void 0;var om=pt(),Qy=Ml(),JF=Jy(),XF=Xy(),sm=class{constructor(e,n){this.__name="astro",this.configManager=e,this.languageServiceManager=n,this.completionProvider=new JF.CompletionsProviderImpl(this.languageServiceManager),this.diagnosticsProvider=new XF.DiagnosticsProviderImpl(this.languageServiceManager)}async getCompletions(e,n,r){return this.completionProvider.getCompletions(e,n,r)}async getDiagnostics(e){return await this.diagnosticsProvider.getDiagnostics(e)}async formatDocument(e,n){let r=e.getFilePath();if(!r)return[];let i=(0,Qy.importPrettier)(r),o=await i.resolveConfig(r,{editorconfig:!0,useCache:!1})??{},s=await this.configManager.getPrettierVSConfig(e),l=n!==void 0?{tabWidth:n.tabSize,useTabs:!n.insertSpaces}:{},a=Yy(o)||Yy(s)||l;if((await i.getFileInfo(r,{ignorePath:".prettierignore"})).ignored)return[];let u=i.format(e.getText(),{...a,plugins:[...d(),...a.plugins??[]],parser:"astro"});return e.getText()===u?[]:[om.TextEdit.replace(om.Range.create(e.positionAt(0),e.positionAt(e.getTextLength())),u)];function d(){return i.getSupportInfo().languages.some(p=>p.name==="astro")?[]:[(0,Qy.getPrettierPluginPath)(r)]}}getFoldingRanges(e){let n=[],{frontmatter:r}=e.astroMeta;if(r.state!=="closed")return n;let i=e.positionAt(r.startOffset+3),o=e.positionAt(r.endOffset-1);return[{startLine:i.line,startCharacter:i.character,endLine:o.line,endCharacter:o.character,kind:om.FoldingRangeKind.Imports}]}};nc.AstroPlugin=sm;function Yy(t){if(Object.keys(t||{}).length>0)return t}});function rc(t,e){e===void 0&&(e=!1);var n=t.length,r=0,i="",o=0,s=16,l=0,a=0,c=0,u=0,d=0;function h(g,D){for(var L=0,K=0;L<g||!D;){var C=t.charCodeAt(r);if(C>=48&&C<=57)K=K*16+C-48;else if(C>=65&&C<=70)K=K*16+C-65+10;else if(C>=97&&C<=102)K=K*16+C-97+10;else break;r++,L++}return L<g&&(K=-1),K}function p(g){r=g,i="",o=0,s=16,d=0}function w(){var g=r;if(t.charCodeAt(r)===48)r++;else for(r++;r<t.length&&Oo(t.charCodeAt(r));)r++;if(r<t.length&&t.charCodeAt(r)===46)if(r++,r<t.length&&Oo(t.charCodeAt(r)))for(r++;r<t.length&&Oo(t.charCodeAt(r));)r++;else return d=3,t.substring(g,r);var D=r;if(r<t.length&&(t.charCodeAt(r)===69||t.charCodeAt(r)===101))if(r++,(r<t.length&&t.charCodeAt(r)===43||t.charCodeAt(r)===45)&&r++,r<t.length&&Oo(t.charCodeAt(r))){for(r++;r<t.length&&Oo(t.charCodeAt(r));)r++;D=r}else d=3;return t.substring(g,D)}function v(){for(var g="",D=r;;){if(r>=n){g+=t.substring(D,r),d=2;break}var L=t.charCodeAt(r);if(L===34){g+=t.substring(D,r),r++;break}if(L===92){if(g+=t.substring(D,r),r++,r>=n){d=2;break}var K=t.charCodeAt(r++);switch(K){case 34:g+='"';break;case 92:g+="\\";break;case 47:g+="/";break;case 98:g+="\b";break;case 102:g+="\f";break;case 110:g+=`
|
|
496
496
|
`;break;case 114:g+="\r";break;case 116:g+=" ";break;case 117:var C=h(4,!0);C>=0?g+=String.fromCharCode(C):d=4;break;default:d=5}D=r;continue}if(L>=0&&L<=31)if(ea(L)){g+=t.substring(D,r),d=2;break}else d=6;r++}return g}function x(){if(i="",d=0,o=r,a=l,u=c,r>=n)return o=n,s=17;var g=t.charCodeAt(r);if(lm(g)){do r++,i+=String.fromCharCode(g),g=t.charCodeAt(r);while(lm(g));return s=15}if(ea(g))return r++,i+=String.fromCharCode(g),g===13&&t.charCodeAt(r)===10&&(r++,i+=`
|
|
497
|
-
`),l++,c=r,s=14;switch(g){case 123:return r++,s=1;case 125:return r++,s=2;case 91:return r++,s=3;case 93:return r++,s=4;case 58:return r++,s=6;case 44:return r++,s=5;case 34:return r++,i=v(),s=10;case 47:var D=r-1;if(t.charCodeAt(r+1)===47){for(r+=2;r<n&&!ea(t.charCodeAt(r));)r++;return i=t.substring(D,r),s=12}if(t.charCodeAt(r+1)===42){r+=2;for(var L=n-1,K=!1;r<L;){var C=t.charCodeAt(r);if(C===42&&t.charCodeAt(r+1)===47){r+=2,K=!0;break}r++,ea(C)&&(C===13&&t.charCodeAt(r)===10&&r++,l++,c=r)}return K||(r++,d=1),i=t.substring(D,r),s=13}return i+=String.fromCharCode(g),r++,s=16;case 45:if(i+=String.fromCharCode(g),r++,r===n||!Oo(t.charCodeAt(r)))return s=16;case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return i+=w(),s=11;default:for(;r<n&&_(g);)r++,g=t.charCodeAt(r);if(o!==r){switch(i=t.substring(o,r),i){case"true":return s=8;case"false":return s=9;case"null":return s=7}return s=16}return i+=String.fromCharCode(g),r++,s=16}}function _(g){if(lm(g)||ea(g))return!1;switch(g){case 125:case 93:case 123:case 91:case 34:case 58:case 44:case 47:return!1}return!0}function f(){var g;do g=x();while(g>=12&&g<=15);return g}return{setPosition:p,getPosition:function(){return r},scan:e?f:x,getToken:function(){return s},getTokenValue:function(){return i},getTokenOffset:function(){return o},getTokenLength:function(){return r-o},getTokenStartLine:function(){return a},getTokenStartCharacter:function(){return o-u},getTokenError:function(){return d}}}function lm(t){return t===32||t===9||t===11||t===12||t===160||t===5760||t>=8192&&t<=8203||t===8239||t===8287||t===12288||t===65279}function ea(t){return t===10||t===13||t===8232||t===8233}function Oo(t){return t>=48&&t<=57}var ic=ue(()=>{"use strict"});var cm=ue(()=>{"use strict";ic()});function Zy(t,e,n){e===void 0&&(e=[]),n===void 0&&(n=oc.DEFAULT);var r=null,i=[],o=[];function s(a){Array.isArray(i)?i.push(a):r!==null&&(i[r]=a)}var l={onObjectBegin:function(){var a={};s(a),o.push(i),i=a,r=null},onObjectProperty:function(a){r=a},onObjectEnd:function(){i=o.pop()},onArrayBegin:function(){var a=[];s(a),o.push(i),i=a,r=null},onArrayEnd:function(){i=o.pop()},onLiteralValue:s,onError:function(a,c,u){e.push({error:a,offset:c,length:u})}};return e_(t,l,n),i[0]}function e_(t,e,n){n===void 0&&(n=oc.DEFAULT);var r=rc(t,!1);function i(M){return M?function(){return M(r.getTokenOffset(),r.getTokenLength(),r.getTokenStartLine(),r.getTokenStartCharacter())}:function(){return!0}}function o(M){return M?function(oe){return M(oe,r.getTokenOffset(),r.getTokenLength(),r.getTokenStartLine(),r.getTokenStartCharacter())}:function(){return!0}}var s=i(e.onObjectBegin),l=o(e.onObjectProperty),a=i(e.onObjectEnd),c=i(e.onArrayBegin),u=i(e.onArrayEnd),d=o(e.onLiteralValue),h=o(e.onSeparator),p=i(e.onComment),w=o(e.onError),v=n&&n.disallowComments,x=n&&n.allowTrailingComma;function _(){for(;;){var M=r.scan();switch(r.getTokenError()){case 4:f(14);break;case 5:f(15);break;case 3:f(13);break;case 1:v||f(11);break;case 2:f(12);break;case 6:f(16);break}switch(M){case 12:case 13:v?f(10):p();break;case 16:f(1);break;case 15:case 14:break;default:return M}}}function f(M,oe,N){if(oe===void 0&&(oe=[]),N===void 0&&(N=[]),w(M),oe.length+N.length>0)for(var W=r.getToken();W!==17;){if(oe.indexOf(W)!==-1){_();break}else if(N.indexOf(W)!==-1)break;W=_()}}function g(M){var oe=r.getTokenValue();return M?d(oe):l(oe),_(),!0}function D(){switch(r.getToken()){case 11:var M=r.getTokenValue(),oe=Number(M);isNaN(oe)&&(f(2),oe=0),d(oe);break;case 7:d(null);break;case 8:d(!0);break;case 9:d(!1);break;default:return!1}return _(),!0}function L(){return r.getToken()!==10?(f(3,[],[2,5]),!1):(g(!1),r.getToken()===6?(h(":"),_(),T()||f(4,[],[2,5])):f(5,[],[2,5]),!0)}function K(){s(),_();for(var M=!1;r.getToken()!==2&&r.getToken()!==17;){if(r.getToken()===5){if(M||f(4,[],[]),h(","),_(),r.getToken()===2&&x)break}else M&&f(6,[],[]);L()||f(4,[],[2,5]),M=!0}return a(),r.getToken()!==2?f(7,[2],[]):_(),!0}function C(){c(),_();for(var M=!1;r.getToken()!==4&&r.getToken()!==17;){if(r.getToken()===5){if(M||f(4,[],[]),h(","),_(),r.getToken()===4&&x)break}else M&&f(6,[],[]);T()||f(4,[],[4,5]),M=!0}return u(),r.getToken()!==4?f(8,[4],[]):_(),!0}function T(){switch(r.getToken()){case 3:return C();case 1:return K();case 10:return g(!0);default:return D()}}return _(),r.getToken()===17?n.allowEmptyContent?!0:(f(4,[],[]),!1):T()?(r.getToken()!==17&&f(9,[],[]),!0):(f(4,[],[]),!1)}var oc,um=ue(()=>{"use strict";ic();(function(t){t.DEFAULT={allowTrailingComma:!1}})(oc||(oc={}))});var t_=ue(()=>{"use strict";cm();um()});function r_(t){switch(t){case 1:return"InvalidSymbol";case 2:return"InvalidNumberFormat";case 3:return"PropertyNameExpected";case 4:return"ValueExpected";case 5:return"ColonExpected";case 6:return"CommaExpected";case 7:return"CloseBraceExpected";case 8:return"CloseBracketExpected";case 9:return"EndOfFileExpected";case 10:return"InvalidCommentToken";case 11:return"UnexpectedEndOfComment";case 12:return"UnexpectedEndOfString";case 13:return"UnexpectedEndOfNumber";case 14:return"InvalidUnicode";case 15:return"InvalidEscapeCharacter";case 16:return"InvalidCharacter"}return"<unknown ParseErrorCode>"}var n_,i_=ue(()=>{"use strict";cm();t_();ic();um();n_=Zy});var o_,dm,s_=ue(()=>{o_={properties:["additive-symbols","align-content","align-items","justify-items","justify-self","justify-items","align-self","all","alt","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","behavior","block-size","border","border-block-end","border-block-start","border-block-end-color","border-block-start-color","border-block-end-style","border-block-start-style","border-block-end-width","border-block-start-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline-end","border-inline-start","border-inline-end-color","border-inline-start-color","border-inline-end-style","border-inline-start-style","border-inline-end-width","border-inline-start-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","color-interpolation-filters","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","columns","column-span","column-width","contain","content","counter-increment","counter-reset","cursor","direction","display","empty-cells","enable-background","fallback","fill","fill-opacity","fill-rule","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flood-color","flood-opacity","font","font-family","font-feature-settings","font-kerning","font-language-override","font-size","font-size-adjust","font-stretch","font-style","font-synthesis","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-weight","glyph-orientation-horizontal","glyph-orientation-vertical","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-gap","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-gap","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","height","hyphens","image-orientation","image-rendering","ime-mode","inline-size","isolation","justify-content","kerning","left","letter-spacing","lighting-color","line-break","line-height","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block-end","margin-block-start","margin-bottom","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","marker","marker-end","marker-mid","marker-start","mask-type","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","motion","motion-offset","motion-path","motion-rotation","-moz-animation","-moz-animation-delay","-moz-animation-direction","-moz-animation-duration","-moz-animation-iteration-count","-moz-animation-name","-moz-animation-play-state","-moz-animation-timing-function","-moz-appearance","-moz-backface-visibility","-moz-background-clip","-moz-background-inline-policy","-moz-background-origin","-moz-border-bottom-colors","-moz-border-image","-moz-border-left-colors","-moz-border-right-colors","-moz-border-top-colors","-moz-box-align","-moz-box-direction","-moz-box-flex","-moz-box-flexgroup","-moz-box-ordinal-group","-moz-box-orient","-moz-box-pack","-moz-box-sizing","-moz-column-count","-moz-column-gap","-moz-column-rule","-moz-column-rule-color","-moz-column-rule-style","-moz-column-rule-width","-moz-columns","-moz-column-width","-moz-font-feature-settings","-moz-hyphens","-moz-perspective","-moz-perspective-origin","-moz-text-align-last","-moz-text-decoration-color","-moz-text-decoration-line","-moz-text-decoration-style","-moz-text-size-adjust","-moz-transform","-moz-transform-origin","-moz-transition","-moz-transition-delay","-moz-transition-duration","-moz-transition-property","-moz-transition-timing-function","-moz-user-focus","-moz-user-select","-ms-accelerator","-ms-behavior","-ms-block-progression","-ms-content-zoom-chaining","-ms-content-zooming","-ms-content-zoom-limit","-ms-content-zoom-limit-max","-ms-content-zoom-limit-min","-ms-content-zoom-snap","-ms-content-zoom-snap-points","-ms-content-zoom-snap-type","-ms-filter","-ms-flex","-ms-flex-align","-ms-flex-direction","-ms-flex-flow","-ms-flex-item-align","-ms-flex-line-pack","-ms-flex-order","-ms-flex-pack","-ms-flex-wrap","-ms-flow-from","-ms-flow-into","-ms-grid-column","-ms-grid-column-align","-ms-grid-columns","-ms-grid-column-span","-ms-grid-layer","-ms-grid-row","-ms-grid-row-align","-ms-grid-rows","-ms-grid-row-span","-ms-high-contrast-adjust","-ms-hyphenate-limit-chars","-ms-hyphenate-limit-lines","-ms-hyphenate-limit-zone","-ms-hyphens","-ms-ime-mode","-ms-interpolation-mode","-ms-layout-grid","-ms-layout-grid-char","-ms-layout-grid-line","-ms-layout-grid-mode","-ms-layout-grid-type","-ms-line-break","-ms-overflow-style","-ms-perspective","-ms-perspective-origin","-ms-perspective-origin-x","-ms-perspective-origin-y","-ms-progress-appearance","-ms-scrollbar-3dlight-color","-ms-scrollbar-arrow-color","-ms-scrollbar-base-color","-ms-scrollbar-darkshadow-color","-ms-scrollbar-face-color","-ms-scrollbar-highlight-color","-ms-scrollbar-shadow-color","-ms-scrollbar-track-color","-ms-scroll-chaining","-ms-scroll-limit","-ms-scroll-limit-x-max","-ms-scroll-limit-x-min","-ms-scroll-limit-y-max","-ms-scroll-limit-y-min","-ms-scroll-rails","-ms-scroll-snap-points-x","-ms-scroll-snap-points-y","-ms-scroll-snap-type","-ms-scroll-snap-x","-ms-scroll-snap-y","-ms-scroll-translation","-ms-text-align-last","-ms-text-autospace","-ms-text-combine-horizontal","-ms-text-justify","-ms-text-kashida-space","-ms-text-overflow","-ms-text-size-adjust","-ms-text-underline-position","-ms-touch-action","-ms-touch-select","-ms-transform","-ms-transform-origin","-ms-transform-origin-x","-ms-transform-origin-y","-ms-transform-origin-z","-ms-user-select","-ms-word-break","-ms-word-wrap","-ms-wrap-flow","-ms-wrap-margin","-ms-wrap-through","-ms-writing-mode","-ms-zoom","-ms-zoom-animation","nav-down","nav-index","nav-left","nav-right","nav-up","negative","-o-animation","-o-animation-delay","-o-animation-direction","-o-animation-duration","-o-animation-fill-mode","-o-animation-iteration-count","-o-animation-name","-o-animation-play-state","-o-animation-timing-function","object-fit","object-position","-o-border-image","-o-object-fit","-o-object-position","opacity","order","orphans","-o-table-baseline","-o-tab-size","-o-text-overflow","-o-transform","-o-transform-origin","-o-transition","-o-transition-delay","-o-transition-duration","-o-transition-property","-o-transition-timing-function","offset-block-end","offset-block-start","offset-inline-end","offset-inline-start","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-wrap","overflow-x","overflow-y","pad","padding","padding-bottom","padding-block-end","padding-block-start","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page-break-after","page-break-before","page-break-inside","paint-order","perspective","perspective-origin","pointer-events","position","prefix","quotes","range","resize","right","ruby-align","ruby-overhang","ruby-position","ruby-span","scrollbar-3dlight-color","scrollbar-arrow-color","scrollbar-base-color","scrollbar-darkshadow-color","scrollbar-face-color","scrollbar-highlight-color","scrollbar-shadow-color","scrollbar-track-color","scroll-behavior","scroll-snap-coordinate","scroll-snap-destination","scroll-snap-points-x","scroll-snap-points-y","scroll-snap-type","shape-image-threshold","shape-margin","shape-outside","shape-rendering","size","src","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","suffix","system","symbols","table-layout","tab-size","text-align","text-align-last","text-anchor","text-decoration","text-decoration-color","text-decoration-line","text-decoration-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-transform","text-underline-position","top","touch-action","transform","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","unicode-bidi","unicode-range","user-select","vertical-align","visibility","-webkit-animation","-webkit-animation-delay","-webkit-animation-direction","-webkit-animation-duration","-webkit-animation-fill-mode","-webkit-animation-iteration-count","-webkit-animation-name","-webkit-animation-play-state","-webkit-animation-timing-function","-webkit-appearance","-webkit-backdrop-filter","-webkit-backface-visibility","-webkit-background-clip","-webkit-background-composite","-webkit-background-origin","-webkit-border-image","-webkit-box-align","-webkit-box-direction","-webkit-box-flex","-webkit-box-flex-group","-webkit-box-ordinal-group","-webkit-box-orient","-webkit-box-pack","-webkit-box-reflect","-webkit-box-sizing","-webkit-break-after","-webkit-break-before","-webkit-break-inside","-webkit-column-break-after","-webkit-column-break-before","-webkit-column-break-inside","-webkit-column-count","-webkit-column-gap","-webkit-column-rule","-webkit-column-rule-color","-webkit-column-rule-style","-webkit-column-rule-width","-webkit-columns","-webkit-column-span","-webkit-column-width","-webkit-filter","-webkit-flow-from","-webkit-flow-into","-webkit-font-feature-settings","-webkit-hyphens","-webkit-line-break","-webkit-margin-bottom-collapse","-webkit-margin-collapse","-webkit-margin-start","-webkit-margin-top-collapse","-webkit-mask-clip","-webkit-mask-image","-webkit-mask-origin","-webkit-mask-repeat","-webkit-mask-size","-webkit-nbsp-mode","-webkit-overflow-scrolling","-webkit-padding-start","-webkit-perspective","-webkit-perspective-origin","-webkit-region-fragment","-webkit-tap-highlight-color","-webkit-text-fill-color","-webkit-text-size-adjust","-webkit-text-stroke","-webkit-text-stroke-color","-webkit-text-stroke-width","-webkit-touch-callout","-webkit-transform","-webkit-transform-origin","-webkit-transform-origin-x","-webkit-transform-origin-y","-webkit-transform-origin-z","-webkit-transform-style","-webkit-transition","-webkit-transition-delay","-webkit-transition-duration","-webkit-transition-property","-webkit-transition-timing-function","-webkit-user-drag","-webkit-user-modify","-webkit-user-select","white-space","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","z-index","zoom"]},dm={tags:["body","head","html","address","blockquote","dd","div","section","article","aside","header","footer","nav","menu","dl","dt","fieldset","form","frame","frameset","h1","h2","h3","h4","h5","h6","iframe","noframes","object","ol","p","ul","applet","center","dir","hr","pre","a","abbr","acronym","area","b","base","basefont","bdo","big","br","button","caption","cite","code","col","colgroup","del","dfn","em","font","i","img","input","ins","isindex","kbd","label","legend","li","link","map","meta","noscript","optgroup","option","param","q","s","samp","script","select","small","span","strike","strong","style","sub","sup","table","tbody","td","textarea","tfoot","th","thead","title","tr","tt","u","var","canvas","main","figure","plaintext","figcaption","hgroup","details","summary"]}});function cA(t,e){if(!t.scheme&&e)throw new Error('[UriError]: Scheme is missing: {scheme: "", authority: "'+t.authority+'", path: "'+t.path+'", query: "'+t.query+'", fragment: "'+t.fragment+'"}');if(t.scheme&&!sA.test(t.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(t.path){if(t.authority){if(!aA.test(t.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(lA.test(t.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}}function uA(t,e){return!t&&!e?"file":t}function dA(t,e){switch(t){case"https":case"http":case"file":e?e[0]!==Hn&&(e=Hn+e):e=Hn;break}return e}function l_(t,e){for(var n=void 0,r=-1,i=0;i<t.length;i++){var o=t.charCodeAt(i);if(o>=97&&o<=122||o>=65&&o<=90||o>=48&&o<=57||o===45||o===46||o===95||o===126||e&&o===47)r!==-1&&(n+=encodeURIComponent(t.substring(r,i)),r=-1),n!==void 0&&(n+=t.charAt(i));else{n===void 0&&(n=t.substr(0,i));var s=d_[o];s!==void 0?(r!==-1&&(n+=encodeURIComponent(t.substring(r,i)),r=-1),n+=s):r===-1&&(r=i)}}return r!==-1&&(n+=encodeURIComponent(t.substring(r))),n!==void 0?n:t}function pA(t){for(var e=void 0,n=0;n<t.length;n++){var r=t.charCodeAt(n);r===35||r===63?(e===void 0&&(e=t.substr(0,n)),e+=d_[r]):e!==void 0&&(e+=t[n])}return e!==void 0?e:t}function h_(t,e){var n;return t.authority&&t.path.length>1&&t.scheme==="file"?n="//"+t.authority+t.path:t.path.charCodeAt(0)===47&&(t.path.charCodeAt(1)>=65&&t.path.charCodeAt(1)<=90||t.path.charCodeAt(1)>=97&&t.path.charCodeAt(1)<=122)&&t.path.charCodeAt(2)===58?e?n=t.path.substr(1):n=t.path[1].toLowerCase()+t.path.substr(2):n=t.path,ta&&(n=n.replace(/\//g,"\\")),n}function hm(t,e){var n=e?pA:l_,r="",i=t.scheme,o=t.authority,s=t.path,l=t.query,a=t.fragment;if(i&&(r+=i,r+=":"),(o||i==="file")&&(r+=Hn,r+=Hn),o){var c=o.indexOf("@");if(c!==-1){var u=o.substr(0,c);o=o.substr(c+1),c=u.indexOf(":"),c===-1?r+=n(u,!1):(r+=n(u.substr(0,c),!1),r+=":",r+=n(u.substr(c+1),!1)),r+="@"}o=o.toLowerCase(),c=o.indexOf(":"),c===-1?r+=n(o,!1):(r+=n(o.substr(0,c),!1),r+=o.substr(c))}if(s){if(s.length>=3&&s.charCodeAt(0)===47&&s.charCodeAt(2)===58){var d=s.charCodeAt(1);d>=65&&d<=90&&(s="/"+String.fromCharCode(d+32)+":"+s.substr(3))}else if(s.length>=2&&s.charCodeAt(1)===58){var d=s.charCodeAt(0);d>=65&&d<=90&&(s=String.fromCharCode(d+32)+":"+s.substr(2))}r+=n(s,!0)}return l&&(r+="?",r+=n(l,!1)),a&&(r+="#",r+=e?a:l_(a,!1)),r}function p_(t){try{return decodeURIComponent(t)}catch{return t.length>3?t.substr(0,3)+p_(t.substr(3)):t}}function sc(t){return t.match(c_)?t.replace(c_,function(e){return p_(e)}):t}var oA,vt,ta,a_,sA,aA,lA,Ye,Hn,hA,pm,u_,Lo,d_,c_,m_=ue(()=>{"use strict";oA=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},t(e,n)};return function(e,n){t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}();typeof process=="object"?ta=process.platform==="win32":typeof navigator=="object"&&(a_=navigator.userAgent,ta=a_.indexOf("Windows")>=0);sA=/^\w[\w\d+.-]*$/,aA=/^\//,lA=/^\/\//;Ye="",Hn="/",hA=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/,pm=function(){function t(e,n,r,i,o,s){s===void 0&&(s=!1),typeof e=="object"?(this.scheme=e.scheme||Ye,this.authority=e.authority||Ye,this.path=e.path||Ye,this.query=e.query||Ye,this.fragment=e.fragment||Ye):(this.scheme=uA(e,s),this.authority=n||Ye,this.path=dA(this.scheme,r||Ye),this.query=i||Ye,this.fragment=o||Ye,cA(this,s))}return t.isUri=function(e){return e instanceof t?!0:e?typeof e.authority=="string"&&typeof e.fragment=="string"&&typeof e.path=="string"&&typeof e.query=="string"&&typeof e.scheme=="string"&&typeof e.fsPath=="function"&&typeof e.with=="function"&&typeof e.toString=="function":!1},Object.defineProperty(t.prototype,"fsPath",{get:function(){return h_(this,!1)},enumerable:!0,configurable:!0}),t.prototype.with=function(e){if(!e)return this;var n=e.scheme,r=e.authority,i=e.path,o=e.query,s=e.fragment;return n===void 0?n=this.scheme:n===null&&(n=Ye),r===void 0?r=this.authority:r===null&&(r=Ye),i===void 0?i=this.path:i===null&&(i=Ye),o===void 0?o=this.query:o===null&&(o=Ye),s===void 0?s=this.fragment:s===null&&(s=Ye),n===this.scheme&&r===this.authority&&i===this.path&&o===this.query&&s===this.fragment?this:new Lo(n,r,i,o,s)},t.parse=function(e,n){n===void 0&&(n=!1);var r=hA.exec(e);return r?new Lo(r[2]||Ye,sc(r[4]||Ye),sc(r[5]||Ye),sc(r[7]||Ye),sc(r[9]||Ye),n):new Lo(Ye,Ye,Ye,Ye,Ye)},t.file=function(e){var n=Ye;if(ta&&(e=e.replace(/\\/g,Hn)),e[0]===Hn&&e[1]===Hn){var r=e.indexOf(Hn,2);r===-1?(n=e.substring(2),e=Hn):(n=e.substring(2,r),e=e.substring(r)||Hn)}return new Lo("file",n,e,Ye,Ye)},t.from=function(e){return new Lo(e.scheme,e.authority,e.path,e.query,e.fragment)},t.prototype.toString=function(e){return e===void 0&&(e=!1),hm(this,e)},t.prototype.toJSON=function(){return this},t.revive=function(e){if(e){if(e instanceof t)return e;var n=new Lo(e);return n._formatted=e.external,n._fsPath=e._sep===u_?e.fsPath:null,n}else return e},t}(),u_=ta?1:void 0,Lo=function(t){oA(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n._formatted=null,n._fsPath=null,n}return Object.defineProperty(e.prototype,"fsPath",{get:function(){return this._fsPath||(this._fsPath=h_(this,!1)),this._fsPath},enumerable:!0,configurable:!0}),e.prototype.toString=function(n){return n===void 0&&(n=!1),n?hm(this,!0):(this._formatted||(this._formatted=hm(this,!1)),this._formatted)},e.prototype.toJSON=function(){var n={$mid:1};return this._fsPath&&(n.fsPath=this._fsPath,n._sep=u_),this._formatted&&(n.external=this._formatted),this.path&&(n.path=this.path),this.scheme&&(n.scheme=this.scheme),this.authority&&(n.authority=this.authority),this.query&&(n.query=this.query),this.fragment&&(n.fragment=this.fragment),n},e}(pm),d_=(vt={},vt[58]="%3A",vt[47]="%2F",vt[63]="%3F",vt[35]="%23",vt[91]="%5B",vt[93]="%5D",vt[64]="%40",vt[33]="%21",vt[36]="%24",vt[38]="%26",vt[39]="%27",vt[40]="%28",vt[41]="%29",vt[42]="%2A",vt[43]="%2B",vt[44]="%2C",vt[59]="%3B",vt[61]="%3D",vt[32]="%20",vt);c_=/(%[0-9A-Za-z][0-9A-Za-z])+/g});function f_(t){return mA.test(t)}function fA(t){let e=[];for(let r of t)r.length===0||r.length===1&&r.charCodeAt(0)===mm||(r.length===2&&r.charCodeAt(0)===mm&&r.charCodeAt(1)===mm?e.pop():e.push(r));t.length>1&&t[t.length-1].length===0&&e.push("");let n=e.join("/");return t[0].length===0&&(n="/"+n),n}function ra(t,...e){let n=t.path.split("/");for(let r of e)n.push(...r.split("/"));return t.with({path:fA(n)})}var na,mA,mm,g_=ue(()=>{(function(t){t[t.Unknown=0]="Unknown",t[t.File=1]="File",t[t.Directory=2]="Directory",t[t.SymbolicLink=64]="SymbolicLink"})(na||(na={}));mA=new RegExp("^(/|//|\\\\\\\\|[A-Za-z]:(/|\\\\))"),mm=".".charCodeAt(0)});var b_,v_=ue(()=>{b_={}});function Bn(t){return t>47&&t<58}function No(t,e,n){return e=e||65,n=n||90,t&=-33,t>=e&&t<=n}function ac(t){return Bn(t)||oa(t)}function oa(t){return t===95||No(t)}function gA(t){return t===32||t===9||t===160}function sa(t){return gA(t)||t===10||t===13}function aa(t){return t===39||t===34}var ia,Vi,lc,fm=ue(()=>{ia=class{constructor(e,n,r){r==null&&typeof e=="string"&&(r=e.length),this.string=e,this.pos=this.start=n||0,this.end=r||0}eof(){return this.pos>=this.end}limit(e,n){return new ia(this.string,e,n)}peek(){return this.string.charCodeAt(this.pos)}next(){if(this.pos<this.string.length)return this.string.charCodeAt(this.pos++)}eat(e){let n=this.peek(),r=typeof e=="function"?e(n):n===e;return r&&this.next(),r}eatWhile(e){let n=this.pos;for(;!this.eof()&&this.eat(e););return this.pos!==n}backUp(e){this.pos-=e||1}current(){return this.substring(this.start,this.pos)}substring(e,n){return this.string.slice(e,n)}error(e,n=this.pos){return new Vi(`${e} at ${n+1}`,n,this.string)}},Vi=class extends Error{constructor(e,n,r){super(e),this.pos=n,this.string=r}},lc=ia});function bA(t){return{tokens:t,start:0,pos:0,size:t.length}}function Ki(t){return t.tokens[t.pos]}function wm(t){return t.tokens[t.pos++]}function Wo(t,e=t.start,n=t.pos){return t.tokens.slice(e,n)}function Lr(t){return t.pos<t.size}function Ut(t,e){let n=Ki(t);return n&&e(n)?(t.pos++,!0):!1}function ym(t,e,n=Ki(t)){n&&n.start!=null&&(e+=` at ${n.start}`);let r=new Error(e);return r.pos=n&&n.start,r}function vA(t,e={}){let n=bA(t),r=E_(n,e);if(Lr(n))throw ym(n,"Unexpected character");return r}function E_(t,e){let n={type:"TokenGroup",elements:[]},r=n,i,o=[];for(;Lr(t)&&(i=yA(t,e)||wA(t,e));)if(r.elements.push(i),Ut(t,PA))o.push(r),r=i;else{if(Ut(t,zA))continue;if(Ut(t,S_))do o.length&&(r=o.pop());while(Ut(t,S_))}return n}function wA(t,e){if(Ut(t,IA)){let n=E_(t,e),r=wm(t);return wn(r,"group",!1)&&(n.repeat=xA(t)),n}}function yA(t,e){let n,r={type:"TokenElement",name:void 0,attributes:void 0,value:void 0,repeat:void 0,selfClose:!1,elements:[]};for(kA(t,e)&&(r.name=Wo(t));Lr(t);)if(t.start=t.pos,!r.repeat&&!gm(r)&&Ut(t,uc))r.repeat=t.tokens[t.pos-1];else if(!r.value&&D_(t))r.value=F_(t);else if(n=w_(t,"id",e)||w_(t,"class",e)||_A(t))r.attributes?r.attributes=r.attributes.concat(n):r.attributes=Array.isArray(n)?n.slice():[n];else{!gm(r)&&Ut(t,OA)&&(r.selfClose=!0,!r.repeat&&Ut(t,uc)&&(r.repeat=t.tokens[t.pos-1]));break}return gm(r)?void 0:r}function _A(t){if(Ut(t,FA)){let e=[],n;for(;Lr(t);)if(n=SA(t))e.push(n);else{if(Ut(t,AA))break;if(!Ut(t,A_))throw ym(t,`Unexpected "${Ki(t).type}" token`)}return e}}function w_(t,e,n){if(hi(Ki(t),e)){t.pos++;let r={name:[MA(e)]};return n.jsx&&D_(t)?(r.value=F_(t),r.expression=!0):r.value=bm(t)?Wo(t):void 0,r}}function SA(t){if(y_(t))return{value:Wo(t)};if(bm(t,!0))return{name:Wo(t),value:Ut(t,CA)&&(y_(t)||bm(t,!0))?Wo(t):void 0}}function xA(t){return uc(Ki(t))?t.tokens[t.pos++]:void 0}function y_(t){let e=t.pos,n=Ki(t);if(cc(n)){for(t.pos++;Lr(t);)if(cc(wm(t),n.single))return t.start=e,!0;throw ym(t,"Unclosed quote",n)}return!1}function bm(t,e){let n=t.pos,r={attribute:0,expression:0,group:0};for(;Lr(t);){let i=Ki(t);if(r.expression)wn(i,"expression")&&(r[i.context]+=i.open?1:-1);else{if(cc(i)||hi(i)||A_(i)||uc(i))break;if(wn(i)){if(!e)break;if(i.open)r[i.context]++;else if(r[i.context])r[i.context]--;else break}}t.pos++}return n!==t.pos?(t.start=n,!0):!1}function kA(t,e){let n=t.pos;if(e.jsx&&Ut(t,__))for(;Lr(t);){let{pos:r}=t;if(!Ut(t,DA)||!Ut(t,__)){t.pos=r;break}}for(;Lr(t)&&Ut(t,EA););return t.pos!==n?(t.start=n,!0):!1}function D_(t){let e=t.pos;if(Ut(t,RA)){let n=0;for(;Lr(t);){let r=wm(t);if(wn(r,"expression"))if(r.open)n++;else if(n)n--;else break}return t.start=e,!0}return!1}function F_(t){let e=t.start,n=t.pos;return wn(t.tokens[e],"expression",!0)&&e++,wn(t.tokens[n-1],"expression",!1)&&n--,Wo(t,e,n)}function wn(t,e,n){return Boolean(t&&t.type==="Bracket"&&(!e||t.context===e)&&(n==null||t.open===n))}function hi(t,e){return Boolean(t&&t.type==="Operator"&&(!e||t.operator===e))}function cc(t,e){return Boolean(t&&t.type==="Quote"&&(e==null||t.single===e))}function A_(t){return Boolean(t&&t.type==="WhiteSpace")}function CA(t){return hi(t,"equal")}function uc(t){return Boolean(t&&t.type==="Repeater")}function TA(t){return t.type==="Literal"}function __(t){if(TA(t)){let e=t.value.charCodeAt(0);return e>=65&&e<=90}return!1}function EA(t){return t.type==="Literal"||t.type==="RepeaterNumber"||t.type==="RepeaterPlaceholder"}function DA(t){return hi(t,"class")}function FA(t){return wn(t,"attribute",!0)}function AA(t){return wn(t,"attribute",!1)}function RA(t){return wn(t,"expression",!0)}function IA(t){return wn(t,"group",!0)}function MA(t){return{type:"Literal",value:t}}function gm(t){return!t.name&&!t.value&&!t.attributes}function PA(t){return hi(t,"child")}function zA(t){return hi(t,"sibling")}function S_(t){return hi(t,"climb")}function OA(t){return hi(t,"close")}function LA(t){return t.eat(92)?(t.start=t.pos,t.eof()||t.pos++,!0):!1}function NA(t){let e=new lc(t),n=[],r={group:0,attribute:0,expression:0,quote:0},i=0,o;for(;!e.eof();)if(i=e.peek(),o=WA(e,r),o)n.push(o),o.type==="Quote"?r.quote=i===r.quote?0:i:o.type==="Bracket"&&(r[o.context]+=o.open?1:-1);else throw e.error("Unexpected character");return n}function WA(t,e){return GA(t,e)||VA(t)||KA(t)||$A(t)||UA(t)||qA(t,e)||BA(t)||jA(t)||HA(t)}function qA(t,e){let n=t.pos,r="";for(;!t.eof();){if(LA(t)){r+=t.current();continue}let i=t.peek();if(i===e.quote||i===36||JA(i,e)||e.expression&&i===125||!e.quote&&!e.expression&&(!e.attribute&&!ZA(i)||XA(i,e)||QA(i,e)||aa(i)||R_(i)))break;r+=t.string[t.pos++]}if(n!==t.pos)return t.start=n,{type:"Literal",value:r,start:n,end:t.pos}}function UA(t){let e=t.pos;if(t.eatWhile(sa))return{type:"WhiteSpace",start:e,end:t.pos,value:t.substring(e,t.pos)}}function jA(t){let e=t.peek();if(aa(e))return{type:"Quote",single:e===39,start:t.pos++,end:t.pos}}function HA(t){let e=t.peek(),n=R_(e);if(n)return{type:"Bracket",open:YA(e),context:n,start:t.pos++,end:t.pos}}function BA(t){let e=I_(t.peek());if(e)return{type:"Operator",operator:e,start:t.pos++,end:t.pos}}function $A(t){let e=t.pos;if(t.eat(42)){t.start=t.pos;let n=1,r=!1;return t.eatWhile(Bn)?n=Number(t.current()):r=!0,{type:"Repeater",count:n,value:0,implicit:r,start:e,end:t.pos}}}function VA(t){let e=t.pos;if(t.eat(36)&&t.eat(35))return{type:"RepeaterPlaceholder",value:void 0,start:e,end:t.pos};t.pos=e}function KA(t){let e=t.pos;if(t.eatWhile(36)){let n=t.pos-e,r=!1,i=1,o=0;if(t.eat(64)){for(;t.eat(94);)o++;r=t.eat(45),t.start=t.pos,t.eatWhile(Bn)&&(i=Number(t.current()))}return t.start=e,{type:"RepeaterNumber",size:n,reverse:r,base:i,parent:o,start:e,end:t.pos}}}function GA(t,e){let n=t.pos;if((e.expression||e.attribute)&&t.eat(36)&&t.eat(123)){t.start=t.pos;let r,i="";if(t.eatWhile(Bn)?(r=Number(t.current()),i=t.eat(58)?x_(t):""):No(t.peek())&&(i=x_(t)),t.eat(125))return{type:"Field",index:r,name:i,start:n,end:t.pos};throw t.error("Expecting }")}t.pos=n}function x_(t){let e=[];for(t.start=t.pos;!t.eof();)if(t.eat(123))e.push(t.pos);else if(t.eat(125)){if(!e.length){t.pos--;break}e.pop()}else t.pos++;if(e.length)throw t.pos=e.pop(),t.error("Expecting }");return t.current()}function JA(t,e){let n=I_(t);return!n||e.quote||e.expression?!1:!e.attribute||n==="equal"}function XA(t,e){return sa(t)&&!e.expression}function QA(t,e){return t===42&&!e.attribute&&!e.expression}function R_(t){if(t===40||t===41)return"group";if(t===91||t===93)return"attribute";if(t===123||t===125)return"expression"}function I_(t){return t===62&&"child"||t===43&&"sibling"||t===94&&"climb"||t===46&&"class"||t===35&&"id"||t===47&&"close"||t===61&&"equal"||void 0}function YA(t){return t===123||t===91||t===40}function ZA(t){return ac(t)||t===45||t===58||t===33}function M_(t,e){if(!k_[t.type])throw new Error(`Unknown token ${t.type}`);return k_[t.type](t,e)}function rR(t,e={}){let n=!1,r;e.text&&(Array.isArray(e.text)?r=e.text.filter(o=>o.trim()):r=e.text);let i={type:"Abbreviation",children:vm(t,{inserted:!1,repeaters:[],text:e.text,cleanText:r,repeatGuard:e.maxRepeat||Number.POSITIVE_INFINITY,getText(o){var s;n=!0;let l;if(Array.isArray(e.text)){if(o!==void 0&&o>=0&&o<r.length)return r[o];l=o!==void 0?e.text[o]:e.text.join(`
|
|
497
|
+
`),l++,c=r,s=14;switch(g){case 123:return r++,s=1;case 125:return r++,s=2;case 91:return r++,s=3;case 93:return r++,s=4;case 58:return r++,s=6;case 44:return r++,s=5;case 34:return r++,i=v(),s=10;case 47:var D=r-1;if(t.charCodeAt(r+1)===47){for(r+=2;r<n&&!ea(t.charCodeAt(r));)r++;return i=t.substring(D,r),s=12}if(t.charCodeAt(r+1)===42){r+=2;for(var L=n-1,K=!1;r<L;){var C=t.charCodeAt(r);if(C===42&&t.charCodeAt(r+1)===47){r+=2,K=!0;break}r++,ea(C)&&(C===13&&t.charCodeAt(r)===10&&r++,l++,c=r)}return K||(r++,d=1),i=t.substring(D,r),s=13}return i+=String.fromCharCode(g),r++,s=16;case 45:if(i+=String.fromCharCode(g),r++,r===n||!Oo(t.charCodeAt(r)))return s=16;case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return i+=w(),s=11;default:for(;r<n&&_(g);)r++,g=t.charCodeAt(r);if(o!==r){switch(i=t.substring(o,r),i){case"true":return s=8;case"false":return s=9;case"null":return s=7}return s=16}return i+=String.fromCharCode(g),r++,s=16}}function _(g){if(lm(g)||ea(g))return!1;switch(g){case 125:case 93:case 123:case 91:case 34:case 58:case 44:case 47:return!1}return!0}function f(){var g;do g=x();while(g>=12&&g<=15);return g}return{setPosition:p,getPosition:function(){return r},scan:e?f:x,getToken:function(){return s},getTokenValue:function(){return i},getTokenOffset:function(){return o},getTokenLength:function(){return r-o},getTokenStartLine:function(){return a},getTokenStartCharacter:function(){return o-u},getTokenError:function(){return d}}}function lm(t){return t===32||t===9||t===11||t===12||t===160||t===5760||t>=8192&&t<=8203||t===8239||t===8287||t===12288||t===65279}function ea(t){return t===10||t===13||t===8232||t===8233}function Oo(t){return t>=48&&t<=57}var ic=ue(()=>{"use strict"});var cm=ue(()=>{"use strict";ic()});function Zy(t,e,n){e===void 0&&(e=[]),n===void 0&&(n=oc.DEFAULT);var r=null,i=[],o=[];function s(a){Array.isArray(i)?i.push(a):r!==null&&(i[r]=a)}var l={onObjectBegin:function(){var a={};s(a),o.push(i),i=a,r=null},onObjectProperty:function(a){r=a},onObjectEnd:function(){i=o.pop()},onArrayBegin:function(){var a=[];s(a),o.push(i),i=a,r=null},onArrayEnd:function(){i=o.pop()},onLiteralValue:s,onError:function(a,c,u){e.push({error:a,offset:c,length:u})}};return e_(t,l,n),i[0]}function e_(t,e,n){n===void 0&&(n=oc.DEFAULT);var r=rc(t,!1);function i(M){return M?function(){return M(r.getTokenOffset(),r.getTokenLength(),r.getTokenStartLine(),r.getTokenStartCharacter())}:function(){return!0}}function o(M){return M?function(oe){return M(oe,r.getTokenOffset(),r.getTokenLength(),r.getTokenStartLine(),r.getTokenStartCharacter())}:function(){return!0}}var s=i(e.onObjectBegin),l=o(e.onObjectProperty),a=i(e.onObjectEnd),c=i(e.onArrayBegin),u=i(e.onArrayEnd),d=o(e.onLiteralValue),h=o(e.onSeparator),p=i(e.onComment),w=o(e.onError),v=n&&n.disallowComments,x=n&&n.allowTrailingComma;function _(){for(;;){var M=r.scan();switch(r.getTokenError()){case 4:f(14);break;case 5:f(15);break;case 3:f(13);break;case 1:v||f(11);break;case 2:f(12);break;case 6:f(16);break}switch(M){case 12:case 13:v?f(10):p();break;case 16:f(1);break;case 15:case 14:break;default:return M}}}function f(M,oe,N){if(oe===void 0&&(oe=[]),N===void 0&&(N=[]),w(M),oe.length+N.length>0)for(var W=r.getToken();W!==17;){if(oe.indexOf(W)!==-1){_();break}else if(N.indexOf(W)!==-1)break;W=_()}}function g(M){var oe=r.getTokenValue();return M?d(oe):l(oe),_(),!0}function D(){switch(r.getToken()){case 11:var M=r.getTokenValue(),oe=Number(M);isNaN(oe)&&(f(2),oe=0),d(oe);break;case 7:d(null);break;case 8:d(!0);break;case 9:d(!1);break;default:return!1}return _(),!0}function L(){return r.getToken()!==10?(f(3,[],[2,5]),!1):(g(!1),r.getToken()===6?(h(":"),_(),T()||f(4,[],[2,5])):f(5,[],[2,5]),!0)}function K(){s(),_();for(var M=!1;r.getToken()!==2&&r.getToken()!==17;){if(r.getToken()===5){if(M||f(4,[],[]),h(","),_(),r.getToken()===2&&x)break}else M&&f(6,[],[]);L()||f(4,[],[2,5]),M=!0}return a(),r.getToken()!==2?f(7,[2],[]):_(),!0}function C(){c(),_();for(var M=!1;r.getToken()!==4&&r.getToken()!==17;){if(r.getToken()===5){if(M||f(4,[],[]),h(","),_(),r.getToken()===4&&x)break}else M&&f(6,[],[]);T()||f(4,[],[4,5]),M=!0}return u(),r.getToken()!==4?f(8,[4],[]):_(),!0}function T(){switch(r.getToken()){case 3:return C();case 1:return K();case 10:return g(!0);default:return D()}}return _(),r.getToken()===17?n.allowEmptyContent?!0:(f(4,[],[]),!1):T()?(r.getToken()!==17&&f(9,[],[]),!0):(f(4,[],[]),!1)}var oc,um=ue(()=>{"use strict";ic();(function(t){t.DEFAULT={allowTrailingComma:!1}})(oc||(oc={}))});var t_=ue(()=>{"use strict";cm();um()});function r_(t){switch(t){case 1:return"InvalidSymbol";case 2:return"InvalidNumberFormat";case 3:return"PropertyNameExpected";case 4:return"ValueExpected";case 5:return"ColonExpected";case 6:return"CommaExpected";case 7:return"CloseBraceExpected";case 8:return"CloseBracketExpected";case 9:return"EndOfFileExpected";case 10:return"InvalidCommentToken";case 11:return"UnexpectedEndOfComment";case 12:return"UnexpectedEndOfString";case 13:return"UnexpectedEndOfNumber";case 14:return"InvalidUnicode";case 15:return"InvalidEscapeCharacter";case 16:return"InvalidCharacter"}return"<unknown ParseErrorCode>"}var n_,i_=ue(()=>{"use strict";cm();t_();ic();um();n_=Zy});var o_,dm,s_=ue(()=>{o_={properties:["additive-symbols","align-content","align-items","justify-items","justify-self","justify-items","align-self","all","alt","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","behavior","block-size","border","border-block-end","border-block-start","border-block-end-color","border-block-start-color","border-block-end-style","border-block-start-style","border-block-end-width","border-block-start-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline-end","border-inline-start","border-inline-end-color","border-inline-start-color","border-inline-end-style","border-inline-start-style","border-inline-end-width","border-inline-start-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","color-interpolation-filters","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","columns","column-span","column-width","contain","content","counter-increment","counter-reset","cursor","direction","display","empty-cells","enable-background","fallback","fill","fill-opacity","fill-rule","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flood-color","flood-opacity","font","font-family","font-feature-settings","font-kerning","font-language-override","font-size","font-size-adjust","font-stretch","font-style","font-synthesis","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-weight","glyph-orientation-horizontal","glyph-orientation-vertical","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-gap","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-gap","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","height","hyphens","image-orientation","image-rendering","ime-mode","inline-size","isolation","justify-content","kerning","left","letter-spacing","lighting-color","line-break","line-height","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block-end","margin-block-start","margin-bottom","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","marker","marker-end","marker-mid","marker-start","mask-type","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","motion","motion-offset","motion-path","motion-rotation","-moz-animation","-moz-animation-delay","-moz-animation-direction","-moz-animation-duration","-moz-animation-iteration-count","-moz-animation-name","-moz-animation-play-state","-moz-animation-timing-function","-moz-appearance","-moz-backface-visibility","-moz-background-clip","-moz-background-inline-policy","-moz-background-origin","-moz-border-bottom-colors","-moz-border-image","-moz-border-left-colors","-moz-border-right-colors","-moz-border-top-colors","-moz-box-align","-moz-box-direction","-moz-box-flex","-moz-box-flexgroup","-moz-box-ordinal-group","-moz-box-orient","-moz-box-pack","-moz-box-sizing","-moz-column-count","-moz-column-gap","-moz-column-rule","-moz-column-rule-color","-moz-column-rule-style","-moz-column-rule-width","-moz-columns","-moz-column-width","-moz-font-feature-settings","-moz-hyphens","-moz-perspective","-moz-perspective-origin","-moz-text-align-last","-moz-text-decoration-color","-moz-text-decoration-line","-moz-text-decoration-style","-moz-text-size-adjust","-moz-transform","-moz-transform-origin","-moz-transition","-moz-transition-delay","-moz-transition-duration","-moz-transition-property","-moz-transition-timing-function","-moz-user-focus","-moz-user-select","-ms-accelerator","-ms-behavior","-ms-block-progression","-ms-content-zoom-chaining","-ms-content-zooming","-ms-content-zoom-limit","-ms-content-zoom-limit-max","-ms-content-zoom-limit-min","-ms-content-zoom-snap","-ms-content-zoom-snap-points","-ms-content-zoom-snap-type","-ms-filter","-ms-flex","-ms-flex-align","-ms-flex-direction","-ms-flex-flow","-ms-flex-item-align","-ms-flex-line-pack","-ms-flex-order","-ms-flex-pack","-ms-flex-wrap","-ms-flow-from","-ms-flow-into","-ms-grid-column","-ms-grid-column-align","-ms-grid-columns","-ms-grid-column-span","-ms-grid-layer","-ms-grid-row","-ms-grid-row-align","-ms-grid-rows","-ms-grid-row-span","-ms-high-contrast-adjust","-ms-hyphenate-limit-chars","-ms-hyphenate-limit-lines","-ms-hyphenate-limit-zone","-ms-hyphens","-ms-ime-mode","-ms-interpolation-mode","-ms-layout-grid","-ms-layout-grid-char","-ms-layout-grid-line","-ms-layout-grid-mode","-ms-layout-grid-type","-ms-line-break","-ms-overflow-style","-ms-perspective","-ms-perspective-origin","-ms-perspective-origin-x","-ms-perspective-origin-y","-ms-progress-appearance","-ms-scrollbar-3dlight-color","-ms-scrollbar-arrow-color","-ms-scrollbar-base-color","-ms-scrollbar-darkshadow-color","-ms-scrollbar-face-color","-ms-scrollbar-highlight-color","-ms-scrollbar-shadow-color","-ms-scrollbar-track-color","-ms-scroll-chaining","-ms-scroll-limit","-ms-scroll-limit-x-max","-ms-scroll-limit-x-min","-ms-scroll-limit-y-max","-ms-scroll-limit-y-min","-ms-scroll-rails","-ms-scroll-snap-points-x","-ms-scroll-snap-points-y","-ms-scroll-snap-type","-ms-scroll-snap-x","-ms-scroll-snap-y","-ms-scroll-translation","-ms-text-align-last","-ms-text-autospace","-ms-text-combine-horizontal","-ms-text-justify","-ms-text-kashida-space","-ms-text-overflow","-ms-text-size-adjust","-ms-text-underline-position","-ms-touch-action","-ms-touch-select","-ms-transform","-ms-transform-origin","-ms-transform-origin-x","-ms-transform-origin-y","-ms-transform-origin-z","-ms-user-select","-ms-word-break","-ms-word-wrap","-ms-wrap-flow","-ms-wrap-margin","-ms-wrap-through","-ms-writing-mode","-ms-zoom","-ms-zoom-animation","nav-down","nav-index","nav-left","nav-right","nav-up","negative","-o-animation","-o-animation-delay","-o-animation-direction","-o-animation-duration","-o-animation-fill-mode","-o-animation-iteration-count","-o-animation-name","-o-animation-play-state","-o-animation-timing-function","object-fit","object-position","-o-border-image","-o-object-fit","-o-object-position","opacity","order","orphans","-o-table-baseline","-o-tab-size","-o-text-overflow","-o-transform","-o-transform-origin","-o-transition","-o-transition-delay","-o-transition-duration","-o-transition-property","-o-transition-timing-function","offset-block-end","offset-block-start","offset-inline-end","offset-inline-start","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-wrap","overflow-x","overflow-y","pad","padding","padding-bottom","padding-block-end","padding-block-start","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page-break-after","page-break-before","page-break-inside","paint-order","perspective","perspective-origin","pointer-events","position","prefix","quotes","range","resize","right","ruby-align","ruby-overhang","ruby-position","ruby-span","scrollbar-3dlight-color","scrollbar-arrow-color","scrollbar-base-color","scrollbar-darkshadow-color","scrollbar-face-color","scrollbar-highlight-color","scrollbar-shadow-color","scrollbar-track-color","scroll-behavior","scroll-snap-coordinate","scroll-snap-destination","scroll-snap-points-x","scroll-snap-points-y","scroll-snap-type","shape-image-threshold","shape-margin","shape-outside","shape-rendering","size","src","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","suffix","system","symbols","table-layout","tab-size","text-align","text-align-last","text-anchor","text-decoration","text-decoration-color","text-decoration-line","text-decoration-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-transform","text-underline-position","top","touch-action","transform","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","unicode-bidi","unicode-range","user-select","vertical-align","visibility","-webkit-animation","-webkit-animation-delay","-webkit-animation-direction","-webkit-animation-duration","-webkit-animation-fill-mode","-webkit-animation-iteration-count","-webkit-animation-name","-webkit-animation-play-state","-webkit-animation-timing-function","-webkit-appearance","-webkit-backdrop-filter","-webkit-backface-visibility","-webkit-background-clip","-webkit-background-composite","-webkit-background-origin","-webkit-border-image","-webkit-box-align","-webkit-box-direction","-webkit-box-flex","-webkit-box-flex-group","-webkit-box-ordinal-group","-webkit-box-orient","-webkit-box-pack","-webkit-box-reflect","-webkit-box-sizing","-webkit-break-after","-webkit-break-before","-webkit-break-inside","-webkit-column-break-after","-webkit-column-break-before","-webkit-column-break-inside","-webkit-column-count","-webkit-column-gap","-webkit-column-rule","-webkit-column-rule-color","-webkit-column-rule-style","-webkit-column-rule-width","-webkit-columns","-webkit-column-span","-webkit-column-width","-webkit-filter","-webkit-flow-from","-webkit-flow-into","-webkit-font-feature-settings","-webkit-hyphens","-webkit-line-break","-webkit-margin-bottom-collapse","-webkit-margin-collapse","-webkit-margin-start","-webkit-margin-top-collapse","-webkit-mask-clip","-webkit-mask-image","-webkit-mask-origin","-webkit-mask-repeat","-webkit-mask-size","-webkit-nbsp-mode","-webkit-overflow-scrolling","-webkit-padding-start","-webkit-perspective","-webkit-perspective-origin","-webkit-region-fragment","-webkit-tap-highlight-color","-webkit-text-fill-color","-webkit-text-size-adjust","-webkit-text-stroke","-webkit-text-stroke-color","-webkit-text-stroke-width","-webkit-touch-callout","-webkit-transform","-webkit-transform-origin","-webkit-transform-origin-x","-webkit-transform-origin-y","-webkit-transform-origin-z","-webkit-transform-style","-webkit-transition","-webkit-transition-delay","-webkit-transition-duration","-webkit-transition-property","-webkit-transition-timing-function","-webkit-user-drag","-webkit-user-modify","-webkit-user-select","white-space","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","z-index","zoom"]},dm={tags:["body","head","html","address","blockquote","dd","div","section","article","aside","header","footer","nav","menu","dl","dt","fieldset","form","frame","frameset","h1","h2","h3","h4","h5","h6","iframe","noframes","object","ol","p","ul","applet","center","dir","hr","pre","a","abbr","acronym","area","b","base","basefont","bdo","big","br","button","caption","cite","code","col","colgroup","del","dfn","em","font","i","img","input","ins","isindex","kbd","label","legend","li","link","map","meta","noscript","optgroup","option","param","q","s","samp","script","select","small","span","strike","strong","style","sub","sup","table","tbody","td","textarea","tfoot","th","thead","title","tr","tt","u","var","canvas","main","figure","plaintext","figcaption","hgroup","details","summary"]}});function cA(t,e){if(!t.scheme&&e)throw new Error('[UriError]: Scheme is missing: {scheme: "", authority: "'+t.authority+'", path: "'+t.path+'", query: "'+t.query+'", fragment: "'+t.fragment+'"}');if(t.scheme&&!sA.test(t.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(t.path){if(t.authority){if(!aA.test(t.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(lA.test(t.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}}function uA(t,e){return!t&&!e?"file":t}function dA(t,e){switch(t){case"https":case"http":case"file":e?e[0]!==Hn&&(e=Hn+e):e=Hn;break}return e}function l_(t,e){for(var n=void 0,r=-1,i=0;i<t.length;i++){var o=t.charCodeAt(i);if(o>=97&&o<=122||o>=65&&o<=90||o>=48&&o<=57||o===45||o===46||o===95||o===126||e&&o===47)r!==-1&&(n+=encodeURIComponent(t.substring(r,i)),r=-1),n!==void 0&&(n+=t.charAt(i));else{n===void 0&&(n=t.substr(0,i));var s=d_[o];s!==void 0?(r!==-1&&(n+=encodeURIComponent(t.substring(r,i)),r=-1),n+=s):r===-1&&(r=i)}}return r!==-1&&(n+=encodeURIComponent(t.substring(r))),n!==void 0?n:t}function pA(t){for(var e=void 0,n=0;n<t.length;n++){var r=t.charCodeAt(n);r===35||r===63?(e===void 0&&(e=t.substr(0,n)),e+=d_[r]):e!==void 0&&(e+=t[n])}return e!==void 0?e:t}function h_(t,e){var n;return t.authority&&t.path.length>1&&t.scheme==="file"?n="//"+t.authority+t.path:t.path.charCodeAt(0)===47&&(t.path.charCodeAt(1)>=65&&t.path.charCodeAt(1)<=90||t.path.charCodeAt(1)>=97&&t.path.charCodeAt(1)<=122)&&t.path.charCodeAt(2)===58?e?n=t.path.substr(1):n=t.path[1].toLowerCase()+t.path.substr(2):n=t.path,ta&&(n=n.replace(/\//g,"\\")),n}function hm(t,e){var n=e?pA:l_,r="",i=t.scheme,o=t.authority,s=t.path,l=t.query,a=t.fragment;if(i&&(r+=i,r+=":"),(o||i==="file")&&(r+=Hn,r+=Hn),o){var c=o.indexOf("@");if(c!==-1){var u=o.substr(0,c);o=o.substr(c+1),c=u.indexOf(":"),c===-1?r+=n(u,!1):(r+=n(u.substr(0,c),!1),r+=":",r+=n(u.substr(c+1),!1)),r+="@"}o=o.toLowerCase(),c=o.indexOf(":"),c===-1?r+=n(o,!1):(r+=n(o.substr(0,c),!1),r+=o.substr(c))}if(s){if(s.length>=3&&s.charCodeAt(0)===47&&s.charCodeAt(2)===58){var d=s.charCodeAt(1);d>=65&&d<=90&&(s="/"+String.fromCharCode(d+32)+":"+s.substr(3))}else if(s.length>=2&&s.charCodeAt(1)===58){var d=s.charCodeAt(0);d>=65&&d<=90&&(s=String.fromCharCode(d+32)+":"+s.substr(2))}r+=n(s,!0)}return l&&(r+="?",r+=n(l,!1)),a&&(r+="#",r+=e?a:l_(a,!1)),r}function p_(t){try{return decodeURIComponent(t)}catch{return t.length>3?t.substr(0,3)+p_(t.substr(3)):t}}function sc(t){return t.match(c_)?t.replace(c_,function(e){return p_(e)}):t}var oA,vt,ta,a_,sA,aA,lA,Ye,Hn,hA,pm,u_,Lo,d_,c_,m_=ue(()=>{"use strict";oA=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},t(e,n)};return function(e,n){t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}();typeof process=="object"?ta=process.platform==="win32":typeof navigator=="object"&&(a_=navigator.userAgent,ta=a_.indexOf("Windows")>=0);sA=/^\w[\w\d+.-]*$/,aA=/^\//,lA=/^\/\//;Ye="",Hn="/",hA=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/,pm=function(){function t(e,n,r,i,o,s){s===void 0&&(s=!1),typeof e=="object"?(this.scheme=e.scheme||Ye,this.authority=e.authority||Ye,this.path=e.path||Ye,this.query=e.query||Ye,this.fragment=e.fragment||Ye):(this.scheme=uA(e,s),this.authority=n||Ye,this.path=dA(this.scheme,r||Ye),this.query=i||Ye,this.fragment=o||Ye,cA(this,s))}return t.isUri=function(e){return e instanceof t?!0:e?typeof e.authority=="string"&&typeof e.fragment=="string"&&typeof e.path=="string"&&typeof e.query=="string"&&typeof e.scheme=="string"&&typeof e.fsPath=="function"&&typeof e.with=="function"&&typeof e.toString=="function":!1},Object.defineProperty(t.prototype,"fsPath",{get:function(){return h_(this,!1)},enumerable:!0,configurable:!0}),t.prototype.with=function(e){if(!e)return this;var n=e.scheme,r=e.authority,i=e.path,o=e.query,s=e.fragment;return n===void 0?n=this.scheme:n===null&&(n=Ye),r===void 0?r=this.authority:r===null&&(r=Ye),i===void 0?i=this.path:i===null&&(i=Ye),o===void 0?o=this.query:o===null&&(o=Ye),s===void 0?s=this.fragment:s===null&&(s=Ye),n===this.scheme&&r===this.authority&&i===this.path&&o===this.query&&s===this.fragment?this:new Lo(n,r,i,o,s)},t.parse=function(e,n){n===void 0&&(n=!1);var r=hA.exec(e);return r?new Lo(r[2]||Ye,sc(r[4]||Ye),sc(r[5]||Ye),sc(r[7]||Ye),sc(r[9]||Ye),n):new Lo(Ye,Ye,Ye,Ye,Ye)},t.file=function(e){var n=Ye;if(ta&&(e=e.replace(/\\/g,Hn)),e[0]===Hn&&e[1]===Hn){var r=e.indexOf(Hn,2);r===-1?(n=e.substring(2),e=Hn):(n=e.substring(2,r),e=e.substring(r)||Hn)}return new Lo("file",n,e,Ye,Ye)},t.from=function(e){return new Lo(e.scheme,e.authority,e.path,e.query,e.fragment)},t.prototype.toString=function(e){return e===void 0&&(e=!1),hm(this,e)},t.prototype.toJSON=function(){return this},t.revive=function(e){if(e){if(e instanceof t)return e;var n=new Lo(e);return n._formatted=e.external,n._fsPath=e._sep===u_?e.fsPath:null,n}else return e},t}(),u_=ta?1:void 0,Lo=function(t){oA(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n._formatted=null,n._fsPath=null,n}return Object.defineProperty(e.prototype,"fsPath",{get:function(){return this._fsPath||(this._fsPath=h_(this,!1)),this._fsPath},enumerable:!0,configurable:!0}),e.prototype.toString=function(n){return n===void 0&&(n=!1),n?hm(this,!0):(this._formatted||(this._formatted=hm(this,!1)),this._formatted)},e.prototype.toJSON=function(){var n={$mid:1};return this._fsPath&&(n.fsPath=this._fsPath,n._sep=u_),this._formatted&&(n.external=this._formatted),this.path&&(n.path=this.path),this.scheme&&(n.scheme=this.scheme),this.authority&&(n.authority=this.authority),this.query&&(n.query=this.query),this.fragment&&(n.fragment=this.fragment),n},e}(pm),d_=(vt={},vt[58]="%3A",vt[47]="%2F",vt[63]="%3F",vt[35]="%23",vt[91]="%5B",vt[93]="%5D",vt[64]="%40",vt[33]="%21",vt[36]="%24",vt[38]="%26",vt[39]="%27",vt[40]="%28",vt[41]="%29",vt[42]="%2A",vt[43]="%2B",vt[44]="%2C",vt[59]="%3B",vt[61]="%3D",vt[32]="%20",vt);c_=/(%[0-9A-Za-z][0-9A-Za-z])+/g});function f_(t){return mA.test(t)}function fA(t){let e=[];for(let r of t)r.length===0||r.length===1&&r.charCodeAt(0)===mm||(r.length===2&&r.charCodeAt(0)===mm&&r.charCodeAt(1)===mm?e.pop():e.push(r));t.length>1&&t[t.length-1].length===0&&e.push("");let n=e.join("/");return t[0].length===0&&(n="/"+n),n}function ra(t,...e){let n=t.path.split("/");for(let r of e)n.push(...r.split("/"));return t.with({path:fA(n)})}var na,mA,mm,g_=ue(()=>{(function(t){t[t.Unknown=0]="Unknown",t[t.File=1]="File",t[t.Directory=2]="Directory",t[t.SymbolicLink=64]="SymbolicLink"})(na||(na={}));mA=new RegExp("^(/|//|\\\\\\\\|[A-Za-z]:(/|\\\\))"),mm=".".charCodeAt(0)});var b_,v_=ue(()=>{b_={}});function Bn(t){return t>47&&t<58}function No(t,e,n){return e=e||65,n=n||90,t&=-33,t>=e&&t<=n}function ac(t){return Bn(t)||oa(t)}function oa(t){return t===95||No(t)}function gA(t){return t===32||t===9||t===160}function sa(t){return gA(t)||t===10||t===13}function aa(t){return t===39||t===34}var ia,Vi,lc,fm=ue(()=>{ia=class{constructor(e,n,r){r==null&&typeof e=="string"&&(r=e.length),this.string=e,this.pos=this.start=n||0,this.end=r||0}eof(){return this.pos>=this.end}limit(e,n){return new ia(this.string,e,n)}peek(){return this.string.charCodeAt(this.pos)}next(){if(this.pos<this.string.length)return this.string.charCodeAt(this.pos++)}eat(e){let n=this.peek(),r=typeof e=="function"?e(n):n===e;return r&&this.next(),r}eatWhile(e){let n=this.pos;for(;!this.eof()&&this.eat(e););return this.pos!==n}backUp(e){this.pos-=e||1}current(){return this.substring(this.start,this.pos)}substring(e,n){return this.string.slice(e,n)}error(e,n=this.pos){return new Vi(`${e} at ${n+1}`,n,this.string)}},Vi=class extends Error{constructor(e,n,r){super(e),this.pos=n,this.string=r}},lc=ia});function bA(t){return{tokens:t,start:0,pos:0,size:t.length}}function Ki(t){return t.tokens[t.pos]}function wm(t){return t.tokens[t.pos++]}function Wo(t,e=t.start,n=t.pos){return t.tokens.slice(e,n)}function Lr(t){return t.pos<t.size}function Ut(t,e){let n=Ki(t);return n&&e(n)?(t.pos++,!0):!1}function ym(t,e,n=Ki(t)){n&&n.start!=null&&(e+=` at ${n.start}`);let r=new Error(e);return r.pos=n&&n.start,r}function vA(t,e={}){let n=bA(t),r=E_(n,e);if(Lr(n))throw ym(n,"Unexpected character");return r}function E_(t,e){let n={type:"TokenGroup",elements:[]},r=n,i,o=[];for(;Lr(t)&&(i=yA(t,e)||wA(t,e));)if(r.elements.push(i),Ut(t,PA))o.push(r),r=i;else{if(Ut(t,zA))continue;if(Ut(t,S_))do o.length&&(r=o.pop());while(Ut(t,S_))}return n}function wA(t,e){if(Ut(t,IA)){let n=E_(t,e),r=wm(t);return wn(r,"group",!1)&&(n.repeat=xA(t)),n}}function yA(t,e){let n,r={type:"TokenElement",name:void 0,attributes:void 0,value:void 0,repeat:void 0,selfClose:!1,elements:[]};for(kA(t,e)&&(r.name=Wo(t));Lr(t);)if(t.start=t.pos,!r.repeat&&!gm(r)&&Ut(t,uc))r.repeat=t.tokens[t.pos-1];else if(!r.value&&D_(t))r.value=F_(t);else if(n=w_(t,"id",e)||w_(t,"class",e)||_A(t))r.attributes?r.attributes=r.attributes.concat(n):r.attributes=Array.isArray(n)?n.slice():[n];else{!gm(r)&&Ut(t,OA)&&(r.selfClose=!0,!r.repeat&&Ut(t,uc)&&(r.repeat=t.tokens[t.pos-1]));break}return gm(r)?void 0:r}function _A(t){if(Ut(t,FA)){let e=[],n;for(;Lr(t);)if(n=SA(t))e.push(n);else{if(Ut(t,AA))break;if(!Ut(t,A_))throw ym(t,`Unexpected "${Ki(t).type}" token`)}return e}}function w_(t,e,n){if(pi(Ki(t),e)){t.pos++;let r={name:[MA(e)]};return n.jsx&&D_(t)?(r.value=F_(t),r.expression=!0):r.value=bm(t)?Wo(t):void 0,r}}function SA(t){if(y_(t))return{value:Wo(t)};if(bm(t,!0))return{name:Wo(t),value:Ut(t,CA)&&(y_(t)||bm(t,!0))?Wo(t):void 0}}function xA(t){return uc(Ki(t))?t.tokens[t.pos++]:void 0}function y_(t){let e=t.pos,n=Ki(t);if(cc(n)){for(t.pos++;Lr(t);)if(cc(wm(t),n.single))return t.start=e,!0;throw ym(t,"Unclosed quote",n)}return!1}function bm(t,e){let n=t.pos,r={attribute:0,expression:0,group:0};for(;Lr(t);){let i=Ki(t);if(r.expression)wn(i,"expression")&&(r[i.context]+=i.open?1:-1);else{if(cc(i)||pi(i)||A_(i)||uc(i))break;if(wn(i)){if(!e)break;if(i.open)r[i.context]++;else if(r[i.context])r[i.context]--;else break}}t.pos++}return n!==t.pos?(t.start=n,!0):!1}function kA(t,e){let n=t.pos;if(e.jsx&&Ut(t,__))for(;Lr(t);){let{pos:r}=t;if(!Ut(t,DA)||!Ut(t,__)){t.pos=r;break}}for(;Lr(t)&&Ut(t,EA););return t.pos!==n?(t.start=n,!0):!1}function D_(t){let e=t.pos;if(Ut(t,RA)){let n=0;for(;Lr(t);){let r=wm(t);if(wn(r,"expression"))if(r.open)n++;else if(n)n--;else break}return t.start=e,!0}return!1}function F_(t){let e=t.start,n=t.pos;return wn(t.tokens[e],"expression",!0)&&e++,wn(t.tokens[n-1],"expression",!1)&&n--,Wo(t,e,n)}function wn(t,e,n){return Boolean(t&&t.type==="Bracket"&&(!e||t.context===e)&&(n==null||t.open===n))}function pi(t,e){return Boolean(t&&t.type==="Operator"&&(!e||t.operator===e))}function cc(t,e){return Boolean(t&&t.type==="Quote"&&(e==null||t.single===e))}function A_(t){return Boolean(t&&t.type==="WhiteSpace")}function CA(t){return pi(t,"equal")}function uc(t){return Boolean(t&&t.type==="Repeater")}function TA(t){return t.type==="Literal"}function __(t){if(TA(t)){let e=t.value.charCodeAt(0);return e>=65&&e<=90}return!1}function EA(t){return t.type==="Literal"||t.type==="RepeaterNumber"||t.type==="RepeaterPlaceholder"}function DA(t){return pi(t,"class")}function FA(t){return wn(t,"attribute",!0)}function AA(t){return wn(t,"attribute",!1)}function RA(t){return wn(t,"expression",!0)}function IA(t){return wn(t,"group",!0)}function MA(t){return{type:"Literal",value:t}}function gm(t){return!t.name&&!t.value&&!t.attributes}function PA(t){return pi(t,"child")}function zA(t){return pi(t,"sibling")}function S_(t){return pi(t,"climb")}function OA(t){return pi(t,"close")}function LA(t){return t.eat(92)?(t.start=t.pos,t.eof()||t.pos++,!0):!1}function NA(t){let e=new lc(t),n=[],r={group:0,attribute:0,expression:0,quote:0},i=0,o;for(;!e.eof();)if(i=e.peek(),o=WA(e,r),o)n.push(o),o.type==="Quote"?r.quote=i===r.quote?0:i:o.type==="Bracket"&&(r[o.context]+=o.open?1:-1);else throw e.error("Unexpected character");return n}function WA(t,e){return GA(t,e)||VA(t)||KA(t)||$A(t)||UA(t)||qA(t,e)||BA(t)||jA(t)||HA(t)}function qA(t,e){let n=t.pos,r="";for(;!t.eof();){if(LA(t)){r+=t.current();continue}let i=t.peek();if(i===e.quote||i===36||JA(i,e)||e.expression&&i===125||!e.quote&&!e.expression&&(!e.attribute&&!ZA(i)||XA(i,e)||QA(i,e)||aa(i)||R_(i)))break;r+=t.string[t.pos++]}if(n!==t.pos)return t.start=n,{type:"Literal",value:r,start:n,end:t.pos}}function UA(t){let e=t.pos;if(t.eatWhile(sa))return{type:"WhiteSpace",start:e,end:t.pos,value:t.substring(e,t.pos)}}function jA(t){let e=t.peek();if(aa(e))return{type:"Quote",single:e===39,start:t.pos++,end:t.pos}}function HA(t){let e=t.peek(),n=R_(e);if(n)return{type:"Bracket",open:YA(e),context:n,start:t.pos++,end:t.pos}}function BA(t){let e=I_(t.peek());if(e)return{type:"Operator",operator:e,start:t.pos++,end:t.pos}}function $A(t){let e=t.pos;if(t.eat(42)){t.start=t.pos;let n=1,r=!1;return t.eatWhile(Bn)?n=Number(t.current()):r=!0,{type:"Repeater",count:n,value:0,implicit:r,start:e,end:t.pos}}}function VA(t){let e=t.pos;if(t.eat(36)&&t.eat(35))return{type:"RepeaterPlaceholder",value:void 0,start:e,end:t.pos};t.pos=e}function KA(t){let e=t.pos;if(t.eatWhile(36)){let n=t.pos-e,r=!1,i=1,o=0;if(t.eat(64)){for(;t.eat(94);)o++;r=t.eat(45),t.start=t.pos,t.eatWhile(Bn)&&(i=Number(t.current()))}return t.start=e,{type:"RepeaterNumber",size:n,reverse:r,base:i,parent:o,start:e,end:t.pos}}}function GA(t,e){let n=t.pos;if((e.expression||e.attribute)&&t.eat(36)&&t.eat(123)){t.start=t.pos;let r,i="";if(t.eatWhile(Bn)?(r=Number(t.current()),i=t.eat(58)?x_(t):""):No(t.peek())&&(i=x_(t)),t.eat(125))return{type:"Field",index:r,name:i,start:n,end:t.pos};throw t.error("Expecting }")}t.pos=n}function x_(t){let e=[];for(t.start=t.pos;!t.eof();)if(t.eat(123))e.push(t.pos);else if(t.eat(125)){if(!e.length){t.pos--;break}e.pop()}else t.pos++;if(e.length)throw t.pos=e.pop(),t.error("Expecting }");return t.current()}function JA(t,e){let n=I_(t);return!n||e.quote||e.expression?!1:!e.attribute||n==="equal"}function XA(t,e){return sa(t)&&!e.expression}function QA(t,e){return t===42&&!e.attribute&&!e.expression}function R_(t){if(t===40||t===41)return"group";if(t===91||t===93)return"attribute";if(t===123||t===125)return"expression"}function I_(t){return t===62&&"child"||t===43&&"sibling"||t===94&&"climb"||t===46&&"class"||t===35&&"id"||t===47&&"close"||t===61&&"equal"||void 0}function YA(t){return t===123||t===91||t===40}function ZA(t){return ac(t)||t===45||t===58||t===33}function M_(t,e){if(!k_[t.type])throw new Error(`Unknown token ${t.type}`);return k_[t.type](t,e)}function rR(t,e={}){let n=!1,r;e.text&&(Array.isArray(e.text)?r=e.text.filter(o=>o.trim()):r=e.text);let i={type:"Abbreviation",children:vm(t,{inserted:!1,repeaters:[],text:e.text,cleanText:r,repeatGuard:e.maxRepeat||Number.POSITIVE_INFINITY,getText(o){var s;n=!0;let l;if(Array.isArray(e.text)){if(o!==void 0&&o>=0&&o<r.length)return r[o];l=o!==void 0?e.text[o]:e.text.join(`
|
|
498
498
|
`)}else l=(s=e.text)!==null&&s!==void 0?s:"";return l},getVariable(o){let s=e.variables&&e.variables[o];return s??o}})};if(e.text!=null&&!n){let o=_m(qo(i.children));if(o){let s=Array.isArray(e.text)?e.text.join(`
|
|
499
499
|
`):e.text;N_(o,s),o.name==="a"&&e.href&&oR(o,s)}}return i}function P_(t,e){let n=[];if(t.repeat){let r=t.repeat,i=Object.assign({},r);i.count=i.implicit&&Array.isArray(e.text)?e.cleanText.length:i.count||1;let o;e.repeaters.push(i);for(let s=0;s<i.count;s++){if(i.value=s,t.repeat=i,o=T_(t)?vm(t,e):C_(t,e),i.implicit&&!e.inserted){let l=qo(o),a=l&&_m(l);a&&N_(a,e.getText(i.value))}if(n=n.concat(o),--e.repeatGuard<=0)break}e.repeaters.pop(),t.repeat=r,i.implicit&&(e.inserted=!0)}else n=n.concat(T_(t)?vm(t,e):C_(t,e));return n}function C_(t,e){let n=[],r={type:"AbbreviationNode",name:t.name&&z_(t.name,e),value:t.value&&O_(t.value,e),attributes:void 0,children:n,repeat:t.repeat&&Object.assign({},t.repeat),selfClosing:t.selfClose},i=[r];for(let o of t.elements)n=n.concat(P_(o,e));if(t.attributes){r.attributes=[];for(let o of t.attributes)r.attributes.push(iR(o,e))}return!r.name&&!r.attributes&&r.value&&!r.value.some(L_)?i=i.concat(n):r.children=n,i}function vm(t,e){let n=[];for(let r of t.elements)n=n.concat(P_(r,e));return t.repeat&&(n=sR(n,t.repeat)),n}function iR(t,e){let n=!1,r=!1,i=t.expression?"expression":"raw",o,s=t.name&&z_(t.name,e);if(s&&s[0]==="!"&&(n=!0),s&&s[s.length-1]==="."&&(r=!0),t.value){let l=t.value.slice();if(cc(l[0])){let a=l.shift();l.length&&qo(l).type===a.type&&l.pop(),i=a.single?"singleQuote":"doubleQuote"}else wn(l[0],"expression",!0)&&(i="expression",l.shift(),wn(qo(l),"expression",!1)&&l.pop());o=O_(l,e)}return{name:r||n?s.slice(n?1:0,r?-1:void 0):s,value:o,boolean:r,implied:n,valueType:i}}function z_(t,e){let n="";for(let r=0;r<t.length;r++)n+=M_(t[r],e);return n}function O_(t,e){let n=[],r="";for(let i=0,o;i<t.length;i++)o=t[i],L_(o)?(r&&(n.push(r),r=""),n.push(o)):r+=M_(o,e);return r&&n.push(r),n}function T_(t){return t.type==="TokenGroup"}function L_(t){return typeof t=="object"&&t.type==="Field"&&t.index!=null}function qo(t){return t[t.length-1]}function _m(t){return t.children.length?_m(qo(t.children)):t}function N_(t,e){t.value?typeof qo(t.value)=="string"?t.value[t.value.length-1]+=e:t.value.push(e):t.value=[e]}function oR(t,e){var n;let r="";tR.test(e)?(r=e,!/\w+:/.test(r)&&!r.startsWith("//")&&(r=`http://${r}`)):nR.test(e)&&(r=`mailto:${e}`);let i=(n=t.attributes)===null||n===void 0?void 0:n.find(o=>o.name==="href");i?i.value||(i.value=[r]):(t.attributes||(t.attributes=[]),t.attributes.push({name:"href",value:[r],valueType:"doubleQuote"}))}function sR(t,e){for(let n of t)n.repeat||(n.repeat=Object.assign({},e));return t}function aR(t,e){try{let n=typeof t=="string"?NA(t):t;return rR(vA(n,e),e)}catch(n){throw n instanceof Vi&&typeof t=="string"&&(n.message+=`
|
|
500
500
|
${t}
|
|
501
501
|
${"-".repeat(n.pos)}^`),n}}var eR,k_,tR,nR,dc,Sm=ue(()=>{fm();eR={child:">",class:".",climb:"^",id:"#",equal:"=",close:"/",sibling:"+"},k_={Literal(t){return t.value},Quote(t){return t.single?"'":'"'},Bracket(t){return t.context==="attribute"?t.open?"[":"]":t.context==="expression"?t.open?"{":"}":t.open?"(":"}"},Operator(t){return eR[t.operator]},Field(t,e){return t.index!=null?t.name?`\${${t.index}:${t.name}}`:`\${${t.index}`:t.name?e.getVariable(t.name):""},RepeaterPlaceholder(t,e){let n;for(let r=e.repeaters.length-1;r>=0;r--)if(e.repeaters[r].implicit){n=e.repeaters[r];break}return e.inserted=!0,e.getText(n&&n.value)},RepeaterNumber(t,e){let n=1,r=e.repeaters.length-1,i=e.repeaters[r];if(i&&(n=t.reverse?t.base+i.count-i.value-1:t.base+i.value,t.parent)){let s=Math.max(0,r-t.parent);if(s!==r){let l=e.repeaters[s];n+=i.count*l.value}}let o=String(n);for(;o.length<t.size;)o="0"+o;return o},WhiteSpace(t){return t.value}};tR=/^((https?:|ftp:|file:)?\/\/|(www|ftp)\.)[^ ]*$/,nR=/^[a-z0-9._%+-]+@[a-z0-9.-]+\.[a-z]{2,5}$/;dc=aR});function lR(t,e){let n=0,r,i=new lc(t),o=[];for(;!i.eof();){if(r=cR(i,n===0&&!e),!r)throw i.error("Unexpected character");if(r.type==="Bracket"&&(!n&&r.open&&kR(i,o),n+=r.open?1:-1,n<0))throw i.error("Unexpected bracket",r.start);o.push(r),xR(r)&&(r=U_(i))&&o.push(r)}return o}function cR(t,e){return uR(t)||hR(t)||mR(t)||pR(t)||gR(t)||U_(t)||fR(t)||dR(t,e)}function uR(t){let e=t.pos;if(t.eat(36)&&t.eat(123)){t.start=t.pos;let n,r="";if(t.eatWhile(Bn)?(n=Number(t.current()),r=t.eat(58)?W_(t):""):No(t.peek())&&(r=W_(t)),t.eat(125))return{type:"Field",index:n,name:r,start:e,end:t.pos};throw t.error("Expecting }")}t.pos=e}function W_(t){let e=[];for(t.start=t.pos;!t.eof();)if(t.eat(123))e.push(t.pos);else if(t.eat(125)){if(!e.length){t.pos--;break}e.pop()}else t.pos++;if(e.length)throw t.pos=e.pop(),t.error("Expecting }");return t.current()}function dR(t,e){let n=t.pos;if(t.eat(vR)?t.eatWhile(n?q_:km):t.eat(oa)?t.eatWhile(e?km:q_):(t.eat(46),t.eatWhile(km)),n!==t.pos)return t.start=n,Cm(t,t.start=n)}function Cm(t,e=t.start,n=t.pos){return{type:"Literal",value:t.substring(e,n),start:e,end:n}}function hR(t){let e=t.pos;if(bR(t)){t.start=e;let n=t.current();return t.start=t.pos,t.eat(37)||t.eatWhile(oa),{type:"NumberValue",value:Number(n),rawValue:n,unit:t.current(),start:e,end:t.pos}}}function pR(t){let e=t.peek(),n=t.pos,r=!1;if(aa(e)){for(t.pos++;!t.eof();)if(t.eat(e)){r=!0;break}else t.pos++;return t.start=n,{type:"StringValue",value:t.substring(n+1,t.pos-(r?1:0)),quote:e===39?"single":"double",start:n,end:t.pos}}}function mR(t){let e=t.pos;if(t.eat(35)){let n=t.pos,r="",i="";if(t.eatWhile(yR)?(r=t.substring(n,t.pos),i=xm(t)):t.eat(116)?(r="0",i=xm(t)||"0"):i=xm(t),r||i||t.eof()){let{r:o,g:s,b:l,a}=SR(r,i);return{type:"ColorValue",r:o,g:s,b:l,a,raw:t.substring(e+1,t.pos),start:e,end:t.pos}}else return Cm(t,e)}t.pos=e}function xm(t){let e=t.pos;return t.eat(46)?(t.start=e,t.eatWhile(Bn)?t.current():"1"):""}function fR(t){let e=t.pos;if(t.eatWhile(sa))return{type:"WhiteSpace",start:e,end:t.pos}}function gR(t){let e=t.peek();if(_R(e))return{type:"Bracket",open:e===40,start:t.pos++,end:t.pos}}function U_(t){let e=wR(t.peek());if(e)return{type:"Operator",operator:e,start:t.pos++,end:t.pos}}function bR(t){let e=t.pos;t.eat(45);let n=t.pos,r=t.eatWhile(Bn),i=t.pos;if(t.eat(46)){let o=t.eatWhile(Bn);!r&&!o&&(t.pos=i)}return t.pos===n&&(t.pos=e),t.pos!==e}function vR(t){return t===64||t===36}function wR(t){return t===43&&"+"||t===33&&"!"||t===44&&","||t===58&&":"||t===45&&"-"||void 0}function yR(t){return Bn(t)||No(t,65,70)}function q_(t){return ac(t)||t===45}function _R(t){return t===40||t===41}function km(t){return oa(t)||t===37||t===47}function SR(t,e){let n="0",r="0",i="0",o=Number(e!=null&&e!==""?e:1);if(t==="t")o=0;else switch(t.length){case 0:break;case 1:n=r=i=t+t;break;case 2:n=r=i=t;break;case 3:n=t[0]+t[0],r=t[1]+t[1],i=t[2]+t[2];break;default:t+=t,n=t.slice(0,2),r=t.slice(2,4),i=t.slice(4,6)}return{r:parseInt(n,16),g:parseInt(r,16),b:parseInt(i,16),a:o}}function xR(t){return t.type==="ColorValue"||t.type==="NumberValue"&&!t.unit}function kR(t,e){let n=0,r=0;for(;e.length;){let i=CR(e);if(i.type==="Literal"||i.type==="NumberValue")n=i.start,r||(r=i.end),e.pop();else break}n!==r&&e.push(Cm(t,n,r))}function CR(t){return t[t.length-1]}function TR(t){return{tokens:t,start:0,pos:0,size:t.length}}function hc(t){return t.tokens[t.pos]}function pc(t){return t.pos<t.size}function Nr(t,e){return e(hc(t))?(t.pos++,!0):!1}function j_(t,e,n=hc(t)){n&&n.start!=null&&(e+=` at ${n.start}`);let r=new Error(e);return r.pos=n&&n.start,r}function ER(t,e={}){let n=TR(t),r=[],i;for(;pc(n);)if(i=DR(n,e))r.push(i);else if(!Nr(n,IR))throw j_(n,"Unexpected token");return r}function DR(t,e){let n,r=!1,i,o=[],s=hc(t),l=!!e.value;for(!l&&Tm(s)&&!OR(t)&&(t.pos++,n=s.value,Nr(t,V_)),l&&Nr(t,Em);pc(t);)if(Nr(t,PR))r=!0;else if(i=H_(t,l))o.push(i);else if(!Nr(t,MR))break;if(n||o.length||r)return{name:n,value:o,important:r}}function H_(t,e){let n=[],r,i;for(;pc(t);)if(r=hc(t),zR(r))t.pos++,Tm(r)&&(i=FR(t))?n.push({type:"FunctionCall",name:r.value,arguments:i}):n.push(r);else if(V_(r)||e&&Em(r))t.pos++;else break;return n.length?{type:"CSSValue",value:n}:void 0}function FR(t){let e=t.pos;if(Nr(t,AR)){let n=[],r;for(;pc(t)&&!Nr(t,RR);)if(r=H_(t,!0))n.push(r);else if(!Nr(t,Em)&&!Nr(t,$_))throw j_(t,"Unexpected token");return t.start=e,n}}function Tm(t){return t&&t.type==="Literal"}function B_(t,e){return t&&t.type==="Bracket"&&(e==null||t.open===e)}function AR(t){return B_(t,!0)}function RR(t){return B_(t,!1)}function Em(t){return t&&t.type==="WhiteSpace"}function la(t,e){return t&&t.type==="Operator"&&(!e||t.operator===e)}function IR(t){return la(t,"+")}function $_(t){return la(t,",")}function MR(t){return $_(t)}function PR(t){return la(t,"!")}function zR(t){return t.type==="StringValue"||t.type==="ColorValue"||t.type==="NumberValue"||t.type==="Literal"||t.type==="Field"}function V_(t){return la(t,":")||la(t,"-")}function OR(t){let e=t.tokens[t.pos],n=t.tokens[t.pos+1];return e&&n&&Tm(e)&&n.type==="Bracket"}function LR(t,e){try{let n=typeof t=="string"?lR(t,e&&e.value):t;return ER(n,e)}catch(n){throw n instanceof Vi&&typeof t=="string"&&(n.message+=`
|
|
502
502
|
${t}
|
|
503
|
-
${"-".repeat(n.pos)}^`),n}}var mc,Dm=ue(()=>{fm();mc=LR});function NR(t,e){if(!t.attributes)return;let n=[],r={};for(let i of t.attributes)if(i.name){let o=i.name;if(o in r){let s=r[o];o==="class"?s.value=WR(s.value,i.value," "):qR(s,i,e)}else n.push(r[o]=Object.assign({},i))}else n.push(i);t.attributes=n}function WR(t,e,n){if(t&&e){t.length&&n&&K_(t,n);for(let i of e)K_(t,i);return t}let r=t||e;return r&&r.slice()}function qR(t,e,n){return t.name=e.name,n.options["output.reverseAttributes"]||(t.value=e.value),t.implied||(t.implied=e.implied),t.boolean||(t.boolean=e.boolean),t.valueType!=="expression"&&(t.valueType=e.valueType),t}function K_(t,e){let n=t.length-1;typeof t[n]=="string"&&typeof e=="string"?t[n]+=e:t.push(e)}function UR(t,e,n){let r=[t],i=o=>{e(o,r,n),r.push(o),o.children.forEach(i),r.pop()};t.children.forEach(i)}function jR(t){let e;for(;t.children.length;)e=t,t=t.children[t.children.length-1];return{parent:e,node:t}}function lS(t){return t.type==="AbbreviationNode"}function HR(t,e){let n=[],r=e.options["output.reverseAttributes"],i=o=>{let s=o.name&&e.snippets[o.name];if(!s||n.includes(s))return null;let l=dc(s,e);n.push(s),bc(l,i),n.pop();for(let a of l.children){if(o.attributes){let c=a.attributes||[],u=o.attributes||[];a.attributes=r?u.concat(c):c.concat(u)}BR(o,a)}return l};return bc(t,i),t}function bc(t,e,n){let r=[];for(let i of t.children){let o=e(i);if(o){r=r.concat(o.children);let s=jR(o);lS(s.node)&&(s.node.children=s.node.children.concat(bc(i,e)))}else r.push(i),i.children=bc(i,e)}return t.children=r}function BR(t,e){t.selfClosing&&(e.selfClosing=!0),t.value!=null&&(e.value=t.value),t.repeat&&(e.repeat=t.repeat)}function cS(t,e=0){return{options:t,value:"",level:e,offset:0,line:0,column:0}}function Et(t,e){let n=t.options["output.text"];hS(t,n(e,t.offset,t.line,t.column))}function Ge(t,e){let n=GR(e);for(let r=0,i=n.length-1;r<=i;r++)Et(t,n[r]),r!==i&&dr(t,!0)}function dr(t,e){let n=t.options["output.baseIndent"],r=t.options["output.newline"];Et(t,r+n),t.line++,t.column=n.length,e&&$R(t,e===!0?t.level:e)}function $R(t,e=t.level){let n=t.options["output.indent"];Et(t,n.repeat(Math.max(e,0)))}function Pm(t,e,n){let r=t.options["output.field"];hS(t,r(e,n,t.offset,t.line,t.column))}function VR(t,e){return pS(t,e.options["output.tagCase"])}function uS(t,e){return pS(t,e.options["output.attributeCase"])}function vc(t,e,n){return t.valueType==="expression"?n?"{":"}":e.options["output.attributeQuotes"]==="single"?"'":'"'}function dS(t,e){return t.boolean||e.options["output.booleanAttributes"].includes((t.name||"").toLowerCase())}function KR(t){switch(t.options["output.selfClosingStyle"]){case"xhtml":return" /";case"xml":return"/";default:return""}}function Uo(t,e){return typeof t=="string"?e.options.inlineElements.includes(t.toLowerCase()):t.name?Uo(t.name,e):Boolean(t.value&&!t.attributes)}function GR(t){return t.split(/\r\n|\r|\n/g)}function hS(t,e){t.value+=e,t.offset+=e.length,t.column+=e.length}function pS(t,e){return e?e==="upper"?t.toUpperCase():t.toLowerCase():t}function XR(t,e,n){!t.name&&t.attributes&&mS(t,e,n)}function mS(t,e,n){let r=YR(e),i=n.context?n.context.name:"",o=QR(r?r.name:i);t.name=JR[o]||(Uo(o,n)?"span":"div")}function QR(t){return(t||"").toLowerCase()}function YR(t){for(let e=t.length-1;e>=0;e--){let n=t[e];if(lS(n))return n}}function rI(t,e,n){let r;if(t.name&&(r=t.name.match(nI))){let i=G_[r[1]]||G_.latin,o=r[2]?Math.max(1,Number(r[2])):30,s=r[3]?Math.max(o,Number(r[3].slice(1))):o,l=pi(o,s),a=t.repeat||lI(e);t.name=t.attributes=void 0,t.value=[aI(i,l,!a||a.value===0)],t.repeat&&e.length>1&&mS(t,e,n)}}function pi(t,e){return Math.floor(Math.random()*(e-t)+t)}function iI(t,e){let n=t.length,r=Math.min(n,e),i=[];for(;i.length<r;){let o=t[pi(0,n)];i.includes(o)||i.push(o)}return i}function oI(t){return t[pi(0,t.length-1)]}function J_(t,e){return t.length&&(t=[sI(t[0])].concat(t.slice(1))),t.join(" ")+(e||oI("?!..."))}function sI(t){return t[0].toUpperCase()+t.slice(1)}function X_(t){if(t.length<2)return t;t=t.slice();let e=t.length,n=/,$/,r=0;e>3&&e<=6?r=pi(0,1):e>6&&e<=12?r=pi(0,2):r=pi(1,4);for(let i=0,o;i<r;i++)o=pi(0,e-2),n.test(t[o])||(t[o]+=",");return t}function aI(t,e,n){let r=[],i=0,o;for(n&&t.common&&(o=t.common.slice(0,e),i+=o.length,r.push(J_(X_(o),".")));i<e;)o=iI(t.words,Math.min(pi(2,30),e-i)),i+=o.length,r.push(J_(X_(o)));return r.join(" ")}function lI(t){for(let e=t.length-1;e>=0;e--){let n=t[e];if(n.type==="AbbreviationNode"&&n.repeat)return n.repeat}}function cI(t){t.attributes&&t.attributes.forEach(uI)}function uI(t){t.name==="class"?t.name="className":t.name==="for"&&(t.name="htmlFor")}function dI(t){pI(t.name)&&t.attributes&&(t.children.length||t.value)&&(t.attributes=t.attributes.filter(hI))}function hI(t){return t.name!=="select"}function pI(t){return t==="xsl:variable"||t==="xsl:with-param"}function gI(t,e,n){bI(t),vI(t,e,n)}function bI(t){let e=zm(t),n=[];for(let r of e.classNames){let i=r.indexOf("_");i>0&&!r.startsWith("-")?(n.push(r.slice(0,i)),n.push(r.slice(i))):n.push(r)}n.length&&(e.classNames=n.filter(yS),e.block=vS(e.classNames),wS(t,e.classNames.join(" ")))}function vI(t,e,n){let r=zm(t),i=[],{options:o}=n,s=e.slice(1).concat(t);for(let a of r.classNames){let c="",u,d=a;(u=a.match(fS))&&(c=Q_(s,u[1].length,n.context)+o["bem.element"]+u[2],i.push(c),a=a.slice(u[0].length)),(u=a.match(gS))&&(c||(c=Q_(s,u[1].length),i.push(c)),i.push(`${c}${o["bem.modifier"]}${u[2]}`),a=a.slice(u[0].length)),a===d&&i.push(d)}let l=i.filter(yS);l.length&&wS(t,l.join(" "))}function zm(t){if(!t._bem){let e="";if(t.attributes){for(let n of t.attributes)if(n.name==="class"&&n.value){e=yI(n.value);break}}t._bem=bS(e)}return t._bem}function wI(t){return t._bem||(t._bem=bS(t.attributes&&t.attributes.class||"")),t._bem}function bS(t){let e=t?t.split(/\s+/):[];return{classNames:e,block:vS(e)}}function Q_(t,e=0,n){let i=Math.max(t.length-e,0);do{let o=t[i];if(o){let s=zm(o);if(s.block)return s.block}}while(0<i--);if(n){let o=wI(n);if(o.block)return o.block}return""}function vS(t){return Y_(t,mI)||Y_(t,fI)||void 0}function Y_(t,e){for(let n of t){if(fS.test(n)||gS.test(n))break;if(e(n))return n}}function wS(t,e){for(let n of t.attributes)if(n.name==="class"){n.value=[e];break}}function yI(t){let e="";for(let n of t)e+=typeof n=="string"?n:n.name;return e}function yS(t,e,n){return!!t&&n.indexOf(t)===e}function _S(t,e,n){let r=(o,s,l)=>{let{parent:a,current:c}=n;n.parent=c,n.current=o,e(o,s,l,n,i),n.current=c,n.parent=a},i=(o,s,l)=>{n.ancestors.push(n.current),r(o,s,l),n.ancestors.pop()};t.children.forEach(r)}function SS(t){return{current:null,parent:void 0,ancestors:[],config:t,field:1,out:cS(t.options)}}function Ji(t){return t?!t.name&&!t.attributes:!1}function Z_(t,e){return t?Uo(t,e):!1}function xS(t){return typeof t=="object"&&t.type==="Field"}function yn(t,e){let{out:n}=e,r=-1;for(let i of t)typeof i=="string"?Ge(n,i):(Pm(n,e.field+i.index,i.name),i.index>r&&(r=i.index));r!==-1&&(e.field+=r+1)}function _I(t){let e=[],n=[];for(let r of t)if(typeof r=="string"){let i=r.split(/\r\n?|\n/g);for(n.push(i.shift()||"");i.length;)e.push(n),n=[i.shift()||""]}else n.push(r);return n.length&&e.push(n),e}function kS(t){return!t.implied||t.valueType!=="raw"||!!t.value&&t.value.length>0}function eS(t){let e=[],n={pos:0,text:t},r,i=n.pos,o=n.pos;for(;n.pos<n.text.length;)o=n.pos,(r=SI(n))?(i!==n.pos&&e.push(t.slice(i,o)),e.push(r),i=n.pos):n.pos++;return i!==n.pos&&e.push(t.slice(i)),e}function SI(t){if(Fm(t)===91){let e=++t.pos,n=e,r=e,i=1;for(;t.pos<t.text.length;){let o=Fm(t);if(CS(o)){for(n=t.pos;xI(Fm(t));)t.pos++;r=t.pos}else{if(o===91)i++;else if(o===93&&--i===0)return{before:t.text.slice(e,n),after:t.text.slice(r,t.pos++),name:t.text.slice(n,r)};t.pos++}}}}function Fm(t,e=t.pos){return t.text.charCodeAt(e)}function CS(t){return t>=65&&t<=90}function xI(t){return CS(t)||t>47&&t<58||t===95||t===45}function kI(t){let{options:e}=t;return{enabled:e["comment.enabled"],trigger:e["comment.trigger"],before:e["comment.before"]?eS(e["comment.before"]):void 0,after:e["comment.after"]?eS(e["comment.after"]):void 0}}function CI(t,e){TS(t,e)&&e.comment.before&&ES(t,e.comment.before,e)}function TI(t,e){TS(t,e)&&e.comment.after&&ES(t,e.comment.after,e)}function TS(t,e){let{comment:n}=e;if(!n.enabled||!n.trigger||!t.name||!t.attributes)return!1;for(let r of t.attributes)if(r.name&&n.trigger.includes(r.name))return!0;return!1}function ES(t,e,n){let r={},{out:i}=n;for(let o of t.attributes)o.name&&o.value&&(r[o.name.toUpperCase()]=o.value);for(let o of e)typeof o=="string"?Ge(i,o):r[o.name]&&(Ge(i,o.before),yn(r[o.name],n),Ge(i,o.after))}function DS(t,e){let n=SS(e);return n.comment=kI(e),_S(t,DI,n),n.out.value}function DI(t,e,n,r,i){let{out:o,config:s}=r,l=FS(t,e,n,r),a=AI(r);if(o.level+=a,l&&dr(o,!0),t.name){let c=VR(t.name,s);if(CI(t,r),Ge(o,`<${c}`),t.attributes)for(let u of t.attributes)kS(u)&&FI(u,r);if(t.selfClosing&&!t.children.length&&!t.value)Ge(o,`${KR(s)}>`);else{if(Ge(o,">"),!tS(t,r,i)){if(t.value){let u=t.value.some(AS)||RI(t.value,s);u&&dr(r.out,++o.level),yn(t.value,r),u&&dr(r.out,--o.level)}if(t.children.forEach(i),!t.value&&!t.children.length){let u=s.options["output.formatLeafNode"]||s.options["output.formatForce"].includes(t.name);u&&dr(r.out,++o.level),yn(_c,r),u&&dr(r.out,--o.level)}}Ge(o,`</${c}>`),TI(t,r)}}else!tS(t,r,i)&&t.value&&(yn(t.value,r),t.children.forEach(i));if(l&&e===n.length-1&&r.parent){let c=Ji(r.parent)?0:1;dr(o,o.level-c)}o.level-=a}function FI(t,e){let{out:n,config:r}=e;if(t.name){let i=uS(t.name,r),o=vc(t,r,!0),s=vc(t,r),l=t.value;dS(t,r)&&!l?r.options["output.compactBoolean"]||(l=[i]):l||(l=_c),Ge(n," "+i),l?(Ge(n,"="+o),yn(l,e),Ge(n,s)):r.options["output.selfClosingStyle"]!=="html"&&Ge(n,"="+o+s)}}function tS(t,e,n){if(t.value&&t.children.length){let r=t.value.findIndex(xS);if(r!==-1){yn(t.value.slice(0,r),e);let i=e.out.line,o=r+1;return t.children.forEach(n),e.out.line!==i&&typeof t.value[o]=="string"&&Ge(e.out,t.value[o++].trimLeft()),yn(t.value.slice(o),e),!0}}return!1}function FS(t,e,n,r){let{config:i,parent:o}=r;if(!i.options["output.format"]||e===0&&!o||o&&Ji(o)&&n.length===1)return!1;if(Ji(t)&&(Ji(n[e-1])||Ji(n[e+1])||t.value.some(AS)||t.value.some(xS)&&t.children.length))return!0;if(Uo(t,i)){if(e===0){for(let s=0;s<n.length;s++)if(!Uo(n[s],i))return!0}else if(!Uo(n[e-1],i))return!0;if(i.options["output.inlineBreak"]){let s=1,l=e,a=e;for(;Z_(n[--l],i);)s++;for(;Z_(n[++a],i);)s++;if(s>=i.options["output.inlineBreak"])return!0}for(let s=0,l=t.children.length;s<l;s++)if(FS(t.children[s],s,t.children,r))return!0;return!1}return!0}function AI(t){let{config:e,parent:n}=t;return!n||Ji(n)||n.name&&e.options["output.formatSkip"].includes(n.name)?0:1}function AS(t){return typeof t=="string"&&/\r|\n/.test(t)}function RI(t,e){if(t.length&&typeof t[0]=="string"){let n=EI.exec(t[0]);if(n?.length&&!e.options.inlineElements.includes(n[1].toLowerCase()))return!0}return!1}function Om(t,e,n){let r=SS(e);return r.options=n||{},_S(t,II,r),r.out.value}function II(t,e,n,r,i){let{out:o,options:s}=r,{primary:l,secondary:a}=MI(t),c=r.parent?1:0;o.level+=c,WI(t,e,n,r)&&dr(o,!0),t.name&&(t.name!=="div"||!l.length)&&Ge(o,(s.beforeName||"")+t.name+(s.afterName||"")),PI(l,r),zI(a.filter(kS),r),t.selfClosing&&!t.value&&!t.children.length?r.options.selfClose&&Ge(o,r.options.selfClose):(OI(t,r),t.children.forEach(i)),o.level-=c}function MI(t){let e=[],n=[];if(t.attributes)for(let r of t.attributes)LI(r)?e.push(r):n.push(r);return{primary:e,secondary:n}}function PI(t,e){for(let n of t)if(n.value)if(n.name==="class"){Ge(e.out,".");let r=n.value.map(i=>typeof i=="string"?i.replace(/\s+/g,"."):i);yn(r,e)}else Ge(e.out,"#"),yn(n.value,e)}function zI(t,e){if(t.length){let{out:n,config:r,options:i}=e;i.beforeAttribute&&Ge(n,i.beforeAttribute);for(let o=0;o<t.length;o++){let s=t[o];Ge(n,uS(s.name||"",r)),dS(s,r)&&!s.value?!r.options["output.compactBoolean"]&&i.booleanValue&&Ge(n,"="+i.booleanValue):(Ge(n,"="+vc(s,r,!0)),yn(s.value||_c,e),Ge(n,vc(s,r))),o!==t.length-1&&i.glueAttribute&&Ge(n,i.glueAttribute)}i.afterAttribute&&Ge(n,i.afterAttribute)}}function OI(t,e){if(!t.value&&t.children.length)return;let n=t.value||_c,r=_I(n),{out:i,options:o}=e;if(r.length===1)(t.name||t.attributes)&&Et(i," "),yn(n,e);else{let s=[],l=0;for(let a of r){let c=NI(a);s.push(c),c>l&&(l=c)}i.level++;for(let a=0;a<r.length;a++)dr(i,!0),o.beforeTextLine&&Et(i,o.beforeTextLine),yn(r[a],e),o.afterTextLine&&(Et(i," ".repeat(l-s[a])),Et(i,o.afterTextLine));i.level--}}function LI(t){return t.name==="class"||t.name==="id"}function NI(t){let e=0;for(let n of t)e+=typeof n=="string"?n.length:n.name.length;return e}function WI(t,e,n,r){return!r.parent&&e===0?!1:!Ji(t)}function qI(t,e){return Om(t,e,{beforeName:"%",beforeAttribute:"(",afterAttribute:")",glueAttribute:" ",afterTextLine:" |",booleanValue:"true",selfClose:"/"})}function UI(t,e){return Om(t,e,{beforeAttribute:" ",glueAttribute:" ",beforeTextLine:"| ",selfClose:"/"})}function jI(t,e){return Om(t,e,{beforeAttribute:"(",afterAttribute:")",glueAttribute:", ",beforeTextLine:"| ",selfClose:e.options["output.selfClosingStyle"]==="xml"?"/":""})}function Lm(t,e){let n;if(typeof t=="string"){let r=e;e.options["jsx.enabled"]&&(r=Object.assign(Object.assign({},r),{jsx:!0})),e.options["markup.href"]&&(r=Object.assign(Object.assign({},r),{href:!0})),t=dc(t,r),n=e.text,e.text=void 0}return t=HR(t,e),UR(t,BI,e),e.text=n??e.text,t}function Nm(t,e){return(HI[e.syntax]||DS)(t,e)}function BI(t,e,n){XR(t,e,n),NR(t,n),rI(t,e,n),n.syntax==="xsl"&&dI(t),n.options["jsx.enabled"]&&cI(t),n.options["bem.enabled"]&&gI(t,e,n)}function KI(t,e){let n=e.match($I);if(n){let r={},i=n[2]?n[2].split("|").map(XI):[];for(let o of i)for(let s of o)YI(s,r);return{type:"Property",key:t,property:n[1],value:i,keywords:r,dependencies:[]}}return{type:"Raw",key:t,value:e}}function GI(t){t=t.slice().sort(JI);let e=[],n;for(let r of t.filter(QI)){for(;e.length;){if(n=e[e.length-1],r.property.startsWith(n.property)&&r.property.charCodeAt(n.property.length)===45){n.dependencies.push(r),e.push(r);break}e.pop()}e.length||e.push(r)}return t}function JI(t,e){return t.key===e.key?0:t.key<e.key?-1:1}function XI(t){return mc(t.trim(),VI)[0].value}function QI(t){return t.type==="Property"}function YI(t,e){for(let n of t.value)if(n.type==="Literal")e[n.value]=n;else if(n.type==="FunctionCall")e[n.name]=n;else if(n.type==="Field"){let r=n.name.trim();r&&(e[r]={type:"Literal",value:r})}}function ZI(t,e,n=!1){if(t=t.toLowerCase(),e=e.toLowerCase(),t===e)return 1;if(!t||!e||t.charCodeAt(0)!==e.charCodeAt(0))return 0;let r=t.length,i=e.length;if(!n&&r>i)return 0;let o=Math.min(r,i),s=Math.max(r,i),l=1,a=1,c=s,u=0,d=0,h=!1,p=!1;for(;l<r;){for(u=t.charCodeAt(l),h=!1,p=!1;a<i;){if(d=e.charCodeAt(a),u===d){h=!0,c+=s-(p?l:a);break}p=d===45,a++}if(!h){if(!n)return 0;break}l++}let w=l/s,v=s-o,x=nS(s)-nS(v);return c*w/x}function nS(t){return t*(t+1)/2}function RS(t,e){return!t.r&&!t.g&&!t.b&&!t.a?"transparent":t.a===1?eM(t,e):tM(t)}function eM(t,e){let n=e&&Am(t.r)&&Am(t.g)&&Am(t.b)?nM:rM;return"#"+n(t.r)+n(t.g)+n(t.b)}function tM(t){let e=[t.r,t.g,t.b];return t.a!==1&&e.push(IS(t.a,8)),`${e.length===3?"rgb":"rgba"}(${e.join(", ")})`}function IS(t,e=4){return t.toFixed(e).replace(/\.?0+$/,"")}function Am(t){return!(t%17)}function nM(t){return(t>>4).toString(16)}function rM(t){return iM(t.toString(16),2)}function iM(t,e){for(;t.length<e;)t="0"+t;return t}function Wm(t,e){var n;let r=cS(e.options),i=e.options["output.format"];((n=e.context)===null||n===void 0?void 0:n.name)==="@@section"&&(t=t.filter(o=>o.snippet));for(let o=0;o<t.length;o++)i&&o!==0&&dr(r,!0),oM(t[o],r,e);return r.value}function oM(t,e,n){let r=n.options["stylesheet.json"];if(t.name){let i=r?lM(t.name):t.name;Ge(e,i+n.options["stylesheet.between"]),t.value.length?sM(t,e,n):Pm(e,0,""),r?Et(e,","):(rS(t,e,!0),Et(e,n.options["stylesheet.after"]))}else{for(let i of t.value)for(let o of i.value)PS(o,e,n);rS(t,e,t.value.length>0)}}function sM(t,e,n){let r=n.options["stylesheet.json"],i=r?aM(t):null;if(i&&(!i.unit||i.unit==="px"))Et(e,String(i.value));else{let o=cM(n);r&&Et(e,o);for(let s=0;s<t.value.length;s++)s!==0&&Et(e,", "),MS(t.value[s],e,n);r&&Et(e,o)}}function rS(t,e,n){t.important&&(n&&Et(e," "),Et(e,"!important"))}function MS(t,e,n){for(let r=0,i=-1;r<t.value.length;r++){let o=t.value[r];r!==0&&(o.type!=="Field"||o.start!==i)&&Et(e," "),PS(o,e,n),i=o.end}}function PS(t,e,n){if(t.type==="ColorValue")Et(e,RS(t,n.options["stylesheet.shortHex"]));else if(t.type==="Literal")Ge(e,t.value);else if(t.type==="NumberValue")Ge(e,IS(t.value,4)+t.unit);else if(t.type==="StringValue"){let r=t.quote==="double"?'"':"'";Ge(e,r+t.value+r)}else if(t.type==="Field")Pm(e,t.index,t.name);else if(t.type==="FunctionCall"){Et(e,t.name+"(");for(let r=0;r<t.arguments.length;r++)r&&Et(e,", "),MS(t.arguments[r],e,n);Et(e,")")}}function aM(t){if(t.value.length===1){let e=t.value[0];if(e.value.length===1&&e.value[0].type==="NumberValue")return e.value[0]}}function lM(t){return t.replace(/\-(\w)/g,(e,n)=>n.toUpperCase())}function cM(t){return t.options["stylesheet.jsonDoubleQuotes"]?'"':"'"}function qm(t,e){var n;let r=((n=e.cache)===null||n===void 0?void 0:n.stylesheetSnippets)||uM(e.snippets);e.cache&&(e.cache.stylesheetSnippets=r),typeof t=="string"&&(t=mc(t,{value:NS(e)}));let i=vM(r,e);for(let o of t)dM(o,i,e);return t}function uM(t){let e=[];for(let n of Object.keys(t))e.push(KI(n,t[n]));return GI(e)}function dM(t,e,n){if(!hM(t,n)){let r=n.options["stylesheet.fuzzySearchMinScore"];if(NS(n)){let i=n.context.name,o=e.find(s=>s.type==="Property"&&s.property===i);zS(t,n,o,r),t.snippet=o}else if(t.name){let i=gc(t.name,e,r,!0);t.snippet=i,i&&(i.type==="Property"?pM(t,i,n):mM(t,i))}}return(t.name||n.context)&&bM(t,n),t}function hM(t,e){let n=null,r=t.value.length===1?t.value[0]:null;if(r&&r.value.length===1){let i=r.value[0];i.type==="FunctionCall"&&i.name===iS&&(n=i)}return n||t.name===iS?(n?n=Object.assign(Object.assign({},n),{name:"linear-gradient"}):n={type:"FunctionCall",name:"linear-gradient",arguments:[wc(Gi(0,""))]},e.context||(t.name="background-image"),t.value=[wc(n)],!0):!1}function pM(t,e,n){let r=t.name,i=gM(r,e.key);if(i){if(t.value.length)return t;let o=Im(i,n,e);if(!o)return t;t.value.push(wc(o))}if(t.name=e.property,t.value.length)zS(t,n,e);else if(e.value.length){let o=e.value[0];t.value=e.value.length===1||o.some(OS)?o:o.map(s=>LS(s,n))}return t}function zS(t,e,n,r){for(let i of t.value){let o=[];for(let s of i.value)if(s.type==="Literal")o.push(Im(s.value,e,n,r)||s);else if(s.type==="FunctionCall"){let l=Im(s.name,e,n,r);l&&l.type==="FunctionCall"?o.push(Object.assign(Object.assign({},l),{arguments:s.arguments.concat(l.arguments.slice(s.arguments.length))})):o.push(s)}else o.push(s);i.value=o}}function mM(t,e){let n=0,r,i=/\$\{(\d+)(:[^}]+)?\}/g,o=t.value[0],s=[];for(;r=i.exec(e.value);)n!==r.index&&s.push(jo(e.value.slice(n,r.index))),n=r.index+r[0].length,o&&o.value.length?s.push(o.value.shift()):s.push(Gi(Number(r[1]),r[2]?r[2].slice(1):""));let l=e.value.slice(n);return l&&s.push(jo(l)),t.name=void 0,t.value=[wc(...s)],t}function gc(t,e,n=0,r=!1){let i=null,o=0;for(let s of e){let l=ZI(t,fM(s),r);if(l===1)return s;l&&l>=o&&(o=l,i=s)}return o>=n?i:null}function fM(t){return typeof t=="string"?t:t.key}function gM(t,e){for(let n=0,r=0;n<t.length;n++){if(r=e.indexOf(t[n],r),r===-1)return t.slice(n);r++}return""}function Im(t,e,n,r){let i;if(n){if(i=gc(t,Object.keys(n.keywords),r))return n.keywords[i];for(let o of n.dependencies)if(i=gc(t,Object.keys(o.keywords),r))return o.keywords[i]}return(i=gc(t,e.options["stylesheet.keywords"],r))?jo(i):null}function bM(t,e){let n=e.options["stylesheet.unitAliases"],r=e.options["stylesheet.unitless"];for(let i of t.value)for(let o of i.value)o.type==="NumberValue"&&(o.unit?o.unit=n[o.unit]||o.unit:o.value!==0&&!r.includes(t.name)&&(o.unit=o.rawValue.includes(".")?e.options["stylesheet.floatUnit"]:e.options["stylesheet.intUnit"]))}function wc(...t){return{type:"CSSValue",value:t}}function jo(t){return{type:"Literal",value:t}}function Gi(t,e){return{type:"Field",index:t,name:e}}function OS(t){for(let e of t.value)if(e.type==="Field"||e.type==="FunctionCall"&&e.arguments.some(OS))return!0;return!1}function LS(t,e,n={index:1}){let r=[];for(let i of t.value)switch(i.type){case"ColorValue":r.push(Gi(n.index++,RS(i,e.options["stylesheet.shortHex"])));break;case"Literal":r.push(Gi(n.index++,i.value));break;case"NumberValue":r.push(Gi(n.index++,`${i.value}${i.unit}`));break;case"StringValue":let o=i.quote==="single"?"'":'"';r.push(Gi(n.index++,o+i.value+o));break;case"FunctionCall":r.push(Gi(n.index++,i.name),jo("("));for(let s=0,l=i.arguments.length;s<l;s++)r=r.concat(LS(i.arguments[s],e,n).value),s!==l-1&&r.push(jo(", "));r.push(jo(")"));break;default:r.push(i)}return Object.assign(Object.assign({},t),{value:r})}function NS(t){return t.context?t.context.name==="@@value"||!t.context.name.startsWith("@@"):!1}function vM(t,e){if(e.context){if(e.context.name==="@@section")return t.filter(n=>n.type==="Raw");if(e.context.name==="@@property")return t.filter(n=>n.type==="Property")}return t}function fc(t){let e={};return Object.keys(t).forEach(n=>{for(let r of n.split("|"))e[r]=t[n]}),e}function ua(t={},e={}){let n=t.type||"markup",r=t.syntax||kM[n];return Object.assign(Object.assign(Object.assign({},WS),t),{type:n,syntax:r,variables:Rm(n,r,"variables",t,e),snippets:Rm(n,r,"snippets",t,e),options:Rm(n,r,"options",t,e)})}function Rm(t,e,n,r,i={}){let o=oS[t],s=i[t],l=oS[e],a=i[e];return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},WS[n]),o&&o[n]),l&&l[n]),s&&s[n]),a&&a[n]),r[n])}function qS(t,e=0){return{text:t,start:e,pos:t.length}}function Wr(t){return t.pos===t.start}function ca(t,e=0){return t.text.charCodeAt(t.pos-1+e)}function sS(t){if(!Wr(t))return t.text.charCodeAt(--t.pos)}function cn(t,e){if(Wr(t))return!1;let n=typeof e=="function"?e(ca(t)):e===ca(t);return n&&t.pos--,!!n}function US(t,e){let n=t.pos;for(;cn(t,e););return t.pos<n}function Um(t){return t===39||t===34}function TM(t){let e=t.pos,n=sS(t);if(Um(n)){for(;!Wr(t);)if(sS(t)===n&&ca(t)!==92)return!0}return t.pos=e,!1}function EM(t){let e=t.pos;if(!cn(t,62))return!1;let n=!1;for(cn(t,47);!Wr(t);){if(US(t,Mm),yc(t)){if(cn(t,47)){n=cn(t,60);break}else if(cn(t,60)){n=!0;break}else{if(cn(t,Mm))continue;if(cn(t,61)){if(yc(t))continue;break}else if(HS(t)){n=!0;break}}break}if(!DM(t))break}return t.pos=e,n}function DM(t){return FM(t)||HS(t)}function FM(t){let e=t.pos;return TM(t)&&cn(t,61)&&yc(t)?!0:(t.pos=e,!1)}function HS(t){let e=t.pos,n=[];for(;!Wr(t);){let r=ca(t);if(zM(r))n.push(r);else if(PM(r)){if(n.pop()!==jS[r])break}else if(!MM(r))break;t.pos--}return e!==t.pos&&cn(t,61)&&yc(t)?!0:(t.pos=e,!1)}function yc(t){return US(t,AM)}function AM(t){return t===58||t===45||RM(t)||IM(t)}function RM(t){return t&=-33,t>=65&&t<=90}function IM(t){return t>47&&t<58}function Mm(t){return t===32||t===9}function MM(t){return!isNaN(t)&&t!==61&&!Mm(t)&&!Um(t)}function PM(t){return t===123||t===40||t===91}function zM(t){return t===125||t===41||t===93}function jm(t,e=t.length,n={}){let r=Object.assign(Object.assign({},LM),n);e=Math.min(t.length,Math.max(0,e??t.length)),r.lookAhead&&(e=NM(t,e,r));let i,o=WM(t,e,r.prefix||"");if(o===-1)return;let s=qS(t,o);s.pos=e;let l=[];for(;!Wr(s);){if(i=ca(s),l.includes(125)){if(i===125){l.push(i),s.pos--;continue}if(i!==123){s.pos--;continue}}if($S(i,r.type))l.push(i);else if(jM(i,r.type)){if(l.pop()!==jS[i])break}else if(l.includes(93)||l.includes(125)){s.pos--;continue}else if(EM(s)||!UM(i))break;s.pos--}if(!l.length&&s.pos!==e){let a=t.slice(s.pos,e).replace(/^[*+>^]+/,"");return{abbreviation:a,location:e-a.length,start:n.prefix?o-n.prefix.length:e-a.length,end:e}}}function NM(t,e,n){for(Um(t.charCodeAt(e))&&e++;$S(t.charCodeAt(e),n.type);)e++;return e}function WM(t,e,n){if(!n)return 0;let r=qS(t),i=n.split("").map(BS);r.pos=e;let o;for(;!Wr(r);)if(!(aS(r,93,91)||aS(r,125,123))){if(o=r.pos,qM(r,i))return o;r.pos--}return-1}function aS(t,e,n){let r=t.pos;if(cn(t,e))for(;!Wr(t);){if(cn(t,n))return!0;t.pos--}return t.pos=r,!1}function qM(t,e){let n=t.pos,r=!1;for(let i=e.length-1;i>=0&&!Wr(t)&&cn(t,e[i]);i--)r=i===0;return r||(t.pos=n),r}function UM(t){return t>64&&t<91||t>96&&t<123||t>47&&t<58||OM.includes(t)}function jM(t,e){return t===40||e==="markup"&&(t===91||t===123)}function $S(t,e){return t===41||e==="markup"&&(t===93||t===125)}function HM(t,e){let n=ua(e);return n.type==="stylesheet"?$M(t,n):BM(t,n)}function BM(t,e){return Nm(Lm(t,e),e)}function $M(t,e){return Wm(qm(t,e),e)}var JR,ZR,eI,tI,G_,nI,fS,gS,mI,fI,_c,EI,HI,$I,VI,iS,wM,yM,_M,SM,xM,kM,CM,WS,oS,jS,BS,OM,LM,da,VS=ue(()=>{Sm();Sm();Dm();Dm();JR={p:"span",ul:"li",ol:"li",table:"tr",tr:"td",tbody:"tr",thead:"tr",tfoot:"tr",colgroup:"col",select:"option",optgroup:"option",audio:"source",video:"source",object:"param",map:"area"};ZR={common:["lorem","ipsum","dolor","sit","amet","consectetur","adipisicing","elit"],words:["exercitationem","perferendis","perspiciatis","laborum","eveniet","sunt","iure","nam","nobis","eum","cum","officiis","excepturi","odio","consectetur","quasi","aut","quisquam","vel","eligendi","itaque","non","odit","tempore","quaerat","dignissimos","facilis","neque","nihil","expedita","vitae","vero","ipsum","nisi","animi","cumque","pariatur","velit","modi","natus","iusto","eaque","sequi","illo","sed","ex","et","voluptatibus","tempora","veritatis","ratione","assumenda","incidunt","nostrum","placeat","aliquid","fuga","provident","praesentium","rem","necessitatibus","suscipit","adipisci","quidem","possimus","voluptas","debitis","sint","accusantium","unde","sapiente","voluptate","qui","aspernatur","laudantium","soluta","amet","quo","aliquam","saepe","culpa","libero","ipsa","dicta","reiciendis","nesciunt","doloribus","autem","impedit","minima","maiores","repudiandae","ipsam","obcaecati","ullam","enim","totam","delectus","ducimus","quis","voluptates","dolores","molestiae","harum","dolorem","quia","voluptatem","molestias","magni","distinctio","omnis","illum","dolorum","voluptatum","ea","quas","quam","corporis","quae","blanditiis","atque","deserunt","laboriosam","earum","consequuntur","hic","cupiditate","quibusdam","accusamus","ut","rerum","error","minus","eius","ab","ad","nemo","fugit","officia","at","in","id","quos","reprehenderit","numquam","iste","fugiat","sit","inventore","beatae","repellendus","magnam","recusandae","quod","explicabo","doloremque","aperiam","consequatur","asperiores","commodi","optio","dolor","labore","temporibus","repellat","veniam","architecto","est","esse","mollitia","nulla","a","similique","eos","alias","dolore","tenetur","deleniti","porro","facere","maxime","corrupti"]},eI={common:["\u0434\u0430\u043B\u0435\u043A\u043E-\u0434\u0430\u043B\u0435\u043A\u043E","\u0437\u0430","\u0441\u043B\u043E\u0432\u0435\u0441\u043D\u044B\u043C\u0438","\u0433\u043E\u0440\u0430\u043C\u0438","\u0432 \u0441\u0442\u0440\u0430\u043D\u0435","\u0433\u043B\u0430\u0441\u043D\u044B\u0445","\u0438 \u0441\u043E\u0433\u043B\u0430\u0441\u043D\u044B\u0445","\u0436\u0438\u0432\u0443\u0442","\u0440\u044B\u0431\u043D\u044B\u0435","\u0442\u0435\u043A\u0441\u0442\u044B"],words:["\u0432\u0434\u0430\u043B\u0438","\u043E\u0442 \u0432\u0441\u0435\u0445","\u043E\u043D\u0438","\u0431\u0443\u043A\u0432\u0435\u043D\u043D\u044B\u0445","\u0434\u043E\u043C\u0430\u0445","\u043D\u0430 \u0431\u0435\u0440\u0435\u0433\u0443","\u0441\u0435\u043C\u0430\u043D\u0442\u0438\u043A\u0430","\u0431\u043E\u043B\u044C\u0448\u043E\u0433\u043E","\u044F\u0437\u044B\u043A\u043E\u0432\u043E\u0433\u043E","\u043E\u043A\u0435\u0430\u043D\u0430","\u043C\u0430\u043B\u0435\u043D\u044C\u043A\u0438\u0439","\u0440\u0443\u0447\u0435\u0435\u043A","\u0434\u0430\u043B\u044C","\u0436\u0443\u0440\u0447\u0438\u0442","\u043F\u043E \u0432\u0441\u0435\u0439","\u043E\u0431\u0435\u0441\u043F\u0435\u0447\u0438\u0432\u0430\u0435\u0442","\u0435\u0435","\u0432\u0441\u0435\u043C\u0438","\u043D\u0435\u043E\u0431\u0445\u043E\u0434\u0438\u043C\u044B\u043C\u0438","\u043F\u0440\u0430\u0432\u0438\u043B\u0430\u043C\u0438","\u044D\u0442\u0430","\u043F\u0430\u0440\u0430\u0434\u0438\u0433\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u0430\u044F","\u0441\u0442\u0440\u0430\u043D\u0430","\u043A\u043E\u0442\u043E\u0440\u043E\u0439","\u0436\u0430\u0440\u0435\u043D\u043D\u044B\u0435","\u043F\u0440\u0435\u0434\u043B\u043E\u0436\u0435\u043D\u0438\u044F","\u0437\u0430\u043B\u0435\u0442\u0430\u044E\u0442","\u043F\u0440\u044F\u043C\u043E","\u0440\u043E\u0442","\u0434\u0430\u0436\u0435","\u0432\u0441\u0435\u043C\u043E\u0433\u0443\u0449\u0430\u044F","\u043F\u0443\u043D\u043A\u0442\u0443\u0430\u0446\u0438\u044F","\u043D\u0435","\u0438\u043C\u0435\u0435\u0442","\u0432\u043B\u0430\u0441\u0442\u0438","\u043D\u0430\u0434","\u0440\u044B\u0431\u043D\u044B\u043C\u0438","\u0442\u0435\u043A\u0441\u0442\u0430\u043C\u0438","\u0432\u0435\u0434\u0443\u0449\u0438\u043C\u0438","\u0431\u0435\u0437\u043E\u0440\u0444\u043E\u0433\u0440\u0430\u0444\u0438\u0447\u043D\u044B\u0439","\u043E\u0431\u0440\u0430\u0437","\u0436\u0438\u0437\u043D\u0438","\u043E\u0434\u043D\u0430\u0436\u0434\u044B","\u043E\u0434\u043D\u0430","\u043C\u0430\u043B\u0435\u043D\u044C\u043A\u0430\u044F","\u0441\u0442\u0440\u043E\u0447\u043A\u0430","\u0440\u044B\u0431\u043D\u043E\u0433\u043E","\u0442\u0435\u043A\u0441\u0442\u0430","\u0438\u043C\u0435\u043D\u0438","lorem","ipsum","\u0440\u0435\u0448\u0438\u043B\u0430","\u0432\u044B\u0439\u0442\u0438","\u0431\u043E\u043B\u044C\u0448\u043E\u0439","\u043C\u0438\u0440","\u0433\u0440\u0430\u043C\u043C\u0430\u0442\u0438\u043A\u0438","\u0432\u0435\u043B\u0438\u043A\u0438\u0439","\u043E\u043A\u0441\u043C\u043E\u043A\u0441","\u043F\u0440\u0435\u0434\u0443\u043F\u0440\u0435\u0436\u0434\u0430\u043B","\u043E","\u0437\u043B\u044B\u0445","\u0437\u0430\u043F\u044F\u0442\u044B\u0445","\u0434\u0438\u043A\u0438\u0445","\u0437\u043D\u0430\u043A\u0430\u0445","\u0432\u043E\u043F\u0440\u043E\u0441\u0430","\u043A\u043E\u0432\u0430\u0440\u043D\u044B\u0445","\u0442\u043E\u0447\u043A\u0430\u0445","\u0437\u0430\u043F\u044F\u0442\u043E\u0439","\u043D\u043E","\u0442\u0435\u043A\u0441\u0442","\u0434\u0430\u043B","\u0441\u0431\u0438\u0442\u044C","\u0441\u0435\u0431\u044F","\u0442\u043E\u043B\u043A\u0443","\u043E\u043D","\u0441\u043E\u0431\u0440\u0430\u043B","\u0441\u0435\u043C\u044C","\u0441\u0432\u043E\u0438\u0445","\u0437\u0430\u0433\u043B\u0430\u0432\u043D\u044B\u0445","\u0431\u0443\u043A\u0432","\u043F\u043E\u0434\u043F\u043E\u044F\u0441\u0430\u043B","\u0438\u043D\u0438\u0446\u0438\u0430\u043B","\u0437\u0430","\u043F\u043E\u044F\u0441","\u043F\u0443\u0441\u0442\u0438\u043B\u0441\u044F","\u0434\u043E\u0440\u043E\u0433\u0443","\u0432\u0437\u043E\u0431\u0440\u0430\u0432\u0448\u0438\u0441\u044C","\u043F\u0435\u0440\u0432\u0443\u044E","\u0432\u0435\u0440\u0448\u0438\u043D\u0443","\u043A\u0443\u0440\u0441\u0438\u0432\u043D\u044B\u0445","\u0433\u043E\u0440","\u0431\u0440\u043E\u0441\u0438\u043B","\u043F\u043E\u0441\u043B\u0435\u0434\u043D\u0438\u0439","\u0432\u0437\u0433\u043B\u044F\u0434","\u043D\u0430\u0437\u0430\u0434","\u0441\u0438\u043B\u0443\u044D\u0442","\u0441\u0432\u043E\u0435\u0433\u043E","\u0440\u043E\u0434\u043D\u043E\u0433\u043E","\u0433\u043E\u0440\u043E\u0434\u0430","\u0431\u0443\u043A\u0432\u043E\u0433\u0440\u0430\u0434","\u0437\u0430\u0433\u043E\u043B\u043E\u0432\u043E\u043A","\u0434\u0435\u0440\u0435\u0432\u043D\u0438","\u0430\u043B\u0444\u0430\u0432\u0438\u0442","\u043F\u043E\u0434\u0437\u0430\u0433\u043E\u043B\u043E\u0432\u043E\u043A","\u0441\u0432\u043E\u0435\u0433\u043E","\u043F\u0435\u0440\u0435\u0443\u043B\u043A\u0430","\u0433\u0440\u0443\u0441\u0442\u043D\u044B\u0439","\u0440\u0435\u0442\u043E\u0440\u0438\u0447\u0435\u0441\u043A\u0438\u0439","\u0432\u043E\u043F\u0440\u043E\u0441","\u0441\u043A\u0430\u0442\u0438\u043B\u0441\u044F","\u0435\u0433\u043E","\u0449\u0435\u043A\u0435","\u043F\u0440\u043E\u0434\u043E\u043B\u0436\u0438\u043B","\u0441\u0432\u043E\u0439","\u043F\u0443\u0442\u044C","\u0434\u043E\u0440\u043E\u0433\u0435","\u0432\u0441\u0442\u0440\u0435\u0442\u0438\u043B","\u0440\u0443\u043A\u043E\u043F\u0438\u0441\u044C","\u043E\u043D\u0430","\u043F\u0440\u0435\u0434\u0443\u043F\u0440\u0435\u0434\u0438\u043B\u0430","\u043C\u043E\u0435\u0439","\u0432\u0441\u0435","\u043F\u0435\u0440\u0435\u043F\u0438\u0441\u044B\u0432\u0430\u0435\u0442\u0441\u044F","\u043D\u0435\u0441\u043A\u043E\u043B\u044C\u043A\u043E","\u0440\u0430\u0437","\u0435\u0434\u0438\u043D\u0441\u0442\u0432\u0435\u043D\u043D\u043E\u0435","\u0447\u0442\u043E","\u043C\u0435\u043D\u044F","\u043E\u0441\u0442\u0430\u043B\u043E\u0441\u044C","\u044D\u0442\u043E","\u043F\u0440\u0438\u0441\u0442\u0430\u0432\u043A\u0430","\u0432\u043E\u0437\u0432\u0440\u0430\u0449\u0430\u0439\u0441\u044F","\u0442\u044B","\u043B\u0443\u0447\u0448\u0435","\u0441\u0432\u043E\u044E","\u0431\u0435\u0437\u043E\u043F\u0430\u0441\u043D\u0443\u044E","\u0441\u0442\u0440\u0430\u043D\u0443","\u043F\u043E\u0441\u043B\u0443\u0448\u0430\u0432\u0448\u0438\u0441\u044C","\u0440\u0443\u043A\u043E\u043F\u0438\u0441\u0438","\u043D\u0430\u0448","\u043F\u0440\u043E\u0434\u043E\u043B\u0436\u0438\u043B","\u0441\u0432\u043E\u0439","\u043F\u0443\u0442\u044C","\u0432\u0441\u043A\u043E\u0440\u0435","\u0435\u043C\u0443","\u043F\u043E\u0432\u0441\u0442\u0440\u0435\u0447\u0430\u043B\u0441\u044F","\u043A\u043E\u0432\u0430\u0440\u043D\u044B\u0439","\u0441\u043E\u0441\u0442\u0430\u0432\u0438\u0442\u0435\u043B\u044C","\u0440\u0435\u043A\u043B\u0430\u043C\u043D\u044B\u0445","\u0442\u0435\u043A\u0441\u0442\u043E\u0432","\u043D\u0430\u043F\u043E\u0438\u0432\u0448\u0438\u0439","\u044F\u0437\u044B\u043A\u043E\u043C","\u0440\u0435\u0447\u044C\u044E","\u0437\u0430\u043C\u0430\u043D\u0438\u0432\u0448\u0438\u0439","\u0441\u0432\u043E\u0435","\u0430\u0433\u0435\u043D\u0442\u0441\u0442\u0432\u043E","\u043A\u043E\u0442\u043E\u0440\u043E\u0435","\u0438\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u043B\u043E","\u0441\u043D\u043E\u0432\u0430","\u0441\u043D\u043E\u0432\u0430","\u0441\u0432\u043E\u0438\u0445","\u043F\u0440\u043E\u0435\u043A\u0442\u0430\u0445","\u0435\u0441\u043B\u0438","\u043F\u0435\u0440\u0435\u043F\u0438\u0441\u0430\u043B\u0438","\u0442\u043E","\u0436\u0438\u0432\u0435\u0442","\u0442\u0430\u043C","\u0434\u043E","\u0441\u0438\u0445","\u043F\u043E\u0440"]},tI={common:["mujer","uno","dolor","m\xE1s","de","poder","mismo","si"],words:["ejercicio","preferencia","perspicacia","laboral","pa\xF1o","suntuoso","molde","namibia","planeador","mirar","dem\xE1s","oficinista","excepci\xF3n","odio","consecuencia","casi","auto","chicharra","velo","elixir","ataque","no","odio","temporal","cu\xF3rum","dign\xEDsimo","facilismo","letra","nihilista","expedici\xF3n","alma","alveolar","aparte","le\xF3n","animal","como","paria","belleza","modo","natividad","justo","ataque","s\xE9quito","pillo","sed","ex","y","voluminoso","temporalidad","verdades","racional","asunci\xF3n","incidente","marejada","placenta","amanecer","fuga","previsor","presentaci\xF3n","lejos","necesariamente","sospechoso","adiposidad","quind\xEDo","p\xF3cima","voluble","d\xE9bito","sinti\xF3","accesorio","falda","sapiencia","volutas","queso","permacultura","laudo","soluciones","entero","pan","litro","tonelada","culpa","libertario","mosca","dictado","reincidente","nascimiento","dolor","escolar","impedimento","m\xEDnima","mayores","repugnante","dulce","obcecado","monta\xF1a","enigma","total","delet\xE9reo","d\xE9cima","c\xE1bala","fotograf\xEDa","dolores","molesto","olvido","paciencia","resiliencia","voluntad","molestias","magn\xEDfico","distinci\xF3n","ovni","marejada","cerro","torre","y","abogada","manantial","corporal","agua","crep\xFAsculo","ataque","desierto","laboriosamente","angustia","afortunado","alma","encefalograma","materialidad","cosas","o","renuncia","error","menos","conejo","abad\xEDa","analfabeto","remo","fugacidad","oficio","en","alm\xE1cigo","vos","pan","represi\xF3n","n\xFAmeros","triste","refugiado","trote","inventor","corchea","repelente","magma","recusado","patr\xF3n","expl\xEDcito","paloma","s\xEDndrome","inmune","autoinmune","comodidad","ley","vietnamita","demonio","tasmania","repeler","ap\xE9ndice","arquitecto","columna","yugo","computador","mula","a","prop\xF3sito","fantas\xEDa","alias","rayo","tenedor","deleznable","ventana","cara","anemia","corrupto"]},G_={ru:eI,sp:tI,latin:ZR},nI=/^lorem([a-z]*)(\d*)(-\d*)?$/i;fS=/^(-+)([a-z0-9]+[a-z0-9-]*)/i,gS=/^(_+)([a-z0-9]+[a-z0-9-_]*)/i,mI=t=>/^[a-z]\-/i.test(t),fI=t=>/^[a-z]/i.test(t);_c=[{type:"Field",index:0,name:""}];EI=/^<([\w\-:]+)[\s>]/;HI={html:DS,haml:qI,slim:UI,pug:jI};$I=/^([a-z-]+)(?:\s*:\s*([^\n\r;]+?);*)?$/,VI={value:!0};iS="lg";wM={a:"a[href]","a:blank":"a[href='http://${0}' target='_blank' rel='noopener noreferrer']","a:link":"a[href='http://${0}']","a:mail":"a[href='mailto:${0}']","a:tel":"a[href='tel:+${0}']",abbr:"abbr[title]","acr|acronym":"acronym[title]",base:"base[href]/",basefont:"basefont/",br:"br/",frame:"frame/",hr:"hr/",bdo:"bdo[dir]","bdo:r":"bdo[dir=rtl]","bdo:l":"bdo[dir=ltr]",col:"col/",link:"link[rel=stylesheet href]/","link:css":"link[href='${1:style}.css']","link:print":"link[href='${1:print}.css' media=print]","link:favicon":"link[rel='shortcut icon' type=image/x-icon href='${1:favicon.ico}']","link:mf|link:manifest":"link[rel='manifest' href='${1:manifest.json}']","link:touch":"link[rel=apple-touch-icon href='${1:favicon.png}']","link:rss":"link[rel=alternate type=application/rss+xml title=RSS href='${1:rss.xml}']","link:atom":"link[rel=alternate type=application/atom+xml title=Atom href='${1:atom.xml}']","link:im|link:import":"link[rel=import href='${1:component}.html']",meta:"meta/","meta:utf":"meta[http-equiv=Content-Type content='text/html;charset=UTF-8']","meta:vp":"meta[name=viewport content='width=${1:device-width}, initial-scale=${2:1.0}']","meta:compat":"meta[http-equiv=X-UA-Compatible content='${1:IE=7}']","meta:edge":"meta:compat[content='${1:ie=edge}']","meta:redirect":"meta[http-equiv=refresh content='0; url=${1:http://example.com}']","meta:kw":"meta[name=keywords content]","meta:desc":"meta[name=description content]",style:"style",script:"script","script:src":"script[src]",img:"img[src alt]/","img:s|img:srcset":"img[srcset src alt]","img:z|img:sizes":"img[sizes srcset src alt]",picture:"picture","src|source":"source/","src:sc|source:src":"source[src type]","src:s|source:srcset":"source[srcset]","src:t|source:type":"source[srcset type='${1:image/}']","src:z|source:sizes":"source[sizes srcset]","src:m|source:media":"source[media='(${1:min-width: })' srcset]","src:mt|source:media:type":"source:media[type='${2:image/}']","src:mz|source:media:sizes":"source:media[sizes srcset]","src:zt|source:sizes:type":"source[sizes srcset type='${1:image/}']",iframe:"iframe[src frameborder=0]",embed:"embed[src type]/",object:"object[data type]",param:"param[name value]/",map:"map[name]",area:"area[shape coords href alt]/","area:d":"area[shape=default]","area:c":"area[shape=circle]","area:r":"area[shape=rect]","area:p":"area[shape=poly]",form:"form[action]","form:get":"form[method=get]","form:post":"form[method=post]",label:"label[for]",input:"input[type=${1:text}]/",inp:"input[name=${1} id=${1}]","input:h|input:hidden":"input[type=hidden name]","input:t|input:text":"inp[type=text]","input:search":"inp[type=search]","input:email":"inp[type=email]","input:url":"inp[type=url]","input:p|input:password":"inp[type=password]","input:datetime":"inp[type=datetime]","input:date":"inp[type=date]","input:datetime-local":"inp[type=datetime-local]","input:month":"inp[type=month]","input:week":"inp[type=week]","input:time":"inp[type=time]","input:tel":"inp[type=tel]","input:number":"inp[type=number]","input:color":"inp[type=color]","input:c|input:checkbox":"inp[type=checkbox]","input:r|input:radio":"inp[type=radio]","input:range":"inp[type=range]","input:f|input:file":"inp[type=file]","input:s|input:submit":"input[type=submit value]","input:i|input:image":"input[type=image src alt]","input:b|input:btn|input:button":"input[type=button value]","input:reset":"input:button[type=reset]",isindex:"isindex/",select:"select[name=${1} id=${1}]","select:d|select:disabled":"select[disabled.]","opt|option":"option[value]",textarea:"textarea[name=${1} id=${1} cols=${2:30} rows=${3:10}]",marquee:"marquee[behavior direction]","menu:c|menu:context":"menu[type=context]","menu:t|menu:toolbar":"menu[type=toolbar]",video:"video[src]",audio:"audio[src]","html:xml":"html[xmlns=http://www.w3.org/1999/xhtml]",keygen:"keygen/",command:"command/","btn:s|button:s|button:submit":"button[type=submit]","btn:r|button:r|button:reset":"button[type=reset]","btn:d|button:d|button:disabled":"button[disabled.]","fst:d|fset:d|fieldset:d|fieldset:disabled":"fieldset[disabled.]",bq:"blockquote",fig:"figure",figc:"figcaption",pic:"picture",ifr:"iframe",emb:"embed",obj:"object",cap:"caption",colg:"colgroup",fst:"fieldset",btn:"button",optg:"optgroup",tarea:"textarea",leg:"legend",sect:"section",art:"article",hdr:"header",ftr:"footer",adr:"address",dlg:"dialog",str:"strong",prog:"progress",mn:"main",tem:"template",fset:"fieldset",datag:"datagrid",datal:"datalist",kg:"keygen",out:"output",det:"details",sum:"summary",cmd:"command","ri:d|ri:dpr":"img:s","ri:v|ri:viewport":"img:z","ri:a|ri:art":"pic>src:m+img","ri:t|ri:type":"pic>src:t+img","!!!":"{<!DOCTYPE html>}",doc:"html[lang=${lang}]>(head>meta[charset=${charset}]+meta[http-equiv='X-UA-Compatible'][content='IE=edge']+meta:vp+title{${1:Document}})+body","!|html:5":"!!!+doc",c:"{<!-- ${0} -->}","cc:ie":"{<!--[if IE]>${0}<![endif]-->}","cc:noie":"{<!--[if !IE]><!-->${0}<!--<![endif]-->}"},yM={"@f":`@font-face {
|
|
503
|
+
${"-".repeat(n.pos)}^`),n}}var mc,Dm=ue(()=>{fm();mc=LR});function NR(t,e){if(!t.attributes)return;let n=[],r={};for(let i of t.attributes)if(i.name){let o=i.name;if(o in r){let s=r[o];o==="class"?s.value=WR(s.value,i.value," "):qR(s,i,e)}else n.push(r[o]=Object.assign({},i))}else n.push(i);t.attributes=n}function WR(t,e,n){if(t&&e){t.length&&n&&K_(t,n);for(let i of e)K_(t,i);return t}let r=t||e;return r&&r.slice()}function qR(t,e,n){return t.name=e.name,n.options["output.reverseAttributes"]||(t.value=e.value),t.implied||(t.implied=e.implied),t.boolean||(t.boolean=e.boolean),t.valueType!=="expression"&&(t.valueType=e.valueType),t}function K_(t,e){let n=t.length-1;typeof t[n]=="string"&&typeof e=="string"?t[n]+=e:t.push(e)}function UR(t,e,n){let r=[t],i=o=>{e(o,r,n),r.push(o),o.children.forEach(i),r.pop()};t.children.forEach(i)}function jR(t){let e;for(;t.children.length;)e=t,t=t.children[t.children.length-1];return{parent:e,node:t}}function lS(t){return t.type==="AbbreviationNode"}function HR(t,e){let n=[],r=e.options["output.reverseAttributes"],i=o=>{let s=o.name&&e.snippets[o.name];if(!s||n.includes(s))return null;let l=dc(s,e);n.push(s),bc(l,i),n.pop();for(let a of l.children){if(o.attributes){let c=a.attributes||[],u=o.attributes||[];a.attributes=r?u.concat(c):c.concat(u)}BR(o,a)}return l};return bc(t,i),t}function bc(t,e,n){let r=[];for(let i of t.children){let o=e(i);if(o){r=r.concat(o.children);let s=jR(o);lS(s.node)&&(s.node.children=s.node.children.concat(bc(i,e)))}else r.push(i),i.children=bc(i,e)}return t.children=r}function BR(t,e){t.selfClosing&&(e.selfClosing=!0),t.value!=null&&(e.value=t.value),t.repeat&&(e.repeat=t.repeat)}function cS(t,e=0){return{options:t,value:"",level:e,offset:0,line:0,column:0}}function Et(t,e){let n=t.options["output.text"];hS(t,n(e,t.offset,t.line,t.column))}function Ge(t,e){let n=GR(e);for(let r=0,i=n.length-1;r<=i;r++)Et(t,n[r]),r!==i&&dr(t,!0)}function dr(t,e){let n=t.options["output.baseIndent"],r=t.options["output.newline"];Et(t,r+n),t.line++,t.column=n.length,e&&$R(t,e===!0?t.level:e)}function $R(t,e=t.level){let n=t.options["output.indent"];Et(t,n.repeat(Math.max(e,0)))}function Pm(t,e,n){let r=t.options["output.field"];hS(t,r(e,n,t.offset,t.line,t.column))}function VR(t,e){return pS(t,e.options["output.tagCase"])}function uS(t,e){return pS(t,e.options["output.attributeCase"])}function vc(t,e,n){return t.valueType==="expression"?n?"{":"}":e.options["output.attributeQuotes"]==="single"?"'":'"'}function dS(t,e){return t.boolean||e.options["output.booleanAttributes"].includes((t.name||"").toLowerCase())}function KR(t){switch(t.options["output.selfClosingStyle"]){case"xhtml":return" /";case"xml":return"/";default:return""}}function Uo(t,e){return typeof t=="string"?e.options.inlineElements.includes(t.toLowerCase()):t.name?Uo(t.name,e):Boolean(t.value&&!t.attributes)}function GR(t){return t.split(/\r\n|\r|\n/g)}function hS(t,e){t.value+=e,t.offset+=e.length,t.column+=e.length}function pS(t,e){return e?e==="upper"?t.toUpperCase():t.toLowerCase():t}function XR(t,e,n){!t.name&&t.attributes&&mS(t,e,n)}function mS(t,e,n){let r=YR(e),i=n.context?n.context.name:"",o=QR(r?r.name:i);t.name=JR[o]||(Uo(o,n)?"span":"div")}function QR(t){return(t||"").toLowerCase()}function YR(t){for(let e=t.length-1;e>=0;e--){let n=t[e];if(lS(n))return n}}function rI(t,e,n){let r;if(t.name&&(r=t.name.match(nI))){let i=G_[r[1]]||G_.latin,o=r[2]?Math.max(1,Number(r[2])):30,s=r[3]?Math.max(o,Number(r[3].slice(1))):o,l=mi(o,s),a=t.repeat||lI(e);t.name=t.attributes=void 0,t.value=[aI(i,l,!a||a.value===0)],t.repeat&&e.length>1&&mS(t,e,n)}}function mi(t,e){return Math.floor(Math.random()*(e-t)+t)}function iI(t,e){let n=t.length,r=Math.min(n,e),i=[];for(;i.length<r;){let o=t[mi(0,n)];i.includes(o)||i.push(o)}return i}function oI(t){return t[mi(0,t.length-1)]}function J_(t,e){return t.length&&(t=[sI(t[0])].concat(t.slice(1))),t.join(" ")+(e||oI("?!..."))}function sI(t){return t[0].toUpperCase()+t.slice(1)}function X_(t){if(t.length<2)return t;t=t.slice();let e=t.length,n=/,$/,r=0;e>3&&e<=6?r=mi(0,1):e>6&&e<=12?r=mi(0,2):r=mi(1,4);for(let i=0,o;i<r;i++)o=mi(0,e-2),n.test(t[o])||(t[o]+=",");return t}function aI(t,e,n){let r=[],i=0,o;for(n&&t.common&&(o=t.common.slice(0,e),i+=o.length,r.push(J_(X_(o),".")));i<e;)o=iI(t.words,Math.min(mi(2,30),e-i)),i+=o.length,r.push(J_(X_(o)));return r.join(" ")}function lI(t){for(let e=t.length-1;e>=0;e--){let n=t[e];if(n.type==="AbbreviationNode"&&n.repeat)return n.repeat}}function cI(t){t.attributes&&t.attributes.forEach(uI)}function uI(t){t.name==="class"?t.name="className":t.name==="for"&&(t.name="htmlFor")}function dI(t){pI(t.name)&&t.attributes&&(t.children.length||t.value)&&(t.attributes=t.attributes.filter(hI))}function hI(t){return t.name!=="select"}function pI(t){return t==="xsl:variable"||t==="xsl:with-param"}function gI(t,e,n){bI(t),vI(t,e,n)}function bI(t){let e=zm(t),n=[];for(let r of e.classNames){let i=r.indexOf("_");i>0&&!r.startsWith("-")?(n.push(r.slice(0,i)),n.push(r.slice(i))):n.push(r)}n.length&&(e.classNames=n.filter(yS),e.block=vS(e.classNames),wS(t,e.classNames.join(" ")))}function vI(t,e,n){let r=zm(t),i=[],{options:o}=n,s=e.slice(1).concat(t);for(let a of r.classNames){let c="",u,d=a;(u=a.match(fS))&&(c=Q_(s,u[1].length,n.context)+o["bem.element"]+u[2],i.push(c),a=a.slice(u[0].length)),(u=a.match(gS))&&(c||(c=Q_(s,u[1].length),i.push(c)),i.push(`${c}${o["bem.modifier"]}${u[2]}`),a=a.slice(u[0].length)),a===d&&i.push(d)}let l=i.filter(yS);l.length&&wS(t,l.join(" "))}function zm(t){if(!t._bem){let e="";if(t.attributes){for(let n of t.attributes)if(n.name==="class"&&n.value){e=yI(n.value);break}}t._bem=bS(e)}return t._bem}function wI(t){return t._bem||(t._bem=bS(t.attributes&&t.attributes.class||"")),t._bem}function bS(t){let e=t?t.split(/\s+/):[];return{classNames:e,block:vS(e)}}function Q_(t,e=0,n){let i=Math.max(t.length-e,0);do{let o=t[i];if(o){let s=zm(o);if(s.block)return s.block}}while(0<i--);if(n){let o=wI(n);if(o.block)return o.block}return""}function vS(t){return Y_(t,mI)||Y_(t,fI)||void 0}function Y_(t,e){for(let n of t){if(fS.test(n)||gS.test(n))break;if(e(n))return n}}function wS(t,e){for(let n of t.attributes)if(n.name==="class"){n.value=[e];break}}function yI(t){let e="";for(let n of t)e+=typeof n=="string"?n:n.name;return e}function yS(t,e,n){return!!t&&n.indexOf(t)===e}function _S(t,e,n){let r=(o,s,l)=>{let{parent:a,current:c}=n;n.parent=c,n.current=o,e(o,s,l,n,i),n.current=c,n.parent=a},i=(o,s,l)=>{n.ancestors.push(n.current),r(o,s,l),n.ancestors.pop()};t.children.forEach(r)}function SS(t){return{current:null,parent:void 0,ancestors:[],config:t,field:1,out:cS(t.options)}}function Ji(t){return t?!t.name&&!t.attributes:!1}function Z_(t,e){return t?Uo(t,e):!1}function xS(t){return typeof t=="object"&&t.type==="Field"}function yn(t,e){let{out:n}=e,r=-1;for(let i of t)typeof i=="string"?Ge(n,i):(Pm(n,e.field+i.index,i.name),i.index>r&&(r=i.index));r!==-1&&(e.field+=r+1)}function _I(t){let e=[],n=[];for(let r of t)if(typeof r=="string"){let i=r.split(/\r\n?|\n/g);for(n.push(i.shift()||"");i.length;)e.push(n),n=[i.shift()||""]}else n.push(r);return n.length&&e.push(n),e}function kS(t){return!t.implied||t.valueType!=="raw"||!!t.value&&t.value.length>0}function eS(t){let e=[],n={pos:0,text:t},r,i=n.pos,o=n.pos;for(;n.pos<n.text.length;)o=n.pos,(r=SI(n))?(i!==n.pos&&e.push(t.slice(i,o)),e.push(r),i=n.pos):n.pos++;return i!==n.pos&&e.push(t.slice(i)),e}function SI(t){if(Fm(t)===91){let e=++t.pos,n=e,r=e,i=1;for(;t.pos<t.text.length;){let o=Fm(t);if(CS(o)){for(n=t.pos;xI(Fm(t));)t.pos++;r=t.pos}else{if(o===91)i++;else if(o===93&&--i===0)return{before:t.text.slice(e,n),after:t.text.slice(r,t.pos++),name:t.text.slice(n,r)};t.pos++}}}}function Fm(t,e=t.pos){return t.text.charCodeAt(e)}function CS(t){return t>=65&&t<=90}function xI(t){return CS(t)||t>47&&t<58||t===95||t===45}function kI(t){let{options:e}=t;return{enabled:e["comment.enabled"],trigger:e["comment.trigger"],before:e["comment.before"]?eS(e["comment.before"]):void 0,after:e["comment.after"]?eS(e["comment.after"]):void 0}}function CI(t,e){TS(t,e)&&e.comment.before&&ES(t,e.comment.before,e)}function TI(t,e){TS(t,e)&&e.comment.after&&ES(t,e.comment.after,e)}function TS(t,e){let{comment:n}=e;if(!n.enabled||!n.trigger||!t.name||!t.attributes)return!1;for(let r of t.attributes)if(r.name&&n.trigger.includes(r.name))return!0;return!1}function ES(t,e,n){let r={},{out:i}=n;for(let o of t.attributes)o.name&&o.value&&(r[o.name.toUpperCase()]=o.value);for(let o of e)typeof o=="string"?Ge(i,o):r[o.name]&&(Ge(i,o.before),yn(r[o.name],n),Ge(i,o.after))}function DS(t,e){let n=SS(e);return n.comment=kI(e),_S(t,DI,n),n.out.value}function DI(t,e,n,r,i){let{out:o,config:s}=r,l=FS(t,e,n,r),a=AI(r);if(o.level+=a,l&&dr(o,!0),t.name){let c=VR(t.name,s);if(CI(t,r),Ge(o,`<${c}`),t.attributes)for(let u of t.attributes)kS(u)&&FI(u,r);if(t.selfClosing&&!t.children.length&&!t.value)Ge(o,`${KR(s)}>`);else{if(Ge(o,">"),!tS(t,r,i)){if(t.value){let u=t.value.some(AS)||RI(t.value,s);u&&dr(r.out,++o.level),yn(t.value,r),u&&dr(r.out,--o.level)}if(t.children.forEach(i),!t.value&&!t.children.length){let u=s.options["output.formatLeafNode"]||s.options["output.formatForce"].includes(t.name);u&&dr(r.out,++o.level),yn(_c,r),u&&dr(r.out,--o.level)}}Ge(o,`</${c}>`),TI(t,r)}}else!tS(t,r,i)&&t.value&&(yn(t.value,r),t.children.forEach(i));if(l&&e===n.length-1&&r.parent){let c=Ji(r.parent)?0:1;dr(o,o.level-c)}o.level-=a}function FI(t,e){let{out:n,config:r}=e;if(t.name){let i=uS(t.name,r),o=vc(t,r,!0),s=vc(t,r),l=t.value;dS(t,r)&&!l?r.options["output.compactBoolean"]||(l=[i]):l||(l=_c),Ge(n," "+i),l?(Ge(n,"="+o),yn(l,e),Ge(n,s)):r.options["output.selfClosingStyle"]!=="html"&&Ge(n,"="+o+s)}}function tS(t,e,n){if(t.value&&t.children.length){let r=t.value.findIndex(xS);if(r!==-1){yn(t.value.slice(0,r),e);let i=e.out.line,o=r+1;return t.children.forEach(n),e.out.line!==i&&typeof t.value[o]=="string"&&Ge(e.out,t.value[o++].trimLeft()),yn(t.value.slice(o),e),!0}}return!1}function FS(t,e,n,r){let{config:i,parent:o}=r;if(!i.options["output.format"]||e===0&&!o||o&&Ji(o)&&n.length===1)return!1;if(Ji(t)&&(Ji(n[e-1])||Ji(n[e+1])||t.value.some(AS)||t.value.some(xS)&&t.children.length))return!0;if(Uo(t,i)){if(e===0){for(let s=0;s<n.length;s++)if(!Uo(n[s],i))return!0}else if(!Uo(n[e-1],i))return!0;if(i.options["output.inlineBreak"]){let s=1,l=e,a=e;for(;Z_(n[--l],i);)s++;for(;Z_(n[++a],i);)s++;if(s>=i.options["output.inlineBreak"])return!0}for(let s=0,l=t.children.length;s<l;s++)if(FS(t.children[s],s,t.children,r))return!0;return!1}return!0}function AI(t){let{config:e,parent:n}=t;return!n||Ji(n)||n.name&&e.options["output.formatSkip"].includes(n.name)?0:1}function AS(t){return typeof t=="string"&&/\r|\n/.test(t)}function RI(t,e){if(t.length&&typeof t[0]=="string"){let n=EI.exec(t[0]);if(n?.length&&!e.options.inlineElements.includes(n[1].toLowerCase()))return!0}return!1}function Om(t,e,n){let r=SS(e);return r.options=n||{},_S(t,II,r),r.out.value}function II(t,e,n,r,i){let{out:o,options:s}=r,{primary:l,secondary:a}=MI(t),c=r.parent?1:0;o.level+=c,WI(t,e,n,r)&&dr(o,!0),t.name&&(t.name!=="div"||!l.length)&&Ge(o,(s.beforeName||"")+t.name+(s.afterName||"")),PI(l,r),zI(a.filter(kS),r),t.selfClosing&&!t.value&&!t.children.length?r.options.selfClose&&Ge(o,r.options.selfClose):(OI(t,r),t.children.forEach(i)),o.level-=c}function MI(t){let e=[],n=[];if(t.attributes)for(let r of t.attributes)LI(r)?e.push(r):n.push(r);return{primary:e,secondary:n}}function PI(t,e){for(let n of t)if(n.value)if(n.name==="class"){Ge(e.out,".");let r=n.value.map(i=>typeof i=="string"?i.replace(/\s+/g,"."):i);yn(r,e)}else Ge(e.out,"#"),yn(n.value,e)}function zI(t,e){if(t.length){let{out:n,config:r,options:i}=e;i.beforeAttribute&&Ge(n,i.beforeAttribute);for(let o=0;o<t.length;o++){let s=t[o];Ge(n,uS(s.name||"",r)),dS(s,r)&&!s.value?!r.options["output.compactBoolean"]&&i.booleanValue&&Ge(n,"="+i.booleanValue):(Ge(n,"="+vc(s,r,!0)),yn(s.value||_c,e),Ge(n,vc(s,r))),o!==t.length-1&&i.glueAttribute&&Ge(n,i.glueAttribute)}i.afterAttribute&&Ge(n,i.afterAttribute)}}function OI(t,e){if(!t.value&&t.children.length)return;let n=t.value||_c,r=_I(n),{out:i,options:o}=e;if(r.length===1)(t.name||t.attributes)&&Et(i," "),yn(n,e);else{let s=[],l=0;for(let a of r){let c=NI(a);s.push(c),c>l&&(l=c)}i.level++;for(let a=0;a<r.length;a++)dr(i,!0),o.beforeTextLine&&Et(i,o.beforeTextLine),yn(r[a],e),o.afterTextLine&&(Et(i," ".repeat(l-s[a])),Et(i,o.afterTextLine));i.level--}}function LI(t){return t.name==="class"||t.name==="id"}function NI(t){let e=0;for(let n of t)e+=typeof n=="string"?n.length:n.name.length;return e}function WI(t,e,n,r){return!r.parent&&e===0?!1:!Ji(t)}function qI(t,e){return Om(t,e,{beforeName:"%",beforeAttribute:"(",afterAttribute:")",glueAttribute:" ",afterTextLine:" |",booleanValue:"true",selfClose:"/"})}function UI(t,e){return Om(t,e,{beforeAttribute:" ",glueAttribute:" ",beforeTextLine:"| ",selfClose:"/"})}function jI(t,e){return Om(t,e,{beforeAttribute:"(",afterAttribute:")",glueAttribute:", ",beforeTextLine:"| ",selfClose:e.options["output.selfClosingStyle"]==="xml"?"/":""})}function Lm(t,e){let n;if(typeof t=="string"){let r=e;e.options["jsx.enabled"]&&(r=Object.assign(Object.assign({},r),{jsx:!0})),e.options["markup.href"]&&(r=Object.assign(Object.assign({},r),{href:!0})),t=dc(t,r),n=e.text,e.text=void 0}return t=HR(t,e),UR(t,BI,e),e.text=n??e.text,t}function Nm(t,e){return(HI[e.syntax]||DS)(t,e)}function BI(t,e,n){XR(t,e,n),NR(t,n),rI(t,e,n),n.syntax==="xsl"&&dI(t),n.options["jsx.enabled"]&&cI(t),n.options["bem.enabled"]&&gI(t,e,n)}function KI(t,e){let n=e.match($I);if(n){let r={},i=n[2]?n[2].split("|").map(XI):[];for(let o of i)for(let s of o)YI(s,r);return{type:"Property",key:t,property:n[1],value:i,keywords:r,dependencies:[]}}return{type:"Raw",key:t,value:e}}function GI(t){t=t.slice().sort(JI);let e=[],n;for(let r of t.filter(QI)){for(;e.length;){if(n=e[e.length-1],r.property.startsWith(n.property)&&r.property.charCodeAt(n.property.length)===45){n.dependencies.push(r),e.push(r);break}e.pop()}e.length||e.push(r)}return t}function JI(t,e){return t.key===e.key?0:t.key<e.key?-1:1}function XI(t){return mc(t.trim(),VI)[0].value}function QI(t){return t.type==="Property"}function YI(t,e){for(let n of t.value)if(n.type==="Literal")e[n.value]=n;else if(n.type==="FunctionCall")e[n.name]=n;else if(n.type==="Field"){let r=n.name.trim();r&&(e[r]={type:"Literal",value:r})}}function ZI(t,e,n=!1){if(t=t.toLowerCase(),e=e.toLowerCase(),t===e)return 1;if(!t||!e||t.charCodeAt(0)!==e.charCodeAt(0))return 0;let r=t.length,i=e.length;if(!n&&r>i)return 0;let o=Math.min(r,i),s=Math.max(r,i),l=1,a=1,c=s,u=0,d=0,h=!1,p=!1;for(;l<r;){for(u=t.charCodeAt(l),h=!1,p=!1;a<i;){if(d=e.charCodeAt(a),u===d){h=!0,c+=s-(p?l:a);break}p=d===45,a++}if(!h){if(!n)return 0;break}l++}let w=l/s,v=s-o,x=nS(s)-nS(v);return c*w/x}function nS(t){return t*(t+1)/2}function RS(t,e){return!t.r&&!t.g&&!t.b&&!t.a?"transparent":t.a===1?eM(t,e):tM(t)}function eM(t,e){let n=e&&Am(t.r)&&Am(t.g)&&Am(t.b)?nM:rM;return"#"+n(t.r)+n(t.g)+n(t.b)}function tM(t){let e=[t.r,t.g,t.b];return t.a!==1&&e.push(IS(t.a,8)),`${e.length===3?"rgb":"rgba"}(${e.join(", ")})`}function IS(t,e=4){return t.toFixed(e).replace(/\.?0+$/,"")}function Am(t){return!(t%17)}function nM(t){return(t>>4).toString(16)}function rM(t){return iM(t.toString(16),2)}function iM(t,e){for(;t.length<e;)t="0"+t;return t}function Wm(t,e){var n;let r=cS(e.options),i=e.options["output.format"];((n=e.context)===null||n===void 0?void 0:n.name)==="@@section"&&(t=t.filter(o=>o.snippet));for(let o=0;o<t.length;o++)i&&o!==0&&dr(r,!0),oM(t[o],r,e);return r.value}function oM(t,e,n){let r=n.options["stylesheet.json"];if(t.name){let i=r?lM(t.name):t.name;Ge(e,i+n.options["stylesheet.between"]),t.value.length?sM(t,e,n):Pm(e,0,""),r?Et(e,","):(rS(t,e,!0),Et(e,n.options["stylesheet.after"]))}else{for(let i of t.value)for(let o of i.value)PS(o,e,n);rS(t,e,t.value.length>0)}}function sM(t,e,n){let r=n.options["stylesheet.json"],i=r?aM(t):null;if(i&&(!i.unit||i.unit==="px"))Et(e,String(i.value));else{let o=cM(n);r&&Et(e,o);for(let s=0;s<t.value.length;s++)s!==0&&Et(e,", "),MS(t.value[s],e,n);r&&Et(e,o)}}function rS(t,e,n){t.important&&(n&&Et(e," "),Et(e,"!important"))}function MS(t,e,n){for(let r=0,i=-1;r<t.value.length;r++){let o=t.value[r];r!==0&&(o.type!=="Field"||o.start!==i)&&Et(e," "),PS(o,e,n),i=o.end}}function PS(t,e,n){if(t.type==="ColorValue")Et(e,RS(t,n.options["stylesheet.shortHex"]));else if(t.type==="Literal")Ge(e,t.value);else if(t.type==="NumberValue")Ge(e,IS(t.value,4)+t.unit);else if(t.type==="StringValue"){let r=t.quote==="double"?'"':"'";Ge(e,r+t.value+r)}else if(t.type==="Field")Pm(e,t.index,t.name);else if(t.type==="FunctionCall"){Et(e,t.name+"(");for(let r=0;r<t.arguments.length;r++)r&&Et(e,", "),MS(t.arguments[r],e,n);Et(e,")")}}function aM(t){if(t.value.length===1){let e=t.value[0];if(e.value.length===1&&e.value[0].type==="NumberValue")return e.value[0]}}function lM(t){return t.replace(/\-(\w)/g,(e,n)=>n.toUpperCase())}function cM(t){return t.options["stylesheet.jsonDoubleQuotes"]?'"':"'"}function qm(t,e){var n;let r=((n=e.cache)===null||n===void 0?void 0:n.stylesheetSnippets)||uM(e.snippets);e.cache&&(e.cache.stylesheetSnippets=r),typeof t=="string"&&(t=mc(t,{value:NS(e)}));let i=vM(r,e);for(let o of t)dM(o,i,e);return t}function uM(t){let e=[];for(let n of Object.keys(t))e.push(KI(n,t[n]));return GI(e)}function dM(t,e,n){if(!hM(t,n)){let r=n.options["stylesheet.fuzzySearchMinScore"];if(NS(n)){let i=n.context.name,o=e.find(s=>s.type==="Property"&&s.property===i);zS(t,n,o,r),t.snippet=o}else if(t.name){let i=gc(t.name,e,r,!0);t.snippet=i,i&&(i.type==="Property"?pM(t,i,n):mM(t,i))}}return(t.name||n.context)&&bM(t,n),t}function hM(t,e){let n=null,r=t.value.length===1?t.value[0]:null;if(r&&r.value.length===1){let i=r.value[0];i.type==="FunctionCall"&&i.name===iS&&(n=i)}return n||t.name===iS?(n?n=Object.assign(Object.assign({},n),{name:"linear-gradient"}):n={type:"FunctionCall",name:"linear-gradient",arguments:[wc(Gi(0,""))]},e.context||(t.name="background-image"),t.value=[wc(n)],!0):!1}function pM(t,e,n){let r=t.name,i=gM(r,e.key);if(i){if(t.value.length)return t;let o=Im(i,n,e);if(!o)return t;t.value.push(wc(o))}if(t.name=e.property,t.value.length)zS(t,n,e);else if(e.value.length){let o=e.value[0];t.value=e.value.length===1||o.some(OS)?o:o.map(s=>LS(s,n))}return t}function zS(t,e,n,r){for(let i of t.value){let o=[];for(let s of i.value)if(s.type==="Literal")o.push(Im(s.value,e,n,r)||s);else if(s.type==="FunctionCall"){let l=Im(s.name,e,n,r);l&&l.type==="FunctionCall"?o.push(Object.assign(Object.assign({},l),{arguments:s.arguments.concat(l.arguments.slice(s.arguments.length))})):o.push(s)}else o.push(s);i.value=o}}function mM(t,e){let n=0,r,i=/\$\{(\d+)(:[^}]+)?\}/g,o=t.value[0],s=[];for(;r=i.exec(e.value);)n!==r.index&&s.push(jo(e.value.slice(n,r.index))),n=r.index+r[0].length,o&&o.value.length?s.push(o.value.shift()):s.push(Gi(Number(r[1]),r[2]?r[2].slice(1):""));let l=e.value.slice(n);return l&&s.push(jo(l)),t.name=void 0,t.value=[wc(...s)],t}function gc(t,e,n=0,r=!1){let i=null,o=0;for(let s of e){let l=ZI(t,fM(s),r);if(l===1)return s;l&&l>=o&&(o=l,i=s)}return o>=n?i:null}function fM(t){return typeof t=="string"?t:t.key}function gM(t,e){for(let n=0,r=0;n<t.length;n++){if(r=e.indexOf(t[n],r),r===-1)return t.slice(n);r++}return""}function Im(t,e,n,r){let i;if(n){if(i=gc(t,Object.keys(n.keywords),r))return n.keywords[i];for(let o of n.dependencies)if(i=gc(t,Object.keys(o.keywords),r))return o.keywords[i]}return(i=gc(t,e.options["stylesheet.keywords"],r))?jo(i):null}function bM(t,e){let n=e.options["stylesheet.unitAliases"],r=e.options["stylesheet.unitless"];for(let i of t.value)for(let o of i.value)o.type==="NumberValue"&&(o.unit?o.unit=n[o.unit]||o.unit:o.value!==0&&!r.includes(t.name)&&(o.unit=o.rawValue.includes(".")?e.options["stylesheet.floatUnit"]:e.options["stylesheet.intUnit"]))}function wc(...t){return{type:"CSSValue",value:t}}function jo(t){return{type:"Literal",value:t}}function Gi(t,e){return{type:"Field",index:t,name:e}}function OS(t){for(let e of t.value)if(e.type==="Field"||e.type==="FunctionCall"&&e.arguments.some(OS))return!0;return!1}function LS(t,e,n={index:1}){let r=[];for(let i of t.value)switch(i.type){case"ColorValue":r.push(Gi(n.index++,RS(i,e.options["stylesheet.shortHex"])));break;case"Literal":r.push(Gi(n.index++,i.value));break;case"NumberValue":r.push(Gi(n.index++,`${i.value}${i.unit}`));break;case"StringValue":let o=i.quote==="single"?"'":'"';r.push(Gi(n.index++,o+i.value+o));break;case"FunctionCall":r.push(Gi(n.index++,i.name),jo("("));for(let s=0,l=i.arguments.length;s<l;s++)r=r.concat(LS(i.arguments[s],e,n).value),s!==l-1&&r.push(jo(", "));r.push(jo(")"));break;default:r.push(i)}return Object.assign(Object.assign({},t),{value:r})}function NS(t){return t.context?t.context.name==="@@value"||!t.context.name.startsWith("@@"):!1}function vM(t,e){if(e.context){if(e.context.name==="@@section")return t.filter(n=>n.type==="Raw");if(e.context.name==="@@property")return t.filter(n=>n.type==="Property")}return t}function fc(t){let e={};return Object.keys(t).forEach(n=>{for(let r of n.split("|"))e[r]=t[n]}),e}function ua(t={},e={}){let n=t.type||"markup",r=t.syntax||kM[n];return Object.assign(Object.assign(Object.assign({},WS),t),{type:n,syntax:r,variables:Rm(n,r,"variables",t,e),snippets:Rm(n,r,"snippets",t,e),options:Rm(n,r,"options",t,e)})}function Rm(t,e,n,r,i={}){let o=oS[t],s=i[t],l=oS[e],a=i[e];return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},WS[n]),o&&o[n]),l&&l[n]),s&&s[n]),a&&a[n]),r[n])}function qS(t,e=0){return{text:t,start:e,pos:t.length}}function Wr(t){return t.pos===t.start}function ca(t,e=0){return t.text.charCodeAt(t.pos-1+e)}function sS(t){if(!Wr(t))return t.text.charCodeAt(--t.pos)}function cn(t,e){if(Wr(t))return!1;let n=typeof e=="function"?e(ca(t)):e===ca(t);return n&&t.pos--,!!n}function US(t,e){let n=t.pos;for(;cn(t,e););return t.pos<n}function Um(t){return t===39||t===34}function TM(t){let e=t.pos,n=sS(t);if(Um(n)){for(;!Wr(t);)if(sS(t)===n&&ca(t)!==92)return!0}return t.pos=e,!1}function EM(t){let e=t.pos;if(!cn(t,62))return!1;let n=!1;for(cn(t,47);!Wr(t);){if(US(t,Mm),yc(t)){if(cn(t,47)){n=cn(t,60);break}else if(cn(t,60)){n=!0;break}else{if(cn(t,Mm))continue;if(cn(t,61)){if(yc(t))continue;break}else if(HS(t)){n=!0;break}}break}if(!DM(t))break}return t.pos=e,n}function DM(t){return FM(t)||HS(t)}function FM(t){let e=t.pos;return TM(t)&&cn(t,61)&&yc(t)?!0:(t.pos=e,!1)}function HS(t){let e=t.pos,n=[];for(;!Wr(t);){let r=ca(t);if(zM(r))n.push(r);else if(PM(r)){if(n.pop()!==jS[r])break}else if(!MM(r))break;t.pos--}return e!==t.pos&&cn(t,61)&&yc(t)?!0:(t.pos=e,!1)}function yc(t){return US(t,AM)}function AM(t){return t===58||t===45||RM(t)||IM(t)}function RM(t){return t&=-33,t>=65&&t<=90}function IM(t){return t>47&&t<58}function Mm(t){return t===32||t===9}function MM(t){return!isNaN(t)&&t!==61&&!Mm(t)&&!Um(t)}function PM(t){return t===123||t===40||t===91}function zM(t){return t===125||t===41||t===93}function jm(t,e=t.length,n={}){let r=Object.assign(Object.assign({},LM),n);e=Math.min(t.length,Math.max(0,e??t.length)),r.lookAhead&&(e=NM(t,e,r));let i,o=WM(t,e,r.prefix||"");if(o===-1)return;let s=qS(t,o);s.pos=e;let l=[];for(;!Wr(s);){if(i=ca(s),l.includes(125)){if(i===125){l.push(i),s.pos--;continue}if(i!==123){s.pos--;continue}}if($S(i,r.type))l.push(i);else if(jM(i,r.type)){if(l.pop()!==jS[i])break}else if(l.includes(93)||l.includes(125)){s.pos--;continue}else if(EM(s)||!UM(i))break;s.pos--}if(!l.length&&s.pos!==e){let a=t.slice(s.pos,e).replace(/^[*+>^]+/,"");return{abbreviation:a,location:e-a.length,start:n.prefix?o-n.prefix.length:e-a.length,end:e}}}function NM(t,e,n){for(Um(t.charCodeAt(e))&&e++;$S(t.charCodeAt(e),n.type);)e++;return e}function WM(t,e,n){if(!n)return 0;let r=qS(t),i=n.split("").map(BS);r.pos=e;let o;for(;!Wr(r);)if(!(aS(r,93,91)||aS(r,125,123))){if(o=r.pos,qM(r,i))return o;r.pos--}return-1}function aS(t,e,n){let r=t.pos;if(cn(t,e))for(;!Wr(t);){if(cn(t,n))return!0;t.pos--}return t.pos=r,!1}function qM(t,e){let n=t.pos,r=!1;for(let i=e.length-1;i>=0&&!Wr(t)&&cn(t,e[i]);i--)r=i===0;return r||(t.pos=n),r}function UM(t){return t>64&&t<91||t>96&&t<123||t>47&&t<58||OM.includes(t)}function jM(t,e){return t===40||e==="markup"&&(t===91||t===123)}function $S(t,e){return t===41||e==="markup"&&(t===93||t===125)}function HM(t,e){let n=ua(e);return n.type==="stylesheet"?$M(t,n):BM(t,n)}function BM(t,e){return Nm(Lm(t,e),e)}function $M(t,e){return Wm(qm(t,e),e)}var JR,ZR,eI,tI,G_,nI,fS,gS,mI,fI,_c,EI,HI,$I,VI,iS,wM,yM,_M,SM,xM,kM,CM,WS,oS,jS,BS,OM,LM,da,VS=ue(()=>{Sm();Sm();Dm();Dm();JR={p:"span",ul:"li",ol:"li",table:"tr",tr:"td",tbody:"tr",thead:"tr",tfoot:"tr",colgroup:"col",select:"option",optgroup:"option",audio:"source",video:"source",object:"param",map:"area"};ZR={common:["lorem","ipsum","dolor","sit","amet","consectetur","adipisicing","elit"],words:["exercitationem","perferendis","perspiciatis","laborum","eveniet","sunt","iure","nam","nobis","eum","cum","officiis","excepturi","odio","consectetur","quasi","aut","quisquam","vel","eligendi","itaque","non","odit","tempore","quaerat","dignissimos","facilis","neque","nihil","expedita","vitae","vero","ipsum","nisi","animi","cumque","pariatur","velit","modi","natus","iusto","eaque","sequi","illo","sed","ex","et","voluptatibus","tempora","veritatis","ratione","assumenda","incidunt","nostrum","placeat","aliquid","fuga","provident","praesentium","rem","necessitatibus","suscipit","adipisci","quidem","possimus","voluptas","debitis","sint","accusantium","unde","sapiente","voluptate","qui","aspernatur","laudantium","soluta","amet","quo","aliquam","saepe","culpa","libero","ipsa","dicta","reiciendis","nesciunt","doloribus","autem","impedit","minima","maiores","repudiandae","ipsam","obcaecati","ullam","enim","totam","delectus","ducimus","quis","voluptates","dolores","molestiae","harum","dolorem","quia","voluptatem","molestias","magni","distinctio","omnis","illum","dolorum","voluptatum","ea","quas","quam","corporis","quae","blanditiis","atque","deserunt","laboriosam","earum","consequuntur","hic","cupiditate","quibusdam","accusamus","ut","rerum","error","minus","eius","ab","ad","nemo","fugit","officia","at","in","id","quos","reprehenderit","numquam","iste","fugiat","sit","inventore","beatae","repellendus","magnam","recusandae","quod","explicabo","doloremque","aperiam","consequatur","asperiores","commodi","optio","dolor","labore","temporibus","repellat","veniam","architecto","est","esse","mollitia","nulla","a","similique","eos","alias","dolore","tenetur","deleniti","porro","facere","maxime","corrupti"]},eI={common:["\u0434\u0430\u043B\u0435\u043A\u043E-\u0434\u0430\u043B\u0435\u043A\u043E","\u0437\u0430","\u0441\u043B\u043E\u0432\u0435\u0441\u043D\u044B\u043C\u0438","\u0433\u043E\u0440\u0430\u043C\u0438","\u0432 \u0441\u0442\u0440\u0430\u043D\u0435","\u0433\u043B\u0430\u0441\u043D\u044B\u0445","\u0438 \u0441\u043E\u0433\u043B\u0430\u0441\u043D\u044B\u0445","\u0436\u0438\u0432\u0443\u0442","\u0440\u044B\u0431\u043D\u044B\u0435","\u0442\u0435\u043A\u0441\u0442\u044B"],words:["\u0432\u0434\u0430\u043B\u0438","\u043E\u0442 \u0432\u0441\u0435\u0445","\u043E\u043D\u0438","\u0431\u0443\u043A\u0432\u0435\u043D\u043D\u044B\u0445","\u0434\u043E\u043C\u0430\u0445","\u043D\u0430 \u0431\u0435\u0440\u0435\u0433\u0443","\u0441\u0435\u043C\u0430\u043D\u0442\u0438\u043A\u0430","\u0431\u043E\u043B\u044C\u0448\u043E\u0433\u043E","\u044F\u0437\u044B\u043A\u043E\u0432\u043E\u0433\u043E","\u043E\u043A\u0435\u0430\u043D\u0430","\u043C\u0430\u043B\u0435\u043D\u044C\u043A\u0438\u0439","\u0440\u0443\u0447\u0435\u0435\u043A","\u0434\u0430\u043B\u044C","\u0436\u0443\u0440\u0447\u0438\u0442","\u043F\u043E \u0432\u0441\u0435\u0439","\u043E\u0431\u0435\u0441\u043F\u0435\u0447\u0438\u0432\u0430\u0435\u0442","\u0435\u0435","\u0432\u0441\u0435\u043C\u0438","\u043D\u0435\u043E\u0431\u0445\u043E\u0434\u0438\u043C\u044B\u043C\u0438","\u043F\u0440\u0430\u0432\u0438\u043B\u0430\u043C\u0438","\u044D\u0442\u0430","\u043F\u0430\u0440\u0430\u0434\u0438\u0433\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u0430\u044F","\u0441\u0442\u0440\u0430\u043D\u0430","\u043A\u043E\u0442\u043E\u0440\u043E\u0439","\u0436\u0430\u0440\u0435\u043D\u043D\u044B\u0435","\u043F\u0440\u0435\u0434\u043B\u043E\u0436\u0435\u043D\u0438\u044F","\u0437\u0430\u043B\u0435\u0442\u0430\u044E\u0442","\u043F\u0440\u044F\u043C\u043E","\u0440\u043E\u0442","\u0434\u0430\u0436\u0435","\u0432\u0441\u0435\u043C\u043E\u0433\u0443\u0449\u0430\u044F","\u043F\u0443\u043D\u043A\u0442\u0443\u0430\u0446\u0438\u044F","\u043D\u0435","\u0438\u043C\u0435\u0435\u0442","\u0432\u043B\u0430\u0441\u0442\u0438","\u043D\u0430\u0434","\u0440\u044B\u0431\u043D\u044B\u043C\u0438","\u0442\u0435\u043A\u0441\u0442\u0430\u043C\u0438","\u0432\u0435\u0434\u0443\u0449\u0438\u043C\u0438","\u0431\u0435\u0437\u043E\u0440\u0444\u043E\u0433\u0440\u0430\u0444\u0438\u0447\u043D\u044B\u0439","\u043E\u0431\u0440\u0430\u0437","\u0436\u0438\u0437\u043D\u0438","\u043E\u0434\u043D\u0430\u0436\u0434\u044B","\u043E\u0434\u043D\u0430","\u043C\u0430\u043B\u0435\u043D\u044C\u043A\u0430\u044F","\u0441\u0442\u0440\u043E\u0447\u043A\u0430","\u0440\u044B\u0431\u043D\u043E\u0433\u043E","\u0442\u0435\u043A\u0441\u0442\u0430","\u0438\u043C\u0435\u043D\u0438","lorem","ipsum","\u0440\u0435\u0448\u0438\u043B\u0430","\u0432\u044B\u0439\u0442\u0438","\u0431\u043E\u043B\u044C\u0448\u043E\u0439","\u043C\u0438\u0440","\u0433\u0440\u0430\u043C\u043C\u0430\u0442\u0438\u043A\u0438","\u0432\u0435\u043B\u0438\u043A\u0438\u0439","\u043E\u043A\u0441\u043C\u043E\u043A\u0441","\u043F\u0440\u0435\u0434\u0443\u043F\u0440\u0435\u0436\u0434\u0430\u043B","\u043E","\u0437\u043B\u044B\u0445","\u0437\u0430\u043F\u044F\u0442\u044B\u0445","\u0434\u0438\u043A\u0438\u0445","\u0437\u043D\u0430\u043A\u0430\u0445","\u0432\u043E\u043F\u0440\u043E\u0441\u0430","\u043A\u043E\u0432\u0430\u0440\u043D\u044B\u0445","\u0442\u043E\u0447\u043A\u0430\u0445","\u0437\u0430\u043F\u044F\u0442\u043E\u0439","\u043D\u043E","\u0442\u0435\u043A\u0441\u0442","\u0434\u0430\u043B","\u0441\u0431\u0438\u0442\u044C","\u0441\u0435\u0431\u044F","\u0442\u043E\u043B\u043A\u0443","\u043E\u043D","\u0441\u043E\u0431\u0440\u0430\u043B","\u0441\u0435\u043C\u044C","\u0441\u0432\u043E\u0438\u0445","\u0437\u0430\u0433\u043B\u0430\u0432\u043D\u044B\u0445","\u0431\u0443\u043A\u0432","\u043F\u043E\u0434\u043F\u043E\u044F\u0441\u0430\u043B","\u0438\u043D\u0438\u0446\u0438\u0430\u043B","\u0437\u0430","\u043F\u043E\u044F\u0441","\u043F\u0443\u0441\u0442\u0438\u043B\u0441\u044F","\u0434\u043E\u0440\u043E\u0433\u0443","\u0432\u0437\u043E\u0431\u0440\u0430\u0432\u0448\u0438\u0441\u044C","\u043F\u0435\u0440\u0432\u0443\u044E","\u0432\u0435\u0440\u0448\u0438\u043D\u0443","\u043A\u0443\u0440\u0441\u0438\u0432\u043D\u044B\u0445","\u0433\u043E\u0440","\u0431\u0440\u043E\u0441\u0438\u043B","\u043F\u043E\u0441\u043B\u0435\u0434\u043D\u0438\u0439","\u0432\u0437\u0433\u043B\u044F\u0434","\u043D\u0430\u0437\u0430\u0434","\u0441\u0438\u043B\u0443\u044D\u0442","\u0441\u0432\u043E\u0435\u0433\u043E","\u0440\u043E\u0434\u043D\u043E\u0433\u043E","\u0433\u043E\u0440\u043E\u0434\u0430","\u0431\u0443\u043A\u0432\u043E\u0433\u0440\u0430\u0434","\u0437\u0430\u0433\u043E\u043B\u043E\u0432\u043E\u043A","\u0434\u0435\u0440\u0435\u0432\u043D\u0438","\u0430\u043B\u0444\u0430\u0432\u0438\u0442","\u043F\u043E\u0434\u0437\u0430\u0433\u043E\u043B\u043E\u0432\u043E\u043A","\u0441\u0432\u043E\u0435\u0433\u043E","\u043F\u0435\u0440\u0435\u0443\u043B\u043A\u0430","\u0433\u0440\u0443\u0441\u0442\u043D\u044B\u0439","\u0440\u0435\u0442\u043E\u0440\u0438\u0447\u0435\u0441\u043A\u0438\u0439","\u0432\u043E\u043F\u0440\u043E\u0441","\u0441\u043A\u0430\u0442\u0438\u043B\u0441\u044F","\u0435\u0433\u043E","\u0449\u0435\u043A\u0435","\u043F\u0440\u043E\u0434\u043E\u043B\u0436\u0438\u043B","\u0441\u0432\u043E\u0439","\u043F\u0443\u0442\u044C","\u0434\u043E\u0440\u043E\u0433\u0435","\u0432\u0441\u0442\u0440\u0435\u0442\u0438\u043B","\u0440\u0443\u043A\u043E\u043F\u0438\u0441\u044C","\u043E\u043D\u0430","\u043F\u0440\u0435\u0434\u0443\u043F\u0440\u0435\u0434\u0438\u043B\u0430","\u043C\u043E\u0435\u0439","\u0432\u0441\u0435","\u043F\u0435\u0440\u0435\u043F\u0438\u0441\u044B\u0432\u0430\u0435\u0442\u0441\u044F","\u043D\u0435\u0441\u043A\u043E\u043B\u044C\u043A\u043E","\u0440\u0430\u0437","\u0435\u0434\u0438\u043D\u0441\u0442\u0432\u0435\u043D\u043D\u043E\u0435","\u0447\u0442\u043E","\u043C\u0435\u043D\u044F","\u043E\u0441\u0442\u0430\u043B\u043E\u0441\u044C","\u044D\u0442\u043E","\u043F\u0440\u0438\u0441\u0442\u0430\u0432\u043A\u0430","\u0432\u043E\u0437\u0432\u0440\u0430\u0449\u0430\u0439\u0441\u044F","\u0442\u044B","\u043B\u0443\u0447\u0448\u0435","\u0441\u0432\u043E\u044E","\u0431\u0435\u0437\u043E\u043F\u0430\u0441\u043D\u0443\u044E","\u0441\u0442\u0440\u0430\u043D\u0443","\u043F\u043E\u0441\u043B\u0443\u0448\u0430\u0432\u0448\u0438\u0441\u044C","\u0440\u0443\u043A\u043E\u043F\u0438\u0441\u0438","\u043D\u0430\u0448","\u043F\u0440\u043E\u0434\u043E\u043B\u0436\u0438\u043B","\u0441\u0432\u043E\u0439","\u043F\u0443\u0442\u044C","\u0432\u0441\u043A\u043E\u0440\u0435","\u0435\u043C\u0443","\u043F\u043E\u0432\u0441\u0442\u0440\u0435\u0447\u0430\u043B\u0441\u044F","\u043A\u043E\u0432\u0430\u0440\u043D\u044B\u0439","\u0441\u043E\u0441\u0442\u0430\u0432\u0438\u0442\u0435\u043B\u044C","\u0440\u0435\u043A\u043B\u0430\u043C\u043D\u044B\u0445","\u0442\u0435\u043A\u0441\u0442\u043E\u0432","\u043D\u0430\u043F\u043E\u0438\u0432\u0448\u0438\u0439","\u044F\u0437\u044B\u043A\u043E\u043C","\u0440\u0435\u0447\u044C\u044E","\u0437\u0430\u043C\u0430\u043D\u0438\u0432\u0448\u0438\u0439","\u0441\u0432\u043E\u0435","\u0430\u0433\u0435\u043D\u0442\u0441\u0442\u0432\u043E","\u043A\u043E\u0442\u043E\u0440\u043E\u0435","\u0438\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u043B\u043E","\u0441\u043D\u043E\u0432\u0430","\u0441\u043D\u043E\u0432\u0430","\u0441\u0432\u043E\u0438\u0445","\u043F\u0440\u043E\u0435\u043A\u0442\u0430\u0445","\u0435\u0441\u043B\u0438","\u043F\u0435\u0440\u0435\u043F\u0438\u0441\u0430\u043B\u0438","\u0442\u043E","\u0436\u0438\u0432\u0435\u0442","\u0442\u0430\u043C","\u0434\u043E","\u0441\u0438\u0445","\u043F\u043E\u0440"]},tI={common:["mujer","uno","dolor","m\xE1s","de","poder","mismo","si"],words:["ejercicio","preferencia","perspicacia","laboral","pa\xF1o","suntuoso","molde","namibia","planeador","mirar","dem\xE1s","oficinista","excepci\xF3n","odio","consecuencia","casi","auto","chicharra","velo","elixir","ataque","no","odio","temporal","cu\xF3rum","dign\xEDsimo","facilismo","letra","nihilista","expedici\xF3n","alma","alveolar","aparte","le\xF3n","animal","como","paria","belleza","modo","natividad","justo","ataque","s\xE9quito","pillo","sed","ex","y","voluminoso","temporalidad","verdades","racional","asunci\xF3n","incidente","marejada","placenta","amanecer","fuga","previsor","presentaci\xF3n","lejos","necesariamente","sospechoso","adiposidad","quind\xEDo","p\xF3cima","voluble","d\xE9bito","sinti\xF3","accesorio","falda","sapiencia","volutas","queso","permacultura","laudo","soluciones","entero","pan","litro","tonelada","culpa","libertario","mosca","dictado","reincidente","nascimiento","dolor","escolar","impedimento","m\xEDnima","mayores","repugnante","dulce","obcecado","monta\xF1a","enigma","total","delet\xE9reo","d\xE9cima","c\xE1bala","fotograf\xEDa","dolores","molesto","olvido","paciencia","resiliencia","voluntad","molestias","magn\xEDfico","distinci\xF3n","ovni","marejada","cerro","torre","y","abogada","manantial","corporal","agua","crep\xFAsculo","ataque","desierto","laboriosamente","angustia","afortunado","alma","encefalograma","materialidad","cosas","o","renuncia","error","menos","conejo","abad\xEDa","analfabeto","remo","fugacidad","oficio","en","alm\xE1cigo","vos","pan","represi\xF3n","n\xFAmeros","triste","refugiado","trote","inventor","corchea","repelente","magma","recusado","patr\xF3n","expl\xEDcito","paloma","s\xEDndrome","inmune","autoinmune","comodidad","ley","vietnamita","demonio","tasmania","repeler","ap\xE9ndice","arquitecto","columna","yugo","computador","mula","a","prop\xF3sito","fantas\xEDa","alias","rayo","tenedor","deleznable","ventana","cara","anemia","corrupto"]},G_={ru:eI,sp:tI,latin:ZR},nI=/^lorem([a-z]*)(\d*)(-\d*)?$/i;fS=/^(-+)([a-z0-9]+[a-z0-9-]*)/i,gS=/^(_+)([a-z0-9]+[a-z0-9-_]*)/i,mI=t=>/^[a-z]\-/i.test(t),fI=t=>/^[a-z]/i.test(t);_c=[{type:"Field",index:0,name:""}];EI=/^<([\w\-:]+)[\s>]/;HI={html:DS,haml:qI,slim:UI,pug:jI};$I=/^([a-z-]+)(?:\s*:\s*([^\n\r;]+?);*)?$/,VI={value:!0};iS="lg";wM={a:"a[href]","a:blank":"a[href='http://${0}' target='_blank' rel='noopener noreferrer']","a:link":"a[href='http://${0}']","a:mail":"a[href='mailto:${0}']","a:tel":"a[href='tel:+${0}']",abbr:"abbr[title]","acr|acronym":"acronym[title]",base:"base[href]/",basefont:"basefont/",br:"br/",frame:"frame/",hr:"hr/",bdo:"bdo[dir]","bdo:r":"bdo[dir=rtl]","bdo:l":"bdo[dir=ltr]",col:"col/",link:"link[rel=stylesheet href]/","link:css":"link[href='${1:style}.css']","link:print":"link[href='${1:print}.css' media=print]","link:favicon":"link[rel='shortcut icon' type=image/x-icon href='${1:favicon.ico}']","link:mf|link:manifest":"link[rel='manifest' href='${1:manifest.json}']","link:touch":"link[rel=apple-touch-icon href='${1:favicon.png}']","link:rss":"link[rel=alternate type=application/rss+xml title=RSS href='${1:rss.xml}']","link:atom":"link[rel=alternate type=application/atom+xml title=Atom href='${1:atom.xml}']","link:im|link:import":"link[rel=import href='${1:component}.html']",meta:"meta/","meta:utf":"meta[http-equiv=Content-Type content='text/html;charset=UTF-8']","meta:vp":"meta[name=viewport content='width=${1:device-width}, initial-scale=${2:1.0}']","meta:compat":"meta[http-equiv=X-UA-Compatible content='${1:IE=7}']","meta:edge":"meta:compat[content='${1:ie=edge}']","meta:redirect":"meta[http-equiv=refresh content='0; url=${1:http://example.com}']","meta:kw":"meta[name=keywords content]","meta:desc":"meta[name=description content]",style:"style",script:"script","script:src":"script[src]",img:"img[src alt]/","img:s|img:srcset":"img[srcset src alt]","img:z|img:sizes":"img[sizes srcset src alt]",picture:"picture","src|source":"source/","src:sc|source:src":"source[src type]","src:s|source:srcset":"source[srcset]","src:t|source:type":"source[srcset type='${1:image/}']","src:z|source:sizes":"source[sizes srcset]","src:m|source:media":"source[media='(${1:min-width: })' srcset]","src:mt|source:media:type":"source:media[type='${2:image/}']","src:mz|source:media:sizes":"source:media[sizes srcset]","src:zt|source:sizes:type":"source[sizes srcset type='${1:image/}']",iframe:"iframe[src frameborder=0]",embed:"embed[src type]/",object:"object[data type]",param:"param[name value]/",map:"map[name]",area:"area[shape coords href alt]/","area:d":"area[shape=default]","area:c":"area[shape=circle]","area:r":"area[shape=rect]","area:p":"area[shape=poly]",form:"form[action]","form:get":"form[method=get]","form:post":"form[method=post]",label:"label[for]",input:"input[type=${1:text}]/",inp:"input[name=${1} id=${1}]","input:h|input:hidden":"input[type=hidden name]","input:t|input:text":"inp[type=text]","input:search":"inp[type=search]","input:email":"inp[type=email]","input:url":"inp[type=url]","input:p|input:password":"inp[type=password]","input:datetime":"inp[type=datetime]","input:date":"inp[type=date]","input:datetime-local":"inp[type=datetime-local]","input:month":"inp[type=month]","input:week":"inp[type=week]","input:time":"inp[type=time]","input:tel":"inp[type=tel]","input:number":"inp[type=number]","input:color":"inp[type=color]","input:c|input:checkbox":"inp[type=checkbox]","input:r|input:radio":"inp[type=radio]","input:range":"inp[type=range]","input:f|input:file":"inp[type=file]","input:s|input:submit":"input[type=submit value]","input:i|input:image":"input[type=image src alt]","input:b|input:btn|input:button":"input[type=button value]","input:reset":"input:button[type=reset]",isindex:"isindex/",select:"select[name=${1} id=${1}]","select:d|select:disabled":"select[disabled.]","opt|option":"option[value]",textarea:"textarea[name=${1} id=${1} cols=${2:30} rows=${3:10}]",marquee:"marquee[behavior direction]","menu:c|menu:context":"menu[type=context]","menu:t|menu:toolbar":"menu[type=toolbar]",video:"video[src]",audio:"audio[src]","html:xml":"html[xmlns=http://www.w3.org/1999/xhtml]",keygen:"keygen/",command:"command/","btn:s|button:s|button:submit":"button[type=submit]","btn:r|button:r|button:reset":"button[type=reset]","btn:d|button:d|button:disabled":"button[disabled.]","fst:d|fset:d|fieldset:d|fieldset:disabled":"fieldset[disabled.]",bq:"blockquote",fig:"figure",figc:"figcaption",pic:"picture",ifr:"iframe",emb:"embed",obj:"object",cap:"caption",colg:"colgroup",fst:"fieldset",btn:"button",optg:"optgroup",tarea:"textarea",leg:"legend",sect:"section",art:"article",hdr:"header",ftr:"footer",adr:"address",dlg:"dialog",str:"strong",prog:"progress",mn:"main",tem:"template",fset:"fieldset",datag:"datagrid",datal:"datalist",kg:"keygen",out:"output",det:"details",sum:"summary",cmd:"command","ri:d|ri:dpr":"img:s","ri:v|ri:viewport":"img:z","ri:a|ri:art":"pic>src:m+img","ri:t|ri:type":"pic>src:t+img","!!!":"{<!DOCTYPE html>}",doc:"html[lang=${lang}]>(head>meta[charset=${charset}]+meta[http-equiv='X-UA-Compatible'][content='IE=edge']+meta:vp+title{${1:Document}})+body","!|html:5":"!!!+doc",c:"{<!-- ${0} -->}","cc:ie":"{<!--[if IE]>${0}<![endif]-->}","cc:noie":"{<!--[if !IE]><!-->${0}<!--<![endif]-->}"},yM={"@f":`@font-face {
|
|
504
504
|
font-family: \${1};
|
|
505
505
|
src: url(\${2});
|
|
506
506
|
}`,"@ff":"@font-face {\n font-family: '${1:FontName}';\n src: url('${2:FileName}.eot');\n src: url('${2:FileName}.eot?#iefix') format('embedded-opentype'),\n url('${2:FileName}.woff') format('woff'),\n url('${2:FileName}.ttf') format('truetype'),\n url('${2:FileName}.svg#${1:FontName}') format('svg');\n font-style: ${3:normal};\n font-weight: ${4:normal};\n}","@i|@import":"@import url(${0});","@kf":"@keyframes ${1:identifier} {\n ${2}\n}","@m|@media":"@media ${1:screen} {\n ${0}\n}",ac:"align-content:start|end|flex-start|flex-end|center|space-between|space-around|stretch|space-evenly",ai:"align-items:start|end|flex-start|flex-end|center|baseline|stretch",anim:"animation:${1:name} ${2:duration} ${3:timing-function} ${4:delay} ${5:iteration-count} ${6:direction} ${7:fill-mode}",animdel:"animation-delay:time",animdir:"animation-direction:normal|reverse|alternate|alternate-reverse",animdur:"animation-duration:${1:0}s",animfm:"animation-fill-mode:both|forwards|backwards",animic:"animation-iteration-count:1|infinite",animn:"animation-name",animps:"animation-play-state:running|paused",animtf:"animation-timing-function:linear|ease|ease-in|ease-out|ease-in-out|cubic-bezier(${1:0.1}, ${2:0.7}, ${3:1.0}, ${3:0.1})",ap:"appearance:none",as:"align-self:start|end|auto|flex-start|flex-end|center|baseline|stretch",b:"bottom",bd:"border:${1:1px} ${2:solid} ${3:#000}",bdb:"border-bottom:${1:1px} ${2:solid} ${3:#000}",bdbc:"border-bottom-color:${1:#000}",bdbi:"border-bottom-image:url(${0})",bdbk:"border-break:close",bdbli:"border-bottom-left-image:url(${0})|continue",bdblrs:"border-bottom-left-radius",bdbri:"border-bottom-right-image:url(${0})|continue",bdbrrs:"border-bottom-right-radius",bdbs:"border-bottom-style",bdbw:"border-bottom-width",bdc:"border-color:${1:#000}",bdci:"border-corner-image:url(${0})|continue",bdcl:"border-collapse:collapse|separate",bdf:"border-fit:repeat|clip|scale|stretch|overwrite|overflow|space",bdi:"border-image:url(${0})",bdl:"border-left:${1:1px} ${2:solid} ${3:#000}",bdlc:"border-left-color:${1:#000}",bdlen:"border-length",bdli:"border-left-image:url(${0})",bdls:"border-left-style",bdlw:"border-left-width",bdr:"border-right:${1:1px} ${2:solid} ${3:#000}",bdrc:"border-right-color:${1:#000}",bdri:"border-right-image:url(${0})",bdrs:"border-radius",bdrst:"border-right-style",bdrw:"border-right-width",bds:"border-style:none|hidden|dotted|dashed|solid|double|dot-dash|dot-dot-dash|wave|groove|ridge|inset|outset",bdsp:"border-spacing",bdt:"border-top:${1:1px} ${2:solid} ${3:#000}",bdtc:"border-top-color:${1:#000}",bdti:"border-top-image:url(${0})",bdtli:"border-top-left-image:url(${0})|continue",bdtlrs:"border-top-left-radius",bdtri:"border-top-right-image:url(${0})|continue",bdtrrs:"border-top-right-radius",bdts:"border-top-style",bdtw:"border-top-width",bdw:"border-width",bfv:"backface-visibility:hidden|visible",bg:"background:${1:#000}",bga:"background-attachment:fixed|scroll",bgbk:"background-break:bounding-box|each-box|continuous",bgc:"background-color:#${1:fff}",bgcp:"background-clip:padding-box|border-box|content-box|no-clip",bgi:"background-image:url(${0})",bgo:"background-origin:padding-box|border-box|content-box",bgp:"background-position:${1:0} ${2:0}",bgpx:"background-position-x",bgpy:"background-position-y",bgr:"background-repeat:no-repeat|repeat-x|repeat-y|space|round",bgsz:"background-size:contain|cover",bxsh:"box-shadow:${1:inset }${2:hoff} ${3:voff} ${4:blur} ${5:#000}|none",bxsz:"box-sizing:border-box|content-box|border-box",c:"color:${1:#000}",cr:"color:rgb(${1:0}, ${2:0}, ${3:0})",cra:"color:rgba(${1:0}, ${2:0}, ${3:0}, ${4:.5})",cl:"clear:both|left|right|none",cm:"/* ${0} */",cnt:"content:'${0}'|normal|open-quote|no-open-quote|close-quote|no-close-quote|attr(${0})|counter(${0})|counters(${0})",coi:"counter-increment",colm:"columns",colmc:"column-count",colmf:"column-fill",colmg:"column-gap",colmr:"column-rule",colmrc:"column-rule-color",colmrs:"column-rule-style",colmrw:"column-rule-width",colms:"column-span",colmw:"column-width",cor:"counter-reset",cp:"clip:auto|rect(${1:top} ${2:right} ${3:bottom} ${4:left})",cps:"caption-side:top|bottom",cur:"cursor:pointer|auto|default|crosshair|hand|help|move|pointer|text",d:"display:block|none|flex|inline-flex|inline|inline-block|grid|inline-grid|subgrid|list-item|run-in|compact|table|inline-table|table-caption|table-column|table-column-group|table-header-group|table-footer-group|table-row|table-row-group|table-cell|ruby|ruby-base|ruby-base-group|ruby-text|ruby-text-group",ec:"empty-cells:show|hide",f:"font:${1:1em} ${2:sans-serif}",fd:"font-display:auto|block|swap|fallback|optional",fef:"font-effect:none|engrave|emboss|outline",fem:"font-emphasize",femp:"font-emphasize-position:before|after",fems:"font-emphasize-style:none|accent|dot|circle|disc",ff:"font-family:serif|sans-serif|cursive|fantasy|monospace",fft:'font-family:"Times New Roman", Times, Baskerville, Georgia, serif',ffa:'font-family:Arial, "Helvetica Neue", Helvetica, sans-serif',ffv:"font-family:Verdana, Geneva, sans-serif",fl:"float:left|right|none",fs:"font-style:italic|normal|oblique",fsm:"font-smoothing:antialiased|subpixel-antialiased|none",fst:"font-stretch:normal|ultra-condensed|extra-condensed|condensed|semi-condensed|semi-expanded|expanded|extra-expanded|ultra-expanded",fv:"font-variant:normal|small-caps",fvs:"font-variation-settings:normal|inherit|initial|unset",fw:"font-weight:normal|bold|bolder|lighter",fx:"flex",fxb:"flex-basis:fill|max-content|min-content|fit-content|content",fxd:"flex-direction:row|row-reverse|column|column-reverse",fxf:"flex-flow",fxg:"flex-grow",fxsh:"flex-shrink",fxw:"flex-wrap:nowrap|wrap|wrap-reverse",fsz:"font-size",fsza:"font-size-adjust",gtc:"grid-template-columns:repeat(${0})|minmax()",gtr:"grid-template-rows:repeat(${0})|minmax()",gta:"grid-template-areas",gt:"grid-template",gg:"grid-gap",gcg:"grid-column-gap",grg:"grid-row-gap",gac:"grid-auto-columns:auto|minmax()",gar:"grid-auto-rows:auto|minmax()",gaf:"grid-auto-flow:row|column|dense|inherit|initial|unset",gd:"grid",gc:"grid-column",gcs:"grid-column-start",gce:"grid-column-end",gr:"grid-row",grs:"grid-row-start",gre:"grid-row-end",ga:"grid-area",h:"height",jc:"justify-content:start|end|stretch|flex-start|flex-end|center|space-between|space-around|space-evenly",ji:"justify-items:start|end|center|stretch",js:"justify-self:start|end|center|stretch",l:"left",lg:"background-image:linear-gradient(${1})",lh:"line-height",lis:"list-style",lisi:"list-style-image",lisp:"list-style-position:inside|outside",list:"list-style-type:disc|circle|square|decimal|decimal-leading-zero|lower-roman|upper-roman",lts:"letter-spacing:normal",m:"margin",mah:"max-height",mar:"max-resolution",maw:"max-width",mb:"margin-bottom",mih:"min-height",mir:"min-resolution",miw:"min-width",ml:"margin-left",mr:"margin-right",mt:"margin-top",ol:"outline",olc:"outline-color:${1:#000}|invert",olo:"outline-offset",ols:"outline-style:none|dotted|dashed|solid|double|groove|ridge|inset|outset",olw:"outline-width|thin|medium|thick","op|opa":"opacity",ord:"order",ori:"orientation:landscape|portrait",orp:"orphans",ov:"overflow:hidden|visible|hidden|scroll|auto",ovs:"overflow-style:scrollbar|auto|scrollbar|panner|move|marquee",ovx:"overflow-x:hidden|visible|hidden|scroll|auto",ovy:"overflow-y:hidden|visible|hidden|scroll|auto",p:"padding",pb:"padding-bottom",pgba:"page-break-after:auto|always|left|right",pgbb:"page-break-before:auto|always|left|right",pgbi:"page-break-inside:auto|avoid",pl:"padding-left",pos:"position:relative|absolute|relative|fixed|static",pr:"padding-right",pt:"padding-top",q:"quotes",qen:"quotes:'\\201C' '\\201D' '\\2018' '\\2019'",qru:"quotes:'\\00AB' '\\00BB' '\\201E' '\\201C'",r:"right",rsz:"resize:none|both|horizontal|vertical",t:"top",ta:"text-align:left|center|right|justify",tal:"text-align-last:left|center|right",tbl:"table-layout:fixed",td:"text-decoration:none|underline|overline|line-through",te:"text-emphasis:none|accent|dot|circle|disc|before|after",th:"text-height:auto|font-size|text-size|max-size",ti:"text-indent",tj:"text-justify:auto|inter-word|inter-ideograph|inter-cluster|distribute|kashida|tibetan",to:"text-outline:${1:0} ${2:0} ${3:#000}",tov:"text-overflow:ellipsis|clip",tr:"text-replace",trf:"transform:${1}|skewX(${1:angle})|skewY(${1:angle})|scale(${1:x}, ${2:y})|scaleX(${1:x})|scaleY(${1:y})|scaleZ(${1:z})|scale3d(${1:x}, ${2:y}, ${3:z})|rotate(${1:angle})|rotateX(${1:angle})|rotateY(${1:angle})|rotateZ(${1:angle})|translate(${1:x}, ${2:y})|translateX(${1:x})|translateY(${1:y})|translateZ(${1:z})|translate3d(${1:tx}, ${2:ty}, ${3:tz})",trfo:"transform-origin",trfs:"transform-style:preserve-3d",trs:"transition:${1:prop} ${2:time}",trsde:"transition-delay:${1:time}",trsdu:"transition-duration:${1:time}",trsp:"transition-property:${1:prop}",trstf:"transition-timing-function:${1:fn}",tsh:"text-shadow:${1:hoff} ${2:voff} ${3:blur} ${4:#000}",tt:"text-transform:uppercase|lowercase|capitalize|none",tw:"text-wrap:none|normal|unrestricted|suppress",us:"user-select:none",v:"visibility:hidden|visible|collapse",va:"vertical-align:top|super|text-top|middle|baseline|bottom|text-bottom|sub",w:"width",whs:"white-space:nowrap|pre|pre-wrap|pre-line|normal",whsc:"white-space-collapse:normal|keep-all|loose|break-strict|break-all",wid:"widows",wm:"writing-mode:lr-tb|lr-tb|lr-bt|rl-tb|rl-bt|tb-rl|tb-lr|bt-lr|bt-rl",wob:"word-break:normal|keep-all|break-all",wos:"word-spacing",wow:"word-wrap:none|unrestricted|suppress|break-word|normal",z:"z-index",zom:"zoom:1"},_M={"tm|tmatch":"xsl:template[match mode]","tn|tname":"xsl:template[name]",call:"xsl:call-template[name]",ap:"xsl:apply-templates[select mode]",api:"xsl:apply-imports",imp:"xsl:import[href]",inc:"xsl:include[href]",ch:"xsl:choose","wh|xsl:when":"xsl:when[test]",ot:"xsl:otherwise",if:"xsl:if[test]",par:"xsl:param[name]",pare:"xsl:param[name select]",var:"xsl:variable[name]",vare:"xsl:variable[name select]",wp:"xsl:with-param[name select]",key:"xsl:key[name match use]",elem:"xsl:element[name]",attr:"xsl:attribute[name]",attrs:"xsl:attribute-set[name]",cp:"xsl:copy[select]",co:"xsl:copy-of[select]",val:"xsl:value-of[select]","for|each":"xsl:for-each[select]",tex:"xsl:text",com:"xsl:comment",msg:"xsl:message[terminate=no]",fall:"xsl:fallback",num:"xsl:number[value]",nam:"namespace-alias[stylesheet-prefix result-prefix]",pres:"xsl:preserve-space[elements]",strip:"xsl:strip-space[elements]",proc:"xsl:processing-instruction[name]",sort:"xsl:sort[select order]",choose:"xsl:choose>xsl:when+xsl:otherwise",xsl:`!!!+xsl:stylesheet[version=1.0 xmlns:xsl=http://www.w3.org/1999/XSL/Transform]>{
|
|
@@ -510,9 +510,9 @@ ${"-".repeat(n.pos)}^`),n}}var mc,Dm=ue(()=>{fm();mc=LR});function NR(t,e){if(!t
|
|
|
510
510
|
<!-- /[#ID][.CLASS] -->`,"bem.enabled":!1,"bem.element":"__","bem.modifier":"_","jsx.enabled":!1,"stylesheet.keywords":["auto","inherit","unset","none"],"stylesheet.unitless":["z-index","line-height","opacity","font-weight","zoom","flex","flex-grow","flex-shrink"],"stylesheet.shortHex":!0,"stylesheet.between":": ","stylesheet.after":";","stylesheet.intUnit":"px","stylesheet.floatUnit":"em","stylesheet.unitAliases":{e:"em",p:"%",x:"ex",r:"rem"},"stylesheet.json":!1,"stylesheet.jsonDoubleQuotes":!1,"stylesheet.fuzzySearchMinScore":0},WS={type:"markup",syntax:"html",variables:xM,snippets:{},options:CM},oS={markup:{snippets:fc(wM)},xhtml:{options:{"output.selfClosingStyle":"xhtml"}},xml:{options:{"output.selfClosingStyle":"xml"}},xsl:{snippets:fc(_M),options:{"output.selfClosingStyle":"xml"}},jsx:{options:{"jsx.enabled":!0}},pug:{snippets:fc(SM)},stylesheet:{snippets:fc(yM)},sass:{options:{"stylesheet.after":""}},stylus:{options:{"stylesheet.between":" ","stylesheet.after":""}}};jS={[91]:93,[40]:41,[123]:125};BS=t=>t.charCodeAt(0),OM="#.*:$-_!@%^+>/".split("").map(BS),LM={type:"markup",lookAhead:!0,prefix:""};da=HM});function KS(t){let e={};return Object.keys(t).forEach(n=>{for(let r of n.split("|"))e[r]=t[n]}),e}var ha,GS=ue(()=>{ha={markup:["html","xml","xsl","jsx","js","pug","slim","haml"],stylesheet:["css","sass","scss","less","sss","stylus"]}});var Qm={};xd(Qm,{FileType:()=>na,doComplete:()=>QM,emmetSnippetField:()=>Gm,expandAbbreviation:()=>iP,extractAbbreviation:()=>tx,extractAbbreviationFromText:()=>eP,getDefaultSnippets:()=>ZS,getDefaultSyntax:()=>Xm,getEmmetMode:()=>ix,getExpandOptions:()=>rx,getSyntaxType:()=>Jm,isAbbreviationValid:()=>nx,isStyleSheet:()=>$n,parseAbbreviation:()=>rP,updateExtensionsPath:()=>lP});function QM(t,e,n,r){var i,o;if(r.showExpandedAbbreviation==="never"||!ix(n,r.excludeLanguages))return;let s=$n(n);if(!s){if(!Cc.has(n)){let g=Object.assign(Object.assign({},ZS(n)),Xi[n]);Cc.set(n,Object.keys(g))}Vm=(i=Cc.get(n))!==null&&i!==void 0?i:[]}let a=tx(t,e,{lookAhead:!s,type:s?"stylesheet":"markup"});if(!a)return;let{abbreviationRange:c,abbreviation:u,filter:d}=a,h=YS(t,e).substr(0,e.character);if(YM(h)===u&&h.endsWith(`<${u}`)&&ha.markup.includes(n))return;let w=rx(n,r,d),v="",x,_=[],f=(g,D)=>{if(!!nx(g,u)){try{v=da(D,w),s&&"!important".startsWith(D)&&(v="!important")}catch{}!v||tP(g,D,v,w.options)||(x=jt.CompletionItem.create(D),x.textEdit=jt.TextEdit.replace(c,Tc(Ec(v))),x.documentation=Km(v),x.insertTextFormat=jt.InsertTextFormat.Snippet,x.detail=Fc("Emmet abbreviation","Emmet Abbreviation"),x.label=u,x.label+=d?"|"+d.replace(",","|"):"",_=[x])}};if($n(n)){if(f(n,u),u.length>4&&o_.properties.find(g=>g.startsWith(u)))return jt.CompletionList.create([],!0);if(x&&v.length){x.textEdit=jt.TextEdit.replace(c,Tc(Ec(v))),x.documentation=Km(v),x.label=ZM(v),x.filterText=u;let g=Ho.has(n)?Ho.get(n):Ho.get("css");if(_=Bm(g??[],u,u,c,w,"Emmet Custom Snippet",!1),!_.find(D=>{var L,K,C;return((L=D.textEdit)===null||L===void 0?void 0:L.newText)&&((K=D.textEdit)===null||K===void 0?void 0:K.newText)===((C=x?.textEdit)===null||C===void 0?void 0:C.newText)})){let D=new RegExp(".*"+u.split("").map(L=>L==="$"||L==="+"?"\\"+L:L).join(".*")+".*","i");(/\d/.test(u)||D.test(x.label))&&_.push(x)}}}else{f(n,u);let g=u,D=u.match(/(>|\+)([\w:-]+)$/);if(D&&D.length===3&&(g=D[2]),n!=="xml"){let L=Bm(pa,g,u,c,w,"Emmet Abbreviation");_=_.concat(L)}if(r.showAbbreviationSuggestions===!0){let L=Bm(Vm.filter(K=>!pa.includes(K)),g,u,c,w,"Emmet Abbreviation");x&&L.length>0&&g!==u&&(x.sortText="0"+x.label,L.forEach(K=>{K.filterText=u,K.sortText="9"+u})),_=_.concat(L)}n==="html"&&_.length>=2&&u.includes(":")&&((o=x?.textEdit)===null||o===void 0?void 0:o.newText)===`<${u}>\${0}</${u}>`&&(_=_.filter(L=>L.label!==u))}return r.showSuggestionsAsSnippets===!0&&_.forEach(g=>g.kind=jt.CompletionItemKind.Snippet),_.length?jt.CompletionList.create(_,!0):void 0}function Bm(t,e,n,r,i,o,s=!0){if(!e||!t)return[];let l=[];return t.forEach(a=>{if(!a.startsWith(e.toLowerCase())||s&&a===e.toLowerCase())return;let c=n+a.substr(e.length),u;try{u=da(c,i)}catch{}if(!u)return;let d=jt.CompletionItem.create(e+a.substr(e.length));d.documentation=Km(u),d.detail=o,d.textEdit=jt.TextEdit.replace(r,Tc(Ec(u))),d.insertTextFormat=jt.InsertTextFormat.Snippet,l.push(d)}),l}function YM(t){if(t){let e=t.match(/[\w,:,-,\.]*$/);if(e)return e[0]}}function Km(t){return t.replace(/([^\\])\$\{\d+\}/g,"$1|").replace(/\$\{\d+:([^\}]+)\}/g,"$1")}function ZM(t){return t.replace(/([^\\])\$\{\d+\}/g,"$1").replace(/\$\{\d+:([^\}]+)\}/g,"$1")}function Tc(t){return t&&t.replace(/([^\\])(\$)([^\{])/g,"$1\\$2$3")}function Ec(t){if(!t||!t.trim())return t;let e=-1,n=[],r=!1,i=!1,o=0,s=t.length;try{for(;o<s&&!r;){if(t[o++]!="$"||t[o++]!="{")continue;let l=-1,a=-1;for(;o<s&&/\d/.test(t[o]);)l=l<0?o:l,a=o+1,o++;if(l===-1||a===-1||o>=s||t[o]!="}"&&t[o]!=":")continue;let c=t.substring(l,a);if(r=c==="0",r)break;let u=!1;if(t[o++]==":")for(;o<s;){if(t[o]=="}"){u=!0;break}o++}Number(c)>Number(e)?(e=Number(c),n=[{numberStart:l,numberEnd:a}],i=!u):Number(c)===e&&n.push({numberStart:l,numberEnd:a})}}catch{}if(i&&!r)for(let l=0;l<n.length;l++){let a=n[l].numberStart,c=n[l].numberEnd;t=t.substr(0,a)+"0"+t.substr(c)}return t}function YS(t,e){let n=t.offsetAt(e),r=t.getText(),i=0,o=r.length;for(let s=n-1;s>=0;s--)if(r[s]===`
|
|
511
511
|
`){i=s+1;break}for(let s=n;s<r.length;s++)if(r[s]===`
|
|
512
512
|
`){o=s;break}return r.substring(i,o)}function $n(t){return ha.stylesheet.includes(t)}function Jm(t){return $n(t)?"stylesheet":"markup"}function Xm(t){return $n(t)?"css":"html"}function ZS(t){let n={type:Jm(t),syntax:t},r=ua(n);return t==="xml"?{}:r.snippets}function ex(t,e){let n;for(let r=0;r<XM;r++)if(t.endsWith(`${Hm}${Sc}`,e))e-=Sc.length+1,n=n?Sc+","+n:Sc;else if(t.endsWith(`${Hm}${kc}`,e))e-=kc.length+1,n=n?kc+","+n:kc;else if(t.endsWith(`${Hm}${xc}`,e))e-=xc.length+1,n=n?xc+","+n:xc;else break;return{pos:e,filter:n}}function tx(t,e,n){let r=YS(t,e),i=r.substr(0,e.character),{pos:o,filter:s}=ex(i,e.character),l=s?s.length+1:0,a=jm(r,o,n);return a?{abbreviationRange:jt.Range.create(e.line,a.location,e.line,a.location+a.abbreviation.length+l),abbreviation:a.abbreviation,filter:s}:void 0}function eP(t,e){if(!t)return;let{pos:n,filter:r}=ex(t,t.length),i=$n(e)||e==="stylesheet"?{syntax:"stylesheet",lookAhead:!1}:{lookAhead:!0},o=jm(t,n,i);if(!!o)return{abbreviation:o.abbreviation,filter:r}}function nx(t,e){if(!e)return!1;if($n(t)){if(e.includes("#")){if(e.startsWith("#"))return/^#[\d,a-f,A-F]{1,6}$/.test(e);if(pa.includes(e.substring(0,e.indexOf("#"))))return!1}return JM.test(e)}return e.startsWith("!")?!/[^!]/.test(e):(/\(/.test(e)||/\)/.test(e))&&!/\{[^\}\{]*[\(\)]+[^\}\{]*\}(?:[>\+\*\^]|$)/.test(e)&&!/\(.*\)[>\+\*\^]/.test(e)&&!/\[[^\[\]\(\)]+=".*"\]/.test(e)&&!/[>\+\*\^]\(.*\)/.test(e)?!1:t==="jsx"?GM.test(e)&&JS.test(e):KM.test(e)&&JS.test(e)}function tP(t,e,n,r){var i,o;if($n(t)&&r){let l=(i=r["stylesheet.between"])!==null&&i!==void 0?i:": ",a=(o=r["stylesheet.after"])!==null&&o!==void 0?o:";",c=e.indexOf(l[0],Math.max(e.length-l.length,0));c=c>=0?c:e.length;let u=e.substring(0,c);return n===`${u}${l}\${0}${a}`||n.replace(/\s/g,"")===e.replace(/\s/g,"")+a}if(t==="xml"&&pa.some(l=>l.startsWith(e.toLowerCase())))return!0;if(pa.includes(e.toLowerCase())||Vm.includes(e)||/[-,:]/.test(e)&&!/--|::/.test(e)&&!e.endsWith(":")||e===".")return!1;let s=e.match(/^([a-z,A-Z,\d]*)\.$/);return s?!(s[1]&&dm.tags.includes(s[1])):t==="jsx"&&/^([A-Z][A-Za-z0-9]*)+$/.test(e)?!1:n.toLowerCase()===`<${e.toLowerCase()}>\${1}</${e.toLowerCase()}>`}function rx(t,e,n){var r,i,o,s,l,a,c,u,d,h;e=e??{},e.preferences=(r=e.preferences)!==null&&r!==void 0?r:{};let p=e.preferences,w=$n(t)?t:"css",v=oP(t,(i=e.syntaxProfiles)!==null&&i!==void 0?i:{}),_=(v&&v.filters?v.filters.split(","):[]).map(G=>G.trim()),f=n&&n.split(",").some(G=>G.trim()==="bem")||_.includes("bem"),g=n&&n.split(",").some(G=>G.trim()==="c")||_.includes("c"),D=aP(t,e.preferences),L=D?.stylesheet&&D.stylesheet.unitAliases||{},K={"output.formatSkip":["html"],"output.formatForce":["body"],"output.inlineBreak":0,"output.compactBoolean":!1,"output.reverseAttributes":!1,"output.field":Gm,"markup.href":!0,"comment.enabled":!1,"comment.trigger":["id","class"],"comment.before":"","comment.after":`
|
|
513
|
-
<!-- /[#ID][.CLASS] -->`,"bem.enabled":!1,"bem.element":"__","bem.modifier":"_","jsx.enabled":t==="jsx","stylesheet.shortHex":!0,"stylesheet.between":t==="stylus"?" ":": ","stylesheet.after":t==="sass"||t==="stylus"?"":";","stylesheet.intUnit":"px","stylesheet.floatUnit":"em","stylesheet.unitAliases":{e:"em",p:"%",x:"ex",r:"rem"},"stylesheet.fuzzySearchMinScore":.3},C={"output.tagCase":v.tagCase,"output.attributeCase":v.attributeCase,"output.attributeQuotes":v.attributeQuotes,"output.format":(o=v.format)!==null&&o!==void 0?o:!0,"output.formatSkip":p["format.noIndentTags"],"output.formatForce":p["format.forceIndentationForTags"],"output.inlineBreak":(s=v.inlineBreak)!==null&&s!==void 0?s:p["output.inlineBreak"],"output.compactBoolean":(l=v.compactBooleanAttributes)!==null&&l!==void 0?l:p["profile.allowCompactBoolean"],"output.reverseAttributes":p["output.reverseAttributes"],"output.selfClosingStyle":(c=(a=v.selfClosingStyle)!==null&&a!==void 0?a:p["output.selfClosingStyle"])!==null&&c!==void 0?c:nP(t),"output.field":Gm,"comment.enabled":g,"comment.trigger":p["filter.commentTrigger"],"comment.before":p["filter.commentBefore"],"comment.after":p["filter.commentAfter"],"bem.enabled":f,"bem.element":(u=p["bem.elementSeparator"])!==null&&u!==void 0?u:"__","bem.modifier":(d=p["bem.modifierSeparator"])!==null&&d!==void 0?d:"_","jsx.enabled":t==="jsx","stylesheet.shortHex":p["css.color.short"],"stylesheet.between":p[`${w}.valueSeparator`],"stylesheet.after":p[`${w}.propertyEnd`],"stylesheet.intUnit":p["css.intUnit"],"stylesheet.floatUnit":p["css.floatUnit"],"stylesheet.unitAliases":L,"stylesheet.fuzzySearchMinScore":p["css.fuzzySearchMinScore"]},T={};[...Object.keys(K),...Object.keys(C)].forEach(G=>{var U;let P=G;T[P]=(U=C[P])!==null&&U!==void 0?U:K[P]});let M=Object.assign(Object.assign({},K["stylesheet.unitAliases"]),C["stylesheet.unitAliases"]);T["stylesheet.unitAliases"]=M;let oe=Jm(t),N=sP(e.variables),W=Xm(t),V=oe==="stylesheet"?(h=Xi[t])!==null&&h!==void 0?h:Xi[W]:Xi[t];return{type:oe,options:T,variables:N,snippets:V,syntax:t,text:void 0,maxRepeat:1e3}}function nP(t){switch(t){case"xhtml":return"xhtml";case"xml":return"xml";case"xsl":return"xml";case"jsx":return"xhtml";default:return"html"}}function rP(t,e){let n=ua(e);return e.type==="stylesheet"?qm(t,n):Lm(t,n)}function iP(t,e){let n,r=ua(e);return e.type==="stylesheet"?typeof t=="string"?n=da(t,r):n=Wm(t,r):typeof t=="string"?n=da(t,r):n=Nm(t,r),Tc(Ec(n))}function oP(t,e){e||(e={});let r=Object.assign({},Dc,e)[t];if(!r||typeof r=="string")return r==="xhtml"?{selfClosingStyle:"xhtml"}:{};let i={};for(let o in r)switch(o){case"tag_case":i.tagCase=r[o]==="lower"||r[o]==="upper"?r[o]:"";break;case"attr_case":i.attributeCase=r[o]==="lower"||r[o]==="upper"?r[o]:"";break;case"attr_quotes":i.attributeQuotes=r[o];break;case"tag_nl":i.format=r[o]===!0||r[o]===!1?r[o]:!0;break;case"inline_break":i.inlineBreak=r[o];break;case"self_closing_tag":if(r[o]===!0){i.selfClosingStyle="xml";break}if(r[o]===!1){i.selfClosingStyle="html";break}i.selfClosingStyle=r[o];break;case"compact_bool":i.compactBooleanAttributes=r[o];break;default:i[o]=r[o];break}return i}function sP(t){return t?Object.assign({},ma,t):ma}function aP(t,e){if(!e||typeof e!="object")return{};if(!$n(t)){let i={};for(let o in e)switch(o){case"filter.commentAfter":i.after=e[o];break;case"filter.commentBefore":i.before=e[o];break;case"filter.commentTrigger":i.trigger=e[o];break;default:break}return{comment:i}}let n=typeof e?.["css.fuzzySearchMinScore"]=="number"?e["css.fuzzySearchMinScore"]:.3;n>1?n=1:n<0&&(n=0);let r={fuzzySearchMinScore:n};for(let i in e)switch(i){case"css.floatUnit":r.floatUnit=e[i];break;case"css.intUnit":r.intUnit=e[i];break;case"css.unitAliases":let o={};e[i].split(",").forEach(s=>{if(!s||!s.trim()||!s.includes(":"))return;let l=s.substr(0,s.indexOf(":")),a=s.substr(l.length+1);!l.trim()||!a||(o[l.trim()]=a)}),r.unitAliases=o;break;case`${t}.valueSeparator`:r.between=e[i];break;case`${t}.propertyEnd`:r.after=e[i];break;default:break}return{stylesheet:r}}function lP(t,e,n,r){return VM(this,void 0,void 0,function*(){if($m(),!t.length)return;let i=[];for(let o of t)if(o&&(o=o.trim()),o.length&&o[0]==="~")r&&i.push(ra(r,o.substr(1)));else if(f_(o))i.push(pm.file(o));else if(n)for(let s of n)i.push(ra(s,o));for(let o of i){try{if((yield e.stat(o)).type!==na.Directory)continue}catch{continue}let s=ra(o,"snippets.json"),l=ra(o,"syntaxProfiles.json"),a;typeof globalThis.TextDecoder=="function"?a=new globalThis.TextDecoder:a=new b_;let c="";try{let d=yield e.readFile(s);c=a.decode(d)}catch{}if(c.length)try{let d=XS(s,c);d.variables&&cP(d.variables),dP(d)}catch(d){throw $m(),d}let u="";try{let d=yield e.readFile(l);u=a.decode(d)}catch{}if(u.length)try{let d=XS(l,u);uP(d)}catch(d){throw $m(),d}}})}function XS(t,e){let n=[],r=n_(e,n);if(n.length)throw new Error(`Found error ${r_(n[0].error)} while parsing the file ${t} at offset ${n[0].offset}`);return r}function cP(t){if(typeof t=="object"&&t)ma=Object.assign({},ma,t);else throw new Error(Fc("emmetInvalidVariables","Invalid emmet.variables field. See https://code.visualstudio.com/docs/editor/emmet#_emmet-configuration for a valid example."))}function uP(t){if(typeof t=="object"&&t)Dc=Object.assign({},Dc,t);else throw new Error(Fc("emmetInvalidProfiles","Invalid syntax profile. See https://code.visualstudio.com/docs/editor/emmet#_emmet-configuration for a valid example."))}function dP(t){if(typeof t=="object"&&t)Object.keys(t).forEach(e=>{if(!t[e].snippets)return;let n=Xm(e),r=t[e].snippets;if(t[n]&&t[n].snippets&&n!==e&&(r=Object.assign({},t[n].snippets,t[e].snippets)),$n(e)){let a=Ho.get(e),c=Object.assign([],a,Object.keys(r));Ho.set(e,c)}else for(let a in r)r.hasOwnProperty(a)&&r[a].startsWith("<")&&r[a].endsWith(">")&&(r[a]=`{${r[a]}}`);let i=Xi[e],o=KS(r),s=Object.assign({},i,o),l=Object.keys(s);Xi[e]=s});else throw new Error(Fc("emmetInvalidSnippets","Invalid snippets file. See https://code.visualstudio.com/docs/editor/emmet#_using-custom-emmet-snippets for a valid example."))}function $m(){Xi={},Cc.clear(),Ho.clear(),Dc={},ma={}}function ix(t,e=[]){if(!(!t||e.includes(t))){if(/\b(typescriptreact|javascriptreact|jsx-tags)\b/.test(t))return"jsx";if(t==="sass-indented")return"sass";if(t==="jade")return"pug";if(ha.markup.includes(t)||ha.stylesheet.includes(t))return t}}var jt,QS,VM,Fc,Cc,Vm,Ho,KM,GM,JM,JS,pa,Sc,Hm,xc,kc,XM,Xi,ma,Dc,Gm,Ym=ue(()=>{jt=
|
|
513
|
+
<!-- /[#ID][.CLASS] -->`,"bem.enabled":!1,"bem.element":"__","bem.modifier":"_","jsx.enabled":t==="jsx","stylesheet.shortHex":!0,"stylesheet.between":t==="stylus"?" ":": ","stylesheet.after":t==="sass"||t==="stylus"?"":";","stylesheet.intUnit":"px","stylesheet.floatUnit":"em","stylesheet.unitAliases":{e:"em",p:"%",x:"ex",r:"rem"},"stylesheet.fuzzySearchMinScore":.3},C={"output.tagCase":v.tagCase,"output.attributeCase":v.attributeCase,"output.attributeQuotes":v.attributeQuotes,"output.format":(o=v.format)!==null&&o!==void 0?o:!0,"output.formatSkip":p["format.noIndentTags"],"output.formatForce":p["format.forceIndentationForTags"],"output.inlineBreak":(s=v.inlineBreak)!==null&&s!==void 0?s:p["output.inlineBreak"],"output.compactBoolean":(l=v.compactBooleanAttributes)!==null&&l!==void 0?l:p["profile.allowCompactBoolean"],"output.reverseAttributes":p["output.reverseAttributes"],"output.selfClosingStyle":(c=(a=v.selfClosingStyle)!==null&&a!==void 0?a:p["output.selfClosingStyle"])!==null&&c!==void 0?c:nP(t),"output.field":Gm,"comment.enabled":g,"comment.trigger":p["filter.commentTrigger"],"comment.before":p["filter.commentBefore"],"comment.after":p["filter.commentAfter"],"bem.enabled":f,"bem.element":(u=p["bem.elementSeparator"])!==null&&u!==void 0?u:"__","bem.modifier":(d=p["bem.modifierSeparator"])!==null&&d!==void 0?d:"_","jsx.enabled":t==="jsx","stylesheet.shortHex":p["css.color.short"],"stylesheet.between":p[`${w}.valueSeparator`],"stylesheet.after":p[`${w}.propertyEnd`],"stylesheet.intUnit":p["css.intUnit"],"stylesheet.floatUnit":p["css.floatUnit"],"stylesheet.unitAliases":L,"stylesheet.fuzzySearchMinScore":p["css.fuzzySearchMinScore"]},T={};[...Object.keys(K),...Object.keys(C)].forEach(G=>{var U;let P=G;T[P]=(U=C[P])!==null&&U!==void 0?U:K[P]});let M=Object.assign(Object.assign({},K["stylesheet.unitAliases"]),C["stylesheet.unitAliases"]);T["stylesheet.unitAliases"]=M;let oe=Jm(t),N=sP(e.variables),W=Xm(t),V=oe==="stylesheet"?(h=Xi[t])!==null&&h!==void 0?h:Xi[W]:Xi[t];return{type:oe,options:T,variables:N,snippets:V,syntax:t,text:void 0,maxRepeat:1e3}}function nP(t){switch(t){case"xhtml":return"xhtml";case"xml":return"xml";case"xsl":return"xml";case"jsx":return"xhtml";default:return"html"}}function rP(t,e){let n=ua(e);return e.type==="stylesheet"?qm(t,n):Lm(t,n)}function iP(t,e){let n,r=ua(e);return e.type==="stylesheet"?typeof t=="string"?n=da(t,r):n=Wm(t,r):typeof t=="string"?n=da(t,r):n=Nm(t,r),Tc(Ec(n))}function oP(t,e){e||(e={});let r=Object.assign({},Dc,e)[t];if(!r||typeof r=="string")return r==="xhtml"?{selfClosingStyle:"xhtml"}:{};let i={};for(let o in r)switch(o){case"tag_case":i.tagCase=r[o]==="lower"||r[o]==="upper"?r[o]:"";break;case"attr_case":i.attributeCase=r[o]==="lower"||r[o]==="upper"?r[o]:"";break;case"attr_quotes":i.attributeQuotes=r[o];break;case"tag_nl":i.format=r[o]===!0||r[o]===!1?r[o]:!0;break;case"inline_break":i.inlineBreak=r[o];break;case"self_closing_tag":if(r[o]===!0){i.selfClosingStyle="xml";break}if(r[o]===!1){i.selfClosingStyle="html";break}i.selfClosingStyle=r[o];break;case"compact_bool":i.compactBooleanAttributes=r[o];break;default:i[o]=r[o];break}return i}function sP(t){return t?Object.assign({},ma,t):ma}function aP(t,e){if(!e||typeof e!="object")return{};if(!$n(t)){let i={};for(let o in e)switch(o){case"filter.commentAfter":i.after=e[o];break;case"filter.commentBefore":i.before=e[o];break;case"filter.commentTrigger":i.trigger=e[o];break;default:break}return{comment:i}}let n=typeof e?.["css.fuzzySearchMinScore"]=="number"?e["css.fuzzySearchMinScore"]:.3;n>1?n=1:n<0&&(n=0);let r={fuzzySearchMinScore:n};for(let i in e)switch(i){case"css.floatUnit":r.floatUnit=e[i];break;case"css.intUnit":r.intUnit=e[i];break;case"css.unitAliases":let o={};e[i].split(",").forEach(s=>{if(!s||!s.trim()||!s.includes(":"))return;let l=s.substr(0,s.indexOf(":")),a=s.substr(l.length+1);!l.trim()||!a||(o[l.trim()]=a)}),r.unitAliases=o;break;case`${t}.valueSeparator`:r.between=e[i];break;case`${t}.propertyEnd`:r.after=e[i];break;default:break}return{stylesheet:r}}function lP(t,e,n,r){return VM(this,void 0,void 0,function*(){if($m(),!t.length)return;let i=[];for(let o of t)if(o&&(o=o.trim()),o.length&&o[0]==="~")r&&i.push(ra(r,o.substr(1)));else if(f_(o))i.push(pm.file(o));else if(n)for(let s of n)i.push(ra(s,o));for(let o of i){try{if((yield e.stat(o)).type!==na.Directory)continue}catch{continue}let s=ra(o,"snippets.json"),l=ra(o,"syntaxProfiles.json"),a;typeof globalThis.TextDecoder=="function"?a=new globalThis.TextDecoder:a=new b_;let c="";try{let d=yield e.readFile(s);c=a.decode(d)}catch{}if(c.length)try{let d=XS(s,c);d.variables&&cP(d.variables),dP(d)}catch(d){throw $m(),d}let u="";try{let d=yield e.readFile(l);u=a.decode(d)}catch{}if(u.length)try{let d=XS(l,u);uP(d)}catch(d){throw $m(),d}}})}function XS(t,e){let n=[],r=n_(e,n);if(n.length)throw new Error(`Found error ${r_(n[0].error)} while parsing the file ${t} at offset ${n[0].offset}`);return r}function cP(t){if(typeof t=="object"&&t)ma=Object.assign({},ma,t);else throw new Error(Fc("emmetInvalidVariables","Invalid emmet.variables field. See https://code.visualstudio.com/docs/editor/emmet#_emmet-configuration for a valid example."))}function uP(t){if(typeof t=="object"&&t)Dc=Object.assign({},Dc,t);else throw new Error(Fc("emmetInvalidProfiles","Invalid syntax profile. See https://code.visualstudio.com/docs/editor/emmet#_emmet-configuration for a valid example."))}function dP(t){if(typeof t=="object"&&t)Object.keys(t).forEach(e=>{if(!t[e].snippets)return;let n=Xm(e),r=t[e].snippets;if(t[n]&&t[n].snippets&&n!==e&&(r=Object.assign({},t[n].snippets,t[e].snippets)),$n(e)){let a=Ho.get(e),c=Object.assign([],a,Object.keys(r));Ho.set(e,c)}else for(let a in r)r.hasOwnProperty(a)&&r[a].startsWith("<")&&r[a].endsWith(">")&&(r[a]=`{${r[a]}}`);let i=Xi[e],o=KS(r),s=Object.assign({},i,o),l=Object.keys(s);Xi[e]=s});else throw new Error(Fc("emmetInvalidSnippets","Invalid snippets file. See https://code.visualstudio.com/docs/editor/emmet#_using-custom-emmet-snippets for a valid example."))}function $m(){Xi={},Cc.clear(),Ho.clear(),Dc={},ma={}}function ix(t,e=[]){if(!(!t||e.includes(t))){if(/\b(typescriptreact|javascriptreact|jsx-tags)\b/.test(t))return"jsx";if(t==="sass-indented")return"sass";if(t==="jade")return"pug";if(ha.markup.includes(t)||ha.stylesheet.includes(t))return t}}var jt,QS,VM,Fc,Cc,Vm,Ho,KM,GM,JM,JS,pa,Sc,Hm,xc,kc,XM,Xi,ma,Dc,Gm,Ym=ue(()=>{jt=ti(Xt());i_();s_();m_();g_();v_();VS();GS();QS=ti($s()),VM=function(t,e,n,r){function i(o){return o instanceof n?o:new n(function(s){s(o)})}return new(n||(n=Promise))(function(o,s){function l(u){try{c(r.next(u))}catch(d){s(d)}}function a(u){try{c(r.throw(u))}catch(d){s(d)}}function c(u){u.done?o(u.value):i(u.value).then(l,a)}c((r=r.apply(t,e||[])).next())})},Fc=QS.loadMessageBundle(),Cc=new Map,Ho=new Map,KM=/^[a-z,A-Z,!,(,[,#,\.\{]/,GM=/^[a-z,A-Z,!,(,[,#,\.]/,JM=/^-?[a-z,A-Z,!,@,#]/,JS=/[a-z,A-Z\.]/,pa=[...dm.tags,"lorem"],Sc="bem",Hm="|",xc="t",kc="c",XM=3;Xi={},ma={},Dc={},Gm=(t,e)=>`\${${t}${e?":"+e:""}}`});var m,Ic,Ac,ox,sx,oq,Rc,ax,lx,fa,ga,hP,pP,ba,mP,Qi,cx,fP,Zm,fx,gx,gP,bP,vP,wP,yP,ef,ux,Bo,$o,va,dx,hx,tf,nf,_P,SP,xP,kP,CP,TP,EP,px,mx,DP,FP,hr,Dt,_n,fi=ue(()=>{"use strict";(function(t){t[t.Ident=0]="Ident",t[t.AtKeyword=1]="AtKeyword",t[t.String=2]="String",t[t.BadString=3]="BadString",t[t.UnquotedString=4]="UnquotedString",t[t.Hash=5]="Hash",t[t.Num=6]="Num",t[t.Percentage=7]="Percentage",t[t.Dimension=8]="Dimension",t[t.UnicodeRange=9]="UnicodeRange",t[t.CDO=10]="CDO",t[t.CDC=11]="CDC",t[t.Colon=12]="Colon",t[t.SemiColon=13]="SemiColon",t[t.CurlyL=14]="CurlyL",t[t.CurlyR=15]="CurlyR",t[t.ParenthesisL=16]="ParenthesisL",t[t.ParenthesisR=17]="ParenthesisR",t[t.BracketL=18]="BracketL",t[t.BracketR=19]="BracketR",t[t.Whitespace=20]="Whitespace",t[t.Includes=21]="Includes",t[t.Dashmatch=22]="Dashmatch",t[t.SubstringOperator=23]="SubstringOperator",t[t.PrefixOperator=24]="PrefixOperator",t[t.SuffixOperator=25]="SuffixOperator",t[t.Delim=26]="Delim",t[t.EMS=27]="EMS",t[t.EXS=28]="EXS",t[t.Length=29]="Length",t[t.Angle=30]="Angle",t[t.Time=31]="Time",t[t.Freq=32]="Freq",t[t.Exclamation=33]="Exclamation",t[t.Resolution=34]="Resolution",t[t.Comma=35]="Comma",t[t.Charset=36]="Charset",t[t.EscapedJavaScript=37]="EscapedJavaScript",t[t.BadEscapedJavaScript=38]="BadEscapedJavaScript",t[t.Comment=39]="Comment",t[t.SingleLineComment=40]="SingleLineComment",t[t.EOF=41]="EOF",t[t.CustomToken=42]="CustomToken"})(m||(m={}));Ic=class{constructor(e){this.source=e,this.len=e.length,this.position=0}substring(e,n=this.position){return this.source.substring(e,n)}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 n=0;for(;n<e.length;n++)if(this.source.charCodeAt(this.position+n)!==e[n])return!1;return this.advance(n),!0}advanceWhileChar(e){let n=this.position;for(;this.position<this.len&&e(this.source.charCodeAt(this.position));)this.position++;return this.position-n}},Ac="a".charCodeAt(0),ox="f".charCodeAt(0),sx="z".charCodeAt(0),oq="u".charCodeAt(0),Rc="A".charCodeAt(0),ax="F".charCodeAt(0),lx="Z".charCodeAt(0),fa="0".charCodeAt(0),ga="9".charCodeAt(0),hP="~".charCodeAt(0),pP="^".charCodeAt(0),ba="=".charCodeAt(0),mP="|".charCodeAt(0),Qi="-".charCodeAt(0),cx="_".charCodeAt(0),fP="%".charCodeAt(0),Zm="*".charCodeAt(0),fx="(".charCodeAt(0),gx=")".charCodeAt(0),gP="<".charCodeAt(0),bP=">".charCodeAt(0),vP="@".charCodeAt(0),wP="#".charCodeAt(0),yP="$".charCodeAt(0),ef="\\".charCodeAt(0),ux="/".charCodeAt(0),Bo=`
|
|
514
514
|
`.charCodeAt(0),$o="\r".charCodeAt(0),va="\f".charCodeAt(0),dx='"'.charCodeAt(0),hx="'".charCodeAt(0),tf=" ".charCodeAt(0),nf=" ".charCodeAt(0),_P=";".charCodeAt(0),SP=":".charCodeAt(0),xP="{".charCodeAt(0),kP="}".charCodeAt(0),CP="[".charCodeAt(0),TP="]".charCodeAt(0),EP=",".charCodeAt(0),px=".".charCodeAt(0),mx="!".charCodeAt(0),DP="?".charCodeAt(0),FP="+".charCodeAt(0),hr={};hr[_P]=m.SemiColon;hr[SP]=m.Colon;hr[xP]=m.CurlyL;hr[kP]=m.CurlyR;hr[TP]=m.BracketR;hr[CP]=m.BracketL;hr[fx]=m.ParenthesisL;hr[gx]=m.ParenthesisR;hr[EP]=m.Comma;Dt={};Dt.em=m.EMS;Dt.ex=m.EXS;Dt.px=m.Length;Dt.cm=m.Length;Dt.mm=m.Length;Dt.in=m.Length;Dt.pt=m.Length;Dt.pc=m.Length;Dt.deg=m.Angle;Dt.rad=m.Angle;Dt.grad=m.Angle;Dt.ms=m.Time;Dt.s=m.Time;Dt.hz=m.Freq;Dt.khz=m.Freq;Dt["%"]=m.Percentage;Dt.fr=m.Percentage;Dt.dpi=m.Resolution;Dt.dpcm=m.Resolution;_n=class{constructor(){this.stream=new Ic(""),this.ignoreComment=!0,this.ignoreWhitespace=!0,this.inURL=!1}setSource(e){this.stream=new Ic(e)}finishToken(e,n,r){return{offset:e,len:this.stream.pos()-e,type:n,text:r||this.stream.substring(e)}}substring(e,n){return this.stream.substring(e,e+n)}pos(){return this.stream.pos()}goBackTo(e){this.stream.goBackTo(e)}scanUnquotedString(){let e=this.stream.pos(),n=[];return this._unquotedString(n)?this.finishToken(e,m.UnquotedString,n.join("")):null}scan(){let e=this.trivia();if(e!==null)return e;let n=this.stream.pos();return this.stream.eos()?this.finishToken(n,m.EOF):this.scanNext(n)}tryScanUnicode(){let e=this.stream.pos();if(!this.stream.eos()&&this._unicodeRange())return this.finishToken(e,m.UnicodeRange);this.stream.goBackTo(e)}scanNext(e){if(this.stream.advanceIfChars([gP,mx,Qi,Qi]))return this.finishToken(e,m.CDO);if(this.stream.advanceIfChars([Qi,Qi,bP]))return this.finishToken(e,m.CDC);let n=[];if(this.ident(n))return this.finishToken(e,m.Ident,n.join(""));if(this.stream.advanceIfChar(vP))if(n=["@"],this._name(n)){let i=n.join("");return i==="@charset"?this.finishToken(e,m.Charset,i):this.finishToken(e,m.AtKeyword,i)}else return this.finishToken(e,m.Delim);if(this.stream.advanceIfChar(wP))return n=["#"],this._name(n)?this.finishToken(e,m.Hash,n.join("")):this.finishToken(e,m.Delim);if(this.stream.advanceIfChar(mx))return this.finishToken(e,m.Exclamation);if(this._number()){let i=this.stream.pos();if(n=[this.stream.substring(e,i)],this.stream.advanceIfChar(fP))return this.finishToken(e,m.Percentage);if(this.ident(n)){let o=this.stream.substring(i).toLowerCase(),s=Dt[o];return typeof s<"u"?this.finishToken(e,s,n.join("")):this.finishToken(e,m.Dimension,n.join(""))}return this.finishToken(e,m.Num)}n=[];let r=this._string(n);return r!==null?this.finishToken(e,r,n.join("")):(r=hr[this.stream.peekChar()],typeof r<"u"?(this.stream.advance(1),this.finishToken(e,r)):this.stream.peekChar(0)===hP&&this.stream.peekChar(1)===ba?(this.stream.advance(2),this.finishToken(e,m.Includes)):this.stream.peekChar(0)===mP&&this.stream.peekChar(1)===ba?(this.stream.advance(2),this.finishToken(e,m.Dashmatch)):this.stream.peekChar(0)===Zm&&this.stream.peekChar(1)===ba?(this.stream.advance(2),this.finishToken(e,m.SubstringOperator)):this.stream.peekChar(0)===pP&&this.stream.peekChar(1)===ba?(this.stream.advance(2),this.finishToken(e,m.PrefixOperator)):this.stream.peekChar(0)===yP&&this.stream.peekChar(1)===ba?(this.stream.advance(2),this.finishToken(e,m.SuffixOperator)):(this.stream.nextChar(),this.finishToken(e,m.Delim)))}trivia(){for(;;){let e=this.stream.pos();if(this._whitespace()){if(!this.ignoreWhitespace)return this.finishToken(e,m.Whitespace)}else if(this.comment()){if(!this.ignoreComment)return this.finishToken(e,m.Comment)}else return null}}comment(){if(this.stream.advanceIfChars([ux,Zm])){let e=!1,n=!1;return this.stream.advanceWhileChar(r=>n&&r===ux?(e=!0,!1):(n=r===Zm,!0)),e&&this.stream.advance(1),!0}return!1}_number(){let e=0,n;return this.stream.peekChar()===px&&(e=1),n=this.stream.peekChar(e),n>=fa&&n<=ga?(this.stream.advance(e+1),this.stream.advanceWhileChar(r=>r>=fa&&r<=ga||e===0&&r===px),!0):!1}_newline(e){let n=this.stream.peekChar();switch(n){case $o:case va:case Bo:return this.stream.advance(1),e.push(String.fromCharCode(n)),n===$o&&this.stream.advanceIfChar(Bo)&&e.push(`
|
|
515
|
-
`),!0}return!1}_escape(e,n){let r=this.stream.peekChar();if(r===ef){this.stream.advance(1),r=this.stream.peekChar();let i=0;for(;i<6&&(r>=fa&&r<=ga||r>=Ac&&r<=ox||r>=Rc&&r<=ax);)this.stream.advance(1),r=this.stream.peekChar(),i++;if(i>0){try{let o=parseInt(this.stream.substring(this.stream.pos()-i),16);o&&e.push(String.fromCharCode(o))}catch{}return r===tf||r===nf?this.stream.advance(1):this._newline([]),!0}if(r!==$o&&r!==va&&r!==Bo)return this.stream.advance(1),e.push(String.fromCharCode(r)),!0;if(n)return this._newline(e)}return!1}_stringChar(e,n){let r=this.stream.peekChar();return r!==0&&r!==e&&r!==ef&&r!==$o&&r!==va&&r!==Bo?(this.stream.advance(1),n.push(String.fromCharCode(r)),!0):!1}_string(e){if(this.stream.peekChar()===hx||this.stream.peekChar()===dx){let n=this.stream.nextChar();for(e.push(String.fromCharCode(n));this._stringChar(n,e)||this._escape(e,!0););return this.stream.peekChar()===n?(this.stream.nextChar(),e.push(String.fromCharCode(n)),m.String):m.BadString}return null}_unquotedChar(e){let n=this.stream.peekChar();return n!==0&&n!==ef&&n!==hx&&n!==dx&&n!==fx&&n!==gx&&n!==tf&&n!==nf&&n!==Bo&&n!==va&&n!==$o?(this.stream.advance(1),e.push(String.fromCharCode(n)),!0):!1}_unquotedString(e){let n=!1;for(;this._unquotedChar(e)||this._escape(e);)n=!0;return n}_whitespace(){return this.stream.advanceWhileChar(n=>n===tf||n===nf||n===Bo||n===va||n===$o)>0}_name(e){let n=!1;for(;this._identChar(e)||this._escape(e);)n=!0;return n}ident(e){let n=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(n),!1}_identFirstChar(e){let n=this.stream.peekChar();return n===cx||n>=Ac&&n<=sx||n>=Rc&&n<=lx||n>=128&&n<=65535?(this.stream.advance(1),e.push(String.fromCharCode(n)),!0):!1}_minus(e){let n=this.stream.peekChar();return n===Qi?(this.stream.advance(1),e.push(String.fromCharCode(n)),!0):!1}_identChar(e){let n=this.stream.peekChar();return n===cx||n===Qi||n>=Ac&&n<=sx||n>=Rc&&n<=lx||n>=fa&&n<=ga||n>=128&&n<=65535?(this.stream.advance(1),e.push(String.fromCharCode(n)),!0):!1}_unicodeRange(){if(this.stream.advanceIfChar(FP)){let e=r=>r>=fa&&r<=ga||r>=Ac&&r<=ox||r>=Rc&&r<=ax,n=this.stream.advanceWhileChar(e)+this.stream.advanceWhileChar(r=>r===DP);if(n>=1&&n<=6)if(this.stream.advanceIfChar(Qi)){let r=this.stream.advanceWhileChar(e);if(r>=1&&r<=6)return!0}else return!0}return!1}}});function ot(t,e){if(t.length<e.length)return!1;for(let n=0;n<e.length;n++)if(t[n]!==e[n])return!1;return!0}function Mc(t,e){let n=t.length-e.length;return n>0?t.lastIndexOf(e)===n:n===0?t===e:!1}function bx(t,e,n=4){let r=Math.abs(t.length-e.length);if(r>n)return 0;let i=[],o=[],s,l;for(s=0;s<e.length+1;++s)o.push(0);for(s=0;s<t.length+1;++s)i.push(o);for(s=1;s<t.length+1;++s)for(l=1;l<e.length+1;++l)t[s-1]===e[l-1]?i[s][l]=i[s-1][l-1]+1:i[s][l]=Math.max(i[s-1][l],i[s][l-1]);return i[t.length][e.length]-Math.sqrt(r)}function rf(t,e=!0){return t?t.length<140?t:t.slice(0,140)+(e?"\u2026":""):""}function vx(t,e){let n=e.exec(t);return n&&n[0].length?t.substr(0,t.length-n[0].length):t}function of(t,e){let n="";for(;e>0;)(e&1)===1&&(n+=t),t+=t,e=e>>>1;return n}var qr=ue(()=>{"use strict"});function uu(t,e){let n=null;return!t||e<t.offset||e>t.end?null:(t.accept(r=>r.offset===-1&&r.length===-1?!0:r.offset<=e&&r.end>=e?(n?r.length<=n.length&&(n=r):n=r,!0):!1),n)}function ns(t,e){let n=uu(t,e),r=[];for(;n;)r.unshift(n),n=n.parent;return r}function wx(t){let e=t.findParent(A.Declaration),n=e&&e.getValue();return n&&n.encloses(t)?e:null}var A,De,fe,It,Pc,Ft,zc,Yi,Ve,un,Sn,xn,Vo,Oc,At,Lc,fi,sf,Vn,pr,dn,Nc,Wc,qc,Uc,jc,Ur,Hc,Ko,wa,Go,ya,gi,Bc,$c,Vc,Kc,Gc,Jo,Zi,Jc,Xc,Qc,Xo,Qo,Yc,Zc,jr,eu,tu,Yo,bi,nu,ru,eo,iu,IP,MP,PP,to,mr,no,vi,fr,ou,su,Hr,Kn,Zo,au,lu,cu,_a,Ht,es,ts,Bt=ue(()=>{"use strict";qr();(function(t){t[t.Undefined=0]="Undefined",t[t.Identifier=1]="Identifier",t[t.Stylesheet=2]="Stylesheet",t[t.Ruleset=3]="Ruleset",t[t.Selector=4]="Selector",t[t.SimpleSelector=5]="SimpleSelector",t[t.SelectorInterpolation=6]="SelectorInterpolation",t[t.SelectorCombinator=7]="SelectorCombinator",t[t.SelectorCombinatorParent=8]="SelectorCombinatorParent",t[t.SelectorCombinatorSibling=9]="SelectorCombinatorSibling",t[t.SelectorCombinatorAllSiblings=10]="SelectorCombinatorAllSiblings",t[t.SelectorCombinatorShadowPiercingDescendant=11]="SelectorCombinatorShadowPiercingDescendant",t[t.Page=12]="Page",t[t.PageBoxMarginBox=13]="PageBoxMarginBox",t[t.ClassSelector=14]="ClassSelector",t[t.IdentifierSelector=15]="IdentifierSelector",t[t.ElementNameSelector=16]="ElementNameSelector",t[t.PseudoSelector=17]="PseudoSelector",t[t.AttributeSelector=18]="AttributeSelector",t[t.Declaration=19]="Declaration",t[t.Declarations=20]="Declarations",t[t.Property=21]="Property",t[t.Expression=22]="Expression",t[t.BinaryExpression=23]="BinaryExpression",t[t.Term=24]="Term",t[t.Operator=25]="Operator",t[t.Value=26]="Value",t[t.StringLiteral=27]="StringLiteral",t[t.URILiteral=28]="URILiteral",t[t.EscapedValue=29]="EscapedValue",t[t.Function=30]="Function",t[t.NumericValue=31]="NumericValue",t[t.HexColorValue=32]="HexColorValue",t[t.RatioValue=33]="RatioValue",t[t.MixinDeclaration=34]="MixinDeclaration",t[t.MixinReference=35]="MixinReference",t[t.VariableName=36]="VariableName",t[t.VariableDeclaration=37]="VariableDeclaration",t[t.Prio=38]="Prio",t[t.Interpolation=39]="Interpolation",t[t.NestedProperties=40]="NestedProperties",t[t.ExtendsReference=41]="ExtendsReference",t[t.SelectorPlaceholder=42]="SelectorPlaceholder",t[t.Debug=43]="Debug",t[t.If=44]="If",t[t.Else=45]="Else",t[t.For=46]="For",t[t.Each=47]="Each",t[t.While=48]="While",t[t.MixinContentReference=49]="MixinContentReference",t[t.MixinContentDeclaration=50]="MixinContentDeclaration",t[t.Media=51]="Media",t[t.Keyframe=52]="Keyframe",t[t.FontFace=53]="FontFace",t[t.Import=54]="Import",t[t.Namespace=55]="Namespace",t[t.Invocation=56]="Invocation",t[t.FunctionDeclaration=57]="FunctionDeclaration",t[t.ReturnStatement=58]="ReturnStatement",t[t.MediaQuery=59]="MediaQuery",t[t.MediaCondition=60]="MediaCondition",t[t.MediaFeature=61]="MediaFeature",t[t.FunctionParameter=62]="FunctionParameter",t[t.FunctionArgument=63]="FunctionArgument",t[t.KeyframeSelector=64]="KeyframeSelector",t[t.ViewPort=65]="ViewPort",t[t.Document=66]="Document",t[t.AtApplyRule=67]="AtApplyRule",t[t.CustomPropertyDeclaration=68]="CustomPropertyDeclaration",t[t.CustomPropertySet=69]="CustomPropertySet",t[t.ListEntry=70]="ListEntry",t[t.Supports=71]="Supports",t[t.SupportsCondition=72]="SupportsCondition",t[t.NamespacePrefix=73]="NamespacePrefix",t[t.GridLine=74]="GridLine",t[t.Plugin=75]="Plugin",t[t.UnknownAtRule=76]="UnknownAtRule",t[t.Use=77]="Use",t[t.ModuleConfiguration=78]="ModuleConfiguration",t[t.Forward=79]="Forward",t[t.ForwardVisibility=80]="ForwardVisibility",t[t.Module=81]="Module",t[t.UnicodeRange=82]="UnicodeRange",t[t.Layer=83]="Layer",t[t.LayerNameList=84]="LayerNameList",t[t.LayerName=85]="LayerName",t[t.PropertyAtRule=86]="PropertyAtRule"})(A||(A={}));(function(t){t[t.Mixin=0]="Mixin",t[t.Rule=1]="Rule",t[t.Variable=2]="Variable",t[t.Function=3]="Function",t[t.Keyframe=4]="Keyframe",t[t.Unknown=5]="Unknown",t[t.Module=6]="Module",t[t.Forward=7]="Forward",t[t.ForwardVisibility=8]="ForwardVisibility",t[t.Property=9]="Property"})(De||(De={}));fe=class{get end(){return this.offset+this.length}constructor(e=-1,n=-1,r){this.parent=null,this.offset=e,this.length=n,r&&(this.nodeType=r)}set type(e){this.nodeType=e}get type(){return this.nodeType||A.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(let n of this.children)n.accept(e)}acceptVisitor(e){this.accept(e.visitNode.bind(e))}adoptChild(e,n=-1){if(e.parent&&e.parent.children){let i=e.parent.children.indexOf(e);i>=0&&e.parent.children.splice(i,1)}e.parent=this;let r=this.children;return r||(r=this.children=[]),n!==-1?r.splice(n,0,e):r.push(e),e}attachTo(e,n=-1){return e&&e.adoptChild(this,n),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(n=>n.getRule()===e)}isErroneous(e=!1){return this.issues&&this.issues.length>0?!0:e&&Array.isArray(this.children)&&this.children.some(n=>n.isErroneous(!0))}setNode(e,n,r=-1){return n?(n.attachTo(this,r),this[e]=n,!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);let n=e.end;(n>this.end||this.length===-1)&&(this.length=n-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(let n of e)this.addChild(n)}findFirstChildBeforeOffset(e){if(this.children){let n=null;for(let r=this.children.length-1;r>=0;r--)if(n=this.children[r],n.offset<=e)return n}return null}findChildAtOffset(e,n){let r=this.findFirstChildBeforeOffset(e);return r&&r.end>=e?n&&r.findChildAtOffset(e,!0)||r:null}encloses(e){return this.offset<=e.offset&&this.offset+this.length>=e.offset+e.length}getParent(){let e=this.parent;for(;e instanceof It;)e=e.parent;return e}findParent(e){let n=this;for(;n&&n.type!==e;)n=n.parent;return n}findAParent(...e){let n=this;for(;n&&!e.some(r=>n.type===r);)n=n.parent;return n}setData(e,n){this.options||(this.options={}),this.options[e]=n}getData(e){return!this.options||!this.options.hasOwnProperty(e)?null:this.options[e]}},It=class extends fe{constructor(e,n=-1){super(-1,-1),this.attachTo(e,n),this.offset=-1,this.length=-1}},Pc=class extends fe{constructor(e,n){super(e,n)}get type(){return A.UnicodeRange}setRangeStart(e){return this.setNode("rangeStart",e)}getRangeStart(){return this.rangeStart}setRangeEnd(e){return this.setNode("rangeEnd",e)}getRangeEnd(){return this.rangeEnd}},Ft=class extends fe{constructor(e,n){super(e,n),this.isCustomProperty=!1}get type(){return A.Identifier}containsInterpolation(){return this.hasChildren()}},zc=class extends fe{constructor(e,n){super(e,n)}get type(){return A.Stylesheet}},Yi=class extends fe{constructor(e,n){super(e,n)}get type(){return A.Declarations}},Ve=class extends fe{constructor(e,n){super(e,n)}getDeclarations(){return this.declarations}setDeclarations(e){return this.setNode("declarations",e)}},un=class extends Ve{constructor(e,n){super(e,n)}get type(){return A.Ruleset}getSelectors(){return this.selectors||(this.selectors=new It(this)),this.selectors}isNested(){return!!this.parent&&this.parent.findParent(A.Declarations)!==null}},Sn=class extends fe{constructor(e,n){super(e,n)}get type(){return A.Selector}},xn=class extends fe{constructor(e,n){super(e,n)}get type(){return A.SimpleSelector}},Vo=class extends fe{constructor(e,n){super(e,n)}},Oc=class extends Ve{constructor(e,n){super(e,n)}get type(){return A.CustomPropertySet}},At=class extends Vo{constructor(e,n){super(e,n),this.property=null}get type(){return A.Declaration}setProperty(e){return this.setNode("property",e)}getProperty(){return this.property}getFullPropertyName(){let e=this.property?this.property.getName():"unknown";if(this.parent instanceof Yi&&this.parent.getParent()instanceof wa){let n=this.parent.getParent().getParent();if(n instanceof At)return n.getFullPropertyName()+e}return e}getNonPrefixedPropertyName(){let e=this.getFullPropertyName();if(e&&e.charAt(0)==="-"){let n=e.indexOf("-",1);if(n!==-1)return e.substring(n+1)}return e}setValue(e){return this.setNode("value",e)}getValue(){return this.value}setNestedProperties(e){return this.setNode("nestedProperties",e)}getNestedProperties(){return this.nestedProperties}},Lc=class extends At{constructor(e,n){super(e,n)}get type(){return A.CustomPropertyDeclaration}setPropertySet(e){return this.setNode("propertySet",e)}getPropertySet(){return this.propertySet}},fi=class extends fe{constructor(e,n){super(e,n)}get type(){return A.Property}setIdentifier(e){return this.setNode("identifier",e)}getIdentifier(){return this.identifier}getName(){return vx(this.getText(),/[_\+]+$/)}isCustomProperty(){return!!this.identifier&&this.identifier.isCustomProperty}},sf=class extends fe{constructor(e,n){super(e,n)}get type(){return A.Invocation}getArguments(){return this.arguments||(this.arguments=new It(this)),this.arguments}},Vn=class extends sf{constructor(e,n){super(e,n)}get type(){return A.Function}setIdentifier(e){return this.setNode("identifier",e,0)}getIdentifier(){return this.identifier}getName(){return this.identifier?this.identifier.getText():""}},pr=class extends fe{constructor(e,n){super(e,n)}get type(){return A.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}},dn=class extends fe{constructor(e,n){super(e,n)}get type(){return A.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}},Nc=class extends Ve{constructor(e,n){super(e,n)}get type(){return A.If}setExpression(e){return this.setNode("expression",e,0)}setElseClause(e){return this.setNode("elseClause",e)}},Wc=class extends Ve{constructor(e,n){super(e,n)}get type(){return A.For}setVariable(e){return this.setNode("variable",e,0)}},qc=class extends Ve{constructor(e,n){super(e,n)}get type(){return A.Each}getVariables(){return this.variables||(this.variables=new It(this)),this.variables}},Uc=class extends Ve{constructor(e,n){super(e,n)}get type(){return A.While}},jc=class extends Ve{constructor(e,n){super(e,n)}get type(){return A.Else}},Ur=class extends Ve{constructor(e,n){super(e,n)}get type(){return A.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 It(this)),this.parameters}},Hc=class extends Ve{constructor(e,n){super(e,n)}get type(){return A.ViewPort}},Ko=class extends Ve{constructor(e,n){super(e,n)}get type(){return A.FontFace}},wa=class extends Ve{constructor(e,n){super(e,n)}get type(){return A.NestedProperties}},Go=class extends Ve{constructor(e,n){super(e,n)}get type(){return A.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():""}},ya=class extends Ve{constructor(e,n){super(e,n)}get type(){return A.KeyframeSelector}},gi=class extends fe{constructor(e,n){super(e,n)}get type(){return A.Import}setMedialist(e){return e?(e.attachTo(this),!0):!1}},Bc=class extends fe{get type(){return A.Use}getParameters(){return this.parameters||(this.parameters=new It(this)),this.parameters}setIdentifier(e){return this.setNode("identifier",e,0)}getIdentifier(){return this.identifier}},$c=class extends fe{get type(){return A.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}},Vc=class extends fe{get type(){return A.Forward}setIdentifier(e){return this.setNode("identifier",e,0)}getIdentifier(){return this.identifier}getMembers(){return this.members||(this.members=new It(this)),this.members}getParameters(){return this.parameters||(this.parameters=new It(this)),this.parameters}},Kc=class extends fe{get type(){return A.ForwardVisibility}setIdentifier(e){return this.setNode("identifier",e,0)}getIdentifier(){return this.identifier}},Gc=class extends fe{constructor(e,n){super(e,n)}get type(){return A.Namespace}},Jo=class extends Ve{constructor(e,n){super(e,n)}get type(){return A.Media}},Zi=class extends Ve{constructor(e,n){super(e,n)}get type(){return A.Supports}},Jc=class extends Ve{constructor(e,n){super(e,n)}get type(){return A.Layer}setNames(e){return this.setNode("names",e)}getNames(){return this.names}},Xc=class extends Ve{constructor(e,n){super(e,n)}get type(){return A.PropertyAtRule}setName(e){return e?(e.attachTo(this),this.name=e,!0):!1}getName(){return this.name}},Qc=class extends Ve{constructor(e,n){super(e,n)}get type(){return A.Document}},Xo=class extends fe{constructor(e,n){super(e,n)}},Qo=class extends fe{constructor(e,n){super(e,n)}get type(){return A.MediaQuery}},Yc=class extends fe{constructor(e,n){super(e,n)}get type(){return A.MediaCondition}},Zc=class extends fe{constructor(e,n){super(e,n)}get type(){return A.MediaFeature}},jr=class extends fe{constructor(e,n){super(e,n)}get type(){return A.SupportsCondition}},eu=class extends Ve{constructor(e,n){super(e,n)}get type(){return A.Page}},tu=class extends Ve{constructor(e,n){super(e,n)}get type(){return A.PageBoxMarginBox}},Yo=class extends fe{constructor(e,n){super(e,n)}get type(){return A.Expression}},bi=class extends fe{constructor(e,n){super(e,n)}get type(){return A.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}},nu=class extends fe{constructor(e,n){super(e,n)}get type(){return A.Term}setOperator(e){return this.setNode("operator",e)}getOperator(){return this.operator}setExpression(e){return this.setNode("expression",e)}getExpression(){return this.expression}},ru=class extends fe{constructor(e,n){super(e,n)}get type(){return A.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}},eo=class extends fe{constructor(e,n){super(e,n)}get type(){return A.HexColorValue}},iu=class extends fe{constructor(e,n){super(e,n)}get type(){return A.RatioValue}},IP=".".charCodeAt(0),MP="0".charCodeAt(0),PP="9".charCodeAt(0),to=class extends fe{constructor(e,n){super(e,n)}get type(){return A.NumericValue}getValue(){let e=this.getText(),n=0,r;for(let i=0,o=e.length;i<o&&(r=e.charCodeAt(i),MP<=r&&r<=PP||r===IP);i++)n+=1;return{value:e.substring(0,n),unit:n<e.length?e.substring(n):void 0}}},mr=class extends Vo{constructor(e,n){super(e,n),this.needsSemicolon=!0}get type(){return A.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}},no=class extends fe{constructor(e,n){super(e,n)}get type(){return A.Interpolation}},vi=class extends fe{constructor(e,n){super(e,n)}get type(){return A.VariableName}getName(){return this.getText()}},fr=class extends fe{constructor(e,n){super(e,n)}get type(){return A.ExtendsReference}getSelectors(){return this.selectors||(this.selectors=new It(this)),this.selectors}},ou=class extends fe{constructor(e,n){super(e,n)}get type(){return A.MixinContentReference}getArguments(){return this.arguments||(this.arguments=new It(this)),this.arguments}},su=class extends Ve{constructor(e,n){super(e,n)}get type(){return A.MixinContentReference}getParameters(){return this.parameters||(this.parameters=new It(this)),this.parameters}},Hr=class extends fe{constructor(e,n){super(e,n)}get type(){return A.MixinReference}getNamespaces(){return this.namespaces||(this.namespaces=new It(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 It(this)),this.arguments}setContent(e){return this.setNode("content",e)}getContent(){return this.content}},Kn=class extends Ve{constructor(e,n){super(e,n)}get type(){return A.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 It(this)),this.parameters}setGuard(e){return e&&(e.attachTo(this),this.guard=e),!1}},Zo=class extends Ve{constructor(e,n){super(e,n)}get type(){return A.UnknownAtRule}setAtRuleName(e){this.atRuleName=e}getAtRuleName(){return this.atRuleName}},au=class extends fe{get type(){return A.ListEntry}setKey(e){return this.setNode("key",e,0)}setValue(e){return this.setNode("value",e,1)}},lu=class extends fe{getConditions(){return this.conditions||(this.conditions=new It(this)),this.conditions}},cu=class extends fe{setVariable(e){return this.setNode("variable",e)}},_a=class extends fe{get type(){return A.Module}setIdentifier(e){return this.setNode("identifier",e,0)}getIdentifier(){return this.identifier}};(function(t){t[t.Ignore=1]="Ignore",t[t.Warning=2]="Warning",t[t.Error=4]="Error"})(Ht||(Ht={}));es=class{constructor(e,n,r,i,o=e.offset,s=e.length){this.node=e,this.rule=n,this.level=r,this.message=i||n.message,this.offset=o,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}},ts=class{static entries(e){let n=new ts;return e.acceptVisitor(n),n.entries}constructor(){this.entries=[]}visitNode(e){return e.isErroneous()&&e.collectIssues(this.entries),!0}}});function F(...t){let e=t[0],n,r,i;if(typeof e=="string"?(n=e,r=e,t.splice(0,1),i=!t||typeof t[0]!="object"?t:t[0]):(r=e.message,n=r,e.comment&&e.comment.length>0&&(n+=`/${Array.isArray(e.comment)?e.comment.join():e.comment}`),i=e.args??{}),!yx)return Sa(r,i);let o=yx[n];return o?typeof o=="string"?Sa(o,i):o.comment?Sa(o.message,i):Sa(r,i):Sa(r,i)}function Sa(t,e){return t.replace(zP,(n,r)=>e[r]??n)}var yx,zP,kn=ue(()=>{zP=/{([^}]+)}/g});var Le,q,du=ue(()=>{"use strict";kn();Le=class{constructor(e,n){this.id=e,this.message=n}},q={NumberExpected:new Le("css-numberexpected",F("number expected")),ConditionExpected:new Le("css-conditionexpected",F("condition expected")),RuleOrSelectorExpected:new Le("css-ruleorselectorexpected",F("at-rule or selector expected")),DotExpected:new Le("css-dotexpected",F("dot expected")),ColonExpected:new Le("css-colonexpected",F("colon expected")),SemiColonExpected:new Le("css-semicolonexpected",F("semi-colon expected")),TermExpected:new Le("css-termexpected",F("term expected")),ExpressionExpected:new Le("css-expressionexpected",F("expression expected")),OperatorExpected:new Le("css-operatorexpected",F("operator expected")),IdentifierExpected:new Le("css-identifierexpected",F("identifier expected")),PercentageExpected:new Le("css-percentageexpected",F("percentage expected")),URIOrStringExpected:new Le("css-uriorstringexpected",F("uri or string expected")),URIExpected:new Le("css-uriexpected",F("URI expected")),VariableNameExpected:new Le("css-varnameexpected",F("variable name expected")),VariableValueExpected:new Le("css-varvalueexpected",F("variable value expected")),PropertyValueExpected:new Le("css-propertyvalueexpected",F("property value expected")),LeftCurlyExpected:new Le("css-lcurlyexpected",F("{ expected")),RightCurlyExpected:new Le("css-rcurlyexpected",F("} expected")),LeftSquareBracketExpected:new Le("css-rbracketexpected",F("[ expected")),RightSquareBracketExpected:new Le("css-lbracketexpected",F("] expected")),LeftParenthesisExpected:new Le("css-lparentexpected",F("( expected")),RightParenthesisExpected:new Le("css-rparentexpected",F(") expected")),CommaExpected:new Le("css-commaexpected",F("comma expected")),PageDirectiveOrDeclarationExpected:new Le("css-pagedirordeclexpected",F("page directive or declaraton expected")),UnknownAtRule:new Le("css-unknownatrule",F("at-rule unknown")),UnknownKeyword:new Le("css-unknownkeyword",F("unknown keyword")),SelectorExpected:new Le("css-selectorexpected",F("selector expected")),StringLiteralExpected:new Le("css-stringliteralexpected",F("string literal expected")),WhitespaceExpected:new Le("css-whitespaceexpected",F("whitespace expected")),MediaQueryExpected:new Le("css-mediaqueryexpected",F("media query expected")),IdentifierOrWildcardExpected:new Le("css-idorwildcardexpected",F("identifier or wildcard expected")),WildcardExpected:new Le("css-wildcardexpected",F("wildcard expected")),IdentifierOrVariableExpected:new Le("css-idorvarexpected",F("identifier or variable expected"))}});var E,af,wi,hn=ue(()=>{"use strict";E=ei(Xt());Dp();(function(t){t.LATEST={textDocument:{completion:{completionItem:{documentationFormat:[E.MarkupKind.Markdown,E.MarkupKind.PlainText]}},hover:{contentFormat:[E.MarkupKind.Markdown,E.MarkupKind.PlainText]}}}})(af||(af={}));(function(t){t[t.Unknown=0]="Unknown",t[t.File=1]="File",t[t.Directory=2]="Directory",t[t.SymbolicLink=64]="SymbolicLink"})(wi||(wi={}))});function Sx(t){switch(t){case"experimental":return`\u26A0\uFE0F Property is experimental. Be cautious when using it.\uFE0F
|
|
515
|
+
`),!0}return!1}_escape(e,n){let r=this.stream.peekChar();if(r===ef){this.stream.advance(1),r=this.stream.peekChar();let i=0;for(;i<6&&(r>=fa&&r<=ga||r>=Ac&&r<=ox||r>=Rc&&r<=ax);)this.stream.advance(1),r=this.stream.peekChar(),i++;if(i>0){try{let o=parseInt(this.stream.substring(this.stream.pos()-i),16);o&&e.push(String.fromCharCode(o))}catch{}return r===tf||r===nf?this.stream.advance(1):this._newline([]),!0}if(r!==$o&&r!==va&&r!==Bo)return this.stream.advance(1),e.push(String.fromCharCode(r)),!0;if(n)return this._newline(e)}return!1}_stringChar(e,n){let r=this.stream.peekChar();return r!==0&&r!==e&&r!==ef&&r!==$o&&r!==va&&r!==Bo?(this.stream.advance(1),n.push(String.fromCharCode(r)),!0):!1}_string(e){if(this.stream.peekChar()===hx||this.stream.peekChar()===dx){let n=this.stream.nextChar();for(e.push(String.fromCharCode(n));this._stringChar(n,e)||this._escape(e,!0););return this.stream.peekChar()===n?(this.stream.nextChar(),e.push(String.fromCharCode(n)),m.String):m.BadString}return null}_unquotedChar(e){let n=this.stream.peekChar();return n!==0&&n!==ef&&n!==hx&&n!==dx&&n!==fx&&n!==gx&&n!==tf&&n!==nf&&n!==Bo&&n!==va&&n!==$o?(this.stream.advance(1),e.push(String.fromCharCode(n)),!0):!1}_unquotedString(e){let n=!1;for(;this._unquotedChar(e)||this._escape(e);)n=!0;return n}_whitespace(){return this.stream.advanceWhileChar(n=>n===tf||n===nf||n===Bo||n===va||n===$o)>0}_name(e){let n=!1;for(;this._identChar(e)||this._escape(e);)n=!0;return n}ident(e){let n=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(n),!1}_identFirstChar(e){let n=this.stream.peekChar();return n===cx||n>=Ac&&n<=sx||n>=Rc&&n<=lx||n>=128&&n<=65535?(this.stream.advance(1),e.push(String.fromCharCode(n)),!0):!1}_minus(e){let n=this.stream.peekChar();return n===Qi?(this.stream.advance(1),e.push(String.fromCharCode(n)),!0):!1}_identChar(e){let n=this.stream.peekChar();return n===cx||n===Qi||n>=Ac&&n<=sx||n>=Rc&&n<=lx||n>=fa&&n<=ga||n>=128&&n<=65535?(this.stream.advance(1),e.push(String.fromCharCode(n)),!0):!1}_unicodeRange(){if(this.stream.advanceIfChar(FP)){let e=r=>r>=fa&&r<=ga||r>=Ac&&r<=ox||r>=Rc&&r<=ax,n=this.stream.advanceWhileChar(e)+this.stream.advanceWhileChar(r=>r===DP);if(n>=1&&n<=6)if(this.stream.advanceIfChar(Qi)){let r=this.stream.advanceWhileChar(e);if(r>=1&&r<=6)return!0}else return!0}return!1}}});function ot(t,e){if(t.length<e.length)return!1;for(let n=0;n<e.length;n++)if(t[n]!==e[n])return!1;return!0}function Mc(t,e){let n=t.length-e.length;return n>0?t.lastIndexOf(e)===n:n===0?t===e:!1}function bx(t,e,n=4){let r=Math.abs(t.length-e.length);if(r>n)return 0;let i=[],o=[],s,l;for(s=0;s<e.length+1;++s)o.push(0);for(s=0;s<t.length+1;++s)i.push(o);for(s=1;s<t.length+1;++s)for(l=1;l<e.length+1;++l)t[s-1]===e[l-1]?i[s][l]=i[s-1][l-1]+1:i[s][l]=Math.max(i[s-1][l],i[s][l-1]);return i[t.length][e.length]-Math.sqrt(r)}function rf(t,e=!0){return t?t.length<140?t:t.slice(0,140)+(e?"\u2026":""):""}function vx(t,e){let n=e.exec(t);return n&&n[0].length?t.substr(0,t.length-n[0].length):t}function of(t,e){let n="";for(;e>0;)(e&1)===1&&(n+=t),t+=t,e=e>>>1;return n}var qr=ue(()=>{"use strict"});function uu(t,e){let n=null;return!t||e<t.offset||e>t.end?null:(t.accept(r=>r.offset===-1&&r.length===-1?!0:r.offset<=e&&r.end>=e?(n?r.length<=n.length&&(n=r):n=r,!0):!1),n)}function ns(t,e){let n=uu(t,e),r=[];for(;n;)r.unshift(n),n=n.parent;return r}function wx(t){let e=t.findParent(A.Declaration),n=e&&e.getValue();return n&&n.encloses(t)?e:null}var A,De,fe,It,Pc,Ft,zc,Yi,Ve,un,Sn,xn,Vo,Oc,At,Lc,gi,sf,Vn,pr,dn,Nc,Wc,qc,Uc,jc,Ur,Hc,Ko,wa,Go,ya,bi,Bc,$c,Vc,Kc,Gc,Jo,Zi,Jc,Xc,Qc,Xo,Qo,Yc,Zc,jr,eu,tu,Yo,vi,nu,ru,eo,iu,IP,MP,PP,to,mr,no,wi,fr,ou,su,Hr,Kn,Zo,au,lu,cu,_a,Ht,es,ts,Bt=ue(()=>{"use strict";qr();(function(t){t[t.Undefined=0]="Undefined",t[t.Identifier=1]="Identifier",t[t.Stylesheet=2]="Stylesheet",t[t.Ruleset=3]="Ruleset",t[t.Selector=4]="Selector",t[t.SimpleSelector=5]="SimpleSelector",t[t.SelectorInterpolation=6]="SelectorInterpolation",t[t.SelectorCombinator=7]="SelectorCombinator",t[t.SelectorCombinatorParent=8]="SelectorCombinatorParent",t[t.SelectorCombinatorSibling=9]="SelectorCombinatorSibling",t[t.SelectorCombinatorAllSiblings=10]="SelectorCombinatorAllSiblings",t[t.SelectorCombinatorShadowPiercingDescendant=11]="SelectorCombinatorShadowPiercingDescendant",t[t.Page=12]="Page",t[t.PageBoxMarginBox=13]="PageBoxMarginBox",t[t.ClassSelector=14]="ClassSelector",t[t.IdentifierSelector=15]="IdentifierSelector",t[t.ElementNameSelector=16]="ElementNameSelector",t[t.PseudoSelector=17]="PseudoSelector",t[t.AttributeSelector=18]="AttributeSelector",t[t.Declaration=19]="Declaration",t[t.Declarations=20]="Declarations",t[t.Property=21]="Property",t[t.Expression=22]="Expression",t[t.BinaryExpression=23]="BinaryExpression",t[t.Term=24]="Term",t[t.Operator=25]="Operator",t[t.Value=26]="Value",t[t.StringLiteral=27]="StringLiteral",t[t.URILiteral=28]="URILiteral",t[t.EscapedValue=29]="EscapedValue",t[t.Function=30]="Function",t[t.NumericValue=31]="NumericValue",t[t.HexColorValue=32]="HexColorValue",t[t.RatioValue=33]="RatioValue",t[t.MixinDeclaration=34]="MixinDeclaration",t[t.MixinReference=35]="MixinReference",t[t.VariableName=36]="VariableName",t[t.VariableDeclaration=37]="VariableDeclaration",t[t.Prio=38]="Prio",t[t.Interpolation=39]="Interpolation",t[t.NestedProperties=40]="NestedProperties",t[t.ExtendsReference=41]="ExtendsReference",t[t.SelectorPlaceholder=42]="SelectorPlaceholder",t[t.Debug=43]="Debug",t[t.If=44]="If",t[t.Else=45]="Else",t[t.For=46]="For",t[t.Each=47]="Each",t[t.While=48]="While",t[t.MixinContentReference=49]="MixinContentReference",t[t.MixinContentDeclaration=50]="MixinContentDeclaration",t[t.Media=51]="Media",t[t.Keyframe=52]="Keyframe",t[t.FontFace=53]="FontFace",t[t.Import=54]="Import",t[t.Namespace=55]="Namespace",t[t.Invocation=56]="Invocation",t[t.FunctionDeclaration=57]="FunctionDeclaration",t[t.ReturnStatement=58]="ReturnStatement",t[t.MediaQuery=59]="MediaQuery",t[t.MediaCondition=60]="MediaCondition",t[t.MediaFeature=61]="MediaFeature",t[t.FunctionParameter=62]="FunctionParameter",t[t.FunctionArgument=63]="FunctionArgument",t[t.KeyframeSelector=64]="KeyframeSelector",t[t.ViewPort=65]="ViewPort",t[t.Document=66]="Document",t[t.AtApplyRule=67]="AtApplyRule",t[t.CustomPropertyDeclaration=68]="CustomPropertyDeclaration",t[t.CustomPropertySet=69]="CustomPropertySet",t[t.ListEntry=70]="ListEntry",t[t.Supports=71]="Supports",t[t.SupportsCondition=72]="SupportsCondition",t[t.NamespacePrefix=73]="NamespacePrefix",t[t.GridLine=74]="GridLine",t[t.Plugin=75]="Plugin",t[t.UnknownAtRule=76]="UnknownAtRule",t[t.Use=77]="Use",t[t.ModuleConfiguration=78]="ModuleConfiguration",t[t.Forward=79]="Forward",t[t.ForwardVisibility=80]="ForwardVisibility",t[t.Module=81]="Module",t[t.UnicodeRange=82]="UnicodeRange",t[t.Layer=83]="Layer",t[t.LayerNameList=84]="LayerNameList",t[t.LayerName=85]="LayerName",t[t.PropertyAtRule=86]="PropertyAtRule"})(A||(A={}));(function(t){t[t.Mixin=0]="Mixin",t[t.Rule=1]="Rule",t[t.Variable=2]="Variable",t[t.Function=3]="Function",t[t.Keyframe=4]="Keyframe",t[t.Unknown=5]="Unknown",t[t.Module=6]="Module",t[t.Forward=7]="Forward",t[t.ForwardVisibility=8]="ForwardVisibility",t[t.Property=9]="Property"})(De||(De={}));fe=class{get end(){return this.offset+this.length}constructor(e=-1,n=-1,r){this.parent=null,this.offset=e,this.length=n,r&&(this.nodeType=r)}set type(e){this.nodeType=e}get type(){return this.nodeType||A.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(let n of this.children)n.accept(e)}acceptVisitor(e){this.accept(e.visitNode.bind(e))}adoptChild(e,n=-1){if(e.parent&&e.parent.children){let i=e.parent.children.indexOf(e);i>=0&&e.parent.children.splice(i,1)}e.parent=this;let r=this.children;return r||(r=this.children=[]),n!==-1?r.splice(n,0,e):r.push(e),e}attachTo(e,n=-1){return e&&e.adoptChild(this,n),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(n=>n.getRule()===e)}isErroneous(e=!1){return this.issues&&this.issues.length>0?!0:e&&Array.isArray(this.children)&&this.children.some(n=>n.isErroneous(!0))}setNode(e,n,r=-1){return n?(n.attachTo(this,r),this[e]=n,!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);let n=e.end;(n>this.end||this.length===-1)&&(this.length=n-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(let n of e)this.addChild(n)}findFirstChildBeforeOffset(e){if(this.children){let n=null;for(let r=this.children.length-1;r>=0;r--)if(n=this.children[r],n.offset<=e)return n}return null}findChildAtOffset(e,n){let r=this.findFirstChildBeforeOffset(e);return r&&r.end>=e?n&&r.findChildAtOffset(e,!0)||r:null}encloses(e){return this.offset<=e.offset&&this.offset+this.length>=e.offset+e.length}getParent(){let e=this.parent;for(;e instanceof It;)e=e.parent;return e}findParent(e){let n=this;for(;n&&n.type!==e;)n=n.parent;return n}findAParent(...e){let n=this;for(;n&&!e.some(r=>n.type===r);)n=n.parent;return n}setData(e,n){this.options||(this.options={}),this.options[e]=n}getData(e){return!this.options||!this.options.hasOwnProperty(e)?null:this.options[e]}},It=class extends fe{constructor(e,n=-1){super(-1,-1),this.attachTo(e,n),this.offset=-1,this.length=-1}},Pc=class extends fe{constructor(e,n){super(e,n)}get type(){return A.UnicodeRange}setRangeStart(e){return this.setNode("rangeStart",e)}getRangeStart(){return this.rangeStart}setRangeEnd(e){return this.setNode("rangeEnd",e)}getRangeEnd(){return this.rangeEnd}},Ft=class extends fe{constructor(e,n){super(e,n),this.isCustomProperty=!1}get type(){return A.Identifier}containsInterpolation(){return this.hasChildren()}},zc=class extends fe{constructor(e,n){super(e,n)}get type(){return A.Stylesheet}},Yi=class extends fe{constructor(e,n){super(e,n)}get type(){return A.Declarations}},Ve=class extends fe{constructor(e,n){super(e,n)}getDeclarations(){return this.declarations}setDeclarations(e){return this.setNode("declarations",e)}},un=class extends Ve{constructor(e,n){super(e,n)}get type(){return A.Ruleset}getSelectors(){return this.selectors||(this.selectors=new It(this)),this.selectors}isNested(){return!!this.parent&&this.parent.findParent(A.Declarations)!==null}},Sn=class extends fe{constructor(e,n){super(e,n)}get type(){return A.Selector}},xn=class extends fe{constructor(e,n){super(e,n)}get type(){return A.SimpleSelector}},Vo=class extends fe{constructor(e,n){super(e,n)}},Oc=class extends Ve{constructor(e,n){super(e,n)}get type(){return A.CustomPropertySet}},At=class extends Vo{constructor(e,n){super(e,n),this.property=null}get type(){return A.Declaration}setProperty(e){return this.setNode("property",e)}getProperty(){return this.property}getFullPropertyName(){let e=this.property?this.property.getName():"unknown";if(this.parent instanceof Yi&&this.parent.getParent()instanceof wa){let n=this.parent.getParent().getParent();if(n instanceof At)return n.getFullPropertyName()+e}return e}getNonPrefixedPropertyName(){let e=this.getFullPropertyName();if(e&&e.charAt(0)==="-"){let n=e.indexOf("-",1);if(n!==-1)return e.substring(n+1)}return e}setValue(e){return this.setNode("value",e)}getValue(){return this.value}setNestedProperties(e){return this.setNode("nestedProperties",e)}getNestedProperties(){return this.nestedProperties}},Lc=class extends At{constructor(e,n){super(e,n)}get type(){return A.CustomPropertyDeclaration}setPropertySet(e){return this.setNode("propertySet",e)}getPropertySet(){return this.propertySet}},gi=class extends fe{constructor(e,n){super(e,n)}get type(){return A.Property}setIdentifier(e){return this.setNode("identifier",e)}getIdentifier(){return this.identifier}getName(){return vx(this.getText(),/[_\+]+$/)}isCustomProperty(){return!!this.identifier&&this.identifier.isCustomProperty}},sf=class extends fe{constructor(e,n){super(e,n)}get type(){return A.Invocation}getArguments(){return this.arguments||(this.arguments=new It(this)),this.arguments}},Vn=class extends sf{constructor(e,n){super(e,n)}get type(){return A.Function}setIdentifier(e){return this.setNode("identifier",e,0)}getIdentifier(){return this.identifier}getName(){return this.identifier?this.identifier.getText():""}},pr=class extends fe{constructor(e,n){super(e,n)}get type(){return A.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}},dn=class extends fe{constructor(e,n){super(e,n)}get type(){return A.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}},Nc=class extends Ve{constructor(e,n){super(e,n)}get type(){return A.If}setExpression(e){return this.setNode("expression",e,0)}setElseClause(e){return this.setNode("elseClause",e)}},Wc=class extends Ve{constructor(e,n){super(e,n)}get type(){return A.For}setVariable(e){return this.setNode("variable",e,0)}},qc=class extends Ve{constructor(e,n){super(e,n)}get type(){return A.Each}getVariables(){return this.variables||(this.variables=new It(this)),this.variables}},Uc=class extends Ve{constructor(e,n){super(e,n)}get type(){return A.While}},jc=class extends Ve{constructor(e,n){super(e,n)}get type(){return A.Else}},Ur=class extends Ve{constructor(e,n){super(e,n)}get type(){return A.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 It(this)),this.parameters}},Hc=class extends Ve{constructor(e,n){super(e,n)}get type(){return A.ViewPort}},Ko=class extends Ve{constructor(e,n){super(e,n)}get type(){return A.FontFace}},wa=class extends Ve{constructor(e,n){super(e,n)}get type(){return A.NestedProperties}},Go=class extends Ve{constructor(e,n){super(e,n)}get type(){return A.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():""}},ya=class extends Ve{constructor(e,n){super(e,n)}get type(){return A.KeyframeSelector}},bi=class extends fe{constructor(e,n){super(e,n)}get type(){return A.Import}setMedialist(e){return e?(e.attachTo(this),!0):!1}},Bc=class extends fe{get type(){return A.Use}getParameters(){return this.parameters||(this.parameters=new It(this)),this.parameters}setIdentifier(e){return this.setNode("identifier",e,0)}getIdentifier(){return this.identifier}},$c=class extends fe{get type(){return A.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}},Vc=class extends fe{get type(){return A.Forward}setIdentifier(e){return this.setNode("identifier",e,0)}getIdentifier(){return this.identifier}getMembers(){return this.members||(this.members=new It(this)),this.members}getParameters(){return this.parameters||(this.parameters=new It(this)),this.parameters}},Kc=class extends fe{get type(){return A.ForwardVisibility}setIdentifier(e){return this.setNode("identifier",e,0)}getIdentifier(){return this.identifier}},Gc=class extends fe{constructor(e,n){super(e,n)}get type(){return A.Namespace}},Jo=class extends Ve{constructor(e,n){super(e,n)}get type(){return A.Media}},Zi=class extends Ve{constructor(e,n){super(e,n)}get type(){return A.Supports}},Jc=class extends Ve{constructor(e,n){super(e,n)}get type(){return A.Layer}setNames(e){return this.setNode("names",e)}getNames(){return this.names}},Xc=class extends Ve{constructor(e,n){super(e,n)}get type(){return A.PropertyAtRule}setName(e){return e?(e.attachTo(this),this.name=e,!0):!1}getName(){return this.name}},Qc=class extends Ve{constructor(e,n){super(e,n)}get type(){return A.Document}},Xo=class extends fe{constructor(e,n){super(e,n)}},Qo=class extends fe{constructor(e,n){super(e,n)}get type(){return A.MediaQuery}},Yc=class extends fe{constructor(e,n){super(e,n)}get type(){return A.MediaCondition}},Zc=class extends fe{constructor(e,n){super(e,n)}get type(){return A.MediaFeature}},jr=class extends fe{constructor(e,n){super(e,n)}get type(){return A.SupportsCondition}},eu=class extends Ve{constructor(e,n){super(e,n)}get type(){return A.Page}},tu=class extends Ve{constructor(e,n){super(e,n)}get type(){return A.PageBoxMarginBox}},Yo=class extends fe{constructor(e,n){super(e,n)}get type(){return A.Expression}},vi=class extends fe{constructor(e,n){super(e,n)}get type(){return A.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}},nu=class extends fe{constructor(e,n){super(e,n)}get type(){return A.Term}setOperator(e){return this.setNode("operator",e)}getOperator(){return this.operator}setExpression(e){return this.setNode("expression",e)}getExpression(){return this.expression}},ru=class extends fe{constructor(e,n){super(e,n)}get type(){return A.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}},eo=class extends fe{constructor(e,n){super(e,n)}get type(){return A.HexColorValue}},iu=class extends fe{constructor(e,n){super(e,n)}get type(){return A.RatioValue}},IP=".".charCodeAt(0),MP="0".charCodeAt(0),PP="9".charCodeAt(0),to=class extends fe{constructor(e,n){super(e,n)}get type(){return A.NumericValue}getValue(){let e=this.getText(),n=0,r;for(let i=0,o=e.length;i<o&&(r=e.charCodeAt(i),MP<=r&&r<=PP||r===IP);i++)n+=1;return{value:e.substring(0,n),unit:n<e.length?e.substring(n):void 0}}},mr=class extends Vo{constructor(e,n){super(e,n),this.needsSemicolon=!0}get type(){return A.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}},no=class extends fe{constructor(e,n){super(e,n)}get type(){return A.Interpolation}},wi=class extends fe{constructor(e,n){super(e,n)}get type(){return A.VariableName}getName(){return this.getText()}},fr=class extends fe{constructor(e,n){super(e,n)}get type(){return A.ExtendsReference}getSelectors(){return this.selectors||(this.selectors=new It(this)),this.selectors}},ou=class extends fe{constructor(e,n){super(e,n)}get type(){return A.MixinContentReference}getArguments(){return this.arguments||(this.arguments=new It(this)),this.arguments}},su=class extends Ve{constructor(e,n){super(e,n)}get type(){return A.MixinContentReference}getParameters(){return this.parameters||(this.parameters=new It(this)),this.parameters}},Hr=class extends fe{constructor(e,n){super(e,n)}get type(){return A.MixinReference}getNamespaces(){return this.namespaces||(this.namespaces=new It(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 It(this)),this.arguments}setContent(e){return this.setNode("content",e)}getContent(){return this.content}},Kn=class extends Ve{constructor(e,n){super(e,n)}get type(){return A.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 It(this)),this.parameters}setGuard(e){return e&&(e.attachTo(this),this.guard=e),!1}},Zo=class extends Ve{constructor(e,n){super(e,n)}get type(){return A.UnknownAtRule}setAtRuleName(e){this.atRuleName=e}getAtRuleName(){return this.atRuleName}},au=class extends fe{get type(){return A.ListEntry}setKey(e){return this.setNode("key",e,0)}setValue(e){return this.setNode("value",e,1)}},lu=class extends fe{getConditions(){return this.conditions||(this.conditions=new It(this)),this.conditions}},cu=class extends fe{setVariable(e){return this.setNode("variable",e)}},_a=class extends fe{get type(){return A.Module}setIdentifier(e){return this.setNode("identifier",e,0)}getIdentifier(){return this.identifier}};(function(t){t[t.Ignore=1]="Ignore",t[t.Warning=2]="Warning",t[t.Error=4]="Error"})(Ht||(Ht={}));es=class{constructor(e,n,r,i,o=e.offset,s=e.length){this.node=e,this.rule=n,this.level=r,this.message=i||n.message,this.offset=o,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}},ts=class{static entries(e){let n=new ts;return e.acceptVisitor(n),n.entries}constructor(){this.entries=[]}visitNode(e){return e.isErroneous()&&e.collectIssues(this.entries),!0}}});function F(...t){let e=t[0],n,r,i;if(typeof e=="string"?(n=e,r=e,t.splice(0,1),i=!t||typeof t[0]!="object"?t:t[0]):(r=e.message,n=r,e.comment&&e.comment.length>0&&(n+=`/${Array.isArray(e.comment)?e.comment.join():e.comment}`),i=e.args??{}),!yx)return Sa(r,i);let o=yx[n];return o?typeof o=="string"?Sa(o,i):o.comment?Sa(o.message,i):Sa(r,i):Sa(r,i)}function Sa(t,e){return t.replace(zP,(n,r)=>e[r]??n)}var yx,zP,kn=ue(()=>{zP=/{([^}]+)}/g});var Le,q,du=ue(()=>{"use strict";kn();Le=class{constructor(e,n){this.id=e,this.message=n}},q={NumberExpected:new Le("css-numberexpected",F("number expected")),ConditionExpected:new Le("css-conditionexpected",F("condition expected")),RuleOrSelectorExpected:new Le("css-ruleorselectorexpected",F("at-rule or selector expected")),DotExpected:new Le("css-dotexpected",F("dot expected")),ColonExpected:new Le("css-colonexpected",F("colon expected")),SemiColonExpected:new Le("css-semicolonexpected",F("semi-colon expected")),TermExpected:new Le("css-termexpected",F("term expected")),ExpressionExpected:new Le("css-expressionexpected",F("expression expected")),OperatorExpected:new Le("css-operatorexpected",F("operator expected")),IdentifierExpected:new Le("css-identifierexpected",F("identifier expected")),PercentageExpected:new Le("css-percentageexpected",F("percentage expected")),URIOrStringExpected:new Le("css-uriorstringexpected",F("uri or string expected")),URIExpected:new Le("css-uriexpected",F("URI expected")),VariableNameExpected:new Le("css-varnameexpected",F("variable name expected")),VariableValueExpected:new Le("css-varvalueexpected",F("variable value expected")),PropertyValueExpected:new Le("css-propertyvalueexpected",F("property value expected")),LeftCurlyExpected:new Le("css-lcurlyexpected",F("{ expected")),RightCurlyExpected:new Le("css-rcurlyexpected",F("} expected")),LeftSquareBracketExpected:new Le("css-rbracketexpected",F("[ expected")),RightSquareBracketExpected:new Le("css-lbracketexpected",F("] expected")),LeftParenthesisExpected:new Le("css-lparentexpected",F("( expected")),RightParenthesisExpected:new Le("css-rparentexpected",F(") expected")),CommaExpected:new Le("css-commaexpected",F("comma expected")),PageDirectiveOrDeclarationExpected:new Le("css-pagedirordeclexpected",F("page directive or declaraton expected")),UnknownAtRule:new Le("css-unknownatrule",F("at-rule unknown")),UnknownKeyword:new Le("css-unknownkeyword",F("unknown keyword")),SelectorExpected:new Le("css-selectorexpected",F("selector expected")),StringLiteralExpected:new Le("css-stringliteralexpected",F("string literal expected")),WhitespaceExpected:new Le("css-whitespaceexpected",F("whitespace expected")),MediaQueryExpected:new Le("css-mediaqueryexpected",F("media query expected")),IdentifierOrWildcardExpected:new Le("css-idorwildcardexpected",F("identifier or wildcard expected")),WildcardExpected:new Le("css-wildcardexpected",F("wildcard expected")),IdentifierOrVariableExpected:new Le("css-idorvarexpected",F("identifier or variable expected"))}});var E,af,yi,hn=ue(()=>{"use strict";E=ti(Xt());Dp();(function(t){t.LATEST={textDocument:{completion:{completionItem:{documentationFormat:[E.MarkupKind.Markdown,E.MarkupKind.PlainText]}},hover:{contentFormat:[E.MarkupKind.Markdown,E.MarkupKind.PlainText]}}}})(af||(af={}));(function(t){t[t.Unknown=0]="Unknown",t[t.File=1]="File",t[t.Directory=2]="Directory",t[t.SymbolicLink=64]="SymbolicLink"})(yi||(yi={}))});function Sx(t){switch(t){case"experimental":return`\u26A0\uFE0F Property is experimental. Be cautious when using it.\uFE0F
|
|
516
516
|
|
|
517
517
|
`;case"nonstandard":return`\u{1F6A8}\uFE0F Property is nonstandard. Avoid using it.
|
|
518
518
|
|
|
@@ -529,19 +529,19 @@ Syntax: ${t.syntax}`)}return t.references&&t.references.length>0&&e?.references!
|
|
|
529
529
|
|
|
530
530
|
Syntax: ${hu(t.syntax)}`)}return t.references&&t.references.length>0&&e?.references!==!1&&(n.length>0&&(n+=`
|
|
531
531
|
|
|
532
|
-
`),n+=t.references.map(r=>`[${r.name}](${r.url})`).join(" | ")),n}function xx(t=[]){return t.length===0?null:t.map(e=>{let n="",r=e.match(/([A-Z]+)(\d+)?/),i=r[1],o=r[2];return i in _x&&(n+=_x[i]),o&&(n+=" "+o),n}).join(", ")}var _x,kx=ue(()=>{"use strict";hn();_x={E:"Edge",FF:"Firefox",S:"Safari",C:"Chrome",IE:"IE",O:"Opera"}});function yi(t,e){let r=t.getText().match(/^([-+]?[0-9]*\.?[0-9]+)(%?)$/);if(r){r[2]&&(e=100);let i=parseFloat(r[1])/e;if(i>=0&&i<=1)return i}throw new Error}function Cx(t){let e=t.getText(),n=e.match(/^([-+]?[0-9]*\.?[0-9]+)(deg|rad|grad|turn)?$/);if(n)switch(n[2]){case"deg":return parseFloat(e)%360;case"rad":return parseFloat(e)*180/Math.PI%360;case"grad":return parseFloat(e)*.9%360;case"turn":return parseFloat(e)*360%360;default:if(typeof n[2]>"u")return parseFloat(e)%360}throw new Error}function Fx(t){let e=t.getName();return e?/^(rgb|rgba|hsl|hsla|hwb)$/gi.test(e):!1}function wt(t){return t<Tx?0:t<=NP?t-Tx:(t<pu&&(t+=pu-WP),t>=pu&&t<=qP?t-pu+10:0)}function Ex(t){if(t[0]!=="#")return null;switch(t.length){case 4:return{red:wt(t.charCodeAt(1))*17/255,green:wt(t.charCodeAt(2))*17/255,blue:wt(t.charCodeAt(3))*17/255,alpha:1};case 5:return{red:wt(t.charCodeAt(1))*17/255,green:wt(t.charCodeAt(2))*17/255,blue:wt(t.charCodeAt(3))*17/255,alpha:wt(t.charCodeAt(4))*17/255};case 7:return{red:(wt(t.charCodeAt(1))*16+wt(t.charCodeAt(2)))/255,green:(wt(t.charCodeAt(3))*16+wt(t.charCodeAt(4)))/255,blue:(wt(t.charCodeAt(5))*16+wt(t.charCodeAt(6)))/255,alpha:1};case 9:return{red:(wt(t.charCodeAt(1))*16+wt(t.charCodeAt(2)))/255,green:(wt(t.charCodeAt(3))*16+wt(t.charCodeAt(4)))/255,blue:(wt(t.charCodeAt(5))*16+wt(t.charCodeAt(6)))/255,alpha:(wt(t.charCodeAt(7))*16+wt(t.charCodeAt(8)))/255}}return null}function Ax(t,e,n,r=1){if(t=t/60,e===0)return{red:n,green:n,blue:n,alpha:r};{let i=(l,a,c)=>{for(;c<0;)c+=6;for(;c>=6;)c-=6;return c<1?(a-l)*c+l:c<3?a:c<4?(a-l)*(4-c)+l:l},o=n<=.5?n*(e+1):n+e-n*e,s=n*2-o;return{red:i(s,o,t+2),green:i(s,o,t),blue:i(s,o,t-2),alpha:r}}}function cf(t){let e=t.red,n=t.green,r=t.blue,i=t.alpha,o=Math.max(e,n,r),s=Math.min(e,n,r),l=0,a=0,c=(s+o)/2,u=o-s;if(u>0){switch(a=Math.min(c<=.5?u/(2*c):u/(2-2*c),1),o){case e:l=(n-r)/u+(n<r?6:0);break;case n:l=(r-e)/u+2;break;case r:l=(e-n)/u+4;break}l*=60,l=Math.round(l)}return{h:l,s:a,l:c,a:i}}function UP(t,e,n,r=1){if(e+n>=1){let a=e/(e+n);return{red:a,green:a,blue:a,alpha:r}}let i=Ax(t,1,.5,r),o=i.red;o*=1-e-n,o+=e;let s=i.green;s*=1-e-n,s+=e;let l=i.blue;return l*=1-e-n,l+=e,{red:o,green:s,blue:l,alpha:r}}function Rx(t){let e=cf(t),n=Math.min(t.red,t.green,t.blue),r=1-Math.max(t.red,t.green,t.blue);return{h:e.h,w:n,b:r,a:e.a}}function Ix(t){if(t.type===A.HexColorValue){let e=t.getText();return Ex(e)}else if(t.type===A.Function){let e=t,n=e.getName(),r=e.getArguments().getChildren();if(r.length===1){let i=r[0].getChildren();if(i.length===1&&i[0].type===A.Expression&&(r=i[0].getChildren(),r.length===3)){let o=r[2];if(o instanceof bi){let s=o.getLeft(),l=o.getRight(),a=o.getOperator();s&&l&&a&&a.matches("/")&&(r=[r[0],r[1],s,l])}}}if(!n||r.length<3||r.length>4)return null;try{let i=r.length===4?yi(r[3],1):1;if(n==="rgb"||n==="rgba")return{red:yi(r[0],255),green:yi(r[1],255),blue:yi(r[2],255),alpha:i};if(n==="hsl"||n==="hsla"){let o=Cx(r[0]),s=yi(r[1],100),l=yi(r[2],100);return Ax(o,s,l,i)}else if(n==="hwb"){let o=Cx(r[0]),s=yi(r[1],100),l=yi(r[2],100);return UP(o,s,l,i)}}catch{return null}}else if(t.type===A.Identifier){if(t.parent&&t.parent.type!==A.Term)return null;let e=t.parent;if(e&&e.parent&&e.parent.type===A.BinaryExpression){let i=e.parent;if(i.parent&&i.parent.type===A.ListEntry&&i.parent.key===i)return null}let n=t.getText().toLowerCase();if(n==="none")return null;let r=xa[n];if(r)return Ex(r)}return null}var Dx,xa,lf,Tx,NP,WP,pu,qP,Mx=ue(()=>{Bt();kn();Dx=[{func:"rgb($red, $green, $blue)",desc:F("Creates a Color from red, green, and blue values.")},{func:"rgba($red, $green, $blue, $alpha)",desc:F("Creates a Color from red, green, blue, and alpha values.")},{func:"hsl($hue, $saturation, $lightness)",desc:F("Creates a Color from hue, saturation, and lightness values.")},{func:"hsla($hue, $saturation, $lightness, $alpha)",desc:F("Creates a Color from hue, saturation, lightness, and alpha values.")},{func:"hwb($hue $white $black)",desc:F("Creates a Color from hue, white and black.")}],xa={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"},lf={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."};Tx=48,NP=57,WP=65,pu=97,qP=102});var uf,df,hf,Px,pf,mf,ff,gf,bf,vf,wf,mu,zx,Ox,Lx,Nx=ue(()=>{"use strict";uf={bottom:"Computes to \u2018100%\u2019 for the vertical position if one or two values are given, otherwise specifies the bottom edge as the origin for the next offset.",center:"Computes to \u201850%\u2019 (\u2018left 50%\u2019) for the horizontal position if the horizontal position is not otherwise specified, or \u201850%\u2019 (\u2018top 50%\u2019) for the vertical position if it is.",left:"Computes to \u20180%\u2019 for the horizontal position if one or two values are given, otherwise specifies the left edge as the origin for the next offset.",right:"Computes to \u2018100%\u2019 for the horizontal position if one or two values are given, otherwise specifies the right edge as the origin for the next offset.",top:"Computes to \u20180%\u2019 for the vertical position if one or two values are given, otherwise specifies the top edge as the origin for the next offset."},df={"no-repeat":"Placed once and not repeated in this direction.",repeat:"Repeated in this direction as often as needed to cover the background painting area.","repeat-x":"Computes to \u2018repeat no-repeat\u2019.","repeat-y":"Computes to \u2018no-repeat repeat\u2019.",round:"Repeated as often as will fit within the background positioning area. If it doesn\u2019t fit a whole number of times, it is rescaled so that it does.",space:"Repeated as often as will fit within the background positioning area without being clipped and then the images are spaced out to fill the area."},hf={dashed:"A series of square-ended dashes.",dotted:"A series of round dots.",double:"Two parallel solid lines with some space between them.",groove:"Looks as if it were carved in the canvas.",hidden:"Same as \u2018none\u2019, but has different behavior in the border conflict resolution rules for border-collapsed tables.",inset:"Looks as if the content on the inside of the border is sunken into the canvas.",none:"No border. Color and width are ignored.",outset:"Looks as if the content on the inside of the border is coming out of the canvas.",ridge:"Looks as if it were coming out of the canvas.",solid:"A single line segment."},Px=["medium","thick","thin"],pf={"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."},mf={"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."},ff={initial:"Represents the value specified as the property\u2019s initial value.",inherit:"Represents the computed value of the property on the element\u2019s parent.",unset:"Acts as either `inherit` or `initial`, depending on whether the property is inherited or not."},gf={"var()":"Evaluates the value of a custom variable.","calc()":"Evaluates an mathematical expression. The following operators can be used: + - * /."},bf={"url()":"Reference an image file by URL","image()":"Provide image fallbacks and annotations.","-webkit-image-set()":"Provide multiple resolutions. Remember to use unprefixed image-set() in addition.","image-set()":"Provide multiple resolutions of an image and const the UA decide which is most appropriate in a given situation.","-moz-element()":"Use an element in the document as an image. Remember to use unprefixed element() in addition.","element()":"Use an element in the document as an image.","cross-fade()":"Indicates the two images to be combined and how far along in the transition the combination is.","-webkit-gradient()":"Deprecated. Use modern linear-gradient() or radial-gradient() instead.","-webkit-linear-gradient()":"Linear gradient. Remember to use unprefixed version in addition.","-moz-linear-gradient()":"Linear gradient. Remember to use unprefixed version in addition.","-o-linear-gradient()":"Linear gradient. Remember to use unprefixed version in addition.","linear-gradient()":"A linear gradient is created by specifying a straight gradient line, and then several colors placed along that line.","-webkit-repeating-linear-gradient()":"Repeating Linear gradient. Remember to use unprefixed version in addition.","-moz-repeating-linear-gradient()":"Repeating Linear gradient. Remember to use unprefixed version in addition.","-o-repeating-linear-gradient()":"Repeating Linear gradient. Remember to use unprefixed version in addition.","repeating-linear-gradient()":"Same as linear-gradient, except the color-stops are repeated infinitely in both directions, with their positions shifted by multiples of the difference between the last specified color-stop\u2019s position and the first specified color-stop\u2019s position.","-webkit-radial-gradient()":"Radial gradient. Remember to use unprefixed version in addition.","-moz-radial-gradient()":"Radial gradient. Remember to use unprefixed version in addition.","radial-gradient()":"Colors emerge from a single point and smoothly spread outward in a circular or elliptical shape.","-webkit-repeating-radial-gradient()":"Repeating radial gradient. Remember to use unprefixed version in addition.","-moz-repeating-radial-gradient()":"Repeating radial gradient. Remember to use unprefixed version in addition.","repeating-radial-gradient()":"Same as radial-gradient, except the color-stops are repeated infinitely in both directions, with their positions shifted by multiples of the difference between the last specified color-stop\u2019s position and the first specified color-stop\u2019s position."},vf={ease:"Equivalent to cubic-bezier(0.25, 0.1, 0.25, 1.0).","ease-in":"Equivalent to cubic-bezier(0.42, 0, 1.0, 1.0).","ease-in-out":"Equivalent to cubic-bezier(0.42, 0, 0.58, 1.0).","ease-out":"Equivalent to cubic-bezier(0, 0, 0.58, 1.0).",linear:"Equivalent to cubic-bezier(0.0, 0.0, 1.0, 1.0).","step-end":"Equivalent to steps(1, end).","step-start":"Equivalent to steps(1, start).","steps()":"The first parameter specifies the number of intervals in the function. The second parameter, which is optional, is either the value \u201Cstart\u201D or \u201Cend\u201D.","cubic-bezier()":"Specifies a cubic-bezier curve. The four values specify points P1 and P2 of the curve as (x1, y1, x2, y2).","cubic-bezier(0.6, -0.28, 0.735, 0.045)":"Ease-in Back. Overshoots.","cubic-bezier(0.68, -0.55, 0.265, 1.55)":"Ease-in-out Back. Overshoots.","cubic-bezier(0.175, 0.885, 0.32, 1.275)":"Ease-out Back. Overshoots.","cubic-bezier(0.6, 0.04, 0.98, 0.335)":"Ease-in Circular. Based on half circle.","cubic-bezier(0.785, 0.135, 0.15, 0.86)":"Ease-in-out Circular. Based on half circle.","cubic-bezier(0.075, 0.82, 0.165, 1)":"Ease-out Circular. Based on half circle.","cubic-bezier(0.55, 0.055, 0.675, 0.19)":"Ease-in Cubic. Based on power of three.","cubic-bezier(0.645, 0.045, 0.355, 1)":"Ease-in-out Cubic. Based on power of three.","cubic-bezier(0.215, 0.610, 0.355, 1)":"Ease-out Cubic. Based on power of three.","cubic-bezier(0.95, 0.05, 0.795, 0.035)":"Ease-in Exponential. Based on two to the power ten.","cubic-bezier(1, 0, 0, 1)":"Ease-in-out Exponential. Based on two to the power ten.","cubic-bezier(0.19, 1, 0.22, 1)":"Ease-out Exponential. Based on two to the power ten.","cubic-bezier(0.47, 0, 0.745, 0.715)":"Ease-in Sine.","cubic-bezier(0.445, 0.05, 0.55, 0.95)":"Ease-in-out Sine.","cubic-bezier(0.39, 0.575, 0.565, 1)":"Ease-out Sine.","cubic-bezier(0.55, 0.085, 0.68, 0.53)":"Ease-in Quadratic. Based on power of two.","cubic-bezier(0.455, 0.03, 0.515, 0.955)":"Ease-in-out Quadratic. Based on power of two.","cubic-bezier(0.25, 0.46, 0.45, 0.94)":"Ease-out Quadratic. Based on power of two.","cubic-bezier(0.895, 0.03, 0.685, 0.22)":"Ease-in Quartic. Based on power of four.","cubic-bezier(0.77, 0, 0.175, 1)":"Ease-in-out Quartic. Based on power of four.","cubic-bezier(0.165, 0.84, 0.44, 1)":"Ease-out Quartic. Based on power of four.","cubic-bezier(0.755, 0.05, 0.855, 0.06)":"Ease-in Quintic. Based on power of five.","cubic-bezier(0.86, 0, 0.07, 1)":"Ease-in-out Quintic. Based on power of five.","cubic-bezier(0.23, 1, 0.320, 1)":"Ease-out Quintic. Based on power of five."},wf={"circle()":"Defines a circle.","ellipse()":"Defines an ellipse.","inset()":"Defines an inset rectangle.","polygon()":"Defines a polygon."},mu={length:["em","rem","ex","px","cm","mm","in","pt","pc","ch","vw","vh","vmin","vmax"],angle:["deg","rad","grad","turn"],time:["ms","s"],frequency:["Hz","kHz"],resolution:["dpi","dpcm","dppx"],percentage:["%","fr"]},zx=["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"],Ox=["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"],Lx=["@bottom-center","@bottom-left","@bottom-left-corner","@bottom-right","@bottom-right-corner","@left-bottom","@left-middle","@left-top","@right-bottom","@right-middle","@right-top","@top-center","@top-left","@top-left-corner","@top-right","@top-right-corner"]});var rs=ue(()=>{"use strict";kx();Mx();Nx()});function ka(t){return Object.keys(t).map(e=>t[e])}function en(t){return typeof t<"u"}var Ca=ue(()=>{"use strict"});var _i,gu=ue(()=>{"use strict";mi();Bt();du();rs();Ca();_i=class{constructor(e=new _n){this.keyframeRegex=/^@(\-(webkit|ms|moz|o)\-)?keyframes$/i,this.scanner=e,this.token={type:m.EOF,offset:-1,len:0,text:""},this.prevToken=void 0}peekIdent(e){return m.Ident===this.token.type&&e.length===this.token.text.length&&e===this.token.text.toLowerCase()}peekKeyword(e){return m.AtKeyword===this.token.type&&e.length===this.token.text.length&&e===this.token.text.toLowerCase()}peekDelim(e){return m.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,n){return e!==this.token.type?!1:n.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(){let 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){let n=this.mark(),r=e();return r||(this.restoreAtMark(n),null)}acceptOneKeyword(e){if(m.AtKeyword===this.token.type){for(let n of e)if(n.length===this.token.text.length&&n===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 n=this.createNode(A.Identifier);do;while(this.acceptRegexp(e));return this.finish(n)}acceptUnquotedString(){let e=this.scanner.pos();this.scanner.goBackTo(this.token.offset);let n=this.scanner.scanUnquotedString();return n?(this.token=n,this.consumeToken(),!0):(this.scanner.goBackTo(e),!1)}resync(e,n){for(;;){if(e&&e.indexOf(this.token.type)!==-1)return this.consumeToken(),!0;if(n&&n.indexOf(this.token.type)!==-1)return!0;if(this.token.type===m.EOF)return!1;this.token=this.scanner.scan()}}createNode(e){return new fe(this.token.offset,this.token.len,e)}create(e){return new e(this.token.offset,this.token.len)}finish(e,n,r,i){if(!(e instanceof It)&&(n&&this.markError(e,n,r,i),this.prevToken)){let o=this.prevToken.offset+this.prevToken.len;e.length=o>e.offset?o-e.offset:0}return e}markError(e,n,r,i){this.token!==this.lastErrorToken&&(e.addIssue(new es(e,n,Ht.Error,void 0,this.token.offset,this.token.len)),this.lastErrorToken=this.token),(r||i)&&this.resync(r,i)}parseStylesheet(e){let n=e.version,r=e.getText(),i=(o,s)=>{if(e.version!==n)throw new Error("Underlying model has changed, AST is no longer valid");return r.substr(o,s)};return this.internalParse(r,this._parseStylesheet,i)}internalParse(e,n,r){this.scanner.setSource(e),this.token=this.scanner.scan();let i=n.bind(this)();return i&&(r?i.textProvider=r:i.textProvider=(o,s)=>e.substr(o,s)),i}_parseStylesheet(){let e=this.create(zc);for(;e.addChild(this._parseStylesheetStart()););let n=!1;do{let r=!1;do{r=!1;let i=this._parseStylesheetStatement();for(i&&(e.addChild(i),r=!0,n=!1,!this.peek(m.EOF)&&this._needsSemicolonAfter(i)&&!this.accept(m.SemiColon)&&this.markError(e,q.SemiColonExpected));this.accept(m.SemiColon)||this.accept(m.CDO)||this.accept(m.CDC);)r=!0,n=!1}while(r);if(this.peek(m.EOF))break;n||(this.peek(m.AtKeyword)?this.markError(e,q.UnknownAtRule):this.markError(e,q.RuleOrSelectorExpected),n=!0),this.consumeToken()}while(!this.peek(m.EOF));return this.finish(e)}_parseStylesheetStart(){return this._parseCharset()}_parseStylesheetStatement(e=!1){return this.peek(m.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()||this._parsePropertyAtRule()||this._parseViewPort()||this._parseNamespace()||this._parseDocument()||this._parseUnknownAtRule()}_tryParseRuleset(e){let n=this.mark();if(this._parseSelector(e)){for(;this.accept(m.Comma)&&this._parseSelector(e););if(this.accept(m.CurlyL))return this.restoreAtMark(n),this._parseRuleset(e)}return this.restoreAtMark(n),null}_parseRuleset(e=!1){let n=this.create(un),r=n.getSelectors();if(!r.addChild(this._parseSelector(e)))return null;for(;this.accept(m.Comma);)if(!r.addChild(this._parseSelector(e)))return this.finish(n,q.SelectorExpected);return this._parseBody(n,this._parseRuleSetDeclaration.bind(this))}_parseRuleSetDeclarationAtStatement(){return this._parseUnknownAtRule()}_parseRuleSetDeclaration(){return this.peek(m.AtKeyword)?this._parseRuleSetDeclarationAtStatement():this._parseDeclaration()}_needsSemicolonAfter(e){switch(e.type){case A.Keyframe:case A.ViewPort:case A.Media:case A.Ruleset:case A.Namespace:case A.If:case A.For:case A.Each:case A.While:case A.MixinDeclaration:case A.FunctionDeclaration:case A.MixinContentDeclaration:return!1;case A.ExtendsReference:case A.MixinContentReference:case A.ReturnStatement:case A.MediaQuery:case A.Debug:case A.Import:case A.AtApplyRule:case A.CustomPropertyDeclaration:return!0;case A.VariableDeclaration:return e.needsSemicolon;case A.MixinReference:return!e.getContent();case A.Declaration:return!e.getNestedProperties()}return!1}_parseDeclarations(e){let n=this.create(Yi);if(!this.accept(m.CurlyL))return null;let r=e();for(;n.addChild(r)&&!this.peek(m.CurlyR);){if(this._needsSemicolonAfter(r)&&!this.accept(m.SemiColon))return this.finish(n,q.SemiColonExpected,[m.SemiColon,m.CurlyR]);for(r&&this.prevToken&&this.prevToken.type===m.SemiColon&&(r.semicolonPosition=this.prevToken.offset);this.accept(m.SemiColon););r=e()}return this.accept(m.CurlyR)?this.finish(n):this.finish(n,q.RightCurlyExpected,[m.CurlyR,m.SemiColon])}_parseBody(e,n){return e.setDeclarations(this._parseDeclarations(n))?this.finish(e):this.finish(e,q.LeftCurlyExpected,[m.CurlyR,m.SemiColon])}_parseSelector(e){let n=this.create(Sn),r=!1;for(e&&(r=n.addChild(this._parseCombinator()));n.addChild(this._parseSimpleSelector());)r=!0,n.addChild(this._parseCombinator());return r?this.finish(n):null}_parseDeclaration(e){let n=this._tryParseCustomPropertyDeclaration(e);if(n)return n;let r=this.create(At);return r.setProperty(this._parseProperty())?this.accept(m.Colon)?(this.prevToken&&(r.colonPosition=this.prevToken.offset),r.setValue(this._parseExpr())?(r.addChild(this._parsePrio()),this.peek(m.SemiColon)&&(r.semicolonPosition=this.token.offset),this.finish(r)):this.finish(r,q.PropertyValueExpected)):this.finish(r,q.ColonExpected,[m.Colon],e||[m.SemiColon]):null}_tryParseCustomPropertyDeclaration(e){if(!this.peekRegExp(m.Ident,/^--/))return null;let n=this.create(Lc);if(!n.setProperty(this._parseProperty()))return null;if(!this.accept(m.Colon))return this.finish(n,q.ColonExpected,[m.Colon]);this.prevToken&&(n.colonPosition=this.prevToken.offset);let r=this.mark();if(this.peek(m.CurlyL)){let o=this.create(Oc),s=this._parseDeclarations(this._parseRuleSetDeclaration.bind(this));if(o.setDeclarations(s)&&!s.isErroneous(!0)&&(o.addChild(this._parsePrio()),this.peek(m.SemiColon)))return this.finish(o),n.setPropertySet(o),n.semicolonPosition=this.token.offset,this.finish(n);this.restoreAtMark(r)}let i=this._parseExpr();return i&&!i.isErroneous(!0)&&(this._parsePrio(),this.peekOne(...e||[],m.SemiColon,m.EOF))?(n.setValue(i),this.peek(m.SemiColon)&&(n.semicolonPosition=this.token.offset),this.finish(n)):(this.restoreAtMark(r),n.addChild(this._parseCustomPropertyValue(e)),n.addChild(this._parsePrio()),en(n.colonPosition)&&this.token.offset===n.colonPosition+1?this.finish(n,q.PropertyValueExpected):this.finish(n))}_parseCustomPropertyValue(e=[m.CurlyR]){let n=this.create(fe),r=()=>o===0&&s===0&&l===0,i=()=>e.indexOf(this.token.type)!==-1,o=0,s=0,l=0;e:for(;;){switch(this.token.type){case m.SemiColon:if(r())break e;break;case m.Exclamation:if(r())break e;break;case m.CurlyL:o++;break;case m.CurlyR:if(o--,o<0){if(i()&&s===0&&l===0)break e;return this.finish(n,q.LeftCurlyExpected)}break;case m.ParenthesisL:s++;break;case m.ParenthesisR:if(s--,s<0){if(i()&&l===0&&o===0)break e;return this.finish(n,q.LeftParenthesisExpected)}break;case m.BracketL:l++;break;case m.BracketR:if(l--,l<0)return this.finish(n,q.LeftSquareBracketExpected);break;case m.BadString:break e;case m.EOF:let a=q.RightCurlyExpected;return l>0?a=q.RightSquareBracketExpected:s>0&&(a=q.RightParenthesisExpected),this.finish(n,a)}this.consumeToken()}return this.finish(n)}_tryToParseDeclaration(e){let n=this.mark();return this._parseProperty()&&this.accept(m.Colon)?(this.restoreAtMark(n),this._parseDeclaration(e)):(this.restoreAtMark(n),null)}_parseProperty(){let e=this.create(fi),n=this.mark();return(this.acceptDelim("*")||this.acceptDelim("_"))&&this.hasWhitespace()?(this.restoreAtMark(n),null):e.setIdentifier(this._parsePropertyIdentifier())?this.finish(e):null}_parsePropertyIdentifier(){return this._parseIdent()}_parseCharset(){if(!this.peek(m.Charset))return null;let e=this.create(fe);return this.consumeToken(),this.accept(m.String)?this.accept(m.SemiColon)?this.finish(e):this.finish(e,q.SemiColonExpected):this.finish(e,q.IdentifierExpected)}_parseImport(){if(!this.peekKeyword("@import"))return null;let e=this.create(gi);if(this.consumeToken(),!e.addChild(this._parseURILiteral())&&!e.addChild(this._parseStringLiteral()))return this.finish(e,q.URIOrStringExpected);if(this.acceptIdent("layer")&&this.accept(m.ParenthesisL)){if(!e.addChild(this._parseLayerName()))return this.finish(e,q.IdentifierExpected,[m.SemiColon]);if(!this.accept(m.ParenthesisR))return this.finish(e,q.RightParenthesisExpected,[m.ParenthesisR],[])}return this.acceptIdent("supports")&&this.accept(m.ParenthesisL)&&(e.addChild(this._tryToParseDeclaration()||this._parseSupportsCondition()),!this.accept(m.ParenthesisR))?this.finish(e,q.RightParenthesisExpected,[m.ParenthesisR],[]):(!this.peek(m.SemiColon)&&!this.peek(m.EOF)&&e.setMedialist(this._parseMediaQueryList()),this.finish(e))}_parseNamespace(){if(!this.peekKeyword("@namespace"))return null;let e=this.create(Gc);return this.consumeToken(),!e.addChild(this._parseURILiteral())&&(e.addChild(this._parseIdent()),!e.addChild(this._parseURILiteral())&&!e.addChild(this._parseStringLiteral()))?this.finish(e,q.URIExpected,[m.SemiColon]):this.accept(m.SemiColon)?this.finish(e):this.finish(e,q.SemiColonExpected)}_parseFontFace(){if(!this.peekKeyword("@font-face"))return null;let e=this.create(Ko);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;let e=this.create(Hc);return this.consumeToken(),this._parseBody(e,this._parseRuleSetDeclaration.bind(this))}_parseKeyframe(){if(!this.peekRegExp(m.AtKeyword,this.keyframeRegex))return null;let e=this.create(Go),n=this.create(fe);return this.consumeToken(),e.setKeyword(this.finish(n)),n.matches("@-ms-keyframes")&&this.markError(n,q.UnknownKeyword),e.setIdentifier(this._parseKeyframeIdent())?this._parseBody(e,this._parseKeyframeSelector.bind(this)):this.finish(e,q.IdentifierExpected,[m.CurlyR])}_parseKeyframeIdent(){return this._parseIdent([De.Keyframe])}_parseKeyframeSelector(){let e=this.create(ya);if(!e.addChild(this._parseIdent())&&!this.accept(m.Percentage))return null;for(;this.accept(m.Comma);)if(!e.addChild(this._parseIdent())&&!this.accept(m.Percentage))return this.finish(e,q.PercentageExpected);return this._parseBody(e,this._parseRuleSetDeclaration.bind(this))}_tryParseKeyframeSelector(){let e=this.create(ya),n=this.mark();if(!e.addChild(this._parseIdent())&&!this.accept(m.Percentage))return null;for(;this.accept(m.Comma);)if(!e.addChild(this._parseIdent())&&!this.accept(m.Percentage))return this.restoreAtMark(n),null;return this.peek(m.CurlyL)?this._parseBody(e,this._parseRuleSetDeclaration.bind(this)):(this.restoreAtMark(n),null)}_parsePropertyAtRule(){if(!this.peekKeyword("@property"))return null;let e=this.create(Xc);return this.consumeToken(),!this.peekRegExp(m.Ident,/^--/)||!e.setName(this._parseIdent([De.Property]))?this.finish(e,q.IdentifierExpected):this._parseBody(e,this._parseDeclaration.bind(this))}_parseLayer(){if(!this.peekKeyword("@layer"))return null;let e=this.create(Jc);this.consumeToken();let n=this._parseLayerNameList();return n&&e.setNames(n),(!n||n.getChildren().length===1)&&this.peek(m.CurlyL)?this._parseBody(e,this._parseStylesheetStatement.bind(this)):this.accept(m.SemiColon)?this.finish(e):this.finish(e,q.SemiColonExpected)}_parseLayerNameList(){let e=this.createNode(A.LayerNameList);if(!e.addChild(this._parseLayerName()))return null;for(;this.accept(m.Comma);)if(!e.addChild(this._parseLayerName()))return this.finish(e,q.IdentifierExpected);return this.finish(e)}_parseLayerName(){if(!this.peek(m.Ident))return null;let e=this.createNode(A.LayerName);for(e.addChild(this._parseIdent());!this.hasWhitespace()&&this.acceptDelim(".");)if(this.hasWhitespace()||!e.addChild(this._parseIdent()))return this.finish(e,q.IdentifierExpected);return this.finish(e)}_parseSupports(e=!1){if(!this.peekKeyword("@supports"))return null;let n=this.create(Zi);return this.consumeToken(),n.addChild(this._parseSupportsCondition()),this._parseBody(n,this._parseSupportsDeclaration.bind(this,e))}_parseSupportsDeclaration(e=!1){return e?this._tryParseRuleset(!0)||this._tryToParseDeclaration()||this._parseStylesheetStatement(!0):this._parseStylesheetStatement(!1)}_parseSupportsCondition(){let e=this.create(jr);if(this.acceptIdent("not"))e.addChild(this._parseSupportsConditionInParens());else if(e.addChild(this._parseSupportsConditionInParens()),this.peekRegExp(m.Ident,/^(and|or)$/i)){let n=this.token.text.toLowerCase();for(;this.acceptIdent(n);)e.addChild(this._parseSupportsConditionInParens())}return this.finish(e)}_parseSupportsConditionInParens(){let e=this.create(jr);if(this.accept(m.ParenthesisL))return this.prevToken&&(e.lParent=this.prevToken.offset),!e.addChild(this._tryToParseDeclaration([m.ParenthesisR]))&&!this._parseSupportsCondition()?this.finish(e,q.ConditionExpected):this.accept(m.ParenthesisR)?(this.prevToken&&(e.rParent=this.prevToken.offset),this.finish(e)):this.finish(e,q.RightParenthesisExpected,[m.ParenthesisR],[]);if(this.peek(m.Ident)){let n=this.mark();if(this.consumeToken(),!this.hasWhitespace()&&this.accept(m.ParenthesisL)){let r=1;for(;this.token.type!==m.EOF&&r!==0;)this.token.type===m.ParenthesisL?r++:this.token.type===m.ParenthesisR&&r--,this.consumeToken();return this.finish(e)}else this.restoreAtMark(n)}return this.finish(e,q.LeftParenthesisExpected,[],[m.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;let n=this.create(Jo);return this.consumeToken(),n.addChild(this._parseMediaQueryList())?this._parseBody(n,this._parseMediaDeclaration.bind(this,e)):this.finish(n,q.MediaQueryExpected)}_parseMediaQueryList(){let e=this.create(Xo);if(!e.addChild(this._parseMediaQuery()))return this.finish(e,q.MediaQueryExpected);for(;this.accept(m.Comma);)if(!e.addChild(this._parseMediaQuery()))return this.finish(e,q.MediaQueryExpected);return this.finish(e)}_parseMediaQuery(){let e=this.create(Qo),n=this.mark();if(this.acceptIdent("not"),this.peek(m.ParenthesisL))this.restoreAtMark(n),e.addChild(this._parseMediaCondition());else{if(this.acceptIdent("only"),!e.addChild(this._parseIdent()))return null;this.acceptIdent("and")&&e.addChild(this._parseMediaCondition())}return this.finish(e)}_parseRatio(){let e=this.mark(),n=this.create(iu);return this._parseNumeric()?this.acceptDelim("/")?this._parseNumeric()?this.finish(n):this.finish(n,q.NumberExpected):(this.restoreAtMark(e),null):null}_parseMediaCondition(){let e=this.create(Yc);this.acceptIdent("not");let n=!0;for(;n;){if(!this.accept(m.ParenthesisL))return this.finish(e,q.LeftParenthesisExpected,[],[m.CurlyL]);if(this.peek(m.ParenthesisL)||this.peekIdent("not")?e.addChild(this._parseMediaCondition()):e.addChild(this._parseMediaFeature()),!this.accept(m.ParenthesisR))return this.finish(e,q.RightParenthesisExpected,[],[m.CurlyL]);n=this.acceptIdent("and")||this.acceptIdent("or")}return this.finish(e)}_parseMediaFeature(){let e=[m.ParenthesisR],n=this.create(Zc);if(n.addChild(this._parseMediaFeatureName())){if(this.accept(m.Colon)){if(!n.addChild(this._parseMediaFeatureValue()))return this.finish(n,q.TermExpected,[],e)}else if(this._parseMediaFeatureRangeOperator()){if(!n.addChild(this._parseMediaFeatureValue()))return this.finish(n,q.TermExpected,[],e);if(this._parseMediaFeatureRangeOperator()&&!n.addChild(this._parseMediaFeatureValue()))return this.finish(n,q.TermExpected,[],e)}}else if(n.addChild(this._parseMediaFeatureValue())){if(!this._parseMediaFeatureRangeOperator())return this.finish(n,q.OperatorExpected,[],e);if(!n.addChild(this._parseMediaFeatureName()))return this.finish(n,q.IdentifierExpected,[],e);if(this._parseMediaFeatureRangeOperator()&&!n.addChild(this._parseMediaFeatureValue()))return this.finish(n,q.TermExpected,[],e)}else return this.finish(n,q.IdentifierExpected,[],e);return this.finish(n)}_parseMediaFeatureRangeOperator(){return this.acceptDelim("<")||this.acceptDelim(">")?(this.hasWhitespace()||this.acceptDelim("="),!0):!!this.acceptDelim("=")}_parseMediaFeatureName(){return this._parseIdent()}_parseMediaFeatureValue(){return this._parseRatio()||this._parseTermExpression()}_parseMedium(){let e=this.create(fe);return e.addChild(this._parseIdent())?this.finish(e):null}_parsePageDeclaration(){return this._parsePageMarginBox()||this._parseRuleSetDeclaration()}_parsePage(){if(!this.peekKeyword("@page"))return null;let e=this.create(eu);if(this.consumeToken(),e.addChild(this._parsePageSelector())){for(;this.accept(m.Comma);)if(!e.addChild(this._parsePageSelector()))return this.finish(e,q.IdentifierExpected)}return this._parseBody(e,this._parsePageDeclaration.bind(this))}_parsePageMarginBox(){if(!this.peek(m.AtKeyword))return null;let e=this.create(tu);return this.acceptOneKeyword(Lx)||this.markError(e,q.UnknownAtRule,[],[m.CurlyL]),this._parseBody(e,this._parseRuleSetDeclaration.bind(this))}_parsePageSelector(){if(!this.peek(m.Ident)&&!this.peek(m.Colon))return null;let e=this.create(fe);return e.addChild(this._parseIdent()),this.accept(m.Colon)&&!e.addChild(this._parseIdent())?this.finish(e,q.IdentifierExpected):this.finish(e)}_parseDocument(){if(!this.peekKeyword("@-moz-document"))return null;let e=this.create(Qc);return this.consumeToken(),this.resync([],[m.CurlyL]),this._parseBody(e,this._parseStylesheetStatement.bind(this))}_parseUnknownAtRule(){if(!this.peek(m.AtKeyword))return null;let e=this.create(Zo);e.addChild(this._parseUnknownAtRuleName());let n=()=>i===0&&o===0&&s===0,r=0,i=0,o=0,s=0;e:for(;;){switch(this.token.type){case m.SemiColon:if(n())break e;break;case m.EOF:return i>0?this.finish(e,q.RightCurlyExpected):s>0?this.finish(e,q.RightSquareBracketExpected):o>0?this.finish(e,q.RightParenthesisExpected):this.finish(e);case m.CurlyL:r++,i++;break;case m.CurlyR:if(i--,r>0&&i===0){if(this.consumeToken(),s>0)return this.finish(e,q.RightSquareBracketExpected);if(o>0)return this.finish(e,q.RightParenthesisExpected);break e}if(i<0){if(o===0&&s===0)break e;return this.finish(e,q.LeftCurlyExpected)}break;case m.ParenthesisL:o++;break;case m.ParenthesisR:if(o--,o<0)return this.finish(e,q.LeftParenthesisExpected);break;case m.BracketL:s++;break;case m.BracketR:if(s--,s<0)return this.finish(e,q.LeftSquareBracketExpected);break}this.consumeToken()}return e}_parseUnknownAtRuleName(){let e=this.create(fe);return this.accept(m.AtKeyword)?this.finish(e):e}_parseOperator(){if(this.peekDelim("/")||this.peekDelim("*")||this.peekDelim("+")||this.peekDelim("-")||this.peek(m.Dashmatch)||this.peek(m.Includes)||this.peek(m.SubstringOperator)||this.peek(m.PrefixOperator)||this.peek(m.SuffixOperator)||this.peekDelim("=")){let e=this.createNode(A.Operator);return this.consumeToken(),this.finish(e)}else return null}_parseUnaryOperator(){if(!this.peekDelim("+")&&!this.peekDelim("-"))return null;let e=this.create(fe);return this.consumeToken(),this.finish(e)}_parseCombinator(){if(this.peekDelim(">")){let e=this.create(fe);this.consumeToken();let n=this.mark();if(!this.hasWhitespace()&&this.acceptDelim(">")){if(!this.hasWhitespace()&&this.acceptDelim(">"))return e.type=A.SelectorCombinatorShadowPiercingDescendant,this.finish(e);this.restoreAtMark(n)}return e.type=A.SelectorCombinatorParent,this.finish(e)}else if(this.peekDelim("+")){let e=this.create(fe);return this.consumeToken(),e.type=A.SelectorCombinatorSibling,this.finish(e)}else if(this.peekDelim("~")){let e=this.create(fe);return this.consumeToken(),e.type=A.SelectorCombinatorAllSiblings,this.finish(e)}else if(this.peekDelim("/")){let e=this.create(fe);this.consumeToken();let n=this.mark();if(!this.hasWhitespace()&&this.acceptIdent("deep")&&!this.hasWhitespace()&&this.acceptDelim("/"))return e.type=A.SelectorCombinatorShadowPiercingDescendant,this.finish(e);this.restoreAtMark(n)}return null}_parseSimpleSelector(){let e=this.create(xn),n=0;for(e.addChild(this._parseElementName())&&n++;(n===0||!this.hasWhitespace())&&e.addChild(this._parseSimpleSelectorBody());)n++;return n>0?this.finish(e):null}_parseSimpleSelectorBody(){return this._parsePseudo()||this._parseHash()||this._parseClass()||this._parseAttrib()}_parseSelectorIdent(){return this._parseIdent()}_parseHash(){if(!this.peek(m.Hash)&&!this.peekDelim("#"))return null;let e=this.createNode(A.IdentifierSelector);if(this.acceptDelim("#")){if(this.hasWhitespace()||!e.addChild(this._parseSelectorIdent()))return this.finish(e,q.IdentifierExpected)}else this.consumeToken();return this.finish(e)}_parseClass(){if(!this.peekDelim("."))return null;let e=this.createNode(A.ClassSelector);return this.consumeToken(),this.hasWhitespace()||!e.addChild(this._parseSelectorIdent())?this.finish(e,q.IdentifierExpected):this.finish(e)}_parseElementName(){let e=this.mark(),n=this.createNode(A.ElementNameSelector);return n.addChild(this._parseNamespacePrefix()),!n.addChild(this._parseSelectorIdent())&&!this.acceptDelim("*")?(this.restoreAtMark(e),null):this.finish(n)}_parseNamespacePrefix(){let e=this.mark(),n=this.createNode(A.NamespacePrefix);return!n.addChild(this._parseIdent())&&this.acceptDelim("*"),this.acceptDelim("|")?this.finish(n):(this.restoreAtMark(e),null)}_parseAttrib(){if(!this.peek(m.BracketL))return null;let e=this.create(ru);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(m.BracketR)?this.finish(e):this.finish(e,q.RightSquareBracketExpected)):this.finish(e,q.IdentifierExpected)}_parsePseudo(){let e=this._tryParsePseudoIdentifier();if(e){if(!this.hasWhitespace()&&this.accept(m.ParenthesisL)){let n=()=>{let r=this.create(fe);if(!r.addChild(this._parseSelector(!0)))return null;for(;this.accept(m.Comma)&&r.addChild(this._parseSelector(!0)););return this.peek(m.ParenthesisR)?this.finish(r):null};if(e.addChild(this.try(n)||this._parseBinaryExpr()),!this.accept(m.ParenthesisR))return this.finish(e,q.RightParenthesisExpected)}return this.finish(e)}return null}_tryParsePseudoIdentifier(){if(!this.peek(m.Colon))return null;let e=this.mark(),n=this.createNode(A.PseudoSelector);return this.consumeToken(),this.hasWhitespace()?(this.restoreAtMark(e),null):(this.accept(m.Colon),this.hasWhitespace()||!n.addChild(this._parseIdent())?this.finish(n,q.IdentifierExpected):this.finish(n))}_tryParsePrio(){let e=this.mark(),n=this._parsePrio();return n||(this.restoreAtMark(e),null)}_parsePrio(){if(!this.peek(m.Exclamation))return null;let e=this.createNode(A.Prio);return this.accept(m.Exclamation)&&this.acceptIdent("important")?this.finish(e):null}_parseExpr(e=!1){let n=this.create(Yo);if(!n.addChild(this._parseBinaryExpr()))return null;for(;;){if(this.peek(m.Comma)){if(e)return this.finish(n);this.consumeToken()}if(!n.addChild(this._parseBinaryExpr()))break}return this.finish(n)}_parseUnicodeRange(){if(!this.peekIdent("u"))return null;let e=this.create(Pc);return this.acceptUnicodeRange()?this.finish(e):null}_parseNamedLine(){if(!this.peek(m.BracketL))return null;let e=this.createNode(A.GridLine);for(this.consumeToken();e.addChild(this._parseIdent()););return this.accept(m.BracketR)?this.finish(e):this.finish(e,q.RightSquareBracketExpected)}_parseBinaryExpr(e,n){let r=this.create(bi);if(!r.setLeft(e||this._parseTerm()))return null;if(!r.setOperator(n||this._parseOperator()))return this.finish(r);if(!r.setRight(this._parseTerm()))return this.finish(r,q.TermExpected);r=this.finish(r);let i=this._parseOperator();return i&&(r=this._parseBinaryExpr(r,i)),this.finish(r)}_parseTerm(){let e=this.create(nu);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(m.ParenthesisL))return null;let e=this.create(fe);return this.consumeToken(),e.addChild(this._parseExpr()),this.accept(m.ParenthesisR)?this.finish(e):this.finish(e,q.RightParenthesisExpected)}_parseNumeric(){if(this.peek(m.Num)||this.peek(m.Percentage)||this.peek(m.Resolution)||this.peek(m.Length)||this.peek(m.EMS)||this.peek(m.EXS)||this.peek(m.Angle)||this.peek(m.Time)||this.peek(m.Dimension)||this.peek(m.Freq)){let e=this.create(to);return this.consumeToken(),this.finish(e)}return null}_parseStringLiteral(){if(!this.peek(m.String)&&!this.peek(m.BadString))return null;let e=this.createNode(A.StringLiteral);return this.consumeToken(),this.finish(e)}_parseURILiteral(){if(!this.peekRegExp(m.Ident,/^url(-prefix)?$/i))return null;let e=this.mark(),n=this.createNode(A.URILiteral);return this.accept(m.Ident),this.hasWhitespace()||!this.peek(m.ParenthesisL)?(this.restoreAtMark(e),null):(this.scanner.inURL=!0,this.consumeToken(),n.addChild(this._parseURLArgument()),this.scanner.inURL=!1,this.accept(m.ParenthesisR)?this.finish(n):this.finish(n,q.RightParenthesisExpected))}_parseURLArgument(){let e=this.create(fe);return!this.accept(m.String)&&!this.accept(m.BadString)&&!this.acceptUnquotedString()?null:this.finish(e)}_parseIdent(e){if(!this.peek(m.Ident))return null;let n=this.create(Ft);return e&&(n.referenceTypes=e),n.isCustomProperty=this.peekRegExp(m.Ident,/^--/),this.consumeToken(),this.finish(n)}_parseFunction(){let e=this.mark(),n=this.create(Vn);if(!n.setIdentifier(this._parseFunctionIdentifier()))return null;if(this.hasWhitespace()||!this.accept(m.ParenthesisL))return this.restoreAtMark(e),null;if(n.getArguments().addChild(this._parseFunctionArgument()))for(;this.accept(m.Comma)&&!this.peek(m.ParenthesisR);)n.getArguments().addChild(this._parseFunctionArgument())||this.markError(n,q.ExpressionExpected);return this.accept(m.ParenthesisR)?this.finish(n):this.finish(n,q.RightParenthesisExpected)}_parseFunctionIdentifier(){if(!this.peek(m.Ident))return null;let e=this.create(Ft);if(e.referenceTypes=[De.Function],this.acceptIdent("progid")){if(this.accept(m.Colon))for(;this.accept(m.Ident)&&this.acceptDelim("."););return this.finish(e)}return this.consumeToken(),this.finish(e)}_parseFunctionArgument(){let e=this.create(dn);return e.setValue(this._parseExpr(!0))?this.finish(e):null}_parseHexColor(){if(this.peekRegExp(m.Hash,/^#([A-Fa-f0-9]{3}|[A-Fa-f0-9]{4}|[A-Fa-f0-9]{6}|[A-Fa-f0-9]{8})$/g)){let e=this.create(eo);return this.consumeToken(),this.finish(e)}else return null}}});function qx(t,e){let n=0,r=t.length;if(r===0)return 0;for(;n<r;){let i=Math.floor((n+r)/2);e(t[i])?r=i:n=i+1}return n}function yf(t,e){return t.indexOf(e)!==-1}function Ta(...t){let e=[];for(let n of t)for(let r of n)yf(e,r)||e.push(r);return e}var bu=ue(()=>{"use strict"});var vu,_f,is,Sf,ro,xf=ue(()=>{"use strict";Bt();bu();vu=class{constructor(e,n){this.offset=e,this.length=n,this.symbols=[],this.parent=null,this.children=[]}addChild(e){this.children.push(e),e.setParent(this)}setParent(e){this.parent=e}findScope(e,n=0){return this.offset<=e&&this.offset+this.length>e+n||this.offset===e&&this.length===n?this.findInScope(e,n):null}findInScope(e,n=0){let r=e+n,i=qx(this.children,s=>s.offset>r);if(i===0)return this;let o=this.children[i-1];return o.offset<=e&&o.offset+o.length>=e+n?o.findInScope(e,n):this}addSymbol(e){this.symbols.push(e)}getSymbol(e,n){for(let r=0;r<this.symbols.length;r++){let i=this.symbols[r];if(i.name===e&&i.type===n)return i}return null}getSymbols(){return this.symbols}},_f=class extends vu{constructor(){super(0,Number.MAX_VALUE)}},is=class{constructor(e,n,r,i){this.name=e,this.value=n,this.node=r,this.type=i}},Sf=class{constructor(e){this.scope=e}addSymbol(e,n,r,i){if(e.offset!==-1){let o=this.scope.findScope(e.offset,e.length);o&&o.addSymbol(new is(n,r,e,i))}}addScope(e){if(e.offset!==-1){let n=this.scope.findScope(e.offset,e.length);if(n&&(n.offset!==e.offset||n.length!==e.length)){let r=new vu(e.offset,e.length);return n.addChild(r),r}return n}return null}addSymbolToChildScope(e,n,r,i,o){if(e&&e.offset!==-1){let s=this.addScope(e);s&&s.addSymbol(new is(r,i,n,o))}}visitNode(e){switch(e.type){case A.Keyframe:return this.addSymbol(e,e.getName(),void 0,De.Keyframe),!0;case A.CustomPropertyDeclaration:return this.visitCustomPropertyDeclarationNode(e);case A.VariableDeclaration:return this.visitVariableDeclarationNode(e);case A.Ruleset:return this.visitRuleSet(e);case A.MixinDeclaration:return this.addSymbol(e,e.getName(),void 0,De.Mixin),!0;case A.FunctionDeclaration:return this.addSymbol(e,e.getName(),void 0,De.Function),!0;case A.FunctionParameter:return this.visitFunctionParameterNode(e);case A.Declarations:return this.addScope(e),!0;case A.For:let n=e,r=n.getDeclarations();return r&&n.variable&&this.addSymbolToChildScope(r,n.variable,n.variable.getName(),void 0,De.Variable),!0;case A.Each:{let i=e,o=i.getDeclarations();if(o){let s=i.getVariables().getChildren();for(let l of s)this.addSymbolToChildScope(o,l,l.getName(),void 0,De.Variable)}return!0}}return!0}visitRuleSet(e){let n=this.scope.findScope(e.offset,e.length);if(n)for(let r of e.getSelectors().getChildren())r instanceof Sn&&r.getChildren().length===1&&n.addSymbol(new is(r.getChild(0).getText(),void 0,r,De.Rule));return!0}visitVariableDeclarationNode(e){let n=e.getValue()?e.getValue().getText():void 0;return this.addSymbol(e,e.getName(),n,De.Variable),!0}visitFunctionParameterNode(e){let n=e.getParent().getDeclarations();if(n){let r=e.getDefaultValue(),i=r?r.getText():void 0;this.addSymbolToChildScope(n,e,e.getName(),i,De.Variable)}return!0}visitCustomPropertyDeclarationNode(e){let n=e.getValue()?e.getValue().getText():"";return this.addCSSVariable(e.getProperty(),e.getProperty().getName(),n,De.Variable),!0}addCSSVariable(e,n,r,i){e.offset!==-1&&this.scope.addSymbol(new is(n,r,e,i))}},ro=class{constructor(e){this.global=new _f,e.acceptVisitor(new Sf(this.global))}findSymbolsAtOffset(e,n){let r=this.global.findScope(e,0),i=[],o={};for(;r;){let s=r.getSymbols();for(let l=0;l<s.length;l++){let a=s[l];a.type===n&&!o[a.name]&&(i.push(a),o[a.name]=!0)}r=r.parent}return i}internalFindSymbol(e,n){let r=e;if(e.parent instanceof pr&&e.parent.getParent()instanceof Ve&&(r=e.parent.getParent().getDeclarations()),e.parent instanceof dn&&e.parent.getParent()instanceof Vn){let s=e.parent.getParent().getIdentifier();if(s){let l=this.internalFindSymbol(s,[De.Function]);l&&(r=l.node.getDeclarations())}}if(!r)return null;let i=e.getText(),o=this.global.findScope(r.offset,r.length);for(;o;){for(let s=0;s<n.length;s++){let l=n[s],a=o.getSymbol(i,l);if(a)return a}o=o.parent}return null}evaluateReferenceTypes(e){if(e instanceof Ft){let r=e.referenceTypes;if(r)return r;{if(e.isCustomProperty)return[De.Variable];let i=wx(e);if(i){let o=i.getNonPrefixedPropertyName();if((o==="animation"||o==="animation-name")&&i.getValue()&&i.getValue().offset===e.offset)return[De.Keyframe]}}}else if(e instanceof vi)return[De.Variable];return e.findAParent(A.Selector,A.ExtendsReference)?[De.Rule]:null}findSymbolFromNode(e){if(!e)return null;for(;e.type===A.Interpolation;)e=e.getParent();let n=this.evaluateReferenceTypes(e);return n?this.internalFindSymbol(e,n):null}matchesSymbol(e,n){if(!e)return!1;for(;e.type===A.Interpolation;)e=e.getParent();if(!e.matches(n.name))return!1;let r=this.evaluateReferenceTypes(e);return!r||r.indexOf(n.type)===-1?!1:this.internalFindSymbol(e,r)===n}findSymbol(e,n,r){let i=this.global.findScope(r);for(;i;){let o=i.getSymbol(e,n);if(o)return o;i=i.parent}return null}}});var Ux,Ea,br,kf=ue(()=>{(()=>{"use strict";var t={470:i=>{function o(a){if(typeof a!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(a))}function s(a,c){for(var u,d="",h=0,p=-1,w=0,v=0;v<=a.length;++v){if(v<a.length)u=a.charCodeAt(v);else{if(u===47)break;u=47}if(u===47){if(!(p===v-1||w===1))if(p!==v-1&&w===2){if(d.length<2||h!==2||d.charCodeAt(d.length-1)!==46||d.charCodeAt(d.length-2)!==46){if(d.length>2){var x=d.lastIndexOf("/");if(x!==d.length-1){x===-1?(d="",h=0):h=(d=d.slice(0,x)).length-1-d.lastIndexOf("/"),p=v,w=0;continue}}else if(d.length===2||d.length===1){d="",h=0,p=v,w=0;continue}}c&&(d.length>0?d+="/..":d="..",h=2)}else d.length>0?d+="/"+a.slice(p+1,v):d=a.slice(p+1,v),h=v-p-1;p=v,w=0}else u===46&&w!==-1?++w:w=-1}return d}var l={resolve:function(){for(var a,c="",u=!1,d=arguments.length-1;d>=-1&&!u;d--){var h;d>=0?h=arguments[d]:(a===void 0&&(a=process.cwd()),h=a),o(h),h.length!==0&&(c=h+"/"+c,u=h.charCodeAt(0)===47)}return c=s(c,!u),u?c.length>0?"/"+c:"/":c.length>0?c:"."},normalize:function(a){if(o(a),a.length===0)return".";var c=a.charCodeAt(0)===47,u=a.charCodeAt(a.length-1)===47;return(a=s(a,!c)).length!==0||c||(a="."),a.length>0&&u&&(a+="/"),c?"/"+a:a},isAbsolute:function(a){return o(a),a.length>0&&a.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var a,c=0;c<arguments.length;++c){var u=arguments[c];o(u),u.length>0&&(a===void 0?a=u:a+="/"+u)}return a===void 0?".":l.normalize(a)},relative:function(a,c){if(o(a),o(c),a===c||(a=l.resolve(a))===(c=l.resolve(c)))return"";for(var u=1;u<a.length&&a.charCodeAt(u)===47;++u);for(var d=a.length,h=d-u,p=1;p<c.length&&c.charCodeAt(p)===47;++p);for(var w=c.length-p,v=h<w?h:w,x=-1,_=0;_<=v;++_){if(_===v){if(w>v){if(c.charCodeAt(p+_)===47)return c.slice(p+_+1);if(_===0)return c.slice(p+_)}else h>v&&(a.charCodeAt(u+_)===47?x=_:_===0&&(x=0));break}var f=a.charCodeAt(u+_);if(f!==c.charCodeAt(p+_))break;f===47&&(x=_)}var g="";for(_=u+x+1;_<=d;++_)_!==d&&a.charCodeAt(_)!==47||(g.length===0?g+="..":g+="/..");return g.length>0?g+c.slice(p+x):(p+=x,c.charCodeAt(p)===47&&++p,c.slice(p))},_makeLong:function(a){return a},dirname:function(a){if(o(a),a.length===0)return".";for(var c=a.charCodeAt(0),u=c===47,d=-1,h=!0,p=a.length-1;p>=1;--p)if((c=a.charCodeAt(p))===47){if(!h){d=p;break}}else h=!1;return d===-1?u?"/":".":u&&d===1?"//":a.slice(0,d)},basename:function(a,c){if(c!==void 0&&typeof c!="string")throw new TypeError('"ext" argument must be a string');o(a);var u,d=0,h=-1,p=!0;if(c!==void 0&&c.length>0&&c.length<=a.length){if(c.length===a.length&&c===a)return"";var w=c.length-1,v=-1;for(u=a.length-1;u>=0;--u){var x=a.charCodeAt(u);if(x===47){if(!p){d=u+1;break}}else v===-1&&(p=!1,v=u+1),w>=0&&(x===c.charCodeAt(w)?--w==-1&&(h=u):(w=-1,h=v))}return d===h?h=v:h===-1&&(h=a.length),a.slice(d,h)}for(u=a.length-1;u>=0;--u)if(a.charCodeAt(u)===47){if(!p){d=u+1;break}}else h===-1&&(p=!1,h=u+1);return h===-1?"":a.slice(d,h)},extname:function(a){o(a);for(var c=-1,u=0,d=-1,h=!0,p=0,w=a.length-1;w>=0;--w){var v=a.charCodeAt(w);if(v!==47)d===-1&&(h=!1,d=w+1),v===46?c===-1?c=w:p!==1&&(p=1):c!==-1&&(p=-1);else if(!h){u=w+1;break}}return c===-1||d===-1||p===0||p===1&&c===d-1&&c===u+1?"":a.slice(c,d)},format:function(a){if(a===null||typeof a!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof a);return function(c,u){var d=u.dir||u.root,h=u.base||(u.name||"")+(u.ext||"");return d?d===u.root?d+h:d+"/"+h:h}(0,a)},parse:function(a){o(a);var c={root:"",dir:"",base:"",ext:"",name:""};if(a.length===0)return c;var u,d=a.charCodeAt(0),h=d===47;h?(c.root="/",u=1):u=0;for(var p=-1,w=0,v=-1,x=!0,_=a.length-1,f=0;_>=u;--_)if((d=a.charCodeAt(_))!==47)v===-1&&(x=!1,v=_+1),d===46?p===-1?p=_:f!==1&&(f=1):p!==-1&&(f=-1);else if(!x){w=_+1;break}return p===-1||v===-1||f===0||f===1&&p===v-1&&p===w+1?v!==-1&&(c.base=c.name=w===0&&h?a.slice(1,v):a.slice(w,v)):(w===0&&h?(c.name=a.slice(1,p),c.base=a.slice(1,v)):(c.name=a.slice(w,p),c.base=a.slice(w,v)),c.ext=a.slice(p,v)),w>0?c.dir=a.slice(0,w-1):h&&(c.dir="/"),c},sep:"/",delimiter:":",win32:null,posix:null};l.posix=l,i.exports=l}},e={};function n(i){var o=e[i];if(o!==void 0)return o.exports;var s=e[i]={exports:{}};return t[i](s,s.exports,n),s.exports}n.d=(i,o)=>{for(var s in o)n.o(o,s)&&!n.o(i,s)&&Object.defineProperty(i,s,{enumerable:!0,get:o[s]})},n.o=(i,o)=>Object.prototype.hasOwnProperty.call(i,o),n.r=i=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(i,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(i,"__esModule",{value:!0})};var r={};(()=>{var i;if(n.r(r),n.d(r,{URI:()=>x,Utils:()=>N}),typeof process=="object")i=process.platform==="win32";else if(typeof navigator=="object"){var o=navigator.userAgent;i=o.indexOf("Windows")>=0}var s,l,a=(s=function(P,R){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(J,Q){J.__proto__=Q}||function(J,Q){for(var re in Q)Object.prototype.hasOwnProperty.call(Q,re)&&(J[re]=Q[re])},s(P,R)},function(P,R){if(typeof R!="function"&&R!==null)throw new TypeError("Class extends value "+String(R)+" is not a constructor or null");function J(){this.constructor=P}s(P,R),P.prototype=R===null?Object.create(R):(J.prototype=R.prototype,new J)}),c=/^\w[\w\d+.-]*$/,u=/^\//,d=/^\/\//;function h(P,R){if(!P.scheme&&R)throw new Error('[UriError]: Scheme is missing: {scheme: "", authority: "'.concat(P.authority,'", path: "').concat(P.path,'", query: "').concat(P.query,'", fragment: "').concat(P.fragment,'"}'));if(P.scheme&&!c.test(P.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(P.path){if(P.authority){if(!u.test(P.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(d.test(P.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}}var p="",w="/",v=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/,x=function(){function P(R,J,Q,re,de,se){se===void 0&&(se=!1),typeof R=="object"?(this.scheme=R.scheme||p,this.authority=R.authority||p,this.path=R.path||p,this.query=R.query||p,this.fragment=R.fragment||p):(this.scheme=function(ae,pe){return ae||pe?ae:"file"}(R,se),this.authority=J||p,this.path=function(ae,pe){switch(ae){case"https":case"http":case"file":pe?pe[0]!==w&&(pe=w+pe):pe=w}return pe}(this.scheme,Q||p),this.query=re||p,this.fragment=de||p,h(this,se))}return P.isUri=function(R){return R instanceof P||!!R&&typeof R.authority=="string"&&typeof R.fragment=="string"&&typeof R.path=="string"&&typeof R.query=="string"&&typeof R.scheme=="string"&&typeof R.fsPath=="string"&&typeof R.with=="function"&&typeof R.toString=="function"},Object.defineProperty(P.prototype,"fsPath",{get:function(){return K(this,!1)},enumerable:!1,configurable:!0}),P.prototype.with=function(R){if(!R)return this;var J=R.scheme,Q=R.authority,re=R.path,de=R.query,se=R.fragment;return J===void 0?J=this.scheme:J===null&&(J=p),Q===void 0?Q=this.authority:Q===null&&(Q=p),re===void 0?re=this.path:re===null&&(re=p),de===void 0?de=this.query:de===null&&(de=p),se===void 0?se=this.fragment:se===null&&(se=p),J===this.scheme&&Q===this.authority&&re===this.path&&de===this.query&&se===this.fragment?this:new f(J,Q,re,de,se)},P.parse=function(R,J){J===void 0&&(J=!1);var Q=v.exec(R);return Q?new f(Q[2]||p,oe(Q[4]||p),oe(Q[5]||p),oe(Q[7]||p),oe(Q[9]||p),J):new f(p,p,p,p,p)},P.file=function(R){var J=p;if(i&&(R=R.replace(/\\/g,w)),R[0]===w&&R[1]===w){var Q=R.indexOf(w,2);Q===-1?(J=R.substring(2),R=w):(J=R.substring(2,Q),R=R.substring(Q)||w)}return new f("file",J,R,p,p)},P.from=function(R){var J=new f(R.scheme,R.authority,R.path,R.query,R.fragment);return h(J,!0),J},P.prototype.toString=function(R){return R===void 0&&(R=!1),C(this,R)},P.prototype.toJSON=function(){return this},P.revive=function(R){if(R){if(R instanceof P)return R;var J=new f(R);return J._formatted=R.external,J._fsPath=R._sep===_?R.fsPath:null,J}return R},P}(),_=i?1:void 0,f=function(P){function R(){var J=P!==null&&P.apply(this,arguments)||this;return J._formatted=null,J._fsPath=null,J}return a(R,P),Object.defineProperty(R.prototype,"fsPath",{get:function(){return this._fsPath||(this._fsPath=K(this,!1)),this._fsPath},enumerable:!1,configurable:!0}),R.prototype.toString=function(J){return J===void 0&&(J=!1),J?C(this,!0):(this._formatted||(this._formatted=C(this,!1)),this._formatted)},R.prototype.toJSON=function(){var J={$mid:1};return this._fsPath&&(J.fsPath=this._fsPath,J._sep=_),this._formatted&&(J.external=this._formatted),this.path&&(J.path=this.path),this.scheme&&(J.scheme=this.scheme),this.authority&&(J.authority=this.authority),this.query&&(J.query=this.query),this.fragment&&(J.fragment=this.fragment),J},R}(x),g=((l={})[58]="%3A",l[47]="%2F",l[63]="%3F",l[35]="%23",l[91]="%5B",l[93]="%5D",l[64]="%40",l[33]="%21",l[36]="%24",l[38]="%26",l[39]="%27",l[40]="%28",l[41]="%29",l[42]="%2A",l[43]="%2B",l[44]="%2C",l[59]="%3B",l[61]="%3D",l[32]="%20",l);function D(P,R,J){for(var Q=void 0,re=-1,de=0;de<P.length;de++){var se=P.charCodeAt(de);if(se>=97&&se<=122||se>=65&&se<=90||se>=48&&se<=57||se===45||se===46||se===95||se===126||R&&se===47||J&&se===91||J&&se===93||J&&se===58)re!==-1&&(Q+=encodeURIComponent(P.substring(re,de)),re=-1),Q!==void 0&&(Q+=P.charAt(de));else{Q===void 0&&(Q=P.substr(0,de));var ae=g[se];ae!==void 0?(re!==-1&&(Q+=encodeURIComponent(P.substring(re,de)),re=-1),Q+=ae):re===-1&&(re=de)}}return re!==-1&&(Q+=encodeURIComponent(P.substring(re))),Q!==void 0?Q:P}function L(P){for(var R=void 0,J=0;J<P.length;J++){var Q=P.charCodeAt(J);Q===35||Q===63?(R===void 0&&(R=P.substr(0,J)),R+=g[Q]):R!==void 0&&(R+=P[J])}return R!==void 0?R:P}function K(P,R){var J;return J=P.authority&&P.path.length>1&&P.scheme==="file"?"//".concat(P.authority).concat(P.path):P.path.charCodeAt(0)===47&&(P.path.charCodeAt(1)>=65&&P.path.charCodeAt(1)<=90||P.path.charCodeAt(1)>=97&&P.path.charCodeAt(1)<=122)&&P.path.charCodeAt(2)===58?R?P.path.substr(1):P.path[1].toLowerCase()+P.path.substr(2):P.path,i&&(J=J.replace(/\//g,"\\")),J}function C(P,R){var J=R?L:D,Q="",re=P.scheme,de=P.authority,se=P.path,ae=P.query,pe=P.fragment;if(re&&(Q+=re,Q+=":"),(de||re==="file")&&(Q+=w,Q+=w),de){var xe=de.indexOf("@");if(xe!==-1){var B=de.substr(0,xe);de=de.substr(xe+1),(xe=B.lastIndexOf(":"))===-1?Q+=J(B,!1,!1):(Q+=J(B.substr(0,xe),!1,!1),Q+=":",Q+=J(B.substr(xe+1),!1,!0)),Q+="@"}(xe=(de=de.toLowerCase()).lastIndexOf(":"))===-1?Q+=J(de,!1,!0):(Q+=J(de.substr(0,xe),!1,!0),Q+=de.substr(xe))}if(se){if(se.length>=3&&se.charCodeAt(0)===47&&se.charCodeAt(2)===58)(Y=se.charCodeAt(1))>=65&&Y<=90&&(se="/".concat(String.fromCharCode(Y+32),":").concat(se.substr(3)));else if(se.length>=2&&se.charCodeAt(1)===58){var Y;(Y=se.charCodeAt(0))>=65&&Y<=90&&(se="".concat(String.fromCharCode(Y+32),":").concat(se.substr(2)))}Q+=J(se,!0,!1)}return ae&&(Q+="?",Q+=J(ae,!1,!1)),pe&&(Q+="#",Q+=R?pe:D(pe,!1,!1)),Q}function T(P){try{return decodeURIComponent(P)}catch{return P.length>3?P.substr(0,3)+T(P.substr(3)):P}}var M=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function oe(P){return P.match(M)?P.replace(M,function(R){return T(R)}):P}var N,W=n(470),V=function(P,R,J){if(J||arguments.length===2)for(var Q,re=0,de=R.length;re<de;re++)!Q&&re in R||(Q||(Q=Array.prototype.slice.call(R,0,re)),Q[re]=R[re]);return P.concat(Q||Array.prototype.slice.call(R))},G=W.posix||W,U="/";(function(P){P.joinPath=function(R){for(var J=[],Q=1;Q<arguments.length;Q++)J[Q-1]=arguments[Q];return R.with({path:G.join.apply(G,V([R.path],J,!1))})},P.resolvePath=function(R){for(var J=[],Q=1;Q<arguments.length;Q++)J[Q-1]=arguments[Q];var re=R.path,de=!1;re[0]!==U&&(re=U+re,de=!0);var se=G.resolve.apply(G,V([re],J,!1));return de&&se[0]===U&&!R.authority&&(se=se.substring(1)),R.with({path:se})},P.dirname=function(R){if(R.path.length===0||R.path===U)return R;var J=G.dirname(R.path);return J.length===1&&J.charCodeAt(0)===46&&(J=""),R.with({path:J})},P.basename=function(R){return G.basename(R.path)},P.extname=function(R){return G.extname(R.path)}})(N||(N={}))})(),Ux=r})();({URI:Ea,Utils:br}=Ux)});function wu(t){return br.dirname(Ea.parse(t)).toString(!0)}function Da(t,...e){return br.joinPath(Ea.parse(t),...e).toString(!0)}var Cf=ue(()=>{kf()});function Tf(t){return ot(t,"'")||ot(t,'"')?t.slice(1,-1):t}function BP(t,e,n){let r,i=t.lastIndexOf("/");if(i===-1)r=n;else{let o=e.slice(i+1),s=Su(n.end,-o.length),l=o.indexOf(" "),a;l!==-1?a=Su(s,l):a=n.end,r=E.Range.create(s,a)}return r}function $P(t,e,n){return e?(t=t+"/",{label:yu(t),kind:E.CompletionItemKind.Folder,textEdit:E.TextEdit.replace(n,yu(t)),command:{title:"Suggest",command:"editor.action.triggerSuggest"}}):{label:yu(t),kind:E.CompletionItemKind.File,textEdit:E.TextEdit.replace(n,yu(t))}}function yu(t){return t.replace(/(\s|\(|\)|,|"|')/g,"\\$1")}function Su(t,e){return E.Position.create(t.line,t.character+e)}function VP(t,e,n){let r=Su(t.start,e),i=Su(t.end,n);return E.Range.create(r,i)}var _u,HP,jx=ue(()=>{hn();qr();Cf();_u=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,n){let r={items:[],isIncomplete:!1};for(let i of this.literalCompletions){let o=i.uriValue,s=Tf(o);if(s==="."||s==="..")r.isIncomplete=!0;else{let l=await this.providePathSuggestions(o,i.position,i.range,e,n);for(let a of l)r.items.push(a)}}for(let i of this.importCompletions){let o=i.pathValue,s=Tf(o);if(s==="."||s==="..")r.isIncomplete=!0;else{let l=await this.providePathSuggestions(o,i.position,i.range,e,n);e.languageId==="scss"&&l.forEach(a=>{ot(a.label,"_")&&Mc(a.label,".scss")&&(a.textEdit?a.textEdit.newText=a.label.slice(1,-5):a.label=a.label.slice(1,-5))});for(let a of l)r.items.push(a)}}return r}async providePathSuggestions(e,n,r,i,o){let s=Tf(e),l=ot(e,"'")||ot(e,'"'),a=l?s.slice(0,n.character-(r.start.character+1)):s.slice(0,n.character-r.start.character),c=i.uri,u=l?VP(r,1,-1):r,d=BP(a,s,u),h=a.substring(0,a.lastIndexOf("/")+1),p=o.resolveReference(h||".",c);if(p)try{let w=[],v=await this.readDirectory(p);for(let[x,_]of v)x.charCodeAt(0)!==HP&&(_===wi.Directory||Da(p,x)!==c)&&w.push($P(x,_===wi.Directory,d));return w}catch{}return[]}},HP=".".charCodeAt(0)});function Fa(t){return!!(t.status&&(t.status==="nonstandard"||t.status==="obsolete"))}function os(t){return t.replace(/\(\)$/,"($1)")}function KP(t,e){let n=e.getFullPropertyName(),r=new Aa;function i(l){return(l instanceof Ft||l instanceof to||l instanceof eo)&&r.add(l.getText()),!0}function o(l){let a=l.getFullPropertyName();return n===a}function s(l){if(l instanceof At&&l!==e&&o(l)){let a=l.getValue();a&&a.accept(i)}return!0}return t.accept(s),r}function GP(t,e){let n=e-1,r=t.getText();for(;n>=0&&`
|
|
533
|
-
\r":{[()]},*>+`.indexOf(r.charAt(n))===-1;)n--;return r.substring(n+1,e)}function Bx(t){return t.toLowerCase()in xa||/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i.test(t)}var Br,Hx,vr,Si,Aa,Ef,Df,xu=ue(()=>{"use strict";Bt();xf();rs();qr();hn();kn();Ca();jx();Br=E.InsertTextFormat.Snippet,Hx={title:"Suggest",command:"editor.action.triggerSuggest"};(function(t){t.Enums=" ",t.Normal="d",t.VendorPrefixed="x",t.Term="y",t.Variable="z"})(vr||(vr={}));Si=class{constructor(e=null,n,r){this.variablePrefix=e,this.lsOptions=n,this.cssDataManager=r,this.completionParticipants=[]}configure(e){this.defaultSettings=e}getSymbolContext(){return this.symbolContext||(this.symbolContext=new ro(this.styleSheet)),this.symbolContext}setCompletionParticipants(e){this.completionParticipants=e||[]}async doComplete2(e,n,r,i,o=this.defaultSettings){if(!this.lsOptions.fileSystemProvider||!this.lsOptions.fileSystemProvider.readDirectory)return this.doComplete(e,n,r,o);let s=new _u(this.lsOptions.fileSystemProvider.readDirectory),l=this.completionParticipants;this.completionParticipants=[s].concat(l);let a=this.doComplete(e,n,r,o);try{let c=await s.computeCompletions(e,i);return{isIncomplete:a.isIncomplete||c.isIncomplete,itemDefaults:a.itemDefaults,items:c.items.concat(a.items)}}finally{this.completionParticipants=l}}doComplete(e,n,r,i){this.offset=e.offsetAt(n),this.position=n,this.currentWord=GP(e,this.offset),this.defaultReplaceRange=E.Range.create(E.Position.create(this.position.line,this.position.character-this.currentWord.length),this.position),this.textDocument=e,this.styleSheet=r,this.documentSettings=i;try{let o={isIncomplete:!1,itemDefaults:{editRange:{start:{line:n.line,character:n.character-this.currentWord.length},end:n}},items:[]};this.nodePath=ns(this.styleSheet,this.offset);for(let s=this.nodePath.length-1;s>=0;s--){let l=this.nodePath[s];if(l instanceof fi)this.getCompletionsForDeclarationProperty(l.getParent(),o);else if(l instanceof Yo)l.parent instanceof no?this.getVariableProposals(null,o):this.getCompletionsForExpression(l,o);else if(l instanceof xn){let a=l.findAParent(A.ExtendsReference,A.Ruleset);if(a)if(a.type===A.ExtendsReference)this.getCompletionsForExtendsReference(a,l,o);else{let c=a;this.getCompletionsForSelector(c,c&&c.isNested(),o)}}else if(l instanceof dn)this.getCompletionsForFunctionArgument(l,l.getParent(),o);else if(l instanceof Yi)this.getCompletionsForDeclarations(l,o);else if(l instanceof mr)this.getCompletionsForVariableDeclaration(l,o);else if(l instanceof un)this.getCompletionsForRuleSet(l,o);else if(l instanceof no)this.getCompletionsForInterpolation(l,o);else if(l instanceof Ur)this.getCompletionsForFunctionDeclaration(l,o);else if(l instanceof Hr)this.getCompletionsForMixinReference(l,o);else if(l instanceof Vn)this.getCompletionsForFunctionArgument(null,l,o);else if(l instanceof Zi)this.getCompletionsForSupports(l,o);else if(l instanceof jr)this.getCompletionsForSupportsCondition(l,o);else if(l instanceof fr)this.getCompletionsForExtendsReference(l,null,o);else if(l.type===A.URILiteral)this.getCompletionForUriLiteralValue(l,o);else if(l.parent===null)this.getCompletionForTopLevel(o);else if(l.type===A.StringLiteral&&this.isImportPathParent(l.parent.type))this.getCompletionForImportPath(l,o);else continue;if(o.items.length>0||this.offset>l.offset)return this.finalize(o)}return this.getCompletionsForStylesheet(o),o.items.length===0&&this.variablePrefix&&this.currentWord.indexOf(this.variablePrefix)===0&&this.getVariableProposals(null,o),this.finalize(o)}finally{this.position=null,this.currentWord=null,this.textDocument=null,this.styleSheet=null,this.symbolContext=null,this.defaultReplaceRange=null,this.nodePath=null}}isImportPathParent(e){return e===A.Import}finalize(e){return e}findInNodePath(...e){for(let n=this.nodePath.length-1;n>=0;n--){let r=this.nodePath[n];if(e.indexOf(r.type)!==-1)return r}return null}getCompletionsForDeclarationProperty(e,n){return this.getPropertyProposals(e,n)}getPropertyProposals(e,n){let r=this.isTriggerPropertyValueCompletionEnabled,i=this.isCompletePropertyWithSemicolonEnabled;return this.cssDataManager.getProperties().forEach(s=>{let l,a,c=!1;e?(l=this.getCompletionRange(e.getProperty()),a=s.name,en(e.colonPosition)||(a+=": ",c=!0)):(l=this.getCompletionRange(null),a=s.name+": ",c=!0),!e&&i&&(a+="$0;"),e&&!e.semicolonPosition&&i&&this.offset>=this.textDocument.offsetAt(l.end)&&(a+="$0;");let u={label:s.name,documentation:gr(s,this.doesSupportMarkdown()),tags:Fa(s)?[E.CompletionItemTag.Deprecated]:[],textEdit:E.TextEdit.replace(l,a),insertTextFormat:E.InsertTextFormat.Snippet,kind:E.CompletionItemKind.Property};s.restrictions||(c=!1),r&&c&&(u.command=Hx);let d=typeof s.relevance=="number"?Math.min(Math.max(s.relevance,0),99):50,h=(255-d).toString(16),p=ot(s.name,"-")?vr.VendorPrefixed:vr.Normal;u.sortText=p+"_"+h,n.items.push(u)}),this.completionParticipants.forEach(s=>{s.onCssProperty&&s.onCssProperty({propertyName:this.currentWord,range:this.defaultReplaceRange})}),n}get isTriggerPropertyValueCompletionEnabled(){return this.documentSettings?.triggerPropertyValueCompletion??!0}get isCompletePropertyWithSemicolonEnabled(){return this.documentSettings?.completePropertyWithSemicolon??!0}getCompletionsForDeclarationValue(e,n){let r=e.getFullPropertyName(),i=this.cssDataManager.getProperty(r),o=e.getValue()||null;for(;o&&o.hasChildren();)o=o.findChildAtOffset(this.offset,!1);if(this.completionParticipants.forEach(s=>{s.onCssPropertyValue&&s.onCssPropertyValue({propertyName:r,propertyValue:this.currentWord,range:this.getCompletionRange(o)})}),i){if(i.restrictions)for(let s of i.restrictions)switch(s){case"color":this.getColorProposals(i,o,n);break;case"position":this.getPositionProposals(i,o,n);break;case"repeat":this.getRepeatStyleProposals(i,o,n);break;case"line-style":this.getLineStyleProposals(i,o,n);break;case"line-width":this.getLineWidthProposals(i,o,n);break;case"geometry-box":this.getGeometryBoxProposals(i,o,n);break;case"box":this.getBoxProposals(i,o,n);break;case"image":this.getImageProposals(i,o,n);break;case"timing-function":this.getTimingFunctionProposals(i,o,n);break;case"shape":this.getBasicShapeProposals(i,o,n);break}this.getValueEnumProposals(i,o,n),this.getCSSWideKeywordProposals(i,o,n),this.getUnitProposals(i,o,n)}else{let s=KP(this.styleSheet,e);for(let l of s.getEntries())n.items.push({label:l,textEdit:E.TextEdit.replace(this.getCompletionRange(o),l),kind:E.CompletionItemKind.Value})}return this.getVariableProposals(o,n),this.getTermProposals(i,o,n),n}getValueEnumProposals(e,n,r){if(e.values)for(let i of e.values){let o=i.name,s;if(Mc(o,")")){let c=o.lastIndexOf("(");c!==-1&&(o=o.substring(0,c+1)+"$1"+o.substring(c+1),s=Br)}let l=vr.Enums;ot(i.name,"-")&&(l+=vr.VendorPrefixed);let a={label:i.name,documentation:gr(i,this.doesSupportMarkdown()),tags:Fa(e)?[E.CompletionItemTag.Deprecated]:[],textEdit:E.TextEdit.replace(this.getCompletionRange(n),o),sortText:l,kind:E.CompletionItemKind.Value,insertTextFormat:s};r.items.push(a)}return r}getCSSWideKeywordProposals(e,n,r){for(let i in ff)r.items.push({label:i,documentation:ff[i],textEdit:E.TextEdit.replace(this.getCompletionRange(n),i),kind:E.CompletionItemKind.Value});for(let i in gf){let o=os(i);r.items.push({label:i,documentation:gf[i],textEdit:E.TextEdit.replace(this.getCompletionRange(n),o),kind:E.CompletionItemKind.Function,insertTextFormat:Br,command:ot(i,"var")?Hx:void 0})}return r}getCompletionsForInterpolation(e,n){return this.offset>=e.offset+2&&this.getVariableProposals(null,n),n}getVariableProposals(e,n){let r=this.getSymbolContext().findSymbolsAtOffset(this.offset,De.Variable);for(let i of r){let o=ot(i.name,"--")?`var(${i.name})`:i.name,s={label:i.name,documentation:i.value?rf(i.value):i.value,textEdit:E.TextEdit.replace(this.getCompletionRange(e),o),kind:E.CompletionItemKind.Variable,sortText:vr.Variable};if(typeof s.documentation=="string"&&Bx(s.documentation)&&(s.kind=E.CompletionItemKind.Color),i.node.type===A.FunctionParameter){let l=i.node.getParent();l.type===A.MixinDeclaration&&(s.detail=F("argument from '{0}'",l.getName()))}n.items.push(s)}return n}getVariableProposalsForCSSVarFunction(e){let n=new Aa;this.styleSheet.acceptVisitor(new Df(n,this.offset));let r=this.getSymbolContext().findSymbolsAtOffset(this.offset,De.Variable);for(let i of r){if(ot(i.name,"--")){let o={label:i.name,documentation:i.value?rf(i.value):i.value,textEdit:E.TextEdit.replace(this.getCompletionRange(null),i.name),kind:E.CompletionItemKind.Variable};typeof o.documentation=="string"&&Bx(o.documentation)&&(o.kind=E.CompletionItemKind.Color),e.items.push(o)}n.remove(i.name)}for(let i of n.getEntries())if(ot(i,"--")){let o={label:i,textEdit:E.TextEdit.replace(this.getCompletionRange(null),i),kind:E.CompletionItemKind.Variable};e.items.push(o)}return e}getUnitProposals(e,n,r){let i="0";if(this.currentWord.length>0){let o=this.currentWord.match(/^-?\d[\.\d+]*/);o&&(i=o[0],r.isIncomplete=i.length===this.currentWord.length)}else this.currentWord.length===0&&(r.isIncomplete=!0);if(n&&n.parent&&n.parent.type===A.Term&&(n=n.getParent()),e.restrictions)for(let o of e.restrictions){let s=mu[o];if(s)for(let l of s){let a=i+l;r.items.push({label:a,textEdit:E.TextEdit.replace(this.getCompletionRange(n),a),kind:E.CompletionItemKind.Unit})}}return r}getCompletionRange(e){if(e&&e.offset<=this.offset&&this.offset<=e.end){let n=e.end!==-1?this.textDocument.positionAt(e.end):this.position,r=this.textDocument.positionAt(e.offset);if(r.line===n.line)return E.Range.create(r,n)}return this.defaultReplaceRange}getColorProposals(e,n,r){for(let o in xa)r.items.push({label:o,documentation:xa[o],textEdit:E.TextEdit.replace(this.getCompletionRange(n),o),kind:E.CompletionItemKind.Color});for(let o in lf)r.items.push({label:o,documentation:lf[o],textEdit:E.TextEdit.replace(this.getCompletionRange(n),o),kind:E.CompletionItemKind.Value});let i=new Aa;this.styleSheet.acceptVisitor(new Ef(i,this.offset));for(let o of i.getEntries())r.items.push({label:o,textEdit:E.TextEdit.replace(this.getCompletionRange(n),o),kind:E.CompletionItemKind.Color});for(let o of Dx){let s=1,l=(c,u)=>"${"+s+++":"+u+"}",a=o.func.replace(/\[?\$(\w+)\]?/g,l);r.items.push({label:o.func.substr(0,o.func.indexOf("(")),detail:o.func,documentation:o.desc,textEdit:E.TextEdit.replace(this.getCompletionRange(n),a),insertTextFormat:Br,kind:E.CompletionItemKind.Function})}return r}getPositionProposals(e,n,r){for(let i in uf)r.items.push({label:i,documentation:uf[i],textEdit:E.TextEdit.replace(this.getCompletionRange(n),i),kind:E.CompletionItemKind.Value});return r}getRepeatStyleProposals(e,n,r){for(let i in df)r.items.push({label:i,documentation:df[i],textEdit:E.TextEdit.replace(this.getCompletionRange(n),i),kind:E.CompletionItemKind.Value});return r}getLineStyleProposals(e,n,r){for(let i in hf)r.items.push({label:i,documentation:hf[i],textEdit:E.TextEdit.replace(this.getCompletionRange(n),i),kind:E.CompletionItemKind.Value});return r}getLineWidthProposals(e,n,r){for(let i of Px)r.items.push({label:i,textEdit:E.TextEdit.replace(this.getCompletionRange(n),i),kind:E.CompletionItemKind.Value});return r}getGeometryBoxProposals(e,n,r){for(let i in mf)r.items.push({label:i,documentation:mf[i],textEdit:E.TextEdit.replace(this.getCompletionRange(n),i),kind:E.CompletionItemKind.Value});return r}getBoxProposals(e,n,r){for(let i in pf)r.items.push({label:i,documentation:pf[i],textEdit:E.TextEdit.replace(this.getCompletionRange(n),i),kind:E.CompletionItemKind.Value});return r}getImageProposals(e,n,r){for(let i in bf){let o=os(i);r.items.push({label:i,documentation:bf[i],textEdit:E.TextEdit.replace(this.getCompletionRange(n),o),kind:E.CompletionItemKind.Function,insertTextFormat:i!==o?Br:void 0})}return r}getTimingFunctionProposals(e,n,r){for(let i in vf){let o=os(i);r.items.push({label:i,documentation:vf[i],textEdit:E.TextEdit.replace(this.getCompletionRange(n),o),kind:E.CompletionItemKind.Function,insertTextFormat:i!==o?Br:void 0})}return r}getBasicShapeProposals(e,n,r){for(let i in wf){let o=os(i);r.items.push({label:i,documentation:wf[i],textEdit:E.TextEdit.replace(this.getCompletionRange(n),o),kind:E.CompletionItemKind.Function,insertTextFormat:i!==o?Br:void 0})}return r}getCompletionsForStylesheet(e){let n=this.styleSheet.findFirstChildBeforeOffset(this.offset);return n?n instanceof un?this.getCompletionsForRuleSet(n,e):n instanceof Zi?this.getCompletionsForSupports(n,e):e:this.getCompletionForTopLevel(e)}getCompletionForTopLevel(e){return this.cssDataManager.getAtDirectives().forEach(n=>{e.items.push({label:n.name,textEdit:E.TextEdit.replace(this.getCompletionRange(null),n.name),documentation:gr(n,this.doesSupportMarkdown()),tags:Fa(n)?[E.CompletionItemTag.Deprecated]:[],kind:E.CompletionItemKind.Keyword})}),this.getCompletionsForSelector(null,!1,e),e}getCompletionsForRuleSet(e,n){let r=e.getDeclarations();return r&&r.endsWith("}")&&this.offset>=r.end?this.getCompletionForTopLevel(n):!r||this.offset<=r.offset?this.getCompletionsForSelector(e,e.isNested(),n):this.getCompletionsForDeclarations(e.getDeclarations(),n)}getCompletionsForSelector(e,n,r){let i=this.findInNodePath(A.PseudoSelector,A.IdentifierSelector,A.ClassSelector,A.ElementNameSelector);if(!i&&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=E.Range.create(E.Position.create(this.position.line,this.position.character-this.currentWord.length),this.position)),this.cssDataManager.getPseudoClasses().forEach(c=>{let u=os(c.name),d={label:c.name,textEdit:E.TextEdit.replace(this.getCompletionRange(i),u),documentation:gr(c,this.doesSupportMarkdown()),tags:Fa(c)?[E.CompletionItemTag.Deprecated]:[],kind:E.CompletionItemKind.Function,insertTextFormat:c.name!==u?Br:void 0};ot(c.name,":-")&&(d.sortText=vr.VendorPrefixed),r.items.push(d)}),this.cssDataManager.getPseudoElements().forEach(c=>{let u=os(c.name),d={label:c.name,textEdit:E.TextEdit.replace(this.getCompletionRange(i),u),documentation:gr(c,this.doesSupportMarkdown()),tags:Fa(c)?[E.CompletionItemTag.Deprecated]:[],kind:E.CompletionItemKind.Function,insertTextFormat:c.name!==u?Br:void 0};ot(c.name,"::-")&&(d.sortText=vr.VendorPrefixed),r.items.push(d)}),!n){for(let c of zx)r.items.push({label:c,textEdit:E.TextEdit.replace(this.getCompletionRange(i),c),kind:E.CompletionItemKind.Keyword});for(let c of Ox)r.items.push({label:c,textEdit:E.TextEdit.replace(this.getCompletionRange(i),c),kind:E.CompletionItemKind.Keyword})}let l={};l[this.currentWord]=!0;let a=this.textDocument.getText();if(this.styleSheet.accept(c=>{if(c.type===A.SimpleSelector&&c.length>0){let u=a.substr(c.offset,c.length);return u.charAt(0)==="."&&!l[u]&&(l[u]=!0,r.items.push({label:u,textEdit:E.TextEdit.replace(this.getCompletionRange(i),u),kind:E.CompletionItemKind.Keyword})),!1}return!0}),e&&e.isNested()){let c=e.getSelectors().findFirstChildBeforeOffset(this.offset);c&&e.getSelectors().getChildren().indexOf(c)===0&&this.getPropertyProposals(null,r)}return r}getCompletionsForDeclarations(e,n){if(!e||this.offset===e.offset)return n;let r=e.findFirstChildBeforeOffset(this.offset);if(!r)return this.getCompletionsForDeclarationProperty(null,n);if(r instanceof Vo){let i=r;if(!en(i.colonPosition)||this.offset<=i.colonPosition)return this.getCompletionsForDeclarationProperty(i,n);if(en(i.semicolonPosition)&&i.semicolonPosition<this.offset)return this.offset===i.semicolonPosition+1?n:this.getCompletionsForDeclarationProperty(null,n);if(i instanceof At)return this.getCompletionsForDeclarationValue(i,n)}else r instanceof fr?this.getCompletionsForExtendsReference(r,null,n):this.currentWord&&this.currentWord[0]==="@"?this.getCompletionsForDeclarationProperty(null,n):r instanceof un&&this.getCompletionsForDeclarationProperty(null,n);return n}getCompletionsForVariableDeclaration(e,n){return this.offset&&en(e.colonPosition)&&this.offset>e.colonPosition&&this.getVariableProposals(e.getValue()||null,n),n}getCompletionsForExpression(e,n){let r=e.getParent();if(r instanceof dn)return this.getCompletionsForFunctionArgument(r,r.getParent(),n),n;let i=e.findParent(A.Declaration);if(!i)return this.getTermProposals(void 0,null,n),n;let o=e.findChildAtOffset(this.offset,!0);return o?o instanceof to||o instanceof Ft?this.getCompletionsForDeclarationValue(i,n):n:this.getCompletionsForDeclarationValue(i,n)}getCompletionsForFunctionArgument(e,n,r){let i=n.getIdentifier();return i&&i.matches("var")&&(!n.getArguments().hasChildren()||n.getArguments().getChild(0)===e)&&this.getVariableProposalsForCSSVarFunction(r),r}getCompletionsForFunctionDeclaration(e,n){let r=e.getDeclarations();return r&&this.offset>r.offset&&this.offset<r.end&&this.getTermProposals(void 0,null,n),n}getCompletionsForMixinReference(e,n){let r=this.getSymbolContext().findSymbolsAtOffset(this.offset,De.Mixin);for(let o of r)o.node instanceof Kn&&n.items.push(this.makeTermProposal(o,o.node.getParameters(),null));let i=e.getIdentifier()||null;return this.completionParticipants.forEach(o=>{o.onCssMixinReference&&o.onCssMixinReference({mixinName:this.currentWord,range:this.getCompletionRange(i)})}),n}getTermProposals(e,n,r){let i=this.getSymbolContext().findSymbolsAtOffset(this.offset,De.Function);for(let o of i)o.node instanceof Ur&&r.items.push(this.makeTermProposal(o,o.node.getParameters(),n));return r}makeTermProposal(e,n,r){let i=e.node,o=n.getChildren().map(l=>l instanceof pr?l.getName():l.getText()),s=e.name+"("+o.map((l,a)=>"${"+(a+1)+":"+l+"}").join(", ")+")";return{label:e.name,detail:e.name+"("+o.join(", ")+")",textEdit:E.TextEdit.replace(this.getCompletionRange(r),s),insertTextFormat:Br,kind:E.CompletionItemKind.Function,sortText:vr.Term}}getCompletionsForSupportsCondition(e,n){let r=e.findFirstChildBeforeOffset(this.offset);if(r){if(r instanceof At)return!en(r.colonPosition)||this.offset<=r.colonPosition?this.getCompletionsForDeclarationProperty(r,n):this.getCompletionsForDeclarationValue(r,n);if(r instanceof jr)return this.getCompletionsForSupportsCondition(r,n)}return en(e.lParent)&&this.offset>e.lParent&&(!en(e.rParent)||this.offset<=e.rParent)?this.getCompletionsForDeclarationProperty(null,n):n}getCompletionsForSupports(e,n){let r=e.getDeclarations();if(!r||this.offset<=r.offset){let o=e.findFirstChildBeforeOffset(this.offset);return o instanceof jr?this.getCompletionsForSupportsCondition(o,n):n}return this.getCompletionForTopLevel(n)}getCompletionsForExtendsReference(e,n,r){return r}getCompletionForUriLiteralValue(e,n){let r,i,o;if(e.hasChildren()){let s=e.getChild(0);r=s.getText(),i=this.position,o=this.getCompletionRange(s)}else{r="",i=this.position;let s=this.textDocument.positionAt(e.offset+4);o=E.Range.create(s,s)}return this.completionParticipants.forEach(s=>{s.onCssURILiteralValue&&s.onCssURILiteralValue({uriValue:r,position:i,range:o})}),n}getCompletionForImportPath(e,n){return this.completionParticipants.forEach(r=>{r.onCssImportPath&&r.onCssImportPath({pathValue:e.getText(),position:this.position,range:this.getCompletionRange(e)})}),n}hasCharacterAtPosition(e,n){let r=this.textDocument.getText();return e>=0&&e<r.length&&r.charAt(e)===n}doesSupportMarkdown(){if(!en(this.supportsMarkdown)){if(!en(this.lsOptions.clientCapabilities))return this.supportsMarkdown=!0,this.supportsMarkdown;let e=this.lsOptions.clientCapabilities.textDocument?.completion?.completionItem?.documentationFormat;this.supportsMarkdown=Array.isArray(e)&&e.indexOf(E.MarkupKind.Markdown)!==-1}return this.supportsMarkdown}};Aa=class{constructor(){this.entries={}}add(e){this.entries[e]=!0}remove(e){delete this.entries[e]}getEntries(){return Object.keys(this.entries)}};Ef=class{constructor(e,n){this.entries=e,this.currentOffset=n}visitNode(e){return(e instanceof eo||e instanceof Vn&&Fx(e))&&(this.currentOffset<e.offset||e.end<this.currentOffset)&&this.entries.add(e.getText()),!0}},Df=class{constructor(e,n){this.entries=e,this.currentOffset=n}visitNode(e){return e instanceof Ft&&e.isCustomProperty&&(this.currentOffset<e.offset||e.end<this.currentOffset)&&this.entries.add(e.getText()),!0}}});function $x(t,e){let n=new xi;for(let r of t.getChildren())switch(r.type){case A.SelectorCombinator:if(e){let l=r.getText().split("&");if(l.length===1){n.addAttr("name",l[0]);break}n=e.cloneWithParent(),l[0]&&n.findRoot().prepend(l[0]);for(let a=1;a<l.length;a++){if(a>1){let c=e.cloneWithParent();n.addChild(c.findRoot()),n=c}n.append(l[a])}}break;case A.SelectorPlaceholder:if(r.matches("@at-root"))return n;case A.ElementNameSelector:let i=r.getText();n.addAttr("name",i==="*"?"element":Cn(i));break;case A.ClassSelector:n.addAttr("class",Cn(r.getText().substring(1)));break;case A.IdentifierSelector:n.addAttr("id",Cn(r.getText().substring(1)));break;case A.MixinDeclaration:n.addAttr("class",r.getName());break;case A.PseudoSelector:n.addAttr(Cn(r.getText()),"");break;case A.AttributeSelector:let o=r,s=o.getIdentifier();if(s){let l=o.getValue(),a=o.getOperator(),c;if(l&&a)switch(Cn(a.getText())){case"|=":c=`${$r.remove(Cn(l.getText()))}-\u2026`;break;case"^=":c=`${$r.remove(Cn(l.getText()))}\u2026`;break;case"$=":c=`\u2026${$r.remove(Cn(l.getText()))}`;break;case"~=":c=` \u2026 ${$r.remove(Cn(l.getText()))} \u2026 `;break;case"*=":c=`\u2026${$r.remove(Cn(l.getText()))}\u2026`;break;default:c=$r.remove(Cn(l.getText()));break}n.addAttr(Cn(s.getText()),c)}break}return n}function Cn(t){let e=new _n;e.setSource(t);let n=e.scanUnquotedString();return n?n.text:t}function JP(t){switch(t.type){case A.MixinDeclaration:case A.Stylesheet:return!0}return!1}function XP(t){if(t.matches("@at-root"))return null;let e=new ki,n=[],r=t.getParent();if(r instanceof un){let o=r.getParent();for(;o&&!JP(o);){if(o instanceof un){if(o.getSelectors().matches("@at-root"))break;n.push(o)}o=o.getParent()}}let i=new Ff(e);for(let o=n.length-1;o>=0;o--){let s=n[o].getSelectors().getChild(0);s&&i.processSelector(s)}return i.processSelector(t),e}var xi,ki,Ra,ku,$r,Cu,Tu,Ff,Vx=ue(()=>{"use strict";Bt();mi();kn();xi=class{constructor(){this.parent=null,this.children=null,this.attributes=null}findAttribute(e){if(this.attributes){for(let n of this.attributes)if(n.name===e)return n.value}return null}addChild(e){e instanceof xi&&(e.parent=this),this.children||(this.children=[]),this.children.push(e)}append(e){if(this.attributes){let n=this.attributes[this.attributes.length-1];n.value=n.value+e}}prepend(e){if(this.attributes){let n=this.attributes[0];n.value=e+n.value}}findRoot(){let e=this;for(;e.parent&&!(e.parent instanceof ki);)e=e.parent;return e}removeChild(e){if(this.children){let n=this.children.indexOf(e);if(n!==-1)return this.children.splice(n,1),!0}return!1}addAttr(e,n){this.attributes||(this.attributes=[]);for(let r of this.attributes)if(r.name===e){r.value+=" "+n;return}this.attributes.push({name:e,value:n})}clone(e=!0){let n=new xi;if(this.attributes){n.attributes=[];for(let r of this.attributes)n.addAttr(r.name,r.value)}if(e&&this.children){n.children=[];for(let r=0;r<this.children.length;r++)n.addChild(this.children[r].clone())}return n}cloneWithParent(){let e=this.clone(!1);return this.parent&&!(this.parent instanceof ki)&&this.parent.cloneWithParent().addChild(e),e}},ki=class extends xi{},Ra=class extends xi{constructor(e){super(),this.addAttr("name",e)}},ku=class{constructor(e){this.quote=e,this.result=[]}print(e){this.result=[],e instanceof ki?e.children&&this.doPrint(e.children,0):this.doPrint([e],0);let n=this.result.join(`
|
|
534
|
-
`);return[{language:"html",value:n}]}doPrint(e,n){for(let r of e)this.doPrintElement(r,n),r.children&&this.doPrint(r.children,n+1)}writeLine(e,n){let r=new Array(e+1).join(" ");this.result.push(r+n)}doPrintElement(e,n){let r=e.findAttribute("name");if(e instanceof Ra||r==="\u2026"){this.writeLine(n,r);return}let i=["<"];if(r?i.push(r):i.push("element"),e.attributes){for(let o of e.attributes)if(o.name!=="name"){i.push(" "),i.push(o.name);let s=o.value;s&&(i.push("="),i.push($r.ensure(s,this.quote)))}}i.push(">"),this.writeLine(n,i.join(""))}};(function(t){function e(r,i){return i+n(r)+i}t.ensure=e;function n(r){let i=r.match(/^['"](.*)["']$/);return i?i[1]:r}t.remove=n})($r||($r={}));Cu=class{constructor(){this.id=0,this.attr=0,this.tag=0}};Tu=class{constructor(e){this.cssDataManager=e}selectorToMarkedString(e){let n=XP(e);if(n){let r=new ku('"').print(n);return r.push(this.selectorToSpecificityMarkedString(e)),r}else return[]}simpleSelectorToMarkedString(e){let n=$x(e),r=new ku('"').print(n);return r.push(this.selectorToSpecificityMarkedString(e)),r}isPseudoElementIdentifier(e){let n=e.match(/^::?([\w-]+)/);return n?!!this.cssDataManager.getPseudoElement("::"+n[1]):!1}selectorToSpecificityMarkedString(e){let n=i=>{let o=new Cu;e:for(let s of i.getChildren()){switch(s.type){case A.IdentifierSelector:o.id++;break;case A.ClassSelector:case A.AttributeSelector:o.attr++;break;case A.ElementNameSelector:if(s.matches("*"))break;o.tag++;break;case A.PseudoSelector:let l=s.getText();if(this.isPseudoElementIdentifier(l)){o.tag++;continue e}if(l.match(/^:where/i))continue e;if(l.match(/^:(not|has|is)/i)&&s.getChildren().length>0){let a=new Cu;for(let c of s.getChildren()){let u;c.type===A.Undefined?u=c.getChildren():u=[c];for(let d of c.getChildren()){let h=n(d);if(h.id>a.id){a=h;continue}else if(h.id<a.id)continue;if(h.attr>a.attr){a=h;continue}else if(h.attr<a.attr)continue;if(h.tag>a.tag){a=h;continue}}}o.id+=a.id,o.attr+=a.attr,o.tag+=a.tag;continue e}o.attr++;continue e}if(s.getChildren().length>0){let l=n(s);o.id+=l.id,o.attr+=l.attr,o.tag+=l.tag}}return o},r=n(e);return F("[Selector Specificity](https://developer.mozilla.org/en-US/docs/Web/CSS/Specificity): ({0}, {1}, {2})",r.id,r.attr,r.tag)}},Ff=class{constructor(e){this.prev=null,this.element=e}processSelector(e){let n=null;if(!(this.element instanceof ki)&&e.getChildren().some(r=>r.hasChildren()&&r.getChild(0).type===A.SelectorCombinator)){let r=this.element.findRoot();r.parent instanceof ki&&(n=this.element,this.element=r.parent,this.element.removeChild(r),this.prev=null)}for(let r of e.getChildren()){if(r instanceof xn){if(this.prev instanceof xn){let s=new Ra("\u2026");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 Ra("\u22EE"));let i=$x(r,n),o=i.findRoot();this.element.addChild(o),this.element=i}(r instanceof xn||r.type===A.SelectorCombinatorParent||r.type===A.SelectorCombinatorShadowPiercingDescendant||r.type===A.SelectorCombinatorSibling||r.type===A.SelectorCombinatorAllSiblings)&&(this.prev=r)}}}});var ss,Kx=ue(()=>{"use strict";Bt();rs();Vx();qr();hn();Ca();ss=class{constructor(e,n){this.clientCapabilities=e,this.cssDataManager=n,this.selectorPrinting=new Tu(n)}configure(e){this.defaultSettings=e}doHover(e,n,r,i=this.defaultSettings){function o(c){return E.Range.create(e.positionAt(c.offset),e.positionAt(c.end))}let s=e.offsetAt(n),l=ns(r,s),a=null;for(let c=0;c<l.length;c++){let u=l[c];if(u instanceof Sn){a={contents:this.selectorPrinting.selectorToMarkedString(u),range:o(u)};break}if(u instanceof xn){ot(u.getText(),"@")||(a={contents:this.selectorPrinting.simpleSelectorToMarkedString(u),range:o(u)});break}if(u instanceof At){let d=u.getFullPropertyName(),h=this.cssDataManager.getProperty(d);if(h){let p=gr(h,this.doesSupportMarkdown(),i);p?a={contents:p,range:o(u)}:a=null}continue}if(u instanceof Zo){let d=u.getText(),h=this.cssDataManager.getAtDirective(d);if(h){let p=gr(h,this.doesSupportMarkdown(),i);p?a={contents:p,range:o(u)}:a=null}continue}if(u instanceof fe&&u.type===A.PseudoSelector){let d=u.getText(),h=d.slice(0,2)==="::"?this.cssDataManager.getPseudoElement(d):this.cssDataManager.getPseudoClass(d);if(h){let p=gr(h,this.doesSupportMarkdown(),i);p?a={contents:p,range:o(u)}:a=null}continue}}return a&&(a.contents=this.convertContents(a.contents)),a}convertContents(e){return this.doesSupportMarkdown()||typeof e=="string"?e:"kind"in e?{kind:"plaintext",value:e.value}:Array.isArray(e)?e.map(n=>typeof n=="string"?n:n.value):e.value}doesSupportMarkdown(){if(!en(this.supportsMarkdown)){if(!en(this.clientCapabilities))return this.supportsMarkdown=!0,this.supportsMarkdown;let e=this.clientCapabilities.textDocument&&this.clientCapabilities.textDocument.hover;this.supportsMarkdown=e&&e.contentFormat&&Array.isArray(e.contentFormat)&&e.contentFormat.indexOf(E.MarkupKind.Markdown)!==-1}return this.supportsMarkdown}}});function QP(t,e){let n=Ix(t);if(n){let r=Vr(t,e);return{color:n,range:r}}return null}function Vr(t,e){return E.Range.create(e.positionAt(t.offset),e.positionAt(t.end))}function YP(t,e){let n=e.start.line,r=e.end.line,i=t.start.line,o=t.end.line;return!(n<i||r<i||n>o||r>o||n===i&&e.start.character<t.start.character||r===o&&e.end.character>t.end.character)}function Xx(t){if(t.type===A.Selector)return E.DocumentHighlightKind.Write;if(t instanceof Ft&&t.parent&&t.parent instanceof fi&&t.isCustomProperty)return E.DocumentHighlightKind.Write;if(t.parent)switch(t.parent.type){case A.FunctionDeclaration:case A.MixinDeclaration:case A.Keyframe:case A.VariableDeclaration:case A.FunctionParameter:return E.DocumentHighlightKind.Write}return E.DocumentHighlightKind.Read}function io(t){let e=t.toString(16);return e.length!==2?"0"+e:e}function ZP(t){let e=t.indexOf("/");if(e===-1)return"";if(t[0]==="@"){let n=t.indexOf("/",e+1);return n===-1?t:t.substring(0,n)}return t.substring(0,e)}var Gx,Jx,oo,Af=ue(()=>{"use strict";hn();kn();Bt();xf();rs();qr();Cf();Gx=/^\w+:\/\//,Jx=/^data:/,oo=class{constructor(e,n){this.fileSystemProvider=e,this.resolveModuleReferences=n}findDefinition(e,n,r){let i=new ro(r),o=e.offsetAt(n),s=uu(r,o);if(!s)return null;let l=i.findSymbolFromNode(s);return l?{uri:e.uri,range:Vr(l.node,e)}:null}findReferences(e,n,r){return this.findDocumentHighlights(e,n,r).map(o=>({uri:e.uri,range:o.range}))}getHighlightNode(e,n,r){let i=e.offsetAt(n),o=uu(r,i);if(!(!o||o.type===A.Stylesheet||o.type===A.Declarations))return o.type===A.Identifier&&o.parent&&o.parent.type===A.ClassSelector&&(o=o.parent),o}findDocumentHighlights(e,n,r){let i=[],o=this.getHighlightNode(e,n,r);if(!o)return i;let s=new ro(r),l=s.findSymbolFromNode(o),a=o.getText();return r.accept(c=>{if(l){if(s.matchesSymbol(c,l))return i.push({kind:Xx(c),range:Vr(c,e)}),!1}else o&&o.type===c.type&&c.matches(a)&&i.push({kind:Xx(c),range:Vr(c,e)});return!0}),i}isRawStringDocumentLinkNode(e){return e.type===A.Import}findDocumentLinks(e,n,r){let i=this.findUnresolvedLinks(e,n),o=[];for(let s of i){let l=s.link,a=l.target;if(!(!a||Jx.test(a)))if(Gx.test(a))o.push(l);else{let c=r.resolveReference(a,e.uri);c&&(l.target=c),o.push(l)}}return o}async findDocumentLinks2(e,n,r){let i=this.findUnresolvedLinks(e,n),o=[];for(let s of i){let l=s.link,a=l.target;if(!(!a||Jx.test(a)))if(Gx.test(a))o.push(l);else{let c=await this.resolveReference(a,e.uri,r,s.isRawLink);c!==void 0&&(l.target=c,o.push(l))}}return o}findUnresolvedLinks(e,n){let r=[],i=o=>{let s=o.getText(),l=Vr(o,e);if(l.start.line===l.end.line&&l.start.character===l.end.character)return;(ot(s,"'")||ot(s,'"'))&&(s=s.slice(1,-1));let a=o.parent?this.isRawStringDocumentLinkNode(o.parent):!1;r.push({link:{target:s,range:l},isRawLink:a})};return n.accept(o=>{if(o.type===A.URILiteral){let s=o.getChild(0);return s&&i(s),!1}if(o.parent&&this.isRawStringDocumentLinkNode(o.parent)){let s=o.getText();return(ot(s,"'")||ot(s,'"'))&&i(o),!1}return!0}),r}findSymbolInformations(e,n){let r=[],i=(o,s,l)=>{let a=l instanceof fe?Vr(l,e):l,c={name:o,kind:s,location:E.Location.create(e.uri,a)};r.push(c)};return this.collectDocumentSymbols(e,n,i),r}findDocumentSymbols(e,n){let r=[],i=[],o=(s,l,a,c,u)=>{let d=a instanceof fe?Vr(a,e):a,h=(c instanceof fe?Vr(c,e):c)??E.Range.create(d.start,d.start),p={name:s,kind:l,range:d,selectionRange:h},w=i.pop();for(;w&&!YP(w[1],d);)w=i.pop();if(w){let v=w[0];v.children||(v.children=[]),v.children.push(p),i.push(w)}else r.push(p);u&&i.push([p,Vr(u,e)])};return this.collectDocumentSymbols(e,n,o),r}collectDocumentSymbols(e,n,r){n.accept(i=>{if(i instanceof un){for(let o of i.getSelectors().getChildren())if(o instanceof Sn){let s=E.Range.create(e.positionAt(o.offset),e.positionAt(i.end));r(o.getText(),E.SymbolKind.Class,s,o,i.getDeclarations())}}else if(i instanceof mr)r(i.getName(),E.SymbolKind.Variable,i,i.getVariable(),void 0);else if(i instanceof Kn)r(i.getName(),E.SymbolKind.Method,i,i.getIdentifier(),i.getDeclarations());else if(i instanceof Ur)r(i.getName(),E.SymbolKind.Function,i,i.getIdentifier(),i.getDeclarations());else if(i instanceof Go){let o=F("@keyframes {0}",i.getName());r(o,E.SymbolKind.Class,i,i.getIdentifier(),i.getDeclarations())}else if(i instanceof Ko){let o=F("@font-face");r(o,E.SymbolKind.Class,i,void 0,i.getDeclarations())}else if(i instanceof Jo){let o=i.getChild(0);if(o instanceof Xo){let s="@media "+o.getText();r(s,E.SymbolKind.Module,i,o,i.getDeclarations())}}return!0})}findDocumentColors(e,n){let r=[];return n.accept(i=>{let o=QP(i,e);return o&&r.push(o),!0}),r}getColorPresentations(e,n,r,i){let o=[],s=Math.round(r.red*255),l=Math.round(r.green*255),a=Math.round(r.blue*255),c;r.alpha===1?c=`rgb(${s}, ${l}, ${a})`:c=`rgba(${s}, ${l}, ${a}, ${r.alpha})`,o.push({label:c,textEdit:E.TextEdit.replace(i,c)}),r.alpha===1?c=`#${io(s)}${io(l)}${io(a)}`:c=`#${io(s)}${io(l)}${io(a)}${io(Math.round(r.alpha*255))}`,o.push({label:c,textEdit:E.TextEdit.replace(i,c)});let u=cf(r);u.a===1?c=`hsl(${u.h}, ${Math.round(u.s*100)}%, ${Math.round(u.l*100)}%)`:c=`hsla(${u.h}, ${Math.round(u.s*100)}%, ${Math.round(u.l*100)}%, ${u.a})`,o.push({label:c,textEdit:E.TextEdit.replace(i,c)});let d=Rx(r);return d.a===1?c=`hwb(${d.h} ${Math.round(d.w*100)}% ${Math.round(d.b*100)}%)`:c=`hwb(${d.h} ${Math.round(d.w*100)}% ${Math.round(d.b*100)}% / ${d.a})`,o.push({label:c,textEdit:E.TextEdit.replace(i,c)}),o}prepareRename(e,n,r){let i=this.getHighlightNode(e,n,r);if(i)return E.Range.create(e.positionAt(i.offset),e.positionAt(i.end))}doRename(e,n,r,i){let s=this.findDocumentHighlights(e,n,i).map(l=>E.TextEdit.replace(l.range,r));return{changes:{[e.uri]:s}}}async resolveModuleReference(e,n,r){if(ot(n,"file://")){let i=ZP(e);if(i&&i!=="."&&i!==".."){let o=r.resolveReference("/",n),s=wu(n),l=await this.resolvePathToModule(i,s,o);if(l){let a=e.substring(i.length+1);return Da(l,a)}}}}async mapReference(e,n){return e}async resolveReference(e,n,r,i=!1){if(e[0]==="~"&&e[1]!=="/"&&this.fileSystemProvider)return e=e.substring(1),this.mapReference(await this.resolveModuleReference(e,n,r),i);let o=await this.mapReference(r.resolveReference(e,n),i);if(this.resolveModuleReferences){if(o&&await this.fileExists(o))return o;let s=await this.mapReference(await this.resolveModuleReference(e,n,r),i);if(s)return s}return o}async resolvePathToModule(e,n,r){let i=Da(n,"node_modules",e,"package.json");if(await this.fileExists(i))return wu(i);if(r&&n.startsWith(r)&&n.length!==r.length)return this.resolvePathToModule(e,wu(n),r)}async fileExists(e){if(!this.fileSystemProvider)return!1;try{let n=await this.fileSystemProvider.stat(e);return!(n.type===wi.Unknown&&n.size===-1)}catch{return!1}}}});function ez(t){switch(t){case"ignore":return Ht.Ignore;case"warning":return Ht.Warning;case"error":return Ht.Error}return null}var as,Qx,Jn,yt,Rf,je,Yx,Eu,Du=ue(()=>{"use strict";Bt();kn();as=Ht.Warning,Qx=Ht.Error,Jn=Ht.Ignore,yt=class{constructor(e,n,r){this.id=e,this.message=n,this.defaultValue=r}},Rf=class{constructor(e,n,r){this.id=e,this.message=n,this.defaultValue=r}},je={AllVendorPrefixes:new yt("compatibleVendorPrefixes",F("When using a vendor-specific prefix make sure to also include all other vendor-specific properties"),Jn),IncludeStandardPropertyWhenUsingVendorPrefix:new yt("vendorPrefix",F("When using a vendor-specific prefix also include the standard property"),as),DuplicateDeclarations:new yt("duplicateProperties",F("Do not use duplicate style definitions"),Jn),EmptyRuleSet:new yt("emptyRules",F("Do not use empty rulesets"),as),ImportStatemement:new yt("importStatement",F("Import statements do not load in parallel"),Jn),BewareOfBoxModelSize:new yt("boxModel",F("Do not use width or height when using padding or border"),Jn),UniversalSelector:new yt("universalSelector",F("The universal selector (*) is known to be slow"),Jn),ZeroWithUnit:new yt("zeroUnits",F("No unit for zero needed"),Jn),RequiredPropertiesForFontFace:new yt("fontFaceProperties",F("@font-face rule must define 'src' and 'font-family' properties"),as),HexColorLength:new yt("hexColorLength",F("Hex colors must consist of three, four, six or eight hex numbers"),Qx),ArgsInColorFunction:new yt("argumentsInColorFunction",F("Invalid number of parameters"),Qx),UnknownProperty:new yt("unknownProperties",F("Unknown property."),as),UnknownAtRules:new yt("unknownAtRules",F("Unknown at-rule."),as),IEStarHack:new yt("ieHack",F("IE hacks are only necessary when supporting IE7 and older"),Jn),UnknownVendorSpecificProperty:new yt("unknownVendorSpecificProperties",F("Unknown vendor specific property."),Jn),PropertyIgnoredDueToDisplay:new yt("propertyIgnoredDueToDisplay",F("Property is ignored due to the display."),as),AvoidImportant:new yt("important",F("Avoid using !important. It is an indication that the specificity of the entire CSS has gotten out of control and needs to be refactored."),Jn),AvoidFloat:new yt("float",F("Avoid using 'float'. Floats lead to fragile CSS that is easy to break if one aspect of the layout changes."),Jn),AvoidIdSelector:new yt("idSelector",F("Selectors should not contain IDs because these rules are too tightly coupled with the HTML."),Jn)},Yx={ValidProperties:new Rf("validProperties",F("A list of properties that are not validated against the `unknownProperties` rule."),[])},Eu=class{constructor(e={}){this.conf=e}getRule(e){if(this.conf.hasOwnProperty(e.id)){let n=ez(this.conf[e.id]);if(n)return n}return e.defaultValue}getSetting(e){return this.conf[e.id]}}});var ls,Zx=ue(()=>{"use strict";Bt();qr();Du();hn();kn();ls=class{constructor(e){this.cssDataManager=e}doCodeActions(e,n,r,i){return this.doCodeActions2(e,n,r,i).map(o=>{let s=o.edit&&o.edit.documentChanges&&o.edit.documentChanges[0];return E.Command.create(o.title,"_css.applyCodeAction",e.uri,e.version,s&&s.edits)})}doCodeActions2(e,n,r,i){let o=[];if(r.diagnostics)for(let s of r.diagnostics)this.appendFixesForMarker(e,i,s,o);return o}getFixesForUnknownProperty(e,n,r,i){let o=n.getName(),s=[];this.cssDataManager.getProperties().forEach(a=>{let c=bx(o,a.name);c>=o.length/2&&s.push({property:a.name,score:c})}),s.sort((a,c)=>c.score-a.score||a.property.localeCompare(c.property));let l=3;for(let a of s){let c=a.property,u=F("Rename to '{0}'",c),d=E.TextEdit.replace(r.range,c),h=E.VersionedTextDocumentIdentifier.create(e.uri,e.version),p={documentChanges:[E.TextDocumentEdit.create(h,[d])]},w=E.CodeAction.create(u,p,E.CodeActionKind.QuickFix);if(w.diagnostics=[r],i.push(w),--l<=0)return}}appendFixesForMarker(e,n,r,i){if(r.code!==je.UnknownProperty.id)return;let o=e.offsetAt(r.range.start),s=e.offsetAt(r.range.end),l=ns(n,o);for(let a=l.length-1;a>=0;a--){let c=l[a];if(c instanceof At){let u=c.getProperty();if(u&&u.offset===o&&u.end===s){this.getFixesForUnknownProperty(e,u,r,i);return}}}}}});function Ia(t,e,n,r){let i=t[e];i.value=n,n&&(yf(i.properties,r)||i.properties.push(r))}function tz(t,e,n){Ia(t,"top",e,n),Ia(t,"right",e,n),Ia(t,"bottom",e,n),Ia(t,"left",e,n)}function $t(t,e,n,r){e==="top"||e==="right"||e==="bottom"||e==="left"?Ia(t,e,n,r):tz(t,n,r)}function If(t,e,n){switch(e.length){case 1:$t(t,void 0,e[0],n);break;case 2:$t(t,"top",e[0],n),$t(t,"bottom",e[0],n),$t(t,"right",e[1],n),$t(t,"left",e[1],n);break;case 3:$t(t,"top",e[0],n),$t(t,"right",e[1],n),$t(t,"left",e[1],n),$t(t,"bottom",e[2],n);break;case 4:$t(t,"top",e[0],n),$t(t,"right",e[1],n),$t(t,"bottom",e[2],n),$t(t,"left",e[3],n);break}}function Mf(t,e){for(let n of e)if(t.matches(n))return!0;return!1}function Ma(t,e=!0){return e&&Mf(t,["initial","unset"])?!1:parseFloat(t.getText())!==0}function e0(t,e=!0){return t.map(n=>Ma(n,e))}function Au(t,e=!0){return!(Mf(t,["none","hidden"])||e&&Mf(t,["initial","unset"]))}function nz(t,e=!0){return t.map(n=>Au(n,e))}function rz(t){let e=t.getChildren();if(e.length===1){let n=e[0];return Ma(n)&&Au(n)}for(let n of e){let r=n;if(!Ma(r,!1)||!Au(r,!1))return!1}return!0}function Pf(t){let e={top:{value:!1,properties:[]},right:{value:!1,properties:[]},bottom:{value:!1,properties:[]},left:{value:!1,properties:[]}};for(let n of t){let 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":e.width=n;break;case"height":e.height=n;break;default:let 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:$t(e,i[1],rz(r),n);break;case"width":$t(e,i[1],Ma(r,!1),n);break;case"style":$t(e,i[1],Au(r,!0),n);break}break;case"width":If(e,e0(r.getChildren(),!1),n);break;case"style":If(e,nz(r.getChildren(),!0),n);break}break;case"padding":i.length===1?If(e,e0(r.getChildren(),!0),n):$t(e,i[1],Ma(r,!0),n);break}break}}return e}var Fu,t0=ue(()=>{"use strict";bu();Fu=class{constructor(e){this.fullPropertyName=e.getFullPropertyName().toLowerCase(),this.node=e}}});var Ru,Kr,n0=ue(()=>{"use strict";kn();rs();Bt();bu();Du();t0();Ru=class{constructor(){this.data={}}add(e,n,r){let i=this.data[e];i||(i={nodes:[],names:[]},this.data[e]=i),i.names.push(n),r&&i.nodes.push(r)}},Kr=class{static entries(e,n,r,i,o){let s=new Kr(n,r,i);return e.acceptVisitor(s),s.completeValidations(),s.getEntries(o)}constructor(e,n,r){this.cssDataManager=r,this.warnings=[],this.settings=n,this.documentText=e.getText(),this.keyframes=new Ru,this.validProperties={};let i=n.getSetting(Yx.ValidProperties);Array.isArray(i)&&i.forEach(o=>{if(typeof o=="string"){let s=o.trim().toLowerCase();s.length&&(this.validProperties[s]=!0)}})}isValidPropertyDeclaration(e){let n=e.fullPropertyName;return this.validProperties[n]}fetch(e,n){let r=[];for(let i of e)i.fullPropertyName===n&&r.push(i);return r}fetchWithValue(e,n,r){let i=[];for(let o of e)if(o.fullPropertyName===n){let s=o.node.getValue();s&&this.findValueInExpression(s,r)&&i.push(o)}return i}findValueInExpression(e,n){let r=!1;return e.accept(i=>(i.type===A.Identifier&&i.matches(n)&&(r=!0),!r)),r}getEntries(e=Ht.Warning|Ht.Error){return this.warnings.filter(n=>(n.getLevel()&e)!==0)}addEntry(e,n,r){let i=new es(e,n,this.settings.getRule(n),r);this.warnings.push(i)}getMissingNames(e,n){let r=e.slice(0);for(let o=0;o<n.length;o++){let s=r.indexOf(n[o]);s!==-1&&(r[s]=null)}let i=null;for(let o=0;o<r.length;o++){let s=r[o];s&&(i===null?i=F("'{0}'",s):i=F("{0}, '{1}'",i,s))}return i}visitNode(e){switch(e.type){case A.UnknownAtRule:return this.visitUnknownAtRule(e);case A.Keyframe:return this.visitKeyframe(e);case A.FontFace:return this.visitFontFace(e);case A.Ruleset:return this.visitRuleSet(e);case A.SimpleSelector:return this.visitSimpleSelector(e);case A.Function:return this.visitFunction(e);case A.NumericValue:return this.visitNumericValue(e);case A.Import:return this.visitImport(e);case A.HexColorValue:return this.visitHexColorValue(e);case A.Prio:return this.visitPrio(e);case A.IdentifierSelector:return this.visitIdentifierSelector(e)}return!0}completeValidations(){this.validateKeyframes()}visitUnknownAtRule(e){let n=e.getChild(0);return!n||this.cssDataManager.getAtDirective(n.getText())?!1:(this.addEntry(n,je.UnknownAtRules,`Unknown at rule ${n.getText()}`),!0)}visitKeyframe(e){let n=e.getKeyword();if(!n)return!1;let r=n.getText();return this.keyframes.add(e.getName(),r,r!=="@keyframes"?n:null),!0}validateKeyframes(){let e=["@-webkit-keyframes","@-moz-keyframes","@-o-keyframes"];for(let n in this.keyframes.data){let r=this.keyframes.data[n].names,i=r.indexOf("@keyframes")===-1;if(!i&&r.length===1)continue;let o=this.getMissingNames(e,r);if(o||i)for(let s of this.keyframes.data[n].nodes){if(i){let l=F("Always define standard rule '@keyframes' when defining keyframes.");this.addEntry(s,je.IncludeStandardPropertyWhenUsingVendorPrefix,l)}if(o){let l=F("Always include all vendor specific rules: Missing: {0}",o);this.addEntry(s,je.AllVendorPrefixes,l)}}}return!0}visitSimpleSelector(e){let n=this.documentText.charAt(e.offset);return e.length===1&&n==="*"&&this.addEntry(e,je.UniversalSelector),!0}visitIdentifierSelector(e){return this.addEntry(e,je.AvoidIdSelector),!0}visitImport(e){return this.addEntry(e,je.ImportStatemement),!0}visitRuleSet(e){let n=e.getDeclarations();if(!n)return!1;n.hasChildren()||this.addEntry(e.getSelectors(),je.EmptyRuleSet);let r=[];for(let a of n.getChildren())a instanceof At&&r.push(new Fu(a));let i=Pf(r);if(i.width){let a=[];if(i.right.value&&(a=Ta(a,i.right.properties)),i.left.value&&(a=Ta(a,i.left.properties)),a.length!==0){for(let c of a)this.addEntry(c.node,je.BewareOfBoxModelSize);this.addEntry(i.width.node,je.BewareOfBoxModelSize)}}if(i.height){let a=[];if(i.top.value&&(a=Ta(a,i.top.properties)),i.bottom.value&&(a=Ta(a,i.bottom.properties)),a.length!==0){for(let c of a)this.addEntry(c.node,je.BewareOfBoxModelSize);this.addEntry(i.height.node,je.BewareOfBoxModelSize)}}let o=this.fetchWithValue(r,"display","inline-block");if(o.length>0){let a=this.fetch(r,"float");for(let c=0;c<a.length;c++){let u=a[c].node,d=u.getValue();d&&!d.matches("none")&&this.addEntry(u,je.PropertyIgnoredDueToDisplay,F("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(o=this.fetchWithValue(r,"display","block"),o.length>0){let a=this.fetch(r,"vertical-align");for(let c=0;c<a.length;c++)this.addEntry(a[c].node,je.PropertyIgnoredDueToDisplay,F("Property is ignored due to the display. With 'display: block', vertical-align should not be used."))}let s=this.fetch(r,"float");for(let a=0;a<s.length;a++){let c=s[a];this.isValidPropertyDeclaration(c)||this.addEntry(c.node,je.AvoidFloat)}for(let a=0;a<r.length;a++){let c=r[a];if(c.fullPropertyName!=="background"&&!this.validProperties[c.fullPropertyName]){let u=c.node.getValue();if(u&&this.documentText.charAt(u.offset)!=="-"){let d=this.fetch(r,c.fullPropertyName);if(d.length>1)for(let h=0;h<d.length;h++){let p=d[h].node.getValue();p&&this.documentText.charAt(p.offset)!=="-"&&d[h]!==c&&this.addEntry(c.node,je.DuplicateDeclarations)}}}}if(!e.getSelectors().matches(":export")){let a=new Ru,c=!1;for(let u of r){let d=u.node;if(this.isCSSDeclaration(d)){let h=u.fullPropertyName,p=h.charAt(0);if(p==="-"){if(h.charAt(1)!=="-"){!this.cssDataManager.isKnownProperty(h)&&!this.validProperties[h]&&this.addEntry(d.getProperty(),je.UnknownVendorSpecificProperty);let w=d.getNonPrefixedPropertyName();a.add(w,h,d.getProperty())}}else{let w=h;(p==="*"||p==="_")&&(this.addEntry(d.getProperty(),je.IEStarHack),h=h.substr(1)),!this.cssDataManager.isKnownProperty(w)&&!this.cssDataManager.isKnownProperty(h)&&(this.validProperties[h]||this.addEntry(d.getProperty(),je.UnknownProperty,F("Unknown property: '{0}'",d.getFullPropertyName()))),a.add(h,h,null)}}else c=!0}if(!c)for(let u in a.data){let d=a.data[u],h=d.names,p=this.cssDataManager.isStandardProperty(u)&&h.indexOf(u)===-1;if(!p&&h.length===1)continue;let w=new Set(p?d.nodes:[]);if(p){let _=this.getContextualVendorSpecificPseudoElements(e);for(let f of d.nodes){let g=f.getName(),D=g.substring(0,g.length-u.length);_.some(L=>L.startsWith(D))&&w.delete(f)}}let v=[];for(let _=0,f=Kr.prefixes.length;_<f;_++){let g=Kr.prefixes[_];this.cssDataManager.isStandardProperty(g+u)&&v.push(g+u)}let x=this.getMissingNames(v,h);if(x||p)for(let _ of d.nodes){if(p&&w.has(_)){let f=F("Also define the standard property '{0}' for compatibility",u);this.addEntry(_,je.IncludeStandardPropertyWhenUsingVendorPrefix,f)}if(x){let f=F("Always include all vendor specific properties: Missing: {0}",x);this.addEntry(_,je.AllVendorPrefixes,f)}}}}return!0}getContextualVendorSpecificPseudoElements(e){function n(o,s){for(let l of s.getChildren()){if(l.type===A.PseudoSelector){let a=l.getChildren()[0]?.getText();a&&o.add(a)}n(o,l)}}function r(o,s){if(s.type===A.Ruleset)for(let l of s.getSelectors().getChildren())n(o,l);return s.parent?r(o,s.parent):void 0}let i=new Set;return r(i,e),Array.from(i)}visitPrio(e){return this.addEntry(e,je.AvoidImportant),!0}visitNumericValue(e){let n=e.findParent(A.Function);if(n&&n.getName()==="calc")return!0;let r=e.findParent(A.Declaration);if(r&&r.getValue()){let o=e.getValue();if(!o.unit||mu.length.indexOf(o.unit.toLowerCase())===-1)return!0;parseFloat(o.value)===0&&!!o.unit&&!this.validProperties[r.getFullPropertyName()]&&this.addEntry(e,je.ZeroWithUnit)}return!0}visitFontFace(e){let n=e.getDeclarations();if(!n)return!1;let r=!1,i=!1,o=!1;for(let s of n.getChildren())if(this.isCSSDeclaration(s)){let l=s.getProperty().getName().toLowerCase();l==="src"&&(r=!0),l==="font-family"&&(i=!0)}else o=!0;return!o&&(!r||!i)&&this.addEntry(e,je.RequiredPropertiesForFontFace),!0}isCSSDeclaration(e){if(e instanceof At){if(!e.getValue())return!1;let n=e.getProperty();if(!n)return!1;let r=n.getIdentifier();return!(!r||r.containsInterpolation())}return!1}visitHexColorValue(e){let n=e.length;return n!==9&&n!==7&&n!==5&&n!==4&&this.addEntry(e,je.HexColorLength),!1}visitFunction(e){let n=e.getName().toLowerCase(),r=-1,i=0;switch(n){case"rgb(":case"hsl(":r=3;break;case"rgba(":case"hsla(":r=4;break}return r!==-1&&(e.getArguments().accept(o=>o instanceof bi?(i+=1,!1):!0),i!==r&&this.addEntry(e,je.ArgsInColorFunction)),!0}};Kr.prefixes=["-ms-","-moz-","-o-","-webkit-"]});var cs,r0=ue(()=>{"use strict";Bt();Du();n0();hn();cs=class{constructor(e){this.cssDataManager=e}configure(e){this.settings=e}doValidation(e,n,r=this.settings){if(r&&r.validate===!1)return[];let i=[];i.push.apply(i,ts.entries(n)),i.push.apply(i,Kr.entries(n,e,new Eu(r&&r.lint),this.cssDataManager));let o=[];for(let l in je)o.push(je[l].id);function s(l){let a=E.Range.create(e.positionAt(l.getOffset()),e.positionAt(l.getOffset()+l.getLength())),c=e.languageId;return{code:l.getRule().id,source:c,message:l.getMessage(),severity:l.getLevel()===Ht.Warning?E.DiagnosticSeverity.Warning:E.DiagnosticSeverity.Error,range:a}}return i.filter(l=>l.getLevel()!==Ht.Ignore).map(s)}}});var i0,iz,oz,sz,az,lz,cz,Pa,uz,dz,hz,zf,u4,Gr,Iu,ds,d4,Of,Lf,Mu,Pu,za,h4,us,Nf=ue(()=>{"use strict";mi();i0="/".charCodeAt(0),iz=`
|
|
535
|
-
`.charCodeAt(0),oz="\r".charCodeAt(0),sz="\f".charCodeAt(0),az="$".charCodeAt(0),lz="#".charCodeAt(0),cz="{".charCodeAt(0),Pa="=".charCodeAt(0),uz="!".charCodeAt(0),dz="<".charCodeAt(0),hz=">".charCodeAt(0),zf=".".charCodeAt(0),u4="@".charCodeAt(0),Gr=m.CustomToken,Iu=Gr++,ds=Gr++,d4=Gr++,Of=Gr++,Lf=Gr++,Mu=Gr++,Pu=Gr++,za=Gr++,h4=Gr++,us=class extends _n{scanNext(e){if(this.stream.advanceIfChar(az)){let n=["$"];if(this.ident(n))return this.finishToken(e,Iu,n.join(""));this.stream.goBackTo(e)}return this.stream.advanceIfChars([lz,cz])?this.finishToken(e,ds):this.stream.advanceIfChars([Pa,Pa])?this.finishToken(e,Of):this.stream.advanceIfChars([uz,Pa])?this.finishToken(e,Lf):this.stream.advanceIfChar(dz)?this.stream.advanceIfChar(Pa)?this.finishToken(e,Pu):this.finishToken(e,m.Delim):this.stream.advanceIfChar(hz)?this.stream.advanceIfChar(Pa)?this.finishToken(e,Mu):this.finishToken(e,m.Delim):this.stream.advanceIfChars([zf,zf,zf])?this.finishToken(e,za):super.scanNext(e)}comment(){return super.comment()?!0:!this.inURL&&this.stream.advanceIfChars([i0,i0])?(this.stream.advanceWhileChar(e=>{switch(e){case iz:case oz:case sz:return!1;default:return!0}}),!0):!1}}});var Oa,zu,o0=ue(()=>{"use strict";kn();Oa=class{constructor(e,n){this.id=e,this.message=n}},zu={FromExpected:new Oa("scss-fromexpected",F("'from' expected")),ThroughOrToExpected:new Oa("scss-throughexpected",F("'through' or 'to' expected")),InExpected:new Oa("scss-fromexpected",F("'in' expected"))}});var Ou,s0=ue(()=>{"use strict";Nf();mi();gu();Bt();o0();du();Ou=class extends _i{constructor(){super(new us)}_parseStylesheetStatement(e=!1){return this.peek(m.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;let e=this.create(gi);if(this.consumeToken(),!e.addChild(this._parseURILiteral())&&!e.addChild(this._parseStringLiteral()))return this.finish(e,q.URIOrStringExpected);for(;this.accept(m.Comma);)if(!e.addChild(this._parseURILiteral())&&!e.addChild(this._parseStringLiteral()))return this.finish(e,q.URIOrStringExpected);return!this.peek(m.SemiColon)&&!this.peek(m.EOF)&&e.setMedialist(this._parseMediaQueryList()),this.finish(e)}_parseVariableDeclaration(e=[]){if(!this.peek(Iu))return null;let n=this.create(mr);if(!n.setVariable(this._parseVariable()))return null;if(!this.accept(m.Colon))return this.finish(n,q.ColonExpected);if(this.prevToken&&(n.colonPosition=this.prevToken.offset),!n.setValue(this._parseExpr()))return this.finish(n,q.VariableValueExpected,[],e);for(;this.peek(m.Exclamation);)if(!n.addChild(this._tryParsePrio())){if(this.consumeToken(),!this.peekRegExp(m.Ident,/^(default|global)$/))return this.finish(n,q.UnknownKeyword);this.consumeToken()}return this.peek(m.SemiColon)&&(n.semicolonPosition=this.token.offset),this.finish(n)}_parseMediaCondition(){return this._parseInterpolation()||super._parseMediaCondition()}_parseMediaFeatureRangeOperator(){return this.accept(Pu)||this.accept(Mu)||super._parseMediaFeatureRangeOperator()}_parseMediaFeatureName(){return this._parseModuleMember()||this._parseFunction()||this._parseIdent()||this._parseVariable()}_parseKeyframeSelector(){return this._tryParseKeyframeSelector()||this._parseControlStatement(this._parseKeyframeSelector.bind(this))||this._parseVariableDeclaration()||this._parseMixinContent()}_parseVariable(){if(!this.peek(Iu))return null;let e=this.create(vi);return this.consumeToken(),e}_parseModuleMember(){let e=this.mark(),n=this.create(_a);return n.setIdentifier(this._parseIdent([De.Module]))?this.hasWhitespace()||!this.acceptDelim(".")||this.hasWhitespace()?(this.restoreAtMark(e),null):n.addChild(this._parseVariable()||this._parseFunction())?n:this.finish(n,q.IdentifierOrVariableExpected):null}_parseIdent(e){if(!this.peek(m.Ident)&&!this.peek(ds)&&!this.peekDelim("-"))return null;let n=this.create(Ft);n.referenceTypes=e,n.isCustomProperty=this.peekRegExp(m.Ident,/^--/);let r=!1,i=()=>{let o=this.mark();return this.acceptDelim("-")&&(this.hasWhitespace()||this.acceptDelim("-"),this.hasWhitespace())?(this.restoreAtMark(o),null):this._parseInterpolation()};for(;(this.accept(m.Ident)||n.addChild(i())||r&&this.acceptRegexp(/^[\w-]/))&&(r=!0,!this.hasWhitespace()););return r?this.finish(n):null}_parseTermExpression(){return this._parseModuleMember()||this._parseVariable()||this._parseSelectorCombinator()||super._parseTermExpression()}_parseInterpolation(){if(this.peek(ds)){let e=this.create(no);return this.consumeToken(),!e.addChild(this._parseExpr())&&!this._parseSelectorCombinator()?this.accept(m.CurlyR)?this.finish(e):this.finish(e,q.ExpressionExpected):this.accept(m.CurlyR)?this.finish(e):this.finish(e,q.RightCurlyExpected)}return null}_parseOperator(){if(this.peek(Of)||this.peek(Lf)||this.peek(Mu)||this.peek(Pu)||this.peekDelim(">")||this.peekDelim("<")||this.peekIdent("and")||this.peekIdent("or")||this.peekDelim("%")){let e=this.createNode(A.Operator);return this.consumeToken(),this.finish(e)}return super._parseOperator()}_parseUnaryOperator(){if(this.peekIdent("not")){let e=this.create(fe);return this.consumeToken(),this.finish(e)}return super._parseUnaryOperator()}_parseRuleSetDeclaration(){return this.peek(m.AtKeyword)?this._parseKeyframe()||this._parseImport()||this._parseMedia(!0)||this._parseFontFace()||this._parseWarnAndDebug()||this._parseControlStatement()||this._parseFunctionDeclaration()||this._parseExtends()||this._parseMixinReference()||this._parseMixinContent()||this._parseMixinDeclaration()||this._parseRuleset(!0)||this._parseSupports(!0)||this._parseLayer()||this._parsePropertyAtRule()||super._parseRuleSetDeclarationAtStatement():this._parseVariableDeclaration()||this._tryParseRuleset(!0)||super._parseRuleSetDeclaration()}_parseDeclaration(e){let n=this._tryParseCustomPropertyDeclaration(e);if(n)return n;let r=this.create(At);if(!r.setProperty(this._parseProperty()))return null;if(!this.accept(m.Colon))return this.finish(r,q.ColonExpected,[m.Colon],e||[m.SemiColon]);this.prevToken&&(r.colonPosition=this.prevToken.offset);let i=!1;if(r.setValue(this._parseExpr())&&(i=!0,r.addChild(this._parsePrio())),this.peek(m.CurlyL))r.setNestedProperties(this._parseNestedProperties());else if(!i)return this.finish(r,q.PropertyValueExpected);return this.peek(m.SemiColon)&&(r.semicolonPosition=this.token.offset),this.finish(r)}_parseNestedProperties(){let e=this.create(wa);return this._parseBody(e,this._parseDeclaration.bind(this))}_parseExtends(){if(this.peekKeyword("@extend")){let e=this.create(fr);if(this.consumeToken(),!e.getSelectors().addChild(this._parseSimpleSelector()))return this.finish(e,q.SelectorExpected);for(;this.accept(m.Comma);)e.getSelectors().addChild(this._parseSimpleSelector());return this.accept(m.Exclamation)&&!this.acceptIdent("optional")?this.finish(e,q.UnknownKeyword):this.finish(e)}return null}_parseSimpleSelectorBody(){return this._parseSelectorCombinator()||this._parseSelectorPlaceholder()||super._parseSimpleSelectorBody()}_parseSelectorCombinator(){if(this.peekDelim("&")){let e=this.createNode(A.SelectorCombinator);for(this.consumeToken();!this.hasWhitespace()&&(this.acceptDelim("-")||this.accept(m.Num)||this.accept(m.Dimension)||e.addChild(this._parseIdent())||this.acceptDelim("&")););return this.finish(e)}return null}_parseSelectorPlaceholder(){if(this.peekDelim("%")){let e=this.createNode(A.SelectorPlaceholder);return this.consumeToken(),this._parseIdent(),this.finish(e)}else if(this.peekKeyword("@at-root")){let e=this.createNode(A.SelectorPlaceholder);if(this.consumeToken(),this.accept(m.ParenthesisL)){if(!this.acceptIdent("with")&&!this.acceptIdent("without"))return this.finish(e,q.IdentifierExpected);if(!this.accept(m.Colon))return this.finish(e,q.ColonExpected);if(!e.addChild(this._parseIdent()))return this.finish(e,q.IdentifierExpected);if(!this.accept(m.ParenthesisR))return this.finish(e,q.RightParenthesisExpected,[m.CurlyR])}return this.finish(e)}return null}_parseElementName(){let e=this.mark(),n=super._parseElementName();return n&&!this.hasWhitespace()&&this.peek(m.ParenthesisL)?(this.restoreAtMark(e),null):n}_tryParsePseudoIdentifier(){return this._parseInterpolation()||super._tryParsePseudoIdentifier()}_parseWarnAndDebug(){if(!this.peekKeyword("@debug")&&!this.peekKeyword("@warn")&&!this.peekKeyword("@error"))return null;let e=this.createNode(A.Debug);return this.consumeToken(),e.addChild(this._parseExpr()),this.finish(e)}_parseControlStatement(e=this._parseRuleSetDeclaration.bind(this)){return this.peek(m.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){let n=this.create(Nc);if(this.consumeToken(),!n.setExpression(this._parseExpr(!0)))return this.finish(n,q.ExpressionExpected);if(this._parseBody(n,e),this.acceptKeyword("@else")){if(this.peekIdent("if"))n.setElseClause(this._internalParseIfStatement(e));else if(this.peek(m.CurlyL)){let r=this.create(jc);this._parseBody(r,e),n.setElseClause(r)}}return this.finish(n)}_parseForStatement(e){if(!this.peekKeyword("@for"))return null;let n=this.create(Wc);return this.consumeToken(),n.setVariable(this._parseVariable())?this.acceptIdent("from")?n.addChild(this._parseBinaryExpr())?!this.acceptIdent("to")&&!this.acceptIdent("through")?this.finish(n,zu.ThroughOrToExpected,[m.CurlyR]):n.addChild(this._parseBinaryExpr())?this._parseBody(n,e):this.finish(n,q.ExpressionExpected,[m.CurlyR]):this.finish(n,q.ExpressionExpected,[m.CurlyR]):this.finish(n,zu.FromExpected,[m.CurlyR]):this.finish(n,q.VariableNameExpected,[m.CurlyR])}_parseEachStatement(e){if(!this.peekKeyword("@each"))return null;let n=this.create(qc);this.consumeToken();let r=n.getVariables();if(!r.addChild(this._parseVariable()))return this.finish(n,q.VariableNameExpected,[m.CurlyR]);for(;this.accept(m.Comma);)if(!r.addChild(this._parseVariable()))return this.finish(n,q.VariableNameExpected,[m.CurlyR]);return this.finish(r),this.acceptIdent("in")?n.addChild(this._parseExpr())?this._parseBody(n,e):this.finish(n,q.ExpressionExpected,[m.CurlyR]):this.finish(n,zu.InExpected,[m.CurlyR])}_parseWhileStatement(e){if(!this.peekKeyword("@while"))return null;let n=this.create(Uc);return this.consumeToken(),n.addChild(this._parseBinaryExpr())?this._parseBody(n,e):this.finish(n,q.ExpressionExpected,[m.CurlyR])}_parseFunctionBodyDeclaration(){return this._parseVariableDeclaration()||this._parseReturnStatement()||this._parseWarnAndDebug()||this._parseControlStatement(this._parseFunctionBodyDeclaration.bind(this))}_parseFunctionDeclaration(){if(!this.peekKeyword("@function"))return null;let e=this.create(Ur);if(this.consumeToken(),!e.setIdentifier(this._parseIdent([De.Function])))return this.finish(e,q.IdentifierExpected,[m.CurlyR]);if(!this.accept(m.ParenthesisL))return this.finish(e,q.LeftParenthesisExpected,[m.CurlyR]);if(e.getParameters().addChild(this._parseParameterDeclaration())){for(;this.accept(m.Comma)&&!this.peek(m.ParenthesisR);)if(!e.getParameters().addChild(this._parseParameterDeclaration()))return this.finish(e,q.VariableNameExpected)}return this.accept(m.ParenthesisR)?this._parseBody(e,this._parseFunctionBodyDeclaration.bind(this)):this.finish(e,q.RightParenthesisExpected,[m.CurlyR])}_parseReturnStatement(){if(!this.peekKeyword("@return"))return null;let e=this.createNode(A.ReturnStatement);return this.consumeToken(),e.addChild(this._parseExpr())?this.finish(e):this.finish(e,q.ExpressionExpected)}_parseMixinDeclaration(){if(!this.peekKeyword("@mixin"))return null;let e=this.create(Kn);if(this.consumeToken(),!e.setIdentifier(this._parseIdent([De.Mixin])))return this.finish(e,q.IdentifierExpected,[m.CurlyR]);if(this.accept(m.ParenthesisL)){if(e.getParameters().addChild(this._parseParameterDeclaration())){for(;this.accept(m.Comma)&&!this.peek(m.ParenthesisR);)if(!e.getParameters().addChild(this._parseParameterDeclaration()))return this.finish(e,q.VariableNameExpected)}if(!this.accept(m.ParenthesisR))return this.finish(e,q.RightParenthesisExpected,[m.CurlyR])}return this._parseBody(e,this._parseRuleSetDeclaration.bind(this))}_parseParameterDeclaration(){let e=this.create(pr);return e.setIdentifier(this._parseVariable())?(this.accept(za),this.accept(m.Colon)&&!e.setDefaultValue(this._parseExpr(!0))?this.finish(e,q.VariableValueExpected,[],[m.Comma,m.ParenthesisR]):this.finish(e)):null}_parseMixinContent(){if(!this.peekKeyword("@content"))return null;let e=this.create(ou);if(this.consumeToken(),this.accept(m.ParenthesisL)){if(e.getArguments().addChild(this._parseFunctionArgument())){for(;this.accept(m.Comma)&&!this.peek(m.ParenthesisR);)if(!e.getArguments().addChild(this._parseFunctionArgument()))return this.finish(e,q.ExpressionExpected)}if(!this.accept(m.ParenthesisR))return this.finish(e,q.RightParenthesisExpected)}return this.finish(e)}_parseMixinReference(){if(!this.peekKeyword("@include"))return null;let e=this.create(Hr);this.consumeToken();let n=this._parseIdent([De.Mixin]);if(!e.setIdentifier(n))return this.finish(e,q.IdentifierExpected,[m.CurlyR]);if(!this.hasWhitespace()&&this.acceptDelim(".")&&!this.hasWhitespace()){let r=this._parseIdent([De.Mixin]);if(!r)return this.finish(e,q.IdentifierExpected,[m.CurlyR]);let i=this.create(_a);n.referenceTypes=[De.Module],i.setIdentifier(n),e.setIdentifier(r),e.addChild(i)}if(this.accept(m.ParenthesisL)){if(e.getArguments().addChild(this._parseFunctionArgument())){for(;this.accept(m.Comma)&&!this.peek(m.ParenthesisR);)if(!e.getArguments().addChild(this._parseFunctionArgument()))return this.finish(e,q.ExpressionExpected)}if(!this.accept(m.ParenthesisR))return this.finish(e,q.RightParenthesisExpected)}return(this.peekIdent("using")||this.peek(m.CurlyL))&&e.setContent(this._parseMixinContentDeclaration()),this.finish(e)}_parseMixinContentDeclaration(){let e=this.create(su);if(this.acceptIdent("using")){if(!this.accept(m.ParenthesisL))return this.finish(e,q.LeftParenthesisExpected,[m.CurlyL]);if(e.getParameters().addChild(this._parseParameterDeclaration())){for(;this.accept(m.Comma)&&!this.peek(m.ParenthesisR);)if(!e.getParameters().addChild(this._parseParameterDeclaration()))return this.finish(e,q.VariableNameExpected)}if(!this.accept(m.ParenthesisR))return this.finish(e,q.RightParenthesisExpected,[m.CurlyL])}return this.peek(m.CurlyL)&&this._parseBody(e,this._parseMixinReferenceBodyStatement.bind(this)),this.finish(e)}_parseMixinReferenceBodyStatement(){return this._tryParseKeyframeSelector()||this._parseRuleSetDeclaration()}_parseFunctionArgument(){let e=this.create(dn),n=this.mark(),r=this._parseVariable();if(r)if(this.accept(m.Colon))e.setIdentifier(r);else{if(this.accept(za))return e.setValue(r),this.finish(e);this.restoreAtMark(n)}return e.setValue(this._parseExpr(!0))?(this.accept(za),e.addChild(this._parsePrio()),this.finish(e)):e.setValue(this._tryParsePrio())?this.finish(e):null}_parseURLArgument(){let e=this.mark(),n=super._parseURLArgument();if(!n||!this.peek(m.ParenthesisR)){this.restoreAtMark(e);let r=this.create(fe);return r.addChild(this._parseBinaryExpr()),this.finish(r)}return n}_parseOperation(){if(!this.peek(m.ParenthesisL))return null;let e=this.create(fe);for(this.consumeToken();e.addChild(this._parseListElement());)this.accept(m.Comma);return this.accept(m.ParenthesisR)?this.finish(e):this.finish(e,q.RightParenthesisExpected)}_parseListElement(){let e=this.create(au),n=this._parseBinaryExpr();if(!n)return null;if(this.accept(m.Colon)){if(e.setKey(n),!e.setValue(this._parseBinaryExpr()))return this.finish(e,q.ExpressionExpected)}else e.setValue(n);return this.finish(e)}_parseUse(){if(!this.peekKeyword("@use"))return null;let e=this.create(Bc);if(this.consumeToken(),!e.addChild(this._parseStringLiteral()))return this.finish(e,q.StringLiteralExpected);if(!this.peek(m.SemiColon)&&!this.peek(m.EOF)){if(!this.peekRegExp(m.Ident,/as|with/))return this.finish(e,q.UnknownKeyword);if(this.acceptIdent("as")&&!e.setIdentifier(this._parseIdent([De.Module]))&&!this.acceptDelim("*"))return this.finish(e,q.IdentifierOrWildcardExpected);if(this.acceptIdent("with")){if(!this.accept(m.ParenthesisL))return this.finish(e,q.LeftParenthesisExpected,[m.ParenthesisR]);if(!e.getParameters().addChild(this._parseModuleConfigDeclaration()))return this.finish(e,q.VariableNameExpected);for(;this.accept(m.Comma)&&!this.peek(m.ParenthesisR);)if(!e.getParameters().addChild(this._parseModuleConfigDeclaration()))return this.finish(e,q.VariableNameExpected);if(!this.accept(m.ParenthesisR))return this.finish(e,q.RightParenthesisExpected)}}return!this.accept(m.SemiColon)&&!this.accept(m.EOF)?this.finish(e,q.SemiColonExpected):this.finish(e)}_parseModuleConfigDeclaration(){let e=this.create($c);return e.setIdentifier(this._parseVariable())?!this.accept(m.Colon)||!e.setValue(this._parseExpr(!0))?this.finish(e,q.VariableValueExpected,[],[m.Comma,m.ParenthesisR]):this.accept(m.Exclamation)&&(this.hasWhitespace()||!this.acceptIdent("default"))?this.finish(e,q.UnknownKeyword):this.finish(e):null}_parseForward(){if(!this.peekKeyword("@forward"))return null;let e=this.create(Vc);if(this.consumeToken(),!e.addChild(this._parseStringLiteral()))return this.finish(e,q.StringLiteralExpected);if(this.acceptIdent("as")){let n=this._parseIdent([De.Forward]);if(!e.setIdentifier(n))return this.finish(e,q.IdentifierExpected);if(this.hasWhitespace()||!this.acceptDelim("*"))return this.finish(e,q.WildcardExpected)}if(this.acceptIdent("with")){if(!this.accept(m.ParenthesisL))return this.finish(e,q.LeftParenthesisExpected,[m.ParenthesisR]);if(!e.getParameters().addChild(this._parseModuleConfigDeclaration()))return this.finish(e,q.VariableNameExpected);for(;this.accept(m.Comma)&&!this.peek(m.ParenthesisR);)if(!e.getParameters().addChild(this._parseModuleConfigDeclaration()))return this.finish(e,q.VariableNameExpected);if(!this.accept(m.ParenthesisR))return this.finish(e,q.RightParenthesisExpected)}else if((this.peekIdent("hide")||this.peekIdent("show"))&&!e.addChild(this._parseForwardVisibility()))return this.finish(e,q.IdentifierOrVariableExpected);return!this.accept(m.SemiColon)&&!this.accept(m.EOF)?this.finish(e,q.SemiColonExpected):this.finish(e)}_parseForwardVisibility(){let e=this.create(Kc);for(e.setIdentifier(this._parseIdent());e.addChild(this._parseVariable()||this._parseIdent());)this.accept(m.Comma);return e.getChildren().length>1?e:null}_parseSupportsCondition(){return this._parseInterpolation()||super._parseSupportsCondition()}}});function a0(t){t.forEach(e=>{if(e.documentation&&e.references&&e.references.length>0){let n=typeof e.documentation=="string"?{kind:"markdown",value:e.documentation}:{kind:"markdown",value:e.documentation.value};n.value+=`
|
|
532
|
+
`),n+=t.references.map(r=>`[${r.name}](${r.url})`).join(" | ")),n}function xx(t=[]){return t.length===0?null:t.map(e=>{let n="",r=e.match(/([A-Z]+)(\d+)?/),i=r[1],o=r[2];return i in _x&&(n+=_x[i]),o&&(n+=" "+o),n}).join(", ")}var _x,kx=ue(()=>{"use strict";hn();_x={E:"Edge",FF:"Firefox",S:"Safari",C:"Chrome",IE:"IE",O:"Opera"}});function _i(t,e){let r=t.getText().match(/^([-+]?[0-9]*\.?[0-9]+)(%?)$/);if(r){r[2]&&(e=100);let i=parseFloat(r[1])/e;if(i>=0&&i<=1)return i}throw new Error}function Cx(t){let e=t.getText(),n=e.match(/^([-+]?[0-9]*\.?[0-9]+)(deg|rad|grad|turn)?$/);if(n)switch(n[2]){case"deg":return parseFloat(e)%360;case"rad":return parseFloat(e)*180/Math.PI%360;case"grad":return parseFloat(e)*.9%360;case"turn":return parseFloat(e)*360%360;default:if(typeof n[2]>"u")return parseFloat(e)%360}throw new Error}function Fx(t){let e=t.getName();return e?/^(rgb|rgba|hsl|hsla|hwb)$/gi.test(e):!1}function wt(t){return t<Tx?0:t<=NP?t-Tx:(t<pu&&(t+=pu-WP),t>=pu&&t<=qP?t-pu+10:0)}function Ex(t){if(t[0]!=="#")return null;switch(t.length){case 4:return{red:wt(t.charCodeAt(1))*17/255,green:wt(t.charCodeAt(2))*17/255,blue:wt(t.charCodeAt(3))*17/255,alpha:1};case 5:return{red:wt(t.charCodeAt(1))*17/255,green:wt(t.charCodeAt(2))*17/255,blue:wt(t.charCodeAt(3))*17/255,alpha:wt(t.charCodeAt(4))*17/255};case 7:return{red:(wt(t.charCodeAt(1))*16+wt(t.charCodeAt(2)))/255,green:(wt(t.charCodeAt(3))*16+wt(t.charCodeAt(4)))/255,blue:(wt(t.charCodeAt(5))*16+wt(t.charCodeAt(6)))/255,alpha:1};case 9:return{red:(wt(t.charCodeAt(1))*16+wt(t.charCodeAt(2)))/255,green:(wt(t.charCodeAt(3))*16+wt(t.charCodeAt(4)))/255,blue:(wt(t.charCodeAt(5))*16+wt(t.charCodeAt(6)))/255,alpha:(wt(t.charCodeAt(7))*16+wt(t.charCodeAt(8)))/255}}return null}function Ax(t,e,n,r=1){if(t=t/60,e===0)return{red:n,green:n,blue:n,alpha:r};{let i=(l,a,c)=>{for(;c<0;)c+=6;for(;c>=6;)c-=6;return c<1?(a-l)*c+l:c<3?a:c<4?(a-l)*(4-c)+l:l},o=n<=.5?n*(e+1):n+e-n*e,s=n*2-o;return{red:i(s,o,t+2),green:i(s,o,t),blue:i(s,o,t-2),alpha:r}}}function cf(t){let e=t.red,n=t.green,r=t.blue,i=t.alpha,o=Math.max(e,n,r),s=Math.min(e,n,r),l=0,a=0,c=(s+o)/2,u=o-s;if(u>0){switch(a=Math.min(c<=.5?u/(2*c):u/(2-2*c),1),o){case e:l=(n-r)/u+(n<r?6:0);break;case n:l=(r-e)/u+2;break;case r:l=(e-n)/u+4;break}l*=60,l=Math.round(l)}return{h:l,s:a,l:c,a:i}}function UP(t,e,n,r=1){if(e+n>=1){let a=e/(e+n);return{red:a,green:a,blue:a,alpha:r}}let i=Ax(t,1,.5,r),o=i.red;o*=1-e-n,o+=e;let s=i.green;s*=1-e-n,s+=e;let l=i.blue;return l*=1-e-n,l+=e,{red:o,green:s,blue:l,alpha:r}}function Rx(t){let e=cf(t),n=Math.min(t.red,t.green,t.blue),r=1-Math.max(t.red,t.green,t.blue);return{h:e.h,w:n,b:r,a:e.a}}function Ix(t){if(t.type===A.HexColorValue){let e=t.getText();return Ex(e)}else if(t.type===A.Function){let e=t,n=e.getName(),r=e.getArguments().getChildren();if(r.length===1){let i=r[0].getChildren();if(i.length===1&&i[0].type===A.Expression&&(r=i[0].getChildren(),r.length===3)){let o=r[2];if(o instanceof vi){let s=o.getLeft(),l=o.getRight(),a=o.getOperator();s&&l&&a&&a.matches("/")&&(r=[r[0],r[1],s,l])}}}if(!n||r.length<3||r.length>4)return null;try{let i=r.length===4?_i(r[3],1):1;if(n==="rgb"||n==="rgba")return{red:_i(r[0],255),green:_i(r[1],255),blue:_i(r[2],255),alpha:i};if(n==="hsl"||n==="hsla"){let o=Cx(r[0]),s=_i(r[1],100),l=_i(r[2],100);return Ax(o,s,l,i)}else if(n==="hwb"){let o=Cx(r[0]),s=_i(r[1],100),l=_i(r[2],100);return UP(o,s,l,i)}}catch{return null}}else if(t.type===A.Identifier){if(t.parent&&t.parent.type!==A.Term)return null;let e=t.parent;if(e&&e.parent&&e.parent.type===A.BinaryExpression){let i=e.parent;if(i.parent&&i.parent.type===A.ListEntry&&i.parent.key===i)return null}let n=t.getText().toLowerCase();if(n==="none")return null;let r=xa[n];if(r)return Ex(r)}return null}var Dx,xa,lf,Tx,NP,WP,pu,qP,Mx=ue(()=>{Bt();kn();Dx=[{func:"rgb($red, $green, $blue)",desc:F("Creates a Color from red, green, and blue values.")},{func:"rgba($red, $green, $blue, $alpha)",desc:F("Creates a Color from red, green, blue, and alpha values.")},{func:"hsl($hue, $saturation, $lightness)",desc:F("Creates a Color from hue, saturation, and lightness values.")},{func:"hsla($hue, $saturation, $lightness, $alpha)",desc:F("Creates a Color from hue, saturation, lightness, and alpha values.")},{func:"hwb($hue $white $black)",desc:F("Creates a Color from hue, white and black.")}],xa={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"},lf={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."};Tx=48,NP=57,WP=65,pu=97,qP=102});var uf,df,hf,Px,pf,mf,ff,gf,bf,vf,wf,mu,zx,Ox,Lx,Nx=ue(()=>{"use strict";uf={bottom:"Computes to \u2018100%\u2019 for the vertical position if one or two values are given, otherwise specifies the bottom edge as the origin for the next offset.",center:"Computes to \u201850%\u2019 (\u2018left 50%\u2019) for the horizontal position if the horizontal position is not otherwise specified, or \u201850%\u2019 (\u2018top 50%\u2019) for the vertical position if it is.",left:"Computes to \u20180%\u2019 for the horizontal position if one or two values are given, otherwise specifies the left edge as the origin for the next offset.",right:"Computes to \u2018100%\u2019 for the horizontal position if one or two values are given, otherwise specifies the right edge as the origin for the next offset.",top:"Computes to \u20180%\u2019 for the vertical position if one or two values are given, otherwise specifies the top edge as the origin for the next offset."},df={"no-repeat":"Placed once and not repeated in this direction.",repeat:"Repeated in this direction as often as needed to cover the background painting area.","repeat-x":"Computes to \u2018repeat no-repeat\u2019.","repeat-y":"Computes to \u2018no-repeat repeat\u2019.",round:"Repeated as often as will fit within the background positioning area. If it doesn\u2019t fit a whole number of times, it is rescaled so that it does.",space:"Repeated as often as will fit within the background positioning area without being clipped and then the images are spaced out to fill the area."},hf={dashed:"A series of square-ended dashes.",dotted:"A series of round dots.",double:"Two parallel solid lines with some space between them.",groove:"Looks as if it were carved in the canvas.",hidden:"Same as \u2018none\u2019, but has different behavior in the border conflict resolution rules for border-collapsed tables.",inset:"Looks as if the content on the inside of the border is sunken into the canvas.",none:"No border. Color and width are ignored.",outset:"Looks as if the content on the inside of the border is coming out of the canvas.",ridge:"Looks as if it were coming out of the canvas.",solid:"A single line segment."},Px=["medium","thick","thin"],pf={"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."},mf={"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."},ff={initial:"Represents the value specified as the property\u2019s initial value.",inherit:"Represents the computed value of the property on the element\u2019s parent.",unset:"Acts as either `inherit` or `initial`, depending on whether the property is inherited or not."},gf={"var()":"Evaluates the value of a custom variable.","calc()":"Evaluates an mathematical expression. The following operators can be used: + - * /."},bf={"url()":"Reference an image file by URL","image()":"Provide image fallbacks and annotations.","-webkit-image-set()":"Provide multiple resolutions. Remember to use unprefixed image-set() in addition.","image-set()":"Provide multiple resolutions of an image and const the UA decide which is most appropriate in a given situation.","-moz-element()":"Use an element in the document as an image. Remember to use unprefixed element() in addition.","element()":"Use an element in the document as an image.","cross-fade()":"Indicates the two images to be combined and how far along in the transition the combination is.","-webkit-gradient()":"Deprecated. Use modern linear-gradient() or radial-gradient() instead.","-webkit-linear-gradient()":"Linear gradient. Remember to use unprefixed version in addition.","-moz-linear-gradient()":"Linear gradient. Remember to use unprefixed version in addition.","-o-linear-gradient()":"Linear gradient. Remember to use unprefixed version in addition.","linear-gradient()":"A linear gradient is created by specifying a straight gradient line, and then several colors placed along that line.","-webkit-repeating-linear-gradient()":"Repeating Linear gradient. Remember to use unprefixed version in addition.","-moz-repeating-linear-gradient()":"Repeating Linear gradient. Remember to use unprefixed version in addition.","-o-repeating-linear-gradient()":"Repeating Linear gradient. Remember to use unprefixed version in addition.","repeating-linear-gradient()":"Same as linear-gradient, except the color-stops are repeated infinitely in both directions, with their positions shifted by multiples of the difference between the last specified color-stop\u2019s position and the first specified color-stop\u2019s position.","-webkit-radial-gradient()":"Radial gradient. Remember to use unprefixed version in addition.","-moz-radial-gradient()":"Radial gradient. Remember to use unprefixed version in addition.","radial-gradient()":"Colors emerge from a single point and smoothly spread outward in a circular or elliptical shape.","-webkit-repeating-radial-gradient()":"Repeating radial gradient. Remember to use unprefixed version in addition.","-moz-repeating-radial-gradient()":"Repeating radial gradient. Remember to use unprefixed version in addition.","repeating-radial-gradient()":"Same as radial-gradient, except the color-stops are repeated infinitely in both directions, with their positions shifted by multiples of the difference between the last specified color-stop\u2019s position and the first specified color-stop\u2019s position."},vf={ease:"Equivalent to cubic-bezier(0.25, 0.1, 0.25, 1.0).","ease-in":"Equivalent to cubic-bezier(0.42, 0, 1.0, 1.0).","ease-in-out":"Equivalent to cubic-bezier(0.42, 0, 0.58, 1.0).","ease-out":"Equivalent to cubic-bezier(0, 0, 0.58, 1.0).",linear:"Equivalent to cubic-bezier(0.0, 0.0, 1.0, 1.0).","step-end":"Equivalent to steps(1, end).","step-start":"Equivalent to steps(1, start).","steps()":"The first parameter specifies the number of intervals in the function. The second parameter, which is optional, is either the value \u201Cstart\u201D or \u201Cend\u201D.","cubic-bezier()":"Specifies a cubic-bezier curve. The four values specify points P1 and P2 of the curve as (x1, y1, x2, y2).","cubic-bezier(0.6, -0.28, 0.735, 0.045)":"Ease-in Back. Overshoots.","cubic-bezier(0.68, -0.55, 0.265, 1.55)":"Ease-in-out Back. Overshoots.","cubic-bezier(0.175, 0.885, 0.32, 1.275)":"Ease-out Back. Overshoots.","cubic-bezier(0.6, 0.04, 0.98, 0.335)":"Ease-in Circular. Based on half circle.","cubic-bezier(0.785, 0.135, 0.15, 0.86)":"Ease-in-out Circular. Based on half circle.","cubic-bezier(0.075, 0.82, 0.165, 1)":"Ease-out Circular. Based on half circle.","cubic-bezier(0.55, 0.055, 0.675, 0.19)":"Ease-in Cubic. Based on power of three.","cubic-bezier(0.645, 0.045, 0.355, 1)":"Ease-in-out Cubic. Based on power of three.","cubic-bezier(0.215, 0.610, 0.355, 1)":"Ease-out Cubic. Based on power of three.","cubic-bezier(0.95, 0.05, 0.795, 0.035)":"Ease-in Exponential. Based on two to the power ten.","cubic-bezier(1, 0, 0, 1)":"Ease-in-out Exponential. Based on two to the power ten.","cubic-bezier(0.19, 1, 0.22, 1)":"Ease-out Exponential. Based on two to the power ten.","cubic-bezier(0.47, 0, 0.745, 0.715)":"Ease-in Sine.","cubic-bezier(0.445, 0.05, 0.55, 0.95)":"Ease-in-out Sine.","cubic-bezier(0.39, 0.575, 0.565, 1)":"Ease-out Sine.","cubic-bezier(0.55, 0.085, 0.68, 0.53)":"Ease-in Quadratic. Based on power of two.","cubic-bezier(0.455, 0.03, 0.515, 0.955)":"Ease-in-out Quadratic. Based on power of two.","cubic-bezier(0.25, 0.46, 0.45, 0.94)":"Ease-out Quadratic. Based on power of two.","cubic-bezier(0.895, 0.03, 0.685, 0.22)":"Ease-in Quartic. Based on power of four.","cubic-bezier(0.77, 0, 0.175, 1)":"Ease-in-out Quartic. Based on power of four.","cubic-bezier(0.165, 0.84, 0.44, 1)":"Ease-out Quartic. Based on power of four.","cubic-bezier(0.755, 0.05, 0.855, 0.06)":"Ease-in Quintic. Based on power of five.","cubic-bezier(0.86, 0, 0.07, 1)":"Ease-in-out Quintic. Based on power of five.","cubic-bezier(0.23, 1, 0.320, 1)":"Ease-out Quintic. Based on power of five."},wf={"circle()":"Defines a circle.","ellipse()":"Defines an ellipse.","inset()":"Defines an inset rectangle.","polygon()":"Defines a polygon."},mu={length:["em","rem","ex","px","cm","mm","in","pt","pc","ch","vw","vh","vmin","vmax"],angle:["deg","rad","grad","turn"],time:["ms","s"],frequency:["Hz","kHz"],resolution:["dpi","dpcm","dppx"],percentage:["%","fr"]},zx=["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"],Ox=["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"],Lx=["@bottom-center","@bottom-left","@bottom-left-corner","@bottom-right","@bottom-right-corner","@left-bottom","@left-middle","@left-top","@right-bottom","@right-middle","@right-top","@top-center","@top-left","@top-left-corner","@top-right","@top-right-corner"]});var rs=ue(()=>{"use strict";kx();Mx();Nx()});function ka(t){return Object.keys(t).map(e=>t[e])}function en(t){return typeof t<"u"}var Ca=ue(()=>{"use strict"});var Si,gu=ue(()=>{"use strict";fi();Bt();du();rs();Ca();Si=class{constructor(e=new _n){this.keyframeRegex=/^@(\-(webkit|ms|moz|o)\-)?keyframes$/i,this.scanner=e,this.token={type:m.EOF,offset:-1,len:0,text:""},this.prevToken=void 0}peekIdent(e){return m.Ident===this.token.type&&e.length===this.token.text.length&&e===this.token.text.toLowerCase()}peekKeyword(e){return m.AtKeyword===this.token.type&&e.length===this.token.text.length&&e===this.token.text.toLowerCase()}peekDelim(e){return m.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,n){return e!==this.token.type?!1:n.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(){let 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){let n=this.mark(),r=e();return r||(this.restoreAtMark(n),null)}acceptOneKeyword(e){if(m.AtKeyword===this.token.type){for(let n of e)if(n.length===this.token.text.length&&n===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 n=this.createNode(A.Identifier);do;while(this.acceptRegexp(e));return this.finish(n)}acceptUnquotedString(){let e=this.scanner.pos();this.scanner.goBackTo(this.token.offset);let n=this.scanner.scanUnquotedString();return n?(this.token=n,this.consumeToken(),!0):(this.scanner.goBackTo(e),!1)}resync(e,n){for(;;){if(e&&e.indexOf(this.token.type)!==-1)return this.consumeToken(),!0;if(n&&n.indexOf(this.token.type)!==-1)return!0;if(this.token.type===m.EOF)return!1;this.token=this.scanner.scan()}}createNode(e){return new fe(this.token.offset,this.token.len,e)}create(e){return new e(this.token.offset,this.token.len)}finish(e,n,r,i){if(!(e instanceof It)&&(n&&this.markError(e,n,r,i),this.prevToken)){let o=this.prevToken.offset+this.prevToken.len;e.length=o>e.offset?o-e.offset:0}return e}markError(e,n,r,i){this.token!==this.lastErrorToken&&(e.addIssue(new es(e,n,Ht.Error,void 0,this.token.offset,this.token.len)),this.lastErrorToken=this.token),(r||i)&&this.resync(r,i)}parseStylesheet(e){let n=e.version,r=e.getText(),i=(o,s)=>{if(e.version!==n)throw new Error("Underlying model has changed, AST is no longer valid");return r.substr(o,s)};return this.internalParse(r,this._parseStylesheet,i)}internalParse(e,n,r){this.scanner.setSource(e),this.token=this.scanner.scan();let i=n.bind(this)();return i&&(r?i.textProvider=r:i.textProvider=(o,s)=>e.substr(o,s)),i}_parseStylesheet(){let e=this.create(zc);for(;e.addChild(this._parseStylesheetStart()););let n=!1;do{let r=!1;do{r=!1;let i=this._parseStylesheetStatement();for(i&&(e.addChild(i),r=!0,n=!1,!this.peek(m.EOF)&&this._needsSemicolonAfter(i)&&!this.accept(m.SemiColon)&&this.markError(e,q.SemiColonExpected));this.accept(m.SemiColon)||this.accept(m.CDO)||this.accept(m.CDC);)r=!0,n=!1}while(r);if(this.peek(m.EOF))break;n||(this.peek(m.AtKeyword)?this.markError(e,q.UnknownAtRule):this.markError(e,q.RuleOrSelectorExpected),n=!0),this.consumeToken()}while(!this.peek(m.EOF));return this.finish(e)}_parseStylesheetStart(){return this._parseCharset()}_parseStylesheetStatement(e=!1){return this.peek(m.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()||this._parsePropertyAtRule()||this._parseViewPort()||this._parseNamespace()||this._parseDocument()||this._parseUnknownAtRule()}_tryParseRuleset(e){let n=this.mark();if(this._parseSelector(e)){for(;this.accept(m.Comma)&&this._parseSelector(e););if(this.accept(m.CurlyL))return this.restoreAtMark(n),this._parseRuleset(e)}return this.restoreAtMark(n),null}_parseRuleset(e=!1){let n=this.create(un),r=n.getSelectors();if(!r.addChild(this._parseSelector(e)))return null;for(;this.accept(m.Comma);)if(!r.addChild(this._parseSelector(e)))return this.finish(n,q.SelectorExpected);return this._parseBody(n,this._parseRuleSetDeclaration.bind(this))}_parseRuleSetDeclarationAtStatement(){return this._parseUnknownAtRule()}_parseRuleSetDeclaration(){return this.peek(m.AtKeyword)?this._parseRuleSetDeclarationAtStatement():this._parseDeclaration()}_needsSemicolonAfter(e){switch(e.type){case A.Keyframe:case A.ViewPort:case A.Media:case A.Ruleset:case A.Namespace:case A.If:case A.For:case A.Each:case A.While:case A.MixinDeclaration:case A.FunctionDeclaration:case A.MixinContentDeclaration:return!1;case A.ExtendsReference:case A.MixinContentReference:case A.ReturnStatement:case A.MediaQuery:case A.Debug:case A.Import:case A.AtApplyRule:case A.CustomPropertyDeclaration:return!0;case A.VariableDeclaration:return e.needsSemicolon;case A.MixinReference:return!e.getContent();case A.Declaration:return!e.getNestedProperties()}return!1}_parseDeclarations(e){let n=this.create(Yi);if(!this.accept(m.CurlyL))return null;let r=e();for(;n.addChild(r)&&!this.peek(m.CurlyR);){if(this._needsSemicolonAfter(r)&&!this.accept(m.SemiColon))return this.finish(n,q.SemiColonExpected,[m.SemiColon,m.CurlyR]);for(r&&this.prevToken&&this.prevToken.type===m.SemiColon&&(r.semicolonPosition=this.prevToken.offset);this.accept(m.SemiColon););r=e()}return this.accept(m.CurlyR)?this.finish(n):this.finish(n,q.RightCurlyExpected,[m.CurlyR,m.SemiColon])}_parseBody(e,n){return e.setDeclarations(this._parseDeclarations(n))?this.finish(e):this.finish(e,q.LeftCurlyExpected,[m.CurlyR,m.SemiColon])}_parseSelector(e){let n=this.create(Sn),r=!1;for(e&&(r=n.addChild(this._parseCombinator()));n.addChild(this._parseSimpleSelector());)r=!0,n.addChild(this._parseCombinator());return r?this.finish(n):null}_parseDeclaration(e){let n=this._tryParseCustomPropertyDeclaration(e);if(n)return n;let r=this.create(At);return r.setProperty(this._parseProperty())?this.accept(m.Colon)?(this.prevToken&&(r.colonPosition=this.prevToken.offset),r.setValue(this._parseExpr())?(r.addChild(this._parsePrio()),this.peek(m.SemiColon)&&(r.semicolonPosition=this.token.offset),this.finish(r)):this.finish(r,q.PropertyValueExpected)):this.finish(r,q.ColonExpected,[m.Colon],e||[m.SemiColon]):null}_tryParseCustomPropertyDeclaration(e){if(!this.peekRegExp(m.Ident,/^--/))return null;let n=this.create(Lc);if(!n.setProperty(this._parseProperty()))return null;if(!this.accept(m.Colon))return this.finish(n,q.ColonExpected,[m.Colon]);this.prevToken&&(n.colonPosition=this.prevToken.offset);let r=this.mark();if(this.peek(m.CurlyL)){let o=this.create(Oc),s=this._parseDeclarations(this._parseRuleSetDeclaration.bind(this));if(o.setDeclarations(s)&&!s.isErroneous(!0)&&(o.addChild(this._parsePrio()),this.peek(m.SemiColon)))return this.finish(o),n.setPropertySet(o),n.semicolonPosition=this.token.offset,this.finish(n);this.restoreAtMark(r)}let i=this._parseExpr();return i&&!i.isErroneous(!0)&&(this._parsePrio(),this.peekOne(...e||[],m.SemiColon,m.EOF))?(n.setValue(i),this.peek(m.SemiColon)&&(n.semicolonPosition=this.token.offset),this.finish(n)):(this.restoreAtMark(r),n.addChild(this._parseCustomPropertyValue(e)),n.addChild(this._parsePrio()),en(n.colonPosition)&&this.token.offset===n.colonPosition+1?this.finish(n,q.PropertyValueExpected):this.finish(n))}_parseCustomPropertyValue(e=[m.CurlyR]){let n=this.create(fe),r=()=>o===0&&s===0&&l===0,i=()=>e.indexOf(this.token.type)!==-1,o=0,s=0,l=0;e:for(;;){switch(this.token.type){case m.SemiColon:if(r())break e;break;case m.Exclamation:if(r())break e;break;case m.CurlyL:o++;break;case m.CurlyR:if(o--,o<0){if(i()&&s===0&&l===0)break e;return this.finish(n,q.LeftCurlyExpected)}break;case m.ParenthesisL:s++;break;case m.ParenthesisR:if(s--,s<0){if(i()&&l===0&&o===0)break e;return this.finish(n,q.LeftParenthesisExpected)}break;case m.BracketL:l++;break;case m.BracketR:if(l--,l<0)return this.finish(n,q.LeftSquareBracketExpected);break;case m.BadString:break e;case m.EOF:let a=q.RightCurlyExpected;return l>0?a=q.RightSquareBracketExpected:s>0&&(a=q.RightParenthesisExpected),this.finish(n,a)}this.consumeToken()}return this.finish(n)}_tryToParseDeclaration(e){let n=this.mark();return this._parseProperty()&&this.accept(m.Colon)?(this.restoreAtMark(n),this._parseDeclaration(e)):(this.restoreAtMark(n),null)}_parseProperty(){let e=this.create(gi),n=this.mark();return(this.acceptDelim("*")||this.acceptDelim("_"))&&this.hasWhitespace()?(this.restoreAtMark(n),null):e.setIdentifier(this._parsePropertyIdentifier())?this.finish(e):null}_parsePropertyIdentifier(){return this._parseIdent()}_parseCharset(){if(!this.peek(m.Charset))return null;let e=this.create(fe);return this.consumeToken(),this.accept(m.String)?this.accept(m.SemiColon)?this.finish(e):this.finish(e,q.SemiColonExpected):this.finish(e,q.IdentifierExpected)}_parseImport(){if(!this.peekKeyword("@import"))return null;let e=this.create(bi);if(this.consumeToken(),!e.addChild(this._parseURILiteral())&&!e.addChild(this._parseStringLiteral()))return this.finish(e,q.URIOrStringExpected);if(this.acceptIdent("layer")&&this.accept(m.ParenthesisL)){if(!e.addChild(this._parseLayerName()))return this.finish(e,q.IdentifierExpected,[m.SemiColon]);if(!this.accept(m.ParenthesisR))return this.finish(e,q.RightParenthesisExpected,[m.ParenthesisR],[])}return this.acceptIdent("supports")&&this.accept(m.ParenthesisL)&&(e.addChild(this._tryToParseDeclaration()||this._parseSupportsCondition()),!this.accept(m.ParenthesisR))?this.finish(e,q.RightParenthesisExpected,[m.ParenthesisR],[]):(!this.peek(m.SemiColon)&&!this.peek(m.EOF)&&e.setMedialist(this._parseMediaQueryList()),this.finish(e))}_parseNamespace(){if(!this.peekKeyword("@namespace"))return null;let e=this.create(Gc);return this.consumeToken(),!e.addChild(this._parseURILiteral())&&(e.addChild(this._parseIdent()),!e.addChild(this._parseURILiteral())&&!e.addChild(this._parseStringLiteral()))?this.finish(e,q.URIExpected,[m.SemiColon]):this.accept(m.SemiColon)?this.finish(e):this.finish(e,q.SemiColonExpected)}_parseFontFace(){if(!this.peekKeyword("@font-face"))return null;let e=this.create(Ko);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;let e=this.create(Hc);return this.consumeToken(),this._parseBody(e,this._parseRuleSetDeclaration.bind(this))}_parseKeyframe(){if(!this.peekRegExp(m.AtKeyword,this.keyframeRegex))return null;let e=this.create(Go),n=this.create(fe);return this.consumeToken(),e.setKeyword(this.finish(n)),n.matches("@-ms-keyframes")&&this.markError(n,q.UnknownKeyword),e.setIdentifier(this._parseKeyframeIdent())?this._parseBody(e,this._parseKeyframeSelector.bind(this)):this.finish(e,q.IdentifierExpected,[m.CurlyR])}_parseKeyframeIdent(){return this._parseIdent([De.Keyframe])}_parseKeyframeSelector(){let e=this.create(ya);if(!e.addChild(this._parseIdent())&&!this.accept(m.Percentage))return null;for(;this.accept(m.Comma);)if(!e.addChild(this._parseIdent())&&!this.accept(m.Percentage))return this.finish(e,q.PercentageExpected);return this._parseBody(e,this._parseRuleSetDeclaration.bind(this))}_tryParseKeyframeSelector(){let e=this.create(ya),n=this.mark();if(!e.addChild(this._parseIdent())&&!this.accept(m.Percentage))return null;for(;this.accept(m.Comma);)if(!e.addChild(this._parseIdent())&&!this.accept(m.Percentage))return this.restoreAtMark(n),null;return this.peek(m.CurlyL)?this._parseBody(e,this._parseRuleSetDeclaration.bind(this)):(this.restoreAtMark(n),null)}_parsePropertyAtRule(){if(!this.peekKeyword("@property"))return null;let e=this.create(Xc);return this.consumeToken(),!this.peekRegExp(m.Ident,/^--/)||!e.setName(this._parseIdent([De.Property]))?this.finish(e,q.IdentifierExpected):this._parseBody(e,this._parseDeclaration.bind(this))}_parseLayer(){if(!this.peekKeyword("@layer"))return null;let e=this.create(Jc);this.consumeToken();let n=this._parseLayerNameList();return n&&e.setNames(n),(!n||n.getChildren().length===1)&&this.peek(m.CurlyL)?this._parseBody(e,this._parseStylesheetStatement.bind(this)):this.accept(m.SemiColon)?this.finish(e):this.finish(e,q.SemiColonExpected)}_parseLayerNameList(){let e=this.createNode(A.LayerNameList);if(!e.addChild(this._parseLayerName()))return null;for(;this.accept(m.Comma);)if(!e.addChild(this._parseLayerName()))return this.finish(e,q.IdentifierExpected);return this.finish(e)}_parseLayerName(){if(!this.peek(m.Ident))return null;let e=this.createNode(A.LayerName);for(e.addChild(this._parseIdent());!this.hasWhitespace()&&this.acceptDelim(".");)if(this.hasWhitespace()||!e.addChild(this._parseIdent()))return this.finish(e,q.IdentifierExpected);return this.finish(e)}_parseSupports(e=!1){if(!this.peekKeyword("@supports"))return null;let n=this.create(Zi);return this.consumeToken(),n.addChild(this._parseSupportsCondition()),this._parseBody(n,this._parseSupportsDeclaration.bind(this,e))}_parseSupportsDeclaration(e=!1){return e?this._tryParseRuleset(!0)||this._tryToParseDeclaration()||this._parseStylesheetStatement(!0):this._parseStylesheetStatement(!1)}_parseSupportsCondition(){let e=this.create(jr);if(this.acceptIdent("not"))e.addChild(this._parseSupportsConditionInParens());else if(e.addChild(this._parseSupportsConditionInParens()),this.peekRegExp(m.Ident,/^(and|or)$/i)){let n=this.token.text.toLowerCase();for(;this.acceptIdent(n);)e.addChild(this._parseSupportsConditionInParens())}return this.finish(e)}_parseSupportsConditionInParens(){let e=this.create(jr);if(this.accept(m.ParenthesisL))return this.prevToken&&(e.lParent=this.prevToken.offset),!e.addChild(this._tryToParseDeclaration([m.ParenthesisR]))&&!this._parseSupportsCondition()?this.finish(e,q.ConditionExpected):this.accept(m.ParenthesisR)?(this.prevToken&&(e.rParent=this.prevToken.offset),this.finish(e)):this.finish(e,q.RightParenthesisExpected,[m.ParenthesisR],[]);if(this.peek(m.Ident)){let n=this.mark();if(this.consumeToken(),!this.hasWhitespace()&&this.accept(m.ParenthesisL)){let r=1;for(;this.token.type!==m.EOF&&r!==0;)this.token.type===m.ParenthesisL?r++:this.token.type===m.ParenthesisR&&r--,this.consumeToken();return this.finish(e)}else this.restoreAtMark(n)}return this.finish(e,q.LeftParenthesisExpected,[],[m.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;let n=this.create(Jo);return this.consumeToken(),n.addChild(this._parseMediaQueryList())?this._parseBody(n,this._parseMediaDeclaration.bind(this,e)):this.finish(n,q.MediaQueryExpected)}_parseMediaQueryList(){let e=this.create(Xo);if(!e.addChild(this._parseMediaQuery()))return this.finish(e,q.MediaQueryExpected);for(;this.accept(m.Comma);)if(!e.addChild(this._parseMediaQuery()))return this.finish(e,q.MediaQueryExpected);return this.finish(e)}_parseMediaQuery(){let e=this.create(Qo),n=this.mark();if(this.acceptIdent("not"),this.peek(m.ParenthesisL))this.restoreAtMark(n),e.addChild(this._parseMediaCondition());else{if(this.acceptIdent("only"),!e.addChild(this._parseIdent()))return null;this.acceptIdent("and")&&e.addChild(this._parseMediaCondition())}return this.finish(e)}_parseRatio(){let e=this.mark(),n=this.create(iu);return this._parseNumeric()?this.acceptDelim("/")?this._parseNumeric()?this.finish(n):this.finish(n,q.NumberExpected):(this.restoreAtMark(e),null):null}_parseMediaCondition(){let e=this.create(Yc);this.acceptIdent("not");let n=!0;for(;n;){if(!this.accept(m.ParenthesisL))return this.finish(e,q.LeftParenthesisExpected,[],[m.CurlyL]);if(this.peek(m.ParenthesisL)||this.peekIdent("not")?e.addChild(this._parseMediaCondition()):e.addChild(this._parseMediaFeature()),!this.accept(m.ParenthesisR))return this.finish(e,q.RightParenthesisExpected,[],[m.CurlyL]);n=this.acceptIdent("and")||this.acceptIdent("or")}return this.finish(e)}_parseMediaFeature(){let e=[m.ParenthesisR],n=this.create(Zc);if(n.addChild(this._parseMediaFeatureName())){if(this.accept(m.Colon)){if(!n.addChild(this._parseMediaFeatureValue()))return this.finish(n,q.TermExpected,[],e)}else if(this._parseMediaFeatureRangeOperator()){if(!n.addChild(this._parseMediaFeatureValue()))return this.finish(n,q.TermExpected,[],e);if(this._parseMediaFeatureRangeOperator()&&!n.addChild(this._parseMediaFeatureValue()))return this.finish(n,q.TermExpected,[],e)}}else if(n.addChild(this._parseMediaFeatureValue())){if(!this._parseMediaFeatureRangeOperator())return this.finish(n,q.OperatorExpected,[],e);if(!n.addChild(this._parseMediaFeatureName()))return this.finish(n,q.IdentifierExpected,[],e);if(this._parseMediaFeatureRangeOperator()&&!n.addChild(this._parseMediaFeatureValue()))return this.finish(n,q.TermExpected,[],e)}else return this.finish(n,q.IdentifierExpected,[],e);return this.finish(n)}_parseMediaFeatureRangeOperator(){return this.acceptDelim("<")||this.acceptDelim(">")?(this.hasWhitespace()||this.acceptDelim("="),!0):!!this.acceptDelim("=")}_parseMediaFeatureName(){return this._parseIdent()}_parseMediaFeatureValue(){return this._parseRatio()||this._parseTermExpression()}_parseMedium(){let e=this.create(fe);return e.addChild(this._parseIdent())?this.finish(e):null}_parsePageDeclaration(){return this._parsePageMarginBox()||this._parseRuleSetDeclaration()}_parsePage(){if(!this.peekKeyword("@page"))return null;let e=this.create(eu);if(this.consumeToken(),e.addChild(this._parsePageSelector())){for(;this.accept(m.Comma);)if(!e.addChild(this._parsePageSelector()))return this.finish(e,q.IdentifierExpected)}return this._parseBody(e,this._parsePageDeclaration.bind(this))}_parsePageMarginBox(){if(!this.peek(m.AtKeyword))return null;let e=this.create(tu);return this.acceptOneKeyword(Lx)||this.markError(e,q.UnknownAtRule,[],[m.CurlyL]),this._parseBody(e,this._parseRuleSetDeclaration.bind(this))}_parsePageSelector(){if(!this.peek(m.Ident)&&!this.peek(m.Colon))return null;let e=this.create(fe);return e.addChild(this._parseIdent()),this.accept(m.Colon)&&!e.addChild(this._parseIdent())?this.finish(e,q.IdentifierExpected):this.finish(e)}_parseDocument(){if(!this.peekKeyword("@-moz-document"))return null;let e=this.create(Qc);return this.consumeToken(),this.resync([],[m.CurlyL]),this._parseBody(e,this._parseStylesheetStatement.bind(this))}_parseUnknownAtRule(){if(!this.peek(m.AtKeyword))return null;let e=this.create(Zo);e.addChild(this._parseUnknownAtRuleName());let n=()=>i===0&&o===0&&s===0,r=0,i=0,o=0,s=0;e:for(;;){switch(this.token.type){case m.SemiColon:if(n())break e;break;case m.EOF:return i>0?this.finish(e,q.RightCurlyExpected):s>0?this.finish(e,q.RightSquareBracketExpected):o>0?this.finish(e,q.RightParenthesisExpected):this.finish(e);case m.CurlyL:r++,i++;break;case m.CurlyR:if(i--,r>0&&i===0){if(this.consumeToken(),s>0)return this.finish(e,q.RightSquareBracketExpected);if(o>0)return this.finish(e,q.RightParenthesisExpected);break e}if(i<0){if(o===0&&s===0)break e;return this.finish(e,q.LeftCurlyExpected)}break;case m.ParenthesisL:o++;break;case m.ParenthesisR:if(o--,o<0)return this.finish(e,q.LeftParenthesisExpected);break;case m.BracketL:s++;break;case m.BracketR:if(s--,s<0)return this.finish(e,q.LeftSquareBracketExpected);break}this.consumeToken()}return e}_parseUnknownAtRuleName(){let e=this.create(fe);return this.accept(m.AtKeyword)?this.finish(e):e}_parseOperator(){if(this.peekDelim("/")||this.peekDelim("*")||this.peekDelim("+")||this.peekDelim("-")||this.peek(m.Dashmatch)||this.peek(m.Includes)||this.peek(m.SubstringOperator)||this.peek(m.PrefixOperator)||this.peek(m.SuffixOperator)||this.peekDelim("=")){let e=this.createNode(A.Operator);return this.consumeToken(),this.finish(e)}else return null}_parseUnaryOperator(){if(!this.peekDelim("+")&&!this.peekDelim("-"))return null;let e=this.create(fe);return this.consumeToken(),this.finish(e)}_parseCombinator(){if(this.peekDelim(">")){let e=this.create(fe);this.consumeToken();let n=this.mark();if(!this.hasWhitespace()&&this.acceptDelim(">")){if(!this.hasWhitespace()&&this.acceptDelim(">"))return e.type=A.SelectorCombinatorShadowPiercingDescendant,this.finish(e);this.restoreAtMark(n)}return e.type=A.SelectorCombinatorParent,this.finish(e)}else if(this.peekDelim("+")){let e=this.create(fe);return this.consumeToken(),e.type=A.SelectorCombinatorSibling,this.finish(e)}else if(this.peekDelim("~")){let e=this.create(fe);return this.consumeToken(),e.type=A.SelectorCombinatorAllSiblings,this.finish(e)}else if(this.peekDelim("/")){let e=this.create(fe);this.consumeToken();let n=this.mark();if(!this.hasWhitespace()&&this.acceptIdent("deep")&&!this.hasWhitespace()&&this.acceptDelim("/"))return e.type=A.SelectorCombinatorShadowPiercingDescendant,this.finish(e);this.restoreAtMark(n)}return null}_parseSimpleSelector(){let e=this.create(xn),n=0;for(e.addChild(this._parseElementName())&&n++;(n===0||!this.hasWhitespace())&&e.addChild(this._parseSimpleSelectorBody());)n++;return n>0?this.finish(e):null}_parseSimpleSelectorBody(){return this._parsePseudo()||this._parseHash()||this._parseClass()||this._parseAttrib()}_parseSelectorIdent(){return this._parseIdent()}_parseHash(){if(!this.peek(m.Hash)&&!this.peekDelim("#"))return null;let e=this.createNode(A.IdentifierSelector);if(this.acceptDelim("#")){if(this.hasWhitespace()||!e.addChild(this._parseSelectorIdent()))return this.finish(e,q.IdentifierExpected)}else this.consumeToken();return this.finish(e)}_parseClass(){if(!this.peekDelim("."))return null;let e=this.createNode(A.ClassSelector);return this.consumeToken(),this.hasWhitespace()||!e.addChild(this._parseSelectorIdent())?this.finish(e,q.IdentifierExpected):this.finish(e)}_parseElementName(){let e=this.mark(),n=this.createNode(A.ElementNameSelector);return n.addChild(this._parseNamespacePrefix()),!n.addChild(this._parseSelectorIdent())&&!this.acceptDelim("*")?(this.restoreAtMark(e),null):this.finish(n)}_parseNamespacePrefix(){let e=this.mark(),n=this.createNode(A.NamespacePrefix);return!n.addChild(this._parseIdent())&&this.acceptDelim("*"),this.acceptDelim("|")?this.finish(n):(this.restoreAtMark(e),null)}_parseAttrib(){if(!this.peek(m.BracketL))return null;let e=this.create(ru);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(m.BracketR)?this.finish(e):this.finish(e,q.RightSquareBracketExpected)):this.finish(e,q.IdentifierExpected)}_parsePseudo(){let e=this._tryParsePseudoIdentifier();if(e){if(!this.hasWhitespace()&&this.accept(m.ParenthesisL)){let n=()=>{let r=this.create(fe);if(!r.addChild(this._parseSelector(!0)))return null;for(;this.accept(m.Comma)&&r.addChild(this._parseSelector(!0)););return this.peek(m.ParenthesisR)?this.finish(r):null};if(e.addChild(this.try(n)||this._parseBinaryExpr()),!this.accept(m.ParenthesisR))return this.finish(e,q.RightParenthesisExpected)}return this.finish(e)}return null}_tryParsePseudoIdentifier(){if(!this.peek(m.Colon))return null;let e=this.mark(),n=this.createNode(A.PseudoSelector);return this.consumeToken(),this.hasWhitespace()?(this.restoreAtMark(e),null):(this.accept(m.Colon),this.hasWhitespace()||!n.addChild(this._parseIdent())?this.finish(n,q.IdentifierExpected):this.finish(n))}_tryParsePrio(){let e=this.mark(),n=this._parsePrio();return n||(this.restoreAtMark(e),null)}_parsePrio(){if(!this.peek(m.Exclamation))return null;let e=this.createNode(A.Prio);return this.accept(m.Exclamation)&&this.acceptIdent("important")?this.finish(e):null}_parseExpr(e=!1){let n=this.create(Yo);if(!n.addChild(this._parseBinaryExpr()))return null;for(;;){if(this.peek(m.Comma)){if(e)return this.finish(n);this.consumeToken()}if(!n.addChild(this._parseBinaryExpr()))break}return this.finish(n)}_parseUnicodeRange(){if(!this.peekIdent("u"))return null;let e=this.create(Pc);return this.acceptUnicodeRange()?this.finish(e):null}_parseNamedLine(){if(!this.peek(m.BracketL))return null;let e=this.createNode(A.GridLine);for(this.consumeToken();e.addChild(this._parseIdent()););return this.accept(m.BracketR)?this.finish(e):this.finish(e,q.RightSquareBracketExpected)}_parseBinaryExpr(e,n){let r=this.create(vi);if(!r.setLeft(e||this._parseTerm()))return null;if(!r.setOperator(n||this._parseOperator()))return this.finish(r);if(!r.setRight(this._parseTerm()))return this.finish(r,q.TermExpected);r=this.finish(r);let i=this._parseOperator();return i&&(r=this._parseBinaryExpr(r,i)),this.finish(r)}_parseTerm(){let e=this.create(nu);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(m.ParenthesisL))return null;let e=this.create(fe);return this.consumeToken(),e.addChild(this._parseExpr()),this.accept(m.ParenthesisR)?this.finish(e):this.finish(e,q.RightParenthesisExpected)}_parseNumeric(){if(this.peek(m.Num)||this.peek(m.Percentage)||this.peek(m.Resolution)||this.peek(m.Length)||this.peek(m.EMS)||this.peek(m.EXS)||this.peek(m.Angle)||this.peek(m.Time)||this.peek(m.Dimension)||this.peek(m.Freq)){let e=this.create(to);return this.consumeToken(),this.finish(e)}return null}_parseStringLiteral(){if(!this.peek(m.String)&&!this.peek(m.BadString))return null;let e=this.createNode(A.StringLiteral);return this.consumeToken(),this.finish(e)}_parseURILiteral(){if(!this.peekRegExp(m.Ident,/^url(-prefix)?$/i))return null;let e=this.mark(),n=this.createNode(A.URILiteral);return this.accept(m.Ident),this.hasWhitespace()||!this.peek(m.ParenthesisL)?(this.restoreAtMark(e),null):(this.scanner.inURL=!0,this.consumeToken(),n.addChild(this._parseURLArgument()),this.scanner.inURL=!1,this.accept(m.ParenthesisR)?this.finish(n):this.finish(n,q.RightParenthesisExpected))}_parseURLArgument(){let e=this.create(fe);return!this.accept(m.String)&&!this.accept(m.BadString)&&!this.acceptUnquotedString()?null:this.finish(e)}_parseIdent(e){if(!this.peek(m.Ident))return null;let n=this.create(Ft);return e&&(n.referenceTypes=e),n.isCustomProperty=this.peekRegExp(m.Ident,/^--/),this.consumeToken(),this.finish(n)}_parseFunction(){let e=this.mark(),n=this.create(Vn);if(!n.setIdentifier(this._parseFunctionIdentifier()))return null;if(this.hasWhitespace()||!this.accept(m.ParenthesisL))return this.restoreAtMark(e),null;if(n.getArguments().addChild(this._parseFunctionArgument()))for(;this.accept(m.Comma)&&!this.peek(m.ParenthesisR);)n.getArguments().addChild(this._parseFunctionArgument())||this.markError(n,q.ExpressionExpected);return this.accept(m.ParenthesisR)?this.finish(n):this.finish(n,q.RightParenthesisExpected)}_parseFunctionIdentifier(){if(!this.peek(m.Ident))return null;let e=this.create(Ft);if(e.referenceTypes=[De.Function],this.acceptIdent("progid")){if(this.accept(m.Colon))for(;this.accept(m.Ident)&&this.acceptDelim("."););return this.finish(e)}return this.consumeToken(),this.finish(e)}_parseFunctionArgument(){let e=this.create(dn);return e.setValue(this._parseExpr(!0))?this.finish(e):null}_parseHexColor(){if(this.peekRegExp(m.Hash,/^#([A-Fa-f0-9]{3}|[A-Fa-f0-9]{4}|[A-Fa-f0-9]{6}|[A-Fa-f0-9]{8})$/g)){let e=this.create(eo);return this.consumeToken(),this.finish(e)}else return null}}});function qx(t,e){let n=0,r=t.length;if(r===0)return 0;for(;n<r;){let i=Math.floor((n+r)/2);e(t[i])?r=i:n=i+1}return n}function yf(t,e){return t.indexOf(e)!==-1}function Ta(...t){let e=[];for(let n of t)for(let r of n)yf(e,r)||e.push(r);return e}var bu=ue(()=>{"use strict"});var vu,_f,is,Sf,ro,xf=ue(()=>{"use strict";Bt();bu();vu=class{constructor(e,n){this.offset=e,this.length=n,this.symbols=[],this.parent=null,this.children=[]}addChild(e){this.children.push(e),e.setParent(this)}setParent(e){this.parent=e}findScope(e,n=0){return this.offset<=e&&this.offset+this.length>e+n||this.offset===e&&this.length===n?this.findInScope(e,n):null}findInScope(e,n=0){let r=e+n,i=qx(this.children,s=>s.offset>r);if(i===0)return this;let o=this.children[i-1];return o.offset<=e&&o.offset+o.length>=e+n?o.findInScope(e,n):this}addSymbol(e){this.symbols.push(e)}getSymbol(e,n){for(let r=0;r<this.symbols.length;r++){let i=this.symbols[r];if(i.name===e&&i.type===n)return i}return null}getSymbols(){return this.symbols}},_f=class extends vu{constructor(){super(0,Number.MAX_VALUE)}},is=class{constructor(e,n,r,i){this.name=e,this.value=n,this.node=r,this.type=i}},Sf=class{constructor(e){this.scope=e}addSymbol(e,n,r,i){if(e.offset!==-1){let o=this.scope.findScope(e.offset,e.length);o&&o.addSymbol(new is(n,r,e,i))}}addScope(e){if(e.offset!==-1){let n=this.scope.findScope(e.offset,e.length);if(n&&(n.offset!==e.offset||n.length!==e.length)){let r=new vu(e.offset,e.length);return n.addChild(r),r}return n}return null}addSymbolToChildScope(e,n,r,i,o){if(e&&e.offset!==-1){let s=this.addScope(e);s&&s.addSymbol(new is(r,i,n,o))}}visitNode(e){switch(e.type){case A.Keyframe:return this.addSymbol(e,e.getName(),void 0,De.Keyframe),!0;case A.CustomPropertyDeclaration:return this.visitCustomPropertyDeclarationNode(e);case A.VariableDeclaration:return this.visitVariableDeclarationNode(e);case A.Ruleset:return this.visitRuleSet(e);case A.MixinDeclaration:return this.addSymbol(e,e.getName(),void 0,De.Mixin),!0;case A.FunctionDeclaration:return this.addSymbol(e,e.getName(),void 0,De.Function),!0;case A.FunctionParameter:return this.visitFunctionParameterNode(e);case A.Declarations:return this.addScope(e),!0;case A.For:let n=e,r=n.getDeclarations();return r&&n.variable&&this.addSymbolToChildScope(r,n.variable,n.variable.getName(),void 0,De.Variable),!0;case A.Each:{let i=e,o=i.getDeclarations();if(o){let s=i.getVariables().getChildren();for(let l of s)this.addSymbolToChildScope(o,l,l.getName(),void 0,De.Variable)}return!0}}return!0}visitRuleSet(e){let n=this.scope.findScope(e.offset,e.length);if(n)for(let r of e.getSelectors().getChildren())r instanceof Sn&&r.getChildren().length===1&&n.addSymbol(new is(r.getChild(0).getText(),void 0,r,De.Rule));return!0}visitVariableDeclarationNode(e){let n=e.getValue()?e.getValue().getText():void 0;return this.addSymbol(e,e.getName(),n,De.Variable),!0}visitFunctionParameterNode(e){let n=e.getParent().getDeclarations();if(n){let r=e.getDefaultValue(),i=r?r.getText():void 0;this.addSymbolToChildScope(n,e,e.getName(),i,De.Variable)}return!0}visitCustomPropertyDeclarationNode(e){let n=e.getValue()?e.getValue().getText():"";return this.addCSSVariable(e.getProperty(),e.getProperty().getName(),n,De.Variable),!0}addCSSVariable(e,n,r,i){e.offset!==-1&&this.scope.addSymbol(new is(n,r,e,i))}},ro=class{constructor(e){this.global=new _f,e.acceptVisitor(new Sf(this.global))}findSymbolsAtOffset(e,n){let r=this.global.findScope(e,0),i=[],o={};for(;r;){let s=r.getSymbols();for(let l=0;l<s.length;l++){let a=s[l];a.type===n&&!o[a.name]&&(i.push(a),o[a.name]=!0)}r=r.parent}return i}internalFindSymbol(e,n){let r=e;if(e.parent instanceof pr&&e.parent.getParent()instanceof Ve&&(r=e.parent.getParent().getDeclarations()),e.parent instanceof dn&&e.parent.getParent()instanceof Vn){let s=e.parent.getParent().getIdentifier();if(s){let l=this.internalFindSymbol(s,[De.Function]);l&&(r=l.node.getDeclarations())}}if(!r)return null;let i=e.getText(),o=this.global.findScope(r.offset,r.length);for(;o;){for(let s=0;s<n.length;s++){let l=n[s],a=o.getSymbol(i,l);if(a)return a}o=o.parent}return null}evaluateReferenceTypes(e){if(e instanceof Ft){let r=e.referenceTypes;if(r)return r;{if(e.isCustomProperty)return[De.Variable];let i=wx(e);if(i){let o=i.getNonPrefixedPropertyName();if((o==="animation"||o==="animation-name")&&i.getValue()&&i.getValue().offset===e.offset)return[De.Keyframe]}}}else if(e instanceof wi)return[De.Variable];return e.findAParent(A.Selector,A.ExtendsReference)?[De.Rule]:null}findSymbolFromNode(e){if(!e)return null;for(;e.type===A.Interpolation;)e=e.getParent();let n=this.evaluateReferenceTypes(e);return n?this.internalFindSymbol(e,n):null}matchesSymbol(e,n){if(!e)return!1;for(;e.type===A.Interpolation;)e=e.getParent();if(!e.matches(n.name))return!1;let r=this.evaluateReferenceTypes(e);return!r||r.indexOf(n.type)===-1?!1:this.internalFindSymbol(e,r)===n}findSymbol(e,n,r){let i=this.global.findScope(r);for(;i;){let o=i.getSymbol(e,n);if(o)return o;i=i.parent}return null}}});var Ux,Ea,br,kf=ue(()=>{(()=>{"use strict";var t={470:i=>{function o(a){if(typeof a!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(a))}function s(a,c){for(var u,d="",h=0,p=-1,w=0,v=0;v<=a.length;++v){if(v<a.length)u=a.charCodeAt(v);else{if(u===47)break;u=47}if(u===47){if(!(p===v-1||w===1))if(p!==v-1&&w===2){if(d.length<2||h!==2||d.charCodeAt(d.length-1)!==46||d.charCodeAt(d.length-2)!==46){if(d.length>2){var x=d.lastIndexOf("/");if(x!==d.length-1){x===-1?(d="",h=0):h=(d=d.slice(0,x)).length-1-d.lastIndexOf("/"),p=v,w=0;continue}}else if(d.length===2||d.length===1){d="",h=0,p=v,w=0;continue}}c&&(d.length>0?d+="/..":d="..",h=2)}else d.length>0?d+="/"+a.slice(p+1,v):d=a.slice(p+1,v),h=v-p-1;p=v,w=0}else u===46&&w!==-1?++w:w=-1}return d}var l={resolve:function(){for(var a,c="",u=!1,d=arguments.length-1;d>=-1&&!u;d--){var h;d>=0?h=arguments[d]:(a===void 0&&(a=process.cwd()),h=a),o(h),h.length!==0&&(c=h+"/"+c,u=h.charCodeAt(0)===47)}return c=s(c,!u),u?c.length>0?"/"+c:"/":c.length>0?c:"."},normalize:function(a){if(o(a),a.length===0)return".";var c=a.charCodeAt(0)===47,u=a.charCodeAt(a.length-1)===47;return(a=s(a,!c)).length!==0||c||(a="."),a.length>0&&u&&(a+="/"),c?"/"+a:a},isAbsolute:function(a){return o(a),a.length>0&&a.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var a,c=0;c<arguments.length;++c){var u=arguments[c];o(u),u.length>0&&(a===void 0?a=u:a+="/"+u)}return a===void 0?".":l.normalize(a)},relative:function(a,c){if(o(a),o(c),a===c||(a=l.resolve(a))===(c=l.resolve(c)))return"";for(var u=1;u<a.length&&a.charCodeAt(u)===47;++u);for(var d=a.length,h=d-u,p=1;p<c.length&&c.charCodeAt(p)===47;++p);for(var w=c.length-p,v=h<w?h:w,x=-1,_=0;_<=v;++_){if(_===v){if(w>v){if(c.charCodeAt(p+_)===47)return c.slice(p+_+1);if(_===0)return c.slice(p+_)}else h>v&&(a.charCodeAt(u+_)===47?x=_:_===0&&(x=0));break}var f=a.charCodeAt(u+_);if(f!==c.charCodeAt(p+_))break;f===47&&(x=_)}var g="";for(_=u+x+1;_<=d;++_)_!==d&&a.charCodeAt(_)!==47||(g.length===0?g+="..":g+="/..");return g.length>0?g+c.slice(p+x):(p+=x,c.charCodeAt(p)===47&&++p,c.slice(p))},_makeLong:function(a){return a},dirname:function(a){if(o(a),a.length===0)return".";for(var c=a.charCodeAt(0),u=c===47,d=-1,h=!0,p=a.length-1;p>=1;--p)if((c=a.charCodeAt(p))===47){if(!h){d=p;break}}else h=!1;return d===-1?u?"/":".":u&&d===1?"//":a.slice(0,d)},basename:function(a,c){if(c!==void 0&&typeof c!="string")throw new TypeError('"ext" argument must be a string');o(a);var u,d=0,h=-1,p=!0;if(c!==void 0&&c.length>0&&c.length<=a.length){if(c.length===a.length&&c===a)return"";var w=c.length-1,v=-1;for(u=a.length-1;u>=0;--u){var x=a.charCodeAt(u);if(x===47){if(!p){d=u+1;break}}else v===-1&&(p=!1,v=u+1),w>=0&&(x===c.charCodeAt(w)?--w==-1&&(h=u):(w=-1,h=v))}return d===h?h=v:h===-1&&(h=a.length),a.slice(d,h)}for(u=a.length-1;u>=0;--u)if(a.charCodeAt(u)===47){if(!p){d=u+1;break}}else h===-1&&(p=!1,h=u+1);return h===-1?"":a.slice(d,h)},extname:function(a){o(a);for(var c=-1,u=0,d=-1,h=!0,p=0,w=a.length-1;w>=0;--w){var v=a.charCodeAt(w);if(v!==47)d===-1&&(h=!1,d=w+1),v===46?c===-1?c=w:p!==1&&(p=1):c!==-1&&(p=-1);else if(!h){u=w+1;break}}return c===-1||d===-1||p===0||p===1&&c===d-1&&c===u+1?"":a.slice(c,d)},format:function(a){if(a===null||typeof a!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof a);return function(c,u){var d=u.dir||u.root,h=u.base||(u.name||"")+(u.ext||"");return d?d===u.root?d+h:d+"/"+h:h}(0,a)},parse:function(a){o(a);var c={root:"",dir:"",base:"",ext:"",name:""};if(a.length===0)return c;var u,d=a.charCodeAt(0),h=d===47;h?(c.root="/",u=1):u=0;for(var p=-1,w=0,v=-1,x=!0,_=a.length-1,f=0;_>=u;--_)if((d=a.charCodeAt(_))!==47)v===-1&&(x=!1,v=_+1),d===46?p===-1?p=_:f!==1&&(f=1):p!==-1&&(f=-1);else if(!x){w=_+1;break}return p===-1||v===-1||f===0||f===1&&p===v-1&&p===w+1?v!==-1&&(c.base=c.name=w===0&&h?a.slice(1,v):a.slice(w,v)):(w===0&&h?(c.name=a.slice(1,p),c.base=a.slice(1,v)):(c.name=a.slice(w,p),c.base=a.slice(w,v)),c.ext=a.slice(p,v)),w>0?c.dir=a.slice(0,w-1):h&&(c.dir="/"),c},sep:"/",delimiter:":",win32:null,posix:null};l.posix=l,i.exports=l}},e={};function n(i){var o=e[i];if(o!==void 0)return o.exports;var s=e[i]={exports:{}};return t[i](s,s.exports,n),s.exports}n.d=(i,o)=>{for(var s in o)n.o(o,s)&&!n.o(i,s)&&Object.defineProperty(i,s,{enumerable:!0,get:o[s]})},n.o=(i,o)=>Object.prototype.hasOwnProperty.call(i,o),n.r=i=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(i,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(i,"__esModule",{value:!0})};var r={};(()=>{var i;if(n.r(r),n.d(r,{URI:()=>x,Utils:()=>N}),typeof process=="object")i=process.platform==="win32";else if(typeof navigator=="object"){var o=navigator.userAgent;i=o.indexOf("Windows")>=0}var s,l,a=(s=function(P,R){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(J,Q){J.__proto__=Q}||function(J,Q){for(var re in Q)Object.prototype.hasOwnProperty.call(Q,re)&&(J[re]=Q[re])},s(P,R)},function(P,R){if(typeof R!="function"&&R!==null)throw new TypeError("Class extends value "+String(R)+" is not a constructor or null");function J(){this.constructor=P}s(P,R),P.prototype=R===null?Object.create(R):(J.prototype=R.prototype,new J)}),c=/^\w[\w\d+.-]*$/,u=/^\//,d=/^\/\//;function h(P,R){if(!P.scheme&&R)throw new Error('[UriError]: Scheme is missing: {scheme: "", authority: "'.concat(P.authority,'", path: "').concat(P.path,'", query: "').concat(P.query,'", fragment: "').concat(P.fragment,'"}'));if(P.scheme&&!c.test(P.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(P.path){if(P.authority){if(!u.test(P.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(d.test(P.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}}var p="",w="/",v=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/,x=function(){function P(R,J,Q,re,de,se){se===void 0&&(se=!1),typeof R=="object"?(this.scheme=R.scheme||p,this.authority=R.authority||p,this.path=R.path||p,this.query=R.query||p,this.fragment=R.fragment||p):(this.scheme=function(ae,pe){return ae||pe?ae:"file"}(R,se),this.authority=J||p,this.path=function(ae,pe){switch(ae){case"https":case"http":case"file":pe?pe[0]!==w&&(pe=w+pe):pe=w}return pe}(this.scheme,Q||p),this.query=re||p,this.fragment=de||p,h(this,se))}return P.isUri=function(R){return R instanceof P||!!R&&typeof R.authority=="string"&&typeof R.fragment=="string"&&typeof R.path=="string"&&typeof R.query=="string"&&typeof R.scheme=="string"&&typeof R.fsPath=="string"&&typeof R.with=="function"&&typeof R.toString=="function"},Object.defineProperty(P.prototype,"fsPath",{get:function(){return K(this,!1)},enumerable:!1,configurable:!0}),P.prototype.with=function(R){if(!R)return this;var J=R.scheme,Q=R.authority,re=R.path,de=R.query,se=R.fragment;return J===void 0?J=this.scheme:J===null&&(J=p),Q===void 0?Q=this.authority:Q===null&&(Q=p),re===void 0?re=this.path:re===null&&(re=p),de===void 0?de=this.query:de===null&&(de=p),se===void 0?se=this.fragment:se===null&&(se=p),J===this.scheme&&Q===this.authority&&re===this.path&&de===this.query&&se===this.fragment?this:new f(J,Q,re,de,se)},P.parse=function(R,J){J===void 0&&(J=!1);var Q=v.exec(R);return Q?new f(Q[2]||p,oe(Q[4]||p),oe(Q[5]||p),oe(Q[7]||p),oe(Q[9]||p),J):new f(p,p,p,p,p)},P.file=function(R){var J=p;if(i&&(R=R.replace(/\\/g,w)),R[0]===w&&R[1]===w){var Q=R.indexOf(w,2);Q===-1?(J=R.substring(2),R=w):(J=R.substring(2,Q),R=R.substring(Q)||w)}return new f("file",J,R,p,p)},P.from=function(R){var J=new f(R.scheme,R.authority,R.path,R.query,R.fragment);return h(J,!0),J},P.prototype.toString=function(R){return R===void 0&&(R=!1),C(this,R)},P.prototype.toJSON=function(){return this},P.revive=function(R){if(R){if(R instanceof P)return R;var J=new f(R);return J._formatted=R.external,J._fsPath=R._sep===_?R.fsPath:null,J}return R},P}(),_=i?1:void 0,f=function(P){function R(){var J=P!==null&&P.apply(this,arguments)||this;return J._formatted=null,J._fsPath=null,J}return a(R,P),Object.defineProperty(R.prototype,"fsPath",{get:function(){return this._fsPath||(this._fsPath=K(this,!1)),this._fsPath},enumerable:!1,configurable:!0}),R.prototype.toString=function(J){return J===void 0&&(J=!1),J?C(this,!0):(this._formatted||(this._formatted=C(this,!1)),this._formatted)},R.prototype.toJSON=function(){var J={$mid:1};return this._fsPath&&(J.fsPath=this._fsPath,J._sep=_),this._formatted&&(J.external=this._formatted),this.path&&(J.path=this.path),this.scheme&&(J.scheme=this.scheme),this.authority&&(J.authority=this.authority),this.query&&(J.query=this.query),this.fragment&&(J.fragment=this.fragment),J},R}(x),g=((l={})[58]="%3A",l[47]="%2F",l[63]="%3F",l[35]="%23",l[91]="%5B",l[93]="%5D",l[64]="%40",l[33]="%21",l[36]="%24",l[38]="%26",l[39]="%27",l[40]="%28",l[41]="%29",l[42]="%2A",l[43]="%2B",l[44]="%2C",l[59]="%3B",l[61]="%3D",l[32]="%20",l);function D(P,R,J){for(var Q=void 0,re=-1,de=0;de<P.length;de++){var se=P.charCodeAt(de);if(se>=97&&se<=122||se>=65&&se<=90||se>=48&&se<=57||se===45||se===46||se===95||se===126||R&&se===47||J&&se===91||J&&se===93||J&&se===58)re!==-1&&(Q+=encodeURIComponent(P.substring(re,de)),re=-1),Q!==void 0&&(Q+=P.charAt(de));else{Q===void 0&&(Q=P.substr(0,de));var ae=g[se];ae!==void 0?(re!==-1&&(Q+=encodeURIComponent(P.substring(re,de)),re=-1),Q+=ae):re===-1&&(re=de)}}return re!==-1&&(Q+=encodeURIComponent(P.substring(re))),Q!==void 0?Q:P}function L(P){for(var R=void 0,J=0;J<P.length;J++){var Q=P.charCodeAt(J);Q===35||Q===63?(R===void 0&&(R=P.substr(0,J)),R+=g[Q]):R!==void 0&&(R+=P[J])}return R!==void 0?R:P}function K(P,R){var J;return J=P.authority&&P.path.length>1&&P.scheme==="file"?"//".concat(P.authority).concat(P.path):P.path.charCodeAt(0)===47&&(P.path.charCodeAt(1)>=65&&P.path.charCodeAt(1)<=90||P.path.charCodeAt(1)>=97&&P.path.charCodeAt(1)<=122)&&P.path.charCodeAt(2)===58?R?P.path.substr(1):P.path[1].toLowerCase()+P.path.substr(2):P.path,i&&(J=J.replace(/\//g,"\\")),J}function C(P,R){var J=R?L:D,Q="",re=P.scheme,de=P.authority,se=P.path,ae=P.query,pe=P.fragment;if(re&&(Q+=re,Q+=":"),(de||re==="file")&&(Q+=w,Q+=w),de){var xe=de.indexOf("@");if(xe!==-1){var B=de.substr(0,xe);de=de.substr(xe+1),(xe=B.lastIndexOf(":"))===-1?Q+=J(B,!1,!1):(Q+=J(B.substr(0,xe),!1,!1),Q+=":",Q+=J(B.substr(xe+1),!1,!0)),Q+="@"}(xe=(de=de.toLowerCase()).lastIndexOf(":"))===-1?Q+=J(de,!1,!0):(Q+=J(de.substr(0,xe),!1,!0),Q+=de.substr(xe))}if(se){if(se.length>=3&&se.charCodeAt(0)===47&&se.charCodeAt(2)===58)(Y=se.charCodeAt(1))>=65&&Y<=90&&(se="/".concat(String.fromCharCode(Y+32),":").concat(se.substr(3)));else if(se.length>=2&&se.charCodeAt(1)===58){var Y;(Y=se.charCodeAt(0))>=65&&Y<=90&&(se="".concat(String.fromCharCode(Y+32),":").concat(se.substr(2)))}Q+=J(se,!0,!1)}return ae&&(Q+="?",Q+=J(ae,!1,!1)),pe&&(Q+="#",Q+=R?pe:D(pe,!1,!1)),Q}function T(P){try{return decodeURIComponent(P)}catch{return P.length>3?P.substr(0,3)+T(P.substr(3)):P}}var M=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function oe(P){return P.match(M)?P.replace(M,function(R){return T(R)}):P}var N,W=n(470),V=function(P,R,J){if(J||arguments.length===2)for(var Q,re=0,de=R.length;re<de;re++)!Q&&re in R||(Q||(Q=Array.prototype.slice.call(R,0,re)),Q[re]=R[re]);return P.concat(Q||Array.prototype.slice.call(R))},G=W.posix||W,U="/";(function(P){P.joinPath=function(R){for(var J=[],Q=1;Q<arguments.length;Q++)J[Q-1]=arguments[Q];return R.with({path:G.join.apply(G,V([R.path],J,!1))})},P.resolvePath=function(R){for(var J=[],Q=1;Q<arguments.length;Q++)J[Q-1]=arguments[Q];var re=R.path,de=!1;re[0]!==U&&(re=U+re,de=!0);var se=G.resolve.apply(G,V([re],J,!1));return de&&se[0]===U&&!R.authority&&(se=se.substring(1)),R.with({path:se})},P.dirname=function(R){if(R.path.length===0||R.path===U)return R;var J=G.dirname(R.path);return J.length===1&&J.charCodeAt(0)===46&&(J=""),R.with({path:J})},P.basename=function(R){return G.basename(R.path)},P.extname=function(R){return G.extname(R.path)}})(N||(N={}))})(),Ux=r})();({URI:Ea,Utils:br}=Ux)});function wu(t){return br.dirname(Ea.parse(t)).toString(!0)}function Da(t,...e){return br.joinPath(Ea.parse(t),...e).toString(!0)}var Cf=ue(()=>{kf()});function Tf(t){return ot(t,"'")||ot(t,'"')?t.slice(1,-1):t}function BP(t,e,n){let r,i=t.lastIndexOf("/");if(i===-1)r=n;else{let o=e.slice(i+1),s=Su(n.end,-o.length),l=o.indexOf(" "),a;l!==-1?a=Su(s,l):a=n.end,r=E.Range.create(s,a)}return r}function $P(t,e,n){return e?(t=t+"/",{label:yu(t),kind:E.CompletionItemKind.Folder,textEdit:E.TextEdit.replace(n,yu(t)),command:{title:"Suggest",command:"editor.action.triggerSuggest"}}):{label:yu(t),kind:E.CompletionItemKind.File,textEdit:E.TextEdit.replace(n,yu(t))}}function yu(t){return t.replace(/(\s|\(|\)|,|"|')/g,"\\$1")}function Su(t,e){return E.Position.create(t.line,t.character+e)}function VP(t,e,n){let r=Su(t.start,e),i=Su(t.end,n);return E.Range.create(r,i)}var _u,HP,jx=ue(()=>{hn();qr();Cf();_u=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,n){let r={items:[],isIncomplete:!1};for(let i of this.literalCompletions){let o=i.uriValue,s=Tf(o);if(s==="."||s==="..")r.isIncomplete=!0;else{let l=await this.providePathSuggestions(o,i.position,i.range,e,n);for(let a of l)r.items.push(a)}}for(let i of this.importCompletions){let o=i.pathValue,s=Tf(o);if(s==="."||s==="..")r.isIncomplete=!0;else{let l=await this.providePathSuggestions(o,i.position,i.range,e,n);e.languageId==="scss"&&l.forEach(a=>{ot(a.label,"_")&&Mc(a.label,".scss")&&(a.textEdit?a.textEdit.newText=a.label.slice(1,-5):a.label=a.label.slice(1,-5))});for(let a of l)r.items.push(a)}}return r}async providePathSuggestions(e,n,r,i,o){let s=Tf(e),l=ot(e,"'")||ot(e,'"'),a=l?s.slice(0,n.character-(r.start.character+1)):s.slice(0,n.character-r.start.character),c=i.uri,u=l?VP(r,1,-1):r,d=BP(a,s,u),h=a.substring(0,a.lastIndexOf("/")+1),p=o.resolveReference(h||".",c);if(p)try{let w=[],v=await this.readDirectory(p);for(let[x,_]of v)x.charCodeAt(0)!==HP&&(_===yi.Directory||Da(p,x)!==c)&&w.push($P(x,_===yi.Directory,d));return w}catch{}return[]}},HP=".".charCodeAt(0)});function Fa(t){return!!(t.status&&(t.status==="nonstandard"||t.status==="obsolete"))}function os(t){return t.replace(/\(\)$/,"($1)")}function KP(t,e){let n=e.getFullPropertyName(),r=new Aa;function i(l){return(l instanceof Ft||l instanceof to||l instanceof eo)&&r.add(l.getText()),!0}function o(l){let a=l.getFullPropertyName();return n===a}function s(l){if(l instanceof At&&l!==e&&o(l)){let a=l.getValue();a&&a.accept(i)}return!0}return t.accept(s),r}function GP(t,e){let n=e-1,r=t.getText();for(;n>=0&&`
|
|
533
|
+
\r":{[()]},*>+`.indexOf(r.charAt(n))===-1;)n--;return r.substring(n+1,e)}function Bx(t){return t.toLowerCase()in xa||/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i.test(t)}var Br,Hx,vr,xi,Aa,Ef,Df,xu=ue(()=>{"use strict";Bt();xf();rs();qr();hn();kn();Ca();jx();Br=E.InsertTextFormat.Snippet,Hx={title:"Suggest",command:"editor.action.triggerSuggest"};(function(t){t.Enums=" ",t.Normal="d",t.VendorPrefixed="x",t.Term="y",t.Variable="z"})(vr||(vr={}));xi=class{constructor(e=null,n,r){this.variablePrefix=e,this.lsOptions=n,this.cssDataManager=r,this.completionParticipants=[]}configure(e){this.defaultSettings=e}getSymbolContext(){return this.symbolContext||(this.symbolContext=new ro(this.styleSheet)),this.symbolContext}setCompletionParticipants(e){this.completionParticipants=e||[]}async doComplete2(e,n,r,i,o=this.defaultSettings){if(!this.lsOptions.fileSystemProvider||!this.lsOptions.fileSystemProvider.readDirectory)return this.doComplete(e,n,r,o);let s=new _u(this.lsOptions.fileSystemProvider.readDirectory),l=this.completionParticipants;this.completionParticipants=[s].concat(l);let a=this.doComplete(e,n,r,o);try{let c=await s.computeCompletions(e,i);return{isIncomplete:a.isIncomplete||c.isIncomplete,itemDefaults:a.itemDefaults,items:c.items.concat(a.items)}}finally{this.completionParticipants=l}}doComplete(e,n,r,i){this.offset=e.offsetAt(n),this.position=n,this.currentWord=GP(e,this.offset),this.defaultReplaceRange=E.Range.create(E.Position.create(this.position.line,this.position.character-this.currentWord.length),this.position),this.textDocument=e,this.styleSheet=r,this.documentSettings=i;try{let o={isIncomplete:!1,itemDefaults:{editRange:{start:{line:n.line,character:n.character-this.currentWord.length},end:n}},items:[]};this.nodePath=ns(this.styleSheet,this.offset);for(let s=this.nodePath.length-1;s>=0;s--){let l=this.nodePath[s];if(l instanceof gi)this.getCompletionsForDeclarationProperty(l.getParent(),o);else if(l instanceof Yo)l.parent instanceof no?this.getVariableProposals(null,o):this.getCompletionsForExpression(l,o);else if(l instanceof xn){let a=l.findAParent(A.ExtendsReference,A.Ruleset);if(a)if(a.type===A.ExtendsReference)this.getCompletionsForExtendsReference(a,l,o);else{let c=a;this.getCompletionsForSelector(c,c&&c.isNested(),o)}}else if(l instanceof dn)this.getCompletionsForFunctionArgument(l,l.getParent(),o);else if(l instanceof Yi)this.getCompletionsForDeclarations(l,o);else if(l instanceof mr)this.getCompletionsForVariableDeclaration(l,o);else if(l instanceof un)this.getCompletionsForRuleSet(l,o);else if(l instanceof no)this.getCompletionsForInterpolation(l,o);else if(l instanceof Ur)this.getCompletionsForFunctionDeclaration(l,o);else if(l instanceof Hr)this.getCompletionsForMixinReference(l,o);else if(l instanceof Vn)this.getCompletionsForFunctionArgument(null,l,o);else if(l instanceof Zi)this.getCompletionsForSupports(l,o);else if(l instanceof jr)this.getCompletionsForSupportsCondition(l,o);else if(l instanceof fr)this.getCompletionsForExtendsReference(l,null,o);else if(l.type===A.URILiteral)this.getCompletionForUriLiteralValue(l,o);else if(l.parent===null)this.getCompletionForTopLevel(o);else if(l.type===A.StringLiteral&&this.isImportPathParent(l.parent.type))this.getCompletionForImportPath(l,o);else continue;if(o.items.length>0||this.offset>l.offset)return this.finalize(o)}return this.getCompletionsForStylesheet(o),o.items.length===0&&this.variablePrefix&&this.currentWord.indexOf(this.variablePrefix)===0&&this.getVariableProposals(null,o),this.finalize(o)}finally{this.position=null,this.currentWord=null,this.textDocument=null,this.styleSheet=null,this.symbolContext=null,this.defaultReplaceRange=null,this.nodePath=null}}isImportPathParent(e){return e===A.Import}finalize(e){return e}findInNodePath(...e){for(let n=this.nodePath.length-1;n>=0;n--){let r=this.nodePath[n];if(e.indexOf(r.type)!==-1)return r}return null}getCompletionsForDeclarationProperty(e,n){return this.getPropertyProposals(e,n)}getPropertyProposals(e,n){let r=this.isTriggerPropertyValueCompletionEnabled,i=this.isCompletePropertyWithSemicolonEnabled;return this.cssDataManager.getProperties().forEach(s=>{let l,a,c=!1;e?(l=this.getCompletionRange(e.getProperty()),a=s.name,en(e.colonPosition)||(a+=": ",c=!0)):(l=this.getCompletionRange(null),a=s.name+": ",c=!0),!e&&i&&(a+="$0;"),e&&!e.semicolonPosition&&i&&this.offset>=this.textDocument.offsetAt(l.end)&&(a+="$0;");let u={label:s.name,documentation:gr(s,this.doesSupportMarkdown()),tags:Fa(s)?[E.CompletionItemTag.Deprecated]:[],textEdit:E.TextEdit.replace(l,a),insertTextFormat:E.InsertTextFormat.Snippet,kind:E.CompletionItemKind.Property};s.restrictions||(c=!1),r&&c&&(u.command=Hx);let d=typeof s.relevance=="number"?Math.min(Math.max(s.relevance,0),99):50,h=(255-d).toString(16),p=ot(s.name,"-")?vr.VendorPrefixed:vr.Normal;u.sortText=p+"_"+h,n.items.push(u)}),this.completionParticipants.forEach(s=>{s.onCssProperty&&s.onCssProperty({propertyName:this.currentWord,range:this.defaultReplaceRange})}),n}get isTriggerPropertyValueCompletionEnabled(){return this.documentSettings?.triggerPropertyValueCompletion??!0}get isCompletePropertyWithSemicolonEnabled(){return this.documentSettings?.completePropertyWithSemicolon??!0}getCompletionsForDeclarationValue(e,n){let r=e.getFullPropertyName(),i=this.cssDataManager.getProperty(r),o=e.getValue()||null;for(;o&&o.hasChildren();)o=o.findChildAtOffset(this.offset,!1);if(this.completionParticipants.forEach(s=>{s.onCssPropertyValue&&s.onCssPropertyValue({propertyName:r,propertyValue:this.currentWord,range:this.getCompletionRange(o)})}),i){if(i.restrictions)for(let s of i.restrictions)switch(s){case"color":this.getColorProposals(i,o,n);break;case"position":this.getPositionProposals(i,o,n);break;case"repeat":this.getRepeatStyleProposals(i,o,n);break;case"line-style":this.getLineStyleProposals(i,o,n);break;case"line-width":this.getLineWidthProposals(i,o,n);break;case"geometry-box":this.getGeometryBoxProposals(i,o,n);break;case"box":this.getBoxProposals(i,o,n);break;case"image":this.getImageProposals(i,o,n);break;case"timing-function":this.getTimingFunctionProposals(i,o,n);break;case"shape":this.getBasicShapeProposals(i,o,n);break}this.getValueEnumProposals(i,o,n),this.getCSSWideKeywordProposals(i,o,n),this.getUnitProposals(i,o,n)}else{let s=KP(this.styleSheet,e);for(let l of s.getEntries())n.items.push({label:l,textEdit:E.TextEdit.replace(this.getCompletionRange(o),l),kind:E.CompletionItemKind.Value})}return this.getVariableProposals(o,n),this.getTermProposals(i,o,n),n}getValueEnumProposals(e,n,r){if(e.values)for(let i of e.values){let o=i.name,s;if(Mc(o,")")){let c=o.lastIndexOf("(");c!==-1&&(o=o.substring(0,c+1)+"$1"+o.substring(c+1),s=Br)}let l=vr.Enums;ot(i.name,"-")&&(l+=vr.VendorPrefixed);let a={label:i.name,documentation:gr(i,this.doesSupportMarkdown()),tags:Fa(e)?[E.CompletionItemTag.Deprecated]:[],textEdit:E.TextEdit.replace(this.getCompletionRange(n),o),sortText:l,kind:E.CompletionItemKind.Value,insertTextFormat:s};r.items.push(a)}return r}getCSSWideKeywordProposals(e,n,r){for(let i in ff)r.items.push({label:i,documentation:ff[i],textEdit:E.TextEdit.replace(this.getCompletionRange(n),i),kind:E.CompletionItemKind.Value});for(let i in gf){let o=os(i);r.items.push({label:i,documentation:gf[i],textEdit:E.TextEdit.replace(this.getCompletionRange(n),o),kind:E.CompletionItemKind.Function,insertTextFormat:Br,command:ot(i,"var")?Hx:void 0})}return r}getCompletionsForInterpolation(e,n){return this.offset>=e.offset+2&&this.getVariableProposals(null,n),n}getVariableProposals(e,n){let r=this.getSymbolContext().findSymbolsAtOffset(this.offset,De.Variable);for(let i of r){let o=ot(i.name,"--")?`var(${i.name})`:i.name,s={label:i.name,documentation:i.value?rf(i.value):i.value,textEdit:E.TextEdit.replace(this.getCompletionRange(e),o),kind:E.CompletionItemKind.Variable,sortText:vr.Variable};if(typeof s.documentation=="string"&&Bx(s.documentation)&&(s.kind=E.CompletionItemKind.Color),i.node.type===A.FunctionParameter){let l=i.node.getParent();l.type===A.MixinDeclaration&&(s.detail=F("argument from '{0}'",l.getName()))}n.items.push(s)}return n}getVariableProposalsForCSSVarFunction(e){let n=new Aa;this.styleSheet.acceptVisitor(new Df(n,this.offset));let r=this.getSymbolContext().findSymbolsAtOffset(this.offset,De.Variable);for(let i of r){if(ot(i.name,"--")){let o={label:i.name,documentation:i.value?rf(i.value):i.value,textEdit:E.TextEdit.replace(this.getCompletionRange(null),i.name),kind:E.CompletionItemKind.Variable};typeof o.documentation=="string"&&Bx(o.documentation)&&(o.kind=E.CompletionItemKind.Color),e.items.push(o)}n.remove(i.name)}for(let i of n.getEntries())if(ot(i,"--")){let o={label:i,textEdit:E.TextEdit.replace(this.getCompletionRange(null),i),kind:E.CompletionItemKind.Variable};e.items.push(o)}return e}getUnitProposals(e,n,r){let i="0";if(this.currentWord.length>0){let o=this.currentWord.match(/^-?\d[\.\d+]*/);o&&(i=o[0],r.isIncomplete=i.length===this.currentWord.length)}else this.currentWord.length===0&&(r.isIncomplete=!0);if(n&&n.parent&&n.parent.type===A.Term&&(n=n.getParent()),e.restrictions)for(let o of e.restrictions){let s=mu[o];if(s)for(let l of s){let a=i+l;r.items.push({label:a,textEdit:E.TextEdit.replace(this.getCompletionRange(n),a),kind:E.CompletionItemKind.Unit})}}return r}getCompletionRange(e){if(e&&e.offset<=this.offset&&this.offset<=e.end){let n=e.end!==-1?this.textDocument.positionAt(e.end):this.position,r=this.textDocument.positionAt(e.offset);if(r.line===n.line)return E.Range.create(r,n)}return this.defaultReplaceRange}getColorProposals(e,n,r){for(let o in xa)r.items.push({label:o,documentation:xa[o],textEdit:E.TextEdit.replace(this.getCompletionRange(n),o),kind:E.CompletionItemKind.Color});for(let o in lf)r.items.push({label:o,documentation:lf[o],textEdit:E.TextEdit.replace(this.getCompletionRange(n),o),kind:E.CompletionItemKind.Value});let i=new Aa;this.styleSheet.acceptVisitor(new Ef(i,this.offset));for(let o of i.getEntries())r.items.push({label:o,textEdit:E.TextEdit.replace(this.getCompletionRange(n),o),kind:E.CompletionItemKind.Color});for(let o of Dx){let s=1,l=(c,u)=>"${"+s+++":"+u+"}",a=o.func.replace(/\[?\$(\w+)\]?/g,l);r.items.push({label:o.func.substr(0,o.func.indexOf("(")),detail:o.func,documentation:o.desc,textEdit:E.TextEdit.replace(this.getCompletionRange(n),a),insertTextFormat:Br,kind:E.CompletionItemKind.Function})}return r}getPositionProposals(e,n,r){for(let i in uf)r.items.push({label:i,documentation:uf[i],textEdit:E.TextEdit.replace(this.getCompletionRange(n),i),kind:E.CompletionItemKind.Value});return r}getRepeatStyleProposals(e,n,r){for(let i in df)r.items.push({label:i,documentation:df[i],textEdit:E.TextEdit.replace(this.getCompletionRange(n),i),kind:E.CompletionItemKind.Value});return r}getLineStyleProposals(e,n,r){for(let i in hf)r.items.push({label:i,documentation:hf[i],textEdit:E.TextEdit.replace(this.getCompletionRange(n),i),kind:E.CompletionItemKind.Value});return r}getLineWidthProposals(e,n,r){for(let i of Px)r.items.push({label:i,textEdit:E.TextEdit.replace(this.getCompletionRange(n),i),kind:E.CompletionItemKind.Value});return r}getGeometryBoxProposals(e,n,r){for(let i in mf)r.items.push({label:i,documentation:mf[i],textEdit:E.TextEdit.replace(this.getCompletionRange(n),i),kind:E.CompletionItemKind.Value});return r}getBoxProposals(e,n,r){for(let i in pf)r.items.push({label:i,documentation:pf[i],textEdit:E.TextEdit.replace(this.getCompletionRange(n),i),kind:E.CompletionItemKind.Value});return r}getImageProposals(e,n,r){for(let i in bf){let o=os(i);r.items.push({label:i,documentation:bf[i],textEdit:E.TextEdit.replace(this.getCompletionRange(n),o),kind:E.CompletionItemKind.Function,insertTextFormat:i!==o?Br:void 0})}return r}getTimingFunctionProposals(e,n,r){for(let i in vf){let o=os(i);r.items.push({label:i,documentation:vf[i],textEdit:E.TextEdit.replace(this.getCompletionRange(n),o),kind:E.CompletionItemKind.Function,insertTextFormat:i!==o?Br:void 0})}return r}getBasicShapeProposals(e,n,r){for(let i in wf){let o=os(i);r.items.push({label:i,documentation:wf[i],textEdit:E.TextEdit.replace(this.getCompletionRange(n),o),kind:E.CompletionItemKind.Function,insertTextFormat:i!==o?Br:void 0})}return r}getCompletionsForStylesheet(e){let n=this.styleSheet.findFirstChildBeforeOffset(this.offset);return n?n instanceof un?this.getCompletionsForRuleSet(n,e):n instanceof Zi?this.getCompletionsForSupports(n,e):e:this.getCompletionForTopLevel(e)}getCompletionForTopLevel(e){return this.cssDataManager.getAtDirectives().forEach(n=>{e.items.push({label:n.name,textEdit:E.TextEdit.replace(this.getCompletionRange(null),n.name),documentation:gr(n,this.doesSupportMarkdown()),tags:Fa(n)?[E.CompletionItemTag.Deprecated]:[],kind:E.CompletionItemKind.Keyword})}),this.getCompletionsForSelector(null,!1,e),e}getCompletionsForRuleSet(e,n){let r=e.getDeclarations();return r&&r.endsWith("}")&&this.offset>=r.end?this.getCompletionForTopLevel(n):!r||this.offset<=r.offset?this.getCompletionsForSelector(e,e.isNested(),n):this.getCompletionsForDeclarations(e.getDeclarations(),n)}getCompletionsForSelector(e,n,r){let i=this.findInNodePath(A.PseudoSelector,A.IdentifierSelector,A.ClassSelector,A.ElementNameSelector);if(!i&&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=E.Range.create(E.Position.create(this.position.line,this.position.character-this.currentWord.length),this.position)),this.cssDataManager.getPseudoClasses().forEach(c=>{let u=os(c.name),d={label:c.name,textEdit:E.TextEdit.replace(this.getCompletionRange(i),u),documentation:gr(c,this.doesSupportMarkdown()),tags:Fa(c)?[E.CompletionItemTag.Deprecated]:[],kind:E.CompletionItemKind.Function,insertTextFormat:c.name!==u?Br:void 0};ot(c.name,":-")&&(d.sortText=vr.VendorPrefixed),r.items.push(d)}),this.cssDataManager.getPseudoElements().forEach(c=>{let u=os(c.name),d={label:c.name,textEdit:E.TextEdit.replace(this.getCompletionRange(i),u),documentation:gr(c,this.doesSupportMarkdown()),tags:Fa(c)?[E.CompletionItemTag.Deprecated]:[],kind:E.CompletionItemKind.Function,insertTextFormat:c.name!==u?Br:void 0};ot(c.name,"::-")&&(d.sortText=vr.VendorPrefixed),r.items.push(d)}),!n){for(let c of zx)r.items.push({label:c,textEdit:E.TextEdit.replace(this.getCompletionRange(i),c),kind:E.CompletionItemKind.Keyword});for(let c of Ox)r.items.push({label:c,textEdit:E.TextEdit.replace(this.getCompletionRange(i),c),kind:E.CompletionItemKind.Keyword})}let l={};l[this.currentWord]=!0;let a=this.textDocument.getText();if(this.styleSheet.accept(c=>{if(c.type===A.SimpleSelector&&c.length>0){let u=a.substr(c.offset,c.length);return u.charAt(0)==="."&&!l[u]&&(l[u]=!0,r.items.push({label:u,textEdit:E.TextEdit.replace(this.getCompletionRange(i),u),kind:E.CompletionItemKind.Keyword})),!1}return!0}),e&&e.isNested()){let c=e.getSelectors().findFirstChildBeforeOffset(this.offset);c&&e.getSelectors().getChildren().indexOf(c)===0&&this.getPropertyProposals(null,r)}return r}getCompletionsForDeclarations(e,n){if(!e||this.offset===e.offset)return n;let r=e.findFirstChildBeforeOffset(this.offset);if(!r)return this.getCompletionsForDeclarationProperty(null,n);if(r instanceof Vo){let i=r;if(!en(i.colonPosition)||this.offset<=i.colonPosition)return this.getCompletionsForDeclarationProperty(i,n);if(en(i.semicolonPosition)&&i.semicolonPosition<this.offset)return this.offset===i.semicolonPosition+1?n:this.getCompletionsForDeclarationProperty(null,n);if(i instanceof At)return this.getCompletionsForDeclarationValue(i,n)}else r instanceof fr?this.getCompletionsForExtendsReference(r,null,n):this.currentWord&&this.currentWord[0]==="@"?this.getCompletionsForDeclarationProperty(null,n):r instanceof un&&this.getCompletionsForDeclarationProperty(null,n);return n}getCompletionsForVariableDeclaration(e,n){return this.offset&&en(e.colonPosition)&&this.offset>e.colonPosition&&this.getVariableProposals(e.getValue()||null,n),n}getCompletionsForExpression(e,n){let r=e.getParent();if(r instanceof dn)return this.getCompletionsForFunctionArgument(r,r.getParent(),n),n;let i=e.findParent(A.Declaration);if(!i)return this.getTermProposals(void 0,null,n),n;let o=e.findChildAtOffset(this.offset,!0);return o?o instanceof to||o instanceof Ft?this.getCompletionsForDeclarationValue(i,n):n:this.getCompletionsForDeclarationValue(i,n)}getCompletionsForFunctionArgument(e,n,r){let i=n.getIdentifier();return i&&i.matches("var")&&(!n.getArguments().hasChildren()||n.getArguments().getChild(0)===e)&&this.getVariableProposalsForCSSVarFunction(r),r}getCompletionsForFunctionDeclaration(e,n){let r=e.getDeclarations();return r&&this.offset>r.offset&&this.offset<r.end&&this.getTermProposals(void 0,null,n),n}getCompletionsForMixinReference(e,n){let r=this.getSymbolContext().findSymbolsAtOffset(this.offset,De.Mixin);for(let o of r)o.node instanceof Kn&&n.items.push(this.makeTermProposal(o,o.node.getParameters(),null));let i=e.getIdentifier()||null;return this.completionParticipants.forEach(o=>{o.onCssMixinReference&&o.onCssMixinReference({mixinName:this.currentWord,range:this.getCompletionRange(i)})}),n}getTermProposals(e,n,r){let i=this.getSymbolContext().findSymbolsAtOffset(this.offset,De.Function);for(let o of i)o.node instanceof Ur&&r.items.push(this.makeTermProposal(o,o.node.getParameters(),n));return r}makeTermProposal(e,n,r){let i=e.node,o=n.getChildren().map(l=>l instanceof pr?l.getName():l.getText()),s=e.name+"("+o.map((l,a)=>"${"+(a+1)+":"+l+"}").join(", ")+")";return{label:e.name,detail:e.name+"("+o.join(", ")+")",textEdit:E.TextEdit.replace(this.getCompletionRange(r),s),insertTextFormat:Br,kind:E.CompletionItemKind.Function,sortText:vr.Term}}getCompletionsForSupportsCondition(e,n){let r=e.findFirstChildBeforeOffset(this.offset);if(r){if(r instanceof At)return!en(r.colonPosition)||this.offset<=r.colonPosition?this.getCompletionsForDeclarationProperty(r,n):this.getCompletionsForDeclarationValue(r,n);if(r instanceof jr)return this.getCompletionsForSupportsCondition(r,n)}return en(e.lParent)&&this.offset>e.lParent&&(!en(e.rParent)||this.offset<=e.rParent)?this.getCompletionsForDeclarationProperty(null,n):n}getCompletionsForSupports(e,n){let r=e.getDeclarations();if(!r||this.offset<=r.offset){let o=e.findFirstChildBeforeOffset(this.offset);return o instanceof jr?this.getCompletionsForSupportsCondition(o,n):n}return this.getCompletionForTopLevel(n)}getCompletionsForExtendsReference(e,n,r){return r}getCompletionForUriLiteralValue(e,n){let r,i,o;if(e.hasChildren()){let s=e.getChild(0);r=s.getText(),i=this.position,o=this.getCompletionRange(s)}else{r="",i=this.position;let s=this.textDocument.positionAt(e.offset+4);o=E.Range.create(s,s)}return this.completionParticipants.forEach(s=>{s.onCssURILiteralValue&&s.onCssURILiteralValue({uriValue:r,position:i,range:o})}),n}getCompletionForImportPath(e,n){return this.completionParticipants.forEach(r=>{r.onCssImportPath&&r.onCssImportPath({pathValue:e.getText(),position:this.position,range:this.getCompletionRange(e)})}),n}hasCharacterAtPosition(e,n){let r=this.textDocument.getText();return e>=0&&e<r.length&&r.charAt(e)===n}doesSupportMarkdown(){if(!en(this.supportsMarkdown)){if(!en(this.lsOptions.clientCapabilities))return this.supportsMarkdown=!0,this.supportsMarkdown;let e=this.lsOptions.clientCapabilities.textDocument?.completion?.completionItem?.documentationFormat;this.supportsMarkdown=Array.isArray(e)&&e.indexOf(E.MarkupKind.Markdown)!==-1}return this.supportsMarkdown}};Aa=class{constructor(){this.entries={}}add(e){this.entries[e]=!0}remove(e){delete this.entries[e]}getEntries(){return Object.keys(this.entries)}};Ef=class{constructor(e,n){this.entries=e,this.currentOffset=n}visitNode(e){return(e instanceof eo||e instanceof Vn&&Fx(e))&&(this.currentOffset<e.offset||e.end<this.currentOffset)&&this.entries.add(e.getText()),!0}},Df=class{constructor(e,n){this.entries=e,this.currentOffset=n}visitNode(e){return e instanceof Ft&&e.isCustomProperty&&(this.currentOffset<e.offset||e.end<this.currentOffset)&&this.entries.add(e.getText()),!0}}});function $x(t,e){let n=new ki;for(let r of t.getChildren())switch(r.type){case A.SelectorCombinator:if(e){let l=r.getText().split("&");if(l.length===1){n.addAttr("name",l[0]);break}n=e.cloneWithParent(),l[0]&&n.findRoot().prepend(l[0]);for(let a=1;a<l.length;a++){if(a>1){let c=e.cloneWithParent();n.addChild(c.findRoot()),n=c}n.append(l[a])}}break;case A.SelectorPlaceholder:if(r.matches("@at-root"))return n;case A.ElementNameSelector:let i=r.getText();n.addAttr("name",i==="*"?"element":Cn(i));break;case A.ClassSelector:n.addAttr("class",Cn(r.getText().substring(1)));break;case A.IdentifierSelector:n.addAttr("id",Cn(r.getText().substring(1)));break;case A.MixinDeclaration:n.addAttr("class",r.getName());break;case A.PseudoSelector:n.addAttr(Cn(r.getText()),"");break;case A.AttributeSelector:let o=r,s=o.getIdentifier();if(s){let l=o.getValue(),a=o.getOperator(),c;if(l&&a)switch(Cn(a.getText())){case"|=":c=`${$r.remove(Cn(l.getText()))}-\u2026`;break;case"^=":c=`${$r.remove(Cn(l.getText()))}\u2026`;break;case"$=":c=`\u2026${$r.remove(Cn(l.getText()))}`;break;case"~=":c=` \u2026 ${$r.remove(Cn(l.getText()))} \u2026 `;break;case"*=":c=`\u2026${$r.remove(Cn(l.getText()))}\u2026`;break;default:c=$r.remove(Cn(l.getText()));break}n.addAttr(Cn(s.getText()),c)}break}return n}function Cn(t){let e=new _n;e.setSource(t);let n=e.scanUnquotedString();return n?n.text:t}function JP(t){switch(t.type){case A.MixinDeclaration:case A.Stylesheet:return!0}return!1}function XP(t){if(t.matches("@at-root"))return null;let e=new Ci,n=[],r=t.getParent();if(r instanceof un){let o=r.getParent();for(;o&&!JP(o);){if(o instanceof un){if(o.getSelectors().matches("@at-root"))break;n.push(o)}o=o.getParent()}}let i=new Ff(e);for(let o=n.length-1;o>=0;o--){let s=n[o].getSelectors().getChild(0);s&&i.processSelector(s)}return i.processSelector(t),e}var ki,Ci,Ra,ku,$r,Cu,Tu,Ff,Vx=ue(()=>{"use strict";Bt();fi();kn();ki=class{constructor(){this.parent=null,this.children=null,this.attributes=null}findAttribute(e){if(this.attributes){for(let n of this.attributes)if(n.name===e)return n.value}return null}addChild(e){e instanceof ki&&(e.parent=this),this.children||(this.children=[]),this.children.push(e)}append(e){if(this.attributes){let n=this.attributes[this.attributes.length-1];n.value=n.value+e}}prepend(e){if(this.attributes){let n=this.attributes[0];n.value=e+n.value}}findRoot(){let e=this;for(;e.parent&&!(e.parent instanceof Ci);)e=e.parent;return e}removeChild(e){if(this.children){let n=this.children.indexOf(e);if(n!==-1)return this.children.splice(n,1),!0}return!1}addAttr(e,n){this.attributes||(this.attributes=[]);for(let r of this.attributes)if(r.name===e){r.value+=" "+n;return}this.attributes.push({name:e,value:n})}clone(e=!0){let n=new ki;if(this.attributes){n.attributes=[];for(let r of this.attributes)n.addAttr(r.name,r.value)}if(e&&this.children){n.children=[];for(let r=0;r<this.children.length;r++)n.addChild(this.children[r].clone())}return n}cloneWithParent(){let e=this.clone(!1);return this.parent&&!(this.parent instanceof Ci)&&this.parent.cloneWithParent().addChild(e),e}},Ci=class extends ki{},Ra=class extends ki{constructor(e){super(),this.addAttr("name",e)}},ku=class{constructor(e){this.quote=e,this.result=[]}print(e){this.result=[],e instanceof Ci?e.children&&this.doPrint(e.children,0):this.doPrint([e],0);let n=this.result.join(`
|
|
534
|
+
`);return[{language:"html",value:n}]}doPrint(e,n){for(let r of e)this.doPrintElement(r,n),r.children&&this.doPrint(r.children,n+1)}writeLine(e,n){let r=new Array(e+1).join(" ");this.result.push(r+n)}doPrintElement(e,n){let r=e.findAttribute("name");if(e instanceof Ra||r==="\u2026"){this.writeLine(n,r);return}let i=["<"];if(r?i.push(r):i.push("element"),e.attributes){for(let o of e.attributes)if(o.name!=="name"){i.push(" "),i.push(o.name);let s=o.value;s&&(i.push("="),i.push($r.ensure(s,this.quote)))}}i.push(">"),this.writeLine(n,i.join(""))}};(function(t){function e(r,i){return i+n(r)+i}t.ensure=e;function n(r){let i=r.match(/^['"](.*)["']$/);return i?i[1]:r}t.remove=n})($r||($r={}));Cu=class{constructor(){this.id=0,this.attr=0,this.tag=0}};Tu=class{constructor(e){this.cssDataManager=e}selectorToMarkedString(e){let n=XP(e);if(n){let r=new ku('"').print(n);return r.push(this.selectorToSpecificityMarkedString(e)),r}else return[]}simpleSelectorToMarkedString(e){let n=$x(e),r=new ku('"').print(n);return r.push(this.selectorToSpecificityMarkedString(e)),r}isPseudoElementIdentifier(e){let n=e.match(/^::?([\w-]+)/);return n?!!this.cssDataManager.getPseudoElement("::"+n[1]):!1}selectorToSpecificityMarkedString(e){let n=i=>{let o=new Cu;e:for(let s of i.getChildren()){switch(s.type){case A.IdentifierSelector:o.id++;break;case A.ClassSelector:case A.AttributeSelector:o.attr++;break;case A.ElementNameSelector:if(s.matches("*"))break;o.tag++;break;case A.PseudoSelector:let l=s.getText();if(this.isPseudoElementIdentifier(l)){o.tag++;continue e}if(l.match(/^:where/i))continue e;if(l.match(/^:(not|has|is)/i)&&s.getChildren().length>0){let a=new Cu;for(let c of s.getChildren()){let u;c.type===A.Undefined?u=c.getChildren():u=[c];for(let d of c.getChildren()){let h=n(d);if(h.id>a.id){a=h;continue}else if(h.id<a.id)continue;if(h.attr>a.attr){a=h;continue}else if(h.attr<a.attr)continue;if(h.tag>a.tag){a=h;continue}}}o.id+=a.id,o.attr+=a.attr,o.tag+=a.tag;continue e}o.attr++;continue e}if(s.getChildren().length>0){let l=n(s);o.id+=l.id,o.attr+=l.attr,o.tag+=l.tag}}return o},r=n(e);return F("[Selector Specificity](https://developer.mozilla.org/en-US/docs/Web/CSS/Specificity): ({0}, {1}, {2})",r.id,r.attr,r.tag)}},Ff=class{constructor(e){this.prev=null,this.element=e}processSelector(e){let n=null;if(!(this.element instanceof Ci)&&e.getChildren().some(r=>r.hasChildren()&&r.getChild(0).type===A.SelectorCombinator)){let r=this.element.findRoot();r.parent instanceof Ci&&(n=this.element,this.element=r.parent,this.element.removeChild(r),this.prev=null)}for(let r of e.getChildren()){if(r instanceof xn){if(this.prev instanceof xn){let s=new Ra("\u2026");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 Ra("\u22EE"));let i=$x(r,n),o=i.findRoot();this.element.addChild(o),this.element=i}(r instanceof xn||r.type===A.SelectorCombinatorParent||r.type===A.SelectorCombinatorShadowPiercingDescendant||r.type===A.SelectorCombinatorSibling||r.type===A.SelectorCombinatorAllSiblings)&&(this.prev=r)}}}});var ss,Kx=ue(()=>{"use strict";Bt();rs();Vx();qr();hn();Ca();ss=class{constructor(e,n){this.clientCapabilities=e,this.cssDataManager=n,this.selectorPrinting=new Tu(n)}configure(e){this.defaultSettings=e}doHover(e,n,r,i=this.defaultSettings){function o(c){return E.Range.create(e.positionAt(c.offset),e.positionAt(c.end))}let s=e.offsetAt(n),l=ns(r,s),a=null;for(let c=0;c<l.length;c++){let u=l[c];if(u instanceof Sn){a={contents:this.selectorPrinting.selectorToMarkedString(u),range:o(u)};break}if(u instanceof xn){ot(u.getText(),"@")||(a={contents:this.selectorPrinting.simpleSelectorToMarkedString(u),range:o(u)});break}if(u instanceof At){let d=u.getFullPropertyName(),h=this.cssDataManager.getProperty(d);if(h){let p=gr(h,this.doesSupportMarkdown(),i);p?a={contents:p,range:o(u)}:a=null}continue}if(u instanceof Zo){let d=u.getText(),h=this.cssDataManager.getAtDirective(d);if(h){let p=gr(h,this.doesSupportMarkdown(),i);p?a={contents:p,range:o(u)}:a=null}continue}if(u instanceof fe&&u.type===A.PseudoSelector){let d=u.getText(),h=d.slice(0,2)==="::"?this.cssDataManager.getPseudoElement(d):this.cssDataManager.getPseudoClass(d);if(h){let p=gr(h,this.doesSupportMarkdown(),i);p?a={contents:p,range:o(u)}:a=null}continue}}return a&&(a.contents=this.convertContents(a.contents)),a}convertContents(e){return this.doesSupportMarkdown()||typeof e=="string"?e:"kind"in e?{kind:"plaintext",value:e.value}:Array.isArray(e)?e.map(n=>typeof n=="string"?n:n.value):e.value}doesSupportMarkdown(){if(!en(this.supportsMarkdown)){if(!en(this.clientCapabilities))return this.supportsMarkdown=!0,this.supportsMarkdown;let e=this.clientCapabilities.textDocument&&this.clientCapabilities.textDocument.hover;this.supportsMarkdown=e&&e.contentFormat&&Array.isArray(e.contentFormat)&&e.contentFormat.indexOf(E.MarkupKind.Markdown)!==-1}return this.supportsMarkdown}}});function QP(t,e){let n=Ix(t);if(n){let r=Vr(t,e);return{color:n,range:r}}return null}function Vr(t,e){return E.Range.create(e.positionAt(t.offset),e.positionAt(t.end))}function YP(t,e){let n=e.start.line,r=e.end.line,i=t.start.line,o=t.end.line;return!(n<i||r<i||n>o||r>o||n===i&&e.start.character<t.start.character||r===o&&e.end.character>t.end.character)}function Xx(t){if(t.type===A.Selector)return E.DocumentHighlightKind.Write;if(t instanceof Ft&&t.parent&&t.parent instanceof gi&&t.isCustomProperty)return E.DocumentHighlightKind.Write;if(t.parent)switch(t.parent.type){case A.FunctionDeclaration:case A.MixinDeclaration:case A.Keyframe:case A.VariableDeclaration:case A.FunctionParameter:return E.DocumentHighlightKind.Write}return E.DocumentHighlightKind.Read}function io(t){let e=t.toString(16);return e.length!==2?"0"+e:e}function ZP(t){let e=t.indexOf("/");if(e===-1)return"";if(t[0]==="@"){let n=t.indexOf("/",e+1);return n===-1?t:t.substring(0,n)}return t.substring(0,e)}var Gx,Jx,oo,Af=ue(()=>{"use strict";hn();kn();Bt();xf();rs();qr();Cf();Gx=/^\w+:\/\//,Jx=/^data:/,oo=class{constructor(e,n){this.fileSystemProvider=e,this.resolveModuleReferences=n}findDefinition(e,n,r){let i=new ro(r),o=e.offsetAt(n),s=uu(r,o);if(!s)return null;let l=i.findSymbolFromNode(s);return l?{uri:e.uri,range:Vr(l.node,e)}:null}findReferences(e,n,r){return this.findDocumentHighlights(e,n,r).map(o=>({uri:e.uri,range:o.range}))}getHighlightNode(e,n,r){let i=e.offsetAt(n),o=uu(r,i);if(!(!o||o.type===A.Stylesheet||o.type===A.Declarations))return o.type===A.Identifier&&o.parent&&o.parent.type===A.ClassSelector&&(o=o.parent),o}findDocumentHighlights(e,n,r){let i=[],o=this.getHighlightNode(e,n,r);if(!o)return i;let s=new ro(r),l=s.findSymbolFromNode(o),a=o.getText();return r.accept(c=>{if(l){if(s.matchesSymbol(c,l))return i.push({kind:Xx(c),range:Vr(c,e)}),!1}else o&&o.type===c.type&&c.matches(a)&&i.push({kind:Xx(c),range:Vr(c,e)});return!0}),i}isRawStringDocumentLinkNode(e){return e.type===A.Import}findDocumentLinks(e,n,r){let i=this.findUnresolvedLinks(e,n),o=[];for(let s of i){let l=s.link,a=l.target;if(!(!a||Jx.test(a)))if(Gx.test(a))o.push(l);else{let c=r.resolveReference(a,e.uri);c&&(l.target=c),o.push(l)}}return o}async findDocumentLinks2(e,n,r){let i=this.findUnresolvedLinks(e,n),o=[];for(let s of i){let l=s.link,a=l.target;if(!(!a||Jx.test(a)))if(Gx.test(a))o.push(l);else{let c=await this.resolveReference(a,e.uri,r,s.isRawLink);c!==void 0&&(l.target=c,o.push(l))}}return o}findUnresolvedLinks(e,n){let r=[],i=o=>{let s=o.getText(),l=Vr(o,e);if(l.start.line===l.end.line&&l.start.character===l.end.character)return;(ot(s,"'")||ot(s,'"'))&&(s=s.slice(1,-1));let a=o.parent?this.isRawStringDocumentLinkNode(o.parent):!1;r.push({link:{target:s,range:l},isRawLink:a})};return n.accept(o=>{if(o.type===A.URILiteral){let s=o.getChild(0);return s&&i(s),!1}if(o.parent&&this.isRawStringDocumentLinkNode(o.parent)){let s=o.getText();return(ot(s,"'")||ot(s,'"'))&&i(o),!1}return!0}),r}findSymbolInformations(e,n){let r=[],i=(o,s,l)=>{let a=l instanceof fe?Vr(l,e):l,c={name:o,kind:s,location:E.Location.create(e.uri,a)};r.push(c)};return this.collectDocumentSymbols(e,n,i),r}findDocumentSymbols(e,n){let r=[],i=[],o=(s,l,a,c,u)=>{let d=a instanceof fe?Vr(a,e):a,h=(c instanceof fe?Vr(c,e):c)??E.Range.create(d.start,d.start),p={name:s,kind:l,range:d,selectionRange:h},w=i.pop();for(;w&&!YP(w[1],d);)w=i.pop();if(w){let v=w[0];v.children||(v.children=[]),v.children.push(p),i.push(w)}else r.push(p);u&&i.push([p,Vr(u,e)])};return this.collectDocumentSymbols(e,n,o),r}collectDocumentSymbols(e,n,r){n.accept(i=>{if(i instanceof un){for(let o of i.getSelectors().getChildren())if(o instanceof Sn){let s=E.Range.create(e.positionAt(o.offset),e.positionAt(i.end));r(o.getText(),E.SymbolKind.Class,s,o,i.getDeclarations())}}else if(i instanceof mr)r(i.getName(),E.SymbolKind.Variable,i,i.getVariable(),void 0);else if(i instanceof Kn)r(i.getName(),E.SymbolKind.Method,i,i.getIdentifier(),i.getDeclarations());else if(i instanceof Ur)r(i.getName(),E.SymbolKind.Function,i,i.getIdentifier(),i.getDeclarations());else if(i instanceof Go){let o=F("@keyframes {0}",i.getName());r(o,E.SymbolKind.Class,i,i.getIdentifier(),i.getDeclarations())}else if(i instanceof Ko){let o=F("@font-face");r(o,E.SymbolKind.Class,i,void 0,i.getDeclarations())}else if(i instanceof Jo){let o=i.getChild(0);if(o instanceof Xo){let s="@media "+o.getText();r(s,E.SymbolKind.Module,i,o,i.getDeclarations())}}return!0})}findDocumentColors(e,n){let r=[];return n.accept(i=>{let o=QP(i,e);return o&&r.push(o),!0}),r}getColorPresentations(e,n,r,i){let o=[],s=Math.round(r.red*255),l=Math.round(r.green*255),a=Math.round(r.blue*255),c;r.alpha===1?c=`rgb(${s}, ${l}, ${a})`:c=`rgba(${s}, ${l}, ${a}, ${r.alpha})`,o.push({label:c,textEdit:E.TextEdit.replace(i,c)}),r.alpha===1?c=`#${io(s)}${io(l)}${io(a)}`:c=`#${io(s)}${io(l)}${io(a)}${io(Math.round(r.alpha*255))}`,o.push({label:c,textEdit:E.TextEdit.replace(i,c)});let u=cf(r);u.a===1?c=`hsl(${u.h}, ${Math.round(u.s*100)}%, ${Math.round(u.l*100)}%)`:c=`hsla(${u.h}, ${Math.round(u.s*100)}%, ${Math.round(u.l*100)}%, ${u.a})`,o.push({label:c,textEdit:E.TextEdit.replace(i,c)});let d=Rx(r);return d.a===1?c=`hwb(${d.h} ${Math.round(d.w*100)}% ${Math.round(d.b*100)}%)`:c=`hwb(${d.h} ${Math.round(d.w*100)}% ${Math.round(d.b*100)}% / ${d.a})`,o.push({label:c,textEdit:E.TextEdit.replace(i,c)}),o}prepareRename(e,n,r){let i=this.getHighlightNode(e,n,r);if(i)return E.Range.create(e.positionAt(i.offset),e.positionAt(i.end))}doRename(e,n,r,i){let s=this.findDocumentHighlights(e,n,i).map(l=>E.TextEdit.replace(l.range,r));return{changes:{[e.uri]:s}}}async resolveModuleReference(e,n,r){if(ot(n,"file://")){let i=ZP(e);if(i&&i!=="."&&i!==".."){let o=r.resolveReference("/",n),s=wu(n),l=await this.resolvePathToModule(i,s,o);if(l){let a=e.substring(i.length+1);return Da(l,a)}}}}async mapReference(e,n){return e}async resolveReference(e,n,r,i=!1){if(e[0]==="~"&&e[1]!=="/"&&this.fileSystemProvider)return e=e.substring(1),this.mapReference(await this.resolveModuleReference(e,n,r),i);let o=await this.mapReference(r.resolveReference(e,n),i);if(this.resolveModuleReferences){if(o&&await this.fileExists(o))return o;let s=await this.mapReference(await this.resolveModuleReference(e,n,r),i);if(s)return s}return o}async resolvePathToModule(e,n,r){let i=Da(n,"node_modules",e,"package.json");if(await this.fileExists(i))return wu(i);if(r&&n.startsWith(r)&&n.length!==r.length)return this.resolvePathToModule(e,wu(n),r)}async fileExists(e){if(!this.fileSystemProvider)return!1;try{let n=await this.fileSystemProvider.stat(e);return!(n.type===yi.Unknown&&n.size===-1)}catch{return!1}}}});function ez(t){switch(t){case"ignore":return Ht.Ignore;case"warning":return Ht.Warning;case"error":return Ht.Error}return null}var as,Qx,Jn,yt,Rf,je,Yx,Eu,Du=ue(()=>{"use strict";Bt();kn();as=Ht.Warning,Qx=Ht.Error,Jn=Ht.Ignore,yt=class{constructor(e,n,r){this.id=e,this.message=n,this.defaultValue=r}},Rf=class{constructor(e,n,r){this.id=e,this.message=n,this.defaultValue=r}},je={AllVendorPrefixes:new yt("compatibleVendorPrefixes",F("When using a vendor-specific prefix make sure to also include all other vendor-specific properties"),Jn),IncludeStandardPropertyWhenUsingVendorPrefix:new yt("vendorPrefix",F("When using a vendor-specific prefix also include the standard property"),as),DuplicateDeclarations:new yt("duplicateProperties",F("Do not use duplicate style definitions"),Jn),EmptyRuleSet:new yt("emptyRules",F("Do not use empty rulesets"),as),ImportStatemement:new yt("importStatement",F("Import statements do not load in parallel"),Jn),BewareOfBoxModelSize:new yt("boxModel",F("Do not use width or height when using padding or border"),Jn),UniversalSelector:new yt("universalSelector",F("The universal selector (*) is known to be slow"),Jn),ZeroWithUnit:new yt("zeroUnits",F("No unit for zero needed"),Jn),RequiredPropertiesForFontFace:new yt("fontFaceProperties",F("@font-face rule must define 'src' and 'font-family' properties"),as),HexColorLength:new yt("hexColorLength",F("Hex colors must consist of three, four, six or eight hex numbers"),Qx),ArgsInColorFunction:new yt("argumentsInColorFunction",F("Invalid number of parameters"),Qx),UnknownProperty:new yt("unknownProperties",F("Unknown property."),as),UnknownAtRules:new yt("unknownAtRules",F("Unknown at-rule."),as),IEStarHack:new yt("ieHack",F("IE hacks are only necessary when supporting IE7 and older"),Jn),UnknownVendorSpecificProperty:new yt("unknownVendorSpecificProperties",F("Unknown vendor specific property."),Jn),PropertyIgnoredDueToDisplay:new yt("propertyIgnoredDueToDisplay",F("Property is ignored due to the display."),as),AvoidImportant:new yt("important",F("Avoid using !important. It is an indication that the specificity of the entire CSS has gotten out of control and needs to be refactored."),Jn),AvoidFloat:new yt("float",F("Avoid using 'float'. Floats lead to fragile CSS that is easy to break if one aspect of the layout changes."),Jn),AvoidIdSelector:new yt("idSelector",F("Selectors should not contain IDs because these rules are too tightly coupled with the HTML."),Jn)},Yx={ValidProperties:new Rf("validProperties",F("A list of properties that are not validated against the `unknownProperties` rule."),[])},Eu=class{constructor(e={}){this.conf=e}getRule(e){if(this.conf.hasOwnProperty(e.id)){let n=ez(this.conf[e.id]);if(n)return n}return e.defaultValue}getSetting(e){return this.conf[e.id]}}});var ls,Zx=ue(()=>{"use strict";Bt();qr();Du();hn();kn();ls=class{constructor(e){this.cssDataManager=e}doCodeActions(e,n,r,i){return this.doCodeActions2(e,n,r,i).map(o=>{let s=o.edit&&o.edit.documentChanges&&o.edit.documentChanges[0];return E.Command.create(o.title,"_css.applyCodeAction",e.uri,e.version,s&&s.edits)})}doCodeActions2(e,n,r,i){let o=[];if(r.diagnostics)for(let s of r.diagnostics)this.appendFixesForMarker(e,i,s,o);return o}getFixesForUnknownProperty(e,n,r,i){let o=n.getName(),s=[];this.cssDataManager.getProperties().forEach(a=>{let c=bx(o,a.name);c>=o.length/2&&s.push({property:a.name,score:c})}),s.sort((a,c)=>c.score-a.score||a.property.localeCompare(c.property));let l=3;for(let a of s){let c=a.property,u=F("Rename to '{0}'",c),d=E.TextEdit.replace(r.range,c),h=E.VersionedTextDocumentIdentifier.create(e.uri,e.version),p={documentChanges:[E.TextDocumentEdit.create(h,[d])]},w=E.CodeAction.create(u,p,E.CodeActionKind.QuickFix);if(w.diagnostics=[r],i.push(w),--l<=0)return}}appendFixesForMarker(e,n,r,i){if(r.code!==je.UnknownProperty.id)return;let o=e.offsetAt(r.range.start),s=e.offsetAt(r.range.end),l=ns(n,o);for(let a=l.length-1;a>=0;a--){let c=l[a];if(c instanceof At){let u=c.getProperty();if(u&&u.offset===o&&u.end===s){this.getFixesForUnknownProperty(e,u,r,i);return}}}}}});function Ia(t,e,n,r){let i=t[e];i.value=n,n&&(yf(i.properties,r)||i.properties.push(r))}function tz(t,e,n){Ia(t,"top",e,n),Ia(t,"right",e,n),Ia(t,"bottom",e,n),Ia(t,"left",e,n)}function $t(t,e,n,r){e==="top"||e==="right"||e==="bottom"||e==="left"?Ia(t,e,n,r):tz(t,n,r)}function If(t,e,n){switch(e.length){case 1:$t(t,void 0,e[0],n);break;case 2:$t(t,"top",e[0],n),$t(t,"bottom",e[0],n),$t(t,"right",e[1],n),$t(t,"left",e[1],n);break;case 3:$t(t,"top",e[0],n),$t(t,"right",e[1],n),$t(t,"left",e[1],n),$t(t,"bottom",e[2],n);break;case 4:$t(t,"top",e[0],n),$t(t,"right",e[1],n),$t(t,"bottom",e[2],n),$t(t,"left",e[3],n);break}}function Mf(t,e){for(let n of e)if(t.matches(n))return!0;return!1}function Ma(t,e=!0){return e&&Mf(t,["initial","unset"])?!1:parseFloat(t.getText())!==0}function e0(t,e=!0){return t.map(n=>Ma(n,e))}function Au(t,e=!0){return!(Mf(t,["none","hidden"])||e&&Mf(t,["initial","unset"]))}function nz(t,e=!0){return t.map(n=>Au(n,e))}function rz(t){let e=t.getChildren();if(e.length===1){let n=e[0];return Ma(n)&&Au(n)}for(let n of e){let r=n;if(!Ma(r,!1)||!Au(r,!1))return!1}return!0}function Pf(t){let e={top:{value:!1,properties:[]},right:{value:!1,properties:[]},bottom:{value:!1,properties:[]},left:{value:!1,properties:[]}};for(let n of t){let 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":e.width=n;break;case"height":e.height=n;break;default:let 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:$t(e,i[1],rz(r),n);break;case"width":$t(e,i[1],Ma(r,!1),n);break;case"style":$t(e,i[1],Au(r,!0),n);break}break;case"width":If(e,e0(r.getChildren(),!1),n);break;case"style":If(e,nz(r.getChildren(),!0),n);break}break;case"padding":i.length===1?If(e,e0(r.getChildren(),!0),n):$t(e,i[1],Ma(r,!0),n);break}break}}return e}var Fu,t0=ue(()=>{"use strict";bu();Fu=class{constructor(e){this.fullPropertyName=e.getFullPropertyName().toLowerCase(),this.node=e}}});var Ru,Kr,n0=ue(()=>{"use strict";kn();rs();Bt();bu();Du();t0();Ru=class{constructor(){this.data={}}add(e,n,r){let i=this.data[e];i||(i={nodes:[],names:[]},this.data[e]=i),i.names.push(n),r&&i.nodes.push(r)}},Kr=class{static entries(e,n,r,i,o){let s=new Kr(n,r,i);return e.acceptVisitor(s),s.completeValidations(),s.getEntries(o)}constructor(e,n,r){this.cssDataManager=r,this.warnings=[],this.settings=n,this.documentText=e.getText(),this.keyframes=new Ru,this.validProperties={};let i=n.getSetting(Yx.ValidProperties);Array.isArray(i)&&i.forEach(o=>{if(typeof o=="string"){let s=o.trim().toLowerCase();s.length&&(this.validProperties[s]=!0)}})}isValidPropertyDeclaration(e){let n=e.fullPropertyName;return this.validProperties[n]}fetch(e,n){let r=[];for(let i of e)i.fullPropertyName===n&&r.push(i);return r}fetchWithValue(e,n,r){let i=[];for(let o of e)if(o.fullPropertyName===n){let s=o.node.getValue();s&&this.findValueInExpression(s,r)&&i.push(o)}return i}findValueInExpression(e,n){let r=!1;return e.accept(i=>(i.type===A.Identifier&&i.matches(n)&&(r=!0),!r)),r}getEntries(e=Ht.Warning|Ht.Error){return this.warnings.filter(n=>(n.getLevel()&e)!==0)}addEntry(e,n,r){let i=new es(e,n,this.settings.getRule(n),r);this.warnings.push(i)}getMissingNames(e,n){let r=e.slice(0);for(let o=0;o<n.length;o++){let s=r.indexOf(n[o]);s!==-1&&(r[s]=null)}let i=null;for(let o=0;o<r.length;o++){let s=r[o];s&&(i===null?i=F("'{0}'",s):i=F("{0}, '{1}'",i,s))}return i}visitNode(e){switch(e.type){case A.UnknownAtRule:return this.visitUnknownAtRule(e);case A.Keyframe:return this.visitKeyframe(e);case A.FontFace:return this.visitFontFace(e);case A.Ruleset:return this.visitRuleSet(e);case A.SimpleSelector:return this.visitSimpleSelector(e);case A.Function:return this.visitFunction(e);case A.NumericValue:return this.visitNumericValue(e);case A.Import:return this.visitImport(e);case A.HexColorValue:return this.visitHexColorValue(e);case A.Prio:return this.visitPrio(e);case A.IdentifierSelector:return this.visitIdentifierSelector(e)}return!0}completeValidations(){this.validateKeyframes()}visitUnknownAtRule(e){let n=e.getChild(0);return!n||this.cssDataManager.getAtDirective(n.getText())?!1:(this.addEntry(n,je.UnknownAtRules,`Unknown at rule ${n.getText()}`),!0)}visitKeyframe(e){let n=e.getKeyword();if(!n)return!1;let r=n.getText();return this.keyframes.add(e.getName(),r,r!=="@keyframes"?n:null),!0}validateKeyframes(){let e=["@-webkit-keyframes","@-moz-keyframes","@-o-keyframes"];for(let n in this.keyframes.data){let r=this.keyframes.data[n].names,i=r.indexOf("@keyframes")===-1;if(!i&&r.length===1)continue;let o=this.getMissingNames(e,r);if(o||i)for(let s of this.keyframes.data[n].nodes){if(i){let l=F("Always define standard rule '@keyframes' when defining keyframes.");this.addEntry(s,je.IncludeStandardPropertyWhenUsingVendorPrefix,l)}if(o){let l=F("Always include all vendor specific rules: Missing: {0}",o);this.addEntry(s,je.AllVendorPrefixes,l)}}}return!0}visitSimpleSelector(e){let n=this.documentText.charAt(e.offset);return e.length===1&&n==="*"&&this.addEntry(e,je.UniversalSelector),!0}visitIdentifierSelector(e){return this.addEntry(e,je.AvoidIdSelector),!0}visitImport(e){return this.addEntry(e,je.ImportStatemement),!0}visitRuleSet(e){let n=e.getDeclarations();if(!n)return!1;n.hasChildren()||this.addEntry(e.getSelectors(),je.EmptyRuleSet);let r=[];for(let a of n.getChildren())a instanceof At&&r.push(new Fu(a));let i=Pf(r);if(i.width){let a=[];if(i.right.value&&(a=Ta(a,i.right.properties)),i.left.value&&(a=Ta(a,i.left.properties)),a.length!==0){for(let c of a)this.addEntry(c.node,je.BewareOfBoxModelSize);this.addEntry(i.width.node,je.BewareOfBoxModelSize)}}if(i.height){let a=[];if(i.top.value&&(a=Ta(a,i.top.properties)),i.bottom.value&&(a=Ta(a,i.bottom.properties)),a.length!==0){for(let c of a)this.addEntry(c.node,je.BewareOfBoxModelSize);this.addEntry(i.height.node,je.BewareOfBoxModelSize)}}let o=this.fetchWithValue(r,"display","inline-block");if(o.length>0){let a=this.fetch(r,"float");for(let c=0;c<a.length;c++){let u=a[c].node,d=u.getValue();d&&!d.matches("none")&&this.addEntry(u,je.PropertyIgnoredDueToDisplay,F("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(o=this.fetchWithValue(r,"display","block"),o.length>0){let a=this.fetch(r,"vertical-align");for(let c=0;c<a.length;c++)this.addEntry(a[c].node,je.PropertyIgnoredDueToDisplay,F("Property is ignored due to the display. With 'display: block', vertical-align should not be used."))}let s=this.fetch(r,"float");for(let a=0;a<s.length;a++){let c=s[a];this.isValidPropertyDeclaration(c)||this.addEntry(c.node,je.AvoidFloat)}for(let a=0;a<r.length;a++){let c=r[a];if(c.fullPropertyName!=="background"&&!this.validProperties[c.fullPropertyName]){let u=c.node.getValue();if(u&&this.documentText.charAt(u.offset)!=="-"){let d=this.fetch(r,c.fullPropertyName);if(d.length>1)for(let h=0;h<d.length;h++){let p=d[h].node.getValue();p&&this.documentText.charAt(p.offset)!=="-"&&d[h]!==c&&this.addEntry(c.node,je.DuplicateDeclarations)}}}}if(!e.getSelectors().matches(":export")){let a=new Ru,c=!1;for(let u of r){let d=u.node;if(this.isCSSDeclaration(d)){let h=u.fullPropertyName,p=h.charAt(0);if(p==="-"){if(h.charAt(1)!=="-"){!this.cssDataManager.isKnownProperty(h)&&!this.validProperties[h]&&this.addEntry(d.getProperty(),je.UnknownVendorSpecificProperty);let w=d.getNonPrefixedPropertyName();a.add(w,h,d.getProperty())}}else{let w=h;(p==="*"||p==="_")&&(this.addEntry(d.getProperty(),je.IEStarHack),h=h.substr(1)),!this.cssDataManager.isKnownProperty(w)&&!this.cssDataManager.isKnownProperty(h)&&(this.validProperties[h]||this.addEntry(d.getProperty(),je.UnknownProperty,F("Unknown property: '{0}'",d.getFullPropertyName()))),a.add(h,h,null)}}else c=!0}if(!c)for(let u in a.data){let d=a.data[u],h=d.names,p=this.cssDataManager.isStandardProperty(u)&&h.indexOf(u)===-1;if(!p&&h.length===1)continue;let w=new Set(p?d.nodes:[]);if(p){let _=this.getContextualVendorSpecificPseudoElements(e);for(let f of d.nodes){let g=f.getName(),D=g.substring(0,g.length-u.length);_.some(L=>L.startsWith(D))&&w.delete(f)}}let v=[];for(let _=0,f=Kr.prefixes.length;_<f;_++){let g=Kr.prefixes[_];this.cssDataManager.isStandardProperty(g+u)&&v.push(g+u)}let x=this.getMissingNames(v,h);if(x||p)for(let _ of d.nodes){if(p&&w.has(_)){let f=F("Also define the standard property '{0}' for compatibility",u);this.addEntry(_,je.IncludeStandardPropertyWhenUsingVendorPrefix,f)}if(x){let f=F("Always include all vendor specific properties: Missing: {0}",x);this.addEntry(_,je.AllVendorPrefixes,f)}}}}return!0}getContextualVendorSpecificPseudoElements(e){function n(o,s){for(let l of s.getChildren()){if(l.type===A.PseudoSelector){let a=l.getChildren()[0]?.getText();a&&o.add(a)}n(o,l)}}function r(o,s){if(s.type===A.Ruleset)for(let l of s.getSelectors().getChildren())n(o,l);return s.parent?r(o,s.parent):void 0}let i=new Set;return r(i,e),Array.from(i)}visitPrio(e){return this.addEntry(e,je.AvoidImportant),!0}visitNumericValue(e){let n=e.findParent(A.Function);if(n&&n.getName()==="calc")return!0;let r=e.findParent(A.Declaration);if(r&&r.getValue()){let o=e.getValue();if(!o.unit||mu.length.indexOf(o.unit.toLowerCase())===-1)return!0;parseFloat(o.value)===0&&!!o.unit&&!this.validProperties[r.getFullPropertyName()]&&this.addEntry(e,je.ZeroWithUnit)}return!0}visitFontFace(e){let n=e.getDeclarations();if(!n)return!1;let r=!1,i=!1,o=!1;for(let s of n.getChildren())if(this.isCSSDeclaration(s)){let l=s.getProperty().getName().toLowerCase();l==="src"&&(r=!0),l==="font-family"&&(i=!0)}else o=!0;return!o&&(!r||!i)&&this.addEntry(e,je.RequiredPropertiesForFontFace),!0}isCSSDeclaration(e){if(e instanceof At){if(!e.getValue())return!1;let n=e.getProperty();if(!n)return!1;let r=n.getIdentifier();return!(!r||r.containsInterpolation())}return!1}visitHexColorValue(e){let n=e.length;return n!==9&&n!==7&&n!==5&&n!==4&&this.addEntry(e,je.HexColorLength),!1}visitFunction(e){let n=e.getName().toLowerCase(),r=-1,i=0;switch(n){case"rgb(":case"hsl(":r=3;break;case"rgba(":case"hsla(":r=4;break}return r!==-1&&(e.getArguments().accept(o=>o instanceof vi?(i+=1,!1):!0),i!==r&&this.addEntry(e,je.ArgsInColorFunction)),!0}};Kr.prefixes=["-ms-","-moz-","-o-","-webkit-"]});var cs,r0=ue(()=>{"use strict";Bt();Du();n0();hn();cs=class{constructor(e){this.cssDataManager=e}configure(e){this.settings=e}doValidation(e,n,r=this.settings){if(r&&r.validate===!1)return[];let i=[];i.push.apply(i,ts.entries(n)),i.push.apply(i,Kr.entries(n,e,new Eu(r&&r.lint),this.cssDataManager));let o=[];for(let l in je)o.push(je[l].id);function s(l){let a=E.Range.create(e.positionAt(l.getOffset()),e.positionAt(l.getOffset()+l.getLength())),c=e.languageId;return{code:l.getRule().id,source:c,message:l.getMessage(),severity:l.getLevel()===Ht.Warning?E.DiagnosticSeverity.Warning:E.DiagnosticSeverity.Error,range:a}}return i.filter(l=>l.getLevel()!==Ht.Ignore).map(s)}}});var i0,iz,oz,sz,az,lz,cz,Pa,uz,dz,hz,zf,u4,Gr,Iu,ds,d4,Of,Lf,Mu,Pu,za,h4,us,Nf=ue(()=>{"use strict";fi();i0="/".charCodeAt(0),iz=`
|
|
535
|
+
`.charCodeAt(0),oz="\r".charCodeAt(0),sz="\f".charCodeAt(0),az="$".charCodeAt(0),lz="#".charCodeAt(0),cz="{".charCodeAt(0),Pa="=".charCodeAt(0),uz="!".charCodeAt(0),dz="<".charCodeAt(0),hz=">".charCodeAt(0),zf=".".charCodeAt(0),u4="@".charCodeAt(0),Gr=m.CustomToken,Iu=Gr++,ds=Gr++,d4=Gr++,Of=Gr++,Lf=Gr++,Mu=Gr++,Pu=Gr++,za=Gr++,h4=Gr++,us=class extends _n{scanNext(e){if(this.stream.advanceIfChar(az)){let n=["$"];if(this.ident(n))return this.finishToken(e,Iu,n.join(""));this.stream.goBackTo(e)}return this.stream.advanceIfChars([lz,cz])?this.finishToken(e,ds):this.stream.advanceIfChars([Pa,Pa])?this.finishToken(e,Of):this.stream.advanceIfChars([uz,Pa])?this.finishToken(e,Lf):this.stream.advanceIfChar(dz)?this.stream.advanceIfChar(Pa)?this.finishToken(e,Pu):this.finishToken(e,m.Delim):this.stream.advanceIfChar(hz)?this.stream.advanceIfChar(Pa)?this.finishToken(e,Mu):this.finishToken(e,m.Delim):this.stream.advanceIfChars([zf,zf,zf])?this.finishToken(e,za):super.scanNext(e)}comment(){return super.comment()?!0:!this.inURL&&this.stream.advanceIfChars([i0,i0])?(this.stream.advanceWhileChar(e=>{switch(e){case iz:case oz:case sz:return!1;default:return!0}}),!0):!1}}});var Oa,zu,o0=ue(()=>{"use strict";kn();Oa=class{constructor(e,n){this.id=e,this.message=n}},zu={FromExpected:new Oa("scss-fromexpected",F("'from' expected")),ThroughOrToExpected:new Oa("scss-throughexpected",F("'through' or 'to' expected")),InExpected:new Oa("scss-fromexpected",F("'in' expected"))}});var Ou,s0=ue(()=>{"use strict";Nf();fi();gu();Bt();o0();du();Ou=class extends Si{constructor(){super(new us)}_parseStylesheetStatement(e=!1){return this.peek(m.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;let e=this.create(bi);if(this.consumeToken(),!e.addChild(this._parseURILiteral())&&!e.addChild(this._parseStringLiteral()))return this.finish(e,q.URIOrStringExpected);for(;this.accept(m.Comma);)if(!e.addChild(this._parseURILiteral())&&!e.addChild(this._parseStringLiteral()))return this.finish(e,q.URIOrStringExpected);return!this.peek(m.SemiColon)&&!this.peek(m.EOF)&&e.setMedialist(this._parseMediaQueryList()),this.finish(e)}_parseVariableDeclaration(e=[]){if(!this.peek(Iu))return null;let n=this.create(mr);if(!n.setVariable(this._parseVariable()))return null;if(!this.accept(m.Colon))return this.finish(n,q.ColonExpected);if(this.prevToken&&(n.colonPosition=this.prevToken.offset),!n.setValue(this._parseExpr()))return this.finish(n,q.VariableValueExpected,[],e);for(;this.peek(m.Exclamation);)if(!n.addChild(this._tryParsePrio())){if(this.consumeToken(),!this.peekRegExp(m.Ident,/^(default|global)$/))return this.finish(n,q.UnknownKeyword);this.consumeToken()}return this.peek(m.SemiColon)&&(n.semicolonPosition=this.token.offset),this.finish(n)}_parseMediaCondition(){return this._parseInterpolation()||super._parseMediaCondition()}_parseMediaFeatureRangeOperator(){return this.accept(Pu)||this.accept(Mu)||super._parseMediaFeatureRangeOperator()}_parseMediaFeatureName(){return this._parseModuleMember()||this._parseFunction()||this._parseIdent()||this._parseVariable()}_parseKeyframeSelector(){return this._tryParseKeyframeSelector()||this._parseControlStatement(this._parseKeyframeSelector.bind(this))||this._parseVariableDeclaration()||this._parseMixinContent()}_parseVariable(){if(!this.peek(Iu))return null;let e=this.create(wi);return this.consumeToken(),e}_parseModuleMember(){let e=this.mark(),n=this.create(_a);return n.setIdentifier(this._parseIdent([De.Module]))?this.hasWhitespace()||!this.acceptDelim(".")||this.hasWhitespace()?(this.restoreAtMark(e),null):n.addChild(this._parseVariable()||this._parseFunction())?n:this.finish(n,q.IdentifierOrVariableExpected):null}_parseIdent(e){if(!this.peek(m.Ident)&&!this.peek(ds)&&!this.peekDelim("-"))return null;let n=this.create(Ft);n.referenceTypes=e,n.isCustomProperty=this.peekRegExp(m.Ident,/^--/);let r=!1,i=()=>{let o=this.mark();return this.acceptDelim("-")&&(this.hasWhitespace()||this.acceptDelim("-"),this.hasWhitespace())?(this.restoreAtMark(o),null):this._parseInterpolation()};for(;(this.accept(m.Ident)||n.addChild(i())||r&&this.acceptRegexp(/^[\w-]/))&&(r=!0,!this.hasWhitespace()););return r?this.finish(n):null}_parseTermExpression(){return this._parseModuleMember()||this._parseVariable()||this._parseSelectorCombinator()||super._parseTermExpression()}_parseInterpolation(){if(this.peek(ds)){let e=this.create(no);return this.consumeToken(),!e.addChild(this._parseExpr())&&!this._parseSelectorCombinator()?this.accept(m.CurlyR)?this.finish(e):this.finish(e,q.ExpressionExpected):this.accept(m.CurlyR)?this.finish(e):this.finish(e,q.RightCurlyExpected)}return null}_parseOperator(){if(this.peek(Of)||this.peek(Lf)||this.peek(Mu)||this.peek(Pu)||this.peekDelim(">")||this.peekDelim("<")||this.peekIdent("and")||this.peekIdent("or")||this.peekDelim("%")){let e=this.createNode(A.Operator);return this.consumeToken(),this.finish(e)}return super._parseOperator()}_parseUnaryOperator(){if(this.peekIdent("not")){let e=this.create(fe);return this.consumeToken(),this.finish(e)}return super._parseUnaryOperator()}_parseRuleSetDeclaration(){return this.peek(m.AtKeyword)?this._parseKeyframe()||this._parseImport()||this._parseMedia(!0)||this._parseFontFace()||this._parseWarnAndDebug()||this._parseControlStatement()||this._parseFunctionDeclaration()||this._parseExtends()||this._parseMixinReference()||this._parseMixinContent()||this._parseMixinDeclaration()||this._parseRuleset(!0)||this._parseSupports(!0)||this._parseLayer()||this._parsePropertyAtRule()||super._parseRuleSetDeclarationAtStatement():this._parseVariableDeclaration()||this._tryParseRuleset(!0)||super._parseRuleSetDeclaration()}_parseDeclaration(e){let n=this._tryParseCustomPropertyDeclaration(e);if(n)return n;let r=this.create(At);if(!r.setProperty(this._parseProperty()))return null;if(!this.accept(m.Colon))return this.finish(r,q.ColonExpected,[m.Colon],e||[m.SemiColon]);this.prevToken&&(r.colonPosition=this.prevToken.offset);let i=!1;if(r.setValue(this._parseExpr())&&(i=!0,r.addChild(this._parsePrio())),this.peek(m.CurlyL))r.setNestedProperties(this._parseNestedProperties());else if(!i)return this.finish(r,q.PropertyValueExpected);return this.peek(m.SemiColon)&&(r.semicolonPosition=this.token.offset),this.finish(r)}_parseNestedProperties(){let e=this.create(wa);return this._parseBody(e,this._parseDeclaration.bind(this))}_parseExtends(){if(this.peekKeyword("@extend")){let e=this.create(fr);if(this.consumeToken(),!e.getSelectors().addChild(this._parseSimpleSelector()))return this.finish(e,q.SelectorExpected);for(;this.accept(m.Comma);)e.getSelectors().addChild(this._parseSimpleSelector());return this.accept(m.Exclamation)&&!this.acceptIdent("optional")?this.finish(e,q.UnknownKeyword):this.finish(e)}return null}_parseSimpleSelectorBody(){return this._parseSelectorCombinator()||this._parseSelectorPlaceholder()||super._parseSimpleSelectorBody()}_parseSelectorCombinator(){if(this.peekDelim("&")){let e=this.createNode(A.SelectorCombinator);for(this.consumeToken();!this.hasWhitespace()&&(this.acceptDelim("-")||this.accept(m.Num)||this.accept(m.Dimension)||e.addChild(this._parseIdent())||this.acceptDelim("&")););return this.finish(e)}return null}_parseSelectorPlaceholder(){if(this.peekDelim("%")){let e=this.createNode(A.SelectorPlaceholder);return this.consumeToken(),this._parseIdent(),this.finish(e)}else if(this.peekKeyword("@at-root")){let e=this.createNode(A.SelectorPlaceholder);if(this.consumeToken(),this.accept(m.ParenthesisL)){if(!this.acceptIdent("with")&&!this.acceptIdent("without"))return this.finish(e,q.IdentifierExpected);if(!this.accept(m.Colon))return this.finish(e,q.ColonExpected);if(!e.addChild(this._parseIdent()))return this.finish(e,q.IdentifierExpected);if(!this.accept(m.ParenthesisR))return this.finish(e,q.RightParenthesisExpected,[m.CurlyR])}return this.finish(e)}return null}_parseElementName(){let e=this.mark(),n=super._parseElementName();return n&&!this.hasWhitespace()&&this.peek(m.ParenthesisL)?(this.restoreAtMark(e),null):n}_tryParsePseudoIdentifier(){return this._parseInterpolation()||super._tryParsePseudoIdentifier()}_parseWarnAndDebug(){if(!this.peekKeyword("@debug")&&!this.peekKeyword("@warn")&&!this.peekKeyword("@error"))return null;let e=this.createNode(A.Debug);return this.consumeToken(),e.addChild(this._parseExpr()),this.finish(e)}_parseControlStatement(e=this._parseRuleSetDeclaration.bind(this)){return this.peek(m.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){let n=this.create(Nc);if(this.consumeToken(),!n.setExpression(this._parseExpr(!0)))return this.finish(n,q.ExpressionExpected);if(this._parseBody(n,e),this.acceptKeyword("@else")){if(this.peekIdent("if"))n.setElseClause(this._internalParseIfStatement(e));else if(this.peek(m.CurlyL)){let r=this.create(jc);this._parseBody(r,e),n.setElseClause(r)}}return this.finish(n)}_parseForStatement(e){if(!this.peekKeyword("@for"))return null;let n=this.create(Wc);return this.consumeToken(),n.setVariable(this._parseVariable())?this.acceptIdent("from")?n.addChild(this._parseBinaryExpr())?!this.acceptIdent("to")&&!this.acceptIdent("through")?this.finish(n,zu.ThroughOrToExpected,[m.CurlyR]):n.addChild(this._parseBinaryExpr())?this._parseBody(n,e):this.finish(n,q.ExpressionExpected,[m.CurlyR]):this.finish(n,q.ExpressionExpected,[m.CurlyR]):this.finish(n,zu.FromExpected,[m.CurlyR]):this.finish(n,q.VariableNameExpected,[m.CurlyR])}_parseEachStatement(e){if(!this.peekKeyword("@each"))return null;let n=this.create(qc);this.consumeToken();let r=n.getVariables();if(!r.addChild(this._parseVariable()))return this.finish(n,q.VariableNameExpected,[m.CurlyR]);for(;this.accept(m.Comma);)if(!r.addChild(this._parseVariable()))return this.finish(n,q.VariableNameExpected,[m.CurlyR]);return this.finish(r),this.acceptIdent("in")?n.addChild(this._parseExpr())?this._parseBody(n,e):this.finish(n,q.ExpressionExpected,[m.CurlyR]):this.finish(n,zu.InExpected,[m.CurlyR])}_parseWhileStatement(e){if(!this.peekKeyword("@while"))return null;let n=this.create(Uc);return this.consumeToken(),n.addChild(this._parseBinaryExpr())?this._parseBody(n,e):this.finish(n,q.ExpressionExpected,[m.CurlyR])}_parseFunctionBodyDeclaration(){return this._parseVariableDeclaration()||this._parseReturnStatement()||this._parseWarnAndDebug()||this._parseControlStatement(this._parseFunctionBodyDeclaration.bind(this))}_parseFunctionDeclaration(){if(!this.peekKeyword("@function"))return null;let e=this.create(Ur);if(this.consumeToken(),!e.setIdentifier(this._parseIdent([De.Function])))return this.finish(e,q.IdentifierExpected,[m.CurlyR]);if(!this.accept(m.ParenthesisL))return this.finish(e,q.LeftParenthesisExpected,[m.CurlyR]);if(e.getParameters().addChild(this._parseParameterDeclaration())){for(;this.accept(m.Comma)&&!this.peek(m.ParenthesisR);)if(!e.getParameters().addChild(this._parseParameterDeclaration()))return this.finish(e,q.VariableNameExpected)}return this.accept(m.ParenthesisR)?this._parseBody(e,this._parseFunctionBodyDeclaration.bind(this)):this.finish(e,q.RightParenthesisExpected,[m.CurlyR])}_parseReturnStatement(){if(!this.peekKeyword("@return"))return null;let e=this.createNode(A.ReturnStatement);return this.consumeToken(),e.addChild(this._parseExpr())?this.finish(e):this.finish(e,q.ExpressionExpected)}_parseMixinDeclaration(){if(!this.peekKeyword("@mixin"))return null;let e=this.create(Kn);if(this.consumeToken(),!e.setIdentifier(this._parseIdent([De.Mixin])))return this.finish(e,q.IdentifierExpected,[m.CurlyR]);if(this.accept(m.ParenthesisL)){if(e.getParameters().addChild(this._parseParameterDeclaration())){for(;this.accept(m.Comma)&&!this.peek(m.ParenthesisR);)if(!e.getParameters().addChild(this._parseParameterDeclaration()))return this.finish(e,q.VariableNameExpected)}if(!this.accept(m.ParenthesisR))return this.finish(e,q.RightParenthesisExpected,[m.CurlyR])}return this._parseBody(e,this._parseRuleSetDeclaration.bind(this))}_parseParameterDeclaration(){let e=this.create(pr);return e.setIdentifier(this._parseVariable())?(this.accept(za),this.accept(m.Colon)&&!e.setDefaultValue(this._parseExpr(!0))?this.finish(e,q.VariableValueExpected,[],[m.Comma,m.ParenthesisR]):this.finish(e)):null}_parseMixinContent(){if(!this.peekKeyword("@content"))return null;let e=this.create(ou);if(this.consumeToken(),this.accept(m.ParenthesisL)){if(e.getArguments().addChild(this._parseFunctionArgument())){for(;this.accept(m.Comma)&&!this.peek(m.ParenthesisR);)if(!e.getArguments().addChild(this._parseFunctionArgument()))return this.finish(e,q.ExpressionExpected)}if(!this.accept(m.ParenthesisR))return this.finish(e,q.RightParenthesisExpected)}return this.finish(e)}_parseMixinReference(){if(!this.peekKeyword("@include"))return null;let e=this.create(Hr);this.consumeToken();let n=this._parseIdent([De.Mixin]);if(!e.setIdentifier(n))return this.finish(e,q.IdentifierExpected,[m.CurlyR]);if(!this.hasWhitespace()&&this.acceptDelim(".")&&!this.hasWhitespace()){let r=this._parseIdent([De.Mixin]);if(!r)return this.finish(e,q.IdentifierExpected,[m.CurlyR]);let i=this.create(_a);n.referenceTypes=[De.Module],i.setIdentifier(n),e.setIdentifier(r),e.addChild(i)}if(this.accept(m.ParenthesisL)){if(e.getArguments().addChild(this._parseFunctionArgument())){for(;this.accept(m.Comma)&&!this.peek(m.ParenthesisR);)if(!e.getArguments().addChild(this._parseFunctionArgument()))return this.finish(e,q.ExpressionExpected)}if(!this.accept(m.ParenthesisR))return this.finish(e,q.RightParenthesisExpected)}return(this.peekIdent("using")||this.peek(m.CurlyL))&&e.setContent(this._parseMixinContentDeclaration()),this.finish(e)}_parseMixinContentDeclaration(){let e=this.create(su);if(this.acceptIdent("using")){if(!this.accept(m.ParenthesisL))return this.finish(e,q.LeftParenthesisExpected,[m.CurlyL]);if(e.getParameters().addChild(this._parseParameterDeclaration())){for(;this.accept(m.Comma)&&!this.peek(m.ParenthesisR);)if(!e.getParameters().addChild(this._parseParameterDeclaration()))return this.finish(e,q.VariableNameExpected)}if(!this.accept(m.ParenthesisR))return this.finish(e,q.RightParenthesisExpected,[m.CurlyL])}return this.peek(m.CurlyL)&&this._parseBody(e,this._parseMixinReferenceBodyStatement.bind(this)),this.finish(e)}_parseMixinReferenceBodyStatement(){return this._tryParseKeyframeSelector()||this._parseRuleSetDeclaration()}_parseFunctionArgument(){let e=this.create(dn),n=this.mark(),r=this._parseVariable();if(r)if(this.accept(m.Colon))e.setIdentifier(r);else{if(this.accept(za))return e.setValue(r),this.finish(e);this.restoreAtMark(n)}return e.setValue(this._parseExpr(!0))?(this.accept(za),e.addChild(this._parsePrio()),this.finish(e)):e.setValue(this._tryParsePrio())?this.finish(e):null}_parseURLArgument(){let e=this.mark(),n=super._parseURLArgument();if(!n||!this.peek(m.ParenthesisR)){this.restoreAtMark(e);let r=this.create(fe);return r.addChild(this._parseBinaryExpr()),this.finish(r)}return n}_parseOperation(){if(!this.peek(m.ParenthesisL))return null;let e=this.create(fe);for(this.consumeToken();e.addChild(this._parseListElement());)this.accept(m.Comma);return this.accept(m.ParenthesisR)?this.finish(e):this.finish(e,q.RightParenthesisExpected)}_parseListElement(){let e=this.create(au),n=this._parseBinaryExpr();if(!n)return null;if(this.accept(m.Colon)){if(e.setKey(n),!e.setValue(this._parseBinaryExpr()))return this.finish(e,q.ExpressionExpected)}else e.setValue(n);return this.finish(e)}_parseUse(){if(!this.peekKeyword("@use"))return null;let e=this.create(Bc);if(this.consumeToken(),!e.addChild(this._parseStringLiteral()))return this.finish(e,q.StringLiteralExpected);if(!this.peek(m.SemiColon)&&!this.peek(m.EOF)){if(!this.peekRegExp(m.Ident,/as|with/))return this.finish(e,q.UnknownKeyword);if(this.acceptIdent("as")&&!e.setIdentifier(this._parseIdent([De.Module]))&&!this.acceptDelim("*"))return this.finish(e,q.IdentifierOrWildcardExpected);if(this.acceptIdent("with")){if(!this.accept(m.ParenthesisL))return this.finish(e,q.LeftParenthesisExpected,[m.ParenthesisR]);if(!e.getParameters().addChild(this._parseModuleConfigDeclaration()))return this.finish(e,q.VariableNameExpected);for(;this.accept(m.Comma)&&!this.peek(m.ParenthesisR);)if(!e.getParameters().addChild(this._parseModuleConfigDeclaration()))return this.finish(e,q.VariableNameExpected);if(!this.accept(m.ParenthesisR))return this.finish(e,q.RightParenthesisExpected)}}return!this.accept(m.SemiColon)&&!this.accept(m.EOF)?this.finish(e,q.SemiColonExpected):this.finish(e)}_parseModuleConfigDeclaration(){let e=this.create($c);return e.setIdentifier(this._parseVariable())?!this.accept(m.Colon)||!e.setValue(this._parseExpr(!0))?this.finish(e,q.VariableValueExpected,[],[m.Comma,m.ParenthesisR]):this.accept(m.Exclamation)&&(this.hasWhitespace()||!this.acceptIdent("default"))?this.finish(e,q.UnknownKeyword):this.finish(e):null}_parseForward(){if(!this.peekKeyword("@forward"))return null;let e=this.create(Vc);if(this.consumeToken(),!e.addChild(this._parseStringLiteral()))return this.finish(e,q.StringLiteralExpected);if(this.acceptIdent("as")){let n=this._parseIdent([De.Forward]);if(!e.setIdentifier(n))return this.finish(e,q.IdentifierExpected);if(this.hasWhitespace()||!this.acceptDelim("*"))return this.finish(e,q.WildcardExpected)}if(this.acceptIdent("with")){if(!this.accept(m.ParenthesisL))return this.finish(e,q.LeftParenthesisExpected,[m.ParenthesisR]);if(!e.getParameters().addChild(this._parseModuleConfigDeclaration()))return this.finish(e,q.VariableNameExpected);for(;this.accept(m.Comma)&&!this.peek(m.ParenthesisR);)if(!e.getParameters().addChild(this._parseModuleConfigDeclaration()))return this.finish(e,q.VariableNameExpected);if(!this.accept(m.ParenthesisR))return this.finish(e,q.RightParenthesisExpected)}else if((this.peekIdent("hide")||this.peekIdent("show"))&&!e.addChild(this._parseForwardVisibility()))return this.finish(e,q.IdentifierOrVariableExpected);return!this.accept(m.SemiColon)&&!this.accept(m.EOF)?this.finish(e,q.SemiColonExpected):this.finish(e)}_parseForwardVisibility(){let e=this.create(Kc);for(e.setIdentifier(this._parseIdent());e.addChild(this._parseVariable()||this._parseIdent());)this.accept(m.Comma);return e.getChildren().length>1?e:null}_parseSupportsCondition(){return this._parseInterpolation()||super._parseSupportsCondition()}}});function a0(t){t.forEach(e=>{if(e.documentation&&e.references&&e.references.length>0){let n=typeof e.documentation=="string"?{kind:"markdown",value:e.documentation}:{kind:"markdown",value:e.documentation.value};n.value+=`
|
|
536
536
|
|
|
537
|
-
`,n.value+=e.references.map(r=>`[${r.name}](${r.url})`).join(" | "),e.documentation=n}})}var Jr,_t,l0=ue(()=>{"use strict";xu();Bt();hn();kn();Jr=F("Sass documentation"),_t=class extends Si{constructor(e,n){super("$",e,n),a0(_t.scssModuleLoaders),a0(_t.scssModuleBuiltIns)}isImportPathParent(e){return e===A.Forward||e===A.Use||super.isImportPathParent(e)}getCompletionForImportPath(e,n){let r=e.getParent().type;if(r===A.Forward||r===A.Use)for(let i of _t.scssModuleBuiltIns){let o={label:i.label,documentation:i.documentation,textEdit:E.TextEdit.replace(this.getCompletionRange(e),`'${i.label}'`),kind:E.CompletionItemKind.Module};n.items.push(o)}return super.getCompletionForImportPath(e,n)}createReplaceFunction(){let e=1;return(n,r)=>"\\"+r+": ${"+e+++":"+(_t.variableDefaults[r]||"")+"}"}createFunctionProposals(e,n,r,i){for(let o of e){let s=o.func.replace(/\[?(\$\w+)\]?/g,this.createReplaceFunction()),a={label:o.func.substr(0,o.func.indexOf("(")),detail:o.func,documentation:o.desc,textEdit:E.TextEdit.replace(this.getCompletionRange(n),s),insertTextFormat:E.InsertTextFormat.Snippet,kind:E.CompletionItemKind.Function};r&&(a.sortText="z"),i.items.push(a)}return i}getCompletionsForSelector(e,n,r){return this.createFunctionProposals(_t.selectorFuncs,null,!0,r),super.getCompletionsForSelector(e,n,r)}getTermProposals(e,n,r){let i=_t.builtInFuncs;return e&&(i=i.filter(o=>!o.type||!e.restrictions||e.restrictions.indexOf(o.type)!==-1)),this.createFunctionProposals(i,n,!0,r),super.getTermProposals(e,n,r)}getColorProposals(e,n,r){return this.createFunctionProposals(_t.colorProposals,n,!1,r),super.getColorProposals(e,n,r)}getCompletionsForDeclarationProperty(e,n){return this.getCompletionForAtDirectives(n),this.getCompletionsForSelector(null,!0,n),super.getCompletionsForDeclarationProperty(e,n)}getCompletionsForExtendsReference(e,n,r){let i=this.getSymbolContext().findSymbolsAtOffset(this.offset,De.Rule);for(let o of i){let s={label:o.name,textEdit:E.TextEdit.replace(this.getCompletionRange(n),o.name),kind:E.CompletionItemKind.Function};r.items.push(s)}return r}getCompletionForAtDirectives(e){return e.items.push(..._t.scssAtDirectives),e}getCompletionForTopLevel(e){return this.getCompletionForAtDirectives(e),this.getCompletionForModuleLoaders(e),super.getCompletionForTopLevel(e),e}getCompletionForModuleLoaders(e){return e.items.push(..._t.scssModuleLoaders),e}};_t.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"};_t.colorProposals=[{func:"red($color)",desc:F("Gets the red component of a color.")},{func:"green($color)",desc:F("Gets the green component of a color.")},{func:"blue($color)",desc:F("Gets the blue component of a color.")},{func:"mix($color, $color, [$weight])",desc:F("Mixes two colors together.")},{func:"hue($color)",desc:F("Gets the hue component of a color.")},{func:"saturation($color)",desc:F("Gets the saturation component of a color.")},{func:"lightness($color)",desc:F("Gets the lightness component of a color.")},{func:"adjust-hue($color, $degrees)",desc:F("Changes the hue of a color.")},{func:"lighten($color, $amount)",desc:F("Makes a color lighter.")},{func:"darken($color, $amount)",desc:F("Makes a color darker.")},{func:"saturate($color, $amount)",desc:F("Makes a color more saturated.")},{func:"desaturate($color, $amount)",desc:F("Makes a color less saturated.")},{func:"grayscale($color)",desc:F("Converts a color to grayscale.")},{func:"complement($color)",desc:F("Returns the complement of a color.")},{func:"invert($color)",desc:F("Returns the inverse of a color.")},{func:"alpha($color)",desc:F("Gets the opacity component of a color.")},{func:"opacity($color)",desc:"Gets the alpha component (opacity) of a color."},{func:"rgba($color, $alpha)",desc:F("Changes the alpha component for a color.")},{func:"opacify($color, $amount)",desc:F("Makes a color more opaque.")},{func:"fade-in($color, $amount)",desc:F("Makes a color more opaque.")},{func:"transparentize($color, $amount)",desc:F("Makes a color more transparent.")},{func:"fade-out($color, $amount)",desc:F("Makes a color more transparent.")},{func:"adjust-color($color, [$red], [$green], [$blue], [$hue], [$saturation], [$lightness], [$alpha])",desc:F("Increases or decreases one or more components of a color.")},{func:"scale-color($color, [$red], [$green], [$blue], [$saturation], [$lightness], [$alpha])",desc:F("Fluidly scales one or more properties of a color.")},{func:"change-color($color, [$red], [$green], [$blue], [$hue], [$saturation], [$lightness], [$alpha])",desc:F("Changes one or more properties of a color.")},{func:"ie-hex-str($color)",desc:F("Converts a color into the format understood by IE filters.")}];_t.selectorFuncs=[{func:"selector-nest($selectors\u2026)",desc:F("Nests selector beneath one another like they would be nested in the stylesheet.")},{func:"selector-append($selectors\u2026)",desc:F("Appends selectors to one another without spaces in between.")},{func:"selector-extend($selector, $extendee, $extender)",desc:F("Extends $extendee with $extender within $selector.")},{func:"selector-replace($selector, $original, $replacement)",desc:F("Replaces $original with $replacement within $selector.")},{func:"selector-unify($selector1, $selector2)",desc:F("Unifies two selectors to produce a selector that matches elements matched by both.")},{func:"is-superselector($super, $sub)",desc:F("Returns whether $super matches all the elements $sub does, and possibly more.")},{func:"simple-selectors($selector)",desc:F("Returns the simple selectors that comprise a compound selector.")},{func:"selector-parse($selector)",desc:F("Parses a selector into the format returned by &.")}];_t.builtInFuncs=[{func:"unquote($string)",desc:F("Removes quotes from a string.")},{func:"quote($string)",desc:F("Adds quotes to a string.")},{func:"str-length($string)",desc:F("Returns the number of characters in a string.")},{func:"str-insert($string, $insert, $index)",desc:F("Inserts $insert into $string at $index.")},{func:"str-index($string, $substring)",desc:F("Returns the index of the first occurance of $substring in $string.")},{func:"str-slice($string, $start-at, [$end-at])",desc:F("Extracts a substring from $string.")},{func:"to-upper-case($string)",desc:F("Converts a string to upper case.")},{func:"to-lower-case($string)",desc:F("Converts a string to lower case.")},{func:"percentage($number)",desc:F("Converts a unitless number to a percentage."),type:"percentage"},{func:"round($number)",desc:F("Rounds a number to the nearest whole number.")},{func:"ceil($number)",desc:F("Rounds a number up to the next whole number.")},{func:"floor($number)",desc:F("Rounds a number down to the previous whole number.")},{func:"abs($number)",desc:F("Returns the absolute value of a number.")},{func:"min($numbers)",desc:F("Finds the minimum of several numbers.")},{func:"max($numbers)",desc:F("Finds the maximum of several numbers.")},{func:"random([$limit])",desc:F("Returns a random number.")},{func:"length($list)",desc:F("Returns the length of a list.")},{func:"nth($list, $n)",desc:F("Returns a specific item in a list.")},{func:"set-nth($list, $n, $value)",desc:F("Replaces the nth item in a list.")},{func:"join($list1, $list2, [$separator])",desc:F("Joins together two lists into one.")},{func:"append($list1, $val, [$separator])",desc:F("Appends a single value onto the end of a list.")},{func:"zip($lists)",desc:F("Combines several lists into a single multidimensional list.")},{func:"index($list, $value)",desc:F("Returns the position of a value within a list.")},{func:"list-separator(#list)",desc:F("Returns the separator of a list.")},{func:"map-get($map, $key)",desc:F("Returns the value in a map associated with a given key.")},{func:"map-merge($map1, $map2)",desc:F("Merges two maps together into a new map.")},{func:"map-remove($map, $keys)",desc:F("Returns a new map with keys removed.")},{func:"map-keys($map)",desc:F("Returns a list of all keys in a map.")},{func:"map-values($map)",desc:F("Returns a list of all values in a map.")},{func:"map-has-key($map, $key)",desc:F("Returns whether a map has a value associated with a given key.")},{func:"keywords($args)",desc:F("Returns the keywords passed to a function that takes variable arguments.")},{func:"feature-exists($feature)",desc:F("Returns whether a feature exists in the current Sass runtime.")},{func:"variable-exists($name)",desc:F("Returns whether a variable with the given name exists in the current scope.")},{func:"global-variable-exists($name)",desc:F("Returns whether a variable with the given name exists in the global scope.")},{func:"function-exists($name)",desc:F("Returns whether a function with the given name exists.")},{func:"mixin-exists($name)",desc:F("Returns whether a mixin with the given name exists.")},{func:"inspect($value)",desc:F("Returns the string representation of a value as it would be represented in Sass.")},{func:"type-of($value)",desc:F("Returns the type of a value.")},{func:"unit($number)",desc:F("Returns the unit(s) associated with a number.")},{func:"unitless($number)",desc:F("Returns whether a number has units.")},{func:"comparable($number1, $number2)",desc:F("Returns whether two numbers can be added, subtracted, or compared.")},{func:"call($name, $args\u2026)",desc:F("Dynamically calls a Sass function.")}];_t.scssAtDirectives=[{label:"@extend",documentation:F("Inherits the styles of another selector."),kind:E.CompletionItemKind.Keyword},{label:"@at-root",documentation:F("Causes one or more rules to be emitted at the root of the document."),kind:E.CompletionItemKind.Keyword},{label:"@debug",documentation:F("Prints the value of an expression to the standard error output stream. Useful for debugging complicated Sass files."),kind:E.CompletionItemKind.Keyword},{label:"@warn",documentation:F("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:E.CompletionItemKind.Keyword},{label:"@error",documentation:F("Throws the value of an expression as a fatal error with stack trace. Useful for validating arguments to mixins and functions."),kind:E.CompletionItemKind.Keyword},{label:"@if",documentation:F("Includes the body if the expression does not evaluate to `false` or `null`."),insertText:`@if \${1:expr} {
|
|
537
|
+
`,n.value+=e.references.map(r=>`[${r.name}](${r.url})`).join(" | "),e.documentation=n}})}var Jr,_t,l0=ue(()=>{"use strict";xu();Bt();hn();kn();Jr=F("Sass documentation"),_t=class extends xi{constructor(e,n){super("$",e,n),a0(_t.scssModuleLoaders),a0(_t.scssModuleBuiltIns)}isImportPathParent(e){return e===A.Forward||e===A.Use||super.isImportPathParent(e)}getCompletionForImportPath(e,n){let r=e.getParent().type;if(r===A.Forward||r===A.Use)for(let i of _t.scssModuleBuiltIns){let o={label:i.label,documentation:i.documentation,textEdit:E.TextEdit.replace(this.getCompletionRange(e),`'${i.label}'`),kind:E.CompletionItemKind.Module};n.items.push(o)}return super.getCompletionForImportPath(e,n)}createReplaceFunction(){let e=1;return(n,r)=>"\\"+r+": ${"+e+++":"+(_t.variableDefaults[r]||"")+"}"}createFunctionProposals(e,n,r,i){for(let o of e){let s=o.func.replace(/\[?(\$\w+)\]?/g,this.createReplaceFunction()),a={label:o.func.substr(0,o.func.indexOf("(")),detail:o.func,documentation:o.desc,textEdit:E.TextEdit.replace(this.getCompletionRange(n),s),insertTextFormat:E.InsertTextFormat.Snippet,kind:E.CompletionItemKind.Function};r&&(a.sortText="z"),i.items.push(a)}return i}getCompletionsForSelector(e,n,r){return this.createFunctionProposals(_t.selectorFuncs,null,!0,r),super.getCompletionsForSelector(e,n,r)}getTermProposals(e,n,r){let i=_t.builtInFuncs;return e&&(i=i.filter(o=>!o.type||!e.restrictions||e.restrictions.indexOf(o.type)!==-1)),this.createFunctionProposals(i,n,!0,r),super.getTermProposals(e,n,r)}getColorProposals(e,n,r){return this.createFunctionProposals(_t.colorProposals,n,!1,r),super.getColorProposals(e,n,r)}getCompletionsForDeclarationProperty(e,n){return this.getCompletionForAtDirectives(n),this.getCompletionsForSelector(null,!0,n),super.getCompletionsForDeclarationProperty(e,n)}getCompletionsForExtendsReference(e,n,r){let i=this.getSymbolContext().findSymbolsAtOffset(this.offset,De.Rule);for(let o of i){let s={label:o.name,textEdit:E.TextEdit.replace(this.getCompletionRange(n),o.name),kind:E.CompletionItemKind.Function};r.items.push(s)}return r}getCompletionForAtDirectives(e){return e.items.push(..._t.scssAtDirectives),e}getCompletionForTopLevel(e){return this.getCompletionForAtDirectives(e),this.getCompletionForModuleLoaders(e),super.getCompletionForTopLevel(e),e}getCompletionForModuleLoaders(e){return e.items.push(..._t.scssModuleLoaders),e}};_t.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"};_t.colorProposals=[{func:"red($color)",desc:F("Gets the red component of a color.")},{func:"green($color)",desc:F("Gets the green component of a color.")},{func:"blue($color)",desc:F("Gets the blue component of a color.")},{func:"mix($color, $color, [$weight])",desc:F("Mixes two colors together.")},{func:"hue($color)",desc:F("Gets the hue component of a color.")},{func:"saturation($color)",desc:F("Gets the saturation component of a color.")},{func:"lightness($color)",desc:F("Gets the lightness component of a color.")},{func:"adjust-hue($color, $degrees)",desc:F("Changes the hue of a color.")},{func:"lighten($color, $amount)",desc:F("Makes a color lighter.")},{func:"darken($color, $amount)",desc:F("Makes a color darker.")},{func:"saturate($color, $amount)",desc:F("Makes a color more saturated.")},{func:"desaturate($color, $amount)",desc:F("Makes a color less saturated.")},{func:"grayscale($color)",desc:F("Converts a color to grayscale.")},{func:"complement($color)",desc:F("Returns the complement of a color.")},{func:"invert($color)",desc:F("Returns the inverse of a color.")},{func:"alpha($color)",desc:F("Gets the opacity component of a color.")},{func:"opacity($color)",desc:"Gets the alpha component (opacity) of a color."},{func:"rgba($color, $alpha)",desc:F("Changes the alpha component for a color.")},{func:"opacify($color, $amount)",desc:F("Makes a color more opaque.")},{func:"fade-in($color, $amount)",desc:F("Makes a color more opaque.")},{func:"transparentize($color, $amount)",desc:F("Makes a color more transparent.")},{func:"fade-out($color, $amount)",desc:F("Makes a color more transparent.")},{func:"adjust-color($color, [$red], [$green], [$blue], [$hue], [$saturation], [$lightness], [$alpha])",desc:F("Increases or decreases one or more components of a color.")},{func:"scale-color($color, [$red], [$green], [$blue], [$saturation], [$lightness], [$alpha])",desc:F("Fluidly scales one or more properties of a color.")},{func:"change-color($color, [$red], [$green], [$blue], [$hue], [$saturation], [$lightness], [$alpha])",desc:F("Changes one or more properties of a color.")},{func:"ie-hex-str($color)",desc:F("Converts a color into the format understood by IE filters.")}];_t.selectorFuncs=[{func:"selector-nest($selectors\u2026)",desc:F("Nests selector beneath one another like they would be nested in the stylesheet.")},{func:"selector-append($selectors\u2026)",desc:F("Appends selectors to one another without spaces in between.")},{func:"selector-extend($selector, $extendee, $extender)",desc:F("Extends $extendee with $extender within $selector.")},{func:"selector-replace($selector, $original, $replacement)",desc:F("Replaces $original with $replacement within $selector.")},{func:"selector-unify($selector1, $selector2)",desc:F("Unifies two selectors to produce a selector that matches elements matched by both.")},{func:"is-superselector($super, $sub)",desc:F("Returns whether $super matches all the elements $sub does, and possibly more.")},{func:"simple-selectors($selector)",desc:F("Returns the simple selectors that comprise a compound selector.")},{func:"selector-parse($selector)",desc:F("Parses a selector into the format returned by &.")}];_t.builtInFuncs=[{func:"unquote($string)",desc:F("Removes quotes from a string.")},{func:"quote($string)",desc:F("Adds quotes to a string.")},{func:"str-length($string)",desc:F("Returns the number of characters in a string.")},{func:"str-insert($string, $insert, $index)",desc:F("Inserts $insert into $string at $index.")},{func:"str-index($string, $substring)",desc:F("Returns the index of the first occurance of $substring in $string.")},{func:"str-slice($string, $start-at, [$end-at])",desc:F("Extracts a substring from $string.")},{func:"to-upper-case($string)",desc:F("Converts a string to upper case.")},{func:"to-lower-case($string)",desc:F("Converts a string to lower case.")},{func:"percentage($number)",desc:F("Converts a unitless number to a percentage."),type:"percentage"},{func:"round($number)",desc:F("Rounds a number to the nearest whole number.")},{func:"ceil($number)",desc:F("Rounds a number up to the next whole number.")},{func:"floor($number)",desc:F("Rounds a number down to the previous whole number.")},{func:"abs($number)",desc:F("Returns the absolute value of a number.")},{func:"min($numbers)",desc:F("Finds the minimum of several numbers.")},{func:"max($numbers)",desc:F("Finds the maximum of several numbers.")},{func:"random([$limit])",desc:F("Returns a random number.")},{func:"length($list)",desc:F("Returns the length of a list.")},{func:"nth($list, $n)",desc:F("Returns a specific item in a list.")},{func:"set-nth($list, $n, $value)",desc:F("Replaces the nth item in a list.")},{func:"join($list1, $list2, [$separator])",desc:F("Joins together two lists into one.")},{func:"append($list1, $val, [$separator])",desc:F("Appends a single value onto the end of a list.")},{func:"zip($lists)",desc:F("Combines several lists into a single multidimensional list.")},{func:"index($list, $value)",desc:F("Returns the position of a value within a list.")},{func:"list-separator(#list)",desc:F("Returns the separator of a list.")},{func:"map-get($map, $key)",desc:F("Returns the value in a map associated with a given key.")},{func:"map-merge($map1, $map2)",desc:F("Merges two maps together into a new map.")},{func:"map-remove($map, $keys)",desc:F("Returns a new map with keys removed.")},{func:"map-keys($map)",desc:F("Returns a list of all keys in a map.")},{func:"map-values($map)",desc:F("Returns a list of all values in a map.")},{func:"map-has-key($map, $key)",desc:F("Returns whether a map has a value associated with a given key.")},{func:"keywords($args)",desc:F("Returns the keywords passed to a function that takes variable arguments.")},{func:"feature-exists($feature)",desc:F("Returns whether a feature exists in the current Sass runtime.")},{func:"variable-exists($name)",desc:F("Returns whether a variable with the given name exists in the current scope.")},{func:"global-variable-exists($name)",desc:F("Returns whether a variable with the given name exists in the global scope.")},{func:"function-exists($name)",desc:F("Returns whether a function with the given name exists.")},{func:"mixin-exists($name)",desc:F("Returns whether a mixin with the given name exists.")},{func:"inspect($value)",desc:F("Returns the string representation of a value as it would be represented in Sass.")},{func:"type-of($value)",desc:F("Returns the type of a value.")},{func:"unit($number)",desc:F("Returns the unit(s) associated with a number.")},{func:"unitless($number)",desc:F("Returns whether a number has units.")},{func:"comparable($number1, $number2)",desc:F("Returns whether two numbers can be added, subtracted, or compared.")},{func:"call($name, $args\u2026)",desc:F("Dynamically calls a Sass function.")}];_t.scssAtDirectives=[{label:"@extend",documentation:F("Inherits the styles of another selector."),kind:E.CompletionItemKind.Keyword},{label:"@at-root",documentation:F("Causes one or more rules to be emitted at the root of the document."),kind:E.CompletionItemKind.Keyword},{label:"@debug",documentation:F("Prints the value of an expression to the standard error output stream. Useful for debugging complicated Sass files."),kind:E.CompletionItemKind.Keyword},{label:"@warn",documentation:F("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:E.CompletionItemKind.Keyword},{label:"@error",documentation:F("Throws the value of an expression as a fatal error with stack trace. Useful for validating arguments to mixins and functions."),kind:E.CompletionItemKind.Keyword},{label:"@if",documentation:F("Includes the body if the expression does not evaluate to `false` or `null`."),insertText:`@if \${1:expr} {
|
|
538
538
|
$0
|
|
539
539
|
}`,insertTextFormat:E.InsertTextFormat.Snippet,kind:E.CompletionItemKind.Keyword},{label:"@for",documentation:F("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:E.InsertTextFormat.Snippet,kind:E.CompletionItemKind.Keyword},{label:"@each",documentation:F("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:E.InsertTextFormat.Snippet,kind:E.CompletionItemKind.Keyword},{label:"@while",documentation:F("While loop that takes an expression and repeatedly outputs the nested styles until the statement evaluates to `false`."),insertText:`@while \${1:condition} {
|
|
540
540
|
$0
|
|
541
541
|
}`,insertTextFormat:E.InsertTextFormat.Snippet,kind:E.CompletionItemKind.Keyword},{label:"@mixin",documentation:F("Defines styles that can be re-used throughout the stylesheet with `@include`."),insertText:`@mixin \${1:name} {
|
|
542
542
|
$0
|
|
543
|
-
}`,insertTextFormat:E.InsertTextFormat.Snippet,kind:E.CompletionItemKind.Keyword},{label:"@include",documentation:F("Includes the styles defined by another mixin into the current rule."),kind:E.CompletionItemKind.Keyword},{label:"@function",documentation:F("Defines complex operations that can be re-used throughout stylesheets."),kind:E.CompletionItemKind.Keyword}];_t.scssModuleLoaders=[{label:"@use",documentation:F("Loads mixins, functions, and variables from other Sass stylesheets as 'modules', and combines CSS from multiple stylesheets together."),references:[{name:Jr,url:"https://sass-lang.com/documentation/at-rules/use"}],insertText:"@use $0;",insertTextFormat:E.InsertTextFormat.Snippet,kind:E.CompletionItemKind.Keyword},{label:"@forward",documentation:F("Loads a Sass stylesheet and makes its mixins, functions, and variables available when this stylesheet is loaded with the @use rule."),references:[{name:Jr,url:"https://sass-lang.com/documentation/at-rules/forward"}],insertText:"@forward $0;",insertTextFormat:E.InsertTextFormat.Snippet,kind:E.CompletionItemKind.Keyword}];_t.scssModuleBuiltIns=[{label:"sass:math",documentation:F("Provides functions that operate on numbers."),references:[{name:Jr,url:"https://sass-lang.com/documentation/modules/math"}]},{label:"sass:string",documentation:F("Makes it easy to combine, search, or split apart strings."),references:[{name:Jr,url:"https://sass-lang.com/documentation/modules/string"}]},{label:"sass:color",documentation:F("Generates new colors based on existing ones, making it easy to build color themes."),references:[{name:Jr,url:"https://sass-lang.com/documentation/modules/color"}]},{label:"sass:list",documentation:F("Lets you access and modify values in lists."),references:[{name:Jr,url:"https://sass-lang.com/documentation/modules/list"}]},{label:"sass:map",documentation:F("Makes it possible to look up the value associated with a key in a map, and much more."),references:[{name:Jr,url:"https://sass-lang.com/documentation/modules/map"}]},{label:"sass:selector",documentation:F("Provides access to Sass\u2019s powerful selector engine."),references:[{name:Jr,url:"https://sass-lang.com/documentation/modules/selector"}]},{label:"sass:meta",documentation:F("Exposes the details of Sass\u2019s inner workings."),references:[{name:Jr,url:"https://sass-lang.com/documentation/modules/meta"}]}]});var c0,mz,fz,gz,Wf,qf,bz,Lu,hs,Uf=ue(()=>{"use strict";
|
|
544
|
-
`.charCodeAt(0),fz="\r".charCodeAt(0),gz="\f".charCodeAt(0),Wf="`".charCodeAt(0),qf=".".charCodeAt(0),bz=m.CustomToken,Lu=bz++,hs=class extends _n{scanNext(e){let n=this.escapedJavaScript();return n!==null?this.finishToken(e,n):this.stream.advanceIfChars([qf,qf,qf])?this.finishToken(e,Lu):super.scanNext(e)}comment(){return super.comment()?!0:!this.inURL&&this.stream.advanceIfChars([c0,c0])?(this.stream.advanceWhileChar(e=>{switch(e){case mz:case fz:case gz:return!1;default:return!0}}),!0):!1}escapedJavaScript(){return this.stream.peekChar()===Wf?(this.stream.advance(1),this.stream.advanceWhileChar(n=>n!==Wf),this.stream.advanceIfChar(Wf)?m.EscapedJavaScript:m.BadEscapedJavaScript):null}}});var Nu,u0=ue(()=>{"use strict";Uf();mi();gu();Bt();du();Nu=class extends _i{constructor(){super(new hs)}_parseStylesheetStatement(e=!1){return this.peek(m.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;let e=this.create(gi);if(this.consumeToken(),this.accept(m.ParenthesisL)){if(!this.accept(m.Ident))return this.finish(e,q.IdentifierExpected,[m.SemiColon]);do if(!this.accept(m.Comma))break;while(this.accept(m.Ident));if(!this.accept(m.ParenthesisR))return this.finish(e,q.RightParenthesisExpected,[m.SemiColon])}return!e.addChild(this._parseURILiteral())&&!e.addChild(this._parseStringLiteral())?this.finish(e,q.URIOrStringExpected,[m.SemiColon]):(!this.peek(m.SemiColon)&&!this.peek(m.EOF)&&e.setMedialist(this._parseMediaQueryList()),this.finish(e))}_parsePlugin(){if(!this.peekKeyword("@plugin"))return null;let e=this.createNode(A.Plugin);return this.consumeToken(),e.addChild(this._parseStringLiteral())?this.accept(m.SemiColon)?this.finish(e):this.finish(e,q.SemiColonExpected):this.finish(e,q.StringLiteralExpected)}_parseMediaQuery(){let e=super._parseMediaQuery();if(!e){let n=this.create(Qo);return n.addChild(this._parseVariable())?this.finish(n):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=[]){let n=this.create(mr),r=this.mark();if(!n.setVariable(this._parseVariable(!0)))return null;if(this.accept(m.Colon)){if(this.prevToken&&(n.colonPosition=this.prevToken.offset),n.setValue(this._parseDetachedRuleSet()))n.needsSemicolon=!1;else if(!n.setValue(this._parseExpr()))return this.finish(n,q.VariableValueExpected,[],e);n.addChild(this._parsePrio())}else return this.restoreAtMark(r),null;return this.peek(m.SemiColon)&&(n.semicolonPosition=this.token.offset),this.finish(n)}_parseDetachedRuleSet(){let e=this.mark();if(this.peekDelim("#")||this.peekDelim("."))if(this.consumeToken(),!this.hasWhitespace()&&this.accept(m.ParenthesisL)){let r=this.create(Kn);if(r.getParameters().addChild(this._parseMixinParameter()))for(;(this.accept(m.Comma)||this.accept(m.SemiColon))&&!this.peek(m.ParenthesisR);)r.getParameters().addChild(this._parseMixinParameter())||this.markError(r,q.IdentifierExpected,[],[m.ParenthesisR]);if(!this.accept(m.ParenthesisR))return this.restoreAtMark(e),null}else return this.restoreAtMark(e),null;if(!this.peek(m.CurlyL))return null;let n=this.create(Ve);return this._parseBody(n,this._parseDetachedRuleSetBody.bind(this)),this.finish(n)}_parseDetachedRuleSetBody(){return this._tryParseKeyframeSelector()||this._parseRuleSetDeclaration()}_addLookupChildren(e){if(!e.addChild(this._parseLookupValue()))return!1;let n=!1;for(;this.peek(m.BracketL)&&(n=!0),!!e.addChild(this._parseLookupValue());)n=!1;return!n}_parseLookupValue(){let e=this.create(fe),n=this.mark();return this.accept(m.BracketL)?(e.addChild(this._parseVariable(!1,!0))||e.addChild(this._parsePropertyIdentifier()))&&this.accept(m.BracketR)||this.accept(m.BracketR)?e:(this.restoreAtMark(n),null):(this.restoreAtMark(n),null)}_parseVariable(e=!1,n=!1){let r=!e&&this.peekDelim("$");if(!this.peekDelim("@")&&!r&&!this.peek(m.AtKeyword))return null;let i=this.create(vi),o=this.mark();for(;this.acceptDelim("@")||!e&&this.acceptDelim("$");)if(this.hasWhitespace())return this.restoreAtMark(o),null;return!this.accept(m.AtKeyword)&&!this.accept(m.Ident)?(this.restoreAtMark(o),null):!n&&this.peek(m.BracketL)&&!this._addLookupChildren(i)?(this.restoreAtMark(o),null):i}_parseTermExpression(){return this._parseVariable()||this._parseEscaped()||super._parseTermExpression()||this._tryParseMixinReference(!1)}_parseEscaped(){if(this.peek(m.EscapedJavaScript)||this.peek(m.BadEscapedJavaScript)){let e=this.createNode(A.EscapedValue);return this.consumeToken(),this.finish(e)}if(this.peekDelim("~")){let e=this.createNode(A.EscapedValue);return this.consumeToken(),this.accept(m.String)||this.accept(m.EscapedJavaScript)?this.finish(e):this.finish(e,q.TermExpected)}return null}_parseOperator(){let e=this._parseGuardOperator();return e||super._parseOperator()}_parseGuardOperator(){if(this.peekDelim(">")){let e=this.createNode(A.Operator);return this.consumeToken(),this.acceptDelim("="),e}else if(this.peekDelim("=")){let e=this.createNode(A.Operator);return this.consumeToken(),this.acceptDelim("<"),e}else if(this.peekDelim("<")){let e=this.createNode(A.Operator);return this.consumeToken(),this.acceptDelim("="),e}return null}_parseRuleSetDeclaration(){return this.peek(m.AtKeyword)?this._parseKeyframe()||this._parseMedia(!0)||this._parseImport()||this._parseSupports(!0)||this._parseLayer()||this._parsePropertyAtRule()||this._parseDetachedRuleSetMixin()||this._parseVariableDeclaration()||super._parseRuleSetDeclarationAtStatement():this._tryParseMixinDeclaration()||this._tryParseRuleset(!0)||this._tryParseMixinReference()||this._parseFunction()||this._parseExtend()||super._parseRuleSetDeclaration()}_parseKeyframeIdent(){return this._parseIdent([De.Keyframe])||this._parseVariable()}_parseKeyframeSelector(){return this._parseDetachedRuleSetMixin()||super._parseKeyframeSelector()}_parseSimpleSelectorBody(){return this._parseSelectorCombinator()||super._parseSimpleSelectorBody()}_parseSelector(e){let n=this.create(Sn),r=!1;for(e&&(r=n.addChild(this._parseCombinator()));n.addChild(this._parseSimpleSelector());){r=!0;let i=this.mark();if(n.addChild(this._parseGuard())&&this.peek(m.CurlyL))break;this.restoreAtMark(i),n.addChild(this._parseCombinator())}return r?this.finish(n):null}_parseSelectorCombinator(){if(this.peekDelim("&")){let e=this.createNode(A.SelectorCombinator);for(this.consumeToken();!this.hasWhitespace()&&(this.acceptDelim("-")||this.accept(m.Num)||this.accept(m.Dimension)||e.addChild(this._parseIdent())||this.acceptDelim("&")););return this.finish(e)}return null}_parseSelectorIdent(){if(!this.peekInterpolatedIdent())return null;let e=this.createNode(A.SelectorInterpolation);return this._acceptInterpolatedIdent(e)?this.finish(e):null}_parsePropertyIdentifier(e=!1){let n=/^[\w-]+/;if(!this.peekInterpolatedIdent()&&!this.peekRegExp(this.token.type,n))return null;let r=this.mark(),i=this.create(Ft);i.isCustomProperty=this.acceptDelim("-")&&this.acceptDelim("-");let o=!1;return e?i.isCustomProperty?o=i.addChild(this._parseIdent()):o=i.addChild(this._parseRegexp(n)):i.isCustomProperty?o=this._acceptInterpolatedIdent(i):o=this._acceptInterpolatedIdent(i,n),o?(!e&&!this.hasWhitespace()&&(this.acceptDelim("+"),this.hasWhitespace()||this.acceptIdent("_")),this.finish(i)):(this.restoreAtMark(r),null)}peekInterpolatedIdent(){return this.peek(m.Ident)||this.peekDelim("@")||this.peekDelim("$")||this.peekDelim("-")}_acceptInterpolatedIdent(e,n){let r=!1,i=()=>{let s=this.mark();return this.acceptDelim("-")&&(this.hasWhitespace()||this.acceptDelim("-"),this.hasWhitespace())?(this.restoreAtMark(s),null):this._parseInterpolation()},o=n?()=>this.acceptRegexp(n):()=>this.accept(m.Ident);for(;(o()||e.addChild(this._parseInterpolation()||this.try(i)))&&(r=!0,!this.hasWhitespace()););return r}_parseInterpolation(){let e=this.mark();if(this.peekDelim("@")||this.peekDelim("$")){let n=this.createNode(A.Interpolation);return this.consumeToken(),this.hasWhitespace()||!this.accept(m.CurlyL)?(this.restoreAtMark(e),null):n.addChild(this._parseIdent())?this.accept(m.CurlyR)?this.finish(n):this.finish(n,q.RightCurlyExpected):this.finish(n,q.IdentifierExpected)}return null}_tryParseMixinDeclaration(){let e=this.mark(),n=this.create(Kn);if(!n.setIdentifier(this._parseMixinDeclarationIdentifier())||!this.accept(m.ParenthesisL))return this.restoreAtMark(e),null;if(n.getParameters().addChild(this._parseMixinParameter()))for(;(this.accept(m.Comma)||this.accept(m.SemiColon))&&!this.peek(m.ParenthesisR);)n.getParameters().addChild(this._parseMixinParameter())||this.markError(n,q.IdentifierExpected,[],[m.ParenthesisR]);return this.accept(m.ParenthesisR)?(n.setGuard(this._parseGuard()),this.peek(m.CurlyL)?this._parseBody(n,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(Ft),this.consumeToken(),this.hasWhitespace()||!e.addChild(this._parseIdent()))return null}else if(this.peek(m.Hash))e=this.create(Ft),this.consumeToken();else return null;return e.referenceTypes=[De.Mixin],this.finish(e)}_parsePseudo(){if(!this.peek(m.Colon))return null;let e=this.mark(),n=this.create(fr);return this.consumeToken(),this.acceptIdent("extend")?this._completeExtends(n):(this.restoreAtMark(e),super._parsePseudo())}_parseExtend(){if(!this.peekDelim("&"))return null;let e=this.mark(),n=this.create(fr);return this.consumeToken(),this.hasWhitespace()||!this.accept(m.Colon)||!this.acceptIdent("extend")?(this.restoreAtMark(e),null):this._completeExtends(n)}_completeExtends(e){if(!this.accept(m.ParenthesisL))return this.finish(e,q.LeftParenthesisExpected);let n=e.getSelectors();if(!n.addChild(this._parseSelector(!0)))return this.finish(e,q.SelectorExpected);for(;this.accept(m.Comma);)if(!n.addChild(this._parseSelector(!0)))return this.finish(e,q.SelectorExpected);return this.accept(m.ParenthesisR)?this.finish(e):this.finish(e,q.RightParenthesisExpected)}_parseDetachedRuleSetMixin(){if(!this.peek(m.AtKeyword))return null;let e=this.mark(),n=this.create(Hr);return n.addChild(this._parseVariable(!0))&&(this.hasWhitespace()||!this.accept(m.ParenthesisL))?(this.restoreAtMark(e),null):this.accept(m.ParenthesisR)?this.finish(n):this.finish(n,q.RightParenthesisExpected)}_tryParseMixinReference(e=!0){let n=this.mark(),r=this.create(Hr),i=this._parseMixinDeclarationIdentifier();for(;i;){this.acceptDelim(">");let s=this._parseMixinDeclarationIdentifier();if(s)r.getNamespaces().addChild(i),i=s;else break}if(!r.setIdentifier(i))return this.restoreAtMark(n),null;let o=!1;if(this.accept(m.ParenthesisL)){if(o=!0,r.getArguments().addChild(this._parseMixinArgument())){for(;(this.accept(m.Comma)||this.accept(m.SemiColon))&&!this.peek(m.ParenthesisR);)if(!r.getArguments().addChild(this._parseMixinArgument()))return this.finish(r,q.ExpressionExpected)}if(!this.accept(m.ParenthesisR))return this.finish(r,q.RightParenthesisExpected);i.referenceTypes=[De.Mixin]}else i.referenceTypes=[De.Mixin,De.Rule];return this.peek(m.BracketL)?e||this._addLookupChildren(r):r.addChild(this._parsePrio()),!o&&!this.peek(m.SemiColon)&&!this.peek(m.CurlyR)&&!this.peek(m.EOF)?(this.restoreAtMark(n),null):this.finish(r)}_parseMixinArgument(){let e=this.create(dn),n=this.mark(),r=this._parseVariable();return r&&(this.accept(m.Colon)?e.setIdentifier(r):this.restoreAtMark(n)),e.setValue(this._parseDetachedRuleSet()||this._parseExpr(!0))?this.finish(e):(this.restoreAtMark(n),null)}_parseMixinParameter(){let e=this.create(pr);if(this.peekKeyword("@rest")){let r=this.create(fe);return this.consumeToken(),this.accept(Lu)?(e.setIdentifier(this.finish(r)),this.finish(e)):this.finish(e,q.DotExpected,[],[m.Comma,m.ParenthesisR])}if(this.peek(Lu)){let r=this.create(fe);return this.consumeToken(),e.setIdentifier(this.finish(r)),this.finish(e)}let n=!1;return e.setIdentifier(this._parseVariable())&&(this.accept(m.Colon),n=!0),!e.setDefaultValue(this._parseDetachedRuleSet()||this._parseExpr(!0))&&!n?null:this.finish(e)}_parseGuard(){if(!this.peekIdent("when"))return null;let e=this.create(lu);if(this.consumeToken(),e.isNegated=this.acceptIdent("not"),!e.getConditions().addChild(this._parseGuardCondition()))return this.finish(e,q.ConditionExpected);for(;this.acceptIdent("and")||this.accept(m.Comma);)if(!e.getConditions().addChild(this._parseGuardCondition()))return this.finish(e,q.ConditionExpected);return this.finish(e)}_parseGuardCondition(){if(!this.peek(m.ParenthesisL))return null;let e=this.create(cu);return this.consumeToken(),e.addChild(this._parseExpr()),this.accept(m.ParenthesisR)?this.finish(e):this.finish(e,q.RightParenthesisExpected)}_parseFunction(){let e=this.mark(),n=this.create(Vn);if(!n.setIdentifier(this._parseFunctionIdentifier()))return null;if(this.hasWhitespace()||!this.accept(m.ParenthesisL))return this.restoreAtMark(e),null;if(n.getArguments().addChild(this._parseMixinArgument())){for(;(this.accept(m.Comma)||this.accept(m.SemiColon))&&!this.peek(m.ParenthesisR);)if(!n.getArguments().addChild(this._parseMixinArgument()))return this.finish(n,q.ExpressionExpected)}return this.accept(m.ParenthesisR)?this.finish(n):this.finish(n,q.RightParenthesisExpected)}_parseFunctionIdentifier(){if(this.peekDelim("%")){let e=this.create(Ft);return e.referenceTypes=[De.Function],this.consumeToken(),this.finish(e)}return super._parseFunctionIdentifier()}_parseURLArgument(){let e=this.mark(),n=super._parseURLArgument();if(!n||!this.peek(m.ParenthesisR)){this.restoreAtMark(e);let r=this.create(fe);return r.addChild(this._parseBinaryExpr()),this.finish(r)}return n}}});var Xr,d0=ue(()=>{"use strict";xu();hn();kn();Xr=class extends Si{constructor(e,n){super("@",e,n)}createFunctionProposals(e,n,r,i){for(let o of e){let s={label:o.name,detail:o.example,documentation:o.description,textEdit:E.TextEdit.replace(this.getCompletionRange(n),o.name+"($0)"),insertTextFormat:E.InsertTextFormat.Snippet,kind:E.CompletionItemKind.Function};r&&(s.sortText="z"),i.items.push(s)}return i}getTermProposals(e,n,r){let i=Xr.builtInProposals;return e&&(i=i.filter(o=>!o.type||!e.restrictions||e.restrictions.indexOf(o.type)!==-1)),this.createFunctionProposals(i,n,!0,r),super.getTermProposals(e,n,r)}getColorProposals(e,n,r){return this.createFunctionProposals(Xr.colorProposals,n,!1,r),super.getColorProposals(e,n,r)}getCompletionsForDeclarationProperty(e,n){return this.getCompletionsForSelector(null,!0,n),super.getCompletionsForDeclarationProperty(e,n)}};Xr.builtInProposals=[{name:"if",example:"if(condition, trueValue [, falseValue]);",description:F("returns one of two values depending on a condition.")},{name:"boolean",example:"boolean(condition);",description:F('"store" a boolean test for later evaluation in a guard or if().')},{name:"length",example:"length(@list);",description:F("returns the number of elements in a value list")},{name:"extract",example:"extract(@list, index);",description:F("returns a value at the specified position in the list")},{name:"range",example:"range([start, ] end [, step]);",description:F("generate a list spanning a range of values")},{name:"each",example:"each(@list, ruleset);",description:F("bind the evaluation of a ruleset to each member of a list.")},{name:"escape",example:"escape(@string);",description:F("URL encodes a string")},{name:"e",example:"e(@string);",description:F("escape string content")},{name:"replace",example:"replace(@string, @pattern, @replacement[, @flags]);",description:F("string replace")},{name:"unit",example:"unit(@dimension, [@unit: '']);",description:F("remove or change the unit of a dimension")},{name:"color",example:"color(@string);",description:F("parses a string to a color"),type:"color"},{name:"convert",example:"convert(@value, unit);",description:F("converts numbers from one type into another")},{name:"data-uri",example:"data-uri([mimetype,] url);",description:F("inlines a resource and falls back to `url()`"),type:"url"},{name:"abs",description:F("absolute value of a number"),example:"abs(number);"},{name:"acos",description:F("arccosine - inverse of cosine function"),example:"acos(number);"},{name:"asin",description:F("arcsine - inverse of sine function"),example:"asin(number);"},{name:"ceil",example:"ceil(@number);",description:F("rounds up to an integer")},{name:"cos",description:F("cosine function"),example:"cos(number);"},{name:"floor",description:F("rounds down to an integer"),example:"floor(@number);"},{name:"percentage",description:F("converts to a %, e.g. 0.5 > 50%"),example:"percentage(@number);",type:"percentage"},{name:"round",description:F("rounds a number to a number of places"),example:"round(number, [places: 0]);"},{name:"sqrt",description:F("calculates square root of a number"),example:"sqrt(number);"},{name:"sin",description:F("sine function"),example:"sin(number);"},{name:"tan",description:F("tangent function"),example:"tan(number);"},{name:"atan",description:F("arctangent - inverse of tangent function"),example:"atan(number);"},{name:"pi",description:F("returns pi"),example:"pi();"},{name:"pow",description:F("first argument raised to the power of the second argument"),example:"pow(@base, @exponent);"},{name:"mod",description:F("first argument modulus second argument"),example:"mod(number, number);"},{name:"min",description:F("returns the lowest of one or more values"),example:"min(@x, @y);"},{name:"max",description:F("returns the lowest of one or more values"),example:"max(@x, @y);"}];Xr.colorProposals=[{name:"argb",example:"argb(@color);",description:F("creates a #AARRGGBB")},{name:"hsl",example:"hsl(@hue, @saturation, @lightness);",description:F("creates a color")},{name:"hsla",example:"hsla(@hue, @saturation, @lightness, @alpha);",description:F("creates a color")},{name:"hsv",example:"hsv(@hue, @saturation, @value);",description:F("creates a color")},{name:"hsva",example:"hsva(@hue, @saturation, @value, @alpha);",description:F("creates a color")},{name:"hue",example:"hue(@color);",description:F("returns the `hue` channel of `@color` in the HSL space")},{name:"saturation",example:"saturation(@color);",description:F("returns the `saturation` channel of `@color` in the HSL space")},{name:"lightness",example:"lightness(@color);",description:F("returns the `lightness` channel of `@color` in the HSL space")},{name:"hsvhue",example:"hsvhue(@color);",description:F("returns the `hue` channel of `@color` in the HSV space")},{name:"hsvsaturation",example:"hsvsaturation(@color);",description:F("returns the `saturation` channel of `@color` in the HSV space")},{name:"hsvvalue",example:"hsvvalue(@color);",description:F("returns the `value` channel of `@color` in the HSV space")},{name:"red",example:"red(@color);",description:F("returns the `red` channel of `@color`")},{name:"green",example:"green(@color);",description:F("returns the `green` channel of `@color`")},{name:"blue",example:"blue(@color);",description:F("returns the `blue` channel of `@color`")},{name:"alpha",example:"alpha(@color);",description:F("returns the `alpha` channel of `@color`")},{name:"luma",example:"luma(@color);",description:F("returns the `luma` value (perceptual brightness) of `@color`")},{name:"saturate",example:"saturate(@color, 10%);",description:F("return `@color` 10% points more saturated")},{name:"desaturate",example:"desaturate(@color, 10%);",description:F("return `@color` 10% points less saturated")},{name:"lighten",example:"lighten(@color, 10%);",description:F("return `@color` 10% points lighter")},{name:"darken",example:"darken(@color, 10%);",description:F("return `@color` 10% points darker")},{name:"fadein",example:"fadein(@color, 10%);",description:F("return `@color` 10% points less transparent")},{name:"fadeout",example:"fadeout(@color, 10%);",description:F("return `@color` 10% points more transparent")},{name:"fade",example:"fade(@color, 50%);",description:F("return `@color` with 50% transparency")},{name:"spin",example:"spin(@color, 10);",description:F("return `@color` with a 10 degree larger in hue")},{name:"mix",example:"mix(@color1, @color2, [@weight: 50%]);",description:F("return a mix of `@color1` and `@color2`")},{name:"greyscale",example:"greyscale(@color);",description:F("returns a grey, 100% desaturated color")},{name:"contrast",example:"contrast(@color1, [@darkcolor: black], [@lightcolor: white], [@threshold: 43%]);",description:F("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 p0(t,e){let n=wz(t);return yz(n,e)}function wz(t){function e(u){return t.positionAt(u.offset).line}function n(u){return t.positionAt(u.offset+u.len).line}function r(){switch(t.languageId){case"scss":return new us;case"less":return new hs;default:return new _n}}function i(u,d){let h=e(u),p=n(u);return h!==p?{startLine:h,endLine:p,kind:d}:null}let o=[],s=[],l=r();l.ignoreComment=!1,l.setSource(t.getText());let a=l.scan(),c=null;for(;a.type!==m.EOF;){switch(a.type){case m.CurlyL:case ds:{s.push({line:e(a),type:"brace",isStart:!0});break}case m.CurlyR:{if(s.length!==0){let u=h0(s,"brace");if(!u)break;let d=n(a);u.type==="brace"&&(c&&n(c)!==d&&d--,u.line!==d&&o.push({startLine:u.line,endLine:d,kind:void 0}))}break}case m.Comment:{let u=p=>p==="#region"?{line:e(a),type:"comment",isStart:!0}:{line:n(a),type:"comment",isStart:!1},h=(p=>{let w=p.text.match(/^\s*\/\*\s*(#region|#endregion)\b\s*(.*?)\s*\*\//);if(w)return u(w[1]);if(t.languageId==="scss"||t.languageId==="less"){let v=p.text.match(/^\s*\/\/\s*(#region|#endregion)\b\s*(.*?)\s*/);if(v)return u(v[1])}return null})(a);if(h)if(h.isStart)s.push(h);else{let p=h0(s,"comment");if(!p)break;p.type==="comment"&&p.line!==h.line&&o.push({startLine:p.line,endLine:h.line,kind:"region"})}else{let p=i(a,"comment");p&&o.push(p)}break}}c=a,a=l.scan()}return o}function h0(t,e){if(t.length===0)return null;for(let n=t.length-1;n>=0;n--)if(t[n].type===e&&t[n].isStart)return t.splice(n,1)[0];return null}function yz(t,e){let n=e&&e.rangeLimit||Number.MAX_VALUE,r=t.sort((s,l)=>{let a=s.startLine-l.startLine;return a===0&&(a=s.endLine-l.endLine),a}),i=[],o=-1;return r.forEach(s=>{s.startLine<o&&o<s.endLine||(i.push(s),o=s.endLine)}),i.length<n?i:i.slice(0,n)}var m0=ue(()=>{"use strict";mi();Nf();Uf()});var f0,g0,b0=ue(()=>{(function(){"use strict";var t=[,,function(i){function o(a){this.__parent=a,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=[]}o.prototype.clone_empty=function(){var a=new o(this.__parent);return a.set_indent(this.__indent_count,this.__alignment_count),a},o.prototype.item=function(a){return a<0?this.__items[this.__items.length+a]:this.__items[a]},o.prototype.has_match=function(a){for(var c=this.__items.length-1;c>=0;c--)if(this.__items[c].match(a))return!0;return!1},o.prototype.set_indent=function(a,c){this.is_empty()&&(this.__indent_count=a||0,this.__alignment_count=c||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},o.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)},o.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},o.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var a=this.__parent.current_line;return a.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),a.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),a.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count,a.__items[0]===" "&&(a.__items.splice(0,1),a.__character_count-=1),!0}return!1},o.prototype.is_empty=function(){return this.__items.length===0},o.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},o.prototype.push=function(a){this.__items.push(a);var c=a.lastIndexOf(`
|
|
543
|
+
}`,insertTextFormat:E.InsertTextFormat.Snippet,kind:E.CompletionItemKind.Keyword},{label:"@include",documentation:F("Includes the styles defined by another mixin into the current rule."),kind:E.CompletionItemKind.Keyword},{label:"@function",documentation:F("Defines complex operations that can be re-used throughout stylesheets."),kind:E.CompletionItemKind.Keyword}];_t.scssModuleLoaders=[{label:"@use",documentation:F("Loads mixins, functions, and variables from other Sass stylesheets as 'modules', and combines CSS from multiple stylesheets together."),references:[{name:Jr,url:"https://sass-lang.com/documentation/at-rules/use"}],insertText:"@use $0;",insertTextFormat:E.InsertTextFormat.Snippet,kind:E.CompletionItemKind.Keyword},{label:"@forward",documentation:F("Loads a Sass stylesheet and makes its mixins, functions, and variables available when this stylesheet is loaded with the @use rule."),references:[{name:Jr,url:"https://sass-lang.com/documentation/at-rules/forward"}],insertText:"@forward $0;",insertTextFormat:E.InsertTextFormat.Snippet,kind:E.CompletionItemKind.Keyword}];_t.scssModuleBuiltIns=[{label:"sass:math",documentation:F("Provides functions that operate on numbers."),references:[{name:Jr,url:"https://sass-lang.com/documentation/modules/math"}]},{label:"sass:string",documentation:F("Makes it easy to combine, search, or split apart strings."),references:[{name:Jr,url:"https://sass-lang.com/documentation/modules/string"}]},{label:"sass:color",documentation:F("Generates new colors based on existing ones, making it easy to build color themes."),references:[{name:Jr,url:"https://sass-lang.com/documentation/modules/color"}]},{label:"sass:list",documentation:F("Lets you access and modify values in lists."),references:[{name:Jr,url:"https://sass-lang.com/documentation/modules/list"}]},{label:"sass:map",documentation:F("Makes it possible to look up the value associated with a key in a map, and much more."),references:[{name:Jr,url:"https://sass-lang.com/documentation/modules/map"}]},{label:"sass:selector",documentation:F("Provides access to Sass\u2019s powerful selector engine."),references:[{name:Jr,url:"https://sass-lang.com/documentation/modules/selector"}]},{label:"sass:meta",documentation:F("Exposes the details of Sass\u2019s inner workings."),references:[{name:Jr,url:"https://sass-lang.com/documentation/modules/meta"}]}]});var c0,mz,fz,gz,Wf,qf,bz,Lu,hs,Uf=ue(()=>{"use strict";fi();c0="/".charCodeAt(0),mz=`
|
|
544
|
+
`.charCodeAt(0),fz="\r".charCodeAt(0),gz="\f".charCodeAt(0),Wf="`".charCodeAt(0),qf=".".charCodeAt(0),bz=m.CustomToken,Lu=bz++,hs=class extends _n{scanNext(e){let n=this.escapedJavaScript();return n!==null?this.finishToken(e,n):this.stream.advanceIfChars([qf,qf,qf])?this.finishToken(e,Lu):super.scanNext(e)}comment(){return super.comment()?!0:!this.inURL&&this.stream.advanceIfChars([c0,c0])?(this.stream.advanceWhileChar(e=>{switch(e){case mz:case fz:case gz:return!1;default:return!0}}),!0):!1}escapedJavaScript(){return this.stream.peekChar()===Wf?(this.stream.advance(1),this.stream.advanceWhileChar(n=>n!==Wf),this.stream.advanceIfChar(Wf)?m.EscapedJavaScript:m.BadEscapedJavaScript):null}}});var Nu,u0=ue(()=>{"use strict";Uf();fi();gu();Bt();du();Nu=class extends Si{constructor(){super(new hs)}_parseStylesheetStatement(e=!1){return this.peek(m.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;let e=this.create(bi);if(this.consumeToken(),this.accept(m.ParenthesisL)){if(!this.accept(m.Ident))return this.finish(e,q.IdentifierExpected,[m.SemiColon]);do if(!this.accept(m.Comma))break;while(this.accept(m.Ident));if(!this.accept(m.ParenthesisR))return this.finish(e,q.RightParenthesisExpected,[m.SemiColon])}return!e.addChild(this._parseURILiteral())&&!e.addChild(this._parseStringLiteral())?this.finish(e,q.URIOrStringExpected,[m.SemiColon]):(!this.peek(m.SemiColon)&&!this.peek(m.EOF)&&e.setMedialist(this._parseMediaQueryList()),this.finish(e))}_parsePlugin(){if(!this.peekKeyword("@plugin"))return null;let e=this.createNode(A.Plugin);return this.consumeToken(),e.addChild(this._parseStringLiteral())?this.accept(m.SemiColon)?this.finish(e):this.finish(e,q.SemiColonExpected):this.finish(e,q.StringLiteralExpected)}_parseMediaQuery(){let e=super._parseMediaQuery();if(!e){let n=this.create(Qo);return n.addChild(this._parseVariable())?this.finish(n):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=[]){let n=this.create(mr),r=this.mark();if(!n.setVariable(this._parseVariable(!0)))return null;if(this.accept(m.Colon)){if(this.prevToken&&(n.colonPosition=this.prevToken.offset),n.setValue(this._parseDetachedRuleSet()))n.needsSemicolon=!1;else if(!n.setValue(this._parseExpr()))return this.finish(n,q.VariableValueExpected,[],e);n.addChild(this._parsePrio())}else return this.restoreAtMark(r),null;return this.peek(m.SemiColon)&&(n.semicolonPosition=this.token.offset),this.finish(n)}_parseDetachedRuleSet(){let e=this.mark();if(this.peekDelim("#")||this.peekDelim("."))if(this.consumeToken(),!this.hasWhitespace()&&this.accept(m.ParenthesisL)){let r=this.create(Kn);if(r.getParameters().addChild(this._parseMixinParameter()))for(;(this.accept(m.Comma)||this.accept(m.SemiColon))&&!this.peek(m.ParenthesisR);)r.getParameters().addChild(this._parseMixinParameter())||this.markError(r,q.IdentifierExpected,[],[m.ParenthesisR]);if(!this.accept(m.ParenthesisR))return this.restoreAtMark(e),null}else return this.restoreAtMark(e),null;if(!this.peek(m.CurlyL))return null;let n=this.create(Ve);return this._parseBody(n,this._parseDetachedRuleSetBody.bind(this)),this.finish(n)}_parseDetachedRuleSetBody(){return this._tryParseKeyframeSelector()||this._parseRuleSetDeclaration()}_addLookupChildren(e){if(!e.addChild(this._parseLookupValue()))return!1;let n=!1;for(;this.peek(m.BracketL)&&(n=!0),!!e.addChild(this._parseLookupValue());)n=!1;return!n}_parseLookupValue(){let e=this.create(fe),n=this.mark();return this.accept(m.BracketL)?(e.addChild(this._parseVariable(!1,!0))||e.addChild(this._parsePropertyIdentifier()))&&this.accept(m.BracketR)||this.accept(m.BracketR)?e:(this.restoreAtMark(n),null):(this.restoreAtMark(n),null)}_parseVariable(e=!1,n=!1){let r=!e&&this.peekDelim("$");if(!this.peekDelim("@")&&!r&&!this.peek(m.AtKeyword))return null;let i=this.create(wi),o=this.mark();for(;this.acceptDelim("@")||!e&&this.acceptDelim("$");)if(this.hasWhitespace())return this.restoreAtMark(o),null;return!this.accept(m.AtKeyword)&&!this.accept(m.Ident)?(this.restoreAtMark(o),null):!n&&this.peek(m.BracketL)&&!this._addLookupChildren(i)?(this.restoreAtMark(o),null):i}_parseTermExpression(){return this._parseVariable()||this._parseEscaped()||super._parseTermExpression()||this._tryParseMixinReference(!1)}_parseEscaped(){if(this.peek(m.EscapedJavaScript)||this.peek(m.BadEscapedJavaScript)){let e=this.createNode(A.EscapedValue);return this.consumeToken(),this.finish(e)}if(this.peekDelim("~")){let e=this.createNode(A.EscapedValue);return this.consumeToken(),this.accept(m.String)||this.accept(m.EscapedJavaScript)?this.finish(e):this.finish(e,q.TermExpected)}return null}_parseOperator(){let e=this._parseGuardOperator();return e||super._parseOperator()}_parseGuardOperator(){if(this.peekDelim(">")){let e=this.createNode(A.Operator);return this.consumeToken(),this.acceptDelim("="),e}else if(this.peekDelim("=")){let e=this.createNode(A.Operator);return this.consumeToken(),this.acceptDelim("<"),e}else if(this.peekDelim("<")){let e=this.createNode(A.Operator);return this.consumeToken(),this.acceptDelim("="),e}return null}_parseRuleSetDeclaration(){return this.peek(m.AtKeyword)?this._parseKeyframe()||this._parseMedia(!0)||this._parseImport()||this._parseSupports(!0)||this._parseLayer()||this._parsePropertyAtRule()||this._parseDetachedRuleSetMixin()||this._parseVariableDeclaration()||super._parseRuleSetDeclarationAtStatement():this._tryParseMixinDeclaration()||this._tryParseRuleset(!0)||this._tryParseMixinReference()||this._parseFunction()||this._parseExtend()||super._parseRuleSetDeclaration()}_parseKeyframeIdent(){return this._parseIdent([De.Keyframe])||this._parseVariable()}_parseKeyframeSelector(){return this._parseDetachedRuleSetMixin()||super._parseKeyframeSelector()}_parseSimpleSelectorBody(){return this._parseSelectorCombinator()||super._parseSimpleSelectorBody()}_parseSelector(e){let n=this.create(Sn),r=!1;for(e&&(r=n.addChild(this._parseCombinator()));n.addChild(this._parseSimpleSelector());){r=!0;let i=this.mark();if(n.addChild(this._parseGuard())&&this.peek(m.CurlyL))break;this.restoreAtMark(i),n.addChild(this._parseCombinator())}return r?this.finish(n):null}_parseSelectorCombinator(){if(this.peekDelim("&")){let e=this.createNode(A.SelectorCombinator);for(this.consumeToken();!this.hasWhitespace()&&(this.acceptDelim("-")||this.accept(m.Num)||this.accept(m.Dimension)||e.addChild(this._parseIdent())||this.acceptDelim("&")););return this.finish(e)}return null}_parseSelectorIdent(){if(!this.peekInterpolatedIdent())return null;let e=this.createNode(A.SelectorInterpolation);return this._acceptInterpolatedIdent(e)?this.finish(e):null}_parsePropertyIdentifier(e=!1){let n=/^[\w-]+/;if(!this.peekInterpolatedIdent()&&!this.peekRegExp(this.token.type,n))return null;let r=this.mark(),i=this.create(Ft);i.isCustomProperty=this.acceptDelim("-")&&this.acceptDelim("-");let o=!1;return e?i.isCustomProperty?o=i.addChild(this._parseIdent()):o=i.addChild(this._parseRegexp(n)):i.isCustomProperty?o=this._acceptInterpolatedIdent(i):o=this._acceptInterpolatedIdent(i,n),o?(!e&&!this.hasWhitespace()&&(this.acceptDelim("+"),this.hasWhitespace()||this.acceptIdent("_")),this.finish(i)):(this.restoreAtMark(r),null)}peekInterpolatedIdent(){return this.peek(m.Ident)||this.peekDelim("@")||this.peekDelim("$")||this.peekDelim("-")}_acceptInterpolatedIdent(e,n){let r=!1,i=()=>{let s=this.mark();return this.acceptDelim("-")&&(this.hasWhitespace()||this.acceptDelim("-"),this.hasWhitespace())?(this.restoreAtMark(s),null):this._parseInterpolation()},o=n?()=>this.acceptRegexp(n):()=>this.accept(m.Ident);for(;(o()||e.addChild(this._parseInterpolation()||this.try(i)))&&(r=!0,!this.hasWhitespace()););return r}_parseInterpolation(){let e=this.mark();if(this.peekDelim("@")||this.peekDelim("$")){let n=this.createNode(A.Interpolation);return this.consumeToken(),this.hasWhitespace()||!this.accept(m.CurlyL)?(this.restoreAtMark(e),null):n.addChild(this._parseIdent())?this.accept(m.CurlyR)?this.finish(n):this.finish(n,q.RightCurlyExpected):this.finish(n,q.IdentifierExpected)}return null}_tryParseMixinDeclaration(){let e=this.mark(),n=this.create(Kn);if(!n.setIdentifier(this._parseMixinDeclarationIdentifier())||!this.accept(m.ParenthesisL))return this.restoreAtMark(e),null;if(n.getParameters().addChild(this._parseMixinParameter()))for(;(this.accept(m.Comma)||this.accept(m.SemiColon))&&!this.peek(m.ParenthesisR);)n.getParameters().addChild(this._parseMixinParameter())||this.markError(n,q.IdentifierExpected,[],[m.ParenthesisR]);return this.accept(m.ParenthesisR)?(n.setGuard(this._parseGuard()),this.peek(m.CurlyL)?this._parseBody(n,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(Ft),this.consumeToken(),this.hasWhitespace()||!e.addChild(this._parseIdent()))return null}else if(this.peek(m.Hash))e=this.create(Ft),this.consumeToken();else return null;return e.referenceTypes=[De.Mixin],this.finish(e)}_parsePseudo(){if(!this.peek(m.Colon))return null;let e=this.mark(),n=this.create(fr);return this.consumeToken(),this.acceptIdent("extend")?this._completeExtends(n):(this.restoreAtMark(e),super._parsePseudo())}_parseExtend(){if(!this.peekDelim("&"))return null;let e=this.mark(),n=this.create(fr);return this.consumeToken(),this.hasWhitespace()||!this.accept(m.Colon)||!this.acceptIdent("extend")?(this.restoreAtMark(e),null):this._completeExtends(n)}_completeExtends(e){if(!this.accept(m.ParenthesisL))return this.finish(e,q.LeftParenthesisExpected);let n=e.getSelectors();if(!n.addChild(this._parseSelector(!0)))return this.finish(e,q.SelectorExpected);for(;this.accept(m.Comma);)if(!n.addChild(this._parseSelector(!0)))return this.finish(e,q.SelectorExpected);return this.accept(m.ParenthesisR)?this.finish(e):this.finish(e,q.RightParenthesisExpected)}_parseDetachedRuleSetMixin(){if(!this.peek(m.AtKeyword))return null;let e=this.mark(),n=this.create(Hr);return n.addChild(this._parseVariable(!0))&&(this.hasWhitespace()||!this.accept(m.ParenthesisL))?(this.restoreAtMark(e),null):this.accept(m.ParenthesisR)?this.finish(n):this.finish(n,q.RightParenthesisExpected)}_tryParseMixinReference(e=!0){let n=this.mark(),r=this.create(Hr),i=this._parseMixinDeclarationIdentifier();for(;i;){this.acceptDelim(">");let s=this._parseMixinDeclarationIdentifier();if(s)r.getNamespaces().addChild(i),i=s;else break}if(!r.setIdentifier(i))return this.restoreAtMark(n),null;let o=!1;if(this.accept(m.ParenthesisL)){if(o=!0,r.getArguments().addChild(this._parseMixinArgument())){for(;(this.accept(m.Comma)||this.accept(m.SemiColon))&&!this.peek(m.ParenthesisR);)if(!r.getArguments().addChild(this._parseMixinArgument()))return this.finish(r,q.ExpressionExpected)}if(!this.accept(m.ParenthesisR))return this.finish(r,q.RightParenthesisExpected);i.referenceTypes=[De.Mixin]}else i.referenceTypes=[De.Mixin,De.Rule];return this.peek(m.BracketL)?e||this._addLookupChildren(r):r.addChild(this._parsePrio()),!o&&!this.peek(m.SemiColon)&&!this.peek(m.CurlyR)&&!this.peek(m.EOF)?(this.restoreAtMark(n),null):this.finish(r)}_parseMixinArgument(){let e=this.create(dn),n=this.mark(),r=this._parseVariable();return r&&(this.accept(m.Colon)?e.setIdentifier(r):this.restoreAtMark(n)),e.setValue(this._parseDetachedRuleSet()||this._parseExpr(!0))?this.finish(e):(this.restoreAtMark(n),null)}_parseMixinParameter(){let e=this.create(pr);if(this.peekKeyword("@rest")){let r=this.create(fe);return this.consumeToken(),this.accept(Lu)?(e.setIdentifier(this.finish(r)),this.finish(e)):this.finish(e,q.DotExpected,[],[m.Comma,m.ParenthesisR])}if(this.peek(Lu)){let r=this.create(fe);return this.consumeToken(),e.setIdentifier(this.finish(r)),this.finish(e)}let n=!1;return e.setIdentifier(this._parseVariable())&&(this.accept(m.Colon),n=!0),!e.setDefaultValue(this._parseDetachedRuleSet()||this._parseExpr(!0))&&!n?null:this.finish(e)}_parseGuard(){if(!this.peekIdent("when"))return null;let e=this.create(lu);if(this.consumeToken(),e.isNegated=this.acceptIdent("not"),!e.getConditions().addChild(this._parseGuardCondition()))return this.finish(e,q.ConditionExpected);for(;this.acceptIdent("and")||this.accept(m.Comma);)if(!e.getConditions().addChild(this._parseGuardCondition()))return this.finish(e,q.ConditionExpected);return this.finish(e)}_parseGuardCondition(){if(!this.peek(m.ParenthesisL))return null;let e=this.create(cu);return this.consumeToken(),e.addChild(this._parseExpr()),this.accept(m.ParenthesisR)?this.finish(e):this.finish(e,q.RightParenthesisExpected)}_parseFunction(){let e=this.mark(),n=this.create(Vn);if(!n.setIdentifier(this._parseFunctionIdentifier()))return null;if(this.hasWhitespace()||!this.accept(m.ParenthesisL))return this.restoreAtMark(e),null;if(n.getArguments().addChild(this._parseMixinArgument())){for(;(this.accept(m.Comma)||this.accept(m.SemiColon))&&!this.peek(m.ParenthesisR);)if(!n.getArguments().addChild(this._parseMixinArgument()))return this.finish(n,q.ExpressionExpected)}return this.accept(m.ParenthesisR)?this.finish(n):this.finish(n,q.RightParenthesisExpected)}_parseFunctionIdentifier(){if(this.peekDelim("%")){let e=this.create(Ft);return e.referenceTypes=[De.Function],this.consumeToken(),this.finish(e)}return super._parseFunctionIdentifier()}_parseURLArgument(){let e=this.mark(),n=super._parseURLArgument();if(!n||!this.peek(m.ParenthesisR)){this.restoreAtMark(e);let r=this.create(fe);return r.addChild(this._parseBinaryExpr()),this.finish(r)}return n}}});var Xr,d0=ue(()=>{"use strict";xu();hn();kn();Xr=class extends xi{constructor(e,n){super("@",e,n)}createFunctionProposals(e,n,r,i){for(let o of e){let s={label:o.name,detail:o.example,documentation:o.description,textEdit:E.TextEdit.replace(this.getCompletionRange(n),o.name+"($0)"),insertTextFormat:E.InsertTextFormat.Snippet,kind:E.CompletionItemKind.Function};r&&(s.sortText="z"),i.items.push(s)}return i}getTermProposals(e,n,r){let i=Xr.builtInProposals;return e&&(i=i.filter(o=>!o.type||!e.restrictions||e.restrictions.indexOf(o.type)!==-1)),this.createFunctionProposals(i,n,!0,r),super.getTermProposals(e,n,r)}getColorProposals(e,n,r){return this.createFunctionProposals(Xr.colorProposals,n,!1,r),super.getColorProposals(e,n,r)}getCompletionsForDeclarationProperty(e,n){return this.getCompletionsForSelector(null,!0,n),super.getCompletionsForDeclarationProperty(e,n)}};Xr.builtInProposals=[{name:"if",example:"if(condition, trueValue [, falseValue]);",description:F("returns one of two values depending on a condition.")},{name:"boolean",example:"boolean(condition);",description:F('"store" a boolean test for later evaluation in a guard or if().')},{name:"length",example:"length(@list);",description:F("returns the number of elements in a value list")},{name:"extract",example:"extract(@list, index);",description:F("returns a value at the specified position in the list")},{name:"range",example:"range([start, ] end [, step]);",description:F("generate a list spanning a range of values")},{name:"each",example:"each(@list, ruleset);",description:F("bind the evaluation of a ruleset to each member of a list.")},{name:"escape",example:"escape(@string);",description:F("URL encodes a string")},{name:"e",example:"e(@string);",description:F("escape string content")},{name:"replace",example:"replace(@string, @pattern, @replacement[, @flags]);",description:F("string replace")},{name:"unit",example:"unit(@dimension, [@unit: '']);",description:F("remove or change the unit of a dimension")},{name:"color",example:"color(@string);",description:F("parses a string to a color"),type:"color"},{name:"convert",example:"convert(@value, unit);",description:F("converts numbers from one type into another")},{name:"data-uri",example:"data-uri([mimetype,] url);",description:F("inlines a resource and falls back to `url()`"),type:"url"},{name:"abs",description:F("absolute value of a number"),example:"abs(number);"},{name:"acos",description:F("arccosine - inverse of cosine function"),example:"acos(number);"},{name:"asin",description:F("arcsine - inverse of sine function"),example:"asin(number);"},{name:"ceil",example:"ceil(@number);",description:F("rounds up to an integer")},{name:"cos",description:F("cosine function"),example:"cos(number);"},{name:"floor",description:F("rounds down to an integer"),example:"floor(@number);"},{name:"percentage",description:F("converts to a %, e.g. 0.5 > 50%"),example:"percentage(@number);",type:"percentage"},{name:"round",description:F("rounds a number to a number of places"),example:"round(number, [places: 0]);"},{name:"sqrt",description:F("calculates square root of a number"),example:"sqrt(number);"},{name:"sin",description:F("sine function"),example:"sin(number);"},{name:"tan",description:F("tangent function"),example:"tan(number);"},{name:"atan",description:F("arctangent - inverse of tangent function"),example:"atan(number);"},{name:"pi",description:F("returns pi"),example:"pi();"},{name:"pow",description:F("first argument raised to the power of the second argument"),example:"pow(@base, @exponent);"},{name:"mod",description:F("first argument modulus second argument"),example:"mod(number, number);"},{name:"min",description:F("returns the lowest of one or more values"),example:"min(@x, @y);"},{name:"max",description:F("returns the lowest of one or more values"),example:"max(@x, @y);"}];Xr.colorProposals=[{name:"argb",example:"argb(@color);",description:F("creates a #AARRGGBB")},{name:"hsl",example:"hsl(@hue, @saturation, @lightness);",description:F("creates a color")},{name:"hsla",example:"hsla(@hue, @saturation, @lightness, @alpha);",description:F("creates a color")},{name:"hsv",example:"hsv(@hue, @saturation, @value);",description:F("creates a color")},{name:"hsva",example:"hsva(@hue, @saturation, @value, @alpha);",description:F("creates a color")},{name:"hue",example:"hue(@color);",description:F("returns the `hue` channel of `@color` in the HSL space")},{name:"saturation",example:"saturation(@color);",description:F("returns the `saturation` channel of `@color` in the HSL space")},{name:"lightness",example:"lightness(@color);",description:F("returns the `lightness` channel of `@color` in the HSL space")},{name:"hsvhue",example:"hsvhue(@color);",description:F("returns the `hue` channel of `@color` in the HSV space")},{name:"hsvsaturation",example:"hsvsaturation(@color);",description:F("returns the `saturation` channel of `@color` in the HSV space")},{name:"hsvvalue",example:"hsvvalue(@color);",description:F("returns the `value` channel of `@color` in the HSV space")},{name:"red",example:"red(@color);",description:F("returns the `red` channel of `@color`")},{name:"green",example:"green(@color);",description:F("returns the `green` channel of `@color`")},{name:"blue",example:"blue(@color);",description:F("returns the `blue` channel of `@color`")},{name:"alpha",example:"alpha(@color);",description:F("returns the `alpha` channel of `@color`")},{name:"luma",example:"luma(@color);",description:F("returns the `luma` value (perceptual brightness) of `@color`")},{name:"saturate",example:"saturate(@color, 10%);",description:F("return `@color` 10% points more saturated")},{name:"desaturate",example:"desaturate(@color, 10%);",description:F("return `@color` 10% points less saturated")},{name:"lighten",example:"lighten(@color, 10%);",description:F("return `@color` 10% points lighter")},{name:"darken",example:"darken(@color, 10%);",description:F("return `@color` 10% points darker")},{name:"fadein",example:"fadein(@color, 10%);",description:F("return `@color` 10% points less transparent")},{name:"fadeout",example:"fadeout(@color, 10%);",description:F("return `@color` 10% points more transparent")},{name:"fade",example:"fade(@color, 50%);",description:F("return `@color` with 50% transparency")},{name:"spin",example:"spin(@color, 10);",description:F("return `@color` with a 10 degree larger in hue")},{name:"mix",example:"mix(@color1, @color2, [@weight: 50%]);",description:F("return a mix of `@color1` and `@color2`")},{name:"greyscale",example:"greyscale(@color);",description:F("returns a grey, 100% desaturated color")},{name:"contrast",example:"contrast(@color1, [@darkcolor: black], [@lightcolor: white], [@threshold: 43%]);",description:F("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 p0(t,e){let n=wz(t);return yz(n,e)}function wz(t){function e(u){return t.positionAt(u.offset).line}function n(u){return t.positionAt(u.offset+u.len).line}function r(){switch(t.languageId){case"scss":return new us;case"less":return new hs;default:return new _n}}function i(u,d){let h=e(u),p=n(u);return h!==p?{startLine:h,endLine:p,kind:d}:null}let o=[],s=[],l=r();l.ignoreComment=!1,l.setSource(t.getText());let a=l.scan(),c=null;for(;a.type!==m.EOF;){switch(a.type){case m.CurlyL:case ds:{s.push({line:e(a),type:"brace",isStart:!0});break}case m.CurlyR:{if(s.length!==0){let u=h0(s,"brace");if(!u)break;let d=n(a);u.type==="brace"&&(c&&n(c)!==d&&d--,u.line!==d&&o.push({startLine:u.line,endLine:d,kind:void 0}))}break}case m.Comment:{let u=p=>p==="#region"?{line:e(a),type:"comment",isStart:!0}:{line:n(a),type:"comment",isStart:!1},h=(p=>{let w=p.text.match(/^\s*\/\*\s*(#region|#endregion)\b\s*(.*?)\s*\*\//);if(w)return u(w[1]);if(t.languageId==="scss"||t.languageId==="less"){let v=p.text.match(/^\s*\/\/\s*(#region|#endregion)\b\s*(.*?)\s*/);if(v)return u(v[1])}return null})(a);if(h)if(h.isStart)s.push(h);else{let p=h0(s,"comment");if(!p)break;p.type==="comment"&&p.line!==h.line&&o.push({startLine:p.line,endLine:h.line,kind:"region"})}else{let p=i(a,"comment");p&&o.push(p)}break}}c=a,a=l.scan()}return o}function h0(t,e){if(t.length===0)return null;for(let n=t.length-1;n>=0;n--)if(t[n].type===e&&t[n].isStart)return t.splice(n,1)[0];return null}function yz(t,e){let n=e&&e.rangeLimit||Number.MAX_VALUE,r=t.sort((s,l)=>{let a=s.startLine-l.startLine;return a===0&&(a=s.endLine-l.endLine),a}),i=[],o=-1;return r.forEach(s=>{s.startLine<o&&o<s.endLine||(i.push(s),o=s.endLine)}),i.length<n?i:i.slice(0,n)}var m0=ue(()=>{"use strict";fi();Nf();Uf()});var f0,g0,b0=ue(()=>{(function(){"use strict";var t=[,,function(i){function o(a){this.__parent=a,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=[]}o.prototype.clone_empty=function(){var a=new o(this.__parent);return a.set_indent(this.__indent_count,this.__alignment_count),a},o.prototype.item=function(a){return a<0?this.__items[this.__items.length+a]:this.__items[a]},o.prototype.has_match=function(a){for(var c=this.__items.length-1;c>=0;c--)if(this.__items[c].match(a))return!0;return!1},o.prototype.set_indent=function(a,c){this.is_empty()&&(this.__indent_count=a||0,this.__alignment_count=c||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},o.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)},o.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},o.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var a=this.__parent.current_line;return a.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),a.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),a.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count,a.__items[0]===" "&&(a.__items.splice(0,1),a.__character_count-=1),!0}return!1},o.prototype.is_empty=function(){return this.__items.length===0},o.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},o.prototype.push=function(a){this.__items.push(a);var c=a.lastIndexOf(`
|
|
545
545
|
`);c!==-1?this.__character_count=a.length-c:this.__character_count+=a.length},o.prototype.pop=function(){var a=null;return this.is_empty()||(a=this.__items.pop(),this.__character_count-=a.length),a},o.prototype._remove_indent=function(){this.__indent_count>0&&(this.__indent_count-=1,this.__character_count-=this.__parent.indent_size)},o.prototype._remove_wrap_indent=function(){this.__wrap_point_indent_count>0&&(this.__wrap_point_indent_count-=1)},o.prototype.trim=function(){for(;this.last()===" ";)this.__items.pop(),this.__character_count-=1},o.prototype.toString=function(){var a="";return this.is_empty()?this.__parent.indent_empty_lines&&(a=this.__parent.get_indent_string(this.__indent_count)):(a=this.__parent.get_indent_string(this.__indent_count,this.__alignment_count),a+=this.__items.join("")),a};function s(a,c){this.__cache=[""],this.__indent_size=a.indent_size,this.__indent_string=a.indent_char,a.indent_with_tabs||(this.__indent_string=new Array(a.indent_size+1).join(a.indent_char)),c=c||"",a.indent_level>0&&(c=new Array(a.indent_level+1).join(this.__indent_string)),this.__base_string=c,this.__base_string_length=c.length}s.prototype.get_indent_size=function(a,c){var u=this.__base_string_length;return c=c||0,a<0&&(u=0),u+=a*this.__indent_size,u+=c,u},s.prototype.get_indent_string=function(a,c){var u=this.__base_string;return c=c||0,a<0&&(a=0,u=""),c+=a*this.__indent_size,this.__ensure_cache(c),u+=this.__cache[c],u},s.prototype.__ensure_cache=function(a){for(;a>=this.__cache.length;)this.__add_column()},s.prototype.__add_column=function(){var a=this.__cache.length,c=0,u="";this.__indent_size&&a>=this.__indent_size&&(c=Math.floor(a/this.__indent_size),a-=c*this.__indent_size,u=new Array(c+1).join(this.__indent_string)),a&&(u+=new Array(a+1).join(" ")),this.__cache.push(u)};function l(a,c){this.__indent_cache=new s(a,c),this.raw=!1,this._end_with_newline=a.end_with_newline,this.indent_size=a.indent_size,this.wrap_line_length=a.wrap_line_length,this.indent_empty_lines=a.indent_empty_lines,this.__lines=[],this.previous_line=null,this.current_line=null,this.next_line=new o(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(a,c){return this.__indent_cache.get_indent_string(a,c)},l.prototype.get_indent_size=function(a,c){return this.__indent_cache.get_indent_size(a,c)},l.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},l.prototype.add_new_line=function(a){return this.is_empty()||!a&&this.just_added_newline()?!1:(this.raw||this.__add_outputline(),!0)},l.prototype.get_code=function(a){this.trim(!0);var c=this.current_line.pop();c&&(c[c.length-1]===`
|
|
546
546
|
`&&(c=c.replace(/\n+$/g,"")),this.current_line.push(c)),this._end_with_newline&&this.__add_outputline();var u=this.__lines.join(`
|
|
547
547
|
`);return a!==`
|
|
@@ -580,23 +580,23 @@ A zoom factor of 1.0 or 100% corresponds to no zooming. Larger values are zoomed
|
|
|
580
580
|
|
|
581
581
|
A zoom factor of 1.0 or 100% corresponds to no zooming. Larger values are zoomed in. Smaller values are zoomed out.`},{name:"orientation",syntax:"auto | portrait | landscape",values:[{name:"auto"},{name:"portrait"},{name:"landscape"}],relevance:50,description:"The orientation CSS @media media feature can be used to apply styles based on the orientation of the viewport (or the page box, for paged media)."},{name:"user-zoom",syntax:"zoom | fixed",values:[{name:"zoom"},{name:"fixed"}],relevance:50,description:"The user-zoom CSS descriptor controls whether or not the user can change the zoom factor of a document defined by @viewport."},{name:"viewport-fit",syntax:"auto | contain | cover",values:[{name:"auto"},{name:"contain"},{name:"cover"}],relevance:50,description:"The border-block-style CSS property defines the style of the logical block borders of an element, which maps to a physical border style depending on the element's writing mode, directionality, and text orientation."}],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","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:["FF34","S9.1"],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","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","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","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","S6","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:["S7"],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:["FF1"],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:["FF1"],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:["S7"],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:["FF49"],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","FF103","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:":nth-col",status:"experimental",description:"The :nth-col() CSS pseudo-class is designed for tables and grids. It accepts the An+B notation such as used with the :nth-child selector, using this to target every nth column. "},{name:":nth-last-col",status:"experimental",description:"The :nth-last-col() CSS pseudo-class is designed for tables and grids. It accepts the An+B notation such as used with the :nth-child selector, using this to target every nth column before it, therefore counting back from the end of the set of columns."},{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 \u201Cplayed\u201D or \u201Cpaused\u201D, when that element is \u201Cpaused\u201D."},{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 \u201Cplayed\u201D or \u201Cpaused\u201D, when that element is \u201Cplaying\u201D. "},{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:["FF88"],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:["FF88"],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:["E79","C76","O63"],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:["FF4"]},{name:"::-moz-focus-outer",browsers:["FF4"]},{name:"::-moz-list-bullet",browsers:["FF1"],description:"Used to style the bullet of a list element. Similar to the standardized ::marker."},{name:"::-moz-list-number",browsers:["FF1"],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:["FF9"],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:["S5","C6"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/::-webkit-outer-spin-button"}]},{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:["C","O","S6"]},{name:"::-webkit-slider-thumb",browsers:["C","O","S6"]},{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.
|
|
582
582
|
|
|
583
|
-
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",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","Spreview","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",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."}]}});function Cz(t){return typeof t.name=="string"}function Tz(t){return typeof t.name=="string"}function Ez(t){return typeof t.name=="string"}function Dz(t){return typeof t.name=="string"}var ps,Hf=ue(()=>{"use strict";ps=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(let n of e.properties)Cz(n)&&this._properties.push(n);if(Array.isArray(e.atDirectives))for(let n of e.atDirectives)Tz(n)&&this._atDirectives.push(n);if(Array.isArray(e.pseudoClasses))for(let n of e.pseudoClasses)Ez(n)&&this._pseudoClasses.push(n);if(Array.isArray(e.pseudoElements))for(let n of e.pseudoElements)Dz(n)&&this._pseudoElements.push(n)}}});var ms,x0=ue(()=>{"use strict";Ca();jf();Hf();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,n){this.dataProviders=[],e&&this.dataProviders.push(new ps(Wu)),this.dataProviders.push(...n),this.collectData()}collectData(){this._propertySet={},this._atDirectiveSet={},this._pseudoClassSet={},this._pseudoElementSet={},this.dataProviders.forEach(e=>{e.provideProperties().forEach(n=>{this._propertySet[n.name]||(this._propertySet[n.name]=n)}),e.provideAtDirectives().forEach(n=>{this._atDirectiveSet[n.name]||(this._atDirectiveSet[n.name]=n)}),e.providePseudoClasses().forEach(n=>{this._pseudoClassSet[n.name]||(this._pseudoClassSet[n.name]=n)}),e.providePseudoElements().forEach(n=>{this._pseudoElementSet[n.name]||(this._pseudoElementSet[n.name]=n)})}),this._properties=ka(this._propertySet),this._atDirectives=ka(this._atDirectiveSet),this._pseudoClasses=ka(this._pseudoClassSet),this._pseudoElements=ka(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 k0(t,e,n){function r(o){let s=i(o),l;for(let a=s.length-1;a>=0;a--)l=E.SelectionRange.create(E.Range.create(t.positionAt(s[a][0]),t.positionAt(s[a][1])),l);return l||(l=E.SelectionRange.create(E.Range.create(o,o))),l}return e.map(r);function i(o){let s=t.offsetAt(o),l=n.findChildAtOffset(s,!0);if(!l)return[];let a=[];for(;l;){if(l.parent&&l.offset===l.parent.offset&&l.end===l.parent.end){l=l.parent;continue}l.type===A.Declarations&&s>l.offset&&s<l.end&&a.push([l.offset+1,l.end-1]),a.push([l.offset,l.end]),l=l.parent}return a}}var C0=ue(()=>{"use strict";hn();Bt()});function Fz(t){if(t.endsWith(".scss")||t.endsWith(".css"))return[t];if(t.endsWith("/"))return[t+"index.scss",t+"_index.scss"];let e=Ea.parse(t),n=br.basename(e),r=br.dirname(e);return n.startsWith("_")?[br.joinPath(r,n+".scss").toString(!0)]:[br.joinPath(r,n+".scss").toString(!0),br.joinPath(r,"_"+n+".scss").toString(!0),t+"/index.scss",t+"/_index.scss",br.joinPath(r,n+".css").toString(!0)]}var qu,T0=ue(()=>{"use strict";Af();Bt();kf();qr();qu=class extends oo{constructor(e){super(e,!0)}isRawStringDocumentLinkNode(e){return super.isRawStringDocumentLinkNode(e)||e.type===A.Use||e.type===A.Forward}async mapReference(e,n){if(this.fileSystemProvider&&e&&n){let r=Fz(e);for(let i of r)if(await this.fileExists(i))return i}return e}async resolveReference(e,n,r,i=!1){if(!ot(e,"sass:"))return super.resolveReference(e,n,r,i)}}});var D0={};xd(D0,{ClientCapabilities:()=>af,CodeAction:()=>E.CodeAction,CodeActionContext:()=>E.CodeActionContext,CodeActionKind:()=>E.CodeActionKind,Color:()=>E.Color,ColorInformation:()=>E.ColorInformation,ColorPresentation:()=>E.ColorPresentation,Command:()=>E.Command,CompletionItem:()=>E.CompletionItem,CompletionItemKind:()=>E.CompletionItemKind,CompletionItemTag:()=>E.CompletionItemTag,CompletionList:()=>E.CompletionList,Diagnostic:()=>E.Diagnostic,DiagnosticSeverity:()=>E.DiagnosticSeverity,DocumentHighlight:()=>E.DocumentHighlight,DocumentHighlightKind:()=>E.DocumentHighlightKind,DocumentLink:()=>E.DocumentLink,DocumentSymbol:()=>E.DocumentSymbol,DocumentUri:()=>E.DocumentUri,FileType:()=>wi,FoldingRange:()=>E.FoldingRange,FoldingRangeKind:()=>E.FoldingRangeKind,Hover:()=>E.Hover,InsertTextFormat:()=>E.InsertTextFormat,Location:()=>E.Location,MarkedString:()=>E.MarkedString,MarkupContent:()=>E.MarkupContent,MarkupKind:()=>E.MarkupKind,Position:()=>E.Position,Range:()=>E.Range,SelectionRange:()=>E.SelectionRange,SymbolInformation:()=>E.SymbolInformation,SymbolKind:()=>E.SymbolKind,TextDocument:()=>Ao,TextDocumentEdit:()=>E.TextDocumentEdit,TextEdit:()=>E.TextEdit,VersionedTextDocumentIdentifier:()=>E.VersionedTextDocumentIdentifier,WorkspaceEdit:()=>E.WorkspaceEdit,getCSSLanguageService:()=>Rz,getDefaultCSSDataProvider:()=>Az,getLESSLanguageService:()=>Mz,getSCSSLanguageService:()=>Iz,newCSSDataProvider:()=>E0});function Az(){return E0(Wu)}function E0(t){return new ps(t)}function Bf(t,e,n,r,i,o,s){return{configure:l=>{o.configure(l),e.configure(l?.completion),n.configure(l?.hover)},setDataProviders:s.setDataProviders.bind(s),doValidation:o.doValidation.bind(o),parseStylesheet:t.parseStylesheet.bind(t),doComplete:e.doComplete.bind(e),doComplete2:e.doComplete2.bind(e),setCompletionParticipants:e.setCompletionParticipants.bind(e),doHover:n.doHover.bind(n),format:_0,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:p0,getSelectionRanges:k0}}function Rz(t=$f){let e=new ms(t);return Bf(new _i,new Si(null,t,e),new ss(t&&t.clientCapabilities,e),new oo(t&&t.fileSystemProvider,!1),new ls(e),new cs(e),e)}function Iz(t=$f){let e=new ms(t);return Bf(new Ou,new _t(t,e),new ss(t&&t.clientCapabilities,e),new qu(t&&t.fileSystemProvider),new ls(e),new cs(e),e)}function Mz(t=$f){let e=new ms(t);return Bf(new Nu,new Xr(t,e),new ss(t&&t.clientCapabilities,e),new oo(t&&t.fileSystemProvider,!0),new ls(e),new cs(e),e)}var $f,F0=ue(()=>{"use strict";gu();xu();Kx();Af();Zx();r0();s0();l0();u0();d0();m0();S0();x0();Hf();C0();T0();jf();hn();$f={}});var A0=X(Uu=>{"use strict";Object.defineProperty(Uu,"__esModule",{value:!0});Uu.pseudoClass=void 0;Uu.pseudoClass=[{name:":global()",description:"Apply styles to a selector globally",references:[{name:"Astro documentation",url:"https://docs.astro.build/en/guides/styling/#global-styles-within-style-tag"}]}]});var ju=X(fs=>{"use strict";Object.defineProperty(fs,"__esModule",{value:!0});fs.getLanguageService=fs.getLanguage=void 0;var Vf=(F0(),Mi(D0)),Pz=A0(),zz={providePseudoClasses(){return Pz.pseudoClass},provideProperties(){return[]},provideAtDirectives(){return[]},providePseudoElements(){return[]}},[Oz,Lz,Nz]=[Vf.getCSSLanguageService,Vf.getSCSSLanguageService,Vf.getLESSLanguageService].map(t=>t({customDataProviders:[zz]})),Wz={css:Oz,scss:Lz,less:Nz};function R0(t){switch(t){case"scss":case"text/scss":return"scss";case"less":case"text/less":return"less";case"css":case"text/css":default:return"css"}}fs.getLanguage=R0;function qz(t){let e=R0(t);return Wz[e]}fs.getLanguageService=qz});var I0=X(Hu=>{"use strict";Object.defineProperty(Hu,"__esModule",{value:!0});Hu.CSSDocument=void 0;var Uz=Pt(),jz=ju(),Kf=class extends Uz.ReadableDocument{constructor(e,n){super(),this.parent=e,this.styleInfo=n,this.version=this.parent.version,this.languageId=this.language,this.stylesheet=(0,jz.getLanguageService)(this.language).parseStylesheet(this)}getOriginalPosition(e){let n=this.styleInfo.start+this.offsetAt(e);return this.parent.positionAt(n)}getGeneratedPosition(e){let n=this.parent.offsetAt(e)-this.styleInfo.start;return this.positionAt(n)}isInGenerated(e){let n=this.parent.offsetAt(e);return n>=this.styleInfo.start&&n<=this.styleInfo.end}getText(){return this.parent.getText().slice(this.styleInfo.start,this.styleInfo.end)}getTextLength(){return this.styleInfo.end-this.styleInfo.start}getFilePath(){return this.parent.getFilePath()}getURL(){return this.parent.getURL()}getAttributes(){return this.styleInfo.attributes}get language(){let e=this.getAttributes();return e.lang||e.type||"css"}};Hu.CSSDocument=Kf});var O0=X(Yr=>{"use strict";Object.defineProperty(Yr,"__esModule",{value:!0});Yr.collectSelectors=Yr.NodeType=Yr.getIdClassCompletion=void 0;var M0=pt();function Hz(t,e){let n=Bz(e);if(!n)return null;let r=P0(t,n);return M0.CompletionList.create(r)}Yr.getIdClassCompletion=Hz;function Bz(t){if(t.inValue){if(t.name==="class")return Bu.ClassSelector;if(t.name==="id")return Bu.IdentifierSelector}else if(t.name.startsWith("class:"))return Bu.ClassSelector}var Bu;(function(t){t[t.ClassSelector=14]="ClassSelector",t[t.IdentifierSelector=15]="IdentifierSelector"})(Bu=Yr.NodeType||(Yr.NodeType={}));function P0(t,e){let n=[];return t.forEach(r=>{z0(r,i=>{i.type===e&&n.push(i)})}),n.map(r=>({label:r.getText().substring(1),kind:M0.CompletionItemKind.Keyword}))}Yr.collectSelectors=P0;function z0(t,e){e(t),t.children&&t.children.forEach(n=>z0(n,e))}});var N0=X(Vu=>{"use strict";Object.defineProperty(Vu,"__esModule",{value:!0});Vu.StyleAttributeDocument=void 0;var $z=Pt(),Vz=ju(),$u="__ {",L0="}",Gf=class extends $z.ReadableDocument{constructor(e,n,r){super(),this.parent=e,this.attrStart=n,this.attrEnd=r,this.version=this.parent.version,this.languageId="css",this.stylesheet=(0,Vz.getLanguageService)(this.languageId).parseStylesheet(this)}getOriginalPosition(e){let n=this.attrStart+this.offsetAt(e)-$u.length;return this.parent.positionAt(n)}getGeneratedPosition(e){let n=this.parent.offsetAt(e)-this.attrStart+$u.length;return this.positionAt(n)}isInGenerated(e){let n=this.parent.offsetAt(e);return n>=this.attrStart&&n<=this.attrEnd}getText(){return $u+this.parent.getText().slice(this.attrStart,this.attrEnd)+L0}getTextLength(){return $u.length+this.attrEnd-this.attrStart+L0.length}getFilePath(){return this.parent.getFilePath()}getURL(){return this.parent.getURL()}};Vu.StyleAttributeDocument=Gf});var Yf=X(Ku=>{"use strict";Object.defineProperty(Ku,"__esModule",{value:!0});Ku.CSSPlugin=void 0;var Jf=(Ym(),Mi(Qm)),W0=pt(),Tn=Pt(),q0=Up(),Kz=I0(),Gz=O0(),wr=ju(),U0=N0(),Qf=class{constructor(e){this.__name="css",this.cssDocuments=new WeakMap,this.triggerCharacters=new Set([".",":","-","/"]),this.configManager=e}async doHover(e,n){if(!await this.featureEnabled(e,"hover")||(0,Tn.isInsideFrontmatter)(e.getText(),e.offsetAt(n)))return null;let r=this.getStyleTagForPosition(e,n);if(r&&!r.closed)return null;if(!r){let s=(0,q0.getAttributeContextAtPosition)(e,n);if(!s)return null;if(this.inStyleAttributeWithoutInterpolation(s,e.getText())){let[l,a]=s.valueRange;return this.doHoverInternal(new U0.StyleAttributeDocument(e,l,a),n)}return null}let i=this.getCSSDocumentForStyleTag(r,e),o=yr(i);return Xf(o)?this.doHoverInternal(i,n):null}doHoverInternal(e,n){let r=(0,wr.getLanguageService)(yr(e)).doHover(e,e.getGeneratedPosition(n),e.stylesheet);return r&&(0,Tn.mapHoverToParent)(e,r)}async getCompletions(e,n,r){if(!await this.featureEnabled(e,"completions")||(0,Tn.isInsideFrontmatter)(e.getText(),e.offsetAt(n)))return null;let i=r?.triggerCharacter;if(r?.triggerKind===W0.CompletionTriggerKind.TriggerCharacter&&i&&!this.triggerCharacters.has(i))return null;let l=this.getStyleTagForPosition(e,n);if(l&&!l.closed)return null;if(!l){let c=(0,q0.getAttributeContextAtPosition)(e,n);if(!c)return null;if(this.inStyleAttributeWithoutInterpolation(c,e.getText())){let[u,d]=c.valueRange;return await this.getCompletionsInternal(e,n,new U0.StyleAttributeDocument(e,u,d))}else if((c.name=="id"||c.name=="class")&&c.inValue){let u=this.getStylesheetsForDocument(e);return(0,Gz.getIdClassCompletion)(u,c)}return null}let a=this.getCSSDocumentForStyleTag(l,e);return await this.getCompletionsInternal(e,n,a)}async getCompletionsInternal(e,n,r){let i=await this.configManager.getEmmetConfig(e);if(Jz(r))return(0,Jf.doComplete)(e,n,"sass",i)||null;let o=yr(r),s=(0,wr.getLanguageService)(o),l={isIncomplete:!1,items:[]};((await this.configManager.getConfig("astro",e.uri))?.css?.completions?.emmet??!0)&&s.setCompletionParticipants([{onCssProperty:u=>{u?.propertyName&&(l=(0,Jf.doComplete)(r,r.getGeneratedPosition(n),(0,wr.getLanguage)(o),i)||l)},onCssPropertyValue:u=>{u?.propertyValue&&(l=(0,Jf.doComplete)(r,r.getGeneratedPosition(n),(0,wr.getLanguage)(o),i)||l)}}]);let c=s.doComplete(r,r.getGeneratedPosition(n),r.stylesheet);return W0.CompletionList.create([...c?c.items:[],...l.items].map(u=>(0,Tn.mapCompletionItemToOriginal)(r,u)),l.items.length>0)}async getDocumentColors(e){return await this.featureEnabled(e,"documentColors")?this.getCSSDocumentsForDocument(e).flatMap(r=>{let i=yr(r),o=(0,wr.getLanguageService)(i);return Xf(i)?o.findDocumentColors(r,r.stylesheet).map(s=>(0,Tn.mapObjWithRangeToOriginal)(r,s)):[]}):[]}async getColorPresentations(e,n,r){return await this.featureEnabled(e,"documentColors")?this.getCSSDocumentsForDocument(e).flatMap(o=>{let s=yr(o),l=(0,wr.getLanguageService)(s);return!o.isInGenerated(n.start)&&!o.isInGenerated(n.end)||!Xf(s)?[]:l.getColorPresentations(o,o.stylesheet,r,(0,Tn.mapRangeToGenerated)(o,n)).map(a=>(0,Tn.mapColorPresentationToOriginal)(o,a))}):[]}prepareRename(e,n){let r=this.getStyleTagForPosition(e,n);if(!r)return null;let i=this.getCSSDocumentForStyleTag(r,e),o=yr(i),l=(0,wr.getLanguageService)(o).prepareRename(i,i.getGeneratedPosition(n),i.stylesheet);return l?(0,Tn.mapRangeToOriginal)(i,l):null}rename(e,n,r){let i=this.getStyleTagForPosition(e,n);if(!i)return null;let o=this.getCSSDocumentForStyleTag(i,e),s=yr(o),a=(0,wr.getLanguageService)(s).doRename(o,o.getGeneratedPosition(n),r,o.stylesheet);return a?.changes?.[e.uri]&&(a.changes[e.uri]=a?.changes?.[e.uri].map(c=>(0,Tn.mapObjWithRangeToOriginal)(o,c))),a}getFoldingRanges(e){return this.getCSSDocumentsForDocument(e).flatMap(r=>{let i=yr(r);return(0,wr.getLanguageService)(i).getFoldingRanges(r).map(s=>(0,Tn.mapFoldingRangeToParent)(r,s))})}async getDocumentSymbols(e){return await this.featureEnabled(e,"documentSymbols")?this.getCSSDocumentsForDocument(e).flatMap(r=>(0,wr.getLanguageService)(yr(r)).findDocumentSymbols(r,r.stylesheet).map(i=>(0,Tn.mapSymbolInformationToOriginal)(r,i))):[]}inStyleAttributeWithoutInterpolation(e,n){return e.name==="style"&&!!e.valueRange&&!n.substring(e.valueRange[0],e.valueRange[1]).includes("{")}getCSSDocumentForStyleTag(e,n){let r=this.cssDocuments.get(e);return(!r||r.version<n.version)&&(r=new Kz.CSSDocument(n,e),this.cssDocuments.set(e,r)),r}getCSSDocumentsForDocument(e){return e.styleTags.map(n=>this.getCSSDocumentForStyleTag(n,e))}getStylesheetsForDocument(e){return this.getCSSDocumentsForDocument(e).map(n=>n.stylesheet)}getStyleTagForPosition(e,n){return e.styleTags.find(r=>(0,Tn.isInTag)(n,r))}async featureEnabled(e,n){return await this.configManager.isEnabled(e,"css")&&await this.configManager.isEnabled(e,"css",n)}};Ku.CSSPlugin=Qf;function Xf(t){switch(t){case"css":case"scss":case"less":return!0;default:return!1}}function Jz(t){switch(yr(t)){case"sass":return!0;default:return!1}}function yr(t){return t.languageId.replace(/^text\//,"")}});var tg=X(Ju=>{"use strict";Object.defineProperty(Ju,"__esModule",{value:!0});Ju.HTMLPlugin=void 0;var Xz=(Ym(),Mi(Qm)),Zf=(Xs(),Mi(Js)),Gu=pt(),_r=ar(),gs=$p(),Qz=Vp(),eg=class{constructor(e){this.__name="html",this.lang=(0,Zf.getLanguageService)({customDataProviders:[gs.astroAttributes,gs.astroElements,gs.classListAttribute]}),this.attributeOnlyLang=(0,Zf.getLanguageService)({customDataProviders:[gs.astroAttributes],useDefaultDataProvider:!1}),this.componentLang=(0,Zf.getLanguageService)({customDataProviders:[gs.astroAttributes,gs.astroDirectives],useDefaultDataProvider:!1}),this.styleScriptTemplate=new Set(["style"]),this.configManager=e}async doHover(e,n){if(!await this.featureEnabled(e,"hover"))return null;let r=e.html;if(!r)return null;let i=r.findNodeAt(e.offsetAt(n));return i?(0,_r.isPossibleComponent)(i)&&i.tag!=="Fragment"?this.componentLang.doHover(e,n,r):this.lang.doHover(e,n,r):null}async getCompletions(e,n){if(!await this.featureEnabled(e,"completions"))return null;let r=e.html,i=e.offsetAt(n);if(!r||(0,_r.isInsideFrontmatter)(e.getText(),i)||(0,_r.isInsideExpression)(e.getText(),r.findNodeAt(i).start,i))return null;let o={isIncomplete:!0,items:[]},s=await this.configManager.getEmmetConfig(e);((await this.configManager.getConfig("astro",e.uri)??{})?.html?.completions?.emmet??!0)&&this.lang.setCompletionParticipants([{onHtmlContent:()=>o=(0,Xz.doComplete)(e,n,"html",s)||o}]);let a=(0,_r.isInComponentStartTag)(r,i),c=(0,_r.isInTagName)(r,i),u=a&&!c?(0,Qz.removeDataAttrCompletion)(this.attributeOnlyLang.doComplete(e,n,r).items):this.lang.doComplete(e,n,r).items.filter(h),d=a?[]:this.getLangCompletions(u);return Gu.CompletionList.create([...u,...d,...o.items],o.items.length>0);function h(p){return!(["script","style"].includes(p.label)&&p.documentation===void 0)}}getFoldingRanges(e){return e.html?this.lang.getFoldingRanges(e):null}getLinkedEditingRanges(e,n){let r=e.html;if(!r)return null;let i=this.lang.findLinkedEditingRanges(e,n,r);return i?{ranges:i}:null}async doTagComplete(e,n){if(!await this.featureEnabled(e,"tagComplete"))return null;let r=e.html,i=e.offsetAt(n);return!r||(0,_r.isInsideFrontmatter)(e.getText(),i)||(0,_r.isInsideExpression)(e.getText(),r.findNodeAt(i).start,i)?null:this.lang.doTagComplete(e,n,r)}prepareRename(e,n){let r=e.html,i=e.offsetAt(n),o=r.findNodeAt(i);if(!o||(0,_r.isPossibleComponent)(o)||!o.tag||!this.isRenameAtTag(o,i))return null;let s=o.start+1;return Gu.Range.create(e.positionAt(s),e.positionAt(s+o.tag.length))}rename(e,n,r){let i=e.html,o=e.offsetAt(n);if(!i||(0,_r.isInsideFrontmatter)(e.getText(),o))return null;let s=i.findNodeAt(o);return!s||(0,_r.isPossibleComponent)(s)||!this.isRenameAtTag(s,o)?null:this.lang.doRename(e,n,r,i)}async getDocumentSymbols(e){if(!await this.featureEnabled(e,"documentSymbols"))return[];let n=e.html;return n?this.lang.findDocumentSymbols(e,n):[]}getLangCompletions(e){let n=e.filter(o=>o.kind===Gu.CompletionItemKind.Property&&this.styleScriptTemplate.has(o.label)),r=[];return i("style",["scss","sass","less","styl","stylus"]),r;function i(o,s){let l=n.find(a=>a.label===o);!l||s.forEach(a=>r.push({...l,label:`${o} (lang="${a}")`,insertText:l.insertText&&`${l.insertText} lang="${a}"`,textEdit:l.textEdit&&Gu.TextEdit.is(l.textEdit)?{range:l.textEdit.range,newText:`${l.textEdit.newText} lang="${a}"`}:void 0}))}}isRenameAtTag(e,n){if(!e.tag)return!1;let r=e.start+`<${e.tag}`.length,i=n>e.start&&n<=r,o=e.endTagStart!==void 0&&n>=e.endTagStart&&n<e.end;return i||o}async featureEnabled(e,n){return await this.configManager.isEnabled(e,"html")&&await this.configManager.isEnabled(e,"html",n)}};Ju.HTMLPlugin=eg});var H0=X(j0=>{"use strict";Object.defineProperty(j0,"__esModule",{value:!0})});var rg=X(Xu=>{"use strict";Object.defineProperty(Xu,"__esModule",{value:!0});Xu.PluginHost=void 0;var Yz=pt(),Zz=Pt(),B0=dt(),nt;(function(t){t[t.None=0]="None",t[t.FirstNonNull=1]="FirstNonNull",t[t.Collect=2]="Collect"})(nt||(nt={}));var ng=class{constructor(e){this.docManager=e,this.plugins=[],this.pluginHostConfig={filterIncompleteCompletions:!0,definitionLinkSupport:!1}}initialize(e){this.pluginHostConfig=e}registerPlugin(e){this.plugins.push(e)}async getCompletions(e,n,r,i){let o=this.getDocument(e.uri),s=await Promise.all(this.plugins.map(async h=>{let p=await this.tryExecutePlugin(h,"getCompletions",[o,n,r,i],null);if(p)return{result:p,plugin:h.__name}})).then(h=>h.filter(B0.isNotNullOrUndefined)),l=s.find(h=>h.plugin==="html"),a=s.find(h=>h.plugin==="typescript"),c=s.find(h=>h.plugin==="astro");if(l&&a){let h=(0,Zz.isInComponentStartTag)(o.html,o.offsetAt(n));l.result.items.length>0&&(a.result.items=[]),c&&c.result.items.length>0&&h&&(a.result.items=[])}let u=s.flatMap(h=>h.result.items),d=s.reduce((h,p)=>h||p.result.isIncomplete,!1);if(d&&this.pluginHostConfig.filterIncompleteCompletions){let h=o.offsetAt(n),p=o.getText().substring(Math.max(0,h-20),h),w=(0,B0.regexLastIndexOf)(p,/[\W\s]/g)+1,v=p.substring(w).toLowerCase();u=u.filter(x=>x.label.toLowerCase().includes(v))}return Yz.CompletionList.create(u,d)}async resolveCompletion(e,n){let r=this.getDocument(e.uri);return await this.execute("resolveCompletion",[r,n],nt.FirstNonNull)??n}async getDiagnostics(e){let n=this.getDocument(e.uri);return await this.execute("getDiagnostics",[n],nt.Collect)}async doHover(e,n){let r=this.getDocument(e.uri);return this.execute("doHover",[r,n],nt.FirstNonNull)}async formatDocument(e,n){let r=this.getDocument(e.uri);return await this.execute("formatDocument",[r,n],nt.Collect)}async getCodeActions(e,n,r,i){let o=this.getDocument(e.uri);return await this.execute("getCodeActions",[o,n,r,i],nt.Collect)}async doTagComplete(e,n){let r=this.getDocument(e.uri);return this.execute("doTagComplete",[r,n],nt.FirstNonNull)}async getFoldingRanges(e){let n=this.getDocument(e.uri);return await this.execute("getFoldingRanges",[n],nt.Collect)}async getDocumentSymbols(e,n){let r=this.getDocument(e.uri);return await this.execute("getDocumentSymbols",[r,n],nt.Collect)}async getSemanticTokens(e,n,r){let i=this.getDocument(e.uri);return await this.execute("getSemanticTokens",[i,n,r],nt.FirstNonNull)}async getLinkedEditingRanges(e,n){let r=this.getDocument(e.uri);return await this.execute("getLinkedEditingRanges",[r,n],nt.FirstNonNull)}async fileReferences(e){let n=this.getDocument(e.uri);return await this.execute("fileReferences",[n],nt.FirstNonNull)}async getDefinitions(e,n){let r=this.getDocument(e.uri),i=await this.execute("getDefinitions",[r,n],nt.Collect);return this.pluginHostConfig.definitionLinkSupport?i:i.map(o=>({range:o.targetSelectionRange,uri:o.targetUri}))}getTypeDefinitions(e,n){let r=this.getDocument(e.uri);return this.execute("getTypeDefinitions",[r,n],nt.FirstNonNull)}getImplementations(e,n){let r=this.getDocument(e.uri);return this.execute("getImplementation",[r,n],nt.FirstNonNull)}getReferences(e,n,r){let i=this.getDocument(e.uri);return this.execute("findReferences",[i,n,r],nt.FirstNonNull)}async prepareRename(e,n){let r=this.getDocument(e.uri);return await this.execute("prepareRename",[r,n],nt.FirstNonNull)}async rename(e,n,r){let i=this.getDocument(e.uri);return this.execute("rename",[i,n,r],nt.FirstNonNull)}async getDocumentColors(e){let n=this.getDocument(e.uri);return await this.execute("getDocumentColors",[n],nt.Collect)}async getColorPresentations(e,n,r){let i=this.getDocument(e.uri);return await this.execute("getColorPresentations",[i,n,r],nt.Collect)}async getInlayHints(e,n,r){let i=this.getDocument(e.uri);return await this.execute("getInlayHints",[i,n],nt.FirstNonNull)??[]}async getSignatureHelp(e,n,r,i){let o=this.getDocument(e.uri);return await this.execute("getSignatureHelp",[o,n,r,i],nt.FirstNonNull)}async onWatchFileChanges(e){for(let n of this.plugins)await n.onWatchFileChanges?.(e)}updateNonAstroFile(e,n,r){for(let i of this.plugins)i.updateNonAstroFile?.(e,n,r)}getDocument(e){let n=this.docManager.get(e);if(!n)throw new Error("Cannot call methods on an unopened document");return n}async execute(e,n,r){let i=this.plugins.filter(o=>typeof o[e]=="function");switch(r){case nt.FirstNonNull:for(let o of i){let s=await this.tryExecutePlugin(o,e,n,null);if(s!=null)return s}return null;case nt.Collect:return(await Promise.all(i.map(o=>this.tryExecutePlugin(o,e,n,[])))).flat();case nt.None:await Promise.all(i.map(o=>this.tryExecutePlugin(o,e,n,null)));return}}async tryExecutePlugin(e,n,r,i){try{return await e[n](...r)}catch(o){return console.error(o),i}}};Xu.PluginHost=ng});var $0=X(Qu=>{"use strict";Object.defineProperty(Qu,"__esModule",{value:!0});Qu.convertToTSX=void 0;var eO=Lt("synckit"),tO=(0,eO.createSyncFn)(Lt.resolve("./TSXWorker"));function nO(t,e){return tO(t,e)}Qu.convertToTSX=nO});var og=X(ig=>{"use strict";Object.defineProperty(ig,"__esModule",{value:!0});var rO=$0();function iO(t,e){return(0,rO.convertToTSX)(t,{sourcefile:e})}ig.default=iO});var Zu=X(Ci=>{"use strict";Object.defineProperty(Ci,"__esModule",{value:!0});Ci.getMarkdownDocumentation=Ci.plain=Ci.getTagDocumentation=void 0;var oO=dt();function sO(t){return t.replace(/\{@(link|linkplain|linkcode) (https?:\/\/[^ |}]+?)(?:[| ]([^{}\n]+?))?\}/gi,(e,n,r,i)=>{switch(n){case"linkcode":return`[\`${i?i.trim():r}\`](${r})`;default:return`[${i?i.trim():r}](${r})`}})}function Yu(t){return sO(t)}function aO(t,e){if(!t.text)return;function n(o){return o.match(/^\s*[~`]{3}/g)?o:"```\n"+o+"\n```"}function r(o){let s=o.match(/<caption>(.*?)<\/caption>\s*(\r\n|\n)/);return s&&s.index===0?s[1]+`
|
|
583
|
+
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",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","Spreview","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",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."}]}});function Cz(t){return typeof t.name=="string"}function Tz(t){return typeof t.name=="string"}function Ez(t){return typeof t.name=="string"}function Dz(t){return typeof t.name=="string"}var ps,Hf=ue(()=>{"use strict";ps=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(let n of e.properties)Cz(n)&&this._properties.push(n);if(Array.isArray(e.atDirectives))for(let n of e.atDirectives)Tz(n)&&this._atDirectives.push(n);if(Array.isArray(e.pseudoClasses))for(let n of e.pseudoClasses)Ez(n)&&this._pseudoClasses.push(n);if(Array.isArray(e.pseudoElements))for(let n of e.pseudoElements)Dz(n)&&this._pseudoElements.push(n)}}});var ms,x0=ue(()=>{"use strict";Ca();jf();Hf();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,n){this.dataProviders=[],e&&this.dataProviders.push(new ps(Wu)),this.dataProviders.push(...n),this.collectData()}collectData(){this._propertySet={},this._atDirectiveSet={},this._pseudoClassSet={},this._pseudoElementSet={},this.dataProviders.forEach(e=>{e.provideProperties().forEach(n=>{this._propertySet[n.name]||(this._propertySet[n.name]=n)}),e.provideAtDirectives().forEach(n=>{this._atDirectiveSet[n.name]||(this._atDirectiveSet[n.name]=n)}),e.providePseudoClasses().forEach(n=>{this._pseudoClassSet[n.name]||(this._pseudoClassSet[n.name]=n)}),e.providePseudoElements().forEach(n=>{this._pseudoElementSet[n.name]||(this._pseudoElementSet[n.name]=n)})}),this._properties=ka(this._propertySet),this._atDirectives=ka(this._atDirectiveSet),this._pseudoClasses=ka(this._pseudoClassSet),this._pseudoElements=ka(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 k0(t,e,n){function r(o){let s=i(o),l;for(let a=s.length-1;a>=0;a--)l=E.SelectionRange.create(E.Range.create(t.positionAt(s[a][0]),t.positionAt(s[a][1])),l);return l||(l=E.SelectionRange.create(E.Range.create(o,o))),l}return e.map(r);function i(o){let s=t.offsetAt(o),l=n.findChildAtOffset(s,!0);if(!l)return[];let a=[];for(;l;){if(l.parent&&l.offset===l.parent.offset&&l.end===l.parent.end){l=l.parent;continue}l.type===A.Declarations&&s>l.offset&&s<l.end&&a.push([l.offset+1,l.end-1]),a.push([l.offset,l.end]),l=l.parent}return a}}var C0=ue(()=>{"use strict";hn();Bt()});function Fz(t){if(t.endsWith(".scss")||t.endsWith(".css"))return[t];if(t.endsWith("/"))return[t+"index.scss",t+"_index.scss"];let e=Ea.parse(t),n=br.basename(e),r=br.dirname(e);return n.startsWith("_")?[br.joinPath(r,n+".scss").toString(!0)]:[br.joinPath(r,n+".scss").toString(!0),br.joinPath(r,"_"+n+".scss").toString(!0),t+"/index.scss",t+"/_index.scss",br.joinPath(r,n+".css").toString(!0)]}var qu,T0=ue(()=>{"use strict";Af();Bt();kf();qr();qu=class extends oo{constructor(e){super(e,!0)}isRawStringDocumentLinkNode(e){return super.isRawStringDocumentLinkNode(e)||e.type===A.Use||e.type===A.Forward}async mapReference(e,n){if(this.fileSystemProvider&&e&&n){let r=Fz(e);for(let i of r)if(await this.fileExists(i))return i}return e}async resolveReference(e,n,r,i=!1){if(!ot(e,"sass:"))return super.resolveReference(e,n,r,i)}}});var D0={};xd(D0,{ClientCapabilities:()=>af,CodeAction:()=>E.CodeAction,CodeActionContext:()=>E.CodeActionContext,CodeActionKind:()=>E.CodeActionKind,Color:()=>E.Color,ColorInformation:()=>E.ColorInformation,ColorPresentation:()=>E.ColorPresentation,Command:()=>E.Command,CompletionItem:()=>E.CompletionItem,CompletionItemKind:()=>E.CompletionItemKind,CompletionItemTag:()=>E.CompletionItemTag,CompletionList:()=>E.CompletionList,Diagnostic:()=>E.Diagnostic,DiagnosticSeverity:()=>E.DiagnosticSeverity,DocumentHighlight:()=>E.DocumentHighlight,DocumentHighlightKind:()=>E.DocumentHighlightKind,DocumentLink:()=>E.DocumentLink,DocumentSymbol:()=>E.DocumentSymbol,DocumentUri:()=>E.DocumentUri,FileType:()=>yi,FoldingRange:()=>E.FoldingRange,FoldingRangeKind:()=>E.FoldingRangeKind,Hover:()=>E.Hover,InsertTextFormat:()=>E.InsertTextFormat,Location:()=>E.Location,MarkedString:()=>E.MarkedString,MarkupContent:()=>E.MarkupContent,MarkupKind:()=>E.MarkupKind,Position:()=>E.Position,Range:()=>E.Range,SelectionRange:()=>E.SelectionRange,SymbolInformation:()=>E.SymbolInformation,SymbolKind:()=>E.SymbolKind,TextDocument:()=>Ao,TextDocumentEdit:()=>E.TextDocumentEdit,TextEdit:()=>E.TextEdit,VersionedTextDocumentIdentifier:()=>E.VersionedTextDocumentIdentifier,WorkspaceEdit:()=>E.WorkspaceEdit,getCSSLanguageService:()=>Rz,getDefaultCSSDataProvider:()=>Az,getLESSLanguageService:()=>Mz,getSCSSLanguageService:()=>Iz,newCSSDataProvider:()=>E0});function Az(){return E0(Wu)}function E0(t){return new ps(t)}function Bf(t,e,n,r,i,o,s){return{configure:l=>{o.configure(l),e.configure(l?.completion),n.configure(l?.hover)},setDataProviders:s.setDataProviders.bind(s),doValidation:o.doValidation.bind(o),parseStylesheet:t.parseStylesheet.bind(t),doComplete:e.doComplete.bind(e),doComplete2:e.doComplete2.bind(e),setCompletionParticipants:e.setCompletionParticipants.bind(e),doHover:n.doHover.bind(n),format:_0,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:p0,getSelectionRanges:k0}}function Rz(t=$f){let e=new ms(t);return Bf(new Si,new xi(null,t,e),new ss(t&&t.clientCapabilities,e),new oo(t&&t.fileSystemProvider,!1),new ls(e),new cs(e),e)}function Iz(t=$f){let e=new ms(t);return Bf(new Ou,new _t(t,e),new ss(t&&t.clientCapabilities,e),new qu(t&&t.fileSystemProvider),new ls(e),new cs(e),e)}function Mz(t=$f){let e=new ms(t);return Bf(new Nu,new Xr(t,e),new ss(t&&t.clientCapabilities,e),new oo(t&&t.fileSystemProvider,!0),new ls(e),new cs(e),e)}var $f,F0=ue(()=>{"use strict";gu();xu();Kx();Af();Zx();r0();s0();l0();u0();d0();m0();S0();x0();Hf();C0();T0();jf();hn();$f={}});var A0=X(Uu=>{"use strict";Object.defineProperty(Uu,"__esModule",{value:!0});Uu.pseudoClass=void 0;Uu.pseudoClass=[{name:":global()",description:"Apply styles to a selector globally",references:[{name:"Astro documentation",url:"https://docs.astro.build/en/guides/styling/#global-styles-within-style-tag"}]}]});var ju=X(fs=>{"use strict";Object.defineProperty(fs,"__esModule",{value:!0});fs.getLanguageService=fs.getLanguage=void 0;var Vf=(F0(),Mi(D0)),Pz=A0(),zz={providePseudoClasses(){return Pz.pseudoClass},provideProperties(){return[]},provideAtDirectives(){return[]},providePseudoElements(){return[]}},[Oz,Lz,Nz]=[Vf.getCSSLanguageService,Vf.getSCSSLanguageService,Vf.getLESSLanguageService].map(t=>t({customDataProviders:[zz]})),Wz={css:Oz,scss:Lz,less:Nz};function R0(t){switch(t){case"scss":case"text/scss":return"scss";case"less":case"text/less":return"less";case"css":case"text/css":default:return"css"}}fs.getLanguage=R0;function qz(t){let e=R0(t);return Wz[e]}fs.getLanguageService=qz});var I0=X(Hu=>{"use strict";Object.defineProperty(Hu,"__esModule",{value:!0});Hu.CSSDocument=void 0;var Uz=Pt(),jz=ju(),Kf=class extends Uz.ReadableDocument{constructor(e,n){super(),this.parent=e,this.styleInfo=n,this.version=this.parent.version,this.languageId=this.language,this.stylesheet=(0,jz.getLanguageService)(this.language).parseStylesheet(this)}getOriginalPosition(e){let n=this.styleInfo.start+this.offsetAt(e);return this.parent.positionAt(n)}getGeneratedPosition(e){let n=this.parent.offsetAt(e)-this.styleInfo.start;return this.positionAt(n)}isInGenerated(e){let n=this.parent.offsetAt(e);return n>=this.styleInfo.start&&n<=this.styleInfo.end}getText(){return this.parent.getText().slice(this.styleInfo.start,this.styleInfo.end)}getTextLength(){return this.styleInfo.end-this.styleInfo.start}getFilePath(){return this.parent.getFilePath()}getURL(){return this.parent.getURL()}getAttributes(){return this.styleInfo.attributes}get language(){let e=this.getAttributes();return e.lang||e.type||"css"}};Hu.CSSDocument=Kf});var O0=X(Yr=>{"use strict";Object.defineProperty(Yr,"__esModule",{value:!0});Yr.collectSelectors=Yr.NodeType=Yr.getIdClassCompletion=void 0;var M0=pt();function Hz(t,e){let n=Bz(e);if(!n)return null;let r=P0(t,n);return M0.CompletionList.create(r)}Yr.getIdClassCompletion=Hz;function Bz(t){if(t.inValue){if(t.name==="class")return Bu.ClassSelector;if(t.name==="id")return Bu.IdentifierSelector}else if(t.name.startsWith("class:"))return Bu.ClassSelector}var Bu;(function(t){t[t.ClassSelector=14]="ClassSelector",t[t.IdentifierSelector=15]="IdentifierSelector"})(Bu=Yr.NodeType||(Yr.NodeType={}));function P0(t,e){let n=[];return t.forEach(r=>{z0(r,i=>{i.type===e&&n.push(i)})}),n.map(r=>({label:r.getText().substring(1),kind:M0.CompletionItemKind.Keyword}))}Yr.collectSelectors=P0;function z0(t,e){e(t),t.children&&t.children.forEach(n=>z0(n,e))}});var N0=X(Vu=>{"use strict";Object.defineProperty(Vu,"__esModule",{value:!0});Vu.StyleAttributeDocument=void 0;var $z=Pt(),Vz=ju(),$u="__ {",L0="}",Gf=class extends $z.ReadableDocument{constructor(e,n,r){super(),this.parent=e,this.attrStart=n,this.attrEnd=r,this.version=this.parent.version,this.languageId="css",this.stylesheet=(0,Vz.getLanguageService)(this.languageId).parseStylesheet(this)}getOriginalPosition(e){let n=this.attrStart+this.offsetAt(e)-$u.length;return this.parent.positionAt(n)}getGeneratedPosition(e){let n=this.parent.offsetAt(e)-this.attrStart+$u.length;return this.positionAt(n)}isInGenerated(e){let n=this.parent.offsetAt(e);return n>=this.attrStart&&n<=this.attrEnd}getText(){return $u+this.parent.getText().slice(this.attrStart,this.attrEnd)+L0}getTextLength(){return $u.length+this.attrEnd-this.attrStart+L0.length}getFilePath(){return this.parent.getFilePath()}getURL(){return this.parent.getURL()}};Vu.StyleAttributeDocument=Gf});var Yf=X(Ku=>{"use strict";Object.defineProperty(Ku,"__esModule",{value:!0});Ku.CSSPlugin=void 0;var Jf=(Ym(),Mi(Qm)),W0=pt(),Tn=Pt(),q0=Up(),Kz=I0(),Gz=O0(),wr=ju(),U0=N0(),Qf=class{constructor(e){this.__name="css",this.cssDocuments=new WeakMap,this.triggerCharacters=new Set([".",":","-","/"]),this.configManager=e}async doHover(e,n){if(!await this.featureEnabled(e,"hover")||(0,Tn.isInsideFrontmatter)(e.getText(),e.offsetAt(n)))return null;let r=this.getStyleTagForPosition(e,n);if(r&&!r.closed)return null;if(!r){let s=(0,q0.getAttributeContextAtPosition)(e,n);if(!s)return null;if(this.inStyleAttributeWithoutInterpolation(s,e.getText())){let[l,a]=s.valueRange;return this.doHoverInternal(new U0.StyleAttributeDocument(e,l,a),n)}return null}let i=this.getCSSDocumentForStyleTag(r,e),o=yr(i);return Xf(o)?this.doHoverInternal(i,n):null}doHoverInternal(e,n){let r=(0,wr.getLanguageService)(yr(e)).doHover(e,e.getGeneratedPosition(n),e.stylesheet);return r&&(0,Tn.mapHoverToParent)(e,r)}async getCompletions(e,n,r){if(!await this.featureEnabled(e,"completions")||(0,Tn.isInsideFrontmatter)(e.getText(),e.offsetAt(n)))return null;let i=r?.triggerCharacter;if(r?.triggerKind===W0.CompletionTriggerKind.TriggerCharacter&&i&&!this.triggerCharacters.has(i))return null;let l=this.getStyleTagForPosition(e,n);if(l&&!l.closed)return null;if(!l){let c=(0,q0.getAttributeContextAtPosition)(e,n);if(!c)return null;if(this.inStyleAttributeWithoutInterpolation(c,e.getText())){let[u,d]=c.valueRange;return await this.getCompletionsInternal(e,n,new U0.StyleAttributeDocument(e,u,d))}else if((c.name=="id"||c.name=="class")&&c.inValue){let u=this.getStylesheetsForDocument(e);return(0,Gz.getIdClassCompletion)(u,c)}return null}let a=this.getCSSDocumentForStyleTag(l,e);return await this.getCompletionsInternal(e,n,a)}async getCompletionsInternal(e,n,r){let i=await this.configManager.getEmmetConfig(e);if(Jz(r))return(0,Jf.doComplete)(e,n,"sass",i)||null;let o=yr(r),s=(0,wr.getLanguageService)(o),l={isIncomplete:!1,items:[]};((await this.configManager.getConfig("astro",e.uri))?.css?.completions?.emmet??!0)&&s.setCompletionParticipants([{onCssProperty:u=>{u?.propertyName&&(l=(0,Jf.doComplete)(r,r.getGeneratedPosition(n),(0,wr.getLanguage)(o),i)||l)},onCssPropertyValue:u=>{u?.propertyValue&&(l=(0,Jf.doComplete)(r,r.getGeneratedPosition(n),(0,wr.getLanguage)(o),i)||l)}}]);let c=s.doComplete(r,r.getGeneratedPosition(n),r.stylesheet);return W0.CompletionList.create([...c?c.items:[],...l.items].map(u=>(0,Tn.mapCompletionItemToOriginal)(r,u)),l.items.length>0)}async getDocumentColors(e){return await this.featureEnabled(e,"documentColors")?this.getCSSDocumentsForDocument(e).flatMap(r=>{let i=yr(r),o=(0,wr.getLanguageService)(i);return Xf(i)?o.findDocumentColors(r,r.stylesheet).map(s=>(0,Tn.mapObjWithRangeToOriginal)(r,s)):[]}):[]}async getColorPresentations(e,n,r){return await this.featureEnabled(e,"documentColors")?this.getCSSDocumentsForDocument(e).flatMap(o=>{let s=yr(o),l=(0,wr.getLanguageService)(s);return!o.isInGenerated(n.start)&&!o.isInGenerated(n.end)||!Xf(s)?[]:l.getColorPresentations(o,o.stylesheet,r,(0,Tn.mapRangeToGenerated)(o,n)).map(a=>(0,Tn.mapColorPresentationToOriginal)(o,a))}):[]}prepareRename(e,n){let r=this.getStyleTagForPosition(e,n);if(!r)return null;let i=this.getCSSDocumentForStyleTag(r,e),o=yr(i),l=(0,wr.getLanguageService)(o).prepareRename(i,i.getGeneratedPosition(n),i.stylesheet);return l?(0,Tn.mapRangeToOriginal)(i,l):null}rename(e,n,r){let i=this.getStyleTagForPosition(e,n);if(!i)return null;let o=this.getCSSDocumentForStyleTag(i,e),s=yr(o),a=(0,wr.getLanguageService)(s).doRename(o,o.getGeneratedPosition(n),r,o.stylesheet);return a?.changes?.[e.uri]&&(a.changes[e.uri]=a?.changes?.[e.uri].map(c=>(0,Tn.mapObjWithRangeToOriginal)(o,c))),a}getFoldingRanges(e){return this.getCSSDocumentsForDocument(e).flatMap(r=>{let i=yr(r);return(0,wr.getLanguageService)(i).getFoldingRanges(r).map(s=>(0,Tn.mapFoldingRangeToParent)(r,s))})}async getDocumentSymbols(e){return await this.featureEnabled(e,"documentSymbols")?this.getCSSDocumentsForDocument(e).flatMap(r=>(0,wr.getLanguageService)(yr(r)).findDocumentSymbols(r,r.stylesheet).map(i=>(0,Tn.mapSymbolInformationToOriginal)(r,i))):[]}inStyleAttributeWithoutInterpolation(e,n){return e.name==="style"&&!!e.valueRange&&!n.substring(e.valueRange[0],e.valueRange[1]).includes("{")}getCSSDocumentForStyleTag(e,n){let r=this.cssDocuments.get(e);return(!r||r.version<n.version)&&(r=new Kz.CSSDocument(n,e),this.cssDocuments.set(e,r)),r}getCSSDocumentsForDocument(e){return e.styleTags.map(n=>this.getCSSDocumentForStyleTag(n,e))}getStylesheetsForDocument(e){return this.getCSSDocumentsForDocument(e).map(n=>n.stylesheet)}getStyleTagForPosition(e,n){return e.styleTags.find(r=>(0,Tn.isInTag)(n,r))}async featureEnabled(e,n){return await this.configManager.isEnabled(e,"css")&&await this.configManager.isEnabled(e,"css",n)}};Ku.CSSPlugin=Qf;function Xf(t){switch(t){case"css":case"scss":case"less":return!0;default:return!1}}function Jz(t){switch(yr(t)){case"sass":return!0;default:return!1}}function yr(t){return t.languageId.replace(/^text\//,"")}});var tg=X(Ju=>{"use strict";Object.defineProperty(Ju,"__esModule",{value:!0});Ju.HTMLPlugin=void 0;var Xz=(Ym(),Mi(Qm)),Zf=(Xs(),Mi(Js)),Gu=pt(),_r=ar(),gs=$p(),Qz=Vp(),eg=class{constructor(e){this.__name="html",this.lang=(0,Zf.getLanguageService)({customDataProviders:[gs.astroAttributes,gs.astroElements,gs.classListAttribute]}),this.attributeOnlyLang=(0,Zf.getLanguageService)({customDataProviders:[gs.astroAttributes],useDefaultDataProvider:!1}),this.componentLang=(0,Zf.getLanguageService)({customDataProviders:[gs.astroAttributes,gs.astroDirectives],useDefaultDataProvider:!1}),this.styleScriptTemplate=new Set(["style"]),this.configManager=e}async doHover(e,n){if(!await this.featureEnabled(e,"hover"))return null;let r=e.html;if(!r)return null;let i=r.findNodeAt(e.offsetAt(n));return i?(0,_r.isPossibleComponent)(i)&&i.tag!=="Fragment"?this.componentLang.doHover(e,n,r):this.lang.doHover(e,n,r):null}async getCompletions(e,n){if(!await this.featureEnabled(e,"completions"))return null;let r=e.html,i=e.offsetAt(n);if(!r||(0,_r.isInsideFrontmatter)(e.getText(),i)||(0,_r.isInsideExpression)(e.getText(),r.findNodeAt(i).start,i))return null;let o={isIncomplete:!0,items:[]},s=await this.configManager.getEmmetConfig(e);((await this.configManager.getConfig("astro",e.uri)??{})?.html?.completions?.emmet??!0)&&this.lang.setCompletionParticipants([{onHtmlContent:()=>o=(0,Xz.doComplete)(e,n,"html",s)||o}]);let a=(0,_r.isInComponentStartTag)(r,i),c=(0,_r.isInTagName)(r,i),u=a&&!c?(0,Qz.removeDataAttrCompletion)(this.attributeOnlyLang.doComplete(e,n,r).items):this.lang.doComplete(e,n,r).items.filter(h),d=a?[]:this.getLangCompletions(u);return Gu.CompletionList.create([...u,...d,...o.items],o.items.length>0);function h(p){return!(["script","style"].includes(p.label)&&p.documentation===void 0)}}getFoldingRanges(e){return e.html?this.lang.getFoldingRanges(e):null}getLinkedEditingRanges(e,n){let r=e.html;if(!r)return null;let i=this.lang.findLinkedEditingRanges(e,n,r);return i?{ranges:i}:null}async doTagComplete(e,n){if(!await this.featureEnabled(e,"tagComplete"))return null;let r=e.html,i=e.offsetAt(n);return!r||(0,_r.isInsideFrontmatter)(e.getText(),i)||(0,_r.isInsideExpression)(e.getText(),r.findNodeAt(i).start,i)?null:this.lang.doTagComplete(e,n,r)}prepareRename(e,n){let r=e.html,i=e.offsetAt(n),o=r.findNodeAt(i);if(!o||(0,_r.isPossibleComponent)(o)||!o.tag||!this.isRenameAtTag(o,i))return null;let s=o.start+1;return Gu.Range.create(e.positionAt(s),e.positionAt(s+o.tag.length))}rename(e,n,r){let i=e.html,o=e.offsetAt(n);if(!i||(0,_r.isInsideFrontmatter)(e.getText(),o))return null;let s=i.findNodeAt(o);return!s||(0,_r.isPossibleComponent)(s)||!this.isRenameAtTag(s,o)?null:this.lang.doRename(e,n,r,i)}async getDocumentSymbols(e){if(!await this.featureEnabled(e,"documentSymbols"))return[];let n=e.html;return n?this.lang.findDocumentSymbols(e,n):[]}getLangCompletions(e){let n=e.filter(o=>o.kind===Gu.CompletionItemKind.Property&&this.styleScriptTemplate.has(o.label)),r=[];return i("style",["scss","sass","less","styl","stylus"]),r;function i(o,s){let l=n.find(a=>a.label===o);!l||s.forEach(a=>r.push({...l,label:`${o} (lang="${a}")`,insertText:l.insertText&&`${l.insertText} lang="${a}"`,textEdit:l.textEdit&&Gu.TextEdit.is(l.textEdit)?{range:l.textEdit.range,newText:`${l.textEdit.newText} lang="${a}"`}:void 0}))}}isRenameAtTag(e,n){if(!e.tag)return!1;let r=e.start+`<${e.tag}`.length,i=n>e.start&&n<=r,o=e.endTagStart!==void 0&&n>=e.endTagStart&&n<e.end;return i||o}async featureEnabled(e,n){return await this.configManager.isEnabled(e,"html")&&await this.configManager.isEnabled(e,"html",n)}};Ju.HTMLPlugin=eg});var H0=X(j0=>{"use strict";Object.defineProperty(j0,"__esModule",{value:!0})});var rg=X(Xu=>{"use strict";Object.defineProperty(Xu,"__esModule",{value:!0});Xu.PluginHost=void 0;var Yz=pt(),Zz=Pt(),B0=dt(),nt;(function(t){t[t.None=0]="None",t[t.FirstNonNull=1]="FirstNonNull",t[t.Collect=2]="Collect"})(nt||(nt={}));var ng=class{constructor(e){this.docManager=e,this.plugins=[],this.pluginHostConfig={filterIncompleteCompletions:!0,definitionLinkSupport:!1}}initialize(e){this.pluginHostConfig=e}registerPlugin(e){this.plugins.push(e)}async getCompletions(e,n,r,i){let o=this.getDocument(e.uri),s=await Promise.all(this.plugins.map(async h=>{let p=await this.tryExecutePlugin(h,"getCompletions",[o,n,r,i],null);if(p)return{result:p,plugin:h.__name}})).then(h=>h.filter(B0.isNotNullOrUndefined)),l=s.find(h=>h.plugin==="html"),a=s.find(h=>h.plugin==="typescript"),c=s.find(h=>h.plugin==="astro");if(l&&a){let h=(0,Zz.isInComponentStartTag)(o.html,o.offsetAt(n));l.result.items.length>0&&(a.result.items=[]),c&&c.result.items.length>0&&h&&(a.result.items=[])}let u=s.flatMap(h=>h.result.items),d=s.reduce((h,p)=>h||p.result.isIncomplete,!1);if(d&&this.pluginHostConfig.filterIncompleteCompletions){let h=o.offsetAt(n),p=o.getText().substring(Math.max(0,h-20),h),w=(0,B0.regexLastIndexOf)(p,/[\W\s]/g)+1,v=p.substring(w).toLowerCase();u=u.filter(x=>x.label.toLowerCase().includes(v))}return Yz.CompletionList.create(u,d)}async resolveCompletion(e,n){let r=this.getDocument(e.uri);return await this.execute("resolveCompletion",[r,n],nt.FirstNonNull)??n}async getDiagnostics(e){let n=this.getDocument(e.uri);return await this.execute("getDiagnostics",[n],nt.Collect)}async doHover(e,n){let r=this.getDocument(e.uri);return this.execute("doHover",[r,n],nt.FirstNonNull)}async formatDocument(e,n){let r=this.getDocument(e.uri);return await this.execute("formatDocument",[r,n],nt.Collect)}async getCodeActions(e,n,r,i){let o=this.getDocument(e.uri);return await this.execute("getCodeActions",[o,n,r,i],nt.Collect)}async doTagComplete(e,n){let r=this.getDocument(e.uri);return this.execute("doTagComplete",[r,n],nt.FirstNonNull)}async getFoldingRanges(e){let n=this.getDocument(e.uri);return await this.execute("getFoldingRanges",[n],nt.Collect)}async getDocumentSymbols(e,n){let r=this.getDocument(e.uri);return await this.execute("getDocumentSymbols",[r,n],nt.Collect)}async getSemanticTokens(e,n,r){let i=this.getDocument(e.uri);return await this.execute("getSemanticTokens",[i,n,r],nt.FirstNonNull)}async getLinkedEditingRanges(e,n){let r=this.getDocument(e.uri);return await this.execute("getLinkedEditingRanges",[r,n],nt.FirstNonNull)}async fileReferences(e){let n=this.getDocument(e.uri);return await this.execute("fileReferences",[n],nt.FirstNonNull)}async getDefinitions(e,n){let r=this.getDocument(e.uri),i=await this.execute("getDefinitions",[r,n],nt.Collect);return this.pluginHostConfig.definitionLinkSupport?i:i.map(o=>({range:o.targetSelectionRange,uri:o.targetUri}))}getTypeDefinitions(e,n){let r=this.getDocument(e.uri);return this.execute("getTypeDefinitions",[r,n],nt.FirstNonNull)}getImplementations(e,n){let r=this.getDocument(e.uri);return this.execute("getImplementation",[r,n],nt.FirstNonNull)}getReferences(e,n,r){let i=this.getDocument(e.uri);return this.execute("findReferences",[i,n,r],nt.FirstNonNull)}async prepareRename(e,n){let r=this.getDocument(e.uri);return await this.execute("prepareRename",[r,n],nt.FirstNonNull)}async rename(e,n,r){let i=this.getDocument(e.uri);return this.execute("rename",[i,n,r],nt.FirstNonNull)}async getDocumentColors(e){let n=this.getDocument(e.uri);return await this.execute("getDocumentColors",[n],nt.Collect)}async getColorPresentations(e,n,r){let i=this.getDocument(e.uri);return await this.execute("getColorPresentations",[i,n,r],nt.Collect)}async getInlayHints(e,n,r){let i=this.getDocument(e.uri);return await this.execute("getInlayHints",[i,n],nt.FirstNonNull)??[]}async getSignatureHelp(e,n,r,i){let o=this.getDocument(e.uri);return await this.execute("getSignatureHelp",[o,n,r,i],nt.FirstNonNull)}async onWatchFileChanges(e){for(let n of this.plugins)await n.onWatchFileChanges?.(e)}updateNonAstroFile(e,n,r){for(let i of this.plugins)i.updateNonAstroFile?.(e,n,r)}getDocument(e){let n=this.docManager.get(e);if(!n)throw new Error("Cannot call methods on an unopened document");return n}async execute(e,n,r){let i=this.plugins.filter(o=>typeof o[e]=="function");switch(r){case nt.FirstNonNull:for(let o of i){let s=await this.tryExecutePlugin(o,e,n,null);if(s!=null)return s}return null;case nt.Collect:return(await Promise.all(i.map(o=>this.tryExecutePlugin(o,e,n,[])))).flat();case nt.None:await Promise.all(i.map(o=>this.tryExecutePlugin(o,e,n,null)));return}}async tryExecutePlugin(e,n,r,i){try{return await e[n](...r)}catch(o){return console.error(o),i}}};Xu.PluginHost=ng});var $0=X(Qu=>{"use strict";Object.defineProperty(Qu,"__esModule",{value:!0});Qu.convertToTSX=void 0;var eO=Lt("synckit"),tO=(0,eO.createSyncFn)(Lt.resolve("./TSXWorker"));function nO(t,e){return tO(t,e)}Qu.convertToTSX=nO});var og=X(ig=>{"use strict";Object.defineProperty(ig,"__esModule",{value:!0});var rO=$0();function iO(t,e){return(0,rO.convertToTSX)(t,{sourcefile:e})}ig.default=iO});var Zu=X(Ti=>{"use strict";Object.defineProperty(Ti,"__esModule",{value:!0});Ti.getMarkdownDocumentation=Ti.plain=Ti.getTagDocumentation=void 0;var oO=dt();function sO(t){return t.replace(/\{@(link|linkplain|linkcode) (https?:\/\/[^ |}]+?)(?:[| ]([^{}\n]+?))?\}/gi,(e,n,r,i)=>{switch(n){case"linkcode":return`[\`${i?i.trim():r}\`](${r})`;default:return`[${i?i.trim():r}](${r})`}})}function Yu(t){return sO(t)}function aO(t,e){if(!t.text)return;function n(o){return o.match(/^\s*[~`]{3}/g)?o:"```\n"+o+"\n```"}function r(o){let s=o.match(/<caption>(.*?)<\/caption>\s*(\r\n|\n)/);return s&&s.index===0?s[1]+`
|
|
584
584
|
|
|
585
585
|
`+n(o.substr(s[0].length)):n(o)}function i(o){let s=o.match(/(.+)\s<([-.\w]+@[-.\w]+)>/);return s===null?o:`${s[1]} ${s[2]}`}switch(t.name){case"example":return r(e.displayPartsToString(t.text));case"author":return i(e.displayPartsToString(t.text));case"default":return n(e.displayPartsToString(t.text))}return Yu(e.displayPartsToString(t.text))}function V0(t,e){function n(){let o=(e.displayPartsToString(t.text)||"").split(/^(\S+)\s*-?\s*/);if(o?.length===3){let s=o[1],l=o[2],a=`*@${t.name}* \`${s}\``;return l?a+(l.match(/\r\n|\n/g)?`
|
|
586
586
|
`+Yu(l):` \u2014 ${Yu(l)}`):a}}switch(t.name){case"augments":case"extends":case"param":case"template":return n()}let r=`*@${t.name}*`,i=aO(t,e);return i?r+(i.match(/\r\n|\n/g)?`
|
|
587
|
-
`+i:` \u2014 ${i}`):r}
|
|
587
|
+
`+i:` \u2014 ${i}`):r}Ti.getTagDocumentation=V0;function K0(t,e){return Yu(typeof t=="string"?t:e.displayPartsToString(t))}Ti.plain=K0;function lO(t,e,n){let r=[];return t&&r.push(K0(t,n)),e&&(r=r.concat(e.map(i=>V0(i,n)))),r.filter(oO.isNotNullOrUndefined).join(`
|
|
588
588
|
|
|
589
|
-
`)}
|
|
589
|
+
`)}Ti.getMarkdownDocumentation=lO});var Zr=X(Ei=>{"use strict";Object.defineProperty(Ei,"__esModule",{value:!0});Ei.findContainingNode=Ei.SnapshotMap=Ei.isPartOfImportStatement=void 0;var cO=Pt();function uO(t,e){let n=(0,cO.getLineAtPosition)(e,t);return/\s*from\s+["'][^"']*/.test(n.slice(0,e.character))}Ei.isPartOfImportStatement=uO;var sg=class{constructor(e){this.languageServiceManager=e,this.map=new Map}set(e,n){this.map.set(e,n)}get(e){return this.map.get(e)}async retrieve(e){let n=this.get(e);if(!n){let r=await this.languageServiceManager.getSnapshot(e);this.set(e,r),n=r}return n}};Ei.SnapshotMap=sg;function G0(t,e,n){let r=t.getChildren(),i=e.start+e.length;for(let o of r){if(!(o.getStart()<=e.start&&o.getEnd()>=i))continue;if(n(o))return o;let s=G0(o,e,n);if(s)return s}}Ei.findContainingNode=G0});var lg=X(bs=>{"use strict";Object.defineProperty(bs,"__esModule",{value:!0});bs.codeActionChangeToTextEdit=bs.CompletionsProviderImpl=void 0;var En=pt(),J0=ft(),dO=Pt(),La=ar(),X0=dt(),hO=Zu(),Xn=bt(),pO=Zr(),mO=/\bimport\s+{([^}]*?)}\s+?from\s+['"`].+?['"`]|\bimport\s+(\w+?)\s+from\s+['"`].+?['"`]/g,fO=new Set(["Svelte2TsxComponent","Svelte2TsxComponentConstructorParameters","SvelteComponentConstructor","SvelteActionReturnType","SvelteTransitionConfig","SvelteTransitionReturnType","SvelteAnimationReturnType","SvelteWithOptionalProps","SvelteAllProps","SveltePropsAnyFallback","SvelteSlotsAnyFallback","SvelteRestProps","SvelteSlots","SvelteStore"]),ag=class{constructor(e,n){this.languageServiceManager=e,this.configManager=n,this.validTriggerCharacters=[".",'"',"'","`","/","@","<","#"],this.ts=e.docContext.ts}isValidTriggerCharacter(e){return this.validTriggerCharacters.includes(e)}async getCompletions(e,n,r,i){let o=r?.triggerCharacter,s=r?.triggerKind,l=this.isValidTriggerCharacter(o)?o:void 0;if(s===En.CompletionTriggerKind.TriggerCharacter&&!l||i?.isCancellationRequested)return null;if(this.canReuseLastCompletion(this.lastCompletion,s,o,e,n))return this.lastCompletion.position=n,this.lastCompletion.completionList;this.lastCompletion=void 0;let c=e.html,u=e.offsetAt(n),d=c.findNodeAt(u),{lang:h,tsDoc:p}=await this.languageServiceManager.getLSAndTSDoc(e),w=p.offsetAt(p.getGeneratedPosition(n)),v=p.filePath,x,_=(0,La.isInsideFrontmatter)(e.getText(),u),f=(0,La.isInsideExpression)(e.getText(),d.start,u),g=await this.configManager.getTSPreferences(e),D=await this.configManager.getTSFormatConfig(e),L;if(d.tag==="script"){let{filePath:M,offset:oe,index:N}=(0,Xn.getScriptTagSnapshot)(p,e,d,n);v=M,L=N,x=h.getCompletionsAtPosition(M,oe,{...g,triggerCharacter:l},D)}else{if(!_&&d.parent&&d.tag===void 0&&!f||!_&&!(0,La.isPossibleComponent)(d)&&!f)return null;x=h.getCompletionsAtPosition(v,w,{...g,triggerCharacter:l},D)}if(x===void 0||x.entries.length===0)return null;let K=this.getExistingImports(e),C=x.entries.filter(M=>this.isValidCompletion(M,this.ts)).map(M=>this.toCompletionItem(p,M,v,w,_,L,K)).filter(X0.isNotNullOrUndefined),T=En.CompletionList.create(C,!0);return this.lastCompletion={key:e.getFilePath()||"",position:n,completionList:T},T}async resolveCompletion(e,n,r){let{lang:i,tsDoc:o}=await this.languageServiceManager.getLSAndTSDoc(e),s=await this.configManager.getTSPreferences(e),l=n.data;if(!l||!l.filePath||r?.isCancellationRequested)return n;let a=i.getCompletionEntryDetails(l.filePath,l.offset,l.originalItem.name,{},l.originalItem.source,s,l.originalItem.data);if(a){let{detail:h,documentation:p}=this.getCompletionDocument(a);n.detail=h,n.documentation=p}let c=a?.codeActions,u=l.scriptTagIndex!==void 0,d;if(u){let{snapshot:h}=(0,Xn.getScriptTagSnapshot)(o,e,e.scriptTags[l.scriptTagIndex].container);d=h}if(c){let h=[];for(let p of c)for(let w of p.changes)u&&w.textChanges.forEach(v=>{let x=d.getOriginalPosition(d.positionAt(v.span.start));v.span.start=o.offsetAt(o.getGeneratedPosition(x))}),h.push(...w.textChanges.map(v=>Q0(e,o,u,v,this.ts)));n.additionalTextEdits=(n.additionalTextEdits??[]).concat(h)}return n}toCompletionItem(e,n,r,i,o,s,l){let a=J0.CompletionItem.create(n.name),c=this.isAstroComponentImport(n.name),u=n.insertText?.includes("import");if(c&&!u&&o||(c?(a.label=(0,Xn.removeAstroComponentSuffix)(n.name),a.kind=J0.CompletionItemKind.File,a.detail=n.data?.moduleSpecifier):a.kind=(0,Xn.scriptElementKindToCompletionItemKind)(n.kind,this.ts),c&&l.has(a.label)))return null;if(n.kindModifiers){let d=new Set(n.kindModifiers.split(/,|\s+/g));d.has(this.ts.ScriptElementKindModifier.optionalModifier)&&(a.insertText||(a.insertText=a.label),a.filterText||(a.filterText=a.label),a.label+="?"),d.has(this.ts.ScriptElementKindModifier.deprecatedModifier)&&(a.tags=[En.CompletionItemTag.Deprecated])}return a.commitCharacters=(0,Xn.getCommitCharactersForScriptElement)(n.kind,this.ts),a.sortText=n.sortText,a.preselect=n.isRecommended,n.replacementSpan&&(a.insertText=n.insertText?(0,Xn.removeAstroComponentSuffix)(n.insertText):void 0,a.insertTextFormat=n.isSnippet?En.InsertTextFormat.Snippet:En.InsertTextFormat.PlainText,a.textEdit=n.replacementSpan?En.TextEdit.replace((0,Xn.convertToLocationRange)(e,n.replacementSpan),a.insertText??a.label):void 0),{...a,data:{uri:e.getURL(),filePath:r,scriptTagIndex:s,offset:i,originalItem:n}}}getCompletionDocument(e){let{sourceDisplay:n,documentation:r,displayParts:i}=e,o=(0,Xn.removeAstroComponentSuffix)(this.ts.displayPartsToString(i));return n&&(o=this.ts.displayPartsToString(n)),{documentation:{kind:"markdown",value:(0,hO.getMarkdownDocumentation)(r,e.tags,this.ts)},detail:o}}canReuseLastCompletion(e,n,r,i,o){return!!e&&e.key===i.getFilePath()&&e.position.line===o.line&&Math.abs(e.position.character-o.character)<2&&(n===En.CompletionTriggerKind.TriggerForIncompleteCompletions||r==="."&&(0,pO.isPartOfImportStatement)(i.getText(),o))}getExistingImports(e){let r=(0,X0.getRegExpMatches)(mO,e.getText()).map(i=>(i[1]??i[2]).split(",")).flat().map(i=>i.trim());return new Set(r)}isAstroComponentImport(e){return e.endsWith("__AstroComponent_")}isValidCompletion(e,n){let r=e.name==="default"&&e.kindModifiers==n.ScriptElementKindModifier.exportedModifier,i=e.name.startsWith("__sveltets_")||fO.has(e.name);return!(r||i)}};bs.CompletionsProviderImpl=ag;function Q0(t,e,n,r,i){r.newText=(0,Xn.removeAstroComponentSuffix)(r.newText);let{span:o}=r,s,l=(0,Xn.convertRange)(e,o);if(s=(0,dO.mapRangeToOriginal)(e,l),n){let c=!(0,La.getLineAtPosition)(t.positionAt(o.start),t.getText()).trim().startsWith("import");!(r.newText.startsWith(`
|
|
590
590
|
`)||r.newText.startsWith(`\r
|
|
591
591
|
`))&&c&&(r.newText=i.sys.newLine+r.newText)}else{if(t.astroMeta.frontmatter.state===null)return En.TextEdit.replace(En.Range.create(En.Position.create(0,0),En.Position.create(0,0)),`---${i.sys.newLine}${r.newText}---${i.sys.newLine}${i.sys.newLine}`);(0,La.isInsideFrontmatter)(t.getText(),t.offsetAt(s.start))||(s=(0,Xn.ensureFrontmatterInsert)(s,t)),s.start.line===1&&(r.newText.startsWith(`
|
|
592
592
|
`)||r.newText.startsWith(`\r
|
|
593
|
-
`))&&(r.newText=r.newText.trimStart())}return En.TextEdit.replace(s,r.newText)}bs.codeActionChangeToTextEdit=Q0});var ug=X(
|
|
593
|
+
`))&&(r.newText=r.newText.trimStart())}return En.TextEdit.replace(s,r.newText)}bs.codeActionChangeToTextEdit=Q0});var ug=X(Di=>{"use strict";Object.defineProperty(Di,"__esModule",{value:!0});Di.CodeActionsProviderImpl=Di.sortImportKind=void 0;var tn=Xt(),so=Pt(),gO=dt(),ao=bt(),bO=lg(),vO=Zr();Di.sortImportKind=`${tn.CodeActionKind.Source}.sortImports`;var cg=class{constructor(e,n){this.languageServiceManager=e,this.configManager=n,this.ts=e.docContext.ts}async getCodeActions(e,n,r,i){let{lang:o,tsDoc:s}=await this.languageServiceManager.getLSAndTSDoc(e),l=await this.configManager.getTSPreferences(e),a=await this.configManager.getTSFormatConfig(e),c=[];if(i?.isCancellationRequested)return[];if(r.only?.[0]===tn.CodeActionKind.SourceOrganizeImports)return await this.organizeSortImports(e,!1,i);if(r.only?.[0]===Di.sortImportKind)return await this.organizeSortImports(e,!0,i);if(r.only?.[0]===tn.CodeActionKind.Source)return[...await this.organizeSortImports(e,!0,i),...await this.organizeSortImports(e,!1,i)];if(r.diagnostics.length&&(!r.only||r.only.includes(tn.CodeActionKind.QuickFix))){let h=r.diagnostics.map(f=>Number(f.code)).filter(f=>f!==7027),w=e.html.findNodeAt(e.offsetAt(n.start)),v,x=!1;if(w.tag==="script"){let{snapshot:f,filePath:g}=(0,ao.getScriptTagSnapshot)(s,e,w),D=f.offsetAt(f.getGeneratedPosition(n.start)),L=f.offsetAt(f.getGeneratedPosition(n.end));v=o.getCodeFixesAtPosition(g,D,L,h,a,l),v=v.map(K=>({...K,changes:d(K.changes,f)})),x=!0}else{let f=s.offsetAt(s.getGeneratedPosition(n.start)),g=s.offsetAt(s.getGeneratedPosition(n.end));v=h.includes(2304)?this.getComponentQuickFix(f,g,o,s.filePath,a,l):void 0,v=v??o.getCodeFixesAtPosition(s.filePath,f,g,h,a,l)}let _=v.map(f=>u(f,r.diagnostics,r.only?tn.CodeActionKind.QuickFix:tn.CodeActionKind.Empty,x,this.ts));c.push(..._)}return c;function u(h,p,w,v,x){let _=h.changes.map(g=>tn.TextDocumentEdit.create(tn.OptionalVersionedTextDocumentIdentifier.create(e.getURL(),null),g.textChanges.map(D=>{let L=(0,so.mapRangeToOriginal)(s,(0,ao.convertRange)(s,D.span));if(v){if(h.fixName==="import"){let C=!(0,so.getLineAtPosition)(e.positionAt(D.span.start),e.getText()).trim().startsWith("import");!(D.newText.startsWith(`
|
|
594
594
|
`)||D.newText.startsWith(`\r
|
|
595
|
-
`))&&C&&(D.newText=x.sys.newLine+D.newText)}}else{if(h.fixName==="import")return(0,bO.codeActionChangeToTextEdit)(e,s,!1,D,x);h.fixName==="fixMissingFunctionDeclaration"&&(L=(0,ao.checkEndOfFileCodeInsert)(L,e))}return tn.TextEdit.replace(L,D.newText)}))),f=tn.CodeAction.create(h.description,{documentChanges:_},w);return f.diagnostics=p,f}function d(h,p){return h.map(w=>(w.textChanges.map(v=>(v.span.start=(0,so.mapScriptSpanStartToSnapshot)(v.span,p,s),v)),w))}}getComponentQuickFix(e,n,r,i,o,s){let l=r.getProgram()?.getSourceFile(i);if(!l)return;let a=(0,vO.findContainingNode)(l,{start:e,length:n-e},w=>this.ts.isJsxClosingElement(w)||this.ts.isJsxOpeningLikeElement(w));if(!a)return;let c=a.tagName,u=r.getCompletionsAtPosition(i,c.getEnd(),s,o);if(!u)return;let d=c.getText(),h=d+"__AstroComponent_",p=w=>r.getCompletionEntryDetails(i,n,w.name,{},w.source,{},w.data)?.codeActions?.map(v=>({...v,description:(0,ao.removeAstroComponentSuffix)(v.description),fixName:"import"}))??[];return u.entries.filter(w=>w.name===d||w.name===h).flatMap(p)}async organizeSortImports(e,n=!1,r){let{lang:i,tsDoc:o}=await this.languageServiceManager.getLSAndTSDoc(e),s=o.filePath;if(r?.isCancellationRequested)return[];let l=[];e.astroMeta.frontmatter.state==="closed"&&l.push(...i.organizeImports({fileName:s,type:"file",skipDestructiveCodeActions:n},{},{})),e.scriptTags.forEach(c=>{let{filePath:u,snapshot:d}=(0,ao.getScriptTagSnapshot)(o,e,c.container),h=i.organizeImports({fileName:u,type:"file",skipDestructiveCodeActions:n},{},{});h.forEach(p=>(p.fileName=o.filePath,p.textChanges=p.textChanges.map(w=>{w.span.start=(0,so.mapScriptSpanStartToSnapshot)(w.span,d,o);let v=(0,so.mapRangeToOriginal)(o,(0,ao.convertRange)(o,w.span));return v.end.character===0&&v.end.line===0&&(w.span.length-=1),w}).filter(w=>d.isInGenerated(e.positionAt(w.span.start))&&!w.newText.includes("export { }")),p)),l.push(...h)});let a=l.map(c=>tn.TextDocumentEdit.create(tn.OptionalVersionedTextDocumentIdentifier.create(e.url,null),c.textChanges.map(u=>{let d=(0,so.mapRangeToOriginal)(o,(0,ao.convertRange)(o,u.span));return e.offsetAt(d.start)<(e.astroMeta.content.firstNonWhitespaceOffset??0)&&e.offsetAt(d.end)>e.astroMeta.frontmatter.endOffset&&(d.end=e.positionAt(e.astroMeta.frontmatter.endOffset)),tn.TextEdit.replace(d,this.fixIndentationOfImports(u.newText,d,e))})));return[tn.CodeAction.create(n?"Sort Imports":"Organize Imports",{documentChanges:a},n?
|
|
595
|
+
`))&&C&&(D.newText=x.sys.newLine+D.newText)}}else{if(h.fixName==="import")return(0,bO.codeActionChangeToTextEdit)(e,s,!1,D,x);h.fixName==="fixMissingFunctionDeclaration"&&(L=(0,ao.checkEndOfFileCodeInsert)(L,e))}return tn.TextEdit.replace(L,D.newText)}))),f=tn.CodeAction.create(h.description,{documentChanges:_},w);return f.diagnostics=p,f}function d(h,p){return h.map(w=>(w.textChanges.map(v=>(v.span.start=(0,so.mapScriptSpanStartToSnapshot)(v.span,p,s),v)),w))}}getComponentQuickFix(e,n,r,i,o,s){let l=r.getProgram()?.getSourceFile(i);if(!l)return;let a=(0,vO.findContainingNode)(l,{start:e,length:n-e},w=>this.ts.isJsxClosingElement(w)||this.ts.isJsxOpeningLikeElement(w));if(!a)return;let c=a.tagName,u=r.getCompletionsAtPosition(i,c.getEnd(),s,o);if(!u)return;let d=c.getText(),h=d+"__AstroComponent_",p=w=>r.getCompletionEntryDetails(i,n,w.name,{},w.source,{},w.data)?.codeActions?.map(v=>({...v,description:(0,ao.removeAstroComponentSuffix)(v.description),fixName:"import"}))??[];return u.entries.filter(w=>w.name===d||w.name===h).flatMap(p)}async organizeSortImports(e,n=!1,r){let{lang:i,tsDoc:o}=await this.languageServiceManager.getLSAndTSDoc(e),s=o.filePath;if(r?.isCancellationRequested)return[];let l=[];e.astroMeta.frontmatter.state==="closed"&&l.push(...i.organizeImports({fileName:s,type:"file",skipDestructiveCodeActions:n},{},{})),e.scriptTags.forEach(c=>{let{filePath:u,snapshot:d}=(0,ao.getScriptTagSnapshot)(o,e,c.container),h=i.organizeImports({fileName:u,type:"file",skipDestructiveCodeActions:n},{},{});h.forEach(p=>(p.fileName=o.filePath,p.textChanges=p.textChanges.map(w=>{w.span.start=(0,so.mapScriptSpanStartToSnapshot)(w.span,d,o);let v=(0,so.mapRangeToOriginal)(o,(0,ao.convertRange)(o,w.span));return v.end.character===0&&v.end.line===0&&(w.span.length-=1),w}).filter(w=>d.isInGenerated(e.positionAt(w.span.start))&&!w.newText.includes("export { }")),p)),l.push(...h)});let a=l.map(c=>tn.TextDocumentEdit.create(tn.OptionalVersionedTextDocumentIdentifier.create(e.url,null),c.textChanges.map(u=>{let d=(0,so.mapRangeToOriginal)(o,(0,ao.convertRange)(o,u.span));return e.offsetAt(d.start)<(e.astroMeta.content.firstNonWhitespaceOffset??0)&&e.offsetAt(d.end)>e.astroMeta.frontmatter.endOffset&&(d.end=e.positionAt(e.astroMeta.frontmatter.endOffset)),tn.TextEdit.replace(d,this.fixIndentationOfImports(u.newText,d,e))})));return[tn.CodeAction.create(n?"Sort Imports":"Organize Imports",{documentChanges:a},n?Di.sortImportKind:tn.CodeActionKind.SourceOrganizeImports)]}fixIndentationOfImports(e,n,r){if(!e||n.start.character===0)return e;let o=(0,so.getLineAtPosition)(n.start,r.getText()).substring(0,n.start.character);return o.trim()!==""?e:(0,gO.modifyLines)(e,(s,l)=>l===0||!s?s:o+s)}};Di.CodeActionsProviderImpl=cg});var ek=X(ed=>{"use strict";Object.defineProperty(ed,"__esModule",{value:!0});ed.DefinitionsProviderImpl=void 0;var wO=Xt(),Y0=Pt(),Z0=dt(),lo=bt(),yO=Zr(),dg=class{constructor(e){this.languageServiceManager=e}async getDefinitions(e,n){let{lang:r,tsDoc:i}=await this.languageServiceManager.getLSAndTSDoc(e),o=i.getGeneratedPosition(n),s=i.offsetAt(o),l,a=e.html,c=e.offsetAt(n),u=a.findNodeAt(c);if(u.tag==="script"){let{snapshot:p,filePath:w,offset:v}=(0,lo.getScriptTagSnapshot)(i,e,u,n);l=r.getDefinitionAndBoundSpan(w,v),l&&(l.definitions=l.definitions?.map(x=>{let _=x.fileName===w;return x.fileName=_?i.filePath:x.fileName,_&&(x.textSpan.start=(0,Y0.mapScriptSpanStartToSnapshot)(x.textSpan,p,i)),x}),l.textSpan.start=(0,Y0.mapScriptSpanStartToSnapshot)(l.textSpan,p,i))}else l=r.getDefinitionAndBoundSpan(i.filePath,s);if(!l||!l.definitions)return[];let d=new yO.SnapshotMap(this.languageServiceManager);return d.set(i.filePath,i),(await Promise.all(l.definitions.map(async p=>{let w=await d.retrieve(p.fileName),v=(0,lo.ensureRealFilePath)(p.fileName),_=((0,lo.isFrameworkFilePath)(p.fileName)||(0,lo.isAstroFilePath)(p.fileName))&&i.filePath!==p.fileName?(0,lo.convertRange)(e,{start:0,length:0}):(0,lo.convertToLocationRange)(w,p.textSpan);return wO.LocationLink.create((0,Z0.pathToUrl)(v),_,_,(0,lo.convertToLocationRange)(i,l.textSpan))}))).filter(Z0.isNotNullOrUndefined)}};ed.DefinitionsProviderImpl=dg});var ok=X(co=>{"use strict";Object.defineProperty(co,"__esModule",{value:!0});co.DiagnosticsProviderImpl=co.DiagnosticCodes=void 0;var td=pt(),tk=Xt(),_O=Pt(),hg=bt(),ei;(function(t){t[t.SPREAD_EXPECTED=1005]="SPREAD_EXPECTED",t[t.IS_NOT_A_MODULE=2306]="IS_NOT_A_MODULE",t[t.CANNOT_FIND_MODULE=2307]="CANNOT_FIND_MODULE",t[t.DUPLICATED_JSX_ATTRIBUTES=17001]="DUPLICATED_JSX_ATTRIBUTES",t[t.CANT_RETURN_OUTSIDE_FUNC=1108]="CANT_RETURN_OUTSIDE_FUNC",t[t.ISOLATED_MODULE_COMPILE_ERR=1208]="ISOLATED_MODULE_COMPILE_ERR",t[t.TYPE_NOT_ASSIGNABLE=2322]="TYPE_NOT_ASSIGNABLE",t[t.JSX_NO_CLOSING_TAG=17008]="JSX_NO_CLOSING_TAG",t[t.JSX_ELEMENT_NO_CALL=2604]="JSX_ELEMENT_NO_CALL"})(ei=co.DiagnosticCodes||(co.DiagnosticCodes={}));var pg=class{constructor(e){this.languageServiceManager=e,this.ts=e.docContext.ts}async getDiagnostics(e,n){if(e.getFilePath()?.includes("/node_modules/")||e.getFilePath()?.includes("\\node_modules\\"))return[];let{lang:r,tsDoc:i}=await this.languageServiceManager.getLSAndTSDoc(e);if(i.isInErrorState)return[];let o=[];e.scriptTags.forEach(a=>{let{filePath:c,snapshot:u}=(0,hg.getScriptTagSnapshot)(i,e,a.container),d=[...r.getSyntacticDiagnostics(c),...r.getSuggestionDiagnostics(c),...r.getSemanticDiagnostics(c)].map(h=>({range:(0,hg.convertRange)(u,h),severity:this.mapSeverity(h.category),source:"ts",message:this.ts.flattenDiagnosticMessageText(h.messageText,`
|
|
596
596
|
`),code:h.code,tags:ik(h)})).map(rk(u,e));o.push(...d)});let{script:s}=this.getTagBoundaries(r,i.filePath);return[...[...r.getSyntacticDiagnostics(i.filePath),...r.getSuggestionDiagnostics(i.filePath),...r.getSemanticDiagnostics(i.filePath)].filter(a=>xO(s,a,this.ts)).map(a=>({range:(0,hg.convertRange)(i,a),severity:this.mapSeverity(a.category),source:"ts",message:this.ts.flattenDiagnosticMessageText(a.messageText,`
|
|
597
|
-
`),code:a.code,tags:ik(a)})).map(rk(i,e)),...o].filter(a=>a.range.start.line<=e.lineCount&&kO(a)&&TO(a)&&EO(a)&&CO(a)).map(DO)}getTagBoundaries(e,n){let i=e.getProgram()?.getSourceFile(n),o={script:[]};if(!i)return o;function s(l,a){a.forEachChild(l,c=>{if(a.isJsxElement(c))switch(c.openingElement.tagName.getText()){case"script":{a.getLineAndCharacterOfPosition(i,c.getStart()),o.script.push([c.getStart(),c.getEnd()]);break}}s(c,a)})}return s(i,this.ts),o}mapSeverity(e){switch(e){case this.ts.DiagnosticCategory.Error:return td.DiagnosticSeverity.Error;case this.ts.DiagnosticCategory.Warning:return td.DiagnosticSeverity.Warning;case this.ts.DiagnosticCategory.Suggestion:return td.DiagnosticSeverity.Hint;case this.ts.DiagnosticCategory.Message:return td.DiagnosticSeverity.Information}}};co.DiagnosticsProviderImpl=pg;function nk(t,e){for(let[n,r]of t)if(e>n&&e<r)return!0;return!1}function SO(t,e,n,r){if("start"in n)return n.start==null?!1:nk(e,n.start);if(!t)return!1;let i=n.range.start,o=r.getPositionOfLineAndCharacter(t,i.line,i.character);return nk(e,o)}function xO(t,e,n){return!SO(void 0,t,e,n)}function rk(t,e){return n=>{let r=(0,_O.mapRangeToOriginal)(t,n.range);return{...n,range:r}}}function kO(t){return t.range.start.line>=0&&t.range.end.line>=0}function CO(t){return t.code!==
|
|
597
|
+
`),code:a.code,tags:ik(a)})).map(rk(i,e)),...o].filter(a=>a.range.start.line<=e.lineCount&&kO(a)&&TO(a)&&EO(a)&&CO(a)).map(DO)}getTagBoundaries(e,n){let i=e.getProgram()?.getSourceFile(n),o={script:[]};if(!i)return o;function s(l,a){a.forEachChild(l,c=>{if(a.isJsxElement(c))switch(c.openingElement.tagName.getText()){case"script":{a.getLineAndCharacterOfPosition(i,c.getStart()),o.script.push([c.getStart(),c.getEnd()]);break}}s(c,a)})}return s(i,this.ts),o}mapSeverity(e){switch(e){case this.ts.DiagnosticCategory.Error:return td.DiagnosticSeverity.Error;case this.ts.DiagnosticCategory.Warning:return td.DiagnosticSeverity.Warning;case this.ts.DiagnosticCategory.Suggestion:return td.DiagnosticSeverity.Hint;case this.ts.DiagnosticCategory.Message:return td.DiagnosticSeverity.Information}}};co.DiagnosticsProviderImpl=pg;function nk(t,e){for(let[n,r]of t)if(e>n&&e<r)return!0;return!1}function SO(t,e,n,r){if("start"in n)return n.start==null?!1:nk(e,n.start);if(!t)return!1;let i=n.range.start,o=r.getPositionOfLineAndCharacter(t,i.line,i.character);return nk(e,o)}function xO(t,e,n){return!SO(void 0,t,e,n)}function rk(t,e){return n=>{let r=(0,_O.mapRangeToOriginal)(t,n.range);return{...n,range:r}}}function kO(t){return t.range.start.line>=0&&t.range.end.line>=0}function CO(t){return t.code!==ei.DUPLICATED_JSX_ATTRIBUTES}function TO(t){return t.code!==ei.CANT_RETURN_OUTSIDE_FUNC}function EO(t){return t.code!==ei.ISOLATED_MODULE_COMPILE_ERR}function DO(t){return t.code===ei.IS_NOT_A_MODULE?(t.message.includes(".svelte")&&(t.message+="\n\nIs the `@astrojs/svelte` package installed? You can add it to your project by running the following command: `astro add svelte`. If already installed, restarting the language server might be necessary in order for the change to take effect"),t.message.includes(".vue")&&(t.message+="\n\nIs the `@astrojs/vue` package installed? You can add it to your project by running the following command: `astro add vue`. If already installed, restarting the language server might be necessary in order for the change to take effect"),t):t.code===ei.CANNOT_FIND_MODULE&&t.message.includes("astro:content")?(t.message+="\n\nIf you're using content collections, make sure to run `astro dev`, `astro build` or `astro sync` to first generate the types so you can import from them. If you already ran one of those commands, restarting the language server might be necessary in order for the change to take effect",t):t.code===ei.JSX_NO_CLOSING_TAG?{...t,message:t.message.replace("JSX","HTML")}:t.code===ei.JSX_ELEMENT_NO_CALL?{...t,message:t.message.replace("JSX element type","Component").replace("does not have any construct or call signatures.",`is not a valid component.
|
|
598
598
|
|
|
599
|
-
If this is a Svelte or Vue component, it might have a syntax error that makes it impossible to parse.`)}:t.code===
|
|
599
|
+
If this is a Svelte or Vue component, it might have a syntax error that makes it impossible to parse.`)}:t.code===ei.TYPE_NOT_ASSIGNABLE&&t.message.includes("Property 'client:")&&t.message.includes("to type 'HTMLAttributes")?{...t,message:"Client directives are only available on framework components"}:t}function ik(t){let e=[];return t.reportsUnnecessary&&e.push(tk.DiagnosticTag.Unnecessary),t.reportsDeprecated&&e.push(tk.DiagnosticTag.Deprecated),e}});var sk=X(nd=>{"use strict";Object.defineProperty(nd,"__esModule",{value:!0});nd.DocumentSymbolsProviderImpl=void 0;var Sr=Xt(),FO=bt(),mg=class{constructor(e){this.languageServiceManager=e,this.ts=e.docContext.ts}async getDocumentSymbols(e){let{lang:n,tsDoc:r}=await this.languageServiceManager.getLSAndTSDoc(e),i=n.getNavigationTree(r.filePath+"?documentSymbols");if(!i)return[];let o=[];this.collectSymbols(i,e,void 0,a=>o.push(a));let s=o[0].name,l=[];e.astroMeta.frontmatter.state==="closed"&&l.push(Sr.SymbolInformation.create("Frontmatter",Sr.SymbolKind.Namespace,Sr.Range.create(e.positionAt(e.astroMeta.frontmatter.startOffset),e.positionAt(e.astroMeta.frontmatter.endOffset)),e.getURL())),l.push(Sr.SymbolInformation.create("Template",Sr.SymbolKind.Namespace,Sr.Range.create(e.positionAt(e.astroMeta.frontmatter.endOffset??0),e.positionAt(e.getTextLength())),e.getURL()));for(let a of o.splice(1))e.offsetAt(a.location.range.end)>=(e.astroMeta.content.firstNonWhitespaceOffset??0)&&(a.containerName===s&&(a.containerName="Template"),a.kind===Sr.SymbolKind.Class&&a.name==="<class>"&&e.html.findNodeAt(e.offsetAt(a.location.range.start)).attributes?.class)||e.offsetAt(a.location.range.start)>=e.getTextLength()||l.push(a);return l}collectSymbols(e,n,r,i){for(let o of e.spans){let s=Sr.SymbolInformation.create(e.text,(0,FO.symbolKindFromString)(e.kind),Sr.Range.create(n.positionAt(o.start),n.positionAt(o.start+o.length)),n.getURL(),r);new Set(e.kindModifiers.split(/,|\s+/g)).has(this.ts.ScriptElementKindModifier.deprecatedModifier)&&(s.tags||(s.tags=[]),s.tags.push(Sr.SymbolTag.Deprecated)),i(s)}if(e.childItems)for(let o of e.childItems)this.collectSymbols(o,n,e.text,i)}};nd.DocumentSymbolsProviderImpl=mg});var ak=X(rd=>{"use strict";Object.defineProperty(rd,"__esModule",{value:!0});rd.FileReferencesProviderImpl=void 0;var AO=pt(),RO=dt(),IO=bt(),MO=Zr(),fg=class{constructor(e){this.languageServiceManager=e}async fileReferences(e){let{lang:n,tsDoc:r}=await this.languageServiceManager.getLSAndTSDoc(e),i=n.getFileReferences(r.filePath);if(!i)return null;let o=new MO.SnapshotMap(this.languageServiceManager);return o.set(r.filePath,r),await Promise.all(i.map(async l=>{let a=await o.retrieve(l.fileName);return AO.Location.create((0,RO.pathToUrl)(l.fileName),(0,IO.convertToLocationRange)(a,l.textSpan))}))}};rd.FileReferencesProviderImpl=fg});var lk=X(od=>{"use strict";Object.defineProperty(od,"__esModule",{value:!0});od.FoldingRangesProviderImpl=void 0;var id=pt(),PO=bt(),gg=class{constructor(e){this.languageServiceManager=e,this.ts=e.docContext.ts}async getFoldingRanges(e){let n=e.html,{lang:r,tsDoc:i}=await this.languageServiceManager.getLSAndTSDoc(e),o=r.getOutliningSpans(i.filePath).filter(a=>{let c=n.findNodeAt(a.textSpan.start);return c.tag!=="script"&&c.tag!=="style"}),s=[];e.scriptTags.forEach(a=>{let{snapshot:c,filePath:u}=(0,PO.getScriptTagSnapshot)(i,e,a.container);s.push(...r.getOutliningSpans(u).map(d=>(d.textSpan.start=e.offsetAt(c.getOriginalPosition(c.positionAt(d.textSpan.start))),d)))});let l=[];for(let a of[...o,...s]){let c=i.getOriginalPosition(i.positionAt(a.textSpan.start)),u=zO(c,e.positionAt(e.offsetAt(c)+a.textSpan.length),e);c.line===u.line&&c.character===u.character||c.line<0||u.line<0||l.push(id.FoldingRange.create(c.line,u.line,c.character,u.character,this.transformFoldingRangeKind(a.kind)))}return l}transformFoldingRangeKind(e){switch(e){case this.ts.OutliningSpanKind.Comment:return id.FoldingRangeKind.Comment;case this.ts.OutliningSpanKind.Imports:return id.FoldingRangeKind.Imports;case this.ts.OutliningSpanKind.Region:return id.FoldingRangeKind.Region}}};od.FoldingRangesProviderImpl=gg;function zO(t,e,n){if(e.character>0){let r=n.getText({start:{line:e.line,character:e.character-1},end:e});if(["}","]",")","`"].includes(r)){let i=Math.max(n.offsetAt({line:e.line,character:0})-1,n.offsetAt(t));return n.positionAt(i)}}return e}});var hk=X(sd=>{"use strict";Object.defineProperty(sd,"__esModule",{value:!0});sd.HoverProviderImpl=void 0;var ck=Pt(),OO=Zu(),uk=bt(),dk=new Map([["JSX attribute","HTML attribute"]]),bg=class{constructor(e){this.languageServiceManager=e,this.ts=e.docContext.ts}async doHover(e,n){let{lang:r,tsDoc:i}=await this.languageServiceManager.getLSAndTSDoc(e),o=i.offsetAt(i.getGeneratedPosition(n)),s=e.html,l=e.offsetAt(n),a=s.findNodeAt(l),c;if(a.tag==="script"){let{snapshot:v,filePath:x,offset:_}=(0,uk.getScriptTagSnapshot)(i,e,a,n);c=r.getQuickInfoAtPosition(x,_),c&&(c.textSpan.start=(0,ck.mapScriptSpanStartToSnapshot)(c.textSpan,v,i))}else c=r.getQuickInfoAtPosition(i.filePath,o);if(!c)return null;let u=c.textSpan,d=(c.displayParts||[]).map(v=>({text:dk.has(v.text)?dk.get(v.text):v.text,kind:v.kind})),h=this.ts.displayPartsToString(d),p=(0,OO.getMarkdownDocumentation)(c.documentation,c.tags,this.ts),w=["```typescript",h,"```"].concat(p?["---",p]:[]).join(`
|
|
600
600
|
`);return(0,ck.mapObjWithRangeToOriginal)(i,{range:(0,uk.convertRange)(i,u),contents:w})}};sd.HoverProviderImpl=bg});var gk=X(ad=>{"use strict";Object.defineProperty(ad,"__esModule",{value:!0});ad.ImplementationsProviderImpl=void 0;var LO=Xt(),pk=Pt(),mk=dt(),fk=bt(),NO=Zr(),vg=class{constructor(e){this.languageServiceManager=e}async getImplementation(e,n){let{lang:r,tsDoc:i}=await this.languageServiceManager.getLSAndTSDoc(e),o=i.getGeneratedPosition(n),s=i.offsetAt(o),l=e.html,a=e.offsetAt(n),c=e.html.findNodeAt(a),u;if(c.tag==="script"){let{snapshot:p,filePath:w,offset:v}=(0,fk.getScriptTagSnapshot)(i,e,c,n);u=r.getImplementationAtPosition(w,v),u&&(u=u.map(x=>{let _=x.fileName===w;return x.fileName=_?i.filePath:x.fileName,_&&(x.textSpan.start=(0,pk.mapScriptSpanStartToSnapshot)(x.textSpan,p,i)),x}))}else u=r.getImplementationAtPosition(i.filePath,s);let d=new NO.SnapshotMap(this.languageServiceManager);return d.set(i.filePath,i),u?(await Promise.all(u.map(async p=>{let w=await d.retrieve(p.fileName),v=(0,pk.mapRangeToOriginal)(w,(0,fk.convertRange)(w,p.textSpan));if(v.start.line>=0&&v.end.line>=0)return LO.Location.create((0,mk.pathToUrl)(p.fileName),v)}))).filter(mk.isNotNullOrUndefined):null}};ad.ImplementationsProviderImpl=vg});var vk=X(ld=>{"use strict";Object.defineProperty(ld,"__esModule",{value:!0});ld.InlayHintsProviderImpl=void 0;var WO=pt(),bk=Xt(),wg=class{constructor(e,n){this.languageServiceManager=e,this.configManager=n,this.ts=e.docContext.ts}async getInlayHints(e,n){let{lang:r,tsDoc:i}=await this.languageServiceManager.getLSAndTSDoc(e),o=i.offsetAt(i.getGeneratedPosition(n.start)),s=i.offsetAt(i.getGeneratedPosition(n.end)),l=await this.configManager.getTSPreferences(e);return r.provideInlayHints(i.filePath,{start:o,length:s-o},l).map(c=>{let u=WO.InlayHint.create(i.getOriginalPosition(i.positionAt(c.position)),c.text,c.kind===this.ts.InlayHintKind.Type?bk.InlayHintKind.Type:c.kind===this.ts.InlayHintKind.Parameter?bk.InlayHintKind.Parameter:void 0);return u.paddingLeft=c.whitespaceBefore,u.paddingRight=c.whitespaceAfter,u})}};ld.InlayHintsProviderImpl=wg});var Sk=X(cd=>{"use strict";Object.defineProperty(cd,"__esModule",{value:!0});cd.FindReferencesProviderImpl=void 0;var qO=Xt(),wk=Pt(),yk=dt(),_k=bt(),UO=Zr(),yg=class{constructor(e){this.languageServiceManager=e}async findReferences(e,n,r){let{lang:i,tsDoc:o}=await this.languageServiceManager.getLSAndTSDoc(e),s=o.getGeneratedPosition(n),l=o.offsetAt(s),a=e.offsetAt(n),c=e.html.findNodeAt(a),u;if(c.tag==="script"){let{snapshot:p,filePath:w,offset:v}=(0,_k.getScriptTagSnapshot)(o,e,c,n);u=i.getReferencesAtPosition(w,v),u&&(u=u.map(x=>{let _=x.fileName===w;return x.fileName=_?o.filePath:x.fileName,_&&(x.textSpan.start=(0,wk.mapScriptSpanStartToSnapshot)(x.textSpan,p,o)),x}))}else u=i.getReferencesAtPosition(o.filePath,l);if(!u)return null;let d=new UO.SnapshotMap(this.languageServiceManager);return d.set(o.filePath,o),(await Promise.all(u.map(async p=>{if(!r.includeDeclaration)return null;let w=await d.retrieve(p.fileName),v=(0,wk.mapRangeToOriginal)(w,(0,_k.convertRange)(w,p.textSpan));if(v.start.line>=0&&v.end.line>=0)return qO.Location.create((0,yk.pathToUrl)(p.fileName),v)}))).filter(yk.isNotNullOrUndefined)}};cd.FindReferencesProviderImpl=yg});var Ck=X(ud=>{"use strict";Object.defineProperty(ud,"__esModule",{value:!0});ud.RenameProviderImpl=void 0;var xk=Pt(),jO=dt(),kk=bt(),HO=Zr(),_g=class{constructor(e,n){this.languageServiceManager=e,this.configManager=n,this.ts=e.docContext.ts}async prepareRename(e,n){let{lang:r,tsDoc:i}=await this.languageServiceManager.getLSAndTSDoc(e),o=i.offsetAt(i.getGeneratedPosition(n));if(i.isInErrorState)return null;let s=r.getRenameInfo(i.filePath,o,{allowRenameOfImportPath:!1});return s.canRename?(0,xk.mapRangeToOriginal)(i,(0,kk.convertRange)(i,s.triggerSpan)):null}async rename(e,n,r){let{lang:i,tsDoc:o}=await this.languageServiceManager.getLSAndTSDoc(e),s=o.offsetAt(o.getGeneratedPosition(n)),{providePrefixAndSuffixTextForRename:l}=await this.configManager.getTSPreferences(e),a=i.findRenameLocations(o.filePath,s,!1,!1,l);if(!a)return null;let c=new HO.SnapshotMap(this.languageServiceManager);return c.set(o.filePath,o),(await Promise.all(a.map(async d=>{let h=await c.retrieve(d.fileName);return{...d,range:(0,xk.mapRangeToOriginal)(h,(0,kk.convertRange)(h,d.textSpan)),newName:r}}))).reduce((d,h)=>{let p=(0,jO.pathToUrl)(h.fileName);return d.changes[p]||(d.changes[p]=[]),d.changes[p].push({newText:(h.prefixText||"")+(h.newName||r)+(h.suffixText||""),range:h.range}),d},{changes:{}})}};ud.RenameProviderImpl=_g});var Tk=X(dd=>{"use strict";Object.defineProperty(dd,"__esModule",{value:!0});dd.SemanticTokensProviderImpl=void 0;var BO=pt(),$O=Pt(),Sg=class{constructor(e){this.languageServiceManager=e,this.ts=e.docContext.ts}async getSemanticTokens(e,n,r){let{lang:i,tsDoc:o}=await this.languageServiceManager.getLSAndTSDoc(e);if(r?.isCancellationRequested)return null;let s=n?o.offsetAt(o.getGeneratedPosition(n.start)):0,{spans:l}=i.getEncodedSemanticClassifications(o.filePath,{start:s,length:n?o.offsetAt(o.getGeneratedPosition(n.end))-s:o.getFullText().lastIndexOf("export default function ")||o.getLength()},this.ts.SemanticClassificationFormat.TwentyTwenty),a=[],c=0;for(;c<l.length;){let p=l[c++],w=l[c++],v=l[c++],x=this.mapToOrigin(e,o,p,w);if(!x)continue;let[_,f,g]=x,D=this.getTokenTypeFromClassification(v);if(D<0)continue;let L=this.getTokenModifierFromClassification(v);a.push([_,f,g,D,L])}let u=a.sort((p,w)=>{let[v,x]=p,[_,f]=w;return v-_||x-f}),d=new BO.SemanticTokensBuilder;return u.forEach(p=>d.push(...p)),d.build()}mapToOrigin(e,n,r,i){let o={start:n.positionAt(r),end:n.positionAt(r+i)},{start:s,end:l}=(0,$O.mapRangeToOriginal)(n,o);if(s.line<0||l.line<0)return;let a=e.offsetAt(s),c=e.offsetAt(l);return[s.line,s.character,c-a,a]}getTokenTypeFromClassification(e){return(e>>8)-1}getTokenModifierFromClassification(e){return e&255}};dd.SemanticTokensProviderImpl=Sg});var Ek=X(hd=>{"use strict";Object.defineProperty(hd,"__esModule",{value:!0});hd.SignatureHelpProviderImpl=void 0;var Na=pt(),VO=Zu(),KO=bt(),Fi=class{constructor(e){this.languageServiceManager=e,this.ts=e.docContext.ts}async getSignatureHelp(e,n,r,i){let{lang:o,tsDoc:s}=await this.languageServiceManager.getLSAndTSDoc(e);if(i?.isCancellationRequested)return null;let l=s.offsetAt(s.getGeneratedPosition(n)),a=e.html.findNodeAt(l),c,u=this.toTsTriggerReason(r);if(a.tag==="script"){let{filePath:h,offset:p}=(0,KO.getScriptTagSnapshot)(s,e,a,n);c=o.getSignatureHelpItems(h,p,u?{triggerReason:u}:void 0)}else c=o.getSignatureHelpItems(s.filePath,l,u?{triggerReason:u}:void 0);return c?{signatures:c.items.map(h=>this.toSignatureHelpInformation(h,this.ts)),activeSignature:c.selectedItemIndex,activeParameter:c.argumentIndex}:null}isReTrigger(e,n){return e&&(this.isTriggerCharacter(n)||Fi.retriggerCharacters.includes(n))}isTriggerCharacter(e){return Fi.triggerCharacters.includes(e)}toTsTriggerReason(e){switch(e?.triggerKind){case Na.SignatureHelpTriggerKind.TriggerCharacter:if(e.triggerCharacter){if(this.isReTrigger(e.isRetrigger,e.triggerCharacter))return{kind:"retrigger",triggerCharacter:e.triggerCharacter};if(this.isTriggerCharacter(e.triggerCharacter))return{kind:"characterTyped",triggerCharacter:e.triggerCharacter}}return{kind:"invoked"};case Na.SignatureHelpTriggerKind.ContentChange:return e.isRetrigger?{kind:"retrigger"}:{kind:"invoked"};case Na.SignatureHelpTriggerKind.Invoked:default:return{kind:"invoked"}}}toSignatureHelpInformation(e,n){let[r,i,o]=[e.prefixDisplayParts,e.separatorDisplayParts,e.suffixDisplayParts].map(this.ts.displayPartsToString),s=r.length,l="",a=[],c=e.parameters.length-1;e.parameters.forEach((d,h)=>{let p=n.displayPartsToString(d.displayParts),w=s,v=s+p.length,x=n.displayPartsToString(d.documentation);l+=p,a.push(Na.ParameterInformation.create([w,v],x)),h<c&&(s=v+i.length,l+=i)});let u=(0,VO.getMarkdownDocumentation)(e.documentation,e.tags.filter(d=>d.name!=="param"),n);return{label:r+l+o,documentation:u?{value:u,kind:Na.MarkupKind.Markdown}:void 0,parameters:a}}};hd.SignatureHelpProviderImpl=Fi;Fi.triggerCharacters=["(",",","<"];Fi.retriggerCharacters=[")"]});var Ak=X(pd=>{"use strict";Object.defineProperty(pd,"__esModule",{value:!0});pd.TypeDefinitionsProviderImpl=void 0;var GO=ft(),Dk=Pt(),Fk=dt(),xg=bt(),JO=Zr(),kg=class{constructor(e){this.languageServiceManager=e}async getTypeDefinitions(e,n){let{lang:r,tsDoc:i}=await this.languageServiceManager.getLSAndTSDoc(e),o=i.getGeneratedPosition(n),s=i.offsetAt(o),l=e.html,a=e.offsetAt(n),c=l.findNodeAt(a),u;if(c.tag==="script"){let{snapshot:p,filePath:w,offset:v}=(0,xg.getScriptTagSnapshot)(i,e,c,n);u=r.getTypeDefinitionAtPosition(w,v),u&&(u=u.map(x=>{let _=x.fileName===w;return x.fileName=_?i.filePath:x.fileName,_&&(x.textSpan.start=(0,Dk.mapScriptSpanStartToSnapshot)(x.textSpan,p,i)),x}))}else u=r.getTypeDefinitionAtPosition(i.filePath,s);let d=new JO.SnapshotMap(this.languageServiceManager);return d.set(i.filePath,i),u?(await Promise.all(u.map(async p=>{let w=await d.retrieve(p.fileName),v=(0,xg.ensureRealFilePath)(p.fileName),x=(0,Dk.mapRangeToOriginal)(w,(0,xg.convertRange)(w,p.textSpan));if(x.start.line>=0&&x.end.line>=0)return GO.Location.create((0,Fk.pathToUrl)(v),x)}))).filter(Fk.isNotNullOrUndefined):[]}};pd.TypeDefinitionsProviderImpl=kg});var Ik=X(vs=>{"use strict";var XO=vs&&vs.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(vs,"__esModule",{value:!0});vs.TypeScriptPlugin=void 0;var Rk=pt(),QO=XO(og()),YO=ug(),ZO=lg(),eL=ek(),tL=ok(),nL=sk(),rL=ak(),iL=lk(),oL=hk(),sL=gk(),aL=vk(),lL=Sk(),cL=Ck(),uL=Tk(),dL=Ek(),hL=Ak(),md=bt(),Cg=class{constructor(e,n){this.__name="typescript",this.configManager=e,this.languageServiceManager=n,this.ts=n.docContext.ts,this.codeActionsProvider=new YO.CodeActionsProviderImpl(this.languageServiceManager,this.configManager),this.completionProvider=new ZO.CompletionsProviderImpl(this.languageServiceManager,this.configManager),this.hoverProvider=new oL.HoverProviderImpl(this.languageServiceManager),this.fileReferencesProvider=new rL.FileReferencesProviderImpl(this.languageServiceManager),this.definitionsProvider=new eL.DefinitionsProviderImpl(this.languageServiceManager),this.typeDefinitionsProvider=new hL.TypeDefinitionsProviderImpl(this.languageServiceManager),this.implementationsProvider=new sL.ImplementationsProviderImpl(this.languageServiceManager),this.referencesProvider=new lL.FindReferencesProviderImpl(this.languageServiceManager),this.signatureHelpProvider=new dL.SignatureHelpProviderImpl(this.languageServiceManager),this.diagnosticsProvider=new tL.DiagnosticsProviderImpl(this.languageServiceManager),this.documentSymbolsProvider=new nL.DocumentSymbolsProviderImpl(this.languageServiceManager),this.semanticTokensProvider=new uL.SemanticTokensProviderImpl(this.languageServiceManager),this.inlayHintsProvider=new aL.InlayHintsProviderImpl(this.languageServiceManager,this.configManager),this.foldingRangesProvider=new iL.FoldingRangesProviderImpl(this.languageServiceManager),this.renameProvider=new cL.RenameProviderImpl(this.languageServiceManager,this.configManager)}async doHover(e,n){return await this.featureEnabled(e,"hover")?this.hoverProvider.doHover(e,n):null}async prepareRename(e,n){return this.renameProvider.prepareRename(e,n)}async rename(e,n,r){return this.renameProvider.rename(e,n,r)}async getFoldingRanges(e){return this.foldingRangesProvider.getFoldingRanges(e)}async getSemanticTokens(e,n,r){return await this.featureEnabled(e,"semanticTokens")?this.semanticTokensProvider.getSemanticTokens(e,n,r):null}async getDocumentSymbols(e){return await this.featureEnabled(e,"documentSymbols")?await this.documentSymbolsProvider.getDocumentSymbols(e):[]}async getCodeActions(e,n,r,i){return await this.featureEnabled(e,"codeActions")?this.codeActionsProvider.getCodeActions(e,n,r,i):[]}async getCompletions(e,n,r,i){return await this.featureEnabled(e,"completions")?await this.completionProvider.getCompletions(e,n,r,i):null}async resolveCompletion(e,n,r){return this.completionProvider.resolveCompletion(e,n,r)}async getInlayHints(e,n){return this.inlayHintsProvider.getInlayHints(e,n)}async fileReferences(e){return this.fileReferencesProvider.fileReferences(e)}async getDefinitions(e,n){return this.definitionsProvider.getDefinitions(e,n)}async getTypeDefinitions(e,n){return this.typeDefinitionsProvider.getTypeDefinitions(e,n)}async getImplementation(e,n){return this.implementationsProvider.getImplementation(e,n)}async findReferences(e,n,r){return this.referencesProvider.findReferences(e,n,r)}async getDiagnostics(e,n){return await this.featureEnabled(e,"diagnostics")?this.diagnosticsProvider.getDiagnostics(e,n):[]}async onWatchFileChanges(e){let n=!1;for(let{fileName:r,changeType:i}of e)(0,md.getScriptKindFromFileName)(r,this.ts)===this.ts.ScriptKind.Unknown&&!(0,md.isFrameworkFilePath)(r)&&!(0,md.isAstroFilePath)(r)||(i===Rk.FileChangeType.Created&&!n?(n=!0,await this.languageServiceManager.updateProjectFiles()):i===Rk.FileChangeType.Deleted?await this.languageServiceManager.deleteSnapshot(r):(0,md.isAstroFilePath)(r)||await this.languageServiceManager.updateExistingNonAstroFile(r))}async updateNonAstroFile(e,n,r){await this.languageServiceManager.updateExistingNonAstroFile(e,n,r)}async getSignatureHelp(e,n,r,i){return this.signatureHelpProvider.getSignatureHelp(e,n,r,i)}getTSXForDocument(e){return(0,QO.default)(e.getText(),e.getURL())}getSnapshotManager(e){return this.languageServiceManager.getSnapshotManager(e)}async featureEnabled(e,n){return await this.configManager.isEnabled(e,"typescript")&&await this.configManager.isEnabled(e,"typescript",n)}};vs.TypeScriptPlugin=Cg});var Mk=X(Dn=>{"use strict";var pL=Dn&&Dn.__createBinding||(Object.create?function(t,e,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(e,n);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,i)}:function(t,e,n,r){r===void 0&&(r=n),t[r]=e[n]}),ws=Dn&&Dn.__exportStar||function(t,e){for(var n in t)n!=="default"&&!Object.prototype.hasOwnProperty.call(e,n)&&pL(e,t,n)};Object.defineProperty(Dn,"__esModule",{value:!0});ws(am(),Dn);ws(Yf(),Dn);ws(tg(),Dn);ws(H0(),Dn);ws(rg(),Dn);ws(Ik(),Dn)});var Pk=X(fd=>{"use strict";Object.defineProperty(fd,"__esModule",{value:!0});fd.createAstroSys=void 0;var Wa=bt();function mL(t,e){let n=new Map,r={...e.sys,fileExists(i){i=(0,Wa.ensureRealFilePath)(i);let o=n.get(i)??e.sys.fileExists(i);return n.set(i,o),o},readFile(i){let o=t(i);return o.getText(0,o.getLength())},readDirectory(i,o,s,l,a){let c=(o??[]).concat(".astro",".svelte",".vue",".md",".mdx",".html");return e.sys.readDirectory(i,c,s,l,a)},deleteFile(i){return n.delete((0,Wa.ensureRealFilePath)(i)),e.sys.deleteFile?.(i)},deleteFromCache(i){n.delete((0,Wa.ensureRealFilePath)(i))}};if(e.sys.realpath){let i=e.sys.realpath;r.realpath=function(o){return(0,Wa.isVirtualFilePath)(o)?i((0,Wa.ensureRealFilePath)(o))+".tsx":i(o)}}return r}fd.createAstroSys=mL});var zk=X(gd=>{"use strict";Object.defineProperty(gd,"__esModule",{value:!0});gd.createAstroModuleLoader=void 0;var fL=dt(),gL=Pk(),xr=bt(),Tg=class{constructor(){this.cache=new Map}get(e,n){return this.cache.get(this.getKey(e,n))}has(e,n){return this.cache.has(this.getKey(e,n))}set(e,n,r){this.cache.set(this.getKey(e,n),r)}delete(e){this.cache.forEach((n,r)=>{n?.resolvedFileName===e&&this.cache.delete(r)})}deleteUnresolvedResolutionsFromCache(e){let n=(0,fL.getLastPartOfPath)(e).split(".").shift()||"";this.cache.forEach((r,i)=>{let o=i.split(":::").pop()||"";!r&&o.includes(n)&&this.cache.delete(i)})}getKey(e,n){return n+":::"+(0,xr.ensureRealFilePath)(e)}},Eg=class{constructor(e){this.ts=e,this.alreadyResolved=new Map}resolve(e,n,r,i){if((0,xr.isAstroFilePath)(e)||(0,xr.isFrameworkFilePath)(e))return;let o;return r&&(!r.impliedNodeFormat&&((0,xr.isAstroFilePath)(r.fileName)||(0,xr.isFrameworkFilePath)(r.fileName))&&(this.alreadyResolved.has(r.fileName)?r.impliedNodeFormat=this.alreadyResolved.get(r.fileName):(r.impliedNodeFormat=this.ts.getImpliedNodeFormatForFile((0,xr.toVirtualFilePath)(r.fileName),void 0,this.ts.sys,i),this.alreadyResolved.set(r.fileName,r.impliedNodeFormat))),o=this.ts.getModeForResolutionAtIndex(r,n)),o}};function bL(t,e,n){let r=(0,gL.createAstroSys)(t,n),i=new Tg,o=new Eg(n);return{fileExists:r.fileExists,readFile:r.readFile,readDirectory:r.readDirectory,deleteFromModuleCache:a=>{r.deleteFromCache(a),i.delete(a)},deleteUnresolvedResolutionsFromCache:a=>{r.deleteFromCache(a),i.deleteUnresolvedResolutionsFromCache(a)},resolveModuleNames:s};function s(a,c,u,d,h,p){return a.map((w,v)=>{if(i.has(w,c))return i.get(w,c);let x=l(w,c,p,v);return i.set(w,c,x),x})}function l(a,c,u,d){let h=o.resolve(a,d,u,e),p=n.resolveModuleName(a,c,e,n.sys,void 0,void 0,h).resolvedModule;if(p&&!(0,xr.isVirtualFilePath)(p.resolvedFileName))return p;let w=n.resolveModuleName(a,c,e,r,void 0,void 0,h).resolvedModule;if(!w||!(0,xr.isVirtualFilePath)(w.resolvedFileName))return w;let v=(0,xr.ensureRealFilePath)(w.resolvedFileName),x=t(v);return{extension:(0,xr.getExtensionFromScriptKind)(x&&x.scriptKind,n),resolvedFileName:v,isExternalLibraryImport:w.isExternalLibraryImport}}}gd.createAstroModuleLoader=bL});var vd=X(kr=>{"use strict";Object.defineProperty(kr,"__esModule",{value:!0});kr.ConsumerDocumentMapper=kr.TypeScriptDocumentSnapshot=kr.ScriptTagDocumentSnapshot=kr.AstroSnapshot=void 0;var vL=Jp(),Ok=pt(),Fn=Pt(),Lk=dt(),Dg=class{constructor(e,n,r,i,o){this.parent=e,this.text=n,this.tsxMap=r,this.scriptKind=i,this.compilerDiagnostics=o,this.url=(0,Lk.pathToUrl)(this.filePath),this.scriptTagSnapshots=[],this.version=this.parent.version}get isInErrorState(){return this.compilerDiagnostics.filter(e=>e.severity===Ok.DiagnosticSeverity.Error).length>0}isInGenerated(e){throw new Error("Method not implemented.")}getURL(){return this.url}get filePath(){return this.parent.getFilePath()||""}getText(e,n){return this.text.substring(e,n)}getLength(){return this.text.length}getFullText(){return this.text}getChangeRange(){}positionAt(e){return(0,Fn.positionAt)(e,this.text,this.getLineOffsets())}offsetAt(e){return(0,Fn.offsetAt)(e,this.text,this.getLineOffsets())}getOriginalPosition(e){return this.getMapper().getOriginalPosition(e)}getGeneratedPosition(e){return this.getMapper().getGeneratedPosition(e)}getLineOffsets(){return this.lineOffsets||(this.lineOffsets=(0,Fn.getLineOffsets)(this.text)),this.lineOffsets}getMapper(){return this.mapper||(this.mapper=new bd(new vL.TraceMap(this.tsxMap),this.url,0)),this.mapper}};kr.AstroSnapshot=Dg;var Fg=class extends Fn.FragmentMapper{constructor(e,n,r,i){super(n.getText(),e,r),this.scriptTag=e,this.parent=n,this.filePath=r,this.scriptKind=i,this.version=this.parent.version,this.text=this.parent.getText().slice(this.scriptTag.start,this.scriptTag.end)+`
|
|
601
601
|
export {}`}positionAt(e){return(0,Fn.positionAt)(e,this.text,this.getLineOffsets())}offsetAt(e){return(0,Fn.offsetAt)(e,this.text,this.getLineOffsets())}getText(e,n){return this.text.substring(e,n)}getLength(){return this.text.length}getFullText(){return this.text}getChangeRange(){}getLineOffsets(){return this.lineOffsets||(this.lineOffsets=(0,Fn.getLineOffsets)(this.text)),this.lineOffsets}};kr.ScriptTagDocumentSnapshot=Fg;var Ag=class extends Fn.IdentityMapper{constructor(e,n,r,i,o){super((0,Lk.pathToUrl)(n)),this.version=e,this.filePath=n,this.text=r,this.supportPartialUpdate=o,this.scriptKind=i}getText(e,n){return this.text.substring(e,n)}getLength(){return this.text.length}getFullText(){return this.text}getChangeRange(){}positionAt(e){return(0,Fn.positionAt)(e,this.text,this.getLineOffsets())}offsetAt(e){return(0,Fn.offsetAt)(e,this.text,this.getLineOffsets())}createFragment(){return this}update(e){for(let n of e){let r=0,i=0;"range"in n?(r=this.offsetAt(n.range.start),i=this.offsetAt(n.range.end)):i=this.getLength(),this.text=this.text.slice(0,r)+n.text+this.text.slice(i)}this.version++,this.lineOffsets=void 0}getLineOffsets(){return this.lineOffsets||(this.lineOffsets=(0,Fn.getLineOffsets)(this.text)),this.lineOffsets}};kr.TypeScriptDocumentSnapshot=Ag;var bd=class extends Fn.SourceMapDocumentMapper{constructor(e,n,r){super(e,n),this.nrPrependesLines=r}getOriginalPosition(e){return super.getOriginalPosition(Ok.Position.create(e.line-this.nrPrependesLines,e.character))}getGeneratedPosition(e){let n=super.getGeneratedPosition(e);return n.line+=this.nrPrependesLines,n}isInGenerated(){return!0}};kr.ConsumerDocumentMapper=bd});var zg=X(zt=>{"use strict";var wL=zt&&zt.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(zt,"__esModule",{value:!0});zt.classNameFromFilename=zt.createFromFrameworkFilePath=zt.createFromAstroFilePath=zt.createFromTSFilePath=zt.createFromNonAstroFilePath=zt.createFromFilePath=zt.createFromDocument=void 0;var Rg=Rl(),Nk=Ml(),yL=dt(),_L=wL(og()),ys=bt(),Ig=vd();function Wk(t,e){let{code:n,map:r,diagnostics:i}=(0,_L.default)(t.getText(),t.getURL()),o=r;return new Ig.AstroSnapshot(t,n,o,e.ScriptKind.TSX,i)}zt.createFromDocument=Wk;function SL(t,e,n){if((0,ys.isAstroFilePath)(t))return qk(t,e,n);if((0,ys.isFrameworkFilePath)(t)){let r=(0,ys.getFrameworkFromFilePath)(t);return Pg(t,r,n)}else return Mg(t,n)}zt.createFromFilePath=SL;function xL(t,e,n){if((0,ys.isFrameworkFilePath)(t)){let r=(0,ys.getFrameworkFromFilePath)(t);return Pg(t,r,e,n)}else return Mg(t,e,n)}zt.createFromNonAstroFilePath=xL;function Mg(t,e,n){let r=n??e.sys.readFile(t)??"";return new Ig.TypeScriptDocumentSnapshot(0,t,r,(0,ys.getScriptKindFromFileName)(t,e),!0)}zt.createFromTSFilePath=Mg;function qk(t,e,n){let r=n.sys.readFile(t)??"";return Wk(e(t,r),n)}zt.createFromAstroFilePath=qk;function Pg(t,e,n,r){let i=Uk(t),o=r??n.sys.readFile(t)??"",s="";if(e==="svelte"){let l=(0,Nk.importSvelteIntegration)(t);l&&(s=l.toTSX(o,i))}else if(e==="vue"){let l=(0,Nk.importVueIntegration)(t);l&&(s=l.toTSX(o,i))}return new Ig.TypeScriptDocumentSnapshot(0,t,s,n.ScriptKind.TSX,!1)}zt.createFromFrameworkFilePath=Pg;function Uk(t){let e=Rg.URI.parse(t),r=Rg.Utils.basename(e).slice(0,-Rg.Utils.extname(e).length).split("").filter(a=>/[A-Za-z$_\d-]/.test(a)).join(""),i=r.split("").findIndex(a=>/[A-Za-z]/.test(a)),o=r.substr(i),s=(0,yL.toPascalCase)(o);return i===-1?`A${s}`:s}zt.classNameFromFilename=Uk});var Ng=X(An=>{"use strict";var kL=An&&An.__createBinding||(Object.create?function(t,e,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(e,n);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,i)}:function(t,e,n,r){r===void 0&&(r=n),t[r]=e[n]}),CL=An&&An.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),TL=An&&An.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var n in t)n!=="default"&&Object.prototype.hasOwnProperty.call(t,n)&&kL(e,t,n);return CL(e,t),e};Object.defineProperty(An,"__esModule",{value:!0});An.SnapshotManager=An.GlobalSnapshotManager=void 0;var EL=hp(),Cr=dt(),DL=vd(),FL=TL(zg()),Og=class{constructor(e){this.ts=e,this.emitter=new EL.EventEmitter,this.documents=new Map}get(e){return e=(0,Cr.normalizePath)(e),this.documents.get(e)}set(e,n){e=(0,Cr.normalizePath)(e),this.documents.set(e,n),this.emitter.emit("change",e,n)}delete(e){e=(0,Cr.normalizePath)(e),this.documents.delete(e),this.emitter.emit("change",e,void 0)}updateNonAstroFile(e,n,r){e=(0,Cr.normalizePath)(e);let i=this.get(e);if(n&&i instanceof DL.TypeScriptDocumentSnapshot&&i.supportPartialUpdate)return i.update(n),this.emitter.emit("change",e,i),i;{let s=FL.createFromNonAstroFilePath(e,this.ts,r);return i?s.version=i.version+1:s.version+=1,this.set(e,s),this.emitter.emit("change",e,s),s}}onChange(e){this.emitter.on("change",e)}};An.GlobalSnapshotManager=Og;var Lg=class{constructor(e,n,r,i,o){this.globalSnapshotsManager=e,this.projectFiles=n,this.fileSpec=r,this.workspaceRoot=i,this.ts=o,this.documents=new Map,this.lastLogged=new Date(new Date().getTime()-60001),this.globalSnapshotsManager.onChange((s,l)=>{l?this.documents.has(s)&&this.documents.set(s,l):this.documents.delete(s)})}updateProjectFiles(){let{include:e,exclude:n}=this.fileSpec;if(e?.length===0)return;let r=this.ts.sys.readDirectory(this.workspaceRoot,[...Object.values(this.ts.Extension),".astro",".svelte",".vue"],n,e).map(Cr.normalizePath);this.projectFiles=Array.from(new Set([...this.projectFiles,...r]))}updateNonAstroFile(e,n,r){let i=this.globalSnapshotsManager.updateNonAstroFile(e,n,r);i&&this.documents.set((0,Cr.normalizePath)(e),i)}has(e){return e=(0,Cr.normalizePath)(e),this.projectFiles.includes(e)||this.getFileNames().includes(e)}set(e,n){this.globalSnapshotsManager.set(e,n),this.documents.set((0,Cr.normalizePath)(e),n)}get(e){e=(0,Cr.normalizePath)(e);let n=this.documents.get(e);return n||(n=this.globalSnapshotsManager.get(e),n&&this.documents.set(e,n)),n}delete(e){e=(0,Cr.normalizePath)(e),this.projectFiles=this.projectFiles.filter(n=>n!==e),this.globalSnapshotsManager.delete(e)}getFileNames(){return Array.from(this.documents.keys())}getProjectFileNames(){return[...this.projectFiles]}logStatistics(){let e=new Date;if(e.getTime()-this.lastLogged.getTime()>6e4){this.lastLogged=e;let n=this.getProjectFileNames(),r=Array.from(new Set([...n,...this.getFileNames()]));console.log(`SnapshotManager File Statistics:
|
|
602
602
|
Project files: ${n.length}
|