stylus/vendor/stylus-lang-bundle/stylus-renderer.min.js

106 lines
154 KiB
JavaScript
Raw Normal View History

var StylusRenderer=function(){"use strict";function assertPath(t){if("string"!=typeof t)throw new TypeError("Path must be a string. Received "+JSON.stringify(t))}function normalizeStringPosix(t,e){for(var n,i="",r=0,o=-1,a=0,h=0;h<=t.length;++h){if(h<t.length)n=t.charCodeAt(h);else{if(47===n)break;n=47}if(47===n){if(o===h-1||1===a);else if(o!==h-1&&2===a){if(i.length<2||2!==r||46!==i.charCodeAt(i.length-1)||46!==i.charCodeAt(i.length-2))if(i.length>2){var l=i.lastIndexOf("/");if(l!==i.length-1){-1===l?(i="",r=0):r=(i=i.slice(0,l)).length-1-i.lastIndexOf("/"),o=h,a=0;continue}}else if(2===i.length||1===i.length){i="",r=0,o=h,a=0;continue}e&&(i.length>0?i+="/..":i="..",r=2)}else i.length>0?i+="/"+t.slice(o+1,h):i=t.slice(o+1,h),r=h-o-1;o=h,a=0}else 46===n&&-1!==a?++a:a=-1}return i}var t={resolve:function resolve(){for(var t,e="",n=!1,i=arguments.length-1;i>=-1&&!n;i--){var r;i>=0?r=arguments[i]:(void 0===t&&(t=process.cwd()),r=t),assertPath(r),0!==r.length&&(e=r+"/"+e,n=47===r.charCodeAt(0))}return e=normalizeStringPosix(e,!n),n?e.length>0?"/"+e:"/":e.length>0?e:"."},normalize:function normalize(t){if(assertPath(t),0===t.length)return".";var e=47===t.charCodeAt(0),n=47===t.charCodeAt(t.length-1);return 0!==(t=normalizeStringPosix(t,!e)).length||e||(t="."),t.length>0&&n&&(t+="/"),e?"/"+t:t},isAbsolute:function isAbsolute(t){return assertPath(t),t.length>0&&47===t.charCodeAt(0)},join:function join(){if(0===arguments.length)return".";for(var e,n=0;n<arguments.length;++n){var i=arguments[n];assertPath(i),i.length>0&&(void 0===e?e=i:e+="/"+i)}return void 0===e?".":t.normalize(e)},relative:function relative(e,n){if(assertPath(e),assertPath(n),e===n)return"";if((e=t.resolve(e))===(n=t.resolve(n)))return"";for(var i=1;i<e.length&&47===e.charCodeAt(i);++i);for(var r=e.length,o=r-i,a=1;a<n.length&&47===n.charCodeAt(a);++a);for(var h=n.length-a,l=o<h?o:h,c=-1,u=0;u<=l;++u){if(u===l){if(h>l){if(47===n.charCodeAt(a+u))return n.slice(a+u+1);if(0===u)return n.slice(a+u)}else o>l&&(47===e.charCodeAt(i+u)?c=u:0===u&&(c=0));break}var f=e.charCodeAt(i+u);if(f!==n.charCodeAt(a+u))break;47===f&&(c=u)}var d="";for(u=i+c+1;u<=r;++u)u!==r&&47!==e.charCodeAt(u)||(0===d.length?d+="..":d+="/..");return d.length>0?d+n.slice(a+c):(a+=c,47===n.charCodeAt(a)&&++a,n.slice(a))},_makeLong:function _makeLong(t){return t},dirname:function dirname(t){if(assertPath(t),0===t.length)return".";for(var e=t.charCodeAt(0),n=47===e,i=-1,r=!0,o=t.length-1;o>=1;--o)if(47===(e=t.charCodeAt(o))){if(!r){i=o;break}}else r=!1;return-1===i?n?"/":".":n&&1===i?"//":t.slice(0,i)},basename:function basename(t,e){if(void 0!==e&&"string"!=typeof e)throw new TypeError('"ext" argument must be a string');assertPath(t);var n,i=0,r=-1,o=!0;if(void 0!==e&&e.length>0&&e.length<=t.length){if(e.length===t.length&&e===t)return"";var a=e.length-1,h=-1;for(n=t.length-1;n>=0;--n){var l=t.charCodeAt(n);if(47===l){if(!o){i=n+1;break}}else-1===h&&(o=!1,h=n+1),a>=0&&(l===e.charCodeAt(a)?-1==--a&&(r=n):(a=-1,r=h))}return i===r?r=h:-1===r&&(r=t.length),t.slice(i,r)}for(n=t.length-1;n>=0;--n)if(47===t.charCodeAt(n)){if(!o){i=n+1;break}}else-1===r&&(o=!1,r=n+1);return-1===r?"":t.slice(i,r)},extname:function extname(t){assertPath(t);for(var e=-1,n=0,i=-1,r=!0,o=0,a=t.length-1;a>=0;--a){var h=t.charCodeAt(a);if(47!==h)-1===i&&(r=!1,i=a+1),46===h?-1===e?e=a:1!==o&&(o=1):-1!==e&&(o=-1);else if(!r){n=a+1;break}}return-1===e||-1===i||0===o||1===o&&e===i-1&&e===n+1?"":t.slice(e,i)},format:function format(t){if(null===t||"object"!=typeof t)throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof t);return function _format(t,e){var n=e.dir||e.root,i=e.base||(e.name||"")+(e.ext||"");return n?n===e.root?n+i:n+t+i:i}("/",t)},parse:function parse(t){assertPath(t);var e={root:"",dir:"",base:"",ext:"",name:""};if(0===t.length)return e;var n,i=t.charCodeAt(0),r=47===i;r?(e.root="/",n=1):n=0;for(var o=-1,a=0,h=-1,l=!0,c=t.length-1,u=0;c>=n;--c)if(47!==(i=t.charCodeAt(c)))-1===h&&(l=!1,h=c+1),46===i?-1===o?o=c:1!==u&&(u=1):-1!==o&&(u=-1);else if(!l){a=c+1;break}return-1===o||-1===h
/*!
* Stylus - Token
* Copyright (c) Automattic <developer.wordpress.com>
* MIT Licensed
*/
let e;t.posix=t;var n=e=e=function Token(t,e){this.type=t,this.val=e};n.prototype.inspect=function(){var t=" "+nodeUtil.inspect(this.val);return"[Token:"+this.lineno+":"+this.column+" "+this.type+""+(this.val?t:"")+"]"},n.prototype.toString=function(){return(void 0===this.val?this.type:this.val).toString()};var i=1e3,r=60*i,o=60*r,a=24*o;function plural(t,e,n){if(!(t<e))return t<1.5*e?Math.floor(t/e)+" "+n:Math.ceil(t/e)+" "+n+"s"}const h=createDebug.debug=createDebug.default=createDebug;function createDebug(t){var e;function debug(){if(debug.enabled){var t=debug,n=+new Date,i=n-(e||n);t.diff=i,t.prev=e,t.curr=n,e=n;for(var r=new Array(arguments.length),o=0;o<r.length;o++)r[o]=arguments[o];r[0]=h.coerce(r[0]),"string"!=typeof r[0]&&r.unshift("%O");var a=0;r[0]=r[0].replace(/%([a-zA-Z%])/g,(function(e,n){if("%%"===e)return e;a++;var i=h.formatters[n];if("function"==typeof i){var o=r[a];e=i.call(t,o),r.splice(a,1),a--}return e})),h.formatArgs.call(t,r);var l=debug.log||h.log||console.log.bind(console);l.apply(t,r)}}return debug.namespace=t,debug.enabled=h.enabled(t),debug.useColors=h.useColors(),debug.color=function selectColor(t){var e,n=0;for(e in t)n=(n<<5)-n+t.charCodeAt(e),n|=0;return h.colors[Math.abs(n)%h.colors.length]}(t),debug.destroy=destroy,"function"==typeof h.init&&h.init(debug),h.instances.push(debug),debug}function destroy(){var t=h.instances.indexOf(this);return-1!==t&&(h.instances.splice(t,1),!0)}h.coerce=function coerce(t){return t instanceof Error?t.stack||t.message:t},h.disable=function disable(){h.enable("")},h.enable=function enable(t){var e;h.save(t),h.names=[],h.skips=[];var n=("string"==typeof t?t:"").split(/[\s,]+/),i=n.length;for(e=0;e<i;e++)n[e]&&("-"===(t=n[e].replace(/\*/g,".*?"))[0]?h.skips.push(new RegExp("^"+t.substr(1)+"$")):h.names.push(new RegExp("^"+t+"$")));for(e=0;e<h.instances.length;e++){var r=h.instances[e];r.enabled=h.enabled(r.namespace)}},h.enabled=function enabled(t){if("*"===t[t.length-1])return!0;var e,n;for(e=0,n=h.skips.length;e<n;e++)if(h.skips[e].test(t))return!1;for(e=0,n=h.names.length;e<n;e++)if(h.names[e].test(t))return!0;return!1},h.humanize=function _require_ms_(t,e){e=e||{};var n=typeof t;if("string"===n&&t.length>0)return function parse(t){if(!((t=String(t)).length>100)){var e=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(t);if(e){var n=parseFloat(e[1]);switch((e[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*n;case"days":case"day":case"d":return n*a;case"hours":case"hour":case"hrs":case"hr":case"h":return n*o;case"minutes":case"minute":case"mins":case"min":case"m":return n*r;case"seconds":case"second":case"secs":case"sec":case"s":return n*i;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return n;default:return}}}}(t);if("number"===n&&!1===isNaN(t))return e.long?function fmtLong(t){return plural(t,a,"day")||plural(t,o,"hour")||plural(t,r,"minute")||plural(t,i,"second")||t+" ms"}(t):function fmtShort(t){return t>=a?Math.round(t/a)+"d":t>=o?Math.round(t/o)+"h":t>=r?Math.round(t/r)+"m":t>=i?Math.round(t/i)+"s":t+"ms"}(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))},h.instances=[],h.names=[],h.skips=[],h.formatters={};const l=h;function load(){var t;try{t=l.storage.debug}catch(t){}return!t&&"undefined"!=typeof process&&"env"in process&&(t=process.env.DEBUG),t}l.log=function log(){return"object"==typeof console&&console.log&&Function.prototype.apply.call(console.log,console,arguments)},l.formatArgs=function formatArgs(t){var e=this.useColors;if(t[0]=(e?"%c":"")+this.namespace+(e?" %c":" ")+t[0]+(e?"%c ":" ")+"+"+l.humanize(this.diff),e){var n="color: "+this.color;t.splice(1,0,n,"color: inherit");var i=0,r=0;t[0].replace(/%[a-zA-Z%]/g,(function(t){"%%"!==t&&(i++,"%c"===t&&(r=i))})),t.splice(r,0,n)}},l.save=function save(t){try{null==t?l.storage.removeItem("debug"):l.storage.debug=t}catch(t){}},l.load=load,l.useColors=function useColors(){return!("undefined"==typ
/*!
* Stylus - Visitor
* Copyright (c) Automattic <developer.wordpress.com>
* MIT Licensed
*/(),l.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],l.formatters.j=function(t){try{return JSON.stringify(t)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}},l.enable(load());var c=function Visitor(t){this.root=t};c.prototype.visit=function(t,e){var n="visit"+t.constructor.name;return this[n]?this[n](t):t};
/*!
* Stylus - units
* Copyright (c) Automattic <developer.wordpress.com>
* MIT Licensed
*/
var u=["em","ex","ch","rem","vw","vh","vmin","vmax","cm","mm","in","pt","pc","px","deg","grad","rad","turn","s","ms","Hz","kHz","dpi","dpcm","dppx","x","%","fr"],f=function Stack(){Array.apply(this,arguments)};
/*!
* Stylus - Stack
* Copyright (c) Automattic <developer.wordpress.com>
* MIT Licensed
*/f.prototype.__proto__=Array.prototype,f.prototype.push=function(t){return t.stack=this,t.parent=this.currentFrame,[].push.apply(this,arguments)},f.prototype.__defineGetter__("currentFrame",(function(){return this[this.length-1]})),f.prototype.getBlockFrame=function(t){for(var e=0;e<this.length;++e)if(t==this[e].block)return this[e]},f.prototype.lookup=function(t){var e,n=this.currentFrame.block;do{var i=this.getBlockFrame(n);if(i&&(e=i.lookup(t)))return e}while(n=n.parent)},f.prototype.inspect=function(){return this.reverse().map((function(t){return t.inspect()})).join("\n")},f.prototype.toString=function(){for(var t,e,n=[],i=this.length;i--;)if(t=this[i].block.node)switch(e="("+t.filename+":"+(t.lineno+1)+":"+t.column+")",t.nodeName){case"function":n.push(" at "+t.name+"() "+e);break;case"group":n.push(' at "'+t.nodes[0].val+'" '+e)}return n.join("\n")};
/*!
* Stylus - stack - Scope
* Copyright (c) Automattic <developer.wordpress.com>
* MIT Licensed
*/
var d=function Scope(){this.locals={}};d.prototype.add=function(t){this.locals[t.name]=t.val},d.prototype.lookup=function(t){return function hasOwnProperty(t,e){return Object.prototype.hasOwnProperty.call(t,e)}(this.locals,t)?this.locals[t]:void 0},d.prototype.inspect=function(){var t=Object.keys(this.locals).map((function(t){return"@"+t}));return"[Scope"+(t.length?" "+t.join(", "):"")+"]"};var m=function Frame(t){this._scope=!1===t.scope?null:new d,this.block=t};m.prototype.__defineGetter__("scope",(function(){return this._scope||this.parent.scope})),m.prototype.lookup=function(t){return this.scope.lookup(t)},m.prototype.inspect=function(){return"[Frame "+(!1===this.block.scope?"scope-less":this.scope.inspect())+"]"};const _export_sync_=t=>"functions/index.styl"===t?[t]:[];function notImplemented(){throw new Error("Not implemented")}const _export_statSync_=t=>"functions/index.styl"===t?{mtime:0}:notImplemented(),_export_readFileSync_=t=>"functions/index.styl"===t?"called-from = ()\n\nvendors = moz webkit o ms official\n\n// stringify the given arg\n\n-string(arg)\n type(arg) + ' ' + arg\n\n// require a color\n\nrequire-color(color)\n unless color is a 'color'\n error('RGB or HSL value expected, got a ' + -string(color))\n\n// require a unit\n\nrequire-unit(n)\n unless n is a 'unit'\n error('unit expected, got a ' + -string(n))\n\n// require a string\n\nrequire-string(str)\n unless str is a 'string' or str is a 'ident'\n error('string expected, got a ' + -string(str))\n\n// Math functions\n\nabs(n) { math(n, 'abs') }\nmin(a, b) { a < b ? a : b }\nmax(a, b) { a > b ? a : b }\n\n// Trigonometrics\nPI = -math-prop('PI')\n\nradians-to-degrees(angle)\n angle * (180 / PI)\n\ndegrees-to-radians(angle)\n angle * (PI / 180)\n\nsin(n)\n n = unit(n) == 'deg' ? degrees-to-radians(unit(n, '')) : unit(n, '')\n round(math(n, 'sin'), 9)\n\ncos(n)\n n = unit(n) == 'deg' ? degrees-to-radians(unit(n, '')) : unit(n, '')\n round(math(n, 'cos'), 9)\n\n// Rounding Math functions\n\nceil(n, precision = 0)\n multiplier = 10 ** precision\n math(n * multiplier, 'ceil') / multiplier\n\nfloor(n, precision = 0)\n multiplier = 10 ** precision\n math(n * multiplier, 'floor') / multiplier\n\nround(n, precision = 0)\n multiplier = 10 ** precision\n math(n * multiplier, 'round') / multiplier\n\n// return the sum of the given numbers\n\nsum(nums)\n sum = 0\n sum += n for n in nums\n\n// return the average of the given numbers\n\navg(nums)\n sum(nums) / length(nums)\n\n// return a unitless number, or pass through\n\nremove-unit(n)\n if typeof(n) is \"unit\"\n unit(n, \"\")\n else\n n\n\n// convert a percent to a decimal, or pass through\n\npercent-to-decimal(n)\n if unit(n) is \"%\"\n remove-unit(n) / 100\n else\n n\n\n// check if n is an odd number\n\nodd(n)\n 1 == n % 2\n\n// check if n is an even number\n\neven(n)\n 0 == n % 2\n\n// check if color is light\n\nlight(color)\n lightness(color) >= 50%\n\n// check if color is dark\n\ndark(color)\n lightness(color) < 50%\n\n// desaturate color by amount\n\ndesaturate(color, amount)\n adjust(color, 'saturation', - amount)\n\n// saturate color by amount\n\nsaturate(color = '', amount = 100%)\n if color is a 'color'\n adjust(color, 'saturation', amount)\n else\n unquote( \"saturate(\" + color + \")\" )\n\n// darken by the given amount\n\ndarken(color, amount)\n adjust(color, 'lightness', - amount)\n\n// lighten by the given amount\n\nlighten(color, amount)\n adjust(color, 'lightness', amount)\n\n// decrease opacity by amount\n\nfade-out(color, amount)\n color - rgba(black, percent-to-decimal(amount))\n\n// increase opacity by amount\n\nfade-in(color, amount)\n color + rgba(black, percent-to-decimal(amount))\n\n// spin hue by a given amount\n\nspin(color, amount)\n color + unit(amount, deg)\n\n// mix two colors by a given amount\n\nmix(color1, color2, weight = 50%)\n unless weight in 0..100\n error(\"Weight must be between 0% and 100%\")\n\n if length(color1) == 2\n weight = color1[0]\n color1 = color1[1]\n\n else if length(color2) == 2\n
/*!
* Stylus - Selector Parser
* Copyright (c) Automattic <developer.wordpress.com>
* MIT Licensed
*/
var v=[">","+","~"],y=function SelectorParser(t,e,n){this.str=t,this.stack=e||[],this.parts=n||[],this.pos=0,this.level=2,this.nested=!0,this.ignore=!1};y.prototype.skip=function(t){this.str=this.str.substr(t),this.pos+=t},y.prototype.skipSpaces=function(){for(;" "==this.str[0];)this.skip(1)},y.prototype.advance=function(){return this.root()||this.relative()||this.initial()||this.escaped()||this.parent()||this.partial()||this.char()},y.prototype.root=function(){this.pos||"/"!=this.str[0]||"deep"==this.str.slice(1,5)||(this.nested=!1,this.skip(1))},y.prototype.relative=function(t){if((!this.pos||t)&&"../"==this.str.slice(0,3)){for(this.nested=!1,this.skip(3);this.relative(!0);)this.level++;if(!this.raw){var e=this.stack[this.stack.length-this.level];if(e)return e;this.ignore=!0}}},y.prototype.initial=function(){if(!this.pos&&"~"==this.str[0]&&"/"==this.str[1])return this.nested=!1,this.skip(2),this.stack[0]},y.prototype.escaped=function(){if("\\"==this.str[0]){var t=this.str[1];if("&"==t||"^"==t)return this.skip(2),t}},y.prototype.parent=function(){if("&"==this.str[0]){if(this.nested=!1,!this.pos&&(!this.stack.length||this.raw)){for(var t=0;" "==this.str[++t];);if(~v.indexOf(this.str[t]))return void this.skip(t+1)}if(this.skip(1),!this.raw)return this.stack[this.stack.length-1]}},y.prototype.partial=function(){if("^"==this.str[0]&&"["==this.str[1]){this.skip(2),this.skipSpaces();var t=this.range();if(this.skipSpaces(),"]"!=this.str[0])return"^[";if(this.nested=!1,this.skip(1),t)return t;this.ignore=!0}},y.prototype.number=function(){var t=0,e="";for("-"==this.str[t]&&(e+=this.str[t++]);this.str.charCodeAt(t)>=48&&this.str.charCodeAt(t)<=57;)e+=this.str[t++];if(e)return this.skip(t),Number(e)},y.prototype.range=function(){var t,e=this.number();if(".."==this.str.slice(0,2)){this.skip(2);var n=this.number(),i=this.parts.length;if(e<0&&(e=i+e-1),n<0&&(n=i+n-1),e>n){var r=e;e=n,n=r}n<i-1&&(t=this.parts.slice(e,n+1).map((function(t){var e=new y(t,this.stack,this.parts);return e.raw=!0,e.parse()}),this).map((function(t){return(t.nested?" ":"")+t.val})).join("").trim())}else t=this.stack[e<0?this.stack.length+e-1:e];if(t)return t;this.ignore=!0},y.prototype.char=function(){var t=this.str[0];return this.skip(1),t},y.prototype.parse=function(){for(var t="";this.str.length;)if(t+=this.advance()||"",this.ignore){t="";break}return{val:t.trimRight(),nested:this.nested}};var g=t.basename,k=t.relative,w=t.join;const b=t.isAbsolute||function(t){return"\\\\"==t.substr(0,2)||"/"===t.charAt(0)||/^[a-z]:[\\\/]/i.test(t)},_export_lookup_=function(t,e,n){var i,r=e.length;if(b(t))try{return _export_statSync_(t),t}catch(t){}for(;r--;)try{if(n==(i=w(e[r],t)))continue;return _export_statSync_(i),i}catch(t){}},_export_find_=function(t,e,n){var i,r,o=e.length;if(b(t)&&(r=_export_sync_(t)).length)return r;for(;o--;)if(n!=(i=w(e[o],t))&&(r=_export_sync_(i)).length)return r},_export_lookupIndex_=function(t,e,n){var i=_export_find_(w(t,"index.styl"),e,n);return i||(i=_export_find_(w(t,g(t).replace(/\.styl/i,"")+".styl"),e,n)),i||~t.indexOf("node_modules")||(i=function lookupPackage(t){var r=_export_lookup_(w(t,"package.json"),e,n);if(!r)return/\.styl$/i.test(t)?_export_lookupIndex_(t,e,n):lookupPackage(t+".styl");var o=require(k("/",r)).main;return i=o?_export_find_(w(t,o),e,n):_export_lookupIndex_(t,e,n)}(w("node_modules",t))),i},_export_formatException_=function(t,e){var n=e.lineno,i=e.column,r=e.filename,o=e.input,a=(a=e.context||8)/2,h=("\n"+o).split("\n"),l=Math.max(n-a,1),c=Math.min(h.length,n+a),u=c.toString().length;return a=h.slice(l,c).map((function(t,e){var r=e+l;return" "+Array(u-r.toString().length+1).join(" ")+r+"| "+t+(r==n?"\n"+Array(r.toString().length+5+i).join("-")+"^":"")})).join("\n"),t.message=r+":"+n+":"+i+"\n"+a+"\n\n"+t.message+"\n"+(t.stylusStack?t.stylusStack+"\n":""),t.fromStylus&&(t.stack="Error: "+t.message),t},_export_assertType_=function(t,e,n){if(_export_assertPresent_(t,n),t.nodeName!=e){var i=t.nodeName;throw new Error("TypeError: expected "+(n?'"'+n+'" to be a ':"")+e+", but got "+i+":"+t)}},_export_assertString_=fu
/*!
* Stylus - colors
* Copyright (c) Automattic <developer.wordpress.com>
* MIT Licensed
*/
var D={aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],transparent:[0,0,0,0],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1],rebeccapurple:[102,51,153,1]},Q=t.extname,W={".gif":"image/gif",".png":"image/png",".jpg":"image/jpeg",".jpeg":"image/jpeg",".svg":"image/svg+xml",".webp":"image/webp",".ttf":"application/x-font-ttf",".eot":"application/vnd.ms-fontobject",".woff":"application/font-woff",".woff2":"application/font-woff2"};const _module_exports_$k=function(t){var e=(t=t||{}).paths||[],n=null!=t.limit?t.limit:3e4,i=t.mime
/*!
* Stylus - String
* Copyright (c) Automattic <developer.wordpress.com>
* MIT Licensed
*/
var pt=H.s,ut=function String(t,e){X.call(this),this.val=t,this.string=t,this.prefixed=!1,this.quote="string"!=typeof e?"'":e};let ft;ut.prototype.__proto__=X.prototype,ut.prototype.toString=function(){return this.quote+this.val+this.quote},ut.prototype.clone=function(){var t=new ut(this.val,this.quote);return t.lineno=this.lineno,t.column=this.column,t.filename=this.filename,t},ut.prototype.toJSON=function(){return{__type:"String",val:this.val,quote:this.quote,lineno:this.lineno,column:this.column,filename:this.filename}},ut.prototype.toBoolean=function(){return Dt.Boolean(this.val.length)},ut.prototype.coerce=function(t){switch(t.nodeName){case"string":return t;case"expression":return new ut(t.nodes.map((function(t){return this.coerce(t).val}),this).join(" "));default:return new ut(t.toString())}},ut.prototype.operate=function(t,e){switch(t){case"%":(i=new Dt.Expression).push(this);var n="expression"==e.nodeName?_export_unwrap_(e).nodes:[e];return pt.apply(null,[i].concat(n));case"+":var i;return(i=new Dt.Expression).push(new ut(this.val+this.coerce(e).val)),i;default:return X.prototype.operate.call(this,t,e)}};var dt=ft=ft=function HSLA(t,e,n,i){X.call(this),this.h=clampDegrees(t),this.s=clampPercentage(e),this.l=clampPercentage(n),this.a=function clampAlpha(t){return Math.max(0,Math.min(t,1))}(i),this.hsla=this};function clampDegrees(t){return(t%=360)>=0?t:360+t}function clampPercentage(t){return Math.max(0,Math.min(t,100))}dt.prototype.__proto__=X.prototype,dt.prototype.toString=function(){return"hsla("+this.h+","+this.s.toFixed(0)+"%,"+this.l.toFixed(0)+"%,"+this.a+")"},dt.prototype.clone=function(t){var e=new dt(this.h,this.s,this.l,this.a);return e.lineno=this.lineno,e.column=this.column,e.filename=this.filename,e},dt.prototype.toJSON=function(){return{__type:"HSLA",h:this.h,s:this.s,l:this.l,a:this.a,lineno:this.lineno,column:this.column,filename:this.filename}},dt.prototype.__defineGetter__("rgba",(function(){return Dt.RGBA.fromHSLA(this)})),dt.prototype.__defineGetter__("hash",(function(){return this.rgba.toString()})),dt.prototype.add=function(t,e,n){return new dt(this.h+t,this.s+e,this.l+n,this.a)},dt.prototype.sub=function(t,e,n){return this.add(-t,-e,-n)},dt.prototype.operate=function(t,e){switch(t){case"==":case"!=":case"<=":case">=":case"<":case">":case"is a":case"||":case"&&":return this.rgba.operate(t,e);default:return this.rgba.operate(t,e).hsla}},ft.fromRGBA=function(t){var e,n,i=t.r/255,r=t.g/255,o=t.b/255,a=t.a,h=Math.min(i,r,o),l=Math.max(i,r,o),c=(l+h)/2,u=l-h;switch(l){case h:e=0;break;case i:e=60*(r-o)/u;break;case r:e=60*(o-i)/u+120;break;case o:e=60*(i-r)/u+240}return n=l==h?0:c<.5?u/(2*c):u/(2-2*c),new dt(e%=360,n*=100,c*=100,a)},dt.prototype.adjustLightness=function(t){return this.l=clampPercentage(this.l+this.l*(t/100)),this},dt.prototype.adjustHue=function(t){return this.h=clampDegrees(this.h+t),this};var mt=H.adjust;let vt;var yt=vt=vt=function RGBA(t,e,n,i){X.call(this),this.r=clamp(t),this.g=clamp(e),this.b=clamp(n),this.a=function clampAlpha$1(t){return Math.max(0,Math.min(t,1))}(i),this.name="",this.rgba=this};function clamp(t){return Math.max(0,Math.min(t.toFixed(0),255))}yt.prototype.__proto__=X.prototype,yt.withoutClamping=function(t,e,n,i){var r=new yt(0,0,0,0);return r.r=t,r.g=e,r.b=n,r.a=i,r},yt.prototype.clone=function(){var t=new yt(this.r,this.g,this.b,this.a);return t.raw=this.raw,t.name=this.name,t.lineno=this.lineno,t.column=this.column,t.filename=this.filename,t},yt.prototype.toJSON=function(){return{__type:"RGBA",r:this.r,g:this.g,b:this.b,a:this.a,raw:this.raw,name:this.name,lineno:this.lineno,column:this.column,filename:this.filename}},yt.prototype.toBoolean=function(){return Dt.true},yt.prototype.__defineGetter__("hsla",(function(){return ft.fromRGBA(this)})),yt.prototype.__defineGetter__("hash",(function(){return this.toString()})),yt.prototype.add=function(t,e,n,i){return new yt(this.r+t,this.g+e,this.b+n,this.a+i)},yt.prototype.sub=function(t,e,n,i){return new yt(this.r-t,this.g-e,this.b-n,1==i?this.a:this.a-i)},yt.prototype.multiply=function(t){return new yt(thi
/*!
* Stylus - at-rule
* Copyright (c) Automattic <developer.wordpress.com>
* MIT Licensed
*/
var _t=function Atrule(t){X.call(this),this.type=t};function hasOutput(t){var e=t.nodes;return!e.every((function(t){return"group"==t.nodeName&&t.hasOnlyPlaceholders}))&&e.some((function(t){switch(t.nodeName){case"property":case"literal":case"import":return!0;case"block":return hasOutput(t);default:if(t.block)return hasOutput(t.block)}}))}_t.prototype.__proto__=X.prototype,_t.prototype.__defineGetter__("hasOnlyProperties",(function(){if(!this.block)return!1;for(var t=this.block.nodes,e=0,n=t.length;e<n;++e)switch(t[e].nodeName,t[e].nodeName){case"property":case"expression":case"comment":continue;default:return!1}return!0})),_t.prototype.clone=function(t){var e=new _t(this.type);return this.block&&(e.block=this.block.clone(t,e)),e.segments=this.segments.map((function(n){return n.clone(t,e)})),e.lineno=this.lineno,e.column=this.column,e.filename=this.filename,e},_t.prototype.toJSON=function(){var t={__type:"Atrule",type:this.type,segments:this.segments,lineno:this.lineno,column:this.column,filename:this.filename};return this.block&&(t.block=this.block),t},_t.prototype.toString=function(){return"@"+this.type},_t.prototype.__defineGetter__("hasOutput",(function(){return!!this.block&&hasOutput(this.block)}));var St=function Media(t){_t.call(this,"media"),this.val=t};St.prototype.__proto__=_t.prototype,St.prototype.clone=function(t){var e=new St;return e.val=this.val.clone(t,e),e.block=this.block.clone(t,e),e.lineno=this.lineno,e.column=this.column,e.filename=this.filename,e},St.prototype.toJSON=function(){return{__type:"Media",val:this.val,block:this.block,lineno:this.lineno,column:this.column,filename:this.filename}},St.prototype.toString=function(){return"@media "+this.val};var Ct=function QueryList(){X.call(this),this.nodes=[]};Ct.prototype.__proto__=X.prototype,Ct.prototype.clone=function(t){var e=new Ct;e.lineno=this.lineno,e.column=this.column,e.filename=this.filename;for(var n=0;n<this.nodes.length;++n)e.push(this.nodes[n].clone(t,e));return e},Ct.prototype.push=function(t){this.nodes.push(t)},Ct.prototype.merge=function(t){var e,n=new Ct;return this.nodes.forEach((function(i){for(var r=0,o=t.nodes.length;r<o;++r)(e=i.merge(t.nodes[r]))&&n.push(e)})),n},Ct.prototype.toString=function(){return"("+this.nodes.map((function(t){return t.toString()})).join(", ")+")"},Ct.prototype.toJSON=function(){return{__type:"QueryList",nodes:this.nodes,lineno:this.lineno,column:this.column,filename:this.filename}};var Et=function Query(){X.call(this),this.nodes=[],this.type="",this.predicate=""};Et.prototype.__proto__=X.prototype,Et.prototype.clone=function(t){var e=new Et;e.predicate=this.predicate,e.type=this.type;for(var n=0,i=this.nodes.length;n<i;++n)e.push(this.nodes[n].clone(t,e));return e.lineno=this.lineno,e.column=this.column,e.filename=this.filename,e},Et.prototype.push=function(t){this.nodes.push(t)},Et.prototype.__defineGetter__("resolvedType",(function(){if(this.type)return this.type.nodeName?this.type.string:this.type})),Et.prototype.__defineGetter__("resolvedPredicate",(function(){if(this.predicate)return this.predicate.nodeName?this.predicate.string:this.predicate})),Et.prototype.merge=function(t){var e,n,i=new Et,r=this.resolvedPredicate,o=t.resolvedPredicate,a=this.resolvedType,h=t.resolvedType;if(a=a||h,h=h||a,"not"==r^"not"==o){if(a==h)return;e="not"==r?h:a,n="not"==r?o:r}else if("not"==r&&"not"==o){if(a!=h)return;e=a,n="not"}else{if(a!=h)return;e=a,n=r||o}return i.predicate=n,i.type=e,i.nodes=this.nodes.concat(t.nodes),i},Et.prototype.toString=function(){var t=this.predicate?this.predicate+" ":"",e=this.type||"",n=t+e;return this.nodes.length&&(n+=(e&&" and ")+this.nodes.map((function(t){return t.toString()})).join(" and ")),n},Et.prototype.toJSON=function(){return{__type:"Query",predicate:this.predicate,type:this.type,nodes:this.nodes,lineno:this.lineno,column:this.column,filename:this.filename}};var Nt=function Feature(t){X.call(this),this.segments=t,this.expr=null};Nt.prototype.__proto__=X.prototype,Nt.prototype.clone=function(t){var e=new Nt;return e.segments=this.segments.map((function(n){return n.clone(t,e)}))
/*!
* Stylus - Namespace
* Copyright (c) Automattic <developer.wordpress.com>
* MIT Licensed
*/
var jt=function Namespace(t,e){X.call(this),this.val=t,this.prefix=e};jt.prototype.__proto__=X.prototype,jt.prototype.toString=function(){return"@namespace "+(this.prefix?this.prefix+" ":"")+this.val},jt.prototype.toJSON=function(){return{__type:"Namespace",val:this.val,prefix:this.prefix,lineno:this.lineno,column:this.column,filename:this.filename}};var Pt=function Import(t,e){X.call(this),this.path=t,this.once=e||!1};Pt.prototype.__proto__=X.prototype,Pt.prototype.clone=function(t){var e=new Pt;return e.path=this.path.nodeName?this.path.clone(t,e):this.path,e.once=this.once,e.mtime=this.mtime,e.lineno=this.lineno,e.column=this.column,e.filename=this.filename,e},Pt.prototype.toJSON=function(){return{__type:"Import",path:this.path,once:this.once,mtime:this.mtime,lineno:this.lineno,column:this.column,filename:this.filename}};var It=function Extend(t){X.call(this),this.selectors=t};It.prototype.__proto__=X.prototype,It.prototype.clone=function(){return new It(this.selectors)},It.prototype.toString=function(){return"@extend "+this.selectors.join(", ")},It.prototype.toJSON=function(){return{__type:"Extend",selectors:this.selectors,lineno:this.lineno,column:this.column,filename:this.filename}};var Ut={}.constructor,Rt=function Object(){X.call(this),this.vals={},this.keys={}};Rt.prototype.__proto__=X.prototype,Rt.prototype.setValue=function(t,e){return this.vals[t]=e,this},Rt.prototype.set=Rt.prototype.setValue,Rt.prototype.setKey=function(t,e){return this.keys[t]=e,this},Rt.prototype.__defineGetter__("length",(function(){return Ut.keys(this.vals).length})),Rt.prototype.get=function(t){return this.vals[t]||Dt.null},Rt.prototype.has=function(t){return t in this.vals},Rt.prototype.operate=function(t,e){switch(t){case".":case"[]":return this.get(e.hash);case"==":var n,i,r=this.vals;if("object"!=e.nodeName||this.length!=e.length)return Dt.false;for(var o in r)if(n=r[o],i=e.vals[o],n.operate(t,i).isFalse)return Dt.false;return Dt.true;case"!=":return this.operate("==",e).negate();default:return X.prototype.operate.call(this,t,e)}},Rt.prototype.toBoolean=function(){return Dt.Boolean(this.length)},Rt.prototype.toBlock=function(){var t,e,n="{";for(t in this.vals)if("object"==(e=this.get(t)).first.nodeName)n+=t+" "+e.first.toBlock();else switch(t){case"@charset":n+=t+" "+e.first.toString()+";";break;default:n+=t+":"+toString(e)+";"}return n+"}";function toString(t){return t.nodes?t.nodes.map(toString).join(t.isList?",":" "):"literal"==t.nodeName&&","==t.val?"\\,":t.toString()}},Rt.prototype.clone=function(t){var e,n=new Rt;for(e in n.lineno=this.lineno,n.column=this.column,n.filename=this.filename,this.vals)n.vals[e]=this.vals[e].clone(t,n);for(e in this.keys)n.keys[e]=this.keys[e].clone(t,n);return n},Rt.prototype.toJSON=function(){return{__type:"Object",vals:this.vals,keys:this.keys,lineno:this.lineno,column:this.column,filename:this.filename}},Rt.prototype.toString=function(){var t={};for(var e in this.vals)t[e]=this.vals[e].toString();return JSON.stringify(t)};var Gt=function Function(t,e,n){X.call(this),this.name=t,this.params=e,this.block=n,"function"==typeof e&&(this.fn=e)};Gt.prototype.__defineGetter__("arity",(function(){return this.params.length})),Gt.prototype.__proto__=X.prototype,Gt.prototype.__defineGetter__("hash",(function(){return"function "+this.name})),Gt.prototype.clone=function(t){if(this.fn)var e=new Gt(this.name,this.fn);else(e=new Gt(this.name)).params=this.params.clone(t,e),e.block=this.block.clone(t,e);return e.lineno=this.lineno,e.column=this.column,e.filename=this.filename,e},Gt.prototype.toString=function(){return this.fn?this.name+"("+this.fn.toString().match(/^function *\w*\((.*?)\)/).slice(1).join(", ")+")":this.name+"("+this.params.nodes.join(", ")+")"},Gt.prototype.toJSON=function(){var t={__type:"Function",name:this.name,lineno:this.lineno,column:this.column,filename:this.filename};return this.fn?t.fn=this.fn:(t.params=this.params,t.block=this.block),t};var Mt=function Property(t,e){X.call(this),this.segments=t,this.expr=e};Mt.prototype.__proto__=X.prototype,Mt.prototype.clone=function(t){var e=new M
/*!
* Stylus - @block
* Copyright (c) Automattic <developer.wordpress.com>
* MIT Licensed
*/
var zt=function Atblock(){X.call(this)};zt.prototype.__defineGetter__("nodes",(function(){return this.block.nodes})),zt.prototype.__proto__=X.prototype,zt.prototype.clone=function(t){var e=new zt;return e.block=this.block.clone(t,e),e.lineno=this.lineno,e.column=this.column,e.filename=this.filename,e},zt.prototype.toString=function(){return"@block"},zt.prototype.toJSON=function(){return{__type:"Atblock",block:this.block,lineno:this.lineno,column:this.column,fileno:this.fileno}};
/*!
* Stylus - supports
* Copyright (c) Automattic <developer.wordpress.com>
* MIT Licensed
*/
var Ht=function Supports(t){_t.call(this,"supports"),this.condition=t};Ht.prototype.__proto__=_t.prototype,Ht.prototype.clone=function(t){var e=new Ht;return e.condition=this.condition.clone(t,e),e.block=this.block.clone(t,e),e.lineno=this.lineno,e.column=this.column,e.filename=this.filename,e},Ht.prototype.toJSON=function(){return{__type:"Supports",condition:this.condition,block:this.block,lineno:this.lineno,column:this.column,filename:this.filename}},Ht.prototype.toString=function(){return"@supports "+this.condition};
/*!
* Stylus - nodes
* Copyright (c) Automattic <developer.wordpress.com>
* MIT Licensed
*/
const Dt={};function ParseError(t){this.name="ParseError",this.message=t,Error.captureStackTrace&&Error.captureStackTrace(this,ParseError)}function SyntaxError(t){this.name="SyntaxError",this.message=t,Error.captureStackTrace&&Error.captureStackTrace(this,ParseError)}Dt.lineno=null,Dt.column=null,Dt.filename=null,Dt.Node=X,Dt.Root=tt,Dt.Null=et,Dt.Each=nt,Dt.If=it,Dt.Call=rt,Dt.UnaryOp=st,Dt.BinOp=ot,Dt.Ternary=at,Dt.Block=ht,Dt.Unit=ct,Dt.String=ut,Dt.HSLA=ft,Dt.RGBA=vt,Dt.Ident=gt,Dt.Group=kt,Dt.Literal=wt,Dt.Boolean=bt,Dt.Return=xt,Dt.Media=St,Dt.QueryList=Ct,Dt.Query=Et,Dt.Feature=Nt,Dt.Params=At,Dt.Comment=Ft,Dt.Keyframes=Ot,Dt.Member=Lt,Dt.Charset=Bt,Dt.Namespace=jt,Dt.Import=Pt,Dt.Extend=It,Dt.Object=Rt,Dt.Function=Gt,Dt.Property=Mt,Dt.Selector=qt,Dt.Expression=Tt,Dt.Arguments=$t,Dt.Atblock=zt,Dt.Atrule=_t,Dt.Supports=Ht,Dt.true=new Dt.Boolean(!0),Dt.false=new Dt.Boolean(!1),Dt.null=new Dt.Null,ParseError.prototype.__proto__=Error.prototype,SyntaxError.prototype.__proto__=Error.prototype;const Qt=Lexer;var Wt={and:"&&",or:"||",is:"==",isnt:"!=","is not":"!=",":=":"?="};function Lexer(t,e){function comment(t,e,n,i){var r=i.lastIndexOf("/*",n)>i.lastIndexOf("*/",n),o=i.lastIndexOf("//",n),a=i.lastIndexOf("\n",n),h=0,l=0;if(~o&&o>a)for(;a!=n;){if("'"==i[a]&&(l?l--:l++),'"'==i[a]&&(h?h--:h++),"/"==i[a]&&"/"==i[a+1]){r=!l&&!h;break}++a}return r?t:","===e&&/^[,\t\n]+$/.test(t)?t.replace(/\n/,"\r"):e+"\r"}this.stash=[],this.indentStack=[],this.indentRe=null,this.lineno=1,this.column=1,"\ufeff"==t.charAt(0)&&(t=t.slice(1)),this.str=t.replace(/\s+$/,"\n").replace(/\r\n?/g,"\n").replace(/\\ *\n/g,"\r").replace(/([,(:](?!\/\/[^ ])) *(?:\/\/[^\n]*|\/\*.*?\*\/)?\n\s*/g,comment).replace(/\s*\n[ \t]*([,)])/g,comment)}Lexer.prototype={inspect:function(){for(var t,e=this.str,n=[];"eos"!=(t=this.next()).type;)n.push(t.inspect());return this.str=e,n.concat(t.inspect()).join("\n")},lookahead:function(t){for(var e=t-this.stash.length;e-- >0;)this.stash.push(this.advance());return this.stash[--t]},skip:function(t){var e=t[0];t=e?e.length:t,this.str=this.str.substr(t),e?this.move(e):this.column+=t},move:function(t){var e=t.match(/\n/g),n=t.lastIndexOf("\n");e&&(this.lineno+=e.length),this.column=~n?t.length-n:this.column+t.length},next:function(){var t=this.stashed()||this.advance();return this.prev=t,t},isPartOfSelector:function(){var t=this.stash[this.stash.length-1]||this.prev;switch(t&&t.type){case"color":return 2==t.val.raw.length;case".":case"[":return!0}return!1},advance:function(){var t=this.column,e=this.lineno,n=this.eos()||this.null()||this.sep()||this.keyword()||this.urlchars()||this.comment()||this.newline()||this.escaped()||this.important()||this.literal()||this.anonFunc()||this.atrule()||this.function()||this.brace()||this.paren()||this.color()||this.string()||this.unit()||this.namedop()||this.boolean()||this.unicode()||this.ident()||this.op()||function(){var n=this.eol();return n&&(t=n.column,e=n.lineno),n}.call(this)||this.space()||this.selector();return n.lineno=e,n.column=t,n},peek:function(){return this.lookahead(1)},stashed:function(){return this.stash.shift()},eos:function(){if(!this.str.length)return this.indentStack.length?(this.indentStack.shift(),new e("outdent")):new e("eos")},urlchars:function(){var t;if(this.isURL)return(t=/^[\/:@.;?&=*!,<>#%0-9]+/.exec(this.str))?(this.skip(t),new e("literal",new Dt.Literal(t[0]))):void 0},sep:function(){var t;if(t=/^;[ \t]*/.exec(this.str))return this.skip(t),new e(";")},eol:function(){if("\r"==this.str[0]){for(++this.lineno,this.skip(1),this.column=1;this.space(););return this.advance()}},space:function(){var t;if(t=/^([ \t]+)/.exec(this.str))return this.skip(t),new e("space")},escaped:function(){var t;if(t=/^\\(.)[ \t]*/.exec(this.str)){var n=t[1];return this.skip(t),new e("ident",new Dt.Literal(n))}},literal:function(){var t;if(t=/^@css[ \t]*\{/.exec(this.str)){this.skip(t);for(var n,i,r=1,o="";n=this.str[0];){switch(this.str=this.str.substr(1),n){case"{":++r;break;case"}":--r;break;case"\n":case"\r":++this.lineno}if(o+=n,!r)break}return o=o.replace(/\s*}$/,""),(i=new
/*!
* Stylus - Parser
* Copyright (c) Automattic <developer.wordpress.com>
* MIT Licensed
*/te.getCache=function(t){return!1===t.cache?getCache(!1):getCache(t.cache||"memory",t)},te.prototype={constructor:te,currentState:function(){return this.state[this.state.length-1]},previousState:function(){return this.state[this.state.length-2]},parse:function(){var t=this.parent=this.root;if(te.cache.has(this.hash))"block"==(t=te.cache.get(this.hash)).nodeName&&(t.constructor=Dt.Root);else{for(;"eos"!=this.peek().type&&(this.skipWhitespace(),"eos"!=this.peek().type);){var e=this.statement();this.accept(";"),e||this.error("unexpected token {peek}, not allowed at the root level"),t.push(e)}te.cache.set(this.hash,t)}return t},error:function(t){var e=this.peek().type,n=null==this.peek().val?"":" "+this.peek().toString();throw n.trim()==e.trim()&&(n=""),new ParseError(t.replace("{peek}",'"'+e+n+'"'))},accept:function(t){if(t==this.peek().type)return this.next()},expect:function(t){return t!=this.peek().type&&this.error('expected "'+t+'", got {peek}'),this.next()},next:function(){var t=this.stash.length?this.stash.pop():this.lexer.next(),e=t.lineno,n=t.column||1;return t.val&&t.val.nodeName&&(t.val.lineno=e,t.val.column=n),Dt.lineno=e,Dt.column=n,Vt.lexer("%s %s",t.type,t.val||""),t},peek:function(){return this.lexer.peek()},lookahead:function(t){return this.lexer.lookahead(t)},isSelectorToken:function(t){var e=this.lookahead(t).type;switch(e){case"for":return this.bracketed;case"[":return this.bracketed=!0,!0;case"]":return this.bracketed=!1,!0;default:return~Yt.indexOf(e)}},isPseudoSelector:function(t){var e=this.lookahead(t).val;return e&&~Xt.indexOf(e.name)},lineContains:function(t){for(var e,n=1;e=this.lookahead(n++);){if(~["indent","outdent","newline","eos"].indexOf(e.type))return;if(t==e.type)return!0}},selectorToken:function(){if(this.isSelectorToken(1)){if("{"==this.peek().type){if(!this.lineContains("}"))return;for(var t,e=0;t=this.lookahead(++e);){if("}"==t.type){if(2==e||3==e&&"space"==this.lookahead(e-1).type)return;break}if(":"==t.type)return}}return this.next()}},skip:function(t){for(;~t.indexOf(this.peek().type);)this.next()},skipWhitespace:function(){this.skip(["space","indent","outdent","newline"])},skipNewlines:function(){for(;"newline"==this.peek().type;)this.next()},skipSpaces:function(){for(;"space"==this.peek().type;)this.next()},skipSpacesAndComments:function(){for(;"space"==this.peek().type||"comment"==this.peek().type;)this.next()},looksLikeFunctionDefinition:function(t){return"indent"==this.lookahead(t).type||"{"==this.lookahead(t).type},looksLikeSelector:function(t){var e,n,i=1;if(t&&":"==this.lookahead(i+1).type&&(this.lookahead(i+1).space||"indent"==this.lookahead(i+2).type))return!1;for(;"ident"==this.lookahead(i).type&&("newline"==this.lookahead(i+1).type||","==this.lookahead(i+1).type);)i+=2;for(;this.isSelectorToken(i)||","==this.lookahead(i).type;){if("selector"==this.lookahead(i).type)return!0;if("&"==this.lookahead(i+1).type)return!0;if(i>1&&"ident"===this.lookahead(i-1).type&&"."===this.lookahead(i).type&&"ident"===this.lookahead(i+1).type){for(;e=this.lookahead(i+2);){if(-1!==["indent","outdent","{",";","eos","selector","media","if","atrule",")","}","unit","[","for","function"].indexOf(e.type)){if("["!==e.type){if(this.isPseudoSelector(i+2))return!0;if(")"===e.type&&this.lookahead(i+3)&&"}"===this.lookahead(i+3).type)break;return-1===["outdent",";","eos","media","if","atrule",")","}","unit","for","function"].indexOf(e.type)}for(;(e=this.lookahead(i+3))&&"]"!==e.type;){if(~[".","unit"].indexOf(e.type))return!1;i+=1}}i+=1}return!0}if("."==this.lookahead(i).type&&"ident"==this.lookahead(i+1).type)return!0;if("*"==this.lookahead(i).type&&"newline"==this.lookahead(i+1).type)return!0;if(":"==this.lookahead(i).type&&":"==this.lookahead(i+1).type)return!0;if("color"==this.lookahead(i).type&&"newline"==this.lookahead(i-1).type)return!0;if(this.looksLikeAttributeSelector(i))return!0;if(("="==this.lookahead(i).type||"function"==this.lookahead(i).type)&&"{"==this.lookahead(i+1).type)return!1;if(":"==this.lookahead(i).type&&!this.isPseudoSelector(i+1)&&this.lineContains("."))return!1;if("{"==thi
/**
* event-lite.js - Light-weight EventEmitter (less than 1KB when gzipped)
*
* @copyright Yusuke Kawasaki
* @license MIT
* @constructor
* @see https://github.com/kawanet/event-lite
* @see http://kawanet.github.io/event-lite/EventLite.html
* @example
* var EventLite = require("event-lite");
*
* function MyClass() {...} // your class
*
* EventLite.mixin(MyClass.prototype); // import event methods
*
* var obj = new MyClass();
* obj.on("foo", function() {...}); // add event listener
* obj.once("bar", function() {...}); // add one-time event listener
* obj.emit("foo"); // dispatch event
* obj.emit("bar"); // dispatch another event
* obj.off("foo"); // remove event listener
*/
function EventLite(){if(!(this instanceof EventLite))return new EventLite}));var ie=ee.exports;const re=class{constructor(){this.events=new ie}on(...t){return this.events.on(...t)}off(...t){return this.events.off(...t)}once(...t){return this.events.once(...t)}emit(...t){return this.events.emit(...t)}listeners(t){return this.events.listeners&&this.events.listeners[t]||[]}},noop$1=()=>noop$1;var se=t.dirname,oe=function DepsResolver(t,e){this.root=t,this.filename=e.filename,this.paths=e.paths||[],this.paths.push(se(e.filename||".")),this.options=e,this.functions={},this.deps=[]};oe.prototype.__proto__=c.prototype;var ae=oe.prototype.visit;oe.prototype.visit=function(t){switch(t.nodeName){case"root":case"block":case"expression":this.visitRoot(t);break;case"group":case"media":case"atblock":case"atrule":case"keyframes":case"each":case"supports":this.visit(t.block);break;default:ae.call(this,t)}},oe.prototype.visitRoot=function(t){for(var e=0,n=t.nodes.length;e<n;++e)this.visit(t.nodes[e])},oe.prototype.visitIdent=function(t){this.visit(t.val)},oe.prototype.visitIf=function(t){this.visit(t.block),this.visit(t.cond);for(var e=0,n=t.elses.length;e<n;++e)this.visit(t.elses[e])},oe.prototype.visitFunction=function(t){this.functions[t.name]=t.block},oe.prototype.visitCall=function(t){t.name in this.functions&&this.visit(this.functions[t.name]),t.block&&this.visit(t.block)},oe.prototype.visitImport=function(t){var e,n,i,r=!t.path.first.val.isNull&&t.path.first.val||t.path.first.name;if(r&&((e=/\.css(?:"|$)/.test(r))||/\.styl$/i.test(r)||(i=r,r+=".styl"),!(n=_export_find_(r,this.paths,this.filename))&&i&&(n=_export_lookupIndex_(i,this.paths,this.filename)),n&&(this.deps=this.deps.concat(n),!e)))for(var o=0,a=n.length;o<a;++o){var h=n[o],l=se(h),c=_export_readFileSync_(h),u=new Dt.Block,f=new te(c,_export_merge_({root:u},this.options));~this.paths.indexOf(l)||this.paths.push(l);try{u=f.parse()}catch(t){throw t.filename=h,t.lineno=f.lexer.lineno,t.column=f.lexer.column,t.input=c,t}this.visit(u)}},oe.prototype.resolve=function(){return this.visit(this.root),_export_uniq_(this.deps)};var he=new re,le=t.join;function Renderer(t,e){(e=e||{}).globals=e.globals||{},e.functions=e.functions||{},e.use=e.use||[],e.use=Array.isArray(e.use)?e.use:[e.use],e.imports=[le("/","functions/index.styl")].concat(e.imports||[]),e.paths=e.paths||[],e.filename=e.filename||"stylus",e.Evaluator=e.Evaluator||V,this.options=e,this.str=t,this.events=he}return Renderer.prototype.__proto__=re.prototype,Renderer.prototype.render=function(t){for(var e=this.parser=new te(this.str,this.options),n=0,i=this.options.use.length;n<i;n++)this.use(this.options.use[n]);try{Dt.filename=this.options.filename;var r=e.parse();this.evaluator=new this.options.Evaluator(r,this.options),this.nodes=Dt,this.evaluator.renderer=this,r=this.evaluator.evaluate(),r=new q(r,this.options).normalize();var o=this.options.sourcemap?new noop$1(r,this.options):new G(r,this.options),a=o.compile();this.options.sourcemap&&(this.sourcemap=o.map.toJSON())}catch(n){var h={};if(h.input=n.input||this.str,h.filename=n.filename||this.options.filename,h.lineno=n.lineno||e.lexer.lineno,h.column=n.column||e.lexer.column,!t)throw _export_formatException_(n,h);return t(_export_formatException_(n,h))}var l=this.listeners("end");for(t&&l.push(t),n=0,i=l.length;n<i;n++){var c=l[n](null,a);c&&(a=c)}if(!t)return a},Renderer.prototype.deps=function(t){var e=_export_merge_({cache:!1},this.options);t&&(e.filename=t);var n=oe,i=new te(this.str,e);try{return Dt.filename=e.filename,new n(i.parse(),e).resolve()}catch(t){var r={};throw r.input=t.input||this.str,r.filename=t.filename||e.filename,r.lineno=t.lineno||i.lexer.lineno,r.column=t.column||i.lexer.column,_export_formatException_(t,r)}},Renderer.prototype.set=function(t,e){return this.options[t]=e,this},Renderer.prototype.get=function(t){return this.options[t]},Renderer.prototype.include=function(t){return this.options.paths.push(t),this},Renderer.prototype.use=function(t){return t.call(this,this),this},Renderer.prototype.define=function(t,e,n){return(e=_export_coerce_(