(window.webpackJsonp=window.webpackJsonp||[]).push([[314],{"20/g":function(co,mt,qe){"use strict";qe.r(mt),qe.d(mt,"setupMode",function(){return Qs});var L=qe("CzyV"),Nt=2*60*1e3,pn=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)return;var e=Date.now()-this._lastUsedTime;e>Nt&&this._stopWorker()},n.prototype._getClient=function(){return this._lastUsedTime=Date.now(),this._client||(this._worker=L.editor.createWebWorker({moduleId:"vs/language/css/cssWorker",label:this._defaults.languageId,createData:{options:this._defaults.options,languageId:this._defaults.languageId}}),this._client=this._worker.getProxy()),this._client},n.prototype.getLanguageServiceWorker=function(){for(var e=this,t=[],r=0;rthis.source.length)return!1;for(var t=0;t=y&&t<=k?(this.stream.advance(e+1),this.stream.advanceWhileChar(function(r){return r>=y&&r<=k||e===0&&r===ce}),!0):!1},n.prototype._newline=function(e){var t=this.stream.peekChar();switch(t){case Ie:case Le:case We:return this.stream.advance(1),e.push(String.fromCharCode(t)),t===Ie&&this.stream.advanceIfChar(We)&&e.push(` `),!0}return!1},n.prototype._escape=function(e,t){var r=this.stream.peekChar();if(r===Ye){this.stream.advance(1),r=this.stream.peekChar();for(var i=0;i<6&&(r>=y&&r<=k||r>=Xe&&r<=Oe||r>=Q&&r<=ye);)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===Te||r===S?this.stream.advance(1):this._newline([]),!0}if(r!==Ie&&r!==Le&&r!==We)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!==Ye&&r!==Ie&&r!==Le&&r!==We?(this.stream.advance(1),t.push(String.fromCharCode(r)),!0):!1},n.prototype._string=function(e){if(this.stream.peekChar()===bt||this.stream.peekChar()===gt){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)),l.String):l.BadString}return null},n.prototype._unquotedChar=function(e){var t=this.stream.peekChar();return t!==0&&t!==Ye&&t!==bt&&t!==gt&&t!==be&&t!==Me&&t!==Te&&t!==S&&t!==We&&t!==Le&&t!==Ie?(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===Te||t===S||t===We||t===Le||t===Ie});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){if(this._minus(e)||this._identFirstChar(e)||this._escape(e)){for(;this._identChar(e)||this._escape(e););return!0}}else if(this._identFirstChar(e)||this._escape(e)){for(;this._identChar(e)||this._escape(e););return!0}return this.stream.goBackTo(t),!1},n.prototype._identFirstChar=function(e){var t=this.stream.peekChar();return t===D||t>=Xe&&t<=le||t>=Q&&t<=fe||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===W?(this.stream.advance(1),e.push(String.fromCharCode(t)),!0):!1},n.prototype._identChar=function(e){var t=this.stream.peekChar();return t===D||t===W||t>=Xe&&t<=le||t>=Q&&t<=fe||t>=y&&t<=k||t>=128&&t<=65535?(this.stream.advance(1),e.push(String.fromCharCode(t)),!0):!1},n}();function oe(n,e){if(n.length0?n.lastIndexOf(e)===t:t===0?n===e:!1}function ho(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;an.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 fn(n,e){for(var t=mn(n,e),r=[];t;)r.unshift(t),t=t.parent;return r}function uo(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=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.offsetthis.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=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 de;)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/g,">")}function Ho(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+=zr(n.status)),t+=n.description;var r=Mr(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 Jo(n,e){if(!n.description||n.description==="")return"";var t="";if((e==null?void 0:e.documentation)!==!1){n.status&&(t+=zr(n.status));var r=typeof n.description=="string"?n.description:n.description.value;t+=Fn(r);var i=Mr(n.browsers);i&&(t+=` (`+Fn(i)+")"),"syntax"in n&&n.syntax&&(t+=` Syntax: `+Fn(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 Mr(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 Rr&&(t+=Rr[i]),o&&(t+=" "+o),t}).join(", ")}var qt=ke(),Xo=[{func:"rgb($red, $green, $blue)",desc:qt("css.builtin.rgb","Creates a Color from red, green, and blue values.")},{func:"rgba($red, $green, $blue, $alpha)",desc:qt("css.builtin.rgba","Creates a Color from red, green, blue, and alpha values.")},{func:"hsl($hue, $saturation, $lightness)",desc:qt("css.builtin.hsl","Creates a Color from hue, saturation, and lightness values.")},{func:"hsla($hue, $saturation, $lightness, $alpha)",desc:qt("css.builtin.hsla","Creates a Color from hue, saturation, lightness, and alpha values.")}],kt={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"},Ir={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 at(n,e){var t=n.getText(),r=t.match(/^([-+]?[0-9]*\.?[0-9]+)(%?)$/);if(r){r[2]&&(e=100);var i=parseFloat(r[1])/e;if(i>=0&&i<=1)return i}throw new Error}function Yo(n){var e=n.getText(),t=e.match(/^([-+]?[0-9]*\.?[0-9]+)(deg)?$/);if(t)return parseFloat(e)%360;throw new Error}function Tr(n){var e=n.getName();return e?/^(rgb|rgba|hsl|hsla)$/gi.test(e):!1}function al(n){if(n.type===p.HexColorValue)return!0;if(n.type===p.Function)return Tr(n);if(n.type===p.Identifier){if(n.parent&&n.parent.type!==p.Term)return!1;var e=n.getText().toLowerCase();if(e==="none")return!1;if(kt[e])return!0}return!1}var Ar=48,Qo=57,Zo=65,sl=70,Kt=97,ea=102;function re(n){return n=Kt&&n<=ea?n-Kt+10:0)}function Pr(n){if(n[0]!=="#")return null;switch(n.length){case 4:return{red:re(n.charCodeAt(1))*17/255,green:re(n.charCodeAt(2))*17/255,blue:re(n.charCodeAt(3))*17/255,alpha:1};case 5:return{red:re(n.charCodeAt(1))*17/255,green:re(n.charCodeAt(2))*17/255,blue:re(n.charCodeAt(3))*17/255,alpha:re(n.charCodeAt(4))*17/255};case 7:return{red:(re(n.charCodeAt(1))*16+re(n.charCodeAt(2)))/255,green:(re(n.charCodeAt(3))*16+re(n.charCodeAt(4)))/255,blue:(re(n.charCodeAt(5))*16+re(n.charCodeAt(6)))/255,alpha:1};case 9:return{red:(re(n.charCodeAt(1))*16+re(n.charCodeAt(2)))/255,green:(re(n.charCodeAt(3))*16+re(n.charCodeAt(4)))/255,blue:(re(n.charCodeAt(5))*16+re(n.charCodeAt(6)))/255,alpha:(re(n.charCodeAt(7))*16+re(n.charCodeAt(8)))/255}}return null}function ll(n,e,t,r){return r===void 0&&(r=1),{red:n/255,green:e/255,blue:t/255,alpha:r}}function ta(n,e,t,r){if(r===void 0&&(r=1),n=n/60,e===0)return{red:t,green:t,blue:t,alpha:r};var i=function(s,d,c){for(;c<0;)c+=6;for(;c>=6;)c-=6;return c<1?(d-s)*c+s:c<3?d:c<4?(d-s)*(4-c)+s:s},o=t<=.5?t*(e+1):t+e-t*e,a=t*2-o;return{red:i(a,o,n+2),green:i(a,o,n),blue:i(a,o,n-2),alpha:r}}function na(n){var e=n.red,t=n.green,r=n.blue,i=n.alpha,o=Math.max(e,t,r),a=Math.min(e,t,r),s=0,d=0,c=(a+o)/2,h=o-a;if(h>0){d=Math.min(c<=.5?h/(2*c):h/(2-2*c),1);switch(o){case e:s=(t-r)/h+(t4)return null;try{var o=i.length===4?at(i[3],1):1;if(r==="rgb"||r==="rgba")return{red:at(i[0],255),green:at(i[1],255),blue:at(i[2],255),alpha:o};if(r==="hsl"||r==="hsla"){var a=Yo(i[0]),s=at(i[1],100),d=at(i[2],100);return ta(a,s,d,o)}}catch(b){return null}}else if(n.type===p.Identifier){if(n.parent&&n.parent.type!==p.Term)return null;var c=n.parent;if(c&&c.parent&&c.parent.type===p.BinaryExpression){var h=c.parent;if(h.parent&&h.parent.type===p.ListEntry&&h.parent.key===h)return null}var f=n.getText().toLowerCase();if(f==="none")return null;var v=kt[f];if(v)return Pr(v)}return null}var _r={bottom:"Computes to \u2018100%\u2019 for the vertical position if one or two values are given, otherwise specifies the bottom edge as the origin for the next offset.",center:"Computes to \u201850%\u2019 (\u2018left 50%\u2019) for the horizontal position if the horizontal position is not otherwise specified, or \u201850%\u2019 (\u2018top 50%\u2019) for the vertical position if it is.",left:"Computes to \u20180%\u2019 for the horizontal position if one or two values are given, otherwise specifies the left edge as the origin for the next offset.",right:"Computes to \u2018100%\u2019 for the horizontal position if one or two values are given, otherwise specifies the right edge as the origin for the next offset.",top:"Computes to \u20180%\u2019 for the vertical position if one or two values are given, otherwise specifies the top edge as the origin for the next offset."},Nr={"no-repeat":"Placed once and not repeated in this direction.",repeat:"Repeated in this direction as often as needed to cover the background painting area.","repeat-x":"Computes to \u2018repeat no-repeat\u2019.","repeat-y":"Computes to \u2018no-repeat repeat\u2019.",round:"Repeated as often as will fit within the background positioning area. If it doesn\u2019t fit a whole number of times, it is rescaled so that it does.",space:"Repeated as often as will fit within the background positioning area without being clipped and then the images are spaced out to fill the area."},Or={dashed:"A series of square-ended dashes.",dotted:"A series of round dots.",double:"Two parallel solid lines with some space between them.",groove:"Looks as if it were carved in the canvas.",hidden:"Same as \u2018none\u2019, but has different behavior in the border conflict resolution rules for border-collapsed tables.",inset:"Looks as if the content on the inside of the border is sunken into the canvas.",none:"No border. Color and width are ignored.",outset:"Looks as if the content on the inside of the border is coming out of the canvas.",ridge:"Looks as if it were coming out of the canvas.",solid:"A single line segment."},ia=["medium","thick","thin"],Wr={"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."},Lr={"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."},jr={initial:"Represents the value specified as the property\u2019s initial value.",inherit:"Represents the computed value of the property on the element\u2019s parent.",unset:"Acts as either `inherit` or `initial`, depending on whether the property is inherited or not."},Ur={"var()":"Evaluates the value of a custom variable.","calc()":"Evaluates an mathematical expression. The following operators can be used: + - * /."},Vr={"url()":"Reference an image file by URL","image()":"Provide image fallbacks and annotations.","-webkit-image-set()":"Provide multiple resolutions. Remember to use unprefixed image-set() in addition.","image-set()":"Provide multiple resolutions of an image and const the UA decide which is most appropriate in a given situation.","-moz-element()":"Use an element in the document as an image. Remember to use unprefixed element() in addition.","element()":"Use an element in the document as an image.","cross-fade()":"Indicates the two images to be combined and how far along in the transition the combination is.","-webkit-gradient()":"Deprecated. Use modern linear-gradient() or radial-gradient() instead.","-webkit-linear-gradient()":"Linear gradient. Remember to use unprefixed version in addition.","-moz-linear-gradient()":"Linear gradient. Remember to use unprefixed version in addition.","-o-linear-gradient()":"Linear gradient. Remember to use unprefixed version in addition.","linear-gradient()":"A linear gradient is created by specifying a straight gradient line, and then several colors placed along that line.","-webkit-repeating-linear-gradient()":"Repeating Linear gradient. Remember to use unprefixed version in addition.","-moz-repeating-linear-gradient()":"Repeating Linear gradient. Remember to use unprefixed version in addition.","-o-repeating-linear-gradient()":"Repeating Linear gradient. Remember to use unprefixed version in addition.","repeating-linear-gradient()":"Same as linear-gradient, except the color-stops are repeated infinitely in both directions, with their positions shifted by multiples of the difference between the last specified color-stop\u2019s position and the first specified color-stop\u2019s position.","-webkit-radial-gradient()":"Radial gradient. Remember to use unprefixed version in addition.","-moz-radial-gradient()":"Radial gradient. Remember to use unprefixed version in addition.","radial-gradient()":"Colors emerge from a single point and smoothly spread outward in a circular or elliptical shape.","-webkit-repeating-radial-gradient()":"Repeating radial gradient. Remember to use unprefixed version in addition.","-moz-repeating-radial-gradient()":"Repeating radial gradient. Remember to use unprefixed version in addition.","repeating-radial-gradient()":"Same as radial-gradient, except the color-stops are repeated infinitely in both directions, with their positions shifted by multiples of the difference between the last specified color-stop\u2019s position and the first specified color-stop\u2019s position."},Br={ease:"Equivalent to cubic-bezier(0.25, 0.1, 0.25, 1.0).","ease-in":"Equivalent to cubic-bezier(0.42, 0, 1.0, 1.0).","ease-in-out":"Equivalent to cubic-bezier(0.42, 0, 0.58, 1.0).","ease-out":"Equivalent to cubic-bezier(0, 0, 0.58, 1.0).",linear:"Equivalent to cubic-bezier(0.0, 0.0, 1.0, 1.0).","step-end":"Equivalent to steps(1, end).","step-start":"Equivalent to steps(1, start).","steps()":"The first parameter specifies the number of intervals in the function. The second parameter, which is optional, is either the value \u201Cstart\u201D or \u201Cend\u201D.","cubic-bezier()":"Specifies a cubic-bezier curve. The four values specify points P1 and P2 of the curve as (x1, y1, x2, y2).","cubic-bezier(0.6, -0.28, 0.735, 0.045)":"Ease-in Back. Overshoots.","cubic-bezier(0.68, -0.55, 0.265, 1.55)":"Ease-in-out Back. Overshoots.","cubic-bezier(0.175, 0.885, 0.32, 1.275)":"Ease-out Back. Overshoots.","cubic-bezier(0.6, 0.04, 0.98, 0.335)":"Ease-in Circular. Based on half circle.","cubic-bezier(0.785, 0.135, 0.15, 0.86)":"Ease-in-out Circular. Based on half circle.","cubic-bezier(0.075, 0.82, 0.165, 1)":"Ease-out Circular. Based on half circle.","cubic-bezier(0.55, 0.055, 0.675, 0.19)":"Ease-in Cubic. Based on power of three.","cubic-bezier(0.645, 0.045, 0.355, 1)":"Ease-in-out Cubic. Based on power of three.","cubic-bezier(0.215, 0.610, 0.355, 1)":"Ease-out Cubic. Based on power of three.","cubic-bezier(0.95, 0.05, 0.795, 0.035)":"Ease-in Exponential. Based on two to the power ten.","cubic-bezier(1, 0, 0, 1)":"Ease-in-out Exponential. Based on two to the power ten.","cubic-bezier(0.19, 1, 0.22, 1)":"Ease-out Exponential. Based on two to the power ten.","cubic-bezier(0.47, 0, 0.745, 0.715)":"Ease-in Sine.","cubic-bezier(0.445, 0.05, 0.55, 0.95)":"Ease-in-out Sine.","cubic-bezier(0.39, 0.575, 0.565, 1)":"Ease-out Sine.","cubic-bezier(0.55, 0.085, 0.68, 0.53)":"Ease-in Quadratic. Based on power of two.","cubic-bezier(0.455, 0.03, 0.515, 0.955)":"Ease-in-out Quadratic. Based on power of two.","cubic-bezier(0.25, 0.46, 0.45, 0.94)":"Ease-out Quadratic. Based on power of two.","cubic-bezier(0.895, 0.03, 0.685, 0.22)":"Ease-in Quartic. Based on power of four.","cubic-bezier(0.77, 0, 0.175, 1)":"Ease-in-out Quartic. Based on power of four.","cubic-bezier(0.165, 0.84, 0.44, 1)":"Ease-out Quartic. Based on power of four.","cubic-bezier(0.755, 0.05, 0.855, 0.06)":"Ease-in Quintic. Based on power of five.","cubic-bezier(0.86, 0, 0.07, 1)":"Ease-in-out Quintic. Based on power of five.","cubic-bezier(0.23, 1, 0.320, 1)":"Ease-out Quintic. Based on power of five."},$r={"circle()":"Defines a circle.","ellipse()":"Defines an ellipse.","inset()":"Defines an inset rectangle.","polygon()":"Defines a polygon."},qr={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"]},oa=["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"],aa=["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"],sa=["@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 Gt(n){return Object.keys(n).map(function(e){return n[e]})}function Fe(n){return typeof n!="undefined"}var Kr=function(n,e,t){if(t||arguments.length===2)for(var r=0,i=e.length,o;re.offset?o-e.offset:0}return e},n.prototype.markError=function(e,t,r,i){this.token!==this.lastErrorToken&&(e.addIssue(new Dr(e,t,we.Error,void 0,this.token.offset,this.token.len)),this.lastErrorToken=this.token),(r||i)&&this.resync(r,i)},n.prototype.parseStylesheet=function(e){var t=e.version,r=e.getText(),i=function(o,a){if(e.version!==t)throw new Error("Underlying model has changed, AST is no longer valid");return r.substr(o,a)};return this.internalParse(r,this._parseStylesheet,i)},n.prototype.internalParse=function(e,t,r){this.scanner.setSource(e),this.token=this.scanner.scan();var i=t.bind(this)();return i&&(r?i.textProvider=r:i.textProvider=function(o,a){return e.substr(o,a)}),i},n.prototype._parseStylesheet=function(){for(var e=this.create(mo);e.addChild(this._parseStylesheetStart()););var t=!1;do{var r=!1;do{r=!1;var i=this._parseStylesheetStatement();for(i&&(e.addChild(i),r=!0,t=!1,!this.peek(l.EOF)&&this._needsSemicolonAfter(i)&&!this.accept(l.SemiColon)&&this.markError(e,u.SemiColonExpected));this.accept(l.SemiColon)||this.accept(l.CDO)||this.accept(l.CDC);)r=!0,t=!1}while(r);if(this.peek(l.EOF))break;t||(this.peek(l.AtKeyword)?this.markError(e,u.UnknownAtRule):this.markError(e,u.RuleOrSelectorExpected),t=!0),this.consumeToken()}while(!this.peek(l.EOF));return this.finish(e)},n.prototype._parseStylesheetStart=function(){return this._parseCharset()},n.prototype._parseStylesheetStatement=function(e){return e===void 0&&(e=!1),this.peek(l.AtKeyword)?this._parseStylesheetAtStatement(e):this._parseRuleset(e)},n.prototype._parseStylesheetAtStatement=function(e){return e===void 0&&(e=!1),this._parseImport()||this._parseMedia(e)||this._parsePage()||this._parseFontFace()||this._parseKeyframe()||this._parseSupports(e)||this._parseViewPort()||this._parseNamespace()||this._parseDocument()||this._parseUnknownAtRule()},n.prototype._tryParseRuleset=function(e){var t=this.mark();if(this._parseSelector(e)){for(;this.accept(l.Comma)&&this._parseSelector(e););if(this.accept(l.CurlyL))return this.restoreAtMark(t),this._parseRuleset(e)}return this.restoreAtMark(t),null},n.prototype._parseRuleset=function(e){e===void 0&&(e=!1);var t=this.create(rt),r=t.getSelectors();if(!r.addChild(this._parseSelector(e)))return null;for(;this.accept(l.Comma);)if(!r.addChild(this._parseSelector(e)))return this.finish(t,u.SelectorExpected);return this._parseBody(t,this._parseRuleSetDeclaration.bind(this))},n.prototype._parseRuleSetDeclarationAtStatement=function(){return this._parseUnknownAtRule()},n.prototype._parseRuleSetDeclaration=function(){return this.peek(l.AtKeyword)?this._parseRuleSetDeclarationAtStatement():this._parseDeclaration()},n.prototype._needsSemicolonAfter=function(e){switch(e.type){case p.Keyframe:case p.ViewPort:case p.Media:case p.Ruleset:case p.Namespace:case p.If:case p.For:case p.Each:case p.While:case p.MixinDeclaration:case p.FunctionDeclaration:case p.MixinContentDeclaration:return!1;case p.ExtendsReference:case p.MixinContentReference:case p.ReturnStatement:case p.MediaQuery:case p.Debug:case p.Import:case p.AtApplyRule:case p.CustomPropertyDeclaration:return!0;case p.VariableDeclaration:return e.needsSemicolon;case p.MixinReference:return!e.getContent();case p.Declaration:return!e.getNestedProperties()}return!1},n.prototype._parseDeclarations=function(e){var t=this.create(gn);if(!this.accept(l.CurlyL))return null;for(var r=e();t.addChild(r)&&!this.peek(l.CurlyR);){if(this._needsSemicolonAfter(r)&&!this.accept(l.SemiColon))return this.finish(t,u.SemiColonExpected,[l.SemiColon,l.CurlyR]);for(r&&this.prevToken&&this.prevToken.type===l.SemiColon&&(r.semicolonPosition=this.prevToken.offset);this.accept(l.SemiColon););r=e()}return this.accept(l.CurlyR)?this.finish(t):this.finish(t,u.RightCurlyExpected,[l.CurlyR,l.SemiColon])},n.prototype._parseBody=function(e,t){return e.setDeclarations(this._parseDeclarations(t))?this.finish(e):this.finish(e,u.LeftCurlyExpected,[l.CurlyR,l.SemiColon])},n.prototype._parseSelector=function(e){var t=this.create(yt),r=!1;for(e&&(r=t.addChild(this._parseCombinator()));t.addChild(this._parseSimpleSelector());)r=!0,t.addChild(this._parseCombinator());return r?this.finish(t):null},n.prototype._parseDeclaration=function(e){var t=this._tryParseCustomPropertyDeclaration(e);if(t)return t;var r=this.create(_e);return r.setProperty(this._parseProperty())?this.accept(l.Colon)?(this.prevToken&&(r.colonPosition=this.prevToken.offset),r.setValue(this._parseExpr())?(r.addChild(this._parsePrio()),this.peek(l.SemiColon)&&(r.semicolonPosition=this.token.offset),this.finish(r)):this.finish(r,u.PropertyValueExpected)):this.finish(r,u.ColonExpected,[l.Colon],e||[l.SemiColon]):null},n.prototype._tryParseCustomPropertyDeclaration=function(e){if(!this.peekRegExp(l.Ident,/^--/))return null;var t=this.create(go);if(!t.setProperty(this._parseProperty()))return null;if(!this.accept(l.Colon))return this.finish(t,u.ColonExpected,[l.Colon]);this.prevToken&&(t.colonPosition=this.prevToken.offset);var r=this.mark();if(this.peek(l.CurlyL)){var i=this.create(fo),o=this._parseDeclarations(this._parseRuleSetDeclaration.bind(this));if(i.setDeclarations(o)&&!o.isErroneous(!0)&&(i.addChild(this._parsePrio()),this.peek(l.SemiColon)))return this.finish(i),t.setPropertySet(i),t.semicolonPosition=this.token.offset,this.finish(t);this.restoreAtMark(r)}var a=this._parseExpr();return a&&!a.isErroneous(!0)&&(this._parsePrio(),this.peekOne.apply(this,Kr(Kr([],e||[],!1),[l.SemiColon,l.EOF],!1)))?(t.setValue(a),this.peek(l.SemiColon)&&(t.semicolonPosition=this.token.offset),this.finish(t)):(this.restoreAtMark(r),t.addChild(this._parseCustomPropertyValue(e)),t.addChild(this._parsePrio()),Fe(t.colonPosition)&&this.token.offset===t.colonPosition+1?this.finish(t,u.PropertyValueExpected):this.finish(t))},n.prototype._parseCustomPropertyValue=function(e){var t=this;e===void 0&&(e=[l.CurlyR]);var r=this.create(z),i=function(){return a===0&&s===0&&d===0},o=function(){return e.indexOf(t.token.type)!==-1},a=0,s=0,d=0;e:for(;;){switch(this.token.type){case l.SemiColon:if(i())break e;break;case l.Exclamation:if(i())break e;break;case l.CurlyL:a++;break;case l.CurlyR:if(a--,a<0){if(o()&&s===0&&d===0)break e;return this.finish(r,u.LeftCurlyExpected)}break;case l.ParenthesisL:s++;break;case l.ParenthesisR:if(s--,s<0){if(o()&&d===0&&a===0)break e;return this.finish(r,u.LeftParenthesisExpected)}break;case l.BracketL:d++;break;case l.BracketR:if(d--,d<0)return this.finish(r,u.LeftSquareBracketExpected);break;case l.BadString:break e;case l.EOF:var c=u.RightCurlyExpected;return d>0?c=u.RightSquareBracketExpected:s>0&&(c=u.RightParenthesisExpected),this.finish(r,c)}this.consumeToken()}return this.finish(r)},n.prototype._tryToParseDeclaration=function(e){var t=this.mark();return this._parseProperty()&&this.accept(l.Colon)?(this.restoreAtMark(t),this._parseDeclaration(e)):(this.restoreAtMark(t),null)},n.prototype._parseProperty=function(){var e=this.create(vn),t=this.mark();return(this.acceptDelim("*")||this.acceptDelim("_"))&&this.hasWhitespace()?(this.restoreAtMark(t),null):e.setIdentifier(this._parsePropertyIdentifier())?this.finish(e):null},n.prototype._parsePropertyIdentifier=function(){return this._parseIdent()},n.prototype._parseCharset=function(){if(!this.peek(l.Charset))return null;var e=this.create(z);return this.consumeToken(),this.accept(l.String)?this.accept(l.SemiColon)?this.finish(e):this.finish(e,u.SemiColonExpected):this.finish(e,u.IdentifierExpected)},n.prototype._parseImport=function(){if(!this.peekKeyword("@import"))return null;var e=this.create(yn);return this.consumeToken(),!e.addChild(this._parseURILiteral())&&!e.addChild(this._parseStringLiteral())?this.finish(e,u.URIOrStringExpected):(!this.peek(l.SemiColon)&&!this.peek(l.EOF)&&e.setMedialist(this._parseMediaQueryList()),this.finish(e))},n.prototype._parseNamespace=function(){if(!this.peekKeyword("@namespace"))return null;var e=this.create(Ro);return this.consumeToken(),!e.addChild(this._parseURILiteral())&&(e.addChild(this._parseIdent()),!e.addChild(this._parseURILiteral())&&!e.addChild(this._parseStringLiteral()))?this.finish(e,u.URIExpected,[l.SemiColon]):this.accept(l.SemiColon)?this.finish(e):this.finish(e,u.SemiColonExpected)},n.prototype._parseFontFace=function(){if(!this.peekKeyword("@font-face"))return null;var e=this.create(gr);return this.consumeToken(),this._parseBody(e,this._parseRuleSetDeclaration.bind(this))},n.prototype._parseViewPort=function(){if(!this.peekKeyword("@-ms-viewport")&&!this.peekKeyword("@-o-viewport")&&!this.peekKeyword("@viewport"))return null;var e=this.create(Co);return this.consumeToken(),this._parseBody(e,this._parseRuleSetDeclaration.bind(this))},n.prototype._parseKeyframe=function(){if(!this.peekRegExp(l.AtKeyword,this.keyframeRegex))return null;var e=this.create(vr),t=this.create(z);return this.consumeToken(),e.setKeyword(this.finish(t)),t.matches("@-ms-keyframes")&&this.markError(t,u.UnknownKeyword),e.setIdentifier(this._parseKeyframeIdent())?this._parseBody(e,this._parseKeyframeSelector.bind(this)):this.finish(e,u.IdentifierExpected,[l.CurlyR])},n.prototype._parseKeyframeIdent=function(){return this._parseIdent([V.Keyframe])},n.prototype._parseKeyframeSelector=function(){var e=this.create(yr);if(!e.addChild(this._parseIdent())&&!this.accept(l.Percentage))return null;for(;this.accept(l.Comma);)if(!e.addChild(this._parseIdent())&&!this.accept(l.Percentage))return this.finish(e,u.PercentageExpected);return this._parseBody(e,this._parseRuleSetDeclaration.bind(this))},n.prototype._tryParseKeyframeSelector=function(){var e=this.create(yr),t=this.mark();if(!e.addChild(this._parseIdent())&&!this.accept(l.Percentage))return null;for(;this.accept(l.Comma);)if(!e.addChild(this._parseIdent())&&!this.accept(l.Percentage))return this.restoreAtMark(t),null;return this.peek(l.CurlyL)?this._parseBody(e,this._parseRuleSetDeclaration.bind(this)):(this.restoreAtMark(t),null)},n.prototype._parseSupports=function(e){if(e===void 0&&(e=!1),!this.peekKeyword("@supports"))return null;var t=this.create(wn);return this.consumeToken(),t.addChild(this._parseSupportsCondition()),this._parseBody(t,this._parseSupportsDeclaration.bind(this,e))},n.prototype._parseSupportsDeclaration=function(e){return e===void 0&&(e=!1),e?this._tryParseRuleset(!0)||this._tryToParseDeclaration()||this._parseStylesheetStatement(!0):this._parseStylesheetStatement(!1)},n.prototype._parseSupportsCondition=function(){var e=this.create(xt);if(this.acceptIdent("not"))e.addChild(this._parseSupportsConditionInParens());else if(e.addChild(this._parseSupportsConditionInParens()),this.peekRegExp(l.Ident,/^(and|or)$/i))for(var t=this.token.text.toLowerCase();this.acceptIdent(t);)e.addChild(this._parseSupportsConditionInParens());return this.finish(e)},n.prototype._parseSupportsConditionInParens=function(){var e=this.create(xt);if(this.accept(l.ParenthesisL))return this.prevToken&&(e.lParent=this.prevToken.offset),!e.addChild(this._tryToParseDeclaration([l.ParenthesisR]))&&!this._parseSupportsCondition()?this.finish(e,u.ConditionExpected):this.accept(l.ParenthesisR)?(this.prevToken&&(e.rParent=this.prevToken.offset),this.finish(e)):this.finish(e,u.RightParenthesisExpected,[l.ParenthesisR],[]);if(this.peek(l.Ident)){var t=this.mark();if(this.consumeToken(),!this.hasWhitespace()&&this.accept(l.ParenthesisL)){for(var r=1;this.token.type!==l.EOF&&r!==0;)this.token.type===l.ParenthesisL?r++:this.token.type===l.ParenthesisR&&r--,this.consumeToken();return this.finish(e)}else this.restoreAtMark(t)}return this.finish(e,u.LeftParenthesisExpected,[],[l.ParenthesisL])},n.prototype._parseMediaDeclaration=function(e){return e===void 0&&(e=!1),e?this._tryParseRuleset(!0)||this._tryToParseDeclaration()||this._parseStylesheetStatement(!0):this._parseStylesheetStatement(!1)},n.prototype._parseMedia=function(e){if(e===void 0&&(e=!1),!this.peekKeyword("@media"))return null;var t=this.create(wr);return this.consumeToken(),t.addChild(this._parseMediaQueryList())?this._parseBody(t,this._parseMediaDeclaration.bind(this,e)):this.finish(t,u.MediaQueryExpected)},n.prototype._parseMediaQueryList=function(){var e=this.create(xr);if(!e.addChild(this._parseMediaQuery()))return this.finish(e,u.MediaQueryExpected);for(;this.accept(l.Comma);)if(!e.addChild(this._parseMediaQuery()))return this.finish(e,u.MediaQueryExpected);return this.finish(e)},n.prototype._parseMediaQuery=function(){var e=this.create(Sr),t=this.mark();if(this.acceptIdent("not"),this.peek(l.ParenthesisL))this.restoreAtMark(t),e.addChild(this._parseMediaCondition());else{if(this.acceptIdent("only"),!e.addChild(this._parseIdent()))return null;this.acceptIdent("and")&&e.addChild(this._parseMediaCondition())}return this.finish(e)},n.prototype._parseRatio=function(){var e=this.mark(),t=this.create(No);return this._parseNumeric()?this.acceptDelim("/")?this._parseNumeric()?this.finish(t):this.finish(t,u.NumberExpected):(this.restoreAtMark(e),null):null},n.prototype._parseMediaCondition=function(){var e=this.create(Mo);this.acceptIdent("not");for(var t=!0;t;){if(!this.accept(l.ParenthesisL))return this.finish(e,u.LeftParenthesisExpected,[],[l.CurlyL]);if(this.peek(l.ParenthesisL)||this.peekIdent("not")?e.addChild(this._parseMediaCondition()):e.addChild(this._parseMediaFeature()),!this.accept(l.ParenthesisR))return this.finish(e,u.RightParenthesisExpected,[],[l.CurlyL]);t=this.acceptIdent("and")||this.acceptIdent("or")}return this.finish(e)},n.prototype._parseMediaFeature=function(){var e=this,t=[l.ParenthesisR],r=this.create(Io),i=function(){return e.acceptDelim("<")||e.acceptDelim(">")?(e.hasWhitespace()||e.acceptDelim("="),!0):!!e.acceptDelim("=")};if(r.addChild(this._parseMediaFeatureName())){if(this.accept(l.Colon)){if(!r.addChild(this._parseMediaFeatureValue()))return this.finish(r,u.TermExpected,[],t)}else if(i()){if(!r.addChild(this._parseMediaFeatureValue()))return this.finish(r,u.TermExpected,[],t);if(i()&&!r.addChild(this._parseMediaFeatureValue()))return this.finish(r,u.TermExpected,[],t)}}else if(r.addChild(this._parseMediaFeatureValue())){if(!i())return this.finish(r,u.OperatorExpected,[],t);if(!r.addChild(this._parseMediaFeatureName()))return this.finish(r,u.IdentifierExpected,[],t);if(i()&&!r.addChild(this._parseMediaFeatureValue()))return this.finish(r,u.TermExpected,[],t)}else return this.finish(r,u.IdentifierExpected,[],t);return this.finish(r)},n.prototype._parseMediaFeatureName=function(){return this._parseIdent()},n.prototype._parseMediaFeatureValue=function(){return this._parseRatio()||this._parseTermExpression()},n.prototype._parseMedium=function(){var e=this.create(z);return e.addChild(this._parseIdent())?this.finish(e):null},n.prototype._parsePageDeclaration=function(){return this._parsePageMarginBox()||this._parseRuleSetDeclaration()},n.prototype._parsePage=function(){if(!this.peekKeyword("@page"))return null;var e=this.create(To);if(this.consumeToken(),e.addChild(this._parsePageSelector())){for(;this.accept(l.Comma);)if(!e.addChild(this._parsePageSelector()))return this.finish(e,u.IdentifierExpected)}return this._parseBody(e,this._parsePageDeclaration.bind(this))},n.prototype._parsePageMarginBox=function(){if(!this.peek(l.AtKeyword))return null;var e=this.create(Ao);return this.acceptOneKeyword(sa)||this.markError(e,u.UnknownAtRule,[],[l.CurlyL]),this._parseBody(e,this._parseRuleSetDeclaration.bind(this))},n.prototype._parsePageSelector=function(){if(!this.peek(l.Ident)&&!this.peek(l.Colon))return null;var e=this.create(z);return e.addChild(this._parseIdent()),this.accept(l.Colon)&&!e.addChild(this._parseIdent())?this.finish(e,u.IdentifierExpected):this.finish(e)},n.prototype._parseDocument=function(){if(!this.peekKeyword("@-moz-document"))return null;var e=this.create(zo);return this.consumeToken(),this.resync([],[l.CurlyL]),this._parseBody(e,this._parseStylesheetStatement.bind(this))},n.prototype._parseUnknownAtRule=function(){if(!this.peek(l.AtKeyword))return null;var e=this.create(Fr);e.addChild(this._parseUnknownAtRuleName());var t=function(){return i===0&&o===0&&a===0},r=0,i=0,o=0,a=0;e:for(;;){switch(this.token.type){case l.SemiColon:if(t())break e;break;case l.EOF:return i>0?this.finish(e,u.RightCurlyExpected):a>0?this.finish(e,u.RightSquareBracketExpected):o>0?this.finish(e,u.RightParenthesisExpected):this.finish(e);case l.CurlyL:r++,i++;break;case l.CurlyR:if(i--,r>0&&i===0){if(this.consumeToken(),a>0)return this.finish(e,u.RightSquareBracketExpected);if(o>0)return this.finish(e,u.RightParenthesisExpected);break e}if(i<0){if(o===0&&a===0)break e;return this.finish(e,u.LeftCurlyExpected)}break;case l.ParenthesisL:o++;break;case l.ParenthesisR:if(o--,o<0)return this.finish(e,u.LeftParenthesisExpected);break;case l.BracketL:a++;break;case l.BracketR:if(a--,a<0)return this.finish(e,u.LeftSquareBracketExpected);break}this.consumeToken()}return e},n.prototype._parseUnknownAtRuleName=function(){var e=this.create(z);return this.accept(l.AtKeyword)?this.finish(e):e},n.prototype._parseOperator=function(){if(this.peekDelim("/")||this.peekDelim("*")||this.peekDelim("+")||this.peekDelim("-")||this.peek(l.Dashmatch)||this.peek(l.Includes)||this.peek(l.SubstringOperator)||this.peek(l.PrefixOperator)||this.peek(l.SuffixOperator)||this.peekDelim("=")){var e=this.createNode(p.Operator);return this.consumeToken(),this.finish(e)}else return null},n.prototype._parseUnaryOperator=function(){if(!this.peekDelim("+")&&!this.peekDelim("-"))return null;var e=this.create(z);return this.consumeToken(),this.finish(e)},n.prototype._parseCombinator=function(){if(this.peekDelim(">")){var e=this.create(z);this.consumeToken();var t=this.mark();if(!this.hasWhitespace()&&this.acceptDelim(">")){if(!this.hasWhitespace()&&this.acceptDelim(">"))return e.type=p.SelectorCombinatorShadowPiercingDescendant,this.finish(e);this.restoreAtMark(t)}return e.type=p.SelectorCombinatorParent,this.finish(e)}else if(this.peekDelim("+")){var e=this.create(z);return this.consumeToken(),e.type=p.SelectorCombinatorSibling,this.finish(e)}else if(this.peekDelim("~")){var e=this.create(z);return this.consumeToken(),e.type=p.SelectorCombinatorAllSiblings,this.finish(e)}else if(this.peekDelim("/")){var e=this.create(z);this.consumeToken();var t=this.mark();if(!this.hasWhitespace()&&this.acceptIdent("deep")&&!this.hasWhitespace()&&this.acceptDelim("/"))return e.type=p.SelectorCombinatorShadowPiercingDescendant,this.finish(e);this.restoreAtMark(t)}return null},n.prototype._parseSimpleSelector=function(){var e=this.create(it),t=0;for(e.addChild(this._parseElementName())&&t++;(t===0||!this.hasWhitespace())&&e.addChild(this._parseSimpleSelectorBody());)t++;return t>0?this.finish(e):null},n.prototype._parseSimpleSelectorBody=function(){return this._parsePseudo()||this._parseHash()||this._parseClass()||this._parseAttrib()},n.prototype._parseSelectorIdent=function(){return this._parseIdent()},n.prototype._parseHash=function(){if(!this.peek(l.Hash)&&!this.peekDelim("#"))return null;var e=this.createNode(p.IdentifierSelector);if(this.acceptDelim("#")){if(this.hasWhitespace()||!e.addChild(this._parseSelectorIdent()))return this.finish(e,u.IdentifierExpected)}else this.consumeToken();return this.finish(e)},n.prototype._parseClass=function(){if(!this.peekDelim("."))return null;var e=this.createNode(p.ClassSelector);return this.consumeToken(),this.hasWhitespace()||!e.addChild(this._parseSelectorIdent())?this.finish(e,u.IdentifierExpected):this.finish(e)},n.prototype._parseElementName=function(){var e=this.mark(),t=this.createNode(p.ElementNameSelector);return t.addChild(this._parseNamespacePrefix()),!t.addChild(this._parseSelectorIdent())&&!this.acceptDelim("*")?(this.restoreAtMark(e),null):this.finish(t)},n.prototype._parseNamespacePrefix=function(){var e=this.mark(),t=this.createNode(p.NamespacePrefix);return!t.addChild(this._parseIdent())&&!this.acceptDelim("*"),this.acceptDelim("|")?this.finish(t):(this.restoreAtMark(e),null)},n.prototype._parseAttrib=function(){if(!this.peek(l.BracketL))return null;var e=this.create(_o);return this.consumeToken(),e.setNamespacePrefix(this._parseNamespacePrefix()),e.setIdentifier(this._parseIdent())?(e.setOperator(this._parseOperator())&&(e.setValue(this._parseBinaryExpr()),this.acceptIdent("i")),this.accept(l.BracketR)?this.finish(e):this.finish(e,u.RightSquareBracketExpected)):this.finish(e,u.IdentifierExpected)},n.prototype._parsePseudo=function(){var e=this,t=this._tryParsePseudoIdentifier();if(t){if(!this.hasWhitespace()&&this.accept(l.ParenthesisL)){var r=function(){var i=e.create(z);if(!i.addChild(e._parseSelector(!1)))return null;for(;e.accept(l.Comma)&&i.addChild(e._parseSelector(!1)););return e.peek(l.ParenthesisR)?e.finish(i):null};if(t.addChild(this.try(r)||this._parseBinaryExpr()),!this.accept(l.ParenthesisR))return this.finish(t,u.RightParenthesisExpected)}return this.finish(t)}return null},n.prototype._tryParsePseudoIdentifier=function(){if(!this.peek(l.Colon))return null;var e=this.mark(),t=this.createNode(p.PseudoSelector);return this.consumeToken(),this.hasWhitespace()?(this.restoreAtMark(e),null):(this.accept(l.Colon),this.hasWhitespace()||!t.addChild(this._parseIdent())?this.finish(t,u.IdentifierExpected):this.finish(t))},n.prototype._tryParsePrio=function(){var e=this.mark(),t=this._parsePrio();return t||(this.restoreAtMark(e),null)},n.prototype._parsePrio=function(){if(!this.peek(l.Exclamation))return null;var e=this.createNode(p.Prio);return this.accept(l.Exclamation)&&this.acceptIdent("important")?this.finish(e):null},n.prototype._parseExpr=function(e){e===void 0&&(e=!1);var t=this.create(Cr);if(!t.addChild(this._parseBinaryExpr()))return null;for(;;){if(this.peek(l.Comma)){if(e)return this.finish(t);this.consumeToken()}if(!t.addChild(this._parseBinaryExpr()))break}return this.finish(t)},n.prototype._parseNamedLine=function(){if(!this.peek(l.BracketL))return null;var e=this.createNode(p.GridLine);for(this.consumeToken();e.addChild(this._parseIdent()););return this.accept(l.BracketR)?this.finish(e):this.finish(e,u.RightSquareBracketExpected)},n.prototype._parseBinaryExpr=function(e,t){var r=this.create(kr);if(!r.setLeft(e||this._parseTerm()))return null;if(!r.setOperator(t||this._parseOperator()))return this.finish(r);if(!r.setRight(this._parseTerm()))return this.finish(r,u.TermExpected);r=this.finish(r);var i=this._parseOperator();return i&&(r=this._parseBinaryExpr(r,i)),this.finish(r)},n.prototype._parseTerm=function(){var e=this.create(Po);return e.setOperator(this._parseUnaryOperator()),e.setExpression(this._parseTermExpression())?this.finish(e):null},n.prototype._parseTermExpression=function(){return this._parseURILiteral()||this._parseFunction()||this._parseIdent()||this._parseStringLiteral()||this._parseNumeric()||this._parseHexColor()||this._parseOperation()||this._parseNamedLine()},n.prototype._parseOperation=function(){if(!this.peek(l.ParenthesisL))return null;var e=this.create(z);return this.consumeToken(),e.addChild(this._parseExpr()),this.accept(l.ParenthesisR)?this.finish(e):this.finish(e,u.RightParenthesisExpected)},n.prototype._parseNumeric=function(){if(this.peek(l.Num)||this.peek(l.Percentage)||this.peek(l.Resolution)||this.peek(l.Length)||this.peek(l.EMS)||this.peek(l.EXS)||this.peek(l.Angle)||this.peek(l.Time)||this.peek(l.Dimension)||this.peek(l.Freq)){var e=this.create(Sn);return this.consumeToken(),this.finish(e)}return null},n.prototype._parseStringLiteral=function(){if(!this.peek(l.String)&&!this.peek(l.BadString))return null;var e=this.createNode(p.StringLiteral);return this.consumeToken(),this.finish(e)},n.prototype._parseURILiteral=function(){if(!this.peekRegExp(l.Ident,/^url(-prefix)?$/i))return null;var e=this.mark(),t=this.createNode(p.URILiteral);return this.accept(l.Ident),this.hasWhitespace()||!this.peek(l.ParenthesisL)?(this.restoreAtMark(e),null):(this.scanner.inURL=!0,this.consumeToken(),t.addChild(this._parseURLArgument()),this.scanner.inURL=!1,this.accept(l.ParenthesisR)?this.finish(t):this.finish(t,u.RightParenthesisExpected))},n.prototype._parseURLArgument=function(){var e=this.create(z);return!this.accept(l.String)&&!this.accept(l.BadString)&&!this.acceptUnquotedString()?null:this.finish(e)},n.prototype._parseIdent=function(e){if(!this.peek(l.Ident))return null;var t=this.create(Ce);return e&&(t.referenceTypes=e),t.isCustomProperty=this.peekRegExp(l.Ident,/^--/),this.consumeToken(),this.finish(t)},n.prototype._parseFunction=function(){var e=this.mark(),t=this.create(wt);if(!t.setIdentifier(this._parseFunctionIdentifier()))return null;if(this.hasWhitespace()||!this.accept(l.ParenthesisL))return this.restoreAtMark(e),null;if(t.getArguments().addChild(this._parseFunctionArgument()))for(;this.accept(l.Comma)&&!this.peek(l.ParenthesisR);)t.getArguments().addChild(this._parseFunctionArgument())||this.markError(t,u.ExpressionExpected);return this.accept(l.ParenthesisR)?this.finish(t):this.finish(t,u.RightParenthesisExpected)},n.prototype._parseFunctionIdentifier=function(){if(!this.peek(l.Ident))return null;var e=this.create(Ce);if(e.referenceTypes=[V.Function],this.acceptIdent("progid")){if(this.accept(l.Colon))for(;this.accept(l.Ident)&&this.acceptDelim("."););return this.finish(e)}return this.consumeToken(),this.finish(e)},n.prototype._parseFunctionArgument=function(){var e=this.create(ot);return e.setValue(this._parseExpr(!0))?this.finish(e):null},n.prototype._parseHexColor=function(){if(this.peekRegExp(l.Hash,/^#([A-Fa-f0-9]{3}|[A-Fa-f0-9]{4}|[A-Fa-f0-9]{6}|[A-Fa-f0-9]{8})$/g)){var e=this.create(xn);return this.consumeToken(),this.finish(e)}else return null},n}();function la(n,e){var t=0,r=n.length;if(r===0)return 0;for(;te+t||this.offset===e&&this.length===t?this.findInScope(e,t):null},n.prototype.findInScope=function(e,t){t===void 0&&(t=0);var r=e+t,i=la(this.children,function(a){return a.offset>r});if(i===0)return this;var o=this.children[i-1];return o.offset<=e&&o.offset+o.length>=e+t?o.findInScope(e,t):this},n.prototype.addSymbol=function(e){this.symbols.push(e)},n.prototype.getSymbol=function(e,t){for(var r=0;r0&&(s.arguments=o),s}n.create=e;function t(r){var i=r;return m.defined(i)&&m.string(i.title)&&m.string(i.command)}n.is=t})(st||(st={}));var O;(function(n){function e(o,a){return{range:o,newText:a}}n.replace=e;function t(o,a){return{range:{start:o,end:o},newText:a}}n.insert=t;function r(o){return{range:o,newText:""}}n.del=r;function i(o){var a=o;return m.objectLiteral(a)&&m.string(a.newText)&&X.is(a.range)}n.is=i})(O||(O={}));var lt;(function(n){function e(r,i,o){var a={label:r};return i!==void 0&&(a.needsConfirmation=i),o!==void 0&&(a.description=o),a}n.create=e;function t(r){var i=r;return i!==void 0&&m.objectLiteral(i)&&m.string(i.label)&&(m.boolean(i.needsConfirmation)||i.needsConfirmation===void 0)&&(m.string(i.description)||i.description===void 0)}n.is=t})(lt||(lt={}));var pe;(function(n){function e(t){var r=t;return typeof r=="string"}n.is=e})(pe||(pe={}));var Je;(function(n){function e(o,a,s){return{range:o,newText:a,annotationId:s}}n.replace=e;function t(o,a,s){return{range:{start:o,end:o},newText:a,annotationId:s}}n.insert=t;function r(o,a){return{range:o,newText:"",annotationId:a}}n.del=r;function i(o){var a=o;return O.is(a)&&(lt.is(a.annotationId)||pe.is(a.annotationId))}n.is=i})(Je||(Je={}));var Dt;(function(n){function e(r,i){return{textDocument:r,edits:i}}n.create=e;function t(r){var i=r;return m.defined(i)&&Zt.is(i.textDocument)&&Array.isArray(i.edits)}n.is=t})(Dt||(Dt={}));var Rt;(function(n){function e(r,i,o){var a={kind:"create",uri:r};return i!==void 0&&(i.overwrite!==void 0||i.ignoreIfExists!==void 0)&&(a.options=i),o!==void 0&&(a.annotationId=o),a}n.create=e;function t(r){var i=r;return i&&i.kind==="create"&&m.string(i.uri)&&(i.options===void 0||(i.options.overwrite===void 0||m.boolean(i.options.overwrite))&&(i.options.ignoreIfExists===void 0||m.boolean(i.options.ignoreIfExists)))&&(i.annotationId===void 0||pe.is(i.annotationId))}n.is=t})(Rt||(Rt={}));var zt;(function(n){function e(r,i,o,a){var s={kind:"rename",oldUri:r,newUri:i};return o!==void 0&&(o.overwrite!==void 0||o.ignoreIfExists!==void 0)&&(s.options=o),a!==void 0&&(s.annotationId=a),s}n.create=e;function t(r){var i=r;return i&&i.kind==="rename"&&m.string(i.oldUri)&&m.string(i.newUri)&&(i.options===void 0||(i.options.overwrite===void 0||m.boolean(i.options.overwrite))&&(i.options.ignoreIfExists===void 0||m.boolean(i.options.ignoreIfExists)))&&(i.annotationId===void 0||pe.is(i.annotationId))}n.is=t})(zt||(zt={}));var Mt;(function(n){function e(r,i,o){var a={kind:"delete",uri:r};return i!==void 0&&(i.recursive!==void 0||i.ignoreIfNotExists!==void 0)&&(a.options=i),o!==void 0&&(a.annotationId=o),a}n.create=e;function t(r){var i=r;return i&&i.kind==="delete"&&m.string(i.uri)&&(i.options===void 0||(i.options.recursive===void 0||m.boolean(i.options.recursive))&&(i.options.ignoreIfNotExists===void 0||m.boolean(i.options.ignoreIfNotExists)))&&(i.annotationId===void 0||pe.is(i.annotationId))}n.is=t})(Mt||(Mt={}));var Mn;(function(n){function e(t){var r=t;return r&&(r.changes!==void 0||r.documentChanges!==void 0)&&(r.documentChanges===void 0||r.documentChanges.every(function(i){return m.string(i.kind)?Rt.is(i)||zt.is(i)||Mt.is(i):Dt.is(i)}))}n.is=e})(Mn||(Mn={}));var Qt=function(){function n(e,t){this.edits=e,this.changeAnnotations=t}return n.prototype.insert=function(e,t,r){var i,o;if(r===void 0?i=O.insert(e,t):pe.is(r)?(o=r,i=Je.insert(e,t,r)):(this.assertChangeAnnotations(this.changeAnnotations),o=this.changeAnnotations.manage(r),i=Je.insert(e,t,o)),this.edits.push(i),o!==void 0)return o},n.prototype.replace=function(e,t,r){var i,o;if(r===void 0?i=O.replace(e,t):pe.is(r)?(o=r,i=Je.replace(e,t,r)):(this.assertChangeAnnotations(this.changeAnnotations),o=this.changeAnnotations.manage(r),i=Je.replace(e,t,o)),this.edits.push(i),o!==void 0)return o},n.prototype.delete=function(e,t){var r,i;if(t===void 0?r=O.del(e):pe.is(t)?(i=t,r=Je.del(e,t)):(this.assertChangeAnnotations(this.changeAnnotations),i=this.changeAnnotations.manage(t),r=Je.del(e,i)),this.edits.push(r),i!==void 0)return i},n.prototype.add=function(e){this.edits.push(e)},n.prototype.all=function(){return this.edits},n.prototype.clear=function(){this.edits.splice(0,this.edits.length)},n.prototype.assertChangeAnnotations=function(e){if(e===void 0)throw new Error("Text edit change is not configured to manage change annotations.")},n}(),ni=function(){function n(e){this._annotations=e===void 0?Object.create(null):e,this._counter=0,this._size=0}return n.prototype.all=function(){return this._annotations},Object.defineProperty(n.prototype,"size",{get:function(){return this._size},enumerable:!1,configurable:!0}),n.prototype.manage=function(e,t){var r;if(pe.is(e)?r=e:(r=this.nextId(),t=e),this._annotations[r]!==void 0)throw new Error("Id "+r+" is already in use.");if(t===void 0)throw new Error("No annotation provided for id "+r);return this._annotations[r]=t,this._size++,r},n.prototype.nextId=function(){return this._counter++,this._counter.toString()},n}(),cl=function(){function n(e){var t=this;this._textEditChanges=Object.create(null),e!==void 0?(this._workspaceEdit=e,e.documentChanges?(this._changeAnnotations=new ni(e.changeAnnotations),e.changeAnnotations=this._changeAnnotations.all(),e.documentChanges.forEach(function(r){if(Dt.is(r)){var i=new Qt(r.edits,t._changeAnnotations);t._textEditChanges[r.textDocument.uri]=i}})):e.changes&&Object.keys(e.changes).forEach(function(r){var i=new Qt(e.changes[r]);t._textEditChanges[r]=i})):this._workspaceEdit={}}return Object.defineProperty(n.prototype,"edit",{get:function(){return this.initDocumentChanges(),this._changeAnnotations!==void 0&&(this._changeAnnotations.size===0?this._workspaceEdit.changeAnnotations=void 0:this._workspaceEdit.changeAnnotations=this._changeAnnotations.all()),this._workspaceEdit},enumerable:!1,configurable:!0}),n.prototype.getTextEditChange=function(e){if(Zt.is(e)){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var t={uri:e.uri,version:e.version},r=this._textEditChanges[t.uri];if(!r){var i=[],o={textDocument:t,edits:i};this._workspaceEdit.documentChanges.push(o),r=new Qt(i,this._changeAnnotations),this._textEditChanges[t.uri]=r}return r}else{if(this.initChanges(),this._workspaceEdit.changes===void 0)throw new Error("Workspace edit is not configured for normal text edit changes.");var r=this._textEditChanges[e];if(!r){var i=[];this._workspaceEdit.changes[e]=i,r=new Qt(i),this._textEditChanges[e]=r}return r}},n.prototype.initDocumentChanges=function(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._changeAnnotations=new ni,this._workspaceEdit.documentChanges=[],this._workspaceEdit.changeAnnotations=this._changeAnnotations.all())},n.prototype.initChanges=function(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._workspaceEdit.changes=Object.create(null))},n.prototype.createFile=function(e,t,r){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var i;lt.is(t)||pe.is(t)?i=t:r=t;var o,a;if(i===void 0?o=Rt.create(e,r):(a=pe.is(i)?i:this._changeAnnotations.manage(i),o=Rt.create(e,r,a)),this._workspaceEdit.documentChanges.push(o),a!==void 0)return a},n.prototype.renameFile=function(e,t,r,i){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var o;lt.is(r)||pe.is(r)?o=r:i=r;var a,s;if(o===void 0?a=zt.create(e,t,i):(s=pe.is(o)?o:this._changeAnnotations.manage(o),a=zt.create(e,t,i,s)),this._workspaceEdit.documentChanges.push(a),s!==void 0)return s},n.prototype.deleteFile=function(e,t,r){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var i;lt.is(t)||pe.is(t)?i=t:r=t;var o,a;if(i===void 0?o=Mt.create(e,r):(a=pe.is(i)?i:this._changeAnnotations.manage(i),o=Mt.create(e,r,a)),this._workspaceEdit.documentChanges.push(o),a!==void 0)return a},n}(),ri;(function(n){function e(r){return{uri:r}}n.create=e;function t(r){var i=r;return m.defined(i)&&m.string(i.uri)}n.is=t})(ri||(ri={}));var In;(function(n){function e(r,i){return{uri:r,version:i}}n.create=e;function t(r){var i=r;return m.defined(i)&&m.string(i.uri)&&m.integer(i.version)}n.is=t})(In||(In={}));var Zt;(function(n){function e(r,i){return{uri:r,version:i}}n.create=e;function t(r){var i=r;return m.defined(i)&&m.string(i.uri)&&(i.version===null||m.integer(i.version))}n.is=t})(Zt||(Zt={}));var ii;(function(n){function e(r,i,o,a){return{uri:r,languageId:i,version:o,text:a}}n.create=e;function t(r){var i=r;return m.defined(i)&&m.string(i.uri)&&m.string(i.languageId)&&m.integer(i.version)&&m.string(i.text)}n.is=t})(ii||(ii={}));var Ae;(function(n){n.PlainText="plaintext",n.Markdown="markdown"})(Ae||(Ae={})),function(n){function e(t){var r=t;return r===n.PlainText||r===n.Markdown}n.is=e}(Ae||(Ae={}));var Tn;(function(n){function e(t){var r=t;return m.objectLiteral(t)&&Ae.is(r.kind)&&m.string(r.value)}n.is=e})(Tn||(Tn={}));var E;(function(n){n.Text=1,n.Method=2,n.Function=3,n.Constructor=4,n.Field=5,n.Variable=6,n.Class=7,n.Interface=8,n.Module=9,n.Property=10,n.Unit=11,n.Value=12,n.Enum=13,n.Keyword=14,n.Snippet=15,n.Color=16,n.File=17,n.Reference=18,n.Folder=19,n.EnumMember=20,n.Constant=21,n.Struct=22,n.Event=23,n.Operator=24,n.TypeParameter=25})(E||(E={}));var ve;(function(n){n.PlainText=1,n.Snippet=2})(ve||(ve={}));var Qe;(function(n){n.Deprecated=1})(Qe||(Qe={}));var oi;(function(n){function e(r,i,o){return{newText:r,insert:i,replace:o}}n.create=e;function t(r){var i=r;return i&&m.string(i.newText)&&X.is(i.insert)&&X.is(i.replace)}n.is=t})(oi||(oi={}));var ai;(function(n){n.asIs=1,n.adjustIndentation=2})(ai||(ai={}));var si;(function(n){function e(t){return{label:t}}n.create=e})(si||(si={}));var li;(function(n){function e(t,r){return{items:t||[],isIncomplete:!!r}}n.create=e})(li||(li={}));var en;(function(n){function e(r){return r.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}n.fromPlainText=e;function t(r){var i=r;return m.string(i)||m.objectLiteral(i)&&m.string(i.language)&&m.string(i.value)}n.is=t})(en||(en={}));var ci;(function(n){function e(t){var r=t;return!!r&&m.objectLiteral(r)&&(Tn.is(r.contents)||en.is(r.contents)||m.typedArray(r.contents,en.is))&&(t.range===void 0||X.is(t.range))}n.is=e})(ci||(ci={}));var di;(function(n){function e(t,r){return r?{label:t,documentation:r}:{label:t}}n.create=e})(di||(di={}));var hi;(function(n){function e(t,r){for(var i=[],o=2;o=0;h--){var f=d[h],v=o.offsetAt(f.range.start),b=o.offsetAt(f.range.end);if(b<=c)s=s.substring(0,v)+f.newText+s.substring(b,s.length);else throw new Error("Overlapping edit");c=v}return s}n.applyEdits=r;function i(o,a){if(o.length<=1)return o;var s=o.length/2|0,d=o.slice(0,s),c=o.slice(s);i(d,a),i(c,a);for(var h=0,f=0,v=0;h0&&e.push(t.length),this._lineOffsets=e}return this._lineOffsets},n.prototype.positionAt=function(e){e=Math.max(Math.min(e,this._content.length),0);var t=this.getLineOffsets(),r=0,i=t.length;if(i===0)return xe.create(0,e);for(;re?i=o:r=o+1}var a=r-1;return xe.create(a,e-t[a])},n.prototype.offsetAt=function(e){var t=this.getLineOffsets();if(e.line>=t.length)return this._content.length;if(e.line<0)return 0;var r=t[e.line],i=e.line+1e?i=o:r=o+1}var a=r-1;return{line:a,character:e-t[a]}},n.prototype.offsetAt=function(e){var t=this.getLineOffsets();if(e.line>=t.length)return this._content.length;if(e.line<0)return 0;var r=t[e.line],i=e.line+1d&&c.push(a.substring(d,b)),v.newText.length&&c.push(v.newText),d=i.offsetAt(v.range.end)}return c.push(a.substr(d)),c.join("")}n.applyEdits=r})(Si||(Si={}));function _n(n,e){if(n.length<=1)return n;var t=n.length/2|0,r=n.slice(0,t),i=n.slice(t);_n(r,e),_n(i,e);for(var o=0,a=0,s=0;ot.line||e.line===t.line&&e.character>t.character?{start:t,end:e}:n}function ma(n){var e=ki(n.range);return e!==n.range?{newText:n.newText,range:e}:n}var Fi;(function(n){n.LATEST={textDocument:{completion:{completionItem:{documentationFormat:[Ae.Markdown,Ae.PlainText]}},hover:{contentFormat:[Ae.Markdown,Ae.PlainText]}}}})(Fi||(Fi={}));var It;(function(n){n[n.Unknown=0]="Unknown",n[n.File=1]="File",n[n.Directory=2]="Directory",n[n.SymbolicLink=64]="SymbolicLink"})(It||(It={}));var ct=qe("7VkR"),fa=function(n,e,t){if(t||arguments.length===2)for(var r=0,i=e.length,o;r0&&o[o.length-1])&&(c[0]===6||c[0]===2)){t=0;continue}if(c[0]===3&&(!o||c[1]>o[0]&&c[1]0&&o[o.length-1])&&(c[0]===6||c[0]===2)){t=0;continue}if(c[0]===3&&(!o||c[1]>o[0]&&c[1]=0;a--){var s=this.nodePath[a];if(s instanceof vn)this.getCompletionsForDeclarationProperty(s.getParent(),o);else if(s instanceof Cr)s.parent instanceof Cn?this.getVariableProposals(null,o):this.getCompletionsForExpression(s,o);else if(s instanceof it){var d=s.findAParent(p.ExtendsReference,p.Ruleset);if(d)if(d.type===p.ExtendsReference)this.getCompletionsForExtendsReference(d,s,o);else{var c=d;this.getCompletionsForSelector(c,c&&c.isNested(),o)}}else if(s instanceof ot)this.getCompletionsForFunctionArgument(s,s.getParent(),o);else if(s instanceof gn)this.getCompletionsForDeclarations(s,o);else if(s instanceof Bt)this.getCompletionsForVariableDeclaration(s,o);else if(s instanceof rt)this.getCompletionsForRuleSet(s,o);else if(s instanceof Cn)this.getCompletionsForInterpolation(s,o);else if(s instanceof Vt)this.getCompletionsForFunctionDeclaration(s,o);else if(s instanceof $t)this.getCompletionsForMixinReference(s,o);else if(s instanceof wt)this.getCompletionsForFunctionArgument(null,s,o);else if(s instanceof wn)this.getCompletionsForSupports(s,o);else if(s instanceof xt)this.getCompletionsForSupportsCondition(s,o);else if(s instanceof St)this.getCompletionsForExtendsReference(s,null,o);else if(s.type===p.URILiteral)this.getCompletionForUriLiteralValue(s,o);else if(s.parent===null)this.getCompletionForTopLevel(o);else if(s.type===p.StringLiteral&&this.isImportPathParent(s.parent.type))this.getCompletionForImportPath(s,o);else continue;if(o.items.length>0||this.offset>s.offset)return this.finalize(o)}return this.getCompletionsForStylesheet(o),o.items.length===0&&(this.variablePrefix&&this.currentWord.indexOf(this.variablePrefix)===0&&this.getVariableProposals(null,o)),this.finalize(o)}finally{this.position=null,this.currentWord=null,this.textDocument=null,this.styleSheet=null,this.symbolContext=null,this.defaultReplaceRange=null,this.nodePath=null}},n.prototype.isImportPathParent=function(e){return e===p.Import},n.prototype.finalize=function(e){return e},n.prototype.findInNodePath=function(){for(var e=[],t=0;t=0;r--){var i=this.nodePath[r];if(e.indexOf(i.type)!==-1)return i}return null},n.prototype.getCompletionsForDeclarationProperty=function(e,t){return this.getPropertyProposals(e,t)},n.prototype.getPropertyProposals=function(e,t){var r=this,i=this.isTriggerPropertyValueCompletionEnabled,o=this.isCompletePropertyWithSemicolonEnabled,a=this.cssDataManager.getProperties();return a.forEach(function(s){var d,c,h=!1;e?(d=r.getCompletionRange(e.getProperty()),c=s.name,Fe(e.colonPosition)||(c+=": ",h=!0)):(d=r.getCompletionRange(null),c=s.name+": ",h=!0),!e&&o&&(c+="$0;"),e&&!e.semicolonPosition&&(o&&r.offset>=r.textDocument.offsetAt(d.end)&&(c+="$0;"));var f={label:s.name,documentation:Ge(s,r.doesSupportMarkdown()),tags:Tt(s)?[Qe.Deprecated]:[],textEdit:O.replace(d,c),insertTextFormat:ve.Snippet,kind:E.Property};s.restrictions||(h=!1),i&&h&&(f.command=Ri);var v=typeof s.relevance=="number"?Math.min(Math.max(s.relevance,0),99):50,b=(255-v).toString(16),N=oe(s.name,"-")?Ne.VendorPrefixed:Ne.Normal;f.sortText=N+"_"+b,t.items.push(f)}),this.completionParticipants.forEach(function(s){s.onCssProperty&&s.onCssProperty({propertyName:r.currentWord,range:r.defaultReplaceRange})}),t},Object.defineProperty(n.prototype,"isTriggerPropertyValueCompletionEnabled",{get:function(){var e,t;return(t=(e=this.documentSettings)===null||e===void 0?void 0:e.triggerPropertyValueCompletion)!==null&&t!==void 0?t:!0},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"isCompletePropertyWithSemicolonEnabled",{get:function(){var e,t;return(t=(e=this.documentSettings)===null||e===void 0?void 0:e.completePropertyWithSemicolon)!==null&&t!==void 0?t:!0},enumerable:!1,configurable:!0}),n.prototype.getCompletionsForDeclarationValue=function(e,t){for(var r=this,i=e.getFullPropertyName(),o=this.cssDataManager.getProperty(i),a=e.getValue()||null;a&&a.hasChildren();)a=a.findChildAtOffset(this.offset,!1);if(this.completionParticipants.forEach(function(N){N.onCssPropertyValue&&N.onCssPropertyValue({propertyName:i,propertyValue:r.currentWord,range:r.getCompletionRange(a)})}),o){if(o.restrictions)for(var s=0,d=o.restrictions;s=e.offset+2&&this.getVariableProposals(null,t),t},n.prototype.getVariableProposals=function(e,t){for(var r=this.getSymbolContext().findSymbolsAtOffset(this.offset,V.Variable),i=0,o=r;i0){var o=this.currentWord.match(/^-?\d[\.\d+]*/);o&&(i=o[0],r.isIncomplete=i.length===this.currentWord.length)}else this.currentWord.length===0&&(r.isIncomplete=!0);if(t&&t.parent&&t.parent.type===p.Term&&(t=t.getParent()),e.restrictions)for(var a=0,s=e.restrictions;a=r.end;if(i)return this.getCompletionForTopLevel(t);var o=!r||this.offset<=r.offset;return o?this.getCompletionsForSelector(e,e.isNested(),t):this.getCompletionsForDeclarations(e.getDeclarations(),t)},n.prototype.getCompletionsForSelector=function(e,t,r){var i=this,o=this.findInNodePath(p.PseudoSelector,p.IdentifierSelector,p.ClassSelector,p.ElementNameSelector);!o&&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=X.create(xe.create(this.position.line,this.position.character-this.currentWord.length),this.position));var a=this.cssDataManager.getPseudoClasses();a.forEach(function(M){var j=dt(M.name),K={label:M.name,textEdit:O.replace(i.getCompletionRange(o),j),documentation:Ge(M,i.doesSupportMarkdown()),tags:Tt(M)?[Qe.Deprecated]:[],kind:E.Function,insertTextFormat:M.name!==j?Ue:void 0};oe(M.name,":-")&&(K.sortText=Ne.VendorPrefixed),r.items.push(K)});var s=this.cssDataManager.getPseudoElements();if(s.forEach(function(M){var j=dt(M.name),K={label:M.name,textEdit:O.replace(i.getCompletionRange(o),j),documentation:Ge(M,i.doesSupportMarkdown()),tags:Tt(M)?[Qe.Deprecated]:[],kind:E.Function,insertTextFormat:M.name!==j?Ue:void 0};oe(M.name,"::-")&&(K.sortText=Ne.VendorPrefixed),r.items.push(K)}),!t){for(var d=0,c=oa;d0){var j=N.substr(M.offset,M.length);return j.charAt(0)==="."&&!b[j]&&(b[j]=!0,r.items.push({label:j,textEdit:O.replace(i.getCompletionRange(o),j),kind:E.Keyword})),!1}return!0}),e&&e.isNested()){var _=e.getSelectors().findFirstChildBeforeOffset(this.offset);_&&e.getSelectors().getChildren().indexOf(_)===0&&this.getPropertyProposals(null,r)}return r},n.prototype.getCompletionsForDeclarations=function(e,t){if(!e||this.offset===e.offset)return t;var r=e.findFirstChildBeforeOffset(this.offset);if(!r)return this.getCompletionsForDeclarationProperty(null,t);if(r instanceof bn){var i=r;if(!Fe(i.colonPosition)||this.offset<=i.colonPosition)return this.getCompletionsForDeclarationProperty(i,t);if(Fe(i.semicolonPosition)&&i.semicolonPositione.colonPosition&&this.getVariableProposals(e.getValue(),t),t},n.prototype.getCompletionsForExpression=function(e,t){var r=e.getParent();if(r instanceof ot)return this.getCompletionsForFunctionArgument(r,r.getParent(),t),t;var i=e.findParent(p.Declaration);if(!i)return this.getTermProposals(void 0,null,t),t;var o=e.findChildAtOffset(this.offset,!0);return o?o instanceof Sn||o instanceof Ce?this.getCompletionsForDeclarationValue(i,t):t:this.getCompletionsForDeclarationValue(i,t)},n.prototype.getCompletionsForFunctionArgument=function(e,t,r){var i=t.getIdentifier();return i&&i.matches("var")&&((!t.getArguments().hasChildren()||t.getArguments().getChild(0)===e)&&this.getVariableProposalsForCSSVarFunction(r)),r},n.prototype.getCompletionsForFunctionDeclaration=function(e,t){var r=e.getDeclarations();return r&&this.offset>r.offset&&this.offsete.lParent&&(!Fe(e.rParent)||this.offset<=e.rParent)?this.getCompletionsForDeclarationProperty(null,t):t},n.prototype.getCompletionsForSupports=function(e,t){var r=e.getDeclarations(),i=!r||this.offset<=r.offset;if(i){var o=e.findFirstChildBeforeOffset(this.offset);return o instanceof xt?this.getCompletionsForSupportsCondition(o,t):t}return this.getCompletionForTopLevel(t)},n.prototype.getCompletionsForExtendsReference=function(e,t,r){return r},n.prototype.getCompletionForUriLiteralValue=function(e,t){var r,i,o;if(e.hasChildren()){var s=e.getChild(0);r=s.getText(),i=this.position,o=this.getCompletionRange(s)}else{r="",i=this.position;var a=this.textDocument.positionAt(e.offset+"url(".length);o=X.create(a,a)}return this.completionParticipants.forEach(function(d){d.onCssURILiteralValue&&d.onCssURILiteralValue({uriValue:r,position:i,range:o})}),t},n.prototype.getCompletionForImportPath=function(e,t){var r=this;return this.completionParticipants.forEach(function(i){i.onCssImportPath&&i.onCssImportPath({pathValue:e.getText(),position:r.position,range:r.getCompletionRange(e)})}),t},n.prototype.hasCharacterAtPosition=function(e,t){var r=this.textDocument.getText();return e>=0&&e=0&&` \r":{[()]},*>+`.indexOf(r.charAt(t))===-1;)t--;return r.substring(t+1,e)}function zi(n){return n.toLowerCase()in kt||/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i.test(n)}var Mi=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)}}(),Ra=ke(),Un=function(){function n(){this.parent=null,this.children=null,this.attributes=null}return n.prototype.findAttribute=function(e){if(this.attributes)for(var t=0,r=this.attributes;t"),this.writeLine(t,i.join(""))},n}(),Ve;(function(n){function e(r,i){return i+t(r)+i}n.ensure=e;function t(r){var i=r.match(/^['"](.*)["']$/);return i?i[1]:r}n.remove=t})(Ve||(Ve={}));var za=function(){function n(){this.id=0,this.attr=0,this.tag=0}return n}();function Ti(n,e){for(var t=new Un,r=0,i=n.getChildren();r1){var c=e.cloneWithParent();t.addChild(c.findRoot()),t=c}t.append(a[d])}}break;case p.SelectorPlaceholder:if(o.matches("@at-root"))return t;case p.ElementNameSelector:var h=o.getText();t.addAttr("name",h==="*"?"element":Ee(h));break;case p.ClassSelector:t.addAttr("class",Ee(o.getText().substring(1)));break;case p.IdentifierSelector:t.addAttr("id",Ee(o.getText().substring(1)));break;case p.MixinDeclaration:t.addAttr("class",o.getName());break;case p.PseudoSelector:t.addAttr(Ee(o.getText()),"");break;case p.AttributeSelector:var f=o,v=f.getIdentifier();if(v){var b=f.getValue(),N=f.getOperator(),_=void 0;if(b&&N)switch(Ee(N.getText())){case"|=":_=Ve.remove(Ee(b.getText()))+"-\u2026";break;case"^=":_=Ve.remove(Ee(b.getText()))+"\u2026";break;case"$=":_="\u2026"+Ve.remove(Ee(b.getText()));break;case"~=":_=" \u2026 "+Ve.remove(Ee(b.getText()))+" \u2026 ";break;case"*=":_="\u2026"+Ve.remove(Ee(b.getText()))+"\u2026";break;default:_=Ve.remove(Ee(b.getText()));break}t.addAttr(Ee(v.getText()),_)}break}}return t}function Ee(n){var e=new vt;e.setSource(n);var t=e.scanUnquotedString();return t?t.text:n}var Ma=function(){function n(e){this.cssDataManager=e}return n.prototype.selectorToMarkedString=function(e){var t=Aa(e);if(t){var r=new Ii('"').print(t);return r.push(this.selectorToSpecificityMarkedString(e)),r}else return[]},n.prototype.simpleSelectorToMarkedString=function(e){var t=Ti(e),r=new Ii('"').print(t);return r.push(this.selectorToSpecificityMarkedString(e)),r},n.prototype.isPseudoElementIdentifier=function(e){var t=e.match(/^::?([\w-]+)/);return t?!!this.cssDataManager.getPseudoElement("::"+t[1]):!1},n.prototype.selectorToSpecificityMarkedString=function(e){var t=this,r=function(o){for(var a=0,s=o.getChildren();a0&&r(d)}},i=new za;return r(e),Ra("specificity","[Selector Specificity](https://developer.mozilla.org/en-US/docs/Web/CSS/Specificity): ({0}, {1}, {2})",i.id,i.attr,i.tag)},n}(),Ia=function(){function n(e){this.prev=null,this.element=e}return n.prototype.processSelector=function(e){var t=null;if(!(this.element instanceof ht)&&e.getChildren().some(function(h){return h.hasChildren()&&h.getChild(0).type===p.SelectorCombinator})){var r=this.element.findRoot();r.parent instanceof ht&&(t=this.element,this.element=r.parent,this.element.removeChild(r),this.prev=null)}for(var i=0,o=e.getChildren();i=0;a--){var s=t[a].getSelectors().getChild(0);s&&o.processSelector(s)}return o.processSelector(n),e}var Bn=function(){function n(e,t){this.clientCapabilities=e,this.cssDataManager=t,this.selectorPrinting=new Ma(t)}return n.prototype.configure=function(e){this.defaultSettings=e},n.prototype.doHover=function(e,t,r,i){i===void 0&&(i=this.defaultSettings);function o(M){return X.create(e.positionAt(M.offset),e.positionAt(M.end))}for(var a=e.offsetAt(t),s=fn(r,a),d=null,c=0;c0&&o[o.length-1])&&(c[0]===6||c[0]===2)){t=0;continue}if(c[0]===3&&(!o||c[1]>o[0]&&c[1]=o.length/2&&a.push({property:j.name,score:K})}),a.sort(function(j,K){return K.score-j.score||j.property.localeCompare(K.property)});for(var s=3,d=0,c=a;d=0;d--){var c=s[d];if(c instanceof _e){var h=c.getProperty();if(h&&h.offset===o&&h.end===a){this.getFixesForUnknownProperty(e,h,r,i);return}}}},n}(),Ua=function(){function n(e){this.fullPropertyName=e.getFullPropertyName().toLowerCase(),this.node=e}return n}();function At(n,e,t,r){var i=n[e];i.value=t,t&&(Gr(i.properties,r)||i.properties.push(r))}function Va(n,e,t){At(n,"top",e,t),At(n,"right",e,t),At(n,"bottom",e,t),At(n,"left",e,t)}function he(n,e,t,r){e==="top"||e==="right"||e==="bottom"||e==="left"?At(n,e,t,r):Va(n,t,r)}function Kn(n,e,t){switch(e.length){case 1:he(n,void 0,e[0],t);break;case 2:he(n,"top",e[0],t),he(n,"bottom",e[0],t),he(n,"right",e[1],t),he(n,"left",e[1],t);break;case 3:he(n,"top",e[0],t),he(n,"right",e[1],t),he(n,"left",e[1],t),he(n,"bottom",e[2],t);break;case 4:he(n,"top",e[0],t),he(n,"right",e[1],t),he(n,"bottom",e[2],t),he(n,"left",e[3],t);break}}function Gn(n,e){for(var t=0,r=e;t0)for(var _=this.fetch(r,"float"),M=0;M<_.length;M++){var j=_[M].node,K=j.getValue();K&&!K.matches("none")&&this.addEntry(j,Y.PropertyIgnoredDueToDisplay,Be("rule.propertyIgnoredDueToDisplayInlineBlock","inline-block is ignored due to the float. If 'float' has a value other than 'none', the box is floated and 'display' is treated as 'block'"))}if(N=this.fetchWithValue(r,"display","block"),N.length>0)for(var _=this.fetch(r,"vertical-align"),M=0;M<_.length;M++)this.addEntry(_[M].node,Y.PropertyIgnoredDueToDisplay,Be("rule.propertyIgnoredDueToDisplayBlock","Property is ignored due to the display. With 'display: block', vertical-align should not be used."));for(var ue=this.fetch(r,"float"),M=0;M1)for(var Re=0;Re")||this.peekDelim("<")||this.peekIdent("and")||this.peekIdent("or")||this.peekDelim("%")){var t=this.createNode(p.Operator);return this.consumeToken(),this.finish(t)}return n.prototype._parseOperator.call(this)},e.prototype._parseUnaryOperator=function(){if(this.peekIdent("not")){var t=this.create(z);return this.consumeToken(),this.finish(t)}return n.prototype._parseUnaryOperator.call(this)},e.prototype._parseRuleSetDeclaration=function(){return this.peek(l.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)||n.prototype._parseRuleSetDeclarationAtStatement.call(this):this._parseVariableDeclaration()||this._tryParseRuleset(!0)||n.prototype._parseRuleSetDeclaration.call(this)},e.prototype._parseDeclaration=function(t){var r=this._tryParseCustomPropertyDeclaration(t);if(r)return r;var i=this.create(_e);if(!i.setProperty(this._parseProperty()))return null;if(!this.accept(l.Colon))return this.finish(i,u.ColonExpected,[l.Colon],t||[l.SemiColon]);this.prevToken&&(i.colonPosition=this.prevToken.offset);var o=!1;if(i.setValue(this._parseExpr())&&(o=!0,i.addChild(this._parsePrio())),this.peek(l.CurlyL))i.setNestedProperties(this._parseNestedProperties());else if(!o)return this.finish(i,u.PropertyValueExpected);return this.peek(l.SemiColon)&&(i.semicolonPosition=this.token.offset),this.finish(i)},e.prototype._parseNestedProperties=function(){var t=this.create(br);return this._parseBody(t,this._parseDeclaration.bind(this))},e.prototype._parseExtends=function(){if(this.peekKeyword("@extend")){var t=this.create(St);if(this.consumeToken(),!t.getSelectors().addChild(this._parseSimpleSelector()))return this.finish(t,u.SelectorExpected);for(;this.accept(l.Comma);)t.getSelectors().addChild(this._parseSimpleSelector());return this.accept(l.Exclamation)&&!this.acceptIdent("optional")?this.finish(t,u.UnknownKeyword):this.finish(t)}return null},e.prototype._parseSimpleSelectorBody=function(){return this._parseSelectorCombinator()||this._parseSelectorPlaceholder()||n.prototype._parseSimpleSelectorBody.call(this)},e.prototype._parseSelectorCombinator=function(){if(this.peekDelim("&")){var t=this.createNode(p.SelectorCombinator);for(this.consumeToken();!this.hasWhitespace()&&(this.acceptDelim("-")||this.accept(l.Num)||this.accept(l.Dimension)||t.addChild(this._parseIdent())||this.acceptDelim("&")););return this.finish(t)}return null},e.prototype._parseSelectorPlaceholder=function(){if(this.peekDelim("%")){var t=this.createNode(p.SelectorPlaceholder);return this.consumeToken(),this._parseIdent(),this.finish(t)}else if(this.peekKeyword("@at-root")){var t=this.createNode(p.SelectorPlaceholder);return this.consumeToken(),this.finish(t)}return null},e.prototype._parseElementName=function(){var t=this.mark(),r=n.prototype._parseElementName.call(this);return r&&!this.hasWhitespace()&&this.peek(l.ParenthesisL)?(this.restoreAtMark(t),null):r},e.prototype._tryParsePseudoIdentifier=function(){return this._parseInterpolation()||n.prototype._tryParsePseudoIdentifier.call(this)},e.prototype._parseWarnAndDebug=function(){if(!this.peekKeyword("@debug")&&!this.peekKeyword("@warn")&&!this.peekKeyword("@error"))return null;var t=this.createNode(p.Debug);return this.consumeToken(),t.addChild(this._parseExpr()),this.finish(t)},e.prototype._parseControlStatement=function(t){return t===void 0&&(t=this._parseRuleSetDeclaration.bind(this)),this.peek(l.AtKeyword)?this._parseIfStatement(t)||this._parseForStatement(t)||this._parseEachStatement(t)||this._parseWhileStatement(t):null},e.prototype._parseIfStatement=function(t){return this.peekKeyword("@if")?this._internalParseIfStatement(t):null},e.prototype._internalParseIfStatement=function(t){var r=this.create(vo);if(this.consumeToken(),!r.setExpression(this._parseExpr(!0)))return this.finish(r,u.ExpressionExpected);if(this._parseBody(r,t),this.acceptKeyword("@else")){if(this.peekIdent("if"))r.setElseClause(this._internalParseIfStatement(t));else if(this.peek(l.CurlyL)){var i=this.create(So);this._parseBody(i,t),r.setElseClause(i)}}return this.finish(r)},e.prototype._parseForStatement=function(t){if(!this.peekKeyword("@for"))return null;var r=this.create(yo);return this.consumeToken(),r.setVariable(this._parseVariable())?this.acceptIdent("from")?r.addChild(this._parseBinaryExpr())?!this.acceptIdent("to")&&!this.acceptIdent("through")?this.finish(r,Zn.ThroughOrToExpected,[l.CurlyR]):r.addChild(this._parseBinaryExpr())?this._parseBody(r,t):this.finish(r,u.ExpressionExpected,[l.CurlyR]):this.finish(r,u.ExpressionExpected,[l.CurlyR]):this.finish(r,Zn.FromExpected,[l.CurlyR]):this.finish(r,u.VariableNameExpected,[l.CurlyR])},e.prototype._parseEachStatement=function(t){if(!this.peekKeyword("@each"))return null;var r=this.create(wo);this.consumeToken();var i=r.getVariables();if(!i.addChild(this._parseVariable()))return this.finish(r,u.VariableNameExpected,[l.CurlyR]);for(;this.accept(l.Comma);)if(!i.addChild(this._parseVariable()))return this.finish(r,u.VariableNameExpected,[l.CurlyR]);return this.finish(i),this.acceptIdent("in")?r.addChild(this._parseExpr())?this._parseBody(r,t):this.finish(r,u.ExpressionExpected,[l.CurlyR]):this.finish(r,Zn.InExpected,[l.CurlyR])},e.prototype._parseWhileStatement=function(t){if(!this.peekKeyword("@while"))return null;var r=this.create(xo);return this.consumeToken(),r.addChild(this._parseBinaryExpr())?this._parseBody(r,t):this.finish(r,u.ExpressionExpected,[l.CurlyR])},e.prototype._parseFunctionBodyDeclaration=function(){return this._parseVariableDeclaration()||this._parseReturnStatement()||this._parseWarnAndDebug()||this._parseControlStatement(this._parseFunctionBodyDeclaration.bind(this))},e.prototype._parseFunctionDeclaration=function(){if(!this.peekKeyword("@function"))return null;var t=this.create(Vt);if(this.consumeToken(),!t.setIdentifier(this._parseIdent([V.Function])))return this.finish(t,u.IdentifierExpected,[l.CurlyR]);if(!this.accept(l.ParenthesisL))return this.finish(t,u.LeftParenthesisExpected,[l.CurlyR]);if(t.getParameters().addChild(this._parseParameterDeclaration())){for(;this.accept(l.Comma)&&!this.peek(l.ParenthesisR);)if(!t.getParameters().addChild(this._parseParameterDeclaration()))return this.finish(t,u.VariableNameExpected)}return this.accept(l.ParenthesisR)?this._parseBody(t,this._parseFunctionBodyDeclaration.bind(this)):this.finish(t,u.RightParenthesisExpected,[l.CurlyR])},e.prototype._parseReturnStatement=function(){if(!this.peekKeyword("@return"))return null;var t=this.createNode(p.ReturnStatement);return this.consumeToken(),t.addChild(this._parseExpr())?this.finish(t):this.finish(t,u.ExpressionExpected)},e.prototype._parseMixinDeclaration=function(){if(!this.peekKeyword("@mixin"))return null;var t=this.create(Ct);if(this.consumeToken(),!t.setIdentifier(this._parseIdent([V.Mixin])))return this.finish(t,u.IdentifierExpected,[l.CurlyR]);if(this.accept(l.ParenthesisL)){if(t.getParameters().addChild(this._parseParameterDeclaration())){for(;this.accept(l.Comma)&&!this.peek(l.ParenthesisR);)if(!t.getParameters().addChild(this._parseParameterDeclaration()))return this.finish(t,u.VariableNameExpected)}if(!this.accept(l.ParenthesisR))return this.finish(t,u.RightParenthesisExpected,[l.CurlyR])}return this._parseBody(t,this._parseRuleSetDeclaration.bind(this))},e.prototype._parseParameterDeclaration=function(){var t=this.create(Ut);return t.setIdentifier(this._parseVariable())?(this.accept(cn),this.accept(l.Colon)&&!t.setDefaultValue(this._parseExpr(!0))?this.finish(t,u.VariableValueExpected,[],[l.Comma,l.ParenthesisR]):this.finish(t)):null},e.prototype._parseMixinContent=function(){if(!this.peekKeyword("@content"))return null;var t=this.create(jo);if(this.consumeToken(),this.accept(l.ParenthesisL)){if(t.getArguments().addChild(this._parseFunctionArgument())){for(;this.accept(l.Comma)&&!this.peek(l.ParenthesisR);)if(!t.getArguments().addChild(this._parseFunctionArgument()))return this.finish(t,u.ExpressionExpected)}if(!this.accept(l.ParenthesisR))return this.finish(t,u.RightParenthesisExpected)}return this.finish(t)},e.prototype._parseMixinReference=function(){if(!this.peekKeyword("@include"))return null;var t=this.create($t);this.consumeToken();var r=this._parseIdent([V.Mixin]);if(!t.setIdentifier(r))return this.finish(t,u.IdentifierExpected,[l.CurlyR]);if(!this.hasWhitespace()&&this.acceptDelim(".")&&!this.hasWhitespace()){var i=this._parseIdent([V.Mixin]);if(!i)return this.finish(t,u.IdentifierExpected,[l.CurlyR]);var o=this.create(Er);r.referenceTypes=[V.Module],o.setIdentifier(r),t.setIdentifier(i),t.addChild(o)}if(this.accept(l.ParenthesisL)){if(t.getArguments().addChild(this._parseFunctionArgument())){for(;this.accept(l.Comma)&&!this.peek(l.ParenthesisR);)if(!t.getArguments().addChild(this._parseFunctionArgument()))return this.finish(t,u.ExpressionExpected)}if(!this.accept(l.ParenthesisR))return this.finish(t,u.RightParenthesisExpected)}return(this.peekIdent("using")||this.peek(l.CurlyL))&&t.setContent(this._parseMixinContentDeclaration()),this.finish(t)},e.prototype._parseMixinContentDeclaration=function(){var t=this.create(Uo);if(this.acceptIdent("using")){if(!this.accept(l.ParenthesisL))return this.finish(t,u.LeftParenthesisExpected,[l.CurlyL]);if(t.getParameters().addChild(this._parseParameterDeclaration())){for(;this.accept(l.Comma)&&!this.peek(l.ParenthesisR);)if(!t.getParameters().addChild(this._parseParameterDeclaration()))return this.finish(t,u.VariableNameExpected)}if(!this.accept(l.ParenthesisR))return this.finish(t,u.RightParenthesisExpected,[l.CurlyL])}return this.peek(l.CurlyL)&&this._parseBody(t,this._parseMixinReferenceBodyStatement.bind(this)),this.finish(t)},e.prototype._parseMixinReferenceBodyStatement=function(){return this._tryParseKeyframeSelector()||this._parseRuleSetDeclaration()},e.prototype._parseFunctionArgument=function(){var t=this.create(ot),r=this.mark(),i=this._parseVariable();if(i)if(this.accept(l.Colon))t.setIdentifier(i);else{if(this.accept(cn))return t.setValue(i),this.finish(t);this.restoreAtMark(r)}return t.setValue(this._parseExpr(!0))?(this.accept(cn),t.addChild(this._parsePrio()),this.finish(t)):t.setValue(this._tryParsePrio())?this.finish(t):null},e.prototype._parseURLArgument=function(){var t=this.mark(),r=n.prototype._parseURLArgument.call(this);if(!r||!this.peek(l.ParenthesisR)){this.restoreAtMark(t);var i=this.create(z);return i.addChild(this._parseBinaryExpr()),this.finish(i)}return r},e.prototype._parseOperation=function(){if(!this.peek(l.ParenthesisL))return null;var t=this.create(z);for(this.consumeToken();t.addChild(this._parseListElement());)this.accept(l.Comma);return this.accept(l.ParenthesisR)?this.finish(t):this.finish(t,u.RightParenthesisExpected)},e.prototype._parseListElement=function(){var t=this.create(Vo),r=this._parseBinaryExpr();if(!r)return null;if(this.accept(l.Colon)){if(t.setKey(r),!t.setValue(this._parseBinaryExpr()))return this.finish(t,u.ExpressionExpected)}else t.setValue(r);return this.finish(t)},e.prototype._parseUse=function(){if(!this.peekKeyword("@use"))return null;var t=this.create(ko);if(this.consumeToken(),!t.addChild(this._parseStringLiteral()))return this.finish(t,u.StringLiteralExpected);if(!this.peek(l.SemiColon)&&!this.peek(l.EOF)){if(!this.peekRegExp(l.Ident,/as|with/))return this.finish(t,u.UnknownKeyword);if(this.acceptIdent("as")&&!t.setIdentifier(this._parseIdent([V.Module]))&&!this.acceptDelim("*"))return this.finish(t,u.IdentifierOrWildcardExpected);if(this.acceptIdent("with")){if(!this.accept(l.ParenthesisL))return this.finish(t,u.LeftParenthesisExpected,[l.ParenthesisR]);if(!t.getParameters().addChild(this._parseModuleConfigDeclaration()))return this.finish(t,u.VariableNameExpected);for(;this.accept(l.Comma)&&!this.peek(l.ParenthesisR);)if(!t.getParameters().addChild(this._parseModuleConfigDeclaration()))return this.finish(t,u.VariableNameExpected);if(!this.accept(l.ParenthesisR))return this.finish(t,u.RightParenthesisExpected)}}return!this.accept(l.SemiColon)&&!this.accept(l.EOF)?this.finish(t,u.SemiColonExpected):this.finish(t)},e.prototype._parseModuleConfigDeclaration=function(){var t=this.create(Fo);return t.setIdentifier(this._parseVariable())?!this.accept(l.Colon)||!t.setValue(this._parseExpr(!0))?this.finish(t,u.VariableValueExpected,[],[l.Comma,l.ParenthesisR]):this.accept(l.Exclamation)&&(this.hasWhitespace()||!this.acceptIdent("default"))?this.finish(t,u.UnknownKeyword):this.finish(t):null},e.prototype._parseForward=function(){if(!this.peekKeyword("@forward"))return null;var t=this.create(Eo);if(this.consumeToken(),!t.addChild(this._parseStringLiteral()))return this.finish(t,u.StringLiteralExpected);if(this.acceptIdent("with")){if(!this.accept(l.ParenthesisL))return this.finish(t,u.LeftParenthesisExpected,[l.ParenthesisR]);if(!t.getParameters().addChild(this._parseModuleConfigDeclaration()))return this.finish(t,u.VariableNameExpected);for(;this.accept(l.Comma)&&!this.peek(l.ParenthesisR);)if(!t.getParameters().addChild(this._parseModuleConfigDeclaration()))return this.finish(t,u.VariableNameExpected);if(!this.accept(l.ParenthesisR))return this.finish(t,u.RightParenthesisExpected)}if(!this.peek(l.SemiColon)&&!this.peek(l.EOF)){if(!this.peekRegExp(l.Ident,/as|hide|show/))return this.finish(t,u.UnknownKeyword);if(this.acceptIdent("as")){var r=this._parseIdent([V.Forward]);if(!t.setIdentifier(r))return this.finish(t,u.IdentifierExpected);if(this.hasWhitespace()||!this.acceptDelim("*"))return this.finish(t,u.WildcardExpected)}if((this.peekIdent("hide")||this.peekIdent("show"))&&!t.addChild(this._parseForwardVisibility()))return this.finish(t,u.IdentifierOrVariableExpected)}return!this.accept(l.SemiColon)&&!this.accept(l.EOF)?this.finish(t,u.SemiColonExpected):this.finish(t)},e.prototype._parseForwardVisibility=function(){var t=this.create(Do);for(t.setIdentifier(this._parseIdent());t.addChild(this._parseVariable()||this._parseIdent());)this.accept(l.Comma);return t.getChildren().length>1?t:null},e.prototype._parseSupportsCondition=function(){return this._parseInterpolation()||n.prototype._parseSupportsCondition.call(this)},e}(En),os=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)}}(),w=ke(),as=function(n){os(e,n);function e(t,r){var i=n.call(this,"$",t,r)||this;return Ki(e.scssModuleLoaders),Ki(e.scssModuleBuiltIns),i}return e.prototype.isImportPathParent=function(t){return t===p.Forward||t===p.Use||n.prototype.isImportPathParent.call(this,t)},e.prototype.getCompletionForImportPath=function(t,r){var i=t.getParent().type;if(i===p.Forward||i===p.Use)for(var o=0,a=e.scssModuleBuiltIns;o0){var t=typeof e.documentation=="string"?{kind:"markdown",value:e.documentation}:{kind:"markdown",value:e.documentation.value};t.value+=` `,t.value+=e.references.map(function(r){return"["+r.name+"]("+r.url+")"}).join(" | "),e.documentation=t}})}var ss=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)}}(),Gi="/".charCodeAt(0),ls=` `.charCodeAt(0),cs="\r".charCodeAt(0),ds="\f".charCodeAt(0),er="`".charCodeAt(0),tr=".".charCodeAt(0),hs=l.CustomToken,nr=hs++,Hi=function(n){ss(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.scanNext=function(t){var r=this.escapedJavaScript();return r!==null?this.finishToken(t,r):this.stream.advanceIfChars([tr,tr,tr])?this.finishToken(t,nr):n.prototype.scanNext.call(this,t)},e.prototype.comment=function(){return n.prototype.comment.call(this)?!0:!this.inURL&&this.stream.advanceIfChars([Gi,Gi])?(this.stream.advanceWhileChar(function(t){switch(t){case ls:case cs:case ds:return!1;default:return!0}}),!0):!1},e.prototype.escapedJavaScript=function(){var t=this.stream.peekChar();return t===er?(this.stream.advance(1),this.stream.advanceWhileChar(function(r){return r!==er}),this.stream.advanceIfChar(er)?l.EscapedJavaScript:l.BadEscapedJavaScript):null},e}(vt),ps=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)}}(),us=function(n){ps(e,n);function e(){return n.call(this,new Hi)||this}return e.prototype._parseStylesheetStatement=function(t){return t===void 0&&(t=!1),this.peek(l.AtKeyword)?this._parseVariableDeclaration()||this._parsePlugin()||n.prototype._parseStylesheetAtStatement.call(this,t):this._tryParseMixinDeclaration()||this._tryParseMixinReference()||this._parseFunction()||this._parseRuleset(!0)},e.prototype._parseImport=function(){if(!this.peekKeyword("@import")&&!this.peekKeyword("@import-once"))return null;var t=this.create(yn);if(this.consumeToken(),this.accept(l.ParenthesisL)){if(!this.accept(l.Ident))return this.finish(t,u.IdentifierExpected,[l.SemiColon]);do if(!this.accept(l.Comma))break;while(this.accept(l.Ident));if(!this.accept(l.ParenthesisR))return this.finish(t,u.RightParenthesisExpected,[l.SemiColon])}return!t.addChild(this._parseURILiteral())&&!t.addChild(this._parseStringLiteral())?this.finish(t,u.URIOrStringExpected,[l.SemiColon]):(!this.peek(l.SemiColon)&&!this.peek(l.EOF)&&t.setMedialist(this._parseMediaQueryList()),this.finish(t))},e.prototype._parsePlugin=function(){if(!this.peekKeyword("@plugin"))return null;var t=this.createNode(p.Plugin);return this.consumeToken(),t.addChild(this._parseStringLiteral())?this.accept(l.SemiColon)?this.finish(t):this.finish(t,u.SemiColonExpected):this.finish(t,u.StringLiteralExpected)},e.prototype._parseMediaQuery=function(){var t=n.prototype._parseMediaQuery.call(this);if(!t){var r=this.create(Sr);return r.addChild(this._parseVariable())?this.finish(r):null}return t},e.prototype._parseMediaDeclaration=function(t){return t===void 0&&(t=!1),this._tryParseRuleset(t)||this._tryToParseDeclaration()||this._tryParseMixinDeclaration()||this._tryParseMixinReference()||this._parseDetachedRuleSetMixin()||this._parseStylesheetStatement(t)},e.prototype._parseMediaFeatureName=function(){return this._parseIdent()||this._parseVariable()},e.prototype._parseVariableDeclaration=function(t){t===void 0&&(t=[]);var r=this.create(Bt),i=this.mark();if(!r.setVariable(this._parseVariable(!0)))return null;if(this.accept(l.Colon)){if(this.prevToken&&(r.colonPosition=this.prevToken.offset),r.setValue(this._parseDetachedRuleSet()))r.needsSemicolon=!1;else if(!r.setValue(this._parseExpr()))return this.finish(r,u.VariableValueExpected,[],t);r.addChild(this._parsePrio())}else return this.restoreAtMark(i),null;return this.peek(l.SemiColon)&&(r.semicolonPosition=this.token.offset),this.finish(r)},e.prototype._parseDetachedRuleSet=function(){var t=this.mark();if(this.peekDelim("#")||this.peekDelim("."))if(this.consumeToken(),!this.hasWhitespace()&&this.accept(l.ParenthesisL)){var r=this.create(Ct);if(r.getParameters().addChild(this._parseMixinParameter()))for(;(this.accept(l.Comma)||this.accept(l.SemiColon))&&!this.peek(l.ParenthesisR);)r.getParameters().addChild(this._parseMixinParameter())||this.markError(r,u.IdentifierExpected,[],[l.ParenthesisR]);if(!this.accept(l.ParenthesisR))return this.restoreAtMark(t),null}else return this.restoreAtMark(t),null;if(!this.peek(l.CurlyL))return null;var i=this.create(ne);return this._parseBody(i,this._parseDetachedRuleSetBody.bind(this)),this.finish(i)},e.prototype._parseDetachedRuleSetBody=function(){return this._tryParseKeyframeSelector()||this._parseRuleSetDeclaration()},e.prototype._addLookupChildren=function(t){if(!t.addChild(this._parseLookupValue()))return!1;for(var r=!1;!(this.peek(l.BracketL)&&(r=!0),!t.addChild(this._parseLookupValue()));)r=!1;return!r},e.prototype._parseLookupValue=function(){var t=this.create(z),r=this.mark();return this.accept(l.BracketL)?(t.addChild(this._parseVariable(!1,!0))||t.addChild(this._parsePropertyIdentifier()))&&this.accept(l.BracketR)||this.accept(l.BracketR)?t:(this.restoreAtMark(r),null):(this.restoreAtMark(r),null)},e.prototype._parseVariable=function(t,r){t===void 0&&(t=!1),r===void 0&&(r=!1);var i=!t&&this.peekDelim("$");if(!this.peekDelim("@")&&!i&&!this.peek(l.AtKeyword))return null;for(var o=this.create(kn),a=this.mark();this.acceptDelim("@")||!t&&this.acceptDelim("$");)if(this.hasWhitespace())return this.restoreAtMark(a),null;return!this.accept(l.AtKeyword)&&!this.accept(l.Ident)?(this.restoreAtMark(a),null):!r&&this.peek(l.BracketL)&&!this._addLookupChildren(o)?(this.restoreAtMark(a),null):o},e.prototype._parseTermExpression=function(){return this._parseVariable()||this._parseEscaped()||n.prototype._parseTermExpression.call(this)||this._tryParseMixinReference(!1)},e.prototype._parseEscaped=function(){if(this.peek(l.EscapedJavaScript)||this.peek(l.BadEscapedJavaScript)){var t=this.createNode(p.EscapedValue);return this.consumeToken(),this.finish(t)}if(this.peekDelim("~")){var t=this.createNode(p.EscapedValue);return this.consumeToken(),this.accept(l.String)||this.accept(l.EscapedJavaScript)?this.finish(t):this.finish(t,u.TermExpected)}return null},e.prototype._parseOperator=function(){var t=this._parseGuardOperator();return t||n.prototype._parseOperator.call(this)},e.prototype._parseGuardOperator=function(){if(this.peekDelim(">")){var t=this.createNode(p.Operator);return this.consumeToken(),this.acceptDelim("="),t}else if(this.peekDelim("=")){var t=this.createNode(p.Operator);return this.consumeToken(),this.acceptDelim("<"),t}else if(this.peekDelim("<")){var t=this.createNode(p.Operator);return this.consumeToken(),this.acceptDelim("="),t}return null},e.prototype._parseRuleSetDeclaration=function(){return this.peek(l.AtKeyword)?this._parseKeyframe()||this._parseMedia(!0)||this._parseImport()||this._parseSupports(!0)||this._parseDetachedRuleSetMixin()||this._parseVariableDeclaration()||n.prototype._parseRuleSetDeclarationAtStatement.call(this):this._tryParseMixinDeclaration()||this._tryParseRuleset(!0)||this._tryParseMixinReference()||this._parseFunction()||this._parseExtend()||n.prototype._parseRuleSetDeclaration.call(this)},e.prototype._parseKeyframeIdent=function(){return this._parseIdent([V.Keyframe])||this._parseVariable()},e.prototype._parseKeyframeSelector=function(){return this._parseDetachedRuleSetMixin()||n.prototype._parseKeyframeSelector.call(this)},e.prototype._parseSimpleSelectorBody=function(){return this._parseSelectorCombinator()||n.prototype._parseSimpleSelectorBody.call(this)},e.prototype._parseSelector=function(t){var r=this.create(yt),i=!1;for(t&&(i=r.addChild(this._parseCombinator()));r.addChild(this._parseSimpleSelector());){i=!0;var o=this.mark();if(r.addChild(this._parseGuard())&&this.peek(l.CurlyL))break;this.restoreAtMark(o),r.addChild(this._parseCombinator())}return i?this.finish(r):null},e.prototype._parseSelectorCombinator=function(){if(this.peekDelim("&")){var t=this.createNode(p.SelectorCombinator);for(this.consumeToken();!this.hasWhitespace()&&(this.acceptDelim("-")||this.accept(l.Num)||this.accept(l.Dimension)||t.addChild(this._parseIdent())||this.acceptDelim("&")););return this.finish(t)}return null},e.prototype._parseSelectorIdent=function(){if(!this.peekInterpolatedIdent())return null;var t=this.createNode(p.SelectorInterpolation),r=this._acceptInterpolatedIdent(t);return r?this.finish(t):null},e.prototype._parsePropertyIdentifier=function(t){t===void 0&&(t=!1);var r=/^[\w-]+/;if(!this.peekInterpolatedIdent()&&!this.peekRegExp(this.token.type,r))return null;var i=this.mark(),o=this.create(Ce);o.isCustomProperty=this.acceptDelim("-")&&this.acceptDelim("-");var a=!1;return t?o.isCustomProperty?a=o.addChild(this._parseIdent()):a=o.addChild(this._parseRegexp(r)):o.isCustomProperty?a=this._acceptInterpolatedIdent(o):a=this._acceptInterpolatedIdent(o,r),a?(!t&&!this.hasWhitespace()&&(this.acceptDelim("+"),this.hasWhitespace()||this.acceptIdent("_")),this.finish(o)):(this.restoreAtMark(i),null)},e.prototype.peekInterpolatedIdent=function(){return this.peek(l.Ident)||this.peekDelim("@")||this.peekDelim("$")||this.peekDelim("-")},e.prototype._acceptInterpolatedIdent=function(t,r){for(var i=this,o=!1,a=function(){var d=i.mark();return i.acceptDelim("-")&&(i.hasWhitespace()||i.acceptDelim("-"),i.hasWhitespace())?(i.restoreAtMark(d),null):i._parseInterpolation()},s=r?function(){return i.acceptRegexp(r)}:function(){return i.accept(l.Ident)};(s()||t.addChild(this._parseInterpolation()||this.try(a)))&&!(o=!0,this.hasWhitespace()););return o},e.prototype._parseInterpolation=function(){var t=this.mark();if(this.peekDelim("@")||this.peekDelim("$")){var r=this.createNode(p.Interpolation);return this.consumeToken(),this.hasWhitespace()||!this.accept(l.CurlyL)?(this.restoreAtMark(t),null):r.addChild(this._parseIdent())?this.accept(l.CurlyR)?this.finish(r):this.finish(r,u.RightCurlyExpected):this.finish(r,u.IdentifierExpected)}return null},e.prototype._tryParseMixinDeclaration=function(){var t=this.mark(),r=this.create(Ct);if(!r.setIdentifier(this._parseMixinDeclarationIdentifier())||!this.accept(l.ParenthesisL))return this.restoreAtMark(t),null;if(r.getParameters().addChild(this._parseMixinParameter()))for(;(this.accept(l.Comma)||this.accept(l.SemiColon))&&!this.peek(l.ParenthesisR);)r.getParameters().addChild(this._parseMixinParameter())||this.markError(r,u.IdentifierExpected,[],[l.ParenthesisR]);return this.accept(l.ParenthesisR)?(r.setGuard(this._parseGuard()),this.peek(l.CurlyL)?this._parseBody(r,this._parseMixInBodyDeclaration.bind(this)):(this.restoreAtMark(t),null)):(this.restoreAtMark(t),null)},e.prototype._parseMixInBodyDeclaration=function(){return this._parseFontFace()||this._parseRuleSetDeclaration()},e.prototype._parseMixinDeclarationIdentifier=function(){var t;if(this.peekDelim("#")||this.peekDelim(".")){if(t=this.create(Ce),this.consumeToken(),this.hasWhitespace()||!t.addChild(this._parseIdent()))return null}else if(this.peek(l.Hash))t=this.create(Ce),this.consumeToken();else return null;return t.referenceTypes=[V.Mixin],this.finish(t)},e.prototype._parsePseudo=function(){if(!this.peek(l.Colon))return null;var t=this.mark(),r=this.create(St);return this.consumeToken(),this.acceptIdent("extend")?this._completeExtends(r):(this.restoreAtMark(t),n.prototype._parsePseudo.call(this))},e.prototype._parseExtend=function(){if(!this.peekDelim("&"))return null;var t=this.mark(),r=this.create(St);return this.consumeToken(),this.hasWhitespace()||!this.accept(l.Colon)||!this.acceptIdent("extend")?(this.restoreAtMark(t),null):this._completeExtends(r)},e.prototype._completeExtends=function(t){if(!this.accept(l.ParenthesisL))return this.finish(t,u.LeftParenthesisExpected);var r=t.getSelectors();if(!r.addChild(this._parseSelector(!0)))return this.finish(t,u.SelectorExpected);for(;this.accept(l.Comma);)if(!r.addChild(this._parseSelector(!0)))return this.finish(t,u.SelectorExpected);return this.accept(l.ParenthesisR)?this.finish(t):this.finish(t,u.RightParenthesisExpected)},e.prototype._parseDetachedRuleSetMixin=function(){if(!this.peek(l.AtKeyword))return null;var t=this.mark(),r=this.create($t);return r.addChild(this._parseVariable(!0))&&(this.hasWhitespace()||!this.accept(l.ParenthesisL))?(this.restoreAtMark(t),null):this.accept(l.ParenthesisR)?this.finish(r):this.finish(r,u.RightParenthesisExpected)},e.prototype._tryParseMixinReference=function(t){t===void 0&&(t=!0);for(var r=this.mark(),i=this.create($t),o=this._parseMixinDeclarationIdentifier();o;){this.acceptDelim(">");var a=this._parseMixinDeclarationIdentifier();if(a)i.getNamespaces().addChild(o),o=a;else break}if(!i.setIdentifier(o))return this.restoreAtMark(r),null;var s=!1;if(this.accept(l.ParenthesisL)){if(s=!0,i.getArguments().addChild(this._parseMixinArgument())){for(;(this.accept(l.Comma)||this.accept(l.SemiColon))&&!this.peek(l.ParenthesisR);)if(!i.getArguments().addChild(this._parseMixinArgument()))return this.finish(i,u.ExpressionExpected)}if(!this.accept(l.ParenthesisR))return this.finish(i,u.RightParenthesisExpected);o.referenceTypes=[V.Mixin]}else o.referenceTypes=[V.Mixin,V.Rule];return this.peek(l.BracketL)?t||this._addLookupChildren(i):i.addChild(this._parsePrio()),!s&&!this.peek(l.SemiColon)&&!this.peek(l.CurlyR)&&!this.peek(l.EOF)?(this.restoreAtMark(r),null):this.finish(i)},e.prototype._parseMixinArgument=function(){var t=this.create(ot),r=this.mark(),i=this._parseVariable();return i&&(this.accept(l.Colon)?t.setIdentifier(i):this.restoreAtMark(r)),t.setValue(this._parseDetachedRuleSet()||this._parseExpr(!0))?this.finish(t):(this.restoreAtMark(r),null)},e.prototype._parseMixinParameter=function(){var t=this.create(Ut);if(this.peekKeyword("@rest")){var r=this.create(z);return this.consumeToken(),this.accept(nr)?(t.setIdentifier(this.finish(r)),this.finish(t)):this.finish(t,u.DotExpected,[],[l.Comma,l.ParenthesisR])}if(this.peek(nr)){var i=this.create(z);return this.consumeToken(),t.setIdentifier(this.finish(i)),this.finish(t)}var o=!1;return t.setIdentifier(this._parseVariable())&&(this.accept(l.Colon),o=!0),!t.setDefaultValue(this._parseDetachedRuleSet()||this._parseExpr(!0))&&!o?null:this.finish(t)},e.prototype._parseGuard=function(){if(!this.peekIdent("when"))return null;var t=this.create(Bo);if(this.consumeToken(),t.isNegated=this.acceptIdent("not"),!t.getConditions().addChild(this._parseGuardCondition()))return this.finish(t,u.ConditionExpected);for(;this.acceptIdent("and")||this.accept(l.Comma);)if(!t.getConditions().addChild(this._parseGuardCondition()))return this.finish(t,u.ConditionExpected);return this.finish(t)},e.prototype._parseGuardCondition=function(){if(!this.peek(l.ParenthesisL))return null;var t=this.create($o);return this.consumeToken(),!t.addChild(this._parseExpr()),this.accept(l.ParenthesisR)?this.finish(t):this.finish(t,u.RightParenthesisExpected)},e.prototype._parseFunction=function(){var t=this.mark(),r=this.create(wt);if(!r.setIdentifier(this._parseFunctionIdentifier()))return null;if(this.hasWhitespace()||!this.accept(l.ParenthesisL))return this.restoreAtMark(t),null;if(r.getArguments().addChild(this._parseMixinArgument())){for(;(this.accept(l.Comma)||this.accept(l.SemiColon))&&!this.peek(l.ParenthesisR);)if(!r.getArguments().addChild(this._parseMixinArgument()))return this.finish(r,u.ExpressionExpected)}return this.accept(l.ParenthesisR)?this.finish(r):this.finish(r,u.RightParenthesisExpected)},e.prototype._parseFunctionIdentifier=function(){if(this.peekDelim("%")){var t=this.create(Ce);return t.referenceTypes=[V.Function],this.consumeToken(),this.finish(t)}return n.prototype._parseFunctionIdentifier.call(this)},e.prototype._parseURLArgument=function(){var t=this.mark(),r=n.prototype._parseURLArgument.call(this);if(!r||!this.peek(l.ParenthesisR)){this.restoreAtMark(t);var i=this.create(z);return i.addChild(this._parseBinaryExpr()),this.finish(i)}return r},e}(En),ms=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)}}(),T=ke(),fs=function(n){ms(e,n);function e(t,r){return n.call(this,"@",t,r)||this}return e.prototype.createFunctionProposals=function(t,r,i,o){for(var a=0,s=t;a 50%"),example:"percentage(@number);",type:"percentage"},{name:"round",description:T("less.builtin.round","rounds a number to a number of places"),example:"round(number, [places: 0]);"},{name:"sqrt",description:T("less.builtin.sqrt","calculates square root of a number"),example:"sqrt(number);"},{name:"sin",description:T("less.builtin.sin","sine function"),example:"sin(number);"},{name:"tan",description:T("less.builtin.tan","tangent function"),example:"tan(number);"},{name:"atan",description:T("less.builtin.atan","arctangent - inverse of tangent function"),example:"atan(number);"},{name:"pi",description:T("less.builtin.pi","returns pi"),example:"pi();"},{name:"pow",description:T("less.builtin.pow","first argument raised to the power of the second argument"),example:"pow(@base, @exponent);"},{name:"mod",description:T("less.builtin.mod","first argument modulus second argument"),example:"mod(number, number);"},{name:"min",description:T("less.builtin.min","returns the lowest of one or more values"),example:"min(@x, @y);"},{name:"max",description:T("less.builtin.max","returns the lowest of one or more values"),example:"max(@x, @y);"}],e.colorProposals=[{name:"argb",example:"argb(@color);",description:T("less.builtin.argb","creates a #AARRGGBB")},{name:"hsl",example:"hsl(@hue, @saturation, @lightness);",description:T("less.builtin.hsl","creates a color")},{name:"hsla",example:"hsla(@hue, @saturation, @lightness, @alpha);",description:T("less.builtin.hsla","creates a color")},{name:"hsv",example:"hsv(@hue, @saturation, @value);",description:T("less.builtin.hsv","creates a color")},{name:"hsva",example:"hsva(@hue, @saturation, @value, @alpha);",description:T("less.builtin.hsva","creates a color")},{name:"hue",example:"hue(@color);",description:T("less.builtin.hue","returns the `hue` channel of `@color` in the HSL space")},{name:"saturation",example:"saturation(@color);",description:T("less.builtin.saturation","returns the `saturation` channel of `@color` in the HSL space")},{name:"lightness",example:"lightness(@color);",description:T("less.builtin.lightness","returns the `lightness` channel of `@color` in the HSL space")},{name:"hsvhue",example:"hsvhue(@color);",description:T("less.builtin.hsvhue","returns the `hue` channel of `@color` in the HSV space")},{name:"hsvsaturation",example:"hsvsaturation(@color);",description:T("less.builtin.hsvsaturation","returns the `saturation` channel of `@color` in the HSV space")},{name:"hsvvalue",example:"hsvvalue(@color);",description:T("less.builtin.hsvvalue","returns the `value` channel of `@color` in the HSV space")},{name:"red",example:"red(@color);",description:T("less.builtin.red","returns the `red` channel of `@color`")},{name:"green",example:"green(@color);",description:T("less.builtin.green","returns the `green` channel of `@color`")},{name:"blue",example:"blue(@color);",description:T("less.builtin.blue","returns the `blue` channel of `@color`")},{name:"alpha",example:"alpha(@color);",description:T("less.builtin.alpha","returns the `alpha` channel of `@color`")},{name:"luma",example:"luma(@color);",description:T("less.builtin.luma","returns the `luma` value (perceptual brightness) of `@color`")},{name:"saturate",example:"saturate(@color, 10%);",description:T("less.builtin.saturate","return `@color` 10% points more saturated")},{name:"desaturate",example:"desaturate(@color, 10%);",description:T("less.builtin.desaturate","return `@color` 10% points less saturated")},{name:"lighten",example:"lighten(@color, 10%);",description:T("less.builtin.lighten","return `@color` 10% points lighter")},{name:"darken",example:"darken(@color, 10%);",description:T("less.builtin.darken","return `@color` 10% points darker")},{name:"fadein",example:"fadein(@color, 10%);",description:T("less.builtin.fadein","return `@color` 10% points less transparent")},{name:"fadeout",example:"fadeout(@color, 10%);",description:T("less.builtin.fadeout","return `@color` 10% points more transparent")},{name:"fade",example:"fade(@color, 50%);",description:T("less.builtin.fade","return `@color` with 50% transparency")},{name:"spin",example:"spin(@color, 10);",description:T("less.builtin.spin","return `@color` with a 10 degree larger in hue")},{name:"mix",example:"mix(@color1, @color2, [@weight: 50%]);",description:T("less.builtin.mix","return a mix of `@color1` and `@color2`")},{name:"greyscale",example:"greyscale(@color);",description:T("less.builtin.greyscale","returns a grey, 100% desaturated color")},{name:"contrast",example:"contrast(@color1, [@darkcolor: black], [@lightcolor: white], [@threshold: 43%]);",description:T("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);"}],e}(Ln);function gs(n,e){var t=bs(n);return vs(t,e)}function bs(n){function e(f){return n.positionAt(f.offset).line}function t(f){return n.positionAt(f.offset+f.len).line}function r(){switch(n.languageId){case"scss":return new qi;case"less":return new Hi;default:return new vt}}function i(f,v){var b=e(f),N=t(f);return b!==N?{startLine:b,endLine:N,kind:v}:null}var o=[],a=[],s=r();s.ignoreComment=!1,s.setSource(n.getText());for(var d=s.scan(),c=null,h=function(){switch(d.type){case l.CurlyL:case ln:{a.push({line:e(d),type:"brace",isStart:!0});break}case l.CurlyR:{if(a.length!==0){var f=Ji(a,"brace");if(!f)break;var v=t(d);f.type==="brace"&&(c&&t(c)!==v&&v--,f.line!==v&&o.push({startLine:f.line,endLine:v,kind:void 0}))}break}case l.Comment:{var b=function(j){return j==="#region"?{line:e(d),type:"comment",isStart:!0}:{line:t(d),type:"comment",isStart:!1}},N=function(j){var K=j.text.match(/^\s*\/\*\s*(#region|#endregion)\b\s*(.*?)\s*\*\//);if(K)return b(K[1]);if(n.languageId==="scss"||n.languageId==="less"){var ue=j.text.match(/^\s*\/\/\s*(#region|#endregion)\b\s*(.*?)\s*/);if(ue)return b(ue[1])}return null},_=N(d);if(_)if(_.isStart)a.push(_);else{var f=Ji(a,"comment");if(!f)break;f.type==="comment"&&(f.line!==_.line&&o.push({startLine:f.line,endLine:_.line,kind:"region"}))}else{var M=i(d,"comment");M&&o.push(M)}break}}c=d,d=s.scan()};d.type!==l.EOF;)h();return o}function Ji(n,e){if(n.length===0)return null;for(var t=n.length-1;t>=0;t--)if(n[t].type===e&&n[t].isStart)return n.splice(t,1)[0];return null}function vs(n,e){var t=e&&e.rangeLimit||Number.MAX_VALUE,r=n.sort(function(a,s){var d=a.startLine-s.startLine;return d===0&&(d=a.endLine-s.endLine),d}),i=[],o=-1;return r.forEach(function(a){a.startLine && ]#",relevance:50,description:"@counter-style descriptor. Specifies the symbols used by the marker-construction algorithm specified by the system descriptor. Needs to be specified if the counter system is 'additive'.",restrictions:["integer","string","image","identifier"]},{name:"align-content",values:[{name:"center",description:"Lines are packed toward the center of the flex container."},{name:"flex-end",description:"Lines are packed toward the end of the flex container."},{name:"flex-start",description:"Lines are packed toward the start of the flex container."},{name:"space-around",description:"Lines are evenly distributed in the flex container, with half-size spaces on either end."},{name:"space-between",description:"Lines are evenly distributed in the flex container."},{name:"stretch",description:"Lines stretch to take up the remaining space."}],syntax:"normal | | | ? ",relevance:61,description:"Aligns a flex container\u2019s lines within the flex container when there is extra space in the cross-axis, similar to how 'justify-content' aligns individual items within the main-axis.",restrictions:["enum"]},{name:"align-items",values:[{name:"baseline",description:"If the flex item\u2019s inline axis is the same as the cross axis, this value is identical to 'flex-start'. Otherwise, it participates in baseline alignment."},{name:"center",description:"The flex item\u2019s margin box is centered in the cross axis within the line."},{name:"flex-end",description:"The cross-end margin edge of the flex item is placed flush with the cross-end edge of the line."},{name:"flex-start",description:"The cross-start margin edge of the flex item is placed flush with the cross-start edge of the line."},{name:"stretch",description:"If the cross size property of the flex item computes to auto, and neither of the cross-axis margins are auto, the flex item is stretched."}],syntax:"normal | stretch | | [ ? ]",relevance:85,description:"Aligns flex items along the cross axis of the current line of the flex container.",restrictions:["enum"]},{name:"justify-items",values:[{name:"auto"},{name:"normal"},{name:"end"},{name:"start"},{name:"flex-end",description:'"Flex items are packed toward the end of the line."'},{name:"flex-start",description:'"Flex items are packed toward the start of the line."'},{name:"self-end",description:"The item is packed flush to the edge of the alignment container of the end side of the item, in the appropriate axis."},{name:"self-start",description:"The item is packed flush to the edge of the alignment container of the start side of the item, in the appropriate axis.."},{name:"center",description:"The items are packed flush to each other toward the center of the of the alignment container."},{name:"left"},{name:"right"},{name:"baseline"},{name:"first baseline"},{name:"last baseline"},{name:"stretch",description:"If the cross size property of the flex item computes to auto, and neither of the cross-axis margins are auto, the flex item is stretched."},{name:"save"},{name:"unsave"},{name:"legacy"}],syntax:"normal | stretch | | ? [ | left | right ] | legacy | legacy && [ left | right | center ]",relevance:51,description:"Defines the default justify-self for all items of the box, giving them the default way of justifying each box along the appropriate axis",restrictions:["enum"]},{name:"justify-self",values:[{name:"auto"},{name:"normal"},{name:"end"},{name:"start"},{name:"flex-end",description:'"Flex items are packed toward the end of the line."'},{name:"flex-start",description:'"Flex items are packed toward the start of the line."'},{name:"self-end",description:"The item is packed flush to the edge of the alignment container of the end side of the item, in the appropriate axis."},{name:"self-start",description:"The item is packed flush to the edge of the alignment container of the start side of the item, in the appropriate axis.."},{name:"center",description:"The items are packed flush to each other toward the center of the of the alignment container."},{name:"left"},{name:"right"},{name:"baseline"},{name:"first baseline"},{name:"last baseline"},{name:"stretch",description:"If the cross size property of the flex item computes to auto, and neither of the cross-axis margins are auto, the flex item is stretched."},{name:"save"},{name:"unsave"}],syntax:"auto | normal | stretch | | ? [ | left | right ]",relevance:52,description:"Defines the way of justifying a box inside its container along the appropriate axis.",restrictions:["enum"]},{name:"align-self",values:[{name:"auto",description:"Computes to the value of 'align-items' on the element\u2019s parent, or 'stretch' if the element has no parent. On absolutely positioned elements, it computes to itself."},{name:"baseline",description:"If the flex item\u2019s inline axis is the same as the cross axis, this value is identical to 'flex-start'. Otherwise, it participates in baseline alignment."},{name:"center",description:"The flex item\u2019s margin box is centered in the cross axis within the line."},{name:"flex-end",description:"The cross-end margin edge of the flex item is placed flush with the cross-end edge of the line."},{name:"flex-start",description:"The cross-start margin edge of the flex item is placed flush with the cross-start edge of the line."},{name:"stretch",description:"If the cross size property of the flex item computes to auto, and neither of the cross-axis margins are auto, the flex item is stretched."}],syntax:"auto | normal | stretch | | ? ",relevance:70,description:"Allows the default alignment along the cross axis to be overridden for individual flex items.",restrictions:["enum"]},{name:"all",browsers:["E79","FF27","S9.1","C37","O24"],values:[],syntax:"initial | inherit | unset | revert",relevance:52,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/all"}],description:"Shorthand that resets all properties except 'direction' and 'unicode-bidi'.",restrictions:["enum"]},{name:"alt",browsers:["S9"],values:[],relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/alt"}],description:"Provides alternative text for assistive technology to replace the generated content of a ::before or ::after element.",restrictions:["string","enum"]},{name:"animation",values:[{name:"alternate",description:"The animation cycle iterations that are odd counts are played in the normal direction, and the animation cycle iterations that are even counts are played in a reverse direction."},{name:"alternate-reverse",description:"The animation cycle iterations that are odd counts are played in the reverse direction, and the animation cycle iterations that are even counts are played in a normal direction."},{name:"backwards",description:"The beginning property value (as defined in the first @keyframes at-rule) is applied before the animation is displayed, during the period defined by 'animation-delay'."},{name:"both",description:"Both forwards and backwards fill modes are applied."},{name:"forwards",description:"The final property value (as defined in the last @keyframes at-rule) is maintained after the animation completes."},{name:"infinite",description:"Causes the animation to repeat forever."},{name:"none",description:"No animation is performed"},{name:"normal",description:"Normal playback."},{name:"reverse",description:"All iterations of the animation are played in the reverse direction from the way they were specified."}],syntax:"#",relevance:82,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/animation"}],description:"Shorthand property combines six of the animation properties into a single property.",restrictions:["time","timing-function","enum","identifier","number"]},{name:"animation-delay",syntax:"