Skip to content

Instantly share code, notes, and snippets.

@nicholasess
Created December 29, 2013 01:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nicholasess/8166242 to your computer and use it in GitHub Desktop.
Save nicholasess/8166242 to your computer and use it in GitHub Desktop.
aprendendo less
<?xml version="1.0" encoding="UTF-8"?>
<module type="WEB_MODULE" version="4">
<component name="NewModuleRootManager">
<content url="file://$MODULE_DIR$" />
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
</component>
</module>
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="Encoding" useUTFGuessing="true" native2AsciiForPropertiesFiles="false" />
</project>
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectRootManager" version="2" />
</project>
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectModuleManager">
<modules>
<module fileurl="file://$PROJECT_DIR$/.idea/aprendendo.iml" filepath="$PROJECT_DIR$/.idea/aprendendo.iml" />
</modules>
</component>
</project>
<component name="DependencyValidationManager">
<state>
<option name="SKIP_IMPORT_STATEMENTS" value="false" />
</state>
</component>
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="VcsDirectoryMappings">
<mapping directory="" vcs="" />
</component>
</project>
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectTasksOptions">
<TaskOptions isEnabled="true">
<option name="arguments" value="--no-color $FileName$" />
<option name="checkSyntaxErrors" value="true" />
<option name="description" value="Compiles .less files into .css files" />
<option name="exitCodeBehavior" value="ERROR" />
<option name="fileExtension" value="less" />
<option name="immediateSync" value="true" />
<option name="name" value="style" />
<option name="output" value="$FileNameWithoutExtension$.css" />
<option name="outputFilters">
<array>
<FilterInfo>
<option name="description" value="lessc error format" />
<option name="name" value="lessc" />
<option name="regExp" value="$MESSAGE$$FILE_PATH$?:$LINE$:$COLUMN$" />
</FilterInfo>
</array>
</option>
<option name="outputFromStdout" value="true" />
<option name="passParentEnvs" value="true" />
<option name="program" value="$PROJECT_DIR$/style.less" />
<option name="scopeName" value="Project Files" />
<option name="trackOnlyRoot" value="false" />
<option name="workingDir" value="$FileDir$" />
<envs />
</TaskOptions>
<TaskOptions isEnabled="true">
<option name="arguments" value="--no-color $FileName$" />
<option name="checkSyntaxErrors" value="true" />
<option name="description" value="Compiles .less files into .css files" />
<option name="exitCodeBehavior" value="ERROR" />
<option name="fileExtension" value="less" />
<option name="immediateSync" value="true" />
<option name="name" value="LESS" />
<option name="output" value="$FileNameWithoutExtension$.css" />
<option name="outputFilters">
<array>
<FilterInfo>
<option name="description" value="lessc error format" />
<option name="name" value="lessc" />
<option name="regExp" value="$MESSAGE$$FILE_PATH$?:$LINE$:$COLUMN$" />
</FilterInfo>
</array>
</option>
<option name="outputFromStdout" value="true" />
<option name="passParentEnvs" value="true" />
<option name="program" value="$PROJECT_DIR$/style.less" />
<option name="scopeName" value="Project Files" />
<option name="trackOnlyRoot" value="false" />
<option name="workingDir" value="$FileDir$" />
<envs />
</TaskOptions>
</component>
</project>
<!DOCTYPE html>
<html>
<head>
<title>Aprendendo Less</title>
<link rel="stylesheet/less" href="style.less"/>
<script src="less.js"></script>
</head>
<body>
<h1><a href="#">Link</a></h1>
<p>
Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat. Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla facilisis at vero eros et accumsan et iusto odio dignissim qui blandit praesent luptatum zzril delenit augue duis dolore te feugait nulla facilisi. Nam liber tempor cum soluta nobis eleifend option congue nihil imperdiet doming id quod mazim placerat facer possim assum. Typi non habent claritatem insitam; est usus legentis in iis qui facit eorum claritatem. Investigationes demonstraverunt lectores legere me lius quod ii legunt saepius. Claritas est etiam processus dynamicus, qui sequitur mutationem consuetudium lectorum. Mirum est notare quam littera gothica, quam nunc putamus parum claram, anteposuerit litterarum formas humanitatis per seacula quarta decima et quinta decima. Eodem modo typi, qui nunc nobis videntur parum clari, fiant sollemnes in futurum.</p>
</body>
</html>
/*!
* LESS - Leaner CSS v1.5.0
* http://lesscss.org
*
* Copyright (c) 2009-2013, Alexis Sellier <self@cloudhead.net>
* Licensed under the Apache v2 License.
*
* @licence
*/
function require(a){return window.less[a.split("/")[1]]}function log(a,b){"development"==less.env&&"undefined"!=typeof console&&less.logLevel>=b&&console.log("less: "+a)}function extractId(a){return a.replace(/^[a-z-]+:\/+?[^\/]+/,"").replace(/^\//,"").replace(/\.[a-zA-Z]+$/,"").replace(/[^\.\w-]+/g,"-").replace(/\./g,":")}function errorConsole(a,b){var c="{line} {content}",d=a.filename||b,e=[],f=(a.type||"Syntax")+"Error: "+(a.message||"There is an error in your .less file")+" in "+d+" ",g=function(a,b,d){void 0!==a.extract[b]&&e.push(c.replace(/\{line\}/,(parseInt(a.line,10)||0)+(b-1)).replace(/\{class\}/,d).replace(/\{content\}/,a.extract[b]))};a.extract?(g(a,0,""),g(a,1,"line"),g(a,2,""),f+="on line "+a.line+", column "+(a.column+1)+":\n"+e.join("\n")):a.stack&&(f+=a.stack),log(f,logLevel.errors)}function createCSS(a,b,c){var d=b.href||"",e="less:"+(b.title||extractId(d)),f=document.getElementById(e),g=!1,h=document.createElement("style");if(h.setAttribute("type","text/css"),b.media&&h.setAttribute("media",b.media),h.id=e,h.styleSheet)try{h.styleSheet.cssText=a}catch(i){throw new Error("Couldn't reassign styleSheet.cssText.")}else h.appendChild(document.createTextNode(a)),g=null!==f&&f.childNodes.length>0&&h.childNodes.length>0&&f.firstChild.nodeValue===h.firstChild.nodeValue;var j=document.getElementsByTagName("head")[0];if(null===f||g===!1){var k=b&&b.nextSibling||null;k?k.parentNode.insertBefore(h,k):j.appendChild(h)}if(f&&g===!1&&f.parentNode.removeChild(f),c&&cache){log("saving "+d+" to cache.",logLevel.info);try{cache.setItem(d,a),cache.setItem(d+":timestamp",c)}catch(i){log("failed to save",logLevel.errors)}}}function errorHTML(a,b){var c,d,e="less-error-message:"+extractId(b||""),f='<li><label>{line}</label><pre class="{class}">{content}</pre></li>',g=document.createElement("div"),h=[],i=a.filename||b,j=i.match(/([^\/]+(\?.*)?)$/)[1];g.id=e,g.className="less-error-message",d="<h3>"+(a.type||"Syntax")+"Error: "+(a.message||"There is an error in your .less file")+"</h3>"+'<p>in <a href="'+i+'">'+j+"</a> ";var k=function(a,b,c){void 0!==a.extract[b]&&h.push(f.replace(/\{line\}/,(parseInt(a.line,10)||0)+(b-1)).replace(/\{class\}/,c).replace(/\{content\}/,a.extract[b]))};a.extract?(k(a,0,""),k(a,1,"line"),k(a,2,""),d+="on line "+a.line+", column "+(a.column+1)+":</p>"+"<ul>"+h.join("")+"</ul>"):a.stack&&(d+="<br/>"+a.stack.split("\n").slice(1).join("<br/>")),g.innerHTML=d,createCSS([".less-error-message ul, .less-error-message li {","list-style-type: none;","margin-right: 15px;","padding: 4px 0;","margin: 0;","}",".less-error-message label {","font-size: 12px;","margin-right: 15px;","padding: 4px 0;","color: #cc7777;","}",".less-error-message pre {","color: #dd6666;","padding: 4px 0;","margin: 0;","display: inline-block;","}",".less-error-message pre.line {","color: #ff0000;","}",".less-error-message h3 {","font-size: 20px;","font-weight: bold;","padding: 15px 0 5px 0;","margin: 0;","}",".less-error-message a {","color: #10a","}",".less-error-message .error {","color: red;","font-weight: bold;","padding-bottom: 2px;","border-bottom: 1px dashed red;","}"].join("\n"),{title:"error-message"}),g.style.cssText=["font-family: Arial, sans-serif","border: 1px solid #e00","background-color: #eee","border-radius: 5px","-webkit-border-radius: 5px","-moz-border-radius: 5px","color: #e00","padding: 15px","margin-bottom: 15px"].join(";"),"development"==less.env&&(c=setInterval(function(){document.body&&(document.getElementById(e)?document.body.replaceChild(g,document.getElementById(e)):document.body.insertBefore(g,document.body.firstChild),clearInterval(c))},10))}function error(a,b){less.errorReporting&&"html"!==less.errorReporting?"console"===less.errorReporting?errorConsole(a,b):"function"==typeof less.errorReporting&&less.errorReporting("add",a,b):errorHTML(a,b)}function removeErrorHTML(a){var b=document.getElementById("less-error-message:"+extractId(a));b&&b.parentNode.removeChild(b)}function removeErrorConsole(){}function removeError(a){less.errorReporting&&"html"!==less.errorReporting?"console"===less.errorReporting?removeErrorConsole(a):"function"==typeof less.errorReporting&&less.errorReporting("remove",a):removeErrorHTML(a)}function loadStyles(a){for(var b,c=document.getElementsByTagName("style"),d=0;d<c.length;d++)if(b=c[d],b.type.match(typePattern)){var e=new less.tree.parseEnv(less),f=b.innerHTML||"";e.filename=document.location.href.replace(/#.*$/,""),a&&(e.useFileCache=!0,f+="\n"+a);var g=function(a){return function(b,c){if(b)return error(b,"inline");var d=c.toCSS(less);a.type="text/css",a.styleSheet?a.styleSheet.cssText=d:a.innerHTML=d}}(b);new less.Parser(e).parse(f,g)}}function extractUrlParts(a,b){var c,d,e=/^((?:[a-z-]+:)?\/+?(?:[^\/\?#]*\/)|([\/\\]))?((?:[^\/\\\?#]*[\/\\])*)([^\/\\\?#]*)([#\?].*)?$/i,f=a.match(e),g={},h=[];if(!f)throw new Error("Could not parse sheet href - '"+a+"'");if(!f[1]||f[2]){if(d=b.match(e),!d)throw new Error("Could not parse page url - '"+b+"'");f[1]=f[1]||d[1]||"",f[2]||(f[3]=d[3]+f[3])}if(f[3]){for(h=f[3].replace(/\\/g,"/").split("/"),c=0;c<h.length;c++)"."===h[c]&&(h.splice(c,1),c-=1);for(c=0;c<h.length;c++)".."===h[c]&&c>0&&(h.splice(c-1,2),c-=2)}return g.hostPart=f[1],g.directories=h,g.path=f[1]+h.join("/"),g.fileUrl=g.path+(f[4]||""),g.url=g.fileUrl+(f[5]||""),g}function pathDiff(a,b){var c,d,e,f,g=extractUrlParts(a),h=extractUrlParts(b),i="";if(g.hostPart!==h.hostPart)return"";for(d=Math.max(h.directories.length,g.directories.length),c=0;d>c&&h.directories[c]===g.directories[c];c++);for(f=h.directories.slice(c),e=g.directories.slice(c),c=0;c<f.length-1;c++)i+="../";for(c=0;c<e.length-1;c++)i+=e[c]+"/";return i}function getXMLHttpRequest(){if(window.XMLHttpRequest)return new XMLHttpRequest;try{return new ActiveXObject("MSXML2.XMLHTTP.3.0")}catch(a){return log("browser doesn't support AJAX.",logLevel.errors),null}}function doXHR(a,b,c,d){function e(b,c,d){b.status>=200&&b.status<300?c(b.responseText,b.getResponseHeader("Last-Modified")):"function"==typeof d&&d(b.status,a)}var f=getXMLHttpRequest(),g=isFileProtocol?less.fileAsync:less.async;"function"==typeof f.overrideMimeType&&f.overrideMimeType("text/css"),log("XHR: Getting '"+a+"'",logLevel.info),f.open("GET",a,g),f.setRequestHeader("Accept",b||"text/x-less, text/css; q=0.9, */*; q=0.5"),f.send(null),isFileProtocol&&!less.fileAsync?0===f.status||f.status>=200&&f.status<300?c(f.responseText):d(f.status,a):g?f.onreadystatechange=function(){4==f.readyState&&e(f,c,d)}:e(f,c,d)}function loadFile(a,b,c,d,e){b&&b.currentDirectory&&!/^([a-z-]+:)?\//.test(a)&&(a=b.currentDirectory+a);var f=extractUrlParts(a,window.location.href),g=f.url,h={currentDirectory:f.path,filename:g};if(b?(h.entryPath=b.entryPath,h.rootpath=b.rootpath,h.rootFilename=b.rootFilename,h.relativeUrls=b.relativeUrls):(h.entryPath=f.path,h.rootpath=less.rootpath||f.path,h.rootFilename=g,h.relativeUrls=d.relativeUrls),h.relativeUrls&&(h.rootpath=d.rootpath?extractUrlParts(d.rootpath+pathDiff(f.path,h.entryPath)).path:f.path),d.useFileCache&&fileCache[g])try{var i=fileCache[g];e&&(i+="\n"+e),c(null,i,g,h,{lastModified:new Date})}catch(j){c(j,null,g)}else doXHR(g,d.mime,function(a,b){fileCache[g]=a;try{c(null,a,g,h,{lastModified:b})}catch(d){c(d,null,g)}},function(a,b){c({type:"File",message:"'"+b+"' wasn't found ("+a+")"},null,g)})}function loadStyleSheet(a,b,c,d,e){var f=new less.tree.parseEnv(less);f.mime=a.type,e&&(f.useFileCache=!0),loadFile(a.href,null,function(e,g,h,i,j){if(j){j.remaining=d;var k=cache&&cache.getItem(h),l=cache&&cache.getItem(h+":timestamp");if(!c&&l&&j.lastModified&&new Date(j.lastModified).valueOf()===new Date(l).valueOf())return createCSS(k,a),j.local=!0,b(null,null,g,a,j,h),void 0}removeError(h),g?(f.currentFileInfo=i,new less.Parser(f).parse(g,function(c,d){if(c)return b(c,null,null,a);try{b(c,d,g,a,j,h)}catch(c){b(c,null,null,a)}})):b(e,null,null,a,j,h)},f,e)}function loadStyleSheets(a,b,c){for(var d=0;d<less.sheets.length;d++)loadStyleSheet(less.sheets[d],a,b,less.sheets.length-(d+1),c)}function initRunningMode(){"development"===less.env?(less.optimization=0,less.watchTimer=setInterval(function(){less.watchMode&&loadStyleSheets(function(a,b,c,d,e){a?error(a,d.href):b&&createCSS(b.toCSS(less),d,e.lastModified)})},less.poll)):less.optimization=3}("undefined"==typeof window.less||"undefined"!=typeof window.less.nodeType)&&(window.less={}),less=window.less,tree=window.less.tree={},less.mode="browser";var less,tree;void 0===less&&(less=exports,tree=require("./tree"),less.mode="node"),less.Parser=function(a){function b(){r=u[q],s=p,v=p}function c(){u[q]=r,p=s,v=p}function d(){p>v&&(u[q]=u[q].slice(p-v),v=p)}function e(a){var b=a.charCodeAt(0);return 32===b||10===b||9===b}function f(a){var b,c;if(a instanceof Function)return a.call(w.parsers);if("string"==typeof a)b=o.charAt(p)===a?a:null,c=1,d();else{if(d(),!(b=a.exec(u[q])))return null;c=b[0].length}return b?(g(c),"string"==typeof b?b:1===b.length?b[0]:b):void 0}function g(a){for(var b=p,c=q,d=p+u[q].length,f=p+=a;d>p&&e(o.charAt(p));)p++;return u[q]=u[q].slice(a+(p-f)),v=p,0===u[q].length&&q<u.length-1&&q++,b!==p||c!==q}function h(a,b){var c=f(a);return c?c:(i(b||("string"==typeof a?"expected '"+a+"' got '"+o.charAt(p)+"'":"unexpected token")),void 0)}function i(a,b){var c=new Error(a);throw c.index=p,c.type=b||"Syntax",c}function j(a){return"string"==typeof a?o.charAt(p)===a:a.test(u[q])}function k(a,b){return a.filename&&b.currentFileInfo.filename&&a.filename!==b.currentFileInfo.filename?w.imports.contents[a.filename]:o}function l(a,b){for(var c=a+1,d=null,e=-1;--c>=0&&"\n"!==b.charAt(c);)e++;return"number"==typeof a&&(d=(b.slice(0,a).match(/\n/g)||"").length),{line:d,column:e}}function m(a,b,c){var d=c.currentFileInfo.filename;return"browser"!==less.mode&&"rhino"!==less.mode&&(d=require("path").resolve(d)),{lineNumber:l(a,b).line+1,fileName:d}}function n(a,b){var c=k(a,b),d=l(a.index,c),e=d.line,f=d.column,g=a.call&&l(a.call,c).line,h=c.split("\n");this.type=a.type||"Syntax",this.message=a.message,this.filename=a.filename||b.currentFileInfo.filename,this.index=a.index,this.line="number"==typeof e?e+1:null,this.callLine=g+1,this.callExtract=h[g],this.stack=a.stack,this.column=f,this.extract=[h[e-1],h[e],h[e+1]]}var o,p,q,r,s,t,u,v,w,x=a&&a.filename;a instanceof tree.parseEnv||(a=new tree.parseEnv(a));var y=this.imports={paths:a.paths||[],queue:[],files:a.files,contents:a.contents,mime:a.mime,error:null,push:function(b,c,d,e){var f=this;this.queue.push(b);var g=function(a,c,d){f.queue.splice(f.queue.indexOf(b),1);var g=d in f.files||d===x;f.files[d]=c,a&&!f.error&&(f.error=a),e(a,c,g,d)};less.Parser.importer?less.Parser.importer(b,c,g,a):less.Parser.fileLoader(b,c,function(b,e,f,h){if(b)return g(b),void 0;var i=new tree.parseEnv(a);i.currentFileInfo=h,i.processImports=!1,i.contents[f]=e,(c.reference||d.reference)&&(h.reference=!0),d.inline?g(null,e,f):new less.Parser(i).parse(e,function(a,b){g(a,b,f)})},a)}};return n.prototype=new Error,n.prototype.constructor=n,this.env=a=a||{},this.optimization="optimization"in this.env?this.env.optimization:1,w={imports:y,parse:function(b,c){var d,e,g,h=null;if(p=q=v=t=0,o=b.replace(/\r\n/g,"\n"),o=o.replace(/^\uFEFF/,""),w.imports.contents[a.currentFileInfo.filename]=o,u=function(b){for(var c,d,e,f,g=0,i=/(?:@\{[\w-]+\}|[^"'`\{\}\/\(\)\\])+/g,j=/\/\*(?:[^*]|\*+[^\/*])*\*+\/|\/\/.*/g,k=/"((?:[^"\\\r\n]|\\.)*)"|'((?:[^'\\\r\n]|\\.)*)'|`((?:[^`]|\\.)*)`/g,l=0,m=b[0],p=0;p<o.length;)if(i.lastIndex=p,(c=i.exec(o))&&c.index===p&&(p+=c[0].length,m.push(c[0])),e=o.charAt(p),j.lastIndex=k.lastIndex=p,(c=k.exec(o))&&c.index===p)p+=c[0].length,m.push(c[0]);else if(d||"/"!==e||(f=o.charAt(p+1),"/"!==f&&"*"!==f||!(c=j.exec(o))||c.index!==p)){switch(e){case"{":if(!d){l++,m.push(e);break}case"}":if(!d){l--,m.push(e),b[++g]=m=[];break}case"(":if(!d){d=!0,m.push(e);break}case")":if(d){d=!1,m.push(e);break}default:m.push(e)}p++}else p+=c[0].length,m.push(c[0]);return 0!==l&&(h=new n({index:p-1,type:"Parse",message:l>0?"missing closing `}`":"missing opening `{`",filename:a.currentFileInfo.filename},a)),b.map(function(a){return a.join("")})}([[]]),h)return c(new n(h,a));try{d=new tree.Ruleset([],f(this.parsers.primary)),d.root=!0,d.firstRoot=!0}catch(i){return c(new n(i,a))}if(d.toCSS=function(b){return function(c,d){c=c||{};var e,f,g=new tree.evalEnv(c);"object"!=typeof d||Array.isArray(d)||(d=Object.keys(d).map(function(a){var b=d[a];return b instanceof tree.Value||(b instanceof tree.Expression||(b=new tree.Expression([b])),b=new tree.Value([b])),new tree.Rule("@"+a,b,!1,null,0)}),g.frames=[new tree.Ruleset(null,d)]);try{e=b.call(this,g),(new tree.joinSelectorVisitor).run(e),(new tree.processExtendsVisitor).run(e),new tree.toCSSVisitor({compress:Boolean(c.compress)}).run(e),c.sourceMap&&(e=new tree.sourceMapOutput({writeSourceMap:c.writeSourceMap,rootNode:e,contentsMap:w.imports.contents,sourceMapFilename:c.sourceMapFilename,outputFilename:c.sourceMapOutputFilename,sourceMapBasepath:c.sourceMapBasepath,sourceMapRootpath:c.sourceMapRootpath,outputSourceFiles:c.outputSourceFiles,sourceMapGenerator:c.sourceMapGenerator})),f=e.toCSS({compress:Boolean(c.compress),dumpLineNumbers:a.dumpLineNumbers,strictUnits:Boolean(c.strictUnits)})}catch(h){throw new n(h,a)}return c.cleancss&&"node"===less.mode?require("clean-css").process(f):c.compress?f.replace(/(^(\s)+)|((\s)+$)/g,""):f}}(d.eval),p<o.length-1){p=t;var j=l(p,o);g=o.split("\n"),e=j.line+1,h={type:"Parse",message:"Unrecognised input",index:p,filename:a.currentFileInfo.filename,line:e,column:j.column,extract:[g[e-2],g[e-1],g[e]]}}var k=function(b){return b=h||b||w.imports.error,b?(b instanceof n||(b=new n(b,a)),c(b)):c(null,d)};return a.processImports===!1?k():(new tree.importVisitor(this.imports,k).run(d),void 0)},parsers:{primary:function(){for(var a,b=[];(a=f(this.extendRule)||f(this.mixin.definition)||f(this.rule)||f(this.ruleset)||f(this.mixin.call)||f(this.comment)||f(this.directive))||f(/^[\s\n]+/)||f(/^;+/);)a&&b.push(a);return b},comment:function(){var b;if("/"===o.charAt(p))return"/"===o.charAt(p+1)?new tree.Comment(f(/^\/\/.*/),!0,p,a.currentFileInfo):(b=f(/^\/\*(?:[^*]|\*+[^\/*])*\*+\/\n?/))?new tree.Comment(b,!1,p,a.currentFileInfo):void 0},comments:function(){for(var a,b=[];a=f(this.comment);)b.push(a);return b},entities:{quoted:function(){var b,c,d=p,e=p;return"~"===o.charAt(d)&&(d++,c=!0),'"'===o.charAt(d)||"'"===o.charAt(d)?(c&&f("~"),(b=f(/^"((?:[^"\\\r\n]|\\.)*)"|'((?:[^'\\\r\n]|\\.)*)'/))?new tree.Quoted(b[0],b[1]||b[2],c,e,a.currentFileInfo):void 0):void 0},keyword:function(){var a;if(a=f(/^[_A-Za-z-][_A-Za-z0-9-]*/)){var b=tree.Color.fromKeyword(a);return b?b:new tree.Keyword(a)}},call:function(){var b,c,d,e,g=p;if(b=/^([\w-]+|%|progid:[\w\.]+)\(/.exec(u[q])){if(b=b[1],c=b.toLowerCase(),"url"===c)return null;if(p+=b.length,"alpha"===c&&(e=f(this.alpha),"undefined"!=typeof e))return e;if(f("("),d=f(this.entities.arguments),f(")"))return b?new tree.Call(b,d,g,a.currentFileInfo):void 0}},arguments:function(){for(var a,b=[];(a=f(this.entities.assignment)||f(this.expression))&&(b.push(a),f(",")););return b},literal:function(){return f(this.entities.dimension)||f(this.entities.color)||f(this.entities.quoted)||f(this.entities.unicodeDescriptor)},assignment:function(){var a,b;return(a=f(/^\w+(?=\s?=)/i))&&f("=")&&(b=f(this.entity))?new tree.Assignment(a,b):void 0},url:function(){var b;if("u"===o.charAt(p)&&f(/^url\(/))return b=f(this.entities.quoted)||f(this.entities.variable)||f(/^(?:(?:\\[\(\)'"])|[^\(\)'"])+/)||"",h(")"),new tree.URL(null!=b.value||b instanceof tree.Variable?b:new tree.Anonymous(b),a.currentFileInfo)},variable:function(){var b,c=p;return"@"===o.charAt(p)&&(b=f(/^@@?[\w-]+/))?new tree.Variable(b,c,a.currentFileInfo):void 0},variableCurly:function(){var b,c=p;return"@"===o.charAt(p)&&(b=f(/^@\{([\w-]+)\}/))?new tree.Variable("@"+b[1],c,a.currentFileInfo):void 0},color:function(){var a;return"#"===o.charAt(p)&&(a=f(/^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})/))?new tree.Color(a[1]):void 0},dimension:function(){var a,b=o.charCodeAt(p);if(!(b>57||43>b||47===b||44==b))return(a=f(/^([+-]?\d*\.?\d+)(%|[a-z]+)?/))?new tree.Dimension(a[1],a[2]):void 0},unicodeDescriptor:function(){var a;return(a=f(/^U\+[0-9a-fA-F?]+(\-[0-9a-fA-F?]+)?/))?new tree.UnicodeDescriptor(a[0]):void 0},javascript:function(){var b,c,d=p;return"~"===o.charAt(d)&&(d++,c=!0),"`"===o.charAt(d)?(void 0===a.javascriptEnabled||a.javascriptEnabled||i("You are using JavaScript, which has been disabled."),c&&f("~"),(b=f(/^`([^`]*)`/))?new tree.JavaScript(b[1],p,c):void 0):void 0}},variable:function(){var a;return"@"===o.charAt(p)&&(a=f(/^(@[\w-]+)\s*:/))?a[1]:void 0},extend:function(a){var b,c,d,e=p,g=[];if(f(a?/^&:extend\(/:/^:extend\(/)){do{for(d=null,b=[];;){if(d=f(/^(all)(?=\s*(\)|,))/))break;if(c=f(this.element),!c)break;b.push(c)}d=d&&d[1],g.push(new tree.Extend(new tree.Selector(b),d,e))}while(f(","));return h(/^\)/),a&&h(/^;/),g}},extendRule:function(){return this.extend(!0)},mixin:{call:function(){var d,e,g,i=[],k=p,l=o.charAt(p),m=!1;if("."===l||"#"===l){for(b();d=f(/^[#.](?:[\w-]|\\(?:[A-Fa-f0-9]{1,6} ?|[^A-Fa-f0-9]))+/);)i.push(new tree.Element(e,d,p,a.currentFileInfo)),e=f(">");return f("(")&&(g=this.mixin.args.call(this,!0).args,h(")")),g=g||[],f(this.important)&&(m=!0),i.length>0&&(f(";")||j("}"))?new tree.mixin.Call(i,g,k,a.currentFileInfo,m):(c(),void 0)}},args:function(a){for(var b,c,d,e,g,j,k=[],l=[],m=[],n={args:null,variadic:!1};;){if(a)j=f(this.expression);else{if(f(this.comments),"."===o.charAt(p)&&f(/^\.{3}/)){n.variadic=!0,f(";")&&!b&&(b=!0),(b?l:m).push({variadic:!0});break}j=f(this.entities.variable)||f(this.entities.literal)||f(this.entities.keyword)}if(!j)break;e=null,j.throwAwayComments&&j.throwAwayComments(),g=j;var q=null;if(a?1==j.value.length&&(q=j.value[0]):q=j,q&&q instanceof tree.Variable)if(f(":"))k.length>0&&(b&&i("Cannot mix ; and , as delimiter types"),c=!0),g=h(this.expression),e=d=q.name;else{if(!a&&f(/^\.{3}/)){n.variadic=!0,f(";")&&!b&&(b=!0),(b?l:m).push({name:j.name,variadic:!0});break}a||(d=e=q.name,g=null)}g&&k.push(g),m.push({name:e,value:g}),f(",")||(f(";")||b)&&(c&&i("Cannot mix ; and , as delimiter types"),b=!0,k.length>1&&(g=new tree.Value(k)),l.push({name:d,value:g}),d=null,k=[],c=!1)}return n.args=b?l:m,n},definition:function(){var a,d,e,g,i=[],k=!1;if(!("."!==o.charAt(p)&&"#"!==o.charAt(p)||j(/^[^{]*\}/))&&(b(),d=f(/^([#.](?:[\w-]|\\(?:[A-Fa-f0-9]{1,6} ?|[^A-Fa-f0-9]))+)\s*\(/))){a=d[1];var l=this.mixin.args.call(this,!1);if(i=l.args,k=l.variadic,f(")")||(t=p,c()),f(this.comments),f(/^when/)&&(g=h(this.conditions,"expected condition")),e=f(this.block))return new tree.mixin.Definition(a,i,e,g,k);c()}}},entity:function(){return f(this.entities.literal)||f(this.entities.variable)||f(this.entities.url)||f(this.entities.call)||f(this.entities.keyword)||f(this.entities.javascript)||f(this.comment)},end:function(){return f(";")||j("}")},alpha:function(){var a;if(f(/^\(opacity=/i))return(a=f(/^\d+/)||f(this.entities.variable))?(h(")"),new tree.Alpha(a)):void 0},element:function(){var b,c,d;return c=f(this.combinator),b=f(/^(?:\d+\.\d+|\d+)%/)||f(/^(?:[.#]?|:*)(?:[\w-]|[^\x00-\x9f]|\\(?:[A-Fa-f0-9]{1,6} ?|[^A-Fa-f0-9]))+/)||f("*")||f("&")||f(this.attribute)||f(/^\([^()@]+\)/)||f(/^[\.#](?=@)/)||f(this.entities.variableCurly),b||f("(")&&(d=f(this.selector))&&f(")")&&(b=new tree.Paren(d)),b?new tree.Element(c,b,p,a.currentFileInfo):void 0},combinator:function(){var a=o.charAt(p);if(">"===a||"+"===a||"~"===a||"|"===a){for(p++;o.charAt(p).match(/\s/);)p++;return new tree.Combinator(a)}return o.charAt(p-1).match(/\s/)?new tree.Combinator(" "):new tree.Combinator(null)},lessSelector:function(){return this.selector(!0)},selector:function(b){for(var c,d,e,g,j,k=[],l=[];(b&&(e=f(this.extend))||b&&(g=f(/^when/))||(c=f(this.element)))&&(g?j=h(this.conditions,"expected condition"):j?i("CSS guard can only be used at the end of selector"):e?l.push.apply(l,e):(l.length&&i("Extend can only be used at the end of selector"),d=o.charAt(p),k.push(c),c=null),"{"!==d&&"}"!==d&&";"!==d&&","!==d&&")"!==d););return k.length>0?new tree.Selector(k,l,j,p,a.currentFileInfo):(l.length&&i("Extend must be used to extend a selector, it cannot be used on its own"),void 0)},attribute:function(){var a,b,c;if(f("["))return(a=f(this.entities.variableCurly))||(a=h(/^(?:[_A-Za-z0-9-\*]*\|)?(?:[_A-Za-z0-9-]|\\.)+/)),(c=f(/^[|~*$^]?=/))&&(b=f(this.entities.quoted)||f(/^[0-9]+%/)||f(/^[\w-]+/)||f(this.entities.variableCurly)),h("]"),new tree.Attribute(a,c,b)},block:function(){var a;return f("{")&&(a=f(this.primary))&&f("}")?a:void 0},ruleset:function(){var d,e,g,h=[];for(b(),a.dumpLineNumbers&&(g=m(p,o,a));(d=f(this.lessSelector))&&(h.push(d),f(this.comments),f(","));)d.condition&&i("Guards are only currently allowed on a single selector."),f(this.comments);if(h.length>0&&(e=f(this.block))){var j=new tree.Ruleset(h,e,a.strictImports);return a.dumpLineNumbers&&(j.debugInfo=g),j}t=p,c()},rule:function(d){var e,g,h,i=o.charAt(p),j=!1;if(b(),"."!==i&&"#"!==i&&"&"!==i&&(e=f(this.variable)||f(this.ruleProperty))){if(g=d||!a.compress&&"@"!==e.charAt(0)?f(this.anonymousValue)||f(this.value):f(this.value)||f(this.anonymousValue),h=f(this.important),"+"===e[e.length-1]&&(j=!0,e=e.substr(0,e.length-1)),g&&f(this.end))return new tree.Rule(e,g,h,j,s,a.currentFileInfo);if(t=p,c(),g&&!d)return this.rule(!0)}},anonymousValue:function(){var a;return(a=/^([^@+\/'"*`(;{}-]*);/.exec(u[q]))?(p+=a[0].length-1,new tree.Anonymous(a[1])):void 0},"import":function(){var d,e,g=p;b();var h=f(/^@import?\s+/),i=(h?f(this.importOptions):null)||{};return h&&(d=f(this.entities.quoted)||f(this.entities.url))&&(e=f(this.mediaFeatures),f(";"))?(e=e&&new tree.Value(e),new tree.Import(d,e,i,g,a.currentFileInfo)):(c(),void 0)},importOptions:function(){var a,b,c,d={};if(!f("("))return null;do if(a=f(this.importOption)){switch(b=a,c=!0,b){case"css":b="less",c=!1;break;case"once":b="multiple",c=!1}if(d[b]=c,!f(","))break}while(a);return h(")"),d},importOption:function(){var a=f(/^(less|css|multiple|once|inline|reference)/);return a?a[1]:void 0},mediaFeature:function(){var b,c,d=[];do if(b=f(this.entities.keyword)||f(this.entities.variable))d.push(b);else if(f("(")){if(c=f(this.property),b=f(this.value),!f(")"))return null;if(c&&b)d.push(new tree.Paren(new tree.Rule(c,b,null,null,p,a.currentFileInfo,!0)));else{if(!b)return null;d.push(new tree.Paren(b))}}while(b);return d.length>0?new tree.Expression(d):void 0},mediaFeatures:function(){var a,b=[];do if(a=f(this.mediaFeature)){if(b.push(a),!f(","))break}else if((a=f(this.entities.variable))&&(b.push(a),!f(",")))break;while(a);return b.length>0?b:null},media:function(){var b,c,d,e;return a.dumpLineNumbers&&(e=m(p,o,a)),f(/^@media/)&&(b=f(this.mediaFeatures),c=f(this.block))?(d=new tree.Media(c,b,p,a.currentFileInfo),a.dumpLineNumbers&&(d.debugInfo=e),d):void 0},directive:function(){var d,e,g,h,i,j,k,l;if("@"===o.charAt(p)){if(e=f(this["import"])||f(this.media))return e;if(b(),d=f(/^@[a-z-]+/)){switch(h=d,"-"==d.charAt(1)&&d.indexOf("-",2)>0&&(h="@"+d.slice(d.indexOf("-",2)+1)),h){case"@font-face":i=!0;break;case"@viewport":case"@top-left":case"@top-left-corner":case"@top-center":case"@top-right":case"@top-right-corner":case"@bottom-left":case"@bottom-left-corner":case"@bottom-center":case"@bottom-right":case"@bottom-right-corner":case"@left-top":case"@left-middle":case"@left-bottom":case"@right-top":case"@right-middle":case"@right-bottom":i=!0;break;case"@host":case"@page":case"@document":case"@supports":case"@keyframes":i=!0,j=!0;break;case"@namespace":k=!0}if(j&&(l=(f(/^[^{]+/)||"").trim(),l&&(d+=" "+l)),i){if(g=f(this.block))return new tree.Directive(d,g,p,a.currentFileInfo)}else if((e=k?f(this.expression):f(this.entity))&&f(";")){var n=new tree.Directive(d,e,p,a.currentFileInfo);return a.dumpLineNumbers&&(n.debugInfo=m(p,o,a)),n}c()}}},value:function(){for(var a,b=[];(a=f(this.expression))&&(b.push(a),f(",")););return b.length>0?new tree.Value(b):void 0},important:function(){return"!"===o.charAt(p)?f(/^! *important/):void 0},sub:function(){var a,b;return f("(")&&(a=f(this.addition))?(b=new tree.Expression([a]),h(")"),b.parens=!0,b):void 0},multiplication:function(){var a,b,c,d,g;if(a=f(this.operand)){for(g=e(o.charAt(p-1));!j(/^\/[*\/]/)&&(c=f("/")||f("*"))&&(b=f(this.operand));)a.parensInOp=!0,b.parensInOp=!0,d=new tree.Operation(c,[d||a,b],g),g=e(o.charAt(p-1));return d||a}},addition:function(){var a,b,c,d,g;if(a=f(this.multiplication)){for(g=e(o.charAt(p-1));(c=f(/^[-+]\s+/)||!g&&(f("+")||f("-")))&&(b=f(this.multiplication));)a.parensInOp=!0,b.parensInOp=!0,d=new tree.Operation(c,[d||a,b],g),g=e(o.charAt(p-1));return d||a}},conditions:function(){var a,b,c,d=p;if(a=f(this.condition)){for(;j(/^,\s*(not\s*)?\(/)&&f(",")&&(b=f(this.condition));)c=new tree.Condition("or",c||a,b,d);return c||a}},condition:function(){var a,b,c,d,e=p,g=!1;return f(/^not/)&&(g=!0),h("("),(a=f(this.addition)||f(this.entities.keyword)||f(this.entities.quoted))?((d=f(/^(?:>=|<=|=<|[<=>])/))?(b=f(this.addition)||f(this.entities.keyword)||f(this.entities.quoted))?c=new tree.Condition(d,a,b,e,g):i("expected expression"):c=new tree.Condition("=",a,new tree.Keyword("true"),e,g),h(")"),f(/^and/)?new tree.Condition("and",c,f(this.condition)):c):void 0},operand:function(){var a,b=o.charAt(p+1);"-"!==o.charAt(p)||"@"!==b&&"("!==b||(a=f("-"));var c=f(this.sub)||f(this.entities.dimension)||f(this.entities.color)||f(this.entities.variable)||f(this.entities.call);return a&&(c.parensInOp=!0,c=new tree.Negative(c)),c},expression:function(){for(var a,b,c=[];a=f(this.addition)||f(this.entity);)c.push(a),!j(/^\/[\/*]/)&&(b=f("/"))&&c.push(new tree.Anonymous(b));return c.length>0?new tree.Expression(c):void 0},property:function(){var a;return(a=f(/^(\*?-?[_a-zA-Z0-9-]+)\s*:/))?a[1]:void 0},ruleProperty:function(){var a;return(a=f(/^(\*?-?[_a-zA-Z0-9-]+)\s*(\+?)\s*:/))?a[1]+(a[2]||""):void 0}}}},function(a){function b(b){return a.functions.hsla(b.h,b.s,b.l,b.a)}function c(b,c){return b instanceof a.Dimension&&b.unit.is("%")?parseFloat(b.value*c/100):d(b)}function d(b){if(b instanceof a.Dimension)return parseFloat(b.unit.is("%")?b.value/100:b.value);if("number"==typeof b)return b;throw{error:"RuntimeError",message:"color functions take numbers as parameters"}}function e(a){return Math.min(1,Math.max(0,a))}a.functions={rgb:function(a,b,c){return this.rgba(a,b,c,1)},rgba:function(b,e,f,g){var h=[b,e,f].map(function(a){return c(a,256)});return g=d(g),new a.Color(h,g)},hsl:function(a,b,c){return this.hsla(a,b,c,1)},hsla:function(a,b,c,f){function g(a){return a=0>a?a+1:a>1?a-1:a,1>6*a?i+6*(h-i)*a:1>2*a?h:2>3*a?i+6*(h-i)*(2/3-a):i}a=d(a)%360/360,b=e(d(b)),c=e(d(c)),f=e(d(f));var h=.5>=c?c*(b+1):c+b-c*b,i=2*c-h;return this.rgba(255*g(a+1/3),255*g(a),255*g(a-1/3),f)},hsv:function(a,b,c){return this.hsva(a,b,c,1)},hsva:function(a,b,c,e){a=360*(d(a)%360/360),b=d(b),c=d(c),e=d(e);var f,g;f=Math.floor(a/60%6),g=a/60-f;var h=[c,c*(1-b),c*(1-g*b),c*(1-(1-g)*b)],i=[[0,3,1],[2,0,1],[1,0,3],[1,2,0],[3,1,0],[0,1,2]];return this.rgba(255*h[i[f][0]],255*h[i[f][1]],255*h[i[f][2]],e)},hue:function(b){return new a.Dimension(Math.round(b.toHSL().h))},saturation:function(b){return new a.Dimension(Math.round(100*b.toHSL().s),"%")},lightness:function(b){return new a.Dimension(Math.round(100*b.toHSL().l),"%")},hsvhue:function(b){return new a.Dimension(Math.round(b.toHSV().h))},hsvsaturation:function(b){return new a.Dimension(Math.round(100*b.toHSV().s),"%")},hsvvalue:function(b){return new a.Dimension(Math.round(100*b.toHSV().v),"%")},red:function(b){return new a.Dimension(b.rgb[0])},green:function(b){return new a.Dimension(b.rgb[1])},blue:function(b){return new a.Dimension(b.rgb[2])},alpha:function(b){return new a.Dimension(b.toHSL().a)},luma:function(b){return new a.Dimension(Math.round(100*b.luma()*b.alpha),"%")},saturate:function(a,c){if(!a.rgb)return null;var d=a.toHSL();return d.s+=c.value/100,d.s=e(d.s),b(d)},desaturate:function(a,c){var d=a.toHSL();return d.s-=c.value/100,d.s=e(d.s),b(d)},lighten:function(a,c){var d=a.toHSL();return d.l+=c.value/100,d.l=e(d.l),b(d)},darken:function(a,c){var d=a.toHSL();return d.l-=c.value/100,d.l=e(d.l),b(d)},fadein:function(a,c){var d=a.toHSL();return d.a+=c.value/100,d.a=e(d.a),b(d)},fadeout:function(a,c){var d=a.toHSL();return d.a-=c.value/100,d.a=e(d.a),b(d)},fade:function(a,c){var d=a.toHSL();return d.a=c.value/100,d.a=e(d.a),b(d)},spin:function(a,c){var d=a.toHSL(),e=(d.h+c.value)%360;return d.h=0>e?360+e:e,b(d)},mix:function(b,c,d){d||(d=new a.Dimension(50));var e=d.value/100,f=2*e-1,g=b.toHSL().a-c.toHSL().a,h=((-1==f*g?f:(f+g)/(1+f*g))+1)/2,i=1-h,j=[b.rgb[0]*h+c.rgb[0]*i,b.rgb[1]*h+c.rgb[1]*i,b.rgb[2]*h+c.rgb[2]*i],k=b.alpha*e+c.alpha*(1-e);return new a.Color(j,k)},greyscale:function(b){return this.desaturate(b,new a.Dimension(100))},contrast:function(a,b,c,e){if(!a.rgb)return null;if("undefined"==typeof c&&(c=this.rgba(255,255,255,1)),"undefined"==typeof b&&(b=this.rgba(0,0,0,1)),b.luma()>c.luma()){var f=c;c=b,b=f}return e="undefined"==typeof e?.43:d(e),a.luma()*a.alpha<e?c:b},e:function(b){return new a.Anonymous(b instanceof a.JavaScript?b.evaluated:b)},escape:function(b){return new a.Anonymous(encodeURI(b.value).replace(/=/g,"%3D").replace(/:/g,"%3A").replace(/#/g,"%23").replace(/;/g,"%3B").replace(/\(/g,"%28").replace(/\)/g,"%29"))},"%":function(b){for(var c=Array.prototype.slice.call(arguments,1),d=b.value,e=0;e<c.length;e++)d=d.replace(/%[sda]/i,function(a){var b=a.match(/s/i)?c[e].value:c[e].toCSS();return a.match(/[A-Z]$/)?encodeURIComponent(b):b});return d=d.replace(/%%/g,"%"),new a.Quoted('"'+d+'"',d)},unit:function(b,c){if(!(b instanceof a.Dimension))throw{type:"Argument",message:"the first argument to unit must be a number"+(b instanceof a.Operation?". Have you forgotten parenthesis?":"")};return new a.Dimension(b.value,c?c.toCSS():"")},convert:function(a,b){return a.convertTo(b.value)},round:function(a,b){var c="undefined"==typeof b?0:b.value;return this._math(function(a){return a.toFixed(c)},null,a)},pi:function(){return new a.Dimension(Math.PI)},mod:function(b,c){return new a.Dimension(b.value%c.value,b.unit)},pow:function(b,c){if("number"==typeof b&&"number"==typeof c)b=new a.Dimension(b),c=new a.Dimension(c);else if(!(b instanceof a.Dimension&&c instanceof a.Dimension))throw{type:"Argument",message:"arguments must be numbers"};return new a.Dimension(Math.pow(b.value,c.value),b.unit)},_math:function(b,c,d){if(d instanceof a.Dimension)return new a.Dimension(b(parseFloat(d.value)),null==c?d.unit:c);if("number"==typeof d)return b(d);throw{type:"Argument",message:"argument must be a number"}},_minmax:function(b,c){switch(c=Array.prototype.slice.call(c),c.length){case 0:throw{type:"Argument",message:"one or more arguments required"};case 1:return c[0]}var d,e,f,g,h,i,j=[],k={};for(d=0;d<c.length;d++)f=c[d],f instanceof a.Dimension?(g=f.unify(),i=g.unit.toString(),e=k[i],void 0!==e?(h=j[e].unify(),(b&&g.value<h.value||!b&&g.value>h.value)&&(j[e]=f)):(k[i]=j.length,j.push(f))):j.push(f);return 1==j.length?j[0]:(c=j.map(function(a){return a.toCSS(this.env)}).join(this.env.compress?",":", "),new a.Anonymous((b?"min":"max")+"("+c+")"))},min:function(){return this._minmax(!0,arguments)},max:function(){return this._minmax(!1,arguments)},argb:function(b){return new a.Anonymous(b.toARGB())},percentage:function(b){return new a.Dimension(100*b.value,"%")},color:function(b){if(b instanceof a.Quoted){var c,d=b.value;if(c=a.Color.fromKeyword(d))return c;if(/^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})/.test(d))return new a.Color(d.slice(1));throw{type:"Argument",message:"argument must be a color keyword or 3/6 digit hex e.g. #FFF"}}throw{type:"Argument",message:"argument must be a string"}},iscolor:function(b){return this._isa(b,a.Color)},isnumber:function(b){return this._isa(b,a.Dimension)},isstring:function(b){return this._isa(b,a.Quoted)},iskeyword:function(b){return this._isa(b,a.Keyword)},isurl:function(b){return this._isa(b,a.URL)
},ispixel:function(a){return this.isunit(a,"px")},ispercentage:function(a){return this.isunit(a,"%")},isem:function(a){return this.isunit(a,"em")},isunit:function(b,c){return b instanceof a.Dimension&&b.unit.is(c.value||c)?a.True:a.False},_isa:function(b,c){return b instanceof c?a.True:a.False},multiply:function(a,b){var c=a.rgb[0]*b.rgb[0]/255,d=a.rgb[1]*b.rgb[1]/255,e=a.rgb[2]*b.rgb[2]/255;return this.rgb(c,d,e)},screen:function(a,b){var c=255-(255-a.rgb[0])*(255-b.rgb[0])/255,d=255-(255-a.rgb[1])*(255-b.rgb[1])/255,e=255-(255-a.rgb[2])*(255-b.rgb[2])/255;return this.rgb(c,d,e)},overlay:function(a,b){var c=a.rgb[0]<128?2*a.rgb[0]*b.rgb[0]/255:255-2*(255-a.rgb[0])*(255-b.rgb[0])/255,d=a.rgb[1]<128?2*a.rgb[1]*b.rgb[1]/255:255-2*(255-a.rgb[1])*(255-b.rgb[1])/255,e=a.rgb[2]<128?2*a.rgb[2]*b.rgb[2]/255:255-2*(255-a.rgb[2])*(255-b.rgb[2])/255;return this.rgb(c,d,e)},softlight:function(a,b){var c=b.rgb[0]*a.rgb[0]/255,d=c+a.rgb[0]*(255-(255-a.rgb[0])*(255-b.rgb[0])/255-c)/255;c=b.rgb[1]*a.rgb[1]/255;var e=c+a.rgb[1]*(255-(255-a.rgb[1])*(255-b.rgb[1])/255-c)/255;c=b.rgb[2]*a.rgb[2]/255;var f=c+a.rgb[2]*(255-(255-a.rgb[2])*(255-b.rgb[2])/255-c)/255;return this.rgb(d,e,f)},hardlight:function(a,b){var c=b.rgb[0]<128?2*b.rgb[0]*a.rgb[0]/255:255-2*(255-b.rgb[0])*(255-a.rgb[0])/255,d=b.rgb[1]<128?2*b.rgb[1]*a.rgb[1]/255:255-2*(255-b.rgb[1])*(255-a.rgb[1])/255,e=b.rgb[2]<128?2*b.rgb[2]*a.rgb[2]/255:255-2*(255-b.rgb[2])*(255-a.rgb[2])/255;return this.rgb(c,d,e)},difference:function(a,b){var c=Math.abs(a.rgb[0]-b.rgb[0]),d=Math.abs(a.rgb[1]-b.rgb[1]),e=Math.abs(a.rgb[2]-b.rgb[2]);return this.rgb(c,d,e)},exclusion:function(a,b){var c=a.rgb[0]+b.rgb[0]*(255-a.rgb[0]-a.rgb[0])/255,d=a.rgb[1]+b.rgb[1]*(255-a.rgb[1]-a.rgb[1])/255,e=a.rgb[2]+b.rgb[2]*(255-a.rgb[2]-a.rgb[2])/255;return this.rgb(c,d,e)},average:function(a,b){var c=(a.rgb[0]+b.rgb[0])/2,d=(a.rgb[1]+b.rgb[1])/2,e=(a.rgb[2]+b.rgb[2])/2;return this.rgb(c,d,e)},negation:function(a,b){var c=255-Math.abs(255-b.rgb[0]-a.rgb[0]),d=255-Math.abs(255-b.rgb[1]-a.rgb[1]),e=255-Math.abs(255-b.rgb[2]-a.rgb[2]);return this.rgb(c,d,e)},tint:function(a,b){return this.mix(this.rgb(255,255,255),a,b)},shade:function(a,b){return this.mix(this.rgb(0,0,0),a,b)},extract:function(a,b){return b=b.value-1,Array.isArray(a.value)?a.value[b]:Array(a)[b]},length:function(b){var c=Array.isArray(b.value)?b.value.length:1;return new a.Dimension(c)},"data-uri":function(b,c){if("undefined"!=typeof window)return new a.URL(c||b,this.currentFileInfo).eval(this.env);var d=b.value,e=c&&c.value,f=require("fs"),g=require("path"),h=!1;if(arguments.length<2&&(e=d),this.env.isPathRelative(e)&&(e=this.currentFileInfo.relativeUrls?g.join(this.currentFileInfo.currentDirectory,e):g.join(this.currentFileInfo.entryPath,e)),arguments.length<2){var i;try{i=require("mime")}catch(j){i=a._mime}d=i.lookup(e);var k=i.charsets.lookup(d);h=["US-ASCII","UTF-8"].indexOf(k)<0,h&&(d+=";base64")}else h=/;base64$/.test(d);var l=f.readFileSync(e),m=32,n=parseInt(l.length/1024,10);if(n>=m&&this.env.ieCompat!==!1)return this.env.silent||console.warn("Skipped data-uri embedding of %s because its size (%dKB) exceeds IE8-safe %dKB!",e,n,m),new a.URL(c||b,this.currentFileInfo).eval(this.env);l=h?l.toString("base64"):encodeURIComponent(l);var o="'data:"+d+","+l+"'";return new a.URL(new a.Anonymous(o))},"svg-gradient":function(b){function c(){throw{type:"Argument",message:"svg-gradient expects direction, start_color [start_position], [color position,]..., end_color [end_position]"}}arguments.length<3&&c();var d,e,f,g,h,i,j,k=Array.prototype.slice.call(arguments,1),l="linear",m='x="0" y="0" width="1" height="1"',n=!0,o={compress:!1},p=b.toCSS(o);switch(p){case"to bottom":d='x1="0%" y1="0%" x2="0%" y2="100%"';break;case"to right":d='x1="0%" y1="0%" x2="100%" y2="0%"';break;case"to bottom right":d='x1="0%" y1="0%" x2="100%" y2="100%"';break;case"to top right":d='x1="0%" y1="100%" x2="100%" y2="0%"';break;case"ellipse":case"ellipse at center":l="radial",d='cx="50%" cy="50%" r="75%"',m='x="-50" y="-50" width="101" height="101"';break;default:throw{type:"Argument",message:"svg-gradient direction must be 'to bottom', 'to right', 'to bottom right', 'to top right' or 'ellipse at center'"}}for(e='<?xml version="1.0" ?><svg xmlns="http://www.w3.org/2000/svg" version="1.1" width="100%" height="100%" viewBox="0 0 1 1" preserveAspectRatio="none"><'+l+'Gradient id="gradient" gradientUnits="userSpaceOnUse" '+d+">",f=0;f<k.length;f+=1)k[f].value?(g=k[f].value[0],h=k[f].value[1]):(g=k[f],h=void 0),g instanceof a.Color&&((0===f||f+1===k.length)&&void 0===h||h instanceof a.Dimension)||c(),i=h?h.toCSS(o):0===f?"0%":"100%",j=g.alpha,e+='<stop offset="'+i+'" stop-color="'+g.toRGB()+'"'+(1>j?' stop-opacity="'+j+'"':"")+"/>";if(e+="</"+l+"Gradient>"+"<rect "+m+' fill="url(#gradient)" /></svg>',n)try{e=new Buffer(e).toString("base64")}catch(q){n=!1}return e="'data:image/svg+xml"+(n?";base64":"")+","+e+"'",new a.URL(new a.Anonymous(e))}},a._mime={_types:{".htm":"text/html",".html":"text/html",".gif":"image/gif",".jpg":"image/jpeg",".jpeg":"image/jpeg",".png":"image/png"},lookup:function(b){var c=require("path").extname(b),d=a._mime._types[c];if(void 0===d)throw new Error('Optional dependency "mime" is required for '+c);return d},charsets:{lookup:function(a){return a&&/^text\//.test(a)?"UTF-8":""}}};for(var f=[{name:"ceil"},{name:"floor"},{name:"sqrt"},{name:"abs"},{name:"tan",unit:""},{name:"sin",unit:""},{name:"cos",unit:""},{name:"atan",unit:"rad"},{name:"asin",unit:"rad"},{name:"acos",unit:"rad"}],g=function(a,b){return function(c){return null!=b&&(c=c.unify()),this._math(Math[a],b,c)}},h=0;h<f.length;h++)a.functions[f[h].name]=g(f[h].name,f[h].unit);a.functionCall=function(a,b){this.env=a,this.currentFileInfo=b},a.functionCall.prototype=a.functions}(require("./tree")),function(a){a.colors={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",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"}}(require("./tree")),function(a){a.debugInfo=function(b,c,d){var e="";if(b.dumpLineNumbers&&!b.compress)switch(b.dumpLineNumbers){case"comments":e=a.debugInfo.asComment(c);break;case"mediaquery":e=a.debugInfo.asMediaQuery(c);break;case"all":e=a.debugInfo.asComment(c)+(d||"")+a.debugInfo.asMediaQuery(c)}return e},a.debugInfo.asComment=function(a){return"/* line "+a.debugInfo.lineNumber+", "+a.debugInfo.fileName+" */\n"},a.debugInfo.asMediaQuery=function(a){return"@media -sass-debug-info{filename{font-family:"+("file://"+a.debugInfo.fileName).replace(/([.:/\\])/g,function(a){return"\\"==a&&(a="/"),"\\"+a})+"}line{font-family:\\00003"+a.debugInfo.lineNumber+"}}\n"},a.find=function(a,b){for(var c,d=0;d<a.length;d++)if(c=b.call(a,a[d]))return c;return null},a.jsify=function(a){return Array.isArray(a.value)&&a.value.length>1?"["+a.value.map(function(a){return a.toCSS(!1)}).join(", ")+"]":a.toCSS(!1)},a.toCSS=function(a){var b=[];return this.genCSS(a,{add:function(a){b.push(a)},isEmpty:function(){return 0===b.length}}),b.join("")},a.outputRuleset=function(a,b,c){b.add(a.compress?"{":" {\n"),a.tabLevel=(a.tabLevel||0)+1;for(var d=a.compress?"":Array(a.tabLevel+1).join(" "),e=a.compress?"":Array(a.tabLevel).join(" "),f=0;f<c.length;f++)b.add(d),c[f].genCSS(a,b),b.add(a.compress?"":"\n");a.tabLevel--,b.add(e+"}")}}(require("./tree")),function(a){a.Alpha=function(a){this.value=a},a.Alpha.prototype={type:"Alpha",accept:function(a){this.value=a.visit(this.value)},eval:function(b){return this.value.eval?new a.Alpha(this.value.eval(b)):this},genCSS:function(a,b){b.add("alpha(opacity="),this.value.genCSS?this.value.genCSS(a,b):b.add(this.value),b.add(")")},toCSS:a.toCSS}}(require("../tree")),function(a){a.Anonymous=function(a,b,c,d){this.value=a.value||a,this.index=b,this.mapLines=d,this.currentFileInfo=c},a.Anonymous.prototype={type:"Anonymous",eval:function(){return this},compare:function(a){if(!a.toCSS)return-1;var b=this.toCSS(),c=a.toCSS();return b===c?0:c>b?-1:1},genCSS:function(a,b){b.add(this.value,this.currentFileInfo,this.index,this.mapLines)},toCSS:a.toCSS}}(require("../tree")),function(a){a.Assignment=function(a,b){this.key=a,this.value=b},a.Assignment.prototype={type:"Assignment",accept:function(a){this.value=a.visit(this.value)},eval:function(b){return this.value.eval?new a.Assignment(this.key,this.value.eval(b)):this},genCSS:function(a,b){b.add(this.key+"="),this.value.genCSS?this.value.genCSS(a,b):b.add(this.value)},toCSS:a.toCSS}}(require("../tree")),function(a){a.Call=function(a,b,c,d){this.name=a,this.args=b,this.index=c,this.currentFileInfo=d},a.Call.prototype={type:"Call",accept:function(a){this.args=a.visit(this.args)},eval:function(b){var c,d,e=this.args.map(function(a){return a.eval(b)}),f=this.name.toLowerCase();if(f in a.functions)try{if(d=new a.functionCall(b,this.currentFileInfo),c=d[f].apply(d,e),null!=c)return c}catch(g){throw{type:g.type||"Runtime",message:"error evaluating function `"+this.name+"`"+(g.message?": "+g.message:""),index:this.index,filename:this.currentFileInfo.filename}}return new a.Call(this.name,e,this.index,this.currentFileInfo)},genCSS:function(a,b){b.add(this.name+"(",this.currentFileInfo,this.index);for(var c=0;c<this.args.length;c++)this.args[c].genCSS(a,b),c+1<this.args.length&&b.add(", ");b.add(")")},toCSS:a.toCSS}}(require("../tree")),function(a){a.Color=function(a,b){this.rgb=Array.isArray(a)?a:6==a.length?a.match(/.{2}/g).map(function(a){return parseInt(a,16)}):a.split("").map(function(a){return parseInt(a+a,16)}),this.alpha="number"==typeof b?b:1};var b="transparent";a.Color.prototype={type:"Color",eval:function(){return this},luma:function(){return.2126*this.rgb[0]/255+.7152*this.rgb[1]/255+.0722*this.rgb[2]/255},genCSS:function(a,b){b.add(this.toCSS(a))},toCSS:function(a,c){var d=a&&a.compress&&!c;if(this.alpha<1)return 0===this.alpha&&this.isTransparentKeyword?b:"rgba("+this.rgb.map(function(a){return Math.round(a)}).concat(this.alpha).join(","+(d?"":" "))+")";var e=this.toRGB();if(d){var f=e.split("");f[1]===f[2]&&f[3]===f[4]&&f[5]===f[6]&&(e="#"+f[1]+f[3]+f[5])}return e},operate:function(b,c,d){var e=[];d instanceof a.Color||(d=d.toColor());for(var f=0;3>f;f++)e[f]=a.operate(b,c,this.rgb[f],d.rgb[f]);return new a.Color(e,this.alpha+d.alpha)},toRGB:function(){return"#"+this.rgb.map(function(a){return a=Math.round(a),a=(a>255?255:0>a?0:a).toString(16),1===a.length?"0"+a:a}).join("")},toHSL:function(){var a,b,c=this.rgb[0]/255,d=this.rgb[1]/255,e=this.rgb[2]/255,f=this.alpha,g=Math.max(c,d,e),h=Math.min(c,d,e),i=(g+h)/2,j=g-h;if(g===h)a=b=0;else{switch(b=i>.5?j/(2-g-h):j/(g+h),g){case c:a=(d-e)/j+(e>d?6:0);break;case d:a=(e-c)/j+2;break;case e:a=(c-d)/j+4}a/=6}return{h:360*a,s:b,l:i,a:f}},toHSV:function(){var a,b,c=this.rgb[0]/255,d=this.rgb[1]/255,e=this.rgb[2]/255,f=this.alpha,g=Math.max(c,d,e),h=Math.min(c,d,e),i=g,j=g-h;if(b=0===g?0:j/g,g===h)a=0;else{switch(g){case c:a=(d-e)/j+(e>d?6:0);break;case d:a=(e-c)/j+2;break;case e:a=(c-d)/j+4}a/=6}return{h:360*a,s:b,v:i,a:f}},toARGB:function(){var a=[Math.round(255*this.alpha)].concat(this.rgb);return"#"+a.map(function(a){return a=Math.round(a),a=(a>255?255:0>a?0:a).toString(16),1===a.length?"0"+a:a}).join("")},compare:function(a){return a.rgb?a.rgb[0]===this.rgb[0]&&a.rgb[1]===this.rgb[1]&&a.rgb[2]===this.rgb[2]&&a.alpha===this.alpha?0:-1:-1}},a.Color.fromKeyword=function(c){if(a.colors.hasOwnProperty(c))return new a.Color(a.colors[c].slice(1));if(c===b){var d=new a.Color([0,0,0],0);return d.isTransparentKeyword=!0,d}}}(require("../tree")),function(a){a.Comment=function(a,b,c,d){this.value=a,this.silent=!!b,this.currentFileInfo=d},a.Comment.prototype={type:"Comment",genCSS:function(b,c){this.debugInfo&&c.add(a.debugInfo(b,this),this.currentFileInfo,this.index),c.add(this.value.trim())},toCSS:a.toCSS,isSilent:function(a){var b=this.currentFileInfo&&this.currentFileInfo.reference&&!this.isReferenced,c=a.compress&&!this.value.match(/^\/\*!/);return this.silent||b||c},eval:function(){return this},markReferenced:function(){this.isReferenced=!0}}}(require("../tree")),function(a){a.Condition=function(a,b,c,d,e){this.op=a.trim(),this.lvalue=b,this.rvalue=c,this.index=d,this.negate=e},a.Condition.prototype={type:"Condition",accept:function(a){this.lvalue=a.visit(this.lvalue),this.rvalue=a.visit(this.rvalue)},eval:function(a){var b,c=this.lvalue.eval(a),d=this.rvalue.eval(a),e=this.index;return b=function(a){switch(a){case"and":return c&&d;case"or":return c||d;default:if(c.compare)b=c.compare(d);else{if(!d.compare)throw{type:"Type",message:"Unable to perform comparison",index:e};b=d.compare(c)}switch(b){case-1:return"<"===a||"=<"===a||"<="===a;case 0:return"="===a||">="===a||"=<"===a||"<="===a;case 1:return">"===a||">="===a}}}(this.op),this.negate?!b:b}}}(require("../tree")),function(a){a.Dimension=function(b,c){this.value=parseFloat(b),this.unit=c&&c instanceof a.Unit?c:new a.Unit(c?[c]:void 0)},a.Dimension.prototype={type:"Dimension",accept:function(a){this.unit=a.visit(this.unit)},eval:function(){return this},toColor:function(){return new a.Color([this.value,this.value,this.value])},genCSS:function(a,b){if(a&&a.strictUnits&&!this.unit.isSingular())throw new Error("Multiple units in dimension. Correct the units or use the unit function. Bad unit: "+this.unit.toString());var c=this.value,d=String(c);if(0!==c&&1e-6>c&&c>-1e-6&&(d=c.toFixed(20).replace(/0+$/,"")),a&&a.compress){if(0===c&&this.unit.isLength())return b.add(d),void 0;c>0&&1>c&&(d=d.substr(1))}b.add(d),this.unit.genCSS(a,b)},toCSS:a.toCSS,operate:function(b,c,d){var e=a.operate(b,c,this.value,d.value),f=this.unit.clone();if("+"===c||"-"===c)if(0===f.numerator.length&&0===f.denominator.length)f.numerator=d.unit.numerator.slice(0),f.denominator=d.unit.denominator.slice(0);else if(0===d.unit.numerator.length&&0===f.denominator.length);else{if(d=d.convertTo(this.unit.usedUnits()),b.strictUnits&&d.unit.toString()!==f.toString())throw new Error("Incompatible units. Change the units or use the unit function. Bad units: '"+f.toString()+"' and '"+d.unit.toString()+"'.");e=a.operate(b,c,this.value,d.value)}else"*"===c?(f.numerator=f.numerator.concat(d.unit.numerator).sort(),f.denominator=f.denominator.concat(d.unit.denominator).sort(),f.cancel()):"/"===c&&(f.numerator=f.numerator.concat(d.unit.denominator).sort(),f.denominator=f.denominator.concat(d.unit.numerator).sort(),f.cancel());return new a.Dimension(e,f)},compare:function(b){if(b instanceof a.Dimension){var c=this.unify(),d=b.unify(),e=c.value,f=d.value;return f>e?-1:e>f?1:d.unit.isEmpty()||0===c.unit.compare(d.unit)?0:-1}return-1},unify:function(){return this.convertTo({length:"m",duration:"s",angle:"rad"})},convertTo:function(b){var c,d,e,f,g,h=this.value,i=this.unit.clone(),j={};if("string"==typeof b){for(c in a.UnitConversions)a.UnitConversions[c].hasOwnProperty(b)&&(j={},j[c]=b);b=j}g=function(a,b){return e.hasOwnProperty(a)?(b?h/=e[a]/e[f]:h*=e[a]/e[f],f):a};for(d in b)b.hasOwnProperty(d)&&(f=b[d],e=a.UnitConversions[d],i.map(g));return i.cancel(),new a.Dimension(h,i)}},a.UnitConversions={length:{m:1,cm:.01,mm:.001,"in":.0254,pt:.0254/72,pc:12*(.0254/72)},duration:{s:1,ms:.001},angle:{rad:1/(2*Math.PI),deg:1/360,grad:.0025,turn:1}},a.Unit=function(a,b,c){this.numerator=a?a.slice(0).sort():[],this.denominator=b?b.slice(0).sort():[],this.backupUnit=c},a.Unit.prototype={type:"Unit",clone:function(){return new a.Unit(this.numerator.slice(0),this.denominator.slice(0),this.backupUnit)},genCSS:function(a,b){this.numerator.length>=1?b.add(this.numerator[0]):this.denominator.length>=1?b.add(this.denominator[0]):a&&a.strictUnits||!this.backupUnit||b.add(this.backupUnit)},toCSS:a.toCSS,toString:function(){var a,b=this.numerator.join("*");for(a=0;a<this.denominator.length;a++)b+="/"+this.denominator[a];return b},compare:function(a){return this.is(a.toString())?0:-1},is:function(a){return this.toString()===a},isLength:function(){return Boolean(this.toCSS().match(/px|em|%|in|cm|mm|pc|pt|ex/))},isEmpty:function(){return 0===this.numerator.length&&0===this.denominator.length},isSingular:function(){return this.numerator.length<=1&&0===this.denominator.length},map:function(a){var b;for(b=0;b<this.numerator.length;b++)this.numerator[b]=a(this.numerator[b],!1);for(b=0;b<this.denominator.length;b++)this.denominator[b]=a(this.denominator[b],!0)},usedUnits:function(){var b,c,d={};c=function(a){return b.hasOwnProperty(a)&&!d[e]&&(d[e]=a),a};for(var e in a.UnitConversions)a.UnitConversions.hasOwnProperty(e)&&(b=a.UnitConversions[e],this.map(c));return d},cancel:function(){var a,b,c,d={};for(b=0;b<this.numerator.length;b++)a=this.numerator[b],c||(c=a),d[a]=(d[a]||0)+1;for(b=0;b<this.denominator.length;b++)a=this.denominator[b],c||(c=a),d[a]=(d[a]||0)-1;this.numerator=[],this.denominator=[];for(a in d)if(d.hasOwnProperty(a)){var e=d[a];if(e>0)for(b=0;e>b;b++)this.numerator.push(a);else if(0>e)for(b=0;-e>b;b++)this.denominator.push(a)}0===this.numerator.length&&0===this.denominator.length&&c&&(this.backupUnit=c),this.numerator.sort(),this.denominator.sort()}}}(require("../tree")),function(a){a.Directive=function(b,c,d,e){this.name=b,Array.isArray(c)?(this.rules=[new a.Ruleset([],c)],this.rules[0].allowImports=!0):this.value=c,this.currentFileInfo=e},a.Directive.prototype={type:"Directive",accept:function(a){this.rules=a.visit(this.rules),this.value=a.visit(this.value)},genCSS:function(b,c){c.add(this.name,this.currentFileInfo,this.index),this.rules?a.outputRuleset(b,c,this.rules):(c.add(" "),this.value.genCSS(b,c),c.add(";"))},toCSS:a.toCSS,eval:function(b){var c=this;return this.rules&&(b.frames.unshift(this),c=new a.Directive(this.name,null,this.index,this.currentFileInfo),c.rules=[this.rules[0].eval(b)],c.rules[0].root=!0,b.frames.shift()),c},variable:function(b){return a.Ruleset.prototype.variable.call(this.rules[0],b)},find:function(){return a.Ruleset.prototype.find.apply(this.rules[0],arguments)},rulesets:function(){return a.Ruleset.prototype.rulesets.apply(this.rules[0])},markReferenced:function(){var a,b;if(this.isReferenced=!0,this.rules)for(b=this.rules[0].rules,a=0;a<b.length;a++)b[a].markReferenced&&b[a].markReferenced()}}}(require("../tree")),function(a){a.Element=function(b,c,d,e){this.combinator=b instanceof a.Combinator?b:new a.Combinator(b),this.value="string"==typeof c?c.trim():c?c:"",this.index=d,this.currentFileInfo=e},a.Element.prototype={type:"Element",accept:function(a){this.combinator=a.visit(this.combinator),this.value=a.visit(this.value)},eval:function(b){return new a.Element(this.combinator,this.value.eval?this.value.eval(b):this.value,this.index,this.currentFileInfo)},genCSS:function(a,b){b.add(this.toCSS(a),this.currentFileInfo,this.index)},toCSS:function(a){var b=this.value.toCSS?this.value.toCSS(a):this.value;return""===b&&"&"===this.combinator.value.charAt(0)?"":this.combinator.toCSS(a||{})+b}},a.Attribute=function(a,b,c){this.key=a,this.op=b,this.value=c},a.Attribute.prototype={type:"Attribute",accept:function(a){this.value=a.visit(this.value)},eval:function(b){return new a.Attribute(this.key.eval?this.key.eval(b):this.key,this.op,this.value&&this.value.eval?this.value.eval(b):this.value)},genCSS:function(a,b){b.add(this.toCSS(a))},toCSS:function(a){var b=this.key.toCSS?this.key.toCSS(a):this.key;return this.op&&(b+=this.op,b+=this.value.toCSS?this.value.toCSS(a):this.value),"["+b+"]"}},a.Combinator=function(a){this.value=" "===a?" ":a?a.trim():""},a.Combinator.prototype={type:"Combinator",_outputMap:{"":""," ":" ",":":" :","+":" + ","~":" ~ ",">":" > ","|":"|"},_outputMapCompressed:{"":""," ":" ",":":" :","+":"+","~":"~",">":">","|":"|"},genCSS:function(a,b){b.add((a.compress?this._outputMapCompressed:this._outputMap)[this.value])},toCSS:a.toCSS}}(require("../tree")),function(a){a.Expression=function(a){this.value=a},a.Expression.prototype={type:"Expression",accept:function(a){this.value=a.visit(this.value)},eval:function(b){var c,d=this.parens&&!this.parensInOp,e=!1;return d&&b.inParenthesis(),this.value.length>1?c=new a.Expression(this.value.map(function(a){return a.eval(b)})):1===this.value.length?(this.value[0].parens&&!this.value[0].parensInOp&&(e=!0),c=this.value[0].eval(b)):c=this,d&&b.outOfParenthesis(),this.parens&&this.parensInOp&&!b.isMathOn()&&!e&&(c=new a.Paren(c)),c},genCSS:function(a,b){for(var c=0;c<this.value.length;c++)this.value[c].genCSS(a,b),c+1<this.value.length&&b.add(" ")},toCSS:a.toCSS,throwAwayComments:function(){this.value=this.value.filter(function(b){return!(b instanceof a.Comment)})}}}(require("../tree")),function(a){a.Extend=function(a,b,c){switch(this.selector=a,this.option=b,this.index=c,b){case"all":this.allowBefore=!0,this.allowAfter=!0;break;default:this.allowBefore=!1,this.allowAfter=!1}},a.Extend.prototype={type:"Extend",accept:function(a){this.selector=a.visit(this.selector)},eval:function(b){return new a.Extend(this.selector.eval(b),this.option,this.index)},clone:function(){return new a.Extend(this.selector,this.option,this.index)},findSelfSelectors:function(a){var b,c,d=[];for(b=0;b<a.length;b++)c=a[b].elements,b>0&&c.length&&""===c[0].combinator.value&&(c[0].combinator.value=" "),d=d.concat(a[b].elements);this.selfSelectors=[{elements:d}]}}}(require("../tree")),function(a){a.Import=function(a,b,c,d,e){if(this.options=c,this.index=d,this.path=a,this.features=b,this.currentFileInfo=e,void 0!==this.options.less||this.options.inline)this.css=!this.options.less||this.options.inline;else{var f=this.getPath();f&&/css([\?;].*)?$/.test(f)&&(this.css=!0)}},a.Import.prototype={type:"Import",accept:function(a){this.features=a.visit(this.features),this.path=a.visit(this.path),this.options.inline||(this.root=a.visit(this.root))},genCSS:function(a,b){this.css&&(b.add("@import ",this.currentFileInfo,this.index),this.path.genCSS(a,b),this.features&&(b.add(" "),this.features.genCSS(a,b)),b.add(";"))},toCSS:a.toCSS,getPath:function(){if(this.path instanceof a.Quoted){var b=this.path.value;return void 0!==this.css||/(\.[a-z]*$)|([\?;].*)$/.test(b)?b:b+".less"}return this.path instanceof a.URL?this.path.value.value:null},evalForImport:function(b){return new a.Import(this.path.eval(b),this.features,this.options,this.index,this.currentFileInfo)},evalPath:function(b){var c=this.path.eval(b),d=this.currentFileInfo&&this.currentFileInfo.rootpath;if(!(c instanceof a.URL)){if(d){var e=c.value;e&&b.isPathRelative(e)&&(c.value=d+e)}c.value=b.normalizePath(c.value)}return c},eval:function(b){var c,d=this.features&&this.features.eval(b);if(this.skip)return[];if(this.options.inline){var e=new a.Anonymous(this.root,0,{filename:this.importedFilename},!0);return this.features?new a.Media([e],this.features.value):[e]}if(this.css){var f=new a.Import(this.evalPath(b),d,this.options,this.index);if(!f.css&&this.error)throw this.error;return f}return c=new a.Ruleset([],this.root.rules.slice(0)),c.evalImports(b),this.features?new a.Media(c.rules,this.features.value):c.rules}}}(require("../tree")),function(a){a.JavaScript=function(a,b,c){this.escaped=c,this.expression=a,this.index=b},a.JavaScript.prototype={type:"JavaScript",eval:function(b){var c,d=this,e={},f=this.expression.replace(/@\{([\w-]+)\}/g,function(c,e){return a.jsify(new a.Variable("@"+e,d.index).eval(b))});try{f=new Function("return ("+f+")")}catch(g){throw{message:"JavaScript evaluation error: "+g.message+" from `"+f+"`",index:this.index}}for(var h in b.frames[0].variables())e[h.slice(1)]={value:b.frames[0].variables()[h].value,toJS:function(){return this.value.eval(b).toCSS()}};try{c=f.call(e)}catch(g){throw{message:"JavaScript evaluation error: '"+g.name+": "+g.message+"'",index:this.index}}return"string"==typeof c?new a.Quoted('"'+c+'"',c,this.escaped,this.index):Array.isArray(c)?new a.Anonymous(c.join(", ")):new a.Anonymous(c)}}}(require("../tree")),function(a){a.Keyword=function(a){this.value=a},a.Keyword.prototype={type:"Keyword",eval:function(){return this},genCSS:function(a,b){b.add(this.value)},toCSS:a.toCSS,compare:function(b){return b instanceof a.Keyword?b.value===this.value?0:1:-1}},a.True=new a.Keyword("true"),a.False=new a.Keyword("false")}(require("../tree")),function(a){a.Media=function(b,c,d,e){this.index=d,this.currentFileInfo=e;var f=this.emptySelectors();this.features=new a.Value(c),this.rules=[new a.Ruleset(f,b)],this.rules[0].allowImports=!0},a.Media.prototype={type:"Media",accept:function(a){this.features=a.visit(this.features),this.rules=a.visit(this.rules)},genCSS:function(b,c){c.add("@media ",this.currentFileInfo,this.index),this.features.genCSS(b,c),a.outputRuleset(b,c,this.rules)},toCSS:a.toCSS,eval:function(b){b.mediaBlocks||(b.mediaBlocks=[],b.mediaPath=[]);var c=new a.Media([],[],this.index,this.currentFileInfo);this.debugInfo&&(this.rules[0].debugInfo=this.debugInfo,c.debugInfo=this.debugInfo);var d=!1;b.strictMath||(d=!0,b.strictMath=!0);try{c.features=this.features.eval(b)}finally{d&&(b.strictMath=!1)}return b.mediaPath.push(c),b.mediaBlocks.push(c),b.frames.unshift(this.rules[0]),c.rules=[this.rules[0].eval(b)],b.frames.shift(),b.mediaPath.pop(),0===b.mediaPath.length?c.evalTop(b):c.evalNested(b)},variable:function(b){return a.Ruleset.prototype.variable.call(this.rules[0],b)},find:function(){return a.Ruleset.prototype.find.apply(this.rules[0],arguments)},rulesets:function(){return a.Ruleset.prototype.rulesets.apply(this.rules[0])},emptySelectors:function(){var b=new a.Element("","&",this.index,this.currentFileInfo);return[new a.Selector([b],null,null,this.index,this.currentFileInfo)]},markReferenced:function(){var a,b=this.rules[0].rules;for(this.isReferenced=!0,a=0;a<b.length;a++)b[a].markReferenced&&b[a].markReferenced()},evalTop:function(b){var c=this;if(b.mediaBlocks.length>1){var d=this.emptySelectors();c=new a.Ruleset(d,b.mediaBlocks),c.multiMedia=!0}return delete b.mediaBlocks,delete b.mediaPath,c},evalNested:function(b){var c,d,e=b.mediaPath.concat([this]);for(c=0;c<e.length;c++)d=e[c].features instanceof a.Value?e[c].features.value:e[c].features,e[c]=Array.isArray(d)?d:[d];return this.features=new a.Value(this.permute(e).map(function(b){for(b=b.map(function(b){return b.toCSS?b:new a.Anonymous(b)}),c=b.length-1;c>0;c--)b.splice(c,0,new a.Anonymous("and"));return new a.Expression(b)})),new a.Ruleset([],[])},permute:function(a){if(0===a.length)return[];if(1===a.length)return a[0];for(var b=[],c=this.permute(a.slice(1)),d=0;d<c.length;d++)for(var e=0;e<a[0].length;e++)b.push([a[0][e]].concat(c[d]));return b},bubbleSelectors:function(b){this.rules=[new a.Ruleset(b.slice(0),[this.rules[0]])]}}}(require("../tree")),function(a){a.mixin={},a.mixin.Call=function(b,c,d,e,f){this.selector=new a.Selector(b),this.arguments=c,this.index=d,this.currentFileInfo=e,this.important=f},a.mixin.Call.prototype={type:"MixinCall",accept:function(a){this.selector=a.visit(this.selector),this.arguments=a.visit(this.arguments)},eval:function(b){var c,d,e,f,g,h,i,j,k,l=[],m=!1;for(e=this.arguments&&this.arguments.map(function(a){return{name:a.name,value:a.value.eval(b)}}),f=0;f<b.frames.length;f++)if((c=b.frames[f].find(this.selector)).length>0){for(j=!0,g=0;g<c.length;g++){for(d=c[g],i=!1,h=0;h<b.frames.length;h++)if(!(d instanceof a.mixin.Definition)&&d===(b.frames[h].originalRuleset||b.frames[h])){i=!0;break}if(!i&&d.matchArgs(e,b)){if(!d.matchCondition||d.matchCondition(e,b))try{d instanceof a.mixin.Definition||(d=new a.mixin.Definition("",[],d.rules,null,!1),d.originalRuleset=c[g].originalRuleset||c[g]),Array.prototype.push.apply(l,d.eval(b,e,this.important).rules)}catch(n){throw{message:n.message,index:this.index,filename:this.currentFileInfo.filename,stack:n.stack}}m=!0}}if(m){if(!this.currentFileInfo||!this.currentFileInfo.reference)for(f=0;f<l.length;f++)k=l[f],k.markReferenced&&k.markReferenced();return l}}throw j?{type:"Runtime",message:"No matching definition was found for `"+this.selector.toCSS().trim()+"("+(e?e.map(function(a){var b="";return a.name&&(b+=a.name+":"),b+=a.value.toCSS?a.value.toCSS():"???"}).join(", "):"")+")`",index:this.index,filename:this.currentFileInfo.filename}:{type:"Name",message:this.selector.toCSS().trim()+" is undefined",index:this.index,filename:this.currentFileInfo.filename}}},a.mixin.Definition=function(b,c,d,e,f){this.name=b,this.selectors=[new a.Selector([new a.Element(null,b,this.index,this.currentFileInfo)])],this.params=c,this.condition=e,this.variadic=f,this.arity=c.length,this.rules=d,this._lookups={},this.required=c.reduce(function(a,b){return!b.name||b.name&&!b.value?a+1:a},0),this.parent=a.Ruleset.prototype,this.frames=[]},a.mixin.Definition.prototype={type:"MixinDefinition",accept:function(a){this.params=a.visit(this.params),this.rules=a.visit(this.rules),this.condition=a.visit(this.condition)},variable:function(a){return this.parent.variable.call(this,a)},variables:function(){return this.parent.variables.call(this)},find:function(){return this.parent.find.apply(this,arguments)},rulesets:function(){return this.parent.rulesets.apply(this)},evalParams:function(b,c,d,e){var f,g,h,i,j,k,l,m,n=new a.Ruleset(null,[]),o=this.params.slice(0);if(c=new a.evalEnv(c,[n].concat(c.frames)),d)for(d=d.slice(0),h=0;h<d.length;h++)if(g=d[h],k=g&&g.name){for(l=!1,i=0;i<o.length;i++)if(!e[i]&&k===o[i].name){e[i]=g.value.eval(b),n.rules.unshift(new a.Rule(k,g.value.eval(b))),l=!0;
break}if(l){d.splice(h,1),h--;continue}throw{type:"Runtime",message:"Named argument for "+this.name+" "+d[h].name+" not found"}}for(m=0,h=0;h<o.length;h++)if(!e[h]){if(g=d&&d[m],k=o[h].name)if(o[h].variadic&&d){for(f=[],i=m;i<d.length;i++)f.push(d[i].value.eval(b));n.rules.unshift(new a.Rule(k,new a.Expression(f).eval(b)))}else{if(j=g&&g.value)j=j.eval(b);else{if(!o[h].value)throw{type:"Runtime",message:"wrong number of arguments for "+this.name+" ("+d.length+" for "+this.arity+")"};j=o[h].value.eval(c),n.resetCache()}n.rules.unshift(new a.Rule(k,j)),e[h]=j}if(o[h].variadic&&d)for(i=m;i<d.length;i++)e[i]=d[i].value.eval(b);m++}return n},eval:function(b,c,d){var e,f,g=[],h=this.frames.concat(b.frames),i=this.evalParams(b,new a.evalEnv(b,h),c,g);return i.rules.unshift(new a.Rule("@arguments",new a.Expression(g).eval(b))),e=this.rules.slice(0),f=new a.Ruleset(null,e),f.originalRuleset=this,f=f.eval(new a.evalEnv(b,[this,i].concat(h))),d&&(f=this.parent.makeImportant.apply(f)),f},matchCondition:function(b,c){return this.condition&&!this.condition.eval(new a.evalEnv(c,[this.evalParams(c,new a.evalEnv(c,this.frames.concat(c.frames)),b,[])].concat(this.frames).concat(c.frames)))?!1:!0},matchArgs:function(a,b){var c,d=a&&a.length||0;if(this.variadic){if(d<this.required-1)return!1}else{if(d<this.required)return!1;if(d>this.params.length)return!1}c=Math.min(d,this.arity);for(var e=0;c>e;e++)if(!this.params[e].name&&!this.params[e].variadic&&a[e].value.eval(b).toCSS()!=this.params[e].value.eval(b).toCSS())return!1;return!0}}}(require("../tree")),function(a){a.Negative=function(a){this.value=a},a.Negative.prototype={type:"Negative",accept:function(a){this.value=a.visit(this.value)},genCSS:function(a,b){b.add("-"),this.value.genCSS(a,b)},toCSS:a.toCSS,eval:function(b){return b.isMathOn()?new a.Operation("*",[new a.Dimension(-1),this.value]).eval(b):new a.Negative(this.value.eval(b))}}}(require("../tree")),function(a){a.Operation=function(a,b,c){this.op=a.trim(),this.operands=b,this.isSpaced=c},a.Operation.prototype={type:"Operation",accept:function(a){this.operands=a.visit(this.operands)},eval:function(b){var c,d=this.operands[0].eval(b),e=this.operands[1].eval(b);if(b.isMathOn()){if(d instanceof a.Dimension&&e instanceof a.Color){if("*"!==this.op&&"+"!==this.op)throw{type:"Operation",message:"Can't substract or divide a color from a number"};c=e,e=d,d=c}if(!d.operate)throw{type:"Operation",message:"Operation on an invalid type"};return d.operate(b,this.op,e)}return new a.Operation(this.op,[d,e],this.isSpaced)},genCSS:function(a,b){this.operands[0].genCSS(a,b),this.isSpaced&&b.add(" "),b.add(this.op),this.isSpaced&&b.add(" "),this.operands[1].genCSS(a,b)},toCSS:a.toCSS},a.operate=function(a,b,c,d){switch(b){case"+":return c+d;case"-":return c-d;case"*":return c*d;case"/":return c/d}}}(require("../tree")),function(a){a.Paren=function(a){this.value=a},a.Paren.prototype={type:"Paren",accept:function(a){this.value=a.visit(this.value)},genCSS:function(a,b){b.add("("),this.value.genCSS(a,b),b.add(")")},toCSS:a.toCSS,eval:function(b){return new a.Paren(this.value.eval(b))}}}(require("../tree")),function(a){a.Quoted=function(a,b,c,d,e){this.escaped=c,this.value=b||"",this.quote=a.charAt(0),this.index=d,this.currentFileInfo=e},a.Quoted.prototype={type:"Quoted",genCSS:function(a,b){this.escaped||b.add(this.quote,this.currentFileInfo,this.index),b.add(this.value),this.escaped||b.add(this.quote)},toCSS:a.toCSS,eval:function(b){var c=this,d=this.value.replace(/`([^`]+)`/g,function(d,e){return new a.JavaScript(e,c.index,!0).eval(b).value}).replace(/@\{([\w-]+)\}/g,function(d,e){var f=new a.Variable("@"+e,c.index,c.currentFileInfo).eval(b,!0);return f instanceof a.Quoted?f.value:f.toCSS()});return new a.Quoted(this.quote+d+this.quote,d,this.escaped,this.index,this.currentFileInfo)},compare:function(a){if(!a.toCSS)return-1;var b=this.toCSS(),c=a.toCSS();return b===c?0:c>b?-1:1}}}(require("../tree")),function(a){a.Rule=function(b,c,d,e,f,g,h){this.name=b,this.value=c instanceof a.Value?c:new a.Value([c]),this.important=d?" "+d.trim():"",this.merge=e,this.index=f,this.currentFileInfo=g,this.inline=h||!1,this.variable="@"===b.charAt(0)},a.Rule.prototype={type:"Rule",accept:function(a){this.value=a.visit(this.value)},genCSS:function(a,b){b.add(this.name+(a.compress?":":": "),this.currentFileInfo,this.index);try{this.value.genCSS(a,b)}catch(c){throw c.index=this.index,c.filename=this.currentFileInfo.filename,c}b.add(this.important+(this.inline||a.lastRule&&a.compress?"":";"),this.currentFileInfo,this.index)},toCSS:a.toCSS,eval:function(b){var c=!1;"font"!==this.name||b.strictMath||(c=!0,b.strictMath=!0);try{return new a.Rule(this.name,this.value.eval(b),this.important,this.merge,this.index,this.currentFileInfo,this.inline)}finally{c&&(b.strictMath=!1)}},makeImportant:function(){return new a.Rule(this.name,this.value,"!important",this.merge,this.index,this.currentFileInfo,this.inline)}}}(require("../tree")),function(a){a.Ruleset=function(a,b,c){this.selectors=a,this.rules=b,this._lookups={},this.strictImports=c},a.Ruleset.prototype={type:"Ruleset",accept:function(a){if(this.paths)for(var b=0;b<this.paths.length;b++)this.paths[b]=a.visit(this.paths[b]);else this.selectors=a.visit(this.selectors);this.rules=a.visit(this.rules)},eval:function(b){var c,d,e,f=this.selectors&&this.selectors.map(function(a){return a.eval(b)}),g=new a.Ruleset(f,this.rules.slice(0),this.strictImports);for(g.originalRuleset=this,g.root=this.root,g.firstRoot=this.firstRoot,g.allowImports=this.allowImports,this.debugInfo&&(g.debugInfo=this.debugInfo),b.frames.unshift(g),b.selectors||(b.selectors=[]),b.selectors.unshift(this.selectors),(g.root||g.allowImports||!g.strictImports)&&g.evalImports(b),e=0;e<g.rules.length;e++)g.rules[e]instanceof a.mixin.Definition&&(g.rules[e].frames=b.frames.slice(0));var h=b.mediaBlocks&&b.mediaBlocks.length||0;for(e=0;e<g.rules.length;e++)g.rules[e]instanceof a.mixin.Call&&(c=g.rules[e].eval(b).filter(function(b){return b instanceof a.Rule&&b.variable?!g.variable(b.name):!0}),g.rules.splice.apply(g.rules,[e,1].concat(c)),e+=c.length-1,g.resetCache());for(e=0;e<g.rules.length;e++)d=g.rules[e],d instanceof a.mixin.Definition||(g.rules[e]=d.eval?d.eval(b):d);if(b.frames.shift(),b.selectors.shift(),b.mediaBlocks)for(e=h;e<b.mediaBlocks.length;e++)b.mediaBlocks[e].bubbleSelectors(f);return g},evalImports:function(b){var c,d;for(c=0;c<this.rules.length;c++)this.rules[c]instanceof a.Import&&(d=this.rules[c].eval(b),"number"==typeof d.length?(this.rules.splice.apply(this.rules,[c,1].concat(d)),c+=d.length-1):this.rules.splice(c,1,d),this.resetCache())},makeImportant:function(){return new a.Ruleset(this.selectors,this.rules.map(function(a){return a.makeImportant?a.makeImportant():a}),this.strictImports)},matchArgs:function(a){return!a||0===a.length},matchCondition:function(b,c){var d=this.selectors[this.selectors.length-1];return d.condition&&!d.condition.eval(new a.evalEnv(c,c.frames))?!1:!0},resetCache:function(){this._rulesets=null,this._variables=null,this._lookups={}},variables:function(){return this._variables?this._variables:this._variables=this.rules.reduce(function(b,c){return c instanceof a.Rule&&c.variable===!0&&(b[c.name]=c),b},{})},variable:function(a){return this.variables()[a]},rulesets:function(){return this.rules.filter(function(b){return b instanceof a.Ruleset||b instanceof a.mixin.Definition})},find:function(b,c){c=c||this;var d,e=[],f=b.toCSS();return f in this._lookups?this._lookups[f]:(this.rulesets().forEach(function(f){if(f!==c)for(var g=0;g<f.selectors.length;g++)if(d=b.match(f.selectors[g])){b.elements.length>f.selectors[g].elements.length?Array.prototype.push.apply(e,f.find(new a.Selector(b.elements.slice(1)),c)):e.push(f);break}}),this._lookups[f]=e)},genCSS:function(b,c){var d,e,f,g,h,i=[],j=[],k=!0;b.tabLevel=b.tabLevel||0,this.root||b.tabLevel++;var l=b.compress?"":Array(b.tabLevel+1).join(" "),m=b.compress?"":Array(b.tabLevel).join(" ");for(d=0;d<this.rules.length;d++)g=this.rules[d],g.rules||g instanceof a.Media||g instanceof a.Directive||this.root&&g instanceof a.Comment?j.push(g):i.push(g);if(!this.root){for(f=a.debugInfo(b,this,m),f&&(c.add(f),c.add(m)),d=0;d<this.paths.length;d++){for(h=this.paths[d],b.firstSelector=!0,e=0;e<h.length;e++)h[e].genCSS(b,c),b.firstSelector=!1;d+1<this.paths.length&&c.add(b.compress?",":",\n"+m)}c.add((b.compress?"{":" {\n")+l)}for(d=0;d<i.length;d++)g=i[d],d+1!==i.length||this.root&&0!==j.length&&!this.firstRoot||(b.lastRule=!0),g.genCSS?g.genCSS(b,c):g.value&&c.add(g.value.toString()),b.lastRule?b.lastRule=!1:c.add(b.compress?"":"\n"+l);for(this.root||(c.add(b.compress?"}":"\n"+m+"}"),b.tabLevel--),d=0;d<j.length;d++)i.length&&k&&c.add((b.compress?"":"\n")+(this.root?l:m)),k||c.add((b.compress?"":"\n")+(this.root?l:m)),k=!1,j[d].genCSS(b,c);c.isEmpty()||b.compress||!this.firstRoot||c.add("\n")},toCSS:a.toCSS,markReferenced:function(){for(var a=0;a<this.selectors.length;a++)this.selectors[a].markReferenced()},joinSelectors:function(a,b,c){for(var d=0;d<c.length;d++)this.joinSelector(a,b,c[d])},joinSelector:function(b,c,d){var e,f,g,h,i,j,k,l,m,n,o,p,q,r,s;for(e=0;e<d.elements.length;e++)j=d.elements[e],"&"===j.value&&(h=!0);if(h){for(r=[],i=[[]],e=0;e<d.elements.length;e++)if(j=d.elements[e],"&"!==j.value)r.push(j);else{for(s=[],r.length>0&&this.mergeElementsOnToSelectors(r,i),f=0;f<i.length;f++)if(k=i[f],0===c.length)k.length>0&&(k[0].elements=k[0].elements.slice(0),k[0].elements.push(new a.Element(j.combinator,"",0,j.index,j.currentFileInfo))),s.push(k);else for(g=0;g<c.length;g++)l=c[g],m=[],n=[],p=!0,k.length>0?(m=k.slice(0),q=m.pop(),o=d.createDerived(q.elements.slice(0)),p=!1):o=d.createDerived([]),l.length>1&&(n=n.concat(l.slice(1))),l.length>0&&(p=!1,o.elements.push(new a.Element(j.combinator,l[0].elements[0].value,j.index,j.currentFileInfo)),o.elements=o.elements.concat(l[0].elements.slice(1))),p||m.push(o),m=m.concat(n),s.push(m);i=s,r=[]}for(r.length>0&&this.mergeElementsOnToSelectors(r,i),e=0;e<i.length;e++)i[e].length>0&&b.push(i[e])}else if(c.length>0)for(e=0;e<c.length;e++)b.push(c[e].concat(d));else b.push([d])},mergeElementsOnToSelectors:function(b,c){var d,e;if(0===c.length)return c.push([new a.Selector(b)]),void 0;for(d=0;d<c.length;d++)e=c[d],e.length>0?e[e.length-1]=e[e.length-1].createDerived(e[e.length-1].elements.concat(b)):e.push(new a.Selector(b))}}}(require("../tree")),function(a){a.Selector=function(a,b,c,d,e,f){this.elements=a,this.extendList=b||[],this.condition=c,this.currentFileInfo=e||{},this.isReferenced=f,c||(this.evaldCondition=!0)},a.Selector.prototype={type:"Selector",accept:function(a){this.elements=a.visit(this.elements),this.extendList=a.visit(this.extendList),this.condition=a.visit(this.condition)},createDerived:function(b,c,d){d=null!=d?d:this.evaldCondition;var e=new a.Selector(b,c||this.extendList,this.condition,this.index,this.currentFileInfo,this.isReferenced);return e.evaldCondition=d,e},match:function(a){var b,c,d,e,f=this.elements,g=f.length;if(b=a.elements.slice(a.elements.length&&"&"===a.elements[0].value?1:0),c=b.length,d=Math.min(g,c),0===c||c>g)return!1;for(e=0;d>e;e++)if(f[e].value!==b[e].value)return!1;return!0},eval:function(a){var b=this.condition&&this.condition.eval(a);return this.createDerived(this.elements.map(function(b){return b.eval(a)}),this.extendList.map(function(b){return b.eval(a)}),b)},genCSS:function(a,b){var c,d;if(a&&a.firstSelector||""!==this.elements[0].combinator.value||b.add(" ",this.currentFileInfo,this.index),!this._css)for(c=0;c<this.elements.length;c++)d=this.elements[c],d.genCSS(a,b)},toCSS:a.toCSS,markReferenced:function(){this.isReferenced=!0},getIsReferenced:function(){return!this.currentFileInfo.reference||this.isReferenced},getIsOutput:function(){return this.evaldCondition}}}(require("../tree")),function(a){a.UnicodeDescriptor=function(a){this.value=a},a.UnicodeDescriptor.prototype={type:"UnicodeDescriptor",genCSS:function(a,b){b.add(this.value)},toCSS:a.toCSS,eval:function(){return this}}}(require("../tree")),function(a){a.URL=function(a,b){this.value=a,this.currentFileInfo=b},a.URL.prototype={type:"Url",accept:function(a){this.value=a.visit(this.value)},genCSS:function(a,b){b.add("url("),this.value.genCSS(a,b),b.add(")")},toCSS:a.toCSS,eval:function(b){var c,d=this.value.eval(b);return c=this.currentFileInfo&&this.currentFileInfo.rootpath,c&&"string"==typeof d.value&&b.isPathRelative(d.value)&&(d.quote||(c=c.replace(/[\(\)'"\s]/g,function(a){return"\\"+a})),d.value=c+d.value),d.value=b.normalizePath(d.value),new a.URL(d,null)}}}(require("../tree")),function(a){a.Value=function(a){this.value=a},a.Value.prototype={type:"Value",accept:function(a){this.value=a.visit(this.value)},eval:function(b){return 1===this.value.length?this.value[0].eval(b):new a.Value(this.value.map(function(a){return a.eval(b)}))},genCSS:function(a,b){var c;for(c=0;c<this.value.length;c++)this.value[c].genCSS(a,b),c+1<this.value.length&&b.add(a&&a.compress?",":", ")},toCSS:a.toCSS}}(require("../tree")),function(a){a.Variable=function(a,b,c){this.name=a,this.index=b,this.currentFileInfo=c},a.Variable.prototype={type:"Variable",eval:function(b){var c,d,e=this.name;if(0===e.indexOf("@@")&&(e="@"+new a.Variable(e.slice(1)).eval(b).value),this.evaluating)throw{type:"Name",message:"Recursive variable definition for "+e,filename:this.currentFileInfo.file,index:this.index};if(this.evaluating=!0,c=a.find(b.frames,function(a){return(d=a.variable(e))?d.value.eval(b):void 0}))return this.evaluating=!1,c;throw{type:"Name",message:"variable "+e+" is undefined",filename:this.currentFileInfo.filename,index:this.index}}}}(require("../tree")),function(a){var b=["paths","optimization","files","contents","relativeUrls","rootpath","strictImports","insecure","dumpLineNumbers","compress","processImports","syncImport","javascriptEnabled","mime","useFileCache","currentFileInfo"];a.parseEnv=function(a){if(d(a,this,b),this.contents||(this.contents={}),this.files||(this.files={}),!this.currentFileInfo){var c=a&&a.filename||"input",e=c.replace(/[^\/\\]*$/,"");a&&(a.filename=null),this.currentFileInfo={filename:c,relativeUrls:this.relativeUrls,rootpath:a&&a.rootpath||"",currentDirectory:e,entryPath:e,rootFilename:c}}};var c=["silent","verbose","compress","yuicompress","ieCompat","strictMath","strictUnits","cleancss","sourceMap","importMultiple"];a.evalEnv=function(a,b){d(a,this,c),this.frames=b||[]},a.evalEnv.prototype.inParenthesis=function(){this.parensStack||(this.parensStack=[]),this.parensStack.push(!0)},a.evalEnv.prototype.outOfParenthesis=function(){this.parensStack.pop()},a.evalEnv.prototype.isMathOn=function(){return this.strictMath?this.parensStack&&this.parensStack.length:!0},a.evalEnv.prototype.isPathRelative=function(a){return!/^(?:[a-z-]+:|\/)/.test(a)},a.evalEnv.prototype.normalizePath=function(a){var b,c=a.split("/").reverse();for(a=[];0!==c.length;)switch(b=c.pop()){case".":break;case"..":0===a.length||".."===a[a.length-1]?a.push(b):a.pop();break;default:a.push(b)}return a.join("/")};var d=function(a,b,c){if(a)for(var d=0;d<c.length;d++)a.hasOwnProperty(c[d])&&(b[c[d]]=a[c[d]])}}(require("./tree")),function(a){a.visitor=function(a){this._implementation=a},a.visitor.prototype={visit:function(a){if(a instanceof Array)return this.visitArray(a);if(!a||!a.type)return a;var b,c,d="visit"+a.type,e=this._implementation[d];return e&&(b={visitDeeper:!0},c=e.call(this._implementation,a,b),this._implementation.isReplacing&&(a=c)),(!b||b.visitDeeper)&&a&&a.accept&&a.accept(this),d+="Out",this._implementation[d]&&this._implementation[d](a),a},visitArray:function(a){var b,c=[];for(b=0;b<a.length;b++){var d=this.visit(a[b]);d instanceof Array?(d=this.flatten(d),c=c.concat(d)):c.push(d)}return this._implementation.isReplacing?c:a},doAccept:function(a){a.accept(this)},flatten:function(a,b){return a.reduce(this.flattenReduce.bind(this),b||[])},flattenReduce:function(a,b){return b instanceof Array?a=this.flatten(b,a):a.push(b),a}}}(require("./tree")),function(a){a.importVisitor=function(b,c,d){this._visitor=new a.visitor(this),this._importer=b,this._finish=c,this.env=d||new a.evalEnv,this.importCount=0},a.importVisitor.prototype={isReplacing:!0,run:function(a){var b;try{this._visitor.visit(a)}catch(c){b=c}this.isFinished=!0,0===this.importCount&&this._finish(b)},visitImport:function(b,c){var d,e=this,f=b.options.inline;if(!b.css||f){try{d=b.evalForImport(this.env)}catch(g){g.filename||(g.index=b.index,g.filename=b.currentFileInfo.filename),b.css=!0,b.error=g}if(d&&(!d.css||f)){b=d,this.importCount++;var h=new a.evalEnv(this.env,this.env.frames.slice(0));b.options.multiple&&(h.importMultiple=!0),this._importer.push(b.getPath(),b.currentFileInfo,b.options,function(c,d,g,i){c&&!c.filename&&(c.index=b.index,c.filename=b.currentFileInfo.filename),g&&!h.importMultiple&&(b.skip=g);var j=function(a){e.importCount--,0===e.importCount&&e.isFinished&&e._finish(a)};return!d||(b.root=d,b.importedFilename=i,f||b.skip)?(j(),void 0):(new a.importVisitor(e._importer,j,h).run(d),void 0)})}}return c.visitDeeper=!1,b},visitRule:function(a,b){return b.visitDeeper=!1,a},visitDirective:function(a){return this.env.frames.unshift(a),a},visitDirectiveOut:function(){this.env.frames.shift()},visitMixinDefinition:function(a){return this.env.frames.unshift(a),a},visitMixinDefinitionOut:function(){this.env.frames.shift()},visitRuleset:function(a){return this.env.frames.unshift(a),a},visitRulesetOut:function(){this.env.frames.shift()},visitMedia:function(a){return this.env.frames.unshift(a.ruleset),a},visitMediaOut:function(){this.env.frames.shift()}}}(require("./tree")),function(a){a.joinSelectorVisitor=function(){this.contexts=[[]],this._visitor=new a.visitor(this)},a.joinSelectorVisitor.prototype={run:function(a){return this._visitor.visit(a)},visitRule:function(a,b){b.visitDeeper=!1},visitMixinDefinition:function(a,b){b.visitDeeper=!1},visitRuleset:function(a){var b=this.contexts[this.contexts.length-1],c=[];this.contexts.push(c),a.root||(a.selectors=a.selectors.filter(function(a){return a.getIsOutput()}),0===a.selectors.length&&(a.rules.length=0),a.joinSelectors(c,b,a.selectors),a.paths=c)},visitRulesetOut:function(){this.contexts.length=this.contexts.length-1},visitMedia:function(a){var b=this.contexts[this.contexts.length-1];a.rules[0].root=0===b.length||b[0].multiMedia}}}(require("./tree")),function(a){a.toCSSVisitor=function(b){this._visitor=new a.visitor(this),this._env=b},a.toCSSVisitor.prototype={isReplacing:!0,run:function(a){return this._visitor.visit(a)},visitRule:function(a){return a.variable?[]:a},visitMixinDefinition:function(){return[]},visitExtend:function(){return[]},visitComment:function(a){return a.isSilent(this._env)?[]:a},visitMedia:function(a,b){return a.accept(this._visitor),b.visitDeeper=!1,a.rules.length?a:[]},visitDirective:function(b){if(b.currentFileInfo.reference&&!b.isReferenced)return[];if("@charset"===b.name){if(this.charset){if(b.debugInfo){var c=new a.Comment("/* "+b.toCSS(this._env).replace(/\n/g,"")+" */\n");return c.debugInfo=b.debugInfo,this._visitor.visit(c)}return[]}this.charset=!0}return b},checkPropertiesInRoot:function(b){for(var c,d=0;d<b.length;d++)if(c=b[d],c instanceof a.Rule&&!c.variable)throw{message:"properties must be inside selector blocks, they cannot be in the root.",index:c.index,filename:c.currentFileInfo?c.currentFileInfo.filename:null}},visitRuleset:function(b,c){var d,e=[];if(b.firstRoot&&this.checkPropertiesInRoot(b.rules),b.root)b.accept(this._visitor),c.visitDeeper=!1,(b.firstRoot||b.rules.length>0)&&e.splice(0,0,b);else{b.paths=b.paths.filter(function(b){var c;for(" "===b[0].elements[0].combinator.value&&(b[0].elements[0].combinator=new a.Combinator("")),c=0;c<b.length;c++)return b[c].getIsReferenced()&&b[c].getIsOutput()?!0:!1});for(var f=0;f<b.rules.length;f++)d=b.rules[f],d.rules&&(e.push(this._visitor.visit(d)),b.rules.splice(f,1),f--);b.rules.length>0&&b.accept(this._visitor),c.visitDeeper=!1,this._mergeRules(b.rules),this._removeDuplicateRules(b.rules),b.rules.length>0&&b.paths.length>0&&e.splice(0,0,b)}return 1===e.length?e[0]:e},_removeDuplicateRules:function(b){var c,d,e,f={};for(e=b.length-1;e>=0;e--)if(d=b[e],d instanceof a.Rule)if(f[d.name]){c=f[d.name],c instanceof a.Rule&&(c=f[d.name]=[f[d.name].toCSS(this._env)]);var g=d.toCSS(this._env);-1!==c.indexOf(g)?b.splice(e,1):c.push(g)}else f[d.name]=d},_mergeRules:function(b){for(var c,d,e,f={},g=0;g<b.length;g++)d=b[g],d instanceof a.Rule&&d.merge&&(e=[d.name,d.important?"!":""].join(","),f[e]?b.splice(g--,1):c=f[e]=[],c.push(d));Object.keys(f).map(function(b){c=f[b],c.length>1&&(d=c[0],d.value=new a.Value(c.map(function(a){return a.value})))})}}}(require("./tree")),function(a){a.extendFinderVisitor=function(){this._visitor=new a.visitor(this),this.contexts=[],this.allExtendsStack=[[]]},a.extendFinderVisitor.prototype={run:function(a){return a=this._visitor.visit(a),a.allExtends=this.allExtendsStack[0],a},visitRule:function(a,b){b.visitDeeper=!1},visitMixinDefinition:function(a,b){b.visitDeeper=!1},visitRuleset:function(b){if(!b.root){var c,d,e,f,g=[];for(c=0;c<b.rules.length;c++)b.rules[c]instanceof a.Extend&&(g.push(b.rules[c]),b.extendOnEveryPath=!0);for(c=0;c<b.paths.length;c++){var h=b.paths[c],i=h[h.length-1];for(f=i.extendList.slice(0).concat(g).map(function(a){return a.clone()}),d=0;d<f.length;d++)this.foundExtends=!0,e=f[d],e.findSelfSelectors(h),e.ruleset=b,0===d&&(e.firstExtendOnThisSelectorPath=!0),this.allExtendsStack[this.allExtendsStack.length-1].push(e)}this.contexts.push(b.selectors)}},visitRulesetOut:function(a){a.root||(this.contexts.length=this.contexts.length-1)},visitMedia:function(a){a.allExtends=[],this.allExtendsStack.push(a.allExtends)},visitMediaOut:function(){this.allExtendsStack.length=this.allExtendsStack.length-1},visitDirective:function(a){a.allExtends=[],this.allExtendsStack.push(a.allExtends)},visitDirectiveOut:function(){this.allExtendsStack.length=this.allExtendsStack.length-1}},a.processExtendsVisitor=function(){this._visitor=new a.visitor(this)},a.processExtendsVisitor.prototype={run:function(b){var c=new a.extendFinderVisitor;return c.run(b),c.foundExtends?(b.allExtends=b.allExtends.concat(this.doExtendChaining(b.allExtends,b.allExtends)),this.allExtendsStack=[b.allExtends],this._visitor.visit(b)):b},doExtendChaining:function(b,c,d){var e,f,g,h,i,j,k,l,m=[],n=this;for(d=d||0,e=0;e<b.length;e++)for(f=0;f<c.length;f++)j=b[e],k=c[f],this.inInheritanceChain(k,j)||(i=[k.selfSelectors[0]],g=n.findMatch(j,i),g.length&&j.selfSelectors.forEach(function(b){h=n.extendSelector(g,i,b),l=new a.Extend(k.selector,k.option,0),l.selfSelectors=h,h[h.length-1].extendList=[l],m.push(l),l.ruleset=k.ruleset,l.parents=[k,j],k.firstExtendOnThisSelectorPath&&(l.firstExtendOnThisSelectorPath=!0,k.ruleset.paths.push(h))}));if(m.length){if(this.extendChainCount++,d>100){var o="{unable to calculate}",p="{unable to calculate}";try{o=m[0].selfSelectors[0].toCSS(),p=m[0].selector.toCSS()}catch(q){}throw{message:"extend circular reference detected. One of the circular extends is currently:"+o+":extend("+p+")"}}return m.concat(n.doExtendChaining(m,c,d+1))}return m},inInheritanceChain:function(a,b){if(a===b)return!0;if(b.parents){if(this.inInheritanceChain(a,b.parents[0]))return!0;if(this.inInheritanceChain(a,b.parents[1]))return!0}return!1},visitRule:function(a,b){b.visitDeeper=!1},visitMixinDefinition:function(a,b){b.visitDeeper=!1},visitSelector:function(a,b){b.visitDeeper=!1},visitRuleset:function(a){if(!a.root){var b,c,d,e,f=this.allExtendsStack[this.allExtendsStack.length-1],g=[],h=this;for(d=0;d<f.length;d++)for(c=0;c<a.paths.length;c++)e=a.paths[c],a.extendOnEveryPath||e[e.length-1].extendList.length||(b=this.findMatch(f[d],e),b.length&&f[d].selfSelectors.forEach(function(a){g.push(h.extendSelector(b,e,a))}));a.paths=a.paths.concat(g)}},findMatch:function(a,b){var c,d,e,f,g,h,i,j=this,k=a.selector.elements,l=[],m=[];for(c=0;c<b.length;c++)for(d=b[c],e=0;e<d.elements.length;e++)for(f=d.elements[e],(a.allowBefore||0===c&&0===e)&&l.push({pathIndex:c,index:e,matched:0,initialCombinator:f.combinator}),h=0;h<l.length;h++)i=l[h],g=f.combinator.value,""===g&&0===e&&(g=" "),!j.isElementValuesEqual(k[i.matched].value,f.value)||i.matched>0&&k[i.matched].combinator.value!==g?i=null:i.matched++,i&&(i.finished=i.matched===k.length,i.finished&&!a.allowAfter&&(e+1<d.elements.length||c+1<b.length)&&(i=null)),i?i.finished&&(i.length=k.length,i.endPathIndex=c,i.endPathElementIndex=e+1,l.length=0,m.push(i)):(l.splice(h,1),h--);return m},isElementValuesEqual:function(b,c){if("string"==typeof b||"string"==typeof c)return b===c;if(b instanceof a.Attribute)return b.op!==c.op||b.key!==c.key?!1:b.value&&c.value?(b=b.value.value||b.value,c=c.value.value||c.value,b===c):b.value||c.value?!1:!0;if(b=b.value,c=c.value,b instanceof a.Selector){if(!(c instanceof a.Selector)||b.elements.length!==c.elements.length)return!1;for(var d=0;d<b.elements.length;d++){if(b.elements[d].combinator.value!==c.elements[d].combinator.value&&(0!==d||(b.elements[d].combinator.value||" ")!==(c.elements[d].combinator.value||" ")))return!1;if(!this.isElementValuesEqual(b.elements[d].value,c.elements[d].value))return!1}return!0}return!1},extendSelector:function(b,c,d){var e,f,g,h,i,j=0,k=0,l=[];for(e=0;e<b.length;e++)h=b[e],f=c[h.pathIndex],g=new a.Element(h.initialCombinator,d.elements[0].value,d.elements[0].index,d.elements[0].currentFileInfo),h.pathIndex>j&&k>0&&(l[l.length-1].elements=l[l.length-1].elements.concat(c[j].elements.slice(k)),k=0,j++),i=f.elements.slice(k,h.index).concat([g]).concat(d.elements.slice(1)),j===h.pathIndex&&e>0?l[l.length-1].elements=l[l.length-1].elements.concat(i):(l=l.concat(c.slice(j,h.pathIndex)),l.push(new a.Selector(i))),j=h.endPathIndex,k=h.endPathElementIndex,k>=c[j].elements.length&&(k=0,j++);return j<c.length&&k>0&&(l[l.length-1].elements=l[l.length-1].elements.concat(c[j].elements.slice(k)),j++),l=l.concat(c.slice(j,c.length))},visitRulesetOut:function(){},visitMedia:function(a){var b=a.allExtends.concat(this.allExtendsStack[this.allExtendsStack.length-1]);b=b.concat(this.doExtendChaining(b,a.allExtends)),this.allExtendsStack.push(b)},visitMediaOut:function(){this.allExtendsStack.length=this.allExtendsStack.length-1},visitDirective:function(a){var b=a.allExtends.concat(this.allExtendsStack[this.allExtendsStack.length-1]);b=b.concat(this.doExtendChaining(b,a.allExtends)),this.allExtendsStack.push(b)},visitDirectiveOut:function(){this.allExtendsStack.length=this.allExtendsStack.length-1}}}(require("./tree")),function(a){a.sourceMapOutput=function(a){this._css=[],this._rootNode=a.rootNode,this._writeSourceMap=a.writeSourceMap,this._contentsMap=a.contentsMap,this._sourceMapFilename=a.sourceMapFilename,this._outputFilename=a.outputFilename,this._sourceMapBasepath=a.sourceMapBasepath,this._sourceMapRootpath=a.sourceMapRootpath,this._outputSourceFiles=a.outputSourceFiles,this._sourceMapGeneratorConstructor=a.sourceMapGenerator||require("source-map").SourceMapGenerator,this._sourceMapRootpath&&"/"!==this._sourceMapRootpath.charAt(this._sourceMapRootpath.length-1)&&(this._sourceMapRootpath+="/"),this._lineNumber=0,this._column=0},a.sourceMapOutput.prototype.normalizeFilename=function(a){return this._sourceMapBasepath&&0===a.indexOf(this._sourceMapBasepath)&&(a=a.substring(this._sourceMapBasepath.length),("\\"===a.charAt(0)||"/"===a.charAt(0))&&(a=a.substring(1))),(this._sourceMapRootpath||"")+a.replace(/\\/g,"/")},a.sourceMapOutput.prototype.add=function(a,b,c,d){if(a){var e,f,g,h,i;if(b){var j=this._contentsMap[b.filename].substring(0,c);f=j.split("\n"),h=f[f.length-1]}if(e=a.split("\n"),g=e[e.length-1],b)if(d)for(i=0;i<e.length;i++)this._sourceMapGenerator.addMapping({generated:{line:this._lineNumber+i+1,column:0===i?this._column:0},original:{line:f.length+i,column:0===i?h.length:0},source:this.normalizeFilename(b.filename)});else this._sourceMapGenerator.addMapping({generated:{line:this._lineNumber+1,column:this._column},original:{line:f.length,column:h.length},source:this.normalizeFilename(b.filename)});1===e.length?this._column+=g.length:(this._lineNumber+=e.length-1,this._column=g.length),this._css.push(a)}},a.sourceMapOutput.prototype.isEmpty=function(){return 0===this._css.length},a.sourceMapOutput.prototype.toCSS=function(a){if(this._sourceMapGenerator=new this._sourceMapGeneratorConstructor({file:this._outputFilename,sourceRoot:null}),this._outputSourceFiles)for(var b in this._contentsMap)this._sourceMapGenerator.setSourceContent(this.normalizeFilename(b),this._contentsMap[b]);if(this._rootNode.genCSS(a,this),this._css.length>0){var c,d=JSON.stringify(this._sourceMapGenerator.toJSON());this._sourceMapFilename&&(c=this.normalizeFilename(this._sourceMapFilename)),this._writeSourceMap?this._writeSourceMap(d):c="data:application/json,"+encodeURIComponent(d),c&&this._css.push("/*# sourceMappingURL="+c+" */")}return this._css.join("")}}(require("./tree"));var isFileProtocol=/^(file|chrome(-extension)?|resource|qrc|app):/.test(location.protocol);less.env=less.env||("127.0.0.1"==location.hostname||"0.0.0.0"==location.hostname||"localhost"==location.hostname||location.port.length>0||isFileProtocol?"development":"production");var logLevel={info:2,errors:1,none:0};if(less.logLevel="undefined"!=typeof less.logLevel?less.logLevel:logLevel.info,less.async=less.async||!1,less.fileAsync=less.fileAsync||!1,less.poll=less.poll||(isFileProtocol?1e3:1500),less.functions)for(var func in less.functions)less.tree.functions[func]=less.functions[func];var dumpLineNumbers=/!dumpLineNumbers:(comments|mediaquery|all)/.exec(location.hash);dumpLineNumbers&&(less.dumpLineNumbers=dumpLineNumbers[1]);var typePattern=/^text\/(x-)?less$/,cache=null,fileCache={};if(less.watch=function(){return less.watchMode||(less.env="development",initRunningMode()),this.watchMode=!0},less.unwatch=function(){return clearInterval(less.watchTimer),this.watchMode=!1},/!watch/.test(location.hash)&&less.watch(),"development"!=less.env)try{cache="undefined"==typeof window.localStorage?null:window.localStorage}catch(_){}var links=document.getElementsByTagName("link");less.sheets=[];for(var i=0;i<links.length;i++)("stylesheet/less"===links[i].rel||links[i].rel.match(/stylesheet/)&&links[i].type.match(typePattern))&&less.sheets.push(links[i]);less.modifyVars=function(a){var b="";for(var c in a)b+=("@"===c.slice(0,1)?"":"@")+c+": "+(";"===a[c].slice(-1)?a[c]:a[c]+";");less.refresh(!1,b)},less.refresh=function(a,b){var c,d;c=d=new Date,loadStyleSheets(function(a,b,e,f,g){return a?error(a,f.href):(g.local?log("loading "+f.href+" from cache.",logLevel.info):(log("parsed "+f.href+" successfully.",logLevel.info),createCSS(b.toCSS(less),f,g.lastModified)),log("css for "+f.href+" generated in "+(new Date-d)+"ms",logLevel.info),0===g.remaining&&log("css generated in "+(new Date-c)+"ms",logLevel.info),d=new Date,void 0)},a,b),loadStyles(b)},less.refreshStyles=loadStyles,less.Parser.fileLoader=loadFile,less.refresh("development"===less.env),"function"==typeof define&&define.amd&&define(function(){return less});
function require(e){return window.less[e.split("/")[1]]}function log(e,t){"development"==less.env&&"undefined"!=typeof console&&less.logLevel>=t&&console.log("less: "+e)}function extractId(e){return e.replace(/^[a-z-]+:\/+?[^\/]+/,"").replace(/^\//,"").replace(/\.[a-zA-Z]+$/,"").replace(/[^\.\w-]+/g,"-").replace(/\./g,":")}function errorConsole(e,t){var n="{line} {content}",i=e.filename||t,r=[],s=(e.type||"Syntax")+"Error: "+(e.message||"There is an error in your .less file")+" in "+i+" ",o=function(e,t,i){void 0!==e.extract[t]&&r.push(n.replace(/\{line\}/,(parseInt(e.line,10)||0)+(t-1)).replace(/\{class\}/,i).replace(/\{content\}/,e.extract[t]))};e.extract?(o(e,0,""),o(e,1,"line"),o(e,2,""),s+="on line "+e.line+", column "+(e.column+1)+":\n"+r.join("\n")):e.stack&&(s+=e.stack),log(s,logLevel.errors)}function createCSS(e,t,n){var i=t.href||"",r="less:"+(t.title||extractId(i)),s=document.getElementById(r),o=!1,a=document.createElement("style");if(a.setAttribute("type","text/css"),t.media&&a.setAttribute("media",t.media),a.id=r,a.styleSheet)try{a.styleSheet.cssText=e}catch(l){throw new Error("Couldn't reassign styleSheet.cssText.")}else a.appendChild(document.createTextNode(e)),o=null!==s&&s.childNodes.length>0&&a.childNodes.length>0&&s.firstChild.nodeValue===a.firstChild.nodeValue;var u=document.getElementsByTagName("head")[0];if(null===s||o===!1){var c=t&&t.nextSibling||null;c?c.parentNode.insertBefore(a,c):u.appendChild(a)}if(s&&o===!1&&s.parentNode.removeChild(s),n&&cache){log("saving "+i+" to cache.",logLevel.info);try{cache.setItem(i,e),cache.setItem(i+":timestamp",n)}catch(l){log("failed to save",logLevel.errors)}}}function errorHTML(e,t){var n,i,r="less-error-message:"+extractId(t||""),s='<li><label>{line}</label><pre class="{class}">{content}</pre></li>',o=document.createElement("div"),a=[],l=e.filename||t,u=l.match(/([^\/]+(\?.*)?)$/)[1];o.id=r,o.className="less-error-message",i="<h3>"+(e.type||"Syntax")+"Error: "+(e.message||"There is an error in your .less file")+'</h3><p>in <a href="'+l+'">'+u+"</a> ";var c=function(e,t,n){void 0!==e.extract[t]&&a.push(s.replace(/\{line\}/,(parseInt(e.line,10)||0)+(t-1)).replace(/\{class\}/,n).replace(/\{content\}/,e.extract[t]))};e.extract?(c(e,0,""),c(e,1,"line"),c(e,2,""),i+="on line "+e.line+", column "+(e.column+1)+":</p><ul>"+a.join("")+"</ul>"):e.stack&&(i+="<br/>"+e.stack.split("\n").slice(1).join("<br/>")),o.innerHTML=i,createCSS([".less-error-message ul, .less-error-message li {","list-style-type: none;","margin-right: 15px;","padding: 4px 0;","margin: 0;","}",".less-error-message label {","font-size: 12px;","margin-right: 15px;","padding: 4px 0;","color: #cc7777;","}",".less-error-message pre {","color: #dd6666;","padding: 4px 0;","margin: 0;","display: inline-block;","}",".less-error-message pre.line {","color: #ff0000;","}",".less-error-message h3 {","font-size: 20px;","font-weight: bold;","padding: 15px 0 5px 0;","margin: 0;","}",".less-error-message a {","color: #10a","}",".less-error-message .error {","color: red;","font-weight: bold;","padding-bottom: 2px;","border-bottom: 1px dashed red;","}"].join("\n"),{title:"error-message"}),o.style.cssText=["font-family: Arial, sans-serif","border: 1px solid #e00","background-color: #eee","border-radius: 5px","-webkit-border-radius: 5px","-moz-border-radius: 5px","color: #e00","padding: 15px","margin-bottom: 15px"].join(";"),"development"==less.env&&(n=setInterval(function(){document.body&&(document.getElementById(r)?document.body.replaceChild(o,document.getElementById(r)):document.body.insertBefore(o,document.body.firstChild),clearInterval(n))},10))}function error(e,t){less.errorReporting&&"html"!==less.errorReporting?"console"===less.errorReporting?errorConsole(e,t):"function"==typeof less.errorReporting&&less.errorReporting("add",e,t):errorHTML(e,t)}function removeErrorHTML(e){var t=document.getElementById("less-error-message:"+extractId(e));t&&t.parentNode.removeChild(t)}function removeErrorConsole(){}function removeError(e){less.errorReporting&&"html"!==less.errorReporting?"console"===less.errorReporting?removeErrorConsole(e):"function"==typeof less.errorReporting&&less.errorReporting("remove",e):removeErrorHTML(e)}function loadStyles(e){for(var t,n=document.getElementsByTagName("style"),i=0;i<n.length;i++)if(t=n[i],t.type.match(typePattern)){var r=new less.tree.parseEnv(less),s=t.innerHTML||"";r.filename=document.location.href.replace(/#.*$/,""),e&&(r.useFileCache=!0,s+="\n"+e);var o=function(e){return function(t,n){if(t)return error(t,"inline");var i=n.toCSS(less);e.type="text/css",e.styleSheet?e.styleSheet.cssText=i:e.innerHTML=i}}(t);new less.Parser(r).parse(s,o)}}function extractUrlParts(e,t){var n,i,r=/^((?:[a-z-]+:)?\/+?(?:[^\/\?#]*\/)|([\/\\]))?((?:[^\/\\\?#]*[\/\\])*)([^\/\\\?#]*)([#\?].*)?$/i,s=e.match(r),o={},a=[];if(!s)throw new Error("Could not parse sheet href - '"+e+"'");if(!s[1]||s[2]){if(i=t.match(r),!i)throw new Error("Could not parse page url - '"+t+"'");s[1]=s[1]||i[1]||"",s[2]||(s[3]=i[3]+s[3])}if(s[3]){for(a=s[3].replace(/\\/g,"/").split("/"),n=0;n<a.length;n++)"."===a[n]&&(a.splice(n,1),n-=1);for(n=0;n<a.length;n++)".."===a[n]&&n>0&&(a.splice(n-1,2),n-=2)}return o.hostPart=s[1],o.directories=a,o.path=s[1]+a.join("/"),o.fileUrl=o.path+(s[4]||""),o.url=o.fileUrl+(s[5]||""),o}function pathDiff(e,t){var n,i,r,s,o=extractUrlParts(e),a=extractUrlParts(t),l="";if(o.hostPart!==a.hostPart)return"";for(i=Math.max(a.directories.length,o.directories.length),n=0;i>n&&a.directories[n]===o.directories[n];n++);for(s=a.directories.slice(n),r=o.directories.slice(n),n=0;n<s.length-1;n++)l+="../";for(n=0;n<r.length-1;n++)l+=r[n]+"/";return l}function getXMLHttpRequest(){if(window.XMLHttpRequest)return new XMLHttpRequest;try{return new ActiveXObject("MSXML2.XMLHTTP.3.0")}catch(e){return log("browser doesn't support AJAX.",logLevel.errors),null}}function doXHR(e,t,n,i){function r(t,n,i){t.status>=200&&t.status<300?n(t.responseText,t.getResponseHeader("Last-Modified")):"function"==typeof i&&i(t.status,e)}var s=getXMLHttpRequest(),o=isFileProtocol?less.fileAsync:less.async;"function"==typeof s.overrideMimeType&&s.overrideMimeType("text/css"),log("XHR: Getting '"+e+"'",logLevel.info),s.open("GET",e,o),s.setRequestHeader("Accept",t||"text/x-less, text/css; q=0.9, */*; q=0.5"),s.send(null),isFileProtocol&&!less.fileAsync?0===s.status||s.status>=200&&s.status<300?n(s.responseText):i(s.status,e):o?s.onreadystatechange=function(){4==s.readyState&&r(s,n,i)}:r(s,n,i)}function loadFile(e,t,n,i,r){t&&t.currentDirectory&&!/^([a-z-]+:)?\//.test(e)&&(e=t.currentDirectory+e);var s=extractUrlParts(e,window.location.href),o=s.url,a={currentDirectory:s.path,filename:o};if(t?(a.entryPath=t.entryPath,a.rootpath=t.rootpath,a.rootFilename=t.rootFilename,a.relativeUrls=t.relativeUrls):(a.entryPath=s.path,a.rootpath=less.rootpath||s.path,a.rootFilename=o,a.relativeUrls=i.relativeUrls),a.relativeUrls&&(a.rootpath=i.rootpath?extractUrlParts(i.rootpath+pathDiff(s.path,a.entryPath)).path:s.path),i.useFileCache&&fileCache[o])try{var l=fileCache[o];r&&(l+="\n"+r),n(null,l,o,a,{lastModified:new Date})}catch(u){n(u,null,o)}else doXHR(o,i.mime,function(e,t){fileCache[o]=e;try{n(null,e,o,a,{lastModified:t})}catch(i){n(i,null,o)}},function(e,t){n({type:"File",message:"'"+t+"' wasn't found ("+e+")"},null,o)})}function loadStyleSheet(e,t,n,i,r){var s=new less.tree.parseEnv(less);s.mime=e.type,r&&(s.useFileCache=!0),loadFile(e.href,null,function(r,o,a,l,u){if(u){u.remaining=i;var c=cache&&cache.getItem(a),h=cache&&cache.getItem(a+":timestamp");if(!n&&h&&u.lastModified&&new Date(u.lastModified).valueOf()===new Date(h).valueOf())return createCSS(c,e),u.local=!0,t(null,null,o,e,u,a),void 0}removeError(a),o?(s.currentFileInfo=l,new less.Parser(s).parse(o,function(n,i){if(n)return t(n,null,null,e);try{t(n,i,o,e,u,a)}catch(n){t(n,null,null,e)}})):t(r,null,null,e,u,a)},s,r)}function loadStyleSheets(e,t,n){for(var i=0;i<less.sheets.length;i++)loadStyleSheet(less.sheets[i],e,t,less.sheets.length-(i+1),n)}function initRunningMode(){"development"===less.env?(less.optimization=0,less.watchTimer=setInterval(function(){less.watchMode&&loadStyleSheets(function(e,t,n,i,r){e?error(e,i.href):t&&createCSS(t.toCSS(less),i,r.lastModified)})},less.poll)):less.optimization=3}("undefined"==typeof window.less||"undefined"!=typeof window.less.nodeType)&&(window.less={}),less=window.less,tree=window.less.tree={},less.mode="browser";var less,tree;void 0===less&&(less=exports,tree=require("./tree"),less.mode="node"),less.Parser=function(e){function t(){g=y[v],b=d,w=d}function n(){y[v]=g,d=b,w=d}function i(){d>w&&(y[v]=y[v].slice(d-w),w=d)}function r(e){var t=e.charCodeAt(0);return 32===t||10===t||9===t}function s(e){var t,n;if(e instanceof Function)return e.call(x.parsers);if("string"==typeof e)t=m.charAt(d)===e?e:null,n=1,i();else{if(i(),!(t=e.exec(y[v])))return null;n=t[0].length}return t?(o(n),"string"==typeof t?t:1===t.length?t[0]:t):void 0}function o(e){for(var t=d,n=v,i=d+y[v].length,s=d+=e;i>d&&r(m.charAt(d));)d++;return y[v]=y[v].slice(e+(d-s)),w=d,0===y[v].length&&v<y.length-1&&v++,t!==d||n!==v}function a(e,t){var n=s(e);return n?n:(l(t||("string"==typeof e?"expected '"+e+"' got '"+m.charAt(d)+"'":"unexpected token")),void 0)}function l(e,t){var n=new Error(e);throw n.index=d,n.type=t||"Syntax",n}function u(e){return"string"==typeof e?m.charAt(d)===e:e.test(y[v])}function c(e,t){return e.filename&&t.currentFileInfo.filename&&e.filename!==t.currentFileInfo.filename?x.imports.contents[e.filename]:m}function h(e,t){for(var n=e+1,i=null,r=-1;--n>=0&&"\n"!==t.charAt(n);)r++;return"number"==typeof e&&(i=(t.slice(0,e).match(/\n/g)||"").length),{line:i,column:r}}function f(e,t,n){var i=n.currentFileInfo.filename;return"browser"!==less.mode&&"rhino"!==less.mode&&(i=require("path").resolve(i)),{lineNumber:h(e,t).line+1,fileName:i}}function p(e,t){var n=c(e,t),i=h(e.index,n),r=i.line,s=i.column,o=e.call&&h(e.call,n).line,a=n.split("\n");this.type=e.type||"Syntax",this.message=e.message,this.filename=e.filename||t.currentFileInfo.filename,this.index=e.index,this.line="number"==typeof r?r+1:null,this.callLine=o+1,this.callExtract=a[o],this.stack=e.stack,this.column=s,this.extract=[a[r-1],a[r],a[r+1]]}var m,d,v,g,b,S,y,w,x,C=e&&e.filename;e instanceof tree.parseEnv||(e=new tree.parseEnv(e));var I=this.imports={paths:e.paths||[],queue:[],files:e.files,contents:e.contents,mime:e.mime,error:null,push:function(t,n,i,r){var s=this;this.queue.push(t);var o=function(e,n,i){s.queue.splice(s.queue.indexOf(t),1);var o=i in s.files||i===C;s.files[i]=n,e&&!s.error&&(s.error=e),r(e,n,o,i)};less.Parser.importer?less.Parser.importer(t,n,o,e):less.Parser.fileLoader(t,n,function(t,r,s,a){if(t)return o(t),void 0;var l=new tree.parseEnv(e);l.currentFileInfo=a,l.processImports=!1,l.contents[s]=r,(n.reference||i.reference)&&(a.reference=!0),i.inline?o(null,r,s):new less.Parser(l).parse(r,function(e,t){o(e,t,s)})},e)}};return p.prototype=new Error,p.prototype.constructor=p,this.env=e=e||{},this.optimization="optimization"in this.env?this.env.optimization:1,x={imports:I,parse:function(t,n){var i,r,o,a=null;if(d=v=w=S=0,m=t.replace(/\r\n/g,"\n"),m=m.replace(/^\uFEFF/,""),x.imports.contents[e.currentFileInfo.filename]=m,y=function(t){for(var n,i,r,s,o=0,l=/(?:@\{[\w-]+\}|[^"'`\{\}\/\(\)\\])+/g,u=/\/\*(?:[^*]|\*+[^\/*])*\*+\/|\/\/.*/g,c=/"((?:[^"\\\r\n]|\\.)*)"|'((?:[^'\\\r\n]|\\.)*)'|`((?:[^`]|\\.)*)`/g,h=0,f=t[0],d=0;d<m.length;)if(l.lastIndex=d,(n=l.exec(m))&&n.index===d&&(d+=n[0].length,f.push(n[0])),r=m.charAt(d),u.lastIndex=c.lastIndex=d,(n=c.exec(m))&&n.index===d)d+=n[0].length,f.push(n[0]);else if(i||"/"!==r||(s=m.charAt(d+1),"/"!==s&&"*"!==s||!(n=u.exec(m))||n.index!==d)){switch(r){case"{":if(!i){h++,f.push(r);break}case"}":if(!i){h--,f.push(r),t[++o]=f=[];break}case"(":if(!i){i=!0,f.push(r);break}case")":if(i){i=!1,f.push(r);break}default:f.push(r)}d++}else d+=n[0].length,f.push(n[0]);return 0!==h&&(a=new p({index:d-1,type:"Parse",message:h>0?"missing closing `}`":"missing opening `{`",filename:e.currentFileInfo.filename},e)),t.map(function(e){return e.join("")})}([[]]),a)return n(new p(a,e));try{i=new tree.Ruleset([],s(this.parsers.primary)),i.root=!0,i.firstRoot=!0}catch(l){return n(new p(l,e))}if(i.toCSS=function(t){return function(n,i){n=n||{};var r,s,o=new tree.evalEnv(n);"object"!=typeof i||Array.isArray(i)||(i=Object.keys(i).map(function(e){var t=i[e];return t instanceof tree.Value||(t instanceof tree.Expression||(t=new tree.Expression([t])),t=new tree.Value([t])),new tree.Rule("@"+e,t,!1,null,0)}),o.frames=[new tree.Ruleset(null,i)]);try{r=t.call(this,o),(new tree.joinSelectorVisitor).run(r),(new tree.processExtendsVisitor).run(r),new tree.toCSSVisitor({compress:Boolean(n.compress)}).run(r),n.sourceMap&&(r=new tree.sourceMapOutput({writeSourceMap:n.writeSourceMap,rootNode:r,contentsMap:x.imports.contents,sourceMapFilename:n.sourceMapFilename,outputFilename:n.sourceMapOutputFilename,sourceMapBasepath:n.sourceMapBasepath,sourceMapRootpath:n.sourceMapRootpath,outputSourceFiles:n.outputSourceFiles,sourceMapGenerator:n.sourceMapGenerator})),s=r.toCSS({compress:Boolean(n.compress),dumpLineNumbers:e.dumpLineNumbers,strictUnits:Boolean(n.strictUnits)})}catch(a){throw new p(a,e)}return n.cleancss&&"node"===less.mode?require("clean-css").process(s):n.compress?s.replace(/(^(\s)+)|((\s)+$)/g,""):s}}(i.eval),d<m.length-1){d=S;var u=h(d,m);o=m.split("\n"),r=u.line+1,a={type:"Parse",message:"Unrecognised input",index:d,filename:e.currentFileInfo.filename,line:r,column:u.column,extract:[o[r-2],o[r-1],o[r]]}}var c=function(t){return t=a||t||x.imports.error,t?(t instanceof p||(t=new p(t,e)),n(t)):n(null,i)};return e.processImports===!1?c():(new tree.importVisitor(this.imports,c).run(i),void 0)},parsers:{primary:function(){for(var e,t=[];(e=s(this.extendRule)||s(this.mixin.definition)||s(this.rule)||s(this.ruleset)||s(this.mixin.call)||s(this.comment)||s(this.directive))||s(/^[\s\n]+/)||s(/^;+/);)e&&t.push(e);return t},comment:function(){var t;return"/"===m.charAt(d)?"/"===m.charAt(d+1)?new tree.Comment(s(/^\/\/.*/),!0,d,e.currentFileInfo):(t=s(/^\/\*(?:[^*]|\*+[^\/*])*\*+\/\n?/))?new tree.Comment(t,!1,d,e.currentFileInfo):void 0:void 0},comments:function(){for(var e,t=[];e=s(this.comment);)t.push(e);return t},entities:{quoted:function(){var t,n,i=d,r=d;return"~"===m.charAt(i)&&(i++,n=!0),'"'===m.charAt(i)||"'"===m.charAt(i)?(n&&s("~"),(t=s(/^"((?:[^"\\\r\n]|\\.)*)"|'((?:[^'\\\r\n]|\\.)*)'/))?new tree.Quoted(t[0],t[1]||t[2],n,r,e.currentFileInfo):void 0):void 0},keyword:function(){var e;if(e=s(/^[_A-Za-z-][_A-Za-z0-9-]*/)){var t=tree.Color.fromKeyword(e);return t?t:new tree.Keyword(e)}},call:function(){var t,n,i,r,o=d;if(t=/^([\w-]+|%|progid:[\w\.]+)\(/.exec(y[v])){if(t=t[1],n=t.toLowerCase(),"url"===n)return null;if(d+=t.length,"alpha"===n&&(r=s(this.alpha),"undefined"!=typeof r))return r;if(s("("),i=s(this.entities.arguments),s(")"))return t?new tree.Call(t,i,o,e.currentFileInfo):void 0}},arguments:function(){for(var e,t=[];(e=s(this.entities.assignment)||s(this.expression))&&(t.push(e),s(",")););return t},literal:function(){return s(this.entities.dimension)||s(this.entities.color)||s(this.entities.quoted)||s(this.entities.unicodeDescriptor)},assignment:function(){var e,t;return(e=s(/^\w+(?=\s?=)/i))&&s("=")&&(t=s(this.entity))?new tree.Assignment(e,t):void 0},url:function(){var t;return"u"===m.charAt(d)&&s(/^url\(/)?(t=s(this.entities.quoted)||s(this.entities.variable)||s(/^(?:(?:\\[\(\)'"])|[^\(\)'"])+/)||"",a(")"),new tree.URL(null!=t.value||t instanceof tree.Variable?t:new tree.Anonymous(t),e.currentFileInfo)):void 0},variable:function(){var t,n=d;return"@"===m.charAt(d)&&(t=s(/^@@?[\w-]+/))?new tree.Variable(t,n,e.currentFileInfo):void 0},variableCurly:function(){var t,n=d;return"@"===m.charAt(d)&&(t=s(/^@\{([\w-]+)\}/))?new tree.Variable("@"+t[1],n,e.currentFileInfo):void 0},color:function(){var e;return"#"===m.charAt(d)&&(e=s(/^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})/))?new tree.Color(e[1]):void 0},dimension:function(){var e,t=m.charCodeAt(d);return t>57||43>t||47===t||44==t?void 0:(e=s(/^([+-]?\d*\.?\d+)(%|[a-z]+)?/))?new tree.Dimension(e[1],e[2]):void 0},unicodeDescriptor:function(){var e;return(e=s(/^U\+[0-9a-fA-F?]+(\-[0-9a-fA-F?]+)?/))?new tree.UnicodeDescriptor(e[0]):void 0},javascript:function(){var t,n,i=d;return"~"===m.charAt(i)&&(i++,n=!0),"`"===m.charAt(i)?(void 0===e.javascriptEnabled||e.javascriptEnabled||l("You are using JavaScript, which has been disabled."),n&&s("~"),(t=s(/^`([^`]*)`/))?new tree.JavaScript(t[1],d,n):void 0):void 0}},variable:function(){var e;return"@"===m.charAt(d)&&(e=s(/^(@[\w-]+)\s*:/))?e[1]:void 0},extend:function(e){var t,n,i,r=d,o=[];if(s(e?/^&:extend\(/:/^:extend\(/)){do{for(i=null,t=[];!(i=s(/^(all)(?=\s*(\)|,))/))&&(n=s(this.element),n);)t.push(n);i=i&&i[1],o.push(new tree.Extend(new tree.Selector(t),i,r))}while(s(","));return a(/^\)/),e&&a(/^;/),o}},extendRule:function(){return this.extend(!0)},mixin:{call:function(){var i,r,o,l=[],c=d,h=m.charAt(d),f=!1;if("."===h||"#"===h){for(t();i=s(/^[#.](?:[\w-]|\\(?:[A-Fa-f0-9]{1,6} ?|[^A-Fa-f0-9]))+/);)l.push(new tree.Element(r,i,d,e.currentFileInfo)),r=s(">");return s("(")&&(o=this.mixin.args.call(this,!0).args,a(")")),o=o||[],s(this.important)&&(f=!0),l.length>0&&(s(";")||u("}"))?new tree.mixin.Call(l,o,c,e.currentFileInfo,f):(n(),void 0)}},args:function(e){for(var t,n,i,r,o,u,c=[],h=[],f=[],p={args:null,variadic:!1};;){if(e)u=s(this.expression);else{if(s(this.comments),"."===m.charAt(d)&&s(/^\.{3}/)){p.variadic=!0,s(";")&&!t&&(t=!0),(t?h:f).push({variadic:!0});break}u=s(this.entities.variable)||s(this.entities.literal)||s(this.entities.keyword)}if(!u)break;r=null,u.throwAwayComments&&u.throwAwayComments(),o=u;var v=null;if(e?1==u.value.length&&(v=u.value[0]):v=u,v&&v instanceof tree.Variable)if(s(":"))c.length>0&&(t&&l("Cannot mix ; and , as delimiter types"),n=!0),o=a(this.expression),r=i=v.name;else{if(!e&&s(/^\.{3}/)){p.variadic=!0,s(";")&&!t&&(t=!0),(t?h:f).push({name:u.name,variadic:!0});break}e||(i=r=v.name,o=null)}o&&c.push(o),f.push({name:r,value:o}),s(",")||(s(";")||t)&&(n&&l("Cannot mix ; and , as delimiter types"),t=!0,c.length>1&&(o=new tree.Value(c)),h.push({name:i,value:o}),i=null,c=[],n=!1)}return p.args=t?h:f,p},definition:function(){var e,i,r,o,l=[],c=!1;if(!("."!==m.charAt(d)&&"#"!==m.charAt(d)||u(/^[^{]*\}/))&&(t(),i=s(/^([#.](?:[\w-]|\\(?:[A-Fa-f0-9]{1,6} ?|[^A-Fa-f0-9]))+)\s*\(/))){e=i[1];var h=this.mixin.args.call(this,!1);if(l=h.args,c=h.variadic,s(")")||(S=d,n()),s(this.comments),s(/^when/)&&(o=a(this.conditions,"expected condition")),r=s(this.block))return new tree.mixin.Definition(e,l,r,o,c);n()}}},entity:function(){return s(this.entities.literal)||s(this.entities.variable)||s(this.entities.url)||s(this.entities.call)||s(this.entities.keyword)||s(this.entities.javascript)||s(this.comment)},end:function(){return s(";")||u("}")},alpha:function(){var e;return s(/^\(opacity=/i)?(e=s(/^\d+/)||s(this.entities.variable))?(a(")"),new tree.Alpha(e)):void 0:void 0},element:function(){var t,n,i;return n=s(this.combinator),t=s(/^(?:\d+\.\d+|\d+)%/)||s(/^(?:[.#]?|:*)(?:[\w-]|[^\x00-\x9f]|\\(?:[A-Fa-f0-9]{1,6} ?|[^A-Fa-f0-9]))+/)||s("*")||s("&")||s(this.attribute)||s(/^\([^()@]+\)/)||s(/^[\.#](?=@)/)||s(this.entities.variableCurly),t||s("(")&&(i=s(this.selector))&&s(")")&&(t=new tree.Paren(i)),t?new tree.Element(n,t,d,e.currentFileInfo):void 0},combinator:function(){var e=m.charAt(d);if(">"===e||"+"===e||"~"===e||"|"===e){for(d++;m.charAt(d).match(/\s/);)d++;return new tree.Combinator(e)}return m.charAt(d-1).match(/\s/)?new tree.Combinator(" "):new tree.Combinator(null)},lessSelector:function(){return this.selector(!0)},selector:function(t){for(var n,i,r,o,u,c=[],h=[];(t&&(r=s(this.extend))||t&&(o=s(/^when/))||(n=s(this.element)))&&(o?u=a(this.conditions,"expected condition"):u?l("CSS guard can only be used at the end of selector"):r?h.push.apply(h,r):(h.length&&l("Extend can only be used at the end of selector"),i=m.charAt(d),c.push(n),n=null),"{"!==i&&"}"!==i&&";"!==i&&","!==i&&")"!==i););return c.length>0?new tree.Selector(c,h,u,d,e.currentFileInfo):(h.length&&l("Extend must be used to extend a selector, it cannot be used on its own"),void 0)},attribute:function(){var e,t,n;return s("[")?((e=s(this.entities.variableCurly))||(e=a(/^(?:[_A-Za-z0-9-\*]*\|)?(?:[_A-Za-z0-9-]|\\.)+/)),(n=s(/^[|~*$^]?=/))&&(t=s(this.entities.quoted)||s(/^[0-9]+%/)||s(/^[\w-]+/)||s(this.entities.variableCurly)),a("]"),new tree.Attribute(e,n,t)):void 0},block:function(){var e;return s("{")&&(e=s(this.primary))&&s("}")?e:void 0},ruleset:function(){var i,r,o,a=[];for(t(),e.dumpLineNumbers&&(o=f(d,m,e));(i=s(this.lessSelector))&&(a.push(i),s(this.comments),s(","));)i.condition&&l("Guards are only currently allowed on a single selector."),s(this.comments);if(a.length>0&&(r=s(this.block))){var u=new tree.Ruleset(a,r,e.strictImports);return e.dumpLineNumbers&&(u.debugInfo=o),u}S=d,n()},rule:function(i){var r,o,a,l=m.charAt(d),u=!1;if(t(),"."!==l&&"#"!==l&&"&"!==l&&(r=s(this.variable)||s(this.ruleProperty))){if(o=i||!e.compress&&"@"!==r.charAt(0)?s(this.anonymousValue)||s(this.value):s(this.value)||s(this.anonymousValue),a=s(this.important),"+"===r[r.length-1]&&(u=!0,r=r.substr(0,r.length-1)),o&&s(this.end))return new tree.Rule(r,o,a,u,b,e.currentFileInfo);if(S=d,n(),o&&!i)return this.rule(!0)}},anonymousValue:function(){var e;return(e=/^([^@+\/'"*`(;{}-]*);/.exec(y[v]))?(d+=e[0].length-1,new tree.Anonymous(e[1])):void 0},"import":function(){var i,r,o=d;t();var a=s(/^@import?\s+/),l=(a?s(this.importOptions):null)||{};return a&&(i=s(this.entities.quoted)||s(this.entities.url))&&(r=s(this.mediaFeatures),s(";"))?(r=r&&new tree.Value(r),new tree.Import(i,r,l,o,e.currentFileInfo)):(n(),void 0)},importOptions:function(){var e,t,n,i={};if(!s("("))return null;do if(e=s(this.importOption)){switch(t=e,n=!0,t){case"css":t="less",n=!1;break;case"once":t="multiple",n=!1}if(i[t]=n,!s(","))break}while(e);return a(")"),i},importOption:function(){var e=s(/^(less|css|multiple|once|inline|reference)/);return e?e[1]:void 0},mediaFeature:function(){var t,n,i=[];do if(t=s(this.entities.keyword)||s(this.entities.variable))i.push(t);else if(s("(")){if(n=s(this.property),t=s(this.value),!s(")"))return null;if(n&&t)i.push(new tree.Paren(new tree.Rule(n,t,null,null,d,e.currentFileInfo,!0)));else{if(!t)return null;i.push(new tree.Paren(t))}}while(t);return i.length>0?new tree.Expression(i):void 0},mediaFeatures:function(){var e,t=[];do if(e=s(this.mediaFeature)){if(t.push(e),!s(","))break}else if((e=s(this.entities.variable))&&(t.push(e),!s(",")))break;while(e);return t.length>0?t:null},media:function(){var t,n,i,r;return e.dumpLineNumbers&&(r=f(d,m,e)),s(/^@media/)&&(t=s(this.mediaFeatures),n=s(this.block))?(i=new tree.Media(n,t,d,e.currentFileInfo),e.dumpLineNumbers&&(i.debugInfo=r),i):void 0},directive:function(){var i,r,o,a,l,u,c,h;if("@"===m.charAt(d)){if(r=s(this["import"])||s(this.media))return r;if(t(),i=s(/^@[a-z-]+/)){switch(a=i,"-"==i.charAt(1)&&i.indexOf("-",2)>0&&(a="@"+i.slice(i.indexOf("-",2)+1)),a){case"@font-face":l=!0;break;case"@viewport":case"@top-left":case"@top-left-corner":case"@top-center":case"@top-right":case"@top-right-corner":case"@bottom-left":case"@bottom-left-corner":case"@bottom-center":case"@bottom-right":case"@bottom-right-corner":case"@left-top":case"@left-middle":case"@left-bottom":case"@right-top":case"@right-middle":case"@right-bottom":l=!0;break;case"@host":case"@page":case"@document":case"@supports":case"@keyframes":l=!0,u=!0;break;case"@namespace":c=!0}if(u&&(h=(s(/^[^{]+/)||"").trim(),h&&(i+=" "+h)),l){if(o=s(this.block))return new tree.Directive(i,o,d,e.currentFileInfo)}else if((r=c?s(this.expression):s(this.entity))&&s(";")){var p=new tree.Directive(i,r,d,e.currentFileInfo);return e.dumpLineNumbers&&(p.debugInfo=f(d,m,e)),p}n()}}},value:function(){for(var e,t=[];(e=s(this.expression))&&(t.push(e),s(",")););return t.length>0?new tree.Value(t):void 0},important:function(){return"!"===m.charAt(d)?s(/^! *important/):void 0},sub:function(){var e,t;return s("(")&&(e=s(this.addition))?(t=new tree.Expression([e]),a(")"),t.parens=!0,t):void 0},multiplication:function(){var e,t,n,i,o;if(e=s(this.operand)){for(o=r(m.charAt(d-1));!u(/^\/[*\/]/)&&(n=s("/")||s("*"))&&(t=s(this.operand));)e.parensInOp=!0,t.parensInOp=!0,i=new tree.Operation(n,[i||e,t],o),o=r(m.charAt(d-1));return i||e}},addition:function(){var e,t,n,i,o;if(e=s(this.multiplication)){for(o=r(m.charAt(d-1));(n=s(/^[-+]\s+/)||!o&&(s("+")||s("-")))&&(t=s(this.multiplication));)e.parensInOp=!0,t.parensInOp=!0,i=new tree.Operation(n,[i||e,t],o),o=r(m.charAt(d-1));return i||e}},conditions:function(){var e,t,n,i=d;if(e=s(this.condition)){for(;u(/^,\s*(not\s*)?\(/)&&s(",")&&(t=s(this.condition));)n=new tree.Condition("or",n||e,t,i);return n||e}},condition:function(){var e,t,n,i,r=d,o=!1;return s(/^not/)&&(o=!0),a("("),(e=s(this.addition)||s(this.entities.keyword)||s(this.entities.quoted))?((i=s(/^(?:>=|<=|=<|[<=>])/))?(t=s(this.addition)||s(this.entities.keyword)||s(this.entities.quoted))?n=new tree.Condition(i,e,t,r,o):l("expected expression"):n=new tree.Condition("=",e,new tree.Keyword("true"),r,o),a(")"),s(/^and/)?new tree.Condition("and",n,s(this.condition)):n):void 0},operand:function(){var e,t=m.charAt(d+1);"-"!==m.charAt(d)||"@"!==t&&"("!==t||(e=s("-"));var n=s(this.sub)||s(this.entities.dimension)||s(this.entities.color)||s(this.entities.variable)||s(this.entities.call);return e&&(n.parensInOp=!0,n=new tree.Negative(n)),n},expression:function(){for(var e,t,n=[];e=s(this.addition)||s(this.entity);)n.push(e),!u(/^\/[\/*]/)&&(t=s("/"))&&n.push(new tree.Anonymous(t));return n.length>0?new tree.Expression(n):void 0},property:function(){var e;return(e=s(/^(\*?-?[_a-zA-Z0-9-]+)\s*:/))?e[1]:void 0},ruleProperty:function(){var e;return(e=s(/^(\*?-?[_a-zA-Z0-9-]+)\s*(\+?)\s*:/))?e[1]+(e[2]||""):void 0}}}},function(e){function t(t){return e.functions.hsla(t.h,t.s,t.l,t.a)}function n(t,n){return t instanceof e.Dimension&&t.unit.is("%")?parseFloat(t.value*n/100):i(t)}function i(t){if(t instanceof e.Dimension)return parseFloat(t.unit.is("%")?t.value/100:t.value);if("number"==typeof t)return t;throw{error:"RuntimeError",message:"color functions take numbers as parameters"}}function r(e){return Math.min(1,Math.max(0,e))}e.functions={rgb:function(e,t,n){return this.rgba(e,t,n,1)},rgba:function(t,r,s,o){var a=[t,r,s].map(function(e){return n(e,256)});return o=i(o),new e.Color(a,o)},hsl:function(e,t,n){return this.hsla(e,t,n,1)},hsla:function(e,t,n,s){function o(e){return e=0>e?e+1:e>1?e-1:e,1>6*e?l+6*(a-l)*e:1>2*e?a:2>3*e?l+6*(a-l)*(2/3-e):l}e=i(e)%360/360,t=r(i(t)),n=r(i(n)),s=r(i(s));var a=.5>=n?n*(t+1):n+t-n*t,l=2*n-a;return this.rgba(255*o(e+1/3),255*o(e),255*o(e-1/3),s)},hsv:function(e,t,n){return this.hsva(e,t,n,1)},hsva:function(e,t,n,r){e=360*(i(e)%360/360),t=i(t),n=i(n),r=i(r);var s,o;s=Math.floor(e/60%6),o=e/60-s;var a=[n,n*(1-t),n*(1-o*t),n*(1-(1-o)*t)],l=[[0,3,1],[2,0,1],[1,0,3],[1,2,0],[3,1,0],[0,1,2]];return this.rgba(255*a[l[s][0]],255*a[l[s][1]],255*a[l[s][2]],r)},hue:function(t){return new e.Dimension(Math.round(t.toHSL().h))},saturation:function(t){return new e.Dimension(Math.round(100*t.toHSL().s),"%")},lightness:function(t){return new e.Dimension(Math.round(100*t.toHSL().l),"%")},hsvhue:function(t){return new e.Dimension(Math.round(t.toHSV().h))},hsvsaturation:function(t){return new e.Dimension(Math.round(100*t.toHSV().s),"%")},hsvvalue:function(t){return new e.Dimension(Math.round(100*t.toHSV().v),"%")},red:function(t){return new e.Dimension(t.rgb[0])},green:function(t){return new e.Dimension(t.rgb[1])},blue:function(t){return new e.Dimension(t.rgb[2])},alpha:function(t){return new e.Dimension(t.toHSL().a)},luma:function(t){return new e.Dimension(Math.round(100*t.luma()*t.alpha),"%")},saturate:function(e,n){if(!e.rgb)return null;var i=e.toHSL();return i.s+=n.value/100,i.s=r(i.s),t(i)},desaturate:function(e,n){var i=e.toHSL();return i.s-=n.value/100,i.s=r(i.s),t(i)},lighten:function(e,n){var i=e.toHSL();return i.l+=n.value/100,i.l=r(i.l),t(i)},darken:function(e,n){var i=e.toHSL();return i.l-=n.value/100,i.l=r(i.l),t(i)},fadein:function(e,n){var i=e.toHSL();return i.a+=n.value/100,i.a=r(i.a),t(i)},fadeout:function(e,n){var i=e.toHSL();return i.a-=n.value/100,i.a=r(i.a),t(i)},fade:function(e,n){var i=e.toHSL();return i.a=n.value/100,i.a=r(i.a),t(i)},spin:function(e,n){var i=e.toHSL(),r=(i.h+n.value)%360;return i.h=0>r?360+r:r,t(i)},mix:function(t,n,i){i||(i=new e.Dimension(50));var r=i.value/100,s=2*r-1,o=t.toHSL().a-n.toHSL().a,a=((-1==s*o?s:(s+o)/(1+s*o))+1)/2,l=1-a,u=[t.rgb[0]*a+n.rgb[0]*l,t.rgb[1]*a+n.rgb[1]*l,t.rgb[2]*a+n.rgb[2]*l],c=t.alpha*r+n.alpha*(1-r);return new e.Color(u,c)},greyscale:function(t){return this.desaturate(t,new e.Dimension(100))},contrast:function(e,t,n,r){if(!e.rgb)return null;if("undefined"==typeof n&&(n=this.rgba(255,255,255,1)),"undefined"==typeof t&&(t=this.rgba(0,0,0,1)),t.luma()>n.luma()){var s=n;n=t,t=s}return r="undefined"==typeof r?.43:i(r),e.luma()*e.alpha<r?n:t},e:function(t){return new e.Anonymous(t instanceof e.JavaScript?t.evaluated:t)},escape:function(t){return new e.Anonymous(encodeURI(t.value).replace(/=/g,"%3D").replace(/:/g,"%3A").replace(/#/g,"%23").replace(/;/g,"%3B").replace(/\(/g,"%28").replace(/\)/g,"%29"))},"%":function(t){for(var n=Array.prototype.slice.call(arguments,1),i=t.value,r=0;r<n.length;r++)i=i.replace(/%[sda]/i,function(e){var t=e.match(/s/i)?n[r].value:n[r].toCSS();return e.match(/[A-Z]$/)?encodeURIComponent(t):t});return i=i.replace(/%%/g,"%"),new e.Quoted('"'+i+'"',i)},unit:function(t,n){if(!(t instanceof e.Dimension))throw{type:"Argument",message:"the first argument to unit must be a number"+(t instanceof e.Operation?". Have you forgotten parenthesis?":"")};return new e.Dimension(t.value,n?n.toCSS():"")},convert:function(e,t){return e.convertTo(t.value)},round:function(e,t){var n="undefined"==typeof t?0:t.value;return this._math(function(e){return e.toFixed(n)},null,e)},pi:function(){return new e.Dimension(Math.PI)},mod:function(t,n){return new e.Dimension(t.value%n.value,t.unit)},pow:function(t,n){if("number"==typeof t&&"number"==typeof n)t=new e.Dimension(t),n=new e.Dimension(n);else if(!(t instanceof e.Dimension&&n instanceof e.Dimension))throw{type:"Argument",message:"arguments must be numbers"};return new e.Dimension(Math.pow(t.value,n.value),t.unit)},_math:function(t,n,i){if(i instanceof e.Dimension)return new e.Dimension(t(parseFloat(i.value)),null==n?i.unit:n);if("number"==typeof i)return t(i);throw{type:"Argument",message:"argument must be a number"}},_minmax:function(t,n){switch(n=Array.prototype.slice.call(n),n.length){case 0:throw{type:"Argument",message:"one or more arguments required"};case 1:return n[0]}var i,r,s,o,a,l,u=[],c={};for(i=0;i<n.length;i++)s=n[i],s instanceof e.Dimension?(o=s.unify(),l=o.unit.toString(),r=c[l],void 0!==r?(a=u[r].unify(),(t&&o.value<a.value||!t&&o.value>a.value)&&(u[r]=s)):(c[l]=u.length,u.push(s))):u.push(s);return 1==u.length?u[0]:(n=u.map(function(e){return e.toCSS(this.env)}).join(this.env.compress?",":", "),new e.Anonymous((t?"min":"max")+"("+n+")"))},min:function(){return this._minmax(!0,arguments)},max:function(){return this._minmax(!1,arguments)},argb:function(t){return new e.Anonymous(t.toARGB())},percentage:function(t){return new e.Dimension(100*t.value,"%")},color:function(t){if(t instanceof e.Quoted){var n,i=t.value;if(n=e.Color.fromKeyword(i))return n;if(/^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})/.test(i))return new e.Color(i.slice(1));throw{type:"Argument",message:"argument must be a color keyword or 3/6 digit hex e.g. #FFF"}}throw{type:"Argument",message:"argument must be a string"}},iscolor:function(t){return this._isa(t,e.Color)},isnumber:function(t){return this._isa(t,e.Dimension)},isstring:function(t){return this._isa(t,e.Quoted)},iskeyword:function(t){return this._isa(t,e.Keyword)},isurl:function(t){return this._isa(t,e.URL)
},ispixel:function(e){return this.isunit(e,"px")},ispercentage:function(e){return this.isunit(e,"%")},isem:function(e){return this.isunit(e,"em")},isunit:function(t,n){return t instanceof e.Dimension&&t.unit.is(n.value||n)?e.True:e.False},_isa:function(t,n){return t instanceof n?e.True:e.False},multiply:function(e,t){var n=e.rgb[0]*t.rgb[0]/255,i=e.rgb[1]*t.rgb[1]/255,r=e.rgb[2]*t.rgb[2]/255;return this.rgb(n,i,r)},screen:function(e,t){var n=255-(255-e.rgb[0])*(255-t.rgb[0])/255,i=255-(255-e.rgb[1])*(255-t.rgb[1])/255,r=255-(255-e.rgb[2])*(255-t.rgb[2])/255;return this.rgb(n,i,r)},overlay:function(e,t){var n=e.rgb[0]<128?2*e.rgb[0]*t.rgb[0]/255:255-2*(255-e.rgb[0])*(255-t.rgb[0])/255,i=e.rgb[1]<128?2*e.rgb[1]*t.rgb[1]/255:255-2*(255-e.rgb[1])*(255-t.rgb[1])/255,r=e.rgb[2]<128?2*e.rgb[2]*t.rgb[2]/255:255-2*(255-e.rgb[2])*(255-t.rgb[2])/255;return this.rgb(n,i,r)},softlight:function(e,t){var n=t.rgb[0]*e.rgb[0]/255,i=n+e.rgb[0]*(255-(255-e.rgb[0])*(255-t.rgb[0])/255-n)/255;n=t.rgb[1]*e.rgb[1]/255;var r=n+e.rgb[1]*(255-(255-e.rgb[1])*(255-t.rgb[1])/255-n)/255;n=t.rgb[2]*e.rgb[2]/255;var s=n+e.rgb[2]*(255-(255-e.rgb[2])*(255-t.rgb[2])/255-n)/255;return this.rgb(i,r,s)},hardlight:function(e,t){var n=t.rgb[0]<128?2*t.rgb[0]*e.rgb[0]/255:255-2*(255-t.rgb[0])*(255-e.rgb[0])/255,i=t.rgb[1]<128?2*t.rgb[1]*e.rgb[1]/255:255-2*(255-t.rgb[1])*(255-e.rgb[1])/255,r=t.rgb[2]<128?2*t.rgb[2]*e.rgb[2]/255:255-2*(255-t.rgb[2])*(255-e.rgb[2])/255;return this.rgb(n,i,r)},difference:function(e,t){var n=Math.abs(e.rgb[0]-t.rgb[0]),i=Math.abs(e.rgb[1]-t.rgb[1]),r=Math.abs(e.rgb[2]-t.rgb[2]);return this.rgb(n,i,r)},exclusion:function(e,t){var n=e.rgb[0]+t.rgb[0]*(255-e.rgb[0]-e.rgb[0])/255,i=e.rgb[1]+t.rgb[1]*(255-e.rgb[1]-e.rgb[1])/255,r=e.rgb[2]+t.rgb[2]*(255-e.rgb[2]-e.rgb[2])/255;return this.rgb(n,i,r)},average:function(e,t){var n=(e.rgb[0]+t.rgb[0])/2,i=(e.rgb[1]+t.rgb[1])/2,r=(e.rgb[2]+t.rgb[2])/2;return this.rgb(n,i,r)},negation:function(e,t){var n=255-Math.abs(255-t.rgb[0]-e.rgb[0]),i=255-Math.abs(255-t.rgb[1]-e.rgb[1]),r=255-Math.abs(255-t.rgb[2]-e.rgb[2]);return this.rgb(n,i,r)},tint:function(e,t){return this.mix(this.rgb(255,255,255),e,t)},shade:function(e,t){return this.mix(this.rgb(0,0,0),e,t)},extract:function(e,t){return t=t.value-1,Array.isArray(e.value)?e.value[t]:Array(e)[t]},length:function(t){var n=Array.isArray(t.value)?t.value.length:1;return new e.Dimension(n)},"data-uri":function(t,n){if("undefined"!=typeof window)return new e.URL(n||t,this.currentFileInfo).eval(this.env);var i=t.value,r=n&&n.value,s=require("fs"),o=require("path"),a=!1;if(arguments.length<2&&(r=i),this.env.isPathRelative(r)&&(r=this.currentFileInfo.relativeUrls?o.join(this.currentFileInfo.currentDirectory,r):o.join(this.currentFileInfo.entryPath,r)),arguments.length<2){var l;try{l=require("mime")}catch(u){l=e._mime}i=l.lookup(r);var c=l.charsets.lookup(i);a=["US-ASCII","UTF-8"].indexOf(c)<0,a&&(i+=";base64")}else a=/;base64$/.test(i);var h=s.readFileSync(r),f=32,p=parseInt(h.length/1024,10);if(p>=f&&this.env.ieCompat!==!1)return this.env.silent||console.warn("Skipped data-uri embedding of %s because its size (%dKB) exceeds IE8-safe %dKB!",r,p,f),new e.URL(n||t,this.currentFileInfo).eval(this.env);h=a?h.toString("base64"):encodeURIComponent(h);var m="'data:"+i+","+h+"'";return new e.URL(new e.Anonymous(m))},"svg-gradient":function(t){function n(){throw{type:"Argument",message:"svg-gradient expects direction, start_color [start_position], [color position,]..., end_color [end_position]"}}arguments.length<3&&n();var i,r,s,o,a,l,u,c=Array.prototype.slice.call(arguments,1),h="linear",f='x="0" y="0" width="1" height="1"',p=!0,m={compress:!1},d=t.toCSS(m);switch(d){case"to bottom":i='x1="0%" y1="0%" x2="0%" y2="100%"';break;case"to right":i='x1="0%" y1="0%" x2="100%" y2="0%"';break;case"to bottom right":i='x1="0%" y1="0%" x2="100%" y2="100%"';break;case"to top right":i='x1="0%" y1="100%" x2="100%" y2="0%"';break;case"ellipse":case"ellipse at center":h="radial",i='cx="50%" cy="50%" r="75%"',f='x="-50" y="-50" width="101" height="101"';break;default:throw{type:"Argument",message:"svg-gradient direction must be 'to bottom', 'to right', 'to bottom right', 'to top right' or 'ellipse at center'"}}for(r='<?xml version="1.0" ?><svg xmlns="http://www.w3.org/2000/svg" version="1.1" width="100%" height="100%" viewBox="0 0 1 1" preserveAspectRatio="none"><'+h+'Gradient id="gradient" gradientUnits="userSpaceOnUse" '+i+">",s=0;s<c.length;s+=1)c[s].value?(o=c[s].value[0],a=c[s].value[1]):(o=c[s],a=void 0),o instanceof e.Color&&((0===s||s+1===c.length)&&void 0===a||a instanceof e.Dimension)||n(),l=a?a.toCSS(m):0===s?"0%":"100%",u=o.alpha,r+='<stop offset="'+l+'" stop-color="'+o.toRGB()+'"'+(1>u?' stop-opacity="'+u+'"':"")+"/>";if(r+="</"+h+"Gradient><rect "+f+' fill="url(#gradient)" /></svg>',p)try{r=new Buffer(r).toString("base64")}catch(v){p=!1}return r="'data:image/svg+xml"+(p?";base64":"")+","+r+"'",new e.URL(new e.Anonymous(r))}},e._mime={_types:{".htm":"text/html",".html":"text/html",".gif":"image/gif",".jpg":"image/jpeg",".jpeg":"image/jpeg",".png":"image/png"},lookup:function(t){var n=require("path").extname(t),i=e._mime._types[n];if(void 0===i)throw new Error('Optional dependency "mime" is required for '+n);return i},charsets:{lookup:function(e){return e&&/^text\//.test(e)?"UTF-8":""}}};for(var s=[{name:"ceil"},{name:"floor"},{name:"sqrt"},{name:"abs"},{name:"tan",unit:""},{name:"sin",unit:""},{name:"cos",unit:""},{name:"atan",unit:"rad"},{name:"asin",unit:"rad"},{name:"acos",unit:"rad"}],o=function(e,t){return function(n){return null!=t&&(n=n.unify()),this._math(Math[e],t,n)}},a=0;a<s.length;a++)e.functions[s[a].name]=o(s[a].name,s[a].unit);e.functionCall=function(e,t){this.env=e,this.currentFileInfo=t},e.functionCall.prototype=e.functions}(require("./tree")),function(e){e.colors={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",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"}}(require("./tree")),function(e){e.debugInfo=function(t,n,i){var r="";if(t.dumpLineNumbers&&!t.compress)switch(t.dumpLineNumbers){case"comments":r=e.debugInfo.asComment(n);break;case"mediaquery":r=e.debugInfo.asMediaQuery(n);break;case"all":r=e.debugInfo.asComment(n)+(i||"")+e.debugInfo.asMediaQuery(n)}return r},e.debugInfo.asComment=function(e){return"/* line "+e.debugInfo.lineNumber+", "+e.debugInfo.fileName+" */\n"},e.debugInfo.asMediaQuery=function(e){return"@media -sass-debug-info{filename{font-family:"+("file://"+e.debugInfo.fileName).replace(/([.:/\\])/g,function(e){return"\\"==e&&(e="/"),"\\"+e})+"}line{font-family:\\00003"+e.debugInfo.lineNumber+"}}\n"},e.find=function(e,t){for(var n,i=0;i<e.length;i++)if(n=t.call(e,e[i]))return n;return null},e.jsify=function(e){return Array.isArray(e.value)&&e.value.length>1?"["+e.value.map(function(e){return e.toCSS(!1)}).join(", ")+"]":e.toCSS(!1)},e.toCSS=function(e){var t=[];return this.genCSS(e,{add:function(e){t.push(e)},isEmpty:function(){return 0===t.length}}),t.join("")},e.outputRuleset=function(e,t,n){t.add(e.compress?"{":" {\n"),e.tabLevel=(e.tabLevel||0)+1;for(var i=e.compress?"":Array(e.tabLevel+1).join(" "),r=e.compress?"":Array(e.tabLevel).join(" "),s=0;s<n.length;s++)t.add(i),n[s].genCSS(e,t),t.add(e.compress?"":"\n");e.tabLevel--,t.add(r+"}")}}(require("./tree")),function(e){e.Alpha=function(e){this.value=e},e.Alpha.prototype={type:"Alpha",accept:function(e){this.value=e.visit(this.value)},eval:function(t){return this.value.eval?new e.Alpha(this.value.eval(t)):this},genCSS:function(e,t){t.add("alpha(opacity="),this.value.genCSS?this.value.genCSS(e,t):t.add(this.value),t.add(")")},toCSS:e.toCSS}}(require("../tree")),function(e){e.Anonymous=function(e,t,n,i){this.value=e.value||e,this.index=t,this.mapLines=i,this.currentFileInfo=n},e.Anonymous.prototype={type:"Anonymous",eval:function(){return this},compare:function(e){if(!e.toCSS)return-1;var t=this.toCSS(),n=e.toCSS();return t===n?0:n>t?-1:1},genCSS:function(e,t){t.add(this.value,this.currentFileInfo,this.index,this.mapLines)},toCSS:e.toCSS}}(require("../tree")),function(e){e.Assignment=function(e,t){this.key=e,this.value=t},e.Assignment.prototype={type:"Assignment",accept:function(e){this.value=e.visit(this.value)},eval:function(t){return this.value.eval?new e.Assignment(this.key,this.value.eval(t)):this},genCSS:function(e,t){t.add(this.key+"="),this.value.genCSS?this.value.genCSS(e,t):t.add(this.value)},toCSS:e.toCSS}}(require("../tree")),function(e){e.Call=function(e,t,n,i){this.name=e,this.args=t,this.index=n,this.currentFileInfo=i},e.Call.prototype={type:"Call",accept:function(e){this.args=e.visit(this.args)},eval:function(t){var n,i,r=this.args.map(function(e){return e.eval(t)}),s=this.name.toLowerCase();if(s in e.functions)try{if(i=new e.functionCall(t,this.currentFileInfo),n=i[s].apply(i,r),null!=n)return n}catch(o){throw{type:o.type||"Runtime",message:"error evaluating function `"+this.name+"`"+(o.message?": "+o.message:""),index:this.index,filename:this.currentFileInfo.filename}}return new e.Call(this.name,r,this.index,this.currentFileInfo)},genCSS:function(e,t){t.add(this.name+"(",this.currentFileInfo,this.index);for(var n=0;n<this.args.length;n++)this.args[n].genCSS(e,t),n+1<this.args.length&&t.add(", ");t.add(")")},toCSS:e.toCSS}}(require("../tree")),function(e){e.Color=function(e,t){this.rgb=Array.isArray(e)?e:6==e.length?e.match(/.{2}/g).map(function(e){return parseInt(e,16)}):e.split("").map(function(e){return parseInt(e+e,16)}),this.alpha="number"==typeof t?t:1};var t="transparent";e.Color.prototype={type:"Color",eval:function(){return this},luma:function(){return.2126*this.rgb[0]/255+.7152*this.rgb[1]/255+.0722*this.rgb[2]/255},genCSS:function(e,t){t.add(this.toCSS(e))},toCSS:function(e,n){var i=e&&e.compress&&!n;if(this.alpha<1)return 0===this.alpha&&this.isTransparentKeyword?t:"rgba("+this.rgb.map(function(e){return Math.round(e)}).concat(this.alpha).join(","+(i?"":" "))+")";var r=this.toRGB();if(i){var s=r.split("");s[1]===s[2]&&s[3]===s[4]&&s[5]===s[6]&&(r="#"+s[1]+s[3]+s[5])}return r},operate:function(t,n,i){var r=[];i instanceof e.Color||(i=i.toColor());for(var s=0;3>s;s++)r[s]=e.operate(t,n,this.rgb[s],i.rgb[s]);return new e.Color(r,this.alpha+i.alpha)},toRGB:function(){return"#"+this.rgb.map(function(e){return e=Math.round(e),e=(e>255?255:0>e?0:e).toString(16),1===e.length?"0"+e:e}).join("")},toHSL:function(){var e,t,n=this.rgb[0]/255,i=this.rgb[1]/255,r=this.rgb[2]/255,s=this.alpha,o=Math.max(n,i,r),a=Math.min(n,i,r),l=(o+a)/2,u=o-a;if(o===a)e=t=0;else{switch(t=l>.5?u/(2-o-a):u/(o+a),o){case n:e=(i-r)/u+(r>i?6:0);break;case i:e=(r-n)/u+2;break;case r:e=(n-i)/u+4}e/=6}return{h:360*e,s:t,l:l,a:s}},toHSV:function(){var e,t,n=this.rgb[0]/255,i=this.rgb[1]/255,r=this.rgb[2]/255,s=this.alpha,o=Math.max(n,i,r),a=Math.min(n,i,r),l=o,u=o-a;if(t=0===o?0:u/o,o===a)e=0;else{switch(o){case n:e=(i-r)/u+(r>i?6:0);break;case i:e=(r-n)/u+2;break;case r:e=(n-i)/u+4}e/=6}return{h:360*e,s:t,v:l,a:s}},toARGB:function(){var e=[Math.round(255*this.alpha)].concat(this.rgb);return"#"+e.map(function(e){return e=Math.round(e),e=(e>255?255:0>e?0:e).toString(16),1===e.length?"0"+e:e}).join("")},compare:function(e){return e.rgb?e.rgb[0]===this.rgb[0]&&e.rgb[1]===this.rgb[1]&&e.rgb[2]===this.rgb[2]&&e.alpha===this.alpha?0:-1:-1}},e.Color.fromKeyword=function(n){if(e.colors.hasOwnProperty(n))return new e.Color(e.colors[n].slice(1));if(n===t){var i=new e.Color([0,0,0],0);return i.isTransparentKeyword=!0,i}}}(require("../tree")),function(e){e.Comment=function(e,t,n,i){this.value=e,this.silent=!!t,this.currentFileInfo=i},e.Comment.prototype={type:"Comment",genCSS:function(t,n){this.debugInfo&&n.add(e.debugInfo(t,this),this.currentFileInfo,this.index),n.add(this.value.trim())},toCSS:e.toCSS,isSilent:function(e){var t=this.currentFileInfo&&this.currentFileInfo.reference&&!this.isReferenced,n=e.compress&&!this.value.match(/^\/\*!/);return this.silent||t||n},eval:function(){return this},markReferenced:function(){this.isReferenced=!0}}}(require("../tree")),function(e){e.Condition=function(e,t,n,i,r){this.op=e.trim(),this.lvalue=t,this.rvalue=n,this.index=i,this.negate=r},e.Condition.prototype={type:"Condition",accept:function(e){this.lvalue=e.visit(this.lvalue),this.rvalue=e.visit(this.rvalue)},eval:function(e){var t,n=this.lvalue.eval(e),i=this.rvalue.eval(e),r=this.index;return t=function(e){switch(e){case"and":return n&&i;case"or":return n||i;default:if(n.compare)t=n.compare(i);else{if(!i.compare)throw{type:"Type",message:"Unable to perform comparison",index:r};t=i.compare(n)}switch(t){case-1:return"<"===e||"=<"===e||"<="===e;case 0:return"="===e||">="===e||"=<"===e||"<="===e;case 1:return">"===e||">="===e}}}(this.op),this.negate?!t:t}}}(require("../tree")),function(e){e.Dimension=function(t,n){this.value=parseFloat(t),this.unit=n&&n instanceof e.Unit?n:new e.Unit(n?[n]:void 0)},e.Dimension.prototype={type:"Dimension",accept:function(e){this.unit=e.visit(this.unit)},eval:function(){return this},toColor:function(){return new e.Color([this.value,this.value,this.value])},genCSS:function(e,t){if(e&&e.strictUnits&&!this.unit.isSingular())throw new Error("Multiple units in dimension. Correct the units or use the unit function. Bad unit: "+this.unit.toString());var n=this.value,i=String(n);if(0!==n&&1e-6>n&&n>-1e-6&&(i=n.toFixed(20).replace(/0+$/,"")),e&&e.compress){if(0===n&&this.unit.isLength())return t.add(i),void 0;n>0&&1>n&&(i=i.substr(1))}t.add(i),this.unit.genCSS(e,t)},toCSS:e.toCSS,operate:function(t,n,i){var r=e.operate(t,n,this.value,i.value),s=this.unit.clone();if("+"===n||"-"===n)if(0===s.numerator.length&&0===s.denominator.length)s.numerator=i.unit.numerator.slice(0),s.denominator=i.unit.denominator.slice(0);else if(0===i.unit.numerator.length&&0===s.denominator.length);else{if(i=i.convertTo(this.unit.usedUnits()),t.strictUnits&&i.unit.toString()!==s.toString())throw new Error("Incompatible units. Change the units or use the unit function. Bad units: '"+s.toString()+"' and '"+i.unit.toString()+"'.");r=e.operate(t,n,this.value,i.value)}else"*"===n?(s.numerator=s.numerator.concat(i.unit.numerator).sort(),s.denominator=s.denominator.concat(i.unit.denominator).sort(),s.cancel()):"/"===n&&(s.numerator=s.numerator.concat(i.unit.denominator).sort(),s.denominator=s.denominator.concat(i.unit.numerator).sort(),s.cancel());return new e.Dimension(r,s)},compare:function(t){if(t instanceof e.Dimension){var n=this.unify(),i=t.unify(),r=n.value,s=i.value;return s>r?-1:r>s?1:i.unit.isEmpty()||0===n.unit.compare(i.unit)?0:-1}return-1},unify:function(){return this.convertTo({length:"m",duration:"s",angle:"rad"})},convertTo:function(t){var n,i,r,s,o,a=this.value,l=this.unit.clone(),u={};if("string"==typeof t){for(n in e.UnitConversions)e.UnitConversions[n].hasOwnProperty(t)&&(u={},u[n]=t);t=u}o=function(e,t){return r.hasOwnProperty(e)?(t?a/=r[e]/r[s]:a*=r[e]/r[s],s):e};for(i in t)t.hasOwnProperty(i)&&(s=t[i],r=e.UnitConversions[i],l.map(o));return l.cancel(),new e.Dimension(a,l)}},e.UnitConversions={length:{m:1,cm:.01,mm:.001,"in":.0254,pt:.0254/72,pc:12*(.0254/72)},duration:{s:1,ms:.001},angle:{rad:1/(2*Math.PI),deg:1/360,grad:.0025,turn:1}},e.Unit=function(e,t,n){this.numerator=e?e.slice(0).sort():[],this.denominator=t?t.slice(0).sort():[],this.backupUnit=n},e.Unit.prototype={type:"Unit",clone:function(){return new e.Unit(this.numerator.slice(0),this.denominator.slice(0),this.backupUnit)},genCSS:function(e,t){this.numerator.length>=1?t.add(this.numerator[0]):this.denominator.length>=1?t.add(this.denominator[0]):e&&e.strictUnits||!this.backupUnit||t.add(this.backupUnit)},toCSS:e.toCSS,toString:function(){var e,t=this.numerator.join("*");for(e=0;e<this.denominator.length;e++)t+="/"+this.denominator[e];return t},compare:function(e){return this.is(e.toString())?0:-1},is:function(e){return this.toString()===e},isLength:function(){return Boolean(this.toCSS().match(/px|em|%|in|cm|mm|pc|pt|ex/))},isEmpty:function(){return 0===this.numerator.length&&0===this.denominator.length},isSingular:function(){return this.numerator.length<=1&&0===this.denominator.length},map:function(e){var t;for(t=0;t<this.numerator.length;t++)this.numerator[t]=e(this.numerator[t],!1);for(t=0;t<this.denominator.length;t++)this.denominator[t]=e(this.denominator[t],!0)},usedUnits:function(){var t,n,i={};n=function(e){return t.hasOwnProperty(e)&&!i[r]&&(i[r]=e),e};for(var r in e.UnitConversions)e.UnitConversions.hasOwnProperty(r)&&(t=e.UnitConversions[r],this.map(n));return i},cancel:function(){var e,t,n,i={};for(t=0;t<this.numerator.length;t++)e=this.numerator[t],n||(n=e),i[e]=(i[e]||0)+1;for(t=0;t<this.denominator.length;t++)e=this.denominator[t],n||(n=e),i[e]=(i[e]||0)-1;this.numerator=[],this.denominator=[];for(e in i)if(i.hasOwnProperty(e)){var r=i[e];if(r>0)for(t=0;r>t;t++)this.numerator.push(e);else if(0>r)for(t=0;-r>t;t++)this.denominator.push(e)}0===this.numerator.length&&0===this.denominator.length&&n&&(this.backupUnit=n),this.numerator.sort(),this.denominator.sort()}}}(require("../tree")),function(e){e.Directive=function(t,n,i,r){this.name=t,Array.isArray(n)?(this.rules=[new e.Ruleset([],n)],this.rules[0].allowImports=!0):this.value=n,this.currentFileInfo=r},e.Directive.prototype={type:"Directive",accept:function(e){this.rules=e.visit(this.rules),this.value=e.visit(this.value)},genCSS:function(t,n){n.add(this.name,this.currentFileInfo,this.index),this.rules?e.outputRuleset(t,n,this.rules):(n.add(" "),this.value.genCSS(t,n),n.add(";"))},toCSS:e.toCSS,eval:function(t){var n=this;return this.rules&&(t.frames.unshift(this),n=new e.Directive(this.name,null,this.index,this.currentFileInfo),n.rules=[this.rules[0].eval(t)],n.rules[0].root=!0,t.frames.shift()),n},variable:function(t){return e.Ruleset.prototype.variable.call(this.rules[0],t)},find:function(){return e.Ruleset.prototype.find.apply(this.rules[0],arguments)},rulesets:function(){return e.Ruleset.prototype.rulesets.apply(this.rules[0])},markReferenced:function(){var e,t;if(this.isReferenced=!0,this.rules)for(t=this.rules[0].rules,e=0;e<t.length;e++)t[e].markReferenced&&t[e].markReferenced()}}}(require("../tree")),function(e){e.Element=function(t,n,i,r){this.combinator=t instanceof e.Combinator?t:new e.Combinator(t),this.value="string"==typeof n?n.trim():n?n:"",this.index=i,this.currentFileInfo=r},e.Element.prototype={type:"Element",accept:function(e){this.combinator=e.visit(this.combinator),this.value=e.visit(this.value)},eval:function(t){return new e.Element(this.combinator,this.value.eval?this.value.eval(t):this.value,this.index,this.currentFileInfo)},genCSS:function(e,t){t.add(this.toCSS(e),this.currentFileInfo,this.index)},toCSS:function(e){var t=this.value.toCSS?this.value.toCSS(e):this.value;return""===t&&"&"===this.combinator.value.charAt(0)?"":this.combinator.toCSS(e||{})+t}},e.Attribute=function(e,t,n){this.key=e,this.op=t,this.value=n},e.Attribute.prototype={type:"Attribute",accept:function(e){this.value=e.visit(this.value)},eval:function(t){return new e.Attribute(this.key.eval?this.key.eval(t):this.key,this.op,this.value&&this.value.eval?this.value.eval(t):this.value)},genCSS:function(e,t){t.add(this.toCSS(e))},toCSS:function(e){var t=this.key.toCSS?this.key.toCSS(e):this.key;return this.op&&(t+=this.op,t+=this.value.toCSS?this.value.toCSS(e):this.value),"["+t+"]"}},e.Combinator=function(e){this.value=" "===e?" ":e?e.trim():""},e.Combinator.prototype={type:"Combinator",_outputMap:{"":""," ":" ",":":" :","+":" + ","~":" ~ ",">":" > ","|":"|"},_outputMapCompressed:{"":""," ":" ",":":" :","+":"+","~":"~",">":">","|":"|"},genCSS:function(e,t){t.add((e.compress?this._outputMapCompressed:this._outputMap)[this.value])},toCSS:e.toCSS}}(require("../tree")),function(e){e.Expression=function(e){this.value=e},e.Expression.prototype={type:"Expression",accept:function(e){this.value=e.visit(this.value)},eval:function(t){var n,i=this.parens&&!this.parensInOp,r=!1;return i&&t.inParenthesis(),this.value.length>1?n=new e.Expression(this.value.map(function(e){return e.eval(t)})):1===this.value.length?(this.value[0].parens&&!this.value[0].parensInOp&&(r=!0),n=this.value[0].eval(t)):n=this,i&&t.outOfParenthesis(),this.parens&&this.parensInOp&&!t.isMathOn()&&!r&&(n=new e.Paren(n)),n},genCSS:function(e,t){for(var n=0;n<this.value.length;n++)this.value[n].genCSS(e,t),n+1<this.value.length&&t.add(" ")},toCSS:e.toCSS,throwAwayComments:function(){this.value=this.value.filter(function(t){return!(t instanceof e.Comment)})}}}(require("../tree")),function(e){e.Extend=function(e,t,n){switch(this.selector=e,this.option=t,this.index=n,t){case"all":this.allowBefore=!0,this.allowAfter=!0;break;default:this.allowBefore=!1,this.allowAfter=!1}},e.Extend.prototype={type:"Extend",accept:function(e){this.selector=e.visit(this.selector)},eval:function(t){return new e.Extend(this.selector.eval(t),this.option,this.index)},clone:function(){return new e.Extend(this.selector,this.option,this.index)},findSelfSelectors:function(e){var t,n,i=[];for(t=0;t<e.length;t++)n=e[t].elements,t>0&&n.length&&""===n[0].combinator.value&&(n[0].combinator.value=" "),i=i.concat(e[t].elements);this.selfSelectors=[{elements:i}]}}}(require("../tree")),function(e){e.Import=function(e,t,n,i,r){if(this.options=n,this.index=i,this.path=e,this.features=t,this.currentFileInfo=r,void 0!==this.options.less||this.options.inline)this.css=!this.options.less||this.options.inline;else{var s=this.getPath();s&&/css([\?;].*)?$/.test(s)&&(this.css=!0)}},e.Import.prototype={type:"Import",accept:function(e){this.features=e.visit(this.features),this.path=e.visit(this.path),this.options.inline||(this.root=e.visit(this.root))},genCSS:function(e,t){this.css&&(t.add("@import ",this.currentFileInfo,this.index),this.path.genCSS(e,t),this.features&&(t.add(" "),this.features.genCSS(e,t)),t.add(";"))},toCSS:e.toCSS,getPath:function(){if(this.path instanceof e.Quoted){var t=this.path.value;return void 0!==this.css||/(\.[a-z]*$)|([\?;].*)$/.test(t)?t:t+".less"}return this.path instanceof e.URL?this.path.value.value:null},evalForImport:function(t){return new e.Import(this.path.eval(t),this.features,this.options,this.index,this.currentFileInfo)},evalPath:function(t){var n=this.path.eval(t),i=this.currentFileInfo&&this.currentFileInfo.rootpath;if(!(n instanceof e.URL)){if(i){var r=n.value;r&&t.isPathRelative(r)&&(n.value=i+r)}n.value=t.normalizePath(n.value)}return n},eval:function(t){var n,i=this.features&&this.features.eval(t);if(this.skip)return[];if(this.options.inline){var r=new e.Anonymous(this.root,0,{filename:this.importedFilename},!0);return this.features?new e.Media([r],this.features.value):[r]}if(this.css){var s=new e.Import(this.evalPath(t),i,this.options,this.index);if(!s.css&&this.error)throw this.error;return s}return n=new e.Ruleset([],this.root.rules.slice(0)),n.evalImports(t),this.features?new e.Media(n.rules,this.features.value):n.rules}}}(require("../tree")),function(e){e.JavaScript=function(e,t,n){this.escaped=n,this.expression=e,this.index=t},e.JavaScript.prototype={type:"JavaScript",eval:function(t){var n,i=this,r={},s=this.expression.replace(/@\{([\w-]+)\}/g,function(n,r){return e.jsify(new e.Variable("@"+r,i.index).eval(t))});try{s=new Function("return ("+s+")")}catch(o){throw{message:"JavaScript evaluation error: "+o.message+" from `"+s+"`",index:this.index}}for(var a in t.frames[0].variables())r[a.slice(1)]={value:t.frames[0].variables()[a].value,toJS:function(){return this.value.eval(t).toCSS()}};try{n=s.call(r)}catch(o){throw{message:"JavaScript evaluation error: '"+o.name+": "+o.message+"'",index:this.index}}return"string"==typeof n?new e.Quoted('"'+n+'"',n,this.escaped,this.index):Array.isArray(n)?new e.Anonymous(n.join(", ")):new e.Anonymous(n)}}}(require("../tree")),function(e){e.Keyword=function(e){this.value=e},e.Keyword.prototype={type:"Keyword",eval:function(){return this},genCSS:function(e,t){t.add(this.value)},toCSS:e.toCSS,compare:function(t){return t instanceof e.Keyword?t.value===this.value?0:1:-1}},e.True=new e.Keyword("true"),e.False=new e.Keyword("false")}(require("../tree")),function(e){e.Media=function(t,n,i,r){this.index=i,this.currentFileInfo=r;var s=this.emptySelectors();this.features=new e.Value(n),this.rules=[new e.Ruleset(s,t)],this.rules[0].allowImports=!0},e.Media.prototype={type:"Media",accept:function(e){this.features=e.visit(this.features),this.rules=e.visit(this.rules)},genCSS:function(t,n){n.add("@media ",this.currentFileInfo,this.index),this.features.genCSS(t,n),e.outputRuleset(t,n,this.rules)},toCSS:e.toCSS,eval:function(t){t.mediaBlocks||(t.mediaBlocks=[],t.mediaPath=[]);var n=new e.Media([],[],this.index,this.currentFileInfo);this.debugInfo&&(this.rules[0].debugInfo=this.debugInfo,n.debugInfo=this.debugInfo);var i=!1;t.strictMath||(i=!0,t.strictMath=!0);try{n.features=this.features.eval(t)}finally{i&&(t.strictMath=!1)}return t.mediaPath.push(n),t.mediaBlocks.push(n),t.frames.unshift(this.rules[0]),n.rules=[this.rules[0].eval(t)],t.frames.shift(),t.mediaPath.pop(),0===t.mediaPath.length?n.evalTop(t):n.evalNested(t)},variable:function(t){return e.Ruleset.prototype.variable.call(this.rules[0],t)},find:function(){return e.Ruleset.prototype.find.apply(this.rules[0],arguments)},rulesets:function(){return e.Ruleset.prototype.rulesets.apply(this.rules[0])},emptySelectors:function(){var t=new e.Element("","&",this.index,this.currentFileInfo);return[new e.Selector([t],null,null,this.index,this.currentFileInfo)]},markReferenced:function(){var e,t=this.rules[0].rules;for(this.isReferenced=!0,e=0;e<t.length;e++)t[e].markReferenced&&t[e].markReferenced()},evalTop:function(t){var n=this;if(t.mediaBlocks.length>1){var i=this.emptySelectors();n=new e.Ruleset(i,t.mediaBlocks),n.multiMedia=!0}return delete t.mediaBlocks,delete t.mediaPath,n},evalNested:function(t){var n,i,r=t.mediaPath.concat([this]);for(n=0;n<r.length;n++)i=r[n].features instanceof e.Value?r[n].features.value:r[n].features,r[n]=Array.isArray(i)?i:[i];return this.features=new e.Value(this.permute(r).map(function(t){for(t=t.map(function(t){return t.toCSS?t:new e.Anonymous(t)}),n=t.length-1;n>0;n--)t.splice(n,0,new e.Anonymous("and"));return new e.Expression(t)})),new e.Ruleset([],[])},permute:function(e){if(0===e.length)return[];if(1===e.length)return e[0];for(var t=[],n=this.permute(e.slice(1)),i=0;i<n.length;i++)for(var r=0;r<e[0].length;r++)t.push([e[0][r]].concat(n[i]));return t},bubbleSelectors:function(t){this.rules=[new e.Ruleset(t.slice(0),[this.rules[0]])]}}}(require("../tree")),function(e){e.mixin={},e.mixin.Call=function(t,n,i,r,s){this.selector=new e.Selector(t),this.arguments=n,this.index=i,this.currentFileInfo=r,this.important=s},e.mixin.Call.prototype={type:"MixinCall",accept:function(e){this.selector=e.visit(this.selector),this.arguments=e.visit(this.arguments)},eval:function(t){var n,i,r,s,o,a,l,u,c,h=[],f=!1;for(r=this.arguments&&this.arguments.map(function(e){return{name:e.name,value:e.value.eval(t)}}),s=0;s<t.frames.length;s++)if((n=t.frames[s].find(this.selector)).length>0){for(u=!0,o=0;o<n.length;o++){for(i=n[o],l=!1,a=0;a<t.frames.length;a++)if(!(i instanceof e.mixin.Definition)&&i===(t.frames[a].originalRuleset||t.frames[a])){l=!0;break}if(!l&&i.matchArgs(r,t)){if(!i.matchCondition||i.matchCondition(r,t))try{i instanceof e.mixin.Definition||(i=new e.mixin.Definition("",[],i.rules,null,!1),i.originalRuleset=n[o].originalRuleset||n[o]),Array.prototype.push.apply(h,i.eval(t,r,this.important).rules)}catch(p){throw{message:p.message,index:this.index,filename:this.currentFileInfo.filename,stack:p.stack}}f=!0}}if(f){if(!this.currentFileInfo||!this.currentFileInfo.reference)for(s=0;s<h.length;s++)c=h[s],c.markReferenced&&c.markReferenced();return h}}throw u?{type:"Runtime",message:"No matching definition was found for `"+this.selector.toCSS().trim()+"("+(r?r.map(function(e){var t="";return e.name&&(t+=e.name+":"),t+=e.value.toCSS?e.value.toCSS():"???"}).join(", "):"")+")`",index:this.index,filename:this.currentFileInfo.filename}:{type:"Name",message:this.selector.toCSS().trim()+" is undefined",index:this.index,filename:this.currentFileInfo.filename}}},e.mixin.Definition=function(t,n,i,r,s){this.name=t,this.selectors=[new e.Selector([new e.Element(null,t,this.index,this.currentFileInfo)])],this.params=n,this.condition=r,this.variadic=s,this.arity=n.length,this.rules=i,this._lookups={},this.required=n.reduce(function(e,t){return!t.name||t.name&&!t.value?e+1:e},0),this.parent=e.Ruleset.prototype,this.frames=[]},e.mixin.Definition.prototype={type:"MixinDefinition",accept:function(e){this.params=e.visit(this.params),this.rules=e.visit(this.rules),this.condition=e.visit(this.condition)},variable:function(e){return this.parent.variable.call(this,e)},variables:function(){return this.parent.variables.call(this)},find:function(){return this.parent.find.apply(this,arguments)},rulesets:function(){return this.parent.rulesets.apply(this)},evalParams:function(t,n,i,r){var s,o,a,l,u,c,h,f,p=new e.Ruleset(null,[]),m=this.params.slice(0);if(n=new e.evalEnv(n,[p].concat(n.frames)),i)for(i=i.slice(0),a=0;a<i.length;a++)if(o=i[a],c=o&&o.name){for(h=!1,l=0;l<m.length;l++)if(!r[l]&&c===m[l].name){r[l]=o.value.eval(t),p.rules.unshift(new e.Rule(c,o.value.eval(t))),h=!0;
break}if(h){i.splice(a,1),a--;continue}throw{type:"Runtime",message:"Named argument for "+this.name+" "+i[a].name+" not found"}}for(f=0,a=0;a<m.length;a++)if(!r[a]){if(o=i&&i[f],c=m[a].name)if(m[a].variadic&&i){for(s=[],l=f;l<i.length;l++)s.push(i[l].value.eval(t));p.rules.unshift(new e.Rule(c,new e.Expression(s).eval(t)))}else{if(u=o&&o.value)u=u.eval(t);else{if(!m[a].value)throw{type:"Runtime",message:"wrong number of arguments for "+this.name+" ("+i.length+" for "+this.arity+")"};u=m[a].value.eval(n),p.resetCache()}p.rules.unshift(new e.Rule(c,u)),r[a]=u}if(m[a].variadic&&i)for(l=f;l<i.length;l++)r[l]=i[l].value.eval(t);f++}return p},eval:function(t,n,i){var r,s,o=[],a=this.frames.concat(t.frames),l=this.evalParams(t,new e.evalEnv(t,a),n,o);return l.rules.unshift(new e.Rule("@arguments",new e.Expression(o).eval(t))),r=this.rules.slice(0),s=new e.Ruleset(null,r),s.originalRuleset=this,s=s.eval(new e.evalEnv(t,[this,l].concat(a))),i&&(s=this.parent.makeImportant.apply(s)),s},matchCondition:function(t,n){return this.condition&&!this.condition.eval(new e.evalEnv(n,[this.evalParams(n,new e.evalEnv(n,this.frames.concat(n.frames)),t,[])].concat(this.frames).concat(n.frames)))?!1:!0},matchArgs:function(e,t){var n,i=e&&e.length||0;if(this.variadic){if(i<this.required-1)return!1}else{if(i<this.required)return!1;if(i>this.params.length)return!1}n=Math.min(i,this.arity);for(var r=0;n>r;r++)if(!this.params[r].name&&!this.params[r].variadic&&e[r].value.eval(t).toCSS()!=this.params[r].value.eval(t).toCSS())return!1;return!0}}}(require("../tree")),function(e){e.Negative=function(e){this.value=e},e.Negative.prototype={type:"Negative",accept:function(e){this.value=e.visit(this.value)},genCSS:function(e,t){t.add("-"),this.value.genCSS(e,t)},toCSS:e.toCSS,eval:function(t){return t.isMathOn()?new e.Operation("*",[new e.Dimension(-1),this.value]).eval(t):new e.Negative(this.value.eval(t))}}}(require("../tree")),function(e){e.Operation=function(e,t,n){this.op=e.trim(),this.operands=t,this.isSpaced=n},e.Operation.prototype={type:"Operation",accept:function(e){this.operands=e.visit(this.operands)},eval:function(t){var n,i=this.operands[0].eval(t),r=this.operands[1].eval(t);if(t.isMathOn()){if(i instanceof e.Dimension&&r instanceof e.Color){if("*"!==this.op&&"+"!==this.op)throw{type:"Operation",message:"Can't substract or divide a color from a number"};n=r,r=i,i=n}if(!i.operate)throw{type:"Operation",message:"Operation on an invalid type"};return i.operate(t,this.op,r)}return new e.Operation(this.op,[i,r],this.isSpaced)},genCSS:function(e,t){this.operands[0].genCSS(e,t),this.isSpaced&&t.add(" "),t.add(this.op),this.isSpaced&&t.add(" "),this.operands[1].genCSS(e,t)},toCSS:e.toCSS},e.operate=function(e,t,n,i){switch(t){case"+":return n+i;case"-":return n-i;case"*":return n*i;case"/":return n/i}}}(require("../tree")),function(e){e.Paren=function(e){this.value=e},e.Paren.prototype={type:"Paren",accept:function(e){this.value=e.visit(this.value)},genCSS:function(e,t){t.add("("),this.value.genCSS(e,t),t.add(")")},toCSS:e.toCSS,eval:function(t){return new e.Paren(this.value.eval(t))}}}(require("../tree")),function(e){e.Quoted=function(e,t,n,i,r){this.escaped=n,this.value=t||"",this.quote=e.charAt(0),this.index=i,this.currentFileInfo=r},e.Quoted.prototype={type:"Quoted",genCSS:function(e,t){this.escaped||t.add(this.quote,this.currentFileInfo,this.index),t.add(this.value),this.escaped||t.add(this.quote)},toCSS:e.toCSS,eval:function(t){var n=this,i=this.value.replace(/`([^`]+)`/g,function(i,r){return new e.JavaScript(r,n.index,!0).eval(t).value}).replace(/@\{([\w-]+)\}/g,function(i,r){var s=new e.Variable("@"+r,n.index,n.currentFileInfo).eval(t,!0);return s instanceof e.Quoted?s.value:s.toCSS()});return new e.Quoted(this.quote+i+this.quote,i,this.escaped,this.index,this.currentFileInfo)},compare:function(e){if(!e.toCSS)return-1;var t=this.toCSS(),n=e.toCSS();return t===n?0:n>t?-1:1}}}(require("../tree")),function(e){e.Rule=function(t,n,i,r,s,o,a){this.name=t,this.value=n instanceof e.Value?n:new e.Value([n]),this.important=i?" "+i.trim():"",this.merge=r,this.index=s,this.currentFileInfo=o,this.inline=a||!1,this.variable="@"===t.charAt(0)},e.Rule.prototype={type:"Rule",accept:function(e){this.value=e.visit(this.value)},genCSS:function(e,t){t.add(this.name+(e.compress?":":": "),this.currentFileInfo,this.index);try{this.value.genCSS(e,t)}catch(n){throw n.index=this.index,n.filename=this.currentFileInfo.filename,n}t.add(this.important+(this.inline||e.lastRule&&e.compress?"":";"),this.currentFileInfo,this.index)},toCSS:e.toCSS,eval:function(t){var n=!1;"font"!==this.name||t.strictMath||(n=!0,t.strictMath=!0);try{return new e.Rule(this.name,this.value.eval(t),this.important,this.merge,this.index,this.currentFileInfo,this.inline)}finally{n&&(t.strictMath=!1)}},makeImportant:function(){return new e.Rule(this.name,this.value,"!important",this.merge,this.index,this.currentFileInfo,this.inline)}}}(require("../tree")),function(e){e.Ruleset=function(e,t,n){this.selectors=e,this.rules=t,this._lookups={},this.strictImports=n},e.Ruleset.prototype={type:"Ruleset",accept:function(e){if(this.paths)for(var t=0;t<this.paths.length;t++)this.paths[t]=e.visit(this.paths[t]);else this.selectors=e.visit(this.selectors);this.rules=e.visit(this.rules)},eval:function(t){var n,i,r,s=this.selectors&&this.selectors.map(function(e){return e.eval(t)}),o=new e.Ruleset(s,this.rules.slice(0),this.strictImports);for(o.originalRuleset=this,o.root=this.root,o.firstRoot=this.firstRoot,o.allowImports=this.allowImports,this.debugInfo&&(o.debugInfo=this.debugInfo),t.frames.unshift(o),t.selectors||(t.selectors=[]),t.selectors.unshift(this.selectors),(o.root||o.allowImports||!o.strictImports)&&o.evalImports(t),r=0;r<o.rules.length;r++)o.rules[r]instanceof e.mixin.Definition&&(o.rules[r].frames=t.frames.slice(0));var a=t.mediaBlocks&&t.mediaBlocks.length||0;for(r=0;r<o.rules.length;r++)o.rules[r]instanceof e.mixin.Call&&(n=o.rules[r].eval(t).filter(function(t){return t instanceof e.Rule&&t.variable?!o.variable(t.name):!0}),o.rules.splice.apply(o.rules,[r,1].concat(n)),r+=n.length-1,o.resetCache());for(r=0;r<o.rules.length;r++)i=o.rules[r],i instanceof e.mixin.Definition||(o.rules[r]=i.eval?i.eval(t):i);if(t.frames.shift(),t.selectors.shift(),t.mediaBlocks)for(r=a;r<t.mediaBlocks.length;r++)t.mediaBlocks[r].bubbleSelectors(s);return o},evalImports:function(t){var n,i;for(n=0;n<this.rules.length;n++)this.rules[n]instanceof e.Import&&(i=this.rules[n].eval(t),"number"==typeof i.length?(this.rules.splice.apply(this.rules,[n,1].concat(i)),n+=i.length-1):this.rules.splice(n,1,i),this.resetCache())},makeImportant:function(){return new e.Ruleset(this.selectors,this.rules.map(function(e){return e.makeImportant?e.makeImportant():e}),this.strictImports)},matchArgs:function(e){return!e||0===e.length},matchCondition:function(t,n){var i=this.selectors[this.selectors.length-1];return i.condition&&!i.condition.eval(new e.evalEnv(n,n.frames))?!1:!0},resetCache:function(){this._rulesets=null,this._variables=null,this._lookups={}},variables:function(){return this._variables?this._variables:this._variables=this.rules.reduce(function(t,n){return n instanceof e.Rule&&n.variable===!0&&(t[n.name]=n),t},{})},variable:function(e){return this.variables()[e]},rulesets:function(){return this.rules.filter(function(t){return t instanceof e.Ruleset||t instanceof e.mixin.Definition})},find:function(t,n){n=n||this;var i,r=[],s=t.toCSS();return s in this._lookups?this._lookups[s]:(this.rulesets().forEach(function(s){if(s!==n)for(var o=0;o<s.selectors.length;o++)if(i=t.match(s.selectors[o])){t.elements.length>s.selectors[o].elements.length?Array.prototype.push.apply(r,s.find(new e.Selector(t.elements.slice(1)),n)):r.push(s);break}}),this._lookups[s]=r)},genCSS:function(t,n){var i,r,s,o,a,l=[],u=[],c=!0;t.tabLevel=t.tabLevel||0,this.root||t.tabLevel++;var h=t.compress?"":Array(t.tabLevel+1).join(" "),f=t.compress?"":Array(t.tabLevel).join(" ");for(i=0;i<this.rules.length;i++)o=this.rules[i],o.rules||o instanceof e.Media||o instanceof e.Directive||this.root&&o instanceof e.Comment?u.push(o):l.push(o);if(!this.root){for(s=e.debugInfo(t,this,f),s&&(n.add(s),n.add(f)),i=0;i<this.paths.length;i++){for(a=this.paths[i],t.firstSelector=!0,r=0;r<a.length;r++)a[r].genCSS(t,n),t.firstSelector=!1;i+1<this.paths.length&&n.add(t.compress?",":",\n"+f)}n.add((t.compress?"{":" {\n")+h)}for(i=0;i<l.length;i++)o=l[i],i+1!==l.length||this.root&&0!==u.length&&!this.firstRoot||(t.lastRule=!0),o.genCSS?o.genCSS(t,n):o.value&&n.add(o.value.toString()),t.lastRule?t.lastRule=!1:n.add(t.compress?"":"\n"+h);for(this.root||(n.add(t.compress?"}":"\n"+f+"}"),t.tabLevel--),i=0;i<u.length;i++)l.length&&c&&n.add((t.compress?"":"\n")+(this.root?h:f)),c||n.add((t.compress?"":"\n")+(this.root?h:f)),c=!1,u[i].genCSS(t,n);n.isEmpty()||t.compress||!this.firstRoot||n.add("\n")},toCSS:e.toCSS,markReferenced:function(){for(var e=0;e<this.selectors.length;e++)this.selectors[e].markReferenced()},joinSelectors:function(e,t,n){for(var i=0;i<n.length;i++)this.joinSelector(e,t,n[i])},joinSelector:function(t,n,i){var r,s,o,a,l,u,c,h,f,p,m,d,v,g,b;for(r=0;r<i.elements.length;r++)u=i.elements[r],"&"===u.value&&(a=!0);if(a){for(g=[],l=[[]],r=0;r<i.elements.length;r++)if(u=i.elements[r],"&"!==u.value)g.push(u);else{for(b=[],g.length>0&&this.mergeElementsOnToSelectors(g,l),s=0;s<l.length;s++)if(c=l[s],0===n.length)c.length>0&&(c[0].elements=c[0].elements.slice(0),c[0].elements.push(new e.Element(u.combinator,"",0,u.index,u.currentFileInfo))),b.push(c);else for(o=0;o<n.length;o++)h=n[o],f=[],p=[],d=!0,c.length>0?(f=c.slice(0),v=f.pop(),m=i.createDerived(v.elements.slice(0)),d=!1):m=i.createDerived([]),h.length>1&&(p=p.concat(h.slice(1))),h.length>0&&(d=!1,m.elements.push(new e.Element(u.combinator,h[0].elements[0].value,u.index,u.currentFileInfo)),m.elements=m.elements.concat(h[0].elements.slice(1))),d||f.push(m),f=f.concat(p),b.push(f);l=b,g=[]}for(g.length>0&&this.mergeElementsOnToSelectors(g,l),r=0;r<l.length;r++)l[r].length>0&&t.push(l[r])}else if(n.length>0)for(r=0;r<n.length;r++)t.push(n[r].concat(i));else t.push([i])},mergeElementsOnToSelectors:function(t,n){var i,r;if(0===n.length)return n.push([new e.Selector(t)]),void 0;for(i=0;i<n.length;i++)r=n[i],r.length>0?r[r.length-1]=r[r.length-1].createDerived(r[r.length-1].elements.concat(t)):r.push(new e.Selector(t))}}}(require("../tree")),function(e){e.Selector=function(e,t,n,i,r,s){this.elements=e,this.extendList=t||[],this.condition=n,this.currentFileInfo=r||{},this.isReferenced=s,n||(this.evaldCondition=!0)},e.Selector.prototype={type:"Selector",accept:function(e){this.elements=e.visit(this.elements),this.extendList=e.visit(this.extendList),this.condition=e.visit(this.condition)},createDerived:function(t,n,i){i=null!=i?i:this.evaldCondition;var r=new e.Selector(t,n||this.extendList,this.condition,this.index,this.currentFileInfo,this.isReferenced);return r.evaldCondition=i,r},match:function(e){var t,n,i,r,s=this.elements,o=s.length;if(t=e.elements.slice(e.elements.length&&"&"===e.elements[0].value?1:0),n=t.length,i=Math.min(o,n),0===n||n>o)return!1;for(r=0;i>r;r++)if(s[r].value!==t[r].value)return!1;return!0},eval:function(e){var t=this.condition&&this.condition.eval(e);return this.createDerived(this.elements.map(function(t){return t.eval(e)}),this.extendList.map(function(t){return t.eval(e)}),t)},genCSS:function(e,t){var n,i;if(e&&e.firstSelector||""!==this.elements[0].combinator.value||t.add(" ",this.currentFileInfo,this.index),!this._css)for(n=0;n<this.elements.length;n++)i=this.elements[n],i.genCSS(e,t)},toCSS:e.toCSS,markReferenced:function(){this.isReferenced=!0},getIsReferenced:function(){return!this.currentFileInfo.reference||this.isReferenced},getIsOutput:function(){return this.evaldCondition}}}(require("../tree")),function(e){e.UnicodeDescriptor=function(e){this.value=e},e.UnicodeDescriptor.prototype={type:"UnicodeDescriptor",genCSS:function(e,t){t.add(this.value)},toCSS:e.toCSS,eval:function(){return this}}}(require("../tree")),function(e){e.URL=function(e,t){this.value=e,this.currentFileInfo=t},e.URL.prototype={type:"Url",accept:function(e){this.value=e.visit(this.value)},genCSS:function(e,t){t.add("url("),this.value.genCSS(e,t),t.add(")")},toCSS:e.toCSS,eval:function(t){var n,i=this.value.eval(t);return n=this.currentFileInfo&&this.currentFileInfo.rootpath,n&&"string"==typeof i.value&&t.isPathRelative(i.value)&&(i.quote||(n=n.replace(/[\(\)'"\s]/g,function(e){return"\\"+e})),i.value=n+i.value),i.value=t.normalizePath(i.value),new e.URL(i,null)}}}(require("../tree")),function(e){e.Value=function(e){this.value=e},e.Value.prototype={type:"Value",accept:function(e){this.value=e.visit(this.value)},eval:function(t){return 1===this.value.length?this.value[0].eval(t):new e.Value(this.value.map(function(e){return e.eval(t)}))},genCSS:function(e,t){var n;for(n=0;n<this.value.length;n++)this.value[n].genCSS(e,t),n+1<this.value.length&&t.add(e&&e.compress?",":", ")},toCSS:e.toCSS}}(require("../tree")),function(e){e.Variable=function(e,t,n){this.name=e,this.index=t,this.currentFileInfo=n},e.Variable.prototype={type:"Variable",eval:function(t){var n,i,r=this.name;if(0===r.indexOf("@@")&&(r="@"+new e.Variable(r.slice(1)).eval(t).value),this.evaluating)throw{type:"Name",message:"Recursive variable definition for "+r,filename:this.currentFileInfo.file,index:this.index};if(this.evaluating=!0,n=e.find(t.frames,function(e){return(i=e.variable(r))?i.value.eval(t):void 0}))return this.evaluating=!1,n;throw{type:"Name",message:"variable "+r+" is undefined",filename:this.currentFileInfo.filename,index:this.index}}}}(require("../tree")),function(e){var t=["paths","optimization","files","contents","relativeUrls","rootpath","strictImports","insecure","dumpLineNumbers","compress","processImports","syncImport","javascriptEnabled","mime","useFileCache","currentFileInfo"];e.parseEnv=function(e){if(i(e,this,t),this.contents||(this.contents={}),this.files||(this.files={}),!this.currentFileInfo){var n=e&&e.filename||"input",r=n.replace(/[^\/\\]*$/,"");e&&(e.filename=null),this.currentFileInfo={filename:n,relativeUrls:this.relativeUrls,rootpath:e&&e.rootpath||"",currentDirectory:r,entryPath:r,rootFilename:n}}};var n=["silent","verbose","compress","yuicompress","ieCompat","strictMath","strictUnits","cleancss","sourceMap","importMultiple"];e.evalEnv=function(e,t){i(e,this,n),this.frames=t||[]},e.evalEnv.prototype.inParenthesis=function(){this.parensStack||(this.parensStack=[]),this.parensStack.push(!0)},e.evalEnv.prototype.outOfParenthesis=function(){this.parensStack.pop()},e.evalEnv.prototype.isMathOn=function(){return this.strictMath?this.parensStack&&this.parensStack.length:!0},e.evalEnv.prototype.isPathRelative=function(e){return!/^(?:[a-z-]+:|\/)/.test(e)},e.evalEnv.prototype.normalizePath=function(e){var t,n=e.split("/").reverse();for(e=[];0!==n.length;)switch(t=n.pop()){case".":break;case"..":0===e.length||".."===e[e.length-1]?e.push(t):e.pop();break;default:e.push(t)}return e.join("/")};var i=function(e,t,n){if(e)for(var i=0;i<n.length;i++)e.hasOwnProperty(n[i])&&(t[n[i]]=e[n[i]])}}(require("./tree")),function(e){e.visitor=function(e){this._implementation=e},e.visitor.prototype={visit:function(e){if(e instanceof Array)return this.visitArray(e);if(!e||!e.type)return e;var t,n,i="visit"+e.type,r=this._implementation[i];return r&&(t={visitDeeper:!0},n=r.call(this._implementation,e,t),this._implementation.isReplacing&&(e=n)),(!t||t.visitDeeper)&&e&&e.accept&&e.accept(this),i+="Out",this._implementation[i]&&this._implementation[i](e),e},visitArray:function(e){var t,n=[];for(t=0;t<e.length;t++){var i=this.visit(e[t]);i instanceof Array?(i=this.flatten(i),n=n.concat(i)):n.push(i)}return this._implementation.isReplacing?n:e},doAccept:function(e){e.accept(this)},flatten:function(e,t){return e.reduce(this.flattenReduce.bind(this),t||[])},flattenReduce:function(e,t){return t instanceof Array?e=this.flatten(t,e):e.push(t),e}}}(require("./tree")),function(e){e.importVisitor=function(t,n,i){this._visitor=new e.visitor(this),this._importer=t,this._finish=n,this.env=i||new e.evalEnv,this.importCount=0},e.importVisitor.prototype={isReplacing:!0,run:function(e){var t;try{this._visitor.visit(e)}catch(n){t=n}this.isFinished=!0,0===this.importCount&&this._finish(t)},visitImport:function(t,n){var i,r=this,s=t.options.inline;if(!t.css||s){try{i=t.evalForImport(this.env)}catch(o){o.filename||(o.index=t.index,o.filename=t.currentFileInfo.filename),t.css=!0,t.error=o}if(i&&(!i.css||s)){t=i,this.importCount++;var a=new e.evalEnv(this.env,this.env.frames.slice(0));t.options.multiple&&(a.importMultiple=!0),this._importer.push(t.getPath(),t.currentFileInfo,t.options,function(n,i,o,l){n&&!n.filename&&(n.index=t.index,n.filename=t.currentFileInfo.filename),o&&!a.importMultiple&&(t.skip=o);var u=function(e){r.importCount--,0===r.importCount&&r.isFinished&&r._finish(e)};return!i||(t.root=i,t.importedFilename=l,s||t.skip)?(u(),void 0):(new e.importVisitor(r._importer,u,a).run(i),void 0)})}}return n.visitDeeper=!1,t},visitRule:function(e,t){return t.visitDeeper=!1,e},visitDirective:function(e){return this.env.frames.unshift(e),e},visitDirectiveOut:function(){this.env.frames.shift()},visitMixinDefinition:function(e){return this.env.frames.unshift(e),e},visitMixinDefinitionOut:function(){this.env.frames.shift()},visitRuleset:function(e){return this.env.frames.unshift(e),e},visitRulesetOut:function(){this.env.frames.shift()},visitMedia:function(e){return this.env.frames.unshift(e.ruleset),e},visitMediaOut:function(){this.env.frames.shift()}}}(require("./tree")),function(e){e.joinSelectorVisitor=function(){this.contexts=[[]],this._visitor=new e.visitor(this)},e.joinSelectorVisitor.prototype={run:function(e){return this._visitor.visit(e)},visitRule:function(e,t){t.visitDeeper=!1},visitMixinDefinition:function(e,t){t.visitDeeper=!1},visitRuleset:function(e){var t=this.contexts[this.contexts.length-1],n=[];this.contexts.push(n),e.root||(e.selectors=e.selectors.filter(function(e){return e.getIsOutput()}),0===e.selectors.length&&(e.rules.length=0),e.joinSelectors(n,t,e.selectors),e.paths=n)},visitRulesetOut:function(){this.contexts.length=this.contexts.length-1},visitMedia:function(e){var t=this.contexts[this.contexts.length-1];e.rules[0].root=0===t.length||t[0].multiMedia}}}(require("./tree")),function(e){e.toCSSVisitor=function(t){this._visitor=new e.visitor(this),this._env=t},e.toCSSVisitor.prototype={isReplacing:!0,run:function(e){return this._visitor.visit(e)},visitRule:function(e){return e.variable?[]:e},visitMixinDefinition:function(){return[]},visitExtend:function(){return[]},visitComment:function(e){return e.isSilent(this._env)?[]:e},visitMedia:function(e,t){return e.accept(this._visitor),t.visitDeeper=!1,e.rules.length?e:[]},visitDirective:function(t){if(t.currentFileInfo.reference&&!t.isReferenced)return[];if("@charset"===t.name){if(this.charset){if(t.debugInfo){var n=new e.Comment("/* "+t.toCSS(this._env).replace(/\n/g,"")+" */\n");return n.debugInfo=t.debugInfo,this._visitor.visit(n)}return[]}this.charset=!0}return t},checkPropertiesInRoot:function(t){for(var n,i=0;i<t.length;i++)if(n=t[i],n instanceof e.Rule&&!n.variable)throw{message:"properties must be inside selector blocks, they cannot be in the root.",index:n.index,filename:n.currentFileInfo?n.currentFileInfo.filename:null}},visitRuleset:function(t,n){var i,r=[];if(t.firstRoot&&this.checkPropertiesInRoot(t.rules),t.root)t.accept(this._visitor),n.visitDeeper=!1,(t.firstRoot||t.rules.length>0)&&r.splice(0,0,t);else{t.paths=t.paths.filter(function(t){var n;for(" "===t[0].elements[0].combinator.value&&(t[0].elements[0].combinator=new e.Combinator("")),n=0;n<t.length;n++)return t[n].getIsReferenced()&&t[n].getIsOutput()?!0:!1});for(var s=0;s<t.rules.length;s++)i=t.rules[s],i.rules&&(r.push(this._visitor.visit(i)),t.rules.splice(s,1),s--);t.rules.length>0&&t.accept(this._visitor),n.visitDeeper=!1,this._mergeRules(t.rules),this._removeDuplicateRules(t.rules),t.rules.length>0&&t.paths.length>0&&r.splice(0,0,t)}return 1===r.length?r[0]:r},_removeDuplicateRules:function(t){var n,i,r,s={};for(r=t.length-1;r>=0;r--)if(i=t[r],i instanceof e.Rule)if(s[i.name]){n=s[i.name],n instanceof e.Rule&&(n=s[i.name]=[s[i.name].toCSS(this._env)]);var o=i.toCSS(this._env);-1!==n.indexOf(o)?t.splice(r,1):n.push(o)}else s[i.name]=i},_mergeRules:function(t){for(var n,i,r,s={},o=0;o<t.length;o++)i=t[o],i instanceof e.Rule&&i.merge&&(r=[i.name,i.important?"!":""].join(","),s[r]?t.splice(o--,1):n=s[r]=[],n.push(i));Object.keys(s).map(function(t){n=s[t],n.length>1&&(i=n[0],i.value=new e.Value(n.map(function(e){return e.value})))})}}}(require("./tree")),function(e){e.extendFinderVisitor=function(){this._visitor=new e.visitor(this),this.contexts=[],this.allExtendsStack=[[]]},e.extendFinderVisitor.prototype={run:function(e){return e=this._visitor.visit(e),e.allExtends=this.allExtendsStack[0],e},visitRule:function(e,t){t.visitDeeper=!1},visitMixinDefinition:function(e,t){t.visitDeeper=!1},visitRuleset:function(t){if(!t.root){var n,i,r,s,o=[];for(n=0;n<t.rules.length;n++)t.rules[n]instanceof e.Extend&&(o.push(t.rules[n]),t.extendOnEveryPath=!0);for(n=0;n<t.paths.length;n++){var a=t.paths[n],l=a[a.length-1];for(s=l.extendList.slice(0).concat(o).map(function(e){return e.clone()}),i=0;i<s.length;i++)this.foundExtends=!0,r=s[i],r.findSelfSelectors(a),r.ruleset=t,0===i&&(r.firstExtendOnThisSelectorPath=!0),this.allExtendsStack[this.allExtendsStack.length-1].push(r)}this.contexts.push(t.selectors)}},visitRulesetOut:function(e){e.root||(this.contexts.length=this.contexts.length-1)},visitMedia:function(e){e.allExtends=[],this.allExtendsStack.push(e.allExtends)},visitMediaOut:function(){this.allExtendsStack.length=this.allExtendsStack.length-1},visitDirective:function(e){e.allExtends=[],this.allExtendsStack.push(e.allExtends)},visitDirectiveOut:function(){this.allExtendsStack.length=this.allExtendsStack.length-1}},e.processExtendsVisitor=function(){this._visitor=new e.visitor(this)},e.processExtendsVisitor.prototype={run:function(t){var n=new e.extendFinderVisitor;return n.run(t),n.foundExtends?(t.allExtends=t.allExtends.concat(this.doExtendChaining(t.allExtends,t.allExtends)),this.allExtendsStack=[t.allExtends],this._visitor.visit(t)):t},doExtendChaining:function(t,n,i){var r,s,o,a,l,u,c,h,f=[],p=this;for(i=i||0,r=0;r<t.length;r++)for(s=0;s<n.length;s++)u=t[r],c=n[s],this.inInheritanceChain(c,u)||(l=[c.selfSelectors[0]],o=p.findMatch(u,l),o.length&&u.selfSelectors.forEach(function(t){a=p.extendSelector(o,l,t),h=new e.Extend(c.selector,c.option,0),h.selfSelectors=a,a[a.length-1].extendList=[h],f.push(h),h.ruleset=c.ruleset,h.parents=[c,u],c.firstExtendOnThisSelectorPath&&(h.firstExtendOnThisSelectorPath=!0,c.ruleset.paths.push(a))}));if(f.length){if(this.extendChainCount++,i>100){var m="{unable to calculate}",d="{unable to calculate}";try{m=f[0].selfSelectors[0].toCSS(),d=f[0].selector.toCSS()}catch(v){}throw{message:"extend circular reference detected. One of the circular extends is currently:"+m+":extend("+d+")"}}return f.concat(p.doExtendChaining(f,n,i+1))}return f},inInheritanceChain:function(e,t){if(e===t)return!0;if(t.parents){if(this.inInheritanceChain(e,t.parents[0]))return!0;if(this.inInheritanceChain(e,t.parents[1]))return!0}return!1},visitRule:function(e,t){t.visitDeeper=!1},visitMixinDefinition:function(e,t){t.visitDeeper=!1},visitSelector:function(e,t){t.visitDeeper=!1},visitRuleset:function(e){if(!e.root){var t,n,i,r,s=this.allExtendsStack[this.allExtendsStack.length-1],o=[],a=this;for(i=0;i<s.length;i++)for(n=0;n<e.paths.length;n++)r=e.paths[n],e.extendOnEveryPath||r[r.length-1].extendList.length||(t=this.findMatch(s[i],r),t.length&&s[i].selfSelectors.forEach(function(e){o.push(a.extendSelector(t,r,e))}));e.paths=e.paths.concat(o)}},findMatch:function(e,t){var n,i,r,s,o,a,l,u=this,c=e.selector.elements,h=[],f=[];for(n=0;n<t.length;n++)for(i=t[n],r=0;r<i.elements.length;r++)for(s=i.elements[r],(e.allowBefore||0===n&&0===r)&&h.push({pathIndex:n,index:r,matched:0,initialCombinator:s.combinator}),a=0;a<h.length;a++)l=h[a],o=s.combinator.value,""===o&&0===r&&(o=" "),!u.isElementValuesEqual(c[l.matched].value,s.value)||l.matched>0&&c[l.matched].combinator.value!==o?l=null:l.matched++,l&&(l.finished=l.matched===c.length,l.finished&&!e.allowAfter&&(r+1<i.elements.length||n+1<t.length)&&(l=null)),l?l.finished&&(l.length=c.length,l.endPathIndex=n,l.endPathElementIndex=r+1,h.length=0,f.push(l)):(h.splice(a,1),a--);return f},isElementValuesEqual:function(t,n){if("string"==typeof t||"string"==typeof n)return t===n;if(t instanceof e.Attribute)return t.op!==n.op||t.key!==n.key?!1:t.value&&n.value?(t=t.value.value||t.value,n=n.value.value||n.value,t===n):t.value||n.value?!1:!0;if(t=t.value,n=n.value,t instanceof e.Selector){if(!(n instanceof e.Selector)||t.elements.length!==n.elements.length)return!1;for(var i=0;i<t.elements.length;i++){if(t.elements[i].combinator.value!==n.elements[i].combinator.value&&(0!==i||(t.elements[i].combinator.value||" ")!==(n.elements[i].combinator.value||" ")))return!1;if(!this.isElementValuesEqual(t.elements[i].value,n.elements[i].value))return!1}return!0}return!1},extendSelector:function(t,n,i){var r,s,o,a,l,u=0,c=0,h=[];for(r=0;r<t.length;r++)a=t[r],s=n[a.pathIndex],o=new e.Element(a.initialCombinator,i.elements[0].value,i.elements[0].index,i.elements[0].currentFileInfo),a.pathIndex>u&&c>0&&(h[h.length-1].elements=h[h.length-1].elements.concat(n[u].elements.slice(c)),c=0,u++),l=s.elements.slice(c,a.index).concat([o]).concat(i.elements.slice(1)),u===a.pathIndex&&r>0?h[h.length-1].elements=h[h.length-1].elements.concat(l):(h=h.concat(n.slice(u,a.pathIndex)),h.push(new e.Selector(l))),u=a.endPathIndex,c=a.endPathElementIndex,c>=n[u].elements.length&&(c=0,u++);return u<n.length&&c>0&&(h[h.length-1].elements=h[h.length-1].elements.concat(n[u].elements.slice(c)),u++),h=h.concat(n.slice(u,n.length))},visitRulesetOut:function(){},visitMedia:function(e){var t=e.allExtends.concat(this.allExtendsStack[this.allExtendsStack.length-1]);t=t.concat(this.doExtendChaining(t,e.allExtends)),this.allExtendsStack.push(t)},visitMediaOut:function(){this.allExtendsStack.length=this.allExtendsStack.length-1},visitDirective:function(e){var t=e.allExtends.concat(this.allExtendsStack[this.allExtendsStack.length-1]);t=t.concat(this.doExtendChaining(t,e.allExtends)),this.allExtendsStack.push(t)},visitDirectiveOut:function(){this.allExtendsStack.length=this.allExtendsStack.length-1}}}(require("./tree")),function(e){e.sourceMapOutput=function(e){this._css=[],this._rootNode=e.rootNode,this._writeSourceMap=e.writeSourceMap,this._contentsMap=e.contentsMap,this._sourceMapFilename=e.sourceMapFilename,this._outputFilename=e.outputFilename,this._sourceMapBasepath=e.sourceMapBasepath,this._sourceMapRootpath=e.sourceMapRootpath,this._outputSourceFiles=e.outputSourceFiles,this._sourceMapGeneratorConstructor=e.sourceMapGenerator||require("source-map").SourceMapGenerator,this._sourceMapRootpath&&"/"!==this._sourceMapRootpath.charAt(this._sourceMapRootpath.length-1)&&(this._sourceMapRootpath+="/"),this._lineNumber=0,this._column=0},e.sourceMapOutput.prototype.normalizeFilename=function(e){return this._sourceMapBasepath&&0===e.indexOf(this._sourceMapBasepath)&&(e=e.substring(this._sourceMapBasepath.length),("\\"===e.charAt(0)||"/"===e.charAt(0))&&(e=e.substring(1))),(this._sourceMapRootpath||"")+e.replace(/\\/g,"/")},e.sourceMapOutput.prototype.add=function(e,t,n,i){if(e){var r,s,o,a,l;if(t){var u=this._contentsMap[t.filename].substring(0,n);s=u.split("\n"),a=s[s.length-1]}if(r=e.split("\n"),o=r[r.length-1],t)if(i)for(l=0;l<r.length;l++)this._sourceMapGenerator.addMapping({generated:{line:this._lineNumber+l+1,column:0===l?this._column:0},original:{line:s.length+l,column:0===l?a.length:0},source:this.normalizeFilename(t.filename)});else this._sourceMapGenerator.addMapping({generated:{line:this._lineNumber+1,column:this._column},original:{line:s.length,column:a.length},source:this.normalizeFilename(t.filename)});1===r.length?this._column+=o.length:(this._lineNumber+=r.length-1,this._column=o.length),this._css.push(e)}},e.sourceMapOutput.prototype.isEmpty=function(){return 0===this._css.length},e.sourceMapOutput.prototype.toCSS=function(e){if(this._sourceMapGenerator=new this._sourceMapGeneratorConstructor({file:this._outputFilename,sourceRoot:null}),this._outputSourceFiles)for(var t in this._contentsMap)this._sourceMapGenerator.setSourceContent(this.normalizeFilename(t),this._contentsMap[t]);if(this._rootNode.genCSS(e,this),this._css.length>0){var n,i=JSON.stringify(this._sourceMapGenerator.toJSON());this._sourceMapFilename&&(n=this.normalizeFilename(this._sourceMapFilename)),this._writeSourceMap?this._writeSourceMap(i):n="data:application/json,"+encodeURIComponent(i),n&&this._css.push("/*# sourceMappingURL="+n+" */")}return this._css.join("")}}(require("./tree"));var isFileProtocol=/^(file|chrome(-extension)?|resource|qrc|app):/.test(location.protocol);less.env=less.env||("127.0.0.1"==location.hostname||"0.0.0.0"==location.hostname||"localhost"==location.hostname||location.port.length>0||isFileProtocol?"development":"production");var logLevel={info:2,errors:1,none:0};if(less.logLevel="undefined"!=typeof less.logLevel?less.logLevel:logLevel.info,less.async=less.async||!1,less.fileAsync=less.fileAsync||!1,less.poll=less.poll||(isFileProtocol?1e3:1500),less.functions)for(var func in less.functions)less.tree.functions[func]=less.functions[func];var dumpLineNumbers=/!dumpLineNumbers:(comments|mediaquery|all)/.exec(location.hash);dumpLineNumbers&&(less.dumpLineNumbers=dumpLineNumbers[1]);var typePattern=/^text\/(x-)?less$/,cache=null,fileCache={};if(less.watch=function(){return less.watchMode||(less.env="development",initRunningMode()),this.watchMode=!0},less.unwatch=function(){return clearInterval(less.watchTimer),this.watchMode=!1},/!watch/.test(location.hash)&&less.watch(),"development"!=less.env)try{cache="undefined"==typeof window.localStorage?null:window.localStorage}catch(_){}var links=document.getElementsByTagName("link");less.sheets=[];for(var i=0;i<links.length;i++)("stylesheet/less"===links[i].rel||links[i].rel.match(/stylesheet/)&&links[i].type.match(typePattern))&&less.sheets.push(links[i]);less.modifyVars=function(e){var t="";for(var n in e)t+=("@"===n.slice(0,1)?"":"@")+n+": "+(";"===e[n].slice(-1)?e[n]:e[n]+";");less.refresh(!1,t)},less.refresh=function(e,t){var n,i;n=i=new Date,loadStyleSheets(function(e,t,r,s,o){return e?error(e,s.href):(o.local?log("loading "+s.href+" from cache.",logLevel.info):(log("parsed "+s.href+" successfully.",logLevel.info),createCSS(t.toCSS(less),s,o.lastModified)),log("css for "+s.href+" generated in "+(new Date-i)+"ms",logLevel.info),0===o.remaining&&log("css generated in "+(new Date-n)+"ms",logLevel.info),i=new Date,void 0)},e,t),loadStyles(t)},less.refreshStyles=loadStyles,less.Parser.fileLoader=loadFile,less.refresh("development"===less.env),"function"==typeof define&&define.amd&&define(function(){return less});
@color: orange;
.radius(@px:5px){
border-radius: @px;
}
h1 {
a{
color:@color;
}
}
p {
padding:10px;
.radius();
background-color: @color;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment