-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpet.js
1 lines (1 loc) · 163 KB
/
pet.js
1
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.pet=t():e.pet=t()}("undefined"!=typeof self?self:this,function(){return function(e){function t(i){if(n[i])return n[i].exports;var r=n[i]={i:i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,t),r.l=!0,r.exports}var n={};return t.m=e,t.c=n,t.d=function(e,n,i){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:i})},t.n=function(e){var n=e&&e.__esModule?function(){return e["default"]}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="/dist/",t(t.s=2)}([function(e,t,n){"use strict";function i(e){return null===e?e+"":Object.prototype.toString.call(e).match(/\s(\S+?)\]$/)[1].toLowerCase()}function r(e){var t=i(e),n=void 0;if("array"===t)n=[];else{if("object"!==t)return e;n={}}if("array"===t)for(var o=0,s=e.length;o<s;o++)n.push(r(e[o]));else if("object"===t)for(var a in e)n[a]=r(e[a]);return n}function o(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:0,n=void 0;return function(){for(var i=this,r=arguments.length,o=Array(r),s=0;s<r;s++)o[s]=arguments[s];clearTimeout(n),n=setTimeout(function(){e.apply(i,o)},t)}}function s(e,t){if(t){var n=e.touches[0];return{x:n.clientX,y:n.clientY}}return{x:e.clientX,y:e.clientY}}function a(e){var t=window.getComputedStyle(e);return{x:parseFloat(t.left),y:parseFloat(t.top)}}function l(e,t,n){var i=!1,r={x:0,y:0},o="ontouchstart"in window,l=o?"touchstart":"mousedown",u=o?"touchmove":"mousemove",c=o?"touchend":"mouseup";t.addEventListener(l,function(e){o||e.preventDefault(),i=!0,r=s(e,o)}),document.addEventListener(c,function(e){i=!1}),document.addEventListener(u,function(e){if(i){var l=s(e,o),u=l.x-r.x,c=l.y-r.y;r=s(e,o);var f=a(t),h={x:f.x+u,y:f.y+c};t.style.left=h.x+"px",t.style.top=h.y+"px",n&&n(h)}})}function u(e,t){var n=0,i=e.length,r=c(e);if(r)for(;n<i&&!1!==t.call(e[n],n,e[n]);n++);else for(n in e)if(!1===t.call(e[n],n,e[n]))break}function c(e){return"number"==i(e.length)&&"function"==i(e.splice)}function f(e){return~~(Math.random()*e)}function h(e){if("boolean"==typeof e)return!1;if("number"==typeof e)return!1;if(e instanceof Array){if(0==e.length)return!0}else{if(!(e instanceof Object))return"null"==e||null==e||"undefined"==e||e==undefined||""==e;if("{}"===JSON.stringify(e))return!0}return!1}Object.defineProperty(t,"__esModule",{value:!0}),t.getType=i,t.deepClone=r,t.debounce=o,t.drag=l,t.each=u,t.arrayLike=c,t.randomInt=f,t.isEmpty=h},function(e,t,n){"use strict";function i(e){var t=localStorage[e]||"{}";return JSON.parse(t)}function r(e,t){var n=JSON.stringify(t);localStorage[e]=n}function o(e){localStorage.removeItem(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.getStorage=i,t.saveStorage=r,t.delStorage=o},function(e,t,n){e.exports=n(3)},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s=undefined&&undefined.__decorate||function(e,t,n,i){var r,s=arguments.length,a=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===("undefined"==typeof Reflect?"undefined":o(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var l=e.length-1;l>=0;l--)(r=e[l])&&(a=(s<3?r(a):s>3?r(t,n,a):r(t,n))||a);return s>3&&a&&Object.defineProperty(t,n,a),a};Object.defineProperty(t,"__esModule",{value:!0});var a=n(4),l=n(1),u=n(5),c=n(6),f=n(7),h=n(0),p=n(1),d=n(8),v=n(9),m=n(11),g=n(12),y=function(){function e(){i(this,e),this.menuOn=!1,this.inputOn=!1,this.freeSayDfd=(new a["default"]).resolve()}return r(e,[{key:"fillDom",value:function(){var e=document.createElement("div");e.innerHTML=g;var t=e.children[0];document.body.appendChild(t),e.innerHTML=m;var n=e.children[0];document.body.appendChild(n)}},{key:"fillMenu",value:function(){for(var e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:[],t=this.opt.menu,n=0,i=e.length;n<i;n++)t=t[e[n]];var r=[];h.each(t,function(t,n){if("$title"==t)return!0;var i=e.slice();i.push(t),r.push('<span class="cc-cmd" data-cccmd="'+i.join("__")+'">'+t+"</span>")}),this.eleNodeMenu.innerHTML=r.join("")}},{key:"getPosBySize",value:function(){var e=l.getStorage("pet_size");e=h.isEmpty(e)?this.getRealSize(this.opt.size):this.getRealSize(e);var t={x:0,y:0};switch(e){case"large":t={x:350,y:350};break;case"big":t={x:250,y:250};break;case"small":t={x:200,y:200};break;case"mini":t={x:120,y:160}}return t}},{key:"calcDrag",value:function(e,t){var n=this,i=arguments.length>2&&arguments[2]!==undefined&&arguments[2],r=arguments.length>3&&arguments[3]!==undefined&&arguments[3],o=document.documentElement.clientWidth,s=document.documentElement.clientHeight,a=l.getStorage("pet_pos"),u=50,c=55,f=this.getPosBySize();if(1==t?(u=f.x,c=f.y,r&&a.x!==undefined&&(e.x-=u/2,e.y-=c/2)):r&&a.x!==undefined&&(e.x+=f.x/2,e.y+=f.y/2),e){var h=!1;e.x>o-u?(h=!0,e.x=o-u):e.x<0&&(h=!0,e.x=20),e.y>s-c?(h=!0,e.y=s-c):e.y<0&&(h=!0,e.y=20),i?this.setPosition(t,e):setTimeout(function(){h&&n.setPosition(t,e)},30)}}},{key:"setPosition",value:function(e,t){1==e?(this.eleNodeMain.style.left=t.x+"px",this.eleNodeMain.style.top=t.y+"px"):(this.eleNodeZhaohuan.style.left=t.x+"px",this.eleNodeZhaohuan.style.top=t.y+"px"),p.saveStorage("pet_pos",t)}},{key:"evtSet",value:function(){var e=this;this.opt.drag&&(h.drag(this.eleNodeBody,this.eleNodeMain,function(t){e.calcDrag(t,1,!0),h.debounce(function(){return l.saveStorage("pet_pos",t)},300)}),h.drag(this.eleNodeZhaohuan,this.eleNodeZhaohuan,function(t){e.calcDrag(t,2,!0),h.debounce(function(){return l.saveStorage("pet_pos",t)},300)})),this.eleNodeMenuBtn.addEventListener("click",function(){e.toggleMenu().then(function(){e.menuOn||e.freeAction(!0,!0)})}),this.eleNodeMenu.addEventListener("click",function(t){var n=t.target;if(~n.className.indexOf("cc-cmd")){var i=n.getAttribute("data-cccmd")||"";e.choseItem(i)}},!0),this.eleNodeZhaohuan.addEventListener("click",function(){e.show()}),this.eleChatInputOK.addEventListener("click",function(){e.inputFunc&&e.inputFunc(e.eleChatInput.value,function(){e.hideInput(),e.hideMenu(),e.eleChatInput.value=""})})}},{key:"choseItem",value:function(){for(var e=this,t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:"",n=t.split("__"),i=this.opt.menu,r=0,o=n.length;r<o;r++)i=i[n[r]];var s={array:function(t){t.length>0&&(e.showInput(),e.freeSay(t[0]+""),e.hideMenu(),e.eleChatInput.focus()),t.length>1&&"function"==typeof t[1]&&(e.inputFunc=t[1])},number:function(t){e.freeSay(t+""),e.hideMenu().then(function(){e.fillMenu()})},string:function(t){e.freeSay(t),e.hideMenu().then(function(){e.fillMenu()})},function:function(e){return e()},object:function(t){e.hideMenu().then(function(){e.fillMenu(n),e.showMenu(),t.$title&&e.freeSay(t.$title)})}},a=h.getType(i);s[a]&&s[a](i)}},{key:"freeAction",value:function(){var e=this,t=arguments.length>0&&arguments[0]!==undefined&&arguments[0],n=!(arguments.length>1&&arguments[1]!==undefined)||arguments[1];clearInterval(this.freeActionTimer);var i=function(){if(e.menuOn&&e.hideMenu(),e.opt.words){var t=h.randomInt(e.opt.words.length),n=e.opt.words[t];e.freeSay(n)}};t&&i(),n&&(this.freeActionTimer=setInterval(function(){return i()},8e3))}},{key:"sayWords",value:function(e){var t=this;this.hideMenu(),this.freeSayDfd.disable(),this.freeSayDfd=(new a["default"]).resolve();for(var n=0,i=e.length;n<i;n++)!function(n,i){t.freeSayDfd.then(function(){t.eleNodeWord.innerHTML=e.substr(0,n+1)}).delay(80)}(n)}},{key:"freeSay",value:function(e){var t=this;this.freeSayDfd.disable(),this.freeSayDfd=(new a["default"]).resolve();for(var n=0,i=e.length;n<i;n++)!function(n,i){t.freeSayDfd.then(function(){t.eleNodeWord.innerHTML=e.substr(0,n+1)}).delay(80)}(n)}},{key:"toggleMenu",value:function(){var e=void 0;return this.menuOn?e=this.hideMenu():(this.hideInput(),e=this.showMenu()),e}},{key:"showMenu",value:function(){var e=this,t=new a["default"];return this.menuOn?t.resolve():u.slideDown(this.eleNodeMenu,200,function(){e.menuOn=!0,t.resolve()}),t}},{key:"hideMenu",value:function(){var e=this,t=new a["default"];return this.menuOn?u.slideUp(this.eleNodeMenu,200,function(){e.menuOn=!1,e.fillMenu(),t.resolve()}):t.resolve(),t}},{key:"showInput",value:function(){var e=this,t=new a["default"];return this.inputOn?t.resolve():u.slideDown(this.eleChatInputBox,200,function(){e.inputOn=!0,t.resolve()}),t}},{key:"hideInput",value:function(){var e=this,t=new a["default"];return this.inputOn?u.slideUp(this.eleChatInputBox,200,function(){e.inputOn=!1,e.fillMenu(),t.resolve()}):t.resolve(),t}},{key:"loadLessStyle",value:function(e){var t=document.createElement("link");t.type="text/css",t.rel="stylesheet/less",t.href=e,t.id="pet_less",document.getElementsByTagName("head")[0].appendChild(t),v.sheets.push(document.getElementById("pet_less"))}},{key:"getPosition",value:function(){var e=arguments.length>0&&arguments[0]!==undefined&&arguments[0],t=l.getStorage("pet_pos");t.x!==undefined&&("none"!=this.eleNodeMain.style.display?this.calcDrag(t,1,!0,e):this.calcDrag(t,2,!0,e))}},{key:"init",value:function(t){var n=this;if(!e.isInit){e.isInit=!0,this.initOpt=h.deepClone(t),v.options={env:"development",logLevel:0};var i=l.getStorage("pet_pet_size");h.isEmpty(i)||(t.size=i);var r=l.getStorage("pet_color");h.isEmpty(r)||(t.color=r),this.opt=Object.assign({drag:!0,showText:"啊啦,我又来啦~",hideText:"记得叫我出来哦~",showChat:!0},t),this.opt.themeUrl?this.loadLessStyle(this.opt.themeUrl):(t.color&&this.changeColor(t.color),this.loadLessStyle("//qiniu.oorzc.cn/pet/css/pet.min.less")),v.refresh(!0).then(function(e){n.changeTheme(),n.fillDom(),n.fillMenu(),n.evtSet(),l.getStorage("pet_show")?(n.eleNodeMain.style.display="block",n.eleNodeZhaohuan.style.display="none",n.opt.showChat?n.eleChatBody.style.display="block":n.eleChatBody.style.display="none",n.freeSay(n.opt.showText),n.getPosition()):(n.eleNodeMain.style.display="none",n.eleNodeZhaohuan.style.display="block",n.getPosition())})}}},{key:"clearAll",value:function(){var e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:"all";if("pos"==e||"all"==e){var t=document.documentElement.clientWidth,n=document.documentElement.clientHeight,i=this.getPosBySize(),r={x:t+i.x/2,y:n+i.y/2};l.saveStorage("pet_pos",r)}switch(e){case"all":l.delStorage("pet_size"),l.delStorage("pet_color"),this.opt.size=this.initOpt.size,this.opt.color=this.initOpt.color,this.opt.themeUrl=this.initOpt.themeUrl,!this.opt.themeUrl&&this.opt.color&&this.changeColor(this.opt.color),l.saveStorage("pet_size",this.opt.size),this.changeTheme(),this.getPosition(!0);break;case"color":l.delStorage("pet_color"),this.opt.color=this.initOpt.color,this.opt.themeUrl=this.initOpt.themeUrl,!this.opt.themeUrl&&this.opt.color&&this.changeColor(this.opt.color),this.changeTheme();break;case"size":l.delStorage("pet_size"),this.opt.size=this.initOpt.size,l.saveStorage("pet_size",this.opt.size),this.changeTheme();break;case"pos":this.getPosition(!0)}}},{key:"changeTheme",value:function(){var e=(arguments.length>0&&arguments[0]!==undefined&&arguments[0],{}),t=l.getStorage("pet_color");h.isEmpty(t)||(e=Object.assign(e,c["default"][t]));var n=l.getStorage("pet_size");if(h.isEmpty(n)){var i=this.getRealSize(this.opt.size);e=Object.assign(e,f["default"][i])}else{var r=this.getRealSize(n);e=Object.assign(e,f["default"][r])}v.modifyVars(e).then(function(){})}},{key:"getRealSize",value:function(e){if("auto"!=e)return e;var t=document.documentElement.clientWidth;return e=t>1200?"large":t>960&&t<=1200?"big":t>640&&t<=960?"small":"mini"}},{key:"changeColor",value:function(e){c["default"][e]&&(this.opt.color=e,p.saveStorage("pet_color",e),this.changeTheme())}},{key:"changeSize",value:function(e){f["default"][e]&&(this.opt.size=e,p.saveStorage("pet_size",e),this.changeTheme(),this.getPosition())}},{key:"show",value:function(){var e=this;p.saveStorage("pet_show",!0),u.fadeOut(this.eleNodeZhaohuan,500),this.eleNodeWord.innerHTML="",u.fadeIn(this.eleNodeMain,500,function(){e.opt.showChat?e.eleChatBody.style.display="block":e.eleChatBody.style.display="none",e.freeSay(e.opt.showText)}),this.getPosition(!0)}},{key:"hide",value:function(){var e=this;this.freeSay(this.opt.hideText),setTimeout(function(){p.saveStorage("pet_show",!1),u.fadeOut(e.eleNodeMain,500),u.fadeIn(e.eleNodeZhaohuan,500),e.getPosition(!0)},1e3)}},{key:"eleNodeWord",get:function(){return document.getElementById("pet_word")}},{key:"eleNodeMain",get:function(){return document.getElementById("pet_main")}},{key:"eleNodeBody",get:function(){return document.getElementById("pet_body")}},{key:"eleNodeMenu",get:function(){return document.getElementsByClassName("pet-menu")[0]}},{key:"eleFace",get:function(){return document.getElementsByClassName("face")[0]}},{key:"eleChatBody",get:function(){return document.getElementById("pet-chat")}},{key:"eleChatInputBox",get:function(){return document.getElementsByClassName("pet-input")[0]}},{key:"eleChatInput",get:function(){return document.getElementById("pet_talk")}},{key:"eleChatInputOK",get:function(){return document.getElementsByClassName("pet-talkto")[0]}},{key:"eleNodeMenuBtn",get:function(){return document.getElementsByClassName("pet-menu-btn")[0]}},{key:"eleNodeZhaohuan",get:function(){return document.getElementById("pet_zhaohuan")}}]),e}();y.isInit=!1,s([d.prependFn(y.prototype.freeAction)],y.prototype,"choseItem",null),s([d.prependFn(y.prototype.freeAction)],y.prototype,"showMenu",null),s([d.prependFn(y.prototype.freeAction)],y.prototype,"showInput",null),s([d.prependFn(y.prototype.freeAction)],y.prototype,"show",null),t.pet=y,t["default"]=new y},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}();Object.defineProperty(t,"__esModule",{value:!0});var o=n(0),s=function(){function e(){i(this,e),this.queue=[],this.statu=0,this.disabled=!1,this.invoking=!1}return r(e,[{key:"next",value:function(){var e=this;if(!this.disabled){if(!this.queue.length)return void(this.invoking=!1);this.invoking=!0;var t=this.queue.shift(),n=o.getType(t);"function"==n?(t(),this.next()):"number"==n&&setTimeout(function(){e.next()},t)}}},{key:"then",value:function(e){return this.queue.push(e),1!==this.statu||this.invoking||this.next(),this}},{key:"delay",value:function(e){return this.then(e)}},{key:"resolve",value:function(){return 1===this.statu?this:(this.statu=1,this.next(),this)}},{key:"disable",value:function(){return this.disabled=!0,this}}]),e}();t["default"]=s},function(e,t,n){"use strict";function i(e,t,n,i){var r=+new Date,o=t-e;!function s(){var a=+new Date-r;if(a>n)return void i(t);i(a*o/n+e),l(s)}()}function r(e,t,n){i(e.offsetHeight,0,t,function(t){e.style.height=t+"px",0==t&&(e.style.height="auto",e.style.display="none",n())})}function o(e,t,n){e.style.display="block";var r=e.offsetHeight;i(0,r,t,function(t){e.style.height=t+"px",t==r&&n()})}function s(e,t,n){i(1,0,t,function(t){e&&(e.style.display="none",e.style.opacity=t),0==t&&n&&n()})}function a(e,t,n){i(0,1,t,function(t){e.style.display="block",e.style.opacity=t,1==t&&n&&n()})}Object.defineProperty(t,"__esModule",{value:!0});var l=window.requestAnimationFrame||function(e){setTimeout(function(){e(0)},17)};t["default"]=i,t.slideUp=r,t.slideDown=o,t.fadeOut=s,t.fadeIn=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t["default"]={brown:{"@color13":"#260f02","@color4":"#260f02","@color2":"#5a3318","@color3":"#6a3c1c","@color12":"#955d27","@color1":"#9d7442","@color5":"#C49152","@color8":"#ca9d65","@color9":"#cca069","@color10":"#cda36f","@color11":"#d7b58b","@color7":"#bfb48c","@color6":"#efe1af"},black:{"@color13":"#333","@color4":"#000","@color2":"#666","@color3":"#666","@color12":"#333","@color1":"#1C1C1C","@color5":"#363636","@color8":"#4F4F4F","@color9":"#696969","@color10":"#696969","@color11":"#828282","@color7":"#828282","@color6":"#666"},blue:{"@color13":"#49AEEA","@color4":"#000","@color2":"#fff","@color3":"#fff","@color12":"#00B2EE","@color1":"#00BFFF","@color5":"#00BFFF","@color8":"#49AEEA","@color9":"#49AEEA","@color10":"#49AEEA","@color11":"#49AEEA","@color7":"#49AEEA","@color6":"#E0EEEE"},yellow:{"@color13":"#F8D800","@color4":"#000","@color2":"#fff","@color3":"#fff","@color12":"#fce861","@color1":"#fce861","@color5":"#FFD700","@color8":"#fade23","@color9":"#fbe23f","@color10":"#fce861","@color11":"#fdeb71","@color7":"#E0EEEE","@color6":"#E0EEEE"},red:{"@color13":"#E80505","@color4":"#000","@color2":"#fff","@color3":"#fff","@color12":"#FF0000","@color1":"#FF0000","@color5":"#E80505","@color8":"#EE0000","@color9":"#FF0000","@color10":"#FF0000","@color11":"#FF0000","@color7":"#FF0000","@color6":"#fff"},green:{"@color13":"#35ad14","@color4":"#000","@color2":"#fff","@color3":"#fff","@color12":"#3fe212","@color1":"#3fe212","@color5":"#41fb0e","@color8":"#3fe212","@color9":"#3fe212","@color10":"#3fe212","@color11":"#3fe212","@color7":"#3fe212","@color6":"#fff"},pink:{"@color13":"#db4865","@color4":"#000","@color2":"#fff","@color3":"#fff","@color12":"#fd6a87","@color1":"#fd6a87","@color5":"#FD6585","@color8":"#fe888f","@color9":"#fe888f","@color10":"#fe888f","@color11":"#fe888f","@color7":"#fe888f","@color6":"#fff"},purple:{"@color13":"#6823aa","@color4":"#000","@color2":"#fff","@color3":"#fff","@color12":"#6f2dc8","@color1":"#6f2dc8","@color5":"#6f2dc8","@color8":"#8135ca","@color9":"#7c32c9","@color10":"#9940cd","@color11":"#a143cd","@color7":"#a143cd","@color6":"#fff"}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t["default"]={large:{"@pet-main-right":"210px","@pet-main-bottom":"185px","@pet-main-eevee-top":"28px","@pet-main-eevee-left":"0px","@pet-main-eevee-scale":"1"},big:{"@pet-main-right":"135px","@pet-main-bottom":"100px","@pet-main-eevee-top":"28px","@pet-main-eevee-left":"0px","@pet-main-eevee-scale":"0.7"},small:{"@pet-main-right":"60px","@pet-main-bottom":"40px","@pet-main-eevee-top":"28px","@pet-main-eevee-left":"0px","@pet-main-eevee-scale":"0.5"},mini:{"@pet-main-right":"0","@pet-main-bottom":"15px","@pet-main-eevee-top":"55px","@pet-main-eevee-left":"0","@pet-main-eevee-scale":"0.3"}}},function(e,t,n){"use strict";function i(e){return function(t,n,i){var r=i.value;i.value=function(){e.call(this);for(var t=arguments.length,n=Array(t),i=0;i<t;i++)n[i]=arguments[i];return r.apply(this,n)}}}Object.defineProperty(t,"__esModule",{value:!0}),t.prependFn=i},function(e,t,n){(function(t){var n,n;!function(t){e.exports=t()}(function(){return function e(t,i,r){function o(a,l){if(!i[a]){if(!t[a]){var u="function"==typeof n&&n;if(!l&&u)return n(a,!0);if(s)return s(a,!0);var c=new Error("Cannot find module '"+a+"'");throw c.code="MODULE_NOT_FOUND",c}var f=i[a]={exports:{}};t[a][0].call(f.exports,function(e){var n=t[a][1][e];return o(n||e)},f,f.exports,e,t,i,r)}return i[a].exports}for(var s="function"==typeof n&&n,a=0;a<r.length;a++)o(r[a]);return o}({1:[function(e,t,n){var i=e("./utils").addDataAttr,r=e("./browser");t.exports=function(e,t){i(t,r.currentScript(e)),t.isFileProtocol===undefined&&(t.isFileProtocol=/^(file|(chrome|safari)(-extension)?|resource|qrc|app):/.test(e.location.protocol)),t.async=t.async||!1,t.fileAsync=t.fileAsync||!1,t.poll=t.poll||(t.isFileProtocol?1e3:1500),t.env=t.env||("127.0.0.1"==e.location.hostname||"0.0.0.0"==e.location.hostname||"localhost"==e.location.hostname||e.location.port&&e.location.port.length>0||t.isFileProtocol?"development":"production");var n=/!dumpLineNumbers:(comments|mediaquery|all)/.exec(e.location.hash);n&&(t.dumpLineNumbers=n[1]),t.useFileCache===undefined&&(t.useFileCache=!0),t.onReady===undefined&&(t.onReady=!0)}},{"./browser":3,"./utils":10}],2:[function(e,t,n){function i(e){e.filename&&console.warn(e),r.async||a.removeChild(l)}e("promise/polyfill.js");var r=window.less||{};e("./add-default-options")(window,r);var o=t.exports=e("./index")(window,r);window.less=o;var s,a,l;r.onReady&&(/!watch/.test(window.location.hash)&&o.watch(),r.async||(s="body { display: none !important }",a=document.head||document.getElementsByTagName("head")[0],l=document.createElement("style"),l.type="text/css",l.styleSheet?l.styleSheet.cssText=s:l.appendChild(document.createTextNode(s)),a.appendChild(l)),o.registerStylesheetsImmediately(),o.pageLoadFinished=o.refresh("development"===o.env).then(i,i))},{"./add-default-options":1,"./index":8,"promise/polyfill.js":97}],3:[function(e,t,n){var i=e("./utils");t.exports={createCSS:function(e,t,n){var r=n.href||"",o="less:"+(n.title||i.extractId(r)),s=e.getElementById(o),a=!1,l=e.createElement("style");l.setAttribute("type","text/css"),n.media&&l.setAttribute("media",n.media),l.id=o,l.styleSheet||(l.appendChild(e.createTextNode(t)),a=null!==s&&s.childNodes.length>0&&l.childNodes.length>0&&s.firstChild.nodeValue===l.firstChild.nodeValue);var u=e.getElementsByTagName("head")[0];if(null===s||!1===a){var c=n&&n.nextSibling||null;c?c.parentNode.insertBefore(l,c):u.appendChild(l)}if(s&&!1===a&&s.parentNode.removeChild(s),l.styleSheet)try{l.styleSheet.cssText=t}catch(e){throw new Error("Couldn't reassign styleSheet.cssText.")}},currentScript:function(e){var t=e.document;return t.currentScript||function(){var e=t.getElementsByTagName("script");return e[e.length-1]}()}}},{"./utils":10}],4:[function(e,t,n){t.exports=function(e,t,n){var i=null;if("development"!==t.env)try{i="undefined"==typeof e.localStorage?null:e.localStorage}catch(e){}return{setCSS:function(e,t,r,o){if(i){n.info("saving "+e+" to cache.");try{i.setItem(e,o),i.setItem(e+":timestamp",t),r&&i.setItem(e+":vars",JSON.stringify(r))}catch(t){n.error('failed to save "'+e+'" to local storage for caching.')}}},getCSS:function(e,t,n){var r=i&&i.getItem(e),o=i&&i.getItem(e+":timestamp"),s=i&&i.getItem(e+":vars");if(n=n||{},o&&t.lastModified&&new Date(t.lastModified).valueOf()===new Date(o).valueOf()&&(!n&&!s||JSON.stringify(n)===s))return r}}}},{}],5:[function(e,t,n){var i=e("./utils"),r=e("./browser");t.exports=function(e,t,n){function o(t,o){var s,a,l="less-error-message:"+i.extractId(o||""),u='<li><label>{line}</label><pre class="{class}">{content}</pre></li>',c=e.document.createElement("div"),f=[],h=t.filename||o,p=h.match(/([^\/]+(\?.*)?)$/)[1];c.id=l,c.className="less-error-message",a="<h3>"+(t.type||"Syntax")+"Error: "+(t.message||"There is an error in your .less file")+'</h3><p>in <a href="'+h+'">'+p+"</a> ";var d=function(e,t,n){e.extract[t]!==undefined&&f.push(u.replace(/\{line\}/,(parseInt(e.line,10)||0)+(t-1)).replace(/\{class\}/,n).replace(/\{content\}/,e.extract[t]))};t.extract&&(d(t,0,""),d(t,1,"line"),d(t,2,""),a+="on line "+t.line+", column "+(t.column+1)+":</p><ul>"+f.join("")+"</ul>"),t.stack&&(t.extract||n.logLevel>=4)&&(a+="<br/>Stack Trace</br />"+t.stack.split("\n").slice(1).join("<br/>")),c.innerHTML=a,r.createCSS(e.document,[".less-error-message ul, .less-error-message li {","list-style-type: none;","margin-right: 15px;","padding: 4px 0;","margin: 0;","}",".less-error-message label {","font-size: 12px;","margin-right: 15px;","padding: 4px 0;","color: #cc7777;","}",".less-error-message pre {","color: #dd6666;","padding: 4px 0;","margin: 0;","display: inline-block;","}",".less-error-message pre.line {","color: #ff0000;","}",".less-error-message h3 {","font-size: 20px;","font-weight: bold;","padding: 15px 0 5px 0;","margin: 0;","}",".less-error-message a {","color: #10a","}",".less-error-message .error {","color: red;","font-weight: bold;","padding-bottom: 2px;","border-bottom: 1px dashed red;","}"].join("\n"),{title:"error-message"}),c.style.cssText=["font-family: Arial, sans-serif","border: 1px solid #e00","background-color: #eee","border-radius: 5px","-webkit-border-radius: 5px","-moz-border-radius: 5px","color: #e00","padding: 15px","margin-bottom: 15px"].join(";"),"development"===n.env&&(s=setInterval(function(){var t=e.document,n=t.body;n&&(t.getElementById(l)?n.replaceChild(c,t.getElementById(l)):n.insertBefore(c,n.firstChild),clearInterval(s))},10))}function s(t){var n=e.document.getElementById("less-error-message:"+i.extractId(t));n&&n.parentNode.removeChild(n)}function a(e){}function l(e){n.errorReporting&&"html"!==n.errorReporting?"console"===n.errorReporting?a(e):"function"==typeof n.errorReporting&&n.errorReporting("remove",e):s(e)}function u(e,i){var r="{line} {content}",o=e.filename||i,s=[],a=(e.type||"Syntax")+"Error: "+(e.message||"There is an error in your .less file")+" in "+o+" ",l=function(e,t,n){e.extract[t]!==undefined&&s.push(r.replace(/\{line\}/,(parseInt(e.line,10)||0)+(t-1)).replace(/\{class\}/,n).replace(/\{content\}/,e.extract[t]))};e.extract&&(l(e,0,""),l(e,1,"line"),l(e,2,""),a+="on line "+e.line+", column "+(e.column+1)+":\n"+s.join("\n")),e.stack&&(e.extract||n.logLevel>=4)&&(a+="\nStack Trace\n"+e.stack),t.logger.error(a)}function c(e,t){n.errorReporting&&"html"!==n.errorReporting?"console"===n.errorReporting?u(e,t):"function"==typeof n.errorReporting&&n.errorReporting("add",e,t):o(e,t)}return{add:c,remove:l}}},{"./browser":3,"./utils":10}],6:[function(e,t,n){t.exports=function(t,n){function i(){if(window.XMLHttpRequest&&!("file:"===window.location.protocol&&"ActiveXObject"in window))return new XMLHttpRequest;try{return new ActiveXObject("Microsoft.XMLHTTP")}catch(e){return n.error("browser doesn't support AJAX."),null}}var r=e("../less/environment/abstract-file-manager.js"),o={},s=function(){};return s.prototype=new r,s.prototype.alwaysMakePathsAbsolute=function(){return!0},s.prototype.join=function(e,t){return e?this.extractUrlParts(t,e).path:t},s.prototype.doXHR=function(e,r,o,s){function a(t,n,i){t.status>=200&&t.status<300?n(t.responseText,t.getResponseHeader("Last-Modified")):"function"==typeof i&&i(t.status,e)}var l=i(),u=!t.isFileProtocol||t.fileAsync;"function"==typeof l.overrideMimeType&&l.overrideMimeType("text/css"),n.debug("XHR: Getting '"+e+"'"),l.open("GET",e,u),l.setRequestHeader("Accept",r||"text/x-less, text/css; q=0.9, */*; q=0.5"),l.send(null),t.isFileProtocol&&!t.fileAsync?0===l.status||l.status>=200&&l.status<300?o(l.responseText):s(l.status,e):u?l.onreadystatechange=function(){4==l.readyState&&a(l,o,s)}:a(l,o,s)},s.prototype.supports=function(e,t,n,i){return!0},s.prototype.clearFileCache=function(){o={}},s.prototype.loadFile=function(e,t,n,i,r){t&&!this.isPathAbsolute(e)&&(e=t+e),n=n||{};var s=this.extractUrlParts(e,window.location.href),a=s.url;if(n.useFileCache&&o[a])try{var l=o[a];r(null,{contents:l,filename:a,webInfo:{lastModified:new Date}})}catch(e){r({filename:a,message:"Error loading file "+a+" error was "+e.message})}else this.doXHR(a,n.mime,function(e,t){o[a]=e,r(null,{contents:e,filename:a,webInfo:{lastModified:t}})},function(e,t){r({type:"File",message:"'"+t+"' wasn't found ("+e+")",href:a})})},s}},{"../less/environment/abstract-file-manager.js":15}],7:[function(e,t,n){t.exports=function(){function t(){throw{type:"Runtime",message:"Image size functions are not supported in browser version of less"}}var n=e("./../less/functions/function-registry"),i={"image-size":function(e){return t(),-1},"image-width":function(e){return t(),-1},"image-height":function(e){return t(),-1}};n.addMultiple(i)}},{"./../less/functions/function-registry":22}],8:[function(e,t,n){var i=e("./utils").addDataAttr,r=e("./browser");t.exports=function(t,n){function o(e){return n.postProcessor&&"function"==typeof n.postProcessor&&(e=n.postProcessor.call(e,e)||e),e}function s(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}function a(e,t){var n=Array.prototype.slice.call(arguments,2);return function(){var i=n.concat(Array.prototype.slice.call(arguments,0));return e.apply(t,i)}}function l(e){for(var t,i=h.getElementsByTagName("style"),r=0;r<i.length;r++)if(t=i[r],t.type.match(b)){var o=s(n);o.modifyVars=e;var l=t.innerHTML||"";o.filename=h.location.href.replace(/#.*$/,""),p.render(l,o,a(function(e,t,n){t?g.add(t,"inline"):(e.type="text/css",e.styleSheet?e.styleSheet.cssText=n.css:e.innerHTML=n.css)},null,t))}}function u(e,t,r,a,l){function u(n){var i=n.contents,s=n.filename,l=n.webInfo,u={currentDirectory:m.getPath(s),filename:s,rootFilename:s,relativeUrls:c.relativeUrls};if(u.entryPath=u.currentDirectory,u.rootpath=c.rootpath||u.currentDirectory,l){l.remaining=a;var f=y.getCSS(s,l,c.modifyVars);if(!r&&f)return l.local=!0,void t(null,f,i,e,l,s)}g.remove(s),c.rootFileInfo=u,p.render(i,c,function(n,r){n?(n.href=s,t(n)):(r.css=o(r.css),y.setCSS(e.href,l.lastModified,c.modifyVars,r.css),t(null,r.css,i,e,l,s))})}var c=s(n);i(c,e),c.mime=e.type,l&&(c.modifyVars=l),m.loadFile(e.href,null,c,d,function(e,n){if(e)return void t(e);u(n)})}function c(e,t,n){for(var i=0;i<p.sheets.length;i++)u(p.sheets[i],e,t,p.sheets.length-(i+1),n)}function f(){"development"===p.env&&(p.watchTimer=setInterval(function(){p.watchMode&&(m.clearFileCache(),c(function(e,n,i,o,s){e?g.add(e,e.href||o.href):n&&r.createCSS(t.document,n,o)}))},n.poll))}var h=t.document,p=e("../less")();p.options=n;var d=p.environment,v=e("./file-manager")(n,p.logger),m=new v;d.addFileManager(m),p.FileManager=v,e("./log-listener")(p,n);var g=e("./error-reporting")(t,p,n),y=p.cache=n.cache||e("./cache")(t,n,p.logger);e("./image-size")(p.environment),n.functions&&p.functions.functionRegistry.addMultiple(n.functions);var b=/^text\/(x-)?less$/;return p.watch=function(){return p.watchMode||(p.env="development",f()),this.watchMode=!0,!0},p.unwatch=function(){return clearInterval(p.watchTimer),this.watchMode=!1,!1},p.registerStylesheetsImmediately=function(){var e=h.getElementsByTagName("link");p.sheets=[];for(var t=0;t<e.length;t++)("stylesheet/less"===e[t].rel||e[t].rel.match(/stylesheet/)&&e[t].type.match(b))&&p.sheets.push(e[t])},p.registerStylesheets=function(){return new Promise(function(e,t){p.registerStylesheetsImmediately(),e()})},p.modifyVars=function(e){return p.refresh(!0,e,!1)},p.refresh=function(e,n,i){return(e||i)&&!1!==i&&m.clearFileCache(),new Promise(function(i,o){var s,a,u,f;s=a=new Date,f=p.sheets.length,0===f?(a=new Date,u=a-s,p.logger.info("Less has finished and no sheets were loaded."),i({startTime:s,endTime:a,totalMilliseconds:u,sheets:p.sheets.length})):c(function(e,n,l,c,h){if(e)return g.add(e,e.href||c.href),void o(e);h.local?p.logger.info("Loading "+c.href+" from cache."):p.logger.info("Rendered "+c.href+" successfully."),r.createCSS(t.document,n,c),p.logger.info("CSS for "+c.href+" generated in "+(new Date-a)+"ms"),f--,0===f&&(u=new Date-s,p.logger.info("Less has finished. CSS generated in "+u+"ms"),i({startTime:s,endTime:a,totalMilliseconds:u,sheets:p.sheets.length})),a=new Date},e,n),l(n)})},p.refreshStyles=l,p}},{"../less":31,"./browser":3,"./cache":4,"./error-reporting":5,"./file-manager":6,"./image-size":7,"./log-listener":9,"./utils":10}],9:[function(e,t,n){t.exports=function(e,t){t.logLevel="undefined"!=typeof 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 n=0;n<t.loggers.length;n++)e.logger.addListener(t.loggers[n])}},{}],10:[function(e,t,n){t.exports={extractId:function(e){return e.replace(/^[a-z-]+:\/+?[^\/]+/,"").replace(/[\?\&]livereload=\w+/,"").replace(/^\//,"").replace(/\.[a-zA-Z]+$/,"").replace(/[^\.\w-]+/g,"-").replace(/\./g,":")},addDataAttr:function(e,t){for(var n in t.dataset)if(t.dataset.hasOwnProperty(n))if("env"===n||"dumpLineNumbers"===n||"rootpath"===n||"errorReporting"===n)e[n]=t.dataset[n];else try{e[n]=JSON.parse(t.dataset[n])}catch(e){}}}},{}],11:[function(e,t,n){var i={};t.exports=i;var r=function(e,t,n){if(e)for(var i=0;i<n.length;i++)e.hasOwnProperty(n[i])&&(t[n[i]]=e[n[i]])},o=["paths","relativeUrls","rootpath","strictImports","insecure","dumpLineNumbers","compress","syncImport","chunkInput","mime","useFileCache","processImports","pluginManager"];i.Parse=function(e){r(e,this,o),"string"==typeof this.paths&&(this.paths=[this.paths])};var s=["paths","compress","ieCompat","strictMath","strictUnits","sourceMap","importMultiple","urlArgs","javascriptEnabled","pluginManager","importantScope"];i.Eval=function(e,t){r(e,this,s),"string"==typeof this.paths&&(this.paths=[this.paths]),this.frames=t||[],this.importantScope=this.importantScope||[]},i.Eval.prototype.inParenthesis=function(){this.parensStack||(this.parensStack=[]),this.parensStack.push(!0)},i.Eval.prototype.outOfParenthesis=function(){this.parensStack.pop()},i.Eval.prototype.isMathOn=function(){return!this.strictMath||this.parensStack&&this.parensStack.length},i.Eval.prototype.isPathRelative=function(e){return!/^(?:[a-z-]+:|\/|#)/i.test(e)},i.Eval.prototype.normalizePath=function(e){var t,n=e.split("/").reverse();for(e=[];0!==n.length;)switch(t=n.pop()){case".":break;case"..":0===e.length||".."===e[e.length-1]?e.push(t):e.pop();break;default:e.push(t)}return e.join("/")}},{}],12:[function(e,t,n){t.exports={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"}},{}],13:[function(e,t,n){t.exports={colors:e("./colors"),unitConversions:e("./unit-conversions")}},{"./colors":12,"./unit-conversions":14}],14:[function(e,t,n){t.exports={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:.0025,turn:1}}},{}],15:[function(e,t,n){var i=function(){};i.prototype.getPath=function(e){var t=e.lastIndexOf("?");return t>0&&(e=e.slice(0,t)),t=e.lastIndexOf("/"),t<0&&(t=e.lastIndexOf("\\")),t<0?"":e.slice(0,t+1)},i.prototype.tryAppendExtension=function(e,t){return/(\.[a-z]*$)|([\?;].*)$/.test(e)?e:e+t},i.prototype.tryAppendLessExtension=function(e){return this.tryAppendExtension(e,".less")},i.prototype.supportsSync=function(){return!1},i.prototype.alwaysMakePathsAbsolute=function(){return!1},i.prototype.isPathAbsolute=function(e){return/^(?:[a-z-]+:|\/|\\|#)/i.test(e)},i.prototype.join=function(e,t){return e?e+t:t},i.prototype.pathDiff=function(e,t){var n,i,r,o,s=this.extractUrlParts(e),a=this.extractUrlParts(t),l="";if(s.hostPart!==a.hostPart)return"";for(i=Math.max(a.directories.length,s.directories.length),n=0;n<i&&a.directories[n]===s.directories[n];n++);for(o=a.directories.slice(n),r=s.directories.slice(n),n=0;n<o.length-1;n++)l+="../";for(n=0;n<r.length-1;n++)l+=r[n]+"/";return l},i.prototype.extractUrlParts=function(e,t){var n,i,r=/^((?:[a-z-]+:)?\/{2}(?:[^\/\?#]*\/)|([\/\\]))?((?:[^\/\\\?#]*[\/\\])*)([^\/\\\?#]*)([#\?].*)?$/i,o=e.match(r),s={},a=[];if(!o)throw new Error("Could not parse sheet href - '"+e+"'");if(t&&(!o[1]||o[2])){if(!(i=t.match(r)))throw new Error("Could not parse page url - '"+t+"'");o[1]=o[1]||i[1]||"",o[2]||(o[3]=i[3]+o[3])}if(o[3]){for(a=o[3].replace(/\\/g,"/").split("/"),n=0;n<a.length;n++)"."===a[n]&&(a.splice(n,1),n-=1);for(n=0;n<a.length;n++)".."===a[n]&&n>0&&(a.splice(n-1,2),n-=2)}return s.hostPart=o[1],s.directories=a,s.path=(o[1]||"")+a.join("/"),s.fileUrl=s.path+(o[4]||""),s.url=s.fileUrl+(o[5]||""),s},t.exports=i},{}],16:[function(e,t,n){var i=e("../logger"),r=function(e,t){this.fileManagers=t||[],e=e||{};for(var n=["encodeBase64","mimeLookup","charsetLookup","getSourceMapGenerator"],i=[],r=i.concat(n),o=0;o<r.length;o++){var s=r[o],a=e[s];a?this[s]=a.bind(e):o<i.length&&this.warn("missing required function in environment - "+s)}};r.prototype.getFileManager=function(e,t,n,r,o){e||i.warn("getFileManager called with no filename.. Please report this issue. continuing."),null==t&&i.warn("getFileManager called with null directory.. Please report this issue. continuing.");var s=this.fileManagers;n.pluginManager&&(s=[].concat(s).concat(n.pluginManager.getFileManagers()));for(var a=s.length-1;a>=0;a--){var l=s[a];if(l[o?"supportsSync":"supports"](e,t,n,r))return l}return null},r.prototype.addFileManager=function(e){this.fileManagers.push(e)},r.prototype.clearFileManagers=function(){this.fileManagers=[]},t.exports=r},{"../logger":33}],17:[function(e,t,n){function i(e,t,n){var i,o,s,a,l=t.alpha,u=n.alpha,c=[];s=u+l*(1-u);for(var f=0;f<3;f++)i=t.rgb[f]/255,o=n.rgb[f]/255,a=e(i,o),s&&(a=(u*o+l*(i-u*(i+o-a)))/s),c[f]=255*a;return new r(c,s)}var r=e("../tree/color"),o=e("./function-registry"),s={multiply:function(e,t){return e*t},screen:function(e,t){return e+t-e*t},overlay:function(e,t){return e*=2,e<=1?s.multiply(e,t):s.screen(e-1,t)},softlight:function(e,t){var n=1,i=e;return t>.5&&(i=1,n=e>.25?Math.sqrt(e):((16*e-12)*e+4)*e),e-(1-2*t)*i*(n-e)},hardlight:function(e,t){return s.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 a in s)s.hasOwnProperty(a)&&(i[a]=i.bind(null,s[a]));o.addMultiple(i)},{"../tree/color":50,"./function-registry":22}],18:[function(e,t,n){function i(e){return Math.min(1,Math.max(0,e))}function r(e){return a.hsla(e.h,e.s,e.l,e.a)}function o(e){if(e instanceof l)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"}}function s(e,t){return e instanceof l&&e.unit.is("%")?parseFloat(e.value*t/100):o(e)}var a,l=e("../tree/dimension"),u=e("../tree/color"),c=e("../tree/quoted"),f=e("../tree/anonymous"),h=e("./function-registry");a={rgb:function(e,t,n){return a.rgba(e,t,n,1)},rgba:function(e,t,n,i){var r=[e,t,n].map(function(e){return s(e,255)});return i=o(i),new u(r,i)},hsl:function(e,t,n){return a.hsla(e,t,n,1)},hsla:function(e,t,n,r){function s(e){return e=e<0?e+1:e>1?e-1:e,6*e<1?l+(u-l)*e*6:2*e<1?u:3*e<2?l+(u-l)*(2/3-e)*6:l}var l,u;return e=o(e)%360/360,t=i(o(t)),n=i(o(n)),r=i(o(r)),u=n<=.5?n*(t+1):n+t-n*t,l=2*n-u,a.rgba(255*s(e+1/3),255*s(e),255*s(e-1/3),r)},hsv:function(e,t,n){return a.hsva(e,t,n,1)},hsva:function(e,t,n,i){e=o(e)%360/360*360,t=o(t),n=o(n),i=o(i);var r,s;r=Math.floor(e/60%6),s=e/60-r;var l=[n,n*(1-t),n*(1-s*t),n*(1-(1-s)*t)],u=[[0,3,1],[2,0,1],[1,0,3],[1,2,0],[3,1,0],[0,1,2]];return a.rgba(255*l[u[r][0]],255*l[u[r][1]],255*l[u[r][2]],i)},hue:function(e){return new l(e.toHSL().h)},saturation:function(e){return new l(100*e.toHSL().s,"%")},lightness:function(e){return new l(100*e.toHSL().l,"%")},hsvhue:function(e){return new l(e.toHSV().h)},hsvsaturation:function(e){return new l(100*e.toHSV().s,"%")},hsvvalue:function(e){return new l(100*e.toHSV().v,"%")},red:function(e){return new l(e.rgb[0])},green:function(e){return new l(e.rgb[1])},blue:function(e){return new l(e.rgb[2])},alpha:function(e){return new l(e.toHSL().a)},luma:function(e){return new l(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 l(t*e.alpha*100,"%")},saturate:function(e,t,n){if(!e.rgb)return null;var o=e.toHSL();return void 0!==n&&"relative"===n.value?o.s+=o.s*t.value/100:o.s+=t.value/100,o.s=i(o.s),r(o)},desaturate:function(e,t,n){var o=e.toHSL();return void 0!==n&&"relative"===n.value?o.s-=o.s*t.value/100:o.s-=t.value/100,o.s=i(o.s),r(o)},lighten:function(e,t,n){var o=e.toHSL();return void 0!==n&&"relative"===n.value?o.l+=o.l*t.value/100:o.l+=t.value/100,o.l=i(o.l),r(o)},darken:function(e,t,n){var o=e.toHSL();return void 0!==n&&"relative"===n.value?o.l-=o.l*t.value/100:o.l-=t.value/100,o.l=i(o.l),r(o)},fadein:function(e,t,n){var o=e.toHSL();return void 0!==n&&"relative"===n.value?o.a+=o.a*t.value/100:o.a+=t.value/100,o.a=i(o.a),r(o)},fadeout:function(e,t,n){var o=e.toHSL();return void 0!==n&&"relative"===n.value?o.a-=o.a*t.value/100:o.a-=t.value/100,o.a=i(o.a),r(o)},fade:function(e,t){var n=e.toHSL();return n.a=t.value/100,n.a=i(n.a),r(n)},spin:function(e,t){var n=e.toHSL(),i=(n.h+t.value)%360;return n.h=i<0?360+i:i,r(n)},mix:function(e,t,n){e.toHSL&&t.toHSL||(console.log(t.type),console.dir(t)),n||(n=new l(50));var i=n.value/100,r=2*i-1,o=e.toHSL().a-t.toHSL().a,s=((r*o==-1?r:(r+o)/(1+r*o))+1)/2,a=1-s,c=[e.rgb[0]*s+t.rgb[0]*a,e.rgb[1]*s+t.rgb[1]*a,e.rgb[2]*s+t.rgb[2]*a],f=e.alpha*i+t.alpha*(1-i);return new u(c,f)},greyscale:function(e){return a.desaturate(e,new l(100))},contrast:function(e,t,n,i){if(!e.rgb)return null;void 0===t&&(t=a.rgba(0,0,0,1)),void 0===n&&(n=a.rgba(255,255,255,1));var r,o,s=e.luma(),l=t.luma(),u=n.luma();return r=s>l?(s+.05)/(l+.05):(l+.05)/(s+.05),o=s>u?(s+.05)/(u+.05):(u+.05)/(s+.05),r>o?t:n},argb:function(e){return new f(e.toARGB())},color:function(e){if(e instanceof c&&/^#([a-f0-9]{6}|[a-f0-9]{3})$/i.test(e.value))return new u(e.value.slice(1));if(e instanceof u||(e=u.fromKeyword(e.value)))return e.value=undefined,e;throw{type:"Argument",message:"argument must be a color keyword or 3/6 digit hex e.g. #FFF"}},tint:function(e,t){return a.mix(a.rgb(255,255,255),e,t)},shade:function(e,t){return a.mix(a.rgb(0,0,0),e,t)}},h.addMultiple(a)},{"../tree/anonymous":46,"../tree/color":50,"../tree/dimension":56,"../tree/quoted":73,"./function-registry":22}],19:[function(e,t,n){t.exports=function(t){var n=e("../tree/quoted"),i=e("../tree/url"),r=e("./function-registry"),o=function(e,t){return new i(t,e.index,e.currentFileInfo).eval(e.context)},s=e("../logger");r.add("data-uri",function(e,r){r||(r=e,e=null);var a=e&&e.value,l=r.value,u=this.currentFileInfo,c=u.relativeUrls?u.currentDirectory:u.entryPath,f=l.indexOf("#"),h="";-1!==f&&(h=l.slice(f),l=l.slice(0,f));var p=t.getFileManager(l,c,this.context,t,!0);if(!p)return o(this,r);var d=!1;if(e)d=/;base64$/.test(a);else{if("image/svg+xml"===(a=t.mimeLookup(l)))d=!1;else{d=["US-ASCII","UTF-8"].indexOf(t.charsetLookup(a))<0}d&&(a+=";base64")}var v=p.loadFileSync(l,c,this.context,t);if(!v.contents)return s.warn("Skipped data-uri embedding of "+l+" because file not found"),o(this,r||e);var m=v.contents;if(d&&!t.encodeBase64)return o(this,r);m=d?t.encodeBase64(m):encodeURIComponent(m);var g="data:"+a+","+m+h;return g.length>=32768&&!1!==this.context.ieCompat?(s.warn("Skipped data-uri embedding of "+l+" because its size ("+g.length+" characters) exceeds IE8-safe 32768 characters!"),o(this,r||e)):new i(new n('"'+g+'"',g,!1,this.index,this.currentFileInfo),this.index,this.currentFileInfo)})}},{"../logger":33,"../tree/quoted":73,"../tree/url":80,"./function-registry":22}],20:[function(e,t,n){var i=e("../tree/keyword"),r=e("./function-registry"),o={eval:function(){var e=this.value_,t=this.error_;if(t)throw t;if(null!=e)return e?i.True:i.False},value:function(e){this.value_=e},error:function(e){this.error_=e},reset:function(){this.value_=this.error_=null}};r.add("default",o.eval.bind(o)),t.exports=o},{"../tree/keyword":65,"./function-registry":22}],21:[function(e,t,n){var i=e("../tree/expression"),r=function(e,t,n,i){this.name=e.toLowerCase(),this.index=n,this.context=t,this.currentFileInfo=i,this.func=t.frames[0].functionRegistry.get(this.name)};r.prototype.isValid=function(){return Boolean(this.func)},r.prototype.call=function(e){return Array.isArray(e)&&(e=e.filter(function(e){return"Comment"!==e.type}).map(function(e){if("Expression"===e.type){var t=e.value.filter(function(e){return"Comment"!==e.type});return 1===t.length?t[0]:new i(t)}return e})),this.func.apply(this,e)},t.exports=r},{"../tree/expression":59}],22:[function(e,t,n){function i(e){return{_data:{},add:function(e,t){e=e.toLowerCase(),this._data.hasOwnProperty(e),this._data[e]=t},addMultiple:function(e){Object.keys(e).forEach(function(t){this.add(t,e[t])}.bind(this))},get:function(t){return this._data[t]||e&&e.get(t)},inherit:function(){return i(this)}}}t.exports=i(null)},{}],23:[function(e,t,n){t.exports=function(t){var n={functionRegistry:e("./function-registry"),functionCaller:e("./function-caller")};return e("./default"),e("./color"),e("./color-blending"),e("./data-uri")(t),e("./math"),e("./number"),e("./string"),e("./svg")(t),e("./types"),n}},{"./color":18,"./color-blending":17,"./data-uri":19,"./default":20,"./function-caller":21,"./function-registry":22,"./math":25,"./number":26,"./string":27,"./svg":28,"./types":29}],24:[function(e,t,n){var i=e("../tree/dimension"),r=function(){};r._math=function(e,t,n){if(!(n instanceof i))throw{type:"Argument",message:"argument must be a number"};return null==t?t=n.unit:n=n.unify(),new i(e(parseFloat(n.value)),t)},t.exports=r},{"../tree/dimension":56}],25:[function(e,t,n){var i=e("./function-registry"),r=e("./math-helper.js"),o={ceil:null,floor:null,sqrt:null,abs:null,tan:"",sin:"",cos:"",atan:"rad",asin:"rad",acos:"rad"};for(var s in o)o.hasOwnProperty(s)&&(o[s]=r._math.bind(null,Math[s],o[s]));o.round=function(e,t){var n=void 0===t?0:t.value;return r._math(function(e){return e.toFixed(n)},null,e)},i.addMultiple(o)},{"./function-registry":22,"./math-helper.js":24}],26:[function(e,t,n){var i=e("../tree/dimension"),r=e("../tree/anonymous"),o=e("./function-registry"),s=e("./math-helper.js"),a=function(e,t){switch(t=Array.prototype.slice.call(t),t.length){case 0:throw{type:"Argument",message:"one or more arguments required"}}var n,o,s,a,l,u,c,f,h=[],p={};for(n=0;n<t.length;n++)if((s=t[n])instanceof i)if(a=""===s.unit.toString()&&f!==undefined?new i(s.value,f).unify():s.unify(),u=""===a.unit.toString()&&c!==undefined?c:a.unit.toString(),c=""!==u&&c===undefined||""!==u&&""===h[0].unify().unit.toString()?u:c,f=""!==u&&f===undefined?s.unit.toString():f,(o=p[""]!==undefined&&""!==u&&u===c?p[""]:p[u])!==undefined)l=""===h[o].unit.toString()&&f!==undefined?new i(h[o].value,f).unify():h[o].unify(),(e&&a.value<l.value||!e&&a.value>l.value)&&(h[o]=s);else{if(c!==undefined&&u!==c)throw{type:"Argument",message:"incompatible types"};p[u]=h.length,h.push(s)}else Array.isArray(t[n].value)&&Array.prototype.push.apply(t,Array.prototype.slice.call(t[n].value));return 1==h.length?h[0]:(t=h.map(function(e){return e.toCSS(this.context)}).join(this.context.compress?",":", "),new r((e?"min":"max")+"("+t+")"))};o.addMultiple({min:function(){return a(!0,arguments)},max:function(){return a(!1,arguments)},convert:function(e,t){return e.convertTo(t.value)},pi:function(){return new i(Math.PI)},mod:function(e,t){return new i(e.value%t.value,e.unit)},pow:function(e,t){if("number"==typeof e&&"number"==typeof t)e=new i(e),t=new i(t);else if(!(e instanceof i&&t instanceof i))throw{type:"Argument",message:"arguments must be numbers"};return new i(Math.pow(e.value,t.value),e.unit)},percentage:function(e){return s._math(function(e){return 100*e},"%",e)}})},{"../tree/anonymous":46,"../tree/dimension":56,"./function-registry":22,"./math-helper.js":24}],27:[function(e,t,n){var i=e("../tree/quoted"),r=e("../tree/anonymous"),o=e("../tree/javascript");e("./function-registry").addMultiple({e:function(e){return new r(e instanceof o?e.evaluated:e.value)},escape:function(e){return new r(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,n,r){var o=e.value;return n="Quoted"===n.type?n.value:n.toCSS(),o=o.replace(new RegExp(t.value,r?r.value:""),n),new i(e.quote||"",o,e.escaped)},"%":function(e){for(var t=Array.prototype.slice.call(arguments,1),n=e.value,r=0;r<t.length;r++)n=n.replace(/%[sda]/i,function(e){var n="Quoted"===t[r].type&&e.match(/s/i)?t[r].value:t[r].toCSS();return e.match(/[A-Z]$/)?encodeURIComponent(n):n});return n=n.replace(/%%/g,"%"),new i(e.quote||"",n,e.escaped)}})},{"../tree/anonymous":46,"../tree/javascript":63,"../tree/quoted":73,"./function-registry":22}],28:[function(e,t,n){t.exports=function(t){var n=e("../tree/dimension"),i=e("../tree/color"),r=e("../tree/expression"),o=e("../tree/quoted"),s=e("../tree/url");e("./function-registry").add("svg-gradient",function(e){function t(){throw{type:"Argument",message:"svg-gradient expects direction, start_color [start_position], [color position,]..., end_color [end_position] or direction, color list"}}var a,l,u,c,f,h,p,d,v="linear",m='x="0" y="0" width="1" height="1"',g={compress:!1},y=e.toCSS(g);switch(2==arguments.length?(arguments[1].value.length<2&&t(),a=arguments[1].value):arguments.length<3?t():a=Array.prototype.slice.call(arguments,1),y){case"to bottom":l='x1="0%" y1="0%" x2="0%" y2="100%"';break;case"to right":l='x1="0%" y1="0%" x2="100%" y2="0%"';break;case"to bottom right":l='x1="0%" y1="0%" x2="100%" y2="100%"';break;case"to top right":l='x1="0%" y1="100%" x2="100%" y2="0%"';break;case"ellipse":case"ellipse at center":v="radial",l='cx="50%" cy="50%" r="75%"',m='x="-50" y="-50" width="101" height="101"';break;default:throw{type:"Argument",message:"svg-gradient direction must be 'to bottom', 'to right', 'to bottom right', 'to top right' or 'ellipse at center'"}}for(u='<?xml version="1.0" ?><svg xmlns="http://www.w3.org/2000/svg" version="1.1" width="100%" height="100%" viewBox="0 0 1 1" preserveAspectRatio="none"><'+v+'Gradient id="gradient" gradientUnits="userSpaceOnUse" '+l+">",c=0;c<a.length;c+=1)a[c]instanceof r?(f=a[c].value[0],h=a[c].value[1]):(f=a[c],h=undefined),f instanceof i&&((0===c||c+1===a.length)&&h===undefined||h instanceof n)||t(),p=h?h.toCSS(g):0===c?"0%":"100%",d=f.alpha,u+='<stop offset="'+p+'" stop-color="'+f.toRGB()+'"'+(d<1?' stop-opacity="'+d+'"':"")+"/>";return u+="</"+v+"Gradient><rect "+m+' fill="url(#gradient)" /></svg>',u=encodeURIComponent(u),u="data:image/svg+xml,"+u,new s(new o("'"+u+"'",u,!1,this.index,this.currentFileInfo),this.index,this.currentFileInfo)})}},{"../tree/color":50,"../tree/dimension":56,"../tree/expression":59,"../tree/quoted":73,"../tree/url":80,"./function-registry":22}],29:[function(e,t,n){var i=e("../tree/keyword"),r=e("../tree/detached-ruleset"),o=e("../tree/dimension"),s=e("../tree/color"),a=e("../tree/quoted"),l=e("../tree/anonymous"),u=e("../tree/url"),c=e("../tree/operation"),f=e("./function-registry"),h=function(e,t){return e instanceof t?i.True:i.False},p=function(e,t){if(t===undefined)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 o&&e.unit.is(t)?i.True:i.False},d=function(e){return Array.isArray(e.value)?e.value:Array(e)};f.addMultiple({isruleset:function(e){return h(e,r)},iscolor:function(e){return h(e,s)},isnumber:function(e){return h(e,o)},isstring:function(e){return h(e,a)},iskeyword:function(e){return h(e,i)},isurl:function(e){return h(e,u)},ispixel:function(e){return p(e,"px")},ispercentage:function(e){return p(e,"%")},isem:function(e){return p(e,"em")},isunit:p,unit:function(e,t){if(!(e instanceof o))throw{type:"Argument",message:"the first argument to unit must be a number"+(e instanceof c?". Have you forgotten parenthesis?":"")};return t=t?t instanceof i?t.value:t.toCSS():"",new o(e.value,t)},"get-unit":function(e){return new l(e.unit)},extract:function(e,t){return t=t.value-1,d(e)[t]},length:function(e){return new o(d(e).length)}})},{"../tree/anonymous":46,"../tree/color":50,"../tree/detached-ruleset":55,"../tree/dimension":56,"../tree/keyword":65,"../tree/operation":71,"../tree/quoted":73,"../tree/url":80,"./function-registry":22}],30:[function(e,t,n){var i=e("./contexts"),r=e("./parser/parser"),o=e("./plugins/function-importer");t.exports=function(e){var t=function(e,t){this.rootFilename=t.filename,this.paths=e.paths||[],this.contents={},this.contentsIgnoredChars={},this.mime=e.mime,this.error=null,this.context=e,this.queue=[],this.files={}};return t.prototype.push=function(t,n,s,a,l){var u=this;this.queue.push(t);var c=function(e,n,i){u.queue.splice(u.queue.indexOf(t),1);var r=i===u.rootFilename;a.optional&&e?l(null,{rules:[]},!1,null):(u.files[i]=n,e&&!u.error&&(u.error=e),l(e,n,r,i))},f={relativeUrls:this.context.relativeUrls,entryPath:s.entryPath,rootpath:s.rootpath,rootFilename:s.rootFilename},h=e.getFileManager(t,s.currentDirectory,this.context,e);if(!h)return void c({message:"Could not find a file-manager for "+t});n&&(t=h.tryAppendExtension(t,a.plugin?".js":".less"));var p=function(e){var t=e.filename,n=e.contents.replace(/^\uFEFF/,"");f.currentDirectory=h.getPath(t),f.relativeUrls&&(f.rootpath=h.join(u.context.rootpath||"",h.pathDiff(f.currentDirectory,f.entryPath)),!h.isPathAbsolute(f.rootpath)&&h.alwaysMakePathsAbsolute()&&(f.rootpath=h.join(f.entryPath,f.rootpath))),f.filename=t;var l=new i.Parse(u.context);l.processImports=!1,u.contents[t]=n,(s.reference||a.reference)&&(f.reference=!0),a.plugin?new o(l,f).eval(n,function(e,n){c(e,n,t)}):a.inline?c(null,n,t):new r(l,u,f).parse(n,function(e,n){c(e,n,t)})},d=h.loadFile(t,s.currentDirectory,this.context,e,function(e,t){e?c(e):p(t)});d&&d.then(p,c)},t}},{"./contexts":11,"./parser/parser":38,"./plugins/function-importer":40}],31:[function(e,t,n){t.exports=function(t,n){var i,r,o,s,a;return{version:[2,7,1],data:e("./data"),tree:e("./tree"),Environment:a=e("./environment/environment"),AbstractFileManager:e("./environment/abstract-file-manager"),environment:t=new a(t,n),visitors:e("./visitors"),Parser:e("./parser/parser"),functions:e("./functions")(t),contexts:e("./contexts"),SourceMapOutput:i=e("./source-map-output")(t),SourceMapBuilder:r=e("./source-map-builder")(i,t),ParseTree:o=e("./parse-tree")(r),ImportManager:s=e("./import-manager")(t),render:e("./render")(t,o,s),parse:e("./parse")(t,o,s),LessError:e("./less-error"),transformTree:e("./transform-tree"),utils:e("./utils"),PluginManager:e("./plugin-manager"),logger:e("./logger")}}},{"./contexts":11,"./data":13,"./environment/abstract-file-manager":15,"./environment/environment":16,"./functions":23,"./import-manager":30,"./less-error":32,"./logger":33,"./parse":35,"./parse-tree":34,"./parser/parser":38,"./plugin-manager":39,"./render":41,"./source-map-builder":42,"./source-map-output":43,"./transform-tree":44,"./tree":62,"./utils":83,"./visitors":87}],32:[function(e,t,n){var i=e("./utils"),r=t.exports=function(e,t,n){Error.call(this);var r=e.filename||n;if(t&&r){var o=t.contents[r],s=i.getLocation(e.index,o),a=s.line,l=s.column,u=e.call&&i.getLocation(e.call,o).line,c=o.split("\n");this.type=e.type||"Syntax",this.filename=r,this.index=e.index,this.line="number"==typeof a?a+1:null,this.callLine=u+1,this.callExtract=c[u],this.column=l,this.extract=[c[a-1],c[a],c[a+1]]}this.message=e.message,this.stack=e.stack};if("undefined"==typeof Object.create){var o=function(){};o.prototype=Error.prototype,r.prototype=new o}else r.prototype=Object.create(Error.prototype);r.prototype.constructor=r},{"./utils":83}],33:[function(e,t,n){t.exports={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 n=0;n<this._listeners.length;n++){var i=this._listeners[n][e];i&&i(t)}},_listeners:[]}},{}],34:[function(e,t,n){var i=e("./less-error"),r=e("./transform-tree"),o=e("./logger");t.exports=function(e){var t=function(e,t){this.root=e,this.imports=t};return t.prototype.toCSS=function(t){var n,s,a={};try{n=r(this.root,t)}catch(e){throw new i(e,this.imports)}try{var l=Boolean(t.compress);l&&o.warn("The compress option has been deprecated. We recommend you use a dedicated css minifier, for instance see less-plugin-clean-css.");var u={compress:l,dumpLineNumbers:t.dumpLineNumbers,strictUnits:Boolean(t.strictUnits),numPrecision:8};t.sourceMap?(s=new e(t.sourceMap),a.css=s.toCSS(n,u,this.imports)):a.css=n.toCSS(u)}catch(e){throw new i(e,this.imports)}if(t.pluginManager)for(var c=t.pluginManager.getPostProcessors(),f=0;f<c.length;f++)a.css=c[f].process(a.css,{sourceMap:s,options:t,imports:this.imports});t.sourceMap&&(a.map=s.getExternalSourceMap()),a.imports=[];for(var h in this.imports.files)this.imports.files.hasOwnProperty(h)&&h!==this.imports.rootFilename&&a.imports.push(h);return a},t}},{"./less-error":32,"./logger":33,"./transform-tree":44}],35:[function(e,t,n){var i,r=e("./contexts"),o=e("./parser/parser"),s=e("./plugin-manager");t.exports=function(t,n,a){var l=function(t,n,u){if(n=n||{},"function"==typeof n&&(u=n,n={}),!u){i||(i="undefined"==typeof Promise?e("promise"):Promise);var c=this;return new i(function(e,i){l.call(c,t,n,function(t,n){t?i(t):e(n)})})}var f,h,p=new s(this);if(p.addPlugins(n.plugins),n.pluginManager=p,f=new r.Parse(n),n.rootFileInfo)h=n.rootFileInfo;else{var d=n.filename||"input",v=d.replace(/[^\/\\]*$/,"");h={filename:d,relativeUrls:f.relativeUrls,rootpath:f.rootpath||"",currentDirectory:v,entryPath:v,rootFilename:d},h.rootpath&&"/"!==h.rootpath.slice(-1)&&(h.rootpath+="/")}var m=new a(f,h);new o(f,m,h).parse(t,function(e,t){if(e)return u(e);u(null,t,m,n)},n)};return l}},{"./contexts":11,"./parser/parser":38,"./plugin-manager":39,promise:undefined}],36:[function(e,t,n){t.exports=function(e,t){function n(t){var n=a-m;n<512&&!t||!n||(v.push(e.slice(m,a+1)),m=a+1)}var i,r,o,s,a,l,u,c,f,h=e.length,p=0,d=0,v=[],m=0;for(a=0;a<h;a++)if(!((u=e.charCodeAt(a))>=97&&u<=122||u<34))switch(u){case 40:d++,r=a;continue;case 41:if(--d<0)return t("missing opening `(`",a);continue;case 59:d||n();continue;case 123:p++,i=a;continue;case 125:if(--p<0)return t("missing opening `{`",a);p||d||n();continue;case 92:if(a<h-1){a++;continue}return t("unescaped `\\`",a);case 34:case 39:case 96:for(f=0,l=a,a+=1;a<h;a++)if(!((c=e.charCodeAt(a))>96)){if(c==u){f=1;break}if(92==c){if(a==h-1)return t("unescaped `\\`",a);a++}}if(f)continue;return t("unmatched `"+String.fromCharCode(u)+"`",l);case 47:if(d||a==h-1)continue;if(47==(c=e.charCodeAt(a+1)))for(a+=2;a<h&&(!((c=e.charCodeAt(a))<=13)||10!=c&&13!=c);a++);else if(42==c){for(o=l=a,a+=2;a<h-1&&(c=e.charCodeAt(a),125==c&&(s=a),42!=c||47!=e.charCodeAt(a+1));a++);if(a==h-1)return t("missing closing `*/`",l);a++}continue;case 42:if(a<h-1&&47==e.charCodeAt(a+1))return t("unmatched `/*`",a);continue}return 0!==p?o>i&&s>o?t("missing closing `}` or `*/`",i):t("missing closing `}`",i):0!==d?t("missing closing `)`",r):(n(!0),v)}},{}],37:[function(e,t,n){var i=e("./chunker");t.exports=function(){function e(i){for(var r,o,u,m=c.i,g=n,y=c.i-l,b=c.i+a.length-y,w=c.i+=i,x=t;c.i<b;c.i++){if(r=x.charCodeAt(c.i),c.autoCommentAbsorb&&r===v){if("/"===(o=x.charAt(c.i+1))){u={index:c.i,isLineComment:!0};var S=x.indexOf("\n",c.i+2);S<0&&(S=b),c.i=S,u.text=x.substr(u.index,c.i-u.index),c.commentStore.push(u);continue}if("*"===o){var C=x.indexOf("*/",c.i+2);if(C>=0){u={index:c.i,text:x.substr(c.i,C+2-c.i),isLineComment:!1},c.i+=u.text.length-1,c.commentStore.push(u);continue}}break}if(r!==f&&r!==p&&r!==h&&r!==d)break}if(a=a.slice(i+c.i-w+y),l=c.i,!a.length){if(n<s.length-1)return a=s[++n],e(0),!0;c.finished=!0}return m!==c.i||g!==n}var t,n,r,o,s,a,l,u=[],c={},f=32,h=9,p=10,d=13,v=47;return c.save=function(){l=c.i,u.push({current:a,i:c.i,j:n})},c.restore=function(e){(c.i>r||c.i===r&&e&&!o)&&(r=c.i,o=e);var t=u.pop();a=t.current,l=c.i=t.i,n=t.j},c.forget=function(){u.pop()},c.isWhitespace=function(e){var n=c.i+(e||0),i=t.charCodeAt(n);return i===f||i===d||i===h||i===p},c.$re=function(t){c.i>l&&(a=a.slice(c.i-l),l=c.i);var n=t.exec(a);return n?(e(n[0].length),"string"==typeof n?n:1===n.length?n[0]:n):null},c.$char=function(n){return t.charAt(c.i)!==n?null:(e(1),n)},c.$str=function(n){for(var i=n.length,r=0;r<i;r++)if(t.charAt(c.i+r)!==n.charAt(r))return null;return e(i),n},c.$quoted=function(){var n=t.charAt(c.i);if("'"===n||'"'===n){for(var i=t.length,r=c.i,o=1;o+r<i;o++){switch(t.charAt(o+r)){case"\\":o++;continue;case"\r":case"\n":break;case n:var s=t.substr(r,o+1);return e(o+1),s}}return null}},c.autoCommentAbsorb=!0,c.commentStore=[],c.finished=!1,c.peek=function(e){if("string"==typeof e){for(var n=0;n<e.length;n++)if(t.charAt(c.i+n)!==e.charAt(n))return!1;return!0}return e.test(a)},c.peekChar=function(e){return t.charAt(c.i)===e},c.currentChar=function(){return t.charAt(c.i)},c.getInput=function(){return t},c.peekNotNumeric=function(){var e=t.charCodeAt(c.i);return e>57||e<43||e===v||44===e},c.start=function(o,u,f){t=o,c.i=n=l=r=0,s=u?i(o,f):[o],a=s[0],e(0)},c.end=function(){var e,n=c.i>=t.length;return c.i<r&&(e=o,c.i=r),{isFinished:n,furthest:c.i,furthestPossibleErrorMessage:e,furthestReachedEnd:c.i>=t.length-1,furthestChar:t[c.i]}},c}},{"./chunker":36}],38:[function(e,t,n){var i=e("../less-error"),r=e("../tree"),o=e("../visitors"),s=e("./parser-input"),a=e("../utils"),l=function e(t,n,l){function u(e,t){throw new i({index:d.i,filename:l.filename,type:t||"Syntax",message:e},n)}function c(e,t,n){var i=e instanceof Function?e.call(p):d.$re(e);if(i)return i;u(t||("string"==typeof e?"expected '"+e+"' got '"+d.currentChar()+"'":"unexpected token"))}function f(e,t){if(d.$char(e))return e;u(t||"expected '"+e+"' got '"+d.currentChar()+"'")}function h(e){var t=l.filename;return{lineNumber:a.getLocation(e,d.getInput()).line+1,fileName:t}}var p,d=s();return{parse:function(s,a,u){var c,f,h,p,v=null,m="";if(f=u&&u.globalVars?e.serializeVars(u.globalVars)+"\n":"",h=u&&u.modifyVars?"\n"+e.serializeVars(u.modifyVars):"",t.pluginManager)for(var g=t.pluginManager.getPreProcessors(),y=0;y<g.length;y++)s=g[y].process(s,{context:t,imports:n,fileInfo:l});(f||u&&u.banner)&&(m=(u&&u.banner?u.banner:"")+f,p=n.contentsIgnoredChars,p[l.filename]=p[l.filename]||0,p[l.filename]+=m.length),s=s.replace(/\r\n?/g,"\n"),s=m+s.replace(/^\uFEFF/,"")+h,n.contents[l.filename]=s;try{d.start(s,t.chunkInput,function(e,t){throw new i({index:t,type:"Parse",message:e,filename:l.filename},n)}),c=new r.Ruleset(null,this.parsers.primary()),c.root=!0,c.firstRoot=!0}catch(e){return a(new i(e,n,l.filename))}var b=d.end();if(!b.isFinished){var w=b.furthestPossibleErrorMessage;w||(w="Unrecognised input","}"===b.furthestChar?w+=". Possibly missing opening '{'":")"===b.furthestChar?w+=". Possibly missing opening '('":b.furthestReachedEnd&&(w+=". Possibly missing something")),v=new i({type:"Parse",message:w,index:b.furthest,filename:l.filename},n)}var x=function(e){return e=v||e||n.error,e?(e instanceof i||(e=new i(e,n,l.filename)),a(e)):a(null,c)};if(!1===t.processImports)return x();new o.ImportVisitor(n,x).run(c)},parsers:p={primary:function(){for(var e,t=this.mixin,n=[];;){for(;;){if(!(e=this.comment()))break;n.push(e)}if(d.finished)break;if(d.peek("}"))break;if(e=this.extendRule())n=n.concat(e);else if(e=t.definition()||this.rule()||this.ruleset()||t.call()||this.rulesetCall()||this.entities.call()||this.directive())n.push(e);else{for(var i=!1;d.$char(";");)i=!0;if(!i)break}}return n},comment:function(){if(d.commentStore.length){var e=d.commentStore.shift();return new r.Comment(e.text,e.isLineComment,e.index,l)}},entities:{quoted:function(){var e,t=d.i,n=!1;return d.save(),d.$char("~")&&(n=!0),(e=d.$quoted())?(d.forget(),new r.Quoted(e.charAt(0),e.substr(1,e.length-2),n,t,l)):void d.restore()},keyword:function(){var e=d.$char("%")||d.$re(/^[_A-Za-z-][_A-Za-z0-9-]*/);if(e)return r.Color.fromKeyword(e)||new r.Keyword(e)},call:function(){var e,t,n,i=d.i;if(!d.peek(/^url\(/i))return d.save(),(e=d.$re(/^([\w-]+|%|progid:[\w\.]+)\(/))?(e=e[1],"alpha"===e.toLowerCase()&&(n=p.alpha())?(d.forget(),n):(t=this.arguments(),d.$char(")")?(d.forget(),new r.Call(e,t,i,l)):void d.restore("Could not parse call arguments or missing ')'"))):void d.forget()},arguments:function(){var e,t,n,i=[],o=[],s=[];for(d.save();;){if(!(n=p.detachedRuleset()||this.assignment()||p.expression()))break;t=n,n.value&&1==n.value.length&&(t=n.value[0]),t&&s.push(t),o.push(t),d.$char(",")||(d.$char(";")||e)&&(e=!0,s.length>1&&(t=new r.Value(s)),i.push(t),s=[])}return d.forget(),e?i:o},literal:function(){return this.dimension()||this.color()||this.quoted()||this.unicodeDescriptor()},assignment:function(){var e,t;return d.save(),(e=d.$re(/^\w+(?=\s?=)/i))&&d.$char("=")&&(t=p.entity())?(d.forget(),new r.Assignment(e,t)):void d.restore()},url:function(){var e,t=d.i;return d.autoCommentAbsorb=!1,d.$str("url(")?(e=this.quoted()||this.variable()||d.$re(/^(?:(?:\\[\(\)'"])|[^\(\)'"])+/)||"",d.autoCommentAbsorb=!0,f(")"),new r.URL(null!=e.value||e instanceof r.Variable?e:new r.Anonymous(e),t,l)):void(d.autoCommentAbsorb=!0)},variable:function(){var e,t=d.i;if("@"===d.currentChar()&&(e=d.$re(/^@@?[\w-]+/)))return new r.Variable(e,t,l)},variableCurly:function(){var e,t=d.i;if("@"===d.currentChar()&&(e=d.$re(/^@\{([\w-]+)\}/)))return new r.Variable("@"+e[1],t,l)},color:function(){var e;if("#"===d.currentChar()&&(e=d.$re(/^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})/))){var t=e.input.match(/^#([\w]+).*/);return t=t[1],t.match(/^[A-Fa-f0-9]+$/)||u("Invalid HEX color code"),new r.Color(e[1],undefined,"#"+t)}},colorKeyword:function(){d.save();var e=d.autoCommentAbsorb;d.autoCommentAbsorb=!1;var t=d.$re(/^[_A-Za-z-][_A-Za-z0-9-]+/);if(d.autoCommentAbsorb=e,!t)return void d.forget();d.restore();var n=r.Color.fromKeyword(t);return n?(d.$str(t),n):void 0},dimension:function(){if(!d.peekNotNumeric()){var e=d.$re(/^([+-]?\d*\.?\d+)(%|[a-z_]+)?/i);return e?new r.Dimension(e[1],e[2]):void 0}},unicodeDescriptor:function(){var e;if(e=d.$re(/^U\+[0-9a-fA-F?]+(\-[0-9a-fA-F?]+)?/))return new r.UnicodeDescriptor(e[0])},javascript:function(){var e,t=d.i;d.save();var n=d.$char("~");return d.$char("`")?(e=d.$re(/^[^`]*`/))?(d.forget(),new r.JavaScript(e.substr(0,e.length-1),Boolean(n),t,l)):void d.restore("invalid javascript definition"):void d.restore()}},variable:function(){var e;if("@"===d.currentChar()&&(e=d.$re(/^(@[\w-]+)\s*:/)))return e[1]},rulesetCall:function(){var e;if("@"===d.currentChar()&&(e=d.$re(/^(@[\w-]+)\(\s*\)\s*;/)))return new r.RulesetCall(e[1])},extend:function(e){var t,n,i,o,s,a=d.i;if(d.$str(e?"&:extend(":":extend(")){do{for(i=null,t=null;!(i=d.$re(/^(all)(?=\s*(\)|,))/))&&(n=this.element());)t?t.push(n):t=[n];i=i&&i[1],t||u("Missing target selector for :extend()."),s=new r.Extend(new r.Selector(t),i,a,l),o?o.push(s):o=[s]}while(d.$char(","));return c(/^\)/),e&&c(/^;/),o}},extendRule:function(){return this.extend(!0)},mixin:{call:function(){var e,t,n,i,o,s,a=d.currentChar(),u=!1,c=d.i;if("."===a||"#"===a){for(d.save();;){if(e=d.i,!(i=d.$re(/^[#.](?:[\w-]|\\(?:[A-Fa-f0-9]{1,6} ?|[^A-Fa-f0-9]))+/)))break;n=new r.Element(o,i,e,l),t?t.push(n):t=[n],o=d.$char(">")}if(t&&(d.$char("(")&&(s=this.args(!0).args,f(")")),p.important()&&(u=!0),p.end()))return d.forget(),new r.mixin.Call(t,s,c,l,u);d.restore()}},args:function(e){var t,n,i,o,s,a,l,c=p.entities,f={args:null,variadic:!1},h=[],v=[],m=[];for(d.save();;){if(e)a=p.detachedRuleset()||p.expression();else{if(d.commentStore.length=0,d.$str("...")){f.variadic=!0,d.$char(";")&&!t&&(t=!0),(t?v:m).push({variadic:!0});break}a=c.variable()||c.literal()||c.keyword()}if(!a)break;o=null,a.throwAwayComments&&a.throwAwayComments(),s=a;var g=null;if(e?a.value&&1==a.value.length&&(g=a.value[0]):g=a,g&&g instanceof r.Variable)if(d.$char(":")){if(h.length>0&&(t&&u("Cannot mix ; and , as delimiter types"),n=!0),!(s=p.detachedRuleset()||p.expression())){if(!e)return d.restore(),f.args=[],f;u("could not understand value for named argument")}o=i=g.name}else if(d.$str("...")){if(!e){f.variadic=!0,d.$char(";")&&!t&&(t=!0),(t?v:m).push({name:a.name,variadic:!0});break}l=!0}else e||(i=o=g.name,s=null);s&&h.push(s),m.push({name:o,value:s,expand:l}),d.$char(",")||(d.$char(";")||t)&&(n&&u("Cannot mix ; and , as delimiter types"),t=!0,h.length>1&&(s=new r.Value(h)),v.push({name:i,value:s,expand:l}),i=null,h=[],n=!1)}return d.forget(),f.args=t?v:m,f},definition:function(){var e,t,n,i,o=[],s=!1;if(!("."!==d.currentChar()&&"#"!==d.currentChar()||d.peek(/^[^{]*\}/)))if(d.save(),t=d.$re(/^([#.](?:[\w-]|\\(?:[A-Fa-f0-9]{1,6} ?|[^A-Fa-f0-9]))+)\s*\(/)){e=t[1];var a=this.args(!1);if(o=a.args,s=a.variadic,!d.$char(")"))return void d.restore("Missing closing ')'");if(d.commentStore.length=0,d.$str("when")&&(i=c(p.conditions,"expected condition")),n=p.block())return d.forget(),new r.mixin.Definition(e,o,n,i,s);d.restore()}else d.forget()}},entity:function(){var e=this.entities;return this.comment()||e.literal()||e.variable()||e.url()||e.call()||e.keyword()||e.javascript()},end:function(){return d.$char(";")||d.peek("}")},alpha:function(){var e;if(d.$re(/^opacity=/i))return e=d.$re(/^\d+/),e||(e=c(this.entities.variable,"Could not parse alpha")),f(")"),new r.Alpha(e)},element:function(){var e,t,n,i=d.i;if(t=this.combinator(),e=d.$re(/^(?:\d+\.\d+|\d+)%/)||d.$re(/^(?:[.#]?|:*)(?:[\w-]|[^\x00-\x9f]|\\(?:[A-Fa-f0-9]{1,6} ?|[^A-Fa-f0-9]))+/)||d.$char("*")||d.$char("&")||this.attribute()||d.$re(/^\([^&()@]+\)/)||d.$re(/^[\.#:](?=@)/)||this.entities.variableCurly(),e||(d.save(),d.$char("(")?(n=this.selector())&&d.$char(")")?(e=new r.Paren(n),d.forget()):d.restore("Missing closing ')'"):d.forget()),e)return new r.Element(t,e,i,l)},combinator:function(){var e=d.currentChar();if("/"===e){d.save();var t=d.$re(/^\/[a-z]+\//i);if(t)return d.forget(),new r.Combinator(t);d.restore()}if(">"===e||"+"===e||"~"===e||"|"===e||"^"===e){for(d.i++,"^"===e&&"^"===d.currentChar()&&(e="^^",d.i++);d.isWhitespace();)d.i++;return new r.Combinator(e)}return d.isWhitespace(-1)?new r.Combinator(" "):new r.Combinator(null)},lessSelector:function(){return this.selector(!0)},selector:function(e){for(var t,n,i,o,s,a,f,h=d.i;(e&&(n=this.extend())||e&&(a=d.$str("when"))||(o=this.element()))&&(a?f=c(this.conditions,"expected condition"):f?u("CSS guard can only be used at the end of selector"):n?s=s?s.concat(n):n:(s&&u("Extend can only be used at the end of selector"),i=d.currentChar(),t?t.push(o):t=[o],o=null),"{"!==i&&"}"!==i&&";"!==i&&","!==i&&")"!==i););if(t)return new r.Selector(t,s,f,h,l);s&&u("Extend must be used to extend a selector, it cannot be used on its own")},attribute:function(){if(d.$char("[")){var e,t,n,i=this.entities;return(e=i.variableCurly())||(e=c(/^(?:[_A-Za-z0-9-\*]*\|)?(?:[_A-Za-z0-9-]|\\.)+/)),n=d.$re(/^[|~*$^]?=/),n&&(t=i.quoted()||d.$re(/^[0-9]+%/)||d.$re(/^[\w-]+/)||i.variableCurly()),f("]"),new r.Attribute(e,n,t)}},block:function(){var e;if(d.$char("{")&&(e=this.primary())&&d.$char("}"))return e},blockRuleset:function(){var e=this.block();return e&&(e=new r.Ruleset(null,e)),e},detachedRuleset:function(){var e=this.blockRuleset();if(e)return new r.DetachedRuleset(e)},ruleset:function(){var e,n,i,o;for(d.save(),t.dumpLineNumbers&&(o=h(d.i));;){if(!(n=this.lessSelector()))break;if(e?e.push(n):e=[n],d.commentStore.length=0,n.condition&&e.length>1&&u("Guards are only currently allowed on a single selector."),!d.$char(","))break;n.condition&&u("Guards are only currently allowed on a single selector."),d.commentStore.length=0}if(e&&(i=this.block())){d.forget();var s=new r.Ruleset(e,i,t.strictImports);return t.dumpLineNumbers&&(s.debugInfo=o),s}d.restore()},rule:function(e){var n,i,o,s,a,u=d.i,c=d.currentChar();if("."!==c&&"#"!==c&&"&"!==c&&":"!==c)if(d.save(),n=this.variable()||this.ruleProperty()){if(a="string"==typeof n,a&&(i=this.detachedRuleset()),d.commentStore.length=0,!i){s=!a&&n.length>1&&n.pop().value;var f=!e&&(t.compress||a);if(f&&(i=this.value()),!i&&(i=this.anonymousValue()))return d.forget(),new r.Rule(n,i,!1,s,u,l);f||i||(i=this.value()),o=this.important()}if(i&&this.end())return d.forget(),new r.Rule(n,i,o,s,u,l);if(d.restore(),i&&!e)return this.rule(!0)}else d.forget()},anonymousValue:function(){var e=d.$re(/^([^@+\/'"*`(;{}-]*);/);if(e)return new r.Anonymous(e[1])},import:function(){var e,t,n=d.i,i=d.$re(/^@import?\s+/);if(i){var o=(i?this.importOptions():null)||{};if(e=this.entities.quoted()||this.entities.url())return t=this.mediaFeatures(),d.$char(";")||(d.i=n,u("missing semi-colon or unrecognised media features on import")),t=t&&new r.Value(t),new r.Import(e,t,o,n,l);d.i=n,u("malformed import statement")}},importOptions:function(){var e,t,n,i={};if(!d.$char("("))return null;do{if(e=this.importOption()){switch(t=e,n=!0,t){case"css":t="less",n=!1;break;case"once":t="multiple",n=!1}if(i[t]=n,!d.$char(","))break}}while(e);return f(")"),i},importOption:function(){var e=d.$re(/^(less|css|multiple|once|inline|reference|optional)/);if(e)return e[1]},mediaFeature:function(){var e,t,n=this.entities,i=[];d.save();do{e=n.keyword()||n.variable(),e?i.push(e):d.$char("(")&&(t=this.property(),e=this.value(),d.$char(")")?t&&e?i.push(new r.Paren(new r.Rule(t,e,null,null,d.i,l,!0))):e?i.push(new r.Paren(e)):u("badly formed media feature definition"):u("Missing closing ')'","Parse"))}while(e);if(d.forget(),i.length>0)return new r.Expression(i)},mediaFeatures:function(){var e,t=this.entities,n=[];do{if(e=this.mediaFeature()){if(n.push(e),!d.$char(","))break}else if((e=t.variable())&&(n.push(e),!d.$char(",")))break}while(e);return n.length>0?n:null},media:function(){var e,n,i,o,s=d.i;if(t.dumpLineNumbers&&(o=h(s)),d.save(),d.$str("@media"))return e=this.mediaFeatures(),n=this.block(),n||u("media definitions require block statements after any features"),d.forget(),i=new r.Media(n,e,s,l),t.dumpLineNumbers&&(i.debugInfo=o),i;d.restore()},plugin:function(){var e,t=d.i;if(d.$re(/^@plugin?\s+/)){var n={plugin:!0};if(e=this.entities.quoted()||this.entities.url())return d.$char(";")||(d.i=t,u("missing semi-colon on plugin")),new r.Import(e,null,n,t,l);d.i=t,u("malformed plugin statement")}},directive:function(){var e,n,i,o,s,a,c,f=d.i,p=!0,v=!0;if("@"===d.currentChar()){if(n=this["import"]()||this.plugin()||this.media())return n;if(d.save(),e=d.$re(/^@[a-z-]+/)){switch(o=e,"-"==e.charAt(1)&&e.indexOf("-",2)>0&&(o="@"+e.slice(e.indexOf("-",2)+1)),o){case"@charset":s=!0,p=!1;break;case"@namespace":a=!0,p=!1;break;case"@keyframes":case"@counter-style":s=!0;break;case"@document":case"@supports":c=!0,v=!1;break;default:c=!0}if(d.commentStore.length=0,s?(n=this.entity())||u("expected "+e+" identifier"):a?(n=this.expression())||u("expected "+e+" expression"):c&&(n=(d.$re(/^[^{;]+/)||"").trim(),p="{"==d.currentChar(),n&&(n=new r.Anonymous(n))),p&&(i=this.blockRuleset()),i||!p&&n&&d.$char(";"))return d.forget(),new r.Directive(e,n,i,f,l,t.dumpLineNumbers?h(f):null,v);d.restore("directive options not recognised")}}},value:function(){var e,t=[];do{if((e=this.expression())&&(t.push(e),!d.$char(",")))break}while(e);if(t.length>0)return new r.Value(t)},important:function(){if("!"===d.currentChar())return d.$re(/^! *important/)},sub:function(){var e,t;if(d.save(),d.$char("("))return(e=this.addition())&&d.$char(")")?(d.forget(),t=new r.Expression([e]),t.parens=!0,t):void d.restore("Expected ')'");d.restore()},multiplication:function(){var e,t,n,i,o;if(e=this.operand()){for(o=d.isWhitespace(-1);;){if(d.peek(/^\/[*\/]/))break;if(d.save(),!(n=d.$char("/")||d.$char("*"))){d.forget();break}if(!(t=this.operand())){d.restore();break}d.forget(),e.parensInOp=!0,t.parensInOp=!0,i=new r.Operation(n,[i||e,t],o),o=d.isWhitespace(-1)}return i||e}},addition:function(){var e,t,n,i,o;if(e=this.multiplication()){for(o=d.isWhitespace(-1);;){if(!(n=d.$re(/^[-+]\s+/)||!o&&(d.$char("+")||d.$char("-"))))break;if(!(t=this.multiplication()))break;e.parensInOp=!0,t.parensInOp=!0,i=new r.Operation(n,[i||e,t],o),o=d.isWhitespace(-1)}return i||e}},conditions:function(){var e,t,n,i=d.i;if(e=this.condition()){for(;;){if(!d.peek(/^,\s*(not\s*)?\(/)||!d.$char(","))break;if(!(t=this.condition()))break;n=new r.Condition("or",n||e,t,i)}return n||e}},condition:function(){var e,t,n;if(e=this.conditionAnd(this)){if(t=function(){return d.$str("or")}()){if(!(n=this.condition()))return;e=new r.Condition(t,e,n)}return e}},conditionAnd:function(){var e,t,n;if(e=function(e){return e.negatedCondition()||e.parenthesisCondition()}(this)){if(t=function(){return d.$str("and")}()){if(!(n=this.conditionAnd()))return;e=new r.Condition(t,e,n)}return e}},negatedCondition:function(){if(d.$str("not")){var e=this.parenthesisCondition();return e&&(e.negate=!e.negate),e}},parenthesisCondition:function(){var e;return d.save(),d.$str("(")?(e=function(e){var t;return d.save(),(t=e.condition())&&d.$char(")")?(d.forget(),t):void d.restore()}(this))?(d.forget(),e):(e=this.atomicCondition())?d.$char(")")?(d.forget(),e):void d.restore("expected ')' got '"+d.currentChar()+"'"):void d.restore():void d.restore()},atomicCondition:function(){var e,t,n,i,o=this.entities,s=d.i;if(e=this.addition()||o.keyword()||o.quoted())return d.$char(">")?i=d.$char("=")?">=":">":d.$char("<")?i=d.$char("=")?"<=":"<":d.$char("=")&&(i=d.$char(">")?"=>":d.$char("<")?"=<":"="),i?(t=this.addition()||o.keyword()||o.quoted(),t?n=new r.Condition(i,e,t,s,!1):u("expected expression")):n=new r.Condition("=",e,new r.Keyword("true"),s,!1),n},operand:function(){var e,t=this.entities;d.peek(/^-[@\(]/)&&(e=d.$char("-"));var n=this.sub()||t.dimension()||t.color()||t.variable()||t.call()||t.colorKeyword();return e&&(n.parensInOp=!0,n=new r.Negative(n)),n},expression:function(){var e,t,n=[];do{e=this.comment(),e?n.push(e):(e=this.addition()||this.entity())&&(n.push(e),d.peek(/^\/[\/*]/)||(t=d.$char("/"))&&n.push(new r.Anonymous(t)))}while(e);if(n.length>0)return new r.Expression(n)},property:function(){var e=d.$re(/^(\*?-?[_a-zA-Z0-9-]+)\s*:/);if(e)return e[1]},ruleProperty:function(){function e(e){var t=d.i,n=d.$re(e);if(n)return o.push(t),i.push(n[1])}var t,n,i=[],o=[];d.save();var s=d.$re(/^([_a-zA-Z0-9-]+)\s*:/);if(s)return i=[new r.Keyword(s[1])],d.forget(),i;for(e(/^(\*?)/);;)if(!e(/^((?:[\w-]+)|(?:@\{[\w-]+\}))/))break;if(i.length>1&&e(/^((?:\+_|\+)?)\s*:/)){for(d.forget(),""===i[0]&&(i.shift(),o.shift()),n=0;n<i.length;n++)t=i[n],i[n]="@"!==t.charAt(0)?new r.Keyword(t):new r.Variable("@"+t.slice(2,-1),o[n],l);return i}d.restore()}}}};l.serializeVars=function(e){var t="";for(var n in e)if(Object.hasOwnProperty.call(e,n)){var i=e[n];t+=("@"===n[0]?"":"@")+n+": "+i+(";"===String(i).slice(-1)?"":";")}return t},t.exports=l},{"../less-error":32,"../tree":62,"../utils":83,"../visitors":87,"./parser-input":37}],39:[function(e,t,n){var i=function(e){this.less=e,this.visitors=[],this.preProcessors=[],this.postProcessors=[],this.installedPlugins=[],this.fileManagers=[]};i.prototype.addPlugins=function(e){if(e)for(var t=0;t<e.length;t++)this.addPlugin(e[t])},i.prototype.addPlugin=function(e){this.installedPlugins.push(e),e.install(this.less,this)},i.prototype.addVisitor=function(e){this.visitors.push(e)},i.prototype.addPreProcessor=function(e,t){var n;for(n=0;n<this.preProcessors.length&&!(this.preProcessors[n].priority>=t);n++);this.preProcessors.splice(n,0,{preProcessor:e,priority:t})},i.prototype.addPostProcessor=function(e,t){var n;for(n=0;n<this.postProcessors.length&&!(this.postProcessors[n].priority>=t);n++);this.postProcessors.splice(n,0,{postProcessor:e,priority:t})},i.prototype.addFileManager=function(e){this.fileManagers.push(e)},i.prototype.getPreProcessors=function(){for(var e=[],t=0;t<this.preProcessors.length;t++)e.push(this.preProcessors[t].preProcessor);return e},i.prototype.getPostProcessors=function(){for(var e=[],t=0;t<this.postProcessors.length;t++)e.push(this.postProcessors[t].postProcessor);return e},i.prototype.getVisitors=function(){return this.visitors},i.prototype.getFileManagers=function(){return this.fileManagers},t.exports=i},{}],40:[function(e,t,n){var i=e("../less-error"),r=e("../tree");(t.exports=function(e,t){this.fileInfo=t}).prototype.eval=function(e,t){var n,o={};n={add:function(e,t){o[e]=t},addMultiple:function(e){Object.keys(e).forEach(function(t){o[t]=e[t]})}};try{new Function("functions","tree","fileInfo",e)(n,r,this.fileInfo)}catch(e){t(new i({message:"Plugin evaluation error: '"+e.name+": "+e.message.replace(/["]/g,"'")+"'",filename:this.fileInfo.filename}),null)}t(null,{functions:o})}},{"../less-error":32,"../tree":62}],41:[function(e,t,n){var i;t.exports=function(t,n,r){var o=function(t,r,s){if("function"==typeof r&&(s=r,r={}),!s){i||(i="undefined"==typeof Promise?e("promise"):Promise);var a=this;return new i(function(e,n){o.call(a,t,r,function(t,i){t?n(t):e(i)})})}this.parse(t,r,function(e,t,i,r){if(e)return s(e);var o;try{o=new n(t,i).toCSS(r)}catch(e){return s(e)}s(null,o)})};return o}},{promise:undefined}],42:[function(e,t,n){t.exports=function(e,t){var n=function(e){this.options=e};return n.prototype.toCSS=function(t,n,i){var r=new e({contentsIgnoredCharsMap:i.contentsIgnoredChars,rootNode:t,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}),o=r.toCSS(n);return this.sourceMap=r.sourceMap,this.sourceMapURL=r.sourceMapURL,this.options.sourceMapInputFilename&&(this.sourceMapInputFilename=r.normalizeFilename(this.options.sourceMapInputFilename)),o+this.getCSSAppendage()},n.prototype.getCSSAppendage=function(){var e=this.sourceMapURL;if(this.options.sourceMapFileInline){if(this.sourceMap===undefined)return"";e="data:application/json;base64,"+t.encodeBase64(this.sourceMap)}return e?"/*# sourceMappingURL="+e+" */":""},n.prototype.getExternalSourceMap=function(){return this.sourceMap},n.prototype.setExternalSourceMap=function(e){this.sourceMap=e},n.prototype.isInline=function(){return this.options.sourceMapFileInline},n.prototype.getSourceMapURL=function(){return this.sourceMapURL},n.prototype.getOutputFilename=function(){return this.options.sourceMapOutputFilename},n.prototype.getInputFilename=function(){return this.sourceMapInputFilename},n}},{}],43:[function(e,t,n){t.exports=function(e){var t=function(t){this._css=[],this._rootNode=t.rootNode,this._contentsMap=t.contentsMap,this._contentsIgnoredCharsMap=t.contentsIgnoredCharsMap,t.sourceMapFilename&&(this._sourceMapFilename=t.sourceMapFilename.replace(/\\/g,"/")),this._outputFilename=t.outputFilename,this.sourceMapURL=t.sourceMapURL,t.sourceMapBasepath&&(this._sourceMapBasepath=t.sourceMapBasepath.replace(/\\/g,"/")),t.sourceMapRootpath?(this._sourceMapRootpath=t.sourceMapRootpath.replace(/\\/g,"/"),"/"!==this._sourceMapRootpath.charAt(this._sourceMapRootpath.length-1)&&(this._sourceMapRootpath+="/")):this._sourceMapRootpath="",this._outputSourceFiles=t.outputSourceFiles,this._sourceMapGeneratorConstructor=e.getSourceMapGenerator(),this._lineNumber=0,this._column=0};return t.prototype.normalizeFilename=function(e){return e=e.replace(/\\/g,"/"),this._sourceMapBasepath&&0===e.indexOf(this._sourceMapBasepath)&&(e=e.substring(this._sourceMapBasepath.length),"\\"!==e.charAt(0)&&"/"!==e.charAt(0)||(e=e.substring(1))),(this._sourceMapRootpath||"")+e},t.prototype.add=function(e,t,n,i){if(e){var r,o,s,a,l;if(t){var u=this._contentsMap[t.filename];this._contentsIgnoredCharsMap[t.filename]&&(n-=this._contentsIgnoredCharsMap[t.filename],n<0&&(n=0),u=u.slice(this._contentsIgnoredCharsMap[t.filename])),u=u.substring(0,n),o=u.split("\n"),a=o[o.length-1]}if(r=e.split("\n"),s=r[r.length-1],t)if(i)for(l=0;l<r.length;l++)this._sourceMapGenerator.addMapping({generated:{line:this._lineNumber+l+1,column:0===l?this._column:0},original:{line:o.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:o.length,column:a.length},source:this.normalizeFilename(t.filename)});1===r.length?this._column+=s.length:(this._lineNumber+=r.length-1,this._column=s.length),this._css.push(e)}},t.prototype.isEmpty=function(){return 0===this._css.length},t.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 n=this._contentsMap[t];this._contentsIgnoredCharsMap[t]&&(n=n.slice(this._contentsIgnoredCharsMap[t])),this._sourceMapGenerator.setSourceContent(this.normalizeFilename(t),n)}if(this._rootNode.genCSS(e,this),this._css.length>0){var i,r=JSON.stringify(this._sourceMapGenerator.toJSON());this.sourceMapURL?i=this.sourceMapURL:this._sourceMapFilename&&(i=this._sourceMapFilename),this.sourceMapURL=i,this.sourceMap=r}return this._css.join("")},t}},{}],44:[function(e,t,n){var i=e("./contexts"),r=e("./visitors"),o=e("./tree");t.exports=function(e,t){t=t||{};var n,s=t.variables,a=new i.Eval(t);"object"!=typeof s||Array.isArray(s)||(s=Object.keys(s).map(function(e){var t=s[e];return t instanceof o.Value||(t instanceof o.Expression||(t=new o.Expression([t])),t=new o.Value([t])),new o.Rule("@"+e,t,!1,null,0)}),a.frames=[new o.Ruleset(null,s)]);var l,u=[],c=[new r.JoinSelectorVisitor,new r.MarkVisibleSelectorsVisitor(!0),new r.ExtendVisitor,new r.ToCSSVisitor({compress:Boolean(t.compress)})];if(t.pluginManager){var f=t.pluginManager.getVisitors();for(l=0;l<f.length;l++){var h=f[l];h.isPreEvalVisitor?u.push(h):h.isPreVisitor?c.splice(0,0,h):c.push(h)}}for(l=0;l<u.length;l++)u[l].run(e);for(n=e.eval(a),l=0;l<c.length;l++)c[l].run(n);return n}},{"./contexts":11,"./tree":62,"./visitors":87}],45:[function(e,t,n){var i=e("./node"),r=function(e){this.value=e};r.prototype=new i,r.prototype.type="Alpha",r.prototype.accept=function(e){this.value=e.visit(this.value)},r.prototype.eval=function(e){return this.value.eval?new r(this.value.eval(e)):this},r.prototype.genCSS=function(e,t){t.add("alpha(opacity="),this.value.genCSS?this.value.genCSS(e,t):t.add(this.value),t.add(")")},t.exports=r},{"./node":70}],46:[function(e,t,n){var i=e("./node"),r=function(e,t,n,i,r,o){this.value=e,this.index=t,this.mapLines=i,this.currentFileInfo=n,this.rulesetLike=void 0!==r&&r,this.allowRoot=!0,this.copyVisibilityInfo(o)};r.prototype=new i,r.prototype.type="Anonymous",r.prototype.eval=function(){return new r(this.value,this.index,this.currentFileInfo,this.mapLines,this.rulesetLike,this.visibilityInfo())},r.prototype.compare=function(e){return e.toCSS&&this.toCSS()===e.toCSS()?0:undefined},r.prototype.isRulesetLike=function(){return this.rulesetLike},r.prototype.genCSS=function(e,t){t.add(this.value,this.currentFileInfo,this.index,this.mapLines)},t.exports=r},{"./node":70}],47:[function(e,t,n){var i=e("./node"),r=function(e,t){this.key=e,this.value=t};r.prototype=new i,r.prototype.type="Assignment",r.prototype.accept=function(e){this.value=e.visit(this.value)},r.prototype.eval=function(e){return this.value.eval?new r(this.key,this.value.eval(e)):this},r.prototype.genCSS=function(e,t){t.add(this.key+"="),this.value.genCSS?this.value.genCSS(e,t):t.add(this.value)},t.exports=r},{"./node":70}],48:[function(e,t,n){var i=e("./node"),r=function(e,t,n){this.key=e,this.op=t,this.value=n};r.prototype=new i,r.prototype.type="Attribute",r.prototype.eval=function(e){return new r(this.key.eval?this.key.eval(e):this.key,this.op,this.value&&this.value.eval?this.value.eval(e):this.value)},r.prototype.genCSS=function(e,t){t.add(this.toCSS(e))},r.prototype.toCSS=function(e){var t=this.key.toCSS?this.key.toCSS(e):this.key;return this.op&&(t+=this.op,t+=this.value.toCSS?this.value.toCSS(e):this.value),"["+t+"]"},t.exports=r},{"./node":70}],49:[function(e,t,n){var i=e("./node"),r=e("../functions/function-caller"),o=function(e,t,n,i){this.name=e,this.args=t,this.index=n,this.currentFileInfo=i};o.prototype=new i,o.prototype.type="Call",o.prototype.accept=function(e){this.args&&(this.args=e.visitArray(this.args))},o.prototype.eval=function(e){var t,n=this.args.map(function(t){return t.eval(e)}),i=new r(this.name,e,this.index,this.currentFileInfo);if(i.isValid()){try{t=i.call(n)}catch(e){throw{type:e.type||"Runtime",message:"error evaluating function `"+this.name+"`"+(e.message?": "+e.message:""),index:this.index,filename:this.currentFileInfo.filename}}if(null!=t)return t.index=this.index,t.currentFileInfo=this.currentFileInfo,t}return new o(this.name,n,this.index,this.currentFileInfo)},o.prototype.genCSS=function(e,t){t.add(this.name+"(",this.currentFileInfo,this.index);for(var n=0;n<this.args.length;n++)this.args[n].genCSS(e,t),n+1<this.args.length&&t.add(", ");t.add(")")},t.exports=o},{"../functions/function-caller":21,"./node":70}],50:[function(e,t,n){function i(e,t){return Math.min(Math.max(e,0),t)}function r(e){return"#"+e.map(function(e){return e=i(Math.round(e),255),(e<16?"0":"")+e.toString(16)}).join("")}var o=e("./node"),s=e("../data/colors"),a=function(e,t,n){Array.isArray(e)?this.rgb=e:6==e.length?this.rgb=e.match(/.{2}/g).map(function(e){return parseInt(e,16)}):this.rgb=e.split("").map(function(e){return parseInt(e+e,16)}),this.alpha="number"==typeof t?t:1,void 0!==n&&(this.value=n)};a.prototype=new o,a.prototype.type="Color",a.prototype.luma=function(){var e=this.rgb[0]/255,t=this.rgb[1]/255,n=this.rgb[2]/255;return e=e<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4),t=t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4),n=n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4),.2126*e+.7152*t+.0722*n},a.prototype.genCSS=function(e,t){t.add(this.toCSS(e))},a.prototype.toCSS=function(e,t){var n,r,o=e&&e.compress&&!t;if(this.value)return this.value;if((r=this.fround(e,this.alpha))<1)return"rgba("+this.rgb.map(function(e){return i(Math.round(e),255)}).concat(i(r,1)).join(","+(o?"":" "))+")";if(n=this.toRGB(),o){var s=n.split("");s[1]===s[2]&&s[3]===s[4]&&s[5]===s[6]&&(n="#"+s[1]+s[3]+s[5])}return n},a.prototype.operate=function(e,t,n){for(var i=[],r=this.alpha*(1-n.alpha)+n.alpha,o=0;o<3;o++)i[o]=this._operate(e,t,this.rgb[o],n.rgb[o]);return new a(i,r)},a.prototype.toRGB=function(){return r(this.rgb)},a.prototype.toHSL=function(){var e,t,n=this.rgb[0]/255,i=this.rgb[1]/255,r=this.rgb[2]/255,o=this.alpha,s=Math.max(n,i,r),a=Math.min(n,i,r),l=(s+a)/2,u=s-a;if(s===a)e=t=0;else{switch(t=l>.5?u/(2-s-a):u/(s+a),s){case n:e=(i-r)/u+(i<r?6:0);break;case i:e=(r-n)/u+2;break;case r:e=(n-i)/u+4}e/=6}return{h:360*e,s:t,l:l,a:o}},a.prototype.toHSV=function(){var e,t,n=this.rgb[0]/255,i=this.rgb[1]/255,r=this.rgb[2]/255,o=this.alpha,s=Math.max(n,i,r),a=Math.min(n,i,r),l=s,u=s-a;if(t=0===s?0:u/s,s===a)e=0;else{switch(s){case n:e=(i-r)/u+(i<r?6:0);break;case i:e=(r-n)/u+2;break;case r:e=(n-i)/u+4}e/=6}return{h:360*e,s:t,v:l,a:o}},a.prototype.toARGB=function(){return r([255*this.alpha].concat(this.rgb))},a.prototype.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:undefined},a.fromKeyword=function(e){var t,n=e.toLowerCase();if(s.hasOwnProperty(n)?t=new a(s[n].slice(1)):"transparent"===n&&(t=new a([0,0,0],0)),t)return t.value=e,t},t.exports=a},{"../data/colors":12,"./node":70}],51:[function(e,t,n){var i=e("./node"),r=function(e){" "===e?(this.value=" ",this.emptyOrWhitespace=!0):(this.value=e?e.trim():"",this.emptyOrWhitespace=""===this.value)};r.prototype=new i,r.prototype.type="Combinator";var o={"":!0," ":!0,"|":!0};r.prototype.genCSS=function(e,t){var n=e.compress||o[this.value]?"":" ";t.add(n+this.value+n)},t.exports=r},{"./node":70}],52:[function(e,t,n){var i=e("./node"),r=e("./debug-info"),o=function(e,t,n,i){this.value=e,this.isLineComment=t,this.currentFileInfo=i,this.allowRoot=!0};o.prototype=new i,o.prototype.type="Comment",o.prototype.genCSS=function(e,t){this.debugInfo&&t.add(r(e,this),this.currentFileInfo,this.index),t.add(this.value)},o.prototype.isSilent=function(e){var t=e.compress&&"!"!==this.value[2];return this.isLineComment||t},t.exports=o},{"./debug-info":54,"./node":70}],53:[function(e,t,n){var i=e("./node"),r=function(e,t,n,i,r){this.op=e.trim(),this.lvalue=t,this.rvalue=n,this.index=i,this.negate=r};r.prototype=new i,r.prototype.type="Condition",r.prototype.accept=function(e){this.lvalue=e.visit(this.lvalue),this.rvalue=e.visit(this.rvalue)},r.prototype.eval=function(e){var t=function(e,t,n){switch(e){case"and":return t&&n;case"or":return t||n;default:switch(i.compare(t,n)){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},t.exports=r},{"./node":70}],54:[function(e,t,n){var i=function(e,t,n){var r="";if(e.dumpLineNumbers&&!e.compress)switch(e.dumpLineNumbers){case"comments":r=i.asComment(t);break;case"mediaquery":r=i.asMediaQuery(t);break;case"all":r=i.asComment(t)+(n||"")+i.asMediaQuery(t)}return r};i.asComment=function(e){return"/* line "+e.debugInfo.lineNumber+", "+e.debugInfo.fileName+" */\n"},i.asMediaQuery=function(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"},t.exports=i},{}],55:[function(e,t,n){var i=e("./node"),r=e("../contexts"),o=function(e,t){this.ruleset=e,this.frames=t};o.prototype=new i,o.prototype.type="DetachedRuleset",o.prototype.evalFirst=!0,o.prototype.accept=function(e){this.ruleset=e.visit(this.ruleset)},o.prototype.eval=function(e){var t=this.frames||e.frames.slice(0);return new o(this.ruleset,t)},o.prototype.callEval=function(e){return this.ruleset.eval(this.frames?new r.Eval(e,this.frames.concat(e.frames)):e)},t.exports=o},{"../contexts":11,"./node":70}],56:[function(e,t,n){var i=e("./node"),r=e("../data/unit-conversions"),o=e("./unit"),s=e("./color"),a=function(e,t){this.value=parseFloat(e),this.unit=t&&t instanceof o?t:new o(t?[t]:undefined)};a.prototype=new i,a.prototype.type="Dimension",a.prototype.accept=function(e){this.unit=e.visit(this.unit)},a.prototype.eval=function(e){return this},a.prototype.toColor=function(){return new s([this.value,this.value,this.value])},a.prototype.genCSS=function(e,t){if(e&&e.strictUnits&&!this.unit.isSingular())throw new Error("Multiple units in dimension. Correct the units or use the unit function. Bad unit: "+this.unit.toString());var n=this.fround(e,this.value),i=String(n);if(0!==n&&n<1e-6&&n>-1e-6&&(i=n.toFixed(20).replace(/0+$/,"")),e&&e.compress){if(0===n&&this.unit.isLength())return void t.add(i);n>0&&n<1&&(i=i.substr(1))}t.add(i),this.unit.genCSS(e,t)},a.prototype.operate=function(e,t,n){var i=this._operate(e,t,this.value,n.value),r=this.unit.clone();if("+"===t||"-"===t)if(0===r.numerator.length&&0===r.denominator.length)r=n.unit.clone(),this.unit.backupUnit&&(r.backupUnit=this.unit.backupUnit);else if(0===n.unit.numerator.length&&0===r.denominator.length);else{if(n=n.convertTo(this.unit.usedUnits()),e.strictUnits&&n.unit.toString()!==r.toString())throw new Error("Incompatible units. Change the units or use the unit function. Bad units: '"+r.toString()+"' and '"+n.unit.toString()+"'.");i=this._operate(e,t,this.value,n.value)}else"*"===t?(r.numerator=r.numerator.concat(n.unit.numerator).sort(),r.denominator=r.denominator.concat(n.unit.denominator).sort(),r.cancel()):"/"===t&&(r.numerator=r.numerator.concat(n.unit.denominator).sort(),r.denominator=r.denominator.concat(n.unit.numerator).sort(),r.cancel());return new a(i,r)},a.prototype.compare=function(e){var t,n;if(!(e instanceof a))return undefined;if(this.unit.isEmpty()||e.unit.isEmpty())t=this,n=e;else if(t=this.unify(),n=e.unify(),0!==t.unit.compare(n.unit))return undefined;return i.numericCompare(t.value,n.value)},a.prototype.unify=function(){return this.convertTo({length:"px",duration:"s",angle:"rad"})},a.prototype.convertTo=function(e){var t,n,i,o,s,l=this.value,u=this.unit.clone(),c={};if("string"==typeof e){for(t in r)r[t].hasOwnProperty(e)&&(c={},c[t]=e);e=c}s=function(e,t){return i.hasOwnProperty(e)?(t?l/=i[e]/i[o]:l*=i[e]/i[o],o):e};for(n in e)e.hasOwnProperty(n)&&(o=e[n],i=r[n],u.map(s));return u.cancel(),new a(l,u)},t.exports=a},{"../data/unit-conversions":14,"./color":50,"./node":70,"./unit":79}],57:[function(e,t,n){var i=e("./node"),r=e("./selector"),o=e("./ruleset"),s=function(e,t,n,i,o,s,a,l){var u;if(this.name=e,this.value=t,n)for(Array.isArray(n)?this.rules=n:(this.rules=[n],this.rules[0].selectors=new r([],null,null,this.index,o).createEmptySelectors()),u=0;u<this.rules.length;u++)this.rules[u].allowImports=!0;this.index=i,this.currentFileInfo=o,this.debugInfo=s,this.isRooted=a||!1,this.copyVisibilityInfo(l),this.allowRoot=!0};s.prototype=new i,s.prototype.type="Directive",s.prototype.accept=function(e){var t=this.value,n=this.rules;n&&(this.rules=e.visitArray(n)),t&&(this.value=e.visit(t))},s.prototype.isRulesetLike=function(){return this.rules||!this.isCharset()},s.prototype.isCharset=function(){return"@charset"===this.name},s.prototype.genCSS=function(e,t){var n=this.value,i=this.rules;t.add(this.name,this.currentFileInfo,this.index),n&&(t.add(" "),n.genCSS(e,t)),i?this.outputRuleset(e,t,i):t.add(";")},s.prototype.eval=function(e){var t,n,i=this.value,r=this.rules;return t=e.mediaPath,n=e.mediaBlocks,e.mediaPath=[],e.mediaBlocks=[],i&&(i=i.eval(e)),r&&(r=[r[0].eval(e)],r[0].root=!0),e.mediaPath=t,e.mediaBlocks=n,new s(this.name,i,r,this.index,this.currentFileInfo,this.debugInfo,this.isRooted,this.visibilityInfo())},s.prototype.variable=function(e){if(this.rules)return o.prototype.variable.call(this.rules[0],e)},s.prototype.find=function(){if(this.rules)return o.prototype.find.apply(this.rules[0],arguments)},s.prototype.rulesets=function(){if(this.rules)return o.prototype.rulesets.apply(this.rules[0])},s.prototype.outputRuleset=function(e,t,n){var i,r=n.length;if(e.tabLevel=1+(0|e.tabLevel),e.compress){for(t.add("{"),i=0;i<r;i++)n[i].genCSS(e,t);return t.add("}"),void e.tabLevel--}var o="\n"+Array(e.tabLevel).join(" "),s=o+" ";if(r){for(t.add(" {"+s),n[0].genCSS(e,t),i=1;i<r;i++)t.add(s),n[i].genCSS(e,t);t.add(o+"}")}else t.add(" {"+o+"}");e.tabLevel--},t.exports=s},{"./node":70,"./ruleset":76,"./selector":77}],58:[function(e,t,n){var i=e("./node"),r=e("./paren"),o=e("./combinator"),s=function(e,t,n,i,r){this.combinator=e instanceof o?e:new o(e),this.value="string"==typeof t?t.trim():t||"",this.index=n,this.currentFileInfo=i,this.copyVisibilityInfo(r)};s.prototype=new i,s.prototype.type="Element",s.prototype.accept=function(e){var t=this.value;this.combinator=e.visit(this.combinator),"object"==typeof t&&(this.value=e.visit(t))},s.prototype.eval=function(e){return new s(this.combinator,this.value.eval?this.value.eval(e):this.value,this.index,this.currentFileInfo,this.visibilityInfo())},s.prototype.clone=function(){return new s(this.combinator,this.value,this.index,this.currentFileInfo,this.visibilityInfo())},s.prototype.genCSS=function(e,t){t.add(this.toCSS(e),this.currentFileInfo,this.index)},s.prototype.toCSS=function(e){e=e||{};var t=this.value,n=e.firstSelector;return t instanceof r&&(e.firstSelector=!0),t=t.toCSS?t.toCSS(e):t,e.firstSelector=n,""===t&&"&"===this.combinator.value.charAt(0)?"":this.combinator.toCSS(e)+t},t.exports=s},{"./combinator":51,"./node":70,"./paren":72}],59:[function(e,t,n){var i=e("./node"),r=e("./paren"),o=e("./comment"),s=function(e){if(this.value=e,!e)throw new Error("Expression requires an array parameter")};s.prototype=new i,s.prototype.type="Expression",s.prototype.accept=function(e){this.value=e.visitArray(this.value)},s.prototype.eval=function(e){var t,n=this.parens&&!this.parensInOp,i=!1;return n&&e.inParenthesis(),this.value.length>1?t=new s(this.value.map(function(t){return t.eval(e)})):1===this.value.length?(this.value[0].parens&&!this.value[0].parensInOp&&(i=!0),t=this.value[0].eval(e)):t=this,n&&e.outOfParenthesis(),this.parens&&this.parensInOp&&!e.isMathOn()&&!i&&(t=new r(t)),t},s.prototype.genCSS=function(e,t){for(var n=0;n<this.value.length;n++)this.value[n].genCSS(e,t),n+1<this.value.length&&t.add(" ")},s.prototype.throwAwayComments=function(){this.value=this.value.filter(function(e){return!(e instanceof o)})},t.exports=s},{"./comment":52,"./node":70,"./paren":72}],60:[function(e,t,n){var i=e("./node"),r=e("./selector"),o=function e(t,n,i,r,o){switch(this.selector=t,this.option=n,this.index=i,this.object_id=e.next_id++,this.parent_ids=[this.object_id],this.currentFileInfo=r||{},this.copyVisibilityInfo(o),this.allowRoot=!0,n){case"all":this.allowBefore=!0,this.allowAfter=!0;break;default:this.allowBefore=!1,this.allowAfter=!1}};o.next_id=0,o.prototype=new i,o.prototype.type="Extend",o.prototype.accept=function(e){this.selector=e.visit(this.selector)},o.prototype.eval=function(e){return new o(this.selector.eval(e),this.option,this.index,this.currentFileInfo,this.visibilityInfo())},o.prototype.clone=function(e){return new o(this.selector,this.option,this.index,this.currentFileInfo,this.visibilityInfo())},o.prototype.findSelfSelectors=function(e){var t,n,i=[];for(t=0;t<e.length;t++)n=e[t].elements,t>0&&n.length&&""===n[0].combinator.value&&(n[0].combinator.value=" "),i=i.concat(e[t].elements);this.selfSelectors=[new r(i)],this.selfSelectors[0].copyVisibilityInfo(this.visibilityInfo())},t.exports=o},{"./node":70,"./selector":77}],61:[function(e,t,n){var i=e("./node"),r=e("./media"),o=e("./url"),s=e("./quoted"),a=e("./ruleset"),l=e("./anonymous"),u=function(e,t,n,i,r,o){if(this.options=n,this.index=i,this.path=e,this.features=t,this.currentFileInfo=r,this.allowRoot=!0,this.options.less!==undefined||this.options.inline)this.css=!this.options.less||this.options.inline;else{var s=this.getPath();s&&/[#\.\&\?\/]css([\?;].*)?$/.test(s)&&(this.css=!0)}this.copyVisibilityInfo(o)};u.prototype=new i,u.prototype.type="Import",u.prototype.accept=function(e){this.features&&(this.features=e.visit(this.features)),this.path=e.visit(this.path),this.options.plugin||this.options.inline||!this.root||(this.root=e.visit(this.root))},u.prototype.genCSS=function(e,t){this.css&&this.path.currentFileInfo.reference===undefined&&(t.add("@import ",this.currentFileInfo,this.index),this.path.genCSS(e,t),this.features&&(t.add(" "),this.features.genCSS(e,t)),t.add(";"))},u.prototype.getPath=function(){return this.path instanceof o?this.path.value.value:this.path.value},u.prototype.isVariableImport=function(){var e=this.path;return e instanceof o&&(e=e.value),!(e instanceof s)||e.containsVariables()},u.prototype.evalForImport=function(e){var t=this.path;return t instanceof o&&(t=t.value),new u(t.eval(e),this.features,this.options,this.index,this.currentFileInfo,this.visibilityInfo())},u.prototype.evalPath=function(e){var t=this.path.eval(e),n=this.currentFileInfo&&this.currentFileInfo.rootpath;if(!(t instanceof o)){if(n){var i=t.value;i&&e.isPathRelative(i)&&(t.value=n+i)}t.value=e.normalizePath(t.value)}return t},u.prototype.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},u.prototype.doEval=function(e){var t,n,i=this.features&&this.features.eval(e);if(this.options.plugin)return n=e.frames[0]&&e.frames[0].functionRegistry,n&&this.root&&this.root.functions&&n.addMultiple(this.root.functions),[];if(this.skip&&("function"==typeof this.skip&&(this.skip=this.skip()),this.skip))return[];if(this.options.inline){var o=new l(this.root,0,{filename:this.importedFilename,reference:this.path.currentFileInfo&&this.path.currentFileInfo.reference},!0,!0);return this.features?new r([o],this.features.value):[o]}if(this.css){var s=new u(this.evalPath(e),i,this.options,this.index);if(!s.css&&this.error)throw this.error;return s}return t=new a(null,this.root.rules.slice(0)),t.evalImports(e),this.features?new r(t.rules,this.features.value):t.rules},t.exports=u},{"./anonymous":46,"./media":66,"./node":70,"./quoted":73,"./ruleset":76,"./url":80}],62:[function(e,t,n){var i={};i.Node=e("./node"),i.Alpha=e("./alpha"),i.Color=e("./color"),i.Directive=e("./directive"),i.DetachedRuleset=e("./detached-ruleset"),i.Operation=e("./operation"),i.Dimension=e("./dimension"),i.Unit=e("./unit"),i.Keyword=e("./keyword"),i.Variable=e("./variable"),i.Ruleset=e("./ruleset"),i.Element=e("./element"),i.Attribute=e("./attribute"),i.Combinator=e("./combinator"),i.Selector=e("./selector"),i.Quoted=e("./quoted"),i.Expression=e("./expression"),i.Rule=e("./rule"),i.Call=e("./call"),i.URL=e("./url"),i.Import=e("./import"),i.mixin={Call:e("./mixin-call"),Definition:e("./mixin-definition")},i.Comment=e("./comment"),i.Anonymous=e("./anonymous"),i.Value=e("./value"),i.JavaScript=e("./javascript"),i.Assignment=e("./assignment"),i.Condition=e("./condition"),i.Paren=e("./paren"),i.Media=e("./media"),i.UnicodeDescriptor=e("./unicode-descriptor"),i.Negative=e("./negative"),i.Extend=e("./extend"),i.RulesetCall=e("./ruleset-call"),t.exports=i},{"./alpha":45,"./anonymous":46,"./assignment":47,"./attribute":48,"./call":49,"./color":50,"./combinator":51,"./comment":52,"./condition":53,"./detached-ruleset":55,"./dimension":56,"./directive":57,"./element":58,"./expression":59,"./extend":60,"./import":61,"./javascript":63,"./keyword":65,"./media":66,"./mixin-call":67,"./mixin-definition":68,"./negative":69,"./node":70,"./operation":71,"./paren":72,"./quoted":73,"./rule":74,"./ruleset":76,"./ruleset-call":75,"./selector":77,"./unicode-descriptor":78,"./unit":79,"./url":80,"./value":81,"./variable":82}],63:[function(e,t,n){var i=e("./js-eval-node"),r=e("./dimension"),o=e("./quoted"),s=e("./anonymous"),a=function(e,t,n,i){this.escaped=t,this.expression=e,this.index=n,this.currentFileInfo=i};a.prototype=new i,a.prototype.type="JavaScript",a.prototype.eval=function(e){var t=this.evaluateJavaScript(this.expression,e);return"number"==typeof t?new r(t):"string"==typeof t?new o('"'+t+'"',t,this.escaped,this.index):new s(Array.isArray(t)?t.join(", "):t)},t.exports=a},{"./anonymous":46,"./dimension":56,"./js-eval-node":64,"./quoted":73}],64:[function(e,t,n){var i=e("./node"),r=e("./variable"),o=function(){};o.prototype=new i,o.prototype.evaluateJavaScript=function(e,t){var n,i=this,o={};if(t.javascriptEnabled!==undefined&&!t.javascriptEnabled)throw{message:"You are using JavaScript, which has been disabled.",filename:this.currentFileInfo.filename,index:this.index};e=e.replace(/@\{([\w-]+)\}/g,function(e,n){return i.jsify(new r("@"+n,i.index,i.currentFileInfo).eval(t))});try{e=new Function("return ("+e+")")}catch(t){throw{message:"JavaScript evaluation error: "+t.message+" from `"+e+"`",filename:this.currentFileInfo.filename,index:this.index}}var s=t.frames[0].variables();for(var a in s)s.hasOwnProperty(a)&&(o[a.slice(1)]={value:s[a].value,toJS:function(){return this.value.eval(t).toCSS()}});try{n=e.call(o)}catch(e){throw{message:"JavaScript evaluation error: '"+e.name+": "+e.message.replace(/["]/g,"'")+"'",filename:this.currentFileInfo.filename,index:this.index}}return n},o.prototype.jsify=function(e){return Array.isArray(e.value)&&e.value.length>1?"["+e.value.map(function(e){return e.toCSS()}).join(", ")+"]":e.toCSS()},t.exports=o},{"./node":70,"./variable":82}],65:[function(e,t,n){var i=e("./node"),r=function(e){this.value=e};r.prototype=new i,r.prototype.type="Keyword",r.prototype.genCSS=function(e,t){if("%"===this.value)throw{type:"Syntax",message:"Invalid % without number"};t.add(this.value)},r.True=new r("true"),r.False=new r("false"),t.exports=r},{"./node":70}],66:[function(e,t,n){var i=e("./ruleset"),r=e("./value"),o=e("./selector"),s=e("./anonymous"),a=e("./expression"),l=e("./directive"),u=function(e,t,n,s,a){this.index=n,this.currentFileInfo=s;var l=new o([],null,null,this.index,this.currentFileInfo).createEmptySelectors();this.features=new r(t),this.rules=[new i(l,e)],this.rules[0].allowImports=!0,this.copyVisibilityInfo(a),this.allowRoot=!0};u.prototype=new l,u.prototype.type="Media",u.prototype.isRulesetLike=!0,u.prototype.accept=function(e){this.features&&(this.features=e.visit(this.features)),this.rules&&(this.rules=e.visitArray(this.rules))},u.prototype.genCSS=function(e,t){t.add("@media ",this.currentFileInfo,this.index),this.features.genCSS(e,t),this.outputRuleset(e,t,this.rules)},u.prototype.eval=function(e){e.mediaBlocks||(e.mediaBlocks=[],e.mediaPath=[]);var t=new u(null,[],this.index,this.currentFileInfo,this.visibilityInfo());this.debugInfo&&(this.rules[0].debugInfo=this.debugInfo,t.debugInfo=this.debugInfo);var n=!1;e.strictMath||(n=!0,e.strictMath=!0);try{t.features=this.features.eval(e)}finally{n&&(e.strictMath=!1)}return 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)},u.prototype.evalTop=function(e){var t=this;if(e.mediaBlocks.length>1){var n=new o([],null,null,this.index,this.currentFileInfo).createEmptySelectors();t=new i(n,e.mediaBlocks),t.multiMedia=!0,t.copyVisibilityInfo(this.visibilityInfo())}return delete e.mediaBlocks,delete e.mediaPath,t},u.prototype.evalNested=function(e){var t,n,o=e.mediaPath.concat([this]);for(t=0;t<o.length;t++)n=o[t].features instanceof r?o[t].features.value:o[t].features,o[t]=Array.isArray(n)?n:[n];return this.features=new r(this.permute(o).map(function(e){for(e=e.map(function(e){return e.toCSS?e:new s(e)}),t=e.length-1;t>0;t--)e.splice(t,0,new s("and"));return new a(e)})),new i([],[])},u.prototype.permute=function(e){if(0===e.length)return[];if(1===e.length)return e[0];for(var t=[],n=this.permute(e.slice(1)),i=0;i<n.length;i++)for(var r=0;r<e[0].length;r++)t.push([e[0][r]].concat(n[i]));return t},u.prototype.bubbleSelectors=function(e){e&&(this.rules=[new i(e.slice(0),[this.rules[0]])])},t.exports=u},{"./anonymous":46,"./directive":57,"./expression":59,"./ruleset":76,"./selector":77,"./value":81}],67:[function(e,t,n){var i=e("./node"),r=e("./selector"),o=e("./mixin-definition"),s=e("../functions/default"),a=function(e,t,n,i,o){this.selector=new r(e),this.arguments=t||[],this.index=n,this.currentFileInfo=i,this.important=o,this.allowRoot=!0};a.prototype=new i,a.prototype.type="MixinCall",a.prototype.accept=function(e){this.selector&&(this.selector=e.visit(this.selector)),this.arguments.length&&(this.arguments=e.visitArray(this.arguments))},a.prototype.eval=function(e){var t,n,i,r,a,l,u,c,f,h,p,d,v,m,g,y=[],b=[],w=!1,x=[],S=[],C=-1,k=0,I=1,A=2;for(l=0;l<this.arguments.length;l++)if(r=this.arguments[l],a=r.value.eval(e),r.expand&&Array.isArray(a.value))for(a=a.value,u=0;u<a.length;u++)y.push({value:a[u]});else y.push({name:r.name,value:a});for(g=function(t){return t.matchArgs(null,e)},l=0;l<e.frames.length;l++)if((t=e.frames[l].find(this.selector,null,g)).length>0){for(h=!0,u=0;u<t.length;u++){for(n=t[u].rule,i=t[u].path,f=!1,c=0;c<e.frames.length;c++)if(!(n instanceof o)&&n===(e.frames[c].originalRuleset||e.frames[c])){f=!0;break}f||n.matchArgs(y,e)&&(p={mixin:n,group:function(t,n){var i,r,o;for(i=0;i<2;i++){for(S[i]=!0,s.value(i),r=0;r<n.length&&S[i];r++)o=n[r],o.matchCondition&&(S[i]=S[i]&&o.matchCondition(null,e));t.matchCondition&&(S[i]=S[i]&&t.matchCondition(y,e))}return S[0]||S[1]?S[0]!=S[1]?S[1]?I:A:k:C}(n,i)},p.group!==C&&x.push(p),w=!0)}for(s.reset(),v=[0,0,0],u=0;u<x.length;u++)v[x[u].group]++;if(v[k]>0)d=A;else if(d=I,v[I]+v[A]>1)throw{type:"Runtime",message:"Ambiguous use of `default()` found when matching for `"+this.format(y)+"`",index:this.index,filename:this.currentFileInfo.filename};for(u=0;u<x.length;u++)if((p=x[u].group)===k||p===d)try{n=x[u].mixin,n instanceof o||(m=n.originalRuleset||n,n=new o("",[],n.rules,null,!1,null,m.visibilityInfo()),n.originalRuleset=m);var M=n.evalCall(e,y,this.important).rules;this._setVisibilityToReplacement(M),Array.prototype.push.apply(b,M)}catch(e){throw{message:e.message,index:this.index,filename:this.currentFileInfo.filename,stack:e.stack}}if(w)return b}throw h?{type:"Runtime",message:"No matching definition was found for `"+this.format(y)+"`",index:this.index,filename:this.currentFileInfo.filename}:{type:"Name",message:this.selector.toCSS().trim()+" is undefined",index:this.index,filename:this.currentFileInfo.filename}},a.prototype._setVisibilityToReplacement=function(e){var t,n;if(this.blocksVisibility())for(t=0;t<e.length;t++)n=e[t],n.addVisibilityBlock()},a.prototype.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(", "):"")+")"},t.exports=a},{"../functions/default":20,"./mixin-definition":68,"./node":70,"./selector":77}],68:[function(e,t,n){var i=e("./selector"),r=e("./element"),o=e("./ruleset"),s=e("./rule"),a=e("./expression"),l=e("../contexts"),u=function(e,t,n,o,s,a,l){this.name=e,this.selectors=[new i([new r(null,e,this.index,this.currentFileInfo)])],this.params=t,this.condition=o,this.variadic=s,this.arity=t.length,this.rules=n,this._lookups={};var u=[];this.required=t.reduce(function(e,t){return!t.name||t.name&&!t.value?e+1:(u.push(t.name),e)},0),this.optionalParameters=u,this.frames=a,this.copyVisibilityInfo(l),this.allowRoot=!0};u.prototype=new o,u.prototype.type="MixinDefinition",u.prototype.evalFirst=!0,u.prototype.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))},u.prototype.evalParams=function(e,t,n,i){var r,u,c,f,h,p,d,v,m=new o(null,null),g=this.params.slice(0),y=0;if(t.frames&&t.frames[0]&&t.frames[0].functionRegistry&&(m.functionRegistry=t.frames[0].functionRegistry.inherit()),t=new l.Eval(t,[m].concat(t.frames)),n)for(n=n.slice(0),y=n.length,c=0;c<y;c++)if(u=n[c],p=u&&u.name){for(d=!1,f=0;f<g.length;f++)if(!i[f]&&p===g[f].name){i[f]=u.value.eval(e),m.prependRule(new s(p,u.value.eval(e))),d=!0;break}if(d){n.splice(c,1),c--;continue}throw{type:"Runtime",message:"Named argument for "+this.name+" "+n[c].name+" not found"}}for(v=0,c=0;c<g.length;c++)if(!i[c]){if(u=n&&n[v],p=g[c].name)if(g[c].variadic){for(r=[],f=v;f<y;f++)r.push(n[f].value.eval(e));m.prependRule(new s(p,new a(r).eval(e)))}else{if(h=u&&u.value)h=h.eval(e);else{if(!g[c].value)throw{type:"Runtime",message:"wrong number of arguments for "+this.name+" ("+y+" for "+this.arity+")"};h=g[c].value.eval(t),m.resetCache()}m.prependRule(new s(p,h)),i[c]=h}if(g[c].variadic&&n)for(f=v;f<y;f++)i[f]=n[f].value.eval(e);v++}return m},u.prototype.makeImportant=function(){var e=this.rules?this.rules.map(function(e){return e.makeImportant?e.makeImportant(!0):e}):this.rules;return new u(this.name,this.params,e,this.condition,this.variadic,this.frames)},u.prototype.eval=function(e){return new u(this.name,this.params,this.rules,this.condition,this.variadic,this.frames||e.frames.slice(0))},u.prototype.evalCall=function(e,t,n){var i,r,u=[],c=this.frames?this.frames.concat(e.frames):e.frames,f=this.evalParams(e,new l.Eval(e,c),t,u);return f.prependRule(new s("@arguments",new a(u).eval(e))),i=this.rules.slice(0),r=new o(null,i),r.originalRuleset=this,r=r.eval(new l.Eval(e,[this,f].concat(c))),n&&(r=r.makeImportant()),r},u.prototype.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))))},u.prototype.matchArgs=function(e,t){var n,i=e&&e.length||0,r=this.optionalParameters,o=e?e.reduce(function(e,t){return r.indexOf(t.name)<0?e+1:e},0):0;if(this.variadic){if(o<this.required-1)return!1}else{if(o<this.required)return!1;if(i>this.params.length)return!1}n=Math.min(o,this.arity);for(var s=0;s<n;s++)if(!this.params[s].name&&!this.params[s].variadic&&e[s].value.eval(t).toCSS()!=this.params[s].value.eval(t).toCSS())return!1;return!0},t.exports=u},{"../contexts":11,"./element":58,"./expression":59,"./rule":74,"./ruleset":76,"./selector":77}],69:[function(e,t,n){var i=e("./node"),r=e("./operation"),o=e("./dimension"),s=function(e){this.value=e};s.prototype=new i,s.prototype.type="Negative",s.prototype.genCSS=function(e,t){t.add("-"),this.value.genCSS(e,t)},s.prototype.eval=function(e){return e.isMathOn()?new r("*",[new o(-1),this.value]).eval(e):new s(this.value.eval(e))},t.exports=s},{"./dimension":56,"./node":70,"./operation":71}],70:[function(e,t,n){var i=function(){};i.prototype.toCSS=function(e){var t=[];return this.genCSS(e,{add:function(e,n,i){t.push(e)},isEmpty:function(){return 0===t.length}}),t.join("")},i.prototype.genCSS=function(e,t){t.add(this.value)},i.prototype.accept=function(e){this.value=e.visit(this.value)},i.prototype.eval=function(){return this},i.prototype._operate=function(e,t,n,i){switch(t){case"+":return n+i;case"-":return n-i;case"*":return n*i;case"/":return n/i}},i.prototype.fround=function(e,t){var n=e&&e.numPrecision;return null==n?t:Number((t+2e-16).toFixed(n))},i.compare=function(e,t){if(e.compare&&"Quoted"!==t.type&&"Anonymous"!==t.type)return e.compare(t);if(t.compare)return-t.compare(e);if(e.type!==t.type)return undefined;if(e=e.value,t=t.value,!Array.isArray(e))return e===t?0:undefined;if(e.length!==t.length)return undefined;for(var n=0;n<e.length;n++)if(0!==i.compare(e[n],t[n]))return undefined;return 0},i.numericCompare=function(e,t){return e<t?-1:e===t?0:e>t?1:undefined},i.prototype.blocksVisibility=function(){return null==this.visibilityBlocks&&(this.visibilityBlocks=0),0!==this.visibilityBlocks},i.prototype.addVisibilityBlock=function(){null==this.visibilityBlocks&&(this.visibilityBlocks=0),this.visibilityBlocks=this.visibilityBlocks+1},i.prototype.removeVisibilityBlock=function(){null==this.visibilityBlocks&&(this.visibilityBlocks=0),this.visibilityBlocks=this.visibilityBlocks-1},i.prototype.ensureVisibility=function(){this.nodeVisible=!0},i.prototype.ensureInvisibility=function(){this.nodeVisible=!1},i.prototype.isVisible=function(){return this.nodeVisible},i.prototype.visibilityInfo=function(){return{visibilityBlocks:this.visibilityBlocks,nodeVisible:this.nodeVisible}},i.prototype.copyVisibilityInfo=function(e){e&&(this.visibilityBlocks=e.visibilityBlocks,this.nodeVisible=e.nodeVisible)},t.exports=i},{}],71:[function(e,t,n){var i=e("./node"),r=e("./color"),o=e("./dimension"),s=function(e,t,n){this.op=e.trim(),this.operands=t,this.isSpaced=n};s.prototype=new i,s.prototype.type="Operation",s.prototype.accept=function(e){this.operands=e.visit(this.operands)},s.prototype.eval=function(e){var t=this.operands[0].eval(e),n=this.operands[1].eval(e);if(e.isMathOn()){if(t instanceof o&&n instanceof r&&(t=t.toColor()),n instanceof o&&t instanceof r&&(n=n.toColor()),!t.operate)throw{type:"Operation",message:"Operation on an invalid type"};return t.operate(e,this.op,n)}return new s(this.op,[t,n],this.isSpaced)},s.prototype.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)},t.exports=s},{"./color":50,"./dimension":56,"./node":70}],72:[function(e,t,n){var i=e("./node"),r=function(e){this.value=e};r.prototype=new i,r.prototype.type="Paren",r.prototype.genCSS=function(e,t){t.add("("),this.value.genCSS(e,t),t.add(")")},r.prototype.eval=function(e){return new r(this.value.eval(e))},t.exports=r},{"./node":70}],73:[function(e,t,n){var i=e("./node"),r=e("./js-eval-node"),o=e("./variable"),s=function(e,t,n,i,r){this.escaped=null==n||n,this.value=t||"",this.quote=e.charAt(0),this.index=i,this.currentFileInfo=r};s.prototype=new r,s.prototype.type="Quoted",s.prototype.genCSS=function(e,t){this.escaped||t.add(this.quote,this.currentFileInfo,this.index),t.add(this.value),this.escaped||t.add(this.quote)},s.prototype.containsVariables=function(){return this.value.match(/(`([^`]+)`)|@\{([\w-]+)\}/)},s.prototype.eval=function(e){function t(e,t,n){var i=e;do{e=i,i=e.replace(t,n)}while(e!==i);return i}var n=this,i=this.value,r=function(t,i){return String(n.evaluateJavaScript(i,e))},a=function(t,i){var r=new o("@"+i,n.index,n.currentFileInfo).eval(e,!0);return r instanceof s?r.value:r.toCSS()};return i=t(i,/`([^`]+)`/g,r),i=t(i,/@\{([\w-]+)\}/g,a),new s(this.quote+i+this.quote,i,this.escaped,this.index,this.currentFileInfo)},s.prototype.compare=function(e){return"Quoted"!==e.type||this.escaped||e.escaped?e.toCSS&&this.toCSS()===e.toCSS()?0:undefined:i.numericCompare(this.value,e.value)},t.exports=s},{"./js-eval-node":64,"./node":70,"./variable":82}],74:[function(e,t,n){function i(e,t){var n,i="",r=t.length,o={add:function(e){i+=e}};for(n=0;n<r;n++)t[n].eval(e).genCSS(e,o);return i}var r=e("./node"),o=e("./value"),s=e("./keyword"),a=function(e,t,n,i,s,a,l,u){this.name=e,this.value=t instanceof r?t:new o([t]),this.important=n?" "+n.trim():"",this.merge=i,this.index=s,this.currentFileInfo=a,this.inline=l||!1,this.variable=u!==undefined?u:e.charAt&&"@"===e.charAt(0),this.allowRoot=!0};a.prototype=new r,a.prototype.type="Rule",a.prototype.genCSS=function(e,t){t.add(this.name+(e.compress?":":": "),this.currentFileInfo,this.index);try{this.value.genCSS(e,t)}catch(e){throw e.index=this.index,e.filename=this.currentFileInfo.filename,e}t.add(this.important+(this.inline||e.lastRule&&e.compress?"":";"),this.currentFileInfo,this.index)},a.prototype.eval=function(e){var t,n=!1,r=this.name,o=this.variable;"string"!=typeof r&&(r=1===r.length&&r[0]instanceof s?r[0].value:i(e,r),o=!1),"font"!==r||e.strictMath||(n=!0,e.strictMath=!0);try{if(e.importantScope.push({}),t=this.value.eval(e),!this.variable&&"DetachedRuleset"===t.type)throw{message:"Rulesets cannot be evaluated on a property.",index:this.index,filename:this.currentFileInfo.filename};var l=this.important,u=e.importantScope.pop();return!l&&u.important&&(l=u.important),new a(r,t,l,this.merge,this.index,this.currentFileInfo,this.inline,o)}catch(e){throw"number"!=typeof e.index&&(e.index=this.index,e.filename=this.currentFileInfo.filename),e}finally{n&&(e.strictMath=!1)}},a.prototype.makeImportant=function(){return new a(this.name,this.value,"!important",this.merge,this.index,this.currentFileInfo,this.inline)},t.exports=a},{"./keyword":65,"./node":70,"./value":81}],75:[function(e,t,n){var i=e("./node"),r=e("./variable"),o=function(e){this.variable=e,this.allowRoot=!0};o.prototype=new i,o.prototype.type="RulesetCall",o.prototype.eval=function(e){return new r(this.variable).eval(e).callEval(e)},t.exports=o},{"./node":70,"./variable":82}],76:[function(e,t,n){var i=e("./node"),r=e("./rule"),o=e("./selector"),s=e("./element"),a=e("./paren"),l=e("../contexts"),u=e("../functions/function-registry"),c=e("../functions/default"),f=e("./debug-info"),h=function(e,t,n,i){this.selectors=e,this.rules=t,this._lookups={},this.strictImports=n,this.copyVisibilityInfo(i),this.allowRoot=!0};h.prototype=new i,h.prototype.type="Ruleset",h.prototype.isRuleset=!0,h.prototype.isRulesetLike=!0,h.prototype.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))},h.prototype.eval=function(e){var t,n,i,o,s=this.selectors,a=!1;if(s&&(n=s.length)){for(t=[],c.error({type:"Syntax",message:"it is currently only allowed in parametric mixin guards,"}),o=0;o<n;o++)i=s[o].eval(e),t.push(i),i.evaldCondition&&(a=!0);c.reset()}else a=!0;var l,f,p=this.rules?this.rules.slice(0):null,d=new h(t,p,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),a||(p.length=0),d.functionRegistry=function(e){for(var t,n=0,i=e.length;n!==i;++n)if(t=e[n].functionRegistry)return t;return u}(e.frames).inherit();var v=e.frames;v.unshift(d);var m=e.selectors;m||(e.selectors=m=[]),m.unshift(this.selectors),(d.root||d.allowImports||!d.strictImports)&&d.evalImports(e);var g=d.rules,y=g?g.length:0;for(o=0;o<y;o++)g[o].evalFirst&&(g[o]=g[o].eval(e));var b=e.mediaBlocks&&e.mediaBlocks.length||0;for(o=0;o<y;o++)"MixinCall"===g[o].type?(p=g[o].eval(e).filter(function(e){return!(e instanceof r&&e.variable)||!d.variable(e.name)}),g.splice.apply(g,[o,1].concat(p)),y+=p.length-1,o+=p.length-1,d.resetCache()):"RulesetCall"===g[o].type&&(p=g[o].eval(e).rules.filter(function(e){return!(e instanceof r&&e.variable)}),g.splice.apply(g,[o,1].concat(p)),y+=p.length-1,o+=p.length-1,d.resetCache());for(o=0;o<g.length;o++)l=g[o],l.evalFirst||(g[o]=l=l.eval?l.eval(e):l);for(o=0;o<g.length;o++)if((l=g[o])instanceof h&&l.selectors&&1===l.selectors.length&&l.selectors[0].isJustParentSelector()){g.splice(o--,1);for(var w=0;w<l.rules.length;w++)f=l.rules[w],f.copyVisibilityInfo(l.visibilityInfo()),f instanceof r&&f.variable||g.splice(++o,0,f)}if(v.shift(),m.shift(),e.mediaBlocks)for(o=b;o<e.mediaBlocks.length;o++)e.mediaBlocks[o].bubbleSelectors(t);return d},h.prototype.evalImports=function(e){var t,n,i=this.rules;if(i)for(t=0;t<i.length;t++)"Import"===i[t].type&&(n=i[t].eval(e),n&&(n.length||0===n.length)?(i.splice.apply(i,[t,1].concat(n)),t+=n.length-1):i.splice(t,1,n),this.resetCache())},h.prototype.makeImportant=function(){return new h(this.selectors,this.rules.map(function(e){return e.makeImportant?e.makeImportant():e}),this.strictImports,this.visibilityInfo())},h.prototype.matchArgs=function(e){return!e||0===e.length},h.prototype.matchCondition=function(e,t){var n=this.selectors[this.selectors.length-1];return!!n.evaldCondition&&!(n.condition&&!n.condition.eval(new l.Eval(t,t.frames)))},h.prototype.resetCache=function(){this._rulesets=null,this._variables=null,this._lookups={}},h.prototype.variables=function(){return this._variables||(this._variables=this.rules?this.rules.reduce(function(e,t){if(t instanceof r&&!0===t.variable&&(e[t.name]=t),"Import"===t.type&&t.root&&t.root.variables){var n=t.root.variables();for(var i in n)n.hasOwnProperty(i)&&(e[i]=n[i])}return e},{}):{}),this._variables},h.prototype.variable=function(e){return this.variables()[e]},h.prototype.rulesets=function(){if(!this.rules)return[];var e,t,n=[],i=this.rules,r=i.length;for(e=0;e<r;e++)t=i[e],t.isRuleset&&n.push(t);return n},h.prototype.prependRule=function(e){var t=this.rules;t?t.unshift(e):this.rules=[e]},h.prototype.find=function(e,t,n){t=t||this;var i,r,s=[],a=e.toCSS();return a in this._lookups?this._lookups[a]:(this.rulesets().forEach(function(a){if(a!==t)for(var l=0;l<a.selectors.length;l++)if(i=e.match(a.selectors[l])){if(e.elements.length>i){if(!n||n(a)){r=a.find(new o(e.elements.slice(i)),t,n);for(var u=0;u<r.length;++u)r[u].path.push(a);Array.prototype.push.apply(s,r)}}else s.push({rule:a,path:[]});break}}),this._lookups[a]=s,s)},h.prototype.genCSS=function(e,t){var n,i,r,o,s,a=[],l=[];e.tabLevel=e.tabLevel||0,this.root||e.tabLevel++;var u,c=e.compress?"":Array(e.tabLevel+1).join(" "),h=e.compress?"":Array(e.tabLevel).join(" "),p=0,d=0;for(n=0;n<this.rules.length;n++)o=this.rules[n],"Comment"===o.type?(d===n&&d++,l.push(o)):o.isCharset&&o.isCharset()?(l.splice(p,0,o),p++,d++):"Import"===o.type?(l.splice(d,0,o),d++):l.push(o);if(l=a.concat(l),!this.root){r=f(e,this,h),r&&(t.add(r),t.add(h));var v,m=this.paths,g=m.length;for(u=e.compress?",":",\n"+h,n=0;n<g;n++)if(s=m[n],v=s.length)for(n>0&&t.add(u),e.firstSelector=!0,s[0].genCSS(e,t),e.firstSelector=!1,i=1;i<v;i++)s[i].genCSS(e,t);t.add((e.compress?"{":" {\n")+c)}for(n=0;n<l.length;n++){o=l[n],n+1===l.length&&(e.lastRule=!0);var y=e.lastRule;(function(e){return"boolean"==typeof e.isRulesetLike?e.isRulesetLike:"function"==typeof e.isRulesetLike&&e.isRulesetLike()})(o)&&(e.lastRule=!1),o.genCSS?o.genCSS(e,t):o.value&&t.add(o.value.toString()),e.lastRule=y,e.lastRule?e.lastRule=!1:t.add(e.compress?"":"\n"+c)}this.root||(t.add(e.compress?"}":"\n"+h+"}"),e.tabLevel--),t.isEmpty()||e.compress||!this.firstRoot||t.add("\n")},h.prototype.joinSelectors=function(e,t,n){for(var i=0;i<n.length;i++)this.joinSelector(e,t,n[i])},h.prototype.joinSelector=function(e,t,n){function i(e,t){var n,i;if(0===e.length)n=new a(e[0]);else{var r=[];for(i=0;i<e.length;i++)r.push(new s(null,e[i],t.index,t.currentFileInfo));n=new a(new o(r))}return n}function r(e,t){var n;return n=new s(null,e,t.index,t.currentFileInfo),new o([n])}function l(e,t,n,i){var r,o,a;if(r=[],e.length>0?(r=e.slice(0),o=r.pop(),a=i.createDerived(o.elements.slice(0))):a=i.createDerived([]),t.length>0){var l=n.combinator,u=t[0].elements[0];l.emptyOrWhitespace&&!u.combinator.emptyOrWhitespace&&(l=u.combinator),a.elements.push(new s(l,u.value,n.index,n.currentFileInfo)),a.elements=a.elements.concat(t[0].elements.slice(1))}if(0!==a.elements.length&&r.push(a),t.length>1){var c=t.slice(1);c=c.map(function(e){return e.createDerived(e.elements,[])}),r=r.concat(c)}return r}function u(e,t,n,i,r){var o;for(o=0;o<e.length;o++){var s=l(e[o],t,n,i);r.push(s)}return r}function c(e,t){var n,i;if(0!==e.length){if(0===t.length)return void t.push([new o(e)]);for(n=0;n<t.length;n++)i=t[n],i.length>0?i[i.length-1]=i[i.length-1].createDerived(i[i.length-1].elements.concat(e)):i.push(new o(e))}}function f(e,t,n){var o,a,h,p,d,v,m,g,y,b,w=!1;for(p=[],d=[[]],o=0;o<n.elements.length;o++)if(g=n.elements[o],"&"!==g.value){var x=function(e){var t;return"Paren"!==e.value.type?null:(t=e.value.value,"Selector"!==t.type?null:t)}(g);if(null!=x){c(p,d);var S,C=[],k=[];for(S=f(C,t,x),w=w||S,h=0;h<C.length;h++){var I=r(i(C[h],g),g);u(d,[I],g,n,k)}d=k,p=[]}else p.push(g)}else{for(w=!0,v=[],c(p,d),a=0;a<d.length;a++)if(m=d[a],0===t.length)m.length>0&&m[0].elements.push(new s(g.combinator,"",g.index,g.currentFileInfo)),v.push(m);else for(h=0;h<t.length;h++){var A=l(m,t[h],g,n);v.push(A)}d=v,p=[]}for(c(p,d),o=0;o<d.length;o++)(y=d[o].length)>0&&(e.push(d[o]),b=d[o][y-1],d[o][y-1]=b.createDerived(b.elements,n.extendList));return w}function h(e,t){var n=t.createDerived(t.elements,t.extendList,t.evaldCondition);return n.copyVisibilityInfo(e),n}var p,d;if(d=[],!f(d,t,n))if(t.length>0)for(d=[],p=0;p<t.length;p++){var v=t[p].map(h.bind(this,n.visibilityInfo()));v.push(n),d.push(v)}else d=[[n]];for(p=0;p<d.length;p++)e.push(d[p])},t.exports=h},{"../contexts":11,"../functions/default":20,"../functions/function-registry":22,"./debug-info":54,"./element":58,"./node":70,"./paren":72,"./rule":74,"./selector":77}],77:[function(e,t,n){var i=e("./node"),r=e("./element"),o=function(e,t,n,i,r,o){this.elements=e,this.extendList=t,this.condition=n,this.currentFileInfo=r||{},n||(this.evaldCondition=!0),this.copyVisibilityInfo(o)};o.prototype=new i,o.prototype.type="Selector",o.prototype.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))},o.prototype.createDerived=function(e,t,n){var i=this.visibilityInfo();n=null!=n?n:this.evaldCondition;var r=new o(e,t||this.extendList,null,this.index,this.currentFileInfo,i);return r.evaldCondition=n,r.mediaEmpty=this.mediaEmpty,r},o.prototype.createEmptySelectors=function(){var e=new r("","&",this.index,this.currentFileInfo),t=[new o([e],null,null,this.index,this.currentFileInfo)];return t[0].mediaEmpty=!0,t},o.prototype.match=function(e){var t,n,i=this.elements,r=i.length;if(e.CacheElements(),0===(t=e._elements.length)||r<t)return 0;for(n=0;n<t;n++)if(i[n].value!==e._elements[n])return 0;return t},o.prototype.CacheElements=function(){if(!this._elements){var e=this.elements.map(function(e){return e.combinator.value+(e.value.value||e.value)}).join("").match(/[,&#\*\.\w-]([\w-]|(\\.))*/g);e?"&"===e[0]&&e.shift():e=[],this._elements=e}},o.prototype.isJustParentSelector=function(){return!this.mediaEmpty&&1===this.elements.length&&"&"===this.elements[0].value&&(" "===this.elements[0].combinator.value||""===this.elements[0].combinator.value)},o.prototype.eval=function(e){var t=this.condition&&this.condition.eval(e),n=this.elements,i=this.extendList;return n=n&&n.map(function(t){return t.eval(e)}),i=i&&i.map(function(t){return t.eval(e)}),this.createDerived(n,i,t)},o.prototype.genCSS=function(e,t){var n,i;if(e&&e.firstSelector||""!==this.elements[0].combinator.value||t.add(" ",this.currentFileInfo,this.index),!this._css)for(n=0;n<this.elements.length;n++)i=this.elements[n],i.genCSS(e,t)},o.prototype.getIsOutput=function(){return this.evaldCondition},t.exports=o},{"./element":58,"./node":70}],78:[function(e,t,n){var i=e("./node"),r=function(e){this.value=e};r.prototype=new i,r.prototype.type="UnicodeDescriptor",t.exports=r},{"./node":70}],79:[function(e,t,n){var i=e("./node"),r=e("../data/unit-conversions"),o=function(e,t,n){this.numerator=e?e.slice(0).sort():[],this.denominator=t?t.slice(0).sort():[],n?this.backupUnit=n:e&&e.length&&(this.backupUnit=e[0])};o.prototype=new i,o.prototype.type="Unit",o.prototype.clone=function(){return new o(this.numerator.slice(0),this.denominator.slice(0),this.backupUnit)},o.prototype.genCSS=function(e,t){var n=e&&e.strictUnits;1===this.numerator.length?t.add(this.numerator[0]):!n&&this.backupUnit?t.add(this.backupUnit):!n&&this.denominator.length&&t.add(this.denominator[0])},o.prototype.toString=function(){var e,t=this.numerator.join("*");for(e=0;e<this.denominator.length;e++)t+="/"+this.denominator[e];return t},o.prototype.compare=function(e){return this.is(e.toString())?0:undefined},o.prototype.is=function(e){return this.toString().toUpperCase()===e.toUpperCase()},o.prototype.isLength=function(){return Boolean(this.toCSS().match(/px|em|%|in|cm|mm|pc|pt|ex/))},o.prototype.isEmpty=function(){return 0===this.numerator.length&&0===this.denominator.length},o.prototype.isSingular=function(){return this.numerator.length<=1&&0===this.denominator.length},o.prototype.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)},o.prototype.usedUnits=function(){var e,t,n,i={};t=function(t){return e.hasOwnProperty(t)&&!i[n]&&(i[n]=t),t};for(n in r)r.hasOwnProperty(n)&&(e=r[n],this.map(t));return i},o.prototype.cancel=function(){var e,t,n={};for(t=0;t<this.numerator.length;t++)e=this.numerator[t],n[e]=(n[e]||0)+1;for(t=0;t<this.denominator.length;t++)e=this.denominator[t],n[e]=(n[e]||0)-1;this.numerator=[],this.denominator=[];for(e in n)if(n.hasOwnProperty(e)){var i=n[e];if(i>0)for(t=0;t<i;t++)this.numerator.push(e);else if(i<0)for(t=0;t<-i;t++)this.denominator.push(e)}this.numerator.sort(),this.denominator.sort()},t.exports=o},{"../data/unit-conversions":14,"./node":70}],80:[function(e,t,n){var i=e("./node"),r=function(e,t,n,i){this.value=e,this.currentFileInfo=n,this.index=t,this.isEvald=i};r.prototype=new i,r.prototype.type="Url",r.prototype.accept=function(e){this.value=e.visit(this.value)},r.prototype.genCSS=function(e,t){t.add("url("),this.value.genCSS(e,t),t.add(")")},r.prototype.eval=function(e){var t,n=this.value.eval(e);if(!this.isEvald&&(t=this.currentFileInfo&&this.currentFileInfo.rootpath,t&&"string"==typeof n.value&&e.isPathRelative(n.value)&&(n.quote||(t=t.replace(/[\(\)'"\s]/g,function(e){return"\\"+e})),n.value=t+n.value),n.value=e.normalizePath(n.value),e.urlArgs&&!n.value.match(/^\s*data:/))){var i=-1===n.value.indexOf("?")?"?":"&",o=i+e.urlArgs;-1!==n.value.indexOf("#")?n.value=n.value.replace("#",o+"#"):n.value+=o}return new r(n,this.index,this.currentFileInfo,!0)},t.exports=r},{"./node":70}],81:[function(e,t,n){var i=e("./node"),r=function(e){if(this.value=e,!e)throw new Error("Value requires an array argument")};r.prototype=new i,r.prototype.type="Value",r.prototype.accept=function(e){this.value&&(this.value=e.visitArray(this.value))},r.prototype.eval=function(e){return 1===this.value.length?this.value[0].eval(e):new r(this.value.map(function(t){return t.eval(e)}))},r.prototype.genCSS=function(e,t){var n;for(n=0;n<this.value.length;n++)this.value[n].genCSS(e,t),n+1<this.value.length&&t.add(e&&e.compress?",":", ")},t.exports=r},{"./node":70}],82:[function(e,t,n){var i=e("./node"),r=function(e,t,n){this.name=e,this.index=t,this.currentFileInfo=n||{}};r.prototype=new i,r.prototype.type="Variable",r.prototype.eval=function(e){var t,n=this.name;if(0===n.indexOf("@@")&&(n="@"+new r(n.slice(1),this.index,this.currentFileInfo).eval(e).value),this.evaluating)throw{type:"Name",message:"Recursive variable definition for "+n,filename:this.currentFileInfo.filename,index:this.index};if(this.evaluating=!0,t=this.find(e.frames,function(t){var i=t.variable(n);if(i){if(i.important){e.importantScope[e.importantScope.length-1].important=i.important}return i.value.eval(e)}}))return this.evaluating=!1,t;throw{type:"Name",message:"variable "+n+" is undefined",filename:this.currentFileInfo.filename,index:this.index}},r.prototype.find=function(e,t){for(var n,i=0;i<e.length;i++)if(n=t.call(e,e[i]))return n;return null},t.exports=r},{"./node":70}],83:[function(e,t,n){t.exports={getLocation:function(e,t){for(var n=e+1,i=null,r=-1;--n>=0&&"\n"!==t.charAt(n);)r++;return"number"==typeof e&&(i=(t.slice(0,e).match(/\n/g)||"").length),{line:i,column:r}}}},{}],84:[function(e,t,n){var i=e("../tree"),r=e("./visitor"),o=e("../logger"),s=function(){this._visitor=new r(this),this.contexts=[],this.allExtendsStack=[[]]};s.prototype={run:function(e){return e=this._visitor.visit(e),e.allExtends=this.allExtendsStack[0],e},visitRule:function(e,t){t.visitDeeper=!1},visitMixinDefinition:function(e,t){t.visitDeeper=!1},visitRuleset:function(e,t){if(!e.root){var n,r,o,s,a=[],l=e.rules,u=l?l.length:0;for(n=0;n<u;n++)e.rules[n]instanceof i.Extend&&(a.push(l[n]),e.extendOnEveryPath=!0);var c=e.paths;for(n=0;n<c.length;n++){var f=c[n],h=f[f.length-1],p=h.extendList;for(s=p?p.slice(0).concat(a):a,s&&(s=s.map(function(e){return e.clone()})),r=0;r<s.length;r++)this.foundExtends=!0,o=s[r],o.findSelfSelectors(f),o.ruleset=e,0===r&&(o.firstExtendOnThisSelectorPath=!0),this.allExtendsStack[this.allExtendsStack.length-1].push(o)}this.contexts.push(e.selectors)}},visitRulesetOut:function(e){e.root||(this.contexts.length=this.contexts.length-1)},visitMedia:function(e,t){e.allExtends=[],this.allExtendsStack.push(e.allExtends)},visitMediaOut:function(e){this.allExtendsStack.length=this.allExtendsStack.length-1},visitDirective:function(e,t){e.allExtends=[],this.allExtendsStack.push(e.allExtends)},visitDirectiveOut:function(e){this.allExtendsStack.length=this.allExtendsStack.length-1}};var a=function(){this._visitor=new r(this)};a.prototype={run:function(e){var t=new s;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 n=this._visitor.visit(e);return this.checkExtendsForNonMatched(e.allExtends),n},checkExtendsForNonMatched:function(e){var t=this.extendIndices;e.filter(function(e){return!e.hasFoundMatches&&1==e.parent_ids.length}).forEach(function(e){var n="_unknown_";try{n=e.selector.toCSS({})}catch(e){}t[e.index+" "+n]||(t[e.index+" "+n]=!0,o.warn("extend '"+n+"' has no matches"))})},doExtendChaining:function(e,t,n){var r,o,s,a,l,u,c,f,h=[],p=this;for(n=n||0,r=0;r<e.length;r++)for(o=0;o<t.length;o++)u=e[r],c=t[o],u.parent_ids.indexOf(c.object_id)>=0||(l=[c.selfSelectors[0]],s=p.findMatch(u,l),s.length&&(u.hasFoundMatches=!0,u.selfSelectors.forEach(function(e){var t=c.visibilityInfo();a=p.extendSelector(s,l,e,u.isVisible()),f=new i.Extend(c.selector,c.option,0,c.currentFileInfo,t),f.selfSelectors=a,a[a.length-1].extendList=[f],h.push(f),f.ruleset=c.ruleset,f.parent_ids=f.parent_ids.concat(c.parent_ids,u.parent_ids),c.firstExtendOnThisSelectorPath&&(f.firstExtendOnThisSelectorPath=!0,c.ruleset.paths.push(a))})));if(h.length){if(this.extendChainCount++,n>100){var d="{unable to calculate}",v="{unable to calculate}";try{d=h[0].selfSelectors[0].toCSS(),v=h[0].selector.toCSS()}catch(e){}throw{message:"extend circular reference detected. One of the circular extends is currently:"+d+":extend("+v+")"}}return h.concat(p.doExtendChaining(h,t,n+1))}return h},visitRule:function(e,t){t.visitDeeper=!1},visitMixinDefinition:function(e,t){t.visitDeeper=!1},visitSelector:function(e,t){t.visitDeeper=!1},visitRuleset:function(e,t){if(!e.root){var n,i,r,o,s=this.allExtendsStack[this.allExtendsStack.length-1],a=[],l=this;for(r=0;r<s.length;r++)for(i=0;i<e.paths.length;i++)if(o=e.paths[i],!e.extendOnEveryPath){var u=o[o.length-1].extendList;u&&u.length||(n=this.findMatch(s[r],o),n.length&&(s[r].hasFoundMatches=!0,s[r].selfSelectors.forEach(function(e){var t;t=l.extendSelector(n,o,e,s[r].isVisible()),a.push(t)})))}e.paths=e.paths.concat(a)}},findMatch:function(e,t){var n,i,r,o,s,a,l,u=this,c=e.selector.elements,f=[],h=[];for(n=0;n<t.length;n++)for(i=t[n],r=0;r<i.elements.length;r++)for(o=i.elements[r],(e.allowBefore||0===n&&0===r)&&f.push({pathIndex:n,index:r,matched:0,initialCombinator:o.combinator}),a=0;a<f.length;a++)l=f[a],s=o.combinator.value,""===s&&0===r&&(s=" "),!u.isElementValuesEqual(c[l.matched].value,o.value)||l.matched>0&&c[l.matched].combinator.value!==s?l=null:l.matched++,l&&(l.finished=l.matched===c.length,l.finished&&!e.allowAfter&&(r+1<i.elements.length||n+1<t.length)&&(l=null)),l?l.finished&&(l.length=c.length,l.endPathIndex=n,l.endPathElementIndex=r+1,f.length=0,h.push(l)):(f.splice(a,1),a--);return h},isElementValuesEqual:function(e,t){if("string"==typeof e||"string"==typeof t)return e===t;if(e instanceof i.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===t):!e.value&&!t.value);if(e=e.value,t=t.value,e instanceof i.Selector){if(!(t instanceof i.Selector)||e.elements.length!==t.elements.length)return!1;for(var n=0;n<e.elements.length;n++){if(e.elements[n].combinator.value!==t.elements[n].combinator.value&&(0!==n||(e.elements[n].combinator.value||" ")!==(t.elements[n].combinator.value||" ")))return!1;if(!this.isElementValuesEqual(e.elements[n].value,t.elements[n].value))return!1}return!0}return!1},extendSelector:function(e,t,n,r){var o,s,a,l,u,c=0,f=0,h=[];for(o=0;o<e.length;o++)l=e[o],s=t[l.pathIndex],a=new i.Element(l.initialCombinator,n.elements[0].value,n.elements[0].index,n.elements[0].currentFileInfo),l.pathIndex>c&&f>0&&(h[h.length-1].elements=h[h.length-1].elements.concat(t[c].elements.slice(f)),f=0,c++),u=s.elements.slice(f,l.index).concat([a]).concat(n.elements.slice(1)),c===l.pathIndex&&o>0?h[h.length-1].elements=h[h.length-1].elements.concat(u):(h=h.concat(t.slice(c,l.pathIndex)),h.push(new i.Selector(u))),c=l.endPathIndex,(f=l.endPathElementIndex)>=t[c].elements.length&&(f=0,c++);return c<t.length&&f>0&&(h[h.length-1].elements=h[h.length-1].elements.concat(t[c].elements.slice(f)),c++),h=h.concat(t.slice(c,t.length)),h=h.map(function(e){var t=e.createDerived(e.elements);return r?t.ensureVisibility():t.ensureInvisibility(),t})},visitMedia:function(e,t){var n=e.allExtends.concat(this.allExtendsStack[this.allExtendsStack.length-1]);n=n.concat(this.doExtendChaining(n,e.allExtends)),this.allExtendsStack.push(n)},visitMediaOut:function(e){var t=this.allExtendsStack.length-1;this.allExtendsStack.length=t},visitDirective:function(e,t){var n=e.allExtends.concat(this.allExtendsStack[this.allExtendsStack.length-1]);n=n.concat(this.doExtendChaining(n,e.allExtends)),this.allExtendsStack.push(n)},visitDirectiveOut:function(e){var t=this.allExtendsStack.length-1;this.allExtendsStack.length=t}},t.exports=a},{"../logger":33,"../tree":62,"./visitor":91}],85:[function(e,t,n){function i(e){this.imports=[],this.variableImports=[],this._onSequencerEmpty=e,this._currentDepth=0}i.prototype.addImport=function(e){var t=this,n={callback:e,args:null,isReady:!1};return this.imports.push(n),function(){n.args=Array.prototype.slice.call(arguments,0),n.isReady=!0,t.tryRun()}},i.prototype.addVariableImport=function(e){this.variableImports.push(e)},i.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()},t.exports=i},{}],86:[function(e,t,n){var i=e("../contexts"),r=e("./visitor"),o=e("./import-sequencer"),s=function(e,t){this._visitor=new r(this),this._importer=e,this._finish=t,this.context=new i.Eval,this.importCount=0,this.onceFileDetectionMap={},this.recursionDetector={},this._sequencer=new o(this._onSequencerEmpty.bind(this))};s.prototype={isReplacing:!1,run:function(e){try{this._visitor.visit(e)}catch(e){this.error=e}this.isFinished=!0,this._sequencer.tryRun()},_onSequencerEmpty:function(){this.isFinished&&this._finish(this.error)},visitImport:function(e,t){var n=e.options.inline;if(!e.css||n){var r=new i.Eval(this.context,this.context.frames.slice(0)),o=r.frames[0];this.importCount++,e.isVariableImport()?this._sequencer.addVariableImport(this.processImportNode.bind(this,e,r,o)):this.processImportNode(e,r,o)}t.visitDeeper=!1},processImportNode:function(e,t,n){var i,r=e.options.inline;try{i=e.evalForImport(t)}catch(t){t.filename||(t.index=e.index,t.filename=e.currentFileInfo.filename),e.css=!0,e.error=t}if(!i||i.css&&!r)this.importCount--,this.isFinished&&this._sequencer.tryRun();else{i.options.multiple&&(t.importMultiple=!0);for(var o=i.css===undefined,s=0;s<n.rules.length;s++)if(n.rules[s]===e){n.rules[s]=i;break}var a=this.onImported.bind(this,i,t),l=this._sequencer.addImport(a);this._importer.push(i.getPath(),o,i.currentFileInfo,i.options,l)}},onImported:function(e,t,n,i,r,o){n&&(n.filename||(n.index=e.index,n.filename=e.currentFileInfo.filename),this.error=n);var s=this,a=e.options.inline,l=e.options.plugin,u=e.options.optional,c=r||o in s.recursionDetector;if(t.importMultiple||(e.skip=!!c||function(){return o in s.onceFileDetectionMap||(s.onceFileDetectionMap[o]=!0,!1)}),!o&&u&&(e.skip=!0),i&&(e.root=i,e.importedFilename=o,!a&&!l&&(t.importMultiple||!c))){s.recursionDetector[o]=!0;var f=this.context;this.context=t;try{this._visitor.visit(i)}catch(n){this.error=n}this.context=f}s.importCount--,s.isFinished&&s._sequencer.tryRun()},visitRule:function(e,t){"DetachedRuleset"===e.value.type?this.context.frames.unshift(e):t.visitDeeper=!1},visitRuleOut:function(e){"DetachedRuleset"===e.value.type&&this.context.frames.shift()},visitDirective:function(e,t){this.context.frames.unshift(e)},visitDirectiveOut: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()}},t.exports=s},{"../contexts":11,"./import-sequencer":85,"./visitor":91}],87:[function(e,t,n){var i={Visitor:e("./visitor"),ImportVisitor:e("./import-visitor"),MarkVisibleSelectorsVisitor:e("./set-tree-visibility-visitor"),ExtendVisitor:e("./extend-visitor"),JoinSelectorVisitor:e("./join-selector-visitor"),ToCSSVisitor:e("./to-css-visitor")};t.exports=i},{"./extend-visitor":84,"./import-visitor":86,"./join-selector-visitor":88,"./set-tree-visibility-visitor":89,"./to-css-visitor":90,"./visitor":91}],88:[function(e,t,n){var i=e("./visitor"),r=function(){this.contexts=[[]],this._visitor=new i(this)};r.prototype={run:function(e){return this._visitor.visit(e)},visitRule:function(e,t){t.visitDeeper=!1},visitMixinDefinition:function(e,t){t.visitDeeper=!1},visitRuleset:function(e,t){var n,i=this.contexts[this.contexts.length-1],r=[];this.contexts.push(r),e.root||(n=e.selectors,n&&(n=n.filter(function(e){return e.getIsOutput()}),e.selectors=n.length?n:n=null,n&&e.joinSelectors(r,i,n)),n||(e.rules=null),e.paths=r)},visitRulesetOut:function(e){this.contexts.length=this.contexts.length-1},visitMedia:function(e,t){var n=this.contexts[this.contexts.length-1];e.rules[0].root=0===n.length||n[0].multiMedia},visitDirective:function(e,t){var n=this.contexts[this.contexts.length-1];e.rules&&e.rules.length&&(e.rules[0].root=e.isRooted||0===n.length||null)}},t.exports=r},{"./visitor":91}],89:[function(e,t,n){var i=function(e){this.visible=e};i.prototype.run=function(e){this.visit(e)},i.prototype.visitArray=function(e){if(!e)return e;var t,n=e.length;for(t=0;t<n;t++)this.visit(e[t]);return e},i.prototype.visit=function(e){return e?e.constructor===Array?this.visitArray(e):!e.blocksVisibility||e.blocksVisibility()?e:(this.visible?e.ensureVisibility():e.ensureInvisibility(),e.accept(this),e):e},t.exports=i},{}],90:[function(e,t,n){var i=e("../tree"),r=e("./visitor"),o=function(e){this._visitor=new r(this),this._context=e};o.prototype={containsSilentNonBlockedChild:function(e){var t;if(null==e)return!1;for(var n=0;n<e.length;n++)if(t=e[n],t.isSilent&&t.isSilent(this._context)&&!t.blocksVisibility())return!0;return!1},keepOnlyVisibleChilds:function(e){null!=e&&null!=e.rules&&(e.rules=e.rules.filter(function(e){return e.isVisible()}))},isEmpty:function(e){return null==e||null==e.rules||0===e.rules.length},hasVisibleSelector:function(e){return null!=e&&null!=e.paths&&e.paths.length>0},resolveVisibility:function(e,t){if(!e.blocksVisibility()){if(this.isEmpty(e)&&!this.containsSilentNonBlockedChild(t))return;return e}var n=e.rules[0];if(this.keepOnlyVisibleChilds(n),!this.isEmpty(n))return e.ensureVisibility(),e.removeVisibilityBlock(),e},isVisibleRuleset:function(e){return!!e.firstRoot||!this.isEmpty(e)&&!(!e.root&&!this.hasVisibleSelector(e))}};var s=function(e){this._visitor=new r(this),this._context=e,this.utils=new o(e)};s.prototype={isReplacing:!0,run:function(e){return this._visitor.visit(e)},visitRule: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 n=e.rules[0].rules;return e.accept(this._visitor),t.visitDeeper=!1,this.utils.resolveVisibility(e,n)},visitImport:function(e,t){if(!e.blocksVisibility())return e},visitDirective:function(e,t){return e.rules&&e.rules.length?this.visitDirectiveWithBody(e,t):this.visitDirectiveWithoutBody(e,t)},visitDirectiveWithBody:function(e,t){function n(e){var t=e.rules;return 1===t.length&&(!t[0].paths||0===t[0].paths.length)}var i=function(e){var t=e.rules;return n(e)?t[0].rules:t}(e);return e.accept(this._visitor),t.visitDeeper=!1,this.utils.isEmpty(e)||this._mergeRules(e.rules[0].rules),this.utils.resolveVisibility(e,i)},visitDirectiveWithoutBody:function(e,t){if(!e.blocksVisibility()){if("@charset"===e.name){if(this.charset){if(e.debugInfo){var n=new i.Comment("/* "+e.toCSS(this._context).replace(/\n/g,"")+" */\n");return n.debugInfo=e.debugInfo,this._visitor.visit(n)}return}this.charset=!0}return e}},checkValidNodes:function(e,t){if(e)for(var n=0;n<e.length;n++){var r=e[n];if(t&&r instanceof i.Rule&&!r.variable)throw{message:"Properties must be inside selector blocks. They cannot be in the root",index:r.index,filename:r.currentFileInfo&&r.currentFileInfo.filename};if(r instanceof i.Call)throw{message:"Function '"+r.name+"' is undefined",index:r.index,filename:r.currentFileInfo&&r.currentFileInfo.filename};if(r.type&&!r.allowRoot)throw{message:r.type+" node returned by a function is not valid here",index:r.index,filename:r.currentFileInfo&&r.currentFileInfo.filename}}},visitRuleset:function(e,t){var n,i=[];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,o=r?r.length:0,s=0;s<o;)n=r[s],n&&n.rules?(i.push(this._visitor.visit(n)),r.splice(s,1),o--):s++;o>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(),i.splice(0,0,e)),1===i.length?i[0]:i},_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 i.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,n,r,o={};for(r=e.length-1;r>=0;r--)if((n=e[r])instanceof i.Rule)if(o[n.name]){t=o[n.name],t instanceof i.Rule&&(t=o[n.name]=[o[n.name].toCSS(this._context)]);var s=n.toCSS(this._context);-1!==t.indexOf(s)?e.splice(r,1):t.push(s)}else o[n.name]=n}},_mergeRules:function(e){if(e){for(var t,n,r,o={},s=0;s<e.length;s++)(n=e[s])instanceof i.Rule&&n.merge&&(r=[n.name,n.important?"!":""].join(","),o[r]?e.splice(s--,1):o[r]=[],o[r].push(n));Object.keys(o).map(function(e){function r(e){return new i.Expression(e.map(function(e){return e.value}))}if(t=o[e],t.length>1){n=t[0];var s=[],a=[];t.map(function(e){"+"===e.merge&&(a.length>0&&s.push(r(a)),a=[]),a.push(e)}),s.push(r(a)),n.value=function(e){return new i.Value(e.map(function(e){return e}))}(s)}})}},visitAnonymous:function(e,t){if(!e.blocksVisibility())return e.accept(this._visitor),e}},t.exports=s},{"../tree":62,"./visitor":91}],91:[function(e,t,n){function i(e){return e}function r(e,t){var n,i;for(n in e)if(e.hasOwnProperty(n))switch(typeof(i=e[n])){case"function":i.prototype&&i.prototype.type&&(i.prototype.typeIndex=t++);break;case"object":t=r(i,t)}return t}var o=e("../tree"),s={visitDeeper:!0},a=!1,l=function(e){this._implementation=e,this._visitFnCache=[],a||(r(o,1),a=!0)};l.prototype={visit:function(e){if(!e)return e;var t=e.typeIndex;if(!t)return e;var n,r=this._visitFnCache,o=this._implementation,a=t<<1,l=1|a,u=r[a],c=r[l],f=s;if(f.visitDeeper=!0,u||(n="visit"+e.type,u=o[n]||i,c=o[n+"Out"]||i,r[a]=u,r[l]=c),u!==i){var h=u.call(o,e,f);o.isReplacing&&(e=h)}return f.visitDeeper&&e&&e.accept&&e.accept(this),c!=i&&c.call(o,e),e},visitArray:function(e,t){if(!e)return e;var n,i=e.length;if(t||!this._implementation.isReplacing){for(n=0;n<i;n++)this.visit(e[n]);return e}var r=[];for(n=0;n<i;n++){var o=this.visit(e[n]);o!==undefined&&(o.splice?o.length&&this.flatten(o,r):r.push(o))}return r},flatten:function(e,t){t||(t=[]);var n,i,r,o,s,a;for(i=0,n=e.length;i<n;i++)if((r=e[i])!==undefined)if(r.splice)for(s=0,o=r.length;s<o;s++)(a=r[s])!==undefined&&(a.splice?a.length&&this.flatten(a,t):t.push(a));else t.push(r);return t}},t.exports=l},{"../tree":62}],92:[function(e,t,n){"use strict";function i(){if(l.length)throw l.shift()}function r(e){var t;t=a.length?a.pop():new o,t.task=e,s(t)}function o(){this.task=null}var s=e("./raw"),a=[],l=[],u=s.makeRequestCallFromTimer(i);t.exports=r,o.prototype.call=function(){try{this.task.call()}catch(e){r.onerror?r.onerror(e):(l.push(e),u())}finally{this.task=null,a[a.length]=this}}},{"./raw":93}],93:[function(e,n,i){(function(e){"use strict";function t(e){s.length||(o(),a=!0),s[s.length]=e}function i(){for(;l<s.length;){var e=l;if(l+=1,s[e].call(),l>u){for(var t=0,n=s.length-l;t<n;t++)s[t]=s[t+l];s.length-=l,l=0}}s.length=0,l=0,a=!1}function r(e){return function(){function t(){clearTimeout(n),clearInterval(i),e()}var n=setTimeout(t,0),i=setInterval(t,50)}}n.exports=t;var o,s=[],a=!1,l=0,u=1024,c=e.MutationObserver||e.WebKitMutationObserver;o="function"==typeof c?function(e){var t=1,n=new c(e),i=document.createTextNode("");return n.observe(i,{characterData:!0}),function(){t=-t,i.data=t}}(i):r(i),t.requestFlush=o,t.makeRequestCallFromTimer=r}).call(this,void 0!==t?t:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],94:[function(e,t,n){"use strict";function i(){}function r(e){try{return e.then}catch(e){return g=e,y}}function o(e,t){try{return e(t)}catch(e){return g=e,y}}function s(e,t,n){try{e(t,n)}catch(e){return g=e,y}}function a(e){if("object"!=typeof this)throw new TypeError("Promises must be constructed via new");if("function"!=typeof e)throw new TypeError("not a function");this._45=0,this._81=0,this._65=null,this._54=null,e!==i&&v(e,this)}function l(e,t,n){return new e.constructor(function(r,o){var s=new a(i);s.then(r,o),u(e,new d(t,n,s))})}function u(e,t){for(;3===e._81;)e=e._65;if(a._10&&a._10(e),0===e._81)return 0===e._45?(e._45=1,void(e._54=t)):1===e._45?(e._45=2,void(e._54=[e._54,t])):void e._54.push(t);c(e,t)}function c(e,t){m(function(){var n=1===e._81?t.onFulfilled:t.onRejected;if(null===n)return void(1===e._81?f(t.promise,e._65):h(t.promise,e._65));var i=o(n,e._65);i===y?h(t.promise,g):f(t.promise,i)})}function f(e,t){if(t===e)return h(e,new TypeError("A promise cannot be resolved with itself."));if(t&&("object"==typeof t||"function"==typeof t)){var n=r(t);if(n===y)return h(e,g);if(n===e.then&&t instanceof a)return e._81=3,e._65=t,void p(e);if("function"==typeof n)return void v(n.bind(t),e)}e._81=1,e._65=t,p(e)}function h(e,t){e._81=2,e._65=t,a._97&&a._97(e,t),p(e)}function p(e){if(1===e._45&&(u(e,e._54),e._54=null),2===e._45){for(var t=0;t<e._54.length;t++)u(e,e._54[t]);e._54=null}}function d(e,t,n){this.onFulfilled="function"==typeof e?e:null,this.onRejected="function"==typeof t?t:null,this.promise=n}function v(e,t){var n=!1,i=s(e,function(e){n||(n=!0,f(t,e))},function(e){n||(n=!0,h(t,e))});n||i!==y||(n=!0,h(t,g))}var m=e("asap/raw"),g=null,y={};t.exports=a,a._10=null,a._97=null,a._61=i,a.prototype.then=function(e,t){if(this.constructor!==a)return l(this,e,t);var n=new a(i);return u(this,new d(e,t,n)),n}},{"asap/raw":93}],95:[function(e,t,n){"use strict";function i(e){var t=new r(r._61);return t._81=1,t._65=e,t}var r=e("./core.js");t.exports=r;var o=i(!0),s=i(!1),a=i(null),l=i(undefined),u=i(0),c=i("");r.resolve=function(e){if(e instanceof r)return e;if(null===e)return a;if(e===undefined)return l;if(!0===e)return o;if(!1===e)return s;if(0===e)return u;if(""===e)return c;if("object"==typeof e||"function"==typeof e)try{var t=e.then;if("function"==typeof t)return new r(t.bind(e))}catch(e){return new r(function(t,n){n(e)})}return i(e)},r.all=function(e){var t=Array.prototype.slice.call(e);return new r(function(e,n){function i(s,a){if(a&&("object"==typeof a||"function"==typeof a)){if(a instanceof r&&a.then===r.prototype.then){for(;3===a._81;)a=a._65;return 1===a._81?i(s,a._65):(2===a._81&&n(a._65),void a.then(function(e){i(s,e)},n))}var l=a.then;if("function"==typeof l){return void new r(l.bind(a)).then(function(e){i(s,e)},n)}}t[s]=a,0==--o&&e(t)}if(0===t.length)return e([]);for(var o=t.length,s=0;s<t.length;s++)i(s,t[s])})},r.reject=function(e){return new r(function(t,n){n(e)})},r.race=function(e){return new r(function(t,n){e.forEach(function(e){r.resolve(e).then(t,n)})})},r.prototype["catch"]=function(e){return this.then(null,e)}},{"./core.js":94}],96:[function(e,t,n){"function"!=typeof Promise.prototype.done&&(Promise.prototype.done=function(e,t){(arguments.length?this.then.apply(this,arguments):this).then(null,function(e){setTimeout(function(){throw e},0)})})},{}],97:[function(e,t,n){e("asap");"undefined"==typeof Promise&&(Promise=e("./lib/core.js"),e("./lib/es6-extensions.js")),e("./polyfill-done.js")},{"./lib/core.js":94,"./lib/es6-extensions.js":95,"./polyfill-done.js":96,asap:92}]},{},[2])(2)})}).call(t,n(10))},function(e,t){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t){e.exports=' <div id=pet_main class=pet-main> <div class=eevee id=pet_body> <div class=body> <div class=head> <div class=ears> <div class=ear> <div class=lobe></div> </div> <div class=ear> <div class=lobe></div> </div> </div> <div class=face> <div class=eyes> <div class=eye> <div class=eyelid></div> </div> <div class=eye> <div class=eyelid></div> </div> </div> <div class=nose></div> <div class=mouth></div> </div> </div> <div class=chest> <div class=fur> <div class=patch></div> </div> <div class=fur> <div class=patch></div> </div> <div class=fur> <div class=patch></div> </div> </div> <div class=legs> <div class=leg> <div class=inner-leg></div> </div> <div class=leg> <div class=inner-leg></div> </div> <div class=leg> <div class=inner-leg></div> </div> <div class=leg> <div class=inner-leg></div> </div> </div> <div class=tail> <div class=tail> <div class=tail> <div class=tail> <div class=tail> <div class="tail -end"></div> </div> </div> </div> </div> </div> </div> </div> <div class=pet-input> <input id=pet_talk class=pet-talk type=text value=""/> <a class=pet-talkto> OK </a> </div> <div id=pet-chat class=pet-chat> <div id=pet_word class=pet-word></div> <div class=pet-menu></div> <div class=pet-menu-btn>menu</div> </div> </div>'},function(e,t){e.exports=' <img id=pet_zhaohuan class=pet-zhaohuan src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAH00lEQVR4Xu1aT28TVxCfsTfnwidoOKaVShClUk8kp5SKikRxpJ4a23AqRjiXXkmOPWHEplKlxjHqpWocYaRKgRPOCaklwpzMjfAJaks9Neud6q3X9tu383Zfdm3SiPjo3Z0385v/Mw/hA//hBy4/nAFwZgEfOAJnLjBOA1jMl89l8egGIMwh4CERHfZo6kmjVukc95xv8+VpJ9O7C0hzQDALCC0EqO1s2Q+OSyvq/bFZwEr++1nKZJ4DwDn5QAI6xAwW6r/YTVPGV4p38gR0X6XlfY/QcnrWfBJQufPHAoBO+AAQCEu7W3YjDgRf+O3I9xBa9S37Uhwtk+djASB3s/TKM9PoX8dyrUu/1SqHutf6Zu+8YjWvfISAhZ3qw5qJkBN1geWbpUUkeKwcskEE5xDhbuB/gmZ9257XMZQrlJ6L+BF8TmuOO1Wz0KkAwurw2ZisILUF5AqlWoAxgkf1bTsvGM0Vb5cBUPjy6JeBeS4e5G6V5sAFEUMkGUdaFgHWyjh/y88d1zqfNhakB6BYEkwNAx+67qWd2k+tAaO5YkkEv6tDxiWAZGFyN+80gOiG9N9+vWoHrGG5WBKZ4OLwHQ2Yx3GLVABwWqlX7QBNRrOdetU+rzKZU4AERrgQmCcNACNcSGt9VyiJwPexTnMMnXf1qj0dAklxt3EEwlQWYArAcqFUUQLiRr1qr4/cRIkVOjdR3ekUWYAQ9p6kUQWAUuRzbTw5aQD8Akjkbe8nqr7d6uYF1XRDxY2i4VzRGIBAwLVc60JUXWESDFO5gO/fFJfmQqkSINoCGBdg3K1br9qBsttEYPWd9ACo6Us0LS6Wjyj7egp7FwGpTACLUSCpluRZE1F+d3vz0dD81SIJ8Ul962GQbgIE0gPAFDAxfPARXs0UI79qAnpldlDbY/B/cURqADw3UKtBPQJddN05uVAaavh4QIbSrV+T3AWExWFfgtAilyqyJRm7wIAgAeURsJ+TCZoEVOMIGoDwDl13kRN+wJQfLCsA8JEOQwJ43XOtObkE9vsR0UGyMcHjubpZ4GiyFhDX3opon3FpSRXGC1Q9yAOCAEyUv/tAcIiITdPOTXSER+iUUWhSLp4AukRQ65G1Lgtv1D4LyTUuwwJg2t6i685HaTRBTAp84lmh5cw6jtXimh6ugdKeqQmaIQA07a2ObsdxrQtpOrKVwp2rImMkobFcvP126J5DDvvt8xT8O02ZzLBGEY/VPoUNgqGixEdOMs1Aj08ED3a37bKptoXWyKVVBBQmHvBZBGgAQvOoZz2KA4RNncrUKVcsBWqUZADEFS0AbHcXqgbFzBAz98MDDxa6DiKsRw1AGUsNZAaTTlVjAUpjwviOCbKyWLliSfQBw+bH1FrEANTqWUtcuav6v1qGM8MYtv4IxQDOtOQhBxd4ONMSQnpaQOdxlNZFWkPwsoYu9XUIoaAOVP354VsZTOFCWddaO8o6s0igpsVA+T34js8C4aqsQ0SenyOiyNMj39VEV0/4rPNcMyzdJ4SKLJQvkBiliXNCYHC9PzNF0hlX13GtaS6usAAcKxMw+dWzomxmmxG+CxlYjNoR9IHr1ZTxmCeYCoK3iMk4zcCYjIGAIkby2lLYoLITR4XMSqd5roKTed170Z6+9uXMcGTODlQZEHzLEePx0dxRIhw3NYrsBZhJjkSa1urVTeEOw5/W7DUTnsGHT1+2vXQlIv/C5ZmNwf+aKq/DFWCe1QLmgWiWADpI0LLIWo+bF8Q2Q5Jv+hNaaljuVIMjvFIsPQ61vjHC7x28+QyJXg+DkgKCxh1jlyymmSYWAFNCGpNlh6Qqzacv26Lv/04C4ZuFyzN/RFrC/2UxIpjkUmOcz4dAOHjzIxD94LkCuV8vXPl0L1hLhJcsx61COWWmtgC/4hL5WC5ru5Zrzcb5n8rQs4P2dXLp/FdXPvl176/2z0Dw4toXM8P9H5v2Ug5GUgPA+n1Kpp69bP9OACtqYPTBFlun0Y4BIFVDlgoA3WJUnvmbxpBASvyznceMV8n1878UGNlKFaCxU7WXkpyVGADO9IXf71btuDW5EZ/PDtr3iEb9gwwCM0bXDjziDksMAFMoaed9cUzonkeBEFqUxqzedWckAoBrRADChVFSweXvdCBwmSfJoiQRAKat5jgAEDQYELw6IbQtTqCEZACEdvmT0b7OEhDh84XLMwemK7UoRSQDYAJbWhNrEXWC68I/167MeDfOQgDElN1jK4QmcVHBBAD1nZOzgBNwAQ4gdXwf1/qO0wKC+/wxNSbHsQKuCHtvWSBpGhTF01TWWSUXFtWFpxhqAkATCRr17c0nUWBoNldGnadKN1EQ9ANQ8PYXM60ZHNavGnv3APpzxbifBwbiGnezVLe2U2+nxZ0xeJ4YAN8KRGOiDjDXHdd6MBhALhdur4YGqabcETQhCxtihuifJy5KcuN1duJrckxiAATxyMUkQsvg+qwJj9HvJEh9MsFUAMSCwLPeBYAKZKApT4elzfLoOmw8PIk1n9oFZN78ulzcBNfu9f33NxzXqkTt/eKmvD6dLiHkTW6fx2GY2gKCgc4RQU4sN+SBRRcIGiYT2hCohGUgEsPYAbD7ANQQ29+45Wmc4GO1ALZIuVWa0+31TZl7H++NzQLeB7OTOOMMgEmgepponlnAadLWJHg9s4BJoHqaaP4Hpvqgfa0p7EYAAAAASUVORK5CYII=" alt=pet />'}])["default"]});