UNPKG

starboard-notebook

Version:

Starboard Notebook

20 lines (12 loc) 752 kB
"use strict";(self.webpackChunkstarboard_notebook=self.webpackChunkstarboard_notebook||[]).push([["node_modules_monaco-editor_esm_vs_language_css_cssMode_js"],{"./node_modules/monaco-editor/esm/vs/language/css/cssMode.js":(Os,Ln,vt)=>{vt.r(Ln),vt.d(Ln,{setupMode:()=>Ws});var T=vt("./node_modules/monaco-editor/esm/vs/language/css/fillers/monaco-editor-core.js"),Ni=2*60*1e3,Wi=function(){function n(e){var t=this;this._defaults=e,this._worker=null,this._idleCheckInterval=window.setInterval(function(){return t._checkIfIdle()},30*1e3),this._lastUsedTime=0,this._configChangeListener=this._defaults.onDidChange(function(){return t._stopWorker()})}return n.prototype._stopWorker=function(){this._worker&&(this._worker.dispose(),this._worker=null),this._client=null},n.prototype.dispose=function(){clearInterval(this._idleCheckInterval),this._configChangeListener.dispose(),this._stopWorker()},n.prototype._checkIfIdle=function(){if(!!this._worker){var e=Date.now()-this._lastUsedTime;e>Ni&&this._stopWorker()}},n.prototype._getClient=function(){return this._lastUsedTime=Date.now(),this._client||(this._worker=T.j6.createWebWorker({moduleId:"vs/language/css/cssWorker",label:this._defaults.languageId,createData:{languageSettings:this._defaults.diagnosticsOptions,languageId:this._defaults.languageId}}),this._client=this._worker.getProxy()),this._client},n.prototype.getLanguageServiceWorker=function(){for(var e=this,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];var i;return this._getClient().then(function(o){i=o}).then(function(o){return e._worker.withSyncedResources(t)}).then(function(o){return i})},n}(),c;(function(n){n[n.Ident=0]="Ident",n[n.AtKeyword=1]="AtKeyword",n[n.String=2]="String",n[n.BadString=3]="BadString",n[n.UnquotedString=4]="UnquotedString",n[n.Hash=5]="Hash",n[n.Num=6]="Num",n[n.Percentage=7]="Percentage",n[n.Dimension=8]="Dimension",n[n.UnicodeRange=9]="UnicodeRange",n[n.CDO=10]="CDO",n[n.CDC=11]="CDC",n[n.Colon=12]="Colon",n[n.SemiColon=13]="SemiColon",n[n.CurlyL=14]="CurlyL",n[n.CurlyR=15]="CurlyR",n[n.ParenthesisL=16]="ParenthesisL",n[n.ParenthesisR=17]="ParenthesisR",n[n.BracketL=18]="BracketL",n[n.BracketR=19]="BracketR",n[n.Whitespace=20]="Whitespace",n[n.Includes=21]="Includes",n[n.Dashmatch=22]="Dashmatch",n[n.SubstringOperator=23]="SubstringOperator",n[n.PrefixOperator=24]="PrefixOperator",n[n.SuffixOperator=25]="SuffixOperator",n[n.Delim=26]="Delim",n[n.EMS=27]="EMS",n[n.EXS=28]="EXS",n[n.Length=29]="Length",n[n.Angle=30]="Angle",n[n.Time=31]="Time",n[n.Freq=32]="Freq",n[n.Exclamation=33]="Exclamation",n[n.Resolution=34]="Resolution",n[n.Comma=35]="Comma",n[n.Charset=36]="Charset",n[n.EscapedJavaScript=37]="EscapedJavaScript",n[n.BadEscapedJavaScript=38]="BadEscapedJavaScript",n[n.Comment=39]="Comment",n[n.SingleLineComment=40]="SingleLineComment",n[n.EOF=41]="EOF",n[n.CustomToken=42]="CustomToken"})(c||(c={}));var jn=function(){function n(e){this.source=e,this.len=e.length,this.position=0}return n.prototype.substring=function(e,t){return t===void 0&&(t=this.position),this.source.substring(e,t)},n.prototype.eos=function(){return this.len<=this.position},n.prototype.pos=function(){return this.position},n.prototype.goBackTo=function(e){this.position=e},n.prototype.goBack=function(e){this.position-=e},n.prototype.advance=function(e){this.position+=e},n.prototype.nextChar=function(){return this.source.charCodeAt(this.position++)||0},n.prototype.peekChar=function(e){return e===void 0&&(e=0),this.source.charCodeAt(this.position+e)||0},n.prototype.lookbackChar=function(e){return e===void 0&&(e=0),this.source.charCodeAt(this.position-e)||0},n.prototype.advanceIfChar=function(e){return e===this.source.charCodeAt(this.position)?(this.position++,!0):!1},n.prototype.advanceIfChars=function(e){if(this.position+e.length>this.source.length)return!1;for(var t=0;t<e.length;t++)if(this.source.charCodeAt(this.position+t)!==e[t])return!1;return this.advance(t),!0},n.prototype.advanceWhileChar=function(e){for(var t=this.position;this.position<this.len&&e(this.source.charCodeAt(this.position));)this.position++;return this.position-t},n}(),Bt="a".charCodeAt(0),Oi="f".charCodeAt(0),Un="z".charCodeAt(0),$t="A".charCodeAt(0),Li="F".charCodeAt(0),Vn="Z".charCodeAt(0),yt="0".charCodeAt(0),wt="9".charCodeAt(0),ji="~".charCodeAt(0),Ui="^".charCodeAt(0),Je="=".charCodeAt(0),Vi="|".charCodeAt(0),We="-".charCodeAt(0),Bn="_".charCodeAt(0),Bi="%".charCodeAt(0),qt="*".charCodeAt(0),$n="(".charCodeAt(0),qn=")".charCodeAt(0),$i="<".charCodeAt(0),qi=">".charCodeAt(0),Ki="@".charCodeAt(0),Gi="#".charCodeAt(0),Hi="$".charCodeAt(0),Kt="\\".charCodeAt(0),Kn="/".charCodeAt(0),Oe=` `.charCodeAt(0),Le="\r".charCodeAt(0),Xe="\f".charCodeAt(0),Gn='"'.charCodeAt(0),Hn="'".charCodeAt(0),Gt=" ".charCodeAt(0),Ht=" ".charCodeAt(0),Ji=";".charCodeAt(0),Xi=":".charCodeAt(0),Yi="{".charCodeAt(0),Zi="}".charCodeAt(0),Qi="[".charCodeAt(0),eo="]".charCodeAt(0),to=",".charCodeAt(0),Jn=".".charCodeAt(0),Xn="!".charCodeAt(0),be={};be[Ji]=c.SemiColon,be[Xi]=c.Colon,be[Yi]=c.CurlyL,be[Zi]=c.CurlyR,be[eo]=c.BracketR,be[Qi]=c.BracketL,be[$n]=c.ParenthesisL,be[qn]=c.ParenthesisR,be[to]=c.Comma;var H={};H.em=c.EMS,H.ex=c.EXS,H.px=c.Length,H.cm=c.Length,H.mm=c.Length,H.in=c.Length,H.pt=c.Length,H.pc=c.Length,H.deg=c.Angle,H.rad=c.Angle,H.grad=c.Angle,H.ms=c.Time,H.s=c.Time,H.hz=c.Freq,H.khz=c.Freq,H["%"]=c.Percentage,H.fr=c.Percentage,H.dpi=c.Resolution,H.dpcm=c.Resolution;var xt=function(){function n(){this.stream=new jn(""),this.ignoreComment=!0,this.ignoreWhitespace=!0,this.inURL=!1}return n.prototype.setSource=function(e){this.stream=new jn(e)},n.prototype.finishToken=function(e,t,r){return{offset:e,len:this.stream.pos()-e,type:t,text:r||this.stream.substring(e)}},n.prototype.substring=function(e,t){return this.stream.substring(e,e+t)},n.prototype.pos=function(){return this.stream.pos()},n.prototype.goBackTo=function(e){this.stream.goBackTo(e)},n.prototype.scanUnquotedString=function(){var e=this.stream.pos(),t=[];return this._unquotedString(t)?this.finishToken(e,c.UnquotedString,t.join("")):null},n.prototype.scan=function(){var e=this.trivia();if(e!==null)return e;var t=this.stream.pos();return this.stream.eos()?this.finishToken(t,c.EOF):this.scanNext(t)},n.prototype.scanNext=function(e){if(this.stream.advanceIfChars([$i,Xn,We,We]))return this.finishToken(e,c.CDO);if(this.stream.advanceIfChars([We,We,qi]))return this.finishToken(e,c.CDC);var t=[];if(this.ident(t))return this.finishToken(e,c.Ident,t.join(""));if(this.stream.advanceIfChar(Ki))if(t=["@"],this._name(t)){var r=t.join("");return r==="@charset"?this.finishToken(e,c.Charset,r):this.finishToken(e,c.AtKeyword,r)}else return this.finishToken(e,c.Delim);if(this.stream.advanceIfChar(Gi))return t=["#"],this._name(t)?this.finishToken(e,c.Hash,t.join("")):this.finishToken(e,c.Delim);if(this.stream.advanceIfChar(Xn))return this.finishToken(e,c.Exclamation);if(this._number()){var i=this.stream.pos();if(t=[this.stream.substring(e,i)],this.stream.advanceIfChar(Bi))return this.finishToken(e,c.Percentage);if(this.ident(t)){var o=this.stream.substring(i).toLowerCase(),a=H[o];return typeof a!="undefined"?this.finishToken(e,a,t.join("")):this.finishToken(e,c.Dimension,t.join(""))}return this.finishToken(e,c.Num)}t=[];var s=this._string(t);return s!==null?this.finishToken(e,s,t.join("")):(s=be[this.stream.peekChar()],typeof s!="undefined"?(this.stream.advance(1),this.finishToken(e,s)):this.stream.peekChar(0)===ji&&this.stream.peekChar(1)===Je?(this.stream.advance(2),this.finishToken(e,c.Includes)):this.stream.peekChar(0)===Vi&&this.stream.peekChar(1)===Je?(this.stream.advance(2),this.finishToken(e,c.Dashmatch)):this.stream.peekChar(0)===qt&&this.stream.peekChar(1)===Je?(this.stream.advance(2),this.finishToken(e,c.SubstringOperator)):this.stream.peekChar(0)===Ui&&this.stream.peekChar(1)===Je?(this.stream.advance(2),this.finishToken(e,c.PrefixOperator)):this.stream.peekChar(0)===Hi&&this.stream.peekChar(1)===Je?(this.stream.advance(2),this.finishToken(e,c.SuffixOperator)):(this.stream.nextChar(),this.finishToken(e,c.Delim)))},n.prototype.trivia=function(){for(;;){var e=this.stream.pos();if(this._whitespace()){if(!this.ignoreWhitespace)return this.finishToken(e,c.Whitespace)}else if(this.comment()){if(!this.ignoreComment)return this.finishToken(e,c.Comment)}else return null}},n.prototype.comment=function(){if(this.stream.advanceIfChars([Kn,qt])){var e=!1,t=!1;return this.stream.advanceWhileChar(function(r){return t&&r===Kn?(e=!0,!1):(t=r===qt,!0)}),e&&this.stream.advance(1),!0}return!1},n.prototype._number=function(){var e=0,t;return this.stream.peekChar()===Jn&&(e=1),t=this.stream.peekChar(e),t>=yt&&t<=wt?(this.stream.advance(e+1),this.stream.advanceWhileChar(function(r){return r>=yt&&r<=wt||e===0&&r===Jn}),!0):!1},n.prototype._newline=function(e){var t=this.stream.peekChar();switch(t){case Le:case Xe:case Oe:return this.stream.advance(1),e.push(String.fromCharCode(t)),t===Le&&this.stream.advanceIfChar(Oe)&&e.push(` `),!0}return!1},n.prototype._escape=function(e,t){var r=this.stream.peekChar();if(r===Kt){this.stream.advance(1),r=this.stream.peekChar();for(var i=0;i<6&&(r>=yt&&r<=wt||r>=Bt&&r<=Oi||r>=$t&&r<=Li);)this.stream.advance(1),r=this.stream.peekChar(),i++;if(i>0){try{var o=parseInt(this.stream.substring(this.stream.pos()-i),16);o&&e.push(String.fromCharCode(o))}catch(a){}return r===Gt||r===Ht?this.stream.advance(1):this._newline([]),!0}if(r!==Le&&r!==Xe&&r!==Oe)return this.stream.advance(1),e.push(String.fromCharCode(r)),!0;if(t)return this._newline(e)}return!1},n.prototype._stringChar=function(e,t){var r=this.stream.peekChar();return r!==0&&r!==e&&r!==Kt&&r!==Le&&r!==Xe&&r!==Oe?(this.stream.advance(1),t.push(String.fromCharCode(r)),!0):!1},n.prototype._string=function(e){if(this.stream.peekChar()===Hn||this.stream.peekChar()===Gn){var 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)),c.String):c.BadString}return null},n.prototype._unquotedChar=function(e){var t=this.stream.peekChar();return t!==0&&t!==Kt&&t!==Hn&&t!==Gn&&t!==$n&&t!==qn&&t!==Gt&&t!==Ht&&t!==Oe&&t!==Xe&&t!==Le?(this.stream.advance(1),e.push(String.fromCharCode(t)),!0):!1},n.prototype._unquotedString=function(e){for(var t=!1;this._unquotedChar(e)||this._escape(e);)t=!0;return t},n.prototype._whitespace=function(){var e=this.stream.advanceWhileChar(function(t){return t===Gt||t===Ht||t===Oe||t===Xe||t===Le});return e>0},n.prototype._name=function(e){for(var t=!1;this._identChar(e)||this._escape(e);)t=!0;return t},n.prototype.ident=function(e){var t=this.stream.pos(),r=this._minus(e);if(r&&this._minus(e)){if(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},n.prototype._identFirstChar=function(e){var t=this.stream.peekChar();return t===Bn||t>=Bt&&t<=Un||t>=$t&&t<=Vn||t>=128&&t<=65535?(this.stream.advance(1),e.push(String.fromCharCode(t)),!0):!1},n.prototype._minus=function(e){var t=this.stream.peekChar();return t===We?(this.stream.advance(1),e.push(String.fromCharCode(t)),!0):!1},n.prototype._identChar=function(e){var t=this.stream.peekChar();return t===Bn||t===We||t>=Bt&&t<=Un||t>=$t&&t<=Vn||t>=yt&&t<=wt||t>=128&&t<=65535?(this.stream.advance(1),e.push(String.fromCharCode(t)),!0):!1},n}();function Z(n,e){if(n.length<e.length)return!1;for(var t=0;t<e.length;t++)if(n[t]!==e[t])return!1;return!0}function Yn(n,e){var t=n.length-e.length;return t>0?n.lastIndexOf(e)===t:t===0?n===e:!1}function no(n,e,t){t===void 0&&(t=4);var r=Math.abs(n.length-e.length);if(r>t)return 0;var i=[],o=[],a,s;for(a=0;a<e.length+1;++a)o.push(0);for(a=0;a<n.length+1;++a)i.push(o);for(a=1;a<n.length+1;++a)for(s=1;s<e.length+1;++s)n[a-1]===e[s-1]?i[a][s]=i[a-1][s-1]+1:i[a][s]=Math.max(i[a-1][s],i[a][s-1]);return i[n.length][e.length]-Math.sqrt(r)}function Zn(n,e){return e===void 0&&(e=!0),n?n.length<140?n:n.slice(0,140)+(e?"\u2026":""):""}function ro(n,e){var t=e.exec(n);return t&&t[0].length?n.substr(0,n.length-t[0].length):n}var D=function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},n(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),p;(function(n){n[n.Undefined=0]="Undefined",n[n.Identifier=1]="Identifier",n[n.Stylesheet=2]="Stylesheet",n[n.Ruleset=3]="Ruleset",n[n.Selector=4]="Selector",n[n.SimpleSelector=5]="SimpleSelector",n[n.SelectorInterpolation=6]="SelectorInterpolation",n[n.SelectorCombinator=7]="SelectorCombinator",n[n.SelectorCombinatorParent=8]="SelectorCombinatorParent",n[n.SelectorCombinatorSibling=9]="SelectorCombinatorSibling",n[n.SelectorCombinatorAllSiblings=10]="SelectorCombinatorAllSiblings",n[n.SelectorCombinatorShadowPiercingDescendant=11]="SelectorCombinatorShadowPiercingDescendant",n[n.Page=12]="Page",n[n.PageBoxMarginBox=13]="PageBoxMarginBox",n[n.ClassSelector=14]="ClassSelector",n[n.IdentifierSelector=15]="IdentifierSelector",n[n.ElementNameSelector=16]="ElementNameSelector",n[n.PseudoSelector=17]="PseudoSelector",n[n.AttributeSelector=18]="AttributeSelector",n[n.Declaration=19]="Declaration",n[n.Declarations=20]="Declarations",n[n.Property=21]="Property",n[n.Expression=22]="Expression",n[n.BinaryExpression=23]="BinaryExpression",n[n.Term=24]="Term",n[n.Operator=25]="Operator",n[n.Value=26]="Value",n[n.StringLiteral=27]="StringLiteral",n[n.URILiteral=28]="URILiteral",n[n.EscapedValue=29]="EscapedValue",n[n.Function=30]="Function",n[n.NumericValue=31]="NumericValue",n[n.HexColorValue=32]="HexColorValue",n[n.MixinDeclaration=33]="MixinDeclaration",n[n.MixinReference=34]="MixinReference",n[n.VariableName=35]="VariableName",n[n.VariableDeclaration=36]="VariableDeclaration",n[n.Prio=37]="Prio",n[n.Interpolation=38]="Interpolation",n[n.NestedProperties=39]="NestedProperties",n[n.ExtendsReference=40]="ExtendsReference",n[n.SelectorPlaceholder=41]="SelectorPlaceholder",n[n.Debug=42]="Debug",n[n.If=43]="If",n[n.Else=44]="Else",n[n.For=45]="For",n[n.Each=46]="Each",n[n.While=47]="While",n[n.MixinContentReference=48]="MixinContentReference",n[n.MixinContentDeclaration=49]="MixinContentDeclaration",n[n.Media=50]="Media",n[n.Keyframe=51]="Keyframe",n[n.FontFace=52]="FontFace",n[n.Import=53]="Import",n[n.Namespace=54]="Namespace",n[n.Invocation=55]="Invocation",n[n.FunctionDeclaration=56]="FunctionDeclaration",n[n.ReturnStatement=57]="ReturnStatement",n[n.MediaQuery=58]="MediaQuery",n[n.FunctionParameter=59]="FunctionParameter",n[n.FunctionArgument=60]="FunctionArgument",n[n.KeyframeSelector=61]="KeyframeSelector",n[n.ViewPort=62]="ViewPort",n[n.Document=63]="Document",n[n.AtApplyRule=64]="AtApplyRule",n[n.CustomPropertyDeclaration=65]="CustomPropertyDeclaration",n[n.CustomPropertySet=66]="CustomPropertySet",n[n.ListEntry=67]="ListEntry",n[n.Supports=68]="Supports",n[n.SupportsCondition=69]="SupportsCondition",n[n.NamespacePrefix=70]="NamespacePrefix",n[n.GridLine=71]="GridLine",n[n.Plugin=72]="Plugin",n[n.UnknownAtRule=73]="UnknownAtRule",n[n.Use=74]="Use",n[n.ModuleConfiguration=75]="ModuleConfiguration",n[n.Forward=76]="Forward",n[n.ForwardVisibility=77]="ForwardVisibility",n[n.Module=78]="Module"})(p||(p={}));var _;(function(n){n[n.Mixin=0]="Mixin",n[n.Rule=1]="Rule",n[n.Variable=2]="Variable",n[n.Function=3]="Function",n[n.Keyframe=4]="Keyframe",n[n.Unknown=5]="Unknown",n[n.Module=6]="Module",n[n.Forward=7]="Forward",n[n.ForwardVisibility=8]="ForwardVisibility"})(_||(_={}));function Jt(n,e){var t=null;return!n||e<n.offset||e>n.end?null:(n.accept(function(r){return r.offset===-1&&r.length===-1?!0:r.offset<=e&&r.end>=e?(t?r.length<=t.length&&(t=r):t=r,!0):!1}),t)}function Xt(n,e){for(var t=Jt(n,e),r=[];t;)r.unshift(t),t=t.parent;return r}function io(n){var e=n.findParent(p.Declaration),t=e&&e.getValue();return t&&t.encloses(n)?e:null}var z=function(){function n(e,t,r){e===void 0&&(e=-1),t===void 0&&(t=-1),this.parent=null,this.offset=e,this.length=t,r&&(this.nodeType=r)}return Object.defineProperty(n.prototype,"end",{get:function(){return this.offset+this.length},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"type",{get:function(){return this.nodeType||p.Undefined},set:function(e){this.nodeType=e},enumerable:!1,configurable:!0}),n.prototype.getTextProvider=function(){for(var e=this;e&&!e.textProvider;)e=e.parent;return e?e.textProvider:function(){return"unknown"}},n.prototype.getText=function(){return this.getTextProvider()(this.offset,this.length)},n.prototype.matches=function(e){return this.length===e.length&&this.getTextProvider()(this.offset,this.length)===e},n.prototype.startsWith=function(e){return this.length>=e.length&&this.getTextProvider()(this.offset,e.length)===e},n.prototype.endsWith=function(e){return this.length>=e.length&&this.getTextProvider()(this.end-e.length,e.length)===e},n.prototype.accept=function(e){if(e(this)&&this.children)for(var t=0,r=this.children;t<r.length;t++){var i=r[t];i.accept(e)}},n.prototype.acceptVisitor=function(e){this.accept(e.visitNode.bind(e))},n.prototype.adoptChild=function(e,t){if(t===void 0&&(t=-1),e.parent&&e.parent.children){var r=e.parent.children.indexOf(e);r>=0&&e.parent.children.splice(r,1)}e.parent=this;var i=this.children;return i||(i=this.children=[]),t!==-1?i.splice(t,0,e):i.push(e),e},n.prototype.attachTo=function(e,t){return t===void 0&&(t=-1),e&&e.adoptChild(this,t),this},n.prototype.collectIssues=function(e){this.issues&&e.push.apply(e,this.issues)},n.prototype.addIssue=function(e){this.issues||(this.issues=[]),this.issues.push(e)},n.prototype.hasIssue=function(e){return Array.isArray(this.issues)&&this.issues.some(function(t){return t.getRule()===e})},n.prototype.isErroneous=function(e){return e===void 0&&(e=!1),this.issues&&this.issues.length>0?!0:e&&Array.isArray(this.children)&&this.children.some(function(t){return t.isErroneous(!0)})},n.prototype.setNode=function(e,t,r){return r===void 0&&(r=-1),t?(t.attachTo(this,r),this[e]=t,!0):!1},n.prototype.addChild=function(e){return e?(this.children||(this.children=[]),e.attachTo(this),this.updateOffsetAndLength(e),!0):!1},n.prototype.updateOffsetAndLength=function(e){(e.offset<this.offset||this.offset===-1)&&(this.offset=e.offset);var t=e.end;(t>this.end||this.length===-1)&&(this.length=t-this.offset)},n.prototype.hasChildren=function(){return!!this.children&&this.children.length>0},n.prototype.getChildren=function(){return this.children?this.children.slice(0):[]},n.prototype.getChild=function(e){return this.children&&e<this.children.length?this.children[e]:null},n.prototype.addChildren=function(e){for(var t=0,r=e;t<r.length;t++){var i=r[t];this.addChild(i)}},n.prototype.findFirstChildBeforeOffset=function(e){if(this.children){for(var t=null,r=this.children.length-1;r>=0;r--)if(t=this.children[r],t.offset<=e)return t}return null},n.prototype.findChildAtOffset=function(e,t){var r=this.findFirstChildBeforeOffset(e);return r&&r.end>=e?t&&r.findChildAtOffset(e,!0)||r:null},n.prototype.encloses=function(e){return this.offset<=e.offset&&this.offset+this.length>=e.offset+e.length},n.prototype.getParent=function(){for(var e=this.parent;e instanceof Q;)e=e.parent;return e},n.prototype.findParent=function(e){for(var t=this;t&&t.type!==e;)t=t.parent;return t},n.prototype.findAParent=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r=this;r&&!e.some(function(i){return r.type===i});)r=r.parent;return r},n.prototype.setData=function(e,t){this.options||(this.options={}),this.options[e]=t},n.prototype.getData=function(e){return!this.options||!this.options.hasOwnProperty(e)?null:this.options[e]},n}(),Q=function(n){D(e,n);function e(t,r){r===void 0&&(r=-1);var i=n.call(this,-1,-1)||this;return i.attachTo(t,r),i.offset=-1,i.length=-1,i}return e}(z),ue=function(n){D(e,n);function e(t,r){var i=n.call(this,t,r)||this;return i.isCustomProperty=!1,i}return Object.defineProperty(e.prototype,"type",{get:function(){return p.Identifier},enumerable:!1,configurable:!0}),e.prototype.containsInterpolation=function(){return this.hasChildren()},e}(z),oo=function(n){D(e,n);function e(t,r){return n.call(this,t,r)||this}return Object.defineProperty(e.prototype,"type",{get:function(){return p.Stylesheet},enumerable:!1,configurable:!0}),e}(z),Yt=function(n){D(e,n);function e(t,r){return n.call(this,t,r)||this}return Object.defineProperty(e.prototype,"type",{get:function(){return p.Declarations},enumerable:!1,configurable:!0}),e}(z),$=function(n){D(e,n);function e(t,r){return n.call(this,t,r)||this}return e.prototype.getDeclarations=function(){return this.declarations},e.prototype.setDeclarations=function(t){return this.setNode("declarations",t)},e}(z),je=function(n){D(e,n);function e(t,r){return n.call(this,t,r)||this}return Object.defineProperty(e.prototype,"type",{get:function(){return p.Ruleset},enumerable:!1,configurable:!0}),e.prototype.getSelectors=function(){return this.selectors||(this.selectors=new Q(this)),this.selectors},e.prototype.isNested=function(){return!!this.parent&&this.parent.findParent(p.Declarations)!==null},e}($),Ye=function(n){D(e,n);function e(t,r){return n.call(this,t,r)||this}return Object.defineProperty(e.prototype,"type",{get:function(){return p.Selector},enumerable:!1,configurable:!0}),e}(z),Ue=function(n){D(e,n);function e(t,r){return n.call(this,t,r)||this}return Object.defineProperty(e.prototype,"type",{get:function(){return p.SimpleSelector},enumerable:!1,configurable:!0}),e}(z),ao=function(n){D(e,n);function e(t,r){return n.call(this,t,r)||this}return Object.defineProperty(e.prototype,"type",{get:function(){return p.AtApplyRule},enumerable:!1,configurable:!0}),e.prototype.setIdentifier=function(t){return this.setNode("identifier",t,0)},e.prototype.getIdentifier=function(){return this.identifier},e.prototype.getName=function(){return this.identifier?this.identifier.getText():""},e}(z),Zt=function(n){D(e,n);function e(t,r){return n.call(this,t,r)||this}return e}(z),so=function(n){D(e,n);function e(t,r){return n.call(this,t,r)||this}return Object.defineProperty(e.prototype,"type",{get:function(){return p.CustomPropertySet},enumerable:!1,configurable:!0}),e}($),ve=function(n){D(e,n);function e(t,r){var i=n.call(this,t,r)||this;return i.property=null,i}return Object.defineProperty(e.prototype,"type",{get:function(){return p.Declaration},enumerable:!1,configurable:!0}),e.prototype.setProperty=function(t){return this.setNode("property",t)},e.prototype.getProperty=function(){return this.property},e.prototype.getFullPropertyName=function(){var t=this.property?this.property.getName():"unknown";if(this.parent instanceof Yt&&this.parent.getParent()instanceof er){var r=this.parent.getParent().getParent();if(r instanceof e)return r.getFullPropertyName()+t}return t},e.prototype.getNonPrefixedPropertyName=function(){var t=this.getFullPropertyName();if(t&&t.charAt(0)==="-"){var r=t.indexOf("-",1);if(r!==-1)return t.substring(r+1)}return t},e.prototype.setValue=function(t){return this.setNode("value",t)},e.prototype.getValue=function(){return this.value},e.prototype.setNestedProperties=function(t){return this.setNode("nestedProperties",t)},e.prototype.getNestedProperties=function(){return this.nestedProperties},e}(Zt),lo=function(n){D(e,n);function e(t,r){return n.call(this,t,r)||this}return Object.defineProperty(e.prototype,"type",{get:function(){return p.CustomPropertyDeclaration},enumerable:!1,configurable:!0}),e.prototype.setPropertySet=function(t){return this.setNode("propertySet",t)},e.prototype.getPropertySet=function(){return this.propertySet},e}(ve),Qt=function(n){D(e,n);function e(t,r){return n.call(this,t,r)||this}return Object.defineProperty(e.prototype,"type",{get:function(){return p.Property},enumerable:!1,configurable:!0}),e.prototype.setIdentifier=function(t){return this.setNode("identifier",t)},e.prototype.getIdentifier=function(){return this.identifier},e.prototype.getName=function(){return ro(this.getText(),/[_\+]+$/)},e.prototype.isCustomProperty=function(){return!!this.identifier&&this.identifier.isCustomProperty},e}(z),co=function(n){D(e,n);function e(t,r){return n.call(this,t,r)||this}return Object.defineProperty(e.prototype,"type",{get:function(){return p.Invocation},enumerable:!1,configurable:!0}),e.prototype.getArguments=function(){return this.arguments||(this.arguments=new Q(this)),this.arguments},e}(z),Ze=function(n){D(e,n);function e(t,r){return n.call(this,t,r)||this}return Object.defineProperty(e.prototype,"type",{get:function(){return p.Function},enumerable:!1,configurable:!0}),e.prototype.setIdentifier=function(t){return this.setNode("identifier",t,0)},e.prototype.getIdentifier=function(){return this.identifier},e.prototype.getName=function(){return this.identifier?this.identifier.getText():""},e}(co),St=function(n){D(e,n);function e(t,r){return n.call(this,t,r)||this}return Object.defineProperty(e.prototype,"type",{get:function(){return p.FunctionParameter},enumerable:!1,configurable:!0}),e.prototype.setIdentifier=function(t){return this.setNode("identifier",t,0)},e.prototype.getIdentifier=function(){return this.identifier},e.prototype.getName=function(){return this.identifier?this.identifier.getText():""},e.prototype.setDefaultValue=function(t){return this.setNode("defaultValue",t,0)},e.prototype.getDefaultValue=function(){return this.defaultValue},e}(z),Ve=function(n){D(e,n);function e(t,r){return n.call(this,t,r)||this}return Object.defineProperty(e.prototype,"type",{get:function(){return p.FunctionArgument},enumerable:!1,configurable:!0}),e.prototype.setIdentifier=function(t){return this.setNode("identifier",t,0)},e.prototype.getIdentifier=function(){return this.identifier},e.prototype.getName=function(){return this.identifier?this.identifier.getText():""},e.prototype.setValue=function(t){return this.setNode("value",t,0)},e.prototype.getValue=function(){return this.value},e}(z),ho=function(n){D(e,n);function e(t,r){return n.call(this,t,r)||this}return Object.defineProperty(e.prototype,"type",{get:function(){return p.If},enumerable:!1,configurable:!0}),e.prototype.setExpression=function(t){return this.setNode("expression",t,0)},e.prototype.setElseClause=function(t){return this.setNode("elseClause",t)},e}($),po=function(n){D(e,n);function e(t,r){return n.call(this,t,r)||this}return Object.defineProperty(e.prototype,"type",{get:function(){return p.For},enumerable:!1,configurable:!0}),e.prototype.setVariable=function(t){return this.setNode("variable",t,0)},e}($),uo=function(n){D(e,n);function e(t,r){return n.call(this,t,r)||this}return Object.defineProperty(e.prototype,"type",{get:function(){return p.Each},enumerable:!1,configurable:!0}),e.prototype.getVariables=function(){return this.variables||(this.variables=new Q(this)),this.variables},e}($),mo=function(n){D(e,n);function e(t,r){return n.call(this,t,r)||this}return Object.defineProperty(e.prototype,"type",{get:function(){return p.While},enumerable:!1,configurable:!0}),e}($),fo=function(n){D(e,n);function e(t,r){return n.call(this,t,r)||this}return Object.defineProperty(e.prototype,"type",{get:function(){return p.Else},enumerable:!1,configurable:!0}),e}($),kt=function(n){D(e,n);function e(t,r){return n.call(this,t,r)||this}return Object.defineProperty(e.prototype,"type",{get:function(){return p.FunctionDeclaration},enumerable:!1,configurable:!0}),e.prototype.setIdentifier=function(t){return this.setNode("identifier",t,0)},e.prototype.getIdentifier=function(){return this.identifier},e.prototype.getName=function(){return this.identifier?this.identifier.getText():""},e.prototype.getParameters=function(){return this.parameters||(this.parameters=new Q(this)),this.parameters},e}($),go=function(n){D(e,n);function e(t,r){return n.call(this,t,r)||this}return Object.defineProperty(e.prototype,"type",{get:function(){return p.ViewPort},enumerable:!1,configurable:!0}),e}($),Qn=function(n){D(e,n);function e(t,r){return n.call(this,t,r)||this}return Object.defineProperty(e.prototype,"type",{get:function(){return p.FontFace},enumerable:!1,configurable:!0}),e}($),er=function(n){D(e,n);function e(t,r){return n.call(this,t,r)||this}return Object.defineProperty(e.prototype,"type",{get:function(){return p.NestedProperties},enumerable:!1,configurable:!0}),e}($),tr=function(n){D(e,n);function e(t,r){return n.call(this,t,r)||this}return Object.defineProperty(e.prototype,"type",{get:function(){return p.Keyframe},enumerable:!1,configurable:!0}),e.prototype.setKeyword=function(t){return this.setNode("keyword",t,0)},e.prototype.getKeyword=function(){return this.keyword},e.prototype.setIdentifier=function(t){return this.setNode("identifier",t,0)},e.prototype.getIdentifier=function(){return this.identifier},e.prototype.getName=function(){return this.identifier?this.identifier.getText():""},e}($),nr=function(n){D(e,n);function e(t,r){return n.call(this,t,r)||this}return Object.defineProperty(e.prototype,"type",{get:function(){return p.KeyframeSelector},enumerable:!1,configurable:!0}),e}($),en=function(n){D(e,n);function e(t,r){return n.call(this,t,r)||this}return Object.defineProperty(e.prototype,"type",{get:function(){return p.Import},enumerable:!1,configurable:!0}),e.prototype.setMedialist=function(t){return t?(t.attachTo(this),!0):!1},e}(z),bo=function(n){D(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return Object.defineProperty(e.prototype,"type",{get:function(){return p.Use},enumerable:!1,configurable:!0}),e.prototype.getParameters=function(){return this.parameters||(this.parameters=new Q(this)),this.parameters},e.prototype.setIdentifier=function(t){return this.setNode("identifier",t,0)},e.prototype.getIdentifier=function(){return this.identifier},e}(z),vo=function(n){D(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return Object.defineProperty(e.prototype,"type",{get:function(){return p.ModuleConfiguration},enumerable:!1,configurable:!0}),e.prototype.setIdentifier=function(t){return this.setNode("identifier",t,0)},e.prototype.getIdentifier=function(){return this.identifier},e.prototype.getName=function(){return this.identifier?this.identifier.getText():""},e.prototype.setValue=function(t){return this.setNode("value",t,0)},e.prototype.getValue=function(){return this.value},e}(z),yo=function(n){D(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return Object.defineProperty(e.prototype,"type",{get:function(){return p.Forward},enumerable:!1,configurable:!0}),e.prototype.setIdentifier=function(t){return this.setNode("identifier",t,0)},e.prototype.getIdentifier=function(){return this.identifier},e.prototype.getMembers=function(){return this.members||(this.members=new Q(this)),this.members},e.prototype.getParameters=function(){return this.parameters||(this.parameters=new Q(this)),this.parameters},e}(z),wo=function(n){D(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return Object.defineProperty(e.prototype,"type",{get:function(){return p.ForwardVisibility},enumerable:!1,configurable:!0}),e.prototype.setIdentifier=function(t){return this.setNode("identifier",t,0)},e.prototype.getIdentifier=function(){return this.identifier},e}(z),xo=function(n){D(e,n);function e(t,r){return n.call(this,t,r)||this}return Object.defineProperty(e.prototype,"type",{get:function(){return p.Namespace},enumerable:!1,configurable:!0}),e}(z),rr=function(n){D(e,n);function e(t,r){return n.call(this,t,r)||this}return Object.defineProperty(e.prototype,"type",{get:function(){return p.Media},enumerable:!1,configurable:!0}),e}($),tn=function(n){D(e,n);function e(t,r){return n.call(this,t,r)||this}return Object.defineProperty(e.prototype,"type",{get:function(){return p.Supports},enumerable:!1,configurable:!0}),e}($),So=function(n){D(e,n);function e(t,r){return n.call(this,t,r)||this}return Object.defineProperty(e.prototype,"type",{get:function(){return p.Document},enumerable:!1,configurable:!0}),e}($),ir=function(n){D(e,n);function e(t,r){return n.call(this,t,r)||this}return e.prototype.getMediums=function(){return this.mediums||(this.mediums=new Q(this)),this.mediums},e}(z),or=function(n){D(e,n);function e(t,r){return n.call(this,t,r)||this}return Object.defineProperty(e.prototype,"type",{get:function(){return p.MediaQuery},enumerable:!1,configurable:!0}),e}(z),Qe=function(n){D(e,n);function e(t,r){return n.call(this,t,r)||this}return Object.defineProperty(e.prototype,"type",{get:function(){return p.SupportsCondition},enumerable:!1,configurable:!0}),e}(z),ko=function(n){D(e,n);function e(t,r){return n.call(this,t,r)||this}return Object.defineProperty(e.prototype,"type",{get:function(){return p.Page},enumerable:!1,configurable:!0}),e}($),Co=function(n){D(e,n);function e(t,r){return n.call(this,t,r)||this}return Object.defineProperty(e.prototype,"type",{get:function(){return p.PageBoxMarginBox},enumerable:!1,configurable:!0}),e}($),ar=function(n){D(e,n);function e(t,r){return n.call(this,t,r)||this}return Object.defineProperty(e.prototype,"type",{get:function(){return p.Expression},enumerable:!1,configurable:!0}),e}(z),sr=function(n){D(e,n);function e(t,r){return n.call(this,t,r)||this}return Object.defineProperty(e.prototype,"type",{get:function(){return p.BinaryExpression},enumerable:!1,configurable:!0}),e.prototype.setLeft=function(t){return this.setNode("left",t)},e.prototype.getLeft=function(){return this.left},e.prototype.setRight=function(t){return this.setNode("right",t)},e.prototype.getRight=function(){return this.right},e.prototype.setOperator=function(t){return this.setNode("operator",t)},e.prototype.getOperator=function(){return this.operator},e}(z),Fo=function(n){D(e,n);function e(t,r){return n.call(this,t,r)||this}return Object.defineProperty(e.prototype,"type",{get:function(){return p.Term},enumerable:!1,configurable:!0}),e.prototype.setOperator=function(t){return this.setNode("operator",t)},e.prototype.getOperator=function(){return this.operator},e.prototype.setExpression=function(t){return this.setNode("expression",t)},e.prototype.getExpression=function(){return this.expression},e}(z),Eo=function(n){D(e,n);function e(t,r){return n.call(this,t,r)||this}return Object.defineProperty(e.prototype,"type",{get:function(){return p.AttributeSelector},enumerable:!1,configurable:!0}),e.prototype.setNamespacePrefix=function(t){return this.setNode("namespacePrefix",t)},e.prototype.getNamespacePrefix=function(){return this.namespacePrefix},e.prototype.setIdentifier=function(t){return this.setNode("identifier",t)},e.prototype.getIdentifier=function(){return this.identifier},e.prototype.setOperator=function(t){return this.setNode("operator",t)},e.prototype.getOperator=function(){return this.operator},e.prototype.setValue=function(t){return this.setNode("value",t)},e.prototype.getValue=function(){return this.value},e}(z),Ls=function(n){D(e,n);function e(t,r){return n.call(this,t,r)||this}return Object.defineProperty(e.prototype,"type",{get:function(){return p.Operator},enumerable:!1,configurable:!0}),e}(z),nn=function(n){D(e,n);function e(t,r){return n.call(this,t,r)||this}return Object.defineProperty(e.prototype,"type",{get:function(){return p.HexColorValue},enumerable:!1,configurable:!0}),e}(z),Do=".".charCodeAt(0),zo="0".charCodeAt(0),Ro="9".charCodeAt(0),rn=function(n){D(e,n);function e(t,r){return n.call(this,t,r)||this}return Object.defineProperty(e.prototype,"type",{get:function(){return p.NumericValue},enumerable:!1,configurable:!0}),e.prototype.getValue=function(){for(var t=this.getText(),r=0,i,o=0,a=t.length;o<a&&(i=t.charCodeAt(o),zo<=i&&i<=Ro||i===Do);o++)r+=1;return{value:t.substring(0,r),unit:r<t.length?t.substring(r):void 0}},e}(z),Ct=function(n){D(e,n);function e(t,r){var i=n.call(this,t,r)||this;return i.variable=null,i.value=null,i.needsSemicolon=!0,i}return Object.defineProperty(e.prototype,"type",{get:function(){return p.VariableDeclaration},enumerable:!1,configurable:!0}),e.prototype.setVariable=function(t){return t?(t.attachTo(this),this.variable=t,!0):!1},e.prototype.getVariable=function(){return this.variable},e.prototype.getName=function(){return this.variable?this.variable.getName():""},e.prototype.setValue=function(t){return t?(t.attachTo(this),this.value=t,!0):!1},e.prototype.getValue=function(){return this.value},e}(Zt),on=function(n){D(e,n);function e(t,r){return n.call(this,t,r)||this}return Object.defineProperty(e.prototype,"type",{get:function(){return p.Interpolation},enumerable:!1,configurable:!0}),e}(z),an=function(n){D(e,n);function e(t,r){return n.call(this,t,r)||this}return Object.defineProperty(e.prototype,"type",{get:function(){return p.VariableName},enumerable:!1,configurable:!0}),e.prototype.getName=function(){return this.getText()},e}(z),et=function(n){D(e,n);function e(t,r){return n.call(this,t,r)||this}return Object.defineProperty(e.prototype,"type",{get:function(){return p.ExtendsReference},enumerable:!1,configurable:!0}),e.prototype.getSelectors=function(){return this.selectors||(this.selectors=new Q(this)),this.selectors},e}(z),Io=function(n){D(e,n);function e(t,r){return n.call(this,t,r)||this}return Object.defineProperty(e.prototype,"type",{get:function(){return p.MixinContentReference},enumerable:!1,configurable:!0}),e.prototype.getArguments=function(){return this.arguments||(this.arguments=new Q(this)),this.arguments},e}(z),Mo=function(n){D(e,n);function e(t,r){return n.call(this,t,r)||this}return Object.defineProperty(e.prototype,"type",{get:function(){return p.MixinContentReference},enumerable:!1,configurable:!0}),e.prototype.getParameters=function(){return this.parameters||(this.parameters=new Q(this)),this.parameters},e}($),Ft=function(n){D(e,n);function e(t,r){return n.call(this,t,r)||this}return Object.defineProperty(e.prototype,"type",{get:function(){return p.MixinReference},enumerable:!1,configurable:!0}),e.prototype.getNamespaces=function(){return this.namespaces||(this.namespaces=new Q(this)),this.namespaces},e.prototype.setIdentifier=function(t){return this.setNode("identifier",t,0)},e.prototype.getIdentifier=function(){return this.identifier},e.prototype.getName=function(){return this.identifier?this.identifier.getText():""},e.prototype.getArguments=function(){return this.arguments||(this.arguments=new Q(this)),this.arguments},e.prototype.setContent=function(t){return this.setNode("content",t)},e.prototype.getContent=function(){return this.content},e}(z),tt=function(n){D(e,n);function e(t,r){return n.call(this,t,r)||this}return Object.defineProperty(e.prototype,"type",{get:function(){return p.MixinDeclaration},enumerable:!1,configurable:!0}),e.prototype.setIdentifier=function(t){return this.setNode("identifier",t,0)},e.prototype.getIdentifier=function(){return this.identifier},e.prototype.getName=function(){return this.identifier?this.identifier.getText():""},e.prototype.getParameters=function(){return this.parameters||(this.parameters=new Q(this)),this.parameters},e.prototype.setGuard=function(t){return t&&(t.attachTo(this),this.guard=t),!1},e}($),lr=function(n){D(e,n);function e(t,r){return n.call(this,t,r)||this}return Object.defineProperty(e.prototype,"type",{get:function(){return p.UnknownAtRule},enumerable:!1,configurable:!0}),e.prototype.setAtRuleName=function(t){this.atRuleName=t},e.prototype.getAtRuleName=function(){return this.atRuleName},e}($),Po=function(n){D(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return Object.defineProperty(e.prototype,"type",{get:function(){return p.ListEntry},enumerable:!1,configurable:!0}),e.prototype.setKey=function(t){return this.setNode("key",t,0)},e.prototype.setValue=function(t){return this.setNode("value",t,1)},e}(z),Ao=function(n){D(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.getConditions=function(){return this.conditions||(this.conditions=new Q(this)),this.conditions},e}(z),To=function(n){D(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.setVariable=function(t){return this.setNode("variable",t)},e}(z),cr=function(n){D(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return Object.defineProperty(e.prototype,"type",{get:function(){return p.Module},enumerable:!1,configurable:!0}),e.prototype.setIdentifier=function(t){return this.setNode("identifier",t,0)},e.prototype.getIdentifier=function(){return this.identifier},e}(z),ae;(function(n){n[n.Ignore=1]="Ignore",n[n.Warning=2]="Warning",n[n.Error=4]="Error"})(ae||(ae={}));var dr=function(){function n(e,t,r,i,o,a){o===void 0&&(o=e.offset),a===void 0&&(a=e.length),this.node=e,this.rule=t,this.level=r,this.message=i||t.message,this.offset=o,this.length=a}return n.prototype.getRule=function(){return this.rule},n.prototype.getLevel=function(){return this.level},n.prototype.getOffset=function(){return this.offset},n.prototype.getLength=function(){return this.length},n.prototype.getNode=function(){return this.node},n.prototype.getMessage=function(){return this.message},n}(),_o=function(){function n(){this.entries=[]}return n.entries=function(e){var t=new n;return e.acceptVisitor(t),t.entries},n.prototype.visitNode=function(e){return e.isErroneous()&&e.collectIssues(this.entries),!0},n}();function No(n,e){var t;return e.length===0?t=n:t=n.replace(/\{(\d+)\}/g,function(r,i){var o=i[0];return typeof e[o]!="undefined"?e[o]:r}),t}function Wo(n,e){for(var t=[],r=2;r<arguments.length;r++)t[r-2]=arguments[r];return No(e,t)}function ce(n){return Wo}function js(n){return ce}var O=ce(),L=function(){function n(e,t){this.id=e,this.message=t}return n}(),f={NumberExpected:new L("css-numberexpected",O("expected.number","number expected")),ConditionExpected:new L("css-conditionexpected",O("expected.condt","condition expected")),RuleOrSelectorExpected:new L("css-ruleorselectorexpected",O("expected.ruleorselector","at-rule or selector expected")),DotExpected:new L("css-dotexpected",O("expected.dot","dot expected")),ColonExpected:new L("css-colonexpected",O("expected.colon","colon expected")),SemiColonExpected:new L("css-semicolonexpected",O("expected.semicolon","semi-colon expected")),TermExpected:new L("css-termexpected",O("expected.term","term expected")),ExpressionExpected:new L("css-expressionexpected",O("expected.expression","expression expected")),OperatorExpected:new L("css-operatorexpected",O("expected.operator","operator expected")),IdentifierExpected:new L("css-identifierexpected",O("expected.ident","identifier expected")),PercentageExpected:new L("css-percentageexpected",O("expected.percentage","percentage expected")),URIOrStringExpected:new L("css-uriorstringexpected",O("expected.uriorstring","uri or string expected")),URIExpected:new L("css-uriexpected",O("expected.uri","URI expected")),VariableNameExpected:new L("css-varnameexpected",O("expected.varname","variable name expected")),VariableValueExpected:new L("css-varvalueexpected",O("expected.varvalue","variable value expected")),PropertyValueExpected:new L("css-propertyvalueexpected",O("expected.propvalue","property value expected")),LeftCurlyExpected:new L("css-lcurlyexpected",O("expected.lcurly","{ expected")),RightCurlyExpected:new L("css-rcurlyexpected",O("expected.rcurly","} expected")),LeftSquareBracketExpected:new L("css-rbracketexpected",O("expected.lsquare","[ expected")),RightSquareBracketExpected:new L("css-lbracketexpected",O("expected.rsquare","] expected")),LeftParenthesisExpected:new L("css-lparentexpected",O("expected.lparen","( expected")),RightParenthesisExpected:new L("css-rparentexpected",O("expected.rparent",") expected")),CommaExpected:new L("css-commaexpected",O("expected.comma","comma expected")),PageDirectiveOrDeclarationExpected:new L("css-pagedirordeclexpected",O("expected.pagedirordecl","page directive or declaraton expected")),UnknownAtRule:new L("css-unknownatrule",O("unknown.atrule","at-rule unknown")),UnknownKeyword:new L("css-unknownkeyword",O("unknown.keyword","unknown keyword")),SelectorExpected:new L("css-selectorexpected",O("expected.selector","selector expected")),StringLiteralExpected:new L("css-stringliteralexpected",O("expected.stringliteral","string literal expected")),WhitespaceExpected:new L("css-whitespaceexpected",O("expected.whitespace","whitespace expected")),MediaQueryExpected:new L("css-mediaqueryexpected",O("expected.mediaquery","media query expected")),IdentifierOrWildcardExpected:new L("css-idorwildcardexpected",O("expected.idorwildcard","identifier or wildcard expected")),WildcardExpected:new L("css-wildcardexpected",O("expected.wildcard","wildcard expected")),IdentifierOrVariableExpected:new L("css-idorvarexpected",O("expected.idorvar","identifier or variable expected"))},hr={E:"Edge",FF:"Firefox",S:"Safari",C:"Chrome",IE:"IE",O:"Opera"};function pr(n){switch(n){case"experimental":return`\u26A0\uFE0F Property is experimental. Be cautious when using it.\uFE0F `;case"nonstandard":return`\u{1F6A8}\uFE0F Property is nonstandard. Avoid using it. `;case"obsolete":return`\u{1F6A8}\uFE0F\uFE0F\uFE0F Property is obsolete. Avoid using it. `;default:return""}}function Ee(n,e,t){var r;if(e?r={kind:"markdown",value:Lo(n,t)}:r={kind:"plaintext",value:Oo(n,t)},r.value!=="")return r}function sn(n){return n=n.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&"),n.replace(/</g,"&lt;").replace(/>/g,"&gt;")}function Oo(n,e){if(!n.description||n.description==="")return"";if(typeof n.description!="string")return n.description.value;var t="";if((e==null?void 0:e.documentation)!==!1){n.status&&(t+=pr(n.status)),t+=n.description;var r=ur(n.browsers);r&&(t+=` (`+r+")"),"syntax"in n&&(t+=` Syntax: `+n.syntax)}return n.references&&n.references.length>0&&(e==null?void 0:e.references)!==!1&&(t.length>0&&(t+=` `),t+=n.references.map(function(i){return i.name+": "+i.url}).join(" | ")),t}function Lo(n,e){if(!n.description||n.description==="")return"";var t="";if((e==null?void 0:e.documentation)!==!1){n.status&&(t+=pr(n.status));var r=typeof n.description=="string"?n.description:n.description.value;t+=sn(r);var i=ur(n.browsers);i&&(t+=` (`+sn(i)+")"),"syntax"in n&&n.syntax&&(t+=` Syntax: `+sn(n.syntax))}return n.references&&n.references.length>0&&(e==null?void 0:e.references)!==!1&&(t.length>0&&(t+=` `),t+=n.references.map(function(o){return"["+o.name+"]("+o.url+")"}).join(" | ")),t}function ur(n){return n===void 0&&(n=[]),n.length===0?null:n.map(function(e){var t="",r=e.match(/([A-Z]+)(\d+)?/),i=r[1],o=r[2];return i in hr&&(t+=hr[i]),o&&(t+=" "+o),t}).join(", ")}var Et=ce(),jo=[{func:"rgb($red, $green, $blue)",desc:Et("css.builtin.rgb","Creates a Color from red, green, and blue values.")},{func:"rgba($red, $green, $blue, $alpha)",desc:Et("css.builtin.rgba","Creates a Color from red, green, blue, and alpha values.")},{func:"hsl($hue, $saturation, $lightness)",desc:Et("css.builtin.hsl","Creates a Color from hue, saturation, and lightness values.")},{func:"hsla($hue, $saturation, $lightness, $alpha)",desc:Et("css.builtin.hsla","Creates a Color from hue, saturation, lightness, and alpha values.")}],nt={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:"#fffa