diff --git a/server/documents/index.html.eco b/server/documents/index.html.eco index b97533dc8..d5b8d51a5 100755 --- a/server/documents/index.html.eco +++ b/server/documents/index.html.eco @@ -285,7 +285,7 @@ type : 'Semantic'

- Divider + Divider

diff --git a/server/files/javascript/library/less.js b/server/files/javascript/library/less.js index c49e6a5ed..24a420f86 100755 --- a/server/files/javascript/library/less.js +++ b/server/files/javascript/library/less.js @@ -1,3 +1,4 @@ +/* Custom compiled 2.1 to remove onReady processing */ !function(a){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=a();else if("function"==typeof define&&define.amd)define([],a);else{var b;"undefined"!=typeof window?b=window:"undefined"!=typeof global?b=global:"undefined"!=typeof self&&(b=self),b.less=a()}}(function(){return function d(a,b,c){function e(g,h){if(!b[g]){if(!a[g]){var i="function"==typeof require&&require;if(!h&&i)return i(g,!0);if(f)return f(g,!0);var j=new Error("Cannot find module '"+g+"'");throw j.code="MODULE_NOT_FOUND",j}var k=b[g]={exports:{}};a[g][0].call(k.exports,function(b){var c=a[g][1][b];return e(c?c:b)},k,k.exports,d,a,b,c)}return b[g].exports}for(var f="function"==typeof require&&require,g=0;g0||b.isFileProtocol?"development":"production");var c=/!dumpLineNumbers:(comments|mediaquery|all)/.exec(a.location.hash);c&&(b.dumpLineNumbers=c[1]),void 0===b.useFileCache&&(b.useFileCache=!0)}},{"./browser":3,"./utils":9}],2:[function(a,b){a("promise/polyfill.js");var d=window.less||{};a("./add-default-options")(window,d);var e=b.exports=a("./index")(window,d);/!watch/.test(window.location.hash)&&e.watch(),e.pageLoadFinished=e.registerStylesheets()},{"./add-default-options":1,"./index":7,"promise/polyfill.js":void 0}],3:[function(a,b){var d=a("./utils");b.exports={createCSS:function(a,b,c){var e=c.href||"",f="less:"+(c.title||d.extractId(e)),g=a.getElementById(f),h=!1,i=a.createElement("style");i.setAttribute("type","text/css"),c.media&&i.setAttribute("media",c.media),i.id=f,i.styleSheet||(i.appendChild(a.createTextNode(b)),h=null!==g&&g.childNodes.length>0&&i.childNodes.length>0&&g.firstChild.nodeValue===i.firstChild.nodeValue);var j=a.getElementsByTagName("head")[0];if(null===g||h===!1){var k=c&&c.nextSibling||null;k?k.parentNode.insertBefore(i,k):j.appendChild(i)}if(g&&h===!1&&g.parentNode.removeChild(g),i.styleSheet)try{i.styleSheet.cssText=b}catch(l){throw new Error("Couldn't reassign styleSheet.cssText.")}},currentScript:function(a){var b=a.document;return b.currentScript||function(){var a=b.getElementsByTagName("script");return a[a.length-1]}()}}},{"./utils":9}],4:[function(a,b){b.exports=function(a,b,c){var d=null;if("development"!==b.env)try{d="undefined"==typeof a.localStorage?null:a.localStorage}catch(e){}return{setCSS:function(a,b,e){if(d){c.info("saving "+a+" to cache.");try{d.setItem(a,e),d.setItem(a+":timestamp",b)}catch(f){c.error("failed to save")}}},getCSS:function(a,b){var c=d&&d.getItem(a),e=d&&d.getItem(a+":timestamp");return e&&b.lastModified&&new Date(b.lastModified).valueOf()===new Date(e).valueOf()?c:void 0}}}},{}],5:[function(a,b){var d=a("./utils"),e=a("./browser");b.exports=function(a,b,c){function f(b,f){var j,k,g="less-error-message:"+d.extractId(f||""),h='
  • {content}
  • ',i=a.document.createElement("div"),l=[],m=b.filename||f,n=m.match(/([^\/]+(\?.*)?)$/)[1];i.id=g,i.className="less-error-message",k="

    "+(b.type||"Syntax")+"Error: "+(b.message||"There is an error in your .less file")+"

    "+'

    in '+n+" ";var o=function(a,b,c){void 0!==a.extract[b]&&l.push(h.replace(/\{line\}/,(parseInt(a.line,10)||0)+(b-1)).replace(/\{class\}/,c).replace(/\{content\}/,a.extract[b]))};b.extract&&(o(b,0,""),o(b,1,"line"),o(b,2,""),k+="on line "+b.line+", column "+(b.column+1)+":

    "+"
      "+l.join("")+"
    "),b.stack&&(b.extract||c.logLevel>=4)&&(k+="
    Stack Trace
    "+b.stack.split("\n").slice(1).join("
    ")),i.innerHTML=k,e.createCSS(a.document,[".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"}),i.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"===c.env&&(j=setInterval(function(){var b=a.document,c=b.body;c&&(b.getElementById(g)?c.replaceChild(i,b.getElementById(g)):c.insertBefore(i,c.firstChild),clearInterval(j))},10))}function g(a,b){c.errorReporting&&"html"!==c.errorReporting?"console"===c.errorReporting?k(a,b):"function"==typeof c.errorReporting&&c.errorReporting("add",a,b):f(a,b)}function h(b){var c=a.document.getElementById("less-error-message:"+d.extractId(b));c&&c.parentNode.removeChild(c)}function i(){}function j(a){c.errorReporting&&"html"!==c.errorReporting?"console"===c.errorReporting?i(a):"function"==typeof c.errorReporting&&c.errorReporting("remove",a):h(a)}function k(a,d){var e="{line} {content}",f=a.filename||d,g=[],h=(a.type||"Syntax")+"Error: "+(a.message||"There is an error in your .less file")+" in "+f+" ",i=function(a,b,c){void 0!==a.extract[b]&&g.push(e.replace(/\{line\}/,(parseInt(a.line,10)||0)+(b-1)).replace(/\{class\}/,c).replace(/\{content\}/,a.extract[b]))};a.extract&&(i(a,0,""),i(a,1,"line"),i(a,2,""),h+="on line "+a.line+", column "+(a.column+1)+":\n"+g.join("\n")),a.stack&&(a.extract||c.logLevel>=4)&&(h+="\nStack Trace\n"+a.stack),b.logger.error(h)}return{add:g,remove:j}}},{"./browser":3,"./utils":9}],6:[function(a,b){b.exports=function(b,c){function f(){if(window.XMLHttpRequest&&!("file:"===window.location.protocol&&"ActiveXObject"in window))return new XMLHttpRequest;try{return new ActiveXObject("Microsoft.XMLHTTP")}catch(a){return c.error("browser doesn't support AJAX."),null}}var d=a("../less/environment/abstract-file-manager.js"),e={},g=function(){};return g.prototype=new d,g.prototype.alwaysMakePathsAbsolute=function(){return!0},g.prototype.join=function(a,b){return a?this.extractUrlParts(b,a).path:b},g.prototype.doXHR=function(a,d,e,g){function j(b,c,d){b.status>=200&&b.status<300?c(b.responseText,b.getResponseHeader("Last-Modified")):"function"==typeof d&&d(b.status,a)}var h=f(),i=b.isFileProtocol?b.fileAsync:b.async;"function"==typeof h.overrideMimeType&&h.overrideMimeType("text/css"),c.debug("XHR: Getting '"+a+"'"),h.open("GET",a,i),h.setRequestHeader("Accept",d||"text/x-less, text/css; q=0.9, */*; q=0.5"),h.send(null),b.isFileProtocol&&!b.fileAsync?0===h.status||h.status>=200&&h.status<300?e(h.responseText):g(h.status,a):i?h.onreadystatechange=function(){4==h.readyState&&j(h,e,g)}:j(h,e,g)},g.prototype.supports=function(){return!0},g.prototype.clearFileCache=function(){e={}},g.prototype.loadFile=function(a,b,c,d,f){b&&!this.isPathAbsolute(a)&&(a=b+a),c=c||{};var g=this.extractUrlParts(a,window.location.href),h=g.url;if(c.useFileCache&&e[h])try{var i=e[h];f(null,{contents:i,filename:h,webInfo:{lastModified:new Date}})}catch(j){f({filename:h,message:"Error loading file "+h+" error was "+j.message})}else this.doXHR(h,c.mime,function(a,b){e[h]=a,f(null,{contents:a,filename:h,webInfo:{lastModified:b}})},function(a,b){f({type:"File",message:"'"+b+"' wasn't found ("+a+")",href:h})})},g}},{"../less/environment/abstract-file-manager.js":14}],7:[function(a,b){var d=a("./utils").addDataAttr,e=a("./browser");b.exports=function(c,f){function o(a){return f.postProcessor&&"function"==typeof f.postProcessor&&(a=f.postProcessor.call(a,a)||a),a}function p(a){var b={};for(var c in a)a.hasOwnProperty(c)&&(b[c]=a[c]);return b}function q(a,b){var c=Array.prototype.slice.call(arguments,2);return function(){var d=c.concat(Array.prototype.slice.call(arguments,0));return a.apply(b,d)}}function r(a){for(var c,b=g.getElementsByTagName("style"),d=0;d=c&&console.log(a)},info:function(a){b.logLevel>=d&&console.log(a)},warn:function(a){b.logLevel>=e&&console.warn(a)},error:function(a){b.logLevel>=f&&console.error(a)}}]);for(var g=0;g0&&(a=a.slice(0,b)),b=a.lastIndexOf("/"),0>b&&(b=a.lastIndexOf("\\")),0>b?"":a.slice(0,b+1)},d.prototype.tryAppendLessExtension=function(a){return/(\.[a-z]*$)|([\?;].*)$/.test(a)?a:a+".less"},d.prototype.supportsSync=function(){return!1},d.prototype.alwaysMakePathsAbsolute=function(){return!1},d.prototype.isPathAbsolute=function(a){return/^(?:[a-z-]+:|\/|\\)/i.test(a)},d.prototype.join=function(a,b){return a?a+b:b},d.prototype.pathDiff=function(a,b){var e,f,g,h,c=this.extractUrlParts(a),d=this.extractUrlParts(b),i="";if(c.hostPart!==d.hostPart)return"";for(f=Math.max(d.directories.length,c.directories.length),e=0;f>e&&d.directories[e]===c.directories[e];e++);for(h=d.directories.slice(e),g=c.directories.slice(e),e=0;e0&&(f.splice(g-1,2),g-=2)}return e.hostPart=d[1],e.directories=f,e.path=(d[1]||"")+f.join("/"),e.fileUrl=e.path+(d[4]||""),e.url=e.fileUrl+(d[5]||""),e},b.exports=d},{}],15:[function(a,b){var d=function(a,b){this.fileManagers=b||[],a=a||{};for(var c=["encodeBase64","mimeLookup","charsetLookup","getSourceMapGenerator"],d=[],e=d.concat(c),f=0;f=0;g--){var h=f[g];if(h[e?"supportsSync":"supports"](a,b,c,d))return h}return null},d.prototype.addFileManager=function(a){this.fileManagers.push(a)},d.prototype.clearFileManagers=function(){this.fileManagers=[]},b.exports=d},{}],16:[function(a){function f(a,b,c){var f,h,i,j,e=b.alpha,g=c.alpha,k=[];i=g+e*(1-g);for(var l=0;3>l;l++)f=b.rgb[l]/255,h=c.rgb[l]/255,j=a(f,h),i&&(j=(g*h+e*(f-g*(f+h-j)))/i),k[l]=255*j;return new d(k,i)}var d=a("../tree/color"),e=a("./function-registry"),g={multiply:function(a,b){return a*b},screen:function(a,b){return a+b-a*b},overlay:function(a,b){return a*=2,1>=a?g.multiply(a,b):g.screen(a-1,b)},softlight:function(a,b){var c=1,d=a;return b>.5&&(d=1,c=a>.25?Math.sqrt(a):((16*a-12)*a+4)*a),a-(1-2*b)*d*(c-a)},hardlight:function(a,b){return g.overlay(b,a)},difference:function(a,b){return Math.abs(a-b)},exclusion:function(a,b){return a+b-2*a*b},average:function(a,b){return(a+b)/2},negation:function(a,b){return 1-Math.abs(a+b-1)}};for(var h in g)g.hasOwnProperty(h)&&(f[h]=f.bind(null,g[h]));e.addMultiple(f)},{"../tree/color":46,"./function-registry":21}],17:[function(a){function j(a){return Math.min(1,Math.max(0,a))}function k(a){return i.hsla(a.h,a.s,a.l,a.a)}function l(a){if(a instanceof d)return parseFloat(a.unit.is("%")?a.value/100:a.value);if("number"==typeof a)return a;throw{type:"Argument",message:"color functions take numbers as parameters"}}function m(a,b){return a instanceof d&&a.unit.is("%")?parseFloat(a.value*b/100):l(a)}var i,d=a("../tree/dimension"),e=a("../tree/color"),f=a("../tree/quoted"),g=a("../tree/anonymous"),h=a("./function-registry");i={rgb:function(a,b,c){return i.rgba(a,b,c,1)},rgba:function(a,b,c,d){var f=[a,b,c].map(function(a){return m(a,255)});return d=l(d),new e(f,d)},hsl:function(a,b,c){return i.hsla(a,b,c,1)},hsla:function(a,b,c,d){function e(a){return a=0>a?a+1:a>1?a-1:a,1>6*a?g+6*(f-g)*a:1>2*a?f:2>3*a?g+6*(f-g)*(2/3-a):g}a=l(a)%360/360,b=j(l(b)),c=j(l(c)),d=j(l(d));var f=.5>=c?c*(b+1):c+b-c*b,g=2*c-f;return i.rgba(255*e(a+1/3),255*e(a),255*e(a-1/3),d)},hsv:function(a,b,c){return i.hsva(a,b,c,1)},hsva:function(a,b,c,d){a=360*(l(a)%360/360),b=l(b),c=l(c),d=l(d);var e,f;e=Math.floor(a/60%6),f=a/60-e;var g=[c,c*(1-b),c*(1-f*b),c*(1-(1-f)*b)],h=[[0,3,1],[2,0,1],[1,0,3],[1,2,0],[3,1,0],[0,1,2]];return i.rgba(255*g[h[e][0]],255*g[h[e][1]],255*g[h[e][2]],d)},hue:function(a){return new d(a.toHSL().h)},saturation:function(a){return new d(100*a.toHSL().s,"%")},lightness:function(a){return new d(100*a.toHSL().l,"%")},hsvhue:function(a){return new d(a.toHSV().h)},hsvsaturation:function(a){return new d(100*a.toHSV().s,"%")},hsvvalue:function(a){return new d(100*a.toHSV().v,"%")},red:function(a){return new d(a.rgb[0])},green:function(a){return new d(a.rgb[1])},blue:function(a){return new d(a.rgb[2])},alpha:function(a){return new d(a.toHSL().a)},luma:function(a){return new d(100*a.luma()*a.alpha,"%")},luminance:function(a){var b=.2126*a.rgb[0]/255+.7152*a.rgb[1]/255+.0722*a.rgb[2]/255;return new d(100*b*a.alpha,"%")},saturate:function(a,b){if(!a.rgb)return null;var c=a.toHSL();return c.s+=b.value/100,c.s=j(c.s),k(c)},desaturate:function(a,b){var c=a.toHSL();return c.s-=b.value/100,c.s=j(c.s),k(c)},lighten:function(a,b){var c=a.toHSL();return c.l+=b.value/100,c.l=j(c.l),k(c)},darken:function(a,b){var c=a.toHSL();return c.l-=b.value/100,c.l=j(c.l),k(c)},fadein:function(a,b){var c=a.toHSL();return c.a+=b.value/100,c.a=j(c.a),k(c)},fadeout:function(a,b){var c=a.toHSL();return c.a-=b.value/100,c.a=j(c.a),k(c)},fade:function(a,b){var c=a.toHSL();return c.a=b.value/100,c.a=j(c.a),k(c)},spin:function(a,b){var c=a.toHSL(),d=(c.h+b.value)%360;return c.h=0>d?360+d:d,k(c)},mix:function(a,b,c){c||(c=new d(50));var f=c.value/100,g=2*f-1,h=a.toHSL().a-b.toHSL().a,i=((-1==g*h?g:(g+h)/(1+g*h))+1)/2,j=1-i,k=[a.rgb[0]*i+b.rgb[0]*j,a.rgb[1]*i+b.rgb[1]*j,a.rgb[2]*i+b.rgb[2]*j],l=a.alpha*f+b.alpha*(1-f);return new e(k,l)},greyscale:function(a){return i.desaturate(a,new d(100))},contrast:function(a,b,c,d){if(!a.rgb)return null;if("undefined"==typeof c&&(c=i.rgba(255,255,255,1)),"undefined"==typeof b&&(b=i.rgba(0,0,0,1)),b.luma()>c.luma()){var e=c;c=b,b=e}return d="undefined"==typeof d?.43:l(d),a.luma()=r&&this.context.ieCompat!==!1)return g.warn("Skipped data-uri embedding of %s because its size (%dKB) exceeds IE8-safe %dKB!",i,s,r),f(this,e||a);q=k?q.toString("base64"):encodeURIComponent(q);var t='"data:'+h+","+q+m+'"';return new d(new c(t),this.index,this.currentFileInfo)})}},{"../logger":31,"../tree/anonymous":42,"../tree/url":76,"./function-registry":21}],19:[function(a,b){var d=a("../tree/keyword"),e=a("./function-registry"),f={eval:function(){var a=this.value_,b=this.error_;if(b)throw b;return null!=a?a?d.True:d.False:void 0},value:function(a){this.value_=a},error:function(a){this.error_=a},reset:function(){this.value_=this.error_=null}};e.add("default",f.eval.bind(f)),b.exports=f},{"../tree/keyword":61,"./function-registry":21}],20:[function(a,b){var d=a("./function-registry"),e=function(a,b,c,e){this.name=a.toLowerCase(),this.func=d.get(this.name),this.index=c,this.context=b,this.currentFileInfo=e};e.prototype.isValid=function(){return Boolean(this.func)},e.prototype.call=function(a){return this.func.apply(this,a)},b.exports=e},{"./function-registry":21}],21:[function(a,b){b.exports={_data:{},add:function(a,b){this._data.hasOwnProperty(a),this._data[a]=b},addMultiple:function(a){Object.keys(a).forEach(function(b){this.add(b,a[b])}.bind(this))},get:function(a){return this._data[a]}}},{}],22:[function(a,b){b.exports=function(b){var c={functionRegistry:a("./function-registry"),functionCaller:a("./function-caller")};return a("./default"),a("./color"),a("./color-blending"),a("./data-uri")(b),a("./math"),a("./number"),a("./string"),a("./svg")(b),a("./types"),c}},{"./color":17,"./color-blending":16,"./data-uri":18,"./default":19,"./function-caller":20,"./function-registry":21,"./math":23,"./number":24,"./string":25,"./svg":26,"./types":27}],23:[function(a){function g(a,b,c){if(!(c instanceof d))throw{type:"Argument",message:"argument must be a number"};return null==b?b=c.unit:c=c.unify(),new d(a(parseFloat(c.value)),b)}var d=a("../tree/dimension"),e=a("./function-registry"),f={ceil:null,floor:null,sqrt:null,abs:null,tan:"",sin:"",cos:"",atan:"rad",asin:"rad",acos:"rad"};for(var h in f)f.hasOwnProperty(h)&&(f[h]=g.bind(null,Math[h],f[h]));f.round=function(a,b){var c="undefined"==typeof b?0:b.value;return g(function(a){return a.toFixed(c)},null,a)},e.addMultiple(f)},{"../tree/dimension":52,"./function-registry":21}],24:[function(a){var d=a("../tree/dimension"),e=a("../tree/anonymous"),f=a("./function-registry"),g=function(a,b){switch(b=Array.prototype.slice.call(b),b.length){case 0:throw{type:"Argument",message:"one or more arguments required"}}var c,f,g,h,i,j,k,l,m=[],n={};for(c=0;ci.value)&&(m[f]=g);else{if(void 0!==k&&j!==k)throw{type:"Argument",message:"incompatible types"};n[j]=m.length,m.push(g)}else Array.isArray(b[c].value)&&Array.prototype.push.apply(b,Array.prototype.slice.call(b[c].value));return 1==m.length?m[0]:(b=m.map(function(a){return a.toCSS(this.context)}).join(this.context.compress?",":", "),new e((a?"min":"max")+"("+b+")"))};f.addMultiple({min:function(){return g(!0,arguments)},max:function(){return g(!1,arguments)},convert:function(a,b){return a.convertTo(b.value)},pi:function(){return new d(Math.PI)},mod:function(a,b){return new d(a.value%b.value,a.unit)},pow:function(a,b){if("number"==typeof a&&"number"==typeof b)a=new d(a),b=new d(b);else if(!(a instanceof d&&b instanceof d))throw{type:"Argument",message:"arguments must be numbers"};return new d(Math.pow(a.value,b.value),a.unit)},percentage:function(a){return new d(100*a.value,"%")}})},{"../tree/anonymous":42,"../tree/dimension":52,"./function-registry":21}],25:[function(a){var d=a("../tree/quoted"),e=a("../tree/anonymous"),f=a("../tree/javascript"),g=a("./function-registry");g.addMultiple({e:function(a){return new e(a instanceof f?a.evaluated:a.value)},escape:function(a){return new e(encodeURI(a.value).replace(/=/g,"%3D").replace(/:/g,"%3A").replace(/#/g,"%23").replace(/;/g,"%3B").replace(/\(/g,"%28").replace(/\)/g,"%29"))},replace:function(a,b,c,e){var f=a.value;return f=f.replace(new RegExp(b.value,e?e.value:""),c.value),new d(a.quote||"",f,a.escaped)},"%":function(a){for(var b=Array.prototype.slice.call(arguments,1),c=a.value,e=0;e",p=0;pt?' stop-opacity="'+t+'"':"")+"/>";if(n+=""+"',l)try{n=b.encodeBase64(n)}catch(u){l=!1}return n="'data:image/svg+xml"+(l?";base64":"")+","+n+"'",new f(new e(n),this.index,this.currentFileInfo)})}},{"../tree/anonymous":42,"../tree/color":46,"../tree/dimension":52,"../tree/url":76,"./function-registry":21}],27:[function(a){var d=a("../tree/keyword"),e=a("../tree/dimension"),f=a("../tree/color"),g=a("../tree/quoted"),h=a("../tree/anonymous"),i=a("../tree/url"),j=a("../tree/operation"),k=a("./function-registry"),l=function(a,b){return a instanceof b?d.True:d.False},m=function(a,b){return a instanceof e&&a.unit.is(b.value||b)?d.True:d.False};k.addMultiple({iscolor:function(a){return l(a,f)},isnumber:function(a){return l(a,e)},isstring:function(a){return l(a,g)},iskeyword:function(a){return l(a,d)},isurl:function(a){return l(a,i)},ispixel:function(a){return m(a,"px")},ispercentage:function(a){return m(a,"%")},isem:function(a){return m(a,"em")},isunit:m,unit:function(a,b){if(!(a instanceof e))throw{type:"Argument",message:"the first argument to unit must be a number"+(a instanceof j?". Have you forgotten parenthesis?":"")}; return b=b?b instanceof d?b.value:b.toCSS():"",new e(a.value,b)},"get-unit":function(a){return new h(a.unit)},extract:function(a,b){return b=b.value-1,Array.isArray(a.value)?a.value[b]:Array(a)[b]},length:function(a){var b=Array.isArray(a.value)?a.value.length:1;return new e(b)}})},{"../tree/anonymous":42,"../tree/color":46,"../tree/dimension":52,"../tree/keyword":61,"../tree/operation":67,"../tree/quoted":69,"../tree/url":76,"./function-registry":21}],28:[function(a,b){var d=a("./contexts"),e=a("./parser/parser");b.exports=function(a){var b=function(a,b){this.rootFilename=b.filename,this.paths=a.paths||[],this.contents={},this.contentsIgnoredChars={},this.mime=a.mime,this.error=null,this.context=a,this.queue=[],this.files={}};return b.prototype.push=function(b,c,f,g,h){var i=this;this.queue.push(b);var j=function(a,c,d){i.queue.splice(i.queue.indexOf(b),1);var e=d===i.rootFilename;i.files[d]=c,a&&!i.error&&(i.error=a),h(a,c,e,d)},k={relativeUrls:this.context.relativeUrls,entryPath:f.entryPath,rootpath:f.rootpath,rootFilename:f.rootFilename},l=a.getFileManager(b,f.currentDirectory,this.context,a);if(!l)return j({message:"Could not find a file-manager for "+b}),void 0;c&&(b=l.tryAppendLessExtension(b));var m=function(a){var b=a.filename,c=a.contents;k.currentDirectory=l.getPath(b),k.relativeUrls&&(k.rootpath=l.join(i.context.rootpath||"",l.pathDiff(k.currentDirectory,k.entryPath)),!l.isPathAbsolute(k.rootpath)&&l.alwaysMakePathsAbsolute()&&(k.rootpath=l.join(k.entryPath,k.rootpath))),k.filename=b;var h=new d.Parse(i.context);h.processImports=!1,i.contents[b]=c,(f.reference||g.reference)&&(k.reference=!0),g.inline?j(null,c,b):new e(h,i,k).parse(c,function(a,c){j(a,c,b)})},n=l.loadFile(b,f.currentDirectory,this.context,a,function(a,b){a?j(a):m(b)});n&&n.then(m,j)},b}},{"./contexts":10,"./parser/parser":35}],29:[function(a,b){b.exports=function(b,c){var d,e,f,g,h,i={version:[2,1,0],data:a("./data"),tree:a("./tree"),Environment:h=a("./environment/environment"),AbstractFileManager:a("./environment/abstract-file-manager"),environment:b=new h(b,c),visitors:a("./visitors"),Parser:a("./parser/parser"),functions:a("./functions")(b),contexts:a("./contexts"),SourceMapOutput:d=a("./source-map-output")(b),SourceMapBuilder:e=a("./source-map-builder")(d),ParseTree:f=a("./parse-tree")(e),ImportManager:g=a("./import-manager")(b),render:a("./render")(b,f,g),LessError:a("./less-error"),transformTree:a("./transform-tree"),utils:a("./utils"),PluginManager:a("./plugin-manager"),logger:a("./logger")};return i}},{"./contexts":10,"./data":12,"./environment/abstract-file-manager":14,"./environment/environment":15,"./functions":22,"./import-manager":28,"./less-error":30,"./logger":31,"./parse-tree":32,"./parser/parser":35,"./plugin-manager":36,"./render":37,"./source-map-builder":38,"./source-map-output":39,"./transform-tree":40,"./tree":58,"./utils":79,"./visitors":83}],30:[function(a,b){var d=a("./utils"),e=b.exports=function(a,b,c){Error.call(this);var e=a.filename||c;if(b&&e){var f=b.contents[e],g=d.getLocation(a.index,f),h=g.line,i=g.column,j=a.call&&d.getLocation(a.call,f).line,k=f.split("\n");this.type=a.type||"Syntax",this.filename=e,this.index=a.index,this.line="number"==typeof h?h+1:null,this.callLine=j+1,this.callExtract=k[j],this.column=i,this.extract=[k[h-1],k[h],k[h+1]]}this.message=a.message,this.stack=a.stack};if("undefined"==typeof Object.create){var f=function(){};f.prototype=Error.prototype,e.prototype=new f}else e.prototype=Object.create(Error.prototype);e.prototype.constructor=e},{"./utils":79}],31:[function(a,b){b.exports={error:function(a){this._fireEvent("error",a)},warn:function(a){this._fireEvent("warn",a)},info:function(a){this._fireEvent("info",a)},debug:function(a){this._fireEvent("debug",a)},addListener:function(a){this._listeners.push(a)},removeListener:function(a){for(var b=0;bc&&!b||!c||(j.push(a.slice(k,l+1)),k=l+1)}var f,g,h,i,l,m,n,o,p,c=a.length,d=0,e=0,j=[],k=0;for(l=0;c>l;l++)if(n=a.charCodeAt(l),!(n>=97&&122>=n||34>n))switch(n){case 40:e++,g=l;continue;case 41:if(--e<0)return b("missing opening `(`",l);continue;case 59:e||q();continue;case 123:d++,f=l;continue;case 125:if(--d<0)return b("missing opening `{`",l);d||e||q();continue;case 92:if(c-1>l){l++;continue}return b("unescaped `\\`",l);case 34:case 39:case 96:for(p=0,m=l,l+=1;c>l;l++)if(o=a.charCodeAt(l),!(o>96)){if(o==n){p=1;break}if(92==o){if(l==c-1)return b("unescaped `\\`",l);l++}}if(p)continue;return b("unmatched `"+String.fromCharCode(n)+"`",m);case 47:if(e||l==c-1)continue;if(o=a.charCodeAt(l+1),47==o)for(l+=2;c>l&&(o=a.charCodeAt(l),!(13>=o)||10!=o&&13!=o);l++);else if(42==o){for(h=m=l,l+=2;c-1>l&&(o=a.charCodeAt(l),125==o&&(i=l),42!=o||47!=a.charCodeAt(l+1));l++);if(l==c-1)return b("missing closing `*/`",m);l++}continue;case 42:if(c-1>l&&47==a.charCodeAt(l+1))return b("unmatched `/*`",l);continue}return 0!==d?h>f&&i>h?b("missing closing `}` or `*/`",f):b("missing closing `}`",f):0!==e?b("missing closing `)`",g):(q(!0),j)}},{}],34:[function(a,b){var d=a("./chunker");b.exports=function(){function k(){j.i>i&&(h=h.slice(j.i-i),i=j.i)}var a,b,e,f,g,h,i,c=[],j={};j.save=function(){i=j.i,c.push({current:h,i:j.i,j:b})},j.restore=function(a){j.i>e&&(e=j.i,f=a);var d=c.pop();h=d.current,i=j.i=d.i,b=d.j},j.forget=function(){c.pop()},j.isWhitespace=function(b){var c=j.i+(b||0),d=a.charCodeAt(c);return d===l||d===o||d===m||d===n},j.$=function(b){var d,e,c=typeof b;return"string"===c?a.charAt(j.i)!==b?null:(t(1),b):(k(),(d=b.exec(h))?(e=d[0].length,t(e),"string"==typeof d?d:1===d.length?d[0]:d):null)},j.$re=function(a){j.i>i&&(h=h.slice(j.i-i),i=j.i);var b=a.exec(h);return b?(t(b[0].length),"string"==typeof b?b:1===b.length?b[0]:b):null},j.$char=function(b){return a.charAt(j.i)!==b?null:(t(1),b)};var l=32,m=9,n=10,o=13,p=43,q=44,r=47,s=57;j.autoCommentAbsorb=!0,j.commentStore=[],j.finished=!1;var t=function(c){for(var s,u,v,d=j.i,e=b,f=j.i-i,k=j.i+h.length-f,p=j.i+=c,q=a;j.iw&&(w=k),j.i=w,v.text=q.substr(v.i,j.i-v.i),j.commentStore.push(v);continue}if("*"===u){var x=q.substr(j.i),y=x.match(/^\/\*(?:[^*]|\*+[^\/*])*\*+\//);if(y){v={index:j.i,text:y[0],isLineComment:!1},j.i+=v.text.length-1,j.commentStore.push(v);continue}}break}if(s!==l&&s!==n&&s!==m&&s!==o)break}if(h=h.slice(c+j.i-p+f),i=j.i,!h.length){if(bs||p>b||b===r||b===q},j.start=function(c,f,k){a=c,j.i=b=i=e=0,g=f?d(c,k):[c],h=g[0],t(0)},j.end=function(){var b,c=j.i>=a.length-1;return j.i=a.length-1,furthestChar:a[j.i]}},j}},{"./chunker":33}],35:[function(a,b){var d=a("../less-error"),e=a("../tree"),f=a("../visitors"),g=a("./parser-input"),h=a("../utils"),i=function j(a,b,c){function l(a,b){var d="[object Function]"===Object.prototype.toString.call(a)?a.call(i):k.$(a);return d?d:(n(b||("string"==typeof a?"expected '"+a+"' got '"+k.currentChar()+"'":"unexpected token")),void 0)}function m(a,b){return k.$char(a)?a:(n(b||"expected '"+a+"' got '"+k.currentChar()+"'"),void 0)}function n(a,e){throw new d({index:k.i,filename:c.filename,type:e||"Syntax",message:a},b)}function o(a){var b=c.filename;return{lineNumber:h.getLocation(a,k.getInput()).line+1,fileName:b}}var i,k=g();return{parse:function(g,h,i){var l,n,o,m=null,p="";n=i&&i.globalVars?j.serializeVars(i.globalVars)+"\n":"",o=i&&i.modifyVars?"\n"+j.serializeVars(i.modifyVars):"",(n||i&&i.banner)&&(p=(i&&i.banner?i.banner:"")+n,b.contentsIgnoredChars[c.filename]=p.length),g=g.replace(/\r\n/g,"\n"),g=p+g.replace(/^\uFEFF/,"")+o,b.contents[c.filename]=g;try{k.start(g,a.chunkInput,function(a,e){throw d({index:e,type:"Parse",message:a,filename:c.filename},b)}),l=new e.Ruleset(null,this.parsers.primary()),l.root=!0,l.firstRoot=!0}catch(q){return h(new d(q,b,c.filename))}var r=k.end();if(!r.isFinished){var s=r.furthestPossibleErrorMessage;s||(s="Unrecognised input","}"===r.furthestChar?s+=". Possibly missing opening '{'":")"===r.furthestChar?s+=". Possibly missing opening '('":r.furthestReachedEnd&&(s+=". Possibly missing something")),m=new d({type:"Parse",message:s,index:r.furthest,filename:c.filename},b)}var t=function(a){return a=m||a||b.error,a?(a instanceof d||(a=new d(a,b,c.filename)),h(a)):h(null,l)};return a.processImports===!1?t():(new f.ImportVisitor(b,t).run(l),void 0)},parsers:i={primary:function(){for(var c,a=this.mixin,b=[];!k.finished;){for(;;){if(c=this.comment(),!c)break;b.push(c)}if(k.peek("}"))break;if(c=this.extendRule())b=b.concat(c);else if(c=a.definition()||this.rule()||this.ruleset()||a.call()||this.rulesetCall()||this.directive())b.push(c);else if(!k.$re(/^[\s\n]+/)&&!k.$re(/^;+/))break}return b},comment:function(){if(k.commentStore.length){var a=k.commentStore.shift();return new e.Comment(a.text,a.isLineComment,a.index,c)}},entities:{quoted:function(){var a,b=k.i;return a=k.$re(/^(~)?("((?:[^"\\\r\n]|\\.)*)"|'((?:[^'\\\r\n]|\\.)*)')/),a?new e.Quoted(a[2],a[3]||a[4],Boolean(a[1]),b,c):void 0},keyword:function(){var a=k.$re(/^%|^[_A-Za-z-][_A-Za-z0-9-]*/);return a?e.Color.fromKeyword(a)||new e.Keyword(a):void 0},call:function(){var a,b,d,f,g=k.i;if(!k.peek(/^url\(/i))return k.save(),(a=k.$re(/^([\w-]+|%|progid:[\w\.]+)\(/))?(a=a[1],b=a.toLowerCase(),"alpha"===b&&(f=i.alpha())?f:(d=this.arguments(),k.$char(")")?(k.forget(),new e.Call(a,d,g,c)):(k.restore("Could not parse call arguments or missing ')'"),void 0))):(k.forget(),void 0)},arguments:function(){for(var b,a=[];;){if(b=this.assignment()||i.expression(),!b)break;if(a.push(b),!k.$char(","))break}return a},literal:function(){return this.dimension()||this.color()||this.quoted()||this.unicodeDescriptor()},assignment:function(){var a,b;return a=k.$re(/^\w+(?=\s?=)/i),a&&k.$char("=")?(b=i.entity(),b?new e.Assignment(a,b):void 0):void 0},url:function(){var a,b=k.i;return k.autoCommentAbsorb=!1,"u"===k.currentChar()&&k.$re(/^url\(/)?(a=this.quoted()||this.variable()||k.$re(/^(?:(?:\\[\(\)'"])|[^\(\)'"])+/)||"",k.autoCommentAbsorb=!0,m(")"),new e.URL(null!=a.value||a instanceof e.Variable?a:new e.Anonymous(a),b,c)):(k.autoCommentAbsorb=!0,void 0)},variable:function(){var a,b=k.i;return"@"===k.currentChar()&&(a=k.$re(/^@@?[\w-]+/))?new e.Variable(a,b,c):void 0},variableCurly:function(){var a,b=k.i;return"@"===k.currentChar()&&(a=k.$re(/^@\{([\w-]+)\}/))?new e.Variable("@"+a[1],b,c):void 0},color:function(){var a;if("#"===k.currentChar()&&(a=k.$re(/^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})/))){var b=a.input.match(/^#([\w]+).*/);return b=b[1],b.match(/^[A-Fa-f0-9]+$/)||n("Invalid HEX color code"),new e.Color(a[1])}},dimension:function(){if(!k.peekNotNumeric()){var a=k.$re(/^([+-]?\d*\.?\d+)(%|[a-z]+)?/i);return a?new e.Dimension(a[1],a[2]):void 0}},unicodeDescriptor:function(){var a;return a=k.$re(/^U\+[0-9a-fA-F?]+(\-[0-9a-fA-F?]+)?/),a?new e.UnicodeDescriptor(a[0]):void 0},javascript:function(){var a,b=k.i;return a=k.$re(/^(~)?`([^`]*)`/),a?new e.JavaScript(a[2],Boolean(a[1]),b,c):void 0}},variable:function(){var a;return"@"===k.currentChar()&&(a=k.$re(/^(@[\w-]+)\s*:/))?a[1]:void 0},rulesetCall:function(){var a;return"@"===k.currentChar()&&(a=k.$re(/^(@[\w-]+)\s*\(\s*\)\s*;/))?new e.RulesetCall(a[1]):void 0},extend:function(a){var b,c,f,g,h,d=k.i;if(a?k.$re(/^&:extend\(/):k.$re(/^:extend\(/)){do{for(f=null,b=null;!(f=k.$re(/^(all)(?=\s*(\)|,))/))&&(c=this.element());)b?b.push(c):b=[c];f=f&&f[1],b||n("Missing target selector for :extend()."),h=new e.Extend(new e.Selector(b),f,d),g?g.push(h):g=[h]}while(k.$char(","));return l(/^\)/),a&&l(/^;/),g}},extendRule:function(){return this.extend(!0)},mixin:{call:function(){var f,g,h,j,l,n,a=k.currentChar(),b=!1,d=k.i;if("."===a||"#"===a){for(k.save();;){if(f=k.i,j=k.$re(/^[#.](?:[\w-]|\\(?:[A-Fa-f0-9]{1,6} ?|[^A-Fa-f0-9]))+/),!j)break;h=new e.Element(l,j,f,c),g?g.push(h):g=[h],l=k.$char(">")}return g&&(k.$char("(")&&(n=this.args(!0).args,m(")")),i.important()&&(b=!0),i.end())?(k.forget(),new e.mixin.Call(g,n,d,c,b)):(k.restore(),void 0)}},args:function(a){var h,j,l,m,o,p,b=i.entities,c={args:null,variadic:!1},d=[],f=[],g=[];for(k.save();;){if(a)p=i.detachedRuleset()||i.expression();else{if(k.commentStore.length=0,"."===k.currentChar()&&k.$re(/^\.{3}/)){c.variadic=!0,k.$char(";")&&!h&&(h=!0),(h?f:g).push({variadic:!0});break}p=b.variable()||b.literal()||b.keyword()}if(!p)break;m=null,p.throwAwayComments&&p.throwAwayComments(),o=p;var q=null;if(a?p.value&&1==p.value.length&&(q=p.value[0]):q=p,q&&q instanceof e.Variable)if(k.$char(":")){if(d.length>0&&(h&&n("Cannot mix ; and , as delimiter types"),j=!0),o=a&&i.detachedRuleset()||i.expression(),!o){if(!a)return k.restore(),c.args=[],c;n("could not understand value for named argument")}m=l=q.name}else{if(!a&&k.$re(/^\.{3}/)){c.variadic=!0,k.$char(";")&&!h&&(h=!0),(h?f:g).push({name:p.name,variadic:!0});break}a||(l=m=q.name,o=null)}o&&d.push(o),g.push({name:m,value:o}),k.$char(",")||(k.$char(";")||h)&&(j&&n("Cannot mix ; and , as delimiter types"),h=!0,d.length>1&&(o=new e.Value(d)),f.push({name:l,value:o}),l=null,d=[],j=!1)}return k.forget(),c.args=h?f:g,c},definition:function(){var a,c,d,f,b=[],g=!1;if(!("."!==k.currentChar()&&"#"!==k.currentChar()||k.peek(/^[^{]*\}/)))if(k.save(),c=k.$re(/^([#.](?:[\w-]|\\(?:[A-Fa-f0-9]{1,6} ?|[^A-Fa-f0-9]))+)\s*\(/)){a=c[1];var h=this.args(!1);if(b=h.args,g=h.variadic,!k.$char(")"))return k.restore("Missing closing ')'"),void 0;if(k.commentStore.length=0,k.$re(/^when/)&&(f=l(i.conditions,"expected condition")),d=i.block())return k.forget(),new e.mixin.Definition(a,b,d,f,g);k.restore()}else k.forget()}},entity:function(){var a=this.entities;return this.comment()||a.literal()||a.variable()||a.url()||a.call()||a.keyword()||a.javascript()},end:function(){return k.$char(";")||k.peek("}")},alpha:function(){var a;if(k.$re(/^opacity=/i))return a=k.$re(/^\d+/),a||(a=l(this.entities.variable,"Could not parse alpha")),m(")"),new e.Alpha(a)},element:function(){var a,b,d,f=k.i;return b=this.combinator(),a=k.$re(/^(?:\d+\.\d+|\d+)%/)||k.$re(/^(?:[.#]?|:*)(?:[\w-]|[^\x00-\x9f]|\\(?:[A-Fa-f0-9]{1,6} ?|[^A-Fa-f0-9]))+/)||k.$char("*")||k.$char("&")||this.attribute()||k.$re(/^\([^()@]+\)/)||k.$re(/^[\.#](?=@)/)||this.entities.variableCurly(),a||(k.save(),k.$char("(")?(d=this.selector())&&k.$char(")")?(a=new e.Paren(d),k.forget()):k.restore("Missing closing ')'"):k.forget()),a?new e.Element(b,a,f,c):void 0},combinator:function(){var a=k.currentChar();if("/"===a){k.save();var b=k.$re(/^\/[a-z]+\//i);if(b)return k.forget(),new e.Combinator(b);k.restore()}if(">"===a||"+"===a||"~"===a||"|"===a||"^"===a){for(k.i++,"^"===a&&"^"===k.currentChar()&&(a="^^",k.i++);k.isWhitespace();)k.i++;return new e.Combinator(a)}return k.isWhitespace(-1)?new e.Combinator(" "):new e.Combinator(null)},lessSelector:function(){return this.selector(!0)},selector:function(a){for(var d,f,g,h,i,j,m,b=k.i;(a&&(f=this.extend())||a&&(j=k.$re(/^when/))||(h=this.element()))&&(j?m=l(this.conditions,"expected condition"):m?n("CSS guard can only be used at the end of selector"):f?i=i?i.concat(f):f:(i&&n("Extend can only be used at the end of selector"),g=k.currentChar(),d?d.push(h):d=[h],h=null),"{"!==g&&"}"!==g&&";"!==g&&","!==g&&")"!==g););return d?new e.Selector(d,i,m,b,c):(i&&n("Extend must be used to extend a selector, it cannot be used on its own"),void 0)},attribute:function(){if(k.$char("[")){var b,c,d,a=this.entities;return(b=a.variableCurly())||(b=l(/^(?:[_A-Za-z0-9-\*]*\|)?(?:[_A-Za-z0-9-]|\\.)+/)),d=k.$re(/^[|~*$^]?=/),d&&(c=a.quoted()||k.$re(/^[0-9]+%/)||k.$re(/^[\w-]+/)||a.variableCurly()),m("]"),new e.Attribute(b,d,c)}},block:function(){var a;return k.$char("{")&&(a=this.primary())&&k.$char("}")?a:void 0},blockRuleset:function(){var a=this.block();return a&&(a=new e.Ruleset(null,a)),a},detachedRuleset:function(){var a=this.blockRuleset();return a?new e.DetachedRuleset(a):void 0},ruleset:function(){var b,c,d,f;for(k.save(),a.dumpLineNumbers&&(f=o(k.i));;){if(c=this.lessSelector(),!c)break;if(b?b.push(c):b=[c],k.commentStore.length=0,c.condition&&b.length>1&&n("Guards are only currently allowed on a single selector."),!k.$char(","))break;c.condition&&n("Guards are only currently allowed on a single selector."),k.commentStore.length=0}if(b&&(d=this.block())){k.forget();var g=new e.Ruleset(b,d,a.strictImports);return a.dumpLineNumbers&&(g.debugInfo=f),g}k.restore()},rule:function(b){var d,f,i,j,l,g=k.i,h=k.currentChar();if("."!==h&&"#"!==h&&"&"!==h)if(k.save(),d=this.variable()||this.ruleProperty()){if(l="string"==typeof d,l&&(f=this.detachedRuleset()),k.commentStore.length=0,!f){j=!l&&d.pop().value;var m=!b&&(a.compress||l);if(m&&(f=this.value()),!f&&(f=this.anonymousValue()))return k.forget(),new e.Rule(d,f,!1,j,g,c);m||f||(f=this.value()),i=this.important()}if(f&&this.end())return k.forget(),new e.Rule(d,f,i,j,g,c);if(k.restore(),f&&!b)return this.rule(!0)}else k.forget()},anonymousValue:function(){var a=k.$re(/^([^@+\/'"*`(;{}-]*);/);return a?new e.Anonymous(a[1]):void 0},"import":function(){var a,b,d=k.i,f=k.$re(/^@import?\s+/);if(f){var g=(f?this.importOptions():null)||{};if(a=this.entities.quoted()||this.entities.url())return b=this.mediaFeatures(),k.$(";")||(k.i=d,n("missing semi-colon or unrecognised media features on import")),b=b&&new e.Value(b),new e.Import(a,b,g,d,c);k.i=d,n("malformed import statement")}},importOptions:function(){var a,c,d,b={};if(!k.$char("("))return null;do if(a=this.importOption()){switch(c=a,d=!0,c){case"css":c="less",d=!1;break;case"once":c="multiple",d=!1}if(b[c]=d,!k.$char(","))break}while(a);return m(")"),b},importOption:function(){var a=k.$re(/^(less|css|multiple|once|inline|reference)/);return a?a[1]:void 0},mediaFeature:function(){var d,f,a=this.entities,b=[];k.save();do if(d=a.keyword()||a.variable())b.push(d);else if(k.$char("(")){if(f=this.property(),d=this.value(),!k.$char(")"))return k.restore("Missing closing ')'"),null;if(f&&d)b.push(new e.Paren(new e.Rule(f,d,null,null,k.i,c,!0)));else{if(!d)return k.restore("badly formed media feature definition"),null;b.push(new e.Paren(d))}}while(d);return k.forget(),b.length>0?new e.Expression(b):void 0},mediaFeatures:function(){var c,a=this.entities,b=[];do if(c=this.mediaFeature()){if(b.push(c),!k.$char(","))break}else if(c=a.variable(),c&&(b.push(c),!k.$char(",")))break;while(c);return b.length>0?b:null},media:function(){var b,d,f,g;return a.dumpLineNumbers&&(g=o(k.i)),k.$re(/^@media/)&&(b=this.mediaFeatures(),d=this.block())?(f=new e.Media(d,b,k.i,c),a.dumpLineNumbers&&(f.debugInfo=g),f):void 0},directive:function(){var d,f,g,h,i,j,l,b=k.i,m=!0;if("@"===k.currentChar()){if(f=this["import"]()||this.media())return f;if(k.save(),d=k.$re(/^@[a-z-]+/)){switch(h=d,"-"==d.charAt(1)&&d.indexOf("-",2)>0&&(h="@"+d.slice(d.indexOf("-",2)+1)),h){case"@counter-style":i=!0,m=!0;break;case"@charset":i=!0,m=!1;break;case"@namespace":j=!0,m=!1;break;case"@keyframes":i=!0;break;case"@host":case"@page":case"@document":case"@supports":l=!0}return k.commentStore.length=0,i?(f=this.entity(),f||n("expected "+d+" identifier")):j?(f=this.expression(),f||n("expected "+d+" expression")):l&&(f=(k.$re(/^[^{;]+/)||"").trim(),f&&(f=new e.Anonymous(f))),m&&(g=this.blockRuleset()),g||!m&&f&&k.$char(";")?(k.forget(),new e.Directive(d,f,g,b,c,a.dumpLineNumbers?o(b):null)):(k.restore("directive options not recognised"),void 0)}}},value:function(){var a,b=[];do if(a=this.expression(),a&&(b.push(a),!k.$char(",")))break;while(a);return b.length>0?new e.Value(b):void 0},important:function(){return"!"===k.currentChar()?k.$re(/^! *important/):void 0},sub:function(){var a,b;return k.$char("(")&&(a=this.addition())?(b=new e.Expression([a]),m(")"),b.parens=!0,b):void 0},multiplication:function(){var a,b,c,d,f;if(a=this.operand()){for(f=k.isWhitespace(-1);;){if(k.peek(/^\/[*\/]/))break;if(k.save(),c=k.$char("/")||k.$char("*"),!c){k.forget();break}if(b=this.operand(),!b){k.restore();break}k.forget(),a.parensInOp=!0,b.parensInOp=!0,d=new e.Operation(c,[d||a,b],f),f=k.isWhitespace(-1)}return d||a}},addition:function(){var a,b,c,d,f;if(a=this.multiplication()){for(f=k.isWhitespace(-1);;){if(c=k.$re(/^[-+]\s+/)||!f&&(k.$char("+")||k.$char("-")),!c)break;if(b=this.multiplication(),!b)break;a.parensInOp=!0,b.parensInOp=!0,d=new e.Operation(c,[d||a,b],f),f=k.isWhitespace(-1)}return d||a}},conditions:function(){var a,b,d,c=k.i;if(a=this.condition()){for(;;){if(!k.peek(/^,\s*(not\s*)?\(/)||!k.$char(","))break;if(b=this.condition(),!b)break;d=new e.Condition("or",d||a,b,c)}return d||a}},condition:function(){var d,f,g,h,a=this.entities,b=k.i,c=!1;return k.$re(/^not/)&&(c=!0),m("("),d=this.addition()||a.keyword()||a.quoted(),d?(h=k.$re(/^(?:>=|<=|=<|[<=>])/),h?(f=this.addition()||a.keyword()||a.quoted(),f?g=new e.Condition(h,d,f,b,c):n("expected expression")):g=new e.Condition("=",d,new e.Keyword("true"),b,c),m(")"),k.$re(/^and/)?new e.Condition("and",g,this.condition()):g):void 0},operand:function(){var b,a=this.entities;k.peek(/^-[@\(]/)&&(b=k.$char("-"));var c=this.sub()||a.dimension()||a.color()||a.variable()||a.call();return b&&(c.parensInOp=!0,c=new e.Negative(c)),c},expression:function(){var b,c,a=[];do b=this.comment(),b?a.push(b):(b=this.addition()||this.entity(),b&&(a.push(b),k.peek(/^\/[\/*]/)||(c=k.$char("/"),c&&a.push(new e.Anonymous(c)))));while(b);return a.length>0?new e.Expression(a):void 0},property:function(){var a=k.$re(/^(\*?-?[_a-zA-Z0-9-]+)\s*:/);return a?a[1]:void 0},ruleProperty:function(){function g(c){var d=k.i,e=k.$re(c);return e?(b.push(d),a.push(e[1])):void 0}var d,f,a=[],b=[];for(k.save(),g(/^(\*?)/);;)if(!g(/^((?:[\w-]+)|(?:@\{[\w-]+\}))/))break;if(a.length>1&&g(/^((?:\+_|\+)?)\s*:/)){for(k.forget(),""===a[0]&&(a.shift(),b.shift()),f=0;f=b);c++);this.postProcessors.splice(c,0,{postProcessor:a,priority:b})},d.prototype.addFileManager=function(a){this.fileManagers.push(a)},d.prototype.getPostProcessors=function(){for(var a=[],b=0;bc&&(c=0),j=j.slice(this._contentsIgnoredCharsMap[b.filename])),j=j.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;i0){var e,f=JSON.stringify(this._sourceMapGenerator.toJSON());this.sourceMapURL?e=this.sourceMapURL:this._sourceMapFilename&&(e=this._sourceMapFilename),this.sourceMapURL=e,this._sourceMapFileInline?e="data:application/json;base64,"+a.encodeBase64(f):this.sourceMap=f,e&&this._css.push("/*# sourceMappingURL="+e+" */")}return this._css.join("")},b}},{}],40:[function(a,b){var d=a("./contexts"),e=a("./visitors"),f=a("./tree");b.exports=function(a,b){b=b||{};var c,g=b.variables,h=new d.Eval(b);"object"!=typeof g||Array.isArray(g)||(g=Object.keys(g).map(function(a){var b=g[a];return b instanceof f.Value||(b instanceof f.Expression||(b=new f.Expression([b])),b=new f.Value([b])),new f.Rule("@"+a,b,!1,null,0)}),h.frames=[new f.Ruleset(null,g)]);var k,i=[],j=[new e.JoinSelectorVisitor,new e.ExtendVisitor,new e.ToCSSVisitor({compress:Boolean(b.compress)})];if(b.pluginManager){var l=b.pluginManager.getVisitors();for(k=0;ka?"0":"")+a.toString(16)}).join("")}var d=a("./node"),e=a("../data/colors"),f=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};f.prototype=new d,f.prototype.type="Color",f.prototype.luma=function(){var a=this.rgb[0]/255,b=this.rgb[1]/255,c=this.rgb[2]/255;return a=.03928>=a?a/12.92:Math.pow((a+.055)/1.055,2.4),b=.03928>=b?b/12.92:Math.pow((b+.055)/1.055,2.4),c=.03928>=c?c/12.92:Math.pow((c+.055)/1.055,2.4),.2126*a+.7152*b+.0722*c},f.prototype.genCSS=function(a,b){b.add(this.toCSS(a))},f.prototype.toCSS=function(a,b){var d,e,c=a&&a.compress&&!b;if(this.keyword)return this.keyword;if(e=this.fround(a,this.alpha),1>e)return"rgba("+this.rgb.map(function(a){return g(Math.round(a),255)}).concat(g(e,1)).join(","+(c?"":" "))+")";if(d=this.toRGB(),c){var f=d.split("");f[1]===f[2]&&f[3]===f[4]&&f[5]===f[6]&&(d="#"+f[1]+f[3]+f[5])}return d},f.prototype.operate=function(a,b,c){for(var d=[],e=this.alpha*(1-c.alpha)+c.alpha,g=0;3>g;g++)d[g]=this._operate(a,b,this.rgb[g],c.rgb[g]);return new f(d,e)},f.prototype.toRGB=function(){return h(this.rgb)},f.prototype.toHSL=function(){var g,h,a=this.rgb[0]/255,b=this.rgb[1]/255,c=this.rgb[2]/255,d=this.alpha,e=Math.max(a,b,c),f=Math.min(a,b,c),i=(e+f)/2,j=e-f;if(e===f)g=h=0;else{switch(h=i>.5?j/(2-e-f):j/(e+f),e){case a:g=(b-c)/j+(c>b?6:0);break;case b:g=(c-a)/j+2;break;case c:g=(a-b)/j+4}g/=6}return{h:360*g,s:h,l:i,a:d}},f.prototype.toHSV=function(){var g,h,a=this.rgb[0]/255,b=this.rgb[1]/255,c=this.rgb[2]/255,d=this.alpha,e=Math.max(a,b,c),f=Math.min(a,b,c),i=e,j=e-f;if(h=0===e?0:j/e,e===f)g=0;else{switch(e){case a:g=(b-c)/j+(c>b?6:0);break;case b:g=(c-a)/j+2;break;case c:g=(a-b)/j+4}g/=6}return{h:360*g,s:h,v:i,a:d}},f.prototype.toARGB=function(){return h([255*this.alpha].concat(this.rgb))},f.prototype.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:void 0},f.fromKeyword=function(a){var b,c=a.toLowerCase();return e.hasOwnProperty(c)?b=new f(e[c].slice(1)):"transparent"===c&&(b=new f([0,0,0],0)),b?(b.keyword=a,b):void 0},b.exports=f},{"../data/colors":11,"./node":66}],47:[function(a,b){var d=a("./node"),e=function(a){" "===a?(this.value=" ",this.emptyOrWhitespace=!0):(this.value=a?a.trim():"",this.emptyOrWhitespace=""===this.value)};e.prototype=new d,e.prototype.type="Combinator";var f={"":!0," ":!0,"|":!0};e.prototype.genCSS=function(a,b){var c=a.compress||f[this.value]?"":" ";b.add(c+this.value+c)},b.exports=e},{"./node":66}],48:[function(a,b){var d=a("./node"),e=a("./debug-info"),f=function(a,b,c,d){this.value=a,this.isLineComment=b,this.currentFileInfo=d};f.prototype=new d,f.prototype.type="Comment",f.prototype.genCSS=function(a,b){this.debugInfo&&b.add(e(a,this),this.currentFileInfo,this.index),b.add(this.value)},f.prototype.isSilent=function(a){var b=this.currentFileInfo&&this.currentFileInfo.reference&&!this.isReferenced,c=a.compress&&"!"!==this.value[2];return this.isLineComment||b||c},f.prototype.markReferenced=function(){this.isReferenced=!0},f.prototype.isRulesetLike=function(a){return Boolean(a)},b.exports=f},{"./debug-info":50,"./node":66}],49:[function(a,b){var d=a("./node"),e=function(a,b,c,d,e){this.op=a.trim(),this.lvalue=b,this.rvalue=c,this.index=d,this.negate=e};e.prototype=new d,e.prototype.type="Condition",e.prototype.accept=function(a){this.lvalue=a.visit(this.lvalue),this.rvalue=a.visit(this.rvalue)},e.prototype.eval=function(a){var b=function(a,b,c){switch(a){case"and":return b&&c;case"or":return b||c;default:switch(d.compare(b,c)){case-1:return"<"===a||"=<"===a||"<="===a;case 0:return"="===a||">="===a||"=<"===a||"<="===a;case 1:return">"===a||">="===a;default:return!1}}}(this.op,this.lvalue.eval(a),this.rvalue.eval(a));return this.negate?!b:b},b.exports=e},{"./node":66}],50:[function(a,b){var d=function(a,b,c){var e="";if(a.dumpLineNumbers&&!a.compress)switch(a.dumpLineNumbers){case"comments":e=d.asComment(b);break;case"mediaquery":e=d.asMediaQuery(b);break;case"all":e=d.asComment(b)+(c||"")+d.asMediaQuery(b)}return e};d.asComment=function(a){return"/* line "+a.debugInfo.lineNumber+", "+a.debugInfo.fileName+" */\n"},d.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"},b.exports=d},{}],51:[function(a,b){var d=a("./node"),e=a("../contexts"),f=function(a,b){this.ruleset=a,this.frames=b};f.prototype=new d,f.prototype.type="DetachedRuleset",f.prototype.evalFirst=!0,f.prototype.accept=function(a){this.ruleset=a.visit(this.ruleset)},f.prototype.eval=function(a){var b=this.frames||a.frames.slice(0);return new f(this.ruleset,b)},f.prototype.callEval=function(a){return this.ruleset.eval(this.frames?new e.Eval(a,this.frames.concat(a.frames)):a)},b.exports=f},{"../contexts":10,"./node":66}],52:[function(a,b){var d=a("./node"),e=a("../data/unit-conversions"),f=a("./unit"),g=a("./color"),h=function(a,b){this.value=parseFloat(a),this.unit=b&&b instanceof f?b:new f(b?[b]:void 0)};h.prototype=new d,h.prototype.type="Dimension",h.prototype.accept=function(a){this.unit=a.visit(this.unit)},h.prototype.eval=function(){return this},h.prototype.toColor=function(){return new g([this.value,this.value,this.value])},h.prototype.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.fround(a,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)},h.prototype.operate=function(a,b,c){var d=this._operate(a,b,this.value,c.value),e=this.unit.clone();if("+"===b||"-"===b)if(0===e.numerator.length&&0===e.denominator.length)e.numerator=c.unit.numerator.slice(0),e.denominator=c.unit.denominator.slice(0);else if(0===c.unit.numerator.length&&0===e.denominator.length);else{if(c=c.convertTo(this.unit.usedUnits()),a.strictUnits&&c.unit.toString()!==e.toString())throw new Error("Incompatible units. Change the units or use the unit function. Bad units: '"+e.toString()+"' and '"+c.unit.toString()+"'.");d=this._operate(a,b,this.value,c.value)}else"*"===b?(e.numerator=e.numerator.concat(c.unit.numerator).sort(),e.denominator=e.denominator.concat(c.unit.denominator).sort(),e.cancel()):"/"===b&&(e.numerator=e.numerator.concat(c.unit.denominator).sort(),e.denominator=e.denominator.concat(c.unit.numerator).sort(),e.cancel());return new h(d,e)},h.prototype.compare=function(a){var b,c;if(!(a instanceof h))return void 0;if(this.unit.isEmpty()||a.unit.isEmpty())b=this,c=a;else if(b=this.unify(),c=a.unify(),0!==b.unit.compare(c.unit))return void 0;return d.numericCompare(b.value,c.value)},h.prototype.unify=function(){return this.convertTo({length:"px",duration:"s",angle:"rad"})},h.prototype.convertTo=function(a){var d,f,g,i,k,b=this.value,c=this.unit.clone(),j={};if("string"==typeof a){for(d in e)e[d].hasOwnProperty(a)&&(j={},j[d]=a);a=j}k=function(a,c){return g.hasOwnProperty(a)?(c?b/=g[a]/g[i]:b*=g[a]/g[i],i):a};for(f in a)a.hasOwnProperty(f)&&(i=a[f],g=e[f],c.map(k));return c.cancel(),new h(b,c)},b.exports=h},{"../data/unit-conversions":13,"./color":46,"./node":66,"./unit":75}],53:[function(a,b){var d=a("./node"),e=a("./ruleset"),f=function(a,b,c,d,e,f){this.name=a,this.value=b,c&&(this.rules=c,this.rules.allowImports=!0),this.index=d,this.currentFileInfo=e,this.debugInfo=f};f.prototype=new d,f.prototype.type="Directive",f.prototype.accept=function(a){var b=this.value,c=this.rules;c&&(this.rules=a.visit(c)),b&&(this.value=a.visit(b))},f.prototype.isRulesetLike=function(){return this.rules||!this.isCharset()},f.prototype.isCharset=function(){return"@charset"===this.name},f.prototype.genCSS=function(a,b){var c=this.value,d=this.rules;b.add(this.name,this.currentFileInfo,this.index),c&&(b.add(" "),c.genCSS(a,b)),d?this.outputRuleset(a,b,[d]):b.add(";")},f.prototype.eval=function(a){var b=this.value,c=this.rules;return b&&(b=b.eval(a)),c&&(c=c.eval(a),c.root=!0),new f(this.name,b,c,this.index,this.currentFileInfo,this.debugInfo)},f.prototype.variable=function(a){return this.rules?e.prototype.variable.call(this.rules,a):void 0},f.prototype.find=function(){return this.rules?e.prototype.find.apply(this.rules,arguments):void 0},f.prototype.rulesets=function(){return this.rules?e.prototype.rulesets.apply(this.rules):void 0},f.prototype.markReferenced=function(){var a,b;if(this.isReferenced=!0,this.rules)for(b=this.rules.rules,a=0;ae;e++)c[e].genCSS(a,b);return b.add("}"),a.tabLevel--,void 0}var f="\n"+Array(a.tabLevel).join(" "),g=f+" ";if(d){for(b.add(" {"+g),c[0].genCSS(a,b),e=1;d>e;e++)b.add(g),c[e].genCSS(a,b);b.add(f+"}")}else b.add(" {"+f+"}");a.tabLevel--},b.exports=f},{"./node":66,"./ruleset":72}],54:[function(a,b){var d=a("./node"),e=a("./paren"),f=a("./combinator"),g=function(a,b,c,d){this.combinator=a instanceof f?a:new f(a),this.value="string"==typeof b?b.trim():b?b:"",this.index=c,this.currentFileInfo=d};g.prototype=new d,g.prototype.type="Element",g.prototype.accept=function(a){var b=this.value;this.combinator=a.visit(this.combinator),"object"==typeof b&&(this.value=a.visit(b))},g.prototype.eval=function(a){return new g(this.combinator,this.value.eval?this.value.eval(a):this.value,this.index,this.currentFileInfo)},g.prototype.genCSS=function(a,b){b.add(this.toCSS(a),this.currentFileInfo,this.index)},g.prototype.toCSS=function(a){a=a||{};var b=this.value,c=a.firstSelector;return b instanceof e&&(a.firstSelector=!0),b=b.toCSS?b.toCSS(a):b,a.firstSelector=c,""===b&&"&"===this.combinator.value.charAt(0)?"":this.combinator.toCSS(a)+b},b.exports=g},{"./combinator":47,"./node":66,"./paren":68}],55:[function(a,b){var d=a("./node"),e=a("./paren"),f=a("./comment"),g=function(a){if(this.value=a,!a)throw new Error("Expression requires a array parameter")};g.prototype=new d,g.prototype.type="Expression",g.prototype.accept=function(a){this.value=a.visitArray(this.value)},g.prototype.eval=function(a){var b,c=this.parens&&!this.parensInOp,d=!1;return c&&a.inParenthesis(),this.value.length>1?b=new g(this.value.map(function(b){return b.eval(a)})):1===this.value.length?(this.value[0].parens&&!this.value[0].parensInOp&&(d=!0),b=this.value[0].eval(a)):b=this,c&&a.outOfParenthesis(),this.parens&&this.parensInOp&&!a.isMathOn()&&!d&&(b=new e(b)),b},g.prototype.genCSS=function(a,b){for(var c=0;c0&&d.length&&""===d[0].combinator.value&&(d[0].combinator.value=" "),b=b.concat(a[c].elements);this.selfSelectors=[{elements:b}]},b.exports=e},{"./node":66}],57:[function(a,b){var d=a("./node"),e=a("./media"),f=a("./url"),g=a("./quoted"),h=a("./ruleset"),i=a("./anonymous"),j=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)}};j.prototype=new d,j.prototype.type="Import",j.prototype.accept=function(a){this.features&&(this.features=a.visit(this.features)),this.path=a.visit(this.path),!this.options.inline&&this.root&&(this.root=a.visit(this.root))},j.prototype.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(";"))},j.prototype.getPath=function(){return this.path instanceof g?this.path.value:this.path instanceof f?this.path.value.value:null},j.prototype.isVariableImport=function(){var a=this.path;return a instanceof f&&(a=a.value),a instanceof g?a.containsVariables():!0},j.prototype.evalForImport=function(a){var b=this.path;return b instanceof f&&(b=b.value),new j(b.eval(a),this.features,this.options,this.index,this.currentFileInfo)},j.prototype.evalPath=function(a){var b=this.path.eval(a),c=this.currentFileInfo&&this.currentFileInfo.rootpath;if(!(b instanceof f)){if(c){var d=b.value;d&&a.isPathRelative(d)&&(b.value=c+d)}b.value=a.normalizePath(b.value)}return b},j.prototype.eval=function(a){var b,c=this.features&&this.features.eval(a);if(this.skip&&("function"==typeof this.skip&&(this.skip=this.skip()),this.skip))return[];if(this.options.inline){var d=new i(this.root,0,{filename:this.importedFilename},!0,!0);return this.features?new e([d],this.features.value):[d]}if(this.css){var f=new j(this.evalPath(a),c,this.options,this.index);if(!f.css&&this.error)throw this.error;return f}return b=new h(null,this.root.rules.slice(0)),b.evalImports(a),this.features?new e(b.rules,this.features.value):b.rules},b.exports=j},{"./anonymous":42,"./media":62,"./node":66,"./quoted":69,"./ruleset":72,"./url":76}],58:[function(a,b){var d={};d.Alpha=a("./alpha"),d.Color=a("./color"),d.Directive=a("./directive"),d.DetachedRuleset=a("./detached-ruleset"),d.Operation=a("./operation"),d.Dimension=a("./dimension"),d.Unit=a("./unit"),d.Keyword=a("./keyword"),d.Variable=a("./variable"),d.Ruleset=a("./ruleset"),d.Element=a("./element"),d.Attribute=a("./attribute"),d.Combinator=a("./combinator"),d.Selector=a("./selector"),d.Quoted=a("./quoted"),d.Expression=a("./expression"),d.Rule=a("./rule"),d.Call=a("./call"),d.URL=a("./url"),d.Import=a("./import"),d.mixin={Call:a("./mixin-call"),Definition:a("./mixin-definition")},d.Comment=a("./comment"),d.Anonymous=a("./anonymous"),d.Value=a("./value"),d.JavaScript=a("./javascript"),d.Assignment=a("./assignment"),d.Condition=a("./condition"),d.Paren=a("./paren"),d.Media=a("./media"),d.UnicodeDescriptor=a("./unicode-descriptor"),d.Negative=a("./negative"),d.Extend=a("./extend"),d.RulesetCall=a("./ruleset-call"),b.exports=d},{"./alpha":41,"./anonymous":42,"./assignment":43,"./attribute":44,"./call":45,"./color":46,"./combinator":47,"./comment":48,"./condition":49,"./detached-ruleset":51,"./dimension":52,"./directive":53,"./element":54,"./expression":55,"./extend":56,"./import":57,"./javascript":59,"./keyword":61,"./media":62,"./mixin-call":63,"./mixin-definition":64,"./negative":65,"./operation":67,"./paren":68,"./quoted":69,"./rule":70,"./ruleset":72,"./ruleset-call":71,"./selector":73,"./unicode-descriptor":74,"./unit":75,"./url":76,"./value":77,"./variable":78}],59:[function(a,b){var d=a("./js-eval-node"),e=a("./dimension"),f=a("./quoted"),g=a("./anonymous"),h=function(a,b,c,d){this.escaped=b,this.expression=a,this.index=c,this.currentFileInfo=d};h.prototype=new d,h.prototype.type="JavaScript",h.prototype.eval=function(a){var b=this.evaluateJavaScript(this.expression,a);return"number"==typeof b?new e(b):"string"==typeof b?new f('"'+b+'"',b,this.escaped,this.index):Array.isArray(b)?new g(b.join(", ")):new g(b)},b.exports=h},{"./anonymous":42,"./dimension":52,"./js-eval-node":60,"./quoted":69}],60:[function(a,b){var d=a("./node"),e=a("./variable"),f=function(){};f.prototype=new d,f.prototype.evaluateJavaScript=function(a,b){var c,d=this,f={};if(void 0!==b.javascriptEnabled&&!b.javascriptEnabled)throw{message:"You are using JavaScript, which has been disabled.",filename:this.currentFileInfo.filename,index:this.index};a=a.replace(/@\{([\w-]+)\}/g,function(a,c){return d.jsify(new e("@"+c,d.index,d.currentFileInfo).eval(b))});try{a=new Function("return ("+a+")")}catch(g){throw{message:"JavaScript evaluation error: "+g.message+" from `"+a+"`",filename:this.currentFileInfo.filename,index:this.index}}var h=b.frames[0].variables();for(var i in h)h.hasOwnProperty(i)&&(f[i.slice(1)]={value:h[i].value,toJS:function(){return this.value.eval(b).toCSS()}});try{c=a.call(f)}catch(g){throw{message:"JavaScript evaluation error: '"+g.name+": "+g.message.replace(/["]/g,"'")+"'",filename:this.currentFileInfo.filename,index:this.index}}return c},f.prototype.jsify=function(a){return Array.isArray(a.value)&&a.value.length>1?"["+a.value.map(function(a){return a.toCSS()}).join(", ")+"]":a.toCSS()},b.exports=f},{"./node":66,"./variable":78}],61:[function(a,b){var d=a("./node"),e=function(a){this.value=a};e.prototype=new d,e.prototype.type="Keyword",e.prototype.genCSS=function(a,b){if("%"===this.value)throw{type:"Syntax",message:"Invalid % without number"};b.add(this.value)},e.True=new e("true"),e.False=new e("false"),b.exports=e},{"./node":66}],62:[function(a,b){var d=a("./ruleset"),e=a("./value"),f=a("./element"),g=a("./selector"),h=a("./anonymous"),i=a("./expression"),j=a("./directive"),k=function(a,b,c,f){this.index=c,this.currentFileInfo=f;var g=this.emptySelectors();this.features=new e(b),this.rules=[new d(g,a)],this.rules[0].allowImports=!0};k.prototype=new j,k.prototype.type="Media",k.prototype.isRulesetLike=!0,k.prototype.accept=function(a){this.features&&(this.features=a.visit(this.features)),this.rules&&(this.rules=a.visitArray(this.rules))},k.prototype.genCSS=function(a,b){b.add("@media ",this.currentFileInfo,this.index),this.features.genCSS(a,b),this.outputRuleset(a,b,this.rules)},k.prototype.eval=function(a){a.mediaBlocks||(a.mediaBlocks=[],a.mediaPath=[]);var b=new k(null,[],this.index,this.currentFileInfo);this.debugInfo&&(this.rules[0].debugInfo=this.debugInfo,b.debugInfo=this.debugInfo);var c=!1;a.strictMath||(c=!0,a.strictMath=!0);try{b.features=this.features.eval(a)}finally{c&&(a.strictMath=!1)}return a.mediaPath.push(b),a.mediaBlocks.push(b),a.frames.unshift(this.rules[0]),b.rules=[this.rules[0].eval(a)],a.frames.shift(),a.mediaPath.pop(),0===a.mediaPath.length?b.evalTop(a):b.evalNested(a)},k.prototype.variable=function(a){return d.prototype.variable.call(this.rules[0],a)},k.prototype.find=function(){return d.prototype.find.apply(this.rules[0],arguments)},k.prototype.rulesets=function(){return d.prototype.rulesets.apply(this.rules[0])},k.prototype.emptySelectors=function(){var a=new f("","&",this.index,this.currentFileInfo),b=[new g([a],null,null,this.index,this.currentFileInfo)];return b[0].mediaEmpty=!0,b},k.prototype.markReferenced=function(){var a,b=this.rules[0].rules;for(this.rules[0].markReferenced(),this.isReferenced=!0,a=0;a1){var c=this.emptySelectors();b=new d(c,a.mediaBlocks),b.multiMedia=!0}return delete a.mediaBlocks,delete a.mediaPath,b},k.prototype.evalNested=function(a){var b,c,f=a.mediaPath.concat([this]);for(b=0;b0;b--)a.splice(b,0,new h("and"));return new i(a)})),new d([],[])},k.prototype.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;dl;l++){for(r[l]=!0,g.value(l),d=0;d0){for(n=!0,k=0;k0)s=w;else if(s=v,x[v]+x[w]>1)throw{type:"Runtime",message:"Ambiguous use of `default()` found when matching for `"+this.format(e)+"`",index:this.index,filename:this.currentFileInfo.filename};for(k=0;km;m++)if(k=c[m],p=k&&k.name){for(q=!1,n=0;nn;n++)j.push(c[n].value.eval(a));e.prependRule(new g(p,new h(j).eval(a)))}else{if(o=k&&k.value)o=o.eval(a);else{if(!l[m].value)throw{type:"Runtime",message:"wrong number of arguments for "+this.name+" ("+s+" for "+this.arity+")"};o=l[m].value.eval(b),e.resetCache()}e.prependRule(new g(p,o)),d[m]=o}if(l[m].variadic&&c)for(n=r;s>n;n++)d[n]=c[n].value.eval(a);r++}return e},j.prototype.eval=function(a){return new j(this.name,this.params,this.rules,this.condition,this.variadic,this.frames||a.frames.slice(0))},j.prototype.evalCall=function(a,b,c){var k,l,d=[],e=this.frames?this.frames.concat(a.frames):a.frames,j=this.evalParams(a,new i.Eval(a,e),b,d);return j.prependRule(new g("@arguments",new h(d).eval(a))),k=this.rules.slice(0),l=new f(null,k),l.originalRuleset=this,l=l.eval(new i.Eval(a,[this,j].concat(e))),c&&(l=this.makeImportant.apply(l)),l},j.prototype.matchCondition=function(a,b){return this.condition&&!this.condition.eval(new i.Eval(b,[this.evalParams(b,new i.Eval(b,this.frames?this.frames.concat(b.frames):b.frames),a,[])].concat(this.frames).concat(b.frames)))?!1:!0},j.prototype.matchArgs=function(a,b){var d,c=a&&a.length||0;if(this.variadic){if(cthis.params.length)return!1}d=Math.min(c,this.arity);for(var e=0;d>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},b.exports=j},{"../contexts":10,"./element":54,"./expression":55,"./rule":70,"./ruleset":72,"./selector":73}],65:[function(a,b){var d=a("./node"),e=a("./operation"),f=a("./dimension"),g=function(a){this.value=a};g.prototype=new d,g.prototype.type="Negative",g.prototype.genCSS=function(a,b){b.add("-"),this.value.genCSS(a,b)},g.prototype.eval=function(a){return a.isMathOn()?new e("*",[new f(-1),this.value]).eval(a):new g(this.value.eval(a))},b.exports=g},{"./dimension":52,"./node":66,"./operation":67}],66:[function(a,b){var d=function(){};d.prototype.toCSS=function(a){var b=[];return this.genCSS(a,{add:function(a){b.push(a)},isEmpty:function(){return 0===b.length}}),b.join("")},d.prototype.genCSS=function(a,b){b.add(this.value)},d.prototype.accept=function(a){this.value=a.visit(this.value)},d.prototype.eval=function(){return this},d.prototype._operate=function(a,b,c,d){switch(b){case"+":return c+d;case"-":return c-d;case"*":return c*d;case"/":return c/d}},d.prototype.fround=function(a,b){var c=a&&a.numPrecision;return null==c?b:Number((b+2e-16).toFixed(c))},d.compare=function(a,b){if(a.compare&&"Quoted"!==b.type&&"Anonymous"!==b.type)return a.compare(b);if(b.compare)return-b.compare(a);if(a.type!==b.type)return void 0;if(a=a.value,b=b.value,!Array.isArray(a))return a===b?0:void 0;if(a.length!==b.length)return void 0;for(var c=0;ca?-1:a===b?0:a>b?1:void 0},b.exports=d},{}],67:[function(a,b){var d=a("./node"),e=a("./color"),f=a("./dimension"),g=function(a,b,c){this.op=a.trim(),this.operands=b,this.isSpaced=c};g.prototype=new d,g.prototype.type="Operation",g.prototype.accept=function(a){this.operands=a.visit(this.operands)},g.prototype.eval=function(a){var b=this.operands[0].eval(a),c=this.operands[1].eval(a);if(a.isMathOn()){if(b instanceof f&&c instanceof e&&(b=b.toColor()),c instanceof f&&b instanceof e&&(c=c.toColor()),!b.operate)throw{type:"Operation",message:"Operation on an invalid type"};return b.operate(a,this.op,c)}return new g(this.op,[b,c],this.isSpaced)},g.prototype.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)},b.exports=g},{"./color":46,"./dimension":52,"./node":66}],68:[function(a,b){var d=a("./node"),e=function(a){this.value=a};e.prototype=new d,e.prototype.type="Paren",e.prototype.genCSS=function(a,b){b.add("("),this.value.genCSS(a,b),b.add(")")},e.prototype.eval=function(a){return new e(this.value.eval(a))},b.exports=e},{"./node":66}],69:[function(a,b){var d=a("./node"),e=a("./js-eval-node"),f=a("./variable"),g=function(a,b,c,d,e){this.escaped=c,this.value=b||"",this.quote=a.charAt(0),this.index=d,this.currentFileInfo=e};g.prototype=new e,g.prototype.type="Quoted",g.prototype.genCSS=function(a,b){this.escaped||b.add(this.quote,this.currentFileInfo,this.index),b.add(this.value),this.escaped||b.add(this.quote)},g.prototype.containsVariables=function(){return this.value.match(/(`([^`]+)`)|@\{([\w-]+)\}/)},g.prototype.eval=function(a){function h(a,b,c){var d=a;do a=d,d=a.replace(b,c);while(a!==d);return d}var b=this,c=this.value,d=function(c,d){return String(b.evaluateJavaScript(d,a))},e=function(c,d){var e=new f("@"+d,b.index,b.currentFileInfo).eval(a,!0);return e instanceof g?e.value:e.toCSS()};return c=h(c,/`([^`]+)`/g,d),c=h(c,/@\{([\w-]+)\}/g,e),new g(this.quote+c+this.quote,c,this.escaped,this.index,this.currentFileInfo)},g.prototype.compare=function(a){return"Quoted"!==a.type||this.escaped||a.escaped?a.toCSS&&this.toCSS()===a.toCSS()?0:void 0:d.numericCompare(this.value,a.value)},b.exports=g},{"./js-eval-node":60,"./node":66,"./variable":78}],70:[function(a,b){function h(a,b){var d,c="",e=b.length,f={add:function(a){c+=a}};for(d=0;e>d;d++)b[d].eval(a).genCSS(a,f);return c}var d=a("./node"),e=a("./value"),f=a("./keyword"),g=function(a,b,c,f,g,h,i,j){this.name=a,this.value=b instanceof d?b:new e([b]),this.important=c?" "+c.trim():"",this.merge=f,this.index=g,this.currentFileInfo=h,this.inline=i||!1,this.variable=void 0!==j?j:a.charAt&&"@"===a.charAt(0)};g.prototype=new d,g.prototype.type="Rule",g.prototype.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)},g.prototype.eval=function(a){var d,b=!1,c=this.name,e=this.variable;"string"!=typeof c&&(c=1===c.length&&c[0]instanceof f?c[0].value:h(a,c),e=!1),"font"!==c||a.strictMath||(b=!0,a.strictMath=!0);try{if(a.importantScope.push({}),d=this.value.eval(a),!this.variable&&"DetachedRuleset"===d.type)throw{message:"Rulesets cannot be evaluated on a property.",index:this.index,filename:this.currentFileInfo.filename};var i=this.important,j=a.importantScope.pop();return!i&&j.important&&(i=j.important),new g(c,d,i,this.merge,this.index,this.currentFileInfo,this.inline,e)}catch(k){throw"number"!=typeof k.index&&(k.index=this.index,k.filename=this.currentFileInfo.filename),k diff --git a/server/files/stylesheets/home.css b/server/files/stylesheets/home.css index 6c8e20c62..7d4220afe 100755 --- a/server/files/stylesheets/home.css +++ b/server/files/stylesheets/home.css @@ -580,6 +580,9 @@ #example .demo.row .ui.label:not(.empty) { margin-bottom: 1em; } +#example .demo.row .ui.progress { + margin-bottom: 2.5em; +} #example .demo.row h4 { font-weight: bold !important; margin: 0em 0em 1em !important;