UNPKG

cloudstudio

Version:

Run VS Code on a remote server.

2 lines 6.05 MB
/*! For license information please see htmlServerMain.js.LICENSE.txt */ var serverExportVar;(()=>{var e={8535:(e,t,n)=>{"use strict";var r;n.r(t),n.d(t,{ClientCapabilities:()=>Ct,CodeAction:()=>At.B2,CodeActionContext:()=>At.IT,CodeActionKind:()=>At.yN,Color:()=>At.Il,ColorInformation:()=>At.pr,ColorPresentation:()=>At.oi,Command:()=>At.mY,CompletionItem:()=>At.FG,CompletionItemKind:()=>At.cm,CompletionItemTag:()=>At.we,CompletionList:()=>At.Ub,Diagnostic:()=>At.R9,DiagnosticSeverity:()=>At.H_,DocumentHighlight:()=>At.eh,DocumentHighlightKind:()=>At.MY,DocumentLink:()=>At.jW,DocumentSymbol:()=>At.w6,DocumentUri:()=>At.Oj,FileType:()=>kt,FoldingRange:()=>At.so,FoldingRangeKind:()=>At.AD,Hover:()=>At.TM,InsertTextFormat:()=>At.lO,Location:()=>At.Ye,MarkedString:()=>At.oB,MarkupContent:()=>At.A_,MarkupKind:()=>At.a4,Position:()=>At.Ly,Range:()=>At.e6,SelectionRange:()=>At.xm,SymbolInformation:()=>At.JN,SymbolKind:()=>At.cR,TextDocument:()=>Lt.TextDocument,TextDocumentEdit:()=>At.sx,TextEdit:()=>At.PY,VersionedTextDocumentIdentifier:()=>At.XL,WorkspaceEdit:()=>At.Db,getCSSLanguageService:()=>Gi,getDefaultCSSDataProvider:()=>Mi,getLESSLanguageService:()=>Bi,getSCSSLanguageService:()=>ji,newCSSDataProvider:()=>Oi}),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.CustomToken=42]="CustomToken"}(r||(r={}));class i{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 a="a".charCodeAt(0),o="f".charCodeAt(0),s="z".charCodeAt(0),c=("u".charCodeAt(0),"A".charCodeAt(0)),l="F".charCodeAt(0),d="Z".charCodeAt(0),u="0".charCodeAt(0),p="9".charCodeAt(0),m="~".charCodeAt(0),f="^".charCodeAt(0),h="=".charCodeAt(0),_="|".charCodeAt(0),g="-".charCodeAt(0),y="_".charCodeAt(0),v="%".charCodeAt(0),b="*".charCodeAt(0),E="(".charCodeAt(0),S=")".charCodeAt(0),T="<".charCodeAt(0),x=">".charCodeAt(0),D="@".charCodeAt(0),w="#".charCodeAt(0),C="$".charCodeAt(0),k="\\".charCodeAt(0),A="/".charCodeAt(0),L="\n".charCodeAt(0),N="\r".charCodeAt(0),I="\f".charCodeAt(0),R='"'.charCodeAt(0),M="'".charCodeAt(0),O=" ".charCodeAt(0),P="\t".charCodeAt(0),F=";".charCodeAt(0),G=":".charCodeAt(0),j="{".charCodeAt(0),B="}".charCodeAt(0),U="[".charCodeAt(0),V="]".charCodeAt(0),z=",".charCodeAt(0),H=".".charCodeAt(0),W="!".charCodeAt(0),K="?".charCodeAt(0),q="+".charCodeAt(0),J={};J[F]=r.SemiColon,J[G]=r.Colon,J[j]=r.CurlyL,J[B]=r.CurlyR,J[V]=r.BracketR,J[U]=r.BracketL,J[E]=r.ParenthesisL,J[S]=r.ParenthesisR,J[z]=r.Comma;const X={};X.em=r.EMS,X.ex=r.EXS,X.px=r.Length,X.cm=r.Length,X.mm=r.Length,X.in=r.Length,X.pt=r.Length,X.pc=r.Length,X.deg=r.Angle,X.rad=r.Angle,X.grad=r.Angle,X.ms=r.Time,X.s=r.Time,X.hz=r.Freq,X.khz=r.Freq,X["%"]=r.Percentage,X.fr=r.Percentage,X.dpi=r.Resolution,X.dpcm=r.Resolution;class Q{constructor(){this.stream=new i(""),this.ignoreComment=!0,this.ignoreWhitespace=!0,this.inURL=!1}setSource(e){this.stream=new i(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,r.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,r.EOF):this.scanNext(t)}tryScanUnicode(){const e=this.stream.pos();if(!this.stream.eos()&&this._unicodeRange())return this.finishToken(e,r.UnicodeRange);this.stream.goBackTo(e)}scanNext(e){if(this.stream.advanceIfChars([T,W,g,g]))return this.finishToken(e,r.CDO);if(this.stream.advanceIfChars([g,g,x]))return this.finishToken(e,r.CDC);let t=[];if(this.ident(t))return this.finishToken(e,r.Ident,t.join(""));if(this.stream.advanceIfChar(D)){if(t=["@"],this._name(t)){const n=t.join("");return"@charset"===n?this.finishToken(e,r.Charset,n):this.finishToken(e,r.AtKeyword,n)}return this.finishToken(e,r.Delim)}if(this.stream.advanceIfChar(w))return t=["#"],this._name(t)?this.finishToken(e,r.Hash,t.join("")):this.finishToken(e,r.Delim);if(this.stream.advanceIfChar(W))return this.finishToken(e,r.Exclamation);if(this._number()){const n=this.stream.pos();if(t=[this.stream.substring(e,n)],this.stream.advanceIfChar(v))return this.finishToken(e,r.Percentage);if(this.ident(t)){const i=this.stream.substring(n).toLowerCase(),a=X[i];return void 0!==a?this.finishToken(e,a,t.join("")):this.finishToken(e,r.Dimension,t.join(""))}return this.finishToken(e,r.Num)}t=[];let n=this._string(t);return null!==n?this.finishToken(e,n,t.join("")):(n=J[this.stream.peekChar()],void 0!==n?(this.stream.advance(1),this.finishToken(e,n)):this.stream.peekChar(0)===m&&this.stream.peekChar(1)===h?(this.stream.advance(2),this.finishToken(e,r.Includes)):this.stream.peekChar(0)===_&&this.stream.peekChar(1)===h?(this.stream.advance(2),this.finishToken(e,r.Dashmatch)):this.stream.peekChar(0)===b&&this.stream.peekChar(1)===h?(this.stream.advance(2),this.finishToken(e,r.SubstringOperator)):this.stream.peekChar(0)===f&&this.stream.peekChar(1)===h?(this.stream.advance(2),this.finishToken(e,r.PrefixOperator)):this.stream.peekChar(0)===C&&this.stream.peekChar(1)===h?(this.stream.advance(2),this.finishToken(e,r.SuffixOperator)):(this.stream.nextChar(),this.finishToken(e,r.Delim)))}trivia(){for(;;){const e=this.stream.pos();if(this._whitespace()){if(!this.ignoreWhitespace)return this.finishToken(e,r.Whitespace)}else{if(!this.comment())return null;if(!this.ignoreComment)return this.finishToken(e,r.Comment)}}}comment(){if(this.stream.advanceIfChars([A,b])){let e=!1,t=!1;return this.stream.advanceWhileChar((n=>t&&n===A?(e=!0,!1):(t=n===b,!0))),e&&this.stream.advance(1),!0}return!1}_number(){let e,t=0;return this.stream.peekChar()===H&&(t=1),e=this.stream.peekChar(t),e>=u&&e<=p&&(this.stream.advance(t+1),this.stream.advanceWhileChar((e=>e>=u&&e<=p||0===t&&e===H)),!0)}_newline(e){const t=this.stream.peekChar();switch(t){case N:case I:case L:return this.stream.advance(1),e.push(String.fromCharCode(t)),t===N&&this.stream.advanceIfChar(L)&&e.push("\n"),!0}return!1}_escape(e,t){let n=this.stream.peekChar();if(n===k){this.stream.advance(1),n=this.stream.peekChar();let r=0;for(;r<6&&(n>=u&&n<=p||n>=a&&n<=o||n>=c&&n<=l);)this.stream.advance(1),n=this.stream.peekChar(),r++;if(r>0){try{const t=parseInt(this.stream.substring(this.stream.pos()-r),16);t&&e.push(String.fromCharCode(t))}catch(e){}return n===O||n===P?this.stream.advance(1):this._newline([]),!0}if(n!==N&&n!==I&&n!==L)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!==k&&n!==N&&n!==I&&n!==L&&(this.stream.advance(1),t.push(String.fromCharCode(n)),!0)}_string(e){if(this.stream.peekChar()===M||this.stream.peekChar()===R){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)),r.String):r.BadString}return null}_unquotedChar(e){const t=this.stream.peekChar();return 0!==t&&t!==k&&t!==M&&t!==R&&t!==E&&t!==S&&t!==O&&t!==P&&t!==L&&t!==I&&t!==N&&(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===L||e===I||e===N))>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===y||t>=a&&t<=s||t>=c&&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===g&&(this.stream.advance(1),e.push(String.fromCharCode(t)),!0)}_identChar(e){const t=this.stream.peekChar();return(t===y||t===g||t>=a&&t<=s||t>=c&&t<=d||t>=u&&t<=p||t>=128&&t<=65535)&&(this.stream.advance(1),e.push(String.fromCharCode(t)),!0)}_unicodeRange(){if(this.stream.advanceIfChar(q)){const e=e=>e>=u&&e<=p||e>=a&&e<=o||e>=c&&e<=l,t=this.stream.advanceWhileChar(e)+this.stream.advanceWhileChar((e=>e===K));if(t>=1&&t<=6){if(!this.stream.advanceIfChar(g))return!0;{const t=this.stream.advanceWhileChar(e);if(t>=1&&t<=6)return!0}}}return!1}}function Y(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 $(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==(1&t)&&(n+=e),e+=e,t>>>=1;return n}var te,ne;function re(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 ie(e,t){let n=re(e,t);const r=[];for(;n;)r.unshift(n),n=n.parent;return r}!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"}(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"}(ne||(ne={}));class ae{constructor(e=-1,t=-1,n){this.parent=null,this.offset=e,this.length=t,n&&(this.nodeType=n)}get end(){return this.offset+this.length}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 ae{constructor(e,t=-1){super(-1,-1),this.attachTo(e,t),this.offset=-1,this.length=-1}}class se extends ae{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 ce extends ae{constructor(e,t){super(e,t),this.isCustomProperty=!1}get type(){return te.Identifier}containsInterpolation(){return this.hasChildren()}}class le extends ae{constructor(e,t){super(e,t)}get type(){return te.Stylesheet}}class de extends ae{constructor(e,t){super(e,t)}get type(){return te.Declarations}}class ue extends ae{constructor(e,t){super(e,t)}getDeclarations(){return this.declarations}setDeclarations(e){return this.setNode("declarations",e)}}class pe extends ue{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 me extends ae{constructor(e,t){super(e,t)}get type(){return te.Selector}}class fe extends ae{constructor(e,t){super(e,t)}get type(){return te.SimpleSelector}}class he extends ae{constructor(e,t){super(e,t)}}class _e extends ue{constructor(e,t){super(e,t)}get type(){return te.CustomPropertySet}}class ge extends he{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 Ie){const t=this.parent.getParent().getParent();if(t instanceof ge)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 ye extends ge{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 ae{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 be extends ae{constructor(e,t){super(e,t)}get type(){return te.Invocation}getArguments(){return this.arguments||(this.arguments=new oe(this)),this.arguments}}class Ee extends be{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 ae{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 Te extends ae{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 xe extends ue{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 De extends ue{constructor(e,t){super(e,t)}get type(){return te.For}setVariable(e){return this.setNode("variable",e,0)}}class we extends ue{constructor(e,t){super(e,t)}get type(){return te.Each}getVariables(){return this.variables||(this.variables=new oe(this)),this.variables}}class Ce extends ue{constructor(e,t){super(e,t)}get type(){return te.While}}class ke extends ue{constructor(e,t){super(e,t)}get type(){return te.Else}}class Ae extends ue{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 Le extends ue{constructor(e,t){super(e,t)}get type(){return te.ViewPort}}class Ne extends ue{constructor(e,t){super(e,t)}get type(){return te.FontFace}}class Ie extends ue{constructor(e,t){super(e,t)}get type(){return te.NestedProperties}}class Re extends ue{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 Me extends ue{constructor(e,t){super(e,t)}get type(){return te.KeyframeSelector}}class Oe extends ae{constructor(e,t){super(e,t)}get type(){return te.Import}setMedialist(e){return!!e&&(e.attachTo(this),!0)}}class Pe extends ae{get type(){return te.Use}getParameters(){return this.parameters||(this.parameters=new oe(this)),this.parameters}setIdentifier(e){return this.setNode("identifier",e,0)}getIdentifier(){return this.identifier}}class Fe extends ae{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 Ge extends ae{get type(){return te.Forward}setIdentifier(e){return this.setNode("identifier",e,0)}getIdentifier(){return this.identifier}getMembers(){return this.members||(this.members=new oe(this)),this.members}getParameters(){return this.parameters||(this.parameters=new oe(this)),this.parameters}}class je extends ae{get type(){return te.ForwardVisibility}setIdentifier(e){return this.setNode("identifier",e,0)}getIdentifier(){return this.identifier}}class Be extends ae{constructor(e,t){super(e,t)}get type(){return te.Namespace}}class Ue extends ue{constructor(e,t){super(e,t)}get type(){return te.Media}}class Ve extends ue{constructor(e,t){super(e,t)}get type(){return te.Supports}}class ze extends ue{constructor(e,t){super(e,t)}get type(){return te.Document}}class He extends ae{constructor(e,t){super(e,t)}getMediums(){return this.mediums||(this.mediums=new oe(this)),this.mediums}}class We extends ae{constructor(e,t){super(e,t)}get type(){return te.MediaQuery}}class Ke extends ae{constructor(e,t){super(e,t)}get type(){return te.MediaCondition}}class qe extends ae{constructor(e,t){super(e,t)}get type(){return te.MediaFeature}}class Je extends ae{constructor(e,t){super(e,t)}get type(){return te.SupportsCondition}}class Xe extends ue{constructor(e,t){super(e,t)}get type(){return te.Page}}class Qe extends ue{constructor(e,t){super(e,t)}get type(){return te.PageBoxMarginBox}}class Ye extends ae{constructor(e,t){super(e,t)}get type(){return te.Expression}}class $e extends ae{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 Ze extends ae{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 et extends ae{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 tt extends ae{constructor(e,t){super(e,t)}get type(){return te.HexColorValue}}class nt extends ae{constructor(e,t){super(e,t)}get type(){return te.RatioValue}}const rt=".".charCodeAt(0),it="0".charCodeAt(0),at="9".charCodeAt(0);class ot extends ae{constructor(e,t){super(e,t)}get type(){return te.NumericValue}getValue(){const e=this.getText();let t,n=0;for(let r=0,i=e.length;r<i&&(t=e.charCodeAt(r),it<=t&&t<=at||t===rt);r++)n+=1;return{value:e.substring(0,n),unit:n<e.length?e.substring(n):void 0}}}class st extends he{constructor(e,t){super(e,t),this.variable=null,this.value=null,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 ct extends ae{constructor(e,t){super(e,t)}get type(){return te.Interpolation}}class lt extends ae{constructor(e,t){super(e,t)}get type(){return te.VariableName}getName(){return this.getText()}}class dt extends ae{constructor(e,t){super(e,t)}get type(){return te.ExtendsReference}getSelectors(){return this.selectors||(this.selectors=new oe(this)),this.selectors}}class ut extends ae{constructor(e,t){super(e,t)}get type(){return te.MixinContentReference}getArguments(){return this.arguments||(this.arguments=new oe(this)),this.arguments}}class pt extends ue{constructor(e,t){super(e,t)}get type(){return te.MixinContentReference}getParameters(){return this.parameters||(this.parameters=new oe(this)),this.parameters}}class mt extends ae{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 ft extends ue{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 ht extends ue{constructor(e,t){super(e,t)}get type(){return te.UnknownAtRule}setAtRuleName(e){this.atRuleName=e}getAtRuleName(){return this.atRuleName}}class _t extends ae{get type(){return te.ListEntry}setKey(e){return this.setNode("key",e,0)}setValue(e){return this.setNode("value",e,1)}}class gt extends ae{getConditions(){return this.conditions||(this.conditions=new oe(this)),this.conditions}}class yt extends ae{setVariable(e){return this.setNode("variable",e)}}class vt extends ae{get type(){return te.Module}setIdentifier(e){return this.setNode("identifier",e,0)}getIdentifier(){return this.identifier}}var bt;!function(e){e[e.Ignore=1]="Ignore",e[e.Warning=2]="Warning",e[e.Error=4]="Error"}(bt||(bt={}));class Et{constructor(e,t,n,r,i=e.offset,a=e.length){this.node=e,this.rule=t,this.level=n,this.message=r||t.message,this.offset=i,this.length=a}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 St{constructor(){this.entries=[]}static entries(e){const t=new St;return e.acceptVisitor(t),t.entries}visitNode(e){return e.isErroneous()&&e.collectIssues(this.entries),!0}}var Tt=n(3151);const xt=Tt.loadMessageBundle();class Dt{constructor(e,t){this.id=e,this.message=t}}const wt={NumberExpected:new Dt("css-numberexpected",xt("expected.number","number expected")),ConditionExpected:new Dt("css-conditionexpected",xt("expected.condt","condition expected")),RuleOrSelectorExpected:new Dt("css-ruleorselectorexpected",xt("expected.ruleorselector","at-rule or selector expected")),DotExpected:new Dt("css-dotexpected",xt("expected.dot","dot expected")),ColonExpected:new Dt("css-colonexpected",xt("expected.colon","colon expected")),SemiColonExpected:new Dt("css-semicolonexpected",xt("expected.semicolon","semi-colon expected")),TermExpected:new Dt("css-termexpected",xt("expected.term","term expected")),ExpressionExpected:new Dt("css-expressionexpected",xt("expected.expression","expression expected")),OperatorExpected:new Dt("css-operatorexpected",xt("expected.operator","operator expected")),IdentifierExpected:new Dt("css-identifierexpected",xt("expected.ident","identifier expected")),PercentageExpected:new Dt("css-percentageexpected",xt("expected.percentage","percentage expected")),URIOrStringExpected:new Dt("css-uriorstringexpected",xt("expected.uriorstring","uri or string expected")),URIExpected:new Dt("css-uriexpected",xt("expected.uri","URI expected")),VariableNameExpected:new Dt("css-varnameexpected",xt("expected.varname","variable name expected")),VariableValueExpected:new Dt("css-varvalueexpected",xt("expected.varvalue","variable value expected")),PropertyValueExpected:new Dt("css-propertyvalueexpected",xt("expected.propvalue","property value expected")),LeftCurlyExpected:new Dt("css-lcurlyexpected",xt("expected.lcurly","{ expected")),RightCurlyExpected:new Dt("css-rcurlyexpected",xt("expected.rcurly","} expected")),LeftSquareBracketExpected:new Dt("css-rbracketexpected",xt("expected.lsquare","[ expected")),RightSquareBracketExpected:new Dt("css-lbracketexpected",xt("expected.rsquare","] expected")),LeftParenthesisExpected:new Dt("css-lparentexpected",xt("expected.lparen","( expected")),RightParenthesisExpected:new Dt("css-rparentexpected",xt("expected.rparent",") expected")),CommaExpected:new Dt("css-commaexpected",xt("expected.comma","comma expected")),PageDirectiveOrDeclarationExpected:new Dt("css-pagedirordeclexpected",xt("expected.pagedirordecl","page directive or declaraton expected")),UnknownAtRule:new Dt("css-unknownatrule",xt("unknown.atrule","at-rule unknown")),UnknownKeyword:new Dt("css-unknownkeyword",xt("unknown.keyword","unknown keyword")),SelectorExpected:new Dt("css-selectorexpected",xt("expected.selector","selector expected")),StringLiteralExpected:new Dt("css-stringliteralexpected",xt("expected.stringliteral","string literal expected")),WhitespaceExpected:new Dt("css-whitespaceexpected",xt("expected.whitespace","whitespace expected")),MediaQueryExpected:new Dt("css-mediaqueryexpected",xt("expected.mediaquery","media query expected")),IdentifierOrWildcardExpected:new Dt("css-idorwildcardexpected",xt("expected.idorwildcard","identifier or wildcard expected")),WildcardExpected:new Dt("css-wildcardexpected",xt("expected.wildcard","wildcard expected")),IdentifierOrVariableExpected:new Dt("css-idorvarexpected",xt("expected.idorvar","identifier or variable expected"))};var Ct,kt,At=n(1674),Lt=n(6813);!function(e){e.LATEST={textDocument:{completion:{completionItem:{documentationFormat:[At.a4.Markdown,At.a4.PlainText]}},hover:{contentFormat:[At.a4.Markdown,At.a4.PlainText]}}}}(Ct||(Ct={})),function(e){e[e.Unknown=0]="Unknown",e[e.File=1]="File",e[e.Directory=2]="Directory",e[e.SymbolicLink=64]="SymbolicLink"}(kt||(kt={}));const Nt={E:"Edge",FF:"Firefox",S:"Safari",C:"Chrome",IE:"IE",O:"Opera"};function It(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 Rt(e,t,n){let r;if(r=t?{kind:"markdown",value:Pt(e,n)}:{kind:"plaintext",value:Ot(e,n)},""!==r.value)return r}function Mt(e){return(e=e.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")).replace(/</g,"&lt;").replace(/>/g,"&gt;")}function Ot(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+=It(e.status)),n+=e.description;const t=Ft(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 Pt(e,t){if(!e.description||""===e.description)return"";let n="";if(!1!==t?.documentation){e.status&&(n+=It(e.status)),"string"==typeof e.description?n+=Mt(e.description):n+=e.description.kind===At.a4.Markdown?e.description.value:Mt(e.description.value);const t=Ft(e.browsers);t&&(n+="\n\n("+Mt(t)+")"),"syntax"in e&&e.syntax&&(n+=`\n\nSyntax: ${Mt(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 Ft(e=[]){return 0===e.length?null:e.map((e=>{let t="";const n=e.match(/([A-Z]+)(\d+)?/),r=n[1],i=n[2];return r in Nt&&(t+=Nt[r]),i&&(t+=" "+i),t})).join(", ")}const Gt=Tt.loadMessageBundle(),jt=[{func:"rgb($red, $green, $blue)",desc:Gt("css.builtin.rgb","Creates a Color from red, green, and blue values.")},{func:"rgba($red, $green, $blue, $alpha)",desc:Gt("css.builtin.rgba","Creates a Color from red, green, blue, and alpha values.")},{func:"hsl($hue, $saturation, $lightness)",desc:Gt("css.builtin.hsl","Creates a Color from hue, saturation, and lightness values.")},{func:"hsla($hue, $saturation, $lightness, $alpha)",desc:Gt("css.builtin.hsla","Creates a Color from hue, saturation, lightness, and alpha values.")},{func:"hwb($hue $white $black)",desc:Gt("css.builtin.hwb","Creates a Color from hue, white and black.")}],Bt={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"},Ut={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."};function Vt(e,t){const n=e.getText().match(/^([-+]?[0-9]*\.?[0-9]+)(%?)$/);if(n){n[2]&&(t=100);const e=parseFloat(n[1])/t;if(e>=0&&e<=1)return e}throw new Error}function zt(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 Ht(e){return e<48?0:e<=57?e-48:(e<97&&(e+=32),e>=97&&e<=102?e-97+10:0)}function Wt(e){if("#"!==e[0])return null;switch(e.length){case 4:return{red:17*Ht(e.charCodeAt(1))/255,green:17*Ht(e.charCodeAt(2))/255,blue:17*Ht(e.charCodeAt(3))/255,alpha:1};case 5:return{red:17*Ht(e.charCodeAt(1))/255,green:17*Ht(e.charCodeAt(2))/255,blue:17*Ht(e.charCodeAt(3))/255,alpha:17*Ht(e.charCodeAt(4))/255};case 7:return{red:(16*Ht(e.charCodeAt(1))+Ht(e.charCodeAt(2)))/255,green:(16*Ht(e.charCodeAt(3))+Ht(e.charCodeAt(4)))/255,blue:(16*Ht(e.charCodeAt(5))+Ht(e.charCodeAt(6)))/255,alpha:1};case 9:return{red:(16*Ht(e.charCodeAt(1))+Ht(e.charCodeAt(2)))/255,green:(16*Ht(e.charCodeAt(3))+Ht(e.charCodeAt(4)))/255,blue:(16*Ht(e.charCodeAt(5))+Ht(e.charCodeAt(6)))/255,alpha:(16*Ht(e.charCodeAt(7))+Ht(e.charCodeAt(8)))/255}}return null}function Kt(e,t,n,r=1){if(0===t)return{red:n,green:n,blue:n,alpha:r};{const i=(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},a=n<=.5?n*(t+1):n+t-n*t,o=2*n-a;return{red:i(o,a,2+(e/=60)),green:i(o,a,e),blue:i(o,a,e-2),alpha:r}}}function qt(e){const t=e.red,n=e.green,r=e.blue,i=e.alpha,a=Math.max(t,n,r),o=Math.min(t,n,r);let s=0,c=0;const l=(o+a)/2,d=a-o;if(d>0){switch(c=Math.min(l<=.5?d/(2*l):d/(2-2*l),1),a){case t:s=(n-r)/d+(n<r?6:0);break;case n:s=(r-t)/d+2;break;case r:s=(t-n)/d+4}s*=60,s=Math.round(s)}return{h:s,s:c,l,a:i}}const Jt={bottom:"Computes to ‘100%’ for the vertical position if one or two values are given, otherwise specifies the bottom edge as the origin for the next offset.",center:"Computes to ‘50%’ (‘left 50%’) for the horizontal position if the horizontal position is not otherwise specified, or ‘50%’ (‘top 50%’) for the vertical position if it is.",left:"Computes to ‘0%’ for the horizontal position if one or two values are given, otherwise specifies the left edge as the origin for the next offset.",right:"Computes to ‘100%’ for the horizontal position if one or two values are given, otherwise specifies the right edge as the origin for the next offset.",top:"Computes to ‘0%’ for the vertical position if one or two values are given, otherwise specifies the top edge as the origin for the next offset."},Xt={"no-repeat":"Placed once and not repeated in this direction.",repeat:"Repeated in this direction as often as needed to cover the background painting area.","repeat-x":"Computes to ‘repeat no-repeat’.","repeat-y":"Computes to ‘no-repeat repeat’.",round:"Repeated as often as will fit within the background positioning area. If it doesn’t fit a whole number of times, it is rescaled so that it does.",space:"Repeated as often as will fit within the background positioning area without being clipped and then the images are spaced out to fill the area."},Qt={dashed:"A series of square-ended dashes.",dotted:"A series of round dots.",double:"Two parallel solid lines with some space between them.",groove:"Looks as if it were carved in the canvas.",hidden:"Same as ‘none’, but has different behavior in the border conflict resolution rules for border-collapsed tables.",inset:"Looks as if the content on the inside of the border is sunken into the canvas.",none:"No border. Color and width are ignored.",outset:"Looks as if the content on the inside of the border is coming out of the canvas.",ridge:"Looks as if it were coming out of the canvas.",solid:"A single line segment."},Yt=["medium","thick","thin"],$t={"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."},Zt={"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."},en={initial:"Represents the value specified as the property’s initial value.",inherit:"Represents the computed value of the property on the element’s parent.",unset:"Acts as either `inherit` or `initial`, depending on whether the property is inherited or not."},tn={"var()":"Evaluates the value of a custom variable.","calc()":"Evaluates an mathematical expression. The following operators can be used: + - * /."},nn={"url()":"Reference an image file by URL","image()":"Provide image fallbacks and annotations.","-webkit-image-set()":"Provide multiple resolutions. Remember to use unprefixed image-set() in addition.","image-set()":"Provide multiple resolutions of an image and const the UA decide which is most appropriate in a given situation.","-moz-element()":"Use an element in the document as an image. Remember to use unprefixed element() in addition.","element()":"Use an element in the document as an image.","cross-fade()":"Indicates the two images to be combined and how far along in the transition the combination is.","-webkit-gradient()":"Deprecated. Use modern linear-gradient() or radial-gradient() instead.","-webkit-linear-gradient()":"Linear gradient. Remember to use unprefixed version in addition.","-moz-linear-gradient()":"Linear gradient. Remember to use unprefixed version in addition.","-o-linear-gradient()":"Linear gradient. Remember to use unprefixed version in addition.","linear-gradient()":"A linear gradient is created by specifying a straight gradient line, and then several colors placed along that line.","-webkit-repeating-linear-gradient()":"Repeating Linear gradient. Remember to use unprefixed version in addition.","-moz-repeating-linear-gradient()":"Repeating Linear gradient. Remember to use unprefixed version in addition.","-o-repeating-linear-gradient()":"Repeating Linear gradient. Remember to use unprefixed version in addition.","repeating-linear-gradient()":"Same as linear-gradient, except the color-stops are repeated infinitely in both directions, with their positions shifted by multiples of the difference between the last specified color-stop’s position and the first specified color-stop’s position.","-webkit-radial-gradient()":"Radial gradient. Remember to use unprefixed version in addition.","-moz-radial-gradient()":"Radial gradient. Remember to use unprefixed version in addition.","radial-gradient()":"Colors emerge from a single point and smoothly spread outward in a circular or elliptical shape.","-webkit-repeating-radial-gradient()":"Repeating radial gradient. Remember to use unprefixed version in addition.","-moz-repeating-radial-gradient()":"Repeating radial gradient. Remember to use unprefixed version in addition.","repeating-radial-gradient()":"Same as radial-gradient, except the color-stops are repeated infinitely in both directions, with their positions shifted by multiples of the difference between the last specified color-stop’s position and the first specified color-stop’s position."},rn={ease:"Equivalent to cubic-bezier(0.25, 0.1, 0.25, 1.0).","ease-in":"Equivalent to cubic-bezier(0.42, 0, 1.0, 1.0).","ease-in-out":"Equivalent to cubic-bezier(0.42, 0, 0.58, 1.0).","ease-out":"Equivalent to cubic-bezier(0, 0, 0.58, 1.0).",linear:"Equivalent to cubic-bezier(0.0, 0.0, 1.0, 1.0).","step-end":"Equivalent to steps(1, end).","step-start":"Equivalent to steps(1, start).","steps()":"The first parameter specifies the number of intervals in the function. The second parameter, which is optional, is either the value “start” or “end”.","cubic-bezier()":"Specifies a cubic-bezier curve. The four values specify points P1 and P2 of the curve as (x1, y1, x2, y2).","cubic-bezier(0.6, -0.28, 0.735, 0.045)":"Ease-in Back. Overshoots.","cubic-bezier(0.68, -0.55, 0.265, 1.55)":"Ease-in-out Back. Overshoots.","cubic-bezier(0.175, 0.885, 0.32, 1.275)":"Ease-out Back. Overshoots.","cubic-bezier(0.6, 0.04, 0.98, 0.335)":"Ease-in Circular. Based on half circle.","cubic-bezier(0.785, 0.135, 0.15, 0.86)":"Ease-in-out Circular. Based on half circle.","cubic-bezier(0.075, 0.82, 0.165, 1)":"Ease-out Circular. Based on half circle.","cubic-bezier(0.55, 0.055, 0.675, 0.19)":"Ease-in Cubic. Based on power of three.","cubic-bezier(0.645, 0.045, 0.355, 1)":"Ease-in-out Cubic. Based on power of three.","cubic-bezier(0.215, 0.610, 0.355, 1)":"Ease-out Cubic. Based on power of three.","cubic-bezier(0.95, 0.05, 0.795, 0.035)":"Ease-in Exponential. Based on two to the power ten.","cubic-bezier(1, 0, 0, 1)":"Ease-in-out Exponential. Based on two to the power ten.","cubic-bezier(0.19, 1, 0.22, 1)":"Ease-out Exponential. Based on two to the power ten.","cubic-bezier(0.47, 0, 0.745, 0.715)":"Ease-in Sine.","cubic-bezier(0.445, 0.05, 0.55, 0.95)":"Ease-in-out Sine.","cubic-bezier(0.39, 0.575, 0.565, 1)":"Ease-out Sine.","cubic-bezier(0.55, 0.085, 0.68, 0.53)":"Ease-in Quadratic. Based on power of two.","cubic-bezier(0.455, 0.03, 0.515, 0.955)":"Ease-in-out Quadratic. Based on power of two.","cubic-bezier(0.25, 0.46, 0.45, 0.94)":"Ease-out Quadratic. Based on power of two.","cubic-bezier(0.895, 0.03, 0.685, 0.22)":"Ease-in Quartic. Based on power of four.","cubic-bezier(0.77, 0, 0.175, 1)":"Ease-in-out Quartic. Based on power of four.","cubic-bezier(0.165, 0.84, 0.44, 1)":"Ease-out Quartic. Based on power of four.","cubic-bezier(0.755, 0.05, 0.855, 0.06)":"Ease-in Quintic. Based on power of five.","cubic-bezier(0.86, 0, 0.07, 1)":"Ease-in-out Quintic. Based on power of five.","cubic-bezier(0.23, 1, 0.320, 1)":"Ease-out Quintic. Based on power of five."},an={"circle()":"Defines a circle.","ellipse()":"Defines an ellipse.","inset()":"Defines an inset rectangle.","polygon()":"Defines a polygon."},on={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"]},sn=["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"],cn=["ci