(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-0b65ffb6"],{db4f:function(e,t,r){r.r(t),r.d(t,"setupMode",(function(){return Cc}));var n,i=r("0b3c"),o=(s.prototype._stopWorker=function(){this._worker&&(this._worker.dispose(),this._worker=null),this._client=null},s.prototype.dispose=function(){clearInterval(this._idleCheckInterval),this._configChangeListener.dispose(),this._stopWorker()},s.prototype._checkIfIdle=function(){this._worker&&12e4this.source.length)return!1;for(var t=0;te.end?null:(e.accept((function(e){return-1===e.offset&&-1===e.length||e.offset<=t&&e.end>=t&&((!r||e.length<=r.length)&&(r=e),!0)})),r)}function se(e,t){for(var r=oe(e,t),n=[];r;)n.unshift(r),r=r.parent;return n}(B=ne=ne||{})[B.Undefined=0]="Undefined",B[B.Identifier=1]="Identifier",B[B.Stylesheet=2]="Stylesheet",B[B.Ruleset=3]="Ruleset",B[B.Selector=4]="Selector",B[B.SimpleSelector=5]="SimpleSelector",B[B.SelectorInterpolation=6]="SelectorInterpolation",B[B.SelectorCombinator=7]="SelectorCombinator",B[B.SelectorCombinatorParent=8]="SelectorCombinatorParent",B[B.SelectorCombinatorSibling=9]="SelectorCombinatorSibling",B[B.SelectorCombinatorAllSiblings=10]="SelectorCombinatorAllSiblings",B[B.SelectorCombinatorShadowPiercingDescendant=11]="SelectorCombinatorShadowPiercingDescendant",B[B.Page=12]="Page",B[B.PageBoxMarginBox=13]="PageBoxMarginBox",B[B.ClassSelector=14]="ClassSelector",B[B.IdentifierSelector=15]="IdentifierSelector",B[B.ElementNameSelector=16]="ElementNameSelector",B[B.PseudoSelector=17]="PseudoSelector",B[B.AttributeSelector=18]="AttributeSelector",B[B.Declaration=19]="Declaration",B[B.Declarations=20]="Declarations",B[B.Property=21]="Property",B[B.Expression=22]="Expression",B[B.BinaryExpression=23]="BinaryExpression",B[B.Term=24]="Term",B[B.Operator=25]="Operator",B[B.Value=26]="Value",B[B.StringLiteral=27]="StringLiteral",B[B.URILiteral=28]="URILiteral",B[B.EscapedValue=29]="EscapedValue",B[B.Function=30]="Function",B[B.NumericValue=31]="NumericValue",B[B.HexColorValue=32]="HexColorValue",B[B.MixinDeclaration=33]="MixinDeclaration",B[B.MixinReference=34]="MixinReference",B[B.VariableName=35]="VariableName",B[B.VariableDeclaration=36]="VariableDeclaration",B[B.Prio=37]="Prio",B[B.Interpolation=38]="Interpolation",B[B.NestedProperties=39]="NestedProperties",B[B.ExtendsReference=40]="ExtendsReference",B[B.SelectorPlaceholder=41]="SelectorPlaceholder",B[B.Debug=42]="Debug",B[B.If=43]="If",B[B.Else=44]="Else",B[B.For=45]="For",B[B.Each=46]="Each",B[B.While=47]="While",B[B.MixinContentReference=48]="MixinContentReference",B[B.MixinContentDeclaration=49]="MixinContentDeclaration",B[B.Media=50]="Media",B[B.Keyframe=51]="Keyframe",B[B.FontFace=52]="FontFace",B[B.Import=53]="Import",B[B.Namespace=54]="Namespace",B[B.Invocation=55]="Invocation",B[B.FunctionDeclaration=56]="FunctionDeclaration",B[B.ReturnStatement=57]="ReturnStatement",B[B.MediaQuery=58]="MediaQuery",B[B.FunctionParameter=59]="FunctionParameter",B[B.FunctionArgument=60]="FunctionArgument",B[B.KeyframeSelector=61]="KeyframeSelector",B[B.ViewPort=62]="ViewPort",B[B.Document=63]="Document",B[B.AtApplyRule=64]="AtApplyRule",B[B.CustomPropertyDeclaration=65]="CustomPropertyDeclaration",B[B.CustomPropertySet=66]="CustomPropertySet",B[B.ListEntry=67]="ListEntry",B[B.Supports=68]="Supports",B[B.SupportsCondition=69]="SupportsCondition",B[B.NamespacePrefix=70]="NamespacePrefix",B[B.GridLine=71]="GridLine",B[B.Plugin=72]="Plugin",B[B.UnknownAtRule=73]="UnknownAtRule",B[B.Use=74]="Use",B[B.ModuleConfiguration=75]="ModuleConfiguration",B[B.Forward=76]="Forward",B[B.ForwardVisibility=77]="ForwardVisibility",B[B.Module=78]="Module",(U=ie=ie||{})[U.Mixin=0]="Mixin",U[U.Rule=1]="Rule",U[U.Variable=2]="Variable",U[U.Function=3]="Function",U[U.Keyframe=4]="Keyframe",U[U.Unknown=5]="Unknown",U[U.Module=6]="Module",U[U.Forward=7]="Forward",U[U.ForwardVisibility=8]="ForwardVisibility",Object.defineProperty(ce.prototype,"end",{get:function(){return this.offset+this.length},enumerable:!1,configurable:!0}),Object.defineProperty(ce.prototype,"type",{get:function(){return this.nodeType||ne.Undefined},set:function(e){this.nodeType=e},enumerable:!1,configurable:!0}),ce.prototype.getTextProvider=function(){for(var e=this;e&&!e.textProvider;)e=e.parent;return e?e.textProvider:function(){return"unknown"}},ce.prototype.getText=function(){return this.getTextProvider()(this.offset,this.length)},ce.prototype.matches=function(e){return this.length===e.length&&this.getTextProvider()(this.offset,this.length)===e},ce.prototype.startsWith=function(e){return this.length>=e.length&&this.getTextProvider()(this.offset,e.length)===e},ce.prototype.endsWith=function(e){return this.length>=e.length&&this.getTextProvider()(this.end-e.length,e.length)===e},ce.prototype.accept=function(e){if(e(this)&&this.children)for(var t=0,r=this.children;tthis.end||-1===this.length)&&(this.length=e-this.offset)},ce.prototype.hasChildren=function(){return!!this.children&&0=e?t&&r.findChildAtOffset(e,!0)||r:null},ce.prototype.encloses=function(e){return this.offset<=e.offset&&this.offset+this.length>=e.offset+e.length},ce.prototype.getParent=function(){for(var e=this.parent;e instanceof he;)e=e.parent;return e},ce.prototype.findParent=function(e){for(var t=this;t&&t.type!==e;)t=t.parent;return t},ce.prototype.findAParent=function(){for(var e=[],t=0;t{var r,n;return e.description&&""!==e.description?(r="",!1!==(null==t?void 0:t.documentation)&&(e.status&&(r+=Kn(e.status)),n="string"==typeof e.description?e.description:e.description.value,r+=zn(n),(n=Hn(e.browsers))&&(r+="\n\n("+zn(n)+")"),"syntax"in e)&&e.syntax&&(r+="\n\nSyntax: "+zn(e.syntax)),e.references&&0{var r,n;return e.description&&""!==e.description?"string"!=typeof e.description?e.description.value:(r="",!1!==(null==t?void 0:t.documentation)&&(e.status&&(r+=Kn(e.status)),r+=e.description,(n=Hn(e.browsers))&&(r+="\n("+n+")"),"syntax"in e)&&(r+="\n\nSyntax: "+e.syntax),e.references&&0/g,">")}function Hn(e){return 0===(e=void 0===e?[]:e).length?null:e.map((function(e){var t="",r=(e=e.match(/([A-Z]+)(\d+)?/),e[1]);e=e[2];return r in Wn&&(t+=Wn[r]),e&&(t+=" "+e),t})).join(", ")}B=Bn;var Gn=[{func:"rgb($red, $green, $blue)",desc:B("css.builtin.rgb","Creates a Color from red, green, and blue values.")},{func:"rgba($red, $green, $blue, $alpha)",desc:B("css.builtin.rgba","Creates a Color from red, green, blue, and alpha values.")},{func:"hsl($hue, $saturation, $lightness)",desc:B("css.builtin.hsl","Creates a Color from hue, saturation, and lightness values.")},{func:"hsla($hue, $saturation, $lightness, $alpha)",desc:B("css.builtin.hsla","Creates a Color from hue, saturation, lightness, and alpha values.")}],Qn={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"},Jn={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 Xn(e,t){if(e=e.getText().match(/^([-+]?[0-9]*\.?[0-9]+)(%?)$/),e&&(e[2]&&(t=100),e=parseFloat(e[1])/t,0<=e&&e<=1))return e;throw new Error}function Zn(e){return e=e.getName(),!!e&&/^(rgb|rgba|hsl|hsla)$/gi.test(e)}var Yn=48,ei=57,ti=65,ri=97,ni=102;function ii(e){return e{if((e=e.getText()).match(/^([-+]?[0-9]*\.?[0-9]+)(deg)?$/))return parseFloat(e)%360;throw new Error})(s[0]),c=Xn(s[1],100),u=Xn(s[2],100),t=h,n=u,void 0===(i=l)&&(i=1),t/=60,0===(r=c)?{red:n,green:n,blue:n,alpha:i}:{red:(o=function(e,t,r){for(;r<0;)r+=6;for(;6<=r;)r-=6;return r<1?(t-e)*r+e:r<3?t:r<4?(t-e)*(4-r)+e:e})(r=2*n-(n=n<=.5?n*(r+1):n+r-n*r),n,t+2),green:o(r,n,t),blue:o(r,n,t-2),alpha:i}}catch(e){}}else if(e.type===ne.Identifier){if(e.parent&&e.parent.type!==ne.Term)return null;if(a=e.parent,a&&a.parent&&a.parent.type===ne.BinaryExpression&&(s=a.parent,s.parent&&s.parent.type===ne.ListEntry&&s.parent.key===s))return null;var h=e.getText().toLowerCase();if("none"===h)return null;var u=Qn[h];if(u)return oi(u)}return null}var ai={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."},ci={"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."},li={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."},hi=["medium","thick","thin"],ui={"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."},pi={"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."},di={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."},fi={"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."},mi={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."},gi={"circle()":"Defines a circle.","ellipse()":"Defines an ellipse.","inset()":"Defines an inset rectangle.","polygon()":"Defines a polygon."},yi={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"]},vi=["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"],bi=["circle","clipPath","cursor","defs","desc","ellipse","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","foreignObject","g","hatch","hatchpath","image","line","linearGradient","marker","mask","mesh","meshpatch","meshrow","metadata","mpath","path","pattern","polygon","polyline","radialGradient","rect","set","solidcolor","stop","svg","switch","symbol","text","textPath","tspan","use","view"],xi=["@bottom-center","@bottom-left","@bottom-left-corner","@bottom-right","@bottom-right-corner","@left-bottom","@left-middle","@left-top","@right-bottom","@right-middle","@right-top","@top-center","@top-left","@top-left-corner","@top-right","@top-right-corner"];function Ci(e){return void 0!==e}function ki(e){void 0===e&&(e=new X),this.keyframeRegex=/^@(\-(webkit|ms|moz|o)\-)?keyframes$/i,this.scanner=e,this.token={type:n.EOF,offset:-1,len:0,text:""},this.prevToken=void 0}function _i(e,t){return-1!==e.indexOf(t)}function wi(){for(var e=[],t=0;t")){var e=this.create(ae),t=(this.consumeToken(),this.mark());if(!this.hasWhitespace()&&this.acceptDelim(">")){if(!this.hasWhitespace()&&this.acceptDelim(">"))return e.type=ne.SelectorCombinatorShadowPiercingDescendant,this.finish(e);this.restoreAtMark(t)}return e.type=ne.SelectorCombinatorParent,this.finish(e)}if(this.peekDelim("+"))return e=this.create(ae),this.consumeToken(),e.type=ne.SelectorCombinatorSibling,this.finish(e);if(this.peekDelim("~"))return e=this.create(ae),this.consumeToken(),e.type=ne.SelectorCombinatorAllSiblings,this.finish(e);if(this.peekDelim("/")){if(e=this.create(ae),this.consumeToken(),t=this.mark(),!this.hasWhitespace()&&this.acceptIdent("deep")&&!this.hasWhitespace()&&this.acceptDelim("/"))return e.type=ne.SelectorCombinatorShadowPiercingDescendant,this.finish(e);this.restoreAtMark(t)}return null},ki.prototype._parseSimpleSelector=function(){var e=this.create(Te),t=0;for(e.addChild(this._parseElementName())&&t++;(0===t||!this.hasWhitespace())&&e.addChild(this._parseSimpleSelectorBody());)t++;return 0e+t||this.offset===e&&this.length===t?this.findInScope(e,t):null},Ei.prototype.findInScope=function(e,t){var r=e+(t=void 0===t?0:t),n=((e,t)=>{var r=0,n=e.length;if(0===n)return 0;for(;rr}));return 0!==n&&(n=this.children[n-1]).offset<=e&&n.offset+n.length>=e+t?n.findInScope(e,t):this},Ei.prototype.addSymbol=function(e){this.symbols.push(e)},Ei.prototype.getSymbol=function(e,t){for(var r=0;rr.line||t.line===r.line&&t.character>r.character?{start:r,end:t}:e}Object.defineProperty(ko.prototype,"edit",{get:function(){return this.initDocumentChanges(),void 0!==this._changeAnnotations&&(0===this._changeAnnotations.size?this._workspaceEdit.changeAnnotations=void 0:this._workspaceEdit.changeAnnotations=this._changeAnnotations.all()),this._workspaceEdit},enumerable:!1,configurable:!0}),ko.prototype.getTextEditChange=function(e){if(no.is(e)){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");var t={uri:e.uri,version:e.version};(r=this._textEditChanges[t.uri])||(this._workspaceEdit.documentChanges.push({textDocument:t,edits:n=[]}),r=new eo(n,this._changeAnnotations),this._textEditChanges[t.uri]=r)}else{if(this.initChanges(),void 0===this._workspaceEdit.changes)throw new Error("Workspace edit is not configured for normal text edit changes.");var r,n;(r=this._textEditChanges[e])||(this._workspaceEdit.changes[e]=n=[],r=new eo(n),this._textEditChanges[e]=r)}return r},ko.prototype.initDocumentChanges=function(){void 0===this._workspaceEdit.documentChanges&&void 0===this._workspaceEdit.changes&&(this._changeAnnotations=new xo,this._workspaceEdit.documentChanges=[],this._workspaceEdit.changeAnnotations=this._changeAnnotations.all())},ko.prototype.initChanges=function(){void 0===this._workspaceEdit.documentChanges&&void 0===this._workspaceEdit.changes&&(this._workspaceEdit.changes=Object.create(null))},ko.prototype.createFile=function(e,t,r){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");var n,i;if(Ki.is(t)||qi.is(t)?n=t:r=t,t=void 0===n?Gi.create(e,r):(i=qi.is(n)?n:this._changeAnnotations.manage(n),Gi.create(e,r,i)),this._workspaceEdit.documentChanges.push(t),void 0!==i)return i},ko.prototype.renameFile=function(e,t,r,n){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");var i,o;if(Ki.is(r)||qi.is(r)?i=r:n=r,r=void 0===i?Qi.create(e,t,n):(o=qi.is(i)?i:this._changeAnnotations.manage(i),Qi.create(e,t,n,o)),this._workspaceEdit.documentChanges.push(r),void 0!==o)return o},ko.prototype.deleteFile=function(e,t,r){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");var n,i;if(Ki.is(t)||qi.is(t)?n=t:r=t,t=void 0===n?Ji.create(e,r):(i=qi.is(n)?n:this._changeAnnotations.manage(n),Ji.create(e,r,i)),this._workspaceEdit.documentChanges.push(t),void 0!==i)return i},(K=ro=ro||{}).create=function(e,t){return{uri:e,version:t}},K.is=function(e){return yo.defined(e)&&yo.string(e.uri)&&yo.integer(e.version)},(sa=no=no||{}).create=function(e,t){return{uri:e,version:t}},sa.is=function(e){return yo.defined(e)&&yo.string(e.uri)&&(null===e.version||yo.integer(e.version))},(B=io=io||{}).PlainText="plaintext",B.Markdown="markdown",(oo=io=io||{}).is=function(e){return e===oo.PlainText||e===oo.Markdown},(so||(so={})).is=function(e){var t=e;return yo.objectLiteral(e)&&io.is(t.kind)&&yo.string(t.value)},(W=ao=ao||{}).Text=1,W.Method=2,W.Function=3,W.Constructor=4,W.Field=5,W.Variable=6,W.Class=7,W.Interface=8,W.Module=9,W.Property=10,W.Unit=11,W.Value=12,W.Enum=13,W.Keyword=14,W.Snippet=15,W.Color=16,W.File=17,W.Reference=18,W.Folder=19,W.EnumMember=20,W.Constant=21,W.Struct=22,W.Event=23,W.Operator=24,W.TypeParameter=25,(t=co=co||{}).PlainText=1,t.Snippet=2,(lo=lo||{}).Deprecated=1,(Ko||{}).create=function(e){return{label:e}},(es||{}).create=function(e,t){return{items:e||[],isIncomplete:!!t}},(q=ho=ho||{}).fromPlainText=function(e){return e.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")},q.is=function(e){return yo.string(e)||yo.objectLiteral(e)&&yo.string(e.language)&&yo.string(e.value)},(xs||{}).is=function(e){var t=e;return!!t&&yo.objectLiteral(t)&&(so.is(t.contents)||ho.is(t.contents)||yo.typedArray(t.contents,ho.is))&&(void 0===e.range||Vi.is(e.range))},(Ps||{}).create=function(e,t){return t?{label:e,documentation:t}:{label:e}},(Ss||{}).create=function(e,t){for(var r=[],n=2;ne?n=i:r=i+1}var o=r-1;return Oi.create(o,e-t[o])},_o.prototype.offsetAt=function(e){var t,r=this.getLineOffsets();return e.line>=r.length?this._content.length:e.line<0?0:(t=r[e.line],r=e.line+1e?n=i:r=i+1}var o=r-1;return{line:o,character:e-t[o]}},wo.prototype.offsetAt=function(e){var t,r=this.getLineOffsets();return e.line>=r.length?this._content.length:e.line<0?0:(t=r[e.line],r=e.line+1i[0]&&c[1](t=No(e.start,t),e=No(e.end,r),Vi.create(t,e)))(r,1,-1):r,a=((e,t,r)=>{var n;return e=e.lastIndexOf("/"),-1===e?r:(t=t.slice(e+1),e=No(r.end,-t.length),t=t.indexOf(" "),n=void 0,n=-1!==t?No(e,t):r.end,Vi.create(e,n))})(o,c,u),c=o.substring(0,o.lastIndexOf("/")+1),!(l=i.resolveReference(c||".",s)))return[3,4];g.label=1;case 1:return g.trys.push([1,3,,4]),h=[],[4,this.readDirectory(l)];case 2:for(u=g.sent(),p=0,d=u;pi[0]&&c[1]{for(var r=t-1,n=e.getText();0<=r&&-1===' \t\n\r":{[()]},*>+'.indexOf(n.charAt(r));)r--;return n.substring(r+1,t)})(e,this.offset),this.defaultReplaceRange=Vi.create(Oi.create(this.position.line,this.position.character-this.currentWord.length),this.position),this.textDocument=e,this.styleSheet=r,this.documentSettings=n;try{var i={isIncomplete:!1,items:[]};this.nodePath=se(this.styleSheet,this.offset);for(var o=this.nodePath.length-1;0<=o;o--){var s=this.nodePath[o];if(s instanceof Ge)this.getCompletionsForDeclarationProperty(s.getParent(),i);else if(s instanceof Ir)s.parent instanceof tn?this.getVariableProposals(null,i):this.getCompletionsForExpression(s,i);else if(s instanceof Te){var a=s.findAParent(ne.ExtendsReference,ne.Ruleset);a&&(a.type===ne.ExtendsReference?this.getCompletionsForExtendsReference(a,s,i):this.getCompletionsForSelector(a,a&&a.isNested(),i))}else if(s instanceof ot)this.getCompletionsForFunctionArgument(s,s.getParent(),i);else if(s instanceof be)this.getCompletionsForDeclarations(s,i);else if(s instanceof Zr)this.getCompletionsForVariableDeclaration(s,i);else if(s instanceof Pe)this.getCompletionsForRuleSet(s,i);else if(s instanceof tn)this.getCompletionsForInterpolation(s,i);else if(s instanceof _t)this.getCompletionsForFunctionDeclaration(s,i);else if(s instanceof yn)this.getCompletionsForMixinReference(s,i);else if(s instanceof Ye)this.getCompletionsForFunctionArgument(null,s,i);else if(s instanceof cr)this.getCompletionsForSupports(s,i);else if(s instanceof xr)this.getCompletionsForSupportsCondition(s,i);else if(s instanceof cn)this.getCompletionsForExtendsReference(s,null,i);else if(s.type===ne.URILiteral)this.getCompletionForUriLiteralValue(s,i);else if(null===s.parent)this.getCompletionForTopLevel(i);else{if(s.type!==ne.StringLiteral||!this.isImportPathParent(s.parent.type))continue;this.getCompletionForImportPath(s,i)}if(0s.offset)return this.finalize(i)}return this.getCompletionsForStylesheet(i),0===i.items.length&&this.variablePrefix&&0===this.currentWord.indexOf(this.variablePrefix)&&this.getVariableProposals(null,i),this.finalize(i)}finally{this.position=null,this.currentWord=null,this.textDocument=null,this.styleSheet=null,this.symbolContext=null,this.defaultReplaceRange=null,this.nodePath=null}},qo.prototype.isImportPathParent=function(e){return e===ne.Import},qo.prototype.finalize=function(e){return e},qo.prototype.findInNodePath=function(){for(var e=[],t=0;t=r.textDocument.offsetAt(a.end)&&(c+="$0;"),{label:o.name,documentation:qn(o,r.doesSupportMarkdown()),tags:zo(o)?[lo.Deprecated]:[],textEdit:Wi.replace(a,c),insertTextFormat:co.Snippet,kind:ao.Property});o.restrictions||(s=!1),n&&s&&(a.command={title:"Suggest",command:"editor.action.triggerSuggest"});var c=(255-("number"==typeof o.relevance?Math.min(Math.max(o.relevance,0),99):50)).toString(16);s=Y(o.name,"-")?$o.VendorPrefixed:$o.Normal;a.sortText=s+"_"+c,t.items.push(a)})),this.completionParticipants.forEach((function(e){e.onCssProperty&&e.onCssProperty({propertyName:r.currentWord,range:r.defaultReplaceRange})})),t},Object.defineProperty(qo.prototype,"isTriggerPropertyValueCompletionEnabled",{get:function(){var e;return null==(e=null==(e=this.documentSettings)?void 0:e.triggerPropertyValueCompletion)||e},enumerable:!1,configurable:!0}),Object.defineProperty(qo.prototype,"isCompletePropertyWithSemicolonEnabled",{get:function(){var e;return null==(e=null==(e=this.documentSettings)?void 0:e.completePropertyWithSemicolon)||e},enumerable:!1,configurable:!0}),qo.prototype.getCompletionsForDeclarationValue=function(e,t){for(var r,n,i,o,s=this,a=e.getFullPropertyName(),c=this.cssDataManager.getProperty(a),l=e.getValue()||null;l&&l.hasChildren();)l=l.findChildAtOffset(this.offset,!1);if(this.completionParticipants.forEach((function(e){e.onCssPropertyValue&&e.onCssPropertyValue({propertyName:a,propertyValue:s.currentWord,range:s.getCompletionRange(l)})})),c){if(c.restrictions)for(var h=0,u=c.restrictions;h=e.offset+2&&this.getVariableProposals(null,t),t},qo.prototype.getVariableProposals=function(e,t){for(var r=0,n=this.getSymbolContext().findSymbolsAtOffset(this.offset,ie.Variable);r{var n=1,i=e.func.replace(/\[?\$(\w+)\]?/g,(function(e,t){return"${"+n+++":"+t+"}"}));r.items.push({label:e.func.substr(0,e.func.indexOf("(")),detail:e.func,documentation:e.desc,textEdit:Wi.replace(a.getCompletionRange(t),i),insertTextFormat:Wo,kind:ao.Function})})(l[c]);return r},qo.prototype.getPositionProposals=function(e,t,r){for(var n in ai)r.items.push({label:n,documentation:ai[n],textEdit:Wi.replace(this.getCompletionRange(t),n),kind:ao.Value});return r},qo.prototype.getRepeatStyleProposals=function(e,t,r){for(var n in ci)r.items.push({label:n,documentation:ci[n],textEdit:Wi.replace(this.getCompletionRange(t),n),kind:ao.Value});return r},qo.prototype.getLineStyleProposals=function(e,t,r){for(var n in li)r.items.push({label:n,documentation:li[n],textEdit:Wi.replace(this.getCompletionRange(t),n),kind:ao.Value});return r},qo.prototype.getLineWidthProposals=function(e,t,r){for(var n=0,i=hi;n=r.end?this.getCompletionForTopLevel(t):!r||this.offset<=r.offset?this.getCompletionsForSelector(e,e.isNested(),t):this.getCompletionsForDeclarations(e.getDeclarations(),t)},qo.prototype.getCompletionsForSelector=function(e,t,r){var n=this,i=this.findInNodePath(ne.PseudoSelector,ne.IdentifierSelector,ne.ClassSelector,ne.ElementNameSelector);if(!i&&this.hasCharacterAtPosition(this.offset-this.currentWord.length-1,":")&&(this.currentWord=":"+this.currentWord,this.hasCharacterAtPosition(this.offset-this.currentWord.length-1,":")&&(this.currentWord=":"+this.currentWord),this.defaultReplaceRange=Vi.create(Oi.create(this.position.line,this.position.character-this.currentWord.length),this.position)),this.cssDataManager.getPseudoClasses().forEach((function(e){var t=Qo(e.name);t={label:e.name,textEdit:Wi.replace(n.getCompletionRange(i),t),documentation:qn(e,n.doesSupportMarkdown()),tags:zo(e)?[lo.Deprecated]:[],kind:ao.Function,insertTextFormat:e.name!==t?Wo:void 0};Y(e.name,":-")&&(t.sortText=$o.VendorPrefixed),r.items.push(t)})),this.cssDataManager.getPseudoElements().forEach((function(e){var t=Qo(e.name);t={label:e.name,textEdit:Wi.replace(n.getCompletionRange(i),t),documentation:qn(e,n.doesSupportMarkdown()),tags:zo(e)?[lo.Deprecated]:[],kind:ao.Function,insertTextFormat:e.name!==t?Wo:void 0};Y(e.name,"::-")&&(t.sortText=$o.VendorPrefixed),r.items.push(t)})),!t){for(var o=0,s=vi;oe.colonPosition&&this.getVariableProposals(e.getValue(),t),t},qo.prototype.getCompletionsForExpression=function(e,t){var r=e.getParent();return r instanceof ot?(this.getCompletionsForFunctionArgument(r,r.getParent(),t),t):(r=e.findParent(ne.Declaration))?!(e=e.findChildAtOffset(this.offset,!0))||e instanceof Qr||e instanceof de?this.getCompletionsForDeclarationValue(r,t):t:(this.getTermProposals(void 0,null,t),t)},qo.prototype.getCompletionsForFunctionArgument=function(e,t,r){var n=t.getIdentifier();return n&&n.matches("var")&&(t.getArguments().hasChildren()&&t.getArguments().getChild(0)!==e||this.getVariableProposalsForCSSVarFunction(r)),r},qo.prototype.getCompletionsForFunctionDeclaration=function(e,t){return e=e.getDeclarations(),e&&this.offset>e.offset&&this.offsete.lParent&&(!Ci(e.rParent)||this.offset<=e.rParent)?this.getCompletionsForDeclarationProperty(null,t):t},qo.prototype.getCompletionsForSupports=function(e,t){var r=e.getDeclarations();return!r||this.offset<=r.offset?(r=e.findFirstChildBeforeOffset(this.offset))instanceof xr?this.getCompletionsForSupportsCondition(r,t):t:this.getCompletionForTopLevel(t)},qo.prototype.getCompletionsForExtendsReference=function(e,t,r){return r},qo.prototype.getCompletionForUriLiteralValue=function(e,t){var r,n,i,o;return o=e.hasChildren()?(i=e.getChild(0),r=i.getText(),n=this.position,this.getCompletionRange(i)):(r="",n=this.position,i=this.textDocument.positionAt(e.offset+"url(".length),Vi.create(i,i)),this.completionParticipants.forEach((function(e){e.onCssURILiteralValue&&e.onCssURILiteralValue({uriValue:r,position:n,range:o})})),t},qo.prototype.getCompletionForImportPath=function(e,t){var r=this;return this.completionParticipants.forEach((function(t){t.onCssImportPath&&t.onCssImportPath({pathValue:e.getText(),position:r.position,range:r.getCompletionRange(e)})})),t},qo.prototype.hasCharacterAtPosition=function(e,t){var r=this.textDocument.getText();return 0<=e&&e"),this.writeLine(t,n.join(""))}};var ls;function hs(e){this.quote=e,this.result=[]}function us(e){var t=e.match(/^['"](.*)["']$/);return t?t[1]:e}(q=ls=ls||{}).ensure=function(e,t){return t+us(e)+t},q.remove=us;function ps(e,t){for(var r=new ts,n=0,i=e.getChildren();ni[0]&&c[1]{var r=si(e);return r?(e=ks(e,t),{color:r,range:e}):null})(t,e),t&&r.push(t),!0})),r},Cs.prototype.getColorPresentations=function(e,t,r,n){var i=[],o=Math.round(255*r.red),s=Math.round(255*r.green),a=Math.round(255*r.blue),c=1===r.alpha?"rgb("+o+", "+s+", "+a+")":"rgba("+o+", "+s+", "+a+", "+r.alpha+")";i.push({label:c,textEdit:Wi.replace(n,c)}),c=1===r.alpha?"#"+ws(o)+ws(s)+ws(a):"#"+ws(o)+ws(s)+ws(a)+ws(Math.round(255*r.alpha)),i.push({label:c,textEdit:Wi.replace(n,c)}),o=(e=>{var t=e.red,r=e.green,n=e.blue,i=(e=e.alpha,Math.max(t,r,n)),o=Math.min(t,r,n),s=0,a=0,c=(o+i)/2,l=i-o;if(0{switch(e){case"ignore":return On.Ignore;case"warning":return On.Warning;case"error":return On.Error}return null})(this.conf[e.id]);if(t)return t}return e.defaultValue},Ts.prototype.getSetting=function(e){return this.conf[e.id]};function Ts(e){this.conf=e=void 0===e?{}:e}var Fs=function(e){this.fullPropertyName=e.getFullPropertyName().toLowerCase(),this.node=e};function Ms(e,t,r,n){e=e[t],(e.value=r)&&!_i(e.properties,n)&&e.properties.push(n)}function Os(e,t,r,n){"top"===t||"right"===t||"bottom"===t||"left"===t?Ms(e,t,r,n):(Ms(t=e,"top",e=r,r=n),Ms(t,"right",e,r),Ms(t,"bottom",e,r),Ms(t,"left",e,r))}function Vs(e,t,r){switch(t.length){case 1:Os(e,void 0,t[0],r);break;case 2:Os(e,"top",t[0],r),Os(e,"bottom",t[0],r),Os(e,"right",t[1],r),Os(e,"left",t[1],r);break;case 3:Os(e,"top",t[0],r),Os(e,"right",t[1],r),Os(e,"left",t[1],r),Os(e,"bottom",t[2],r);break;case 4:Os(e,"top",t[0],r),Os(e,"right",t[1],r),Os(e,"bottom",t[2],r),Os(e,"left",t[3],r)}}function Ls(e,t){for(var r=0,n=t;r{if(1===(e=e.getChildren()).length)return Ns(t=e[0])&&js(t);for(var t,r=0,n=e;r(void 0===t&&(t=!0),e.map((function(e){return js(e,t)}))))(o.getChildren(),!0),i)}break;case"padding":1===s.length?Vs(t,$s(o.getChildren(),!0),i):Os(t,s[1],Ns(o,!0),i)}}}return t}var Us=Bn,Ws=(Ks.prototype.add=function(e,t,r){var n=this.data[e];n||(this.data[e]=n={nodes:[],names:[]}),n.names.push(t),r&&n.nodes.push(r)},Ks);function Ks(){this.data={}}qs.entries=function(e,t,r,n,i){return t=new qs(t,r,n),e.acceptVisitor(t),t.completeValidations(),t.getEntries(i)},qs.prototype.isValidPropertyDeclaration=function(e){return e=e.fullPropertyName,this.validProperties[e]},qs.prototype.fetch=function(e,t){for(var r=[],n=0,i=e;n")||this.peekDelim("<")||this.peekIdent("and")||this.peekIdent("or")||this.peekDelim("%")?(e=this.createNode(ne.Operator),this.consumeToken(),this.finish(e)):ya.prototype._parseOperator.call(this)},xa.prototype._parseUnaryOperator=function(){var e;return this.peekIdent("not")?(e=this.create(ae),this.consumeToken(),this.finish(e)):ya.prototype._parseUnaryOperator.call(this)},xa.prototype._parseRuleSetDeclaration=function(){return this.peek(n.AtKeyword)?this._parseKeyframe()||this._parseImport()||this._parseMedia(!0)||this._parseFontFace()||this._parseWarnAndDebug()||this._parseControlStatement()||this._parseFunctionDeclaration()||this._parseExtends()||this._parseMixinReference()||this._parseMixinContent()||this._parseMixinDeclaration()||this._parseRuleset(!0)||this._parseSupports(!0)||ya.prototype._parseRuleSetDeclarationAtStatement.call(this):this._parseVariableDeclaration()||this._tryParseRuleset(!0)||ya.prototype._parseRuleSetDeclaration.call(this)},xa.prototype._parseDeclaration=function(e){var t=this._tryParseCustomPropertyDeclaration(e);if(t)return t;if(t=this.create(Ue),!t.setProperty(this._parseProperty()))return null;if(!this.accept(n.Colon))return this.finish(t,Un.ColonExpected,[n.Colon],e||[n.SemiColon]);if(this.prevToken&&(t.colonPosition=this.prevToken.offset),e=!1,t.setValue(this._parseExpr())&&(e=!0,t.addChild(this._parsePrio())),this.peek(n.CurlyL))t.setNestedProperties(this._parseNestedProperties());else if(!e)return this.finish(t,Un.PropertyValueExpected);return this.peek(n.SemiColon)&&(t.semicolonPosition=this.token.offset),this.finish(t)},xa.prototype._parseNestedProperties=function(){var e=this.create(Tt);return this._parseBody(e,this._parseDeclaration.bind(this))},xa.prototype._parseExtends=function(){if(this.peekKeyword("@extend")){var e=this.create(cn);if(this.consumeToken(),!e.getSelectors().addChild(this._parseSimpleSelector()))return this.finish(e,Un.SelectorExpected);for(;this.accept(n.Comma);)e.getSelectors().addChild(this._parseSimpleSelector());return this.accept(n.Exclamation)&&!this.acceptIdent("optional")?this.finish(e,Un.UnknownKeyword):this.finish(e)}return null},xa.prototype._parseSimpleSelectorBody=function(){return this._parseSelectorCombinator()||this._parseSelectorPlaceholder()||ya.prototype._parseSimpleSelectorBody.call(this)},xa.prototype._parseSelectorCombinator=function(){if(this.peekDelim("&")){var e=this.createNode(ne.SelectorCombinator);for(this.consumeToken();!this.hasWhitespace()&&(this.acceptDelim("-")||this.accept(n.Num)||this.accept(n.Dimension)||e.addChild(this._parseIdent())||this.acceptDelim("&")););return this.finish(e)}return null},xa.prototype._parseSelectorPlaceholder=function(){var e;return this.peekDelim("%")?(e=this.createNode(ne.SelectorPlaceholder),this.consumeToken(),this._parseIdent(),this.finish(e)):this.peekKeyword("@at-root")?(e=this.createNode(ne.SelectorPlaceholder),this.consumeToken(),this.finish(e)):null},xa.prototype._parseElementName=function(){var e=this.mark(),t=ya.prototype._parseElementName.call(this);return t&&!this.hasWhitespace()&&this.peek(n.ParenthesisL)?(this.restoreAtMark(e),null):t},xa.prototype._tryParsePseudoIdentifier=function(){return this._parseInterpolation()||ya.prototype._tryParsePseudoIdentifier.call(this)},xa.prototype._parseWarnAndDebug=function(){var e;return this.peekKeyword("@debug")||this.peekKeyword("@warn")||this.peekKeyword("@error")?(e=this.createNode(ne.Debug),this.consumeToken(),e.addChild(this._parseExpr()),this.finish(e)):null},xa.prototype._parseControlStatement=function(e){return void 0===e&&(e=this._parseRuleSetDeclaration.bind(this)),this.peek(n.AtKeyword)?this._parseIfStatement(e)||this._parseForStatement(e)||this._parseEachStatement(e)||this._parseWhileStatement(e):null},xa.prototype._parseIfStatement=function(e){return this.peekKeyword("@if")?this._internalParseIfStatement(e):null},xa.prototype._internalParseIfStatement=function(e){var t,r=this.create(ct);return this.consumeToken(),r.setExpression(this._parseExpr(!0))?(this._parseBody(r,e),this.acceptKeyword("@else")&&(this.peekIdent("if")?r.setElseClause(this._internalParseIfStatement(e)):this.peek(n.CurlyL)&&(t=this.create(xt),this._parseBody(t,e),r.setElseClause(t))),this.finish(r)):this.finish(r,Un.ExpressionExpected)},xa.prototype._parseForStatement=function(e){var t;return this.peekKeyword("@for")?(t=this.create(ut),this.consumeToken(),t.setVariable(this._parseVariable())?this.acceptIdent("from")?t.addChild(this._parseBinaryExpr())?this.acceptIdent("to")||this.acceptIdent("through")?t.addChild(this._parseBinaryExpr())?this._parseBody(t,e):this.finish(t,Un.ExpressionExpected,[n.CurlyR]):this.finish(t,ba.ThroughOrToExpected,[n.CurlyR]):this.finish(t,Un.ExpressionExpected,[n.CurlyR]):this.finish(t,ba.FromExpected,[n.CurlyR]):this.finish(t,Un.VariableNameExpected,[n.CurlyR])):null},xa.prototype._parseEachStatement=function(e){if(!this.peekKeyword("@each"))return null;var t=this.create(ft),r=(this.consumeToken(),t.getVariables());if(!r.addChild(this._parseVariable()))return this.finish(t,Un.VariableNameExpected,[n.CurlyR]);for(;this.accept(n.Comma);)if(!r.addChild(this._parseVariable()))return this.finish(t,Un.VariableNameExpected,[n.CurlyR]);return this.finish(r),this.acceptIdent("in")?t.addChild(this._parseExpr())?this._parseBody(t,e):this.finish(t,Un.ExpressionExpected,[n.CurlyR]):this.finish(t,ba.InExpected,[n.CurlyR])},xa.prototype._parseWhileStatement=function(e){var t;return this.peekKeyword("@while")?(t=this.create(yt),this.consumeToken(),t.addChild(this._parseBinaryExpr())?this._parseBody(t,e):this.finish(t,Un.ExpressionExpected,[n.CurlyR])):null},xa.prototype._parseFunctionBodyDeclaration=function(){return this._parseVariableDeclaration()||this._parseReturnStatement()||this._parseWarnAndDebug()||this._parseControlStatement(this._parseFunctionBodyDeclaration.bind(this))},xa.prototype._parseFunctionDeclaration=function(){if(!this.peekKeyword("@function"))return null;var e=this.create(_t);if(this.consumeToken(),!e.setIdentifier(this._parseIdent([ie.Function])))return this.finish(e,Un.IdentifierExpected,[n.CurlyR]);if(!this.accept(n.ParenthesisL))return this.finish(e,Un.LeftParenthesisExpected,[n.CurlyR]);if(e.getParameters().addChild(this._parseParameterDeclaration()))for(;this.accept(n.Comma)&&!this.peek(n.ParenthesisR);)if(!e.getParameters().addChild(this._parseParameterDeclaration()))return this.finish(e,Un.VariableNameExpected);return this.accept(n.ParenthesisR)?this._parseBody(e,this._parseFunctionBodyDeclaration.bind(this)):this.finish(e,Un.RightParenthesisExpected,[n.CurlyR])},xa.prototype._parseReturnStatement=function(){var e;return this.peekKeyword("@return")?(e=this.createNode(ne.ReturnStatement),this.consumeToken(),e.addChild(this._parseExpr())?this.finish(e):this.finish(e,Un.ExpressionExpected)):null},xa.prototype._parseMixinDeclaration=function(){if(!this.peekKeyword("@mixin"))return null;var e=this.create(xn);if(this.consumeToken(),!e.setIdentifier(this._parseIdent([ie.Mixin])))return this.finish(e,Un.IdentifierExpected,[n.CurlyR]);if(this.accept(n.ParenthesisL)){if(e.getParameters().addChild(this._parseParameterDeclaration()))for(;this.accept(n.Comma)&&!this.peek(n.ParenthesisR);)if(!e.getParameters().addChild(this._parseParameterDeclaration()))return this.finish(e,Un.VariableNameExpected);if(!this.accept(n.ParenthesisR))return this.finish(e,Un.RightParenthesisExpected,[n.CurlyR])}return this._parseBody(e,this._parseRuleSetDeclaration.bind(this))},xa.prototype._parseParameterDeclaration=function(){var e=this.create(rt);return e.setIdentifier(this._parseVariable())?(this.accept(da),this.accept(n.Colon)&&!e.setDefaultValue(this._parseExpr(!0))?this.finish(e,Un.VariableValueExpected,[],[n.Comma,n.ParenthesisR]):this.finish(e)):null},xa.prototype._parseMixinContent=function(){if(!this.peekKeyword("@content"))return null;var e=this.create(un);if(this.consumeToken(),this.accept(n.ParenthesisL)){if(e.getArguments().addChild(this._parseFunctionArgument()))for(;this.accept(n.Comma)&&!this.peek(n.ParenthesisR);)if(!e.getArguments().addChild(this._parseFunctionArgument()))return this.finish(e,Un.ExpressionExpected);if(!this.accept(n.ParenthesisR))return this.finish(e,Un.RightParenthesisExpected)}return this.finish(e)},xa.prototype._parseMixinReference=function(){if(!this.peekKeyword("@include"))return null;var e=this.create(yn),t=(this.consumeToken(),this._parseIdent([ie.Mixin]));if(!e.setIdentifier(t))return this.finish(e,Un.IdentifierExpected,[n.CurlyR]);if(!this.hasWhitespace()&&this.acceptDelim(".")&&!this.hasWhitespace()){var r=this._parseIdent([ie.Mixin]);if(!r)return this.finish(e,Un.IdentifierExpected,[n.CurlyR]);var i=this.create(Vn);t.referenceTypes=[ie.Module],i.setIdentifier(t),e.setIdentifier(r),e.addChild(i)}if(this.accept(n.ParenthesisL)){if(e.getArguments().addChild(this._parseFunctionArgument()))for(;this.accept(n.Comma)&&!this.peek(n.ParenthesisR);)if(!e.getArguments().addChild(this._parseFunctionArgument()))return this.finish(e,Un.ExpressionExpected);if(!this.accept(n.ParenthesisR))return this.finish(e,Un.RightParenthesisExpected)}return(this.peekIdent("using")||this.peek(n.CurlyL))&&e.setContent(this._parseMixinContentDeclaration()),this.finish(e)},xa.prototype._parseMixinContentDeclaration=function(){var e=this.create(fn);if(this.acceptIdent("using")){if(!this.accept(n.ParenthesisL))return this.finish(e,Un.LeftParenthesisExpected,[n.CurlyL]);if(e.getParameters().addChild(this._parseParameterDeclaration()))for(;this.accept(n.Comma)&&!this.peek(n.ParenthesisR);)if(!e.getParameters().addChild(this._parseParameterDeclaration()))return this.finish(e,Un.VariableNameExpected);if(!this.accept(n.ParenthesisR))return this.finish(e,Un.RightParenthesisExpected,[n.CurlyL])}return this.peek(n.CurlyL)&&this._parseBody(e,this._parseMixinReferenceBodyStatement.bind(this)),this.finish(e)},xa.prototype._parseMixinReferenceBodyStatement=function(){return this._tryParseKeyframeSelector()||this._parseRuleSetDeclaration()},xa.prototype._parseFunctionArgument=function(){var e=this.create(ot),t=this.mark(),r=this._parseVariable();if(r)if(this.accept(n.Colon))e.setIdentifier(r);else{if(this.accept(da))return e.setValue(r),this.finish(e);this.restoreAtMark(t)}return e.setValue(this._parseExpr(!0))?(this.accept(da),e.addChild(this._parsePrio()),this.finish(e)):e.setValue(this._tryParsePrio())?this.finish(e):null},xa.prototype._parseURLArgument=function(){var e=this.mark(),t=ya.prototype._parseURLArgument.call(this);return t&&this.peek(n.ParenthesisR)?t:(this.restoreAtMark(e),(t=this.create(ae)).addChild(this._parseBinaryExpr()),this.finish(t))},xa.prototype._parseOperation=function(){if(!this.peek(n.ParenthesisL))return null;var e=this.create(ae);for(this.consumeToken();e.addChild(this._parseListElement());)this.accept(n.Comma);return this.accept(n.ParenthesisR)?this.finish(e):this.finish(e,Un.RightParenthesisExpected)},xa.prototype._parseListElement=function(){var e=this.create(Sn),t=this._parseBinaryExpr();if(!t)return null;if(this.accept(n.Colon)){if(e.setKey(t),!e.setValue(this._parseBinaryExpr()))return this.finish(e,Un.ExpressionExpected)}else e.setValue(t);return this.finish(e)},xa.prototype._parseUse=function(){if(!this.peekKeyword("@use"))return null;var e=this.create(Kt);if(this.consumeToken(),!e.addChild(this._parseStringLiteral()))return this.finish(e,Un.StringLiteralExpected);if(!this.peek(n.SemiColon)&&!this.peek(n.EOF)){if(!this.peekRegExp(n.Ident,/as|with/))return this.finish(e,Un.UnknownKeyword);if(this.acceptIdent("as")&&!e.setIdentifier(this._parseIdent([ie.Module]))&&!this.acceptDelim("*"))return this.finish(e,Un.IdentifierOrWildcardExpected);if(this.acceptIdent("with")){if(!this.accept(n.ParenthesisL))return this.finish(e,Un.LeftParenthesisExpected,[n.ParenthesisR]);if(!e.getParameters().addChild(this._parseModuleConfigDeclaration()))return this.finish(e,Un.VariableNameExpected);for(;this.accept(n.Comma)&&!this.peek(n.ParenthesisR);)if(!e.getParameters().addChild(this._parseModuleConfigDeclaration()))return this.finish(e,Un.VariableNameExpected);if(!this.accept(n.ParenthesisR))return this.finish(e,Un.RightParenthesisExpected)}}return this.accept(n.SemiColon)||this.accept(n.EOF)?this.finish(e):this.finish(e,Un.SemiColonExpected)},xa.prototype._parseModuleConfigDeclaration=function(){var e=this.create(Ht);return e.setIdentifier(this._parseVariable())?this.accept(n.Colon)&&e.setValue(this._parseExpr(!0))?!this.accept(n.Exclamation)||!this.hasWhitespace()&&this.acceptIdent("default")?this.finish(e):this.finish(e,Un.UnknownKeyword):this.finish(e,Un.VariableValueExpected,[],[n.Comma,n.ParenthesisR]):null},xa.prototype._parseForward=function(){if(!this.peekKeyword("@forward"))return null;var e=this.create(Jt);if(this.consumeToken(),!e.addChild(this._parseStringLiteral()))return this.finish(e,Un.StringLiteralExpected);if(this.acceptIdent("with")){if(!this.accept(n.ParenthesisL))return this.finish(e,Un.LeftParenthesisExpected,[n.ParenthesisR]);if(!e.getParameters().addChild(this._parseModuleConfigDeclaration()))return this.finish(e,Un.VariableNameExpected);for(;this.accept(n.Comma)&&!this.peek(n.ParenthesisR);)if(!e.getParameters().addChild(this._parseModuleConfigDeclaration()))return this.finish(e,Un.VariableNameExpected);if(!this.accept(n.ParenthesisR))return this.finish(e,Un.RightParenthesisExpected)}if(!this.peek(n.SemiColon)&&!this.peek(n.EOF)){if(!this.peekRegExp(n.Ident,/as|hide|show/))return this.finish(e,Un.UnknownKeyword);if(this.acceptIdent("as")){var t=this._parseIdent([ie.Forward]);if(!e.setIdentifier(t))return this.finish(e,Un.IdentifierExpected);if(this.hasWhitespace()||!this.acceptDelim("*"))return this.finish(e,Un.WildcardExpected)}if((this.peekIdent("hide")||this.peekIdent("show"))&&!e.addChild(this._parseForwardVisibility()))return this.finish(e,Un.IdentifierOrVariableExpected)}return this.accept(n.SemiColon)||this.accept(n.EOF)?this.finish(e):this.finish(e,Un.SemiColonExpected)},xa.prototype._parseForwardVisibility=function(){var e=this.create(Yt);for(e.setIdentifier(this._parseIdent());e.addChild(this._parseVariable()||this._parseIdent());)this.accept(n.Comma);return 1")?(e=this.createNode(ne.Operator),this.consumeToken(),this.acceptDelim("="),e):this.peekDelim("=")?(e=this.createNode(ne.Operator),this.consumeToken(),this.acceptDelim("<"),e):this.peekDelim("<")?(e=this.createNode(ne.Operator),this.consumeToken(),this.acceptDelim("="),e):null},Na.prototype._parseRuleSetDeclaration=function(){return this.peek(n.AtKeyword)?this._parseKeyframe()||this._parseMedia(!0)||this._parseImport()||this._parseSupports(!0)||this._parseDetachedRuleSetMixin()||this._parseVariableDeclaration()||Ra.prototype._parseRuleSetDeclarationAtStatement.call(this):this._tryParseMixinDeclaration()||this._tryParseRuleset(!0)||this._tryParseMixinReference()||this._parseFunction()||this._parseExtend()||Ra.prototype._parseRuleSetDeclaration.call(this)},Na.prototype._parseKeyframeIdent=function(){return this._parseIdent([ie.Keyframe])||this._parseVariable()},Na.prototype._parseKeyframeSelector=function(){return this._parseDetachedRuleSetMixin()||Ra.prototype._parseKeyframeSelector.call(this)},Na.prototype._parseSimpleSelectorBody=function(){return this._parseSelectorCombinator()||Ra.prototype._parseSimpleSelectorBody.call(this)},Na.prototype._parseSelector=function(e){var t=this.create(Re),r=!1;for(e&&(r=t.addChild(this._parseCombinator()));t.addChild(this._parseSimpleSelector());){r=!0;var i=this.mark();if(t.addChild(this._parseGuard())&&this.peek(n.CurlyL))break;this.restoreAtMark(i),t.addChild(this._parseCombinator())}return r?this.finish(t):null},Na.prototype._parseSelectorCombinator=function(){if(this.peekDelim("&")){var e=this.createNode(ne.SelectorCombinator);for(this.consumeToken();!this.hasWhitespace()&&(this.acceptDelim("-")||this.accept(n.Num)||this.accept(n.Dimension)||e.addChild(this._parseIdent())||this.acceptDelim("&")););return this.finish(e)}return null},Na.prototype._parseSelectorIdent=function(){var e;return this.peekInterpolatedIdent()&&(e=this.createNode(ne.SelectorInterpolation),this._acceptInterpolatedIdent(e))?this.finish(e):null},Na.prototype._parsePropertyIdentifier=function(e){void 0===e&&(e=!1);var t,r,n=/^[\w-]+/;return this.peekInterpolatedIdent()||this.peekRegExp(this.token.type,n)?(t=this.mark(),(r=this.create(de)).isCustomProperty=this.acceptDelim("-")&&this.acceptDelim("-"),(e?r.isCustomProperty?r.addChild(this._parseIdent()):r.addChild(this._parseRegexp(n)):r.isCustomProperty?this._acceptInterpolatedIdent(r):this._acceptInterpolatedIdent(r,n))?(e||this.hasWhitespace()||(this.acceptDelim("+"),this.hasWhitespace())||this.acceptIdent("_"),this.finish(r)):(this.restoreAtMark(t),null)):null},Na.prototype.peekInterpolatedIdent=function(){return this.peek(n.Ident)||this.peekDelim("@")||this.peekDelim("$")||this.peekDelim("-")},Na.prototype._acceptInterpolatedIdent=function(e,t){for(var r=this,i=!1,o=function(){var e=r.mark();return r.acceptDelim("-")&&(r.hasWhitespace()||r.acceptDelim("-"),r.hasWhitespace())?(r.restoreAtMark(e),null):r._parseInterpolation()},s=t?function(){return r.acceptRegexp(t)}:function(){return r.accept(n.Ident)};(s()||e.addChild(this._parseInterpolation()||this.try(o)))&&(i=!0,!this.hasWhitespace()););return i},Na.prototype._parseInterpolation=function(){var e,t=this.mark();return this.peekDelim("@")||this.peekDelim("$")?(e=this.createNode(ne.Interpolation),this.consumeToken(),this.hasWhitespace()||!this.accept(n.CurlyL)?(this.restoreAtMark(t),null):e.addChild(this._parseIdent())?this.accept(n.CurlyR)?this.finish(e):this.finish(e,Un.RightCurlyExpected):this.finish(e,Un.IdentifierExpected)):null},Na.prototype._tryParseMixinDeclaration=function(){var e=this.mark(),t=this.create(xn);if(!t.setIdentifier(this._parseMixinDeclarationIdentifier())||!this.accept(n.ParenthesisL))return this.restoreAtMark(e),null;if(t.getParameters().addChild(this._parseMixinParameter()))for(;(this.accept(n.Comma)||this.accept(n.SemiColon))&&!this.peek(n.ParenthesisR);)t.getParameters().addChild(this._parseMixinParameter())||this.markError(t,Un.IdentifierExpected,[],[n.ParenthesisR]);return this.accept(n.ParenthesisR)&&(t.setGuard(this._parseGuard()),this.peek(n.CurlyL))?this._parseBody(t,this._parseMixInBodyDeclaration.bind(this)):(this.restoreAtMark(e),null)},Na.prototype._parseMixInBodyDeclaration=function(){return this._parseFontFace()||this._parseRuleSetDeclaration()},Na.prototype._parseMixinDeclarationIdentifier=function(){var e;if(this.peekDelim("#")||this.peekDelim(".")){if(e=this.create(de),this.consumeToken(),this.hasWhitespace()||!e.addChild(this._parseIdent()))return null}else{if(!this.peek(n.Hash))return null;e=this.create(de),this.consumeToken()}return e.referenceTypes=[ie.Mixin],this.finish(e)},Na.prototype._parsePseudo=function(){var e,t;return this.peek(n.Colon)?(e=this.mark(),t=this.create(cn),this.consumeToken(),this.acceptIdent("extend")?this._completeExtends(t):(this.restoreAtMark(e),Ra.prototype._parsePseudo.call(this))):null},Na.prototype._parseExtend=function(){var e,t;return this.peekDelim("&")?(e=this.mark(),t=this.create(cn),this.consumeToken(),!this.hasWhitespace()&&this.accept(n.Colon)&&this.acceptIdent("extend")?this._completeExtends(t):(this.restoreAtMark(e),null)):null},Na.prototype._completeExtends=function(e){if(!this.accept(n.ParenthesisL))return this.finish(e,Un.LeftParenthesisExpected);var t=e.getSelectors();if(!t.addChild(this._parseSelector(!0)))return this.finish(e,Un.SelectorExpected);for(;this.accept(n.Comma);)if(!t.addChild(this._parseSelector(!0)))return this.finish(e,Un.SelectorExpected);return this.accept(n.ParenthesisR)?this.finish(e):this.finish(e,Un.RightParenthesisExpected)},Na.prototype._parseDetachedRuleSetMixin=function(){var e,t;return this.peek(n.AtKeyword)?(e=this.mark(),!(t=this.create(yn)).addChild(this._parseVariable(!0))||!this.hasWhitespace()&&this.accept(n.ParenthesisL)?this.accept(n.ParenthesisR)?this.finish(t):this.finish(t,Un.RightParenthesisExpected):(this.restoreAtMark(e),null)):null},Na.prototype._tryParseMixinReference=function(e){void 0===e&&(e=!0);for(var t=this.mark(),r=this.create(yn),i=this._parseMixinDeclarationIdentifier();i;){this.acceptDelim(">");var o=this._parseMixinDeclarationIdentifier();if(!o)break;r.getNamespaces().addChild(i),i=o}if(!r.setIdentifier(i))return this.restoreAtMark(t),null;var s=!1;if(this.accept(n.ParenthesisL)){if(s=!0,r.getArguments().addChild(this._parseMixinArgument()))for(;(this.accept(n.Comma)||this.accept(n.SemiColon))&&!this.peek(n.ParenthesisR);)if(!r.getArguments().addChild(this._parseMixinArgument()))return this.finish(r,Un.ExpressionExpected);if(!this.accept(n.ParenthesisR))return this.finish(r,Un.RightParenthesisExpected);i.referenceTypes=[ie.Mixin]}else i.referenceTypes=[ie.Mixin,ie.Rule];return this.peek(n.BracketL)?e||this._addLookupChildren(r):r.addChild(this._parsePrio()),s||this.peek(n.SemiColon)||this.peek(n.CurlyR)||this.peek(n.EOF)?this.finish(r):(this.restoreAtMark(t),null)},Na.prototype._parseMixinArgument=function(){var e=this.create(ot),t=this.mark(),r=this._parseVariable();return r&&(this.accept(n.Colon)?e.setIdentifier(r):this.restoreAtMark(t)),e.setValue(this._parseDetachedRuleSet()||this._parseExpr(!0))?this.finish(e):(this.restoreAtMark(t),null)},Na.prototype._parseMixinParameter=function(){var e,t=this.create(rt);return this.peekKeyword("@rest")?(e=this.create(ae),this.consumeToken(),this.accept(Oa)?(t.setIdentifier(this.finish(e)),this.finish(t)):this.finish(t,Un.DotExpected,[],[n.Comma,n.ParenthesisR])):this.peek(Oa)?(e=this.create(ae),this.consumeToken(),t.setIdentifier(this.finish(e)),this.finish(t)):(e=!1,t.setIdentifier(this._parseVariable())&&(this.accept(n.Colon),e=!0),t.setDefaultValue(this._parseDetachedRuleSet()||this._parseExpr(!0))||e?this.finish(t):null)},Na.prototype._parseGuard=function(){if(!this.peekIdent("when"))return null;var e=this.create(In);if(this.consumeToken(),e.isNegated=this.acceptIdent("not"),!e.getConditions().addChild(this._parseGuardCondition()))return this.finish(e,Un.ConditionExpected);for(;this.acceptIdent("and")||this.accept(n.Comma);)if(!e.getConditions().addChild(this._parseGuardCondition()))return this.finish(e,Un.ConditionExpected);return this.finish(e)},Na.prototype._parseGuardCondition=function(){var e;return this.peek(n.ParenthesisL)?(e=this.create(Tn),this.consumeToken(),e.addChild(this._parseExpr()),this.accept(n.ParenthesisR)?this.finish(e):this.finish(e,Un.RightParenthesisExpected)):null},Na.prototype._parseFunction=function(){var e=this.mark(),t=this.create(Ye);if(!t.setIdentifier(this._parseFunctionIdentifier()))return null;if(this.hasWhitespace()||!this.accept(n.ParenthesisL))return this.restoreAtMark(e),null;if(t.getArguments().addChild(this._parseMixinArgument()))for(;(this.accept(n.Comma)||this.accept(n.SemiColon))&&!this.peek(n.ParenthesisR);)if(!t.getArguments().addChild(this._parseMixinArgument()))return this.finish(t,Un.ExpressionExpected);return this.accept(n.ParenthesisR)?this.finish(t):this.finish(t,Un.RightParenthesisExpected)},Na.prototype._parseFunctionIdentifier=function(){var e;return this.peekDelim("%")?((e=this.create(de)).referenceTypes=[ie.Function],this.consumeToken(),this.finish(e)):Ra.prototype._parseFunctionIdentifier.call(this)},Na.prototype._parseURLArgument=function(){var e=this.mark(),t=Ra.prototype._parseURLArgument.call(this);return t&&this.peek(n.ParenthesisR)?t:(this.restoreAtMark(e),(t=this.create(ae)).addChild(this._parseBinaryExpr()),this.finish(t))},$a=function(e,t){return($a=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}))(e,t)};var $a,ja;es=Bn;function Ba(e,t){return ja.call(this,"@",e,t)||this}(function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}$a(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)})(Ba,ja=Ko),Ba.prototype.createFunctionProposals=function(e,t,r,n){for(var i=0,o=e;i 50%"),example:"percentage(@number);",type:"percentage"},{name:"round",description:es("less.builtin.round","rounds a number to a number of places"),example:"round(number, [places: 0]);"},{name:"sqrt",description:es("less.builtin.sqrt","calculates square root of a number"),example:"sqrt(number);"},{name:"sin",description:es("less.builtin.sin","sine function"),example:"sin(number);"},{name:"tan",description:es("less.builtin.tan","tangent function"),example:"tan(number);"},{name:"atan",description:es("less.builtin.atan","arctangent - inverse of tangent function"),example:"atan(number);"},{name:"pi",description:es("less.builtin.pi","returns pi"),example:"pi();"},{name:"pow",description:es("less.builtin.pow","first argument raised to the power of the second argument"),example:"pow(@base, @exponent);"},{name:"mod",description:es("less.builtin.mod","first argument modulus second argument"),example:"mod(number, number);"},{name:"min",description:es("less.builtin.min","returns the lowest of one or more values"),example:"min(@x, @y);"},{name:"max",description:es("less.builtin.max","returns the lowest of one or more values"),example:"max(@x, @y);"}],Ba.colorProposals=[{name:"argb",example:"argb(@color);",description:es("less.builtin.argb","creates a #AARRGGBB")},{name:"hsl",example:"hsl(@hue, @saturation, @lightness);",description:es("less.builtin.hsl","creates a color")},{name:"hsla",example:"hsla(@hue, @saturation, @lightness, @alpha);",description:es("less.builtin.hsla","creates a color")},{name:"hsv",example:"hsv(@hue, @saturation, @value);",description:es("less.builtin.hsv","creates a color")},{name:"hsva",example:"hsva(@hue, @saturation, @value, @alpha);",description:es("less.builtin.hsva","creates a color")},{name:"hue",example:"hue(@color);",description:es("less.builtin.hue","returns the `hue` channel of `@color` in the HSL space")},{name:"saturation",example:"saturation(@color);",description:es("less.builtin.saturation","returns the `saturation` channel of `@color` in the HSL space")},{name:"lightness",example:"lightness(@color);",description:es("less.builtin.lightness","returns the `lightness` channel of `@color` in the HSL space")},{name:"hsvhue",example:"hsvhue(@color);",description:es("less.builtin.hsvhue","returns the `hue` channel of `@color` in the HSV space")},{name:"hsvsaturation",example:"hsvsaturation(@color);",description:es("less.builtin.hsvsaturation","returns the `saturation` channel of `@color` in the HSV space")},{name:"hsvvalue",example:"hsvvalue(@color);",description:es("less.builtin.hsvvalue","returns the `value` channel of `@color` in the HSV space")},{name:"red",example:"red(@color);",description:es("less.builtin.red","returns the `red` channel of `@color`")},{name:"green",example:"green(@color);",description:es("less.builtin.green","returns the `green` channel of `@color`")},{name:"blue",example:"blue(@color);",description:es("less.builtin.blue","returns the `blue` channel of `@color`")},{name:"alpha",example:"alpha(@color);",description:es("less.builtin.alpha","returns the `alpha` channel of `@color`")},{name:"luma",example:"luma(@color);",description:es("less.builtin.luma","returns the `luma` value (perceptual brightness) of `@color`")},{name:"saturate",example:"saturate(@color, 10%);",description:es("less.builtin.saturate","return `@color` 10% points more saturated")},{name:"desaturate",example:"desaturate(@color, 10%);",description:es("less.builtin.desaturate","return `@color` 10% points less saturated")},{name:"lighten",example:"lighten(@color, 10%);",description:es("less.builtin.lighten","return `@color` 10% points lighter")},{name:"darken",example:"darken(@color, 10%);",description:es("less.builtin.darken","return `@color` 10% points darker")},{name:"fadein",example:"fadein(@color, 10%);",description:es("less.builtin.fadein","return `@color` 10% points less transparent")},{name:"fadeout",example:"fadeout(@color, 10%);",description:es("less.builtin.fadeout","return `@color` 10% points more transparent")},{name:"fade",example:"fade(@color, 50%);",description:es("less.builtin.fade","return `@color` with 50% transparency")},{name:"spin",example:"spin(@color, 10);",description:es("less.builtin.spin","return `@color` with a 10 degree larger in hue")},{name:"mix",example:"mix(@color1, @color2, [@weight: 50%]);",description:es("less.builtin.mix","return a mix of `@color1` and `@color2`")},{name:"greyscale",example:"greyscale(@color);",description:es("less.builtin.greyscale","returns a grey, 100% desaturated color")},{name:"contrast",example:"contrast(@color1, [@darkcolor: black], [@lightcolor: white], [@threshold: 43%]);",description:es("less.builtin.contrast","return `@darkcolor` if `@color1 is> 43% luma` otherwise return `@lightcolor`, see notes")},{name:"multiply",example:"multiply(@color1, @color2);"},{name:"screen",example:"screen(@color1, @color2);"},{name:"overlay",example:"overlay(@color1, @color2);"},{name:"softlight",example:"softlight(@color1, @color2);"},{name:"hardlight",example:"hardlight(@color1, @color2);"},{name:"difference",example:"difference(@color1, @color2);"},{name:"exclusion",example:"exclusion(@color1, @color2);"},{name:"average",example:"average(@color1, @color2);"},{name:"negation",example:"negation(@color1, @color2);"}];Ua.prototype.provideProperties=function(){return this._properties},Ua.prototype.provideAtDirectives=function(){return this._atDirectives},Ua.prototype.providePseudoClasses=function(){return this._pseudoClasses},Ua.prototype.providePseudoElements=function(){return this._pseudoElements},Ua.prototype.addData=function(e){if(Array.isArray(e.properties))for(var t=0,r=e.properties;ti[0]&&c[1]{var t,r,n;if(""!==e.path&&!e.path.endsWith(".scss")&&!e.path.endsWith(".css"))return e.path.endsWith("/")?[e.with({path:e.path+"index.scss"}).toString(),e.with({path:e.path+"_index.scss"}).toString()]:(r=(r=e.path.split("/"))[r.length-1],t=e.path.slice(0,-r.length),r.startsWith("_")?e.path.endsWith(".scss")?void 0:[e.with({path:e.path+".scss"}).toString()]:[(n=function(r){return e.with({path:t+r}).toString()})(r+=".scss"),n("_"+r),n(r.slice(0,-5)+"/index.scss"),n(r.slice(0,-5)+"/_index.scss"),n(r.slice(0,-5)+".css")])})(o)))return[3,6];a=0,c.label=3;case 3:return a{switch(e){case ji.Error:return i.MarkerSeverity.Error;case ji.Warning:return i.MarkerSeverity.Warning;case ji.Information:return i.MarkerSeverity.Info;case ji.Hint:return i.MarkerSeverity.Hint;default:return i.MarkerSeverity.Info}})(e.severity),startLineNumber:e.range.start.line+1,startColumn:e.range.start.character+1,endLineNumber:e.range.end.line+1,endColumn:e.range.end.character+1,message:e.message,code:t,source:e.source};var t}));var n=i.editor.getModel(e);n&&n.getModeId()===t&&i.editor.setModelMarkers(n,t,r)})).then(void 0,(function(e){}))};var Ga=Qa;function Qa(e,t,r){function n(e){var t,r=e.getModeId();r===s._languageId&&(s._listener[e.uri.toString()]=e.onDidChangeContent((function(){window.clearTimeout(t),t=window.setTimeout((function(){return s._doValidate(e.uri,r)}),500)})),s._doValidate(e.uri,r))}function o(e){i.editor.setModelMarkers(e,s._languageId,[]);e=e.uri.toString();var t=s._listener[e];t&&(t.dispose(),delete s._listener[e])}var s=this;this._languageId=e,this._worker=t,this._disposables=[],this._listener=Object.create(null),this._disposables.push(i.editor.onDidCreateModel(n)),this._disposables.push(i.editor.onWillDisposeModel(o)),this._disposables.push(i.editor.onDidChangeModelLanguage((function(e){o(e.model),n(e.model)}))),r.onDidChange((function(e){i.editor.getModels().forEach((function(e){e.getModeId()===s._languageId&&(o(e),n(e))}))})),this._disposables.push({dispose:function(){for(var e in s._listener)s._listener[e].dispose()}}),i.editor.getModels().forEach(n)}function Ja(e){if(e)return{character:e.column-1,line:e.lineNumber-1}}function Xa(e){if(e)return new i.Range(e.start.line+1,e.start.character+1,e.end.line+1,e.end.character+1)}function Za(e){if(e)return{range:Xa(e.range),text:e.newText}}Object.defineProperty(ec.prototype,"triggerCharacters",{get:function(){return["/","-",":"]},enumerable:!1,configurable:!0}),ec.prototype.provideCompletionItems=function(e,t,r,n){var o=e.uri;return this._worker(o).then((function(e){return e.doComplete(o.toString(),Ja(t))})).then((function(r){var n,o;if(r)return o=e.getWordUntilPosition(t),n=new i.Range(t.lineNumber,o.startColumn,t.lineNumber,o.endColumn),o=r.items.map((function(e){var t,r={label:e.label,insertText:e.insertText||e.label,sortText:e.sortText,filterText:e.filterText,documentation:e.documentation,detail:e.detail,command:(r=e.command)&&"editor.action.triggerSuggest"===r.command?{id:r.command,title:r.title,arguments:r.arguments}:void 0,range:n,kind:(e=>{var t=i.languages.CompletionItemKind;switch(e){case ao.Text:return t.Text;case ao.Method:return t.Method;case ao.Function:return t.Function;case ao.Constructor:return t.Constructor;case ao.Field:return t.Field;case ao.Variable:return t.Variable;case ao.Class:return t.Class;case ao.Interface:return t.Interface;case ao.Module:return t.Module;case ao.Property:return t.Property;case ao.Unit:return t.Unit;case ao.Value:return t.Value;case ao.Enum:return t.Enum;case ao.Keyword:return t.Keyword;case ao.Snippet:return t.Snippet;case ao.Color:return t.Color;case ao.File:return t.File;case ao.Reference:return t.Reference}return t.Property})(e.kind)};return e.textEdit&&(void 0!==(t=e.textEdit).insert&&void 0!==t.replace?r.range={insert:Xa(e.textEdit.insert),replace:Xa(e.textEdit.replace)}:r.range=Xa(e.textEdit.range),r.insertText=e.textEdit.newText),e.additionalTextEdits&&(r.additionalTextEdits=e.additionalTextEdits.map(Za)),e.insertTextFormat===co.Snippet&&(r.insertTextRules=i.languages.CompletionItemInsertTextRule.InsertAsSnippet),r})),{isIncomplete:r.isIncomplete,suggestions:o}}))};var Ya=ec;function ec(e){this._worker=e}function tc(e){var t;return"string"==typeof e?{value:e}:(t=e)&&"object"==typeof t&&"string"==typeof t.kind?"plaintext"===e.kind?{value:e.value.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}:{value:e.value}:{value:"```"+e.language+"\n"+e.value+"\n```\n"}}nc.prototype.provideHover=function(e,t,r){var n=e.uri;return this._worker(n).then((function(e){return e.doHover(n.toString(),Ja(t))})).then((function(e){if(e)return{range:Xa(e.range),contents:(e=>{if(e)return Array.isArray(e)?e.map(tc):[tc(e)]})(e.contents)}}))};var rc=nc;function nc(e){this._worker=e}oc.prototype.provideDocumentHighlights=function(e,t,r){var n=e.uri;return this._worker(n).then((function(e){return e.findDocumentHighlights(n.toString(),Ja(t))})).then((function(e){if(e)return e.map((function(e){return{range:Xa(e.range),kind:(e=>{switch(e){case uo.Read:return i.languages.DocumentHighlightKind.Read;case uo.Write:return i.languages.DocumentHighlightKind.Write;case uo.Text:return i.languages.DocumentHighlightKind.Text}return i.languages.DocumentHighlightKind.Text})(e.kind)}}))}))};var ic=oc;function oc(e){this._worker=e}function sc(e){return{uri:i.Uri.parse(e.uri),range:Xa(e.range)}}cc.prototype.provideDefinition=function(e,t,r){var n=e.uri;return this._worker(n).then((function(e){return e.findDefinition(n.toString(),Ja(t))})).then((function(e){if(e)return[sc(e)]}))};var ac=cc;function cc(e){this._worker=e}hc.prototype.provideReferences=function(e,t,r,n){var i=e.uri;return this._worker(i).then((function(e){return e.findReferences(i.toString(),Ja(t))})).then((function(e){if(e)return e.map(sc)}))};var lc=hc;function hc(e){this._worker=e}pc.prototype.provideRenameEdits=function(e,t,r,n){var o=e.uri;return this._worker(o).then((function(e){return e.doRename(o.toString(),Ja(t),r)})).then((function(e){var t=e;if(t&&t.changes){var r,n=[];for(r in t.changes)for(var o=i.Uri.parse(r),s=0,a=t.changes[r];s{var t=i.languages.SymbolKind;switch(e){case po.File:return t.Array;case po.Module:return t.Module;case po.Namespace:return t.Namespace;case po.Package:return t.Package;case po.Class:return t.Class;case po.Method:return t.Method;case po.Property:return t.Property;case po.Field:return t.Field;case po.Constructor:return t.Constructor;case po.Enum:return t.Enum;case po.Interface:return t.Interface;case po.Function:return t.Function;case po.Variable:return t.Variable;case po.Constant:return t.Constant;case po.String:return t.String;case po.Number:return t.Number;case po.Boolean:return t.Boolean;case po.Array:return t.Array}return t.Function})(e.kind),tags:[],range:Xa(e.location.range),selectionRange:Xa(e.location.range)}}))}))};var dc=fc;function fc(e){this._worker=e}gc.prototype.provideDocumentColors=function(e,t){var r=e.uri;return this._worker(r).then((function(e){return e.findDocumentColors(r.toString())})).then((function(e){if(e)return e.map((function(e){return{color:e.color,range:Xa(e.range)}}))}))},gc.prototype.provideColorPresentations=function(e,t,r){var n=e.uri;return this._worker(n).then((function(e){return e.getColorPresentations(n.toString(),t.color,(e=>{if(e)return{start:{line:e.startLineNumber-1,character:e.startColumn-1},end:{line:e.endLineNumber-1,character:e.endColumn-1}}})(t.range))})).then((function(e){if(e)return e.map((function(e){var t={label:e.label};return e.textEdit&&(t.textEdit=Za(e.textEdit)),e.additionalTextEdits&&(t.additionalTextEdits=e.additionalTextEdits.map(Za)),t}))}))};var mc=gc;function gc(e){this._worker=e}vc.prototype.provideFoldingRanges=function(e,t,r){var n=e.uri;return this._worker(n).then((function(e){return e.getFoldingRanges(n.toString(),t)})).then((function(e){if(e)return e.map((function(e){var t={start:e.startLine+1,end:e.endLine+1};return void 0!==e.kind&&(t.kind=(e=>{switch(e){case Ni.Comment:return i.languages.FoldingRangeKind.Comment;case Ni.Imports:return i.languages.FoldingRangeKind.Imports;case Ni.Region:return i.languages.FoldingRangeKind.Region}})(e.kind)),t}))}))};var yc=vc;function vc(e){this._worker=e}xc.prototype.provideSelectionRanges=function(e,t,r){var n=e.uri;return this._worker(n).then((function(e){return e.getSelectionRanges(n.toString(),t.map(Ja))})).then((function(e){if(e)return e.map((function(e){for(var t=[];e;)t.push({range:Xa(e.range)}),e=e.parent;return t}))}))};var bc=xc;function xc(e){this._worker=e}function Cc(e){function t(){for(var e=[],t=0;t{function r(e){if("string"!=typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}function n(e,t){for(var r,n="",i=0,o=-1,s=0,a=0;a<=e.length;++a){if(a{var i;n.r(r),n.d(r,{URI:()=>p,Utils:()=>S}),"object"==typeof e?i="win32"===e.platform:"object"==typeof navigator&&(i=0<=navigator.userAgent.indexOf("Windows")),o=function(e,t){return(o=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}))(e,t)};var o,s,a,c=/^\w[\w\d+.-]*$/,l=/^\//,h=/^\/\//,u=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/,p=(v.isUri=function(e){return e instanceof v||!!e&&"string"==typeof e.authority&&"string"==typeof e.fragment&&"string"==typeof e.path&&"string"==typeof e.query&&"string"==typeof e.scheme&&"function"==typeof e.fsPath&&"function"==typeof e.with&&"function"==typeof e.toString},Object.defineProperty(v.prototype,"fsPath",{get:function(){return C(this,!1)},enumerable:!1,configurable:!0}),v.prototype.with=function(e){var t,r,n,i;return e&&(void 0===(t=e.scheme)?t=this.scheme:null===t&&(t=""),void 0===(r=e.authority)?r=this.authority:null===r&&(r=""),void 0===(n=e.path)?n=this.path:null===n&&(n=""),void 0===(i=e.query)?i=this.query:null===i&&(i=""),void 0===(e=e.fragment)?e=this.fragment:null===e&&(e=""),t!==this.scheme||r!==this.authority||n!==this.path||i!==this.query||e!==this.fragment)?new f(t,r,n,i,e):this},v.parse=function(e,t){return void 0===t&&(t=!1),e=u.exec(e),e?new f(e[2]||"",w(e[4]||""),w(e[5]||""),w(e[7]||""),w(e[9]||""),t):new f("","","","","")},v.file=function(e){var t,r="";return"/"===(e=i?e.replace(/\\/g,"/"):e)[0]&&"/"===e[1]&&(e=-1===(t=e.indexOf("/",2))?(r=e.substring(2),"/"):(r=e.substring(2,t),e.substring(t)||"/")),new f("file",r,e,"","")},v.from=function(e){return new f(e.scheme,e.authority,e.path,e.query,e.fragment)},v.prototype.toString=function(e){return k(this,e=void 0!==e&&e)},v.prototype.toJSON=function(){return this},v.revive=function(e){var t;return e&&(e instanceof v?e:((t=new f(e))._formatted=e.external,t._fsPath=e._sep===d?e.fsPath:null,t))},v),d=i?1:void 0,f=(o(a=g,r=s=p),a.prototype=null===r?Object.create(r):(y.prototype=r.prototype,new y),Object.defineProperty(g.prototype,"fsPath",{get:function(){return this._fsPath||(this._fsPath=C(this,!1)),this._fsPath},enumerable:!1,configurable:!0}),g.prototype.toString=function(e){return(e=void 0!==e&&e)?k(this,!0):(this._formatted||(this._formatted=k(this,!1)),this._formatted)},g.prototype.toJSON=function(){var e={$mid:1};return this._fsPath&&(e.fsPath=this._fsPath,e._sep=d),this._formatted&&(e.external=this._formatted),this.path&&(e.path=this.path),this.scheme&&(e.scheme=this.scheme),this.authority&&(e.authority=this.authority),this.query&&(e.query=this.query),this.fragment&&(e.fragment=this.fragment),e},g),m=((r={})[58]="%3A",r[47]="%2F",r[63]="%3F",r[35]="%23",r[91]="%5B",r[93]="%5D",r[64]="%40",r[33]="%21",r[36]="%24",r[38]="%26",r[39]="%27",r[40]="%28",r[41]="%29",r[42]="%2A",r[43]="%2B",r[44]="%2C",r[59]="%3B",r[61]="%3D",r[32]="%20",r);function g(){var e=null!==s&&s.apply(this,arguments)||this;return e._formatted=null,e._fsPath=null,e}function y(){this.constructor=a}function v(e,t,r,n,i,o){if(void 0===o&&(o=!1),"object"==typeof e)this.scheme=e.scheme||"",this.authority=e.authority||"",this.path=e.path||"",this.query=e.query||"",this.fragment=e.fragment||"";else{if(this.scheme=e||o?e:"file",this.authority=t||"",this.path=((e,t)=>{switch(e){case"https":case"http":case"file":t?"/"!==t[0]&&(t="/"+t):t="/"}return t})(this.scheme,r||""),this.query=n||"",this.fragment=i||"",e=this,t=o,!e.scheme&&t)throw new Error('[UriError]: Scheme is missing: {scheme: "", authority: "'+e.authority+'", path: "'+e.path+'", query: "'+e.query+'", fragment: "'+e.fragment+'"}');if(e.scheme&&!c.test(e.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(e.path)if(e.authority){if(!l.test(e.path))throw new Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character')}else if(h.test(e.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}}function b(e,t){for(var r=void 0,n=-1,i=0;i{for(var r in t)o.o(t,r)&&!o.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};let{URI:s,Utils:a}=o(447)}).call(this,r("f28c"))}}]);