function r(e,t){var n={absolute:t.options.explicitRoot,relative:!t.options.explicitRoot&&t.options.explicitTarget,
fromBase:t.options.relativeTo};return n.absolute||n.relative?(n.absolute&&t.options.explicitTarget&&t.warnings.push("Both 'root' and output file given so rebasing URLs as absolute paths"),n.absolute&&(n.toBase=i.resolve(t.options.root)),n.relative&&(n.toBase=i.resolve(t.options.target)),n.fromBase&&n.toBase?o(e,n,t):e):e}
/",SINGLE_QUOTE:"'",DOUBLE_QUOTE:'"',TEMPLATE_QUOTE:"`",REGEXP:"//g"},f=n.BRACKETS={"(":")","{":"}","[":"]"},d={")":"(","}":"{","]":"["};n.parse=r,n.parseUntil=i,n.parseChar=o,n.defaultState=function(){return new s},s.prototype.current=function(){return this.stack[this.stack.length-1]},s.prototype.isString=function(){return this.current()===h.SINGLE_QUOTE||this.current()===h.DOUBLE_QUOTE||this.current()===h.TEMPLATE_QUOTE},s.prototype.isComment=function(){return this.current()===h.LINE_COMMENT||this.current()===h.BLOCK_COMMENT},s.prototype.isNesting=function(e){return(!e||!e.ignoreLineComment||1!==this.stack.length||this.stack[0]!==h.LINE_COMMENT)&&!!this.stack.length},n.isPunctuator=u,n.isKeyword=c},{"is-regex":97}],13:[function(e,t,n){t.exports=e("./lib/clean")},{"./lib/clean":14}],14:[function(e,t,n){(function(n){function r(e){return void 0===e?["all"]:e}function i(e){return!T.existsSync(e)&&!/\.css$/.test(e)}function o(e){return T.existsSync(e)&&T.statSync(e).isDirectory()}function s(e){return e?{hostname:F.parse(e).hostname,port:parseInt(F.parse(e).port)}:{}}function a(e,t){function n(n){return n=t.options.debug?c(t,n):p(t,n),n=u(t,n),e?e.call(null,t.errors.length>0?t.errors:null,n):n}return function(e){return t.options.sourceMap?t.inputSourceMapTracker.track(e,function(){return t.options.sourceMapInlineSources?t.inputSourceMapTracker.resolveSources(function(){return n(e)}):n(e)}):n(e)}}function u(e,t){return t.stats=e.stats,t.errors=e.errors,t.warnings=e.warnings,t}function c(e,t){var r=n.hrtime();e.stats.originalSize=e.sourceTracker.removeAll(t).length,t=p(e,t);var i=n.hrtime(r);return e.stats.timeSpent=~~(1e3*i[0]+i[1]/1e6),e.stats.efficiency=1-t.styles.length/e.stats.originalSize,e.stats.minifiedSize=t.styles.length,t}function l(e){return function(t,r){var i=t.constructor.name+"#"+r,o=n.hrtime();e(t,r);var s=n.hrtime(o);console.log("%d ms: "+i,1e3*s[0]+s[1]/1e6)}}function p(e,t){function n(t,n){return t=s.restore(t,n),t=a.restore(t),t=r.rebase?f(t,e):t,t=o.restore(t),i.restore(t)}var r=e.options,i=new b(e,r.keepSpecialComments,r.keepBreaks,r.sourceMap),o=new _(r.sourceMap),s=new x(r.sourceMap),a=new w(e,r.sourceMap,r.compatibility.properties.urlQuotes),u=r.sourceMap?y:v,c=function(e,n){t="function"==typeof e?e(t):e[n](t)};r.benchmark&&(c=l(c)),c(i,"escape"),c(o,"escape"),c(a,"escape"),c(s,"escape");var p=d(t,e);return m(p,r,e),r.advanced&&g(p,r,e,!0),u(p,r,n,e.inputSourceMapTracker)}var h=e("./imports/inliner"),f=e("./urls/rebase"),d=e("./tokenizer/tokenize"),m=e("./selectors/simple"),g=e("./selectors/advanced"),v=e("./stringifier/simple"),y=e("./stringifier/source-maps"),b=e("./text/comments-processor"),_=e("./text/expressions-processor"),x=e("./text/free-text-processor"),w=e("./text/urls-processor"),k=e("./utils/compatibility"),E=e("./utils/input-source-map-tracker"),A=e("./utils/source-tracker"),C=e("./utils/source-reader"),S=e("./properties/validator"),T=e("fs"),O=e("path"),F=e("url"),D=e("./utils/object").override;(t.exports=function(e){e=e||{},this.options={advanced:void 0===e.advanced||!!e.advanced,aggressiveMerging:void 0===e.aggressiveMerging||!!e.aggressiveMerging,benchmark:e.benchmark,compatibility:new k(e.compatibility).toOptions(),debug:e.debug,explicitRoot:!!e.root,explicitTarget:!!e.target,inliner:e.inliner||{},keepBreaks:e.keepBreaks||!1,keepSpecialComments:"keepSpecialComments"in e?e.keepSpecialComments:"*",mediaMerging:void 0===e.mediaMerging||!!e.mediaMerging,processImport:void 0===e.processImport||!!e.processImport,processImportFrom:r(e.processImportFrom),rebase:void 0===e.rebase||!!e.rebase,relativeTo:e.relativeTo,restructuring:void 0===e.restructuring||!!e.restructuring,root:e.root||n.cwd(),roundingPrecision:e.roundingPrecision,semanticMerging:void 0!==e.semanticMerging&&!!e.semanticMerging,shorthandCompacting:void 0===e.shorthandCompacting||!!e.shorthandCompacting,sourceMap:e.sourceMap,sourceMapInlineSources:!!e.sourceMapInlineSources,target:!e.target||i(e.target)||o(e.target)?e.target:O.dirname(e.target)},this.options.inliner.timeout=this.options.inliner.timeout||5e3,this.options.inliner.request=D(s(n.env.HTTP_PROXY||n.env.http_proxy),this.options.inliner.request||{})}).prototype.minify=function(e,t){var r={stats:{},errors:[],warnings:[],options:this.options,debug:this.options.debug,localOnly:!t,sourceTracker:new A,validator:new S(this.options.compatibility)};return r.options.sourceMap&&(r.inputSourceMapTracker=new E(r)),r.sourceReader=new C(r,e),e=r.sourceReader.toString(),r.options.processImport||e.indexOf("@shallow")>0?(t?n.nextTick:function(e){return e()})(function(){return new h(r).process(e,{localOnly:r.localOnly,imports:r.options.processImportFrom,whenDone:a(t,r)})}):a(t,r)(e)}}).call(this,e("_process"))},{"./imports/inliner":18,"./properties/validator":33,"./selectors/advanced":36,"./selectors/simple":49,"./stringifier/simple":53,"./stringifier/source-maps":54,"./text/comments-processor":55,"./text/expressions-processor":57,"./text/free-text-processor":58,"./text/urls-processor":59,"./tokenizer/tokenize":62,"./urls/rebase":63,"./utils/compatibility":67,"./utils/input-source-map-tracker":68,"./utils/object":69,"./utils/source-reader":71,"./utils/source-tracker":72,_process:104,fs:10,path:103,url:150}],15:[function(e,t,n){function r(e,t,n,r){return t+a[n.toLowerCase()]+r}function i(e,t,n){return u[t.toLowerCase()]+n}var o={},s={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#0ff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000",blanchedalmond:"#ffebcd",blue:"#00f",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#0ff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",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:"#f0f",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",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",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#0f0",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",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:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#f00",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:"#fff",whitesmoke:"#f5f5f5",yellow:"#ff0",yellowgreen:"#9acd32"},a={},u={};for(var c in s){var l=s[c];c.length<l.length?u[l]=c:a[c]=l}var p=new RegExp("(^| |,|\\))("+Object.keys(a).join("|")+")( |,|\\)|$)","ig"),h=new RegExp("("+Object.keys(u).join("|")+")([^a-f0-9]|$)","ig");o.shorten=function(e){var t=e.indexOf("#")>-1,n=e.replace(p,r);return n!=e&&(n=n.replace(p,r)),t?n.replace(h,i):n},t.exports=o},{}],16:[function(e,t,n){function r(e,t,n){this.hue=e,this.saturation=t,this.lightness=n}function i(e,t,n){var r,i,s;if(e%=360,e<0&&(e+=360),e=~~e/360,t<0?t=0:t>100&&(t=100),t=~~t/100,n<0?n=0:n>100&&(n=100),n=~~n/100,0===t)r=i=s=n;else{var a=n<.5?n*(1+t):n+t-n*t,u=2*n-a;r=o(u,a,e+1/3),i=o(u,a,e),s=o(u,a,e-1/3)}return[~~(255*r),~~(255*i),~~(255*s)]}function o(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}r.prototype.toHex=function(){var e=i(this.hue,this.saturation,this.lightness),t=e[0].toString(16),n=e[1].toString(16),r=e[2].toString(16);return"#"+(1==t.length?"0":"")+t+(1==n.length?"0":"")+n+(1==r.length?"0":"")+r},t.exports=r},{}],17:[function(e,t,n){function r(e,t,n){this.red=e,this.green=t,this.blue=n}r.prototype.toHex=function(){return"#"+("00000"+(Math.max(0,Math.min(~~this.red,255))<<16|Math.max(0,Math.min(~~this.green,255))<<8|Math.max(0,Math.min(~~this.blue,255))).toString(16)).slice(-6)},t.exports=r},{}],18:[function(e,t,n){(function(n){function r(e){this.outerContext=e}function i(e,t){if(t.shallow)return t.shallow=!1,t.done.push(e),a(t);for(var n=0,r=0,i=0,o=u(e);r<e.length&&-1!=(n=s(e,i));){if(!o(n)){if(-1==(r=e.indexOf(";",n))){i=e.length,e="";break}var p=e.substring(0,n);return t.done.push(p),t.left.unshift([e.substring(r+1),w(t,{shallow:!1})]),t.afterContent=c(p),l(e,n,r,t)}i=n+1}return t.done.push(e),a(t)}function o(e,t){return e.replace(k,function(e,n){return E.test(n)?e:e.replace(n,b.resolve(t,n))})}function s(e,t){var n=e.indexOf("@import",t),r=e.indexOf("@IMPORT",t);return n>-1&&-1==r?n:-1==n&&r>-1?r:Math.min(n,r)}function a(e){return e.left.length>0?i.apply(null,e.left.shift()):e.whenDone(e.done.join(""))}function u(e){var t=0,n=0,r=!1;return function(i){var o,s=0,a=0,u=0,c=0;if(r)return!1;do{if(i>t&&i<n)return!0;if(!(o=e.match(/(\/\*(?!\*\/)[\s\S]*?\*\/)/)))return r=!0,!1;t=s=o.index,a=s+o[0].length,c=a+n,u=c-o[0].length,e=e.substring(a),n=c}while(c<i);return c>i&&i>u}}function c(e){for(var t=u(e),n=-1;;)if(-1==(n=e.indexOf("{",n+1))||!t(n))break;return n>-1}function l(e,t,n,r){r.shallow=e.indexOf("@shallow")>0;var i=e.substring(s(e,t)+"@import".length+1,n).replace(/@shallow\)$/,")").trim(),o=0===i.indexOf("url("),u=o?4:0,l=/^['"]/.exec(i.substring(u,u+2)),m=l?i.indexOf(l[0],u+1):x(i," ")[0].length-(o?1:0),g=i.substring(u,m).replace(/['"]/g,"").replace(/\)$/,"").trim(),v=i.substring(m+1).replace(/^\)/,"").trim(),y=r.isRemote||E.test(g);return!y||!r.localOnly&&p(g,!0,r.imports)?y||p(g,!1,r.imports)?!y&&r.afterContent?(r.warnings.push('Ignoring local @import of "'+g+'" as after other CSS content.'),a(r)):(y?h:f)(g,v,r):(r.afterImport?r.warnings.push('Ignoring local @import of "'+g+'" as after other inlined content.'):d(g,v,r),a(r)):(r.afterContent||c(r.done.join(""))?r.warnings.push('Ignoring remote @import of "'+g+'" as no callback given.'):d(g,v,r),a(r))}function p(e,t,n){if(0===n.length)return!1;t&&A.test(e)&&(e="http:"+e);for(var r=t?b.parse(e).host:e,i=!0,o=0;o<n.length;o++){var s=n[o];"all"==s?i=!0:t&&"local"==s?i=!1:t&&"remote"==s?i=!0:t||"remote"!=s?t||"local"!=s?"!"==s[0]&&s.substring(1)===r&&(i=!1):i=!0:i=!1}return i}function h(e,t,r){function s(e){f||(f=!0,r.errors.push('Broken @import declaration of "'+u+'" - '+e),d(u,t,r),n.nextTick(function(){a(r)}))}var u=E.test(e)?e:b.resolve(r.relativeTo,e),c=u;if(A.test(u)&&(u="http:"+u),r.visited.indexOf(u)>-1)return a(r);r.debug&&console.error("Inlining remote stylesheet: "+u),r.visited.push(u);var l=r.inliner.request.protocol||r.inliner.request.hostname,p=l&&0!==l.indexOf("https://")||0===u.indexOf("http://")?v.get:y.get,f=!1,m=w(b.parse(u),r.inliner.request);void 0!==r.inliner.request.hostname&&(m.protocol=r.inliner.request.protocol||"http:",m.path=m.href),p(m,function(e){if(e.statusCode<200||e.statusCode>399)return s("error "+e.statusCode);if(e.statusCode>299){return h(b.resolve(u,e.headers.location),t,r)}var a=[],l=b.parse(u);e.on("data",function(e){a.push(e.toString())}),e.on("end",function(){var e=a.join("");r.rebase&&(e=_(e,{toBase:c},r)),r.sourceReader.trackSource(u,e),e=r.sourceTracker.store(u,e),e=o(e,u),t.length>0&&(e="@media "+t+"{"+e+"}"),r.afterImport=!0;var s=w(r,{isRemote:!0,relativeTo:l.protocol+"//"+l.host+l.pathname});n.nextTick(function(){i(e,s)})})}).on("error",function(e){s(e.message)}).on("timeout",function(){s("timeout")}).setTimeout(r.inliner.timeout)}function f(e,t,n){var r="/"==e[0]?n.root:n.relativeTo,o=g.resolve(g.join(r,e));if(!m.existsSync(o)||!m.statSync(o).isFile())return n.errors.push('Broken @import declaration of "'+e+'"'),a(n);if(n.visited.indexOf(o)>-1)return a(n);n.debug&&console.error("Inlining local stylesheet: "+o),n.visited.push(o);var s=g.dirname(o),u=m.readFileSync(o,"utf8");if(n.rebase){var c={relative:!0,fromBase:s,toBase:n.baseRelativeTo};u=_(u,c,n)}var l=g.relative(n.root,o);return n.sourceReader.trackSource(l,u),u=n.sourceTracker.store(l,u),t.length>0&&(u="@media "+t+"{"+u+"}"),n.afterImport=!0,i(u,w(n,{relativeTo:s}))}function d(e,t,n){var r="@import url("+e+")"+(t.length>0?" "+t:"")+";";n.done.push(r)}var m=e("fs"),g=e("path"),v=e("http"),y=e("https"),b=e("url"),_=e("../urls/rewrite"),x=e("../utils/split"),w=e("../utils/object.js").override,k=/\/\*# sourceMappingURL=(\S+) \*\//,E=/^(https?:)?\/\//,A=/^\/\//;r.prototype.process=function(e,t){var n=this.outerContext.options.root;return t=w(t,{baseRelativeTo:this.outerContext.options.relativeTo||n,debug:this.outerContext.options.debug,done:[],errors:this.outerContext.errors,left:[],inliner:this.outerContext.options.inliner,rebase:this.outerContext.options.rebase,relativeTo:this.outerContext.options.relativeTo||n,root:n,sourceReader:this.outerContext.sourceReader,sourceTracker:this.outerContext.sourceTracker,warnings:this.outerContext.warnings,visited:[]}),i(e,t)},t.exports=r}).call(this,e("_process"))},{"../urls/rewrite":65,"../utils/object.js":69,"../utils/split":73,_process:104,fs:10,http:10,https:10,path:103,url:150}],19:[function(e,t,n){function r(e){return function(t){return"invert"==t[0]||e.isValidColor(t[0])}}function i(e){return function(t){return"inherit"!=t[0]&&e.isValidStyle(t[0])&&!e.isValidColorValue(t[0])}}function o(e,t,n){var r=n[e];return f(r.doubleValues&&2==r.defaultValue.length?[[e,t.important],[r.defaultValue[0]],[r.defaultValue[1]]]:r.doubleValues&&1==r.defaultValue.length?[[e,t.important],[r.defaultValue[0]]]:[[e,t.important],[r.defaultValue]])}function s(e){return function(t){return"inherit"!=t[0]&&e.isValidWidth(t[0])&&!e.isValidStyleKeyword(t[0])&&!e.isValidColorValue(t[0])}}function a(e,t,n){var r=o("background-image",e,t),i=o("background-position",e,t),s=o("background-size",e,t),a=o("background-repeat",e,t),u=o("background-attachment",e,t),c=o("background-origin",e,t),l=o("background-clip",e,t),p=o("background-color",e,t),h=[r,i,s,a,u,c,l,p],f=e.value,d=!1,g=!1,v=!1,y=!1;if(1==e.value.length&&"inherit"==e.value[0][0])return p.value=r.value=a.value=i.value=s.value=c.value=l.value=e.value,h;for(var b=f.length-1;b>=0;b--){var _=f[b];if(n.isValidBackgroundAttachment(_[0]))u.value=[_];else if(n.isValidBackgroundBox(_[0]))g?(c.value=[_],v=!0):(l.value=[_],g=!0);else if(n.isValidBackgroundRepeat(_[0]))y?a.value.unshift(_):(a.value=[_],y=!0);else if(n.isValidBackgroundPositionPart(_[0])||n.isValidBackgroundSizePart(_[0]))if(b>0){var x=f[b-1];if(x[0].indexOf("/")>0){var w=m(x[0],"/");s.value=[[w.pop()].concat(x.slice(1)),_],f[b-1]=[w.pop()].concat(x.slice(1))}else b>1&&"/"==f[b-2][0]?(s.value=[x,_],b-=2):"/"==x[0]?s.value=[_]:(d||(i.value=[]),i.value.unshift(_),d=!0)}else d||(i.value=[]),i.value.unshift(_),d=!0;else if(n.isValidBackgroundPositionAndSize(_[0])){var k=m(_[0],"/");s.value=[[k.pop()].concat(_.slice(1))],i.value=[[k.pop()].concat(_.slice(1))]}else p.value[0][0]!=t[p.name].defaultValue&&"none"!=p.value[0][0]||!n.isValidColor(_[0])?(n.isValidUrl(_[0])||n.isValidFunction(_[0]))&&(r.value=[_]):p.value=[_]}return g&&!v&&(c.value=l.value.slice(0)),h}function u(e,t){for(var n=e.value,r=-1,i=0,s=n.length;i<s;i++)if("/"==n[i][0]){r=i;break}if(0===r||r===n.length-1)throw new d("Invalid border-radius value.");var a=o(e.name,e,t);a.value=r>-1?n.slice(0,r):n.slice(0),a.components=c(a,t);var u=o(e.name,e,t);u.value=r>-1?n.slice(r+1):n.slice(0),u.components=c(u,t);for(var l=0;l<4;l++)a.components[l].multiplex=!0,a.components[l].value=a.components[l].value.concat(u.components[l].value);return a.components}function c(e,t){var n=t[e.name].components,r=[],i=e.value;if(i.length<1)return[];i.length<2&&(i[1]=i[0].slice(0)),i.length<3&&(i[2]=i[0].slice(0)),i.length<4&&(i[3]=i[1].slice(0));for(var o=n.length-1;o>=0;o--){var s=f([[n[o],e.important]]);s.value=[i[o]],r.unshift(s)}return r}function l(e){return function(t,n,r){var i,s,a,u,c=[],l=t.value;for(i=0,a=l.length;i<a;i++)","==l[i][0]&&c.push(i);if(0===c.length)return e(t,n,r);var p=[];for(i=0,a=c.length;i<=a;i++){var h=0===i?0:c[i-1]+1,f=i<a?c[i]:l.length,d=o(t.name,t,n);d.value=l.slice(h,f),p.push(e(d,n,r))}var m=p[0];for(i=0,a=m.length;i<a;i++)for(m[i].multiplex=!0,s=1,u=p.length;s<u;s++)m[i].value.push([g]),Array.prototype.push.apply(m[i].value,p[s][i].value);return m}}function p(e,t,n){var r=o("list-style-type",e,t),i=o("list-style-position",e,t),s=o("list-style-image",e,t),a=[r,i,s];if(1==e.value.length&&"inherit"==e.value[0][0])return r.value=i.value=s.value=[e.value[0]],a;var u=e.value.slice(0),c=u.length,l=0;for(l=0,c=u.length;l<c;l++)if(n.isValidUrl(u[l][0])||"0"==u[l][0]){s.value=[u[l]],u.splice(l,1);break}for(l=0,c=u.length;l<c;l++)if(n.isValidListStyleType(u[l][0])){r.value=[u[l]],u.splice(l,1);break}return u.length>0&&n.isValidListStylePosition(u[0][0])&&(i.value=[u[0]]),a}function h(e,t,n){for(var a,u,c,l=t[e.name],p=[o(l.components[0],e,t),o(l.components[1],e,t),o(l.components[2],e,t)],h=0;h<3;h++){var f=p[h];f.name.indexOf("color")>0?a=f:f.name.indexOf("style")>0?u=f:c=f}if(1==e.value.length&&"inherit"==e.value[0][0]||3==e.value.length&&"inherit"==e.value[0][0]&&"inherit"==e.value[1][0]&&"inherit"==e.value[2][0])return a.value=u.value=c.value=[e.value[0]],p;var d,m,g=e.value.slice(0);return g.length>0&&(m=g.filter(s(n)),(d=m.length>1&&("none"==m[0][0]||"auto"==m[0][0])?m[1]:m[0])&&(c.value=[d],g.splice(g.indexOf(d),1))),g.length>0&&(d=g.filter(i(n))[0])&&(u.value=[d],g.splice(g.indexOf(d),1)),g.length>0&&(d=g.filter(r(n))[0])&&(a.value=[d],g.splice(g.indexOf(d),1)),p}var f=e("./wrap-for-optimizing").single,d=e("./invalid-property-error"),m=e("../utils/split"),g=",";t.exports={background:a,border:h,borderRadius:u,fourValues:c,listStyle:p,multiplex:l,outline:h}},{"../utils/split":73,"./invalid-property-error":25,"./wrap-for-optimizing":35}],20:[function(e,t,n){function r(){return!0}function i(e,t,n){var r=e.value[0][0],i=t.value[0][0],o=n.isValidFunction(r),s=n.isValidFunction(i);return o&&s?n.areSameFunction(r,i):!(!o&&s)}function o(e,t,n){var r=e.value[0][0],i=t.value[0][0];return!("none"!=i&&"inherit"!=i&&!n.isValidUrl(i))||"none"!=r&&"inherit"!=r&&!n.isValidUrl(r)&&l(e,t,n)}function s(e,t,n){return a(e.components[2],t.components[2],n)}function a(e,t,n){var r=e.value[0][0],i=t.value[0][0];return!(!n.colorOpacity&&(n.isValidRgbaColor(r)||n.isValidHslaColor(r)))&&(!(!n.colorOpacity&&(n.isValidRgbaColor(i)||n.isValidHslaColor(i)))&&(!(!n.isValidNamedColor(i)&&!n.isValidHexColor(i))||!n.isValidNamedColor(r)&&!n.isValidHexColor(r)&&(!(!n.isValidRgbaColor(i)&&!n.isValidHslaColor(i))||!n.isValidRgbaColor(r)&&!n.isValidHslaColor(r)&&l(e,t,n))))}function u(e,t,n){var r=e.value[0][0],i=t.value[0][0];return!(n.isValidFunction(r)^n.isValidFunction(i))}function c(e,t){return e.value[0][0]===t.value[0][0]}function l(e,t,n){var r=e.value[0][0],i=t.value[0][0];return!!n.areSameFunction(r,i)||r===i}function p(e,t,n){var r=e.value[0][0],i=t.value[0][0];return!(n.isValidAndCompatibleUnitWithoutFunction(r)&&!n.isValidAndCompatibleUnitWithoutFunction(i))&&(!!n.isValidUnitWithoutFunction(i)||!n.isValidUnitWithoutFunction(r)&&(!(!n.isValidFunctionWithoutVendorPrefix(i)||!n.isValidFunctionWithoutVendorPrefix(r))||l(e,t,n)))}t.exports={always:r,alwaysButIntoFunction:i,backgroundImage:o,border:s,color:a,sameValue:c,sameFunctionOrValue:l,twoOptionalFunctions:u,unit:p}},{}],21:[function(e,t,n){function r(e){for(var t=i(e),n=e.components.length-1;n>=0;n--){var r=i(e.components[n]);r.value=e.components[n].value.slice(0),t.components.unshift(r)}return t.dirty=!0,t.value=e.value.slice(0),t}function i(e){var t=o([[e.name,e.important,e.hack]]);return t.unused=!1,t}var o=e("./wrap-for-optimizing").single;t.exports={deep:r,shallow:i}},{"./wrap-for-optimizing":35}],22:[function(e,t,n){var r=e("./break-up"),i=e("./can-override"),o=e("./restore"),s={color:{canOverride:i.color,defaultValue:"transparent",shortestValue:"red"},background:{components:["background-image","background-position","background-size","background-repeat","background-attachment","background-origin","background-clip","background-color"],breakUp:r.multiplex(r.background),defaultValue:"0 0",restore:o.multiplex(o.background),shortestValue:"0",shorthand:!0},"background-clip":{canOverride:i.always,defaultValue:"border-box",shortestValue:"border-box"},"background-color":{canOverride:i.color,defaultValue:"transparent",multiplexLastOnly:!0,nonMergeableValue:"none",shortestValue:"red"},"background-image":{canOverride:i.backgroundImage,defaultValue:"none"},"background-origin":{canOverride:i.always,defaultValue:"padding-box",shortestValue:"border-box"},"background-repeat":{canOverride:i.always,defaultValue:["repeat"],doubleValues:!0},"background-position":{canOverride:i.alwaysButIntoFunction,defaultValue:["0","0"],doubleValues:!0,shortestValue:"0"},"background-size":{
canOverride:i.alwaysButIntoFunction,defaultValue:["auto"],doubleValues:!0,shortestValue:"0 0"},"background-attachment":{canOverride:i.always,defaultValue:"scroll"},border:{breakUp:r.border,canOverride:i.border,components:["border-width","border-style","border-color"],defaultValue:"none",restore:o.withoutDefaults,shorthand:!0},"border-color":{canOverride:i.color,defaultValue:"none",shorthand:!0},"border-style":{canOverride:i.always,defaultValue:"none",shorthand:!0},"border-width":{canOverride:i.unit,defaultValue:"medium",shortestValue:"0",shorthand:!0},"list-style":{components:["list-style-type","list-style-position","list-style-image"],canOverride:i.always,breakUp:r.listStyle,restore:o.withoutDefaults,defaultValue:"outside",shortestValue:"none",shorthand:!0},"list-style-type":{canOverride:i.always,defaultValue:"__hack",shortestValue:"none"},"list-style-position":{canOverride:i.always,defaultValue:"outside",shortestValue:"inside"},"list-style-image":{canOverride:i.always,defaultValue:"none"},outline:{components:["outline-color","outline-style","outline-width"],breakUp:r.outline,restore:o.withoutDefaults,defaultValue:"0",shorthand:!0},"outline-color":{canOverride:i.color,defaultValue:"invert",shortestValue:"red"},"outline-style":{canOverride:i.always,defaultValue:"none"},"outline-width":{canOverride:i.unit,defaultValue:"medium",shortestValue:"0"},"-moz-transform":{canOverride:i.sameFunctionOrValue},"-ms-transform":{canOverride:i.sameFunctionOrValue},"-webkit-transform":{canOverride:i.sameFunctionOrValue},transform:{canOverride:i.sameFunctionOrValue}},a=function(e,t,n){n=n||{},s[e]={canOverride:n.canOverride,components:t,breakUp:n.breakUp||r.fourValues,defaultValue:n.defaultValue||"0",restore:n.restore||o.fourValues,shortestValue:n.shortestValue,shorthand:!0};for(var a=0;a<t.length;a++)s[t[a]]={breakUp:n.breakUp||r.fourValues,canOverride:n.canOverride||i.unit,defaultValue:n.defaultValue||"0",shortestValue:n.shortestValue}};["","-moz-","-o-"].forEach(function(e){a(e+"border-radius",[e+"border-top-left-radius",e+"border-top-right-radius",e+"border-bottom-right-radius",e+"border-bottom-left-radius"],{breakUp:r.borderRadius,restore:o.borderRadius})}),a("border-color",["border-top-color","border-right-color","border-bottom-color","border-left-color"],{breakUp:r.fourValues,canOverride:i.color,defaultValue:"none",shortestValue:"red"}),a("border-style",["border-top-style","border-right-style","border-bottom-style","border-left-style"],{breakUp:r.fourValues,canOverride:i.always,defaultValue:"none"}),a("border-width",["border-top-width","border-right-width","border-bottom-width","border-left-width"],{defaultValue:"medium",shortestValue:"0"}),a("padding",["padding-top","padding-right","padding-bottom","padding-left"]),a("margin",["margin-top","margin-right","margin-bottom","margin-left"]);for(var u in s)if(s[u].shorthand)for(var c=0,l=s[u].components.length;c<l;c++)s[s[u].components[c]].componentOf=u;t.exports=s},{"./break-up":19,"./can-override":20,"./restore":31}],23:[function(e,t,n){function r(e,t,n,r){for(var s=!(t.shorthand||n.shorthand||t.multiplex||n.multiplex),a=i(t),u=i(n),c=0,l=t.value.length;c<l;c++)for(var p=0,h=n.value.length;p<h;p++)if(t.value[c][0]!=o&&n.value[p][0]!=o&&!(s&&c!=p||(a.value=[t.value[c]],u.value=[n.value[p]],e(a,u,r))))return!1;return!0}var i=e("./clone").shallow,o=",";t.exports=r},{"./clone":21}],24:[function(e,t,n){function r(e){for(var t=e.value.length-1;t>=0;t--)if("inherit"==e.value[t][0])return!0;return!1}t.exports=r},{}],25:[function(e,t,n){function r(e){this.name="InvalidPropertyError",this.message=e,this.stack=(new Error).stack}r.prototype=Object.create(Error.prototype),r.prototype.constructor=r,t.exports=r},{}],26:[function(e,t,n){function r(e,t,n,r){var i,s,a={},u=null;e:for(var c=0,l=e.length;c<l;c++){var p=e[c],d=!("-ms-filter"!=p.name&&"filter"!=p.name||"background"!=u&&"background-image"!=u)?u:p.name,m=p.important,g=p.hack;if(!p.unused)if(c>0&&i&&d==u&&m==i.important&&g==i.hack&&function(t){var n=e[t-1],r=e[t];return h(n.all,n.position)==h(r.all,r.position)}(c)&&!i.unused)p.unused=!0;else{if(d in a&&(n&&d!=u||function(e){return!1===t||!0===t?t:t.indexOf(e)>-1}(c))){var v=a[d],y=o[d]&&o[d].canOverride,b=!1;for(s=v.length-1;s>=0;s--){var _=e[v[s]],x=_.name!=d,w=_.important,k=_.hack;if(!_.unused&&((!x||!w)&&(w||!(k&&!g||!k&&g))&&(!w||"star"!=g&&"underscore"!=g)&&(k||g||x||!y||y(_,p,r)))){if(w&&!m||w&&g){p.unused=!0,i=p;continue e}b=!0,_.unused=!0}}if(b){c=-1,i=null,u=null,a={};continue}}else{a[d]=a[d]||[],a[d].push(c);var E=f[d];if(E)for(s=E.length-1;s>=0;s--){var A=E[s];a[A]=a[A]||[],a[A].push(c)}}u=d,i=p}}}function i(e,t,n,o,h,f){var d=f.validator,m=f.warnings,g=s(t);a(g,d,m),r(g,n,h.aggressiveMerging,d);for(var v=0,y=g.length;v<y;v++){var b=g[v];b.variable&&b.block&&i(e,b.value[0],n,o,h,f)}o&&h.shorthandCompacting&&(u(g,h.compatibility,d),c(g,h.sourceMap,d)),p(g),l(g)}var o=e("./compactable"),s=e("./wrap-for-optimizing").all,a=e("./populate-components"),u=e("./override-compactor"),c=e("./shorthand-compactor"),l=e("./remove-unused"),p=e("./restore-from-optimizing"),h=e("../stringifier/one-time").property,f={"animation-delay":["animation"],"animation-direction":["animation"],"animation-duration":["animation"],"animation-fill-mode":["animation"],"animation-iteration-count":["animation"],"animation-name":["animation"],"animation-play-state":["animation"],"animation-timing-function":["animation"],"-moz-animation-delay":["-moz-animation"],"-moz-animation-direction":["-moz-animation"],"-moz-animation-duration":["-moz-animation"],"-moz-animation-fill-mode":["-moz-animation"],"-moz-animation-iteration-count":["-moz-animation"],"-moz-animation-name":["-moz-animation"],"-moz-animation-play-state":["-moz-animation"],"-moz-animation-timing-function":["-moz-animation"],"-o-animation-delay":["-o-animation"],"-o-animation-direction":["-o-animation"],"-o-animation-duration":["-o-animation"],"-o-animation-fill-mode":["-o-animation"],"-o-animation-iteration-count":["-o-animation"],"-o-animation-name":["-o-animation"],"-o-animation-play-state":["-o-animation"],"-o-animation-timing-function":["-o-animation"],"-webkit-animation-delay":["-webkit-animation"],"-webkit-animation-direction":["-webkit-animation"],"-webkit-animation-duration":["-webkit-animation"],"-webkit-animation-fill-mode":["-webkit-animation"],"-webkit-animation-iteration-count":["-webkit-animation"],"-webkit-animation-name":["-webkit-animation"],"-webkit-animation-play-state":["-webkit-animation"],"-webkit-animation-timing-function":["-webkit-animation"],"border-color":["border"],"border-style":["border"],"border-width":["border"],"border-bottom":["border"],"border-bottom-color":["border-bottom","border-color","border"],"border-bottom-style":["border-bottom","border-style","border"],"border-bottom-width":["border-bottom","border-width","border"],"border-left":["border"],"border-left-color":["border-left","border-color","border"],"border-left-style":["border-left","border-style","border"],"border-left-width":["border-left","border-width","border"],"border-right":["border"],"border-right-color":["border-right","border-color","border"],"border-right-style":["border-right","border-style","border"],"border-right-width":["border-right","border-width","border"],"border-top":["border"],"border-top-color":["border-top","border-color","border"],"border-top-style":["border-top","border-style","border"],"border-top-width":["border-top","border-width","border"],"font-family":["font"],"font-size":["font"],"font-style":["font"],"font-variant":["font"],"font-weight":["font"],"transition-delay":["transition"],"transition-duration":["transition"],"transition-property":["transition"],"transition-timing-function":["transition"],"-moz-transition-delay":["-moz-transition"],"-moz-transition-duration":["-moz-transition"],"-moz-transition-property":["-moz-transition"],"-moz-transition-timing-function":["-moz-transition"],"-o-transition-delay":["-o-transition"],"-o-transition-duration":["-o-transition"],"-o-transition-property":["-o-transition"],"-o-transition-timing-function":["-o-transition"],"-webkit-transition-delay":["-webkit-transition"],"-webkit-transition-duration":["-webkit-transition"],"-webkit-transition-property":["-webkit-transition"],"-webkit-transition-timing-function":["-webkit-transition"]};t.exports=i},{"../stringifier/one-time":52,"./compactable":22,"./override-compactor":27,"./populate-components":28,"./remove-unused":29,"./restore-from-optimizing":30,"./shorthand-compactor":32,"./wrap-for-optimizing":35}],27:[function(e,t,n){function r(e){return function(t){return e.name===t.name}}function i(e,t){for(var n=0;n<e.components.length;n++){var r=e.components[n],i=E[r.name],o=i&&i.canOverride||o.sameValue,s=C(r);if(s.value=[[i.defaultValue]],!o(s,r,t))return!0}return!1}function o(e,t){return E[e.name].components.indexOf(t.name)>-1}function s(e,t){t.unused=!0,p(t,h(e)),e.value=t.value}function a(e,t){t.unused=!0,e.multiplex=!0,e.value=t.value}function u(e,t){t.unused=!0,e.value=t.value}function c(e,t){t.multiplex?a(e,t):e.multiplex?s(e,t):u(e,t)}function l(e,t){t.unused=!0;for(var n=0,r=e.components.length;n<r;n++)c(e.components[n],t.components[n],e.multiplex)}function p(e,t){e.multiplex=!0;for(var n=0,r=e.components.length;n<r;n++){var i=e.components[n];if(!i.multiplex)for(var o=i.value.slice(0),s=1;s<t;s++)i.value.push([B]),Array.prototype.push.apply(i.value,o)}}function h(e){for(var t=0,n=0,r=e.value.length;n<r;n++)e.value[n][0]==B&&t++;return t+1}function f(e){var t=[[e.name]].concat(e.value);return D([t],0).length}function d(e,t,n){for(var r=0,i=t;i>=0&&(e[i].name!=n||e[i].unused||r++,!(r>1));i--);return r>1}function m(e,t){for(var n=0,r=e.components.length;n<r;n++)if(g(t.isValidFunction,e.components[n]))return!0;return!1}function g(e,t){for(var n=0,r=t.value.length;n<r;n++)if(t.value[n][0]!=B&&e(t.value[n][0]))return!0;return!1}function v(e,t){if(!e.multiplex&&!t.multiplex||e.multiplex&&t.multiplex)return!1;var n,i=e.multiplex?e:t,o=e.multiplex?t:e,u=A(i);T([u]);var c=A(o);T([c]);var l=f(u)+1+f(c);return e.multiplex?(n=u.components.filter(r(c))[0],s(n,c)):(n=c.components.filter(r(u))[0],p(c,h(u)),a(n,u)),T([c]),l<f(c)}function y(e){return e.name in E}function b(e,t){return!e.multiplex&&("background"==e.name||"background-image"==e.name)&&t.multiplex&&("background"==t.name||"background-image"==t.name)&&_(t.value)}function _(e){for(var t=x(e),n=0,r=t.length;n<r;n++)if(1==t[n].length&&"none"==t[n][0][0])return!0;return!1}function x(e){for(var t=[],n=0,r=[],i=e.length;n<i;n++){var o=e[n];o[0]==B?(t.push(r),r=[]):r.push(o)}return t.push(r),t}function w(e,t,n){var s,a,u,f,_,x,w;e:for(_=e.length-1;_>=0;_--)if(a=e[_],y(a)&&!a.variable)for(s=E[a.name].canOverride||k.sameValue,x=_-1;x>=0;x--)if(u=e[x],y(u)&&!(u.variable||u.unused||a.unused||u.hack&&!a.hack||!u.hack&&a.hack||S(a)||b(u,a)))if(!u.shorthand&&a.shorthand&&o(a,u)){if(!a.important&&u.important)continue;if(!F([u],a.components))continue;if(!g(n.isValidFunction,u)&&m(a,n))continue;f=a.components.filter(r(u))[0],s=E[u.name]&&E[u.name].canOverride||k.sameValue,O(s,u,f,n)&&(u.unused=!0)}else if(u.shorthand&&!a.shorthand&&o(u,a)){if(a.important&&!u.important)continue;if(!a.important&&u.important){a.unused=!0;continue}if(d(e,_-1,u.name))continue;if(m(u,n))continue;if(f=u.components.filter(r(a))[0],O(s,f,a,n)){var A=!t.properties.backgroundClipMerging&&f.name.indexOf("background-clip")>-1||!t.properties.backgroundOriginMerging&&f.name.indexOf("background-origin")>-1||!t.properties.backgroundSizeMerging&&f.name.indexOf("background-size")>-1,C=E[a.name].nonMergeableValue===a.value[0][0];if(A||C)continue;if(!t.properties.merging&&i(u,n))continue;if(f.value[0][0]!=a.value[0][0]&&(S(u)||S(a)))continue;if(v(u,a))continue;!u.multiplex&&a.multiplex&&p(u,h(a)),c(f,a),u.dirty=!0}}else if(u.shorthand&&a.shorthand&&u.name==a.name){if(!u.multiplex&&a.multiplex)continue;if(!a.important&&u.important){a.unused=!0;continue e}if(a.important&&!u.important){u.unused=!0;continue}for(w=u.components.length-1;w>=0;w--){var T=u.components[w],D=a.components[w];if(s=E[T.name].canOverride||k.sameValue,!O(s,T,D,n))continue e;if(!O(k.twoOptionalFunctions,T,D,n)&&n.isValidFunction(D))continue e}l(u,a),u.dirty=!0}else if(u.shorthand&&a.shorthand&&o(u,a)){if(!u.important&&a.important)continue;if(f=u.components.filter(r(a))[0],s=E[a.name].canOverride||k.sameValue,!O(s,f,a,n))continue;if(u.important&&!a.important){a.unused=!0;continue}var B=E[a.name].restore(a,E);if(B.length>1)continue;f=u.components.filter(r(a))[0],c(f,a),a.dirty=!0}else if(u.name==a.name){if(u.important&&!a.important){a.unused=!0;continue}if(s=E[a.name].canOverride||k.sameValue,!O(s,u,a,n))continue;u.unused=!0}}var k=e("./can-override"),E=e("./compactable"),A=e("./clone").deep,C=e("./clone").shallow,S=e("./has-inherit"),T=e("./restore-from-optimizing"),O=e("./every-combination"),F=e("./vendor-prefixes").same,D=e("../stringifier/one-time").property,B=",";t.exports=w},{"../stringifier/one-time":52,"./can-override":20,"./clone":21,"./compactable":22,"./every-combination":23,"./has-inherit":24,"./restore-from-optimizing":30,"./vendor-prefixes":34}],28:[function(e,t,n){function r(e,t,n){for(var r=e.length-1;r>=0;r--){var s=e[r],a=i[s.name];if(a&&a.shorthand){s.shorthand=!0,s.dirty=!0;try{s.components=a.breakUp(s,i,t)}catch(e){if(!(e instanceof o))throw e;s.components=[],n.push(e.message)}s.components.length>0?s.multiplex=s.components[0].multiplex:s.unused=!0}}}var i=e("./compactable"),o=e("./invalid-property-error");t.exports=r},{"./compactable":22,"./invalid-property-error":25}],29:[function(e,t,n){function r(e){for(var t=e.length-1;t>=0;t--){var n=e[t];n.unused&&n.all.splice(n.position,1)}}t.exports=r},{}],30:[function(e,t,n){function r(e){e.value[e.value.length-1][0]+=u}function i(e){"underscore"==e.hack?e.name=l+e.name:"star"==e.hack?e.name=c+e.name:"backslash"==e.hack?e.value[e.value.length-1][0]+=a:"bang"==e.hack&&(e.value[e.value.length-1][0]+=" "+p)}function o(e,t){for(var n=e.length-1;n>=0;n--){var o,a=e[n],u=s[a.name];if(!a.unused&&((a.dirty||a.important||a.hack)&&(!t&&u&&u.shorthand?(o=u.restore(a,s),a.value=o):o=a.value,a.important&&r(a),a.hack&&i(a),"all"in a))){var c=a.all[a.position];c[0][0]=a.name,c.splice(1,c.length-1),Array.prototype.push.apply(c,o)}}}var s=e("./compactable"),a="\\9",u="!important",c="*",l="_",p="!ie";t.exports=o},{"./compactable":22}],31:[function(e,t,n){function r(e){for(var t=0,n=e.length;t<n;t++){var r=e[t][0];if("inherit"!=r&&r!=l&&r!=p)return!1}return!0}function i(e,t,n){function i(e){Array.prototype.unshift.apply(c,e.value)}function o(e){var n=t[e.name];return n.doubleValues?1==n.defaultValue.length?e.value[0][0]==n.defaultValue[0]&&(!e.value[1]||e.value[1][0]==n.defaultValue[0]):e.value[0][0]==n.defaultValue[0]&&(e.value[1]?e.value[1][0]:e.value[0][0])==n.defaultValue[1]:e.value[0][0]==n.defaultValue}for(var s,a,u=e.components,c=[],l=u.length-1;l>=0;l--){var h=u[l],f=o(h);if("background-clip"==h.name){var d=u[l-1],m=o(d);s=h.value[0][0]==d.value[0][0],a=!s&&(m&&!f||!m&&!f||!m&&f&&h.value[0][0]!=d.value[0][0]),s?i(d):a&&(i(h),i(d)),l--}else if("background-size"==h.name){var g=u[l-1],v=o(g);s=!v&&f,a=!s&&(v&&!f||!v&&!f),s?i(g):a?(i(h),c.unshift([p]),i(g)):1==g.value.length&&i(g),l--}else{if(f||t[h.name].multiplexLastOnly&&!n)continue;i(h)}}return 0===c.length&&1==e.value.length&&"0"==e.value[0][0]&&c.push(e.value[0]),0===c.length&&c.push([t[e.name].defaultValue]),r(c)?[c[0]]:c}function o(e,t){if(e.multiplex){for(var n=c(e),r=c(e),i=0;i<4;i++){var o=e.components[i],a=c(e);a.value=[o.value[0]],n.components.push(a);var u=c(e);u.value=[o.value[1]||o.value[0]],r.components.push(u)}var l=s(n),p=s(r);return l.length!=p.length||l[0][0]!=p[0][0]||l.length>1&&l[1][0]!=p[1][0]||l.length>2&&l[2][0]!=p[2][0]||l.length>3&&l[3][0]!=p[3][0]?l.concat([["/"]]).concat(p):l}return s(e)}function s(e){var t=e.components,n=t[0].value[0],r=t[1].value[0],i=t[2].value[0],o=t[3].value[0];return n[0]==r[0]&&n[0]==i[0]&&n[0]==o[0]?[n]:n[0]==i[0]&&r[0]==o[0]?[n,r]:r[0]==o[0]?[n,r,i]:[n,r,i,o]}function a(e){return function(t,n){if(!t.multiplex)return e(t,n,!0);var r,i,o=0,s=[],a={};for(r=0,i=t.components[0].value.length;r<i;r++)t.components[0].value[r][0]==l&&o++;for(r=0;r<=o;r++){for(var u=c(t),p=0,h=t.components.length;p<h;p++){var f=t.components[p],d=c(f);u.components.push(d);for(var m=a[d.name]||0,g=f.value.length;m<g;m++){if(f.value[m][0]==l){a[d.name]=m+1;break}d.value.push(f.value[m])}}var v=r==o,y=e(u,n,v);Array.prototype.push.apply(s,y),r<o&&s.push([","])}return s}}function u(e,t){for(var n=e.components,i=[],o=n.length-1;o>=0;o--){var s=n[o],a=t[s.name];s.value[0][0]!=a.defaultValue&&i.unshift(s.value[0])}return 0===i.length&&i.push([t[e.name].defaultValue]),r(i)?[i[0]]:i}var c=e("./clone").shallow,l=",",p="/";t.exports={background:i,borderRadius:o,fourValues:s,multiplex:a,withoutDefaults:u}},{"./clone":21}],32:[function(e,t,n){function r(e){var t;for(var n in e){if(void 0!==t&&e[n].important!=t)return!0;t=e[n].important}return!1}function i(e){var t=[];for(var n in e){var r=e[n],i=r.all[r.position],o=i[0][i[0].length-1];Array.isArray(o)&&Array.prototype.push.apply(t,o)}return t}function o(e,t,n,r,o){var s,a=u[n],d=[[n],[a.defaultValue]],m=h(d);m.shorthand=!0,m.dirty=!0,p([m],o,[]);for(var g=0,v=a.components.length;g<v;g++){var y=t[a.components[g]],b=u[y.name].canOverride;if(l(y))return;if(!f(b,m.components[g],y,o))return;m.components[g]=c(y),m.important=y.important,s=y.all}for(var _ in t)t[_].unused=!0;if(r){var x=i(t);x.length>0&&d[0].push(x)}m.position=s.length,m.all=s,m.all.push(d),e.push(m)}function s(e,t,n,i,s){var a=e[t];for(var c in n)if(void 0===a||c!=a.name){var l=u[c],p=n[c];l.components.length>Object.keys(p).length?delete n[c]:r(p)||o(e,p,c,i,s)}}function a(e,t,n){var r={};if(!(e.length<3)){for(var i=0,o=e.length;i<o;i++){var a=e[i];if(!a.unused&&(!a.hack&&!a.variable)){var c=u[a.name];if(c&&c.componentOf)if(a.shorthand)s(e,i,r,t,n);else{var l=c.componentOf;r[l]=r[l]||{},r[l][a.name]=a}}}s(e,i,r,t,n)}}var u=e("./compactable"),c=e("./clone").deep,l=e("./has-inherit"),p=e("./populate-components"),h=e("./wrap-for-optimizing").single,f=e("./every-combination");t.exports=a},{"./clone":21,"./compactable":22,"./every-combination":23,"./has-inherit":24,"./populate-components":28,"./wrap-for-optimizing":35}],33:[function(e,t,n){function r(e){var t=s.slice(0).filter(function(t){return!(t in e.units)||!0===e.units[t]}),n="(\\-?\\.?\\d+\\.?\\d*("+t.join("|")+"|)|auto|inherit)";this.compatibleCssUnitRegex=new RegExp("^"+n+"$","i"),this.compatibleCssUnitAnyRegex=new RegExp("^(none|"+o.join("|")+"|"+n+"|"+l+"|"+u+"|"+c+")$","i"),this.colorOpacity=e.colors.opacity}var i=e("../utils/split"),o=["thin","thick","medium","inherit","initial"],s=["px","%","em","in","cm","mm","ex","pt","pc","ch","rem","vh","vm","vmin","vmax","vw"],a="(\\-?\\.?\\d+\\.?\\d*("+s.join("|")+"|)|auto|inherit)",u="[A-Z]+(\\-|[A-Z]|[0-9])+\\(.*?\\)",c="\\-(\\-|[A-Z]|[0-9])+\\(.*?\\)",l="var\\(\\-\\-[^\\)]+\\)",p="("+l+"|"+u+"|"+c+")",h="("+a+"|(\\-moz\\-|\\-webkit\\-)?calc\\([^\\)]+\\))",f="(none|"+o.join("|")+"|"+a+"|"+l+"|"+u+"|"+c+")",d=new RegExp("^"+u+"$","i"),m=new RegExp("^"+c+"$","i"),g=new RegExp("^"+l+"$","i"),v=new RegExp("^"+p+"$","i"),y=new RegExp("^"+a+"$","i"),b=new RegExp("^"+h+"$","i"),_=new RegExp("^"+f+"$","i"),x=["repeat","no-repeat","repeat-x","repeat-y","inherit"],w=["inherit","scroll","fixed","local"],k=["center","top","bottom","left","right"],E=["contain","cover"],A=["border-box","content-box","padding-box"],C=["auto","inherit","hidden","none","dotted","dashed","solid","double","groove","ridge","inset","outset"],S=["armenian","circle","cjk-ideographic","decimal","decimal-leading-zero","disc","georgian","hebrew","hiragana","hiragana-iroha","inherit","katakana","katakana-iroha","lower-alpha","lower-greek","lower-latin","lower-roman","none","square","upper-alpha","upper-latin","upper-roman"],T=["inside","outside","inherit"];r.prototype.isValidHexColor=function(e){return(4===e.length||7===e.length)&&"#"===e[0]},r.prototype.isValidRgbaColor=function(e){return e=e.split(" ").join(""),e.length>0&&0===e.indexOf("rgba(")&&e.indexOf(")")===e.length-1},r.prototype.isValidHslaColor=function(e){return e=e.split(" ").join(""),e.length>0&&0===e.indexOf("hsla(")&&e.indexOf(")")===e.length-1},r.prototype.isValidNamedColor=function(e){return"auto"!==e&&("transparent"===e||"inherit"===e||/^[a-zA-Z]+$/.test(e))},r.prototype.isValidVariable=function(e){return g.test(e)},r.prototype.isValidColor=function(e){return this.isValidNamedColor(e)||this.isValidColorValue(e)||this.isValidVariable(e)||this.isValidVendorPrefixedValue(e)},r.prototype.isValidColorValue=function(e){return this.isValidHexColor(e)||this.isValidRgbaColor(e)||this.isValidHslaColor(e)},r.prototype.isValidUrl=function(e){return 0===e.indexOf("__ESCAPED_URL_CLEAN_CSS")},r.prototype.isValidUnit=function(e){return _.test(e)},r.prototype.isValidUnitWithoutFunction=function(e){return y.test(e)},r.prototype.isValidAndCompatibleUnit=function(e){return this.compatibleCssUnitAnyRegex.test(e)},r.prototype.isValidAndCompatibleUnitWithoutFunction=function(e){return this.compatibleCssUnitRegex.test(e)},r.prototype.isValidFunctionWithoutVendorPrefix=function(e){return d.test(e)},r.prototype.isValidFunctionWithVendorPrefix=function(e){return m.test(e)},r.prototype.isValidFunction=function(e){return v.test(e)},r.prototype.isValidBackgroundRepeat=function(e){return x.indexOf(e)>=0||this.isValidVariable(e)},r.prototype.isValidBackgroundAttachment=function(e){return w.indexOf(e)>=0||this.isValidVariable(e)},r.prototype.isValidBackgroundBox=function(e){return A.indexOf(e)>=0||this.isValidVariable(e)},r.prototype.isValidBackgroundPositionPart=function(e){return k.indexOf(e)>=0||b.test(e)||this.isValidVariable(e)},r.prototype.isValidBackgroundPosition=function(e){if("inherit"===e)return!0;for(var t=e.split(" "),n=0,r=t.length;n<r;n++)if(""!==t[n]&&!this.isValidBackgroundPositionPart(t[n])&&!this.isValidVariable(t[n]))return!1;return!0},r.prototype.isValidBackgroundSizePart=function(e){return E.indexOf(e)>=0||y.test(e)||this.isValidVariable(e)},r.prototype.isValidBackgroundPositionAndSize=function(e){if(e.indexOf("/")<0)return!1;var t=i(e,"/");return this.isValidBackgroundSizePart(t.pop())&&this.isValidBackgroundPositionPart(t.pop())},r.prototype.isValidListStyleType=function(e){return S.indexOf(e)>=0||this.isValidVariable(e)},r.prototype.isValidListStylePosition=function(e){return T.indexOf(e)>=0||this.isValidVariable(e)},r.prototype.isValidStyle=function(e){return this.isValidStyleKeyword(e)||this.isValidVariable(e)},r.prototype.isValidStyleKeyword=function(e){return C.indexOf(e)>=0},r.prototype.isValidWidth=function(e){return this.isValidUnit(e)||this.isValidWidthKeyword(e)||this.isValidVariable(e)},r.prototype.isValidWidthKeyword=function(e){return o.indexOf(e)>=0},r.prototype.isValidVendorPrefixedValue=function(e){return/^-([A-Za-z0-9]|-)*$/gi.test(e)},r.prototype.areSameFunction=function(e,t){return!(!this.isValidFunction(e)||!this.isValidFunction(t))&&e.substring(0,e.indexOf("("))===t.substring(0,t.indexOf("("))},t.exports=r},{"../utils/split":73}],34:[function(e,t,n){function r(e){for(var t=[],n=0,r=e.length;n<r;n++)for(var i=e[n],s=0,a=i.value.length;s<a;s++){var u=o.exec(i.value[s][0]);u&&-1==t.indexOf(u[0])&&t.push(u[0])}return t}function i(e,t){return r(e).sort().join(",")==r(t).sort().join(",")}var o=/$\-moz\-|\-ms\-|\-o\-|\-webkit\-/;t.exports={same:i}},{}],35:[function(e,t,n){function r(e){for(var t=[],n=e.length-1;n>=0;n--)if("string"!=typeof e[n][0]){var r=l(e[n]);r.all=e,r.position=n,t.unshift(r)}return t}function i(e){for(var t=1,n=e.length;t<n;t++)if(","==e[t][0]||"/"==e[t][0])return!0;return!1}function o(e){var t=!1,n=e[0][0],r=e[e.length-1];return n[0]==m?t="underscore":n[0]==d?t="star":r[0][0]!=g||r[0].match(h)?r[0].indexOf(g)>0&&!r[0].match(h)?t="bang":r[0].indexOf(p)>0&&r[0].indexOf(p)==r[0].length-p.length-1?t="backslash":0===r[0].indexOf(p)&&2==r[0].length&&(t="backslash"):t="bang",t}function s(e){if(e.length>1){var t=e[e.length-1][0];if("string"==typeof t)return f.test(t)}return!1}function a(e){e.length>0&&(e[e.length-1][0]=e[e.length-1][0].replace(f,""))}function u(e){e[0][0]=e[0][0].substring(1)}function c(e,t){var n=e[e.length-1];n[0]=n[0].substring(0,n[0].indexOf("backslash"==t?p:g)).trim(),0===n[0].length&&e.pop()}function l(e){var t=s(e);t&&a(e);var n=o(e);"star"==n||"underscore"==n?u(e):"backslash"!=n&&"bang"!=n||c(e,n);var r=0===e[0][0].indexOf("--");return{block:r&&e[1]&&Array.isArray(e[1][0][0]),components:[],dirty:!1,hack:n,important:t,name:e[0][0],multiplex:e.length>2&&i(e),position:0,shorthand:!1,unused:e.length<2,value:e.slice(1),variable:r}}var p="\\",h=new RegExp("important$","i"),f=new RegExp("!important$","i"),d="*",m="_",g="!";t.exports={all:r,single:l}},{}],36:[function(e,t,n){function r(e){for(var t=0,n=e.length;t<n;t++){var i=e[t],o=!1;switch(i[0]){case"selector":o=0===i[1].length||0===i[2].length;break;case"block":r(i[2]),o=0===i[2].length}o&&(e.splice(t,1),t--,n--)}}function i(e,t,n){for(var r=0,i=e.length;r<i;r++){var o=e[r];if("block"==o[0]){var a=/@(-moz-|-o-|-webkit-)?keyframes/.test(o[1][0]);s(o[2],t,n,!a)}}}function o(e,t,n){for(var r=0,i=e.length;r<i;r++){var s=e[r];switch(s[0]){case"selector":a(s[1],s[2],!1,!0,t,n);break;case"block":o(s[2],t,n)}}}function s(e,t,n,a){if(i(e,t,n),o(e,t,n),u(e),c(e,t,n),l(e,t,n),p(e,t,n),h(e,t),t.restructuring&&a&&(f(e,t),c(e,t,n)),t.mediaMerging){d(e);for(var g=m(e),v=g.length-1;v>=0;v--)s(g[v][2],t,n,!1)}r(e)}var a=e("../properties/optimizer"),u=e("./remove-duplicates"),c=e("./merge-adjacent"),l=e("./reduce-non-adjacent"),p=e("./merge-non-adjacent-by-selector"),h=e("./merge-non-adjacent-by-body"),f=e("./restructure"),d=e("./remove-duplicate-media-queries"),m=e("./merge-media-queries");t.exports=s},{"../properties/optimizer":26,"./merge-adjacent":40,"./merge-media-queries":41,"./merge-non-adjacent-by-body":42,"./merge-non-adjacent-by-selector":43,"./reduce-non-adjacent":44,"./remove-duplicate-media-queries":45,"./remove-duplicates":46,"./restructure":48}],37:[function(e,t,n){function r(e,t){return"["+t.replace(/ /g,"")+"]"}function i(e,t){return e[0]>t[0]?1:-1}function o(e,t,n,r){return t&&n&&r.length?t+n+" ":t&&n?t+n:n}var s={selectors:function(e,t,n){for(var s=[],a=[],u=0,c=e.length;u<c;u++){var l=e[u],p=l[0].replace(/\s+/g," ").replace(/ ?, ?/g,",").replace(/\s*(\\)?([>+~])(\s*)/g,o).trim();n&&p.indexOf("nav")>0&&(p=p.replace(/\+nav(\S|$)/,"+ nav$1")),(!t||-1==p.indexOf("*+html ")&&-1==p.indexOf("*:first-child+html "))&&(p.indexOf("*")>-1&&(p=p.replace(/\*([:#\.\[])/g,"$1").replace(/^(\:first\-child)?\+html/,"*$1+html")),p.indexOf("[")>-1&&(p=p.replace(/\[([^\]]+)\]/g,r)),-1==a.indexOf(p)&&(l[0]=p,a.push(p),s.push(l)))}return s.sort(i)},selectorDuplicates:function(e){for(var t=[],n=[],r=0,o=e.length;r<o;r++){var s=e[r];-1==n.indexOf(s[0])&&(n.push(s[0]),t.push(s))}return t.sort(i)},block:function(e,t){e[0]=e[0].replace(/\s+/g," ").replace(/(,|:|\() /g,"$1").replace(/ \)/g,")"),t||(e[0]=e[0].replace(/\) /g,")"))},atRule:function(e){e[0]=e[0].replace(/\s+/g," ").trim()}};t.exports=s},{}],38:[function(e,t,n){function r(e){var t=[];if("selector"==e[0])for(var n=!/[\.\+>~]/.test(o(e[1])),u=0,c=e[2].length;u<c;u++){var l=e[2][u];if(0!==l.indexOf("__ESCAPED")&&l[0]!=a){var p=e[2][u][0][0];if(0!==p.length&&0!==p.indexOf("--")){var h=s(e[2],u);t.push([p,h,i(p),e[2][u],p+":"+h,e[1],n])}}}else if("block"==e[0])for(var f=0,d=e[2].length;f<d;f++)t=t.concat(r(e[2][f]));return t}function i(e){return"list-style"==e?e:e.indexOf("-radius")>0?"border-radius":"border-collapse"==e||"border-spacing"==e||"border-image"==e?e:0===e.indexOf("border-")&&/^border\-\w+\-\w+$/.test(e)?e.match(/border\-\w+/)[0]:0===e.indexOf("border-")&&/^border\-\w+$/.test(e)?"border":0===e.indexOf("text-")?e:e.replace(/^\-\w+\-/,"").match(/([a-zA-Z]+)/)[0].toLowerCase()}var o=e("../stringifier/one-time").selectors,s=e("../stringifier/one-time").value,a="at-rule";t.exports=r},{"../stringifier/one-time":52}],39:[function(e,t,n){function r(e,t){return e.compatibility.selectors.special.test(t)}t.exports=r},{}],40:[function(e,t,n){function r(e,t,n){for(var r=[null,[],[]],c=t.compatibility.selectors.adjacentSpace,l=0,p=e.length;l<p;l++){var h=e[l];if("selector"==h[0])if("selector"==r[0]&&s(h[1])==s(r[1])){var f=[r[2].length];Array.prototype.push.apply(r[2],h[2]),i(h[1],r[2],f,!0,t,n),h[2]=[]}else"selector"!=r[0]||o(h[2])!=o(r[2])||u(t,s(h[1]))||u(t,s(r[1]))?r=h:(r[1]=a(r[1].concat(h[1]),!1,c),h[2]=[]);else r=[null,[],[]]}}var i=e("../properties/optimizer"),o=e("../stringifier/one-time").body,s=e("../stringifier/one-time").selectors,a=e("./clean-up").selectors,u=e("./is-special");t.exports=r},{"../properties/optimizer":26,"../stringifier/one-time":52,"./clean-up":37,"./is-special":39}],41:[function(e,t,n){function r(e){for(var t={},n=[],r=e.length-1;r>=0;r--){var s=e[r];if("block"==s[0]){var a=t[s[1][0]];a||(a=[],t[s[1][0]]=a),a.push(r)}}for(var u in t){var c=t[u];e:for(var l=c.length-1;l>0;l--){var p=c[l],h=e[p],f=c[l-1],d=e[f];t:for(var m=1;m>=-1;m-=2){for(var g=1==m,v=g?p+1:f-1,y=g?f:p,b=g?1:-1,_=g?h:d,x=g?d:h,w=o(_);v!=y;){var k=o(e[v]);if(v+=b,!i(w,k))continue t}x[2]=g?_[2].concat(x[2]):x[2].concat(_[2]),_[2]=[],n.push(x);continue e}}}return n}var i=e("./reorderable").canReorder,o=e("./extractor");t.exports=r},{"./extractor":38,"./reorderable":47}],42:[function(e,t,n){function r(e){return/\.|\*| :/.test(e)}function i(e){var t=c(e[1]);return t.indexOf("__")>-1||t.indexOf("--")>-1}function o(e){return e.replace(/--[^ ,>\+~:]+/g,"")}function s(e,t){var n=o(c(e[1]));for(var r in t){var i=t[r],s=o(c(i[1]));(s.indexOf(n)>-1||n.indexOf(s)>-1)&&delete t[r]}}function a(e,t){for(var n={},o=t.compatibility.selectors.adjacentSpace,a=e.length-1;a>=0;a--){var h=e[a];if("selector"==h[0]){h[2].length>0&&!t.semanticMerging&&r(c(h[1]))&&(n={}),h[2].length>0&&t.semanticMerging&&i(h)&&s(h,n);var f=u(h[2]),d=n[f];!d||p(t,c(h[1]))||p(t,c(d[1]))||(h[1]=h[2].length>0?l(d[1].concat(h[1]),!1,o):d[1].concat(h[1]),d[2]=[],n[f]=null),n[u(h[2])]=h}}}var u=e("../stringifier/one-time").body,c=e("../stringifier/one-time").selectors,l=e("./clean-up").selectors,p=e("./is-special");t.exports=a},{"../stringifier/one-time":52,"./clean-up":37,"./is-special":39}],43:[function(e,t,n){function r(e,t,n){var r,u={},c=[];for(r=e.length-1;r>=0;r--)if("selector"==e[r][0]&&0!==e[r][2].length){var l=o(e[r][1]);u[l]=[r].concat(u[l]||[]),2==u[l].length&&c.push(l)}for(r=c.length-1;r>=0;r--){var p=u[c[r]];e:for(var h=p.length-1;h>0;h--){var f=p[h-1],d=e[f],m=p[h],g=e[m];t:for(var v=1;v>=-1;v-=2){for(var y,b=1==v,_=b?f+1:m-1,x=b?m:f,w=b?1:-1,k=b?d:g,E=b?g:d,A=s(k);_!=x;){var C=s(e[_]);_+=w;var S=b?a(A,C):a(C,A);if(!S&&!b)continue e;if(!S&&b)continue t}b?(y=[k[2].length],Array.prototype.push.apply(k[2],E[2]),E[2]=k[2]):(y=[E[2].length],Array.prototype.push.apply(E[2],k[2])),i(E[1],E[2],y,!0,t,n),k[2]=[]}}}}var i=e("../properties/optimizer"),o=e("../stringifier/one-time").selectors,s=e("./extractor"),a=e("./reorderable").canReorder;t.exports=r},{"../properties/optimizer":26,"../stringifier/one-time":52,"./extractor":38,"./reorderable":47}],44:[function(e,t,n){function r(e,t,n){for(var r={},a=[],u=e.length-1;u>=0;u--){var c=e[u];if("selector"==c[0]&&0!==c[2].length)for(var h=l(c[1]),f=c[1].length>1&&!p(t,h),d=t.sourceMap?i(c[1]):c[1],m=f?[h].concat(d):[h],g=0,v=m.length;g<v;g++){var y=m[g];r[y]?a.push(y):r[y]=[],r[y].push({where:u,list:d,isPartial:f&&g>0,isComplex:f&&0===g})}}o(e,a,r,t,n),s(e,r,t,n)}function i(e){for(var t=[],n=0;n<e.length;n++)t.push([e[n][0]]);return t}function o(e,t,n,r,i){function o(e,t){return p[e].isPartial&&0===t.length}function s(e,t,n,r){p[n-r-1].isPartial||(e[2]=t)}for(var u=0,c=t.length;u<c;u++){var l=t[u],p=n[l];a(e,l,p,{filterOut:o,callback:s},r,i)}}function s(e,t,n,r){function i(e){return s.data[e].where<s.intoPosition}function o(e,t,n,r){0===r&&s.reducedBodies.push(t)}var s={}
;e:for(var u in t){var l=t[u];if(l[0].isComplex){var h=l[l.length-1].where,f=e[h],d=[],m=p(n,u)?[u]:l[0].list;s.intoPosition=h,s.reducedBodies=d;for(var g=0,v=m.length;g<v;g++){var y=m[g],b=t[y];if(b.length<2)continue e;if(s.data=b,a(e,y,b,{filterOut:i,callback:o},n,r),c(d[d.length-1])!=c(d[0]))continue e}f[2]=d[0]}}}function a(e,t,n,r,i,o){for(var s=[],a=[],c=[],l=[],p=n.length-1,f=0;p>=0;p--)if(!r.filterOut(p,s)){var d=n[p].where,m=e[d],g=h(m[2]);s=s.concat(g),a.push(g),l.push(d)}for(p=0,f=a.length;p<f;p++)a[p].length>0&&c.push((c.length>0?c[c.length-1]:0)+a[p].length);u(t,s,c,!1,i,o);for(var v=l.length,y=s.length-1,b=v-1;b>=0;)if((0===b||s[y]&&a[b].indexOf(s[y])>-1)&&y>-1)y--;else{var _=s.splice(y+1);r.callback(e[l[b]],_,v,b),b--}}var u=e("../properties/optimizer"),c=e("../stringifier/one-time").body,l=e("../stringifier/one-time").selectors,p=e("./is-special"),h=e("../utils/clone-array");t.exports=r},{"../properties/optimizer":26,"../stringifier/one-time":52,"../utils/clone-array":66,"./is-special":39}],45:[function(e,t,n){function r(e){for(var t={},n=0,r=e.length;n<r;n++){var o=e[n];if("block"==o[0]){var s=o[1][0]+"%"+i(o[2]),a=t[s];a&&(a[2]=[]),t[s]=o}}}var i=e("../stringifier/one-time").all;t.exports=r},{"../stringifier/one-time":52}],46:[function(e,t,n){function r(e){for(var t,n,r,s,a={},u=[],c=0,l=e.length;c<l;c++)n=e[c],"selector"==n[0]&&(t=o(n[1]),a[t]&&1==a[t].length?u.push(t):a[t]=a[t]||[],a[t].push(c));for(c=0,l=u.length;c<l;c++){t=u[c],s=[];for(var p=a[t].length-1;p>=0;p--)n=e[a[t][p]],r=i(n[2]),s.indexOf(r)>-1?n[2]=[]:s.push(r)}}var i=e("../stringifier/one-time").body,o=e("../stringifier/one-time").selectors;t.exports=r},{"../stringifier/one-time":52}],47:[function(e,t,n){function r(e,t){for(var n=t.length-1;n>=0;n--)for(var r=e.length-1;r>=0;r--)if(!i(e[r],t[n]))return!1;return!0}function i(e,t){var n=e[0],r=e[1],i=e[2],m=e[5],g=e[6],v=t[0],y=t[1],b=t[2],_=t[5],x=t[6];return!("font"==n&&"line-height"==v||"font"==v&&"line-height"==n)&&((!f.test(n)||!f.test(v))&&(!(i==b&&s(n)==s(v)&&o(n)^o(v))&&(("border"!=i||!d.test(b)||!("border"==n||n==b||r!=y&&a(n,v)))&&(("border"!=b||!d.test(i)||!("border"==v||v==i||r!=y&&a(n,v)))&&(("border"!=i||"border"!=b||n==v||!(u(n)&&c(v)||c(n)&&u(v)))&&(i!=b||(!(n!=v||i!=b||r!=y&&!l(r,y))||(n!=v&&i==b&&n!=i&&v!=b||(n!=v&&i==b&&r==y||!(!x||!g||h(i)||h(b)||!p(_,m)))))))))))}function o(e){return/^\-(?:moz|webkit|ms|o)\-/.test(e)}function s(e){return e.replace(/^\-(?:moz|webkit|ms|o)\-/,"")}function a(e,t){return e.split("-").pop()==t.split("-").pop()}function u(e){return"border-top"==e||"border-right"==e||"border-bottom"==e||"border-left"==e}function c(e){return"border-color"==e||"border-style"==e||"border-width"==e}function l(e,t){return o(e)&&o(t)&&e.split("-")[1]!=t.split("-")[2]}function p(e,t){for(var n=0,r=e.length;n<r;n++)for(var i=0,o=t.length;i<o;i++)if(e[n][0]==t[i][0])return!1;return!0}function h(e){return"font"==e||"line-height"==e||"list-style"==e}var f=/align\-items|box\-align|box\-pack|flex|justify/,d=/^border\-(top|right|bottom|left|color|style|width|radius)/;t.exports={canReorder:r,canReorderSingle:i}},{}],48:[function(e,t,n){function r(e,t){return e>t}function i(e,t){var n=h(e);return n[5]=n[5].concat(t[5]),n}function o(e,t){function n(e,t,n){for(var r=n.length-1;r>=0;r--){var i=n[r][0],s=o(t,i);if(C[s].length>1&&k(e,C[s])){h(s);break}}}function o(e,t){var n=f(t);return C[n]=C[n]||[],C[n].push([e,t]),n}function h(e){var t,n=e.split(O),r=[];for(var i in C){var o=i.split(O);for(t=o.length-1;t>=0;t--)if(n.indexOf(o[t])>-1){r.push(i);break}}for(t=r.length-1;t>=0;t--)delete C[r[t]]}function f(e){for(var t=[],n=0,r=e.length;n<r;n++)t.push(c(e[n][1]));return t.join(O)}function d(e){for(var n=[],r=[],i=e.length-1;i>=0;i--)p(t,c(e[i][1]))||(r.unshift(e[i]),e[i][2].length>0&&-1==n.indexOf(e[i])&&n.push(e[i]));return n.length>1?r:[]}function m(e,t){var r=t[0],i=t[1],o=t[4],s=r.length+i.length+1,a=[],u=[],c=d(E[o]);if(!(c.length<2)){var p=v(c,s,1),h=p[0];if(h[1]>0)return n(e,t,p);for(var f=h[0].length-1;f>=0;f--)a=h[0][f][1].concat(a),u.unshift(h[0][f]);a=l(a),_(e,[t],a,u)}}function g(e,t){return e[1]>t[1]}function v(e,t,n){return y(e,t,n,T-1).sort(g)}function y(e,t,n,r){var i=[[e,b(e,t,n)]];if(e.length>2&&r>0)for(var o=e.length-1;o>=0;o--){var s=Array.prototype.slice.call(e,0);s.splice(o,1),i=i.concat(y(s,t,n,r-1))}return i}function b(e,t,n){for(var r=0,i=e.length-1;i>=0;i--)r+=e[i][2].length>n?c(e[i][1]).length:-1;return r-(e.length-1)*t+1}function _(t,n,r,i){var o,s,a,c,l=[];for(o=i.length-1;o>=0;o--){var p=i[o];for(s=p[2].length-1;s>=0;s--){var h=p[2][s];for(a=0,c=n.length;a<c;a++){var f=n[a],d=h[0][0],m=f[0],g=f[4];if(d==m&&u([h])==g){p[2].splice(s,1);break}}}}for(o=n.length-1;o>=0;o--)l.unshift(n[o][3]);var v=["selector",r,l];e.splice(t,0,v)}function x(e,t){var n=t[4],r=E[n];r&&r.length>1&&(w(e,t)||m(e,t))}function w(e,t){var n,r,i=[],o=[],s=t[4],a=d(E[s]);if(!(a.length<2)){e:for(var u in E){var c=E[u];for(n=a.length-1;n>=0;n--)if(-1==c.indexOf(a[n]))continue e;i.push(u)}if(i.length<2)return!1;for(n=i.length-1;n>=0;n--)for(r=A.length-1;r>=0;r--)if(A[r][4]==i[n]){o.unshift([A[r],a]);break}return k(e,o)}}function k(e,t){for(var n,r=0,i=[],o=t.length-1;o>=0;o--){n=t[o][0];r+=n[4].length+(o>0?1:0),i.push(n)}var s=t[0][1],a=v(s,r,i.length)[0];if(a[1]>0)return!1;var u=[],c=[];for(o=a[0].length-1;o>=0;o--)u=a[0][o][1].concat(u),c.unshift(a[0][o]);for(u=l(u),_(e,i,u,c),o=i.length-1;o>=0;o--){n=i[o];var p=A.indexOf(n);delete E[n[4]],p>-1&&-1==S.indexOf(p)&&S.push(p)}return!0}for(var E={},A=[],C={},S=[],T=2,O="%",F=e.length-1;F>=0;F--){var D,B,L,R,N,P=e[F];if("selector"==P[0])D=!0;else{if("block"!=P[0])continue;D=!1}var M=A.length,I=s(P);S=[];var j=[];for(B=I.length-1;B>=0;B--)for(L=B-1;L>=0;L--)if(!a(I[B],I[L])){j.push(B);break}for(B=I.length-1;B>=0;B--){var V=I[B],z=!1;for(L=0;L<M;L++){var U=A[L];-1!=S.indexOf(L)||a(V,U)||function(e,t,n){if(e[0]!=t[0])return!1;var r=t[4],i=E[r];return i&&i.indexOf(n)>-1}(V,U,P)||(x(F+1,U),-1==S.indexOf(L)&&(S.push(L),delete E[U[4]])),z||(z=V[0]==U[0]&&V[1]==U[1])&&(N=L)}if(D&&!(j.indexOf(B)>-1)){var $=V[4];E[$]=E[$]||[],E[$].push(P),z?A[N]=i(A[N],V):A.push(V)}}for(S=S.sort(r),B=0,R=S.length;B<R;B++){var q=S[B]-B;A.splice(q,1)}}for(var H=e[0]&&"at-rule"==e[0][0]&&0===e[0][1][0].indexOf("@charset")?1:0;H<e.length-1;H++){var W="at-rule"===e[H][0]&&0===e[H][1][0].indexOf("@import"),G="text"===e[H][0]&&0===e[H][1][0].indexOf("__ESCAPED_COMMENT_SPECIAL");if(!W&&!G)break}for(F=0;F<A.length;F++)x(H,A[F])}var s=e("./extractor"),a=e("./reorderable").canReorderSingle,u=e("../stringifier/one-time").body,c=e("../stringifier/one-time").selectors,l=e("./clean-up").selectorDuplicates,p=e("./is-special"),h=e("../utils/clone-array");t.exports=o},{"../stringifier/one-time":52,"../utils/clone-array":66,"./clean-up":37,"./extractor":38,"./is-special":39,"./reorderable":47}],49:[function(e,t,n){function r(e,t){return e.value[t]&&"-"==e.value[t][0][0]&&parseFloat(e.value[t][0])<0}function i(e,t){return-1==t.indexOf("0")?t:(t.indexOf("-")>-1&&(t=t.replace(/([^\w\d\-]|^)\-0([^\.]|$)/g,"$10$2").replace(/([^\w\d\-]|^)\-0([^\.]|$)/g,"$10$2")),t.replace(/(^|\s)0+([1-9])/g,"$1$2").replace(/(^|\D)\.0+(\D|$)/g,"$10$2").replace(/(^|\D)\.0+(\D|$)/g,"$10$2").replace(/\.([1-9]*)0+(\D|$)/g,function(e,t,n){return(t.length>0?".":"")+t+n}).replace(/(^|\D)0\.(\d)/g,"$1.$2"))}function o(e,t){return-1==t.indexOf("0deg")?t:t.replace(/\(0deg\)/g,"(0)")}function s(e,t){return e.indexOf("filter")>-1||-1==t.indexOf(" ")?t:(t=t.replace(/\s+/g," "),t.indexOf("calc")>-1&&(t=t.replace(/\) ?\/ ?/g,")/ ")),t.replace(/\( /g,"(").replace(/ \)/g,")").replace(/, /g,","))}function a(e,t,n){return-1===n.value||-1===t.indexOf(".")?t:t.replace(n.regexp,function(e,t){return Math.round(parseFloat(t)*n.multiplier)/n.multiplier+"px"}).replace(/(\d)\.($|\D)/g,"$1$2")}function u(e,t,n){return/^(?:\-moz\-calc|\-webkit\-calc|calc)\(/.test(t)?t:"flex"==e||"-ms-flex"==e||"-webkit-flex"==e||"flex-basis"==e||"-webkit-flex-basis"==e?t:t.indexOf("%")>0&&("height"==e||"max-height"==e)?t:t.replace(n,"$10$2").replace(n,"$10$2")}function c(e){var t,n=e.value;4==n.length&&"0"===n[0][0]&&"0"===n[1][0]&&"0"===n[2][0]&&"0"===n[3][0]&&(t=e.name.indexOf("box-shadow")>-1?2:1),t&&(e.value.splice(t),e.dirty=!0)}function l(e,t,n){return-1===t.indexOf("#")&&-1==t.indexOf("rgb")&&-1==t.indexOf("hsl")?S.shorten(t):(t=t.replace(/rgb\((\-?\d+),(\-?\d+),(\-?\d+)\)/g,function(e,t,n,r){return new A(t,n,r).toHex()}).replace(/hsl\((-?\d+),(-?\d+)%?,(-?\d+)%?\)/g,function(e,t,n,r){return new C(t,n,r).toHex()}).replace(/(^|[^='"])#([0-9a-f]{6})/gi,function(e,t,n){return n[0]==n[1]&&n[2]==n[3]&&n[4]==n[5]?t+"#"+n[0]+n[2]+n[4]:t+"#"+n}).replace(/(rgb|rgba|hsl|hsla)\(([^\)]+)\)/g,function(e,t,n){var r=n.split(",");return"hsl"==t&&3==r.length||"hsla"==t&&4==r.length||"rgb"==t&&3==r.length&&n.indexOf("%")>0||"rgba"==t&&4==r.length&&n.indexOf("%")>0?(-1==r[1].indexOf("%")&&(r[1]+="%"),-1==r[2].indexOf("%")&&(r[2]+="%"),t+"("+r.join(",")+")"):e}),n.colors.opacity&&-1==e.indexOf("background")&&(t=t.replace(/(?:rgba|hsla)\(0,0%?,0%?,0\)/g,function(e){return E(t,",").pop().indexOf("gradient(")>-1?e:"transparent"})),S.shorten(t))}function p(e,t,n){return I.test(t)?t.replace(I,function(e,t){var r,i=parseInt(t);return 0===i?e:(n.properties.shorterLengthUnits&&n.units.pt&&3*i%4==0&&(r=3*i/4+"pt"),n.properties.shorterLengthUnits&&n.units.pc&&i%16==0&&(r=i/16+"pc"),n.properties.shorterLengthUnits&&n.units.in&&i%96==0&&(r=i/96+"in"),r&&(r=e.substring(0,e.indexOf(t))+r),r&&r.length<e.length?r:e)}):t}function h(e,t){return j.test(t)?t.replace(j,function(e,t,n){var r;return"ms"==n?r=parseInt(t)/1e3+"s":"s"==n&&(r=1e3*parseFloat(t)+"ms"),r.length<e.length?r:e}):t}function f(e){var t,n=e.value;3==n.length&&"/"==n[1][0]&&n[0][0]==n[2][0]?t=1:5==n.length&&"/"==n[2][0]&&n[0][0]==n[3][0]&&n[1][0]==n[4][0]?t=2:7==n.length&&"/"==n[3][0]&&n[0][0]==n[4][0]&&n[1][0]==n[5][0]&&n[2][0]==n[6][0]?t=3:9==n.length&&"/"==n[4][0]&&n[0][0]==n[5][0]&&n[1][0]==n[6][0]&&n[2][0]==n[7][0]&&n[3][0]==n[8][0]&&(t=4),t&&(e.value.splice(t),e.dirty=!0)}function d(e){1==e.value.length&&(e.value[0][0]=e.value[0][0].replace(/progid:DXImageTransform\.Microsoft\.(Alpha|Chroma)(\W)/,function(e,t,n){return t.toLowerCase()+n})),e.value[0][0]=e.value[0][0].replace(/,(\S)/g,", $1").replace(/ ?= ?/g,"=")}function m(e){var t=e.value;if(!(N.indexOf(t[0][0])>-1||t[1]&&N.indexOf(t[1][0])>-1||t[2]&&N.indexOf(t[2][0])>-1)&&"/"!=t[1]){var n=0;if("normal"==t[0][0]&&n++,t[1]&&"normal"==t[1][0]&&n++,t[2]&&"normal"==t[2][0]&&n++,!(n>1)){var r;M.indexOf(t[0][0])>-1?r=0:t[1]&&M.indexOf(t[1][0])>-1?r=1:t[2]&&M.indexOf(t[2][0])>-1?r=2:P.indexOf(t[0][0])>-1?r=0:t[1]&&P.indexOf(t[1][0])>-1?r=1:t[2]&&P.indexOf(t[2][0])>-1&&(r=2),void 0!==r&&(e.value[r][0]=V["font-weight"](t[r][0]),e.dirty=!0)}}}function g(e,t){for(var n,v,y,b=T(e),_=0,x=b.length;_<x;_++)if(n=b[_],v=n.name,n.hack&&(("star"==n.hack||"underscore"==n.hack)&&!t.compatibility.properties.iePrefixHack||"backslash"==n.hack&&!t.compatibility.properties.ieSuffixHack||"bang"==n.hack&&!t.compatibility.properties.ieBangHack)&&(n.unused=!0),0===v.indexOf("padding")&&(r(n,0)||r(n,1)||r(n,2)||r(n,3))&&(n.unused=!0),!n.unused)if(n.variable)n.block&&g(n.value[0],t);else{for(var w=0,k=n.value.length;w<k;w++)y=n.value[w][0],V[v]&&(y=V[v](y,w,k)),y=s(v,y),y=a(v,y,t.precision),y=p(v,y,t.compatibility),y=h(v,y),y=i(v,y),t.compatibility.properties.zeroUnits&&(y=o(v,y),y=u(v,y,t.unitsRegexp)),t.compatibility.properties.colors&&(y=l(v,y,t.compatibility)),n.value[w][0]=y;c(n),0===v.indexOf("border")&&v.indexOf("radius")>0?f(n):"filter"==v?d(n):"font"==v&&m(n)}O(b,!0),F(b)}function v(e){for(var t=!1,n=0,r=e.length;n<r;n++){var i=e[n];"at-rule"==i[0]&&(L.test(i[1][0])&&(t||-1==i[1][0].indexOf(B)?(e.splice(n,1),n--,r--):(t=!0,e.splice(n,1),e.unshift(["at-rule",[i[1][0].replace(L,B)]]))))}}function y(e){var t=["px","em","ex","cm","mm","in","pt","pc","%"];return["ch","rem","vh","vm","vmax","vmin","vw"].forEach(function(n){e.compatibility.units[n]&&t.push(n)}),new RegExp("(^|\\s|\\(|,)0(?:"+t.join("|")+")(\\W|$)","g")}function b(e){var t={};return t.value=void 0===e.roundingPrecision?D:e.roundingPrecision,t.multiplier=Math.pow(10,t.value),t.regexp=new RegExp("(\\d*\\.\\d{"+(t.value+1)+",})px","g"),t}function _(e,t,n){var r=t.compatibility.selectors.ie7Hack,i=t.compatibility.selectors.adjacentSpace,o=t.compatibility.properties.spaceAfterClosingBrace,s=!1,a=!1;t.unitsRegexp=y(t),t.precision=b(t);for(var u=0,c=e.length;u<c;u++){var l=e[u];switch(l[0]){case"selector":l[1]=x(l[1],!r,i),g(l[2],t),a=!0;break;case"block":w(l[1],o),_(l[2],t,n),a=!0;break;case"flat-block":w(l[1],o),g(l[2],t),a=!0;break;case"at-rule":k(l[1]),s=!0}"at-rule"==l[0]&&R.test(l[1])&&a&&(n.warnings.push('Ignoring @import rule "'+l[1]+'" as it appears after rules thus browsers will ignore them.'),l[1]=""),(0===l[1].length||l[2]&&0===l[2].length)&&(e.splice(u,1),u--,c--)}s&&v(e)}var x=e("./clean-up").selectors,w=e("./clean-up").block,k=e("./clean-up").atRule,E=e("../utils/split"),A=e("../colors/rgb"),C=e("../colors/hsl"),S=e("../colors/hex-name-shortener"),T=e("../properties/wrap-for-optimizing").all,O=e("../properties/restore-from-optimizing"),F=e("../properties/remove-unused"),D=2,B="@charset",L=new RegExp("^"+B,"i"),R=/^@import["'\s]/i,N=["100","200","300","400","500","600","700","800","900"],P=["normal","bold","bolder","lighter"],M=["bold","bolder","lighter"],I=/(?:^|\s|\()(-?\d+)px/,j=/^(\-?[\d\.]+)(m?s)$/,V={background:function(e,t,n){return 0!==t||1!=n||"none"!=e&&"transparent"!=e?e:"0 0"},"font-weight":function(e){return"normal"==e?"400":"bold"==e?"700":e},outline:function(e,t,n){return 0===t&&1==n&&"none"==e?"0":e}};t.exports=_},{"../colors/hex-name-shortener":15,"../colors/hsl":16,"../colors/rgb":17,"../properties/remove-unused":29,"../properties/restore-from-optimizing":30,"../properties/wrap-for-optimizing":35,"../utils/split":73,"./clean-up":37}],50:[function(e,t,n){function r(e,t,n){if(!n&&-1==e.indexOf("\n"))return 0===e.indexOf(u)?e:void(t.column+=e.length);for(var r=0,i=e.split("\n"),o=i.length,s=0;;){if(r==o-1)break;var a=i[r];if(/\S/.test(a))break;s+=a.length+1,r++}return t.line+=r,t.column=r>0?0:t.column,t.column+=/^(\s)