UNPKG

code-server

Version:

Run VS Code on a remote server.

1 lines 1.45 MB
"use strict";exports.id=769,exports.ids=[769],exports.modules={3815:(e,t,n)=>{var i;n.r(t),n.d(t,{ClientCapabilities:()=>Mt,CodeAction:()=>Dt.gY,CodeActionContext:()=>Dt.nb,CodeActionKind:()=>Dt.gB,Color:()=>Dt.Q1,ColorInformation:()=>Dt.Ox,ColorPresentation:()=>Dt.U$,Command:()=>Dt.uB,CompletionItem:()=>Dt.EB,CompletionItemKind:()=>Dt.Io,CompletionItemTag:()=>Dt.QP,CompletionList:()=>Dt.$e,Diagnostic:()=>Dt.oQ,DiagnosticSeverity:()=>Dt.h_,DocumentHighlight:()=>Dt.kp,DocumentHighlightKind:()=>Dt.Kb,DocumentLink:()=>Dt.dc,DocumentSymbol:()=>Dt.Az,DocumentUri:()=>Dt.Uc,FileType:()=>Rt,FoldingRange:()=>Dt.LM,FoldingRangeKind:()=>Dt.lO,Hover:()=>Dt.tU,InsertTextFormat:()=>Dt.q8,Location:()=>Dt.aZ,MarkedString:()=>Dt.aM,MarkupContent:()=>Dt.sQ,MarkupKind:()=>Dt.nw,Position:()=>Dt.yX,Range:()=>Dt.Q6,SelectionRange:()=>Dt.yn,SymbolInformation:()=>Dt.NI,SymbolKind:()=>Dt.v0,TextDocument:()=>It.TextDocument,TextDocumentEdit:()=>Dt.d3,TextEdit:()=>Dt.mF,VersionedTextDocumentIdentifier:()=>Dt.Fr,WorkspaceEdit:()=>Dt.Q2,getCSSLanguageService:()=>Gr,getDefaultCSSDataProvider:()=>jr,getLESSLanguageService:()=>Jr,getSCSSLanguageService:()=>Kr,newCSSDataProvider:()=>$r}),function(e){e[e.Ident=0]="Ident",e[e.AtKeyword=1]="AtKeyword",e[e.String=2]="String",e[e.BadString=3]="BadString",e[e.UnquotedString=4]="UnquotedString",e[e.Hash=5]="Hash",e[e.Num=6]="Num",e[e.Percentage=7]="Percentage",e[e.Dimension=8]="Dimension",e[e.UnicodeRange=9]="UnicodeRange",e[e.CDO=10]="CDO",e[e.CDC=11]="CDC",e[e.Colon=12]="Colon",e[e.SemiColon=13]="SemiColon",e[e.CurlyL=14]="CurlyL",e[e.CurlyR=15]="CurlyR",e[e.ParenthesisL=16]="ParenthesisL",e[e.ParenthesisR=17]="ParenthesisR",e[e.BracketL=18]="BracketL",e[e.BracketR=19]="BracketR",e[e.Whitespace=20]="Whitespace",e[e.Includes=21]="Includes",e[e.Dashmatch=22]="Dashmatch",e[e.SubstringOperator=23]="SubstringOperator",e[e.PrefixOperator=24]="PrefixOperator",e[e.SuffixOperator=25]="SuffixOperator",e[e.Delim=26]="Delim",e[e.EMS=27]="EMS",e[e.EXS=28]="EXS",e[e.Length=29]="Length",e[e.Angle=30]="Angle",e[e.Time=31]="Time",e[e.Freq=32]="Freq",e[e.Exclamation=33]="Exclamation",e[e.Resolution=34]="Resolution",e[e.Comma=35]="Comma",e[e.Charset=36]="Charset",e[e.EscapedJavaScript=37]="EscapedJavaScript",e[e.BadEscapedJavaScript=38]="BadEscapedJavaScript",e[e.Comment=39]="Comment",e[e.SingleLineComment=40]="SingleLineComment",e[e.EOF=41]="EOF",e[e.ContainerQueryLength=42]="ContainerQueryLength",e[e.CustomToken=43]="CustomToken"}(i||(i={}));class r{constructor(e){this.source=e,this.len=e.length,this.position=0}substring(e,t=this.position){return this.source.substring(e,t)}eos(){return this.len<=this.position}pos(){return this.position}goBackTo(e){this.position=e}goBack(e){this.position-=e}advance(e){this.position+=e}nextChar(){return this.source.charCodeAt(this.position++)||0}peekChar(e=0){return this.source.charCodeAt(this.position+e)||0}lookbackChar(e=0){return this.source.charCodeAt(this.position-e)||0}advanceIfChar(e){return e===this.source.charCodeAt(this.position)&&(this.position++,!0)}advanceIfChars(e){if(this.position+e.length>this.source.length)return!1;let t=0;for(;t<e.length;t++)if(this.source.charCodeAt(this.position+t)!==e[t])return!1;return this.advance(t),!0}advanceWhileChar(e){const t=this.position;for(;this.position<this.len&&e(this.source.charCodeAt(this.position));)this.position++;return this.position-t}}const s="a".charCodeAt(0),o="f".charCodeAt(0),a="z".charCodeAt(0),l=("u".charCodeAt(0),"A".charCodeAt(0)),c="F".charCodeAt(0),d="Z".charCodeAt(0),h="0".charCodeAt(0),p="9".charCodeAt(0),u="~".charCodeAt(0),m="^".charCodeAt(0),f="=".charCodeAt(0),g="|".charCodeAt(0),b="-".charCodeAt(0),w="_".charCodeAt(0),v="%".charCodeAt(0),y="*".charCodeAt(0),_="(".charCodeAt(0),S=")".charCodeAt(0),x="<".charCodeAt(0),k=">".charCodeAt(0),C="@".charCodeAt(0),T="#".charCodeAt(0),F="$".charCodeAt(0),A="\\".charCodeAt(0),E="/".charCodeAt(0),M="\n".charCodeAt(0),R="\r".charCodeAt(0),D="\f".charCodeAt(0),I='"'.charCodeAt(0),z="'".charCodeAt(0),O=" ".charCodeAt(0),P="\t".charCodeAt(0),N=";".charCodeAt(0),L=":".charCodeAt(0),W="{".charCodeAt(0),q="}".charCodeAt(0),U="[".charCodeAt(0),H="]".charCodeAt(0),j=",".charCodeAt(0),$=".".charCodeAt(0),V="!".charCodeAt(0),B="?".charCodeAt(0),G="+".charCodeAt(0),K={};K[N]=i.SemiColon,K[L]=i.Colon,K[W]=i.CurlyL,K[q]=i.CurlyR,K[H]=i.BracketR,K[U]=i.BracketL,K[_]=i.ParenthesisL,K[S]=i.ParenthesisR,K[j]=i.Comma;const J={};J.em=i.EMS,J.ex=i.EXS,J.px=i.Length,J.cm=i.Length,J.mm=i.Length,J.in=i.Length,J.pt=i.Length,J.pc=i.Length,J.deg=i.Angle,J.rad=i.Angle,J.grad=i.Angle,J.ms=i.Time,J.s=i.Time,J.hz=i.Freq,J.khz=i.Freq,J["%"]=i.Percentage,J.fr=i.Percentage,J.dpi=i.Resolution,J.dpcm=i.Resolution,J.cqw=i.ContainerQueryLength,J.cqh=i.ContainerQueryLength,J.cqi=i.ContainerQueryLength,J.cqb=i.ContainerQueryLength,J.cqmin=i.ContainerQueryLength,J.cqmax=i.ContainerQueryLength;class X{constructor(){this.stream=new r(""),this.ignoreComment=!0,this.ignoreWhitespace=!0,this.inURL=!1}setSource(e){this.stream=new r(e)}finishToken(e,t,n){return{offset:e,len:this.stream.pos()-e,type:t,text:n||this.stream.substring(e)}}substring(e,t){return this.stream.substring(e,e+t)}pos(){return this.stream.pos()}goBackTo(e){this.stream.goBackTo(e)}scanUnquotedString(){const e=this.stream.pos(),t=[];return this._unquotedString(t)?this.finishToken(e,i.UnquotedString,t.join("")):null}scan(){const e=this.trivia();if(null!==e)return e;const t=this.stream.pos();return this.stream.eos()?this.finishToken(t,i.EOF):this.scanNext(t)}tryScanUnicode(){const e=this.stream.pos();if(!this.stream.eos()&&this._unicodeRange())return this.finishToken(e,i.UnicodeRange);this.stream.goBackTo(e)}scanNext(e){if(this.stream.advanceIfChars([x,V,b,b]))return this.finishToken(e,i.CDO);if(this.stream.advanceIfChars([b,b,k]))return this.finishToken(e,i.CDC);let t=[];if(this.ident(t))return this.finishToken(e,i.Ident,t.join(""));if(this.stream.advanceIfChar(C)){if(t=["@"],this._name(t)){const n=t.join("");return"@charset"===n?this.finishToken(e,i.Charset,n):this.finishToken(e,i.AtKeyword,n)}return this.finishToken(e,i.Delim)}if(this.stream.advanceIfChar(T))return t=["#"],this._name(t)?this.finishToken(e,i.Hash,t.join("")):this.finishToken(e,i.Delim);if(this.stream.advanceIfChar(V))return this.finishToken(e,i.Exclamation);if(this._number()){const n=this.stream.pos();if(t=[this.stream.substring(e,n)],this.stream.advanceIfChar(v))return this.finishToken(e,i.Percentage);if(this.ident(t)){const r=this.stream.substring(n).toLowerCase(),s=J[r];return void 0!==s?this.finishToken(e,s,t.join("")):this.finishToken(e,i.Dimension,t.join(""))}return this.finishToken(e,i.Num)}t=[];let n=this._string(t);return null!==n?this.finishToken(e,n,t.join("")):(n=K[this.stream.peekChar()],void 0!==n?(this.stream.advance(1),this.finishToken(e,n)):this.stream.peekChar(0)===u&&this.stream.peekChar(1)===f?(this.stream.advance(2),this.finishToken(e,i.Includes)):this.stream.peekChar(0)===g&&this.stream.peekChar(1)===f?(this.stream.advance(2),this.finishToken(e,i.Dashmatch)):this.stream.peekChar(0)===y&&this.stream.peekChar(1)===f?(this.stream.advance(2),this.finishToken(e,i.SubstringOperator)):this.stream.peekChar(0)===m&&this.stream.peekChar(1)===f?(this.stream.advance(2),this.finishToken(e,i.PrefixOperator)):this.stream.peekChar(0)===F&&this.stream.peekChar(1)===f?(this.stream.advance(2),this.finishToken(e,i.SuffixOperator)):(this.stream.nextChar(),this.finishToken(e,i.Delim)))}trivia(){for(;;){const e=this.stream.pos();if(this._whitespace()){if(!this.ignoreWhitespace)return this.finishToken(e,i.Whitespace)}else{if(!this.comment())return null;if(!this.ignoreComment)return this.finishToken(e,i.Comment)}}}comment(){if(this.stream.advanceIfChars([E,y])){let e=!1,t=!1;return this.stream.advanceWhileChar((n=>t&&n===E?(e=!0,!1):(t=n===y,!0))),e&&this.stream.advance(1),!0}return!1}_number(){let e=0,t=!1;const n=this.stream.peekChar();n!==G&&n!==b||e++,this.stream.peekChar(e)===$&&(e++,t=!0);const i=this.stream.peekChar(e);return i>=h&&i<=p&&(this.stream.advance(e+1),this.stream.advanceWhileChar((e=>e>=h&&e<=p||!t&&e===$)),!0)}_newline(e){const t=this.stream.peekChar();switch(t){case R:case D:case M:return this.stream.advance(1),e.push(String.fromCharCode(t)),t===R&&this.stream.advanceIfChar(M)&&e.push("\n"),!0}return!1}_escape(e,t){let n=this.stream.peekChar();if(n===A){this.stream.advance(1),n=this.stream.peekChar();let i=0;for(;i<6&&(n>=h&&n<=p||n>=s&&n<=o||n>=l&&n<=c);)this.stream.advance(1),n=this.stream.peekChar(),i++;if(i>0){try{const t=parseInt(this.stream.substring(this.stream.pos()-i),16);t&&e.push(String.fromCharCode(t))}catch(e){}return n===O||n===P?this.stream.advance(1):this._newline([]),!0}if(n!==R&&n!==D&&n!==M)return this.stream.advance(1),e.push(String.fromCharCode(n)),!0;if(t)return this._newline(e)}return!1}_stringChar(e,t){const n=this.stream.peekChar();return 0!==n&&n!==e&&n!==A&&n!==R&&n!==D&&n!==M&&(this.stream.advance(1),t.push(String.fromCharCode(n)),!0)}_string(e){if(this.stream.peekChar()===z||this.stream.peekChar()===I){const t=this.stream.nextChar();for(e.push(String.fromCharCode(t));this._stringChar(t,e)||this._escape(e,!0););return this.stream.peekChar()===t?(this.stream.nextChar(),e.push(String.fromCharCode(t)),i.String):i.BadString}return null}_unquotedChar(e){const t=this.stream.peekChar();return 0!==t&&t!==A&&t!==z&&t!==I&&t!==_&&t!==S&&t!==O&&t!==P&&t!==M&&t!==D&&t!==R&&(this.stream.advance(1),e.push(String.fromCharCode(t)),!0)}_unquotedString(e){let t=!1;for(;this._unquotedChar(e)||this._escape(e);)t=!0;return t}_whitespace(){return this.stream.advanceWhileChar((e=>e===O||e===P||e===M||e===D||e===R))>0}_name(e){let t=!1;for(;this._identChar(e)||this._escape(e);)t=!0;return t}ident(e){const t=this.stream.pos();if(this._minus(e)){if(this._minus(e)||this._identFirstChar(e)||this._escape(e)){for(;this._identChar(e)||this._escape(e););return!0}}else if(this._identFirstChar(e)||this._escape(e)){for(;this._identChar(e)||this._escape(e););return!0}return this.stream.goBackTo(t),!1}_identFirstChar(e){const t=this.stream.peekChar();return(t===w||t>=s&&t<=a||t>=l&&t<=d||t>=128&&t<=65535)&&(this.stream.advance(1),e.push(String.fromCharCode(t)),!0)}_minus(e){const t=this.stream.peekChar();return t===b&&(this.stream.advance(1),e.push(String.fromCharCode(t)),!0)}_identChar(e){const t=this.stream.peekChar();return(t===w||t===b||t>=s&&t<=a||t>=l&&t<=d||t>=h&&t<=p||t>=128&&t<=65535)&&(this.stream.advance(1),e.push(String.fromCharCode(t)),!0)}_unicodeRange(){if(this.stream.advanceIfChar(G)){const e=e=>e>=h&&e<=p||e>=s&&e<=o||e>=l&&e<=c,t=this.stream.advanceWhileChar(e)+this.stream.advanceWhileChar((e=>e===B));if(t>=1&&t<=6){if(!this.stream.advanceIfChar(b))return!0;{const t=this.stream.advanceWhileChar(e);if(t>=1&&t<=6)return!0}}}return!1}}function Q(e,t){if(e.length<t.length)return!1;for(let n=0;n<t.length;n++)if(e[n]!==t[n])return!1;return!0}function Y(e,t){let n=e.length-t.length;return n>0?e.lastIndexOf(t)===n:0===n&&e===t}function Z(e,t=!0){return e?e.length<140?e:e.slice(0,140)+(t?"…":""):""}function ee(e,t){let n="";for(;t>0;)1&~t||(n+=e),e+=e,t>>>=1;return n}var te,ne;function ie(e,t){let n=null;return!e||t<e.offset||t>e.end?null:(e.accept((e=>-1===e.offset&&-1===e.length||e.offset<=t&&e.end>=t&&(n?e.length<=n.length&&(n=e):n=e,!0))),n)}function re(e,t){let n=ie(e,t);const i=[];for(;n;)i.unshift(n),n=n.parent;return i}!function(e){e[e.Undefined=0]="Undefined",e[e.Identifier=1]="Identifier",e[e.Stylesheet=2]="Stylesheet",e[e.Ruleset=3]="Ruleset",e[e.Selector=4]="Selector",e[e.SimpleSelector=5]="SimpleSelector",e[e.SelectorInterpolation=6]="SelectorInterpolation",e[e.SelectorCombinator=7]="SelectorCombinator",e[e.SelectorCombinatorParent=8]="SelectorCombinatorParent",e[e.SelectorCombinatorSibling=9]="SelectorCombinatorSibling",e[e.SelectorCombinatorAllSiblings=10]="SelectorCombinatorAllSiblings",e[e.SelectorCombinatorShadowPiercingDescendant=11]="SelectorCombinatorShadowPiercingDescendant",e[e.Page=12]="Page",e[e.PageBoxMarginBox=13]="PageBoxMarginBox",e[e.ClassSelector=14]="ClassSelector",e[e.IdentifierSelector=15]="IdentifierSelector",e[e.ElementNameSelector=16]="ElementNameSelector",e[e.PseudoSelector=17]="PseudoSelector",e[e.AttributeSelector=18]="AttributeSelector",e[e.Declaration=19]="Declaration",e[e.Declarations=20]="Declarations",e[e.Property=21]="Property",e[e.Expression=22]="Expression",e[e.BinaryExpression=23]="BinaryExpression",e[e.Term=24]="Term",e[e.Operator=25]="Operator",e[e.Value=26]="Value",e[e.StringLiteral=27]="StringLiteral",e[e.URILiteral=28]="URILiteral",e[e.EscapedValue=29]="EscapedValue",e[e.Function=30]="Function",e[e.NumericValue=31]="NumericValue",e[e.HexColorValue=32]="HexColorValue",e[e.RatioValue=33]="RatioValue",e[e.MixinDeclaration=34]="MixinDeclaration",e[e.MixinReference=35]="MixinReference",e[e.VariableName=36]="VariableName",e[e.VariableDeclaration=37]="VariableDeclaration",e[e.Prio=38]="Prio",e[e.Interpolation=39]="Interpolation",e[e.NestedProperties=40]="NestedProperties",e[e.ExtendsReference=41]="ExtendsReference",e[e.SelectorPlaceholder=42]="SelectorPlaceholder",e[e.Debug=43]="Debug",e[e.If=44]="If",e[e.Else=45]="Else",e[e.For=46]="For",e[e.Each=47]="Each",e[e.While=48]="While",e[e.MixinContentReference=49]="MixinContentReference",e[e.MixinContentDeclaration=50]="MixinContentDeclaration",e[e.Media=51]="Media",e[e.Keyframe=52]="Keyframe",e[e.FontFace=53]="FontFace",e[e.Import=54]="Import",e[e.Namespace=55]="Namespace",e[e.Invocation=56]="Invocation",e[e.FunctionDeclaration=57]="FunctionDeclaration",e[e.ReturnStatement=58]="ReturnStatement",e[e.MediaQuery=59]="MediaQuery",e[e.MediaCondition=60]="MediaCondition",e[e.MediaFeature=61]="MediaFeature",e[e.FunctionParameter=62]="FunctionParameter",e[e.FunctionArgument=63]="FunctionArgument",e[e.KeyframeSelector=64]="KeyframeSelector",e[e.ViewPort=65]="ViewPort",e[e.Document=66]="Document",e[e.AtApplyRule=67]="AtApplyRule",e[e.CustomPropertyDeclaration=68]="CustomPropertyDeclaration",e[e.CustomPropertySet=69]="CustomPropertySet",e[e.ListEntry=70]="ListEntry",e[e.Supports=71]="Supports",e[e.SupportsCondition=72]="SupportsCondition",e[e.NamespacePrefix=73]="NamespacePrefix",e[e.GridLine=74]="GridLine",e[e.Plugin=75]="Plugin",e[e.UnknownAtRule=76]="UnknownAtRule",e[e.Use=77]="Use",e[e.ModuleConfiguration=78]="ModuleConfiguration",e[e.Forward=79]="Forward",e[e.ForwardVisibility=80]="ForwardVisibility",e[e.Module=81]="Module",e[e.UnicodeRange=82]="UnicodeRange",e[e.Layer=83]="Layer",e[e.LayerNameList=84]="LayerNameList",e[e.LayerName=85]="LayerName",e[e.PropertyAtRule=86]="PropertyAtRule",e[e.Container=87]="Container",e[e.ModuleConfig=88]="ModuleConfig",e[e.SelectorList=89]="SelectorList",e[e.StartingStyleAtRule=90]="StartingStyleAtRule"}(te||(te={})),function(e){e[e.Mixin=0]="Mixin",e[e.Rule=1]="Rule",e[e.Variable=2]="Variable",e[e.Function=3]="Function",e[e.Keyframe=4]="Keyframe",e[e.Unknown=5]="Unknown",e[e.Module=6]="Module",e[e.Forward=7]="Forward",e[e.ForwardVisibility=8]="ForwardVisibility",e[e.Property=9]="Property"}(ne||(ne={}));class se{get end(){return this.offset+this.length}constructor(e=-1,t=-1,n){this.parent=null,this.offset=e,this.length=t,n&&(this.nodeType=n)}set type(e){this.nodeType=e}get type(){return this.nodeType||te.Undefined}getTextProvider(){let e=this;for(;e&&!e.textProvider;)e=e.parent;return e?e.textProvider:()=>"unknown"}getText(){return this.getTextProvider()(this.offset,this.length)}matches(e){return this.length===e.length&&this.getTextProvider()(this.offset,this.length)===e}startsWith(e){return this.length>=e.length&&this.getTextProvider()(this.offset,e.length)===e}endsWith(e){return this.length>=e.length&&this.getTextProvider()(this.end-e.length,e.length)===e}accept(e){if(e(this)&&this.children)for(const t of this.children)t.accept(e)}acceptVisitor(e){this.accept(e.visitNode.bind(e))}adoptChild(e,t=-1){if(e.parent&&e.parent.children){const t=e.parent.children.indexOf(e);t>=0&&e.parent.children.splice(t,1)}e.parent=this;let n=this.children;return n||(n=this.children=[]),-1!==t?n.splice(t,0,e):n.push(e),e}attachTo(e,t=-1){return e&&e.adoptChild(this,t),this}collectIssues(e){this.issues&&e.push.apply(e,this.issues)}addIssue(e){this.issues||(this.issues=[]),this.issues.push(e)}hasIssue(e){return Array.isArray(this.issues)&&this.issues.some((t=>t.getRule()===e))}isErroneous(e=!1){return!!(this.issues&&this.issues.length>0)||e&&Array.isArray(this.children)&&this.children.some((e=>e.isErroneous(!0)))}setNode(e,t,n=-1){return!!t&&(t.attachTo(this,n),this[e]=t,!0)}addChild(e){return!!e&&(this.children||(this.children=[]),e.attachTo(this),this.updateOffsetAndLength(e),!0)}updateOffsetAndLength(e){(e.offset<this.offset||-1===this.offset)&&(this.offset=e.offset);const t=e.end;(t>this.end||-1===this.length)&&(this.length=t-this.offset)}hasChildren(){return!!this.children&&this.children.length>0}getChildren(){return this.children?this.children.slice(0):[]}getChild(e){return this.children&&e<this.children.length?this.children[e]:null}addChildren(e){for(const t of e)this.addChild(t)}findFirstChildBeforeOffset(e){if(this.children){let t=null;for(let n=this.children.length-1;n>=0;n--)if(t=this.children[n],t.offset<=e)return t}return null}findChildAtOffset(e,t){const n=this.findFirstChildBeforeOffset(e);return n&&n.end>=e?t&&n.findChildAtOffset(e,!0)||n:null}encloses(e){return this.offset<=e.offset&&this.offset+this.length>=e.offset+e.length}getParent(){let e=this.parent;for(;e instanceof oe;)e=e.parent;return e}findParent(e){let t=this;for(;t&&t.type!==e;)t=t.parent;return t}findAParent(...e){let t=this;for(;t&&!e.some((e=>t.type===e));)t=t.parent;return t}setData(e,t){this.options||(this.options={}),this.options[e]=t}getData(e){return this.options&&this.options.hasOwnProperty(e)?this.options[e]:null}}class oe extends se{constructor(e,t=-1){super(-1,-1),this.attachTo(e,t),this.offset=-1,this.length=-1}}class ae extends se{constructor(e,t){super(e,t)}get type(){return te.UnicodeRange}setRangeStart(e){return this.setNode("rangeStart",e)}getRangeStart(){return this.rangeStart}setRangeEnd(e){return this.setNode("rangeEnd",e)}getRangeEnd(){return this.rangeEnd}}class le extends se{constructor(e,t){super(e,t),this.isCustomProperty=!1}get type(){return te.Identifier}containsInterpolation(){return this.hasChildren()}}class ce extends se{constructor(e,t){super(e,t)}get type(){return te.Stylesheet}}class de extends se{constructor(e,t){super(e,t)}get type(){return te.Declarations}}class he extends se{constructor(e,t){super(e,t)}getDeclarations(){return this.declarations}setDeclarations(e){return this.setNode("declarations",e)}}class pe extends he{constructor(e,t){super(e,t)}get type(){return te.Ruleset}getSelectors(){return this.selectors||(this.selectors=new oe(this)),this.selectors}isNested(){return!!this.parent&&null!==this.parent.findParent(te.Declarations)}}class ue extends se{constructor(e,t){super(e,t)}get type(){return te.Selector}}class me extends se{constructor(e,t){super(e,t)}get type(){return te.SimpleSelector}}class fe extends se{constructor(e,t){super(e,t)}}class ge extends he{constructor(e,t){super(e,t)}get type(){return te.CustomPropertySet}}class be extends fe{constructor(e,t){super(e,t),this.property=null}get type(){return te.Declaration}setProperty(e){return this.setNode("property",e)}getProperty(){return this.property}getFullPropertyName(){const e=this.property?this.property.getName():"unknown";if(this.parent instanceof de&&this.parent.getParent()instanceof De){const t=this.parent.getParent().getParent();if(t instanceof be)return t.getFullPropertyName()+e}return e}getNonPrefixedPropertyName(){const e=this.getFullPropertyName();if(e&&"-"===e.charAt(0)){const t=e.indexOf("-",1);if(-1!==t)return e.substring(t+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}}class we extends be{constructor(e,t){super(e,t)}get type(){return te.CustomPropertyDeclaration}setPropertySet(e){return this.setNode("propertySet",e)}getPropertySet(){return this.propertySet}}class ve extends se{constructor(e,t){super(e,t)}get type(){return te.Property}setIdentifier(e){return this.setNode("identifier",e)}getIdentifier(){return this.identifier}getName(){return function(e,t){const n=/[_\+]+$/.exec(e);return n&&n[0].length?e.substr(0,e.length-n[0].length):e}(this.getText())}isCustomProperty(){return!!this.identifier&&this.identifier.isCustomProperty}}class ye extends se{constructor(e,t){super(e,t)}get type(){return te.Invocation}getArguments(){return this.arguments||(this.arguments=new oe(this)),this.arguments}}class _e extends ye{constructor(e,t){super(e,t)}get type(){return te.Function}setIdentifier(e){return this.setNode("identifier",e,0)}getIdentifier(){return this.identifier}getName(){return this.identifier?this.identifier.getText():""}}class Se extends se{constructor(e,t){super(e,t)}get type(){return te.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}}class xe extends se{constructor(e,t){super(e,t)}get type(){return te.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}}class ke extends he{constructor(e,t){super(e,t)}get type(){return te.If}setExpression(e){return this.setNode("expression",e,0)}setElseClause(e){return this.setNode("elseClause",e)}}class Ce extends he{constructor(e,t){super(e,t)}get type(){return te.For}setVariable(e){return this.setNode("variable",e,0)}}class Te extends he{constructor(e,t){super(e,t)}get type(){return te.Each}getVariables(){return this.variables||(this.variables=new oe(this)),this.variables}}class Fe extends he{constructor(e,t){super(e,t)}get type(){return te.While}}class Ae extends he{constructor(e,t){super(e,t)}get type(){return te.Else}}class Ee extends he{constructor(e,t){super(e,t)}get type(){return te.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 oe(this)),this.parameters}}class Me extends he{constructor(e,t){super(e,t)}get type(){return te.ViewPort}}class Re extends he{constructor(e,t){super(e,t)}get type(){return te.FontFace}}class De extends he{constructor(e,t){super(e,t)}get type(){return te.NestedProperties}}class Ie extends he{constructor(e,t){super(e,t)}get type(){return te.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():""}}class ze extends he{constructor(e,t){super(e,t)}get type(){return te.KeyframeSelector}}class Oe extends se{constructor(e,t){super(e,t)}get type(){return te.Import}setMedialist(e){return!!e&&(e.attachTo(this),!0)}}class Pe extends se{get type(){return te.Use}setParameters(e){return this.setNode("parameters",e)}getParameters(){return this.parameters}setIdentifier(e){return this.setNode("identifier",e,0)}getIdentifier(){return this.identifier}}class Ne extends se{get type(){return te.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}}class Le extends se{get type(){return te.Forward}setIdentifier(e){return this.setNode("identifier",e,0)}getIdentifier(){return this.identifier}setParameters(e){return this.setNode("parameters",e)}getParameters(){return this.parameters}}class We extends se{get type(){return te.ForwardVisibility}setIdentifier(e){return this.setNode("identifier",e,0)}getIdentifier(){return this.identifier}}class qe extends se{constructor(e,t){super(e,t)}get type(){return te.Namespace}}class Ue extends he{constructor(e,t){super(e,t)}get type(){return te.Media}}class He extends he{constructor(e,t){super(e,t)}get type(){return te.Supports}}class je extends he{constructor(e,t){super(e,t)}get type(){return te.Layer}setNames(e){return this.setNode("names",e)}getNames(){return this.names}}class $e extends he{constructor(e,t){super(e,t)}get type(){return te.PropertyAtRule}setName(e){return!!e&&(e.attachTo(this),this.name=e,!0)}getName(){return this.name}}class Ve extends he{constructor(e,t){super(e,t)}get type(){return te.StartingStyleAtRule}}class Be extends he{constructor(e,t){super(e,t)}get type(){return te.Document}}class Ge extends he{constructor(e,t){super(e,t)}get type(){return te.Container}}class Ke extends se{constructor(e,t){super(e,t)}}class Je extends se{constructor(e,t){super(e,t)}get type(){return te.MediaQuery}}class Xe extends se{constructor(e,t){super(e,t)}get type(){return te.MediaCondition}}class Qe extends se{constructor(e,t){super(e,t)}get type(){return te.MediaFeature}}class Ye extends se{constructor(e,t){super(e,t)}get type(){return te.SupportsCondition}}class Ze extends he{constructor(e,t){super(e,t)}get type(){return te.Page}}class et extends he{constructor(e,t){super(e,t)}get type(){return te.PageBoxMarginBox}}class tt extends se{constructor(e,t){super(e,t)}get type(){return te.Expression}}class nt extends se{constructor(e,t){super(e,t)}get type(){return te.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}}class it extends se{constructor(e,t){super(e,t)}get type(){return te.Term}setOperator(e){return this.setNode("operator",e)}getOperator(){return this.operator}setExpression(e){return this.setNode("expression",e)}getExpression(){return this.expression}}class rt extends se{constructor(e,t){super(e,t)}get type(){return te.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}}class st extends se{constructor(e,t){super(e,t)}get type(){return te.HexColorValue}}class ot extends se{constructor(e,t){super(e,t)}get type(){return te.RatioValue}}const at=".".charCodeAt(0),lt="0".charCodeAt(0),ct="9".charCodeAt(0);class dt extends se{constructor(e,t){super(e,t)}get type(){return te.NumericValue}getValue(){const e=this.getText();let t,n=0;for(let i=0,r=e.length;i<r&&(t=e.charCodeAt(i),lt<=t&&t<=ct||t===at);i++)n+=1;return{value:e.substring(0,n),unit:n<e.length?e.substring(n):void 0}}}class ht extends fe{constructor(e,t){super(e,t),this.needsSemicolon=!0}get type(){return te.VariableDeclaration}setVariable(e){return!!e&&(e.attachTo(this),this.variable=e,!0)}getVariable(){return this.variable}getName(){return this.variable?this.variable.getName():""}setValue(e){return!!e&&(e.attachTo(this),this.value=e,!0)}getValue(){return this.value}}class pt extends se{constructor(e,t){super(e,t)}get type(){return te.Interpolation}}class ut extends se{constructor(e,t){super(e,t)}get type(){return te.VariableName}getName(){return this.getText()}}class mt extends se{constructor(e,t){super(e,t)}get type(){return te.ExtendsReference}getSelectors(){return this.selectors||(this.selectors=new oe(this)),this.selectors}}class ft extends se{constructor(e,t){super(e,t)}get type(){return te.MixinContentReference}getArguments(){return this.arguments||(this.arguments=new oe(this)),this.arguments}}class gt extends he{constructor(e,t){super(e,t)}get type(){return te.MixinContentDeclaration}getParameters(){return this.parameters||(this.parameters=new oe(this)),this.parameters}}class bt extends se{constructor(e,t){super(e,t)}get type(){return te.MixinReference}getNamespaces(){return this.namespaces||(this.namespaces=new oe(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 oe(this)),this.arguments}setContent(e){return this.setNode("content",e)}getContent(){return this.content}}class wt extends he{constructor(e,t){super(e,t)}get type(){return te.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 oe(this)),this.parameters}setGuard(e){return e&&(e.attachTo(this),this.guard=e),!1}}class vt extends he{constructor(e,t){super(e,t)}get type(){return te.UnknownAtRule}setAtRuleName(e){this.atRuleName=e}getAtRuleName(){return this.atRuleName}}class yt extends se{get type(){return te.ListEntry}setKey(e){return this.setNode("key",e,0)}setValue(e){return this.setNode("value",e,1)}}class _t extends se{getConditions(){return this.conditions||(this.conditions=new oe(this)),this.conditions}}class St extends se{setVariable(e){return this.setNode("variable",e)}}class xt extends se{get type(){return te.Module}setIdentifier(e){return this.setNode("identifier",e,0)}getIdentifier(){return this.identifier}}var kt;!function(e){e[e.Ignore=1]="Ignore",e[e.Warning=2]="Warning",e[e.Error=4]="Error"}(kt||(kt={}));class Ct{constructor(e,t,n,i,r=e.offset,s=e.length){this.node=e,this.rule=t,this.level=n,this.message=i||t.message,this.offset=r,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}}class Tt{static entries(e){const t=new Tt;return e.acceptVisitor(t),t.entries}constructor(){this.entries=[]}visitNode(e){return e.isErroneous()&&e.collectIssues(this.entries),!0}}var Ft=n(5747);class At{constructor(e,t){this.id=e,this.message=t}}const Et={NumberExpected:new At("css-numberexpected",Ft.t("number expected")),ConditionExpected:new At("css-conditionexpected",Ft.t("condition expected")),RuleOrSelectorExpected:new At("css-ruleorselectorexpected",Ft.t("at-rule or selector expected")),DotExpected:new At("css-dotexpected",Ft.t("dot expected")),ColonExpected:new At("css-colonexpected",Ft.t("colon expected")),SemiColonExpected:new At("css-semicolonexpected",Ft.t("semi-colon expected")),TermExpected:new At("css-termexpected",Ft.t("term expected")),ExpressionExpected:new At("css-expressionexpected",Ft.t("expression expected")),OperatorExpected:new At("css-operatorexpected",Ft.t("operator expected")),IdentifierExpected:new At("css-identifierexpected",Ft.t("identifier expected")),PercentageExpected:new At("css-percentageexpected",Ft.t("percentage expected")),URIOrStringExpected:new At("css-uriorstringexpected",Ft.t("uri or string expected")),URIExpected:new At("css-uriexpected",Ft.t("URI expected")),VariableNameExpected:new At("css-varnameexpected",Ft.t("variable name expected")),VariableValueExpected:new At("css-varvalueexpected",Ft.t("variable value expected")),PropertyValueExpected:new At("css-propertyvalueexpected",Ft.t("property value expected")),LeftCurlyExpected:new At("css-lcurlyexpected",Ft.t("{ expected")),RightCurlyExpected:new At("css-rcurlyexpected",Ft.t("} expected")),LeftSquareBracketExpected:new At("css-rbracketexpected",Ft.t("[ expected")),RightSquareBracketExpected:new At("css-lbracketexpected",Ft.t("] expected")),LeftParenthesisExpected:new At("css-lparentexpected",Ft.t("( expected")),RightParenthesisExpected:new At("css-rparentexpected",Ft.t(") expected")),CommaExpected:new At("css-commaexpected",Ft.t("comma expected")),PageDirectiveOrDeclarationExpected:new At("css-pagedirordeclexpected",Ft.t("page directive or declaraton expected")),UnknownAtRule:new At("css-unknownatrule",Ft.t("at-rule unknown")),UnknownKeyword:new At("css-unknownkeyword",Ft.t("unknown keyword")),SelectorExpected:new At("css-selectorexpected",Ft.t("selector expected")),StringLiteralExpected:new At("css-stringliteralexpected",Ft.t("string literal expected")),WhitespaceExpected:new At("css-whitespaceexpected",Ft.t("whitespace expected")),MediaQueryExpected:new At("css-mediaqueryexpected",Ft.t("media query expected")),IdentifierOrWildcardExpected:new At("css-idorwildcardexpected",Ft.t("identifier or wildcard expected")),WildcardExpected:new At("css-wildcardexpected",Ft.t("wildcard expected")),IdentifierOrVariableExpected:new At("css-idorvarexpected",Ft.t("identifier or variable expected"))};var Mt,Rt,Dt=n(6203),It=n(5172);!function(e){e.LATEST={textDocument:{completion:{completionItem:{documentationFormat:[Dt.nw.Markdown,Dt.nw.PlainText]}},hover:{contentFormat:[Dt.nw.Markdown,Dt.nw.PlainText]}}}}(Mt||(Mt={})),function(e){e[e.Unknown=0]="Unknown",e[e.File=1]="File",e[e.Directory=2]="Directory",e[e.SymbolicLink=64]="SymbolicLink"}(Rt||(Rt={}));const zt={E:"Edge",FF:"Firefox",S:"Safari",C:"Chrome",IE:"IE",O:"Opera"};function Ot(e){switch(e){case"experimental":return"⚠️ Property is experimental. Be cautious when using it.️\n\n";case"nonstandard":return"🚨️ Property is nonstandard. Avoid using it.\n\n";case"obsolete":return"🚨️️️ Property is obsolete. Avoid using it.\n\n";default:return""}}function Pt(e,t,n){let i;if(i=t?{kind:"markdown",value:Wt(e,n)}:{kind:"plaintext",value:Lt(e,n)},""!==i.value)return i}function Nt(e){return(e=e.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")).replace(/</g,"&lt;").replace(/>/g,"&gt;")}function Lt(e,t){if(!e.description||""===e.description)return"";if("string"!=typeof e.description)return e.description.value;let n="";if(!1!==t?.documentation){e.status&&(n+=Ot(e.status)),n+=e.description;const t=qt(e.browsers);t&&(n+="\n("+t+")"),"syntax"in e&&(n+=`\n\nSyntax: ${e.syntax}`)}return e.references&&e.references.length>0&&!1!==t?.references&&(n.length>0&&(n+="\n\n"),n+=e.references.map((e=>`${e.name}: ${e.url}`)).join(" | ")),n}function Wt(e,t){if(!e.description||""===e.description)return"";let n="";if(!1!==t?.documentation){e.status&&(n+=Ot(e.status)),"string"==typeof e.description?n+=Nt(e.description):n+=e.description.kind===Dt.nw.Markdown?e.description.value:Nt(e.description.value);const t=qt(e.browsers);t&&(n+="\n\n("+Nt(t)+")"),"syntax"in e&&e.syntax&&(n+=`\n\nSyntax: ${Nt(e.syntax)}`)}return e.references&&e.references.length>0&&!1!==t?.references&&(n.length>0&&(n+="\n\n"),n+=e.references.map((e=>`[${e.name}](${e.url})`)).join(" | ")),n}function qt(e=[]){if(0===e.length)return null;const t=[];for(const n of e){const e=n.match(/([A-Z]+)(\d+)?/),i=e[1],r=e[2];if(i in zt){let e=zt[i];r&&(e+=" "+r),t.push(e)}}return t.join(", ")}const Ut=/(^#([0-9A-F]{3}){1,2}$)|(^#([0-9A-F]{4}){1,2}$)/i,Ht=[{label:"rgb",func:"rgb($red, $green, $blue)",insertText:"rgb(${1:red}, ${2:green}, ${3:blue})",desc:Ft.t("Creates a Color from red, green, and blue values.")},{label:"rgba",func:"rgba($red, $green, $blue, $alpha)",insertText:"rgba(${1:red}, ${2:green}, ${3:blue}, ${4:alpha})",desc:Ft.t("Creates a Color from red, green, blue, and alpha values.")},{label:"rgb relative",func:"rgb(from $color $red $green $blue)",insertText:"rgb(from ${1:color} ${2:r} ${3:g} ${4:b})",desc:Ft.t("Creates a Color from the red, green, and blue values of another Color.")},{label:"hsl",func:"hsl($hue, $saturation, $lightness)",insertText:"hsl(${1:hue}, ${2:saturation}, ${3:lightness})",desc:Ft.t("Creates a Color from hue, saturation, and lightness values.")},{label:"hsla",func:"hsla($hue, $saturation, $lightness, $alpha)",insertText:"hsla(${1:hue}, ${2:saturation}, ${3:lightness}, ${4:alpha})",desc:Ft.t("Creates a Color from hue, saturation, lightness, and alpha values.")},{label:"hsl relative",func:"hsl(from $color $hue $saturation $lightness)",insertText:"hsl(from ${1:color} ${2:h} ${3:s} ${4:l})",desc:Ft.t("Creates a Color from the hue, saturation, and lightness values of another Color.")},{label:"hwb",func:"hwb($hue $white $black)",insertText:"hwb(${1:hue} ${2:white} ${3:black})",desc:Ft.t("Creates a Color from hue, white, and black values.")},{label:"hwb relative",func:"hwb(from $color $hue $white $black)",insertText:"hwb(from ${1:color} ${2:h} ${3:w} ${4:b})",desc:Ft.t("Creates a Color from the hue, white, and black values of another Color.")},{label:"lab",func:"lab($lightness $a $b)",insertText:"lab(${1:lightness} ${2:a} ${3:b})",desc:Ft.t("Creates a Color from lightness, a, and b values.")},{label:"lab relative",func:"lab(from $color $lightness $a $b)",insertText:"lab(from ${1:color} ${2:l} ${3:a} ${4:b})",desc:Ft.t("Creates a Color from the lightness, a, and b values of another Color.")},{label:"oklab",func:"oklab($lightness $a $b)",insertText:"oklab(${1:lightness} ${2:a} ${3:b})",desc:Ft.t("Creates a Color from lightness, a, and b values.")},{label:"oklab relative",func:"oklab(from $color $lightness $a $b)",insertText:"oklab(from ${1:color} ${2:l} ${3:a} ${4:b})",desc:Ft.t("Creates a Color from the lightness, a, and b values of another Color.")},{label:"lch",func:"lch($lightness $chroma $hue)",insertText:"lch(${1:lightness} ${2:chroma} ${3:hue})",desc:Ft.t("Creates a Color from lightness, chroma, and hue values.")},{label:"lch relative",func:"lch(from $color $lightness $chroma $hue)",insertText:"lch(from ${1:color} ${2:l} ${3:c} ${4:h})",desc:Ft.t("Creates a Color from the lightness, chroma, and hue values of another Color.")},{label:"oklch",func:"oklch($lightness $chroma $hue)",insertText:"oklch(${1:lightness} ${2:chroma} ${3:hue})",desc:Ft.t("Creates a Color from lightness, chroma, and hue values.")},{label:"oklch relative",func:"oklch(from $color $lightness $chroma $hue)",insertText:"oklch(from ${1:color} ${2:l} ${3:c} ${4:h})",desc:Ft.t("Creates a Color from the lightness, chroma, and hue values of another Color.")},{label:"color",func:"color($color-space $red $green $blue)",insertText:"color(${1|srgb,srgb-linear,display-p3,a98-rgb,prophoto-rgb,rec2020,xyx,xyz-d50,xyz-d65|} ${2:red} ${3:green} ${4:blue})",desc:Ft.t("Creates a Color in a specific color space from red, green, and blue values.")},{label:"color relative",func:"color(from $color $color-space $red $green $blue)",insertText:"color(from ${1:color} ${2|srgb,srgb-linear,display-p3,a98-rgb,prophoto-rgb,rec2020,xyx,xyz-d50,xyz-d65|} ${3:r} ${4:g} ${5:b})",desc:Ft.t("Creates a Color in a specific color space from the red, green, and blue values of another Color.")},{label:"color-mix",func:"color-mix(in $color-space, $color $percentage, $color $percentage)",insertText:"color-mix(in ${1|srgb,srgb-linear,lab,oklab,xyz,xyz-d50,xyz-d65|}, ${3:color} ${4:percentage}, ${5:color} ${6:percentage})",desc:Ft.t("Mix two colors together in a rectangular color space.")},{label:"color-mix hue",func:"color-mix(in $color-space $interpolation-method hue, $color $percentage, $color $percentage)",insertText:"color-mix(in ${1|hsl,hwb,lch,oklch|} ${2|shorter hue,longer hue,increasing hue,decreasing hue|}, ${3:color} ${4:percentage}, ${5:color} ${6:percentage})",desc:Ft.t("Mix two colors together in a polar color space.")},{label:"lab",func:"lab($lightness $channel_a $channel_b $alpha)",insertText:"lab(${1:lightness} ${2:a} ${3:b} ${4:alpha})",desc:Ft.t("css.builtin.lab","Creates a Color from Lightness, Channel a, Channel b and alpha values.")},{label:"lab relative",func:"lab(from $color $lightness $channel_a $channel_b $alpha)",insertText:"lab(from ${1:color} ${2:lightness} ${3:channel_a} ${4:channel_b} ${5:alpha})",desc:Ft.t("css.builtin.lab","Creates a Color from Lightness, Channel a, Channel b and alpha values of another Color.")},{label:"lch",func:"lch($lightness $chrome $hue $alpha)",insertText:"lch(${1:lightness} ${2:chrome} ${3:hue} ${4:alpha})",desc:Ft.t("css.builtin.lab","Creates a Color from Lightness, Chroma, Hue and alpha values.")},{label:"lch relative",func:"lch(from $color $lightness $chrome $hue $alpha)",insertText:"lch(from ${1:color} ${2:lightness} ${3:chrome} ${4:hue} ${5:alpha})",desc:Ft.t("css.builtin.lab","Creates a Color from Lightness, Chroma, Hue and alpha values of another Color.")}],jt=/^(rgb|rgba|hsl|hsla|hwb|lab|lch)$/i,$t={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"},Vt=new RegExp(`^(${Object.keys($t).join("|")})$`,"i"),Bt={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."},Gt=new RegExp(`^(${Object.keys(Bt).join("|")})$`,"i");function Kt(e,t,n=0,i=1){const r=e.getText().match(/^([-+]?[0-9]*\.?[0-9]+)(%?)$/);if(r){r[2]&&(t=100);const e=parseFloat(r[1])/t;if(e>=n&&e<=i)return e}throw new Error}function Jt(e){const t=e.getText(),n=t.match(/^([-+]?[0-9]*\.?[0-9]+)(deg|rad|grad|turn)?$/);if(n)switch(n[2]){case"deg":return parseFloat(t)%360;case"rad":return 180*parseFloat(t)/Math.PI%360;case"grad":return.9*parseFloat(t)%360;case"turn":return 360*parseFloat(t)%360;default:if(void 0===n[2])return parseFloat(t)%360}throw new Error}function Xt(e){return Ut.test(e)||Vt.test(e)||Gt.test(e)}const Qt=48,Yt=57,Zt=65,en=97,tn=102;function nn(e){return e<Qt?0:e<=Yt?e-Qt:(e<en&&(e+=en-Zt),e>=en&&e<=tn?e-en+10:0)}function rn(e){if("#"!==e[0])return null;switch(e.length){case 4:return{red:17*nn(e.charCodeAt(1))/255,green:17*nn(e.charCodeAt(2))/255,blue:17*nn(e.charCodeAt(3))/255,alpha:1};case 5:return{red:17*nn(e.charCodeAt(1))/255,green:17*nn(e.charCodeAt(2))/255,blue:17*nn(e.charCodeAt(3))/255,alpha:17*nn(e.charCodeAt(4))/255};case 7:return{red:(16*nn(e.charCodeAt(1))+nn(e.charCodeAt(2)))/255,green:(16*nn(e.charCodeAt(3))+nn(e.charCodeAt(4)))/255,blue:(16*nn(e.charCodeAt(5))+nn(e.charCodeAt(6)))/255,alpha:1};case 9:return{red:(16*nn(e.charCodeAt(1))+nn(e.charCodeAt(2)))/255,green:(16*nn(e.charCodeAt(3))+nn(e.charCodeAt(4)))/255,blue:(16*nn(e.charCodeAt(5))+nn(e.charCodeAt(6)))/255,alpha:(16*nn(e.charCodeAt(7))+nn(e.charCodeAt(8)))/255}}return null}function sn(e,t,n,i=1){if(0===t)return{red:n,green:n,blue:n,alpha:i};{const r=(e,t,n)=>{for(;n<0;)n+=6;for(;n>=6;)n-=6;return n<1?(t-e)*n+e:n<3?t:n<4?(t-e)*(4-n)+e:e},s=n<=.5?n*(t+1):n+t-n*t,o=2*n-s;return{red:r(o,s,2+(e/=60)),green:r(o,s,e),blue:r(o,s,e-2),alpha:i}}}function on(e){const t=e.red,n=e.green,i=e.blue,r=e.alpha,s=Math.max(t,n,i),o=Math.min(t,n,i);let a=0,l=0;const c=(o+s)/2,d=s-o;if(d>0){switch(l=Math.min(c<=.5?d/(2*c):d/(2-2*c),1),s){case t:a=(n-i)/d+(n<i?6:0);break;case n:a=(i-t)/d+2;break;case i:a=(t-n)/d+4}a*=60,a=Math.round(a)}return{h:a,s:l,l:c,a:r}}function an(e,t=!0){const n=function(e){let t=e.red,n=e.green,i=e.blue;return t>.04045?t=Math.pow((t+.055)/1.055,2.4):t/=12.92,n>.04045?n=Math.pow((n+.055)/1.055,2.4):n/=12.92,i>.04045?i=Math.pow((i+.055)/1.055,2.4):i/=12.92,t*=100,n*=100,i*=100,{x:.4124*t+.3576*n+.1805*i,y:.2126*t+.7152*n+.0722*i,z:.0193*t+.1192*n+.9505*i,alpha:e.alpha}}(e),i=function(e,t=!0){let n=e.x/95.047,i=e.y/100,r=e.z/108.883;n=n>.008856?Math.pow(n,1/3):7.787*n+16/116,i=i>.008856?Math.pow(i,1/3):7.787*i+16/116,r=r>.008856?Math.pow(r,1/3):7.787*r+16/116;const s=116*i-16,o=500*(n-i),a=200*(i-r);return t?{l:Math.round(100*(s+Number.EPSILON))/100,a:Math.round(100*(o+Number.EPSILON))/100,b:Math.round(100*(a+Number.EPSILON))/100,alpha:e.alpha}:{l:s,a:o,b:a,alpha:e.alpha}}(n,t);return i}function ln(e,t,n,i=1){const r=function(e){const t=e.x/100,n=e.y/100,i=e.z/100,r=3.2406254773200533*t-1.5372079722103187*n-.4986285986982479*i,s=-.9689307147293197*t+1.8757560608852415*n+.041517523842953964*i,o=.055710120445510616*t+-.2040210505984867*n+1.0569959422543882*i,a=e=>e<=.0031308?12.92*e:Math.min(1.055*Math.pow(e,1/2.4)-.055,1);return{red:Math.round(255*a(r)),blue:Math.round(255*a(o)),green:Math.round(255*a(s)),alpha:e.alpha}}(function(e){const t={x:0,y:0,z:0,alpha:e.alpha??1};let n;for(n in t.y=(e.l+16)/116,t.x=e.a/500+t.y,t.z=t.y-e.b/200,t){let e=t[n]*t[n]*t[n];t[n]=e>.008856?e:(t[n]-16/116)/7.787}return t.x=95.047*t.x,t.y=100*t.y,t.z=108.883*t.z,t}({l:e,a:t,b:n,alpha:i}));return{red:(r.red>=0?r.red<=255?r.red:255:0)/255,green:(r.green>=0?r.green<=255?r.green:255:0)/255,blue:(r.blue>=0?r.blue<=255?r.blue:255:0)/255,alpha:i}}function cn(e){if(e.type===te.HexColorValue)return rn(e.getText());if(e.type===te.Function){const t=e,n=t.getName();let i=t.getArguments().getChildren();if(1===i.length){const e=i[0].getChildren();if(1===e.length&&e[0].type===te.Expression&&(i=e[0].getChildren(),3===i.length)){const e=i[2];if(e instanceof nt){const t=e.getLeft(),n=e.getRight(),r=e.getOperator();t&&n&&r&&r.matches("/")&&(i=[i[0],i[1],t,n])}}}if(!n||i.length<3||i.length>4)return null;try{const e=4===i.length?Kt(i[3],1):1;if("rgb"===n||"rgba"===n)return{red:Kt(i[0],255),green:Kt(i[1],255),blue:Kt(i[2],255),alpha:e};if("hsl"===n||"hsla"===n){const t=Jt(i[0]);return sn(t,Kt(i[1],100),Kt(i[2],100),e)}if("hwb"===n){const t=Jt(i[0]);return function(e,t,n,i=1){if(t+n>=1){const e=t/(t+n);return{red:e,green:e,blue:e,alpha:i}}const r=sn(e,1,.5,i);let s=r.red;s*=1-t-n,s+=t;let o=r.green;o*=1-t-n,o+=t;let a=r.blue;return a*=1-t-n,a+=t,{red:s,green:o,blue:a,alpha:i}}(t,Kt(i[1],100),Kt(i[2],100),e)}if("lab"===n){const t=Kt(i[0],100);return ln(100*t,125*Kt(i[1],125,-1),125*Kt(i[2],125,-1),e)}if("lch"===n){const t=Kt(i[0],100);return function(e,t,n,i=1){const r=function(e,t,n,i=1){return{l:e,a:t*Math.cos(n*(Math.PI/180)),b:t*Math.sin(n*(Math.PI/180)),alpha:i}}(e,t,n,i);return ln(r.l,r.a,r.b,i)}(100*t,230*Kt(i[1],230),Jt(i[2]),e)}}catch(e){return null}}else if(e.type===te.Identifier){if(e.parent&&e.parent.type!==te.Term)return null;const t=e.parent;if(t&&t.parent&&t.parent.type===te.BinaryExpression){const e=t.parent;if(e.parent&&e.parent.type===te.ListEntry&&e.parent.key===e)return null}const n=e.getText().toLowerCase();if("none"===n)return null;const i=$t[n];if(i)return rn(i)}return null}const dn={bottom:"Computes to ‘100%’ for the vertical position if one or two values are given, otherwise specifies the bottom edge as the origin for the next offset.",center:"Computes to ‘50%’ (‘left 50%’) for the horizontal position if the horizontal position is not otherwise specified, or ‘50%’ (‘top 50%’) for the vertical position if it is.",left:"Computes to ‘0%’ for the horizontal position if one or two values are given, otherwise specifies the left edge as the origin for the next offset.",right:"Computes to ‘100%’ for the horizontal position if one or two values are given, otherwise specifies the right edge as the origin for the next offset.",top:"Computes to ‘0%’ for the vertical position if one or two values are given, ot