csso-rails 0.7.1 → 0.8.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 926fac1e8b093f3b2944d89b5f23aefb9bac00ca
4
- data.tar.gz: c07be7b71cad720b87856c304ca8fa12f5449f55
3
+ metadata.gz: 4cda2300d695f4bc8391eb0a72c084aac18d4551
4
+ data.tar.gz: 98b5565851219d53c7689b41460a7703989c6bae
5
5
  SHA512:
6
- metadata.gz: 71b2b12b6cdf9efee0e82fed17abf9e35d54957a8cc9570eccff8d477611bb3bb5b0a530b4fb74df51309d90f08b10ea9d61281ab97da2cdaa36f3d0703decc9
7
- data.tar.gz: bb0ab989a1e3ffae7fc993013bc58a500c6f8c2b78e754a3ec521c383d472fd662e6be90eb0e3858503bd1fd35195272f0d1b4858610e50f9f3421fc20cbf764
6
+ metadata.gz: 7afcc11c8034ccda9aaeb63b4f081238fc2fce7628c329225c97648d3437fa26d3bcfc384ac85571f23c2a2ae06766c7723fefb9c99de1688f707563c8aee187
7
+ data.tar.gz: fece41a731bf2c3ab03d924746a6ef24ead959eaab111b5840afa5365769fbfad1134e9f50350caef61e42f6ed520055f01cb0be865ab29aeaad7c1576dd78c8
data/Rakefile CHANGED
@@ -31,7 +31,7 @@ task :update_csso_repo => :csso do
31
31
  Dir.chdir('csso'){
32
32
  puts 'Updating csso...'
33
33
  `git pull --rebase`
34
- `npm install && npm run browserify`
34
+ `yarn install && npm run browserify`
35
35
  }
36
36
  end
37
37
 
@@ -1,4 +1,4 @@
1
1
  module Csso
2
- VERSION = '0.7.1'
2
+ VERSION = '0.8.0'
3
3
  CSSO_JS_LIB = 'vendor/csso/csso.js'
4
4
  end
@@ -2,7 +2,7 @@
2
2
  THIS FILE IS AUTOGENERATED! DO NOT EDIT!
3
3
  See lib/csso/csso.js.erb instead.
4
4
 
5
- Based on 2.3.0 revision 989272617daba591cf8982c627b0ae73bc1cdd02
5
+ Based on 3.1.1 revision ce25532be2e902ec54c2db44a0468d55f3a0810d
6
6
  */
7
7
 
8
8
  console = {
@@ -12,9 +12,13 @@ console = {
12
12
  }
13
13
  };
14
14
 
15
- !function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var t;t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,t.csso=e()}}(function(){return function e(t,r,n){function o(a,s){if(!r[a]){if(!t[a]){var l="function"==typeof require&&require;if(!s&&l)return l(a,!0);if(i)return i(a,!0);var u=new Error("Cannot find module '"+a+"'");throw u.code="MODULE_NOT_FOUND",u}var c=r[a]={exports:{}};t[a][0].call(c.exports,function(e){var r=t[a][1][e];return o(r?r:e)},c,c.exports,e,t,r,n)}return r[a].exports}for(var i="function"==typeof require&&require,a=0;a<n.length;a++)o(n[a]);return o}({1:[function(e,t,r){t.exports=function(e,t,r){if(e.block){if(this.root.firstAtrulesAllowed=!1,"Block"===e.block.type&&e.block.declarations.isEmpty())return void r.remove(t);if("StyleSheet"===e.block.type&&e.block.rules.isEmpty())return void r.remove(t)}switch(e.name){case"charset":if(e.expression.sequence.isEmpty())return void r.remove(t);if(t.prev)return void r.remove(t);break;case"import":if(!this.root.firstAtrulesAllowed)return void r.remove(t);r.prevUntil(t.prev,function(e){if("Atrule"!==e.type||"import"!==e.name&&"charset"!==e.name)return this.root.firstAtrulesAllowed=!1,r.remove(t),!0},this)}}},{}],2:[function(e,t,r){t.exports=function(e,t,r){r.remove(t)}},{}],3:[function(e,t,r){t.exports=function(e,t,r){e.value.sequence.isEmpty()&&r.remove(t)}},{}],4:[function(e,t,r){t.exports=function(e,t,r){null!==this.selector&&"*"===e.name&&t.next&&"Combinator"!==t.next.data.type&&r.remove(t)}},{}],5:[function(e,t,r){function n(e,t){return e.selector.selectors.each(function(e,r,n){var i=e.sequence.some(function(e){switch(e.type){case"Class":return t.classes&&!o.call(t.classes,e.name);case"Id":return t.ids&&!o.call(t.ids,e.name);case"Identifier":if("*"!==e.name)return t.tags&&!o.call(t.tags,e.name.toLowerCase())}});i&&n.remove(r)})}var o=Object.prototype.hasOwnProperty;t.exports=function(e,t,r,o){o&&n(e,o),(e.selector.selectors.isEmpty()||e.block.declarations.isEmpty())&&r.remove(t)}},{}],6:[function(e,t,r){function n(e){return"Operator"===e.type&&("+"!==e.value&&"-"!==e.value)}t.exports=function(e,t,r){var o=t.prev&&t.prev.data,i=t.next&&t.next.data;(n(o)||n(i))&&r.remove(t)}},{}],7:[function(e,t,r){var n=e("../../utils/walk.js").all,o={Space:e("./Space.js"),Atrule:e("./Atrule.js"),Ruleset:e("./Ruleset.js"),Declaration:e("./Declaration.js"),Identifier:e("./Identifier.js"),Comment:e("./Comment.js")};t.exports=function(e,t){n(e,function(e,r,n){o.hasOwnProperty(e.type)&&o[e.type].call(this,e,r,n,t)})}},{"../../utils/walk.js":45,"./Atrule.js":1,"./Comment.js":2,"./Declaration.js":3,"./Identifier.js":4,"./Ruleset.js":5,"./Space.js":6}],8:[function(e,t,r){var n=e("../../utils/names.js").keyword,o=e("./atrule/keyframes.js");t.exports=function(e){"keyframes"===n(e.name).name&&o(e)}},{"../../utils/names.js":42,"./atrule/keyframes.js":15}],9:[function(e,t,r){function n(e){if(""!==e&&"-"!==e)return e=e.replace(o,"a"),!i.test(e)}var o=/\\([0-9A-Fa-f]{1,6})[ \t\n\f\r]?|\\./g,i=/^(-?\d|--)|[\u0000-\u002c\u002e\u002f\u003A-\u0040\u005B-\u005E\u0060\u007B-\u009f]/;t.exports=function(e){var t=e.value;if(t&&"String"===t.type){var r=t.value.replace(/^(.)(.*)\1$/,"$2");n(r)&&(e.value={type:"Identifier",info:t.info,name:r})}}},{}],10:[function(e,t,r){var n=e("./Number.js").pack,o={px:!0,mm:!0,cm:!0,in:!0,pt:!0,pc:!0,em:!0,ex:!0,ch:!0,rem:!0,vh:!0,vw:!0,vmin:!0,vmax:!0,vm:!0};t.exports=function(e,t){var r=n(e.value);if(e.value=r,"0"===r&&this.declaration){var i=e.unit.toLowerCase();if(!o.hasOwnProperty(i))return;if("flex"===this.declaration.property.name)return;if(this.function&&"calc"===this.function.name)return;t.data={type:"Number",info:e.info,value:r}}}},{"./Number.js":11}],11:[function(e,t,r){function n(e){return e=String(e).replace(/^(?:\+|(-))?0*(\d*)(?:\.0*|(\.\d*?)0*)?$/,"$1$2$3"),0!==e.length&&"-"!==e||(e="0"),e}t.exports=function(e){e.value=n(e.value)},t.exports.pack=n},{}],12:[function(e,t,r){t.exports=function(e){var t=e.value;t=t.replace(/\\\n/g,""),e.value=t}},{}],13:[function(e,t,r){var n="\\\\[0-9a-f]{1,6}(\\r\\n|[ \\n\\r\\t\\f])?",o="("+n+"|\\\\[^\\n\\r\\f0-9a-fA-F])",i="\0\b\v-",a=new RegExp("^("+o+"|[^\"'\\(\\)\\\\\\s"+i+"])*$","i");t.exports=function(e){var t=e.value;if("String"===t.type){var r=t.value[0],n=t.value.substr(1,t.value.length-2);n=n.replace(/\\\\/g,"/"),a.test(n)?e.value={type:"Raw",info:e.value.info,value:n}:e.value.value=n.indexOf('"')===-1?'"'+n+'"':r+n+r}}},{}],14:[function(e,t,r){var n=e("../../utils/names.js").property,o={font:e("./property/font.js"),"font-weight":e("./property/font-weight.js"),background:e("./property/background.js")};t.exports=function(e){if(this.declaration){var t=n(this.declaration.property.name);o.hasOwnProperty(t.name)&&o[t.name](e)}}},{"../../utils/names.js":42,"./property/background.js":18,"./property/font-weight.js":19,"./property/font.js":20}],15:[function(e,t,r){t.exports=function(e){e.block.rules.each(function(e){e.selector.selectors.each(function(e){e.sequence.each(function(e,t){"Percentage"===e.type&&"100"===e.value?t.data={type:"Identifier",info:e.info,name:"to"}:"Identifier"===e.type&&"from"===e.name&&(t.data={type:"Percentage",info:e.info,value:"0"})})})})}},{}],16:[function(e,t,r){function n(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+6*(t-e)*r:r<.5?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function o(e,t,r,o){var i,a,s;if(0==t)i=a=s=r;else{var l=r<.5?r*(1+t):r+t-r*t,u=2*r-l;i=n(u,l,e+1/3),a=n(u,l,e),s=n(u,l,e-1/3)}return[Math.round(255*i),Math.round(255*a),Math.round(255*s),o]}function i(e){return e=e.toString(16),1===e.length?"0"+e:e}function a(e,t,r){for(var n=e.head,o=[];null!==n;){for(var i=n.data.sequence.head,a=!1;null!==i;){var s=i.data,l=s.type;switch(l){case"Number":case"Percentage":if(a)return;a=!0,o.push({type:l,value:Number(s.value)});break;case"Operator":if(a||"+"!==s.value)return;break;default:return}i=i.next}n=n.next}if(o.length===t){if(4===o.length){if("Number"!==o[3].type)return;o[3].type="Alpha"}if(r){if(o[0].type!==o[1].type||o[0].type!==o[2].type)return}else{if("Number"!==o[0].type||"Percentage"!==o[1].type||"Percentage"!==o[2].type)return;o[0].type="Angle"}return o.map(function(e){var t=Math.max(0,e.value);switch(e.type){case"Number":t=Math.min(t,255);break;case"Percentage":if(t=Math.min(t,100)/100,!r)return t;t*=255;break;case"Angle":return(t%360+360)%360/360;case"Alpha":return Math.min(t,1)}return Math.round(t)})}}function s(e,t,r){var n,s=e.name;if("rgba"===s||"hsla"===s){if(n=a(e.arguments,4,"rgba"===s),!n)return;if("hsla"===s&&(n=o.apply(null,n),e.name="rgba"),1!==n[3])return void e.arguments.each(function(e){var t=e.sequence.head;"Operator"===t.data.type&&(t=t.next),e.sequence=new c([{type:"Number",info:t.data.info,value:p(n.shift())}])});s="rgb"}if("hsl"===s){if(n=n||a(e.arguments,3,!1),!n)return;n=o.apply(null,n),s="rgb"}if("rgb"===s){if(n=n||a(e.arguments,3,!0),!n)return;var l=t.next;l&&"Space"!==l.data.type&&r.insert(r.createItem({type:"Space"}),l),t.data={type:"Hash",info:e.info,value:i(n[0])+i(n[1])+i(n[2])},u(t.data,t)}}function l(e,t){if(null!==this.declaration){var r=e.name.toLowerCase();if(f.hasOwnProperty(r)){var n=f[r];n.length+1<=r.length?t.data={type:"Hash",info:e.info,value:n}:("grey"===r&&(r="gray"),e.name=r)}}}function u(e,t){var r=e.value.toLowerCase();6===r.length&&r[0]===r[1]&&r[2]===r[3]&&r[4]===r[5]&&(r=r[0]+r[2]+r[4]),h[r]?t.data={type:"Identifier",info:e.info,name:h[r]}:e.value=r}var c=e("../../utils/list.js"),p=e("./Number.js").pack,f={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",darkgrey:"a9a9a9",darkgreen:"006400",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",grey:"808080",green:"008000",greenyellow:"adff2f",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgrey:"d3d3d3",lightgreen:"90ee90",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",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:"639",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"},h={800000:"maroon",800080:"purple",808000:"olive",808080:"gray","00ffff":"cyan",f0ffff:"azure",f5f5dc:"beige",ffe4c4:"bisque","000000":"black","0000ff":"blue",a52a2a:"brown",ff7f50:"coral",ffd700:"gold","008000":"green","4b0082":"indigo",fffff0:"ivory",f0e68c:"khaki","00ff00":"lime",faf0e6:"linen","000080":"navy",ffa500:"orange",da70d6:"orchid",cd853f:"peru",ffc0cb:"pink",dda0dd:"plum",f00:"red",ff0000:"red",fa8072:"salmon",a0522d:"sienna",c0c0c0:"silver",fffafa:"snow",d2b48c:"tan","008080":"teal",ff6347:"tomato",ee82ee:"violet",f5deb3:"wheat",ffffff:"white",ffff00:"yellow"};t.exports={compressFunction:s,compressIdent:l,compressHex:u}},{"../../utils/list.js":41,"./Number.js":11}],17:[function(e,t,r){var n=e("../../utils/walk.js").all,o={Atrule:e("./Atrule.js"),Attribute:e("./Attribute.js"),Value:e("./Value.js"),Dimension:e("./Dimension.js"),Percentage:e("./Number.js"),Number:e("./Number.js"),String:e("./String.js"),Url:e("./Url.js"),Hash:e("./color.js").compressHex,Identifier:e("./color.js").compressIdent,Function:e("./color.js").compressFunction};t.exports=function(e){n(e,function(e,t,r){o.hasOwnProperty(e.type)&&o[e.type].call(this,e,t,r)})}},{"../../utils/walk.js":45,"./Atrule.js":8,"./Attribute.js":9,"./Dimension.js":10,"./Number.js":11,"./String.js":12,"./Url.js":13,"./Value.js":14,"./color.js":16}],18:[function(e,t,r){var n=e("../../../utils/list.js");t.exports=function(e){function t(){if(i.length)return i[i.length-1].type}function r(){"Space"===t()&&i.pop(),i.length||i.unshift({type:"Number",value:"0"},{type:"Space"},{type:"Number",value:"0"}),o.push.apply(o,i),i=[]}var o=[],i=[];e.sequence.each(function(e){return"Operator"===e.type&&","===e.value?(r(),void o.push(e)):void(("Identifier"!==e.type||"transparent"!==e.name&&"none"!==e.name&&"repeat"!==e.name&&"scroll"!==e.name)&&("Space"!==e.type||i.length&&"Space"!==t())&&i.push(e))}),r(),e.sequence=new n(o)}},{"../../../utils/list.js":41}],19:[function(e,t,r){t.exports=function(e){var t=e.sequence.head.data;if("Identifier"===t.type)switch(t.name){case"normal":e.sequence.head.data={type:"Number",info:t.info,value:"400"};break;case"bold":e.sequence.head.data={type:"Number",info:t.info,value:"700"}}}},{}],20:[function(e,t,r){t.exports=function(e){var t=e.sequence;t.eachRight(function(e,t){if("Identifier"===e.type)if("bold"===e.name)t.data={type:"Number",info:e.info,value:"700"};else if("normal"===e.name){var r=t.prev;r&&"Operator"===r.data.type&&"/"===r.data.value&&this.remove(r),this.remove(t)}else if("medium"===e.name){var n=t.next;n&&"Operator"===n.data.type||this.remove(t)}}),t.each(function(e,t){"Space"===e.type&&(t.prev&&t.next&&"Space"!==t.next.data.type||this.remove(t))}),t.isEmpty()&&t.insert(t.createItem({type:"Identifier",name:"normal"}))}},{}],21:[function(e,t,r){function n(e,t){var r,n=new l,o=!1;return e.nextUntil(e.head,function(e,i,a){return"Comment"===e.type?t&&"!"===e.value.charAt(0)?!(!o&&!r)||(a.remove(i),void(r=e)):void a.remove(i):("Space"!==e.type&&(o=!0),void n.insert(a.remove(i)))}),{comment:r,stylesheet:{type:"StyleSheet",info:null,rules:n}}}function o(e,t,r,n,o){o("Compress block #"+n,null,!0);var i=1;return d(e,function(){"id"in this.stylesheet==!1&&(this.stylesheet.firstAtrulesAllowed=t,this.stylesheet.id=i++)}),o("init",e),p(e,r),o("clean",e),f(e,r),o("compress",e),e}function i(e){var t="comments"in e?e.comments:"exclamation";return"boolean"==typeof t?t=!!t&&"exclamation":"exclamation"!==t&&"first-exclamation"!==t&&(t=!1),t}function a(e){return"restructure"in e?e.restructure:!("restructuring"in e)||e.restructuring}function s(e){return new l([{type:"Ruleset",selector:{type:"Selector",selectors:new l([{type:"SimpleSelector",sequence:new l([{type:"Identifier",name:"x"}])}])},block:e}])}var l=e("../utils/list"),u=e("../utils/clone"),c=e("./usage"),p=e("./clean"),f=e("./compress"),h=e("./restructure"),d=e("../utils/walk").rules;t.exports=function(e,t){e=e||{type:"StyleSheet",info:null,rules:new l},t=t||{};var r,p,f,d="function"==typeof t.logger?t.logger:Function(),m=i(t),g=a(t),v=!0,y=!1,b=new l,k=1;t.clone&&(e=u(e)),"StyleSheet"===e.type?(r=e.rules,e.rules=b):r=s(e),t.usage&&(y=c.buildIndex(t.usage));do{if(p=n(r,Boolean(m)),o(p.stylesheet,v,y,k++,d),g&&h(p.stylesheet,y,d),f=p.stylesheet.rules,p.comment&&(b.isEmpty()||b.insert(l.createItem({type:"Raw",value:"\n"})),b.insert(l.createItem(p.comment)),f.isEmpty()||b.insert(l.createItem({type:"Raw",value:"\n"}))),v&&!f.isEmpty()){var w=f.last();("Atrule"!==w.type||"import"!==w.name&&"charset"!==w.name)&&(v=!1)}"exclamation"!==m&&(m=!1),b.appendList(f)}while(!r.isEmpty());return{ast:e}}},{"../utils/clone":40,"../utils/list":41,"../utils/walk":45,"./clean":7,"./compress":17,"./restructure":29,"./usage":35}],22:[function(e,t,r){function n(e,t,r){var n=e.selector.selectors,i=e.block.declarations;r.prevUntil(t.prev,function(a){if("Ruleset"!==a.type)return o.unsafeToSkipNode.call(n,a);var s=a.selector.selectors,l=a.block.declarations;if(e.pseudoSignature===a.pseudoSignature){if(o.isEqualLists(s,n))return l.appendList(i),r.remove(t),!0;if(o.isEqualDeclarations(i,l))return o.addSelectors(s,n),r.remove(t),!0}return o.hasSimilarSelectors(n,s)})}var o=e("./utils.js"),i=e("../../utils/walk.js").rules;t.exports=function(e){i(e,function(e,t,r){"Ruleset"===e.type&&n(e,t,r)})}},{"../../utils/walk.js":45,"./utils.js":34}],23:[function(e,t,r){function n(e){return"Atrule"===e.type&&"media"===e.name}function o(e,t,r){if(n(e)){var o=t.prev&&t.prev.data;o&&n(o)&&e.expression.id===o.expression.id&&(o.block.rules.appendList(e.block.rules),o.info={primary:o.info,merged:e.info},r.remove(t))}}var i=e("../../utils/walk.js").rulesRight;t.exports=function(e){i(e,function(e,t,r){"Atrule"===e.type&&o(e,t,r)})}},{"../../utils/walk.js":45}],24:[function(e,t,r){function n(e,t,r){for(var n=e.selector.selectors;n.head!==n.tail;){var i=new o;i.insert(n.remove(n.head)),r.insert(r.createItem({type:"Ruleset",info:e.info,pseudoSignature:e.pseudoSignature,selector:{type:"Selector",info:e.selector.info,selectors:i},block:{type:"Block",info:e.block.info,declarations:e.block.declarations.copy()}}),t)}}var o=e("../../utils/list.js"),i=e("../../utils/walk.js").rulesRight;t.exports=function(e){i(e,function(e,t,r){"Ruleset"===e.type&&n(e,t,r)})}},{"../../utils/list.js":41,"../../utils/walk.js":45}],25:[function(e,t,r){function n(e){this.name=e,this.info=null,this.iehack=void 0,this.sides={top:null,right:null,bottom:null,left:null}}function o(e,t,r,o){var i=e.block.declarations,a=e.selector.selectors.first().id;return e.block.declarations.eachRight(function(e,s){var l=e.property.name;if(v.hasOwnProperty(l)){var p,f,h=v[l];if(o&&a!==o||h in t&&(f=c,p=t[h]),!(p&&p.add(l,e.value,e.info)||(f=u,p=new n(h),p.add(l,e.value,e.info))))return void(o=null);t[h]=p,r.push({operation:f,block:i,item:s,shorthand:p}),o=a}}),o}function i(e,t){e.forEach(function(e){var r=e.shorthand;r.isOkToMinimize()&&(e.operation===u?e.item.data=t({type:"Declaration",info:r.info,property:r.getProperty(),value:r.getValue(),id:0,length:0,fingerprint:null}):e.block.remove(e.item))})}var a=e("../../utils/list.js"),s=e("../../utils/translate.js"),l=e("../../utils/walk.js").rulesRight,u=1,c=2,p=0,f=1,h=2,d=3,m=["top","right","bottom","left"],g={"margin-top":"top","margin-right":"right","margin-bottom":"bottom","margin-left":"left","padding-top":"top","padding-right":"right","padding-bottom":"bottom","padding-left":"left","border-top-color":"top","border-right-color":"right","border-bottom-color":"bottom","border-left-color":"left","border-top-width":"top","border-right-width":"right","border-bottom-width":"bottom","border-left-width":"left","border-top-style":"top","border-right-style":"right","border-bottom-style":"bottom","border-left-style":"left"},v={margin:"margin","margin-top":"margin","margin-right":"margin","margin-bottom":"margin","margin-left":"margin",padding:"padding","padding-top":"padding","padding-right":"padding","padding-bottom":"padding","padding-left":"padding","border-color":"border-color","border-top-color":"border-color","border-right-color":"border-color","border-bottom-color":"border-color","border-left-color":"border-color","border-width":"border-width","border-top-width":"border-width","border-right-width":"border-width","border-bottom-width":"border-width","border-left-width":"border-width","border-style":"border-style","border-top-style":"border-style","border-right-style":"border-style","border-bottom-style":"border-style","border-left-style":"border-style"};n.prototype.getValueSequence=function(e,t){var r=[],n=!1,o=e.sequence.some(function(t){var o=!1;switch(t.type){case"Identifier":switch(t.name){case"\\9":return void(n=!0);case"inherit":case"initial":case"unset":case"revert":o=t.name}break;case"Dimension":switch(t.unit){case"rem":case"vw":case"vh":case"vmin":case"vmax":case"vm":o=t.unit}break;case"Hash":case"Number":case"Percentage":break;case"Function":o=t.name;break;case"Space":return!1;default:return!0}r.push({node:t,special:o,important:e.important})});return!(o||r.length>t)&&(("boolean"!=typeof this.iehack||this.iehack===n)&&(this.iehack=n,r))},n.prototype.canOverride=function(e,t){var r=this.sides[e];return!r||t.important&&!r.important},n.prototype.add=function(e,t,r){function n(){var r=this.sides,n=g[e];if(n){if(n in r==!1)return!1;var o=this.getValueSequence(t,1);if(!o||!o.length)return!1;for(var i in r)if(null!==r[i]&&r[i].special!==o[0].special)return!1;return!this.canOverride(n,o[0])||(r[n]=o[0],!0)}if(e===this.name){var o=this.getValueSequence(t,4);if(!o||!o.length)return!1;switch(o.length){case 1:o[f]=o[p],o[h]=o[p],o[d]=o[p];break;case 2:o[h]=o[p],o[d]=o[f];break;case 3:o[d]=o[f]}for(var a=0;a<4;a++)for(var i in r)if(null!==r[i]&&r[i].special!==o[a].special)return!1;for(var a=0;a<4;a++)this.canOverride(m[a],o[a])&&(r[m[a]]=o[a]);return!0}}return!!n.call(this)&&(this.info?this.info={primary:this.info,merged:r}:this.info=r,!0)},n.prototype.isOkToMinimize=function(){var e=this.sides.top,t=this.sides.right,r=this.sides.bottom,n=this.sides.left;if(e&&t&&r&&n){var o=e.important+t.important+r.important+n.important;return 0===o||4===o}return!1},n.prototype.getValue=function(){var e=[],t=this.sides,r=[t.top,t.right,t.bottom,t.left],n=[s(t.top.node),s(t.right.node),s(t.bottom.node),s(t.left.node)];n[d]===n[f]&&(r.pop(),n[h]===n[p]&&(r.pop(),n[f]===n[p]&&r.pop()));for(var o=0;o<r.length;o++)o&&e.push({type:"Space"}),e.push(r[o].node);return this.iehack&&e.push({type:"Space"},{type:"Identifier",info:{},name:"\\9"}),{type:"Value",info:{},important:t.top.important,sequence:new a(e)}},n.prototype.getProperty=function(){return{type:"Property",info:{},name:this.name}},t.exports=function(e,t){var r={},n=[];l(e,function(e){if("Ruleset"===e.type){var t,i,a=this.stylesheet,s=(e.pseudoSignature||"")+"|"+e.selector.selectors.first().id;r.hasOwnProperty(a.id)?t=r[a.id]:(t={lastShortSelector:null},r[a.id]=t),t.hasOwnProperty(s)?i=t[s]:(i={},t[s]=i),t.lastShortSelector=o.call(this,e,i,n,t.lastShortSelector)}}),i(n,t.declaration)}},{"../../utils/list.js":41,"../../utils/translate.js":43,"../../utils/walk.js":45}],26:[function(e,t,r){function n(e,t,r){var n=a(e).name;if("background"===n||"filter"===n&&"Progid"===t.value.sequence.first().type)return e+":"+u(t.value);var o=t.id,i=r[o];if(!i){var l="",c="",h={};t.value.sequence.each(function e(t){switch(t.type){case"Argument":case"Value":case"Braces":t.sequence.each(e);break;case"Identifier":var r=t.name;l||(l=s(r).vendor),/\\9/.test(r)&&(c=r),"cursor"===n?f.indexOf(r)===-1&&(h[r]=!0):p.hasOwnProperty(n)&&p[n].test(r)&&(h[r]=!0);break;case"Function":var r=t.name;l||(l=s(r).vendor),"rect"===r&&t.arguments.size<4&&(r="rect-backward"),h[r+"()"]=!0,t.arguments.each(e);break;case"Dimension":var o=t.unit;switch(o){case"rem":case"vw":case"vh":case"vmin":case"vmax":case"vm":h[o]=!0}}}),i="|"+Object.keys(h).sort()+"|"+c+l,r[o]=i}return e+i}function o(e,t,r){var o=a(t.property.name);if(h.hasOwnProperty(o.name))for(var i=h[o.name],s=0;s<i.length;s++){var l=n(o.prefix+i[s],t,r),u=e[l];if(u&&(!t.value.important||u.item.data.value.important))return u}}function i(e,t,r,i,a){var s=e.block.declarations;s.eachRight(function(e,t){var r=e.property.name,l=n(r,e,a),u=i[l];if(u&&!c.hasOwnProperty(r))e.value.important&&!u.item.data.value.important?(i[l]={block:s,item:t},u.block.remove(u.item),e.info={primary:e.info,merged:u.item.data.info}):(s.remove(t),u.item.data.info={primary:u.item.data.info,merged:e.info});else{var u=o(i,e,a);u?(s.remove(t),u.item.data.info={primary:u.item.data.info,merged:e.info}):(e.fingerprint=l,i[l]={block:s,item:t})}}),s.isEmpty()&&r.remove(t)}var a=e("../../utils/names.js").property,s=e("../../utils/names.js").keyword,l=e("../../utils/walk.js").rulesRight,u=e("../../utils/translate.js"),c={src:1},p={display:/table|ruby|flex|-(flex)?box$|grid|contents|run-in/i,"text-align":/^(start|end|match-parent|justify-all)$/i},f=["auto","crosshair","default","move","text","wait","help","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","pointer","progress","not-allowed","no-drop","vertical-text","all-scroll","col-resize","row-resize"],h={"border-width":["border"],"border-style":["border"],"border-color":["border"],"border-top":["border"],"border-right":["border"],"border-bottom":["border"],"border-left":["border"],"border-top-width":["border-top","border-width","border"],"border-right-width":["border-right","border-width","border"],"border-bottom-width":["border-bottom","border-width","border"],"border-left-width":["border-left","border-width","border"],"border-top-style":["border-top","border-style","border"],"border-right-style":["border-right","border-style","border"],"border-bottom-style":["border-bottom","border-style","border"],"border-left-style":["border-left","border-style","border"],"border-top-color":["border-top","border-color","border"],"border-right-color":["border-right","border-color","border"],"border-bottom-color":["border-bottom","border-color","border"],"border-left-color":["border-left","border-color","border"],"margin-top":["margin"],"margin-right":["margin"],"margin-bottom":["margin"],"margin-left":["margin"],"padding-top":["padding"],"padding-right":["padding"],"padding-bottom":["padding"],"padding-left":["padding"],"font-style":["font"],"font-variant":["font"],"font-weight":["font"],"font-size":["font"],"font-family":["font"],"list-style-type":["list-style"],"list-style-position":["list-style"],"list-style-image":["list-style"]};t.exports=function(e){var t={},r=Object.create(null);l(e,function(e,n,o){if("Ruleset"===e.type){var a,s,l=this.stylesheet,u=(e.pseudoSignature||"")+"|"+e.selector.selectors.first().id;t.hasOwnProperty(l.id)?a=t[l.id]:(a={},t[l.id]=a),a.hasOwnProperty(u)?s=a[u]:(s={},a[u]=s),i.call(this,e,n,o,s,r)}})}},{"../../utils/names.js":42,"../../utils/translate.js":43,"../../utils/walk.js":45}],27:[function(e,t,r){function n(e,t,r){var n=e.selector.selectors,i=e.block.declarations,a=n.first().compareMarker,s={};r.nextUntil(t.next,function(t,l){if("Ruleset"!==t.type)return o.unsafeToSkipNode.call(n,t);if(e.pseudoSignature!==t.pseudoSignature)return!0;var u=t.selector.selectors.head,c=t.block.declarations,p=u.data.compareMarker;if(p in s)return!0;if(n.head===n.tail&&n.first().id===u.data.id)return i.appendList(c),void r.remove(l);if(o.isEqualDeclarations(i,c)){var f=u.data.id;return n.some(function(e,t){var r=e.id;return f<r?(n.insert(u,t),!0):t.next?void 0:(n.insert(u),!0)}),void r.remove(l)}return p===a||void(s[p]=!0)})}var o=e("./utils.js"),i=e("../../utils/walk.js").rules;t.exports=function(e){i(e,function(e,t,r){"Ruleset"===e.type&&n(e,t,r)})}},{"../../utils/walk.js":45,"./utils.js":34}],28:[function(e,t,r){function n(e){var t=0;return e.each(function(e){t+=e.id.length+1}),t-1}function o(e){for(var t=0,r=0;r<e.length;r++)t+=e[r].length;return t+e.length-1}function i(e,t,r){var i=this.stylesheet.avoidRulesMerge,l=e.selector.selectors,u=e.block,c=Object.create(null),p=!0,f=!0;r.prevUntil(t.prev,function(h,d){if("Ruleset"!==h.type)return s.unsafeToSkipNode.call(l,h);var m=h.selector.selectors,g=h.block;if(e.pseudoSignature!==h.pseudoSignature)return!0;if(f=!m.some(function(e){return e.compareMarker in c}),!f&&!p)return!0;if(p&&s.isEqualLists(m,l))return g.declarations.appendList(u.declarations),r.remove(t),!0;var v=s.compareDeclarations(u.declarations,g.declarations);if(v.eq.length){if(!v.ne1.length&&!v.ne2.length)return f&&(s.addSelectors(l,m),r.remove(d)),!0;if(!i)if(v.ne1.length&&!v.ne2.length){var y=n(l),b=o(v.eq);p&&y<b&&(s.addSelectors(m,l),u.declarations=new a(v.ne1))}else if(!v.ne1.length&&v.ne2.length){var y=n(m),b=o(v.eq);f&&y<b&&(s.addSelectors(l,m),g.declarations=new a(v.ne2))}else{var k={type:"Selector",info:{},selectors:s.addSelectors(m.copy(),l)},w=n(k.selectors)+2,b=o(v.eq);if(f&&b>=w){var S={type:"Ruleset",info:{},pseudoSignature:e.pseudoSignature,selector:k,block:{type:"Block",info:{},declarations:new a(v.eq)}};return u.declarations=new a(v.ne1),g.declarations=new a(v.ne2.concat(v.ne2overrided)),r.insert(r.createItem(S),d),!0}}}p&&(p=!m.some(function(e){return l.some(function(t){return t.compareMarker===e.compareMarker})})),m.each(function(e){c[e.compareMarker]=!0})})}var a=e("../../utils/list.js"),s=e("./utils.js"),l=e("../../utils/walk.js").rulesRight;t.exports=function(e){l(e,function(e,t,r){"Ruleset"===e.type&&i.call(this,e,t,r)})}},{"../../utils/list.js":41,"../../utils/walk.js":45,"./utils.js":34}],29:[function(e,t,r){var n=e("./prepare/index.js"),o=e("./1-initialMergeRuleset.js"),i=e("./2-mergeAtrule.js"),a=e("./3-disjoinRuleset.js"),s=e("./4-restructShorthand.js"),l=e("./6-restructBlock.js"),u=e("./7-mergeRuleset.js"),c=e("./8-restructRuleset.js");t.exports=function(e,t,r){var p=n(e,t);r("prepare",e),o(e),r("initialMergeRuleset",e),i(e),r("mergeAtrule",e),a(e),r("disjoinRuleset",e),s(e,p),r("restructShorthand",e),l(e),r("restructBlock",e),u(e),r("mergeRuleset",e),c(e),r("restructRuleset",e)}},{"./1-initialMergeRuleset.js":22,"./2-mergeAtrule.js":23,"./3-disjoinRuleset.js":24,"./4-restructShorthand.js":25,"./6-restructBlock.js":26,"./7-mergeRuleset.js":27,"./8-restructRuleset.js":28,"./prepare/index.js":31}],30:[function(e,t,r){function n(){this.seed=0,this.map=Object.create(null)}var o=e("../../../utils/translate.js");n.prototype.resolve=function(e){var t=this.map[e];return t||(t=++this.seed,this.map[e]=t),t},t.exports=function(){var e=new n,t=new n;return function(r){var n=r.property.name,i=o(r.value);return r.id=e.resolve(n)+(t.resolve(i)<<12),r.length=n.length+1+i.length,r}}},{"../../../utils/translate.js":43}],31:[function(e,t,r){function n(e,t,r){switch(e.type){case"Ruleset":e.block.declarations.each(t),l(e,r);break;case"Atrule":e.expression&&(e.expression.id=a(e.expression)),"keyframes"===o(e.name).name&&(e.block.avoidRulesMerge=!0,e.block.rules.each(function(e){e.selector.selectors.each(function(e){e.compareMarker=e.id})}))}}var o=e("../../../utils/names.js").keyword,i=e("../../../utils/walk.js").rules,a=e("../../../utils/translate.js"),s=e("./createDeclarationIndexer.js"),l=e("./processSelector.js");t.exports=function(e,t){var r=s();return i(e,function(e){n(e,r,t)}),{declaration:r}}},{"../../../utils/names.js":42,"../../../utils/translate.js":43,"../../../utils/walk.js":45,"./createDeclarationIndexer.js":30,"./processSelector.js":32}],32:[function(e,t,r){var n=e("../../../utils/translate.js"),o=e("./specificity.js"),i={"first-letter":!0,"first-line":!0,after:!0,before:!0},a={link:!0,visited:!0,hover:!0,active:!0,"first-letter":!0,"first-line":!0,after:!0,before:!0};t.exports=function(e,t){var r=Object.create(null),s=!1;e.selector.selectors.each(function(e){var l="*",u=0;e.sequence.some(function(o){switch(o.type){case"Class":if(t&&t.scopes){var c=t.scopes[o.name]||0;if(0!==u&&c!==u)throw new Error("Selector can't has classes from different scopes: "+n(e));u=c}break;case"PseudoClass":a.hasOwnProperty(o.name)||(r[o.name]=!0,s=!0);break;case"PseudoElement":i.hasOwnProperty(o.name)||(r[o.name]=!0,s=!0);break;case"FunctionalPseudo":r[o.name]=!0,s=!0;break;case"Negation":r.not=!0,s=!0;break;case"Identifier":l=o.name;break;case"Attribute":o.flags&&(r["["+o.flags+"]"]=!0,s=!0);break;case"Combinator":l="*"}}),e.id=n(e),e.compareMarker=o(e).toString(),u&&(e.compareMarker+=":"+u),"*"!==l&&(e.compareMarker+=","+l)}),s&&(e.pseudoSignature=Object.keys(r).sort().join(","))}},{"../../../utils/translate.js":43,"./specificity.js":33}],33:[function(e,t,r){t.exports=function(e){var t=0,r=0,n=0;return e.sequence.each(function e(o){switch(o.type){case"SimpleSelector":case"Negation":o.sequence.each(e);break;case"Id":t++;break;case"Class":case"Attribute":case"FunctionalPseudo":r++;break;case"Identifier":"*"!==o.name&&n++;break;case"PseudoElement":n++;break;case"PseudoClass":var i=o.name.toLowerCase();"before"===i||"after"===i||"first-line"===i||"first-letter"===i?n++:r++}}),[t,r,n]}},{}],34:[function(e,t,r){function n(e,t){for(var r=e.head,n=t.head;null!==r&&null!==n&&r.data.id===n.data.id;)r=r.next,n=n.next;return null===r&&null===n}function o(e,t){for(var r=e.head,n=t.head;null!==r&&null!==n&&r.data.id===n.data.id;)r=r.next,n=n.next;return null===r&&null===n}function i(e,t){for(var r={eq:[],ne1:[],ne2:[],ne2overrided:[]},n=Object.create(null),o=Object.create(null),i=t.head;i;i=i.next)o[i.data.id]=!0;for(var i=e.head;i;i=i.next){var a=i.data;a.fingerprint&&(n[a.fingerprint]=a.value.important),o[a.id]?(o[a.id]=!1,r.eq.push(a)):r.ne1.push(a)}for(var i=t.head;i;i=i.next){var a=i.data;o[a.id]&&(u.call(n,a.fingerprint)&&Number(n[a.fingerprint])>=Number(a.value.important)?r.ne2overrided.push(a):r.ne2.push(a))}return r}function a(e,t){return t.each(function(t){for(var r=t.id,n=e.head;n;){
16
- var o=n.data.id;if(o===r)return;if(o>r)break;n=n.next}e.insert(e.createItem(t),n)}),e}function s(e,t){return e.some(function(e){return t.some(function(t){return e.compareMarker===t.compareMarker})})}function l(e){switch(e.type){case"Ruleset":return s(e.selector.selectors,this);case"Atrule":if(e.block)return"StyleSheet"===e.block.type&&e.block.rules.some(l,this)}return!0}var u=Object.prototype.hasOwnProperty;t.exports={isEqualLists:n,isEqualDeclarations:o,compareDeclarations:i,addSelectors:a,hasSimilarSelectors:s,unsafeToSkipNode:l}},{}],35:[function(e,t,r){function n(e,t){var r=Object.create(null);if(!Array.isArray(e))return!1;for(var n=0;n<e.length;n++){var o=e[n];t&&(o=o.toLowerCase()),r[o]=!0}return r}function o(e){var t=!1;if(e.scopes&&Array.isArray(e.scopes)){t=Object.create(null);for(var r=0;r<e.scopes.length;r++){var o=e.scopes[r];if(!o||!Array.isArray(o))throw new Error("Wrong usage format");for(var a=0;a<o.length;a++){var s=o[a];if(i.call(t,s))throw new Error("Class can't be used for several scopes: "+s);t[s]=r+1}}}return{tags:n(e.tags,!0),ids:n(e.ids),classes:n(e.classes),scopes:t}}var i=Object.prototype.hasOwnProperty;t.exports={buildIndex:o}},{}],36:[function(e,t,r){function n(e,t,r,n){return t.debug&&console.error("## "+e+" done in %d ms\n",Date.now()-r),n}function o(e){var t;return function(r,n){var o=r;if(n&&(o="["+((Date.now()-t)/1e3).toFixed(3)+"s] "+o),e>1&&n){var i=h(n,!0);2===e&&i.length>256&&(i=i.substr(0,256)+"..."),o+="\n "+i+"\n"}console.error(o),t=Date.now()}}function i(e){var t={};for(var r in e)t[r]=e[r];return t}function a(e){return e=i(e),"function"!=typeof e.logger&&e.debug&&(e.logger=o(e.debug)),e}function s(e,t,r){Array.isArray(r)||(r=[r]),r.forEach(function(r){r(e,t)})}function l(e,t,r){r=r||{};var o,i=r.filename||"<unknown>",l=n("parsing",r,Date.now(),p(t,{context:e,filename:i,positions:Boolean(r.sourceMap)}));r.beforeCompress&&n("beforeCompress",r,Date.now(),s(l,r,r.beforeCompress));var u=n("compress",r,Date.now(),f(l,a(r)));return r.afterCompress&&n("afterCompress",r,Date.now(),s(u,r,r.afterCompress)),o=r.sourceMap?n("translateWithSourceMap",r,Date.now(),function(){var e=d(u.ast);return e.map._file=i,e.map.setSourceContent(i,t),e}()):n("translate",r,Date.now(),{css:h(u.ast),map:null})}function u(e,t){return l("stylesheet",e,t)}function c(e,t){return l("block",e,t)}var p=e("./parser"),f=e("./compressor"),h=e("./utils/translate"),d=e("./utils/translateWithSourceMap"),m=e("./utils/walk"),g=e("./utils/clone"),v=e("./utils/list");t.exports={version:e("../package.json").version,List:v,minify:u,minifyBlock:c,parse:p,compress:f,translate:h,translateWithSourceMap:d,walk:m.all,walkRules:m.rules,walkRulesRight:m.rulesRight,clone:g}},{"../package.json":57,"./compressor":21,"./parser":38,"./utils/clone":40,"./utils/list":41,"./utils/translate":43,"./utils/translateWithSourceMap":44,"./utils/walk":45}],37:[function(e,t,r){r.TokenType={String:"String",Comment:"Comment",Unknown:"Unknown",Newline:"Newline",Space:"Space",Tab:"Tab",ExclamationMark:"ExclamationMark",QuotationMark:"QuotationMark",NumberSign:"NumberSign",DollarSign:"DollarSign",PercentSign:"PercentSign",Ampersand:"Ampersand",Apostrophe:"Apostrophe",LeftParenthesis:"LeftParenthesis",RightParenthesis:"RightParenthesis",Asterisk:"Asterisk",PlusSign:"PlusSign",Comma:"Comma",HyphenMinus:"HyphenMinus",FullStop:"FullStop",Solidus:"Solidus",Colon:"Colon",Semicolon:"Semicolon",LessThanSign:"LessThanSign",EqualsSign:"EqualsSign",GreaterThanSign:"GreaterThanSign",QuestionMark:"QuestionMark",CommercialAt:"CommercialAt",LeftSquareBracket:"LeftSquareBracket",ReverseSolidus:"ReverseSolidus",RightSquareBracket:"RightSquareBracket",CircumflexAccent:"CircumflexAccent",LowLine:"LowLine",LeftCurlyBracket:"LeftCurlyBracket",VerticalLine:"VerticalLine",RightCurlyBracket:"RightCurlyBracket",Tilde:"Tilde",Identifier:"Identifier",DecimalNumber:"DecimalNumber"}},{}],38:[function(e,t,r){"use strict";function n(e){var t,r=new Error(e),n=0,o=1,i=1;throw null!==fe.token?(n=fe.token.offset,o=fe.token.line,i=fe.token.column):null!==fe.prevToken&&(t=fe.prevToken.value.trimRight(),n=fe.prevToken.offset+t.length,t=t.split(/\n|\r\n?|\f/),o=fe.prevToken.line+t.length-1,i=t.length>1?t[t.length-1].length+1:fe.prevToken.column+t[t.length-1].length),r.name="CssSyntaxError",r.parseError={offset:n,line:o,column:i},r}function o(e){return null!==fe.token&&fe.token.type===e?(fe.next(),!0):void n(e+" is expected")}function i(e,t){return null!==fe.token&&fe.token.type===he.Identifier&&fe.token.value.toLowerCase()===e?(t&&fe.next(),!0):void n("Identifier `"+e+"` is expected")}function a(e){if(null!==fe.token)for(var t=1,r=fe.token.type;t<arguments.length;t++)if(r===arguments[t])return!0;n(e+" is expected")}function s(){return ce&&fe.token?{source:pe,offset:fe.token.offset,line:fe.token.line,column:fe.token.column}:null}function l(e){for(;e.tail&&"Space"===e.tail.data.type;)e.remove(e.tail)}function u(e){var t=null,r={type:"StyleSheet",info:s(),rules:new me};e:for(;null!==fe.token;){switch(fe.token.type){case he.Space:fe.next(),t=null;break;case he.Comment:e||"!"!==fe.token.value.charAt(2)?(fe.next(),t=null):t=R();break;case he.Unknown:t=c();break;case he.CommercialAt:t=h();break;case he.RightCurlyBracket:e||n("Unexpected right curly brace");break e;default:t=d()}null!==t&&r.rules.insert(me.createItem(t))}return r}function c(){var e=s(),t=fe.token.value;return o(he.Unknown),{type:"Unknown",info:e,value:t}}function p(){for(var e,t=1;e=fe.lookup(t);t++){var r=e.type;if(r===he.RightCurlyBracket)return!0;if(r===he.LeftCurlyBracket||r===he.CommercialAt)return!1}return!0}function f(){var e=null,t={type:"AtruleExpression",info:s(),sequence:new me};e:for(;null!==fe.token;){switch(fe.token.type){case he.Semicolon:break e;case he.LeftCurlyBracket:break e;case he.Space:t.sequence.isEmpty()?(fe.next(),e=null):e=ae();break;case he.Comment:fe.next(),e=null;break;case he.Comma:e=X();break;case he.Colon:e=ne();break;case he.LeftParenthesis:e=_(ge);break;default:e=C(ge)}null!==e&&t.sequence.insert(me.createItem(e))}return l(t.sequence),t}function h(){o(he.CommercialAt);var e={type:"Atrule",info:s(),name:V(!1),expression:f(),block:null};if(null!==fe.token)switch(fe.token.type){case he.Semicolon:fe.next();break;case he.LeftCurlyBracket:fe.next(),p()?e.block=b():e.block=u(!0),o(he.RightCurlyBracket);break;default:n("Unexpected input")}return e}function d(){return{type:"Ruleset",info:s(),selector:m(),block:y()}}function m(){var e=!1,t=!0,r={type:"Selector",info:s(),selectors:new me};e:for(;null!==fe.token;)switch(fe.token.type){case he.LeftCurlyBracket:break e;case he.Comma:t&&(e=!0),t=!0,fe.next();break;default:t||(e=!0),t=!1,r.selectors.insert(me.createItem(g())),r.selectors.tail.data.sequence.isEmpty()&&(e=!0)}return t&&(e=!0),e&&(r.selectors=new me),r}function g(e){var t=null,r=null,o={type:"SimpleSelector",info:s(),sequence:new me};e:for(;null!==fe.token;){switch(fe.token.type){case he.Comma:break e;case he.LeftCurlyBracket:e&&n("Unexpected input");break e;case he.RightParenthesis:e||n("Unexpected input");break e;case he.Comment:fe.next(),t=null;break;case he.Space:t=null,!r&&o.sequence.head?r=M():fe.next();break;case he.PlusSign:case he.GreaterThanSign:case he.Tilde:case he.Solidus:r&&" "!==r.name&&n("Unexpected combinator"),t=null,r=M();break;case he.FullStop:t=j();break;case he.LeftSquareBracket:t=A();break;case he.NumberSign:t=L();break;case he.Colon:t=ne();break;case he.LowLine:case he.Identifier:case he.Asterisk:t=$(!1);break;case he.HyphenMinus:case he.DecimalNumber:t=E()||$(!1);break;default:n("Unexpected input")}null!==t&&(null!==r&&(o.sequence.insert(me.createItem(r)),r=null),o.sequence.insert(me.createItem(t)))}return r&&" "!==r.name&&n("Unexpected combinator"),o}function v(){var e=null,t=new me;e:for(;null!==fe.token;){switch(fe.token.type){case he.RightCurlyBracket:break e;case he.Space:case he.Comment:fe.next(),e=null;break;case he.Semicolon:fe.next(),e=null;break;default:e=k()}null!==e&&t.insert(me.createItem(e))}return t}function y(){var e,t=s();return o(he.LeftCurlyBracket),e={type:"Block",info:t,declarations:v()},o(he.RightCurlyBracket),e}function b(){return{type:"Block",info:s(),declarations:v()}}function k(e){var t,r=s(),n=w();return o(he.Colon),t=/filter$/.test(n.name.toLowerCase())&&te()?ee():S(e),{type:"Declaration",info:r,property:n,value:t}}function w(){for(var e="",t={type:"Property",info:s(),name:null};null!==fe.token;fe.next()){var r=fe.token.type;if(r!==he.Solidus&&r!==he.Asterisk&&r!==he.DollarSign)break;e+=fe.token.value}return t.name=e+V(!0),se(),t}function S(e){var t=null,r={type:"Value",info:s(),important:!1,sequence:new me};se();e:for(;null!==fe.token;){switch(fe.token.type){case he.RightCurlyBracket:case he.Semicolon:break e;case he.RightParenthesis:e||n("Unexpected input");break e;case he.Space:t=ae();break;case he.Comment:fe.next(),t=null;break;case he.NumberSign:t=ue();break;case he.Solidus:case he.Comma:t=X();break;case he.LeftParenthesis:case he.LeftSquareBracket:t=_(ye);break;case he.ExclamationMark:r.important=J(),t=null;break;default:if(fe.token.type===he.Identifier){var o=fe.token.value;if("U"===o||"u"===o){fe.lookupType(1,he.PlusSign)&&(fe.next(),fe.next(),t={type:"Identifier",info:s(),name:o+"+"+H(!0)});break}}t=C(ye)}null!==t&&r.sequence.insert(me.createItem(t))}return l(r.sequence),r}function C(e){switch(fe.token.type){case he.String:return le();case he.LowLine:case he.Identifier:break;case he.FullStop:case he.DecimalNumber:case he.HyphenMinus:case he.PlusSign:var t=Z();if(null!==t){if(null!==fe.token){if(fe.token.type===he.PercentSign)return q(t);if(fe.token.type===he.Identifier)return O(t.value)}return t}if(fe.token.type===he.HyphenMinus){var r=fe.lookup(1);if(r&&(r.type===he.Identifier||r.type===he.HyphenMinus))break}if(fe.token.type===he.HyphenMinus||fe.token.type===he.PlusSign)return X();n("Unexpected input");default:n("Unexpected input")}var o=W(!1);return null!==fe.token&&fe.token.type===he.LeftParenthesis?N(e,o):o}function x(){a("Attribute selector (=, ~=, ^=, $=, *=, |=)",he.EqualsSign,he.Tilde,he.CircumflexAccent,he.DollarSign,he.Asterisk,he.VerticalLine);var e;return fe.token.type===he.EqualsSign?(e="=",fe.next()):(e=fe.token.value+"=",fe.next(),o(he.EqualsSign)),e}function A(){var e={type:"Attribute",info:s(),name:null,operator:null,value:null,flags:null};return o(he.LeftSquareBracket),se(),e.name=$(!0),se(),null!==fe.token&&fe.token.type!==he.RightSquareBracket&&(fe.token.type!==he.Identifier&&(e.operator=x(),se(),null!==fe.token&&fe.token.type===he.String?e.value=le():e.value=W(!1),se()),null!==fe.token&&fe.token.type===he.Identifier&&(e.flags=fe.token.value,fe.next(),se())),o(he.RightSquareBracket),e}function _(e){var t,r=null,n={type:"Braces",info:s(),open:fe.token.value,close:null,sequence:new me};t=fe.token.type===he.LeftParenthesis?he.RightParenthesis:he.RightSquareBracket,fe.next(),se();e:for(;null!==fe.token;){switch(fe.token.type){case t:n.close=fe.token.value;break e;case he.Space:r=ae();break;case he.Comment:fe.next(),r=null;break;case he.NumberSign:r=ue();break;case he.LeftParenthesis:case he.LeftSquareBracket:r=_(e);break;case he.Solidus:case he.Asterisk:case he.Comma:case he.Colon:r=X();break;default:r=C(e)}null!==r&&n.sequence.insert(me.createItem(r))}return l(n.sequence),o(t),n}function j(){var e=s();return o(he.FullStop),{type:"Class",info:e,name:V(!1)}}function L(){var e=s();return o(he.NumberSign),{type:"Id",info:e,name:V(!1)}}function M(){var e,t=s();switch(fe.token.type){case he.Space:e=" ",fe.next();break;case he.PlusSign:case he.GreaterThanSign:case he.Tilde:e=fe.token.value,fe.next();break;case he.Solidus:e="/deep/",fe.next(),i("deep",!0),o(he.Solidus);break;default:n("Combinator (+, >, ~, /deep/) is expected")}return{type:"Combinator",info:t,name:e}}function R(){var e=s(),t=fe.token.value,r=t.length;return r>4&&"*"===t.charAt(r-2)&&"/"===t.charAt(r-1)&&(r-=2),fe.next(),{type:"Comment",info:e,value:t.substring(2,r)}}function P(){if(null!==fe.token&&fe.token.type===he.Identifier){var e=fe.token.value,t=e.indexOf("\\");return t===-1?(fe.next(),e):(fe.token.value=e.substr(t),fe.token.offset+=t,fe.token.column+=t,e.substr(0,t))}n("Identifier is expected")}function O(e){return{type:"Dimension",info:s(),value:e||Y(),unit:P()}}function E(){var e=Z();return e&&null!==fe.token&&fe.token.type===he.PercentSign?q(e):null}function q(e){var t;return e?(t=e.info,e=e.value):(t=s(),e=Y()),o(he.PercentSign),{type:"Percentage",info:t,value:e}}function N(e,t){var r=B;t||(t=W(!1));var n=t.name.toLowerCase();return be.hasOwnProperty(e)&&be[e].hasOwnProperty(n)?be[e][n](e,t):I(r,e,t)}function I(e,t,r){var n;return o(he.LeftParenthesis),n=e(t),o(he.RightParenthesis),{type:t===ve?"FunctionalPseudo":"Function",info:r.info,name:r.name,arguments:n}}function B(e){var t=new me,r=null,n=null;se();e:for(;null!==fe.token;){switch(fe.token.type){case he.RightParenthesis:break e;case he.Space:n=ae();break;case he.Comment:fe.next(),n=null;break;case he.NumberSign:n=ue();break;case he.LeftParenthesis:case he.LeftSquareBracket:n=_(e);break;case he.Comma:r?l(r.sequence):t.insert(me.createItem({type:"Argument",sequence:new me})),fe.next(),se(),r=null,n=null;break;case he.Solidus:case he.Asterisk:case he.Colon:case he.EqualsSign:n=X();break;default:n=C(e)}null===r&&(r={type:"Argument",sequence:new me},t.insert(me.createItem(r))),null!==n&&r.sequence.insert(me.createItem(n))}return null!==r&&l(r.sequence),t}function D(e,t){return I(F,e,t)}function T(){var e=new me,t=!1;e:for(;null!==fe.token;)switch(fe.token.type){case he.RightParenthesis:t||n("Simple selector is expected");break e;case he.Comma:t||n("Simple selector is expected"),t=!1,fe.next();break;default:t=!0,e.insert(me.createItem(g(!0)))}return e}function U(e,t){var r;return o(he.LeftParenthesis),r=T(e),o(he.RightParenthesis),{type:"Negation",info:t.info,sequence:r}}function F(){var e=new me;return se(),e.insert(me.createItem({type:"Argument",sequence:new me([W(!0)])})),se(),null!==fe.token&&fe.token.type===he.Comma&&(o(he.Comma),se(),e.insert(me.createItem({type:"Argument",sequence:new me([S(!0)])})),se()),e}function G(e,t){var r={type:"Url",info:t.info,value:null};if(o(he.LeftParenthesis),se(),fe.token.type===he.String)r.value=le(),se();else{for(var n=s(),i="";null!==fe.token;fe.next()){var a=fe.token.type;if(a===he.Space||a===he.LeftParenthesis||a===he.RightParenthesis)break;i+=fe.token.value}r.value={type:"Raw",info:n,value:i},se()}return o(he.RightParenthesis),r}function z(e,t){var r=0,n="";for(o(he.LeftParenthesis);null!==fe.token;fe.next()){if(fe.token.type===he.RightParenthesis){if(0===r)break;r--}else fe.token.type===he.LeftParenthesis&&r++;n+=fe.token.value}return o(he.RightParenthesis),{type:"Function",info:t.info,name:t.name,arguments:new me([{type:"Argument",sequence:new me([{type:"Raw",value:n}])}])}}function H(e){for(var t="";null!==fe.token&&(fe.token.type===he.DecimalNumber||fe.token.type===he.Identifier);fe.next())t+=fe.token.value;if(/^[0-9a-f]{1,6}$/i.test(t)||n("Unexpected input"),e)for(;t.length<6&&null!==fe.token&&fe.token.type===he.QuestionMark;fe.next())t+=fe.token.value,e=!1;if(e&&null!==fe.token&&fe.token.type===he.HyphenMinus){fe.next();var r=H(!1);r||n("Unexpected input"),t+="-"+r}return t}function V(e){var t="";if(null!==fe.token&&fe.token.type===he.HyphenMinus&&(t="-",fe.next(),e&&null!==fe.token&&fe.token.type===he.HyphenMinus&&(t="--",fe.next())),a("Identifier",he.LowLine,he.Identifier),null!==fe.token)for(t+=fe.token.value,fe.next();null!==fe.token;fe.next()){var r=fe.token.type;if(r!==he.LowLine&&r!==he.Identifier&&r!==he.DecimalNumber&&r!==he.HyphenMinus)break;t+=fe.token.value}return t}function $(e){null===fe.token&&n("Unexpected end of input");var t,r=s();return fe.token.type===he.Asterisk?(e=!1,t="*",fe.next()):t=V(!1),null!==fe.token&&fe.token.type===he.VerticalLine&&fe.lookupType(1,he.EqualsSign)===!1&&(t+="|",null!==fe.next()&&(fe.token.type===he.HyphenMinus||fe.token.type===he.Identifier||fe.token.type===he.LowLine?t+=V(!1):fe.token.type===he.Asterisk&&(e=!1,t+="*",fe.next()))),e&&null!==fe.token&&fe.token.type===he.Colon&&(fe.next(),t+=":"+V(!1)),{type:"Identifier",info:r,name:t}}function W(e){return{type:"Identifier",info:s(),name:V(e)}}function J(){return o(he.ExclamationMark),se(),i("important"),V(!1),!0}function Q(){a("Number, odd or even",he.Identifier,he.DecimalNumber);var e,t=s(),r=fe.token.value;if(fe.token.type===he.DecimalNumber){var o=fe.lookup(1);null!==o&&o.type===he.Identifier&&"n"===o.value.toLowerCase()&&(r+=o.value,fe.next())}else{var e=r.toLowerCase();"odd"!==e&&"even"!==e&&"n"!==e&&n("Unexpected identifier")}return fe.next(),{type:"Nth",info:t,value:r}}function K(){var e,t=s(),r=new me,n=null;o(he.Colon),i("nth",!1),e={type:"FunctionalPseudo",info:t,name:V(!1),arguments:new me([{type:"Argument",sequence:r}])},o(he.LeftParenthesis);e:for(;null!==fe.token;){switch(fe.token.type){case he.RightParenthesis:break e;case he.Space:case he.Comment:fe.next(),n=null;break;case he.HyphenMinus:case he.PlusSign:n=X();break;default:n=Q()}null!==n&&r.insert(me.createItem(n))}return o(he.RightParenthesis),e}function Y(){var e=!1,t="",r=0;if(fe.lookupType(r,he.HyphenMinus)&&(t="-",r++),fe.lookupType(r,he.DecimalNumber)&&(e=!0,t+=fe.lookup(r).value,r++),fe.lookupType(r,he.FullStop)&&(t+=".",r++),fe.lookupType(r,he.DecimalNumber)&&(e=!0,t+=fe.lookup(r).value,r++),e){for(;r--;)fe.next();return t}return null}function Z(){var e=s(),t=Y();return null!==t?{type:"Number",info:e,value:t}:null}function X(){var e={type:"Operator",info:s(),value:fe.token.value};return fe.next(),e}function ee(){for(var e,t={type:"Value",info:s(),important:!1,sequence:new me};e=te();)t.sequence.insert(me.createItem(re(e)));return se(t),null!==fe.token&&fe.token.type===he.ExclamationMark&&(t.important=J()),t}function te(){function e(e){for(var t;(t=fe.lookup(e))&&(t.type===he.Space||t.type===he.Comment);e++);return e}var t=e(0);if(null===fe.lookup(t+1)||"progid"!==fe.lookup(t+0).value.toLowerCase()||fe.lookup(t+1).type!==he.Colon)return!1;if(t+=2,t=e(t),null===fe.lookup(t+5)||"dximagetransform"!==fe.lookup(t+0).value.toLowerCase()||fe.lookup(t+1).type!==he.FullStop||"microsoft"!==fe.lookup(t+2).value.toLowerCase()||fe.lookup(t+3).type!==he.FullStop||fe.lookup(t+4).type!==he.Identifier)return!1;if(t+=5,t=e(t),fe.lookupType(t,he.LeftParenthesis)===!1)return!1;for(var r;r=fe.lookup(t);t++)if(r.type===he.RightParenthesis)return r;return!1}function re(e){var t="",r={type:"Progid",info:s(),value:null};e||(e=te()),e||n("progid is expected"),se(r);for(var i=s();fe.token&&fe.token!==e;fe.next())t+=fe.token.value;return o(he.RightParenthesis),t+=")",r.value={type:"Raw",info:i,value:t},se(r),r}function ne(){var e=fe.lookup(1);return null===e&&(fe.next(),n("Colon or identifier is expected")),e.type===he.Colon?oe():e.type===he.Identifier&&"nth"===e.value.toLowerCase()?K():ie()}function oe(){var e=s();return o(he.Colon),o(he.Colon),{type:"PseudoElement",info:e,name:V(!1)}}function ie(){var e=s(),t=o(he.Colon)&&W(!1);return null!==fe.token&&fe.token.type===he.LeftParenthesis?N(ve,t):{type:"PseudoClass",info:e,name:t.name}}function ae(){var e={type:"Space"};return fe.next(),e}function se(){e:for(;null!==fe.token;)switch(fe.token.type){case he.Space:fe.next();break;case he.Comment:fe.next();break;default:break e}return null}function le(){var e={type:"String",info:s(),value:fe.token.value};return fe.next(),e}function ue(){var e,t=s();return o(he.NumberSign),a("Number or identifier",he.DecimalNumber,he.Identifier),e=fe.token.value,fe.token.type===he.DecimalNumber&&fe.lookupType(1,he.Identifier)&&(fe.next(),e+=fe.token.value),fe.next(),{type:"Hash",info:t,value:e}}var ce,pe,fe,he=e("./const").TokenType,de=e("./scanner"),me=e("../utils/list"),ge=1,ve=2,ye=3,be={};be[ge]={url:G},be[ve]={url:G,not:U},be[ye]={url:G,expression:z,var:D};var ke={stylesheet:u,atrule:h,atruleExpression:f,ruleset:d,selector:m,simpleSelector:g,block:b,declaration:k,value:S},we={declaration:!0,property:!0};t.exports=function(e,t){var r;t&&"object"==typeof t||(t={});var n=t.context||"stylesheet";if(ce=Boolean(t.positions),pe=t.filename||"<unknown>",!ke.hasOwnProperty(n))throw new Error("Unknown context `"+n+"`");return fe=new de(e,we.hasOwnProperty(n),t.line,t.column),fe.next(),r=ke[n](),fe=null,r}},{"../utils/list":41,"./const":37,"./scanner":39}],39:[function(e,t,r){"use strict";var n=e("./const.js").TokenType,o=9,i=10,a=12,s=13,l=32,u=34,c=39,p=41,f=42,h=47,d=92,m=95,g=123,v=125,y=1,b=2,k=3,w=4,S={9:n.Tab,10:n.Newline,13:n.Newline,32:n.Space,33:n.ExclamationMark,34:n.QuotationMark,35:n.NumberSign,36:n.DollarSign,37:n.PercentSign,38:n.Ampersand,39:n.Apostrophe,40:n.LeftParenthesis,41:n.RightParenthesis,42:n.Asterisk,43:n.PlusSign,44:n.Comma,45:n.HyphenMinus,46:n.FullStop,47:n.Solidus,58:n.Colon,59:n.Semicolon,60:n.LessThanSign,61:n.EqualsSign,62:n.GreaterThanSign,63:n.QuestionMark,64:n.CommercialAt,91:n.LeftSquareBracket,93:n.RightSquareBracket,94:n.CircumflexAccent,95:n.LowLine,123:n.LeftCurlyBracket,124:n.VerticalLine,125:n.RightCurlyBracket,126:n.Tilde},C=Math.max.apply(null,Object.keys(S))+1,x=new Uint32Array(C),A=new Uint32Array(C);Object.keys(S).forEach(function(e){x[Number(e)]=b,A[Number(e)]=b},x),A[m]=0;for(var _=48;_<=57;_++)x[_]=k;x[l]=y,x[o]=y,x[i]=y,x[s]=y,x[a]=y,x[c]=w,x[u]=w;var j=function(e,t,r,n){this.source=e,this.pos=65279===e.charCodeAt(0)?1:0,this.eof=this.pos===this.source.length,this.line="undefined"==typeof r?1:r,this.lineStartPos="undefined"==typeof n?-1:-n,this.minBlockMode=t?1:0,this.blockMode=this.minBlockMode,this.urlMode=!1,this.prevToken=null,this.token=null,this.buffer=[]};j.prototype={lookup:function(e){if(0===e)return this.token;for(var t=this.buffer.length;!this.eof&&t<e;t++)this.buffer.push(this.getToken());return e<=this.buffer.length?this.buffer[e-1]:null},lookupType:function(e,t){var r=this.lookup(e);return null!==r&&r.type===t},next:function(){var e=null;return 0!==this.buffer.length?e=this.buffer.shift():this.eof||(e=this.getToken()),this.prevToken=this.token,this.token=e,e},tokenize:function(){for(var e=[];this.pos<this.source.length;this.pos++)e.push(this.getToken());return e},getToken:function(){var e,t,r,o=this.source.charCodeAt(this.pos),i=this.line,a=this.pos-this.lineStartPos,s=this.pos;switch(o<C?x[o]:0){case k:t=n.DecimalNumber,r=this.readDecimalNumber();break;case w:t=n.String,r=this.readString(o);break;case y:t=n.Space,r=this.readSpaces();break;case b:if(o===h){if(e=this.pos+1<this.source.length?this.source.charCodeAt(this.pos+1):0,e===f){t=n.Comment,r=this.readComment();break}if(e===h&&!this.urlMode){if(this.blockMode>0){for(var l=2;this.source.charCodeAt(this.pos+2)===h;)l++;t=n.Identifier,r=this.readIdentifier(l),this.urlMode=this.urlMode||"url"===r}else t=n.Unknown,r=this.readUnknown();break}}t=S[o],r=String.fromCharCode(o),this.pos++,o===p?this.urlMode=!1:o===g?this.blockMode++:o===v&&this.blockMode>this.minBlockMode&&this.blockMode--;break;default:t=n.Identifier,r=this.readIdentifier(0),this.urlMode=this.urlMode||"url"===r}return this.eof=this.pos===this.source.length,{type:t,value:r,offset:s,line:i,column:a}},isNewline:function(e){return(e===i||e===a||e===s)&&(e===s&&this.pos+1<this.source.length&&this.source.charCodeAt(this.pos+1)===i&&this.pos++,this.line++,this.lineStartPos=this.pos,!0)},readSpaces:function(){for(var e=this.pos;this.pos<this.source.length;this.pos++){var t=this.source.charCodeAt(this.pos);if(!this.isNewline(t)&&t!==l&&t!==o)break}return this.source.substring(e,this.pos)},readComment:function(){var e=this.pos;for(this.pos+=2;this.pos<this.source.length;this.pos++){var t=this.source.charCodeAt(this.pos);if(t===f){if(this.source.charCodeAt(this.pos+1)===h){this.pos+=2;break}}else this.isNewline(t)}return this.source.substring(e,this.pos)},readUnknown:function(){var e=this.pos;for(this.pos+=2;this.pos<this.source.length&&!this.isNewline(this.source.charCodeAt(this.pos),this.source);this.pos++);return this.source.substring(e,this.pos)},readString:function(e){var t=this.pos,r="";for(this.pos++;this.pos<this.source.length;this.pos++){var n=this.source.charCodeAt(this.pos);if(n===d){var o=this.pos++;this.isNewline(this.source.charCodeAt(this.pos),this.source)&&(r+=this.source.substring(t,o),t=this.pos+1)}else if(n===e){this.pos++;break}}return r+this.source.substring(t,this.pos)},readDecimalNumber:function(){var e,t=this.pos;for(this.pos++;this.pos<this.source.length&&(e=this.source.charCodeAt(this.pos),!(e<48||e>57));this.pos++);return this.source.substring(t,this.pos)},readIdentifier:function(e){var t=this.pos;for(this.pos+=e;this.pos<this.source.length;this.pos++){var r=this.source.charCodeAt(this.pos);if(r===d){this.pos++;for(var n=0;n<7&&this.pos+n<this.source.length;n++)if(r=this.source.charCodeAt(this.pos+n),6===n||!(r>=48&&r<=57||r>=65&&r<=70||r>=97&&r<=102)){n>0&&(this.pos+=n-1,(r===l||r===o||this.isNewline(r))&&this.pos++);break}}else if(r<C&&A[r]===b)break}return this.source.substring(t,this.pos)}},new j("\n\r\r\n\f//\"\"''/**/1a;.{url(a)}").lookup(1e3),t.exports=j},{"./const.js":37}],40:[function(e,t,r){var n=e("./list");t.exports=function e(t){var r={};for(var o in t){var i=t[o];i&&(Array.isArray(i)?i=i.slice(0):i instanceof n?i=new n(i.map(e)):i.constructor===Object&&(i=e(i))),r[o]=i}return r}},{"./list":41}],41:[function(e,t,r){function n(e){return{data:e,next:null,prev:null}}var o=function(e){if(this.cursor=null,this.head=null,this.tail=null,Array.isArray(e)){for(var t=null,r=0;r<e.length;r++){var o=n(e[r]);null!==t?t.next=o:this.head=o,o.prev=t,t=o}this.tail=t}};Object.defineProperty(o.prototype,"size",{get:function(){for(var e=0,t=this.head;t;)e++,t=t.next;return e}}),o.createItem=n,o.prototype.createItem=n,o.prototype.toArray=function(){for(var e=this.head,t=[];e;)t.push(e.data),e=e.next;return t},o.prototype.toJSON=function(){return this.toArray()},o.prototype.isEmpty=function(){return null===this.head},o.prototype.first=function(){return this.head&&this.head.data},o.prototype.last=function(){return this.tail&&this.tail.data},o.prototype.each=function(e,t){var r,n={prev:null,next:this.head,cursor:this.cursor};for(void 0===t&&(t=this),this.cursor=n;null!==n.next;)r=n.next,n.next=r.next,e.call(t,r.data,r,this);this.cursor=this.cursor.cursor},o.prototype.eachRight=function(e,t){var r,n={prev:this.tail,next:null,cursor:this.cursor};for(void 0===t&&(t=this),this.cursor=n;null!==n.prev;)r=n.prev,n.prev=r.prev,e.call(t,r.data,r,this);this.cursor=this.cursor.cursor},o.prototype.nextUntil=function(e,t,r){if(null!==e){var n,o={prev:null,next:e,cursor:this.cursor};for(void 0===r&&(r=this),this.cursor=o;null!==o.next&&(n=o.next,o.next=n.next,!t.call(r,n.data,n,this)););this.cursor=this.cursor.cursor}},o.prototype.prevUntil=function(e,t,r){if(null!==e){var n,o={prev:e,next:null,cursor:this.cursor};for(void 0===r&&(r=this),this.cursor=o;null!==o.prev&&(n=o.prev,o.prev=n.prev,!t.call(r,n.data,n,this)););this.cursor=this.cursor.cursor}},o.prototype.some=function(e,t){var r=this.head;for(void 0===t&&(t=this);null!==r;){if(e.call(t,r.data,r,this))return!0;r=r.next}return!1},o.prototype.map=function(e,t){var r=[],n=this.head;for(void 0===t&&(t=this);null!==n;)r.push(e.call(t,n.data,n,this)),n=n.next;return r},o.prototype.copy=function(){for(var e=new o,t=this.head;null!==t;)e.insert(n(t.data)),t=t.next;return e},o.prototype.updateCursors=function(e,t,r,n){for(var o=this.cursor;null!==o;)t!==!0&&o.prev!==e||(o.prev=t),n!==!0&&o.next!==r||(o.next=n),o=o.cursor},o.prototype.insert=function(e,t){if(void 0!==t&&null!==t)if(this.updateCursors(t.prev,e,t,e),null===t.prev){if(this.head!==t)throw new Error("before doesn't below to list");this.head=e,t.prev=e,e.next=t,this.updateCursors(null,e)}else t.prev.next=e,e.prev=t.prev,t.prev=e,e.next=t;else this.updateCursors(this.tail,e,null,e),null!==this.tail?(this.tail.next=e,e.prev=this.tail):this.head=e,this.tail=e},o.prototype.remove=function(e){if(this.updateCursors(e,e.prev,e,e.next),null!==e.prev)e.prev.next=e.next;else{if(this.head!==e)throw new Error("item doesn't below to list");this.head=e.next}if(null!==e.next)e.next.prev=e.prev;else{if(this.tail!==e)throw new Error("item doesn't below to list");this.tail=e.prev}return e.prev=null,e.next=null,e},o.prototype.appendList=function(e){null!==e.head&&(this.updateCursors(this.tail,e.tail,null,e.head),null!==this.tail?(this.tail.next=e.head,e.head.prev=this.tail):this.head=e.head,this.tail=e.tail,e.head=null,e.tail=null)},t.exports=o},{}],42:[function(e,t,r){function n(e){if("-"===e[0]){var t=e.indexOf("-",2);if(t!==-1)return e.substr(0,t+1)}return""}function o(e){if(a.call(s,e))return s[e];var t=e.toLowerCase(),r=n(t),o=t;return r&&(o=o.substr(r.length)),s[e]=Object.freeze({vendor:r,prefix:r,name:o})}function i(e){if(a.call(l,e))return l[e];var t=e.toLowerCase(),r=t[0];"*"===r||"_"===r||"$"===r?t=t.substr(1):"/"===r&&"/"===e[1]?(r="//",t=t.substr(2)):r="";var o=n(t),i=t;return o&&(i=i.substr(o.length)),l[e]=Object.freeze({hack:r,vendor:o,prefix:r+o,name:i})}var a=Object.prototype.hasOwnProperty,s=Object.create(null),l=Object.create(null);t.exports={keyword:o,property:i}},{}],43:[function(e,t,r){function n(e){return null===e.head?"":e.head===e.tail?i(e.head.data):e.map(i).join("")}function o(e,t){return null===e.head?"":e.head===e.tail?i(e.head.data):e.map(i).join(t)}function i(e){switch(e.type){case"StyleSheet":return n(e.rules);case"Atrule":var t=["@",e.name];return e.expression&&!e.expression.sequence.isEmpty()&&t.push(" ",i(e.expression)),e.block?t.push("{",i(e.block),"}"):t.push(";"),t.join("");case"Ruleset":return i(e.selector)+"{"+i(e.block)+"}";case"Selector":return o(e.selectors,",");case"SimpleSelector":var t=e.sequence.map(function(e){return"Combinator"===e.type&&"/deep/"===e.name?" "+i(e)+" ":i(e)});return t.join("");case"Block":return o(e.declarations,";");case"Declaration":return i(e.property)+":"+i(e.value);case"Property":return e.name;case"Value":return e.important?n(e.sequence)+"!important":n(e.sequence);case"Attribute":var r=i(e.name),a=" ";return null!==e.operator&&(r+=e.operator,null!==e.value&&(r+=i(e.value),"String"===e.value.type&&(a=""))),null!==e.flags&&(r+=a+e.flags),"["+r+"]";case"FunctionalPseudo":return":"+e.name+"("+o(e.arguments,",")+")";case"Function":return e.name+"("+o(e.arguments,",")+")";case"Negation":return":not("+o(e.sequence,",")+")";case"Braces":return e.open+n(e.sequence)+e.close;case"Argument":case"AtruleExpression":return n(e.sequence);case"Url":return"url("+i(e.value)+")";case"Progid":return i(e.value);case"Combinator":return e.name;case"Identifier":return e.name;case"PseudoClass":return":"+e.name;case"PseudoElement":return"::"+e.name;case"Class":return"."+e.name;case"Id":return"#"+e.name;case"Hash":return"#"+e.value;case"Dimension":return e.value+e.unit;case"Nth":return e.value;case"Number":return e.value;case"String":return e.value;case"Operator":return e.value;case"Raw":return e.value;case"Unknown":return e.value;case"Percentage":return e.value+"%";case"Space":return" ";case"Comment":return"/*"+e.value+"*/";default:throw new Error("Unknown node type: "+e.type)}}t.exports=i},{}],44:[function(e,t,r){function n(e,t){for(var r,o=0;o<e.children.length;o++)r=e.children[o],r instanceof p?n(r,t):t(r,e)}function o(e){var t,r=new c,o="",i=!1,a=null,s=null,l={line:1,column:0},u={generated:l};return n(e,function(e,n){null!==n.line&&null!==n.column?(a===n.line&&s===n.column||r.addMapping({source:n.source,original:n,generated:l}),a=n.line,s=n.column,i=!0):i&&(r.addMapping(u),i=!1),o+=e,t=e.lastIndexOf("\n"),t!==-1?(l.line+=e.match(/\n/g).length,l.column=e.length-t-1):l.column+=e.length}),{css:o,map:r}}function i(e){return new p(null,null,null,e)}function a(e,t){return e.primary?a(e.primary,t):new p(e.line,e.column-1,e.source,t)}function s(e){return null===e.head?"":e.head===e.tail?u(e.head.data):e.map(u).join("")}function l(e,t){return null===e.head?"":e.head===e.tail?u(e.head.data):e.map(u).join(t)}function u(e){switch(e.type){case"StyleSheet":return i(e.rules.map(u));case"Atrule":var t=["@",e.name];return e.expression&&!e.expression.sequence.isEmpty()&&t.push(" ",u(e.expression)),
17
- e.block?t.push("{",u(e.block),"}"):t.push(";"),a(e.info,t);case"Ruleset":return i([u(e.selector),"{",u(e.block),"}"]);case"Selector":return i(e.selectors.map(u)).join(",");case"SimpleSelector":var t=e.sequence.map(function(e){return"Combinator"===e.type&&"/deep/"===e.name?" "+u(e)+" ":u(e)});return a(e.info,t);case"Block":return i(e.declarations.map(u)).join(";");case"Declaration":return a(e.info,[u(e.property),":",u(e.value)]);case"Property":return e.name;case"Value":return e.important?s(e.sequence)+"!important":s(e.sequence);case"Attribute":var r=u(e.name),n=" ";return null!==e.operator&&(r+=e.operator,null!==e.value&&(r+=u(e.value),"String"===e.value.type&&(n=""))),null!==e.flags&&(r+=n+e.flags),"["+r+"]";case"FunctionalPseudo":return":"+e.name+"("+l(e.arguments,",")+")";case"Function":return e.name+"("+l(e.arguments,",")+")";case"Negation":return":not("+l(e.sequence,",")+")";case"Braces":return e.open+s(e.sequence)+e.close;case"Argument":case"AtruleExpression":return s(e.sequence);case"Url":return"url("+u(e.value)+")";case"Progid":return u(e.value);case"Combinator":return e.name;case"Identifier":return e.name;case"PseudoClass":return":"+e.name;case"PseudoElement":return"::"+e.name;case"Class":return"."+e.name;case"Id":return"#"+e.name;case"Hash":return"#"+e.value;case"Dimension":return e.value+e.unit;case"Nth":return e.value;case"Number":return e.value;case"String":return e.value;case"Operator":return e.value;case"Raw":return e.value;case"Unknown":return e.value;case"Percentage":return e.value+"%";case"Space":return" ";case"Comment":return"/*"+e.value+"*/";default:throw new Error("Unknown node type: "+e.type)}}var c=e("source-map").SourceMapGenerator,p=e("source-map").SourceNode;t.exports=function(e){return o(i(u(e)))}},{"source-map":56}],45:[function(e,t,r){function n(e,t,r){switch(e.type){case"StyleSheet":var o=this.stylesheet;this.stylesheet=e,e.rules.each(n,this),this.stylesheet=o;break;case"Atrule":null!==e.block&&n.call(this,e.block),this.fn(e,t,r);break;case"Ruleset":this.fn(e,t,r)}}function o(e,t,r){switch(e.type){case"StyleSheet":var n=this.stylesheet;this.stylesheet=e,e.rules.eachRight(o,this),this.stylesheet=n;break;case"Atrule":null!==e.block&&o.call(this,e.block),this.fn(e,t,r);break;case"Ruleset":this.fn(e,t,r)}}function i(e,t,r){switch(e.type){case"StyleSheet":var n=this.stylesheet;this.stylesheet=e,e.rules.each(i,this),this.stylesheet=n;break;case"Atrule":null!==e.expression&&i.call(this,e.expression),null!==e.block&&i.call(this,e.block);break;case"Ruleset":this.ruleset=e,null!==e.selector&&i.call(this,e.selector),i.call(this,e.block),this.ruleset=null;break;case"Selector":var o=this.selector;this.selector=e,e.selectors.each(i,this),this.selector=o;break;case"Block":e.declarations.each(i,this);break;case"Declaration":this.declaration=e,i.call(this,e.property),i.call(this,e.value),this.declaration=null;break;case"Attribute":i.call(this,e.name),null!==e.value&&i.call(this,e.value);break;case"FunctionalPseudo":case"Function":this.function=e,e.arguments.each(i,this),this.function=null;break;case"AtruleExpression":this.atruleExpression=e,e.sequence.each(i,this),this.atruleExpression=null;break;case"Value":case"Argument":case"SimpleSelector":case"Braces":case"Negation":e.sequence.each(i,this);break;case"Url":case"Progid":i.call(this,e.value)}this.fn(e,t,r)}function a(e,t){var r={fn:t,root:e,stylesheet:null,atruleExpression:null,ruleset:null,selector:null,declaration:null,function:null};return r}t.exports={all:function(e,t){i.call(a(e,t),e)},rules:function(e,t){n.call(a(e,t),e)},rulesRight:function(e,t){o.call(a(e,t),e)}}},{}],46:[function(e,t,r){function n(){this._array=[],this._set=Object.create(null)}var o=e("./util"),i=Object.prototype.hasOwnProperty;n.fromArray=function(e,t){for(var r=new n,o=0,i=e.length;o<i;o++)r.add(e[o],t);return r},n.prototype.size=function(){return Object.getOwnPropertyNames(this._set).length},n.prototype.add=function(e,t){var r=o.toSetString(e),n=i.call(this._set,r),a=this._array.length;n&&!t||this._array.push(e),n||(this._set[r]=a)},n.prototype.has=function(e){var t=o.toSetString(e);return i.call(this._set,t)},n.prototype.indexOf=function(e){var t=o.toSetString(e);if(i.call(this._set,t))return this._set[t];throw new Error('"'+e+'" is not in the set.')},n.prototype.at=function(e){if(e>=0&&e<this._array.length)return this._array[e];throw new Error("No element indexed by "+e)},n.prototype.toArray=function(){return this._array.slice()},r.ArraySet=n},{"./util":55}],47:[function(e,t,r){function n(e){return e<0?(-e<<1)+1:(e<<1)+0}function o(e){var t=1===(1&e),r=e>>1;return t?-r:r}var i=e("./base64"),a=5,s=1<<a,l=s-1,u=s;r.encode=function(e){var t,r="",o=n(e);do t=o&l,o>>>=a,o>0&&(t|=u),r+=i.encode(t);while(o>0);return r},r.decode=function(e,t,r){var n,s,c=e.length,p=0,f=0;do{if(t>=c)throw new Error("Expected more digits in base 64 VLQ value.");if(s=i.decode(e.charCodeAt(t++)),s===-1)throw new Error("Invalid base64 digit: "+e.charAt(t-1));n=!!(s&u),s&=l,p+=s<<f,f+=a}while(n);r.value=o(p),r.rest=t}},{"./base64":48}],48:[function(e,t,r){var n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");r.encode=function(e){if(0<=e&&e<n.length)return n[e];throw new TypeError("Must be between 0 and 63: "+e)},r.decode=function(e){var t=65,r=90,n=97,o=122,i=48,a=57,s=43,l=47,u=26,c=52;return t<=e&&e<=r?e-t:n<=e&&e<=o?e-n+u:i<=e&&e<=a?e-i+c:e==s?62:e==l?63:-1}},{}],49:[function(e,t,r){function n(e,t,o,i,a,s){var l=Math.floor((t-e)/2)+e,u=a(o,i[l],!0);return 0===u?l:u>0?t-l>1?n(l,t,o,i,a,s):s==r.LEAST_UPPER_BOUND?t<i.length?t:-1:l:l-e>1?n(e,l,o,i,a,s):s==r.LEAST_UPPER_BOUND?l:e<0?-1:e}r.GREATEST_LOWER_BOUND=1,r.LEAST_UPPER_BOUND=2,r.search=function(e,t,o,i){if(0===t.length)return-1;var a=n(-1,t.length,e,t,o,i||r.GREATEST_LOWER_BOUND);if(a<0)return-1;for(;a-1>=0&&0===o(t[a],t[a-1],!0);)--a;return a}},{}],50:[function(e,t,r){function n(e,t){var r=e.generatedLine,n=t.generatedLine,o=e.generatedColumn,a=t.generatedColumn;return n>r||n==r&&a>=o||i.compareByGeneratedPositionsInflated(e,t)<=0}function o(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}var i=e("./util");o.prototype.unsortedForEach=function(e,t){this._array.forEach(e,t)},o.prototype.add=function(e){n(this._last,e)?(this._last=e,this._array.push(e)):(this._sorted=!1,this._array.push(e))},o.prototype.toArray=function(){return this._sorted||(this._array.sort(i.compareByGeneratedPositionsInflated),this._sorted=!0),this._array},r.MappingList=o},{"./util":55}],51:[function(e,t,r){function n(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}function o(e,t){return Math.round(e+Math.random()*(t-e))}function i(e,t,r,a){if(r<a){var s=o(r,a),l=r-1;n(e,s,a);for(var u=e[a],c=r;c<a;c++)t(e[c],u)<=0&&(l+=1,n(e,l,c));n(e,l+1,c);var p=l+1;i(e,t,r,p-1),i(e,t,p+1,a)}}r.quickSort=function(e,t){i(e,t,0,e.length-1)}},{}],52:[function(e,t,r){function n(e){var t=e;return"string"==typeof e&&(t=JSON.parse(e.replace(/^\)\]\}'/,""))),null!=t.sections?new a(t):new o(t)}function o(e){var t=e;"string"==typeof e&&(t=JSON.parse(e.replace(/^\)\]\}'/,"")));var r=s.getArg(t,"version"),n=s.getArg(t,"sources"),o=s.getArg(t,"names",[]),i=s.getArg(t,"sourceRoot",null),a=s.getArg(t,"sourcesContent",null),l=s.getArg(t,"mappings"),c=s.getArg(t,"file",null);if(r!=this._version)throw new Error("Unsupported version: "+r);n=n.map(String).map(s.normalize).map(function(e){return i&&s.isAbsolute(i)&&s.isAbsolute(e)?s.relative(i,e):e}),this._names=u.fromArray(o.map(String),!0),this._sources=u.fromArray(n,!0),this.sourceRoot=i,this.sourcesContent=a,this._mappings=l,this.file=c}function i(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}function a(e){var t=e;"string"==typeof e&&(t=JSON.parse(e.replace(/^\)\]\}'/,"")));var r=s.getArg(t,"version"),o=s.getArg(t,"sections");if(r!=this._version)throw new Error("Unsupported version: "+r);this._sources=new u,this._names=new u;var i={line:-1,column:0};this._sections=o.map(function(e){if(e.url)throw new Error("Support for url field in sections not implemented.");var t=s.getArg(e,"offset"),r=s.getArg(t,"line"),o=s.getArg(t,"column");if(r<i.line||r===i.line&&o<i.column)throw new Error("Section offsets must be ordered and non-overlapping.");return i=t,{generatedOffset:{generatedLine:r+1,generatedColumn:o+1},consumer:new n(s.getArg(e,"map"))}})}var s=e("./util"),l=e("./binary-search"),u=e("./array-set").ArraySet,c=e("./base64-vlq"),p=e("./quick-sort").quickSort;n.fromSourceMap=function(e){return o.fromSourceMap(e)},n.prototype._version=3,n.prototype.__generatedMappings=null,Object.defineProperty(n.prototype,"_generatedMappings",{get:function(){return this.__generatedMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__generatedMappings}}),n.prototype.__originalMappings=null,Object.defineProperty(n.prototype,"_originalMappings",{get:function(){return this.__originalMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__originalMappings}}),n.prototype._charIsMappingSeparator=function(e,t){var r=e.charAt(t);return";"===r||","===r},n.prototype._parseMappings=function(e,t){throw new Error("Subclasses must implement _parseMappings")},n.GENERATED_ORDER=1,n.ORIGINAL_ORDER=2,n.GREATEST_LOWER_BOUND=1,n.LEAST_UPPER_BOUND=2,n.prototype.eachMapping=function(e,t,r){var o,i=t||null,a=r||n.GENERATED_ORDER;switch(a){case n.GENERATED_ORDER:o=this._generatedMappings;break;case n.ORIGINAL_ORDER:o=this._originalMappings;break;default:throw new Error("Unknown order of iteration.")}var l=this.sourceRoot;o.map(function(e){var t=null===e.source?null:this._sources.at(e.source);return null!=t&&null!=l&&(t=s.join(l,t)),{source:t,generatedLine:e.generatedLine,generatedColumn:e.generatedColumn,originalLine:e.originalLine,originalColumn:e.originalColumn,name:null===e.name?null:this._names.at(e.name)}},this).forEach(e,i)},n.prototype.allGeneratedPositionsFor=function(e){var t=s.getArg(e,"line"),r={source:s.getArg(e,"source"),originalLine:t,originalColumn:s.getArg(e,"column",0)};if(null!=this.sourceRoot&&(r.source=s.relative(this.sourceRoot,r.source)),!this._sources.has(r.source))return[];r.source=this._sources.indexOf(r.source);var n=[],o=this._findMapping(r,this._originalMappings,"originalLine","originalColumn",s.compareByOriginalPositions,l.LEAST_UPPER_BOUND);if(o>=0){var i=this._originalMappings[o];if(void 0===e.column)for(var a=i.originalLine;i&&i.originalLine===a;)n.push({line:s.getArg(i,"generatedLine",null),column:s.getArg(i,"generatedColumn",null),lastColumn:s.getArg(i,"lastGeneratedColumn",null)}),i=this._originalMappings[++o];else for(var u=i.originalColumn;i&&i.originalLine===t&&i.originalColumn==u;)n.push({line:s.getArg(i,"generatedLine",null),column:s.getArg(i,"generatedColumn",null),lastColumn:s.getArg(i,"lastGeneratedColumn",null)}),i=this._originalMappings[++o]}return n},r.SourceMapConsumer=n,o.prototype=Object.create(n.prototype),o.prototype.consumer=n,o.fromSourceMap=function(e){var t=Object.create(o.prototype),r=t._names=u.fromArray(e._names.toArray(),!0),n=t._sources=u.fromArray(e._sources.toArray(),!0);t.sourceRoot=e._sourceRoot,t.sourcesContent=e._generateSourcesContent(t._sources.toArray(),t.sourceRoot),t.file=e._file;for(var a=e._mappings.toArray().slice(),l=t.__generatedMappings=[],c=t.__originalMappings=[],f=0,h=a.length;f<h;f++){var d=a[f],m=new i;m.generatedLine=d.generatedLine,m.generatedColumn=d.generatedColumn,d.source&&(m.source=n.indexOf(d.source),m.originalLine=d.originalLine,m.originalColumn=d.originalColumn,d.name&&(m.name=r.indexOf(d.name)),c.push(m)),l.push(m)}return p(t.__originalMappings,s.compareByOriginalPositions),t},o.prototype._version=3,Object.defineProperty(o.prototype,"sources",{get:function(){return this._sources.toArray().map(function(e){return null!=this.sourceRoot?s.join(this.sourceRoot,e):e},this)}}),o.prototype._parseMappings=function(e,t){for(var r,n,o,a,l,u=1,f=0,h=0,d=0,m=0,g=0,v=e.length,y=0,b={},k={},w=[],S=[];y<v;)if(";"===e.charAt(y))u++,y++,f=0;else if(","===e.charAt(y))y++;else{for(r=new i,r.generatedLine=u,a=y;a<v&&!this._charIsMappingSeparator(e,a);a++);if(n=e.slice(y,a),o=b[n])y+=n.length;else{for(o=[];y<a;)c.decode(e,y,k),l=k.value,y=k.rest,o.push(l);if(2===o.length)throw new Error("Found a source, but no line and column");if(3===o.length)throw new Error("Found a source and line, but no column");b[n]=o}r.generatedColumn=f+o[0],f=r.generatedColumn,o.length>1&&(r.source=m+o[1],m+=o[1],r.originalLine=h+o[2],h=r.originalLine,r.originalLine+=1,r.originalColumn=d+o[3],d=r.originalColumn,o.length>4&&(r.name=g+o[4],g+=o[4])),S.push(r),"number"==typeof r.originalLine&&w.push(r)}p(S,s.compareByGeneratedPositionsDeflated),this.__generatedMappings=S,p(w,s.compareByOriginalPositions),this.__originalMappings=w},o.prototype._findMapping=function(e,t,r,n,o,i){if(e[r]<=0)throw new TypeError("Line must be greater than or equal to 1, got "+e[r]);if(e[n]<0)throw new TypeError("Column must be greater than or equal to 0, got "+e[n]);return l.search(e,t,o,i)},o.prototype.computeColumnSpans=function(){for(var e=0;e<this._generatedMappings.length;++e){var t=this._generatedMappings[e];if(e+1<this._generatedMappings.length){var r=this._generatedMappings[e+1];if(t.generatedLine===r.generatedLine){t.lastGeneratedColumn=r.generatedColumn-1;continue}}t.lastGeneratedColumn=1/0}},o.prototype.originalPositionFor=function(e){var t={generatedLine:s.getArg(e,"line"),generatedColumn:s.getArg(e,"column")},r=this._findMapping(t,this._generatedMappings,"generatedLine","generatedColumn",s.compareByGeneratedPositionsDeflated,s.getArg(e,"bias",n.GREATEST_LOWER_BOUND));if(r>=0){var o=this._generatedMappings[r];if(o.generatedLine===t.generatedLine){var i=s.getArg(o,"source",null);null!==i&&(i=this._sources.at(i),null!=this.sourceRoot&&(i=s.join(this.sourceRoot,i)));var a=s.getArg(o,"name",null);return null!==a&&(a=this._names.at(a)),{source:i,line:s.getArg(o,"originalLine",null),column:s.getArg(o,"originalColumn",null),name:a}}}return{source:null,line:null,column:null,name:null}},o.prototype.hasContentsOfAllSources=function(){return!!this.sourcesContent&&(this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(e){return null==e}))},o.prototype.sourceContentFor=function(e,t){if(!this.sourcesContent)return null;if(null!=this.sourceRoot&&(e=s.relative(this.sourceRoot,e)),this._sources.has(e))return this.sourcesContent[this._sources.indexOf(e)];var r;if(null!=this.sourceRoot&&(r=s.urlParse(this.sourceRoot))){var n=e.replace(/^file:\/\//,"");if("file"==r.scheme&&this._sources.has(n))return this.sourcesContent[this._sources.indexOf(n)];if((!r.path||"/"==r.path)&&this._sources.has("/"+e))return this.sourcesContent[this._sources.indexOf("/"+e)]}if(t)return null;throw new Error('"'+e+'" is not in the SourceMap.')},o.prototype.generatedPositionFor=function(e){var t=s.getArg(e,"source");if(null!=this.sourceRoot&&(t=s.relative(this.sourceRoot,t)),!this._sources.has(t))return{line:null,column:null,lastColumn:null};t=this._sources.indexOf(t);var r={source:t,originalLine:s.getArg(e,"line"),originalColumn:s.getArg(e,"column")},o=this._findMapping(r,this._originalMappings,"originalLine","originalColumn",s.compareByOriginalPositions,s.getArg(e,"bias",n.GREATEST_LOWER_BOUND));if(o>=0){var i=this._originalMappings[o];if(i.source===r.source)return{line:s.getArg(i,"generatedLine",null),column:s.getArg(i,"generatedColumn",null),lastColumn:s.getArg(i,"lastGeneratedColumn",null)}}return{line:null,column:null,lastColumn:null}},r.BasicSourceMapConsumer=o,a.prototype=Object.create(n.prototype),a.prototype.constructor=n,a.prototype._version=3,Object.defineProperty(a.prototype,"sources",{get:function(){for(var e=[],t=0;t<this._sections.length;t++)for(var r=0;r<this._sections[t].consumer.sources.length;r++)e.push(this._sections[t].consumer.sources[r]);return e}}),a.prototype.originalPositionFor=function(e){var t={generatedLine:s.getArg(e,"line"),generatedColumn:s.getArg(e,"column")},r=l.search(t,this._sections,function(e,t){var r=e.generatedLine-t.generatedOffset.generatedLine;return r?r:e.generatedColumn-t.generatedOffset.generatedColumn}),n=this._sections[r];return n?n.consumer.originalPositionFor({line:t.generatedLine-(n.generatedOffset.generatedLine-1),column:t.generatedColumn-(n.generatedOffset.generatedLine===t.generatedLine?n.generatedOffset.generatedColumn-1:0),bias:e.bias}):{source:null,line:null,column:null,name:null}},a.prototype.hasContentsOfAllSources=function(){return this._sections.every(function(e){return e.consumer.hasContentsOfAllSources()})},a.prototype.sourceContentFor=function(e,t){for(var r=0;r<this._sections.length;r++){var n=this._sections[r],o=n.consumer.sourceContentFor(e,!0);if(o)return o}if(t)return null;throw new Error('"'+e+'" is not in the SourceMap.')},a.prototype.generatedPositionFor=function(e){for(var t=0;t<this._sections.length;t++){var r=this._sections[t];if(r.consumer.sources.indexOf(s.getArg(e,"source"))!==-1){var n=r.consumer.generatedPositionFor(e);if(n){var o={line:n.line+(r.generatedOffset.generatedLine-1),column:n.column+(r.generatedOffset.generatedLine===n.line?r.generatedOffset.generatedColumn-1:0)};return o}}}return{line:null,column:null}},a.prototype._parseMappings=function(e,t){this.__generatedMappings=[],this.__originalMappings=[];for(var r=0;r<this._sections.length;r++)for(var n=this._sections[r],o=n.consumer._generatedMappings,i=0;i<o.length;i++){var a=o[i],l=n.consumer._sources.at(a.source);null!==n.consumer.sourceRoot&&(l=s.join(n.consumer.sourceRoot,l)),this._sources.add(l),l=this._sources.indexOf(l);var u=n.consumer._names.at(a.name);this._names.add(u),u=this._names.indexOf(u);var c={source:l,generatedLine:a.generatedLine+(n.generatedOffset.generatedLine-1),generatedColumn:a.generatedColumn+(n.generatedOffset.generatedLine===a.generatedLine?n.generatedOffset.generatedColumn-1:0),originalLine:a.originalLine,originalColumn:a.originalColumn,name:u};this.__generatedMappings.push(c),"number"==typeof c.originalLine&&this.__originalMappings.push(c)}p(this.__generatedMappings,s.compareByGeneratedPositionsDeflated),p(this.__originalMappings,s.compareByOriginalPositions)},r.IndexedSourceMapConsumer=a},{"./array-set":46,"./base64-vlq":47,"./binary-search":49,"./quick-sort":51,"./util":55}],53:[function(e,t,r){function n(e){e||(e={}),this._file=i.getArg(e,"file",null),this._sourceRoot=i.getArg(e,"sourceRoot",null),this._skipValidation=i.getArg(e,"skipValidation",!1),this._sources=new a,this._names=new a,this._mappings=new s,this._sourcesContents=null}var o=e("./base64-vlq"),i=e("./util"),a=e("./array-set").ArraySet,s=e("./mapping-list").MappingList;n.prototype._version=3,n.fromSourceMap=function(e){var t=e.sourceRoot,r=new n({file:e.file,sourceRoot:t});return e.eachMapping(function(e){var n={generated:{line:e.generatedLine,column:e.generatedColumn}};null!=e.source&&(n.source=e.source,null!=t&&(n.source=i.relative(t,n.source)),n.original={line:e.originalLine,column:e.originalColumn},null!=e.name&&(n.name=e.name)),r.addMapping(n)}),e.sources.forEach(function(t){var n=e.sourceContentFor(t);null!=n&&r.setSourceContent(t,n)}),r},n.prototype.addMapping=function(e){var t=i.getArg(e,"generated"),r=i.getArg(e,"original",null),n=i.getArg(e,"source",null),o=i.getArg(e,"name",null);this._skipValidation||this._validateMapping(t,r,n,o),null!=n&&(n=String(n),this._sources.has(n)||this._sources.add(n)),null!=o&&(o=String(o),this._names.has(o)||this._names.add(o)),this._mappings.add({generatedLine:t.line,generatedColumn:t.column,originalLine:null!=r&&r.line,originalColumn:null!=r&&r.column,source:n,name:o})},n.prototype.setSourceContent=function(e,t){var r=e;null!=this._sourceRoot&&(r=i.relative(this._sourceRoot,r)),null!=t?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[i.toSetString(r)]=t):this._sourcesContents&&(delete this._sourcesContents[i.toSetString(r)],0===Object.keys(this._sourcesContents).length&&(this._sourcesContents=null))},n.prototype.applySourceMap=function(e,t,r){var n=t;if(null==t){if(null==e.file)throw new Error('SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map\'s "file" property. Both were omitted.');n=e.file}var o=this._sourceRoot;null!=o&&(n=i.relative(o,n));var s=new a,l=new a;this._mappings.unsortedForEach(function(t){if(t.source===n&&null!=t.originalLine){var a=e.originalPositionFor({line:t.originalLine,column:t.originalColumn});null!=a.source&&(t.source=a.source,null!=r&&(t.source=i.join(r,t.source)),null!=o&&(t.source=i.relative(o,t.source)),t.originalLine=a.line,t.originalColumn=a.column,null!=a.name&&(t.name=a.name))}var u=t.source;null==u||s.has(u)||s.add(u);var c=t.name;null==c||l.has(c)||l.add(c)},this),this._sources=s,this._names=l,e.sources.forEach(function(t){var n=e.sourceContentFor(t);null!=n&&(null!=r&&(t=i.join(r,t)),null!=o&&(t=i.relative(o,t)),this.setSourceContent(t,n))},this)},n.prototype._validateMapping=function(e,t,r,n){if((!(e&&"line"in e&&"column"in e&&e.line>0&&e.column>=0)||t||r||n)&&!(e&&"line"in e&&"column"in e&&t&&"line"in t&&"column"in t&&e.line>0&&e.column>=0&&t.line>0&&t.column>=0&&r))throw new Error("Invalid mapping: "+JSON.stringify({generated:e,source:r,original:t,name:n}))},n.prototype._serializeMappings=function(){for(var e,t,r,n,a=0,s=1,l=0,u=0,c=0,p=0,f="",h=this._mappings.toArray(),d=0,m=h.length;d<m;d++){if(t=h[d],e="",t.generatedLine!==s)for(a=0;t.generatedLine!==s;)e+=";",s++;else if(d>0){if(!i.compareByGeneratedPositionsInflated(t,h[d-1]))continue;e+=","}e+=o.encode(t.generatedColumn-a),a=t.generatedColumn,null!=t.source&&(n=this._sources.indexOf(t.source),e+=o.encode(n-p),p=n,e+=o.encode(t.originalLine-1-u),u=t.originalLine-1,e+=o.encode(t.originalColumn-l),l=t.originalColumn,null!=t.name&&(r=this._names.indexOf(t.name),e+=o.encode(r-c),c=r)),f+=e}return f},n.prototype._generateSourcesContent=function(e,t){return e.map(function(e){if(!this._sourcesContents)return null;null!=t&&(e=i.relative(t,e));var r=i.toSetString(e);return Object.prototype.hasOwnProperty.call(this._sourcesContents,r)?this._sourcesContents[r]:null},this)},n.prototype.toJSON=function(){var e={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return null!=this._file&&(e.file=this._file),null!=this._sourceRoot&&(e.sourceRoot=this._sourceRoot),this._sourcesContents&&(e.sourcesContent=this._generateSourcesContent(e.sources,e.sourceRoot)),e},n.prototype.toString=function(){return JSON.stringify(this.toJSON())},r.SourceMapGenerator=n},{"./array-set":46,"./base64-vlq":47,"./mapping-list":50,"./util":55}],54:[function(e,t,r){function n(e,t,r,n,o){this.children=[],this.sourceContents={},this.line=null==e?null:e,this.column=null==t?null:t,this.source=null==r?null:r,this.name=null==o?null:o,this[l]=!0,null!=n&&this.add(n)}var o=e("./source-map-generator").SourceMapGenerator,i=e("./util"),a=/(\r?\n)/,s=10,l="$$$isSourceNode$$$";n.fromStringWithSourceMap=function(e,t,r){function o(e,t){if(null===e||void 0===e.source)s.add(t);else{var o=r?i.join(r,e.source):e.source;s.add(new n(e.originalLine,e.originalColumn,o,t,e.name))}}var s=new n,l=e.split(a),u=function(){var e=l.shift(),t=l.shift()||"";return e+t},c=1,p=0,f=null;return t.eachMapping(function(e){if(null!==f){if(!(c<e.generatedLine)){var t=l[0],r=t.substr(0,e.generatedColumn-p);return l[0]=t.substr(e.generatedColumn-p),p=e.generatedColumn,o(f,r),void(f=e)}o(f,u()),c++,p=0}for(;c<e.generatedLine;)s.add(u()),c++;if(p<e.generatedColumn){var t=l[0];s.add(t.substr(0,e.generatedColumn)),l[0]=t.substr(e.generatedColumn),p=e.generatedColumn}f=e},this),l.length>0&&(f&&o(f,u()),s.add(l.join(""))),t.sources.forEach(function(e){var n=t.sourceContentFor(e);null!=n&&(null!=r&&(e=i.join(r,e)),s.setSourceContent(e,n))}),s},n.prototype.add=function(e){if(Array.isArray(e))e.forEach(function(e){this.add(e)},this);else{if(!e[l]&&"string"!=typeof e)throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+e);e&&this.children.push(e)}return this},n.prototype.prepend=function(e){if(Array.isArray(e))for(var t=e.length-1;t>=0;t--)this.prepend(e[t]);else{if(!e[l]&&"string"!=typeof e)throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+e);this.children.unshift(e)}return this},n.prototype.walk=function(e){for(var t,r=0,n=this.children.length;r<n;r++)t=this.children[r],t[l]?t.walk(e):""!==t&&e(t,{source:this.source,line:this.line,column:this.column,name:this.name})},n.prototype.join=function(e){var t,r,n=this.children.length;if(n>0){for(t=[],r=0;r<n-1;r++)t.push(this.children[r]),t.push(e);t.push(this.children[r]),this.children=t}return this},n.prototype.replaceRight=function(e,t){var r=this.children[this.children.length-1];return r[l]?r.replaceRight(e,t):"string"==typeof r?this.children[this.children.length-1]=r.replace(e,t):this.children.push("".replace(e,t)),this},n.prototype.setSourceContent=function(e,t){this.sourceContents[i.toSetString(e)]=t},n.prototype.walkSourceContents=function(e){for(var t=0,r=this.children.length;t<r;t++)this.children[t][l]&&this.children[t].walkSourceContents(e);for(var n=Object.keys(this.sourceContents),t=0,r=n.length;t<r;t++)e(i.fromSetString(n[t]),this.sourceContents[n[t]])},n.prototype.toString=function(){var e="";return this.walk(function(t){e+=t}),e},n.prototype.toStringWithSourceMap=function(e){var t={code:"",line:1,column:0},r=new o(e),n=!1,i=null,a=null,l=null,u=null;return this.walk(function(e,o){t.code+=e,null!==o.source&&null!==o.line&&null!==o.column?(i===o.source&&a===o.line&&l===o.column&&u===o.name||r.addMapping({source:o.source,original:{line:o.line,column:o.column},generated:{line:t.line,column:t.column},name:o.name}),i=o.source,a=o.line,l=o.column,u=o.name,n=!0):n&&(r.addMapping({generated:{line:t.line,column:t.column}}),i=null,n=!1);for(var c=0,p=e.length;c<p;c++)e.charCodeAt(c)===s?(t.line++,t.column=0,c+1===p?(i=null,n=!1):n&&r.addMapping({source:o.source,original:{line:o.line,column:o.column},generated:{line:t.line,column:t.column},name:o.name})):t.column++}),this.walkSourceContents(function(e,t){r.setSourceContent(e,t)}),{code:t.code,map:r}},r.SourceNode=n},{"./source-map-generator":53,"./util":55}],55:[function(e,t,r){function n(e,t,r){if(t in e)return e[t];if(3===arguments.length)return r;throw new Error('"'+t+'" is a required argument.')}function o(e){var t=e.match(v);return t?{scheme:t[1],auth:t[2],host:t[3],port:t[4],path:t[5]}:null}function i(e){var t="";return e.scheme&&(t+=e.scheme+":"),t+="//",e.auth&&(t+=e.auth+"@"),e.host&&(t+=e.host),e.port&&(t+=":"+e.port),e.path&&(t+=e.path),t}function a(e){var t=e,n=o(e);if(n){if(!n.path)return e;t=n.path}for(var a,s=r.isAbsolute(t),l=t.split(/\/+/),u=0,c=l.length-1;c>=0;c--)a=l[c],"."===a?l.splice(c,1):".."===a?u++:u>0&&(""===a?(l.splice(c+1,u),u=0):(l.splice(c,2),u--));return t=l.join("/"),""===t&&(t=s?"/":"."),n?(n.path=t,i(n)):t}function s(e,t){""===e&&(e="."),""===t&&(t=".");var r=o(t),n=o(e);if(n&&(e=n.path||"/"),r&&!r.scheme)return n&&(r.scheme=n.scheme),i(r);if(r||t.match(y))return t;if(n&&!n.host&&!n.path)return n.host=t,i(n);var s="/"===t.charAt(0)?t:a(e.replace(/\/+$/,"")+"/"+t);return n?(n.path=s,i(n)):s}function l(e,t){""===e&&(e="."),e=e.replace(/\/$/,"");for(var r=0;0!==t.indexOf(e+"/");){var n=e.lastIndexOf("/");if(n<0)return t;if(e=e.slice(0,n),e.match(/^([^\/]+:\/)?\/*$/))return t;++r}return Array(r+1).join("../")+t.substr(e.length+1)}function u(e){return e}function c(e){return f(e)?"$"+e:e}function p(e){return f(e)?e.slice(1):e}function f(e){if(!e)return!1;var t=e.length;if(t<9)return!1;if(95!==e.charCodeAt(t-1)||95!==e.charCodeAt(t-2)||111!==e.charCodeAt(t-3)||116!==e.charCodeAt(t-4)||111!==e.charCodeAt(t-5)||114!==e.charCodeAt(t-6)||112!==e.charCodeAt(t-7)||95!==e.charCodeAt(t-8)||95!==e.charCodeAt(t-9))return!1;for(var r=t-10;r>=0;r--)if(36!==e.charCodeAt(r))return!1;return!0}function h(e,t,r){var n=e.source-t.source;return 0!==n?n:(n=e.originalLine-t.originalLine,0!==n?n:(n=e.originalColumn-t.originalColumn,0!==n||r?n:(n=e.generatedColumn-t.generatedColumn,0!==n?n:(n=e.generatedLine-t.generatedLine,0!==n?n:e.name-t.name))))}function d(e,t,r){var n=e.generatedLine-t.generatedLine;return 0!==n?n:(n=e.generatedColumn-t.generatedColumn,0!==n||r?n:(n=e.source-t.source,0!==n?n:(n=e.originalLine-t.originalLine,0!==n?n:(n=e.originalColumn-t.originalColumn,0!==n?n:e.name-t.name))))}function m(e,t){return e===t?0:e>t?1:-1}function g(e,t){var r=e.generatedLine-t.generatedLine;return 0!==r?r:(r=e.generatedColumn-t.generatedColumn,0!==r?r:(r=m(e.source,t.source),0!==r?r:(r=e.originalLine-t.originalLine,0!==r?r:(r=e.originalColumn-t.originalColumn,0!==r?r:m(e.name,t.name)))))}r.getArg=n;var v=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.]*)(?::(\d+))?(\S*)$/,y=/^data:.+\,.+$/;r.urlParse=o,r.urlGenerate=i,r.normalize=a,r.join=s,r.isAbsolute=function(e){return"/"===e.charAt(0)||!!e.match(v)},r.relative=l;var b=function(){var e=Object.create(null);return!("__proto__"in e)}();r.toSetString=b?u:c,r.fromSetString=b?u:p,r.compareByOriginalPositions=h,r.compareByGeneratedPositionsDeflated=d,r.compareByGeneratedPositionsInflated=g},{}],56:[function(e,t,r){r.SourceMapGenerator=e("./lib/source-map-generator").SourceMapGenerator,r.SourceMapConsumer=e("./lib/source-map-consumer").SourceMapConsumer,r.SourceNode=e("./lib/source-node").SourceNode},{"./lib/source-map-consumer":52,"./lib/source-map-generator":53,"./lib/source-node":54}],57:[function(e,t,r){t.exports={name:"csso",version:"2.3.0",description:"CSSO (CSS Optimizer) is a CSS minifier with structural optimisations",keywords:["css","minifier","minify","compress","optimisation"],homepage:"https://github.com/css/csso",author:"Sergey Kryzhanovsky <skryzhanovsky@ya.ru> (https://github.com/afelix)",maintainers:[{name:"Roman Dvornov",email:"rdvornov@gmail.com","github-username":"lahmatiy"}],license:"MIT",repository:"css/csso",bugs:{url:"https://github.com/css/csso/issues"},bin:{csso:"./bin/csso"},main:"./lib/index",eslintConfig:{env:{node:!0,mocha:!0,es6:!0},rules:{"no-duplicate-case":2,"no-undef":2,"no-unused-vars":[2,{vars:"all",args:"after-used"}]}},scripts:{test:"mocha --reporter dot",codestyle:"jscs lib && eslint lib test","codestyle-and-test":"npm run codestyle && npm test",hydrogen:"node --trace-hydrogen --trace-phase=Z --trace-deopt --code-comments --hydrogen-track-positions --redirect-code-traces --redirect-code-traces-to=code.asm --trace_hydrogen_file=code.cfg --print-opt-code bin/csso --stat -o /dev/null",coverage:"istanbul cover _mocha -- -R dot",coveralls:"istanbul cover _mocha --report lcovonly -- -R dot && cat ./coverage/lcov.info | coveralls",travis:"npm run codestyle-and-test && npm run coveralls",browserify:"browserify --standalone csso lib/index.js | uglifyjs --compress --mangle -o dist/csso-browser.js","gh-pages":'git clone -b gh-pages https://github.com/css/csso.git .gh-pages && npm run browserify && cp dist/csso-browser.js .gh-pages/ && cd .gh-pages && git commit -am "update" && git push && cd .. && rm -rf .gh-pages',prepublish:"npm run browserify"},dependencies:{clap:"^1.0.9","source-map":"^0.5.3"},devDependencies:{browserify:"^13.0.0",coveralls:"^2.11.6",eslint:"^2.2.0",istanbul:"^0.4.2",jscs:"~2.10.0",mocha:"~2.4.2","uglify-js":"^2.6.1"},engines:{node:">=0.10.0"},files:["bin","dist/csso-browser.js","lib","HISTORY.md","LICENSE","README.md"]}},{}]},{},[36])(36)});
15
+ !function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var t;t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,t.csso=e()}}(function(){return function e(t,n,r){function o(a,s){if(!n[a]){if(!t[a]){var l="function"==typeof require&&require;if(!s&&l)return l(a,!0);if(i)return i(a,!0);var c=new Error("Cannot find module '"+a+"'");throw c.code="MODULE_NOT_FOUND",c}var u=n[a]={exports:{}};t[a][0].call(u.exports,function(e){var n=t[a][1][e];return o(n||e)},u,u.exports,e,t,n,r)}return n[a].exports}for(var i="function"==typeof require&&require,a=0;a<r.length;a++)o(r[a]);return o}({1:[function(e,t,n){t.exports=function(e,t,n){if(e.block&&(null!==this.stylesheet&&(this.stylesheet.firstAtrulesAllowed=!1),e.block.children.isEmpty()))return void n.remove(t);switch(e.name){case"charset":if(!e.expression||e.expression.children.isEmpty())return void n.remove(t);if(t.prev)return void n.remove(t);break;case"import":if(null===this.stylesheet||!this.stylesheet.firstAtrulesAllowed)return void n.remove(t);n.prevUntil(t.prev,function(e){if("Atrule"!==e.type||"import"!==e.name&&"charset"!==e.name)return this.root.firstAtrulesAllowed=!1,n.remove(t),!0},this)}}},{}],2:[function(e,t,n){t.exports=function(e,t,n){n.remove(t)}},{}],3:[function(e,t,n){t.exports=function(e,t,n){e.value.children&&e.value.children.isEmpty()&&n.remove(t)}},{}],4:[function(e,t,n){t.exports=function(e,t,n){"+"!==e.value&&"-"!==e.value&&(null!==t.prev&&"WhiteSpace"===t.prev.data.type&&n.remove(t.prev),null!==t.next&&"WhiteSpace"===t.next.data.type&&n.remove(t.next))}},{}],5:[function(e,t,n){function r(e,t){return e.children.each(function(n,a,s){var l=!1;i(n,function(n){if(null===this.selector||this.selector===e)switch(n.type){case"SelectorList":null!==this.function&&"not"===this.function.name.toLowerCase()||r(n,t)&&(l=!0);break;case"ClassSelector":null===t.whitelist||null===t.whitelist.classes||o.call(t.whitelist.classes,n.name)||(l=!0),null!==t.blacklist&&null!==t.blacklist.classes&&o.call(t.blacklist.classes,n.name)&&(l=!0);break;case"IdSelector":null===t.whitelist||null===t.whitelist.ids||o.call(t.whitelist.ids,n.name)||(l=!0),null!==t.blacklist&&null!==t.blacklist.ids&&o.call(t.blacklist.ids,n.name)&&(l=!0);break;case"TypeSelector":"*"!==n.name.charAt(n.name.length-1)&&(null===t.whitelist||null===t.whitelist.tags||o.call(t.whitelist.tags,n.name.toLowerCase())||(l=!0),null!==t.blacklist&&null!==t.blacklist.tags&&o.call(t.blacklist.tags,n.name.toLowerCase())&&(l=!0))}}),l&&s.remove(a)}),e.children.isEmpty()}var o=Object.prototype.hasOwnProperty,i=e("css-tree").walk;t.exports=function(e,t,n,o){!o||null===o.whitelist&&null===o.blacklist||r(e.selector,o),(e.selector.children.isEmpty()||e.block.children.isEmpty())&&n.remove(t)}},{"css-tree":42}],6:[function(e,t,n){t.exports=function(e,t,n){if("*"===t.data.name){var r=t.next&&t.next.data.type;"IdSelector"!==r&&"ClassSelector"!==r&&"AttributeSelector"!==r&&"PseudoClassSelector"!==r&&"PseudoElementSelector"!==r||n.remove(t)}}},{}],7:[function(e,t,n){t.exports=function(e,t,n){return null===t.next||null===t.prev?void n.remove(t):"WhiteSpace"===t.prev.data.type?void n.remove(t):null!==this.stylesheet&&this.stylesheet.children===n||null!==this.block&&this.block.children===n?void n.remove(t):void 0}},{}],8:[function(e,t,n){var r=e("css-tree").walkUp,o={Atrule:e("./Atrule"),Rule:e("./Rule"),Declaration:e("./Declaration"),TypeSelector:e("./TypeSelector"),Comment:e("./Comment"),Operator:e("./Operator"),WhiteSpace:e("./WhiteSpace")};t.exports=function(e,t){r(e,function(e,n,r){o.hasOwnProperty(e.type)&&o[e.type].call(this,e,n,r,t)})}},{"./Atrule":1,"./Comment":2,"./Declaration":3,"./Operator":4,"./Rule":5,"./TypeSelector":6,"./WhiteSpace":7,"css-tree":42}],9:[function(e,t,n){function r(e,t){var n,r=new l,o=!1;return e.nextUntil(e.head,function(e,i,a){if("Comment"===e.type)return t&&"!"===e.value.charAt(0)?!(!o&&!n)||(a.remove(i),void(n=e)):void a.remove(i);"WhiteSpace"!==e.type&&(o=!0),r.insert(a.remove(i))}),{comment:n,stylesheet:{type:"StyleSheet",loc:null,children:r}}}function o(e,t,n,r,o){o("Compress block #"+r,null,!0);var i=1;return"StyleSheet"===e.type&&(e.firstAtrulesAllowed=t,e.id=i++),f(e,function(e){"Atrule"===e.type&&null!==e.block&&(e.block.id=i++)}),o("init",e),p(e,n),o("clean",e),h(e,n),o("replace",e),e}function i(e){var t="comments"in e?e.comments:"exclamation";return"boolean"==typeof t?t=!!t&&"exclamation":"exclamation"!==t&&"first-exclamation"!==t&&(t=!1),t}function a(e){return"restructure"in e?e.restructure:!("restructuring"in e)||e.restructuring}function s(e){return(new l).appendData({type:"Rule",selector:{type:"SelectorList",children:(new l).appendData({type:"Selector",children:(new l).appendData({type:"Identifier",name:"x"})})},block:e})}var l=e("css-tree").List,c=e("css-tree").clone,u=e("./usage"),p=e("./clean"),h=e("./replace"),d=e("./restructure"),f=e("css-tree").walkRules;t.exports=function(e,t){e=e||{type:"StyleSheet",loc:null,children:new l},t=t||{};var n,p,h,f="function"==typeof t.logger?t.logger:function(){},m=i(t),g=a(t),b=!0,y=!1,v=new l,k=1;t.clone&&(e=c(e)),"StyleSheet"===e.type?(n=e.children,e.children=v):n=s(e),t.usage&&(y=u.buildIndex(t.usage));do{if(p=r(n,Boolean(m)),o(p.stylesheet,b,y,k++,f),g&&d(p.stylesheet,y,f),h=p.stylesheet.children,p.comment&&(v.isEmpty()||v.insert(l.createItem({type:"Raw",value:"\n"})),v.insert(l.createItem(p.comment)),h.isEmpty()||v.insert(l.createItem({type:"Raw",value:"\n"}))),b&&!h.isEmpty()){var x=h.last();("Atrule"!==x.type||"import"!==x.name&&"charset"!==x.name)&&(b=!1)}"exclamation"!==m&&(m=!1),v.appendList(h)}while(!n.isEmpty());return{ast:e}}},{"./clean":8,"./replace":20,"./restructure":32,"./usage":38,"css-tree":42}],10:[function(e,t,n){function r(e,t,n,r){return t.debug&&console.error("## "+e+" done in %d ms\n",Date.now()-n),r}function o(e){var t;return function(n,r){var o=n;if(r&&(o="["+((Date.now()-t)/1e3).toFixed(3)+"s] "+o),e>1&&r){var i=f(r,!0);2===e&&i.length>256&&(i=i.substr(0,256)+"..."),o+="\n "+i+"\n"}console.error(o),t=Date.now()}}function i(e){var t={};for(var n in e)t[n]=e[n];return t}function a(e){return e=i(e),"function"!=typeof e.logger&&e.debug&&(e.logger=o(e.debug)),e}function s(e,t,n){Array.isArray(n)||(n=[n]),n.forEach(function(n){n(e,t)})}function l(e,t,n){n=n||{};var o=n.filename||"<unknown>",i=r("parsing",n,Date.now(),h(t,{context:e,filename:o,positions:Boolean(n.sourceMap)}));n.beforeCompress&&r("beforeCompress",n,Date.now(),s(i,n,n.beforeCompress));var l=r("compress",n,Date.now(),d(i,a(n)));return n.afterCompress&&r("afterCompress",n,Date.now(),s(l,n,n.afterCompress)),n.sourceMap?r("translateWithSourceMap",n,Date.now(),function(){var e=m(l.ast);return e.map._file=o,e.map.setSourceContent(o,t),e}()):r("translate",n,Date.now(),{css:f(l.ast),map:null})}function c(e,t){return l("stylesheet",e,t)}function u(e,t){return l("declarationList",e,t)}var p=e("css-tree"),h=p.parse,d=e("./compress"),f=p.translate,m=p.translateWithSourceMap;t.exports={version:e("../package.json").version,minify:c,minifyBlock:u,compress:d,syntax:p}},{"../package.json":144,"./compress":9,"css-tree":42}],11:[function(e,t,n){var r=e("css-tree").keyword,o=e("./atrule/keyframes.js");t.exports=function(e){"keyframes"===r(e.name).name&&o(e)}},{"./atrule/keyframes.js":18,"css-tree":42}],12:[function(e,t,n){function r(e){if(""!==e&&"-"!==e)return e=e.replace(o,"a"),!i.test(e)}var o=/\\([0-9A-Fa-f]{1,6})(\r\n|[ \t\n\f\r])?|\\./g,i=/^(-?\d|--)|[\u0000-\u002c\u002e\u002f\u003A-\u0040\u005B-\u005E\u0060\u007B-\u009f]/;t.exports=function(e){var t=e.value;if(t&&"String"===t.type){var n=t.value.replace(/^(.)(.*)\1$/,"$2");r(n)&&(e.value={type:"Identifier",loc:t.loc,name:n})}}},{}],13:[function(e,t,n){var r=e("./Number.js").pack,o={px:!0,mm:!0,cm:!0,in:!0,pt:!0,pc:!0,em:!0,ex:!0,ch:!0,rem:!0,vh:!0,vw:!0,vmin:!0,vmax:!0,vm:!0};t.exports=function(e,t){var n=r(e.value,t);if(e.value=n,"0"===n&&null!==this.declaration&&null===this.atruleExpression){var i=e.unit.toLowerCase();if(!o.hasOwnProperty(i))return;if("flex"===this.declaration.property)return;if(this.function&&"calc"===this.function.name)return;t.data={type:"Number",loc:e.loc,value:n}}}},{"./Number.js":14}],14:[function(e,t,n){function r(e,t){var n=t&&null!==t.prev&&a.hasOwnProperty(t.prev.data.type)?i:o;return e=String(e).replace(n,"$1$2$3"),""!==e&&"-"!==e||(e="0"),e}var o=/^(?:\+|(-))?0*(\d*)(?:\.0*|(\.\d*?)0*)?$/,i=/^([\+\-])?0*(\d*)(?:\.0*|(\.\d*?)0*)?$/,a={Dimension:!0,HexColor:!0,Identifier:!0,Number:!0,Raw:!0,UnicodeRange:!0};t.exports=function(e,t){e.value=r(e.value,t)},t.exports.pack=r},{}],15:[function(e,t,n){t.exports=function(e){var t=e.value;t=t.replace(/\\(\r\n|\r|\n|\f)/g,""),e.value=t}},{}],16:[function(e,t,n){var r=new RegExp("^((\\\\[0-9a-f]{1,6}(\\r\\n|[ \\n\\r\\t\\f])?|\\\\[^\\n\\r\\f0-9a-fA-F])|[^\"'\\(\\)\\\\\\s\0\b\v-])*$","i");t.exports=function(e){var t=e.value;if("String"===t.type){var n=t.value[0],o=t.value.substr(1,t.value.length-2);o=o.replace(/\\\\/g,"/"),r.test(o)?e.value={type:"Raw",loc:e.value.loc,value:o}:e.value.value=-1===o.indexOf('"')?'"'+o+'"':n+o+n}}},{}],17:[function(e,t,n){var r=e("css-tree").property,o={font:e("./property/font.js"),"font-weight":e("./property/font-weight.js"),background:e("./property/background.js"),border:e("./property/border.js"),outline:e("./property/border.js")};t.exports=function(e){if(this.declaration){var t=r(this.declaration.property);o.hasOwnProperty(t.name)&&o[t.name](e)}}},{"./property/background.js":21,"./property/border.js":22,"./property/font-weight.js":23,"./property/font.js":24,"css-tree":42}],18:[function(e,t,n){t.exports=function(e){e.block.children.each(function(e){e.selector.children.each(function(e){e.children.each(function(e,t){"Percentage"===e.type&&"100"===e.value?t.data={type:"TypeSelector",loc:e.loc,name:"to"}:"TypeSelector"===e.type&&"from"===e.name&&(t.data={type:"Percentage",loc:e.loc,value:"0"})})})})}},{}],19:[function(e,t,n){function r(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}function o(e,t,n,o){var i,a,s;if(0===t)i=a=s=n;else{var l=n<.5?n*(1+t):n+t-n*t,c=2*n-l;i=r(c,l,e+1/3),a=r(c,l,e),s=r(c,l,e-1/3)}return[Math.round(255*i),Math.round(255*a),Math.round(255*s),o]}function i(e){return e=e.toString(16),1===e.length?"0"+e:e}function a(e,t,n){for(var r=e.head,o=[],i=!1;null!==r;){var a=r.data,s=a.type;switch(s){case"Number":case"Percentage":if(i)return;i=!0,o.push({type:s,value:Number(a.value)});break;case"Operator":if(","===a.value){if(!i)return;i=!1}else if(i||"+"!==a.value)return;break;default:return}r=r.next}if(o.length===t){if(4===o.length){if("Number"!==o[3].type)return;o[3].type="Alpha"}if(n){if(o[0].type!==o[1].type||o[0].type!==o[2].type)return}else{if("Number"!==o[0].type||"Percentage"!==o[1].type||"Percentage"!==o[2].type)return;o[0].type="Angle"}return o.map(function(e){var t=Math.max(0,e.value);switch(e.type){case"Number":t=Math.min(t,255);break;case"Percentage":if(t=Math.min(t,100)/100,!n)return t;t*=255;break;case"Angle":return(t%360+360)%360/360;case"Alpha":return Math.min(t,1)}return Math.round(t)})}}function s(e,t,n){var r,s=e.name;if("rgba"===s||"hsla"===s){if(!(r=a(e.children,4,"rgba"===s)))return;if("hsla"===s&&(r=o.apply(null,r),e.name="rgba"),0===r[3]){var l=this.function&&this.function.name;if(0===r[0]&&0===r[1]&&0===r[2]||!/^(?:to|from|color-stop)$|gradient$/i.test(l))return void(t.data={type:"Identifier",loc:e.loc,name:"transparent"})}if(1!==r[3])return void e.children.each(function(e,t,n){if("Operator"===e.type)return void(","!==e.value&&n.remove(t));t.data={type:"Number",loc:e.loc,value:u(r.shift(),null)}});s="rgb"}if("hsl"===s){if(!(r=r||a(e.children,3,!1)))return;r=o.apply(null,r),s="rgb"}if("rgb"===s){if(!(r=r||a(e.children,3,!0)))return;var p=t.next;p&&"WhiteSpace"!==p.data.type&&n.insert(n.createItem({type:"WhiteSpace",value:" "}),p),t.data={type:"HexColor",loc:e.loc,value:i(r[0])+i(r[1])+i(r[2])},c(t.data,t)}}function l(e,t){if(null!==this.declaration){var n=e.name.toLowerCase();if(p.hasOwnProperty(n)){var r=p[n];r.length+1<=n.length?t.data={type:"HexColor",loc:e.loc,value:r}:("grey"===n&&(n="gray"),e.name=n)}}}function c(e,t){var n=e.value.toLowerCase();6===n.length&&n[0]===n[1]&&n[2]===n[3]&&n[4]===n[5]&&(n=n[0]+n[2]+n[4]),h[n]?t.data={type:"Identifier",loc:e.loc,name:h[n]}:e.value=n}var u=e("./Number.js").pack,p={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",darkgrey:"a9a9a9",darkgreen:"006400",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",grey:"808080",green:"008000",greenyellow:"adff2f",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgrey:"d3d3d3",lightgreen:"90ee90",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",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:"639",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"},h={800000:"maroon",800080:"purple",808000:"olive",808080:"gray","00ffff":"cyan",f0ffff:"azure",f5f5dc:"beige",ffe4c4:"bisque","000000":"black","0000ff":"blue",a52a2a:"brown",ff7f50:"coral",ffd700:"gold","008000":"green","4b0082":"indigo",fffff0:"ivory",f0e68c:"khaki","00ff00":"lime",faf0e6:"linen","000080":"navy",ffa500:"orange",da70d6:"orchid",cd853f:"peru",ffc0cb:"pink",dda0dd:"plum",f00:"red",ff0000:"red",fa8072:"salmon",a0522d:"sienna",c0c0c0:"silver",fffafa:"snow",d2b48c:"tan","008080":"teal",ff6347:"tomato",ee82ee:"violet",f5deb3:"wheat",ffffff:"white",ffff00:"yellow"};t.exports={compressFunction:s,compressIdent:l,compressHex:c}},{"./Number.js":14}],20:[function(e,t,n){var r=e("css-tree").walkUp,o={Atrule:e("./Atrule"),AttributeSelector:e("./AttributeSelector"),Value:e("./Value"),Dimension:e("./Dimension"),Percentage:e("./Number"),Number:e("./Number"),String:e("./String"),Url:e("./Url"),HexColor:e("./color").compressHex,Identifier:e("./color").compressIdent,Function:e("./color").compressFunction};t.exports=function(e){r(e,function(e,t,n){o.hasOwnProperty(e.type)&&o[e.type].call(this,e,t,n)})}},{"./Atrule":11,"./AttributeSelector":12,"./Dimension":13,"./Number":14,"./String":15,"./Url":16,"./Value":17,"./color":19,"css-tree":42}],21:[function(e,t,n){var r=e("css-tree").List;t.exports=function(e){function t(){if(i.length)return i[i.length-1].type}function n(){"WhiteSpace"===t()&&i.pop(),i.length||i.unshift({type:"Number",loc:null,value:"0"},{type:"WhiteSpace",value:" "},{type:"Number",loc:null,value:"0"}),o.push.apply(o,i),i=[]}var o=[],i=[];e.children.each(function(e){if("Operator"===e.type&&","===e.value)return n(),void o.push(e);("Identifier"!==e.type||"transparent"!==e.name&&"none"!==e.name&&"repeat"!==e.name&&"scroll"!==e.name)&&("WhiteSpace"!==e.type||i.length&&"WhiteSpace"!==t())&&i.push(e)}),n(),e.children=(new r).fromArray(o)}},{"css-tree":42}],22:[function(e,t,n){function r(e,t){var n=t.prev,r=t.next;null!==r?"WhiteSpace"!==r.data.type||null!==n&&"WhiteSpace"!==n.data.type||e.remove(r):null!==n&&"WhiteSpace"===n.data.type&&e.remove(n),e.remove(t)}t.exports=function(e){e.children.each(function(e,t,n){"Identifier"===e.type&&"none"===e.name.toLowerCase()&&(n.head===n.tail?t.data={type:"Number",loc:e.loc,value:"0"}:r(n,t))})}},{}],23:[function(e,t,n){t.exports=function(e){var t=e.children.head.data;if("Identifier"===t.type)switch(t.name){case"normal":e.children.head.data={type:"Number",loc:t.loc,value:"400"};break;case"bold":e.children.head.data={type:"Number",loc:t.loc,value:"700"}}}},{}],24:[function(e,t,n){t.exports=function(e){var t=e.children;t.eachRight(function(e,t){if("Identifier"===e.type)if("bold"===e.name)t.data={type:"Number",loc:e.loc,value:"700"};else if("normal"===e.name){var n=t.prev;n&&"Operator"===n.data.type&&"/"===n.data.value&&this.remove(n),this.remove(t)}else if("medium"===e.name){var r=t.next;r&&"Operator"===r.data.type||this.remove(t)}}),t.each(function(e,t){"WhiteSpace"===e.type&&(t.prev&&t.next&&"WhiteSpace"!==t.next.data.type||this.remove(t))}),t.isEmpty()&&t.insert(t.createItem({type:"Identifier",name:"normal"}))}},{}],25:[function(e,t,n){function r(e,t,n){var r=e.selector.children,o=e.block.children;n.prevUntil(t.prev,function(a){if("Rule"!==a.type)return i.unsafeToSkipNode.call(r,a);var s=a.selector.children,l=a.block.children;if(e.pseudoSignature===a.pseudoSignature){if(i.isEqualSelectors(s,r))return l.appendList(o),n.remove(t),!0;if(i.isEqualDeclarations(o,l))return i.addSelectors(s,r),n.remove(t),!0}return i.hasSimilarSelectors(r,s)})}var o=e("css-tree").walkRules,i=e("./utils.js");t.exports=function(e){o(e,function(e,t,n){"Rule"===e.type&&r(e,t,n)})}},{"./utils.js":37,"css-tree":42}],26:[function(e,t,n){function r(e){return"Atrule"===e.type&&"media"===e.name}function o(e,t,n){if(r(e)){var o=t.prev&&t.prev.data;o&&r(o)&&e.expression&&o.expression&&e.expression.id===o.expression.id&&(o.block.children.appendList(e.block.children),n.remove(t))}}var i=e("css-tree").walkRulesRight;t.exports=function(e){i(e,function(e,t,n){"Atrule"===e.type&&o(e,t,n)})}},{"css-tree":42}],27:[function(e,t,n){function r(e,t,n){for(var r=e.selector.children;r.head!==r.tail;){var i=new o;i.insert(r.remove(r.head)),n.insert(n.createItem({type:"Rule",loc:e.loc,selector:{type:"SelectorList",loc:e.selector.loc,children:i},block:{type:"Block",loc:e.block.loc,children:e.block.children.copy()},pseudoSignature:e.pseudoSignature}),t)}}var o=e("css-tree").List,i=e("css-tree").walkRulesRight;t.exports=function(e){i(e,function(e,t,n){"Rule"===e.type&&r(e,t,n)})}},{"css-tree":42}],28:[function(e,t,n){function r(e){this.name=e,this.loc=null,this.iehack=void 0,this.sides={top:null,right:null,bottom:null,left:null}}function o(e,t,n,o){var i=e.block.children,a=e.selector.children.first().id;return e.block.children.eachRight(function(e,s){var l=e.property;if(b.hasOwnProperty(l)){var p,h,d=b[l];if(o&&a!==o||d in t&&(h=u,p=t[d]),!(p&&p.add(l,e)||(h=c,p=new r(d),p.add(l,e))))return void(o=null);t[d]=p,n.push({operation:h,block:i,item:s,shorthand:p}),o=a}}),o}function i(e,t){e.forEach(function(e){var n=e.shorthand;n.isOkToMinimize()&&(e.operation===c?e.item.data=t(n.getDeclaration()):e.block.remove(e.item))})}var a=e("css-tree").List,s=e("css-tree").translate,l=e("css-tree").walkRulesRight,c=1,u=2,p=0,h=1,d=2,f=3,m=["top","right","bottom","left"],g={"margin-top":"top","margin-right":"right","margin-bottom":"bottom","margin-left":"left","padding-top":"top","padding-right":"right","padding-bottom":"bottom","padding-left":"left","border-top-color":"top","border-right-color":"right","border-bottom-color":"bottom","border-left-color":"left","border-top-width":"top","border-right-width":"right","border-bottom-width":"bottom","border-left-width":"left","border-top-style":"top","border-right-style":"right","border-bottom-style":"bottom","border-left-style":"left"},b={margin:"margin","margin-top":"margin","margin-right":"margin","margin-bottom":"margin","margin-left":"margin",padding:"padding","padding-top":"padding","padding-right":"padding","padding-bottom":"padding","padding-left":"padding","border-color":"border-color","border-top-color":"border-color","border-right-color":"border-color","border-bottom-color":"border-color","border-left-color":"border-color","border-width":"border-width","border-top-width":"border-width","border-right-width":"border-width","border-bottom-width":"border-width","border-left-width":"border-width","border-style":"border-style","border-top-style":"border-style","border-right-style":"border-style","border-bottom-style":"border-style","border-left-style":"border-style"};r.prototype.getValueSequence=function(e,t){var n=[],r="";return!(e.value.children.some(function(t){var o=!1;switch(t.type){case"Identifier":switch(t.name){case"\\0":case"\\9":return void(r=t.name);case"inherit":case"initial":case"unset":case"revert":o=t.name}break;case"Dimension":switch(t.unit){case"rem":case"vw":case"vh":case"vmin":case"vmax":case"vm":o=t.unit}break;case"HexColor":case"Number":case"Percentage":break;case"Function":o=t.name;break;case"WhiteSpace":return!1;default:return!0}n.push({node:t,special:o,important:e.important})})||n.length>t)&&(("string"!=typeof this.iehack||this.iehack===r)&&(this.iehack=r,n))},r.prototype.canOverride=function(e,t){var n=this.sides[e];return!n||t.important&&!n.important},r.prototype.add=function(e,t){function n(){var n=this.sides,r=g[e];if(r){if(r in n==!1)return!1;var o=this.getValueSequence(t,1);if(!o||!o.length)return!1;for(var i in n)if(null!==n[i]&&n[i].special!==o[0].special)return!1;return!this.canOverride(r,o[0])||(n[r]=o[0],!0)}if(e===this.name){var o=this.getValueSequence(t,4);if(!o||!o.length)return!1;switch(o.length){case 1:o[h]=o[p],o[d]=o[p],o[f]=o[p];break;case 2:o[d]=o[p],o[f]=o[h];break;case 3:o[f]=o[h]}for(var a=0;a<4;a++)for(var i in n)if(null!==n[i]&&n[i].special!==o[a].special)return!1;for(var a=0;a<4;a++)this.canOverride(m[a],o[a])&&(n[m[a]]=o[a]);return!0}}return!!n.call(this)&&(this.loc||(this.loc=t.loc),!0)},r.prototype.isOkToMinimize=function(){var e=this.sides.top,t=this.sides.right,n=this.sides.bottom,r=this.sides.left;if(e&&t&&n&&r){var o=e.important+t.important+n.important+r.important;return 0===o||4===o}return!1},r.prototype.getValue=function(){var e=new a,t=this.sides,n=[t.top,t.right,t.bottom,t.left],r=[s(t.top.node),s(t.right.node),s(t.bottom.node),s(t.left.node)];r[f]===r[h]&&(n.pop(),r[d]===r[p]&&(n.pop(),r[h]===r[p]&&n.pop()));for(var o=0;o<n.length;o++)o&&e.appendData({type:"WhiteSpace",value:" "}),e.appendData(n[o].node);return this.iehack&&(e.appendData({type:"WhiteSpace",value:" "}),e.appendData({type:"Identifier",loc:null,name:this.iehack})),{type:"Value",loc:null,children:e}},r.prototype.getDeclaration=function(){return{type:"Declaration",loc:this.loc,important:this.sides.top.important,property:this.name,value:this.getValue()}},t.exports=function(e,t){var n={},r=[];l(e,function(e){if("Rule"===e.type){var t,i,a=this.block||this.stylesheet,s=(e.pseudoSignature||"")+"|"+e.selector.children.first().id;n.hasOwnProperty(a.id)?t=n[a.id]:(t={lastShortSelector:null},n[a.id]=t),t.hasOwnProperty(s)?i=t[s]:(i={},t[s]=i),t.lastShortSelector=o.call(this,e,i,r,t.lastShortSelector)}}),i(r,t.declaration)}},{"css-tree":42}],29:[function(e,t,n){function r(e,t,n){var r=a(e).name;if("background"===r)return e+":"+c(t.value);var o=t.id,i=n[o];if(!i){switch(t.value.type){case"Value":var l="",p="",f={},m=!1;t.value.children.each(function e(t){switch(t.type){case"Value":case"Brackets":case"Parentheses":t.children.each(e);break;case"Raw":m=!0;break;case"Identifier":var n=t.name;l||(l=s(n).vendor),/\\[09]/.test(n)&&(p=RegExp.lastMatch),"cursor"===r?-1===d.indexOf(n)&&(f[n]=!0):h.hasOwnProperty(r)&&h[r].test(n)&&(f[n]=!0);break;case"Function":var n=t.name;if(l||(l=s(n).vendor),"rect"===n){t.children.some(function(e){return"Operator"===e.type&&","===e.value})||(n="rect-backward")}f[n+"()"]=!0,t.children.each(e);break;case"Dimension":var o=t.unit;switch(o){case"rem":case"vw":case"vh":case"vmin":case"vmax":case"vm":f[o]=!0}}}),i=m?"!"+u++:"!"+Object.keys(f).sort()+"|"+p+l;break;case"Raw":i="!"+t.value.value;break;default:i=c(t.value)}n[o]=i}return e+i}function o(e,t,n){var o=a(t.property);if(f.hasOwnProperty(o.name))for(var i=f[o.name],s=0;s<i.length;s++){var l=r(o.prefix+i[s],t,n),c=e.hasOwnProperty(l)?e[l]:null;if(c&&(!t.important||c.item.data.important))return c}}function i(e,t,n,i,a){var s=e.block.children;s.eachRight(function(e,t){var n=e.property,l=r(n,e,a),c=i[l];if(c&&!p.hasOwnProperty(n))e.important&&!c.item.data.important?(i[l]={block:s,item:t},c.block.remove(c.item)):s.remove(t);else{var c=o(i,e,a);c?s.remove(t):(e.fingerprint=l,i[l]={block:s,item:t})}}),s.isEmpty()&&n.remove(t)}var a=e("css-tree").property,s=e("css-tree").keyword,l=e("css-tree").walkRulesRight,c=e("css-tree").translate,u=1,p={src:1},h={display:/table|ruby|flex|-(flex)?box$|grid|contents|run-in/i,"text-align":/^(start|end|match-parent|justify-all)$/i},d=["auto","crosshair","default","move","text","wait","help","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","pointer","progress","not-allowed","no-drop","vertical-text","all-scroll","col-resize","row-resize"],f={"border-width":["border"],"border-style":["border"],"border-color":["border"],"border-top":["border"],"border-right":["border"],"border-bottom":["border"],"border-left":["border"],"border-top-width":["border-top","border-width","border"],"border-right-width":["border-right","border-width","border"],"border-bottom-width":["border-bottom","border-width","border"],"border-left-width":["border-left","border-width","border"],"border-top-style":["border-top","border-style","border"],"border-right-style":["border-right","border-style","border"],"border-bottom-style":["border-bottom","border-style","border"],"border-left-style":["border-left","border-style","border"],"border-top-color":["border-top","border-color","border"],"border-right-color":["border-right","border-color","border"],"border-bottom-color":["border-bottom","border-color","border"],"border-left-color":["border-left","border-color","border"],"margin-top":["margin"],"margin-right":["margin"],"margin-bottom":["margin"],"margin-left":["margin"],"padding-top":["padding"],"padding-right":["padding"],"padding-bottom":["padding"],"padding-left":["padding"],"font-style":["font"],"font-variant":["font"],"font-weight":["font"],"font-size":["font"],"font-family":["font"],"list-style-type":["list-style"],"list-style-position":["list-style"],"list-style-image":["list-style"]};t.exports=function(e){var t={},n=Object.create(null);l(e,function(e,r,o){if("Rule"===e.type){var a,s,l=this.block||this.stylesheet,c=(e.pseudoSignature||"")+"|"+e.selector.children.first().id;t.hasOwnProperty(l.id)?a=t[l.id]:(a={},t[l.id]=a),a.hasOwnProperty(c)?s=a[c]:(s={},a[c]=s),i.call(this,e,r,o,s,n)}})}},{"css-tree":42}],30:[function(e,t,n){function r(e,t,n){var r=e.selector.children,i=e.block.children,a=r.first().compareMarker,s={};n.nextUntil(t.next,function(t,l){if("Rule"!==t.type)return o.unsafeToSkipNode.call(r,t);if(e.pseudoSignature!==t.pseudoSignature)return!0;var c=t.selector.children.head,u=t.block.children,p=c.data.compareMarker;if(p in s)return!0;if(r.head===r.tail&&r.first().id===c.data.id)return i.appendList(u),void n.remove(l);if(o.isEqualDeclarations(i,u)){var h=c.data.id;return r.some(function(e,t){var n=e.id;return h<n?(r.insert(c,t),!0):t.next?void 0:(r.insert(c),!0)}),void n.remove(l)}if(p===a)return!0;s[p]=!0})}var o=e("./utils.js"),i=e("css-tree").walkRules;t.exports=function(e){i(e,function(e,t,n){"Rule"===e.type&&r(e,t,n)})}},{"./utils.js":37,"css-tree":42}],31:[function(e,t,n){function r(e){var t=0;return e.each(function(e){t+=e.id.length+1}),t-1}function o(e){for(var t=0,n=0;n<e.length;n++)t+=e[n].length;return t+e.length-1}function i(e,t,n){var i=null!==this.block&&this.block.avoidRulesMerge,s=e.selector.children,c=e.block,u=Object.create(null),p=!0,h=!0;n.prevUntil(t.prev,function(d,f){if("Rule"!==d.type)return l.unsafeToSkipNode.call(s,d);var m=d.selector.children,g=d.block;if(e.pseudoSignature!==d.pseudoSignature)return!0;if(!(h=!m.some(function(e){return e.compareMarker in u}))&&!p)return!0;if(p&&l.isEqualSelectors(m,s))return g.children.appendList(c.children),n.remove(t),!0;var b=l.compareDeclarations(c.children,g.children);if(b.eq.length){if(!b.ne1.length&&!b.ne2.length)return h&&(l.addSelectors(s,m),n.remove(f)),!0;if(!i)if(b.ne1.length&&!b.ne2.length){var y=r(s),v=o(b.eq);p&&y<v&&(l.addSelectors(m,s),c.children=(new a).fromArray(b.ne1))}else if(!b.ne1.length&&b.ne2.length){var y=r(m),v=o(b.eq);h&&y<v&&(l.addSelectors(s,m),g.children=(new a).fromArray(b.ne2))}else{var k={type:"SelectorList",loc:null,children:l.addSelectors(m.copy(),s)},x=r(k.children)+2,v=o(b.eq);if(h&&v>=x){var w={type:"Rule",loc:null,selector:k,block:{type:"Block",loc:null,children:(new a).fromArray(b.eq)},pseudoSignature:e.pseudoSignature};return c.children=(new a).fromArray(b.ne1),g.children=(new a).fromArray(b.ne2.concat(b.ne2overrided)),n.insert(n.createItem(w),f),!0}}}p&&(p=!m.some(function(e){return s.some(function(t){return t.compareMarker===e.compareMarker})})),m.each(function(e){u[e.compareMarker]=!0})})}var a=e("css-tree").List,s=e("css-tree").walkRulesRight,l=e("./utils.js");t.exports=function(e){s(e,function(e,t,n){"Rule"===e.type&&i.call(this,e,t,n)})}},{"./utils.js":37,"css-tree":42}],32:[function(e,t,n){var r=e("./prepare/index.js"),o=e("./1-initialMergeRuleset.js"),i=e("./2-mergeAtrule.js"),a=e("./3-disjoinRuleset.js"),s=e("./4-restructShorthand.js"),l=e("./6-restructBlock.js"),c=e("./7-mergeRuleset.js"),u=e("./8-restructRuleset.js");t.exports=function(e,t,n){var p=r(e,t);n("prepare",e),o(e),n("initialMergeRuleset",e),i(e),n("mergeAtrule",e),a(e),n("disjoinRuleset",e),s(e,p),n("restructShorthand",e),l(e),n("restructBlock",e),c(e),n("mergeRuleset",e),u(e),n("restructRuleset",e)}},{"./1-initialMergeRuleset.js":25,"./2-mergeAtrule.js":26,"./3-disjoinRuleset.js":27,"./4-restructShorthand.js":28,"./6-restructBlock.js":29,"./7-mergeRuleset.js":30,"./8-restructRuleset.js":31,"./prepare/index.js":34}],33:[function(e,t,n){function r(){this.seed=0,this.map=Object.create(null)}var o=e("css-tree").translate;r.prototype.resolve=function(e){var t=this.map[e];return t||(t=++this.seed,this.map[e]=t),t},t.exports=function(){var e=new r;return function(t){var n=o(t);return t.id=e.resolve(n),t.length=n.length,t.fingerprint=null,t}}},{"css-tree":42}],34:[function(e,t,n){function r(e,t,n){switch(e.type){case"Rule":e.block.children.each(t),l(e,n);break;case"Atrule":e.expression&&(e.expression.id=null,e.expression.id=a(e.expression)),"keyframes"===o(e.name).name&&(e.block.avoidRulesMerge=!0,e.block.children.each(function(e){
16
+ e.selector.children.each(function(e){e.compareMarker=e.id})}))}}var o=e("css-tree").keyword,i=e("css-tree").walkRules,a=e("css-tree").translate,s=e("./createDeclarationIndexer.js"),l=e("./processSelector.js");t.exports=function(e,t){var n=s();return i(e,function(e){r(e,n,t)}),{declaration:n}}},{"./createDeclarationIndexer.js":33,"./processSelector.js":35,"css-tree":42}],35:[function(e,t,n){var r=e("css-tree").translate,o=e("./specificity.js"),i={"first-letter":!0,"first-line":!0,after:!0,before:!0},a={link:!0,visited:!0,hover:!0,active:!0,"first-letter":!0,"first-line":!0,after:!0,before:!0};t.exports=function(e,t){var n=Object.create(null),s=!1;e.selector.children.each(function(e){var l="*",c=0;e.children.some(function(o){switch(o.type){case"ClassSelector":if(t&&t.scopes){var u=t.scopes[o.name]||0;if(0!==c&&u!==c)throw new Error("Selector can't has classes from different scopes: "+r(e));c=u}break;case"PseudoClassSelector":var p=o.name.toLowerCase();a.hasOwnProperty(p)||(n[p]=!0,s=!0);break;case"PseudoElementSelector":var p=o.name.toLowerCase();i.hasOwnProperty(p)||(n[p]=!0,s=!0);break;case"TypeSelector":l=o.name.toLowerCase();break;case"AttributeSelector":o.flags&&(n["["+o.flags.toLowerCase()+"]"]=!0,s=!0);break;case"WhiteSpace":case"Combinator":l="*"}}),e.compareMarker=o(e).toString(),e.id=null,e.id=r(e),c&&(e.compareMarker+=":"+c),"*"!==l&&(e.compareMarker+=","+l)}),e.pseudoSignature=s&&Object.keys(n).sort().join(",")}},{"./specificity.js":36,"css-tree":42}],36:[function(e,t,n){t.exports=function(e){var t=0,n=0,r=0;return e.children.each(function e(o){switch(o.type){case"SelectorList":case"Selector":o.children.each(e);break;case"IdSelector":t++;break;case"ClassSelector":case"AttributeSelector":n++;break;case"PseudoClassSelector":switch(o.name.toLowerCase()){case"not":o.children.each(e);break;case"before":case"after":case"first-line":case"first-letter":r++;break;default:n++}break;case"PseudoElementSelector":r++;break;case"TypeSelector":"*"!==o.name.charAt(o.name.length-1)&&r++}}),[t,n,r]}},{}],37:[function(e,t,n){function r(e,t){for(var n=e.head,r=t.head;null!==n&&null!==r&&n.data.id===r.data.id;)n=n.next,r=r.next;return null===n&&null===r}function o(e,t){for(var n=e.head,r=t.head;null!==n&&null!==r&&n.data.id===r.data.id;)n=n.next,r=r.next;return null===n&&null===r}function i(e,t){for(var n={eq:[],ne1:[],ne2:[],ne2overrided:[]},r=Object.create(null),o=Object.create(null),i=t.head;i;i=i.next)o[i.data.id]=!0;for(var i=e.head;i;i=i.next){var a=i.data;a.fingerprint&&(r[a.fingerprint]=a.important),o[a.id]?(o[a.id]=!1,n.eq.push(a)):n.ne1.push(a)}for(var i=t.head;i;i=i.next){var a=i.data;o[a.id]&&(c.call(r,a.fingerprint)&&Number(r[a.fingerprint])>=Number(a.important)?n.ne2overrided.push(a):n.ne2.push(a))}return n}function a(e,t){return t.each(function(t){for(var n=t.id,r=e.head;r;){var o=r.data.id;if(o===n)return;if(o>n)break;r=r.next}e.insert(e.createItem(t),r)}),e}function s(e,t){return e.some(function(e){return t.some(function(t){return e.compareMarker===t.compareMarker})})}function l(e){switch(e.type){case"Rule":return s(e.selector.children,this);case"Atrule":if(e.block)return e.block.children.some(l,this);break;case"Declaration":return!1}return!0}var c=Object.prototype.hasOwnProperty;t.exports={isEqualSelectors:r,isEqualDeclarations:o,compareDeclarations:i,addSelectors:a,hasSimilarSelectors:s,unsafeToSkipNode:l}},{}],38:[function(e,t,n){function r(e,t){var n=Object.create(null);if(!Array.isArray(e))return null;for(var r=0;r<e.length;r++){var o=e[r];t&&(o=o.toLowerCase()),n[o]=!0}return n}function o(e){if(!e)return null;var t=r(e.tags,!0),n=r(e.ids),o=r(e.classes);return null===t&&null===n&&null===o?null:{tags:t,ids:n,classes:o}}function i(e){var t=!1;if(e.scopes&&Array.isArray(e.scopes)){t=Object.create(null);for(var n=0;n<e.scopes.length;n++){var r=e.scopes[n];if(!r||!Array.isArray(r))throw new Error("Wrong usage format");for(var i=0;i<r.length;i++){var s=r[i];if(a.call(t,s))throw new Error("Class can't be used for several scopes: "+s);t[s]=n+1}}}return{whitelist:o(e),blacklist:o(e.blacklist),scopes:t}}var a=Object.prototype.hasOwnProperty;t.exports={buildIndex:i}},{}],39:[function(e,t,n){t.exports={generic:!0,types:{"absolute-size":"xx-small | x-small | small | medium | large | x-large | xx-large","alpha-value":"<number> | <percentage>","angle-percentage":"<angle> | <percentage>","animateable-feature":"scroll-position | contents | <custom-ident>",attachment:"scroll | fixed | local","auto-repeat":"repeat( [ auto-fill | auto-fit ] , [ <line-names>? <fixed-size> ]+ <line-names>? )","auto-track-list":"[ <line-names>? [ <fixed-size> | <fixed-repeat> ] ]* <line-names>? <auto-repeat> [ <line-names>? [ <fixed-size> | <fixed-repeat> ] ]* <line-names>?","basic-shape":"<inset()> | <circle()> | <ellipse()> | <polygon()>","bg-image":"none | <image>","bg-layer":"<bg-image> || <position> [ / <bg-size> ]? || <repeat-style> || <attachment> || <box>{1,2}","bg-size":"[ <length-percentage> | auto ]{1,2} | cover | contain","blur()":"blur( <length> )","blend-mode":"normal | multiply | screen | overlay | darken | lighten | color-dodge | color-burn | hard-light | soft-light | difference | exclusion | hue | saturation | color | luminosity",box:"border-box | padding-box | content-box","br-style":"none | hidden | dotted | dashed | solid | double | groove | ridge | inset | outset","br-width":"<length> | thin | medium | thick","brightness()":"brightness( <number-percentage> )","calc()":"calc( <calc-sum> )","calc-sum":"<calc-product> [ [ '+' | '-' ] <calc-product> ]*","calc-product":"<calc-value> [ '*' <calc-value> | '/' <number> ]*","calc-value":"<number> | <dimension> | <percentage> | ( <calc-sum> )","cf-final-image":"<image> | <color>","cf-mixing-image":"<percentage>? && <image>","circle()":"circle( [ <shape-radius> ]? [ at <position> ]? )","clip-source":"<url>",color:"<rgb()> | <rgba()> | <hsl()> | <hsla()> | <hex-color> | <named-color> | currentcolor | <deprecated-system-color>","color-stop":"<color> <length-percentage>?","color-stop-list":"<color-stop>#{2,}","common-lig-values":"[ common-ligatures | no-common-ligatures ]","composite-style":"clear | copy | source-over | source-in | source-out | source-atop | destination-over | destination-in | destination-out | destination-atop | xor","compositing-operator":"add | subtract | intersect | exclude","contextual-alt-values":"[ contextual | no-contextual ]","content-list":"[ <string> | contents | <url> | <quote> | <attr()> | counter( <ident> , <'list-style-type'>? ) ]+","contrast()":"contrast( [ <number-percentage> ] )","counter-style":"<counter-style-name> | symbols()","counter-style-name":"<custom-ident>","cross-fade()":"cross-fade( <cf-mixing-image> , <cf-final-image>? )","deprecated-system-color":"ActiveBorder | ActiveCaption | AppWorkspace | Background | ButtonFace | ButtonHighlight | ButtonShadow | ButtonText | CaptionText | GrayText | Highlight | HighlightText | InactiveBorder | InactiveCaption | InactiveCaptionText | InfoBackground | InfoText | Menu | MenuText | Scrollbar | ThreeDDarkShadow | ThreeDFace | ThreeDHighlight | ThreeDLightShadow | ThreeDShadow | Window | WindowFrame | WindowText","discretionary-lig-values":"[ discretionary-ligatures | no-discretionary-ligatures ]","display-box":"contents | none","display-inside":"flow | flow-root | table | flex | grid | subgrid | ruby","display-internal":"table-row-group | table-header-group | table-footer-group | table-row | table-cell | table-column-group | table-column | table-caption | ruby-base | ruby-text | ruby-base-container | ruby-text-container","display-legacy":"inline-block | inline-list-item | inline-table | inline-flex | inline-grid","display-listitem":"list-item && <display-outside>? && [ flow | flow-root ]?","display-outside":"block | inline | run-in","drop-shadow()":"drop-shadow( <length>{2,3} <color>? )","east-asian-variant-values":"[ jis78 | jis83 | jis90 | jis04 | simplified | traditional ]","east-asian-width-values":"[ full-width | proportional-width ]","element()":"element( <id-selector> )","ellipse()":"ellipse( [ <shape-radius>{2} ]? [ at <position> ]? )","ending-shape":"circle | ellipse","explicit-track-list":"[ <line-names>? <track-size> ]+ <line-names>?","family-name":"<string> | <custom-ident>+","feature-tag-value":"<string> [ <integer> | on | off ]?","feature-value-name":"<custom-ident>","fill-rule":"nonzero | evenodd","filter-function":"<blur()> | <brightness()> | <contrast()> | <drop-shadow()> | <grayscale()> | <hue-rotate()> | <invert()> | <opacity()> | <sepia()> | <saturate()>","filter-function-list":"[ <filter-function> | <url> ]+","final-bg-layer":"<bg-image> || <position> [ / <bg-size> ]? || <repeat-style> || <attachment> || <box> || <box> || <'background-color'>","fit-content()":"fit-content( [ <length> | <percentage> ] )","fixed-breadth":"<length-percentage>","fixed-repeat":"repeat( [ <positive-integer> ] , [ <line-names>? <fixed-size> ]+ <line-names>? )","fixed-size":"<fixed-breadth> | minmax( <fixed-breadth> , <track-breadth> ) | minmax( <inflexible-breadth> , <fixed-breadth> )","font-variant-css21":"[ normal | small-caps ]","frequency-percentage":"<frequency> | <percentage>","generic-family":"serif | sans-serif | cursive | fantasy | monospace | -apple-system","generic-name":"serif | sans-serif | cursive | fantasy | monospace","geometry-box":"<shape-box> | fill-box | stroke-box | view-box",gradient:"<-legacy-gradient()> | <linear-gradient()> | <repeating-linear-gradient()> | <radial-gradient()> | <repeating-radial-gradient()>","grayscale()":"grayscale( <number-percentage> )","grid-line":"auto | <custom-ident> | [ <integer> && <custom-ident>? ] | [ span && [ <integer> || <custom-ident> ] ]","historical-lig-values":"[ historical-ligatures | no-historical-ligatures ]","hsl()":"hsl( [ <hue> <percentage> <percentage> [ / <alpha-value> ]? ] | [ <hue> , <percentage> , <percentage> , <alpha-value>? ] )","hsla()":"hsla( [ <hue> <percentage> <percentage> [ / <alpha-value> ]? ] | [ <hue> , <percentage> , <percentage> , <alpha-value>? ] )",hue:"<number> | <angle>","hue-rotate()":"hue-rotate( <angle> )",image:"<url> | <image()> | <image-set()> | <element()> | <cross-fade()> | <gradient>","image()":"image( [ [ <image> | <string> ]? , <color>? ]! )","image-set()":"image-set( <image-set-option># )","image-set-option":"[ <image> | <string> ] <resolution>","inflexible-breadth":"<length> | <percentage> | min-content | max-content | auto","inset()":"inset( <length-percentage>{1,4} [ round <'border-radius'> ]? )","invert()":"invert( <number-percentage> )","keyframes-name":"<custom-ident> | <string>","keyframe-selector":"from | to | <percentage>","leader()":"leader( dotted | solid | space | <string> )","length-percentage":"<length> | <percentage>","line-names":"'[' <custom-ident>* ']'","line-name-list":"[ <line-names> | <name-repeat> ]+","linear-gradient()":"linear-gradient( [ <angle> | to <side-or-corner> ]? , <color-stop-list> )","mask-layer":"<mask-reference> || <position> [ / <bg-size> ]? || <repeat-style> || <geometry-box> || [ <geometry-box> | no-clip ] || <compositing-operator> || <masking-mode>","mask-position":"[ <length-percentage> | left | center | right ] [ <length-percentage> | top | center | bottom ]?","mask-reference":"none | <image> | <mask-source>","mask-source":"<url>","masking-mode":"alpha | luminance | match-source","matrix()":"matrix( <number> [, <number> ]{5} )","matrix3d()":"matrix3d( <number> [, <number> ]{15} )","media-type":"<ident>","mf-boolean":"<mf-name>","mf-name":"<ident>","named-color":"transparent | aliceblue | antiquewhite | aqua | aquamarine | azure | beige | bisque | black | blanchedalmond | blue | blueviolet | brown | burlywood | cadetblue | chartreuse | chocolate | coral | cornflowerblue | cornsilk | crimson | cyan | darkblue | darkcyan | darkgoldenrod | darkgray | darkgreen | darkgrey | darkkhaki | darkmagenta | darkolivegreen | darkorange | darkorchid | darkred | darksalmon | darkseagreen | darkslateblue | darkslategray | darkslategrey | darkturquoise | darkviolet | deeppink | deepskyblue | dimgray | dimgrey | dodgerblue | firebrick | floralwhite | forestgreen | fuchsia | gainsboro | ghostwhite | gold | goldenrod | gray | green | greenyellow | grey | honeydew | hotpink | indianred | indigo | ivory | khaki | lavender | lavenderblush | lawngreen | lemonchiffon | lightblue | lightcoral | lightcyan | lightgoldenrodyellow | lightgray | lightgreen | lightgrey | lightpink | lightsalmon | lightseagreen | lightskyblue | lightslategray | lightslategrey | lightsteelblue | lightyellow | lime | limegreen | linen | magenta | maroon | mediumaquamarine | mediumblue | mediumorchid | mediumpurple | mediumseagreen | mediumslateblue | mediumspringgreen | mediumturquoise | mediumvioletred | midnightblue | mintcream | mistyrose | moccasin | navajowhite | navy | oldlace | olive | olivedrab | orange | orangered | orchid | palegoldenrod | palegreen | paleturquoise | palevioletred | papayawhip | peachpuff | peru | pink | plum | powderblue | purple | rebeccapurple | red | rosybrown | royalblue | saddlebrown | salmon | sandybrown | seagreen | seashell | sienna | silver | skyblue | slateblue | slategray | slategrey | snow | springgreen | steelblue | tan | teal | thistle | tomato | turquoise | violet | wheat | white | whitesmoke | yellow | yellowgreen | <-non-standart-color>","namespace-prefix":"<ident>","number-percentage":"<number> | <percentage>","numeric-figure-values":"[ lining-nums | oldstyle-nums ]","numeric-fraction-values":"[ diagonal-fractions | stacked-fractions ]","numeric-spacing-values":"[ proportional-nums | tabular-nums ]","opacity()":"opacity( [ <number-percentage> ] )","perspective()":"perspective( <length> )","polygon()":"polygon( <fill-rule>? , [ <length-percentage> <length-percentage> ]# )",position:"[ center && [ left | right | top | bottom ] <length-percentage>? ] | [ [ left | right ] <length-percentage>? ] && [ [ top | bottom ] <length-percentage>? ] | [ [ left | center | right | <length-percentage> ] || [ top | center | bottom | <length-percentage> ] ]",quote:"open-quote | close-quote | no-open-quote | no-close-quote","radial-gradient()":"radial-gradient( [ <ending-shape> || <size> ]? [ at <position> ]? , <color-stop-list> )","relative-size":"larger | smaller","repeat-style":"repeat-x | repeat-y | [ repeat | space | round | no-repeat ]{1,2}","repeating-linear-gradient()":"repeating-linear-gradient( [ <angle> | to <side-or-corner> ]? , <color-stop-list> )","repeating-radial-gradient()":"repeating-radial-gradient( [ <ending-shape> || <size> ]? [ at <position> ]? , <color-stop-list> )","rgb()":"rgb( [ [ <percentage>{3} | <number>{3} ] [ / <alpha-value> ]? ] | [ [ <percentage>#{3} | <number>#{3} ] , <alpha-value>? ] )","rgba()":"rgba( [ [ <percentage>{3} | <number>{3} ] [ / <alpha-value> ]? ] | [ [ <percentage>#{3} | <number>#{3} ] , <alpha-value>? ] )","rotate()":"rotate( <angle> )","rotate3d()":"rotate3d( <number> , <number> , <number> , <angle> )","rotateX()":"rotateX( <angle> )","rotateY()":"rotateY( <angle> )","rotateZ()":"rotateZ( <angle> )","saturate()":"saturate( <number-percentage> )","scale()":"scale( <number> [, <number> ]? )","scale3d()":"scale3d( <number> , <number> , <number> )","scaleX()":"scaleX( <number> )","scaleY()":"scaleY( <number> )","scaleZ()":"scaleZ( <number> )","shape-radius":"<length-percentage> | closest-side | farthest-side","skew()":"skew( <angle> [, <angle> ]? )","skewX()":"skewX( <angle> )","skewY()":"skewY( <angle> )","sepia()":"sepia( <number-percentage> )",shadow:"inset? && <length>{2,4} && <color>?","shadow-t":"[ <length>{2,3} && <color>? ]",shape:"rect( [ [ <top> , <right> , <bottom> , <left> ] | [ <top> <right> <bottom> <left> ] ] )","shape-box":"<box> | margin-box","side-or-corner":"[ left | right ] || [ top | bottom ]","single-animation":"<time> || <single-timing-function> || <time> || <single-animation-iteration-count> || <single-animation-direction> || <single-animation-fill-mode> || <single-animation-play-state> || [ none | <keyframes-name> ]","single-animation-direction":"normal | reverse | alternate | alternate-reverse","single-animation-fill-mode":"none | forwards | backwards | both","single-animation-iteration-count":"infinite | <number>","single-animation-play-state":"running | paused","single-timing-function":"<single-transition-timing-function>","single-transition":"<single-transition-timing-function> || [ none | <single-transition-property> ] || <time> || <time>","single-transition-timing-function":"ease | linear | ease-in | ease-out | ease-in-out | step-start | step-end | steps( <integer> [, [ start | end ] ]? ) | cubic-bezier( <number> , <number> , <number> , <number> )","single-transition-property":"all | <custom-ident>",size:"closest-side | farthest-side | closest-corner | farthest-corner | <length> | <length-percentage>{2}",symbol:"<string> | <image> | <ident>",target:"<target-counter()> | <target-counters()> | <target-text()>","target-counter()":"target-counter( [ <string> | <url> ] , <custom-ident> [, <counter-style> ]? )","target-counters()":"target-counters( [ <string> | <url> ] , <custom-ident> , <string> [, <counter-style> ]? )","target-text()":"target-text( [ <string> | <url> ] [, [ content | before | after | first-letter ] ]? )","time-percentage":"<time> | <percentage>","track-breadth":"<length-percentage> | <flex> | min-content | max-content | auto","track-list":"[ <line-names>? [ <track-size> | <track-repeat> ] ]+ <line-names>?","track-repeat":"repeat( [ <positive-integer> ] , [ <line-names>? <track-size> ]+ <line-names>? )","track-size":"<track-breadth> | minmax( <inflexible-breadth> , <track-breadth> ) | fit-content( [ <length> | <percentage> ] )","transform-function":"[ <matrix()> || <translate()> || <translateX()> || <translateY()> || <scale()> || <scaleX()> || <scaleY()> || <rotate()> || <skew()> || <skewX()> || <skewY()> || <matrix3d()> || <translate3d()> || <translateZ()> || <scale3d()> || <scaleZ()> || <rotate3d()> || <rotateX()> || <rotateY()> || <rotateZ()> || <perspective()> ]+","transform-list":"<transform-function>+","translate()":"translate( <length-percentage> [, <length-percentage> ]? )","translate3d()":"translate3d( <length-percentage> , <length-percentage> , <length> )","translateX()":"translateX( <length-percentage> )","translateY()":"translateY( <length-percentage> )","translateZ()":"translateZ( <length> )","type-or-unit":"string | integer | color | url | integer | number | length | angle | time | frequency | em | ex | px | rem | vw | vh | vmin | vmax | mm | q | cm | in | pt | pc | deg | grad | rad | ms | s | Hz | kHz | %","viewport-length":"auto | <length-percentage>","-legacy-gradient()":"<-webkit-gradient()> | <-legacy-linear-gradient()> | <-legacy-repeating-linear-gradient()> | <-legacy-radial-gradient()> | <-legacy-repeating-radial-gradient()>","-legacy-linear-gradient()":"-moz-linear-gradient( <-legacy-linear-gradient-arguments> ) | -ms-linear-gradient( <-legacy-linear-gradient-arguments> ) | -webkit-linear-gradient( <-legacy-linear-gradient-arguments> ) | -o-linear-gradient( <-legacy-linear-gradient-arguments> )","-legacy-repeating-linear-gradient()":"-moz-repeating-linear-gradient( <-legacy-linear-gradient-arguments> ) | -ms-repeating-linear-gradient( <-legacy-linear-gradient-arguments> ) | -webkit-repeating-linear-gradient( <-legacy-linear-gradient-arguments> ) | -o-repeating-linear-gradient( <-legacy-linear-gradient-arguments> )","-legacy-linear-gradient-arguments":"[ <angle> | <side-or-corner> ]? , <color-stop-list>","-legacy-radial-gradient()":"-moz-radial-gradient( <-legacy-radial-gradient-arguments> ) | -ms-radial-gradient( <-legacy-radial-gradient-arguments> ) | -webkit-radial-gradient( <-legacy-radial-gradient-arguments> ) | -o-radial-gradient( <-legacy-radial-gradient-arguments> )","-legacy-repeating-radial-gradient()":"-moz-repeating-radial-gradient( <-legacy-radial-gradient-arguments> ) | -ms-repeating-radial-gradient( <-legacy-radial-gradient-arguments> ) | -webkit-repeating-radial-gradient( <-legacy-radial-gradient-arguments> ) | -o-repeating-radial-gradient( <-legacy-radial-gradient-arguments> )","-legacy-radial-gradient-arguments":"[ <position> , ]? [ [ [ <-legacy-radial-gradient-shape> || <-legacy-radial-gradient-size> ] | [ <length> | <percentage> ]{2} ] , ]? <color-stop-list>","-legacy-radial-gradient-size":"closest-side | closest-corner | farthest-side | farthest-corner | contain | cover","-legacy-radial-gradient-shape":"circle | ellipse","-non-standart-font":"-apple-system-body | -apple-system-headline | -apple-system-subheadline | -apple-system-caption1 | -apple-system-caption2 | -apple-system-footnote | -apple-system-short-body | -apple-system-short-headline | -apple-system-short-subheadline | -apple-system-short-caption1 | -apple-system-short-footnote | -apple-system-tall-body","-non-standart-color":"-moz-ButtonDefault | -moz-ButtonHoverFace | -moz-ButtonHoverText | -moz-CellHighlight | -moz-CellHighlightText | -moz-Combobox | -moz-ComboboxText | -moz-Dialog | -moz-DialogText | -moz-dragtargetzone | -moz-EvenTreeRow | -moz-Field | -moz-FieldText | -moz-html-CellHighlight | -moz-html-CellHighlightText | -moz-mac-accentdarkestshadow | -moz-mac-accentdarkshadow | -moz-mac-accentface | -moz-mac-accentlightesthighlight | -moz-mac-accentlightshadow | -moz-mac-accentregularhighlight | -moz-mac-accentregularshadow | -moz-mac-chrome-active | -moz-mac-chrome-inactive | -moz-mac-focusring | -moz-mac-menuselect | -moz-mac-menushadow | -moz-mac-menutextselect | -moz-MenuHover | -moz-MenuHoverText | -moz-MenuBarText | -moz-MenuBarHoverText | -moz-nativehyperlinktext | -moz-OddTreeRow | -moz-win-communicationstext | -moz-win-mediatext | -moz-activehyperlinktext | -moz-default-background-color | -moz-default-color | -moz-hyperlinktext | -moz-visitedhyperlinktext | -webkit-activelink | -webkit-focus-ring-color | -webkit-link | -webkit-text","-non-standart-image-rendering":"optimize-contrast | -moz-crisp-edges | -o-crisp-edges | -webkit-optimize-contrast","-non-standart-width":"min-intrinsic | intrinsic | -moz-min-content | -moz-max-content | -webkit-min-content | -webkit-max-content","-non-standart-word-break":"break-word","-webkit-image-set()":"<image-set()>","-webkit-gradient()":"-webkit-gradient( <-webkit-gradient-type> , <-webkit-gradient-point> [ , <-webkit-gradient-point> | , <-webkit-gradient-radius> , <-webkit-gradient-point> ] [, <-webkit-gradient-radius> ]? [, <-webkit-gradient-color-stop()> ]* )","-webkit-gradient-color-stop()":"from( <color> ) | color-stop( [ <number-zero-one> | <percentage> ] , <color> ) | to( <color> )","-webkit-gradient-point":"[ left | center | right | <length-percentage> ] [ top | center | bottom | <length-percentage> ]","-webkit-gradient-radius":"<length> | <percentage>","-webkit-gradient-type":"linear | radial","-webkit-mask-box-repeat":"repeat | stretch | round","-webkit-mask-clip-style":"border | border-box | padding | padding-box | content | content-box | text","-ms-filter":"[ <progid> | FlipH | FlipV ]+",age:"child | young | old","border-radius":"<length-percentage>{1,2}",bottom:"<length> | auto","generic-voice":"[ <age>? <gender> <integer>? ]",gender:"male | female | neutral",left:"<length> | auto","mask-image":"<mask-reference>#","name-repeat":"repeat( [ <positive-integer> | auto-fill ] , <line-names>+ )","outline-radius":"<border-radius>",paint:"none | currentColor | <color> | <url> [ none | currentColor | <color> ]?","path()":"path( <string> )",right:"<length> | auto","svg-length":"<percentage> | <length> | <number>","svg-writing-mode":"lr-tb | rl-tb | tb-rl | lr | rl | tb",top:"<length> | auto",x:"<number>",y:"<number>"},properties:{"-ms-overflow-style":"auto | none | scrollbar | -ms-autohiding-scrollbar","-moz-appearance":"none | button | button-arrow-down | button-arrow-next | button-arrow-previous | button-arrow-up | button-bevel | button-focus | caret | checkbox | checkbox-container | checkbox-label | checkmenuitem | dualbutton | groupbox | listbox | listitem | menuarrow | menubar | menucheckbox | menuimage | menuitem | menuitemtext | menulist | menulist-button | menulist-text | menulist-textfield | menupopup | menuradio | menuseparator | meterbar | meterchunk | progressbar | progressbar-vertical | progresschunk | progresschunk-vertical | radio | radio-container | radio-label | radiomenuitem | range | range-thumb | resizer | resizerpanel | scale-horizontal | scalethumbend | scalethumb-horizontal | scalethumbstart | scalethumbtick | scalethumb-vertical | scale-vertical | scrollbarbutton-down | scrollbarbutton-left | scrollbarbutton-right | scrollbarbutton-up | scrollbarthumb-horizontal | scrollbarthumb-vertical | scrollbartrack-horizontal | scrollbartrack-vertical | searchfield | separator | sheet | spinner | spinner-downbutton | spinner-textfield | spinner-upbutton | splitter | statusbar | statusbarpanel | tab | tabpanel | tabpanels | tab-scroll-arrow-back | tab-scroll-arrow-forward | textfield | textfield-multiline | toolbar | toolbarbutton | toolbarbutton-dropdown | toolbargripper | toolbox | tooltip | treeheader | treeheadercell | treeheadersortarrow | treeitem | treeline | treetwisty | treetwistyopen | treeview | -moz-mac-unified-toolbar | -moz-win-borderless-glass | -moz-win-browsertabbar-toolbox | -moz-win-communicationstext | -moz-win-communications-toolbox | -moz-win-exclude-glass | -moz-win-glass | -moz-win-mediatext | -moz-win-media-toolbox | -moz-window-button-box | -moz-window-button-box-maximized | -moz-window-button-close | -moz-window-button-maximize | -moz-window-button-minimize | -moz-window-button-restore | -moz-window-frame-bottom | -moz-window-frame-left | -moz-window-frame-right | -moz-window-titlebar | -moz-window-titlebar-maximized","-moz-binding":"<url> | none","-moz-border-bottom-colors":"[ <color> ]* <color> | none","-moz-border-left-colors":"[ <color> ]* <color> | none","-moz-border-right-colors":"[ <color> ]* <color> | none","-moz-border-top-colors":"[ <color> ]* <color> | none","-moz-float-edge":"border-box | content-box | margin-box | padding-box","-moz-force-broken-image-icon":"<integer>","-moz-image-region":"<shape> | auto","-moz-orient":"inline | block | horizontal | vertical","-moz-outline-radius":"<outline-radius>{1,4} [ / <outline-radius>{1,4} ]?","-moz-outline-radius-bottomleft":"<outline-radius>","-moz-outline-radius-bottomright":"<outline-radius>","-moz-outline-radius-topleft":"<outline-radius>","-moz-outline-radius-topright":"<outline-radius>","-moz-stack-sizing":"ignore | stretch-to-fit","-moz-text-blink":"none | blink","-moz-user-focus":"ignore | normal | select-after | select-before | select-menu | select-same | select-all | none","-moz-user-input":"auto | none | enabled | disabled","-moz-user-modify":"read-only | read-write | write-only","-moz-window-shadow":"default | menu | tooltip | sheet | none","-webkit-border-before":"<'border-width'> || <'border-style'> || <'color'>","-webkit-border-before-color":"<'color'>","-webkit-border-before-style":"<'border-style'>","-webkit-border-before-width":"<'border-width'>","-webkit-box-reflect":"[ above | below | right | left ]? <length>? <image>?","-webkit-mask":"<mask-image> [ <'-webkit-mask-repeat'> || <'-webkit-mask-attachment'> || <'-webkit-mask-position'> || <'-webkit-mask-origin'> || <'-webkit-mask-clip'> ]*","-webkit-mask-attachment":"<attachment> [, <attachment> ]*","-webkit-mask-clip":"<-webkit-mask-clip-style> [, <-webkit-mask-clip-style> ]*","-webkit-mask-composite":"<composite-style> [, <composite-style> ]*","-webkit-mask-image":"<mask-image> [, <mask-image> ]*","-webkit-mask-origin":"[ padding | border | content ] [, [ border | padding | content ] ]*","-webkit-mask-position":"<mask-position>#","-webkit-mask-position-x":"[ <length-percentage> | left | center | right ]#","-webkit-mask-position-y":"[ <length-percentage> | top | center | bottom ]#","-webkit-mask-repeat":"<repeat-style> [, <repeat-style> ]*","-webkit-mask-repeat-x":"repeat | no-repeat | space | round","-webkit-mask-repeat-y":"repeat | no-repeat | space | round","-webkit-tap-highlight-color":"<color>","-webkit-text-fill-color":"<color>","-webkit-text-stroke":"<length> || <color>","-webkit-text-stroke-color":"<color>","-webkit-text-stroke-width":"<length>","-webkit-touch-callout":"default | none","align-content":"flex-start | flex-end | center | space-between | space-around | space-evenly | stretch","align-items":"flex-start | flex-end | center | baseline | stretch","align-self":"auto | flex-start | flex-end | center | baseline | stretch",all:"initial | inherit | unset",animation:"<single-animation>#","animation-delay":"<time>#","animation-direction":"<single-animation-direction>#","animation-duration":"<time>#","animation-fill-mode":"<single-animation-fill-mode>#","animation-iteration-count":"<single-animation-iteration-count>#","animation-name":"[ none | <keyframes-name> ]#","animation-play-state":"<single-animation-play-state>#","animation-timing-function":"<single-timing-function>#",appearance:"auto | none",azimuth:"<angle> | [ [ left-side | far-left | left | center-left | center | center-right | right | far-right | right-side ] || behind ] | leftwards | rightwards","backdrop-filter":"none | <filter-function-list>","backface-visibility":"visible | hidden",background:"[ <bg-layer> , ]* <final-bg-layer>","background-attachment":"<attachment>#","background-blend-mode":"<blend-mode>#","background-clip":"<box>#","background-color":"<color>","background-image":"<bg-image>#","background-origin":"<box>#","background-position":"<position>#","background-position-x":"[ center | [ left | right | x-start | x-end ]? <length-percentage>? ]#","background-position-y":"[ center | [ top | bottom | y-start | y-end ]? <length-percentage>? ]#","background-repeat":"<repeat-style>#","background-size":"<bg-size>#","block-size":"<'width'>",border:"<br-width> || <br-style> || <color>","border-block-end":"<'border-width'> || <'border-style'> || <'color'>","border-block-end-color":"<'color'>","border-block-end-style":"<'border-style'>","border-block-end-width":"<'border-width'>","border-block-start":"<'border-width'> || <'border-style'> || <'color'>","border-block-start-color":"<'color'>","border-block-start-style":"<'border-style'>","border-block-start-width":"<'border-width'>","border-bottom":"<br-width> || <br-style> || <color>","border-bottom-color":"<color>","border-bottom-left-radius":"<length-percentage>{1,2}","border-bottom-right-radius":"<length-percentage>{1,2}","border-bottom-style":"<br-style>","border-bottom-width":"<br-width>","border-collapse":"collapse | separate","border-color":"<color>{1,4}","border-image":"<'border-image-source'> || <'border-image-slice'> [ / <'border-image-width'> | / <'border-image-width'>? / <'border-image-outset'> ]? || <'border-image-repeat'>","border-image-outset":"[ <length> | <number> ]{1,4}","border-image-repeat":"[ stretch | repeat | round | space ]{1,2}","border-image-slice":"<number-percentage>{1,4} && fill?","border-image-source":"none | <image>","border-image-width":"[ <length-percentage> | <number> | auto ]{1,4}","border-inline-end":"<'border-width'> || <'border-style'> || <'color'>","border-inline-end-color":"<'color'>","border-inline-end-style":"<'border-style'>","border-inline-end-width":"<'border-width'>","border-inline-start":"<'border-width'> || <'border-style'> || <'color'>","border-inline-start-color":"<'color'>","border-inline-start-style":"<'border-style'>","border-inline-start-width":"<'border-width'>","border-left":"<br-width> || <br-style> || <color>","border-left-color":"<color>","border-left-style":"<br-style>","border-left-width":"<br-width>","border-radius":"<length-percentage>{1,4} [ / <length-percentage>{1,4} ]?","border-right":"<br-width> || <br-style> || <color>","border-right-color":"<color>","border-right-style":"<br-style>","border-right-width":"<br-width>","border-spacing":"<length> <length>?","border-style":"<br-style>{1,4}","border-top":"<br-width> || <br-style> || <color>",
17
+ "border-top-color":"<color>","border-top-left-radius":"<length-percentage>{1,2}","border-top-right-radius":"<length-percentage>{1,2}","border-top-style":"<br-style>","border-top-width":"<br-width>","border-width":"<br-width>{1,4}",bottom:"<length> | <percentage> | auto","box-align":"start | center | end | baseline | stretch","box-decoration-break":"slice | clone","box-direction":"normal | reverse | inherit","box-flex":"<number>","box-flex-group":"<integer>","box-lines":"single | multiple","box-ordinal-group":"<integer>","box-orient":"horizontal | vertical | inline-axis | block-axis | inherit","box-pack":"start | center | end | justify","box-shadow":"none | <shadow>#","box-sizing":"content-box | border-box","box-suppress":"show | discard | hide","break-after":"auto | avoid | avoid-page | page | left | right | recto | verso | avoid-column | column | avoid-region | region","break-before":"auto | avoid | avoid-page | page | left | right | recto | verso | avoid-column | column | avoid-region | region","break-inside":"auto | avoid | avoid-page | avoid-column | avoid-region","caption-side":"top | bottom | block-start | block-end | inline-start | inline-end","caret-color":"auto | <color>",clear:"none | left | right | both | inline-start | inline-end",clip:"<shape> | auto","clip-path":"<clip-source> | [ <basic-shape> || <geometry-box> ] | none",color:"<color>","column-count":"<number> | auto","column-fill":"auto | balance","column-gap":"<length> | normal","column-rule":"<'column-rule-width'> || <'column-rule-style'> || <'column-rule-color'>","column-rule-color":"<color>","column-rule-style":"<br-style>","column-rule-width":"<br-width>","column-span":"none | all","column-width":"<length> | auto",columns:"<'column-width'> || <'column-count'>",contain:"none | strict | content | [ size || layout || style || paint ]",content:"[ <image> , ]* [ normal | none | <content-list> ] [ / <string> ]?","counter-increment":"[ <custom-ident> <integer>? ]+ | none","counter-reset":"[ <custom-ident> <integer>? ]+ | none",cursor:"[ [ <url> [ <x> <y> ]? , ]* [ auto | default | none | context-menu | help | pointer | progress | wait | cell | crosshair | text | vertical-text | alias | copy | move | no-drop | not-allowed | e-resize | n-resize | ne-resize | nw-resize | s-resize | se-resize | sw-resize | w-resize | ew-resize | ns-resize | nesw-resize | nwse-resize | col-resize | row-resize | all-scroll | zoom-in | zoom-out | grab | grabbing | hand | -webkit-grab | -webkit-grabbing | -webkit-zoom-in | -webkit-zoom-out | -moz-grab | -moz-grabbing | -moz-zoom-in | -moz-zoom-out ] ]",direction:"ltr | rtl",display:"none | inline | block | list-item | inline-list-item | inline-block | inline-table | table | table-cell | table-column | table-column-group | table-footer-group | table-header-group | table-row | table-row-group | flex | inline-flex | grid | inline-grid | run-in | ruby | ruby-base | ruby-text | ruby-base-container | ruby-text-container | contents | -ms-flexbox | -ms-inline-flexbox | -ms-grid | -ms-inline-grid | -webkit-flex | -webkit-inline-flex | -webkit-box | -webkit-inline-box | -moz-inline-stack | -moz-box | -moz-inline-box","display-inside":"auto | block | table | flex | grid | ruby","display-list":"none | list-item","display-outside":"block-level | inline-level | run-in | contents | none | table-row-group | table-header-group | table-footer-group | table-row | table-cell | table-column-group | table-column | table-caption | ruby-base | ruby-text | ruby-base-container | ruby-text-container","empty-cells":"show | hide",filter:"none | <filter-function-list> | <-ms-filter>",flex:"none | [ <'flex-grow'> <'flex-shrink'>? || <'flex-basis'> ]","flex-basis":"content | <'width'>","flex-direction":"row | row-reverse | column | column-reverse","flex-flow":"<'flex-direction'> || <'flex-wrap'>","flex-grow":"<number>","flex-shrink":"<number>","flex-wrap":"nowrap | wrap | wrap-reverse",float:"left | right | none | inline-start | inline-end",font:"[ [ <'font-style'> || <font-variant-css21> || <'font-weight'> || <'font-stretch'> ]? <'font-size'> [ / <'line-height'> ]? <'font-family'> ] | caption | icon | menu | message-box | small-caption | status-bar | <-non-standart-font>","font-family":"[ <family-name> | <generic-family> ]#","font-feature-settings":"normal | <feature-tag-value>#","font-kerning":"auto | normal | none","font-language-override":"normal | <string>","font-variation-settings":"normal | [ <string> <number> ]#","font-size":"<absolute-size> | <relative-size> | <length-percentage>","font-size-adjust":"none | <number>","font-stretch":"normal | ultra-condensed | extra-condensed | condensed | semi-condensed | semi-expanded | expanded | extra-expanded | ultra-expanded","font-style":"normal | italic | oblique","font-synthesis":"none | [ weight || style ]","font-variant":"normal | none | [ <common-lig-values> || <discretionary-lig-values> || <historical-lig-values> || <contextual-alt-values> || stylistic( <feature-value-name> ) || historical-forms || styleset( <feature-value-name># ) || character-variant( <feature-value-name># ) || swash( <feature-value-name> ) || ornaments( <feature-value-name> ) || annotation( <feature-value-name> ) || [ small-caps | all-small-caps | petite-caps | all-petite-caps | unicase | titling-caps ] || <numeric-figure-values> || <numeric-spacing-values> || <numeric-fraction-values> || ordinal || slashed-zero || <east-asian-variant-values> || <east-asian-width-values> || ruby ]","font-variant-alternates":"normal | [ stylistic( <feature-value-name> ) || historical-forms || styleset( <feature-value-name># ) || character-variant( <feature-value-name># ) || swash( <feature-value-name> ) || ornaments( <feature-value-name> ) || annotation( <feature-value-name> ) ]","font-variant-caps":"normal | small-caps | all-small-caps | petite-caps | all-petite-caps | unicase | titling-caps","font-variant-east-asian":"normal | [ <east-asian-variant-values> || <east-asian-width-values> || ruby ]","font-variant-ligatures":"normal | none | [ <common-lig-values> || <discretionary-lig-values> || <historical-lig-values> || <contextual-alt-values> ]","font-variant-numeric":"normal | [ <numeric-figure-values> || <numeric-spacing-values> || <numeric-fraction-values> || ordinal || slashed-zero ]","font-variant-position":"normal | sub | super","font-weight":"normal | bold | bolder | lighter | 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900",grid:"<'grid-template'> | <'grid-template-rows'> / [ auto-flow && dense? ] <'grid-auto-columns'>? | [ auto-flow && dense? ] <'grid-auto-rows'>? / <'grid-template-columns'>","grid-area":"<grid-line> [ / <grid-line> ]{0,3}","grid-auto-columns":"<track-size>+","grid-auto-flow":"[ row | column ] || dense","grid-auto-rows":"<track-size>+","grid-column":"<grid-line> [ / <grid-line> ]?","grid-column-end":"<grid-line>","grid-column-gap":"<length-percentage>","grid-column-start":"<grid-line>","grid-gap":"<'grid-row-gap'> <'grid-column-gap'>?","grid-row":"<grid-line> [ / <grid-line> ]?","grid-row-end":"<grid-line>","grid-row-gap":"<length-percentage>","grid-row-start":"<grid-line>","grid-template":"none | [ <'grid-template-rows'> / <'grid-template-columns'> ] | [ <line-names>? <string> <track-size>? <line-names>? ]+ [ / <explicit-track-list> ]?","grid-template-areas":"none | <string>+","grid-template-columns":"none | <track-list> | <auto-track-list>","grid-template-rows":"none | <track-list> | <auto-track-list>",height:"[ <length> | <percentage> ] && [ border-box | content-box ]? | available | min-content | max-content | fit-content | auto",hyphens:"none | manual | auto","image-orientation":"from-image | <angle> | [ <angle>? flip ]","image-rendering":"auto | crisp-edges | pixelated | optimizeSpeed | optimizeQuality | <-non-standart-image-rendering>","image-resolution":"[ from-image || <resolution> ] && snap?","ime-mode":"auto | normal | active | inactive | disabled","initial-letter":"normal | [ <number> <integer>? ]","initial-letter-align":"[ auto | alphabetic | hanging | ideographic ]","inline-size":"<'width'>",isolation:"auto | isolate","justify-content":"flex-start | flex-end | center | space-between | space-around | space-evenly",left:"<length> | <percentage> | auto","letter-spacing":"normal | <length-percentage>","line-break":"auto | loose | normal | strict","line-height":"normal | <number> | <length> | <percentage>","list-style":"<'list-style-type'> || <'list-style-position'> || <'list-style-image'>","list-style-image":"<url> | none","list-style-position":"inside | outside","list-style-type":"<counter-style> | <string> | none",margin:"[ <length> | <percentage> | auto ]{1,4}","margin-block-end":"<'margin-left'>","margin-block-start":"<'margin-left'>","margin-bottom":"<length> | <percentage> | auto","margin-inline-end":"<'margin-left'>","margin-inline-start":"<'margin-left'>","margin-left":"<length> | <percentage> | auto","margin-right":"<length> | <percentage> | auto","margin-top":"<length> | <percentage> | auto","marker-offset":"<length> | auto",mask:"<mask-layer>#","mask-clip":"[ <geometry-box> | no-clip ]#","mask-composite":"<compositing-operator>#","mask-image":"<mask-reference>#","mask-mode":"<masking-mode>#","mask-origin":"<geometry-box>#","mask-position":"<position>#","mask-repeat":"<repeat-style>#","mask-size":"<bg-size>#","mask-type":"luminance | alpha","max-block-size":"<'max-width'>","max-height":"<length> | <percentage> | none | max-content | min-content | fit-content | fill-available","max-inline-size":"<'max-width'>","max-width":"<length> | <percentage> | none | max-content | min-content | fit-content | fill-available | <-non-standart-width>","min-block-size":"<'min-width'>","min-height":"<length> | <percentage> | auto | max-content | min-content | fit-content | fill-available","min-inline-size":"<'min-width'>","min-width":"<length> | <percentage> | auto | max-content | min-content | fit-content | fill-available | <-non-standart-width>","mix-blend-mode":"<blend-mode>","object-fit":"fill | contain | cover | none | scale-down","object-position":"<position>",offset:"[ <'offset-position'>? [ <'offset-path'> [ <'offset-distance'> || <'offset-rotate'> ]? ]? ]! [ / <'offset-anchor'> ]?","offset-anchor":"auto | <position>","offset-block-end":"<'left'>","offset-block-start":"<'left'>","offset-inline-end":"<'left'>","offset-inline-start":"<'left'>","offset-distance":"<length-percentage>","offset-path":"none | ray( [ <angle> && <size>? && contain? ] ) | <path()> | <url> | [ <basic-shape> || <geometry-box> ]","offset-rotate":"[ auto | reverse ] || <angle>",opacity:"<number-zero-one>",order:"<integer>",orphans:"<integer>",outline:"[ <'outline-color'> || <'outline-style'> || <'outline-width'> ]","outline-color":"<color> | invert","outline-offset":"<length>","outline-style":"auto | <br-style>","outline-width":"<br-width>",overflow:"visible | hidden | scroll | auto","overflow-clip-box":"padding-box | content-box","overflow-wrap":"normal | break-word","overflow-x":"visible | hidden | scroll | auto","overflow-y":"visible | hidden | scroll | auto",padding:"[ <length> | <percentage> ]{1,4}","padding-block-end":"<'padding-left'>","padding-block-start":"<'padding-left'>","padding-bottom":"<length> | <percentage>","padding-inline-end":"<'padding-left'>","padding-inline-start":"<'padding-left'>","padding-left":"<length> | <percentage>","padding-right":"<length> | <percentage>","padding-top":"<length> | <percentage>","page-break-after":"auto | always | avoid | left | right","page-break-before":"auto | always | avoid | left | right","page-break-inside":"auto | avoid",perspective:"none | <length>","perspective-origin":"<position>","pointer-events":"auto | none | visiblePainted | visibleFill | visibleStroke | visible | painted | fill | stroke | all | inherit",position:"static | relative | absolute | sticky | fixed | -webkit-sticky",quotes:"[ <string> <string> ]+ | none",resize:"none | both | horizontal | vertical",right:"<length> | <percentage> | auto","ruby-align":"start | center | space-between | space-around","ruby-merge":"separate | collapse | auto","ruby-position":"over | under | inter-character","scroll-behavior":"auto | smooth","scroll-snap-coordinate":"none | <position>#","scroll-snap-destination":"<position>","scroll-snap-points-x":"none | repeat( <length-percentage> )","scroll-snap-points-y":"none | repeat( <length-percentage> )","scroll-snap-type":"none | mandatory | proximity","scroll-snap-type-x":"none | mandatory | proximity","scroll-snap-type-y":"none | mandatory | proximity","shape-image-threshold":"<number>","shape-margin":"<length-percentage>","shape-outside":"none | <shape-box> || <basic-shape> | <image>","tab-size":"<integer> | <length>","table-layout":"auto | fixed","text-align":"start | end | left | right | center | justify | match-parent","text-align-last":"auto | start | end | left | right | center | justify","text-combine-upright":"none | all | [ digits <integer>? ]","text-decoration":"<'text-decoration-line'> || <'text-decoration-style'> || <'text-decoration-color'>","text-decoration-color":"<color>","text-decoration-line":"none | [ underline || overline || line-through || blink ]","text-decoration-skip":"none | [ objects || spaces || ink || edges || box-decoration ]","text-decoration-style":"solid | double | dotted | dashed | wavy","text-emphasis":"<'text-emphasis-style'> || <'text-emphasis-color'>","text-emphasis-color":"<color>","text-emphasis-position":"[ over | under ] && [ right | left ]","text-emphasis-style":"none | [ [ filled | open ] || [ dot | circle | double-circle | triangle | sesame ] ] | <string>","text-indent":"<length-percentage> && hanging? && each-line?","text-orientation":"mixed | upright | sideways","text-overflow":"[ clip | ellipsis | <string> ]{1,2}","text-rendering":"auto | optimizeSpeed | optimizeLegibility | geometricPrecision","text-shadow":"none | <shadow-t>#","text-size-adjust":"none | auto | <percentage>","text-transform":"none | capitalize | uppercase | lowercase | full-width","text-underline-position":"auto | [ under || [ left | right ] ]",top:"<length> | <percentage> | auto","touch-action":"auto | none | [ [ pan-x | pan-left | pan-right ] || [ pan-y | pan-up | pan-down ] || pinch-zoom ] | manipulation",transform:"none | <transform-list>","transform-box":"border-box | fill-box | view-box","transform-origin":"[ [ <length-percentage> | left | center | right ] && [ <length-percentage> | top | center | bottom ] ] <length>? | [ <length-percentage> | left | center | right | top | bottom ]","transform-style":"flat | preserve-3d",transition:"<single-transition>#","transition-delay":"<time>#","transition-duration":"<time>#","transition-property":"none | <single-transition-property>#","transition-timing-function":"<single-transition-timing-function>#","unicode-bidi":"normal | embed | isolate | bidi-override | isolate-override | plaintext | -moz-isolate | -moz-isolate-override | -moz-plaintext | -webkit-isolate","user-select":"auto | text | none | contain | all","vertical-align":"baseline | sub | super | text-top | text-bottom | middle | top | bottom | <percentage> | <length>",visibility:"visible | hidden | collapse","white-space":"normal | pre | nowrap | pre-wrap | pre-line",widows:"<integer>",width:"[ <length> | <percentage> ] && [ border-box | content-box ]? | available | min-content | max-content | fit-content | auto","will-change":"auto | <animateable-feature>#","word-break":"normal | break-all | keep-all | <-non-standart-word-break>","word-spacing":"normal | <length-percentage>","word-wrap":"normal | break-word","writing-mode":"horizontal-tb | vertical-rl | vertical-lr | sideways-rl | sideways-lr | <svg-writing-mode>","z-index":"auto | <integer>","-moz-background-clip":"padding | border","-moz-border-radius-bottomleft":"<'border-bottom-left-radius'>","-moz-border-radius-bottomright":"<'border-bottom-right-radius'>","-moz-border-radius-topleft":"<'border-top-left-radius'>","-moz-border-radius-topright":"<'border-bottom-right-radius'>","-moz-osx-font-smoothing":"auto | unset | grayscale","-moz-user-select":"none | text | all | -moz-none","-ms-filter":"<string>","-ms-flex-align":"start | end | center | baseline | stretch","-ms-flex-item-align":"auto | start | end | center | baseline | stretch","-ms-flex-line-pack":"start | end | center | justify | distribute | stretch","-ms-flex-negative":"<'flex-shrink'>","-ms-flex-pack":"start | end | center | justify | distribute","-ms-flex-order":"<integer>","-ms-flex-positive":"<'flex-grow'>","-ms-flex-preferred-size":"<'flex-basis'>","-ms-interpolation-mode":"nearest-neighbor | bicubic","-ms-grid-column-align":"start | end | center | stretch","-ms-grid-row-align":"start | end | center | stretch","-ms-high-contrast-adjust":"auto | none","-ms-user-select":"none | element | text","-webkit-appearance":"none | button | button-bevel | caps-lock-indicator | caret | checkbox | default-button | listbox | listitem | media-fullscreen-button | media-mute-button | media-play-button | media-seek-back-button | media-seek-forward-button | media-slider | media-sliderthumb | menulist | menulist-button | menulist-text | menulist-textfield | push-button | radio | scrollbarbutton-down | scrollbarbutton-left | scrollbarbutton-right | scrollbarbutton-up | scrollbargripper-horizontal | scrollbargripper-vertical | scrollbarthumb-horizontal | scrollbarthumb-vertical | scrollbartrack-horizontal | scrollbartrack-vertical | searchfield | searchfield-cancel-button | searchfield-decoration | searchfield-results-button | searchfield-results-decoration | slider-horizontal | slider-vertical | sliderthumb-horizontal | sliderthumb-vertical | square-button | textarea | textfield","-webkit-background-clip":"[ <box> | border | padding | content | text ]#","-webkit-column-break-after":"always | auto | avoid","-webkit-column-break-before":"always | auto | avoid","-webkit-column-break-inside":"always | auto | avoid","-webkit-font-smoothing":"none | antialiased | subpixel-antialiased","-webkit-line-clamp":"<positive-integer>","-webkit-mask-box-image":"[ <url> | <gradient> | none ] [ <length-percentage>{4} <-webkit-mask-box-repeat>{2} ]?","-webkit-overflow-scrolling":"auto | touch","-webkit-print-color-adjust":"economy | exact","-webkit-text-security":"none | circle | disc | square","-webkit-user-drag":"none | element | auto","-webkit-user-select":"auto | none | text | all","alignment-baseline":"auto | baseline | before-edge | text-before-edge | middle | central | after-edge | text-after-edge | ideographic | alphabetic | hanging | mathematical","baseline-shift":"baseline | sub | super | <svg-length>",behavior:"<url>+","clip-rule":"nonzero | evenodd",cue:"<'cue-before'> <'cue-after'>?","cue-after":"<url> <decibel>? | none","cue-before":"<url> <decibel>? | none","dominant-baseline":"auto | use-script | no-change | reset-size | ideographic | alphabetic | hanging | mathematical | central | middle | text-after-edge | text-before-edge",fill:"<paint>","fill-opacity":"<number-zero-one>","fill-rule":"nonzero | evenodd","glyph-orientation-horizontal":"<angle>","glyph-orientation-vertical":"<angle>",kerning:"auto | <svg-length>",marker:"none | <url>","marker-end":"none | <url>","marker-mid":"none | <url>","marker-start":"none | <url>","offset-position":"auto | <position>",pause:"<'pause-before'> <'pause-after'>?","pause-after":"<time> | none | x-weak | weak | medium | strong | x-strong","pause-before":"<time> | none | x-weak | weak | medium | strong | x-strong",rest:"<'rest-before'> <'rest-after'>?","rest-after":"<time> | none | x-weak | weak | medium | strong | x-strong","rest-before":"<time> | none | x-weak | weak | medium | strong | x-strong","shape-rendering":"auto | optimizeSpeed | crispEdges | geometricPrecision",src:"[ <url> format( <string># )? | local( <family-name> ) ]#",speak:"auto | none | normal","speak-as":"normal | spell-out || digits || [ literal-punctuation | no-punctuation ]",stroke:"<paint>","stroke-dasharray":"none | [ <svg-length>+ ]#","stroke-dashoffset":"<svg-length>","stroke-linecap":"butt | round | square","stroke-linejoin":"miter | round | bevel","stroke-miterlimit":"<number-one-or-greater>","stroke-opacity":"<number-zero-one>","stroke-width":"<svg-length>","text-anchor":"start | middle | end","unicode-range":"<unicode-range>#","voice-balance":"<number> | left | center | right | leftwards | rightwards","voice-duration":"auto | <time>","voice-family":"[ [ <family-name> | <generic-voice> ] , ]* [ <family-name> | <generic-voice> ] | preserve","voice-pitch":"<frequency> && absolute | [ [ x-low | low | medium | high | x-high ] || [ <frequency> | <semitones> | <percentage> ] ]","voice-range":"<frequency> && absolute | [ [ x-low | low | medium | high | x-high ] || [ <frequency> | <semitones> | <percentage> ] ]","voice-rate":"[ normal | x-slow | slow | medium | fast | x-fast ] || <percentage>","voice-stress":"normal | strong | moderate | none | reduced","voice-volume":"silent | [ [ x-soft | soft | medium | loud | x-loud ] || <decibel> ]",zoom:"normal | reset | <number> | <percentage>"}}},{}],40:[function(e,t,n){"use strict";function r(e){for(var t=e.head,n=[];null!==t;)n.push(this.generate(t.data,t,e)),t=t.next;return n}function o(e){for(var t=e.head,n=[];null!==t;)t.prev?n.push(",",this.generate(t.data)):n.push(this.generate(t.data)),t=t.next;return n}function i(e){var t={generate:function(t,n,r){if(s.call(e,t.type)){var o=e[t.type].call(this,t,n,r);return"string"==typeof o?o:o.join("")}throw new Error("Unknown node type: "+t.type)},each:r,eachComma:o};return function(e){return t.generate(e)}}function a(e){var t={generate:function(t,n,r){if(s.call(e,t.type))return{node:t,value:e[t.type].call(this,t,n,r)};throw new Error("Unknown node type: "+t.type)},each:r,eachComma:o};return function(e,n,r){function o(e,t){var i=e.value;if(n(e.node,t,i),"string"==typeof i)t+=i;else for(var a=0;a<i.length;a++)"string"==typeof i[a]?t+=i[a]:t=o(i[a],t);return r(e.node,t,i),t}return"function"!=typeof n&&(n=function(){}),"function"!=typeof r&&(r=function(){}),o(t.generate(e),"")}}var s=Object.prototype.hasOwnProperty;t.exports={createGenerator:i,createMarkupGenerator:a,sourceMap:e("./sourceMap")}},{"./sourceMap":41}],41:[function(e,t,n){"use strict";var r=e("source-map").SourceMapGenerator,o={Atrule:!0,Selector:!0,Declaration:!0};t.exports=function(e,t){function n(e){for(;a<e.length;a++)10===e.charCodeAt(a)?(s.line++,s.column=0):s.column++}var i=new r,a=0,s={line:1,column:0},l={line:0,column:0},c=!1,u={line:1,column:0},p={generated:u},h=e(t,function(e,t){if(e.loc&&e.loc.start&&o.hasOwnProperty(e.type)){var r=e.loc.start.line,a=e.loc.start.column-1;l.line===r&&l.column===a||(l.line=r,l.column=a,n(t),c&&(c=!1,s.line===u.line&&s.column===u.column||i.addMapping(p)),c=!0,i.addMapping({source:e.loc.source,original:l,generated:s}))}},function(e,t){c&&o.hasOwnProperty(e.type)&&(n(t),u.line=s.line,u.column=s.column)});return c&&i.addMapping(p),{css:h,map:i}}},{"source-map":143}],42:[function(e,t,n){"use strict";t.exports=e("./syntax/default")},{"./syntax/default":60}],43:[function(e,t,n){"use strict";function r(e,t){var n={};for(var r in e)e[r].syntax&&(n[r]=t?e[r].syntax:d(e[r].syntax));return n}function o(e){return e&&e.data}function i(e){var t=!1;return this.syntax.walk(e,function(e){"Function"===e.type&&"var"===e.name.toLowerCase()&&(t=!0)}),t}function a(e){return"Identifier"===e.type&&/^\\[09]/.test(e.name)}function s(e){for(;null!==e;){if("WhiteSpace"!==e.data.type&&"Comment"!==e.data.type&&!a(e.data))return!1;e=e.next}return!0}function l(e,t,n){var r;return n&&"Value"===n.type?i.call(e,n)?{type:"NoMatch",comment:"Due to matching for value with var() is very complex those values are always valid for now"}:(r=m(e,e.valueCommonSyntax,n.children.head),r.match||(r=t.match(n.children.head))&&r.match?r.next&&!s(r.next)?(e.lastMatchError=new c("Uncomplete match",e,t.syntax,n,r.badNode||o(r.next)),null):(e.lastMatchError=null,r.match):(e.lastMatchError=new c("Mismatch",e,t.syntax,n,r.badNode||o(r.next)),null)):{type:"NoMatch",comment:"Not a Value node"}}var c=e("./error").MatchError,u=e("../utils/names"),p=e("./generic"),h=e("./grammar/parse"),d=e("./grammar/translate"),f=e("./grammar/walk"),m=e("./match"),g=h("inherit | initial | unset"),b=h("inherit | initial | unset | <expression>"),y=function(e,t,n){if(this.valueCommonSyntax=g,this.syntax=t,this.generic=!1,this.properties={},this.types={},this.structure=n,e){if(e.generic){this.generic=!0;for(var r in p)this.addType_(r,p[r])}if(e.types)for(var r in e.types)this.addType_(r,e.types[r]);if(e.properties)for(var r in e.properties)this.addProperty_(r,e.properties[r])}};y.prototype={structure:{},checkStructure:function(e){var t=this.structure,n=[];return this.syntax.walk(e,function(e){if(!t.hasOwnProperty(e.type))throw new Error("Unknown node type: "+e.type);t[e.type].check(e,n.push.bind(n))}),!!n.length&&n},createDescriptor:function(e){var t=this,n={syntax:null,match:null};return"function"==typeof e?n.match=function(t){return t&&e(t)?{badNode:null,lastNode:null,next:t.next,match:[t.data]}:null}:("string"==typeof e?Object.defineProperty(n,"syntax",{get:function(){return Object.defineProperty(n,"syntax",{value:h(e)}),n.syntax}}):n.syntax=e,n.match=function(e){return m(t,n.syntax,e)}),n},addProperty_:function(e,t){this.properties[e]=this.createDescriptor(t)},addType_:function(e,t){this.types[e]=this.createDescriptor(t),t===p.expression&&(this.valueCommonSyntax=b)},lastMatchError:null,matchProperty:function(e,t){var n=u.property(e);if(n.variable)return{type:"NoMatch",comment:"Lexer matching doesn't applicable for custom properties"};var r=n.vendor?this.getProperty(n.vendor+n.name)||this.getProperty(n.name):this.getProperty(n.name);return r?l(this,r,t):(this.lastMatchError=new Error("Unknown property: "+e),null)},matchType:function(e,t){var n=this.getType(e);return n?l(this,n,t):(this.lastMatchError=new Error("Unknown type: "+e),null)},getProperty:function(e){return this.properties.hasOwnProperty(e)?this.properties[e]:null},getType:function(e){return this.types.hasOwnProperty(e)?this.types[e]:null},validate:function(){function e(r,o,i,a){if(i.hasOwnProperty(o))return i[o];i[o]=!1,null!==a.syntax&&f(a.syntax,function(a){if("Type"===a.type||"Property"===a.type){var s="Type"===a.type?r.types:r.properties,l="Type"===a.type?t:n;s.hasOwnProperty(a.name)&&!e(r,a.name,l,s[a.name])||(i[o]=!0)}},this)}var t={},n={};for(var r in this.types)e(this,r,t,this.types[r]);for(var r in this.properties)e(this,r,n,this.properties[r]);return t=Object.keys(t).filter(function(e){return t[e]}),n=Object.keys(n).filter(function(e){return n[e]}),t.length||n.length?{types:t,properties:n}:null},dump:function(e){return{generic:this.generic,types:r(this.types,e),properties:r(this.properties,e)}},toString:function(){return JSON.stringify(this.dump())}},t.exports=y},{"../utils/names":131,"./error":44,"./generic":45,"./grammar/parse":48,"./grammar/translate":49,"./grammar/walk":50,"./match":52}],44:[function(e,t,n){"use strict";function r(e,t){var n=e&&e.loc&&e.loc[t];return n?{offset:n.offset,line:n.line,column:n.column}:null}var o=e("./grammar/translate"),i=function(e,t,n,i,a){var s=-1,l=new SyntaxError(e),c=r(a,"start"),u=r(a,"end"),p=t.syntax.translateMarkup(i,function(e,t){e===a&&(s=t.length)});return-1===s&&(s=p.length),l.name="SyntaxMatchError",l.rawMessage=e,l.syntax=n?o(n):"<generic>",l.css=p,l.mismatchOffset=s,l.loc={source:a&&a.loc&&a.loc.source||"<unknown>",start:c,end:u},l.line=c?c.line:void 0,l.column=c?c.column:void 0,l.offset=c?c.offset:void 0,l.message=e+"\n syntax: "+l.syntax+"\n value: "+(l.css||"<empty string>")+"\n --------"+new Array(l.mismatchOffset+1).join("-")+"^",l};t.exports={MatchError:i}},{"./grammar/translate":49}],45:[function(e,t,n){"use strict";function r(e){if("Function"!==e.data.type)return!1;var t=b.keyword(e.data.name);return"calc"===t.name&&(""===t.vendor||"-moz-"===t.vendor||"-webkit-"===t.vendor)}function o(e){return function(t){return t.data.type===e}}function i(e){return function(t){return r(t)||"Dimension"===t.data.type&&e.hasOwnProperty(t.data.unit.toLowerCase())}}function a(e){return function(t){return r(t)||"Dimension"===t.data.type&&e.hasOwnProperty(t.data.unit.toLowerCase())||"Number"===t.data.type&&0===Number(t.data.value)}}function s(e){return"Function"===e.data.type&&"attr"===e.data.name.toLowerCase()}function l(e){return r(e)||"Number"===e.data.type}function c(e){if(r(e)||"Number"===e.data.type){var t=Number(e.data.value);return t>=0&&t<=1}return!1}function u(e){return!(!r(e)&&"Number"!==e.data.type)&&Number(e.data.value)>=1}function p(e){return r(e)||"Number"===e.data.type&&-1===e.data.value.indexOf(".")}function h(e){return r(e)||"Number"===e.data.type&&-1===e.data.value.indexOf(".")&&"-"!==e.data.value.charAt(0)}function d(e){return r(e)||"Percentage"===e.data.type}function f(e){if("HexColor"!==e.data.type)return!1;var t=e.data.value;return/^[0-9a-fA-F]{3,8}$/.test(t)&&(3===t.length||4===t.length||6===t.length||8===t.length)}function m(e){return"Function"===e.data.type&&"expression"===e.data.name.toLowerCase()}function g(e){if("Identifier"!==e.data.type)return!1;var t=e.data.name.toLowerCase();return"unset"!==t&&"initial"!==t&&"inherit"!==t}var b=e("../utils/names.js"),y={px:!0,mm:!0,cm:!0,in:!0,pt:!0,pc:!0,q:!0,em:!0,ex:!0,ch:!0,rem:!0,vh:!0,vw:!0,vmin:!0,vmax:!0,vm:!0},v={deg:!0,grad:!0,rad:!0,turn:!0},k={s:!0,ms:!0},x={hz:!0,khz:!0},w={dpi:!0,dpcm:!0,dppx:!0},S={fr:!0},C={db:!0},z={st:!0};t.exports={angle:a(v),"attr()":s,"custom-ident":g,decibel:i(C),dimension:o("Dimension"),frequency:i(x),flex:i(S),"hex-color":f,"id-selector":o("IdSelector"),ident:o("Identifier"),integer:p,length:a(y),number:l,"number-zero-one":c,"number-one-or-greater":u,percentage:d,"positive-integer":h,resolution:i(w),semitones:i(z),string:o("String"),time:i(k),"unicode-range":o("UnicodeRange"),url:o("Url"),progid:o("Raw"),expression:m}},{"../utils/names.js":131}],46:[function(e,t,n){"use strict";var r=function(e,t,n){var r=new SyntaxError;return r.name="SyntaxParseError",r.rawMessage=e,r.syntax=t,r.offset=n,r.message=r.rawMessage+"\n "+r.syntax+"\n--"+new Array((r.offset||r.syntax.length)+1).join("-")+"^",r};t.exports={SyntaxParseError:r}},{}],47:[function(e,t,n){t.exports={parse:e("./parse"),translate:e("./translate"),walk:e("./walk")}},{"./parse":48,"./translate":49,"./walk":50}],48:[function(e,t,n){"use strict";function r(e){for(var t=e.pos+1;t<e.str.length;t++){var n=e.str.charCodeAt(t);if(n!==w&&n!==k&&n!==x&&n!==S&&n!==v)break}return e.substringToPos(t)}function o(e){for(var t=e.pos;t<e.str.length;t++){var n=e.str.charCodeAt(t);if(n>=128||0===$[n])break}return e.pos===t&&g(e,e.pos,"Expect a keyword"),e.substringToPos(t)}function i(e){for(var t=e.pos;t<e.str.length;t++){var n=e.str.charCodeAt(t);if(n<48||n>57)break}return e.pos===t&&g(e,e.pos,"Expect a number"),e.substringToPos(t)}function a(e){var t=e.str.indexOf("'",e.pos+1);return-1===t&&g(e,e.str.length,"Expect a quote"),e.substringToPos(t+1)}function s(e,t){var n=null,r=null;return e.eat(q),n=i(e),e.charCode()===M?(e.pos++,e.charCode()!==U&&(r=i(e))):r=n,e.eat(U),{comma:t,min:Number(n),max:r?Number(r):0}}function l(e){switch(e.charCode()){case O:return e.pos++,V;case _:return e.pos++,G;case j:return e.pos++,Q;case z:return e.pos++,e.charCode()!==q?H:s(e,!0);case q:return s(e,!1)}return Y}function c(e){var t;return e.eat(N),e.eat(T),t=o(e),e.eat(T),e.eat(D),{type:"Property",name:t,multiplier:l(e)}}function u(e){var t;return e.eat(N),t=o(e),e.charCode()===P&&e.nextCharCode()===E&&(e.pos+=2,t+="()"),e.eat(D),{type:"Type",name:t,multiplier:l(e)}}function p(e){var t,n=null;return t=o(e),e.charCode()===P?(e.pos++,n=d(e),e.eat(E),{type:"Function",name:t,sequence:n,multiplier:l(e)}):{type:"Keyword",name:t,multiplier:l(e)}}function h(e,t){function n(e,t){return{type:"Sequence",terms:e,combinator:t}}for(t=Object.keys(t).sort(function(e,t){return F[e]-F[t]});t.length>0;){for(var r=t.shift(),o=0,i=0;o<e.length;o++){var a=e[o];"Combinator"===a.type&&(a.value===r?(-1===i&&(i=o-1),
18
+ e.splice(o,1),o--):(-1!==i&&o-i>1&&(e.splice(i,o-i,n(e.slice(i,o),r)),o=i+1),i=-1))}-1!==i&&t.length&&e.splice(i,o-i,n(e.slice(i,o),r))}return r}function d(e){for(var t,n=[],r={},o=null,i=e.pos;t=m(e);)"Spaces"!==t.type&&("Combinator"===t.type?(null!==o&&"Combinator"!==o.type||g(e,i,"Unexpected combinator"),r[t.value]=!0):null!==o&&"Combinator"!==o.type&&(r[" "]=!0,n.push({type:"Combinator",value:" "})),n.push(t),o=t,i=e.pos);return null!==o&&"Combinator"===o.type&&g(e,e.pos-i,"Unexpected combinator"),{type:"Sequence",terms:n,combinator:h(n,r)||" "}}function f(e){var t,n,r=!1;return e.eat(B),t=d(e),e.eat(I),n=l(e),e.charCode()===C&&(e.pos++,r=!0),{type:"Group",terms:t.terms,combinator:t.combinator,nonEmpty:r,multiplier:n}}function m(e){var t=e.charCode();if(t<128&&1===$[t])return p(e);switch(t){case B:return f(e);case N:return e.nextCharCode()===T?c(e):u(e);case W:return{type:"Combinator",value:e.substringToPos(e.nextCharCode()===W?e.pos+2:e.pos+1)};case L:return e.pos++,e.eat(L),{type:"Combinator",value:"&&"};case M:return e.pos++,{type:"Comma",value:","};case R:return e.pos++,{type:"Slash",value:"/"};case A:return e.pos++,{type:"Percent",value:"%"};case P:e.pos++;var n=d(e);return e.eat(E),{type:"Parentheses",sequence:n};case T:return{type:"String",value:a(e)};case S:case v:case k:case w:case x:return{type:"Spaces",value:r(e)}}}function g(e,t,n){throw new y(n||"Unexpected input",e.str,t)}function b(e){var t=new X(e),n=d(t);return t.pos!==e.length&&g(t,t.pos),n}var y=e("./error").SyntaxParseError,v=9,k=10,x=12,w=13,S=32,C=33,z=35,A=37,L=38,T=39,P=40,E=41,O=42,_=43,M=44,R=47,N=60,D=62,j=63,B=91,I=93,q=123,W=124,U=125,F={" ":1,"&&":2,"||":3,"|":4},Y={comma:!1,min:1,max:1},V={comma:!1,min:0,max:0},G={comma:!1,min:1,max:0},H={comma:!0,min:1,max:0},Q={comma:!1,min:0,max:1},$=function(){for(var e="function"==typeof Uint32Array?new Uint32Array(128):new Array(128),t=0;t<128;t++)e[t]=/[a-zA-Z0-9\-]/.test(String.fromCharCode(t))?1:0;return e}(),X=function(e){this.str=e,this.pos=0};X.prototype={charCode:function(){return this.pos<this.str.length?this.str.charCodeAt(this.pos):0},nextCharCode:function(){return this.pos+1<this.str.length?this.str.charCodeAt(this.pos+1):0},substringToPos:function(e){return this.str.substring(this.pos,this.pos=e)},eat:function(e){this.charCode()!==e&&g(this,this.pos,"Expect `"+String.fromCharCode(e)+"`"),this.pos++}},b("[a&&<b>#|<'c'>*||e(){2,} f{2} /,(% g#{1,2})]!"),t.exports=b},{"./error":46}],49:[function(e,t,n){"use strict";function r(e){if(e)for(var t=1;t<arguments.length;t++)if(e.type===arguments[t])return!0;return!1}function o(e){return 0===e.min&&1===e.max?"?":1===e.min&&1===e.max?"":0===e.min&&0===e.max?"*":1===e.min&&0===e.max?e.comma?"#":"+":(e.comma?"#":"")+"{"+e.min+(e.min!==e.max?","+(0!==e.max?e.max:""):"")+"}"}function i(e,t){var n="";return("Group"===e.type||t)&&(n+="["+(r(e.terms[0],"Comma")?"":" ")),n+=e.terms.map(function(e){return s(e,t)}).join(" "===e.combinator?" ":" "+e.combinator+" "),("Group"===e.type||t)&&(n+=" ]"),n}function a(e,t){return e.terms.length?"( "+i(e,t)+" )":"()"}function s(e,t){if(Array.isArray(e))return e.map(function(e){return s(e,t)}).join("");switch(e.type){case"Sequence":return i(e,t);case"Group":return i(e,t)+(e.nonEmpty?"!":"")+o(e.multiplier);case"Keyword":return e.name+o(e.multiplier);case"Function":return e.name+a(e.sequence,t)+o(e.multiplier);case"Parentheses":return a(e.sequence,t);case"Type":return"<"+e.name+">"+o(e.multiplier);case"Property":return"<'"+e.name+"'>"+o(e.multiplier);case"Combinator":case"Slash":case"Percent":case"String":case"Comma":return e.value;default:throw new Error("Unknown type: "+e.type)}}t.exports=s},{}],50:[function(e,t,n){"use strict";t.exports=function e(t,n,r){switch(t.type){case"Sequence":case"Group":t.terms.forEach(function(t){e(t,n,r)});break;case"Function":case"Parentheses":e(t.sequence,n,r);break;case"Keyword":case"Type":case"Property":case"Combinator":case"Comma":case"Slash":case"String":case"Percent":break;default:throw new Error("Unknown type: "+t.type)}n.call(r,t)}},{}],51:[function(e,t,n){"use strict";t.exports={Lexer:e("./Lexer"),grammar:e("./grammar")}},{"./Lexer":43,"./grammar":47}],52:[function(e,t,n){"use strict";function r(e){for(;null!==e&&("WhiteSpace"===e.data.type||"Comment"===e.data.type);)e=e.next;return e}var o=e("../utils/names"),i={comma:!1,min:1,max:1,value:""};t.exports=function e(t,n,a){var s,l,c=[],u=n.multiplier||i,p=u.min,h=0===u.max?1/0:u.max,d=0,f=null,m=null;e:for(;d<h;){switch(a=r(a),n.type){case"Sequence":case"Group":t:switch(n.combinator){case"|":for(var g=0;g<n.terms.length;g++){var b=n.terms[g],y=e(t,b,a);if(y.match){c.push(y.match),a=y.next;break t}if(y.badNode){m=y.badNode;break e}}break e;case" ":for(var v=a,k=null,x=!1,w=!1,g=0;g<n.terms.length;g++){var b=n.terms[g],y=e(t,b,a);if(!y.match){if(y.badNode){m=y.badNode;break e}if("Comma"===b.type&&0!==g&&g!==n.terms.length-1){x&&(w=!0);continue}f=y.lastNode||a&&a.data,a=v;break e}if("Comma"===b.type&&0!==g&&!x){f=a&&a.data,a=v;break e}if(y.match.match.length){if(w){f=a&&a.data,a=v;break e}x="Comma"!==b.type,k=b}c.push(y.match),a=r(y.next)}if(!k&&n.nonEmpty){f=a&&a.data,a=v;break e}if(k&&"Comma"===k.type&&"Comma"!==b.type){f=a&&a.data,a=v;break e}break;case"&&":for(var v=a,k=null,S=n.terms.slice();S.length;){for(var C=!1,z=0,g=0;g<S.length;g++){var b=S[g],y=e(t,b,a);if(y.match){if(!y.match.match.length){z++;continue}k=b,C=!0,S.splice(g--,1),c.push(y.match),a=r(y.next);break}if(y.badNode){m=y.badNode;break e}}if(!C){if(z===S.length)break;f=a&&a.data,a=v;break e}}if(!k&&n.nonEmpty){f=a&&a.data,a=v;break e}break;case"||":for(var v=a,k=null,S=n.terms.slice();S.length;){for(var C=!1,z=0,g=0;g<S.length;g++){var b=S[g],y=e(t,b,a);if(y.match){if(!y.match.match.length){z++;continue}k=b,C=!0,S.splice(g--,1),c.push(y.match),a=r(y.next);break}if(y.badNode){m=y.badNode;break e}}if(!C)break}if(!k&&(z!==S.length||n.nonEmpty)){f=a&&a.data,a=v;break e}}break;case"Function":if(!a||"Function"!==a.data.type)break e;var A=o.keyword(a.data.name),L=n.name.toLowerCase();if(L!==A.vendor+A.name)break e;var y=e(t,n.sequence,a.data.children.head);if(!y.match||y.next){m=y.badNode||y.lastNode||(y.next?y.next.data:null)||a.data;break e}c.push(y.match),a=a.next;break;case"Parentheses":if(!a||"Parentheses"!==a.data.type)break e;var y=e(t,n.sequence,a.data.children.head);if(!y.match||y.next){m=y.badNode||y.lastNode||(y.next?y.next.data:null)||a.data;break e}c.push(y.match),a=y.next;break;case"Type":var T=t.getType(n.name);if(!T)throw new Error("Unknown syntax type `"+n.name+"`");var y=T.match(a);if(!y||!y.match){m=y&&y.badNode,f=y&&y.lastNode||a&&a.data;break e}c.push(y.match),a=y.next;break;case"Property":var P=t.getProperty(n.name);if(!P)throw new Error("Unknown property `"+n.name+"`");var y=P.match(a);if(!y||!y.match){m=y&&y.badNode,f=y&&y.lastNode||a&&a.data;break e}c.push(y.match),a=y.next;break;case"Keyword":if(!a)break e;if("Identifier"===a.data.type){var A=o.keyword(a.data.name),E=A.name,L=n.name.toLowerCase();if(-1!==E.indexOf("\\")&&(E=E.replace(/\\[09].*$/,"")),L!==A.vendor+E)break e}else if("Number"!==a.data.type||a.data.value!==n.name)break e;c.push(a.data),a=a.next;break;case"Slash":case"Comma":if(!a||"Operator"!==a.data.type||a.data.value!==n.value)break e;c.push(a.data),a=a.next;break;case"String":if(!a||"String"!==a.data.type)break e;c.push(a.data),a=a.next;break;default:throw new Error("Not implemented yet node type: "+n.type)}if(d++,!a)break;if(u.comma){if(l&&s===c.length)break e;if(!(a=r(a))||"Operator"!==a.data.type||","!==a.data.value){f=a&&a.data;break e}s=c.length,l=a,a=a.next}}return l&&s===c.length&&(a=l),m?{badNode:m,lastNode:null,next:null,match:null}:{badNode:null,lastNode:f,next:a,match:d<p?null:{type:n.type,name:n.name,match:c}}}},{"../utils/names":131}],53:[function(e,t,n){"use strict";var r=e("../tokenizer"),o=e("./sequence");t.exports=function(e){var t={scanner:new r,filename:"<unknown>",needPositions:!1,parseAtruleExpression:!0,parseSelector:!0,parseValue:!0,parseCustomProperty:!1,readSequence:o,getLocation:function(e,t){return this.needPositions?this.scanner.getLocationRange(e,t,this.filename):null},getLocationFromList:function(e){return this.needPositions?this.scanner.getLocationRange(null!==e.head?e.first().loc.start.offset-this.scanner.startOffset:this.scanner.tokenStart,null!==e.head?e.last().loc.end.offset-this.scanner.startOffset:this.scanner.tokenStart,this.filename):null},parse:function(e,t){t=t||{};var n,r=t.context||"default";if(this.scanner.setSource(e,t.offset,t.line,t.column),this.filename=t.filename||"<unknown>",this.needPositions=Boolean(t.positions),this.parseAtruleExpression=!("parseAtruleExpression"in t)||Boolean(t.parseAtruleExpression),this.parseSelector=!("parseSelector"in t)||Boolean(t.parseSelector),this.parseValue=!("parseValue"in t)||Boolean(t.parseValue),this.parseCustomProperty="parseCustomProperty"in t&&Boolean(t.parseCustomProperty),!this.context.hasOwnProperty(r))throw new Error("Unknown context `"+r+"`");return n=this.context[r].call(this,t),this.scanner.eof||this.scanner.error(),n}};for(var n in e)t[n]=e[n];return t.parse.bind(t)}},{"../tokenizer":126,"./sequence":54}],54:[function(e,t,n){var r=e("../utils/list"),o=e("../tokenizer").TYPE,i=o.Whitespace,a=o.Comment;t.exports=function(e){var t=new r,n=null,o={recognizer:e,space:null,ignoreWS:!1,ignoreWSAfter:!1};for(this.scanner.skipSC();!this.scanner.eof;){switch(this.scanner.tokenType){case a:this.scanner.next();continue;case i:o.ignoreWS?this.scanner.next():o.space=this.WhiteSpace();continue}if(void 0===(n=e.getNode.call(this,o)))break;null!==o.space&&(t.appendData(o.space),o.space=null),t.appendData(n),o.ignoreWSAfter?(o.ignoreWSAfter=!1,o.ignoreWS=!0):o.ignoreWS=!1}return t}},{"../tokenizer":126,"../utils/list":130}],55:[function(e,t,n){t.exports={parse:{expression:null,block:function(){return this.Block(this.Declaration)}}}},{}],56:[function(e,t,n){var r=e("../../utils/list"),o=e("../../tokenizer").TYPE,i=o.String,a=o.Identifier,s=o.LeftParenthesis;t.exports={parse:{expression:function(){var e=new r;switch(this.scanner.skipSC(),this.scanner.tokenType){case i:e.appendData(this.String());break;case a:e.appendData(this.Url());break;default:this.scanner.error("String or url() is expected")}return this.scanner.lookupNonWSType(0)!==a&&this.scanner.lookupNonWSType(0)!==s||(e.appendData(this.WhiteSpace()),e.appendData(this.MediaQueryList())),e},block:!1}}},{"../../tokenizer":126,"../../utils/list":130}],57:[function(e,t,n){t.exports={parse:{expression:function(){return this.MediaQueryList()},block:function(){return this.Block(this.Rule)}}}},{}],58:[function(e,t,n){var r=e("../../tokenizer").TYPE,o=r.LeftCurlyBracket;t.exports={parse:{expression:function(){return this.scanner.lookupNonWSType(0)===o?null:this.SelectorList()},block:function(){return this.Block(this.Declaration)}}}},{"../../tokenizer":126}],59:[function(e,t,n){function r(){return(new a).appendData(this.Raw(f,0,0))}function o(){var e=0;return this.scanner.skipSC(),this.scanner.tokenType===u?e=1:this.scanner.tokenType===h&&this.scanner.lookupType(1)===u&&(e=2),0!==e&&this.scanner.lookupNonWSType(e)===d?(new a).appendData(this.Declaration()):i.call(this)}function i(){var e,t=new a,n=null;this.scanner.skipSC();e:for(;!this.scanner.eof;){switch(this.scanner.tokenType){case l:n=this.WhiteSpace();continue;case c:this.scanner.next();continue;case u:e=this.scanner.lookupType(1)===p?this.Function(r,this.scope.AtruleExpression):this.Identifier();break;case p:e=this.Parentheses(o,this.scope.AtruleExpression);break;default:break e}null!==n&&(t.appendData(n),n=null),t.appendData(e)}return t}var a=e("../../utils/list"),s=e("../../tokenizer").TYPE,l=s.Whitespace,c=s.Comment,u=s.Identifier,p=s.LeftParenthesis,h=s.HyphenMinus,d=s.Colon,f=!0;t.exports={parse:{expression:function(){var e=i.call(this);return e.isEmpty()&&this.scanner.error("Condition is expected"),e},block:function(){return this.Block(this.Rule)}}}},{"../../tokenizer":126,"../../utils/list":130}],60:[function(e,t,n){var r=e("../../data");t.exports=e("./index.js").create({generic:!0,types:r.types,properties:r.properties,parseContext:{default:"StyleSheet",stylesheet:"StyleSheet",atrule:"Atrule",atruleExpression:function(e){return this.AtruleExpression(e.atrule?String(e.atrule):null)},mediaQueryList:"MediaQueryList",mediaQuery:"MediaQuery",rule:"Rule",selectorList:"SelectorList",selector:"Selector",block:function(){return this.Block(this.Declaration)},declarationList:"DeclarationList",declaration:"Declaration",value:function(e){return this.Value(e.property?String(e.property):null)}},scope:{AtruleExpression:e("./scope/atruleExpression"),Selector:e("./scope/selector"),Value:e("./scope/value")},atrule:{"font-face":e("./atrule/font-face"),import:e("./atrule/import"),media:e("./atrule/media"),page:e("./atrule/page"),supports:e("./atrule/supports")},pseudo:{dir:e("./pseudo/dir"),has:e("./pseudo/has"),lang:e("./pseudo/lang"),matches:e("./pseudo/matches"),not:e("./pseudo/not"),"nth-child":e("./pseudo/nth-child"),"nth-last-child":e("./pseudo/nth-last-child"),"nth-last-of-type":e("./pseudo/nth-last-of-type"),"nth-of-type":e("./pseudo/nth-of-type"),slotted:e("./pseudo/slotted")},node:{AnPlusB:e("./node/AnPlusB"),Atrule:e("./node/Atrule"),AtruleExpression:e("./node/AtruleExpression"),AttributeSelector:e("./node/AttributeSelector"),Block:e("./node/Block"),Brackets:e("./node/Brackets"),CDC:e("./node/CDC"),CDO:e("./node/CDO"),ClassSelector:e("./node/ClassSelector"),Combinator:e("./node/Combinator"),Comment:e("./node/Comment"),Declaration:e("./node/Declaration"),DeclarationList:e("./node/DeclarationList"),Dimension:e("./node/Dimension"),Function:e("./node/Function"),HexColor:e("./node/HexColor"),Identifier:e("./node/Identifier"),IdSelector:e("./node/IdSelector"),MediaFeature:e("./node/MediaFeature"),MediaQuery:e("./node/MediaQuery"),MediaQueryList:e("./node/MediaQueryList"),Nth:e("./node/Nth"),Number:e("./node/Number"),Operator:e("./node/Operator"),Parentheses:e("./node/Parentheses"),Percentage:e("./node/Percentage"),PseudoClassSelector:e("./node/PseudoClassSelector"),PseudoElementSelector:e("./node/PseudoElementSelector"),Ratio:e("./node/Ratio"),Raw:e("./node/Raw"),Rule:e("./node/Rule"),Selector:e("./node/Selector"),SelectorList:e("./node/SelectorList"),String:e("./node/String"),StyleSheet:e("./node/StyleSheet"),TypeSelector:e("./node/TypeSelector"),UnicodeRange:e("./node/UnicodeRange"),Url:e("./node/Url"),Value:e("./node/Value"),WhiteSpace:e("./node/WhiteSpace")}})},{"../../data":39,"./atrule/font-face":55,"./atrule/import":56,"./atrule/media":57,"./atrule/page":58,"./atrule/supports":59,"./index.js":64,"./node/AnPlusB":66,"./node/Atrule":67,"./node/AtruleExpression":68,"./node/AttributeSelector":69,"./node/Block":70,"./node/Brackets":71,"./node/CDC":72,"./node/CDO":73,"./node/ClassSelector":74,"./node/Combinator":75,"./node/Comment":76,"./node/Declaration":77,"./node/DeclarationList":78,"./node/Dimension":79,"./node/Function":80,"./node/HexColor":81,"./node/IdSelector":82,"./node/Identifier":83,"./node/MediaFeature":84,"./node/MediaQuery":85,"./node/MediaQueryList":86,"./node/Nth":87,"./node/Number":88,"./node/Operator":89,"./node/Parentheses":90,"./node/Percentage":91,"./node/PseudoClassSelector":92,"./node/PseudoElementSelector":93,"./node/Ratio":94,"./node/Raw":95,"./node/Rule":96,"./node/Selector":97,"./node/SelectorList":98,"./node/String":99,"./node/StyleSheet":100,"./node/TypeSelector":101,"./node/UnicodeRange":102,"./node/Url":103,"./node/Value":104,"./node/WhiteSpace":105,"./pseudo/dir":109,"./pseudo/has":110,"./pseudo/lang":111,"./pseudo/matches":112,"./pseudo/not":113,"./pseudo/nth-child":114,"./pseudo/nth-last-child":115,"./pseudo/nth-last-of-type":116,"./pseudo/nth-of-type":117,"./pseudo/slotted":118,"./scope/atruleExpression":119,"./scope/selector":121,"./scope/value":122}],61:[function(e,t,n){var r=e("../../utils/list");t.exports=function(){this.scanner.skipSC();var e=this.IdSelector();return this.scanner.skipSC(),(new r).appendData(e)}},{"../../utils/list":130}],62:[function(e,t,n){var r=e("../../utils/list");t.exports=function(){return(new r).appendData(this.Raw(!0,0,0))}},{"../../utils/list":130}],63:[function(e,t,n){var r=e("../../utils/list"),o=e("../../tokenizer").TYPE,i=o.Identifier,a=o.Comma,s=o.HyphenMinus,l=o.ExclamationMark;t.exports=function(){var e=new r;this.scanner.skipSC();var t=this.scanner.tokenStart;return this.scanner.eat(s),this.scanner.source.charCodeAt(this.scanner.tokenStart)!==s&&this.scanner.error("HyphenMinus is expected"),this.scanner.eat(i),e.appendData({type:"Identifier",loc:this.getLocation(t,this.scanner.tokenStart),name:this.scanner.substrToCursor(t)}),this.scanner.skipSC(),this.scanner.tokenType===a&&(e.appendData(this.Operator()),e.appendData(this.parseCustomProperty?this.Value(null):this.Raw(!0,s,l))),e}},{"../../tokenizer":126,"../../utils/list":130}],64:[function(e,t,n){function r(e,t){for(var n in t)e[n]=t[n];return e}function o(e){return function(){return this[e]()}}function i(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e&&e>=0}function a(e){return Boolean(e)&&i(e.offset)&&i(e.line)&&i(e.column)}function s(e,t){return function(n,r){if(!n||n.constructor!==Object)return r("Type of node should be an object");for(var o in n)if("type"===o)n.type!==e&&r("Wrong node type `"+n.type+"` but expected `"+e+"`");else if("loc"===o){if(null===n.loc)continue;if(n.loc&&n.loc.constructor===Object&&"string"==typeof n.loc.source&&a(n.loc.start)&&a(n.loc.end))continue;r("Wrong value for `"+e+"."+o+"` field")}else if(t.hasOwnProperty(o)){for(var i=0,s=!1;!s&&i<t[o].length;i++){var l=t[o][i];switch(l){case String:s="string"==typeof n[o];break;case Boolean:s="boolean"==typeof n[o];break;case null:s=null===n[o];break;default:"string"==typeof l?s=n[o]&&n[o].type===l:Array.isArray(l)&&(s=n[o]instanceof p)}}s||r("Wrong value for `"+e+"."+o+"` field")}else r("Unknown field `"+o+"` for "+e);for(var o in t)!1===u.call(n,o)&&r("Field `"+e+"."+o+"` is missed")}}function l(e,t){var n=t.structure,r={type:String,loc:!0},o=[],i={type:'"'+e+'"'};for(var a in n){for(var l={name:a,type:!1,nullable:!1},c=[],u=r[a]=Array.isArray(n[a])?n[a].slice():[n[a]],p=0;p<u.length;p++){var h=u[p];if(h===String||h===Boolean)c.push(h.name);else if(null===h)l.nullable=!0,c.push("null");else if("string"==typeof h)l.type="node",c.push("<"+h+">");else{if(!Array.isArray(h))throw new Error("Wrong value in `"+e+"` structure definition");l.type="list",c.push("List")}}i[a]=c.join(" | "),l.type&&o.push(l)}return{docs:i,check:s(e,r),walk:o.length?{context:t.walkContext,fields:o}:null}}function c(t){var n={context:{},scope:{},atrule:{},pseudo:{}},i={type:{}},a={},s={structure:{}};if(t.parseContext)for(var u in t.parseContext)switch(typeof t.parseContext[u]){case"function":n.context[u]=t.parseContext[u];break;case"string":n.context[u]=o(t.parseContext[u])}if(t.scope)for(var u in t.scope)n.scope[u]=t.scope[u];if(t.atrule)for(var u in t.atrule){var p=t.atrule[u];p.parse&&(n.atrule[u]=p.parse)}if(t.pseudo)for(var u in t.pseudo){var k=t.pseudo[u];k.parse&&(n.pseudo[u]=k.parse)}if(t.node)for(var u in t.node){var x=t.node[u];if(n[u]=x.parse,a[u]=x.generate,!x.structure)throw new Error("Missed `structure` field in `"+u+"` node type definition");var w=l(u,x);s.structure[u]={docs:w.docs,check:w.check},w.walk&&(i.type[u]=w.walk)}var S=h(n),C=e("../lexer/Lexer"),i=b(i.type),z=g(i),A=f(a),L={List:e("../utils/list"),Tokenizer:e("../tokenizer"),Lexer:e("../lexer/Lexer"),property:y.property,keyword:y.keyword,lexer:null,syntax:e("../lexer"),createLexer:function(e){return new C(e,L,s.structure)},parse:S,walk:i.all,walkUp:i.allUp,walkRules:i.rules,walkRulesRight:i.rulesRight,walkDeclarations:i.declarations,translate:d(a),translateWithSourceMap:function(e){return m(A,e)},translateMarkup:A,clone:e("../utils/clone"),fromPlainObject:z.fromPlainObject,toPlainObject:z.toPlainObject,createSyntax:function(e){return c(v({},e))},fork:function(e){var n=v({},t);return c("function"==typeof e?e(n,r):v(n,e))}};return L.lexer=new C({generic:!0,types:t.types,properties:t.properties},L,s.structure),L}var u=Object.prototype.hasOwnProperty,p=e("../utils/list"),h=e("../parser"),d=e("../generator").createGenerator,f=e("../generator").createMarkupGenerator,m=e("../generator").sourceMap,g=e("../utils/convert"),b=e("../walker"),y=e("../utils/names"),v=e("./mix");n.create=function(e){return c(v({},e))}},{"../generator":40,"../lexer":51,"../lexer/Lexer":43,"../parser":53,"../tokenizer":126,"../utils/clone":128,"../utils/convert":129,"../utils/list":130,"../utils/names":131,"../walker":132,"./mix":65}],65:[function(e,t,n){function r(e,t,n){for(var o in n)if(!0===n[o])o in t&&(e[o]=t[o]);else if(n[o])if(n[o].constructor===Object){var i={};for(var a in e[o])i[a]=e[o][a];for(var a in t[o])i[a]=t[o][a];e[o]=i}else if(Array.isArray(n[o])){var i={},s=n[o].reduce(function(e,t){return e[t]=!0,e},{});for(var a in e[o])i[a]={},e[o]&&e[o][a]&&r(i[a],e[o][a],s);for(var a in t[o])i[a]||(i[a]={}),t[o]&&t[o][a]&&r(i[a],t[o][a],s);e[o]=i}return e}var o={generic:!0,types:{},properties:{},parseContext:{},scope:{},atrule:["parse"],pseudo:["parse"],node:["name","structure","parse","generate","walkContext"]};t.exports=function(e,t){return r(e,t,o)}},{}],66:[function(e,t,n){function r(e,t){var n=e.tokenStart;for(e.source.charCodeAt(n)!==c&&e.source.charCodeAt(n)!==u||(t&&e.error(),n++);n<e.tokenEnd;n++)i(e.source.charCodeAt(n))||e.error("Unexpected input",n)}var o=e("../../tokenizer").cmpChar,i=e("../../tokenizer").isNumber,a=e("../../tokenizer").TYPE,s=a.Identifier,l=a.Number,c=a.PlusSign,u=a.HyphenMinus;t.exports={name:"AnPlusB",structure:{a:[String,null],b:[String,null]},parse:function(){var e=this.scanner.tokenStart,t=e,n="",a=null,p=null;if(this.scanner.tokenType!==l&&this.scanner.tokenType!==c||(r(this.scanner,!1),n=this.scanner.getTokenValue(),this.scanner.next(),t=this.scanner.tokenStart),this.scanner.tokenType===s){var h=this.scanner.tokenStart;o(this.scanner.source,h,u)&&(""===n?(n="-",h++):this.scanner.error("Unexpected hyphen minus")),o(this.scanner.source,h,110)||this.scanner.error(),a=""===n?"1":"+"===n?"+1":"-"===n?"-1":n;var d=this.scanner.tokenEnd-h;d>1?(this.scanner.source.charCodeAt(h+1)!==u&&this.scanner.error("Unexpected input",h+1),d>2?this.scanner.tokenStart=h+2:(this.scanner.next(),this.scanner.skipSC()),r(this.scanner,!0),p="-"+this.scanner.getTokenValue(),this.scanner.next(),t=this.scanner.tokenStart):(n="",this.scanner.next(),t=this.scanner.tokenStart,this.scanner.skipSC(),this.scanner.tokenType!==u&&this.scanner.tokenType!==c||(n=this.scanner.getTokenValue(),this.scanner.next(),this.scanner.skipSC()),this.scanner.tokenType===l?(r(this.scanner,""!==n),i(this.scanner.source.charCodeAt(this.scanner.tokenStart))||(n=this.scanner.source.charAt(this.scanner.tokenStart),this.scanner.tokenStart++),""===n?this.scanner.error():"+"===n&&(n=""),p=n+this.scanner.getTokenValue(),this.scanner.next(),t=this.scanner.tokenStart):n&&this.scanner.eat(l))}else""!==n&&"+"!==n||this.scanner.error("Number or identifier is expected",this.scanner.tokenStart+(this.scanner.tokenType===c||this.scanner.tokenType===u)),p=n;return{type:"AnPlusB",loc:this.getLocation(e,t),a:a,b:p}},generate:function(e){var t,n=null!==e.a&&void 0!==e.a,r=null!==e.b&&void 0!==e.b;return n?(t="+1"===e.a||"1"===e.a?"n":"-1"===e.a?"-n":e.a+"n",r&&(r=String(e.b),t="-"===r.charAt(0)||"+"===r.charAt(0)?[t,r.charAt(0),r.substr(1)]:[t,"+",r])):t=String(e.b),t}}},{"../../tokenizer":126}],67:[function(e,t,n){function r(){for(var e,t=1;e=this.scanner.lookupType(t);t++){if(e===c)return!0;if(e===l||e===s)return!1}this.scanner.skip(t),this.scanner.eat(c)}var o=e("../../tokenizer").TYPE,i=o.Identifier,a=o.Semicolon,s=o.CommercialAt,l=o.LeftCurlyBracket,c=o.RightCurlyBracket;t.exports={name:"Atrule",structure:{name:String,expression:["AtruleExpression","MediaQueryList","SelectorList","Raw",null],block:["Block",null]},parse:function(){var e,t,n=this.scanner.tokenStart,o=null,c=null;if(this.scanner.eat(s),e=this.scanner.consume(i),t=e.toLowerCase(),this.scanner.skipSC(),this.parseAtruleExpression?(o=this.AtruleExpression(e),this.scanner.skipSC()):o=this.Raw(!0,a,l),this.atrule.hasOwnProperty(t))"function"==typeof this.atrule[t].block?(this.scanner.tokenType!==l&&this.scanner.error("Curly bracket is expected"),c=this.atrule[t].block.call(this)):this.scanner.eat(a);else switch(this.scanner.tokenType){case a:this.scanner.next();break;case l:c=this.Block(r.call(this)?this.Declaration:this.Rule);break;default:this.scanner.error("Semicolon or block is expected")}return{type:"Atrule",loc:this.getLocation(n,this.scanner.tokenStart),name:e,expression:o,block:c}},generate:function(e){var t=["@",e.name];return null!==e.expression&&t.push(" ",this.generate(e.expression)),t.push(e.block?this.generate(e.block):";"),t},walkContext:"atrule"}},{"../../tokenizer":126}],68:[function(e,t,n){var r=e("../../utils/list");t.exports={name:"AtruleExpression",structure:{children:[[]]},parse:function(e){var t=null;if(null!==e&&(e=e.toLowerCase()),this.atrule.hasOwnProperty(e)){if("function"==typeof this.atrule[e].expression&&(t=this.atrule[e].expression.call(this))instanceof r==!1)return t}else this.scanner.skipSC(),t=this.readSequence(this.scope.AtruleExpression);return null===t||t.isEmpty()?null:{type:"AtruleExpression",loc:this.getLocationFromList(t),children:t}},generate:function(e){return this.each(e.children)},walkContext:"atruleExpression"}},{"../../utils/list":130}],69:[function(e,t,n){function r(){this.scanner.eof&&this.scanner.error("Unexpected end of input");var e=this.scanner.tokenStart,t=!1,n=!0;return this.scanner.tokenType===c?(t=!0,n=!1,this.scanner.next()):this.scanner.tokenType!==m&&this.scanner.eat(a),this.scanner.tokenType===m?this.scanner.lookupType(1)!==p?(this.scanner.next(),this.scanner.eat(a)):t&&this.scanner.error("Identifier is expected",this.scanner.tokenEnd):t&&this.scanner.error("Vertical line is expected"),n&&this.scanner.tokenType===u&&(this.scanner.next(),this.scanner.eat(a)),{type:"Identifier",loc:this.getLocation(e,this.scanner.tokenStart),name:this.scanner.substrToCursor(e)}}function o(){var e=this.scanner.tokenStart,t=this.scanner.tokenType;return t!==p&&t!==g&&t!==f&&t!==l&&t!==c&&t!==m&&this.scanner.error("Attribute selector (=, ~=, ^=, $=, *=, |=) is expected"),t===p?this.scanner.next():(this.scanner.next(),this.scanner.eat(p)),this.scanner.substrToCursor(e)}var i=e("../../tokenizer").TYPE,a=i.Identifier,s=i.String,l=i.DollarSign,c=i.Asterisk,u=i.Colon,p=i.EqualsSign,h=i.LeftSquareBracket,d=i.RightSquareBracket,f=i.CircumflexAccent,m=i.VerticalLine,g=i.Tilde;t.exports={name:"AttributeSelector",structure:{name:"Identifier",operator:[String,null],value:["String","Identifier",null],flags:[String,null]},parse:function(){var e,t=this.scanner.tokenStart,n=null,i=null,l=null;return this.scanner.eat(h),this.scanner.skipSC(),e=r.call(this),this.scanner.skipSC(),this.scanner.tokenType!==d&&(this.scanner.tokenType!==a&&(n=o.call(this),this.scanner.skipSC(),i=this.scanner.tokenType===s?this.String():this.Identifier(),this.scanner.skipSC()),this.scanner.tokenType===a&&(l=this.scanner.getTokenValue(),this.scanner.next(),this.scanner.skipSC())),this.scanner.eat(d),{type:"AttributeSelector",loc:this.getLocation(t,this.scanner.tokenStart),name:e,operator:n,value:i,flags:l}},generate:function(e){var t=["[",this.generate(e.name)],n=" ";return null!==e.operator&&(t.push(e.operator),null!==e.value&&(t.push(this.generate(e.value)),"String"===e.value.type&&(n=""))),null!==e.flags&&t.push(n,e.flags),t.push("]"),t}}},{"../../tokenizer":126}],70:[function(e,t,n){var r=e("../../utils/list"),o=e("../../tokenizer").TYPE,i=o.Whitespace,a=o.Comment,s=o.Semicolon,l=o.CommercialAt,c=o.LeftCurlyBracket,u=o.RightCurlyBracket;t.exports={name:"Block",structure:{children:[["Atrule","Rule","Declaration"]]},parse:function(e){e=e||this.Declaration;var t=this.scanner.tokenStart,n=new r;this.scanner.eat(c);e:for(;!this.scanner.eof;)switch(this.scanner.tokenType){case u:break e;case i:case a:case s:this.scanner.next();break;case l:n.appendData(this.Atrule());break;default:n.appendData(e.call(this))}return this.scanner.eat(u),{type:"Block",loc:this.getLocation(t,this.scanner.tokenStart),children:n}},generate:function(e){return[].concat("{",this.each(e.children),"}")},walkContext:"block"}},{"../../tokenizer":126,"../../utils/list":130}],71:[function(e,t,n){var r=e("../../tokenizer").TYPE,o=r.LeftSquareBracket,i=r.RightSquareBracket;t.exports={name:"Brackets",structure:{children:[[]]},parse:function(e,t){var n=this.scanner.tokenStart,r=null;return this.scanner.eat(o),r=e.call(this,t),this.scanner.eat(i),{type:"Brackets",loc:this.getLocation(n,this.scanner.tokenStart),children:r}},generate:function(e){return[].concat("[",this.each(e.children),"]")}}},{"../../tokenizer":126}],72:[function(e,t,n){var r=e("../../tokenizer").TYPE.CDC;t.exports={name:"CDC",structure:[],parse:function(){var e=this.scanner.tokenStart;return this.scanner.eat(r),{type:"CDC",loc:this.getLocation(e,this.scanner.tokenStart)}},generate:function(){return"--\x3e"}}},{"../../tokenizer":126}],73:[function(e,t,n){var r=e("../../tokenizer").TYPE.CDO;t.exports={name:"CDO",structure:[],parse:function(){var e=this.scanner.tokenStart;return this.scanner.eat(r),{type:"CDO",loc:this.getLocation(e,this.scanner.tokenStart)}},generate:function(){return"\x3c!--"}}},{"../../tokenizer":126}],74:[function(e,t,n){var r=e("../../tokenizer").TYPE,o=r.Identifier,i=r.FullStop;t.exports={name:"ClassSelector",structure:{name:String},parse:function(){return this.scanner.eat(i),{type:"ClassSelector",loc:this.getLocation(this.scanner.tokenStart-1,this.scanner.tokenEnd),name:this.scanner.consume(o)}},generate:function(e){return"."+e.name}}},{"../../tokenizer":126}],75:[function(e,t,n){var r=e("../../tokenizer").TYPE,o=r.PlusSign,i=r.Solidus,a=r.GreaterThanSign,s=r.Tilde;t.exports={name:"Combinator",structure:{name:String},parse:function(){var e=this.scanner.tokenStart;switch(this.scanner.tokenType){case a:case o:case s:this.scanner.next();break;case i:this.scanner.next(),this.scanner.expectIdentifier("deep"),this.scanner.eat(i);break;default:this.scanner.error("Combinator is expected")}return{type:"Combinator",loc:this.getLocation(e,this.scanner.tokenStart),name:this.scanner.substrToCursor(e)}},generate:function(e){return e.name}}},{"../../tokenizer":126}],76:[function(e,t,n){var r=e("../../tokenizer").TYPE,o=r.Asterisk,i=r.Solidus;t.exports={name:"Comment",structure:{value:String},parse:function(){var e=this.scanner.tokenStart,t=this.scanner.tokenEnd;return t-e+2>=2&&this.scanner.source.charCodeAt(t-2)===o&&this.scanner.source.charCodeAt(t-1)===i&&(t-=2),this.scanner.next(),{type:"Comment",loc:this.getLocation(e,this.scanner.tokenStart),value:this.scanner.source.substring(e+2,t)}},generate:function(e){return"/*"+e.value+"*/"}}},{"../../tokenizer":126}],77:[function(e,t,n){function r(e){return e.length>=2&&e.charCodeAt(0)===d&&e.charCodeAt(1)===d}function o(){var e=this.scanner.tokenStart,t=0;switch(this.scanner.tokenType){case p:case h:case b:case y:t=1;break;case u:t=this.scanner.lookupType(1)===u?2:1}return this.scanner.lookupType(t)===d&&t++,t&&this.scanner.skip(t),this.scanner.eat(s),this.scanner.substrToCursor(e)}function i(e){e.eat(c),e.skipSC();var t=e.consume(s);return"important"===t||t}var a=e("../../tokenizer").TYPE,s=a.Identifier,l=a.Colon,c=a.ExclamationMark,u=a.Solidus,p=a.Asterisk,h=a.DollarSign,d=a.HyphenMinus,f=a.Semicolon,m=a.RightCurlyBracket,g=a.RightParenthesis,b=a.PlusSign,y=a.NumberSign;t.exports={name:"Declaration",structure:{important:[Boolean,String],property:String,value:["Value","Raw"]},parse:function(){var e,t=this.scanner.tokenStart,n=o.call(this),a=!1;return this.scanner.skipSC(),this.scanner.eat(l),e=(r(n)?this.parseCustomProperty:this.parseValue)?this.Value(n):this.Raw(!0,f,c),this.scanner.tokenType===c&&(a=i(this.scanner),this.scanner.skipSC()),
19
+ this.scanner.eof||this.scanner.tokenType===f||this.scanner.tokenType===g||this.scanner.tokenType===m||this.scanner.error(),{type:"Declaration",loc:this.getLocation(t,this.scanner.tokenStart),important:a,property:n,value:e}},generate:function(e,t){var n=[e.property,":",this.generate(e.value)];return e.important&&n.push(!0===e.important?"!important":"!"+e.important),t&&t.next&&n.push(";"),n},walkContext:"declaration"}},{"../../tokenizer":126}],78:[function(e,t,n){var r=e("../../utils/list"),o=e("../../tokenizer").TYPE,i=o.Whitespace,a=o.Comment,s=o.Semicolon;t.exports={name:"DeclarationList",structure:{children:[["Declaration"]]},parse:function(){for(var e=new r;!this.scanner.eof;)switch(this.scanner.tokenType){case i:case a:case s:this.scanner.next();break;default:e.appendData(this.Declaration())}return{type:"DeclarationList",loc:this.getLocationFromList(e),children:e}},generate:function(e){return this.each(e.children)}}},{"../../tokenizer":126,"../../utils/list":130}],79:[function(e,t,n){function r(e){var t=e.getTokenValue(),n=t.indexOf("\\");return n>0?(e.tokenStart+=n,t.substring(0,n)):(e.next(),t)}var o=e("../../tokenizer").TYPE.Number;t.exports={name:"Dimension",structure:{value:String,unit:String},parse:function(){var e=this.scanner.tokenStart,t=this.scanner.consume(o),n=r(this.scanner);return{type:"Dimension",loc:this.getLocation(e,this.scanner.tokenStart),value:t,unit:n}},generate:function(e){return e.value+e.unit}}},{"../../tokenizer":126}],80:[function(e,t,n){var r=e("../../tokenizer").TYPE,o=r.Identifier,i=r.LeftParenthesis,a=r.RightParenthesis;t.exports={name:"Function",structure:{name:String,children:[[]]},parse:function(e,t){var n,r=this.scanner.tokenStart,s=this.scanner.consume(o),l=s.toLowerCase();return this.scanner.eat(i),n=t.hasOwnProperty(l)?t[l].call(this,t):e.call(this,t),this.scanner.eat(a),{type:"Function",loc:this.getLocation(r,this.scanner.tokenStart),name:s,children:n}},generate:function(e){return[].concat(e.name+"(",this.each(e.children),")")},walkContext:"function"}},{"../../tokenizer":126}],81:[function(e,t,n){function r(e,t){if(!o(e.source.charCodeAt(e.tokenStart))){if(!t)return;e.error("Unexpected input",e.tokenStart)}for(var n=e.tokenStart+1;n<e.tokenEnd;n++){var r=e.source.charCodeAt(n);if(!o(r))return void(e.tokenStart=n)}e.next()}var o=e("../../tokenizer").isHex,i=e("../../tokenizer").TYPE,a=i.Identifier,s=i.Number,l=i.NumberSign;t.exports={name:"HexColor",structure:{value:String},parse:function(){var e=this.scanner.tokenStart;switch(this.scanner.eat(l),this.scanner.tokenType){case s:r(this.scanner,!0),this.scanner.tokenType===a&&r(this.scanner,!1);break;case a:r(this.scanner,!0);break;default:this.scanner.error("Number or identifier is expected")}return{type:"HexColor",loc:this.getLocation(e,this.scanner.tokenStart),value:this.scanner.substrToCursor(e+1)}},generate:function(e){return"#"+e.value}}},{"../../tokenizer":126}],82:[function(e,t,n){var r=e("../../tokenizer").TYPE,o=r.Identifier,i=r.NumberSign;t.exports={name:"IdSelector",structure:{name:String},parse:function(){return this.scanner.eat(i),{type:"IdSelector",loc:this.getLocation(this.scanner.tokenStart-1,this.scanner.tokenEnd),name:this.scanner.consume(o)}},generate:function(e){return"#"+e.name}}},{"../../tokenizer":126}],83:[function(e,t,n){var r=e("../../tokenizer").TYPE,o=r.Identifier;t.exports={name:"Identifier",structure:{name:String},parse:function(){return{type:"Identifier",loc:this.getLocation(this.scanner.tokenStart,this.scanner.tokenEnd),name:this.scanner.consume(o)}},generate:function(e){return e.name}}},{"../../tokenizer":126}],84:[function(e,t,n){var r=e("../../tokenizer").TYPE,o=r.Identifier,i=r.Number,a=r.LeftParenthesis,s=r.RightParenthesis,l=r.Colon,c=r.Solidus;t.exports={name:"MediaFeature",structure:{name:String,value:["Identifier","Number","Dimension","Ratio",null]},parse:function(){var e,t=this.scanner.tokenStart,n=null;if(this.scanner.eat(a),this.scanner.skipSC(),e=this.scanner.consume(o),this.scanner.skipSC(),this.scanner.tokenType!==s){switch(this.scanner.eat(l),this.scanner.skipSC(),this.scanner.tokenType){case i:n=this.scanner.lookupType(1)===o?this.Dimension():this.scanner.lookupNonWSType(1)===c?this.Ratio():this.Number();break;case o:n=this.Identifier();break;default:this.scanner.error("Number, dimension, ratio or identifier is expected")}this.scanner.skipSC()}return this.scanner.eat(s),{type:"MediaFeature",loc:this.getLocation(t,this.scanner.tokenStart),name:e,value:n}},generate:function(e){return null!==e.value?["(",e.name,":",this.generate(e.value),")"]:["(",e.name,")"]}}},{"../../tokenizer":126}],85:[function(e,t,n){var r=e("../../utils/list"),o=e("../../tokenizer").TYPE,i=o.Whitespace,a=o.Comment,s=o.Identifier,l=o.LeftParenthesis;t.exports={name:"MediaQuery",structure:{children:[["Identifier","MediaFeature","WhiteSpace"]]},parse:function(){this.scanner.skipSC();var e=new r,t=null,n=null;e:for(;!this.scanner.eof;){switch(this.scanner.tokenType){case a:this.scanner.next();continue;case i:n=this.WhiteSpace();continue;case s:t=this.Identifier();break;case l:t=this.MediaFeature();break;default:break e}null!==n&&(e.appendData(n),n=null),e.appendData(t)}return null===t&&this.scanner.error("Identifier or parenthesis is expected"),{type:"MediaQuery",loc:this.getLocationFromList(e),children:e}},generate:function(e){return this.each(e.children)}}},{"../../tokenizer":126,"../../utils/list":130}],86:[function(e,t,n){var r=e("../../utils/list"),o=e("../../tokenizer").TYPE.Comma;t.exports={name:"MediaQueryList",structure:{children:[["MediaQuery"]]},parse:function(e){var t=new r;for(this.scanner.skipSC();!this.scanner.eof&&(t.appendData(this.MediaQuery(e)),this.scanner.tokenType===o);)this.scanner.next();return{type:"MediaQueryList",loc:this.getLocationFromList(t),children:t}},generate:function(e){return this.eachComma(e.children)}}},{"../../tokenizer":126,"../../utils/list":130}],87:[function(e,t,n){t.exports={name:"Nth",structure:{nth:["AnPlusB","Identifier"],selector:["SelectorList",null]},parse:function(e){this.scanner.skipSC();var t,n=this.scanner.tokenStart,r=n,o=null;return t=this.scanner.lookupValue(0,"odd")||this.scanner.lookupValue(0,"even")?this.Identifier():this.AnPlusB(),this.scanner.skipSC(),e&&this.scanner.lookupValue(0,"of")?(this.scanner.next(),o=this.SelectorList(),this.needPositions&&(r=o.children.last().loc.end.offset)):this.needPositions&&(r=t.loc.end.offset),{type:"Nth",loc:this.getLocation(n,r),nth:t,selector:o}},generate:function(e){return null!==e.selector?[this.generate(e.nth)," of ",this.generate(e.selector)]:[this.generate(e.nth)]}}},{}],88:[function(e,t,n){var r=e("../../tokenizer").TYPE.Number;t.exports={name:"Number",structure:{value:String},parse:function(){return{type:"Number",loc:this.getLocation(this.scanner.tokenStart,this.scanner.tokenEnd),value:this.scanner.consume(r)}},generate:function(e){return e.value}}},{"../../tokenizer":126}],89:[function(e,t,n){t.exports={name:"Operator",structure:{value:String},parse:function(){var e=this.scanner.tokenStart;return this.scanner.next(),{type:"Operator",loc:this.getLocation(e,this.scanner.tokenStart),value:this.scanner.substrToCursor(e)}},generate:function(e){return e.value}}},{}],90:[function(e,t,n){var r=e("../../tokenizer").TYPE,o=r.LeftParenthesis,i=r.RightParenthesis;t.exports={name:"Parentheses",structure:{children:[[]]},parse:function(e,t){var n=this.scanner.tokenStart,r=null;return this.scanner.eat(o),r=e.call(this,t),this.scanner.eat(i),{type:"Parentheses",loc:this.getLocation(n,this.scanner.tokenStart),children:r}},generate:function(e){return[].concat("(",this.each(e.children),")")}}},{"../../tokenizer":126}],91:[function(e,t,n){var r=e("../../tokenizer").TYPE,o=r.Number,i=r.PercentSign;t.exports={name:"Percentage",structure:{value:String},parse:function(){var e=this.scanner.tokenStart,t=this.scanner.consume(o);return this.scanner.eat(i),{type:"Percentage",loc:this.getLocation(e,this.scanner.tokenStart),value:t}},generate:function(e){return e.value+"%"}}},{"../../tokenizer":126}],92:[function(e,t,n){var r=e("../../utils/list"),o=e("../../tokenizer").TYPE,i=o.Identifier,a=o.Colon,s=o.LeftParenthesis,l=o.RightParenthesis;t.exports={name:"PseudoClassSelector",structure:{name:String,children:[["Raw"],null]},parse:function(){var e,t=this.scanner.tokenStart,n=null;if(this.scanner.eat(a),e=this.scanner.consume(i),this.scanner.tokenType===s){var o=e.toLowerCase();this.scanner.next(),this.pseudo.hasOwnProperty(o)?(this.scanner.skipSC(),n=this.pseudo[o].call(this),this.scanner.skipSC()):n=(new r).appendData(this.Raw(!0,0,0)),this.scanner.eat(l)}return{type:"PseudoClassSelector",loc:this.getLocation(t,this.scanner.tokenStart),name:e,children:n}},generate:function(e){return null!==e.children?[].concat(":"+e.name+"(",this.each(e.children),")"):":"+e.name},walkContext:"function"}},{"../../tokenizer":126,"../../utils/list":130}],93:[function(e,t,n){var r=e("../../utils/list"),o=e("../../tokenizer").TYPE,i=o.Identifier,a=o.Colon,s=o.LeftParenthesis,l=o.RightParenthesis;t.exports={name:"PseudoElementSelector",structure:{name:String,children:[["Raw"],null]},parse:function(){var e,t=this.scanner.tokenStart,n=null;if(this.scanner.eat(a),this.scanner.eat(a),e=this.scanner.consume(i),this.scanner.tokenType===s){var o=e.toLowerCase();this.scanner.next(),this.pseudo.hasOwnProperty(o)?(this.scanner.skipSC(),n=this.pseudo[o].call(this),this.scanner.skipSC()):n=(new r).appendData(this.Raw(!0,0,0)),this.scanner.eat(l)}return{type:"PseudoElementSelector",loc:this.getLocation(t,this.scanner.tokenStart),name:e,children:n}},generate:function(e){return null!==e.children?[].concat("::"+e.name+"(",this.each(e.children),")"):"::"+e.name},walkContext:"function"}},{"../../tokenizer":126,"../../utils/list":130}],94:[function(e,t,n){function r(e){for(var t=e.consumeNonWS(a),n=0;n<t.length;n++){var r=t.charCodeAt(n);o(r)||r===l||e.error("Unsigned number is expected",e.tokenStart-t.length+n)}return 0===Number(t)&&e.error("Zero number is not allowed",e.tokenStart-t.length),t}var o=e("../../tokenizer").isNumber,i=e("../../tokenizer").TYPE,a=i.Number,s=i.Solidus,l=i.FullStop;t.exports={name:"Ratio",structure:{left:String,right:String},parse:function(){var e,t=this.scanner.tokenStart,n=r(this.scanner);return this.scanner.eatNonWS(s),e=r(this.scanner),{type:"Ratio",loc:this.getLocation(t,this.scanner.tokenStart),left:n,right:e}},generate:function(e){return[e.left,"/",e.right]}}},{"../../tokenizer":126}],95:[function(e,t,n){var r=e("../../tokenizer").TYPE,o=r.Whitespace,i=r.LeftParenthesis,a=r.RightParenthesis,s=r.LeftCurlyBracket,l=r.RightCurlyBracket,c=r.LeftSquareBracket,u=r.RightSquareBracket;t.exports={name:"Raw",structure:{value:String},parse:function(e,t,n){var r=this.scanner.tokenStart,p=[],h=0,d=0;if(e)e:for(var f=0;(d=this.scanner.lookupType(f))&&(0!==h||d!==t&&d!==n);f++)switch(d){case h:h=p.pop();break;case a:case l:case u:0!==h&&(this.scanner.skip(f),this.scanner.error());break e;case i:p.push(h),h=a;break;case s:p.push(h),h=l;break;case c:p.push(h),h=u}else for(var f=0;(d=this.scanner.lookupType(f))&&(d!==o&&d!==t&&d!==n);f++);return this.scanner.skip(f),0!==h&&this.scanner.eat(h),{type:"Raw",loc:this.getLocation(r,this.scanner.tokenStart),value:this.scanner.substrToCursor(r)}},generate:function(e){return e.value}}},{"../../tokenizer":126}],96:[function(e,t,n){var r=e("../../tokenizer").TYPE,o=r.LeftCurlyBracket;t.exports={name:"Rule",structure:{selector:["SelectorList","Raw"],block:["Block"]},parse:function(){var e=this.scanner.tokenStart,t=this.parseSelector?this.SelectorList():this.Raw(!0,o,0),n=this.Block(this.Declaration);return{type:"Rule",loc:this.getLocation(e,this.scanner.tokenStart),selector:t,block:n}},generate:function(e){return[this.generate(e.selector),this.generate(e.block)]},walkContext:"rule"}},{"../../tokenizer":126}],97:[function(e,t,n){t.exports={name:"Selector",structure:{children:[["TypeSelector","IdSelector","ClassSelector","AttributeSelector","PseudoClassSelector","PseudoElementSelector","Combinator","WhiteSpace"]]},parse:function(){var e=this.readSequence(this.scope.Selector);return e.isEmpty()&&this.scanner.error("Selector is expected"),{type:"Selector",loc:this.getLocationFromList(e),children:e}},generate:function(e){return this.each(e.children)}}},{}],98:[function(e,t,n){var r=e("../../utils/list"),o=e("../../tokenizer").TYPE,i=o.Comma,a=o.LeftCurlyBracket;t.exports={name:"SelectorList",structure:{children:[["Selector"]]},parse:function(){for(var e=new r;!this.scanner.eof;){e.appendData(this.parseSelector?this.Selector():this.Raw(!0,i,a));{if(this.scanner.tokenType!==i)break;this.scanner.next()}}return{type:"SelectorList",loc:this.getLocationFromList(e),children:e}},generate:function(e){return this.eachComma(e.children)},walkContext:"selector"}},{"../../tokenizer":126,"../../utils/list":130}],99:[function(e,t,n){var r=e("../../tokenizer").TYPE.String;t.exports={name:"String",structure:{value:String},parse:function(){return{type:"String",loc:this.getLocation(this.scanner.tokenStart,this.scanner.tokenEnd),value:this.scanner.consume(r)}},generate:function(e){return e.value}}},{"../../tokenizer":126}],100:[function(e,t,n){var r=e("../../utils/list"),o=e("../../tokenizer").TYPE,i=o.Whitespace,a=o.Comment,s=o.ExclamationMark,l=o.CommercialAt,c=o.CDO,u=o.CDC;t.exports={name:"StyleSheet",structure:{children:[["Comment","Atrule","Rule"]]},parse:function(){for(var e,t=this.scanner.tokenStart,n=new r;!this.scanner.eof;){switch(this.scanner.tokenType){case i:this.scanner.next();continue;case a:if(this.scanner.source.charCodeAt(this.scanner.tokenStart+2)!==s){this.scanner.next();continue}e=this.Comment();break;case l:e=this.Atrule();break;case c:e=this.CDO();break;case u:e=this.CDC();break;default:e=this.Rule()}n.appendData(e)}return{type:"StyleSheet",loc:this.getLocation(t,this.scanner.tokenStart),children:n}},generate:function(e){return this.each(e.children)},walkContext:"stylesheet"}},{"../../tokenizer":126,"../../utils/list":130}],101:[function(e,t,n){function r(){this.scanner.tokenType!==i&&this.scanner.tokenType!==a&&this.scanner.error("Identifier or asterisk is expected"),this.scanner.next()}var o=e("../../tokenizer").TYPE,i=o.Identifier,a=o.Asterisk,s=o.VerticalLine;t.exports={name:"TypeSelector",structure:{name:String},parse:function(){var e=this.scanner.tokenStart;return this.scanner.tokenType===s?(this.scanner.next(),r.call(this)):(r.call(this),this.scanner.tokenType===s&&(this.scanner.next(),r.call(this))),{type:"TypeSelector",loc:this.getLocation(e,this.scanner.tokenStart),name:this.scanner.substrToCursor(e)}},generate:function(e){return e.name}}},{"../../tokenizer":126}],102:[function(e,t,n){function r(e){for(var t=e.tokenStart+1;t<e.tokenEnd;t++){var n=e.source.charCodeAt(t);if(n===p||n===c)return e.tokenStart=t,!1}return!0}function o(e){var t=e.tokenStart+1,n=0;e:{if(e.tokenType===l){if(e.source.charCodeAt(e.tokenStart)!==p&&r(e))e.next();else if(e.source.charCodeAt(e.tokenStart)!==u)break e}else e.next();e.tokenType===u&&e.next(),e.tokenType===l&&e.next(),e.tokenType===s&&e.next(),e.tokenStart===t&&e.error("Unexpected input",t)}for(var o=t,a=!1;o<e.tokenStart;o++){var c=e.source.charCodeAt(o);!1!==i(c)||c===u&&!a||e.error("Unexpected input",o),c===u?(0===n&&e.error("Unexpected input",o),a=!0,n=0):++n>6&&e.error("Too long hex sequence",o)}if(0===n&&e.error("Unexpected input",o-1),!a)for(;n<6&&!e.eof&&e.tokenType===h;e.next())n++}var i=e("../../tokenizer").isHex,a=e("../../tokenizer").TYPE,s=a.Identifier,l=a.Number,c=a.PlusSign,u=a.HyphenMinus,p=a.FullStop,h=a.QuestionMark;t.exports={name:"UnicodeRange",structure:{value:String},parse:function(){var e=this.scanner.tokenStart;return this.scanner.next(),o(this.scanner),{type:"UnicodeRange",loc:this.getLocation(e,this.scanner.tokenStart),value:this.scanner.substrToCursor(e)}},generate:function(e){return e.value}}},{"../../tokenizer":126}],103:[function(e,t,n){var r=e("../../tokenizer").TYPE,o=r.String,i=r.LeftParenthesis,a=r.RightParenthesis;t.exports={name:"Url",structure:{value:["String","Raw"]},parse:function(){var e,t=this.scanner.tokenStart;return this.scanner.expectIdentifier("url"),this.scanner.eat(i),this.scanner.skipSC(),e=this.scanner.tokenType===o?this.String():this.Raw(!1,i,a),this.scanner.skipSC(),this.scanner.eat(a),{type:"Url",loc:this.getLocation(t,this.scanner.tokenStart),value:e}},generate:function(e){return["url(",this.generate(e.value),")"]}}},{"../../tokenizer":126}],104:[function(e,t,n){function r(e){for(var t,n=0;(t=e.lookupType(n))&&(t===a||t===s);n++);if(e.lookupValue(n,"alpha")||e.lookupValue(n,"chroma")||e.lookupValue(n,"dropshadow")){if(e.lookupType(n+1)!==l)return!1}else if(!1===e.lookupValue(n,"progid")||e.lookupType(n+1)!==c)return!1;return!0}var o=e("../../tokenizer").endsWith,i=e("../../tokenizer").TYPE,a=i.Whitespace,s=i.Comment,l=i.LeftParenthesis,c=i.Colon,u=i.Semicolon,p=i.ExclamationMark;t.exports={name:"Value",structure:{children:[[]]},parse:function(e){if(null!==e&&o(e,"filter")&&r(this.scanner))return this.scanner.skipSC(),this.Raw(!0,u,p);var t=this.scanner.tokenStart,n=this.readSequence(this.scope.Value);return{type:"Value",loc:this.getLocation(t,this.scanner.tokenStart),children:n}},generate:function(e){return this.each(e.children)}}},{"../../tokenizer":126}],105:[function(e,t,n){var r=e("../../tokenizer").TYPE.Whitespace,o=Object.freeze({type:"WhiteSpace",loc:null,value:" "});t.exports={name:"WhiteSpace",structure:{value:String},parse:function(){return this.scanner.eat(r),o},generate:function(e){return e.value}}},{"../../tokenizer":126}],106:[function(e,t,n){var r=e("../../../utils/list");t.exports={parse:function(){return(new r).appendData(this.Nth(!1))}}},{"../../../utils/list":130}],107:[function(e,t,n){var r=e("../../../utils/list");t.exports={parse:function(){return(new r).appendData(this.Nth(!0))}}},{"../../../utils/list":130}],108:[function(e,t,n){var r=e("../../../utils/list");t.exports={parse:function(){return(new r).appendData(this.SelectorList())}}},{"../../../utils/list":130}],109:[function(e,t,n){var r=e("../../utils/list");t.exports={parse:function(){return(new r).appendData(this.Identifier())}}},{"../../utils/list":130}],110:[function(e,t,n){var r=e("../../utils/list");t.exports={parse:function(){return(new r).appendData(this.SelectorList())}}},{"../../utils/list":130}],111:[function(e,t,n){arguments[4][109][0].apply(n,arguments)},{"../../utils/list":130,dup:109}],112:[function(e,t,n){t.exports=e("./common/selectorList")},{"./common/selectorList":108}],113:[function(e,t,n){arguments[4][112][0].apply(n,arguments)},{"./common/selectorList":108,dup:112}],114:[function(e,t,n){t.exports=e("./common/nthWithOfClause")},{"./common/nthWithOfClause":107}],115:[function(e,t,n){arguments[4][114][0].apply(n,arguments)},{"./common/nthWithOfClause":107,dup:114}],116:[function(e,t,n){t.exports=e("./common/nth")},{"./common/nth":106}],117:[function(e,t,n){arguments[4][116][0].apply(n,arguments)},{"./common/nth":106,dup:116}],118:[function(e,t,n){var r=e("../../utils/list");t.exports={parse:function(){return(new r).appendData(this.Selector())}}},{"../../utils/list":130}],119:[function(e,t,n){t.exports={getNode:e("./default")}},{"./default":120}],120:[function(e,t,n){var r=e("../../tokenizer").cmpChar,o=e("../../tokenizer").TYPE,i=o.Identifier,a=o.String,s=o.Number,l=o.NumberSign,c=o.LeftParenthesis,u=o.LeftSquareBracket,p=o.PlusSign,h=o.HyphenMinus,d=o.Comma,f=o.Solidus,m=o.Asterisk,g=o.PercentSign,b=o.Backslash;t.exports=function(e){switch(this.scanner.tokenType){case l:return this.HexColor();case d:return e.space=null,e.ignoreWSAfter=!0,this.Operator();case f:case m:case p:case h:return this.Operator();case c:return this.Parentheses(this.readSequence,e.recognizer);case u:return this.Brackets(this.readSequence,e.recognizer);case a:return this.String();case s:switch(this.scanner.lookupType(1)){case g:return this.Percentage();case i:return r(this.scanner.source,this.scanner.tokenEnd,b)?this.Number():this.Dimension();default:return this.Number()}case i:return r(this.scanner.source,this.scanner.tokenStart,117)&&r(this.scanner.source,this.scanner.tokenStart+1,p)?this.UnicodeRange():this.scanner.lookupType(1)===c?this.scanner.lookupValue(0,"url")?this.Url():this.Function(this.readSequence,e.recognizer):this.Identifier()}}},{"../../tokenizer":126}],121:[function(e,t,n){function r(e){switch(this.scanner.tokenType){case c:case f:case g:return e.space=null,e.ignoreWSAfter=!0,this.Combinator();case u:return this.Combinator();case h:return this.ClassSelector();case l:return this.AttributeSelector();case s:return this.IdSelector();case d:return this.scanner.lookupType(1)===d?this.PseudoElementSelector():this.PseudoClassSelector();case i:case p:case m:return this.TypeSelector();case a:return this.Percentage()}}var o=e("../../tokenizer").TYPE,i=o.Identifier,a=o.Number,s=o.NumberSign,l=o.LeftSquareBracket,c=o.PlusSign,u=o.Solidus,p=o.Asterisk,h=o.FullStop,d=o.Colon,f=o.GreaterThanSign,m=o.VerticalLine,g=o.Tilde;t.exports={getNode:r}},{"../../tokenizer":126}],122:[function(e,t,n){t.exports={getNode:e("./default"),"-moz-element":e("../function/element"),element:e("../function/element"),expression:e("../function/expression"),var:e("../function/var")}},{"../function/element":61,"../function/expression":62,"../function/var":63,"./default":120}],123:[function(e,t,n){"use strict";function r(e,t){var n=t.length,r=h(t),o=e.lines,i=e.startLine,a=e.columns,s=e.startColumn;(null===o||o.length<n+1)&&(o=new U(Math.max(n+1024,q)),a=new U(o.length));for(var l=r;l<n;l++){var c=t.charCodeAt(l);o[l]=i,a[l]=s++,c!==P&&c!==O&&c!==E||(c===O&&l+1<n&&t.charCodeAt(l+1)===P&&(l++,o[l]=i,a[l]=s),i++,s=1)}o[l]=i,a[l]=s,e.linesAnsColumnsComputed=!0,e.lines=o,e.columns=a}function o(e,t,n){var r=t.length,o=e.offsetAndType,i=0,a=0,s=n;for((null===o||o.length<r+1)&&(o=new U(r+1024));s<r;){var l=t.charCodeAt(s),p=l<u?c[l]:w;switch(p){case x:s=g(t,s+1);break;case A:if(l===_&&a===M){p=z,s=b(t,s+1),i--;break}if(l===R&&(a===N||a===D)&&s+1<r&&f(t.charCodeAt(s+1))){p=S,s=v(t,s+2,!1),i--;break}if(l===I&&a===B&&s+2<r&&t.charCodeAt(s+1)===D&&t.charCodeAt(s+2)===D){p=L,s+=3,i--;break}if(l===D&&a===D&&s+1<r&&t.charCodeAt(s+1)===j){p=T,s+=2,i--;break}p=l,s+=1;break;case S:s=v(t,s+1,a!==R),a!==R&&a!==D&&a!==N||i--;break;case C:s=y(t,s+1,l);break;default:s=k(t,s),a===D&&i--}o[i++]=p<<W|s,a=p}o[i]=s,e.offsetAndType=o,e.tokenCount=i}var i=e("./error"),a=e("./const"),s=a.TYPE,l=a.NAME,c=a.SYMBOL_TYPE,u=c.length,p=e("./utils"),h=p.firstCharOffset,d=p.cmpStr,f=p.isNumber,m=p.findLastNonSpaceLocation,g=p.findWhitespaceEnd,b=p.findCommentEnd,y=p.findStringEnd,v=p.findNumberEnd,k=p.findIdentifierEnd,x=s.Whitespace,w=s.Identifier,S=s.Number,C=s.String,z=s.Comment,A=s.Punctuator,L=s.CDO,T=s.CDC,P=10,E=12,O=13,_=s.Asterisk,M=s.Solidus,R=s.FullStop,N=s.PlusSign,D=s.HyphenMinus,j=s.GreaterThanSign,B=s.LessThanSign,I=s.ExclamationMark,q=16384,W=24,U="undefined"!=typeof Uint32Array?Uint32Array:Array,F=function(e,t,n,r){this.offsetAndType=null,this.lines=null,this.columns=null,this.setSource(e,t,n,r)};F.prototype={setSource:function(e,t,n,r){var i=String(e||""),a=h(i);this.source=i,this.startOffset=void 0===t?0:t,this.startLine=void 0===n?1:n,this.startColumn=void 0===r?1:r,this.linesAnsColumnsComputed=!1,this.eof=!1,this.currentToken=-1,this.tokenType=0,this.tokenStart=a,this.tokenEnd=a,o(this,i,a),this.next()},lookupType:function(e){return e+=this.currentToken,e<this.tokenCount?this.offsetAndType[e]>>W:0},lookupNonWSType:function(e){e+=this.currentToken;for(var t;e<this.tokenCount;e++)if((t=this.offsetAndType[e]>>W)!==x)return t;return 0},lookupValue:function(e,t){return(e+=this.currentToken)<this.tokenCount&&d(this.source,16777215&this.offsetAndType[e-1],16777215&this.offsetAndType[e],t)},getTokenValue:function(){return this.source.substring(this.tokenStart,this.tokenEnd)},substrToCursor:function(e){return this.source.substring(e,this.tokenStart)},skipWS:function(){for(var e=this.currentToken,t=0;e<this.tokenCount&&this.offsetAndType[e]>>W===x;e++,t++);t>0&&this.skip(t)},skipSC:function(){for(;this.tokenType===x||this.tokenType===z;)this.next()},skip:function(e){var t=this.currentToken+e;t<this.tokenCount?(this.currentToken=t,this.tokenStart=16777215&this.offsetAndType[t-1],t=this.offsetAndType[t],this.tokenType=t>>W,this.tokenEnd=16777215&t):(this.currentToken=this.tokenCount,this.next())},next:function(){var e=this.currentToken+1;e<this.tokenCount?(this.currentToken=e,this.tokenStart=this.tokenEnd,e=this.offsetAndType[e],this.tokenType=e>>W,this.tokenEnd=16777215&e):(this.currentToken=this.tokenCount,this.eof=!0,this.tokenType=0,this.tokenStart=this.tokenEnd=this.source.length)},eat:function(e){this.tokenType!==e&&this.error(l[e]+" is expected",this.tokenStart+(this.source.charCodeAt(this.tokenStart)===e?1:0)),this.next()},eatNonWS:function(e){this.skipWS(),this.eat(e)},consume:function(e){var t=this.tokenStart;return this.eat(e),this.substrToCursor(t)},consumeNonWS:function(e){return this.skipWS(),this.consume(e)},expectIdentifier:function(e){this.tokenType===w&&!1!==d(this.source,this.tokenStart,this.tokenEnd,e)||this.error("Identifier `"+e+"` is expected"),this.next()},getLocation:function(e,t){return this.linesAnsColumnsComputed||r(this,this.source),{source:t,offset:this.startOffset+e,line:this.lines[e],column:this.columns[e]}},getLocationRange:function(e,t,n){return this.linesAnsColumnsComputed||r(this,this.source),{source:n,start:{offset:this.startOffset+e,line:this.lines[e],column:this.columns[e]},end:{offset:this.startOffset+t,line:this.lines[t],column:this.columns[t]}}},error:function(e,t){var n=void 0!==t&&t<this.source.length?this.getLocation(t):this.eof?m(this):this.getLocation(this.tokenStart);throw new i(e||"Unexpected input",this.source,n.offset,n.line,n.column)},getTypes:function(){return Array.prototype.slice.call(this.offsetAndType,0,this.tokenCount).map(function(e){return l[e>>W]})}},F.CssSyntaxError=i,Object.keys(a).forEach(function(e){F[e]=a[e]}),Object.keys(p).forEach(function(e){F[e]=p[e]}),new F("\n\r\r\n\f\x3c!----\x3e//\"\"''/*\r\n\f*/1a;.\\31\t+2{url(a);+1.2e3 -.4e-5 .6e+7}").getLocation(),t.exports=F},{"./const":124,"./error":125,"./utils":127}],124:[function(e,t,n){"use strict";for(var r={Whitespace:1,Identifier:2,Number:3,String:4,Comment:5,Punctuator:6,CDO:7,CDC:8,ExclamationMark:33,QuotationMark:34,NumberSign:35,DollarSign:36,PercentSign:37,Ampersand:38,Apostrophe:39,LeftParenthesis:40,RightParenthesis:41,Asterisk:42,PlusSign:43,Comma:44,HyphenMinus:45,FullStop:46,Solidus:47,Colon:58,Semicolon:59,LessThanSign:60,EqualsSign:61,GreaterThanSign:62,QuestionMark:63,CommercialAt:64,LeftSquareBracket:91,Backslash:92,RightSquareBracket:93,CircumflexAccent:94,LowLine:95,GraveAccent:96,LeftCurlyBracket:123,VerticalLine:124,RightCurlyBracket:125,Tilde:126},o=Object.keys(r).reduce(function(e,t){return e[r[t]]=t,e},{}),i="undefined"!=typeof Uint32Array?Uint32Array:Array,a=new i(Math.max.apply(null,Object.keys(o).map(Number))+1),s=new i(a.length),l=0;l<a.length;l++)a[l]=2;[r.ExclamationMark,r.QuotationMark,r.NumberSign,r.DollarSign,r.PercentSign,r.Ampersand,r.Apostrophe,r.LeftParenthesis,r.RightParenthesis,r.Asterisk,r.PlusSign,r.Comma,r.HyphenMinus,r.FullStop,r.Solidus,r.Colon,r.Semicolon,r.LessThanSign,r.EqualsSign,r.GreaterThanSign,r.QuestionMark,r.CommercialAt,r.LeftSquareBracket,r.RightSquareBracket,r.CircumflexAccent,r.GraveAccent,r.LeftCurlyBracket,r.VerticalLine,r.RightCurlyBracket,r.Tilde].forEach(function(e){a[Number(e)]=6,s[Number(e)]=6},a);for(var l=48;l<=57;l++)a[l]=3;a[32]=1,a[9]=1,a[10]=1,a[13]=1,a[12]=1,a[r.Apostrophe]=4,a[r.QuotationMark]=4,s[32]=6,s[9]=6,s[10]=6,s[13]=6,s[12]=6,s[r.HyphenMinus]=0,t.exports={TYPE:r,NAME:o,SYMBOL_TYPE:a,PUNCTUATION:s}},{}],125:[function(e,t,n){"use strict";function r(e,t){function n(e,t){return r.slice(e,t).map(function(t,n){for(var r=String(e+n+1);r.length<p;)r=" "+r;return r+" |"+t}).join("\n")}var r=e.source.split(/\n|\r\n?|\f/),s=e.line,l=e.column,c=Math.max(1,s-t)-1,u=Math.min(s+t,r.length+1),p=Math.max(4,String(u).length)+1,h=0;(l+=(a.length-1)*(r[s-1].substr(0,l-1).match(/\t/g)||[]).length)>o&&(h=l-i+3,l=i-2);for(var d=c;d<=u;d++)d>=0&&d<r.length&&(r[d]=r[d].replace(/\t/g,a),r[d]=(h>0&&r[d].length>h?"…":"")+r[d].substr(h,o-2)+(r[d].length>h+o-1?"…":""));return[n(c,s),new Array(l+p+2).join("-")+"^",n(s,u)].join("\n")}var o=100,i=60,a=" ",s=function(e,t,n,o,i){var a=new SyntaxError;return a.name="CssSyntaxError",a.message=e,a.source=t,a.offset=n,a.line=o,a.column=i,a.sourceFragment=function(e){return r(a,isNaN(e)?0:e)},Object.defineProperty(a,"formattedMessage",{get:function(){return"Parse error: "+a.message+"\n"+r(a,2)}}),a.parseError={offset:n,line:o,column:i},a};t.exports=s},{}],126:[function(e,t,n){t.exports=e("./Tokenizer")},{"./Tokenizer":123}],127:[function(e,t,n){"use strict";function r(e){return 65279===e.charCodeAt(0)||65534===e.charCodeAt(0)?1:0}function o(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102}function i(e){return e>=48&&e<=57}function a(e,t,n){return n===T||n===P||n===E?n===E&&t+1<e.length&&e.charCodeAt(t+1)===T?2:1:0}function s(e,t,n){var r=e.charCodeAt(t);return r>=65&&r<=90&&(r|=32),r===n}function l(e,t,n,r){if(n-t!==r.length)return!1;if(t<0||n>e.length)return!1;for(var o=t;o<n;o++){var i=e.charCodeAt(o),a=r.charCodeAt(o-t);if(i>=65&&i<=90&&(i|=32),i!==a)return!1}return!0}function c(e,t){return l(e,e.length-t.length,e.length,t)}function u(e){for(var t=e.source.length-1;t>=0;t--){var n=e.source.charCodeAt(t);if(n!==O&&n!==L&&n!==E&&n!==T&&n!==P)break}return e.getLocation(t+1)}function p(e,t){for(;t<e.length;t++){var n=e.charCodeAt(t);if(n!==O&&n!==L&&n!==E&&n!==T&&n!==P)break}return t}function h(e,t){var n=e.indexOf("*/",t);return-1===n?e.length:n+2}function d(e,t,n){for(;t<e.length;t++){var r=e.charCodeAt(t);if(r===_)t++;else if(r===n){t++;break}}return t}function f(e,t){for(;t<e.length;t++){var n=e.charCodeAt(t);if(n<48||n>57)break}return t}function m(e,t,n){var r;return t=f(e,t),n&&t+1<e.length&&e.charCodeAt(t)===S&&(r=e.charCodeAt(t+1),i(r)&&(t=f(e,t+1))),t+1<e.length&&(32|e.charCodeAt(t))===M&&(r=e.charCodeAt(t+1),r!==C&&r!==z||t+2<e.length&&(r=e.charCodeAt(t+2)),i(r)&&(t=f(e,t+2))),t}function g(e,t){for(var n=0;n<7&&t+n<e.length;n++){var r=e.charCodeAt(t+n);if(6===n||!o(r)){n>0&&(t+=n-1+a(e,t+n,r),r!==O&&r!==L||t++);break}}return t}function b(e,t){for(;t<e.length;t++){var n=e.charCodeAt(t);if(n===_)t=g(e,t+1);else if(n<x&&v[n]===A)break}return t}var y=e("./const"),v=y.PUNCTUATION,k=y.SYMBOL_TYPE,x=k.length,w=y.TYPE,S=w.FullStop,C=w.PlusSign,z=w.HyphenMinus,A=w.Punctuator,L=9,T=10,P=12,E=13,O=32,_=92,M=101;t.exports={firstCharOffset:r,isHex:o,isNumber:i,isNewline:a,cmpChar:s,cmpStr:l,endsWith:c,findLastNonSpaceLocation:u,findWhitespaceEnd:p,findCommentEnd:h,findStringEnd:d,findDecimalNumberEnd:f,findNumberEnd:m,findEscaseEnd:g,findIdentifierEnd:b}},{"./const":124}],128:[function(e,t,n){"use strict";var r=e("./list");t.exports=function e(t){var n={};for(var o in t){var i=t[o];i&&(Array.isArray(i)?i=i.slice(0):i instanceof r?i=(new r).fromArray(i.map(e)):i.constructor===Object&&(i=e(i))),n[o]=i}return n}},{"./list":130}],129:[function(e,t,n){var r=e("./list");t.exports=function(e){var t=e.all,n=e.allUp;return{fromPlainObject:function(e){return t(e,function(e){e.children&&e.children instanceof r==!1&&(e.children=(new r).fromArray(e.children))}),e},toPlainObject:function(e){return n(e,function(e){e.children&&e.children instanceof r&&(e.children=e.children.toArray())}),e}}}},{"./list":130}],130:[function(e,t,n){"use strict";function r(e){return{prev:null,next:null,data:e}}function o(e,t,n){var r;return null!==a?(r=a,a=a.cursor,r.prev=t,r.next=n,r.cursor=e.cursor):r={prev:t,next:n,cursor:e.cursor},e.cursor=r,r}function i(e){var t=e.cursor;e.cursor=t.cursor,t.prev=null,t.next=null,t.cursor=a,a=t}var a=null,s=function(){this.cursor=null,this.head=null,this.tail=null};s.createItem=r,s.prototype.createItem=r,s.prototype.getSize=function(){for(var e=0,t=this.head;t;)e++,
20
+ t=t.next;return e},s.prototype.fromArray=function(e){var t=null;this.head=null;for(var n=0;n<e.length;n++){var o=r(e[n]);null!==t?t.next=o:this.head=o,o.prev=t,t=o}return this.tail=t,this},s.prototype.toArray=function(){for(var e=this.head,t=[];e;)t.push(e.data),e=e.next;return t},s.prototype.toJSON=s.prototype.toArray,s.prototype.isEmpty=function(){return null===this.head},s.prototype.first=function(){return this.head&&this.head.data},s.prototype.last=function(){return this.tail&&this.tail.data},s.prototype.each=function(e,t){var n;void 0===t&&(t=this);for(var r=o(this,null,this.head);null!==r.next;)n=r.next,r.next=n.next,e.call(t,n.data,n,this);i(this)},s.prototype.eachRight=function(e,t){var n;void 0===t&&(t=this);for(var r=o(this,this.tail,null);null!==r.prev;)n=r.prev,r.prev=n.prev,e.call(t,n.data,n,this);i(this)},s.prototype.nextUntil=function(e,t,n){if(null!==e){var r;void 0===n&&(n=this);for(var a=o(this,null,e);null!==a.next&&(r=a.next,a.next=r.next,!t.call(n,r.data,r,this)););i(this)}},s.prototype.prevUntil=function(e,t,n){if(null!==e){var r;void 0===n&&(n=this);for(var a=o(this,e,null);null!==a.prev&&(r=a.prev,a.prev=r.prev,!t.call(n,r.data,r,this)););i(this)}},s.prototype.some=function(e,t){var n=this.head;for(void 0===t&&(t=this);null!==n;){if(e.call(t,n.data,n,this))return!0;n=n.next}return!1},s.prototype.map=function(e,t){var n=[],r=this.head;for(void 0===t&&(t=this);null!==r;)n.push(e.call(t,r.data,r,this)),r=r.next;return n},s.prototype.clear=function(){this.head=null,this.tail=null},s.prototype.copy=function(){for(var e=new s,t=this.head;null!==t;)e.insert(r(t.data)),t=t.next;return e},s.prototype.updateCursors=function(e,t,n,r){for(var o=this.cursor;null!==o;)o.prev===e&&(o.prev=t),o.next===n&&(o.next=r),o=o.cursor},s.prototype.prepend=function(e){return this.updateCursors(null,e,this.head,e),null!==this.head?(this.head.prev=e,e.next=this.head):this.tail=e,this.head=e,this},s.prototype.prependData=function(e){return this.prepend(r(e))},s.prototype.append=function(e){return this.updateCursors(this.tail,e,null,e),null!==this.tail?(this.tail.next=e,e.prev=this.tail):this.head=e,this.tail=e,this},s.prototype.appendData=function(e){return this.append(r(e))},s.prototype.insert=function(e,t){if(void 0!==t&&null!==t)if(this.updateCursors(t.prev,e,t,e),null===t.prev){if(this.head!==t)throw new Error("before doesn't belong to list");this.head=e,t.prev=e,e.next=t,this.updateCursors(null,e)}else t.prev.next=e,e.prev=t.prev,t.prev=e,e.next=t;else this.append(e)},s.prototype.insertData=function(e,t){this.insert(r(e),t)},s.prototype.remove=function(e){if(this.updateCursors(e,e.prev,e,e.next),null!==e.prev)e.prev.next=e.next;else{if(this.head!==e)throw new Error("item doesn't belong to list");this.head=e.next}if(null!==e.next)e.next.prev=e.prev;else{if(this.tail!==e)throw new Error("item doesn't belong to list");this.tail=e.prev}return e.prev=null,e.next=null,e},s.prototype.appendList=function(e){null!==e.head&&(this.updateCursors(this.tail,e.tail,null,e.head),null!==this.tail?(this.tail.next=e.head,e.head.prev=this.tail):this.head=e.head,this.tail=e.tail,e.head=null,e.tail=null)},s.prototype.insertList=function(e,t){if(void 0!==t&&null!==t){if(null===e.head)return;this.updateCursors(t.prev,e.tail,t,e.head),null!==t.prev?(t.prev.next=e.head,e.head.prev=t.prev):this.head=e.head,t.prev=e.tail,e.tail.next=t,e.head=null,e.tail=null}else this.appendList(e)},s.prototype.replace=function(e,t){"head"in t?this.insertList(t,e):this.insert(t,e),this.remove(e)},t.exports=s},{}],131:[function(e,t,n){"use strict";function r(e,t){return e.charCodeAt(t)===u&&e.charCodeAt(t+1)===u}function o(e,t){if(e.charCodeAt(t)===u){var n=e.indexOf("-",t+2);if(-1!==n)return e.substring(t,n+1)}return""}function i(e){if(s.call(l,e))return l[e];var t=e.toLowerCase();if(s.call(l,t))return l[e]=l[t];var n=r(t,0)?"":o(t,0);return l[e]=Object.freeze({vendor:n,prefix:n,name:t.substr(n.length)})}function a(e){if(s.call(c,e))return c[e];var t=e,n=e[0];"/"===n&&"/"===e[1]?n="//":"_"!==n&&"*"!==n&&"$"!==n&&"#"!==n&&"+"!==n&&(n="");var i=r(t,n.length);if(!i&&(t=t.toLowerCase(),s.call(c,t)))return c[e]=c[t];var a=i?"":o(t,n.length);return c[e]=Object.freeze({hack:n,vendor:a,prefix:n+a,name:t.substr(n.length+a.length),variable:i})}var s=Object.prototype.hasOwnProperty,l=Object.create(null),c=Object.create(null),u=45;t.exports={keyword:i,property:a}},{}],132:[function(e,t,n){"use strict";function r(e,t,n){switch(e.type){case"StyleSheet":var o=this.stylesheet;this.stylesheet=e,e.children.each(r,this),this.stylesheet=o;break;case"Atrule":if(null!==e.block){var i=this.atrule;this.atrule=e,r.call(this,e.block),this.atrule=i}this.fn(e,t,n);break;case"Rule":this.fn(e,t,n);var a=this.rule;this.rule=e,r.call(this,e.block),this.rule=a;break;case"Block":var s=this.block;this.block=e,e.children.each(r,this),this.block=s}}function o(e,t,n){switch(e.type){case"StyleSheet":var r=this.stylesheet;this.stylesheet=e,e.children.eachRight(o,this),this.stylesheet=r;break;case"Atrule":if(null!==e.block){var i=this.atrule;this.atrule=e,o.call(this,e.block),this.atrule=i}this.fn(e,t,n);break;case"Rule":var a=this.rule;this.rule=e,o.call(this,e.block),this.rule=a,this.fn(e,t,n);break;case"Block":var s=this.block;this.block=e,e.children.eachRight(o,this),this.block=s}}function i(e){switch(e.type){case"StyleSheet":var t=this.stylesheet;this.stylesheet=e,e.children.each(i,this),this.stylesheet=t;break;case"Atrule":if(null!==e.block){var n=this.atrule;this.atrule=e,i.call(this,e.block),this.atrule=n}break;case"Rule":var r=this.rule;this.rule=e,null!==e.block&&i.call(this,e.block),this.rule=r;break;case"Block":e.children.each(function(e,t,n){"Declaration"===e.type?this.fn(e,t,n):i.call(this,e)},this)}}function a(e,t){return{fn:t,root:e,stylesheet:null,atrule:null,atruleExpression:null,rule:null,selector:null,block:null,declaration:null,function:null}}t.exports=function(e){var t={};for(var n in e){var s=e[n];t[n]=Function("node","context","walk",(s.context?"var old = context."+s.context+";\ncontext."+s.context+" = node;\n":"")+s.fields.map(function(e){var t="list"===e.type?"node."+e.name+".each(walk);":"walk(node."+e.name+");";return e.nullable&&(t="if (node."+e.name+") {\n "+t+"}"),t}).join("\n")+(s.context?"\ncontext."+s.context+" = old;":""))}return{all:function(e,n){function r(e,i,a){n.call(o,e,i,a),t.hasOwnProperty(e.type)&&t[e.type](e,o,r)}var o=a(e,n);r(e)},allUp:function(e,n){function r(e,i,a){t.hasOwnProperty(e.type)&&t[e.type](e,o,r),n.call(o,e,i,a)}var o=a(e,n);r(e)},rules:function(e,t){r.call(a(e,t),e)},rulesRight:function(e,t){o.call(a(e,t),e)},declarations:function(e,t){i.call(a(e,t),e)}}}},{}],133:[function(e,t,n){function r(){this._array=[],this._set=Object.create(null)}var o=e("./util"),i=Object.prototype.hasOwnProperty;r.fromArray=function(e,t){for(var n=new r,o=0,i=e.length;o<i;o++)n.add(e[o],t);return n},r.prototype.size=function(){return Object.getOwnPropertyNames(this._set).length},r.prototype.add=function(e,t){var n=o.toSetString(e),r=i.call(this._set,n),a=this._array.length;r&&!t||this._array.push(e),r||(this._set[n]=a)},r.prototype.has=function(e){var t=o.toSetString(e);return i.call(this._set,t)},r.prototype.indexOf=function(e){var t=o.toSetString(e);if(i.call(this._set,t))return this._set[t];throw new Error('"'+e+'" is not in the set.')},r.prototype.at=function(e){if(e>=0&&e<this._array.length)return this._array[e];throw new Error("No element indexed by "+e)},r.prototype.toArray=function(){return this._array.slice()},n.ArraySet=r},{"./util":142}],134:[function(e,t,n){function r(e){return e<0?1+(-e<<1):0+(e<<1)}function o(e){var t=1==(1&e),n=e>>1;return t?-n:n}var i=e("./base64");n.encode=function(e){var t,n="",o=r(e);do{t=31&o,o>>>=5,o>0&&(t|=32),n+=i.encode(t)}while(o>0);return n},n.decode=function(e,t,n){var r,a,s=e.length,l=0,c=0;do{if(t>=s)throw new Error("Expected more digits in base 64 VLQ value.");if(-1===(a=i.decode(e.charCodeAt(t++))))throw new Error("Invalid base64 digit: "+e.charAt(t-1));r=!!(32&a),a&=31,l+=a<<c,c+=5}while(r);n.value=o(l),n.rest=t}},{"./base64":135}],135:[function(e,t,n){var r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");n.encode=function(e){if(0<=e&&e<r.length)return r[e];throw new TypeError("Must be between 0 and 63: "+e)},n.decode=function(e){return 65<=e&&e<=90?e-65:97<=e&&e<=122?e-97+26:48<=e&&e<=57?e-48+52:43==e?62:47==e?63:-1}},{}],136:[function(e,t,n){function r(e,t,o,i,a,s){var l=Math.floor((t-e)/2)+e,c=a(o,i[l],!0);return 0===c?l:c>0?t-l>1?r(l,t,o,i,a,s):s==n.LEAST_UPPER_BOUND?t<i.length?t:-1:l:l-e>1?r(e,l,o,i,a,s):s==n.LEAST_UPPER_BOUND?l:e<0?-1:e}n.GREATEST_LOWER_BOUND=1,n.LEAST_UPPER_BOUND=2,n.search=function(e,t,o,i){if(0===t.length)return-1;var a=r(-1,t.length,e,t,o,i||n.GREATEST_LOWER_BOUND);if(a<0)return-1;for(;a-1>=0&&0===o(t[a],t[a-1],!0);)--a;return a}},{}],137:[function(e,t,n){function r(e,t){var n=e.generatedLine,r=t.generatedLine,o=e.generatedColumn,a=t.generatedColumn;return r>n||r==n&&a>=o||i.compareByGeneratedPositionsInflated(e,t)<=0}function o(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}var i=e("./util");o.prototype.unsortedForEach=function(e,t){this._array.forEach(e,t)},o.prototype.add=function(e){r(this._last,e)?(this._last=e,this._array.push(e)):(this._sorted=!1,this._array.push(e))},o.prototype.toArray=function(){return this._sorted||(this._array.sort(i.compareByGeneratedPositionsInflated),this._sorted=!0),this._array},n.MappingList=o},{"./util":142}],138:[function(e,t,n){function r(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function o(e,t){return Math.round(e+Math.random()*(t-e))}function i(e,t,n,a){if(n<a){var s=o(n,a),l=n-1;r(e,s,a);for(var c=e[a],u=n;u<a;u++)t(e[u],c)<=0&&(l+=1,r(e,l,u));r(e,l+1,u);var p=l+1;i(e,t,n,p-1),i(e,t,p+1,a)}}n.quickSort=function(e,t){i(e,t,0,e.length-1)}},{}],139:[function(e,t,n){function r(e){var t=e;return"string"==typeof e&&(t=JSON.parse(e.replace(/^\)\]\}'/,""))),null!=t.sections?new a(t):new o(t)}function o(e){var t=e;"string"==typeof e&&(t=JSON.parse(e.replace(/^\)\]\}'/,"")));var n=s.getArg(t,"version"),r=s.getArg(t,"sources"),o=s.getArg(t,"names",[]),i=s.getArg(t,"sourceRoot",null),a=s.getArg(t,"sourcesContent",null),l=s.getArg(t,"mappings"),u=s.getArg(t,"file",null);if(n!=this._version)throw new Error("Unsupported version: "+n);r=r.map(String).map(s.normalize).map(function(e){return i&&s.isAbsolute(i)&&s.isAbsolute(e)?s.relative(i,e):e}),this._names=c.fromArray(o.map(String),!0),this._sources=c.fromArray(r,!0),this.sourceRoot=i,this.sourcesContent=a,this._mappings=l,this.file=u}function i(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}function a(e){var t=e;"string"==typeof e&&(t=JSON.parse(e.replace(/^\)\]\}'/,"")));var n=s.getArg(t,"version"),o=s.getArg(t,"sections");if(n!=this._version)throw new Error("Unsupported version: "+n);this._sources=new c,this._names=new c;var i={line:-1,column:0};this._sections=o.map(function(e){if(e.url)throw new Error("Support for url field in sections not implemented.");var t=s.getArg(e,"offset"),n=s.getArg(t,"line"),o=s.getArg(t,"column");if(n<i.line||n===i.line&&o<i.column)throw new Error("Section offsets must be ordered and non-overlapping.");return i=t,{generatedOffset:{generatedLine:n+1,generatedColumn:o+1},consumer:new r(s.getArg(e,"map"))}})}var s=e("./util"),l=e("./binary-search"),c=e("./array-set").ArraySet,u=e("./base64-vlq"),p=e("./quick-sort").quickSort;r.fromSourceMap=function(e){return o.fromSourceMap(e)},r.prototype._version=3,r.prototype.__generatedMappings=null,Object.defineProperty(r.prototype,"_generatedMappings",{get:function(){return this.__generatedMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__generatedMappings}}),r.prototype.__originalMappings=null,Object.defineProperty(r.prototype,"_originalMappings",{get:function(){return this.__originalMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__originalMappings}}),r.prototype._charIsMappingSeparator=function(e,t){var n=e.charAt(t);return";"===n||","===n},r.prototype._parseMappings=function(e,t){throw new Error("Subclasses must implement _parseMappings")},r.GENERATED_ORDER=1,r.ORIGINAL_ORDER=2,r.GREATEST_LOWER_BOUND=1,r.LEAST_UPPER_BOUND=2,r.prototype.eachMapping=function(e,t,n){var o,i=t||null,a=n||r.GENERATED_ORDER;switch(a){case r.GENERATED_ORDER:o=this._generatedMappings;break;case r.ORIGINAL_ORDER:o=this._originalMappings;break;default:throw new Error("Unknown order of iteration.")}var l=this.sourceRoot;o.map(function(e){var t=null===e.source?null:this._sources.at(e.source);return null!=t&&null!=l&&(t=s.join(l,t)),{source:t,generatedLine:e.generatedLine,generatedColumn:e.generatedColumn,originalLine:e.originalLine,originalColumn:e.originalColumn,name:null===e.name?null:this._names.at(e.name)}},this).forEach(e,i)},r.prototype.allGeneratedPositionsFor=function(e){var t=s.getArg(e,"line"),n={source:s.getArg(e,"source"),originalLine:t,originalColumn:s.getArg(e,"column",0)};if(null!=this.sourceRoot&&(n.source=s.relative(this.sourceRoot,n.source)),!this._sources.has(n.source))return[];n.source=this._sources.indexOf(n.source);var r=[],o=this._findMapping(n,this._originalMappings,"originalLine","originalColumn",s.compareByOriginalPositions,l.LEAST_UPPER_BOUND);if(o>=0){var i=this._originalMappings[o];if(void 0===e.column)for(var a=i.originalLine;i&&i.originalLine===a;)r.push({line:s.getArg(i,"generatedLine",null),column:s.getArg(i,"generatedColumn",null),lastColumn:s.getArg(i,"lastGeneratedColumn",null)}),i=this._originalMappings[++o];else for(var c=i.originalColumn;i&&i.originalLine===t&&i.originalColumn==c;)r.push({line:s.getArg(i,"generatedLine",null),column:s.getArg(i,"generatedColumn",null),lastColumn:s.getArg(i,"lastGeneratedColumn",null)}),i=this._originalMappings[++o]}return r},n.SourceMapConsumer=r,o.prototype=Object.create(r.prototype),o.prototype.consumer=r,o.fromSourceMap=function(e){var t=Object.create(o.prototype),n=t._names=c.fromArray(e._names.toArray(),!0),r=t._sources=c.fromArray(e._sources.toArray(),!0);t.sourceRoot=e._sourceRoot,t.sourcesContent=e._generateSourcesContent(t._sources.toArray(),t.sourceRoot),t.file=e._file;for(var a=e._mappings.toArray().slice(),l=t.__generatedMappings=[],u=t.__originalMappings=[],h=0,d=a.length;h<d;h++){var f=a[h],m=new i;m.generatedLine=f.generatedLine,m.generatedColumn=f.generatedColumn,f.source&&(m.source=r.indexOf(f.source),m.originalLine=f.originalLine,m.originalColumn=f.originalColumn,f.name&&(m.name=n.indexOf(f.name)),u.push(m)),l.push(m)}return p(t.__originalMappings,s.compareByOriginalPositions),t},o.prototype._version=3,Object.defineProperty(o.prototype,"sources",{get:function(){return this._sources.toArray().map(function(e){return null!=this.sourceRoot?s.join(this.sourceRoot,e):e},this)}}),o.prototype._parseMappings=function(e,t){for(var n,r,o,a,l,c=1,h=0,d=0,f=0,m=0,g=0,b=e.length,y=0,v={},k={},x=[],w=[];y<b;)if(";"===e.charAt(y))c++,y++,h=0;else if(","===e.charAt(y))y++;else{for(n=new i,n.generatedLine=c,a=y;a<b&&!this._charIsMappingSeparator(e,a);a++);if(r=e.slice(y,a),o=v[r])y+=r.length;else{for(o=[];y<a;)u.decode(e,y,k),l=k.value,y=k.rest,o.push(l);if(2===o.length)throw new Error("Found a source, but no line and column");if(3===o.length)throw new Error("Found a source and line, but no column");v[r]=o}n.generatedColumn=h+o[0],h=n.generatedColumn,o.length>1&&(n.source=m+o[1],m+=o[1],n.originalLine=d+o[2],d=n.originalLine,n.originalLine+=1,n.originalColumn=f+o[3],f=n.originalColumn,o.length>4&&(n.name=g+o[4],g+=o[4])),w.push(n),"number"==typeof n.originalLine&&x.push(n)}p(w,s.compareByGeneratedPositionsDeflated),this.__generatedMappings=w,p(x,s.compareByOriginalPositions),this.__originalMappings=x},o.prototype._findMapping=function(e,t,n,r,o,i){if(e[n]<=0)throw new TypeError("Line must be greater than or equal to 1, got "+e[n]);if(e[r]<0)throw new TypeError("Column must be greater than or equal to 0, got "+e[r]);return l.search(e,t,o,i)},o.prototype.computeColumnSpans=function(){for(var e=0;e<this._generatedMappings.length;++e){var t=this._generatedMappings[e];if(e+1<this._generatedMappings.length){var n=this._generatedMappings[e+1];if(t.generatedLine===n.generatedLine){t.lastGeneratedColumn=n.generatedColumn-1;continue}}t.lastGeneratedColumn=1/0}},o.prototype.originalPositionFor=function(e){var t={generatedLine:s.getArg(e,"line"),generatedColumn:s.getArg(e,"column")},n=this._findMapping(t,this._generatedMappings,"generatedLine","generatedColumn",s.compareByGeneratedPositionsDeflated,s.getArg(e,"bias",r.GREATEST_LOWER_BOUND));if(n>=0){var o=this._generatedMappings[n];if(o.generatedLine===t.generatedLine){var i=s.getArg(o,"source",null);null!==i&&(i=this._sources.at(i),null!=this.sourceRoot&&(i=s.join(this.sourceRoot,i)));var a=s.getArg(o,"name",null);return null!==a&&(a=this._names.at(a)),{source:i,line:s.getArg(o,"originalLine",null),column:s.getArg(o,"originalColumn",null),name:a}}}return{source:null,line:null,column:null,name:null}},o.prototype.hasContentsOfAllSources=function(){return!!this.sourcesContent&&(this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(e){return null==e}))},o.prototype.sourceContentFor=function(e,t){if(!this.sourcesContent)return null;if(null!=this.sourceRoot&&(e=s.relative(this.sourceRoot,e)),this._sources.has(e))return this.sourcesContent[this._sources.indexOf(e)];var n;if(null!=this.sourceRoot&&(n=s.urlParse(this.sourceRoot))){var r=e.replace(/^file:\/\//,"");if("file"==n.scheme&&this._sources.has(r))return this.sourcesContent[this._sources.indexOf(r)];if((!n.path||"/"==n.path)&&this._sources.has("/"+e))return this.sourcesContent[this._sources.indexOf("/"+e)]}if(t)return null;throw new Error('"'+e+'" is not in the SourceMap.')},o.prototype.generatedPositionFor=function(e){var t=s.getArg(e,"source");if(null!=this.sourceRoot&&(t=s.relative(this.sourceRoot,t)),!this._sources.has(t))return{line:null,column:null,lastColumn:null};t=this._sources.indexOf(t);var n={source:t,originalLine:s.getArg(e,"line"),originalColumn:s.getArg(e,"column")},o=this._findMapping(n,this._originalMappings,"originalLine","originalColumn",s.compareByOriginalPositions,s.getArg(e,"bias",r.GREATEST_LOWER_BOUND));if(o>=0){var i=this._originalMappings[o];if(i.source===n.source)return{line:s.getArg(i,"generatedLine",null),column:s.getArg(i,"generatedColumn",null),lastColumn:s.getArg(i,"lastGeneratedColumn",null)}}return{line:null,column:null,lastColumn:null}},n.BasicSourceMapConsumer=o,a.prototype=Object.create(r.prototype),a.prototype.constructor=r,a.prototype._version=3,Object.defineProperty(a.prototype,"sources",{get:function(){for(var e=[],t=0;t<this._sections.length;t++)for(var n=0;n<this._sections[t].consumer.sources.length;n++)e.push(this._sections[t].consumer.sources[n]);return e}}),a.prototype.originalPositionFor=function(e){var t={generatedLine:s.getArg(e,"line"),generatedColumn:s.getArg(e,"column")},n=l.search(t,this._sections,function(e,t){var n=e.generatedLine-t.generatedOffset.generatedLine;return n||e.generatedColumn-t.generatedOffset.generatedColumn}),r=this._sections[n];return r?r.consumer.originalPositionFor({line:t.generatedLine-(r.generatedOffset.generatedLine-1),column:t.generatedColumn-(r.generatedOffset.generatedLine===t.generatedLine?r.generatedOffset.generatedColumn-1:0),bias:e.bias}):{source:null,line:null,column:null,name:null}},a.prototype.hasContentsOfAllSources=function(){return this._sections.every(function(e){return e.consumer.hasContentsOfAllSources()})},a.prototype.sourceContentFor=function(e,t){for(var n=0;n<this._sections.length;n++){var r=this._sections[n],o=r.consumer.sourceContentFor(e,!0);if(o)return o}if(t)return null;throw new Error('"'+e+'" is not in the SourceMap.')},a.prototype.generatedPositionFor=function(e){for(var t=0;t<this._sections.length;t++){var n=this._sections[t];if(-1!==n.consumer.sources.indexOf(s.getArg(e,"source"))){var r=n.consumer.generatedPositionFor(e);if(r){return{line:r.line+(n.generatedOffset.generatedLine-1),column:r.column+(n.generatedOffset.generatedLine===r.line?n.generatedOffset.generatedColumn-1:0)}}}}return{line:null,column:null}},a.prototype._parseMappings=function(e,t){this.__generatedMappings=[],this.__originalMappings=[];for(var n=0;n<this._sections.length;n++)for(var r=this._sections[n],o=r.consumer._generatedMappings,i=0;i<o.length;i++){var a=o[i],l=r.consumer._sources.at(a.source);null!==r.consumer.sourceRoot&&(l=s.join(r.consumer.sourceRoot,l)),this._sources.add(l),l=this._sources.indexOf(l);var c=r.consumer._names.at(a.name);this._names.add(c),c=this._names.indexOf(c);var u={source:l,generatedLine:a.generatedLine+(r.generatedOffset.generatedLine-1),generatedColumn:a.generatedColumn+(r.generatedOffset.generatedLine===a.generatedLine?r.generatedOffset.generatedColumn-1:0),originalLine:a.originalLine,originalColumn:a.originalColumn,name:c};this.__generatedMappings.push(u),"number"==typeof u.originalLine&&this.__originalMappings.push(u)}p(this.__generatedMappings,s.compareByGeneratedPositionsDeflated),p(this.__originalMappings,s.compareByOriginalPositions)},n.IndexedSourceMapConsumer=a},{"./array-set":133,"./base64-vlq":134,"./binary-search":136,"./quick-sort":138,"./util":142}],140:[function(e,t,n){function r(e){e||(e={}),this._file=i.getArg(e,"file",null),this._sourceRoot=i.getArg(e,"sourceRoot",null),this._skipValidation=i.getArg(e,"skipValidation",!1),this._sources=new a,this._names=new a,this._mappings=new s,this._sourcesContents=null}var o=e("./base64-vlq"),i=e("./util"),a=e("./array-set").ArraySet,s=e("./mapping-list").MappingList;r.prototype._version=3,r.fromSourceMap=function(e){var t=e.sourceRoot,n=new r({file:e.file,sourceRoot:t});return e.eachMapping(function(e){var r={generated:{line:e.generatedLine,column:e.generatedColumn}};null!=e.source&&(r.source=e.source,null!=t&&(r.source=i.relative(t,r.source)),r.original={line:e.originalLine,column:e.originalColumn},null!=e.name&&(r.name=e.name)),n.addMapping(r)}),e.sources.forEach(function(t){var r=e.sourceContentFor(t);null!=r&&n.setSourceContent(t,r)}),n},r.prototype.addMapping=function(e){var t=i.getArg(e,"generated"),n=i.getArg(e,"original",null),r=i.getArg(e,"source",null),o=i.getArg(e,"name",null);this._skipValidation||this._validateMapping(t,n,r,o),null!=r&&(r=String(r),this._sources.has(r)||this._sources.add(r)),null!=o&&(o=String(o),this._names.has(o)||this._names.add(o)),this._mappings.add({generatedLine:t.line,generatedColumn:t.column,originalLine:null!=n&&n.line,originalColumn:null!=n&&n.column,source:r,name:o})},r.prototype.setSourceContent=function(e,t){var n=e;null!=this._sourceRoot&&(n=i.relative(this._sourceRoot,n)),null!=t?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[i.toSetString(n)]=t):this._sourcesContents&&(delete this._sourcesContents[i.toSetString(n)],0===Object.keys(this._sourcesContents).length&&(this._sourcesContents=null))},r.prototype.applySourceMap=function(e,t,n){var r=t;if(null==t){if(null==e.file)throw new Error('SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map\'s "file" property. Both were omitted.');r=e.file}var o=this._sourceRoot;null!=o&&(r=i.relative(o,r));var s=new a,l=new a;this._mappings.unsortedForEach(function(t){if(t.source===r&&null!=t.originalLine){var a=e.originalPositionFor({line:t.originalLine,column:t.originalColumn});null!=a.source&&(t.source=a.source,null!=n&&(t.source=i.join(n,t.source)),null!=o&&(t.source=i.relative(o,t.source)),t.originalLine=a.line,t.originalColumn=a.column,null!=a.name&&(t.name=a.name))}var c=t.source;null==c||s.has(c)||s.add(c);var u=t.name;null==u||l.has(u)||l.add(u)},this),this._sources=s,this._names=l,e.sources.forEach(function(t){var r=e.sourceContentFor(t);null!=r&&(null!=n&&(t=i.join(n,t)),null!=o&&(t=i.relative(o,t)),this.setSourceContent(t,r))},this)},r.prototype._validateMapping=function(e,t,n,r){if((!(e&&"line"in e&&"column"in e&&e.line>0&&e.column>=0)||t||n||r)&&!(e&&"line"in e&&"column"in e&&t&&"line"in t&&"column"in t&&e.line>0&&e.column>=0&&t.line>0&&t.column>=0&&n))throw new Error("Invalid mapping: "+JSON.stringify({generated:e,source:n,original:t,name:r}))},r.prototype._serializeMappings=function(){for(var e,t,n,r,a=0,s=1,l=0,c=0,u=0,p=0,h="",d=this._mappings.toArray(),f=0,m=d.length;f<m;f++){if(t=d[f],e="",t.generatedLine!==s)for(a=0;t.generatedLine!==s;)e+=";",s++;else if(f>0){if(!i.compareByGeneratedPositionsInflated(t,d[f-1]))continue;e+=","}e+=o.encode(t.generatedColumn-a),a=t.generatedColumn,null!=t.source&&(r=this._sources.indexOf(t.source),e+=o.encode(r-p),p=r,e+=o.encode(t.originalLine-1-c),c=t.originalLine-1,e+=o.encode(t.originalColumn-l),l=t.originalColumn,null!=t.name&&(n=this._names.indexOf(t.name),e+=o.encode(n-u),u=n)),h+=e}return h},r.prototype._generateSourcesContent=function(e,t){return e.map(function(e){if(!this._sourcesContents)return null;null!=t&&(e=i.relative(t,e));var n=i.toSetString(e);return Object.prototype.hasOwnProperty.call(this._sourcesContents,n)?this._sourcesContents[n]:null},this)},r.prototype.toJSON=function(){var e={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return null!=this._file&&(e.file=this._file),null!=this._sourceRoot&&(e.sourceRoot=this._sourceRoot),this._sourcesContents&&(e.sourcesContent=this._generateSourcesContent(e.sources,e.sourceRoot)),e},r.prototype.toString=function(){return JSON.stringify(this.toJSON())},n.SourceMapGenerator=r},{"./array-set":133,"./base64-vlq":134,"./mapping-list":137,"./util":142}],141:[function(e,t,n){function r(e,t,n,r,o){this.children=[],this.sourceContents={},this.line=null==e?null:e,this.column=null==t?null:t,this.source=null==n?null:n,this.name=null==o?null:o,this[s]=!0,null!=r&&this.add(r)}var o=e("./source-map-generator").SourceMapGenerator,i=e("./util"),a=/(\r?\n)/,s="$$$isSourceNode$$$";r.fromStringWithSourceMap=function(e,t,n){function o(e,t){if(null===e||void 0===e.source)s.add(t);else{var o=n?i.join(n,e.source):e.source;s.add(new r(e.originalLine,e.originalColumn,o,t,e.name))}}var s=new r,l=e.split(a),c=function(){return l.shift()+(l.shift()||"")},u=1,p=0,h=null;return t.eachMapping(function(e){if(null!==h){if(!(u<e.generatedLine)){var t=l[0],n=t.substr(0,e.generatedColumn-p);return l[0]=t.substr(e.generatedColumn-p),p=e.generatedColumn,o(h,n),void(h=e)}o(h,c()),u++,p=0}for(;u<e.generatedLine;)s.add(c()),u++;if(p<e.generatedColumn){var t=l[0];s.add(t.substr(0,e.generatedColumn)),l[0]=t.substr(e.generatedColumn),p=e.generatedColumn}h=e},this),l.length>0&&(h&&o(h,c()),s.add(l.join(""))),t.sources.forEach(function(e){var r=t.sourceContentFor(e);null!=r&&(null!=n&&(e=i.join(n,e)),s.setSourceContent(e,r))}),s},r.prototype.add=function(e){if(Array.isArray(e))e.forEach(function(e){this.add(e)},this);else{if(!e[s]&&"string"!=typeof e)throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+e);e&&this.children.push(e)}return this},r.prototype.prepend=function(e){if(Array.isArray(e))for(var t=e.length-1;t>=0;t--)this.prepend(e[t]);else{if(!e[s]&&"string"!=typeof e)throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+e);this.children.unshift(e)}return this},r.prototype.walk=function(e){for(var t,n=0,r=this.children.length;n<r;n++)t=this.children[n],t[s]?t.walk(e):""!==t&&e(t,{source:this.source,line:this.line,column:this.column,name:this.name})},r.prototype.join=function(e){var t,n,r=this.children.length;if(r>0){for(t=[],n=0;n<r-1;n++)t.push(this.children[n]),t.push(e);t.push(this.children[n]),this.children=t}return this},r.prototype.replaceRight=function(e,t){var n=this.children[this.children.length-1];return n[s]?n.replaceRight(e,t):"string"==typeof n?this.children[this.children.length-1]=n.replace(e,t):this.children.push("".replace(e,t)),this},r.prototype.setSourceContent=function(e,t){this.sourceContents[i.toSetString(e)]=t},r.prototype.walkSourceContents=function(e){for(var t=0,n=this.children.length;t<n;t++)this.children[t][s]&&this.children[t].walkSourceContents(e);for(var r=Object.keys(this.sourceContents),t=0,n=r.length;t<n;t++)e(i.fromSetString(r[t]),this.sourceContents[r[t]])},r.prototype.toString=function(){var e="";return this.walk(function(t){e+=t}),e},r.prototype.toStringWithSourceMap=function(e){var t={code:"",line:1,column:0},n=new o(e),r=!1,i=null,a=null,s=null,l=null;return this.walk(function(e,o){t.code+=e,null!==o.source&&null!==o.line&&null!==o.column?(i===o.source&&a===o.line&&s===o.column&&l===o.name||n.addMapping({source:o.source,original:{line:o.line,column:o.column},generated:{line:t.line,column:t.column},name:o.name}),i=o.source,a=o.line,s=o.column,l=o.name,r=!0):r&&(n.addMapping({generated:{line:t.line,column:t.column}}),i=null,r=!1);for(var c=0,u=e.length;c<u;c++)10===e.charCodeAt(c)?(t.line++,t.column=0,c+1===u?(i=null,r=!1):r&&n.addMapping({source:o.source,original:{line:o.line,column:o.column},generated:{line:t.line,column:t.column},name:o.name})):t.column++}),this.walkSourceContents(function(e,t){n.setSourceContent(e,t)}),{code:t.code,map:n}},n.SourceNode=r},{"./source-map-generator":140,"./util":142}],142:[function(e,t,n){function r(e,t,n){if(t in e)return e[t];if(3===arguments.length)return n;throw new Error('"'+t+'" is a required argument.')}function o(e){var t=e.match(b);return t?{scheme:t[1],auth:t[2],host:t[3],port:t[4],path:t[5]}:null}function i(e){var t="";return e.scheme&&(t+=e.scheme+":"),t+="//",e.auth&&(t+=e.auth+"@"),e.host&&(t+=e.host),e.port&&(t+=":"+e.port),e.path&&(t+=e.path),t}function a(e){var t=e,r=o(e);if(r){if(!r.path)return e;t=r.path}for(var a,s=n.isAbsolute(t),l=t.split(/\/+/),c=0,u=l.length-1;u>=0;u--)a=l[u],"."===a?l.splice(u,1):".."===a?c++:c>0&&(""===a?(l.splice(u+1,c),c=0):(l.splice(u,2),c--));return t=l.join("/"),""===t&&(t=s?"/":"."),r?(r.path=t,i(r)):t}function s(e,t){""===e&&(e="."),""===t&&(t=".");var n=o(t),r=o(e);if(r&&(e=r.path||"/"),n&&!n.scheme)return r&&(n.scheme=r.scheme),i(n);if(n||t.match(y))return t;if(r&&!r.host&&!r.path)return r.host=t,i(r);var s="/"===t.charAt(0)?t:a(e.replace(/\/+$/,"")+"/"+t);return r?(r.path=s,i(r)):s}function l(e,t){""===e&&(e="."),e=e.replace(/\/$/,"");for(var n=0;0!==t.indexOf(e+"/");){var r=e.lastIndexOf("/");if(r<0)return t;if(e=e.slice(0,r),e.match(/^([^\/]+:\/)?\/*$/))return t;++n}return Array(n+1).join("../")+t.substr(e.length+1)}function c(e){return e}function u(e){return h(e)?"$"+e:e}function p(e){return h(e)?e.slice(1):e}function h(e){if(!e)return!1;var t=e.length;if(t<9)return!1;if(95!==e.charCodeAt(t-1)||95!==e.charCodeAt(t-2)||111!==e.charCodeAt(t-3)||116!==e.charCodeAt(t-4)||111!==e.charCodeAt(t-5)||114!==e.charCodeAt(t-6)||112!==e.charCodeAt(t-7)||95!==e.charCodeAt(t-8)||95!==e.charCodeAt(t-9))return!1;for(var n=t-10;n>=0;n--)if(36!==e.charCodeAt(n))return!1;return!0}function d(e,t,n){var r=e.source-t.source;return 0!==r?r:0!==(r=e.originalLine-t.originalLine)?r:0!==(r=e.originalColumn-t.originalColumn)||n?r:0!==(r=e.generatedColumn-t.generatedColumn)?r:(r=e.generatedLine-t.generatedLine,0!==r?r:e.name-t.name)}function f(e,t,n){var r=e.generatedLine-t.generatedLine;return 0!==r?r:0!==(r=e.generatedColumn-t.generatedColumn)||n?r:0!==(r=e.source-t.source)?r:0!==(r=e.originalLine-t.originalLine)?r:(r=e.originalColumn-t.originalColumn,0!==r?r:e.name-t.name)}function m(e,t){return e===t?0:e>t?1:-1}function g(e,t){var n=e.generatedLine-t.generatedLine;return 0!==n?n:0!==(n=e.generatedColumn-t.generatedColumn)?n:0!==(n=m(e.source,t.source))?n:0!==(n=e.originalLine-t.originalLine)?n:(n=e.originalColumn-t.originalColumn,0!==n?n:m(e.name,t.name))}n.getArg=r;var b=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.]*)(?::(\d+))?(\S*)$/,y=/^data:.+\,.+$/;n.urlParse=o,n.urlGenerate=i,n.normalize=a,n.join=s,n.isAbsolute=function(e){return"/"===e.charAt(0)||!!e.match(b)},n.relative=l;var v=function(){
21
+ return!("__proto__"in Object.create(null))}();n.toSetString=v?c:u,n.fromSetString=v?c:p,n.compareByOriginalPositions=d,n.compareByGeneratedPositionsDeflated=f,n.compareByGeneratedPositionsInflated=g},{}],143:[function(e,t,n){n.SourceMapGenerator=e("./lib/source-map-generator").SourceMapGenerator,n.SourceMapConsumer=e("./lib/source-map-consumer").SourceMapConsumer,n.SourceNode=e("./lib/source-node").SourceNode},{"./lib/source-map-consumer":139,"./lib/source-map-generator":140,"./lib/source-node":141}],144:[function(e,t,n){t.exports={version:"3.1.1"}},{}]},{},[10])(10)});
18
22
 
19
23
  do_compression = function(css, structural){
20
24
  return csso.minify(css, {
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: csso-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.1
4
+ version: 0.8.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Vasily Fedoseyev