UNPKG

@umijs/deps

Version:

[![Install size](https://badgen.net/packagephobia/install/@umijs/deps)](https://packagephobia.now.sh/result?p=@umijs/deps)

1 lines 295 kB
module.exports=(()=>{var t={7356:t=>{"use strict";t.exports=clone;function clone(t){if(t===null||typeof t!=="object")return t;if(t instanceof Object)var e={__proto__:t.__proto__};else var e=Object.create(null);Object.getOwnPropertyNames(t).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))});return e}},7758:(t,e,r)=>{var i=r(5747);var n=r(263);var a=r(3086);var o=r(7356);var s=r(1669);var u;var c;if(typeof Symbol==="function"&&typeof Symbol.for==="function"){u=Symbol.for("graceful-fs.queue");c=Symbol.for("graceful-fs.previous")}else{u="___graceful-fs.queue";c="___graceful-fs.previous"}function noop(){}function publishQueue(t,e){Object.defineProperty(t,u,{get:function(){return e}})}var f=noop;if(s.debuglog)f=s.debuglog("gfs4");else if(/\bgfs4\b/i.test(process.env.NODE_DEBUG||""))f=function(){var t=s.format.apply(s,arguments);t="GFS4: "+t.split(/\n/).join("\nGFS4: ");console.error(t)};if(!i[u]){var l=global[u]||[];publishQueue(i,l);i.close=function(t){function close(e,r){return t.call(i,e,function(t){if(!t){retry()}if(typeof r==="function")r.apply(this,arguments)})}Object.defineProperty(close,c,{value:t});return close}(i.close);i.closeSync=function(t){function closeSync(e){t.apply(i,arguments);retry()}Object.defineProperty(closeSync,c,{value:t});return closeSync}(i.closeSync);if(/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")){process.on("exit",function(){f(i[u]);r(2357).equal(i[u].length,0)})}}if(!global[u]){publishQueue(global,i[u])}t.exports=patch(o(i));if(process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!i.__patched){t.exports=patch(i);i.__patched=true}function patch(t){n(t);t.gracefulify=patch;t.createReadStream=createReadStream;t.createWriteStream=createWriteStream;var e=t.readFile;t.readFile=readFile;function readFile(t,r,i){if(typeof r==="function")i=r,r=null;return go$readFile(t,r,i);function go$readFile(t,r,i){return e(t,r,function(e){if(e&&(e.code==="EMFILE"||e.code==="ENFILE"))enqueue([go$readFile,[t,r,i]]);else{if(typeof i==="function")i.apply(this,arguments);retry()}})}}var r=t.writeFile;t.writeFile=writeFile;function writeFile(t,e,i,n){if(typeof i==="function")n=i,i=null;return go$writeFile(t,e,i,n);function go$writeFile(t,e,i,n){return r(t,e,i,function(r){if(r&&(r.code==="EMFILE"||r.code==="ENFILE"))enqueue([go$writeFile,[t,e,i,n]]);else{if(typeof n==="function")n.apply(this,arguments);retry()}})}}var i=t.appendFile;if(i)t.appendFile=appendFile;function appendFile(t,e,r,n){if(typeof r==="function")n=r,r=null;return go$appendFile(t,e,r,n);function go$appendFile(t,e,r,n){return i(t,e,r,function(i){if(i&&(i.code==="EMFILE"||i.code==="ENFILE"))enqueue([go$appendFile,[t,e,r,n]]);else{if(typeof n==="function")n.apply(this,arguments);retry()}})}}var o=t.readdir;t.readdir=readdir;function readdir(t,e,r){var i=[t];if(typeof e!=="function"){i.push(e)}else{r=e}i.push(go$readdir$cb);return go$readdir(i);function go$readdir$cb(t,e){if(e&&e.sort)e.sort();if(t&&(t.code==="EMFILE"||t.code==="ENFILE"))enqueue([go$readdir,[i]]);else{if(typeof r==="function")r.apply(this,arguments);retry()}}}function go$readdir(e){return o.apply(t,e)}if(process.version.substr(0,4)==="v0.8"){var s=a(t);ReadStream=s.ReadStream;WriteStream=s.WriteStream}var u=t.ReadStream;if(u){ReadStream.prototype=Object.create(u.prototype);ReadStream.prototype.open=ReadStream$open}var c=t.WriteStream;if(c){WriteStream.prototype=Object.create(c.prototype);WriteStream.prototype.open=WriteStream$open}Object.defineProperty(t,"ReadStream",{get:function(){return ReadStream},set:function(t){ReadStream=t},enumerable:true,configurable:true});Object.defineProperty(t,"WriteStream",{get:function(){return WriteStream},set:function(t){WriteStream=t},enumerable:true,configurable:true});var f=ReadStream;Object.defineProperty(t,"FileReadStream",{get:function(){return f},set:function(t){f=t},enumerable:true,configurable:true});var l=WriteStream;Object.defineProperty(t,"FileWriteStream",{get:function(){return l},set:function(t){l=t},enumerable:true,configurable:true});function ReadStream(t,e){if(this instanceof ReadStream)return u.apply(this,arguments),this;else return ReadStream.apply(Object.create(ReadStream.prototype),arguments)}function ReadStream$open(){var t=this;open(t.path,t.flags,t.mode,function(e,r){if(e){if(t.autoClose)t.destroy();t.emit("error",e)}else{t.fd=r;t.emit("open",r);t.read()}})}function WriteStream(t,e){if(this instanceof WriteStream)return c.apply(this,arguments),this;else return WriteStream.apply(Object.create(WriteStream.prototype),arguments)}function WriteStream$open(){var t=this;open(t.path,t.flags,t.mode,function(e,r){if(e){t.destroy();t.emit("error",e)}else{t.fd=r;t.emit("open",r)}})}function createReadStream(e,r){return new t.ReadStream(e,r)}function createWriteStream(e,r){return new t.WriteStream(e,r)}var p=t.open;t.open=open;function open(t,e,r,i){if(typeof r==="function")i=r,r=null;return go$open(t,e,r,i);function go$open(t,e,r,i){return p(t,e,r,function(n,a){if(n&&(n.code==="EMFILE"||n.code==="ENFILE"))enqueue([go$open,[t,e,r,i]]);else{if(typeof i==="function")i.apply(this,arguments);retry()}})}}return t}function enqueue(t){f("ENQUEUE",t[0].name,t[1]);i[u].push(t)}function retry(){var t=i[u].shift();if(t){f("RETRY",t[0].name,t[1]);t[0].apply(null,t[1])}}},3086:(t,e,r)=>{var i=r(2413).Stream;t.exports=legacy;function legacy(t){return{ReadStream:ReadStream,WriteStream:WriteStream};function ReadStream(e,r){if(!(this instanceof ReadStream))return new ReadStream(e,r);i.call(this);var n=this;this.path=e;this.fd=null;this.readable=true;this.paused=false;this.flags="r";this.mode=438;this.bufferSize=64*1024;r=r||{};var a=Object.keys(r);for(var o=0,s=a.length;o<s;o++){var u=a[o];this[u]=r[u]}if(this.encoding)this.setEncoding(this.encoding);if(this.start!==undefined){if("number"!==typeof this.start){throw TypeError("start must be a Number")}if(this.end===undefined){this.end=Infinity}else if("number"!==typeof this.end){throw TypeError("end must be a Number")}if(this.start>this.end){throw new Error("start must be <= end")}this.pos=this.start}if(this.fd!==null){process.nextTick(function(){n._read()});return}t.open(this.path,this.flags,this.mode,function(t,e){if(t){n.emit("error",t);n.readable=false;return}n.fd=e;n.emit("open",e);n._read()})}function WriteStream(e,r){if(!(this instanceof WriteStream))return new WriteStream(e,r);i.call(this);this.path=e;this.fd=null;this.writable=true;this.flags="w";this.encoding="binary";this.mode=438;this.bytesWritten=0;r=r||{};var n=Object.keys(r);for(var a=0,o=n.length;a<o;a++){var s=n[a];this[s]=r[s]}if(this.start!==undefined){if("number"!==typeof this.start){throw TypeError("start must be a Number")}if(this.start<0){throw new Error("start must be >= zero")}this.pos=this.start}this.busy=false;this._queue=[];if(this.fd===null){this._open=t.open;this._queue.push([this._open,this.path,this.flags,this.mode,undefined]);this.flush()}}}},263:(t,e,r)=>{var i=r(7619);var n=process.cwd;var a=null;var o=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){if(!a)a=n.call(process);return a};try{process.cwd()}catch(t){}var s=process.chdir;process.chdir=function(t){a=null;s.call(process,t)};t.exports=patch;function patch(t){if(i.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)){patchLchmod(t)}if(!t.lutimes){patchLutimes(t)}t.chown=chownFix(t.chown);t.fchown=chownFix(t.fchown);t.lchown=chownFix(t.lchown);t.chmod=chmodFix(t.chmod);t.fchmod=chmodFix(t.fchmod);t.lchmod=chmodFix(t.lchmod);t.chownSync=chownFixSync(t.chownSync);t.fchownSync=chownFixSync(t.fchownSync);t.lchownSync=chownFixSync(t.lchownSync);t.chmodSync=chmodFixSync(t.chmodSync);t.fchmodSync=chmodFixSync(t.fchmodSync);t.lchmodSync=chmodFixSync(t.lchmodSync);t.stat=statFix(t.stat);t.fstat=statFix(t.fstat);t.lstat=statFix(t.lstat);t.statSync=statFixSync(t.statSync);t.fstatSync=statFixSync(t.fstatSync);t.lstatSync=statFixSync(t.lstatSync);if(!t.lchmod){t.lchmod=function(t,e,r){if(r)process.nextTick(r)};t.lchmodSync=function(){}}if(!t.lchown){t.lchown=function(t,e,r,i){if(i)process.nextTick(i)};t.lchownSync=function(){}}if(o==="win32"){t.rename=function(e){return function(r,i,n){var a=Date.now();var o=0;e(r,i,function CB(s){if(s&&(s.code==="EACCES"||s.code==="EPERM")&&Date.now()-a<6e4){setTimeout(function(){t.stat(i,function(t,a){if(t&&t.code==="ENOENT")e(r,i,CB);else n(s)})},o);if(o<100)o+=10;return}if(n)n(s)})}}(t.rename)}t.read=function(e){function read(r,i,n,a,o,s){var u;if(s&&typeof s==="function"){var c=0;u=function(f,l,p){if(f&&f.code==="EAGAIN"&&c<10){c++;return e.call(t,r,i,n,a,o,u)}s.apply(this,arguments)}}return e.call(t,r,i,n,a,o,u)}read.__proto__=e;return read}(t.read);t.readSync=function(e){return function(r,i,n,a,o){var s=0;while(true){try{return e.call(t,r,i,n,a,o)}catch(t){if(t.code==="EAGAIN"&&s<10){s++;continue}throw t}}}}(t.readSync);function patchLchmod(t){t.lchmod=function(e,r,n){t.open(e,i.O_WRONLY|i.O_SYMLINK,r,function(e,i){if(e){if(n)n(e);return}t.fchmod(i,r,function(e){t.close(i,function(t){if(n)n(e||t)})})})};t.lchmodSync=function(e,r){var n=t.openSync(e,i.O_WRONLY|i.O_SYMLINK,r);var a=true;var o;try{o=t.fchmodSync(n,r);a=false}finally{if(a){try{t.closeSync(n)}catch(t){}}else{t.closeSync(n)}}return o}}function patchLutimes(t){if(i.hasOwnProperty("O_SYMLINK")){t.lutimes=function(e,r,n,a){t.open(e,i.O_SYMLINK,function(e,i){if(e){if(a)a(e);return}t.futimes(i,r,n,function(e){t.close(i,function(t){if(a)a(e||t)})})})};t.lutimesSync=function(e,r,n){var a=t.openSync(e,i.O_SYMLINK);var o;var s=true;try{o=t.futimesSync(a,r,n);s=false}finally{if(s){try{t.closeSync(a)}catch(t){}}else{t.closeSync(a)}}return o}}else{t.lutimes=function(t,e,r,i){if(i)process.nextTick(i)};t.lutimesSync=function(){}}}function chmodFix(e){if(!e)return e;return function(r,i,n){return e.call(t,r,i,function(t){if(chownErOk(t))t=null;if(n)n.apply(this,arguments)})}}function chmodFixSync(e){if(!e)return e;return function(r,i){try{return e.call(t,r,i)}catch(t){if(!chownErOk(t))throw t}}}function chownFix(e){if(!e)return e;return function(r,i,n,a){return e.call(t,r,i,n,function(t){if(chownErOk(t))t=null;if(a)a.apply(this,arguments)})}}function chownFixSync(e){if(!e)return e;return function(r,i,n){try{return e.call(t,r,i,n)}catch(t){if(!chownErOk(t))throw t}}}function statFix(e){if(!e)return e;return function(r,i,n){if(typeof i==="function"){n=i;i=null}function callback(t,e){if(e){if(e.uid<0)e.uid+=4294967296;if(e.gid<0)e.gid+=4294967296}if(n)n.apply(this,arguments)}return i?e.call(t,r,i,callback):e.call(t,r,callback)}}function statFixSync(e){if(!e)return e;return function(r,i){var n=i?e.call(t,r,i):e.call(t,r);if(n.uid<0)n.uid+=4294967296;if(n.gid<0)n.gid+=4294967296;return n}}function chownErOk(t){if(!t)return true;if(t.code==="ENOSYS")return true;var e=!process.getuid||process.getuid()!==0;if(e){if(t.code==="EINVAL"||t.code==="EPERM")return true}return false}}},6409:(t,e,r)=>{function __ncc_wildcard$0(t){if(t==="bmp.js"||t==="bmp")return r(4317);else if(t==="dds.js"||t==="dds")return r(155);else if(t==="gif.js"||t==="gif")return r(1150);else if(t==="jpg.js"||t==="jpg")return r(2179);else if(t==="png.js"||t==="png")return r(6048);else if(t==="psd.js"||t==="psd")return r(7306);else if(t==="svg.js"||t==="svg")return r(1542);else if(t==="tiff.js"||t==="tiff")return r(9767);else if(t==="webp.js"||t==="webp")return r(3307)}"use strict";var i={};var n=r(7585);n.forEach(function(t){i[t]=__ncc_wildcard$0(t).detect});t.exports=function(t,e){var r,n;for(r in i){n=i[r](t,e);if(n){return r}}}},9691:(t,e,r)=>{function __ncc_wildcard$0(t){if(t==="bmp.js"||t==="bmp")return r(4317);else if(t==="dds.js"||t==="dds")return r(155);else if(t==="gif.js"||t==="gif")return r(1150);else if(t==="jpg.js"||t==="jpg")return r(2179);else if(t==="png.js"||t==="png")return r(6048);else if(t==="psd.js"||t==="psd")return r(7306);else if(t==="svg.js"||t==="svg")return r(1542);else if(t==="tiff.js"||t==="tiff")return r(9767);else if(t==="webp.js"||t==="webp")return r(3307)}"use strict";var i=r(5747);var n=r(5622);var a=r(6409);var o={};var s=r(7585);s.forEach(function(t){o[t]=__ncc_wildcard$0(t)});var u=128*1024;function lookup(t,e){var r=a(t,e);if(r in o){var i=o[r].calculate(t,e);if(i!==false){i.type=r;return i}}throw new TypeError("unsupported file type: "+r+" (file: "+e+")")}function asyncFileToBuffer(t,e){i.open(t,"r",function(r,n){if(r){return e(r)}var a=i.fstatSync(n).size;if(a<=0){return e(new Error("File size is not greater than 0 —— "+t))}var o=Math.min(a,u);var s=new Buffer(o);i.read(n,s,0,o,0,function(t){if(t){return e(t)}i.close(n,function(t){e(t,s)})})})}function syncFileToBuffer(t){var e=i.openSync(t,"r");var r=i.fstatSync(e).size;var n=Math.min(r,u);var a=new Buffer(n);i.readSync(e,a,0,n,0);i.closeSync(e);return a}t.exports=function(t,e){if(Buffer.isBuffer(t)){return lookup(t)}if(typeof t!=="string"){throw new TypeError("invalid invocation")}var r=n.resolve(t);if(typeof e==="function"){asyncFileToBuffer(r,function(t,i){if(t){return e(t)}var n;try{n=lookup(i,r)}catch(e){t=e}e(t,n)})}else{var i=syncFileToBuffer(r);return lookup(i,r)}};t.exports.types=s},7441:t=>{"use strict";function readUInt(t,e,r,i){r=r||0;var n=!!i?"BE":"LE";var a=t["readUInt"+e+n];return a.call(t,r)}t.exports=readUInt},7585:t=>{"use strict";t.exports=["bmp","gif","jpg","png","psd","svg","tiff","webp","dds"]},4317:t=>{"use strict";function isBMP(t){return"BM"===t.toString("ascii",0,2)}function calculate(t){return{width:t.readUInt32LE(18),height:Math.abs(t.readInt32LE(22))}}t.exports={detect:isBMP,calculate:calculate}},155:t=>{"use strict";function isDDS(t){return t.readUInt32LE(0)===542327876}function calculate(t){return{height:t.readUInt32LE(12),width:t.readUInt32LE(16)}}t.exports={detect:isDDS,calculate:calculate}},1150:t=>{"use strict";var e=/^GIF8[79]a/;function isGIF(t){var r=t.toString("ascii",0,6);return e.test(r)}function calculate(t){return{width:t.readUInt16LE(6),height:t.readUInt16LE(8)}}t.exports={detect:isGIF,calculate:calculate}},2179:t=>{"use strict";function isJPG(t){var e=t.toString("hex",0,2);return"ffd8"===e}function extractSize(t,e){return{height:t.readUInt16BE(e),width:t.readUInt16BE(e+2)}}function validateBuffer(t,e){if(e>t.length){throw new TypeError("Corrupt JPG, exceeded buffer limits")}if(t[e]!==255){throw new TypeError("Invalid JPG, marker table corrupted")}}function calculate(t){t=t.slice(4);var e,r;while(t.length){e=t.readUInt16BE(0);validateBuffer(t,e);r=t[e+1];if(r===192||r===193||r===194){return extractSize(t,e+5)}t=t.slice(e+2)}throw new TypeError("Invalid JPG, no size found")}t.exports={detect:isJPG,calculate:calculate}},6048:t=>{"use strict";var e="PNG\r\n\n";var r="IHDR";var i="CgBI";function isPNG(t){if(e===t.toString("ascii",1,8)){var n=t.toString("ascii",12,16);if(n===i){n=t.toString("ascii",28,32)}if(n!==r){throw new TypeError("invalid png")}return true}}function calculate(t){if(t.toString("ascii",12,16)===i){return{width:t.readUInt32BE(32),height:t.readUInt32BE(36)}}return{width:t.readUInt32BE(16),height:t.readUInt32BE(20)}}t.exports={detect:isPNG,calculate:calculate}},7306:t=>{"use strict";function isPSD(t){return"8BPS"===t.toString("ascii",0,4)}function calculate(t){return{width:t.readUInt32BE(18),height:t.readUInt32BE(14)}}t.exports={detect:isPSD,calculate:calculate}},1542:t=>{"use strict";var e=/<svg[^>]+[^>]*>/;function isSVG(t){return e.test(t)}var r={root:/<svg\s[^>]+>/,width:/\bwidth=(['"])([^%]+?)\1/,height:/\bheight=(['"])([^%]+?)\1/,viewbox:/\bviewBox=(['"])(.+?)\1/};function parseViewbox(t){var e=t.split(" ");return{width:parseInt(e[2],10),height:parseInt(e[3],10)}}function parseAttributes(t){var e=t.match(r.width);var i=t.match(r.height);var n=t.match(r.viewbox);return{width:e&&parseInt(e[2],10),height:i&&parseInt(i[2],10),viewbox:n&&parseViewbox(n[2])}}function calculateByDimensions(t){return{width:t.width,height:t.height}}function calculateByViewbox(t){var e=t.viewbox.width/t.viewbox.height;if(t.width){return{width:t.width,height:Math.floor(t.width/e)}}if(t.height){return{width:Math.floor(t.height*e),height:t.height}}return{width:t.viewbox.width,height:t.viewbox.height}}function calculate(t){var e=t.toString("utf8").match(r.root);if(e){var i=parseAttributes(e[0]);if(i.width&&i.height){return calculateByDimensions(i)}if(i.viewbox){return calculateByViewbox(i)}}throw new TypeError("invalid svg")}t.exports={detect:isSVG,calculate:calculate}},9767:(t,e,r)=>{"use strict";var i=r(5747);var n=r(7441);function isTIFF(t){var e=t.toString("hex",0,4);return"49492a00"===e||"4d4d002a"===e}function readIFD(t,e,r){var a=n(t,32,4,r);var o=1024;var s=i.statSync(e).size;if(a+o>s){o=s-a-10}var u=new Buffer(o);var c=i.openSync(e,"r");i.readSync(c,u,0,o,a);var f=u.slice(2);return f}function readValue(t,e){var r=n(t,16,8,e);var i=n(t,16,10,e);return(i<<16)+r}function nextTag(t){if(t.length>24){return t.slice(12)}}function extractTags(t,e){var r={};var i,a,o;while(t&&t.length){i=n(t,16,0,e);a=n(t,16,2,e);o=n(t,32,4,e);if(i===0){break}else{if(o===1&&(a===3||a===4)){r[i]=readValue(t,e)}t=nextTag(t)}}return r}function determineEndianness(t){var e=t.toString("ascii",0,2);if("II"===e){return"LE"}else if("MM"===e){return"BE"}}function calculate(t,e){if(!e){throw new TypeError("Tiff doesn't support buffer")}var r=determineEndianness(t)==="BE";var i=readIFD(t,e,r);var n=extractTags(i,r);var a=n[256];var o=n[257];if(!a||!o){throw new TypeError("Invalid Tiff, missing tags")}return{width:a,height:o}}t.exports={detect:isTIFF,calculate:calculate}},3307:t=>{"use strict";function isWebP(t){var e="RIFF"===t.toString("ascii",0,4);var r="WEBP"===t.toString("ascii",8,12);var i="VP8"===t.toString("ascii",12,15);return e&&r&&i}function calculate(t){var e=t.toString("ascii",12,16);t=t.slice(20,30);if(e==="VP8X"){var r=t[0];var i=(r&192)===0;var n=(r&1)===0;if(i&&n){return calculateExtended(t)}else{return false}}if(e==="VP8 "&&t[0]!==47){return calculateLossy(t)}var a=t.toString("hex",3,6);if(e==="VP8L"&&a!=="9d012a"){return calculateLossless(t)}return false}function calculateExtended(t){return{width:1+t.readUIntLE(4,3),height:1+t.readUIntLE(7,3)}}function calculateLossless(t){return{width:1+((t[2]&63)<<8|t[1]),height:1+((t[4]&15)<<10|t[3]<<2|(t[2]&192)>>6)}}function calculateLossy(t){return{width:t.readInt16LE(6)&16383,height:t.readInt16LE(8)&16383}}t.exports={detect:isWebP,calculate:calculate}},8973:(t,e,r)=>{t.exports=r(6678).default},5550:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});e.default={encodeBase64:function encodeBase64(t){var e=Buffer.from?Buffer.from(t):new Buffer(t);return e.toString("base64")},mimeLookup:function(t){return r(5018).lookup(t)},charsetLookup:function(t){return r(5018).charsets.lookup(t)},getSourceMapGenerator:function getSourceMapGenerator(){return r(6594).SourceMapGenerator}}},3266:function(t,e,r){"use strict";var i=this&&this.__extends||function(){var t=function(e,r){t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)if(e.hasOwnProperty(r))t[r]=e[r]};return t(e,r)};return function(e,r){t(e,r);function __(){this.constructor=e}e.prototype=r===null?Object.create(r):(__.prototype=r.prototype,new __)}}();var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:true});var a=n(r(5622));var o=n(r(6857));var s=n(r(8394));var u=function(t){i(FileManager,t);function FileManager(){return t!==null&&t.apply(this,arguments)||this}FileManager.prototype.supports=function(){return true};FileManager.prototype.supportsSync=function(){return true};FileManager.prototype.loadFile=function(t,e,r,i,n){var s;var u=this.isPathAbsolute(t);var c=[];var f=this;var l=t.slice(0,1);var p=l==="."||l==="/";var h=null;var v=false;var d="npm://";r=r||{};var m=u?[""]:[e];if(r.paths){m.push.apply(m,r.paths)}if(!u&&m.indexOf(".")===-1){m.push(".")}var g=r.prefixes||[""];var y=this.extractUrlParts(t);if(r.syncImport){getFileData(returnData,returnData);if(n){n(h.error,h)}else{return h}}else{return new Promise(getFileData)}function returnData(t){if(!t.filename){h={error:t}}else{h=t}}function getFileData(e,i){(function tryPathIndex(n){if(n<m.length){(function tryPrefix(t){if(t<g.length){v=false;s=y.rawPath+g[t]+y.filename;if(m[n]){s=a.default.join(m[n],s)}if(!p&&m[n]==="."){try{s=require.resolve(s);v=true}catch(t){c.push(d+s);tryWithExtension()}}else{tryWithExtension()}function tryWithExtension(){var t=r.ext?f.tryAppendExtension(s,r.ext):s;if(t!==s&&!p&&m[n]==="."){try{s=require.resolve(t);v=true}catch(e){c.push(d+t);s=t}}else{s=t}}var i=[s];if(!r.rawBuffer){i.push("utf-8")}if(r.syncImport){try{var u=o.default.readFileSync.apply(this,i);e({contents:u,filename:s})}catch(e){c.push(v?d+s:s);return tryPrefix(t+1)}}else{i.push(function(r,i){if(r){c.push(v?d+s:s);return tryPrefix(t+1)}e({contents:i,filename:s})});o.default.readFile.apply(this,i)}}else{tryPathIndex(n+1)}})(0)}else{i({type:"File",message:"'"+t+"' wasn't found. Tried - "+c.join(",")})}})(0)}};FileManager.prototype.loadFileSync=function(t,e,r,i){r.syncImport=true;return this.loadFile(t,e,r,i)};return FileManager}(s.default);e.default=u},6857:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});var i;try{i=r(7758)}catch(t){i=r(5747)}e.default=i},8810:function(t,e,r){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:true});var n=i(r(1257));var a=i(r(5483));var o=i(r(5871));e.default=function(t){function imageSize(e,i){var n=i.value;var a=e.currentFileInfo;var o=a.rewriteUrls?a.currentDirectory:a.entryPath;var s=n.indexOf("#");var u="";if(s!==-1){u=n.slice(s);n=n.slice(0,s)}var c=t.getFileManager(n,o,e.context,t,true);if(!c){throw{type:"File",message:"Can not set up FileManager for "+i}}var f=c.loadFileSync(n,o,e.context,t);if(f.error){throw f.error}var l=r(9691);return l(f.filename)}var e={"image-size":function(t){var e=imageSize(this,t);return new a.default([new n.default(e.width,"px"),new n.default(e.height,"px")])},"image-width":function(t){var e=imageSize(this,t);return new n.default(e.width,"px")},"image-height":function(t){var e=imageSize(this,t);return new n.default(e.height,"px")}};o.default.addMultiple(e)}},6678:function(t,e,r){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:true});var n=i(r(5550));var a=i(r(3266));var o=i(r(3913));var s=i(r(7344));var u=i(r(2100));var c=i(r(7903));var f=i(r(6857));var l=i(r(5356));var p=i(r(8810));var h=s.default(n.default,[new a.default,new o.default]);h.createFromEnvironment=s.default;h.lesscHelper=u.default;h.PluginLoader=c.default;h.fs=f.default;h.FileManager=a.default;h.UrlFileManager=o.default;h.options=l.default();p.default(h.environment);e.default=h},2100:(t,e)=>{var r={stylize:function(t,e){var r={reset:[0,0],bold:[1,22],inverse:[7,27],underline:[4,24],yellow:[33,39],green:[32,39],red:[31,39],grey:[90,39]};return"["+r[e][0]+"m"+t+"["+r[e][1]+"m"},printUsage:function(){console.log("usage: lessc [option option=parameter ...] <source> [destination]");console.log("");console.log("If source is set to `-' (dash or hyphen-minus), input is read from stdin.");console.log("");console.log("options:");console.log(" -h, --help Prints help (this message) and exit.");console.log(" --include-path=PATHS Sets include paths. Separated by `:'. `;' also supported on windows.");console.log(" -M, --depends Outputs a makefile import dependency list to stdout.");console.log(" --no-color Disables colorized output.");console.log(" --ie-compat Enables IE8 compatibility checks.");console.log(" --js Enables inline JavaScript in less files");console.log(" -l, --lint Syntax check only (lint).");console.log(" -s, --silent Suppresses output of error messages.");console.log(" --strict-imports Forces evaluation of imports.");console.log(" --insecure Allows imports from insecure https hosts.");console.log(" -v, --version Prints version number and exit.");console.log(" --verbose Be verbose.");console.log(" --source-map[=FILENAME] Outputs a v3 sourcemap to the filename (or output filename.map).");console.log(" --source-map-rootpath=X Adds this path onto the sourcemap filename and less file paths.");console.log(" --source-map-basepath=X Sets sourcemap base path, defaults to current working directory.");console.log(" --source-map-include-source Puts the less files into the map instead of referencing them.");console.log(" --source-map-inline Puts the map (and any less files) as a base64 data uri into the output css file.");console.log(" --source-map-url=URL Sets a custom URL to map file, for sourceMappingURL comment");console.log(" in generated CSS file.");console.log(" --source-map-no-annotation Excludes the sourceMappingURL comment from the output css file.");console.log(" -rp, --rootpath=URL Sets rootpath for url rewriting in relative imports and urls");console.log(" Works with or without the relative-urls option.");console.log(" -ru=, --rewrite-urls= Rewrites URLs to make them relative to the base less file.");console.log(" all|local|off 'all' rewrites all URLs, 'local' just those starting with a '.'");console.log("");console.log(" -m=, --math=");console.log(" always Less will eagerly perform math operations always.");console.log(" parens-division Math performed except for division (/) operator");console.log(" parens | strict Math only performed inside parentheses");console.log(" strict-legacy Parens required in very strict terms (legacy --strict-math)");console.log("");console.log(" -su=on|off Allows mixed units, e.g. 1px+1em or 1px*1px which have units");console.log(" --strict-units=on|off that cannot be represented.");console.log(" --global-var='VAR=VALUE' Defines a variable that can be referenced by the file.");console.log(" --modify-var='VAR=VALUE' Modifies a variable already declared in the file.");console.log(" --url-args='QUERYSTRING' Adds params into url tokens (e.g. 42, cb=42 or 'a=1&b=2')");console.log(" --plugin=PLUGIN=OPTIONS Loads a plugin. You can also omit the --plugin= if the plugin begins");console.log(" less-plugin. E.g. the clean css plugin is called less-plugin-clean-css");console.log(" once installed (npm install less-plugin-clean-css), use either with");console.log(" --plugin=less-plugin-clean-css or just --clean-css");console.log(' specify options afterwards e.g. --plugin=less-plugin-clean-css="advanced"');console.log(' or --clean-css="advanced"');console.log("");console.log("-------------------------- Deprecated ----------------");console.log(" -sm=on|off Legacy parens-only math. Use --math");console.log(" --strict-math=on|off ");console.log("");console.log(" --line-numbers=TYPE Outputs filename and line numbers.");console.log(" TYPE can be either 'comments', which will output");console.log(" the debug info within comments, 'mediaquery'");console.log(" that will output the information within a fake");console.log(" media query which is compatible with the SASS");console.log(" format, and 'all' which will do both.");console.log(" -x, --compress Compresses output by removing some whitespaces.");console.log(" We recommend you use a dedicated minifer like less-plugin-clean-css");console.log("");console.log("Report bugs to: http://github.com/less/less.js/issues");console.log("Home page: <http://lesscss.org/>")}};for(var i in r){if(r.hasOwnProperty(i)){e[i]=r[i]}}},7903:function(t,e,r){"use strict";var i=this&&this.__extends||function(){var t=function(e,r){t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)if(e.hasOwnProperty(r))t[r]=e[r]};return t(e,r)};return function(e,r){t(e,r);function __(){this.constructor=e}e.prototype=r===null?Object.create(r):(__.prototype=r.prototype,new __)}}();var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:true});var a=n(r(5622));var o=n(r(2839));var s=function(t){i(PluginLoader,t);function PluginLoader(e){var r=t.call(this)||this;r.less=e;r.require=function(t){t=a.default.dirname(t);return function(e){var r=e.substr(0,2);if(r===".."||r==="./"){return require(a.default.join(t,e))}else{return require(e)}}};return r}PluginLoader.prototype.loadPlugin=function(t,e,r,i,n){var a=t.slice(0,1);var o=a==="."||a==="/"||t.slice(-3).toLowerCase()===".js";if(!o){r.prefixes=["less-plugin-",""]}if(r.syncImport){return n.loadFileSync(t,e,r,i)}return new Promise(function(a,o){n.loadFile(t,e,r,i).then(function(t){try{a(t)}catch(t){console.log(t);o(t)}}).catch(function(t){o(t)})})};PluginLoader.prototype.loadPluginSync=function(t,e,r,i,n){r.syncImport=true;return this.loadPlugin(t,e,r,i,n)};return PluginLoader}(o.default);e.default=s},3913:function(t,e,r){"use strict";var i=this&&this.__extends||function(){var t=function(e,r){t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)if(e.hasOwnProperty(r))t[r]=e[r]};return t(e,r)};return function(e,r){t(e,r);function __(){this.constructor=e}e.prototype=r===null?Object.create(r):(__.prototype=r.prototype,new __)}}();var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:true});var a=/^(?:https?:)?\/\//i;var o=n(r(8835));var s;var u=n(r(8394));var c=n(r(100));var f=function(t){i(UrlFileManager,t);function UrlFileManager(){return t!==null&&t.apply(this,arguments)||this}UrlFileManager.prototype.supports=function(t,e,r,i){return a.test(t)||a.test(e)};UrlFileManager.prototype.loadFile=function(t,e,i,n){return new Promise(function(i,n){if(s===undefined){try{s=r(6081)}catch(t){s=null}}if(!s){n({type:"File",message:"optional dependency 'native-request' required to import over http(s)\n"});return}var u=a.test(t)?t:o.default.resolve(e,t);var f=u.indexOf("?")===-1?u+"?":u;s.get(f,function(t,e,r){if(r===404){n({type:"File",message:"resource '"+u+"' was not found\n"});return}if(t){n({type:"File",message:"resource '"+u+"' gave this Error:\n "+t+"\n"});return}if(!e){c.default.warn("Warning: Empty body (HTTP "+r+') returned by "'+u+'"')}i({contents:e,filename:u})})})};return UrlFileManager}(u.default);e.default=f},407:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});e.RewriteUrls=e.Math=void 0;e.Math={ALWAYS:0,PARENS_DIVISION:1,PARENS:2,STRICT_LEGACY:3};e.RewriteUrls={OFF:0,LOCAL:1,ALL:2}},8813:function(t,e,r){"use strict";var i=this&&this.__createBinding||(Object.create?function(t,e,r,i){if(i===undefined)i=r;Object.defineProperty(t,i,{enumerable:true,get:function(){return e[r]}})}:function(t,e,r,i){if(i===undefined)i=r;t[i]=e[r]});var n=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:true,value:e})}:function(t,e){t["default"]=e});var a=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)if(r!=="default"&&Object.hasOwnProperty.call(t,r))i(e,t,r);n(e,t);return e};Object.defineProperty(e,"__esModule",{value:true});var o={};e.default=o;var s=a(r(407));var u=function copyFromOriginal(t,e,r){if(!t){return}for(var i=0;i<r.length;i++){if(t.hasOwnProperty(r[i])){e[r[i]]=t[r[i]]}}};var c=["paths","rewriteUrls","rootpath","strictImports","insecure","dumpLineNumbers","compress","syncImport","chunkInput","mime","useFileCache","processImports","pluginManager"];o.Parse=function(t){u(t,this,c);if(typeof this.paths==="string"){this.paths=[this.paths]}};var f=["paths","compress","math","strictUnits","sourceMap","importMultiple","urlArgs","javascriptEnabled","pluginManager","importantScope","rewriteUrls"];function isPathRelative(t){return!/^(?:[a-z-]+:|\/|#)/i.test(t)}function isPathLocalRelative(t){return t.charAt(0)==="."}o.Eval=function(){function Eval(t,e){u(t,this,f);if(typeof this.paths==="string"){this.paths=[this.paths]}this.frames=e||[];this.importantScope=this.importantScope||[];this.inCalc=false;this.mathOn=true}Eval.prototype.enterCalc=function(){if(!this.calcStack){this.calcStack=[]}this.calcStack.push(true);this.inCalc=true};Eval.prototype.exitCalc=function(){this.calcStack.pop();if(!this.calcStack.length){this.inCalc=false}};Eval.prototype.inParenthesis=function(){if(!this.parensStack){this.parensStack=[]}this.parensStack.push(true)};Eval.prototype.outOfParenthesis=function(){this.parensStack.pop()};Eval.prototype.isMathOn=function(t){if(!this.mathOn){return false}if(t==="/"&&this.math!==s.Math.ALWAYS&&(!this.parensStack||!this.parensStack.length)){return false}if(this.math>s.Math.PARENS_DIVISION){return this.parensStack&&this.parensStack.length}return true};Eval.prototype.pathRequiresRewrite=function(t){var e=this.rewriteUrls===s.RewriteUrls.LOCAL?isPathLocalRelative:isPathRelative;return e(t)};Eval.prototype.rewritePath=function(t,e){var r;e=e||"";r=this.normalizePath(e+t);if(isPathLocalRelative(t)&&isPathRelative(e)&&isPathLocalRelative(r)===false){r="./"+r}return r};Eval.prototype.normalizePath=function(t){var e=t.split("/").reverse();var r;t=[];while(e.length!==0){r=e.pop();switch(r){case".":break;case"..":if(t.length===0||t[t.length-1]===".."){t.push(r)}else{t.pop()}break;default:t.push(r);break}}return t.join("/")};return Eval}()},6246:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});e.default={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"}},7323:function(t,e,r){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:true});var n=i(r(6246));var a=i(r(102));e.default={colors:n.default,unitConversions:a.default}},102:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});e.default={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}}},5356:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});e.default=function(){return{javascriptEnabled:false,depends:false,compress:false,lint:false,paths:[],color:true,strictImports:false,insecure:false,rootpath:"",rewriteUrls:false,math:0,strictUnits:false,globalVars:null,modifyVars:null,urlArgs:""}}},8394:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});var r=function(){function AbstractFileManager(){}AbstractFileManager.prototype.getPath=function(t){var e=t.lastIndexOf("?");if(e>0){t=t.slice(0,e)}e=t.lastIndexOf("/");if(e<0){e=t.lastIndexOf("\\")}if(e<0){return""}return t.slice(0,e+1)};AbstractFileManager.prototype.tryAppendExtension=function(t,e){return/(\.[a-z]*$)|([\?;].*)$/.test(t)?t:t+e};AbstractFileManager.prototype.tryAppendLessExtension=function(t){return this.tryAppendExtension(t,".less")};AbstractFileManager.prototype.supportsSync=function(){return false};AbstractFileManager.prototype.alwaysMakePathsAbsolute=function(){return false};AbstractFileManager.prototype.isPathAbsolute=function(t){return/^(?:[a-z-]+:|\/|\\|#)/i.test(t)};AbstractFileManager.prototype.join=function(t,e){if(!t){return e}return t+e};AbstractFileManager.prototype.pathDiff=function(t,e){var r=this.extractUrlParts(t);var i=this.extractUrlParts(e);var n;var a;var o;var s;var u="";if(r.hostPart!==i.hostPart){return""}a=Math.max(i.directories.length,r.directories.length);for(n=0;n<a;n++){if(i.directories[n]!==r.directories[n]){break}}s=i.directories.slice(n);o=r.directories.slice(n);for(n=0;n<s.length-1;n++){u+="../"}for(n=0;n<o.length-1;n++){u+=o[n]+"/"}return u};AbstractFileManager.prototype.extractUrlParts=function(t,e){var r=/^((?:[a-z-]+:)?\/{2}(?:[^\/\?#]*\/)|([\/\\]))?((?:[^\/\\\?#]*[\/\\])*)([^\/\\\?#]*)([#\?].*)?$/i;var i=t.match(r);var n={};var a=[];var o=[];var s;var u;if(!i){throw new Error("Could not parse sheet href - '"+t+"'")}if(e&&(!i[1]||i[2])){u=e.match(r);if(!u){throw new Error("Could not parse page url - '"+e+"'")}i[1]=i[1]||u[1]||"";if(!i[2]){i[3]=u[3]+i[3]}}if(i[3]){a=i[3].replace(/\\/g,"/").split("/");for(s=0;s<a.length;s++){if(a[s]===".."){o.pop()}else if(a[s]!=="."){o.push(a[s])}}}n.hostPart=i[1];n.directories=o;n.rawPath=(i[1]||"")+a.join("/");n.path=(i[1]||"")+o.join("/");n.filename=i[4];n.fileUrl=n.path+(i[4]||"");n.url=n.fileUrl+(i[5]||"");return n};return AbstractFileManager}();e.default=r},2839:function(t,e,r){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:true});var n=i(r(5871));var a=i(r(600));var o=function(){function AbstractPluginLoader(){this.require=function(){return null}}AbstractPluginLoader.prototype.evalPlugin=function(t,e,r,i,o){var s;var u;var c;var f;var l;var p;var h;l=e.pluginManager;if(o){if(typeof o==="string"){p=o}else{p=o.filename}}var v=(new this.less.FileManager).extractUrlParts(p).filename;if(p){c=l.get(p);if(c){h=this.trySetOptions(c,p,v,i);if(h){return h}try{if(c.use){c.use.call(this.context,c)}}catch(t){t.message=t.message||"Error during @plugin call";return new a.default(t,r,p)}return c}}f={exports:{},pluginManager:l,fileInfo:o};u=n.default.create();var d=function(t){c=t};try{s=new Function("module","require","registerPlugin","functions","tree","less","fileInfo",t);s(f,this.require(p),d,u,this.less.tree,this.less,o)}catch(t){return new a.default(t,r,p)}if(!c){c=f.exports}c=this.validatePlugin(c,p,v);if(c instanceof a.default){return c}if(c){c.imports=r;c.filename=p;if(!c.minVersion||this.compareVersion("3.0.0",c.minVersion)<0){h=this.trySetOptions(c,p,v,i);if(h){return h}}l.addPlugin(c,o.filename,u);c.functions=u.getLocalFunctions();h=this.trySetOptions(c,p,v,i);if(h){return h}try{if(c.use){c.use.call(this.context,c)}}catch(t){t.message=t.message||"Error during @plugin call";return new a.default(t,r,p)}}else{return new a.default({message:"Not a valid plugin"},r,p)}return c};AbstractPluginLoader.prototype.trySetOptions=function(t,e,r,i){if(i&&!t.setOptions){return new a.default({message:"Options have been provided but the plugin "+r+" does not support any options."})}try{t.setOptions&&t.setOptions(i)}catch(t){return new a.default(t)}};AbstractPluginLoader.prototype.validatePlugin=function(t,e,r){if(t){if(typeof t==="function"){t=new t}if(t.minVersion){if(this.compareVersion(t.minVersion,this.less.version)<0){return new a.default({message:"Plugin "+r+" requires version "+this.versionToString(t.minVersion)})}}return t}return null};AbstractPluginLoader.prototype.compareVersion=function(t,e){if(typeof t==="string"){t=t.match(/^(\d+)\.?(\d+)?\.?(\d+)?/);t.shift()}for(var r=0;r<t.length;r++){if(t[r]!==e[r]){return parseInt(t[r])>parseInt(e[r])?-1:1}}return 0};AbstractPluginLoader.prototype.versionToString=function(t){var e="";for(var r=0;r<t.length;r++){e+=(e?".":"")+t[r]}return e};AbstractPluginLoader.prototype.printUsage=function(t){for(var e=0;e<t.length;e++){var r=t[e];if(r.printUsage){r.printUsage()}}};return AbstractPluginLoader}();e.default=o},1058:function(t,e,r){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:true});var n=i(r(100));var a=function(){function environment(t,e){this.fileManagers=e||[];t=t||{};var r=["encodeBase64","mimeLookup","charsetLookup","getSourceMapGenerator"];var i=[];var n=i.concat(r);for(var a=0;a<n.length;a++){var o=n[a];var s=t[o];if(s){this[o]=s.bind(t)}else if(a<i.length){this.warn("missing required function in environment - "+o)}}}environment.prototype.getFileManager=function(t,e,r,i,a){if(!t){n.default.warn("getFileManager called with no filename.. Please report this issue. continuing.")}if(e==null){n.default.warn("getFileManager called with null directory.. Please report this issue. continuing.")}var o=this.fileManagers;if(r.pluginManager){o=[].concat(o).concat(r.pluginManager.getFileManagers())}for(var s=o.length-1;s>=0;s--){var u=o[s];if(u[a?"supportsSync":"supports"](t,e,r,i)){return u}}return null};environment.prototype.addFileManager=function(t){this.fileManagers.push(t)};environment.prototype.clearFileManagers=function(){this.fileManagers=[]};return environment}();e.default=a},5617:function(t,e,r){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:true});var n=i(r(6316));var a=i(r(1161));function boolean(t){return t?a.default.True:a.default.False}function If(t,e,r,i){return e.eval(t)?r.eval(t):i?i.eval(t):new n.default}If.evalArgs=false;e.default={boolean:boolean,if:If}},9054:function(t,e,r){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:true});var n=i(r(3380));function colorBlend(t,e,r){var i=e.alpha;var a;var o=r.alpha;var s;var u;var c;var f=[];u=o+i*(1-o);for(var l=0;l<3;l++){a=e.rgb[l]/255;s=r.rgb[l]/255;c=t(a,s);if(u){c=(o*s+i*(a-o*(a+s-c)))/u}f[l]=c*255}return new n.default(f,u)}var a={multiply:function(t,e){return t*e},screen:function(t,e){return t+e-t*e},overlay:function(t,e){t*=2;return t<=1?a.multiply(t,e):a.screen(t-1,e)},softlight:function(t,e){var r=1;var i=t;if(e>.5){i=1;r=t>.25?Math.sqrt(t):((16*t-12)*t+4)*t}return t-(1-2*e)*i*(r-t)},hardlight:function(t,e){return a.overlay(e,t)},difference:function(t,e){return Math.abs(t-e)},exclusion:function(t,e){return t+e-2*t*e},average:function(t,e){return(t+e)/2},negation:function(t,e){return 1-Math.abs(t+e-1)}};for(var o in a){if(a.hasOwnProperty(o)){colorBlend[o]=colorBlend.bind(null,a[o])}}e.default=colorBlend},8544:function(t,e,r){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:true});var n=i(r(1257));var a=i(r(3380));var o=i(r(1932));var s=i(r(6316));var u;function clamp(t){return Math.min(1,Math.max(0,t))}function hsla(t,e){var r=u.hsla(e.h,e.s,e.l,e.a);if(r){if(t.value&&/^(rgb|hsl)/.test(t.value)){r.value=t.value}else{r.value="rgb"}return r}}function toHSL(t){if(t.toHSL){return t.toHSL()}else{throw new Error("Argument cannot be evaluated to a color")}}function toHSV(t){if(t.toHSV){return t.toHSV()}else{throw new Error("Argument cannot be evaluated to a color")}}function number(t){if(t instanceof n.default){return parseFloat(t.unit.is("%")?t.value/100:t.value)}else if(typeof t==="number"){return t}else{throw{type:"Argument",message:"color functions take numbers as parameters"}}}function scaled(t,e){if(t instanceof n.default&&t.unit.is("%")){return parseFloat(t.value*e/100)}else{return number(t)}}u={rgb:function(t,e,r){var i=u.rgba(t,e,r,1);if(i){i.value="rgb";return i}},rgba:function(t,e,r,i){try{if(t instanceof a.default){if(e){i=number(e)}else{i=t.alpha}return new a.default(t.rgb,i,"rgba")}var n=[t,e,r].map(function(t){return scaled(t,255)});i=number(i);return new a.default(n,i,"rgba")}catch(t){}},hsl:function(t,e,r){var i=u.hsla(t,e,r,1);if(i){i.value="hsl";return i}},hsla:function(t,e,r,i){try{if(t instanceof a.default){if(e){i=number(e)}else{i=t.alpha}return new a.default(t.rgb,i,"hsla")}var n;var o;function hue(t){t=t<0?t+1:t>1?t-1:t;if(t*6<1){return n+(o-n)*t*6}else if(t*2<1){return o}else if(t*3<2){return n+(o-n)*(2/3-t)*6}else{return n}}t=number(t)%360/360;e=clamp(number(e));r=clamp(number(r));i=clamp(number(i));o=r<=.5?r*(e+1):r+e-r*e;n=r*2-o;var s=[hue(t+1/3)*255,hue(t)*255,hue(t-1/3)*255];i=number(i);return new a.default(s,i,"hsla")}catch(t){}},hsv:function(t,e,r){return u.hsva(t,e,r,1)},hsva:function(t,e,r,i){t=number(t)%360/360*360;e=number(e);r=number(r);i=number(i);var n;var a;n=Math.floor(t/60%6);a=t/60-n;var o=[r,r*(1-e),r*(1-a*e),r*(1-(1-a)*e)];var s=[[0,3,1],[2,0,1],[1,0,3],[1,2,0],[3,1,0],[0,1,2]];return u.rgba(o[s[n][0]]*255,o[s[n][1]]*255,o[s[n][2]]*255,i)},hue:function(t){return new n.default(toHSL(t).h)},saturation:function(t){return new n.default(toHSL(t).s*100,"%")},lightness:function(t){return new n.default(toHSL(t).l*100,"%")},hsvhue:function(t){return new n.default(toHSV(t).h)},hsvsaturation:function(t){return new n.default(toHSV(t).s*100,"%")},hsvvalue:function(t){return new n.default(toHSV(t).v*100,"%")},red:function(t){return new n.default(t.rgb[0])},green:function(t){return new n.default(t.rgb[1])},blue:function(t){return new n.default(t.rgb[2])},alpha:function(t){return new n.default(toHSL(t).a)},luma:function(t){return new n.default(t.luma()*t.alpha*100,"%")},luminance:function(t){var e=.2126*t.rgb[0]/255+.7152*t.rgb[1]/255+.0722*t.rgb[2]/255;return new n.default(e*t.alpha*100,"%")},saturate:function(t,e,r){if(!t.rgb){return null}var i=toHSL(t);if(typeof r!=="undefined"&&r.value==="relative"){i.s+=i.s*e.value/100}else{i.s+=e.value/100}i.s=clamp(i.s);return hsla(t,i)},desaturate:function(t,e,r){var i=toHSL(t);if(typeof r!=="undefined"&&r.value==="relative"){i.s-=i.s*e.value/100}else{i.s-=e.value/100}i.s=clamp(i.s);return hsla(t,i)},lighten:function(t,e,r){var i=toHSL(t);if(typeof r!=="undefined"&&r.value==="relative"){i.l+=i.l*e.value/100}else{i.l+=e.value/100}i.l=clamp(i.l);return hsla(t,i)},darken:function(t,e,r){var i=toHSL(t);if(typeof r!=="undefined"&&r.value==="relative"){i.l-=i.l*e.value/100}else{i.l-=e.value/100}i.l=clamp(i.l);return hsla(t,i)},fadein:function(t,e,r){var i=toHSL(t);if(typeof r!=="undefined"&&r.value==="relative"){i.a+=i.a*e.value/100}else{i.a+=e.value/100}i.a=clamp(i.a);return hsla(t,i)},fadeout:function(t,e,r){var i=toHSL(t);if(typeof r!=="undefined"&&r.value==="relative"){i.a-=i.a*e.value/100}else{i.a-=e.value/100}i.a=clamp(i.a);return hsla(t,i)},fade:function(t,e){var r=toHSL(t);r.a=e.value/100;r.a=clamp(r.a);return hsla(t,r)},spin:function(t,e){var r=toHSL(t);var i=(r.h+e.value)%360;r.h=i<0?360+i:i;return hsla(t,r)},mix:function(t,e,r){if(!r){r=new n.default(50)}var i=r.value/100;var o=i*2-1;var s=toHSL(t).a-toHSL(e).a;var u=((o*s==-1?o:(o+s)/(1+o*s))+1)/2;var c=1-u;var f=[t.rgb[0]*u+e.rgb[0]*c,t.rgb[1]*u+e.rgb[1]*c,t.rgb[2]*u+e.rgb[2]*c];var l=t.alpha*i+e.alpha*(1-i);return new a.default(f,l)},greyscale:function(t){return u.desaturate(t,new n.default(100))},contrast:function(t,e,r,i){if(!t.rgb){return null}if(typeof r==="undefined"){r=u.rgba(255,255,255,1)}if(typeof e==="undefined"){e=u.rgba(0,0,0,1)}if(e.luma()>r.luma()){var n=r;r=e;e=n}if(typeof i==="undefined"){i=.43}else{i=number(i)}if(t.luma()<i){return r}else{return e}},argb:function(t){return new s.default(t.toARGB())},color:function(t){if(t ins