9 lines
145 KiB
JavaScript
9 lines
145 KiB
JavaScript
/**
|
|
* Less - Leaner CSS v4.2.0
|
|
* http://lesscss.org
|
|
*
|
|
* Copyright (c) 2009-2023, Alexis Sellier <self@cloudhead.net>
|
|
* Licensed under the Apache-2.0 License.
|
|
*
|
|
* @license Apache-2.0
|
|
*/ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).less=t()}(this,function(){"use strict";function e(e){return e.replace(/^[a-z-]+:\/+?[^/]+/,"").replace(/[?&]livereload=\w+/,"").replace(/^\//,"").replace(/\.[a-zA-Z]+$/,"").replace(/[^.\w-]+/g,"-").replace(/\./g,":")}function t(e,t){if(t){for(var i in t.dataset)if(Object.prototype.hasOwnProperty.call(t.dataset,i)){if("env"===i||"dumpLineNumbers"===i||"rootpath"===i||"errorReporting"===i)e[i]=t.dataset[i];else try{e[i]=JSON.parse(t.dataset[i])}catch(n){}}}}var i=function(t,i,n){var r=n.href||"",s="less:"+(n.title||e(r)),o=t.getElementById(s),a=!1,l=t.createElement("style");l.setAttribute("type","text/css"),n.media&&l.setAttribute("media",n.media),l.id=s,l.styleSheet||(l.appendChild(t.createTextNode(i)),a=null!==o&&o.childNodes.length>0&&l.childNodes.length>0&&o.firstChild.nodeValue===l.firstChild.nodeValue);var u=t.getElementsByTagName("head")[0];if(null===o||!1===a){var h=n&&n.nextSibling||null;h?h.parentNode.insertBefore(l,h):u.appendChild(l)}if(o&&!1===a&&o.parentNode.removeChild(o),l.styleSheet)try{l.styleSheet.cssText=i}catch(c){throw Error("Couldn't reassign styleSheet.cssText.")}},n={error:function(e){this._fireEvent("error",e)},warn:function(e){this._fireEvent("warn",e)},info:function(e){this._fireEvent("info",e)},debug:function(e){this._fireEvent("debug",e)},addListener:function(e){this._listeners.push(e)},removeListener:function(e){for(var t=0;t<this._listeners.length;t++)if(this._listeners[t]===e)return void this._listeners.splice(t,1)},_fireEvent:function(e,t){for(var i=0;i<this._listeners.length;i++){var n=this._listeners[i][e];n&&n(t)}},_listeners:[]},r=function(){function e(e,t){this.fileManagers=t||[],e=e||{};for(var i=[],n=i.concat(["encodeBase64","mimeLookup","charsetLookup","getSourceMapGenerator",]),r=0;r<n.length;r++){var s=n[r],o=e[s];o?this[s]=o.bind(e):r<i.length&&this.warn("missing required function in environment - "+s)}}return e.prototype.getFileManager=function(e,t,i,r,s){e||n.warn("getFileManager called with no filename.. Please report this issue. continuing."),void 0===t&&n.warn("getFileManager called with null directory.. Please report this issue. continuing.");var o=this.fileManagers;i.pluginManager&&(o=[].concat(o).concat(i.pluginManager.getFileManagers()));for(var a=o.length-1;a>=0;a--){var l=o[a];if(l[s?"supportsSync":"supports"](e,t,i,r))return l}return null},e.prototype.addFileManager=function(e){this.fileManagers.push(e)},e.prototype.clearFileManagers=function(){this.fileManagers=[]},e}(),s={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",rebeccapurple:"#663399",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"},o={length:{m:1,cm:.01,mm:.001,in:.0254,px:.0254/96,pt:.0254/72,pc:.0254/72*12},duration:{s:1,ms:.001},angle:{rad:1/(2*Math.PI),deg:1/360,grad:1/400,turn:1}},a={colors:s,unitConversions:o},l=function(){function e(){this.parent=null,this.visibilityBlocks=void 0,this.nodeVisible=void 0,this.rootNode=null,this.parsed=null}return Object.defineProperty(e.prototype,"currentFileInfo",{get:function(){return this.fileInfo()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"index",{get:function(){return this.getIndex()},enumerable:!1,configurable:!0}),e.prototype.setParent=function(t,i){function n(t){t&&t instanceof e&&(t.parent=i)}Array.isArray(t)?t.forEach(n):n(t)},e.prototype.getIndex=function(){return this._index||this.parent&&this.parent.getIndex()||0},e.prototype.fileInfo=function(){return this._fileInfo||this.parent&&this.parent.fileInfo()||{}},e.prototype.isRulesetLike=function(){return!1},e.prototype.toCSS=function(e){var t=[];return this.genCSS(e,{add:function(e,i,n){t.push(e)},isEmpty:function(){return 0===t.length}}),t.join("")},e.prototype.genCSS=function(e,t){t.add(this.value)},e.prototype.accept=function(e){this.value=e.visit(this.value)},e.prototype.eval=function(){return this},e.prototype._operate=function(e,t,i,n){switch(t){case"+":return i+n;case"-":return i-n;case"*":return i*n;case"/":return i/n}},e.prototype.fround=function(e,t){var i=e&&e.numPrecision;return i?Number((t+2e-16).toFixed(i)):t},e.compare=function(t,i){if(t.compare&&"Quoted"!==i.type&&"Anonymous"!==i.type)return t.compare(i);if(i.compare)return-i.compare(t);if(t.type===i.type){if(t=t.value,i=i.value,!Array.isArray(t))return t===i?0:void 0;if(t.length===i.length){for(var n=0;n<t.length;n++)if(0!==e.compare(t[n],i[n]))return;return 0}}},e.numericCompare=function(e,t){return e<t?-1:e===t?0:e>t?1:void 0},e.prototype.blocksVisibility=function(){return void 0===this.visibilityBlocks&&(this.visibilityBlocks=0),0!==this.visibilityBlocks},e.prototype.addVisibilityBlock=function(){void 0===this.visibilityBlocks&&(this.visibilityBlocks=0),this.visibilityBlocks=this.visibilityBlocks+1},e.prototype.removeVisibilityBlock=function(){void 0===this.visibilityBlocks&&(this.visibilityBlocks=0),this.visibilityBlocks=this.visibilityBlocks-1},e.prototype.ensureVisibility=function(){this.nodeVisible=!0},e.prototype.ensureInvisibility=function(){this.nodeVisible=!1},e.prototype.isVisible=function(){return this.nodeVisible},e.prototype.visibilityInfo=function(){return{visibilityBlocks:this.visibilityBlocks,nodeVisible:this.nodeVisible}},e.prototype.copyVisibilityInfo=function(e){e&&(this.visibilityBlocks=e.visibilityBlocks,this.nodeVisible=e.nodeVisible)},e}(),u=function(e,t,i){var n=this;Array.isArray(e)?this.rgb=e:e.length>=6?(this.rgb=[],e.match(/.{2}/g).map(function(e,t){t<3?n.rgb.push(parseInt(e,16)):n.alpha=parseInt(e,16)/255})):(this.rgb=[],e.split("").map(function(e,t){t<3?n.rgb.push(parseInt(e+e,16)):n.alpha=parseInt(e+e,16)/255})),this.alpha=this.alpha||("number"==typeof t?t:1),void 0!==i&&(this.value=i)};function h(e,t){return Math.min(Math.max(e,0),t)}function c(e){return"#"+e.map(function(e){return((e=h(Math.round(e),255))<16?"0":"")+e.toString(16)}).join("")}u.prototype=Object.assign(new l,{type:"Color",luma:function(){var e=this.rgb[0]/255,t=this.rgb[1]/255,i=this.rgb[2]/255;return .2126*(e=e<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4))+.7152*(t=t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4))+.0722*(i=i<=.03928?i/12.92:Math.pow((i+.055)/1.055,2.4))},genCSS:function(e,t){t.add(this.toCSS(e))},toCSS:function(e,t){var i,n,r,s=e&&e.compress&&!t,o=[];if(n=this.fround(e,this.alpha),this.value){if(0===this.value.indexOf("rgb"))n<1&&(r="rgba");else{if(0!==this.value.indexOf("hsl"))return this.value;r=n<1?"hsla":"hsl"}}else n<1&&(r="rgba");switch(r){case"rgba":o=this.rgb.map(function(e){return h(Math.round(e),255)}).concat(h(n,1));break;case"hsla":o.push(h(n,1));case"hsl":i=this.toHSL(),o=[this.fround(e,i.h),this.fround(e,100*i.s)+"%",this.fround(e,100*i.l)+"%",].concat(o)}if(r)return r+"("+o.join(","+(s?"":" "))+")";if(i=this.toRGB(),s){var a=i.split("");a[1]===a[2]&&a[3]===a[4]&&a[5]===a[6]&&(i="#"+a[1]+a[3]+a[5])}return i},operate:function(e,t,i){for(var n=[,,,],r=this.alpha*(1-i.alpha)+i.alpha,s=0;s<3;s++)n[s]=this._operate(e,t,this.rgb[s],i.rgb[s]);return new u(n,r)},toRGB:function(){return c(this.rgb)},toHSL:function(){var e,t,i=this.rgb[0]/255,n=this.rgb[1]/255,r=this.rgb[2]/255,s=this.alpha,o=Math.max(i,n,r),a=Math.min(i,n,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 i:e=(n-r)/u+(n<r?6:0);break;case n:e=(r-i)/u+2;break;case r:e=(i-n)/u+4}e/=6}return{h:360*e,s:t,l:l,a:s}},toHSV:function(){var e,t,i=this.rgb[0]/255,n=this.rgb[1]/255,r=this.rgb[2]/255,s=this.alpha,o=Math.max(i,n,r),a=Math.min(i,n,r),l=o-a;if(t=0===o?0:l/o,o===a)e=0;else{switch(o){case i:e=(n-r)/l+(n<r?6:0);break;case n:e=(r-i)/l+2;break;case r:e=(i-n)/l+4}e/=6}return{h:360*e,s:t,v:o,a:s}},toARGB:function(){return c([255*this.alpha].concat(this.rgb))},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:void 0}}),u.fromKeyword=function(e){var t,i=e.toLowerCase();if(s.hasOwnProperty(i)?t=new u(s[i].slice(1)):"transparent"===i&&(t=new u([0,0,0],0)),t)return t.value=e,t};var f=function(e){this.value=e};f.prototype=Object.assign(new l,{type:"Paren",genCSS:function(e,t){t.add("("),this.value.genCSS(e,t),t.add(")")},eval:function(e){return new f(this.value.eval(e))}});var p={"":!0," ":!0,"|":!0},v=function(e){" "===e?(this.value=" ",this.emptyOrWhitespace=!0):(this.value=e?e.trim():"",this.emptyOrWhitespace=""===this.value)};v.prototype=Object.assign(new l,{type:"Combinator",genCSS:function(e,t){var i=e.compress||p[this.value]?"":" ";t.add(i+this.value+i)}});var d=function(e,t,i,n,r,s){this.combinator=e instanceof v?e:new v(e),this.value="string"==typeof t?t.trim():t||"",this.isVariable=i,this._index=n,this._fileInfo=r,this.copyVisibilityInfo(s),this.setParent(this.combinator,this)};d.prototype=Object.assign(new l,{type:"Element",accept:function(e){var t=this.value;this.combinator=e.visit(this.combinator),"object"==typeof t&&(this.value=e.visit(t))},eval:function(e){return new d(this.combinator,this.value.eval?this.value.eval(e):this.value,this.isVariable,this.getIndex(),this.fileInfo(),this.visibilityInfo())},clone:function(){return new d(this.combinator,this.value,this.isVariable,this.getIndex(),this.fileInfo(),this.visibilityInfo())},genCSS:function(e,t){t.add(this.toCSS(e),this.fileInfo(),this.getIndex())},toCSS:function(e){e=e||{};var t=this.value,i=e.firstSelector;return t instanceof f&&(e.firstSelector=!0),t=t.toCSS?t.toCSS(e):t,e.firstSelector=i,""===t&&"&"===this.combinator.value.charAt(0)?"":this.combinator.toCSS(e)+t}});var m={ALWAYS:0,PARENS_DIVISION:1,PARENS:2};function g(e){return Object.prototype.toString.call(e).slice(8,-1)}function $(e){return"Array"===g(e)}function y(e,t){var i;return void 0===t&&(t={}),$(e)?e.map(function(e){return y(e,t)}):"Object"!==g(i=e)||i.constructor!==Object||Object.getPrototypeOf(i)!==Object.prototype?e:(function(){for(var e=0,t=0,i=arguments.length;t<i;t++)e+=arguments[t].length;var n=Array(e),r=0;for(t=0;t<i;t++)for(var s=arguments[t],o=0,a=s.length;o<a;o++,r++)n[r]=s[o];return n})(Object.getOwnPropertyNames(e),Object.getOwnPropertySymbols(e)).reduce(function(i,n){var r,s,o,a,l,u;return $(t.props)&&!t.props.includes(n)||(r=i,s=n,o=y(e[n],t),a=e,l=t.nonenumerable,"enumerable"==(u=({}).propertyIsEnumerable.call(a,s)?"enumerable":"nonenumerable")&&(r[s]=o),l&&"nonenumerable"===u&&Object.defineProperty(r,s,{value:o,enumerable:!1,writable:!0,configurable:!0})),i},{})}function b(e,t){for(var i=e+1,n=null,r=-1;--i>=0&&"\n"!==t.charAt(i);)r++;return"number"==typeof e&&(n=(t.slice(0,e).match(/\n/g)||"").length),{line:n,column:r}}function w(e){var t,i=e.length,n=Array(i);for(t=0;t<i;t++)n[t]=e[t];return n}function _(e){var t={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}function x(e,t){var i=t||{};if(!t._defaults){i={};var n=y(e);i._defaults=n;var r=t?y(t):{};Object.assign(i,n,r)}return i}function S(e,t){if(t&&t._defaults)return t;var i=x(e,t);if(i.strictMath&&(i.math=m.PARENS),i.relativeUrls&&(i.rewriteUrls=2),"string"==typeof i.math)switch(i.math.toLowerCase()){case"always":i.math=m.ALWAYS;break;case"parens-division":i.math=m.PARENS_DIVISION;break;default:i.math=m.PARENS}if("string"==typeof i.rewriteUrls)switch(i.rewriteUrls.toLowerCase()){case"off":i.rewriteUrls=0;break;case"local":i.rewriteUrls=1;break;case"all":i.rewriteUrls=2}return i}function I(e,t){void 0===t&&(t=[]);for(var i=0,n=e.length;i<n;i++){var r=e[i];Array.isArray(r)?I(r,t):void 0!==r&&t.push(r)}return t}function C(e){return null==e}var k=Object.freeze({__proto__:null,getLocation:b,copyArray:w,clone:_,defaults:x,copyOptions:S,merge:function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},flattenArray:I,isNullOrUndefined:C}),P=/(<anonymous>|Function):(\d+):(\d+)/,A=function(e,t,i){Error.call(this);var n=e.filename||i;if(this.message=e.message,this.stack=e.stack,t&&n){var r=t.contents[n],s=b(e.index,r),o=s.line,a=s.column,l=e.call&&b(e.call,r).line,u=r?r.split("\n"):"";if(this.type=e.type||"Syntax",this.filename=n,this.index=e.index,this.line="number"==typeof o?o+1:null,this.column=a,!this.line&&this.stack){var h=this.stack.match(P),c=Function("a","throw new Error()"),f=0;try{c()}catch(p){var v=p.stack.match(P);f=1-parseInt(v[2])}h&&(h[2]&&(this.line=parseInt(h[2])+f),h[3]&&(this.column=parseInt(h[3])))}this.callLine=l+1,this.callExtract=u[l],this.extract=[u[this.line-2],u[this.line-1],u[this.line]]}};if(void 0===Object.create){var R=function(){};R.prototype=Error.prototype,A.prototype=new R}else A.prototype=Object.create(Error.prototype);A.prototype.constructor=A,A.prototype.toString=function(e){e=e||{};var t="",i=this.extract||[],n=[],r=function(e){return e};if(e.stylize){var s=typeof e.stylize;if("function"!==s)throw Error("options.stylize should be a function, got a "+s+"!");r=e.stylize}if(null!==this.line){if("string"==typeof i[0]&&n.push(r(this.line-1+" "+i[0],"grey")),"string"==typeof i[1]){var o=this.line+" ";i[1]&&(o+=i[1].slice(0,this.column)+r(r(r(i[1].substr(this.column,1),"bold")+i[1].slice(this.column+1),"red"),"inverse")),n.push(o)}"string"==typeof i[2]&&n.push(r(this.line+1+" "+i[2],"grey")),n=n.join("\n")+r("","reset")+"\n"}return t+=r(this.type+"Error: "+this.message,"red"),this.filename&&(t+=r(" in ","red")+this.filename),this.line&&(t+=r(" on line "+this.line+", column "+(this.column+1)+":","grey")),t+="\n"+n,this.callLine&&(t+=r("from ","red")+(this.filename||"")+"/n",t+=r(this.callLine,"grey")+" "+this.callExtract+"/n"),t};var M={visitDeeper:!0},E=!1;function V(e){return e}var F=function(){function e(e){this._implementation=e,this._visitInCache={},this._visitOutCache={},E||(function e(t,i){var n,r;for(n in t)switch(typeof(r=t[n])){case"function":r.prototype&&r.prototype.type&&(r.prototype.typeIndex=i++);break;case"object":i=e(r,i)}return i}(e4,1),E=!0)}return e.prototype.visit=function(e){if(!e)return e;var t=e.typeIndex;if(!t)return e.value&&e.value.typeIndex&&this.visit(e.value),e;var i,n=this._implementation,r=this._visitInCache[t],s=this._visitOutCache[t],o=M;if(o.visitDeeper=!0,r||(r=n[i="visit"+e.type]||V,s=n[i+"Out"]||V,this._visitInCache[t]=r,this._visitOutCache[t]=s),r!==V){var a=r.call(n,e,o);e&&n.isReplacing&&(e=a)}if(o.visitDeeper&&e){if(e.length)for(var l=0,u=e.length;l<u;l++)e[l].accept&&e[l].accept(this);else e.accept&&e.accept(this)}return s!=V&&s.call(n,e),e},e.prototype.visitArray=function(e,t){if(!e)return e;var i,n=e.length;if(t||!this._implementation.isReplacing){for(i=0;i<n;i++)this.visit(e[i]);return e}var r=[];for(i=0;i<n;i++){var s=this.visit(e[i]);void 0!==s&&(s.splice?s.length&&this.flatten(s,r):r.push(s))}return r},e.prototype.flatten=function(e,t){var i,n,r,s,o,a;for(t||(t=[]),n=0,i=e.length;n<i;n++)if(void 0!==(r=e[n])){if(r.splice)for(o=0,s=r.length;o<s;o++)void 0!==(a=r[o])&&(a.splice?a.length&&this.flatten(a,t):t.push(a));else t.push(r)}return t},e}(),L={},O=function(e,t,i){if(e)for(var n=0;n<i.length;n++)Object.prototype.hasOwnProperty.call(e,i[n])&&(t[i[n]]=e[i[n]])},N=["paths","rewriteUrls","rootpath","strictImports","insecure","dumpLineNumbers","compress","syncImport","chunkInput","mime","useFileCache","processImports","pluginManager",];L.Parse=function(e){O(e,this,N),"string"==typeof this.paths&&(this.paths=[this.paths])};var D=["paths","compress","math","strictUnits","sourceMap","importMultiple","urlArgs","javascriptEnabled","pluginManager","importantScope","rewriteUrls",];function U(e){return!/^(?:[a-z-]+:|\/|#)/i.test(e)}function B(e){return"."===e.charAt(0)}L.Eval=function(e,t){O(e,this,D),"string"==typeof this.paths&&(this.paths=[this.paths]),this.frames=t||[],this.importantScope=this.importantScope||[]},L.Eval.prototype.enterCalc=function(){this.calcStack||(this.calcStack=[]),this.calcStack.push(!0),this.inCalc=!0},L.Eval.prototype.exitCalc=function(){this.calcStack.pop(),this.calcStack.length||(this.inCalc=!1)},L.Eval.prototype.inParenthesis=function(){this.parensStack||(this.parensStack=[]),this.parensStack.push(!0)},L.Eval.prototype.outOfParenthesis=function(){this.parensStack.pop()},L.Eval.prototype.inCalc=!1,L.Eval.prototype.mathOn=!0,L.Eval.prototype.isMathOn=function(e){return!!this.mathOn&&!!("/"!==e||this.math===m.ALWAYS||this.parensStack&&this.parensStack.length)&&(!(this.math>m.PARENS_DIVISION)||this.parensStack&&this.parensStack.length)},L.Eval.prototype.pathRequiresRewrite=function(e){return(1===this.rewriteUrls?B:U)(e)},L.Eval.prototype.rewritePath=function(e,t){var i;return t=t||"",i=this.normalizePath(t+e),B(e)&&U(t)&&!1===B(i)&&(i="./"+i),i},L.Eval.prototype.normalizePath=function(e){var t,i=e.split("/").reverse();for(e=[];0!==i.length;)switch(t=i.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 q=function(){function e(e){this.imports=[],this.variableImports=[],this._onSequencerEmpty=e,this._currentDepth=0}return e.prototype.addImport=function(e){var t=this,i={callback:e,args:null,isReady:!1};return this.imports.push(i),function(){i.args=Array.prototype.slice.call(arguments,0),i.isReady=!0,t.tryRun()}},e.prototype.addVariableImport=function(e){this.variableImports.push(e)},e.prototype.tryRun=function(){this._currentDepth++;try{for(;;){for(;this.imports.length>0;){var e=this.imports[0];if(!e.isReady)return;this.imports=this.imports.slice(1),e.callback.apply(null,e.args)}if(0===this.variableImports.length)break;var t=this.variableImports[0];this.variableImports=this.variableImports.slice(1),t()}}finally{this._currentDepth--}0===this._currentDepth&&this._onSequencerEmpty&&this._onSequencerEmpty()},e}(),T=function(e,t){this._visitor=new F(this),this._importer=e,this._finish=t,this.context=new L.Eval,this.importCount=0,this.onceFileDetectionMap={},this.recursionDetector={},this._sequencer=new q(this._onSequencerEmpty.bind(this))};T.prototype={isReplacing:!1,run:function(e){try{this._visitor.visit(e)}catch(t){this.error=t}this.isFinished=!0,this._sequencer.tryRun()},_onSequencerEmpty:function(){this.isFinished&&this._finish(this.error)},visitImport:function(e,t){var i=e.options.inline;if(!e.css||i){var n=new L.Eval(this.context,w(this.context.frames)),r=n.frames[0];this.importCount++,e.isVariableImport()?this._sequencer.addVariableImport(this.processImportNode.bind(this,e,n,r)):this.processImportNode(e,n,r)}t.visitDeeper=!1},processImportNode:function(e,t,i){var n,r=e.options.inline;try{n=e.evalForImport(t)}catch(s){s.filename||(s.index=e.getIndex(),s.filename=e.fileInfo().filename),e.css=!0,e.error=s}if(n&&(!n.css||r)){n.options.multiple&&(t.importMultiple=!0);for(var o=void 0===n.css,a=0;a<i.rules.length;a++)if(i.rules[a]===e){i.rules[a]=n;break}var l=this.onImported.bind(this,n,t),u=this._sequencer.addImport(l);this._importer.push(n.getPath(),o,n.fileInfo(),n.options,u)}else this.importCount--,this.isFinished&&this._sequencer.tryRun()},onImported:function(e,t,i,n,r,s){i&&(i.filename||(i.index=e.getIndex(),i.filename=e.fileInfo().filename),this.error=i);var o=this,a=e.options.inline,l=e.options.isPlugin,u=e.options.optional,h=r||s in o.recursionDetector;if(t.importMultiple||(e.skip=!!h||function(){return s in o.onceFileDetectionMap||(o.onceFileDetectionMap[s]=!0,!1)}),!s&&u&&(e.skip=!0),n&&(e.root=n,e.importedFilename=s,!a&&!l&&(t.importMultiple||!h))){o.recursionDetector[s]=!0;var c=this.context;this.context=t;try{this._visitor.visit(n)}catch(f){this.error=f}this.context=c}o.importCount--,o.isFinished&&o._sequencer.tryRun()},visitDeclaration:function(e,t){"DetachedRuleset"===e.value.type?this.context.frames.unshift(e):t.visitDeeper=!1},visitDeclarationOut:function(e){"DetachedRuleset"===e.value.type&&this.context.frames.shift()},visitAtRule:function(e,t){this.context.frames.unshift(e)},visitAtRuleOut:function(e){this.context.frames.shift()},visitMixinDefinition:function(e,t){this.context.frames.unshift(e)},visitMixinDefinitionOut:function(e){this.context.frames.shift()},visitRuleset:function(e,t){this.context.frames.unshift(e)},visitRulesetOut:function(e){this.context.frames.shift()},visitMedia:function(e,t){this.context.frames.unshift(e.rules[0])},visitMediaOut:function(e){this.context.frames.shift()}};var j=function(){function e(e){this.visible=e}return e.prototype.run=function(e){this.visit(e)},e.prototype.visitArray=function(e){if(!e)return e;var t,i=e.length;for(t=0;t<i;t++)this.visit(e[t]);return e},e.prototype.visit=function(e){return e?e.constructor===Array?this.visitArray(e):(!e.blocksVisibility||e.blocksVisibility()||(this.visible?e.ensureVisibility():e.ensureInvisibility(),e.accept(this)),e):e},e}(),z=function(){function e(){this._visitor=new F(this),this.contexts=[],this.allExtendsStack=[[]]}return e.prototype.run=function(e){return(e=this._visitor.visit(e)).allExtends=this.allExtendsStack[0],e},e.prototype.visitDeclaration=function(e,t){t.visitDeeper=!1},e.prototype.visitMixinDefinition=function(e,t){t.visitDeeper=!1},e.prototype.visitRuleset=function(e,t){if(!e.root){var i,n,r,s,o=[],a=e.rules,l=a?a.length:0;for(i=0;i<l;i++)e.rules[i]instanceof e4.Extend&&(o.push(a[i]),e.extendOnEveryPath=!0);var u=e.paths;for(i=0;i<u.length;i++){var h=u[i],c=h[h.length-1].extendList;for((s=c?w(c).concat(o):o)&&(s=s.map(function(e){return e.clone()})),n=0;n<s.length;n++)this.foundExtends=!0,(r=s[n]).findSelfSelectors(h),r.ruleset=e,0===n&&(r.firstExtendOnThisSelectorPath=!0),this.allExtendsStack[this.allExtendsStack.length-1].push(r)}this.contexts.push(e.selectors)}},e.prototype.visitRulesetOut=function(e){e.root||(this.contexts.length=this.contexts.length-1)},e.prototype.visitMedia=function(e,t){e.allExtends=[],this.allExtendsStack.push(e.allExtends)},e.prototype.visitMediaOut=function(e){this.allExtendsStack.length=this.allExtendsStack.length-1},e.prototype.visitAtRule=function(e,t){e.allExtends=[],this.allExtendsStack.push(e.allExtends)},e.prototype.visitAtRuleOut=function(e){this.allExtendsStack.length=this.allExtendsStack.length-1},e}(),G=function(){function e(){this._visitor=new F(this)}return e.prototype.run=function(e){var t=new z;if(this.extendIndices={},t.run(e),!t.foundExtends)return e;e.allExtends=e.allExtends.concat(this.doExtendChaining(e.allExtends,e.allExtends)),this.allExtendsStack=[e.allExtends];var i=this._visitor.visit(e);return this.checkExtendsForNonMatched(e.allExtends),i},e.prototype.checkExtendsForNonMatched=function(e){var t=this.extendIndices;e.filter(function(e){return!e.hasFoundMatches&&1==e.parent_ids.length}).forEach(function(e){var i="_unknown_";try{i=e.selector.toCSS({})}catch(r){}t[e.index+" "+i]||(t[e.index+" "+i]=!0,n.warn("extend '"+i+"' has no matches"))})},e.prototype.doExtendChaining=function(e,t,i){var n,r,s,o,a,l,u,h,c=[],f=this;for(i=i||0,n=0;n<e.length;n++)for(r=0;r<t.length;r++)l=e[n],u=t[r],l.parent_ids.indexOf(u.object_id)>=0||(a=[u.selfSelectors[0]],(s=f.findMatch(l,a)).length&&(l.hasFoundMatches=!0,l.selfSelectors.forEach(function(e){var t=u.visibilityInfo();o=f.extendSelector(s,a,e,l.isVisible()),(h=new e4.Extend(u.selector,u.option,0,u.fileInfo(),t)).selfSelectors=o,o[o.length-1].extendList=[h],c.push(h),h.ruleset=u.ruleset,h.parent_ids=h.parent_ids.concat(u.parent_ids,l.parent_ids),u.firstExtendOnThisSelectorPath&&(h.firstExtendOnThisSelectorPath=!0,u.ruleset.paths.push(o))})));if(c.length){if(this.extendChainCount++,i>100){var p="{unable to calculate}",v="{unable to calculate}";try{p=c[0].selfSelectors[0].toCSS(),v=c[0].selector.toCSS()}catch(d){}throw{message:"extend circular reference detected. One of the circular extends is currently:"+p+":extend("+v+")"}}return c.concat(f.doExtendChaining(c,t,i+1))}return c},e.prototype.visitDeclaration=function(e,t){t.visitDeeper=!1},e.prototype.visitMixinDefinition=function(e,t){t.visitDeeper=!1},e.prototype.visitSelector=function(e,t){t.visitDeeper=!1},e.prototype.visitRuleset=function(e,t){if(!e.root){var i,n,r,s,o=this.allExtendsStack[this.allExtendsStack.length-1],a=[],l=this;for(r=0;r<o.length;r++)for(n=0;n<e.paths.length;n++)if(s=e.paths[n],!e.extendOnEveryPath){var u=s[s.length-1].extendList;u&&u.length||(i=this.findMatch(o[r],s)).length&&(o[r].hasFoundMatches=!0,o[r].selfSelectors.forEach(function(e){var t;t=l.extendSelector(i,s,e,o[r].isVisible()),a.push(t)}))}e.paths=e.paths.concat(a)}},e.prototype.findMatch=function(e,t){var i,n,r,s,o,a,l,u=e.selector.elements,h=[],c=[];for(i=0;i<t.length;i++)for(n=t[i],r=0;r<n.elements.length;r++)for(s=n.elements[r],(e.allowBefore||0===i&&0===r)&&h.push({pathIndex:i,index:r,matched:0,initialCombinator:s.combinator}),a=0;a<h.length;a++)l=h[a],""===(o=s.combinator.value)&&0===r&&(o=" "),!this.isElementValuesEqual(u[l.matched].value,s.value)||l.matched>0&&u[l.matched].combinator.value!==o?l=null:l.matched++,l&&(l.finished=l.matched===u.length,l.finished&&!e.allowAfter&&(r+1<n.elements.length||i+1<t.length)&&(l=null)),l?l.finished&&(l.length=u.length,l.endPathIndex=i,l.endPathElementIndex=r+1,h.length=0,c.push(l)):(h.splice(a,1),a--);return c},e.prototype.isElementValuesEqual=function(e,t){if("string"==typeof e||"string"==typeof t)return e===t;if(e instanceof e4.Attribute)return e.op===t.op&&e.key===t.key&&(e.value&&t.value?(e=e.value.value||e.value)===(t=t.value.value||t.value):!e.value&&!t.value);if(e=e.value,t=t.value,e instanceof e4.Selector){if(!(t instanceof e4.Selector)||e.elements.length!==t.elements.length)return!1;for(var i=0;i<e.elements.length;i++)if(e.elements[i].combinator.value!==t.elements[i].combinator.value&&(0!==i||(e.elements[i].combinator.value||" ")!==(t.elements[i].combinator.value||" "))||!this.isElementValuesEqual(e.elements[i].value,t.elements[i].value))return!1;return!0}return!1},e.prototype.extendSelector=function(e,t,i,n){var r,s,o,a,l,u=0,h=0,c=[];for(r=0;r<e.length;r++)s=t[(a=e[r]).pathIndex],o=new e4.Element(a.initialCombinator,i.elements[0].value,i.elements[0].isVariable,i.elements[0].getIndex(),i.elements[0].fileInfo()),a.pathIndex>u&&h>0&&(c[c.length-1].elements=c[c.length-1].elements.concat(t[u].elements.slice(h)),h=0,u++),l=s.elements.slice(h,a.index).concat([o]).concat(i.elements.slice(1)),u===a.pathIndex&&r>0?c[c.length-1].elements=c[c.length-1].elements.concat(l):(c=c.concat(t.slice(u,a.pathIndex))).push(new e4.Selector(l)),u=a.endPathIndex,(h=a.endPathElementIndex)>=t[u].elements.length&&(h=0,u++);return u<t.length&&h>0&&(c[c.length-1].elements=c[c.length-1].elements.concat(t[u].elements.slice(h)),u++),c=(c=c.concat(t.slice(u,t.length))).map(function(e){var t=e.createDerived(e.elements);return n?t.ensureVisibility():t.ensureInvisibility(),t})},e.prototype.visitMedia=function(e,t){var i=e.allExtends.concat(this.allExtendsStack[this.allExtendsStack.length-1]);i=i.concat(this.doExtendChaining(i,e.allExtends)),this.allExtendsStack.push(i)},e.prototype.visitMediaOut=function(e){var t=this.allExtendsStack.length-1;this.allExtendsStack.length=t},e.prototype.visitAtRule=function(e,t){var i=e.allExtends.concat(this.allExtendsStack[this.allExtendsStack.length-1]);i=i.concat(this.doExtendChaining(i,e.allExtends)),this.allExtendsStack.push(i)},e.prototype.visitAtRuleOut=function(e){var t=this.allExtendsStack.length-1;this.allExtendsStack.length=t},e}(),W=function(){function e(){this.contexts=[[]],this._visitor=new F(this)}return e.prototype.run=function(e){return this._visitor.visit(e)},e.prototype.visitDeclaration=function(e,t){t.visitDeeper=!1},e.prototype.visitMixinDefinition=function(e,t){t.visitDeeper=!1},e.prototype.visitRuleset=function(e,t){var i,n=this.contexts[this.contexts.length-1],r=[];this.contexts.push(r),e.root||((i=e.selectors)&&(i=i.filter(function(e){return e.getIsOutput()}),e.selectors=i.length?i:i=null,i&&e.joinSelectors(r,n,i)),i||(e.rules=null),e.paths=r)},e.prototype.visitRulesetOut=function(e){this.contexts.length=this.contexts.length-1},e.prototype.visitMedia=function(e,t){var i=this.contexts[this.contexts.length-1];e.rules[0].root=0===i.length||i[0].multiMedia},e.prototype.visitAtRule=function(e,t){var i=this.contexts[this.contexts.length-1];e.rules&&e.rules.length&&(e.rules[0].root=e.isRooted||0===i.length||null)},e}(),H=function(){function e(e){this._visitor=new F(this),this._context=e}return e.prototype.containsSilentNonBlockedChild=function(e){var t;if(!e)return!1;for(var i=0;i<e.length;i++)if((t=e[i]).isSilent&&t.isSilent(this._context)&&!t.blocksVisibility())return!0;return!1},e.prototype.keepOnlyVisibleChilds=function(e){e&&e.rules&&(e.rules=e.rules.filter(function(e){return e.isVisible()}))},e.prototype.isEmpty=function(e){return!e||!e.rules||0===e.rules.length},e.prototype.hasVisibleSelector=function(e){return!(!e||!e.paths)&&e.paths.length>0},e.prototype.resolveVisibility=function(e){if(!e.blocksVisibility()){if(this.isEmpty(e))return;return e}var t=e.rules[0];if(this.keepOnlyVisibleChilds(t),!this.isEmpty(t))return e.ensureVisibility(),e.removeVisibilityBlock(),e},e.prototype.isVisibleRuleset=function(e){return!!e.firstRoot||!this.isEmpty(e)&&!(!e.root&&!this.hasVisibleSelector(e))},e}(),J=function(e){this._visitor=new F(this),this._context=e,this.utils=new H(e)};J.prototype={isReplacing:!0,run:function(e){return this._visitor.visit(e)},visitDeclaration:function(e,t){if(!e.blocksVisibility()&&!e.variable)return e},visitMixinDefinition:function(e,t){e.frames=[]},visitExtend:function(e,t){},visitComment:function(e,t){if(!e.blocksVisibility()&&!e.isSilent(this._context))return e},visitMedia:function(e,t){var i=e.rules[0].rules;return e.accept(this._visitor),t.visitDeeper=!1,this.utils.resolveVisibility(e,i)},visitImport:function(e,t){if(!e.blocksVisibility())return e},visitAtRule:function(e,t){return e.rules&&e.rules.length?this.visitAtRuleWithBody(e,t):this.visitAtRuleWithoutBody(e,t)},visitAnonymous:function(e,t){if(!e.blocksVisibility())return e.accept(this._visitor),e},visitAtRuleWithBody:function(e,t){var i,n,r,s,o=(n=(i=e).rules,1!==(s=(r=i).rules).length||s[0].paths&&0!==s[0].paths.length?n:n[0].rules);return e.accept(this._visitor),t.visitDeeper=!1,this.utils.isEmpty(e)||this._mergeRules(e.rules[0].rules),this.utils.resolveVisibility(e,o)},visitAtRuleWithoutBody:function(e,t){if(!e.blocksVisibility()){if("@charset"===e.name){if(this.charset){if(e.debugInfo){var i=new e4.Comment("/* "+e.toCSS(this._context).replace(/\n/g,"")+" */\n");return i.debugInfo=e.debugInfo,this._visitor.visit(i)}return}this.charset=!0}return e}},checkValidNodes:function(e,t){if(e)for(var i=0;i<e.length;i++){var n=e[i];if(t&&n instanceof e4.Declaration&&!n.variable)throw{message:"Properties must be inside selector blocks. They cannot be in the root",index:n.getIndex(),filename:n.fileInfo()&&n.fileInfo().filename};if(n instanceof e4.Call)throw{message:"Function '"+n.name+"' did not return a root node",index:n.getIndex(),filename:n.fileInfo()&&n.fileInfo().filename};if(n.type&&!n.allowRoot)throw{message:n.type+" node returned by a function is not valid here",index:n.getIndex(),filename:n.fileInfo()&&n.fileInfo().filename}}},visitRuleset:function(e,t){var i,n=[];if(this.checkValidNodes(e.rules,e.firstRoot),e.root)e.accept(this._visitor),t.visitDeeper=!1;else{this._compileRulesetPaths(e);for(var r=e.rules,s=r?r.length:0,o=0;o<s;)(i=r[o])&&i.rules?(n.push(this._visitor.visit(i)),r.splice(o,1),s--):o++;s>0?e.accept(this._visitor):e.rules=null,t.visitDeeper=!1}return e.rules&&(this._mergeRules(e.rules),this._removeDuplicateRules(e.rules)),this.utils.isVisibleRuleset(e)&&(e.ensureVisibility(),n.splice(0,0,e)),1===n.length?n[0]:n},_compileRulesetPaths:function(e){e.paths&&(e.paths=e.paths.filter(function(e){var t;for(" "===e[0].elements[0].combinator.value&&(e[0].elements[0].combinator=new e4.Combinator("")),t=0;t<e.length;t++)if(e[t].isVisible()&&e[t].getIsOutput())return!0;return!1}))},_removeDuplicateRules:function(e){if(e){var t,i,n,r={};for(n=e.length-1;n>=0;n--)if((i=e[n])instanceof e4.Declaration){if(r[i.name]){(t=r[i.name])instanceof e4.Declaration&&(t=r[i.name]=[r[i.name].toCSS(this._context)]);var s=i.toCSS(this._context);-1!==t.indexOf(s)?e.splice(n,1):t.push(s)}else r[i.name]=i}}},_mergeRules:function(e){if(e){for(var t={},i=[],n=0;n<e.length;n++){var r=e[n];if(r.merge){var s=r.name;t[s]?e.splice(n--,1):i.push(t[s]=[]),t[s].push(r)}}i.forEach(function(e){if(e.length>0){var t=e[0],i=[],n=[new e4.Expression(i)];e.forEach(function(e){"+"===e.merge&&i.length>0&&n.push(new e4.Expression(i=[])),i.push(e.value),t.important=t.important||e.important}),t.value=new e4.Value(n)}})}}};var Q={Visitor:F,ImportVisitor:T,MarkVisibleSelectorsVisitor:j,ExtendVisitor:G,JoinSelectorVisitor:W,ToCSSVisitor:J},K=function(){var e,t,i,n,r,s,o,a=[],l={};function u(i){for(var n,a,h,c=l.i,f=t,p=l.i-o,v=l.i+s.length-p,d=l.i+=i,m=e;l.i<v;l.i++){if(n=m.charCodeAt(l.i),l.autoCommentAbsorb&&47===n){if("/"===(a=m.charAt(l.i+1))){h={index:l.i,isLineComment:!0};var g=m.indexOf("\n",l.i+2);g<0&&(g=v),l.i=g,h.text=m.substr(h.index,l.i-h.index),l.commentStore.push(h);continue}if("*"===a){var $=m.indexOf("*/",l.i+2);if($>=0){h={index:l.i,text:m.substr(l.i,$+2-l.i),isLineComment:!1},l.i+=h.text.length-1,l.commentStore.push(h);continue}}break}if(32!==n&&10!==n&&9!==n&&13!==n)break}if(s=s.slice(i+l.i-d+p),o=l.i,!s.length){if(t<r.length-1)return s=r[++t],u(0),!0;l.finished=!0}return c!==l.i||f!==t}return l.save=function(){o=l.i,a.push({current:s,i:l.i,j:t})},l.restore=function(e){(l.i>i||l.i===i&&e&&!n)&&(i=l.i,n=e);var r=a.pop();s=r.current,o=l.i=r.i,t=r.j},l.forget=function(){a.pop()},l.isWhitespace=function(t){var i=l.i+(t||0),n=e.charCodeAt(i);return 32===n||13===n||9===n||10===n},l.$re=function(e){l.i>o&&(s=s.slice(l.i-o),o=l.i);var t=e.exec(s);return t?(u(t[0].length),"string"==typeof t?t:1===t.length?t[0]:t):null},l.$char=function(t){return e.charAt(l.i)!==t?null:(u(1),t)},l.$peekChar=function(t){return e.charAt(l.i)!==t?null:t},l.$str=function(t){for(var i=t.length,n=0;n<i;n++)if(e.charAt(l.i+n)!==t.charAt(n))return null;return u(i),t},l.$quoted=function(t){var i=t||l.i,n=e.charAt(i);if("'"===n||'"'===n){for(var r=e.length,s=i,o=1;o+s<r;o++)switch(e.charAt(o+s)){case"\\":o++;continue;case"\r":case"\n":break;case n:var a=e.substr(s,o+1);return t||0===t?[n,a]:(u(o+1),a)}return null}},l.$parseUntil=function(t){var i,n="",r=null,s=!1,o=0,a=[],h=[],c=e.length,f=l.i,p=l.i,v=l.i,d=!0;i="string"==typeof t?function(e){return e===t}:function(e){return t.test(e)};do{var m=e.charAt(v);if(0===o&&i(m))(r=e.substr(p,v-p))?h.push(r):h.push(" "),r=h,u(v-f),d=!1;else{if(s){"*"===m&&"/"===e.charAt(v+1)&&(v++,o--,s=!1),v++;continue}switch(m){case"\\":v++,m=e.charAt(v),h.push(e.substr(p,v-p+1)),p=v+1;break;case"/":"*"===e.charAt(v+1)&&(v++,s=!0,o++);break;case"'":case'"':(n=l.$quoted(v))?(h.push(e.substr(p,v-p),n),p=(v+=n[1].length-1)+1):(u(v-f),r=m,d=!1);break;case"{":a.push("}"),o++;break;case"(":a.push(")"),o++;break;case"[":a.push("]"),o++;break;case"}":case")":case"]":var g=a.pop();m===g?o--:(u(v-f),r=g,d=!1)}++v>c&&(d=!1)}}while(d);return r||null},l.autoCommentAbsorb=!0,l.commentStore=[],l.finished=!1,l.peek=function(t){if("string"==typeof t){for(var i=0;i<t.length;i++)if(e.charAt(l.i+i)!==t.charAt(i))return!1;return!0}return t.test(s)},l.peekChar=function(t){return e.charAt(l.i)===t},l.currentChar=function(){return e.charAt(l.i)},l.prevChar=function(){return e.charAt(l.i-1)},l.getInput=function(){return e},l.peekNotNumeric=function(){var t=e.charCodeAt(l.i);return t>57||t<43||47===t||44===t},l.start=function(n,a,h){e=n,l.i=t=o=i=0,s=(r=a?function(e,t){var i,n,r,s,o,a,l,u,h,c=e.length,f=0,p=0,v=[],d=0;function m(t){var i=o-d;(!(i<512)||t)&&i&&(v.push(e.slice(d,o+1)),d=o+1)}for(o=0;o<c;o++)if(!((l=e.charCodeAt(o))>=97&&l<=122||l<34))switch(l){case 40:p++,n=o;continue;case 41:if(--p<0)return t("missing opening `(`",o);continue;case 59:p||m();continue;case 123:f++,i=o;continue;case 125:if(--f<0)return t("missing opening `{`",o);f||p||m();continue;case 92:if(o<c-1){o++;continue}return t("unescaped `\\`",o);case 34:case 39:case 96:for(h=0,a=o,o+=1;o<c;o++)if(!((u=e.charCodeAt(o))>96)){if(u==l){h=1;break}if(92==u){if(o==c-1)return t("unescaped `\\`",o);o++}}if(h)continue;return t("unmatched `"+String.fromCharCode(l)+"`",a);case 47:if(p||o==c-1)continue;if(47==(u=e.charCodeAt(o+1)))for(o+=2;o<c&&(!((u=e.charCodeAt(o))<=13)||10!=u&&13!=u);o++);else if(42==u){for(r=a=o,o+=2;o<c-1&&(125==(u=e.charCodeAt(o))&&(s=o),42!=u||47!=e.charCodeAt(o+1));o++);if(o==c-1)return t("missing closing `*/`",a);o++}continue;case 42:if(o<c-1&&47==e.charCodeAt(o+1))return t("unmatched `/*`",o);continue}return 0!==f?t(r>i&&s>r?"missing closing `}` or `*/`":"missing closing `}`",i):0!==p?t("missing closing `)`",n):(m(!0),v)}(n,h):[n])[0],u(0)},l.end=function(){var t,r=l.i>=e.length;return l.i<i&&(t=n,l.i=i),{isFinished:r,furthest:l.i,furthestPossibleErrorMessage:t,furthestReachedEnd:l.i>=e.length-1,furthestChar:e[l.i]}},l},Z=function e(t){return{_data:{},add:function(e,t){e=e.toLowerCase(),this._data.hasOwnProperty(e),this._data[e]=t},addMultiple:function(e){var t=this;Object.keys(e).forEach(function(i){t.add(i,e[i])})},get:function(e){return this._data[e]||t&&t.get(e)},getLocalFunctions:function(){return this._data},inherit:function(){return e(this)},create:function(t){return e(t)}}}(null),Y={queryInParens:!0},X={queryInParens:!0},ee=function e(t,i,n,r){r=r||0;var s,o=K();function a(e,t){throw new A({index:o.i,filename:n.filename,type:t||"Syntax",message:e},i)}function l(e,t){var i=e instanceof Function?e.call(s):o.$re(e);if(i)return i;a(t||("string"==typeof e?"expected '"+e+"' got '"+o.currentChar()+"'":"unexpected token"))}function u(e,t){if(o.$char(e))return e;a(t||"expected '"+e+"' got '"+o.currentChar()+"'")}function h(e){var t=n.filename;return{lineNumber:b(e,o.getInput()).line+1,fileName:t}}return{parserInput:o,imports:i,fileInfo:n,parseNode:function(e,t,a){var l,u=[],h=o;try{h.start(e,!1,function(e,t){a({message:e,index:t+r})});for(var c=0,f=void 0;f=t[c];c++)l=s[f](),u.push(l||null);h.end().isFinished?a(null,u):a(!0,null)}catch(p){throw new A({index:p.index+r,message:p.message},i,n.filename)}},parse:function(r,l,u){var h,c,f,p,v=null,d="";if(u&&u.disablePluginRule&&(s.plugin=function(){o.$re(/^@plugin?\s+/)&&a("@plugin statements are not allowed when disablePluginRule is set to true")}),c=u&&u.globalVars?e.serializeVars(u.globalVars)+"\n":"",f=u&&u.modifyVars?"\n"+e.serializeVars(u.modifyVars):"",t.pluginManager)for(var m=t.pluginManager.getPreProcessors(),g=0;g<m.length;g++)r=m[g].process(r,{context:t,imports:i,fileInfo:n});(c||u&&u.banner)&&(d=(u&&u.banner?u.banner:"")+c,(p=i.contentsIgnoredChars)[n.filename]=p[n.filename]||0,p[n.filename]+=d.length),r=d+(r=r.replace(/\r\n?/g,"\n")).replace(/^\uFEFF/,"")+f,i.contents[n.filename]=r;try{o.start(r,t.chunkInput,function(e,t){throw new A({index:t,type:"Parse",message:e,filename:n.filename},i)}),e4.Node.prototype.parse=this,h=new e4.Ruleset(null,this.parsers.primary()),e4.Node.prototype.rootNode=h,h.root=!0,h.firstRoot=!0,h.functionRegistry=Z.inherit()}catch($){return l(new A($,i,n.filename))}var y=o.end();if(!y.isFinished){var b=y.furthestPossibleErrorMessage;b||(b="Unrecognised input","}"===y.furthestChar?b+=". Possibly missing opening '{'":")"===y.furthestChar?b+=". Possibly missing opening '('":y.furthestReachedEnd&&(b+=". Possibly missing something")),v=new A({type:"Parse",message:b,index:y.furthest,filename:n.filename},i)}var w=function(e){return(e=v||e||i.error)?(e instanceof A||(e=new A(e,i,n.filename)),l(e)):l(null,h)};if(!1===t.processImports)return w();new Q.ImportVisitor(i,w).run(h)},parsers:s={primary:function(){for(var e,t=this.mixin,i=[];;){for(;e=this.comment();)i.push(e);if(o.finished||o.peek("}"))break;if(e=this.extendRule())i=i.concat(e);else if(e=t.definition()||this.declaration()||t.call(!1,!1)||this.ruleset()||this.variableCall()||this.entities.call()||this.atrule())i.push(e);else{for(var n=!1;o.$char(";");)n=!0;if(!n)break}}return i},comment:function(){if(o.commentStore.length){var e=o.commentStore.shift();return new e4.Comment(e.text,e.isLineComment,e.index+r,n)}},entities:{mixinLookup:function(){return s.mixin.call(!0,!0)},quoted:function(e){var t,i=o.i,s=!1;if(o.save(),o.$char("~"))s=!0;else if(e)return void o.restore();if(t=o.$quoted())return o.forget(),new e4.Quoted(t.charAt(0),t.substr(1,t.length-2),s,i+r,n);o.restore()},keyword:function(){var e=o.$char("%")||o.$re(/^\[?(?:[\w-]|\\(?:[A-Fa-f0-9]{1,6} ?|[^A-Fa-f0-9]))+\]?/);if(e)return e4.Color.fromKeyword(e)||new e4.Keyword(e)},call:function(){var e,t,i,s=o.i;if(!o.peek(/^url\(/i)){if(o.save(),e=o.$re(/^([\w-]+|%|~|progid:[\w.]+)\(/)){if(e=e[1],(i=this.customFuncCall(e))&&(t=i.parse())&&i.stop)return o.forget(),t;if(t=this.arguments(t),o.$char(")"))return o.forget(),new e4.Call(e,t,s+r,n);o.restore("Could not parse call arguments or missing ')'")}else o.forget()}},customFuncCall:function(e){return({alpha:t(s.ieAlpha,!0),boolean:t(i),if:t(i)})[e.toLowerCase()];function t(e,t){return{parse:e,stop:t}}function i(){return[l(s.condition,"expected condition")]}},arguments:function(e){var t,i,n=e||[],r=[];for(o.save();;){if(e)e=!1;else{if(!(i=s.detachedRuleset()||this.assignment()||s.expression()))break;i.value&&1==i.value.length&&(i=i.value[0]),n.push(i)}o.$char(",")||(o.$char(";")||t)&&(t=!0,i=n.length<1?n[0]:new e4.Value(n),r.push(i),n=[])}return o.forget(),t?r:n},literal:function(){return this.dimension()||this.color()||this.quoted()||this.unicodeDescriptor()},assignment:function(){var e,t;if(o.save(),e=o.$re(/^\w+(?=\s?=)/i)){if(o.$char("=")){if(t=s.entity())return o.forget(),new e4.Assignment(e,t);o.restore()}else o.restore()}else o.restore()},url:function(){var e,t=o.i;if(o.autoCommentAbsorb=!1,o.$str("url("))return e=this.quoted()||this.variable()||this.property()||o.$re(/^(?:(?:\\[()'"])|[^()'"])+/)||"",o.autoCommentAbsorb=!0,u(")"),new e4.URL(void 0!==e.value||e instanceof e4.Variable||e instanceof e4.Property?e:new e4.Anonymous(e,t),t+r,n);o.autoCommentAbsorb=!0},variable:function(){var e,t,i=o.i;if(o.save(),"@"===o.currentChar()&&(t=o.$re(/^@@?[\w-]+/))){if("("===(e=o.currentChar())||"["===e&&!o.prevChar().match(/^\s/)){var a=s.variableCall(t);if(a)return o.forget(),a}return o.forget(),new e4.Variable(t,i+r,n)}o.restore()},variableCurly:function(){var e,t=o.i;if("@"===o.currentChar()&&(e=o.$re(/^@\{([\w-]+)\}/)))return new e4.Variable("@"+e[1],t+r,n)},property:function(){var e,t=o.i;if("$"===o.currentChar()&&(e=o.$re(/^\$[\w-]+/)))return new e4.Property(e,t+r,n)},propertyCurly:function(){var e,t=o.i;if("$"===o.currentChar()&&(e=o.$re(/^\$\{([\w-]+)\}/)))return new e4.Property("$"+e[1],t+r,n)},color:function(){var e;if(o.save(),"#"===o.currentChar()&&(e=o.$re(/^#([A-Fa-f0-9]{8}|[A-Fa-f0-9]{6}|[A-Fa-f0-9]{3,4})([\w.#[])?/))&&!e[2])return o.forget(),new e4.Color(e[1],void 0,e[0]);o.restore()},colorKeyword:function(){o.save();var e=o.autoCommentAbsorb;o.autoCommentAbsorb=!1;var t=o.$re(/^[_A-Za-z-][_A-Za-z0-9-]+/);if(o.autoCommentAbsorb=e,t){o.restore();var i=e4.Color.fromKeyword(t);return i?(o.$str(t),i):void 0}o.forget()},dimension:function(){if(!o.peekNotNumeric()){var e=o.$re(/^([+-]?\d*\.?\d+)(%|[a-z_]+)?/i);return e?new e4.Dimension(e[1],e[2]):void 0}},unicodeDescriptor:function(){var e;if(e=o.$re(/^U\+[0-9a-fA-F?]+(-[0-9a-fA-F?]+)?/))return new e4.UnicodeDescriptor(e[0])},javascript:function(){var e,t=o.i;o.save();var i=o.$char("~");if(o.$char("`")){if(e=o.$re(/^[^`]*`/))return o.forget(),new e4.JavaScript(e.substr(0,e.length-1),Boolean(i),t+r,n);o.restore("invalid javascript definition")}else o.restore()}},variable:function(){var e;if("@"===o.currentChar()&&(e=o.$re(/^(@[\w-]+)\s*:/)))return e[1]},variableCall:function(e){var t,i=o.i,r=!!e,a=e;if(o.save(),a||"@"===o.currentChar()&&(a=o.$re(/^(@[\w-]+)(\(\s*\))?/))){if(!(t=this.mixin.ruleLookups())&&(r&&"()"!==o.$str("()")||"()"!==a[2]))return void o.restore("Missing '[...]' lookup in variable call");r||(a=a[1]);var l=new e4.VariableCall(a,i,n);return!r&&s.end()?(o.forget(),l):(o.forget(),new e4.NamespaceValue(l,t,i,n))}o.restore()},extend:function(e){var t,i,s,u,h,c=o.i;if(o.$str(e?"&:extend(":":extend(")){do{for(s=null,t=null;!(s=o.$re(/^(all)(?=\s*(\)|,))/))&&(i=this.element());)t?t.push(i):t=[i];s=s&&s[1],t||a("Missing target selector for :extend()."),h=new e4.Extend(new e4.Selector(t),s,c+r,n),u?u.push(h):u=[h]}while(o.$char(","));return l(/^\)/),e&&l(/^;/),u}},extendRule:function(){return this.extend(!0)},mixin:{call:function(e,t){var i,a,l,h,c=o.currentChar(),f=!1,p=o.i;if("."===c||"#"===c){if(o.save(),a=this.elements()){if(o.$char("(")&&(l=this.args(!0).args,u(")"),h=!0),!1!==t&&(i=this.ruleLookups()),!0===t&&!i||e&&!i&&!h)return void o.restore();if(!e&&s.important()&&(f=!0),e||s.end()){o.forget();var v=new e4.mixin.Call(a,l,p+r,n,!i&&f);return i?new e4.NamespaceValue(v,i):v}}o.restore()}},elements:function(){for(var e,t,i,s,a,l=/^[#.](?:[\w-]|\\(?:[A-Fa-f0-9]{1,6} ?|[^A-Fa-f0-9]))+/;a=o.i,t=o.$re(l);)s=new e4.Element(i,t,!1,a+r,n),e?e.push(s):e=[s],i=o.$char(">");return e},args:function(e){var t,i,n,r,l,u,h,c=s.entities,f={args:null,variadic:!1},p=[],v=[],d=[],m=!0;for(o.save();;){if(e)u=s.detachedRuleset()||s.expression();else{if(o.commentStore.length=0,o.$str("...")){f.variadic=!0,o.$char(";")&&!t&&(t=!0),(t?v:d).push({variadic:!0});break}u=c.variable()||c.property()||c.literal()||c.keyword()||this.call(!0)}if(!u||!m)break;r=null,u.throwAwayComments&&u.throwAwayComments(),l=u;var g=null;if(e?u.value&&1==u.value.length&&(g=u.value[0]):g=u,g&&(g instanceof e4.Variable||g instanceof e4.Property)){if(o.$char(":")){if(p.length>0&&(t&&a("Cannot mix ; and , as delimiter types"),i=!0),!(l=s.detachedRuleset()||s.expression())){if(!e)return o.restore(),f.args=[],f;a("could not understand value for named argument")}r=n=g.name}else if(o.$str("...")){if(!e){f.variadic=!0,o.$char(";")&&!t&&(t=!0),(t?v:d).push({name:u.name,variadic:!0});break}h=!0}else e||(n=r=g.name,l=null)}l&&p.push(l),d.push({name:r,value:l,expand:h}),o.$char(",")?m=!0:((m=";"===o.$char(";"))||t)&&(i&&a("Cannot mix ; and , as delimiter types"),t=!0,p.length>1&&(l=new e4.Value(p)),v.push({name:n,value:l,expand:h}),n=null,p=[],i=!1)}return o.forget(),f.args=t?v:d,f},definition:function(){var e,t,i,n,r=[],a=!1;if(!("."!==o.currentChar()&&"#"!==o.currentChar()||o.peek(/^[^{]*\}/))){if(o.save(),t=o.$re(/^([#.](?:[\w-]|\\(?:[A-Fa-f0-9]{1,6} ?|[^A-Fa-f0-9]))+)\s*\(/)){e=t[1];var u=this.args(!1);if(r=u.args,a=u.variadic,!o.$char(")"))return void o.restore("Missing closing ')'");if(o.commentStore.length=0,o.$str("when")&&(n=l(s.conditions,"expected condition")),i=s.block())return o.forget(),new e4.mixin.Definition(e,r,i,n,a);o.restore()}else o.restore()}},ruleLookups:function(){var e,t=[];if("["===o.currentChar()){for(;;){if(o.save(),!(e=this.lookupValue())&&""!==e){o.restore();break}t.push(e),o.forget()}return t.length>0?t:void 0}},lookupValue:function(){if(o.save(),o.$char("[")){var e=o.$re(/^(?:[@$]{0,2})[_a-zA-Z0-9-]*/);if(o.$char("]"))return e||""===e?(o.forget(),e):void o.restore();o.restore()}else o.restore()}},entity:function(){var e=this.entities;return this.comment()||e.literal()||e.variable()||e.url()||e.property()||e.call()||e.keyword()||this.mixin.call(!0)||e.javascript()},end:function(){return o.$char(";")||o.peek("}")},ieAlpha:function(){var e;if(o.$re(/^opacity=/i))return(e=o.$re(/^\d+/))||(e="@{"+(e=l(s.entities.variable,"Could not parse alpha")).name.slice(1)+"}"),u(")"),new e4.Quoted("","alpha(opacity="+e+")")},element:function(){var e,t,i,s=o.i;if(t=this.combinator(),(e=o.$re(/^(?:\d+\.\d+|\d+)%/)||o.$re(/^(?:[.#]?|:*)(?:[\w-]|[^\x00-\x9f]|\\(?:[A-Fa-f0-9]{1,6} ?|[^A-Fa-f0-9]))+/)||o.$char("*")||o.$char("&")||this.attribute()||o.$re(/^\([^&()@]+\)/)||o.$re(/^[.#:](?=@)/)||this.entities.variableCurly())||(o.save(),o.$char("(")?(i=this.selector(!1))&&o.$char(")")?(e=new e4.Paren(i),o.forget()):o.restore("Missing closing ')'"):o.forget()),e)return new e4.Element(t,e,e instanceof e4.Variable,s+r,n)},combinator:function(){var e=o.currentChar();if("/"===e){o.save();var t=o.$re(/^\/[a-z]+\//i);if(t)return o.forget(),new e4.Combinator(t);o.restore()}if(">"===e||"+"===e||"~"===e||"|"===e||"^"===e){for(o.i++,"^"===e&&"^"===o.currentChar()&&(e="^^",o.i++);o.isWhitespace();)o.i++;return new e4.Combinator(e)}return new e4.Combinator(o.isWhitespace(-1)?" ":null)},selector:function(e){var t,i,s,u,h,c,f,p=o.i;for(e=!1!==e;(e&&(i=this.extend())||e&&(c=o.$str("when"))||(u=this.element()))&&(c?f=l(this.conditions,"expected condition"):f?a("CSS guard can only be used at the end of selector"):i?h=h?h.concat(i):i:(h&&a("Extend can only be used at the end of selector"),s=o.currentChar(),t?t.push(u):t=[u],u=null),"{"!==s&&"}"!==s&&";"!==s&&","!==s&&")"!==s););if(t)return new e4.Selector(t,h,f,p+r,n);h&&a("Extend must be used to extend a selector, it cannot be used on its own")},selectors:function(){for(var e,t;(e=this.selector())&&(t?t.push(e):t=[e],o.commentStore.length=0,e.condition&&t.length>1&&a("Guards are only currently allowed on a single selector."),o.$char(","));)e.condition&&a("Guards are only currently allowed on a single selector."),o.commentStore.length=0;return t},attribute:function(){if(o.$char("[")){var e,t,i,n,r=this.entities;return(e=r.variableCurly())||(e=l(/^(?:[_A-Za-z0-9-*]*\|)?(?:[_A-Za-z0-9-]|\\.)+/)),(i=o.$re(/^[|~*$^]?=/))&&(t=r.quoted()||o.$re(/^[0-9]+%/)||o.$re(/^[\w-]+/)||r.variableCurly())&&(n=o.$re(/^[iIsS]/)),u("]"),new e4.Attribute(e,i,t,n)}},block:function(){var e;if(o.$char("{")&&(e=this.primary())&&o.$char("}"))return e},blockRuleset:function(){var e=this.block();return e&&(e=new e4.Ruleset(null,e)),e},detachedRuleset:function(){var e,t,i;if(o.save(),!o.$re(/^[.#]\(/)||(t=(e=this.mixin.args(!1)).args,i=e.variadic,o.$char(")"))){var n=this.blockRuleset();if(n)return o.forget(),t?new e4.mixin.Definition(null,t,n,null,i):new e4.DetachedRuleset(n);o.restore()}else o.restore()},ruleset:function(){var e,i,n;if(o.save(),t.dumpLineNumbers&&(n=h(o.i)),(e=this.selectors())&&(i=this.block())){o.forget();var r=new e4.Ruleset(e,i,t.strictImports);return t.dumpLineNumbers&&(r.debugInfo=n),r}o.restore()},declaration:function(){var e,t,i,s,a,l,u=o.i,h=o.currentChar();if("."!==h&&"#"!==h&&"&"!==h&&":"!==h){if(o.save(),e=this.variable()||this.ruleProperty()){if((l="string"==typeof e)&&(t=this.detachedRuleset())&&(i=!0),o.commentStore.length=0,!t){if(a=!l&&e.length>1&&e.pop().value,t=e[0].value&&"--"===e[0].value.slice(0,2)?this.permissiveValue(/[;}]/):this.anonymousValue())return o.forget(),new e4.Declaration(e,t,!1,a,u+r,n);t||(t=this.value()),t?s=this.important():l&&(t=this.permissiveValue())}if(t&&(this.end()||i))return o.forget(),new e4.Declaration(e,t,s,a,u+r,n);o.restore()}else o.restore()}},anonymousValue:function(){var e=o.i,t=o.$re(/^([^.#@$+/'"*`(;{}-]*);/);if(t)return new e4.Anonymous(t[1],e+r)},permissiveValue:function(e){var t,i,r,s,l=e||";",u=o.i,h=[];function c(){var e=o.currentChar();return"string"==typeof l?e===l:l.test(e)}if(!c()){s=[];do((i=this.comment())||(i=this.entity()))&&s.push(i);while(i);if(r=c(),s.length>0){if(s=new e4.Expression(s),r)return s;h.push(s)," "===o.prevChar()&&h.push(new e4.Anonymous(" ",u))}if(o.save(),s=o.$parseUntil(l)){if("string"==typeof s&&a("Expected '"+s+"'","Parse"),1===s.length&&" "===s[0])return o.forget(),new e4.Anonymous("",u);var f=void 0;for(t=0;t<s.length;t++)if(Array.isArray(f=s[t]))h.push(new e4.Quoted(f[0],f[1],!0,u,n));else{t===s.length-1&&(f=f.trim());var p=new e4.Quoted("'",f,!0,u,n);p.variableRegex=/@([\w-]+)/g,p.propRegex=/\$([\w-]+)/g,h.push(p)}return o.forget(),new e4.Expression(h,!0)}o.restore()}},import:function(){var e,t,i=o.i,s=o.$re(/^@import\s+/);if(s){var l=(s?this.importOptions():null)||{};if(e=this.entities.quoted()||this.entities.url())return t=this.mediaFeatures({}),o.$char(";")||(o.i=i,a("missing semi-colon or unrecognised media features on import")),t=t&&new e4.Value(t),new e4.Import(e,t,l,i+r,n);o.i=i,a("malformed import statement")}},importOptions:function(){var e,t,i,n={};if(!o.$char("("))return null;do if(e=this.importOption()){switch(i=!0,t=e){case"css":t="less",i=!1;break;case"once":t="multiple",i=!1}if(n[t]=i,!o.$char(","))break}while(e);return u(")"),n},importOption:function(){var e=o.$re(/^(less|css|multiple|once|inline|reference|optional)/);if(e)return e[1]},mediaFeature:function(e){var t,i,s,l=this.entities,u=[];o.save();do(t=l.keyword()||l.variable()||l.mixinLookup())?u.push(t):o.$char("(")&&(i=this.property(),o.save(),!i&&e.queryInParens&&o.$re(/^[0-9a-z-]*\s*([<>]=|<=|>=|[<>]|=)/)?(o.restore(),i=this.condition(),o.save(),(s=this.atomicCondition(null,i.rvalue))||o.restore()):(o.restore(),t=this.value()),o.$char(")")?i&&!t?(u.push(new e4.Paren(new e4.QueryInParens(i.op,i.lvalue,i.rvalue,s?s.op:null,s?s.rvalue:null,i._index))),t=i):i&&t?u.push(new e4.Paren(new e4.Declaration(i,t,null,null,o.i+r,n,!0))):t?u.push(new e4.Paren(t)):a("badly formed media feature definition"):a("Missing closing ')'","Parse"));while(t);if(o.forget(),u.length>0)return new e4.Expression(u)},mediaFeatures:function(e){var t,i=this.entities,n=[];do if(t=this.mediaFeature(e)){if(n.push(t),!o.$char(","))break}else if((t=i.variable()||i.mixinLookup())&&(n.push(t),!o.$char(",")))break;while(t);return n.length>0?n:null},prepareAndGetNestableAtRule:function(e,i,s,l){var u=this.mediaFeatures(l),h=this.block();h||a("media definitions require block statements after any features"),o.forget();var c=new e(h,u,i+r,n);return t.dumpLineNumbers&&(c.debugInfo=s),c},nestableAtRule:function(){var e,i=o.i;if(t.dumpLineNumbers&&(e=h(i)),o.save(),o.$peekChar("@")){if(o.$str("@media"))return this.prepareAndGetNestableAtRule(e4.Media,i,e,Y);if(o.$str("@container"))return this.prepareAndGetNestableAtRule(e4.Container,i,e,X)}o.restore()},plugin:function(){var e,t,i,s=o.i;if(o.$re(/^@plugin\s+/)){if(i=(t=this.pluginArgs())?{pluginArgs:t,isPlugin:!0}:{isPlugin:!0},e=this.entities.quoted()||this.entities.url())return o.$char(";")||(o.i=s,a("missing semi-colon on @plugin")),new e4.Import(e,null,i,s+r,n);o.i=s,a("malformed @plugin statement")}},pluginArgs:function(){if(o.save(),!o.$char("("))return o.restore(),null;var e=o.$re(/^\s*([^);]+)\)\s*/);return e[1]?(o.forget(),e[1].trim()):(o.restore(),null)},atrule:function(){var e,i,s,l,u,c,f,p=o.i,v=!0,d=!0;if("@"===o.currentChar()){if(i=this.import()||this.plugin()||this.nestableAtRule())return i;if(o.save(),e=o.$re(/^@[a-z-]+/)){switch(l=e,"-"==e.charAt(1)&&e.indexOf("-",2)>0&&(l="@"+e.slice(e.indexOf("-",2)+1)),l){case"@charset":u=!0,v=!1;break;case"@namespace":c=!0,v=!1;break;case"@keyframes":case"@counter-style":u=!0;break;case"@document":case"@supports":f=!0,d=!1;break;default:f=!0}if(o.commentStore.length=0,u?(i=this.entity())||a("expected "+e+" identifier"):c?(i=this.expression())||a("expected "+e+" expression"):f&&(i=this.permissiveValue(/^[{;]/),v="{"===o.currentChar(),i?i.value||(i=null):v||";"===o.currentChar()||a(e+" rule is missing block or ending semi-colon")),v&&(s=this.blockRuleset()),s||!v&&i&&o.$char(";"))return o.forget(),new e4.AtRule(e,i,s,p+r,n,t.dumpLineNumbers?h(p):null,d);o.restore("at-rule options not recognised")}}},value:function(){var e,t=[],i=o.i;do if((e=this.expression())&&(t.push(e),!o.$char(",")))break;while(e);if(t.length>0)return new e4.Value(t,i+r)},important:function(){if("!"===o.currentChar())return o.$re(/^! *important/)},sub:function(){var e,t;if(o.save(),o.$char("("))return(e=this.addition())&&o.$char(")")?(o.forget(),(t=new e4.Expression([e])).parens=!0,t):void o.restore("Expected ')'");o.restore()},multiplication:function(){var e,t,i,n,r;if(e=this.operand()){for(r=o.isWhitespace(-1);!o.peek(/^\/[*/]/);){if(o.save(),!(i=o.$char("/")||o.$char("*")||o.$str("./"))){o.forget();break}if(!(t=this.operand())){o.restore();break}o.forget(),e.parensInOp=!0,t.parensInOp=!0,n=new e4.Operation(i,[n||e,t],r),r=o.isWhitespace(-1)}return n||e}},addition:function(){var e,t,i,n,r;if(e=this.multiplication()){for(r=o.isWhitespace(-1);(i=o.$re(/^[-+]\s+/)||!r&&(o.$char("+")||o.$char("-")))&&(t=this.multiplication());)e.parensInOp=!0,t.parensInOp=!0,n=new e4.Operation(i,[n||e,t],r),r=o.isWhitespace(-1);return n||e}},conditions:function(){var e,t,i,n=o.i;if(e=this.condition(!0)){for(;o.peek(/^,\s*(not\s*)?\(/)&&o.$char(",")&&(t=this.condition(!0));)i=new e4.Condition("or",i||e,t,n+r);return i||e}},condition:function(e){var t,i,n;if(t=this.conditionAnd(e)){if(i=o.$str("or")){if(!(n=this.condition(e)))return;t=new e4.Condition(i,t,n)}return t}},conditionAnd:function(e){var t,i,n,r;if(t=(r=this.negatedCondition(e)||this.parenthesisCondition(e))||e?r:this.atomicCondition(e)){if(i=o.$str("and")){if(!(n=this.conditionAnd(e)))return;t=new e4.Condition(i,t,n)}return t}},negatedCondition:function(e){if(o.$str("not")){var t=this.parenthesisCondition(e);return t&&(t.negate=!t.negate),t}},parenthesisCondition:function(e){var t;if(o.save(),o.$str("(")){if(t=function(t){var i;if(o.save(),i=t.condition(e)){if(o.$char(")"))return o.forget(),i;o.restore()}else o.restore()}(this))return o.forget(),t;if(t=this.atomicCondition(e)){if(o.$char(")"))return o.forget(),t;o.restore("expected ')' got '"+o.currentChar()+"'")}else o.restore()}else o.restore()},atomicCondition:function(e,t){var i,n,s,l,u=this.entities,h=o.i,c=(function(){return this.addition()||u.keyword()||u.quoted()||u.mixinLookup()}).bind(this);if(i=t||c())return o.$char(">")?l=o.$char("=")?">=":">":o.$char("<")?l=o.$char("=")?"<=":"<":o.$char("=")&&(l=o.$char(">")?"=>":o.$char("<")?"=<":"="),l?(n=c())?s=new e4.Condition(l,i,n,h+r,!1):a("expected expression"):t||(s=new e4.Condition("=",i,new e4.Keyword("true"),h+r,!1)),s},operand:function(){var e,t=this.entities;o.peek(/^-[@$(]/)&&(e=o.$char("-"));var i=this.sub()||t.dimension()||t.color()||t.variable()||t.property()||t.call()||t.quoted(!0)||t.colorKeyword()||t.mixinLookup();return e&&(i.parensInOp=!0,i=new e4.Negative(i)),i},expression:function(){var e,t,i=[],n=o.i;do(e=this.comment())?i.push(e):((e=this.addition()||this.entity())instanceof e4.Comment&&(e=null),e&&(i.push(e),o.peek(/^\/[/*]/)||(t=o.$char("/"))&&i.push(new e4.Anonymous(t,n+r))));while(e);if(i.length>0)return new e4.Expression(i)},property:function(){var e=o.$re(/^(\*?-?[_a-zA-Z0-9-]+)\s*:/);if(e)return e[1]},ruleProperty:function(){var e,t,i=[],s=[];o.save();var a=o.$re(/^([_a-zA-Z0-9-]+)\s*:/);if(a)return i=[new e4.Keyword(a[1])],o.forget(),i;function l(e){var t=o.i,n=o.$re(e);if(n)return s.push(t),i.push(n[1])}for(l(/^(\*?)/);l(/^((?:[\w-]+)|(?:[@$]\{[\w-]+\}))/););if(i.length>1&&l(/^((?:\+_|\+)?)\s*:/)){for(o.forget(),""===i[0]&&(i.shift(),s.shift()),t=0;t<i.length;t++)e=i[t],i[t]="@"!==e.charAt(0)&&"$"!==e.charAt(0)?new e4.Keyword(e):"@"===e.charAt(0)?new e4.Variable("@"+e.slice(2,-1),s[t]+r,n):new e4.Property("$"+e.slice(2,-1),s[t]+r,n);return i}o.restore()}}}};ee.serializeVars=function(e){var t="";for(var i in e)if(Object.hasOwnProperty.call(e,i)){var n=e[i];t+=("@"===i[0]?"":"@")+i+": "+n+(";"===String(n).slice(-1)?"":";")}return t};var et=function(e,t,i,n,r,s){this.extendList=t,this.condition=i,this.evaldCondition=!i,this._index=n,this._fileInfo=r,this.elements=this.getElements(e),this.mixinElements_=void 0,this.copyVisibilityInfo(s),this.setParent(this.elements,this)};et.prototype=Object.assign(new l,{type:"Selector",accept:function(e){this.elements&&(this.elements=e.visitArray(this.elements)),this.extendList&&(this.extendList=e.visitArray(this.extendList)),this.condition&&(this.condition=e.visit(this.condition))},createDerived:function(e,t,i){e=this.getElements(e);var n=new et(e,t||this.extendList,null,this.getIndex(),this.fileInfo(),this.visibilityInfo());return n.evaldCondition=C(i)?this.evaldCondition:i,n.mediaEmpty=this.mediaEmpty,n},getElements:function(e){return e?("string"==typeof e&&new ee(this.parse.context,this.parse.importManager,this._fileInfo,this._index).parseNode(e,["selector"],function(t,i){if(t)throw new A({index:t.index,message:t.message},this.parse.imports,this._fileInfo.filename);e=i[0].elements}),e):[new d("","&",!1,this._index,this._fileInfo)]},createEmptySelectors:function(){var e=new d("","&",!1,this._index,this._fileInfo),t=[new et([e],null,null,this._index,this._fileInfo)];return t[0].mediaEmpty=!0,t},match:function(e){var t,i,n=this.elements,r=n.length;if(0===(t=(e=e.mixinElements()).length)||r<t)return 0;for(i=0;i<t;i++)if(n[i].value!==e[i])return 0;return t},mixinElements:function(){if(this.mixinElements_)return this.mixinElements_;var e=this.elements.map(function(e){return e.combinator.value+(e.value.value||e.value)}).join("").match(/[,&#*.\w-]([\w-]|(\\.))*/g);return e?"&"===e[0]&&e.shift():e=[],this.mixinElements_=e},isJustParentSelector:function(){return!this.mediaEmpty&&1===this.elements.length&&"&"===this.elements[0].value&&(" "===this.elements[0].combinator.value||""===this.elements[0].combinator.value)},eval:function(e){var t=this.condition&&this.condition.eval(e),i=this.elements,n=this.extendList;return i=i&&i.map(function(t){return t.eval(e)}),n=n&&n.map(function(t){return t.eval(e)}),this.createDerived(i,n,t)},genCSS:function(e,t){var i;for(e&&e.firstSelector||""!==this.elements[0].combinator.value||t.add(" ",this.fileInfo(),this.getIndex()),i=0;i<this.elements.length;i++)this.elements[i].genCSS(e,t)},getIsOutput:function(){return this.evaldCondition}});var ei=function(e){if(!e)throw Error("Value requires an array argument");Array.isArray(e)?this.value=e:this.value=[e]};ei.prototype=Object.assign(new l,{type:"Value",accept:function(e){this.value&&(this.value=e.visitArray(this.value))},eval:function(e){return 1===this.value.length?this.value[0].eval(e):new ei(this.value.map(function(t){return t.eval(e)}))},genCSS:function(e,t){var i;for(i=0;i<this.value.length;i++)this.value[i].genCSS(e,t),i+1<this.value.length&&t.add(e&&e.compress?",":", ")}});var en=function(e){this.value=e};en.prototype=Object.assign(new l,{type:"Keyword",genCSS:function(e,t){if("%"===this.value)throw{type:"Syntax",message:"Invalid % without number"};t.add(this.value)}}),en.True=new en("true"),en.False=new en("false");var er=function(e,t,i,n,r,s){this.value=e,this._index=t,this._fileInfo=i,this.mapLines=n,this.rulesetLike=void 0!==r&&r,this.allowRoot=!0,this.copyVisibilityInfo(s)};er.prototype=Object.assign(new l,{type:"Anonymous",eval:function(){return new er(this.value,this._index,this._fileInfo,this.mapLines,this.rulesetLike,this.visibilityInfo())},compare:function(e){return e.toCSS&&this.toCSS()===e.toCSS()?0:void 0},isRulesetLike:function(){return this.rulesetLike},genCSS:function(e,t){this.nodeVisible=Boolean(this.value),this.nodeVisible&&t.add(this.value,this._fileInfo,this._index,this.mapLines)}});var es=m,eo=function(e,t,i,n,r,s,o,a){this.name=e,this.value=t instanceof l?t:new ei([t?new er(t):null]),this.important=i?" "+i.trim():"",this.merge=n,this._index=r,this._fileInfo=s,this.inline=o||!1,this.variable=void 0!==a?a:e.charAt&&"@"===e.charAt(0),this.allowRoot=!0,this.setParent(this.value,this)};function ea(e){return"/* line "+e.debugInfo.lineNumber+", "+e.debugInfo.fileName+" */\n"}function el(e){var t=e.debugInfo.fileName;return/^[a-z]+:\/\//i.test(t)||(t="file://"+t),"@media -sass-debug-info{filename{font-family:"+t.replace(/([.:/\\])/g,function(e){return"\\"==e&&(e="/"),"\\"+e})+"}line{font-family:\\00003"+e.debugInfo.lineNumber+"}}\n"}function eu(e,t,i){var n="";if(e.dumpLineNumbers&&!e.compress)switch(e.dumpLineNumbers){case"comments":n=ea(t);break;case"mediaquery":n=el(t);break;case"all":n=ea(t)+(i||"")+el(t)}return n}eo.prototype=Object.assign(new l,{type:"Declaration",genCSS:function(e,t){t.add(this.name+(e.compress?":":": "),this.fileInfo(),this.getIndex());try{this.value.genCSS(e,t)}catch(i){throw i.index=this._index,i.filename=this._fileInfo.filename,i}t.add(this.important+(this.inline||e.lastRule&&e.compress?"":";"),this._fileInfo,this._index)},eval:function(e){var t,i,n=!1,r=this.name,s=this.variable;"string"!=typeof r&&(r=1===r.length&&r[0]instanceof en?r[0].value:function(e,t){var i,n="",r=t.length,s={add:function(e){n+=e}};for(i=0;i<r;i++)t[i].eval(e).genCSS(e,s);return n}(e,r),s=!1),"font"===r&&e.math===es.ALWAYS&&(n=!0,t=e.math,e.math=es.PARENS_DIVISION);try{if(e.importantScope.push({}),i=this.value.eval(e),!this.variable&&"DetachedRuleset"===i.type)throw{message:"Rulesets cannot be evaluated on a property.",index:this.getIndex(),filename:this.fileInfo().filename};var o=this.important,a=e.importantScope.pop();return!o&&a.important&&(o=a.important),new eo(r,i,o,this.merge,this.getIndex(),this.fileInfo(),this.inline,s)}catch(l){throw"number"!=typeof l.index&&(l.index=this.getIndex(),l.filename=this.fileInfo().filename),l}finally{n&&(e.math=t)}},makeImportant:function(){return new eo(this.name,this.value,"!important",this.merge,this.getIndex(),this.fileInfo(),this.inline)}});var eh=function(e,t,i,n){this.value=e,this.isLineComment=t,this._index=i,this._fileInfo=n,this.allowRoot=!0};eh.prototype=Object.assign(new l,{type:"Comment",genCSS:function(e,t){this.debugInfo&&t.add(eu(e,this),this.fileInfo(),this.getIndex()),t.add(this.value)},isSilent:function(e){var t=e.compress&&"!"!==this.value[2];return this.isLineComment||t}});var ec={eval:function(){var e=this.value_,t=this.error_;if(t)throw t;if(!C(e))return e?en.True:en.False},value:function(e){this.value_=e},error:function(e){this.error_=e},reset:function(){this.value_=this.error_=null}},ef=function(e,t,i,n){this.selectors=e,this.rules=t,this._lookups={},this._variables=null,this._properties=null,this.strictImports=i,this.copyVisibilityInfo(n),this.allowRoot=!0,this.setParent(this.selectors,this),this.setParent(this.rules,this)};ef.prototype=Object.assign(new l,{type:"Ruleset",isRuleset:!0,isRulesetLike:function(){return!0},accept:function(e){this.paths?this.paths=e.visitArray(this.paths,!0):this.selectors&&(this.selectors=e.visitArray(this.selectors)),this.rules&&this.rules.length&&(this.rules=e.visitArray(this.rules))},eval:function(e){var t,i,n,r,s,o=!1;if(this.selectors&&(i=this.selectors.length)){for(t=Array(i),ec.error({type:"Syntax",message:"it is currently only allowed in parametric mixin guards,"}),r=0;r<i;r++){n=this.selectors[r].eval(e);for(var a=0;a<n.elements.length;a++)if(n.elements[a].isVariable){s=!0;break}t[r]=n,n.evaldCondition&&(o=!0)}if(s){var u=Array(i);for(r=0;r<i;r++)n=t[r],u[r]=n.toCSS(e);var h=t[0].getIndex(),c=t[0].fileInfo();new ee(e,this.parse.importManager,c,h).parseNode(u.join(","),["selectors"],function(e,i){i&&(t=I(i))})}ec.reset()}else o=!0;var f,p,v=this.rules?w(this.rules):null,d=new ef(t,v,this.strictImports,this.visibilityInfo());d.originalRuleset=this,d.root=this.root,d.firstRoot=this.firstRoot,d.allowImports=this.allowImports,this.debugInfo&&(d.debugInfo=this.debugInfo),o||(v.length=0),d.functionRegistry=(function(e){for(var t,i=0,n=e.length;i!==n;++i)if(t=e[i].functionRegistry)return t;return Z})(e.frames).inherit();var m=e.frames;m.unshift(d);var g=e.selectors;g||(e.selectors=g=[]),g.unshift(this.selectors),(d.root||d.allowImports||!d.strictImports)&&d.evalImports(e);var $=d.rules;for(r=0;f=$[r];r++)f.evalFirst&&($[r]=f.eval(e));var y=e.mediaBlocks&&e.mediaBlocks.length||0;for(r=0;f=$[r];r++)"MixinCall"===f.type?(v=f.eval(e).filter(function(e){return!(e instanceof eo&&e.variable)||!d.variable(e.name)}),$.splice.apply($,[r,1].concat(v)),r+=v.length-1,d.resetCache()):"VariableCall"===f.type&&(v=f.eval(e).rules.filter(function(e){return!(e instanceof eo&&e.variable)}),$.splice.apply($,[r,1].concat(v)),r+=v.length-1,d.resetCache());for(r=0;f=$[r];r++)f.evalFirst||($[r]=f=f.eval?f.eval(e):f);for(r=0;f=$[r];r++)if(f instanceof ef&&f.selectors&&1===f.selectors.length&&f.selectors[0]&&f.selectors[0].isJustParentSelector())for($.splice(r--,1),a=0;p=f.rules[a];a++)p instanceof l&&(p.copyVisibilityInfo(f.visibilityInfo()),p instanceof eo&&p.variable||$.splice(++r,0,p));if(m.shift(),g.shift(),e.mediaBlocks)for(r=y;r<e.mediaBlocks.length;r++)e.mediaBlocks[r].bubbleSelectors(t);return d},evalImports:function(e){var t,i,n=this.rules;if(n)for(t=0;t<n.length;t++)"Import"===n[t].type&&((i=n[t].eval(e))&&(i.length||0===i.length)?(n.splice.apply(n,[t,1].concat(i)),t+=i.length-1):n.splice(t,1,i),this.resetCache())},makeImportant:function(){return new ef(this.selectors,this.rules.map(function(e){return e.makeImportant?e.makeImportant():e}),this.strictImports,this.visibilityInfo())},matchArgs:function(e){return!e||0===e.length},matchCondition:function(e,t){var i=this.selectors[this.selectors.length-1];return!!i.evaldCondition&&!(i.condition&&!i.condition.eval(new L.Eval(t,t.frames)))},resetCache:function(){this._rulesets=null,this._variables=null,this._properties=null,this._lookups={}},variables:function(){return this._variables||(this._variables=this.rules?this.rules.reduce(function(e,t){if(t instanceof eo&&!0===t.variable&&(e[t.name]=t),"Import"===t.type&&t.root&&t.root.variables){var i=t.root.variables();for(var n in i)i.hasOwnProperty(n)&&(e[n]=t.root.variable(n))}return e},{}):{}),this._variables},properties:function(){return this._properties||(this._properties=this.rules?this.rules.reduce(function(e,t){if(t instanceof eo&&!0!==t.variable){var i=1===t.name.length&&t.name[0]instanceof en?t.name[0].value:t.name;e["$"+i]?e["$"+i].push(t):e["$"+i]=[t]}return e},{}):{}),this._properties},variable:function(e){var t=this.variables()[e];if(t)return this.parseValue(t)},property:function(e){var t=this.properties()[e];if(t)return this.parseValue(t)},lastDeclaration:function(){for(var e=this.rules.length;e>0;e--){var t=this.rules[e-1];if(t instanceof eo)return this.parseValue(t)}},parseValue:function(e){var t=this;function i(e){return e.value instanceof er&&!e.parsed&&("string"==typeof e.value.value?new ee(this.parse.context,this.parse.importManager,e.fileInfo(),e.value.getIndex()).parseNode(e.value.value,["value","important"],function(t,i){t&&(e.parsed=!0),i&&(e.value=i[0],e.important=i[1]||"",e.parsed=!0)}):e.parsed=!0),e}if(Array.isArray(e)){var n=[];return e.forEach(function(e){n.push(i.call(t,e))}),n}return i.call(t,e)},rulesets:function(){if(!this.rules)return[];var e,t,i=[],n=this.rules;for(e=0;t=n[e];e++)t.isRuleset&&i.push(t);return i},prependRule:function(e){var t=this.rules;t?t.unshift(e):this.rules=[e],this.setParent(e,this)},find:function(e,t,i){t=t||this;var n,r,s=[],o=e.toCSS();return o in this._lookups?this._lookups[o]:(this.rulesets().forEach(function(o){if(o!==t){for(var a=0;a<o.selectors.length;a++)if(n=e.match(o.selectors[a])){if(e.elements.length>n){if(!i||i(o)){r=o.find(new et(e.elements.slice(n)),t,i);for(var l=0;l<r.length;++l)r[l].path.push(o);Array.prototype.push.apply(s,r)}}else s.push({rule:o,path:[]});break}}}),this._lookups[o]=s,s)},genCSS:function(e,t){var i,n,r,s,o,a=[];e.tabLevel=e.tabLevel||0,this.root||e.tabLevel++;var l,u=e.compress?"":Array(e.tabLevel+1).join(" "),h=e.compress?"":Array(e.tabLevel).join(" "),c=0,f=0;for(i=0;s=this.rules[i];i++)s instanceof eh?(f===i&&f++,a.push(s)):s.isCharset&&s.isCharset()?(a.splice(c,0,s),c++,f++):"Import"===s.type?(a.splice(f,0,s),f++):a.push(s);if(a=[].concat(a),!this.root){(r=eu(e,this,h))&&(t.add(r),t.add(h));var p=this.paths,v=p.length,d=void 0;for(l=e.compress?",":",\n"+h,i=0;i<v;i++)if(d=(o=p[i]).length)for(i>0&&t.add(l),e.firstSelector=!0,o[0].genCSS(e,t),e.firstSelector=!1,n=1;n<d;n++)o[n].genCSS(e,t);t.add((e.compress?"{":" {\n")+u)}for(i=0;s=a[i];i++){i+1===a.length&&(e.lastRule=!0);var m=e.lastRule;s.isRulesetLike(s)&&(e.lastRule=!1),s.genCSS?s.genCSS(e,t):s.value&&t.add(s.value.toString()),e.lastRule=m,!e.lastRule&&s.isVisible()?t.add(e.compress?"":"\n"+u):e.lastRule=!1}this.root||(t.add(e.compress?"}":"\n"+h+"}"),e.tabLevel--),t.isEmpty()||e.compress||!this.firstRoot||t.add("\n")},joinSelectors:function(e,t,i){for(var n=0;n<i.length;n++)this.joinSelector(e,t,i[n])},joinSelector:function(e,t,i){function n(e,t){var i,n;if(0===e.length)i=new f(e[0]);else{var r=Array(e.length);for(n=0;n<e.length;n++)r[n]=new d(null,e[n],t.isVariable,t._index,t._fileInfo);i=new f(new et(r))}return i}function r(e,t){var i;return i=new d(null,e,t.isVariable,t._index,t._fileInfo),new et([i])}function s(e,t,i,n){var r,s,o;if(r=[],e.length>0?(s=(r=w(e)).pop(),o=n.createDerived(w(s.elements))):o=n.createDerived([]),t.length>0){var a=i.combinator,l=t[0].elements[0];a.emptyOrWhitespace&&!l.combinator.emptyOrWhitespace&&(a=l.combinator),o.elements.push(new d(a,l.value,i.isVariable,i._index,i._fileInfo)),o.elements=o.elements.concat(t[0].elements.slice(1))}if(0!==o.elements.length&&r.push(o),t.length>1){var u=t.slice(1);u=u.map(function(e){return e.createDerived(e.elements,[])}),r=r.concat(u)}return r}function o(e,t,i,n,r){var o;for(o=0;o<e.length;o++){var a=s(e[o],t,i,n);r.push(a)}return r}function a(e,t){var i,n;if(0!==e.length){if(0!==t.length)for(i=0;n=t[i];i++)n.length>0?n[n.length-1]=n[n.length-1].createDerived(n[n.length-1].elements.concat(e)):n.push(new et(e));else t.push([new et(e)])}}function l(e,t){var i=t.createDerived(t.elements,t.extendList,t.evaldCondition);return i.copyVisibilityInfo(e),i}if(!function e(t,i,l){var u,h,c,p,v,m,g,$,y,b,w,_,x=!1;for(p=[],v=[[]],u=0;$=l.elements[u];u++)if("&"!==$.value){var S=(_=void 0,(w=$).value instanceof f&&(_=w.value.value)instanceof et?_:null);if(null!==S){a(p,v);var I,C=[],k=[];for(I=e(C,i,S),x=x||I,c=0;c<C.length;c++)o(v,[r(n(C[c],$),$)],$,l,k);v=k,p=[]}else p.push($)}else{for(x=!0,m=[],a(p,v),h=0;h<v.length;h++)if(g=v[h],0===i.length)g.length>0&&g[0].elements.push(new d($.combinator,"",$.isVariable,$._index,$._fileInfo)),m.push(g);else for(c=0;c<i.length;c++){var P=s(g,i[c],$,l);m.push(P)}v=m,p=[]}for(a(p,v),u=0;u<v.length;u++)(y=v[u].length)>0&&(t.push(v[u]),b=v[u][y-1],v[u][y-1]=b.createDerived(b.elements,l.extendList));return x}(h=[],t,i)){if(t.length>0)for(h=[],u=0;u<t.length;u++){var u,h,c=t[u].map(l.bind(this,i.visibilityInfo()));c.push(i),h.push(c)}else h=[[i]]}for(u=0;u<h.length;u++)e.push(h[u])}});var ep=function(e,t,i,n,r,s,o,a){var u;if(this.name=e,this.value=t instanceof l?t:t?new er(t):t,i){for(Array.isArray(i)?this.rules=i:(this.rules=[i],this.rules[0].selectors=new et([],null,null,n,r).createEmptySelectors()),u=0;u<this.rules.length;u++)this.rules[u].allowImports=!0;this.setParent(this.rules,this)}this._index=n,this._fileInfo=r,this.debugInfo=s,this.isRooted=o||!1,this.copyVisibilityInfo(a),this.allowRoot=!0};ep.prototype=Object.assign(new l,{type:"AtRule",accept:function(e){var t=this.value,i=this.rules;i&&(this.rules=e.visitArray(i)),t&&(this.value=e.visit(t))},isRulesetLike:function(){return this.rules||!this.isCharset()},isCharset:function(){return"@charset"===this.name},genCSS:function(e,t){var i=this.value,n=this.rules;t.add(this.name,this.fileInfo(),this.getIndex()),i&&(t.add(" "),i.genCSS(e,t)),n?this.outputRuleset(e,t,n):t.add(";")},eval:function(e){var t,i,n=this.value,r=this.rules;return t=e.mediaPath,i=e.mediaBlocks,e.mediaPath=[],e.mediaBlocks=[],n&&(n=n.eval(e)),r&&((r=[r[0].eval(e)])[0].root=!0),e.mediaPath=t,e.mediaBlocks=i,new ep(this.name,n,r,this.getIndex(),this.fileInfo(),this.debugInfo,this.isRooted,this.visibilityInfo())},variable:function(e){if(this.rules)return ef.prototype.variable.call(this.rules[0],e)},find:function(){if(this.rules)return ef.prototype.find.apply(this.rules[0],arguments)},rulesets:function(){if(this.rules)return ef.prototype.rulesets.apply(this.rules[0])},outputRuleset:function(e,t,i){var n,r=i.length;if(e.tabLevel=1+(0|e.tabLevel),e.compress){for(t.add("{"),n=0;n<r;n++)i[n].genCSS(e,t);return t.add("}"),void e.tabLevel--}var s="\n"+Array(e.tabLevel).join(" "),o=s+" ";if(r){for(t.add(" {"+o),i[0].genCSS(e,t),n=1;n<r;n++)t.add(o),i[n].genCSS(e,t);t.add(s+"}")}else t.add(" {"+s+"}");e.tabLevel--}});var ev=function(e,t){this.ruleset=e,this.frames=t,this.setParent(this.ruleset,this)};ev.prototype=Object.assign(new l,{type:"DetachedRuleset",evalFirst:!0,accept:function(e){this.ruleset=e.visit(this.ruleset)},eval:function(e){var t=this.frames||w(e.frames);return new ev(this.ruleset,t)},callEval:function(e){return this.ruleset.eval(this.frames?new L.Eval(e,this.frames.concat(e.frames)):e)}});var ed=function(e,t,i){this.numerator=e?w(e).sort():[],this.denominator=t?w(t).sort():[],i?this.backupUnit=i:e&&e.length&&(this.backupUnit=e[0])};ed.prototype=Object.assign(new l,{type:"Unit",clone:function(){return new ed(w(this.numerator),w(this.denominator),this.backupUnit)},genCSS:function(e,t){var i=e&&e.strictUnits;1===this.numerator.length?t.add(this.numerator[0]):!i&&this.backupUnit?t.add(this.backupUnit):!i&&this.denominator.length&&t.add(this.denominator[0])},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:void 0},is:function(e){return this.toString().toUpperCase()===e.toUpperCase()},isLength:function(){return RegExp("^(px|em|ex|ch|rem|in|cm|mm|pc|pt|ex|vw|vh|vmin|vmax)$","gi").test(this.toCSS())},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 e,t,i,n={};for(i in t=function(t){return e.hasOwnProperty(t)&&!n[i]&&(n[i]=t),t},o)o.hasOwnProperty(i)&&(e=o[i],this.map(t));return n},cancel:function(){var e,t,i={};for(t=0;t<this.numerator.length;t++)i[e=this.numerator[t]]=(i[e]||0)+1;for(t=0;t<this.denominator.length;t++)i[e=this.denominator[t]]=(i[e]||0)-1;for(e in this.numerator=[],this.denominator=[],i)if(i.hasOwnProperty(e)){var n=i[e];if(n>0)for(t=0;t<n;t++)this.numerator.push(e);else if(n<0)for(t=0;t<-n;t++)this.denominator.push(e)}this.numerator.sort(),this.denominator.sort()}});var em=function(e,t){if(this.value=parseFloat(e),isNaN(this.value))throw Error("Dimension is not a number.");this.unit=t&&t instanceof ed?t:new ed(t?[t]:void 0),this.setParent(this.unit,this)};em.prototype=Object.assign(new l,{type:"Dimension",accept:function(e){this.unit=e.visit(this.unit)},eval:function(e){return this},toColor:function(){return new u([this.value,this.value,this.value])},genCSS:function(e,t){if(e&&e.strictUnits&&!this.unit.isSingular())throw Error("Multiple units in dimension. Correct the units or use the unit function. Bad unit: "+this.unit.toString());var i=this.fround(e,this.value),n=String(i);if(0!==i&&i<1e-6&&i>-.000001&&(n=i.toFixed(20).replace(/0+$/,"")),e&&e.compress){if(0===i&&this.unit.isLength())return void t.add(n);i>0&&i<1&&(n=n.substr(1))}t.add(n),this.unit.genCSS(e,t)},operate:function(e,t,i){var n=this._operate(e,t,this.value,i.value),r=this.unit.clone();if("+"===t||"-"===t){if(0===r.numerator.length&&0===r.denominator.length)r=i.unit.clone(),this.unit.backupUnit&&(r.backupUnit=this.unit.backupUnit);else if(0===i.unit.numerator.length&&0===r.denominator.length);else{if(i=i.convertTo(this.unit.usedUnits()),e.strictUnits&&i.unit.toString()!==r.toString())throw Error("Incompatible units. Change the units or use the unit function. Bad units: '"+r.toString()+"' and '"+i.unit.toString()+"'.");n=this._operate(e,t,this.value,i.value)}}else"*"===t?(r.numerator=r.numerator.concat(i.unit.numerator).sort(),r.denominator=r.denominator.concat(i.unit.denominator).sort(),r.cancel()):"/"===t&&(r.numerator=r.numerator.concat(i.unit.denominator).sort(),r.denominator=r.denominator.concat(i.unit.numerator).sort(),r.cancel());return new em(n,r)},compare:function(e){var t,i;if(e instanceof em){if(this.unit.isEmpty()||e.unit.isEmpty())t=this,i=e;else if(t=this.unify(),i=e.unify(),0!==t.unit.compare(i.unit))return;return l.numericCompare(t.value,i.value)}},unify:function(){return this.convertTo({length:"px",duration:"s",angle:"rad"})},convertTo:function(e){var t,i,n,r,s,a=this.value,l=this.unit.clone(),u={};if("string"==typeof e){for(t in o)o[t].hasOwnProperty(e)&&((u={})[t]=e);e=u}for(i in s=function(e,t){return n.hasOwnProperty(e)?(t?a/=n[e]/n[r]:a*=n[e]/n[r],r):e},e)e.hasOwnProperty(i)&&(r=e[i],n=o[i],l.map(s));return l.cancel(),new em(a,l)}});var eg=m,e$=function(e,t,i){this.op=e.trim(),this.operands=t,this.isSpaced=i};e$.prototype=Object.assign(new l,{type:"Operation",accept:function(e){this.operands=e.visitArray(this.operands)},eval:function(e){var t,i=this.operands[0].eval(e),n=this.operands[1].eval(e);if(e.isMathOn(this.op)){if(t="./"===this.op?"/":this.op,i instanceof em&&n instanceof u&&(i=i.toColor()),n instanceof em&&i instanceof u&&(n=n.toColor()),!i.operate||!n.operate){if((i instanceof e$||n instanceof e$)&&"/"===i.op&&e.math===eg.PARENS_DIVISION)return new e$(this.op,[i,n],this.isSpaced);throw{type:"Operation",message:"Operation on an invalid type"}}return i.operate(e,t,n)}return new e$(this.op,[i,n],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)}});var ey=function(){return(ey=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++)for(var r in t=arguments[i])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},eb=function(e,t){if(this.value=e,this.noSpacing=t,!e)throw Error("Expression requires an array parameter")};eb.prototype=Object.assign(new l,{type:"Expression",accept:function(e){this.value=e.visitArray(this.value)},eval:function(e){var t,i=e.isMathOn(),n=this.parens,r=!1;return n&&e.inParenthesis(),this.value.length>1?t=new eb(this.value.map(function(t){return t.eval?t.eval(e):t}),this.noSpacing):1===this.value.length?(!this.value[0].parens||this.value[0].parensInOp||e.inCalc||(r=!0),t=this.value[0].eval(e)):t=this,n&&e.outOfParenthesis(),!this.parens||!this.parensInOp||i||r||t instanceof em||(t=new f(t)),t},genCSS:function(e,t){for(var i=0;i<this.value.length;i++)this.value[i].genCSS(e,t),!this.noSpacing&&i+1<this.value.length&&t.add(" ")},throwAwayComments:function(){this.value=this.value.filter(function(e){return!(e instanceof eh)})}});var ew=function(){function e(e,t,i,n){this.name=e.toLowerCase(),this.index=i,this.context=t,this.currentFileInfo=n,this.func=t.frames[0].functionRegistry.get(this.name)}return e.prototype.isValid=function(){return Boolean(this.func)},e.prototype.call=function(e){var t=this;Array.isArray(e)||(e=[e]);var i=this.func.evalArgs;!1!==i&&(e=e.map(function(e){return e.eval(t.context)}));var n=function(e){return"Comment"!==e.type};return e=e.filter(n).map(function(e){if("Expression"===e.type){var t=e.value.filter(n);return 1===t.length?e.parens&&"/"===t[0].op?e:t[0]:new eb(t)}return e}),!1===i?this.func.apply(this,function(e,t,i){if(2===arguments.length)for(var n,r=0,s=t.length;r<s;r++)!n&&r in t||(n||(n=Array.prototype.slice.call(t,0,r)),n[r]=t[r]);return e.concat(n||t)}([this.context],e)):this.func.apply(this,e)},e}(),e_=function(e,t,i,n){this.name=e,this.args=t,this.calc="calc"===e,this._index=i,this._fileInfo=n};e_.prototype=Object.assign(new l,{type:"Call",accept:function(e){this.args&&(this.args=e.visitArray(this.args))},eval:function(e){var t=this,i=e.mathOn;e.mathOn=!this.calc,(this.calc||e.inCalc)&&e.enterCalc();var n,r=function(){(t.calc||e.inCalc)&&e.exitCalc(),e.mathOn=i},s=new ew(this.name,e,this.getIndex(),this.fileInfo());if(s.isValid())try{n=s.call(this.args),r()}catch(o){if(o.hasOwnProperty("line")&&o.hasOwnProperty("column"))throw o;throw{type:o.type||"Runtime",message:"Error evaluating function `"+this.name+"`"+(o.message?": "+o.message:""),index:this.getIndex(),filename:this.fileInfo().filename,line:o.lineNumber,column:o.columnNumber}}if(null!=n)return n instanceof l||(n=new er(n&&!0!==n?n.toString():null)),n._index=this._index,n._fileInfo=this._fileInfo,n;var a=this.args.map(function(t){return t.eval(e)});return r(),new e_(this.name,a,this.getIndex(),this.fileInfo())},genCSS:function(e,t){t.add(this.name+"(",this.fileInfo(),this.getIndex());for(var i=0;i<this.args.length;i++)this.args[i].genCSS(e,t),i+1<this.args.length&&t.add(", ");t.add(")")}});var ex=function(e,t,i){this.name=e,this._index=t,this._fileInfo=i};ex.prototype=Object.assign(new l,{type:"Variable",eval:function(e){var t,i=this.name;if(0===i.indexOf("@@")&&(i="@"+new ex(i.slice(1),this.getIndex(),this.fileInfo()).eval(e).value),this.evaluating)throw{type:"Name",message:"Recursive variable definition for "+i,filename:this.fileInfo().filename,index:this.getIndex()};if(this.evaluating=!0,t=this.find(e.frames,function(t){var n=t.variable(i);if(n)return n.important&&(e.importantScope[e.importantScope.length-1].important=n.important),e.inCalc?new e_("_SELF",[n.value]).eval(e):n.value.eval(e)}))return this.evaluating=!1,t;throw{type:"Name",message:"variable "+i+" is undefined",filename:this.fileInfo().filename,index:this.getIndex()}},find:function(e,t){for(var i=0,n=void 0;i<e.length;i++)if(n=t.call(e,e[i]))return n;return null}});var eS=function(e,t,i){this.name=e,this._index=t,this._fileInfo=i};eS.prototype=Object.assign(new l,{type:"Property",eval:function(e){var t,i=this.name,n=e.pluginManager.less.visitors.ToCSSVisitor.prototype._mergeRules;if(this.evaluating)throw{type:"Name",message:"Recursive property reference for "+i,filename:this.fileInfo().filename,index:this.getIndex()};if(this.evaluating=!0,t=this.find(e.frames,function(t){var r,s=t.property(i);if(s){for(var o=0;o<s.length;o++)r=s[o],s[o]=new eo(r.name,r.value,r.important,r.merge,r.index,r.currentFileInfo,r.inline,r.variable);return n(s),(r=s[s.length-1]).important&&(e.importantScope[e.importantScope.length-1].important=r.important),r.value.eval(e)}}))return this.evaluating=!1,t;throw{type:"Name",message:"Property '"+i+"' is undefined",filename:this.currentFileInfo.filename,index:this.index}},find:function(e,t){for(var i=0,n=void 0;i<e.length;i++)if(n=t.call(e,e[i]))return n;return null}});var eI=function(e,t,i,n){this.key=e,this.op=t,this.value=i,this.cif=n};eI.prototype=Object.assign(new l,{type:"Attribute",eval:function(e){return new eI(this.key.eval?this.key.eval(e):this.key,this.op,this.value&&this.value.eval?this.value.eval(e):this.value,this.cif)},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),this.cif&&(t=t+" "+this.cif),"["+t+"]"}});var eC=function(e,t,i,n,r){this.escaped=void 0===i||i,this.value=t||"",this.quote=e.charAt(0),this._index=n,this._fileInfo=r,this.variableRegex=/@\{([\w-]+)\}/g,this.propRegex=/\$\{([\w-]+)\}/g,this.allowRoot=i};eC.prototype=Object.assign(new l,{type:"Quoted",genCSS:function(e,t){this.escaped||t.add(this.quote,this.fileInfo(),this.getIndex()),t.add(this.value),this.escaped||t.add(this.quote)},containsVariables:function(){return this.value.match(this.variableRegex)},eval:function(e){var t=this,i=this.value;function n(e,t,i){var n=e;do n=(e=n.toString()).replace(t,i);while(e!==n);return n}return i=n(i,this.variableRegex,function(i,n){var r=new ex("@"+n,t.getIndex(),t.fileInfo()).eval(e,!0);return r instanceof eC?r.value:r.toCSS()}),i=n(i,this.propRegex,function(i,n){var r=new eS("$"+n,t.getIndex(),t.fileInfo()).eval(e,!0);return r instanceof eC?r.value:r.toCSS()}),new eC(this.quote+i+this.quote,i,this.escaped,this.getIndex(),this.fileInfo())},compare:function(e){return"Quoted"!==e.type||this.escaped||e.escaped?e.toCSS&&this.toCSS()===e.toCSS()?0:void 0:l.numericCompare(this.value,e.value)}});var ek=function(e,t,i,n){this.value=e,this._index=t,this._fileInfo=i,this.isEvald=n};ek.prototype=Object.assign(new l,{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(")")},eval:function(e){var t,i=this.value.eval(e);if(!this.isEvald&&("string"==typeof(t=this.fileInfo()&&this.fileInfo().rootpath)&&"string"==typeof i.value&&e.pathRequiresRewrite(i.value)?(i.quote||(t=t.replace(/[()'"\s]/g,function(e){return"\\"+e})),i.value=e.rewritePath(i.value,t)):i.value=e.normalizePath(i.value),e.urlArgs&&!i.value.match(/^\s*data:/))){var n=(-1===i.value.indexOf("?")?"?":"&")+e.urlArgs;-1!==i.value.indexOf("#")?i.value=i.value.replace("#",n+"#"):i.value+=n}return new ek(i,this.getIndex(),this.fileInfo(),!0)}});var e8={isRulesetLike:function(){return!0},accept:function(e){this.features&&(this.features=e.visit(this.features)),this.rules&&(this.rules=e.visitArray(this.rules))},evalTop:function(e){var t=this;if(e.mediaBlocks.length>1){var i=new et([],null,null,this.getIndex(),this.fileInfo()).createEmptySelectors();(t=new ef(i,e.mediaBlocks)).multiMedia=!0,t.copyVisibilityInfo(this.visibilityInfo()),this.setParent(t,this)}return delete e.mediaBlocks,delete e.mediaPath,t},evalNested:function(e){var t,i,n=e.mediaPath.concat([this]);for(t=0;t<n.length;t++)i=n[t].features instanceof ei?n[t].features.value:n[t].features,n[t]=Array.isArray(i)?i:[i];return this.features=new ei(this.permute(n).map(function(e){for(t=(e=e.map(function(e){return e.toCSS?e:new er(e)})).length-1;t>0;t--)e.splice(t,0,new er("and"));return new eb(e)})),this.setParent(this.features,this),new ef([],[])},permute:function(e){if(0===e.length)return[];if(1===e.length)return e[0];for(var t=[],i=this.permute(e.slice(1)),n=0;n<i.length;n++)for(var r=0;r<e[0].length;r++)t.push([e[0][r]].concat(i[n]));return t},bubbleSelectors:function(e){e&&(this.rules=[new ef(w(e),[this.rules[0]])],this.setParent(this.rules,this))}},eP=function(e,t,i,n,r){this._index=i,this._fileInfo=n;var s=new et([],null,null,this._index,this._fileInfo).createEmptySelectors();this.features=new ei(t),this.rules=[new ef(s,e)],this.rules[0].allowImports=!0,this.copyVisibilityInfo(r),this.allowRoot=!0,this.setParent(s,this),this.setParent(this.features,this),this.setParent(this.rules,this)};eP.prototype=Object.assign(new ep,ey(ey({type:"Media"},e8),{genCSS:function(e,t){t.add("@media ",this._fileInfo,this._index),this.features.genCSS(e,t),this.outputRuleset(e,t,this.rules)},eval:function(e){e.mediaBlocks||(e.mediaBlocks=[],e.mediaPath=[]);var t=new eP(null,[],this._index,this._fileInfo,this.visibilityInfo());return this.debugInfo&&(this.rules[0].debugInfo=this.debugInfo,t.debugInfo=this.debugInfo),t.features=this.features.eval(e),e.mediaPath.push(t),e.mediaBlocks.push(t),this.rules[0].functionRegistry=e.frames[0].functionRegistry.inherit(),e.frames.unshift(this.rules[0]),t.rules=[this.rules[0].eval(e)],e.frames.shift(),e.mediaPath.pop(),0===e.mediaPath.length?t.evalTop(e):t.evalNested(e)}}));var eA=function(e,t,i,n,r,s){if(this.options=i,this._index=n,this._fileInfo=r,this.path=e,this.features=t,this.allowRoot=!0,void 0!==this.options.less||this.options.inline)this.css=!this.options.less||this.options.inline;else{var o=this.getPath();o&&/[#.&?]css([?;].*)?$/.test(o)&&(this.css=!0)}this.copyVisibilityInfo(s),this.setParent(this.features,this),this.setParent(this.path,this)};eA.prototype=Object.assign(new l,{type:"Import",accept:function(e){this.features&&(this.features=e.visit(this.features)),this.path=e.visit(this.path),this.options.isPlugin||this.options.inline||!this.root||(this.root=e.visit(this.root))},genCSS:function(e,t){this.css&&void 0===this.path._fileInfo.reference&&(t.add("@import ",this._fileInfo,this._index),this.path.genCSS(e,t),this.features&&(t.add(" "),this.features.genCSS(e,t)),t.add(";"))},getPath:function(){return this.path instanceof ek?this.path.value.value:this.path.value},isVariableImport:function(){var e=this.path;return e instanceof ek&&(e=e.value),!(e instanceof eC)||e.containsVariables()},evalForImport:function(e){var t=this.path;return t instanceof ek&&(t=t.value),new eA(t.eval(e),this.features,this.options,this._index,this._fileInfo,this.visibilityInfo())},evalPath:function(e){var t=this.path.eval(e),i=this._fileInfo;if(!(t instanceof ek)){var n=t.value;i&&n&&e.pathRequiresRewrite(n)?t.value=e.rewritePath(n,i.rootpath):t.value=e.normalizePath(t.value)}return t},eval:function(e){var t=this.doEval(e);return(this.options.reference||this.blocksVisibility())&&(t.length||0===t.length?t.forEach(function(e){e.addVisibilityBlock()}):t.addVisibilityBlock()),t},doEval:function(e){var t,i,n=this.features&&this.features.eval(e);if(this.options.isPlugin){if(this.root&&this.root.eval)try{this.root.eval(e)}catch(r){throw r.message="Plugin error during evaluation",new A(r,this.root.imports,this.root.filename)}return(i=e.frames[0]&&e.frames[0].functionRegistry)&&this.root&&this.root.functions&&i.addMultiple(this.root.functions),[]}if(this.skip&&("function"==typeof this.skip&&(this.skip=this.skip()),this.skip))return[];if(this.options.inline){var s=new er(this.root,0,{filename:this.importedFilename,reference:this.path._fileInfo&&this.path._fileInfo.reference},!0,!0);return this.features?new eP([s],this.features.value):[s]}if(this.css){var o=new eA(this.evalPath(e),n,this.options,this._index);if(!o.css&&this.error)throw this.error;return o}return this.root?((t=new ef(null,w(this.root.rules))).evalImports(e),this.features?new eP(t.rules,this.features.value):t.rules):[]}});var eR=function(){};eR.prototype=Object.assign(new l,{evaluateJavaScript:function(e,t){var i,n=this,r={};if(!t.javascriptEnabled)throw{message:"Inline JavaScript is not enabled. Is it set in your options?",filename:this.fileInfo().filename,index:this.getIndex()};e=e.replace(/@\{([\w-]+)\}/g,function(e,i){return n.jsify(new ex("@"+i,n.getIndex(),n.fileInfo()).eval(t))});try{e=Function("return ("+e+")")}catch(s){throw{message:"JavaScript evaluation error: "+s.message+" from `"+e+"`",filename:this.fileInfo().filename,index:this.getIndex()}}var o=t.frames[0].variables();for(var a in o)o.hasOwnProperty(a)&&(r[a.slice(1)]={value:o[a].value,toJS:function(){return this.value.eval(t).toCSS()}});try{i=e.call(r)}catch(l){throw{message:"JavaScript evaluation error: '"+l.name+": "+l.message.replace(/["]/g,"'")+"'",filename:this.fileInfo().filename,index:this.getIndex()}}return i},jsify:function(e){return Array.isArray(e.value)&&e.value.length>1?"["+e.value.map(function(e){return e.toCSS()}).join(", ")+"]":e.toCSS()}});var eM=function(e,t,i,n){this.escaped=t,this.expression=e,this._index=i,this._fileInfo=n};eM.prototype=Object.assign(new eR,{type:"JavaScript",eval:function(e){var t=this.evaluateJavaScript(this.expression,e),i=typeof t;return"number"!==i||isNaN(t)?"string"===i?new eC('"'+t+'"',t,this.escaped,this._index):Array.isArray(t)?new er(t.join(", ")):new er(t):new em(t)}});var eE=function(e,t){this.key=e,this.value=t};eE.prototype=Object.assign(new l,{type:"Assignment",accept:function(e){this.value=e.visit(this.value)},eval:function(e){return this.value.eval?new eE(this.key,this.value.eval(e)):this},genCSS:function(e,t){t.add(this.key+"="),this.value.genCSS?this.value.genCSS(e,t):t.add(this.value)}});var e0=function(e,t,i,n,r){this.op=e.trim(),this.lvalue=t,this.rvalue=i,this._index=n,this.negate=r};e0.prototype=Object.assign(new l,{type:"Condition",accept:function(e){this.lvalue=e.visit(this.lvalue),this.rvalue=e.visit(this.rvalue)},eval:function(e){var t=function(e,t,i){switch(e){case"and":return t&&i;case"or":return t||i;default:switch(l.compare(t,i)){case -1:return"<"===e||"=<"===e||"<="===e;case 0:return"="===e||">="===e||"=<"===e||"<="===e;case 1:return">"===e||">="===e;default:return!1}}}(this.op,this.lvalue.eval(e),this.rvalue.eval(e));return this.negate?!t:t}});var eV=function(e,t,i,n,r,s){this.op=e.trim(),this.lvalue=t,this.mvalue=i,this.op2=n?n.trim():null,this.rvalue=r,this._index=s};eV.prototype=Object.assign(new l,{type:"QueryInParens",accept:function(e){this.lvalue=e.visit(this.lvalue),this.mvalue=e.visit(this.mvalue),this.rvalue&&(this.rvalue=e.visit(this.rvalue))},eval:function(e){return this.lvalue=this.lvalue.eval(e),this.mvalue=this.mvalue.eval(e),this.rvalue&&(this.rvalue=this.rvalue.eval(e)),this},genCSS:function(e,t){this.lvalue.genCSS(e,t),t.add(" "+this.op+" "),this.mvalue.genCSS(e,t),this.rvalue&&(t.add(" "+this.op2+" "),this.rvalue.genCSS(e,t))}});var e9=function(e,t,i,n,r){this._index=i,this._fileInfo=n;var s=new et([],null,null,this._index,this._fileInfo).createEmptySelectors();this.features=new ei(t),this.rules=[new ef(s,e)],this.rules[0].allowImports=!0,this.copyVisibilityInfo(r),this.allowRoot=!0,this.setParent(s,this),this.setParent(this.features,this),this.setParent(this.rules,this)};e9.prototype=Object.assign(new ep,ey(ey({type:"Container"},e8),{genCSS:function(e,t){t.add("@container ",this._fileInfo,this._index),this.features.genCSS(e,t),this.outputRuleset(e,t,this.rules)},eval:function(e){e.mediaBlocks||(e.mediaBlocks=[],e.mediaPath=[]);var t=new e9(null,[],this._index,this._fileInfo,this.visibilityInfo());return this.debugInfo&&(this.rules[0].debugInfo=this.debugInfo,t.debugInfo=this.debugInfo),t.features=this.features.eval(e),e.mediaPath.push(t),e.mediaBlocks.push(t),this.rules[0].functionRegistry=e.frames[0].functionRegistry.inherit(),e.frames.unshift(this.rules[0]),t.rules=[this.rules[0].eval(e)],e.frames.shift(),e.mediaPath.pop(),0===e.mediaPath.length?t.evalTop(e):t.evalNested(e)}}));var eF=function(e){this.value=e};eF.prototype=Object.assign(new l,{type:"UnicodeDescriptor"});var e3=function(e){this.value=e};e3.prototype=Object.assign(new l,{type:"Negative",genCSS:function(e,t){t.add("-"),this.value.genCSS(e,t)},eval:function(e){return e.isMathOn()?new e$("*",[new em(-1),this.value]).eval(e):new e3(this.value.eval(e))}});var eL=function(e,t,i,n,r){(this.selector=e,this.option=t,this.object_id=eL.next_id++,this.parent_ids=[this.object_id],this._index=i,this._fileInfo=n,this.copyVisibilityInfo(r),this.allowRoot=!0,"all"===t)?(this.allowBefore=!0,this.allowAfter=!0):(this.allowBefore=!1,this.allowAfter=!1),this.setParent(this.selector,this)};eL.prototype=Object.assign(new l,{type:"Extend",accept:function(e){this.selector=e.visit(this.selector)},eval:function(e){return new eL(this.selector.eval(e),this.option,this.getIndex(),this.fileInfo(),this.visibilityInfo())},clone:function(e){return new eL(this.selector,this.option,this.getIndex(),this.fileInfo(),this.visibilityInfo())},findSelfSelectors:function(e){var t,i,n=[];for(t=0;t<e.length;t++)i=e[t].elements,t>0&&i.length&&""===i[0].combinator.value&&(i[0].combinator.value=" "),n=n.concat(e[t].elements);this.selfSelectors=[new et(n)],this.selfSelectors[0].copyVisibilityInfo(this.visibilityInfo())}}),eL.next_id=0;var eO=function(e,t,i){this.variable=e,this._index=t,this._fileInfo=i,this.allowRoot=!0};eO.prototype=Object.assign(new l,{type:"VariableCall",eval:function(e){var t,i=new ex(this.variable,this.getIndex(),this.fileInfo()).eval(e),n=new A({message:"Could not evaluate variable call "+this.variable});if(!i.ruleset){if(i.rules)t=i;else if(Array.isArray(i))t=new ef("",i);else{if(!Array.isArray(i.value))throw n;t=new ef("",i.value)}i=new ev(t)}if(i.ruleset)return i.callEval(e);throw n}});var eN=function(e,t,i,n){this.value=e,this.lookups=t,this._index=i,this._fileInfo=n};eN.prototype=Object.assign(new l,{type:"NamespaceValue",eval:function(e){var t,i,n=this.value.eval(e);for(t=0;t<this.lookups.length;t++){if(i=this.lookups[t],Array.isArray(n)&&(n=new ef([new et],n)),""===i)n=n.lastDeclaration();else if("@"===i.charAt(0)){if("@"===i.charAt(1)&&(i="@"+new ex(i.substr(1)).eval(e).value),n.variables&&(n=n.variable(i)),!n)throw{type:"Name",message:"variable "+i+" not found",filename:this.fileInfo().filename,index:this.getIndex()}}else{if(i="$@"===i.substring(0,2)?"$"+new ex(i.substr(1)).eval(e).value:"$"===i.charAt(0)?i:"$"+i,n.properties&&(n=n.property(i)),!n)throw{type:"Name",message:'property "'+i.substr(1)+'" not found',filename:this.fileInfo().filename,index:this.getIndex()};n=n[n.length-1]}n.value&&(n=n.eval(e).value),n.ruleset&&(n=n.ruleset.eval(e))}return n}});var eD=function(e,t,i,n,r,s,o){this.name=e||"anonymous mixin",this.selectors=[new et([new d(null,e,!1,this._index,this._fileInfo)]),],this.params=t,this.condition=n,this.variadic=r,this.arity=t.length,this.rules=i,this._lookups={};var a=[];this.required=t.reduce(function(e,t){return t.name&&(!t.name||t.value)?(a.push(t.name),e):e+1},0),this.optionalParameters=a,this.frames=s,this.copyVisibilityInfo(o),this.allowRoot=!0};eD.prototype=Object.assign(new ef,{type:"MixinDefinition",evalFirst:!0,accept:function(e){this.params&&this.params.length&&(this.params=e.visitArray(this.params)),this.rules=e.visitArray(this.rules),this.condition&&(this.condition=e.visit(this.condition))},evalParams:function(e,t,i,n){var r,s,o,a,l,u,h,c,f=new ef(null,null),p=w(this.params),v=0;if(t.frames&&t.frames[0]&&t.frames[0].functionRegistry&&(f.functionRegistry=t.frames[0].functionRegistry.inherit()),t=new L.Eval(t,[f].concat(t.frames)),i){for(v=(i=w(i)).length,o=0;o<v;o++)if(u=(s=i[o])&&s.name){for(h=!1,a=0;a<p.length;a++)if(!n[a]&&u===p[a].name){n[a]=s.value.eval(e),f.prependRule(new eo(u,s.value.eval(e))),h=!0;break}if(h){i.splice(o,1),o--;continue}throw{type:"Runtime",message:"Named argument for "+this.name+" "+i[o].name+" not found"}}}for(c=0,o=0;o<p.length;o++)if(!n[o]){if(s=i&&i[c],u=p[o].name){if(p[o].variadic){for(r=[],a=c;a<v;a++)r.push(i[a].value.eval(e));f.prependRule(new eo(u,new eb(r).eval(e)))}else{if(l=s&&s.value)l=Array.isArray(l)?new ev(new ef("",l)):l.eval(e);else{if(!p[o].value)throw{type:"Runtime",message:"wrong number of arguments for "+this.name+" ("+v+" for "+this.arity+")"};l=p[o].value.eval(t),f.resetCache()}f.prependRule(new eo(u,l)),n[o]=l}}if(p[o].variadic&&i)for(a=c;a<v;a++)n[a]=i[a].value.eval(e);c++}return f},makeImportant:function(){var e=this.rules?this.rules.map(function(e){return e.makeImportant?e.makeImportant(!0):e}):this.rules;return new eD(this.name,this.params,e,this.condition,this.variadic,this.frames)},eval:function(e){return new eD(this.name,this.params,this.rules,this.condition,this.variadic,this.frames||w(e.frames))},evalCall:function(e,t,i){var n,r,s=[],o=this.frames?this.frames.concat(e.frames):e.frames,a=this.evalParams(e,new L.Eval(e,o),t,s);return a.prependRule(new eo("@arguments",new eb(s).eval(e))),n=w(this.rules),(r=new ef(null,n)).originalRuleset=this,r=r.eval(new L.Eval(e,[this,a].concat(o))),i&&(r=r.makeImportant()),r},matchCondition:function(e,t){return!(this.condition&&!this.condition.eval(new L.Eval(t,[this.evalParams(t,new L.Eval(t,this.frames?this.frames.concat(t.frames):t.frames),e,[]),].concat(this.frames||[]).concat(t.frames))))},matchArgs:function(e,t){var i,n=e&&e.length||0,r=this.optionalParameters,s=e?e.reduce(function(e,t){return 0>r.indexOf(t.name)?e+1:e},0):0;if(this.variadic){if(s<this.required-1)return!1}else if(s<this.required||n>this.params.length)return!1;i=Math.min(s,this.arity);for(var o=0;o<i;o++)if(!this.params[o].name&&!this.params[o].variadic&&e[o].value.eval(t).toCSS()!=this.params[o].value.eval(t).toCSS())return!1;return!0}});var e1=function(e,t,i,n,r){this.selector=new et(e),this.arguments=t||[],this._index=i,this._fileInfo=n,this.important=r,this.allowRoot=!0,this.setParent(this.selector,this)};e1.prototype=Object.assign(new l,{type:"MixinCall",accept:function(e){this.selector&&(this.selector=e.visit(this.selector)),this.arguments.length&&(this.arguments=e.visitArray(this.arguments))},eval:function(e){var t,i,n,r,s,o,a,l,u,h,c,f,p,v,d,m=[],g=[],$=!1,y=[],b=[];function w(t,i){var n,r,s;for(n=0;n<2;n++){for(b[n]=!0,ec.value(n),r=0;r<i.length&&b[n];r++)(s=i[r]).matchCondition&&(b[n]=b[n]&&s.matchCondition(null,e));t.matchCondition&&(b[n]=b[n]&&t.matchCondition(m,e))}return b[0]||b[1]?b[0]!=b[1]?b[1]?1:2:0:-1}for(this.selector=this.selector.eval(e),o=0;o<this.arguments.length;o++)if(s=(r=this.arguments[o]).value.eval(e),r.expand&&Array.isArray(s.value))for(s=s.value,a=0;a<s.length;a++)m.push({value:s[a]});else m.push({name:r.name,value:s});for(d=function(t){return t.matchArgs(null,e)},o=0;o<e.frames.length;o++)if((t=e.frames[o].find(this.selector,null,d)).length>0){for(h=!0,a=0;a<t.length;a++){for(i=t[a].rule,n=t[a].path,u=!1,l=0;l<e.frames.length;l++)if(!(i instanceof eD)&&i===(e.frames[l].originalRuleset||e.frames[l])){u=!0;break}u||i.matchArgs(m,e)&&(-1!==(c={mixin:i,group:w(i,n)}).group&&y.push(c),$=!0)}for(ec.reset(),p=[0,0,0],a=0;a<y.length;a++)p[y[a].group]++;if(p[0]>0)f=2;else if(f=1,p[1]+p[2]>1)throw{type:"Runtime",message:"Ambiguous use of `default()` found when matching for `"+this.format(m)+"`",index:this.getIndex(),filename:this.fileInfo().filename};for(a=0;a<y.length;a++)if(0===(c=y[a].group)||c===f)try{(i=y[a].mixin)instanceof eD||(v=i.originalRuleset||i,(i=new eD("",[],i.rules,null,!1,null,v.visibilityInfo())).originalRuleset=v);var _=i.evalCall(e,m,this.important).rules;this._setVisibilityToReplacement(_),Array.prototype.push.apply(g,_)}catch(x){throw{message:x.message,index:this.getIndex(),filename:this.fileInfo().filename,stack:x.stack}}if($)return g}throw h?{type:"Runtime",message:"No matching definition was found for `"+this.format(m)+"`",index:this.getIndex(),filename:this.fileInfo().filename}:{type:"Name",message:this.selector.toCSS().trim()+" is undefined",index:this.getIndex(),filename:this.fileInfo().filename}},_setVisibilityToReplacement:function(e){var t;if(this.blocksVisibility())for(t=0;t<e.length;t++)e[t].addVisibilityBlock()},format:function(e){return this.selector.toCSS().trim()+"("+(e?e.map(function(e){var t="";return e.name&&(t+=e.name+":"),e.value.toCSS?t+=e.value.toCSS():t+="???",t}).join(", "):"")+")"}});var e4={Node:l,Color:u,AtRule:ep,DetachedRuleset:ev,Operation:e$,Dimension:em,Unit:ed,Keyword:en,Variable:ex,Property:eS,Ruleset:ef,Element:d,Attribute:eI,Combinator:v,Selector:et,Quoted:eC,Expression:eb,Declaration:eo,Call:e_,URL:ek,Import:eA,Comment:eh,Anonymous:er,Value:ei,JavaScript:eM,Assignment:eE,Condition:e0,Paren:f,Media:eP,Container:e9,QueryInParens:eV,UnicodeDescriptor:eF,Negative:e3,Extend:eL,VariableCall:eO,NamespaceValue:eN,mixin:{Call:e1,Definition:eD}},e7=function(){function e(){}return e.prototype.getPath=function(e){var t=e.lastIndexOf("?");return t>0&&(e=e.slice(0,t)),(t=e.lastIndexOf("/"))<0&&(t=e.lastIndexOf("\\")),t<0?"":e.slice(0,t+1)},e.prototype.tryAppendExtension=function(e,t){return/(\.[a-z]*$)|([?;].*)$/.test(e)?e:e+t},e.prototype.tryAppendLessExtension=function(e){return this.tryAppendExtension(e,".less")},e.prototype.supportsSync=function(){return!1},e.prototype.alwaysMakePathsAbsolute=function(){return!1},e.prototype.isPathAbsolute=function(e){return/^(?:[a-z-]+:|\/|\\|#)/i.test(e)},e.prototype.join=function(e,t){return e?e+t:t},e.prototype.pathDiff=function(e,t){var i,n,r,s,o=this.extractUrlParts(e),a=this.extractUrlParts(t),l="";if(o.hostPart!==a.hostPart)return"";for(n=Math.max(a.directories.length,o.directories.length),i=0;i<n&&a.directories[i]===o.directories[i];i++);for(s=a.directories.slice(i),r=o.directories.slice(i),i=0;i<s.length-1;i++)l+="../";for(i=0;i<r.length-1;i++)l+=r[i]+"/";return l},e.prototype.extractUrlParts=function(e,t){var i,n,r=/^((?:[a-z-]+:)?\/{2}(?:[^/?#]*\/)|([/\\]))?((?:[^/\\?#]*[/\\])*)([^/\\?#]*)([#?].*)?$/i,s=e.match(r),o={},a=[],l=[];if(!s)throw Error("Could not parse sheet href - '"+e+"'");if(t&&(!s[1]||s[2])){if(!(n=t.match(r)))throw Error("Could not parse page url - '"+t+"'");s[1]=s[1]||n[1]||"",s[2]||(s[3]=n[3]+s[3])}if(s[3])for(a=s[3].replace(/\\/g,"/").split("/"),i=0;i<a.length;i++)".."===a[i]?l.pop():"."!==a[i]&&l.push(a[i]);return o.hostPart=s[1],o.directories=l,o.rawPath=(s[1]||"")+a.join("/"),o.path=(s[1]||"")+l.join("/"),o.filename=s[4],o.fileUrl=o.path+(s[4]||""),o.url=o.fileUrl+(s[5]||""),o},e}(),eU=function(){function e(){this.require=function(){return null}}return e.prototype.evalPlugin=function(e,t,i,n,r){l=t.pluginManager,r&&(u="string"==typeof r?r:r.filename);var s,o,a,l,u,h,c=new this.less.FileManager().extractUrlParts(u).filename;if(u&&(o=l.get(u))){if(h=this.trySetOptions(o,u,c,n))return h;try{o.use&&o.use.call(this.context,o)}catch(f){return f.message=f.message||"Error during @plugin call",new A(f,i,u)}return o}a={exports:{},pluginManager:l,fileInfo:r},s=Z.create();try{Function("module","require","registerPlugin","functions","tree","less","fileInfo",e)(a,this.require(u),function(e){o=e},s,this.less.tree,this.less,r)}catch(p){return new A(p,i,u)}if(o||(o=a.exports),(o=this.validatePlugin(o,u,c))instanceof A)return o;if(!o)return new A({message:"Not a valid plugin"},i,u);if(o.imports=i,o.filename=u,(!o.minVersion||0>this.compareVersion("3.0.0",o.minVersion))&&(h=this.trySetOptions(o,u,c,n))||(l.addPlugin(o,r.filename,s),o.functions=s.getLocalFunctions(),h=this.trySetOptions(o,u,c,n)))return h;try{o.use&&o.use.call(this.context,o)}catch(v){return v.message=v.message||"Error during @plugin call",new A(v,i,u)}return o},e.prototype.trySetOptions=function(e,t,i,n){if(n&&!e.setOptions)return new A({message:"Options have been provided but the plugin "+i+" does not support any options."});try{e.setOptions&&e.setOptions(n)}catch(r){return new A(r)}},e.prototype.validatePlugin=function(e,t,i){return e?("function"==typeof e&&(e=new e),e.minVersion&&0>this.compareVersion(e.minVersion,this.less.version)?new A({message:"Plugin "+i+" requires version "+this.versionToString(e.minVersion)}):e):null},e.prototype.compareVersion=function(e,t){"string"==typeof e&&(e=e.match(/^(\d+)\.?(\d+)?\.?(\d+)?/)).shift();for(var i=0;i<e.length;i++)if(e[i]!==t[i])return parseInt(e[i])>parseInt(t[i])?-1:1;return 0},e.prototype.versionToString=function(e){for(var t="",i=0;i<e.length;i++)t+=(t?".":"")+e[i];return t},e.prototype.printUsage=function(e){for(var t=0;t<e.length;t++){var i=e[t];i.printUsage&&i.printUsage()}},e}();function eB(e,t,i,n){return t.eval(e)?i.eval(e):n?n.eval(e):new er}function e2(e,t){try{return t.eval(e),en.True}catch(i){return en.False}}eB.evalArgs=!1,e2.evalArgs=!1;var e6,eq={isdefined:e2,boolean:function(e){return e?en.True:en.False},if:eB};function eT(e){return Math.min(1,Math.max(0,e))}function ej(e,t){var i=e6.hsla(t.h,t.s,t.l,t.a);if(i)return e.value&&/^(rgb|hsl)/.test(e.value)?i.value=e.value:i.value="rgb",i}function e5(e){if(e.toHSL)return e.toHSL();throw Error("Argument cannot be evaluated to a color")}function ez(e){if(e.toHSV)return e.toHSV();throw Error("Argument cannot be evaluated to a color")}function eG(e){if(e instanceof em)return parseFloat(e.unit.is("%")?e.value/100:e.value);if("number"==typeof e)return e;throw{type:"Argument",message:"color functions take numbers as parameters"}}var eW=e6={rgb:function(e,t,i){var n=1;if(e instanceof eb){var r=e.value;if(e=r[0],t=r[1],(i=r[2])instanceof e$){var s=i;i=s.operands[0],n=s.operands[1]}}var o=e6.rgba(e,t,i,n);if(o)return o.value="rgb",o},rgba:function(e,t,i,n){try{if(e instanceof u)return n=t?eG(t):e.alpha,new u(e.rgb,n,"rgba");var r=[e,t,i].map(function(e){var t,i;return i=255,(t=e)instanceof em&&t.unit.is("%")?parseFloat(t.value*i/100):eG(t)});return n=eG(n),new u(r,n,"rgba")}catch(s){}},hsl:function(e,t,i){var n=1;if(e instanceof eb){var r=e.value;if(e=r[0],t=r[1],(i=r[2])instanceof e$){var s=i;i=s.operands[0],n=s.operands[1]}}var o=e6.hsla(e,t,i,n);if(o)return o.value="hsl",o},hsla:function(e,t,i,n){var r,s;function o(e){return 6*(e=e<0?e+1:e>1?e-1:e)<1?r+(s-r)*e*6:2*e<1?s:3*e<2?r+(s-r)*(2/3-e)*6:r}try{if(e instanceof u)return n=t?eG(t):e.alpha,new u(e.rgb,n,"hsla");e=eG(e)%360/360,t=eT(eG(t)),i=eT(eG(i)),n=eT(eG(n)),r=2*i-(s=i<=.5?i*(t+1):i+t-i*t);var a=[255*o(e+1/3),255*o(e),255*o(e-1/3)];return n=eG(n),new u(a,n,"hsla")}catch(l){}},hsv:function(e,t,i){return e6.hsva(e,t,i,1)},hsva:function(e,t,i,n){e=eG(e)%360/360*360,t=eG(t),i=eG(i),n=eG(n);var r,s,o=[i,i*(1-t),i*(1-(s=e/60-(r=Math.floor(e/60%6)))*t),i*(1-(1-s)*t),],a=[[0,3,1],[2,0,1],[1,0,3],[1,2,0],[3,1,0],[0,1,2],];return e6.rgba(255*o[a[r][0]],255*o[a[r][1]],255*o[a[r][2]],n)},hue:function(e){return new em(e5(e).h)},saturation:function(e){return new em(100*e5(e).s,"%")},lightness:function(e){return new em(100*e5(e).l,"%")},hsvhue:function(e){return new em(ez(e).h)},hsvsaturation:function(e){return new em(100*ez(e).s,"%")},hsvvalue:function(e){return new em(100*ez(e).v,"%")},red:function(e){return new em(e.rgb[0])},green:function(e){return new em(e.rgb[1])},blue:function(e){return new em(e.rgb[2])},alpha:function(e){return new em(e5(e).a)},luma:function(e){return new em(e.luma()*e.alpha*100,"%")},luminance:function(e){var t=.2126*e.rgb[0]/255+.7152*e.rgb[1]/255+.0722*e.rgb[2]/255;return new em(t*e.alpha*100,"%")},saturate:function(e,t,i){if(!e.rgb)return null;var n=e5(e);return void 0!==i&&"relative"===i.value?n.s+=n.s*t.value/100:n.s+=t.value/100,n.s=eT(n.s),ej(e,n)},desaturate:function(e,t,i){var n=e5(e);return void 0!==i&&"relative"===i.value?n.s-=n.s*t.value/100:n.s-=t.value/100,n.s=eT(n.s),ej(e,n)},lighten:function(e,t,i){var n=e5(e);return void 0!==i&&"relative"===i.value?n.l+=n.l*t.value/100:n.l+=t.value/100,n.l=eT(n.l),ej(e,n)},darken:function(e,t,i){var n=e5(e);return void 0!==i&&"relative"===i.value?n.l-=n.l*t.value/100:n.l-=t.value/100,n.l=eT(n.l),ej(e,n)},fadein:function(e,t,i){var n=e5(e);return void 0!==i&&"relative"===i.value?n.a+=n.a*t.value/100:n.a+=t.value/100,n.a=eT(n.a),ej(e,n)},fadeout:function(e,t,i){var n=e5(e);return void 0!==i&&"relative"===i.value?n.a-=n.a*t.value/100:n.a-=t.value/100,n.a=eT(n.a),ej(e,n)},fade:function(e,t){var i=e5(e);return i.a=t.value/100,i.a=eT(i.a),ej(e,i)},spin:function(e,t){var i=e5(e),n=(i.h+t.value)%360;return i.h=n<0?360+n:n,ej(e,i)},mix:function(e,t,i){i||(i=new em(50));var n=i.value/100,r=2*n-1,s=e5(e).a-e5(t).a,o=((r*s==-1?r:(r+s)/(1+r*s))+1)/2,a=1-o,l=[e.rgb[0]*o+t.rgb[0]*a,e.rgb[1]*o+t.rgb[1]*a,e.rgb[2]*o+t.rgb[2]*a,],h=e.alpha*n+t.alpha*(1-n);return new u(l,h)},greyscale:function(e){return e6.desaturate(e,new em(100))},contrast:function(e,t,i,n){if(!e.rgb)return null;if(void 0===i&&(i=e6.rgba(255,255,255,1)),void 0===t&&(t=e6.rgba(0,0,0,1)),t.luma()>i.luma()){var r=i;i=t,t=r}return n=void 0===n?.43:eG(n),e.luma()<n?i:t},argb:function(e){return new er(e.toARGB())},color:function(e){if(e instanceof eC&&/^#([A-Fa-f0-9]{8}|[A-Fa-f0-9]{6}|[A-Fa-f0-9]{3,4})$/i.test(e.value)){var t=e.value.slice(1);return new u(t,void 0,"#"+t)}if(e instanceof u||(e=u.fromKeyword(e.value)))return e.value=void 0,e;throw{type:"Argument",message:"argument must be a color keyword or 3|4|6|8 digit hex e.g. #FFF"}},tint:function(e,t){return e6.mix(e6.rgb(255,255,255),e,t)},shade:function(e,t){return e6.mix(e6.rgb(0,0,0),e,t)}};function eH(e,t,i){var n,r,s,o,a=t.alpha,l=i.alpha,h=[];s=l+a*(1-l);for(var c=0;c<3;c++)o=e(n=t.rgb[c]/255,r=i.rgb[c]/255),s&&(o=(l*r+a*(n-l*(n+r-o)))/s),h[c]=255*o;return new u(h,s)}var eJ={multiply:function(e,t){return e*t},screen:function(e,t){return e+t-e*t},overlay:function(e,t){return(e*=2)<=1?eJ.multiply(e,t):eJ.screen(e-1,t)},softlight:function(e,t){var i=1,n=e;return t>.5&&(n=1,i=e>.25?Math.sqrt(e):((16*e-12)*e+4)*e),e-(1-2*t)*n*(i-e)},hardlight:function(e,t){return eJ.overlay(t,e)},difference:function(e,t){return Math.abs(e-t)},exclusion:function(e,t){return e+t-2*e*t},average:function(e,t){return(e+t)/2},negation:function(e,t){return 1-Math.abs(e+t-1)}};for(var eQ in eJ)eJ.hasOwnProperty(eQ)&&(eH[eQ]=eH.bind(null,eJ[eQ]));var eK=function(e){return Array.isArray(e.value)?e.value:Array(e)},eZ={_SELF:function(e){return e},"~":function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return 1===e.length?e[0]:new ei(e)},extract:function(e,t){return t=t.value-1,eK(e)[t]},length:function(e){return new em(eK(e).length)},range:function(e,t,i){var n,r,s=1,o=[];t?(r=t,n=e.value,i&&(s=i.value)):(n=1,r=e);for(var a=n;a<=r.value;a+=s)o.push(new em(a,r.unit));return new eb(o)},each:function(e,t){var i,n,r=this,s=[],o=function(e){return e instanceof l?e.eval(r.context):e};n=!e.value||e instanceof eC?e.ruleset?o(e.ruleset).rules:e.rules?e.rules.map(o):Array.isArray(e)?e.map(o):[o(e)]:Array.isArray(e.value)?e.value.map(o):[o(e.value)];var a="@value",u="@key",h="@index";t.params?(a=t.params[0]&&t.params[0].name,u=t.params[1]&&t.params[1].name,h=t.params[2]&&t.params[2].name,t=t.rules):t=t.ruleset;for(var c=0;c<n.length;c++){var f=void 0,p=void 0,v=n[c];v instanceof eo?(f="string"==typeof v.name?v.name:v.name[0].value,p=v.value):(f=new em(c+1),p=v),v instanceof eh||(i=t.rules.slice(0),a&&i.push(new eo(a,p,!1,!1,this.index,this.currentFileInfo)),h&&i.push(new eo(h,new em(c+1),!1,!1,this.index,this.currentFileInfo)),u&&i.push(new eo(u,f,!1,!1,this.index,this.currentFileInfo)),s.push(new ef([new et([new d("","&")])],i,t.strictImports,t.visibilityInfo())))}return new ef([new et([new d("","&")])],s,t.strictImports,t.visibilityInfo()).eval(this.context)}},eY=function(e,t,i){if(!(i instanceof em))throw{type:"Argument",message:"argument must be a number"};return null===t?t=i.unit:i=i.unify(),new em(e(parseFloat(i.value)),t)},eX={ceil:null,floor:null,sqrt:null,abs:null,tan:"",sin:"",cos:"",atan:"rad",asin:"rad",acos:"rad"};for(var te in eX)eX.hasOwnProperty(te)&&(eX[te]=eY.bind(null,Math[te],eX[te]));eX.round=function(e,t){var i=void 0===t?0:t.value;return eY(function(e){return e.toFixed(i)},null,e)};var tt=function(e,t){var i,n,r,s,o,a,l,u,h=this;if(0===(t=Array.prototype.slice.call(t)).length)throw{type:"Argument",message:"one or more arguments required"};var c=[],f={};for(i=0;i<t.length;i++)if((r=t[i])instanceof em){if(l=""!==(a=""===(s=""===r.unit.toString()&&void 0!==u?new em(r.value,u).unify():r.unify()).unit.toString()&&void 0!==l?l:s.unit.toString())&&void 0===l||""!==a&&""===c[0].unify().unit.toString()?a:l,u=""!==a&&void 0===u?r.unit.toString():u,void 0!==(n=void 0!==f[""]&&""!==a&&a===l?f[""]:f[a]))o=""===c[n].unit.toString()&&void 0!==u?new em(c[n].value,u).unify():c[n].unify(),(e&&s.value<o.value||!e&&s.value>o.value)&&(c[n]=r);else{if(void 0!==l&&a!==l)throw{type:"Argument",message:"incompatible types"};f[a]=c.length,c.push(r)}}else Array.isArray(t[i].value)&&Array.prototype.push.apply(t,Array.prototype.slice.call(t[i].value));return 1==c.length?c[0]:(t=c.map(function(e){return e.toCSS(h.context)}).join(this.context.compress?",":", "),new er((e?"min":"max")+"("+t+")"))},ti={min:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];try{return tt.call(this,!0,e)}catch(i){}},max:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];try{return tt.call(this,!1,e)}catch(i){}},convert:function(e,t){return e.convertTo(t.value)},pi:function(){return new em(Math.PI)},mod:function(e,t){return new em(e.value%t.value,e.unit)},pow:function(e,t){if("number"==typeof e&&"number"==typeof t)e=new em(e),t=new em(t);else if(!(e instanceof em&&t instanceof em))throw{type:"Argument",message:"arguments must be numbers"};return new em(Math.pow(e.value,t.value),e.unit)},percentage:function(e){return eY(function(e){return 100*e},"%",e)}},tn={e:function(e){return new eC('"',e instanceof eM?e.evaluated:e.value,!0)},escape:function(e){return new er(encodeURI(e.value).replace(/=/g,"%3D").replace(/:/g,"%3A").replace(/#/g,"%23").replace(/;/g,"%3B").replace(/\(/g,"%28").replace(/\)/g,"%29"))},replace:function(e,t,i,n){var r=e.value;return i="Quoted"===i.type?i.value:i.toCSS(),r=r.replace(RegExp(t.value,n?n.value:""),i),new eC(e.quote||"",r,e.escaped)},"%":function(e){for(var t=Array.prototype.slice.call(arguments,1),i=e.value,n=function(e){i=i.replace(/%[sda]/i,function(i){var n="Quoted"===t[e].type&&i.match(/s/i)?t[e].value:t[e].toCSS();return i.match(/[A-Z]$/)?encodeURIComponent(n):n})},r=0;r<t.length;r++)n(r);return i=i.replace(/%%/g,"%"),new eC(e.quote||"",i,e.escaped)}},tr=function(e,t){return e instanceof t?en.True:en.False},ts=function(e,t){if(void 0===t)throw{type:"Argument",message:"missing the required second argument to isunit."};if("string"!=typeof(t="string"==typeof t.value?t.value:t))throw{type:"Argument",message:"Second argument to isunit should be a unit or a string."};return e instanceof em&&e.unit.is(t)?en.True:en.False},to={isruleset:function(e){return tr(e,ev)},iscolor:function(e){return tr(e,u)},isnumber:function(e){return tr(e,em)},isstring:function(e){return tr(e,eC)},iskeyword:function(e){return tr(e,en)},isurl:function(e){return tr(e,ek)},ispixel:function(e){return ts(e,"px")},ispercentage:function(e){return ts(e,"%")},isem:function(e){return ts(e,"em")},isunit:ts,unit:function(e,t){if(!(e instanceof em))throw{type:"Argument",message:"the first argument to unit must be a number"+(e instanceof e$?". Have you forgotten parenthesis?":"")};return t=t?t instanceof en?t.value:t.toCSS():"",new em(e.value,t)},"get-unit":function(e){return new er(e.unit)}},ta=function(e){var t,i;return Z.addMultiple(eq),Z.add("default",ec.eval.bind(ec)),Z.addMultiple(eW),Z.addMultiple(eH),Z.addMultiple((t=e,i=function(e,t){return new ek(t,e.index,e.currentFileInfo).eval(e.context)},{"data-uri":function(e,r){r||(r=e,e=null);var s=e&&e.value,o=r.value,a=this.currentFileInfo,l=a.rewriteUrls?a.currentDirectory:a.entryPath,u=o.indexOf("#"),h="";-1!==u&&(h=o.slice(u),o=o.slice(0,u));var c=_(this.context);c.rawBuffer=!0;var f=t.getFileManager(o,l,c,t,!0);if(!f)return i(this,r);var p=!1;e?p=/;base64$/.test(s):(p="image/svg+xml"!==(s=t.mimeLookup(o))&&0>["US-ASCII","UTF-8"].indexOf(t.charsetLookup(s)))&&(s+=";base64");var v=f.loadFileSync(o,l,c,t);if(!v.contents)return n.warn("Skipped data-uri embedding of "+o+" because file not found"),i(this,r||e);var d=v.contents;if(p&&!t.encodeBase64)return i(this,r);var m="data:"+s+","+(d=p?t.encodeBase64(d):encodeURIComponent(d))+h;return new ek(new eC('"'+m+'"',m,!1,this.index,this.currentFileInfo),this.index,this.currentFileInfo)}})),Z.addMultiple(eZ),Z.addMultiple(eX),Z.addMultiple(ti),Z.addMultiple(tn),Z.addMultiple({"svg-gradient":function(e){var t,i,n,r,s,o,a,l,h="linear",c='x="0" y="0" width="1" height="1"',f={compress:!1},p=e.toCSS(f);function v(){throw{type:"Argument",message:"svg-gradient expects direction, start_color [start_position], [color position,]..., end_color [end_position] or direction, color list"}}switch(2==arguments.length?(arguments[1].value.length<2&&v(),t=arguments[1].value):arguments.length<3?v():t=Array.prototype.slice.call(arguments,1),p){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%"',c='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(n='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1 1"><'+h+'Gradient id="g" '+i+">",r=0;r<t.length;r+=1)t[r]instanceof eb?(s=t[r].value[0],o=t[r].value[1]):(s=t[r],o=void 0),s instanceof u&&((0===r||r+1===t.length)&&void 0===o||o instanceof em)||v(),a=o?o.toCSS(f):0===r?"0%":"100%",l=s.alpha,n+='<stop offset="'+a+'" stop-color="'+s.toRGB()+'"'+(l<1?' stop-opacity="'+l+'"':"")+"/>";return n+="</"+h+"Gradient><rect "+c+' fill="url(#g)" /></svg>',n=encodeURIComponent(n),new ek(new eC("'"+(n="data:image/svg+xml,"+n)+"'",n,!1,this.index,this.currentFileInfo),this.index,this.currentFileInfo)}}),Z.addMultiple(to),{functionRegistry:Z,functionCaller:ew}};function tl(e,t){var i,n=(t=t||{}).variables,r=new L.Eval(t);"object"!=typeof n||Array.isArray(n)||(n=Object.keys(n).map(function(e){var t=n[e];return t instanceof e4.Value||(t instanceof e4.Expression||(t=new e4.Expression([t])),t=new e4.Value([t])),new e4.Declaration("@"+e,t,!1,null,0)}),r.frames=[new e4.Ruleset(null,n)]);var s,o,a=[new Q.JoinSelectorVisitor,new Q.MarkVisibleSelectorsVisitor(!0),new Q.ExtendVisitor,new Q.ToCSSVisitor({compress:Boolean(t.compress)}),],l=[];if(t.pluginManager){o=t.pluginManager.visitor();for(var u=0;u<2;u++)for(o.first();s=o.get();)s.isPreEvalVisitor?0!==u&&-1!==l.indexOf(s)||(l.push(s),s.run(e)):0!==u&&-1!==a.indexOf(s)||(s.isPreVisitor?a.unshift(s):a.push(s))}i=e.eval(r);for(var h=0;h<a.length;h++)a[h].run(i);if(t.pluginManager)for(o.first();s=o.get();)-1===a.indexOf(s)&&-1===l.indexOf(s)&&s.run(i);return i}var tu,th,tc,tf=function(){function e(e){this.less=e,this.visitors=[],this.preProcessors=[],this.postProcessors=[],this.installedPlugins=[],this.fileManagers=[],this.iterator=-1,this.pluginCache={},this.Loader=new e.PluginLoader(e)}return e.prototype.addPlugins=function(e){if(e)for(var t=0;t<e.length;t++)this.addPlugin(e[t])},e.prototype.addPlugin=function(e,t,i){this.installedPlugins.push(e),t&&(this.pluginCache[t]=e),e.install&&e.install(this.less,this,i||this.less.functions.functionRegistry)},e.prototype.get=function(e){return this.pluginCache[e]},e.prototype.addVisitor=function(e){this.visitors.push(e)},e.prototype.addPreProcessor=function(e,t){var i;for(i=0;i<this.preProcessors.length&&!(this.preProcessors[i].priority>=t);i++);this.preProcessors.splice(i,0,{preProcessor:e,priority:t})},e.prototype.addPostProcessor=function(e,t){var i;for(i=0;i<this.postProcessors.length&&!(this.postProcessors[i].priority>=t);i++);this.postProcessors.splice(i,0,{postProcessor:e,priority:t})},e.prototype.addFileManager=function(e){this.fileManagers.push(e)},e.prototype.getPreProcessors=function(){for(var e=[],t=0;t<this.preProcessors.length;t++)e.push(this.preProcessors[t].preProcessor);return e},e.prototype.getPostProcessors=function(){for(var e=[],t=0;t<this.postProcessors.length;t++)e.push(this.postProcessors[t].postProcessor);return e},e.prototype.getVisitors=function(){return this.visitors},e.prototype.visitor=function(){var e=this;return{first:function(){return e.iterator=-1,e.visitors[e.iterator]},get:function(){return e.iterator+=1,e.visitors[e.iterator]}}},e.prototype.getFileManagers=function(){return this.fileManagers},e}(),tp=function(e,t){return!t&&tu||(tu=new tf(e)),tu},tv=function(e){var t=e.match(/^v(\d{1,2})\.(\d{1,2})\.(\d{1,2})(?:-([0-9A-Za-z-.]+))?(?:\+([0-9A-Za-z-.]+))?$/);if(!t)throw Error("Unable to parse: "+e);return{major:parseInt(t[1],10),minor:parseInt(t[2],10),patch:parseInt(t[3],10),pre:t[4]||"",build:t[5]||""}},td={},tm=function(){};tm.prototype=Object.assign(new e7,{alwaysMakePathsAbsolute:function(){return!0},join:function(e,t){return e?this.extractUrlParts(t,e).path:t},doXHR:function(e,t,i,n){var r=new XMLHttpRequest,s=!th.isFileProtocol||th.fileAsync;function o(t,i,n){t.status>=200&&t.status<300?i(t.responseText,t.getResponseHeader("Last-Modified")):"function"==typeof n&&n(t.status,e)}"function"==typeof r.overrideMimeType&&r.overrideMimeType("text/css"),tc.debug("XHR: Getting '"+e+"'"),r.open("GET",e,s),r.setRequestHeader("Accept",t||"text/x-less, text/css; q=0.9, */*; q=0.5"),r.send(null),th.isFileProtocol&&!th.fileAsync?0===r.status||r.status>=200&&r.status<300?i(r.responseText):n(r.status,e):s?r.onreadystatechange=function(){4==r.readyState&&o(r,i,n)}:o(r,i,n)},supports:function(){return!0},clearFileCache:function(){td={}},loadFile:function(e,t,i){t&&!this.isPathAbsolute(e)&&(e=t+e),e=i.ext?this.tryAppendExtension(e,i.ext):e,i=i||{};var n=this.extractUrlParts(e,window.location.href).url,r=this;return new Promise(function(e,t){if(i.useFileCache&&td[n])try{var s=td[n];return e({contents:s,filename:n,webInfo:{lastModified:new Date}})}catch(o){return t({filename:n,message:"Error loading file "+n+" error was "+o.message})}r.doXHR(n,i.mime,function(t,i){td[n]=t,e({contents:t,filename:n,webInfo:{lastModified:i}})},function(e,i){t({type:"File",message:"'"+i+"' wasn't found ("+e+")",href:n})})})}});var tg=function(e){this.less=e};tg.prototype=Object.assign(new eU,{loadPlugin:function(e,t,i,n,r){return new Promise(function(s,o){r.loadFile(e,t,i,n).then(s).catch(o)})}});var t$={javascriptEnabled:!1,depends:!1,compress:!1,lint:!1,paths:[],color:!0,strictImports:!1,insecure:!1,rootpath:"",rewriteUrls:!1,math:1,strictUnits:!1,globalVars:null,modifyVars:null,urlArgs:""};if(window.less)for(var ty in window.less)Object.prototype.hasOwnProperty.call(window.less,ty)&&(t$[ty]=window.less[ty]);tx=window,tS=t$,t(tS,(tb=tx,t_=tb.document,t_.currentScript||(tw=t_.getElementsByTagName("script"))[tw.length-1])),void 0===tS.isFileProtocol&&(tS.isFileProtocol=/^(file|(chrome|safari)(-extension)?|resource|qrc|app):/.test(tx.location.protocol)),tS.async=tS.async||!1,tS.fileAsync=tS.fileAsync||!1,tS.poll=tS.poll||(tS.isFileProtocol?1e3:1500),tS.env=tS.env||("127.0.0.1"==tx.location.hostname||"0.0.0.0"==tx.location.hostname||"localhost"==tx.location.hostname||tx.location.port&&tx.location.port.length>0||tS.isFileProtocol?"development":"production"),(tI=/!dumpLineNumbers:(comments|mediaquery|all)/.exec(tx.location.hash))&&(tS.dumpLineNumbers=tI[1]),void 0===tS.useFileCache&&(tS.useFileCache=!0),void 0===tS.onReady&&(tS.onReady=!0),tS.relativeUrls&&(tS.rewriteUrls="all"),t$.plugins=t$.plugins||[],window.LESS_PLUGINS&&(t$.plugins=t$.plugins.concat(window.LESS_PLUGINS));var tb,tw,t_,tx,tS,tI,tC,tk,t8,tP=function(s,o){var l,u,h=s.document,c=function e(t,i){g=(u=m=(o=d=(s=t=new r(t,void 0),function(){function e(e){this._css=[],this._rootNode=e.rootNode,this._contentsMap=e.contentsMap,this._contentsIgnoredCharsMap=e.contentsIgnoredCharsMap,e.sourceMapFilename&&(this._sourceMapFilename=e.sourceMapFilename.replace(/\\/g,"/")),this._outputFilename=e.outputFilename,this.sourceMapURL=e.sourceMapURL,e.sourceMapBasepath&&(this._sourceMapBasepath=e.sourceMapBasepath.replace(/\\/g,"/")),e.sourceMapRootpath?(this._sourceMapRootpath=e.sourceMapRootpath.replace(/\\/g,"/"),"/"!==this._sourceMapRootpath.charAt(this._sourceMapRootpath.length-1)&&(this._sourceMapRootpath+="/")):this._sourceMapRootpath="",this._outputSourceFiles=e.outputSourceFiles,this._sourceMapGeneratorConstructor=s.getSourceMapGenerator(),this._lineNumber=0,this._column=0}return e.prototype.removeBasepath=function(e){return this._sourceMapBasepath&&0===e.indexOf(this._sourceMapBasepath)&&("\\"!==(e=e.substring(this._sourceMapBasepath.length)).charAt(0)&&"/"!==e.charAt(0)||(e=e.substring(1))),e},e.prototype.normalizeFilename=function(e){return e=e.replace(/\\/g,"/"),e=this.removeBasepath(e),(this._sourceMapRootpath||"")+e},e.prototype.add=function(e,t,i,n){if(e){var r,s,o,a,l;if(t&&t.filename){var u=this._contentsMap[t.filename];if(this._contentsIgnoredCharsMap[t.filename]&&((i-=this._contentsIgnoredCharsMap[t.filename])<0&&(i=0),u=u.slice(this._contentsIgnoredCharsMap[t.filename])),void 0===u)return void this._css.push(e);a=(s=(u=u.substring(0,i)).split("\n"))[s.length-1]}if(o=(r=e.split("\n"))[r.length-1],t&&t.filename){if(n)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.prototype.isEmpty=function(){return 0===this._css.length},e.prototype.toCSS=function(e){if(this._sourceMapGenerator=new this._sourceMapGeneratorConstructor({file:this._outputFilename,sourceRoot:null}),this._outputSourceFiles){for(var t in this._contentsMap)if(this._contentsMap.hasOwnProperty(t)){var i=this._contentsMap[t];this._contentsIgnoredCharsMap[t]&&(i=i.slice(this._contentsIgnoredCharsMap[t])),this._sourceMapGenerator.setSourceContent(this.normalizeFilename(t),i)}}if(this._rootNode.genCSS(e,this),this._css.length>0){var n=void 0,r=JSON.stringify(this._sourceMapGenerator.toJSON());this.sourceMapURL?n=this.sourceMapURL:this._sourceMapFilename&&(n=this._sourceMapFilename),this.sourceMapURL=n,this.sourceMap=r}return this._css.join("")},e}()),l=t,function(){function e(e){this.options=e}return e.prototype.toCSS=function(e,t,i){var n=new o({contentsIgnoredCharsMap:i.contentsIgnoredChars,rootNode:e,contentsMap:i.contents,sourceMapFilename:this.options.sourceMapFilename,sourceMapURL:this.options.sourceMapURL,outputFilename:this.options.sourceMapOutputFilename,sourceMapBasepath:this.options.sourceMapBasepath,sourceMapRootpath:this.options.sourceMapRootpath,outputSourceFiles:this.options.outputSourceFiles,sourceMapGenerator:this.options.sourceMapGenerator,sourceMapFileInline:this.options.sourceMapFileInline,disableSourcemapAnnotation:this.options.disableSourcemapAnnotation}),r=n.toCSS(t);return this.sourceMap=n.sourceMap,this.sourceMapURL=n.sourceMapURL,this.options.sourceMapInputFilename&&(this.sourceMapInputFilename=n.normalizeFilename(this.options.sourceMapInputFilename)),void 0!==this.options.sourceMapBasepath&&void 0!==this.sourceMapURL&&(this.sourceMapURL=n.removeBasepath(this.sourceMapURL)),r+this.getCSSAppendage()},e.prototype.getCSSAppendage=function(){var e=this.sourceMapURL;if(this.options.sourceMapFileInline){if(void 0===this.sourceMap)return"";e="data:application/json;base64,"+l.encodeBase64(this.sourceMap)}return this.options.disableSourcemapAnnotation?"":e?"/*# sourceMappingURL="+e+" */":""},e.prototype.getExternalSourceMap=function(){return this.sourceMap},e.prototype.setExternalSourceMap=function(e){this.sourceMap=e},e.prototype.isInline=function(){return this.options.sourceMapFileInline},e.prototype.getSourceMapURL=function(){return this.sourceMapURL},e.prototype.getOutputFilename=function(){return this.options.sourceMapOutputFilename},e.prototype.getInputFilename=function(){return this.sourceMapInputFilename},e}()),function(){function e(e,t){this.root=e,this.imports=t}return e.prototype.toCSS=function(e){var t,i,r={};try{t=tl(this.root,e)}catch(s){throw new A(s,this.imports)}try{var o=Boolean(e.compress);o&&n.warn("The compress option has been deprecated. We recommend you use a dedicated css minifier, for instance see less-plugin-clean-css.");var a={compress:o,dumpLineNumbers:e.dumpLineNumbers,strictUnits:Boolean(e.strictUnits),numPrecision:8};e.sourceMap?(i=new u(e.sourceMap),r.css=i.toCSS(t,a,this.imports)):r.css=t.toCSS(a)}catch(l){throw new A(l,this.imports)}if(e.pluginManager)for(var h=e.pluginManager.getPostProcessors(),c=0;c<h.length;c++)r.css=h[c].process(r.css,{sourceMap:i,options:e,imports:this.imports});for(var f in e.sourceMap&&(r.map=i.getExternalSourceMap()),r.imports=[],this.imports.files)Object.prototype.hasOwnProperty.call(this.imports.files,f)&&f!==this.imports.rootFilename&&r.imports.push(f);return r},e}()),$=(h=t,function(){function e(e,t,i){this.less=e,this.rootFilename=i.filename,this.paths=t.paths||[],this.contents={},this.contentsIgnoredChars={},this.mime=t.mime,this.error=null,this.context=t,this.queue=[],this.files={}}return e.prototype.push=function(e,t,i,r,s){var o=this,a=this.context.pluginManager.Loader;this.queue.push(e);var l=function(t,i,a){o.queue.splice(o.queue.indexOf(e),1);var l=a===o.rootFilename;r.optional&&t?(s(null,{rules:[]},!1,null),n.info("The file "+a+" was skipped because it was not found and the import was marked optional.")):(o.files[a]||r.inline||(o.files[a]={root:i,options:r}),t&&!o.error&&(o.error=t),s(t,i,l,a))},u={rewriteUrls:this.context.rewriteUrls,entryPath:i.entryPath,rootpath:i.rootpath,rootFilename:i.rootFilename},c=h.getFileManager(e,i.currentDirectory,this.context,h);if(c){var f,p,v=function(e){var t,n=e.filename,s=e.contents.replace(/^\uFEFF/,"");u.currentDirectory=c.getPath(n),u.rewriteUrls&&(u.rootpath=c.join(o.context.rootpath||"",c.pathDiff(u.currentDirectory,u.entryPath)),!c.isPathAbsolute(u.rootpath)&&c.alwaysMakePathsAbsolute()&&(u.rootpath=c.join(u.entryPath,u.rootpath))),u.filename=n;var h=new L.Parse(o.context);h.processImports=!1,o.contents[n]=s,(i.reference||r.reference)&&(u.reference=!0),r.isPlugin?(t=a.evalPlugin(s,h,o,r.pluginArgs,u))instanceof A?l(t,null,n):l(null,t,n):r.inline?l(null,s,n):!o.files[n]||o.files[n].options.multiple||r.multiple?new ee(h,o,u).parse(s,function(e,t){l(e,t,n)}):l(null,o.files[n].root,n)},d=_(this.context);t&&(d.ext=r.isPlugin?".js":".less"),r.isPlugin?(d.mime="application/javascript",d.syncImport?f=a.loadPluginSync(e,i.currentDirectory,d,h,c):p=a.loadPlugin(e,i.currentDirectory,d,h,c)):d.syncImport?f=c.loadFileSync(e,i.currentDirectory,d,h):p=c.loadFile(e,i.currentDirectory,d,h,function(e,t){e?l(e):v(t)}),f?f.filename?v(f):l(f):p&&p.then(v,l)}else l({message:"Could not find a file-manager for "+e})},e}());var s,o,l,u,h,c,f,p,v,d,m,g,$,y,b=(c=g,f=function(e,t,i){if("function"==typeof t?(i=t,t=S(this.options,{})):t=S(this.options,t||{}),!i){var n=this;return new Promise(function(i,r){f.call(n,e,t,function(e,t){e?r(e):i(t)})})}this.parse(e,t,function(e,t,n,r){var s;if(e)return i(e);try{s=new c(t,n).toCSS(r)}catch(o){return i(o)}i(null,s)})}),w=(p=$,v=function(e,t,i){if("function"==typeof t?(i=t,t=S(this.options,{})):t=S(this.options,t||{}),!i){var n=this;return new Promise(function(i,r){v.call(n,e,t,function(e,t){e?r(e):i(t)})})}var r,s=void 0,o=new tp(this,!t.reUsePluginManager);if(t.pluginManager=o,r=new L.Parse(t),t.rootFileInfo)s=t.rootFileInfo;else{var a=t.filename||"input",l=a.replace(/[^/\\]*$/,"");(s={filename:a,rewriteUrls:r.rewriteUrls,rootpath:r.rootpath||"",currentDirectory:l,entryPath:l,rootFilename:a}).rootpath&&"/"!==s.rootpath.slice(-1)&&(s.rootpath+="/")}var u=new p(this,r,s);this.importManager=u,t.plugins&&t.plugins.forEach(function(e){var t,n;if(e.fileContent){if(n=e.fileContent.replace(/^\uFEFF/,""),(t=o.Loader.evalPlugin(n,r,u,e.options,e.filename))instanceof A)return i(t)}else o.addPlugin(e)}),new ee(r,u,s).parse(e,function(e,n){if(e)return i(e);i(null,n,u,t)},t)}),x=tv("v4.2.0"),I={version:[x.major,x.minor,x.patch],data:a,tree:e4,Environment:r,AbstractFileManager:e7,AbstractPluginLoader:eU,environment:t,visitors:Q,Parser:ee,functions:ta(t),contexts:L,SourceMapOutput:d,SourceMapBuilder:m,ParseTree:g,ImportManager:$,render:b,parse:w,LessError:A,transformTree:tl,utils:k,PluginManager:tp,logger:n},C=function(e){return function(){var t=Object.create(e.prototype);return e.apply(t,Array.prototype.slice.call(arguments,0)),t}},P=Object.create(I);for(var R in I.tree)if("function"==typeof(y=I.tree[R]))P[R.toLowerCase()]=C(y);else for(var M in P[R]=Object.create(null),y)P[R][M.toLowerCase()]=C(y[M]);return I.parse=I.parse.bind(P),I.render=I.render.bind(P),P}();c.options=o;var f,p,v,d=c.environment,m=(l=o,u=c.logger,th=l,tc=u,tm),g=new m;d.addFileManager(g),c.FileManager=m,c.PluginLoader=tg,function(e,t){t.logLevel=void 0!==t.logLevel?t.logLevel:"development"===t.env?3:1,t.loggers||(t.loggers=[{debug:function(e){t.logLevel>=4&&console.log(e)},info:function(e){t.logLevel>=3&&console.log(e)},warn:function(e){t.logLevel>=2&&console.warn(e)},error:function(e){t.logLevel>=1&&console.error(e)}},]);for(var i=0;i<t.loggers.length;i++)e.logger.addListener(t.loggers[i])}(c,o);var $=(f=s,p=c,v=o,{add:function(t,n){var r,s,o,a,l,u,h,c,d,m,g,$,y,b,w,_;v.errorReporting&&"html"!==v.errorReporting?"console"===v.errorReporting?(r=t,s=n,o=r.filename||s,a=[],l=(r.type||"Syntax")+"Error: "+(r.message||"There is an error in your .less file")+" in "+o,u=function(e,t,i){void 0!==e.extract[t]&&a.push("{line} {content}".replace(/\{line\}/,(parseInt(e.line,10)||0)+(t-1)).replace(/\{class\}/,i).replace(/\{content\}/,e.extract[t]))},r.line&&(u(r,0,""),u(r,1,"line"),u(r,2,""),l+=" on line "+r.line+", column "+(r.column+1)+":\n"+a.join("\n")),r.stack&&(r.extract||v.logLevel>=4)&&(l+="\nStack Trace\n"+r.stack),p.logger.error(l)):"function"==typeof v.errorReporting&&v.errorReporting("add",t,n):(h=t,g="less-error-message:"+e((c=n)||""),$=f.document.createElement("div"),y=[],w=(b=h.filename||c).match(/([^/]+(\?.*)?)$/)[1],$.id=g,$.className="less-error-message",m="<h3>"+(h.type||"Syntax")+"Error: "+(h.message||"There is an error in your .less file")+'</h3><p>in <a href="'+b+'">'+w+"</a> ",_=function(e,t,i){void 0!==e.extract[t]&&y.push('<li><label>{line}</label><pre class="{class}">{content}</pre></li>'.replace(/\{line\}/,(parseInt(e.line,10)||0)+(t-1)).replace(/\{class\}/,i).replace(/\{content\}/,e.extract[t]))},h.line&&(_(h,0,""),_(h,1,"line"),_(h,2,""),m+="on line "+h.line+", column "+(h.column+1)+":</p><ul>"+y.join("")+"</ul>"),h.stack&&(h.extract||v.logLevel>=4)&&(m+="<br/>Stack Trace</br />"+h.stack.split("\n").slice(1).join("<br/>")),$.innerHTML=m,i(f.document,".less-error-message ul, .less-error-message li {\nlist-style-type: none;\nmargin-right: 15px;\npadding: 4px 0;\nmargin: 0;\n}\n.less-error-message label {\nfont-size: 12px;\nmargin-right: 15px;\npadding: 4px 0;\ncolor: #cc7777;\n}\n.less-error-message pre {\ncolor: #dd6666;\npadding: 4px 0;\nmargin: 0;\ndisplay: inline-block;\n}\n.less-error-message pre.line {\ncolor: #ff0000;\n}\n.less-error-message h3 {\nfont-size: 20px;\nfont-weight: bold;\npadding: 15px 0 5px 0;\nmargin: 0;\n}\n.less-error-message a {\ncolor: #10a\n}\n.less-error-message .error {\ncolor: red;\nfont-weight: bold;\npadding-bottom: 2px;\nborder-bottom: 1px dashed red;\n}",{title:"error-message"}),$.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","development"===v.env&&(d=setInterval(function(){var e=f.document,t=e.body;t&&(e.getElementById(g)?t.replaceChild($,e.getElementById(g)):t.insertBefore($,t.firstChild),clearInterval(d))},10)))},remove:function(t){var i,n;v.errorReporting&&"html"!==v.errorReporting?"console"===v.errorReporting||"function"==typeof v.errorReporting&&v.errorReporting("remove",t):(i=t,(n=f.document.getElementById("less-error-message:"+e(i)))&&n.parentNode.removeChild(n))}}),y=c.cache=o.cache||function(e,t,i){var n=null;if("development"!==t.env)try{n=void 0===e.localStorage?null:e.localStorage}catch(r){}return{setCSS:function(e,t,r,s){if(n){i.info("saving "+e+" to cache.");try{n.setItem(e,s),n.setItem(e+":timestamp",t),r&&n.setItem(e+":vars",JSON.stringify(r))}catch(o){i.error('failed to save "'+e+'" to local storage for caching.')}}},getCSS:function(e,t,i){var r=n&&n.getItem(e),s=n&&n.getItem(e+":timestamp"),o=n&&n.getItem(e+":vars");if(i=i||{},o=o||"{}",s&&t.lastModified&&new Date(t.lastModified).valueOf()===new Date(s).valueOf()&&JSON.stringify(i)===o)return r}}}(s,o,c.logger);!function(){function e(){throw{type:"Runtime",message:"Image size functions are not supported in browser version of less"}}Z.addMultiple({"image-size":function(t){return e(),-1},"image-width":function(t){return e(),-1},"image-height":function(t){return e(),-1}})}(c.environment),o.functions&&c.functions.functionRegistry.addMultiple(o.functions);var b=/^text\/(x-)?less$/;function w(e){var t={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}function x(e,t){var i=Array.prototype.slice.call(arguments,2);return function(){var n=i.concat(Array.prototype.slice.call(arguments,0));return e.apply(t,n)}}function I(e){for(var t,i=h.getElementsByTagName("style"),n=0;n<i.length;n++)if((t=i[n]).type.match(b)){var r=w(o);r.modifyVars=e;var s=t.innerHTML||"";r.filename=h.location.href.replace(/#.*$/,""),c.render(s,r,x(function(e,t,i){t?$.add(t,"inline"):(e.type="text/css",e.styleSheet?e.styleSheet.cssText=i.css:e.innerHTML=i.css)},null,t))}}function C(e,i,n,r,s){var a=w(o);t(a,e),a.mime=e.type,s&&(a.modifyVars=s),g.loadFile(e.href,null,a,d).then(function(t){!function(t){var s=t.contents,o=t.filename,l=t.webInfo,u={currentDirectory:g.getPath(o),filename:o,rootFilename:o,rewriteUrls:a.rewriteUrls};if(u.entryPath=u.currentDirectory,u.rootpath=a.rootpath||u.currentDirectory,l){l.remaining=r;var h=y.getCSS(o,l,a.modifyVars);if(!n&&h)return l.local=!0,void i(null,h,s,e,l,o)}$.remove(o),a.rootFileInfo=u,c.render(s,a,function(t,n){t?(t.href=o,i(t)):(y.setCSS(e.href,l.lastModified,a.modifyVars,n.css),i(null,n.css,s,e,l,o))})}(t)}).catch(function(e){console.log(e),i(e)})}function P(e,t,i){for(var n=0;n<c.sheets.length;n++)C(c.sheets[n],e,t,c.sheets.length-(n+1),i)}return c.watch=function(){return c.watchMode||(c.env="development","development"===c.env&&(c.watchTimer=setInterval(function(){c.watchMode&&(g.clearFileCache(),P(function(e,t,n,r,o){e?$.add(e,e.href||r.href):t&&i(s.document,t,r)}))},o.poll))),this.watchMode=!0,!0},c.unwatch=function(){return clearInterval(c.watchTimer),this.watchMode=!1,!1},c.registerStylesheetsImmediately=function(){var e=h.getElementsByTagName("link");c.sheets=[];for(var t=0;t<e.length;t++)("stylesheet/less"===e[t].rel||e[t].rel.match(/stylesheet/)&&e[t].type.match(b))&&c.sheets.push(e[t])},c.registerStylesheets=function(){return new Promise(function(e){c.registerStylesheetsImmediately(),e()})},c.modifyVars=function(e){return c.refresh(!0,e,!1)},c.refresh=function(e,t,n){return(e||n)&&!1!==n&&g.clearFileCache(),new Promise(function(n,r){var o,a,l,u;o=a=new Date,0===(u=c.sheets.length)?(l=(a=new Date)-o,c.logger.info("Less has finished and no sheets were loaded."),n({startTime:o,endTime:a,totalMilliseconds:l,sheets:c.sheets.length})):P(function(e,t,h,f,p){if(e)return $.add(e,e.href||f.href),void r(e);p.local?c.logger.info("Loading "+f.href+" from cache."):c.logger.info("Rendered "+f.href+" successfully."),i(s.document,t,f),c.logger.info("CSS for "+f.href+" generated in "+(new Date-a)+"ms"),0==--u&&(l=new Date-o,c.logger.info("Less has finished. CSS generated in "+l+"ms"),n({startTime:o,endTime:a,totalMilliseconds:l,sheets:c.sheets.length})),a=new Date},e,t),I(t)})},c.refreshStyles=I,c}(window,t$);function tA(e){e.filename&&console.warn(e),t$.async||tk.removeChild(t8)}return window.less=tP,t$.onReady&&(/!watch/.test(window.location.hash)&&tP.watch(),t$.async||(tC="body { display: none !important }",tk=document.head||document.getElementsByTagName("head")[0],(t8=document.createElement("style")).type="text/css",t8.styleSheet?t8.styleSheet.cssText=tC:t8.appendChild(document.createTextNode(tC)),tk.appendChild(t8)),tP.registerStylesheetsImmediately(),tP.pageLoadFinished=tP.refresh("development"===tP.env).then(tA,tA)),tP}); |