styled-components
Version:
**This is a work in progress** based off of [this demo](https://github.com/geelen/css-components-demo).
2 lines • 147 kB
JavaScript
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("React")):"function"==typeof define&&define.amd?define(["React"],t):"object"==typeof exports?exports["styled-components"]=t(require("React")):e["styled-components"]=t(e.React)}(this,function(e){return function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={exports:{},id:r,loaded:!1};return e[r].call(o.exports,o,o.exports,t),o.loaded=!0,o.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}([function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0}),t.keyframes=t.global=t.toggle=t.css=void 0;var o=n(1),i=r(o),a=n(11),s=r(a),u=n(12),l=r(u),c=n(69),f=r(c),h=n(71),p=r(h);t.css=i["default"],t.toggle=s["default"],t.global=f["default"],t.keyframes=p["default"],t["default"]=l["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(2),i=r(o),a=n(3),s=r(a);t["default"]=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return(0,s["default"])((0,i["default"])(e,n))},e.exports=t["default"]},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=function(e,t){return t.reduce(function(t,n,r){return t.concat(n,e[r+1])},[e[0]])},e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.objToCss=void 0;var i=n(4),a=r(i),s=n(6),u=r(s),l=t.objToCss=function(e){return Object.keys(e).map(function(t){return(0,a["default"])(t)+": "+e[t]+";"}).join(" ")},c=function f(e,t){return e.reduce(function(e,n){return void 0===n||null===n||n===!1||""===n?e:Array.isArray(n)?e.concat.apply(e,o(f(n,t))):"function"==typeof n?t?e.concat.apply(e,o(f([n(t)],t))):e.concat(n):e.concat((0,u["default"])(n)?l(n):n.toString())},[])};t["default"]=c},function(e,t,n){"use strict";function r(e){return o(e).replace(i,"-ms-")}var o=n(5),i=/^ms-/;e.exports=r},function(e,t){"use strict";function n(e){return e.replace(r,"-$1").toLowerCase()}var r=/([A-Z])/g;e.exports=n},function(e,t,n){function r(e){if(!a(e)||p.call(e)!=s||i(e))return!1;var t=o(e);if(null===t)return!0;var n=f.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&c.call(n)==h}var o=n(7),i=n(9),a=n(10),s="[object Object]",u=Function.prototype,l=Object.prototype,c=u.toString,f=l.hasOwnProperty,h=c.call(Object),p=l.toString;e.exports=r},function(e,t,n){var r=n(8),o=r(Object.getPrototypeOf,Object);e.exports=o},function(e,t){function n(e,t){return function(n){return e(t(n))}}e.exports=n},function(e,t){function n(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(n){}return t}e.exports=n},function(e,t){function n(e){return!!e&&"object"==typeof e}e.exports=n},function(e,t){"use strict";function n(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=function(e,t){return function(){var r,o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",i=function(n){var r=Object.keys(t).filter(function(e){return"default"!==e});throw new Error(e+": Unknown value '"+n+"'. Valid values are:\n"+r.join("\n"))},a=o.split(/ +/).filter(function(e){return e.length>0});return(r=t["default"]?[t["default"]]:[]).concat.apply(r,n(a.map(function(e){return e in t?t[e]:i(e)}))).map(function(e){return e+";"})}},e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(1),i=r(o),a=n(13),s=r(a),u=function(e){return function(t){for(var n=arguments.length,r=Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return(0,s["default"])(e,i["default"].apply(void 0,[t].concat(r)))}};t["default"]=u,u.a=u("a"),u.abbr=u("abbr"),u.address=u("address"),u.area=u("area"),u.article=u("article"),u.aside=u("aside"),u.audio=u("audio"),u.b=u("b"),u.base=u("base"),u.bdi=u("bdi"),u.bdo=u("bdo"),u.big=u("big"),u.blockquote=u("blockquote"),u.body=u("body"),u.br=u("br"),u.button=u("button"),u.canvas=u("canvas"),u.caption=u("caption"),u.cite=u("cite"),u.code=u("code"),u.col=u("col"),u.colgroup=u("colgroup"),u.data=u("data"),u.datalist=u("datalist"),u.dd=u("dd"),u.del=u("del"),u.details=u("details"),u.dfn=u("dfn"),u.dialog=u("dialog"),u.div=u("div"),u.dl=u("dl"),u.dt=u("dt"),u.em=u("em"),u.embed=u("embed"),u.fieldset=u("fieldset"),u.figcaption=u("figcaption"),u.figure=u("figure"),u.footer=u("footer"),u.form=u("form"),u.h1=u("h1"),u.h2=u("h2"),u.h3=u("h3"),u.h4=u("h4"),u.h5=u("h5"),u.h6=u("h6"),u.head=u("head"),u.header=u("header"),u.hgroup=u("hgroup"),u.hr=u("hr"),u.html=u("html"),u.i=u("i"),u.iframe=u("iframe"),u.img=u("img"),u.input=u("input"),u.ins=u("ins"),u.kbd=u("kbd"),u.keygen=u("keygen"),u.label=u("label"),u.legend=u("legend"),u.li=u("li"),u.link=u("link"),u.main=u("main"),u.map=u("map"),u.mark=u("mark"),u.menu=u("menu"),u.menuitem=u("menuitem"),u.meta=u("meta"),u.meter=u("meter"),u.nav=u("nav"),u.noscript=u("noscript"),u.object=u("object"),u.ol=u("ol"),u.optgroup=u("optgroup"),u.option=u("option"),u.output=u("output"),u.p=u("p"),u.param=u("param"),u.picture=u("picture"),u.pre=u("pre"),u.progress=u("progress"),u.q=u("q"),u.rp=u("rp"),u.rt=u("rt"),u.ruby=u("ruby"),u.s=u("s"),u.samp=u("samp"),u.script=u("script"),u.section=u("section"),u.select=u("select"),u.small=u("small"),u.source=u("source"),u.span=u("span"),u.strong=u("strong"),u.style=u("style"),u.sub=u("sub"),u.summary=u("summary"),u.sup=u("sup"),u.table=u("table"),u.tbody=u("tbody"),u.td=u("td"),u.textarea=u("textarea"),u.tfoot=u("tfoot"),u.th=u("th"),u.thead=u("thead"),u.time=u("time"),u.title=u("title"),u.tr=u("tr"),u.track=u("track"),u.u=u("u"),u.ul=u("ul"),u["var"]=u("var"),u.video=u("video"),u.wbr=u("wbr"),u.circle=u("circle"),u.clipPath=u("clipPath"),u.defs=u("defs"),u.ellipse=u("ellipse"),u.g=u("g"),u.image=u("image"),u.line=u("line"),u.linearGradient=u("linearGradient"),u.mask=u("mask"),u.path=u("path"),u.pattern=u("pattern"),u.polygon=u("polygon"),u.polyline=u("polyline"),u.radialGradient=u("radialGradient"),u.rect=u("rect"),u.stop=u("stop"),u.svg=u("svg"),u.text=u("text"),u.tspan=u("tspan"),e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),u=n(14),l=n(15),c=r(l),f=n(63),h=r(f),p=function(e){function t(){return o(this,t),i(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return a(t,e),t}(u.Component),d=function g(e,t,n){var r={}.isPrototypeOf.call(p,e);if(r)return g(e.target,e.rules.concat(t),n);var l="string"==typeof e,f=new c["default"](t),d=function(t){function n(){return o(this,n),i(this,(n.__proto__||Object.getPrototypeOf(n)).apply(this,arguments))}return a(n,t),s(n,[{key:"getChildContext",value:function(){return{theme:this.theme}}},{key:"componentWillMount",value:function(){this.componentWillReceiveProps(this.props,this.context)}},{key:"componentWillReceiveProps",value:function(e,t){this.theme=t&&t.theme||{};var n=Object.assign({},this.theme,{update:function(e){this.theme=Object.assign({},this.theme,e)}}),r=Object.assign({},e,{theme:n});this.generatedClassName=f.generateAndInjectStyles(r)}},{key:"render",value:function(){var t=this,n=this.props,r=n.className,o=n.children,i={};return Object.keys(this.props).filter(function(e){return!l||(0,h["default"])(e)}).forEach(function(e){i[e]=t.props[e]}),i.className=[r,this.generatedClassName].filter(function(e){return e}).join(" "),(0,u.createElement)(e,i,o)}}]),n}(p);return d.rules=t,d.target=e,d.displayName=l?"styled."+e:"Styled("+e.displayName+")",d.childContextTypes={theme:u.PropTypes.object},d.contextTypes={theme:u.PropTypes.object},d};t["default"]=d,e.exports=t["default"]},function(t,n){t.exports=e},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=n(16),s=r(a),u=n(17),l=n(3),c=r(l),f=n(18),h=r(f),p=n(61),d=r(p),g=n(62),y=r(g),v=new u.StyleSheet({speedy:!1,maxLength:40}),m={},w=function(){function e(t){o(this,e),this.rules=t,v.injected||v.inject(),this.insertedRule=v.insert("")}return i(e,[{key:"generateAndInjectStyles",value:function(e){var t=(0,c["default"])(this.rules,e).join(""),n=(0,s["default"])(t);if(!m[n]){var r=(0,y["default"])(n);m[n]=r;var o=(0,h["default"])("."+r+" { "+t+" }");(0,d["default"])(o),this.insertedRule.appendRule(o.toResult().css)}return m[n]}}]),e}();t["default"]=w,e.exports=t["default"]},function(e,t){"use strict";function n(e,t){for(var n=1540483477,a=24,s=t^e.length,u=e.length,l=0;u>=4;){var c=r(e,l);c=i(c,n),c^=c>>>a,c=i(c,n),s=i(s,n),s^=c,l+=4,u-=4}switch(u){case 3:s^=o(e,l),s^=e.charCodeAt(l+2)<<16,s=i(s,n);break;case 2:s^=o(e,l),s=i(s,n);break;case 1:s^=e.charCodeAt(l),s=i(s,n)}return s^=s>>>13,s=i(s,n),s^=s>>>15,s>>>0}function r(e,t){return e.charCodeAt(t++)+(e.charCodeAt(t++)<<8)+(e.charCodeAt(t++)<<16)+(e.charCodeAt(t)<<24)}function o(e,t){return e.charCodeAt(t++)+(e.charCodeAt(t++)<<8)}function i(e,t){e=0|e,t=0|t;var n=65535&e,r=e>>>16,o=n*t+((r*t&65535)<<16)|0;return o}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=n},function(e,t,n){"use strict";function r(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e){return e[e.length-1]}function a(e){for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function s(){var e=document.createElement("style");return e.type="text/css",e.appendChild(document.createTextNode("")),(document.head||document.getElementsByTagName("head")[0]).appendChild(e),e}Object.defineProperty(t,"__esModule",{value:!0});var u=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),l="undefined"!=typeof document,c=function(e){return"development"===e||!e}(production),f="test"===production,h=function(){if(l){var e=document.createElement("div");return e.innerHTML="<!--[if lt IE 10]><i></i><![endif]-->",1===e.getElementsByTagName("i").length}}();t.StyleSheet=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.speedy,r=void 0===n?!c&&!f:n,i=t.maxLength,a=void 0===i?l&&h?4e3:65e3:i;o(this,e),this.isSpeedy=r,this.sheet=void 0,this.tags=[],this.maxLength=a,this.ctr=0}return u(e,[{key:"inject",value:function(){var e=this;if(this.injected)throw new Error("already injected stylesheet!");l?(this.tags[0]=s(),this.sheet=a(this.tags[0])):this.sheet={cssRules:[],insertRule:function(t){var n={cssText:t};return e.sheet.cssRules.push(n),{serverRule:n,appendRule:function(e){return n.cssText+=e}}}},this.injected=!0}},{key:"speedy",value:function(e){if(0!==this.ctr)throw new Error("cannot change speedy mode after inserting any rule to sheet. Either call speedy("+e+") earlier in your app, or call flush() before speedy("+e+")");this.isSpeedy=!!e}},{key:"_insert",value:function(e){try{this.sheet.insertRule(e,this.sheet.cssRules.length)}catch(t){c&&console.warn("whoops, illegal rule inserted",e)}}},{key:"insert",value:function(e){var t=this,n=void 0;return l?this.isSpeedy&&this.sheet.insertRule?this._insert(e):this.tags.length>0&&i(this.tags).styleSheet?i(this.tags).styleSheet.cssText+=e:!function(){var r=document.createTextNode(e);i(t.tags).appendChild(r),n={textNode:r,appendRule:function(e){return r.appendData(e)}},t.isSpeedy||(t.sheet=a(i(t.tags)))}():n=this.sheet.insertRule(e),this.ctr++,l&&this.ctr%this.maxLength===0&&(this.tags.push(s()),this.sheet=a(i(this.tags))),n}},{key:"flush",value:function(){l?(this.tags.forEach(function(e){return e.parentNode.removeChild(e)}),this.tags=[],this.sheet=null,this.ctr=0):this.sheet.cssRules=[],this.injected=!1}},{key:"rules",value:function(){if(!l)return this.sheet.cssRules;var e=[];return this.tags.forEach(function(t){return e.splice.apply(e,[e.length,0].concat(r(Array.from(a(t).cssRules))))}),e}}]),e}()},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){var n=new a["default"](e,t),r=new u["default"](n);return r.tokenize(),r.loop(),r.root}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=o;var i=n(19),a=r(i),s=n(27),u=r(s);e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=n(20),s=r(a),u=n(25),l=r(u),c=0,f=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};o(this,e),this.css=t.toString(),"\ufeff"!==this.css[0]&&""!==this.css[0]||(this.css=this.css.slice(1)),n.from&&(/^\w+:\/\//.test(n.from)?this.file=n.from:this.file=l["default"].resolve(n.from)),this.file||(c+=1,this.id="<input css "+c+">"),this.map&&(this.map.file=this.from)}return i(e,[{key:"error",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=void 0,i=this.origin(t,n);return o=i?new s["default"](e,i.line,i.column,i.source,i.file,r.plugin):new s["default"](e,t,n,this.css,this.file,r.plugin),o.input={line:t,column:n,source:this.css},this.file&&(o.input.file=this.file),o}},{key:"origin",value:function(e,t){if(!this.map)return!1;var n=this.map.consumer(),r=n.originalPositionFor({line:e,column:t});if(!r.source)return!1;var o={file:this.mapResolve(r.source),line:r.line,column:r.column},i=n.sourceContentFor(r.source);return i&&(o.source=i),o}},{key:"mapResolve",value:function(e){return/^\w+:\/\//.test(e)?e:l["default"].resolve(this.map.consumer().sourceRoot||".",e)}},{key:"from",get:function(){return this.file||this.id}}]),e}();t["default"]=f,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=n(21),s=r(a),u=n(22),l=r(u),c=n(24),f=r(c),h=function(){function e(t,n,r,i,a,s){o(this,e),this.name="CssSyntaxError",this.reason=t,a&&(this.file=a),i&&(this.source=i),s&&(this.plugin=s),"undefined"!=typeof n&&"undefined"!=typeof r&&(this.line=n,this.column=r),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,e)}return i(e,[{key:"setMessage",value:function(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>","undefined"!=typeof this.line&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}},{key:"showSourceCode",value:function(e){var t=this;if(!this.source)return"";var n=this.source;"undefined"==typeof e&&(e=s["default"]),e&&(n=(0,l["default"])(n));var r=n.split(/\r?\n/),o=Math.max(this.line-3,0),i=Math.min(this.line+2,r.length),a=String(i).length;return r.slice(o,i).map(function(e,n){var r=o+1+n,i=(" "+r).slice(-a),s=" "+i+" | ";if(r===t.line){var u=s.replace(/\d/g," ")+e.slice(0,t.column-1).replace(/[^\t]/g," ");return">"+s+e+"\n "+u+"^"}return" "+s+e}).join("\n")}},{key:"toString",value:function(){var e=this.showSourceCode();return e&&(e="\n\n"+e+"\n"),this.name+": "+this.message+e}},{key:"generated",get:function(){return(0,f["default"])("CssSyntaxError#generated is depreacted. Use input instead."),this.input}}]),e}();t["default"]=h,e.exports=t["default"]},function(e,t){"use strict";e.exports=!1},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e){return"["+e+"m"}function i(e){var t=(0,s["default"])(new l["default"](e),{ignoreErrors:!0}),n=[],r=!0,i=!1,a=void 0;try{for(var u,f=function(){var e=u.value,t=c[e[0]];t?n.push(e[1].split(/\r?\n/).map(function(e){return o(t[0])+e+o(t[1])}).join("\n")):n.push(e[1])},h=t[Symbol.iterator]();!(r=(u=h.next()).done);r=!0)f()}catch(p){i=!0,a=p}finally{try{!r&&h["return"]&&h["return"]()}finally{if(i)throw a}}return n.join("")}Object.defineProperty(t,"__esModule",{value:!0});var a=n(23),s=r(a),u=n(19),l=r(u),c={brackets:[36,39],string:[31,39],"at-word":[31,39],comment:[90,39],"{":[32,39],"}":[32,39],":":[1,22],";":[1,22],"(":[1,22],")":[1,22]};t["default"]=i,e.exports=t["default"]},function(e,t){"use strict";function n(e){function t(t){throw e.error("Unclosed "+t,z,G-V)}for(var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},O=[],E=e.css.valueOf(),S=n.ignoreErrors,x=void 0,P=void 0,M=void 0,R=void 0,j=void 0,T=void 0,F=void 0,L=void 0,U=void 0,B=void 0,N=void 0,D=void 0,I=void 0,Y=E.length,V=-1,z=1,G=0;G<Y;){switch(x=E.charCodeAt(G),(x===s||x===l||x===f&&E.charCodeAt(G+1)!==s)&&(V=G,z+=1),x){case s:case u:case c:case f:case l:P=G;do P+=1,x=E.charCodeAt(P),x===s&&(V=P,z+=1);while(x===u||x===s||x===c||x===f||x===l);O.push(["space",E.slice(G,P)]),G=P-1;break;case h:O.push(["[","[",z,G-V]);break;case p:O.push(["]","]",z,G-V]);break;case y:O.push(["{","{",z,G-V]);break;case v:O.push(["}","}",z,G-V]);break;case b:O.push([":",":",z,G-V]);break;case m:O.push([";",";",z,G-V]);break;case d:if(D=O.length?O[O.length-1][1]:"",I=E.charCodeAt(G+1),"url"===D&&I!==r&&I!==o&&I!==u&&I!==s&&I!==c&&I!==l&&I!==f){P=G;do{if(B=!1,P=E.indexOf(")",P+1),P===-1){if(S){P=G;break}t("bracket")}for(N=P;E.charCodeAt(N-1)===i;)N-=1,B=!B}while(B);O.push(["brackets",E.slice(G,P+1),z,G-V,z,P-V]),G=P}else P=E.indexOf(")",G+1),T=E.slice(G,P+1),P===-1||A.test(T)?O.push(["(","(",z,G-V]):(O.push(["brackets",T,z,G-V,z,P-V]),G=P);break;case g:O.push([")",")",z,G-V]);break;case r:case o:M=x===r?"'":'"',P=G;do{if(B=!1,P=E.indexOf(M,P+1),P===-1){if(S){P=G+1;break}t("quote")}for(N=P;E.charCodeAt(N-1)===i;)N-=1,B=!B}while(B);T=E.slice(G,P+1),R=T.split("\n"),j=R.length-1,j>0?(L=z+j,U=P-R[j].length):(L=z,U=V),O.push(["string",E.slice(G,P+1),z,G-V,L,P-U]),V=U,z=L,G=P;break;case _:C.lastIndex=G+1,C.test(E),P=0===C.lastIndex?E.length-1:C.lastIndex-2,O.push(["at-word",E.slice(G,P+1),z,G-V,z,P-V]),G=P;break;case i:for(P=G,F=!0;E.charCodeAt(P+1)===i;)P+=1,F=!F;x=E.charCodeAt(P+1),F&&x!==a&&x!==u&&x!==s&&x!==c&&x!==f&&x!==l&&(P+=1),O.push(["word",E.slice(G,P+1),z,G-V,z,P-V]),G=P;break;default:x===a&&E.charCodeAt(G+1)===w?(P=E.indexOf("*/",G+2)+1,0===P&&(S?P=E.length:t("comment")),T=E.slice(G,P+1),R=T.split("\n"),j=R.length-1,j>0?(L=z+j,U=P-R[j].length):(L=z,U=V),O.push(["comment",T,z,G-V,L,P-U]),V=U,z=L,G=P):(k.lastIndex=G+1,k.test(E),P=0===k.lastIndex?E.length-1:k.lastIndex-2,O.push(["word",E.slice(G,P+1),z,G-V,z,P-V]),G=P)}G++}return O}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=n;var r="'".charCodeAt(0),o='"'.charCodeAt(0),i="\\".charCodeAt(0),a="/".charCodeAt(0),s="\n".charCodeAt(0),u=" ".charCodeAt(0),l="\f".charCodeAt(0),c="\t".charCodeAt(0),f="\r".charCodeAt(0),h="[".charCodeAt(0),p="]".charCodeAt(0),d="(".charCodeAt(0),g=")".charCodeAt(0),y="{".charCodeAt(0),v="}".charCodeAt(0),m=";".charCodeAt(0),w="*".charCodeAt(0),b=":".charCodeAt(0),_="@".charCodeAt(0),C=/[ \n\t\r\f\{\(\)'"\\;\/\[\]#]/g,k=/[ \n\t\r\f\(\)\{\}:;@!'"\\\]\[#]|\/(?=\*)/g,A=/.[\\\/\("'\n]/;e.exports=t["default"]},function(e,t){"use strict";function n(e){r[e]||(r[e]=!0,"undefined"!=typeof console&&console.warn&&console.warn(e))}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=n;var r={};e.exports=t["default"]},function(e,t,n){(function(e){function n(e,t){for(var n=0,r=e.length-1;r>=0;r--){var o=e[r];"."===o?e.splice(r,1):".."===o?(e.splice(r,1),n++):n&&(e.splice(r,1),n--)}if(t)for(;n--;n)e.unshift("..");return e}function r(e,t){if(e.filter)return e.filter(t);for(var n=[],r=0;r<e.length;r++)t(e[r],r,e)&&n.push(e[r]);return n}var o=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/,i=function(e){return o.exec(e).slice(1)};t.resolve=function(){for(var t="",o=!1,i=arguments.length-1;i>=-1&&!o;i--){var a=i>=0?arguments[i]:e.cwd();if("string"!=typeof a)throw new TypeError("Arguments to path.resolve must be strings");a&&(t=a+"/"+t,o="/"===a.charAt(0))}return t=n(r(t.split("/"),function(e){return!!e}),!o).join("/"),(o?"/":"")+t||"."},t.normalize=function(e){var o=t.isAbsolute(e),i="/"===a(e,-1);return e=n(r(e.split("/"),function(e){return!!e}),!o).join("/"),e||o||(e="."),e&&i&&(e+="/"),(o?"/":"")+e},t.isAbsolute=function(e){return"/"===e.charAt(0)},t.join=function(){var e=Array.prototype.slice.call(arguments,0);return t.normalize(r(e,function(e,t){if("string"!=typeof e)throw new TypeError("Arguments to path.join must be strings");return e}).join("/"))},t.relative=function(e,n){function r(e){for(var t=0;t<e.length&&""===e[t];t++);for(var n=e.length-1;n>=0&&""===e[n];n--);return t>n?[]:e.slice(t,n-t+1)}e=t.resolve(e).substr(1),n=t.resolve(n).substr(1);for(var o=r(e.split("/")),i=r(n.split("/")),a=Math.min(o.length,i.length),s=a,u=0;u<a;u++)if(o[u]!==i[u]){s=u;break}for(var l=[],u=s;u<o.length;u++)l.push("..");return l=l.concat(i.slice(s)),l.join("/")},t.sep="/",t.delimiter=":",t.dirname=function(e){var t=i(e),n=t[0],r=t[1];return n||r?(r&&(r=r.substr(0,r.length-1)),n+r):"."},t.basename=function(e,t){var n=i(e)[2];return t&&n.substr(-1*t.length)===t&&(n=n.substr(0,n.length-t.length)),n},t.extname=function(e){return i(e)[3]};var a="b"==="ab".substr(-1)?function(e,t,n){return e.substr(t,n)}:function(e,t,n){return t<0&&(t=e.length+t),e.substr(t,n)}}).call(t,n(26))},function(e,t){function n(){throw new Error("setTimeout has not been defined")}function r(){throw new Error("clearTimeout has not been defined")}function o(e){if(c===setTimeout)return setTimeout(e,0);if((c===n||!c)&&setTimeout)return c=setTimeout,setTimeout(e,0);try{return c(e,0)}catch(t){try{return c.call(null,e,0)}catch(t){return c.call(this,e,0)}}}function i(e){if(f===clearTimeout)return clearTimeout(e);if((f===r||!f)&&clearTimeout)return f=clearTimeout,clearTimeout(e);try{return f(e)}catch(t){try{return f.call(null,e)}catch(t){return f.call(this,e)}}}function a(){g&&p&&(g=!1,p.length?d=p.concat(d):y=-1,d.length&&s())}function s(){if(!g){var e=o(a);g=!0;for(var t=d.length;t;){for(p=d,d=[];++y<t;)p&&p[y].run();y=-1,t=d.length}p=null,g=!1,i(e)}}function u(e,t){this.fun=e,this.array=t}function l(){}var c,f,h=e.exports={};!function(){try{c="function"==typeof setTimeout?setTimeout:n}catch(e){c=n}try{f="function"==typeof clearTimeout?clearTimeout:r}catch(e){f=r}}();var p,d=[],g=!1,y=-1;h.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];d.push(new u(e,t)),1!==d.length||g||o(s)},u.prototype.run=function(){this.fun.apply(null,this.array)},h.title="browser",h.browser=!0,h.env={},h.argv=[],h.version="",h.versions={},h.on=l,h.addListener=l,h.once=l,h.off=l,h.removeListener=l,h.removeAllListeners=l,h.emit=l,h.binding=function(e){throw new Error("process.binding is not supported")},h.cwd=function(){return"/"},h.chdir=function(e){throw new Error("process.chdir is not supported")},h.umask=function(){return 0}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),u=n(23),l=r(u),c=n(28),f=r(c),h=n(32),p=r(h),d=function(e){function t(){return o(this,t),i(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return a(t,e),s(t,[{key:"tokenize",value:function(){this.tokens=(0,l["default"])(this.input,{ignoreErrors:!0})}},{key:"comment",value:function(e){var t=new f["default"];this.init(t,e[2],e[3]),t.source.end={line:e[4],column:e[5]};var n=e[1].slice(2);if("*/"===n.slice(-2)&&(n=n.slice(0,-2)),/^\s*$/.test(n))t.text="",t.raws.left=n,t.raws.right="";else{var r=n.match(/^(\s*)([^]*[^\s])(\s*)$/);t.text=r[2],t.raws.left=r[1],t.raws.right=r[3]}}},{key:"unclosedBracket",value:function(){}},{key:"unknownWord",value:function(e){var t=this.tokens.slice(e,this.pos+1);this.spaces+=t.map(function(e){return e[1]}).join("")}},{key:"unexpectedClose",value:function(){this.current.raws.after+="}"}},{key:"doubleColon",value:function(){}},{key:"unnamedAtrule",value:function(e){e.name=""}},{key:"precheckMissedSemicolon",value:function(e){var t=this.colon(e);if(t!==!1){var n=void 0;for(n=t-1;n>=0&&"word"!==e[n][0];n--);for(n-=1;n>=0;n--)if("space"!==e[n][0]){n+=1;break}var r=e.splice(n,e.length-n);this.decl(r)}}},{key:"checkMissedSemicolon",value:function(){}},{key:"endFile",value:function(){for(this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces;this.current.parent;)this.current=this.current.parent,this.current.raws.after=""}}]),t}(p["default"]);t["default"]=d,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),u=n(24),l=r(u),c=n(29),f=r(c),h=function(e){function t(e){o(this,t);var n=i(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.type="comment",n}return a(t,e),s(t,[{key:"left",get:function(){return(0,l["default"])("Comment#left was deprecated. Use Comment#raws.left"),this.raws.left},set:function(e){(0,l["default"])("Comment#left was deprecated. Use Comment#raws.left"),this.raws.left=e}},{key:"right",get:function(){return(0,l["default"])("Comment#right was deprecated. Use Comment#raws.right"),this.raws.right},set:function(e){(0,l["default"])("Comment#right was deprecated. Use Comment#raws.right"),this.raws.right=e}}]),t}(f["default"]);t["default"]=h,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e},s=n(20),u=r(s),l=n(30),c=r(l),f=n(31),h=r(f),p=n(24),d=r(p),g=function v(e,t){var n=new e.constructor;for(var r in e)if(e.hasOwnProperty(r)){var o=e[r],i="undefined"==typeof o?"undefined":a(o);"parent"===r&&"object"===i?t&&(n[r]=t):"source"===r?n[r]=o:o instanceof Array?n[r]=o.map(function(e){return v(e,n)}):"before"!==r&&"after"!==r&&"between"!==r&&"semicolon"!==r&&("object"===i&&null!==o&&(o=v(o)),n[r]=o)}return n},y=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};o(this,e),this.raws={};for(var n in t)this[n]=t[n]}return i(e,[{key:"error",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.source){var n=this.positionBy(t);return this.source.input.error(e,n.line,n.column,t)}return new u["default"](e)}},{key:"warn",value:function(e,t,n){var r={node:this};for(var o in n)r[o]=n[o];return e.warn(t,r)}},{key:"remove",value:function(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}},{key:"toString",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:h["default"];e.stringify&&(e=e.stringify);var t="";return e(this,function(e){t+=e}),t}},{key:"clone",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=g(this);for(var n in e)t[n]=e[n];return t}},{key:"cloneBefore",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this.clone(e);return this.parent.insertBefore(this,t),t}},{key:"cloneAfter",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this.clone(e);return this.parent.insertAfter(this,t),t}},{key:"replaceWith",value:function(){if(this.parent){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=!0,o=!1,i=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done);r=!0){var u=a.value;this.parent.insertBefore(this,u)}}catch(l){o=!0,i=l}finally{try{!r&&s["return"]&&s["return"]()}finally{if(o)throw i}}this.remove()}return this}},{key:"moveTo",value:function(e){return this.cleanRaws(this.root()===e.root()),this.remove(),e.append(this),this}},{key:"moveBefore",value:function(e){return this.cleanRaws(this.root()===e.root()),this.remove(),e.parent.insertBefore(e,this),
this}},{key:"moveAfter",value:function(e){return this.cleanRaws(this.root()===e.root()),this.remove(),e.parent.insertAfter(e,this),this}},{key:"next",value:function(){var e=this.parent.index(this);return this.parent.nodes[e+1]}},{key:"prev",value:function(){var e=this.parent.index(this);return this.parent.nodes[e-1]}},{key:"toJSON",value:function(){var e={};for(var t in this)if(this.hasOwnProperty(t)&&"parent"!==t){var n=this[t];n instanceof Array?e[t]=n.map(function(e){return"object"===("undefined"==typeof e?"undefined":a(e))&&e.toJSON?e.toJSON():e}):"object"===("undefined"==typeof n?"undefined":a(n))&&n.toJSON?e[t]=n.toJSON():e[t]=n}return e}},{key:"raw",value:function(e,t){var n=new c["default"];return n.raw(this,e,t)}},{key:"root",value:function(){for(var e=this;e.parent;)e=e.parent;return e}},{key:"cleanRaws",value:function(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between}},{key:"positionInside",value:function(e){for(var t=this.toString(),n=this.source.start.column,r=this.source.start.line,o=0;o<e;o++)"\n"===t[o]?(n=1,r+=1):n+=1;return{line:r,column:n}}},{key:"positionBy",value:function(e){var t=this.source.start;if(e.index)t=this.positionInside(e.index);else if(e.word){var n=this.toString().indexOf(e.word);n!==-1&&(t=this.positionInside(n))}return t}},{key:"removeSelf",value:function(){return(0,d["default"])("Node#removeSelf is deprecated. Use Node#remove."),this.remove()}},{key:"replace",value:function(e){return(0,d["default"])("Node#replace is deprecated. Use Node#replaceWith"),this.replaceWith(e)}},{key:"style",value:function(e,t){return(0,d["default"])("Node#style() is deprecated. Use Node#raw()"),this.raw(e,t)}},{key:"cleanStyles",value:function(e){return(0,d["default"])("Node#cleanStyles() is deprecated. Use Node#cleanRaws()"),this.cleanRaws(e)}},{key:"before",get:function(){return(0,d["default"])("Node#before is deprecated. Use Node#raws.before"),this.raws.before},set:function(e){(0,d["default"])("Node#before is deprecated. Use Node#raws.before"),this.raws.before=e}},{key:"between",get:function(){return(0,d["default"])("Node#between is deprecated. Use Node#raws.between"),this.raws.between},set:function(e){(0,d["default"])("Node#between is deprecated. Use Node#raws.between"),this.raws.between=e}}]),e}();t["default"]=y,e.exports=t["default"]},function(e,t){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e){return e[0].toUpperCase()+e.slice(1)}Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i={colon:": ",indent:" ",beforeDecl:"\n",beforeRule:"\n",beforeOpen:" ",beforeClose:"\n",beforeComment:"\n",after:"\n",emptyBody:"",commentLeft:" ",commentRight:" "},a=function(){function e(t){n(this,e),this.builder=t}return o(e,[{key:"stringify",value:function(e,t){this[e.type](e,t)}},{key:"root",value:function(e){this.body(e),e.raws.after&&this.builder(e.raws.after)}},{key:"comment",value:function(e){var t=this.raw(e,"left","commentLeft"),n=this.raw(e,"right","commentRight");this.builder("/*"+t+e.text+n+"*/",e)}},{key:"decl",value:function(e,t){var n=this.raw(e,"between","colon"),r=e.prop+n+this.rawValue(e,"value");e.important&&(r+=e.raws.important||" !important"),t&&(r+=";"),this.builder(r,e)}},{key:"rule",value:function(e){this.block(e,this.rawValue(e,"selector"))}},{key:"atrule",value:function(e,t){var n="@"+e.name,r=e.params?this.rawValue(e,"params"):"";if("undefined"!=typeof e.raws.afterName?n+=e.raws.afterName:r&&(n+=" "),e.nodes)this.block(e,n+r);else{var o=(e.raws.between||"")+(t?";":"");this.builder(n+r+o,e)}}},{key:"body",value:function(e){for(var t=e.nodes.length-1;t>0&&"comment"===e.nodes[t].type;)t-=1;for(var n=this.raw(e,"semicolon"),r=0;r<e.nodes.length;r++){var o=e.nodes[r],i=this.raw(o,"before");i&&this.builder(i),this.stringify(o,t!==r||n)}}},{key:"block",value:function(e,t){var n=this.raw(e,"between","beforeOpen");this.builder(t+n+"{",e,"start");var r=void 0;e.nodes&&e.nodes.length?(this.body(e),r=this.raw(e,"after")):r=this.raw(e,"after","emptyBody"),r&&this.builder(r),this.builder("}",e,"end")}},{key:"raw",value:function(e,t,n){var o=void 0;if(n||(n=t),t&&(o=e.raws[t],"undefined"!=typeof o))return o;var a=e.parent;if("before"===n&&(!a||"root"===a.type&&a.first===e))return"";if(!a)return i[n];var s=e.root();if(s.rawCache||(s.rawCache={}),"undefined"!=typeof s.rawCache[n])return s.rawCache[n];if("before"===n||"after"===n)return this.beforeAfter(e,n);var u="raw"+r(n);return this[u]?o=this[u](s,e):s.walk(function(e){if(o=e.raws[t],"undefined"!=typeof o)return!1}),"undefined"==typeof o&&(o=i[n]),s.rawCache[n]=o,o}},{key:"rawSemicolon",value:function(e){var t=void 0;return e.walk(function(e){if(e.nodes&&e.nodes.length&&"decl"===e.last.type&&(t=e.raws.semicolon,"undefined"!=typeof t))return!1}),t}},{key:"rawEmptyBody",value:function(e){var t=void 0;return e.walk(function(e){if(e.nodes&&0===e.nodes.length&&(t=e.raws.after,"undefined"!=typeof t))return!1}),t}},{key:"rawIndent",value:function(e){if(e.raws.indent)return e.raws.indent;var t=void 0;return e.walk(function(n){var r=n.parent;if(r&&r!==e&&r.parent&&r.parent===e&&"undefined"!=typeof n.raws.before){var o=n.raws.before.split("\n");return t=o[o.length-1],t=t.replace(/[^\s]/g,""),!1}}),t}},{key:"rawBeforeComment",value:function(e,t){var n=void 0;return e.walkComments(function(e){if("undefined"!=typeof e.raws.before)return n=e.raws.before,n.indexOf("\n")!==-1&&(n=n.replace(/[^\n]+$/,"")),!1}),"undefined"==typeof n&&(n=this.raw(t,null,"beforeDecl")),n}},{key:"rawBeforeDecl",value:function(e,t){var n=void 0;return e.walkDecls(function(e){if("undefined"!=typeof e.raws.before)return n=e.raws.before,n.indexOf("\n")!==-1&&(n=n.replace(/[^\n]+$/,"")),!1}),"undefined"==typeof n&&(n=this.raw(t,null,"beforeRule")),n}},{key:"rawBeforeRule",value:function(e){var t=void 0;return e.walk(function(n){if(n.nodes&&(n.parent!==e||e.first!==n)&&"undefined"!=typeof n.raws.before)return t=n.raws.before,t.indexOf("\n")!==-1&&(t=t.replace(/[^\n]+$/,"")),!1}),t}},{key:"rawBeforeClose",value:function(e){var t=void 0;return e.walk(function(e){if(e.nodes&&e.nodes.length>0&&"undefined"!=typeof e.raws.after)return t=e.raws.after,t.indexOf("\n")!==-1&&(t=t.replace(/[^\n]+$/,"")),!1}),t}},{key:"rawBeforeOpen",value:function(e){var t=void 0;return e.walk(function(e){if("decl"!==e.type&&(t=e.raws.between,"undefined"!=typeof t))return!1}),t}},{key:"rawColon",value:function(e){var t=void 0;return e.walkDecls(function(e){if("undefined"!=typeof e.raws.between)return t=e.raws.between.replace(/[^\s:]/g,""),!1}),t}},{key:"beforeAfter",value:function(e,t){var n=void 0;n="decl"===e.type?this.raw(e,null,"beforeDecl"):"comment"===e.type?this.raw(e,null,"beforeComment"):"before"===t?this.raw(e,null,"beforeRule"):this.raw(e,null,"beforeClose");for(var r=e.parent,o=0;r&&"root"!==r.type;)o+=1,r=r.parent;if(n.indexOf("\n")!==-1){var i=this.raw(e,null,"indent");if(i.length)for(var a=0;a<o;a++)n+=i}return n}},{key:"rawValue",value:function(e,t){var n=e[t],r=e.raws[t];return r&&r.value===n?r.raw:n}}]),e}();t["default"]=a,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){var n=new a["default"](t);n.stringify(e)}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=o;var i=n(30),a=r(i);e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=n(33),s=r(a),u=n(23),l=r(u),c=n(28),f=r(c),h=n(34),p=r(h),d=n(39),g=r(d),y=n(37),v=r(y),m=function(){function e(t){o(this,e),this.input=t,this.pos=0,this.root=new g["default"],this.current=this.root,this.spaces="",this.semicolon=!1,this.root.source={input:t,start:{line:1,column:1}}}return i(e,[{key:"tokenize",value:function(){this.tokens=(0,l["default"])(this.input)}},{key:"loop",value:function(){for(var e=void 0;this.pos<this.tokens.length;){switch(e=this.tokens[this.pos],e[0]){case"space":case";":this.spaces+=e[1];break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other()}this.pos+=1}this.endFile()}},{key:"comment",value:function(e){var t=new f["default"];this.init(t,e[2],e[3]),t.source.end={line:e[4],column:e[5]};var n=e[1].slice(2,-2);if(/^\s*$/.test(n))t.text="",t.raws.left=n,t.raws.right="";else{var r=n.match(/^(\s*)([^]*[^\s])(\s*)$/);t.text=r[2],t.raws.left=r[1],t.raws.right=r[3]}}},{key:"emptyRule",value:function(e){var t=new v["default"];this.init(t,e[2],e[3]),t.selector="",t.raws.between="",this.current=t}},{key:"other",value:function(){for(var e=void 0,t=!1,n=null,r=!1,o=null,i=[],a=this.pos;this.pos<this.tokens.length;){if(e=this.tokens[this.pos],n=e[0],"("===n||"["===n)o||(o=e),i.push("("===n?")":"]");else if(0===i.length){if(";"===n){if(r)return void this.decl(this.tokens.slice(a,this.pos+1));break}if("{"===n)return void this.rule(this.tokens.slice(a,this.pos+1));if("}"===n){this.pos-=1,t=!0;break}":"===n&&(r=!0)}else n===i[i.length-1]&&(i.pop(),0===i.length&&(o=null));this.pos+=1}if(this.pos===this.tokens.length&&(this.pos-=1,t=!0),i.length>0&&this.unclosedBracket(o),t&&r){for(;this.pos>a&&(e=this.tokens[this.pos][0],"space"===e||"comment"===e);)this.pos-=1;return void this.decl(this.tokens.slice(a,this.pos+1))}this.unknownWord(a)}},{key:"rule",value:function(e){e.pop();var t=new v["default"];this.init(t,e[0][2],e[0][3]),t.raws.between=this.spacesFromEnd(e),this.raw(t,"selector",e),this.current=t}},{key:"decl",value:function(e){var t=new s["default"];this.init(t);var n=e[e.length-1];for(";"===n[0]&&(this.semicolon=!0,e.pop()),n[4]?t.source.end={line:n[4],column:n[5]}:t.source.end={line:n[2],column:n[3]};"word"!==e[0][0];)t.raws.before+=e.shift()[1];for(t.source.start={line:e[0][2],column:e[0][3]},t.prop="";e.length;){var r=e[0][0];if(":"===r||"space"===r||"comment"===r)break;t.prop+=e.shift()[1]}t.raws.between="";for(var o=void 0;e.length;){if(o=e.shift(),":"===o[0]){t.raws.between+=o[1];break}t.raws.between+=o[1]}"_"!==t.prop[0]&&"*"!==t.prop[0]||(t.raws.before+=t.prop[0],t.prop=t.prop.slice(1)),t.raws.between+=this.spacesFromStart(e),this.precheckMissedSemicolon(e);for(var i=e.length-1;i>0;i--){if(o=e[i],"!important"===o[1]){t.important=!0;var a=this.stringFrom(e,i);a=this.spacesFromEnd(e)+a," !important"!==a&&(t.raws.important=a);break}if("important"===o[1]){for(var u=e.slice(0),l="",c=i;c>0;c--){var f=u[c][0];if(0===l.trim().indexOf("!")&&"space"!==f)break;l=u.pop()[1]+l}0===l.trim().indexOf("!")&&(t.important=!0,t.raws.important=l,e=u)}if("space"!==o[0]&&"comment"!==o[0])break}this.raw(t,"value",e),t.value.indexOf(":")!==-1&&this.checkMissedSemicolon(e)}},{key:"atrule",value:function(e){var t=new p["default"];t.name=e[1].slice(1),""===t.name&&this.unnamedAtrule(t,e),this.init(t,e[2],e[3]);var n=!1,r=!1,o=[];for(this.pos+=1;this.pos<this.tokens.length;){if(e=this.tokens[this.pos],";"===e[0]){t.source.end={line:e[2],column:e[3]},this.semicolon=!0;break}if("{"===e[0]){r=!0;break}if("}"===e[0]){this.end(e);break}o.push(e),this.pos+=1}this.pos===this.tokens.length&&(n=!0),t.raws.between=this.spacesFromEnd(o),o.length?(t.raws.afterName=this.spacesFromStart(o),this.raw(t,"params",o),n&&(e=o[o.length-1],t.source.end={line:e[4],column:e[5]},this.spaces=t.raws.between,t.raws.between="")):(t.raws.afterName="",t.params=""),r&&(t.nodes=[],this.current=t)}},{key:"end",value:function(e){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end={line:e[2],column:e[3]},this.current=this.current.parent):this.unexpectedClose(e)}},{key:"endFile",value:function(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces}},{key:"init",value:function(e,t,n){this.current.push(e),e.source={start:{line:t,column:n},input:this.input},e.raws.before=this.spaces,this.spaces="","comment"!==e.type&&(this.semicolon=!1)}},{key:"raw",value:function t(e,n,r){for(var o=void 0,i=void 0,a=r.length,s="",u=!0,l=0;l<a;l+=1)o=r[l],i=o[0],"comment"===i||"space"===i&&l===a-1?u=!1:s+=o[1];if(!u){var t=r.reduce(function(e,t){return e+t[1]},"");e.raws[n]={value:s,raw:t}}e[n]=s}},{key:"spacesFromEnd",value:function(e){for(var t=void 0,n="";e.length&&(t=e[e.length-1][0],"space"===t||"comment"===t);)n=e.pop()[1]+n;return n}},{key:"spacesFromStart",value:function(e){for(var t=void 0,n="";e.length&&(t=e[0][0],"space"===t||"comment"===t);)n+=e.shift()[1];return n}},{key:"stringFrom",value:function(e,t){for(var n="",r=t;r<e.length;r++)n+=e[r][1];return e.splice(t,e.length-t),n}},{key:"colon",value:function(e){for(var t=0,n=void 0,r=void 0,o=void 0,i=0;i<e.length;i++){if(n=e[i],r=n[0],"("===r)t+=1;else if(")"===r)t-=1;else if(0===t&&":"===r){if(o){if("word"===o[0]&&"progid"===o[1])continue;return i}this.doubleColon(n)}o=n}return!1}},{key:"unclosedBracket",value:function(e){throw this.input.error("Unclosed bracket",e[2],e[3])}},{key:"unknownWord",value:function(e){var t=this.tokens[e];throw this.input.error("Unknown word",t[2],t[3])}},{key:"unexpectedClose",value:function(e){throw this.input.error("Unexpected }",e[2],e[3])}},{key:"unclosedBlock",value:function(){var e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)}},{key:"doubleColon",value:function(e){throw this.input.error("Double colon",e[2],e[3])}},{key:"unnamedAtrule",value:function(e,t){throw this.input.error("At-rule without name",t[2],t[3])}},{key:"precheckMissedSemicolon",value:function(e){}},{key:"checkMissedSemicolon",value:function(e){var t=this.colon(e);if(t!==!1){for(var n=0,r=void 0,o=t-1;o>=0&&(r=e[o],"space"===r[0]||(n+=1,2!==n));o--);throw this.input.error("Missed semicolon",r[2],r[3])}}}]),e}();t["default"]=m,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),u=n(24),l=r(u),c=n(29),f=r(c),h=function(e){function t(e){o(this,t);var n=i(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.type="decl",n}return a(t,e),s(t,[{key:"_value",get:function(){return(0,l["default"])("Node#_value was deprecated. Use Node#raws.value"),this.raws.value},set:function(e){(0,l["default"])("Node#_value was deprecated. Use Node#raws.value"),this.raws.value=e}},{key:"_important",get:function(){return(0,l["default"])("Node#_important was deprecated. Use Node#raws.important"),this.raws.important},set:function(e){(0,l["default"])("Node#_important was deprecated. Use Node#raws.important"),this.raws.important=e}}]),t}(f["default"]);t["default"]=h,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),u=function d(e,t,n){null===e&&(e=Function.prototype);var r=Object.getOwnPropertyDescriptor(e,t);if(void 0===r){var o=Object.getPrototypeOf(e);return null===o?void 0:d(o,t,n)}if("value"in r)return r.value;var i=r.get;if(void 0!==i)return i.call(n)},l=n(35),c=r(l),f=n(24),h=r(f),p=function(e){function t(e){o(this,t);var n=i(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.type="atrule",n}return a(t,e),s(t,[{key:"append",value:function(){var e;this.nodes||(this.nodes=[]);for(var n=arguments.length,r=Array(n),o=0;o<n;o++)r[o]=arguments[o];return(e=u(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"append",this)).call.apply(e,[this].concat(r))}},{key:"prepend",value:function(){var e;this.nodes||(this.nodes=[]);for(var n=arguments.length,r=Array(n),o